@autoafleveren/ui 0.12.7 → 0.12.8

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/ui.cjs CHANGED
@@ -1,8 +1,8 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),kt=require("@headlessui/vue"),Sg=require("vue-router"),ui=require("@vueuse/core");var Cg=Object.defineProperty,kc=Object.getOwnPropertySymbols,Tg=Object.prototype.hasOwnProperty,Eg=Object.prototype.propertyIsEnumerable,Sc=(e,t,n)=>t in e?Cg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Af=(e,t)=>{for(var n in t||(t={}))Tg.call(t,n)&&Sc(e,n,t[n]);if(kc)for(var n of kc(t))Eg.call(t,n)&&Sc(e,n,t[n]);return e},Ai=e=>typeof e=="function",$i=e=>typeof e=="string",$f=e=>$i(e)&&e.trim().length>0,xg=e=>typeof e=="number",Lr=e=>typeof e>"u",uo=e=>typeof e=="object"&&e!==null,Pg=e=>jn(e,"tag")&&$f(e.tag),Lf=e=>window.TouchEvent&&e instanceof TouchEvent,Vf=e=>jn(e,"component")&&Ff(e.component),Ig=e=>Ai(e)||uo(e),Ff=e=>!Lr(e)&&($i(e)||Ig(e)||Vf(e)),Cc=e=>uo(e)&&["height","width","right","left","top","bottom"].every(t=>xg(e[t])),jn=(e,t)=>(uo(e)||Ai(e))&&t in e,Dg=(e=>()=>e++)(0);function Ps(e){return Lf(e)?e.targetTouches[0].clientX:e.clientX}function Tc(e){return Lf(e)?e.targetTouches[0].clientY:e.clientY}var Og=e=>{Lr(e.remove)?e.parentNode&&e.parentNode.removeChild(e):e.remove()},Eo=e=>Vf(e)?Eo(e.component):Pg(e)?a.defineComponent({render(){return e}}):typeof e=="string"?e:a.toRaw(a.unref(e)),Ng=e=>{if(typeof e=="string")return e;const t=jn(e,"props")&&uo(e.props)?e.props:{},n=jn(e,"listeners")&&uo(e.listeners)?e.listeners:{};return{component:Eo(e),props:t,listeners:n}},Bg=()=>typeof window<"u",nu=class{constructor(){this.allHandlers={}}getHandlers(e){return this.allHandlers[e]||[]}on(e,t){const n=this.getHandlers(e);n.push(t),this.allHandlers[e]=n}off(e,t){const n=this.getHandlers(e);n.splice(n.indexOf(t)>>>0,1)}emit(e,t){this.getHandlers(e).forEach(r=>r(t))}},Mg=e=>["on","off","emit"].every(t=>jn(e,t)&&Ai(e[t])),cn;(function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.DEFAULT="default"})(cn||(cn={}));var co;(function(e){e.TOP_LEFT="top-left",e.TOP_CENTER="top-center",e.TOP_RIGHT="top-right",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_CENTER="bottom-center",e.BOTTOM_RIGHT="bottom-right"})(co||(co={}));var dn;(function(e){e.ADD="add",e.DISMISS="dismiss",e.UPDATE="update",e.CLEAR="clear",e.UPDATE_DEFAULTS="update_defaults"})(dn||(dn={}));var En="Vue-Toastification",Cn={type:{type:String,default:cn.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},Hf={type:Cn.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},ti={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:Cn.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},il={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},Uf={transition:{type:[Object,String],default:`${En}__bounce`}},Rg={position:{type:String,default:co.TOP_RIGHT},draggable:Cn.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:Cn.trueBoolean,pauseOnHover:Cn.trueBoolean,closeOnClick:Cn.trueBoolean,timeout:il.timeout,hideProgressBar:il.hideProgressBar,toastClassName:Cn.classNames,bodyClassName:Cn.classNames,icon:Hf.customIcon,closeButton:ti.component,closeButtonClassName:ti.classNames,showCloseButtonOnHover:ti.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new nu}},Ag={id:{type:[String,Number],required:!0,default:0},type:Cn.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},$g={container:{type:[Object,Function],default:()=>document.body},newestOnTop:Cn.trueBoolean,maxToasts:{type:Number,default:20},transition:Uf.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:e=>e},filterToasts:{type:Function,default:e=>e},containerClassName:Cn.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},dr={CORE_TOAST:Rg,TOAST:Ag,CONTAINER:$g,PROGRESS_BAR:il,ICON:Hf,TRANSITION:Uf,CLOSE_BUTTON:ti},zf=a.defineComponent({name:"VtProgressBar",props:dr.PROGRESS_BAR,data(){return{hasClass:!0}},computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${En}__progress-bar`:""}},watch:{timeout(){this.hasClass=!1,this.$nextTick(()=>this.hasClass=!0)}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeUnmount(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}}});function Lg(e,t){return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style),class:a.normalizeClass(e.cpClass)},null,6)}zf.render=Lg;var Vg=zf,jf=a.defineComponent({name:"VtCloseButton",props:dr.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?Eo(this.component):"button"},classes(){const e=[`${En}__close-button`];return this.showOnHover&&e.push("show-on-hover"),e.concat(this.classNames)}}}),Fg=a.createTextVNode(" × ");function Hg(e,t){return a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.buttonComponent),a.mergeProps({"aria-label":e.ariaLabel,class:e.classes},e.$attrs),{default:a.withCtx(()=>[Fg]),_:1},16,["aria-label","class"])}jf.render=Hg;var Ug=jf,Wf={},zg={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",class:"svg-inline--fa fa-check-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},jg=a.createElementVNode("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},null,-1),Wg=[jg];function qg(e,t){return a.openBlock(),a.createElementBlock("svg",zg,Wg)}Wf.render=qg;var Yg=Wf,qf={},Gg={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",class:"svg-inline--fa fa-info-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Kg=a.createElementVNode("path",{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},null,-1),Xg=[Kg];function Jg(e,t){return a.openBlock(),a.createElementBlock("svg",Gg,Xg)}qf.render=Jg;var Ec=qf,Yf={},Qg={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",class:"svg-inline--fa fa-exclamation-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Zg=a.createElementVNode("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),ey=[Zg];function ty(e,t){return a.openBlock(),a.createElementBlock("svg",Qg,ey)}Yf.render=ty;var ny=Yf,Gf={},ry={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",class:"svg-inline--fa fa-exclamation-triangle fa-w-18",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},ay=a.createElementVNode("path",{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),oy=[ay];function iy(e,t){return a.openBlock(),a.createElementBlock("svg",ry,oy)}Gf.render=iy;var sy=Gf,Kf=a.defineComponent({name:"VtIcon",props:dr.ICON,computed:{customIconChildren(){return jn(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return $i(this.customIcon)?this.trimValue(this.customIcon):jn(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return jn(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:Ff(this.customIcon)?Eo(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[cn.DEFAULT]:Ec,[cn.INFO]:Ec,[cn.SUCCESS]:Yg,[cn.ERROR]:sy,[cn.WARNING]:ny}[this.type]},iconClasses(){const e=[`${En}__icon`];return this.hasCustomIcon?e.concat(this.customIconClass):e}},methods:{trimValue(e,t=""){return $f(e)?e.trim():t}}});function ly(e,t){return a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.component),{class:a.normalizeClass(e.iconClasses)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.customIconChildren),1)]),_:1},8,["class"])}Kf.render=ly;var uy=Kf,Xf=a.defineComponent({name:"VtToast",components:{ProgressBar:Vg,CloseButton:Ug,Icon:uy},inheritAttrs:!1,props:Object.assign({},dr.CORE_TOAST,dr.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const e=[`${En}__toast`,`${En}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&e.push("disable-transition"),this.rtl&&e.push(`${En}__toast--rtl`),e},bodyClasses(){return[`${En}__toast-${$i(this.content)?"body":"component-body"}`].concat(this.bodyClassName)},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return Cc(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeUnmount(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},methods:{hasProp:jn,getVueComponentFromObj:Eo,closeToast(){this.eventBus.emit(dn.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(!this.beingDragged||this.dragStart===this.dragPos.x)&&this.closeToast()},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const e=this.$el;e.addEventListener("touchstart",this.onDragStart,{passive:!0}),e.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const e=this.$el;e.removeEventListener("touchstart",this.onDragStart),e.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(e){this.beingDragged=!0,this.dragPos={x:Ps(e),y:Tc(e)},this.dragStart=Ps(e),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(e){this.beingDragged&&(e.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:Ps(e),y:Tc(e)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,Cc(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0}))}}}),cy=["role"];function dy(e,t){const n=a.resolveComponent("Icon"),r=a.resolveComponent("CloseButton"),o=a.resolveComponent("ProgressBar");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.draggableStyle),onClick:t[0]||(t[0]=(...i)=>e.clickHandler&&e.clickHandler(...i)),onMouseenter:t[1]||(t[1]=(...i)=>e.hoverPause&&e.hoverPause(...i)),onMouseleave:t[2]||(t[2]=(...i)=>e.hoverPlay&&e.hoverPlay(...i))},[e.icon?(a.openBlock(),a.createBlock(n,{key:0,"custom-icon":e.icon,type:e.type},null,8,["custom-icon","type"])):a.createCommentVNode("v-if",!0),a.createElementVNode("div",{role:e.accessibility.toastRole||"alert",class:a.normalizeClass(e.bodyClasses)},[typeof e.content=="string"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(e.content),1)],2112)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.getVueComponentFromObj(e.content)),a.mergeProps({key:1,"toast-id":e.id},e.hasProp(e.content,"props")?e.content.props:{},a.toHandlers(e.hasProp(e.content,"listeners")?e.content.listeners:{}),{onCloseToast:e.closeToast}),null,16,["toast-id","onCloseToast"]))],10,cy),e.closeButton?(a.openBlock(),a.createBlock(r,{key:1,component:e.closeButton,"class-names":e.closeButtonClassName,"show-on-hover":e.showCloseButtonOnHover,"aria-label":e.accessibility.closeButtonLabel,onClick:a.withModifiers(e.closeToast,["stop"])},null,8,["component","class-names","show-on-hover","aria-label","onClick"])):a.createCommentVNode("v-if",!0),e.timeout?(a.openBlock(),a.createBlock(o,{key:2,"is-running":e.isRunning,"hide-progress-bar":e.hideProgressBar,timeout:e.timeout,onCloseToast:e.timeoutHandler},null,8,["is-running","hide-progress-bar","timeout","onCloseToast"])):a.createCommentVNode("v-if",!0)],38)}Xf.render=dy;var fy=Xf,Jf=a.defineComponent({name:"VtTransition",props:dr.TRANSITION,emits:["leave"],methods:{hasProp:jn,leave(e){e instanceof HTMLElement&&(e.style.left=e.offsetLeft+"px",e.style.top=e.offsetTop+"px",e.style.width=getComputedStyle(e).width,e.style.position="absolute")}}});function py(e,t){return a.openBlock(),a.createBlock(a.TransitionGroup,{tag:"div","enter-active-class":e.transition.enter?e.transition.enter:`${e.transition}-enter-active`,"move-class":e.transition.move?e.transition.move:`${e.transition}-move`,"leave-active-class":e.transition.leave?e.transition.leave:`${e.transition}-leave-active`,onLeave:e.leave},{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default")]),_:3},8,["enter-active-class","move-class","leave-active-class","onLeave"])}Jf.render=py;var hy=Jf,Qf=a.defineComponent({name:"VueToastification",devtools:{hide:!0},components:{Toast:fy,VtTransition:hy},props:Object.assign({},dr.CORE_TOAST,dr.CONTAINER,dr.TRANSITION),data(){return{count:0,positions:Object.values(co),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const e=this.eventBus;e.on(dn.ADD,this.addToast),e.on(dn.CLEAR,this.clearToasts),e.on(dn.DISMISS,this.dismissToast),e.on(dn.UPDATE,this.updateToast),e.on(dn.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(e){Ai(e)&&(e=await e()),Og(this.$el),e.appendChild(this.$el)},setToast(e){Lr(e.id)||(this.toasts[e.id]=e)},addToast(e){e.content=Ng(e.content);const t=Object.assign({},this.defaults,e.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[e.type],e),n=this.defaults.filterBeforeCreate(t,this.toastArray);n&&this.setToast(n)},dismissToast(e){const t=this.toasts[e];!Lr(t)&&!Lr(t.onClose)&&t.onClose(),delete this.toasts[e]},clearToasts(){Object.keys(this.toasts).forEach(e=>{this.dismissToast(e)})},getPositionToasts(e){const t=this.filteredToasts.filter(n=>n.position===e).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?t.reverse():t},updateDefaults(e){Lr(e.container)||this.setup(e.container),this.defaults=Object.assign({},this.defaults,e)},updateToast({id:e,options:t,create:n}){this.toasts[e]?(t.timeout&&t.timeout===this.toasts[e].timeout&&t.timeout++,this.setToast(Object.assign({},this.toasts[e],t))):n&&this.addToast(Object.assign({},{id:e},t))},getClasses(e){return[`${En}__container`,e].concat(this.defaults.containerClassName)}}});function my(e,t){const n=a.resolveComponent("Toast"),r=a.resolveComponent("VtTransition");return a.openBlock(),a.createElementBlock("div",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.positions,o=>(a.openBlock(),a.createElementBlock("div",{key:o},[a.createVNode(r,{transition:e.defaults.transition,class:a.normalizeClass(e.getClasses(o))},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.getPositionToasts(o),i=>(a.openBlock(),a.createBlock(n,a.mergeProps({key:i.id},i),null,16))),128))]),_:2},1032,["transition","class"])]))),128))])}Qf.render=my;var vy=Qf,xc=(e={},t=!0)=>{const n=e.eventBus=e.eventBus||new nu;t&&a.nextTick(()=>{const i=a.createApp(vy,Af({},e)),s=i.mount(document.createElement("div")),l=e.onMounted;if(Lr(l)||l(s,i),e.shareAppContext){const u=e.shareAppContext;u===!0?console.warn(`[${En}] App to share context with was not provided.`):(i._context.components=u._context.components,i._context.directives=u._context.directives,i._context.mixins=u._context.mixins,i._context.provides=u._context.provides,i.config.globalProperties=u.config.globalProperties)}});const r=(i,s)=>{const l=Object.assign({},{id:Dg(),type:cn.DEFAULT},s,{content:i});return n.emit(dn.ADD,l),l.id};r.clear=()=>n.emit(dn.CLEAR,void 0),r.updateDefaults=i=>{n.emit(dn.UPDATE_DEFAULTS,i)},r.dismiss=i=>{n.emit(dn.DISMISS,i)};function o(i,{content:s,options:l},u=!1){const c=Object.assign({},l,{content:s});n.emit(dn.UPDATE,{id:i,options:c,create:u})}return r.update=o,r.success=(i,s)=>r(i,Object.assign({},s,{type:cn.SUCCESS})),r.info=(i,s)=>r(i,Object.assign({},s,{type:cn.INFO})),r.error=(i,s)=>r(i,Object.assign({},s,{type:cn.ERROR})),r.warning=(i,s)=>r(i,Object.assign({},s,{type:cn.WARNING})),r},gy=()=>{const e=()=>console.warn(`[${En}] This plugin does not support SSR!`);return new Proxy(e,{get(){return e}})};function sl(e){return Bg()?Mg(e)?xc({eventBus:e},!1):xc(e,!0):gy()}var ru=Symbol("VueToastification"),Zf=new nu,yy=(e,t)=>{(t==null?void 0:t.shareAppContext)===!0&&(t.shareAppContext=e);const n=sl(Af({eventBus:Zf},t));e.provide(ru,n)},by=e=>{if(e)return sl(e);const t=a.getCurrentInstance()?a.inject(ru,void 0):void 0;return t||sl(Zf)},_y=yy;/*!
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),kt=require("@headlessui/vue"),Sg=require("vue-router"),ui=require("@vueuse/core");var Cg=Object.defineProperty,kc=Object.getOwnPropertySymbols,Tg=Object.prototype.hasOwnProperty,Eg=Object.prototype.propertyIsEnumerable,Sc=(e,t,n)=>t in e?Cg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Af=(e,t)=>{for(var n in t||(t={}))Tg.call(t,n)&&Sc(e,n,t[n]);if(kc)for(var n of kc(t))Eg.call(t,n)&&Sc(e,n,t[n]);return e},Ai=e=>typeof e=="function",$i=e=>typeof e=="string",$f=e=>$i(e)&&e.trim().length>0,xg=e=>typeof e=="number",Lr=e=>typeof e>"u",uo=e=>typeof e=="object"&&e!==null,Pg=e=>jn(e,"tag")&&$f(e.tag),Lf=e=>window.TouchEvent&&e instanceof TouchEvent,Vf=e=>jn(e,"component")&&Ff(e.component),Ig=e=>Ai(e)||uo(e),Ff=e=>!Lr(e)&&($i(e)||Ig(e)||Vf(e)),Cc=e=>uo(e)&&["height","width","right","left","top","bottom"].every(t=>xg(e[t])),jn=(e,t)=>(uo(e)||Ai(e))&&t in e,Dg=(e=>()=>e++)(0);function Ps(e){return Lf(e)?e.targetTouches[0].clientX:e.clientX}function Tc(e){return Lf(e)?e.targetTouches[0].clientY:e.clientY}var Ng=e=>{Lr(e.remove)?e.parentNode&&e.parentNode.removeChild(e):e.remove()},Eo=e=>Vf(e)?Eo(e.component):Pg(e)?a.defineComponent({render(){return e}}):typeof e=="string"?e:a.toRaw(a.unref(e)),Og=e=>{if(typeof e=="string")return e;const t=jn(e,"props")&&uo(e.props)?e.props:{},n=jn(e,"listeners")&&uo(e.listeners)?e.listeners:{};return{component:Eo(e),props:t,listeners:n}},Bg=()=>typeof window<"u",nu=class{constructor(){this.allHandlers={}}getHandlers(e){return this.allHandlers[e]||[]}on(e,t){const n=this.getHandlers(e);n.push(t),this.allHandlers[e]=n}off(e,t){const n=this.getHandlers(e);n.splice(n.indexOf(t)>>>0,1)}emit(e,t){this.getHandlers(e).forEach(r=>r(t))}},Mg=e=>["on","off","emit"].every(t=>jn(e,t)&&Ai(e[t])),cn;(function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.DEFAULT="default"})(cn||(cn={}));var co;(function(e){e.TOP_LEFT="top-left",e.TOP_CENTER="top-center",e.TOP_RIGHT="top-right",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_CENTER="bottom-center",e.BOTTOM_RIGHT="bottom-right"})(co||(co={}));var dn;(function(e){e.ADD="add",e.DISMISS="dismiss",e.UPDATE="update",e.CLEAR="clear",e.UPDATE_DEFAULTS="update_defaults"})(dn||(dn={}));var En="Vue-Toastification",Cn={type:{type:String,default:cn.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},Hf={type:Cn.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},ti={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:Cn.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},il={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},Uf={transition:{type:[Object,String],default:`${En}__bounce`}},Rg={position:{type:String,default:co.TOP_RIGHT},draggable:Cn.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:Cn.trueBoolean,pauseOnHover:Cn.trueBoolean,closeOnClick:Cn.trueBoolean,timeout:il.timeout,hideProgressBar:il.hideProgressBar,toastClassName:Cn.classNames,bodyClassName:Cn.classNames,icon:Hf.customIcon,closeButton:ti.component,closeButtonClassName:ti.classNames,showCloseButtonOnHover:ti.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new nu}},Ag={id:{type:[String,Number],required:!0,default:0},type:Cn.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},$g={container:{type:[Object,Function],default:()=>document.body},newestOnTop:Cn.trueBoolean,maxToasts:{type:Number,default:20},transition:Uf.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:e=>e},filterToasts:{type:Function,default:e=>e},containerClassName:Cn.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},dr={CORE_TOAST:Rg,TOAST:Ag,CONTAINER:$g,PROGRESS_BAR:il,ICON:Hf,TRANSITION:Uf,CLOSE_BUTTON:ti},zf=a.defineComponent({name:"VtProgressBar",props:dr.PROGRESS_BAR,data(){return{hasClass:!0}},computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${En}__progress-bar`:""}},watch:{timeout(){this.hasClass=!1,this.$nextTick(()=>this.hasClass=!0)}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeUnmount(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}}});function Lg(e,t){return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style),class:a.normalizeClass(e.cpClass)},null,6)}zf.render=Lg;var Vg=zf,jf=a.defineComponent({name:"VtCloseButton",props:dr.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?Eo(this.component):"button"},classes(){const e=[`${En}__close-button`];return this.showOnHover&&e.push("show-on-hover"),e.concat(this.classNames)}}}),Fg=a.createTextVNode(" × ");function Hg(e,t){return a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.buttonComponent),a.mergeProps({"aria-label":e.ariaLabel,class:e.classes},e.$attrs),{default:a.withCtx(()=>[Fg]),_:1},16,["aria-label","class"])}jf.render=Hg;var Ug=jf,Wf={},zg={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",class:"svg-inline--fa fa-check-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},jg=a.createElementVNode("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},null,-1),Wg=[jg];function qg(e,t){return a.openBlock(),a.createElementBlock("svg",zg,Wg)}Wf.render=qg;var Yg=Wf,qf={},Gg={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",class:"svg-inline--fa fa-info-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Kg=a.createElementVNode("path",{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},null,-1),Xg=[Kg];function Jg(e,t){return a.openBlock(),a.createElementBlock("svg",Gg,Xg)}qf.render=Jg;var Ec=qf,Yf={},Qg={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",class:"svg-inline--fa fa-exclamation-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Zg=a.createElementVNode("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),ey=[Zg];function ty(e,t){return a.openBlock(),a.createElementBlock("svg",Qg,ey)}Yf.render=ty;var ny=Yf,Gf={},ry={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",class:"svg-inline--fa fa-exclamation-triangle fa-w-18",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},ay=a.createElementVNode("path",{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),oy=[ay];function iy(e,t){return a.openBlock(),a.createElementBlock("svg",ry,oy)}Gf.render=iy;var sy=Gf,Kf=a.defineComponent({name:"VtIcon",props:dr.ICON,computed:{customIconChildren(){return jn(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return $i(this.customIcon)?this.trimValue(this.customIcon):jn(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return jn(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:Ff(this.customIcon)?Eo(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[cn.DEFAULT]:Ec,[cn.INFO]:Ec,[cn.SUCCESS]:Yg,[cn.ERROR]:sy,[cn.WARNING]:ny}[this.type]},iconClasses(){const e=[`${En}__icon`];return this.hasCustomIcon?e.concat(this.customIconClass):e}},methods:{trimValue(e,t=""){return $f(e)?e.trim():t}}});function ly(e,t){return a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.component),{class:a.normalizeClass(e.iconClasses)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.customIconChildren),1)]),_:1},8,["class"])}Kf.render=ly;var uy=Kf,Xf=a.defineComponent({name:"VtToast",components:{ProgressBar:Vg,CloseButton:Ug,Icon:uy},inheritAttrs:!1,props:Object.assign({},dr.CORE_TOAST,dr.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const e=[`${En}__toast`,`${En}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&e.push("disable-transition"),this.rtl&&e.push(`${En}__toast--rtl`),e},bodyClasses(){return[`${En}__toast-${$i(this.content)?"body":"component-body"}`].concat(this.bodyClassName)},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return Cc(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeUnmount(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},methods:{hasProp:jn,getVueComponentFromObj:Eo,closeToast(){this.eventBus.emit(dn.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(!this.beingDragged||this.dragStart===this.dragPos.x)&&this.closeToast()},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const e=this.$el;e.addEventListener("touchstart",this.onDragStart,{passive:!0}),e.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const e=this.$el;e.removeEventListener("touchstart",this.onDragStart),e.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(e){this.beingDragged=!0,this.dragPos={x:Ps(e),y:Tc(e)},this.dragStart=Ps(e),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(e){this.beingDragged&&(e.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:Ps(e),y:Tc(e)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,Cc(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0}))}}}),cy=["role"];function dy(e,t){const n=a.resolveComponent("Icon"),r=a.resolveComponent("CloseButton"),o=a.resolveComponent("ProgressBar");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.draggableStyle),onClick:t[0]||(t[0]=(...i)=>e.clickHandler&&e.clickHandler(...i)),onMouseenter:t[1]||(t[1]=(...i)=>e.hoverPause&&e.hoverPause(...i)),onMouseleave:t[2]||(t[2]=(...i)=>e.hoverPlay&&e.hoverPlay(...i))},[e.icon?(a.openBlock(),a.createBlock(n,{key:0,"custom-icon":e.icon,type:e.type},null,8,["custom-icon","type"])):a.createCommentVNode("v-if",!0),a.createElementVNode("div",{role:e.accessibility.toastRole||"alert",class:a.normalizeClass(e.bodyClasses)},[typeof e.content=="string"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(e.content),1)],2112)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.getVueComponentFromObj(e.content)),a.mergeProps({key:1,"toast-id":e.id},e.hasProp(e.content,"props")?e.content.props:{},a.toHandlers(e.hasProp(e.content,"listeners")?e.content.listeners:{}),{onCloseToast:e.closeToast}),null,16,["toast-id","onCloseToast"]))],10,cy),e.closeButton?(a.openBlock(),a.createBlock(r,{key:1,component:e.closeButton,"class-names":e.closeButtonClassName,"show-on-hover":e.showCloseButtonOnHover,"aria-label":e.accessibility.closeButtonLabel,onClick:a.withModifiers(e.closeToast,["stop"])},null,8,["component","class-names","show-on-hover","aria-label","onClick"])):a.createCommentVNode("v-if",!0),e.timeout?(a.openBlock(),a.createBlock(o,{key:2,"is-running":e.isRunning,"hide-progress-bar":e.hideProgressBar,timeout:e.timeout,onCloseToast:e.timeoutHandler},null,8,["is-running","hide-progress-bar","timeout","onCloseToast"])):a.createCommentVNode("v-if",!0)],38)}Xf.render=dy;var fy=Xf,Jf=a.defineComponent({name:"VtTransition",props:dr.TRANSITION,emits:["leave"],methods:{hasProp:jn,leave(e){e instanceof HTMLElement&&(e.style.left=e.offsetLeft+"px",e.style.top=e.offsetTop+"px",e.style.width=getComputedStyle(e).width,e.style.position="absolute")}}});function py(e,t){return a.openBlock(),a.createBlock(a.TransitionGroup,{tag:"div","enter-active-class":e.transition.enter?e.transition.enter:`${e.transition}-enter-active`,"move-class":e.transition.move?e.transition.move:`${e.transition}-move`,"leave-active-class":e.transition.leave?e.transition.leave:`${e.transition}-leave-active`,onLeave:e.leave},{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default")]),_:3},8,["enter-active-class","move-class","leave-active-class","onLeave"])}Jf.render=py;var hy=Jf,Qf=a.defineComponent({name:"VueToastification",devtools:{hide:!0},components:{Toast:fy,VtTransition:hy},props:Object.assign({},dr.CORE_TOAST,dr.CONTAINER,dr.TRANSITION),data(){return{count:0,positions:Object.values(co),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const e=this.eventBus;e.on(dn.ADD,this.addToast),e.on(dn.CLEAR,this.clearToasts),e.on(dn.DISMISS,this.dismissToast),e.on(dn.UPDATE,this.updateToast),e.on(dn.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(e){Ai(e)&&(e=await e()),Ng(this.$el),e.appendChild(this.$el)},setToast(e){Lr(e.id)||(this.toasts[e.id]=e)},addToast(e){e.content=Og(e.content);const t=Object.assign({},this.defaults,e.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[e.type],e),n=this.defaults.filterBeforeCreate(t,this.toastArray);n&&this.setToast(n)},dismissToast(e){const t=this.toasts[e];!Lr(t)&&!Lr(t.onClose)&&t.onClose(),delete this.toasts[e]},clearToasts(){Object.keys(this.toasts).forEach(e=>{this.dismissToast(e)})},getPositionToasts(e){const t=this.filteredToasts.filter(n=>n.position===e).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?t.reverse():t},updateDefaults(e){Lr(e.container)||this.setup(e.container),this.defaults=Object.assign({},this.defaults,e)},updateToast({id:e,options:t,create:n}){this.toasts[e]?(t.timeout&&t.timeout===this.toasts[e].timeout&&t.timeout++,this.setToast(Object.assign({},this.toasts[e],t))):n&&this.addToast(Object.assign({},{id:e},t))},getClasses(e){return[`${En}__container`,e].concat(this.defaults.containerClassName)}}});function my(e,t){const n=a.resolveComponent("Toast"),r=a.resolveComponent("VtTransition");return a.openBlock(),a.createElementBlock("div",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.positions,o=>(a.openBlock(),a.createElementBlock("div",{key:o},[a.createVNode(r,{transition:e.defaults.transition,class:a.normalizeClass(e.getClasses(o))},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.getPositionToasts(o),i=>(a.openBlock(),a.createBlock(n,a.mergeProps({key:i.id},i),null,16))),128))]),_:2},1032,["transition","class"])]))),128))])}Qf.render=my;var vy=Qf,xc=(e={},t=!0)=>{const n=e.eventBus=e.eventBus||new nu;t&&a.nextTick(()=>{const i=a.createApp(vy,Af({},e)),s=i.mount(document.createElement("div")),l=e.onMounted;if(Lr(l)||l(s,i),e.shareAppContext){const u=e.shareAppContext;u===!0?console.warn(`[${En}] App to share context with was not provided.`):(i._context.components=u._context.components,i._context.directives=u._context.directives,i._context.mixins=u._context.mixins,i._context.provides=u._context.provides,i.config.globalProperties=u.config.globalProperties)}});const r=(i,s)=>{const l=Object.assign({},{id:Dg(),type:cn.DEFAULT},s,{content:i});return n.emit(dn.ADD,l),l.id};r.clear=()=>n.emit(dn.CLEAR,void 0),r.updateDefaults=i=>{n.emit(dn.UPDATE_DEFAULTS,i)},r.dismiss=i=>{n.emit(dn.DISMISS,i)};function o(i,{content:s,options:l},u=!1){const c=Object.assign({},l,{content:s});n.emit(dn.UPDATE,{id:i,options:c,create:u})}return r.update=o,r.success=(i,s)=>r(i,Object.assign({},s,{type:cn.SUCCESS})),r.info=(i,s)=>r(i,Object.assign({},s,{type:cn.INFO})),r.error=(i,s)=>r(i,Object.assign({},s,{type:cn.ERROR})),r.warning=(i,s)=>r(i,Object.assign({},s,{type:cn.WARNING})),r},gy=()=>{const e=()=>console.warn(`[${En}] This plugin does not support SSR!`);return new Proxy(e,{get(){return e}})};function sl(e){return Bg()?Mg(e)?xc({eventBus:e},!1):xc(e,!0):gy()}var ru=Symbol("VueToastification"),Zf=new nu,yy=(e,t)=>{(t==null?void 0:t.shareAppContext)===!0&&(t.shareAppContext=e);const n=sl(Af({eventBus:Zf},t));e.provide(ru,n)},by=e=>{if(e)return sl(e);const t=a.getCurrentInstance()?a.inject(ru,void 0):void 0;return t||sl(Zf)},_y=yy;/*!
2
2
  * vue-tippy v6.2.0
3
3
  * (c) 2023
4
4
  * @license MIT
5
- */var on="top",bn="bottom",_n="right",sn="left",au="auto",xo=[on,bn,_n,sn],ga="start",fo="end",wy="clippingParents",ep="viewport",ja="popper",ky="reference",Pc=xo.reduce(function(e,t){return e.concat([t+"-"+ga,t+"-"+fo])},[]),tp=[].concat(xo,[au]).reduce(function(e,t){return e.concat([t,t+"-"+ga,t+"-"+fo])},[]),Sy="beforeRead",Cy="read",Ty="afterRead",Ey="beforeMain",xy="main",Py="afterMain",Iy="beforeWrite",Dy="write",Oy="afterWrite",Ny=[Sy,Cy,Ty,Ey,xy,Py,Iy,Dy,Oy];function Gn(e){return e?(e.nodeName||"").toLowerCase():null}function Dn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ya(e){var t=Dn(e).Element;return e instanceof t||e instanceof Element}function gn(e){var t=Dn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function np(e){if(typeof ShadowRoot>"u")return!1;var t=Dn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function By(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!gn(i)||!Gn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function My(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(u,c){return u[c]="",u},{});!gn(o)||!Gn(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(u){o.removeAttribute(u)}))})}}var rp={name:"applyStyles",enabled:!0,phase:"write",fn:By,effect:My,requires:["computeStyles"]};function Wn(e){return e.split("-")[0]}var Ur=Math.max,ci=Math.min,ba=Math.round;function _a(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(gn(e)&&t){var i=e.offsetHeight,s=e.offsetWidth;s>0&&(r=ba(n.width)/s||1),i>0&&(o=ba(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function ou(e){var t=_a(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ap(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&np(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Kn(e){return Dn(e).getComputedStyle(e)}function Ry(e){return["table","td","th"].indexOf(Gn(e))>=0}function Tr(e){return((ya(e)?e.ownerDocument:e.document)||window.document).documentElement}function Li(e){return Gn(e)==="html"?e:e.assignedSlot||e.parentNode||(np(e)?e.host:null)||Tr(e)}function Ic(e){return!gn(e)||Kn(e).position==="fixed"?null:e.offsetParent}function Ay(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&gn(e)){var r=Kn(e);if(r.position==="fixed")return null}for(var o=Li(e);gn(o)&&["html","body"].indexOf(Gn(o))<0;){var i=Kn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Po(e){for(var t=Dn(e),n=Ic(e);n&&Ry(n)&&Kn(n).position==="static";)n=Ic(n);return n&&(Gn(n)==="html"||Gn(n)==="body"&&Kn(n).position==="static")?t:n||Ay(e)||t}function iu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qa(e,t,n){return Ur(e,ci(t,n))}function $y(e,t,n){var r=Qa(e,t,n);return r>n?n:r}function op(){return{top:0,right:0,bottom:0,left:0}}function ip(e){return Object.assign({},op(),e)}function sp(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Ly=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ip(typeof t!="number"?t:sp(t,xo))};function Vy(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Wn(n.placement),u=iu(l),c=[sn,_n].indexOf(l)>=0,f=c?"height":"width";if(!(!i||!s)){var p=Ly(o.padding,n),h=ou(i),m=u==="y"?on:sn,y=u==="y"?bn:_n,k=n.rects.reference[f]+n.rects.reference[u]-s[u]-n.rects.popper[f],_=s[u]-n.rects.reference[u],w=Po(i),T=w?u==="y"?w.clientHeight||0:w.clientWidth||0:0,N=k/2-_/2,b=p[m],B=T-h[f]-p[y],C=T/2-h[f]/2+N,I=Qa(b,C,B),F=u;n.modifiersData[r]=(t={},t[F]=I,t.centerOffset=I-C,t)}}function Fy(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||ap(t.elements.popper,o)&&(t.elements.arrow=o))}var Hy={name:"arrow",enabled:!0,phase:"main",fn:Vy,effect:Fy,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wa(e){return e.split("-")[1]}var Uy={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zy(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:ba(t*o)/o||0,y:ba(n*o)/o||0}}function Dc(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,p=e.isFixed,h=f===!0?zy(s):typeof f=="function"?f(s):s,m=h.x,y=m===void 0?0:m,k=h.y,_=k===void 0?0:k,w=s.hasOwnProperty("x"),T=s.hasOwnProperty("y"),N=sn,b=on,B=window;if(c){var C=Po(n),I="clientHeight",F="clientWidth";if(C===Dn(n)&&(C=Tr(n),Kn(C).position!=="static"&&l==="absolute"&&(I="scrollHeight",F="scrollWidth")),C=C,o===on||(o===sn||o===_n)&&i===fo){b=bn;var q=p&&B.visualViewport?B.visualViewport.height:C[I];_-=q-r.height,_*=u?1:-1}if(o===sn||(o===on||o===bn)&&i===fo){N=_n;var W=p&&B.visualViewport?B.visualViewport.width:C[F];y-=W-r.width,y*=u?1:-1}}var M=Object.assign({position:l},c&&Uy);if(u){var D;return Object.assign({},M,(D={},D[b]=T?"0":"",D[N]=w?"0":"",D.transform=(B.devicePixelRatio||1)<=1?"translate("+y+"px, "+_+"px)":"translate3d("+y+"px, "+_+"px, 0)",D))}return Object.assign({},M,(t={},t[b]=T?_+"px":"",t[N]=w?y+"px":"",t.transform="",t))}function jy(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,u=l===void 0?!0:l,c={placement:Wn(t.placement),variation:wa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Dc(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Dc(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Wy={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jy,data:{}},Lo={passive:!0};function qy(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,u=Dn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(f){f.addEventListener("scroll",n.update,Lo)}),l&&u.addEventListener("resize",n.update,Lo),function(){i&&c.forEach(function(f){f.removeEventListener("scroll",n.update,Lo)}),l&&u.removeEventListener("resize",n.update,Lo)}}var Yy={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qy,data:{}},Gy={left:"right",right:"left",bottom:"top",top:"bottom"};function ni(e){return e.replace(/left|right|bottom|top/g,function(t){return Gy[t]})}var Ky={start:"end",end:"start"};function Oc(e){return e.replace(/start|end/g,function(t){return Ky[t]})}function su(e){var t=Dn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function lu(e){return _a(Tr(e)).left+su(e).scrollLeft}function Xy(e){var t=Dn(e),n=Tr(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,s=0,l=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,l=r.offsetTop)),{width:o,height:i,x:s+lu(e),y:l}}function Jy(e){var t,n=Tr(e),r=su(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ur(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ur(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+lu(e),u=-r.scrollTop;return Kn(o||n).direction==="rtl"&&(l+=Ur(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:u}}function uu(e){var t=Kn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function lp(e){return["html","body","#document"].indexOf(Gn(e))>=0?e.ownerDocument.body:gn(e)&&uu(e)?e:lp(Li(e))}function Za(e,t){var n;t===void 0&&(t=[]);var r=lp(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Dn(r),s=o?[i].concat(i.visualViewport||[],uu(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(Za(Li(s)))}function ll(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Qy(e){var t=_a(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Nc(e,t){return t===ep?ll(Xy(e)):ya(t)?Qy(t):ll(Jy(Tr(e)))}function Zy(e){var t=Za(Li(e)),n=["absolute","fixed"].indexOf(Kn(e).position)>=0,r=n&&gn(e)?Po(e):e;return ya(r)?t.filter(function(o){return ya(o)&&ap(o,r)&&Gn(o)!=="body"&&(n?Kn(o).position!=="static":!0)}):[]}function e0(e,t,n){var r=t==="clippingParents"?Zy(e):[].concat(t),o=[].concat(r,[n]),i=o[0],s=o.reduce(function(l,u){var c=Nc(e,u);return l.top=Ur(c.top,l.top),l.right=ci(c.right,l.right),l.bottom=ci(c.bottom,l.bottom),l.left=Ur(c.left,l.left),l},Nc(e,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function up(e){var t=e.reference,n=e.element,r=e.placement,o=r?Wn(r):null,i=r?wa(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(o){case on:u={x:s,y:t.y-n.height};break;case bn:u={x:s,y:t.y+t.height};break;case _n:u={x:t.x+t.width,y:l};break;case sn:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var c=o?iu(o):null;if(c!=null){var f=c==="y"?"height":"width";switch(i){case ga:u[c]=u[c]-(t[f]/2-n[f]/2);break;case fo:u[c]=u[c]+(t[f]/2-n[f]/2);break}}return u}function po(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.boundary,s=i===void 0?wy:i,l=n.rootBoundary,u=l===void 0?ep:l,c=n.elementContext,f=c===void 0?ja:c,p=n.altBoundary,h=p===void 0?!1:p,m=n.padding,y=m===void 0?0:m,k=ip(typeof y!="number"?y:sp(y,xo)),_=f===ja?ky:ja,w=e.rects.popper,T=e.elements[h?_:f],N=e0(ya(T)?T:T.contextElement||Tr(e.elements.popper),s,u),b=_a(e.elements.reference),B=up({reference:b,element:w,strategy:"absolute",placement:o}),C=ll(Object.assign({},w,B)),I=f===ja?C:b,F={top:N.top-I.top+k.top,bottom:I.bottom-N.bottom+k.bottom,left:N.left-I.left+k.left,right:I.right-N.right+k.right},q=e.modifiersData.offset;if(f===ja&&q){var W=q[o];Object.keys(F).forEach(function(M){var D=[_n,bn].indexOf(M)>=0?1:-1,$=[on,bn].indexOf(M)>=0?"y":"x";F[M]+=W[$]*D})}return F}function t0(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?tp:u,f=wa(r),p=f?l?Pc:Pc.filter(function(y){return wa(y)===f}):xo,h=p.filter(function(y){return c.indexOf(y)>=0});h.length===0&&(h=p);var m=h.reduce(function(y,k){return y[k]=po(e,{placement:k,boundary:o,rootBoundary:i,padding:s})[Wn(k)],y},{});return Object.keys(m).sort(function(y,k){return m[y]-m[k]})}function n0(e){if(Wn(e)===au)return[];var t=ni(e);return[Oc(e),t,Oc(t)]}function r0(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,u=n.fallbackPlacements,c=n.padding,f=n.boundary,p=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,y=m===void 0?!0:m,k=n.allowedAutoPlacements,_=t.options.placement,w=Wn(_),T=w===_,N=u||(T||!y?[ni(_)]:n0(_)),b=[_].concat(N).reduce(function(E,P){return E.concat(Wn(P)===au?t0(t,{placement:P,boundary:f,rootBoundary:p,padding:c,flipVariations:y,allowedAutoPlacements:k}):P)},[]),B=t.rects.reference,C=t.rects.popper,I=new Map,F=!0,q=b[0],W=0;W<b.length;W++){var M=b[W],D=Wn(M),$=wa(M)===ga,Y=[on,bn].indexOf(D)>=0,X=Y?"width":"height",K=po(t,{placement:M,boundary:f,rootBoundary:p,altBoundary:h,padding:c}),j=Y?$?_n:sn:$?bn:on;B[X]>C[X]&&(j=ni(j));var U=ni(j),S=[];if(i&&S.push(K[D]<=0),l&&S.push(K[j]<=0,K[U]<=0),S.every(function(E){return E})){q=M,F=!1;break}I.set(M,S)}if(F)for(var H=y?3:1,Z=function(P){var R=b.find(function(G){var ie=I.get(G);if(ie)return ie.slice(0,P).every(function(oe){return oe})});if(R)return q=R,"break"},Q=H;Q>0;Q--){var V=Z(Q);if(V==="break")break}t.placement!==q&&(t.modifiersData[r]._skip=!0,t.placement=q,t.reset=!0)}}var a0={name:"flip",enabled:!0,phase:"main",fn:r0,requiresIfExists:["offset"],data:{_skip:!1}};function Bc(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Mc(e){return[on,_n,bn,sn].some(function(t){return e[t]>=0})}function o0(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=po(t,{elementContext:"reference"}),l=po(t,{altBoundary:!0}),u=Bc(s,r),c=Bc(l,o,i),f=Mc(u),p=Mc(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}var i0={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:o0};function s0(e,t,n){var r=Wn(e),o=[sn,on].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*o,[sn,_n].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function l0(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=tp.reduce(function(f,p){return f[p]=s0(p,t.rects,i),f},{}),l=s[t.placement],u=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}var u0={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:l0};function c0(e){var t=e.state,n=e.name;t.modifiersData[n]=up({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var d0={name:"popperOffsets",enabled:!0,phase:"read",fn:c0,data:{}};function f0(e){return e==="x"?"y":"x"}function p0(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,u=n.boundary,c=n.rootBoundary,f=n.altBoundary,p=n.padding,h=n.tether,m=h===void 0?!0:h,y=n.tetherOffset,k=y===void 0?0:y,_=po(t,{boundary:u,rootBoundary:c,padding:p,altBoundary:f}),w=Wn(t.placement),T=wa(t.placement),N=!T,b=iu(w),B=f0(b),C=t.modifiersData.popperOffsets,I=t.rects.reference,F=t.rects.popper,q=typeof k=="function"?k(Object.assign({},t.rects,{placement:t.placement})):k,W=typeof q=="number"?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(C){if(i){var $,Y=b==="y"?on:sn,X=b==="y"?bn:_n,K=b==="y"?"height":"width",j=C[b],U=j+_[Y],S=j-_[X],H=m?-F[K]/2:0,Z=T===ga?I[K]:F[K],Q=T===ga?-F[K]:-I[K],V=t.elements.arrow,E=m&&V?ou(V):{width:0,height:0},P=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:op(),R=P[Y],G=P[X],ie=Qa(0,I[K],E[K]),oe=N?I[K]/2-H-ie-R-W.mainAxis:Z-ie-R-W.mainAxis,Ie=N?-I[K]/2+H+ie+G+W.mainAxis:Q+ie+G+W.mainAxis,Ee=t.elements.arrow&&Po(t.elements.arrow),fe=Ee?b==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,Be=($=M==null?void 0:M[b])!=null?$:0,$e=j+oe-Be-fe,ze=j+Ie-Be,Ge=Qa(m?ci(U,$e):U,j,m?Ur(S,ze):S);C[b]=Ge,D[b]=Ge-j}if(l){var Ke,ve=b==="x"?on:sn,Qe=b==="x"?bn:_n,Te=C[B],se=B==="y"?"height":"width",ce=Te+_[ve],me=Te-_[Qe],Pt=[on,sn].indexOf(w)!==-1,xe=(Ke=M==null?void 0:M[B])!=null?Ke:0,Mt=Pt?ce:Te-I[se]-F[se]-xe+W.altAxis,Ut=Pt?Te+I[se]+F[se]-xe-W.altAxis:me,Rt=m&&Pt?$y(Mt,Te,Ut):Qa(m?Mt:ce,Te,m?Ut:me);C[B]=Rt,D[B]=Rt-Te}t.modifiersData[r]=D}}var h0={name:"preventOverflow",enabled:!0,phase:"main",fn:p0,requiresIfExists:["offset"]};function m0(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function v0(e){return e===Dn(e)||!gn(e)?su(e):m0(e)}function g0(e){var t=e.getBoundingClientRect(),n=ba(t.width)/e.offsetWidth||1,r=ba(t.height)/e.offsetHeight||1;return n!==1||r!==1}function y0(e,t,n){n===void 0&&(n=!1);var r=gn(t),o=gn(t)&&g0(t),i=Tr(t),s=_a(e,o),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Gn(t)!=="body"||uu(i))&&(l=v0(t)),gn(t)?(u=_a(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=lu(i))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function b0(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&o(u)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function _0(e){var t=b0(e);return Ny.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function w0(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function k0(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Rc={placement:"bottom",modifiers:[],strategy:"absolute"};function Ac(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function S0(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Rc:o;return function(l,u,c){c===void 0&&(c=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rc,i),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},p=[],h=!1,m={state:f,setOptions:function(w){var T=typeof w=="function"?w(f.options):w;k(),f.options=Object.assign({},i,f.options,T),f.scrollParents={reference:ya(l)?Za(l):l.contextElement?Za(l.contextElement):[],popper:Za(u)};var N=_0(k0([].concat(r,f.options.modifiers)));return f.orderedModifiers=N.filter(function(b){return b.enabled}),y(),m.update()},forceUpdate:function(){if(!h){var w=f.elements,T=w.reference,N=w.popper;if(Ac(T,N)){f.rects={reference:y0(T,Po(N),f.options.strategy==="fixed"),popper:ou(N)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(W){return f.modifiersData[W.name]=Object.assign({},W.data)});for(var b=0;b<f.orderedModifiers.length;b++){if(f.reset===!0){f.reset=!1,b=-1;continue}var B=f.orderedModifiers[b],C=B.fn,I=B.options,F=I===void 0?{}:I,q=B.name;typeof C=="function"&&(f=C({state:f,options:F,name:q,instance:m})||f)}}}},update:w0(function(){return new Promise(function(_){m.forceUpdate(),_(f)})}),destroy:function(){k(),h=!0}};if(!Ac(l,u))return m;m.setOptions(c).then(function(_){!h&&c.onFirstUpdate&&c.onFirstUpdate(_)});function y(){f.orderedModifiers.forEach(function(_){var w=_.name,T=_.options,N=T===void 0?{}:T,b=_.effect;if(typeof b=="function"){var B=b({state:f,name:w,instance:m,options:N}),C=function(){};p.push(B||C)}})}function k(){p.forEach(function(_){return _()}),p=[]}return m}}var C0=[Yy,d0,Wy,rp,u0,a0,h0,Hy,i0],T0=S0({defaultModifiers:C0}),E0="tippy-box",cp="tippy-content",dp="tippy-backdrop",fp="tippy-arrow",pp="tippy-svg-arrow",Mr={passive:!0,capture:!0},hp=function(){return document.body};function Is(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function cu(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function mp(e,t){return typeof e=="function"?e.apply(void 0,t):e}function $c(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function x0(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function P0(e){return e.split(/\s+/).filter(Boolean)}function Ar(e){return[].concat(e)}function Lc(e,t){e.indexOf(t)===-1&&e.push(t)}function I0(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function vp(e){return e.split("-")[0]}function ka(e){return[].slice.call(e)}function Vc(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function zr(){return document.createElement("div")}function Vi(e){return["Element","Fragment"].some(function(t){return cu(e,t)})}function D0(e){return cu(e,"NodeList")}function du(e){return cu(e,"MouseEvent")}function O0(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function N0(e){return Vi(e)?[e]:D0(e)?ka(e):Array.isArray(e)?e:ka(document.querySelectorAll(e))}function Ds(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function ho(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function gp(e){var t,n=Ar(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function B0(e,t){var n=t.clientX,r=t.clientY;return e.every(function(o){var i=o.popperRect,s=o.popperState,l=o.props,u=l.interactiveBorder,c=vp(s.placement),f=s.modifiersData.offset;if(!f)return!0;var p=c==="bottom"?f.top.y:0,h=c==="top"?f.bottom.y:0,m=c==="right"?f.left.x:0,y=c==="left"?f.right.x:0,k=i.top-r+p>u,_=r-i.bottom-h>u,w=i.left-n+m>u,T=n-i.right-y>u;return k||_||w||T})}function Os(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[r](o,n)})}function Fc(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Rn={isTouch:!1},Hc=0;function M0(){Rn.isTouch||(Rn.isTouch=!0,window.performance&&document.addEventListener("mousemove",yp))}function yp(){var e=performance.now();e-Hc<20&&(Rn.isTouch=!1,document.removeEventListener("mousemove",yp)),Hc=e}function R0(){var e=document.activeElement;if(O0(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function A0(){document.addEventListener("touchstart",M0,Mr),window.addEventListener("blur",R0)}var $0=typeof window<"u"&&typeof document<"u",L0=$0?!!window.msCrypto:!1,V0={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},F0={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},xn=Object.assign({appendTo:hp,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},V0,F0),H0=Object.keys(xn),U0=function(t){var n=Object.keys(t);n.forEach(function(r){xn[r]=t[r]})};function bp(e){var t=e.plugins||[],n=t.reduce(function(r,o){var i=o.name,s=o.defaultValue;if(i){var l;r[i]=e[i]!==void 0?e[i]:(l=xn[i])!=null?l:s}return r},{});return Object.assign({},e,n)}function z0(e,t){var n=t?Object.keys(bp(Object.assign({},xn,{plugins:t}))):H0,r=n.reduce(function(o,i){var s=(e.getAttribute("data-tippy-"+i)||"").trim();if(!s)return o;if(i==="content")o[i]=s;else try{o[i]=JSON.parse(s)}catch{o[i]=s}return o},{});return r}function Uc(e,t){var n=Object.assign({},t,{content:mp(t.content,[e])},t.ignoreAttributes?{}:z0(e,t.plugins));return n.aria=Object.assign({},xn.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var j0=function(){return"innerHTML"};function ul(e,t){e[j0()]=t}function zc(e){var t=zr();return e===!0?t.className=fp:(t.className=pp,Vi(e)?t.appendChild(e):ul(t,e)),t}function jc(e,t){Vi(t.content)?(ul(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?ul(e,t.content):e.textContent=t.content)}function di(e){var t=e.firstElementChild,n=ka(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(cp)}),arrow:n.find(function(r){return r.classList.contains(fp)||r.classList.contains(pp)}),backdrop:n.find(function(r){return r.classList.contains(dp)})}}function _p(e){var t=zr(),n=zr();n.className=E0,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=zr();r.className=cp,r.setAttribute("data-state","hidden"),jc(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props);function o(i,s){var l=di(t),u=l.box,c=l.content,f=l.arrow;s.theme?u.setAttribute("data-theme",s.theme):u.removeAttribute("data-theme"),typeof s.animation=="string"?u.setAttribute("data-animation",s.animation):u.removeAttribute("data-animation"),s.inertia?u.setAttribute("data-inertia",""):u.removeAttribute("data-inertia"),u.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?u.setAttribute("role",s.role):u.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&jc(c,e.props),s.arrow?f?i.arrow!==s.arrow&&(u.removeChild(f),u.appendChild(zc(s.arrow))):u.appendChild(zc(s.arrow)):f&&u.removeChild(f)}return{popper:t,onUpdate:o}}_p.$$tippy=!0;var W0=1,Vo=[],Ns=[];function q0(e,t){var n=Uc(e,Object.assign({},xn,bp(Vc(t)))),r,o,i,s=!1,l=!1,u=!1,c=!1,f,p,h,m=[],y=$c($e,n.interactiveDebounce),k,_=W0++,w=null,T=I0(n.plugins),N={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},b={id:_,reference:e,popper:zr(),popperInstance:w,props:n,state:N,plugins:T,clearDelayTimeouts:Mt,setProps:Ut,setContent:Rt,show:zt,hide:kn,hideWithInteractivity:Sn,enable:Pt,disable:xe,unmount:Et,destroy:L};if(!n.render)return b;var B=n.render(b),C=B.popper,I=B.onUpdate;C.setAttribute("data-tippy-root",""),C.id="tippy-"+b.id,b.popper=C,e._tippy=b,C._tippy=b;var F=T.map(function(O){return O.fn(b)}),q=e.hasAttribute("aria-expanded");return Ee(),H(),j(),U("onCreate",[b]),n.showOnCreate&&ce(),C.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),C.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&Y().addEventListener("mousemove",y)}),b;function W(){var O=b.props.touch;return Array.isArray(O)?O:[O,0]}function M(){return W()[0]==="hold"}function D(){var O;return!!((O=b.props.render)!=null&&O.$$tippy)}function $(){return k||e}function Y(){var O=$().parentNode;return O?gp(O):document}function X(){return di(C)}function K(O){return b.state.isMounted&&!b.state.isVisible||Rn.isTouch||f&&f.type==="focus"?0:Is(b.props.delay,O?0:1,xn.delay)}function j(O){O===void 0&&(O=!1),C.style.pointerEvents=b.props.interactive&&!O?"":"none",C.style.zIndex=""+b.props.zIndex}function U(O,ee,re){if(re===void 0&&(re=!0),F.forEach(function(we){we[O]&&we[O].apply(we,ee)}),re){var ge;(ge=b.props)[O].apply(ge,ee)}}function S(){var O=b.props.aria;if(O.content){var ee="aria-"+O.content,re=C.id,ge=Ar(b.props.triggerTarget||e);ge.forEach(function(we){var qe=we.getAttribute(ee);if(b.state.isVisible)we.setAttribute(ee,qe?qe+" "+re:re);else{var J=qe&&qe.replace(re,"").trim();J?we.setAttribute(ee,J):we.removeAttribute(ee)}})}}function H(){if(!(q||!b.props.aria.expanded)){var O=Ar(b.props.triggerTarget||e);O.forEach(function(ee){b.props.interactive?ee.setAttribute("aria-expanded",b.state.isVisible&&ee===$()?"true":"false"):ee.removeAttribute("aria-expanded")})}}function Z(){Y().removeEventListener("mousemove",y),Vo=Vo.filter(function(O){return O!==y})}function Q(O){if(!(Rn.isTouch&&(u||O.type==="mousedown"))){var ee=O.composedPath&&O.composedPath()[0]||O.target;if(!(b.props.interactive&&Fc(C,ee))){if(Ar(b.props.triggerTarget||e).some(function(re){return Fc(re,ee)})){if(Rn.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else U("onClickOutside",[b,O]);b.props.hideOnClick===!0&&(b.clearDelayTimeouts(),b.hide(),l=!0,setTimeout(function(){l=!1}),b.state.isMounted||R())}}}function V(){u=!0}function E(){u=!1}function P(){var O=Y();O.addEventListener("mousedown",Q,!0),O.addEventListener("touchend",Q,Mr),O.addEventListener("touchstart",E,Mr),O.addEventListener("touchmove",V,Mr)}function R(){var O=Y();O.removeEventListener("mousedown",Q,!0),O.removeEventListener("touchend",Q,Mr),O.removeEventListener("touchstart",E,Mr),O.removeEventListener("touchmove",V,Mr)}function G(O,ee){oe(O,function(){!b.state.isVisible&&C.parentNode&&C.parentNode.contains(C)&&ee()})}function ie(O,ee){oe(O,ee)}function oe(O,ee){var re=X().box;function ge(we){we.target===re&&(Os(re,"remove",ge),ee())}if(O===0)return ee();Os(re,"remove",p),Os(re,"add",ge),p=ge}function Ie(O,ee,re){re===void 0&&(re=!1);var ge=Ar(b.props.triggerTarget||e);ge.forEach(function(we){we.addEventListener(O,ee,re),m.push({node:we,eventType:O,handler:ee,options:re})})}function Ee(){M()&&(Ie("touchstart",Be,{passive:!0}),Ie("touchend",ze,{passive:!0})),P0(b.props.trigger).forEach(function(O){if(O!=="manual")switch(Ie(O,Be),O){case"mouseenter":Ie("mouseleave",ze);break;case"focus":Ie(L0?"focusout":"blur",Ge);break;case"focusin":Ie("focusout",Ge);break}})}function fe(){m.forEach(function(O){var ee=O.node,re=O.eventType,ge=O.handler,we=O.options;ee.removeEventListener(re,ge,we)}),m=[]}function Be(O){var ee,re=!1;if(!(!b.state.isEnabled||Ke(O)||l)){var ge=((ee=f)==null?void 0:ee.type)==="focus";f=O,k=O.currentTarget,H(),!b.state.isVisible&&du(O)&&Vo.forEach(function(we){return we(O)}),O.type==="click"&&(b.props.trigger.indexOf("mouseenter")<0||s)&&b.props.hideOnClick!==!1&&b.state.isVisible?re=!0:ce(O),O.type==="click"&&(s=!re),re&&!ge&&me(O)}}function $e(O){var ee=O.target,re=$().contains(ee)||C.contains(ee);if(!(O.type==="mousemove"&&re)){var ge=se().concat(C).map(function(we){var qe,J=we._tippy,le=(qe=J.popperInstance)==null?void 0:qe.state;return le?{popperRect:we.getBoundingClientRect(),popperState:le,props:n}:null}).filter(Boolean);B0(ge,O)&&(Z(),me(O))}}function ze(O){var ee=Ke(O)||b.props.trigger.indexOf("click")>=0&&s;if(!ee){if(b.props.interactive){b.hideWithInteractivity(O);return}me(O)}}function Ge(O){b.props.trigger.indexOf("focusin")<0&&O.target!==$()||b.props.interactive&&O.relatedTarget&&C.contains(O.relatedTarget)||me(O)}function Ke(O){return Rn.isTouch?M()!==O.type.indexOf("touch")>=0:!1}function ve(){Qe();var O=b.props,ee=O.popperOptions,re=O.placement,ge=O.offset,we=O.getReferenceClientRect,qe=O.moveTransition,J=D()?di(C).arrow:null,le=we?{getBoundingClientRect:we,contextElement:we.contextElement||$()}:e,Le={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(pe){var mt=pe.state;if(D()){var Me=X(),ln=Me.box;["placement","reference-hidden","escaped"].forEach(function(At){At==="placement"?ln.setAttribute("data-placement",mt.placement):mt.attributes.popper["data-popper-"+At]?ln.setAttribute("data-"+At,""):ln.removeAttribute("data-"+At)}),mt.attributes.popper={}}}},De=[{name:"offset",options:{offset:ge}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!qe}},Le];D()&&J&&De.push({name:"arrow",options:{element:J,padding:3}}),De.push.apply(De,(ee==null?void 0:ee.modifiers)||[]),b.popperInstance=T0(le,C,Object.assign({},ee,{placement:re,onFirstUpdate:h,modifiers:De}))}function Qe(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Te(){var O=b.props.appendTo,ee,re=$();b.props.interactive&&O===hp||O==="parent"?ee=re.parentNode:ee=mp(O,[re]),ee.contains(C)||ee.appendChild(C),b.state.isMounted=!0,ve()}function se(){return ka(C.querySelectorAll("[data-tippy-root]"))}function ce(O){b.clearDelayTimeouts(),O&&U("onTrigger",[b,O]),P();var ee=K(!0),re=W(),ge=re[0],we=re[1];Rn.isTouch&&ge==="hold"&&we&&(ee=we),ee?r=setTimeout(function(){b.show()},ee):b.show()}function me(O){if(b.clearDelayTimeouts(),U("onUntrigger",[b,O]),!b.state.isVisible){R();return}if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(O.type)>=0&&s)){var ee=K(!1);ee?o=setTimeout(function(){b.state.isVisible&&b.hide()},ee):i=requestAnimationFrame(function(){b.hide()})}}function Pt(){b.state.isEnabled=!0}function xe(){b.hide(),b.state.isEnabled=!1}function Mt(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)}function Ut(O){if(!b.state.isDestroyed){U("onBeforeUpdate",[b,O]),fe();var ee=b.props,re=Uc(e,Object.assign({},ee,Vc(O),{ignoreAttributes:!0}));b.props=re,Ee(),ee.interactiveDebounce!==re.interactiveDebounce&&(Z(),y=$c($e,re.interactiveDebounce)),ee.triggerTarget&&!re.triggerTarget?Ar(ee.triggerTarget).forEach(function(ge){ge.removeAttribute("aria-expanded")}):re.triggerTarget&&e.removeAttribute("aria-expanded"),H(),j(),I&&I(ee,re),b.popperInstance&&(ve(),se().forEach(function(ge){requestAnimationFrame(ge._tippy.popperInstance.forceUpdate)})),U("onAfterUpdate",[b,O])}}function Rt(O){b.setProps({content:O})}function zt(){var O=b.state.isVisible,ee=b.state.isDestroyed,re=!b.state.isEnabled,ge=Rn.isTouch&&!b.props.touch,we=Is(b.props.duration,0,xn.duration);if(!(O||ee||re||ge)&&!$().hasAttribute("disabled")&&(U("onShow",[b],!1),b.props.onShow(b)!==!1)){if(b.state.isVisible=!0,D()&&(C.style.visibility="visible"),j(),P(),b.state.isMounted||(C.style.transition="none"),D()){var qe=X(),J=qe.box,le=qe.content;Ds([J,le],0)}h=function(){var De;if(!(!b.state.isVisible||c)){if(c=!0,C.offsetHeight,C.style.transition=b.props.moveTransition,D()&&b.props.animation){var st=X(),pe=st.box,mt=st.content;Ds([pe,mt],we),ho([pe,mt],"visible")}S(),H(),Lc(Ns,b),(De=b.popperInstance)==null||De.forceUpdate(),U("onMount",[b]),b.props.animation&&D()&&ie(we,function(){b.state.isShown=!0,U("onShown",[b])})}},Te()}}function kn(){var O=!b.state.isVisible,ee=b.state.isDestroyed,re=!b.state.isEnabled,ge=Is(b.props.duration,1,xn.duration);if(!(O||ee||re)&&(U("onHide",[b],!1),b.props.onHide(b)!==!1)){if(b.state.isVisible=!1,b.state.isShown=!1,c=!1,s=!1,D()&&(C.style.visibility="hidden"),Z(),R(),j(!0),D()){var we=X(),qe=we.box,J=we.content;b.props.animation&&(Ds([qe,J],ge),ho([qe,J],"hidden"))}S(),H(),b.props.animation?D()&&G(ge,b.unmount):b.unmount()}}function Sn(O){Y().addEventListener("mousemove",y),Lc(Vo,y),y(O)}function Et(){b.state.isVisible&&b.hide(),b.state.isMounted&&(Qe(),se().forEach(function(O){O._tippy.unmount()}),C.parentNode&&C.parentNode.removeChild(C),Ns=Ns.filter(function(O){return O!==b}),b.state.isMounted=!1,U("onHidden",[b]))}function L(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),fe(),delete e._tippy,b.state.isDestroyed=!0,U("onDestroy",[b]))}}function Ce(e,t){t===void 0&&(t={});var n=xn.plugins.concat(t.plugins||[]);A0();var r=Object.assign({},t,{plugins:n}),o=N0(e),i=o.reduce(function(s,l){var u=l&&q0(l,r);return u&&s.push(u),s},[]);return Vi(e)?i[0]:i}Ce.defaultProps=xn;Ce.setDefaultProps=U0;Ce.currentInput=Rn;var Y0=Object.assign({},rp,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}}),G0=function(t,n){var r;n===void 0&&(n={});var o=t,i=[],s=[],l,u=n.overrides,c=[],f=!1;function p(){s=o.map(function(b){return Ar(b.props.triggerTarget||b.reference)}).reduce(function(b,B){return b.concat(B)},[])}function h(){i=o.map(function(b){return b.reference})}function m(b){o.forEach(function(B){b?B.enable():B.disable()})}function y(b){return o.map(function(B){var C=B.setProps;return B.setProps=function(I){C(I),B.reference===l&&b.setProps(I)},function(){B.setProps=C}})}function k(b,B){var C=s.indexOf(B);if(B!==l){l=B;var I=(u||[]).concat("content").reduce(function(F,q){return F[q]=o[C].props[q],F},{});b.setProps(Object.assign({},I,{getReferenceClientRect:typeof I.getReferenceClientRect=="function"?I.getReferenceClientRect:function(){var F;return(F=i[C])==null?void 0:F.getBoundingClientRect()}}))}}m(!1),h(),p();var _={fn:function(){return{onDestroy:function(){m(!0)},onHidden:function(){l=null},onClickOutside:function(C){C.props.showOnCreate&&!f&&(f=!0,l=null)},onShow:function(C){C.props.showOnCreate&&!f&&(f=!0,k(C,i[0]))},onTrigger:function(C,I){k(C,I.currentTarget)}}}},w=Ce(zr(),Object.assign({},x0(n,["overrides"]),{plugins:[_].concat(n.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},n.popperOptions,{modifiers:[].concat(((r=n.popperOptions)==null?void 0:r.modifiers)||[],[Y0])})})),T=w.show;w.show=function(b){if(T(),!l&&b==null)return k(w,i[0]);if(!(l&&b==null)){if(typeof b=="number")return i[b]&&k(w,i[b]);if(o.indexOf(b)>=0){var B=b.reference;return k(w,B)}if(i.indexOf(b)>=0)return k(w,b)}},w.showNext=function(){var b=i[0];if(!l)return w.show(0);var B=i.indexOf(l);w.show(i[B+1]||b)},w.showPrevious=function(){var b=i[i.length-1];if(!l)return w.show(b);var B=i.indexOf(l),C=i[B-1]||b;w.show(C)};var N=w.setProps;return w.setProps=function(b){u=b.overrides||u,N(b)},w.setInstances=function(b){m(!0),c.forEach(function(B){return B()}),o=b,m(!1),h(),p(),c=y(w),w.setProps({triggerTarget:s})},c=y(w),w},K0={name:"animateFill",defaultValue:!1,fn:function(t){var n;if(!((n=t.props.render)!=null&&n.$$tippy))return{};var r=di(t.popper),o=r.box,i=r.content,s=t.props.animateFill?X0():null;return{onCreate:function(){s&&(o.insertBefore(s,o.firstElementChild),o.setAttribute("data-animatefill",""),o.style.overflow="hidden",t.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(s){var u=o.style.transitionDuration,c=Number(u.replace("ms",""));i.style.transitionDelay=Math.round(c/10)+"ms",s.style.transitionDuration=u,ho([s],"visible")}},onShow:function(){s&&(s.style.transitionDuration="0ms")},onHide:function(){s&&ho([s],"hidden")}}}};function X0(){var e=zr();return e.className=dp,ho([e],"hidden"),e}var cl={clientX:0,clientY:0},Fo=[];function wp(e){var t=e.clientX,n=e.clientY;cl={clientX:t,clientY:n}}function J0(e){e.addEventListener("mousemove",wp)}function Q0(e){e.removeEventListener("mousemove",wp)}var Z0={name:"followCursor",defaultValue:!1,fn:function(t){var n=t.reference,r=gp(t.props.triggerTarget||n),o=!1,i=!1,s=!0,l=t.props;function u(){return t.props.followCursor==="initial"&&t.state.isVisible}function c(){r.addEventListener("mousemove",h)}function f(){r.removeEventListener("mousemove",h)}function p(){o=!0,t.setProps({getReferenceClientRect:null}),o=!1}function h(k){var _=k.target?n.contains(k.target):!0,w=t.props.followCursor,T=k.clientX,N=k.clientY,b=n.getBoundingClientRect(),B=T-b.left,C=N-b.top;(_||!t.props.interactive)&&t.setProps({getReferenceClientRect:function(){var F=n.getBoundingClientRect(),q=T,W=N;w==="initial"&&(q=F.left+B,W=F.top+C);var M=w==="horizontal"?F.top:W,D=w==="vertical"?F.right:q,$=w==="horizontal"?F.bottom:W,Y=w==="vertical"?F.left:q;return{width:D-Y,height:$-M,top:M,right:D,bottom:$,left:Y}}})}function m(){t.props.followCursor&&(Fo.push({instance:t,doc:r}),J0(r))}function y(){Fo=Fo.filter(function(k){return k.instance!==t}),Fo.filter(function(k){return k.doc===r}).length===0&&Q0(r)}return{onCreate:m,onDestroy:y,onBeforeUpdate:function(){l=t.props},onAfterUpdate:function(_,w){var T=w.followCursor;o||T!==void 0&&l.followCursor!==T&&(y(),T?(m(),t.state.isMounted&&!i&&!u()&&c()):(f(),p()))},onMount:function(){t.props.followCursor&&!i&&(s&&(h(cl),s=!1),u()||c())},onTrigger:function(_,w){du(w)&&(cl={clientX:w.clientX,clientY:w.clientY}),i=w.type==="focus"},onHidden:function(){t.props.followCursor&&(p(),f(),s=!0)}}}};function eb(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat((((n=e.popperOptions)==null?void 0:n.modifiers)||[]).filter(function(r){var o=r.name;return o!==t.name}),[t])})}}var tb={name:"inlinePositioning",defaultValue:!1,fn:function(t){var n=t.reference;function r(){return!!t.props.inlinePositioning}var o,i=-1,s=!1,l=[],u={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(m){var y=m.state;r()&&(l.indexOf(y.placement)!==-1&&(l=[]),o!==y.placement&&l.indexOf(y.placement)===-1&&(l.push(y.placement),t.setProps({getReferenceClientRect:function(){return c(y.placement)}})),o=y.placement)}};function c(h){return nb(vp(h),n.getBoundingClientRect(),ka(n.getClientRects()),i)}function f(h){s=!0,t.setProps(h),s=!1}function p(){s||f(eb(t.props,u))}return{onCreate:p,onAfterUpdate:p,onTrigger:function(m,y){if(du(y)){var k=ka(t.reference.getClientRects()),_=k.find(function(T){return T.left-2<=y.clientX&&T.right+2>=y.clientX&&T.top-2<=y.clientY&&T.bottom+2>=y.clientY}),w=k.indexOf(_);i=w>-1?w:i}},onHidden:function(){i=-1}}}};function nb(e,t,n,r){if(n.length<2||e===null)return t;if(n.length===2&&r>=0&&n[0].left>n[1].right)return n[r]||t;switch(e){case"top":case"bottom":{var o=n[0],i=n[n.length-1],s=e==="top",l=o.top,u=i.bottom,c=s?o.left:i.left,f=s?o.right:i.right,p=f-c,h=u-l;return{top:l,bottom:u,left:c,right:f,width:p,height:h}}case"left":case"right":{var m=Math.min.apply(Math,n.map(function(C){return C.left})),y=Math.max.apply(Math,n.map(function(C){return C.right})),k=n.filter(function(C){return e==="left"?C.left===m:C.right===y}),_=k[0].top,w=k[k.length-1].bottom,T=m,N=y,b=N-T,B=w-_;return{top:_,bottom:w,left:T,right:N,width:b,height:B}}default:return t}}var rb={name:"sticky",defaultValue:!1,fn:function(t){var n=t.reference,r=t.popper;function o(){return t.popperInstance?t.popperInstance.state.elements.reference:n}function i(c){return t.props.sticky===!0||t.props.sticky===c}var s=null,l=null;function u(){var c=i("reference")?o().getBoundingClientRect():null,f=i("popper")?r.getBoundingClientRect():null;(c&&Wc(s,c)||f&&Wc(l,f))&&t.popperInstance&&t.popperInstance.update(),s=c,l=f,t.state.isMounted&&requestAnimationFrame(u)}return{onMount:function(){t.props.sticky&&u()}}}};function Wc(e,t){return e&&t?e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left:!0}Ce.setDefaultProps({render:_p});Ce.setDefaultProps({onShow:e=>{if(!e.props.content)return!1}});function kp(e,t={},n={mount:!0}){const r=a.getCurrentInstance(),o=a.ref(),i=a.ref({isEnabled:!1,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1});let s=null;const l=()=>s||(s=document.createDocumentFragment(),s),u=C=>{let I,F=a.isRef(C)?C.value:C;if(a.isVNode(F))r&&(F.appContext=r.appContext),a.render(F,l()),I=()=>l();else if(typeof F=="object"){let q=a.h(F);r&&(q.appContext=r.appContext),a.render(q,l()),I=()=>l()}else I=F;return I},c=C=>{let I={};return a.isRef(C)?I=C.value||{}:a.isReactive(C)?I={...C}:I={...C},I.content&&(I.content=u(I.content)),I.triggerTarget&&(I.triggerTarget=a.isRef(I.triggerTarget)?I.triggerTarget.value:I.triggerTarget),(!I.plugins||!Array.isArray(I.plugins))&&(I.plugins=[]),I.plugins=I.plugins.filter(F=>F.name!=="vueTippyReactiveState"),I.plugins.push({name:"vueTippyReactiveState",fn:()=>({onCreate(){i.value.isEnabled=!0},onMount(){i.value.isMounted=!0},onShow(){i.value.isMounted=!0,i.value.isVisible=!0},onShown(){i.value.isShown=!0},onHide(){i.value.isMounted=!1,i.value.isVisible=!1},onHidden(){i.value.isShown=!1},onUnmounted(){i.value.isMounted=!1},onDestroy(){i.value.isDestroyed=!0}})}),I},f=()=>{o.value&&o.value.setProps(c(t))},p=()=>{!o.value||!t.content||o.value.setContent(u(t.content))},h=C=>{var I;(I=o.value)===null||I===void 0||I.setContent(u(C))},m=C=>{var I;(I=o.value)===null||I===void 0||I.setProps(c(C))},y=()=>{o.value&&(o.value.destroy(),o.value=void 0),s=null},k=()=>{var C;(C=o.value)===null||C===void 0||C.show()},_=()=>{var C;(C=o.value)===null||C===void 0||C.hide()},w=()=>{var C;(C=o.value)===null||C===void 0||C.disable(),i.value.isEnabled=!1},T=()=>{var C;(C=o.value)===null||C===void 0||C.enable(),i.value.isEnabled=!0},N=()=>{var C;(C=o.value)===null||C===void 0||C.unmount()},b=()=>{if(!e)return;let C=a.isRef(e)?e.value:e;typeof C=="function"&&(C=C()),C&&(o.value=Ce(C,c(t)),C.$tippy=B)},B={tippy:o,refresh:f,refreshContent:p,setContent:h,setProps:m,destroy:y,hide:_,show:k,disable:w,enable:T,unmount:N,mount:b,state:i};return n.mount&&(r?(r.isMounted?b():a.onMounted(b),a.onUnmounted(()=>{y()})):b()),a.isRef(t)||a.isReactive(t)?a.watch(t,f,{immediate:!1}):a.isRef(t.content)&&a.watch(t.content,p,{immediate:!1}),B}function ab(e,t){const n=a.ref();return a.onMounted(()=>{const o=(Array.isArray(e)?e.map(i=>i.value):typeof e=="function"?e():e.value).map(i=>i instanceof Element?i._tippy:i).filter(Boolean);n.value=G0(o,t?{allowHTML:!0,...t}:{allowHTML:!0})}),{singleton:n}}function ob(e){return typeof e=="function"?e():a.unref(e)}function ib(e){var t,n;const r=ob(e);return(n=(t=r)===null||t===void 0?void 0:t.$el)!==null&&n!==void 0?n:r}const sb=a.defineComponent({props:{to:{type:[String,Function]},tag:{type:[String,Object],default:"span"},contentTag:{type:[String,Object],default:"span"},contentClass:{type:String,default:null},appendTo:{default:()=>Ce.defaultProps.appendTo},aria:{default:()=>Ce.defaultProps.aria},delay:{default:()=>Ce.defaultProps.delay},duration:{default:()=>Ce.defaultProps.duration},getReferenceClientRect:{default:()=>Ce.defaultProps.getReferenceClientRect},hideOnClick:{type:[Boolean,String],default:()=>Ce.defaultProps.hideOnClick},ignoreAttributes:{type:Boolean,default:()=>Ce.defaultProps.ignoreAttributes},interactive:{type:Boolean,default:()=>Ce.defaultProps.interactive},interactiveBorder:{default:()=>Ce.defaultProps.interactiveBorder},interactiveDebounce:{default:()=>Ce.defaultProps.interactiveDebounce},moveTransition:{default:()=>Ce.defaultProps.moveTransition},offset:{default:()=>Ce.defaultProps.offset},onAfterUpdate:{default:()=>Ce.defaultProps.onAfterUpdate},onBeforeUpdate:{default:()=>Ce.defaultProps.onBeforeUpdate},onCreate:{default:()=>Ce.defaultProps.onCreate},onDestroy:{default:()=>Ce.defaultProps.onDestroy},onHidden:{default:()=>Ce.defaultProps.onHidden},onHide:{default:()=>Ce.defaultProps.onHide},onMount:{default:()=>Ce.defaultProps.onMount},onShow:{default:()=>Ce.defaultProps.onShow},onShown:{default:()=>Ce.defaultProps.onShown},onTrigger:{default:()=>Ce.defaultProps.onTrigger},onUntrigger:{default:()=>Ce.defaultProps.onUntrigger},onClickOutside:{default:()=>Ce.defaultProps.onClickOutside},placement:{default:()=>Ce.defaultProps.placement},plugins:{default:()=>Ce.defaultProps.plugins},popperOptions:{default:()=>Ce.defaultProps.popperOptions},render:{default:()=>Ce.defaultProps.render},showOnCreate:{type:Boolean,default:()=>Ce.defaultProps.showOnCreate},touch:{type:[Boolean,String,Array],default:()=>Ce.defaultProps.touch},trigger:{default:()=>Ce.defaultProps.trigger},triggerTarget:{default:()=>Ce.defaultProps.triggerTarget},animateFill:{type:Boolean,default:()=>Ce.defaultProps.animateFill},followCursor:{type:[Boolean,String],default:()=>Ce.defaultProps.followCursor},inlinePositioning:{type:Boolean,default:()=>Ce.defaultProps.inlinePositioning},sticky:{type:[Boolean,String],default:()=>Ce.defaultProps.sticky},allowHTML:{type:Boolean,default:()=>Ce.defaultProps.allowHTML},animation:{default:()=>Ce.defaultProps.animation},arrow:{default:()=>Ce.defaultProps.arrow},content:{default:()=>Ce.defaultProps.content},inertia:{default:()=>Ce.defaultProps.inertia},maxWidth:{default:()=>Ce.defaultProps.maxWidth},role:{default:()=>Ce.defaultProps.role},theme:{default:()=>Ce.defaultProps.theme},zIndex:{default:()=>Ce.defaultProps.zIndex}},emits:["state"],setup(e,{slots:t,emit:n,expose:r}){const o=a.ref(),i=a.ref(),s=a.ref(!1),l=()=>{let p={...e};for(const h of["to","tag","contentTag","contentClass"])p.hasOwnProperty(h)&&delete p[h];return p};let u=()=>ib(o);e.to&&(typeof Element<"u"&&e.to instanceof Element?u=()=>e.to:(typeof e.to=="string"||e.to instanceof String)&&(u=()=>document.querySelector(e.to)));const c=kp(u,l());a.onMounted(()=>{s.value=!0,a.nextTick(()=>{t.content&&c.setContent(()=>i.value)})}),a.watch(c.state,()=>{n("state",a.unref(c.state))},{immediate:!0,deep:!0}),a.watch(()=>e,()=>{c.setProps(l()),t.content&&c.setContent(()=>i.value)},{deep:!0});let f=a.reactive({elem:o,contentElem:i,mounted:s,...c});return r(f),()=>{const p=t.default?t.default(f):[],h=(typeof e.contentTag=="string",e.contentTag);if(!e.tag){const y=a.h(p[0],{ref:o,"data-v-tippy":""});return t.content?[y,a.h(h,{ref:i,style:{display:s.value?"inherit":"none"},class:e.contentClass},t.content(f))]:y}const m=(typeof e.tag=="string",e.tag);return a.h(m,{ref:o,"data-v-tippy":""},t.content?[p,a.h(h,{ref:i,style:{display:s.value?"inherit":"none"},class:e.contentClass},t.content(f))]:p)}}}),lb=["a11y","allowHTML","arrow","flip","flipOnUpdate","hideOnClick","ignoreAttributes","inertia","interactive","lazy","multiple","showOnInit","touch","touchHold"];let dl={};Object.keys(Ce.defaultProps).forEach(e=>{lb.includes(e)?dl[e]={type:Boolean,default:function(){return Ce.defaultProps[e]}}:dl[e]={default:function(){return Ce.defaultProps[e]}}});const ub=a.defineComponent({props:dl,setup(e){const t=a.ref([]),{singleton:n}=ab(t,e);return{instances:t,singleton:n}},mounted(){var e;const n=this.$el.parentElement.querySelectorAll("[data-v-tippy]");this.instances=Array.from(n).map(r=>r._tippy).filter(Boolean),(e=this.singleton)===null||e===void 0||e.setInstances(this.instances)},render(){let e=this.$slots.default?this.$slots.default():[];return a.h(()=>e)}}),cb={mounted(e,t,n){const r=typeof t.value=="string"?{content:t.value}:t.value||{},o=Object.keys(t.modifiers||{}),i=o.find(l=>l!=="arrow"),s=o.findIndex(l=>l==="arrow")!==-1;i&&(r.placement=r.placement||i),s&&(r.arrow=r.arrow!==void 0?r.arrow:!0),n.props&&n.props.onTippyShow&&(r.onShow=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyShow(...l)}),n.props&&n.props.onTippyShown&&(r.onShown=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyShown(...l)}),n.props&&n.props.onTippyHidden&&(r.onHidden=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyHidden(...l)}),n.props&&n.props.onTippyHide&&(r.onHide=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyHide(...l)}),n.props&&n.props.onTippyMount&&(r.onMount=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyMount(...l)}),e.getAttribute("title")&&!r.content&&(r.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!r.content&&(r.content=e.getAttribute("content")),kp(e,r)},unmounted(e){e.$tippy?e.$tippy.destroy():e._tippy&&e._tippy.destroy()},updated(e,t){const n=typeof t.value=="string"?{content:t.value}:t.value||{};e.getAttribute("title")&&!n.content&&(n.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!n.content&&(n.content=e.getAttribute("content")),e.$tippy?e.$tippy.setProps(n||{}):e._tippy&&e._tippy.setProps(n||{})}},db={install(e,t={}){Ce.setDefaultProps(t.defaultProps||{}),e.directive(t.directive||"tippy",cb),e.component(t.component||"tippy",sb),e.component(t.componentSingleton||"tippy-singleton",ub)}},fb=Ce.setDefaultProps;fb({ignoreAttributes:!0,plugins:[rb,tb,Z0,K0]});const pb=db,an={navigationItems:a.ref([]),mainMenuOpen:a.ref(!1),mobileMenuOpen:a.ref(!1),mobileMenuOpenTransition:a.ref(!1),navigationComponent:a.shallowRef("a"),logo:a.ref(null),avatar:a.shallowRef(null),contactRoute:a.ref(),contactIcon:a.ref("?")};function Ba(){function e(f){an.navigationItems.value=a.isRef(f)?f==null?void 0:f.value:f}function t(f){an.navigationComponent.value=f}function n(f){an.logo.value=f}function r(f){an.avatar.value=f}function o(){an.mainMenuOpen.value=!0}function i(){an.mainMenuOpen.value=!1}function s(){an.mainMenuOpen.value=!an.mainMenuOpen.value}function l(){an.mobileMenuOpen.value=!0,an.mobileMenuOpenTransition.value=!0}function u(){an.mobileMenuOpen.value=!1,setTimeout(()=>{an.mobileMenuOpenTransition.value=!1},100)}function c(){return an.mobileMenuOpen.value?u():l()}return{...an,setNavigationItems:e,setNavigationComponent:t,setLogo:n,setAvatar:r,openMainMenu:o,closeMainMenu:i,toggleMainMenu:s,openMobileMenu:l,closeMobileMenu:u,toggleMobileMenu:c}}const ea={layoutImage:a.ref(null),colors:{primaryColor:a.ref("#47A6DC"),primaryColorActive:a.ref("#3094CD"),secondaryColor:a.ref("#27272A"),secondaryColorActive:a.ref("#202023")}};function fu(){function e(r){ea.layoutImage.value=r}function t(r,o){ea.colors.primaryColor.value=r,ea.colors.primaryColorActive.value=o,document.documentElement.style.setProperty("--color-primary",r),document.documentElement.style.setProperty("--color-primary-active",o)}function n(r,o){ea.colors.secondaryColor.value=r,ea.colors.secondaryColorActive.value=o,document.documentElement.style.setProperty("--color-secondary",r),document.documentElement.style.setProperty("--color-secondary-active",o)}return{...ea,setLayoutImage:e,setPrimaryColors:t,setSecondaryColors:n}}/*! *****************************************************************************
5
+ */var on="top",bn="bottom",_n="right",sn="left",au="auto",xo=[on,bn,_n,sn],ya="start",fo="end",wy="clippingParents",ep="viewport",ja="popper",ky="reference",Pc=xo.reduce(function(e,t){return e.concat([t+"-"+ya,t+"-"+fo])},[]),tp=[].concat(xo,[au]).reduce(function(e,t){return e.concat([t,t+"-"+ya,t+"-"+fo])},[]),Sy="beforeRead",Cy="read",Ty="afterRead",Ey="beforeMain",xy="main",Py="afterMain",Iy="beforeWrite",Dy="write",Ny="afterWrite",Oy=[Sy,Cy,Ty,Ey,xy,Py,Iy,Dy,Ny];function Gn(e){return e?(e.nodeName||"").toLowerCase():null}function Dn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ba(e){var t=Dn(e).Element;return e instanceof t||e instanceof Element}function gn(e){var t=Dn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function np(e){if(typeof ShadowRoot>"u")return!1;var t=Dn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function By(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!gn(i)||!Gn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function My(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(u,c){return u[c]="",u},{});!gn(o)||!Gn(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(u){o.removeAttribute(u)}))})}}var rp={name:"applyStyles",enabled:!0,phase:"write",fn:By,effect:My,requires:["computeStyles"]};function Wn(e){return e.split("-")[0]}var Ur=Math.max,ci=Math.min,_a=Math.round;function wa(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(gn(e)&&t){var i=e.offsetHeight,s=e.offsetWidth;s>0&&(r=_a(n.width)/s||1),i>0&&(o=_a(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function ou(e){var t=wa(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ap(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&np(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Kn(e){return Dn(e).getComputedStyle(e)}function Ry(e){return["table","td","th"].indexOf(Gn(e))>=0}function Tr(e){return((ba(e)?e.ownerDocument:e.document)||window.document).documentElement}function Li(e){return Gn(e)==="html"?e:e.assignedSlot||e.parentNode||(np(e)?e.host:null)||Tr(e)}function Ic(e){return!gn(e)||Kn(e).position==="fixed"?null:e.offsetParent}function Ay(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&gn(e)){var r=Kn(e);if(r.position==="fixed")return null}for(var o=Li(e);gn(o)&&["html","body"].indexOf(Gn(o))<0;){var i=Kn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Po(e){for(var t=Dn(e),n=Ic(e);n&&Ry(n)&&Kn(n).position==="static";)n=Ic(n);return n&&(Gn(n)==="html"||Gn(n)==="body"&&Kn(n).position==="static")?t:n||Ay(e)||t}function iu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qa(e,t,n){return Ur(e,ci(t,n))}function $y(e,t,n){var r=Qa(e,t,n);return r>n?n:r}function op(){return{top:0,right:0,bottom:0,left:0}}function ip(e){return Object.assign({},op(),e)}function sp(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Ly=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ip(typeof t!="number"?t:sp(t,xo))};function Vy(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Wn(n.placement),u=iu(l),c=[sn,_n].indexOf(l)>=0,f=c?"height":"width";if(!(!i||!s)){var p=Ly(o.padding,n),h=ou(i),m=u==="y"?on:sn,y=u==="y"?bn:_n,k=n.rects.reference[f]+n.rects.reference[u]-s[u]-n.rects.popper[f],b=s[u]-n.rects.reference[u],w=Po(i),T=w?u==="y"?w.clientHeight||0:w.clientWidth||0:0,O=k/2-b/2,_=p[m],B=T-h[f]-p[y],C=T/2-h[f]/2+O,I=Qa(_,C,B),F=u;n.modifiersData[r]=(t={},t[F]=I,t.centerOffset=I-C,t)}}function Fy(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||ap(t.elements.popper,o)&&(t.elements.arrow=o))}var Hy={name:"arrow",enabled:!0,phase:"main",fn:Vy,effect:Fy,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ka(e){return e.split("-")[1]}var Uy={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zy(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:_a(t*o)/o||0,y:_a(n*o)/o||0}}function Dc(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,p=e.isFixed,h=f===!0?zy(s):typeof f=="function"?f(s):s,m=h.x,y=m===void 0?0:m,k=h.y,b=k===void 0?0:k,w=s.hasOwnProperty("x"),T=s.hasOwnProperty("y"),O=sn,_=on,B=window;if(c){var C=Po(n),I="clientHeight",F="clientWidth";if(C===Dn(n)&&(C=Tr(n),Kn(C).position!=="static"&&l==="absolute"&&(I="scrollHeight",F="scrollWidth")),C=C,o===on||(o===sn||o===_n)&&i===fo){_=bn;var q=p&&B.visualViewport?B.visualViewport.height:C[I];b-=q-r.height,b*=u?1:-1}if(o===sn||(o===on||o===bn)&&i===fo){O=_n;var W=p&&B.visualViewport?B.visualViewport.width:C[F];y-=W-r.width,y*=u?1:-1}}var M=Object.assign({position:l},c&&Uy);if(u){var D;return Object.assign({},M,(D={},D[_]=T?"0":"",D[O]=w?"0":"",D.transform=(B.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",D))}return Object.assign({},M,(t={},t[_]=T?b+"px":"",t[O]=w?y+"px":"",t.transform="",t))}function jy(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,u=l===void 0?!0:l,c={placement:Wn(t.placement),variation:ka(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Dc(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Dc(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Wy={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jy,data:{}},Lo={passive:!0};function qy(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,u=Dn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(f){f.addEventListener("scroll",n.update,Lo)}),l&&u.addEventListener("resize",n.update,Lo),function(){i&&c.forEach(function(f){f.removeEventListener("scroll",n.update,Lo)}),l&&u.removeEventListener("resize",n.update,Lo)}}var Yy={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qy,data:{}},Gy={left:"right",right:"left",bottom:"top",top:"bottom"};function ni(e){return e.replace(/left|right|bottom|top/g,function(t){return Gy[t]})}var Ky={start:"end",end:"start"};function Nc(e){return e.replace(/start|end/g,function(t){return Ky[t]})}function su(e){var t=Dn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function lu(e){return wa(Tr(e)).left+su(e).scrollLeft}function Xy(e){var t=Dn(e),n=Tr(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,s=0,l=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,l=r.offsetTop)),{width:o,height:i,x:s+lu(e),y:l}}function Jy(e){var t,n=Tr(e),r=su(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ur(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ur(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+lu(e),u=-r.scrollTop;return Kn(o||n).direction==="rtl"&&(l+=Ur(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:u}}function uu(e){var t=Kn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function lp(e){return["html","body","#document"].indexOf(Gn(e))>=0?e.ownerDocument.body:gn(e)&&uu(e)?e:lp(Li(e))}function Za(e,t){var n;t===void 0&&(t=[]);var r=lp(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Dn(r),s=o?[i].concat(i.visualViewport||[],uu(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(Za(Li(s)))}function ll(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Qy(e){var t=wa(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Oc(e,t){return t===ep?ll(Xy(e)):ba(t)?Qy(t):ll(Jy(Tr(e)))}function Zy(e){var t=Za(Li(e)),n=["absolute","fixed"].indexOf(Kn(e).position)>=0,r=n&&gn(e)?Po(e):e;return ba(r)?t.filter(function(o){return ba(o)&&ap(o,r)&&Gn(o)!=="body"&&(n?Kn(o).position!=="static":!0)}):[]}function e0(e,t,n){var r=t==="clippingParents"?Zy(e):[].concat(t),o=[].concat(r,[n]),i=o[0],s=o.reduce(function(l,u){var c=Oc(e,u);return l.top=Ur(c.top,l.top),l.right=ci(c.right,l.right),l.bottom=ci(c.bottom,l.bottom),l.left=Ur(c.left,l.left),l},Oc(e,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function up(e){var t=e.reference,n=e.element,r=e.placement,o=r?Wn(r):null,i=r?ka(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(o){case on:u={x:s,y:t.y-n.height};break;case bn:u={x:s,y:t.y+t.height};break;case _n:u={x:t.x+t.width,y:l};break;case sn:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var c=o?iu(o):null;if(c!=null){var f=c==="y"?"height":"width";switch(i){case ya:u[c]=u[c]-(t[f]/2-n[f]/2);break;case fo:u[c]=u[c]+(t[f]/2-n[f]/2);break}}return u}function po(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.boundary,s=i===void 0?wy:i,l=n.rootBoundary,u=l===void 0?ep:l,c=n.elementContext,f=c===void 0?ja:c,p=n.altBoundary,h=p===void 0?!1:p,m=n.padding,y=m===void 0?0:m,k=ip(typeof y!="number"?y:sp(y,xo)),b=f===ja?ky:ja,w=e.rects.popper,T=e.elements[h?b:f],O=e0(ba(T)?T:T.contextElement||Tr(e.elements.popper),s,u),_=wa(e.elements.reference),B=up({reference:_,element:w,strategy:"absolute",placement:o}),C=ll(Object.assign({},w,B)),I=f===ja?C:_,F={top:O.top-I.top+k.top,bottom:I.bottom-O.bottom+k.bottom,left:O.left-I.left+k.left,right:I.right-O.right+k.right},q=e.modifiersData.offset;if(f===ja&&q){var W=q[o];Object.keys(F).forEach(function(M){var D=[_n,bn].indexOf(M)>=0?1:-1,$=[on,bn].indexOf(M)>=0?"y":"x";F[M]+=W[$]*D})}return F}function t0(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?tp:u,f=ka(r),p=f?l?Pc:Pc.filter(function(y){return ka(y)===f}):xo,h=p.filter(function(y){return c.indexOf(y)>=0});h.length===0&&(h=p);var m=h.reduce(function(y,k){return y[k]=po(e,{placement:k,boundary:o,rootBoundary:i,padding:s})[Wn(k)],y},{});return Object.keys(m).sort(function(y,k){return m[y]-m[k]})}function n0(e){if(Wn(e)===au)return[];var t=ni(e);return[Nc(e),t,Nc(t)]}function r0(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,u=n.fallbackPlacements,c=n.padding,f=n.boundary,p=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,y=m===void 0?!0:m,k=n.allowedAutoPlacements,b=t.options.placement,w=Wn(b),T=w===b,O=u||(T||!y?[ni(b)]:n0(b)),_=[b].concat(O).reduce(function(E,P){return E.concat(Wn(P)===au?t0(t,{placement:P,boundary:f,rootBoundary:p,padding:c,flipVariations:y,allowedAutoPlacements:k}):P)},[]),B=t.rects.reference,C=t.rects.popper,I=new Map,F=!0,q=_[0],W=0;W<_.length;W++){var M=_[W],D=Wn(M),$=ka(M)===ya,Y=[on,bn].indexOf(D)>=0,X=Y?"width":"height",K=po(t,{placement:M,boundary:f,rootBoundary:p,altBoundary:h,padding:c}),j=Y?$?_n:sn:$?bn:on;B[X]>C[X]&&(j=ni(j));var U=ni(j),S=[];if(i&&S.push(K[D]<=0),l&&S.push(K[j]<=0,K[U]<=0),S.every(function(E){return E})){q=M,F=!1;break}I.set(M,S)}if(F)for(var H=y?3:1,Z=function(P){var R=_.find(function(G){var ie=I.get(G);if(ie)return ie.slice(0,P).every(function(oe){return oe})});if(R)return q=R,"break"},Q=H;Q>0;Q--){var V=Z(Q);if(V==="break")break}t.placement!==q&&(t.modifiersData[r]._skip=!0,t.placement=q,t.reset=!0)}}var a0={name:"flip",enabled:!0,phase:"main",fn:r0,requiresIfExists:["offset"],data:{_skip:!1}};function Bc(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Mc(e){return[on,_n,bn,sn].some(function(t){return e[t]>=0})}function o0(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=po(t,{elementContext:"reference"}),l=po(t,{altBoundary:!0}),u=Bc(s,r),c=Bc(l,o,i),f=Mc(u),p=Mc(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}var i0={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:o0};function s0(e,t,n){var r=Wn(e),o=[sn,on].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*o,[sn,_n].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function l0(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=tp.reduce(function(f,p){return f[p]=s0(p,t.rects,i),f},{}),l=s[t.placement],u=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}var u0={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:l0};function c0(e){var t=e.state,n=e.name;t.modifiersData[n]=up({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var d0={name:"popperOffsets",enabled:!0,phase:"read",fn:c0,data:{}};function f0(e){return e==="x"?"y":"x"}function p0(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,u=n.boundary,c=n.rootBoundary,f=n.altBoundary,p=n.padding,h=n.tether,m=h===void 0?!0:h,y=n.tetherOffset,k=y===void 0?0:y,b=po(t,{boundary:u,rootBoundary:c,padding:p,altBoundary:f}),w=Wn(t.placement),T=ka(t.placement),O=!T,_=iu(w),B=f0(_),C=t.modifiersData.popperOffsets,I=t.rects.reference,F=t.rects.popper,q=typeof k=="function"?k(Object.assign({},t.rects,{placement:t.placement})):k,W=typeof q=="number"?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(C){if(i){var $,Y=_==="y"?on:sn,X=_==="y"?bn:_n,K=_==="y"?"height":"width",j=C[_],U=j+b[Y],S=j-b[X],H=m?-F[K]/2:0,Z=T===ya?I[K]:F[K],Q=T===ya?-F[K]:-I[K],V=t.elements.arrow,E=m&&V?ou(V):{width:0,height:0},P=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:op(),R=P[Y],G=P[X],ie=Qa(0,I[K],E[K]),oe=O?I[K]/2-H-ie-R-W.mainAxis:Z-ie-R-W.mainAxis,Ie=O?-I[K]/2+H+ie+G+W.mainAxis:Q+ie+G+W.mainAxis,Ee=t.elements.arrow&&Po(t.elements.arrow),fe=Ee?_==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,Be=($=M==null?void 0:M[_])!=null?$:0,$e=j+oe-Be-fe,ze=j+Ie-Be,Ge=Qa(m?ci(U,$e):U,j,m?Ur(S,ze):S);C[_]=Ge,D[_]=Ge-j}if(l){var Ke,ve=_==="x"?on:sn,Qe=_==="x"?bn:_n,Te=C[B],se=B==="y"?"height":"width",ce=Te+b[ve],me=Te-b[Qe],Pt=[on,sn].indexOf(w)!==-1,xe=(Ke=M==null?void 0:M[B])!=null?Ke:0,Mt=Pt?ce:Te-I[se]-F[se]-xe+W.altAxis,Ut=Pt?Te+I[se]+F[se]-xe-W.altAxis:me,Rt=m&&Pt?$y(Mt,Te,Ut):Qa(m?Mt:ce,Te,m?Ut:me);C[B]=Rt,D[B]=Rt-Te}t.modifiersData[r]=D}}var h0={name:"preventOverflow",enabled:!0,phase:"main",fn:p0,requiresIfExists:["offset"]};function m0(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function v0(e){return e===Dn(e)||!gn(e)?su(e):m0(e)}function g0(e){var t=e.getBoundingClientRect(),n=_a(t.width)/e.offsetWidth||1,r=_a(t.height)/e.offsetHeight||1;return n!==1||r!==1}function y0(e,t,n){n===void 0&&(n=!1);var r=gn(t),o=gn(t)&&g0(t),i=Tr(t),s=wa(e,o),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Gn(t)!=="body"||uu(i))&&(l=v0(t)),gn(t)?(u=wa(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=lu(i))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function b0(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&o(u)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function _0(e){var t=b0(e);return Oy.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function w0(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function k0(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Rc={placement:"bottom",modifiers:[],strategy:"absolute"};function Ac(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function S0(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Rc:o;return function(l,u,c){c===void 0&&(c=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rc,i),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},p=[],h=!1,m={state:f,setOptions:function(w){var T=typeof w=="function"?w(f.options):w;k(),f.options=Object.assign({},i,f.options,T),f.scrollParents={reference:ba(l)?Za(l):l.contextElement?Za(l.contextElement):[],popper:Za(u)};var O=_0(k0([].concat(r,f.options.modifiers)));return f.orderedModifiers=O.filter(function(_){return _.enabled}),y(),m.update()},forceUpdate:function(){if(!h){var w=f.elements,T=w.reference,O=w.popper;if(Ac(T,O)){f.rects={reference:y0(T,Po(O),f.options.strategy==="fixed"),popper:ou(O)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(W){return f.modifiersData[W.name]=Object.assign({},W.data)});for(var _=0;_<f.orderedModifiers.length;_++){if(f.reset===!0){f.reset=!1,_=-1;continue}var B=f.orderedModifiers[_],C=B.fn,I=B.options,F=I===void 0?{}:I,q=B.name;typeof C=="function"&&(f=C({state:f,options:F,name:q,instance:m})||f)}}}},update:w0(function(){return new Promise(function(b){m.forceUpdate(),b(f)})}),destroy:function(){k(),h=!0}};if(!Ac(l,u))return m;m.setOptions(c).then(function(b){!h&&c.onFirstUpdate&&c.onFirstUpdate(b)});function y(){f.orderedModifiers.forEach(function(b){var w=b.name,T=b.options,O=T===void 0?{}:T,_=b.effect;if(typeof _=="function"){var B=_({state:f,name:w,instance:m,options:O}),C=function(){};p.push(B||C)}})}function k(){p.forEach(function(b){return b()}),p=[]}return m}}var C0=[Yy,d0,Wy,rp,u0,a0,h0,Hy,i0],T0=S0({defaultModifiers:C0}),E0="tippy-box",cp="tippy-content",dp="tippy-backdrop",fp="tippy-arrow",pp="tippy-svg-arrow",Mr={passive:!0,capture:!0},hp=function(){return document.body};function Is(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function cu(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function mp(e,t){return typeof e=="function"?e.apply(void 0,t):e}function $c(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function x0(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function P0(e){return e.split(/\s+/).filter(Boolean)}function Ar(e){return[].concat(e)}function Lc(e,t){e.indexOf(t)===-1&&e.push(t)}function I0(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function vp(e){return e.split("-")[0]}function Sa(e){return[].slice.call(e)}function Vc(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function zr(){return document.createElement("div")}function Vi(e){return["Element","Fragment"].some(function(t){return cu(e,t)})}function D0(e){return cu(e,"NodeList")}function du(e){return cu(e,"MouseEvent")}function N0(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function O0(e){return Vi(e)?[e]:D0(e)?Sa(e):Array.isArray(e)?e:Sa(document.querySelectorAll(e))}function Ds(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function ho(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function gp(e){var t,n=Ar(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function B0(e,t){var n=t.clientX,r=t.clientY;return e.every(function(o){var i=o.popperRect,s=o.popperState,l=o.props,u=l.interactiveBorder,c=vp(s.placement),f=s.modifiersData.offset;if(!f)return!0;var p=c==="bottom"?f.top.y:0,h=c==="top"?f.bottom.y:0,m=c==="right"?f.left.x:0,y=c==="left"?f.right.x:0,k=i.top-r+p>u,b=r-i.bottom-h>u,w=i.left-n+m>u,T=n-i.right-y>u;return k||b||w||T})}function Ns(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[r](o,n)})}function Fc(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Rn={isTouch:!1},Hc=0;function M0(){Rn.isTouch||(Rn.isTouch=!0,window.performance&&document.addEventListener("mousemove",yp))}function yp(){var e=performance.now();e-Hc<20&&(Rn.isTouch=!1,document.removeEventListener("mousemove",yp)),Hc=e}function R0(){var e=document.activeElement;if(N0(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function A0(){document.addEventListener("touchstart",M0,Mr),window.addEventListener("blur",R0)}var $0=typeof window<"u"&&typeof document<"u",L0=$0?!!window.msCrypto:!1,V0={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},F0={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},xn=Object.assign({appendTo:hp,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},V0,F0),H0=Object.keys(xn),U0=function(t){var n=Object.keys(t);n.forEach(function(r){xn[r]=t[r]})};function bp(e){var t=e.plugins||[],n=t.reduce(function(r,o){var i=o.name,s=o.defaultValue;if(i){var l;r[i]=e[i]!==void 0?e[i]:(l=xn[i])!=null?l:s}return r},{});return Object.assign({},e,n)}function z0(e,t){var n=t?Object.keys(bp(Object.assign({},xn,{plugins:t}))):H0,r=n.reduce(function(o,i){var s=(e.getAttribute("data-tippy-"+i)||"").trim();if(!s)return o;if(i==="content")o[i]=s;else try{o[i]=JSON.parse(s)}catch{o[i]=s}return o},{});return r}function Uc(e,t){var n=Object.assign({},t,{content:mp(t.content,[e])},t.ignoreAttributes?{}:z0(e,t.plugins));return n.aria=Object.assign({},xn.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var j0=function(){return"innerHTML"};function ul(e,t){e[j0()]=t}function zc(e){var t=zr();return e===!0?t.className=fp:(t.className=pp,Vi(e)?t.appendChild(e):ul(t,e)),t}function jc(e,t){Vi(t.content)?(ul(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?ul(e,t.content):e.textContent=t.content)}function di(e){var t=e.firstElementChild,n=Sa(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(cp)}),arrow:n.find(function(r){return r.classList.contains(fp)||r.classList.contains(pp)}),backdrop:n.find(function(r){return r.classList.contains(dp)})}}function _p(e){var t=zr(),n=zr();n.className=E0,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=zr();r.className=cp,r.setAttribute("data-state","hidden"),jc(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props);function o(i,s){var l=di(t),u=l.box,c=l.content,f=l.arrow;s.theme?u.setAttribute("data-theme",s.theme):u.removeAttribute("data-theme"),typeof s.animation=="string"?u.setAttribute("data-animation",s.animation):u.removeAttribute("data-animation"),s.inertia?u.setAttribute("data-inertia",""):u.removeAttribute("data-inertia"),u.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?u.setAttribute("role",s.role):u.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&jc(c,e.props),s.arrow?f?i.arrow!==s.arrow&&(u.removeChild(f),u.appendChild(zc(s.arrow))):u.appendChild(zc(s.arrow)):f&&u.removeChild(f)}return{popper:t,onUpdate:o}}_p.$$tippy=!0;var W0=1,Vo=[],Os=[];function q0(e,t){var n=Uc(e,Object.assign({},xn,bp(Vc(t)))),r,o,i,s=!1,l=!1,u=!1,c=!1,f,p,h,m=[],y=$c($e,n.interactiveDebounce),k,b=W0++,w=null,T=I0(n.plugins),O={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},_={id:b,reference:e,popper:zr(),popperInstance:w,props:n,state:O,plugins:T,clearDelayTimeouts:Mt,setProps:Ut,setContent:Rt,show:zt,hide:kn,hideWithInteractivity:Sn,enable:Pt,disable:xe,unmount:Et,destroy:L};if(!n.render)return _;var B=n.render(_),C=B.popper,I=B.onUpdate;C.setAttribute("data-tippy-root",""),C.id="tippy-"+_.id,_.popper=C,e._tippy=_,C._tippy=_;var F=T.map(function(N){return N.fn(_)}),q=e.hasAttribute("aria-expanded");return Ee(),H(),j(),U("onCreate",[_]),n.showOnCreate&&ce(),C.addEventListener("mouseenter",function(){_.props.interactive&&_.state.isVisible&&_.clearDelayTimeouts()}),C.addEventListener("mouseleave",function(){_.props.interactive&&_.props.trigger.indexOf("mouseenter")>=0&&Y().addEventListener("mousemove",y)}),_;function W(){var N=_.props.touch;return Array.isArray(N)?N:[N,0]}function M(){return W()[0]==="hold"}function D(){var N;return!!((N=_.props.render)!=null&&N.$$tippy)}function $(){return k||e}function Y(){var N=$().parentNode;return N?gp(N):document}function X(){return di(C)}function K(N){return _.state.isMounted&&!_.state.isVisible||Rn.isTouch||f&&f.type==="focus"?0:Is(_.props.delay,N?0:1,xn.delay)}function j(N){N===void 0&&(N=!1),C.style.pointerEvents=_.props.interactive&&!N?"":"none",C.style.zIndex=""+_.props.zIndex}function U(N,ee,re){if(re===void 0&&(re=!0),F.forEach(function(we){we[N]&&we[N].apply(we,ee)}),re){var ge;(ge=_.props)[N].apply(ge,ee)}}function S(){var N=_.props.aria;if(N.content){var ee="aria-"+N.content,re=C.id,ge=Ar(_.props.triggerTarget||e);ge.forEach(function(we){var qe=we.getAttribute(ee);if(_.state.isVisible)we.setAttribute(ee,qe?qe+" "+re:re);else{var J=qe&&qe.replace(re,"").trim();J?we.setAttribute(ee,J):we.removeAttribute(ee)}})}}function H(){if(!(q||!_.props.aria.expanded)){var N=Ar(_.props.triggerTarget||e);N.forEach(function(ee){_.props.interactive?ee.setAttribute("aria-expanded",_.state.isVisible&&ee===$()?"true":"false"):ee.removeAttribute("aria-expanded")})}}function Z(){Y().removeEventListener("mousemove",y),Vo=Vo.filter(function(N){return N!==y})}function Q(N){if(!(Rn.isTouch&&(u||N.type==="mousedown"))){var ee=N.composedPath&&N.composedPath()[0]||N.target;if(!(_.props.interactive&&Fc(C,ee))){if(Ar(_.props.triggerTarget||e).some(function(re){return Fc(re,ee)})){if(Rn.isTouch||_.state.isVisible&&_.props.trigger.indexOf("click")>=0)return}else U("onClickOutside",[_,N]);_.props.hideOnClick===!0&&(_.clearDelayTimeouts(),_.hide(),l=!0,setTimeout(function(){l=!1}),_.state.isMounted||R())}}}function V(){u=!0}function E(){u=!1}function P(){var N=Y();N.addEventListener("mousedown",Q,!0),N.addEventListener("touchend",Q,Mr),N.addEventListener("touchstart",E,Mr),N.addEventListener("touchmove",V,Mr)}function R(){var N=Y();N.removeEventListener("mousedown",Q,!0),N.removeEventListener("touchend",Q,Mr),N.removeEventListener("touchstart",E,Mr),N.removeEventListener("touchmove",V,Mr)}function G(N,ee){oe(N,function(){!_.state.isVisible&&C.parentNode&&C.parentNode.contains(C)&&ee()})}function ie(N,ee){oe(N,ee)}function oe(N,ee){var re=X().box;function ge(we){we.target===re&&(Ns(re,"remove",ge),ee())}if(N===0)return ee();Ns(re,"remove",p),Ns(re,"add",ge),p=ge}function Ie(N,ee,re){re===void 0&&(re=!1);var ge=Ar(_.props.triggerTarget||e);ge.forEach(function(we){we.addEventListener(N,ee,re),m.push({node:we,eventType:N,handler:ee,options:re})})}function Ee(){M()&&(Ie("touchstart",Be,{passive:!0}),Ie("touchend",ze,{passive:!0})),P0(_.props.trigger).forEach(function(N){if(N!=="manual")switch(Ie(N,Be),N){case"mouseenter":Ie("mouseleave",ze);break;case"focus":Ie(L0?"focusout":"blur",Ge);break;case"focusin":Ie("focusout",Ge);break}})}function fe(){m.forEach(function(N){var ee=N.node,re=N.eventType,ge=N.handler,we=N.options;ee.removeEventListener(re,ge,we)}),m=[]}function Be(N){var ee,re=!1;if(!(!_.state.isEnabled||Ke(N)||l)){var ge=((ee=f)==null?void 0:ee.type)==="focus";f=N,k=N.currentTarget,H(),!_.state.isVisible&&du(N)&&Vo.forEach(function(we){return we(N)}),N.type==="click"&&(_.props.trigger.indexOf("mouseenter")<0||s)&&_.props.hideOnClick!==!1&&_.state.isVisible?re=!0:ce(N),N.type==="click"&&(s=!re),re&&!ge&&me(N)}}function $e(N){var ee=N.target,re=$().contains(ee)||C.contains(ee);if(!(N.type==="mousemove"&&re)){var ge=se().concat(C).map(function(we){var qe,J=we._tippy,le=(qe=J.popperInstance)==null?void 0:qe.state;return le?{popperRect:we.getBoundingClientRect(),popperState:le,props:n}:null}).filter(Boolean);B0(ge,N)&&(Z(),me(N))}}function ze(N){var ee=Ke(N)||_.props.trigger.indexOf("click")>=0&&s;if(!ee){if(_.props.interactive){_.hideWithInteractivity(N);return}me(N)}}function Ge(N){_.props.trigger.indexOf("focusin")<0&&N.target!==$()||_.props.interactive&&N.relatedTarget&&C.contains(N.relatedTarget)||me(N)}function Ke(N){return Rn.isTouch?M()!==N.type.indexOf("touch")>=0:!1}function ve(){Qe();var N=_.props,ee=N.popperOptions,re=N.placement,ge=N.offset,we=N.getReferenceClientRect,qe=N.moveTransition,J=D()?di(C).arrow:null,le=we?{getBoundingClientRect:we,contextElement:we.contextElement||$()}:e,Le={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(pe){var mt=pe.state;if(D()){var Me=X(),ln=Me.box;["placement","reference-hidden","escaped"].forEach(function(At){At==="placement"?ln.setAttribute("data-placement",mt.placement):mt.attributes.popper["data-popper-"+At]?ln.setAttribute("data-"+At,""):ln.removeAttribute("data-"+At)}),mt.attributes.popper={}}}},De=[{name:"offset",options:{offset:ge}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!qe}},Le];D()&&J&&De.push({name:"arrow",options:{element:J,padding:3}}),De.push.apply(De,(ee==null?void 0:ee.modifiers)||[]),_.popperInstance=T0(le,C,Object.assign({},ee,{placement:re,onFirstUpdate:h,modifiers:De}))}function Qe(){_.popperInstance&&(_.popperInstance.destroy(),_.popperInstance=null)}function Te(){var N=_.props.appendTo,ee,re=$();_.props.interactive&&N===hp||N==="parent"?ee=re.parentNode:ee=mp(N,[re]),ee.contains(C)||ee.appendChild(C),_.state.isMounted=!0,ve()}function se(){return Sa(C.querySelectorAll("[data-tippy-root]"))}function ce(N){_.clearDelayTimeouts(),N&&U("onTrigger",[_,N]),P();var ee=K(!0),re=W(),ge=re[0],we=re[1];Rn.isTouch&&ge==="hold"&&we&&(ee=we),ee?r=setTimeout(function(){_.show()},ee):_.show()}function me(N){if(_.clearDelayTimeouts(),U("onUntrigger",[_,N]),!_.state.isVisible){R();return}if(!(_.props.trigger.indexOf("mouseenter")>=0&&_.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(N.type)>=0&&s)){var ee=K(!1);ee?o=setTimeout(function(){_.state.isVisible&&_.hide()},ee):i=requestAnimationFrame(function(){_.hide()})}}function Pt(){_.state.isEnabled=!0}function xe(){_.hide(),_.state.isEnabled=!1}function Mt(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)}function Ut(N){if(!_.state.isDestroyed){U("onBeforeUpdate",[_,N]),fe();var ee=_.props,re=Uc(e,Object.assign({},ee,Vc(N),{ignoreAttributes:!0}));_.props=re,Ee(),ee.interactiveDebounce!==re.interactiveDebounce&&(Z(),y=$c($e,re.interactiveDebounce)),ee.triggerTarget&&!re.triggerTarget?Ar(ee.triggerTarget).forEach(function(ge){ge.removeAttribute("aria-expanded")}):re.triggerTarget&&e.removeAttribute("aria-expanded"),H(),j(),I&&I(ee,re),_.popperInstance&&(ve(),se().forEach(function(ge){requestAnimationFrame(ge._tippy.popperInstance.forceUpdate)})),U("onAfterUpdate",[_,N])}}function Rt(N){_.setProps({content:N})}function zt(){var N=_.state.isVisible,ee=_.state.isDestroyed,re=!_.state.isEnabled,ge=Rn.isTouch&&!_.props.touch,we=Is(_.props.duration,0,xn.duration);if(!(N||ee||re||ge)&&!$().hasAttribute("disabled")&&(U("onShow",[_],!1),_.props.onShow(_)!==!1)){if(_.state.isVisible=!0,D()&&(C.style.visibility="visible"),j(),P(),_.state.isMounted||(C.style.transition="none"),D()){var qe=X(),J=qe.box,le=qe.content;Ds([J,le],0)}h=function(){var De;if(!(!_.state.isVisible||c)){if(c=!0,C.offsetHeight,C.style.transition=_.props.moveTransition,D()&&_.props.animation){var st=X(),pe=st.box,mt=st.content;Ds([pe,mt],we),ho([pe,mt],"visible")}S(),H(),Lc(Os,_),(De=_.popperInstance)==null||De.forceUpdate(),U("onMount",[_]),_.props.animation&&D()&&ie(we,function(){_.state.isShown=!0,U("onShown",[_])})}},Te()}}function kn(){var N=!_.state.isVisible,ee=_.state.isDestroyed,re=!_.state.isEnabled,ge=Is(_.props.duration,1,xn.duration);if(!(N||ee||re)&&(U("onHide",[_],!1),_.props.onHide(_)!==!1)){if(_.state.isVisible=!1,_.state.isShown=!1,c=!1,s=!1,D()&&(C.style.visibility="hidden"),Z(),R(),j(!0),D()){var we=X(),qe=we.box,J=we.content;_.props.animation&&(Ds([qe,J],ge),ho([qe,J],"hidden"))}S(),H(),_.props.animation?D()&&G(ge,_.unmount):_.unmount()}}function Sn(N){Y().addEventListener("mousemove",y),Lc(Vo,y),y(N)}function Et(){_.state.isVisible&&_.hide(),_.state.isMounted&&(Qe(),se().forEach(function(N){N._tippy.unmount()}),C.parentNode&&C.parentNode.removeChild(C),Os=Os.filter(function(N){return N!==_}),_.state.isMounted=!1,U("onHidden",[_]))}function L(){_.state.isDestroyed||(_.clearDelayTimeouts(),_.unmount(),fe(),delete e._tippy,_.state.isDestroyed=!0,U("onDestroy",[_]))}}function Ce(e,t){t===void 0&&(t={});var n=xn.plugins.concat(t.plugins||[]);A0();var r=Object.assign({},t,{plugins:n}),o=O0(e),i=o.reduce(function(s,l){var u=l&&q0(l,r);return u&&s.push(u),s},[]);return Vi(e)?i[0]:i}Ce.defaultProps=xn;Ce.setDefaultProps=U0;Ce.currentInput=Rn;var Y0=Object.assign({},rp,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}}),G0=function(t,n){var r;n===void 0&&(n={});var o=t,i=[],s=[],l,u=n.overrides,c=[],f=!1;function p(){s=o.map(function(_){return Ar(_.props.triggerTarget||_.reference)}).reduce(function(_,B){return _.concat(B)},[])}function h(){i=o.map(function(_){return _.reference})}function m(_){o.forEach(function(B){_?B.enable():B.disable()})}function y(_){return o.map(function(B){var C=B.setProps;return B.setProps=function(I){C(I),B.reference===l&&_.setProps(I)},function(){B.setProps=C}})}function k(_,B){var C=s.indexOf(B);if(B!==l){l=B;var I=(u||[]).concat("content").reduce(function(F,q){return F[q]=o[C].props[q],F},{});_.setProps(Object.assign({},I,{getReferenceClientRect:typeof I.getReferenceClientRect=="function"?I.getReferenceClientRect:function(){var F;return(F=i[C])==null?void 0:F.getBoundingClientRect()}}))}}m(!1),h(),p();var b={fn:function(){return{onDestroy:function(){m(!0)},onHidden:function(){l=null},onClickOutside:function(C){C.props.showOnCreate&&!f&&(f=!0,l=null)},onShow:function(C){C.props.showOnCreate&&!f&&(f=!0,k(C,i[0]))},onTrigger:function(C,I){k(C,I.currentTarget)}}}},w=Ce(zr(),Object.assign({},x0(n,["overrides"]),{plugins:[b].concat(n.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},n.popperOptions,{modifiers:[].concat(((r=n.popperOptions)==null?void 0:r.modifiers)||[],[Y0])})})),T=w.show;w.show=function(_){if(T(),!l&&_==null)return k(w,i[0]);if(!(l&&_==null)){if(typeof _=="number")return i[_]&&k(w,i[_]);if(o.indexOf(_)>=0){var B=_.reference;return k(w,B)}if(i.indexOf(_)>=0)return k(w,_)}},w.showNext=function(){var _=i[0];if(!l)return w.show(0);var B=i.indexOf(l);w.show(i[B+1]||_)},w.showPrevious=function(){var _=i[i.length-1];if(!l)return w.show(_);var B=i.indexOf(l),C=i[B-1]||_;w.show(C)};var O=w.setProps;return w.setProps=function(_){u=_.overrides||u,O(_)},w.setInstances=function(_){m(!0),c.forEach(function(B){return B()}),o=_,m(!1),h(),p(),c=y(w),w.setProps({triggerTarget:s})},c=y(w),w},K0={name:"animateFill",defaultValue:!1,fn:function(t){var n;if(!((n=t.props.render)!=null&&n.$$tippy))return{};var r=di(t.popper),o=r.box,i=r.content,s=t.props.animateFill?X0():null;return{onCreate:function(){s&&(o.insertBefore(s,o.firstElementChild),o.setAttribute("data-animatefill",""),o.style.overflow="hidden",t.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(s){var u=o.style.transitionDuration,c=Number(u.replace("ms",""));i.style.transitionDelay=Math.round(c/10)+"ms",s.style.transitionDuration=u,ho([s],"visible")}},onShow:function(){s&&(s.style.transitionDuration="0ms")},onHide:function(){s&&ho([s],"hidden")}}}};function X0(){var e=zr();return e.className=dp,ho([e],"hidden"),e}var cl={clientX:0,clientY:0},Fo=[];function wp(e){var t=e.clientX,n=e.clientY;cl={clientX:t,clientY:n}}function J0(e){e.addEventListener("mousemove",wp)}function Q0(e){e.removeEventListener("mousemove",wp)}var Z0={name:"followCursor",defaultValue:!1,fn:function(t){var n=t.reference,r=gp(t.props.triggerTarget||n),o=!1,i=!1,s=!0,l=t.props;function u(){return t.props.followCursor==="initial"&&t.state.isVisible}function c(){r.addEventListener("mousemove",h)}function f(){r.removeEventListener("mousemove",h)}function p(){o=!0,t.setProps({getReferenceClientRect:null}),o=!1}function h(k){var b=k.target?n.contains(k.target):!0,w=t.props.followCursor,T=k.clientX,O=k.clientY,_=n.getBoundingClientRect(),B=T-_.left,C=O-_.top;(b||!t.props.interactive)&&t.setProps({getReferenceClientRect:function(){var F=n.getBoundingClientRect(),q=T,W=O;w==="initial"&&(q=F.left+B,W=F.top+C);var M=w==="horizontal"?F.top:W,D=w==="vertical"?F.right:q,$=w==="horizontal"?F.bottom:W,Y=w==="vertical"?F.left:q;return{width:D-Y,height:$-M,top:M,right:D,bottom:$,left:Y}}})}function m(){t.props.followCursor&&(Fo.push({instance:t,doc:r}),J0(r))}function y(){Fo=Fo.filter(function(k){return k.instance!==t}),Fo.filter(function(k){return k.doc===r}).length===0&&Q0(r)}return{onCreate:m,onDestroy:y,onBeforeUpdate:function(){l=t.props},onAfterUpdate:function(b,w){var T=w.followCursor;o||T!==void 0&&l.followCursor!==T&&(y(),T?(m(),t.state.isMounted&&!i&&!u()&&c()):(f(),p()))},onMount:function(){t.props.followCursor&&!i&&(s&&(h(cl),s=!1),u()||c())},onTrigger:function(b,w){du(w)&&(cl={clientX:w.clientX,clientY:w.clientY}),i=w.type==="focus"},onHidden:function(){t.props.followCursor&&(p(),f(),s=!0)}}}};function eb(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat((((n=e.popperOptions)==null?void 0:n.modifiers)||[]).filter(function(r){var o=r.name;return o!==t.name}),[t])})}}var tb={name:"inlinePositioning",defaultValue:!1,fn:function(t){var n=t.reference;function r(){return!!t.props.inlinePositioning}var o,i=-1,s=!1,l=[],u={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(m){var y=m.state;r()&&(l.indexOf(y.placement)!==-1&&(l=[]),o!==y.placement&&l.indexOf(y.placement)===-1&&(l.push(y.placement),t.setProps({getReferenceClientRect:function(){return c(y.placement)}})),o=y.placement)}};function c(h){return nb(vp(h),n.getBoundingClientRect(),Sa(n.getClientRects()),i)}function f(h){s=!0,t.setProps(h),s=!1}function p(){s||f(eb(t.props,u))}return{onCreate:p,onAfterUpdate:p,onTrigger:function(m,y){if(du(y)){var k=Sa(t.reference.getClientRects()),b=k.find(function(T){return T.left-2<=y.clientX&&T.right+2>=y.clientX&&T.top-2<=y.clientY&&T.bottom+2>=y.clientY}),w=k.indexOf(b);i=w>-1?w:i}},onHidden:function(){i=-1}}}};function nb(e,t,n,r){if(n.length<2||e===null)return t;if(n.length===2&&r>=0&&n[0].left>n[1].right)return n[r]||t;switch(e){case"top":case"bottom":{var o=n[0],i=n[n.length-1],s=e==="top",l=o.top,u=i.bottom,c=s?o.left:i.left,f=s?o.right:i.right,p=f-c,h=u-l;return{top:l,bottom:u,left:c,right:f,width:p,height:h}}case"left":case"right":{var m=Math.min.apply(Math,n.map(function(C){return C.left})),y=Math.max.apply(Math,n.map(function(C){return C.right})),k=n.filter(function(C){return e==="left"?C.left===m:C.right===y}),b=k[0].top,w=k[k.length-1].bottom,T=m,O=y,_=O-T,B=w-b;return{top:b,bottom:w,left:T,right:O,width:_,height:B}}default:return t}}var rb={name:"sticky",defaultValue:!1,fn:function(t){var n=t.reference,r=t.popper;function o(){return t.popperInstance?t.popperInstance.state.elements.reference:n}function i(c){return t.props.sticky===!0||t.props.sticky===c}var s=null,l=null;function u(){var c=i("reference")?o().getBoundingClientRect():null,f=i("popper")?r.getBoundingClientRect():null;(c&&Wc(s,c)||f&&Wc(l,f))&&t.popperInstance&&t.popperInstance.update(),s=c,l=f,t.state.isMounted&&requestAnimationFrame(u)}return{onMount:function(){t.props.sticky&&u()}}}};function Wc(e,t){return e&&t?e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left:!0}Ce.setDefaultProps({render:_p});Ce.setDefaultProps({onShow:e=>{if(!e.props.content)return!1}});function kp(e,t={},n={mount:!0}){const r=a.getCurrentInstance(),o=a.ref(),i=a.ref({isEnabled:!1,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1});let s=null;const l=()=>s||(s=document.createDocumentFragment(),s),u=C=>{let I,F=a.isRef(C)?C.value:C;if(a.isVNode(F))r&&(F.appContext=r.appContext),a.render(F,l()),I=()=>l();else if(typeof F=="object"){let q=a.h(F);r&&(q.appContext=r.appContext),a.render(q,l()),I=()=>l()}else I=F;return I},c=C=>{let I={};return a.isRef(C)?I=C.value||{}:a.isReactive(C)?I={...C}:I={...C},I.content&&(I.content=u(I.content)),I.triggerTarget&&(I.triggerTarget=a.isRef(I.triggerTarget)?I.triggerTarget.value:I.triggerTarget),(!I.plugins||!Array.isArray(I.plugins))&&(I.plugins=[]),I.plugins=I.plugins.filter(F=>F.name!=="vueTippyReactiveState"),I.plugins.push({name:"vueTippyReactiveState",fn:()=>({onCreate(){i.value.isEnabled=!0},onMount(){i.value.isMounted=!0},onShow(){i.value.isMounted=!0,i.value.isVisible=!0},onShown(){i.value.isShown=!0},onHide(){i.value.isMounted=!1,i.value.isVisible=!1},onHidden(){i.value.isShown=!1},onUnmounted(){i.value.isMounted=!1},onDestroy(){i.value.isDestroyed=!0}})}),I},f=()=>{o.value&&o.value.setProps(c(t))},p=()=>{!o.value||!t.content||o.value.setContent(u(t.content))},h=C=>{var I;(I=o.value)===null||I===void 0||I.setContent(u(C))},m=C=>{var I;(I=o.value)===null||I===void 0||I.setProps(c(C))},y=()=>{o.value&&(o.value.destroy(),o.value=void 0),s=null},k=()=>{var C;(C=o.value)===null||C===void 0||C.show()},b=()=>{var C;(C=o.value)===null||C===void 0||C.hide()},w=()=>{var C;(C=o.value)===null||C===void 0||C.disable(),i.value.isEnabled=!1},T=()=>{var C;(C=o.value)===null||C===void 0||C.enable(),i.value.isEnabled=!0},O=()=>{var C;(C=o.value)===null||C===void 0||C.unmount()},_=()=>{if(!e)return;let C=a.isRef(e)?e.value:e;typeof C=="function"&&(C=C()),C&&(o.value=Ce(C,c(t)),C.$tippy=B)},B={tippy:o,refresh:f,refreshContent:p,setContent:h,setProps:m,destroy:y,hide:b,show:k,disable:w,enable:T,unmount:O,mount:_,state:i};return n.mount&&(r?(r.isMounted?_():a.onMounted(_),a.onUnmounted(()=>{y()})):_()),a.isRef(t)||a.isReactive(t)?a.watch(t,f,{immediate:!1}):a.isRef(t.content)&&a.watch(t.content,p,{immediate:!1}),B}function ab(e,t){const n=a.ref();return a.onMounted(()=>{const o=(Array.isArray(e)?e.map(i=>i.value):typeof e=="function"?e():e.value).map(i=>i instanceof Element?i._tippy:i).filter(Boolean);n.value=G0(o,t?{allowHTML:!0,...t}:{allowHTML:!0})}),{singleton:n}}function ob(e){return typeof e=="function"?e():a.unref(e)}function ib(e){var t,n;const r=ob(e);return(n=(t=r)===null||t===void 0?void 0:t.$el)!==null&&n!==void 0?n:r}const sb=a.defineComponent({props:{to:{type:[String,Function]},tag:{type:[String,Object],default:"span"},contentTag:{type:[String,Object],default:"span"},contentClass:{type:String,default:null},appendTo:{default:()=>Ce.defaultProps.appendTo},aria:{default:()=>Ce.defaultProps.aria},delay:{default:()=>Ce.defaultProps.delay},duration:{default:()=>Ce.defaultProps.duration},getReferenceClientRect:{default:()=>Ce.defaultProps.getReferenceClientRect},hideOnClick:{type:[Boolean,String],default:()=>Ce.defaultProps.hideOnClick},ignoreAttributes:{type:Boolean,default:()=>Ce.defaultProps.ignoreAttributes},interactive:{type:Boolean,default:()=>Ce.defaultProps.interactive},interactiveBorder:{default:()=>Ce.defaultProps.interactiveBorder},interactiveDebounce:{default:()=>Ce.defaultProps.interactiveDebounce},moveTransition:{default:()=>Ce.defaultProps.moveTransition},offset:{default:()=>Ce.defaultProps.offset},onAfterUpdate:{default:()=>Ce.defaultProps.onAfterUpdate},onBeforeUpdate:{default:()=>Ce.defaultProps.onBeforeUpdate},onCreate:{default:()=>Ce.defaultProps.onCreate},onDestroy:{default:()=>Ce.defaultProps.onDestroy},onHidden:{default:()=>Ce.defaultProps.onHidden},onHide:{default:()=>Ce.defaultProps.onHide},onMount:{default:()=>Ce.defaultProps.onMount},onShow:{default:()=>Ce.defaultProps.onShow},onShown:{default:()=>Ce.defaultProps.onShown},onTrigger:{default:()=>Ce.defaultProps.onTrigger},onUntrigger:{default:()=>Ce.defaultProps.onUntrigger},onClickOutside:{default:()=>Ce.defaultProps.onClickOutside},placement:{default:()=>Ce.defaultProps.placement},plugins:{default:()=>Ce.defaultProps.plugins},popperOptions:{default:()=>Ce.defaultProps.popperOptions},render:{default:()=>Ce.defaultProps.render},showOnCreate:{type:Boolean,default:()=>Ce.defaultProps.showOnCreate},touch:{type:[Boolean,String,Array],default:()=>Ce.defaultProps.touch},trigger:{default:()=>Ce.defaultProps.trigger},triggerTarget:{default:()=>Ce.defaultProps.triggerTarget},animateFill:{type:Boolean,default:()=>Ce.defaultProps.animateFill},followCursor:{type:[Boolean,String],default:()=>Ce.defaultProps.followCursor},inlinePositioning:{type:Boolean,default:()=>Ce.defaultProps.inlinePositioning},sticky:{type:[Boolean,String],default:()=>Ce.defaultProps.sticky},allowHTML:{type:Boolean,default:()=>Ce.defaultProps.allowHTML},animation:{default:()=>Ce.defaultProps.animation},arrow:{default:()=>Ce.defaultProps.arrow},content:{default:()=>Ce.defaultProps.content},inertia:{default:()=>Ce.defaultProps.inertia},maxWidth:{default:()=>Ce.defaultProps.maxWidth},role:{default:()=>Ce.defaultProps.role},theme:{default:()=>Ce.defaultProps.theme},zIndex:{default:()=>Ce.defaultProps.zIndex}},emits:["state"],setup(e,{slots:t,emit:n,expose:r}){const o=a.ref(),i=a.ref(),s=a.ref(!1),l=()=>{let p={...e};for(const h of["to","tag","contentTag","contentClass"])p.hasOwnProperty(h)&&delete p[h];return p};let u=()=>ib(o);e.to&&(typeof Element<"u"&&e.to instanceof Element?u=()=>e.to:(typeof e.to=="string"||e.to instanceof String)&&(u=()=>document.querySelector(e.to)));const c=kp(u,l());a.onMounted(()=>{s.value=!0,a.nextTick(()=>{t.content&&c.setContent(()=>i.value)})}),a.watch(c.state,()=>{n("state",a.unref(c.state))},{immediate:!0,deep:!0}),a.watch(()=>e,()=>{c.setProps(l()),t.content&&c.setContent(()=>i.value)},{deep:!0});let f=a.reactive({elem:o,contentElem:i,mounted:s,...c});return r(f),()=>{const p=t.default?t.default(f):[],h=(typeof e.contentTag=="string",e.contentTag);if(!e.tag){const y=a.h(p[0],{ref:o,"data-v-tippy":""});return t.content?[y,a.h(h,{ref:i,style:{display:s.value?"inherit":"none"},class:e.contentClass},t.content(f))]:y}const m=(typeof e.tag=="string",e.tag);return a.h(m,{ref:o,"data-v-tippy":""},t.content?[p,a.h(h,{ref:i,style:{display:s.value?"inherit":"none"},class:e.contentClass},t.content(f))]:p)}}}),lb=["a11y","allowHTML","arrow","flip","flipOnUpdate","hideOnClick","ignoreAttributes","inertia","interactive","lazy","multiple","showOnInit","touch","touchHold"];let dl={};Object.keys(Ce.defaultProps).forEach(e=>{lb.includes(e)?dl[e]={type:Boolean,default:function(){return Ce.defaultProps[e]}}:dl[e]={default:function(){return Ce.defaultProps[e]}}});const ub=a.defineComponent({props:dl,setup(e){const t=a.ref([]),{singleton:n}=ab(t,e);return{instances:t,singleton:n}},mounted(){var e;const n=this.$el.parentElement.querySelectorAll("[data-v-tippy]");this.instances=Array.from(n).map(r=>r._tippy).filter(Boolean),(e=this.singleton)===null||e===void 0||e.setInstances(this.instances)},render(){let e=this.$slots.default?this.$slots.default():[];return a.h(()=>e)}}),cb={mounted(e,t,n){const r=typeof t.value=="string"?{content:t.value}:t.value||{},o=Object.keys(t.modifiers||{}),i=o.find(l=>l!=="arrow"),s=o.findIndex(l=>l==="arrow")!==-1;i&&(r.placement=r.placement||i),s&&(r.arrow=r.arrow!==void 0?r.arrow:!0),n.props&&n.props.onTippyShow&&(r.onShow=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyShow(...l)}),n.props&&n.props.onTippyShown&&(r.onShown=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyShown(...l)}),n.props&&n.props.onTippyHidden&&(r.onHidden=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyHidden(...l)}),n.props&&n.props.onTippyHide&&(r.onHide=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyHide(...l)}),n.props&&n.props.onTippyMount&&(r.onMount=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyMount(...l)}),e.getAttribute("title")&&!r.content&&(r.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!r.content&&(r.content=e.getAttribute("content")),kp(e,r)},unmounted(e){e.$tippy?e.$tippy.destroy():e._tippy&&e._tippy.destroy()},updated(e,t){const n=typeof t.value=="string"?{content:t.value}:t.value||{};e.getAttribute("title")&&!n.content&&(n.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!n.content&&(n.content=e.getAttribute("content")),e.$tippy?e.$tippy.setProps(n||{}):e._tippy&&e._tippy.setProps(n||{})}},db={install(e,t={}){Ce.setDefaultProps(t.defaultProps||{}),e.directive(t.directive||"tippy",cb),e.component(t.component||"tippy",sb),e.component(t.componentSingleton||"tippy-singleton",ub)}},fb=Ce.setDefaultProps;fb({ignoreAttributes:!0,plugins:[rb,tb,Z0,K0]});const pb=db,an={navigationItems:a.ref([]),mainMenuOpen:a.ref(!1),mobileMenuOpen:a.ref(!1),mobileMenuOpenTransition:a.ref(!1),navigationComponent:a.shallowRef("a"),logo:a.ref(null),avatar:a.shallowRef(null),contactRoute:a.ref(),contactIcon:a.ref("?")};function Ba(){function e(f){an.navigationItems.value=a.isRef(f)?f==null?void 0:f.value:f}function t(f){an.navigationComponent.value=f}function n(f){an.logo.value=f}function r(f){an.avatar.value=f}function o(){an.mainMenuOpen.value=!0}function i(){an.mainMenuOpen.value=!1}function s(){an.mainMenuOpen.value=!an.mainMenuOpen.value}function l(){an.mobileMenuOpen.value=!0,an.mobileMenuOpenTransition.value=!0}function u(){an.mobileMenuOpen.value=!1,setTimeout(()=>{an.mobileMenuOpenTransition.value=!1},100)}function c(){return an.mobileMenuOpen.value?u():l()}return{...an,setNavigationItems:e,setNavigationComponent:t,setLogo:n,setAvatar:r,openMainMenu:o,closeMainMenu:i,toggleMainMenu:s,openMobileMenu:l,closeMobileMenu:u,toggleMobileMenu:c}}const ta={layoutImage:a.ref(null),colors:{primaryColor:a.ref("#47A6DC"),primaryColorActive:a.ref("#3094CD"),secondaryColor:a.ref("#27272A"),secondaryColorActive:a.ref("#202023")}};function fu(){function e(r){ta.layoutImage.value=r}function t(r,o){ta.colors.primaryColor.value=r,ta.colors.primaryColorActive.value=o,document.documentElement.style.setProperty("--color-primary",r),document.documentElement.style.setProperty("--color-primary-active",o)}function n(r,o){ta.colors.secondaryColor.value=r,ta.colors.secondaryColorActive.value=o,document.documentElement.style.setProperty("--color-secondary",r),document.documentElement.style.setProperty("--color-secondary-active",o)}return{...ta,setLayoutImage:e,setPrimaryColors:t,setSecondaryColors:n}}/*! *****************************************************************************
6
6
  Copyright (c) Microsoft Corporation.
7
7
 
8
8
  Permission to use, copy, modify, and/or distribute this software for any
@@ -15,8 +15,8 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15
15
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16
16
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
17
  PERFORMANCE OF THIS SOFTWARE.
18
- ***************************************************************************** */function hb(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(f){try{c(r.next(f))}catch(p){s(p)}}function u(f){try{c(r.throw(f))}catch(p){s(p)}}function c(f){f.done?i(f.value):o(f.value).then(l,u)}c((r=r.apply(e,t||[])).next())})}var mb=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!==0;){var s=i[o];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n};const qc="__googleMapsScriptId";var sa;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(sa||(sa={}));class $r{constructor({apiKey:t,authReferrerPolicy:n,channel:r,client:o,id:i=qc,language:s,libraries:l=[],mapIds:u,nonce:c,region:f,retries:p=3,url:h="https://maps.googleapis.com/maps/api/js",version:m}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=n,this.channel=r,this.client=o,this.id=i||qc,this.language=s,this.libraries=l,this.mapIds=u,this.nonce=c,this.region=f,this.retries=p,this.url=h,this.version=m,$r.instance){if(!mb(this.options,$r.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify($r.instance.options)}`);return $r.instance}$r.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?sa.FAILURE:this.done?sa.SUCCESS:this.loading?sa.LOADING:sa.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+="?callback=__googleMapsCallback",this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((t,n)=>{this.loadCallback(r=>{r?n(r.error):t(window.google)})})}importLibrary(t){return this.execute(),google.maps.importLibrary(t)}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){var t,n;if(document.getElementById(this.id)){this.callback();return}const r={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(r).forEach(i=>!r[i]&&delete r[i]),!((n=(t=window==null?void 0:window.google)===null||t===void 0?void 0:t.maps)===null||n===void 0)&&n.importLibrary||(i=>{let s,l,u,c="The Google Maps JavaScript API",f="google",p="importLibrary",h="__ib__",m=document,y=window;y=y[f]||(y[f]={});const k=y.maps||(y.maps={}),_=new Set,w=new URLSearchParams,T=()=>s||(s=new Promise((N,b)=>hb(this,void 0,void 0,function*(){var B;yield l=m.createElement("script"),l.id=this.id,w.set("libraries",[..._]+"");for(u in i)w.set(u.replace(/[A-Z]/g,C=>"_"+C[0].toLowerCase()),i[u]);w.set("callback",f+".maps."+h),l.src=this.url+"?"+w,k[h]=N,l.onerror=()=>s=b(Error(c+" could not load.")),l.nonce=this.nonce||((B=m.querySelector("script[nonce]"))===null||B===void 0?void 0:B.nonce)||"",m.head.append(l)})));k[p]?console.warn(c+" only loads once. Ignoring:",i):k[p]=(N,...b)=>_.add(N)&&T().then(()=>k[p](N,...b))})(r);const o=this.libraries.map(i=>this.importLibrary(i));o.length||o.push(this.importLibrary("core")),Promise.all(o).then(()=>this.callback(),i=>{const s=new ErrorEvent("error",{error:i});this.loadErrorCallback(s)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const n=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${n} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},n)}else this.onerrorEvent=t,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(t=>{t(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setScript())}}}const Bs={loaded:a.ref(!1)};function vb(){async function e(t){Bs.loaded&&(await new $r({apiKey:t,version:"weekly"}).load(),Bs.loaded.value=!0)}return{...Bs,load:e}}const Jn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},gb={},yb={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},bb=a.createElementVNode("circle",{r:"10",cy:"12",cx:"12.0269",fill:"#22C55E"},null,-1),_b=a.createElementVNode("path",{stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",d:"M8 12.8571L10.5714 15.4286L17 9"},null,-1),wb=[bb,_b];function kb(e,t){return a.openBlock(),a.createElementBlock("svg",yb,wb)}const Sp=Jn(gb,[["render",kb]]),Sb={},Cb={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Tb=a.createElementVNode("path",{fill:"#EAB308",stroke:"#EAB308","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",d:`M2.31804 17.4787C1.41423 19.0442 2.54451 21 4.35109 21H19.7033C21.5089 21 22.6391 19.0442
19
- 21.7364 17.4787L14.0613 4.17412C13.1575 2.60863 10.8969 2.60863 9.99311 4.17412L2.31804 17.4787Z`},null,-1),Eb=a.createElementVNode("path",{stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8V13.549M12 17.9882H12.0104V18H12V17.9882Z"},null,-1),xb=[Tb,Eb];function Pb(e,t){return a.openBlock(),a.createElementBlock("svg",Cb,xb)}const Cp=Jn(Sb,[["render",Pb]]),Ib={},Db={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ob=a.createElementVNode("circle",{r:"10",cy:"12",cx:"12.0269",fill:"#DC2626"},null,-1),Nb=a.createElementVNode("path",{stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",d:"M12.0269 7V12.549M12.0269 16.9882H12.0372V17H12.0269V16.9882Z"},null,-1),Bb=[Ob,Nb];function Mb(e,t){return a.openBlock(),a.createElementBlock("svg",Db,Bb)}const Tp=Jn(Ib,[["render",Mb]]),Rb={success:["bg-green-100"],warning:["bg-yellow-100"],error:["bg-red-100"]},Ep={success:Sp,warning:Cp,error:Tp},Ab={class:"flex items-center font-bold"},$b={key:0,class:"mr-2"},Lb={"data-test-title":""},Vb={key:0,class:"mt-1","data-test-description":""},Fb=a.defineComponent({__name:"AppAlert",props:{type:{},title:{default:void 0},description:{default:void 0},withIcon:{type:Boolean,default:!0}},setup(e){const t=a.useSlots();return(n,r)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([a.unref(Rb)[n.type],"app-alert flex flex-col rounded-lg px-4 py-2 text-sm text-zinc-900"])},[a.createElementVNode("div",Ab,[n.withIcon?(a.openBlock(),a.createElementBlock("span",$b,[a.renderSlot(n.$slots,"icon",{type:n.type},()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Ep)[n.type]),{class:"h-5 w-5"}))])])):a.createCommentVNode("",!0),a.createElementVNode("span",Lb,[a.renderSlot(n.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(n.title),1)])])]),n.description||a.unref(t).description?(a.openBlock(),a.createElementBlock("div",Vb,[a.renderSlot(n.$slots,"description",{},()=>[a.createTextVNode(a.toDisplayString(n.description),1)])])):a.createCommentVNode("",!0)],2))}}),Hb={small:["w-7 h-7"],medium:["w-10 h-10"],large:["w-12 h-12"]},Ub={width:"39",height:"39",viewBox:"0 0 39 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zb=a.createElementVNode("mask",{id:"mask0_928_1872",style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"39",height:"39"},[a.createElementVNode("circle",{cx:"19.5",cy:"19.5",r:"19.5",fill:"#D9D9D9"})],-1),jb={mask:"url(#mask0_928_1872)"},Wb=a.createElementVNode("circle",{cx:"19.5",cy:"19.5",r:"19.5",fill:"#E4E4E7"},null,-1),qb=a.createElementVNode("path",{d:`M22.1755 30.7083C21.0239 32.4573 21.339 35.344 21.339 35.344C21.339 35.344 23.0323 34.3422 23.1456
18
+ ***************************************************************************** */function hb(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(f){try{c(r.next(f))}catch(p){s(p)}}function u(f){try{c(r.throw(f))}catch(p){s(p)}}function c(f){f.done?i(f.value):o(f.value).then(l,u)}c((r=r.apply(e,t||[])).next())})}var mb=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!==0;){var s=i[o];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n};const qc="__googleMapsScriptId";var la;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(la||(la={}));class $r{constructor({apiKey:t,authReferrerPolicy:n,channel:r,client:o,id:i=qc,language:s,libraries:l=[],mapIds:u,nonce:c,region:f,retries:p=3,url:h="https://maps.googleapis.com/maps/api/js",version:m}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=n,this.channel=r,this.client=o,this.id=i||qc,this.language=s,this.libraries=l,this.mapIds=u,this.nonce=c,this.region=f,this.retries=p,this.url=h,this.version=m,$r.instance){if(!mb(this.options,$r.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify($r.instance.options)}`);return $r.instance}$r.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?la.FAILURE:this.done?la.SUCCESS:this.loading?la.LOADING:la.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+="?callback=__googleMapsCallback",this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((t,n)=>{this.loadCallback(r=>{r?n(r.error):t(window.google)})})}importLibrary(t){return this.execute(),google.maps.importLibrary(t)}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){var t,n;if(document.getElementById(this.id)){this.callback();return}const r={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(r).forEach(i=>!r[i]&&delete r[i]),!((n=(t=window==null?void 0:window.google)===null||t===void 0?void 0:t.maps)===null||n===void 0)&&n.importLibrary||(i=>{let s,l,u,c="The Google Maps JavaScript API",f="google",p="importLibrary",h="__ib__",m=document,y=window;y=y[f]||(y[f]={});const k=y.maps||(y.maps={}),b=new Set,w=new URLSearchParams,T=()=>s||(s=new Promise((O,_)=>hb(this,void 0,void 0,function*(){var B;yield l=m.createElement("script"),l.id=this.id,w.set("libraries",[...b]+"");for(u in i)w.set(u.replace(/[A-Z]/g,C=>"_"+C[0].toLowerCase()),i[u]);w.set("callback",f+".maps."+h),l.src=this.url+"?"+w,k[h]=O,l.onerror=()=>s=_(Error(c+" could not load.")),l.nonce=this.nonce||((B=m.querySelector("script[nonce]"))===null||B===void 0?void 0:B.nonce)||"",m.head.append(l)})));k[p]?console.warn(c+" only loads once. Ignoring:",i):k[p]=(O,..._)=>b.add(O)&&T().then(()=>k[p](O,..._))})(r);const o=this.libraries.map(i=>this.importLibrary(i));o.length||o.push(this.importLibrary("core")),Promise.all(o).then(()=>this.callback(),i=>{const s=new ErrorEvent("error",{error:i});this.loadErrorCallback(s)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const n=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${n} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},n)}else this.onerrorEvent=t,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(t=>{t(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setScript())}}}const Bs={loaded:a.ref(!1)};function vb(){async function e(t){Bs.loaded&&(await new $r({apiKey:t,version:"weekly"}).load(),Bs.loaded.value=!0)}return{...Bs,load:e}}const Jn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},gb={},yb={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},bb=a.createElementVNode("circle",{r:"10",cy:"12",cx:"12.0269",fill:"#22C55E"},null,-1),_b=a.createElementVNode("path",{stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",d:"M8 12.8571L10.5714 15.4286L17 9"},null,-1),wb=[bb,_b];function kb(e,t){return a.openBlock(),a.createElementBlock("svg",yb,wb)}const Sp=Jn(gb,[["render",kb]]),Sb={},Cb={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Tb=a.createElementVNode("path",{fill:"#EAB308",stroke:"#EAB308","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",d:`M2.31804 17.4787C1.41423 19.0442 2.54451 21 4.35109 21H19.7033C21.5089 21 22.6391 19.0442
19
+ 21.7364 17.4787L14.0613 4.17412C13.1575 2.60863 10.8969 2.60863 9.99311 4.17412L2.31804 17.4787Z`},null,-1),Eb=a.createElementVNode("path",{stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8V13.549M12 17.9882H12.0104V18H12V17.9882Z"},null,-1),xb=[Tb,Eb];function Pb(e,t){return a.openBlock(),a.createElementBlock("svg",Cb,xb)}const Cp=Jn(Sb,[["render",Pb]]),Ib={},Db={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Nb=a.createElementVNode("circle",{r:"10",cy:"12",cx:"12.0269",fill:"#DC2626"},null,-1),Ob=a.createElementVNode("path",{stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",d:"M12.0269 7V12.549M12.0269 16.9882H12.0372V17H12.0269V16.9882Z"},null,-1),Bb=[Nb,Ob];function Mb(e,t){return a.openBlock(),a.createElementBlock("svg",Db,Bb)}const Tp=Jn(Ib,[["render",Mb]]),Rb={success:["bg-green-100"],warning:["bg-yellow-100"],error:["bg-red-100"]},Ep={success:Sp,warning:Cp,error:Tp},Ab={class:"flex items-center font-bold"},$b={key:0,class:"mr-2"},Lb={"data-test-title":""},Vb={key:0,class:"mt-1","data-test-description":""},Fb=a.defineComponent({__name:"AppAlert",props:{type:{},title:{default:void 0},description:{default:void 0},withIcon:{type:Boolean,default:!0}},setup(e){const t=a.useSlots();return(n,r)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([a.unref(Rb)[n.type],"app-alert flex flex-col rounded-lg px-4 py-2 text-sm text-zinc-900"])},[a.createElementVNode("div",Ab,[n.withIcon?(a.openBlock(),a.createElementBlock("span",$b,[a.renderSlot(n.$slots,"icon",{type:n.type},()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Ep)[n.type]),{class:"h-5 w-5"}))])])):a.createCommentVNode("",!0),a.createElementVNode("span",Lb,[a.renderSlot(n.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(n.title),1)])])]),n.description||a.unref(t).description?(a.openBlock(),a.createElementBlock("div",Vb,[a.renderSlot(n.$slots,"description",{},()=>[a.createTextVNode(a.toDisplayString(n.description),1)])])):a.createCommentVNode("",!0)],2))}}),Hb={small:["w-7 h-7"],medium:["w-10 h-10"],large:["w-12 h-12"]},Ub={width:"39",height:"39",viewBox:"0 0 39 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zb=a.createElementVNode("mask",{id:"mask0_928_1872",style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"39",height:"39"},[a.createElementVNode("circle",{cx:"19.5",cy:"19.5",r:"19.5",fill:"#D9D9D9"})],-1),jb={mask:"url(#mask0_928_1872)"},Wb=a.createElementVNode("circle",{cx:"19.5",cy:"19.5",r:"19.5",fill:"#E4E4E7"},null,-1),qb=a.createElementVNode("path",{d:`M22.1755 30.7083C21.0239 32.4573 21.339 35.344 21.339 35.344C21.339 35.344 23.0323 34.3422 23.1456
20
20
  32.6631C23.2588 30.984 22.1755 30.7083 22.1755 30.7083Z`,fill:"#EBEFF2"},null,-1),Yb=["fill"],Gb=a.createStaticVNode(`<path d="M28.9482 30.3374C28.9564 30.4399 28.8581 30.617 28.6812 30.8453C27.6784 32.1493 24.1454 35.1328 23.3724
21
21
  35.5308C22.4628 35.9993 23.2503 32.6818 22.2268 30.5188C22.7132 30.5487 26.6922 28.6152 27.933 28.4082C28.0986
22
22
  28.3804 28.2155 28.3836 28.2683 28.4252C28.7226 28.7859 28.8954 29.6513 28.9482 30.3364V30.3374Z" fill="white"></path><path d="M14.0829 3.72947C10.4355 3.03851 8.76582 6.04253 9.26737 8.87937C9.76786 11.7162 15.3706 12.932 16.0383
@@ -55,65 +55,65 @@ PERFORMANCE OF THIS SOFTWARE.
55
55
  76.4574 31.7089 80.4317Z" fill="#E25C2A"></path><ellipse cx="16.0958" cy="13.853" rx="0.579469" ry="1.39073" transform="rotate(7.61614 16.0958 13.853)" fill="#232426"></ellipse><ellipse cx="13.9746" cy="13.7072" rx="0.543825" ry="1.30518" transform="rotate(-0.540649 13.9746 13.7072)" fill="#232426"></ellipse>`,16),Kb=a.defineComponent({__name:"DefaultAvatar",props:{color:{}},setup(e){const t=e,{colors:n}=fu(),r=a.computed(()=>t.color??n.primaryColorActive.value);return(o,i)=>(a.openBlock(),a.createElementBlock("svg",Ub,[zb,a.createElementVNode("g",jb,[Wb,qb,a.createElementVNode("path",{fill:r.value,d:`M35.5856 80.897C29.1642 82.4294 14.7376 82.1295 8.80295 80.8632C8.72254 75.5395 8.88442 70.0636 9.34891
56
56
  64.4843C10.4863 50.8311 21.5303 37.8094 22.0551 33.4794C22.1757 32.4899 22.2107 31.5637 22.1715 30.7083C23.219
57
57
  32.849 22.4128 36.1324 23.3428 35.6687C24.1342 35.2748 27.7454 32.322 28.7706 31.0314C31.6253 40.2237 35.6692
58
- 55.4599 35.6692 68.0444C35.6776 72.405 35.648 76.6969 35.5845 80.8981L35.5856 80.897Z`},null,8,Yb),Gb])]))}}),Xb=["src"],Jb=a.defineComponent({__name:"AppAvatar",props:{size:{default:"medium"},src:{},defaultAvatarColor:{}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([a.unref(Hb)[t.size],"app-avatar relative flex items-center rounded-full"])},[t.src?(a.openBlock(),a.createElementBlock("img",{key:0,src:t.src,alt:"avatar",class:"absolute inset-0 h-full w-full rounded-full"},null,8,Xb)):(a.openBlock(),a.createBlock(Kb,{key:1,color:t.defaultAvatarColor,class:"absolute inset-0 h-full w-full rounded-full"},null,8,["color"]))],2))}});function Qb(e,t){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function Wa(e,t){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5m-9-6h.008v.008H12v-.008zM12 15h.008v.008H12V15zm0 2.25h.008v.008H12v-.008zM9.75 15h.008v.008H9.75V15zm0 2.25h.008v.008H9.75v-.008zM7.5 15h.008v.008H7.5V15zm0 2.25h.008v.008H7.5v-.008zm6.75-4.5h.008v.008h-.008v-.008zm0 2.25h.008v.008h-.008V15zm0 2.25h.008v.008h-.008v-.008zm2.25-4.5h.008v.008H16.5v-.008zm0 2.25h.008v.008H16.5V15z"})])}function xp(e,t){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12.75l6 6 9-13.5"})])}function Pp(e,t){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})])}function Ip(e,t){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})])}function Zb(e,t){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})])}function e_(e,t){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"})])}function t_(e,t){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 10.5a3 3 0 11-6 0 3 3 0 016 0z"}),a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1115 0z"})])}function Fi(e,t){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}const n_={},r_={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},a_=a.createElementVNode("path",{stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",d:`M17.657 16.6567L13.414 20.8997C13.2284 21.0854 13.0081 21.2328 12.7656 21.3333C12.523 21.4339 12.2631
58
+ 55.4599 35.6692 68.0444C35.6776 72.405 35.648 76.6969 35.5845 80.8981L35.5856 80.897Z`},null,8,Yb),Gb])]))}}),Xb=["src"],Jb=a.defineComponent({__name:"AppAvatar",props:{size:{default:"medium"},src:{},defaultAvatarColor:{}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([a.unref(Hb)[t.size],"app-avatar relative flex items-center rounded-full"])},[t.src?(a.openBlock(),a.createElementBlock("img",{key:0,src:t.src,alt:"avatar",class:"absolute inset-0 h-full w-full rounded-full"},null,8,Xb)):(a.openBlock(),a.createBlock(Kb,{key:1,color:t.defaultAvatarColor,class:"absolute inset-0 h-full w-full rounded-full"},null,8,["color"]))],2))}});function Qb(e,t){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function Wa(e,t){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5m-9-6h.008v.008H12v-.008zM12 15h.008v.008H12V15zm0 2.25h.008v.008H12v-.008zM9.75 15h.008v.008H9.75V15zm0 2.25h.008v.008H9.75v-.008zM7.5 15h.008v.008H7.5V15zm0 2.25h.008v.008H7.5v-.008zm6.75-4.5h.008v.008h-.008v-.008zm0 2.25h.008v.008h-.008V15zm0 2.25h.008v.008h-.008v-.008zm2.25-4.5h.008v.008H16.5v-.008zm0 2.25h.008v.008H16.5V15z"})])}function xp(e,t){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12.75l6 6 9-13.5"})])}function Pp(e,t){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})])}function Ip(e,t){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})])}function Zb(e,t){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})])}function e_(e,t){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"})])}function t_(e,t){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 10.5a3 3 0 11-6 0 3 3 0 016 0z"}),a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1115 0z"})])}function n_(e,t){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18.375 12.739l-7.693 7.693a4.5 4.5 0 01-6.364-6.364l10.94-10.94A3 3 0 1119.5 7.372L8.552 18.32m.009-.01l-.01.01m5.699-9.941l-7.81 7.81a1.5 1.5 0 002.112 2.13"})])}function Fi(e,t){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}const r_={},a_={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},o_=a.createElementVNode("path",{stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",d:`M17.657 16.6567L13.414 20.8997C13.2284 21.0854 13.0081 21.2328 12.7656 21.3333C12.523 21.4339 12.2631
59
59
  21.4856 12.0005 21.4856C11.738 21.4856 11.478 21.4339 11.2354 21.3333C10.9929 21.2328 10.7726 21.0854 10.587
60
60
  20.8997L6.343 16.6567C5.22422 15.5379 4.46234 14.1124 4.15369 12.5606C3.84504 11.0087 4.00349 9.40022 4.60901
61
61
  7.93844C5.21452 6.47665 6.2399 5.22725 7.55548 4.34821C8.87107 3.46918 10.4178 3 12 3C13.5822 3 15.1289 3.46918
62
62
  16.4445 4.34821C17.7601 5.22725 18.7855 6.47665 19.391 7.93844C19.9965 9.40022 20.155 11.0087 19.8463
63
- 12.5606C19.5377 14.1124 18.7758 15.5379 17.657 16.6567V16.6567Z`},null,-1),o_=a.createElementVNode("path",{stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",d:`M15 10.9998C15 11.7954 14.6839 12.5585 14.1213 13.1211C13.5587 13.6837 12.7956 13.9998 12 13.9998C11.2044
63
+ 12.5606C19.5377 14.1124 18.7758 15.5379 17.657 16.6567V16.6567Z`},null,-1),i_=a.createElementVNode("path",{stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",d:`M15 10.9998C15 11.7954 14.6839 12.5585 14.1213 13.1211C13.5587 13.6837 12.7956 13.9998 12 13.9998C11.2044
64
64
  13.9998 10.4413 13.6837 9.87868 13.1211C9.31607 12.5585 9 11.7954 9 10.9998C9 10.2041 9.31607 9.44104 9.87868
65
65
  8.87844C10.4413 8.31583 11.2044 7.99976 12 7.99976C12.7956 7.99976 13.5587 8.31583 14.1213 8.87844C14.6839
66
- 9.44104 15 10.2041 15 10.9998V10.9998Z`},null,-1),i_=[a_,o_];function s_(e,t){return a.openBlock(),a.createElementBlock("svg",r_,i_)}const l_=Jn(n_,[["render",s_]]),u_={class:"group mb-3 flex items-center font-semibold text-zinc-700"},c_={class:"mr-4 flex items-center justify-center rounded-full bg-white p-2 drop-shadow-sm transition-transform group-hover:-translate-x-2"},d_=a.defineComponent({__name:"AppBackButton",props:{buttonText:{},urlName:{},urlParameters:{default:void 0}},setup(e){return(t,n)=>{const r=a.resolveComponent("RouterLink");return a.openBlock(),a.createBlock(r,{to:{name:t.urlName,params:t.urlParameters},class:"inline-block"},{default:a.withCtx(()=>[a.createElementVNode("div",u_,[a.createElementVNode("div",c_,[a.createVNode(a.unref(Ip),{class:"h-4 stroke-3 text-black","data-test-icon":""})]),a.createTextVNode(" "+a.toDisplayString(t.buttonText),1)])]),_:1},8,["to"])}}}),f_={plain:[],default:["bg-zinc-100","text-zinc-900"],success:["bg-green-100","text-zinc-900"],warning:["bg-yellow-100","text-zinc-900"],error:["bg-red-100","text-error"]},p_={medium:["px-3 py-1.5 text-xs"],large:["px-3 py-2.5 text-sm"]},h_={plain:[],default:["!bg-zinc-600"],success:["!bg-green-600"],warning:["!bg-yellow-600"],error:["!bg-error"]},m_={key:0,class:"app-badge__icon mr-2 h-4"},v_={key:1,class:"app-badge__icon ml-2 h-4"},g_=a.defineComponent({__name:"AppBadge",props:{type:{default:"default"},rounded:{type:Boolean,default:!1},size:{default:"medium"}},setup(e){const t=e,n=a.computed(()=>({"rounded-full !text-white":t.rounded,"rounded-lg":!t.rounded}));return(r,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([[...a.unref(f_)[r.type],...a.unref(p_)[r.size],...t.rounded?a.unref(h_)[r.type]:[],n.value],"app-badge inline-flex items-center font-semibold"])},[r.$slots.leadingIcon?(a.openBlock(),a.createElementBlock("span",m_,[a.renderSlot(r.$slots,"leadingIcon",{},void 0,!0)])):a.createCommentVNode("",!0),a.renderSlot(r.$slots,"default",{},void 0,!0),r.$slots.trailingIcon?(a.openBlock(),a.createElementBlock("span",v_,[a.renderSlot(r.$slots,"trailingIcon",{},void 0,!0)])):a.createCommentVNode("",!0)],2))}});const fi=Jn(g_,[["__scopeId","data-v-4092128e"]]),y_={"extra-small":["h-4","w-4"],small:["h-5","w-5"],medium:["h-7","w-7"],large:["h-10","w-10"]},b_=a.createElementVNode("circle",{stroke:"currentColor",class:"opacity-25","stroke-width":"4",cx:"12",cy:"12",r:"10"},null,-1),__=a.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962
67
- 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`},null,-1),w_=[b_,__],Gr=a.defineComponent({__name:"AppLoader",props:{size:{default:"medium"}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("svg",{class:a.normalizeClass([a.unref(y_)[t.size],"animate-spin"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none"},w_,2))}}),k_={class:"app-button__icon h-4"},S_=a.defineComponent({__name:"ButtonIconSlot",props:{loading:{type:Boolean}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("span",k_,[t.loading?(a.openBlock(),a.createBlock(Gr,{key:0,class:"w-4"})):a.renderSlot(t.$slots,"default",{key:1},void 0,!0)]))}});const Yc=Jn(S_,[["__scopeId","data-v-04d5f165"]]),C_={plain:["text-primary","border-transparent"],primary:["text-white","bg-primary","border-transparent","enabled:hover:bg-primary-active"],secondary:["text-white","bg-secondary","border-transparent","enabled:hover:bg-secondary-active"]},T_={plain:["text-primary","border-transparent"],primary:["text-primary","bg-transparent","border-primary","enabled:hover:text-white","enabled:hover:bg-primary"],secondary:["text-secondary","bg-transparent","border-secondary","enabled:hover:text-white","enabled:hover:bg-secondary"]},E_={small:["px-5","py-2"],medium:["px-5","py-3"],large:["px-5","py-4"]},x_=["type","disabled"],Sa=a.defineComponent({__name:"AppButton",props:{size:{default:"medium"},type:{default:"button"},colorType:{default:"primary"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},block:{type:Boolean,default:!1}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("button",{type:t.type,disabled:t.disabled||t.loading,class:a.normalizeClass([[...t.bordered?[]:a.unref(C_)[t.colorType],...t.bordered?a.unref(T_)[t.colorType]:[],...a.unref(E_)[t.size],...t.block?["w-full","justify-center"]:[]],"app-button inline-flex items-center whitespace-nowrap rounded-lg border text-base font-semibold transition-colors focus:outline-none disabled:cursor-not-allowed disabled:select-none disabled:opacity-50"])},[t.$slots.leadingIcon||t.loading?(a.openBlock(),a.createBlock(Yc,{key:0,loading:t.loading,class:"mr-3","data-test-leading-icon":""},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"leadingIcon")]),_:3},8,["loading"])):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"default"),t.$slots.trailingIcon?(a.openBlock(),a.createBlock(Yc,{key:1,class:"ml-3","data-test-trailing-icon":""},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"trailingIcon")]),_:3})):a.createCommentVNode("",!0)],10,x_))}}),P_=a.defineComponent({__name:"AppDropdownItem",props:{label:{},name:{},disabled:{type:Boolean},to:{},icon:{type:[Object,Function]},iconClasses:{},onClick:{type:Function}},setup(e){const t=e,n=a.computed(()=>t.to?Sg.RouterLink:"div");function r(o){var i;if(t.disabled){o.preventDefault();return}(i=t.onClick)==null||i.call(t)}return(o,i)=>(a.openBlock(),a.createBlock(a.unref(kt.MenuItem),null,{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.value),{to:o.to,class:a.normalizeClass([{"!cursor-not-allowed":o.disabled},"flex cursor-pointer items-center px-6 py-2 text-base text-zinc-500 hover:bg-zinc-100 hover:text-zinc-900"]),"data-test-dropdown-item":"",onClick:r},{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default",{},()=>[o.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.icon),{key:0,class:a.normalizeClass([o.iconClasses,"mr-3 h-6 w-6"]),"data-test-icon":""},null,8,["class"])):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(o.label),1)])]),_:3},8,["to","class"]))]),_:3}))}}),I_={class:"relative inline-block text-left"},D_=a.defineComponent({__name:"AppDropdownButton",props:{dropdownItems:{},horizontalAlign:{default:"left"},openDirection:{default:"down"},buttonClasses:{},size:{},type:{},colorType:{},disabled:{type:Boolean},loading:{type:Boolean},bordered:{type:Boolean},block:{type:Boolean}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",I_,[a.createVNode(a.unref(kt.Menu),null,{default:a.withCtx(()=>[a.createVNode(a.unref(kt.MenuButton),null,{default:a.withCtx(()=>[a.createVNode(a.unref(Sa),a.normalizeProps(a.guardReactiveProps({...t.$props,class:t.buttonClasses})),{trailingIcon:a.withCtx(()=>[a.createVNode(a.unref(Pp))]),default:a.withCtx(()=>[a.renderSlot(t.$slots,"default")]),_:3},16)]),_:3}),a.createVNode(a.unref(kt.MenuItems),{class:a.normalizeClass([{"right-0 origin-top-right":t.horizontalAlign==="right","left-0 origin-top-left":t.horizontalAlign==="left","bottom-full mb-2":t.openDirection==="up"},"absolute z-10 mt-2 w-64 rounded-lg bg-white py-4 drop-shadow-card focus:outline-none"]),role:"menu","aria-orientation":"vertical","aria-labelledby":"menu-button",tabindex:"-1"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.dropdownItems,r=>(a.openBlock(),a.createBlock(P_,a.normalizeProps(a.mergeProps({key:r.label},r)),{default:a.withCtx(()=>[a.renderSlot(t.$slots,`item-${r.name}`,{item:r})]),_:2},1040))),128))]),_:3},8,["class"])]),_:3})]))}}),O_={key:0,class:"app-card__icon float-right mt-1.5 h-5 text-primary"},N_=a.defineComponent({__name:"CardIconSlot",props:{icon:{type:[String,Object,Function]}},setup(e){const t=e;return(n,r)=>n.$slots.default||n.icon?(a.openBlock(),a.createElementBlock("div",O_,[a.renderSlot(n.$slots,"default",{},()=>[t.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(typeof t.icon=="string"?"span":t.icon),{key:0,"data-test-icon-component":"",innerHTML:t.icon},null,8,["innerHTML"])):a.createCommentVNode("",!0)],!0)])):a.createCommentVNode("",!0)}});const B_=Jn(N_,[["__scopeId","data-v-817cbc72"]]),M_={1:"stroke-1",2:"stroke-2",3:"stroke-3"},R_=a.defineComponent({__name:"CardAction",props:{item:{}},setup(e){const t=e,{navigationComponent:n}=Ba(),r=a.ref(!1),o=a.computed(()=>r.value||typeof t.item.icon!="string"),i=a.computed(()=>r.value?Gr:t.item.icon),s=a.computed(()=>[o.value?"":"!h-6",M_[t.item.iconStroke??3]]);async function l(u){var c,f,p;(c=t.item)!=null&&c.onClick&&(u.preventDefault(),r.value=!0,await Promise.resolve((p=(f=t.item)==null?void 0:f.onClick)==null?void 0:p.call(f)),r.value=!1)}return(u,c)=>{var f;return a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),{to:u.item.to,href:u.item.href,class:a.normalizeClass([{"flex-row-reverse":((f=u.item)==null?void 0:f.iconPosition)==="right"},"app-card__action ml-auto flex items-center justify-center font-bold text-zinc-900 transition-colors group-hover:text-primary"]),onClick:l},{default:a.withCtx(()=>{var p,h;return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.value?i.value:"span"),{class:a.normalizeClass([s.value,"h-4 w-4"]),size:r.value?"extra-small":void 0,"data-test-icon":""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(o.value?"":u.item.icon),1)]),_:1},8,["class","size"])),a.createElementVNode("span",{class:a.normalizeClass([{"pl-2":u.item.icon&&((p=u.item)==null?void 0:p.iconPosition)!=="right","pr-2":u.item.icon&&((h=u.item)==null?void 0:h.iconPosition)==="right"},"text-xs"]),"data-test-name":""},a.toDisplayString(u.item.name),3)]}),_:1},8,["to","href","class"])}}}),A_={key:1,class:"text-2xl font-bold text-zinc-900","data-test-title":""},$_=a.defineComponent({__name:"AppCard",props:{title:{default:void 0},actions:{default:void 0},icon:{type:[String,Object,Function],default:void 0},bordered:{type:Boolean,default:!1},contentClasses:{default:void 0}},setup(e){const t=e,n=a.useSlots(),r=a.computed(()=>!!n.title||!!t.title),o=a.computed(()=>!!n.icon||!!t.icon),i=a.computed(()=>`${t.contentClasses} ${r.value?"mt-4":void 0}`);return(s,l)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([[{"before:hidden":!s.bordered,"transition hover:drop-shadow-cardhighlight":t.actions&&t.actions.length>0}],"group relative w-full overflow-hidden rounded-2xl bg-white px-6 py-5 text-zinc-600 drop-shadow-card before:absolute before:left-0 before:top-0 before:h-full before:w-1 before:bg-primary"])},[o.value?(a.openBlock(),a.createBlock(B_,{key:0,icon:s.icon,"data-test-icon":""},{default:a.withCtx(()=>[a.renderSlot(s.$slots,"icon")]),_:3},8,["icon"])):a.createCommentVNode("",!0),r.value?(a.openBlock(),a.createElementBlock("h3",A_,[a.renderSlot(s.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(s.title),1)])])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(i.value),"data-test-content":""},[a.renderSlot(s.$slots,"default")],2),a.renderSlot(s.$slots,"actions",{},()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.actions,u=>(a.openBlock(),a.createElementBlock("div",{key:u.name,class:"mt-2 flex w-full"},[a.createVNode(R_,{item:u},null,8,["item"])]))),128))])],2))}}),L_={class:"flex min-h-screen px-4 pb-20 pt-4 text-center md:items-center md:justify-center"},V_=a.createElementVNode("span",{class:"hidden md:inline-block md:h-screen md:align-middle","aria-hidden":"true"}," ​ ",-1),F_={class:"relative z-50 mx-auto inline-block w-full max-w-lg overflow-hidden text-left align-bottom transition-all md:my-8 md:max-w-2xl md:align-middle"},H_={class:"rounded-2xl bg-white p-10 drop-shadow-card"},U_={class:"flex flex-col items-center space-y-5"},z_={key:0,class:"mx-auto flex h-12 w-12 shrink-0 items-center justify-center rounded-full"},j_={class:"mt-3 text-center"},W_={class:"mt-3 w-full px-10 text-center text-sm text-zinc-600","data-test-confirm-content":""},q_=["innerHTML"],Y_={key:1},G_={class:"mx-auto flex w-fit flex-col space-y-4 pt-10"},Dp=a.defineComponent({__name:"AppConfirm",props:{title:{default:""},type:{default:"default"},content:{default:""},confirmButtonText:{default:""},confirmButtonTrailingIcon:{},confirmButtonLeadingIcon:{},cancelButtonText:{default:""},cancelButtonTrailingIcon:{},cancelButtonLeadingIcon:{},withBackdrop:{type:Boolean,default:!0},preventBackdropClose:{type:Boolean,default:!0},icon:{type:[String,Object,Function],default:void 0},html:{type:Boolean,default:!1},extendedIconDomClasses:{default:""},onConfirm:{},onCancel:{}},emits:["close","confirmed"],setup(e,{emit:t}){const n=e,r=a.ref(!0),o=a.ref(!1),i=a.ref(!1),s=a.computed(()=>!n.icon&&n.type==="error"?Tp:!n.icon&&n.type==="success"?Sp:n.icon),l=a.computed(()=>[n.type==="error"?"text-red-500":"text-green-500",n.extendedIconDomClasses]);async function u(c){c&&typeof n.onConfirm=="function"?(o.value=!0,await Promise.resolve(n.onConfirm())):!c&&typeof n.onCancel=="function"&&(i.value=!0,await Promise.resolve(n.onCancel())),r.value=!1,t("close",c)}return(c,f)=>(a.openBlock(),a.createBlock(a.unref(kt.TransitionRoot),{show:r.value,as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(kt.Dialog),{as:"div",class:"app-confirm-dialog fixed inset-0 top-16 z-50 overflow-y-auto md:left-20 md:top-0","data-test-confirm-dialog":"",onClose:f[2]||(f[2]=()=>c.preventBackdropClose?void 0:u(!1))},{default:a.withCtx(()=>[a.createElementVNode("div",L_,[c.withBackdrop?(a.openBlock(),a.createBlock(a.unref(kt.TransitionChild),{key:0,as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:a.withCtx(()=>[a.createVNode(a.unref(kt.DialogOverlay),{class:"app-confirm-dialog-overlay fixed inset-0 top-16 z-40 rounded-l-2xl bg-zinc-100 transition-opacity md:left-20 md:top-0"})]),_:1})):a.createCommentVNode("",!0),V_,a.createVNode(a.unref(kt.TransitionChild),{as:"template",enter:"ease-in-out duration-300","enter-from":"opacity-0 translate-y-4 md:translate-y-0 md:scale-95","enter-to":"opacity-100 translate-y-0 md:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 md:scale-100","leave-to":"opacity-0 translate-y-4 md:translate-y-0 md:scale-95"},{default:a.withCtx(()=>[a.createElementVNode("div",F_,[a.createElementVNode("div",H_,[a.createElementVNode("div",U_,[s.value?(a.openBlock(),a.createElementBlock("div",z_,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s.value),{class:a.normalizeClass([l.value,"h-full w-full"]),"data-test-confirm-icon":""},null,8,["class"]))])):a.createCommentVNode("",!0),a.createElementVNode("div",j_,[a.createVNode(a.unref(kt.DialogTitle),{as:"h3",class:"text-2xl font-bold leading-6 text-zinc-900"},{default:a.withCtx(()=>[a.renderSlot(c.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(c.title),1)])]),_:3}),a.createElementVNode("div",W_,[a.renderSlot(c.$slots,"default",{},()=>[c.html?(a.openBlock(),a.createElementBlock("div",{key:0,class:"app-confirm-html-content",innerHTML:c.content},null,8,q_)):(a.openBlock(),a.createElementBlock("p",Y_,a.toDisplayString(c.content),1))])])])]),a.createElementVNode("div",G_,[c.confirmButtonText?(a.openBlock(),a.createBlock(a.unref(Sa),{key:0,bordered:!0,disabled:o.value||i.value,loading:o.value,type:"button","color-type":"primary",class:"justify-center",onClick:f[0]||(f[0]=()=>u(!0))},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(c.confirmButtonText),1)]),_:2},[c.confirmButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.confirmButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,c.confirmButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.confirmButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0),c.cancelButtonText?(a.openBlock(),a.createBlock(a.unref(Sa),{key:1,disabled:o.value||i.value,loading:i.value,"color-type":"plain",class:"justify-center",onClick:f[1]||(f[1]=()=>u(!1))},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(c.cancelButtonText),1)]),_:2},[c.cancelButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.cancelButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,c.cancelButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.cancelButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0)])])])]),_:3})])]),_:3})]),_:3},8,["show"]))}}),K_={class:"flex min-h-screen items-center justify-center text-center"},X_=a.createElementVNode("span",{class:"inline-block h-screen align-middle","aria-hidden":"true"}," ​ ",-1),J_={class:"relative z-50 mx-auto inline-block w-full max-w-2xl overflow-hidden rounded-2xl p-4 text-left align-middle transition-all md:max-w-[70vw]"},Q_={class:"rounded-2xl bg-zinc-100 p-8 drop-shadow-card"},Z_={class:"flex flex-col items-center space-y-5"},ew={class:"w-full text-center"},tw={class:"mt-3 w-full px-10 text-center text-sm text-zinc-600","data-test-modal-content":""},nw={key:0,class:"ml-auto flex w-fit flex-row-reverse items-center pt-10"},Op=a.defineComponent({__name:"AppModal",props:{title:{default:""},submitButtonText:{default:"Opslaan"},submitButtonTrailingIcon:{},submitButtonLeadingIcon:{},cancelButtonText:{default:"Annuleren"},cancelButtonTrailingIcon:{},cancelButtonLeadingIcon:{},withBackdrop:{type:Boolean,default:!0},withFooter:{type:Boolean,default:!0},preventBackdropClose:{type:Boolean,default:!1},preventBackdropCloseOnLoading:{type:Boolean,default:!0},content:{type:[String,Object,Function],default:""}},emits:["open","close","cancel","submit"],setup(e,{expose:t,emit:n}){const r=e,o=a.ref(!1),i=a.ref(),s=a.ref(!1),l=a.ref(!1),u=a.computed(()=>r.preventBackdropClose||r.preventBackdropCloseOnLoading&&(s.value||l.value));async function c(){o.value=!0,n("open")}async function f(){l.value=!0,o.value=!1,n("close"),l.value=!1}async function p(){n("cancel"),await f()}async function h(){s.value=!0;const m=new FormData(i.value);n("submit",m),o.value=!1,setTimeout(()=>{s.value=!1},300)}return t({isOpen:o,open:c,close:f,submit:h}),(m,y)=>(a.openBlock(),a.createBlock(a.unref(kt.TransitionRoot),{show:o.value,as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(kt.Dialog),{as:"div",class:"app-modal-dialog fixed inset-0 z-50 overflow-y-auto","data-test-modal-dialog":"",onClose:y[0]||(y[0]=()=>u.value?void 0:f())},{default:a.withCtx(()=>[a.createElementVNode("div",K_,[m.withBackdrop?(a.openBlock(),a.createBlock(a.unref(kt.TransitionChild),{key:0,as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:a.withCtx(()=>[a.createVNode(a.unref(kt.DialogOverlay),{class:"fixed inset-0 z-40 bg-black/20 backdrop-blur-sm transition-opacity"})]),_:1})):a.createCommentVNode("",!0),X_,a.createVNode(a.unref(kt.TransitionChild),{as:"template",enter:"ease-in-out duration-300","enter-from":"opacity-0 translate-y-4 md:translate-y-0 md:scale-95","enter-to":"opacity-100 translate-y-0 md:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 md:scale-100","leave-to":"opacity-0 translate-y-4 md:translate-y-0 md:scale-95"},{default:a.withCtx(()=>[a.createElementVNode("div",J_,[a.createElementVNode("div",Q_,[a.createElementVNode("div",Z_,[a.createElementVNode("div",ew,[a.createVNode(a.unref(kt.DialogTitle),{as:"h3",class:"flex justify-between text-2xl font-bold leading-6 text-zinc-900"},{default:a.withCtx(()=>[a.renderSlot(m.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(m.title),1)]),a.createVNode(a.unref(Fi),{class:"h-6 w-6 cursor-pointer",onClick:f})]),_:3}),a.createElementVNode("div",tw,[a.createElementVNode("form",{ref_key:"form",ref:i},[a.renderSlot(m.$slots,"default",{},()=>[typeof m.content=="string"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(m.content),1)],64)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(m.content),{key:1}))])],512)])])]),m.withFooter?(a.openBlock(),a.createElementBlock("div",nw,[m.submitButtonText?(a.openBlock(),a.createBlock(a.unref(Sa),{key:0,disabled:s.value||l.value,loading:s.value,type:"button","color-type":"primary",class:"ml-6 justify-center",onClick:h},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(m.submitButtonText),1)]),_:2},[m.submitButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(m.submitButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,m.submitButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(m.submitButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0),m.cancelButtonText?(a.openBlock(),a.createBlock(a.unref(Sa),{key:1,disabled:s.value||l.value,loading:l.value,"color-type":"plain",class:"justify-center !text-zinc-900",onClick:p},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(m.cancelButtonText),1)]),_:2},[m.cancelButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(m.cancelButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,m.cancelButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(m.cancelButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])])]),_:3})])]),_:3})]),_:3},8,["show"]))}}),rw={key:0,class:"flex w-full","data-test-item":""},aw=a.defineComponent({__name:"AppDefinitionItem",props:{title:{default:void 0},description:{default:void 0},component:{default:void 0},componentProperties:{default:void 0},hideEmptyValues:{type:Boolean,default:!1}},setup(e){const t=e,n=a.useSlots(),r=a.computed(()=>!!n.title||!!t.title),o=a.computed(()=>!!n.default||!!t.description);return(i,s)=>o.value||!o.value&&!i.hideEmptyValues?(a.openBlock(),a.createElementBlock("div",rw,[r.value?(a.openBlock(),a.createElementBlock("dt",{key:0,class:a.normalizeClass([{"w-1/2":o.value||i.component},"font-bold text-zinc-900"]),"data-test-title":""},[a.renderSlot(i.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(i.title),1)])],2)):a.createCommentVNode("",!0),o.value||i.component?(a.openBlock(),a.createElementBlock("dd",{key:1,class:a.normalizeClass({"w-1/2":r.value}),"data-test-description":""},[a.renderSlot(i.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(i.description),1)]),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.component),a.mergeProps(i.componentProperties,{"data-test-component":""}),null,16))],2)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}}),ow={class:"flex flex-col gap-1.5"},iw=a.defineComponent({__name:"AppDefinitionList",props:{items:{},hideEmptyValues:{type:Boolean,default:!1}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",ow,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.items,(r,o)=>(a.openBlock(),a.createBlock(aw,{key:o,title:r.title,description:r.description,component:r.component,"component-properties":r.componentProperties,"hide-empty-values":t.hideEmptyValues},null,8,["title","description","component","component-properties","hide-empty-values"]))),128))]))}}),sw=a.defineComponent({__name:"AppDisclosure",props:{defaultOpen:{type:Boolean,default:!1}},setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.unref(kt.Disclosure),{"default-open":t.defaultOpen,class:"border-b border-zinc-200 last:border-0",as:"div"},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default")]),_:3},8,["default-open"]))}}),lw={class:"ml-auto pl-2"},uw=a.defineComponent({__name:"AppDisclosureButton",setup(e){const t=a.ref(null);function n(){var r,o;((r=t.value)==null?void 0:r.$el.dataset.headlessuiState)==="open"&&((o=t.value)==null||o.$el.blur())}return(r,o)=>(a.openBlock(),a.createBlock(a.unref(kt.DisclosureButton),{ref_key:"toggleButton",ref:t,as:"button",class:"flex w-full items-center py-4 text-zinc-900 outline-0 transition-font focus:font-bold",onClick:n},{default:a.withCtx(({open:i})=>[a.createElementVNode("span",{class:a.normalizeClass([{"font-bold":i},"text-left"])},[a.renderSlot(r.$slots,"default")],2),a.createElementVNode("span",lw,[a.renderSlot(r.$slots,"icon",{open:i},()=>[a.createVNode(a.unref(Pp),{class:a.normalizeClass([{"rotate-180":i},"h-5 w-5 text-zinc-900 transition-transform"])},null,8,["class"])])])]),_:3},512))}}),cw=a.defineComponent({__name:"AppDisclosurePanel",props:{static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.Transition,{"enter-active-class":"transition duration-100 ease-out","enter-from-class":"transform scale-95 opacity-0","enter-to-class":"transform scale-100 opacity-100","leave-active-class":"transition duration-75 ease-out","leave-from-class":"transform scale-100 opacity-100","leave-to-class":"transform scale-95 opacity-0"},{default:a.withCtx(()=>[a.createVNode(a.unref(kt.DisclosurePanel),{static:t.static,unmount:t.unmount,class:"-mt-2 mb-4",as:"div"},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default")]),_:3},8,["static","unmount"])]),_:3}))}});let Ho;const dw=new Uint8Array(16);function fw(){if(!Ho&&(Ho=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ho))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ho(dw)}const Vt=[];for(let e=0;e<256;++e)Vt.push((e+256).toString(16).slice(1));function pw(e,t=0){return(Vt[e[t+0]]+Vt[e[t+1]]+Vt[e[t+2]]+Vt[e[t+3]]+"-"+Vt[e[t+4]]+Vt[e[t+5]]+"-"+Vt[e[t+6]]+Vt[e[t+7]]+"-"+Vt[e[t+8]]+Vt[e[t+9]]+"-"+Vt[e[t+10]]+Vt[e[t+11]]+Vt[e[t+12]]+Vt[e[t+13]]+Vt[e[t+14]]+Vt[e[t+15]]).toLowerCase()}const hw=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Gc={randomUUID:hw};function mw(e,t,n){if(Gc.randomUUID&&!t&&!e)return Gc.randomUUID();e=e||{};const r=e.random||(e.rng||fw)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let o=0;o<16;++o)t[n+o]=r[o];return t}return pw(r)}const vw={class:"app-input__icon pointer-events-none absolute z-10 mt-px h-5"},gw=a.defineComponent({__name:"InputIconSlot",props:{loading:{type:Boolean}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("span",vw,[t.loading?(a.openBlock(),a.createBlock(Gr,{key:0,size:"small",class:"w-4"})):a.renderSlot(t.$slots,"default",{key:1},void 0,!0)]))}});const Kc=Jn(gw,[["__scopeId","data-v-b64a985e"]]);function pa(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}function $n(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",o;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):i;o=e.formattingValues[s]||e.formattingValues[i]}else{var l=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[u]||e.values[l]}var c=e.argumentCallback?e.argumentCallback(t):t;return o[c]}}function Ln(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?bw(l,function(p){return p.test(s)}):yw(l,function(p){return p.test(s)}),c;c=e.valueCallback?e.valueCallback(u):u,c=n.valueCallback?n.valueCallback(c):c;var f=t.slice(s.length);return{value:c,rest:f}}}function yw(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function bw(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Np(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;var l=t.slice(o.length);return{value:s,rest:l}}}function wn(e){"@babel/helpers - typeof";return wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wn(e)}function Oe(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ke(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Ne(e){ke(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||wn(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function lr(e,t){ke(2,arguments);var n=Ne(e),r=Oe(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function zn(e,t){ke(2,arguments);var n=Ne(e),r=Oe(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var s=i.getDate();return o>=s?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function Bp(e,t){if(ke(2,arguments),!t||wn(t)!=="object")return new Date(NaN);var n=t.years?Oe(t.years):0,r=t.months?Oe(t.months):0,o=t.weeks?Oe(t.weeks):0,i=t.days?Oe(t.days):0,s=t.hours?Oe(t.hours):0,l=t.minutes?Oe(t.minutes):0,u=t.seconds?Oe(t.seconds):0,c=Ne(e),f=r||n?zn(c,r+n*12):c,p=i||o?lr(f,i+o*7):f,h=l+s*60,m=u+h*60,y=m*1e3,k=new Date(p.getTime()+y);return k}function _w(e,t){ke(2,arguments);var n=Ne(e).getTime(),r=Oe(t);return new Date(n+r)}var ww={};function Qn(){return ww}function Wr(e,t){var n,r,o,i,s,l,u,c;ke(1,arguments);var f=Qn(),p=Oe((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Ne(e),m=h.getDay(),y=(m<p?7:0)+m-p;return h.setDate(h.getDate()-y),h.setHours(0,0,0,0),h}function pi(e){return ke(1,arguments),Wr(e,{weekStartsOn:1})}function kw(e){ke(1,arguments);var t=Ne(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var o=pi(r),i=new Date(0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);var s=pi(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Sw(e){ke(1,arguments);var t=kw(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=pi(n);return r}function hi(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Xc(e){ke(1,arguments);var t=Ne(e);return t.setHours(0,0,0,0),t}var Cw=864e5;function Tw(e,t){ke(2,arguments);var n=Xc(e),r=Xc(t),o=n.getTime()-hi(n),i=r.getTime()-hi(r);return Math.round((o-i)/Cw)}function Mp(e,t){ke(2,arguments);var n=Oe(t);return zn(e,n*12)}var pu=6e4,hu=36e5,Ew=1e3;function Rp(e){return ke(1,arguments),e instanceof Date||wn(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function eo(e){if(ke(1,arguments),!Rp(e)&&typeof e!="number")return!1;var t=Ne(e);return!isNaN(Number(t))}function Jc(e,t){var n;ke(1,arguments);var r=e||{},o=Ne(r.start),i=Ne(r.end),s=i.getTime();if(!(o.getTime()<=s))throw new RangeError("Invalid interval");var l=[],u=o;u.setHours(0,0,0,0);var c=Number((n=t==null?void 0:t.step)!==null&&n!==void 0?n:1);if(c<1||isNaN(c))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=s;)l.push(Ne(u)),u.setDate(u.getDate()+c),u.setHours(0,0,0,0);return l}function xw(e,t){var n,r,o,i,s,l,u,c;ke(1,arguments);var f=Qn(),p=Oe((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Ne(e),m=h.getDay(),y=(m<p?-7:0)+6-(m-p);return h.setDate(h.getDate()+y),h.setHours(23,59,59,999),h}function Ap(e,t){ke(2,arguments);var n=Oe(t);return _w(e,-n)}var Pw=864e5;function Iw(e){ke(1,arguments);var t=Ne(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/Pw)+1}function Ca(e){ke(1,arguments);var t=1,n=Ne(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function $p(e){ke(1,arguments);var t=Ne(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=Ca(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var s=Ca(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Dw(e){ke(1,arguments);var t=$p(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Ca(n);return r}var Ow=6048e5;function Lp(e){ke(1,arguments);var t=Ne(e),n=Ca(t).getTime()-Dw(t).getTime();return Math.round(n/Ow)+1}function qr(e,t){var n,r,o,i,s,l,u,c;ke(1,arguments);var f=Qn(),p=Oe((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Ne(e),m=h.getUTCDay(),y=(m<p?7:0)+m-p;return h.setUTCDate(h.getUTCDate()-y),h.setUTCHours(0,0,0,0),h}function mu(e,t){var n,r,o,i,s,l,u,c;ke(1,arguments);var f=Ne(e),p=f.getUTCFullYear(),h=Qn(),m=Oe((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:h.firstWeekContainsDate)!==null&&r!==void 0?r:(u=h.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(p+1,0,m),y.setUTCHours(0,0,0,0);var k=qr(y,t),_=new Date(0);_.setUTCFullYear(p,0,m),_.setUTCHours(0,0,0,0);var w=qr(_,t);return f.getTime()>=k.getTime()?p+1:f.getTime()>=w.getTime()?p:p-1}function Nw(e,t){var n,r,o,i,s,l,u,c;ke(1,arguments);var f=Qn(),p=Oe((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:f.firstWeekContainsDate)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=mu(e,t),m=new Date(0);m.setUTCFullYear(h,0,p),m.setUTCHours(0,0,0,0);var y=qr(m,t);return y}var Bw=6048e5;function Vp(e,t){ke(1,arguments);var n=Ne(e),r=qr(n,t).getTime()-Nw(n,t).getTime();return Math.round(r/Bw)+1}function at(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Mw={y:function(t,n){var r=t.getUTCFullYear(),o=r>0?r:1-r;return at(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):at(r+1,2)},d:function(t,n){return at(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return at(t.getUTCHours()%12||12,n.length)},H:function(t,n){return at(t.getUTCHours(),n.length)},m:function(t,n){return at(t.getUTCMinutes(),n.length)},s:function(t,n){return at(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return at(i,n.length)}};const hr=Mw;var ta={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Rw={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return hr.y(t,n)},Y:function(t,n,r,o){var i=mu(t,o),s=i>0?i:1-i;if(n==="YY"){var l=s%100;return at(l,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):at(s,n.length)},R:function(t,n){var r=$p(t);return at(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return at(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return at(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return at(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return hr.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return at(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=Vp(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):at(i,n.length)},I:function(t,n,r){var o=Lp(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):at(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):hr.d(t,n)},D:function(t,n,r){var o=Iw(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):at(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,r,o){var i=t.getUTCDay(),s=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return at(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,o){var i=t.getUTCDay(),s=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return at(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return at(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=ta.noon:o===0?i=ta.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=ta.evening:o>=12?i=ta.afternoon:o>=4?i=ta.morning:i=ta.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return hr.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):hr.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):at(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):at(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):hr.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):hr.s(t,n)},S:function(t,n){return hr.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return Zc(s);case"XXXX":case"XX":return Rr(s);case"XXXXX":case"XXX":default:return Rr(s,":")}},x:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();switch(n){case"x":return Zc(s);case"xxxx":case"xx":return Rr(s);case"xxxxx":case"xxx":default:return Rr(s,":")}},O:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Qc(s,":");case"OOOO":default:return"GMT"+Rr(s,":")}},z:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Qc(s,":");case"zzzz":default:return"GMT"+Rr(s,":")}},t:function(t,n,r,o){var i=o._originalDate||t,s=Math.floor(i.getTime()/1e3);return at(s,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,s=i.getTime();return at(s,n.length)}};function Qc(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var s=t||"";return n+String(o)+s+at(i,2)}function Zc(e,t){if(e%60===0){var n=e>0?"-":"+";return n+at(Math.abs(e)/60,2)}return Rr(e,t)}function Rr(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=at(Math.floor(o/60),2),s=at(o%60,2);return r+i+n+s}const Aw=Rw;var ed=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Fp=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},$w=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return ed(t,n);var s;switch(o){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",ed(o,n)).replace("{{time}}",Fp(i,n))},Lw={p:Fp,P:$w};const fl=Lw;var Vw=["D","DD"],Fw=["YY","YYYY"];function Hp(e){return Vw.indexOf(e)!==-1}function Up(e){return Fw.indexOf(e)!==-1}function mi(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Hw={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Uw=function(t,n,r){var o,i=Hw[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const zw=Uw;var jw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ww={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},qw={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Yw={date:pa({formats:jw,defaultWidth:"full"}),time:pa({formats:Ww,defaultWidth:"full"}),dateTime:pa({formats:qw,defaultWidth:"full"})};const Gw=Yw;var Kw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Xw=function(t,n,r,o){return Kw[t]};const Jw=Xw;var Qw={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Zw={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},e1={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},t1={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},n1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},r1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},a1=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},o1={ordinalNumber:a1,era:$n({values:Qw,defaultWidth:"wide"}),quarter:$n({values:Zw,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:$n({values:e1,defaultWidth:"wide"}),day:$n({values:t1,defaultWidth:"wide"}),dayPeriod:$n({values:n1,defaultWidth:"wide",formattingValues:r1,defaultFormattingWidth:"wide"})};const i1=o1;var s1=/^(\d+)(th|st|nd|rd)?/i,l1=/\d+/i,u1={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},c1={any:[/^b/i,/^(a|c)/i]},d1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},f1={any:[/1/i,/2/i,/3/i,/4/i]},p1={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h1={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},m1={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},v1={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g1={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},y1={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},b1={ordinalNumber:Np({matchPattern:s1,parsePattern:l1,valueCallback:function(t){return parseInt(t,10)}}),era:Ln({matchPatterns:u1,defaultMatchWidth:"wide",parsePatterns:c1,defaultParseWidth:"any"}),quarter:Ln({matchPatterns:d1,defaultMatchWidth:"wide",parsePatterns:f1,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ln({matchPatterns:p1,defaultMatchWidth:"wide",parsePatterns:h1,defaultParseWidth:"any"}),day:Ln({matchPatterns:m1,defaultMatchWidth:"wide",parsePatterns:v1,defaultParseWidth:"any"}),dayPeriod:Ln({matchPatterns:g1,defaultMatchWidth:"any",parsePatterns:y1,defaultParseWidth:"any"})};const _1=b1;var w1={code:"en-US",formatDistance:zw,formatLong:Gw,formatRelative:Jw,localize:i1,match:_1,options:{weekStartsOn:0,firstWeekContainsDate:1}};const zp=w1;var k1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,S1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,C1=/^'([^]*?)'?$/,T1=/''/g,E1=/[a-zA-Z]/;function jr(e,t,n){var r,o,i,s,l,u,c,f,p,h,m,y,k,_,w,T,N,b;ke(2,arguments);var B=String(t),C=Qn(),I=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:C.locale)!==null&&r!==void 0?r:zp,F=Oe((i=(s=(l=(u=n==null?void 0:n.firstWeekContainsDate)!==null&&u!==void 0?u:n==null||(c=n.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&l!==void 0?l:C.firstWeekContainsDate)!==null&&s!==void 0?s:(p=C.locale)===null||p===void 0||(h=p.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(F>=1&&F<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var q=Oe((m=(y=(k=(_=n==null?void 0:n.weekStartsOn)!==null&&_!==void 0?_:n==null||(w=n.locale)===null||w===void 0||(T=w.options)===null||T===void 0?void 0:T.weekStartsOn)!==null&&k!==void 0?k:C.weekStartsOn)!==null&&y!==void 0?y:(N=C.locale)===null||N===void 0||(b=N.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&m!==void 0?m:0);if(!(q>=0&&q<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!I.localize)throw new RangeError("locale must contain localize property");if(!I.formatLong)throw new RangeError("locale must contain formatLong property");var W=Ne(e);if(!eo(W))throw new RangeError("Invalid time value");var M=hi(W),D=Ap(W,M),$={firstWeekContainsDate:F,weekStartsOn:q,locale:I,_originalDate:W},Y=B.match(S1).map(function(X){var K=X[0];if(K==="p"||K==="P"){var j=fl[K];return j(X,I.formatLong)}return X}).join("").match(k1).map(function(X){if(X==="''")return"'";var K=X[0];if(K==="'")return x1(X);var j=Aw[K];if(j)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Up(X)&&mi(X,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Hp(X)&&mi(X,t,String(e)),j(D,X,I.localize,$);if(K.match(E1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+K+"`");return X}).join("");return Y}function x1(e){var t=e.match(C1);return t?t[1].replace(T1,"'"):e}function P1(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function I1(e){ke(1,arguments);var t=Ne(e),n=t.getDay();return n}function D1(e){ke(1,arguments);var t=Ne(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function ir(e){ke(1,arguments);var t=Ne(e),n=t.getHours();return n}var O1=6048e5;function N1(e){ke(1,arguments);var t=Ne(e),n=pi(t).getTime()-Sw(t).getTime();return Math.round(n/O1)+1}function sr(e){ke(1,arguments);var t=Ne(e),n=t.getMinutes();return n}function ct(e){ke(1,arguments);var t=Ne(e),n=t.getMonth();return n}function Ta(e){ke(1,arguments);var t=Ne(e),n=t.getSeconds();return n}function B1(e,t){var n,r,o,i,s,l,u,c;ke(1,arguments);var f=Ne(e),p=f.getFullYear(),h=Qn(),m=Oe((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:h.firstWeekContainsDate)!==null&&r!==void 0?r:(u=h.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setFullYear(p+1,0,m),y.setHours(0,0,0,0);var k=Wr(y,t),_=new Date(0);_.setFullYear(p,0,m),_.setHours(0,0,0,0);var w=Wr(_,t);return f.getTime()>=k.getTime()?p+1:f.getTime()>=w.getTime()?p:p-1}function M1(e,t){var n,r,o,i,s,l,u,c;ke(1,arguments);var f=Qn(),p=Oe((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:f.firstWeekContainsDate)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=B1(e,t),m=new Date(0);m.setFullYear(h,0,p),m.setHours(0,0,0,0);var y=Wr(m,t);return y}var R1=6048e5;function A1(e,t){ke(1,arguments);var n=Ne(e),r=Wr(n,t).getTime()-M1(n,t).getTime();return Math.round(r/R1)+1}function ht(e){return ke(1,arguments),Ne(e).getFullYear()}function mo(e,t){ke(2,arguments);var n=Ne(e),r=Ne(t);return n.getTime()>r.getTime()}function vo(e,t){ke(2,arguments);var n=Ne(e),r=Ne(t);return n.getTime()<r.getTime()}function Vr(e,t){ke(2,arguments);var n=Ne(e),r=Ne(t);return n.getTime()===r.getTime()}function td(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $1(e,t){if(e){if(typeof e=="string")return td(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return td(e,t)}}function nd(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=$1(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
68
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,l;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return i=c.done,c},e:function(c){s=!0,l=c},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw l}}}}function ye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pl(e,t){return pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},pl(e,t)}function Xe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pl(e,t)}function vi(e){return vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vi(e)}function L1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function V1(e,t){if(t&&(wn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ye(e)}function Je(e){var t=L1();return function(){var r=vi(e),o;if(t){var i=vi(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return V1(this,o)}}function je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F1(e,t){if(wn(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(wn(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jp(e){var t=F1(e,"string");return wn(t)==="symbol"?t:String(t)}function rd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jp(r.key),r)}}function We(e,t,n){return t&&rd(e.prototype,t),n&&rd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function he(e,t,n){return t=jp(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H1=10,Wp=function(){function e(){je(this,e),he(this,"priority",void 0),he(this,"subPriority",0)}return We(e,[{key:"validate",value:function(n,r){return!0}}]),e}(),U1=function(e){Xe(n,e);var t=Je(n);function n(r,o,i,s,l){var u;return je(this,n),u=t.call(this),u.value=r,u.validateValue=o,u.setValue=i,u.priority=s,l&&(u.subPriority=l),u}return We(n,[{key:"validate",value:function(o,i){return this.validateValue(o,this.value,i)}},{key:"set",value:function(o,i,s){return this.setValue(o,i,this.value,s)}}]),n}(Wp),z1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",H1),he(ye(r),"subPriority",-1),r}return We(n,[{key:"set",value:function(o,i){if(i.timestampIsSet)return o;var s=new Date(0);return s.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),s.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),s}}]),n}(Wp),nt=function(){function e(){je(this,e),he(this,"incompatibleTokens",void 0),he(this,"priority",void 0),he(this,"subPriority",void 0)}return We(e,[{key:"run",value:function(n,r,o,i){var s=this.parse(n,r,o,i);return s?{setter:new U1(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}},{key:"validate",value:function(n,r,o){return!0}}]),e}(),j1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",140),he(ye(r),"incompatibleTokens",["R","u","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"G":case"GG":case"GGG":return s.era(o,{width:"abbreviated"})||s.era(o,{width:"narrow"});case"GGGGG":return s.era(o,{width:"narrow"});case"GGGG":default:return s.era(o,{width:"wide"})||s.era(o,{width:"abbreviated"})||s.era(o,{width:"narrow"})}}},{key:"set",value:function(o,i,s){return i.era=s,o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(nt),Ct={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Vn={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Tt(e,t){return e&&{value:t(e.value),rest:e.rest}}function bt(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Fn(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(o*hu+i*pu+s*Ew),rest:t.slice(n[0].length)}}function qp(e){return bt(Ct.anyDigitsSigned,e)}function St(e,t){switch(e){case 1:return bt(Ct.singleDigit,t);case 2:return bt(Ct.twoDigits,t);case 3:return bt(Ct.threeDigits,t);case 4:return bt(Ct.fourDigits,t);default:return bt(new RegExp("^\\d{1,"+e+"}"),t)}}function gi(e,t){switch(e){case 1:return bt(Ct.singleDigitSigned,t);case 2:return bt(Ct.twoDigitsSigned,t);case 3:return bt(Ct.threeDigitsSigned,t);case 4:return bt(Ct.fourDigitsSigned,t);default:return bt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function vu(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Yp(e,t){var n=t>0,r=n?t:1-t,o;if(r<=50)o=e||100;else{var i=r+50,s=Math.floor(i/100)*100,l=e>=i%100;o=e+s-(l?100:0)}return n?o:1-o}function Gp(e){return e%400===0||e%4===0&&e%100!==0}var W1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",130),he(ye(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){var l=function(c){return{year:c,isTwoDigitYear:i==="yy"}};switch(i){case"y":return Tt(St(4,o),l);case"yo":return Tt(s.ordinalNumber(o,{unit:"year"}),l);default:return Tt(St(i.length,o),l)}}},{key:"validate",value:function(o,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(o,i,s){var l=o.getUTCFullYear();if(s.isTwoDigitYear){var u=Yp(s.year,l);return o.setUTCFullYear(u,0,1),o.setUTCHours(0,0,0,0),o}var c=!("era"in i)||i.era===1?s.year:1-s.year;return o.setUTCFullYear(c,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(nt),q1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",130),he(ye(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){var l=function(c){return{year:c,isTwoDigitYear:i==="YY"}};switch(i){case"Y":return Tt(St(4,o),l);case"Yo":return Tt(s.ordinalNumber(o,{unit:"year"}),l);default:return Tt(St(i.length,o),l)}}},{key:"validate",value:function(o,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(o,i,s,l){var u=mu(o,l);if(s.isTwoDigitYear){var c=Yp(s.year,u);return o.setUTCFullYear(c,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),qr(o,l)}var f=!("era"in i)||i.era===1?s.year:1-s.year;return o.setUTCFullYear(f,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),qr(o,l)}}]),n}(nt),Y1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",130),he(ye(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i){return gi(i==="R"?4:i.length,o)}},{key:"set",value:function(o,i,s){var l=new Date(0);return l.setUTCFullYear(s,0,4),l.setUTCHours(0,0,0,0),Ca(l)}}]),n}(nt),G1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",130),he(ye(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i){return gi(i==="u"?4:i.length,o)}},{key:"set",value:function(o,i,s){return o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(nt),K1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",120),he(ye(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"Q":case"QQ":return St(i.length,o);case"Qo":return s.ordinalNumber(o,{unit:"quarter"});case"QQQ":return s.quarter(o,{width:"abbreviated",context:"formatting"})||s.quarter(o,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(o,{width:"wide",context:"formatting"})||s.quarter(o,{width:"abbreviated",context:"formatting"})||s.quarter(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=1&&i<=4}},{key:"set",value:function(o,i,s){return o.setUTCMonth((s-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(nt),X1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",120),he(ye(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"q":case"qq":return St(i.length,o);case"qo":return s.ordinalNumber(o,{unit:"quarter"});case"qqq":return s.quarter(o,{width:"abbreviated",context:"standalone"})||s.quarter(o,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(o,{width:"wide",context:"standalone"})||s.quarter(o,{width:"abbreviated",context:"standalone"})||s.quarter(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,i){return i>=1&&i<=4}},{key:"set",value:function(o,i,s){return o.setUTCMonth((s-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(nt),J1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),he(ye(r),"priority",110),r}return We(n,[{key:"parse",value:function(o,i,s){var l=function(c){return c-1};switch(i){case"M":return Tt(bt(Ct.month,o),l);case"MM":return Tt(St(2,o),l);case"Mo":return Tt(s.ordinalNumber(o,{unit:"month"}),l);case"MMM":return s.month(o,{width:"abbreviated",context:"formatting"})||s.month(o,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(o,{width:"wide",context:"formatting"})||s.month(o,{width:"abbreviated",context:"formatting"})||s.month(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=11}},{key:"set",value:function(o,i,s){return o.setUTCMonth(s,1),o.setUTCHours(0,0,0,0),o}}]),n}(nt),Q1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",110),he(ye(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){var l=function(c){return c-1};switch(i){case"L":return Tt(bt(Ct.month,o),l);case"LL":return Tt(St(2,o),l);case"Lo":return Tt(s.ordinalNumber(o,{unit:"month"}),l);case"LLL":return s.month(o,{width:"abbreviated",context:"standalone"})||s.month(o,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(o,{width:"wide",context:"standalone"})||s.month(o,{width:"abbreviated",context:"standalone"})||s.month(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=11}},{key:"set",value:function(o,i,s){return o.setUTCMonth(s,1),o.setUTCHours(0,0,0,0),o}}]),n}(nt);function Z1(e,t,n){ke(2,arguments);var r=Ne(e),o=Oe(t),i=Vp(r,n)-o;return r.setUTCDate(r.getUTCDate()-i*7),r}var ek=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",100),he(ye(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"w":return bt(Ct.week,o);case"wo":return s.ordinalNumber(o,{unit:"week"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=53}},{key:"set",value:function(o,i,s,l){return qr(Z1(o,s,l),l)}}]),n}(nt);function tk(e,t){ke(2,arguments);var n=Ne(e),r=Oe(t),o=Lp(n)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}var nk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",100),he(ye(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"I":return bt(Ct.week,o);case"Io":return s.ordinalNumber(o,{unit:"week"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=53}},{key:"set",value:function(o,i,s){return Ca(tk(o,s))}}]),n}(nt),rk=[31,28,31,30,31,30,31,31,30,31,30,31],ak=[31,29,31,30,31,30,31,31,30,31,30,31],ok=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",90),he(ye(r),"subPriority",1),he(ye(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"d":return bt(Ct.date,o);case"do":return s.ordinalNumber(o,{unit:"date"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){var s=o.getUTCFullYear(),l=Gp(s),u=o.getUTCMonth();return l?i>=1&&i<=ak[u]:i>=1&&i<=rk[u]}},{key:"set",value:function(o,i,s){return o.setUTCDate(s),o.setUTCHours(0,0,0,0),o}}]),n}(nt),ik=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",90),he(ye(r),"subpriority",1),he(ye(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"D":case"DD":return bt(Ct.dayOfYear,o);case"Do":return s.ordinalNumber(o,{unit:"date"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){var s=o.getUTCFullYear(),l=Gp(s);return l?i>=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(o,i,s){return o.setUTCMonth(0,s),o.setUTCHours(0,0,0,0),o}}]),n}(nt);function gu(e,t,n){var r,o,i,s,l,u,c,f;ke(2,arguments);var p=Qn(),h=Oe((r=(o=(i=(s=n==null?void 0:n.weekStartsOn)!==null&&s!==void 0?s:n==null||(l=n.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&i!==void 0?i:p.weekStartsOn)!==null&&o!==void 0?o:(c=p.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Ne(e),y=Oe(t),k=m.getUTCDay(),_=y%7,w=(_+7)%7,T=(w<h?7:0)+y-k;return m.setUTCDate(m.getUTCDate()+T),m}var sk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",90),he(ye(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"E":case"EE":case"EEE":return s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(o,{width:"wide",context:"formatting"})||s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=6}},{key:"set",value:function(o,i,s,l){return o=gu(o,s,l),o.setUTCHours(0,0,0,0),o}}]),n}(nt),lk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",90),he(ye(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s,l){var u=function(f){var p=Math.floor((f-1)/7)*7;return(f+l.weekStartsOn+6)%7+p};switch(i){case"e":case"ee":return Tt(St(i.length,o),u);case"eo":return Tt(s.ordinalNumber(o,{unit:"day"}),u);case"eee":return s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"eeeee":return s.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(o,{width:"wide",context:"formatting"})||s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=6}},{key:"set",value:function(o,i,s,l){return o=gu(o,s,l),o.setUTCHours(0,0,0,0),o}}]),n}(nt),uk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",90),he(ye(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s,l){var u=function(f){var p=Math.floor((f-1)/7)*7;return(f+l.weekStartsOn+6)%7+p};switch(i){case"c":case"cc":return Tt(St(i.length,o),u);case"co":return Tt(s.ordinalNumber(o,{unit:"day"}),u);case"ccc":return s.day(o,{width:"abbreviated",context:"standalone"})||s.day(o,{width:"short",context:"standalone"})||s.day(o,{width:"narrow",context:"standalone"});case"ccccc":return s.day(o,{width:"narrow",context:"standalone"});case"cccccc":return s.day(o,{width:"short",context:"standalone"})||s.day(o,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(o,{width:"wide",context:"standalone"})||s.day(o,{width:"abbreviated",context:"standalone"})||s.day(o,{width:"short",context:"standalone"})||s.day(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=6}},{key:"set",value:function(o,i,s,l){return o=gu(o,s,l),o.setUTCHours(0,0,0,0),o}}]),n}(nt);function ck(e,t){ke(2,arguments);var n=Oe(t);n%7===0&&(n=n-7);var r=1,o=Ne(e),i=o.getUTCDay(),s=n%7,l=(s+7)%7,u=(l<r?7:0)+n-i;return o.setUTCDate(o.getUTCDate()+u),o}var dk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",90),he(ye(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){var l=function(c){return c===0?7:c};switch(i){case"i":case"ii":return St(i.length,o);case"io":return s.ordinalNumber(o,{unit:"day"});case"iii":return Tt(s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"}),l);case"iiiii":return Tt(s.day(o,{width:"narrow",context:"formatting"}),l);case"iiiiii":return Tt(s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"}),l);case"iiii":default:return Tt(s.day(o,{width:"wide",context:"formatting"})||s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"}),l)}}},{key:"validate",value:function(o,i){return i>=1&&i<=7}},{key:"set",value:function(o,i,s){return o=ck(o,s),o.setUTCHours(0,0,0,0),o}}]),n}(nt),fk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",80),he(ye(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"a":case"aa":case"aaa":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})||s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,i,s){return o.setUTCHours(vu(s),0,0,0),o}}]),n}(nt),pk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",80),he(ye(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"b":case"bb":case"bbb":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})||s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,i,s){return o.setUTCHours(vu(s),0,0,0),o}}]),n}(nt),hk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",80),he(ye(r),"incompatibleTokens",["a","b","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"B":case"BB":case"BBB":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})||s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,i,s){return o.setUTCHours(vu(s),0,0,0),o}}]),n}(nt),mk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",70),he(ye(r),"incompatibleTokens",["H","K","k","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"h":return bt(Ct.hour12h,o);case"ho":return s.ordinalNumber(o,{unit:"hour"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=12}},{key:"set",value:function(o,i,s){var l=o.getUTCHours()>=12;return l&&s<12?o.setUTCHours(s+12,0,0,0):!l&&s===12?o.setUTCHours(0,0,0,0):o.setUTCHours(s,0,0,0),o}}]),n}(nt),vk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",70),he(ye(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"H":return bt(Ct.hour23h,o);case"Ho":return s.ordinalNumber(o,{unit:"hour"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=23}},{key:"set",value:function(o,i,s){return o.setUTCHours(s,0,0,0),o}}]),n}(nt),gk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",70),he(ye(r),"incompatibleTokens",["h","H","k","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"K":return bt(Ct.hour11h,o);case"Ko":return s.ordinalNumber(o,{unit:"hour"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=11}},{key:"set",value:function(o,i,s){var l=o.getUTCHours()>=12;return l&&s<12?o.setUTCHours(s+12,0,0,0):o.setUTCHours(s,0,0,0),o}}]),n}(nt),yk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",70),he(ye(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"k":return bt(Ct.hour24h,o);case"ko":return s.ordinalNumber(o,{unit:"hour"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=24}},{key:"set",value:function(o,i,s){var l=s<=24?s%24:s;return o.setUTCHours(l,0,0,0),o}}]),n}(nt),bk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",60),he(ye(r),"incompatibleTokens",["t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"m":return bt(Ct.minute,o);case"mo":return s.ordinalNumber(o,{unit:"minute"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=59}},{key:"set",value:function(o,i,s){return o.setUTCMinutes(s,0,0),o}}]),n}(nt),_k=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",50),he(ye(r),"incompatibleTokens",["t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"s":return bt(Ct.second,o);case"so":return s.ordinalNumber(o,{unit:"second"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=59}},{key:"set",value:function(o,i,s){return o.setUTCSeconds(s,0),o}}]),n}(nt),wk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",30),he(ye(r),"incompatibleTokens",["t","T"]),r}return We(n,[{key:"parse",value:function(o,i){var s=function(u){return Math.floor(u*Math.pow(10,-i.length+3))};return Tt(St(i.length,o),s)}},{key:"set",value:function(o,i,s){return o.setUTCMilliseconds(s),o}}]),n}(nt),kk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",10),he(ye(r),"incompatibleTokens",["t","T","x"]),r}return We(n,[{key:"parse",value:function(o,i){switch(i){case"X":return Fn(Vn.basicOptionalMinutes,o);case"XX":return Fn(Vn.basic,o);case"XXXX":return Fn(Vn.basicOptionalSeconds,o);case"XXXXX":return Fn(Vn.extendedOptionalSeconds,o);case"XXX":default:return Fn(Vn.extended,o)}}},{key:"set",value:function(o,i,s){return i.timestampIsSet?o:new Date(o.getTime()-s)}}]),n}(nt),Sk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",10),he(ye(r),"incompatibleTokens",["t","T","X"]),r}return We(n,[{key:"parse",value:function(o,i){switch(i){case"x":return Fn(Vn.basicOptionalMinutes,o);case"xx":return Fn(Vn.basic,o);case"xxxx":return Fn(Vn.basicOptionalSeconds,o);case"xxxxx":return Fn(Vn.extendedOptionalSeconds,o);case"xxx":default:return Fn(Vn.extended,o)}}},{key:"set",value:function(o,i,s){return i.timestampIsSet?o:new Date(o.getTime()-s)}}]),n}(nt),Ck=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",40),he(ye(r),"incompatibleTokens","*"),r}return We(n,[{key:"parse",value:function(o){return qp(o)}},{key:"set",value:function(o,i,s){return[new Date(s*1e3),{timestampIsSet:!0}]}}]),n}(nt),Tk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",20),he(ye(r),"incompatibleTokens","*"),r}return We(n,[{key:"parse",value:function(o){return qp(o)}},{key:"set",value:function(o,i,s){return[new Date(s),{timestampIsSet:!0}]}}]),n}(nt),Ek={G:new j1,y:new W1,Y:new q1,R:new Y1,u:new G1,Q:new K1,q:new X1,M:new J1,L:new Q1,w:new ek,I:new nk,d:new ok,D:new ik,E:new sk,e:new lk,c:new uk,i:new dk,a:new fk,b:new pk,B:new hk,h:new mk,H:new vk,K:new gk,k:new yk,m:new bk,s:new _k,S:new wk,X:new kk,x:new Sk,t:new Ck,T:new Tk},xk=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Pk=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ik=/^'([^]*?)'?$/,Dk=/''/g,Ok=/\S/,Nk=/[a-zA-Z]/;function hl(e,t,n,r){var o,i,s,l,u,c,f,p,h,m,y,k,_,w,T,N,b,B;ke(3,arguments);var C=String(e),I=String(t),F=Qn(),q=(o=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:F.locale)!==null&&o!==void 0?o:zp;if(!q.match)throw new RangeError("locale must contain match property");var W=Oe((s=(l=(u=(c=r==null?void 0:r.firstWeekContainsDate)!==null&&c!==void 0?c:r==null||(f=r.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&u!==void 0?u:F.firstWeekContainsDate)!==null&&l!==void 0?l:(h=F.locale)===null||h===void 0||(m=h.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=Oe((y=(k=(_=(w=r==null?void 0:r.weekStartsOn)!==null&&w!==void 0?w:r==null||(T=r.locale)===null||T===void 0||(N=T.options)===null||N===void 0?void 0:N.weekStartsOn)!==null&&_!==void 0?_:F.weekStartsOn)!==null&&k!==void 0?k:(b=F.locale)===null||b===void 0||(B=b.options)===null||B===void 0?void 0:B.weekStartsOn)!==null&&y!==void 0?y:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(I==="")return C===""?Ne(n):new Date(NaN);var D={firstWeekContainsDate:W,weekStartsOn:M,locale:q},$=[new z1],Y=I.match(Pk).map(function(ie){var oe=ie[0];if(oe in fl){var Ie=fl[oe];return Ie(ie,q.formatLong)}return ie}).join("").match(xk),X=[],K=nd(Y),j;try{var U=function(){var oe=j.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Up(oe)&&mi(oe,I,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Hp(oe)&&mi(oe,I,e);var Ie=oe[0],Ee=Ek[Ie];if(Ee){var fe=Ee.incompatibleTokens;if(Array.isArray(fe)){var Be=X.find(function(ze){return fe.includes(ze.token)||ze.token===Ie});if(Be)throw new RangeError("The format string mustn't contain `".concat(Be.fullToken,"` and `").concat(oe,"` at the same time"))}else if(Ee.incompatibleTokens==="*"&&X.length>0)throw new RangeError("The format string mustn't contain `".concat(oe,"` and any other token at the same time"));X.push({token:Ie,fullToken:oe});var $e=Ee.run(C,oe,q.match,D);if(!$e)return{v:new Date(NaN)};$.push($e.setter),C=$e.rest}else{if(Ie.match(Nk))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Ie+"`");if(oe==="''"?oe="'":Ie==="'"&&(oe=Bk(oe)),C.indexOf(oe)===0)C=C.slice(oe.length);else return{v:new Date(NaN)}}};for(K.s();!(j=K.n()).done;){var S=U();if(wn(S)==="object")return S.v}}catch(ie){K.e(ie)}finally{K.f()}if(C.length>0&&Ok.test(C))return new Date(NaN);var H=$.map(function(ie){return ie.priority}).sort(function(ie,oe){return oe-ie}).filter(function(ie,oe,Ie){return Ie.indexOf(ie)===oe}).map(function(ie){return $.filter(function(oe){return oe.priority===ie}).sort(function(oe,Ie){return Ie.subPriority-oe.subPriority})}).map(function(ie){return ie[0]}),Z=Ne(n);if(isNaN(Z.getTime()))return new Date(NaN);var Q=Ap(Z,hi(Z)),V={},E=nd(H),P;try{for(E.s();!(P=E.n()).done;){var R=P.value;if(!R.validate(Q,D))return new Date(NaN);var G=R.set(Q,V,D);Array.isArray(G)?(Q=G[0],P1(V,G[1])):Q=G}}catch(ie){E.e(ie)}finally{E.f()}return Q}function Bk(e){return e.match(Ik)[1].replace(Dk,"'")}function Mk(e,t){ke(2,arguments);var n=Oe(t);return lr(e,-n)}function Rk(e,t){var n;ke(1,arguments);var r=Oe((n=t==null?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=Vk(e),i;if(o.date){var s=Fk(o.date,r);i=Hk(s.restDateString,s.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var l=i.getTime(),u=0,c;if(o.time&&(u=Uk(o.time),isNaN(u)))return new Date(NaN);if(o.timezone){if(c=zk(o.timezone),isNaN(c))return new Date(NaN)}else{var f=new Date(l+u),p=new Date(0);return p.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),p.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),p}return new Date(l+u+c)}var Uo={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ak=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,$k=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Lk=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Vk(e){var t={},n=e.split(Uo.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Uo.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Uo.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var o=Uo.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function Fk(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function Hk(e,t){if(t===null)return new Date(NaN);var n=e.match(Ak);if(!n)return new Date(NaN);var r=!!n[4],o=qa(n[1]),i=qa(n[2])-1,s=qa(n[3]),l=qa(n[4]),u=qa(n[5])-1;if(r)return Gk(t,l,u)?jk(t,l,u):new Date(NaN);var c=new Date(0);return!qk(t,i,s)||!Yk(t,o)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(o,s)),c)}function qa(e){return e?parseInt(e):1}function Uk(e){var t=e.match($k);if(!t)return NaN;var n=Ms(t[1]),r=Ms(t[2]),o=Ms(t[3]);return Kk(n,r,o)?n*hu+r*pu+o*1e3:NaN}function Ms(e){return e&&parseFloat(e.replace(",","."))||0}function zk(e){if(e==="Z")return 0;var t=e.match(Lk);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return Xk(r,o)?n*(r*hu+o*pu):NaN}function jk(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var Wk=[31,null,31,30,31,30,31,31,30,31,30,31];function Kp(e){return e%400===0||e%4===0&&e%100!==0}function qk(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Wk[t]||(Kp(e)?29:28))}function Yk(e,t){return t>=1&&t<=(Kp(e)?366:365)}function Gk(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Kk(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Xk(e,t){return t>=0&&t<=59}function la(e,t){ke(2,arguments);var n=Ne(e),r=Oe(t),o=n.getFullYear(),i=n.getDate(),s=new Date(0);s.setFullYear(o,r,15),s.setHours(0,0,0,0);var l=D1(s);return n.setMonth(r,Math.min(i,l)),n}function Nt(e,t){if(ke(2,arguments),wn(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=Ne(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=la(n,t.month)),t.date!=null&&n.setDate(Oe(t.date)),t.hours!=null&&n.setHours(Oe(t.hours)),t.minutes!=null&&n.setMinutes(Oe(t.minutes)),t.seconds!=null&&n.setSeconds(Oe(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(Oe(t.milliseconds)),n)}function Xp(e,t){ke(2,arguments);var n=Ne(e),r=Oe(t);return n.setHours(r),n}function yu(e,t){ke(2,arguments);var n=Ne(e),r=Oe(t);return n.setMilliseconds(r),n}function Jp(e,t){ke(2,arguments);var n=Ne(e),r=Oe(t);return n.setMinutes(r),n}function Qp(e,t){ke(2,arguments);var n=Ne(e),r=Oe(t);return n.setSeconds(r),n}function ur(e,t){ke(2,arguments);var n=Ne(e),r=Oe(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function ha(e,t){ke(2,arguments);var n=Oe(t);return zn(e,-n)}function Jk(e,t){if(ke(2,arguments),!t||wn(t)!=="object")return new Date(NaN);var n=t.years?Oe(t.years):0,r=t.months?Oe(t.months):0,o=t.weeks?Oe(t.weeks):0,i=t.days?Oe(t.days):0,s=t.hours?Oe(t.hours):0,l=t.minutes?Oe(t.minutes):0,u=t.seconds?Oe(t.seconds):0,c=ha(e,r+n*12),f=Mk(c,i+o*7),p=l+s*60,h=u+p*60,m=h*1e3,y=new Date(f.getTime()-m);return y}function Qk(e,t){ke(2,arguments);var n=Oe(t);return Mp(e,-n)}var Zk={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},eS=function(t,n,r){var o,i=Zk[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"over "+o:o+" geleden":o};const tS=eS;var nS={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},rS={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},aS={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},oS={date:pa({formats:nS,defaultWidth:"full"}),time:pa({formats:rS,defaultWidth:"full"}),dateTime:pa({formats:aS,defaultWidth:"full"})};const iS=oS;var sS={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},lS=function(t,n,r,o){return sS[t]};const uS=lS;var cS={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},dS={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},fS={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},pS={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},hS={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},mS=function(t,n){var r=Number(t);return r+"e"},vS={ordinalNumber:mS,era:$n({values:cS,defaultWidth:"wide"}),quarter:$n({values:dS,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:$n({values:fS,defaultWidth:"wide"}),day:$n({values:pS,defaultWidth:"wide"}),dayPeriod:$n({values:hS,defaultWidth:"wide"})};const gS=vS;var yS=/^(\d+)e?/i,bS=/\d+/i,_S={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},wS={any:[/^v/,/^n/]},kS={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},SS={any:[/1/i,/2/i,/3/i,/4/i]},CS={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},TS={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},ES={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},xS={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},PS={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},IS={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},DS={ordinalNumber:Np({matchPattern:yS,parsePattern:bS,valueCallback:function(t){return parseInt(t,10)}}),era:Ln({matchPatterns:_S,defaultMatchWidth:"wide",parsePatterns:wS,defaultParseWidth:"any"}),quarter:Ln({matchPatterns:kS,defaultMatchWidth:"wide",parsePatterns:SS,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ln({matchPatterns:CS,defaultMatchWidth:"wide",parsePatterns:TS,defaultParseWidth:"any"}),day:Ln({matchPatterns:ES,defaultMatchWidth:"wide",parsePatterns:xS,defaultParseWidth:"any"}),dayPeriod:Ln({matchPatterns:PS,defaultMatchWidth:"any",parsePatterns:IS,defaultParseWidth:"any"})};const OS=DS;var NS={code:"nl",formatDistance:tS,formatLong:iS,formatRelative:uS,localize:gS,match:OS,options:{weekStartsOn:1,firstWeekContainsDate:4}};const BS=NS,MS=["date","datetime","time","year","month","week"],RS={time:e_,week:Wa,date:Wa,year:Wa,month:Wa,datetime:Wa};function go(e){return MS.includes(e)}function AS(e){switch(e){case"datetime":return"d LLLL yyyy HH:mm";case"time":return"HH:mm";case"year":return"yyyy";case"month":return"LLLL";case"week":return"d LLLL yyyy";case"date":default:return"d LLLL yyyy"}}function $S(e,t){return{locale:"nl",uid:t,autoApply:!0,clearable:!1,formatLocale:BS,format:AS(e),timePicker:e==="time",weekPicker:e==="week",yearPicker:e==="year",monthPicker:e==="month",enableTimePicker:["time","datetime"].includes(e),teleport:!0}}const LS=["location"];function yi(e){return LS.includes(e)}const VS=["radio","checkbox"];function Hi(e){return VS.includes(e)}const FS=`peer text-zinc-700 appearance-none h-5 w-5 border
66
+ 9.44104 15 10.2041 15 10.9998V10.9998Z`},null,-1),s_=[o_,i_];function l_(e,t){return a.openBlock(),a.createElementBlock("svg",a_,s_)}const u_=Jn(r_,[["render",l_]]),c_={class:"group mb-3 flex items-center font-semibold text-zinc-700"},d_={class:"mr-4 flex items-center justify-center rounded-full bg-white p-2 drop-shadow-sm transition-transform group-hover:-translate-x-2"},f_=a.defineComponent({__name:"AppBackButton",props:{buttonText:{},urlName:{},urlParameters:{default:void 0}},setup(e){return(t,n)=>{const r=a.resolveComponent("RouterLink");return a.openBlock(),a.createBlock(r,{to:{name:t.urlName,params:t.urlParameters},class:"inline-block"},{default:a.withCtx(()=>[a.createElementVNode("div",c_,[a.createElementVNode("div",d_,[a.createVNode(a.unref(Ip),{class:"h-4 stroke-3 text-black","data-test-icon":""})]),a.createTextVNode(" "+a.toDisplayString(t.buttonText),1)])]),_:1},8,["to"])}}}),p_={plain:[],default:["bg-zinc-100","text-zinc-900"],success:["bg-green-100","text-zinc-900"],warning:["bg-yellow-100","text-zinc-900"],error:["bg-red-100","text-error"]},h_={medium:["px-3 py-1.5 text-xs"],large:["px-3 py-2.5 text-sm"]},m_={plain:[],default:["!bg-zinc-600"],success:["!bg-green-600"],warning:["!bg-yellow-600"],error:["!bg-error"]},v_={key:0,class:"app-badge__icon mr-2 h-4"},g_={key:1,class:"app-badge__icon ml-2 h-4"},y_=a.defineComponent({__name:"AppBadge",props:{type:{default:"default"},rounded:{type:Boolean,default:!1},size:{default:"medium"}},setup(e){const t=e,n=a.computed(()=>({"rounded-full !text-white":t.rounded,"rounded-lg":!t.rounded}));return(r,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([[...a.unref(p_)[r.type],...a.unref(h_)[r.size],...t.rounded?a.unref(m_)[r.type]:[],n.value],"app-badge inline-flex items-center font-semibold"])},[r.$slots.leadingIcon?(a.openBlock(),a.createElementBlock("span",v_,[a.renderSlot(r.$slots,"leadingIcon",{},void 0,!0)])):a.createCommentVNode("",!0),a.renderSlot(r.$slots,"default",{},void 0,!0),r.$slots.trailingIcon?(a.openBlock(),a.createElementBlock("span",g_,[a.renderSlot(r.$slots,"trailingIcon",{},void 0,!0)])):a.createCommentVNode("",!0)],2))}});const fi=Jn(y_,[["__scopeId","data-v-4092128e"]]),b_={"extra-small":["h-4","w-4"],small:["h-5","w-5"],medium:["h-7","w-7"],large:["h-10","w-10"]},__=a.createElementVNode("circle",{stroke:"currentColor",class:"opacity-25","stroke-width":"4",cx:"12",cy:"12",r:"10"},null,-1),w_=a.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962
67
+ 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`},null,-1),k_=[__,w_],Kr=a.defineComponent({__name:"AppLoader",props:{size:{default:"medium"}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("svg",{class:a.normalizeClass([a.unref(b_)[t.size],"animate-spin"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none"},k_,2))}}),S_={class:"app-button__icon h-4"},C_=a.defineComponent({__name:"ButtonIconSlot",props:{loading:{type:Boolean}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("span",S_,[t.loading?(a.openBlock(),a.createBlock(Kr,{key:0,class:"w-4"})):a.renderSlot(t.$slots,"default",{key:1},void 0,!0)]))}});const Yc=Jn(C_,[["__scopeId","data-v-04d5f165"]]),T_={plain:["text-primary","border-transparent"],white:["text-secondary","bg-white","border-white"],primary:["text-white","bg-primary","border-transparent","enabled:hover:bg-primary-active"],secondary:["text-white","bg-secondary","border-transparent","enabled:hover:bg-secondary-active"]},E_={plain:["text-primary","border-transparent"],white:["text-secondary","bg-white","border-secondary"],primary:["text-primary","bg-transparent","border-primary","enabled:hover:text-white","enabled:hover:bg-primary"],secondary:["text-secondary","bg-transparent","border-secondary","enabled:hover:text-white","enabled:hover:bg-secondary"]},x_={small:["px-5","py-2"],medium:["px-5","py-3"],large:["px-5","py-4"]},Wr=a.defineComponent({__name:"AppButton",props:{size:{default:"medium"},type:{default:"button"},colorType:{default:"primary"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},block:{type:Boolean,default:!1},as:{default:"button"}},setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.as),{type:t.type,disabled:t.disabled||t.loading,class:a.normalizeClass([[...t.bordered?[]:a.unref(T_)[t.colorType],...t.bordered?a.unref(E_)[t.colorType]:[],...a.unref(x_)[t.size],...t.block?["w-full","justify-center"]:[]],"app-button inline-flex cursor-pointer items-center whitespace-nowrap rounded-lg border text-base font-semibold transition-colors focus:outline-none disabled:cursor-not-allowed disabled:select-none disabled:opacity-50"])},{default:a.withCtx(()=>[t.$slots.leadingIcon||t.loading?(a.openBlock(),a.createBlock(Yc,{key:0,loading:t.loading,class:"mr-3","data-test-leading-icon":""},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"leadingIcon")]),_:3},8,["loading"])):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"default"),t.$slots.trailingIcon?(a.openBlock(),a.createBlock(Yc,{key:1,class:"ml-3","data-test-trailing-icon":""},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"trailingIcon")]),_:3})):a.createCommentVNode("",!0)]),_:3},8,["type","disabled","class"]))}}),P_=a.defineComponent({__name:"AppDropdownItem",props:{label:{},name:{},disabled:{type:Boolean},to:{},icon:{type:[Object,Function]},iconClasses:{},onClick:{type:Function}},setup(e){const t=e,n=a.computed(()=>t.to?Sg.RouterLink:"div");function r(o){var i;if(t.disabled){o.preventDefault();return}(i=t.onClick)==null||i.call(t)}return(o,i)=>(a.openBlock(),a.createBlock(a.unref(kt.MenuItem),null,{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.value),{to:o.to,class:a.normalizeClass([{"!cursor-not-allowed":o.disabled},"flex cursor-pointer items-center px-6 py-2 text-base text-zinc-500 hover:bg-zinc-100 hover:text-zinc-900"]),"data-test-dropdown-item":"",onClick:r},{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default",{},()=>[o.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.icon),{key:0,class:a.normalizeClass([o.iconClasses,"mr-3 h-6 w-6"]),"data-test-icon":""},null,8,["class"])):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(o.label),1)])]),_:3},8,["to","class"]))]),_:3}))}}),I_={class:"relative inline-block text-left"},D_=a.defineComponent({__name:"AppDropdownButton",props:{dropdownItems:{},horizontalAlign:{default:"left"},openDirection:{default:"down"},buttonClasses:{},size:{},type:{},colorType:{},disabled:{type:Boolean},loading:{type:Boolean},bordered:{type:Boolean},block:{type:Boolean},as:{}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",I_,[a.createVNode(a.unref(kt.Menu),null,{default:a.withCtx(()=>[a.createVNode(a.unref(kt.MenuButton),null,{default:a.withCtx(()=>[a.createVNode(a.unref(Wr),a.normalizeProps(a.guardReactiveProps({...t.$props,class:t.buttonClasses})),{trailingIcon:a.withCtx(()=>[a.createVNode(a.unref(Pp))]),default:a.withCtx(()=>[a.renderSlot(t.$slots,"default")]),_:3},16)]),_:3}),a.createVNode(a.unref(kt.MenuItems),{class:a.normalizeClass([{"right-0 origin-top-right":t.horizontalAlign==="right","left-0 origin-top-left":t.horizontalAlign==="left","bottom-full mb-2":t.openDirection==="up"},"absolute z-10 mt-14 w-64 rounded-lg bg-white py-4 drop-shadow-card focus:outline-none"]),role:"menu","aria-orientation":"vertical","aria-labelledby":"menu-button",tabindex:"-1"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.dropdownItems,r=>(a.openBlock(),a.createBlock(P_,a.normalizeProps(a.mergeProps({key:r.label},r)),{default:a.withCtx(()=>[a.renderSlot(t.$slots,`item-${r.name}`,{item:r})]),_:2},1040))),128))]),_:3},8,["class"])]),_:3})]))}}),N_={key:0,class:"app-card__icon float-right mt-1.5 h-5 text-primary"},O_=a.defineComponent({__name:"CardIconSlot",props:{icon:{type:[String,Object,Function]}},setup(e){const t=e;return(n,r)=>n.$slots.default||n.icon?(a.openBlock(),a.createElementBlock("div",N_,[a.renderSlot(n.$slots,"default",{},()=>[t.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(typeof t.icon=="string"?"span":t.icon),{key:0,"data-test-icon-component":"",innerHTML:t.icon},null,8,["innerHTML"])):a.createCommentVNode("",!0)],!0)])):a.createCommentVNode("",!0)}});const B_=Jn(O_,[["__scopeId","data-v-817cbc72"]]),M_={1:"stroke-1",2:"stroke-2",3:"stroke-3"},R_=a.defineComponent({__name:"CardAction",props:{item:{}},setup(e){const t=e,{navigationComponent:n}=Ba(),r=a.ref(!1),o=a.computed(()=>r.value||typeof t.item.icon!="string"),i=a.computed(()=>r.value?Kr:t.item.icon),s=a.computed(()=>[o.value?"":"!h-6",M_[t.item.iconStroke??3]]);async function l(u){var c,f,p;(c=t.item)!=null&&c.onClick&&(u.preventDefault(),r.value=!0,await Promise.resolve((p=(f=t.item)==null?void 0:f.onClick)==null?void 0:p.call(f)),r.value=!1)}return(u,c)=>{var f;return a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),{to:u.item.to,href:u.item.href,class:a.normalizeClass([{"flex-row-reverse":((f=u.item)==null?void 0:f.iconPosition)==="right"},"app-card__action ml-auto flex items-center justify-center font-bold text-zinc-900 transition-colors group-hover:text-primary"]),onClick:l},{default:a.withCtx(()=>{var p,h;return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.value?i.value:"span"),{class:a.normalizeClass([s.value,"h-4 w-4"]),size:r.value?"extra-small":void 0,"data-test-icon":""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(o.value?"":u.item.icon),1)]),_:1},8,["class","size"])),a.createElementVNode("span",{class:a.normalizeClass([{"pl-2":u.item.icon&&((p=u.item)==null?void 0:p.iconPosition)!=="right","pr-2":u.item.icon&&((h=u.item)==null?void 0:h.iconPosition)==="right"},"text-xs"]),"data-test-name":""},a.toDisplayString(u.item.name),3)]}),_:1},8,["to","href","class"])}}}),A_={key:1,class:"text-2xl font-bold text-zinc-900","data-test-title":""},$_=a.defineComponent({__name:"AppCard",props:{title:{default:void 0},actions:{default:void 0},icon:{type:[String,Object,Function],default:void 0},bordered:{type:Boolean,default:!1},contentClasses:{default:void 0}},setup(e){const t=e,n=a.useSlots(),r=a.computed(()=>!!n.title||!!t.title),o=a.computed(()=>!!n.icon||!!t.icon),i=a.computed(()=>`${t.contentClasses} ${r.value?"mt-4":void 0}`);return(s,l)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([[{"before:hidden":!s.bordered,"transition hover:drop-shadow-cardhighlight":t.actions&&t.actions.length>0}],"group relative w-full overflow-hidden rounded-2xl bg-white px-6 py-5 text-zinc-600 drop-shadow-card before:absolute before:left-0 before:top-0 before:h-full before:w-1 before:bg-primary"])},[o.value?(a.openBlock(),a.createBlock(B_,{key:0,icon:s.icon,"data-test-icon":""},{default:a.withCtx(()=>[a.renderSlot(s.$slots,"icon")]),_:3},8,["icon"])):a.createCommentVNode("",!0),r.value?(a.openBlock(),a.createElementBlock("h3",A_,[a.renderSlot(s.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(s.title),1)])])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(i.value),"data-test-content":""},[a.renderSlot(s.$slots,"default")],2),a.renderSlot(s.$slots,"actions",{},()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.actions,u=>(a.openBlock(),a.createElementBlock("div",{key:u.name,class:"mt-2 flex w-full"},[a.createVNode(R_,{item:u},null,8,["item"])]))),128))])],2))}}),L_={class:"flex min-h-screen px-4 pb-20 pt-4 text-center md:items-center md:justify-center"},V_=a.createElementVNode("span",{class:"hidden md:inline-block md:h-screen md:align-middle","aria-hidden":"true"}," ​ ",-1),F_={class:"relative z-50 mx-auto inline-block w-full max-w-lg overflow-hidden text-left align-bottom transition-all md:my-8 md:max-w-2xl md:align-middle"},H_={class:"rounded-2xl bg-white p-10 drop-shadow-card"},U_={class:"flex flex-col items-center space-y-5"},z_={key:0,class:"mx-auto flex h-12 w-12 shrink-0 items-center justify-center rounded-full"},j_={class:"mt-3 text-center"},W_={class:"mt-3 w-full px-10 text-center text-sm text-zinc-600","data-test-confirm-content":""},q_=["innerHTML"],Y_={key:1},G_={class:"mx-auto flex w-fit flex-col space-y-4 pt-10"},Dp=a.defineComponent({__name:"AppConfirm",props:{title:{default:""},type:{default:"default"},content:{default:""},confirmButtonText:{default:""},confirmButtonTrailingIcon:{},confirmButtonLeadingIcon:{},cancelButtonText:{default:""},cancelButtonTrailingIcon:{},cancelButtonLeadingIcon:{},withBackdrop:{type:Boolean,default:!0},preventBackdropClose:{type:Boolean,default:!0},icon:{type:[String,Object,Function],default:void 0},html:{type:Boolean,default:!1},extendedIconDomClasses:{default:""},onConfirm:{},onCancel:{}},emits:["close","confirmed"],setup(e,{emit:t}){const n=e,r=a.ref(!0),o=a.ref(!1),i=a.ref(!1),s=a.computed(()=>!n.icon&&n.type==="error"?Tp:!n.icon&&n.type==="success"?Sp:n.icon),l=a.computed(()=>[n.type==="error"?"text-red-500":"text-green-500",n.extendedIconDomClasses]);async function u(c){c&&typeof n.onConfirm=="function"?(o.value=!0,await Promise.resolve(n.onConfirm())):!c&&typeof n.onCancel=="function"&&(i.value=!0,await Promise.resolve(n.onCancel())),r.value=!1,t("close",c)}return(c,f)=>(a.openBlock(),a.createBlock(a.unref(kt.TransitionRoot),{show:r.value,as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(kt.Dialog),{as:"div",class:"app-confirm-dialog fixed inset-0 top-16 z-50 overflow-y-auto md:left-20 md:top-0","data-test-confirm-dialog":"",onClose:f[2]||(f[2]=()=>c.preventBackdropClose?void 0:u(!1))},{default:a.withCtx(()=>[a.createElementVNode("div",L_,[c.withBackdrop?(a.openBlock(),a.createBlock(a.unref(kt.TransitionChild),{key:0,as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:a.withCtx(()=>[a.createVNode(a.unref(kt.DialogOverlay),{class:"app-confirm-dialog-overlay fixed inset-0 top-16 z-40 rounded-l-2xl bg-zinc-100 transition-opacity md:left-20 md:top-0"})]),_:1})):a.createCommentVNode("",!0),V_,a.createVNode(a.unref(kt.TransitionChild),{as:"template",enter:"ease-in-out duration-300","enter-from":"opacity-0 translate-y-4 md:translate-y-0 md:scale-95","enter-to":"opacity-100 translate-y-0 md:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 md:scale-100","leave-to":"opacity-0 translate-y-4 md:translate-y-0 md:scale-95"},{default:a.withCtx(()=>[a.createElementVNode("div",F_,[a.createElementVNode("div",H_,[a.createElementVNode("div",U_,[s.value?(a.openBlock(),a.createElementBlock("div",z_,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s.value),{class:a.normalizeClass([l.value,"h-full w-full"]),"data-test-confirm-icon":""},null,8,["class"]))])):a.createCommentVNode("",!0),a.createElementVNode("div",j_,[a.createVNode(a.unref(kt.DialogTitle),{as:"h3",class:"text-2xl font-bold leading-6 text-zinc-900"},{default:a.withCtx(()=>[a.renderSlot(c.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(c.title),1)])]),_:3}),a.createElementVNode("div",W_,[a.renderSlot(c.$slots,"default",{},()=>[c.html?(a.openBlock(),a.createElementBlock("div",{key:0,class:"app-confirm-html-content",innerHTML:c.content},null,8,q_)):(a.openBlock(),a.createElementBlock("p",Y_,a.toDisplayString(c.content),1))])])])]),a.createElementVNode("div",G_,[c.confirmButtonText?(a.openBlock(),a.createBlock(a.unref(Wr),{key:0,bordered:!0,disabled:o.value||i.value,loading:o.value,type:"button","color-type":"primary",class:"justify-center",onClick:f[0]||(f[0]=()=>u(!0))},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(c.confirmButtonText),1)]),_:2},[c.confirmButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.confirmButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,c.confirmButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.confirmButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0),c.cancelButtonText?(a.openBlock(),a.createBlock(a.unref(Wr),{key:1,disabled:o.value||i.value,loading:i.value,"color-type":"plain",class:"justify-center",onClick:f[1]||(f[1]=()=>u(!1))},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(c.cancelButtonText),1)]),_:2},[c.cancelButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.cancelButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,c.cancelButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.cancelButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0)])])])]),_:3})])]),_:3})]),_:3},8,["show"]))}}),K_={class:"flex min-h-screen items-center justify-center text-center"},X_=a.createElementVNode("span",{class:"inline-block h-screen align-middle","aria-hidden":"true"}," ​ ",-1),J_={class:"relative z-50 mx-auto inline-block w-full max-w-2xl overflow-hidden rounded-2xl p-4 text-left align-middle transition-all md:max-w-[70vw]"},Q_={class:"rounded-2xl bg-zinc-100 p-8 drop-shadow-card"},Z_={class:"flex flex-col items-center space-y-5"},ew={class:"w-full text-center"},tw={class:"mt-3 w-full px-10 text-center text-sm text-zinc-600","data-test-modal-content":""},nw={key:0,class:"ml-auto flex w-fit flex-row-reverse items-center pt-10"},Np=a.defineComponent({__name:"AppModal",props:{title:{default:""},submitButtonText:{default:"Opslaan"},submitButtonTrailingIcon:{},submitButtonLeadingIcon:{},cancelButtonText:{default:"Annuleren"},cancelButtonTrailingIcon:{},cancelButtonLeadingIcon:{},withBackdrop:{type:Boolean,default:!0},withFooter:{type:Boolean,default:!0},preventBackdropClose:{type:Boolean,default:!1},preventBackdropCloseOnLoading:{type:Boolean,default:!0},content:{type:[String,Object,Function],default:""}},emits:["open","close","cancel","submit"],setup(e,{expose:t,emit:n}){const r=e,o=a.ref(!1),i=a.ref(),s=a.ref(!1),l=a.ref(!1),u=a.computed(()=>r.preventBackdropClose||r.preventBackdropCloseOnLoading&&(s.value||l.value));async function c(){o.value=!0,n("open")}async function f(){l.value=!0,o.value=!1,n("close"),l.value=!1}async function p(){n("cancel"),await f()}async function h(){s.value=!0;const m=new FormData(i.value);n("submit",m),o.value=!1,setTimeout(()=>{s.value=!1},300)}return t({isOpen:o,open:c,close:f,submit:h}),(m,y)=>(a.openBlock(),a.createBlock(a.unref(kt.TransitionRoot),{show:o.value,as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(kt.Dialog),{as:"div",class:"app-modal-dialog fixed inset-0 z-50 overflow-y-auto","data-test-modal-dialog":"",onClose:y[0]||(y[0]=()=>u.value?void 0:f())},{default:a.withCtx(()=>[a.createElementVNode("div",K_,[m.withBackdrop?(a.openBlock(),a.createBlock(a.unref(kt.TransitionChild),{key:0,as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:a.withCtx(()=>[a.createVNode(a.unref(kt.DialogOverlay),{class:"fixed inset-0 z-40 bg-black/20 backdrop-blur-sm transition-opacity"})]),_:1})):a.createCommentVNode("",!0),X_,a.createVNode(a.unref(kt.TransitionChild),{as:"template",enter:"ease-in-out duration-300","enter-from":"opacity-0 translate-y-4 md:translate-y-0 md:scale-95","enter-to":"opacity-100 translate-y-0 md:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 md:scale-100","leave-to":"opacity-0 translate-y-4 md:translate-y-0 md:scale-95"},{default:a.withCtx(()=>[a.createElementVNode("div",J_,[a.createElementVNode("div",Q_,[a.createElementVNode("div",Z_,[a.createElementVNode("div",ew,[a.createVNode(a.unref(kt.DialogTitle),{as:"h3",class:"flex justify-between text-2xl font-bold leading-6 text-zinc-900"},{default:a.withCtx(()=>[a.renderSlot(m.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(m.title),1)]),a.createVNode(a.unref(Fi),{class:"h-6 w-6 cursor-pointer",onClick:f})]),_:3}),a.createElementVNode("div",tw,[a.createElementVNode("form",{ref_key:"form",ref:i},[a.renderSlot(m.$slots,"default",{},()=>[typeof m.content=="string"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(m.content),1)],64)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(m.content),{key:1}))])],512)])])]),m.withFooter?(a.openBlock(),a.createElementBlock("div",nw,[m.submitButtonText?(a.openBlock(),a.createBlock(a.unref(Wr),{key:0,disabled:s.value||l.value,loading:s.value,type:"button","color-type":"primary",class:"ml-6 justify-center",onClick:h},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(m.submitButtonText),1)]),_:2},[m.submitButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(m.submitButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,m.submitButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(m.submitButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0),m.cancelButtonText?(a.openBlock(),a.createBlock(a.unref(Wr),{key:1,disabled:s.value||l.value,loading:l.value,"color-type":"plain",class:"justify-center !text-zinc-900",onClick:p},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(m.cancelButtonText),1)]),_:2},[m.cancelButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(m.cancelButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,m.cancelButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(m.cancelButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])])]),_:3})])]),_:3})]),_:3},8,["show"]))}}),rw={key:0,class:"flex w-full","data-test-item":""},aw=a.defineComponent({__name:"AppDefinitionItem",props:{title:{default:void 0},description:{default:void 0},component:{default:void 0},componentProperties:{default:void 0},hideEmptyValues:{type:Boolean,default:!1}},setup(e){const t=e,n=a.useSlots(),r=a.computed(()=>!!n.title||!!t.title),o=a.computed(()=>!!n.default||!!t.description);return(i,s)=>o.value||!o.value&&!i.hideEmptyValues?(a.openBlock(),a.createElementBlock("div",rw,[r.value?(a.openBlock(),a.createElementBlock("dt",{key:0,class:a.normalizeClass([{"w-1/2":o.value||i.component},"font-bold text-zinc-900"]),"data-test-title":""},[a.renderSlot(i.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(i.title),1)])],2)):a.createCommentVNode("",!0),o.value||i.component?(a.openBlock(),a.createElementBlock("dd",{key:1,class:a.normalizeClass({"w-1/2":r.value}),"data-test-description":""},[a.renderSlot(i.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(i.description),1)]),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.component),a.mergeProps(i.componentProperties,{"data-test-component":""}),null,16))],2)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}}),ow={class:"flex flex-col gap-1.5"},iw=a.defineComponent({__name:"AppDefinitionList",props:{items:{},hideEmptyValues:{type:Boolean,default:!1}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",ow,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.items,(r,o)=>(a.openBlock(),a.createBlock(aw,{key:o,title:r.title,description:r.description,component:r.component,"component-properties":r.componentProperties,"hide-empty-values":t.hideEmptyValues},null,8,["title","description","component","component-properties","hide-empty-values"]))),128))]))}}),sw=a.defineComponent({__name:"AppDisclosure",props:{defaultOpen:{type:Boolean,default:!1}},setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.unref(kt.Disclosure),{"default-open":t.defaultOpen,class:"border-b border-zinc-200 last:border-0",as:"div"},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default")]),_:3},8,["default-open"]))}}),lw={class:"ml-auto pl-2"},uw=a.defineComponent({__name:"AppDisclosureButton",setup(e){const t=a.ref(null);function n(){var r,o;((r=t.value)==null?void 0:r.$el.dataset.headlessuiState)==="open"&&((o=t.value)==null||o.$el.blur())}return(r,o)=>(a.openBlock(),a.createBlock(a.unref(kt.DisclosureButton),{ref_key:"toggleButton",ref:t,as:"button",class:"flex w-full items-center py-4 text-zinc-900 outline-0 transition-font focus:font-bold",onClick:n},{default:a.withCtx(({open:i})=>[a.createElementVNode("span",{class:a.normalizeClass([{"font-bold":i},"text-left"])},[a.renderSlot(r.$slots,"default")],2),a.createElementVNode("span",lw,[a.renderSlot(r.$slots,"icon",{open:i},()=>[a.createVNode(a.unref(Pp),{class:a.normalizeClass([{"rotate-180":i},"h-5 w-5 text-zinc-900 transition-transform"])},null,8,["class"])])])]),_:3},512))}}),cw=a.defineComponent({__name:"AppDisclosurePanel",props:{static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.Transition,{"enter-active-class":"transition duration-100 ease-out","enter-from-class":"transform scale-95 opacity-0","enter-to-class":"transform scale-100 opacity-100","leave-active-class":"transition duration-75 ease-out","leave-from-class":"transform scale-100 opacity-100","leave-to-class":"transform scale-95 opacity-0"},{default:a.withCtx(()=>[a.createVNode(a.unref(kt.DisclosurePanel),{static:t.static,unmount:t.unmount,class:"-mt-2 mb-4",as:"div"},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default")]),_:3},8,["static","unmount"])]),_:3}))}});let Ho;const dw=new Uint8Array(16);function fw(){if(!Ho&&(Ho=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ho))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ho(dw)}const Vt=[];for(let e=0;e<256;++e)Vt.push((e+256).toString(16).slice(1));function pw(e,t=0){return(Vt[e[t+0]]+Vt[e[t+1]]+Vt[e[t+2]]+Vt[e[t+3]]+"-"+Vt[e[t+4]]+Vt[e[t+5]]+"-"+Vt[e[t+6]]+Vt[e[t+7]]+"-"+Vt[e[t+8]]+Vt[e[t+9]]+"-"+Vt[e[t+10]]+Vt[e[t+11]]+Vt[e[t+12]]+Vt[e[t+13]]+Vt[e[t+14]]+Vt[e[t+15]]).toLowerCase()}const hw=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Gc={randomUUID:hw};function mw(e,t,n){if(Gc.randomUUID&&!t&&!e)return Gc.randomUUID();e=e||{};const r=e.random||(e.rng||fw)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let o=0;o<16;++o)t[n+o]=r[o];return t}return pw(r)}const vw={class:"app-input__icon pointer-events-none absolute z-10 mt-px h-5"},gw=a.defineComponent({__name:"InputIconSlot",props:{loading:{type:Boolean}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("span",vw,[t.loading?(a.openBlock(),a.createBlock(Kr,{key:0,size:"small",class:"w-4"})):a.renderSlot(t.$slots,"default",{key:1},void 0,!0)]))}});const Kc=Jn(gw,[["__scopeId","data-v-b64a985e"]]);function ha(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}function $n(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",o;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):i;o=e.formattingValues[s]||e.formattingValues[i]}else{var l=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[u]||e.values[l]}var c=e.argumentCallback?e.argumentCallback(t):t;return o[c]}}function Ln(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?bw(l,function(p){return p.test(s)}):yw(l,function(p){return p.test(s)}),c;c=e.valueCallback?e.valueCallback(u):u,c=n.valueCallback?n.valueCallback(c):c;var f=t.slice(s.length);return{value:c,rest:f}}}function yw(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function bw(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Op(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;var l=t.slice(o.length);return{value:s,rest:l}}}function wn(e){"@babel/helpers - typeof";return wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wn(e)}function Ne(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ke(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Oe(e){ke(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||wn(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function lr(e,t){ke(2,arguments);var n=Oe(e),r=Ne(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function zn(e,t){ke(2,arguments);var n=Oe(e),r=Ne(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var s=i.getDate();return o>=s?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function Bp(e,t){if(ke(2,arguments),!t||wn(t)!=="object")return new Date(NaN);var n=t.years?Ne(t.years):0,r=t.months?Ne(t.months):0,o=t.weeks?Ne(t.weeks):0,i=t.days?Ne(t.days):0,s=t.hours?Ne(t.hours):0,l=t.minutes?Ne(t.minutes):0,u=t.seconds?Ne(t.seconds):0,c=Oe(e),f=r||n?zn(c,r+n*12):c,p=i||o?lr(f,i+o*7):f,h=l+s*60,m=u+h*60,y=m*1e3,k=new Date(p.getTime()+y);return k}function _w(e,t){ke(2,arguments);var n=Oe(e).getTime(),r=Ne(t);return new Date(n+r)}var ww={};function Qn(){return ww}function qr(e,t){var n,r,o,i,s,l,u,c;ke(1,arguments);var f=Qn(),p=Ne((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Oe(e),m=h.getDay(),y=(m<p?7:0)+m-p;return h.setDate(h.getDate()-y),h.setHours(0,0,0,0),h}function pi(e){return ke(1,arguments),qr(e,{weekStartsOn:1})}function kw(e){ke(1,arguments);var t=Oe(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var o=pi(r),i=new Date(0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);var s=pi(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Sw(e){ke(1,arguments);var t=kw(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=pi(n);return r}function hi(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Xc(e){ke(1,arguments);var t=Oe(e);return t.setHours(0,0,0,0),t}var Cw=864e5;function Tw(e,t){ke(2,arguments);var n=Xc(e),r=Xc(t),o=n.getTime()-hi(n),i=r.getTime()-hi(r);return Math.round((o-i)/Cw)}function Mp(e,t){ke(2,arguments);var n=Ne(t);return zn(e,n*12)}var pu=6e4,hu=36e5,Ew=1e3;function Rp(e){return ke(1,arguments),e instanceof Date||wn(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function eo(e){if(ke(1,arguments),!Rp(e)&&typeof e!="number")return!1;var t=Oe(e);return!isNaN(Number(t))}function Jc(e,t){var n;ke(1,arguments);var r=e||{},o=Oe(r.start),i=Oe(r.end),s=i.getTime();if(!(o.getTime()<=s))throw new RangeError("Invalid interval");var l=[],u=o;u.setHours(0,0,0,0);var c=Number((n=t==null?void 0:t.step)!==null&&n!==void 0?n:1);if(c<1||isNaN(c))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=s;)l.push(Oe(u)),u.setDate(u.getDate()+c),u.setHours(0,0,0,0);return l}function xw(e,t){var n,r,o,i,s,l,u,c;ke(1,arguments);var f=Qn(),p=Ne((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Oe(e),m=h.getDay(),y=(m<p?-7:0)+6-(m-p);return h.setDate(h.getDate()+y),h.setHours(23,59,59,999),h}function Ap(e,t){ke(2,arguments);var n=Ne(t);return _w(e,-n)}var Pw=864e5;function Iw(e){ke(1,arguments);var t=Oe(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/Pw)+1}function Ca(e){ke(1,arguments);var t=1,n=Oe(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function $p(e){ke(1,arguments);var t=Oe(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=Ca(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var s=Ca(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Dw(e){ke(1,arguments);var t=$p(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Ca(n);return r}var Nw=6048e5;function Lp(e){ke(1,arguments);var t=Oe(e),n=Ca(t).getTime()-Dw(t).getTime();return Math.round(n/Nw)+1}function Yr(e,t){var n,r,o,i,s,l,u,c;ke(1,arguments);var f=Qn(),p=Ne((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Oe(e),m=h.getUTCDay(),y=(m<p?7:0)+m-p;return h.setUTCDate(h.getUTCDate()-y),h.setUTCHours(0,0,0,0),h}function mu(e,t){var n,r,o,i,s,l,u,c;ke(1,arguments);var f=Oe(e),p=f.getUTCFullYear(),h=Qn(),m=Ne((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:h.firstWeekContainsDate)!==null&&r!==void 0?r:(u=h.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(p+1,0,m),y.setUTCHours(0,0,0,0);var k=Yr(y,t),b=new Date(0);b.setUTCFullYear(p,0,m),b.setUTCHours(0,0,0,0);var w=Yr(b,t);return f.getTime()>=k.getTime()?p+1:f.getTime()>=w.getTime()?p:p-1}function Ow(e,t){var n,r,o,i,s,l,u,c;ke(1,arguments);var f=Qn(),p=Ne((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:f.firstWeekContainsDate)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=mu(e,t),m=new Date(0);m.setUTCFullYear(h,0,p),m.setUTCHours(0,0,0,0);var y=Yr(m,t);return y}var Bw=6048e5;function Vp(e,t){ke(1,arguments);var n=Oe(e),r=Yr(n,t).getTime()-Ow(n,t).getTime();return Math.round(r/Bw)+1}function at(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Mw={y:function(t,n){var r=t.getUTCFullYear(),o=r>0?r:1-r;return at(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):at(r+1,2)},d:function(t,n){return at(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return at(t.getUTCHours()%12||12,n.length)},H:function(t,n){return at(t.getUTCHours(),n.length)},m:function(t,n){return at(t.getUTCMinutes(),n.length)},s:function(t,n){return at(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return at(i,n.length)}};const hr=Mw;var na={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Rw={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return hr.y(t,n)},Y:function(t,n,r,o){var i=mu(t,o),s=i>0?i:1-i;if(n==="YY"){var l=s%100;return at(l,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):at(s,n.length)},R:function(t,n){var r=$p(t);return at(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return at(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return at(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return at(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return hr.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return at(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=Vp(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):at(i,n.length)},I:function(t,n,r){var o=Lp(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):at(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):hr.d(t,n)},D:function(t,n,r){var o=Iw(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):at(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,r,o){var i=t.getUTCDay(),s=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return at(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,o){var i=t.getUTCDay(),s=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return at(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return at(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=na.noon:o===0?i=na.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=na.evening:o>=12?i=na.afternoon:o>=4?i=na.morning:i=na.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return hr.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):hr.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):at(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):at(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):hr.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):hr.s(t,n)},S:function(t,n){return hr.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return Zc(s);case"XXXX":case"XX":return Rr(s);case"XXXXX":case"XXX":default:return Rr(s,":")}},x:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();switch(n){case"x":return Zc(s);case"xxxx":case"xx":return Rr(s);case"xxxxx":case"xxx":default:return Rr(s,":")}},O:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Qc(s,":");case"OOOO":default:return"GMT"+Rr(s,":")}},z:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Qc(s,":");case"zzzz":default:return"GMT"+Rr(s,":")}},t:function(t,n,r,o){var i=o._originalDate||t,s=Math.floor(i.getTime()/1e3);return at(s,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,s=i.getTime();return at(s,n.length)}};function Qc(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var s=t||"";return n+String(o)+s+at(i,2)}function Zc(e,t){if(e%60===0){var n=e>0?"-":"+";return n+at(Math.abs(e)/60,2)}return Rr(e,t)}function Rr(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=at(Math.floor(o/60),2),s=at(o%60,2);return r+i+n+s}const Aw=Rw;var ed=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Fp=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},$w=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return ed(t,n);var s;switch(o){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",ed(o,n)).replace("{{time}}",Fp(i,n))},Lw={p:Fp,P:$w};const fl=Lw;var Vw=["D","DD"],Fw=["YY","YYYY"];function Hp(e){return Vw.indexOf(e)!==-1}function Up(e){return Fw.indexOf(e)!==-1}function mi(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Hw={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Uw=function(t,n,r){var o,i=Hw[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const zw=Uw;var jw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ww={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},qw={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Yw={date:ha({formats:jw,defaultWidth:"full"}),time:ha({formats:Ww,defaultWidth:"full"}),dateTime:ha({formats:qw,defaultWidth:"full"})};const Gw=Yw;var Kw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Xw=function(t,n,r,o){return Kw[t]};const Jw=Xw;var Qw={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Zw={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},e1={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},t1={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},n1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},r1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},a1=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},o1={ordinalNumber:a1,era:$n({values:Qw,defaultWidth:"wide"}),quarter:$n({values:Zw,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:$n({values:e1,defaultWidth:"wide"}),day:$n({values:t1,defaultWidth:"wide"}),dayPeriod:$n({values:n1,defaultWidth:"wide",formattingValues:r1,defaultFormattingWidth:"wide"})};const i1=o1;var s1=/^(\d+)(th|st|nd|rd)?/i,l1=/\d+/i,u1={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},c1={any:[/^b/i,/^(a|c)/i]},d1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},f1={any:[/1/i,/2/i,/3/i,/4/i]},p1={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h1={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},m1={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},v1={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g1={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},y1={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},b1={ordinalNumber:Op({matchPattern:s1,parsePattern:l1,valueCallback:function(t){return parseInt(t,10)}}),era:Ln({matchPatterns:u1,defaultMatchWidth:"wide",parsePatterns:c1,defaultParseWidth:"any"}),quarter:Ln({matchPatterns:d1,defaultMatchWidth:"wide",parsePatterns:f1,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ln({matchPatterns:p1,defaultMatchWidth:"wide",parsePatterns:h1,defaultParseWidth:"any"}),day:Ln({matchPatterns:m1,defaultMatchWidth:"wide",parsePatterns:v1,defaultParseWidth:"any"}),dayPeriod:Ln({matchPatterns:g1,defaultMatchWidth:"any",parsePatterns:y1,defaultParseWidth:"any"})};const _1=b1;var w1={code:"en-US",formatDistance:zw,formatLong:Gw,formatRelative:Jw,localize:i1,match:_1,options:{weekStartsOn:0,firstWeekContainsDate:1}};const zp=w1;var k1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,S1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,C1=/^'([^]*?)'?$/,T1=/''/g,E1=/[a-zA-Z]/;function jr(e,t,n){var r,o,i,s,l,u,c,f,p,h,m,y,k,b,w,T,O,_;ke(2,arguments);var B=String(t),C=Qn(),I=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:C.locale)!==null&&r!==void 0?r:zp,F=Ne((i=(s=(l=(u=n==null?void 0:n.firstWeekContainsDate)!==null&&u!==void 0?u:n==null||(c=n.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&l!==void 0?l:C.firstWeekContainsDate)!==null&&s!==void 0?s:(p=C.locale)===null||p===void 0||(h=p.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(F>=1&&F<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var q=Ne((m=(y=(k=(b=n==null?void 0:n.weekStartsOn)!==null&&b!==void 0?b:n==null||(w=n.locale)===null||w===void 0||(T=w.options)===null||T===void 0?void 0:T.weekStartsOn)!==null&&k!==void 0?k:C.weekStartsOn)!==null&&y!==void 0?y:(O=C.locale)===null||O===void 0||(_=O.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:0);if(!(q>=0&&q<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!I.localize)throw new RangeError("locale must contain localize property");if(!I.formatLong)throw new RangeError("locale must contain formatLong property");var W=Oe(e);if(!eo(W))throw new RangeError("Invalid time value");var M=hi(W),D=Ap(W,M),$={firstWeekContainsDate:F,weekStartsOn:q,locale:I,_originalDate:W},Y=B.match(S1).map(function(X){var K=X[0];if(K==="p"||K==="P"){var j=fl[K];return j(X,I.formatLong)}return X}).join("").match(k1).map(function(X){if(X==="''")return"'";var K=X[0];if(K==="'")return x1(X);var j=Aw[K];if(j)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Up(X)&&mi(X,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Hp(X)&&mi(X,t,String(e)),j(D,X,I.localize,$);if(K.match(E1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+K+"`");return X}).join("");return Y}function x1(e){var t=e.match(C1);return t?t[1].replace(T1,"'"):e}function P1(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function I1(e){ke(1,arguments);var t=Oe(e),n=t.getDay();return n}function D1(e){ke(1,arguments);var t=Oe(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function ir(e){ke(1,arguments);var t=Oe(e),n=t.getHours();return n}var N1=6048e5;function O1(e){ke(1,arguments);var t=Oe(e),n=pi(t).getTime()-Sw(t).getTime();return Math.round(n/N1)+1}function sr(e){ke(1,arguments);var t=Oe(e),n=t.getMinutes();return n}function ct(e){ke(1,arguments);var t=Oe(e),n=t.getMonth();return n}function Ta(e){ke(1,arguments);var t=Oe(e),n=t.getSeconds();return n}function B1(e,t){var n,r,o,i,s,l,u,c;ke(1,arguments);var f=Oe(e),p=f.getFullYear(),h=Qn(),m=Ne((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:h.firstWeekContainsDate)!==null&&r!==void 0?r:(u=h.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setFullYear(p+1,0,m),y.setHours(0,0,0,0);var k=qr(y,t),b=new Date(0);b.setFullYear(p,0,m),b.setHours(0,0,0,0);var w=qr(b,t);return f.getTime()>=k.getTime()?p+1:f.getTime()>=w.getTime()?p:p-1}function M1(e,t){var n,r,o,i,s,l,u,c;ke(1,arguments);var f=Qn(),p=Ne((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:f.firstWeekContainsDate)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=B1(e,t),m=new Date(0);m.setFullYear(h,0,p),m.setHours(0,0,0,0);var y=qr(m,t);return y}var R1=6048e5;function A1(e,t){ke(1,arguments);var n=Oe(e),r=qr(n,t).getTime()-M1(n,t).getTime();return Math.round(r/R1)+1}function ht(e){return ke(1,arguments),Oe(e).getFullYear()}function mo(e,t){ke(2,arguments);var n=Oe(e),r=Oe(t);return n.getTime()>r.getTime()}function vo(e,t){ke(2,arguments);var n=Oe(e),r=Oe(t);return n.getTime()<r.getTime()}function Vr(e,t){ke(2,arguments);var n=Oe(e),r=Oe(t);return n.getTime()===r.getTime()}function td(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $1(e,t){if(e){if(typeof e=="string")return td(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return td(e,t)}}function nd(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=$1(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
68
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,l;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return i=c.done,c},e:function(c){s=!0,l=c},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw l}}}}function ye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pl(e,t){return pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},pl(e,t)}function Xe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pl(e,t)}function vi(e){return vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vi(e)}function L1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function V1(e,t){if(t&&(wn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ye(e)}function Je(e){var t=L1();return function(){var r=vi(e),o;if(t){var i=vi(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return V1(this,o)}}function je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F1(e,t){if(wn(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(wn(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jp(e){var t=F1(e,"string");return wn(t)==="symbol"?t:String(t)}function rd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jp(r.key),r)}}function We(e,t,n){return t&&rd(e.prototype,t),n&&rd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function he(e,t,n){return t=jp(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H1=10,Wp=function(){function e(){je(this,e),he(this,"priority",void 0),he(this,"subPriority",0)}return We(e,[{key:"validate",value:function(n,r){return!0}}]),e}(),U1=function(e){Xe(n,e);var t=Je(n);function n(r,o,i,s,l){var u;return je(this,n),u=t.call(this),u.value=r,u.validateValue=o,u.setValue=i,u.priority=s,l&&(u.subPriority=l),u}return We(n,[{key:"validate",value:function(o,i){return this.validateValue(o,this.value,i)}},{key:"set",value:function(o,i,s){return this.setValue(o,i,this.value,s)}}]),n}(Wp),z1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",H1),he(ye(r),"subPriority",-1),r}return We(n,[{key:"set",value:function(o,i){if(i.timestampIsSet)return o;var s=new Date(0);return s.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),s.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),s}}]),n}(Wp),nt=function(){function e(){je(this,e),he(this,"incompatibleTokens",void 0),he(this,"priority",void 0),he(this,"subPriority",void 0)}return We(e,[{key:"run",value:function(n,r,o,i){var s=this.parse(n,r,o,i);return s?{setter:new U1(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}},{key:"validate",value:function(n,r,o){return!0}}]),e}(),j1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",140),he(ye(r),"incompatibleTokens",["R","u","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"G":case"GG":case"GGG":return s.era(o,{width:"abbreviated"})||s.era(o,{width:"narrow"});case"GGGGG":return s.era(o,{width:"narrow"});case"GGGG":default:return s.era(o,{width:"wide"})||s.era(o,{width:"abbreviated"})||s.era(o,{width:"narrow"})}}},{key:"set",value:function(o,i,s){return i.era=s,o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(nt),Ct={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Vn={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Tt(e,t){return e&&{value:t(e.value),rest:e.rest}}function bt(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Fn(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(o*hu+i*pu+s*Ew),rest:t.slice(n[0].length)}}function qp(e){return bt(Ct.anyDigitsSigned,e)}function St(e,t){switch(e){case 1:return bt(Ct.singleDigit,t);case 2:return bt(Ct.twoDigits,t);case 3:return bt(Ct.threeDigits,t);case 4:return bt(Ct.fourDigits,t);default:return bt(new RegExp("^\\d{1,"+e+"}"),t)}}function gi(e,t){switch(e){case 1:return bt(Ct.singleDigitSigned,t);case 2:return bt(Ct.twoDigitsSigned,t);case 3:return bt(Ct.threeDigitsSigned,t);case 4:return bt(Ct.fourDigitsSigned,t);default:return bt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function vu(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Yp(e,t){var n=t>0,r=n?t:1-t,o;if(r<=50)o=e||100;else{var i=r+50,s=Math.floor(i/100)*100,l=e>=i%100;o=e+s-(l?100:0)}return n?o:1-o}function Gp(e){return e%400===0||e%4===0&&e%100!==0}var W1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",130),he(ye(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){var l=function(c){return{year:c,isTwoDigitYear:i==="yy"}};switch(i){case"y":return Tt(St(4,o),l);case"yo":return Tt(s.ordinalNumber(o,{unit:"year"}),l);default:return Tt(St(i.length,o),l)}}},{key:"validate",value:function(o,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(o,i,s){var l=o.getUTCFullYear();if(s.isTwoDigitYear){var u=Yp(s.year,l);return o.setUTCFullYear(u,0,1),o.setUTCHours(0,0,0,0),o}var c=!("era"in i)||i.era===1?s.year:1-s.year;return o.setUTCFullYear(c,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(nt),q1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",130),he(ye(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){var l=function(c){return{year:c,isTwoDigitYear:i==="YY"}};switch(i){case"Y":return Tt(St(4,o),l);case"Yo":return Tt(s.ordinalNumber(o,{unit:"year"}),l);default:return Tt(St(i.length,o),l)}}},{key:"validate",value:function(o,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(o,i,s,l){var u=mu(o,l);if(s.isTwoDigitYear){var c=Yp(s.year,u);return o.setUTCFullYear(c,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Yr(o,l)}var f=!("era"in i)||i.era===1?s.year:1-s.year;return o.setUTCFullYear(f,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Yr(o,l)}}]),n}(nt),Y1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",130),he(ye(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i){return gi(i==="R"?4:i.length,o)}},{key:"set",value:function(o,i,s){var l=new Date(0);return l.setUTCFullYear(s,0,4),l.setUTCHours(0,0,0,0),Ca(l)}}]),n}(nt),G1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",130),he(ye(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i){return gi(i==="u"?4:i.length,o)}},{key:"set",value:function(o,i,s){return o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(nt),K1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",120),he(ye(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"Q":case"QQ":return St(i.length,o);case"Qo":return s.ordinalNumber(o,{unit:"quarter"});case"QQQ":return s.quarter(o,{width:"abbreviated",context:"formatting"})||s.quarter(o,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(o,{width:"wide",context:"formatting"})||s.quarter(o,{width:"abbreviated",context:"formatting"})||s.quarter(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=1&&i<=4}},{key:"set",value:function(o,i,s){return o.setUTCMonth((s-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(nt),X1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",120),he(ye(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"q":case"qq":return St(i.length,o);case"qo":return s.ordinalNumber(o,{unit:"quarter"});case"qqq":return s.quarter(o,{width:"abbreviated",context:"standalone"})||s.quarter(o,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(o,{width:"wide",context:"standalone"})||s.quarter(o,{width:"abbreviated",context:"standalone"})||s.quarter(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,i){return i>=1&&i<=4}},{key:"set",value:function(o,i,s){return o.setUTCMonth((s-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(nt),J1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),he(ye(r),"priority",110),r}return We(n,[{key:"parse",value:function(o,i,s){var l=function(c){return c-1};switch(i){case"M":return Tt(bt(Ct.month,o),l);case"MM":return Tt(St(2,o),l);case"Mo":return Tt(s.ordinalNumber(o,{unit:"month"}),l);case"MMM":return s.month(o,{width:"abbreviated",context:"formatting"})||s.month(o,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(o,{width:"wide",context:"formatting"})||s.month(o,{width:"abbreviated",context:"formatting"})||s.month(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=11}},{key:"set",value:function(o,i,s){return o.setUTCMonth(s,1),o.setUTCHours(0,0,0,0),o}}]),n}(nt),Q1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",110),he(ye(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){var l=function(c){return c-1};switch(i){case"L":return Tt(bt(Ct.month,o),l);case"LL":return Tt(St(2,o),l);case"Lo":return Tt(s.ordinalNumber(o,{unit:"month"}),l);case"LLL":return s.month(o,{width:"abbreviated",context:"standalone"})||s.month(o,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(o,{width:"wide",context:"standalone"})||s.month(o,{width:"abbreviated",context:"standalone"})||s.month(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=11}},{key:"set",value:function(o,i,s){return o.setUTCMonth(s,1),o.setUTCHours(0,0,0,0),o}}]),n}(nt);function Z1(e,t,n){ke(2,arguments);var r=Oe(e),o=Ne(t),i=Vp(r,n)-o;return r.setUTCDate(r.getUTCDate()-i*7),r}var ek=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",100),he(ye(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"w":return bt(Ct.week,o);case"wo":return s.ordinalNumber(o,{unit:"week"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=53}},{key:"set",value:function(o,i,s,l){return Yr(Z1(o,s,l),l)}}]),n}(nt);function tk(e,t){ke(2,arguments);var n=Oe(e),r=Ne(t),o=Lp(n)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}var nk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",100),he(ye(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"I":return bt(Ct.week,o);case"Io":return s.ordinalNumber(o,{unit:"week"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=53}},{key:"set",value:function(o,i,s){return Ca(tk(o,s))}}]),n}(nt),rk=[31,28,31,30,31,30,31,31,30,31,30,31],ak=[31,29,31,30,31,30,31,31,30,31,30,31],ok=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",90),he(ye(r),"subPriority",1),he(ye(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"d":return bt(Ct.date,o);case"do":return s.ordinalNumber(o,{unit:"date"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){var s=o.getUTCFullYear(),l=Gp(s),u=o.getUTCMonth();return l?i>=1&&i<=ak[u]:i>=1&&i<=rk[u]}},{key:"set",value:function(o,i,s){return o.setUTCDate(s),o.setUTCHours(0,0,0,0),o}}]),n}(nt),ik=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",90),he(ye(r),"subpriority",1),he(ye(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"D":case"DD":return bt(Ct.dayOfYear,o);case"Do":return s.ordinalNumber(o,{unit:"date"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){var s=o.getUTCFullYear(),l=Gp(s);return l?i>=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(o,i,s){return o.setUTCMonth(0,s),o.setUTCHours(0,0,0,0),o}}]),n}(nt);function gu(e,t,n){var r,o,i,s,l,u,c,f;ke(2,arguments);var p=Qn(),h=Ne((r=(o=(i=(s=n==null?void 0:n.weekStartsOn)!==null&&s!==void 0?s:n==null||(l=n.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&i!==void 0?i:p.weekStartsOn)!==null&&o!==void 0?o:(c=p.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Oe(e),y=Ne(t),k=m.getUTCDay(),b=y%7,w=(b+7)%7,T=(w<h?7:0)+y-k;return m.setUTCDate(m.getUTCDate()+T),m}var sk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",90),he(ye(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"E":case"EE":case"EEE":return s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(o,{width:"wide",context:"formatting"})||s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=6}},{key:"set",value:function(o,i,s,l){return o=gu(o,s,l),o.setUTCHours(0,0,0,0),o}}]),n}(nt),lk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",90),he(ye(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s,l){var u=function(f){var p=Math.floor((f-1)/7)*7;return(f+l.weekStartsOn+6)%7+p};switch(i){case"e":case"ee":return Tt(St(i.length,o),u);case"eo":return Tt(s.ordinalNumber(o,{unit:"day"}),u);case"eee":return s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"eeeee":return s.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(o,{width:"wide",context:"formatting"})||s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=6}},{key:"set",value:function(o,i,s,l){return o=gu(o,s,l),o.setUTCHours(0,0,0,0),o}}]),n}(nt),uk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",90),he(ye(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s,l){var u=function(f){var p=Math.floor((f-1)/7)*7;return(f+l.weekStartsOn+6)%7+p};switch(i){case"c":case"cc":return Tt(St(i.length,o),u);case"co":return Tt(s.ordinalNumber(o,{unit:"day"}),u);case"ccc":return s.day(o,{width:"abbreviated",context:"standalone"})||s.day(o,{width:"short",context:"standalone"})||s.day(o,{width:"narrow",context:"standalone"});case"ccccc":return s.day(o,{width:"narrow",context:"standalone"});case"cccccc":return s.day(o,{width:"short",context:"standalone"})||s.day(o,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(o,{width:"wide",context:"standalone"})||s.day(o,{width:"abbreviated",context:"standalone"})||s.day(o,{width:"short",context:"standalone"})||s.day(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=6}},{key:"set",value:function(o,i,s,l){return o=gu(o,s,l),o.setUTCHours(0,0,0,0),o}}]),n}(nt);function ck(e,t){ke(2,arguments);var n=Ne(t);n%7===0&&(n=n-7);var r=1,o=Oe(e),i=o.getUTCDay(),s=n%7,l=(s+7)%7,u=(l<r?7:0)+n-i;return o.setUTCDate(o.getUTCDate()+u),o}var dk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",90),he(ye(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){var l=function(c){return c===0?7:c};switch(i){case"i":case"ii":return St(i.length,o);case"io":return s.ordinalNumber(o,{unit:"day"});case"iii":return Tt(s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"}),l);case"iiiii":return Tt(s.day(o,{width:"narrow",context:"formatting"}),l);case"iiiiii":return Tt(s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"}),l);case"iiii":default:return Tt(s.day(o,{width:"wide",context:"formatting"})||s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"}),l)}}},{key:"validate",value:function(o,i){return i>=1&&i<=7}},{key:"set",value:function(o,i,s){return o=ck(o,s),o.setUTCHours(0,0,0,0),o}}]),n}(nt),fk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",80),he(ye(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"a":case"aa":case"aaa":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})||s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,i,s){return o.setUTCHours(vu(s),0,0,0),o}}]),n}(nt),pk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",80),he(ye(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"b":case"bb":case"bbb":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})||s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,i,s){return o.setUTCHours(vu(s),0,0,0),o}}]),n}(nt),hk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",80),he(ye(r),"incompatibleTokens",["a","b","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"B":case"BB":case"BBB":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})||s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,i,s){return o.setUTCHours(vu(s),0,0,0),o}}]),n}(nt),mk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",70),he(ye(r),"incompatibleTokens",["H","K","k","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"h":return bt(Ct.hour12h,o);case"ho":return s.ordinalNumber(o,{unit:"hour"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=12}},{key:"set",value:function(o,i,s){var l=o.getUTCHours()>=12;return l&&s<12?o.setUTCHours(s+12,0,0,0):!l&&s===12?o.setUTCHours(0,0,0,0):o.setUTCHours(s,0,0,0),o}}]),n}(nt),vk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",70),he(ye(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"H":return bt(Ct.hour23h,o);case"Ho":return s.ordinalNumber(o,{unit:"hour"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=23}},{key:"set",value:function(o,i,s){return o.setUTCHours(s,0,0,0),o}}]),n}(nt),gk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",70),he(ye(r),"incompatibleTokens",["h","H","k","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"K":return bt(Ct.hour11h,o);case"Ko":return s.ordinalNumber(o,{unit:"hour"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=11}},{key:"set",value:function(o,i,s){var l=o.getUTCHours()>=12;return l&&s<12?o.setUTCHours(s+12,0,0,0):o.setUTCHours(s,0,0,0),o}}]),n}(nt),yk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",70),he(ye(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"k":return bt(Ct.hour24h,o);case"ko":return s.ordinalNumber(o,{unit:"hour"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=24}},{key:"set",value:function(o,i,s){var l=s<=24?s%24:s;return o.setUTCHours(l,0,0,0),o}}]),n}(nt),bk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",60),he(ye(r),"incompatibleTokens",["t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"m":return bt(Ct.minute,o);case"mo":return s.ordinalNumber(o,{unit:"minute"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=59}},{key:"set",value:function(o,i,s){return o.setUTCMinutes(s,0,0),o}}]),n}(nt),_k=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",50),he(ye(r),"incompatibleTokens",["t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"s":return bt(Ct.second,o);case"so":return s.ordinalNumber(o,{unit:"second"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=59}},{key:"set",value:function(o,i,s){return o.setUTCSeconds(s,0),o}}]),n}(nt),wk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",30),he(ye(r),"incompatibleTokens",["t","T"]),r}return We(n,[{key:"parse",value:function(o,i){var s=function(u){return Math.floor(u*Math.pow(10,-i.length+3))};return Tt(St(i.length,o),s)}},{key:"set",value:function(o,i,s){return o.setUTCMilliseconds(s),o}}]),n}(nt),kk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",10),he(ye(r),"incompatibleTokens",["t","T","x"]),r}return We(n,[{key:"parse",value:function(o,i){switch(i){case"X":return Fn(Vn.basicOptionalMinutes,o);case"XX":return Fn(Vn.basic,o);case"XXXX":return Fn(Vn.basicOptionalSeconds,o);case"XXXXX":return Fn(Vn.extendedOptionalSeconds,o);case"XXX":default:return Fn(Vn.extended,o)}}},{key:"set",value:function(o,i,s){return i.timestampIsSet?o:new Date(o.getTime()-s)}}]),n}(nt),Sk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",10),he(ye(r),"incompatibleTokens",["t","T","X"]),r}return We(n,[{key:"parse",value:function(o,i){switch(i){case"x":return Fn(Vn.basicOptionalMinutes,o);case"xx":return Fn(Vn.basic,o);case"xxxx":return Fn(Vn.basicOptionalSeconds,o);case"xxxxx":return Fn(Vn.extendedOptionalSeconds,o);case"xxx":default:return Fn(Vn.extended,o)}}},{key:"set",value:function(o,i,s){return i.timestampIsSet?o:new Date(o.getTime()-s)}}]),n}(nt),Ck=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",40),he(ye(r),"incompatibleTokens","*"),r}return We(n,[{key:"parse",value:function(o){return qp(o)}},{key:"set",value:function(o,i,s){return[new Date(s*1e3),{timestampIsSet:!0}]}}]),n}(nt),Tk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",20),he(ye(r),"incompatibleTokens","*"),r}return We(n,[{key:"parse",value:function(o){return qp(o)}},{key:"set",value:function(o,i,s){return[new Date(s),{timestampIsSet:!0}]}}]),n}(nt),Ek={G:new j1,y:new W1,Y:new q1,R:new Y1,u:new G1,Q:new K1,q:new X1,M:new J1,L:new Q1,w:new ek,I:new nk,d:new ok,D:new ik,E:new sk,e:new lk,c:new uk,i:new dk,a:new fk,b:new pk,B:new hk,h:new mk,H:new vk,K:new gk,k:new yk,m:new bk,s:new _k,S:new wk,X:new kk,x:new Sk,t:new Ck,T:new Tk},xk=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Pk=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ik=/^'([^]*?)'?$/,Dk=/''/g,Nk=/\S/,Ok=/[a-zA-Z]/;function hl(e,t,n,r){var o,i,s,l,u,c,f,p,h,m,y,k,b,w,T,O,_,B;ke(3,arguments);var C=String(e),I=String(t),F=Qn(),q=(o=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:F.locale)!==null&&o!==void 0?o:zp;if(!q.match)throw new RangeError("locale must contain match property");var W=Ne((s=(l=(u=(c=r==null?void 0:r.firstWeekContainsDate)!==null&&c!==void 0?c:r==null||(f=r.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&u!==void 0?u:F.firstWeekContainsDate)!==null&&l!==void 0?l:(h=F.locale)===null||h===void 0||(m=h.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=Ne((y=(k=(b=(w=r==null?void 0:r.weekStartsOn)!==null&&w!==void 0?w:r==null||(T=r.locale)===null||T===void 0||(O=T.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&b!==void 0?b:F.weekStartsOn)!==null&&k!==void 0?k:(_=F.locale)===null||_===void 0||(B=_.options)===null||B===void 0?void 0:B.weekStartsOn)!==null&&y!==void 0?y:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(I==="")return C===""?Oe(n):new Date(NaN);var D={firstWeekContainsDate:W,weekStartsOn:M,locale:q},$=[new z1],Y=I.match(Pk).map(function(ie){var oe=ie[0];if(oe in fl){var Ie=fl[oe];return Ie(ie,q.formatLong)}return ie}).join("").match(xk),X=[],K=nd(Y),j;try{var U=function(){var oe=j.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Up(oe)&&mi(oe,I,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Hp(oe)&&mi(oe,I,e);var Ie=oe[0],Ee=Ek[Ie];if(Ee){var fe=Ee.incompatibleTokens;if(Array.isArray(fe)){var Be=X.find(function(ze){return fe.includes(ze.token)||ze.token===Ie});if(Be)throw new RangeError("The format string mustn't contain `".concat(Be.fullToken,"` and `").concat(oe,"` at the same time"))}else if(Ee.incompatibleTokens==="*"&&X.length>0)throw new RangeError("The format string mustn't contain `".concat(oe,"` and any other token at the same time"));X.push({token:Ie,fullToken:oe});var $e=Ee.run(C,oe,q.match,D);if(!$e)return{v:new Date(NaN)};$.push($e.setter),C=$e.rest}else{if(Ie.match(Ok))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Ie+"`");if(oe==="''"?oe="'":Ie==="'"&&(oe=Bk(oe)),C.indexOf(oe)===0)C=C.slice(oe.length);else return{v:new Date(NaN)}}};for(K.s();!(j=K.n()).done;){var S=U();if(wn(S)==="object")return S.v}}catch(ie){K.e(ie)}finally{K.f()}if(C.length>0&&Nk.test(C))return new Date(NaN);var H=$.map(function(ie){return ie.priority}).sort(function(ie,oe){return oe-ie}).filter(function(ie,oe,Ie){return Ie.indexOf(ie)===oe}).map(function(ie){return $.filter(function(oe){return oe.priority===ie}).sort(function(oe,Ie){return Ie.subPriority-oe.subPriority})}).map(function(ie){return ie[0]}),Z=Oe(n);if(isNaN(Z.getTime()))return new Date(NaN);var Q=Ap(Z,hi(Z)),V={},E=nd(H),P;try{for(E.s();!(P=E.n()).done;){var R=P.value;if(!R.validate(Q,D))return new Date(NaN);var G=R.set(Q,V,D);Array.isArray(G)?(Q=G[0],P1(V,G[1])):Q=G}}catch(ie){E.e(ie)}finally{E.f()}return Q}function Bk(e){return e.match(Ik)[1].replace(Dk,"'")}function Mk(e,t){ke(2,arguments);var n=Ne(t);return lr(e,-n)}function Rk(e,t){var n;ke(1,arguments);var r=Ne((n=t==null?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=Vk(e),i;if(o.date){var s=Fk(o.date,r);i=Hk(s.restDateString,s.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var l=i.getTime(),u=0,c;if(o.time&&(u=Uk(o.time),isNaN(u)))return new Date(NaN);if(o.timezone){if(c=zk(o.timezone),isNaN(c))return new Date(NaN)}else{var f=new Date(l+u),p=new Date(0);return p.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),p.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),p}return new Date(l+u+c)}var Uo={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ak=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,$k=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Lk=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Vk(e){var t={},n=e.split(Uo.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Uo.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Uo.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var o=Uo.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function Fk(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function Hk(e,t){if(t===null)return new Date(NaN);var n=e.match(Ak);if(!n)return new Date(NaN);var r=!!n[4],o=qa(n[1]),i=qa(n[2])-1,s=qa(n[3]),l=qa(n[4]),u=qa(n[5])-1;if(r)return Gk(t,l,u)?jk(t,l,u):new Date(NaN);var c=new Date(0);return!qk(t,i,s)||!Yk(t,o)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(o,s)),c)}function qa(e){return e?parseInt(e):1}function Uk(e){var t=e.match($k);if(!t)return NaN;var n=Ms(t[1]),r=Ms(t[2]),o=Ms(t[3]);return Kk(n,r,o)?n*hu+r*pu+o*1e3:NaN}function Ms(e){return e&&parseFloat(e.replace(",","."))||0}function zk(e){if(e==="Z")return 0;var t=e.match(Lk);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return Xk(r,o)?n*(r*hu+o*pu):NaN}function jk(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var Wk=[31,null,31,30,31,30,31,31,30,31,30,31];function Kp(e){return e%400===0||e%4===0&&e%100!==0}function qk(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Wk[t]||(Kp(e)?29:28))}function Yk(e,t){return t>=1&&t<=(Kp(e)?366:365)}function Gk(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Kk(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Xk(e,t){return t>=0&&t<=59}function ua(e,t){ke(2,arguments);var n=Oe(e),r=Ne(t),o=n.getFullYear(),i=n.getDate(),s=new Date(0);s.setFullYear(o,r,15),s.setHours(0,0,0,0);var l=D1(s);return n.setMonth(r,Math.min(i,l)),n}function Ot(e,t){if(ke(2,arguments),wn(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=Oe(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=ua(n,t.month)),t.date!=null&&n.setDate(Ne(t.date)),t.hours!=null&&n.setHours(Ne(t.hours)),t.minutes!=null&&n.setMinutes(Ne(t.minutes)),t.seconds!=null&&n.setSeconds(Ne(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(Ne(t.milliseconds)),n)}function Xp(e,t){ke(2,arguments);var n=Oe(e),r=Ne(t);return n.setHours(r),n}function yu(e,t){ke(2,arguments);var n=Oe(e),r=Ne(t);return n.setMilliseconds(r),n}function Jp(e,t){ke(2,arguments);var n=Oe(e),r=Ne(t);return n.setMinutes(r),n}function Qp(e,t){ke(2,arguments);var n=Oe(e),r=Ne(t);return n.setSeconds(r),n}function ur(e,t){ke(2,arguments);var n=Oe(e),r=Ne(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function ma(e,t){ke(2,arguments);var n=Ne(t);return zn(e,-n)}function Jk(e,t){if(ke(2,arguments),!t||wn(t)!=="object")return new Date(NaN);var n=t.years?Ne(t.years):0,r=t.months?Ne(t.months):0,o=t.weeks?Ne(t.weeks):0,i=t.days?Ne(t.days):0,s=t.hours?Ne(t.hours):0,l=t.minutes?Ne(t.minutes):0,u=t.seconds?Ne(t.seconds):0,c=ma(e,r+n*12),f=Mk(c,i+o*7),p=l+s*60,h=u+p*60,m=h*1e3,y=new Date(f.getTime()-m);return y}function Qk(e,t){ke(2,arguments);var n=Ne(t);return Mp(e,-n)}var Zk={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},eS=function(t,n,r){var o,i=Zk[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"over "+o:o+" geleden":o};const tS=eS;var nS={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},rS={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},aS={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},oS={date:ha({formats:nS,defaultWidth:"full"}),time:ha({formats:rS,defaultWidth:"full"}),dateTime:ha({formats:aS,defaultWidth:"full"})};const iS=oS;var sS={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},lS=function(t,n,r,o){return sS[t]};const uS=lS;var cS={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},dS={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},fS={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},pS={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},hS={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},mS=function(t,n){var r=Number(t);return r+"e"},vS={ordinalNumber:mS,era:$n({values:cS,defaultWidth:"wide"}),quarter:$n({values:dS,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:$n({values:fS,defaultWidth:"wide"}),day:$n({values:pS,defaultWidth:"wide"}),dayPeriod:$n({values:hS,defaultWidth:"wide"})};const gS=vS;var yS=/^(\d+)e?/i,bS=/\d+/i,_S={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},wS={any:[/^v/,/^n/]},kS={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},SS={any:[/1/i,/2/i,/3/i,/4/i]},CS={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},TS={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},ES={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},xS={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},PS={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},IS={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},DS={ordinalNumber:Op({matchPattern:yS,parsePattern:bS,valueCallback:function(t){return parseInt(t,10)}}),era:Ln({matchPatterns:_S,defaultMatchWidth:"wide",parsePatterns:wS,defaultParseWidth:"any"}),quarter:Ln({matchPatterns:kS,defaultMatchWidth:"wide",parsePatterns:SS,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ln({matchPatterns:CS,defaultMatchWidth:"wide",parsePatterns:TS,defaultParseWidth:"any"}),day:Ln({matchPatterns:ES,defaultMatchWidth:"wide",parsePatterns:xS,defaultParseWidth:"any"}),dayPeriod:Ln({matchPatterns:PS,defaultMatchWidth:"any",parsePatterns:IS,defaultParseWidth:"any"})};const NS=DS;var OS={code:"nl",formatDistance:tS,formatLong:iS,formatRelative:uS,localize:gS,match:NS,options:{weekStartsOn:1,firstWeekContainsDate:4}};const BS=OS,MS=["date","datetime","time","year","month","week"],RS={time:e_,week:Wa,date:Wa,year:Wa,month:Wa,datetime:Wa};function go(e){return MS.includes(e)}function AS(e){switch(e){case"datetime":return"d LLLL yyyy HH:mm";case"time":return"HH:mm";case"year":return"yyyy";case"month":return"LLLL";case"week":return"d LLLL yyyy";case"date":default:return"d LLLL yyyy"}}function $S(e,t){return{locale:"nl",uid:t,autoApply:!0,clearable:!1,formatLocale:BS,format:AS(e),timePicker:e==="time",weekPicker:e==="week",yearPicker:e==="year",monthPicker:e==="month",enableTimePicker:["time","datetime"].includes(e),teleport:!0}}const LS=["location"];function yi(e){return LS.includes(e)}const VS=["radio","checkbox"];function Hi(e){return VS.includes(e)}const FS=`peer text-zinc-700 appearance-none h-5 w-5 border
69
69
  border-zinc-300 cursor-pointer checked:!border-[5px] checked:border-primary disabled:border-10
70
70
  disabled:!border-zinc-100 disabled:cursor-not-allowed focus:border-2 focus:border-primary
71
- focus-visible:outline-none`,HS="rounded bg-white checked:bg-primary";function US(e,t){return{[FS]:!0,[HS]:e==="checkbox","rounded-full":e==="radio","!border-error":t}}function Ui(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),a.createElementVNode("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),a.createElementVNode("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),a.createElementVNode("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}function zS(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),a.createElementVNode("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}function ad(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function od(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}function Zp(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),a.createElementVNode("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}function eh(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function th(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}const id=(e,t,n,r,o)=>{const i=hl(e,t.slice(0,e.length),new Date);return eo(i)&&Rp(i)?r||o?i:Nt(i,{hours:+n.hours,minutes:+(n==null?void 0:n.minutes),seconds:+(n==null?void 0:n.seconds),milliseconds:0}):null},jS=(e,t,n,r,o)=>{const i=Array.isArray(n)?n[0]:n;if(typeof t=="string")return id(e,t,i,r,o);if(Array.isArray(t)){let s=null;for(const l of t)if(s=id(e,l,i,r,o),s)break;return s}return typeof t=="function"?t(e):null},ae=e=>e?new Date(e):new Date,WS=(e,t,n)=>{if(t){const o=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),s=e.getHours().toString().padStart(2,"0"),l=e.getMinutes().toString().padStart(2,"0"),u=n?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${o}-${i}T${s}:${l}:${u}.000Z`}const r=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(r).toISOString()},yn=e=>{let t=ae(JSON.parse(JSON.stringify(e)));return t=Xp(t,0),t=Jp(t,0),t=Qp(t,0),t=yu(t,0),t},mn=(e,t,n,r)=>{let o=e?ae(e):ae();return(t||t===0)&&(o=Xp(o,+t)),(n||n===0)&&(o=Jp(o,+n)),(r||r===0)&&(o=Qp(o,+r)),yu(o,0)},qt=(e,t)=>!e||!t?!1:vo(yn(e),yn(t)),ot=(e,t)=>!e||!t?!1:Vr(yn(e),yn(t)),nn=(e,t)=>!e||!t?!1:mo(yn(e),yn(t)),nh=(e,t,n)=>e&&e[0]&&e[1]?nn(n,e[0])&&qt(n,e[1]):e&&e[0]&&t?nn(n,e[0])&&qt(n,t)||qt(n,e[0])&&nn(n,t):!1,Ya=e=>{const t=Nt(new Date(e),{date:1});return yn(t)},Rs=(e,t,n)=>t&&(n||n===0)?Object.fromEntries(["hours","minutes","seconds"].map(r=>r===t?[r,n]:[r,isNaN(+e[r])?void 0:+e[r]])):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},zo=e=>({hours:ir(e),minutes:sr(e),seconds:Ta(e)}),Ga=a.reactive({menuFocused:!1,shiftKeyInMenu:!1}),rh=()=>{const e=n=>{Ga.menuFocused=n},t=n=>{Ga.shiftKeyInMenu!==n&&(Ga.shiftKeyInMenu=n)};return{control:a.computed(()=>({shiftKeyInMenu:Ga.shiftKeyInMenu,menuFocused:Ga.menuFocused})),setMenuFocused:e,setShiftKey:t}};function bu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ah={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ah);var qS=ah.exports,ml={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var o=Number(r);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}e.exports=t.default})(ml,ml.exports);var YS=ml.exports;const GS=bu(YS);var vl={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var o=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return o.setUTCFullYear(r.getFullYear()),r.getTime()-o.getTime()}e.exports=t.default})(vl,vl.exports);var KS=vl.exports;const sd=bu(KS);function XS(e,t){var n=eC(t);return n.formatToParts?QS(n,e):ZS(n,e)}var JS={year:0,month:1,day:2,hour:3,minute:4,second:5};function QS(e,t){try{for(var n=e.formatToParts(t),r=[],o=0;o<n.length;o++){var i=JS[n[o].type];i>=0&&(r[i]=parseInt(n[o].value,10))}return r}catch(s){if(s instanceof RangeError)return[NaN];throw s}}function ZS(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var As={};function eC(e){if(!As[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";As[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return As[e]}function _u(e,t,n,r,o,i,s){var l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,o,i,s),l}var ld=36e5,tC=6e4,$s={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function wu(e,t,n){var r,o;if(!e||(r=$s.timezoneZ.exec(e),r))return 0;var i;if(r=$s.timezoneHH.exec(e),r)return i=parseInt(r[1],10),ud(i)?-(i*ld):NaN;if(r=$s.timezoneHHMM.exec(e),r){i=parseInt(r[1],10);var s=parseInt(r[2],10);return ud(i,s)?(o=Math.abs(i)*ld+s*tC,i>0?-o:o):NaN}if(aC(e)){t=new Date(t||Date.now());var l=n?t:nC(t),u=gl(l,e),c=n?u:rC(t,u,e);return-c}return NaN}function nC(e){return _u(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function gl(e,t){var n=XS(e,t),r=_u(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),i=o%1e3;return o-=i>=0?i:1e3+i,r-o}function rC(e,t,n){var r=e.getTime(),o=r-t,i=gl(new Date(o),n);if(t===i)return t;o-=i-t;var s=gl(new Date(o),n);return i===s?i:Math.max(i,s)}function ud(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var cd={};function aC(e){if(cd[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),cd[e]=!0,!0}catch{return!1}}var oC=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const oh=oC;var Ls=36e5,dd=6e4,iC=2,en={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:oh};function yl(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},r=n.additionalDigits==null?iC:GS(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=sC(e),i=lC(o.date,r),s=i.year,l=i.restDateString,u=uC(l,s);if(isNaN(u))return new Date(NaN);if(u){var c=u.getTime(),f=0,p;if(o.time&&(f=cC(o.time),isNaN(f)))return new Date(NaN);if(o.timeZone||n.timeZone){if(p=wu(o.timeZone||n.timeZone,new Date(c+f)),isNaN(p))return new Date(NaN)}else p=sd(new Date(c+f)),p=sd(new Date(c+f+p));return new Date(c+f+p)}else return new Date(NaN)}function sC(e){var t={},n=en.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=en.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){var o=en.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function lC(e,t){var n=en.YYY[t],r=en.YYYYY[t],o;if(o=en.YYYY.exec(e)||r.exec(e),o){var i=o[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(o=en.YY.exec(e)||n.exec(e),o){var s=o[1];return{year:parseInt(s,10)*100,restDateString:e.slice(s.length)}}return{year:null}}function uC(e,t){if(t===null)return null;var n,r,o,i;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=en.MM.exec(e),n)return r=new Date(0),o=parseInt(n[1],10)-1,pd(t,o)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=en.DDD.exec(e),n){r=new Date(0);var s=parseInt(n[1],10);return pC(t,s)?(r.setUTCFullYear(t,0,s),r):new Date(NaN)}if(n=en.MMDD.exec(e),n){r=new Date(0),o=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return pd(t,o,l)?(r.setUTCFullYear(t,o,l),r):new Date(NaN)}if(n=en.Www.exec(e),n)return i=parseInt(n[1],10)-1,hd(t,i)?fd(t,i):new Date(NaN);if(n=en.WwwD.exec(e),n){i=parseInt(n[1],10)-1;var u=parseInt(n[2],10)-1;return hd(t,i,u)?fd(t,i,u):new Date(NaN)}return null}function cC(e){var t,n,r;if(t=en.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),Vs(n)?n%24*Ls:NaN;if(t=en.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),Vs(n,r)?n%24*Ls+r*dd:NaN;if(t=en.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return Vs(n,r,o)?n%24*Ls+r*dd+o*1e3:NaN}return null}function fd(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var dC=[31,28,31,30,31,30,31,31,30,31,30,31],fC=[31,29,31,30,31,30,31,31,30,31,30,31];function ih(e){return e%400===0||e%4===0&&e%100!==0}function pd(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=ih(e);if(r&&n>fC[t]||!r&&n>dC[t])return!1}return!0}function pC(e,t){if(t<1)return!1;var n=ih(e);return!(n&&t>366||!n&&t>365)}function hd(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function Vs(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}var bl={exports:{}},_l={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i]);return r}e.exports=t.default})(_l,_l.exports);var hC=_l.exports;(function(e,t){var n=qS.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(hC);function o(i){return(0,r.default)({},i)}e.exports=t.default})(bl,bl.exports);var mC=bl.exports;const vC=bu(mC);function gC(e,t,n){var r=yl(e,n),o=wu(t,r,!0),i=new Date(r.getTime()-o),s=new Date(0);return s.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),s.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),s}function yC(e,t,n){if(typeof e=="string"&&!e.match(oh)){var r=vC(n);return r.timeZone=t,yl(e,r)}var o=yl(e,n),i=_u(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()).getTime(),s=wu(t,new Date(i));return new Date(i+s)}const bC=(e,t=3)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push([e[r],e[r+1],e[r+2]]);return n};function md(e){return t=>new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${t}T00:00:00+00:00`)).slice(0,2)}function _C(e){return t=>jr(new Date(`2017-01-0${t}T00:00:00+00:00`),"EEEEEE",{locale:e})}const wC=(e,t,n)=>{const r=[1,2,3,4,5,6,7];let o;if(e!==null)try{o=r.map(_C(e))}catch{o=r.map(md(t))}else o=r.map(md(t));const i=o.slice(0,n),s=o.slice(n+1,o.length);return[o[n]].concat(...s).concat(...i)},kC=(e,t)=>{const n=[];for(let r=+e[0];r<=+e[1];r++)n.push({value:+r,text:`${r}`});return t?n.reverse():n},SC=(e,t,n)=>{const r=[1,2,3,4,5,6,7,8,9,10,11,12].map(i=>{const s=i<10?`0${i}`:i;return new Date(`2017-${s}-01T00:00:00+00:00`)});if(e!==null)try{const i=n==="long"?"MMMM":"MMM";return r.map((s,l)=>{const u=jr(s,i,{locale:e});return{text:u.charAt(0).toUpperCase()+u.substring(1),value:l}})}catch{}const o=new Intl.DateTimeFormat(t,{month:n,timeZone:"UTC"});return r.map((i,s)=>{const l=o.format(i);return{text:l.charAt(0).toUpperCase()+l.substring(1),value:s}})},CC=e=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][e],wt=e=>{const t=a.unref(e);return t!=null&&t.$el?t==null?void 0:t.$el:t},TC=e=>Object.assign({type:"dot"},e),sh=e=>Array.isArray(e)?!!e[0]&&!!e[1]:!1,bi={prop:e=>`"${e}" prop must be enabled!`,dateArr:e=>`You need to use array as "model-value" binding in order to support "${e}"`},Wt=e=>e,vd=e=>e===0?e:!e||isNaN(+e)?null:+e,EC=e=>e===0?!0:!!e,gd=e=>e===null,xC=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},yd=e=>Object.assign({menuAppear:"",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down"},e),PC=e=>Object.assign({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",calendarWrap:"Calendar wrapper",calendarDays:"Calendar days",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:t=>`Increment ${t}`,decrementValue:t=>`Decrement ${t}`,openTpOverlay:t=>`Open ${t} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",day:()=>""},e),IC=e=>e===null?0:typeof e=="boolean"?e?2:0:+e>=2?+e:2,DC=(e,t,n)=>e||(typeof n=="string"?n:t),OC=e=>typeof e=="boolean"?e?yd({}):!1:yd(e),NC=()=>({enterSubmit:!0,tabSubmit:!0,openMenu:!0,rangeSeparator:" - "}),BC=e=>Object.assign({months:[],years:[],times:{hours:[],minutes:[],seconds:[]}},e),MC=e=>Object.assign({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0},e),fn=e=>{const t=()=>{if(e.partialRange)return null;throw new Error(bi.prop("partial-range"))},n=a.computed(()=>({ariaLabels:PC(e.ariaLabels),textInputOptions:Object.assign(NC(),e.textInputOptions),multiCalendars:IC(e.multiCalendars),previewFormat:DC(e.previewFormat,e.format,i()),filters:BC(e.filters),transitions:OC(e.transitions),startTime:m(),actionRow:MC(e.actionRow)})),r=V=>{if(e.range)return V();throw new Error(bi.prop("range"))},o=()=>{const V=e.enableSeconds?":ss":"";return e.is24?`HH:mm${V}`:`hh:mm${V} aa`},i=()=>e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?o():e.weekPicker?"MM/dd/yyyy":e.yearPicker?"yyyy":e.enableTimePicker?`MM/dd/yyyy, ${o()}`:"MM/dd/yyyy",s=(V,E)=>{if(typeof e.format=="function")return e.format(V);const P=E||i(),R=e.formatLocale?{locale:e.formatLocale}:void 0;return Array.isArray(V)?`${jr(V[0],P,R)}${e.modelAuto&&!V[1]?"":n.value.textInputOptions.rangeSeparator||"-"}${V[1]?jr(V[1],P,R):""}`:jr(V,P,R)},l=V=>e.timezone?gC(V,e.timezone):V,u=V=>e.timezone?yC(V,e.timezone):V,c=a.computed(()=>V=>{var E;return(E=e.hideNavigation)==null?void 0:E.includes(V)}),f=V=>{var E,P,R,G;return Array.isArray(e.allowedDates)&&!((E=e.allowedDates)!=null&&E.length)?!0:(P=e.arrMapValues)!=null&&P.allowedDates?!T(V,e.arrMapValues.allowedDates):(R=e.allowedDates)!=null&&R.length?!((G=e.allowedDates)!=null&&G.some(ie=>ot(l(ae(ie)),l(V)))):!1},p=V=>{var E;const P=e.maxDate?nn(l(V),l(ae(e.maxDate))):!1,R=e.minDate?qt(l(V),l(ae(e.minDate))):!1,G=T(V,(E=e.arrMapValues)!=null&&E.disabledDates?e.arrMapValues.disabledDates:e.disabledDates),ie=n.value.filters.months.map(Be=>+Be).includes(ct(V)),oe=e.disabledWeekDays.length?e.disabledWeekDays.some(Be=>+Be===I1(V)):!1,Ie=f(V),Ee=ht(V),fe=Ee<+e.yearRange[0]||Ee>+e.yearRange[1];return!(P||R||G||ie||fe||oe||Ie)},h=V=>{const E={hours:ir(ae()),minutes:sr(ae()),seconds:e.enableSeconds?Ta(ae()):0};return Object.assign(E,V)},m=()=>e.range?e.startTime&&Array.isArray(e.startTime)?[h(e.startTime[0]),h(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?h(e.startTime):null,y=V=>!p(V),k=V=>Array.isArray(V)?eo(V[0])&&(V[1]?eo(V[1]):!0):V?eo(V):!1,_=V=>V instanceof Date?V:Rk(V),w=V=>{const E=Wr(l(V),{weekStartsOn:+e.weekStart}),P=xw(l(V),{weekStartsOn:+e.weekStart});return[E,P]},T=(V,E)=>V?E instanceof Map?!!E.get(H(V)):Array.isArray(E)?E.some(P=>ot(l(ae(P)),l(V))):E(ae(JSON.parse(JSON.stringify(V)))):!0,N=(V,E,P)=>{let R=V?ae(V):ae();return(E||E===0)&&(R=la(R,E)),P&&(R=ur(R,P)),R},b=V=>Nt(ae(),zo(V)),B=V=>Nt(ae(),{hours:+V.hours||0,minutes:+V.minutes||0,seconds:+V.seconds||0}),C=(V,E,P,R)=>{if(!V)return!0;if(R){const G=P==="max"?vo(V,E):mo(V,E),ie={seconds:0,milliseconds:0};return G||Vr(Nt(V,ie),Nt(E,ie))}return P==="max"?V.getTime()<=E.getTime():V.getTime()>=E.getTime()},I=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,F=V=>Array.isArray(V)?[V[0]?b(V[0]):null,V[1]?b(V[1]):null]:b(V),q=V=>{const E=e.maxTime?B(e.maxTime):ae(e.maxDate);return Array.isArray(V)?C(V[0],E,"max",!!e.maxDate)&&C(V[1],E,"max",!!e.maxDate):C(V,E,"max",!!e.maxDate)},W=(V,E)=>{const P=e.minTime?B(e.minTime):ae(e.minDate);return Array.isArray(V)?C(V[0],P,"min",!!e.minDate)&&C(V[1],P,"min",!!e.minDate)&&E:C(V,P,"min",!!e.minDate)&&E},M=V=>{let E=!0;if(!V||I())return!0;const P=!e.minDate&&!e.maxDate?F(V):V;if((e.maxTime||e.maxDate)&&(E=q(Wt(P))),(e.minTime||e.minDate)&&(E=W(Wt(P),E)),e.disabledTimes){const R=Array.isArray(V)?[zo(V[0]),V[1]?zo(V[1]):void 0]:zo(V);E=!e.disabledTimes(R)}return E},D=(V,E)=>{const P=ae(JSON.parse(JSON.stringify(V))),R=[];for(let G=0;G<7;G++){const ie=lr(P,G),oe=ct(ie)!==E;R.push({text:e.hideOffsetDates&&oe?"":ie.getDate(),value:ie,current:!oe,classData:{}})}return R},$=(V,E)=>{switch(e.sixWeeks===!0?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[V==0,!0];case"fair":return[V==0||E>V,!0];case"append":return[!1,!1];default:return[!1,!1]}},Y=(V,E)=>{const P=[],R=ae(l(new Date(E,V))),G=ae(l(new Date(E,V+1,0))),ie=e.weekStart,oe=Wr(R,{weekStartsOn:ie}),Ie=Ee=>{const fe=D(Ee,V);if(P.push({days:fe}),!P[P.length-1].days.some(Be=>ot(yn(Be.value),yn(G)))){const Be=lr(Ee,7);Ie(Be)}};if(Ie(oe),e.sixWeeks&&P.length<6){const Ee=6-P.length,fe=(R.getDay()+7-ie)%7,Be=6-(G.getDay()+7-ie)%7,[$e,ze]=$(fe,Be);for(let Ge=1;Ge<=Ee;Ge++)if(ze?!!(Ge%2)==$e:$e){const Ke=P[0].days[0],ve=D(lr(Ke.value,-7),ct(R));P.unshift({days:ve})}else{const Ke=P[P.length-1],ve=Ke.days[Ke.days.length-1],Qe=D(lr(ve.value,1),ct(R));P.push({days:Qe})}}return P},X=(V,E,P)=>[Nt(ae(V),{date:1}),Nt(ae(),{month:E,year:P,date:1})],K=(V,E)=>qt(...X(e.minDate,V,E))||ot(...X(e.minDate,V,E)),j=(V,E)=>nn(...X(e.maxDate,V,E))||ot(...X(e.maxDate,V,E)),U=(V,E,P)=>{let R=!1;return e.maxDate&&P&&j(V,E)&&(R=!0),e.minDate&&!P&&K(V,E)&&(R=!0),R},S=(V,E,P,R)=>{let G=!1;return R?e.minDate&&e.maxDate?G=U(V,E,P):(e.minDate&&K(V,E)||e.maxDate&&j(V,E))&&(G=!0):G=!0,G},H=V=>{const E=yn(l(ae(V))).toISOString(),[P]=E.split("T");return P},Z=V=>new Map(V.map(E=>[H(E),!0])),Q=V=>Array.isArray(V)&&V.length>0;return{checkPartialRangeValue:t,checkRangeEnabled:r,getZonedDate:l,getZonedToUtc:u,formatDate:s,getDefaultPattern:i,validateDate:p,getDefaultStartTime:m,isDisabled:y,isValidDate:k,sanitizeDate:_,getWeekFromDate:w,matchDate:T,setDateMonthOrYear:N,isValidTime:M,getCalendarDays:Y,validateMonthYearInRange:S,validateMaxDate:j,validateMinDate:K,assignDefaultTime:h,mapDatesArrToMap:V=>{Q(e.allowedDates)&&(V.allowedDates=Z(e.allowedDates)),Q(e.highlight)&&(V.highlightedDates=Z(e.highlight)),Q(e.disabledDates)&&(V.disabledDates=Z(e.disabledDates))},defaults:n,hideNavigationButtons:c}},pt=a.reactive({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),Fs=a.ref(null),jo=a.ref(!1),Hs=a.ref(!1),Us=a.ref(!1),zs=a.ref(!1),Kt=a.ref(0),Lt=a.ref(0),Er=()=>{const e=a.computed(()=>jo.value?[...pt.selectionGrid,pt.actionRow].filter(p=>p.length):Hs.value?[...pt.timePicker[0],...pt.timePicker[1],zs.value?[]:[Fs.value],pt.actionRow].filter(p=>p.length):Us.value?[...pt.monthPicker,pt.actionRow]:[pt.monthYear,...pt.calendar,pt.time,pt.actionRow].filter(p=>p.length)),t=p=>{Kt.value=p?Kt.value+1:Kt.value-1;let h=null;e.value[Lt.value]&&(h=e.value[Lt.value][Kt.value]),h||(Kt.value=p?Kt.value-1:Kt.value+1)},n=p=>{Lt.value===0&&!p||Lt.value===e.value.length&&p||(Lt.value=p?Lt.value+1:Lt.value-1,e.value[Lt.value]?e.value[Lt.value]&&!e.value[Lt.value][Kt.value]&&Kt.value!==0&&(Kt.value=e.value[Lt.value].length-1):Lt.value=p?Lt.value-1:Lt.value+1)},r=p=>{let h=null;e.value[Lt.value]&&(h=e.value[Lt.value][Kt.value]),h?h.focus({preventScroll:!jo.value}):Kt.value=p?Kt.value-1:Kt.value+1},o=()=>{t(!0),r(!0)},i=()=>{t(!1),r(!1)},s=()=>{n(!1),r(!0)},l=()=>{n(!0),r(!0)},u=(p,h)=>{pt[h]=p},c=(p,h)=>{pt[h]=p},f=()=>{Kt.value=0,Lt.value=0};return{buildMatrix:u,buildMultiLevelMatrix:c,setTimePickerBackRef:p=>{Fs.value=p},setSelectionGrid:p=>{jo.value=p,f(),p||(pt.selectionGrid=[])},setTimePicker:(p,h=!1)=>{Hs.value=p,zs.value=h,f(),p||(pt.timePicker[0]=[],pt.timePicker[1]=[])},setTimePickerElements:(p,h=0)=>{pt.timePicker[h]=p},arrowRight:o,arrowLeft:i,arrowUp:s,arrowDown:l,clearArrowNav:()=>{pt.monthYear=[],pt.calendar=[],pt.time=[],pt.actionRow=[],pt.selectionGrid=[],pt.timePicker[0]=[],pt.timePicker[1]=[],jo.value=!1,Hs.value=!1,zs.value=!1,Us.value=!1,f(),Fs.value=null},setMonthPicker:p=>{Us.value=p,f()},refSets:pt}},bd=e=>Array.isArray(e),Br=e=>Array.isArray(e),_d=e=>Array.isArray(e)&&e.length===2,RC=(e,t,n,r,o)=>{const{getDefaultStartTime:i,isDisabled:s,sanitizeDate:l,getWeekFromDate:u,setDateMonthOrYear:c,validateMonthYearInRange:f,defaults:p}=fn(e),h=a.computed({get:()=>e.internalModelValue,set:L=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",L)}}),m=a.ref([]);a.watch(h,(L,O)=>{e.range?I():Vr(L,O)||I()});const y=a.toRef(e,"multiCalendars");a.watch(y,()=>{se(0)});const k=a.ref([{month:ct(ae()),year:ht(ae())}]);a.watch(k,()=>{k.value.forEach((L,O)=>{t("update-month-year",{instance:O,month:L.month,year:L.year})})},{deep:!0});const _=a.reactive({hours:e.range?[ir(ae()),ir(ae())]:ir(ae()),minutes:e.range?[sr(ae()),sr(ae())]:sr(ae()),seconds:e.range?[0,0]:0}),w=a.computed(()=>L=>k.value[L]?k.value[L].month:0),T=a.computed(()=>L=>k.value[L]?k.value[L].year:0),N=a.computed(()=>{var L;return(L=e.flow)!=null&&L.length&&!e.partialFlow?o.value===e.flow.length:!0}),b=(L,O,ee)=>{var re,ge;k.value[L]||(k.value[L]={month:0,year:0}),k.value[L].month=gd(O)?(re=k.value[L])==null?void 0:re.month:O,k.value[L].year=gd(ee)?(ge=k.value[L])==null?void 0:ge.year:ee},B=(L,O)=>{_[L]=O},C=()=>{e.startDate&&(b(0,ct(ae(e.startDate)),ht(ae(e.startDate))),p.value.multiCalendars&&se(0))};a.onMounted(()=>{h.value||(C(),p.value.startTime&&j()),I(!0),e.focusStartDate&&e.startDate&&C()});const I=(L=!1)=>{if(h.value)return Array.isArray(h.value)?(m.value=h.value,D(L)):q(h.value,L);if(e.timePicker)return $();if(e.monthPicker&&!e.range)return Y();if(e.yearPicker&&!e.range)return X();if(p.value.multiCalendars&&L&&!e.startDate)return F(ae(),L)},F=(L,O=!1)=>{if((!p.value.multiCalendars||!e.multiStatic||O)&&b(0,ct(L),ht(L)),p.value.multiCalendars)for(let ee=1;ee<p.value.multiCalendars;ee++){const re=Nt(ae(),{month:w.value(ee-1),year:T.value(ee-1)}),ge=Bp(re,{months:1});k.value[ee]={month:ct(ge),year:ht(ge)}}},q=(L,O)=>{F(L),B("hours",ir(L)),B("minutes",sr(L)),B("seconds",Ta(L)),p.value.multiCalendars&&O&&S()},W=(L,O)=>{L[1]&&e.showLastInRange?F(L[1],O):F(L[0],O);const ee=(re,ge)=>[re(L[0]),L[1]?re(L[1]):_[ge][1]];B("hours",ee(ir,"hours")),B("minutes",ee(sr,"minutes")),B("seconds",ee(Ta,"seconds"))},M=(L,O)=>{if((e.range||e.weekPicker)&&!e.multiDates)return W(L,O);if(e.multiDates){const ee=L[L.length-1];return q(ee,O)}},D=L=>{const O=h.value;M(O,L),p.value.multiCalendars&&e.multiCalendarsSolo&&S()},$=()=>{if(j(),!e.range)h.value=mn(ae(),_.hours,_.minutes,K());else{const L=_.hours,O=_.minutes;h.value=[mn(ae(),L[0],O[0],K()),mn(ae(),L[1],O[1],K(!1))]}},Y=()=>{e.multiDates?h.value=[c(ae(),w.value(0),T.value(0))]:h.value=c(ae(),w.value(0),T.value(0))},X=()=>{h.value=ae()},K=(L=!0)=>e.enableSeconds?Array.isArray(_.seconds)?L?_.seconds[0]:_.seconds[1]:_.seconds:0,j=()=>{const L=i();if(L){const O=Array.isArray(L),ee=O?[+L[0].hours,+L[1].hours]:+L.hours,re=O?[+L[0].minutes,+L[1].minutes]:+L.minutes,ge=O?[+L[0].seconds,+L[1].seconds]:+L.seconds;B("hours",ee),B("minutes",re),e.enableSeconds&&B("seconds",ge)}},U=()=>Array.isArray(h.value)&&h.value.length?h.value[h.value.length-1]:null,S=()=>{if(Array.isArray(h.value)&&h.value.length===2){const L=ae(ae(h.value[1]?h.value[1]:zn(h.value[0],1))),[O,ee]=[ct(h.value[0]),ht(h.value[0])],[re,ge]=[ct(h.value[1]),ht(h.value[1])];(O!==re||O===re&&ee!==ge)&&e.multiCalendarsSolo&&b(1,ct(L),ht(L))}else h.value&&!Array.isArray(h.value)&&b(0,ct(h.value),ht(h.value))},H=L=>{const O=zn(L,1);return{month:ct(O),year:ht(O)}},Z=L=>{const O=ct(ae(L)),ee=ht(ae(L));if(b(0,O,ee),p.value.multiCalendars>0)for(let re=1;re<p.value.multiCalendars;re++){const ge=H(Nt(ae(L),{year:w.value(re-1),month:T.value(re-1)}));b(re,ge.month,ge.year)}},Q=L=>{if(h.value&&Array.isArray(h.value))if(h.value.some(O=>ot(L,O))){const O=h.value.filter(ee=>!ot(ee,L));h.value=O.length?O:null}else(e.multiDatesLimit&&+e.multiDatesLimit>h.value.length||!e.multiDatesLimit)&&h.value.push(L);else h.value=[L]},V=(L,O)=>{const ee=nn(L,O)?O:L,re=nn(O,L)?O:L;return Jc({start:ee,end:re})},E=(L,O=0)=>{if(Array.isArray(h.value)&&h.value[O]){const ee=Tw(L,h.value[O]),re=V(h.value[O],L),ge=re.length===1?0:re.filter(qe=>s(qe)).length,we=Math.abs(ee)-ge;if(e.minRange&&e.maxRange)return we>=+e.minRange&&we<=+e.maxRange;if(e.minRange)return we>=+e.minRange;if(e.maxRange)return we<=+e.maxRange}return!0},P=L=>Array.isArray(h.value)&&h.value.length===2?e.fixedStart&&(nn(L,h.value[0])||ot(L,h.value[0]))?[h.value[0],L]:e.fixedEnd&&(qt(L,h.value[1])||ot(L,h.value[1]))?[L,h.value[1]]:(t("invalid-fixed-range",L),h.value):[],R=()=>{e.autoApply&&N.value&&t("auto-apply",e.partialFlow)},G=()=>{e.autoApply&&t("select-date")},ie=L=>!Jc({start:L[0],end:L[1]}).some(O=>s(O)),oe=L=>(h.value=u(ae(L.value)),R()),Ie=L=>{const O=mn(ae(L.value),_.hours,_.minutes,K());e.multiDates?Q(O):h.value=O,n(),R()},Ee=()=>{m.value=h.value?h.value.slice():[],m.value.length===2&&!(e.fixedStart||e.fixedEnd)&&(m.value=[])},fe=(L,O)=>{const ee=[ae(L.value),lr(ae(L.value),+e.autoRange)];ie(ee)&&(O&&Z(L.value),m.value=ee)},Be=L=>{$e(L.value)||!E(L.value,e.fixedStart?0:1)||(m.value=P(ae(L.value)))},$e=L=>e.noDisabledRange?V(m.value[0],L).some(O=>s(O)):!1,ze=(L,O)=>{if(Ee(),e.autoRange)return fe(L,O);if(e.fixedStart||e.fixedEnd)return Be(L);m.value[0]?E(ae(L.value))&&!$e(L.value)&&(qt(ae(L.value),ae(m.value[0]))?(m.value.unshift(ae(L.value)),t("range-end",m.value[0])):(m.value[1]=ae(L.value),t("range-end",m.value[1]))):(m.value[0]=ae(L.value),t("range-start",m.value[0]))},Ge=L=>{m.value[L]=mn(m.value[L],_.hours[L],_.minutes[L],K(L!==1))},Ke=()=>{var L,O;m.value[0]&&m.value[1]&&+((L=m.value)==null?void 0:L[0])>+((O=m.value)==null?void 0:O[1])&&(m.value.reverse(),t("range-start",m.value[0]),t("range-end",m.value[1]))},ve=()=>{m.value.length&&(m.value[0]&&!m.value[1]?Ge(0):(Ge(0),Ge(1),n()),Ke(),h.value=m.value.slice(),m.value[0]&&m.value[1]&&e.autoApply&&t("auto-apply"),m.value[0]&&!m.value[1]&&e.modelAuto&&e.autoApply&&t("auto-apply"))},Qe=(L,O=!1)=>{if(!(s(L.value)||!L.current&&e.hideOffsetDates)){if(e.weekPicker)return oe(L);if(!e.range)return Ie(L);Br(_.hours)&&Br(_.minutes)&&!e.multiDates&&(ze(L,O),ve())}},Te=L=>{const O=L[0];return e.weekNumbers==="local"?A1(O.value,{weekStartsOn:+e.weekStart}):e.weekNumbers==="iso"?N1(O.value):typeof e.weekNumbers=="function"?e.weekNumbers(O.value):""},se=L=>{for(let O=L-1;O>=0;O--){const ee=ha(Nt(ae(),{month:w.value(O+1),year:T.value(O+1)}),1);b(O,ct(ee),ht(ee))}for(let O=L+1;O<=p.value.multiCalendars-1;O++){const ee=zn(Nt(ae(),{month:w.value(O-1),year:T.value(O-1)}),1);b(O,ct(ee),ht(ee))}},ce=L=>c(ae(),w.value(L),T.value(L)),me=L=>mn(L,_.hours,_.minutes,K()),Pt=L=>{Q(ce(L))},xe=(L,O)=>{const ee=e.monthPicker?w.value(L)!==O.month||!O.fromNav:T.value(L)!==O.year||!O.fromNav;if(b(L,O.month,O.year),p.value.multiCalendars&&!e.multiCalendarsSolo&&se(L),e.monthPicker||e.yearPicker)if(e.multiDates)ee&&Pt(L);else if(e.range){if(ee&&E(ce(L))){let re=h.value?h.value.slice():[];re.length===2&&re[1]!==null&&(re=[]),re.length?qt(ce(L),re[0])?re.unshift(ce(L)):re[1]=ce(L):re=[ce(L)],h.value=re}}else(e.autoApplyMonth||ee)&&(h.value=ce(L));r(e.multiCalendarsSolo?L:void 0)},Mt=async(L=!1)=>{if(e.autoApply&&(e.monthPicker||e.yearPicker)){await a.nextTick();const O=e.monthPicker?L:!1;e.range?t("auto-apply",O||!h.value||h.value.length===1):t("auto-apply",O)}n()},Ut=(L,O)=>{const ee=Nt(ae(),{month:w.value(O),year:T.value(O)}),re=L<0?zn(ee,1):ha(ee,1);f(ct(re),ht(re),L<0,e.preventMinMaxNavigation)&&(b(O,ct(re),ht(re)),p.value.multiCalendars&&!e.multiCalendarsSolo&&se(O),r())},Rt=L=>{bd(L)&&bd(h.value)&&Br(_.hours)&&Br(_.minutes)?(L[0]&&h.value[0]&&(h.value[0]=mn(L[0],_.hours[0],_.minutes[0],K())),L[1]&&h.value[1]&&(h.value[1]=mn(L[1],_.hours[1],_.minutes[1],K(!1)))):e.multiDates&&Array.isArray(h.value)?h.value[h.value.length-1]=me(L):!e.range&&!_d(L)&&(h.value=me(L)),t("time-update")},zt=(L,O=!0,ee=!1)=>{const re=O?L:_.hours,ge=!O&&!ee?L:_.minutes,we=ee?L:_.seconds;if(e.range&&_d(h.value)&&Br(re)&&Br(ge)&&Br(we)&&!e.disableTimeRangeValidation){const qe=le=>mn(h.value[le],re[le],ge[le],we[le]),J=le=>yu(h.value[le],0);if(ot(h.value[0],h.value[1])&&(mo(qe(0),J(1))||vo(qe(1),J(0))))return}if(B("hours",re),B("minutes",ge),B("seconds",we),h.value)if(e.multiDates){const qe=U();qe&&Rt(qe)}else Rt(h.value);else e.timePicker&&Rt(e.range?[ae(),ae()]:ae());n()},kn=(L,O)=>{e.monthChangeOnScroll&&Ut(e.monthChangeOnScroll!=="inverse"?-L.deltaY:L.deltaY,O)},Sn=(L,O,ee=!1)=>{e.monthChangeOnArrows&&e.vertical===ee&&Et(L,O)},Et=(L,O)=>{Ut(L==="right"?-1:1,O)};return{time:_,month:w,year:T,modelValue:h,calendars:k,monthYearSelect:Mt,isDisabled:s,updateTime:zt,getWeekNum:Te,selectDate:Qe,updateMonthYear:xe,handleScroll:kn,getMarker:L=>e.markers.find(O=>ot(l(L.value),l(O.date))),handleArrow:Sn,handleSwipe:Et,selectCurrentDate:()=>{e.range?h.value&&Array.isArray(h.value)&&h.value[0]?h.value=qt(ae(),h.value[0])?[ae(),h.value[0]]:[h.value[0],ae()]:h.value=[ae()]:h.value=ae(),G()},presetDateRange:(L,O)=>{O||L.length&&L.length<=2&&e.range&&(h.value=L.map(ee=>ae(ee)),G(),e.multiCalendars&&a.nextTick().then(()=>I(!0)))}}},AC=(e,t,n)=>{const r=a.ref(),{getZonedToUtc:o,getZonedDate:i,formatDate:s,getDefaultPattern:l,checkRangeEnabled:u,checkPartialRangeValue:c,isValidDate:f,setDateMonthOrYear:p,defaults:h}=fn(t),m=a.ref(""),y=a.toRef(t,"format");a.watch(r,()=>{e("internal-model-change",r.value)}),a.watch(y,()=>{U()});const k=E=>{const P=E||ae();return t.modelType?H(P):{hours:ir(P),minutes:sr(P),seconds:t.enableSeconds?Ta(P):0}},_=E=>t.modelType?H(E):{month:ct(E),year:ht(E)},w=E=>Array.isArray(E)?u(()=>[ur(ae(),E[0]),E[1]?ur(ae(),E[1]):c()]):ur(ae(),+E),T=(E,P)=>(typeof E=="string"||typeof E=="number")&&t.modelType?S(E):P,N=E=>Array.isArray(E)?[T(E[0],mn(null,+E[0].hours,+E[0].minutes,E[0].seconds)),T(E[1],mn(null,+E[1].hours,+E[1].minutes,E[1].seconds))]:T(E,mn(null,E.hours,E.minutes,E.seconds)),b=E=>Array.isArray(E)?t.multiDates?E.map(P=>T(P,p(null,+P.month,+P.year))):u(()=>[T(E[0],p(null,+E[0].month,+E[0].year)),T(E[1],E[1]?p(null,+E[1].month,+E[1].year):c())]):T(E,p(null,+E.month,+E.year)),B=E=>{if(Array.isArray(E))return E.map(P=>S(P));throw new Error(bi.dateArr("multi-dates"))},C=E=>{if(Array.isArray(E))return[ae(E[0]),ae(E[1])];throw new Error(bi.dateArr("week-picker"))},I=E=>t.modelAuto?Array.isArray(E)?[S(E[0]),S(E[1])]:t.autoApply?[S(E)]:[S(E),null]:Array.isArray(E)?u(()=>[S(E[0]),E[1]?S(E[1]):c()]):S(E),F=()=>{Array.isArray(r.value)&&t.range&&r.value.length===1&&r.value.push(c())},q=()=>{const E=r.value;return[H(E[0]),E[1]?H(E[1]):c()]},W=()=>r.value[1]?q():H(Wt(r.value[0])),M=()=>(r.value||[]).map(E=>H(E)),D=()=>(F(),t.modelAuto?W():t.multiDates?M():Array.isArray(r.value)?u(()=>q()):H(Wt(r.value))),$=E=>E?t.timePicker?N(Wt(E)):t.monthPicker?b(Wt(E)):t.yearPicker?w(Wt(E)):t.multiDates?B(Wt(E)):t.weekPicker?C(Wt(E)):I(Wt(E)):null,Y=E=>{const P=$(E);f(Wt(P))?(r.value=Wt(P),U()):(r.value=null,m.value="")},X=()=>{var E;const P=R=>{var G;return jr(R,(G=h.value.textInputOptions)==null?void 0:G.format)};return`${P(r.value[0])} ${(E=h.value.textInputOptions)==null?void 0:E.rangeSeparator} ${r.value[1]?P(r.value[1]):""}`},K=()=>{var E;return n.value&&r.value?Array.isArray(r.value)?X():jr(r.value,(E=h.value.textInputOptions)==null?void 0:E.format):s(r.value)},j=()=>{var E;return r.value?t.multiDates?r.value.map(P=>s(P)).join("; "):t.textInput&&typeof((E=h.value.textInputOptions)==null?void 0:E.format)=="string"?K():s(r.value):""},U=()=>{!t.format||typeof t.format=="string"||t.textInput&&typeof t.textInputOptions.format=="string"?m.value=j():m.value=t.format(r.value)},S=E=>{if(t.utc){const P=new Date(E);return t.utc==="preserve"?new Date(P.getTime()+P.getTimezoneOffset()*6e4):P}return t.modelType?t.modelType==="date"||t.modelType==="timestamp"?i(new Date(E)):t.modelType==="format"&&(typeof t.format=="string"||!t.format)?hl(E,l(),new Date):i(hl(E,t.modelType,new Date)):i(new Date(E))},H=E=>E?t.utc?WS(E,t.utc==="preserve",t.enableSeconds):t.modelType?t.modelType==="timestamp"?+o(E):t.modelType==="format"&&(typeof t.format=="string"||!t.format)?s(o(E)):s(o(E),t.modelType):o(E):"",Z=E=>{e("update:model-value",E)},Q=E=>Array.isArray(r.value)?t.multiDates?r.value.map(P=>E(P)):[E(r.value[0]),r.value[1]?E(r.value[1]):c()]:E(Wt(r.value)),V=E=>Z(Wt(Q(E)));return{inputValue:m,internalModelValue:r,checkBeforeEmit:()=>r.value?t.range?t.partialRange?r.value.length>=1:r.value.length===2:!!r.value:!1,parseExternalModelValue:Y,formatInputValue:U,emitModelValue:()=>(U(),t.monthPicker?V(_):t.timePicker?V(k):t.yearPicker?V(ht):t.weekPicker?Z(r.value):Z(D()))}},$C=(e,t)=>{const{validateMonthYearInRange:n,validateMaxDate:r,validateMinDate:o,defaults:i}=fn(e),s=(p,h)=>{let m=p;return i.value.filters.months.includes(ct(m))?(m=h?zn(p,1):ha(p,1),s(m,h)):m},l=(p,h)=>{let m=p;return i.value.filters.years.includes(ht(m))?(m=h?Mp(p,1):Qk(p,1),l(m,h)):m},u=p=>{const h=Nt(new Date,{month:e.month,year:e.year});let m=p?zn(h,1):ha(h,1);e.disableYearSelect&&(m=ur(m,e.year));let y=ct(m),k=ht(m);i.value.filters.months.includes(y)&&(m=s(m,p),y=ct(m),k=ht(m)),i.value.filters.years.includes(k)&&(m=l(m,p),k=ht(m)),n(y,k,p,e.preventMinMaxNavigation)&&c(y,k)},c=(p,h)=>{t("update-month-year",{month:p,year:h})},f=a.computed(()=>p=>{if(!e.preventMinMaxNavigation||p&&!e.maxDate||!p&&!e.minDate)return!1;const h=Nt(new Date,{month:e.month,year:e.year}),m=p?zn(h,1):ha(h,1),y=[ct(m),ht(m)];return p?!r(...y):!o(...y)});return{handleMonthYearChange:u,isDisabled:f,updateMonthYear:c}};var ri=(e=>(e.center="center",e.left="left",e.right="right",e))(ri||{});const LC=(e,t,n,r)=>{const o=a.ref({top:"0",left:"0",transform:"none",opacity:"0"}),i=a.ref(!1),s=a.toRef(r,"teleportCenter"),l=a.computed(()=>i.value?"-100%":"0"),u=()=>{c(),o.value.opacity="0"};a.watch(s,()=>{T()}),a.onMounted(()=>{c()});const c=()=>{const D=wt(t);if(D){const{top:$,left:Y,width:X,height:K}=y(D);o.value.top=`${$+K/2}px`,m(Y,X,50)}},f=D=>{if(r.teleport){const $=D.getBoundingClientRect();return{left:$.left+window.scrollX,top:$.top+window.scrollY}}return{top:0,left:0}},p=(D,$)=>{o.value.left=`${D+$}px`,o.value.transform=`translate(-100%, ${l.value})`},h=D=>{o.value.left=`${D}px`,o.value.transform=`translate(0, ${l.value})`},m=(D,$,Y)=>{r.position===ri.left&&h(D),r.position===ri.right&&p(D,$),r.position===ri.center&&(o.value.left=`${D+$/2}px`,o.value.transform=Y?`translate(-50%, -${Y}%)`:`translate(-50%, ${l.value})`)},y=D=>{const{width:$,height:Y}=D.getBoundingClientRect(),{top:X,left:K}=r.altPosition?r.altPosition(D):f(D);return{top:+X,left:+K,width:$,height:Y}},k=()=>{const D=wt(t);if(D){const{top:$,left:Y,width:X,height:K}=y(D),j=I();o.value.top=`${$+K/2}px`,m(Y,X,j==="top"?100:0)}},_=()=>{o.value.left="50%",o.value.top="50%",o.value.transform="translate(-50%, -50%)",o.value.position="fixed",delete o.value.opacity},w=()=>{const D=wt(t),{top:$,left:Y,transform:X}=r.altPosition(D);o.value={top:`${$}px`,left:`${Y}px`,transform:X||""}},T=(D=!0)=>{if(!r.inline)return s.value?_():r.altPosition!==null?w():(D&&n("recalculate-position"),q())},N=({inputEl:D,menuEl:$,left:Y,width:X})=>{window.screen.width>768&&m(Y,X),C(D,$)},b=(D,$)=>{const{top:Y,left:X,height:K,width:j}=y(D);o.value.top=`${K+Y+ +r.offset}px`,i.value=!1,N({inputEl:D,menuEl:$,left:X,width:j})},B=(D,$)=>{const{top:Y,left:X,width:K}=y(D);o.value.top=`${Y-+r.offset}px`,i.value=!0,N({inputEl:D,menuEl:$,left:X,width:K})},C=(D,$)=>{if(r.autoPosition){const{left:Y,width:X}=y(D),{left:K,right:j}=$.getBoundingClientRect();return K<=0?h(Y):j>=document.documentElement.clientWidth?p(Y,X):m(Y,X)}},I=()=>{const D=wt(e),$=wt(t);if(D&&$){const{height:Y}=D.getBoundingClientRect(),{top:X,height:K}=$.getBoundingClientRect(),j=window.innerHeight-X-K,U=X;return Y<=j?"bottom":Y>j&&Y<=U?"top":j>=U?"bottom":"top"}return"bottom"},F=(D,$)=>I()==="bottom"?b(D,$):B(D,$),q=()=>{const D=wt(t),$=wt(e);if(D&&$)return r.autoPosition?F(D,$):b(D,$)},W=function(D){if(D){const $=D.scrollHeight>D.clientHeight,Y=window.getComputedStyle(D).overflowY.indexOf("hidden")!==-1;return $&&!Y}return!0},M=function(D){return!D||D===document.body||D.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:W(D)?D:M(D.parentNode)};return{openOnTop:i,menuStyle:o,resetPosition:u,setMenuPosition:T,setInitialPosition:k,getScrollableParent:M}},na=[{name:"clock-icon",use:["time","calendar"]},{name:"arrow-left",use:["month-year","calendar"]},{name:"arrow-right",use:["month-year","calendar"]},{name:"arrow-up",use:["time","calendar","month-year"]},{name:"arrow-down",use:["time","calendar","month-year"]},{name:"calendar-icon",use:["month-year","time","calendar"]},{name:"day",use:["calendar"]},{name:"month-overlay-value",use:["calendar","month-year"]},{name:"year-overlay-value",use:["calendar","month-year"]},{name:"year-overlay",use:["month-year"]},{name:"month-overlay",use:["month-year"]},{name:"month-overlay-header",use:["month-year"]},{name:"year-overlay-header",use:["month-year"]},{name:"hours-overlay-value",use:["calendar","time"]},{name:"minutes-overlay-value",use:["calendar","time"]},{name:"seconds-overlay-value",use:["calendar","time"]},{name:"hours",use:["calendar","time"]},{name:"minutes",use:["calendar","time"]},{name:"month",use:["calendar","month-year"]},{name:"year",use:["calendar","month-year"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar"]},{name:"marker-tooltip",use:["calendar"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time"]},{name:"am-pm-button",use:["calendar","time"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year"]},{name:"time-picker",use:["menu"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar"]}],VC=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],FC={all:()=>na,monthYear:()=>na.filter(e=>e.use.includes("month-year")),input:()=>VC,timePicker:()=>na.filter(e=>e.use.includes("time")),action:()=>na.filter(e=>e.use.includes("action")),calendar:()=>na.filter(e=>e.use.includes("calendar")),menu:()=>na.filter(e=>e.use.includes("menu"))},Fr=(e,t,n)=>{const r=[];return FC[t]().forEach(o=>{e[o.name]&&r.push(o.name)}),n&&n.length&&n.forEach(o=>{o.slot&&r.push(o.slot)}),r},zi=e=>({transitionName:a.computed(()=>t=>e&&typeof e!="boolean"?t?e.open:e.close:""),showTransition:!!e}),xr={multiCalendars:{type:[Boolean,Number,String],default:null},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},closeOnScroll:{type:Boolean,default:!1},autoPosition:{type:Boolean,default:!0},closeOnAutoApply:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:String,default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},menuClassName:{type:String,default:null},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},multiCalendarsSolo:{type:Boolean,default:!1},calendarCellClassName:{type:String,default:null},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},showNowButton:{type:Boolean,default:!1},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},modeHeight:{type:[Number,String],default:255},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetRanges:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},minRange:{type:[Number,String],default:null},maxRange:{type:[Number,String],default:null},multiDatesLimit:{type:[Number,String],default:null},reverseYears:{type:Boolean,default:!1},keepActionRow:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},multiStatic:{type:Boolean,default:!0},disableTimeRangeValidation:{type:Boolean,default:!1},highlight:{type:[Array,Function],default:null},highlightWeekDays:{type:Array,default:null},highlightDisabledDays:{type:Boolean,default:!1},teleport:{type:[String,Boolean],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function],default:null},calendarClassName:{type:String,default:null},noSwipe:{type:Boolean,default:!1},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:Boolean,default:!1},partialRange:{type:Boolean,default:!0},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},inputClassName:{type:String,default:null},inlineWithInput:{type:Boolean,default:!1},textInputOptions:{type:Object,default:()=>null},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:Boolean,default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},onClickOutside:{type:Function,default:null},noDisabledRange:{type:Boolean,default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},allowPreventDefault:{type:Boolean,default:!1},closeOnClearValue:{type:Boolean,default:!0},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:Function,default:void 0},showLastInRange:{type:Boolean,default:!0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},autoApplyMonth:{type:Boolean,default:!0}},HC={key:1,class:"dp__input_wrap"},UC=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","onKeydown"],zC={key:2,class:"dp__clear_icon"},jC=a.defineComponent({__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...xr},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur"],setup(e,{expose:t,emit:n}){const r=e,{getDefaultPattern:o,isValidDate:i,defaults:s,getDefaultStartTime:l,assignDefaultTime:u}=fn(r),c=a.ref(),f=a.ref(null),p=a.ref(!1),h=a.ref(!1),m=a.computed(()=>({dp__pointer:!r.disabled&&!r.readonly&&!r.textInput,dp__disabled:r.disabled,dp__input_readonly:!r.textInput,dp__input:!0,dp__input_icon_pad:!r.hideInputIcon,dp__input_valid:r.state,dp__input_invalid:r.state===!1,dp__input_focus:p.value||r.isMenuOpen,dp__input_reg:!r.textInput,[r.inputClassName]:!!r.inputClassName})),y=()=>{n("set-input-date",null),r.autoApply&&(n("set-empty-date"),c.value=null)},k=M=>{var D;const $=l();return jS(M,((D=s.value.textInputOptions)==null?void 0:D.format)||o(),$||u({}),r.inputValue,h.value)},_=M=>{const{rangeSeparator:D}=s.value.textInputOptions,[$,Y]=M.split(`${D}`);if($){const X=k($.trim()),K=Y?k(Y.trim()):null,j=X&&K?[X,K]:[X];c.value=X?j:null}},w=()=>{h.value=!0},T=M=>{if(r.range)_(M);else if(r.multiDates){const D=M.split(";");c.value=D.map($=>k($.trim())).filter($=>$)}else c.value=k(M)},N=M=>{var D,$;const Y=typeof M=="string"?M:(D=M.target)==null?void 0:D.value;Y!==""?(($=s.value.textInputOptions)!=null&&$.openMenu&&!r.isMenuOpen&&n("open"),T(Y),n("set-input-date",c.value)):y(),h.value=!1,n("update:input-value",Y)},b=M=>{var D,$;r.textInput?(T(M.target.value),(D=s.value.textInputOptions)!=null&&D.enterSubmit&&i(c.value)&&r.inputValue!==""?(n("set-input-date",c.value,!0),c.value=null):($=s.value.textInputOptions)!=null&&$.enterSubmit&&r.inputValue===""&&(c.value=null,n("clear"))):I(M)},B=M=>{var D,$,Y;r.textInput&&(D=s.value.textInputOptions)!=null&&D.tabSubmit&&T(M.target.value),($=s.value.textInputOptions)!=null&&$.tabSubmit&&i(c.value)&&r.inputValue!==""?(n("set-input-date",c.value,!0),c.value=null):(Y=s.value.textInputOptions)!=null&&Y.tabSubmit&&r.inputValue===""&&(c.value=null,n("clear"))},C=()=>{p.value=!0,n("focus")},I=M=>{var D;M.preventDefault(),M.stopImmediatePropagation(),M.stopPropagation(),r.textInput&&(D=s.value.textInputOptions)!=null&&D.openMenu&&!r.inlineWithInput?(n("toggle"),s.value.textInputOptions.enterSubmit&&n("select-date")):r.textInput||n("toggle")},F=()=>{n("real-blur"),p.value=!1,(!r.isMenuOpen||r.inline&&r.inlineWithInput)&&n("blur"),r.autoApply&&r.textInput&&c.value&&!r.isMenuOpen&&(n("set-input-date",c.value),n("select-date"),c.value=null)},q=()=>{n("clear")},W=M=>{if(!r.textInput){if(M.code==="Tab")return;M.preventDefault()}};return t({focusInput:()=>{var M;(M=f.value)==null||M.focus({preventScroll:!0})},setParsedDate:M=>{c.value=M}}),(M,D)=>{var $;return a.openBlock(),a.createElementBlock("div",{onClick:I},[M.$slots.trigger&&!M.$slots["dp-input"]&&!M.inline?a.renderSlot(M.$slots,"trigger",{key:0}):a.createCommentVNode("",!0),!M.$slots.trigger&&(!M.inline||M.inlineWithInput)?(a.openBlock(),a.createElementBlock("div",HC,[M.$slots["dp-input"]&&!M.$slots.trigger&&!M.inline?a.renderSlot(M.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:N,onEnter:b,onTab:B,onClear:q,onBlur:F,onKeypress:W,onPaste:w}):a.createCommentVNode("",!0),M.$slots["dp-input"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("input",{key:1,ref_key:"inputRef",ref:f,id:M.uid?`dp-input-${M.uid}`:void 0,name:M.name,class:a.normalizeClass(m.value),inputmode:M.textInput?"text":"none",placeholder:M.placeholder,disabled:M.disabled,readonly:M.readonly,required:M.required,value:e.inputValue,autocomplete:M.autocomplete,"aria-label":($=a.unref(s).ariaLabels)==null?void 0:$.input,onInput:N,onKeydown:[a.withKeys(b,["enter"]),a.withKeys(B,["tab"]),W],onBlur:F,onFocus:C,onKeypress:W,onPaste:w},null,42,UC)),a.createElementVNode("div",{onClick:D[2]||(D[2]=Y=>n("toggle"))},[M.$slots["input-icon"]&&!M.hideInputIcon?(a.openBlock(),a.createElementBlock("span",{key:0,class:"dp__input_icon",onClick:D[0]||(D[0]=Y=>n("toggle"))},[a.renderSlot(M.$slots,"input-icon")])):a.createCommentVNode("",!0),!M.$slots["input-icon"]&&!M.hideInputIcon&&!M.$slots["dp-input"]?(a.openBlock(),a.createBlock(a.unref(Ui),{key:1,onClick:D[1]||(D[1]=Y=>n("toggle")),class:"dp__input_icon dp__input_icons"})):a.createCommentVNode("",!0)]),M.$slots["clear-icon"]&&e.inputValue&&M.clearable&&!M.disabled&&!M.readonly?(a.openBlock(),a.createElementBlock("span",zC,[a.renderSlot(M.$slots,"clear-icon",{clear:q})])):a.createCommentVNode("",!0),M.clearable&&!M.$slots["clear-icon"]&&e.inputValue&&!M.disabled&&!M.readonly?(a.openBlock(),a.createBlock(a.unref(zS),{key:3,class:"dp__clear_icon dp__input_icons",onClick:a.withModifiers(q,["stop","prevent"])},null,8,["onClick"])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])}}}),WC=["title"],qC={class:"dp__action_buttons"},YC=["onKeydown","disabled"],GC=a.defineComponent({__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},calendarWidth:{type:Number,default:0},...xr},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const n=e,{formatDate:r,isValidTime:o,defaults:i}=fn(n),{buildMatrix:s}=Er(),l=a.ref(null),u=a.ref(null);a.onMounted(()=>{n.arrowNavigation&&s([wt(l),wt(u)],"actionRow")});const c=a.computed(()=>n.range&&!n.partialRange&&n.internalModelValue?n.internalModelValue.length===2:!0),f=a.computed(()=>!p.value||!h.value||!c.value),p=a.computed(()=>!n.enableTimePicker||n.ignoreTimeValidation?!0:o(n.internalModelValue)),h=a.computed(()=>n.monthPicker?n.range&&Array.isArray(n.internalModelValue)?!n.internalModelValue.filter(B=>!N(B)).length:N(n.internalModelValue):!0),m=()=>{const B=i.value.previewFormat;return n.timePicker||n.monthPicker,B(Wt(n.internalModelValue))},y=()=>{const B=n.internalModelValue;return i.value.multiCalendars>0?`${k(B[0])} - ${k(B[1])}`:[k(B[0]),k(B[1])]},k=B=>r(B,i.value.previewFormat),_=a.computed(()=>!n.internalModelValue||!n.menuMount?"":typeof i.value.previewFormat=="string"?Array.isArray(n.internalModelValue)?n.internalModelValue.length===2&&n.internalModelValue[1]?y():n.multiDates?n.internalModelValue.map(B=>`${k(B)}`):n.modelAuto?`${k(n.internalModelValue[0])}`:`${k(n.internalModelValue[0])} -`:k(n.internalModelValue):m()),w=()=>n.multiDates?"; ":" - ",T=a.computed(()=>Array.isArray(_.value)?_.value.join(w()):_.value),N=B=>{if(!n.monthPicker)return!0;let C=!0;const I=ae(Ya(B));if(n.minDate&&n.maxDate){const F=ae(Ya(n.minDate)),q=ae(Ya(n.maxDate));return nn(I,F)&&qt(I,q)||ot(I,F)||ot(I,q)}if(n.minDate){const F=ae(Ya(n.minDate));C=nn(I,F)||ot(I,F)}if(n.maxDate){const F=ae(Ya(n.maxDate));C=qt(I,F)||ot(I,F)}return C},b=()=>{p.value&&h.value&&c.value?t("select-date"):t("invalid-select")};return(B,C)=>(a.openBlock(),a.createElementBlock("div",{class:"dp__action_row",style:a.normalizeStyle(e.calendarWidth?{width:`${e.calendarWidth}px`}:{})},[B.$slots["action-row"]?a.renderSlot(B.$slots,"action-row",a.normalizeProps(a.mergeProps({key:0},{internalModelValue:e.internalModelValue,disabled:f.value,selectDate:()=>B.$emit("select-date"),closePicker:()=>B.$emit("close-picker")}))):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.unref(i).actionRow.showPreview?(a.openBlock(),a.createElementBlock("div",{key:0,class:"dp__selection_preview",title:T.value},[B.$slots["action-preview"]?a.renderSlot(B.$slots,"action-preview",{key:0,value:e.internalModelValue}):a.createCommentVNode("",!0),B.$slots["action-preview"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(T.value),1)],64))],8,WC)):a.createCommentVNode("",!0),a.createElementVNode("div",qC,[B.$slots["action-buttons"]?a.renderSlot(B.$slots,"action-buttons",{key:0,value:e.internalModelValue}):a.createCommentVNode("",!0),B.$slots["action-buttons"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[!B.inline&&a.unref(i).actionRow.showCancel?(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",ref_key:"cancelButtonRef",ref:l,class:"dp__action_button dp__action_cancel",onClick:C[0]||(C[0]=I=>B.$emit("close-picker")),onKeydown:[C[1]||(C[1]=a.withKeys(I=>B.$emit("close-picker"),["enter"])),C[2]||(C[2]=a.withKeys(I=>B.$emit("close-picker"),["space"]))]},a.toDisplayString(B.cancelText),545)):a.createCommentVNode("",!0),B.showNowButton||a.unref(i).actionRow.showNow?(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",ref_key:"cancelButtonRef",ref:l,class:"dp__action_button dp__action_cancel",onClick:C[3]||(C[3]=I=>B.$emit("select-now")),onKeydown:[C[4]||(C[4]=a.withKeys(I=>B.$emit("select-now"),["enter"])),C[5]||(C[5]=a.withKeys(I=>B.$emit("select-now"),["space"]))]},a.toDisplayString(B.nowButtonLabel),545)):a.createCommentVNode("",!0),a.unref(i).actionRow.showSelect?(a.openBlock(),a.createElementBlock("button",{key:2,type:"button",class:"dp__action_button dp__action_select",onKeydown:[a.withKeys(b,["enter"]),a.withKeys(b,["space"])],onClick:b,disabled:f.value,ref_key:"selectButtonRef",ref:u},a.toDisplayString(B.selectText),41,YC)):a.createCommentVNode("",!0)],64))])],64))],4))}}),KC=["aria-label"],XC={class:"dp__calendar_header",role:"row"},JC={key:0,class:"dp__calendar_header_item",role:"gridcell"},QC=a.createElementVNode("div",{class:"dp__calendar_header_separator"},null,-1),ZC=["aria-label"],eT={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},tT={class:"dp__cell_inner"},nT=["aria-selected","aria-disabled","aria-label","onClick","onKeydown","onMouseenter","onMouseleave"],rT=a.defineComponent({__name:"Calendar",props:{mappedDates:{type:Array,default:()=>[]},getWeekNum:{type:Function,default:()=>""},specificMode:{type:Boolean,default:!1},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...xr},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:t,emit:n}){const r=e,{buildMultiLevelMatrix:o}=Er(),{setDateMonthOrYear:i,defaults:s}=fn(r),l=a.ref(null),u=a.ref({bottom:"",left:"",transform:""}),c=a.ref([]),f=a.ref(null),p=a.ref(!0),h=a.ref(""),m=a.ref({startX:0,endX:0,startY:0,endY:0}),y=a.ref([]),k=a.ref({left:"50%"}),_=a.computed(()=>r.calendar?r.calendar(r.mappedDates):r.mappedDates),w=a.computed(()=>r.dayNames?Array.isArray(r.dayNames)?r.dayNames:r.dayNames(r.locale,+r.weekStart):wC(r.formatLocale,r.locale,+r.weekStart));a.onMounted(()=>{n("mount",{cmp:"calendar",refs:c}),r.noSwipe||f.value&&(f.value.addEventListener("touchstart",D,{passive:!1}),f.value.addEventListener("touchend",$,{passive:!1}),f.value.addEventListener("touchmove",Y,{passive:!1})),r.monthChangeOnScroll&&f.value&&f.value.addEventListener("wheel",j,{passive:!1})});const T=U=>U?r.vertical?"vNext":"next":r.vertical?"vPrevious":"previous",N=(U,S)=>{if(r.transitions){const H=yn(i(ae(),r.month,r.year));h.value=nn(yn(i(ae(),U,S)),H)?s.value.transitions[T(!0)]:s.value.transitions[T(!1)],p.value=!1,a.nextTick(()=>{p.value=!0})}},b=a.computed(()=>({[r.calendarClassName]:!!r.calendarClassName})),B=a.computed(()=>U=>{const S=TC(U);return{dp__marker_dot:S.type==="dot",dp__marker_line:S.type==="line"}}),C=a.computed(()=>U=>ot(U,l.value)),I=a.computed(()=>({dp__calendar:!0,dp__calendar_next:s.value.multiCalendars>0&&r.instance!==0})),F=a.computed(()=>U=>r.hideOffsetDates?U.current:!0),q=a.computed(()=>r.specificMode?{height:`${r.modeHeight}px`}:void 0),W=async(U,S,H)=>{var Z,Q;if(n("set-hover-date",U),(Q=(Z=U.marker)==null?void 0:Z.tooltip)!=null&&Q.length){const V=wt(c.value[S][H]);if(V){const{width:E,height:P}=V.getBoundingClientRect();l.value=U.value;let R={left:`${E/2}px`},G=-50;if(await a.nextTick(),y.value[0]){const{left:ie,width:oe}=y.value[0].getBoundingClientRect();ie<0&&(R={left:"0"},G=0,k.value.left=`${E/2}px`),window.innerWidth<ie+oe&&(R={right:"0"},G=0,k.value.left=`${oe-E/2}px`)}u.value={bottom:`${P}px`,...R,transform:`translateX(${G}%)`},n("tooltip-open",U.marker)}}},M=U=>{l.value&&(l.value=null,u.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),n("tooltip-close",U.marker))},D=U=>{m.value.startX=U.changedTouches[0].screenX,m.value.startY=U.changedTouches[0].screenY},$=U=>{m.value.endX=U.changedTouches[0].screenX,m.value.endY=U.changedTouches[0].screenY,X()},Y=U=>{r.vertical&&!r.inline&&U.preventDefault()},X=()=>{const U=r.vertical?"Y":"X";Math.abs(m.value[`start${U}`]-m.value[`end${U}`])>10&&n("handle-swipe",m.value[`start${U}`]>m.value[`end${U}`]?"right":"left")},K=(U,S,H)=>{U&&(Array.isArray(c.value[S])?c.value[S][H]=U:c.value[S]=[U]),r.arrowNavigation&&o(c.value,"calendar")},j=U=>{r.monthChangeOnScroll&&(U.preventDefault(),n("handle-scroll",U))};return t({triggerTransition:N}),(U,S)=>{var H;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(I.value)},[a.createElementVNode("div",{style:a.normalizeStyle(q.value),ref_key:"calendarWrapRef",ref:f,role:"grid",class:a.normalizeClass(b.value),"aria-label":(H=a.unref(s).ariaLabels)==null?void 0:H.calendarWrap},[e.specificMode?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("div",XC,[U.weekNumbers?(a.openBlock(),a.createElementBlock("div",JC,a.toDisplayString(U.weekNumName),1)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(w.value,(Z,Q)=>(a.openBlock(),a.createElementBlock("div",{class:"dp__calendar_header_item",role:"gridcell",key:Q},[U.$slots["calendar-header"]?a.renderSlot(U.$slots,"calendar-header",{key:0,day:Z,index:Q}):a.createCommentVNode("",!0),U.$slots["calendar-header"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(Z),1)],64))]))),128))]),QC,a.createVNode(a.Transition,{name:h.value,css:!!U.transitions},{default:a.withCtx(()=>{var Z;return[p.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:"dp__calendar",role:"grid","aria-label":(Z=a.unref(s).ariaLabels)==null?void 0:Z.calendarDays},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(_.value,(Q,V)=>(a.openBlock(),a.createElementBlock("div",{class:"dp__calendar_row",role:"row",key:V},[U.weekNumbers?(a.openBlock(),a.createElementBlock("div",eT,[a.createElementVNode("div",tT,a.toDisplayString(e.getWeekNum(Q.days)),1)])):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Q.days,(E,P)=>{var R,G,ie;return a.openBlock(),a.createElementBlock("div",{role:"gridcell",class:"dp__calendar_item",ref_for:!0,ref:oe=>K(oe,V,P),key:P+V,"aria-selected":E.classData.dp__active_date||E.classData.dp__range_start||E.classData.dp__range_start,"aria-disabled":E.classData.dp__cell_disabled,"aria-label":(G=(R=a.unref(s).ariaLabels)==null?void 0:R.day)==null?void 0:G.call(R,E),tabindex:"0",onClick:a.withModifiers(oe=>U.$emit("select-date",E),["stop","prevent"]),onKeydown:[a.withKeys(oe=>U.$emit("select-date",E),["enter"]),a.withKeys(oe=>U.$emit("handle-space",E),["space"])],onMouseenter:oe=>W(E,V,P),onMouseleave:oe=>M(E)},[a.createElementVNode("div",{class:a.normalizeClass(["dp__cell_inner",E.classData])},[U.$slots.day&&F.value(E)?a.renderSlot(U.$slots,"day",{key:0,day:+E.text,date:E.value}):a.createCommentVNode("",!0),U.$slots.day?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(E.text),1)],64)),E.marker&&F.value(E)?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[U.$slots.marker?a.renderSlot(U.$slots,"marker",{key:0,marker:E.marker,day:+E.text,date:E.value}):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(B.value(E.marker)),style:a.normalizeStyle(E.marker.color?{backgroundColor:E.marker.color}:{})},null,6))],64)):a.createCommentVNode("",!0),C.value(E.value)?(a.openBlock(),a.createElementBlock("div",{key:3,class:"dp__marker_tooltip",ref_for:!0,ref_key:"activeTooltip",ref:y,style:a.normalizeStyle(u.value)},[(ie=E.marker)!=null&&ie.tooltip?(a.openBlock(),a.createElementBlock("div",{key:0,class:"dp__tooltip_content",onClick:S[0]||(S[0]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.marker.tooltip,(oe,Ie)=>(a.openBlock(),a.createElementBlock("div",{key:Ie,class:"dp__tooltip_text"},[U.$slots["marker-tooltip"]?a.renderSlot(U.$slots,"marker-tooltip",{key:0,tooltip:oe,day:E.value}):a.createCommentVNode("",!0),U.$slots["marker-tooltip"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",{class:"dp__tooltip_mark",style:a.normalizeStyle(oe.color?{backgroundColor:oe.color}:{})},null,4),a.createElementVNode("div",null,a.toDisplayString(oe.text),1)],64))]))),128)),a.createElementVNode("div",{class:"dp__arrow_bottom_tp",style:a.normalizeStyle(k.value)},null,4)])):a.createCommentVNode("",!0)],4)):a.createCommentVNode("",!0)],2)],40,nT)}),128))]))),128))],8,ZC)):a.createCommentVNode("",!0)]}),_:3},8,["name","css"])],64))],14,KC)],2)}}}),aT=["aria-label","aria-disabled"],js=a.defineComponent({__name:"ActionIcon",props:{ariaLabel:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const n=a.ref(null);return a.onMounted(()=>t("set-ref",n)),(r,o)=>(a.openBlock(),a.createElementBlock("button",{type:"button",class:"dp__btn dp__month_year_col_nav",onClick:o[0]||(o[0]=i=>r.$emit("activate")),onKeydown:[o[1]||(o[1]=a.withKeys(a.withModifiers(i=>r.$emit("activate"),["prevent"]),["enter"])),o[2]||(o[2]=a.withKeys(a.withModifiers(i=>r.$emit("activate"),["prevent"]),["space"]))],tabindex:"0","aria-label":r.ariaLabel,"aria-disabled":r.disabled,ref_key:"elRef",ref:n},[a.createElementVNode("span",{class:a.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:r.disabled}])},[a.renderSlot(r.$slots,"default")],2)],40,aT))}}),oT=["onKeydown"],iT={class:"dp__selection_grid_header"},sT=["aria-selected","aria-disabled","onClick","onKeydown","onMouseover"],lT=["aria-label","onKeydown"],to=a.defineComponent({__name:"SelectionGrid",props:{items:{type:Array,default:()=>[]},modelValue:{type:[String,Number],default:null},multiModelValue:{type:Array,default:()=>[]},disabledValues:{type:Array,default:()=>[]},minValue:{type:[Number,String],default:null},maxValue:{type:[Number,String],default:null},year:{type:Number,default:0},skipActive:{type:Boolean,default:!1},headerRefs:{type:Array,default:()=>[]},skipButtonRef:{type:Boolean,default:!1},monthPicker:{type:Boolean,default:!1},yearPicker:{type:Boolean,default:!1},escClose:{type:Boolean,default:!0},type:{type:String,default:null},arrowNavigation:{type:Boolean,default:!1},autoApply:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},ariaLabels:{type:Object,default:()=>({})},hideNavigation:{type:Array,default:()=>[]},internalModelValue:{type:[Date,Array],default:null},autoApplyMonth:{type:Boolean,default:!1}},emits:["update:model-value","selected","toggle","reset-flow"],setup(e,{expose:t,emit:n}){const r=e,{setSelectionGrid:o,buildMultiLevelMatrix:i,setMonthPicker:s}=Er(),{hideNavigationButtons:l}=fn(r),u=a.ref(!1),c=a.ref(null),f=a.ref(null),p=a.ref([]),h=a.ref(),m=a.ref(null),y=a.ref(0),k=a.ref(null);a.onBeforeUpdate(()=>{c.value=null}),a.onMounted(()=>{var j;a.nextTick().then(()=>q()),w(),_(!0),(j=c.value)==null||j.focus({preventScroll:!0})}),a.onUnmounted(()=>_(!1));const _=j=>{var U;r.arrowNavigation&&((U=r.headerRefs)!=null&&U.length?s(j):o(j))},w=()=>{const j=wt(f);j&&(r.textInput||j.focus({preventScroll:!0}),u.value=j.clientHeight<j.scrollHeight)},T=a.computed(()=>({dp__overlay:!0})),N=a.computed(()=>({dp__overlay_col:!0})),b=j=>r.monthPicker&&!r.autoApplyMonth?ot(r.internalModelValue,ur(la(new Date,j.value),r.year)):r.skipActive?!1:j.value===r.modelValue,B=a.computed(()=>r.items.map(j=>j.filter(U=>U).map(U=>{var S,H,Z;const Q=r.disabledValues.some(E=>E===U.value)||F(U.value),V=(S=r.multiModelValue)!=null&&S.length?(H=r.multiModelValue)==null?void 0:H.some(E=>ot(E,ur(r.monthPicker?la(new Date,U.value):new Date,r.monthPicker?r.year:U.value))):b(U);return{...U,className:{dp__overlay_cell_active:V,dp__overlay_cell:!V,dp__overlay_cell_disabled:Q,dp__overlay_cell_active_disabled:Q&&V,dp__overlay_cell_pad:!0,dp__cell_in_between:(Z=r.multiModelValue)!=null&&Z.length&&r.skipActive?M(U.value):!1}}}))),C=a.computed(()=>({dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:u.value,dp__button_bottom:r.autoApply})),I=a.computed(()=>{var j,U;return{dp__overlay_container:!0,dp__container_flex:((j=r.items)==null?void 0:j.length)<=6,dp__container_block:((U=r.items)==null?void 0:U.length)>6}}),F=j=>{const U=r.maxValue||r.maxValue===0,S=r.minValue||r.minValue===0;return!U&&!S?!1:U&&S?+j>+r.maxValue||+j<+r.minValue:U?+j>+r.maxValue:S?+j<+r.minValue:!1},q=()=>{const j=wt(c),U=wt(f),S=wt(m),H=wt(k),Z=S?S.getBoundingClientRect().height:0;U&&(y.value=U.getBoundingClientRect().height-Z),j&&H&&(H.scrollTop=j.offsetTop-H.offsetTop-(y.value/2-j.getBoundingClientRect().height)-Z)},W=j=>{!r.disabledValues.some(U=>U===j)&&!F(j)&&(n("update:model-value",j),n("selected"))},M=j=>{const U=r.monthPicker?r.year:j;return nh(r.multiModelValue,ur(r.monthPicker?la(new Date,h.value||0):new Date,r.monthPicker?U:h.value||U),ur(r.monthPicker?la(new Date,j):new Date,U))},D=()=>{n("toggle"),n("reset-flow")},$=()=>{r.escClose&&D()},Y=(j,U,S,H)=>{j&&(U.value===+r.modelValue&&!r.disabledValues.includes(U.value)&&(c.value=j),r.arrowNavigation&&(Array.isArray(p.value[S])?p.value[S][H]=j:p.value[S]=[j],X()))},X=()=>{var j,U;const S=(j=r.headerRefs)!=null&&j.length?[r.headerRefs].concat(p.value):p.value.concat([r.skipButtonRef?[]:[m.value]]);i(Wt(S),(U=r.headerRefs)!=null&&U.length?"monthPicker":"selectionGrid")},K=j=>{r.arrowNavigation||j.stopImmediatePropagation()};return t({focusGrid:w}),(j,U)=>{var S;return a.openBlock(),a.createElementBlock("div",{ref_key:"gridWrapRef",ref:f,class:a.normalizeClass(T.value),role:"dialog",tabindex:"0",onKeydown:[a.withKeys($,["esc"]),U[0]||(U[0]=a.withKeys(H=>K(H),["left"])),U[1]||(U[1]=a.withKeys(H=>K(H),["up"])),U[2]||(U[2]=a.withKeys(H=>K(H),["down"])),U[3]||(U[3]=a.withKeys(H=>K(H),["right"]))]},[a.createElementVNode("div",{class:a.normalizeClass(I.value),ref_key:"containerRef",ref:k,role:"grid",style:a.normalizeStyle({height:`${y.value}px`})},[a.createElementVNode("div",iT,[a.renderSlot(j.$slots,"header")]),j.$slots.overlay?a.renderSlot(j.$slots,"overlay",{key:0}):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(B.value,(H,Z)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["dp__overlay_row",{dp__flex_row:B.value.length>=3}]),key:Z,role:"row"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(H,(Q,V)=>(a.openBlock(),a.createElementBlock("div",{role:"gridcell",class:a.normalizeClass(N.value),key:Q.value,"aria-selected":Q.value===e.modelValue&&!e.disabledValues.includes(Q.value),"aria-disabled":Q.className.dp__overlay_cell_disabled,ref_for:!0,ref:E=>Y(E,Q,Z,V),tabindex:"0",onClick:E=>W(Q.value),onKeydown:[a.withKeys(E=>W(Q.value),["enter"]),a.withKeys(E=>W(Q.value),["space"])],onMouseover:E=>h.value=Q.value},[a.createElementVNode("div",{class:a.normalizeClass(Q.className)},[j.$slots.item?a.renderSlot(j.$slots,"item",{key:0,item:Q}):a.createCommentVNode("",!0),j.$slots.item?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(Q.text),1)],64))],2)],42,sT))),128))],2))),128))],6),j.$slots["button-icon"]?a.withDirectives((a.openBlock(),a.createElementBlock("div",{key:0,role:"button","aria-label":(S=e.ariaLabels)==null?void 0:S.toggleOverlay,class:a.normalizeClass(C.value),tabindex:"0",ref_key:"toggleButton",ref:m,onClick:D,onKeydown:[a.withKeys(D,["enter"]),a.withKeys(D,["tab"])]},[a.renderSlot(j.$slots,"button-icon")],42,lT)),[[a.vShow,!a.unref(l)(e.type)]]):a.createCommentVNode("",!0)],42,oT)}}}),uT=["aria-label"],wd=a.defineComponent({__name:"RegularPicker",props:{ariaLabel:{type:String,default:""},showSelectionGrid:{type:Boolean,default:!1},modelValue:{type:Number,default:null},items:{type:Array,default:()=>[]},disabledValues:{type:Array,default:()=>[]},minValue:{type:Number,default:null},maxValue:{type:Number,default:null},slotName:{type:String,default:""},overlaySlot:{type:String,default:""},headerRefs:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},type:{type:String,default:null},transitions:{type:[Object,Boolean],default:!1},arrowNavigation:{type:Boolean,default:!1},autoApply:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},ariaLabels:{type:Object,default:()=>({})},hideNavigation:{type:Array,default:()=>[]}},emits:["update:model-value","toggle","set-ref"],setup(e,{emit:t}){const n=e,{transitionName:r,showTransition:o}=zi(n.transitions),i=a.ref(null);return a.onMounted(()=>t("set-ref",i)),(s,l)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("button",{type:"button",class:"dp__btn dp__month_year_select",onClick:l[0]||(l[0]=u=>s.$emit("toggle")),onKeydown:[l[1]||(l[1]=a.withKeys(a.withModifiers(u=>s.$emit("toggle"),["prevent"]),["enter"])),l[2]||(l[2]=a.withKeys(a.withModifiers(u=>s.$emit("toggle"),["prevent"]),["space"]))],"aria-label":e.ariaLabel,tabindex:"0",ref_key:"elRef",ref:i},[a.renderSlot(s.$slots,"default")],40,uT),a.createVNode(a.Transition,{name:a.unref(r)(e.showSelectionGrid),css:a.unref(o)},{default:a.withCtx(()=>[e.showSelectionGrid?(a.openBlock(),a.createBlock(to,a.mergeProps({key:0},{modelValue:e.modelValue,items:e.items,disabledValues:e.disabledValues,minValue:e.minValue,maxValue:e.maxValue,escClose:e.escClose,type:e.type,arrowNavigation:e.arrowNavigation,textInput:e.textInput,autoApply:e.autoApply,ariaLabels:e.ariaLabels,hideNavigation:e.hideNavigation},{"header-refs":[],"onUpdate:modelValue":l[3]||(l[3]=u=>s.$emit("update:model-value",u)),onToggle:l[4]||(l[4]=u=>s.$emit("toggle"))}),a.createSlots({"button-icon":a.withCtx(()=>[s.$slots["calendar-icon"]?a.renderSlot(s.$slots,"calendar-icon",{key:0}):a.createCommentVNode("",!0),s.$slots["calendar-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Ui),{key:1}))]),_:2},[s.$slots[e.slotName]?{name:"item",fn:a.withCtx(({item:u})=>[a.renderSlot(s.$slots,e.slotName,{item:u})]),key:"0"}:void 0,s.$slots[e.overlaySlot]?{name:"overlay",fn:a.withCtx(()=>[a.renderSlot(s.$slots,e.overlaySlot)]),key:"1"}:void 0,s.$slots[`${e.overlaySlot}-header`]?{name:"header",fn:a.withCtx(()=>[a.renderSlot(s.$slots,`${e.overlaySlot}-header`)]),key:"2"}:void 0]),1040)):a.createCommentVNode("",!0)]),_:3},8,["name","css"])],64))}}),cT={class:"dp__month_year_row"},dT={class:"dp__month_picker_header"},fT=["aria-label"],pT=["aria-label"],hT=["aria-label"],mT=a.defineComponent({__name:"MonthYearPicker",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},internalModelValue:{type:[Date,Array],default:null},...xr},emits:["update-month-year","month-year-select","mount","reset-flow","overlay-closed"],setup(e,{expose:t,emit:n}){const r=e,{defaults:o}=fn(r),{transitionName:i,showTransition:s}=zi(o.value.transitions),{buildMatrix:l}=Er(),{handleMonthYearChange:u,isDisabled:c,updateMonthYear:f}=$C(r,n),p=a.ref(!1),h=a.ref(!1),m=a.ref([null,null,null,null]),y=a.ref(null),k=a.ref(null),_=a.ref(null);a.onMounted(()=>{n("mount")});const w=P=>({get:()=>r[P],set:R=>{const G=P==="month"?"year":"month";n("update-month-year",{[P]:R,[G]:r[G]}),n("month-year-select",P==="year"),P==="month"?H(!0):Z(!0)}}),T=a.computed(w("month")),N=a.computed(w("year")),b=P=>{const R=ht(ae(P));return r.year===R},B=a.computed(()=>r.monthPicker?Array.isArray(r.disabledDates)?r.disabledDates.map(P=>ae(P)).filter(P=>b(P)).map(P=>ct(P)):[]:[]),C=a.computed(()=>P=>{const R=P==="month";return{showSelectionGrid:(R?p:h).value,items:(R?X:K).value,disabledValues:o.value.filters[R?"months":"years"].concat(B.value),minValue:(R?W:F).value,maxValue:(R?M:q).value,headerRefs:R&&r.monthPicker?[y.value,k.value,_.value]:[],escClose:r.escClose,transitions:o.value.transitions,ariaLabels:o.value.ariaLabels,textInput:r.textInput,autoApply:r.autoApply,arrowNavigation:r.arrowNavigation,hideNavigation:r.hideNavigation}}),I=a.computed(()=>P=>({month:r.month,year:r.year,items:P==="month"?r.months:r.years,instance:r.instance,updateMonthYear:f,toggle:P==="month"?H:Z})),F=a.computed(()=>r.minDate?ht(ae(r.minDate)):null),q=a.computed(()=>r.maxDate?ht(ae(r.maxDate)):null),W=a.computed(()=>{if(r.minDate&&F.value){if(F.value>r.year)return 12;if(F.value===r.year)return ct(ae(r.minDate))}return null}),M=a.computed(()=>r.maxDate&&q.value?q.value<r.year?-1:q.value===r.year?ct(ae(r.maxDate)):null:null),D=a.computed(()=>(r.range||r.multiDates)&&r.internalModelValue&&(r.monthPicker||r.yearPicker)?r.internalModelValue:[]),$=P=>{const R=[],G=ie=>ie;for(let ie=0;ie<P.length;ie+=3){const oe=[P[ie],P[ie+1],P[ie+2]];R.push(G(oe))}return R},Y=a.computed(()=>r.months.find(R=>R.value===r.month)||{text:"",value:0}),X=a.computed(()=>$(r.months)),K=a.computed(()=>$(r.years)),j=a.computed(()=>o.value.multiCalendars?r.multiCalendarsSolo?!0:r.instance===0:!0),U=a.computed(()=>o.value.multiCalendars?r.multiCalendarsSolo?!0:r.instance===o.value.multiCalendars-1:!0),S=(P,R)=>{R!==void 0?P.value=R:P.value=!P.value},H=(P=!1,R)=>{Q(P),S(p,R),p.value||n("overlay-closed")},Z=(P=!1,R)=>{Q(P),S(h,R),h.value||n("overlay-closed")},Q=P=>{P||n("reset-flow")},V=(P=!1)=>{c.value(P)||n("update-month-year",{year:P?r.year+1:r.year-1,month:r.month,fromNav:!0})},E=(P,R)=>{r.arrowNavigation&&(m.value[R]=wt(P),l(m.value,"monthYear"))};return t({toggleMonthPicker:H,toggleYearPicker:Z,handleMonthYearChange:u}),(P,R)=>{var G,ie,oe,Ie,Ee;return a.openBlock(),a.createElementBlock("div",cT,[P.$slots["month-year"]?a.renderSlot(P.$slots,"month-year",a.normalizeProps(a.mergeProps({key:0},{month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:a.unref(f),handleMonthYearChange:a.unref(u),instance:e.instance}))):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[!P.monthPicker&&!P.yearPicker?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[j.value&&!P.vertical?(a.openBlock(),a.createBlock(js,{key:0,"aria-label":(G=a.unref(o).ariaLabels)==null?void 0:G.prevMonth,disabled:a.unref(c)(!1),onActivate:R[0]||(R[0]=fe=>a.unref(u)(!1)),onSetRef:R[1]||(R[1]=fe=>E(fe,0))},{default:a.withCtx(()=>[P.$slots["arrow-left"]?a.renderSlot(P.$slots,"arrow-left",{key:0}):a.createCommentVNode("",!0),P.$slots["arrow-left"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(ad),{key:1}))]),_:3},8,["aria-label","disabled"])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["dp__month_year_wrap",{dp__year_disable_select:r.disableYearSelect}])},[a.createVNode(wd,a.mergeProps({type:"month","slot-name":"month-overlay-val","overlay-slot":"overlay-month","aria-label":(ie=a.unref(o).ariaLabels)==null?void 0:ie.openMonthsOverlay,modelValue:T.value,"onUpdate:modelValue":R[2]||(R[2]=fe=>T.value=fe)},C.value("month"),{onToggle:H,onSetRef:R[3]||(R[3]=fe=>E(fe,1))}),a.createSlots({default:a.withCtx(()=>[P.$slots.month?a.renderSlot(P.$slots,"month",a.normalizeProps(a.mergeProps({key:0},Y.value))):a.createCommentVNode("",!0),P.$slots.month?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(Y.value.text),1)],64))]),_:2},[P.$slots["calendar-icon"]?{name:"calendar-icon",fn:a.withCtx(()=>[a.renderSlot(P.$slots,"calendar-icon")]),key:"0"}:void 0,P.$slots["month-overlay-value"]?{name:"month-overlay-val",fn:a.withCtx(({item:fe})=>[a.renderSlot(P.$slots,"month-overlay-value",{text:fe.text,value:fe.value})]),key:"1"}:void 0,P.$slots["month-overlay"]?{name:"overlay-month",fn:a.withCtx(()=>[a.renderSlot(P.$slots,"month-overlay",a.normalizeProps(a.guardReactiveProps(I.value("month"))))]),key:"2"}:void 0,P.$slots["month-overlay-header"]?{name:"overlay-month-header",fn:a.withCtx(()=>[a.renderSlot(P.$slots,"month-overlay-header",{toggle:H})]),key:"3"}:void 0]),1040,["aria-label","modelValue"]),r.disableYearSelect?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(wd,a.mergeProps({key:0,type:"year","slot-name":"year-overlay-val","overlay-slot":"overlay-year","aria-label":(oe=a.unref(o).ariaLabels)==null?void 0:oe.openYearsOverlay,modelValue:N.value,"onUpdate:modelValue":R[4]||(R[4]=fe=>N.value=fe)},C.value("year"),{onToggle:Z,onSetRef:R[5]||(R[5]=fe=>E(fe,2))}),a.createSlots({default:a.withCtx(()=>[P.$slots.year?a.renderSlot(P.$slots,"year",{key:0,year:e.year}):a.createCommentVNode("",!0),P.$slots.year?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(e.year),1)],64))]),_:2},[P.$slots["calendar-icon"]?{name:"calendar-icon",fn:a.withCtx(()=>[a.renderSlot(P.$slots,"calendar-icon")]),key:"0"}:void 0,P.$slots["year-overlay-value"]?{name:"year-overlay-val",fn:a.withCtx(({item:fe})=>[a.renderSlot(P.$slots,"year-overlay-value",{text:fe.text,value:fe.value})]),key:"1"}:void 0,P.$slots["year-overlay"]?{name:"overlay-year",fn:a.withCtx(()=>[a.renderSlot(P.$slots,"year-overlay",a.normalizeProps(a.guardReactiveProps(I.value("year"))))]),key:"2"}:void 0,P.$slots["year-overlay-header"]?{name:"overlay-year-header",fn:a.withCtx(()=>[a.renderSlot(P.$slots,"year-overlay-header",{toggle:Z})]),key:"3"}:void 0]),1040,["aria-label","modelValue"]))],2),j.value&&P.vertical?(a.openBlock(),a.createBlock(js,{key:1,"aria-label":(Ie=a.unref(o).ariaLabels)==null?void 0:Ie.prevMonth,disabled:a.unref(c)(!1),onActivate:R[6]||(R[6]=fe=>a.unref(u)(!1))},{default:a.withCtx(()=>[P.$slots["arrow-up"]?a.renderSlot(P.$slots,"arrow-up",{key:0}):a.createCommentVNode("",!0),P.$slots["arrow-up"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(eh),{key:1}))]),_:3},8,["aria-label","disabled"])):a.createCommentVNode("",!0),U.value?(a.openBlock(),a.createBlock(js,{key:2,ref:"rightIcon",disabled:a.unref(c)(!0),"aria-label":(Ee=a.unref(o).ariaLabels)==null?void 0:Ee.nextMonth,onActivate:R[7]||(R[7]=fe=>a.unref(u)(!0)),onSetRef:R[8]||(R[8]=fe=>E(fe,3))},{default:a.withCtx(()=>[P.$slots[P.vertical?"arrow-down":"arrow-right"]?a.renderSlot(P.$slots,P.vertical?"arrow-down":"arrow-right",{key:0}):a.createCommentVNode("",!0),P.$slots[P.vertical?"arrow-down":"arrow-right"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(P.vertical?a.unref(th):a.unref(od)),{key:1}))]),_:3},8,["disabled","aria-label"])):a.createCommentVNode("",!0)],64)):a.createCommentVNode("",!0),P.monthPicker?(a.openBlock(),a.createBlock(to,a.mergeProps({key:1},C.value("month"),{"skip-active":P.range,"internal-model-value":e.internalModelValue,year:e.year,"auto-apply-month":P.autoApplyMonth,"multi-model-value":D.value,"month-picker":"",modelValue:T.value,"onUpdate:modelValue":R[17]||(R[17]=fe=>T.value=fe),onToggle:H,onSelected:R[18]||(R[18]=fe=>P.$emit("overlay-closed"))}),a.createSlots({header:a.withCtx(()=>{var fe,Be,$e;return[a.createElementVNode("div",dT,[a.createElementVNode("div",{class:"dp__month_year_col_nav",tabindex:"0",ref_key:"mpPrevIconRef",ref:y,onClick:R[9]||(R[9]=ze=>V(!1)),onKeydown:R[10]||(R[10]=a.withKeys(ze=>V(!1),["enter"]))},[a.createElementVNode("div",{class:a.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:a.unref(c)(!1)}]),role:"button","aria-label":(fe=a.unref(o).ariaLabels)==null?void 0:fe.prevMonth},[P.$slots["arrow-left"]?a.renderSlot(P.$slots,"arrow-left",{key:0}):a.createCommentVNode("",!0),P.$slots["arrow-left"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(ad),{key:1}))],10,fT)],544),a.createElementVNode("div",{class:"dp__pointer",role:"button",ref_key:"mpYearButtonRef",ref:k,"aria-label":(Be=a.unref(o).ariaLabels)==null?void 0:Be.openYearsOverlay,tabindex:"0",onClick:R[11]||(R[11]=()=>Z(!1)),onKeydown:R[12]||(R[12]=a.withKeys(()=>Z(!1),["enter"]))},[P.$slots.year?a.renderSlot(P.$slots,"year",{key:0,year:e.year}):a.createCommentVNode("",!0),P.$slots.year?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(e.year),1)],64))],40,pT),a.createElementVNode("div",{class:"dp__month_year_col_nav",tabindex:"0",ref_key:"mpNextIconRef",ref:_,onClick:R[13]||(R[13]=ze=>V(!0)),onKeydown:R[14]||(R[14]=a.withKeys(ze=>V(!0),["enter"]))},[a.createElementVNode("div",{class:a.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:a.unref(c)(!0)}]),role:"button","aria-label":($e=a.unref(o).ariaLabels)==null?void 0:$e.nextMonth},[P.$slots["arrow-right"]?a.renderSlot(P.$slots,"arrow-right",{key:0}):a.createCommentVNode("",!0),P.$slots["arrow-right"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(od),{key:1}))],10,hT)],544)]),a.createVNode(a.Transition,{name:a.unref(i)(h.value),css:a.unref(s)},{default:a.withCtx(()=>[h.value?(a.openBlock(),a.createBlock(to,a.mergeProps({key:0},C.value("year"),{modelValue:N.value,"onUpdate:modelValue":R[15]||(R[15]=ze=>N.value=ze),onToggle:Z,onSelected:R[16]||(R[16]=ze=>P.$emit("overlay-closed"))}),a.createSlots({"button-icon":a.withCtx(()=>[P.$slots["calendar-icon"]?a.renderSlot(P.$slots,"calendar-icon",{key:0}):a.createCommentVNode("",!0),P.$slots["calendar-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Ui),{key:1}))]),_:2},[P.$slots["year-overlay-value"]?{name:"item",fn:a.withCtx(({item:ze})=>[a.renderSlot(P.$slots,"year-overlay-value",{text:ze.text,value:ze.value})]),key:"0"}:void 0]),1040,["modelValue"])):a.createCommentVNode("",!0)]),_:3},8,["name","css"])]}),_:2},[P.$slots["month-overlay-value"]?{name:"item",fn:a.withCtx(({item:fe})=>[a.renderSlot(P.$slots,"month-overlay-value",{text:fe.text,value:fe.value})]),key:"0"}:void 0]),1040,["skip-active","internal-model-value","year","auto-apply-month","multi-model-value","modelValue"])):a.createCommentVNode("",!0),P.yearPicker?(a.openBlock(),a.createBlock(to,a.mergeProps({key:2},C.value("year"),{modelValue:N.value,"onUpdate:modelValue":R[19]||(R[19]=fe=>N.value=fe),"multi-model-value":D.value,"skip-active":P.range,"skip-button-ref":"","year-picker":"",onToggle:Z,onSelected:R[20]||(R[20]=fe=>P.$emit("overlay-closed"))}),a.createSlots({_:2},[P.$slots["year-overlay-value"]?{name:"item",fn:a.withCtx(({item:fe})=>[a.renderSlot(P.$slots,"year-overlay-value",{text:fe.text,value:fe.value})]),key:"0"}:void 0]),1040,["modelValue","multi-model-value","skip-active"])):a.createCommentVNode("",!0)],64))])}}}),vT={key:0,class:"dp__time_input"},gT=["aria-label","onKeydown","onClick"],yT=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),bT=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),_T=["aria-label","onKeydown","onClick"],wT=["aria-label","onKeydown","onClick"],kT=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),ST=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),CT={key:0},TT=["aria-label","onKeydown"],ET=a.defineComponent({__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},...xr},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const r=e,{setTimePickerElements:o,setTimePickerBackRef:i}=Er(),{defaults:s}=fn(r),{transitionName:l,showTransition:u}=zi(s.value.transitions),c=a.reactive({hours:!1,minutes:!1,seconds:!1}),f=a.ref("AM"),p=a.ref(null),h=a.ref([]);a.onMounted(()=>{n("mounted")});const m=S=>Nt(new Date,{hours:S.hours,minutes:S.minutes,seconds:r.enableSeconds?S.seconds:0,milliseconds:0}),y=a.computed(()=>({hours:r.hours,minutes:r.minutes,seconds:r.seconds})),k=a.computed(()=>S=>!F(+r[S]+ +r[`${S}Increment`],S)),_=a.computed(()=>S=>!F(+r[S]-+r[`${S}Increment`],S)),w=(S,H)=>Bp(Nt(ae(),S),H),T=(S,H)=>Jk(Nt(ae(),S),H),N=a.computed(()=>({dp__time_col:!0,dp__time_col_block:!r.timePickerInline,dp__time_col_reg_block:!r.enableSeconds&&r.is24&&!r.timePickerInline,dp__time_col_reg_inline:!r.enableSeconds&&r.is24&&r.timePickerInline,dp__time_col_reg_with_button:!r.enableSeconds&&!r.is24,dp__time_col_sec:r.enableSeconds&&r.is24,dp__time_col_sec_with_button:r.enableSeconds&&!r.is24})),b=a.computed(()=>{const S=[{type:"hours"},{type:"",separator:!0},{type:"minutes"}];return r.enableSeconds?S.concat([{type:"",separator:!0},{type:"seconds"}]):S}),B=a.computed(()=>b.value.filter(S=>!S.separator)),C=a.computed(()=>S=>{if(S==="hours"){const H=Y(+r.hours);return{text:H<10?`0${H}`:`${H}`,value:H}}return{text:r[S]<10?`0${r[S]}`:`${r[S]}`,value:r[S]}}),I=S=>{const H=r.is24?24:12,Z=S==="hours"?H:60,Q=+r[`${S}GridIncrement`],V=S==="hours"&&!r.is24?Q:0,E=[];for(let P=V;P<Z;P+=Q)E.push({value:P,text:P<10?`0${P}`:`${P}`});return S==="hours"&&!r.is24&&E.push({value:0,text:"12"}),bC(E)},F=(S,H)=>{const Z=r.minTime?m(Rs(r.minTime)):null,Q=r.maxTime?m(Rs(r.maxTime)):null,V=m(Rs(y.value,H,S));return Z&&Q?(vo(V,Q)||Vr(V,Q))&&(mo(V,Z)||Vr(V,Z)):Z?mo(V,Z)||Vr(V,Z):Q?vo(V,Q)||Vr(V,Q):!0},q=a.computed(()=>S=>I(S).flat().filter(H=>EC(H.value)).map(H=>H.value).filter(H=>!F(H,S))),W=S=>r[`no${S[0].toUpperCase()+S.slice(1)}Overlay`],M=S=>{W(S)||(c[S]=!c[S],c[S]||n("overlay-closed"))},D=S=>S==="hours"?ir:S==="minutes"?sr:Ta,$=(S,H=!0)=>{const Z=H?w:T,Q=H?+r[`${S}Increment`]:-+r[`${S}Increment`];F(+r[S]+Q,S)&&n(`update:${S}`,D(S)(Z({[S]:+r[S]},{[S]:+r[`${S}Increment`]})))},Y=S=>r.is24?S:(S>=12?f.value="PM":f.value="AM",CC(S)),X=()=>{f.value==="PM"?(f.value="AM",n("update:hours",r.hours-12)):(f.value="PM",n("update:hours",r.hours+12)),n("am-pm-change",f.value)},K=S=>{c[S]=!0},j=(S,H,Z)=>{if(S&&r.arrowNavigation){Array.isArray(h.value[H])?h.value[H][Z]=S:h.value[H]=[S];const Q=h.value.reduce((V,E)=>E.map((P,R)=>[...V[R]||[],E[R]]),[]);i(r.closeTimePickerBtn),p.value&&(Q[1]=Q[1].concat(p.value)),o(Q,r.order)}},U=(S,H)=>S==="hours"&&!r.is24?n(`update:${S}`,f.value==="PM"?H+12:H):n(`update:${S}`,H);return t({openChildCmp:K}),(S,H)=>{var Z;return S.disabled?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",vT,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(b.value,(Q,V)=>{var E,P,R;return a.openBlock(),a.createElementBlock("div",{key:V,class:a.normalizeClass(N.value)},[Q.separator?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(" : ")],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("button",{type:"button",class:a.normalizeClass({dp__btn:!0,dp__inc_dec_button:!r.timePickerInline,dp__inc_dec_button_inline:r.timePickerInline,dp__tp_inline_btn_top:r.timePickerInline,dp__inc_dec_button_disabled:k.value(Q.type)}),"aria-label":(E=a.unref(s).ariaLabels)==null?void 0:E.incrementValue(Q.type),tabindex:"0",onKeydown:[a.withKeys(G=>$(Q.type),["enter"]),a.withKeys(G=>$(Q.type),["space"])],onClick:G=>$(Q.type),ref_for:!0,ref:G=>j(G,V,0)},[r.timePickerInline?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[yT,bT],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[S.$slots["arrow-up"]?a.renderSlot(S.$slots,"arrow-up",{key:0}):a.createCommentVNode("",!0),S.$slots["arrow-up"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(eh),{key:1}))],64))],42,gT),a.createElementVNode("button",{type:"button","aria-label":(P=a.unref(s).ariaLabels)==null?void 0:P.openTpOverlay(Q.type),class:a.normalizeClass(["dp__btn",W(Q.type)?void 0:{dp__time_display:!0,dp__time_display_block:!r.timePickerInline,dp__time_display_inline:r.timePickerInline}]),tabindex:"0",onKeydown:[a.withKeys(G=>M(Q.type),["enter"]),a.withKeys(G=>M(Q.type),["space"])],onClick:G=>M(Q.type),ref_for:!0,ref:G=>j(G,V,1)},[S.$slots[Q.type]?a.renderSlot(S.$slots,Q.type,{key:0,text:C.value(Q.type).text,value:C.value(Q.type).value}):a.createCommentVNode("",!0),S.$slots[Q.type]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(C.value(Q.type).text),1)],64))],42,_T),a.createElementVNode("button",{type:"button",class:a.normalizeClass({dp__btn:!0,dp__inc_dec_button:!r.timePickerInline,dp__inc_dec_button_inline:r.timePickerInline,dp__tp_inline_btn_bottom:r.timePickerInline,dp__inc_dec_button_disabled:_.value(Q.type)}),"aria-label":(R=a.unref(s).ariaLabels)==null?void 0:R.decrementValue(Q.type),tabindex:"0",onKeydown:[a.withKeys(G=>$(Q.type,!1),["enter"]),a.withKeys(G=>$(Q.type,!1),["space"])],onClick:G=>$(Q.type,!1),ref_for:!0,ref:G=>j(G,V,2)},[r.timePickerInline?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[kT,ST],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[S.$slots["arrow-down"]?a.renderSlot(S.$slots,"arrow-down",{key:0}):a.createCommentVNode("",!0),S.$slots["arrow-down"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(th),{key:1}))],64))],42,wT)],64))],2)}),128)),S.is24?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",CT,[S.$slots["am-pm-button"]?a.renderSlot(S.$slots,"am-pm-button",{key:0,toggle:X,value:f.value}):a.createCommentVNode("",!0),S.$slots["am-pm-button"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:1,ref_key:"amPmButton",ref:p,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(Z=a.unref(s).ariaLabels)==null?void 0:Z.amPmButton,tabindex:"0",onClick:X,onKeydown:[a.withKeys(a.withModifiers(X,["prevent"]),["enter"]),a.withKeys(a.withModifiers(X,["prevent"]),["space"])]},a.toDisplayString(f.value),41,TT))])),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(B.value,(Q,V)=>(a.openBlock(),a.createBlock(a.Transition,{key:V,name:a.unref(l)(c[Q.type]),css:a.unref(u)},{default:a.withCtx(()=>[c[Q.type]?(a.openBlock(),a.createBlock(to,{key:0,items:I(Q.type),"disabled-values":a.unref(s).filters.times[Q.type].concat(q.value(Q.type)),"esc-close":S.escClose,"aria-labels":a.unref(s).ariaLabels,"hide-navigation":S.hideNavigation,"onUpdate:modelValue":E=>U(Q.type,E),onSelected:E=>M(Q.type),onToggle:E=>M(Q.type),onResetFlow:H[0]||(H[0]=E=>S.$emit("reset-flow")),type:Q.type},a.createSlots({"button-icon":a.withCtx(()=>[S.$slots["clock-icon"]?a.renderSlot(S.$slots,"clock-icon",{key:0}):a.createCommentVNode("",!0),S.$slots["clock-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Zp),{key:1}))]),_:2},[S.$slots[`${Q.type}-overlay-value`]?{name:"item",fn:a.withCtx(({item:E})=>[a.renderSlot(S.$slots,`${Q.type}-overlay-value`,{text:E.text,value:E.value})]),key:"0"}:void 0]),1032,["items","disabled-values","esc-close","aria-labels","hide-navigation","onUpdate:modelValue","onSelected","onToggle","type"])):a.createCommentVNode("",!0)]),_:2},1032,["name","css"]))),128))]))}}}),xT=["aria-label"],PT=["tabindex"],IT=["aria-label"],DT=a.defineComponent({__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},internalModelValue:{type:[Date,Array],default:null},...xr},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const r=e,{buildMatrix:o,setTimePicker:i}=Er(),s=a.useSlots(),{hideNavigationButtons:l,defaults:u}=fn(r),{transitionName:c,showTransition:f}=zi(u.value.transitions),p=a.ref(null),h=a.ref(null),m=a.ref([]),y=a.ref(null);a.onMounted(()=>{n("mount"),!r.timePicker&&r.arrowNavigation?o([wt(p.value)],"time"):i(!0,r.timePicker)});const k=a.computed(()=>r.range&&r.modelAuto?sh(r.internalModelValue):!0),_=a.ref(!1),w=M=>({hours:Array.isArray(r.hours)?r.hours[M]:r.hours,minutes:Array.isArray(r.minutes)?r.minutes[M]:r.minutes,seconds:Array.isArray(r.seconds)?r.seconds[M]:r.seconds}),T=a.computed(()=>{const M=[];if(r.range)for(let D=0;D<2;D++)M.push(w(D));else M.push(w(0));return M}),N=(M,D=!1,$="")=>{D||n("reset-flow"),_.value=M,n(M?"overlay-opened":"overlay-closed"),r.arrowNavigation&&i(M),a.nextTick(()=>{$!==""&&m.value[0]&&m.value[0].openChildCmp($)})},b=a.computed(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:r.autoApply&&!r.keepActionRow})),B=Fr(s,"timePicker"),C=(M,D,$)=>r.range?D===0?[M,T.value[1][$]]:[T.value[0][$],M]:M,I=M=>{n("update:hours",M)},F=M=>{n("update:minutes",M)},q=M=>{n("update:seconds",M)},W=()=>{if(y.value){const M=xC(y.value);M&&M.focus({preventScroll:!0})}};return t({toggleTimePicker:N}),(M,D)=>{var $;return a.openBlock(),a.createElementBlock("div",null,[!M.timePicker&&!M.timePickerInline?a.withDirectives((a.openBlock(),a.createElementBlock("button",{key:0,type:"button",class:a.normalizeClass(b.value),"aria-label":($=a.unref(u).ariaLabels)==null?void 0:$.openTimePicker,tabindex:"0",ref_key:"openTimePickerBtn",ref:p,onKeydown:[D[0]||(D[0]=a.withKeys(Y=>N(!0),["enter"])),D[1]||(D[1]=a.withKeys(Y=>N(!0),["space"]))],onClick:D[2]||(D[2]=Y=>N(!0))},[M.$slots["clock-icon"]?a.renderSlot(M.$slots,"clock-icon",{key:0}):a.createCommentVNode("",!0),M.$slots["clock-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Zp),{key:1}))],42,xT)),[[a.vShow,!a.unref(l)("time")]]):a.createCommentVNode("",!0),a.createVNode(a.Transition,{name:a.unref(c)(_.value),css:a.unref(f)&&!M.timePickerInline},{default:a.withCtx(()=>{var Y;return[_.value||M.timePicker||M.timePickerInline?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass({dp__overlay:!M.timePickerInline}),ref_key:"overlayRef",ref:y,tabindex:M.timePickerInline?void 0:0},[a.createElementVNode("div",{class:a.normalizeClass(M.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[M.$slots["time-picker-overlay"]?a.renderSlot(M.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:I,setMinutes:F,setSeconds:q}):a.createCommentVNode("",!0),M.$slots["time-picker-overlay"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(M.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(T.value,(X,K)=>a.withDirectives((a.openBlock(),a.createBlock(ET,a.mergeProps({key:K},{...M.$props,order:K,hours:X.hours,minutes:X.minutes,seconds:X.seconds,closeTimePickerBtn:h.value,disabled:K===0?M.fixedStart:M.fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:m,"onUpdate:hours":j=>I(C(j,K,"hours")),"onUpdate:minutes":j=>F(C(j,K,"minutes")),"onUpdate:seconds":j=>q(C(j,K,"seconds")),onMounted:W,onOverlayClosed:W,onAmPmChange:D[3]||(D[3]=j=>M.$emit("am-pm-change",j))}),a.createSlots({_:2},[a.renderList(a.unref(B),(j,U)=>({name:j,fn:a.withCtx(S=>[a.renderSlot(M.$slots,j,a.normalizeProps(a.guardReactiveProps(S)))])}))]),1040,["onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[a.vShow,K===0?!0:k.value]])),128))],2)),!M.timePicker&&!M.timePickerInline?a.withDirectives((a.openBlock(),a.createElementBlock("button",{key:2,type:"button",ref_key:"closeTimePickerBtn",ref:h,class:a.normalizeClass(b.value),"aria-label":(Y=a.unref(u).ariaLabels)==null?void 0:Y.closeTimePicker,tabindex:"0",onKeydown:[D[4]||(D[4]=a.withKeys(X=>N(!1),["enter"])),D[5]||(D[5]=a.withKeys(X=>N(!1),["space"]))],onClick:D[6]||(D[6]=X=>N(!1))},[M.$slots["calendar-icon"]?a.renderSlot(M.$slots,"calendar-icon",{key:0}):a.createCommentVNode("",!0),M.$slots["calendar-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Ui),{key:1}))],42,IT)),[[a.vShow,!a.unref(l)("time")]]):a.createCommentVNode("",!0)],2)],10,PT)):a.createCommentVNode("",!0)]}),_:3},8,["name","css"])])}}}),OT=(e,t)=>{const{isDisabled:n,matchDate:r,getWeekFromDate:o,defaults:i}=fn(t),s=a.ref(null),l=a.ref(ae()),u=S=>{!S.current&&t.hideOffsetDates||(s.value=S.value)},c=()=>{s.value=null},f=S=>Array.isArray(e.value)&&t.range&&e.value[0]&&s.value?S?nn(s.value,e.value[0]):qt(s.value,e.value[0]):!0,p=(S,H)=>{const Z=()=>e.value?H?e.value[0]||null:e.value[1]:null,Q=e.value&&Array.isArray(e.value)?Z():null;return ot(ae(S.value),Q)},h=S=>{const H=Array.isArray(e.value)?e.value[0]:null;return S?!qt(s.value||null,H):!0},m=(S,H=!0)=>(t.range||t.weekPicker)&&Array.isArray(e.value)&&e.value.length===2?t.hideOffsetDates&&!S.current?!1:ot(ae(S.value),e.value[H?0:1]):t.range?p(S,H)&&h(H)||ot(S.value,Array.isArray(e.value)?e.value[0]:null)&&f(H):!1,y=(S,H,Z)=>Array.isArray(e.value)&&e.value[0]&&e.value.length===1?S?!1:Z?nn(e.value[0],H.value):qt(e.value[0],H.value):!1,k=S=>!e.value||t.hideOffsetDates&&!S.current?!1:t.range?t.modelAuto&&Array.isArray(e.value)?ot(S.value,e.value[0]?e.value[0]:l.value):!1:t.multiDates&&Array.isArray(e.value)?e.value.some(H=>ot(H,S.value)):ot(S.value,e.value?e.value:l.value),_=S=>{if(t.autoRange||t.weekPicker){if(s.value){if(t.hideOffsetDates&&!S.current)return!1;const H=lr(s.value,+t.autoRange),Z=o(ae(s.value));return t.weekPicker?ot(Z[1],ae(S.value)):ot(H,ae(S.value))}return!1}return!1},w=S=>{if(t.autoRange||t.weekPicker){if(s.value){const H=lr(s.value,+t.autoRange);if(t.hideOffsetDates&&!S.current)return!1;const Z=o(ae(s.value));return t.weekPicker?nn(S.value,Z[0])&&qt(S.value,Z[1]):nn(S.value,s.value)&&qt(S.value,H)}return!1}return!1},T=S=>{if(t.autoRange||t.weekPicker){if(s.value){if(t.hideOffsetDates&&!S.current)return!1;const H=o(ae(s.value));return t.weekPicker?ot(H[0],S.value):ot(s.value,S.value)}return!1}return!1},N=S=>nh(e.value,s.value,S.value),b=()=>t.modelAuto&&Array.isArray(t.internalModelValue)?!!t.internalModelValue[0]:!1,B=()=>t.modelAuto?sh(t.internalModelValue):!0,C=S=>{if(Array.isArray(e.value)&&e.value.length||t.weekPicker)return!1;const H=t.range?!m(S)&&!m(S,!1):!0;return!n(S.value)&&!k(S)&&!(!S.current&&t.hideOffsetDates)&&H},I=S=>t.range?t.modelAuto?b()&&k(S):!1:k(S),F=S=>{var H;return t.highlight?r(S.value,(H=t.arrMapValues)!=null&&H.highlightedDates?t.arrMapValues.highlightedDates:t.highlight):!1},q=S=>n(S.value)&&t.highlightDisabledDays===!1,W=S=>t.highlightWeekDays&&t.highlightWeekDays.includes(S.value.getDay()),M=S=>(t.range||t.weekPicker)&&(!(i.value.multiCalendars>0)||S.current)&&B()&&!(!S.current&&t.hideOffsetDates)&&!k(S)?N(S):!1,D=S=>{const{isRangeStart:H,isRangeEnd:Z}=X(S),Q=t.range?H||Z:!1;return{dp__cell_offset:!S.current,dp__pointer:!t.disabled&&!(!S.current&&t.hideOffsetDates)&&!n(S.value),dp__cell_disabled:n(S.value),dp__cell_highlight:!q(S)&&(F(S)||W(S))&&!I(S)&&!Q,dp__cell_highlight_active:!q(S)&&(F(S)||W(S))&&I(S),dp__today:!t.noToday&&ot(S.value,l.value)&&S.current}},$=S=>({dp__active_date:I(S),dp__date_hover:C(S)}),Y=S=>({...K(S),...j(S),dp__range_between_week:M(S)&&t.weekPicker}),X=S=>{const H=i.value.multiCalendars>0?S.current&&m(S)&&B():m(S)&&B(),Z=i.value.multiCalendars>0?S.current&&m(S,!1)&&B():m(S,!1)&&B();return{isRangeStart:H,isRangeEnd:Z}},K=S=>{const{isRangeStart:H,isRangeEnd:Z}=X(S);return{dp__range_start:H,dp__range_end:Z,dp__range_between:M(S)&&!t.weekPicker,dp__date_hover_start:y(C(S),S,!0),dp__date_hover_end:y(C(S),S,!1)}},j=S=>({...K(S),dp__cell_auto_range:w(S),dp__cell_auto_range_start:T(S),dp__cell_auto_range_end:_(S)}),U=S=>t.range?t.autoRange?j(S):t.modelAuto?{...$(S),...K(S)}:K(S):t.weekPicker?Y(S):$(S);return{setHoverDate:u,clearHoverDate:c,getDayClassData:S=>t.hideOffsetDates&&!S.current?{}:{...D(S),...U(S),[t.dayClass?t.dayClass(S.value):""]:!0,[t.calendarCellClassName]:!!t.calendarCellClassName}}},NT=["id","onKeydown"],BT={key:0,class:"dp__sidebar_left"},MT={key:1,class:"dp__preset_ranges"},RT=["onClick"],AT={key:2,class:"dp__sidebar_right"},$T={key:3,class:"dp__action_extra"},LT=a.defineComponent({__name:"DatepickerMenu",props:{openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},arrMapValues:{type:Object,default:()=>({})},...xr},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end"],setup(e,{expose:t,emit:n}){const r=e,o=a.computed(()=>{const{openOnTop:J,internalModelValue:le,arrMapValues:Le,...De}=r;return De}),{setMenuFocused:i,setShiftKey:s,control:l}=rh(),{getCalendarDays:u,defaults:c}=fn(r),f=a.useSlots(),p=a.ref(null),h=a.reactive({timePicker:!!(!r.enableTimePicker||r.timePicker||r.monthPicker),monthYearInput:!!r.timePicker,calendar:!1}),m=a.ref([]),y=a.ref([]),k=a.ref(null),_=a.ref(null),w=a.ref(0),T=a.ref(!1),N=a.ref(0);a.onMounted(()=>{var J;T.value=!0,!((J=r.presetRanges)!=null&&J.length)&&!f["left-sidebar"]&&!f["right-sidebar"]&&(Qe(),window.addEventListener("resize",Qe));const le=wt(_);if(le&&!r.textInput&&!r.inline&&(i(!0),q()),le){const Le=De=>{r.allowPreventDefault&&De.preventDefault(),De.stopImmediatePropagation(),De.stopPropagation()};le.addEventListener("pointerdown",Le),le.addEventListener("mousedown",Le)}}),a.onUnmounted(()=>{window.removeEventListener("resize",Qe)});const{arrowRight:b,arrowLeft:B,arrowDown:C,arrowUp:I}=Er(),F=J=>{J||J===0?y.value[J].triggerTransition(Y.value(J),X.value(J)):y.value.forEach((le,Le)=>le.triggerTransition(Y.value(Le),X.value(Le)))},q=()=>{const J=wt(_);J&&J.focus({preventScroll:!0})},W=()=>{var J;(J=r.flow)!=null&&J.length&&N.value!==-1&&(N.value+=1,n("flow-step",N.value),ee())},M=()=>{N.value=-1},{calendars:D,modelValue:$,month:Y,year:X,time:K,updateTime:j,updateMonthYear:U,selectDate:S,getWeekNum:H,monthYearSelect:Z,handleScroll:Q,handleArrow:V,handleSwipe:E,getMarker:P,selectCurrentDate:R,presetDateRange:G}=RC(r,n,W,F,N),{setHoverDate:ie,clearHoverDate:oe,getDayClassData:Ie}=OT($,r),Ee={modelValue:$,month:Y,year:X,time:K,updateTime:j,updateMonthYear:U,selectDate:S,presetDateRange:G,handleMonthYearChange:J=>{m.value[0]&&m.value[0].handleMonthYearChange(J)}};a.watch(D,()=>{r.openOnTop&&setTimeout(()=>{n("recalculate-position")},0)},{deep:!0});const fe=Fr(f,"calendar"),Be=Fr(f,"action"),$e=Fr(f,"timePicker"),ze=Fr(f,"monthYear"),Ge=a.computed(()=>r.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),Ke=a.computed(()=>kC(r.yearRange,r.reverseYears)),ve=a.computed(()=>SC(r.formatLocale,r.locale,r.monthNameFormat)),Qe=()=>{const J=wt(p);J&&(w.value=J.getBoundingClientRect().width)},Te=a.computed(()=>J=>u(Y.value(J),X.value(J))),se=a.computed(()=>c.value.multiCalendars>0?[...Array(c.value.multiCalendars).keys()]:[0]),ce=a.computed(()=>J=>J===1),me=a.computed(()=>r.monthPicker||r.timePicker||r.yearPicker),Pt=a.computed(()=>({dp__menu_inner:!0,dp__flex_display:c.value.multiCalendars>0})),xe=a.computed(()=>({dp__instance_calendar:c.value.multiCalendars>0})),Mt=a.computed(()=>({dp__menu_disabled:r.disabled,dp__menu_readonly:r.readonly})),Ut=a.computed(()=>J=>zt(Te,J)),Rt=a.computed(()=>({dp__menu:!0,dp__menu_index:!r.inline,dp__relative:r.inline,[r.menuClassName]:!!r.menuClassName})),zt=(J,le)=>J.value(le).map(Le=>({...Le,days:Le.days.map(De=>(De.marker=P(De),De.classData=Ie(De),De))})),kn=J=>{J.stopPropagation(),J.stopImmediatePropagation()},Sn=()=>{r.escClose&&n("close-picker")},Et=(J,le=!1)=>{S(J,le),r.spaceConfirm&&n("select-date")},L=J=>{var le;(le=r.flow)!=null&&le.length&&(h[J]=!0,Object.keys(h).filter(Le=>!h[Le]).length||ee())},O=(J,le,Le,De,...st)=>{if(r.flow[N.value]===J){const pe=De?le.value[0]:le.value;pe&&pe[Le](...st)}},ee=()=>{O("month",m,"toggleMonthPicker",!0,!0),O("year",m,"toggleYearPicker",!0,!0),O("calendar",k,"toggleTimePicker",!1,!1,!0),O("time",k,"toggleTimePicker",!1,!0,!0);const J=r.flow[N.value];(J==="hours"||J==="minutes"||J==="seconds")&&O(J,k,"toggleTimePicker",!1,!0,!0,J)},re=J=>{if(r.arrowNavigation){if(J==="up")return I();if(J==="down")return C();if(J==="left")return B();if(J==="right")return b()}else J==="left"||J==="up"?V("left",0,J==="up"):V("right",0,J==="down")},ge=J=>{s(J.shiftKey),!r.disableMonthYearSelect&&J.code==="Tab"&&J.target.classList.contains("dp__menu")&&l.value.shiftKeyInMenu&&(J.preventDefault(),J.stopImmediatePropagation(),n("close-picker"))},we=()=>{q(),n("time-picker-close")},qe=J=>{var le,Le,De,st,pe;(le=k.value)==null||le.toggleTimePicker(!1,!1),(De=(Le=m.value)==null?void 0:Le[J])==null||De.toggleMonthPicker(!1,!1),(pe=(st=m.value)==null?void 0:st[J])==null||pe.toggleYearPicker(!1,!1)};return t({updateMonthYear:U,switchView:(J,le=0)=>{var Le,De,st,pe,mt;return J==="month"?(De=(Le=m.value)==null?void 0:Le[le])==null?void 0:De.toggleMonthPicker(!1,!0):J==="year"?(pe=(st=m.value)==null?void 0:st[le])==null?void 0:pe.toggleYearPicker(!1,!0):J==="time"?(mt=k.value)==null?void 0:mt.toggleTimePicker(!0,!1):qe(le)}}),(J,le)=>{var Le;return a.openBlock(),a.createBlock(a.Transition,{appear:"",name:(Le=a.unref(c).transitions)==null?void 0:Le.menuAppear,css:!!J.transitions},{default:a.withCtx(()=>{var De,st;return[a.createElementVNode("div",{id:J.uid?`dp-menu-${J.uid}`:void 0,tabindex:"0",ref_key:"dpMenuRef",ref:_,role:"dialog",class:a.normalizeClass(Rt.value),onMouseleave:le[14]||(le[14]=(...pe)=>a.unref(oe)&&a.unref(oe)(...pe)),onClick:kn,onKeydown:[a.withKeys(Sn,["esc"]),le[15]||(le[15]=a.withKeys(a.withModifiers(pe=>re("left"),["prevent"]),["left"])),le[16]||(le[16]=a.withKeys(a.withModifiers(pe=>re("up"),["prevent"]),["up"])),le[17]||(le[17]=a.withKeys(a.withModifiers(pe=>re("down"),["prevent"]),["down"])),le[18]||(le[18]=a.withKeys(a.withModifiers(pe=>re("right"),["prevent"]),["right"])),ge]},[(J.disabled||J.readonly)&&J.inline?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(Mt.value)},null,2)):a.createCommentVNode("",!0),!J.inline&&!J.teleportCenter?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(Ge.value)},null,2)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass({dp__menu_content_wrapper:((De=J.presetRanges)==null?void 0:De.length)||!!J.$slots["left-sidebar"]||!!J.$slots["right-sidebar"]})},[J.$slots["left-sidebar"]?(a.openBlock(),a.createElementBlock("div",BT,[a.renderSlot(J.$slots,"left-sidebar",a.normalizeProps(a.guardReactiveProps(Ee)))])):a.createCommentVNode("",!0),(st=J.presetRanges)!=null&&st.length?(a.openBlock(),a.createElementBlock("div",MT,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(J.presetRanges,(pe,mt)=>(a.openBlock(),a.createElementBlock("div",{key:mt,style:a.normalizeStyle(pe.style||{}),class:"dp__preset_range",onClick:Me=>a.unref(G)(pe.range,!!pe.slot)},[pe.slot?a.renderSlot(J.$slots,pe.slot,{key:0,presetDateRange:a.unref(G),label:pe.label,range:pe.range}):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(pe.label),1)],64))],12,RT))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"dp__instance_calendar",ref_key:"calendarWrapperRef",ref:p,role:"document"},[a.createElementVNode("div",{class:a.normalizeClass(Pt.value)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(se.value,(pe,mt)=>(a.openBlock(),a.createElementBlock("div",{key:pe,class:a.normalizeClass(xe.value)},[!J.disableMonthYearSelect&&!J.timePicker?(a.openBlock(),a.createBlock(mT,a.mergeProps({key:0,ref_for:!0,ref:Me=>{Me&&(m.value[mt]=Me)},months:ve.value,years:Ke.value,month:a.unref(Y)(pe),year:a.unref(X)(pe),instance:pe,"internal-model-value":e.internalModelValue},o.value,{onMount:le[0]||(le[0]=Me=>L("monthYearInput")),onResetFlow:M,onUpdateMonthYear:Me=>a.unref(U)(pe,Me),onMonthYearSelect:a.unref(Z),onOverlayClosed:q}),a.createSlots({_:2},[a.renderList(a.unref(ze),(Me,ln)=>({name:Me,fn:a.withCtx(At=>[a.renderSlot(J.$slots,Me,a.normalizeProps(a.guardReactiveProps(At)))])}))]),1040,["months","years","month","year","instance","internal-model-value","onUpdateMonthYear","onMonthYearSelect"])):a.createCommentVNode("",!0),a.createVNode(rT,a.mergeProps({ref_for:!0,ref:Me=>{Me&&(y.value[mt]=Me)},"specific-mode":me.value,"get-week-num":a.unref(H),instance:pe,"mapped-dates":Ut.value(pe),month:a.unref(Y)(pe),year:a.unref(X)(pe)},o.value,{onSelectDate:Me=>a.unref(S)(Me,!ce.value(pe)),onHandleSpace:Me=>Et(Me,!ce.value(pe)),onSetHoverDate:le[1]||(le[1]=Me=>a.unref(ie)(Me)),onHandleScroll:Me=>a.unref(Q)(Me,pe),onHandleSwipe:Me=>a.unref(E)(Me,pe),onMount:le[2]||(le[2]=Me=>L("calendar")),onResetFlow:M,onTooltipOpen:le[3]||(le[3]=Me=>J.$emit("tooltip-open",Me)),onTooltipClose:le[4]||(le[4]=Me=>J.$emit("tooltip-close",Me))}),a.createSlots({_:2},[a.renderList(a.unref(fe),(Me,ln)=>({name:Me,fn:a.withCtx(At=>[a.renderSlot(J.$slots,Me,a.normalizeProps(a.guardReactiveProps({...At})))])}))]),1040,["specific-mode","get-week-num","instance","mapped-dates","month","year","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])],2))),128))],2),a.createElementVNode("div",null,[J.$slots["time-picker"]?a.renderSlot(J.$slots,"time-picker",a.normalizeProps(a.mergeProps({key:0},{time:a.unref(K),updateTime:a.unref(j)}))):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[J.enableTimePicker&&!J.monthPicker&&!J.weekPicker?(a.openBlock(),a.createBlock(DT,a.mergeProps({key:0,ref_key:"timePickerRef",ref:k,hours:a.unref(K).hours,minutes:a.unref(K).minutes,seconds:a.unref(K).seconds,"internal-model-value":e.internalModelValue},o.value,{onMount:le[5]||(le[5]=pe=>L("timePicker")),"onUpdate:hours":le[6]||(le[6]=pe=>a.unref(j)(pe)),"onUpdate:minutes":le[7]||(le[7]=pe=>a.unref(j)(pe,!1)),"onUpdate:seconds":le[8]||(le[8]=pe=>a.unref(j)(pe,!1,!0)),onResetFlow:M,onOverlayClosed:we,onOverlayOpened:le[9]||(le[9]=pe=>J.$emit("time-picker-open",pe)),onAmPmChange:le[10]||(le[10]=pe=>J.$emit("am-pm-change",pe))}),a.createSlots({_:2},[a.renderList(a.unref($e),(pe,mt)=>({name:pe,fn:a.withCtx(Me=>[a.renderSlot(J.$slots,pe,a.normalizeProps(a.guardReactiveProps(Me)))])}))]),1040,["hours","minutes","seconds","internal-model-value"])):a.createCommentVNode("",!0)],64))])],512),J.$slots["right-sidebar"]?(a.openBlock(),a.createElementBlock("div",AT,[a.renderSlot(J.$slots,"right-sidebar",a.normalizeProps(a.guardReactiveProps(Ee)))])):a.createCommentVNode("",!0),J.$slots["action-extra"]?(a.openBlock(),a.createElementBlock("div",$T,[J.$slots["action-extra"]?a.renderSlot(J.$slots,"action-extra",{key:0,selectCurrentDate:a.unref(R)}):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)],2),!J.autoApply||J.keepActionRow?(a.openBlock(),a.createBlock(GC,a.mergeProps({key:2,"menu-mount":T.value,"calendar-width":w.value,"internal-model-value":e.internalModelValue},o.value,{onClosePicker:le[11]||(le[11]=pe=>J.$emit("close-picker")),onSelectDate:le[12]||(le[12]=pe=>J.$emit("select-date")),onInvalidSelect:le[13]||(le[13]=pe=>J.$emit("invalid-select")),onSelectNow:a.unref(R)}),a.createSlots({_:2},[a.renderList(a.unref(Be),(pe,mt)=>({name:pe,fn:a.withCtx(Me=>[a.renderSlot(J.$slots,pe,a.normalizeProps(a.guardReactiveProps({...Me})))])}))]),1040,["menu-mount","calendar-width","internal-model-value","onSelectNow"])):a.createCommentVNode("",!0)],42,NT)]}),_:3},8,["name","css"])}}}),VT=typeof window<"u"?window:void 0,Ws=()=>{},FT=e=>a.getCurrentScope()?(a.onScopeDispose(e),!0):!1,HT=(e,t,n,r)=>{if(!e)return Ws;let o=Ws;const i=a.watch(()=>a.unref(e),l=>{o(),l&&(l.addEventListener(t,n,r),o=()=>{l.removeEventListener(t,n,r),o=Ws})},{immediate:!0,flush:"post"}),s=()=>{i(),o()};return FT(s),s},UT=(e,t,n,r={})=>{const{window:o=VT,event:i="pointerdown"}=r;return o?HT(o,i,s=>{const l=wt(e),u=wt(t);!l||!u||l===s.target||s.composedPath().includes(l)||s.composedPath().includes(u)||n(s)},{passive:!0}):void 0},zT=a.defineComponent({__name:"VueDatePicker",props:{...xr},emits:["update:model-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end"],setup(e,{expose:t,emit:n}){const r=e,o=a.useSlots(),i=a.ref(!1),s=a.toRef(r,"modelValue"),l=a.toRef(r,"timezone"),u=a.ref(null),c=a.ref(null),f=a.ref(!1),p=a.ref(null),h=a.reactive({disabledDates:null,allowedDates:null,highlightedDates:null}),{setMenuFocused:m,setShiftKey:y}=rh(),{clearArrowNav:k}=Er(),{validateDate:_,isValidTime:w,defaults:T,mapDatesArrToMap:N}=fn(r);a.onMounted(()=>{Y(r.modelValue),r.inline||(M(p.value).addEventListener("scroll",Z),window.addEventListener("resize",Q)),r.inline&&(i.value=!0),N(h)}),a.onUnmounted(()=>{if(!r.inline){const se=M(p.value);se&&se.removeEventListener("scroll",Z),window.removeEventListener("resize",Q)}});const b=Fr(o,"all",r.presetRanges),B=Fr(o,"input");a.watch([s,l],()=>{Y(s.value)},{deep:!0});const{openOnTop:C,menuStyle:I,resetPosition:F,setMenuPosition:q,setInitialPosition:W,getScrollableParent:M}=LC(u,c,n,r),{inputValue:D,internalModelValue:$,parseExternalModelValue:Y,emitModelValue:X,formatInputValue:K,checkBeforeEmit:j}=AC(n,r,f),U=a.computed(()=>({dp__main:!0,dp__theme_dark:r.dark,dp__theme_light:!r.dark,dp__flex_display:r.inline,dp__flex_display_with_input:r.inlineWithInput})),S=a.computed(()=>r.dark?"dp__theme_dark":"dp__theme_light"),H=a.computed(()=>r.teleport?{to:typeof r.teleport=="boolean"?"body":r.teleport,disabled:r.inline}:{class:"dp__outer_menu_wrap"}),Z=()=>{i.value&&(r.closeOnScroll?Ee():q())},Q=()=>{i.value&&q()},V=async()=>{var se,ce,me;!r.disabled&&!r.readonly&&(F(),await a.nextTick(),i.value=!0,await a.nextTick(),W(),await a.nextTick(),q(),delete I.value.opacity,!((se=T.value.transitions)!=null&&se.menuAppear)&&r.transitions&&((me=(ce=u.value)==null?void 0:ce.$el)==null||me.classList.add("dp__menu_transitioned")),i.value&&n("open"),i.value||Ie(),Y(r.modelValue))},E=()=>{D.value="",Ie(),n("update:model-value",null),n("cleared"),r.closeOnClearValue&&Ee()},P=()=>{const se=$.value;return!se||!Array.isArray(se)&&_(se)?!0:Array.isArray(se)?se.length===2&&_(se[0])&&_(se[1])?!0:_(se[0]):!1},R=()=>{j()&&P()?(X(),Ee()):n("invalid-select",$.value)},G=se=>{ie(),X(),r.closeOnAutoApply&&!se&&Ee()},ie=()=>{c.value&&r.textInput&&c.value.setParsedDate($.value)},oe=(se=!1)=>{r.autoApply&&w($.value)&&P()&&(r.range&&Array.isArray($.value)?(r.partialRange||$.value.length===2)&&G(se):G(se))},Ie=()=>{r.textInput||($.value=null)},Ee=()=>{r.inline||(i.value&&(i.value=!1,m(!1),y(!1),k(),n("closed"),W(),D.value&&Y(s.value)),Ie())},fe=(se,ce)=>{if(!se){$.value=null;return}$.value=se,ce&&(R(),n("text-submit"))},Be=()=>{r.autoApply&&w($.value)&&X(),ie()},$e=()=>i.value?Ee():V(),ze=se=>{$.value=se},Ge=()=>{r.textInput&&(f.value=!0,K()),n("focus")},Ke=()=>{r.textInput&&(f.value=!1,Y(r.modelValue)),n("blur")},ve=se=>{u.value&&u.value.updateMonthYear(0,{month:vd(se.month),year:vd(se.year)})},Qe=se=>{Y(se||r.modelValue)},Te=(se,ce)=>{var me;(me=u.value)==null||me.switchView(se,ce)};return UT(u,c,r.onClickOutside?()=>r.onClickOutside(P):Ee),t({closeMenu:Ee,selectDate:R,clearValue:E,openMenu:V,onScroll:Z,formatInputValue:K,updateInternalModelValue:ze,setMonthYear:ve,parseModel:Qe,switchView:Te}),(se,ce)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(U.value),ref_key:"pickerWrapperRef",ref:p},[a.createVNode(jC,a.mergeProps({ref_key:"inputRef",ref:c,"is-menu-open":i.value,"input-value":a.unref(D),"onUpdate:inputValue":ce[0]||(ce[0]=me=>a.isRef(D)?D.value=me:null)},se.$props,{onClear:E,onOpen:V,onSetInputDate:fe,onSetEmptyDate:a.unref(X),onSelectDate:R,onToggle:$e,onClose:Ee,onFocus:Ge,onBlur:Ke,onRealBlur:ce[1]||(ce[1]=me=>f.value=!1)}),a.createSlots({_:2},[a.renderList(a.unref(B),(me,Pt)=>({name:me,fn:a.withCtx(xe=>[a.renderSlot(se.$slots,me,a.normalizeProps(a.guardReactiveProps(xe)))])}))]),1040,["is-menu-open","input-value","onSetEmptyDate"]),i.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(se.teleport?a.Teleport:"div"),a.normalizeProps(a.mergeProps({key:0},H.value)),{default:a.withCtx(()=>[i.value?(a.openBlock(),a.createBlock(LT,a.mergeProps({key:0,ref_key:"dpMenuRef",ref:u,class:S.value,style:se.inline?void 0:a.unref(I),"open-on-top":a.unref(C),"arr-map-values":h},se.$props,{"internal-model-value":a.unref($),"onUpdate:internalModelValue":ce[2]||(ce[2]=me=>a.isRef($)?$.value=me:null),onClosePicker:Ee,onSelectDate:R,onAutoApply:oe,onTimeUpdate:Be,onFlowStep:ce[3]||(ce[3]=me=>se.$emit("flow-step",me)),onUpdateMonthYear:ce[4]||(ce[4]=me=>se.$emit("update-month-year",me)),onInvalidSelect:ce[5]||(ce[5]=me=>se.$emit("invalid-select",a.unref($))),onInvalidFixedRange:ce[6]||(ce[6]=me=>se.$emit("invalid-fixed-range",me)),onRecalculatePosition:a.unref(q),onTooltipOpen:ce[7]||(ce[7]=me=>se.$emit("tooltip-open",me)),onTooltipClose:ce[8]||(ce[8]=me=>se.$emit("tooltip-close",me)),onTimePickerOpen:ce[9]||(ce[9]=me=>se.$emit("time-picker-open",me)),onTimePickerClose:ce[10]||(ce[10]=me=>se.$emit("time-picker-close",me)),onAmPmChange:ce[11]||(ce[11]=me=>se.$emit("am-pm-change",me)),onRangeStart:ce[12]||(ce[12]=me=>se.$emit("range-start",me)),onRangeEnd:ce[13]||(ce[13]=me=>se.$emit("range-end",me))}),a.createSlots({_:2},[a.renderList(a.unref(b),(me,Pt)=>({name:me,fn:a.withCtx(xe=>[a.renderSlot(se.$slots,me,a.normalizeProps(a.guardReactiveProps({...xe})))])}))]),1040,["class","style","open-on-top","arr-map-values","internal-model-value","onRecalculatePosition"])):a.createCommentVNode("",!0)]),_:3},16)):a.createCommentVNode("",!0)],2))}}),ku=(()=>{const e=zT;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),jT=Object.freeze(Object.defineProperty({__proto__:null,default:ku},Symbol.toStringTag,{value:"Module"}));Object.entries(jT).forEach(([e,t])=>{e!=="default"&&(ku[e]=t)});const WT={class:"relative w-full"},qT=["value","placeholder"],YT={key:0,class:"pointer-events-none absolute left-5 top-2.5 space-x-2 peer-focus:hidden","data-test-location-labels":""},GT=a.defineComponent({inheritAttrs:!1,__name:"LocationInput",props:{placeholder:{default:""},placeOptions:{default:null},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=a.ref(null),o=a.ref("");return a.onMounted(async()=>{if(!r.value)return;if(!(window!=null&&window.google)){console.error("Google not defined. use composable useGoogleApi at setup");return}const{Autocomplete:i}=await google.maps.importLibrary("places"),s=new i(r.value,{strictBounds:!1,types:["address"],componentRestrictions:{country:"nl"},...n.placeOptions});s.addListener("place_changed",()=>{var N,b,B,C,I,F,q,W,M,D,$;o.value="";const l=s.getPlace(),u=(N=l.geometry)==null?void 0:N.location,c=l.address_components??[],f=u==null?void 0:u.lat(),p=u==null?void 0:u.lng(),h=(b=c.find(Y=>Y.types.includes("postal_code")))==null?void 0:b.long_name,m=(B=c.find(Y=>Y.types.includes("route")))==null?void 0:B.long_name,y=parseInt(((I=(C=c.find(Y=>Y.types.includes("street_number")))==null?void 0:C.long_name.split(/(\d*)(.*)/s))==null?void 0:I[1])??"",10),k=(q=(F=c.find(Y=>Y.types.includes("street_number")))==null?void 0:F.long_name.split(/(\d*)(.*)/s))==null?void 0:q[2],_=(W=c.find(Y=>Y.types.includes("locality")))==null?void 0:W.long_name,w=(M=c.find(Y=>Y.types.includes("administrative_area_level_1")))==null?void 0:M.long_name,T=(D=c.find(Y=>Y.types.includes("administrative_area_level_1")))==null?void 0:D.short_name;($=r.value)==null||$.blur(),t("update:modelValue",{postcode:h,street:m,number:y>0?y:void 0,numberSuffix:k,city:_,province:w,provinceShort:T,lat:f,lng:p})})}),(i,s)=>{var l,u,c;return a.openBlock(),a.createElementBlock("div",WT,[a.createElementVNode("input",a.mergeProps({ref_key:"input",ref:r,value:o.value,placeholder:i.placeholder},{...i.$attrs},{class:"peer text-zinc-900",onKeydown:s[0]||(s[0]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["enter"]))}),null,16,qT),(l=i.modelValue)!=null&&l.postcode||(u=i.modelValue)!=null&&u.street||(c=i.modelValue)!=null&&c.number?(a.openBlock(),a.createElementBlock("div",YT,[a.createVNode(a.unref(fi),{class:"empty:hidden","data-test-street-label":""},{default:a.withCtx(()=>{var f,p,h;return[a.createTextVNode(a.toDisplayString((f=i.modelValue)==null?void 0:f.street)+" "+a.toDisplayString((p=i.modelValue)==null?void 0:p.number)+a.toDisplayString((h=i.modelValue)==null?void 0:h.numberSuffix),1)]}),_:1}),a.createVNode(a.unref(fi),{class:"empty:hidden","data-test-postcode-label":""},{default:a.withCtx(()=>{var f;return[a.createTextVNode(a.toDisplayString((f=i.modelValue)==null?void 0:f.postcode),1)]}),_:1})])):a.createCommentVNode("",!0)])}}});const KT={disabled:!1,readonly:!1,loading:!1,required:!1,hasError:!1,label:void 0,errorMessage:""};function XT(e){return go(e)?ku:yi(e)?GT:e==="textarea"?"textarea":"input"}function wl(e){return e==="license"}function JT(e,t,n){return Hi(e)&&(!!t.default||!!n)}function _i(e,t,n,r){return Hi(t)||wl(t)||e==="leading"&&yi(t)?!1:e==="trailing"?!!r.trailingIcon||go(t)||yi(t)||n&&!r.leadingIcon:!!r[`${e}Icon`]}const QT=`block h-12 w-full appearance-none rounded-lg
71
+ focus-visible:outline-none`,HS="rounded bg-white checked:bg-primary";function US(e,t){return{[FS]:!0,[HS]:e==="checkbox","rounded-full":e==="radio","!border-error":t}}function Ui(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),a.createElementVNode("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),a.createElementVNode("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),a.createElementVNode("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}function zS(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),a.createElementVNode("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}function ad(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function od(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}function Zp(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),a.createElementVNode("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}function eh(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function th(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}const id=(e,t,n,r,o)=>{const i=hl(e,t.slice(0,e.length),new Date);return eo(i)&&Rp(i)?r||o?i:Ot(i,{hours:+n.hours,minutes:+(n==null?void 0:n.minutes),seconds:+(n==null?void 0:n.seconds),milliseconds:0}):null},jS=(e,t,n,r,o)=>{const i=Array.isArray(n)?n[0]:n;if(typeof t=="string")return id(e,t,i,r,o);if(Array.isArray(t)){let s=null;for(const l of t)if(s=id(e,l,i,r,o),s)break;return s}return typeof t=="function"?t(e):null},ae=e=>e?new Date(e):new Date,WS=(e,t,n)=>{if(t){const o=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),s=e.getHours().toString().padStart(2,"0"),l=e.getMinutes().toString().padStart(2,"0"),u=n?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${o}-${i}T${s}:${l}:${u}.000Z`}const r=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(r).toISOString()},yn=e=>{let t=ae(JSON.parse(JSON.stringify(e)));return t=Xp(t,0),t=Jp(t,0),t=Qp(t,0),t=yu(t,0),t},mn=(e,t,n,r)=>{let o=e?ae(e):ae();return(t||t===0)&&(o=Xp(o,+t)),(n||n===0)&&(o=Jp(o,+n)),(r||r===0)&&(o=Qp(o,+r)),yu(o,0)},qt=(e,t)=>!e||!t?!1:vo(yn(e),yn(t)),ot=(e,t)=>!e||!t?!1:Vr(yn(e),yn(t)),nn=(e,t)=>!e||!t?!1:mo(yn(e),yn(t)),nh=(e,t,n)=>e&&e[0]&&e[1]?nn(n,e[0])&&qt(n,e[1]):e&&e[0]&&t?nn(n,e[0])&&qt(n,t)||qt(n,e[0])&&nn(n,t):!1,Ya=e=>{const t=Ot(new Date(e),{date:1});return yn(t)},Rs=(e,t,n)=>t&&(n||n===0)?Object.fromEntries(["hours","minutes","seconds"].map(r=>r===t?[r,n]:[r,isNaN(+e[r])?void 0:+e[r]])):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},zo=e=>({hours:ir(e),minutes:sr(e),seconds:Ta(e)}),Ga=a.reactive({menuFocused:!1,shiftKeyInMenu:!1}),rh=()=>{const e=n=>{Ga.menuFocused=n},t=n=>{Ga.shiftKeyInMenu!==n&&(Ga.shiftKeyInMenu=n)};return{control:a.computed(()=>({shiftKeyInMenu:Ga.shiftKeyInMenu,menuFocused:Ga.menuFocused})),setMenuFocused:e,setShiftKey:t}};function bu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ah={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ah);var qS=ah.exports,ml={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var o=Number(r);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}e.exports=t.default})(ml,ml.exports);var YS=ml.exports;const GS=bu(YS);var vl={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var o=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return o.setUTCFullYear(r.getFullYear()),r.getTime()-o.getTime()}e.exports=t.default})(vl,vl.exports);var KS=vl.exports;const sd=bu(KS);function XS(e,t){var n=eC(t);return n.formatToParts?QS(n,e):ZS(n,e)}var JS={year:0,month:1,day:2,hour:3,minute:4,second:5};function QS(e,t){try{for(var n=e.formatToParts(t),r=[],o=0;o<n.length;o++){var i=JS[n[o].type];i>=0&&(r[i]=parseInt(n[o].value,10))}return r}catch(s){if(s instanceof RangeError)return[NaN];throw s}}function ZS(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var As={};function eC(e){if(!As[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";As[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return As[e]}function _u(e,t,n,r,o,i,s){var l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,o,i,s),l}var ld=36e5,tC=6e4,$s={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function wu(e,t,n){var r,o;if(!e||(r=$s.timezoneZ.exec(e),r))return 0;var i;if(r=$s.timezoneHH.exec(e),r)return i=parseInt(r[1],10),ud(i)?-(i*ld):NaN;if(r=$s.timezoneHHMM.exec(e),r){i=parseInt(r[1],10);var s=parseInt(r[2],10);return ud(i,s)?(o=Math.abs(i)*ld+s*tC,i>0?-o:o):NaN}if(aC(e)){t=new Date(t||Date.now());var l=n?t:nC(t),u=gl(l,e),c=n?u:rC(t,u,e);return-c}return NaN}function nC(e){return _u(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function gl(e,t){var n=XS(e,t),r=_u(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),i=o%1e3;return o-=i>=0?i:1e3+i,r-o}function rC(e,t,n){var r=e.getTime(),o=r-t,i=gl(new Date(o),n);if(t===i)return t;o-=i-t;var s=gl(new Date(o),n);return i===s?i:Math.max(i,s)}function ud(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var cd={};function aC(e){if(cd[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),cd[e]=!0,!0}catch{return!1}}var oC=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const oh=oC;var Ls=36e5,dd=6e4,iC=2,en={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:oh};function yl(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},r=n.additionalDigits==null?iC:GS(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=sC(e),i=lC(o.date,r),s=i.year,l=i.restDateString,u=uC(l,s);if(isNaN(u))return new Date(NaN);if(u){var c=u.getTime(),f=0,p;if(o.time&&(f=cC(o.time),isNaN(f)))return new Date(NaN);if(o.timeZone||n.timeZone){if(p=wu(o.timeZone||n.timeZone,new Date(c+f)),isNaN(p))return new Date(NaN)}else p=sd(new Date(c+f)),p=sd(new Date(c+f+p));return new Date(c+f+p)}else return new Date(NaN)}function sC(e){var t={},n=en.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=en.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){var o=en.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function lC(e,t){var n=en.YYY[t],r=en.YYYYY[t],o;if(o=en.YYYY.exec(e)||r.exec(e),o){var i=o[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(o=en.YY.exec(e)||n.exec(e),o){var s=o[1];return{year:parseInt(s,10)*100,restDateString:e.slice(s.length)}}return{year:null}}function uC(e,t){if(t===null)return null;var n,r,o,i;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=en.MM.exec(e),n)return r=new Date(0),o=parseInt(n[1],10)-1,pd(t,o)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=en.DDD.exec(e),n){r=new Date(0);var s=parseInt(n[1],10);return pC(t,s)?(r.setUTCFullYear(t,0,s),r):new Date(NaN)}if(n=en.MMDD.exec(e),n){r=new Date(0),o=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return pd(t,o,l)?(r.setUTCFullYear(t,o,l),r):new Date(NaN)}if(n=en.Www.exec(e),n)return i=parseInt(n[1],10)-1,hd(t,i)?fd(t,i):new Date(NaN);if(n=en.WwwD.exec(e),n){i=parseInt(n[1],10)-1;var u=parseInt(n[2],10)-1;return hd(t,i,u)?fd(t,i,u):new Date(NaN)}return null}function cC(e){var t,n,r;if(t=en.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),Vs(n)?n%24*Ls:NaN;if(t=en.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),Vs(n,r)?n%24*Ls+r*dd:NaN;if(t=en.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return Vs(n,r,o)?n%24*Ls+r*dd+o*1e3:NaN}return null}function fd(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var dC=[31,28,31,30,31,30,31,31,30,31,30,31],fC=[31,29,31,30,31,30,31,31,30,31,30,31];function ih(e){return e%400===0||e%4===0&&e%100!==0}function pd(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=ih(e);if(r&&n>fC[t]||!r&&n>dC[t])return!1}return!0}function pC(e,t){if(t<1)return!1;var n=ih(e);return!(n&&t>366||!n&&t>365)}function hd(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function Vs(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}var bl={exports:{}},_l={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i]);return r}e.exports=t.default})(_l,_l.exports);var hC=_l.exports;(function(e,t){var n=qS.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(hC);function o(i){return(0,r.default)({},i)}e.exports=t.default})(bl,bl.exports);var mC=bl.exports;const vC=bu(mC);function gC(e,t,n){var r=yl(e,n),o=wu(t,r,!0),i=new Date(r.getTime()-o),s=new Date(0);return s.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),s.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),s}function yC(e,t,n){if(typeof e=="string"&&!e.match(oh)){var r=vC(n);return r.timeZone=t,yl(e,r)}var o=yl(e,n),i=_u(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()).getTime(),s=wu(t,new Date(i));return new Date(i+s)}const bC=(e,t=3)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push([e[r],e[r+1],e[r+2]]);return n};function md(e){return t=>new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${t}T00:00:00+00:00`)).slice(0,2)}function _C(e){return t=>jr(new Date(`2017-01-0${t}T00:00:00+00:00`),"EEEEEE",{locale:e})}const wC=(e,t,n)=>{const r=[1,2,3,4,5,6,7];let o;if(e!==null)try{o=r.map(_C(e))}catch{o=r.map(md(t))}else o=r.map(md(t));const i=o.slice(0,n),s=o.slice(n+1,o.length);return[o[n]].concat(...s).concat(...i)},kC=(e,t)=>{const n=[];for(let r=+e[0];r<=+e[1];r++)n.push({value:+r,text:`${r}`});return t?n.reverse():n},SC=(e,t,n)=>{const r=[1,2,3,4,5,6,7,8,9,10,11,12].map(i=>{const s=i<10?`0${i}`:i;return new Date(`2017-${s}-01T00:00:00+00:00`)});if(e!==null)try{const i=n==="long"?"MMMM":"MMM";return r.map((s,l)=>{const u=jr(s,i,{locale:e});return{text:u.charAt(0).toUpperCase()+u.substring(1),value:l}})}catch{}const o=new Intl.DateTimeFormat(t,{month:n,timeZone:"UTC"});return r.map((i,s)=>{const l=o.format(i);return{text:l.charAt(0).toUpperCase()+l.substring(1),value:s}})},CC=e=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][e],wt=e=>{const t=a.unref(e);return t!=null&&t.$el?t==null?void 0:t.$el:t},TC=e=>Object.assign({type:"dot"},e),sh=e=>Array.isArray(e)?!!e[0]&&!!e[1]:!1,bi={prop:e=>`"${e}" prop must be enabled!`,dateArr:e=>`You need to use array as "model-value" binding in order to support "${e}"`},Wt=e=>e,vd=e=>e===0?e:!e||isNaN(+e)?null:+e,EC=e=>e===0?!0:!!e,gd=e=>e===null,xC=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},yd=e=>Object.assign({menuAppear:"",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down"},e),PC=e=>Object.assign({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",calendarWrap:"Calendar wrapper",calendarDays:"Calendar days",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:t=>`Increment ${t}`,decrementValue:t=>`Decrement ${t}`,openTpOverlay:t=>`Open ${t} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",day:()=>""},e),IC=e=>e===null?0:typeof e=="boolean"?e?2:0:+e>=2?+e:2,DC=(e,t,n)=>e||(typeof n=="string"?n:t),NC=e=>typeof e=="boolean"?e?yd({}):!1:yd(e),OC=()=>({enterSubmit:!0,tabSubmit:!0,openMenu:!0,rangeSeparator:" - "}),BC=e=>Object.assign({months:[],years:[],times:{hours:[],minutes:[],seconds:[]}},e),MC=e=>Object.assign({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0},e),fn=e=>{const t=()=>{if(e.partialRange)return null;throw new Error(bi.prop("partial-range"))},n=a.computed(()=>({ariaLabels:PC(e.ariaLabels),textInputOptions:Object.assign(OC(),e.textInputOptions),multiCalendars:IC(e.multiCalendars),previewFormat:DC(e.previewFormat,e.format,i()),filters:BC(e.filters),transitions:NC(e.transitions),startTime:m(),actionRow:MC(e.actionRow)})),r=V=>{if(e.range)return V();throw new Error(bi.prop("range"))},o=()=>{const V=e.enableSeconds?":ss":"";return e.is24?`HH:mm${V}`:`hh:mm${V} aa`},i=()=>e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?o():e.weekPicker?"MM/dd/yyyy":e.yearPicker?"yyyy":e.enableTimePicker?`MM/dd/yyyy, ${o()}`:"MM/dd/yyyy",s=(V,E)=>{if(typeof e.format=="function")return e.format(V);const P=E||i(),R=e.formatLocale?{locale:e.formatLocale}:void 0;return Array.isArray(V)?`${jr(V[0],P,R)}${e.modelAuto&&!V[1]?"":n.value.textInputOptions.rangeSeparator||"-"}${V[1]?jr(V[1],P,R):""}`:jr(V,P,R)},l=V=>e.timezone?gC(V,e.timezone):V,u=V=>e.timezone?yC(V,e.timezone):V,c=a.computed(()=>V=>{var E;return(E=e.hideNavigation)==null?void 0:E.includes(V)}),f=V=>{var E,P,R,G;return Array.isArray(e.allowedDates)&&!((E=e.allowedDates)!=null&&E.length)?!0:(P=e.arrMapValues)!=null&&P.allowedDates?!T(V,e.arrMapValues.allowedDates):(R=e.allowedDates)!=null&&R.length?!((G=e.allowedDates)!=null&&G.some(ie=>ot(l(ae(ie)),l(V)))):!1},p=V=>{var E;const P=e.maxDate?nn(l(V),l(ae(e.maxDate))):!1,R=e.minDate?qt(l(V),l(ae(e.minDate))):!1,G=T(V,(E=e.arrMapValues)!=null&&E.disabledDates?e.arrMapValues.disabledDates:e.disabledDates),ie=n.value.filters.months.map(Be=>+Be).includes(ct(V)),oe=e.disabledWeekDays.length?e.disabledWeekDays.some(Be=>+Be===I1(V)):!1,Ie=f(V),Ee=ht(V),fe=Ee<+e.yearRange[0]||Ee>+e.yearRange[1];return!(P||R||G||ie||fe||oe||Ie)},h=V=>{const E={hours:ir(ae()),minutes:sr(ae()),seconds:e.enableSeconds?Ta(ae()):0};return Object.assign(E,V)},m=()=>e.range?e.startTime&&Array.isArray(e.startTime)?[h(e.startTime[0]),h(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?h(e.startTime):null,y=V=>!p(V),k=V=>Array.isArray(V)?eo(V[0])&&(V[1]?eo(V[1]):!0):V?eo(V):!1,b=V=>V instanceof Date?V:Rk(V),w=V=>{const E=qr(l(V),{weekStartsOn:+e.weekStart}),P=xw(l(V),{weekStartsOn:+e.weekStart});return[E,P]},T=(V,E)=>V?E instanceof Map?!!E.get(H(V)):Array.isArray(E)?E.some(P=>ot(l(ae(P)),l(V))):E(ae(JSON.parse(JSON.stringify(V)))):!0,O=(V,E,P)=>{let R=V?ae(V):ae();return(E||E===0)&&(R=ua(R,E)),P&&(R=ur(R,P)),R},_=V=>Ot(ae(),zo(V)),B=V=>Ot(ae(),{hours:+V.hours||0,minutes:+V.minutes||0,seconds:+V.seconds||0}),C=(V,E,P,R)=>{if(!V)return!0;if(R){const G=P==="max"?vo(V,E):mo(V,E),ie={seconds:0,milliseconds:0};return G||Vr(Ot(V,ie),Ot(E,ie))}return P==="max"?V.getTime()<=E.getTime():V.getTime()>=E.getTime()},I=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,F=V=>Array.isArray(V)?[V[0]?_(V[0]):null,V[1]?_(V[1]):null]:_(V),q=V=>{const E=e.maxTime?B(e.maxTime):ae(e.maxDate);return Array.isArray(V)?C(V[0],E,"max",!!e.maxDate)&&C(V[1],E,"max",!!e.maxDate):C(V,E,"max",!!e.maxDate)},W=(V,E)=>{const P=e.minTime?B(e.minTime):ae(e.minDate);return Array.isArray(V)?C(V[0],P,"min",!!e.minDate)&&C(V[1],P,"min",!!e.minDate)&&E:C(V,P,"min",!!e.minDate)&&E},M=V=>{let E=!0;if(!V||I())return!0;const P=!e.minDate&&!e.maxDate?F(V):V;if((e.maxTime||e.maxDate)&&(E=q(Wt(P))),(e.minTime||e.minDate)&&(E=W(Wt(P),E)),e.disabledTimes){const R=Array.isArray(V)?[zo(V[0]),V[1]?zo(V[1]):void 0]:zo(V);E=!e.disabledTimes(R)}return E},D=(V,E)=>{const P=ae(JSON.parse(JSON.stringify(V))),R=[];for(let G=0;G<7;G++){const ie=lr(P,G),oe=ct(ie)!==E;R.push({text:e.hideOffsetDates&&oe?"":ie.getDate(),value:ie,current:!oe,classData:{}})}return R},$=(V,E)=>{switch(e.sixWeeks===!0?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[V==0,!0];case"fair":return[V==0||E>V,!0];case"append":return[!1,!1];default:return[!1,!1]}},Y=(V,E)=>{const P=[],R=ae(l(new Date(E,V))),G=ae(l(new Date(E,V+1,0))),ie=e.weekStart,oe=qr(R,{weekStartsOn:ie}),Ie=Ee=>{const fe=D(Ee,V);if(P.push({days:fe}),!P[P.length-1].days.some(Be=>ot(yn(Be.value),yn(G)))){const Be=lr(Ee,7);Ie(Be)}};if(Ie(oe),e.sixWeeks&&P.length<6){const Ee=6-P.length,fe=(R.getDay()+7-ie)%7,Be=6-(G.getDay()+7-ie)%7,[$e,ze]=$(fe,Be);for(let Ge=1;Ge<=Ee;Ge++)if(ze?!!(Ge%2)==$e:$e){const Ke=P[0].days[0],ve=D(lr(Ke.value,-7),ct(R));P.unshift({days:ve})}else{const Ke=P[P.length-1],ve=Ke.days[Ke.days.length-1],Qe=D(lr(ve.value,1),ct(R));P.push({days:Qe})}}return P},X=(V,E,P)=>[Ot(ae(V),{date:1}),Ot(ae(),{month:E,year:P,date:1})],K=(V,E)=>qt(...X(e.minDate,V,E))||ot(...X(e.minDate,V,E)),j=(V,E)=>nn(...X(e.maxDate,V,E))||ot(...X(e.maxDate,V,E)),U=(V,E,P)=>{let R=!1;return e.maxDate&&P&&j(V,E)&&(R=!0),e.minDate&&!P&&K(V,E)&&(R=!0),R},S=(V,E,P,R)=>{let G=!1;return R?e.minDate&&e.maxDate?G=U(V,E,P):(e.minDate&&K(V,E)||e.maxDate&&j(V,E))&&(G=!0):G=!0,G},H=V=>{const E=yn(l(ae(V))).toISOString(),[P]=E.split("T");return P},Z=V=>new Map(V.map(E=>[H(E),!0])),Q=V=>Array.isArray(V)&&V.length>0;return{checkPartialRangeValue:t,checkRangeEnabled:r,getZonedDate:l,getZonedToUtc:u,formatDate:s,getDefaultPattern:i,validateDate:p,getDefaultStartTime:m,isDisabled:y,isValidDate:k,sanitizeDate:b,getWeekFromDate:w,matchDate:T,setDateMonthOrYear:O,isValidTime:M,getCalendarDays:Y,validateMonthYearInRange:S,validateMaxDate:j,validateMinDate:K,assignDefaultTime:h,mapDatesArrToMap:V=>{Q(e.allowedDates)&&(V.allowedDates=Z(e.allowedDates)),Q(e.highlight)&&(V.highlightedDates=Z(e.highlight)),Q(e.disabledDates)&&(V.disabledDates=Z(e.disabledDates))},defaults:n,hideNavigationButtons:c}},pt=a.reactive({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),Fs=a.ref(null),jo=a.ref(!1),Hs=a.ref(!1),Us=a.ref(!1),zs=a.ref(!1),Kt=a.ref(0),Lt=a.ref(0),Er=()=>{const e=a.computed(()=>jo.value?[...pt.selectionGrid,pt.actionRow].filter(p=>p.length):Hs.value?[...pt.timePicker[0],...pt.timePicker[1],zs.value?[]:[Fs.value],pt.actionRow].filter(p=>p.length):Us.value?[...pt.monthPicker,pt.actionRow]:[pt.monthYear,...pt.calendar,pt.time,pt.actionRow].filter(p=>p.length)),t=p=>{Kt.value=p?Kt.value+1:Kt.value-1;let h=null;e.value[Lt.value]&&(h=e.value[Lt.value][Kt.value]),h||(Kt.value=p?Kt.value-1:Kt.value+1)},n=p=>{Lt.value===0&&!p||Lt.value===e.value.length&&p||(Lt.value=p?Lt.value+1:Lt.value-1,e.value[Lt.value]?e.value[Lt.value]&&!e.value[Lt.value][Kt.value]&&Kt.value!==0&&(Kt.value=e.value[Lt.value].length-1):Lt.value=p?Lt.value-1:Lt.value+1)},r=p=>{let h=null;e.value[Lt.value]&&(h=e.value[Lt.value][Kt.value]),h?h.focus({preventScroll:!jo.value}):Kt.value=p?Kt.value-1:Kt.value+1},o=()=>{t(!0),r(!0)},i=()=>{t(!1),r(!1)},s=()=>{n(!1),r(!0)},l=()=>{n(!0),r(!0)},u=(p,h)=>{pt[h]=p},c=(p,h)=>{pt[h]=p},f=()=>{Kt.value=0,Lt.value=0};return{buildMatrix:u,buildMultiLevelMatrix:c,setTimePickerBackRef:p=>{Fs.value=p},setSelectionGrid:p=>{jo.value=p,f(),p||(pt.selectionGrid=[])},setTimePicker:(p,h=!1)=>{Hs.value=p,zs.value=h,f(),p||(pt.timePicker[0]=[],pt.timePicker[1]=[])},setTimePickerElements:(p,h=0)=>{pt.timePicker[h]=p},arrowRight:o,arrowLeft:i,arrowUp:s,arrowDown:l,clearArrowNav:()=>{pt.monthYear=[],pt.calendar=[],pt.time=[],pt.actionRow=[],pt.selectionGrid=[],pt.timePicker[0]=[],pt.timePicker[1]=[],jo.value=!1,Hs.value=!1,zs.value=!1,Us.value=!1,f(),Fs.value=null},setMonthPicker:p=>{Us.value=p,f()},refSets:pt}},bd=e=>Array.isArray(e),Br=e=>Array.isArray(e),_d=e=>Array.isArray(e)&&e.length===2,RC=(e,t,n,r,o)=>{const{getDefaultStartTime:i,isDisabled:s,sanitizeDate:l,getWeekFromDate:u,setDateMonthOrYear:c,validateMonthYearInRange:f,defaults:p}=fn(e),h=a.computed({get:()=>e.internalModelValue,set:L=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",L)}}),m=a.ref([]);a.watch(h,(L,N)=>{e.range?I():Vr(L,N)||I()});const y=a.toRef(e,"multiCalendars");a.watch(y,()=>{se(0)});const k=a.ref([{month:ct(ae()),year:ht(ae())}]);a.watch(k,()=>{k.value.forEach((L,N)=>{t("update-month-year",{instance:N,month:L.month,year:L.year})})},{deep:!0});const b=a.reactive({hours:e.range?[ir(ae()),ir(ae())]:ir(ae()),minutes:e.range?[sr(ae()),sr(ae())]:sr(ae()),seconds:e.range?[0,0]:0}),w=a.computed(()=>L=>k.value[L]?k.value[L].month:0),T=a.computed(()=>L=>k.value[L]?k.value[L].year:0),O=a.computed(()=>{var L;return(L=e.flow)!=null&&L.length&&!e.partialFlow?o.value===e.flow.length:!0}),_=(L,N,ee)=>{var re,ge;k.value[L]||(k.value[L]={month:0,year:0}),k.value[L].month=gd(N)?(re=k.value[L])==null?void 0:re.month:N,k.value[L].year=gd(ee)?(ge=k.value[L])==null?void 0:ge.year:ee},B=(L,N)=>{b[L]=N},C=()=>{e.startDate&&(_(0,ct(ae(e.startDate)),ht(ae(e.startDate))),p.value.multiCalendars&&se(0))};a.onMounted(()=>{h.value||(C(),p.value.startTime&&j()),I(!0),e.focusStartDate&&e.startDate&&C()});const I=(L=!1)=>{if(h.value)return Array.isArray(h.value)?(m.value=h.value,D(L)):q(h.value,L);if(e.timePicker)return $();if(e.monthPicker&&!e.range)return Y();if(e.yearPicker&&!e.range)return X();if(p.value.multiCalendars&&L&&!e.startDate)return F(ae(),L)},F=(L,N=!1)=>{if((!p.value.multiCalendars||!e.multiStatic||N)&&_(0,ct(L),ht(L)),p.value.multiCalendars)for(let ee=1;ee<p.value.multiCalendars;ee++){const re=Ot(ae(),{month:w.value(ee-1),year:T.value(ee-1)}),ge=Bp(re,{months:1});k.value[ee]={month:ct(ge),year:ht(ge)}}},q=(L,N)=>{F(L),B("hours",ir(L)),B("minutes",sr(L)),B("seconds",Ta(L)),p.value.multiCalendars&&N&&S()},W=(L,N)=>{L[1]&&e.showLastInRange?F(L[1],N):F(L[0],N);const ee=(re,ge)=>[re(L[0]),L[1]?re(L[1]):b[ge][1]];B("hours",ee(ir,"hours")),B("minutes",ee(sr,"minutes")),B("seconds",ee(Ta,"seconds"))},M=(L,N)=>{if((e.range||e.weekPicker)&&!e.multiDates)return W(L,N);if(e.multiDates){const ee=L[L.length-1];return q(ee,N)}},D=L=>{const N=h.value;M(N,L),p.value.multiCalendars&&e.multiCalendarsSolo&&S()},$=()=>{if(j(),!e.range)h.value=mn(ae(),b.hours,b.minutes,K());else{const L=b.hours,N=b.minutes;h.value=[mn(ae(),L[0],N[0],K()),mn(ae(),L[1],N[1],K(!1))]}},Y=()=>{e.multiDates?h.value=[c(ae(),w.value(0),T.value(0))]:h.value=c(ae(),w.value(0),T.value(0))},X=()=>{h.value=ae()},K=(L=!0)=>e.enableSeconds?Array.isArray(b.seconds)?L?b.seconds[0]:b.seconds[1]:b.seconds:0,j=()=>{const L=i();if(L){const N=Array.isArray(L),ee=N?[+L[0].hours,+L[1].hours]:+L.hours,re=N?[+L[0].minutes,+L[1].minutes]:+L.minutes,ge=N?[+L[0].seconds,+L[1].seconds]:+L.seconds;B("hours",ee),B("minutes",re),e.enableSeconds&&B("seconds",ge)}},U=()=>Array.isArray(h.value)&&h.value.length?h.value[h.value.length-1]:null,S=()=>{if(Array.isArray(h.value)&&h.value.length===2){const L=ae(ae(h.value[1]?h.value[1]:zn(h.value[0],1))),[N,ee]=[ct(h.value[0]),ht(h.value[0])],[re,ge]=[ct(h.value[1]),ht(h.value[1])];(N!==re||N===re&&ee!==ge)&&e.multiCalendarsSolo&&_(1,ct(L),ht(L))}else h.value&&!Array.isArray(h.value)&&_(0,ct(h.value),ht(h.value))},H=L=>{const N=zn(L,1);return{month:ct(N),year:ht(N)}},Z=L=>{const N=ct(ae(L)),ee=ht(ae(L));if(_(0,N,ee),p.value.multiCalendars>0)for(let re=1;re<p.value.multiCalendars;re++){const ge=H(Ot(ae(L),{year:w.value(re-1),month:T.value(re-1)}));_(re,ge.month,ge.year)}},Q=L=>{if(h.value&&Array.isArray(h.value))if(h.value.some(N=>ot(L,N))){const N=h.value.filter(ee=>!ot(ee,L));h.value=N.length?N:null}else(e.multiDatesLimit&&+e.multiDatesLimit>h.value.length||!e.multiDatesLimit)&&h.value.push(L);else h.value=[L]},V=(L,N)=>{const ee=nn(L,N)?N:L,re=nn(N,L)?N:L;return Jc({start:ee,end:re})},E=(L,N=0)=>{if(Array.isArray(h.value)&&h.value[N]){const ee=Tw(L,h.value[N]),re=V(h.value[N],L),ge=re.length===1?0:re.filter(qe=>s(qe)).length,we=Math.abs(ee)-ge;if(e.minRange&&e.maxRange)return we>=+e.minRange&&we<=+e.maxRange;if(e.minRange)return we>=+e.minRange;if(e.maxRange)return we<=+e.maxRange}return!0},P=L=>Array.isArray(h.value)&&h.value.length===2?e.fixedStart&&(nn(L,h.value[0])||ot(L,h.value[0]))?[h.value[0],L]:e.fixedEnd&&(qt(L,h.value[1])||ot(L,h.value[1]))?[L,h.value[1]]:(t("invalid-fixed-range",L),h.value):[],R=()=>{e.autoApply&&O.value&&t("auto-apply",e.partialFlow)},G=()=>{e.autoApply&&t("select-date")},ie=L=>!Jc({start:L[0],end:L[1]}).some(N=>s(N)),oe=L=>(h.value=u(ae(L.value)),R()),Ie=L=>{const N=mn(ae(L.value),b.hours,b.minutes,K());e.multiDates?Q(N):h.value=N,n(),R()},Ee=()=>{m.value=h.value?h.value.slice():[],m.value.length===2&&!(e.fixedStart||e.fixedEnd)&&(m.value=[])},fe=(L,N)=>{const ee=[ae(L.value),lr(ae(L.value),+e.autoRange)];ie(ee)&&(N&&Z(L.value),m.value=ee)},Be=L=>{$e(L.value)||!E(L.value,e.fixedStart?0:1)||(m.value=P(ae(L.value)))},$e=L=>e.noDisabledRange?V(m.value[0],L).some(N=>s(N)):!1,ze=(L,N)=>{if(Ee(),e.autoRange)return fe(L,N);if(e.fixedStart||e.fixedEnd)return Be(L);m.value[0]?E(ae(L.value))&&!$e(L.value)&&(qt(ae(L.value),ae(m.value[0]))?(m.value.unshift(ae(L.value)),t("range-end",m.value[0])):(m.value[1]=ae(L.value),t("range-end",m.value[1]))):(m.value[0]=ae(L.value),t("range-start",m.value[0]))},Ge=L=>{m.value[L]=mn(m.value[L],b.hours[L],b.minutes[L],K(L!==1))},Ke=()=>{var L,N;m.value[0]&&m.value[1]&&+((L=m.value)==null?void 0:L[0])>+((N=m.value)==null?void 0:N[1])&&(m.value.reverse(),t("range-start",m.value[0]),t("range-end",m.value[1]))},ve=()=>{m.value.length&&(m.value[0]&&!m.value[1]?Ge(0):(Ge(0),Ge(1),n()),Ke(),h.value=m.value.slice(),m.value[0]&&m.value[1]&&e.autoApply&&t("auto-apply"),m.value[0]&&!m.value[1]&&e.modelAuto&&e.autoApply&&t("auto-apply"))},Qe=(L,N=!1)=>{if(!(s(L.value)||!L.current&&e.hideOffsetDates)){if(e.weekPicker)return oe(L);if(!e.range)return Ie(L);Br(b.hours)&&Br(b.minutes)&&!e.multiDates&&(ze(L,N),ve())}},Te=L=>{const N=L[0];return e.weekNumbers==="local"?A1(N.value,{weekStartsOn:+e.weekStart}):e.weekNumbers==="iso"?O1(N.value):typeof e.weekNumbers=="function"?e.weekNumbers(N.value):""},se=L=>{for(let N=L-1;N>=0;N--){const ee=ma(Ot(ae(),{month:w.value(N+1),year:T.value(N+1)}),1);_(N,ct(ee),ht(ee))}for(let N=L+1;N<=p.value.multiCalendars-1;N++){const ee=zn(Ot(ae(),{month:w.value(N-1),year:T.value(N-1)}),1);_(N,ct(ee),ht(ee))}},ce=L=>c(ae(),w.value(L),T.value(L)),me=L=>mn(L,b.hours,b.minutes,K()),Pt=L=>{Q(ce(L))},xe=(L,N)=>{const ee=e.monthPicker?w.value(L)!==N.month||!N.fromNav:T.value(L)!==N.year||!N.fromNav;if(_(L,N.month,N.year),p.value.multiCalendars&&!e.multiCalendarsSolo&&se(L),e.monthPicker||e.yearPicker)if(e.multiDates)ee&&Pt(L);else if(e.range){if(ee&&E(ce(L))){let re=h.value?h.value.slice():[];re.length===2&&re[1]!==null&&(re=[]),re.length?qt(ce(L),re[0])?re.unshift(ce(L)):re[1]=ce(L):re=[ce(L)],h.value=re}}else(e.autoApplyMonth||ee)&&(h.value=ce(L));r(e.multiCalendarsSolo?L:void 0)},Mt=async(L=!1)=>{if(e.autoApply&&(e.monthPicker||e.yearPicker)){await a.nextTick();const N=e.monthPicker?L:!1;e.range?t("auto-apply",N||!h.value||h.value.length===1):t("auto-apply",N)}n()},Ut=(L,N)=>{const ee=Ot(ae(),{month:w.value(N),year:T.value(N)}),re=L<0?zn(ee,1):ma(ee,1);f(ct(re),ht(re),L<0,e.preventMinMaxNavigation)&&(_(N,ct(re),ht(re)),p.value.multiCalendars&&!e.multiCalendarsSolo&&se(N),r())},Rt=L=>{bd(L)&&bd(h.value)&&Br(b.hours)&&Br(b.minutes)?(L[0]&&h.value[0]&&(h.value[0]=mn(L[0],b.hours[0],b.minutes[0],K())),L[1]&&h.value[1]&&(h.value[1]=mn(L[1],b.hours[1],b.minutes[1],K(!1)))):e.multiDates&&Array.isArray(h.value)?h.value[h.value.length-1]=me(L):!e.range&&!_d(L)&&(h.value=me(L)),t("time-update")},zt=(L,N=!0,ee=!1)=>{const re=N?L:b.hours,ge=!N&&!ee?L:b.minutes,we=ee?L:b.seconds;if(e.range&&_d(h.value)&&Br(re)&&Br(ge)&&Br(we)&&!e.disableTimeRangeValidation){const qe=le=>mn(h.value[le],re[le],ge[le],we[le]),J=le=>yu(h.value[le],0);if(ot(h.value[0],h.value[1])&&(mo(qe(0),J(1))||vo(qe(1),J(0))))return}if(B("hours",re),B("minutes",ge),B("seconds",we),h.value)if(e.multiDates){const qe=U();qe&&Rt(qe)}else Rt(h.value);else e.timePicker&&Rt(e.range?[ae(),ae()]:ae());n()},kn=(L,N)=>{e.monthChangeOnScroll&&Ut(e.monthChangeOnScroll!=="inverse"?-L.deltaY:L.deltaY,N)},Sn=(L,N,ee=!1)=>{e.monthChangeOnArrows&&e.vertical===ee&&Et(L,N)},Et=(L,N)=>{Ut(L==="right"?-1:1,N)};return{time:b,month:w,year:T,modelValue:h,calendars:k,monthYearSelect:Mt,isDisabled:s,updateTime:zt,getWeekNum:Te,selectDate:Qe,updateMonthYear:xe,handleScroll:kn,getMarker:L=>e.markers.find(N=>ot(l(L.value),l(N.date))),handleArrow:Sn,handleSwipe:Et,selectCurrentDate:()=>{e.range?h.value&&Array.isArray(h.value)&&h.value[0]?h.value=qt(ae(),h.value[0])?[ae(),h.value[0]]:[h.value[0],ae()]:h.value=[ae()]:h.value=ae(),G()},presetDateRange:(L,N)=>{N||L.length&&L.length<=2&&e.range&&(h.value=L.map(ee=>ae(ee)),G(),e.multiCalendars&&a.nextTick().then(()=>I(!0)))}}},AC=(e,t,n)=>{const r=a.ref(),{getZonedToUtc:o,getZonedDate:i,formatDate:s,getDefaultPattern:l,checkRangeEnabled:u,checkPartialRangeValue:c,isValidDate:f,setDateMonthOrYear:p,defaults:h}=fn(t),m=a.ref(""),y=a.toRef(t,"format");a.watch(r,()=>{e("internal-model-change",r.value)}),a.watch(y,()=>{U()});const k=E=>{const P=E||ae();return t.modelType?H(P):{hours:ir(P),minutes:sr(P),seconds:t.enableSeconds?Ta(P):0}},b=E=>t.modelType?H(E):{month:ct(E),year:ht(E)},w=E=>Array.isArray(E)?u(()=>[ur(ae(),E[0]),E[1]?ur(ae(),E[1]):c()]):ur(ae(),+E),T=(E,P)=>(typeof E=="string"||typeof E=="number")&&t.modelType?S(E):P,O=E=>Array.isArray(E)?[T(E[0],mn(null,+E[0].hours,+E[0].minutes,E[0].seconds)),T(E[1],mn(null,+E[1].hours,+E[1].minutes,E[1].seconds))]:T(E,mn(null,E.hours,E.minutes,E.seconds)),_=E=>Array.isArray(E)?t.multiDates?E.map(P=>T(P,p(null,+P.month,+P.year))):u(()=>[T(E[0],p(null,+E[0].month,+E[0].year)),T(E[1],E[1]?p(null,+E[1].month,+E[1].year):c())]):T(E,p(null,+E.month,+E.year)),B=E=>{if(Array.isArray(E))return E.map(P=>S(P));throw new Error(bi.dateArr("multi-dates"))},C=E=>{if(Array.isArray(E))return[ae(E[0]),ae(E[1])];throw new Error(bi.dateArr("week-picker"))},I=E=>t.modelAuto?Array.isArray(E)?[S(E[0]),S(E[1])]:t.autoApply?[S(E)]:[S(E),null]:Array.isArray(E)?u(()=>[S(E[0]),E[1]?S(E[1]):c()]):S(E),F=()=>{Array.isArray(r.value)&&t.range&&r.value.length===1&&r.value.push(c())},q=()=>{const E=r.value;return[H(E[0]),E[1]?H(E[1]):c()]},W=()=>r.value[1]?q():H(Wt(r.value[0])),M=()=>(r.value||[]).map(E=>H(E)),D=()=>(F(),t.modelAuto?W():t.multiDates?M():Array.isArray(r.value)?u(()=>q()):H(Wt(r.value))),$=E=>E?t.timePicker?O(Wt(E)):t.monthPicker?_(Wt(E)):t.yearPicker?w(Wt(E)):t.multiDates?B(Wt(E)):t.weekPicker?C(Wt(E)):I(Wt(E)):null,Y=E=>{const P=$(E);f(Wt(P))?(r.value=Wt(P),U()):(r.value=null,m.value="")},X=()=>{var E;const P=R=>{var G;return jr(R,(G=h.value.textInputOptions)==null?void 0:G.format)};return`${P(r.value[0])} ${(E=h.value.textInputOptions)==null?void 0:E.rangeSeparator} ${r.value[1]?P(r.value[1]):""}`},K=()=>{var E;return n.value&&r.value?Array.isArray(r.value)?X():jr(r.value,(E=h.value.textInputOptions)==null?void 0:E.format):s(r.value)},j=()=>{var E;return r.value?t.multiDates?r.value.map(P=>s(P)).join("; "):t.textInput&&typeof((E=h.value.textInputOptions)==null?void 0:E.format)=="string"?K():s(r.value):""},U=()=>{!t.format||typeof t.format=="string"||t.textInput&&typeof t.textInputOptions.format=="string"?m.value=j():m.value=t.format(r.value)},S=E=>{if(t.utc){const P=new Date(E);return t.utc==="preserve"?new Date(P.getTime()+P.getTimezoneOffset()*6e4):P}return t.modelType?t.modelType==="date"||t.modelType==="timestamp"?i(new Date(E)):t.modelType==="format"&&(typeof t.format=="string"||!t.format)?hl(E,l(),new Date):i(hl(E,t.modelType,new Date)):i(new Date(E))},H=E=>E?t.utc?WS(E,t.utc==="preserve",t.enableSeconds):t.modelType?t.modelType==="timestamp"?+o(E):t.modelType==="format"&&(typeof t.format=="string"||!t.format)?s(o(E)):s(o(E),t.modelType):o(E):"",Z=E=>{e("update:model-value",E)},Q=E=>Array.isArray(r.value)?t.multiDates?r.value.map(P=>E(P)):[E(r.value[0]),r.value[1]?E(r.value[1]):c()]:E(Wt(r.value)),V=E=>Z(Wt(Q(E)));return{inputValue:m,internalModelValue:r,checkBeforeEmit:()=>r.value?t.range?t.partialRange?r.value.length>=1:r.value.length===2:!!r.value:!1,parseExternalModelValue:Y,formatInputValue:U,emitModelValue:()=>(U(),t.monthPicker?V(b):t.timePicker?V(k):t.yearPicker?V(ht):t.weekPicker?Z(r.value):Z(D()))}},$C=(e,t)=>{const{validateMonthYearInRange:n,validateMaxDate:r,validateMinDate:o,defaults:i}=fn(e),s=(p,h)=>{let m=p;return i.value.filters.months.includes(ct(m))?(m=h?zn(p,1):ma(p,1),s(m,h)):m},l=(p,h)=>{let m=p;return i.value.filters.years.includes(ht(m))?(m=h?Mp(p,1):Qk(p,1),l(m,h)):m},u=p=>{const h=Ot(new Date,{month:e.month,year:e.year});let m=p?zn(h,1):ma(h,1);e.disableYearSelect&&(m=ur(m,e.year));let y=ct(m),k=ht(m);i.value.filters.months.includes(y)&&(m=s(m,p),y=ct(m),k=ht(m)),i.value.filters.years.includes(k)&&(m=l(m,p),k=ht(m)),n(y,k,p,e.preventMinMaxNavigation)&&c(y,k)},c=(p,h)=>{t("update-month-year",{month:p,year:h})},f=a.computed(()=>p=>{if(!e.preventMinMaxNavigation||p&&!e.maxDate||!p&&!e.minDate)return!1;const h=Ot(new Date,{month:e.month,year:e.year}),m=p?zn(h,1):ma(h,1),y=[ct(m),ht(m)];return p?!r(...y):!o(...y)});return{handleMonthYearChange:u,isDisabled:f,updateMonthYear:c}};var ri=(e=>(e.center="center",e.left="left",e.right="right",e))(ri||{});const LC=(e,t,n,r)=>{const o=a.ref({top:"0",left:"0",transform:"none",opacity:"0"}),i=a.ref(!1),s=a.toRef(r,"teleportCenter"),l=a.computed(()=>i.value?"-100%":"0"),u=()=>{c(),o.value.opacity="0"};a.watch(s,()=>{T()}),a.onMounted(()=>{c()});const c=()=>{const D=wt(t);if(D){const{top:$,left:Y,width:X,height:K}=y(D);o.value.top=`${$+K/2}px`,m(Y,X,50)}},f=D=>{if(r.teleport){const $=D.getBoundingClientRect();return{left:$.left+window.scrollX,top:$.top+window.scrollY}}return{top:0,left:0}},p=(D,$)=>{o.value.left=`${D+$}px`,o.value.transform=`translate(-100%, ${l.value})`},h=D=>{o.value.left=`${D}px`,o.value.transform=`translate(0, ${l.value})`},m=(D,$,Y)=>{r.position===ri.left&&h(D),r.position===ri.right&&p(D,$),r.position===ri.center&&(o.value.left=`${D+$/2}px`,o.value.transform=Y?`translate(-50%, -${Y}%)`:`translate(-50%, ${l.value})`)},y=D=>{const{width:$,height:Y}=D.getBoundingClientRect(),{top:X,left:K}=r.altPosition?r.altPosition(D):f(D);return{top:+X,left:+K,width:$,height:Y}},k=()=>{const D=wt(t);if(D){const{top:$,left:Y,width:X,height:K}=y(D),j=I();o.value.top=`${$+K/2}px`,m(Y,X,j==="top"?100:0)}},b=()=>{o.value.left="50%",o.value.top="50%",o.value.transform="translate(-50%, -50%)",o.value.position="fixed",delete o.value.opacity},w=()=>{const D=wt(t),{top:$,left:Y,transform:X}=r.altPosition(D);o.value={top:`${$}px`,left:`${Y}px`,transform:X||""}},T=(D=!0)=>{if(!r.inline)return s.value?b():r.altPosition!==null?w():(D&&n("recalculate-position"),q())},O=({inputEl:D,menuEl:$,left:Y,width:X})=>{window.screen.width>768&&m(Y,X),C(D,$)},_=(D,$)=>{const{top:Y,left:X,height:K,width:j}=y(D);o.value.top=`${K+Y+ +r.offset}px`,i.value=!1,O({inputEl:D,menuEl:$,left:X,width:j})},B=(D,$)=>{const{top:Y,left:X,width:K}=y(D);o.value.top=`${Y-+r.offset}px`,i.value=!0,O({inputEl:D,menuEl:$,left:X,width:K})},C=(D,$)=>{if(r.autoPosition){const{left:Y,width:X}=y(D),{left:K,right:j}=$.getBoundingClientRect();return K<=0?h(Y):j>=document.documentElement.clientWidth?p(Y,X):m(Y,X)}},I=()=>{const D=wt(e),$=wt(t);if(D&&$){const{height:Y}=D.getBoundingClientRect(),{top:X,height:K}=$.getBoundingClientRect(),j=window.innerHeight-X-K,U=X;return Y<=j?"bottom":Y>j&&Y<=U?"top":j>=U?"bottom":"top"}return"bottom"},F=(D,$)=>I()==="bottom"?_(D,$):B(D,$),q=()=>{const D=wt(t),$=wt(e);if(D&&$)return r.autoPosition?F(D,$):_(D,$)},W=function(D){if(D){const $=D.scrollHeight>D.clientHeight,Y=window.getComputedStyle(D).overflowY.indexOf("hidden")!==-1;return $&&!Y}return!0},M=function(D){return!D||D===document.body||D.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:W(D)?D:M(D.parentNode)};return{openOnTop:i,menuStyle:o,resetPosition:u,setMenuPosition:T,setInitialPosition:k,getScrollableParent:M}},ra=[{name:"clock-icon",use:["time","calendar"]},{name:"arrow-left",use:["month-year","calendar"]},{name:"arrow-right",use:["month-year","calendar"]},{name:"arrow-up",use:["time","calendar","month-year"]},{name:"arrow-down",use:["time","calendar","month-year"]},{name:"calendar-icon",use:["month-year","time","calendar"]},{name:"day",use:["calendar"]},{name:"month-overlay-value",use:["calendar","month-year"]},{name:"year-overlay-value",use:["calendar","month-year"]},{name:"year-overlay",use:["month-year"]},{name:"month-overlay",use:["month-year"]},{name:"month-overlay-header",use:["month-year"]},{name:"year-overlay-header",use:["month-year"]},{name:"hours-overlay-value",use:["calendar","time"]},{name:"minutes-overlay-value",use:["calendar","time"]},{name:"seconds-overlay-value",use:["calendar","time"]},{name:"hours",use:["calendar","time"]},{name:"minutes",use:["calendar","time"]},{name:"month",use:["calendar","month-year"]},{name:"year",use:["calendar","month-year"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar"]},{name:"marker-tooltip",use:["calendar"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time"]},{name:"am-pm-button",use:["calendar","time"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year"]},{name:"time-picker",use:["menu"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar"]}],VC=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],FC={all:()=>ra,monthYear:()=>ra.filter(e=>e.use.includes("month-year")),input:()=>VC,timePicker:()=>ra.filter(e=>e.use.includes("time")),action:()=>ra.filter(e=>e.use.includes("action")),calendar:()=>ra.filter(e=>e.use.includes("calendar")),menu:()=>ra.filter(e=>e.use.includes("menu"))},Fr=(e,t,n)=>{const r=[];return FC[t]().forEach(o=>{e[o.name]&&r.push(o.name)}),n&&n.length&&n.forEach(o=>{o.slot&&r.push(o.slot)}),r},zi=e=>({transitionName:a.computed(()=>t=>e&&typeof e!="boolean"?t?e.open:e.close:""),showTransition:!!e}),xr={multiCalendars:{type:[Boolean,Number,String],default:null},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},closeOnScroll:{type:Boolean,default:!1},autoPosition:{type:Boolean,default:!0},closeOnAutoApply:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:String,default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},menuClassName:{type:String,default:null},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},multiCalendarsSolo:{type:Boolean,default:!1},calendarCellClassName:{type:String,default:null},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},showNowButton:{type:Boolean,default:!1},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},modeHeight:{type:[Number,String],default:255},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetRanges:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},minRange:{type:[Number,String],default:null},maxRange:{type:[Number,String],default:null},multiDatesLimit:{type:[Number,String],default:null},reverseYears:{type:Boolean,default:!1},keepActionRow:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},multiStatic:{type:Boolean,default:!0},disableTimeRangeValidation:{type:Boolean,default:!1},highlight:{type:[Array,Function],default:null},highlightWeekDays:{type:Array,default:null},highlightDisabledDays:{type:Boolean,default:!1},teleport:{type:[String,Boolean],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function],default:null},calendarClassName:{type:String,default:null},noSwipe:{type:Boolean,default:!1},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:Boolean,default:!1},partialRange:{type:Boolean,default:!0},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},inputClassName:{type:String,default:null},inlineWithInput:{type:Boolean,default:!1},textInputOptions:{type:Object,default:()=>null},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:Boolean,default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},onClickOutside:{type:Function,default:null},noDisabledRange:{type:Boolean,default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},allowPreventDefault:{type:Boolean,default:!1},closeOnClearValue:{type:Boolean,default:!0},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:Function,default:void 0},showLastInRange:{type:Boolean,default:!0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},autoApplyMonth:{type:Boolean,default:!0}},HC={key:1,class:"dp__input_wrap"},UC=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","onKeydown"],zC={key:2,class:"dp__clear_icon"},jC=a.defineComponent({__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...xr},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur"],setup(e,{expose:t,emit:n}){const r=e,{getDefaultPattern:o,isValidDate:i,defaults:s,getDefaultStartTime:l,assignDefaultTime:u}=fn(r),c=a.ref(),f=a.ref(null),p=a.ref(!1),h=a.ref(!1),m=a.computed(()=>({dp__pointer:!r.disabled&&!r.readonly&&!r.textInput,dp__disabled:r.disabled,dp__input_readonly:!r.textInput,dp__input:!0,dp__input_icon_pad:!r.hideInputIcon,dp__input_valid:r.state,dp__input_invalid:r.state===!1,dp__input_focus:p.value||r.isMenuOpen,dp__input_reg:!r.textInput,[r.inputClassName]:!!r.inputClassName})),y=()=>{n("set-input-date",null),r.autoApply&&(n("set-empty-date"),c.value=null)},k=M=>{var D;const $=l();return jS(M,((D=s.value.textInputOptions)==null?void 0:D.format)||o(),$||u({}),r.inputValue,h.value)},b=M=>{const{rangeSeparator:D}=s.value.textInputOptions,[$,Y]=M.split(`${D}`);if($){const X=k($.trim()),K=Y?k(Y.trim()):null,j=X&&K?[X,K]:[X];c.value=X?j:null}},w=()=>{h.value=!0},T=M=>{if(r.range)b(M);else if(r.multiDates){const D=M.split(";");c.value=D.map($=>k($.trim())).filter($=>$)}else c.value=k(M)},O=M=>{var D,$;const Y=typeof M=="string"?M:(D=M.target)==null?void 0:D.value;Y!==""?(($=s.value.textInputOptions)!=null&&$.openMenu&&!r.isMenuOpen&&n("open"),T(Y),n("set-input-date",c.value)):y(),h.value=!1,n("update:input-value",Y)},_=M=>{var D,$;r.textInput?(T(M.target.value),(D=s.value.textInputOptions)!=null&&D.enterSubmit&&i(c.value)&&r.inputValue!==""?(n("set-input-date",c.value,!0),c.value=null):($=s.value.textInputOptions)!=null&&$.enterSubmit&&r.inputValue===""&&(c.value=null,n("clear"))):I(M)},B=M=>{var D,$,Y;r.textInput&&(D=s.value.textInputOptions)!=null&&D.tabSubmit&&T(M.target.value),($=s.value.textInputOptions)!=null&&$.tabSubmit&&i(c.value)&&r.inputValue!==""?(n("set-input-date",c.value,!0),c.value=null):(Y=s.value.textInputOptions)!=null&&Y.tabSubmit&&r.inputValue===""&&(c.value=null,n("clear"))},C=()=>{p.value=!0,n("focus")},I=M=>{var D;M.preventDefault(),M.stopImmediatePropagation(),M.stopPropagation(),r.textInput&&(D=s.value.textInputOptions)!=null&&D.openMenu&&!r.inlineWithInput?(n("toggle"),s.value.textInputOptions.enterSubmit&&n("select-date")):r.textInput||n("toggle")},F=()=>{n("real-blur"),p.value=!1,(!r.isMenuOpen||r.inline&&r.inlineWithInput)&&n("blur"),r.autoApply&&r.textInput&&c.value&&!r.isMenuOpen&&(n("set-input-date",c.value),n("select-date"),c.value=null)},q=()=>{n("clear")},W=M=>{if(!r.textInput){if(M.code==="Tab")return;M.preventDefault()}};return t({focusInput:()=>{var M;(M=f.value)==null||M.focus({preventScroll:!0})},setParsedDate:M=>{c.value=M}}),(M,D)=>{var $;return a.openBlock(),a.createElementBlock("div",{onClick:I},[M.$slots.trigger&&!M.$slots["dp-input"]&&!M.inline?a.renderSlot(M.$slots,"trigger",{key:0}):a.createCommentVNode("",!0),!M.$slots.trigger&&(!M.inline||M.inlineWithInput)?(a.openBlock(),a.createElementBlock("div",HC,[M.$slots["dp-input"]&&!M.$slots.trigger&&!M.inline?a.renderSlot(M.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:O,onEnter:_,onTab:B,onClear:q,onBlur:F,onKeypress:W,onPaste:w}):a.createCommentVNode("",!0),M.$slots["dp-input"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("input",{key:1,ref_key:"inputRef",ref:f,id:M.uid?`dp-input-${M.uid}`:void 0,name:M.name,class:a.normalizeClass(m.value),inputmode:M.textInput?"text":"none",placeholder:M.placeholder,disabled:M.disabled,readonly:M.readonly,required:M.required,value:e.inputValue,autocomplete:M.autocomplete,"aria-label":($=a.unref(s).ariaLabels)==null?void 0:$.input,onInput:O,onKeydown:[a.withKeys(_,["enter"]),a.withKeys(B,["tab"]),W],onBlur:F,onFocus:C,onKeypress:W,onPaste:w},null,42,UC)),a.createElementVNode("div",{onClick:D[2]||(D[2]=Y=>n("toggle"))},[M.$slots["input-icon"]&&!M.hideInputIcon?(a.openBlock(),a.createElementBlock("span",{key:0,class:"dp__input_icon",onClick:D[0]||(D[0]=Y=>n("toggle"))},[a.renderSlot(M.$slots,"input-icon")])):a.createCommentVNode("",!0),!M.$slots["input-icon"]&&!M.hideInputIcon&&!M.$slots["dp-input"]?(a.openBlock(),a.createBlock(a.unref(Ui),{key:1,onClick:D[1]||(D[1]=Y=>n("toggle")),class:"dp__input_icon dp__input_icons"})):a.createCommentVNode("",!0)]),M.$slots["clear-icon"]&&e.inputValue&&M.clearable&&!M.disabled&&!M.readonly?(a.openBlock(),a.createElementBlock("span",zC,[a.renderSlot(M.$slots,"clear-icon",{clear:q})])):a.createCommentVNode("",!0),M.clearable&&!M.$slots["clear-icon"]&&e.inputValue&&!M.disabled&&!M.readonly?(a.openBlock(),a.createBlock(a.unref(zS),{key:3,class:"dp__clear_icon dp__input_icons",onClick:a.withModifiers(q,["stop","prevent"])},null,8,["onClick"])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])}}}),WC=["title"],qC={class:"dp__action_buttons"},YC=["onKeydown","disabled"],GC=a.defineComponent({__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},calendarWidth:{type:Number,default:0},...xr},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const n=e,{formatDate:r,isValidTime:o,defaults:i}=fn(n),{buildMatrix:s}=Er(),l=a.ref(null),u=a.ref(null);a.onMounted(()=>{n.arrowNavigation&&s([wt(l),wt(u)],"actionRow")});const c=a.computed(()=>n.range&&!n.partialRange&&n.internalModelValue?n.internalModelValue.length===2:!0),f=a.computed(()=>!p.value||!h.value||!c.value),p=a.computed(()=>!n.enableTimePicker||n.ignoreTimeValidation?!0:o(n.internalModelValue)),h=a.computed(()=>n.monthPicker?n.range&&Array.isArray(n.internalModelValue)?!n.internalModelValue.filter(B=>!O(B)).length:O(n.internalModelValue):!0),m=()=>{const B=i.value.previewFormat;return n.timePicker||n.monthPicker,B(Wt(n.internalModelValue))},y=()=>{const B=n.internalModelValue;return i.value.multiCalendars>0?`${k(B[0])} - ${k(B[1])}`:[k(B[0]),k(B[1])]},k=B=>r(B,i.value.previewFormat),b=a.computed(()=>!n.internalModelValue||!n.menuMount?"":typeof i.value.previewFormat=="string"?Array.isArray(n.internalModelValue)?n.internalModelValue.length===2&&n.internalModelValue[1]?y():n.multiDates?n.internalModelValue.map(B=>`${k(B)}`):n.modelAuto?`${k(n.internalModelValue[0])}`:`${k(n.internalModelValue[0])} -`:k(n.internalModelValue):m()),w=()=>n.multiDates?"; ":" - ",T=a.computed(()=>Array.isArray(b.value)?b.value.join(w()):b.value),O=B=>{if(!n.monthPicker)return!0;let C=!0;const I=ae(Ya(B));if(n.minDate&&n.maxDate){const F=ae(Ya(n.minDate)),q=ae(Ya(n.maxDate));return nn(I,F)&&qt(I,q)||ot(I,F)||ot(I,q)}if(n.minDate){const F=ae(Ya(n.minDate));C=nn(I,F)||ot(I,F)}if(n.maxDate){const F=ae(Ya(n.maxDate));C=qt(I,F)||ot(I,F)}return C},_=()=>{p.value&&h.value&&c.value?t("select-date"):t("invalid-select")};return(B,C)=>(a.openBlock(),a.createElementBlock("div",{class:"dp__action_row",style:a.normalizeStyle(e.calendarWidth?{width:`${e.calendarWidth}px`}:{})},[B.$slots["action-row"]?a.renderSlot(B.$slots,"action-row",a.normalizeProps(a.mergeProps({key:0},{internalModelValue:e.internalModelValue,disabled:f.value,selectDate:()=>B.$emit("select-date"),closePicker:()=>B.$emit("close-picker")}))):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.unref(i).actionRow.showPreview?(a.openBlock(),a.createElementBlock("div",{key:0,class:"dp__selection_preview",title:T.value},[B.$slots["action-preview"]?a.renderSlot(B.$slots,"action-preview",{key:0,value:e.internalModelValue}):a.createCommentVNode("",!0),B.$slots["action-preview"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(T.value),1)],64))],8,WC)):a.createCommentVNode("",!0),a.createElementVNode("div",qC,[B.$slots["action-buttons"]?a.renderSlot(B.$slots,"action-buttons",{key:0,value:e.internalModelValue}):a.createCommentVNode("",!0),B.$slots["action-buttons"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[!B.inline&&a.unref(i).actionRow.showCancel?(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",ref_key:"cancelButtonRef",ref:l,class:"dp__action_button dp__action_cancel",onClick:C[0]||(C[0]=I=>B.$emit("close-picker")),onKeydown:[C[1]||(C[1]=a.withKeys(I=>B.$emit("close-picker"),["enter"])),C[2]||(C[2]=a.withKeys(I=>B.$emit("close-picker"),["space"]))]},a.toDisplayString(B.cancelText),545)):a.createCommentVNode("",!0),B.showNowButton||a.unref(i).actionRow.showNow?(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",ref_key:"cancelButtonRef",ref:l,class:"dp__action_button dp__action_cancel",onClick:C[3]||(C[3]=I=>B.$emit("select-now")),onKeydown:[C[4]||(C[4]=a.withKeys(I=>B.$emit("select-now"),["enter"])),C[5]||(C[5]=a.withKeys(I=>B.$emit("select-now"),["space"]))]},a.toDisplayString(B.nowButtonLabel),545)):a.createCommentVNode("",!0),a.unref(i).actionRow.showSelect?(a.openBlock(),a.createElementBlock("button",{key:2,type:"button",class:"dp__action_button dp__action_select",onKeydown:[a.withKeys(_,["enter"]),a.withKeys(_,["space"])],onClick:_,disabled:f.value,ref_key:"selectButtonRef",ref:u},a.toDisplayString(B.selectText),41,YC)):a.createCommentVNode("",!0)],64))])],64))],4))}}),KC=["aria-label"],XC={class:"dp__calendar_header",role:"row"},JC={key:0,class:"dp__calendar_header_item",role:"gridcell"},QC=a.createElementVNode("div",{class:"dp__calendar_header_separator"},null,-1),ZC=["aria-label"],eT={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},tT={class:"dp__cell_inner"},nT=["aria-selected","aria-disabled","aria-label","onClick","onKeydown","onMouseenter","onMouseleave"],rT=a.defineComponent({__name:"Calendar",props:{mappedDates:{type:Array,default:()=>[]},getWeekNum:{type:Function,default:()=>""},specificMode:{type:Boolean,default:!1},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...xr},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:t,emit:n}){const r=e,{buildMultiLevelMatrix:o}=Er(),{setDateMonthOrYear:i,defaults:s}=fn(r),l=a.ref(null),u=a.ref({bottom:"",left:"",transform:""}),c=a.ref([]),f=a.ref(null),p=a.ref(!0),h=a.ref(""),m=a.ref({startX:0,endX:0,startY:0,endY:0}),y=a.ref([]),k=a.ref({left:"50%"}),b=a.computed(()=>r.calendar?r.calendar(r.mappedDates):r.mappedDates),w=a.computed(()=>r.dayNames?Array.isArray(r.dayNames)?r.dayNames:r.dayNames(r.locale,+r.weekStart):wC(r.formatLocale,r.locale,+r.weekStart));a.onMounted(()=>{n("mount",{cmp:"calendar",refs:c}),r.noSwipe||f.value&&(f.value.addEventListener("touchstart",D,{passive:!1}),f.value.addEventListener("touchend",$,{passive:!1}),f.value.addEventListener("touchmove",Y,{passive:!1})),r.monthChangeOnScroll&&f.value&&f.value.addEventListener("wheel",j,{passive:!1})});const T=U=>U?r.vertical?"vNext":"next":r.vertical?"vPrevious":"previous",O=(U,S)=>{if(r.transitions){const H=yn(i(ae(),r.month,r.year));h.value=nn(yn(i(ae(),U,S)),H)?s.value.transitions[T(!0)]:s.value.transitions[T(!1)],p.value=!1,a.nextTick(()=>{p.value=!0})}},_=a.computed(()=>({[r.calendarClassName]:!!r.calendarClassName})),B=a.computed(()=>U=>{const S=TC(U);return{dp__marker_dot:S.type==="dot",dp__marker_line:S.type==="line"}}),C=a.computed(()=>U=>ot(U,l.value)),I=a.computed(()=>({dp__calendar:!0,dp__calendar_next:s.value.multiCalendars>0&&r.instance!==0})),F=a.computed(()=>U=>r.hideOffsetDates?U.current:!0),q=a.computed(()=>r.specificMode?{height:`${r.modeHeight}px`}:void 0),W=async(U,S,H)=>{var Z,Q;if(n("set-hover-date",U),(Q=(Z=U.marker)==null?void 0:Z.tooltip)!=null&&Q.length){const V=wt(c.value[S][H]);if(V){const{width:E,height:P}=V.getBoundingClientRect();l.value=U.value;let R={left:`${E/2}px`},G=-50;if(await a.nextTick(),y.value[0]){const{left:ie,width:oe}=y.value[0].getBoundingClientRect();ie<0&&(R={left:"0"},G=0,k.value.left=`${E/2}px`),window.innerWidth<ie+oe&&(R={right:"0"},G=0,k.value.left=`${oe-E/2}px`)}u.value={bottom:`${P}px`,...R,transform:`translateX(${G}%)`},n("tooltip-open",U.marker)}}},M=U=>{l.value&&(l.value=null,u.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),n("tooltip-close",U.marker))},D=U=>{m.value.startX=U.changedTouches[0].screenX,m.value.startY=U.changedTouches[0].screenY},$=U=>{m.value.endX=U.changedTouches[0].screenX,m.value.endY=U.changedTouches[0].screenY,X()},Y=U=>{r.vertical&&!r.inline&&U.preventDefault()},X=()=>{const U=r.vertical?"Y":"X";Math.abs(m.value[`start${U}`]-m.value[`end${U}`])>10&&n("handle-swipe",m.value[`start${U}`]>m.value[`end${U}`]?"right":"left")},K=(U,S,H)=>{U&&(Array.isArray(c.value[S])?c.value[S][H]=U:c.value[S]=[U]),r.arrowNavigation&&o(c.value,"calendar")},j=U=>{r.monthChangeOnScroll&&(U.preventDefault(),n("handle-scroll",U))};return t({triggerTransition:O}),(U,S)=>{var H;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(I.value)},[a.createElementVNode("div",{style:a.normalizeStyle(q.value),ref_key:"calendarWrapRef",ref:f,role:"grid",class:a.normalizeClass(_.value),"aria-label":(H=a.unref(s).ariaLabels)==null?void 0:H.calendarWrap},[e.specificMode?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("div",XC,[U.weekNumbers?(a.openBlock(),a.createElementBlock("div",JC,a.toDisplayString(U.weekNumName),1)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(w.value,(Z,Q)=>(a.openBlock(),a.createElementBlock("div",{class:"dp__calendar_header_item",role:"gridcell",key:Q},[U.$slots["calendar-header"]?a.renderSlot(U.$slots,"calendar-header",{key:0,day:Z,index:Q}):a.createCommentVNode("",!0),U.$slots["calendar-header"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(Z),1)],64))]))),128))]),QC,a.createVNode(a.Transition,{name:h.value,css:!!U.transitions},{default:a.withCtx(()=>{var Z;return[p.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:"dp__calendar",role:"grid","aria-label":(Z=a.unref(s).ariaLabels)==null?void 0:Z.calendarDays},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(b.value,(Q,V)=>(a.openBlock(),a.createElementBlock("div",{class:"dp__calendar_row",role:"row",key:V},[U.weekNumbers?(a.openBlock(),a.createElementBlock("div",eT,[a.createElementVNode("div",tT,a.toDisplayString(e.getWeekNum(Q.days)),1)])):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Q.days,(E,P)=>{var R,G,ie;return a.openBlock(),a.createElementBlock("div",{role:"gridcell",class:"dp__calendar_item",ref_for:!0,ref:oe=>K(oe,V,P),key:P+V,"aria-selected":E.classData.dp__active_date||E.classData.dp__range_start||E.classData.dp__range_start,"aria-disabled":E.classData.dp__cell_disabled,"aria-label":(G=(R=a.unref(s).ariaLabels)==null?void 0:R.day)==null?void 0:G.call(R,E),tabindex:"0",onClick:a.withModifiers(oe=>U.$emit("select-date",E),["stop","prevent"]),onKeydown:[a.withKeys(oe=>U.$emit("select-date",E),["enter"]),a.withKeys(oe=>U.$emit("handle-space",E),["space"])],onMouseenter:oe=>W(E,V,P),onMouseleave:oe=>M(E)},[a.createElementVNode("div",{class:a.normalizeClass(["dp__cell_inner",E.classData])},[U.$slots.day&&F.value(E)?a.renderSlot(U.$slots,"day",{key:0,day:+E.text,date:E.value}):a.createCommentVNode("",!0),U.$slots.day?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(E.text),1)],64)),E.marker&&F.value(E)?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[U.$slots.marker?a.renderSlot(U.$slots,"marker",{key:0,marker:E.marker,day:+E.text,date:E.value}):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(B.value(E.marker)),style:a.normalizeStyle(E.marker.color?{backgroundColor:E.marker.color}:{})},null,6))],64)):a.createCommentVNode("",!0),C.value(E.value)?(a.openBlock(),a.createElementBlock("div",{key:3,class:"dp__marker_tooltip",ref_for:!0,ref_key:"activeTooltip",ref:y,style:a.normalizeStyle(u.value)},[(ie=E.marker)!=null&&ie.tooltip?(a.openBlock(),a.createElementBlock("div",{key:0,class:"dp__tooltip_content",onClick:S[0]||(S[0]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.marker.tooltip,(oe,Ie)=>(a.openBlock(),a.createElementBlock("div",{key:Ie,class:"dp__tooltip_text"},[U.$slots["marker-tooltip"]?a.renderSlot(U.$slots,"marker-tooltip",{key:0,tooltip:oe,day:E.value}):a.createCommentVNode("",!0),U.$slots["marker-tooltip"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",{class:"dp__tooltip_mark",style:a.normalizeStyle(oe.color?{backgroundColor:oe.color}:{})},null,4),a.createElementVNode("div",null,a.toDisplayString(oe.text),1)],64))]))),128)),a.createElementVNode("div",{class:"dp__arrow_bottom_tp",style:a.normalizeStyle(k.value)},null,4)])):a.createCommentVNode("",!0)],4)):a.createCommentVNode("",!0)],2)],40,nT)}),128))]))),128))],8,ZC)):a.createCommentVNode("",!0)]}),_:3},8,["name","css"])],64))],14,KC)],2)}}}),aT=["aria-label","aria-disabled"],js=a.defineComponent({__name:"ActionIcon",props:{ariaLabel:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const n=a.ref(null);return a.onMounted(()=>t("set-ref",n)),(r,o)=>(a.openBlock(),a.createElementBlock("button",{type:"button",class:"dp__btn dp__month_year_col_nav",onClick:o[0]||(o[0]=i=>r.$emit("activate")),onKeydown:[o[1]||(o[1]=a.withKeys(a.withModifiers(i=>r.$emit("activate"),["prevent"]),["enter"])),o[2]||(o[2]=a.withKeys(a.withModifiers(i=>r.$emit("activate"),["prevent"]),["space"]))],tabindex:"0","aria-label":r.ariaLabel,"aria-disabled":r.disabled,ref_key:"elRef",ref:n},[a.createElementVNode("span",{class:a.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:r.disabled}])},[a.renderSlot(r.$slots,"default")],2)],40,aT))}}),oT=["onKeydown"],iT={class:"dp__selection_grid_header"},sT=["aria-selected","aria-disabled","onClick","onKeydown","onMouseover"],lT=["aria-label","onKeydown"],to=a.defineComponent({__name:"SelectionGrid",props:{items:{type:Array,default:()=>[]},modelValue:{type:[String,Number],default:null},multiModelValue:{type:Array,default:()=>[]},disabledValues:{type:Array,default:()=>[]},minValue:{type:[Number,String],default:null},maxValue:{type:[Number,String],default:null},year:{type:Number,default:0},skipActive:{type:Boolean,default:!1},headerRefs:{type:Array,default:()=>[]},skipButtonRef:{type:Boolean,default:!1},monthPicker:{type:Boolean,default:!1},yearPicker:{type:Boolean,default:!1},escClose:{type:Boolean,default:!0},type:{type:String,default:null},arrowNavigation:{type:Boolean,default:!1},autoApply:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},ariaLabels:{type:Object,default:()=>({})},hideNavigation:{type:Array,default:()=>[]},internalModelValue:{type:[Date,Array],default:null},autoApplyMonth:{type:Boolean,default:!1}},emits:["update:model-value","selected","toggle","reset-flow"],setup(e,{expose:t,emit:n}){const r=e,{setSelectionGrid:o,buildMultiLevelMatrix:i,setMonthPicker:s}=Er(),{hideNavigationButtons:l}=fn(r),u=a.ref(!1),c=a.ref(null),f=a.ref(null),p=a.ref([]),h=a.ref(),m=a.ref(null),y=a.ref(0),k=a.ref(null);a.onBeforeUpdate(()=>{c.value=null}),a.onMounted(()=>{var j;a.nextTick().then(()=>q()),w(),b(!0),(j=c.value)==null||j.focus({preventScroll:!0})}),a.onUnmounted(()=>b(!1));const b=j=>{var U;r.arrowNavigation&&((U=r.headerRefs)!=null&&U.length?s(j):o(j))},w=()=>{const j=wt(f);j&&(r.textInput||j.focus({preventScroll:!0}),u.value=j.clientHeight<j.scrollHeight)},T=a.computed(()=>({dp__overlay:!0})),O=a.computed(()=>({dp__overlay_col:!0})),_=j=>r.monthPicker&&!r.autoApplyMonth?ot(r.internalModelValue,ur(ua(new Date,j.value),r.year)):r.skipActive?!1:j.value===r.modelValue,B=a.computed(()=>r.items.map(j=>j.filter(U=>U).map(U=>{var S,H,Z;const Q=r.disabledValues.some(E=>E===U.value)||F(U.value),V=(S=r.multiModelValue)!=null&&S.length?(H=r.multiModelValue)==null?void 0:H.some(E=>ot(E,ur(r.monthPicker?ua(new Date,U.value):new Date,r.monthPicker?r.year:U.value))):_(U);return{...U,className:{dp__overlay_cell_active:V,dp__overlay_cell:!V,dp__overlay_cell_disabled:Q,dp__overlay_cell_active_disabled:Q&&V,dp__overlay_cell_pad:!0,dp__cell_in_between:(Z=r.multiModelValue)!=null&&Z.length&&r.skipActive?M(U.value):!1}}}))),C=a.computed(()=>({dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:u.value,dp__button_bottom:r.autoApply})),I=a.computed(()=>{var j,U;return{dp__overlay_container:!0,dp__container_flex:((j=r.items)==null?void 0:j.length)<=6,dp__container_block:((U=r.items)==null?void 0:U.length)>6}}),F=j=>{const U=r.maxValue||r.maxValue===0,S=r.minValue||r.minValue===0;return!U&&!S?!1:U&&S?+j>+r.maxValue||+j<+r.minValue:U?+j>+r.maxValue:S?+j<+r.minValue:!1},q=()=>{const j=wt(c),U=wt(f),S=wt(m),H=wt(k),Z=S?S.getBoundingClientRect().height:0;U&&(y.value=U.getBoundingClientRect().height-Z),j&&H&&(H.scrollTop=j.offsetTop-H.offsetTop-(y.value/2-j.getBoundingClientRect().height)-Z)},W=j=>{!r.disabledValues.some(U=>U===j)&&!F(j)&&(n("update:model-value",j),n("selected"))},M=j=>{const U=r.monthPicker?r.year:j;return nh(r.multiModelValue,ur(r.monthPicker?ua(new Date,h.value||0):new Date,r.monthPicker?U:h.value||U),ur(r.monthPicker?ua(new Date,j):new Date,U))},D=()=>{n("toggle"),n("reset-flow")},$=()=>{r.escClose&&D()},Y=(j,U,S,H)=>{j&&(U.value===+r.modelValue&&!r.disabledValues.includes(U.value)&&(c.value=j),r.arrowNavigation&&(Array.isArray(p.value[S])?p.value[S][H]=j:p.value[S]=[j],X()))},X=()=>{var j,U;const S=(j=r.headerRefs)!=null&&j.length?[r.headerRefs].concat(p.value):p.value.concat([r.skipButtonRef?[]:[m.value]]);i(Wt(S),(U=r.headerRefs)!=null&&U.length?"monthPicker":"selectionGrid")},K=j=>{r.arrowNavigation||j.stopImmediatePropagation()};return t({focusGrid:w}),(j,U)=>{var S;return a.openBlock(),a.createElementBlock("div",{ref_key:"gridWrapRef",ref:f,class:a.normalizeClass(T.value),role:"dialog",tabindex:"0",onKeydown:[a.withKeys($,["esc"]),U[0]||(U[0]=a.withKeys(H=>K(H),["left"])),U[1]||(U[1]=a.withKeys(H=>K(H),["up"])),U[2]||(U[2]=a.withKeys(H=>K(H),["down"])),U[3]||(U[3]=a.withKeys(H=>K(H),["right"]))]},[a.createElementVNode("div",{class:a.normalizeClass(I.value),ref_key:"containerRef",ref:k,role:"grid",style:a.normalizeStyle({height:`${y.value}px`})},[a.createElementVNode("div",iT,[a.renderSlot(j.$slots,"header")]),j.$slots.overlay?a.renderSlot(j.$slots,"overlay",{key:0}):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(B.value,(H,Z)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["dp__overlay_row",{dp__flex_row:B.value.length>=3}]),key:Z,role:"row"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(H,(Q,V)=>(a.openBlock(),a.createElementBlock("div",{role:"gridcell",class:a.normalizeClass(O.value),key:Q.value,"aria-selected":Q.value===e.modelValue&&!e.disabledValues.includes(Q.value),"aria-disabled":Q.className.dp__overlay_cell_disabled,ref_for:!0,ref:E=>Y(E,Q,Z,V),tabindex:"0",onClick:E=>W(Q.value),onKeydown:[a.withKeys(E=>W(Q.value),["enter"]),a.withKeys(E=>W(Q.value),["space"])],onMouseover:E=>h.value=Q.value},[a.createElementVNode("div",{class:a.normalizeClass(Q.className)},[j.$slots.item?a.renderSlot(j.$slots,"item",{key:0,item:Q}):a.createCommentVNode("",!0),j.$slots.item?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(Q.text),1)],64))],2)],42,sT))),128))],2))),128))],6),j.$slots["button-icon"]?a.withDirectives((a.openBlock(),a.createElementBlock("div",{key:0,role:"button","aria-label":(S=e.ariaLabels)==null?void 0:S.toggleOverlay,class:a.normalizeClass(C.value),tabindex:"0",ref_key:"toggleButton",ref:m,onClick:D,onKeydown:[a.withKeys(D,["enter"]),a.withKeys(D,["tab"])]},[a.renderSlot(j.$slots,"button-icon")],42,lT)),[[a.vShow,!a.unref(l)(e.type)]]):a.createCommentVNode("",!0)],42,oT)}}}),uT=["aria-label"],wd=a.defineComponent({__name:"RegularPicker",props:{ariaLabel:{type:String,default:""},showSelectionGrid:{type:Boolean,default:!1},modelValue:{type:Number,default:null},items:{type:Array,default:()=>[]},disabledValues:{type:Array,default:()=>[]},minValue:{type:Number,default:null},maxValue:{type:Number,default:null},slotName:{type:String,default:""},overlaySlot:{type:String,default:""},headerRefs:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},type:{type:String,default:null},transitions:{type:[Object,Boolean],default:!1},arrowNavigation:{type:Boolean,default:!1},autoApply:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},ariaLabels:{type:Object,default:()=>({})},hideNavigation:{type:Array,default:()=>[]}},emits:["update:model-value","toggle","set-ref"],setup(e,{emit:t}){const n=e,{transitionName:r,showTransition:o}=zi(n.transitions),i=a.ref(null);return a.onMounted(()=>t("set-ref",i)),(s,l)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("button",{type:"button",class:"dp__btn dp__month_year_select",onClick:l[0]||(l[0]=u=>s.$emit("toggle")),onKeydown:[l[1]||(l[1]=a.withKeys(a.withModifiers(u=>s.$emit("toggle"),["prevent"]),["enter"])),l[2]||(l[2]=a.withKeys(a.withModifiers(u=>s.$emit("toggle"),["prevent"]),["space"]))],"aria-label":e.ariaLabel,tabindex:"0",ref_key:"elRef",ref:i},[a.renderSlot(s.$slots,"default")],40,uT),a.createVNode(a.Transition,{name:a.unref(r)(e.showSelectionGrid),css:a.unref(o)},{default:a.withCtx(()=>[e.showSelectionGrid?(a.openBlock(),a.createBlock(to,a.mergeProps({key:0},{modelValue:e.modelValue,items:e.items,disabledValues:e.disabledValues,minValue:e.minValue,maxValue:e.maxValue,escClose:e.escClose,type:e.type,arrowNavigation:e.arrowNavigation,textInput:e.textInput,autoApply:e.autoApply,ariaLabels:e.ariaLabels,hideNavigation:e.hideNavigation},{"header-refs":[],"onUpdate:modelValue":l[3]||(l[3]=u=>s.$emit("update:model-value",u)),onToggle:l[4]||(l[4]=u=>s.$emit("toggle"))}),a.createSlots({"button-icon":a.withCtx(()=>[s.$slots["calendar-icon"]?a.renderSlot(s.$slots,"calendar-icon",{key:0}):a.createCommentVNode("",!0),s.$slots["calendar-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Ui),{key:1}))]),_:2},[s.$slots[e.slotName]?{name:"item",fn:a.withCtx(({item:u})=>[a.renderSlot(s.$slots,e.slotName,{item:u})]),key:"0"}:void 0,s.$slots[e.overlaySlot]?{name:"overlay",fn:a.withCtx(()=>[a.renderSlot(s.$slots,e.overlaySlot)]),key:"1"}:void 0,s.$slots[`${e.overlaySlot}-header`]?{name:"header",fn:a.withCtx(()=>[a.renderSlot(s.$slots,`${e.overlaySlot}-header`)]),key:"2"}:void 0]),1040)):a.createCommentVNode("",!0)]),_:3},8,["name","css"])],64))}}),cT={class:"dp__month_year_row"},dT={class:"dp__month_picker_header"},fT=["aria-label"],pT=["aria-label"],hT=["aria-label"],mT=a.defineComponent({__name:"MonthYearPicker",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},internalModelValue:{type:[Date,Array],default:null},...xr},emits:["update-month-year","month-year-select","mount","reset-flow","overlay-closed"],setup(e,{expose:t,emit:n}){const r=e,{defaults:o}=fn(r),{transitionName:i,showTransition:s}=zi(o.value.transitions),{buildMatrix:l}=Er(),{handleMonthYearChange:u,isDisabled:c,updateMonthYear:f}=$C(r,n),p=a.ref(!1),h=a.ref(!1),m=a.ref([null,null,null,null]),y=a.ref(null),k=a.ref(null),b=a.ref(null);a.onMounted(()=>{n("mount")});const w=P=>({get:()=>r[P],set:R=>{const G=P==="month"?"year":"month";n("update-month-year",{[P]:R,[G]:r[G]}),n("month-year-select",P==="year"),P==="month"?H(!0):Z(!0)}}),T=a.computed(w("month")),O=a.computed(w("year")),_=P=>{const R=ht(ae(P));return r.year===R},B=a.computed(()=>r.monthPicker?Array.isArray(r.disabledDates)?r.disabledDates.map(P=>ae(P)).filter(P=>_(P)).map(P=>ct(P)):[]:[]),C=a.computed(()=>P=>{const R=P==="month";return{showSelectionGrid:(R?p:h).value,items:(R?X:K).value,disabledValues:o.value.filters[R?"months":"years"].concat(B.value),minValue:(R?W:F).value,maxValue:(R?M:q).value,headerRefs:R&&r.monthPicker?[y.value,k.value,b.value]:[],escClose:r.escClose,transitions:o.value.transitions,ariaLabels:o.value.ariaLabels,textInput:r.textInput,autoApply:r.autoApply,arrowNavigation:r.arrowNavigation,hideNavigation:r.hideNavigation}}),I=a.computed(()=>P=>({month:r.month,year:r.year,items:P==="month"?r.months:r.years,instance:r.instance,updateMonthYear:f,toggle:P==="month"?H:Z})),F=a.computed(()=>r.minDate?ht(ae(r.minDate)):null),q=a.computed(()=>r.maxDate?ht(ae(r.maxDate)):null),W=a.computed(()=>{if(r.minDate&&F.value){if(F.value>r.year)return 12;if(F.value===r.year)return ct(ae(r.minDate))}return null}),M=a.computed(()=>r.maxDate&&q.value?q.value<r.year?-1:q.value===r.year?ct(ae(r.maxDate)):null:null),D=a.computed(()=>(r.range||r.multiDates)&&r.internalModelValue&&(r.monthPicker||r.yearPicker)?r.internalModelValue:[]),$=P=>{const R=[],G=ie=>ie;for(let ie=0;ie<P.length;ie+=3){const oe=[P[ie],P[ie+1],P[ie+2]];R.push(G(oe))}return R},Y=a.computed(()=>r.months.find(R=>R.value===r.month)||{text:"",value:0}),X=a.computed(()=>$(r.months)),K=a.computed(()=>$(r.years)),j=a.computed(()=>o.value.multiCalendars?r.multiCalendarsSolo?!0:r.instance===0:!0),U=a.computed(()=>o.value.multiCalendars?r.multiCalendarsSolo?!0:r.instance===o.value.multiCalendars-1:!0),S=(P,R)=>{R!==void 0?P.value=R:P.value=!P.value},H=(P=!1,R)=>{Q(P),S(p,R),p.value||n("overlay-closed")},Z=(P=!1,R)=>{Q(P),S(h,R),h.value||n("overlay-closed")},Q=P=>{P||n("reset-flow")},V=(P=!1)=>{c.value(P)||n("update-month-year",{year:P?r.year+1:r.year-1,month:r.month,fromNav:!0})},E=(P,R)=>{r.arrowNavigation&&(m.value[R]=wt(P),l(m.value,"monthYear"))};return t({toggleMonthPicker:H,toggleYearPicker:Z,handleMonthYearChange:u}),(P,R)=>{var G,ie,oe,Ie,Ee;return a.openBlock(),a.createElementBlock("div",cT,[P.$slots["month-year"]?a.renderSlot(P.$slots,"month-year",a.normalizeProps(a.mergeProps({key:0},{month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:a.unref(f),handleMonthYearChange:a.unref(u),instance:e.instance}))):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[!P.monthPicker&&!P.yearPicker?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[j.value&&!P.vertical?(a.openBlock(),a.createBlock(js,{key:0,"aria-label":(G=a.unref(o).ariaLabels)==null?void 0:G.prevMonth,disabled:a.unref(c)(!1),onActivate:R[0]||(R[0]=fe=>a.unref(u)(!1)),onSetRef:R[1]||(R[1]=fe=>E(fe,0))},{default:a.withCtx(()=>[P.$slots["arrow-left"]?a.renderSlot(P.$slots,"arrow-left",{key:0}):a.createCommentVNode("",!0),P.$slots["arrow-left"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(ad),{key:1}))]),_:3},8,["aria-label","disabled"])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["dp__month_year_wrap",{dp__year_disable_select:r.disableYearSelect}])},[a.createVNode(wd,a.mergeProps({type:"month","slot-name":"month-overlay-val","overlay-slot":"overlay-month","aria-label":(ie=a.unref(o).ariaLabels)==null?void 0:ie.openMonthsOverlay,modelValue:T.value,"onUpdate:modelValue":R[2]||(R[2]=fe=>T.value=fe)},C.value("month"),{onToggle:H,onSetRef:R[3]||(R[3]=fe=>E(fe,1))}),a.createSlots({default:a.withCtx(()=>[P.$slots.month?a.renderSlot(P.$slots,"month",a.normalizeProps(a.mergeProps({key:0},Y.value))):a.createCommentVNode("",!0),P.$slots.month?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(Y.value.text),1)],64))]),_:2},[P.$slots["calendar-icon"]?{name:"calendar-icon",fn:a.withCtx(()=>[a.renderSlot(P.$slots,"calendar-icon")]),key:"0"}:void 0,P.$slots["month-overlay-value"]?{name:"month-overlay-val",fn:a.withCtx(({item:fe})=>[a.renderSlot(P.$slots,"month-overlay-value",{text:fe.text,value:fe.value})]),key:"1"}:void 0,P.$slots["month-overlay"]?{name:"overlay-month",fn:a.withCtx(()=>[a.renderSlot(P.$slots,"month-overlay",a.normalizeProps(a.guardReactiveProps(I.value("month"))))]),key:"2"}:void 0,P.$slots["month-overlay-header"]?{name:"overlay-month-header",fn:a.withCtx(()=>[a.renderSlot(P.$slots,"month-overlay-header",{toggle:H})]),key:"3"}:void 0]),1040,["aria-label","modelValue"]),r.disableYearSelect?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(wd,a.mergeProps({key:0,type:"year","slot-name":"year-overlay-val","overlay-slot":"overlay-year","aria-label":(oe=a.unref(o).ariaLabels)==null?void 0:oe.openYearsOverlay,modelValue:O.value,"onUpdate:modelValue":R[4]||(R[4]=fe=>O.value=fe)},C.value("year"),{onToggle:Z,onSetRef:R[5]||(R[5]=fe=>E(fe,2))}),a.createSlots({default:a.withCtx(()=>[P.$slots.year?a.renderSlot(P.$slots,"year",{key:0,year:e.year}):a.createCommentVNode("",!0),P.$slots.year?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(e.year),1)],64))]),_:2},[P.$slots["calendar-icon"]?{name:"calendar-icon",fn:a.withCtx(()=>[a.renderSlot(P.$slots,"calendar-icon")]),key:"0"}:void 0,P.$slots["year-overlay-value"]?{name:"year-overlay-val",fn:a.withCtx(({item:fe})=>[a.renderSlot(P.$slots,"year-overlay-value",{text:fe.text,value:fe.value})]),key:"1"}:void 0,P.$slots["year-overlay"]?{name:"overlay-year",fn:a.withCtx(()=>[a.renderSlot(P.$slots,"year-overlay",a.normalizeProps(a.guardReactiveProps(I.value("year"))))]),key:"2"}:void 0,P.$slots["year-overlay-header"]?{name:"overlay-year-header",fn:a.withCtx(()=>[a.renderSlot(P.$slots,"year-overlay-header",{toggle:Z})]),key:"3"}:void 0]),1040,["aria-label","modelValue"]))],2),j.value&&P.vertical?(a.openBlock(),a.createBlock(js,{key:1,"aria-label":(Ie=a.unref(o).ariaLabels)==null?void 0:Ie.prevMonth,disabled:a.unref(c)(!1),onActivate:R[6]||(R[6]=fe=>a.unref(u)(!1))},{default:a.withCtx(()=>[P.$slots["arrow-up"]?a.renderSlot(P.$slots,"arrow-up",{key:0}):a.createCommentVNode("",!0),P.$slots["arrow-up"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(eh),{key:1}))]),_:3},8,["aria-label","disabled"])):a.createCommentVNode("",!0),U.value?(a.openBlock(),a.createBlock(js,{key:2,ref:"rightIcon",disabled:a.unref(c)(!0),"aria-label":(Ee=a.unref(o).ariaLabels)==null?void 0:Ee.nextMonth,onActivate:R[7]||(R[7]=fe=>a.unref(u)(!0)),onSetRef:R[8]||(R[8]=fe=>E(fe,3))},{default:a.withCtx(()=>[P.$slots[P.vertical?"arrow-down":"arrow-right"]?a.renderSlot(P.$slots,P.vertical?"arrow-down":"arrow-right",{key:0}):a.createCommentVNode("",!0),P.$slots[P.vertical?"arrow-down":"arrow-right"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(P.vertical?a.unref(th):a.unref(od)),{key:1}))]),_:3},8,["disabled","aria-label"])):a.createCommentVNode("",!0)],64)):a.createCommentVNode("",!0),P.monthPicker?(a.openBlock(),a.createBlock(to,a.mergeProps({key:1},C.value("month"),{"skip-active":P.range,"internal-model-value":e.internalModelValue,year:e.year,"auto-apply-month":P.autoApplyMonth,"multi-model-value":D.value,"month-picker":"",modelValue:T.value,"onUpdate:modelValue":R[17]||(R[17]=fe=>T.value=fe),onToggle:H,onSelected:R[18]||(R[18]=fe=>P.$emit("overlay-closed"))}),a.createSlots({header:a.withCtx(()=>{var fe,Be,$e;return[a.createElementVNode("div",dT,[a.createElementVNode("div",{class:"dp__month_year_col_nav",tabindex:"0",ref_key:"mpPrevIconRef",ref:y,onClick:R[9]||(R[9]=ze=>V(!1)),onKeydown:R[10]||(R[10]=a.withKeys(ze=>V(!1),["enter"]))},[a.createElementVNode("div",{class:a.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:a.unref(c)(!1)}]),role:"button","aria-label":(fe=a.unref(o).ariaLabels)==null?void 0:fe.prevMonth},[P.$slots["arrow-left"]?a.renderSlot(P.$slots,"arrow-left",{key:0}):a.createCommentVNode("",!0),P.$slots["arrow-left"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(ad),{key:1}))],10,fT)],544),a.createElementVNode("div",{class:"dp__pointer",role:"button",ref_key:"mpYearButtonRef",ref:k,"aria-label":(Be=a.unref(o).ariaLabels)==null?void 0:Be.openYearsOverlay,tabindex:"0",onClick:R[11]||(R[11]=()=>Z(!1)),onKeydown:R[12]||(R[12]=a.withKeys(()=>Z(!1),["enter"]))},[P.$slots.year?a.renderSlot(P.$slots,"year",{key:0,year:e.year}):a.createCommentVNode("",!0),P.$slots.year?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(e.year),1)],64))],40,pT),a.createElementVNode("div",{class:"dp__month_year_col_nav",tabindex:"0",ref_key:"mpNextIconRef",ref:b,onClick:R[13]||(R[13]=ze=>V(!0)),onKeydown:R[14]||(R[14]=a.withKeys(ze=>V(!0),["enter"]))},[a.createElementVNode("div",{class:a.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:a.unref(c)(!0)}]),role:"button","aria-label":($e=a.unref(o).ariaLabels)==null?void 0:$e.nextMonth},[P.$slots["arrow-right"]?a.renderSlot(P.$slots,"arrow-right",{key:0}):a.createCommentVNode("",!0),P.$slots["arrow-right"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(od),{key:1}))],10,hT)],544)]),a.createVNode(a.Transition,{name:a.unref(i)(h.value),css:a.unref(s)},{default:a.withCtx(()=>[h.value?(a.openBlock(),a.createBlock(to,a.mergeProps({key:0},C.value("year"),{modelValue:O.value,"onUpdate:modelValue":R[15]||(R[15]=ze=>O.value=ze),onToggle:Z,onSelected:R[16]||(R[16]=ze=>P.$emit("overlay-closed"))}),a.createSlots({"button-icon":a.withCtx(()=>[P.$slots["calendar-icon"]?a.renderSlot(P.$slots,"calendar-icon",{key:0}):a.createCommentVNode("",!0),P.$slots["calendar-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Ui),{key:1}))]),_:2},[P.$slots["year-overlay-value"]?{name:"item",fn:a.withCtx(({item:ze})=>[a.renderSlot(P.$slots,"year-overlay-value",{text:ze.text,value:ze.value})]),key:"0"}:void 0]),1040,["modelValue"])):a.createCommentVNode("",!0)]),_:3},8,["name","css"])]}),_:2},[P.$slots["month-overlay-value"]?{name:"item",fn:a.withCtx(({item:fe})=>[a.renderSlot(P.$slots,"month-overlay-value",{text:fe.text,value:fe.value})]),key:"0"}:void 0]),1040,["skip-active","internal-model-value","year","auto-apply-month","multi-model-value","modelValue"])):a.createCommentVNode("",!0),P.yearPicker?(a.openBlock(),a.createBlock(to,a.mergeProps({key:2},C.value("year"),{modelValue:O.value,"onUpdate:modelValue":R[19]||(R[19]=fe=>O.value=fe),"multi-model-value":D.value,"skip-active":P.range,"skip-button-ref":"","year-picker":"",onToggle:Z,onSelected:R[20]||(R[20]=fe=>P.$emit("overlay-closed"))}),a.createSlots({_:2},[P.$slots["year-overlay-value"]?{name:"item",fn:a.withCtx(({item:fe})=>[a.renderSlot(P.$slots,"year-overlay-value",{text:fe.text,value:fe.value})]),key:"0"}:void 0]),1040,["modelValue","multi-model-value","skip-active"])):a.createCommentVNode("",!0)],64))])}}}),vT={key:0,class:"dp__time_input"},gT=["aria-label","onKeydown","onClick"],yT=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),bT=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),_T=["aria-label","onKeydown","onClick"],wT=["aria-label","onKeydown","onClick"],kT=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),ST=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),CT={key:0},TT=["aria-label","onKeydown"],ET=a.defineComponent({__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},...xr},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const r=e,{setTimePickerElements:o,setTimePickerBackRef:i}=Er(),{defaults:s}=fn(r),{transitionName:l,showTransition:u}=zi(s.value.transitions),c=a.reactive({hours:!1,minutes:!1,seconds:!1}),f=a.ref("AM"),p=a.ref(null),h=a.ref([]);a.onMounted(()=>{n("mounted")});const m=S=>Ot(new Date,{hours:S.hours,minutes:S.minutes,seconds:r.enableSeconds?S.seconds:0,milliseconds:0}),y=a.computed(()=>({hours:r.hours,minutes:r.minutes,seconds:r.seconds})),k=a.computed(()=>S=>!F(+r[S]+ +r[`${S}Increment`],S)),b=a.computed(()=>S=>!F(+r[S]-+r[`${S}Increment`],S)),w=(S,H)=>Bp(Ot(ae(),S),H),T=(S,H)=>Jk(Ot(ae(),S),H),O=a.computed(()=>({dp__time_col:!0,dp__time_col_block:!r.timePickerInline,dp__time_col_reg_block:!r.enableSeconds&&r.is24&&!r.timePickerInline,dp__time_col_reg_inline:!r.enableSeconds&&r.is24&&r.timePickerInline,dp__time_col_reg_with_button:!r.enableSeconds&&!r.is24,dp__time_col_sec:r.enableSeconds&&r.is24,dp__time_col_sec_with_button:r.enableSeconds&&!r.is24})),_=a.computed(()=>{const S=[{type:"hours"},{type:"",separator:!0},{type:"minutes"}];return r.enableSeconds?S.concat([{type:"",separator:!0},{type:"seconds"}]):S}),B=a.computed(()=>_.value.filter(S=>!S.separator)),C=a.computed(()=>S=>{if(S==="hours"){const H=Y(+r.hours);return{text:H<10?`0${H}`:`${H}`,value:H}}return{text:r[S]<10?`0${r[S]}`:`${r[S]}`,value:r[S]}}),I=S=>{const H=r.is24?24:12,Z=S==="hours"?H:60,Q=+r[`${S}GridIncrement`],V=S==="hours"&&!r.is24?Q:0,E=[];for(let P=V;P<Z;P+=Q)E.push({value:P,text:P<10?`0${P}`:`${P}`});return S==="hours"&&!r.is24&&E.push({value:0,text:"12"}),bC(E)},F=(S,H)=>{const Z=r.minTime?m(Rs(r.minTime)):null,Q=r.maxTime?m(Rs(r.maxTime)):null,V=m(Rs(y.value,H,S));return Z&&Q?(vo(V,Q)||Vr(V,Q))&&(mo(V,Z)||Vr(V,Z)):Z?mo(V,Z)||Vr(V,Z):Q?vo(V,Q)||Vr(V,Q):!0},q=a.computed(()=>S=>I(S).flat().filter(H=>EC(H.value)).map(H=>H.value).filter(H=>!F(H,S))),W=S=>r[`no${S[0].toUpperCase()+S.slice(1)}Overlay`],M=S=>{W(S)||(c[S]=!c[S],c[S]||n("overlay-closed"))},D=S=>S==="hours"?ir:S==="minutes"?sr:Ta,$=(S,H=!0)=>{const Z=H?w:T,Q=H?+r[`${S}Increment`]:-+r[`${S}Increment`];F(+r[S]+Q,S)&&n(`update:${S}`,D(S)(Z({[S]:+r[S]},{[S]:+r[`${S}Increment`]})))},Y=S=>r.is24?S:(S>=12?f.value="PM":f.value="AM",CC(S)),X=()=>{f.value==="PM"?(f.value="AM",n("update:hours",r.hours-12)):(f.value="PM",n("update:hours",r.hours+12)),n("am-pm-change",f.value)},K=S=>{c[S]=!0},j=(S,H,Z)=>{if(S&&r.arrowNavigation){Array.isArray(h.value[H])?h.value[H][Z]=S:h.value[H]=[S];const Q=h.value.reduce((V,E)=>E.map((P,R)=>[...V[R]||[],E[R]]),[]);i(r.closeTimePickerBtn),p.value&&(Q[1]=Q[1].concat(p.value)),o(Q,r.order)}},U=(S,H)=>S==="hours"&&!r.is24?n(`update:${S}`,f.value==="PM"?H+12:H):n(`update:${S}`,H);return t({openChildCmp:K}),(S,H)=>{var Z;return S.disabled?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",vT,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(_.value,(Q,V)=>{var E,P,R;return a.openBlock(),a.createElementBlock("div",{key:V,class:a.normalizeClass(O.value)},[Q.separator?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(" : ")],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("button",{type:"button",class:a.normalizeClass({dp__btn:!0,dp__inc_dec_button:!r.timePickerInline,dp__inc_dec_button_inline:r.timePickerInline,dp__tp_inline_btn_top:r.timePickerInline,dp__inc_dec_button_disabled:k.value(Q.type)}),"aria-label":(E=a.unref(s).ariaLabels)==null?void 0:E.incrementValue(Q.type),tabindex:"0",onKeydown:[a.withKeys(G=>$(Q.type),["enter"]),a.withKeys(G=>$(Q.type),["space"])],onClick:G=>$(Q.type),ref_for:!0,ref:G=>j(G,V,0)},[r.timePickerInline?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[yT,bT],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[S.$slots["arrow-up"]?a.renderSlot(S.$slots,"arrow-up",{key:0}):a.createCommentVNode("",!0),S.$slots["arrow-up"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(eh),{key:1}))],64))],42,gT),a.createElementVNode("button",{type:"button","aria-label":(P=a.unref(s).ariaLabels)==null?void 0:P.openTpOverlay(Q.type),class:a.normalizeClass(["dp__btn",W(Q.type)?void 0:{dp__time_display:!0,dp__time_display_block:!r.timePickerInline,dp__time_display_inline:r.timePickerInline}]),tabindex:"0",onKeydown:[a.withKeys(G=>M(Q.type),["enter"]),a.withKeys(G=>M(Q.type),["space"])],onClick:G=>M(Q.type),ref_for:!0,ref:G=>j(G,V,1)},[S.$slots[Q.type]?a.renderSlot(S.$slots,Q.type,{key:0,text:C.value(Q.type).text,value:C.value(Q.type).value}):a.createCommentVNode("",!0),S.$slots[Q.type]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(C.value(Q.type).text),1)],64))],42,_T),a.createElementVNode("button",{type:"button",class:a.normalizeClass({dp__btn:!0,dp__inc_dec_button:!r.timePickerInline,dp__inc_dec_button_inline:r.timePickerInline,dp__tp_inline_btn_bottom:r.timePickerInline,dp__inc_dec_button_disabled:b.value(Q.type)}),"aria-label":(R=a.unref(s).ariaLabels)==null?void 0:R.decrementValue(Q.type),tabindex:"0",onKeydown:[a.withKeys(G=>$(Q.type,!1),["enter"]),a.withKeys(G=>$(Q.type,!1),["space"])],onClick:G=>$(Q.type,!1),ref_for:!0,ref:G=>j(G,V,2)},[r.timePickerInline?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[kT,ST],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[S.$slots["arrow-down"]?a.renderSlot(S.$slots,"arrow-down",{key:0}):a.createCommentVNode("",!0),S.$slots["arrow-down"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(th),{key:1}))],64))],42,wT)],64))],2)}),128)),S.is24?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",CT,[S.$slots["am-pm-button"]?a.renderSlot(S.$slots,"am-pm-button",{key:0,toggle:X,value:f.value}):a.createCommentVNode("",!0),S.$slots["am-pm-button"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:1,ref_key:"amPmButton",ref:p,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(Z=a.unref(s).ariaLabels)==null?void 0:Z.amPmButton,tabindex:"0",onClick:X,onKeydown:[a.withKeys(a.withModifiers(X,["prevent"]),["enter"]),a.withKeys(a.withModifiers(X,["prevent"]),["space"])]},a.toDisplayString(f.value),41,TT))])),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(B.value,(Q,V)=>(a.openBlock(),a.createBlock(a.Transition,{key:V,name:a.unref(l)(c[Q.type]),css:a.unref(u)},{default:a.withCtx(()=>[c[Q.type]?(a.openBlock(),a.createBlock(to,{key:0,items:I(Q.type),"disabled-values":a.unref(s).filters.times[Q.type].concat(q.value(Q.type)),"esc-close":S.escClose,"aria-labels":a.unref(s).ariaLabels,"hide-navigation":S.hideNavigation,"onUpdate:modelValue":E=>U(Q.type,E),onSelected:E=>M(Q.type),onToggle:E=>M(Q.type),onResetFlow:H[0]||(H[0]=E=>S.$emit("reset-flow")),type:Q.type},a.createSlots({"button-icon":a.withCtx(()=>[S.$slots["clock-icon"]?a.renderSlot(S.$slots,"clock-icon",{key:0}):a.createCommentVNode("",!0),S.$slots["clock-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Zp),{key:1}))]),_:2},[S.$slots[`${Q.type}-overlay-value`]?{name:"item",fn:a.withCtx(({item:E})=>[a.renderSlot(S.$slots,`${Q.type}-overlay-value`,{text:E.text,value:E.value})]),key:"0"}:void 0]),1032,["items","disabled-values","esc-close","aria-labels","hide-navigation","onUpdate:modelValue","onSelected","onToggle","type"])):a.createCommentVNode("",!0)]),_:2},1032,["name","css"]))),128))]))}}}),xT=["aria-label"],PT=["tabindex"],IT=["aria-label"],DT=a.defineComponent({__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},internalModelValue:{type:[Date,Array],default:null},...xr},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const r=e,{buildMatrix:o,setTimePicker:i}=Er(),s=a.useSlots(),{hideNavigationButtons:l,defaults:u}=fn(r),{transitionName:c,showTransition:f}=zi(u.value.transitions),p=a.ref(null),h=a.ref(null),m=a.ref([]),y=a.ref(null);a.onMounted(()=>{n("mount"),!r.timePicker&&r.arrowNavigation?o([wt(p.value)],"time"):i(!0,r.timePicker)});const k=a.computed(()=>r.range&&r.modelAuto?sh(r.internalModelValue):!0),b=a.ref(!1),w=M=>({hours:Array.isArray(r.hours)?r.hours[M]:r.hours,minutes:Array.isArray(r.minutes)?r.minutes[M]:r.minutes,seconds:Array.isArray(r.seconds)?r.seconds[M]:r.seconds}),T=a.computed(()=>{const M=[];if(r.range)for(let D=0;D<2;D++)M.push(w(D));else M.push(w(0));return M}),O=(M,D=!1,$="")=>{D||n("reset-flow"),b.value=M,n(M?"overlay-opened":"overlay-closed"),r.arrowNavigation&&i(M),a.nextTick(()=>{$!==""&&m.value[0]&&m.value[0].openChildCmp($)})},_=a.computed(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:r.autoApply&&!r.keepActionRow})),B=Fr(s,"timePicker"),C=(M,D,$)=>r.range?D===0?[M,T.value[1][$]]:[T.value[0][$],M]:M,I=M=>{n("update:hours",M)},F=M=>{n("update:minutes",M)},q=M=>{n("update:seconds",M)},W=()=>{if(y.value){const M=xC(y.value);M&&M.focus({preventScroll:!0})}};return t({toggleTimePicker:O}),(M,D)=>{var $;return a.openBlock(),a.createElementBlock("div",null,[!M.timePicker&&!M.timePickerInline?a.withDirectives((a.openBlock(),a.createElementBlock("button",{key:0,type:"button",class:a.normalizeClass(_.value),"aria-label":($=a.unref(u).ariaLabels)==null?void 0:$.openTimePicker,tabindex:"0",ref_key:"openTimePickerBtn",ref:p,onKeydown:[D[0]||(D[0]=a.withKeys(Y=>O(!0),["enter"])),D[1]||(D[1]=a.withKeys(Y=>O(!0),["space"]))],onClick:D[2]||(D[2]=Y=>O(!0))},[M.$slots["clock-icon"]?a.renderSlot(M.$slots,"clock-icon",{key:0}):a.createCommentVNode("",!0),M.$slots["clock-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Zp),{key:1}))],42,xT)),[[a.vShow,!a.unref(l)("time")]]):a.createCommentVNode("",!0),a.createVNode(a.Transition,{name:a.unref(c)(b.value),css:a.unref(f)&&!M.timePickerInline},{default:a.withCtx(()=>{var Y;return[b.value||M.timePicker||M.timePickerInline?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass({dp__overlay:!M.timePickerInline}),ref_key:"overlayRef",ref:y,tabindex:M.timePickerInline?void 0:0},[a.createElementVNode("div",{class:a.normalizeClass(M.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[M.$slots["time-picker-overlay"]?a.renderSlot(M.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:I,setMinutes:F,setSeconds:q}):a.createCommentVNode("",!0),M.$slots["time-picker-overlay"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(M.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(T.value,(X,K)=>a.withDirectives((a.openBlock(),a.createBlock(ET,a.mergeProps({key:K},{...M.$props,order:K,hours:X.hours,minutes:X.minutes,seconds:X.seconds,closeTimePickerBtn:h.value,disabled:K===0?M.fixedStart:M.fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:m,"onUpdate:hours":j=>I(C(j,K,"hours")),"onUpdate:minutes":j=>F(C(j,K,"minutes")),"onUpdate:seconds":j=>q(C(j,K,"seconds")),onMounted:W,onOverlayClosed:W,onAmPmChange:D[3]||(D[3]=j=>M.$emit("am-pm-change",j))}),a.createSlots({_:2},[a.renderList(a.unref(B),(j,U)=>({name:j,fn:a.withCtx(S=>[a.renderSlot(M.$slots,j,a.normalizeProps(a.guardReactiveProps(S)))])}))]),1040,["onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[a.vShow,K===0?!0:k.value]])),128))],2)),!M.timePicker&&!M.timePickerInline?a.withDirectives((a.openBlock(),a.createElementBlock("button",{key:2,type:"button",ref_key:"closeTimePickerBtn",ref:h,class:a.normalizeClass(_.value),"aria-label":(Y=a.unref(u).ariaLabels)==null?void 0:Y.closeTimePicker,tabindex:"0",onKeydown:[D[4]||(D[4]=a.withKeys(X=>O(!1),["enter"])),D[5]||(D[5]=a.withKeys(X=>O(!1),["space"]))],onClick:D[6]||(D[6]=X=>O(!1))},[M.$slots["calendar-icon"]?a.renderSlot(M.$slots,"calendar-icon",{key:0}):a.createCommentVNode("",!0),M.$slots["calendar-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Ui),{key:1}))],42,IT)),[[a.vShow,!a.unref(l)("time")]]):a.createCommentVNode("",!0)],2)],10,PT)):a.createCommentVNode("",!0)]}),_:3},8,["name","css"])])}}}),NT=(e,t)=>{const{isDisabled:n,matchDate:r,getWeekFromDate:o,defaults:i}=fn(t),s=a.ref(null),l=a.ref(ae()),u=S=>{!S.current&&t.hideOffsetDates||(s.value=S.value)},c=()=>{s.value=null},f=S=>Array.isArray(e.value)&&t.range&&e.value[0]&&s.value?S?nn(s.value,e.value[0]):qt(s.value,e.value[0]):!0,p=(S,H)=>{const Z=()=>e.value?H?e.value[0]||null:e.value[1]:null,Q=e.value&&Array.isArray(e.value)?Z():null;return ot(ae(S.value),Q)},h=S=>{const H=Array.isArray(e.value)?e.value[0]:null;return S?!qt(s.value||null,H):!0},m=(S,H=!0)=>(t.range||t.weekPicker)&&Array.isArray(e.value)&&e.value.length===2?t.hideOffsetDates&&!S.current?!1:ot(ae(S.value),e.value[H?0:1]):t.range?p(S,H)&&h(H)||ot(S.value,Array.isArray(e.value)?e.value[0]:null)&&f(H):!1,y=(S,H,Z)=>Array.isArray(e.value)&&e.value[0]&&e.value.length===1?S?!1:Z?nn(e.value[0],H.value):qt(e.value[0],H.value):!1,k=S=>!e.value||t.hideOffsetDates&&!S.current?!1:t.range?t.modelAuto&&Array.isArray(e.value)?ot(S.value,e.value[0]?e.value[0]:l.value):!1:t.multiDates&&Array.isArray(e.value)?e.value.some(H=>ot(H,S.value)):ot(S.value,e.value?e.value:l.value),b=S=>{if(t.autoRange||t.weekPicker){if(s.value){if(t.hideOffsetDates&&!S.current)return!1;const H=lr(s.value,+t.autoRange),Z=o(ae(s.value));return t.weekPicker?ot(Z[1],ae(S.value)):ot(H,ae(S.value))}return!1}return!1},w=S=>{if(t.autoRange||t.weekPicker){if(s.value){const H=lr(s.value,+t.autoRange);if(t.hideOffsetDates&&!S.current)return!1;const Z=o(ae(s.value));return t.weekPicker?nn(S.value,Z[0])&&qt(S.value,Z[1]):nn(S.value,s.value)&&qt(S.value,H)}return!1}return!1},T=S=>{if(t.autoRange||t.weekPicker){if(s.value){if(t.hideOffsetDates&&!S.current)return!1;const H=o(ae(s.value));return t.weekPicker?ot(H[0],S.value):ot(s.value,S.value)}return!1}return!1},O=S=>nh(e.value,s.value,S.value),_=()=>t.modelAuto&&Array.isArray(t.internalModelValue)?!!t.internalModelValue[0]:!1,B=()=>t.modelAuto?sh(t.internalModelValue):!0,C=S=>{if(Array.isArray(e.value)&&e.value.length||t.weekPicker)return!1;const H=t.range?!m(S)&&!m(S,!1):!0;return!n(S.value)&&!k(S)&&!(!S.current&&t.hideOffsetDates)&&H},I=S=>t.range?t.modelAuto?_()&&k(S):!1:k(S),F=S=>{var H;return t.highlight?r(S.value,(H=t.arrMapValues)!=null&&H.highlightedDates?t.arrMapValues.highlightedDates:t.highlight):!1},q=S=>n(S.value)&&t.highlightDisabledDays===!1,W=S=>t.highlightWeekDays&&t.highlightWeekDays.includes(S.value.getDay()),M=S=>(t.range||t.weekPicker)&&(!(i.value.multiCalendars>0)||S.current)&&B()&&!(!S.current&&t.hideOffsetDates)&&!k(S)?O(S):!1,D=S=>{const{isRangeStart:H,isRangeEnd:Z}=X(S),Q=t.range?H||Z:!1;return{dp__cell_offset:!S.current,dp__pointer:!t.disabled&&!(!S.current&&t.hideOffsetDates)&&!n(S.value),dp__cell_disabled:n(S.value),dp__cell_highlight:!q(S)&&(F(S)||W(S))&&!I(S)&&!Q,dp__cell_highlight_active:!q(S)&&(F(S)||W(S))&&I(S),dp__today:!t.noToday&&ot(S.value,l.value)&&S.current}},$=S=>({dp__active_date:I(S),dp__date_hover:C(S)}),Y=S=>({...K(S),...j(S),dp__range_between_week:M(S)&&t.weekPicker}),X=S=>{const H=i.value.multiCalendars>0?S.current&&m(S)&&B():m(S)&&B(),Z=i.value.multiCalendars>0?S.current&&m(S,!1)&&B():m(S,!1)&&B();return{isRangeStart:H,isRangeEnd:Z}},K=S=>{const{isRangeStart:H,isRangeEnd:Z}=X(S);return{dp__range_start:H,dp__range_end:Z,dp__range_between:M(S)&&!t.weekPicker,dp__date_hover_start:y(C(S),S,!0),dp__date_hover_end:y(C(S),S,!1)}},j=S=>({...K(S),dp__cell_auto_range:w(S),dp__cell_auto_range_start:T(S),dp__cell_auto_range_end:b(S)}),U=S=>t.range?t.autoRange?j(S):t.modelAuto?{...$(S),...K(S)}:K(S):t.weekPicker?Y(S):$(S);return{setHoverDate:u,clearHoverDate:c,getDayClassData:S=>t.hideOffsetDates&&!S.current?{}:{...D(S),...U(S),[t.dayClass?t.dayClass(S.value):""]:!0,[t.calendarCellClassName]:!!t.calendarCellClassName}}},OT=["id","onKeydown"],BT={key:0,class:"dp__sidebar_left"},MT={key:1,class:"dp__preset_ranges"},RT=["onClick"],AT={key:2,class:"dp__sidebar_right"},$T={key:3,class:"dp__action_extra"},LT=a.defineComponent({__name:"DatepickerMenu",props:{openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},arrMapValues:{type:Object,default:()=>({})},...xr},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end"],setup(e,{expose:t,emit:n}){const r=e,o=a.computed(()=>{const{openOnTop:J,internalModelValue:le,arrMapValues:Le,...De}=r;return De}),{setMenuFocused:i,setShiftKey:s,control:l}=rh(),{getCalendarDays:u,defaults:c}=fn(r),f=a.useSlots(),p=a.ref(null),h=a.reactive({timePicker:!!(!r.enableTimePicker||r.timePicker||r.monthPicker),monthYearInput:!!r.timePicker,calendar:!1}),m=a.ref([]),y=a.ref([]),k=a.ref(null),b=a.ref(null),w=a.ref(0),T=a.ref(!1),O=a.ref(0);a.onMounted(()=>{var J;T.value=!0,!((J=r.presetRanges)!=null&&J.length)&&!f["left-sidebar"]&&!f["right-sidebar"]&&(Qe(),window.addEventListener("resize",Qe));const le=wt(b);if(le&&!r.textInput&&!r.inline&&(i(!0),q()),le){const Le=De=>{r.allowPreventDefault&&De.preventDefault(),De.stopImmediatePropagation(),De.stopPropagation()};le.addEventListener("pointerdown",Le),le.addEventListener("mousedown",Le)}}),a.onUnmounted(()=>{window.removeEventListener("resize",Qe)});const{arrowRight:_,arrowLeft:B,arrowDown:C,arrowUp:I}=Er(),F=J=>{J||J===0?y.value[J].triggerTransition(Y.value(J),X.value(J)):y.value.forEach((le,Le)=>le.triggerTransition(Y.value(Le),X.value(Le)))},q=()=>{const J=wt(b);J&&J.focus({preventScroll:!0})},W=()=>{var J;(J=r.flow)!=null&&J.length&&O.value!==-1&&(O.value+=1,n("flow-step",O.value),ee())},M=()=>{O.value=-1},{calendars:D,modelValue:$,month:Y,year:X,time:K,updateTime:j,updateMonthYear:U,selectDate:S,getWeekNum:H,monthYearSelect:Z,handleScroll:Q,handleArrow:V,handleSwipe:E,getMarker:P,selectCurrentDate:R,presetDateRange:G}=RC(r,n,W,F,O),{setHoverDate:ie,clearHoverDate:oe,getDayClassData:Ie}=NT($,r),Ee={modelValue:$,month:Y,year:X,time:K,updateTime:j,updateMonthYear:U,selectDate:S,presetDateRange:G,handleMonthYearChange:J=>{m.value[0]&&m.value[0].handleMonthYearChange(J)}};a.watch(D,()=>{r.openOnTop&&setTimeout(()=>{n("recalculate-position")},0)},{deep:!0});const fe=Fr(f,"calendar"),Be=Fr(f,"action"),$e=Fr(f,"timePicker"),ze=Fr(f,"monthYear"),Ge=a.computed(()=>r.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),Ke=a.computed(()=>kC(r.yearRange,r.reverseYears)),ve=a.computed(()=>SC(r.formatLocale,r.locale,r.monthNameFormat)),Qe=()=>{const J=wt(p);J&&(w.value=J.getBoundingClientRect().width)},Te=a.computed(()=>J=>u(Y.value(J),X.value(J))),se=a.computed(()=>c.value.multiCalendars>0?[...Array(c.value.multiCalendars).keys()]:[0]),ce=a.computed(()=>J=>J===1),me=a.computed(()=>r.monthPicker||r.timePicker||r.yearPicker),Pt=a.computed(()=>({dp__menu_inner:!0,dp__flex_display:c.value.multiCalendars>0})),xe=a.computed(()=>({dp__instance_calendar:c.value.multiCalendars>0})),Mt=a.computed(()=>({dp__menu_disabled:r.disabled,dp__menu_readonly:r.readonly})),Ut=a.computed(()=>J=>zt(Te,J)),Rt=a.computed(()=>({dp__menu:!0,dp__menu_index:!r.inline,dp__relative:r.inline,[r.menuClassName]:!!r.menuClassName})),zt=(J,le)=>J.value(le).map(Le=>({...Le,days:Le.days.map(De=>(De.marker=P(De),De.classData=Ie(De),De))})),kn=J=>{J.stopPropagation(),J.stopImmediatePropagation()},Sn=()=>{r.escClose&&n("close-picker")},Et=(J,le=!1)=>{S(J,le),r.spaceConfirm&&n("select-date")},L=J=>{var le;(le=r.flow)!=null&&le.length&&(h[J]=!0,Object.keys(h).filter(Le=>!h[Le]).length||ee())},N=(J,le,Le,De,...st)=>{if(r.flow[O.value]===J){const pe=De?le.value[0]:le.value;pe&&pe[Le](...st)}},ee=()=>{N("month",m,"toggleMonthPicker",!0,!0),N("year",m,"toggleYearPicker",!0,!0),N("calendar",k,"toggleTimePicker",!1,!1,!0),N("time",k,"toggleTimePicker",!1,!0,!0);const J=r.flow[O.value];(J==="hours"||J==="minutes"||J==="seconds")&&N(J,k,"toggleTimePicker",!1,!0,!0,J)},re=J=>{if(r.arrowNavigation){if(J==="up")return I();if(J==="down")return C();if(J==="left")return B();if(J==="right")return _()}else J==="left"||J==="up"?V("left",0,J==="up"):V("right",0,J==="down")},ge=J=>{s(J.shiftKey),!r.disableMonthYearSelect&&J.code==="Tab"&&J.target.classList.contains("dp__menu")&&l.value.shiftKeyInMenu&&(J.preventDefault(),J.stopImmediatePropagation(),n("close-picker"))},we=()=>{q(),n("time-picker-close")},qe=J=>{var le,Le,De,st,pe;(le=k.value)==null||le.toggleTimePicker(!1,!1),(De=(Le=m.value)==null?void 0:Le[J])==null||De.toggleMonthPicker(!1,!1),(pe=(st=m.value)==null?void 0:st[J])==null||pe.toggleYearPicker(!1,!1)};return t({updateMonthYear:U,switchView:(J,le=0)=>{var Le,De,st,pe,mt;return J==="month"?(De=(Le=m.value)==null?void 0:Le[le])==null?void 0:De.toggleMonthPicker(!1,!0):J==="year"?(pe=(st=m.value)==null?void 0:st[le])==null?void 0:pe.toggleYearPicker(!1,!0):J==="time"?(mt=k.value)==null?void 0:mt.toggleTimePicker(!0,!1):qe(le)}}),(J,le)=>{var Le;return a.openBlock(),a.createBlock(a.Transition,{appear:"",name:(Le=a.unref(c).transitions)==null?void 0:Le.menuAppear,css:!!J.transitions},{default:a.withCtx(()=>{var De,st;return[a.createElementVNode("div",{id:J.uid?`dp-menu-${J.uid}`:void 0,tabindex:"0",ref_key:"dpMenuRef",ref:b,role:"dialog",class:a.normalizeClass(Rt.value),onMouseleave:le[14]||(le[14]=(...pe)=>a.unref(oe)&&a.unref(oe)(...pe)),onClick:kn,onKeydown:[a.withKeys(Sn,["esc"]),le[15]||(le[15]=a.withKeys(a.withModifiers(pe=>re("left"),["prevent"]),["left"])),le[16]||(le[16]=a.withKeys(a.withModifiers(pe=>re("up"),["prevent"]),["up"])),le[17]||(le[17]=a.withKeys(a.withModifiers(pe=>re("down"),["prevent"]),["down"])),le[18]||(le[18]=a.withKeys(a.withModifiers(pe=>re("right"),["prevent"]),["right"])),ge]},[(J.disabled||J.readonly)&&J.inline?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(Mt.value)},null,2)):a.createCommentVNode("",!0),!J.inline&&!J.teleportCenter?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(Ge.value)},null,2)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass({dp__menu_content_wrapper:((De=J.presetRanges)==null?void 0:De.length)||!!J.$slots["left-sidebar"]||!!J.$slots["right-sidebar"]})},[J.$slots["left-sidebar"]?(a.openBlock(),a.createElementBlock("div",BT,[a.renderSlot(J.$slots,"left-sidebar",a.normalizeProps(a.guardReactiveProps(Ee)))])):a.createCommentVNode("",!0),(st=J.presetRanges)!=null&&st.length?(a.openBlock(),a.createElementBlock("div",MT,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(J.presetRanges,(pe,mt)=>(a.openBlock(),a.createElementBlock("div",{key:mt,style:a.normalizeStyle(pe.style||{}),class:"dp__preset_range",onClick:Me=>a.unref(G)(pe.range,!!pe.slot)},[pe.slot?a.renderSlot(J.$slots,pe.slot,{key:0,presetDateRange:a.unref(G),label:pe.label,range:pe.range}):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(pe.label),1)],64))],12,RT))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"dp__instance_calendar",ref_key:"calendarWrapperRef",ref:p,role:"document"},[a.createElementVNode("div",{class:a.normalizeClass(Pt.value)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(se.value,(pe,mt)=>(a.openBlock(),a.createElementBlock("div",{key:pe,class:a.normalizeClass(xe.value)},[!J.disableMonthYearSelect&&!J.timePicker?(a.openBlock(),a.createBlock(mT,a.mergeProps({key:0,ref_for:!0,ref:Me=>{Me&&(m.value[mt]=Me)},months:ve.value,years:Ke.value,month:a.unref(Y)(pe),year:a.unref(X)(pe),instance:pe,"internal-model-value":e.internalModelValue},o.value,{onMount:le[0]||(le[0]=Me=>L("monthYearInput")),onResetFlow:M,onUpdateMonthYear:Me=>a.unref(U)(pe,Me),onMonthYearSelect:a.unref(Z),onOverlayClosed:q}),a.createSlots({_:2},[a.renderList(a.unref(ze),(Me,ln)=>({name:Me,fn:a.withCtx(At=>[a.renderSlot(J.$slots,Me,a.normalizeProps(a.guardReactiveProps(At)))])}))]),1040,["months","years","month","year","instance","internal-model-value","onUpdateMonthYear","onMonthYearSelect"])):a.createCommentVNode("",!0),a.createVNode(rT,a.mergeProps({ref_for:!0,ref:Me=>{Me&&(y.value[mt]=Me)},"specific-mode":me.value,"get-week-num":a.unref(H),instance:pe,"mapped-dates":Ut.value(pe),month:a.unref(Y)(pe),year:a.unref(X)(pe)},o.value,{onSelectDate:Me=>a.unref(S)(Me,!ce.value(pe)),onHandleSpace:Me=>Et(Me,!ce.value(pe)),onSetHoverDate:le[1]||(le[1]=Me=>a.unref(ie)(Me)),onHandleScroll:Me=>a.unref(Q)(Me,pe),onHandleSwipe:Me=>a.unref(E)(Me,pe),onMount:le[2]||(le[2]=Me=>L("calendar")),onResetFlow:M,onTooltipOpen:le[3]||(le[3]=Me=>J.$emit("tooltip-open",Me)),onTooltipClose:le[4]||(le[4]=Me=>J.$emit("tooltip-close",Me))}),a.createSlots({_:2},[a.renderList(a.unref(fe),(Me,ln)=>({name:Me,fn:a.withCtx(At=>[a.renderSlot(J.$slots,Me,a.normalizeProps(a.guardReactiveProps({...At})))])}))]),1040,["specific-mode","get-week-num","instance","mapped-dates","month","year","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])],2))),128))],2),a.createElementVNode("div",null,[J.$slots["time-picker"]?a.renderSlot(J.$slots,"time-picker",a.normalizeProps(a.mergeProps({key:0},{time:a.unref(K),updateTime:a.unref(j)}))):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[J.enableTimePicker&&!J.monthPicker&&!J.weekPicker?(a.openBlock(),a.createBlock(DT,a.mergeProps({key:0,ref_key:"timePickerRef",ref:k,hours:a.unref(K).hours,minutes:a.unref(K).minutes,seconds:a.unref(K).seconds,"internal-model-value":e.internalModelValue},o.value,{onMount:le[5]||(le[5]=pe=>L("timePicker")),"onUpdate:hours":le[6]||(le[6]=pe=>a.unref(j)(pe)),"onUpdate:minutes":le[7]||(le[7]=pe=>a.unref(j)(pe,!1)),"onUpdate:seconds":le[8]||(le[8]=pe=>a.unref(j)(pe,!1,!0)),onResetFlow:M,onOverlayClosed:we,onOverlayOpened:le[9]||(le[9]=pe=>J.$emit("time-picker-open",pe)),onAmPmChange:le[10]||(le[10]=pe=>J.$emit("am-pm-change",pe))}),a.createSlots({_:2},[a.renderList(a.unref($e),(pe,mt)=>({name:pe,fn:a.withCtx(Me=>[a.renderSlot(J.$slots,pe,a.normalizeProps(a.guardReactiveProps(Me)))])}))]),1040,["hours","minutes","seconds","internal-model-value"])):a.createCommentVNode("",!0)],64))])],512),J.$slots["right-sidebar"]?(a.openBlock(),a.createElementBlock("div",AT,[a.renderSlot(J.$slots,"right-sidebar",a.normalizeProps(a.guardReactiveProps(Ee)))])):a.createCommentVNode("",!0),J.$slots["action-extra"]?(a.openBlock(),a.createElementBlock("div",$T,[J.$slots["action-extra"]?a.renderSlot(J.$slots,"action-extra",{key:0,selectCurrentDate:a.unref(R)}):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)],2),!J.autoApply||J.keepActionRow?(a.openBlock(),a.createBlock(GC,a.mergeProps({key:2,"menu-mount":T.value,"calendar-width":w.value,"internal-model-value":e.internalModelValue},o.value,{onClosePicker:le[11]||(le[11]=pe=>J.$emit("close-picker")),onSelectDate:le[12]||(le[12]=pe=>J.$emit("select-date")),onInvalidSelect:le[13]||(le[13]=pe=>J.$emit("invalid-select")),onSelectNow:a.unref(R)}),a.createSlots({_:2},[a.renderList(a.unref(Be),(pe,mt)=>({name:pe,fn:a.withCtx(Me=>[a.renderSlot(J.$slots,pe,a.normalizeProps(a.guardReactiveProps({...Me})))])}))]),1040,["menu-mount","calendar-width","internal-model-value","onSelectNow"])):a.createCommentVNode("",!0)],42,OT)]}),_:3},8,["name","css"])}}}),VT=typeof window<"u"?window:void 0,Ws=()=>{},FT=e=>a.getCurrentScope()?(a.onScopeDispose(e),!0):!1,HT=(e,t,n,r)=>{if(!e)return Ws;let o=Ws;const i=a.watch(()=>a.unref(e),l=>{o(),l&&(l.addEventListener(t,n,r),o=()=>{l.removeEventListener(t,n,r),o=Ws})},{immediate:!0,flush:"post"}),s=()=>{i(),o()};return FT(s),s},UT=(e,t,n,r={})=>{const{window:o=VT,event:i="pointerdown"}=r;return o?HT(o,i,s=>{const l=wt(e),u=wt(t);!l||!u||l===s.target||s.composedPath().includes(l)||s.composedPath().includes(u)||n(s)},{passive:!0}):void 0},zT=a.defineComponent({__name:"VueDatePicker",props:{...xr},emits:["update:model-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end"],setup(e,{expose:t,emit:n}){const r=e,o=a.useSlots(),i=a.ref(!1),s=a.toRef(r,"modelValue"),l=a.toRef(r,"timezone"),u=a.ref(null),c=a.ref(null),f=a.ref(!1),p=a.ref(null),h=a.reactive({disabledDates:null,allowedDates:null,highlightedDates:null}),{setMenuFocused:m,setShiftKey:y}=rh(),{clearArrowNav:k}=Er(),{validateDate:b,isValidTime:w,defaults:T,mapDatesArrToMap:O}=fn(r);a.onMounted(()=>{Y(r.modelValue),r.inline||(M(p.value).addEventListener("scroll",Z),window.addEventListener("resize",Q)),r.inline&&(i.value=!0),O(h)}),a.onUnmounted(()=>{if(!r.inline){const se=M(p.value);se&&se.removeEventListener("scroll",Z),window.removeEventListener("resize",Q)}});const _=Fr(o,"all",r.presetRanges),B=Fr(o,"input");a.watch([s,l],()=>{Y(s.value)},{deep:!0});const{openOnTop:C,menuStyle:I,resetPosition:F,setMenuPosition:q,setInitialPosition:W,getScrollableParent:M}=LC(u,c,n,r),{inputValue:D,internalModelValue:$,parseExternalModelValue:Y,emitModelValue:X,formatInputValue:K,checkBeforeEmit:j}=AC(n,r,f),U=a.computed(()=>({dp__main:!0,dp__theme_dark:r.dark,dp__theme_light:!r.dark,dp__flex_display:r.inline,dp__flex_display_with_input:r.inlineWithInput})),S=a.computed(()=>r.dark?"dp__theme_dark":"dp__theme_light"),H=a.computed(()=>r.teleport?{to:typeof r.teleport=="boolean"?"body":r.teleport,disabled:r.inline}:{class:"dp__outer_menu_wrap"}),Z=()=>{i.value&&(r.closeOnScroll?Ee():q())},Q=()=>{i.value&&q()},V=async()=>{var se,ce,me;!r.disabled&&!r.readonly&&(F(),await a.nextTick(),i.value=!0,await a.nextTick(),W(),await a.nextTick(),q(),delete I.value.opacity,!((se=T.value.transitions)!=null&&se.menuAppear)&&r.transitions&&((me=(ce=u.value)==null?void 0:ce.$el)==null||me.classList.add("dp__menu_transitioned")),i.value&&n("open"),i.value||Ie(),Y(r.modelValue))},E=()=>{D.value="",Ie(),n("update:model-value",null),n("cleared"),r.closeOnClearValue&&Ee()},P=()=>{const se=$.value;return!se||!Array.isArray(se)&&b(se)?!0:Array.isArray(se)?se.length===2&&b(se[0])&&b(se[1])?!0:b(se[0]):!1},R=()=>{j()&&P()?(X(),Ee()):n("invalid-select",$.value)},G=se=>{ie(),X(),r.closeOnAutoApply&&!se&&Ee()},ie=()=>{c.value&&r.textInput&&c.value.setParsedDate($.value)},oe=(se=!1)=>{r.autoApply&&w($.value)&&P()&&(r.range&&Array.isArray($.value)?(r.partialRange||$.value.length===2)&&G(se):G(se))},Ie=()=>{r.textInput||($.value=null)},Ee=()=>{r.inline||(i.value&&(i.value=!1,m(!1),y(!1),k(),n("closed"),W(),D.value&&Y(s.value)),Ie())},fe=(se,ce)=>{if(!se){$.value=null;return}$.value=se,ce&&(R(),n("text-submit"))},Be=()=>{r.autoApply&&w($.value)&&X(),ie()},$e=()=>i.value?Ee():V(),ze=se=>{$.value=se},Ge=()=>{r.textInput&&(f.value=!0,K()),n("focus")},Ke=()=>{r.textInput&&(f.value=!1,Y(r.modelValue)),n("blur")},ve=se=>{u.value&&u.value.updateMonthYear(0,{month:vd(se.month),year:vd(se.year)})},Qe=se=>{Y(se||r.modelValue)},Te=(se,ce)=>{var me;(me=u.value)==null||me.switchView(se,ce)};return UT(u,c,r.onClickOutside?()=>r.onClickOutside(P):Ee),t({closeMenu:Ee,selectDate:R,clearValue:E,openMenu:V,onScroll:Z,formatInputValue:K,updateInternalModelValue:ze,setMonthYear:ve,parseModel:Qe,switchView:Te}),(se,ce)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(U.value),ref_key:"pickerWrapperRef",ref:p},[a.createVNode(jC,a.mergeProps({ref_key:"inputRef",ref:c,"is-menu-open":i.value,"input-value":a.unref(D),"onUpdate:inputValue":ce[0]||(ce[0]=me=>a.isRef(D)?D.value=me:null)},se.$props,{onClear:E,onOpen:V,onSetInputDate:fe,onSetEmptyDate:a.unref(X),onSelectDate:R,onToggle:$e,onClose:Ee,onFocus:Ge,onBlur:Ke,onRealBlur:ce[1]||(ce[1]=me=>f.value=!1)}),a.createSlots({_:2},[a.renderList(a.unref(B),(me,Pt)=>({name:me,fn:a.withCtx(xe=>[a.renderSlot(se.$slots,me,a.normalizeProps(a.guardReactiveProps(xe)))])}))]),1040,["is-menu-open","input-value","onSetEmptyDate"]),i.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(se.teleport?a.Teleport:"div"),a.normalizeProps(a.mergeProps({key:0},H.value)),{default:a.withCtx(()=>[i.value?(a.openBlock(),a.createBlock(LT,a.mergeProps({key:0,ref_key:"dpMenuRef",ref:u,class:S.value,style:se.inline?void 0:a.unref(I),"open-on-top":a.unref(C),"arr-map-values":h},se.$props,{"internal-model-value":a.unref($),"onUpdate:internalModelValue":ce[2]||(ce[2]=me=>a.isRef($)?$.value=me:null),onClosePicker:Ee,onSelectDate:R,onAutoApply:oe,onTimeUpdate:Be,onFlowStep:ce[3]||(ce[3]=me=>se.$emit("flow-step",me)),onUpdateMonthYear:ce[4]||(ce[4]=me=>se.$emit("update-month-year",me)),onInvalidSelect:ce[5]||(ce[5]=me=>se.$emit("invalid-select",a.unref($))),onInvalidFixedRange:ce[6]||(ce[6]=me=>se.$emit("invalid-fixed-range",me)),onRecalculatePosition:a.unref(q),onTooltipOpen:ce[7]||(ce[7]=me=>se.$emit("tooltip-open",me)),onTooltipClose:ce[8]||(ce[8]=me=>se.$emit("tooltip-close",me)),onTimePickerOpen:ce[9]||(ce[9]=me=>se.$emit("time-picker-open",me)),onTimePickerClose:ce[10]||(ce[10]=me=>se.$emit("time-picker-close",me)),onAmPmChange:ce[11]||(ce[11]=me=>se.$emit("am-pm-change",me)),onRangeStart:ce[12]||(ce[12]=me=>se.$emit("range-start",me)),onRangeEnd:ce[13]||(ce[13]=me=>se.$emit("range-end",me))}),a.createSlots({_:2},[a.renderList(a.unref(_),(me,Pt)=>({name:me,fn:a.withCtx(xe=>[a.renderSlot(se.$slots,me,a.normalizeProps(a.guardReactiveProps({...xe})))])}))]),1040,["class","style","open-on-top","arr-map-values","internal-model-value","onRecalculatePosition"])):a.createCommentVNode("",!0)]),_:3},16)):a.createCommentVNode("",!0)],2))}}),ku=(()=>{const e=zT;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),jT=Object.freeze(Object.defineProperty({__proto__:null,default:ku},Symbol.toStringTag,{value:"Module"}));Object.entries(jT).forEach(([e,t])=>{e!=="default"&&(ku[e]=t)});const WT={class:"relative w-full"},qT=["value","placeholder"],YT={key:0,class:"pointer-events-none absolute left-5 top-2.5 space-x-2 peer-focus:hidden","data-test-location-labels":""},GT=a.defineComponent({inheritAttrs:!1,__name:"LocationInput",props:{placeholder:{default:""},placeOptions:{default:null},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=a.ref(null),o=a.ref("");return a.onMounted(async()=>{if(!r.value)return;if(!(window!=null&&window.google)){console.error("Google not defined. use composable useGoogleApi at setup");return}const{Autocomplete:i}=await google.maps.importLibrary("places"),s=new i(r.value,{strictBounds:!1,types:["address"],componentRestrictions:{country:"nl"},...n.placeOptions});s.addListener("place_changed",()=>{var O,_,B,C,I,F,q,W,M,D,$;o.value="";const l=s.getPlace(),u=(O=l.geometry)==null?void 0:O.location,c=l.address_components??[],f=u==null?void 0:u.lat(),p=u==null?void 0:u.lng(),h=(_=c.find(Y=>Y.types.includes("postal_code")))==null?void 0:_.long_name,m=(B=c.find(Y=>Y.types.includes("route")))==null?void 0:B.long_name,y=parseInt(((I=(C=c.find(Y=>Y.types.includes("street_number")))==null?void 0:C.long_name.split(/(\d*)(.*)/s))==null?void 0:I[1])??"",10),k=(q=(F=c.find(Y=>Y.types.includes("street_number")))==null?void 0:F.long_name.split(/(\d*)(.*)/s))==null?void 0:q[2],b=(W=c.find(Y=>Y.types.includes("locality")))==null?void 0:W.long_name,w=(M=c.find(Y=>Y.types.includes("administrative_area_level_1")))==null?void 0:M.long_name,T=(D=c.find(Y=>Y.types.includes("administrative_area_level_1")))==null?void 0:D.short_name;($=r.value)==null||$.blur(),t("update:modelValue",{postcode:h,street:m,number:y>0?y:void 0,numberSuffix:k,city:b,province:w,provinceShort:T,lat:f,lng:p})})}),(i,s)=>{var l,u,c;return a.openBlock(),a.createElementBlock("div",WT,[a.createElementVNode("input",a.mergeProps({ref_key:"input",ref:r,value:o.value,placeholder:i.placeholder},{...i.$attrs},{class:"peer text-zinc-900",onKeydown:s[0]||(s[0]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["enter"]))}),null,16,qT),(l=i.modelValue)!=null&&l.postcode||(u=i.modelValue)!=null&&u.street||(c=i.modelValue)!=null&&c.number?(a.openBlock(),a.createElementBlock("div",YT,[a.createVNode(a.unref(fi),{class:"empty:hidden","data-test-street-label":""},{default:a.withCtx(()=>{var f,p,h;return[a.createTextVNode(a.toDisplayString((f=i.modelValue)==null?void 0:f.street)+" "+a.toDisplayString((p=i.modelValue)==null?void 0:p.number)+a.toDisplayString((h=i.modelValue)==null?void 0:h.numberSuffix),1)]}),_:1}),a.createVNode(a.unref(fi),{class:"empty:hidden","data-test-postcode-label":""},{default:a.withCtx(()=>{var f;return[a.createTextVNode(a.toDisplayString((f=i.modelValue)==null?void 0:f.postcode),1)]}),_:1})])):a.createCommentVNode("",!0)])}}});const KT=["multiple"],XT=a.defineComponent({inheritAttrs:!1,__name:"FileInput",props:{modelValue:{},multiple:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=a.computed({get:()=>n.modelValue,set:i=>t("update:modelValue",i)});function o(i){const l=i.target.files;l&&(r.value=Array.from(l))}return(i,s)=>(a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("label",null,[a.createElementVNode("input",a.mergeProps({...i.$attrs},{multiple:i.multiple,type:"file",class:"hidden","data-test-input":"",onChange:o}),null,16,KT),a.renderSlot(i.$slots,"default",{},()=>[a.createVNode(a.unref(Wr),{as:"span","color-type":"white",class:"h-10 w-10 !p-2.5"},{default:a.withCtx(()=>[a.createVNode(a.unref(n_),{class:"h-5 w-5"})]),_:1})])])]))}}),JT={disabled:!1,readonly:!1,loading:!1,required:!1,multiple:!1,hasError:!1,label:void 0,errorMessage:""};function QT(e){return go(e)?ku:yi(e)?GT:e==="file"?XT:e==="textarea"?"textarea":"input"}function wl(e){return e==="license"}function ZT(e,t,n){return Hi(e)&&(!!t.default||!!n)}function _i(e,t,n,r){return Hi(t)||wl(t)||e==="leading"&&yi(t)?!1:e==="trailing"?!!r.trailingIcon||go(t)||yi(t)||n&&!r.leadingIcon:!!r[`${e}Icon`]}const eE=`block h-12 w-full appearance-none rounded-lg
72
72
  placeholder:text-zinc-300 focus:outline-none text-base
73
73
  disabled:cursor-not-allowed disabled:border-zinc-100 disabled:bg-zinc-100
74
- read-only:cursor-default read-only:border-zinc-300 read-only:bg-zinc-100`;function ZT(e,t,n,r,o,i,s){if(Hi(e))return US(e,r);const l=((s==null?void 0:s.class)??"").includes("text-center"),u=_i("leading",e,n,i),c=_i("trailing",e,n,i);return{"border-zinc-300":!r,"border-zinc-100":t,"px-10":l&&(u||c),"pl-10 pr-5":u&&!l,"pr-10 pl-5":c&&!l,"px-5":!u&&!c,"!pl-0":!u&&go(e),[QT]:!0,"py-3":!go(e),"h-12":e!=="textarea","h-24":e==="textarea","border-error text-error placeholder-error focus:ring-error focus:border-error":r,"text-center bg-transparent text-lg uppercase":wl(e),"border bg-white focus:ring-1 focus:ring-zinc-300 hover:bg-zinc-100":!wl(e),"border ring-1 ring-zinc-300":o}}const eE=["type"],tE=["value"],nE=a.defineComponent({__name:"Input",props:{modelValue:{},type:{}},emits:["update:modelValue","open"],setup(e,{emit:t}){const n=e,r=a.computed({get:()=>n.modelValue,set:s=>t("update:modelValue",s)}),o=a.computed(()=>XT(n.type));function i(s){r.value=s.target.value}return(s,l)=>o.value==="input"?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,"onUpdate:modelValue":l[0]||(l[0]=u=>r.value=u),type:s.type,"data-test-input":""},null,8,eE)),[[a.vModelDynamic,r.value]]):o.value==="textarea"?(a.openBlock(),a.createElementBlock("textarea",{key:1,value:s.modelValue,"data-test-textarea":"",onInput:i},null,40,tE)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.value),{key:2,modelValue:r.value,"onUpdate:modelValue":l[1]||(l[1]=u=>r.value=u),onOpen:l[2]||(l[2]=()=>t("open"))},null,40,["modelValue"]))}});const rE=Jn(nE,[["__scopeId","data-v-98287bc9"]]),aE={key:1,class:"order-2 mt-1.5 flex items-center gap-x-1 text-xs italic text-error","data-test-error-message":""},lh=a.defineComponent({inheritAttrs:!1,__name:"AppInput",props:a.mergeDefaults({type:{},modelValue:{},readonly:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean},required:{type:Boolean},hasError:{type:Boolean},errorMessage:{},label:{},wrapperClasses:{},inputWrapperClasses:{},iconClasses:{},labelClasses:{}},KT),emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=`input-${mw()}`,i=a.ref(!1),s=a.computed({get:()=>n.modelValue,set:_=>t("update:modelValue",_)}),l=a.computed(()=>go(n.type)),u=a.computed(()=>Hi(n.type)),c=a.computed(()=>yi(n.type)),f=a.computed(()=>{if(l.value){const _=n.type;return RS[_]}if(c.value)return t_}),p=a.computed(()=>{const _=n.type;return l.value?$S(_,o):void 0}),h=a.computed(()=>n.type==="license"?"text":n.type),m=a.computed(()=>({id:o,type:h.value,required:n.required,disabled:n.disabled,readonly:n.readonly})),y=a.computed(()=>n.type==="license"?a.h(ch,{licensePlateClasses:"!p-0"}):a.h("div")),k=a.computed(()=>{const _=n.inputWrapperClasses,w=n.type==="license"?"items-stretch":"relative w-full items-center justify-center";return`${_} ${w}`});return(_,w)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(_.wrapperClasses)},[(_.label||_.$slots.label)&&!u.value?(a.openBlock(),a.createBlock(a.unref(Cu),{key:0,type:_.type,"has-error":_.hasError,disabled:_.disabled,for:l.value?`dp-input-${o}`:o,class:a.normalizeClass(_.labelClasses)},{default:a.withCtx(()=>[a.renderSlot(_.$slots,"label",{},()=>[a.createTextVNode(a.toDisplayString(_.label),1)])]),_:3},8,["type","has-error","disabled","for","class"])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(y.value),{class:a.normalizeClass([k.value,"flex"])},{default:a.withCtx(()=>[a.unref(_i)("leading",_.type,_.loading,_.$slots)?(a.openBlock(),a.createBlock(Kc,{key:0,loading:_.loading,class:a.normalizeClass([_.iconClasses,"left-3 top-3"]),"data-test-leading-icon":""},{default:a.withCtx(()=>[a.renderSlot(_.$slots,"leadingIcon")]),_:3},8,["loading","class"])):a.createCommentVNode("",!0),a.createVNode(rE,a.mergeProps({modelValue:s.value,"onUpdate:modelValue":w[0]||(w[0]=T=>s.value=T)},{...m.value,...p.value,..._.$attrs},{class:a.unref(ZT)(_.type,_.disabled,_.loading,_.hasError,i.value,_.$slots,_.$attrs),onOpen:w[1]||(w[1]=()=>i.value=!0),onClosed:w[2]||(w[2]=()=>i.value=!1)}),null,16,["modelValue","class"]),_.type==="checkbox"?(a.openBlock(),a.createBlock(a.unref(xp),{key:1,class:"pointer-events-none -ml-4 h-4 w-4 -translate-x-0.5 text-white"})):a.createCommentVNode("",!0),a.unref(JT)(_.type,_.$slots,_.label)?(a.openBlock(),a.createElementBlock("label",{key:2,for:o,class:a.normalizeClass([{"!text-error":_.hasError},"cursor-pointer select-none pl-2 text-base peer-checked:text-primary peer-disabled:cursor-not-allowed peer-disabled:text-zinc-300"]),"data-test-choice-label":""},[a.renderSlot(_.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(_.label),1)])],2)):a.createCommentVNode("",!0),a.unref(_i)("trailing",_.type,_.loading,_.$slots)?(a.openBlock(),a.createBlock(Kc,{key:3,loading:_.loading,class:a.normalizeClass([_.iconClasses,"right-3 top-3"]),"data-test-trailing-icon":""},{default:a.withCtx(()=>[a.renderSlot(_.$slots,"trailingIcon",{},()=>[f.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(f.value),{key:0})):a.createCommentVNode("",!0)])]),_:3},8,["loading","class"])):a.createCommentVNode("",!0)]),_:3},8,["class"])),_.hasError&&_.errorMessage?(a.openBlock(),a.createElementBlock("p",aE,a.toDisplayString(_.errorMessage),1)):a.createCommentVNode("",!0)],2))}});function Nn(e){return[null,void 0].indexOf(e)!==-1}function oE(e,t,n){const{object:r,valueProp:o,mode:i}=a.toRefs(e),s=a.getCurrentInstance().proxy,l=n.iv,u=(p,h=!0)=>{l.value=f(p);const m=c(p);t.emit("change",m,s),h&&(t.emit("input",m),t.emit("update:modelValue",m))},c=p=>r.value||Nn(p)?p:Array.isArray(p)?p.map(h=>h[o.value]):p[o.value],f=p=>Nn(p)?i.value==="single"?{}:[]:p;return{update:u}}function iE(e,t){const{value:n,modelValue:r,mode:o,valueProp:i}=a.toRefs(e),s=a.ref(o.value!=="single"?[]:{}),l=r&&r.value!==void 0?r:n,u=a.computed(()=>o.value==="single"?s.value[i.value]:s.value.map(f=>f[i.value])),c=a.computed(()=>o.value!=="single"?s.value.map(f=>f[i.value]).join(","):s.value[i.value]);return{iv:s,internalValue:s,ev:l,externalValue:l,textValue:c,plainValue:u}}function sE(e,t,n){const{regex:r}=a.toRefs(e),o=a.getCurrentInstance().proxy,i=n.isOpen,s=n.open,l=a.ref(null),u=a.ref(null),c=()=>{l.value=""},f=m=>{l.value=m.target.value},p=m=>{if(r&&r.value){let y=r.value;typeof y=="string"&&(y=new RegExp(y)),m.key.match(y)||m.preventDefault()}},h=m=>{if(r&&r.value){let k=(m.clipboardData||window.clipboardData).getData("Text"),_=r.value;typeof _=="string"&&(_=new RegExp(_)),k.split("").every(w=>!!w.match(_))||m.preventDefault()}t.emit("paste",m,o)};return a.watch(l,m=>{!i.value&&m&&s(),t.emit("search-change",m,o)}),{search:l,input:u,clearSearch:c,handleSearchInput:f,handleKeypress:p,handlePaste:h}}function lE(e,t,n){const{groupSelect:r,mode:o,groups:i,disabledProp:s}=a.toRefs(e),l=a.ref(null),u=f=>{f===void 0||f!==null&&f[s.value]||i.value&&f&&f.group&&(o.value==="single"||!r.value)||(l.value=f)};return{pointer:l,setPointer:u,clearPointer:()=>{u(null)}}}function qs(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function uE(e){return Object.prototype.toString.call(e)==="[object Object]"}function cE(e,t){const n=t.slice().sort();return e.length===t.length&&e.slice().sort().every(function(r,o){return r===n[o]})}function dE(e,t,n){const{options:r,mode:o,trackBy:i,limit:s,hideSelected:l,createTag:u,createOption:c,label:f,appendNewTag:p,appendNewOption:h,multipleLabel:m,object:y,loading:k,delay:_,resolveOnLoad:w,minChars:T,filterResults:N,clearOnSearch:b,clearOnSelect:B,valueProp:C,allowAbsent:I,groupLabel:F,canDeselect:q,max:W,strict:M,closeOnSelect:D,closeOnDeselect:$,groups:Y,reverse:X,infinite:K,groupOptions:j,groupHideEmpty:U,groupSelect:S,onCreate:H,disabledProp:Z,searchStart:Q,searchFilter:V}=a.toRefs(e),E=a.getCurrentInstance().proxy,P=n.iv,R=n.ev,G=n.search,ie=n.clearSearch,oe=n.update,Ie=n.pointer,Ee=n.clearPointer,fe=n.focus,Be=n.deactivate,$e=n.close,ze=n.localize,Ge=a.ref([]),Ke=a.ref([]),ve=a.ref(!1),Qe=a.ref(null),Te=a.ref(K.value&&s.value===-1?10:s.value),se=a.computed(()=>u.value||c.value||!1),ce=a.computed(()=>p.value!==void 0?p.value:h.value!==void 0?h.value:!0),me=a.computed(()=>{if(Y.value){let z=Mt.value||[],de=[];return z.forEach(Ve=>{it(Ve[j.value]).forEach(gt=>{de.push(Object.assign({},gt,Ve[Z.value]?{[Z.value]:!0}:{}))})}),de}else{let z=it(Ke.value||[]);return Ge.value.length&&(z=z.concat(Ge.value)),z}}),Pt=a.computed(()=>{let z=me.value;return X.value&&(z=z.reverse()),L.value.length&&(z=L.value.concat(z)),vt(z)}),xe=a.computed(()=>{let z=Pt.value;return Te.value>0&&(z=z.slice(0,Te.value)),z}),Mt=a.computed(()=>{if(!Y.value)return[];let z=[],de=Ke.value||[];return Ge.value.length&&z.push({[F.value]:" ",[j.value]:[...Ge.value],__CREATE__:!0}),z.concat(de)}),Ut=a.computed(()=>{let z=[...Mt.value].map(de=>({...de}));return L.value.length&&(z[0]&&z[0].__CREATE__?z[0][j.value]=[...L.value,...z[0][j.value]]:z=[{[F.value]:" ",[j.value]:[...L.value],__CREATE__:!0}].concat(z)),z}),Rt=a.computed(()=>{if(!Y.value)return[];let z=Ut.value;return be((z||[]).map((de,Ve)=>{const gt=it(de[j.value]);return{...de,index:Ve,group:!0,[j.value]:vt(gt,!1).map(Dr=>Object.assign({},Dr,de[Z.value]?{[Z.value]:!0}:{})),__VISIBLE__:vt(gt).map(Dr=>Object.assign({},Dr,de[Z.value]?{[Z.value]:!0}:{}))}}))}),zt=a.computed(()=>{switch(o.value){case"single":return!Nn(P.value[C.value]);case"multiple":case"tags":return!Nn(P.value)&&P.value.length>0}}),kn=a.computed(()=>m!==void 0&&m.value!==void 0?m.value(P.value,E):P.value&&P.value.length>1?`${P.value.length} options selected`:"1 option selected"),Sn=a.computed(()=>!me.value.length&&!ve.value&&!L.value.length),Et=a.computed(()=>me.value.length>0&&xe.value.length==0&&(G.value&&Y.value||!Y.value)),L=a.computed(()=>se.value===!1||!G.value?[]:Jr(G.value)!==-1?[]:[{[C.value]:G.value,[O.value]:G.value,[f.value]:G.value,__CREATE__:!0}]),O=a.computed(()=>i.value||f.value),ee=a.computed(()=>{switch(o.value){case"single":return null;case"multiple":case"tags":return[]}}),re=a.computed(()=>k.value||ve.value),ge=z=>{switch(typeof z!="object"&&(z=rn(z)),o.value){case"single":oe(z);break;case"multiple":case"tags":oe(P.value.concat(z));break}t.emit("select",qe(z),z,E)},we=z=>{switch(typeof z!="object"&&(z=rn(z)),o.value){case"single":Le();break;case"tags":case"multiple":oe(Array.isArray(z)?P.value.filter(de=>z.map(Ve=>Ve[C.value]).indexOf(de[C.value])===-1):P.value.filter(de=>de[C.value]!=z[C.value]));break}t.emit("deselect",qe(z),z,E)},qe=z=>y.value?z:z[C.value],J=z=>{we(z)},le=(z,de)=>{if(de.button!==0){de.preventDefault();return}J(z)},Le=()=>{t.emit("clear",E),oe(ee.value)},De=z=>{if(z.group!==void 0)return o.value==="single"?!1:Fa(z[j.value])&&z[j.value].length;switch(o.value){case"single":return!Nn(P.value)&&P.value[C.value]==z[C.value];case"tags":case"multiple":return!Nn(P.value)&&P.value.map(de=>de[C.value]).indexOf(z[C.value])!==-1}},st=z=>z[Z.value]===!0,pe=()=>W===void 0||W.value===-1||!zt.value&&W.value>0?!1:P.value.length>=W.value,mt=z=>{if(!st(z)){if(H&&H.value&&!De(z)&&z.__CREATE__&&(z={...z},delete z.__CREATE__,z=H.value(z,E),z instanceof Promise)){ve.value=!0,z.then(de=>{ve.value=!1,Me(de)});return}Me(z)}},Me=z=>{switch(z.__CREATE__&&(z={...z},delete z.__CREATE__),o.value){case"single":if(z&&De(z)){q.value&&we(z),$.value&&(Ee(),$e());return}z&&At(z),B.value&&ie(),D.value&&(Ee(),$e()),z&&ge(z);break;case"multiple":if(z&&De(z)){we(z),$.value&&(Ee(),$e());return}if(pe()){t.emit("max",E);return}z&&(At(z),ge(z)),B.value&&ie(),l.value&&Ee(),D.value&&$e();break;case"tags":if(z&&De(z)){we(z),$.value&&(Ee(),$e());return}if(pe()){t.emit("max",E);return}z&&At(z),B.value&&ie(),z&&ge(z),l.value&&Ee(),D.value&&$e();break}D.value||fe()},ln=z=>{if(!(st(z)||o.value==="single"||!S.value)){switch(o.value){case"multiple":case"tags":Zn(z[j.value])?we(z[j.value]):ge(z[j.value].filter(de=>P.value.map(Ve=>Ve[C.value]).indexOf(de[C.value])===-1).filter(de=>!de[Z.value]).filter((de,Ve)=>P.value.length+1+Ve<=W.value||W.value===-1));break}D.value&&Be()}},At=z=>{rn(z[C.value])===void 0&&se.value&&(t.emit("tag",z[C.value],E),t.emit("option",z[C.value],E),t.emit("create",z[C.value],E),ce.value&&jt(z),ie())},Va=()=>{o.value!=="single"&&ge(xe.value.filter(z=>!z.disabled&&!De(z)))},Zn=z=>z.find(de=>!De(de)&&!de[Z.value])===void 0,Fa=z=>z.find(de=>!De(de))===void 0,rn=z=>me.value[me.value.map(de=>String(de[C.value])).indexOf(String(z))],Jr=(z,de=!0)=>me.value.map(Ve=>parseInt(Ve[O.value])==Ve[O.value]?parseInt(Ve[O.value]):Ve[O.value]).indexOf(parseInt(z)==z?parseInt(z):z),Se=z=>["tags","multiple"].indexOf(o.value)!==-1&&l.value&&De(z),jt=z=>{Ge.value.push(z)},be=z=>U.value?z.filter(de=>G.value?de.__VISIBLE__.length:de[j.value].length):z.filter(de=>G.value?de.__VISIBLE__.length:!0),vt=(z,de=!0)=>{let Ve=z;if(G.value&&N.value){let gt=V.value;gt||(gt=(Dr,Bo)=>{let Mo=qs(ze(Dr[O.value]),M.value);return Q.value?Mo.startsWith(qs(G.value,M.value)):Mo.indexOf(qs(G.value,M.value))!==-1}),Ve=Ve.filter(gt)}return l.value&&de&&(Ve=Ve.filter(gt=>!Se(gt))),Ve},it=z=>{let de=z;return uE(de)&&(de=Object.keys(de).map(Ve=>{let gt=de[Ve];return{[C.value]:Ve,[O.value]:gt,[f.value]:gt}})),de=de.map(Ve=>typeof Ve=="object"?Ve:{[C.value]:Ve,[O.value]:Ve,[f.value]:Ve}),de},er=()=>{Nn(R.value)||(P.value=Qr(R.value))},Gt=z=>(ve.value=!0,new Promise((de,Ve)=>{r.value(G.value,E).then(gt=>{Ke.value=gt||[],typeof z=="function"&&z(gt),ve.value=!1}).catch(gt=>{console.error(gt),Ke.value=[],ve.value=!1}).finally(()=>{de()})})),Ha=()=>{if(zt.value)if(o.value==="single"){let z=rn(P.value[C.value]);if(z!==void 0){let de=z[f.value];P.value[f.value]=de,y.value&&(R.value[f.value]=de)}}else P.value.forEach((z,de)=>{let Ve=rn(P.value[de][C.value]);if(Ve!==void 0){let gt=Ve[f.value];P.value[de][f.value]=gt,y.value&&(R.value[de][f.value]=gt)}})},_s=z=>{Gt(z)},Qr=z=>Nn(z)?o.value==="single"?{}:[]:y.value?z:o.value==="single"?rn(z)||(I.value?{[f.value]:z,[C.value]:z,[O.value]:z}:{}):z.filter(de=>!!rn(de)||I.value).map(de=>rn(de)||{[f.value]:de,[C.value]:de,[O.value]:de}),Zr=()=>{Qe.value=a.watch(G,z=>{z.length<T.value||!z&&T.value!==0||(ve.value=!0,b.value&&(Ke.value=[]),setTimeout(()=>{z==G.value&&r.value(G.value,E).then(de=>{(z==G.value||!G.value)&&(Ke.value=de,Ie.value=xe.value.filter(Ve=>Ve[Z.value]!==!0)[0]||null,ve.value=!1)}).catch(de=>{console.error(de)})},_.value))},{flush:"sync"})};if(o.value!=="single"&&!Nn(R.value)&&!Array.isArray(R.value))throw new Error(`v-model must be an array when using "${o.value}" mode`);return r&&typeof r.value=="function"?w.value?Gt(er):y.value==!0&&er():(Ke.value=r.value,er()),_.value>-1&&Zr(),a.watch(_,(z,de)=>{Qe.value&&Qe.value(),z>=0&&Zr()}),a.watch(R,z=>{if(Nn(z)){oe(Qr(z),!1);return}switch(o.value){case"single":(y.value?z[C.value]!=P.value[C.value]:z!=P.value[C.value])&&oe(Qr(z),!1);break;case"multiple":case"tags":cE(y.value?z.map(de=>de[C.value]):z,P.value.map(de=>de[C.value]))||oe(Qr(z),!1);break}},{deep:!0}),a.watch(r,(z,de)=>{typeof e.options=="function"?w.value&&(!de||z&&z.toString()!==de.toString())&&Gt():(Ke.value=e.options,Object.keys(P.value).length||er(),Ha())}),a.watch(f,Ha),{pfo:Pt,fo:xe,filteredOptions:xe,hasSelected:zt,multipleLabelText:kn,eo:me,extendedOptions:me,eg:Mt,extendedGroups:Mt,fg:Rt,filteredGroups:Rt,noOptions:Sn,noResults:Et,resolving:ve,busy:re,offset:Te,select:ge,deselect:we,remove:J,selectAll:Va,clear:Le,isSelected:De,isDisabled:st,isMax:pe,getOption:rn,handleOptionClick:mt,handleGroupClick:ln,handleTagRemove:le,refreshOptions:_s,resolveOptions:Gt,refreshLabels:Ha}}function fE(e,t,n){const{valueProp:r,showOptions:o,searchable:i,groupLabel:s,groups:l,mode:u,groupSelect:c,disabledProp:f,groupOptions:p}=a.toRefs(e),h=n.fo,m=n.fg,y=n.handleOptionClick,k=n.handleGroupClick,_=n.search,w=n.pointer,T=n.setPointer,N=n.clearPointer,b=n.multiselect,B=n.isOpen,C=a.computed(()=>h.value.filter(R=>!R[f.value])),I=a.computed(()=>m.value.filter(R=>!R[f.value])),F=a.computed(()=>u.value!=="single"&&c.value),q=a.computed(()=>w.value&&w.value.group),W=a.computed(()=>E(w.value)),M=a.computed(()=>{const R=q.value?w.value:E(w.value),G=I.value.map(oe=>oe[s.value]).indexOf(R[s.value]);let ie=I.value[G-1];return ie===void 0&&(ie=$.value),ie}),D=a.computed(()=>{let R=I.value.map(G=>G.label).indexOf(q.value?w.value[s.value]:E(w.value)[s.value])+1;return I.value.length<=R&&(R=0),I.value[R]}),$=a.computed(()=>[...I.value].slice(-1)[0]),Y=a.computed(()=>w.value.__VISIBLE__.filter(R=>!R[f.value])[0]),X=a.computed(()=>{const R=W.value.__VISIBLE__.filter(G=>!G[f.value]);return R[R.map(G=>G[r.value]).indexOf(w.value[r.value])-1]}),K=a.computed(()=>{const R=E(w.value).__VISIBLE__.filter(G=>!G[f.value]);return R[R.map(G=>G[r.value]).indexOf(w.value[r.value])+1]}),j=a.computed(()=>[...M.value.__VISIBLE__.filter(R=>!R[f.value])].slice(-1)[0]),U=a.computed(()=>[...$.value.__VISIBLE__.filter(R=>!R[f.value])].slice(-1)[0]),S=R=>w.value&&(!R.group&&w.value[r.value]===R[r.value]||R.group!==void 0&&w.value[s.value]===R[s.value])?!0:void 0,H=()=>{T(C.value[0]||null)},Z=()=>{!w.value||w.value[f.value]===!0||(q.value?k(w.value):y(w.value))},Q=()=>{if(w.value===null)T((l.value&&F.value?I.value[0].__CREATE__?C.value[0]:I.value[0]:C.value[0])||null);else if(l.value&&F.value){let R=q.value?Y.value:K.value;R===void 0&&(R=D.value,R.__CREATE__&&(R=R[p.value][0])),T(R||null)}else{let R=C.value.map(G=>G[r.value]).indexOf(w.value[r.value])+1;C.value.length<=R&&(R=0),T(C.value[R]||null)}a.nextTick(()=>{P()})},V=()=>{if(w.value===null){let R=C.value[C.value.length-1];l.value&&F.value&&(R=U.value,R===void 0&&(R=$.value)),T(R||null)}else if(l.value&&F.value){let R=q.value?j.value:X.value;R===void 0&&(R=q.value?M.value:W.value,R.__CREATE__&&(R=j.value,R===void 0&&(R=M.value))),T(R||null)}else{let R=C.value.map(G=>G[r.value]).indexOf(w.value[r.value])-1;R<0&&(R=C.value.length-1),T(C.value[R]||null)}a.nextTick(()=>{P()})},E=R=>I.value.find(G=>G.__VISIBLE__.map(ie=>ie[r.value]).indexOf(R[r.value])!==-1),P=()=>{let R=b.value.querySelector("[data-pointed]");if(!R)return;let G=R.parentElement.parentElement;l.value&&(G=q.value?R.parentElement.parentElement.parentElement:R.parentElement.parentElement.parentElement.parentElement),R.offsetTop+R.offsetHeight>G.clientHeight+G.scrollTop&&(G.scrollTop=R.offsetTop+R.offsetHeight-G.clientHeight),R.offsetTop<G.scrollTop&&(G.scrollTop=R.offsetTop)};return a.watch(_,R=>{i.value&&(R.length&&o.value?H():N())}),a.watch(B,R=>{if(R){let G=b.value.querySelectorAll("[data-selected]")[0];if(!G)return;let ie=G.parentElement.parentElement;a.nextTick(()=>{ie.scrollTop>0||(ie.scrollTop=G.offsetTop)})}}),{pointer:w,canPointGroups:F,isPointed:S,setPointerFirst:H,selectPointer:Z,forwardPointer:Q,backwardPointer:V}}function pE(e,t,n){const{disabled:r}=a.toRefs(e),o=a.getCurrentInstance().proxy,i=a.ref(!1);return{isOpen:i,open:()=>{i.value||r.value||(i.value=!0,t.emit("open",o))},close:()=>{i.value&&(i.value=!1,t.emit("close",o))}}}function hE(e,t,n){const{searchable:r,disabled:o,clearOnBlur:i}=a.toRefs(e),s=n.input,l=n.open,u=n.close,c=n.clearSearch,f=n.isOpen,p=a.ref(null),h=a.ref(null),m=a.ref(null),y=a.ref(!1),k=a.ref(!1),_=a.computed(()=>r.value||o.value?-1:0),w=()=>{r.value&&s.value.blur(),h.value.blur()},T=()=>{r.value&&!o.value&&s.value.focus()},N=(q=!0)=>{o.value||(y.value=!0,q&&l())},b=()=>{y.value=!1,setTimeout(()=>{y.value||(u(),i.value&&c())},1)};return{multiselect:p,wrapper:h,tags:m,tabindex:_,isActive:y,mouseClicked:k,blur:w,focus:T,activate:N,deactivate:b,handleFocusIn:q=>{q.target.closest("[data-tags]")&&q.target.nodeName!=="INPUT"||q.target.closest("[data-clear]")||N(k.value)},handleFocusOut:()=>{b()},handleCaretClick:()=>{b(),w()},handleMousedown:q=>{k.value=!0,f.value&&(q.target.isEqualNode(h.value)||q.target.isEqualNode(m.value))?setTimeout(()=>{b()},0):document.activeElement.isEqualNode(h.value)&&!f.value&&N(),setTimeout(()=>{k.value=!1},0)}}}function mE(e,t,n){const{mode:r,addTagOn:o,openDirection:i,searchable:s,showOptions:l,valueProp:u,groups:c,addOptionOn:f,createTag:p,createOption:h,reverse:m}=a.toRefs(e),y=a.getCurrentInstance().proxy,k=n.iv,_=n.update,w=n.search,T=n.setPointer,N=n.selectPointer,b=n.backwardPointer,B=n.forwardPointer,C=n.multiselect,I=n.wrapper,F=n.tags,q=n.isOpen,W=n.open,M=n.blur,D=n.fo,$=a.computed(()=>p.value||h.value||!1),Y=a.computed(()=>o.value!==void 0?o.value:f.value!==void 0?f.value:["enter"]),X=()=>{r.value==="tags"&&!l.value&&$.value&&s.value&&!c.value&&T(D.value[D.value.map(S=>S[u.value]).indexOf(w.value)])},K=S=>{let H=S.length-1;for(;H>=0&&(S[H].remove===!1||S[H].disabled);)H--;return H<0||S.splice(H,1),S};return{handleKeydown:S=>{t.emit("keydown",S,y);let H,Z;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(S.key)!==-1&&r.value==="tags"&&(H=[...C.value.querySelectorAll("[data-tags] > *")].filter(Q=>Q!==F.value),Z=H.findIndex(Q=>Q===document.activeElement)),S.key){case"Backspace":if(r.value==="single"||s.value&&[null,""].indexOf(w.value)===-1||k.value.length===0)return;_(K([...k.value]));break;case"Enter":if(S.preventDefault(),S.keyCode===229)return;if(Z!==-1&&Z!==void 0){_([...k.value].filter((Q,V)=>V!==Z)),Z===H.length-1&&(H.length-1?H[H.length-2].focus():s.value?F.value.querySelector("input").focus():I.value.focus());return}if(Y.value.indexOf("enter")===-1&&$.value)return;X(),N();break;case" ":if(!$.value&&!s.value){S.preventDefault(),X(),N();return}if(!$.value)return!1;if(Y.value.indexOf("space")===-1&&$.value)return;S.preventDefault(),X(),N();break;case"Tab":case";":case",":if(Y.value.indexOf(S.key.toLowerCase())===-1||!$.value)return;X(),N(),S.preventDefault();break;case"Escape":M();break;case"ArrowUp":if(S.preventDefault(),!l.value)return;q.value||W(),b();break;case"ArrowDown":if(S.preventDefault(),!l.value)return;q.value||W(),B();break;case"ArrowLeft":if(s.value&&F.value&&F.value.querySelector("input").selectionStart||S.shiftKey||r.value!=="tags"||!k.value||!k.value.length)return;S.preventDefault(),Z===-1?H[H.length-1].focus():Z>0&&H[Z-1].focus();break;case"ArrowRight":if(Z===-1||S.shiftKey||r.value!=="tags"||!k.value||!k.value.length)return;S.preventDefault(),H.length>Z+1?H[Z+1].focus():s.value?F.value.querySelector("input").focus():s.value||I.value.focus();break}},handleKeyup:S=>{t.emit("keyup",S,y)},preparePointer:X}}function vE(e,t,n){const{classes:r,disabled:o,openDirection:i,showOptions:s}=a.toRefs(e),l=n.isOpen,u=n.isPointed,c=n.isSelected,f=n.isDisabled,p=n.isActive,h=n.canPointGroups,m=n.resolving,y=n.fo,k=a.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...r.value})),_=a.computed(()=>!!(l.value&&s.value&&(!m.value||m.value&&y.value.length)));return{classList:a.computed(()=>{const T=k.value;return{container:[T.container].concat(o.value?T.containerDisabled:[]).concat(_.value&&i.value==="top"?T.containerOpenTop:[]).concat(_.value&&i.value!=="top"?T.containerOpen:[]).concat(p.value?T.containerActive:[]),wrapper:T.wrapper,spacer:T.spacer,singleLabel:T.singleLabel,singleLabelText:T.singleLabelText,multipleLabel:T.multipleLabel,search:T.search,tags:T.tags,tag:[T.tag].concat(o.value?T.tagDisabled:[]),tagDisabled:T.tagDisabled,tagRemove:T.tagRemove,tagRemoveIcon:T.tagRemoveIcon,tagsSearchWrapper:T.tagsSearchWrapper,tagsSearch:T.tagsSearch,tagsSearchCopy:T.tagsSearchCopy,placeholder:T.placeholder,caret:[T.caret].concat(l.value?T.caretOpen:[]),clear:T.clear,clearIcon:T.clearIcon,spinner:T.spinner,inifinite:T.inifinite,inifiniteSpinner:T.inifiniteSpinner,dropdown:[T.dropdown].concat(i.value==="top"?T.dropdownTop:[]).concat(!l.value||!s.value||!_.value?T.dropdownHidden:[]),options:[T.options].concat(i.value==="top"?T.optionsTop:[]),group:T.group,groupLabel:N=>{let b=[T.groupLabel];return u(N)?b.push(c(N)?T.groupLabelSelectedPointed:T.groupLabelPointed):c(N)&&h.value?b.push(f(N)?T.groupLabelSelectedDisabled:T.groupLabelSelected):f(N)&&b.push(T.groupLabelDisabled),h.value&&b.push(T.groupLabelPointable),b},groupOptions:T.groupOptions,option:(N,b)=>{let B=[T.option];return u(N)?B.push(c(N)?T.optionSelectedPointed:T.optionPointed):c(N)?B.push(f(N)?T.optionSelectedDisabled:T.optionSelected):(f(N)||b&&f(b))&&B.push(T.optionDisabled),B},noOptions:T.noOptions,noResults:T.noResults,assist:T.assist,fakeInput:T.fakeInput}}),showDropdown:_}}function gE(e,t,n){const{limit:r,infinite:o}=a.toRefs(e),i=n.isOpen,s=n.offset,l=n.search,u=n.pfo,c=n.eo,f=a.ref(null),p=a.ref(null),h=a.computed(()=>s.value<u.value.length),m=k=>{const{isIntersecting:_,target:w}=k[0];if(_){const T=w.offsetParent,N=T.scrollTop;s.value+=r.value==-1?10:r.value,a.nextTick(()=>{T.scrollTop=N})}},y=()=>{i.value&&s.value<u.value.length?f.value.observe(p.value):!i.value&&f.value&&f.value.disconnect()};return a.watch(i,()=>{o.value&&y()}),a.watch(l,()=>{o.value&&(s.value=r.value,y())},{flush:"post"}),a.watch(c,()=>{o.value&&y()},{immediate:!1,flush:"post"}),a.onMounted(()=>{window&&window.IntersectionObserver&&(f.value=new IntersectionObserver(m))}),{hasMore:h,infiniteLoader:p}}function yE(e,t,n){const{placeholder:r,id:o,valueProp:i,label:s,mode:l,groupLabel:u,aria:c,searchable:f}=a.toRefs(e),p=n.pointer,h=n.iv,m=n.hasSelected,y=n.multipleLabelText,k=a.ref(null),_=a.computed(()=>{let D=[];return o&&o.value&&D.push(o.value),D.push("assist"),D.join("-")}),w=a.computed(()=>{let D=[];return o&&o.value&&D.push(o.value),D.push("multiselect-options"),D.join("-")}),T=a.computed(()=>{let D=[];if(o&&o.value&&D.push(o.value),p.value)return D.push(p.value.group?"multiselect-group":"multiselect-option"),D.push(p.value.group?p.value.index:p.value[i.value]),D.join("-")}),N=a.computed(()=>r.value),b=a.computed(()=>l.value!=="single"),B=a.computed(()=>{let D="";return l.value==="single"&&m.value&&(D+=h.value[s.value]),l.value==="multiple"&&m.value&&(D+=y.value),l.value==="tags"&&m.value&&(D+=h.value.map($=>$[s.value]).join(", ")),D}),C=a.computed(()=>{let D={...c.value};return f.value&&(D["aria-labelledby"]=D["aria-labelledby"]?`${_.value} ${D["aria-labelledby"]}`:_.value,B.value&&D["aria-label"]&&(D["aria-label"]=`${B.value}, ${D["aria-label"]}`)),D}),I=D=>{let $=[];return o&&o.value&&$.push(o.value),$.push("multiselect-option"),$.push(D[i.value]),$.join("-")},F=D=>{let $=[];return o&&o.value&&$.push(o.value),$.push("multiselect-group"),$.push(D.index),$.join("-")},q=D=>{let $=[];return $.push(D),$.join(" ")},W=D=>{let $=[];return $.push(D),$.join(" ")},M=D=>`${D} ❎`;return a.onMounted(()=>{if(o&&o.value&&document&&document.querySelector){let D=document.querySelector(`[for="${o.value}"]`);k.value=D?D.innerText:null}}),{arias:C,ariaLabel:B,ariaAssist:_,ariaControls:w,ariaPlaceholder:N,ariaMultiselectable:b,ariaActiveDescendant:T,ariaOptionId:I,ariaOptionLabel:q,ariaGroupId:F,ariaGroupLabel:W,ariaTagLabel:M}}function bE(e,t,n){const{locale:r,fallbackLocale:o}=a.toRefs(e);return{localize:s=>!s||typeof s!="object"?s:s&&s[r.value]?s[r.value]:s&&r.value&&s[r.value.toUpperCase()]?s[r.value.toUpperCase()]:s&&s[o.value]?s[o.value]:s&&o.value&&s[o.value.toUpperCase()]?s[o.value.toUpperCase()]:s&&Object.keys(s)[0]?s[Object.keys(s)[0]]:""}}function _E(e,t,n,r={}){return n.forEach(o=>{o&&(r={...r,...o(e,t,r)})}),r}var Su={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:String,required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1}},setup(e,t){return _E(e,t,[bE,iE,lE,pE,sE,oE,hE,dE,gE,fE,mE,vE,yE])}};const wE=["id","dir"],kE=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],SE=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],CE=["onKeyup","aria-label"],TE=["onClick"],EE=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],xE=["innerHTML"],PE=["id"],IE=["id","aria-label","aria-selected"],DE=["data-pointed","onMouseenter","onClick"],OE=["innerHTML"],NE=["aria-label"],BE=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],ME=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],RE=["innerHTML"],AE=["innerHTML"],$E=["value"],LE=["name","value"],VE=["name","value"],FE=["id"];function HE(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{ref:"multiselect",class:a.normalizeClass(e.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:t[10]||(t[10]=(...s)=>e.handleFocusIn&&e.handleFocusIn(...s)),onFocusout:t[11]||(t[11]=(...s)=>e.handleFocusOut&&e.handleFocusOut(...s)),onKeyup:t[12]||(t[12]=(...s)=>e.handleKeyup&&e.handleKeyup(...s)),onKeydown:t[13]||(t[13]=(...s)=>e.handleKeydown&&e.handleKeydown(...s))},[a.createElementVNode("div",a.mergeProps({class:e.classList.wrapper,onMousedown:t[9]||(t[9]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),ref:"wrapper",tabindex:e.tabindex,"aria-controls":n.searchable?void 0:e.ariaControls,"aria-placeholder":n.searchable?void 0:e.ariaPlaceholder,"aria-expanded":n.searchable?void 0:e.isOpen,"aria-activedescendant":n.searchable?void 0:e.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:e.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:e.arias),[a.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(a.openBlock(),a.createElementBlock("input",a.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:t[0]||(t[0]=(...s)=>e.handleSearchInput&&e.handleSearchInput(...s)),onKeypress:t[1]||(t[1]=(...s)=>e.handleKeypress&&e.handleKeypress(...s)),onPaste:t[2]||(t[2]=a.withModifiers((...s)=>e.handlePaste&&e.handlePaste(...s),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,SE)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(e.classList.tags),"data-tags":""},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.iv,(s,l,u)=>a.renderSlot(e.$slots,"tag",{option:s,handleTagRemove:e.handleTagRemove,disabled:n.disabled},()=>[(a.openBlock(),a.createElementBlock("span",{class:a.normalizeClass([e.classList.tag,s.disabled?e.classList.tagDisabled:null]),tabindex:"-1",onKeyup:a.withKeys(c=>e.handleTagRemove(s,c),["enter"]),key:u,"aria-label":e.ariaTagLabel(e.localize(s[n.label]))},[a.createTextVNode(a.toDisplayString(e.localize(s[n.label]))+" ",1),!n.disabled&&!s.disabled?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(e.classList.tagRemove),onClick:a.withModifiers(c=>e.handleTagRemove(s,c),["stop"])},[a.createElementVNode("span",{class:a.normalizeClass(e.classList.tagRemoveIcon)},null,2)],10,TE)):a.createCommentVNode("v-if",!0)],42,CE))])),256)),a.createElementVNode("div",{class:a.normalizeClass(e.classList.tagsSearchWrapper),ref:"tags"},[a.createCommentVNode(" Used for measuring search width "),a.createElementVNode("span",{class:a.normalizeClass(e.classList.tagsSearchCopy)},a.toDisplayString(e.search),3),a.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(a.openBlock(),a.createElementBlock("input",a.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:t[3]||(t[3]=(...s)=>e.handleSearchInput&&e.handleSearchInput(...s)),onKeypress:t[4]||(t[4]=(...s)=>e.handleKeypress&&e.handleKeypress(...s)),onPaste:t[5]||(t[5]=a.withModifiers((...s)=>e.handlePaste&&e.handlePaste(...s),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,EE)):a.createCommentVNode("v-if",!0)],2)],2)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Single label "),n.mode=="single"&&e.hasSelected&&!e.search&&e.iv?a.renderSlot(e.$slots,"singlelabel",{key:2,value:e.iv},()=>[a.createElementVNode("div",{class:a.normalizeClass(e.classList.singleLabel)},[a.createElementVNode("span",{class:a.normalizeClass(e.classList.singleLabelText)},a.toDisplayString(e.localize(e.iv[n.label])),3)],2)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Multiple label "),n.mode=="multiple"&&e.hasSelected&&!e.search?a.renderSlot(e.$slots,"multiplelabel",{key:3,values:e.iv},()=>[a.createElementVNode("div",{class:a.normalizeClass(e.classList.multipleLabel),innerHTML:e.multipleLabelText},null,10,xE)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Placeholder "),n.placeholder&&!e.hasSelected&&!e.search?a.renderSlot(e.$slots,"placeholder",{key:4},()=>[a.createElementVNode("div",{class:a.normalizeClass(e.classList.placeholder),"aria-hidden":"true"},a.toDisplayString(n.placeholder),3)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Spinner "),n.loading||e.resolving?a.renderSlot(e.$slots,"spinner",{key:5},()=>[a.createElementVNode("span",{class:a.normalizeClass(e.classList.spinner),"aria-hidden":"true"},null,2)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Clear "),e.hasSelected&&!n.disabled&&n.canClear&&!e.busy?a.renderSlot(e.$slots,"clear",{key:6,clear:e.clear},()=>[a.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:a.normalizeClass(e.classList.clear),onClick:t[6]||(t[6]=(...s)=>e.clear&&e.clear(...s)),onKeyup:t[7]||(t[7]=a.withKeys((...s)=>e.clear&&e.clear(...s),["enter"]))},[a.createElementVNode("span",{class:a.normalizeClass(e.classList.clearIcon)},null,2)],34)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Caret "),n.caret&&n.showOptions?a.renderSlot(e.$slots,"caret",{key:7},()=>[a.createElementVNode("span",{class:a.normalizeClass(e.classList.caret),onClick:t[8]||(t[8]=(...s)=>e.handleCaretClick&&e.handleCaretClick(...s)),"aria-hidden":"true"},null,2)]):a.createCommentVNode("v-if",!0)],16,kE),a.createCommentVNode(" Options "),a.createElementVNode("div",{class:a.normalizeClass(e.classList.dropdown),tabindex:"-1"},[a.renderSlot(e.$slots,"beforelist",{options:e.fo}),a.createElementVNode("ul",{class:a.normalizeClass(e.classList.options),id:e.ariaControls,role:"listbox"},[n.groups?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(e.fg,(s,l,u)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(e.classList.group),key:u,id:e.ariaGroupId(s),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),"aria-selected":e.isSelected(s),role:"option"},[s.__CREATE__?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(e.classList.groupLabel(s)),"data-pointed":e.isPointed(s),onMouseenter:c=>e.setPointer(s,l),onClick:c=>e.handleGroupClick(s)},[a.renderSlot(e.$slots,"grouplabel",{group:s,isSelected:e.isSelected,isPointed:e.isPointed},()=>[a.createElementVNode("span",{innerHTML:e.localize(s[n.groupLabel])},null,8,OE)])],42,DE)),a.createElementVNode("ul",{class:a.normalizeClass(e.classList.groupOptions),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),role:"group"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.__VISIBLE__,(c,f,p)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(e.classList.option(c,s)),"data-pointed":e.isPointed(c),"data-selected":e.isSelected(c)||void 0,key:p,onMouseenter:h=>e.setPointer(c),onClick:h=>e.handleOptionClick(c),id:e.ariaOptionId(c),"aria-selected":e.isSelected(c),"aria-label":e.ariaOptionLabel(e.localize(c[n.label])),role:"option"},[a.renderSlot(e.$slots,"option",{option:c,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[a.createElementVNode("span",null,a.toDisplayString(e.localize(c[n.label])),1)])],42,BE))),128))],10,NE)],10,IE))),128)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(e.fo,(s,l,u)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(e.classList.option(s)),"data-pointed":e.isPointed(s),"data-selected":e.isSelected(s)||void 0,key:u,onMouseenter:c=>e.setPointer(s),onClick:c=>e.handleOptionClick(s),id:e.ariaOptionId(s),"aria-selected":e.isSelected(s),"aria-label":e.ariaOptionLabel(e.localize(s[n.label])),role:"option"},[a.renderSlot(e.$slots,"option",{option:s,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[a.createElementVNode("span",null,a.toDisplayString(e.localize(s[n.label])),1)])],42,ME))),128))],10,PE),e.noOptions?a.renderSlot(e.$slots,"nooptions",{key:0},()=>[a.createElementVNode("div",{class:a.normalizeClass(e.classList.noOptions),innerHTML:e.localize(n.noOptionsText)},null,10,RE)]):a.createCommentVNode("v-if",!0),e.noResults?a.renderSlot(e.$slots,"noresults",{key:1},()=>[a.createElementVNode("div",{class:a.normalizeClass(e.classList.noResults),innerHTML:e.localize(n.noResultsText)},null,10,AE)]):a.createCommentVNode("v-if",!0),n.infinite&&e.hasMore?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(e.classList.inifinite),ref:"infiniteLoader"},[a.renderSlot(e.$slots,"infinite",{},()=>[a.createElementVNode("span",{class:a.normalizeClass(e.classList.inifiniteSpinner)},null,2)])],2)):a.createCommentVNode("v-if",!0),a.renderSlot(e.$slots,"afterlist",{options:e.fo})],2),a.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(a.openBlock(),a.createElementBlock("input",{key:0,class:a.normalizeClass(e.classList.fakeInput),tabindex:"-1",value:e.textValue,required:""},null,10,$E)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Native input support "),n.nativeSupport?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[n.mode=="single"?(a.openBlock(),a.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:e.plainValue!==void 0?e.plainValue:""},null,8,LE)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(e.plainValue,(s,l)=>(a.openBlock(),a.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:s,key:l},null,8,VE))),128))],64)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Screen reader assistive text "),n.searchable&&e.hasSelected?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(e.classList.assist),id:e.ariaAssist,"aria-hidden":"true"},a.toDisplayString(e.ariaLabel),11,FE)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Create height for empty input "),a.createElementVNode("div",{class:a.normalizeClass(e.classList.spacer)},null,2)],42,wE)}Su.render=HE;Su.__file="src/Multiselect.vue";const Mn={container:"relative mx-auto w-full flex items-center justify-end box-border cursor-pointer border border-zinc-300 rounded bg-white text-base leading-snug outline-none rounded-lg hover:bg-zinc-100",containerDisabled:"cursor-default bg-zinc-100",containerOpen:"rounded-b-none",containerOpenTop:"rounded-t-none",containerActive:"ring-1 ring-zinc-300",singleLabel:"flex items-center h-full max-w-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3.5 pr-16 box-border rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3.5",singleLabelText:"overflow-ellipsis overflow-hidden block whitespace-nowrap max-w-full",multipleLabel:"flex items-center h-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3.5 rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3.5",search:"h-full w-full absolute inset-0 outline-none focus:ring-0 appearance-none box-border border-0 text-base font-sans bg-white rounded-lg pl-3.5 rtl:pl-0 rtl:pr-3.5",tags:"flex-grow flex-shrink flex flex-wrap items-center mt-1 pl-2 rtl:pl-0 rtl:pr-2",tag:"bg-zinc-200 text-sm font-semibold py-1 pl-2 rounded mr-1 mb-1 flex items-center whitespace-nowrap rtl:pl-0 rtl:pr-2 rtl:mr-0 rtl:ml-1",tagDisabled:"pr-2 opacity-50 rtl:pl-2",tagRemove:"flex items-center justify-center p-1 mx-0.5 rounded-sm hover:bg-black hover:bg-opacity-10 group",tagRemoveIcon:"bg-multiselect-remove bg-center bg-no-repeat inline-block w-3 h-3 text-black",tagsSearchWrapper:"inline-block relative mx-1 mb-1 flex-grow flex-shrink h-full",tagsSearch:"absolute inset-0 border-0 outline-none focus:ring-0 appearance-none p-0 text-base font-sans box-border w-full bg-transparent",tagsSearchCopy:"invisible whitespace-pre-wrap inline-block h-px",placeholder:"flex items-center h-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3.5 text-zinc-400 rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3.5",caret:"bg-multiselect-caret bg-center bg-no-repeat w-5 h-8 py-px box-content mr-3.5 relative z-10 stroke-2 flex-shrink-0 flex-grow-0 transition-transform transform pointer-events-none rtl:mr-0 rtl:ml-3.5",caretOpen:"rotate-180 pointer-events-auto",clear:"pr-3.5 relative z-10 opacity-30 transition duration-300 flex-shrink-0 flex-grow-0 flex hover:opacity-80 rtl:pr-0 rtl:pl-3.5",clearIcon:"bg-multiselect-remove bg-center bg-no-repeat w-3 h-5 py-px box-content inline-block",spinner:"bg-multiselect-spinner bg-center bg-no-repeat w-4 h-4 z-10 mr-3.5 animate-spin flex-shrink-0 flex-grow-0 rtl:mr-0 rtl:ml-3.5",inifite:"flex items-center justify-center w-full",inifiteSpinner:"bg-multiselect-spinner bg-center bg-no-repeat w-4 h-4 z-10 animate-spin flex-shrink-0 flex-grow-0 m-3.5",dropdown:"max-h-60 absolute -left-[2px] -right-[2px] bottom-0 transform translate-y-full border-2 border-zinc-300 -mt-px overflow-y-auto z-50 bg-white flex flex-col rounded-b",dropdownTop:"!-translate-y-full top-px bottom-auto rounded-b-none rounded-t",dropdownHidden:"hidden",options:"flex flex-col p-0 m-0 list-none",optionsTop:"",group:"p-0 m-0",groupLabel:"flex text-sm box-border items-center justify-start text-left py-1 px-3 font-semibold bg-zinc-200 cursor-default leading-normal",groupLabelPointable:"cursor-pointer",groupLabelPointed:"bg-zinc-300 text-zinc-700",groupLabelSelected:"bg-primary-active text-white",groupLabelDisabled:"bg-zinc-100 text-zinc-300 cursor-not-allowed",groupLabelSelectedPointed:"bg-primary-active text-white opacity-90",groupLabelSelectedDisabled:"text-white bg-primary-active bg-opacity-50 cursor-not-allowed",groupOptions:"p-0 m-0",option:"flex items-center justify-start box-border text-left cursor-pointer text-base leading-snug py-2 px-3",optionPointed:"text-zinc-800 bg-zinc-100",optionSelected:"text-white bg-primary",optionDisabled:"text-zinc-300 cursor-not-allowed",optionSelectedPointed:"text-white bg-primary opacity-90",optionSelectedDisabled:"text-green-100 bg-primary bg-opacity-50 cursor-not-allowed",noOptions:"py-2 px-3 text-zinc-600 bg-white text-left",noResults:"py-2 px-3 text-zinc-600 bg-white text-left",fakeInput:"bg-transparent absolute left-0 right-0 -bottom-px w-full h-px border-0 p-0 appearance-none outline-none text-transparent",spacer:"h-9 py-px box-content"};function UE(e){return e in Mn}function zE(e){const t=Object.keys(Mn).find(n=>n.toLowerCase()===e);if(t&&UE(t))return Mn[t]}const jE=["onClick"],WE={key:1,class:"order-2 mt-1.5 flex items-center gap-x-1 text-xs italic text-error","data-test-error-message":""},uh=a.defineComponent({inheritAttrs:!1,__name:"AppSelect",props:{wrapperClasses:{default:void 0},hasError:{type:Boolean},errorMessage:{default:void 0},label:{default:void 0},optionLabel:{default:"name"},fetchOnOpen:{type:Boolean,default:!1},openDirection:{default:"down"},dropdownClasses:{default:void 0},additionalClasses:{default:void 0},labelClasses:{default:void 0}},setup(e){const t=e,n=a.useSlots(),r=a.computed(()=>Object.keys(n).filter(i=>i!=="tag")),o=a.computed(()=>{const i={...Mn};return t.openDirection==="up"&&(i.dropdown=`${Mn.dropdown} ${Mn.dropdownTop}`,i.containerOpen=`${Mn.containerOpenTop}`),t.dropdownClasses&&(i.dropdown=`${i.dropdown} ${t.dropdownClasses}`),Object.entries(t.additionalClasses??{}).forEach(([s,l])=>{s in i&&(i[s]=`${i[s]} ${l}`)}),i});return(i,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(i.wrapperClasses)},[i.label||i.$slots.label?(a.openBlock(),a.createBlock(a.unref(Cu),{key:0,"has-error":i.hasError,class:a.normalizeClass(i.labelClasses)},{default:a.withCtx(()=>[a.renderSlot(i.$slots,"label",{},()=>[a.createTextVNode(a.toDisplayString(i.label),1)])]),_:3},8,["has-error","class"])):a.createCommentVNode("",!0),a.createVNode(a.unref(Su),a.mergeProps({native:!1,classes:o.value},{...i.$attrs,label:t.optionLabel},{onOpen:s[0]||(s[0]=l=>{var u;i.fetchOnOpen&&(l!=null&&l.noOptions)&&((u=l==null?void 0:l.resolveOptions)==null||u.call(l))})}),a.createSlots({tag:a.withCtx(l=>[a.createElementVNode("div",{class:a.normalizeClass(a.unref(Mn).tag)},[a.renderSlot(i.$slots,"tag",a.normalizeProps(a.guardReactiveProps(l)),()=>{var u;return[a.createTextVNode(a.toDisplayString((u=l.option)==null?void 0:u[i.optionLabel]),1)]}),l.disabled?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(a.unref(Mn).tagRemove),onClick:u=>l.handleTagRemove(l.option,u)},[a.createElementVNode("span",{class:a.normalizeClass(a.unref(Mn).tagRemoveIcon)},null,2)],10,jE))],2)]),_:2},[a.renderList(r.value,(l,u)=>({name:l,fn:a.withCtx(c=>[a.renderSlot(i.$slots,l,a.normalizeProps(a.guardReactiveProps({...c||{},classes:a.unref(zE)(l)})))])}))]),1040,["classes"]),i.hasError&&i.errorMessage?(a.openBlock(),a.createElementBlock("p",WE,a.toDisplayString(i.errorMessage),1)):a.createCommentVNode("",!0)],2))}});const Cu=a.defineComponent({__name:"AppInputLabel",props:{disabled:{type:Boolean},hasError:{type:Boolean}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("label",{class:a.normalizeClass([{"text-error":t.hasError,"select-none text-zinc-300":t.disabled},"mb-2 block text-base font-semibold text-black"])},[a.renderSlot(t.$slots,"default")],2))}}),kl={mapId:"161a92b3666d9228",disableDefaultUI:!0,zoom:15},qE={scrollwheel:!1,clickableIcons:!1,keyboardShortcuts:!1,isFractionalZoomEnabled:!1,maxZoom:kl.zoom,minZoom:kl.zoom,disableDoubleClickZoom:!0,fullscreenControl:!1,streetViewControl:!1,gestureHandling:"none",rotateControl:!1,panControl:!1},YE=["inline-flex","justify-center","items-center","rounded-full","bg-primary","text-white","h-12","w-12"];function GE(){const e=document.createElement("div");return e.classList.add(...YE),a.render(a.h(l_),e),e}const KE=a.defineComponent({__name:"AppMaps",props:{withMarker:{type:Boolean,default:!0},disableMarkerClick:{type:Boolean,default:!1},markerLatitude:{default:null},markerLongitude:{default:null},disableUserInteraction:{type:Boolean,default:!1},mapCenterLatitude:{default:null},mapCenterLongitude:{default:null},mapOptions:{default:null}},setup(e){const t=e,n=a.ref(null),r=a.computed(()=>{var u;return t.mapCenterLatitude&&t.mapCenterLongitude?{lat:t.mapCenterLatitude,lng:t.mapCenterLongitude}:((u=t.mapOptions)==null?void 0:u.center)??null}),o=a.computed(()=>t.markerLatitude&&t.markerLongitude?{lat:t.markerLatitude,lng:t.markerLongitude}:r.value);a.watch(t,async()=>{await i()}),a.onMounted(async()=>{if(!(window!=null&&window.google)){console.error("Google not defined. use composable useGoogleApi at setup");return}await i()});async function i(){const{Map:u}=await google.maps.importLibrary("maps");if(n.value instanceof HTMLElement){const c=new u(n.value,{...s(),center:r.value});t.withMarker&&await l(c)}}function s(){let u={...kl};return t.disableUserInteraction&&(u={...u,...qE}),{...u,...t.mapOptions??{}}}async function l(u){const{AdvancedMarkerElement:c}=await google.maps.importLibrary("marker"),f=new c({map:u,position:o.value,content:GE()});t.disableMarkerClick&&!t.disableUserInteraction&&(f.element.classList.add("!cursor-default"),google.maps.event.addListener(f,"click",()=>{}))}return(u,c)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"mapElement",ref:n,class:"h-80 w-full"},null,512))}}),XE={class:"pl-7 text-lg font-semibold md:hidden","data-test-name":""},Sl=a.defineComponent({__name:"NavigationItem",props:{item:{}},setup(e){const t=e,{navigationComponent:n,closeMobileMenu:r}=Ba(),o=a.ref(!1),i=a.computed(()=>o.value||typeof t.item.icon!="string"),s=a.computed(()=>o.value?Gr:t.item.icon);async function l(u){var c,f,p;r(),(c=t.item)!=null&&c.onClick&&(u.preventDefault(),o.value=!0,await Promise.resolve((p=(f=t.item)==null?void 0:f.onClick)==null?void 0:p.call(f)),o.value=!1)}return(u,c)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),{to:u.item.to,href:u.item.href,class:a.normalizeClass([{"md:bg-primary":u.item.active??!1,"!rounded-full":u.item.rounded??!1,"mb-4":!u.item.bottom,"mt-4":u.item.bottom??!1},"flex h-10 w-full cursor-pointer items-center rounded-lg text-center transition-colors md:w-10 md:justify-center md:hover:bg-primary-active"]),onClick:l},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.value?s.value:"span"),{class:a.normalizeClass([{"!h-6":!i.value},"app-navigation-item h-6 w-6 stroke-2 text-black md:h-5 md:w-5 md:text-white"]),size:o.value?"extra-small":void 0,"data-test-icon":""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(i.value?"":u.item.icon),1)]),_:1},8,["class","size"])),a.createElementVNode("span",XE,a.toDisplayString(u.item.name),1)]),_:1},8,["to","href","class"]))}}),Cl=a.defineComponent({__name:"SupportItem",setup(e){const{contactRoute:t,contactIcon:n,navigationComponent:r,closeMobileMenu:o}=Ba();return(i,s)=>a.unref(t)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(r)),{key:0,to:a.unref(r)!=="a"?a.unref(t):void 0,href:a.unref(r)?a.unref(t):void 0,class:"app-support-item fixed bottom-5 right-5 z-50 mt-2 flex h-10 w-10 justify-center rounded-full bg-primary py-2 text-white transition-colors hover:bg-primary-active focus-visible:outline-none","data-test-help-icon":"",onClick:a.unref(o)},{default:a.withCtx(()=>[typeof a.unref(n)=="string"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(a.unref(n)),1)],64)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),{key:1,class:"h-full w-full"}))]),_:1},8,["to","href","onClick"])):a.createCommentVNode("",!0)}}),JE={class:"app-mobile-menu flex h-18 items-center justify-between bg-zinc-50 px-4 text-black md:hidden"},QE=["onClick"],ZE=["innerHTML"],e2={class:"flex w-1/3 justify-end","data-test-avatar-wrapper":""},t2={class:"relative flex h-full w-full flex-1 flex-col bg-white focus:outline-none","data-test-navigation-wrapper":""},n2={class:"h-0 flex-1 overflow-y-auto p-4","data-test-navigation-links-wrapper":""},r2={"aria-label":"MainMenu",class:"mt-5"},a2={class:"mb-auto"},o2=a.defineComponent({__name:"Mobile",setup(e){const{logo:t,avatar:n,navigationItems:r,mobileMenuOpen:o,mobileMenuOpenTransition:i,openMobileMenu:s,closeMobileMenu:l}=Ba(),u=a.computed(()=>o.value?Fi:Qb);function c(){l(),setTimeout(()=>{i.value=!1},100)}function f(){i.value||(s(),i.value=!0)}return(p,h)=>(a.openBlock(),a.createElementBlock("header",JE,[a.createElementVNode("div",{class:"inline-flex w-1/3 cursor-pointer items-center justify-start rounded-sm !py-2 hover:text-primary focus:outline-none","data-test-menu-icon-wrapper":"",onClick:a.withModifiers(f,["stop"])},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.value),{class:"block h-6 w-6 text-black","aria-hidden":"true"}))],8,QE),a.createElementVNode("div",{class:"flex h-full w-1/3 justify-center py-4","data-test-logo-wrapper":"",innerHTML:a.unref(t)},null,8,ZE),a.createElementVNode("div",e2,[a.unref(n)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),{key:0})):a.createCommentVNode("",!0)]),a.createVNode(a.unref(kt.TransitionRoot),{show:a.unref(o),as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(kt.Dialog),{as:"div",class:"app-mobile-menu-dialog fixed inset-0 top-18 z-50 flex lg:hidden",onClose:c},{default:a.withCtx(()=>[a.createVNode(a.unref(kt.TransitionChild),{as:"template",enter:"transition ease-in-out duration-300 transform","enter-from":"translate-y-full","enter-to":"translate-y-0",leave:"transition ease-in-out duration-300 transform","leave-from":"translate-y-0","leave-to":"translate-y-full"},{default:a.withCtx(()=>[a.createElementVNode("div",t2,[a.createElementVNode("div",n2,[a.createElementVNode("nav",r2,[a.createElementVNode("ul",a2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(r).filter(m=>m.visible!==!1),m=>(a.openBlock(),a.createElementBlock("li",{key:m.name,"data-test-navigation-item":""},[a.createVNode(Sl,{item:m},null,8,["item"])]))),128))])]),a.createVNode(Cl)])])]),_:1})]),_:1})]),_:1},8,["show"]),a.createVNode(Cl)]))}}),i2={class:"mx-auto mb-auto"},s2={class:"mx-auto mt-auto"},l2=a.defineComponent({__name:"AppNavigationMenu",setup(e){const{navigationItems:t,mainMenuOpen:n}=Ba();return(r,o)=>(a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("aside",{class:a.normalizeClass([{"flex-col px-3 md:!w-20":a.unref(n)},"app-navigation-menu sticky top-0 hidden h-screen w-0 justify-center py-5 transition-all duration-500 before:absolute before:-right-8 before:top-0 before:h-8 before:w-8 before:bg-transparent after:absolute after:-right-8 after:bottom-0 after:h-8 after:w-8 after:bg-transparent md:flex md:bg-secondary"]),"data-test-main-menu":""},[a.createElementVNode("ul",i2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(t).filter(i=>i.bottom!==!0&&i.visible!==!1),i=>(a.openBlock(),a.createElementBlock("li",{key:i.name,"data-test-top-navigation-item":""},[a.createVNode(Sl,{item:i},null,8,["item"])]))),128))]),a.createElementVNode("ul",s2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(t).filter(i=>i.bottom&&i.visible!==!1),i=>(a.openBlock(),a.createElementBlock("li",{key:i.name,"data-test-bottom-navigation-item":""},[a.createVNode(Sl,{item:i},null,8,["item"])]))),128)),a.createElementVNode("li",null,[a.createVNode(Cl,{class:"!static"})])])],2),a.createVNode(o2)]))}});const ji=Jn(l2,[["__scopeId","data-v-8287ec08"]]),u2={class:"flex text-sm font-bold"},c2={class:"flex items-center rounded-l-lg bg-indigo-900 px-2 py-1.5 text-white","data-test-country-code":""},ch=a.defineComponent({__name:"AppLicensePlate",props:{license:{default:void 0},country:{default:"NL"},licensePlateClasses:{default:void 0}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",u2,[a.createElementVNode("span",c2,a.toDisplayString(t.country),1),a.createElementVNode("span",{class:a.normalizeClass([t.licensePlateClasses,"w-full rounded-r-lg bg-yellow-400 px-2 py-1.5 uppercase"]),"data-test-license-plate":""},[a.renderSlot(t.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(t.license),1)])],2)]))}}),dh=a.defineComponent({__name:"AppTimelineItemIcon",props:{icon:{type:[Object,Function]}},setup(e){const t=e,n=a.computed(()=>t.icon??xp),r=a.computed(()=>t.icon?["w-full"]:["bg-primary","w-6","h-6","text-white","stroke-3","p-1","z-10","mx-auto","flex","items-center","justify-center","rounded-full"]),o=a.computed(()=>t.icon?["border-primary","border-2","-translate-y-2","h-10","w-10","rounded-full","flex","justify-center","items-center","p-1.5","z-50","bg-white"]:["w-10"]);return(i,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(o.value)},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.value),{class:a.normalizeClass([r.value,"relative"])},null,8,["class"]))],2))}}),d2={class:"relative flex w-full before:absolute before:-top-5 before:left-4.5 before:h-5 before:w-0.5 before:bg-primary after:absolute after:left-4.5 after:h-full after:w-0.5 after:bg-primary first-of-type:before:hidden last-of-type:from-primary last-of-type:to-white last-of-type:after:bg-transparent last-of-type:after:bg-gradient-to-b"},f2={class:"flex"},p2={class:"ml-4"},h2={class:"text-sm font-semibold text-zinc-900","data-test-timeline-title":""},m2={class:"text-base","data-test-timeline-description":""},fh=a.defineComponent({__name:"AppTimelineItem",props:{item:{}},setup(e){const t=e,n=a.computed(()=>t.item.date.toLocaleDateString("nl-NL",{month:"short",day:"numeric",hour:"numeric",minute:"numeric",timeStyle:void 0}));return(r,o)=>(a.openBlock(),a.createElementBlock("article",d2,[a.createElementVNode("div",f2,[a.renderSlot(r.$slots,"icon",{value:r.item.icon},()=>[a.createVNode(dh,{icon:r.item.icon},null,8,["icon"])])]),a.createElementVNode("div",p2,[a.createElementVNode("header",null,[a.createVNode(a.unref(fi),{class:"mb-2"},{default:a.withCtx(()=>[a.renderSlot(r.$slots,"date",{value:n.value},()=>[a.createElementVNode("time",null,a.toDisplayString(n.value)+" uur",1)])]),_:3}),a.createElementVNode("h3",h2,[a.renderSlot(r.$slots,"title",{value:r.item.title},()=>[a.createTextVNode(a.toDisplayString(r.item.title),1)])])]),a.createElementVNode("p",m2,[a.renderSlot(r.$slots,"default",{value:r.item.description},()=>[a.createTextVNode(a.toDisplayString(r.item.description),1)])])])]))}}),v2={class:"space-y-5"},g2=a.defineComponent({__name:"AppTimeline",props:{items:{}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",v2,[a.renderSlot(t.$slots,"default",{},()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.items,r=>(a.openBlock(),a.createBlock(fh,{key:r.title,item:r},null,8,["item"]))),128))])]))}});var y2=Object.defineProperty,b2=Object.defineProperties,_2=Object.getOwnPropertyDescriptors,kd=Object.getOwnPropertySymbols,w2=Object.prototype.hasOwnProperty,k2=Object.prototype.propertyIsEnumerable,Sd=(e,t,n)=>t in e?y2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hn=(e,t)=>{for(var n in t||(t={}))w2.call(t,n)&&Sd(e,n,t[n]);if(kd)for(var n of kd(t))k2.call(t,n)&&Sd(e,n,t[n]);return e},ai=(e,t)=>b2(e,_2(t)),Pr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const S2=e=>(a.pushScopeId("data-v-e0a0b7f0"),e=e(),a.popScopeId(),e),C2=["onClick"],T2=["checked"],E2=S2(()=>a.createElementVNode("label",{for:"checbox"},null,-1)),x2=a.defineComponent({__name:"MultipleSelectCheckBox",props:{status:{type:String,required:!0}},emits:["change"],setup(e,{emit:t}){const n=e;a.useCssVars(s=>({"51ab8a49":a.unref(i)}));const r=a.computed(()=>n.status==="allSelected"),o=()=>{t("change",!r.value)},i=a.inject("themeColor");return(s,l)=>(a.openBlock(),a.createElementBlock("div",{class:"easy-checkbox",onClick:a.withModifiers(o,["stop","prevent"])},[a.createElementVNode("input",{type:"checkbox",checked:a.unref(r),class:a.normalizeClass(e.status)},null,10,T2),E2],8,C2))}});var P2=Pr(x2,[["__scopeId","data-v-e0a0b7f0"]]);const I2=e=>(a.pushScopeId("data-v-7e69a276"),e=e(),a.popScopeId(),e),D2=["checked"],O2=I2(()=>a.createElementVNode("label",{for:"checbox"},null,-1)),N2=a.defineComponent({__name:"SingleSelectCheckBox",props:{checked:{type:Boolean,required:!0}},emits:["change"],setup(e,{emit:t}){a.useCssVars(r=>({fdaf7e9e:a.unref(n)}));const n=a.inject("themeColor");return(r,o)=>(a.openBlock(),a.createElementBlock("div",{class:"easy-checkbox",onClick:o[0]||(o[0]=a.withModifiers(i=>t("change"),["stop","prevent"]))},[a.createElementVNode("input",{type:"checkbox",checked:e.checked},null,8,D2),O2]))}});var B2=Pr(N2,[["__scopeId","data-v-7e69a276"]]);const M2=e=>(a.pushScopeId("data-v-4ca5de3a"),e=e(),a.popScopeId(),e),R2={class:"easy-data-table__rows-selector"},A2={class:"rows-input"},$2=M2(()=>a.createElementVNode("div",{class:"triangle"},null,-1)),L2=["onClick"],V2=a.defineComponent({__name:"RowsSelector",props:{modelValue:{type:Number,required:!0},rowsItems:{type:Array,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;a.useCssVars(p=>({"1b889342":a.unref(f)}));const r=a.ref(!1),o=a.ref(!1),i=a.inject("dataTable");a.watch(r,p=>{if(p&&i){const h=window.innerHeight,m=i.value.getBoundingClientRect().height,y=i.value.getBoundingClientRect().top;h-(m+y)<=100?o.value=!0:o.value=!1}});const s=a.computed({get:()=>n.modelValue,set:p=>{t("update:modelValue",p)}}),l=p=>{s.value=p,r.value=!1},u=(p,h)=>{let m=p.parentNode;for(;m!=null;){if(m.classList&&m.classList.contains(h))return!0;m=m.parentNode}return!1},c=p=>{u(p.target,"easy-data-table__rows-selector")||(r.value=!1)};a.onMounted(()=>{document.addEventListener("click",c)}),a.onBeforeUnmount(()=>{document.removeEventListener("click",c)});const f=a.inject("themeColor");return(p,h)=>(a.openBlock(),a.createElementBlock("div",R2,[a.createElementVNode("div",{class:"rows-input__wrapper",onClick:h[0]||(h[0]=m=>r.value=!r.value)},[a.createElementVNode("div",A2,a.toDisplayString(a.unref(s)),1),$2]),a.createElementVNode("ul",{class:a.normalizeClass(["select-items",{show:r.value,inside:o.value}])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.rowsItems,m=>(a.openBlock(),a.createElementBlock("li",{key:m,class:a.normalizeClass({selected:m===a.unref(s)}),onClick:y=>l(m)},a.toDisplayString(m),11,L2))),128))],2)]))}});var F2=Pr(V2,[["__scopeId","data-v-4ca5de3a"]]);const Wi=e=>(a.pushScopeId("data-v-1fa3a520"),e=e(),a.popScopeId(),e),H2={class:"lds-ring"},U2=Wi(()=>a.createElementVNode("div",null,null,-1)),z2=Wi(()=>a.createElementVNode("div",null,null,-1)),j2=Wi(()=>a.createElementVNode("div",null,null,-1)),W2=Wi(()=>a.createElementVNode("div",null,null,-1)),q2=[U2,z2,j2,W2],Y2=a.defineComponent({__name:"Loading",setup(e){a.useCssVars(n=>({26774109:a.unref(t)}));const t=a.inject("themeColor");return(n,r)=>(a.openBlock(),a.createElementBlock("div",H2,q2))}});var G2=Pr(Y2,[["__scopeId","data-v-1fa3a520"]]);const K2={class:"loader-line"},X2=a.defineComponent({__name:"LoadingLine",setup(e){a.useCssVars(n=>({"0d327f57":a.unref(t)}));const t=a.inject("themeColor");return(n,r)=>(a.openBlock(),a.createElementBlock("div",K2))}});var J2=Pr(X2,[["__scopeId","data-v-7d281cac"]]);const Q2={class:"buttons-pagination"},Z2=["onClick"],ex=a.defineComponent({__name:"ButtonsPagination",props:{maxPaginationNumber:{type:Number,required:!0},currentPaginationNumber:{type:Number,required:!0}},emits:["updatePage"],setup(e,{emit:t}){const n=e;a.useCssVars(l=>({"40dd4f07":a.unref(s)}));const r=7,o=l=>{l.type==="button"&&!l.active&&t("updatePage",l.page)},i=a.computed(()=>{const l=[];if(n.maxPaginationNumber<=r)for(let u=1;u<=n.maxPaginationNumber;u+=1)l.push({type:"button",page:u,active:u===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber});else if([1,2,n.maxPaginationNumber,n.maxPaginationNumber-1].includes(n.currentPaginationNumber))for(let u=1;u<=r;u+=1)if(u<=3)l.push({type:"button",page:u,active:u===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber});else if(u===4)l.push({type:"omission"});else{const c=n.maxPaginationNumber-(r-u);l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber})}else if([3,4].includes(n.currentPaginationNumber))for(let u=1;u<=r;u+=1)u<=5?l.push({type:"button",page:u,active:u===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber}):u===6?l.push({type:"omission"}):l.push({type:"button",page:n.maxPaginationNumber,active:n.maxPaginationNumber===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber});else if([n.maxPaginationNumber-2,n.maxPaginationNumber-3].includes(n.currentPaginationNumber))for(let u=1;u<=r;u+=1)if(u===1)l.push({type:"button",page:1,active:n.currentPaginationNumber===1,activePrev:u+1===n.currentPaginationNumber});else if(u===2)l.push({type:"omission"});else{const c=n.maxPaginationNumber-(r-u);l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber})}else for(let u=1;u<=r;u+=1)if(u===1)l.push({type:"button",page:1,active:n.currentPaginationNumber===1,activePrev:u+1===n.currentPaginationNumber});else if(u===2||u===6)l.push({type:"omission"});else if(u===7)l.push({type:"button",page:n.maxPaginationNumber,active:n.maxPaginationNumber===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber});else{const c=4-u,f=n.currentPaginationNumber-c;l.push({type:"button",page:f,active:f===n.currentPaginationNumber,activePrev:f+1===n.currentPaginationNumber})}return l}),s=a.inject("themeColor");return(l,u)=>(a.openBlock(),a.createElementBlock("div",Q2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(i),(c,f)=>(a.openBlock(),a.createElementBlock("div",{key:f,class:a.normalizeClass(["item",{button:c.type==="button",active:c.type==="button"&&c.active,"active-prev":c.type==="button"&&c.activePrev,omission:c.type==="omission"}]),onClick:p=>o(c)},a.toDisplayString(c.type==="button"?c.page:"..."),11,Z2))),128))]))}});var tx=Pr(ex,[["__scopeId","data-v-4c681fa2"]]);const ph=e=>(a.pushScopeId("data-v-c9da5286"),e=e(),a.popScopeId(),e),nx=ph(()=>a.createElementVNode("span",{class:"arrow arrow-right"},null,-1)),rx=[nx],ax=ph(()=>a.createElementVNode("span",{class:"arrow arrow-left"},null,-1)),ox=[ax],ix=a.defineComponent({__name:"PaginationArrows",props:{isFirstPage:{type:Boolean,required:!1},isLastPage:{type:Boolean,required:!1}},emits:["clickPrevPage","clickNextPage"],setup(e,{emit:t}){const n=a.useSlots();return(r,o)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",{class:a.normalizeClass(["previous-page__click-button",{"first-page":e.isFirstPage}]),onClick:o[0]||(o[0]=i=>t("clickPrevPage"))},rx,2),a.unref(n).buttonsPagination?a.renderSlot(r.$slots,"buttonsPagination",{key:0},void 0,!0):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["next-page__click-button",{"last-page":e.isLastPage}]),onClick:o[1]||(o[1]=i=>t("clickNextPage"))},ox,2)],64))}});var sx=Pr(ix,[["__scopeId","data-v-c9da5286"]]);function lx(e,t,n,r){return{clickRow:(i,s,l)=>{if(e.value!==s)return;const u=Hn({},i);if(t.value){const{checkbox:c}=i;delete u.checkbox,u.isSelected=c}if(n.value){const{index:c}=i;delete u.index,u.indexInCurrentPage=c}r("clickRow",u,l)}}}function ux(e,t,n){const r=a.ref([]);return{expandingItemIndexList:r,updateExpandingItemIndexList:(s,l,u)=>{u.stopPropagation();const c=r.value.indexOf(s);if(c!==-1)r.value.splice(c,1);else{const f=e.value.findIndex(p=>JSON.stringify(p)===JSON.stringify(l));n("expandRow",t.value+f,l),r.value.push(t.value+f)}},clearExpandingItemIndexList:()=>{r.value=[]}}}function cx(e){const t=a.computed(()=>e.value.filter(o=>o.fixed)),n=a.computed(()=>t.value.length?t.value[t.value.length-1].value:""),r=a.computed(()=>{if(!t.value.length)return[];const o=t.value.map(i=>{var s;return(s=i.width)!=null?s:100});return t.value.map((i,s)=>{var l,u;return{value:i.value,fixed:(l=i.fixed)!=null?l:!0,width:(u=i.width)!=null?u:100,distance:s===0?0:o.reduce((c,f,p)=>{let h=c;return p<s&&(h+=f),h})}})});return{fixedHeaders:t,lastFixedColumn:n,fixedColumnsInfos:r}}function dx(e,t,n,r,o,i,s,l,u,c,f,p,h,m,y,k,_,w,T){const N=a.computed(()=>s.value.findIndex($=>$.fixed)!==-1),b=a.computed(()=>N.value?s.value.filter($=>$.fixed):[]),B=a.computed(()=>s.value.filter($=>!$.fixed)),C=($,Y)=>Array.isArray($)&&Array.isArray(Y)?{sortBy:$,sortDesc:Y.map(X=>X==="desc")}:$!==""?{sortBy:y.value,sortDesc:k.value==="desc"}:null,I=a.ref(C(y.value,k.value)),F=a.computed(()=>{var $;const X=[...b.value,...B.value].map(S=>{const H=Object.assign(S);if(H.sortable&&(H.sortType="none"),h.value)if(Array.isArray(h.value.sortBy)&&Array.isArray(h.value.sortType)&&h.value.sortBy.includes(H.value)){const Z=h.value.sortBy.indexOf(H.value);H.sortType=h.value.sortType[Z]}else H.value===h.value.sortBy&&h.value.sortType&&(H.sortType=h.value.sortType);if(I.value&&Array.isArray(I.value.sortBy)&&Array.isArray(I.value.sortDesc)&&I.value.sortBy.includes(H.value)){const Z=I.value.sortBy.indexOf(H.value);H.sortType=I.value.sortDesc[Z]?"desc":"asc"}else I.value&&H.value===I.value.sortBy&&(H.sortType=I.value.sortDesc?"desc":"asc");return H});let K=[];l.value?K=[o.value||N.value?{text:"",value:"expand",fixed:!0,width:n.value}:{text:"",value:"expand"},...X]:K=X;let j=[];m.value?j=[i.value||N.value?{text:e.value,value:"index",fixed:!0,width:u.value}:{text:e.value,value:"index"},...K]:j=K;let U=[];return c.value?U=[r.value||N.value?{text:"checkbox",value:"checkbox",fixed:!0,width:($=t.value)!=null?$:36}:{text:"checkbox",value:"checkbox"},...j]:U=j,U}),q=a.computed(()=>F.value.map($=>$.value));return{clientSortOptions:I,headerColumns:q,headersForRender:F,updateSortField:($,Y)=>{let X=null;if(Y==="none"?X="asc":Y==="asc"?X="desc":X=p.value?"asc":null,f.value&&w($,X),I.value&&Array.isArray(I.value.sortBy)&&Array.isArray(I.value.sortDesc)){const K=I.value.sortBy.indexOf($);K===-1?X!==null&&(I.value.sortBy.push($),I.value.sortDesc.push(X==="desc")):X===null?(I.value.sortDesc.splice(K,1),I.value.sortBy.splice(K,1)):I.value.sortDesc[K]=X==="desc"}else X===null?I.value=null:I.value={sortBy:$,sortDesc:X==="desc"};T("updateSort",{sortType:X,sortBy:$})},isMultiSorting:$=>h.value&&Array.isArray(h.value.sortBy)?h.value.sortBy.includes($):I.value&&Array.isArray(I.value.sortBy)?I.value.sortBy.includes($):!1,getMultiSortNumber:$=>h.value&&Array.isArray(h.value.sortBy)?h.value.sortBy.indexOf($)+1:I.value&&Array.isArray(I.value.sortBy)?I.value.sortBy.indexOf($)+1:!1}}function fx(e,t,n,r,o,i,s,l,u){const c=a.computed(()=>(e.value-1)*o.value+1),f=a.computed(()=>n.value?Math.min(u.value,e.value*o.value):Math.min(l.value.length,e.value*o.value)),p=a.computed(()=>n.value?r.value:l.value.slice(c.value-1,f.value)),h=a.computed(()=>s.value?p.value.map((k,_)=>Hn({index:c.value+_},k)):p.value),m=a.computed(()=>i.value.length===0||i.value.every(_=>l.value.findIndex(w=>JSON.stringify(_)===JSON.stringify(w))===-1)?"noneSelected":i.value.length===l.value.length&&i.value.every(w=>l.value.findIndex(T=>JSON.stringify(w)===JSON.stringify(T))!==-1)?"allSelected":"partSelected"),y=a.computed(()=>t.value?m.value==="allSelected"?h.value.map(k=>Hn({checkbox:!0},k)):m.value==="noneSelected"?h.value.map(k=>Hn({checkbox:!1},k)):h.value.map(k=>{const _=i.value.findIndex(w=>{const T=Hn({},k);return delete T.index,JSON.stringify(w)===JSON.stringify(T)})!==-1;return Hn({checkbox:_},k)}):h.value);return{currentPageFirstIndex:c,currentPageLastIndex:f,multipleSelectStatus:m,pageItems:y}}function px(e,t,n,r,o,i,s){const l=a.ref(i.value?i.value.page:e.value),u=a.computed(()=>Math.ceil(r.value/o.value)),c=a.computed(()=>u.value===0||l.value===u.value),f=a.computed(()=>l.value===1);return{currentPaginationNumber:l,maxPaginationNumber:u,isLastPage:c,isFirstPage:f,nextPage:()=>{if(r.value!==0&&!c.value&&!n.value)if(t.value){const k=l.value+1;s(k)}else l.value+=1},prevPage:()=>{if(r.value!==0&&!f.value&&!n.value)if(t.value){const k=l.value-1;s(k)}else l.value-=1},updatePage:k=>{n.value||(t.value?s(k):l.value=k)},updateCurrentPaginationNumber:k=>{l.value=k}}}function hx(e,t,n,r){const o=a.computed(()=>!e.value&&t.value.findIndex(l=>l===r.value)===-1?[r.value,...t.value]:t.value),i=a.ref(n.value?n.value.rowsPerPage:r.value);return{rowsItemsComputed:o,rowsPerPageRef:i,updateRowsPerPage:l=>{i.value=l}}}function mx(e,t,n){const r=a.computed({get:()=>{if(e.value){const{page:l,rowsPerPage:u,sortBy:c,sortType:f}=e.value;return{page:l,rowsPerPage:u,sortBy:c??null,sortType:f??null}}return null},set:l=>{n("update:serverOptions",l)}});return{serverOptionsComputed:r,updateServerOptionsPage:l=>{r.value&&(r.value=ai(Hn({},r.value),{page:l}))},updateServerOptionsSort:(l,u)=>{if(r.value)if(t.value&&Array.isArray(r.value.sortBy)&&Array.isArray(r.value.sortType)){const c=r.value.sortBy.findIndex(f=>f===l);c===-1&&u!==null&&(r.value.sortBy.push(l),r.value.sortType.push(u)),u===null?(r.value.sortBy.splice(c,1),r.value.sortType.splice(c,1)):r.value.sortType[c]=u}else r.value=ai(Hn({},r.value),{sortBy:u!==null?l:null,sortType:u})},updateServerOptionsRowsPerPage:l=>{r.value&&(r.value=ai(Hn({},r.value),{page:1,rowsPerPage:l}))}}}function Xt(e,t){var n;if(e.includes(".")){const r=e.split("."),{length:o}=r;let i,s=0;for(;s<o;){if(s===0)i=t[r[0]];else if(i&&typeof i=="object")i=i[r[s]];else{i="";break}s+=1}return i??""}return(n=t[e])!=null?n:""}function vx(e,t){const n=Xt(e,t);return Array.isArray(n)?n.join(","):n}function gx(e,t,n,r,o,i,s,l,u,c){const f=N=>{if(typeof i.value=="string"&&i.value!=="")return Xt(i.value,N);if(Array.isArray(i.value)){let b="";return i.value.forEach(B=>{b+=Xt(B,N)}),b}return Object.values(N).join(" ")},p=a.computed(()=>{if(!n.value&&s.value!==""){const N=new RegExp(s.value,"i");return r.value.filter(b=>N.test(f(b)))}return r.value}),h=a.computed(()=>{let N=[...p.value];return t.value?(t.value.forEach(b=>{N=N.filter(B=>{const{field:C,comparison:I,criteria:F}=b;if(typeof I=="function")return I(Xt(C,B),F);const q=Xt(C,B);switch(I){case"=":return q===F;case"!=":return q!==F;case">":return q>F;case"<":return q<F;case"<=":return q<=F;case">=":return q>=F;case"between":return q>=Math.min(...F)&&q<=Math.max(...F);case"in":return F.includes(q);default:return q===F}})}),N):p.value});a.watch(h,N=>{t.value&&c("updateFilter",N)},{immediate:!0,deep:!0});function m(N,b,B,C){const I=N[C],F=b[C];return(C===0?B:m(N,b,B,C-1)).sort((W,M)=>{let D=!0;for(let $=0;$<C;$+=1)if(Xt(N[$],W)!==Xt(N[$],M)){D=!1;break}return D?Xt(I,W)<Xt(I,M)?F?1:-1:Xt(I,W)>Xt(I,M)?F?-1:1:0:0})}const y=a.computed(()=>{if(n.value)return r.value;if(e.value===null)return h.value;const{sortBy:N,sortDesc:b}=e.value,B=[...h.value];return u&&Array.isArray(N)&&Array.isArray(b)?N.length===0?B:m(N,b,B,N.length-1):B.sort((C,I)=>Xt(N,C)<Xt(N,I)?b?1:-1:Xt(N,C)>Xt(N,I)?b?-1:1:0)}),k=a.computed(()=>n.value?l.value:y.value.length),_=a.computed({get:()=>{var N;return(N=o.value)!=null?N:[]},set:N=>{c("update:itemsSelected",N)}});return{totalItems:y,selectItemsComputed:_,totalItemsLength:k,toggleSelectAll:N=>{_.value=N?y.value:[],N&&c("selectAll")},toggleSelectItem:N=>{const b=N.checkbox;if(delete N.checkbox,delete N.index,b)_.value=_.value.filter(B=>JSON.stringify(B)!==JSON.stringify(N)),c("deselectRow",N);else{const B=_.value;B.unshift(N),_.value=B,c("selectRow",N)}}}}var yx={alternating:{type:Boolean,default:!1},buttonsPagination:{type:Boolean,default:!1},checkboxColumnWidth:{type:Number,default:null},currentPage:{type:Number,default:1},emptyMessage:{type:String,default:"No Available Data"},expandColumnWidth:{type:Number,default:36},filterOptions:{type:Array,default:null},fixedExpand:{type:Boolean,default:!1},fixedHeader:{type:Boolean,default:!0},fixedCheckbox:{type:Boolean,default:!1},fixedIndex:{type:Boolean,default:!1},headerTextDirection:{type:String,default:"left"},bodyTextDirection:{type:String,default:"left"},hideFooter:{type:Boolean,default:!1},hideRowsPerPage:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},indexColumnWidth:{type:Number,default:60},itemsSelected:{type:Array,default:null},loading:{type:Boolean,default:!1},rowsPerPage:{type:Number,default:25},rowsItems:{type:Array,default:()=>[25,50,100]},rowsPerPageMessage:{type:String,default:"rows per page:"},searchField:{type:[String,Array],default:""},searchValue:{type:String,default:""},serverOptions:{type:Object,default:null},serverItemsLength:{type:Number,default:0},showIndex:{type:Boolean,default:!1},sortBy:{type:[String,Array],default:""},sortType:{type:[String,Array],default:"asc"},multiSort:{type:Boolean,default:!1},tableMinHeight:{type:Number,default:180},tableHeight:{type:Number,default:null},themeColor:{type:String,default:"#42b883"},tableClassName:{type:String,default:""},headerClassName:{type:String,default:""},headerItemClassName:{type:[Function,String],default:""},bodyRowClassName:{type:[Function,String],default:""},bodyExpandRowClassName:{type:[Function,String],default:""},bodyItemClassName:{type:[Function,String],default:""},noHover:{type:Boolean,default:!1},borderCell:{type:Boolean,default:!1},mustSort:{type:Boolean,default:!1},rowsOfPageSeparatorMessage:{type:String,default:"of"},clickEventType:{type:String,default:"single"},clickRowToExpand:{type:Boolean,default:!1},tableNodeId:{type:String,default:""},showIndexSymbol:{type:String,default:"#"},preventContextMenuRow:{type:Boolean,default:!0}};const bx=e=>(a.pushScopeId("data-v-32683533"),e=e(),a.popScopeId(),e),_x=["id"],wx=["onClick"],kx={key:3,class:"header-text"},Sx={key:5,class:"multi-sort__number"},Cx=["onClick","onDblclick","onContextmenu"],Tx=["onClick"],Ex=["colspan"],xx={key:0,class:"vue3-easy-data-table__loading"},Px=bx(()=>a.createElementVNode("div",{class:"vue3-easy-data-table__loading-mask"},null,-1)),Ix={class:"loading-entity"},Dx={key:1,class:"vue3-easy-data-table__message"},Ox={key:0,class:"vue3-easy-data-table__footer"},Nx={key:0,class:"pagination__rows-per-page"},Bx={class:"pagination__items-index"},Mx=a.defineComponent({__name:"DataTable",props:ai(Hn({},yx),{items:{type:Array,required:!0},headers:{type:Array,required:!0}}),emits:["clickRow","contextmenuRow","selectRow","deselectRow","expandRow","updateSort","updateFilter","update:itemsSelected","update:serverOptions","updatePageItems","updateTotalItems","selectAll"],setup(e,{expose:t,emit:n}){const r=e;a.useCssVars(Se=>({da0d4328:a.unref(V),"3037e504":a.unref(Q)}));const{tableNodeId:o,clickEventType:i,bodyTextDirection:s,checkboxColumnWidth:l,currentPage:u,expandColumnWidth:c,filterOptions:f,fixedCheckbox:p,fixedExpand:h,fixedHeader:m,fixedIndex:y,headers:k,headerTextDirection:_,indexColumnWidth:w,items:T,itemsSelected:N,loading:b,mustSort:B,multiSort:C,rowsItems:I,rowsPerPage:F,searchField:q,searchValue:W,serverItemsLength:M,serverOptions:D,showIndex:$,sortBy:Y,sortType:X,tableHeight:K,tableMinHeight:j,themeColor:U,rowsOfPageSeparatorMessage:S,showIndexSymbol:H,preventContextMenuRow:Z}=a.toRefs(r),Q=a.computed(()=>K.value?`${K.value}px`:null),V=a.computed(()=>`${j.value}px`);a.provide("themeColor",U.value);const E=a.useSlots(),P=a.computed(()=>!!E.pagination),R=a.computed(()=>!!E.loading),G=a.computed(()=>!!E.expand),ie=a.computed(()=>!!E.body),oe=a.ref(),Ie=a.ref();a.provide("dataTable",oe);const Ee=a.ref(!1);a.onMounted(()=>{Ie.value.addEventListener("scroll",()=>{Ee.value=Ie.value.scrollLeft>0})});const fe=a.computed(()=>N.value!==null),Be=a.computed(()=>D.value!==null),{serverOptionsComputed:$e,updateServerOptionsPage:ze,updateServerOptionsSort:Ge,updateServerOptionsRowsPerPage:Ke}=mx(D,C,n),{clientSortOptions:ve,headerColumns:Qe,headersForRender:Te,updateSortField:se,isMultiSorting:ce,getMultiSortNumber:me}=dx(H,l,c,p,h,y,k,G,w,fe,Be,B,$e,$,Y,X,C,Ge,n),{rowsItemsComputed:Pt,rowsPerPageRef:xe,updateRowsPerPage:Mt}=hx(Be,I,D,F),{totalItems:Ut,selectItemsComputed:Rt,totalItemsLength:zt,toggleSelectAll:kn,toggleSelectItem:Sn}=gx(ve,f,Be,T,N,q,W,M,C,n),{currentPaginationNumber:Et,maxPaginationNumber:L,isLastPage:O,isFirstPage:ee,nextPage:re,prevPage:ge,updatePage:we,updateCurrentPaginationNumber:qe}=px(u,Be,b,zt,xe,D,ze),{currentPageFirstIndex:J,currentPageLastIndex:le,multipleSelectStatus:Le,pageItems:De}=fx(Et,fe,Be,T,xe,Rt,$,Ut,zt),st=a.computed(()=>Et.value===0?0:(Et.value-1)*xe.value),{expandingItemIndexList:pe,updateExpandingItemIndexList:mt,clearExpandingItemIndexList:Me}=ux(De,st,n),{fixedHeaders:ln,lastFixedColumn:At,fixedColumnsInfos:Va}=cx(Te),{clickRow:Zn}=lx(i,fe,$,n),Fa=(Se,jt)=>{Z.value&&jt.preventDefault(),n("contextmenuRow",Se,jt)},rn=Se=>{var jt;const be=(jt=Se.width)!=null?jt:ln.value.length?100:null;if(be)return`width: ${be}px; min-width: ${be}px;`},Jr=(Se,jt="th")=>{if(!ln.value.length)return;const be=Va.value.find(vt=>vt.value===Se);if(be)return`left: ${be.distance}px;z-index: ${jt==="th"?3:1};position: sticky;`};return a.watch(b,(Se,jt)=>{$e.value&&Se===!1&&jt===!0&&(qe($e.value.page),Me())}),a.watch(xe,Se=>{Be.value?Ke(Se):we(1)}),a.watch([W,f],()=>{Be.value||we(1)}),a.watch([Et,ve,q,W,f],()=>{Me()},{deep:!0}),a.watch(De,Se=>{n("updatePageItems",Se)},{deep:!0}),a.watch(Ut,Se=>{n("updateTotalItems",Se)},{deep:!0}),t({currentPageFirstIndex:J,currentPageLastIndex:le,clientItemsLength:zt,maxPaginationNumber:L,currentPaginationNumber:Et,isLastPage:O,isFirstPage:ee,nextPage:re,prevPage:ge,updatePage:we,rowsPerPageOptions:Pt,rowsPerPageActiveOption:xe,updateRowsPerPageActiveOption:Mt}),(Se,jt)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"dataTable",ref:oe,class:a.normalizeClass(["vue3-easy-data-table",[Se.tableClassName]])},[a.createElementVNode("div",{ref_key:"tableBody",ref:Ie,class:a.normalizeClass(["vue3-easy-data-table__main",{"fixed-header":a.unref(m),"fixed-height":a.unref(K),"show-shadow":Ee.value,"table-fixed":a.unref(ln).length,hoverable:!Se.noHover,"border-cell":Se.borderCell}])},[a.createElementVNode("table",{id:a.unref(o)},[a.createElementVNode("colgroup",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Te),(be,vt)=>(a.openBlock(),a.createElementBlock("col",{key:vt,style:a.normalizeStyle(rn(be))},null,4))),128))]),a.unref(E)["customize-headers"]?a.renderSlot(Se.$slots,"customize-headers",{key:0},void 0,!0):a.unref(Te).length&&!Se.hideHeader?(a.openBlock(),a.createElementBlock("thead",{key:1,class:a.normalizeClass(["vue3-easy-data-table__header",[Se.headerClassName]])},[a.createElementVNode("tr",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Te),(be,vt)=>(a.openBlock(),a.createElementBlock("th",{key:vt,class:a.normalizeClass([{sortable:be.sortable,none:be.sortable&&be.sortType==="none",desc:be.sortable&&be.sortType==="desc",asc:be.sortable&&be.sortType==="asc",shadow:be.value===a.unref(At)},typeof Se.headerItemClassName=="string"?Se.headerItemClassName:Se.headerItemClassName(be,vt+1)]),style:a.normalizeStyle(Jr(be.value)),onClick:a.withModifiers(it=>be.sortable&&be.sortType?a.unref(se)(be.value,be.sortType):null,["stop"])},[be.text==="checkbox"?(a.openBlock(),a.createBlock(P2,{key:a.unref(Le),status:a.unref(Le),onChange:a.unref(kn)},null,8,["status","onChange"])):(a.openBlock(),a.createElementBlock("span",{key:1,class:a.normalizeClass(["header",`direction-${a.unref(_)}`])},[a.unref(E)[`header-${be.value}`]?a.renderSlot(Se.$slots,`header-${be.value}`,a.normalizeProps(a.mergeProps({key:0},be)),void 0,!0):a.unref(E)[`header-${be.value.toLowerCase()}`]?a.renderSlot(Se.$slots,`header-${be.value.toLowerCase()}`,a.normalizeProps(a.mergeProps({key:1},be)),void 0,!0):a.unref(E).header?a.renderSlot(Se.$slots,"header",a.normalizeProps(a.mergeProps({key:2},be)),void 0,!0):(a.openBlock(),a.createElementBlock("span",kx,a.toDisplayString(be.text),1)),be.sortable?(a.openBlock(),a.createElementBlock("i",{key:be.sortType?be.sortType:"none",class:a.normalizeClass(["sortType-icon",{desc:be.sortType==="desc"}])},null,2)):a.createCommentVNode("",!0),a.unref(C)&&a.unref(ce)(be.value)?(a.openBlock(),a.createElementBlock("span",Sx,a.toDisplayString(a.unref(me)(be.value)),1)):a.createCommentVNode("",!0)],2))],14,wx))),128))])],2)):a.createCommentVNode("",!0),a.unref(ie)?a.renderSlot(Se.$slots,"body",a.normalizeProps(a.mergeProps({key:2},a.unref(De))),void 0,!0):a.unref(Qe).length?(a.openBlock(),a.createElementBlock("tbody",{key:3,class:a.normalizeClass(["vue3-easy-data-table__body",{"row-alternation":Se.alternating}])},[a.renderSlot(Se.$slots,"body-prepend",a.normalizeProps(a.guardReactiveProps({items:a.unref(De),pagination:{isFirstPage:a.unref(ee),isLastPage:a.unref(O),currentPaginationNumber:a.unref(Et),maxPaginationNumber:a.unref(L),nextPage:a.unref(re),prevPage:a.unref(ge)},headers:a.unref(Te)})),void 0,!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(De),(be,vt)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:vt},[a.createElementVNode("tr",{class:a.normalizeClass([{"even-row":(vt+1)%2===0},typeof Se.bodyRowClassName=="string"?Se.bodyRowClassName:Se.bodyRowClassName(be,vt+1)]),onClick:it=>{a.unref(Zn)(be,"single",it),Se.clickRowToExpand&&a.unref(mt)(vt+a.unref(st),be,it)},onDblclick:it=>{a.unref(Zn)(be,"double",it)},onContextmenu:it=>{Fa(be,it)}},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Qe),(it,er)=>(a.openBlock(),a.createElementBlock("td",{key:er,style:a.normalizeStyle(Jr(it,"td")),class:a.normalizeClass([{shadow:it===a.unref(At),"can-expand":it==="expand"},typeof Se.bodyItemClassName=="string"?Se.bodyItemClassName:Se.bodyItemClassName(it,vt+1),`direction-${a.unref(s)}`]),onClick:Gt=>it==="expand"?a.unref(mt)(vt+a.unref(st),be,Gt):null},[a.unref(E)[`item-${it}`]?a.renderSlot(Se.$slots,`item-${it}`,a.normalizeProps(a.mergeProps({key:0},be)),void 0,!0):a.unref(E)[`item-${it.toLowerCase()}`]?a.renderSlot(Se.$slots,`item-${it.toLowerCase()}`,a.normalizeProps(a.mergeProps({key:1},be)),void 0,!0):it==="expand"?(a.openBlock(),a.createElementBlock("i",{key:2,class:a.normalizeClass(["expand-icon",{expanding:a.unref(pe).includes(a.unref(st)+vt)}])},null,2)):it==="checkbox"?(a.openBlock(),a.createBlock(B2,{key:3,checked:be[it],onChange:Gt=>a.unref(Sn)(be)},null,8,["checked","onChange"])):a.unref(E).item?a.renderSlot(Se.$slots,"item",a.normalizeProps(a.mergeProps({key:4},{column:it,item:be})),void 0,!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:5},[a.createTextVNode(a.toDisplayString(a.unref(vx)(it,be)),1)],64))],14,Tx))),128))],42,Cx),a.unref(G)&&a.unref(pe).includes(vt+a.unref(st))?(a.openBlock(),a.createElementBlock("tr",{key:0,class:a.normalizeClass([{"even-row":(vt+1)%2===0},typeof Se.bodyExpandRowClassName=="string"?Se.bodyExpandRowClassName:Se.bodyExpandRowClassName(be,vt+1)])},[a.createElementVNode("td",{colspan:a.unref(Te).length,class:"expand"},[be.expandLoading?(a.openBlock(),a.createBlock(J2,{key:0,class:"expand-loading"})):a.createCommentVNode("",!0),a.renderSlot(Se.$slots,"expand",a.normalizeProps(a.guardReactiveProps(be)),void 0,!0)],8,Ex)],2)):a.createCommentVNode("",!0)],64))),128)),a.renderSlot(Se.$slots,"body-append",a.normalizeProps(a.guardReactiveProps({items:a.unref(De),pagination:{isFirstPage:a.unref(ee),isLastPage:a.unref(O),currentPaginationNumber:a.unref(Et),maxPaginationNumber:a.unref(L),nextPage:a.unref(re),prevPage:a.unref(ge),updatePage:a.unref(we)},headers:a.unref(Te)})),void 0,!0)],2)):a.createCommentVNode("",!0)],8,_x),a.unref(b)?(a.openBlock(),a.createElementBlock("div",xx,[Px,a.createElementVNode("div",Ix,[a.unref(R)?a.renderSlot(Se.$slots,"loading",{key:0},void 0,!0):(a.openBlock(),a.createBlock(G2,{key:1}))])])):a.createCommentVNode("",!0),!a.unref(De).length&&!a.unref(b)?(a.openBlock(),a.createElementBlock("div",Dx,[a.renderSlot(Se.$slots,"empty-message",{},()=>[a.createTextVNode(a.toDisplayString(Se.emptyMessage),1)],!0)])):a.createCommentVNode("",!0)],2),Se.hideFooter?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",Ox,[Se.hideRowsPerPage?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",Nx,[a.createTextVNode(a.toDisplayString(Se.rowsPerPageMessage)+" ",1),a.createVNode(F2,{modelValue:a.unref(xe),"onUpdate:modelValue":jt[0]||(jt[0]=be=>a.isRef(xe)?xe.value=be:null),"rows-items":a.unref(Pt)},null,8,["modelValue","rows-items"])])),a.createElementVNode("div",Bx,a.toDisplayString(`${a.unref(J)}–${a.unref(le)}`)+" "+a.toDisplayString(a.unref(S))+" "+a.toDisplayString(a.unref(zt)),1),a.unref(P)?a.renderSlot(Se.$slots,"pagination",a.normalizeProps(a.mergeProps({key:1},{isFirstPage:a.unref(ee),isLastPage:a.unref(O),currentPaginationNumber:a.unref(Et),maxPaginationNumber:a.unref(L),nextPage:a.unref(re),prevPage:a.unref(ge)})),void 0,!0):(a.openBlock(),a.createBlock(sx,{key:2,"is-first-page":a.unref(ee),"is-last-page":a.unref(O),onClickNextPage:a.unref(re),onClickPrevPage:a.unref(ge)},a.createSlots({_:2},[Se.buttonsPagination?{name:"buttonsPagination",fn:a.withCtx(()=>[a.createVNode(tx,{"current-pagination-number":a.unref(Et),"max-pagination-number":a.unref(L),onUpdatePage:a.unref(we)},null,8,["current-pagination-number","max-pagination-number","onUpdatePage"])]),key:"0"}:void 0]),1032,["is-first-page","is-last-page","onClickNextPage","onClickPrevPage"]))]))],2))}});var hh=Pr(Mx,[["__scopeId","data-v-32683533"]]);typeof window<"u"&&window.Vue&&window.Vue.createApp({}).component("Vue3EasyDataTable",hh);const Rx={class:"relative z-50 -mt-20 w-full -translate-y-0.5 rounded-2xl bg-white px-4 py-3 shadow"},Ax={class:"my-[3px] flex w-full flex-col justify-between space-y-2 md:flex-row"},$x={class:"items-center sm:flex","data-test-results":""},Lx={key:0,class:"flex w-full items-center md:mr-4 md:space-x-2"},Vx=a.createElementVNode("div",{class:"hidden md:block"}," Tonen ",-1),Fx={class:"hidden whitespace-nowrap md:flex","data-test-results-count":""},Hx=a.defineComponent({__name:"AppDataTableFooter",props:{dataTable:{},currentPage:{}},emits:["nextPage","previousPage","updatePage"],setup(e,{emit:t}){const n=e,r=a.computed(()=>n.dataTable),o=a.computed(()=>{var p;return((p=r.value)==null?void 0:p.clientItemsLength)??0}),i=a.computed(()=>{var p;return(p=r.value)==null?void 0:p.maxPaginationNumber}),s=a.computed(()=>{var p;return n.currentPage??((p=r.value)==null?void 0:p.currentPaginationNumber)});function l(){t("nextPage")}function u(){t("previousPage")}function c(p){t("updatePage",p)}function f(){t("updatePage",1)}return(p,h)=>(a.openBlock(),a.createElementBlock("div",Rx,[a.createElementVNode("div",Ax,[a.createElementVNode("div",$x,[r.value?(a.openBlock(),a.createElementBlock("div",Lx,[Vx,a.createVNode(a.unref(uh),{modelValue:r.value.rowsPerPageActiveOption,"onUpdate:modelValue":h[0]||(h[0]=m=>r.value.rowsPerPageActiveOption=m),"can-clear":!1,"can-deselect":!1,options:r.value.rowsPerPageOptions,"additional-classes":{singleLabel:"!p-3",caret:"!mr-2"},"open-direction":"up","wrapper-classes":"w-full",class:"h-10 w-full md:w-20",onChange:f},null,8,["modelValue","options"])])):a.createCommentVNode("",!0),a.createElementVNode("div",Fx,[a.renderSlot(p.$slots,"results",{results:o.value},()=>[a.createTextVNode(a.toDisplayString(o.value)+" results ",1)])])]),o.value>0?(a.openBlock(),a.createBlock(a.unref(mh),{key:0,"current-page":s.value,"last-page":i.value,onPaginate:c,onNextPage:l,onPreviousPage:u},null,8,["current-page","last-page"])):a.createCommentVNode("",!0)])]))}}),Ux=a.defineComponent({inheritAttrs:!1,__name:"AppDataTable",props:{headers:{},items:{},modelValue:{},currentPage:{},rowItems:{default:()=>[20,50,100,200,500]},rowsPerPage:{default:50},actionBarSelection:{type:Boolean,default:!0},actionBarSelectionKey:{default:"id"}},emits:["update:modelValue","updatePage","clickItem"],setup(e,{expose:t,emit:n}){const r=e,o=a.useSlots(),i=qi(),s=ui.useKeyModifier("Alt"),l=ui.useKeyModifier("Shift"),u=a.ref(),c=a.ref((r==null?void 0:r.modelValue)??void 0),f=a.computed(()=>u.value);a.watch(()=>c.value,w=>{c.value&&n("update:modelValue",[...w.map(T=>T==null?void 0:T[r.actionBarSelectionKey])])}),a.onMounted(()=>{r!=null&&r.modelValue&&a.watch(r.modelValue,w=>{c.value=w})});function p(w){if(!w&&r.actionBarSelection){i.setSelection(c.value.map(T=>T==null?void 0:T[r.actionBarSelectionKey]));return}w&&r.actionBarSelection&&i.setSelection(w.map(T=>T==null?void 0:T[r.actionBarSelectionKey]))}function h(w){var T;(T=f.value)==null||T.updatePage(w),n("updatePage",w)}function m(){var w,T;(w=f.value)==null||w.prevPage(),n("updatePage",(((T=f.value)==null?void 0:T.currentPaginationNumber)??2)-1)}function y(){var w,T;(w=f.value)==null||w.nextPage(),n("updatePage",(((T=f.value)==null?void 0:T.currentPaginationNumber)??0)+1)}function k(w){if(s.value&&c.value!==void 0){const T=c.value.findIndex(N=>N.id===w.id);if(T>-1){c.value.splice(T,1),p();return}c.value.push({...w,isSelected:void 0}),p();return}n("clickItem",w)}function _(w){var T;if(l&&c.value&&((T=c.value??[])==null?void 0:T.length)>1){const N=r.items.findIndex(B=>{var C,I;return B.id===((I=(C=c.value)==null?void 0:C[(c.value??[]).length-1])==null?void 0:I.id)}),b=r.items.findIndex(B=>B.id===w.id);r.items.slice(N,b).forEach(B=>{c.value.findIndex(I=>I.id===B.id)===-1&&c.value.push({...B,isSelected:void 0})}),p()}}return t({dataTableInstance:f}),i.onResetSelection.value=w=>{(r==null?void 0:r.modelValue)!==void 0&&(c.value=w)},(w,T)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"app-table-without-selection":(r==null?void 0:r.modelValue)===void 0},"app-data-table-wrapper"])},[a.createVNode(a.unref(hh),a.mergeProps({ref_key:"dataTable",ref:u},{...w.$props,...w.$attrs},{"items-selected":c.value,"onUpdate:itemsSelected":[T[0]||(T[0]=N=>c.value=N),p],"hide-footer":!0,headers:w.headers,"checkbox-column-width":30,"rows-items":w.rowItems,"rows-per-page":w.rowsPerPage,"body-row-class-name":"drop-shadow rounded-xl",onClickRow:k,onSelectRow:_}),a.createSlots({loading:a.withCtx(()=>[a.createVNode(a.unref(Gr),{size:"medium"})]),_:2},[a.renderList(Object.keys(a.unref(o)),(N,b)=>({name:N,fn:a.withCtx(B=>[a.renderSlot(w.$slots,N,a.normalizeProps(a.guardReactiveProps(B)))])}))]),1040,["items-selected","headers","rows-items","rows-per-page"]),f.value?(a.openBlock(),a.createBlock(Hx,{key:0,"data-table":f.value,"current-page":w.currentPage,onNextPage:y,onPreviousPage:m,onUpdatePage:h},{results:a.withCtx(({results:N})=>[a.renderSlot(w.$slots,"footer-results",{results:N})]),_:3},8,["data-table","current-page"])):a.createCommentVNode("",!0)],2))}});const zx={default:["text-white"],danger:["text-red-500"]},jx=a.defineComponent({__name:"AppActionBarItem",props:{action:{}},setup(e){const t=e,n=qi(),r=a.ref(null),o=a.ref(!1),i=a.ref(!1),s=a.computed(()=>i.value?Gr:o.value?Cp:t.action.icon),l=a.computed(()=>t.action.type??"default");async function u(){var c,f,p;if(t.action.confirm&&!o.value){o.value=!0;return}i.value=!0,o.value=!1,await((f=(c=t.action).onClick)==null?void 0:f.call(c)),i.value=!1,(((p=t.action)==null?void 0:p.resetSelection)??!0)&&n.resetSelection()}return ui.onClickOutside(r,()=>{o.value=!1}),(c,f)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"actionBarItem",ref:r,class:a.normalizeClass([a.unref(zx)[l.value],"cursor-pointer px-3 py-4 hover:bg-black-100/20"]),onClick:u},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s.value),{class:a.normalizeClass([{"text-yellow-600":o.value},"h-5 w-5"]),size:"small"},null,8,["class"]))],2))}}),Wx={class:"flex py-4.5 text-sm"},qx={class:"w-28 whitespace-nowrap pl-2","data-test-selection-text":""},Yx={class:"flex"},Tu=a.defineComponent({__name:"AppActionBar",setup(e){const{selection:t,actions:n,isOpen:r,close:o,resetSelection:i,selectionText:s}=qi(),l=a.ref([1]),u=a.computed(()=>s.value.replace(":selection",String(t.value.length)));function c(){l.value=[1],i()}function f(){i(),o()}return ui.onKeyStroke(["Escape"],p=>{p.preventDefault(),f()}),(p,h)=>{const m=a.resolveDirective("tippy");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"!translate-y-0":a.unref(t).length>0&&a.unref(r)},"fixed inset-x-0 top-0 z-100 -mt-14 flex h-14 -translate-y-24 items-center justify-between bg-secondary px-4 text-white transition-all ease-in-out md:sticky"])},[a.createElementVNode("div",Wx,[a.createVNode(lh,{modelValue:l.value,"onUpdate:modelValue":h[0]||(h[0]=y=>l.value=y),value:1,type:"checkbox",onChange:c},null,8,["modelValue"]),a.createElementVNode("div",qx,a.toDisplayString(u.value),1)]),a.createElementVNode("div",Yx,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(n),(y,k)=>a.withDirectives((a.openBlock(),a.createBlock(jx,{key:`action-item-${k}`,action:y},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(y.icon),1)]),_:2},1032,["action"])),[[m,y.name]])),128))]),a.createElementVNode("div",null,[a.createVNode(a.unref(Fi),{class:"h-5 w-5 cursor-pointer",onClick:f})])],2)}}}),Ys=a.defineComponent({__name:"AppPaginationItem",props:{as:{type:[String,Object,Function],default:"a"},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.as),{class:a.normalizeClass([{"-ml-px !border-primary bg-primary text-white hover:!bg-primary":t.active,"border-y !border-y-zinc-300 !bg-zinc-100 !text-zinc-300":t.disabled,"hover:border-y hover:border-zinc-300 hover:bg-zinc-100":t.as==="a"},"-my-px flex items-center border-y border-r border-y-transparent border-r-zinc-300 px-3 py-1 last:border-r-0"])},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default")]),_:3},8,["class"]))}}),Gx={class:"flex items-center justify-between border-zinc-200 sm:px-6"},Kx=a.createElementVNode("span",{class:"sr-only"},"previous",-1),Xx=a.createElementVNode("span",{class:"sr-only"},"next",-1),mh=a.defineComponent({__name:"AppPagination",props:{meta:{default:void 0},currentPage:{default:void 0},lastPage:{default:void 0},loaded:{type:Boolean,default:!0}},emits:["paginate","nextPage","previousPage"],setup(e,{emit:t}){const n=e,r=a.ref(2),o=a.computed(()=>{var h,m;return((m=(h=n.meta)==null?void 0:h.meta)==null?void 0:m.currentPage)??n.currentPage??1}),i=a.computed(()=>{var h,m;return((m=(h=n.meta)==null?void 0:h.meta)==null?void 0:m.lastPage)??n.lastPage??1}),s=a.computed(()=>{const h=o.value-r.value;return h>0?h:1}),l=a.computed(()=>{const h=o.value+r.value;return h<i.value?h:i.value}),u=a.computed(()=>{const h=o.value-1;return h>0?h:null}),c=a.computed(()=>{const h=o.value+1;return h<=i.value?h:null}),f=a.computed(()=>{const h=[];s.value>1&&(h.push(1),s.value>2&&h.push(0));for(let m=s.value;m<=l.value;m+=1)h.push(m);return l.value<i.value&&(l.value+1!==i.value&&h.push(0),h.push(i.value)),h});function p(h){h&&t("paginate",h)}return(h,m)=>(a.openBlock(),a.createElementBlock("div",Gx,[a.createElementVNode("div",null,[a.createElementVNode("nav",{class:a.normalizeClass([{"pointer-events-none opacity-50":!h.loaded},"flex rounded-lg border border-zinc-300"]),"aria-label":"Pagination"},[a.createVNode(Ys,{disabled:u.value===null,href:"#",class:"rounded-l-lg",onClick:m[0]||(m[0]=a.withModifiers(()=>t("previousPage"),["prevent"]))},{default:a.withCtx(()=>[Kx,a.createVNode(a.unref(Ip),{class:"-mx-1.5 h-5 w-5 stroke-2","aria-hidden":"true"})]),_:1},8,["disabled"]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.value,y=>(a.openBlock(),a.createBlock(Ys,{key:`pagination-${y}`,as:y?"a":"span",active:y===o.value,href:"#",onClick:a.withModifiers(()=>p(y),["prevent"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(y||"..."),1)]),_:2},1032,["as","active","onClick"]))),128)),a.createVNode(Ys,{class:a.normalizeClass([{"cursor-not-allowed":c.value===null},"rounded-r-lg"]),disabled:c.value===null,href:"#",onClick:m[1]||(m[1]=a.withModifiers(()=>t("nextPage"),["prevent"]))},{default:a.withCtx(()=>[Xx,a.createVNode(a.unref(Zb),{class:"-mx-1.5 h-5 w-5 stroke-2","aria-hidden":"true"})]),_:1},8,["class","disabled"])],2)])]))}}),Jx=["aria-checked","disabled"],Qx=a.createElementVNode("span",{"aria-hidden":"true",class:"pointer-events-none inline-block h-5 w-5 translate-x-0 rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out group-aria-checked:!translate-x-6","data-test-handle":""},null,-1),Zx=[Qx],eP=a.defineComponent({__name:"AppToggle",props:a.mergeModels({disabled:{type:Boolean,default:!1}},{modelValue:{type:Boolean,required:!1}}),emits:["update:modelValue"],setup(e){const t=e,n=a.useModel(e,"modelValue");function r(){t.disabled||(n.value=!n.value)}return(o,i)=>(a.openBlock(),a.createElementBlock("button",{"aria-checked":n.value,disabled:o.disabled,type:"button",class:"group relative inline-flex h-6 w-12 shrink-0 cursor-pointer rounded-full border-2 border-transparent bg-zinc-200 transition-colors duration-200 ease-in-out disabled:cursor-not-allowed disabled:opacity-60 aria-checked:bg-primary",role:"switch",onClick:r},Zx,8,Jx))}}),Gs={instances:a.ref([])};function Cd(e){var t,n;(t=e==null?void 0:e.instance)==null||t.unmount(),(n=e==null?void 0:e.element)==null||n.remove()}function tP(){async function e(n){window.scrollTo(0,0);const r=document.createElement("div");document.body.append(r);let o=null;return new Promise(i=>{o=a.createApp(Dp,{...n,onClose:i}),o.mount(r),Gs.instances.value.push({instance:o,element:r})}).finally(()=>{o&&setTimeout(()=>{Cd({instance:o,element:r})},500)})}async function t(){return Gs.instances.value.forEach(n=>Cd(n)),Promise.resolve()}return{...Gs,open:e,close:t}}const Td={instances:a.ref([])};function Ed(e){var t,n;(t=e==null?void 0:e.instance)==null||t.unmount(),(n=e==null?void 0:e.element)==null||n.remove()}function nP(e,t){const n=a.ref();async function r(i){t&&(t.content=e),window.scrollTo(0,0);const s=document.createElement("div");document.body.append(s);let l=null,u=null;return new Promise(c=>{a.isRef(e)?u=e.value:(l=a.createApp(Op,{...t,...i,onClose:f=>{var p;(p=t==null?void 0:t.onClose)==null||p.call(t),c(f)}}),u=l.mount(s)),u.open(),n.value={ref:u,instance:l,element:s},Td.instances.value.push(n.value)}).finally(()=>{l&&setTimeout(()=>{Ed({ref:u,instance:l,element:s})},500)})}async function o(){var i;return(i=n.value)==null||i.ref.close(),setTimeout(()=>{n.value&&Ed(n.value)},300),Promise.resolve()}return{...Td,instance:n,open:r,close:o}}const nr={selection:a.ref([]),actions:a.ref([]),isOpen:a.ref(!1),onResetSelection:a.ref(),selectionText:a.ref(":selection selected")};function qi(){function e(s){nr.selection.value=s,i()}function t(s){nr.actions.value=s,i()}function n(){var s,l;nr.selection.value.splice(0),(l=(s=nr.onResetSelection).value)==null||l.call(s,nr.selection.value)}function r(s){nr.selectionText.value=s}function o(){nr.isOpen.value=!1}function i(){nr.isOpen.value=!0}return{...nr,resetSelection:n,setSelection:e,setSelectionText:r,setActions:t,open:i,close:o}}function Tl(e){"@babel/helpers - typeof";return Tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tl(e)}function Ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ht(e,t,n){return t&&xd(e.prototype,t),n&&xd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yo(){return yo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yo.apply(this,arguments)}function pn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&El(e,t)}function wi(e){return wi=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wi(e)}function El(e,t){return El=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},El(e,t)}function rP(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function aP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oP(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aP(e)}function hn(e){var t=rP();return function(){var r=wi(e),o;if(t){var i=wi(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return oP(this,o)}}var Eu=function(){function e(){Ft(this,e)}return Ht(e,[{key:"listenForWhisper",value:function(n,r){return this.listen(".client-"+n,r)}},{key:"notification",value:function(n){return this.listen(".Illuminate\\Notifications\\Events\\BroadcastNotificationCreated",n)}},{key:"stopListeningForWhisper",value:function(n,r){return this.stopListening(".client-"+n,r)}}]),e}(),vh=function(){function e(t){Ft(this,e),this.namespace=t}return Ht(e,[{key:"format",value:function(n){return n.charAt(0)==="."||n.charAt(0)==="\\"?n.substr(1):(this.namespace&&(n=this.namespace+"."+n),n.replace(/\./g,"\\"))}},{key:"setNamespace",value:function(n){this.namespace=n}}]),e}(),Yi=function(e){pn(n,e);var t=hn(n);function n(r,o,i){var s;return Ft(this,n),s=t.call(this),s.name=o,s.pusher=r,s.options=i,s.eventFormatter=new vh(s.options.namespace),s.subscribe(),s}return Ht(n,[{key:"subscribe",value:function(){this.subscription=this.pusher.subscribe(this.name)}},{key:"unsubscribe",value:function(){this.pusher.unsubscribe(this.name)}},{key:"listen",value:function(o,i){return this.on(this.eventFormatter.format(o),i),this}},{key:"listenToAll",value:function(o){var i=this;return this.subscription.bind_global(function(s,l){if(!s.startsWith("pusher:")){var u=i.options.namespace.replace(/\./g,"\\"),c=s.startsWith(u)?s.substring(u.length+1):"."+s;o(c,l)}}),this}},{key:"stopListening",value:function(o,i){return i?this.subscription.unbind(this.eventFormatter.format(o),i):this.subscription.unbind(this.eventFormatter.format(o)),this}},{key:"stopListeningToAll",value:function(o){return o?this.subscription.unbind_global(o):this.subscription.unbind_global(),this}},{key:"subscribed",value:function(o){return this.on("pusher:subscription_succeeded",function(){o()}),this}},{key:"error",value:function(o){return this.on("pusher:subscription_error",function(i){o(i)}),this}},{key:"on",value:function(o,i){return this.subscription.bind(o,i),this}}]),n}(Eu),iP=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"whisper",value:function(o,i){return this.pusher.channels.channels[this.name].trigger("client-".concat(o),i),this}}]),n}(Yi),sP=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"whisper",value:function(o,i){return this.pusher.channels.channels[this.name].trigger("client-".concat(o),i),this}}]),n}(Yi),lP=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"here",value:function(o){return this.on("pusher:subscription_succeeded",function(i){o(Object.keys(i.members).map(function(s){return i.members[s]}))}),this}},{key:"joining",value:function(o){return this.on("pusher:member_added",function(i){o(i.info)}),this}},{key:"whisper",value:function(o,i){return this.pusher.channels.channels[this.name].trigger("client-".concat(o),i),this}},{key:"leaving",value:function(o){return this.on("pusher:member_removed",function(i){o(i.info)}),this}}]),n}(Yi),gh=function(e){pn(n,e);var t=hn(n);function n(r,o,i){var s;return Ft(this,n),s=t.call(this),s.events={},s.listeners={},s.name=o,s.socket=r,s.options=i,s.eventFormatter=new vh(s.options.namespace),s.subscribe(),s}return Ht(n,[{key:"subscribe",value:function(){this.socket.emit("subscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"unsubscribe",value:function(){this.unbind(),this.socket.emit("unsubscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"listen",value:function(o,i){return this.on(this.eventFormatter.format(o),i),this}},{key:"stopListening",value:function(o,i){return this.unbindEvent(this.eventFormatter.format(o),i),this}},{key:"subscribed",value:function(o){return this.on("connect",function(i){o(i)}),this}},{key:"error",value:function(o){return this}},{key:"on",value:function(o,i){var s=this;return this.listeners[o]=this.listeners[o]||[],this.events[o]||(this.events[o]=function(l,u){s.name===l&&s.listeners[o]&&s.listeners[o].forEach(function(c){return c(u)})},this.socket.on(o,this.events[o])),this.listeners[o].push(i),this}},{key:"unbind",value:function(){var o=this;Object.keys(this.events).forEach(function(i){o.unbindEvent(i)})}},{key:"unbindEvent",value:function(o,i){this.listeners[o]=this.listeners[o]||[],i&&(this.listeners[o]=this.listeners[o].filter(function(s){return s!==i})),(!i||this.listeners[o].length===0)&&(this.events[o]&&(this.socket.removeListener(o,this.events[o]),delete this.events[o]),delete this.listeners[o])}}]),n}(Eu),yh=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"whisper",value:function(o,i){return this.socket.emit("client event",{channel:this.name,event:"client-".concat(o),data:i}),this}}]),n}(gh),uP=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"here",value:function(o){return this.on("presence:subscribed",function(i){o(i.map(function(s){return s.user_info}))}),this}},{key:"joining",value:function(o){return this.on("presence:joining",function(i){return o(i.user_info)}),this}},{key:"whisper",value:function(o,i){return this.socket.emit("client event",{channel:this.name,event:"client-".concat(o),data:i}),this}},{key:"leaving",value:function(o){return this.on("presence:leaving",function(i){return o(i.user_info)}),this}}]),n}(yh),ki=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"subscribe",value:function(){}},{key:"unsubscribe",value:function(){}},{key:"listen",value:function(o,i){return this}},{key:"listenToAll",value:function(o){return this}},{key:"stopListening",value:function(o,i){return this}},{key:"subscribed",value:function(o){return this}},{key:"error",value:function(o){return this}},{key:"on",value:function(o,i){return this}}]),n}(Eu),Pd=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"whisper",value:function(o,i){return this}}]),n}(ki),cP=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"here",value:function(o){return this}},{key:"joining",value:function(o){return this}},{key:"whisper",value:function(o,i){return this}},{key:"leaving",value:function(o){return this}}]),n}(ki),xu=function(){function e(t){Ft(this,e),this._defaultOptions={auth:{headers:{}},authEndpoint:"/broadcasting/auth",userAuthentication:{endpoint:"/broadcasting/user-auth",headers:{}},broadcaster:"pusher",csrfToken:null,bearerToken:null,host:null,key:null,namespace:"App.Events"},this.setOptions(t),this.connect()}return Ht(e,[{key:"setOptions",value:function(n){this.options=yo(this._defaultOptions,n);var r=this.csrfToken();return r&&(this.options.auth.headers["X-CSRF-TOKEN"]=r,this.options.userAuthentication.headers["X-CSRF-TOKEN"]=r),r=this.options.bearerToken,r&&(this.options.auth.headers.Authorization="Bearer "+r,this.options.userAuthentication.headers.Authorization="Bearer "+r),n}},{key:"csrfToken",value:function(){var n;return typeof window<"u"&&window.Laravel&&window.Laravel.csrfToken?window.Laravel.csrfToken:this.options.csrfToken?this.options.csrfToken:typeof document<"u"&&typeof document.querySelector=="function"&&(n=document.querySelector('meta[name="csrf-token"]'))?n.getAttribute("content"):null}}]),e}(),Id=function(e){pn(n,e);var t=hn(n);function n(){var r;return Ft(this,n),r=t.apply(this,arguments),r.channels={},r}return Ht(n,[{key:"connect",value:function(){typeof this.options.client<"u"?this.pusher=this.options.client:this.options.Pusher?this.pusher=new this.options.Pusher(this.options.key,this.options):this.pusher=new Pusher(this.options.key,this.options)}},{key:"signin",value:function(){this.pusher.signin()}},{key:"listen",value:function(o,i,s){return this.channel(o).listen(i,s)}},{key:"channel",value:function(o){return this.channels[o]||(this.channels[o]=new Yi(this.pusher,o,this.options)),this.channels[o]}},{key:"privateChannel",value:function(o){return this.channels["private-"+o]||(this.channels["private-"+o]=new iP(this.pusher,"private-"+o,this.options)),this.channels["private-"+o]}},{key:"encryptedPrivateChannel",value:function(o){return this.channels["private-encrypted-"+o]||(this.channels["private-encrypted-"+o]=new sP(this.pusher,"private-encrypted-"+o,this.options)),this.channels["private-encrypted-"+o]}},{key:"presenceChannel",value:function(o){return this.channels["presence-"+o]||(this.channels["presence-"+o]=new lP(this.pusher,"presence-"+o,this.options)),this.channels["presence-"+o]}},{key:"leave",value:function(o){var i=this,s=[o,"private-"+o,"private-encrypted-"+o,"presence-"+o];s.forEach(function(l,u){i.leaveChannel(l)})}},{key:"leaveChannel",value:function(o){this.channels[o]&&(this.channels[o].unsubscribe(),delete this.channels[o])}},{key:"socketId",value:function(){return this.pusher.connection.socket_id}},{key:"disconnect",value:function(){this.pusher.disconnect()}}]),n}(xu),dP=function(e){pn(n,e);var t=hn(n);function n(){var r;return Ft(this,n),r=t.apply(this,arguments),r.channels={},r}return Ht(n,[{key:"connect",value:function(){var o=this,i=this.getSocketIO();return this.socket=i(this.options.host,this.options),this.socket.on("reconnect",function(){Object.values(o.channels).forEach(function(s){s.subscribe()})}),this.socket}},{key:"getSocketIO",value:function(){if(typeof this.options.client<"u")return this.options.client;if(typeof io<"u")return io;throw new Error("Socket.io client not found. Should be globally available or passed via options.client")}},{key:"listen",value:function(o,i,s){return this.channel(o).listen(i,s)}},{key:"channel",value:function(o){return this.channels[o]||(this.channels[o]=new gh(this.socket,o,this.options)),this.channels[o]}},{key:"privateChannel",value:function(o){return this.channels["private-"+o]||(this.channels["private-"+o]=new yh(this.socket,"private-"+o,this.options)),this.channels["private-"+o]}},{key:"presenceChannel",value:function(o){return this.channels["presence-"+o]||(this.channels["presence-"+o]=new uP(this.socket,"presence-"+o,this.options)),this.channels["presence-"+o]}},{key:"leave",value:function(o){var i=this,s=[o,"private-"+o,"presence-"+o];s.forEach(function(l){i.leaveChannel(l)})}},{key:"leaveChannel",value:function(o){this.channels[o]&&(this.channels[o].unsubscribe(),delete this.channels[o])}},{key:"socketId",value:function(){return this.socket.id}},{key:"disconnect",value:function(){this.socket.disconnect()}}]),n}(xu),fP=function(e){pn(n,e);var t=hn(n);function n(){var r;return Ft(this,n),r=t.apply(this,arguments),r.channels={},r}return Ht(n,[{key:"connect",value:function(){}},{key:"listen",value:function(o,i,s){return new ki}},{key:"channel",value:function(o){return new ki}},{key:"privateChannel",value:function(o){return new Pd}},{key:"encryptedPrivateChannel",value:function(o){return new Pd}},{key:"presenceChannel",value:function(o){return new cP}},{key:"leave",value:function(o){}},{key:"leaveChannel",value:function(o){}},{key:"socketId",value:function(){return"fake-socket-id"}},{key:"disconnect",value:function(){}}]),n}(xu),pP=function(){function e(t){Ft(this,e),this.options=t,this.connect(),this.options.withoutInterceptors||this.registerInterceptors()}return Ht(e,[{key:"channel",value:function(n){return this.connector.channel(n)}},{key:"connect",value:function(){this.options.broadcaster=="reverb"?this.connector=new Id(yo(yo({},this.options),{cluster:""})):this.options.broadcaster=="pusher"?this.connector=new Id(this.options):this.options.broadcaster=="socket.io"?this.connector=new dP(this.options):this.options.broadcaster=="null"?this.connector=new fP(this.options):typeof this.options.broadcaster=="function"&&(this.connector=new this.options.broadcaster(this.options))}},{key:"disconnect",value:function(){this.connector.disconnect()}},{key:"join",value:function(n){return this.connector.presenceChannel(n)}},{key:"leave",value:function(n){this.connector.leave(n)}},{key:"leaveChannel",value:function(n){this.connector.leaveChannel(n)}},{key:"leaveAllChannels",value:function(){for(var n in this.connector.channels)this.leaveChannel(n)}},{key:"listen",value:function(n,r,o){return this.connector.listen(n,r,o)}},{key:"private",value:function(n){return this.connector.privateChannel(n)}},{key:"encryptedPrivate",value:function(n){return this.connector.encryptedPrivateChannel(n)}},{key:"socketId",value:function(){return this.connector.socketId()}},{key:"registerInterceptors",value:function(){typeof Vue=="function"&&Vue.http&&this.registerVueRequestInterceptor(),typeof axios=="function"&&this.registerAxiosRequestInterceptor(),typeof jQuery=="function"&&this.registerjQueryAjaxSetup(),(typeof Turbo>"u"?"undefined":Tl(Turbo))==="object"&&this.registerTurboRequestInterceptor()}},{key:"registerVueRequestInterceptor",value:function(){var n=this;Vue.http.interceptors.push(function(r,o){n.socketId()&&r.headers.set("X-Socket-ID",n.socketId()),o()})}},{key:"registerAxiosRequestInterceptor",value:function(){var n=this;axios.interceptors.request.use(function(r){return n.socketId()&&(r.headers["X-Socket-Id"]=n.socketId()),r})}},{key:"registerjQueryAjaxSetup",value:function(){var n=this;typeof jQuery.ajax<"u"&&jQuery.ajaxPrefilter(function(r,o,i){n.socketId()&&i.setRequestHeader("X-Socket-Id",n.socketId())})}},{key:"registerTurboRequestInterceptor",value:function(){var n=this;document.addEventListener("turbo:before-fetch-request",function(r){r.detail.fetchOptions.headers["X-Socket-Id"]=n.socketId()})}}]),e}(),bh={exports:{}};/*!
74
+ read-only:cursor-default read-only:border-zinc-300 read-only:bg-zinc-100`;function tE(e,t,n,r,o,i,s){if(Hi(e))return US(e,r);const l=((s==null?void 0:s.class)??"").includes("text-center"),u=_i("leading",e,n,i),c=_i("trailing",e,n,i);return{"border-zinc-300":!r,"border-zinc-100":t,"px-10":l&&(u||c),"pl-10 pr-5":u&&!l,"pr-10 pl-5":c&&!l,"px-5":!u&&!c,"!pl-0":!u&&go(e),[eE]:!0,"py-3":!go(e),"h-12":e!=="textarea","h-24":e==="textarea","border-error text-error placeholder-error focus:ring-error focus:border-error":r,"text-center bg-transparent text-lg uppercase":wl(e),"border bg-white focus:ring-1 focus:ring-zinc-300 hover:bg-zinc-100":!wl(e),"border ring-1 ring-zinc-300":o}}const nE=["type"],rE=["value"],aE=a.defineComponent({__name:"Input",props:{modelValue:{},type:{}},emits:["update:modelValue","open"],setup(e,{emit:t}){const n=e,r=a.computed({get:()=>n.modelValue,set:s=>t("update:modelValue",s)}),o=a.computed(()=>QT(n.type));function i(s){r.value=s.target.value}return(s,l)=>o.value==="input"?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,"onUpdate:modelValue":l[0]||(l[0]=u=>r.value=u),type:s.type,"data-test-input":""},null,8,nE)),[[a.vModelDynamic,r.value]]):o.value==="textarea"?(a.openBlock(),a.createElementBlock("textarea",{key:1,value:s.modelValue,"data-test-textarea":"",onInput:i},null,40,rE)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.value),{key:2,modelValue:r.value,"onUpdate:modelValue":l[1]||(l[1]=u=>r.value=u),onOpen:l[2]||(l[2]=()=>t("open"))},{default:a.withCtx(()=>[a.renderSlot(s.$slots,"default",{},void 0,!0)]),_:3},40,["modelValue"]))}});const oE=Jn(aE,[["__scopeId","data-v-2f91c266"]]),lh=a.defineComponent({inheritAttrs:!1,__name:"AppInput",props:a.mergeDefaults({type:{},modelValue:{},readonly:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean},required:{type:Boolean},hasError:{type:Boolean},errorMessage:{},label:{},wrapperClasses:{},errorWrapperClasses:{},inputWrapperClasses:{},iconClasses:{},labelClasses:{}},JT),emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=`input-${mw()}`,i=a.ref(!1),s=a.computed({get:()=>n.modelValue,set:b=>t("update:modelValue",b)}),l=a.computed(()=>go(n.type)),u=a.computed(()=>Hi(n.type)),c=a.computed(()=>yi(n.type)),f=a.computed(()=>{if(l.value){const b=n.type;return RS[b]}if(c.value)return t_}),p=a.computed(()=>{const b=n.type;return l.value?$S(b,o):void 0}),h=a.computed(()=>n.type==="license"?"text":n.type),m=a.computed(()=>({id:o,type:h.value,required:n.required,multiple:n.multiple,disabled:n.disabled,readonly:n.readonly})),y=a.computed(()=>n.type==="license"?a.h(ch,{licensePlateClasses:"!p-0"}):a.h("div")),k=a.computed(()=>{const b=n.inputWrapperClasses,w=n.type==="license"?"items-stretch":"relative w-full items-center justify-center";return`${b} ${w}`});return(b,w)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(b.wrapperClasses)},[(b.label||b.$slots.label)&&!u.value?(a.openBlock(),a.createBlock(a.unref(Cu),{key:0,type:b.type,"has-error":b.hasError,disabled:b.disabled,for:l.value?`dp-input-${o}`:o,class:a.normalizeClass(b.labelClasses)},{default:a.withCtx(()=>[a.renderSlot(b.$slots,"label",{},()=>[a.createTextVNode(a.toDisplayString(b.label),1)])]),_:3},8,["type","has-error","disabled","for","class"])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(y.value),{class:a.normalizeClass([k.value,"flex"])},{default:a.withCtx(()=>[a.unref(_i)("leading",b.type,b.loading,b.$slots)?(a.openBlock(),a.createBlock(Kc,{key:0,loading:b.loading,class:a.normalizeClass([b.iconClasses,"left-3 top-3"]),"data-test-leading-icon":""},{default:a.withCtx(()=>[a.renderSlot(b.$slots,"leadingIcon")]),_:3},8,["loading","class"])):a.createCommentVNode("",!0),a.createVNode(oE,a.mergeProps({modelValue:s.value,"onUpdate:modelValue":w[0]||(w[0]=T=>s.value=T)},{...m.value,...p.value,...b.$attrs},{class:a.unref(tE)(b.type,b.disabled,b.loading,b.hasError,i.value,b.$slots,b.$attrs),onOpen:w[1]||(w[1]=()=>i.value=!0),onClosed:w[2]||(w[2]=()=>i.value=!1)}),{default:a.withCtx(()=>[a.renderSlot(b.$slots,"default")]),_:3},16,["modelValue","class"]),b.type==="checkbox"?(a.openBlock(),a.createBlock(a.unref(xp),{key:1,class:"pointer-events-none -ml-4 h-4 w-4 -translate-x-0.5 text-white"})):a.createCommentVNode("",!0),a.unref(ZT)(b.type,b.$slots,b.label)?(a.openBlock(),a.createElementBlock("label",{key:2,for:o,class:a.normalizeClass([{"!text-error":b.hasError},"cursor-pointer select-none pl-2 text-base peer-checked:text-primary peer-disabled:cursor-not-allowed peer-disabled:text-zinc-300"]),"data-test-choice-label":""},[a.renderSlot(b.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(b.label),1)])],2)):a.createCommentVNode("",!0),a.unref(_i)("trailing",b.type,b.loading,b.$slots)?(a.openBlock(),a.createBlock(Kc,{key:3,loading:b.loading,class:a.normalizeClass([b.iconClasses,"right-3 top-3"]),"data-test-trailing-icon":""},{default:a.withCtx(()=>[a.renderSlot(b.$slots,"trailingIcon",{},()=>[f.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(f.value),{key:0})):a.createCommentVNode("",!0)])]),_:3},8,["loading","class"])):a.createCommentVNode("",!0)]),_:3},8,["class"])),b.hasError&&b.errorMessage?(a.openBlock(),a.createElementBlock("p",{key:1,class:a.normalizeClass([b.errorWrapperClasses,"order-2 mt-1.5 flex items-center gap-x-1 text-xs italic text-error"]),"data-test-error-message":""},a.toDisplayString(b.errorMessage),3)):a.createCommentVNode("",!0)],2))}});function On(e){return[null,void 0].indexOf(e)!==-1}function iE(e,t,n){const{object:r,valueProp:o,mode:i}=a.toRefs(e),s=a.getCurrentInstance().proxy,l=n.iv,u=(p,h=!0)=>{l.value=f(p);const m=c(p);t.emit("change",m,s),h&&(t.emit("input",m),t.emit("update:modelValue",m))},c=p=>r.value||On(p)?p:Array.isArray(p)?p.map(h=>h[o.value]):p[o.value],f=p=>On(p)?i.value==="single"?{}:[]:p;return{update:u}}function sE(e,t){const{value:n,modelValue:r,mode:o,valueProp:i}=a.toRefs(e),s=a.ref(o.value!=="single"?[]:{}),l=r&&r.value!==void 0?r:n,u=a.computed(()=>o.value==="single"?s.value[i.value]:s.value.map(f=>f[i.value])),c=a.computed(()=>o.value!=="single"?s.value.map(f=>f[i.value]).join(","):s.value[i.value]);return{iv:s,internalValue:s,ev:l,externalValue:l,textValue:c,plainValue:u}}function lE(e,t,n){const{regex:r}=a.toRefs(e),o=a.getCurrentInstance().proxy,i=n.isOpen,s=n.open,l=a.ref(null),u=a.ref(null),c=()=>{l.value=""},f=m=>{l.value=m.target.value},p=m=>{if(r&&r.value){let y=r.value;typeof y=="string"&&(y=new RegExp(y)),m.key.match(y)||m.preventDefault()}},h=m=>{if(r&&r.value){let k=(m.clipboardData||window.clipboardData).getData("Text"),b=r.value;typeof b=="string"&&(b=new RegExp(b)),k.split("").every(w=>!!w.match(b))||m.preventDefault()}t.emit("paste",m,o)};return a.watch(l,m=>{!i.value&&m&&s(),t.emit("search-change",m,o)}),{search:l,input:u,clearSearch:c,handleSearchInput:f,handleKeypress:p,handlePaste:h}}function uE(e,t,n){const{groupSelect:r,mode:o,groups:i,disabledProp:s}=a.toRefs(e),l=a.ref(null),u=f=>{f===void 0||f!==null&&f[s.value]||i.value&&f&&f.group&&(o.value==="single"||!r.value)||(l.value=f)};return{pointer:l,setPointer:u,clearPointer:()=>{u(null)}}}function qs(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function cE(e){return Object.prototype.toString.call(e)==="[object Object]"}function dE(e,t){const n=t.slice().sort();return e.length===t.length&&e.slice().sort().every(function(r,o){return r===n[o]})}function fE(e,t,n){const{options:r,mode:o,trackBy:i,limit:s,hideSelected:l,createTag:u,createOption:c,label:f,appendNewTag:p,appendNewOption:h,multipleLabel:m,object:y,loading:k,delay:b,resolveOnLoad:w,minChars:T,filterResults:O,clearOnSearch:_,clearOnSelect:B,valueProp:C,allowAbsent:I,groupLabel:F,canDeselect:q,max:W,strict:M,closeOnSelect:D,closeOnDeselect:$,groups:Y,reverse:X,infinite:K,groupOptions:j,groupHideEmpty:U,groupSelect:S,onCreate:H,disabledProp:Z,searchStart:Q,searchFilter:V}=a.toRefs(e),E=a.getCurrentInstance().proxy,P=n.iv,R=n.ev,G=n.search,ie=n.clearSearch,oe=n.update,Ie=n.pointer,Ee=n.clearPointer,fe=n.focus,Be=n.deactivate,$e=n.close,ze=n.localize,Ge=a.ref([]),Ke=a.ref([]),ve=a.ref(!1),Qe=a.ref(null),Te=a.ref(K.value&&s.value===-1?10:s.value),se=a.computed(()=>u.value||c.value||!1),ce=a.computed(()=>p.value!==void 0?p.value:h.value!==void 0?h.value:!0),me=a.computed(()=>{if(Y.value){let z=Mt.value||[],de=[];return z.forEach(Ve=>{it(Ve[j.value]).forEach(gt=>{de.push(Object.assign({},gt,Ve[Z.value]?{[Z.value]:!0}:{}))})}),de}else{let z=it(Ke.value||[]);return Ge.value.length&&(z=z.concat(Ge.value)),z}}),Pt=a.computed(()=>{let z=me.value;return X.value&&(z=z.reverse()),L.value.length&&(z=L.value.concat(z)),vt(z)}),xe=a.computed(()=>{let z=Pt.value;return Te.value>0&&(z=z.slice(0,Te.value)),z}),Mt=a.computed(()=>{if(!Y.value)return[];let z=[],de=Ke.value||[];return Ge.value.length&&z.push({[F.value]:" ",[j.value]:[...Ge.value],__CREATE__:!0}),z.concat(de)}),Ut=a.computed(()=>{let z=[...Mt.value].map(de=>({...de}));return L.value.length&&(z[0]&&z[0].__CREATE__?z[0][j.value]=[...L.value,...z[0][j.value]]:z=[{[F.value]:" ",[j.value]:[...L.value],__CREATE__:!0}].concat(z)),z}),Rt=a.computed(()=>{if(!Y.value)return[];let z=Ut.value;return be((z||[]).map((de,Ve)=>{const gt=it(de[j.value]);return{...de,index:Ve,group:!0,[j.value]:vt(gt,!1).map(Dr=>Object.assign({},Dr,de[Z.value]?{[Z.value]:!0}:{})),__VISIBLE__:vt(gt).map(Dr=>Object.assign({},Dr,de[Z.value]?{[Z.value]:!0}:{}))}}))}),zt=a.computed(()=>{switch(o.value){case"single":return!On(P.value[C.value]);case"multiple":case"tags":return!On(P.value)&&P.value.length>0}}),kn=a.computed(()=>m!==void 0&&m.value!==void 0?m.value(P.value,E):P.value&&P.value.length>1?`${P.value.length} options selected`:"1 option selected"),Sn=a.computed(()=>!me.value.length&&!ve.value&&!L.value.length),Et=a.computed(()=>me.value.length>0&&xe.value.length==0&&(G.value&&Y.value||!Y.value)),L=a.computed(()=>se.value===!1||!G.value?[]:Qr(G.value)!==-1?[]:[{[C.value]:G.value,[N.value]:G.value,[f.value]:G.value,__CREATE__:!0}]),N=a.computed(()=>i.value||f.value),ee=a.computed(()=>{switch(o.value){case"single":return null;case"multiple":case"tags":return[]}}),re=a.computed(()=>k.value||ve.value),ge=z=>{switch(typeof z!="object"&&(z=rn(z)),o.value){case"single":oe(z);break;case"multiple":case"tags":oe(P.value.concat(z));break}t.emit("select",qe(z),z,E)},we=z=>{switch(typeof z!="object"&&(z=rn(z)),o.value){case"single":Le();break;case"tags":case"multiple":oe(Array.isArray(z)?P.value.filter(de=>z.map(Ve=>Ve[C.value]).indexOf(de[C.value])===-1):P.value.filter(de=>de[C.value]!=z[C.value]));break}t.emit("deselect",qe(z),z,E)},qe=z=>y.value?z:z[C.value],J=z=>{we(z)},le=(z,de)=>{if(de.button!==0){de.preventDefault();return}J(z)},Le=()=>{t.emit("clear",E),oe(ee.value)},De=z=>{if(z.group!==void 0)return o.value==="single"?!1:Fa(z[j.value])&&z[j.value].length;switch(o.value){case"single":return!On(P.value)&&P.value[C.value]==z[C.value];case"tags":case"multiple":return!On(P.value)&&P.value.map(de=>de[C.value]).indexOf(z[C.value])!==-1}},st=z=>z[Z.value]===!0,pe=()=>W===void 0||W.value===-1||!zt.value&&W.value>0?!1:P.value.length>=W.value,mt=z=>{if(!st(z)){if(H&&H.value&&!De(z)&&z.__CREATE__&&(z={...z},delete z.__CREATE__,z=H.value(z,E),z instanceof Promise)){ve.value=!0,z.then(de=>{ve.value=!1,Me(de)});return}Me(z)}},Me=z=>{switch(z.__CREATE__&&(z={...z},delete z.__CREATE__),o.value){case"single":if(z&&De(z)){q.value&&we(z),$.value&&(Ee(),$e());return}z&&At(z),B.value&&ie(),D.value&&(Ee(),$e()),z&&ge(z);break;case"multiple":if(z&&De(z)){we(z),$.value&&(Ee(),$e());return}if(pe()){t.emit("max",E);return}z&&(At(z),ge(z)),B.value&&ie(),l.value&&Ee(),D.value&&$e();break;case"tags":if(z&&De(z)){we(z),$.value&&(Ee(),$e());return}if(pe()){t.emit("max",E);return}z&&At(z),B.value&&ie(),z&&ge(z),l.value&&Ee(),D.value&&$e();break}D.value||fe()},ln=z=>{if(!(st(z)||o.value==="single"||!S.value)){switch(o.value){case"multiple":case"tags":Zn(z[j.value])?we(z[j.value]):ge(z[j.value].filter(de=>P.value.map(Ve=>Ve[C.value]).indexOf(de[C.value])===-1).filter(de=>!de[Z.value]).filter((de,Ve)=>P.value.length+1+Ve<=W.value||W.value===-1));break}D.value&&Be()}},At=z=>{rn(z[C.value])===void 0&&se.value&&(t.emit("tag",z[C.value],E),t.emit("option",z[C.value],E),t.emit("create",z[C.value],E),ce.value&&jt(z),ie())},Va=()=>{o.value!=="single"&&ge(xe.value.filter(z=>!z.disabled&&!De(z)))},Zn=z=>z.find(de=>!De(de)&&!de[Z.value])===void 0,Fa=z=>z.find(de=>!De(de))===void 0,rn=z=>me.value[me.value.map(de=>String(de[C.value])).indexOf(String(z))],Qr=(z,de=!0)=>me.value.map(Ve=>parseInt(Ve[N.value])==Ve[N.value]?parseInt(Ve[N.value]):Ve[N.value]).indexOf(parseInt(z)==z?parseInt(z):z),Se=z=>["tags","multiple"].indexOf(o.value)!==-1&&l.value&&De(z),jt=z=>{Ge.value.push(z)},be=z=>U.value?z.filter(de=>G.value?de.__VISIBLE__.length:de[j.value].length):z.filter(de=>G.value?de.__VISIBLE__.length:!0),vt=(z,de=!0)=>{let Ve=z;if(G.value&&O.value){let gt=V.value;gt||(gt=(Dr,Bo)=>{let Mo=qs(ze(Dr[N.value]),M.value);return Q.value?Mo.startsWith(qs(G.value,M.value)):Mo.indexOf(qs(G.value,M.value))!==-1}),Ve=Ve.filter(gt)}return l.value&&de&&(Ve=Ve.filter(gt=>!Se(gt))),Ve},it=z=>{let de=z;return cE(de)&&(de=Object.keys(de).map(Ve=>{let gt=de[Ve];return{[C.value]:Ve,[N.value]:gt,[f.value]:gt}})),de=de.map(Ve=>typeof Ve=="object"?Ve:{[C.value]:Ve,[N.value]:Ve,[f.value]:Ve}),de},er=()=>{On(R.value)||(P.value=Zr(R.value))},Gt=z=>(ve.value=!0,new Promise((de,Ve)=>{r.value(G.value,E).then(gt=>{Ke.value=gt||[],typeof z=="function"&&z(gt),ve.value=!1}).catch(gt=>{console.error(gt),Ke.value=[],ve.value=!1}).finally(()=>{de()})})),Ha=()=>{if(zt.value)if(o.value==="single"){let z=rn(P.value[C.value]);if(z!==void 0){let de=z[f.value];P.value[f.value]=de,y.value&&(R.value[f.value]=de)}}else P.value.forEach((z,de)=>{let Ve=rn(P.value[de][C.value]);if(Ve!==void 0){let gt=Ve[f.value];P.value[de][f.value]=gt,y.value&&(R.value[de][f.value]=gt)}})},_s=z=>{Gt(z)},Zr=z=>On(z)?o.value==="single"?{}:[]:y.value?z:o.value==="single"?rn(z)||(I.value?{[f.value]:z,[C.value]:z,[N.value]:z}:{}):z.filter(de=>!!rn(de)||I.value).map(de=>rn(de)||{[f.value]:de,[C.value]:de,[N.value]:de}),ea=()=>{Qe.value=a.watch(G,z=>{z.length<T.value||!z&&T.value!==0||(ve.value=!0,_.value&&(Ke.value=[]),setTimeout(()=>{z==G.value&&r.value(G.value,E).then(de=>{(z==G.value||!G.value)&&(Ke.value=de,Ie.value=xe.value.filter(Ve=>Ve[Z.value]!==!0)[0]||null,ve.value=!1)}).catch(de=>{console.error(de)})},b.value))},{flush:"sync"})};if(o.value!=="single"&&!On(R.value)&&!Array.isArray(R.value))throw new Error(`v-model must be an array when using "${o.value}" mode`);return r&&typeof r.value=="function"?w.value?Gt(er):y.value==!0&&er():(Ke.value=r.value,er()),b.value>-1&&ea(),a.watch(b,(z,de)=>{Qe.value&&Qe.value(),z>=0&&ea()}),a.watch(R,z=>{if(On(z)){oe(Zr(z),!1);return}switch(o.value){case"single":(y.value?z[C.value]!=P.value[C.value]:z!=P.value[C.value])&&oe(Zr(z),!1);break;case"multiple":case"tags":dE(y.value?z.map(de=>de[C.value]):z,P.value.map(de=>de[C.value]))||oe(Zr(z),!1);break}},{deep:!0}),a.watch(r,(z,de)=>{typeof e.options=="function"?w.value&&(!de||z&&z.toString()!==de.toString())&&Gt():(Ke.value=e.options,Object.keys(P.value).length||er(),Ha())}),a.watch(f,Ha),{pfo:Pt,fo:xe,filteredOptions:xe,hasSelected:zt,multipleLabelText:kn,eo:me,extendedOptions:me,eg:Mt,extendedGroups:Mt,fg:Rt,filteredGroups:Rt,noOptions:Sn,noResults:Et,resolving:ve,busy:re,offset:Te,select:ge,deselect:we,remove:J,selectAll:Va,clear:Le,isSelected:De,isDisabled:st,isMax:pe,getOption:rn,handleOptionClick:mt,handleGroupClick:ln,handleTagRemove:le,refreshOptions:_s,resolveOptions:Gt,refreshLabels:Ha}}function pE(e,t,n){const{valueProp:r,showOptions:o,searchable:i,groupLabel:s,groups:l,mode:u,groupSelect:c,disabledProp:f,groupOptions:p}=a.toRefs(e),h=n.fo,m=n.fg,y=n.handleOptionClick,k=n.handleGroupClick,b=n.search,w=n.pointer,T=n.setPointer,O=n.clearPointer,_=n.multiselect,B=n.isOpen,C=a.computed(()=>h.value.filter(R=>!R[f.value])),I=a.computed(()=>m.value.filter(R=>!R[f.value])),F=a.computed(()=>u.value!=="single"&&c.value),q=a.computed(()=>w.value&&w.value.group),W=a.computed(()=>E(w.value)),M=a.computed(()=>{const R=q.value?w.value:E(w.value),G=I.value.map(oe=>oe[s.value]).indexOf(R[s.value]);let ie=I.value[G-1];return ie===void 0&&(ie=$.value),ie}),D=a.computed(()=>{let R=I.value.map(G=>G.label).indexOf(q.value?w.value[s.value]:E(w.value)[s.value])+1;return I.value.length<=R&&(R=0),I.value[R]}),$=a.computed(()=>[...I.value].slice(-1)[0]),Y=a.computed(()=>w.value.__VISIBLE__.filter(R=>!R[f.value])[0]),X=a.computed(()=>{const R=W.value.__VISIBLE__.filter(G=>!G[f.value]);return R[R.map(G=>G[r.value]).indexOf(w.value[r.value])-1]}),K=a.computed(()=>{const R=E(w.value).__VISIBLE__.filter(G=>!G[f.value]);return R[R.map(G=>G[r.value]).indexOf(w.value[r.value])+1]}),j=a.computed(()=>[...M.value.__VISIBLE__.filter(R=>!R[f.value])].slice(-1)[0]),U=a.computed(()=>[...$.value.__VISIBLE__.filter(R=>!R[f.value])].slice(-1)[0]),S=R=>w.value&&(!R.group&&w.value[r.value]===R[r.value]||R.group!==void 0&&w.value[s.value]===R[s.value])?!0:void 0,H=()=>{T(C.value[0]||null)},Z=()=>{!w.value||w.value[f.value]===!0||(q.value?k(w.value):y(w.value))},Q=()=>{if(w.value===null)T((l.value&&F.value?I.value[0].__CREATE__?C.value[0]:I.value[0]:C.value[0])||null);else if(l.value&&F.value){let R=q.value?Y.value:K.value;R===void 0&&(R=D.value,R.__CREATE__&&(R=R[p.value][0])),T(R||null)}else{let R=C.value.map(G=>G[r.value]).indexOf(w.value[r.value])+1;C.value.length<=R&&(R=0),T(C.value[R]||null)}a.nextTick(()=>{P()})},V=()=>{if(w.value===null){let R=C.value[C.value.length-1];l.value&&F.value&&(R=U.value,R===void 0&&(R=$.value)),T(R||null)}else if(l.value&&F.value){let R=q.value?j.value:X.value;R===void 0&&(R=q.value?M.value:W.value,R.__CREATE__&&(R=j.value,R===void 0&&(R=M.value))),T(R||null)}else{let R=C.value.map(G=>G[r.value]).indexOf(w.value[r.value])-1;R<0&&(R=C.value.length-1),T(C.value[R]||null)}a.nextTick(()=>{P()})},E=R=>I.value.find(G=>G.__VISIBLE__.map(ie=>ie[r.value]).indexOf(R[r.value])!==-1),P=()=>{let R=_.value.querySelector("[data-pointed]");if(!R)return;let G=R.parentElement.parentElement;l.value&&(G=q.value?R.parentElement.parentElement.parentElement:R.parentElement.parentElement.parentElement.parentElement),R.offsetTop+R.offsetHeight>G.clientHeight+G.scrollTop&&(G.scrollTop=R.offsetTop+R.offsetHeight-G.clientHeight),R.offsetTop<G.scrollTop&&(G.scrollTop=R.offsetTop)};return a.watch(b,R=>{i.value&&(R.length&&o.value?H():O())}),a.watch(B,R=>{if(R){let G=_.value.querySelectorAll("[data-selected]")[0];if(!G)return;let ie=G.parentElement.parentElement;a.nextTick(()=>{ie.scrollTop>0||(ie.scrollTop=G.offsetTop)})}}),{pointer:w,canPointGroups:F,isPointed:S,setPointerFirst:H,selectPointer:Z,forwardPointer:Q,backwardPointer:V}}function hE(e,t,n){const{disabled:r}=a.toRefs(e),o=a.getCurrentInstance().proxy,i=a.ref(!1);return{isOpen:i,open:()=>{i.value||r.value||(i.value=!0,t.emit("open",o))},close:()=>{i.value&&(i.value=!1,t.emit("close",o))}}}function mE(e,t,n){const{searchable:r,disabled:o,clearOnBlur:i}=a.toRefs(e),s=n.input,l=n.open,u=n.close,c=n.clearSearch,f=n.isOpen,p=a.ref(null),h=a.ref(null),m=a.ref(null),y=a.ref(!1),k=a.ref(!1),b=a.computed(()=>r.value||o.value?-1:0),w=()=>{r.value&&s.value.blur(),h.value.blur()},T=()=>{r.value&&!o.value&&s.value.focus()},O=(q=!0)=>{o.value||(y.value=!0,q&&l())},_=()=>{y.value=!1,setTimeout(()=>{y.value||(u(),i.value&&c())},1)};return{multiselect:p,wrapper:h,tags:m,tabindex:b,isActive:y,mouseClicked:k,blur:w,focus:T,activate:O,deactivate:_,handleFocusIn:q=>{q.target.closest("[data-tags]")&&q.target.nodeName!=="INPUT"||q.target.closest("[data-clear]")||O(k.value)},handleFocusOut:()=>{_()},handleCaretClick:()=>{_(),w()},handleMousedown:q=>{k.value=!0,f.value&&(q.target.isEqualNode(h.value)||q.target.isEqualNode(m.value))?setTimeout(()=>{_()},0):document.activeElement.isEqualNode(h.value)&&!f.value&&O(),setTimeout(()=>{k.value=!1},0)}}}function vE(e,t,n){const{mode:r,addTagOn:o,openDirection:i,searchable:s,showOptions:l,valueProp:u,groups:c,addOptionOn:f,createTag:p,createOption:h,reverse:m}=a.toRefs(e),y=a.getCurrentInstance().proxy,k=n.iv,b=n.update,w=n.search,T=n.setPointer,O=n.selectPointer,_=n.backwardPointer,B=n.forwardPointer,C=n.multiselect,I=n.wrapper,F=n.tags,q=n.isOpen,W=n.open,M=n.blur,D=n.fo,$=a.computed(()=>p.value||h.value||!1),Y=a.computed(()=>o.value!==void 0?o.value:f.value!==void 0?f.value:["enter"]),X=()=>{r.value==="tags"&&!l.value&&$.value&&s.value&&!c.value&&T(D.value[D.value.map(S=>S[u.value]).indexOf(w.value)])},K=S=>{let H=S.length-1;for(;H>=0&&(S[H].remove===!1||S[H].disabled);)H--;return H<0||S.splice(H,1),S};return{handleKeydown:S=>{t.emit("keydown",S,y);let H,Z;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(S.key)!==-1&&r.value==="tags"&&(H=[...C.value.querySelectorAll("[data-tags] > *")].filter(Q=>Q!==F.value),Z=H.findIndex(Q=>Q===document.activeElement)),S.key){case"Backspace":if(r.value==="single"||s.value&&[null,""].indexOf(w.value)===-1||k.value.length===0)return;b(K([...k.value]));break;case"Enter":if(S.preventDefault(),S.keyCode===229)return;if(Z!==-1&&Z!==void 0){b([...k.value].filter((Q,V)=>V!==Z)),Z===H.length-1&&(H.length-1?H[H.length-2].focus():s.value?F.value.querySelector("input").focus():I.value.focus());return}if(Y.value.indexOf("enter")===-1&&$.value)return;X(),O();break;case" ":if(!$.value&&!s.value){S.preventDefault(),X(),O();return}if(!$.value)return!1;if(Y.value.indexOf("space")===-1&&$.value)return;S.preventDefault(),X(),O();break;case"Tab":case";":case",":if(Y.value.indexOf(S.key.toLowerCase())===-1||!$.value)return;X(),O(),S.preventDefault();break;case"Escape":M();break;case"ArrowUp":if(S.preventDefault(),!l.value)return;q.value||W(),_();break;case"ArrowDown":if(S.preventDefault(),!l.value)return;q.value||W(),B();break;case"ArrowLeft":if(s.value&&F.value&&F.value.querySelector("input").selectionStart||S.shiftKey||r.value!=="tags"||!k.value||!k.value.length)return;S.preventDefault(),Z===-1?H[H.length-1].focus():Z>0&&H[Z-1].focus();break;case"ArrowRight":if(Z===-1||S.shiftKey||r.value!=="tags"||!k.value||!k.value.length)return;S.preventDefault(),H.length>Z+1?H[Z+1].focus():s.value?F.value.querySelector("input").focus():s.value||I.value.focus();break}},handleKeyup:S=>{t.emit("keyup",S,y)},preparePointer:X}}function gE(e,t,n){const{classes:r,disabled:o,openDirection:i,showOptions:s}=a.toRefs(e),l=n.isOpen,u=n.isPointed,c=n.isSelected,f=n.isDisabled,p=n.isActive,h=n.canPointGroups,m=n.resolving,y=n.fo,k=a.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...r.value})),b=a.computed(()=>!!(l.value&&s.value&&(!m.value||m.value&&y.value.length)));return{classList:a.computed(()=>{const T=k.value;return{container:[T.container].concat(o.value?T.containerDisabled:[]).concat(b.value&&i.value==="top"?T.containerOpenTop:[]).concat(b.value&&i.value!=="top"?T.containerOpen:[]).concat(p.value?T.containerActive:[]),wrapper:T.wrapper,spacer:T.spacer,singleLabel:T.singleLabel,singleLabelText:T.singleLabelText,multipleLabel:T.multipleLabel,search:T.search,tags:T.tags,tag:[T.tag].concat(o.value?T.tagDisabled:[]),tagDisabled:T.tagDisabled,tagRemove:T.tagRemove,tagRemoveIcon:T.tagRemoveIcon,tagsSearchWrapper:T.tagsSearchWrapper,tagsSearch:T.tagsSearch,tagsSearchCopy:T.tagsSearchCopy,placeholder:T.placeholder,caret:[T.caret].concat(l.value?T.caretOpen:[]),clear:T.clear,clearIcon:T.clearIcon,spinner:T.spinner,inifinite:T.inifinite,inifiniteSpinner:T.inifiniteSpinner,dropdown:[T.dropdown].concat(i.value==="top"?T.dropdownTop:[]).concat(!l.value||!s.value||!b.value?T.dropdownHidden:[]),options:[T.options].concat(i.value==="top"?T.optionsTop:[]),group:T.group,groupLabel:O=>{let _=[T.groupLabel];return u(O)?_.push(c(O)?T.groupLabelSelectedPointed:T.groupLabelPointed):c(O)&&h.value?_.push(f(O)?T.groupLabelSelectedDisabled:T.groupLabelSelected):f(O)&&_.push(T.groupLabelDisabled),h.value&&_.push(T.groupLabelPointable),_},groupOptions:T.groupOptions,option:(O,_)=>{let B=[T.option];return u(O)?B.push(c(O)?T.optionSelectedPointed:T.optionPointed):c(O)?B.push(f(O)?T.optionSelectedDisabled:T.optionSelected):(f(O)||_&&f(_))&&B.push(T.optionDisabled),B},noOptions:T.noOptions,noResults:T.noResults,assist:T.assist,fakeInput:T.fakeInput}}),showDropdown:b}}function yE(e,t,n){const{limit:r,infinite:o}=a.toRefs(e),i=n.isOpen,s=n.offset,l=n.search,u=n.pfo,c=n.eo,f=a.ref(null),p=a.ref(null),h=a.computed(()=>s.value<u.value.length),m=k=>{const{isIntersecting:b,target:w}=k[0];if(b){const T=w.offsetParent,O=T.scrollTop;s.value+=r.value==-1?10:r.value,a.nextTick(()=>{T.scrollTop=O})}},y=()=>{i.value&&s.value<u.value.length?f.value.observe(p.value):!i.value&&f.value&&f.value.disconnect()};return a.watch(i,()=>{o.value&&y()}),a.watch(l,()=>{o.value&&(s.value=r.value,y())},{flush:"post"}),a.watch(c,()=>{o.value&&y()},{immediate:!1,flush:"post"}),a.onMounted(()=>{window&&window.IntersectionObserver&&(f.value=new IntersectionObserver(m))}),{hasMore:h,infiniteLoader:p}}function bE(e,t,n){const{placeholder:r,id:o,valueProp:i,label:s,mode:l,groupLabel:u,aria:c,searchable:f}=a.toRefs(e),p=n.pointer,h=n.iv,m=n.hasSelected,y=n.multipleLabelText,k=a.ref(null),b=a.computed(()=>{let D=[];return o&&o.value&&D.push(o.value),D.push("assist"),D.join("-")}),w=a.computed(()=>{let D=[];return o&&o.value&&D.push(o.value),D.push("multiselect-options"),D.join("-")}),T=a.computed(()=>{let D=[];if(o&&o.value&&D.push(o.value),p.value)return D.push(p.value.group?"multiselect-group":"multiselect-option"),D.push(p.value.group?p.value.index:p.value[i.value]),D.join("-")}),O=a.computed(()=>r.value),_=a.computed(()=>l.value!=="single"),B=a.computed(()=>{let D="";return l.value==="single"&&m.value&&(D+=h.value[s.value]),l.value==="multiple"&&m.value&&(D+=y.value),l.value==="tags"&&m.value&&(D+=h.value.map($=>$[s.value]).join(", ")),D}),C=a.computed(()=>{let D={...c.value};return f.value&&(D["aria-labelledby"]=D["aria-labelledby"]?`${b.value} ${D["aria-labelledby"]}`:b.value,B.value&&D["aria-label"]&&(D["aria-label"]=`${B.value}, ${D["aria-label"]}`)),D}),I=D=>{let $=[];return o&&o.value&&$.push(o.value),$.push("multiselect-option"),$.push(D[i.value]),$.join("-")},F=D=>{let $=[];return o&&o.value&&$.push(o.value),$.push("multiselect-group"),$.push(D.index),$.join("-")},q=D=>{let $=[];return $.push(D),$.join(" ")},W=D=>{let $=[];return $.push(D),$.join(" ")},M=D=>`${D} ❎`;return a.onMounted(()=>{if(o&&o.value&&document&&document.querySelector){let D=document.querySelector(`[for="${o.value}"]`);k.value=D?D.innerText:null}}),{arias:C,ariaLabel:B,ariaAssist:b,ariaControls:w,ariaPlaceholder:O,ariaMultiselectable:_,ariaActiveDescendant:T,ariaOptionId:I,ariaOptionLabel:q,ariaGroupId:F,ariaGroupLabel:W,ariaTagLabel:M}}function _E(e,t,n){const{locale:r,fallbackLocale:o}=a.toRefs(e);return{localize:s=>!s||typeof s!="object"?s:s&&s[r.value]?s[r.value]:s&&r.value&&s[r.value.toUpperCase()]?s[r.value.toUpperCase()]:s&&s[o.value]?s[o.value]:s&&o.value&&s[o.value.toUpperCase()]?s[o.value.toUpperCase()]:s&&Object.keys(s)[0]?s[Object.keys(s)[0]]:""}}function wE(e,t,n,r={}){return n.forEach(o=>{o&&(r={...r,...o(e,t,r)})}),r}var Su={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:String,required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1}},setup(e,t){return wE(e,t,[_E,sE,uE,hE,lE,iE,mE,fE,yE,pE,vE,gE,bE])}};const kE=["id","dir"],SE=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],CE=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],TE=["onKeyup","aria-label"],EE=["onClick"],xE=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],PE=["innerHTML"],IE=["id"],DE=["id","aria-label","aria-selected"],NE=["data-pointed","onMouseenter","onClick"],OE=["innerHTML"],BE=["aria-label"],ME=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],RE=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],AE=["innerHTML"],$E=["innerHTML"],LE=["value"],VE=["name","value"],FE=["name","value"],HE=["id"];function UE(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{ref:"multiselect",class:a.normalizeClass(e.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:t[10]||(t[10]=(...s)=>e.handleFocusIn&&e.handleFocusIn(...s)),onFocusout:t[11]||(t[11]=(...s)=>e.handleFocusOut&&e.handleFocusOut(...s)),onKeyup:t[12]||(t[12]=(...s)=>e.handleKeyup&&e.handleKeyup(...s)),onKeydown:t[13]||(t[13]=(...s)=>e.handleKeydown&&e.handleKeydown(...s))},[a.createElementVNode("div",a.mergeProps({class:e.classList.wrapper,onMousedown:t[9]||(t[9]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),ref:"wrapper",tabindex:e.tabindex,"aria-controls":n.searchable?void 0:e.ariaControls,"aria-placeholder":n.searchable?void 0:e.ariaPlaceholder,"aria-expanded":n.searchable?void 0:e.isOpen,"aria-activedescendant":n.searchable?void 0:e.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:e.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:e.arias),[a.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(a.openBlock(),a.createElementBlock("input",a.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:t[0]||(t[0]=(...s)=>e.handleSearchInput&&e.handleSearchInput(...s)),onKeypress:t[1]||(t[1]=(...s)=>e.handleKeypress&&e.handleKeypress(...s)),onPaste:t[2]||(t[2]=a.withModifiers((...s)=>e.handlePaste&&e.handlePaste(...s),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,CE)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(e.classList.tags),"data-tags":""},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.iv,(s,l,u)=>a.renderSlot(e.$slots,"tag",{option:s,handleTagRemove:e.handleTagRemove,disabled:n.disabled},()=>[(a.openBlock(),a.createElementBlock("span",{class:a.normalizeClass([e.classList.tag,s.disabled?e.classList.tagDisabled:null]),tabindex:"-1",onKeyup:a.withKeys(c=>e.handleTagRemove(s,c),["enter"]),key:u,"aria-label":e.ariaTagLabel(e.localize(s[n.label]))},[a.createTextVNode(a.toDisplayString(e.localize(s[n.label]))+" ",1),!n.disabled&&!s.disabled?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(e.classList.tagRemove),onClick:a.withModifiers(c=>e.handleTagRemove(s,c),["stop"])},[a.createElementVNode("span",{class:a.normalizeClass(e.classList.tagRemoveIcon)},null,2)],10,EE)):a.createCommentVNode("v-if",!0)],42,TE))])),256)),a.createElementVNode("div",{class:a.normalizeClass(e.classList.tagsSearchWrapper),ref:"tags"},[a.createCommentVNode(" Used for measuring search width "),a.createElementVNode("span",{class:a.normalizeClass(e.classList.tagsSearchCopy)},a.toDisplayString(e.search),3),a.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(a.openBlock(),a.createElementBlock("input",a.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:t[3]||(t[3]=(...s)=>e.handleSearchInput&&e.handleSearchInput(...s)),onKeypress:t[4]||(t[4]=(...s)=>e.handleKeypress&&e.handleKeypress(...s)),onPaste:t[5]||(t[5]=a.withModifiers((...s)=>e.handlePaste&&e.handlePaste(...s),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,xE)):a.createCommentVNode("v-if",!0)],2)],2)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Single label "),n.mode=="single"&&e.hasSelected&&!e.search&&e.iv?a.renderSlot(e.$slots,"singlelabel",{key:2,value:e.iv},()=>[a.createElementVNode("div",{class:a.normalizeClass(e.classList.singleLabel)},[a.createElementVNode("span",{class:a.normalizeClass(e.classList.singleLabelText)},a.toDisplayString(e.localize(e.iv[n.label])),3)],2)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Multiple label "),n.mode=="multiple"&&e.hasSelected&&!e.search?a.renderSlot(e.$slots,"multiplelabel",{key:3,values:e.iv},()=>[a.createElementVNode("div",{class:a.normalizeClass(e.classList.multipleLabel),innerHTML:e.multipleLabelText},null,10,PE)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Placeholder "),n.placeholder&&!e.hasSelected&&!e.search?a.renderSlot(e.$slots,"placeholder",{key:4},()=>[a.createElementVNode("div",{class:a.normalizeClass(e.classList.placeholder),"aria-hidden":"true"},a.toDisplayString(n.placeholder),3)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Spinner "),n.loading||e.resolving?a.renderSlot(e.$slots,"spinner",{key:5},()=>[a.createElementVNode("span",{class:a.normalizeClass(e.classList.spinner),"aria-hidden":"true"},null,2)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Clear "),e.hasSelected&&!n.disabled&&n.canClear&&!e.busy?a.renderSlot(e.$slots,"clear",{key:6,clear:e.clear},()=>[a.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:a.normalizeClass(e.classList.clear),onClick:t[6]||(t[6]=(...s)=>e.clear&&e.clear(...s)),onKeyup:t[7]||(t[7]=a.withKeys((...s)=>e.clear&&e.clear(...s),["enter"]))},[a.createElementVNode("span",{class:a.normalizeClass(e.classList.clearIcon)},null,2)],34)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Caret "),n.caret&&n.showOptions?a.renderSlot(e.$slots,"caret",{key:7},()=>[a.createElementVNode("span",{class:a.normalizeClass(e.classList.caret),onClick:t[8]||(t[8]=(...s)=>e.handleCaretClick&&e.handleCaretClick(...s)),"aria-hidden":"true"},null,2)]):a.createCommentVNode("v-if",!0)],16,SE),a.createCommentVNode(" Options "),a.createElementVNode("div",{class:a.normalizeClass(e.classList.dropdown),tabindex:"-1"},[a.renderSlot(e.$slots,"beforelist",{options:e.fo}),a.createElementVNode("ul",{class:a.normalizeClass(e.classList.options),id:e.ariaControls,role:"listbox"},[n.groups?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(e.fg,(s,l,u)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(e.classList.group),key:u,id:e.ariaGroupId(s),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),"aria-selected":e.isSelected(s),role:"option"},[s.__CREATE__?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(e.classList.groupLabel(s)),"data-pointed":e.isPointed(s),onMouseenter:c=>e.setPointer(s,l),onClick:c=>e.handleGroupClick(s)},[a.renderSlot(e.$slots,"grouplabel",{group:s,isSelected:e.isSelected,isPointed:e.isPointed},()=>[a.createElementVNode("span",{innerHTML:e.localize(s[n.groupLabel])},null,8,OE)])],42,NE)),a.createElementVNode("ul",{class:a.normalizeClass(e.classList.groupOptions),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),role:"group"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.__VISIBLE__,(c,f,p)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(e.classList.option(c,s)),"data-pointed":e.isPointed(c),"data-selected":e.isSelected(c)||void 0,key:p,onMouseenter:h=>e.setPointer(c),onClick:h=>e.handleOptionClick(c),id:e.ariaOptionId(c),"aria-selected":e.isSelected(c),"aria-label":e.ariaOptionLabel(e.localize(c[n.label])),role:"option"},[a.renderSlot(e.$slots,"option",{option:c,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[a.createElementVNode("span",null,a.toDisplayString(e.localize(c[n.label])),1)])],42,ME))),128))],10,BE)],10,DE))),128)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(e.fo,(s,l,u)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(e.classList.option(s)),"data-pointed":e.isPointed(s),"data-selected":e.isSelected(s)||void 0,key:u,onMouseenter:c=>e.setPointer(s),onClick:c=>e.handleOptionClick(s),id:e.ariaOptionId(s),"aria-selected":e.isSelected(s),"aria-label":e.ariaOptionLabel(e.localize(s[n.label])),role:"option"},[a.renderSlot(e.$slots,"option",{option:s,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[a.createElementVNode("span",null,a.toDisplayString(e.localize(s[n.label])),1)])],42,RE))),128))],10,IE),e.noOptions?a.renderSlot(e.$slots,"nooptions",{key:0},()=>[a.createElementVNode("div",{class:a.normalizeClass(e.classList.noOptions),innerHTML:e.localize(n.noOptionsText)},null,10,AE)]):a.createCommentVNode("v-if",!0),e.noResults?a.renderSlot(e.$slots,"noresults",{key:1},()=>[a.createElementVNode("div",{class:a.normalizeClass(e.classList.noResults),innerHTML:e.localize(n.noResultsText)},null,10,$E)]):a.createCommentVNode("v-if",!0),n.infinite&&e.hasMore?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(e.classList.inifinite),ref:"infiniteLoader"},[a.renderSlot(e.$slots,"infinite",{},()=>[a.createElementVNode("span",{class:a.normalizeClass(e.classList.inifiniteSpinner)},null,2)])],2)):a.createCommentVNode("v-if",!0),a.renderSlot(e.$slots,"afterlist",{options:e.fo})],2),a.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(a.openBlock(),a.createElementBlock("input",{key:0,class:a.normalizeClass(e.classList.fakeInput),tabindex:"-1",value:e.textValue,required:""},null,10,LE)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Native input support "),n.nativeSupport?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[n.mode=="single"?(a.openBlock(),a.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:e.plainValue!==void 0?e.plainValue:""},null,8,VE)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(e.plainValue,(s,l)=>(a.openBlock(),a.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:s,key:l},null,8,FE))),128))],64)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Screen reader assistive text "),n.searchable&&e.hasSelected?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(e.classList.assist),id:e.ariaAssist,"aria-hidden":"true"},a.toDisplayString(e.ariaLabel),11,HE)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Create height for empty input "),a.createElementVNode("div",{class:a.normalizeClass(e.classList.spacer)},null,2)],42,kE)}Su.render=UE;Su.__file="src/Multiselect.vue";const Mn={container:"relative mx-auto w-full flex items-center justify-end box-border cursor-pointer border border-zinc-300 rounded bg-white text-base leading-snug outline-none rounded-lg hover:bg-zinc-100",containerDisabled:"cursor-default bg-zinc-100",containerOpen:"rounded-b-none",containerOpenTop:"rounded-t-none",containerActive:"ring-1 ring-zinc-300",singleLabel:"flex items-center h-full max-w-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3.5 pr-16 box-border rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3.5",singleLabelText:"overflow-ellipsis overflow-hidden block whitespace-nowrap max-w-full",multipleLabel:"flex items-center h-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3.5 rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3.5",search:"h-full w-full absolute inset-0 outline-none focus:ring-0 appearance-none box-border border-0 text-base font-sans bg-white rounded-lg pl-3.5 rtl:pl-0 rtl:pr-3.5",tags:"flex-grow flex-shrink flex flex-wrap items-center mt-1 pl-2 rtl:pl-0 rtl:pr-2",tag:"bg-zinc-200 text-sm font-semibold py-1 pl-2 rounded mr-1 mb-1 flex items-center whitespace-nowrap rtl:pl-0 rtl:pr-2 rtl:mr-0 rtl:ml-1",tagDisabled:"pr-2 opacity-50 rtl:pl-2",tagRemove:"flex items-center justify-center p-1 mx-0.5 rounded-sm hover:bg-black hover:bg-opacity-10 group",tagRemoveIcon:"bg-multiselect-remove bg-center bg-no-repeat inline-block w-3 h-3 text-black",tagsSearchWrapper:"inline-block relative mx-1 mb-1 flex-grow flex-shrink h-full",tagsSearch:"absolute inset-0 border-0 outline-none focus:ring-0 appearance-none p-0 text-base font-sans box-border w-full bg-transparent",tagsSearchCopy:"invisible whitespace-pre-wrap inline-block h-px",placeholder:"flex items-center h-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3.5 text-zinc-400 rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3.5",caret:"bg-multiselect-caret bg-center bg-no-repeat w-5 h-8 py-px box-content mr-3.5 relative z-10 stroke-2 flex-shrink-0 flex-grow-0 transition-transform transform pointer-events-none rtl:mr-0 rtl:ml-3.5",caretOpen:"rotate-180 pointer-events-auto",clear:"pr-3.5 relative z-10 opacity-30 transition duration-300 flex-shrink-0 flex-grow-0 flex hover:opacity-80 rtl:pr-0 rtl:pl-3.5",clearIcon:"bg-multiselect-remove bg-center bg-no-repeat w-3 h-5 py-px box-content inline-block",spinner:"bg-multiselect-spinner bg-center bg-no-repeat w-4 h-4 z-10 mr-3.5 animate-spin flex-shrink-0 flex-grow-0 rtl:mr-0 rtl:ml-3.5",inifite:"flex items-center justify-center w-full",inifiteSpinner:"bg-multiselect-spinner bg-center bg-no-repeat w-4 h-4 z-10 animate-spin flex-shrink-0 flex-grow-0 m-3.5",dropdown:"max-h-60 absolute -left-[2px] -right-[2px] bottom-0 transform translate-y-full border-2 border-zinc-300 -mt-px overflow-y-auto z-50 bg-white flex flex-col rounded-b",dropdownTop:"!-translate-y-full top-px bottom-auto rounded-b-none rounded-t",dropdownHidden:"hidden",options:"flex flex-col p-0 m-0 list-none",optionsTop:"",group:"p-0 m-0",groupLabel:"flex text-sm box-border items-center justify-start text-left py-1 px-3 font-semibold bg-zinc-200 cursor-default leading-normal",groupLabelPointable:"cursor-pointer",groupLabelPointed:"bg-zinc-300 text-zinc-700",groupLabelSelected:"bg-primary-active text-white",groupLabelDisabled:"bg-zinc-100 text-zinc-300 cursor-not-allowed",groupLabelSelectedPointed:"bg-primary-active text-white opacity-90",groupLabelSelectedDisabled:"text-white bg-primary-active bg-opacity-50 cursor-not-allowed",groupOptions:"p-0 m-0",option:"flex items-center justify-start box-border text-left cursor-pointer text-base leading-snug py-2 px-3",optionPointed:"text-zinc-800 bg-zinc-100",optionSelected:"text-white bg-primary",optionDisabled:"text-zinc-300 cursor-not-allowed",optionSelectedPointed:"text-white bg-primary opacity-90",optionSelectedDisabled:"text-green-100 bg-primary bg-opacity-50 cursor-not-allowed",noOptions:"py-2 px-3 text-zinc-600 bg-white text-left",noResults:"py-2 px-3 text-zinc-600 bg-white text-left",fakeInput:"bg-transparent absolute left-0 right-0 -bottom-px w-full h-px border-0 p-0 appearance-none outline-none text-transparent",spacer:"h-9 py-px box-content"};function zE(e){return e in Mn}function jE(e){const t=Object.keys(Mn).find(n=>n.toLowerCase()===e);if(t&&zE(t))return Mn[t]}const WE=["onClick"],qE={key:1,class:"order-2 mt-1.5 flex items-center gap-x-1 text-xs italic text-error","data-test-error-message":""},uh=a.defineComponent({inheritAttrs:!1,__name:"AppSelect",props:{wrapperClasses:{default:void 0},hasError:{type:Boolean},errorMessage:{default:void 0},label:{default:void 0},optionLabel:{default:"name"},fetchOnOpen:{type:Boolean,default:!1},openDirection:{default:"down"},dropdownClasses:{default:void 0},additionalClasses:{default:void 0},labelClasses:{default:void 0}},setup(e){const t=e,n=a.useSlots(),r=a.computed(()=>Object.keys(n).filter(i=>i!=="tag")),o=a.computed(()=>{const i={...Mn};return t.openDirection==="up"&&(i.dropdown=`${Mn.dropdown} ${Mn.dropdownTop}`,i.containerOpen=`${Mn.containerOpenTop}`),t.dropdownClasses&&(i.dropdown=`${i.dropdown} ${t.dropdownClasses}`),Object.entries(t.additionalClasses??{}).forEach(([s,l])=>{s in i&&(i[s]=`${i[s]} ${l}`)}),i});return(i,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(i.wrapperClasses)},[i.label||i.$slots.label?(a.openBlock(),a.createBlock(a.unref(Cu),{key:0,"has-error":i.hasError,class:a.normalizeClass(i.labelClasses)},{default:a.withCtx(()=>[a.renderSlot(i.$slots,"label",{},()=>[a.createTextVNode(a.toDisplayString(i.label),1)])]),_:3},8,["has-error","class"])):a.createCommentVNode("",!0),a.createVNode(a.unref(Su),a.mergeProps({native:!1,classes:o.value},{...i.$attrs,label:t.optionLabel},{onOpen:s[0]||(s[0]=l=>{var u;i.fetchOnOpen&&(l!=null&&l.noOptions)&&((u=l==null?void 0:l.resolveOptions)==null||u.call(l))})}),a.createSlots({tag:a.withCtx(l=>[a.createElementVNode("div",{class:a.normalizeClass(a.unref(Mn).tag)},[a.renderSlot(i.$slots,"tag",a.normalizeProps(a.guardReactiveProps(l)),()=>{var u;return[a.createTextVNode(a.toDisplayString((u=l.option)==null?void 0:u[i.optionLabel]),1)]}),l.disabled?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(a.unref(Mn).tagRemove),onClick:u=>l.handleTagRemove(l.option,u)},[a.createElementVNode("span",{class:a.normalizeClass(a.unref(Mn).tagRemoveIcon)},null,2)],10,WE))],2)]),_:2},[a.renderList(r.value,(l,u)=>({name:l,fn:a.withCtx(c=>[a.renderSlot(i.$slots,l,a.normalizeProps(a.guardReactiveProps({...c||{},classes:a.unref(jE)(l)})))])}))]),1040,["classes"]),i.hasError&&i.errorMessage?(a.openBlock(),a.createElementBlock("p",qE,a.toDisplayString(i.errorMessage),1)):a.createCommentVNode("",!0)],2))}});const Cu=a.defineComponent({__name:"AppInputLabel",props:{disabled:{type:Boolean},hasError:{type:Boolean}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("label",{class:a.normalizeClass([{"text-error":t.hasError,"select-none text-zinc-300":t.disabled},"mb-2 block text-base font-semibold text-black"])},[a.renderSlot(t.$slots,"default")],2))}}),kl={mapId:"161a92b3666d9228",disableDefaultUI:!0,zoom:15},YE={scrollwheel:!1,clickableIcons:!1,keyboardShortcuts:!1,isFractionalZoomEnabled:!1,maxZoom:kl.zoom,minZoom:kl.zoom,disableDoubleClickZoom:!0,fullscreenControl:!1,streetViewControl:!1,gestureHandling:"none",rotateControl:!1,panControl:!1},GE=["inline-flex","justify-center","items-center","rounded-full","bg-primary","text-white","h-12","w-12"];function KE(){const e=document.createElement("div");return e.classList.add(...GE),a.render(a.h(u_),e),e}const XE=a.defineComponent({__name:"AppMaps",props:{withMarker:{type:Boolean,default:!0},disableMarkerClick:{type:Boolean,default:!1},markerLatitude:{default:null},markerLongitude:{default:null},disableUserInteraction:{type:Boolean,default:!1},mapCenterLatitude:{default:null},mapCenterLongitude:{default:null},mapOptions:{default:null}},setup(e){const t=e,n=a.ref(null),r=a.computed(()=>{var u;return t.mapCenterLatitude&&t.mapCenterLongitude?{lat:t.mapCenterLatitude,lng:t.mapCenterLongitude}:((u=t.mapOptions)==null?void 0:u.center)??null}),o=a.computed(()=>t.markerLatitude&&t.markerLongitude?{lat:t.markerLatitude,lng:t.markerLongitude}:r.value);a.watch(t,async()=>{await i()}),a.onMounted(async()=>{if(!(window!=null&&window.google)){console.error("Google not defined. use composable useGoogleApi at setup");return}await i()});async function i(){const{Map:u}=await google.maps.importLibrary("maps");if(n.value instanceof HTMLElement){const c=new u(n.value,{...s(),center:r.value});t.withMarker&&await l(c)}}function s(){let u={...kl};return t.disableUserInteraction&&(u={...u,...YE}),{...u,...t.mapOptions??{}}}async function l(u){const{AdvancedMarkerElement:c}=await google.maps.importLibrary("marker"),f=new c({map:u,position:o.value,content:KE()});t.disableMarkerClick&&!t.disableUserInteraction&&(f.element.classList.add("!cursor-default"),google.maps.event.addListener(f,"click",()=>{}))}return(u,c)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"mapElement",ref:n,class:"h-80 w-full"},null,512))}}),JE={class:"pl-7 text-lg font-semibold md:hidden","data-test-name":""},Sl=a.defineComponent({__name:"NavigationItem",props:{item:{}},setup(e){const t=e,{navigationComponent:n,closeMobileMenu:r}=Ba(),o=a.ref(!1),i=a.computed(()=>o.value||typeof t.item.icon!="string"),s=a.computed(()=>o.value?Kr:t.item.icon);async function l(u){var c,f,p;r(),(c=t.item)!=null&&c.onClick&&(u.preventDefault(),o.value=!0,await Promise.resolve((p=(f=t.item)==null?void 0:f.onClick)==null?void 0:p.call(f)),o.value=!1)}return(u,c)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),{to:u.item.to,href:u.item.href,class:a.normalizeClass([{"md:bg-primary":u.item.active??!1,"!rounded-full":u.item.rounded??!1,"mb-4":!u.item.bottom,"mt-4":u.item.bottom??!1},"flex h-10 w-full cursor-pointer items-center rounded-lg text-center transition-colors md:w-10 md:justify-center md:hover:bg-primary-active"]),onClick:l},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.value?s.value:"span"),{class:a.normalizeClass([{"!h-6":!i.value},"app-navigation-item h-6 w-6 stroke-2 text-black md:h-5 md:w-5 md:text-white"]),size:o.value?"extra-small":void 0,"data-test-icon":""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(i.value?"":u.item.icon),1)]),_:1},8,["class","size"])),a.createElementVNode("span",JE,a.toDisplayString(u.item.name),1)]),_:1},8,["to","href","class"]))}}),Cl=a.defineComponent({__name:"SupportItem",setup(e){const{contactRoute:t,contactIcon:n,navigationComponent:r,closeMobileMenu:o}=Ba();return(i,s)=>a.unref(t)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(r)),{key:0,to:a.unref(r)!=="a"?a.unref(t):void 0,href:a.unref(r)?a.unref(t):void 0,class:"app-support-item fixed bottom-5 right-5 z-50 mt-2 flex h-10 w-10 justify-center rounded-full bg-primary py-2 text-white transition-colors hover:bg-primary-active focus-visible:outline-none","data-test-help-icon":"",onClick:a.unref(o)},{default:a.withCtx(()=>[typeof a.unref(n)=="string"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(a.unref(n)),1)],64)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),{key:1,class:"h-full w-full"}))]),_:1},8,["to","href","onClick"])):a.createCommentVNode("",!0)}}),QE={class:"app-mobile-menu flex h-18 items-center justify-between bg-zinc-50 px-4 text-black md:hidden"},ZE=["onClick"],e2=["innerHTML"],t2={class:"flex w-10 grow-0 justify-end","data-test-avatar-wrapper":""},n2={class:"relative flex h-full w-full flex-1 flex-col bg-white focus:outline-none","data-test-navigation-wrapper":""},r2={class:"h-0 flex-1 overflow-y-auto p-4","data-test-navigation-links-wrapper":""},a2={"aria-label":"MainMenu",class:"mt-5"},o2={class:"mb-auto"},i2=a.defineComponent({__name:"Mobile",setup(e){const{logo:t,avatar:n,navigationItems:r,mobileMenuOpen:o,mobileMenuOpenTransition:i,openMobileMenu:s,closeMobileMenu:l}=Ba(),u=a.computed(()=>o.value?Fi:Qb);function c(){l(),setTimeout(()=>{i.value=!1},100)}function f(){i.value||(s(),i.value=!0)}return(p,h)=>(a.openBlock(),a.createElementBlock("header",QE,[a.createElementVNode("div",{class:"inline-flex w-10 grow-0 cursor-pointer items-center justify-start rounded-sm !py-2 hover:text-primary focus:outline-none","data-test-menu-icon-wrapper":"",onClick:a.withModifiers(f,["stop"])},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.value),{class:"block h-6 w-6 text-black","aria-hidden":"true"}))],8,ZE),a.createElementVNode("div",{class:"flex h-full max-w-[70%] grow justify-center py-4","data-test-logo-wrapper":"",innerHTML:a.unref(t)},null,8,e2),a.createElementVNode("div",t2,[a.unref(n)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),{key:0})):a.createCommentVNode("",!0)]),a.createVNode(a.unref(kt.TransitionRoot),{show:a.unref(o),as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(kt.Dialog),{as:"div",class:"app-mobile-menu-dialog fixed inset-0 top-18 z-50 flex lg:hidden",onClose:c},{default:a.withCtx(()=>[a.createVNode(a.unref(kt.TransitionChild),{as:"template",enter:"transition ease-in-out duration-300 transform","enter-from":"translate-y-full","enter-to":"translate-y-0",leave:"transition ease-in-out duration-300 transform","leave-from":"translate-y-0","leave-to":"translate-y-full"},{default:a.withCtx(()=>[a.createElementVNode("div",n2,[a.createElementVNode("div",r2,[a.createElementVNode("nav",a2,[a.createElementVNode("ul",o2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(r).filter(m=>m.visible!==!1),m=>(a.openBlock(),a.createElementBlock("li",{key:m.name,"data-test-navigation-item":""},[a.createVNode(Sl,{item:m},null,8,["item"])]))),128))])]),a.createVNode(Cl)])])]),_:1})]),_:1})]),_:1},8,["show"]),a.createVNode(Cl)]))}}),s2={class:"mx-auto mb-auto"},l2={class:"mx-auto mt-auto"},u2=a.defineComponent({__name:"AppNavigationMenu",setup(e){const{navigationItems:t,mainMenuOpen:n}=Ba();return(r,o)=>(a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("aside",{class:a.normalizeClass([{"flex-col px-3 md:!w-20":a.unref(n)},"app-navigation-menu sticky top-0 hidden h-screen w-0 justify-center py-5 transition-all duration-500 before:absolute before:-right-8 before:top-0 before:h-8 before:w-8 before:bg-transparent after:absolute after:-right-8 after:bottom-0 after:h-8 after:w-8 after:bg-transparent md:flex md:bg-secondary"]),"data-test-main-menu":""},[a.createElementVNode("ul",s2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(t).filter(i=>i.bottom!==!0&&i.visible!==!1),i=>(a.openBlock(),a.createElementBlock("li",{key:i.name,"data-test-top-navigation-item":""},[a.createVNode(Sl,{item:i},null,8,["item"])]))),128))]),a.createElementVNode("ul",l2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(t).filter(i=>i.bottom&&i.visible!==!1),i=>(a.openBlock(),a.createElementBlock("li",{key:i.name,"data-test-bottom-navigation-item":""},[a.createVNode(Sl,{item:i},null,8,["item"])]))),128)),a.createElementVNode("li",null,[a.createVNode(Cl,{class:"!static"})])])],2),a.createVNode(i2)]))}});const ji=Jn(u2,[["__scopeId","data-v-8287ec08"]]),c2={class:"flex text-sm font-bold"},d2={class:"flex items-center rounded-l-lg bg-indigo-900 px-2 py-1.5 text-white","data-test-country-code":""},ch=a.defineComponent({__name:"AppLicensePlate",props:{license:{default:void 0},country:{default:"NL"},licensePlateClasses:{default:void 0}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",c2,[a.createElementVNode("span",d2,a.toDisplayString(t.country),1),a.createElementVNode("span",{class:a.normalizeClass([t.licensePlateClasses,"w-full rounded-r-lg bg-yellow-400 px-2 py-1.5 uppercase"]),"data-test-license-plate":""},[a.renderSlot(t.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(t.license),1)])],2)]))}}),dh=a.defineComponent({__name:"AppTimelineItemIcon",props:{icon:{type:[Object,Function]}},setup(e){const t=e,n=a.computed(()=>t.icon??xp),r=a.computed(()=>t.icon?["w-full"]:["bg-primary","w-6","h-6","text-white","stroke-3","p-1","z-10","mx-auto","flex","items-center","justify-center","rounded-full"]),o=a.computed(()=>t.icon?["border-primary","border-2","-translate-y-2","h-10","w-10","rounded-full","flex","justify-center","items-center","p-1.5","z-50","bg-white"]:["w-10"]);return(i,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(o.value)},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.value),{class:a.normalizeClass([r.value,"relative"])},null,8,["class"]))],2))}}),f2={class:"relative flex w-full before:absolute before:-top-5 before:left-4.5 before:h-5 before:w-0.5 before:bg-primary after:absolute after:left-4.5 after:h-full after:w-0.5 after:bg-primary first-of-type:before:hidden last-of-type:from-primary last-of-type:to-white last-of-type:after:bg-transparent last-of-type:after:bg-gradient-to-b"},p2={class:"flex"},h2={class:"ml-4"},m2={class:"text-sm font-semibold text-zinc-900","data-test-timeline-title":""},v2={class:"text-base","data-test-timeline-description":""},fh=a.defineComponent({__name:"AppTimelineItem",props:{item:{}},setup(e){const t=e,n=a.computed(()=>t.item.date.toLocaleDateString("nl-NL",{month:"short",day:"numeric",hour:"numeric",minute:"numeric",timeStyle:void 0}));return(r,o)=>(a.openBlock(),a.createElementBlock("article",f2,[a.createElementVNode("div",p2,[a.renderSlot(r.$slots,"icon",{value:r.item.icon},()=>[a.createVNode(dh,{icon:r.item.icon},null,8,["icon"])])]),a.createElementVNode("div",h2,[a.createElementVNode("header",null,[a.createVNode(a.unref(fi),{class:"mb-2"},{default:a.withCtx(()=>[a.renderSlot(r.$slots,"date",{value:n.value},()=>[a.createElementVNode("time",null,a.toDisplayString(n.value)+" uur",1)])]),_:3}),a.createElementVNode("h3",m2,[a.renderSlot(r.$slots,"title",{value:r.item.title},()=>[a.createTextVNode(a.toDisplayString(r.item.title),1)])])]),a.createElementVNode("p",v2,[a.renderSlot(r.$slots,"default",{value:r.item.description},()=>[a.createTextVNode(a.toDisplayString(r.item.description),1)])])])]))}}),g2={class:"space-y-5"},y2=a.defineComponent({__name:"AppTimeline",props:{items:{}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",g2,[a.renderSlot(t.$slots,"default",{},()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.items,r=>(a.openBlock(),a.createBlock(fh,{key:r.title,item:r},null,8,["item"]))),128))])]))}});var b2=Object.defineProperty,_2=Object.defineProperties,w2=Object.getOwnPropertyDescriptors,kd=Object.getOwnPropertySymbols,k2=Object.prototype.hasOwnProperty,S2=Object.prototype.propertyIsEnumerable,Sd=(e,t,n)=>t in e?b2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hn=(e,t)=>{for(var n in t||(t={}))k2.call(t,n)&&Sd(e,n,t[n]);if(kd)for(var n of kd(t))S2.call(t,n)&&Sd(e,n,t[n]);return e},ai=(e,t)=>_2(e,w2(t)),Pr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const C2=e=>(a.pushScopeId("data-v-e0a0b7f0"),e=e(),a.popScopeId(),e),T2=["onClick"],E2=["checked"],x2=C2(()=>a.createElementVNode("label",{for:"checbox"},null,-1)),P2=a.defineComponent({__name:"MultipleSelectCheckBox",props:{status:{type:String,required:!0}},emits:["change"],setup(e,{emit:t}){const n=e;a.useCssVars(s=>({"51ab8a49":a.unref(i)}));const r=a.computed(()=>n.status==="allSelected"),o=()=>{t("change",!r.value)},i=a.inject("themeColor");return(s,l)=>(a.openBlock(),a.createElementBlock("div",{class:"easy-checkbox",onClick:a.withModifiers(o,["stop","prevent"])},[a.createElementVNode("input",{type:"checkbox",checked:a.unref(r),class:a.normalizeClass(e.status)},null,10,E2),x2],8,T2))}});var I2=Pr(P2,[["__scopeId","data-v-e0a0b7f0"]]);const D2=e=>(a.pushScopeId("data-v-7e69a276"),e=e(),a.popScopeId(),e),N2=["checked"],O2=D2(()=>a.createElementVNode("label",{for:"checbox"},null,-1)),B2=a.defineComponent({__name:"SingleSelectCheckBox",props:{checked:{type:Boolean,required:!0}},emits:["change"],setup(e,{emit:t}){a.useCssVars(r=>({fdaf7e9e:a.unref(n)}));const n=a.inject("themeColor");return(r,o)=>(a.openBlock(),a.createElementBlock("div",{class:"easy-checkbox",onClick:o[0]||(o[0]=a.withModifiers(i=>t("change"),["stop","prevent"]))},[a.createElementVNode("input",{type:"checkbox",checked:e.checked},null,8,N2),O2]))}});var M2=Pr(B2,[["__scopeId","data-v-7e69a276"]]);const R2=e=>(a.pushScopeId("data-v-4ca5de3a"),e=e(),a.popScopeId(),e),A2={class:"easy-data-table__rows-selector"},$2={class:"rows-input"},L2=R2(()=>a.createElementVNode("div",{class:"triangle"},null,-1)),V2=["onClick"],F2=a.defineComponent({__name:"RowsSelector",props:{modelValue:{type:Number,required:!0},rowsItems:{type:Array,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;a.useCssVars(p=>({"1b889342":a.unref(f)}));const r=a.ref(!1),o=a.ref(!1),i=a.inject("dataTable");a.watch(r,p=>{if(p&&i){const h=window.innerHeight,m=i.value.getBoundingClientRect().height,y=i.value.getBoundingClientRect().top;h-(m+y)<=100?o.value=!0:o.value=!1}});const s=a.computed({get:()=>n.modelValue,set:p=>{t("update:modelValue",p)}}),l=p=>{s.value=p,r.value=!1},u=(p,h)=>{let m=p.parentNode;for(;m!=null;){if(m.classList&&m.classList.contains(h))return!0;m=m.parentNode}return!1},c=p=>{u(p.target,"easy-data-table__rows-selector")||(r.value=!1)};a.onMounted(()=>{document.addEventListener("click",c)}),a.onBeforeUnmount(()=>{document.removeEventListener("click",c)});const f=a.inject("themeColor");return(p,h)=>(a.openBlock(),a.createElementBlock("div",A2,[a.createElementVNode("div",{class:"rows-input__wrapper",onClick:h[0]||(h[0]=m=>r.value=!r.value)},[a.createElementVNode("div",$2,a.toDisplayString(a.unref(s)),1),L2]),a.createElementVNode("ul",{class:a.normalizeClass(["select-items",{show:r.value,inside:o.value}])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.rowsItems,m=>(a.openBlock(),a.createElementBlock("li",{key:m,class:a.normalizeClass({selected:m===a.unref(s)}),onClick:y=>l(m)},a.toDisplayString(m),11,V2))),128))],2)]))}});var H2=Pr(F2,[["__scopeId","data-v-4ca5de3a"]]);const Wi=e=>(a.pushScopeId("data-v-1fa3a520"),e=e(),a.popScopeId(),e),U2={class:"lds-ring"},z2=Wi(()=>a.createElementVNode("div",null,null,-1)),j2=Wi(()=>a.createElementVNode("div",null,null,-1)),W2=Wi(()=>a.createElementVNode("div",null,null,-1)),q2=Wi(()=>a.createElementVNode("div",null,null,-1)),Y2=[z2,j2,W2,q2],G2=a.defineComponent({__name:"Loading",setup(e){a.useCssVars(n=>({26774109:a.unref(t)}));const t=a.inject("themeColor");return(n,r)=>(a.openBlock(),a.createElementBlock("div",U2,Y2))}});var K2=Pr(G2,[["__scopeId","data-v-1fa3a520"]]);const X2={class:"loader-line"},J2=a.defineComponent({__name:"LoadingLine",setup(e){a.useCssVars(n=>({"0d327f57":a.unref(t)}));const t=a.inject("themeColor");return(n,r)=>(a.openBlock(),a.createElementBlock("div",X2))}});var Q2=Pr(J2,[["__scopeId","data-v-7d281cac"]]);const Z2={class:"buttons-pagination"},ex=["onClick"],tx=a.defineComponent({__name:"ButtonsPagination",props:{maxPaginationNumber:{type:Number,required:!0},currentPaginationNumber:{type:Number,required:!0}},emits:["updatePage"],setup(e,{emit:t}){const n=e;a.useCssVars(l=>({"40dd4f07":a.unref(s)}));const r=7,o=l=>{l.type==="button"&&!l.active&&t("updatePage",l.page)},i=a.computed(()=>{const l=[];if(n.maxPaginationNumber<=r)for(let u=1;u<=n.maxPaginationNumber;u+=1)l.push({type:"button",page:u,active:u===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber});else if([1,2,n.maxPaginationNumber,n.maxPaginationNumber-1].includes(n.currentPaginationNumber))for(let u=1;u<=r;u+=1)if(u<=3)l.push({type:"button",page:u,active:u===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber});else if(u===4)l.push({type:"omission"});else{const c=n.maxPaginationNumber-(r-u);l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber})}else if([3,4].includes(n.currentPaginationNumber))for(let u=1;u<=r;u+=1)u<=5?l.push({type:"button",page:u,active:u===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber}):u===6?l.push({type:"omission"}):l.push({type:"button",page:n.maxPaginationNumber,active:n.maxPaginationNumber===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber});else if([n.maxPaginationNumber-2,n.maxPaginationNumber-3].includes(n.currentPaginationNumber))for(let u=1;u<=r;u+=1)if(u===1)l.push({type:"button",page:1,active:n.currentPaginationNumber===1,activePrev:u+1===n.currentPaginationNumber});else if(u===2)l.push({type:"omission"});else{const c=n.maxPaginationNumber-(r-u);l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber})}else for(let u=1;u<=r;u+=1)if(u===1)l.push({type:"button",page:1,active:n.currentPaginationNumber===1,activePrev:u+1===n.currentPaginationNumber});else if(u===2||u===6)l.push({type:"omission"});else if(u===7)l.push({type:"button",page:n.maxPaginationNumber,active:n.maxPaginationNumber===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber});else{const c=4-u,f=n.currentPaginationNumber-c;l.push({type:"button",page:f,active:f===n.currentPaginationNumber,activePrev:f+1===n.currentPaginationNumber})}return l}),s=a.inject("themeColor");return(l,u)=>(a.openBlock(),a.createElementBlock("div",Z2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(i),(c,f)=>(a.openBlock(),a.createElementBlock("div",{key:f,class:a.normalizeClass(["item",{button:c.type==="button",active:c.type==="button"&&c.active,"active-prev":c.type==="button"&&c.activePrev,omission:c.type==="omission"}]),onClick:p=>o(c)},a.toDisplayString(c.type==="button"?c.page:"..."),11,ex))),128))]))}});var nx=Pr(tx,[["__scopeId","data-v-4c681fa2"]]);const ph=e=>(a.pushScopeId("data-v-c9da5286"),e=e(),a.popScopeId(),e),rx=ph(()=>a.createElementVNode("span",{class:"arrow arrow-right"},null,-1)),ax=[rx],ox=ph(()=>a.createElementVNode("span",{class:"arrow arrow-left"},null,-1)),ix=[ox],sx=a.defineComponent({__name:"PaginationArrows",props:{isFirstPage:{type:Boolean,required:!1},isLastPage:{type:Boolean,required:!1}},emits:["clickPrevPage","clickNextPage"],setup(e,{emit:t}){const n=a.useSlots();return(r,o)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",{class:a.normalizeClass(["previous-page__click-button",{"first-page":e.isFirstPage}]),onClick:o[0]||(o[0]=i=>t("clickPrevPage"))},ax,2),a.unref(n).buttonsPagination?a.renderSlot(r.$slots,"buttonsPagination",{key:0},void 0,!0):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["next-page__click-button",{"last-page":e.isLastPage}]),onClick:o[1]||(o[1]=i=>t("clickNextPage"))},ix,2)],64))}});var lx=Pr(sx,[["__scopeId","data-v-c9da5286"]]);function ux(e,t,n,r){return{clickRow:(i,s,l)=>{if(e.value!==s)return;const u=Hn({},i);if(t.value){const{checkbox:c}=i;delete u.checkbox,u.isSelected=c}if(n.value){const{index:c}=i;delete u.index,u.indexInCurrentPage=c}r("clickRow",u,l)}}}function cx(e,t,n){const r=a.ref([]);return{expandingItemIndexList:r,updateExpandingItemIndexList:(s,l,u)=>{u.stopPropagation();const c=r.value.indexOf(s);if(c!==-1)r.value.splice(c,1);else{const f=e.value.findIndex(p=>JSON.stringify(p)===JSON.stringify(l));n("expandRow",t.value+f,l),r.value.push(t.value+f)}},clearExpandingItemIndexList:()=>{r.value=[]}}}function dx(e){const t=a.computed(()=>e.value.filter(o=>o.fixed)),n=a.computed(()=>t.value.length?t.value[t.value.length-1].value:""),r=a.computed(()=>{if(!t.value.length)return[];const o=t.value.map(i=>{var s;return(s=i.width)!=null?s:100});return t.value.map((i,s)=>{var l,u;return{value:i.value,fixed:(l=i.fixed)!=null?l:!0,width:(u=i.width)!=null?u:100,distance:s===0?0:o.reduce((c,f,p)=>{let h=c;return p<s&&(h+=f),h})}})});return{fixedHeaders:t,lastFixedColumn:n,fixedColumnsInfos:r}}function fx(e,t,n,r,o,i,s,l,u,c,f,p,h,m,y,k,b,w,T){const O=a.computed(()=>s.value.findIndex($=>$.fixed)!==-1),_=a.computed(()=>O.value?s.value.filter($=>$.fixed):[]),B=a.computed(()=>s.value.filter($=>!$.fixed)),C=($,Y)=>Array.isArray($)&&Array.isArray(Y)?{sortBy:$,sortDesc:Y.map(X=>X==="desc")}:$!==""?{sortBy:y.value,sortDesc:k.value==="desc"}:null,I=a.ref(C(y.value,k.value)),F=a.computed(()=>{var $;const X=[..._.value,...B.value].map(S=>{const H=Object.assign(S);if(H.sortable&&(H.sortType="none"),h.value)if(Array.isArray(h.value.sortBy)&&Array.isArray(h.value.sortType)&&h.value.sortBy.includes(H.value)){const Z=h.value.sortBy.indexOf(H.value);H.sortType=h.value.sortType[Z]}else H.value===h.value.sortBy&&h.value.sortType&&(H.sortType=h.value.sortType);if(I.value&&Array.isArray(I.value.sortBy)&&Array.isArray(I.value.sortDesc)&&I.value.sortBy.includes(H.value)){const Z=I.value.sortBy.indexOf(H.value);H.sortType=I.value.sortDesc[Z]?"desc":"asc"}else I.value&&H.value===I.value.sortBy&&(H.sortType=I.value.sortDesc?"desc":"asc");return H});let K=[];l.value?K=[o.value||O.value?{text:"",value:"expand",fixed:!0,width:n.value}:{text:"",value:"expand"},...X]:K=X;let j=[];m.value?j=[i.value||O.value?{text:e.value,value:"index",fixed:!0,width:u.value}:{text:e.value,value:"index"},...K]:j=K;let U=[];return c.value?U=[r.value||O.value?{text:"checkbox",value:"checkbox",fixed:!0,width:($=t.value)!=null?$:36}:{text:"checkbox",value:"checkbox"},...j]:U=j,U}),q=a.computed(()=>F.value.map($=>$.value));return{clientSortOptions:I,headerColumns:q,headersForRender:F,updateSortField:($,Y)=>{let X=null;if(Y==="none"?X="asc":Y==="asc"?X="desc":X=p.value?"asc":null,f.value&&w($,X),I.value&&Array.isArray(I.value.sortBy)&&Array.isArray(I.value.sortDesc)){const K=I.value.sortBy.indexOf($);K===-1?X!==null&&(I.value.sortBy.push($),I.value.sortDesc.push(X==="desc")):X===null?(I.value.sortDesc.splice(K,1),I.value.sortBy.splice(K,1)):I.value.sortDesc[K]=X==="desc"}else X===null?I.value=null:I.value={sortBy:$,sortDesc:X==="desc"};T("updateSort",{sortType:X,sortBy:$})},isMultiSorting:$=>h.value&&Array.isArray(h.value.sortBy)?h.value.sortBy.includes($):I.value&&Array.isArray(I.value.sortBy)?I.value.sortBy.includes($):!1,getMultiSortNumber:$=>h.value&&Array.isArray(h.value.sortBy)?h.value.sortBy.indexOf($)+1:I.value&&Array.isArray(I.value.sortBy)?I.value.sortBy.indexOf($)+1:!1}}function px(e,t,n,r,o,i,s,l,u){const c=a.computed(()=>(e.value-1)*o.value+1),f=a.computed(()=>n.value?Math.min(u.value,e.value*o.value):Math.min(l.value.length,e.value*o.value)),p=a.computed(()=>n.value?r.value:l.value.slice(c.value-1,f.value)),h=a.computed(()=>s.value?p.value.map((k,b)=>Hn({index:c.value+b},k)):p.value),m=a.computed(()=>i.value.length===0||i.value.every(b=>l.value.findIndex(w=>JSON.stringify(b)===JSON.stringify(w))===-1)?"noneSelected":i.value.length===l.value.length&&i.value.every(w=>l.value.findIndex(T=>JSON.stringify(w)===JSON.stringify(T))!==-1)?"allSelected":"partSelected"),y=a.computed(()=>t.value?m.value==="allSelected"?h.value.map(k=>Hn({checkbox:!0},k)):m.value==="noneSelected"?h.value.map(k=>Hn({checkbox:!1},k)):h.value.map(k=>{const b=i.value.findIndex(w=>{const T=Hn({},k);return delete T.index,JSON.stringify(w)===JSON.stringify(T)})!==-1;return Hn({checkbox:b},k)}):h.value);return{currentPageFirstIndex:c,currentPageLastIndex:f,multipleSelectStatus:m,pageItems:y}}function hx(e,t,n,r,o,i,s){const l=a.ref(i.value?i.value.page:e.value),u=a.computed(()=>Math.ceil(r.value/o.value)),c=a.computed(()=>u.value===0||l.value===u.value),f=a.computed(()=>l.value===1);return{currentPaginationNumber:l,maxPaginationNumber:u,isLastPage:c,isFirstPage:f,nextPage:()=>{if(r.value!==0&&!c.value&&!n.value)if(t.value){const k=l.value+1;s(k)}else l.value+=1},prevPage:()=>{if(r.value!==0&&!f.value&&!n.value)if(t.value){const k=l.value-1;s(k)}else l.value-=1},updatePage:k=>{n.value||(t.value?s(k):l.value=k)},updateCurrentPaginationNumber:k=>{l.value=k}}}function mx(e,t,n,r){const o=a.computed(()=>!e.value&&t.value.findIndex(l=>l===r.value)===-1?[r.value,...t.value]:t.value),i=a.ref(n.value?n.value.rowsPerPage:r.value);return{rowsItemsComputed:o,rowsPerPageRef:i,updateRowsPerPage:l=>{i.value=l}}}function vx(e,t,n){const r=a.computed({get:()=>{if(e.value){const{page:l,rowsPerPage:u,sortBy:c,sortType:f}=e.value;return{page:l,rowsPerPage:u,sortBy:c??null,sortType:f??null}}return null},set:l=>{n("update:serverOptions",l)}});return{serverOptionsComputed:r,updateServerOptionsPage:l=>{r.value&&(r.value=ai(Hn({},r.value),{page:l}))},updateServerOptionsSort:(l,u)=>{if(r.value)if(t.value&&Array.isArray(r.value.sortBy)&&Array.isArray(r.value.sortType)){const c=r.value.sortBy.findIndex(f=>f===l);c===-1&&u!==null&&(r.value.sortBy.push(l),r.value.sortType.push(u)),u===null?(r.value.sortBy.splice(c,1),r.value.sortType.splice(c,1)):r.value.sortType[c]=u}else r.value=ai(Hn({},r.value),{sortBy:u!==null?l:null,sortType:u})},updateServerOptionsRowsPerPage:l=>{r.value&&(r.value=ai(Hn({},r.value),{page:1,rowsPerPage:l}))}}}function Xt(e,t){var n;if(e.includes(".")){const r=e.split("."),{length:o}=r;let i,s=0;for(;s<o;){if(s===0)i=t[r[0]];else if(i&&typeof i=="object")i=i[r[s]];else{i="";break}s+=1}return i??""}return(n=t[e])!=null?n:""}function gx(e,t){const n=Xt(e,t);return Array.isArray(n)?n.join(","):n}function yx(e,t,n,r,o,i,s,l,u,c){const f=O=>{if(typeof i.value=="string"&&i.value!=="")return Xt(i.value,O);if(Array.isArray(i.value)){let _="";return i.value.forEach(B=>{_+=Xt(B,O)}),_}return Object.values(O).join(" ")},p=a.computed(()=>{if(!n.value&&s.value!==""){const O=new RegExp(s.value,"i");return r.value.filter(_=>O.test(f(_)))}return r.value}),h=a.computed(()=>{let O=[...p.value];return t.value?(t.value.forEach(_=>{O=O.filter(B=>{const{field:C,comparison:I,criteria:F}=_;if(typeof I=="function")return I(Xt(C,B),F);const q=Xt(C,B);switch(I){case"=":return q===F;case"!=":return q!==F;case">":return q>F;case"<":return q<F;case"<=":return q<=F;case">=":return q>=F;case"between":return q>=Math.min(...F)&&q<=Math.max(...F);case"in":return F.includes(q);default:return q===F}})}),O):p.value});a.watch(h,O=>{t.value&&c("updateFilter",O)},{immediate:!0,deep:!0});function m(O,_,B,C){const I=O[C],F=_[C];return(C===0?B:m(O,_,B,C-1)).sort((W,M)=>{let D=!0;for(let $=0;$<C;$+=1)if(Xt(O[$],W)!==Xt(O[$],M)){D=!1;break}return D?Xt(I,W)<Xt(I,M)?F?1:-1:Xt(I,W)>Xt(I,M)?F?-1:1:0:0})}const y=a.computed(()=>{if(n.value)return r.value;if(e.value===null)return h.value;const{sortBy:O,sortDesc:_}=e.value,B=[...h.value];return u&&Array.isArray(O)&&Array.isArray(_)?O.length===0?B:m(O,_,B,O.length-1):B.sort((C,I)=>Xt(O,C)<Xt(O,I)?_?1:-1:Xt(O,C)>Xt(O,I)?_?-1:1:0)}),k=a.computed(()=>n.value?l.value:y.value.length),b=a.computed({get:()=>{var O;return(O=o.value)!=null?O:[]},set:O=>{c("update:itemsSelected",O)}});return{totalItems:y,selectItemsComputed:b,totalItemsLength:k,toggleSelectAll:O=>{b.value=O?y.value:[],O&&c("selectAll")},toggleSelectItem:O=>{const _=O.checkbox;if(delete O.checkbox,delete O.index,_)b.value=b.value.filter(B=>JSON.stringify(B)!==JSON.stringify(O)),c("deselectRow",O);else{const B=b.value;B.unshift(O),b.value=B,c("selectRow",O)}}}}var bx={alternating:{type:Boolean,default:!1},buttonsPagination:{type:Boolean,default:!1},checkboxColumnWidth:{type:Number,default:null},currentPage:{type:Number,default:1},emptyMessage:{type:String,default:"No Available Data"},expandColumnWidth:{type:Number,default:36},filterOptions:{type:Array,default:null},fixedExpand:{type:Boolean,default:!1},fixedHeader:{type:Boolean,default:!0},fixedCheckbox:{type:Boolean,default:!1},fixedIndex:{type:Boolean,default:!1},headerTextDirection:{type:String,default:"left"},bodyTextDirection:{type:String,default:"left"},hideFooter:{type:Boolean,default:!1},hideRowsPerPage:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},indexColumnWidth:{type:Number,default:60},itemsSelected:{type:Array,default:null},loading:{type:Boolean,default:!1},rowsPerPage:{type:Number,default:25},rowsItems:{type:Array,default:()=>[25,50,100]},rowsPerPageMessage:{type:String,default:"rows per page:"},searchField:{type:[String,Array],default:""},searchValue:{type:String,default:""},serverOptions:{type:Object,default:null},serverItemsLength:{type:Number,default:0},showIndex:{type:Boolean,default:!1},sortBy:{type:[String,Array],default:""},sortType:{type:[String,Array],default:"asc"},multiSort:{type:Boolean,default:!1},tableMinHeight:{type:Number,default:180},tableHeight:{type:Number,default:null},themeColor:{type:String,default:"#42b883"},tableClassName:{type:String,default:""},headerClassName:{type:String,default:""},headerItemClassName:{type:[Function,String],default:""},bodyRowClassName:{type:[Function,String],default:""},bodyExpandRowClassName:{type:[Function,String],default:""},bodyItemClassName:{type:[Function,String],default:""},noHover:{type:Boolean,default:!1},borderCell:{type:Boolean,default:!1},mustSort:{type:Boolean,default:!1},rowsOfPageSeparatorMessage:{type:String,default:"of"},clickEventType:{type:String,default:"single"},clickRowToExpand:{type:Boolean,default:!1},tableNodeId:{type:String,default:""},showIndexSymbol:{type:String,default:"#"},preventContextMenuRow:{type:Boolean,default:!0}};const _x=e=>(a.pushScopeId("data-v-32683533"),e=e(),a.popScopeId(),e),wx=["id"],kx=["onClick"],Sx={key:3,class:"header-text"},Cx={key:5,class:"multi-sort__number"},Tx=["onClick","onDblclick","onContextmenu"],Ex=["onClick"],xx=["colspan"],Px={key:0,class:"vue3-easy-data-table__loading"},Ix=_x(()=>a.createElementVNode("div",{class:"vue3-easy-data-table__loading-mask"},null,-1)),Dx={class:"loading-entity"},Nx={key:1,class:"vue3-easy-data-table__message"},Ox={key:0,class:"vue3-easy-data-table__footer"},Bx={key:0,class:"pagination__rows-per-page"},Mx={class:"pagination__items-index"},Rx=a.defineComponent({__name:"DataTable",props:ai(Hn({},bx),{items:{type:Array,required:!0},headers:{type:Array,required:!0}}),emits:["clickRow","contextmenuRow","selectRow","deselectRow","expandRow","updateSort","updateFilter","update:itemsSelected","update:serverOptions","updatePageItems","updateTotalItems","selectAll"],setup(e,{expose:t,emit:n}){const r=e;a.useCssVars(Se=>({da0d4328:a.unref(V),"3037e504":a.unref(Q)}));const{tableNodeId:o,clickEventType:i,bodyTextDirection:s,checkboxColumnWidth:l,currentPage:u,expandColumnWidth:c,filterOptions:f,fixedCheckbox:p,fixedExpand:h,fixedHeader:m,fixedIndex:y,headers:k,headerTextDirection:b,indexColumnWidth:w,items:T,itemsSelected:O,loading:_,mustSort:B,multiSort:C,rowsItems:I,rowsPerPage:F,searchField:q,searchValue:W,serverItemsLength:M,serverOptions:D,showIndex:$,sortBy:Y,sortType:X,tableHeight:K,tableMinHeight:j,themeColor:U,rowsOfPageSeparatorMessage:S,showIndexSymbol:H,preventContextMenuRow:Z}=a.toRefs(r),Q=a.computed(()=>K.value?`${K.value}px`:null),V=a.computed(()=>`${j.value}px`);a.provide("themeColor",U.value);const E=a.useSlots(),P=a.computed(()=>!!E.pagination),R=a.computed(()=>!!E.loading),G=a.computed(()=>!!E.expand),ie=a.computed(()=>!!E.body),oe=a.ref(),Ie=a.ref();a.provide("dataTable",oe);const Ee=a.ref(!1);a.onMounted(()=>{Ie.value.addEventListener("scroll",()=>{Ee.value=Ie.value.scrollLeft>0})});const fe=a.computed(()=>O.value!==null),Be=a.computed(()=>D.value!==null),{serverOptionsComputed:$e,updateServerOptionsPage:ze,updateServerOptionsSort:Ge,updateServerOptionsRowsPerPage:Ke}=vx(D,C,n),{clientSortOptions:ve,headerColumns:Qe,headersForRender:Te,updateSortField:se,isMultiSorting:ce,getMultiSortNumber:me}=fx(H,l,c,p,h,y,k,G,w,fe,Be,B,$e,$,Y,X,C,Ge,n),{rowsItemsComputed:Pt,rowsPerPageRef:xe,updateRowsPerPage:Mt}=mx(Be,I,D,F),{totalItems:Ut,selectItemsComputed:Rt,totalItemsLength:zt,toggleSelectAll:kn,toggleSelectItem:Sn}=yx(ve,f,Be,T,O,q,W,M,C,n),{currentPaginationNumber:Et,maxPaginationNumber:L,isLastPage:N,isFirstPage:ee,nextPage:re,prevPage:ge,updatePage:we,updateCurrentPaginationNumber:qe}=hx(u,Be,_,zt,xe,D,ze),{currentPageFirstIndex:J,currentPageLastIndex:le,multipleSelectStatus:Le,pageItems:De}=px(Et,fe,Be,T,xe,Rt,$,Ut,zt),st=a.computed(()=>Et.value===0?0:(Et.value-1)*xe.value),{expandingItemIndexList:pe,updateExpandingItemIndexList:mt,clearExpandingItemIndexList:Me}=cx(De,st,n),{fixedHeaders:ln,lastFixedColumn:At,fixedColumnsInfos:Va}=dx(Te),{clickRow:Zn}=ux(i,fe,$,n),Fa=(Se,jt)=>{Z.value&&jt.preventDefault(),n("contextmenuRow",Se,jt)},rn=Se=>{var jt;const be=(jt=Se.width)!=null?jt:ln.value.length?100:null;if(be)return`width: ${be}px; min-width: ${be}px;`},Qr=(Se,jt="th")=>{if(!ln.value.length)return;const be=Va.value.find(vt=>vt.value===Se);if(be)return`left: ${be.distance}px;z-index: ${jt==="th"?3:1};position: sticky;`};return a.watch(_,(Se,jt)=>{$e.value&&Se===!1&&jt===!0&&(qe($e.value.page),Me())}),a.watch(xe,Se=>{Be.value?Ke(Se):we(1)}),a.watch([W,f],()=>{Be.value||we(1)}),a.watch([Et,ve,q,W,f],()=>{Me()},{deep:!0}),a.watch(De,Se=>{n("updatePageItems",Se)},{deep:!0}),a.watch(Ut,Se=>{n("updateTotalItems",Se)},{deep:!0}),t({currentPageFirstIndex:J,currentPageLastIndex:le,clientItemsLength:zt,maxPaginationNumber:L,currentPaginationNumber:Et,isLastPage:N,isFirstPage:ee,nextPage:re,prevPage:ge,updatePage:we,rowsPerPageOptions:Pt,rowsPerPageActiveOption:xe,updateRowsPerPageActiveOption:Mt}),(Se,jt)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"dataTable",ref:oe,class:a.normalizeClass(["vue3-easy-data-table",[Se.tableClassName]])},[a.createElementVNode("div",{ref_key:"tableBody",ref:Ie,class:a.normalizeClass(["vue3-easy-data-table__main",{"fixed-header":a.unref(m),"fixed-height":a.unref(K),"show-shadow":Ee.value,"table-fixed":a.unref(ln).length,hoverable:!Se.noHover,"border-cell":Se.borderCell}])},[a.createElementVNode("table",{id:a.unref(o)},[a.createElementVNode("colgroup",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Te),(be,vt)=>(a.openBlock(),a.createElementBlock("col",{key:vt,style:a.normalizeStyle(rn(be))},null,4))),128))]),a.unref(E)["customize-headers"]?a.renderSlot(Se.$slots,"customize-headers",{key:0},void 0,!0):a.unref(Te).length&&!Se.hideHeader?(a.openBlock(),a.createElementBlock("thead",{key:1,class:a.normalizeClass(["vue3-easy-data-table__header",[Se.headerClassName]])},[a.createElementVNode("tr",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Te),(be,vt)=>(a.openBlock(),a.createElementBlock("th",{key:vt,class:a.normalizeClass([{sortable:be.sortable,none:be.sortable&&be.sortType==="none",desc:be.sortable&&be.sortType==="desc",asc:be.sortable&&be.sortType==="asc",shadow:be.value===a.unref(At)},typeof Se.headerItemClassName=="string"?Se.headerItemClassName:Se.headerItemClassName(be,vt+1)]),style:a.normalizeStyle(Qr(be.value)),onClick:a.withModifiers(it=>be.sortable&&be.sortType?a.unref(se)(be.value,be.sortType):null,["stop"])},[be.text==="checkbox"?(a.openBlock(),a.createBlock(I2,{key:a.unref(Le),status:a.unref(Le),onChange:a.unref(kn)},null,8,["status","onChange"])):(a.openBlock(),a.createElementBlock("span",{key:1,class:a.normalizeClass(["header",`direction-${a.unref(b)}`])},[a.unref(E)[`header-${be.value}`]?a.renderSlot(Se.$slots,`header-${be.value}`,a.normalizeProps(a.mergeProps({key:0},be)),void 0,!0):a.unref(E)[`header-${be.value.toLowerCase()}`]?a.renderSlot(Se.$slots,`header-${be.value.toLowerCase()}`,a.normalizeProps(a.mergeProps({key:1},be)),void 0,!0):a.unref(E).header?a.renderSlot(Se.$slots,"header",a.normalizeProps(a.mergeProps({key:2},be)),void 0,!0):(a.openBlock(),a.createElementBlock("span",Sx,a.toDisplayString(be.text),1)),be.sortable?(a.openBlock(),a.createElementBlock("i",{key:be.sortType?be.sortType:"none",class:a.normalizeClass(["sortType-icon",{desc:be.sortType==="desc"}])},null,2)):a.createCommentVNode("",!0),a.unref(C)&&a.unref(ce)(be.value)?(a.openBlock(),a.createElementBlock("span",Cx,a.toDisplayString(a.unref(me)(be.value)),1)):a.createCommentVNode("",!0)],2))],14,kx))),128))])],2)):a.createCommentVNode("",!0),a.unref(ie)?a.renderSlot(Se.$slots,"body",a.normalizeProps(a.mergeProps({key:2},a.unref(De))),void 0,!0):a.unref(Qe).length?(a.openBlock(),a.createElementBlock("tbody",{key:3,class:a.normalizeClass(["vue3-easy-data-table__body",{"row-alternation":Se.alternating}])},[a.renderSlot(Se.$slots,"body-prepend",a.normalizeProps(a.guardReactiveProps({items:a.unref(De),pagination:{isFirstPage:a.unref(ee),isLastPage:a.unref(N),currentPaginationNumber:a.unref(Et),maxPaginationNumber:a.unref(L),nextPage:a.unref(re),prevPage:a.unref(ge)},headers:a.unref(Te)})),void 0,!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(De),(be,vt)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:vt},[a.createElementVNode("tr",{class:a.normalizeClass([{"even-row":(vt+1)%2===0},typeof Se.bodyRowClassName=="string"?Se.bodyRowClassName:Se.bodyRowClassName(be,vt+1)]),onClick:it=>{a.unref(Zn)(be,"single",it),Se.clickRowToExpand&&a.unref(mt)(vt+a.unref(st),be,it)},onDblclick:it=>{a.unref(Zn)(be,"double",it)},onContextmenu:it=>{Fa(be,it)}},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Qe),(it,er)=>(a.openBlock(),a.createElementBlock("td",{key:er,style:a.normalizeStyle(Qr(it,"td")),class:a.normalizeClass([{shadow:it===a.unref(At),"can-expand":it==="expand"},typeof Se.bodyItemClassName=="string"?Se.bodyItemClassName:Se.bodyItemClassName(it,vt+1),`direction-${a.unref(s)}`]),onClick:Gt=>it==="expand"?a.unref(mt)(vt+a.unref(st),be,Gt):null},[a.unref(E)[`item-${it}`]?a.renderSlot(Se.$slots,`item-${it}`,a.normalizeProps(a.mergeProps({key:0},be)),void 0,!0):a.unref(E)[`item-${it.toLowerCase()}`]?a.renderSlot(Se.$slots,`item-${it.toLowerCase()}`,a.normalizeProps(a.mergeProps({key:1},be)),void 0,!0):it==="expand"?(a.openBlock(),a.createElementBlock("i",{key:2,class:a.normalizeClass(["expand-icon",{expanding:a.unref(pe).includes(a.unref(st)+vt)}])},null,2)):it==="checkbox"?(a.openBlock(),a.createBlock(M2,{key:3,checked:be[it],onChange:Gt=>a.unref(Sn)(be)},null,8,["checked","onChange"])):a.unref(E).item?a.renderSlot(Se.$slots,"item",a.normalizeProps(a.mergeProps({key:4},{column:it,item:be})),void 0,!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:5},[a.createTextVNode(a.toDisplayString(a.unref(gx)(it,be)),1)],64))],14,Ex))),128))],42,Tx),a.unref(G)&&a.unref(pe).includes(vt+a.unref(st))?(a.openBlock(),a.createElementBlock("tr",{key:0,class:a.normalizeClass([{"even-row":(vt+1)%2===0},typeof Se.bodyExpandRowClassName=="string"?Se.bodyExpandRowClassName:Se.bodyExpandRowClassName(be,vt+1)])},[a.createElementVNode("td",{colspan:a.unref(Te).length,class:"expand"},[be.expandLoading?(a.openBlock(),a.createBlock(Q2,{key:0,class:"expand-loading"})):a.createCommentVNode("",!0),a.renderSlot(Se.$slots,"expand",a.normalizeProps(a.guardReactiveProps(be)),void 0,!0)],8,xx)],2)):a.createCommentVNode("",!0)],64))),128)),a.renderSlot(Se.$slots,"body-append",a.normalizeProps(a.guardReactiveProps({items:a.unref(De),pagination:{isFirstPage:a.unref(ee),isLastPage:a.unref(N),currentPaginationNumber:a.unref(Et),maxPaginationNumber:a.unref(L),nextPage:a.unref(re),prevPage:a.unref(ge),updatePage:a.unref(we)},headers:a.unref(Te)})),void 0,!0)],2)):a.createCommentVNode("",!0)],8,wx),a.unref(_)?(a.openBlock(),a.createElementBlock("div",Px,[Ix,a.createElementVNode("div",Dx,[a.unref(R)?a.renderSlot(Se.$slots,"loading",{key:0},void 0,!0):(a.openBlock(),a.createBlock(K2,{key:1}))])])):a.createCommentVNode("",!0),!a.unref(De).length&&!a.unref(_)?(a.openBlock(),a.createElementBlock("div",Nx,[a.renderSlot(Se.$slots,"empty-message",{},()=>[a.createTextVNode(a.toDisplayString(Se.emptyMessage),1)],!0)])):a.createCommentVNode("",!0)],2),Se.hideFooter?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",Ox,[Se.hideRowsPerPage?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",Bx,[a.createTextVNode(a.toDisplayString(Se.rowsPerPageMessage)+" ",1),a.createVNode(H2,{modelValue:a.unref(xe),"onUpdate:modelValue":jt[0]||(jt[0]=be=>a.isRef(xe)?xe.value=be:null),"rows-items":a.unref(Pt)},null,8,["modelValue","rows-items"])])),a.createElementVNode("div",Mx,a.toDisplayString(`${a.unref(J)}–${a.unref(le)}`)+" "+a.toDisplayString(a.unref(S))+" "+a.toDisplayString(a.unref(zt)),1),a.unref(P)?a.renderSlot(Se.$slots,"pagination",a.normalizeProps(a.mergeProps({key:1},{isFirstPage:a.unref(ee),isLastPage:a.unref(N),currentPaginationNumber:a.unref(Et),maxPaginationNumber:a.unref(L),nextPage:a.unref(re),prevPage:a.unref(ge)})),void 0,!0):(a.openBlock(),a.createBlock(lx,{key:2,"is-first-page":a.unref(ee),"is-last-page":a.unref(N),onClickNextPage:a.unref(re),onClickPrevPage:a.unref(ge)},a.createSlots({_:2},[Se.buttonsPagination?{name:"buttonsPagination",fn:a.withCtx(()=>[a.createVNode(nx,{"current-pagination-number":a.unref(Et),"max-pagination-number":a.unref(L),onUpdatePage:a.unref(we)},null,8,["current-pagination-number","max-pagination-number","onUpdatePage"])]),key:"0"}:void 0]),1032,["is-first-page","is-last-page","onClickNextPage","onClickPrevPage"]))]))],2))}});var hh=Pr(Rx,[["__scopeId","data-v-32683533"]]);typeof window<"u"&&window.Vue&&window.Vue.createApp({}).component("Vue3EasyDataTable",hh);const Ax={class:"relative z-50 -mt-20 w-full -translate-y-0.5 rounded-2xl bg-white px-4 py-3 shadow"},$x={class:"my-[3px] flex w-full flex-col justify-between space-y-2 md:flex-row"},Lx={class:"items-center sm:flex","data-test-results":""},Vx={key:0,class:"flex w-full items-center md:mr-4 md:space-x-2"},Fx=a.createElementVNode("div",{class:"hidden md:block"}," Tonen ",-1),Hx={class:"hidden whitespace-nowrap md:flex","data-test-results-count":""},Ux=a.defineComponent({__name:"AppDataTableFooter",props:{dataTable:{},currentPage:{}},emits:["nextPage","previousPage","updatePage"],setup(e,{emit:t}){const n=e,r=a.computed(()=>n.dataTable),o=a.computed(()=>{var p;return((p=r.value)==null?void 0:p.clientItemsLength)??0}),i=a.computed(()=>{var p;return(p=r.value)==null?void 0:p.maxPaginationNumber}),s=a.computed(()=>{var p;return n.currentPage??((p=r.value)==null?void 0:p.currentPaginationNumber)});function l(){t("nextPage")}function u(){t("previousPage")}function c(p){t("updatePage",p)}function f(){t("updatePage",1)}return(p,h)=>(a.openBlock(),a.createElementBlock("div",Ax,[a.createElementVNode("div",$x,[a.createElementVNode("div",Lx,[r.value?(a.openBlock(),a.createElementBlock("div",Vx,[Fx,a.createVNode(a.unref(uh),{modelValue:r.value.rowsPerPageActiveOption,"onUpdate:modelValue":h[0]||(h[0]=m=>r.value.rowsPerPageActiveOption=m),"can-clear":!1,"can-deselect":!1,options:r.value.rowsPerPageOptions,"additional-classes":{singleLabel:"!p-3",caret:"!mr-2"},"open-direction":"up","wrapper-classes":"w-full",class:"h-10 w-full md:w-20",onChange:f},null,8,["modelValue","options"])])):a.createCommentVNode("",!0),a.createElementVNode("div",Hx,[a.renderSlot(p.$slots,"results",{results:o.value},()=>[a.createTextVNode(a.toDisplayString(o.value)+" results ",1)])])]),o.value>0?(a.openBlock(),a.createBlock(a.unref(mh),{key:0,"current-page":s.value,"last-page":i.value,onPaginate:c,onNextPage:l,onPreviousPage:u},null,8,["current-page","last-page"])):a.createCommentVNode("",!0)])]))}}),zx=a.defineComponent({inheritAttrs:!1,__name:"AppDataTable",props:{headers:{},items:{},modelValue:{},currentPage:{},rowItems:{default:()=>[20,50,100,200,500]},rowsPerPage:{default:50},actionBarSelection:{type:Boolean,default:!0},actionBarSelectionKey:{default:"id"}},emits:["update:modelValue","updatePage","clickItem"],setup(e,{expose:t,emit:n}){const r=e,o=a.useSlots(),i=qi(),s=ui.useKeyModifier("Alt"),l=ui.useKeyModifier("Shift"),u=a.ref(),c=a.ref((r==null?void 0:r.modelValue)??void 0),f=a.computed(()=>u.value);a.watch(()=>c.value,w=>{c.value&&n("update:modelValue",[...w.map(T=>T==null?void 0:T[r.actionBarSelectionKey])])}),a.onMounted(()=>{r!=null&&r.modelValue&&a.watch(r.modelValue,w=>{c.value=w})});function p(w){if(!w&&r.actionBarSelection){i.setSelection(c.value.map(T=>T==null?void 0:T[r.actionBarSelectionKey]));return}w&&r.actionBarSelection&&i.setSelection(w.map(T=>T==null?void 0:T[r.actionBarSelectionKey]))}function h(w){var T;(T=f.value)==null||T.updatePage(w),n("updatePage",w)}function m(){var w,T;(w=f.value)==null||w.prevPage(),n("updatePage",(((T=f.value)==null?void 0:T.currentPaginationNumber)??2)-1)}function y(){var w,T;(w=f.value)==null||w.nextPage(),n("updatePage",(((T=f.value)==null?void 0:T.currentPaginationNumber)??0)+1)}function k(w){if(s.value&&c.value!==void 0){const T=c.value.findIndex(O=>O.id===w.id);if(T>-1){c.value.splice(T,1),p();return}c.value.push({...w,isSelected:void 0}),p();return}n("clickItem",w)}function b(w){var T;if(l&&c.value&&((T=c.value??[])==null?void 0:T.length)>1){const O=r.items.findIndex(B=>{var C,I;return B.id===((I=(C=c.value)==null?void 0:C[(c.value??[]).length-1])==null?void 0:I.id)}),_=r.items.findIndex(B=>B.id===w.id);r.items.slice(O,_).forEach(B=>{c.value.findIndex(I=>I.id===B.id)===-1&&c.value.push({...B,isSelected:void 0})}),p()}}return t({dataTableInstance:f}),i.onResetSelection.value=w=>{(r==null?void 0:r.modelValue)!==void 0&&(c.value=w)},(w,T)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"app-table-without-selection":(r==null?void 0:r.modelValue)===void 0},"app-data-table-wrapper"])},[a.createVNode(a.unref(hh),a.mergeProps({ref_key:"dataTable",ref:u},{...w.$props,...w.$attrs},{"items-selected":c.value,"onUpdate:itemsSelected":[T[0]||(T[0]=O=>c.value=O),p],"hide-footer":!0,headers:w.headers,"checkbox-column-width":30,"rows-items":w.rowItems,"rows-per-page":w.rowsPerPage,"body-row-class-name":"drop-shadow rounded-xl",onClickRow:k,onSelectRow:b}),a.createSlots({loading:a.withCtx(()=>[a.createVNode(a.unref(Kr),{size:"medium"})]),_:2},[a.renderList(Object.keys(a.unref(o)),(O,_)=>({name:O,fn:a.withCtx(B=>[a.renderSlot(w.$slots,O,a.normalizeProps(a.guardReactiveProps(B)))])}))]),1040,["items-selected","headers","rows-items","rows-per-page"]),f.value?(a.openBlock(),a.createBlock(Ux,{key:0,"data-table":f.value,"current-page":w.currentPage,onNextPage:y,onPreviousPage:m,onUpdatePage:h},{results:a.withCtx(({results:O})=>[a.renderSlot(w.$slots,"footer-results",{results:O})]),_:3},8,["data-table","current-page"])):a.createCommentVNode("",!0)],2))}});const jx={default:["text-white"],danger:["text-red-500"]},Wx=a.defineComponent({__name:"AppActionBarItem",props:{action:{}},setup(e){const t=e,n=qi(),r=a.ref(null),o=a.ref(!1),i=a.ref(!1),s=a.computed(()=>i.value?Kr:o.value?Cp:t.action.icon),l=a.computed(()=>t.action.type??"default");async function u(){var c,f,p;if(t.action.confirm&&!o.value){o.value=!0;return}i.value=!0,o.value=!1,await((f=(c=t.action).onClick)==null?void 0:f.call(c)),i.value=!1,(((p=t.action)==null?void 0:p.resetSelection)??!0)&&n.resetSelection()}return ui.onClickOutside(r,()=>{o.value=!1}),(c,f)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"actionBarItem",ref:r,class:a.normalizeClass([a.unref(jx)[l.value],"cursor-pointer px-3 py-4 hover:bg-black-100/20"]),onClick:u},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s.value),{class:a.normalizeClass([{"text-yellow-600":o.value},"h-5 w-5"]),size:"small"},null,8,["class"]))],2))}}),qx={class:"flex py-4.5 text-sm"},Yx={class:"w-28 whitespace-nowrap pl-2","data-test-selection-text":""},Gx={class:"flex"},Tu=a.defineComponent({__name:"AppActionBar",setup(e){const{selection:t,actions:n,isOpen:r,close:o,resetSelection:i,selectionText:s}=qi(),l=a.ref([1]),u=a.computed(()=>s.value.replace(":selection",String(t.value.length)));function c(){l.value=[1],i()}function f(){i(),o()}return ui.onKeyStroke(["Escape"],p=>{p.preventDefault(),f()}),(p,h)=>{const m=a.resolveDirective("tippy");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"!translate-y-0":a.unref(t).length>0&&a.unref(r)},"fixed inset-x-0 top-0 z-100 -mt-14 flex h-14 -translate-y-24 items-center justify-between bg-secondary px-4 text-white transition-all ease-in-out md:sticky"])},[a.createElementVNode("div",qx,[a.createVNode(lh,{modelValue:l.value,"onUpdate:modelValue":h[0]||(h[0]=y=>l.value=y),value:1,type:"checkbox",onChange:c},null,8,["modelValue"]),a.createElementVNode("div",Yx,a.toDisplayString(u.value),1)]),a.createElementVNode("div",Gx,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(n),(y,k)=>a.withDirectives((a.openBlock(),a.createBlock(Wx,{key:`action-item-${k}`,action:y},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(y.icon),1)]),_:2},1032,["action"])),[[m,y.name]])),128))]),a.createElementVNode("div",null,[a.createVNode(a.unref(Fi),{class:"h-5 w-5 cursor-pointer",onClick:f})])],2)}}}),Ys=a.defineComponent({__name:"AppPaginationItem",props:{as:{type:[String,Object,Function],default:"a"},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.as),{class:a.normalizeClass([{"-ml-px !border-primary bg-primary text-white hover:!bg-primary":t.active,"border-y !border-y-zinc-300 !bg-zinc-100 !text-zinc-300":t.disabled,"hover:border-y hover:border-zinc-300 hover:bg-zinc-100":t.as==="a"},"-my-px flex items-center border-y border-r border-y-transparent border-r-zinc-300 px-3 py-1 last:border-r-0"])},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default")]),_:3},8,["class"]))}}),Kx={class:"flex items-center justify-between border-zinc-200 sm:px-6"},Xx=a.createElementVNode("span",{class:"sr-only"},"previous",-1),Jx=a.createElementVNode("span",{class:"sr-only"},"next",-1),mh=a.defineComponent({__name:"AppPagination",props:{meta:{default:void 0},currentPage:{default:void 0},lastPage:{default:void 0},loaded:{type:Boolean,default:!0}},emits:["paginate","nextPage","previousPage"],setup(e,{emit:t}){const n=e,r=a.ref(2),o=a.computed(()=>{var h,m;return((m=(h=n.meta)==null?void 0:h.meta)==null?void 0:m.currentPage)??n.currentPage??1}),i=a.computed(()=>{var h,m;return((m=(h=n.meta)==null?void 0:h.meta)==null?void 0:m.lastPage)??n.lastPage??1}),s=a.computed(()=>{const h=o.value-r.value;return h>0?h:1}),l=a.computed(()=>{const h=o.value+r.value;return h<i.value?h:i.value}),u=a.computed(()=>{const h=o.value-1;return h>0?h:null}),c=a.computed(()=>{const h=o.value+1;return h<=i.value?h:null}),f=a.computed(()=>{const h=[];s.value>1&&(h.push(1),s.value>2&&h.push(0));for(let m=s.value;m<=l.value;m+=1)h.push(m);return l.value<i.value&&(l.value+1!==i.value&&h.push(0),h.push(i.value)),h});function p(h){h&&t("paginate",h)}return(h,m)=>(a.openBlock(),a.createElementBlock("div",Kx,[a.createElementVNode("div",null,[a.createElementVNode("nav",{class:a.normalizeClass([{"pointer-events-none opacity-50":!h.loaded},"flex rounded-lg border border-zinc-300"]),"aria-label":"Pagination"},[a.createVNode(Ys,{disabled:u.value===null,href:"#",class:"rounded-l-lg",onClick:m[0]||(m[0]=a.withModifiers(()=>t("previousPage"),["prevent"]))},{default:a.withCtx(()=>[Xx,a.createVNode(a.unref(Ip),{class:"-mx-1.5 h-5 w-5 stroke-2","aria-hidden":"true"})]),_:1},8,["disabled"]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.value,y=>(a.openBlock(),a.createBlock(Ys,{key:`pagination-${y}`,as:y?"a":"span",active:y===o.value,href:"#",onClick:a.withModifiers(()=>p(y),["prevent"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(y||"..."),1)]),_:2},1032,["as","active","onClick"]))),128)),a.createVNode(Ys,{class:a.normalizeClass([{"cursor-not-allowed":c.value===null},"rounded-r-lg"]),disabled:c.value===null,href:"#",onClick:m[1]||(m[1]=a.withModifiers(()=>t("nextPage"),["prevent"]))},{default:a.withCtx(()=>[Jx,a.createVNode(a.unref(Zb),{class:"-mx-1.5 h-5 w-5 stroke-2","aria-hidden":"true"})]),_:1},8,["class","disabled"])],2)])]))}}),Qx=["aria-checked","disabled"],Zx=a.createElementVNode("span",{"aria-hidden":"true",class:"pointer-events-none inline-block h-5 w-5 translate-x-0 rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out group-aria-checked:!translate-x-6","data-test-handle":""},null,-1),eP=[Zx],tP=a.defineComponent({__name:"AppToggle",props:a.mergeModels({disabled:{type:Boolean,default:!1}},{modelValue:{type:Boolean,required:!1}}),emits:["update:modelValue"],setup(e){const t=e,n=a.useModel(e,"modelValue");function r(){t.disabled||(n.value=!n.value)}return(o,i)=>(a.openBlock(),a.createElementBlock("button",{"aria-checked":n.value,disabled:o.disabled,type:"button",class:"group relative inline-flex h-6 w-12 shrink-0 cursor-pointer rounded-full border-2 border-transparent bg-zinc-200 transition-colors duration-200 ease-in-out disabled:cursor-not-allowed disabled:opacity-60 aria-checked:bg-primary",role:"switch",onClick:r},eP,8,Qx))}}),Gs={instances:a.ref([])};function Cd(e){var t,n;(t=e==null?void 0:e.instance)==null||t.unmount(),(n=e==null?void 0:e.element)==null||n.remove()}function nP(){async function e(n){window.scrollTo(0,0);const r=document.createElement("div");document.body.append(r);let o=null;return new Promise(i=>{o=a.createApp(Dp,{...n,onClose:i}),o.mount(r),Gs.instances.value.push({instance:o,element:r})}).finally(()=>{o&&setTimeout(()=>{Cd({instance:o,element:r})},500)})}async function t(){return Gs.instances.value.forEach(n=>Cd(n)),Promise.resolve()}return{...Gs,open:e,close:t}}const Td={instances:a.ref([])};function Ed(e){var t,n;(t=e==null?void 0:e.instance)==null||t.unmount(),(n=e==null?void 0:e.element)==null||n.remove()}function rP(e,t){const n=a.ref();async function r(i){t&&(t.content=e),window.scrollTo(0,0);const s=document.createElement("div");document.body.append(s);let l=null,u=null;return new Promise(c=>{a.isRef(e)?u=e.value:(l=a.createApp(Np,{...t,...i,onClose:f=>{var p;(p=t==null?void 0:t.onClose)==null||p.call(t),c(f)}}),u=l.mount(s)),u.open(),n.value={ref:u,instance:l,element:s},Td.instances.value.push(n.value)}).finally(()=>{l&&setTimeout(()=>{Ed({ref:u,instance:l,element:s})},500)})}async function o(){var i;return(i=n.value)==null||i.ref.close(),setTimeout(()=>{n.value&&Ed(n.value)},300),Promise.resolve()}return{...Td,instance:n,open:r,close:o}}const nr={selection:a.ref([]),actions:a.ref([]),isOpen:a.ref(!1),onResetSelection:a.ref(),selectionText:a.ref(":selection selected")};function qi(){function e(s){nr.selection.value=s,i()}function t(s){nr.actions.value=s,i()}function n(){var s,l;nr.selection.value.splice(0),(l=(s=nr.onResetSelection).value)==null||l.call(s,nr.selection.value)}function r(s){nr.selectionText.value=s}function o(){nr.isOpen.value=!1}function i(){nr.isOpen.value=!0}return{...nr,resetSelection:n,setSelection:e,setSelectionText:r,setActions:t,open:i,close:o}}function Tl(e){"@babel/helpers - typeof";return Tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tl(e)}function Ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ht(e,t,n){return t&&xd(e.prototype,t),n&&xd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yo(){return yo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yo.apply(this,arguments)}function pn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&El(e,t)}function wi(e){return wi=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wi(e)}function El(e,t){return El=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},El(e,t)}function aP(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function oP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iP(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oP(e)}function hn(e){var t=aP();return function(){var r=wi(e),o;if(t){var i=wi(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return iP(this,o)}}var Eu=function(){function e(){Ft(this,e)}return Ht(e,[{key:"listenForWhisper",value:function(n,r){return this.listen(".client-"+n,r)}},{key:"notification",value:function(n){return this.listen(".Illuminate\\Notifications\\Events\\BroadcastNotificationCreated",n)}},{key:"stopListeningForWhisper",value:function(n,r){return this.stopListening(".client-"+n,r)}}]),e}(),vh=function(){function e(t){Ft(this,e),this.namespace=t}return Ht(e,[{key:"format",value:function(n){return n.charAt(0)==="."||n.charAt(0)==="\\"?n.substr(1):(this.namespace&&(n=this.namespace+"."+n),n.replace(/\./g,"\\"))}},{key:"setNamespace",value:function(n){this.namespace=n}}]),e}(),Yi=function(e){pn(n,e);var t=hn(n);function n(r,o,i){var s;return Ft(this,n),s=t.call(this),s.name=o,s.pusher=r,s.options=i,s.eventFormatter=new vh(s.options.namespace),s.subscribe(),s}return Ht(n,[{key:"subscribe",value:function(){this.subscription=this.pusher.subscribe(this.name)}},{key:"unsubscribe",value:function(){this.pusher.unsubscribe(this.name)}},{key:"listen",value:function(o,i){return this.on(this.eventFormatter.format(o),i),this}},{key:"listenToAll",value:function(o){var i=this;return this.subscription.bind_global(function(s,l){if(!s.startsWith("pusher:")){var u=i.options.namespace.replace(/\./g,"\\"),c=s.startsWith(u)?s.substring(u.length+1):"."+s;o(c,l)}}),this}},{key:"stopListening",value:function(o,i){return i?this.subscription.unbind(this.eventFormatter.format(o),i):this.subscription.unbind(this.eventFormatter.format(o)),this}},{key:"stopListeningToAll",value:function(o){return o?this.subscription.unbind_global(o):this.subscription.unbind_global(),this}},{key:"subscribed",value:function(o){return this.on("pusher:subscription_succeeded",function(){o()}),this}},{key:"error",value:function(o){return this.on("pusher:subscription_error",function(i){o(i)}),this}},{key:"on",value:function(o,i){return this.subscription.bind(o,i),this}}]),n}(Eu),sP=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"whisper",value:function(o,i){return this.pusher.channels.channels[this.name].trigger("client-".concat(o),i),this}}]),n}(Yi),lP=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"whisper",value:function(o,i){return this.pusher.channels.channels[this.name].trigger("client-".concat(o),i),this}}]),n}(Yi),uP=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"here",value:function(o){return this.on("pusher:subscription_succeeded",function(i){o(Object.keys(i.members).map(function(s){return i.members[s]}))}),this}},{key:"joining",value:function(o){return this.on("pusher:member_added",function(i){o(i.info)}),this}},{key:"whisper",value:function(o,i){return this.pusher.channels.channels[this.name].trigger("client-".concat(o),i),this}},{key:"leaving",value:function(o){return this.on("pusher:member_removed",function(i){o(i.info)}),this}}]),n}(Yi),gh=function(e){pn(n,e);var t=hn(n);function n(r,o,i){var s;return Ft(this,n),s=t.call(this),s.events={},s.listeners={},s.name=o,s.socket=r,s.options=i,s.eventFormatter=new vh(s.options.namespace),s.subscribe(),s}return Ht(n,[{key:"subscribe",value:function(){this.socket.emit("subscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"unsubscribe",value:function(){this.unbind(),this.socket.emit("unsubscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"listen",value:function(o,i){return this.on(this.eventFormatter.format(o),i),this}},{key:"stopListening",value:function(o,i){return this.unbindEvent(this.eventFormatter.format(o),i),this}},{key:"subscribed",value:function(o){return this.on("connect",function(i){o(i)}),this}},{key:"error",value:function(o){return this}},{key:"on",value:function(o,i){var s=this;return this.listeners[o]=this.listeners[o]||[],this.events[o]||(this.events[o]=function(l,u){s.name===l&&s.listeners[o]&&s.listeners[o].forEach(function(c){return c(u)})},this.socket.on(o,this.events[o])),this.listeners[o].push(i),this}},{key:"unbind",value:function(){var o=this;Object.keys(this.events).forEach(function(i){o.unbindEvent(i)})}},{key:"unbindEvent",value:function(o,i){this.listeners[o]=this.listeners[o]||[],i&&(this.listeners[o]=this.listeners[o].filter(function(s){return s!==i})),(!i||this.listeners[o].length===0)&&(this.events[o]&&(this.socket.removeListener(o,this.events[o]),delete this.events[o]),delete this.listeners[o])}}]),n}(Eu),yh=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"whisper",value:function(o,i){return this.socket.emit("client event",{channel:this.name,event:"client-".concat(o),data:i}),this}}]),n}(gh),cP=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"here",value:function(o){return this.on("presence:subscribed",function(i){o(i.map(function(s){return s.user_info}))}),this}},{key:"joining",value:function(o){return this.on("presence:joining",function(i){return o(i.user_info)}),this}},{key:"whisper",value:function(o,i){return this.socket.emit("client event",{channel:this.name,event:"client-".concat(o),data:i}),this}},{key:"leaving",value:function(o){return this.on("presence:leaving",function(i){return o(i.user_info)}),this}}]),n}(yh),ki=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"subscribe",value:function(){}},{key:"unsubscribe",value:function(){}},{key:"listen",value:function(o,i){return this}},{key:"listenToAll",value:function(o){return this}},{key:"stopListening",value:function(o,i){return this}},{key:"subscribed",value:function(o){return this}},{key:"error",value:function(o){return this}},{key:"on",value:function(o,i){return this}}]),n}(Eu),Pd=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"whisper",value:function(o,i){return this}}]),n}(ki),dP=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"here",value:function(o){return this}},{key:"joining",value:function(o){return this}},{key:"whisper",value:function(o,i){return this}},{key:"leaving",value:function(o){return this}}]),n}(ki),xu=function(){function e(t){Ft(this,e),this._defaultOptions={auth:{headers:{}},authEndpoint:"/broadcasting/auth",userAuthentication:{endpoint:"/broadcasting/user-auth",headers:{}},broadcaster:"pusher",csrfToken:null,bearerToken:null,host:null,key:null,namespace:"App.Events"},this.setOptions(t),this.connect()}return Ht(e,[{key:"setOptions",value:function(n){this.options=yo(this._defaultOptions,n);var r=this.csrfToken();return r&&(this.options.auth.headers["X-CSRF-TOKEN"]=r,this.options.userAuthentication.headers["X-CSRF-TOKEN"]=r),r=this.options.bearerToken,r&&(this.options.auth.headers.Authorization="Bearer "+r,this.options.userAuthentication.headers.Authorization="Bearer "+r),n}},{key:"csrfToken",value:function(){var n;return typeof window<"u"&&window.Laravel&&window.Laravel.csrfToken?window.Laravel.csrfToken:this.options.csrfToken?this.options.csrfToken:typeof document<"u"&&typeof document.querySelector=="function"&&(n=document.querySelector('meta[name="csrf-token"]'))?n.getAttribute("content"):null}}]),e}(),Id=function(e){pn(n,e);var t=hn(n);function n(){var r;return Ft(this,n),r=t.apply(this,arguments),r.channels={},r}return Ht(n,[{key:"connect",value:function(){typeof this.options.client<"u"?this.pusher=this.options.client:this.options.Pusher?this.pusher=new this.options.Pusher(this.options.key,this.options):this.pusher=new Pusher(this.options.key,this.options)}},{key:"signin",value:function(){this.pusher.signin()}},{key:"listen",value:function(o,i,s){return this.channel(o).listen(i,s)}},{key:"channel",value:function(o){return this.channels[o]||(this.channels[o]=new Yi(this.pusher,o,this.options)),this.channels[o]}},{key:"privateChannel",value:function(o){return this.channels["private-"+o]||(this.channels["private-"+o]=new sP(this.pusher,"private-"+o,this.options)),this.channels["private-"+o]}},{key:"encryptedPrivateChannel",value:function(o){return this.channels["private-encrypted-"+o]||(this.channels["private-encrypted-"+o]=new lP(this.pusher,"private-encrypted-"+o,this.options)),this.channels["private-encrypted-"+o]}},{key:"presenceChannel",value:function(o){return this.channels["presence-"+o]||(this.channels["presence-"+o]=new uP(this.pusher,"presence-"+o,this.options)),this.channels["presence-"+o]}},{key:"leave",value:function(o){var i=this,s=[o,"private-"+o,"private-encrypted-"+o,"presence-"+o];s.forEach(function(l,u){i.leaveChannel(l)})}},{key:"leaveChannel",value:function(o){this.channels[o]&&(this.channels[o].unsubscribe(),delete this.channels[o])}},{key:"socketId",value:function(){return this.pusher.connection.socket_id}},{key:"disconnect",value:function(){this.pusher.disconnect()}}]),n}(xu),fP=function(e){pn(n,e);var t=hn(n);function n(){var r;return Ft(this,n),r=t.apply(this,arguments),r.channels={},r}return Ht(n,[{key:"connect",value:function(){var o=this,i=this.getSocketIO();return this.socket=i(this.options.host,this.options),this.socket.on("reconnect",function(){Object.values(o.channels).forEach(function(s){s.subscribe()})}),this.socket}},{key:"getSocketIO",value:function(){if(typeof this.options.client<"u")return this.options.client;if(typeof io<"u")return io;throw new Error("Socket.io client not found. Should be globally available or passed via options.client")}},{key:"listen",value:function(o,i,s){return this.channel(o).listen(i,s)}},{key:"channel",value:function(o){return this.channels[o]||(this.channels[o]=new gh(this.socket,o,this.options)),this.channels[o]}},{key:"privateChannel",value:function(o){return this.channels["private-"+o]||(this.channels["private-"+o]=new yh(this.socket,"private-"+o,this.options)),this.channels["private-"+o]}},{key:"presenceChannel",value:function(o){return this.channels["presence-"+o]||(this.channels["presence-"+o]=new cP(this.socket,"presence-"+o,this.options)),this.channels["presence-"+o]}},{key:"leave",value:function(o){var i=this,s=[o,"private-"+o,"presence-"+o];s.forEach(function(l){i.leaveChannel(l)})}},{key:"leaveChannel",value:function(o){this.channels[o]&&(this.channels[o].unsubscribe(),delete this.channels[o])}},{key:"socketId",value:function(){return this.socket.id}},{key:"disconnect",value:function(){this.socket.disconnect()}}]),n}(xu),pP=function(e){pn(n,e);var t=hn(n);function n(){var r;return Ft(this,n),r=t.apply(this,arguments),r.channels={},r}return Ht(n,[{key:"connect",value:function(){}},{key:"listen",value:function(o,i,s){return new ki}},{key:"channel",value:function(o){return new ki}},{key:"privateChannel",value:function(o){return new Pd}},{key:"encryptedPrivateChannel",value:function(o){return new Pd}},{key:"presenceChannel",value:function(o){return new dP}},{key:"leave",value:function(o){}},{key:"leaveChannel",value:function(o){}},{key:"socketId",value:function(){return"fake-socket-id"}},{key:"disconnect",value:function(){}}]),n}(xu),hP=function(){function e(t){Ft(this,e),this.options=t,this.connect(),this.options.withoutInterceptors||this.registerInterceptors()}return Ht(e,[{key:"channel",value:function(n){return this.connector.channel(n)}},{key:"connect",value:function(){this.options.broadcaster=="reverb"?this.connector=new Id(yo(yo({},this.options),{cluster:""})):this.options.broadcaster=="pusher"?this.connector=new Id(this.options):this.options.broadcaster=="socket.io"?this.connector=new fP(this.options):this.options.broadcaster=="null"?this.connector=new pP(this.options):typeof this.options.broadcaster=="function"&&(this.connector=new this.options.broadcaster(this.options))}},{key:"disconnect",value:function(){this.connector.disconnect()}},{key:"join",value:function(n){return this.connector.presenceChannel(n)}},{key:"leave",value:function(n){this.connector.leave(n)}},{key:"leaveChannel",value:function(n){this.connector.leaveChannel(n)}},{key:"leaveAllChannels",value:function(){for(var n in this.connector.channels)this.leaveChannel(n)}},{key:"listen",value:function(n,r,o){return this.connector.listen(n,r,o)}},{key:"private",value:function(n){return this.connector.privateChannel(n)}},{key:"encryptedPrivate",value:function(n){return this.connector.encryptedPrivateChannel(n)}},{key:"socketId",value:function(){return this.connector.socketId()}},{key:"registerInterceptors",value:function(){typeof Vue=="function"&&Vue.http&&this.registerVueRequestInterceptor(),typeof axios=="function"&&this.registerAxiosRequestInterceptor(),typeof jQuery=="function"&&this.registerjQueryAjaxSetup(),(typeof Turbo>"u"?"undefined":Tl(Turbo))==="object"&&this.registerTurboRequestInterceptor()}},{key:"registerVueRequestInterceptor",value:function(){var n=this;Vue.http.interceptors.push(function(r,o){n.socketId()&&r.headers.set("X-Socket-ID",n.socketId()),o()})}},{key:"registerAxiosRequestInterceptor",value:function(){var n=this;axios.interceptors.request.use(function(r){return n.socketId()&&(r.headers["X-Socket-Id"]=n.socketId()),r})}},{key:"registerjQueryAjaxSetup",value:function(){var n=this;typeof jQuery.ajax<"u"&&jQuery.ajaxPrefilter(function(r,o,i){n.socketId()&&i.setRequestHeader("X-Socket-Id",n.socketId())})}},{key:"registerTurboRequestInterceptor",value:function(){var n=this;document.addEventListener("turbo:before-fetch-request",function(r){r.detail.fetchOptions.headers["X-Socket-Id"]=n.socketId()})}}]),e}(),bh={exports:{}};/*!
75
75
  * Pusher JavaScript Library v8.4.0-rc2
76
76
  * https://pusher.com/
77
77
  *
78
78
  * Copyright 2020, Pusher
79
79
  * Released under the MIT licence.
80
- */(function(e,t){(function(r,o){e.exports=o()})(window,function(){return function(n){var r={};function o(i){if(r[i])return r[i].exports;var s=r[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=n,o.c=r,o.d=function(i,s,l){o.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:l})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,s){if(s&1&&(i=o(i)),s&8||s&4&&typeof i=="object"&&i&&i.__esModule)return i;var l=Object.create(null);if(o.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:i}),s&2&&typeof i!="string")for(var u in i)o.d(l,u,(function(c){return i[c]}).bind(null,u));return l},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=2)}([function(n,r,o){var i=this&&this.__extends||function(){var k=function(_,w){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,N){T.__proto__=N}||function(T,N){for(var b in N)N.hasOwnProperty(b)&&(T[b]=N[b])},k(_,w)};return function(_,w){k(_,w);function T(){this.constructor=_}_.prototype=w===null?Object.create(w):(T.prototype=w.prototype,new T)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=256,l=function(){function k(_){_===void 0&&(_="="),this._paddingCharacter=_}return k.prototype.encodedLength=function(_){return this._paddingCharacter?(_+2)/3*4|0:(_*8+5)/6|0},k.prototype.encode=function(_){for(var w="",T=0;T<_.length-2;T+=3){var N=_[T]<<16|_[T+1]<<8|_[T+2];w+=this._encodeByte(N>>>3*6&63),w+=this._encodeByte(N>>>2*6&63),w+=this._encodeByte(N>>>1*6&63),w+=this._encodeByte(N>>>0*6&63)}var b=_.length-T;if(b>0){var N=_[T]<<16|(b===2?_[T+1]<<8:0);w+=this._encodeByte(N>>>3*6&63),w+=this._encodeByte(N>>>2*6&63),b===2?w+=this._encodeByte(N>>>1*6&63):w+=this._paddingCharacter||"",w+=this._paddingCharacter||""}return w},k.prototype.maxDecodedLength=function(_){return this._paddingCharacter?_/4*3|0:(_*6+7)/8|0},k.prototype.decodedLength=function(_){return this.maxDecodedLength(_.length-this._getPaddingLength(_))},k.prototype.decode=function(_){if(_.length===0)return new Uint8Array(0);for(var w=this._getPaddingLength(_),T=_.length-w,N=new Uint8Array(this.maxDecodedLength(T)),b=0,B=0,C=0,I=0,F=0,q=0,W=0;B<T-4;B+=4)I=this._decodeChar(_.charCodeAt(B+0)),F=this._decodeChar(_.charCodeAt(B+1)),q=this._decodeChar(_.charCodeAt(B+2)),W=this._decodeChar(_.charCodeAt(B+3)),N[b++]=I<<2|F>>>4,N[b++]=F<<4|q>>>2,N[b++]=q<<6|W,C|=I&s,C|=F&s,C|=q&s,C|=W&s;if(B<T-1&&(I=this._decodeChar(_.charCodeAt(B)),F=this._decodeChar(_.charCodeAt(B+1)),N[b++]=I<<2|F>>>4,C|=I&s,C|=F&s),B<T-2&&(q=this._decodeChar(_.charCodeAt(B+2)),N[b++]=F<<4|q>>>2,C|=q&s),B<T-3&&(W=this._decodeChar(_.charCodeAt(B+3)),N[b++]=q<<6|W,C|=W&s),C!==0)throw new Error("Base64Coder: incorrect characters for decoding");return N},k.prototype._encodeByte=function(_){var w=_;return w+=65,w+=25-_>>>8&0-65-26+97,w+=51-_>>>8&26-97-52+48,w+=61-_>>>8&52-48-62+43,w+=62-_>>>8&62-43-63+47,String.fromCharCode(w)},k.prototype._decodeChar=function(_){var w=s;return w+=(42-_&_-44)>>>8&-s+_-43+62,w+=(46-_&_-48)>>>8&-s+_-47+63,w+=(47-_&_-58)>>>8&-s+_-48+52,w+=(64-_&_-91)>>>8&-s+_-65+0,w+=(96-_&_-123)>>>8&-s+_-97+26,w},k.prototype._getPaddingLength=function(_){var w=0;if(this._paddingCharacter){for(var T=_.length-1;T>=0&&_[T]===this._paddingCharacter;T--)w++;if(_.length<4||w>2)throw new Error("Base64Coder: incorrect padding")}return w},k}();r.Coder=l;var u=new l;function c(k){return u.encode(k)}r.encode=c;function f(k){return u.decode(k)}r.decode=f;var p=function(k){i(_,k);function _(){return k!==null&&k.apply(this,arguments)||this}return _.prototype._encodeByte=function(w){var T=w;return T+=65,T+=25-w>>>8&0-65-26+97,T+=51-w>>>8&26-97-52+48,T+=61-w>>>8&52-48-62+45,T+=62-w>>>8&62-45-63+95,String.fromCharCode(T)},_.prototype._decodeChar=function(w){var T=s;return T+=(44-w&w-46)>>>8&-s+w-45+62,T+=(94-w&w-96)>>>8&-s+w-95+63,T+=(47-w&w-58)>>>8&-s+w-48+52,T+=(64-w&w-91)>>>8&-s+w-65+0,T+=(96-w&w-123)>>>8&-s+w-97+26,T},_}(l);r.URLSafeCoder=p;var h=new p;function m(k){return h.encode(k)}r.encodeURLSafe=m;function y(k){return h.decode(k)}r.decodeURLSafe=y,r.encodedLength=function(k){return u.encodedLength(k)},r.maxDecodedLength=function(k){return u.maxDecodedLength(k)},r.decodedLength=function(k){return u.decodedLength(k)}},function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i="utf8: invalid string",s="utf8: invalid source encoding";function l(f){for(var p=new Uint8Array(u(f)),h=0,m=0;m<f.length;m++){var y=f.charCodeAt(m);y<128?p[h++]=y:y<2048?(p[h++]=192|y>>6,p[h++]=128|y&63):y<55296?(p[h++]=224|y>>12,p[h++]=128|y>>6&63,p[h++]=128|y&63):(m++,y=(y&1023)<<10,y|=f.charCodeAt(m)&1023,y+=65536,p[h++]=240|y>>18,p[h++]=128|y>>12&63,p[h++]=128|y>>6&63,p[h++]=128|y&63)}return p}r.encode=l;function u(f){for(var p=0,h=0;h<f.length;h++){var m=f.charCodeAt(h);if(m<128)p+=1;else if(m<2048)p+=2;else if(m<55296)p+=3;else if(m<=57343){if(h>=f.length-1)throw new Error(i);h++,p+=4}else throw new Error(i)}return p}r.encodedLength=u;function c(f){for(var p=[],h=0;h<f.length;h++){var m=f[h];if(m&128){var y=void 0;if(m<224){if(h>=f.length)throw new Error(s);var k=f[++h];if((k&192)!==128)throw new Error(s);m=(m&31)<<6|k&63,y=128}else if(m<240){if(h>=f.length-1)throw new Error(s);var k=f[++h],_=f[++h];if((k&192)!==128||(_&192)!==128)throw new Error(s);m=(m&15)<<12|(k&63)<<6|_&63,y=2048}else if(m<248){if(h>=f.length-2)throw new Error(s);var k=f[++h],_=f[++h],w=f[++h];if((k&192)!==128||(_&192)!==128||(w&192)!==128)throw new Error(s);m=(m&15)<<18|(k&63)<<12|(_&63)<<6|w&63,y=65536}else throw new Error(s);if(m<y||m>=55296&&m<=57343)throw new Error(s);if(m>=65536){if(m>1114111)throw new Error(s);m-=65536,p.push(String.fromCharCode(55296|m>>10)),m=56320|m&1023}}p.push(String.fromCharCode(m))}return p.join("")}r.decode=c},function(n,r,o){n.exports=o(3).default},function(n,r,o){o.r(r);class i{constructor(d,v){this.lastId=0,this.prefix=d,this.name=v}create(d){this.lastId++;var v=this.lastId,x=this.prefix+v,A=this.name+"["+v+"]",te=!1,ue=function(){te||(d.apply(null,arguments),te=!0)};return this[v]=ue,{number:v,id:x,name:A,callback:ue}}remove(d){delete this[d.number]}}var s=new i("_pusher_script_","Pusher.ScriptReceivers"),l={VERSION:"8.4.0-rc2",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},u=l;class c{constructor(d){this.options=d,this.receivers=d.receivers||s,this.loading={}}load(d,v,x){var A=this;if(A.loading[d]&&A.loading[d].length>0)A.loading[d].push(x);else{A.loading[d]=[x];var te=Ae.createScriptRequest(A.getPath(d,v)),ue=A.receivers.create(function(_e){if(A.receivers.remove(ue),A.loading[d]){var Re=A.loading[d];delete A.loading[d];for(var Ze=function(xt){xt||te.cleanup()},rt=0;rt<Re.length;rt++)Re[rt](_e,Ze)}});te.send(ue)}}getRoot(d){var v,x=Ae.getDocument().location.protocol;return d&&d.useTLS||x==="https:"?v=this.options.cdn_https:v=this.options.cdn_http,v.replace(/\/*$/,"")+"/"+this.options.version}getPath(d,v){return this.getRoot(v)+"/"+d+this.options.suffix+".js"}}var f=new i("_pusher_dependencies","Pusher.DependenciesReceivers"),p=new c({cdn_http:u.cdn_http,cdn_https:u.cdn_https,version:u.VERSION,suffix:u.dependency_suffix,receivers:f});const h={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}};var y={buildLogSuffix:function(g){const d="See:",v=h.urls[g];if(!v)return"";let x;return v.fullUrl?x=v.fullUrl:v.path&&(x=h.baseUrl+v.path),x?`${d} ${x}`:""}},k;(function(g){g.UserAuthentication="user-authentication",g.ChannelAuthorization="channel-authorization"})(k||(k={}));class _ extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class w extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class T extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class N extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class b extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class B extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class C extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class I extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class F extends Error{constructor(d,v){super(v),this.status=d,Object.setPrototypeOf(this,new.target.prototype)}}var W=function(g,d,v,x,A){const te=Ae.createXHR();te.open("POST",v.endpoint,!0),te.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var ue in v.headers)te.setRequestHeader(ue,v.headers[ue]);if(v.headersProvider!=null){let _e=v.headersProvider();for(var ue in _e)te.setRequestHeader(ue,_e[ue])}return te.onreadystatechange=function(){if(te.readyState===4)if(te.status===200){let _e,Re=!1;try{_e=JSON.parse(te.responseText),Re=!0}catch{A(new F(200,`JSON returned from ${x.toString()} endpoint was invalid, yet status code was 200. Data was: ${te.responseText}`),null)}Re&&A(null,_e)}else{let _e="";switch(x){case k.UserAuthentication:_e=y.buildLogSuffix("authenticationEndpoint");break;case k.ChannelAuthorization:_e=`Clients must be authorized to join private or presence channels. ${y.buildLogSuffix("authorizationEndpoint")}`;break}A(new F(te.status,`Unable to retrieve auth string from ${x.toString()} endpoint - received status: ${te.status} from ${v.endpoint}. ${_e}`),null)}},te.send(d),te};function M(g){return j(X(g))}var D=String.fromCharCode,$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Y=function(g){var d=g.charCodeAt(0);return d<128?g:d<2048?D(192|d>>>6)+D(128|d&63):D(224|d>>>12&15)+D(128|d>>>6&63)+D(128|d&63)},X=function(g){return g.replace(/[^\x00-\x7F]/g,Y)},K=function(g){var d=[0,2,1][g.length%3],v=g.charCodeAt(0)<<16|(g.length>1?g.charCodeAt(1):0)<<8|(g.length>2?g.charCodeAt(2):0),x=[$.charAt(v>>>18),$.charAt(v>>>12&63),d>=2?"=":$.charAt(v>>>6&63),d>=1?"=":$.charAt(v&63)];return x.join("")},j=window.btoa||function(g){return g.replace(/[\s\S]{1,3}/g,K)};class U{constructor(d,v,x,A){this.clear=v,this.timer=d(()=>{this.timer&&(this.timer=A(this.timer))},x)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}var S=U;function H(g){window.clearTimeout(g)}function Z(g){window.clearInterval(g)}class Q extends S{constructor(d,v){super(setTimeout,H,d,function(x){return v(),null})}}class V extends S{constructor(d,v){super(setInterval,Z,d,function(x){return v(),x})}}var E={now(){return Date.now?Date.now():new Date().valueOf()},defer(g){return new Q(0,g)},method(g,...d){var v=Array.prototype.slice.call(arguments,1);return function(x){return x[g].apply(x,v.concat(arguments))}}},P=E;function R(g,...d){for(var v=0;v<d.length;v++){var x=d[v];for(var A in x)x[A]&&x[A].constructor&&x[A].constructor===Object?g[A]=R(g[A]||{},x[A]):g[A]=x[A]}return g}function G(){for(var g=["Pusher"],d=0;d<arguments.length;d++)typeof arguments[d]=="string"?g.push(arguments[d]):g.push(me(arguments[d]));return g.join(" : ")}function ie(g,d){var v=Array.prototype.indexOf;if(g===null)return-1;if(v&&g.indexOf===v)return g.indexOf(d);for(var x=0,A=g.length;x<A;x++)if(g[x]===d)return x;return-1}function oe(g,d){for(var v in g)Object.prototype.hasOwnProperty.call(g,v)&&d(g[v],v,g)}function Ie(g){var d=[];return oe(g,function(v,x){d.push(x)}),d}function Ee(g){var d=[];return oe(g,function(v){d.push(v)}),d}function fe(g,d,v){for(var x=0;x<g.length;x++)d.call(v||window,g[x],x,g)}function Be(g,d){for(var v=[],x=0;x<g.length;x++)v.push(d(g[x],x,g,v));return v}function $e(g,d){var v={};return oe(g,function(x,A){v[A]=d(x)}),v}function ze(g,d){d=d||function(A){return!!A};for(var v=[],x=0;x<g.length;x++)d(g[x],x,g,v)&&v.push(g[x]);return v}function Ge(g,d){var v={};return oe(g,function(x,A){(d&&d(x,A,g,v)||x)&&(v[A]=x)}),v}function Ke(g){var d=[];return oe(g,function(v,x){d.push([x,v])}),d}function ve(g,d){for(var v=0;v<g.length;v++)if(d(g[v],v,g))return!0;return!1}function Qe(g,d){for(var v=0;v<g.length;v++)if(!d(g[v],v,g))return!1;return!0}function Te(g){return $e(g,function(d){return typeof d=="object"&&(d=me(d)),encodeURIComponent(M(d.toString()))})}function se(g){var d=Ge(g,function(x){return x!==void 0}),v=Be(Ke(Te(d)),P.method("join","=")).join("&");return v}function ce(g){var d=[],v=[];return function x(A,te){var ue,_e,Re;switch(typeof A){case"object":if(!A)return null;for(ue=0;ue<d.length;ue+=1)if(d[ue]===A)return{$ref:v[ue]};if(d.push(A),v.push(te),Object.prototype.toString.apply(A)==="[object Array]")for(Re=[],ue=0;ue<A.length;ue+=1)Re[ue]=x(A[ue],te+"["+ue+"]");else{Re={};for(_e in A)Object.prototype.hasOwnProperty.call(A,_e)&&(Re[_e]=x(A[_e],te+"["+JSON.stringify(_e)+"]"))}return Re;case"number":case"string":case"boolean":return A}}(g,"$")}function me(g){try{return JSON.stringify(g)}catch{return JSON.stringify(ce(g))}}class Pt{constructor(){this.globalLog=d=>{window.console&&window.console.log&&window.console.log(d)}}debug(...d){this.log(this.globalLog,d)}warn(...d){this.log(this.globalLogWarn,d)}error(...d){this.log(this.globalLogError,d)}globalLogWarn(d){window.console&&window.console.warn?window.console.warn(d):this.globalLog(d)}globalLogError(d){window.console&&window.console.error?window.console.error(d):this.globalLogWarn(d)}log(d,...v){var x=G.apply(this,arguments);Ts.log?Ts.log(x):Ts.logToConsole&&d.bind(this)(x)}}var xe=new Pt,Mt=function(g,d,v,x,A){(v.headers!==void 0||v.headersProvider!=null)&&xe.warn(`To send headers with the ${x.toString()} request, you must use AJAX, rather than JSONP.`);var te=g.nextAuthCallbackID.toString();g.nextAuthCallbackID++;var ue=g.getDocument(),_e=ue.createElement("script");g.auth_callbacks[te]=function(rt){A(null,rt)};var Re="Pusher.auth_callbacks['"+te+"']";_e.src=v.endpoint+"?callback="+encodeURIComponent(Re)+"&"+d;var Ze=ue.getElementsByTagName("head")[0]||ue.documentElement;Ze.insertBefore(_e,Ze.firstChild)},Ut=Mt;class Rt{constructor(d){this.src=d}send(d){var v=this,x="Error loading "+v.src;v.script=document.createElement("script"),v.script.id=d.id,v.script.src=v.src,v.script.type="text/javascript",v.script.charset="UTF-8",v.script.addEventListener?(v.script.onerror=function(){d.callback(x)},v.script.onload=function(){d.callback(null)}):v.script.onreadystatechange=function(){(v.script.readyState==="loaded"||v.script.readyState==="complete")&&d.callback(null)},v.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(v.errorScript=document.createElement("script"),v.errorScript.id=d.id+"_error",v.errorScript.text=d.name+"('"+x+"');",v.script.async=v.errorScript.async=!1):v.script.async=!0;var A=document.getElementsByTagName("head")[0];A.insertBefore(v.script,A.firstChild),v.errorScript&&A.insertBefore(v.errorScript,v.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class zt{constructor(d,v){this.url=d,this.data=v}send(d){if(!this.request){var v=se(this.data),x=this.url+"/"+d.number+"?"+v;this.request=Ae.createScriptRequest(x),this.request.send(d)}}cleanup(){this.request&&this.request.cleanup()}}var kn=function(g,d){return function(v,x){var A="http"+(d?"s":"")+"://",te=A+(g.host||g.options.host)+g.options.path,ue=Ae.createJSONPRequest(te,v),_e=Ae.ScriptReceivers.create(function(Re,Ze){s.remove(_e),ue.cleanup(),Ze&&Ze.host&&(g.host=Ze.host),x&&x(Re,Ze)});ue.send(_e)}},Sn={name:"jsonp",getAgent:kn},Et=Sn;function L(g,d,v){var x=g+(d.useTLS?"s":""),A=d.useTLS?d.hostTLS:d.hostNonTLS;return x+"://"+A+v}function O(g,d){var v="/app/"+g,x="?protocol="+u.PROTOCOL+"&client=js&version="+u.VERSION+(d?"&"+d:"");return v+x}var ee={getInitial:function(g,d){var v=(d.httpPath||"")+O(g,"flash=false");return L("ws",d,v)}},re={getInitial:function(g,d){var v=(d.httpPath||"/pusher")+O(g);return L("http",d,v)}},ge={getInitial:function(g,d){return L("http",d,d.httpPath||"/pusher")},getPath:function(g,d){return O(g)}};class we{constructor(){this._callbacks={}}get(d){return this._callbacks[qe(d)]}add(d,v,x){var A=qe(d);this._callbacks[A]=this._callbacks[A]||[],this._callbacks[A].push({fn:v,context:x})}remove(d,v,x){if(!d&&!v&&!x){this._callbacks={};return}var A=d?[qe(d)]:Ie(this._callbacks);v||x?this.removeCallback(A,v,x):this.removeAllCallbacks(A)}removeCallback(d,v,x){fe(d,function(A){this._callbacks[A]=ze(this._callbacks[A]||[],function(te){return v&&v!==te.fn||x&&x!==te.context}),this._callbacks[A].length===0&&delete this._callbacks[A]},this)}removeAllCallbacks(d){fe(d,function(v){delete this._callbacks[v]},this)}}function qe(g){return"_"+g}class J{constructor(d){this.callbacks=new we,this.global_callbacks=[],this.failThrough=d}bind(d,v,x){return this.callbacks.add(d,v,x),this}bind_global(d){return this.global_callbacks.push(d),this}unbind(d,v,x){return this.callbacks.remove(d,v,x),this}unbind_global(d){return d?(this.global_callbacks=ze(this.global_callbacks||[],v=>v!==d),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(d,v,x){for(var A=0;A<this.global_callbacks.length;A++)this.global_callbacks[A](d,v);var te=this.callbacks.get(d),ue=[];if(x?ue.push(v,x):v&&ue.push(v),te&&te.length>0)for(var A=0;A<te.length;A++)te[A].fn.apply(te[A].context||window,ue);else this.failThrough&&this.failThrough(d,v);return this}}class le extends J{constructor(d,v,x,A,te){super(),this.initialize=Ae.transportConnectionInitializer,this.hooks=d,this.name=v,this.priority=x,this.key=A,this.options=te,this.state="new",this.timeline=te.timeline,this.activityTimeout=te.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return!!this.hooks.handlesActivityChecks}supportsPing(){return!!this.hooks.supportsPing}connect(){if(this.socket||this.state!=="initialized")return!1;var d=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(d,this.options)}catch(v){return P.defer(()=>{this.onError(v),this.changeState("closed")}),!1}return this.bindListeners(),xe.debug("Connecting",{transport:this.name,url:d}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(d){return this.state==="open"?(P.defer(()=>{this.socket&&this.socket.send(d)}),!0):!1}ping(){this.state==="open"&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(d){this.emit("error",{type:"WebSocketError",error:d}),this.timeline.error(this.buildTimelineMessage({error:d.toString()}))}onClose(d){d?this.changeState("closed",{code:d.code,reason:d.reason,wasClean:d.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(d){this.emit("message",d)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=d=>{this.onError(d)},this.socket.onclose=d=>{this.onClose(d)},this.socket.onmessage=d=>{this.onMessage(d)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(d,v){this.state=d,this.timeline.info(this.buildTimelineMessage({state:d,params:v})),this.emit(d,v)}buildTimelineMessage(d){return R({cid:this.id},d)}}class Le{constructor(d){this.hooks=d}isSupported(d){return this.hooks.isSupported(d)}createConnection(d,v,x,A){return new le(this.hooks,d,v,x,A)}}var De=new Le({urls:ee,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!Ae.getWebSocketAPI()},isSupported:function(){return!!Ae.getWebSocketAPI()},getSocket:function(g){return Ae.createWebSocket(g)}}),st={urls:re,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},pe=R({getSocket:function(g){return Ae.HTTPFactory.createStreamingSocket(g)}},st),mt=R({getSocket:function(g){return Ae.HTTPFactory.createPollingSocket(g)}},st),Me={isSupported:function(){return Ae.isXHRSupported()}},ln=new Le(R({},pe,Me)),At=new Le(R({},mt,Me)),Va={ws:De,xhr_streaming:ln,xhr_polling:At},Zn=Va,Fa=new Le({file:"sockjs",urls:ge,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(g,d){return new window.SockJS(g,null,{js_path:p.getPath("sockjs",{useTLS:d.useTLS}),ignore_null_origin:d.ignoreNullOrigin})},beforeOpen:function(g,d){g.send(JSON.stringify({path:d}))}}),rn={isSupported:function(g){var d=Ae.isXDRSupported(g.useTLS);return d}},Jr=new Le(R({},pe,rn)),Se=new Le(R({},mt,rn));Zn.xdr_streaming=Jr,Zn.xdr_polling=Se,Zn.sockjs=Fa;var jt=Zn;class be extends J{constructor(){super();var d=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){d.emit("online")},!1),window.addEventListener("offline",function(){d.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var vt=new be;class it{constructor(d,v,x){this.manager=d,this.transport=v,this.minPingDelay=x.minPingDelay,this.maxPingDelay=x.maxPingDelay,this.pingDelay=void 0}createConnection(d,v,x,A){A=R({},A,{activityTimeout:this.pingDelay});var te=this.transport.createConnection(d,v,x,A),ue=null,_e=function(){te.unbind("open",_e),te.bind("closed",Re),ue=P.now()},Re=Ze=>{if(te.unbind("closed",Re),Ze.code===1002||Ze.code===1003)this.manager.reportDeath();else if(!Ze.wasClean&&ue){var rt=P.now()-ue;rt<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(rt/2,this.minPingDelay))}};return te.bind("open",_e),te}isSupported(d){return this.manager.isAlive()&&this.transport.isSupported(d)}}const er={decodeMessage:function(g){try{var d=JSON.parse(g.data),v=d.data;if(typeof v=="string")try{v=JSON.parse(d.data)}catch{}var x={event:d.event,channel:d.channel,data:v};return d.user_id&&(x.user_id=d.user_id),x}catch(A){throw{type:"MessageParseError",error:A,data:g.data}}},encodeMessage:function(g){return JSON.stringify(g)},processHandshake:function(g){var d=er.decodeMessage(g);if(d.event==="pusher:connection_established"){if(!d.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:d.data.socket_id,activityTimeout:d.data.activity_timeout*1e3}}else{if(d.event==="pusher:error")return{action:this.getCloseAction(d.data),error:this.getCloseError(d.data)};throw"Invalid handshake"}},getCloseAction:function(g){return g.code<4e3?g.code>=1002&&g.code<=1004?"backoff":null:g.code===4e3?"tls_only":g.code<4100?"refused":g.code<4200?"backoff":g.code<4300?"retry":"refused"},getCloseError:function(g){return g.code!==1e3&&g.code!==1001?{type:"PusherError",data:{code:g.code,message:g.reason||g.message}}:null}};var Gt=er;class Ha extends J{constructor(d,v){super(),this.id=d,this.transport=v,this.activityTimeout=v.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(d){return this.transport.send(d)}send_event(d,v,x){var A={event:d,data:v};return x&&(A.channel=x),xe.debug("Event sent",A),this.send(Gt.encodeMessage(A))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var d={message:x=>{var A;try{A=Gt.decodeMessage(x)}catch(te){this.emit("error",{type:"MessageParseError",error:te,data:x.data})}if(A!==void 0){switch(xe.debug("Event recd",A),A.event){case"pusher:error":this.emit("error",{type:"PusherError",data:A.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",A)}},activity:()=>{this.emit("activity")},error:x=>{this.emit("error",x)},closed:x=>{v(),x&&x.code&&this.handleCloseEvent(x),this.transport=null,this.emit("closed")}},v=()=>{oe(d,(x,A)=>{this.transport.unbind(A,x)})};oe(d,(x,A)=>{this.transport.bind(A,x)})}handleCloseEvent(d){var v=Gt.getCloseAction(d),x=Gt.getCloseError(d);x&&this.emit("error",x),v&&this.emit(v,{action:v,error:x})}}class _s{constructor(d,v){this.transport=d,this.callback=v,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=d=>{this.unbindListeners();var v;try{v=Gt.processHandshake(d)}catch(x){this.finish("error",{error:x}),this.transport.close();return}v.action==="connected"?this.finish("connected",{connection:new Ha(v.id,this.transport),activityTimeout:v.activityTimeout}):(this.finish(v.action,{error:v.error}),this.transport.close())},this.onClosed=d=>{this.unbindListeners();var v=Gt.getCloseAction(d)||"backoff",x=Gt.getCloseError(d);this.finish(v,{error:x})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(d,v){this.callback(R({transport:this.transport,action:d},v))}}class Qr{constructor(d,v){this.timeline=d,this.options=v||{}}send(d,v){this.timeline.isEmpty()||this.timeline.send(Ae.TimelineTransport.getAgent(this,d),v)}}class Zr extends J{constructor(d,v){super(function(x,A){xe.debug("No callbacks on "+d+" for "+x)}),this.name=d,this.pusher=v,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(d,v){return v(null,{auth:""})}trigger(d,v){if(d.indexOf("client-")!==0)throw new _("Event '"+d+"' does not start with 'client-'");if(!this.subscribed){var x=y.buildLogSuffix("triggeringClientEvents");xe.warn(`Client event triggered before channel 'subscription_succeeded' event . ${x}`)}return this.pusher.send_event(d,v,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(d){var v=d.event,x=d.data;if(v==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(d);else if(v==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(d);else if(v.indexOf("pusher_internal:")!==0){var A={};this.emit(v,x,A)}}handleSubscriptionSucceededEvent(d){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",d.data)}handleSubscriptionCountEvent(d){d.data.subscription_count&&(this.subscriptionCount=d.data.subscription_count),this.emit("pusher:subscription_count",d.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(d,v)=>{d?(this.subscriptionPending=!1,xe.error(d.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:d.message},d instanceof F?{status:d.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:v.auth,channel_data:v.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class z extends Zr{authorize(d,v){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:d},v)}}class de{constructor(){this.reset()}get(d){return Object.prototype.hasOwnProperty.call(this.members,d)?{id:d,info:this.members[d]}:null}each(d){oe(this.members,(v,x)=>{d(this.get(x))})}setMyID(d){this.myID=d}onSubscription(d){this.members=d.presence.hash,this.count=d.presence.count,this.me=this.get(this.myID)}addMember(d){return this.get(d.user_id)===null&&this.count++,this.members[d.user_id]=d.user_info,this.get(d.user_id)}removeMember(d){var v=this.get(d.user_id);return v&&(delete this.members[d.user_id],this.count--),v}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var Ve=function(g,d,v,x){function A(te){return te instanceof v?te:new v(function(ue){ue(te)})}return new(v||(v=Promise))(function(te,ue){function _e(rt){try{Ze(x.next(rt))}catch(xt){ue(xt)}}function Re(rt){try{Ze(x.throw(rt))}catch(xt){ue(xt)}}function Ze(rt){rt.done?te(rt.value):A(rt.value).then(_e,Re)}Ze((x=x.apply(g,d||[])).next())})};class gt extends z{constructor(d,v){super(d,v),this.members=new de}authorize(d,v){super.authorize(d,(x,A)=>Ve(this,void 0,void 0,function*(){if(!x)if(A=A,A.channel_data!=null){var te=JSON.parse(A.channel_data);this.members.setMyID(te.user_id)}else if(yield this.pusher.user.signinDonePromise,this.pusher.user.user_data!=null)this.members.setMyID(this.pusher.user.user_data.id);else{let ue=y.buildLogSuffix("authorizationEndpoint");xe.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${ue}, or the user should be signed in.`),v("Invalid auth response");return}v(x,A)}))}handleEvent(d){var v=d.event;if(v.indexOf("pusher_internal:")===0)this.handleInternalEvent(d);else{var x=d.data,A={};d.user_id&&(A.user_id=d.user_id),this.emit(v,x,A)}}handleInternalEvent(d){var v=d.event,x=d.data;switch(v){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(d);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(d);break;case"pusher_internal:member_added":var A=this.members.addMember(x);this.emit("pusher:member_added",A);break;case"pusher_internal:member_removed":var te=this.members.removeMember(x);te&&this.emit("pusher:member_removed",te);break}}handleSubscriptionSucceededEvent(d){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(d.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var Dr=o(1),Bo=o(0);class Mo extends z{constructor(d,v,x){super(d,v),this.key=null,this.nacl=x}authorize(d,v){super.authorize(d,(x,A)=>{if(x){v(x,A);return}let te=A.shared_secret;if(!te){v(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=Object(Bo.decode)(te),delete A.shared_secret,v(null,A)})}trigger(d,v){throw new B("Client events are not currently supported for encrypted channels")}handleEvent(d){var v=d.event,x=d.data;if(v.indexOf("pusher_internal:")===0||v.indexOf("pusher:")===0){super.handleEvent(d);return}this.handleEncryptedEvent(v,x)}handleEncryptedEvent(d,v){if(!this.key){xe.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!v.ciphertext||!v.nonce){xe.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+v);return}let x=Object(Bo.decode)(v.ciphertext);if(x.length<this.nacl.secretbox.overheadLength){xe.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${x.length}`);return}let A=Object(Bo.decode)(v.nonce);if(A.length<this.nacl.secretbox.nonceLength){xe.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${A.length}`);return}let te=this.nacl.secretbox.open(x,A,this.key);if(te===null){xe.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,(ue,_e)=>{if(ue){xe.error(`Failed to make a request to the authEndpoint: ${_e}. Unable to fetch new key, so dropping encrypted event`);return}if(te=this.nacl.secretbox.open(x,A,this.key),te===null){xe.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(d,this.getDataToEmit(te))});return}this.emit(d,this.getDataToEmit(te))}getDataToEmit(d){let v=Object(Dr.decode)(d);try{return JSON.parse(v)}catch{return v}}}class cv extends J{constructor(d,v){super(),this.state="initialized",this.connection=null,this.key=d,this.options=v,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var x=Ae.getNetwork();x.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),x.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}switchCluster(d){this.key=d,this.updateStrategy(),this.retryIn(0)}connect(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(d){return this.connection?this.connection.send(d):!1}send_event(d,v,x){return this.connection?this.connection.send_event(d,v,x):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var d=(v,x)=>{v?this.runner=this.strategy.connect(0,d):x.action==="error"?(this.emit("error",{type:"HandshakeError",error:x.error}),this.timeline.error({handshakeError:x.error})):(this.abortConnecting(),this.handshakeCallbacks[x.action](x))};this.runner=this.strategy.connect(0,d)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var d=this.abandonConnection();d.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(d){this.timeline.info({action:"retry",delay:d}),d>0&&this.emit("connecting_in",Math.round(d/1e3)),this.retryTimer=new Q(d||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new Q(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new Q(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new Q(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(d){return R({},d,{message:v=>{this.resetActivityCheck(),this.emit("message",v)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:v=>{this.emit("error",v)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(d){return R({},d,{connected:v=>{this.activityTimeout=Math.min(this.options.activityTimeout,v.activityTimeout,v.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(v.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let d=v=>x=>{x.error&&this.emit("error",{type:"WebSocketError",error:x.error}),v(x)};return{tls_only:d(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:d(()=>{this.disconnect()}),backoff:d(()=>{this.retryIn(1e3)}),retry:d(()=>{this.retryIn(0)})}}setConnection(d){this.connection=d;for(var v in this.connectionCallbacks)this.connection.bind(v,this.connectionCallbacks[v]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var d in this.connectionCallbacks)this.connection.unbind(d,this.connectionCallbacks[d]);var v=this.connection;return this.connection=null,v}}updateState(d,v){var x=this.state;if(this.state=d,x!==d){var A=d;A==="connected"&&(A+=" with new socket ID "+v.socket_id),xe.debug("State changed",x+" -> "+A),this.timeline.info({state:d,params:v}),this.emit("state_change",{previous:x,current:d}),this.emit(d,v)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class dv{constructor(){this.channels={}}add(d,v){return this.channels[d]||(this.channels[d]=fv(d,v)),this.channels[d]}all(){return Ee(this.channels)}find(d){return this.channels[d]}remove(d){var v=this.channels[d];return delete this.channels[d],v}disconnect(){oe(this.channels,function(d){d.disconnect()})}}function fv(g,d){if(g.indexOf("private-encrypted-")===0){if(d.config.nacl)return tr.createEncryptedChannel(g,d,d.config.nacl);let v="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",x=y.buildLogSuffix("encryptedChannelSupport");throw new B(`${v}. ${x}`)}else{if(g.indexOf("private-")===0)return tr.createPrivateChannel(g,d);if(g.indexOf("presence-")===0)return tr.createPresenceChannel(g,d);if(g.indexOf("#")===0)throw new w('Cannot create a channel with name "'+g+'".');return tr.createChannel(g,d)}}var pv={createChannels(){return new dv},createConnectionManager(g,d){return new cv(g,d)},createChannel(g,d){return new Zr(g,d)},createPrivateChannel(g,d){return new z(g,d)},createPresenceChannel(g,d){return new gt(g,d)},createEncryptedChannel(g,d,v){return new Mo(g,d,v)},createTimelineSender(g,d){return new Qr(g,d)},createHandshake(g,d){return new _s(g,d)},createAssistantToTheTransportManager(g,d,v){return new it(g,d,v)}},tr=pv;class ic{constructor(d){this.options=d||{},this.livesLeft=this.options.lives||1/0}getAssistant(d){return tr.createAssistantToTheTransportManager(this,d,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class Or{constructor(d,v){this.strategies=d,this.loop=!!v.loop,this.failFast=!!v.failFast,this.timeout=v.timeout,this.timeoutLimit=v.timeoutLimit}isSupported(){return ve(this.strategies,P.method("isSupported"))}connect(d,v){var x=this.strategies,A=0,te=this.timeout,ue=null,_e=(Re,Ze)=>{Ze?v(null,Ze):(A=A+1,this.loop&&(A=A%x.length),A<x.length?(te&&(te=te*2,this.timeoutLimit&&(te=Math.min(te,this.timeoutLimit))),ue=this.tryStrategy(x[A],d,{timeout:te,failFast:this.failFast},_e)):v(!0))};return ue=this.tryStrategy(x[A],d,{timeout:te,failFast:this.failFast},_e),{abort:function(){ue.abort()},forceMinPriority:function(Re){d=Re,ue&&ue.forceMinPriority(Re)}}}tryStrategy(d,v,x,A){var te=null,ue=null;return x.timeout>0&&(te=new Q(x.timeout,function(){ue.abort(),A(!0)})),ue=d.connect(v,function(_e,Re){_e&&te&&te.isRunning()&&!x.failFast||(te&&te.ensureAborted(),A(_e,Re))}),{abort:function(){te&&te.ensureAborted(),ue.abort()},forceMinPriority:function(_e){ue.forceMinPriority(_e)}}}}class ws{constructor(d){this.strategies=d}isSupported(){return ve(this.strategies,P.method("isSupported"))}connect(d,v){return hv(this.strategies,d,function(x,A){return function(te,ue){if(A[x].error=te,te){mv(A)&&v(!0);return}fe(A,function(_e){_e.forceMinPriority(ue.transport.priority)}),v(null,ue)}})}}function hv(g,d,v){var x=Be(g,function(A,te,ue,_e){return A.connect(d,v(te,_e))});return{abort:function(){fe(x,vv)},forceMinPriority:function(A){fe(x,function(te){te.forceMinPriority(A)})}}}function mv(g){return Qe(g,function(d){return!!d.error})}function vv(g){!g.error&&!g.aborted&&(g.abort(),g.aborted=!0)}class gv{constructor(d,v,x){this.strategy=d,this.transports=v,this.ttl=x.ttl||1800*1e3,this.usingTLS=x.useTLS,this.timeline=x.timeline}isSupported(){return this.strategy.isSupported()}connect(d,v){var x=this.usingTLS,A=yv(x),te=A&&A.cacheSkipCount?A.cacheSkipCount:0,ue=[this.strategy];if(A&&A.timestamp+this.ttl>=P.now()){var _e=this.transports[A.transport];_e&&(["ws","wss"].includes(A.transport)||te>3?(this.timeline.info({cached:!0,transport:A.transport,latency:A.latency}),ue.push(new Or([_e],{timeout:A.latency*2+1e3,failFast:!0}))):te++)}var Re=P.now(),Ze=ue.pop().connect(d,function rt(xt,$o){xt?(sc(x),ue.length>0?(Re=P.now(),Ze=ue.pop().connect(d,rt)):v(xt)):(bv(x,$o.transport.name,P.now()-Re,te),v(null,$o))});return{abort:function(){Ze.abort()},forceMinPriority:function(rt){d=rt,Ze&&Ze.forceMinPriority(rt)}}}}function ks(g){return"pusherTransport"+(g?"TLS":"NonTLS")}function yv(g){var d=Ae.getLocalStorage();if(d)try{var v=d[ks(g)];if(v)return JSON.parse(v)}catch{sc(g)}return null}function bv(g,d,v,x){var A=Ae.getLocalStorage();if(A)try{A[ks(g)]=me({timestamp:P.now(),transport:d,latency:v,cacheSkipCount:x})}catch{}}function sc(g){var d=Ae.getLocalStorage();if(d)try{delete d[ks(g)]}catch{}}class Ro{constructor(d,{delay:v}){this.strategy=d,this.options={delay:v}}isSupported(){return this.strategy.isSupported()}connect(d,v){var x=this.strategy,A,te=new Q(this.options.delay,function(){A=x.connect(d,v)});return{abort:function(){te.ensureAborted(),A&&A.abort()},forceMinPriority:function(ue){d=ue,A&&A.forceMinPriority(ue)}}}}class Ua{constructor(d,v,x){this.test=d,this.trueBranch=v,this.falseBranch=x}isSupported(){var d=this.test()?this.trueBranch:this.falseBranch;return d.isSupported()}connect(d,v){var x=this.test()?this.trueBranch:this.falseBranch;return x.connect(d,v)}}class _v{constructor(d){this.strategy=d}isSupported(){return this.strategy.isSupported()}connect(d,v){var x=this.strategy.connect(d,function(A,te){te&&x.abort(),v(A,te)});return x}}function za(g){return function(){return g.isSupported()}}var wv=function(g,d,v){var x={};function A(_c,bg,_g,wg,kg){var wc=v(g,_c,bg,_g,wg,kg);return x[_c]=wc,wc}var te=Object.assign({},d,{hostNonTLS:g.wsHost+":"+g.wsPort,hostTLS:g.wsHost+":"+g.wssPort,httpPath:g.wsPath}),ue=Object.assign({},te,{useTLS:!0}),_e=Object.assign({},d,{hostNonTLS:g.httpHost+":"+g.httpPort,hostTLS:g.httpHost+":"+g.httpsPort,httpPath:g.httpPath}),Re={loop:!0,timeout:15e3,timeoutLimit:6e4},Ze=new ic({minPingDelay:1e4,maxPingDelay:g.activityTimeout}),rt=new ic({lives:2,minPingDelay:1e4,maxPingDelay:g.activityTimeout}),xt=A("ws","ws",3,te,Ze),$o=A("wss","ws",3,ue,Ze),hg=A("sockjs","sockjs",1,_e),hc=A("xhr_streaming","xhr_streaming",1,_e,rt),mg=A("xdr_streaming","xdr_streaming",1,_e,rt),mc=A("xhr_polling","xhr_polling",1,_e),vg=A("xdr_polling","xdr_polling",1,_e),vc=new Or([xt],Re),gg=new Or([$o],Re),yg=new Or([hg],Re),gc=new Or([new Ua(za(hc),hc,mg)],Re),yc=new Or([new Ua(za(mc),mc,vg)],Re),bc=new Or([new Ua(za(gc),new ws([gc,new Ro(yc,{delay:4e3})]),yc)],Re),Es=new Ua(za(bc),bc,yg),xs;return d.useTLS?xs=new ws([vc,new Ro(Es,{delay:2e3})]):xs=new ws([vc,new Ro(gg,{delay:2e3}),new Ro(Es,{delay:5e3})]),new gv(new _v(new Ua(za(xt),xs,Es)),x,{ttl:18e5,timeline:d.timeline,useTLS:d.useTLS})},kv=wv,Sv=function(){var g=this;g.timeline.info(g.buildTimelineMessage({transport:g.name+(g.options.useTLS?"s":"")})),g.hooks.isInitialized()?g.changeState("initialized"):g.hooks.file?(g.changeState("initializing"),p.load(g.hooks.file,{useTLS:g.options.useTLS},function(d,v){g.hooks.isInitialized()?(g.changeState("initialized"),v(!0)):(d&&g.onError(d),g.onClose(),v(!1))})):g.onClose()},Cv={getRequest:function(g){var d=new window.XDomainRequest;return d.ontimeout=function(){g.emit("error",new T),g.close()},d.onerror=function(v){g.emit("error",v),g.close()},d.onprogress=function(){d.responseText&&d.responseText.length>0&&g.onChunk(200,d.responseText)},d.onload=function(){d.responseText&&d.responseText.length>0&&g.onChunk(200,d.responseText),g.emit("finished",200),g.close()},d},abortRequest:function(g){g.ontimeout=g.onerror=g.onprogress=g.onload=null,g.abort()}},Tv=Cv;const Ev=256*1024;class xv extends J{constructor(d,v,x){super(),this.hooks=d,this.method=v,this.url=x}start(d){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},Ae.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(d)}close(){this.unloader&&(Ae.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(d,v){for(;;){var x=this.advanceBuffer(v);if(x)this.emit("chunk",{status:d,data:x});else break}this.isBufferTooLong(v)&&this.emit("buffer_too_long")}advanceBuffer(d){var v=d.slice(this.position),x=v.indexOf(`
81
- `);return x!==-1?(this.position+=x+1,v.slice(0,x)):null}isBufferTooLong(d){return this.position===d.length&&d.length>Ev}}var Ss;(function(g){g[g.CONNECTING=0]="CONNECTING",g[g.OPEN=1]="OPEN",g[g.CLOSED=3]="CLOSED"})(Ss||(Ss={}));var Nr=Ss,Pv=1;class Iv{constructor(d,v){this.hooks=d,this.session=uc(1e3)+"/"+Bv(8),this.location=Dv(v),this.readyState=Nr.CONNECTING,this.openStream()}send(d){return this.sendRaw(JSON.stringify([d]))}ping(){this.hooks.sendHeartbeat(this)}close(d,v){this.onClose(d,v,!0)}sendRaw(d){if(this.readyState===Nr.OPEN)try{return Ae.createSocketRequest("POST",lc(Ov(this.location,this.session))).start(d),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(d,v,x){this.closeStream(),this.readyState=Nr.CLOSED,this.onclose&&this.onclose({code:d,reason:v,wasClean:x})}onChunk(d){if(d.status===200){this.readyState===Nr.OPEN&&this.onActivity();var v,x=d.data.slice(0,1);switch(x){case"o":v=JSON.parse(d.data.slice(1)||"{}"),this.onOpen(v);break;case"a":v=JSON.parse(d.data.slice(1)||"[]");for(var A=0;A<v.length;A++)this.onEvent(v[A]);break;case"m":v=JSON.parse(d.data.slice(1)||"null"),this.onEvent(v);break;case"h":this.hooks.onHeartbeat(this);break;case"c":v=JSON.parse(d.data.slice(1)||"[]"),this.onClose(v[0],v[1],!0);break}}}onOpen(d){this.readyState===Nr.CONNECTING?(d&&d.hostname&&(this.location.base=Nv(this.location.base,d.hostname)),this.readyState=Nr.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(d){this.readyState===Nr.OPEN&&this.onmessage&&this.onmessage({data:d})}onActivity(){this.onactivity&&this.onactivity()}onError(d){this.onerror&&this.onerror(d)}openStream(){this.stream=Ae.createSocketRequest("POST",lc(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",d=>{this.onChunk(d)}),this.stream.bind("finished",d=>{this.hooks.onFinished(this,d)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(d){P.defer(()=>{this.onError(d),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function Dv(g){var d=/([^\?]*)\/*(\??.*)/.exec(g);return{base:d[1],queryString:d[2]}}function Ov(g,d){return g.base+"/"+d+"/xhr_send"}function lc(g){var d=g.indexOf("?")===-1?"?":"&";return g+d+"t="+ +new Date+"&n="+Pv++}function Nv(g,d){var v=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(g);return v[1]+d+v[3]}function uc(g){return Ae.randomInt(g)}function Bv(g){for(var d=[],v=0;v<g;v++)d.push(uc(32).toString(32));return d.join("")}var Mv=Iv,Rv={getReceiveURL:function(g,d){return g.base+"/"+d+"/xhr_streaming"+g.queryString},onHeartbeat:function(g){g.sendRaw("[]")},sendHeartbeat:function(g){g.sendRaw("[]")},onFinished:function(g,d){g.onClose(1006,"Connection interrupted ("+d+")",!1)}},Av=Rv,$v={getReceiveURL:function(g,d){return g.base+"/"+d+"/xhr"+g.queryString},onHeartbeat:function(){},sendHeartbeat:function(g){g.sendRaw("[]")},onFinished:function(g,d){d===200?g.reconnect():g.onClose(1006,"Connection interrupted ("+d+")",!1)}},Lv=$v,Vv={getRequest:function(g){var d=Ae.getXHRAPI(),v=new d;return v.onreadystatechange=v.onprogress=function(){switch(v.readyState){case 3:v.responseText&&v.responseText.length>0&&g.onChunk(v.status,v.responseText);break;case 4:v.responseText&&v.responseText.length>0&&g.onChunk(v.status,v.responseText),g.emit("finished",v.status),g.close();break}},v},abortRequest:function(g){g.onreadystatechange=null,g.abort()}},Fv=Vv,Hv={createStreamingSocket(g){return this.createSocket(Av,g)},createPollingSocket(g){return this.createSocket(Lv,g)},createSocket(g,d){return new Mv(g,d)},createXHR(g,d){return this.createRequest(Fv,g,d)},createRequest(g,d,v){return new xv(g,d,v)}},cc=Hv;cc.createXDR=function(g,d){return this.createRequest(Tv,g,d)};var Uv=cc,zv={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:s,DependenciesReceivers:f,getDefaultStrategy:kv,Transports:jt,transportConnectionInitializer:Sv,HTTPFactory:Uv,TimelineTransport:Et,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(g){window.Pusher=g;var d=()=>{this.onDocumentBody(g.ready)};window.JSON?d():p.load("json2",{},d)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:W,jsonp:Ut}},onDocumentBody(g){document.body?g():setTimeout(()=>{this.onDocumentBody(g)},0)},createJSONPRequest(g,d){return new zt(g,d)},createScriptRequest(g){return new Rt(g)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var g=this.getXHRAPI();return new g},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return vt},createWebSocket(g){var d=this.getWebSocketAPI();return new d(g)},createSocketRequest(g,d){if(this.isXHRSupported())return this.HTTPFactory.createXHR(g,d);if(this.isXDRSupported(d.indexOf("https:")===0))return this.HTTPFactory.createXDR(g,d);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var g=this.getXHRAPI();return!!g&&new g().withCredentials!==void 0},isXDRSupported(g){var d=g?"https:":"http:",v=this.getProtocol();return!!window.XDomainRequest&&v===d},addUnloadListener(g){window.addEventListener!==void 0?window.addEventListener("unload",g,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",g)},removeUnloadListener(g){window.addEventListener!==void 0?window.removeEventListener("unload",g,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",g)},randomInt(g){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*g)}},Ae=zv,Cs;(function(g){g[g.ERROR=3]="ERROR",g[g.INFO=6]="INFO",g[g.DEBUG=7]="DEBUG"})(Cs||(Cs={}));var Ao=Cs;class jv{constructor(d,v,x){this.key=d,this.session=v,this.events=[],this.options=x||{},this.sent=0,this.uniqueID=0}log(d,v){d<=this.options.level&&(this.events.push(R({},v,{timestamp:P.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(d){this.log(Ao.ERROR,d)}info(d){this.log(Ao.INFO,d)}debug(d){this.log(Ao.DEBUG,d)}isEmpty(){return this.events.length===0}send(d,v){var x=R({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],d(x,(A,te)=>{A||this.sent++,v&&v(A,te)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class Wv{constructor(d,v,x,A){this.name=d,this.priority=v,this.transport=x,this.options=A||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(d,v){if(this.isSupported()){if(this.priority<d)return dc(new N,v)}else return dc(new I,v);var x=!1,A=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),te=null,ue=function(){A.unbind("initialized",ue),A.connect()},_e=function(){te=tr.createHandshake(A,function(xt){x=!0,rt(),v(null,xt)})},Re=function(xt){rt(),v(xt)},Ze=function(){rt();var xt;xt=me(A),v(new b(xt))},rt=function(){A.unbind("initialized",ue),A.unbind("open",_e),A.unbind("error",Re),A.unbind("closed",Ze)};return A.bind("initialized",ue),A.bind("open",_e),A.bind("error",Re),A.bind("closed",Ze),A.initialize(),{abort:()=>{x||(rt(),te?te.close():A.close())},forceMinPriority:xt=>{x||this.priority<xt&&(te?te.close():A.close())}}}}function dc(g,d){return P.defer(function(){d(g)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:qv}=Ae;var Yv=function(g,d,v,x,A,te){var ue=qv[v];if(!ue)throw new C(v);var _e=(!g.enabledTransports||ie(g.enabledTransports,d)!==-1)&&(!g.disabledTransports||ie(g.disabledTransports,d)===-1),Re;return _e?(A=Object.assign({ignoreNullOrigin:g.ignoreNullOrigin},A),Re=new Wv(d,x,te?te.getAssistant(ue):ue,A)):Re=Gv,Re},Gv={isSupported:function(){return!1},connect:function(g,d){var v=P.defer(function(){d(new I)});return{abort:function(){v.ensureAborted()},forceMinPriority:function(){}}}};function Kv(g){if(g==null)throw"You must pass an options object";if(g.cluster==null)throw"Options object must provide a cluster";"disableStats"in g&&xe.warn("The disableStats option is deprecated in favor of enableStats")}const Xv=(g,d)=>{var v="socket_id="+encodeURIComponent(g.socketId);for(var x in d.params)v+="&"+encodeURIComponent(x)+"="+encodeURIComponent(d.params[x]);if(d.paramsProvider!=null){let A=d.paramsProvider();for(var x in A)v+="&"+encodeURIComponent(x)+"="+encodeURIComponent(A[x])}return v};var Jv=g=>{if(typeof Ae.getAuthorizers()[g.transport]>"u")throw`'${g.transport}' is not a recognized auth transport`;return(d,v)=>{const x=Xv(d,g);Ae.getAuthorizers()[g.transport](Ae,x,g,k.UserAuthentication,v)}};const Qv=(g,d)=>{var v="socket_id="+encodeURIComponent(g.socketId);v+="&channel_name="+encodeURIComponent(g.channelName);for(var x in d.params)v+="&"+encodeURIComponent(x)+"="+encodeURIComponent(d.params[x]);if(d.paramsProvider!=null){let A=d.paramsProvider();for(var x in A)v+="&"+encodeURIComponent(x)+"="+encodeURIComponent(A[x])}return v};var Zv=g=>{if(typeof Ae.getAuthorizers()[g.transport]>"u")throw`'${g.transport}' is not a recognized auth transport`;return(d,v)=>{const x=Qv(d,g);Ae.getAuthorizers()[g.transport](Ae,x,g,k.ChannelAuthorization,v)}};const eg=(g,d,v)=>{const x={authTransport:d.transport,authEndpoint:d.endpoint,auth:{params:d.params,headers:d.headers}};return(A,te)=>{const ue=g.channel(A.channelName);v(ue,x).authorize(A.socketId,te)}};function fc(g,d){let v={activityTimeout:g.activityTimeout||u.activityTimeout,cluster:g.cluster,httpPath:g.httpPath||u.httpPath,httpPort:g.httpPort||u.httpPort,httpsPort:g.httpsPort||u.httpsPort,pongTimeout:g.pongTimeout||u.pongTimeout,statsHost:g.statsHost||u.stats_host,unavailableTimeout:g.unavailableTimeout||u.unavailableTimeout,wsPath:g.wsPath||u.wsPath,wsPort:g.wsPort||u.wsPort,wssPort:g.wssPort||u.wssPort,enableStats:og(g),httpHost:tg(g),useTLS:ag(g),wsHost:ng(g),userAuthenticator:ig(g),channelAuthorizer:lg(g,d)};return"disabledTransports"in g&&(v.disabledTransports=g.disabledTransports),"enabledTransports"in g&&(v.enabledTransports=g.enabledTransports),"ignoreNullOrigin"in g&&(v.ignoreNullOrigin=g.ignoreNullOrigin),"timelineParams"in g&&(v.timelineParams=g.timelineParams),"nacl"in g&&(v.nacl=g.nacl),v}function tg(g){return g.httpHost?g.httpHost:g.cluster?`sockjs-${g.cluster}.pusher.com`:u.httpHost}function ng(g){return g.wsHost?g.wsHost:rg(g.cluster)}function rg(g){return`ws-${g}.pusher.com`}function ag(g){return Ae.getProtocol()==="https:"?!0:g.forceTLS!==!1}function og(g){return"enableStats"in g?g.enableStats:"disableStats"in g?!g.disableStats:!1}const pc=g=>"customHandler"in g&&g.customHandler!=null;function ig(g){const d=Object.assign(Object.assign({},u.userAuthentication),g.userAuthentication);return pc(d)?d.customHandler:Jv(d)}function sg(g,d){let v;if("channelAuthorization"in g)v=Object.assign(Object.assign({},u.channelAuthorization),g.channelAuthorization);else if(v={transport:g.authTransport||u.authTransport,endpoint:g.authEndpoint||u.authEndpoint},"auth"in g&&("params"in g.auth&&(v.params=g.auth.params),"headers"in g.auth&&(v.headers=g.auth.headers)),"authorizer"in g)return{customHandler:eg(d,v,g.authorizer)};return v}function lg(g,d){const v=sg(g,d);return pc(v)?v.customHandler:Zv(v)}class ug extends J{constructor(d){super(function(v,x){xe.debug(`No callbacks on watchlist events for ${v}`)}),this.pusher=d,this.bindWatchlistInternalEvent()}handleEvent(d){d.data.events.forEach(v=>{this.emit(v.name,v)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",d=>{var v=d.event;v==="pusher_internal:watchlist_events"&&this.handleEvent(d)})}}function cg(){let g,d;return{promise:new Promise((x,A)=>{g=x,d=A}),resolve:g,reject:d}}var dg=cg;class fg extends J{constructor(d){super(function(v,x){xe.debug("No callbacks on user for "+v)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(v,x)=>{if(v){xe.warn(`Error during signin: ${v}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:x.auth,user_data:x.user_data})},this.pusher=d,this.pusher.connection.bind("state_change",({previous:v,current:x})=>{v!=="connected"&&x==="connected"&&this._signin(),v==="connected"&&x!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new ug(d),this.pusher.connection.bind("message",v=>{var x=v.event;x==="pusher:signin_success"&&this._onSigninSuccess(v.data),this.serverToUserChannel&&this.serverToUserChannel.name===v.channel&&this.serverToUserChannel.handleEvent(v)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(d){try{this.user_data=JSON.parse(d.user_data)}catch{xe.error(`Failed parsing user data after signin: ${d.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){xe.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const d=v=>{v.subscriptionPending&&v.subscriptionCancelled?v.reinstateSubscription():!v.subscriptionPending&&this.pusher.connection.state==="connected"&&v.subscribe()};this.serverToUserChannel=new Zr(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((v,x)=>{v.indexOf("pusher_internal:")===0||v.indexOf("pusher:")===0||this.emit(v,x)}),d(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:d,resolve:v,reject:x}=dg();d.done=!1;const A=()=>{d.done=!0};d.then(A).catch(A),this.signinDonePromise=d,this._signinDoneResolve=v}}class $t{static ready(){$t.isReady=!0;for(var d=0,v=$t.instances.length;d<v;d++)$t.instances[d].connect()}static getClientFeatures(){return Ie(Ge({ws:Ae.Transports.ws},function(d){return d.isSupported({})}))}constructor(d,v){pg(d),Kv(v),this.key=d,this.options=v,this.config=fc(this.options,this),this.channels=tr.createChannels(),this.global_emitter=new J,this.sessionID=Ae.randomInt(1e9),this.timeline=new jv(this.key,this.sessionID,{cluster:this.config.cluster,features:$t.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:Ao.INFO,version:u.VERSION}),this.config.enableStats&&(this.timelineSender=tr.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+Ae.TimelineTransport.name}));var x=A=>Ae.getDefaultStrategy(this.config,A,Yv);this.connection=tr.createConnectionManager(this.key,{getStrategy:x,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",A=>{var te=A.event,ue=te.indexOf("pusher_internal:")===0;if(A.channel){var _e=this.channel(A.channel);_e&&_e.handleEvent(A)}ue||this.global_emitter.emit(A.event,A.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",A=>{xe.warn(A)}),$t.instances.push(this),this.timeline.info({instances:$t.instances.length}),this.user=new fg(this),$t.isReady&&this.connect()}switchCluster(d){const{appKey:v,cluster:x}=d;this.key=v,this.options=Object.assign(Object.assign({},this.options),{cluster:x}),this.config=fc(this.options,this),this.connection.switchCluster(this.key)}channel(d){return this.channels.find(d)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var d=this.connection.isUsingTLS(),v=this.timelineSender;this.timelineSenderTimer=new V(6e4,function(){v.send(d)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(d,v,x){return this.global_emitter.bind(d,v,x),this}unbind(d,v,x){return this.global_emitter.unbind(d,v,x),this}bind_global(d){return this.global_emitter.bind_global(d),this}unbind_global(d){return this.global_emitter.unbind_global(d),this}unbind_all(d){return this.global_emitter.unbind_all(),this}subscribeAll(){var d;for(d in this.channels.channels)this.channels.channels.hasOwnProperty(d)&&this.subscribe(d)}subscribe(d){var v=this.channels.add(d,this);return v.subscriptionPending&&v.subscriptionCancelled?v.reinstateSubscription():!v.subscriptionPending&&this.connection.state==="connected"&&v.subscribe(),v}unsubscribe(d){var v=this.channels.find(d);v&&v.subscriptionPending?v.cancelSubscription():(v=this.channels.remove(d),v&&v.subscribed&&v.unsubscribe())}send_event(d,v,x){return this.connection.send_event(d,v,x)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}$t.instances=[],$t.isReady=!1,$t.logToConsole=!1,$t.Runtime=Ae,$t.ScriptReceivers=Ae.ScriptReceivers,$t.DependenciesReceivers=Ae.DependenciesReceivers,$t.auth_callbacks=Ae.auth_callbacks;var Ts=r.default=$t;function pg(g){if(g==null)throw"You must pass your app key when you instantiate Pusher."}Ae.setup($t)}])})})(bh);var hP=bh.exports;function mP(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n)})}}}const Qt={listeners:a.ref([]),echo:null,key:null,authorizer:null,emitter:mP()};function _h(e="unique"){var t;return Qt.listeners.value.some(n=>n.name===e)||(t=Qt.listeners.value)==null||t.push({name:e,isListening:a.ref(!1)}),Qt.listeners.value.find(n=>n.name===e)}function wh(e,t){Qt.echo=new pP({broadcaster:"pusher",client:hP.ConnectionManager,key:e,authorizer:t,cluster:"eu",forceTLS:!0,encrypted:!0})}function vP(e=null){const t=_h(e??void 0);function n(o,i,s,l=!0){if(Qt.echo===null)throw new Error("Echo is not initialized");const u=`${o}.${i}`,c=Qt.emitter.all.has(u);t&&(t.isListening=!0),c||(l?Qt.echo.private(o):Qt.echo.channel(o)).listen(`.${i}`,p=>{Qt.emitter.emit(u,p)}),Qt.emitter.on(u,async f=>{const p=await s(f)??!1;t&&(t.isListening=!1),p&&r(o,i)})}function r(o,i){if(Qt.echo===null)throw new Error("Echo is not initialized");Qt.emitter.off(`${o}.${i}`),Qt.emitter.all.delete(`${o}.${i}`),Qt.echo.leave(o),t.isListening=!1}return{on:n,off:r,listener:t,state:Qt}}const kh=Object.prototype.toString;function Sh(e){switch(kh.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return fr(e,Error)}}function Ma(e,t){return kh.call(e)===`[object ${t}]`}function Pu(e){return Ma(e,"ErrorEvent")}function Dd(e){return Ma(e,"DOMError")}function gP(e){return Ma(e,"DOMException")}function qn(e){return Ma(e,"String")}function Iu(e){return e===null||typeof e!="object"&&typeof e!="function"}function Ea(e){return Ma(e,"Object")}function Gi(e){return typeof Event<"u"&&fr(e,Event)}function yP(e){return typeof Element<"u"&&fr(e,Element)}function bP(e){return Ma(e,"RegExp")}function Du(e){return!!(e&&e.then&&typeof e.then=="function")}function _P(e){return Ea(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Ch(e){return typeof e=="number"&&e!==e}function fr(e,t){try{return e instanceof t}catch{return!1}}function Th(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function ma(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Od(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const o=e[r];try{Th(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function wP(e,t,n=!1){return qn(e)?bP(t)?t.test(e):qn(t)?n?e===t:e.includes(t):!1:!1}function Ra(e,t=[],n=!1){return t.some(r=>wP(e,r,n))}function kP(e,t,n=250,r,o,i,s){if(!i.exception||!i.exception.values||!s||!fr(s.originalException,Error))return;const l=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;l&&(i.exception.values=SP(xl(e,t,o,s.originalException,r,i.exception.values,l,0),n))}function xl(e,t,n,r,o,i,s,l){if(i.length>=n+1)return i;let u=[...i];if(fr(r[o],Error)){Nd(s,l);const c=e(t,r[o]),f=u.length;Bd(c,o,f,l),u=xl(e,t,n,r[o],o,[c,...u],c,f)}return Array.isArray(r.errors)&&r.errors.forEach((c,f)=>{if(fr(c,Error)){Nd(s,l);const p=e(t,c),h=u.length;Bd(p,`errors[${f}]`,h,l),u=xl(e,t,n,c,o,[p,...u],p,h)}}),u}function Nd(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function Bd(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function SP(e,t){return e.map(n=>(n.value&&(n.value=ma(n.value,t)),n))}function Wo(e){return e&&e.Math==Math?e:void 0}const et=typeof globalThis=="object"&&Wo(globalThis)||typeof window=="object"&&Wo(window)||typeof self=="object"&&Wo(self)||typeof global=="object"&&Wo(global)||function(){return this}()||{};function Ki(){return et}function Eh(e,t,n){const r=n||et,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}const oi=Ki(),CP=80;function Sr(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,s=0;const l=" > ",u=l.length;let c;const f=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||CP;for(;n&&i++<r&&(c=TP(n,f),!(c==="html"||i>1&&s+o.length*u+c.length>=p));)o.push(c),s+=c.length,n=n.parentNode;return o.reverse().join(l)}catch{return"<unknown>"}}function TP(e,t){const n=e,r=[];let o,i,s,l,u;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter(p=>n.getAttribute(p)).map(p=>[p,n.getAttribute(p)]):null;if(c&&c.length)c.forEach(p=>{r.push(`[${p[0]}="${p[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&qn(o))for(i=o.split(/\s+/),u=0;u<i.length;u++)r.push(`.${i[u]}`);const f=["aria-label","type","name","title","alt"];for(u=0;u<f.length;u++)s=f[u],l=n.getAttribute(s),l&&r.push(`[${s}="${l}"]`);return r.join("")}function EP(){try{return oi.document.location.href}catch{return""}}function xP(e){return oi.document&&oi.document.querySelector?oi.document.querySelector(e):null}const Aa=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,PP="Sentry Logger ",Pl=["debug","info","warn","error","log","assert","trace"],Si={};function Xn(e){if(!("console"in et))return e();const t=et.console,n={},r=Object.keys(Si);r.forEach(o=>{const i=Si[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function IP(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Aa?Pl.forEach(n=>{t[n]=(...r)=>{e&&Xn(()=>{et.console[n](`${PP}[${n}]:`,...r)})}}):Pl.forEach(n=>{t[n]=()=>{}}),t}const ne=IP(),DP=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function OP(e){return e==="http"||e==="https"}function Io(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:l,publicKey:u}=e;return`${l}://${u}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function NP(e){const t=DP.exec(e);if(!t){Xn(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,o="",i,s="",l]=t.slice(1);let u="",c=l;const f=c.split("/");if(f.length>1&&(u=f.slice(0,-1).join("/"),c=f.pop()),c){const p=c.match(/^\d+/);p&&(c=p[0])}return xh({host:i,pass:o,path:u,projectId:c,port:s,protocol:n,publicKey:r})}function xh(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function BP(e){if(!Aa)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(ne.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?OP(r)?t&&isNaN(parseInt(t,10))?(ne.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(ne.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(ne.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Ph(e){const t=typeof e=="string"?NP(e):xh(e);if(!(!t||!BP(t)))return t}class Un extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function Bt(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);typeof o=="function"&&Ih(o,r),e[t]=o}function bo(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Aa&&ne.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Ih(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,bo(e,"__sentry_original__",t)}catch{}}function Ou(e){return e.__sentry_original__}function MP(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Dh(e){if(Sh(e))return{message:e.message,name:e.name,stack:e.stack,...Rd(e)};if(Gi(e)){const t={type:e.type,target:Md(e.target),currentTarget:Md(e.currentTarget),...Rd(e)};return typeof CustomEvent<"u"&&fr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Md(e){try{return yP(e)?Sr(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Rd(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function RP(e,t=40){const n=Object.keys(Dh(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return ma(n[0],t);for(let r=n.length;r>0;r--){const o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:ma(o,t)}return""}function Yn(e){return Il(e,new Map)}function Il(e,t){if(Ea(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const o of Object.keys(e))typeof e[o]<"u"&&(r[o]=Il(e[o],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(o=>{r.push(Il(o,t))}),r}return e}const Oh=50,Ad=/\(error: (.*)\)/,$d=/captureMessage|captureException/;function Nh(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const o=[],i=n.split(`
82
- `);for(let s=r;s<i.length;s++){const l=i[s];if(l.length>1024)continue;const u=Ad.test(l)?l.replace(Ad,"$1"):l;if(!u.match(/\S*Error: /)){for(const c of t){const f=c(u);if(f){o.push(f);break}}if(o.length>=Oh)break}}return $P(o)}}function AP(e){return Array.isArray(e)?Nh(...e):e}function $P(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),$d.test(t[t.length-1].function||"")&&(t.pop(),$d.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,Oh).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const Ks="<anonymous>";function pr(e){try{return!e||typeof e!="function"?Ks:e.name||Ks}catch{return Ks}}const ii={},Ld={};function Kr(e,t){ii[e]=ii[e]||[],ii[e].push(t)}function Xr(e,t){Ld[e]||(t(),Ld[e]=!0)}function Pn(e,t){const n=e&&ii[e];if(n)for(const r of n)try{r(t)}catch(o){Aa&&ne.error(`Error while triggering instrumentation handler.
80
+ */(function(e,t){(function(r,o){e.exports=o()})(window,function(){return function(n){var r={};function o(i){if(r[i])return r[i].exports;var s=r[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=n,o.c=r,o.d=function(i,s,l){o.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:l})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,s){if(s&1&&(i=o(i)),s&8||s&4&&typeof i=="object"&&i&&i.__esModule)return i;var l=Object.create(null);if(o.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:i}),s&2&&typeof i!="string")for(var u in i)o.d(l,u,(function(c){return i[c]}).bind(null,u));return l},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=2)}([function(n,r,o){var i=this&&this.__extends||function(){var k=function(b,w){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,O){T.__proto__=O}||function(T,O){for(var _ in O)O.hasOwnProperty(_)&&(T[_]=O[_])},k(b,w)};return function(b,w){k(b,w);function T(){this.constructor=b}b.prototype=w===null?Object.create(w):(T.prototype=w.prototype,new T)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=256,l=function(){function k(b){b===void 0&&(b="="),this._paddingCharacter=b}return k.prototype.encodedLength=function(b){return this._paddingCharacter?(b+2)/3*4|0:(b*8+5)/6|0},k.prototype.encode=function(b){for(var w="",T=0;T<b.length-2;T+=3){var O=b[T]<<16|b[T+1]<<8|b[T+2];w+=this._encodeByte(O>>>3*6&63),w+=this._encodeByte(O>>>2*6&63),w+=this._encodeByte(O>>>1*6&63),w+=this._encodeByte(O>>>0*6&63)}var _=b.length-T;if(_>0){var O=b[T]<<16|(_===2?b[T+1]<<8:0);w+=this._encodeByte(O>>>3*6&63),w+=this._encodeByte(O>>>2*6&63),_===2?w+=this._encodeByte(O>>>1*6&63):w+=this._paddingCharacter||"",w+=this._paddingCharacter||""}return w},k.prototype.maxDecodedLength=function(b){return this._paddingCharacter?b/4*3|0:(b*6+7)/8|0},k.prototype.decodedLength=function(b){return this.maxDecodedLength(b.length-this._getPaddingLength(b))},k.prototype.decode=function(b){if(b.length===0)return new Uint8Array(0);for(var w=this._getPaddingLength(b),T=b.length-w,O=new Uint8Array(this.maxDecodedLength(T)),_=0,B=0,C=0,I=0,F=0,q=0,W=0;B<T-4;B+=4)I=this._decodeChar(b.charCodeAt(B+0)),F=this._decodeChar(b.charCodeAt(B+1)),q=this._decodeChar(b.charCodeAt(B+2)),W=this._decodeChar(b.charCodeAt(B+3)),O[_++]=I<<2|F>>>4,O[_++]=F<<4|q>>>2,O[_++]=q<<6|W,C|=I&s,C|=F&s,C|=q&s,C|=W&s;if(B<T-1&&(I=this._decodeChar(b.charCodeAt(B)),F=this._decodeChar(b.charCodeAt(B+1)),O[_++]=I<<2|F>>>4,C|=I&s,C|=F&s),B<T-2&&(q=this._decodeChar(b.charCodeAt(B+2)),O[_++]=F<<4|q>>>2,C|=q&s),B<T-3&&(W=this._decodeChar(b.charCodeAt(B+3)),O[_++]=q<<6|W,C|=W&s),C!==0)throw new Error("Base64Coder: incorrect characters for decoding");return O},k.prototype._encodeByte=function(b){var w=b;return w+=65,w+=25-b>>>8&0-65-26+97,w+=51-b>>>8&26-97-52+48,w+=61-b>>>8&52-48-62+43,w+=62-b>>>8&62-43-63+47,String.fromCharCode(w)},k.prototype._decodeChar=function(b){var w=s;return w+=(42-b&b-44)>>>8&-s+b-43+62,w+=(46-b&b-48)>>>8&-s+b-47+63,w+=(47-b&b-58)>>>8&-s+b-48+52,w+=(64-b&b-91)>>>8&-s+b-65+0,w+=(96-b&b-123)>>>8&-s+b-97+26,w},k.prototype._getPaddingLength=function(b){var w=0;if(this._paddingCharacter){for(var T=b.length-1;T>=0&&b[T]===this._paddingCharacter;T--)w++;if(b.length<4||w>2)throw new Error("Base64Coder: incorrect padding")}return w},k}();r.Coder=l;var u=new l;function c(k){return u.encode(k)}r.encode=c;function f(k){return u.decode(k)}r.decode=f;var p=function(k){i(b,k);function b(){return k!==null&&k.apply(this,arguments)||this}return b.prototype._encodeByte=function(w){var T=w;return T+=65,T+=25-w>>>8&0-65-26+97,T+=51-w>>>8&26-97-52+48,T+=61-w>>>8&52-48-62+45,T+=62-w>>>8&62-45-63+95,String.fromCharCode(T)},b.prototype._decodeChar=function(w){var T=s;return T+=(44-w&w-46)>>>8&-s+w-45+62,T+=(94-w&w-96)>>>8&-s+w-95+63,T+=(47-w&w-58)>>>8&-s+w-48+52,T+=(64-w&w-91)>>>8&-s+w-65+0,T+=(96-w&w-123)>>>8&-s+w-97+26,T},b}(l);r.URLSafeCoder=p;var h=new p;function m(k){return h.encode(k)}r.encodeURLSafe=m;function y(k){return h.decode(k)}r.decodeURLSafe=y,r.encodedLength=function(k){return u.encodedLength(k)},r.maxDecodedLength=function(k){return u.maxDecodedLength(k)},r.decodedLength=function(k){return u.decodedLength(k)}},function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i="utf8: invalid string",s="utf8: invalid source encoding";function l(f){for(var p=new Uint8Array(u(f)),h=0,m=0;m<f.length;m++){var y=f.charCodeAt(m);y<128?p[h++]=y:y<2048?(p[h++]=192|y>>6,p[h++]=128|y&63):y<55296?(p[h++]=224|y>>12,p[h++]=128|y>>6&63,p[h++]=128|y&63):(m++,y=(y&1023)<<10,y|=f.charCodeAt(m)&1023,y+=65536,p[h++]=240|y>>18,p[h++]=128|y>>12&63,p[h++]=128|y>>6&63,p[h++]=128|y&63)}return p}r.encode=l;function u(f){for(var p=0,h=0;h<f.length;h++){var m=f.charCodeAt(h);if(m<128)p+=1;else if(m<2048)p+=2;else if(m<55296)p+=3;else if(m<=57343){if(h>=f.length-1)throw new Error(i);h++,p+=4}else throw new Error(i)}return p}r.encodedLength=u;function c(f){for(var p=[],h=0;h<f.length;h++){var m=f[h];if(m&128){var y=void 0;if(m<224){if(h>=f.length)throw new Error(s);var k=f[++h];if((k&192)!==128)throw new Error(s);m=(m&31)<<6|k&63,y=128}else if(m<240){if(h>=f.length-1)throw new Error(s);var k=f[++h],b=f[++h];if((k&192)!==128||(b&192)!==128)throw new Error(s);m=(m&15)<<12|(k&63)<<6|b&63,y=2048}else if(m<248){if(h>=f.length-2)throw new Error(s);var k=f[++h],b=f[++h],w=f[++h];if((k&192)!==128||(b&192)!==128||(w&192)!==128)throw new Error(s);m=(m&15)<<18|(k&63)<<12|(b&63)<<6|w&63,y=65536}else throw new Error(s);if(m<y||m>=55296&&m<=57343)throw new Error(s);if(m>=65536){if(m>1114111)throw new Error(s);m-=65536,p.push(String.fromCharCode(55296|m>>10)),m=56320|m&1023}}p.push(String.fromCharCode(m))}return p.join("")}r.decode=c},function(n,r,o){n.exports=o(3).default},function(n,r,o){o.r(r);class i{constructor(d,v){this.lastId=0,this.prefix=d,this.name=v}create(d){this.lastId++;var v=this.lastId,x=this.prefix+v,A=this.name+"["+v+"]",te=!1,ue=function(){te||(d.apply(null,arguments),te=!0)};return this[v]=ue,{number:v,id:x,name:A,callback:ue}}remove(d){delete this[d.number]}}var s=new i("_pusher_script_","Pusher.ScriptReceivers"),l={VERSION:"8.4.0-rc2",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},u=l;class c{constructor(d){this.options=d,this.receivers=d.receivers||s,this.loading={}}load(d,v,x){var A=this;if(A.loading[d]&&A.loading[d].length>0)A.loading[d].push(x);else{A.loading[d]=[x];var te=Ae.createScriptRequest(A.getPath(d,v)),ue=A.receivers.create(function(_e){if(A.receivers.remove(ue),A.loading[d]){var Re=A.loading[d];delete A.loading[d];for(var Ze=function(xt){xt||te.cleanup()},rt=0;rt<Re.length;rt++)Re[rt](_e,Ze)}});te.send(ue)}}getRoot(d){var v,x=Ae.getDocument().location.protocol;return d&&d.useTLS||x==="https:"?v=this.options.cdn_https:v=this.options.cdn_http,v.replace(/\/*$/,"")+"/"+this.options.version}getPath(d,v){return this.getRoot(v)+"/"+d+this.options.suffix+".js"}}var f=new i("_pusher_dependencies","Pusher.DependenciesReceivers"),p=new c({cdn_http:u.cdn_http,cdn_https:u.cdn_https,version:u.VERSION,suffix:u.dependency_suffix,receivers:f});const h={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}};var y={buildLogSuffix:function(g){const d="See:",v=h.urls[g];if(!v)return"";let x;return v.fullUrl?x=v.fullUrl:v.path&&(x=h.baseUrl+v.path),x?`${d} ${x}`:""}},k;(function(g){g.UserAuthentication="user-authentication",g.ChannelAuthorization="channel-authorization"})(k||(k={}));class b extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class w extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class T extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class O extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class _ extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class B extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class C extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class I extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class F extends Error{constructor(d,v){super(v),this.status=d,Object.setPrototypeOf(this,new.target.prototype)}}var W=function(g,d,v,x,A){const te=Ae.createXHR();te.open("POST",v.endpoint,!0),te.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var ue in v.headers)te.setRequestHeader(ue,v.headers[ue]);if(v.headersProvider!=null){let _e=v.headersProvider();for(var ue in _e)te.setRequestHeader(ue,_e[ue])}return te.onreadystatechange=function(){if(te.readyState===4)if(te.status===200){let _e,Re=!1;try{_e=JSON.parse(te.responseText),Re=!0}catch{A(new F(200,`JSON returned from ${x.toString()} endpoint was invalid, yet status code was 200. Data was: ${te.responseText}`),null)}Re&&A(null,_e)}else{let _e="";switch(x){case k.UserAuthentication:_e=y.buildLogSuffix("authenticationEndpoint");break;case k.ChannelAuthorization:_e=`Clients must be authorized to join private or presence channels. ${y.buildLogSuffix("authorizationEndpoint")}`;break}A(new F(te.status,`Unable to retrieve auth string from ${x.toString()} endpoint - received status: ${te.status} from ${v.endpoint}. ${_e}`),null)}},te.send(d),te};function M(g){return j(X(g))}var D=String.fromCharCode,$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Y=function(g){var d=g.charCodeAt(0);return d<128?g:d<2048?D(192|d>>>6)+D(128|d&63):D(224|d>>>12&15)+D(128|d>>>6&63)+D(128|d&63)},X=function(g){return g.replace(/[^\x00-\x7F]/g,Y)},K=function(g){var d=[0,2,1][g.length%3],v=g.charCodeAt(0)<<16|(g.length>1?g.charCodeAt(1):0)<<8|(g.length>2?g.charCodeAt(2):0),x=[$.charAt(v>>>18),$.charAt(v>>>12&63),d>=2?"=":$.charAt(v>>>6&63),d>=1?"=":$.charAt(v&63)];return x.join("")},j=window.btoa||function(g){return g.replace(/[\s\S]{1,3}/g,K)};class U{constructor(d,v,x,A){this.clear=v,this.timer=d(()=>{this.timer&&(this.timer=A(this.timer))},x)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}var S=U;function H(g){window.clearTimeout(g)}function Z(g){window.clearInterval(g)}class Q extends S{constructor(d,v){super(setTimeout,H,d,function(x){return v(),null})}}class V extends S{constructor(d,v){super(setInterval,Z,d,function(x){return v(),x})}}var E={now(){return Date.now?Date.now():new Date().valueOf()},defer(g){return new Q(0,g)},method(g,...d){var v=Array.prototype.slice.call(arguments,1);return function(x){return x[g].apply(x,v.concat(arguments))}}},P=E;function R(g,...d){for(var v=0;v<d.length;v++){var x=d[v];for(var A in x)x[A]&&x[A].constructor&&x[A].constructor===Object?g[A]=R(g[A]||{},x[A]):g[A]=x[A]}return g}function G(){for(var g=["Pusher"],d=0;d<arguments.length;d++)typeof arguments[d]=="string"?g.push(arguments[d]):g.push(me(arguments[d]));return g.join(" : ")}function ie(g,d){var v=Array.prototype.indexOf;if(g===null)return-1;if(v&&g.indexOf===v)return g.indexOf(d);for(var x=0,A=g.length;x<A;x++)if(g[x]===d)return x;return-1}function oe(g,d){for(var v in g)Object.prototype.hasOwnProperty.call(g,v)&&d(g[v],v,g)}function Ie(g){var d=[];return oe(g,function(v,x){d.push(x)}),d}function Ee(g){var d=[];return oe(g,function(v){d.push(v)}),d}function fe(g,d,v){for(var x=0;x<g.length;x++)d.call(v||window,g[x],x,g)}function Be(g,d){for(var v=[],x=0;x<g.length;x++)v.push(d(g[x],x,g,v));return v}function $e(g,d){var v={};return oe(g,function(x,A){v[A]=d(x)}),v}function ze(g,d){d=d||function(A){return!!A};for(var v=[],x=0;x<g.length;x++)d(g[x],x,g,v)&&v.push(g[x]);return v}function Ge(g,d){var v={};return oe(g,function(x,A){(d&&d(x,A,g,v)||x)&&(v[A]=x)}),v}function Ke(g){var d=[];return oe(g,function(v,x){d.push([x,v])}),d}function ve(g,d){for(var v=0;v<g.length;v++)if(d(g[v],v,g))return!0;return!1}function Qe(g,d){for(var v=0;v<g.length;v++)if(!d(g[v],v,g))return!1;return!0}function Te(g){return $e(g,function(d){return typeof d=="object"&&(d=me(d)),encodeURIComponent(M(d.toString()))})}function se(g){var d=Ge(g,function(x){return x!==void 0}),v=Be(Ke(Te(d)),P.method("join","=")).join("&");return v}function ce(g){var d=[],v=[];return function x(A,te){var ue,_e,Re;switch(typeof A){case"object":if(!A)return null;for(ue=0;ue<d.length;ue+=1)if(d[ue]===A)return{$ref:v[ue]};if(d.push(A),v.push(te),Object.prototype.toString.apply(A)==="[object Array]")for(Re=[],ue=0;ue<A.length;ue+=1)Re[ue]=x(A[ue],te+"["+ue+"]");else{Re={};for(_e in A)Object.prototype.hasOwnProperty.call(A,_e)&&(Re[_e]=x(A[_e],te+"["+JSON.stringify(_e)+"]"))}return Re;case"number":case"string":case"boolean":return A}}(g,"$")}function me(g){try{return JSON.stringify(g)}catch{return JSON.stringify(ce(g))}}class Pt{constructor(){this.globalLog=d=>{window.console&&window.console.log&&window.console.log(d)}}debug(...d){this.log(this.globalLog,d)}warn(...d){this.log(this.globalLogWarn,d)}error(...d){this.log(this.globalLogError,d)}globalLogWarn(d){window.console&&window.console.warn?window.console.warn(d):this.globalLog(d)}globalLogError(d){window.console&&window.console.error?window.console.error(d):this.globalLogWarn(d)}log(d,...v){var x=G.apply(this,arguments);Ts.log?Ts.log(x):Ts.logToConsole&&d.bind(this)(x)}}var xe=new Pt,Mt=function(g,d,v,x,A){(v.headers!==void 0||v.headersProvider!=null)&&xe.warn(`To send headers with the ${x.toString()} request, you must use AJAX, rather than JSONP.`);var te=g.nextAuthCallbackID.toString();g.nextAuthCallbackID++;var ue=g.getDocument(),_e=ue.createElement("script");g.auth_callbacks[te]=function(rt){A(null,rt)};var Re="Pusher.auth_callbacks['"+te+"']";_e.src=v.endpoint+"?callback="+encodeURIComponent(Re)+"&"+d;var Ze=ue.getElementsByTagName("head")[0]||ue.documentElement;Ze.insertBefore(_e,Ze.firstChild)},Ut=Mt;class Rt{constructor(d){this.src=d}send(d){var v=this,x="Error loading "+v.src;v.script=document.createElement("script"),v.script.id=d.id,v.script.src=v.src,v.script.type="text/javascript",v.script.charset="UTF-8",v.script.addEventListener?(v.script.onerror=function(){d.callback(x)},v.script.onload=function(){d.callback(null)}):v.script.onreadystatechange=function(){(v.script.readyState==="loaded"||v.script.readyState==="complete")&&d.callback(null)},v.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(v.errorScript=document.createElement("script"),v.errorScript.id=d.id+"_error",v.errorScript.text=d.name+"('"+x+"');",v.script.async=v.errorScript.async=!1):v.script.async=!0;var A=document.getElementsByTagName("head")[0];A.insertBefore(v.script,A.firstChild),v.errorScript&&A.insertBefore(v.errorScript,v.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class zt{constructor(d,v){this.url=d,this.data=v}send(d){if(!this.request){var v=se(this.data),x=this.url+"/"+d.number+"?"+v;this.request=Ae.createScriptRequest(x),this.request.send(d)}}cleanup(){this.request&&this.request.cleanup()}}var kn=function(g,d){return function(v,x){var A="http"+(d?"s":"")+"://",te=A+(g.host||g.options.host)+g.options.path,ue=Ae.createJSONPRequest(te,v),_e=Ae.ScriptReceivers.create(function(Re,Ze){s.remove(_e),ue.cleanup(),Ze&&Ze.host&&(g.host=Ze.host),x&&x(Re,Ze)});ue.send(_e)}},Sn={name:"jsonp",getAgent:kn},Et=Sn;function L(g,d,v){var x=g+(d.useTLS?"s":""),A=d.useTLS?d.hostTLS:d.hostNonTLS;return x+"://"+A+v}function N(g,d){var v="/app/"+g,x="?protocol="+u.PROTOCOL+"&client=js&version="+u.VERSION+(d?"&"+d:"");return v+x}var ee={getInitial:function(g,d){var v=(d.httpPath||"")+N(g,"flash=false");return L("ws",d,v)}},re={getInitial:function(g,d){var v=(d.httpPath||"/pusher")+N(g);return L("http",d,v)}},ge={getInitial:function(g,d){return L("http",d,d.httpPath||"/pusher")},getPath:function(g,d){return N(g)}};class we{constructor(){this._callbacks={}}get(d){return this._callbacks[qe(d)]}add(d,v,x){var A=qe(d);this._callbacks[A]=this._callbacks[A]||[],this._callbacks[A].push({fn:v,context:x})}remove(d,v,x){if(!d&&!v&&!x){this._callbacks={};return}var A=d?[qe(d)]:Ie(this._callbacks);v||x?this.removeCallback(A,v,x):this.removeAllCallbacks(A)}removeCallback(d,v,x){fe(d,function(A){this._callbacks[A]=ze(this._callbacks[A]||[],function(te){return v&&v!==te.fn||x&&x!==te.context}),this._callbacks[A].length===0&&delete this._callbacks[A]},this)}removeAllCallbacks(d){fe(d,function(v){delete this._callbacks[v]},this)}}function qe(g){return"_"+g}class J{constructor(d){this.callbacks=new we,this.global_callbacks=[],this.failThrough=d}bind(d,v,x){return this.callbacks.add(d,v,x),this}bind_global(d){return this.global_callbacks.push(d),this}unbind(d,v,x){return this.callbacks.remove(d,v,x),this}unbind_global(d){return d?(this.global_callbacks=ze(this.global_callbacks||[],v=>v!==d),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(d,v,x){for(var A=0;A<this.global_callbacks.length;A++)this.global_callbacks[A](d,v);var te=this.callbacks.get(d),ue=[];if(x?ue.push(v,x):v&&ue.push(v),te&&te.length>0)for(var A=0;A<te.length;A++)te[A].fn.apply(te[A].context||window,ue);else this.failThrough&&this.failThrough(d,v);return this}}class le extends J{constructor(d,v,x,A,te){super(),this.initialize=Ae.transportConnectionInitializer,this.hooks=d,this.name=v,this.priority=x,this.key=A,this.options=te,this.state="new",this.timeline=te.timeline,this.activityTimeout=te.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return!!this.hooks.handlesActivityChecks}supportsPing(){return!!this.hooks.supportsPing}connect(){if(this.socket||this.state!=="initialized")return!1;var d=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(d,this.options)}catch(v){return P.defer(()=>{this.onError(v),this.changeState("closed")}),!1}return this.bindListeners(),xe.debug("Connecting",{transport:this.name,url:d}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(d){return this.state==="open"?(P.defer(()=>{this.socket&&this.socket.send(d)}),!0):!1}ping(){this.state==="open"&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(d){this.emit("error",{type:"WebSocketError",error:d}),this.timeline.error(this.buildTimelineMessage({error:d.toString()}))}onClose(d){d?this.changeState("closed",{code:d.code,reason:d.reason,wasClean:d.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(d){this.emit("message",d)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=d=>{this.onError(d)},this.socket.onclose=d=>{this.onClose(d)},this.socket.onmessage=d=>{this.onMessage(d)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(d,v){this.state=d,this.timeline.info(this.buildTimelineMessage({state:d,params:v})),this.emit(d,v)}buildTimelineMessage(d){return R({cid:this.id},d)}}class Le{constructor(d){this.hooks=d}isSupported(d){return this.hooks.isSupported(d)}createConnection(d,v,x,A){return new le(this.hooks,d,v,x,A)}}var De=new Le({urls:ee,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!Ae.getWebSocketAPI()},isSupported:function(){return!!Ae.getWebSocketAPI()},getSocket:function(g){return Ae.createWebSocket(g)}}),st={urls:re,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},pe=R({getSocket:function(g){return Ae.HTTPFactory.createStreamingSocket(g)}},st),mt=R({getSocket:function(g){return Ae.HTTPFactory.createPollingSocket(g)}},st),Me={isSupported:function(){return Ae.isXHRSupported()}},ln=new Le(R({},pe,Me)),At=new Le(R({},mt,Me)),Va={ws:De,xhr_streaming:ln,xhr_polling:At},Zn=Va,Fa=new Le({file:"sockjs",urls:ge,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(g,d){return new window.SockJS(g,null,{js_path:p.getPath("sockjs",{useTLS:d.useTLS}),ignore_null_origin:d.ignoreNullOrigin})},beforeOpen:function(g,d){g.send(JSON.stringify({path:d}))}}),rn={isSupported:function(g){var d=Ae.isXDRSupported(g.useTLS);return d}},Qr=new Le(R({},pe,rn)),Se=new Le(R({},mt,rn));Zn.xdr_streaming=Qr,Zn.xdr_polling=Se,Zn.sockjs=Fa;var jt=Zn;class be extends J{constructor(){super();var d=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){d.emit("online")},!1),window.addEventListener("offline",function(){d.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var vt=new be;class it{constructor(d,v,x){this.manager=d,this.transport=v,this.minPingDelay=x.minPingDelay,this.maxPingDelay=x.maxPingDelay,this.pingDelay=void 0}createConnection(d,v,x,A){A=R({},A,{activityTimeout:this.pingDelay});var te=this.transport.createConnection(d,v,x,A),ue=null,_e=function(){te.unbind("open",_e),te.bind("closed",Re),ue=P.now()},Re=Ze=>{if(te.unbind("closed",Re),Ze.code===1002||Ze.code===1003)this.manager.reportDeath();else if(!Ze.wasClean&&ue){var rt=P.now()-ue;rt<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(rt/2,this.minPingDelay))}};return te.bind("open",_e),te}isSupported(d){return this.manager.isAlive()&&this.transport.isSupported(d)}}const er={decodeMessage:function(g){try{var d=JSON.parse(g.data),v=d.data;if(typeof v=="string")try{v=JSON.parse(d.data)}catch{}var x={event:d.event,channel:d.channel,data:v};return d.user_id&&(x.user_id=d.user_id),x}catch(A){throw{type:"MessageParseError",error:A,data:g.data}}},encodeMessage:function(g){return JSON.stringify(g)},processHandshake:function(g){var d=er.decodeMessage(g);if(d.event==="pusher:connection_established"){if(!d.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:d.data.socket_id,activityTimeout:d.data.activity_timeout*1e3}}else{if(d.event==="pusher:error")return{action:this.getCloseAction(d.data),error:this.getCloseError(d.data)};throw"Invalid handshake"}},getCloseAction:function(g){return g.code<4e3?g.code>=1002&&g.code<=1004?"backoff":null:g.code===4e3?"tls_only":g.code<4100?"refused":g.code<4200?"backoff":g.code<4300?"retry":"refused"},getCloseError:function(g){return g.code!==1e3&&g.code!==1001?{type:"PusherError",data:{code:g.code,message:g.reason||g.message}}:null}};var Gt=er;class Ha extends J{constructor(d,v){super(),this.id=d,this.transport=v,this.activityTimeout=v.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(d){return this.transport.send(d)}send_event(d,v,x){var A={event:d,data:v};return x&&(A.channel=x),xe.debug("Event sent",A),this.send(Gt.encodeMessage(A))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var d={message:x=>{var A;try{A=Gt.decodeMessage(x)}catch(te){this.emit("error",{type:"MessageParseError",error:te,data:x.data})}if(A!==void 0){switch(xe.debug("Event recd",A),A.event){case"pusher:error":this.emit("error",{type:"PusherError",data:A.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",A)}},activity:()=>{this.emit("activity")},error:x=>{this.emit("error",x)},closed:x=>{v(),x&&x.code&&this.handleCloseEvent(x),this.transport=null,this.emit("closed")}},v=()=>{oe(d,(x,A)=>{this.transport.unbind(A,x)})};oe(d,(x,A)=>{this.transport.bind(A,x)})}handleCloseEvent(d){var v=Gt.getCloseAction(d),x=Gt.getCloseError(d);x&&this.emit("error",x),v&&this.emit(v,{action:v,error:x})}}class _s{constructor(d,v){this.transport=d,this.callback=v,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=d=>{this.unbindListeners();var v;try{v=Gt.processHandshake(d)}catch(x){this.finish("error",{error:x}),this.transport.close();return}v.action==="connected"?this.finish("connected",{connection:new Ha(v.id,this.transport),activityTimeout:v.activityTimeout}):(this.finish(v.action,{error:v.error}),this.transport.close())},this.onClosed=d=>{this.unbindListeners();var v=Gt.getCloseAction(d)||"backoff",x=Gt.getCloseError(d);this.finish(v,{error:x})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(d,v){this.callback(R({transport:this.transport,action:d},v))}}class Zr{constructor(d,v){this.timeline=d,this.options=v||{}}send(d,v){this.timeline.isEmpty()||this.timeline.send(Ae.TimelineTransport.getAgent(this,d),v)}}class ea extends J{constructor(d,v){super(function(x,A){xe.debug("No callbacks on "+d+" for "+x)}),this.name=d,this.pusher=v,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(d,v){return v(null,{auth:""})}trigger(d,v){if(d.indexOf("client-")!==0)throw new b("Event '"+d+"' does not start with 'client-'");if(!this.subscribed){var x=y.buildLogSuffix("triggeringClientEvents");xe.warn(`Client event triggered before channel 'subscription_succeeded' event . ${x}`)}return this.pusher.send_event(d,v,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(d){var v=d.event,x=d.data;if(v==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(d);else if(v==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(d);else if(v.indexOf("pusher_internal:")!==0){var A={};this.emit(v,x,A)}}handleSubscriptionSucceededEvent(d){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",d.data)}handleSubscriptionCountEvent(d){d.data.subscription_count&&(this.subscriptionCount=d.data.subscription_count),this.emit("pusher:subscription_count",d.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(d,v)=>{d?(this.subscriptionPending=!1,xe.error(d.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:d.message},d instanceof F?{status:d.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:v.auth,channel_data:v.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class z extends ea{authorize(d,v){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:d},v)}}class de{constructor(){this.reset()}get(d){return Object.prototype.hasOwnProperty.call(this.members,d)?{id:d,info:this.members[d]}:null}each(d){oe(this.members,(v,x)=>{d(this.get(x))})}setMyID(d){this.myID=d}onSubscription(d){this.members=d.presence.hash,this.count=d.presence.count,this.me=this.get(this.myID)}addMember(d){return this.get(d.user_id)===null&&this.count++,this.members[d.user_id]=d.user_info,this.get(d.user_id)}removeMember(d){var v=this.get(d.user_id);return v&&(delete this.members[d.user_id],this.count--),v}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var Ve=function(g,d,v,x){function A(te){return te instanceof v?te:new v(function(ue){ue(te)})}return new(v||(v=Promise))(function(te,ue){function _e(rt){try{Ze(x.next(rt))}catch(xt){ue(xt)}}function Re(rt){try{Ze(x.throw(rt))}catch(xt){ue(xt)}}function Ze(rt){rt.done?te(rt.value):A(rt.value).then(_e,Re)}Ze((x=x.apply(g,d||[])).next())})};class gt extends z{constructor(d,v){super(d,v),this.members=new de}authorize(d,v){super.authorize(d,(x,A)=>Ve(this,void 0,void 0,function*(){if(!x)if(A=A,A.channel_data!=null){var te=JSON.parse(A.channel_data);this.members.setMyID(te.user_id)}else if(yield this.pusher.user.signinDonePromise,this.pusher.user.user_data!=null)this.members.setMyID(this.pusher.user.user_data.id);else{let ue=y.buildLogSuffix("authorizationEndpoint");xe.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${ue}, or the user should be signed in.`),v("Invalid auth response");return}v(x,A)}))}handleEvent(d){var v=d.event;if(v.indexOf("pusher_internal:")===0)this.handleInternalEvent(d);else{var x=d.data,A={};d.user_id&&(A.user_id=d.user_id),this.emit(v,x,A)}}handleInternalEvent(d){var v=d.event,x=d.data;switch(v){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(d);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(d);break;case"pusher_internal:member_added":var A=this.members.addMember(x);this.emit("pusher:member_added",A);break;case"pusher_internal:member_removed":var te=this.members.removeMember(x);te&&this.emit("pusher:member_removed",te);break}}handleSubscriptionSucceededEvent(d){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(d.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var Dr=o(1),Bo=o(0);class Mo extends z{constructor(d,v,x){super(d,v),this.key=null,this.nacl=x}authorize(d,v){super.authorize(d,(x,A)=>{if(x){v(x,A);return}let te=A.shared_secret;if(!te){v(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=Object(Bo.decode)(te),delete A.shared_secret,v(null,A)})}trigger(d,v){throw new B("Client events are not currently supported for encrypted channels")}handleEvent(d){var v=d.event,x=d.data;if(v.indexOf("pusher_internal:")===0||v.indexOf("pusher:")===0){super.handleEvent(d);return}this.handleEncryptedEvent(v,x)}handleEncryptedEvent(d,v){if(!this.key){xe.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!v.ciphertext||!v.nonce){xe.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+v);return}let x=Object(Bo.decode)(v.ciphertext);if(x.length<this.nacl.secretbox.overheadLength){xe.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${x.length}`);return}let A=Object(Bo.decode)(v.nonce);if(A.length<this.nacl.secretbox.nonceLength){xe.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${A.length}`);return}let te=this.nacl.secretbox.open(x,A,this.key);if(te===null){xe.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,(ue,_e)=>{if(ue){xe.error(`Failed to make a request to the authEndpoint: ${_e}. Unable to fetch new key, so dropping encrypted event`);return}if(te=this.nacl.secretbox.open(x,A,this.key),te===null){xe.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(d,this.getDataToEmit(te))});return}this.emit(d,this.getDataToEmit(te))}getDataToEmit(d){let v=Object(Dr.decode)(d);try{return JSON.parse(v)}catch{return v}}}class cv extends J{constructor(d,v){super(),this.state="initialized",this.connection=null,this.key=d,this.options=v,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var x=Ae.getNetwork();x.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),x.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}switchCluster(d){this.key=d,this.updateStrategy(),this.retryIn(0)}connect(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(d){return this.connection?this.connection.send(d):!1}send_event(d,v,x){return this.connection?this.connection.send_event(d,v,x):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var d=(v,x)=>{v?this.runner=this.strategy.connect(0,d):x.action==="error"?(this.emit("error",{type:"HandshakeError",error:x.error}),this.timeline.error({handshakeError:x.error})):(this.abortConnecting(),this.handshakeCallbacks[x.action](x))};this.runner=this.strategy.connect(0,d)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var d=this.abandonConnection();d.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(d){this.timeline.info({action:"retry",delay:d}),d>0&&this.emit("connecting_in",Math.round(d/1e3)),this.retryTimer=new Q(d||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new Q(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new Q(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new Q(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(d){return R({},d,{message:v=>{this.resetActivityCheck(),this.emit("message",v)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:v=>{this.emit("error",v)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(d){return R({},d,{connected:v=>{this.activityTimeout=Math.min(this.options.activityTimeout,v.activityTimeout,v.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(v.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let d=v=>x=>{x.error&&this.emit("error",{type:"WebSocketError",error:x.error}),v(x)};return{tls_only:d(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:d(()=>{this.disconnect()}),backoff:d(()=>{this.retryIn(1e3)}),retry:d(()=>{this.retryIn(0)})}}setConnection(d){this.connection=d;for(var v in this.connectionCallbacks)this.connection.bind(v,this.connectionCallbacks[v]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var d in this.connectionCallbacks)this.connection.unbind(d,this.connectionCallbacks[d]);var v=this.connection;return this.connection=null,v}}updateState(d,v){var x=this.state;if(this.state=d,x!==d){var A=d;A==="connected"&&(A+=" with new socket ID "+v.socket_id),xe.debug("State changed",x+" -> "+A),this.timeline.info({state:d,params:v}),this.emit("state_change",{previous:x,current:d}),this.emit(d,v)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class dv{constructor(){this.channels={}}add(d,v){return this.channels[d]||(this.channels[d]=fv(d,v)),this.channels[d]}all(){return Ee(this.channels)}find(d){return this.channels[d]}remove(d){var v=this.channels[d];return delete this.channels[d],v}disconnect(){oe(this.channels,function(d){d.disconnect()})}}function fv(g,d){if(g.indexOf("private-encrypted-")===0){if(d.config.nacl)return tr.createEncryptedChannel(g,d,d.config.nacl);let v="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",x=y.buildLogSuffix("encryptedChannelSupport");throw new B(`${v}. ${x}`)}else{if(g.indexOf("private-")===0)return tr.createPrivateChannel(g,d);if(g.indexOf("presence-")===0)return tr.createPresenceChannel(g,d);if(g.indexOf("#")===0)throw new w('Cannot create a channel with name "'+g+'".');return tr.createChannel(g,d)}}var pv={createChannels(){return new dv},createConnectionManager(g,d){return new cv(g,d)},createChannel(g,d){return new ea(g,d)},createPrivateChannel(g,d){return new z(g,d)},createPresenceChannel(g,d){return new gt(g,d)},createEncryptedChannel(g,d,v){return new Mo(g,d,v)},createTimelineSender(g,d){return new Zr(g,d)},createHandshake(g,d){return new _s(g,d)},createAssistantToTheTransportManager(g,d,v){return new it(g,d,v)}},tr=pv;class ic{constructor(d){this.options=d||{},this.livesLeft=this.options.lives||1/0}getAssistant(d){return tr.createAssistantToTheTransportManager(this,d,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class Nr{constructor(d,v){this.strategies=d,this.loop=!!v.loop,this.failFast=!!v.failFast,this.timeout=v.timeout,this.timeoutLimit=v.timeoutLimit}isSupported(){return ve(this.strategies,P.method("isSupported"))}connect(d,v){var x=this.strategies,A=0,te=this.timeout,ue=null,_e=(Re,Ze)=>{Ze?v(null,Ze):(A=A+1,this.loop&&(A=A%x.length),A<x.length?(te&&(te=te*2,this.timeoutLimit&&(te=Math.min(te,this.timeoutLimit))),ue=this.tryStrategy(x[A],d,{timeout:te,failFast:this.failFast},_e)):v(!0))};return ue=this.tryStrategy(x[A],d,{timeout:te,failFast:this.failFast},_e),{abort:function(){ue.abort()},forceMinPriority:function(Re){d=Re,ue&&ue.forceMinPriority(Re)}}}tryStrategy(d,v,x,A){var te=null,ue=null;return x.timeout>0&&(te=new Q(x.timeout,function(){ue.abort(),A(!0)})),ue=d.connect(v,function(_e,Re){_e&&te&&te.isRunning()&&!x.failFast||(te&&te.ensureAborted(),A(_e,Re))}),{abort:function(){te&&te.ensureAborted(),ue.abort()},forceMinPriority:function(_e){ue.forceMinPriority(_e)}}}}class ws{constructor(d){this.strategies=d}isSupported(){return ve(this.strategies,P.method("isSupported"))}connect(d,v){return hv(this.strategies,d,function(x,A){return function(te,ue){if(A[x].error=te,te){mv(A)&&v(!0);return}fe(A,function(_e){_e.forceMinPriority(ue.transport.priority)}),v(null,ue)}})}}function hv(g,d,v){var x=Be(g,function(A,te,ue,_e){return A.connect(d,v(te,_e))});return{abort:function(){fe(x,vv)},forceMinPriority:function(A){fe(x,function(te){te.forceMinPriority(A)})}}}function mv(g){return Qe(g,function(d){return!!d.error})}function vv(g){!g.error&&!g.aborted&&(g.abort(),g.aborted=!0)}class gv{constructor(d,v,x){this.strategy=d,this.transports=v,this.ttl=x.ttl||1800*1e3,this.usingTLS=x.useTLS,this.timeline=x.timeline}isSupported(){return this.strategy.isSupported()}connect(d,v){var x=this.usingTLS,A=yv(x),te=A&&A.cacheSkipCount?A.cacheSkipCount:0,ue=[this.strategy];if(A&&A.timestamp+this.ttl>=P.now()){var _e=this.transports[A.transport];_e&&(["ws","wss"].includes(A.transport)||te>3?(this.timeline.info({cached:!0,transport:A.transport,latency:A.latency}),ue.push(new Nr([_e],{timeout:A.latency*2+1e3,failFast:!0}))):te++)}var Re=P.now(),Ze=ue.pop().connect(d,function rt(xt,$o){xt?(sc(x),ue.length>0?(Re=P.now(),Ze=ue.pop().connect(d,rt)):v(xt)):(bv(x,$o.transport.name,P.now()-Re,te),v(null,$o))});return{abort:function(){Ze.abort()},forceMinPriority:function(rt){d=rt,Ze&&Ze.forceMinPriority(rt)}}}}function ks(g){return"pusherTransport"+(g?"TLS":"NonTLS")}function yv(g){var d=Ae.getLocalStorage();if(d)try{var v=d[ks(g)];if(v)return JSON.parse(v)}catch{sc(g)}return null}function bv(g,d,v,x){var A=Ae.getLocalStorage();if(A)try{A[ks(g)]=me({timestamp:P.now(),transport:d,latency:v,cacheSkipCount:x})}catch{}}function sc(g){var d=Ae.getLocalStorage();if(d)try{delete d[ks(g)]}catch{}}class Ro{constructor(d,{delay:v}){this.strategy=d,this.options={delay:v}}isSupported(){return this.strategy.isSupported()}connect(d,v){var x=this.strategy,A,te=new Q(this.options.delay,function(){A=x.connect(d,v)});return{abort:function(){te.ensureAborted(),A&&A.abort()},forceMinPriority:function(ue){d=ue,A&&A.forceMinPriority(ue)}}}}class Ua{constructor(d,v,x){this.test=d,this.trueBranch=v,this.falseBranch=x}isSupported(){var d=this.test()?this.trueBranch:this.falseBranch;return d.isSupported()}connect(d,v){var x=this.test()?this.trueBranch:this.falseBranch;return x.connect(d,v)}}class _v{constructor(d){this.strategy=d}isSupported(){return this.strategy.isSupported()}connect(d,v){var x=this.strategy.connect(d,function(A,te){te&&x.abort(),v(A,te)});return x}}function za(g){return function(){return g.isSupported()}}var wv=function(g,d,v){var x={};function A(_c,bg,_g,wg,kg){var wc=v(g,_c,bg,_g,wg,kg);return x[_c]=wc,wc}var te=Object.assign({},d,{hostNonTLS:g.wsHost+":"+g.wsPort,hostTLS:g.wsHost+":"+g.wssPort,httpPath:g.wsPath}),ue=Object.assign({},te,{useTLS:!0}),_e=Object.assign({},d,{hostNonTLS:g.httpHost+":"+g.httpPort,hostTLS:g.httpHost+":"+g.httpsPort,httpPath:g.httpPath}),Re={loop:!0,timeout:15e3,timeoutLimit:6e4},Ze=new ic({minPingDelay:1e4,maxPingDelay:g.activityTimeout}),rt=new ic({lives:2,minPingDelay:1e4,maxPingDelay:g.activityTimeout}),xt=A("ws","ws",3,te,Ze),$o=A("wss","ws",3,ue,Ze),hg=A("sockjs","sockjs",1,_e),hc=A("xhr_streaming","xhr_streaming",1,_e,rt),mg=A("xdr_streaming","xdr_streaming",1,_e,rt),mc=A("xhr_polling","xhr_polling",1,_e),vg=A("xdr_polling","xdr_polling",1,_e),vc=new Nr([xt],Re),gg=new Nr([$o],Re),yg=new Nr([hg],Re),gc=new Nr([new Ua(za(hc),hc,mg)],Re),yc=new Nr([new Ua(za(mc),mc,vg)],Re),bc=new Nr([new Ua(za(gc),new ws([gc,new Ro(yc,{delay:4e3})]),yc)],Re),Es=new Ua(za(bc),bc,yg),xs;return d.useTLS?xs=new ws([vc,new Ro(Es,{delay:2e3})]):xs=new ws([vc,new Ro(gg,{delay:2e3}),new Ro(Es,{delay:5e3})]),new gv(new _v(new Ua(za(xt),xs,Es)),x,{ttl:18e5,timeline:d.timeline,useTLS:d.useTLS})},kv=wv,Sv=function(){var g=this;g.timeline.info(g.buildTimelineMessage({transport:g.name+(g.options.useTLS?"s":"")})),g.hooks.isInitialized()?g.changeState("initialized"):g.hooks.file?(g.changeState("initializing"),p.load(g.hooks.file,{useTLS:g.options.useTLS},function(d,v){g.hooks.isInitialized()?(g.changeState("initialized"),v(!0)):(d&&g.onError(d),g.onClose(),v(!1))})):g.onClose()},Cv={getRequest:function(g){var d=new window.XDomainRequest;return d.ontimeout=function(){g.emit("error",new T),g.close()},d.onerror=function(v){g.emit("error",v),g.close()},d.onprogress=function(){d.responseText&&d.responseText.length>0&&g.onChunk(200,d.responseText)},d.onload=function(){d.responseText&&d.responseText.length>0&&g.onChunk(200,d.responseText),g.emit("finished",200),g.close()},d},abortRequest:function(g){g.ontimeout=g.onerror=g.onprogress=g.onload=null,g.abort()}},Tv=Cv;const Ev=256*1024;class xv extends J{constructor(d,v,x){super(),this.hooks=d,this.method=v,this.url=x}start(d){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},Ae.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(d)}close(){this.unloader&&(Ae.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(d,v){for(;;){var x=this.advanceBuffer(v);if(x)this.emit("chunk",{status:d,data:x});else break}this.isBufferTooLong(v)&&this.emit("buffer_too_long")}advanceBuffer(d){var v=d.slice(this.position),x=v.indexOf(`
81
+ `);return x!==-1?(this.position+=x+1,v.slice(0,x)):null}isBufferTooLong(d){return this.position===d.length&&d.length>Ev}}var Ss;(function(g){g[g.CONNECTING=0]="CONNECTING",g[g.OPEN=1]="OPEN",g[g.CLOSED=3]="CLOSED"})(Ss||(Ss={}));var Or=Ss,Pv=1;class Iv{constructor(d,v){this.hooks=d,this.session=uc(1e3)+"/"+Bv(8),this.location=Dv(v),this.readyState=Or.CONNECTING,this.openStream()}send(d){return this.sendRaw(JSON.stringify([d]))}ping(){this.hooks.sendHeartbeat(this)}close(d,v){this.onClose(d,v,!0)}sendRaw(d){if(this.readyState===Or.OPEN)try{return Ae.createSocketRequest("POST",lc(Nv(this.location,this.session))).start(d),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(d,v,x){this.closeStream(),this.readyState=Or.CLOSED,this.onclose&&this.onclose({code:d,reason:v,wasClean:x})}onChunk(d){if(d.status===200){this.readyState===Or.OPEN&&this.onActivity();var v,x=d.data.slice(0,1);switch(x){case"o":v=JSON.parse(d.data.slice(1)||"{}"),this.onOpen(v);break;case"a":v=JSON.parse(d.data.slice(1)||"[]");for(var A=0;A<v.length;A++)this.onEvent(v[A]);break;case"m":v=JSON.parse(d.data.slice(1)||"null"),this.onEvent(v);break;case"h":this.hooks.onHeartbeat(this);break;case"c":v=JSON.parse(d.data.slice(1)||"[]"),this.onClose(v[0],v[1],!0);break}}}onOpen(d){this.readyState===Or.CONNECTING?(d&&d.hostname&&(this.location.base=Ov(this.location.base,d.hostname)),this.readyState=Or.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(d){this.readyState===Or.OPEN&&this.onmessage&&this.onmessage({data:d})}onActivity(){this.onactivity&&this.onactivity()}onError(d){this.onerror&&this.onerror(d)}openStream(){this.stream=Ae.createSocketRequest("POST",lc(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",d=>{this.onChunk(d)}),this.stream.bind("finished",d=>{this.hooks.onFinished(this,d)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(d){P.defer(()=>{this.onError(d),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function Dv(g){var d=/([^\?]*)\/*(\??.*)/.exec(g);return{base:d[1],queryString:d[2]}}function Nv(g,d){return g.base+"/"+d+"/xhr_send"}function lc(g){var d=g.indexOf("?")===-1?"?":"&";return g+d+"t="+ +new Date+"&n="+Pv++}function Ov(g,d){var v=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(g);return v[1]+d+v[3]}function uc(g){return Ae.randomInt(g)}function Bv(g){for(var d=[],v=0;v<g;v++)d.push(uc(32).toString(32));return d.join("")}var Mv=Iv,Rv={getReceiveURL:function(g,d){return g.base+"/"+d+"/xhr_streaming"+g.queryString},onHeartbeat:function(g){g.sendRaw("[]")},sendHeartbeat:function(g){g.sendRaw("[]")},onFinished:function(g,d){g.onClose(1006,"Connection interrupted ("+d+")",!1)}},Av=Rv,$v={getReceiveURL:function(g,d){return g.base+"/"+d+"/xhr"+g.queryString},onHeartbeat:function(){},sendHeartbeat:function(g){g.sendRaw("[]")},onFinished:function(g,d){d===200?g.reconnect():g.onClose(1006,"Connection interrupted ("+d+")",!1)}},Lv=$v,Vv={getRequest:function(g){var d=Ae.getXHRAPI(),v=new d;return v.onreadystatechange=v.onprogress=function(){switch(v.readyState){case 3:v.responseText&&v.responseText.length>0&&g.onChunk(v.status,v.responseText);break;case 4:v.responseText&&v.responseText.length>0&&g.onChunk(v.status,v.responseText),g.emit("finished",v.status),g.close();break}},v},abortRequest:function(g){g.onreadystatechange=null,g.abort()}},Fv=Vv,Hv={createStreamingSocket(g){return this.createSocket(Av,g)},createPollingSocket(g){return this.createSocket(Lv,g)},createSocket(g,d){return new Mv(g,d)},createXHR(g,d){return this.createRequest(Fv,g,d)},createRequest(g,d,v){return new xv(g,d,v)}},cc=Hv;cc.createXDR=function(g,d){return this.createRequest(Tv,g,d)};var Uv=cc,zv={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:s,DependenciesReceivers:f,getDefaultStrategy:kv,Transports:jt,transportConnectionInitializer:Sv,HTTPFactory:Uv,TimelineTransport:Et,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(g){window.Pusher=g;var d=()=>{this.onDocumentBody(g.ready)};window.JSON?d():p.load("json2",{},d)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:W,jsonp:Ut}},onDocumentBody(g){document.body?g():setTimeout(()=>{this.onDocumentBody(g)},0)},createJSONPRequest(g,d){return new zt(g,d)},createScriptRequest(g){return new Rt(g)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var g=this.getXHRAPI();return new g},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return vt},createWebSocket(g){var d=this.getWebSocketAPI();return new d(g)},createSocketRequest(g,d){if(this.isXHRSupported())return this.HTTPFactory.createXHR(g,d);if(this.isXDRSupported(d.indexOf("https:")===0))return this.HTTPFactory.createXDR(g,d);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var g=this.getXHRAPI();return!!g&&new g().withCredentials!==void 0},isXDRSupported(g){var d=g?"https:":"http:",v=this.getProtocol();return!!window.XDomainRequest&&v===d},addUnloadListener(g){window.addEventListener!==void 0?window.addEventListener("unload",g,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",g)},removeUnloadListener(g){window.addEventListener!==void 0?window.removeEventListener("unload",g,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",g)},randomInt(g){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*g)}},Ae=zv,Cs;(function(g){g[g.ERROR=3]="ERROR",g[g.INFO=6]="INFO",g[g.DEBUG=7]="DEBUG"})(Cs||(Cs={}));var Ao=Cs;class jv{constructor(d,v,x){this.key=d,this.session=v,this.events=[],this.options=x||{},this.sent=0,this.uniqueID=0}log(d,v){d<=this.options.level&&(this.events.push(R({},v,{timestamp:P.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(d){this.log(Ao.ERROR,d)}info(d){this.log(Ao.INFO,d)}debug(d){this.log(Ao.DEBUG,d)}isEmpty(){return this.events.length===0}send(d,v){var x=R({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],d(x,(A,te)=>{A||this.sent++,v&&v(A,te)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class Wv{constructor(d,v,x,A){this.name=d,this.priority=v,this.transport=x,this.options=A||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(d,v){if(this.isSupported()){if(this.priority<d)return dc(new O,v)}else return dc(new I,v);var x=!1,A=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),te=null,ue=function(){A.unbind("initialized",ue),A.connect()},_e=function(){te=tr.createHandshake(A,function(xt){x=!0,rt(),v(null,xt)})},Re=function(xt){rt(),v(xt)},Ze=function(){rt();var xt;xt=me(A),v(new _(xt))},rt=function(){A.unbind("initialized",ue),A.unbind("open",_e),A.unbind("error",Re),A.unbind("closed",Ze)};return A.bind("initialized",ue),A.bind("open",_e),A.bind("error",Re),A.bind("closed",Ze),A.initialize(),{abort:()=>{x||(rt(),te?te.close():A.close())},forceMinPriority:xt=>{x||this.priority<xt&&(te?te.close():A.close())}}}}function dc(g,d){return P.defer(function(){d(g)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:qv}=Ae;var Yv=function(g,d,v,x,A,te){var ue=qv[v];if(!ue)throw new C(v);var _e=(!g.enabledTransports||ie(g.enabledTransports,d)!==-1)&&(!g.disabledTransports||ie(g.disabledTransports,d)===-1),Re;return _e?(A=Object.assign({ignoreNullOrigin:g.ignoreNullOrigin},A),Re=new Wv(d,x,te?te.getAssistant(ue):ue,A)):Re=Gv,Re},Gv={isSupported:function(){return!1},connect:function(g,d){var v=P.defer(function(){d(new I)});return{abort:function(){v.ensureAborted()},forceMinPriority:function(){}}}};function Kv(g){if(g==null)throw"You must pass an options object";if(g.cluster==null)throw"Options object must provide a cluster";"disableStats"in g&&xe.warn("The disableStats option is deprecated in favor of enableStats")}const Xv=(g,d)=>{var v="socket_id="+encodeURIComponent(g.socketId);for(var x in d.params)v+="&"+encodeURIComponent(x)+"="+encodeURIComponent(d.params[x]);if(d.paramsProvider!=null){let A=d.paramsProvider();for(var x in A)v+="&"+encodeURIComponent(x)+"="+encodeURIComponent(A[x])}return v};var Jv=g=>{if(typeof Ae.getAuthorizers()[g.transport]>"u")throw`'${g.transport}' is not a recognized auth transport`;return(d,v)=>{const x=Xv(d,g);Ae.getAuthorizers()[g.transport](Ae,x,g,k.UserAuthentication,v)}};const Qv=(g,d)=>{var v="socket_id="+encodeURIComponent(g.socketId);v+="&channel_name="+encodeURIComponent(g.channelName);for(var x in d.params)v+="&"+encodeURIComponent(x)+"="+encodeURIComponent(d.params[x]);if(d.paramsProvider!=null){let A=d.paramsProvider();for(var x in A)v+="&"+encodeURIComponent(x)+"="+encodeURIComponent(A[x])}return v};var Zv=g=>{if(typeof Ae.getAuthorizers()[g.transport]>"u")throw`'${g.transport}' is not a recognized auth transport`;return(d,v)=>{const x=Qv(d,g);Ae.getAuthorizers()[g.transport](Ae,x,g,k.ChannelAuthorization,v)}};const eg=(g,d,v)=>{const x={authTransport:d.transport,authEndpoint:d.endpoint,auth:{params:d.params,headers:d.headers}};return(A,te)=>{const ue=g.channel(A.channelName);v(ue,x).authorize(A.socketId,te)}};function fc(g,d){let v={activityTimeout:g.activityTimeout||u.activityTimeout,cluster:g.cluster,httpPath:g.httpPath||u.httpPath,httpPort:g.httpPort||u.httpPort,httpsPort:g.httpsPort||u.httpsPort,pongTimeout:g.pongTimeout||u.pongTimeout,statsHost:g.statsHost||u.stats_host,unavailableTimeout:g.unavailableTimeout||u.unavailableTimeout,wsPath:g.wsPath||u.wsPath,wsPort:g.wsPort||u.wsPort,wssPort:g.wssPort||u.wssPort,enableStats:og(g),httpHost:tg(g),useTLS:ag(g),wsHost:ng(g),userAuthenticator:ig(g),channelAuthorizer:lg(g,d)};return"disabledTransports"in g&&(v.disabledTransports=g.disabledTransports),"enabledTransports"in g&&(v.enabledTransports=g.enabledTransports),"ignoreNullOrigin"in g&&(v.ignoreNullOrigin=g.ignoreNullOrigin),"timelineParams"in g&&(v.timelineParams=g.timelineParams),"nacl"in g&&(v.nacl=g.nacl),v}function tg(g){return g.httpHost?g.httpHost:g.cluster?`sockjs-${g.cluster}.pusher.com`:u.httpHost}function ng(g){return g.wsHost?g.wsHost:rg(g.cluster)}function rg(g){return`ws-${g}.pusher.com`}function ag(g){return Ae.getProtocol()==="https:"?!0:g.forceTLS!==!1}function og(g){return"enableStats"in g?g.enableStats:"disableStats"in g?!g.disableStats:!1}const pc=g=>"customHandler"in g&&g.customHandler!=null;function ig(g){const d=Object.assign(Object.assign({},u.userAuthentication),g.userAuthentication);return pc(d)?d.customHandler:Jv(d)}function sg(g,d){let v;if("channelAuthorization"in g)v=Object.assign(Object.assign({},u.channelAuthorization),g.channelAuthorization);else if(v={transport:g.authTransport||u.authTransport,endpoint:g.authEndpoint||u.authEndpoint},"auth"in g&&("params"in g.auth&&(v.params=g.auth.params),"headers"in g.auth&&(v.headers=g.auth.headers)),"authorizer"in g)return{customHandler:eg(d,v,g.authorizer)};return v}function lg(g,d){const v=sg(g,d);return pc(v)?v.customHandler:Zv(v)}class ug extends J{constructor(d){super(function(v,x){xe.debug(`No callbacks on watchlist events for ${v}`)}),this.pusher=d,this.bindWatchlistInternalEvent()}handleEvent(d){d.data.events.forEach(v=>{this.emit(v.name,v)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",d=>{var v=d.event;v==="pusher_internal:watchlist_events"&&this.handleEvent(d)})}}function cg(){let g,d;return{promise:new Promise((x,A)=>{g=x,d=A}),resolve:g,reject:d}}var dg=cg;class fg extends J{constructor(d){super(function(v,x){xe.debug("No callbacks on user for "+v)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(v,x)=>{if(v){xe.warn(`Error during signin: ${v}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:x.auth,user_data:x.user_data})},this.pusher=d,this.pusher.connection.bind("state_change",({previous:v,current:x})=>{v!=="connected"&&x==="connected"&&this._signin(),v==="connected"&&x!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new ug(d),this.pusher.connection.bind("message",v=>{var x=v.event;x==="pusher:signin_success"&&this._onSigninSuccess(v.data),this.serverToUserChannel&&this.serverToUserChannel.name===v.channel&&this.serverToUserChannel.handleEvent(v)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(d){try{this.user_data=JSON.parse(d.user_data)}catch{xe.error(`Failed parsing user data after signin: ${d.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){xe.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const d=v=>{v.subscriptionPending&&v.subscriptionCancelled?v.reinstateSubscription():!v.subscriptionPending&&this.pusher.connection.state==="connected"&&v.subscribe()};this.serverToUserChannel=new ea(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((v,x)=>{v.indexOf("pusher_internal:")===0||v.indexOf("pusher:")===0||this.emit(v,x)}),d(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:d,resolve:v,reject:x}=dg();d.done=!1;const A=()=>{d.done=!0};d.then(A).catch(A),this.signinDonePromise=d,this._signinDoneResolve=v}}class $t{static ready(){$t.isReady=!0;for(var d=0,v=$t.instances.length;d<v;d++)$t.instances[d].connect()}static getClientFeatures(){return Ie(Ge({ws:Ae.Transports.ws},function(d){return d.isSupported({})}))}constructor(d,v){pg(d),Kv(v),this.key=d,this.options=v,this.config=fc(this.options,this),this.channels=tr.createChannels(),this.global_emitter=new J,this.sessionID=Ae.randomInt(1e9),this.timeline=new jv(this.key,this.sessionID,{cluster:this.config.cluster,features:$t.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:Ao.INFO,version:u.VERSION}),this.config.enableStats&&(this.timelineSender=tr.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+Ae.TimelineTransport.name}));var x=A=>Ae.getDefaultStrategy(this.config,A,Yv);this.connection=tr.createConnectionManager(this.key,{getStrategy:x,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",A=>{var te=A.event,ue=te.indexOf("pusher_internal:")===0;if(A.channel){var _e=this.channel(A.channel);_e&&_e.handleEvent(A)}ue||this.global_emitter.emit(A.event,A.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",A=>{xe.warn(A)}),$t.instances.push(this),this.timeline.info({instances:$t.instances.length}),this.user=new fg(this),$t.isReady&&this.connect()}switchCluster(d){const{appKey:v,cluster:x}=d;this.key=v,this.options=Object.assign(Object.assign({},this.options),{cluster:x}),this.config=fc(this.options,this),this.connection.switchCluster(this.key)}channel(d){return this.channels.find(d)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var d=this.connection.isUsingTLS(),v=this.timelineSender;this.timelineSenderTimer=new V(6e4,function(){v.send(d)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(d,v,x){return this.global_emitter.bind(d,v,x),this}unbind(d,v,x){return this.global_emitter.unbind(d,v,x),this}bind_global(d){return this.global_emitter.bind_global(d),this}unbind_global(d){return this.global_emitter.unbind_global(d),this}unbind_all(d){return this.global_emitter.unbind_all(),this}subscribeAll(){var d;for(d in this.channels.channels)this.channels.channels.hasOwnProperty(d)&&this.subscribe(d)}subscribe(d){var v=this.channels.add(d,this);return v.subscriptionPending&&v.subscriptionCancelled?v.reinstateSubscription():!v.subscriptionPending&&this.connection.state==="connected"&&v.subscribe(),v}unsubscribe(d){var v=this.channels.find(d);v&&v.subscriptionPending?v.cancelSubscription():(v=this.channels.remove(d),v&&v.subscribed&&v.unsubscribe())}send_event(d,v,x){return this.connection.send_event(d,v,x)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}$t.instances=[],$t.isReady=!1,$t.logToConsole=!1,$t.Runtime=Ae,$t.ScriptReceivers=Ae.ScriptReceivers,$t.DependenciesReceivers=Ae.DependenciesReceivers,$t.auth_callbacks=Ae.auth_callbacks;var Ts=r.default=$t;function pg(g){if(g==null)throw"You must pass your app key when you instantiate Pusher."}Ae.setup($t)}])})})(bh);var mP=bh.exports;function vP(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n)})}}}const Qt={listeners:a.ref([]),echo:null,key:null,authorizer:null,emitter:vP()};function _h(e="unique"){var t;return Qt.listeners.value.some(n=>n.name===e)||(t=Qt.listeners.value)==null||t.push({name:e,isListening:a.ref(!1)}),Qt.listeners.value.find(n=>n.name===e)}function wh(e,t){Qt.echo=new hP({broadcaster:"pusher",client:mP.ConnectionManager,key:e,authorizer:t,cluster:"eu",forceTLS:!0,encrypted:!0})}function gP(e=null){const t=_h(e??void 0);function n(o,i,s,l=!0){if(Qt.echo===null)throw new Error("Echo is not initialized");const u=`${o}.${i}`,c=Qt.emitter.all.has(u);t&&(t.isListening=!0),c||(l?Qt.echo.private(o):Qt.echo.channel(o)).listen(`.${i}`,p=>{Qt.emitter.emit(u,p)}),Qt.emitter.on(u,async f=>{const p=await s(f)??!1;t&&(t.isListening=!1),p&&r(o,i)})}function r(o,i){if(Qt.echo===null)throw new Error("Echo is not initialized");Qt.emitter.off(`${o}.${i}`),Qt.emitter.all.delete(`${o}.${i}`),Qt.echo.leave(o),t.isListening=!1}return{on:n,off:r,listener:t,state:Qt}}const kh=Object.prototype.toString;function Sh(e){switch(kh.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return fr(e,Error)}}function Ma(e,t){return kh.call(e)===`[object ${t}]`}function Pu(e){return Ma(e,"ErrorEvent")}function Dd(e){return Ma(e,"DOMError")}function yP(e){return Ma(e,"DOMException")}function qn(e){return Ma(e,"String")}function Iu(e){return e===null||typeof e!="object"&&typeof e!="function"}function Ea(e){return Ma(e,"Object")}function Gi(e){return typeof Event<"u"&&fr(e,Event)}function bP(e){return typeof Element<"u"&&fr(e,Element)}function _P(e){return Ma(e,"RegExp")}function Du(e){return!!(e&&e.then&&typeof e.then=="function")}function wP(e){return Ea(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Ch(e){return typeof e=="number"&&e!==e}function fr(e,t){try{return e instanceof t}catch{return!1}}function Th(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function va(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Nd(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const o=e[r];try{Th(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function kP(e,t,n=!1){return qn(e)?_P(t)?t.test(e):qn(t)?n?e===t:e.includes(t):!1:!1}function Ra(e,t=[],n=!1){return t.some(r=>kP(e,r,n))}function SP(e,t,n=250,r,o,i,s){if(!i.exception||!i.exception.values||!s||!fr(s.originalException,Error))return;const l=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;l&&(i.exception.values=CP(xl(e,t,o,s.originalException,r,i.exception.values,l,0),n))}function xl(e,t,n,r,o,i,s,l){if(i.length>=n+1)return i;let u=[...i];if(fr(r[o],Error)){Od(s,l);const c=e(t,r[o]),f=u.length;Bd(c,o,f,l),u=xl(e,t,n,r[o],o,[c,...u],c,f)}return Array.isArray(r.errors)&&r.errors.forEach((c,f)=>{if(fr(c,Error)){Od(s,l);const p=e(t,c),h=u.length;Bd(p,`errors[${f}]`,h,l),u=xl(e,t,n,c,o,[p,...u],p,h)}}),u}function Od(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function Bd(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function CP(e,t){return e.map(n=>(n.value&&(n.value=va(n.value,t)),n))}function Wo(e){return e&&e.Math==Math?e:void 0}const et=typeof globalThis=="object"&&Wo(globalThis)||typeof window=="object"&&Wo(window)||typeof self=="object"&&Wo(self)||typeof global=="object"&&Wo(global)||function(){return this}()||{};function Ki(){return et}function Eh(e,t,n){const r=n||et,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}const oi=Ki(),TP=80;function Sr(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,s=0;const l=" > ",u=l.length;let c;const f=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||TP;for(;n&&i++<r&&(c=EP(n,f),!(c==="html"||i>1&&s+o.length*u+c.length>=p));)o.push(c),s+=c.length,n=n.parentNode;return o.reverse().join(l)}catch{return"<unknown>"}}function EP(e,t){const n=e,r=[];let o,i,s,l,u;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter(p=>n.getAttribute(p)).map(p=>[p,n.getAttribute(p)]):null;if(c&&c.length)c.forEach(p=>{r.push(`[${p[0]}="${p[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&qn(o))for(i=o.split(/\s+/),u=0;u<i.length;u++)r.push(`.${i[u]}`);const f=["aria-label","type","name","title","alt"];for(u=0;u<f.length;u++)s=f[u],l=n.getAttribute(s),l&&r.push(`[${s}="${l}"]`);return r.join("")}function xP(){try{return oi.document.location.href}catch{return""}}function PP(e){return oi.document&&oi.document.querySelector?oi.document.querySelector(e):null}const Aa=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,IP="Sentry Logger ",Pl=["debug","info","warn","error","log","assert","trace"],Si={};function Xn(e){if(!("console"in et))return e();const t=et.console,n={},r=Object.keys(Si);r.forEach(o=>{const i=Si[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function DP(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Aa?Pl.forEach(n=>{t[n]=(...r)=>{e&&Xn(()=>{et.console[n](`${IP}[${n}]:`,...r)})}}):Pl.forEach(n=>{t[n]=()=>{}}),t}const ne=DP(),NP=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function OP(e){return e==="http"||e==="https"}function Io(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:l,publicKey:u}=e;return`${l}://${u}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function BP(e){const t=NP.exec(e);if(!t){Xn(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,o="",i,s="",l]=t.slice(1);let u="",c=l;const f=c.split("/");if(f.length>1&&(u=f.slice(0,-1).join("/"),c=f.pop()),c){const p=c.match(/^\d+/);p&&(c=p[0])}return xh({host:i,pass:o,path:u,projectId:c,port:s,protocol:n,publicKey:r})}function xh(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function MP(e){if(!Aa)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(ne.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?OP(r)?t&&isNaN(parseInt(t,10))?(ne.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(ne.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(ne.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Ph(e){const t=typeof e=="string"?BP(e):xh(e);if(!(!t||!MP(t)))return t}class Un extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function Bt(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);typeof o=="function"&&Ih(o,r),e[t]=o}function bo(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Aa&&ne.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Ih(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,bo(e,"__sentry_original__",t)}catch{}}function Nu(e){return e.__sentry_original__}function RP(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Dh(e){if(Sh(e))return{message:e.message,name:e.name,stack:e.stack,...Rd(e)};if(Gi(e)){const t={type:e.type,target:Md(e.target),currentTarget:Md(e.currentTarget),...Rd(e)};return typeof CustomEvent<"u"&&fr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Md(e){try{return bP(e)?Sr(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Rd(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function AP(e,t=40){const n=Object.keys(Dh(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return va(n[0],t);for(let r=n.length;r>0;r--){const o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:va(o,t)}return""}function Yn(e){return Il(e,new Map)}function Il(e,t){if(Ea(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const o of Object.keys(e))typeof e[o]<"u"&&(r[o]=Il(e[o],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(o=>{r.push(Il(o,t))}),r}return e}const Nh=50,Ad=/\(error: (.*)\)/,$d=/captureMessage|captureException/;function Oh(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const o=[],i=n.split(`
82
+ `);for(let s=r;s<i.length;s++){const l=i[s];if(l.length>1024)continue;const u=Ad.test(l)?l.replace(Ad,"$1"):l;if(!u.match(/\S*Error: /)){for(const c of t){const f=c(u);if(f){o.push(f);break}}if(o.length>=Nh)break}}return LP(o)}}function $P(e){return Array.isArray(e)?Oh(...e):e}function LP(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),$d.test(t[t.length-1].function||"")&&(t.pop(),$d.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,Nh).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const Ks="<anonymous>";function pr(e){try{return!e||typeof e!="function"?Ks:e.name||Ks}catch{return Ks}}const ii={},Ld={};function Xr(e,t){ii[e]=ii[e]||[],ii[e].push(t)}function Jr(e,t){Ld[e]||(t(),Ld[e]=!0)}function Pn(e,t){const n=e&&ii[e];if(n)for(const r of n)try{r(t)}catch(o){Aa&&ne.error(`Error while triggering instrumentation handler.
83
83
  Type: ${e}
84
84
  Name: ${pr(r)}
85
- Error:`,o)}}function LP(e){const t="console";Kr(t,e),Xr(t,VP)}function VP(){"console"in et&&Pl.forEach(function(e){e in et.console&&Bt(et.console,e,function(t){return Si[e]=t,function(...n){Pn("console",{args:n,level:e});const o=Si[e];o&&o.apply(et.console,n)}})})}function Yt(){const e=et,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>t.getRandomValues(new Uint8Array(1))[0])}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Bh(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function yr(e){const{message:t,event_id:n}=e;if(t)return t;const r=Bh(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Dl(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function _o(e,t){const n=Bh(e);if(!n)return;const r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){const i={...o&&o.data,...t.data};n.mechanism.data=i}}function Vd(e){if(e&&e.__sentry_captured__)return!0;try{bo(e,"__sentry_captured__",!0)}catch{}return!1}function Nu(e){return Array.isArray(e)?e:[e]}const oa=et,FP=1e3;let Fd,Ol,Nl;function Mh(e){const t="dom";Kr(t,e),Xr(t,HP)}function HP(){if(!oa.document)return;const e=Pn.bind(null,"dom"),t=Hd(e,!0);oa.document.addEventListener("click",t,!1),oa.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=oa[n]&&oa[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Bt(r,"addEventListener",function(o){return function(i,s,l){if(i==="click"||i=="keypress")try{const u=this,c=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},f=c[i]=c[i]||{refCount:0};if(!f.handler){const p=Hd(e);f.handler=p,o.call(this,i,p,l)}f.refCount++}catch{}return o.call(this,i,s,l)}}),Bt(r,"removeEventListener",function(o){return function(i,s,l){if(i==="click"||i=="keypress")try{const u=this,c=u.__sentry_instrumentation_handlers__||{},f=c[i];f&&(f.refCount--,f.refCount<=0&&(o.call(this,i,f.handler,l),f.handler=void 0,delete c[i]),Object.keys(c).length===0&&delete u.__sentry_instrumentation_handlers__)}catch{}return o.call(this,i,s,l)}}))})}function UP(e){if(e.type!==Ol)return!1;try{if(!e.target||e.target._sentryId!==Nl)return!1}catch{}return!0}function zP(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Hd(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=jP(n);if(zP(n.type,r))return;bo(n,"_sentryCaptured",!0),r&&!r._sentryId&&bo(r,"_sentryId",Yt());const o=n.type==="keypress"?"input":n.type;UP(n)||(e({event:n,name:o,global:t}),Ol=n.type,Nl=r?r._sentryId:void 0),clearTimeout(Fd),Fd=oa.setTimeout(()=>{Nl=void 0,Ol=void 0},FP)}}function jP(e){try{return e.target}catch{return null}}const Bl=Ki();function Rh(){if(!("fetch"in Bl))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Ml(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function WP(){if(typeof EdgeRuntime=="string")return!0;if(!Rh())return!1;if(Ml(Bl.fetch))return!0;let e=!1;const t=Bl.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Ml(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Aa&&ne.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Bu(e){const t="fetch";Kr(t,e),Xr(t,qP)}function qP(){WP()&&Bt(et,"fetch",function(e){return function(...t){const{method:n,url:r}=YP(t),o={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Pn("fetch",{...o}),e.apply(et,t).then(i=>{const s={...o,endTimestamp:Date.now(),response:i};return Pn("fetch",s),i},i=>{const s={...o,endTimestamp:Date.now(),error:i};throw Pn("fetch",s),i})}})}function Rl(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Ud(e){return typeof e=="string"?e:e?Rl(e,"url")?e.url:e.toString?e.toString():"":""}function YP(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Ud(n),method:Rl(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Ud(t),method:Rl(t,"method")?String(t.method).toUpperCase():"GET"}}let qo=null;function Ah(e){const t="error";Kr(t,e),Xr(t,GP)}function GP(){qo=et.onerror,et.onerror=function(e,t,n,r,o){return Pn("error",{column:r,error:o,line:n,msg:e,url:t}),qo&&!qo.__SENTRY_LOADER__?qo.apply(this,arguments):!1},et.onerror.__SENTRY_INSTRUMENTED__=!0}let Yo=null;function $h(e){const t="unhandledrejection";Kr(t,e),Xr(t,KP)}function KP(){Yo=et.onunhandledrejection,et.onunhandledrejection=function(e){return Pn("unhandledrejection",e),Yo&&!Yo.__SENTRY_LOADER__?Yo.apply(this,arguments):!0},et.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Go=Ki();function XP(){const e=Go.chrome,t=e&&e.app&&e.app.runtime,n="history"in Go&&!!Go.history.pushState&&!!Go.history.replaceState;return!t&&n}const Ka=et;let Ko;function Xi(e){const t="history";Kr(t,e),Xr(t,JP)}function JP(){if(!XP())return;const e=Ka.onpopstate;Ka.onpopstate=function(...n){const r=Ka.location.href,o=Ko;if(Ko=r,Pn("history",{from:o,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const o=r.length>2?r[2]:void 0;if(o){const i=Ko,s=String(o);Ko=s,Pn("history",{from:i,to:s})}return n.apply(this,r)}}Bt(Ka.history,"pushState",t),Bt(Ka.history,"replaceState",t)}const QP=et,br="__sentry_xhr_v3__";function Mu(e){const t="xhr";Kr(t,e),Xr(t,ZP)}function ZP(){if(!QP.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Bt(e,"open",function(t){return function(...n){const r=Date.now(),o=qn(n[0])?n[0].toUpperCase():void 0,i=eI(n[1]);if(!o||!i)return t.apply(this,n);this[br]={method:o,url:i,request_headers:{}},o==="POST"&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const l=this[br];if(l&&this.readyState===4){try{l.status_code=this.status}catch{}const u={args:[o,i],endTimestamp:Date.now(),startTimestamp:r,xhr:this};Pn("xhr",u)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Bt(this,"onreadystatechange",function(l){return function(...u){return s(),l.apply(this,u)}}):this.addEventListener("readystatechange",s),Bt(this,"setRequestHeader",function(l){return function(...u){const[c,f]=u,p=this[br];return p&&qn(c)&&qn(f)&&(p.request_headers[c.toLowerCase()]=f),l.apply(this,u)}}),t.apply(this,n)}}),Bt(e,"send",function(t){return function(...n){const r=this[br];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const o={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return Pn("xhr",o),t.apply(this,n)}})}function eI(e){if(qn(e))return e;try{return e.toString()}catch{}}function tI(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function nI(){return"npm"}function Lh(){return!tI()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function rI(e,t){return e.require(t)}function zd(){return typeof window<"u"&&(!Lh()||aI())}function aI(){return et.process!==void 0&&et.process.type==="renderer"}function oI(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(o){if(e)return t.has(o)?!0:(t.add(o),!1);for(let i=0;i<t.length;i++)if(t[i]===o)return!0;return t.push(o),!1}function r(o){if(e)t.delete(o);else for(let i=0;i<t.length;i++)if(t[i]===o){t.splice(i,1);break}}return[n,r]}function An(e,t=100,n=1/0){try{return Al("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Vh(e,t=3,n=100*1024){const r=An(e,t);return uI(r)>n?Vh(e,t-1,n):r}function Al(e,t,n=1/0,r=1/0,o=oI()){const[i,s]=o;if(t==null||["number","boolean","string"].includes(typeof t)&&!Ch(t))return t;const l=iI(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;const u=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(u===0)return l.replace("object ","");if(i(t))return"[Circular ~]";const c=t;if(c&&typeof c.toJSON=="function")try{const m=c.toJSON();return Al("",m,u-1,r,o)}catch{}const f=Array.isArray(t)?[]:{};let p=0;const h=Dh(t);for(const m in h){if(!Object.prototype.hasOwnProperty.call(h,m))continue;if(p>=r){f[m]="[MaxProperties ~]";break}const y=h[m];f[m]=Al(m,y,u-1,r,o),p++}return s(t),f}function iI(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Th(t))return"[VueViewModel]";if(_P(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${pr(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=sI(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function sI(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function lI(e){return~-encodeURI(e).split(/%..|./).length}function uI(e){return lI(JSON.stringify(e))}var or;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(or||(or={}));function Yr(e){return new un(t=>{t(e)})}function Ru(e){return new un((t,n)=>{n(e)})}class un{constructor(t){un.prototype.__init.call(this),un.prototype.__init2.call(this),un.prototype.__init3.call(this),un.prototype.__init4.call(this),this._state=or.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new un((r,o)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(s){o(s)}},i=>{if(!n)o(i);else try{r(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new un((n,r)=>{let o,i;return this.then(s=>{i=!1,o=s,t&&t()},s=>{i=!0,o=s,t&&t()}).then(()=>{if(i){r(o);return}n(o)})})}__init(){this._resolve=t=>{this._setResult(or.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(or.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===or.PENDING){if(Du(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===or.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===or.RESOLVED&&n[1](this._value),this._state===or.REJECTED&&n[2](this._value),n[0]=!0)})}}}function cI(e){const t=[];function n(){return e===void 0||t.length<e}function r(s){return t.splice(t.indexOf(s),1)[0]}function o(s){if(!n())return Ru(new Un("Not adding Promise because buffer limit was reached."));const l=s();return t.indexOf(l)===-1&&t.push(l),l.then(()=>r(l)).then(null,()=>r(l).then(null,()=>{})),l}function i(s){return new un((l,u)=>{let c=t.length;if(!c)return l(!0);const f=setTimeout(()=>{s&&s>0&&l(!1)},s);t.forEach(p=>{Yr(p).then(()=>{--c||(clearTimeout(f),l(!0))},u)})})}return{$:t,add:o,drain:i}}function Xs(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const dI=["fatal","error","warning","log","info","debug"];function fI(e){return e==="warn"?"warning":dI.includes(e)?e:"log"}const Fh=Ki(),$l={nowSeconds:()=>Date.now()/1e3};function pI(){const{performance:e}=Fh;if(!e||!e.now)return;const t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}function hI(){try{return rI(module,"perf_hooks").performance}catch{return}}const Js=Lh()?hI():pI(),jd=Js===void 0?$l:{nowSeconds:()=>(Js.timeOrigin+Js.now())/1e3},Ji=$l.nowSeconds.bind($l),Cr=jd.nowSeconds.bind(jd),In=(()=>{const{performance:e}=Fh;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,s=e.timing&&e.timing.navigationStart,u=typeof s=="number"?Math.abs(s+n-r):t,c=u<t;return i||c?o<=u?e.timeOrigin:s:r})(),Ll="baggage",Hh="sentry-",mI=/^sentry-/,vI=8192;function gI(e){if(!qn(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((r,o)=>{const i=Wd(o);return{...r,...i}},{});else{if(!e)return;t=Wd(e)}const n=Object.entries(t).reduce((r,[o,i])=>{if(o.match(mI)){const s=o.slice(Hh.length);r[s]=i}return r},{});if(Object.keys(n).length>0)return n}function Vl(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,o])=>(o&&(n[`${Hh}${r}`]=o),n),{});return yI(t)}function Wd(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function yI(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],o)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=o===0?i:`${t},${i}`;return s.length>vI?(Aa&&ne.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}const bI=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function _I(e){if(!e)return;const t=e.match(bI);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function wI(e,t){const n=_I(e),r=gI(t),{traceId:o,parentSpanId:i,parentSampled:s}=n||{},l={traceId:o||Yt(),spanId:Yt().substring(16),sampled:s};return i&&(l.parentSpanId=i),r&&(l.dsc=r),{traceparentData:n,dynamicSamplingContext:r,propagationContext:l}}function Au(e=Yt(),t=Yt().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function $a(e,t=[]){return[e,t]}function kI(e,t){const[n,r]=e;return[n,[...r,t]]}function qd(e,t){const n=e[1];for(const r of n){const o=r[0].type;if(t(r,o))return!0}return!1}function Fl(e,t){return(t||new TextEncoder).encode(e)}function SI(e,t){const[n,r]=e;let o=JSON.stringify(n);function i(s){typeof o=="string"?o=typeof s=="string"?o+s:[Fl(o,t),s]:o.push(typeof s=="string"?Fl(s,t):s)}for(const s of r){const[l,u]=s;if(i(`
85
+ Error:`,o)}}function VP(e){const t="console";Xr(t,e),Jr(t,FP)}function FP(){"console"in et&&Pl.forEach(function(e){e in et.console&&Bt(et.console,e,function(t){return Si[e]=t,function(...n){Pn("console",{args:n,level:e});const o=Si[e];o&&o.apply(et.console,n)}})})}function Yt(){const e=et,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>t.getRandomValues(new Uint8Array(1))[0])}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Bh(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function yr(e){const{message:t,event_id:n}=e;if(t)return t;const r=Bh(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Dl(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function _o(e,t){const n=Bh(e);if(!n)return;const r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){const i={...o&&o.data,...t.data};n.mechanism.data=i}}function Vd(e){if(e&&e.__sentry_captured__)return!0;try{bo(e,"__sentry_captured__",!0)}catch{}return!1}function Ou(e){return Array.isArray(e)?e:[e]}const ia=et,HP=1e3;let Fd,Nl,Ol;function Mh(e){const t="dom";Xr(t,e),Jr(t,UP)}function UP(){if(!ia.document)return;const e=Pn.bind(null,"dom"),t=Hd(e,!0);ia.document.addEventListener("click",t,!1),ia.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=ia[n]&&ia[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Bt(r,"addEventListener",function(o){return function(i,s,l){if(i==="click"||i=="keypress")try{const u=this,c=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},f=c[i]=c[i]||{refCount:0};if(!f.handler){const p=Hd(e);f.handler=p,o.call(this,i,p,l)}f.refCount++}catch{}return o.call(this,i,s,l)}}),Bt(r,"removeEventListener",function(o){return function(i,s,l){if(i==="click"||i=="keypress")try{const u=this,c=u.__sentry_instrumentation_handlers__||{},f=c[i];f&&(f.refCount--,f.refCount<=0&&(o.call(this,i,f.handler,l),f.handler=void 0,delete c[i]),Object.keys(c).length===0&&delete u.__sentry_instrumentation_handlers__)}catch{}return o.call(this,i,s,l)}}))})}function zP(e){if(e.type!==Nl)return!1;try{if(!e.target||e.target._sentryId!==Ol)return!1}catch{}return!0}function jP(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Hd(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=WP(n);if(jP(n.type,r))return;bo(n,"_sentryCaptured",!0),r&&!r._sentryId&&bo(r,"_sentryId",Yt());const o=n.type==="keypress"?"input":n.type;zP(n)||(e({event:n,name:o,global:t}),Nl=n.type,Ol=r?r._sentryId:void 0),clearTimeout(Fd),Fd=ia.setTimeout(()=>{Ol=void 0,Nl=void 0},HP)}}function WP(e){try{return e.target}catch{return null}}const Bl=Ki();function Rh(){if(!("fetch"in Bl))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Ml(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function qP(){if(typeof EdgeRuntime=="string")return!0;if(!Rh())return!1;if(Ml(Bl.fetch))return!0;let e=!1;const t=Bl.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Ml(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Aa&&ne.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Bu(e){const t="fetch";Xr(t,e),Jr(t,YP)}function YP(){qP()&&Bt(et,"fetch",function(e){return function(...t){const{method:n,url:r}=GP(t),o={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Pn("fetch",{...o}),e.apply(et,t).then(i=>{const s={...o,endTimestamp:Date.now(),response:i};return Pn("fetch",s),i},i=>{const s={...o,endTimestamp:Date.now(),error:i};throw Pn("fetch",s),i})}})}function Rl(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Ud(e){return typeof e=="string"?e:e?Rl(e,"url")?e.url:e.toString?e.toString():"":""}function GP(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Ud(n),method:Rl(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Ud(t),method:Rl(t,"method")?String(t.method).toUpperCase():"GET"}}let qo=null;function Ah(e){const t="error";Xr(t,e),Jr(t,KP)}function KP(){qo=et.onerror,et.onerror=function(e,t,n,r,o){return Pn("error",{column:r,error:o,line:n,msg:e,url:t}),qo&&!qo.__SENTRY_LOADER__?qo.apply(this,arguments):!1},et.onerror.__SENTRY_INSTRUMENTED__=!0}let Yo=null;function $h(e){const t="unhandledrejection";Xr(t,e),Jr(t,XP)}function XP(){Yo=et.onunhandledrejection,et.onunhandledrejection=function(e){return Pn("unhandledrejection",e),Yo&&!Yo.__SENTRY_LOADER__?Yo.apply(this,arguments):!0},et.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Go=Ki();function JP(){const e=Go.chrome,t=e&&e.app&&e.app.runtime,n="history"in Go&&!!Go.history.pushState&&!!Go.history.replaceState;return!t&&n}const Ka=et;let Ko;function Xi(e){const t="history";Xr(t,e),Jr(t,QP)}function QP(){if(!JP())return;const e=Ka.onpopstate;Ka.onpopstate=function(...n){const r=Ka.location.href,o=Ko;if(Ko=r,Pn("history",{from:o,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const o=r.length>2?r[2]:void 0;if(o){const i=Ko,s=String(o);Ko=s,Pn("history",{from:i,to:s})}return n.apply(this,r)}}Bt(Ka.history,"pushState",t),Bt(Ka.history,"replaceState",t)}const ZP=et,br="__sentry_xhr_v3__";function Mu(e){const t="xhr";Xr(t,e),Jr(t,eI)}function eI(){if(!ZP.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Bt(e,"open",function(t){return function(...n){const r=Date.now(),o=qn(n[0])?n[0].toUpperCase():void 0,i=tI(n[1]);if(!o||!i)return t.apply(this,n);this[br]={method:o,url:i,request_headers:{}},o==="POST"&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const l=this[br];if(l&&this.readyState===4){try{l.status_code=this.status}catch{}const u={args:[o,i],endTimestamp:Date.now(),startTimestamp:r,xhr:this};Pn("xhr",u)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Bt(this,"onreadystatechange",function(l){return function(...u){return s(),l.apply(this,u)}}):this.addEventListener("readystatechange",s),Bt(this,"setRequestHeader",function(l){return function(...u){const[c,f]=u,p=this[br];return p&&qn(c)&&qn(f)&&(p.request_headers[c.toLowerCase()]=f),l.apply(this,u)}}),t.apply(this,n)}}),Bt(e,"send",function(t){return function(...n){const r=this[br];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const o={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return Pn("xhr",o),t.apply(this,n)}})}function tI(e){if(qn(e))return e;try{return e.toString()}catch{}}function nI(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function rI(){return"npm"}function Lh(){return!nI()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function aI(e,t){return e.require(t)}function zd(){return typeof window<"u"&&(!Lh()||oI())}function oI(){return et.process!==void 0&&et.process.type==="renderer"}function iI(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(o){if(e)return t.has(o)?!0:(t.add(o),!1);for(let i=0;i<t.length;i++)if(t[i]===o)return!0;return t.push(o),!1}function r(o){if(e)t.delete(o);else for(let i=0;i<t.length;i++)if(t[i]===o){t.splice(i,1);break}}return[n,r]}function An(e,t=100,n=1/0){try{return Al("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Vh(e,t=3,n=100*1024){const r=An(e,t);return cI(r)>n?Vh(e,t-1,n):r}function Al(e,t,n=1/0,r=1/0,o=iI()){const[i,s]=o;if(t==null||["number","boolean","string"].includes(typeof t)&&!Ch(t))return t;const l=sI(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;const u=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(u===0)return l.replace("object ","");if(i(t))return"[Circular ~]";const c=t;if(c&&typeof c.toJSON=="function")try{const m=c.toJSON();return Al("",m,u-1,r,o)}catch{}const f=Array.isArray(t)?[]:{};let p=0;const h=Dh(t);for(const m in h){if(!Object.prototype.hasOwnProperty.call(h,m))continue;if(p>=r){f[m]="[MaxProperties ~]";break}const y=h[m];f[m]=Al(m,y,u-1,r,o),p++}return s(t),f}function sI(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Th(t))return"[VueViewModel]";if(wP(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${pr(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=lI(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function lI(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function uI(e){return~-encodeURI(e).split(/%..|./).length}function cI(e){return uI(JSON.stringify(e))}var or;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(or||(or={}));function Gr(e){return new un(t=>{t(e)})}function Ru(e){return new un((t,n)=>{n(e)})}class un{constructor(t){un.prototype.__init.call(this),un.prototype.__init2.call(this),un.prototype.__init3.call(this),un.prototype.__init4.call(this),this._state=or.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new un((r,o)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(s){o(s)}},i=>{if(!n)o(i);else try{r(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new un((n,r)=>{let o,i;return this.then(s=>{i=!1,o=s,t&&t()},s=>{i=!0,o=s,t&&t()}).then(()=>{if(i){r(o);return}n(o)})})}__init(){this._resolve=t=>{this._setResult(or.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(or.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===or.PENDING){if(Du(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===or.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===or.RESOLVED&&n[1](this._value),this._state===or.REJECTED&&n[2](this._value),n[0]=!0)})}}}function dI(e){const t=[];function n(){return e===void 0||t.length<e}function r(s){return t.splice(t.indexOf(s),1)[0]}function o(s){if(!n())return Ru(new Un("Not adding Promise because buffer limit was reached."));const l=s();return t.indexOf(l)===-1&&t.push(l),l.then(()=>r(l)).then(null,()=>r(l).then(null,()=>{})),l}function i(s){return new un((l,u)=>{let c=t.length;if(!c)return l(!0);const f=setTimeout(()=>{s&&s>0&&l(!1)},s);t.forEach(p=>{Gr(p).then(()=>{--c||(clearTimeout(f),l(!0))},u)})})}return{$:t,add:o,drain:i}}function Xs(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const fI=["fatal","error","warning","log","info","debug"];function pI(e){return e==="warn"?"warning":fI.includes(e)?e:"log"}const Fh=Ki(),$l={nowSeconds:()=>Date.now()/1e3};function hI(){const{performance:e}=Fh;if(!e||!e.now)return;const t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}function mI(){try{return aI(module,"perf_hooks").performance}catch{return}}const Js=Lh()?mI():hI(),jd=Js===void 0?$l:{nowSeconds:()=>(Js.timeOrigin+Js.now())/1e3},Ji=$l.nowSeconds.bind($l),Cr=jd.nowSeconds.bind(jd),In=(()=>{const{performance:e}=Fh;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,s=e.timing&&e.timing.navigationStart,u=typeof s=="number"?Math.abs(s+n-r):t,c=u<t;return i||c?o<=u?e.timeOrigin:s:r})(),Ll="baggage",Hh="sentry-",vI=/^sentry-/,gI=8192;function yI(e){if(!qn(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((r,o)=>{const i=Wd(o);return{...r,...i}},{});else{if(!e)return;t=Wd(e)}const n=Object.entries(t).reduce((r,[o,i])=>{if(o.match(vI)){const s=o.slice(Hh.length);r[s]=i}return r},{});if(Object.keys(n).length>0)return n}function Vl(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,o])=>(o&&(n[`${Hh}${r}`]=o),n),{});return bI(t)}function Wd(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function bI(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],o)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=o===0?i:`${t},${i}`;return s.length>gI?(Aa&&ne.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}const _I=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function wI(e){if(!e)return;const t=e.match(_I);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function kI(e,t){const n=wI(e),r=yI(t),{traceId:o,parentSpanId:i,parentSampled:s}=n||{},l={traceId:o||Yt(),spanId:Yt().substring(16),sampled:s};return i&&(l.parentSpanId=i),r&&(l.dsc=r),{traceparentData:n,dynamicSamplingContext:r,propagationContext:l}}function Au(e=Yt(),t=Yt().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function $a(e,t=[]){return[e,t]}function SI(e,t){const[n,r]=e;return[n,[...r,t]]}function qd(e,t){const n=e[1];for(const r of n){const o=r[0].type;if(t(r,o))return!0}return!1}function Fl(e,t){return(t||new TextEncoder).encode(e)}function CI(e,t){const[n,r]=e;let o=JSON.stringify(n);function i(s){typeof o=="string"?o=typeof s=="string"?o+s:[Fl(o,t),s]:o.push(typeof s=="string"?Fl(s,t):s)}for(const s of r){const[l,u]=s;if(i(`
86
86
  ${JSON.stringify(l)}
87
- `),typeof u=="string"||u instanceof Uint8Array)i(u);else{let c;try{c=JSON.stringify(u)}catch{c=JSON.stringify(An(u))}i(c)}}return typeof o=="string"?o:CI(o)}function CI(e){const t=e.reduce((o,i)=>o+i.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function TI(e,t){const n=typeof e.data=="string"?Fl(e.data,t):e.data;return[Yn({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const EI={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function Yd(e){return EI[e]}function $u(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Uh(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Io(r)},...o&&{trace:Yn({...o})}}}function xI(e,t,n){const r=[{type:"client_report"},{timestamp:n||Ji(),discarded_events:e}];return $a(t?{dsn:t}:{},[r])}const PI=60*1e3;function II(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?PI:r-t}function DI(e,t){return e[t]||e.all||0}function zh(e,t,n=Date.now()){return DI(e,t)>n}function jh(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(const l of i.trim().split(",")){const[u,c]=l.split(":",2),f=parseInt(u,10),p=(isNaN(f)?60:f)*1e3;if(!c)o.all=r+p;else for(const h of c.split(";"))o[h]=r+p}else s?o.all=r+II(s,r):t===429&&(o.all=r+60*1e3);return o}const Pe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Lu="production";function Vu(){return Eh("globalEventProcessors",()=>[])}function OI(e){Vu().push(e)}function Ci(e,t,n,r=0){return new un((o,i)=>{const s=e[r];if(t===null||typeof s!="function")o(t);else{const l=s({...t},n);Pe&&s.id&&l===null&&ne.log(`Event processor "${s.id}" dropped event`),Du(l)?l.then(u=>Ci(e,u,n,r+1).then(o)).then(null,i):Ci(e,l,n,r+1).then(o).then(null,i)}})}function NI(e){const t=Cr(),n={sid:Yt(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>MI(n)};return e&&xa(n,e),n}function xa(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Cr(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Yt()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function BI(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),xa(e,n)}function MI(e){return Yn({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const RI=100;class _r{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Gd()}static clone(t){const n=new _r;return t&&(n._breadcrumbs=[...t._breadcrumbs],n._tags={...t._tags},n._extra={...t._extra},n._contexts={...t._contexts},n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=[...t._eventProcessors],n._requestSession=t._requestSession,n._attachments=[...t._attachments],n._sdkProcessingMetadata={...t._sdkProcessingMetadata},n._propagationContext={...t._propagationContext}),n}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&xa(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){const n=t(this);return n instanceof _r?n:this}return t instanceof _r?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):Ea(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Gd(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:RI;if(r<=0)return this;const o={timestamp:Ji(),...t},i=this._breadcrumbs;return i.push(o),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,n={},r){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const s=this._span.transaction;if(s){t.sdkProcessingMetadata={dynamicSamplingContext:s.getDynamicSamplingContext(),...t.sdkProcessingMetadata};const l=s.name;l&&(t.tags={transaction:l,...t.tags})}}this._applyFingerprint(t);const o=this._getBreadcrumbs(),i=[...t.breadcrumbs||[],...o];return t.breadcrumbs=i.length>0?i:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext},Ci([...r||[],...Vu(),...this._eventProcessors],t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?Nu(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function Gd(){return{traceId:Yt(),spanId:Yt().substring(16)}}const wo="7.86.0",Wh=parseFloat(wo),AI=100;class qh{constructor(t,n=new _r,r=Wh){this._version=r,this._stack=[{scope:n}],t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=_r.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();try{t(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:Yt(),o=new Error("Sentry syntheticException");return this._withClient((i,s)=>{i.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},s)}),r}captureMessage(t,n,r){const o=this._lastEventId=r&&r.event_id?r.event_id:Yt(),i=new Error(t);return this._withClient((s,l)=>{s.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o},l)}),o}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Yt();return t.type||(this._lastEventId=r),this._withClient((o,i)=>{o.captureEvent(t,{...n,event_id:r},i)}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:o}=this.getStackTop();if(!o)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=AI}=o.getOptions&&o.getOptions()||{};if(s<=0)return;const u={timestamp:Ji(),...t},c=i?Xn(()=>i(u,n)):u;c!==null&&(o.emit&&o.emit("beforeAddBreadcrumb",c,n),r.addBreadcrumb(c,s))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=Kd(this);try{t(this)}finally{Kd(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return Pe&&ne.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return Pe&&!r&&(this.getClient()?ne.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
87
+ `),typeof u=="string"||u instanceof Uint8Array)i(u);else{let c;try{c=JSON.stringify(u)}catch{c=JSON.stringify(An(u))}i(c)}}return typeof o=="string"?o:TI(o)}function TI(e){const t=e.reduce((o,i)=>o+i.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function EI(e,t){const n=typeof e.data=="string"?Fl(e.data,t):e.data;return[Yn({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const xI={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function Yd(e){return xI[e]}function $u(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Uh(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Io(r)},...o&&{trace:Yn({...o})}}}function PI(e,t,n){const r=[{type:"client_report"},{timestamp:n||Ji(),discarded_events:e}];return $a(t?{dsn:t}:{},[r])}const II=60*1e3;function DI(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?II:r-t}function NI(e,t){return e[t]||e.all||0}function zh(e,t,n=Date.now()){return NI(e,t)>n}function jh(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(const l of i.trim().split(",")){const[u,c]=l.split(":",2),f=parseInt(u,10),p=(isNaN(f)?60:f)*1e3;if(!c)o.all=r+p;else for(const h of c.split(";"))o[h]=r+p}else s?o.all=r+DI(s,r):t===429&&(o.all=r+60*1e3);return o}const Pe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Lu="production";function Vu(){return Eh("globalEventProcessors",()=>[])}function OI(e){Vu().push(e)}function Ci(e,t,n,r=0){return new un((o,i)=>{const s=e[r];if(t===null||typeof s!="function")o(t);else{const l=s({...t},n);Pe&&s.id&&l===null&&ne.log(`Event processor "${s.id}" dropped event`),Du(l)?l.then(u=>Ci(e,u,n,r+1).then(o)).then(null,i):Ci(e,l,n,r+1).then(o).then(null,i)}})}function BI(e){const t=Cr(),n={sid:Yt(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>RI(n)};return e&&xa(n,e),n}function xa(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Cr(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Yt()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function MI(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),xa(e,n)}function RI(e){return Yn({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const AI=100;class _r{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Gd()}static clone(t){const n=new _r;return t&&(n._breadcrumbs=[...t._breadcrumbs],n._tags={...t._tags},n._extra={...t._extra},n._contexts={...t._contexts},n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=[...t._eventProcessors],n._requestSession=t._requestSession,n._attachments=[...t._attachments],n._sdkProcessingMetadata={...t._sdkProcessingMetadata},n._propagationContext={...t._propagationContext}),n}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&xa(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){const n=t(this);return n instanceof _r?n:this}return t instanceof _r?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):Ea(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Gd(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:AI;if(r<=0)return this;const o={timestamp:Ji(),...t},i=this._breadcrumbs;return i.push(o),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,n={},r){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const s=this._span.transaction;if(s){t.sdkProcessingMetadata={dynamicSamplingContext:s.getDynamicSamplingContext(),...t.sdkProcessingMetadata};const l=s.name;l&&(t.tags={transaction:l,...t.tags})}}this._applyFingerprint(t);const o=this._getBreadcrumbs(),i=[...t.breadcrumbs||[],...o];return t.breadcrumbs=i.length>0?i:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext},Ci([...r||[],...Vu(),...this._eventProcessors],t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?Ou(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function Gd(){return{traceId:Yt(),spanId:Yt().substring(16)}}const wo="7.86.0",Wh=parseFloat(wo),$I=100;class qh{constructor(t,n=new _r,r=Wh){this._version=r,this._stack=[{scope:n}],t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=_r.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();try{t(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:Yt(),o=new Error("Sentry syntheticException");return this._withClient((i,s)=>{i.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},s)}),r}captureMessage(t,n,r){const o=this._lastEventId=r&&r.event_id?r.event_id:Yt(),i=new Error(t);return this._withClient((s,l)=>{s.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o},l)}),o}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Yt();return t.type||(this._lastEventId=r),this._withClient((o,i)=>{o.captureEvent(t,{...n,event_id:r},i)}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:o}=this.getStackTop();if(!o)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=$I}=o.getOptions&&o.getOptions()||{};if(s<=0)return;const u={timestamp:Ji(),...t},c=i?Xn(()=>i(u,n)):u;c!==null&&(o.emit&&o.emit("beforeAddBreadcrumb",c,n),r.addBreadcrumb(c,s))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=Kd(this);try{t(this)}finally{Kd(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return Pe&&ne.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return Pe&&!r&&(this.getClient()?ne.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
88
88
  Sentry.addTracingExtensions();
89
89
  Sentry.init({...});
90
- `):ne.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&BI(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:o,environment:i=Lu}=r&&r.getOptions()||{},{userAgent:s}=et.navigator||{},l=NI({release:o,environment:i,user:n.getUser(),...s&&{userAgent:s},...t}),u=n.getSession&&n.getSession();return u&&u.status==="ok"&&xa(u,{status:"exited"}),this.endSession(),n.setSession(l),l}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_withClient(t){const{scope:n,client:r}=this.getStackTop();r&&t(r,n)}_callExtensionMethod(t,...n){const o=Do().__SENTRY__;if(o&&o.extensions&&typeof o.extensions[t]=="function")return o.extensions[t].apply(this,n);Pe&&ne.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function Do(){return et.__SENTRY__=et.__SENTRY__||{extensions:{},hub:void 0},et}function Kd(e){const t=Do(),n=Hl(t);return Yh(t,e),n}function tt(){const e=Do();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return $I(e)}function $I(e=Do()){return(!LI(e)||Hl(e).isOlderThan(Wh))&&Yh(e,new qh),Hl(e)}function LI(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Hl(e){return Eh("hub",()=>new qh,e)}function Yh(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function Oo(e){return(e||tt()).getScope().getTransaction()}let Xd=!1;function VI(){Xd||(Xd=!0,Ah(Ul),$h(Ul))}function Ul(){const e=Oo();if(e){const t="internal_error";Pe&&ne.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}Ul.tag="sentry_tracingErrorCallback";class Gh{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class Fu{constructor(t={}){this.traceId=t.traceId||Yt(),this.spanId=t.spanId||Yt().substring(16),this.startTimestamp=t.startTimestamp||Cr(),this.tags=t.tags||{},this.data=t.data||{},this.instrumenter=t.instrumenter||"sentry",this.origin=t.origin||"manual",t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.name&&(this.description=t.name),t.status&&(this.status=t.status),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}get name(){return this.description||""}set name(t){this.setName(t)}startChild(t){const n=new Fu({...t,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,Pe&&n.transaction){const r=t&&t.op||"< unknown op >",o=n.transaction.name||"< unknown name >",i=n.transaction.spanId,s=`[Tracing] Starting '${r}' span on transaction '${o}' (${i}).`;n.transaction.metadata.spanMetadata[n.spanId]={logMessage:s},ne.log(s)}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setStatus(t){return this.status=t,this}setHttpStatus(t){this.setTag("http.status_code",String(t)),this.setData("http.response.status_code",t);const n=FI(t);return n!=="unknown_error"&&this.setStatus(n),this}setName(t){this.description=t}isSuccess(){return this.status==="ok"}finish(t){if(Pe&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:n}=this.transaction.metadata.spanMetadata[this.spanId];n&&ne.log(n.replace("Starting","Finishing"))}this.endTimestamp=typeof t=="number"?t:Cr()}toTraceparent(){return Au(this.traceId,this.spanId,this.sampled)}toContext(){return Yn({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(t){return this.data=t.data||{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=t.spanId||this.spanId,this.startTimestamp=t.startTimestamp||this.startTimestamp,this.status=t.status,this.tags=t.tags||{},this.traceId=t.traceId||this.traceId,this}getTraceContext(){return Yn({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId,origin:this.origin})}toJSON(){return Yn({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}}function FI(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function Qi(e,t,n){const r=t.getOptions(),{publicKey:o}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},s=Yn({environment:r.environment||Lu,release:r.release,user_segment:i,public_key:o,trace_id:e});return t.emit&&t.emit("createDsc",s),s}class Kh extends Fu{constructor(t,n){super(t),delete this.description,this._measurements={},this._contexts={},this._hub=n||tt(),this._name=t.name||"",this.metadata={source:"custom",...t.metadata,spanMetadata:{}},this._trimEnd=t.trimEnd,this.transaction=this;const r=this.metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}setName(t,n="custom"){this._name=t,this.metadata.source=n}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new Gh(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this.metadata={...this.metadata,...t}}finish(t){const n=this._finishTransaction(t);if(n)return this._hub.captureEvent(n)}toContext(){const t=super.toContext();return Yn({...t,name:this.name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this.name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const t=this._hub||tt(),n=t.getClient();if(!n)return{};const r=t.getScope(),o=Qi(this.traceId,n,r),i=this.metadata.sampleRate;i!==void 0&&(o.sample_rate=`${i}`);const s=this.metadata.source;return s&&s!=="url"&&(o.transaction=this.name),this.sampled!==void 0&&(o.sampled=String(this.sampled)),o}setHub(t){this._hub=t}_finishTransaction(t){if(this.endTimestamp!==void 0)return;this.name||(Pe&&ne.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this.sampled!==!0){Pe&&ne.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(l=>l!==this&&l.endTimestamp):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce((l,u)=>l.endTimestamp&&u.endTimestamp?l.endTimestamp>u.endTimestamp?l:u:l).endTimestamp);const o=this.metadata,i={contexts:{...this._contexts,trace:this.getTraceContext()},spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...o,dynamicSamplingContext:this.getDynamicSamplingContext()},...o.source&&{transaction_info:{source:o.source}}};return Object.keys(this._measurements).length>0&&(Pe&&ne.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),Pe&&ne.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),i}}const si={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},HI="finishReason",ra=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class UI extends Gh{constructor(t,n,r,o){super(o),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){t.spanId!==this.transactionSpanId&&(t.finish=n=>{t.endTimestamp=typeof n=="number"?n:Cr(),this._popActivity(t.spanId)},t.endTimestamp===void 0&&this._pushActivity(t.spanId)),super.add(t)}}class zI extends Kh{constructor(t,n,r=si.idleTimeout,o=si.finalTimeout,i=si.heartbeatInterval,s=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=o,this._heartbeatInterval=i,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=ra[4],s&&(Pe&&ne.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),n.configureScope(l=>l.setSpan(this))),this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=ra[3],this.finish())},this._finalTimeout)}finish(t=Cr()){if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setTag(HI,this._finishReason),this.spanRecorder){Pe&&ne.log("[Tracing] finishing IdleTransaction",new Date(t*1e3).toISOString(),this.op);for(const n of this._beforeFinishCallbacks)n(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter(n=>{if(n.spanId===this.spanId)return!0;n.endTimestamp||(n.endTimestamp=t,n.setStatus("cancelled"),Pe&&ne.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(n,void 0,2)));const r=n.startTimestamp<t,o=(this._finalTimeout+this._idleTimeout)/1e3,i=n.endTimestamp-this.startTimestamp<o;if(Pe){const s=JSON.stringify(n,void 0,2);r?i||ne.log("[Tracing] discarding Span since it finished after Transaction final timeout",s):ne.log("[Tracing] discarding Span since it happened after Transaction was finished",s)}return r&&i}),Pe&&ne.log("[Tracing] flushing IdleTransaction")}else Pe&&ne.log("[Tracing] No active IdleTransaction");if(this._onScope){const n=this._idleHub.getScope();n.getTransaction()===this&&n.setSpan(void 0)}return super.finish(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const n=o=>{this._finished||this._pushActivity(o)},r=o=>{this._finished||this._popActivity(o)};this.spanRecorder=new UI(n,r,this.spanId,t),Pe&&ne.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=ra[5],this.finish(t)))}setFinishReason(t){this._finishReason=t}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=ra[1],this.finish(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),Pe&&ne.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,Pe&&ne.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(Pe&&ne.log(`[Tracing] popActivity ${t}`),delete this.activities[t],Pe&&ne.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=Cr();this._idleTimeoutCanceledPermanently?(this._finishReason=ra[5],this.finish(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?(Pe&&ne.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=ra[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){Pe&&ne.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function Xh(e,t,n,r,o){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=e,l={...t,event_id:t.event_id||n.event_id||Yt(),timestamp:t.timestamp||Ji()},u=n.integrations||e.integrations.map(h=>h.name);jI(l,e),YI(l,u),t.type===void 0&&WI(l,e.stackParser);let c=r;n.captureContext&&(c=_r.clone(c).update(n.captureContext)),n.mechanism&&_o(l,n.mechanism);let f=Yr(l);const p=o&&o.getEventProcessors?o.getEventProcessors():[];if(c){if(c.getAttachments){const h=[...n.attachments||[],...c.getAttachments()];h.length&&(n.attachments=h)}f=c.applyToEvent(l,n,p)}else f=Ci([...p,...Vu()],l,n);return f.then(h=>(h&&qI(h),typeof i=="number"&&i>0?GI(h,i,s):h))}function jI(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:Lu),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&o!==void 0&&(e.dist=o),e.message&&(e.message=ma(e.message,i));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=ma(s.value,i));const l=e.request;l&&l.url&&(l.url=ma(l.url,i))}const Jd=new WeakMap;function WI(e,t){const n=et._sentryDebugIds;if(!n)return;let r;const o=Jd.get(t);o?r=o:(r=new Map,Jd.set(t,r));const i=Object.keys(n).reduce((s,l)=>{let u;const c=r.get(l);c?u=c:(u=t(l),r.set(l,u));for(let f=u.length-1;f>=0;f--){const p=u[f];if(p.filename){s[p.filename]=n[l];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(l=>{l.filename&&(l.debug_id=i[l.filename])})})}catch{}}function qI(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function YI(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function GI(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:An(o.data,t,n)}}))},...e.user&&{user:An(e.user,t,n)},...e.contexts&&{contexts:An(e.contexts,t,n)},...e.extra&&{extra:An(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=An(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>(o.data&&(o.data=An(o.data,t,n)),o))),r}function KI(e){if(e)return XI(e)?{captureContext:e}:QI(e)?{captureContext:e}:e}function XI(e){return e instanceof _r||typeof e=="function"}const JI=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function QI(e){return Object.keys(e).some(t=>JI.includes(t))}function Zi(e,t){return tt().captureException(e,KI(t))}function ZI(e,t){tt().setContext(e,t)}function eD(e){tt().withScope(e)}function Ir(){return tt().getClient()}function es(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Ir(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function Jh(e,t,n){if(!es(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setMetadata({sampleRate:Number(e.sampled)}),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setMetadata({sampleRate:Number(r)})):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setMetadata({sampleRate:Number(r)})):(r=1,e.setMetadata({sampleRate:r})),tD(r)?r?(e.sampled=Math.random()<r,e.sampled?(Pe&&ne.log(`[Tracing] starting ${e.op} transaction - ${e.name}`),e):(Pe&&ne.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),e)):(Pe&&ne.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1,e):(Pe&&ne.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function tD(e){return Ch(e)||!(typeof e=="number"||typeof e=="boolean")?(Pe&&ne.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e<0||e>1?(Pe&&ne.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function nD(){const t=this.getScope().getSpan();return t?{"sentry-trace":t.toTraceparent()}:{}}function rD(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},o=r.instrumenter||"sentry",i=e.instrumenter||"sentry";o!==i&&(Pe&&ne.error(`A transaction was started with instrumenter=\`${i}\`, but the SDK is configured with the \`${o}\` instrumenter.
91
- The transaction will not be sampled. Please use the ${o} instrumentation to start transactions.`),e.sampled=!1);let s=new Kh(e,this);return s=Jh(s,r,{parentSampled:e.parentSampled,transactionContext:e,...t}),s.sampled&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function Qd(e,t,n,r,o,i,s){const l=e.getClient(),u=l&&l.getOptions()||{};let c=new zI(t,e,n,r,s,o);return c=Jh(c,u,{parentSampled:t.parentSampled,transactionContext:t,...i}),c.sampled&&c.initSpanRecorder(u._experiments&&u._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",c),c}function aD(){const e=Do();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=rD),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=nD),VI())}function oD(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function iD(e,t,n,r){const o=$u(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:Io(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return $a(i,[s])}function sD(e,t,n,r){const o=$u(n),i=e.type&&e.type!=="replay_event"?e.type:"event";oD(e,n&&n.sdk);const s=Uh(e,o,r,t);return delete e.sdkProcessingMetadata,$a(s,[[{type:i},e]])}const lD="7";function Qh(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function uD(e){return`${Qh(e)}${e.projectId}/envelope/`}function cD(e,t){return MP({sentry_key:e.publicKey,sentry_version:lD,...t&&{sentry_client:`${t.name}/${t.version}`}})}function dD(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${uD(e)}?${cD(e,r)}`}function fD(e,t){const n=Ph(e);if(!n)return"";const r=`${Qh(n)}embed/error-page/`;let o=`dsn=${Io(n)}`;for(const i in t)if(i!=="dsn"&&i!=="onClose")if(i==="user"){const s=t.user;if(!s)continue;s.name&&(o+=`&name=${encodeURIComponent(s.name)}`),s.email&&(o+=`&email=${encodeURIComponent(s.email)}`)}else o+=`&${encodeURIComponent(i)}=${encodeURIComponent(t[i])}`;return`${r}?${o}`}const Zd=[];function pD(e){const t={};return e.forEach(n=>{const{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function hD(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=Nu(n(t)):r=t;const o=pD(r),i=vD(o,s=>s.name==="Debug");if(i!==-1){const[s]=o.splice(i,1);o.push(s)}return o}function mD(e,t){const n={};return t.forEach(r=>{r&&Zh(e,r,n)}),n}function Zh(e,t,n){if(n[t.name]=t,Zd.indexOf(t.name)===-1&&(t.setupOnce(OI,tt),Zd.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>r(o,i,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),o=Object.assign((i,s)=>r(i,s,e),{id:t.name});e.addEventProcessor(o)}Pe&&ne.log(`Integration installed: ${t.name}`)}function vD(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}const ef="Not capturing exception because it's already been captured.";class gD{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Ph(t.dsn):Pe&&ne.warn("No DSN provided, client will not send events."),this._dsn){const n=dD(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(Vd(t)){Pe&&ne.log(ef);return}let o=n&&n.event_id;return this._process(this.eventFromException(t,n).then(i=>this._captureEvent(i,n,r)).then(i=>{o=i})),o}captureMessage(t,n,r,o){let i=r&&r.event_id;const s=Iu(t)?this.eventFromMessage(String(t),n,r):this.eventFromException(t,r);return this._process(s.then(l=>this._captureEvent(l,r,o)).then(l=>{i=l})),i}captureEvent(t,n,r){if(n&&n.originalException&&Vd(n.originalException)){Pe&&ne.log(ef);return}let o=n&&n.event_id;return this._process(this._captureEvent(t,n,r).then(i=>{o=i})),o}captureSession(t){typeof t.release!="string"?Pe&&ne.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),xa(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?this._isClientDoneProcessing(t).then(r=>n.flush(t).then(o=>r&&o)):Yr(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&(this._integrations=mD(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return Pe&&ne.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){Zh(this,t,this._integrations)}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=sD(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=kI(r,TI(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));const o=this._sendEnvelope(r);o&&o.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){const n=iD(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const o=`${t}:${n}`;Pe&&ne.log(`Adding outcome: "${o}"`),this._outcomes[o]=this._outcomes[o]+1||1}}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_updateSessionFromEvent(t,n){let r=!1,o=!1;const i=n.exception&&n.exception.values;if(i){o=!0;for(const u of i){const c=u.mechanism;if(c&&c.handled===!1){r=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(xa(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new un(n=>{let r=0;const o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(r+=o,t&&r>=t&&(clearInterval(i),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),this.emit("preprocessEvent",t,n),Xh(o,t,n,r,this).then(s=>{if(s===null)return s;const{propagationContext:l}=s.sdkProcessingMetadata||{};if(!(s.contexts&&s.contexts.trace)&&l){const{traceId:c,spanId:f,parentSpanId:p,dsc:h}=l;s.contexts={trace:{trace_id:c,span_id:f,parent_span_id:p},...s.contexts};const m=h||Qi(c,this,r);s.sdkProcessingMetadata={dynamicSamplingContext:m,...s.sdkProcessingMetadata}}return s})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(o=>o.event_id,o=>{if(Pe){const i=o;i.logLevel==="log"?ne.log(i.message):ne.warn(i)}})}_processEvent(t,n,r){const o=this.getOptions(),{sampleRate:i}=o,s=tm(t),l=em(t),u=t.type||"error",c=`before send for type \`${u}\``;if(l&&typeof i=="number"&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),Ru(new Un(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const f=u==="replay_event"?"replay":u;return this._prepareEvent(t,n,r).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",f,t),new Un("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return p;const m=bD(o,p,n);return yD(m,c)}).then(p=>{if(p===null)throw this.recordDroppedEvent("before_send",f,t),new Un(`${c} returned \`null\`, will not send event.`,"log");const h=r&&r.getSession();!s&&h&&this._updateSessionFromEvent(h,p);const m=p.transaction_info;if(s&&m&&p.transaction!==t.transaction){const y="custom";p.transaction_info={...m,source:y}}return this.sendEvent(p,n),p}).then(null,p=>{throw p instanceof Un?p:(this.captureException(p,{data:{__sentry__:!0},originalException:p}),new Un(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
92
- Reason: ${p}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{Pe&&ne.error("Error while sending event:",n)});Pe&&ne.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,o]=n.split(":");return{reason:r,category:o,quantity:t[n]}})}}function yD(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Du(e))return e.then(r=>{if(!Ea(r)&&r!==null)throw new Un(n);return r},r=>{throw new Un(`${t} rejected with ${r}`)});if(!Ea(e)&&e!==null)throw new Un(n);return e}function bD(e,t,n){const{beforeSend:r,beforeSendTransaction:o}=e;return em(t)&&r?r(t,n):tm(t)&&o?o(t,n):t}function em(e){return e.type===void 0}function tm(e){return e.type==="transaction"}function _D(e){const t=tt().getClient();!t||!t.addEventProcessor||t.addEventProcessor(e)}function wD(e,t){t.debug===!0&&(Pe?ne.enable():Xn(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));const n=tt();n.getScope().update(t.initialScope);const o=new e(t);n.bindClient(o)}const kD=30;function nm(e,t,n=cI(e.bufferSize||kD)){let r={};const o=s=>n.drain(s);function i(s){const l=[];if(qd(s,(p,h)=>{const m=Yd(h);if(zh(r,m)){const y=tf(p,h);e.recordDroppedEvent("ratelimit_backoff",m,y)}else l.push(p)}),l.length===0)return Yr();const u=$a(s[0],l),c=p=>{qd(u,(h,m)=>{const y=tf(h,m);e.recordDroppedEvent(p,Yd(m),y)})},f=()=>t({body:SI(u,e.textEncoder)}).then(p=>(p.statusCode!==void 0&&(p.statusCode<200||p.statusCode>=300)&&Pe&&ne.warn(`Sentry responded with status code ${p.statusCode} to sent event.`),r=jh(r,p),p),p=>{throw c("network_error"),p});return n.add(f).then(p=>p,p=>{if(p instanceof Un)return Pe&&ne.error("Skipped sending event because buffer is full."),c("queue_overflow"),Yr();throw p})}return i.__sentry__baseTransport__=!0,{send:i,flush:o}}function tf(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}let nf;class ts{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=ts.id}setupOnce(){nf=Function.prototype.toString;try{Function.prototype.toString=function(...t){const n=Ou(this)||this;return nf.apply(n,t)}}catch{}}}ts.__initStatic();const SD=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],CD=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/];class ns{static __initStatic(){this.id="InboundFilters"}constructor(t={}){this.name=ns.id,this._options=t}setupOnce(t,n){}processEvent(t,n,r){const o=r.getOptions(),i=TD(this._options,o);return ED(t,i)?null:t}}ns.__initStatic();function TD(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:SD],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:CD],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function ED(e,t){return t.ignoreInternal&&ND(e)?(Pe&&ne.warn(`Event dropped due to being internal Sentry Error.
93
- Event: ${yr(e)}`),!0):xD(e,t.ignoreErrors)?(Pe&&ne.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
94
- Event: ${yr(e)}`),!0):PD(e,t.ignoreTransactions)?(Pe&&ne.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
95
- Event: ${yr(e)}`),!0):ID(e,t.denyUrls)?(Pe&&ne.warn(`Event dropped due to being matched by \`denyUrls\` option.
90
+ `):ne.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&MI(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:o,environment:i=Lu}=r&&r.getOptions()||{},{userAgent:s}=et.navigator||{},l=BI({release:o,environment:i,user:n.getUser(),...s&&{userAgent:s},...t}),u=n.getSession&&n.getSession();return u&&u.status==="ok"&&xa(u,{status:"exited"}),this.endSession(),n.setSession(l),l}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_withClient(t){const{scope:n,client:r}=this.getStackTop();r&&t(r,n)}_callExtensionMethod(t,...n){const o=Do().__SENTRY__;if(o&&o.extensions&&typeof o.extensions[t]=="function")return o.extensions[t].apply(this,n);Pe&&ne.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function Do(){return et.__SENTRY__=et.__SENTRY__||{extensions:{},hub:void 0},et}function Kd(e){const t=Do(),n=Hl(t);return Yh(t,e),n}function tt(){const e=Do();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return LI(e)}function LI(e=Do()){return(!VI(e)||Hl(e).isOlderThan(Wh))&&Yh(e,new qh),Hl(e)}function VI(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Hl(e){return Eh("hub",()=>new qh,e)}function Yh(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function No(e){return(e||tt()).getScope().getTransaction()}let Xd=!1;function FI(){Xd||(Xd=!0,Ah(Ul),$h(Ul))}function Ul(){const e=No();if(e){const t="internal_error";Pe&&ne.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}Ul.tag="sentry_tracingErrorCallback";class Gh{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class Fu{constructor(t={}){this.traceId=t.traceId||Yt(),this.spanId=t.spanId||Yt().substring(16),this.startTimestamp=t.startTimestamp||Cr(),this.tags=t.tags||{},this.data=t.data||{},this.instrumenter=t.instrumenter||"sentry",this.origin=t.origin||"manual",t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.name&&(this.description=t.name),t.status&&(this.status=t.status),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}get name(){return this.description||""}set name(t){this.setName(t)}startChild(t){const n=new Fu({...t,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,Pe&&n.transaction){const r=t&&t.op||"< unknown op >",o=n.transaction.name||"< unknown name >",i=n.transaction.spanId,s=`[Tracing] Starting '${r}' span on transaction '${o}' (${i}).`;n.transaction.metadata.spanMetadata[n.spanId]={logMessage:s},ne.log(s)}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setStatus(t){return this.status=t,this}setHttpStatus(t){this.setTag("http.status_code",String(t)),this.setData("http.response.status_code",t);const n=HI(t);return n!=="unknown_error"&&this.setStatus(n),this}setName(t){this.description=t}isSuccess(){return this.status==="ok"}finish(t){if(Pe&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:n}=this.transaction.metadata.spanMetadata[this.spanId];n&&ne.log(n.replace("Starting","Finishing"))}this.endTimestamp=typeof t=="number"?t:Cr()}toTraceparent(){return Au(this.traceId,this.spanId,this.sampled)}toContext(){return Yn({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(t){return this.data=t.data||{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=t.spanId||this.spanId,this.startTimestamp=t.startTimestamp||this.startTimestamp,this.status=t.status,this.tags=t.tags||{},this.traceId=t.traceId||this.traceId,this}getTraceContext(){return Yn({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId,origin:this.origin})}toJSON(){return Yn({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}}function HI(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function Qi(e,t,n){const r=t.getOptions(),{publicKey:o}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},s=Yn({environment:r.environment||Lu,release:r.release,user_segment:i,public_key:o,trace_id:e});return t.emit&&t.emit("createDsc",s),s}class Kh extends Fu{constructor(t,n){super(t),delete this.description,this._measurements={},this._contexts={},this._hub=n||tt(),this._name=t.name||"",this.metadata={source:"custom",...t.metadata,spanMetadata:{}},this._trimEnd=t.trimEnd,this.transaction=this;const r=this.metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}setName(t,n="custom"){this._name=t,this.metadata.source=n}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new Gh(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this.metadata={...this.metadata,...t}}finish(t){const n=this._finishTransaction(t);if(n)return this._hub.captureEvent(n)}toContext(){const t=super.toContext();return Yn({...t,name:this.name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this.name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const t=this._hub||tt(),n=t.getClient();if(!n)return{};const r=t.getScope(),o=Qi(this.traceId,n,r),i=this.metadata.sampleRate;i!==void 0&&(o.sample_rate=`${i}`);const s=this.metadata.source;return s&&s!=="url"&&(o.transaction=this.name),this.sampled!==void 0&&(o.sampled=String(this.sampled)),o}setHub(t){this._hub=t}_finishTransaction(t){if(this.endTimestamp!==void 0)return;this.name||(Pe&&ne.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this.sampled!==!0){Pe&&ne.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(l=>l!==this&&l.endTimestamp):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce((l,u)=>l.endTimestamp&&u.endTimestamp?l.endTimestamp>u.endTimestamp?l:u:l).endTimestamp);const o=this.metadata,i={contexts:{...this._contexts,trace:this.getTraceContext()},spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...o,dynamicSamplingContext:this.getDynamicSamplingContext()},...o.source&&{transaction_info:{source:o.source}}};return Object.keys(this._measurements).length>0&&(Pe&&ne.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),Pe&&ne.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),i}}const si={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},UI="finishReason",aa=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class zI extends Gh{constructor(t,n,r,o){super(o),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){t.spanId!==this.transactionSpanId&&(t.finish=n=>{t.endTimestamp=typeof n=="number"?n:Cr(),this._popActivity(t.spanId)},t.endTimestamp===void 0&&this._pushActivity(t.spanId)),super.add(t)}}class jI extends Kh{constructor(t,n,r=si.idleTimeout,o=si.finalTimeout,i=si.heartbeatInterval,s=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=o,this._heartbeatInterval=i,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=aa[4],s&&(Pe&&ne.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),n.configureScope(l=>l.setSpan(this))),this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=aa[3],this.finish())},this._finalTimeout)}finish(t=Cr()){if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setTag(UI,this._finishReason),this.spanRecorder){Pe&&ne.log("[Tracing] finishing IdleTransaction",new Date(t*1e3).toISOString(),this.op);for(const n of this._beforeFinishCallbacks)n(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter(n=>{if(n.spanId===this.spanId)return!0;n.endTimestamp||(n.endTimestamp=t,n.setStatus("cancelled"),Pe&&ne.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(n,void 0,2)));const r=n.startTimestamp<t,o=(this._finalTimeout+this._idleTimeout)/1e3,i=n.endTimestamp-this.startTimestamp<o;if(Pe){const s=JSON.stringify(n,void 0,2);r?i||ne.log("[Tracing] discarding Span since it finished after Transaction final timeout",s):ne.log("[Tracing] discarding Span since it happened after Transaction was finished",s)}return r&&i}),Pe&&ne.log("[Tracing] flushing IdleTransaction")}else Pe&&ne.log("[Tracing] No active IdleTransaction");if(this._onScope){const n=this._idleHub.getScope();n.getTransaction()===this&&n.setSpan(void 0)}return super.finish(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const n=o=>{this._finished||this._pushActivity(o)},r=o=>{this._finished||this._popActivity(o)};this.spanRecorder=new zI(n,r,this.spanId,t),Pe&&ne.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=aa[5],this.finish(t)))}setFinishReason(t){this._finishReason=t}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=aa[1],this.finish(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),Pe&&ne.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,Pe&&ne.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(Pe&&ne.log(`[Tracing] popActivity ${t}`),delete this.activities[t],Pe&&ne.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=Cr();this._idleTimeoutCanceledPermanently?(this._finishReason=aa[5],this.finish(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?(Pe&&ne.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=aa[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){Pe&&ne.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function Xh(e,t,n,r,o){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=e,l={...t,event_id:t.event_id||n.event_id||Yt(),timestamp:t.timestamp||Ji()},u=n.integrations||e.integrations.map(h=>h.name);WI(l,e),GI(l,u),t.type===void 0&&qI(l,e.stackParser);let c=r;n.captureContext&&(c=_r.clone(c).update(n.captureContext)),n.mechanism&&_o(l,n.mechanism);let f=Gr(l);const p=o&&o.getEventProcessors?o.getEventProcessors():[];if(c){if(c.getAttachments){const h=[...n.attachments||[],...c.getAttachments()];h.length&&(n.attachments=h)}f=c.applyToEvent(l,n,p)}else f=Ci([...p,...Vu()],l,n);return f.then(h=>(h&&YI(h),typeof i=="number"&&i>0?KI(h,i,s):h))}function WI(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:Lu),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&o!==void 0&&(e.dist=o),e.message&&(e.message=va(e.message,i));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=va(s.value,i));const l=e.request;l&&l.url&&(l.url=va(l.url,i))}const Jd=new WeakMap;function qI(e,t){const n=et._sentryDebugIds;if(!n)return;let r;const o=Jd.get(t);o?r=o:(r=new Map,Jd.set(t,r));const i=Object.keys(n).reduce((s,l)=>{let u;const c=r.get(l);c?u=c:(u=t(l),r.set(l,u));for(let f=u.length-1;f>=0;f--){const p=u[f];if(p.filename){s[p.filename]=n[l];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(l=>{l.filename&&(l.debug_id=i[l.filename])})})}catch{}}function YI(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function GI(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function KI(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:An(o.data,t,n)}}))},...e.user&&{user:An(e.user,t,n)},...e.contexts&&{contexts:An(e.contexts,t,n)},...e.extra&&{extra:An(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=An(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>(o.data&&(o.data=An(o.data,t,n)),o))),r}function XI(e){if(e)return JI(e)?{captureContext:e}:ZI(e)?{captureContext:e}:e}function JI(e){return e instanceof _r||typeof e=="function"}const QI=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function ZI(e){return Object.keys(e).some(t=>QI.includes(t))}function Zi(e,t){return tt().captureException(e,XI(t))}function eD(e,t){tt().setContext(e,t)}function tD(e){tt().withScope(e)}function Ir(){return tt().getClient()}function es(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Ir(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function Jh(e,t,n){if(!es(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setMetadata({sampleRate:Number(e.sampled)}),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setMetadata({sampleRate:Number(r)})):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setMetadata({sampleRate:Number(r)})):(r=1,e.setMetadata({sampleRate:r})),nD(r)?r?(e.sampled=Math.random()<r,e.sampled?(Pe&&ne.log(`[Tracing] starting ${e.op} transaction - ${e.name}`),e):(Pe&&ne.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),e)):(Pe&&ne.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1,e):(Pe&&ne.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function nD(e){return Ch(e)||!(typeof e=="number"||typeof e=="boolean")?(Pe&&ne.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e<0||e>1?(Pe&&ne.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function rD(){const t=this.getScope().getSpan();return t?{"sentry-trace":t.toTraceparent()}:{}}function aD(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},o=r.instrumenter||"sentry",i=e.instrumenter||"sentry";o!==i&&(Pe&&ne.error(`A transaction was started with instrumenter=\`${i}\`, but the SDK is configured with the \`${o}\` instrumenter.
91
+ The transaction will not be sampled. Please use the ${o} instrumentation to start transactions.`),e.sampled=!1);let s=new Kh(e,this);return s=Jh(s,r,{parentSampled:e.parentSampled,transactionContext:e,...t}),s.sampled&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function Qd(e,t,n,r,o,i,s){const l=e.getClient(),u=l&&l.getOptions()||{};let c=new jI(t,e,n,r,s,o);return c=Jh(c,u,{parentSampled:t.parentSampled,transactionContext:t,...i}),c.sampled&&c.initSpanRecorder(u._experiments&&u._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",c),c}function oD(){const e=Do();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=aD),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=rD),FI())}function iD(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function sD(e,t,n,r){const o=$u(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:Io(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return $a(i,[s])}function lD(e,t,n,r){const o=$u(n),i=e.type&&e.type!=="replay_event"?e.type:"event";iD(e,n&&n.sdk);const s=Uh(e,o,r,t);return delete e.sdkProcessingMetadata,$a(s,[[{type:i},e]])}const uD="7";function Qh(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function cD(e){return`${Qh(e)}${e.projectId}/envelope/`}function dD(e,t){return RP({sentry_key:e.publicKey,sentry_version:uD,...t&&{sentry_client:`${t.name}/${t.version}`}})}function fD(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${cD(e)}?${dD(e,r)}`}function pD(e,t){const n=Ph(e);if(!n)return"";const r=`${Qh(n)}embed/error-page/`;let o=`dsn=${Io(n)}`;for(const i in t)if(i!=="dsn"&&i!=="onClose")if(i==="user"){const s=t.user;if(!s)continue;s.name&&(o+=`&name=${encodeURIComponent(s.name)}`),s.email&&(o+=`&email=${encodeURIComponent(s.email)}`)}else o+=`&${encodeURIComponent(i)}=${encodeURIComponent(t[i])}`;return`${r}?${o}`}const Zd=[];function hD(e){const t={};return e.forEach(n=>{const{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function mD(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=Ou(n(t)):r=t;const o=hD(r),i=gD(o,s=>s.name==="Debug");if(i!==-1){const[s]=o.splice(i,1);o.push(s)}return o}function vD(e,t){const n={};return t.forEach(r=>{r&&Zh(e,r,n)}),n}function Zh(e,t,n){if(n[t.name]=t,Zd.indexOf(t.name)===-1&&(t.setupOnce(OI,tt),Zd.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>r(o,i,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),o=Object.assign((i,s)=>r(i,s,e),{id:t.name});e.addEventProcessor(o)}Pe&&ne.log(`Integration installed: ${t.name}`)}function gD(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}const ef="Not capturing exception because it's already been captured.";class yD{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Ph(t.dsn):Pe&&ne.warn("No DSN provided, client will not send events."),this._dsn){const n=fD(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(Vd(t)){Pe&&ne.log(ef);return}let o=n&&n.event_id;return this._process(this.eventFromException(t,n).then(i=>this._captureEvent(i,n,r)).then(i=>{o=i})),o}captureMessage(t,n,r,o){let i=r&&r.event_id;const s=Iu(t)?this.eventFromMessage(String(t),n,r):this.eventFromException(t,r);return this._process(s.then(l=>this._captureEvent(l,r,o)).then(l=>{i=l})),i}captureEvent(t,n,r){if(n&&n.originalException&&Vd(n.originalException)){Pe&&ne.log(ef);return}let o=n&&n.event_id;return this._process(this._captureEvent(t,n,r).then(i=>{o=i})),o}captureSession(t){typeof t.release!="string"?Pe&&ne.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),xa(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?this._isClientDoneProcessing(t).then(r=>n.flush(t).then(o=>r&&o)):Gr(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&(this._integrations=vD(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return Pe&&ne.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){Zh(this,t,this._integrations)}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=lD(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=SI(r,EI(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));const o=this._sendEnvelope(r);o&&o.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){const n=sD(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const o=`${t}:${n}`;Pe&&ne.log(`Adding outcome: "${o}"`),this._outcomes[o]=this._outcomes[o]+1||1}}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_updateSessionFromEvent(t,n){let r=!1,o=!1;const i=n.exception&&n.exception.values;if(i){o=!0;for(const u of i){const c=u.mechanism;if(c&&c.handled===!1){r=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(xa(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new un(n=>{let r=0;const o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(r+=o,t&&r>=t&&(clearInterval(i),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),this.emit("preprocessEvent",t,n),Xh(o,t,n,r,this).then(s=>{if(s===null)return s;const{propagationContext:l}=s.sdkProcessingMetadata||{};if(!(s.contexts&&s.contexts.trace)&&l){const{traceId:c,spanId:f,parentSpanId:p,dsc:h}=l;s.contexts={trace:{trace_id:c,span_id:f,parent_span_id:p},...s.contexts};const m=h||Qi(c,this,r);s.sdkProcessingMetadata={dynamicSamplingContext:m,...s.sdkProcessingMetadata}}return s})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(o=>o.event_id,o=>{if(Pe){const i=o;i.logLevel==="log"?ne.log(i.message):ne.warn(i)}})}_processEvent(t,n,r){const o=this.getOptions(),{sampleRate:i}=o,s=tm(t),l=em(t),u=t.type||"error",c=`before send for type \`${u}\``;if(l&&typeof i=="number"&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),Ru(new Un(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const f=u==="replay_event"?"replay":u;return this._prepareEvent(t,n,r).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",f,t),new Un("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return p;const m=_D(o,p,n);return bD(m,c)}).then(p=>{if(p===null)throw this.recordDroppedEvent("before_send",f,t),new Un(`${c} returned \`null\`, will not send event.`,"log");const h=r&&r.getSession();!s&&h&&this._updateSessionFromEvent(h,p);const m=p.transaction_info;if(s&&m&&p.transaction!==t.transaction){const y="custom";p.transaction_info={...m,source:y}}return this.sendEvent(p,n),p}).then(null,p=>{throw p instanceof Un?p:(this.captureException(p,{data:{__sentry__:!0},originalException:p}),new Un(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
92
+ Reason: ${p}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{Pe&&ne.error("Error while sending event:",n)});Pe&&ne.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,o]=n.split(":");return{reason:r,category:o,quantity:t[n]}})}}function bD(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Du(e))return e.then(r=>{if(!Ea(r)&&r!==null)throw new Un(n);return r},r=>{throw new Un(`${t} rejected with ${r}`)});if(!Ea(e)&&e!==null)throw new Un(n);return e}function _D(e,t,n){const{beforeSend:r,beforeSendTransaction:o}=e;return em(t)&&r?r(t,n):tm(t)&&o?o(t,n):t}function em(e){return e.type===void 0}function tm(e){return e.type==="transaction"}function wD(e){const t=tt().getClient();!t||!t.addEventProcessor||t.addEventProcessor(e)}function kD(e,t){t.debug===!0&&(Pe?ne.enable():Xn(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));const n=tt();n.getScope().update(t.initialScope);const o=new e(t);n.bindClient(o)}const SD=30;function nm(e,t,n=dI(e.bufferSize||SD)){let r={};const o=s=>n.drain(s);function i(s){const l=[];if(qd(s,(p,h)=>{const m=Yd(h);if(zh(r,m)){const y=tf(p,h);e.recordDroppedEvent("ratelimit_backoff",m,y)}else l.push(p)}),l.length===0)return Gr();const u=$a(s[0],l),c=p=>{qd(u,(h,m)=>{const y=tf(h,m);e.recordDroppedEvent(p,Yd(m),y)})},f=()=>t({body:CI(u,e.textEncoder)}).then(p=>(p.statusCode!==void 0&&(p.statusCode<200||p.statusCode>=300)&&Pe&&ne.warn(`Sentry responded with status code ${p.statusCode} to sent event.`),r=jh(r,p),p),p=>{throw c("network_error"),p});return n.add(f).then(p=>p,p=>{if(p instanceof Un)return Pe&&ne.error("Skipped sending event because buffer is full."),c("queue_overflow"),Gr();throw p})}return i.__sentry__baseTransport__=!0,{send:i,flush:o}}function tf(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}let nf;class ts{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=ts.id}setupOnce(){nf=Function.prototype.toString;try{Function.prototype.toString=function(...t){const n=Nu(this)||this;return nf.apply(n,t)}}catch{}}}ts.__initStatic();const CD=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],TD=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/];class ns{static __initStatic(){this.id="InboundFilters"}constructor(t={}){this.name=ns.id,this._options=t}setupOnce(t,n){}processEvent(t,n,r){const o=r.getOptions(),i=ED(this._options,o);return xD(t,i)?null:t}}ns.__initStatic();function ED(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:CD],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:TD],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function xD(e,t){return t.ignoreInternal&&BD(e)?(Pe&&ne.warn(`Event dropped due to being internal Sentry Error.
93
+ Event: ${yr(e)}`),!0):PD(e,t.ignoreErrors)?(Pe&&ne.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
94
+ Event: ${yr(e)}`),!0):ID(e,t.ignoreTransactions)?(Pe&&ne.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
95
+ Event: ${yr(e)}`),!0):DD(e,t.denyUrls)?(Pe&&ne.warn(`Event dropped due to being matched by \`denyUrls\` option.
96
96
  Event: ${yr(e)}.
97
- Url: ${Ti(e)}`),!0):DD(e,t.allowUrls)?!1:(Pe&&ne.warn(`Event dropped due to not being matched by \`allowUrls\` option.
97
+ Url: ${Ti(e)}`),!0):ND(e,t.allowUrls)?!1:(Pe&&ne.warn(`Event dropped due to not being matched by \`allowUrls\` option.
98
98
  Event: ${yr(e)}.
99
- Url: ${Ti(e)}`),!0)}function xD(e,t){return e.type||!t||!t.length?!1:OD(e).some(n=>Ra(n,t))}function PD(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Ra(n,t):!1}function ID(e,t){if(!t||!t.length)return!1;const n=Ti(e);return n?Ra(n,t):!1}function DD(e,t){if(!t||!t.length)return!0;const n=Ti(e);return n?Ra(n,t):!0}function OD(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),Pe&&t.length===0&&ne.error(`Could not extract message for event ${yr(e)}`),t}function ND(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function BD(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Ti(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?BD(t):null}catch{return Pe&&ne.error(`Cannot extract url for event ${yr(e)}`),null}}function MD(e,t){const n=t.getClient(),r=n&&n.getDsn(),o=n&&n.getOptions().tunnel;return AD(e,r)||RD(e,o)}function RD(e,t){return t?rf(e)===rf(t):!1}function AD(e,t){return t?e.includes(t.host):!1}function rf(e){return e[e.length-1]==="/"?e.slice(0,-1):e}const Ue=et;let zl=0;function rm(){return zl>0}function $D(){zl++,setTimeout(()=>{zl--})}function Pa(e,t={},n){if(typeof e!="function")return e;try{const o=e.__sentry_wrapped__;if(o)return o;if(Ou(e))return e}catch{return e}const r=function(){const o=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const i=o.map(s=>Pa(s,t));return e.apply(this,i)}catch(i){throw $D(),eD(s=>{s.addEventProcessor(l=>(t.mechanism&&(Dl(l,void 0,void 0),_o(l,t.mechanism)),l.extra={...l.extra,arguments:o},l)),Zi(i)}),i}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}Ih(r,e),bo(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const vn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function am(e,t){const n=Hu(e,t),r={type:t&&t.name,value:HD(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function LD(e,t,n,r){const i=tt().getClient(),s=i&&i.getOptions().normalizeDepth,l={exception:{values:[{type:Gi(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:jD(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Vh(t,s)}};if(n){const u=Hu(e,n);u.length&&(l.exception.values[0].stacktrace={frames:u})}return l}function Qs(e,t){return{exception:{values:[am(e,t)]}}}function Hu(e,t){const n=t.stacktrace||t.stack||"",r=FD(t);try{return e(n,r)}catch{}return[]}const VD=/Minified React error #\d+;/i;function FD(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(VD.test(e.message))return 1}return 0}function HD(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function UD(e,t,n,r){const o=n&&n.syntheticException||void 0,i=Uu(e,t,o,r);return _o(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),Yr(i)}function zD(e,t,n="info",r,o){const i=r&&r.syntheticException||void 0,s=jl(e,t,i,o);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),Yr(s)}function Uu(e,t,n,r,o){let i;if(Pu(t)&&t.error)return Qs(e,t.error);if(Dd(t)||gP(t)){const s=t;if("stack"in t)i=Qs(e,t);else{const l=s.name||(Dd(s)?"DOMError":"DOMException"),u=s.message?`${l}: ${s.message}`:l;i=jl(e,u,n,r),Dl(i,u)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return Sh(t)?Qs(e,t):Ea(t)||Gi(t)?(i=LD(e,t,n,o),_o(i,{synthetic:!0}),i):(i=jl(e,t,n,r),Dl(i,`${t}`,void 0),_o(i,{synthetic:!0}),i)}function jl(e,t,n,r){const o={message:t};if(r&&n){const i=Hu(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]})}return o}function jD(e,{isUnhandledRejection:t}){const n=RP(e),r=t?"promise rejection":"exception";return Pu(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Gi(e)?`Event \`${WD(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function WD(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function qD(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Io(r)}},i=YD(e);return $a(o,[i])}function YD(e){return[{type:"user_report"},e]}class GD extends gD{constructor(t){const n=Ue.SENTRY_SDK_SOURCE||nI();t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${n}:@sentry/browser`,version:wo}],version:wo},super(t),t.sendClientReports&&Ue.document&&Ue.document.addEventListener("visibilitychange",()=>{Ue.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return UD(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return zD(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){vn&&ne.warn("SDK not enabled, will not capture user feedback.");return}const n=qD(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){vn&&ne.log("No outcomes to send");return}if(!this._dsn){vn&&ne.log("No dsn provided, will not send outcomes");return}vn&&ne.log("Sending outcomes:",t);const n=xI(t,this._options.tunnel&&Io(this._dsn));this._sendEnvelope(n)}}let Ja;function KD(){if(Ja)return Ja;if(Ml(Ue.fetch))return Ja=Ue.fetch.bind(Ue);const e=Ue.document;let t=Ue.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){vn&&ne.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return Ja=t.bind(Ue)}function XD(){Ja=void 0}function JD(e,t=KD()){let n=0,r=0;function o(i){const s=i.body.length;n+=s,r++;const l={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,l).then(u=>(n-=s,r--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return XD(),n-=s,r--,Ru(u)}}return nm(e,o)}const QD=4;function ZD(e){function t(n){return new un((r,o)=>{const i=new XMLHttpRequest;i.onerror=o,i.onreadystatechange=()=>{i.readyState===QD&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&i.setRequestHeader(s,e.headers[s]);i.send(n.body)})}return nm(e,t)}const rs="?",eO=30,tO=40,nO=50;function zu(e,t,n,r){const o={filename:e,function:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const rO=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,aO=/\((\S*)(?::(\d+))(?::(\d+))\)/,oO=e=>{const t=rO.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const i=aO.exec(t[2]);i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3])}const[r,o]=om(t[1]||rs,t[2]);return zu(o,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},iO=[eO,oO],sO=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,lO=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,uO=e=>{const t=sO.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=lO.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],o=t[1]||rs;return[o,r]=om(o,r),zu(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},cO=[nO,uO],dO=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,fO=e=>{const t=dO.exec(e);return t?zu(t[2],t[1]||rs,+t[3],t[4]?+t[4]:void 0):void 0},pO=[tO,fO],hO=[iO,cO,pO],mO=Nh(...hO),om=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:rs,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class La{static __initStatic(){this.id="GlobalHandlers"}constructor(t){this.name=La.id,this._options={onerror:!0,onunhandledrejection:!0,...t},this._installFunc={onerror:vO,onunhandledrejection:gO}}setupOnce(){Error.stackTraceLimit=50;const t=this._options;for(const n in t){const r=this._installFunc[n];r&&t[n]&&(wO(n),r(),this._installFunc[n]=void 0)}}}La.__initStatic();function vO(){Ah(e=>{const[t,n,r]=sm();if(!t.getIntegration(La))return;const{msg:o,url:i,line:s,column:l,error:u}=e;if(rm())return;const c=u===void 0&&qn(o)?_O(o,i,s,l):im(Uu(n,u||o,void 0,r,!1),i,s,l);c.level="error",t.captureEvent(c,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function gO(){$h(e=>{const[t,n,r]=sm();if(!t.getIntegration(La))return;if(rm())return!0;const o=yO(e),i=Iu(o)?bO(o):Uu(n,o,void 0,r,!0);i.level="error",t.captureEvent(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function yO(e){if(Iu(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function bO(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function _O(e,t,n,r){const o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let i=Pu(e)?e.message:e,s="Error";const l=i.match(o);return l&&(s=l[1],i=l[2]),im({exception:{values:[{type:s,value:i}]}},t,n,r)}function im(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},l=s.stacktrace=s.stacktrace||{},u=l.frames=l.frames||[],c=isNaN(parseInt(r,10))?void 0:r,f=isNaN(parseInt(n,10))?void 0:n,p=qn(t)&&t.length>0?t:EP();return u.length===0&&u.push({colno:c,filename:p,function:"?",in_app:!0,lineno:f}),e}function wO(e){vn&&ne.log(`Global Handler attached: ${e}`)}function sm(){const e=tt(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}const kO=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class as{static __initStatic(){this.id="TryCatch"}constructor(t){this.name=as.id,this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this._options.setTimeout&&Bt(Ue,"setTimeout",af),this._options.setInterval&&Bt(Ue,"setInterval",af),this._options.requestAnimationFrame&&Bt(Ue,"requestAnimationFrame",SO),this._options.XMLHttpRequest&&"XMLHttpRequest"in Ue&&Bt(XMLHttpRequest.prototype,"send",CO);const t=this._options.eventTarget;t&&(Array.isArray(t)?t:kO).forEach(TO)}}as.__initStatic();function af(e){return function(...t){const n=t[0];return t[0]=Pa(n,{mechanism:{data:{function:pr(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function SO(e){return function(t){return e.apply(this,[Pa(t,{mechanism:{data:{function:"requestAnimationFrame",handler:pr(e)},handled:!1,type:"instrument"}})])}}function CO(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&Bt(n,o,function(i){const s={mechanism:{data:{function:o,handler:pr(i)},handled:!1,type:"instrument"}},l=Ou(i);return l&&(s.mechanism.data.handler=pr(l)),Pa(i,s)})}),e.apply(this,t)}}function TO(e){const t=Ue,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Bt(n,"addEventListener",function(r){return function(o,i,s){try{typeof i.handleEvent=="function"&&(i.handleEvent=Pa(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:pr(i),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[o,Pa(i,{mechanism:{data:{function:"addEventListener",handler:pr(i),target:e},handled:!1,type:"instrument"}}),s])}}),Bt(n,"removeEventListener",function(r){return function(o,i,s){const l=i;try{const u=l&&l.__sentry_wrapped__;u&&r.call(this,o,u,s)}catch{}return r.call(this,o,l,s)}}))}const EO="cause",xO=5;class os{static __initStatic(){this.id="LinkedErrors"}constructor(t={}){this.name=os.id,this._key=t.key||EO,this._limit=t.limit||xO}setupOnce(){}preprocessEvent(t,n,r){const o=r.getOptions();kP(am,o.stackParser,o.maxValueLength,this._key,this._limit,t,n)}}os.__initStatic();class is{static __initStatic(){this.id="HttpContext"}constructor(){this.name=is.id}setupOnce(){}preprocessEvent(t){if(!Ue.navigator&&!Ue.location&&!Ue.document)return;const n=t.request&&t.request.url||Ue.location&&Ue.location.href,{referrer:r}=Ue.document||{},{userAgent:o}=Ue.navigator||{},i={...t.request&&t.request.headers,...r&&{Referer:r},...o&&{"User-Agent":o}},s={...t.request,...n&&{url:n},headers:i};t.request=s}}is.__initStatic();class ss{static __initStatic(){this.id="Dedupe"}constructor(){this.name=ss.id}setupOnce(t,n){}processEvent(t){if(t.type)return t;try{if(PO(t,this._previousEvent))return vn&&ne.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return this._previousEvent=t}}ss.__initStatic();function PO(e,t){return t?!!(IO(e,t)||DO(e,t)):!1}function IO(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!um(e,t)||!lm(e,t))}function DO(e,t){const n=of(t),r=of(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!um(e,t)||!lm(e,t))}function lm(e,t){let n=sf(e),r=sf(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){const i=r[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function um(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function of(e){return e.exception&&e.exception.values&&e.exception.values[0]}function sf(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const Xo=1024;class ls{static __initStatic(){this.id="Breadcrumbs"}constructor(t){this.name=ls.id,this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){if(this.options.console&&LP(BO),this.options.dom&&Mh(NO(this.options.dom)),this.options.xhr&&Mu(MO),this.options.fetch&&Bu(RO),this.options.history&&Xi(AO),this.options.sentry){const t=Ir();t&&t.on&&t.on("beforeSendEvent",OO)}}}ls.__initStatic();function OO(e){tt().addBreadcrumb({category:`sentry.${e.type==="transaction"?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:yr(e)},{event:e})}function NO(e){function t(n){let r,o=typeof e=="object"?e.serializeAttribute:void 0,i=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;i&&i>Xo&&(vn&&ne.warn(`\`dom.maxStringLength\` cannot exceed ${Xo}, but a value of ${i} was configured. Sentry will use ${Xo} instead.`),i=Xo),typeof o=="string"&&(o=[o]);try{const s=n.event;r=$O(s)?Sr(s.target,{keyAttrs:o,maxStringLength:i}):Sr(s,{keyAttrs:o,maxStringLength:i})}catch{r="<unknown>"}r.length!==0&&tt().addBreadcrumb({category:`ui.${n.name}`,message:r},{event:n.event,name:n.name,global:n.global})}return t}function BO(e){const t={category:"console",data:{arguments:e.args,logger:"console"},level:fI(e.level),message:Od(e.args," ")};if(e.level==="assert")if(e.args[0]===!1)t.message=`Assertion failed: ${Od(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);else return;tt().addBreadcrumb(t,{input:e.args,level:e.level})}function MO(e){const{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[br];if(!t||!n||!r)return;const{method:o,url:i,status_code:s,body:l}=r,u={method:o,url:i,status_code:s},c={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:n};tt().addBreadcrumb({category:"xhr",data:u,type:"http"},c)}function RO(e){const{startTimestamp:t,endTimestamp:n}=e;if(n&&!(e.fetchData.url.match(/sentry_key/)&&e.fetchData.method==="POST"))if(e.error){const r=e.fetchData,o={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};tt().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},o)}else{const r=e.response,o={...e.fetchData,status_code:r&&r.status},i={input:e.args,response:r,startTimestamp:t,endTimestamp:n};tt().addBreadcrumb({category:"fetch",data:o,type:"http"},i)}}function AO(e){let t=e.from,n=e.to;const r=Xs(Ue.location.href);let o=t?Xs(t):void 0;const i=Xs(n);(!o||!o.path)&&(o=r),r.protocol===i.protocol&&r.host===i.host&&(n=i.relative),r.protocol===o.protocol&&r.host===o.host&&(t=o.relative),tt().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}function $O(e){return!!e&&!!e.target}const cm=[new ns,new ts,new as,new ls,new La,new os,new ss,new is];function LO(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=cm),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),Ue.SENTRY_RELEASE&&Ue.SENTRY_RELEASE.id&&(e.release=Ue.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:AP(e.stackParser||mO),integrations:hD(e),transport:e.transport||(Rh()?JD:ZD)};wD(GD,t),e.autoSessionTracking&&FO()}function VO(e={},t=tt()){if(!Ue.document){vn&&ne.error("Global document not defined in showReportDialog call");return}const{client:n,scope:r}=t.getStackTop(),o=e.dsn||n&&n.getDsn();if(!o){vn&&ne.error("DSN not configured for showReportDialog call");return}r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());const i=Ue.document.createElement("script");i.async=!0,i.crossOrigin="anonymous",i.src=fD(o,e),e.onLoad&&(i.onload=e.onLoad);const{onClose:s}=e;if(s){const u=c=>{if(c.data==="__sentry_reportdialog_closed__")try{s()}finally{Ue.removeEventListener("message",u)}};Ue.addEventListener("message",u)}const l=Ue.document.head||Ue.document.body;l?l.appendChild(i):vn&&ne.error("Not injecting report dialog. No injection point found in HTML")}function lf(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function FO(){if(typeof Ue.document>"u"){vn&&ne.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}const e=tt();e.captureSession&&(lf(e),Xi(({from:t,to:n})=>{t!==void 0&&t!==n&&lf(tt())}))}const yt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,lt=et;function HO(){lt&&lt.document?lt.document.addEventListener("visibilitychange",()=>{const e=Oo();if(lt.document.hidden&&e){const t="cancelled";yt&&ne.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}}):yt&&ne.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const ju=(e,t,n)=>{let r,o;return i=>{t.value>=0&&(i||n)&&(o=t.value-(r||0),(o||r===void 0)&&(r=t.value,t.delta=o,e(t)))}},UO=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,zO=()=>{const e=lt.performance.timing,t=lt.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},dm=()=>lt.__WEB_VITALS_POLYFILL__?lt.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||zO()):lt.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],fm=()=>{const e=dm();return e&&e.activationStart||0},Wu=(e,t)=>{const n=dm();let r="navigate";return n&&(lt.document.prerendering||fm()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:UO(),navigationType:r}},us=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(o=>{t(o.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},cs=(e,t)=>{const n=r=>{(r.type==="pagehide"||lt.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},jO=e=>{const t=Wu("CLS",0);let n,r=0,o=[];const i=l=>{l.forEach(u=>{if(!u.hadRecentInput){const c=o[0],f=o[o.length-1];r&&o.length!==0&&u.startTime-f.startTime<1e3&&u.startTime-c.startTime<5e3?(r+=u.value,o.push(u)):(r=u.value,o=[u]),r>t.value&&(t.value=r,t.entries=o,n&&n())}})},s=us("layout-shift",i);if(s){n=ju(e,t);const l=()=>{i(s.takeRecords()),n(!0)};return cs(l),l}};let li=-1;const WO=()=>lt.document.visibilityState==="hidden"&&!lt.document.prerendering?0:1/0,qO=()=>{cs(({timeStamp:e})=>{li=e},!0)},qu=()=>(li<0&&(li=WO(),qO()),{get firstHiddenTime(){return li}}),YO=e=>{const t=qu(),n=Wu("FID");let r;const o=l=>{l.startTime<t.firstHiddenTime&&(n.value=l.processingStart-l.startTime,n.entries.push(l),r(!0))},i=l=>{l.forEach(o)},s=us("first-input",i);r=ju(e,n),s&&cs(()=>{i(s.takeRecords()),s.disconnect()},!0)},uf={},GO=e=>{const t=qu(),n=Wu("LCP");let r;const o=s=>{const l=s[s.length-1];if(l){const u=Math.max(l.startTime-fm(),0);u<t.firstHiddenTime&&(n.value=u,n.entries=[l],r())}},i=us("largest-contentful-paint",o);if(i){r=ju(e,n);const s=()=>{uf[n.id]||(o(i.takeRecords()),i.disconnect(),uf[n.id]=!0,r(!0))};return["keydown","click"].forEach(l=>{addEventListener(l,s,{once:!0,capture:!0})}),cs(s,!0),s}},no={},Ei={};let pm,hm,mm;function KO(e){return Yu("cls",e,JO,pm)}function vm(e){return Yu("lcp",e,ZO,mm)}function XO(e){return Yu("fid",e,QO,hm)}function ds(e,t){return gm(e,t),Ei[e]||(eN(e),Ei[e]=!0),ym(e,t)}function fs(e,t){const n=no[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(o){yt&&ne.error(`Error while triggering instrumentation handler.
99
+ Url: ${Ti(e)}`),!0)}function PD(e,t){return e.type||!t||!t.length?!1:OD(e).some(n=>Ra(n,t))}function ID(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Ra(n,t):!1}function DD(e,t){if(!t||!t.length)return!1;const n=Ti(e);return n?Ra(n,t):!1}function ND(e,t){if(!t||!t.length)return!0;const n=Ti(e);return n?Ra(n,t):!0}function OD(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),Pe&&t.length===0&&ne.error(`Could not extract message for event ${yr(e)}`),t}function BD(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function MD(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Ti(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?MD(t):null}catch{return Pe&&ne.error(`Cannot extract url for event ${yr(e)}`),null}}function RD(e,t){const n=t.getClient(),r=n&&n.getDsn(),o=n&&n.getOptions().tunnel;return $D(e,r)||AD(e,o)}function AD(e,t){return t?rf(e)===rf(t):!1}function $D(e,t){return t?e.includes(t.host):!1}function rf(e){return e[e.length-1]==="/"?e.slice(0,-1):e}const Ue=et;let zl=0;function rm(){return zl>0}function LD(){zl++,setTimeout(()=>{zl--})}function Pa(e,t={},n){if(typeof e!="function")return e;try{const o=e.__sentry_wrapped__;if(o)return o;if(Nu(e))return e}catch{return e}const r=function(){const o=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const i=o.map(s=>Pa(s,t));return e.apply(this,i)}catch(i){throw LD(),tD(s=>{s.addEventProcessor(l=>(t.mechanism&&(Dl(l,void 0,void 0),_o(l,t.mechanism)),l.extra={...l.extra,arguments:o},l)),Zi(i)}),i}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}Ih(r,e),bo(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const vn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function am(e,t){const n=Hu(e,t),r={type:t&&t.name,value:UD(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function VD(e,t,n,r){const i=tt().getClient(),s=i&&i.getOptions().normalizeDepth,l={exception:{values:[{type:Gi(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:WD(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Vh(t,s)}};if(n){const u=Hu(e,n);u.length&&(l.exception.values[0].stacktrace={frames:u})}return l}function Qs(e,t){return{exception:{values:[am(e,t)]}}}function Hu(e,t){const n=t.stacktrace||t.stack||"",r=HD(t);try{return e(n,r)}catch{}return[]}const FD=/Minified React error #\d+;/i;function HD(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(FD.test(e.message))return 1}return 0}function UD(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function zD(e,t,n,r){const o=n&&n.syntheticException||void 0,i=Uu(e,t,o,r);return _o(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),Gr(i)}function jD(e,t,n="info",r,o){const i=r&&r.syntheticException||void 0,s=jl(e,t,i,o);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),Gr(s)}function Uu(e,t,n,r,o){let i;if(Pu(t)&&t.error)return Qs(e,t.error);if(Dd(t)||yP(t)){const s=t;if("stack"in t)i=Qs(e,t);else{const l=s.name||(Dd(s)?"DOMError":"DOMException"),u=s.message?`${l}: ${s.message}`:l;i=jl(e,u,n,r),Dl(i,u)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return Sh(t)?Qs(e,t):Ea(t)||Gi(t)?(i=VD(e,t,n,o),_o(i,{synthetic:!0}),i):(i=jl(e,t,n,r),Dl(i,`${t}`,void 0),_o(i,{synthetic:!0}),i)}function jl(e,t,n,r){const o={message:t};if(r&&n){const i=Hu(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]})}return o}function WD(e,{isUnhandledRejection:t}){const n=AP(e),r=t?"promise rejection":"exception";return Pu(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Gi(e)?`Event \`${qD(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function qD(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function YD(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Io(r)}},i=GD(e);return $a(o,[i])}function GD(e){return[{type:"user_report"},e]}class KD extends yD{constructor(t){const n=Ue.SENTRY_SDK_SOURCE||rI();t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${n}:@sentry/browser`,version:wo}],version:wo},super(t),t.sendClientReports&&Ue.document&&Ue.document.addEventListener("visibilitychange",()=>{Ue.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return zD(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return jD(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){vn&&ne.warn("SDK not enabled, will not capture user feedback.");return}const n=YD(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){vn&&ne.log("No outcomes to send");return}if(!this._dsn){vn&&ne.log("No dsn provided, will not send outcomes");return}vn&&ne.log("Sending outcomes:",t);const n=PI(t,this._options.tunnel&&Io(this._dsn));this._sendEnvelope(n)}}let Ja;function XD(){if(Ja)return Ja;if(Ml(Ue.fetch))return Ja=Ue.fetch.bind(Ue);const e=Ue.document;let t=Ue.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){vn&&ne.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return Ja=t.bind(Ue)}function JD(){Ja=void 0}function QD(e,t=XD()){let n=0,r=0;function o(i){const s=i.body.length;n+=s,r++;const l={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,l).then(u=>(n-=s,r--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return JD(),n-=s,r--,Ru(u)}}return nm(e,o)}const ZD=4;function eN(e){function t(n){return new un((r,o)=>{const i=new XMLHttpRequest;i.onerror=o,i.onreadystatechange=()=>{i.readyState===ZD&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&i.setRequestHeader(s,e.headers[s]);i.send(n.body)})}return nm(e,t)}const rs="?",tN=30,nN=40,rN=50;function zu(e,t,n,r){const o={filename:e,function:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const aN=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,oN=/\((\S*)(?::(\d+))(?::(\d+))\)/,iN=e=>{const t=aN.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const i=oN.exec(t[2]);i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3])}const[r,o]=om(t[1]||rs,t[2]);return zu(o,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},sN=[tN,iN],lN=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,uN=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,cN=e=>{const t=lN.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=uN.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],o=t[1]||rs;return[o,r]=om(o,r),zu(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},dN=[rN,cN],fN=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,pN=e=>{const t=fN.exec(e);return t?zu(t[2],t[1]||rs,+t[3],t[4]?+t[4]:void 0):void 0},hN=[nN,pN],mN=[sN,dN,hN],vN=Oh(...mN),om=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:rs,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class La{static __initStatic(){this.id="GlobalHandlers"}constructor(t){this.name=La.id,this._options={onerror:!0,onunhandledrejection:!0,...t},this._installFunc={onerror:gN,onunhandledrejection:yN}}setupOnce(){Error.stackTraceLimit=50;const t=this._options;for(const n in t){const r=this._installFunc[n];r&&t[n]&&(kN(n),r(),this._installFunc[n]=void 0)}}}La.__initStatic();function gN(){Ah(e=>{const[t,n,r]=sm();if(!t.getIntegration(La))return;const{msg:o,url:i,line:s,column:l,error:u}=e;if(rm())return;const c=u===void 0&&qn(o)?wN(o,i,s,l):im(Uu(n,u||o,void 0,r,!1),i,s,l);c.level="error",t.captureEvent(c,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function yN(){$h(e=>{const[t,n,r]=sm();if(!t.getIntegration(La))return;if(rm())return!0;const o=bN(e),i=Iu(o)?_N(o):Uu(n,o,void 0,r,!0);i.level="error",t.captureEvent(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function bN(e){if(Iu(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function _N(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function wN(e,t,n,r){const o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let i=Pu(e)?e.message:e,s="Error";const l=i.match(o);return l&&(s=l[1],i=l[2]),im({exception:{values:[{type:s,value:i}]}},t,n,r)}function im(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},l=s.stacktrace=s.stacktrace||{},u=l.frames=l.frames||[],c=isNaN(parseInt(r,10))?void 0:r,f=isNaN(parseInt(n,10))?void 0:n,p=qn(t)&&t.length>0?t:xP();return u.length===0&&u.push({colno:c,filename:p,function:"?",in_app:!0,lineno:f}),e}function kN(e){vn&&ne.log(`Global Handler attached: ${e}`)}function sm(){const e=tt(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}const SN=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class as{static __initStatic(){this.id="TryCatch"}constructor(t){this.name=as.id,this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this._options.setTimeout&&Bt(Ue,"setTimeout",af),this._options.setInterval&&Bt(Ue,"setInterval",af),this._options.requestAnimationFrame&&Bt(Ue,"requestAnimationFrame",CN),this._options.XMLHttpRequest&&"XMLHttpRequest"in Ue&&Bt(XMLHttpRequest.prototype,"send",TN);const t=this._options.eventTarget;t&&(Array.isArray(t)?t:SN).forEach(EN)}}as.__initStatic();function af(e){return function(...t){const n=t[0];return t[0]=Pa(n,{mechanism:{data:{function:pr(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function CN(e){return function(t){return e.apply(this,[Pa(t,{mechanism:{data:{function:"requestAnimationFrame",handler:pr(e)},handled:!1,type:"instrument"}})])}}function TN(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&Bt(n,o,function(i){const s={mechanism:{data:{function:o,handler:pr(i)},handled:!1,type:"instrument"}},l=Nu(i);return l&&(s.mechanism.data.handler=pr(l)),Pa(i,s)})}),e.apply(this,t)}}function EN(e){const t=Ue,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Bt(n,"addEventListener",function(r){return function(o,i,s){try{typeof i.handleEvent=="function"&&(i.handleEvent=Pa(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:pr(i),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[o,Pa(i,{mechanism:{data:{function:"addEventListener",handler:pr(i),target:e},handled:!1,type:"instrument"}}),s])}}),Bt(n,"removeEventListener",function(r){return function(o,i,s){const l=i;try{const u=l&&l.__sentry_wrapped__;u&&r.call(this,o,u,s)}catch{}return r.call(this,o,l,s)}}))}const xN="cause",PN=5;class os{static __initStatic(){this.id="LinkedErrors"}constructor(t={}){this.name=os.id,this._key=t.key||xN,this._limit=t.limit||PN}setupOnce(){}preprocessEvent(t,n,r){const o=r.getOptions();SP(am,o.stackParser,o.maxValueLength,this._key,this._limit,t,n)}}os.__initStatic();class is{static __initStatic(){this.id="HttpContext"}constructor(){this.name=is.id}setupOnce(){}preprocessEvent(t){if(!Ue.navigator&&!Ue.location&&!Ue.document)return;const n=t.request&&t.request.url||Ue.location&&Ue.location.href,{referrer:r}=Ue.document||{},{userAgent:o}=Ue.navigator||{},i={...t.request&&t.request.headers,...r&&{Referer:r},...o&&{"User-Agent":o}},s={...t.request,...n&&{url:n},headers:i};t.request=s}}is.__initStatic();class ss{static __initStatic(){this.id="Dedupe"}constructor(){this.name=ss.id}setupOnce(t,n){}processEvent(t){if(t.type)return t;try{if(IN(t,this._previousEvent))return vn&&ne.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return this._previousEvent=t}}ss.__initStatic();function IN(e,t){return t?!!(DN(e,t)||NN(e,t)):!1}function DN(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!um(e,t)||!lm(e,t))}function NN(e,t){const n=of(t),r=of(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!um(e,t)||!lm(e,t))}function lm(e,t){let n=sf(e),r=sf(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){const i=r[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function um(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function of(e){return e.exception&&e.exception.values&&e.exception.values[0]}function sf(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const Xo=1024;class ls{static __initStatic(){this.id="Breadcrumbs"}constructor(t){this.name=ls.id,this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){if(this.options.console&&VP(MN),this.options.dom&&Mh(BN(this.options.dom)),this.options.xhr&&Mu(RN),this.options.fetch&&Bu(AN),this.options.history&&Xi($N),this.options.sentry){const t=Ir();t&&t.on&&t.on("beforeSendEvent",ON)}}}ls.__initStatic();function ON(e){tt().addBreadcrumb({category:`sentry.${e.type==="transaction"?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:yr(e)},{event:e})}function BN(e){function t(n){let r,o=typeof e=="object"?e.serializeAttribute:void 0,i=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;i&&i>Xo&&(vn&&ne.warn(`\`dom.maxStringLength\` cannot exceed ${Xo}, but a value of ${i} was configured. Sentry will use ${Xo} instead.`),i=Xo),typeof o=="string"&&(o=[o]);try{const s=n.event;r=LN(s)?Sr(s.target,{keyAttrs:o,maxStringLength:i}):Sr(s,{keyAttrs:o,maxStringLength:i})}catch{r="<unknown>"}r.length!==0&&tt().addBreadcrumb({category:`ui.${n.name}`,message:r},{event:n.event,name:n.name,global:n.global})}return t}function MN(e){const t={category:"console",data:{arguments:e.args,logger:"console"},level:pI(e.level),message:Nd(e.args," ")};if(e.level==="assert")if(e.args[0]===!1)t.message=`Assertion failed: ${Nd(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);else return;tt().addBreadcrumb(t,{input:e.args,level:e.level})}function RN(e){const{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[br];if(!t||!n||!r)return;const{method:o,url:i,status_code:s,body:l}=r,u={method:o,url:i,status_code:s},c={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:n};tt().addBreadcrumb({category:"xhr",data:u,type:"http"},c)}function AN(e){const{startTimestamp:t,endTimestamp:n}=e;if(n&&!(e.fetchData.url.match(/sentry_key/)&&e.fetchData.method==="POST"))if(e.error){const r=e.fetchData,o={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};tt().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},o)}else{const r=e.response,o={...e.fetchData,status_code:r&&r.status},i={input:e.args,response:r,startTimestamp:t,endTimestamp:n};tt().addBreadcrumb({category:"fetch",data:o,type:"http"},i)}}function $N(e){let t=e.from,n=e.to;const r=Xs(Ue.location.href);let o=t?Xs(t):void 0;const i=Xs(n);(!o||!o.path)&&(o=r),r.protocol===i.protocol&&r.host===i.host&&(n=i.relative),r.protocol===o.protocol&&r.host===o.host&&(t=o.relative),tt().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}function LN(e){return!!e&&!!e.target}const cm=[new ns,new ts,new as,new ls,new La,new os,new ss,new is];function VN(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=cm),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),Ue.SENTRY_RELEASE&&Ue.SENTRY_RELEASE.id&&(e.release=Ue.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:$P(e.stackParser||vN),integrations:mD(e),transport:e.transport||(Rh()?QD:eN)};kD(KD,t),e.autoSessionTracking&&HN()}function FN(e={},t=tt()){if(!Ue.document){vn&&ne.error("Global document not defined in showReportDialog call");return}const{client:n,scope:r}=t.getStackTop(),o=e.dsn||n&&n.getDsn();if(!o){vn&&ne.error("DSN not configured for showReportDialog call");return}r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());const i=Ue.document.createElement("script");i.async=!0,i.crossOrigin="anonymous",i.src=pD(o,e),e.onLoad&&(i.onload=e.onLoad);const{onClose:s}=e;if(s){const u=c=>{if(c.data==="__sentry_reportdialog_closed__")try{s()}finally{Ue.removeEventListener("message",u)}};Ue.addEventListener("message",u)}const l=Ue.document.head||Ue.document.body;l?l.appendChild(i):vn&&ne.error("Not injecting report dialog. No injection point found in HTML")}function lf(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function HN(){if(typeof Ue.document>"u"){vn&&ne.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}const e=tt();e.captureSession&&(lf(e),Xi(({from:t,to:n})=>{t!==void 0&&t!==n&&lf(tt())}))}const yt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,lt=et;function UN(){lt&&lt.document?lt.document.addEventListener("visibilitychange",()=>{const e=No();if(lt.document.hidden&&e){const t="cancelled";yt&&ne.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}}):yt&&ne.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const ju=(e,t,n)=>{let r,o;return i=>{t.value>=0&&(i||n)&&(o=t.value-(r||0),(o||r===void 0)&&(r=t.value,t.delta=o,e(t)))}},zN=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,jN=()=>{const e=lt.performance.timing,t=lt.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},dm=()=>lt.__WEB_VITALS_POLYFILL__?lt.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||jN()):lt.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],fm=()=>{const e=dm();return e&&e.activationStart||0},Wu=(e,t)=>{const n=dm();let r="navigate";return n&&(lt.document.prerendering||fm()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:zN(),navigationType:r}},us=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(o=>{t(o.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},cs=(e,t)=>{const n=r=>{(r.type==="pagehide"||lt.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},WN=e=>{const t=Wu("CLS",0);let n,r=0,o=[];const i=l=>{l.forEach(u=>{if(!u.hadRecentInput){const c=o[0],f=o[o.length-1];r&&o.length!==0&&u.startTime-f.startTime<1e3&&u.startTime-c.startTime<5e3?(r+=u.value,o.push(u)):(r=u.value,o=[u]),r>t.value&&(t.value=r,t.entries=o,n&&n())}})},s=us("layout-shift",i);if(s){n=ju(e,t);const l=()=>{i(s.takeRecords()),n(!0)};return cs(l),l}};let li=-1;const qN=()=>lt.document.visibilityState==="hidden"&&!lt.document.prerendering?0:1/0,YN=()=>{cs(({timeStamp:e})=>{li=e},!0)},qu=()=>(li<0&&(li=qN(),YN()),{get firstHiddenTime(){return li}}),GN=e=>{const t=qu(),n=Wu("FID");let r;const o=l=>{l.startTime<t.firstHiddenTime&&(n.value=l.processingStart-l.startTime,n.entries.push(l),r(!0))},i=l=>{l.forEach(o)},s=us("first-input",i);r=ju(e,n),s&&cs(()=>{i(s.takeRecords()),s.disconnect()},!0)},uf={},KN=e=>{const t=qu(),n=Wu("LCP");let r;const o=s=>{const l=s[s.length-1];if(l){const u=Math.max(l.startTime-fm(),0);u<t.firstHiddenTime&&(n.value=u,n.entries=[l],r())}},i=us("largest-contentful-paint",o);if(i){r=ju(e,n);const s=()=>{uf[n.id]||(o(i.takeRecords()),i.disconnect(),uf[n.id]=!0,r(!0))};return["keydown","click"].forEach(l=>{addEventListener(l,s,{once:!0,capture:!0})}),cs(s,!0),s}},no={},Ei={};let pm,hm,mm;function XN(e){return Yu("cls",e,QN,pm)}function vm(e){return Yu("lcp",e,eO,mm)}function JN(e){return Yu("fid",e,ZN,hm)}function ds(e,t){return gm(e,t),Ei[e]||(tO(e),Ei[e]=!0),ym(e,t)}function fs(e,t){const n=no[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(o){yt&&ne.error(`Error while triggering instrumentation handler.
100
100
  Type: ${e}
101
101
  Name: ${pr(r)}
102
- Error:`,o)}}function JO(){jO(e=>{fs("cls",{metric:e}),pm=e})}function QO(){YO(e=>{fs("fid",{metric:e}),hm=e})}function ZO(){GO(e=>{fs("lcp",{metric:e}),mm=e})}function Yu(e,t,n,r){return gm(e,t),Ei[e]||(n(),Ei[e]=!0),r&&t({metric:r}),ym(e,t)}function eN(e){const t={};e==="event"&&(t.durationThreshold=0),us(e,n=>{fs(e,{entries:n})},t)}function gm(e,t){no[e]=no[e]||[],no[e].push(t)}function ym(e,t){return()=>{const n=no[e];if(!n)return;const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}function Zs(e){return typeof e=="number"&&isFinite(e)}function Ia(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const tN=2147483647;function It(e){return e/1e3}function bm(){return lt&&lt.addEventListener&&lt.performance}let cf=0,_t={},Bn,ro;function nN(){const e=bm();if(e&&In){e.mark&&lt.performance.mark("sentry-tracing-init");const t=sN(),n=oN(),r=iN();return()=>{t(),n(),r()}}return()=>{}}function rN(){ds("longtask",({entries:e})=>{for(const t of e){const n=Oo();if(!n)return;const r=It(In+t.startTime),o=It(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+o})}})}function aN(){ds("event",({entries:e})=>{for(const t of e){const n=Oo();if(!n)return;if(t.name==="click"){const r=It(In+t.startTime),o=It(t.duration);n.startChild({description:Sr(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+o})}}})}function oN(){return KO(({metric:e})=>{const t=e.entries.pop();t&&(yt&&ne.log("[Measurements] Adding CLS"),_t.cls={value:e.value,unit:""},ro=t)})}function iN(){return vm(({metric:e})=>{const t=e.entries.pop();t&&(yt&&ne.log("[Measurements] Adding LCP"),_t.lcp={value:e.value,unit:"millisecond"},Bn=t)})}function sN(){return XO(({metric:e})=>{const t=e.entries.pop();if(!t)return;const n=It(In),r=It(t.startTime);yt&&ne.log("[Measurements] Adding FID"),_t.fid={value:e.value,unit:"millisecond"},_t["mark.fid"]={value:n+r,unit:"second"}})}function lN(e){const t=bm();if(!t||!lt.performance.getEntries||!In)return;yt&&ne.log("[Tracing] Adding & adjusting spans using Performance API");const n=It(In),r=t.getEntries();let o,i;if(r.slice(cf).forEach(s=>{const l=It(s.startTime),u=It(s.duration);if(!(e.op==="navigation"&&n+l<e.startTimestamp))switch(s.entryType){case"navigation":{cN(e,s,n),o=n+It(s.responseStart),i=n+It(s.requestStart);break}case"mark":case"paint":case"measure":{uN(e,s,l,u,n);const c=qu(),f=s.startTime<c.firstHiddenTime;s.name==="first-paint"&&f&&(yt&&ne.log("[Measurements] Adding FP"),_t.fp={value:s.startTime,unit:"millisecond"}),s.name==="first-contentful-paint"&&f&&(yt&&ne.log("[Measurements] Adding FCP"),_t.fcp={value:s.startTime,unit:"millisecond"});break}case"resource":{const c=s.name.replace(lt.location.origin,"");fN(e,s,c,l,u,n);break}}}),cf=Math.max(r.length-1,0),pN(e),e.op==="pageload"){typeof o=="number"&&(yt&&ne.log("[Measurements] Adding TTFB"),_t.ttfb={value:(o-e.startTimestamp)*1e3,unit:"millisecond"},typeof i=="number"&&i<=o&&(_t["ttfb.requestTime"]={value:(o-i)*1e3,unit:"millisecond"})),["fcp","fp","lcp"].forEach(l=>{if(!_t[l]||n>=e.startTimestamp)return;const u=_t[l].value,c=n+It(u),f=Math.abs((c-e.startTimestamp)*1e3),p=f-u;yt&&ne.log(`[Measurements] Normalized ${l} from ${u} to ${f} (${p})`),_t[l].value=f});const s=_t["mark.fid"];s&&_t.fid&&(Ia(e,{description:"first input delay",endTimestamp:s.value+It(_t.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:s.value}),delete _t["mark.fid"]),"fcp"in _t||delete _t.cls,Object.keys(_t).forEach(l=>{e.setMeasurement(l,_t[l].value,_t[l].unit)}),hN(e)}Bn=void 0,ro=void 0,_t={}}function uN(e,t,n,r,o){const i=o+n,s=i+r;return Ia(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:i}),i}function cN(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Jo(e,t,r,n)}),Jo(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),Jo(e,t,"fetch",n,"cache","domainLookupStart"),Jo(e,t,"domainLookup",n,"DNS"),dN(e,t,n)}function Jo(e,t,n,r,o,i){const s=i?t[i]:t[`${n}End`],l=t[`${n}Start`];!l||!s||Ia(e,{op:"browser",origin:"auto.browser.browser.metrics",description:o||n,startTimestamp:r+It(l),endTimestamp:r+It(s)})}function dN(e,t,n){Ia(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+It(t.requestStart),endTimestamp:n+It(t.responseEnd)}),Ia(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+It(t.responseStart),endTimestamp:n+It(t.responseEnd)})}function fN(e,t,n,r,o,i){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s={};el(s,t,"transferSize","http.response_transfer_size"),el(s,t,"encodedBodySize","http.response_content_length"),el(s,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(s["resource.render_blocking_status"]=t.renderBlockingStatus);const l=i+r,u=l+o;Ia(e,{description:n,endTimestamp:u,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:s})}function pN(e){const t=lt.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),Zs(n.rtt)&&(_t["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Zs(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),Zs(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function hN(e){Bn&&(yt&&ne.log("[Measurements] Adding LCP Data"),Bn.element&&e.setTag("lcp.element",Sr(Bn.element)),Bn.id&&e.setTag("lcp.id",Bn.id),Bn.url&&e.setTag("lcp.url",Bn.url.trim().slice(0,200)),e.setTag("lcp.size",Bn.size)),ro&&ro.sources&&(yt&&ne.log("[Measurements] Adding CLS Data"),ro.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,Sr(t.node))))}function el(e,t,n,r){const o=t[n];o!=null&&o<tN&&(e[r]=o)}function mN(e,t,n,r,o="auto.http.browser"){if(!es()||!e.fetchData)return;const i=t(e.fetchData.url);if(e.endTimestamp&&i){const m=e.fetchData.__span;if(!m)return;const y=r[m];if(y){if(e.response){y.setHttpStatus(e.response.status);const k=e.response&&e.response.headers&&e.response.headers.get("content-length");if(k){const _=parseInt(k);_>0&&y.setData("http.response_content_length",_)}}else e.error&&y.setStatus("internal_error");y.finish(),delete r[m]}return}const s=tt(),l=s.getScope(),u=s.getClient(),c=l.getSpan(),{method:f,url:p}=e.fetchData,h=i&&c?c.startChild({data:{url:p,type:"fetch","http.method":f},description:`${f} ${p}`,op:"http.client",origin:o}):void 0;if(h&&(e.fetchData.__span=h.spanId,r[h.spanId]=h),n(e.fetchData.url)&&u){const m=e.args[0];e.args[1]=e.args[1]||{};const y=e.args[1];y.headers=vN(m,u,l,y,h)}return h}function vN(e,t,n,r,o){const i=o||n.getSpan(),s=i&&i.transaction,{traceId:l,sampled:u,dsc:c}=n.getPropagationContext(),f=i?i.toTraceparent():Au(l,void 0,u),p=s?s.getDynamicSamplingContext():c||Qi(l,t,n),h=Vl(p),m=typeof Request<"u"&&fr(e,Request)?e.headers:r.headers;if(m)if(typeof Headers<"u"&&fr(m,Headers)){const y=new Headers(m);return y.append("sentry-trace",f),h&&y.append(Ll,h),y}else if(Array.isArray(m)){const y=[...m,["sentry-trace",f]];return h&&y.push([Ll,h]),y}else{const y="baggage"in m?m.baggage:void 0,k=[];return Array.isArray(y)?k.push(...y):y&&k.push(y),h&&k.push(h),{...m,"sentry-trace":f,baggage:k.length>0?k.join(","):void 0}}else return{"sentry-trace":f,baggage:h}}const Wl=["localhost",/^\/(?!\/)/],ql={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Wl,tracePropagationTargets:Wl};function gN(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s}={traceFetch:ql.traceFetch,traceXHR:ql.traceXHR,...e},l=typeof i=="function"?i:f=>!0,u=f=>wN(f,r||o),c={};t&&Bu(f=>{const p=mN(f,l,u,c);s&&p&&df(p)}),n&&Mu(f=>{const p=kN(f,l,u,c);s&&p&&df(p)})}function yN(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function df(e){const t=e.data.url;if(!t)return;const n=ds("resource",({entries:r})=>{r.forEach(o=>{yN(o)&&o.name.endsWith(t)&&(_N(o).forEach(s=>e.setData(...s)),setTimeout(n))})})}function bN(e){let t="unknown",n="unknown",r="";for(const o of e){if(o==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}function On(e=0){return((In||performance.timeOrigin)+e)/1e3}function _N(e){const{name:t,version:n}=bN(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),In?[...r,["http.request.redirect_start",On(e.redirectStart)],["http.request.fetch_start",On(e.fetchStart)],["http.request.domain_lookup_start",On(e.domainLookupStart)],["http.request.domain_lookup_end",On(e.domainLookupEnd)],["http.request.connect_start",On(e.connectStart)],["http.request.secure_connection_start",On(e.secureConnectionStart)],["http.request.connection_end",On(e.connectEnd)],["http.request.request_start",On(e.requestStart)],["http.request.response_start",On(e.responseStart)],["http.request.response_end",On(e.responseEnd)]]:r}function wN(e,t){return Ra(e,t||Wl)}function kN(e,t,n,r){const o=e.xhr,i=o&&o[br];if(!es()||!o||o.__sentry_own_request__||!i)return;const s=t(i.url);if(e.endTimestamp&&s){const p=o.__sentry_xhr_span_id__;if(!p)return;const h=r[p];h&&i.status_code!==void 0&&(h.setHttpStatus(i.status_code),h.finish(),delete r[p]);return}const l=tt(),u=l.getScope(),c=u.getSpan(),f=s&&c?c.startChild({data:{type:"xhr","http.method":i.method,url:i.url},description:`${i.method} ${i.url}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(f&&(o.__sentry_xhr_span_id__=f.spanId,r[o.__sentry_xhr_span_id__]=f),o.setRequestHeader&&n(i.url))if(f){const p=f&&f.transaction,h=p&&p.getDynamicSamplingContext(),m=Vl(h);ff(o,f.toTraceparent(),m)}else{const p=l.getClient(),{traceId:h,sampled:m,dsc:y}=u.getPropagationContext(),k=Au(h,void 0,m),_=y||(p?Qi(h,p,u):void 0),w=Vl(_);ff(o,k,w)}return f}function ff(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(Ll,n)}catch{}}function SN(e,t=!0,n=!0){if(!lt||!lt.location){yt&&ne.warn("Could not initialize routing instrumentation due to invalid location");return}let r=lt.location.href,o;t&&(o=e({name:lt.location.pathname,startTimestamp:In?In/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&Xi(({to:i,from:s})=>{if(s===void 0&&r&&r.indexOf(i)!==-1){r=void 0;return}s!==i&&(r=void 0,o&&(yt&&ne.log(`[Tracing] Finishing current transaction with op: ${o.op}`),o.finish()),o=e({name:lt.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const CN="BrowserTracing",TN={...si,markBackgroundTransactions:!0,routingInstrumentation:SN,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...ql};class EN{constructor(t){this.name=CN,this._hasSetTracePropagationTargets=!1,aD(),yt&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...TN,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=nN(),this.options.enableLongTask&&rN(),this.options._experiments.enableInteractions&&aN()}setupOnce(t,n){this._getCurrentHub=n;const o=n().getClient(),i=o&&o.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:l,startTransactionOnPageLoad:u,markBackgroundTransactions:c,traceFetch:f,traceXHR:p,shouldCreateSpanForRequest:h,enableHTTPTimings:m,_experiments:y}=this.options,k=i&&i.tracePropagationTargets,_=k||this.options.tracePropagationTargets;yt&&this._hasSetTracePropagationTargets&&k&&ne.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(w=>{const T=this._createRouteTransaction(w);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(T,w,n),T},u,l),c&&HO(),y.enableInteractions&&this._registerInteractionListener(),gN({traceFetch:f,traceXHR:p,tracePropagationTargets:_,shouldCreateSpanForRequest:h,enableHTTPTimings:m})}_createRouteTransaction(t){if(!this._getCurrentHub){yt&&ne.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:o,finalTimeout:i,heartbeatInterval:s}=this.options,l=t.op==="pageload",u=l?pf("sentry-trace"):"",c=l?pf("baggage"):"",{traceparentData:f,dynamicSamplingContext:p,propagationContext:h}=wI(u,c),m={...t,...f,metadata:{...t.metadata,dynamicSamplingContext:f&&!p?{}:p},trimEnd:!0},y=typeof r=="function"?r(m):m,k=y===void 0?{...m,sampled:!1}:y;k.metadata=k.name!==m.name?{...k.metadata,source:"custom"}:k.metadata,this._latestRouteName=k.name,this._latestRouteSource=k.metadata&&k.metadata.source,k.sampled===!1&&yt&&ne.log(`[Tracing] Will not send ${k.op} transaction because of beforeNavigate.`),yt&&ne.log(`[Tracing] Starting ${k.op} transaction on scope`);const{location:_}=lt,w=Qd(n,k,o,i,!0,{location:_},s),T=n.getScope();return l&&f?T.setPropagationContext(h):T.setPropagationContext({traceId:w.traceId,spanId:w.spanId,parentSpanId:w.parentSpanId,sampled:w.sampled}),w.registerBeforeFinishCallback(N=>{this._collectWebVitals(),lN(N)}),w}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:o,heartbeatInterval:i}=this.options,s="ui.action.click",l=Oo();if(l&&l.op&&["navigation","pageload"].includes(l.op)){yt&&ne.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.finish(),t=void 0),!this._getCurrentHub){yt&&ne.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){yt&&ne.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const u=this._getCurrentHub(),{location:c}=lt,f={name:this._latestRouteName,op:s,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};t=Qd(u,f,r,o,!0,{location:c},i)};["click"].forEach(r=>{addEventListener(r,n,{once:!1,capture:!0})})}}function pf(e){const t=xP(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}const dt=et,Gu="sentryReplaySession",xN="replay_event",Ku="Unable to send Replay",PN=3e5,IN=9e5,DN=5e3,ON=5500,NN=6e4,BN=5e3,MN=3,hf=15e4,Qo=5e3,RN=3e3,AN=300,Xu=2e7,$N=4999,LN=15e3,mf=36e5;var Dt;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Dt||(Dt={}));function VN(e){return e.nodeType===e.ELEMENT_NODE}function ao(e){const t=e==null?void 0:e.host;return(t==null?void 0:t.shadowRoot)===e}function oo(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function FN(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}function HN(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function xi(e){try{const t=e.rules||e.cssRules;return t?FN(Array.from(t,_m).join("")):null}catch{return null}}function _m(e){let t;if(zN(e))try{t=xi(e.styleSheet)||HN(e)}catch{}else if(jN(e)&&e.selectorText.includes(":"))return UN(e.cssText);return t||e.cssText}function UN(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function zN(e){return"styleSheet"in e}function jN(e){return"selectorText"in e}class wm{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){var n;if(!t)return-1;const r=(n=this.getMeta(t))===null||n===void 0?void 0:n.id;return r??-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function WN(){return new wm}function ps({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function ko({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function Da(e){return e.toLowerCase()}function Yl(e){return e.toUpperCase()}const vf="__rrweb_original__";function qN(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let o=0;o<e.height;o+=n){const i=t.getImageData,s=vf in i?i[vf]:i;if(new Uint32Array(s.call(t,r,o,Math.min(n,e.width-r),Math.min(n,e.height-o)).data.buffer).some(u=>u!==0))return!1}return!0}function Ju(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Da(t):null}function Pi(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}let YN=1;const GN=new RegExp("[^a-z0-9-_:]"),So=-2;function Qu(){return YN++}function KN(e){if(e instanceof HTMLFormElement)return"form";const t=Da(e.tagName);return GN.test(t)?"div":t}function XN(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let aa,gf;const JN=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,QN=/^(?:[a-z+]+:)?\/\//i,ZN=/^www\..*/i,eB=/^(data:)([^,]*),(.*)/i;function Ii(e,t){return(e||"").replace(JN,(n,r,o,i,s,l)=>{const u=o||s||l,c=r||i||"";if(!u)return n;if(QN.test(u)||ZN.test(u))return`url(${c}${u}${c})`;if(eB.test(u))return`url(${c}${u}${c})`;if(u[0]==="/")return`url(${c}${XN(t)+u}${c})`;const f=t.split("/"),p=u.split("/");f.pop();for(const h of p)h!=="."&&(h===".."?f.pop():f.push(h));return`url(${c}${f.join("/")}${c})`})}const tB=/^[^ \t\n\r\u000c]+/,nB=/^[, \t\n\r\u000c]+/;function rB(e,t){if(t.trim()==="")return t;let n=0;function r(i){let s;const l=i.exec(t.substring(n));return l?(s=l[0],n+=s.length,s):""}const o=[];for(;r(nB),!(n>=t.length);){let i=r(tB);if(i.slice(-1)===",")i=ua(e,i.substring(0,i.length-1)),o.push(i);else{let s="";i=ua(e,i);let l=!1;for(;;){const u=t.charAt(n);if(u===""){o.push((i+s).trim());break}else if(l)u===")"&&(l=!1);else if(u===","){n+=1,o.push((i+s).trim());break}else u==="("&&(l=!0);s+=u,n+=1}}}return o.join(", ")}function ua(e,t){if(!t||t.trim()==="")return t;const n=e.createElement("a");return n.href=t,n.href}function aB(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Zu(){const e=document.createElement("a");return e.href="",e.href}function km(e,t,n,r,o,i){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?ua(e,r):n==="srcset"?rB(e,r):n==="style"?Ii(r,Zu()):t==="object"&&n==="data"?ua(e,r):typeof i=="function"?i(n,r,o):r)}function Sm(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function oB(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let o=e.classList.length;o--;){const i=e.classList[o];if(t.test(i))return!0}if(n)return e.matches(n)}catch{}return!1}function iB(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Hr(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Hr(e.parentNode,t,n,r+1)}function ca(e,t){return n=>{const r=n;if(r===null)return!1;if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(iB(r,e))return!0}return!!(t&&r.matches(t))}}function Oa(e,t,n,r,o,i){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(s===null)return!1;let l=-1,u=-1;if(i){if(u=Hr(s,ca(r,o)),u<0)return!0;l=Hr(s,ca(t,n),u>=0?u:1/0)}else{if(l=Hr(s,ca(t,n)),l<0)return!1;u=Hr(s,ca(r,o),l>=0?l:1/0)}return l>=0?u>=0?l<=u:!0:u>=0?!1:!!i}catch{}return!!i}function sB(e,t,n){const r=e.contentWindow;if(!r)return;let o=!1,i;try{i=r.document.readyState}catch{return}if(i!=="complete"){const l=setTimeout(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{clearTimeout(l),o=!0,t()});return}const s="about:blank";if(r.location.href!==s||e.src===s||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function lB(e,t,n){let r=!1,o;try{o=e.sheet}catch{return}if(o)return;const i=setTimeout(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{clearTimeout(i),r=!0,t()})}function uB(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskAttributeFn:u,maskTextClass:c,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:y={},maskTextFn:k,maskInputFn:_,dataURLOptions:w={},inlineImages:T,recordCanvas:N,keepIframeSrcFn:b,newlyAddedElement:B=!1}=t,C=cB(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Dt.Document,childNodes:[],compatMode:e.compatMode}:{type:Dt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Dt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return fB(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:m,maskAttributeFn:u,maskInputOptions:y,maskInputFn:_,dataURLOptions:w,inlineImages:T,recordCanvas:N,keepIframeSrcFn:b,newlyAddedElement:B,rootId:C,maskAllText:l,maskTextClass:c,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h});case e.TEXT_NODE:return dB(e,{maskAllText:l,maskTextClass:c,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,maskTextFn:k,maskInputOptions:y,maskInputFn:_,rootId:C});case e.CDATA_SECTION_NODE:return{type:Dt.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:Dt.Comment,textContent:e.textContent||"",rootId:C};default:return!1}}function cB(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function dB(e,t){var n;const{maskAllText:r,maskTextClass:o,unmaskTextClass:i,maskTextSelector:s,unmaskTextSelector:l,maskTextFn:u,maskInputOptions:c,maskInputFn:f,rootId:p}=t,h=e.parentNode&&e.parentNode.tagName;let m=e.textContent;const y=h==="STYLE"?!0:void 0,k=h==="SCRIPT"?!0:void 0,_=h==="TEXTAREA"?!0:void 0;if(y&&m){try{e.nextSibling||e.previousSibling||!((n=e.parentNode.sheet)===null||n===void 0)&&n.cssRules&&(m=xi(e.parentNode.sheet))}catch(T){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${T}`,e)}m=Ii(m,Zu())}k&&(m="SCRIPT_PLACEHOLDER");const w=Oa(e,o,s,i,l,r);if(!y&&!k&&!_&&m&&w&&(m=u?u(m):m.replace(/[\S]/g,"*")),_&&m&&(c.textarea||w)&&(m=f?f(m,e.parentNode):m.replace(/[\S]/g,"*")),h==="OPTION"&&m){const T=ps({type:null,tagName:h,maskInputOptions:c});m=ko({isMasked:Oa(e,o,s,i,l,T),element:e,value:m,maskInputFn:f})}return{type:Dt.Text,textContent:m||"",isStyle:y,rootId:p}}function fB(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:l={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:f={},inlineImages:p,recordCanvas:h,keepIframeSrcFn:m,newlyAddedElement:y=!1,rootId:k,maskAllText:_,maskTextClass:w,unmaskTextClass:T,maskTextSelector:N,unmaskTextSelector:b}=t,B=oB(e,r,o,i),C=KN(e);let I={};const F=e.attributes.length;for(let W=0;W<F;W++){const M=e.attributes[W];Sm(C,M.name,M.value)||(I[M.name]=km(n,C,Da(M.name),M.value,e,u))}if(C==="link"&&s){const W=Array.from(n.styleSheets).find(D=>D.href===e.href);let M=null;W&&(M=xi(W)),M&&(delete I.rel,delete I.href,I._cssText=Ii(M,W.href))}if(C==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const W=xi(e.sheet);W&&(I._cssText=Ii(W,Zu()))}if(C==="input"||C==="textarea"||C==="select"||C==="option"){const W=e,M=Ju(W),D=Pi(W,Yl(C),M),$=W.checked;if(M!=="submit"&&M!=="button"&&D){const Y=Oa(W,w,N,T,b,ps({type:M,tagName:Yl(C),maskInputOptions:l}));I.value=ko({isMasked:Y,element:W,value:D,maskInputFn:c})}$&&(I.checked=$)}if(C==="option"&&(e.selected&&!l.select?I.selected=!0:delete I.selected),C==="canvas"&&h){if(e.__context==="2d")qN(e)||(I.rr_dataURL=e.toDataURL(f.type,f.quality));else if(!("__context"in e)){const W=e.toDataURL(f.type,f.quality),M=document.createElement("canvas");M.width=e.width,M.height=e.height;const D=M.toDataURL(f.type,f.quality);W!==D&&(I.rr_dataURL=W)}}if(C==="img"&&p){aa||(aa=n.createElement("canvas"),gf=aa.getContext("2d"));const W=e,M=W.crossOrigin;W.crossOrigin="anonymous";const D=()=>{W.removeEventListener("load",D);try{aa.width=W.naturalWidth,aa.height=W.naturalHeight,gf.drawImage(W,0,0),I.rr_dataURL=aa.toDataURL(f.type,f.quality)}catch($){console.warn(`Cannot inline img src=${W.currentSrc}! Error: ${$}`)}M?I.crossOrigin=M:W.removeAttribute("crossorigin")};W.complete&&W.naturalWidth!==0?D():W.addEventListener("load",D)}if((C==="audio"||C==="video")&&(I.rr_mediaState=e.paused?"paused":"played",I.rr_mediaCurrentTime=e.currentTime),y||(e.scrollLeft&&(I.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(I.rr_scrollTop=e.scrollTop)),B){const{width:W,height:M}=e.getBoundingClientRect();I={class:I.class,rr_width:`${W}px`,rr_height:`${M}px`}}C==="iframe"&&!m(I.src)&&(e.contentDocument||(I.rr_src=I.src),delete I.src);let q;try{customElements.get(C)&&(q=!0)}catch{}return{type:Dt.Element,tagName:C,attributes:I,childNodes:[],isSVG:aB(e)||void 0,needBlock:B,rootId:k,isCustom:q}}function ut(e){return e==null?"":e.toLowerCase()}function pB(e,t){if(t.comment&&e.type===Dt.Comment)return!0;if(e.type===Dt.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ut(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ut(e.attributes.name)==="application-name"||ut(e.attributes.rel)==="icon"||ut(e.attributes.rel)==="apple-touch-icon"||ut(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&ut(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ut(e.attributes.property).match(/^(og|twitter|fb):/)||ut(e.attributes.name).match(/^(og|twitter):/)||ut(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(ut(e.attributes.name)==="robots"||ut(e.attributes.name)==="googlebot"||ut(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(ut(e.attributes.name)==="author"||ut(e.attributes.name)==="generator"||ut(e.attributes.name)==="framework"||ut(e.attributes.name)==="publisher"||ut(e.attributes.name)==="progid"||ut(e.attributes.property).match(/^article:/)||ut(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(ut(e.attributes.name)==="google-site-verification"||ut(e.attributes.name)==="yandex-verification"||ut(e.attributes.name)==="csrf-token"||ut(e.attributes.name)==="p:domain_verify"||ut(e.attributes.name)==="verify-v1"||ut(e.attributes.name)==="verification"||ut(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function da(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:f,unmaskTextSelector:p,skipChild:h=!1,inlineStylesheet:m=!0,maskInputOptions:y={},maskAttributeFn:k,maskTextFn:_,maskInputFn:w,slimDOMOptions:T,dataURLOptions:N={},inlineImages:b=!1,recordCanvas:B=!1,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:F=5e3,onStylesheetLoad:q,stylesheetLoadTimeout:W=5e3,keepIframeSrcFn:M=()=>!1,newlyAddedElement:D=!1}=t;let{preserveWhiteSpace:$=!0}=t;const Y=uB(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:l,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:y,maskAttributeFn:k,maskTextFn:_,maskInputFn:w,dataURLOptions:N,inlineImages:b,recordCanvas:B,keepIframeSrcFn:M,newlyAddedElement:D});if(!Y)return console.warn(e,"not serialized"),null;let X;r.hasNode(e)?X=r.getId(e):pB(Y,T)||!$&&Y.type===Dt.Text&&!Y.isStyle&&!Y.textContent.replace(/^\s+|\s+$/gm,"").length?X=So:X=Qu();const K=Object.assign(Y,{id:X});if(r.add(e,K),X===So)return null;C&&C(e);let j=!h;if(K.type===Dt.Element){j=j&&!K.needBlock,delete K.needBlock;const U=e.shadowRoot;U&&oo(U)&&(K.isShadowHost=!0)}if((K.type===Dt.Document||K.type===Dt.Element)&&j){T.headWhitespace&&K.type===Dt.Element&&K.tagName==="head"&&($=!1);const U={doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:l,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:f,unmaskTextSelector:p,skipChild:h,inlineStylesheet:m,maskInputOptions:y,maskAttributeFn:k,maskTextFn:_,maskInputFn:w,slimDOMOptions:T,dataURLOptions:N,inlineImages:b,recordCanvas:B,preserveWhiteSpace:$,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:F,onStylesheetLoad:q,stylesheetLoadTimeout:W,keepIframeSrcFn:M};for(const S of Array.from(e.childNodes)){const H=da(S,U);H&&K.childNodes.push(H)}if(VN(e)&&e.shadowRoot)for(const S of Array.from(e.shadowRoot.childNodes)){const H=da(S,U);H&&(oo(e.shadowRoot)&&(H.isShadow=!0),K.childNodes.push(H))}}return e.parentNode&&ao(e.parentNode)&&oo(e.parentNode)&&(K.isShadow=!0),K.type===Dt.Element&&K.tagName==="iframe"&&sB(e,()=>{const U=e.contentDocument;if(U&&I){const S=da(U,{doc:U,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:f,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:m,maskInputOptions:y,maskAttributeFn:k,maskTextFn:_,maskInputFn:w,slimDOMOptions:T,dataURLOptions:N,inlineImages:b,recordCanvas:B,preserveWhiteSpace:$,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:F,onStylesheetLoad:q,stylesheetLoadTimeout:W,keepIframeSrcFn:M});S&&I(e,S)}},F),K.type===Dt.Element&&K.tagName==="link"&&K.attributes.rel==="stylesheet"&&lB(e,()=>{if(q){const U=da(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:f,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:m,maskInputOptions:y,maskAttributeFn:k,maskTextFn:_,maskInputFn:w,slimDOMOptions:T,dataURLOptions:N,inlineImages:b,recordCanvas:B,preserveWhiteSpace:$,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:F,onStylesheetLoad:q,stylesheetLoadTimeout:W,keepIframeSrcFn:M});U&&q(e,U)}},W),K}function hB(e,t){const{mirror:n=new wm,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:l="rr-mask",unmaskTextClass:u=null,maskTextSelector:c=null,unmaskTextSelector:f=null,inlineStylesheet:p=!0,inlineImages:h=!1,recordCanvas:m=!1,maskAllInputs:y=!1,maskAttributeFn:k,maskTextFn:_,maskInputFn:w,slimDOM:T=!1,dataURLOptions:N,preserveWhiteSpace:b,onSerialize:B,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:F,stylesheetLoadTimeout:q,keepIframeSrcFn:W=()=>!1}=t||{};return da(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:y===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:y===!1?{}:y,maskAttributeFn:k,maskTextFn:_,maskInputFn:w,slimDOMOptions:T===!0||T==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:T==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:T===!1?{}:T,dataURLOptions:N,inlineImages:h,recordCanvas:m,preserveWhiteSpace:b,onSerialize:B,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:F,stylesheetLoadTimeout:q,keepIframeSrcFn:W,newlyAddedElement:!1})}function tn(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const ia=`Please stop import mirror directly. Instead of that,\r
102
+ Error:`,o)}}function QN(){WN(e=>{fs("cls",{metric:e}),pm=e})}function ZN(){GN(e=>{fs("fid",{metric:e}),hm=e})}function eO(){KN(e=>{fs("lcp",{metric:e}),mm=e})}function Yu(e,t,n,r){return gm(e,t),Ei[e]||(n(),Ei[e]=!0),r&&t({metric:r}),ym(e,t)}function tO(e){const t={};e==="event"&&(t.durationThreshold=0),us(e,n=>{fs(e,{entries:n})},t)}function gm(e,t){no[e]=no[e]||[],no[e].push(t)}function ym(e,t){return()=>{const n=no[e];if(!n)return;const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}function Zs(e){return typeof e=="number"&&isFinite(e)}function Ia(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const nO=2147483647;function It(e){return e/1e3}function bm(){return lt&&lt.addEventListener&&lt.performance}let cf=0,_t={},Bn,ro;function rO(){const e=bm();if(e&&In){e.mark&&lt.performance.mark("sentry-tracing-init");const t=lO(),n=iO(),r=sO();return()=>{t(),n(),r()}}return()=>{}}function aO(){ds("longtask",({entries:e})=>{for(const t of e){const n=No();if(!n)return;const r=It(In+t.startTime),o=It(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+o})}})}function oO(){ds("event",({entries:e})=>{for(const t of e){const n=No();if(!n)return;if(t.name==="click"){const r=It(In+t.startTime),o=It(t.duration);n.startChild({description:Sr(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+o})}}})}function iO(){return XN(({metric:e})=>{const t=e.entries.pop();t&&(yt&&ne.log("[Measurements] Adding CLS"),_t.cls={value:e.value,unit:""},ro=t)})}function sO(){return vm(({metric:e})=>{const t=e.entries.pop();t&&(yt&&ne.log("[Measurements] Adding LCP"),_t.lcp={value:e.value,unit:"millisecond"},Bn=t)})}function lO(){return JN(({metric:e})=>{const t=e.entries.pop();if(!t)return;const n=It(In),r=It(t.startTime);yt&&ne.log("[Measurements] Adding FID"),_t.fid={value:e.value,unit:"millisecond"},_t["mark.fid"]={value:n+r,unit:"second"}})}function uO(e){const t=bm();if(!t||!lt.performance.getEntries||!In)return;yt&&ne.log("[Tracing] Adding & adjusting spans using Performance API");const n=It(In),r=t.getEntries();let o,i;if(r.slice(cf).forEach(s=>{const l=It(s.startTime),u=It(s.duration);if(!(e.op==="navigation"&&n+l<e.startTimestamp))switch(s.entryType){case"navigation":{dO(e,s,n),o=n+It(s.responseStart),i=n+It(s.requestStart);break}case"mark":case"paint":case"measure":{cO(e,s,l,u,n);const c=qu(),f=s.startTime<c.firstHiddenTime;s.name==="first-paint"&&f&&(yt&&ne.log("[Measurements] Adding FP"),_t.fp={value:s.startTime,unit:"millisecond"}),s.name==="first-contentful-paint"&&f&&(yt&&ne.log("[Measurements] Adding FCP"),_t.fcp={value:s.startTime,unit:"millisecond"});break}case"resource":{const c=s.name.replace(lt.location.origin,"");pO(e,s,c,l,u,n);break}}}),cf=Math.max(r.length-1,0),hO(e),e.op==="pageload"){typeof o=="number"&&(yt&&ne.log("[Measurements] Adding TTFB"),_t.ttfb={value:(o-e.startTimestamp)*1e3,unit:"millisecond"},typeof i=="number"&&i<=o&&(_t["ttfb.requestTime"]={value:(o-i)*1e3,unit:"millisecond"})),["fcp","fp","lcp"].forEach(l=>{if(!_t[l]||n>=e.startTimestamp)return;const u=_t[l].value,c=n+It(u),f=Math.abs((c-e.startTimestamp)*1e3),p=f-u;yt&&ne.log(`[Measurements] Normalized ${l} from ${u} to ${f} (${p})`),_t[l].value=f});const s=_t["mark.fid"];s&&_t.fid&&(Ia(e,{description:"first input delay",endTimestamp:s.value+It(_t.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:s.value}),delete _t["mark.fid"]),"fcp"in _t||delete _t.cls,Object.keys(_t).forEach(l=>{e.setMeasurement(l,_t[l].value,_t[l].unit)}),mO(e)}Bn=void 0,ro=void 0,_t={}}function cO(e,t,n,r,o){const i=o+n,s=i+r;return Ia(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:i}),i}function dO(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Jo(e,t,r,n)}),Jo(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),Jo(e,t,"fetch",n,"cache","domainLookupStart"),Jo(e,t,"domainLookup",n,"DNS"),fO(e,t,n)}function Jo(e,t,n,r,o,i){const s=i?t[i]:t[`${n}End`],l=t[`${n}Start`];!l||!s||Ia(e,{op:"browser",origin:"auto.browser.browser.metrics",description:o||n,startTimestamp:r+It(l),endTimestamp:r+It(s)})}function fO(e,t,n){Ia(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+It(t.requestStart),endTimestamp:n+It(t.responseEnd)}),Ia(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+It(t.responseStart),endTimestamp:n+It(t.responseEnd)})}function pO(e,t,n,r,o,i){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s={};el(s,t,"transferSize","http.response_transfer_size"),el(s,t,"encodedBodySize","http.response_content_length"),el(s,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(s["resource.render_blocking_status"]=t.renderBlockingStatus);const l=i+r,u=l+o;Ia(e,{description:n,endTimestamp:u,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:s})}function hO(e){const t=lt.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),Zs(n.rtt)&&(_t["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Zs(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),Zs(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function mO(e){Bn&&(yt&&ne.log("[Measurements] Adding LCP Data"),Bn.element&&e.setTag("lcp.element",Sr(Bn.element)),Bn.id&&e.setTag("lcp.id",Bn.id),Bn.url&&e.setTag("lcp.url",Bn.url.trim().slice(0,200)),e.setTag("lcp.size",Bn.size)),ro&&ro.sources&&(yt&&ne.log("[Measurements] Adding CLS Data"),ro.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,Sr(t.node))))}function el(e,t,n,r){const o=t[n];o!=null&&o<nO&&(e[r]=o)}function vO(e,t,n,r,o="auto.http.browser"){if(!es()||!e.fetchData)return;const i=t(e.fetchData.url);if(e.endTimestamp&&i){const m=e.fetchData.__span;if(!m)return;const y=r[m];if(y){if(e.response){y.setHttpStatus(e.response.status);const k=e.response&&e.response.headers&&e.response.headers.get("content-length");if(k){const b=parseInt(k);b>0&&y.setData("http.response_content_length",b)}}else e.error&&y.setStatus("internal_error");y.finish(),delete r[m]}return}const s=tt(),l=s.getScope(),u=s.getClient(),c=l.getSpan(),{method:f,url:p}=e.fetchData,h=i&&c?c.startChild({data:{url:p,type:"fetch","http.method":f},description:`${f} ${p}`,op:"http.client",origin:o}):void 0;if(h&&(e.fetchData.__span=h.spanId,r[h.spanId]=h),n(e.fetchData.url)&&u){const m=e.args[0];e.args[1]=e.args[1]||{};const y=e.args[1];y.headers=gO(m,u,l,y,h)}return h}function gO(e,t,n,r,o){const i=o||n.getSpan(),s=i&&i.transaction,{traceId:l,sampled:u,dsc:c}=n.getPropagationContext(),f=i?i.toTraceparent():Au(l,void 0,u),p=s?s.getDynamicSamplingContext():c||Qi(l,t,n),h=Vl(p),m=typeof Request<"u"&&fr(e,Request)?e.headers:r.headers;if(m)if(typeof Headers<"u"&&fr(m,Headers)){const y=new Headers(m);return y.append("sentry-trace",f),h&&y.append(Ll,h),y}else if(Array.isArray(m)){const y=[...m,["sentry-trace",f]];return h&&y.push([Ll,h]),y}else{const y="baggage"in m?m.baggage:void 0,k=[];return Array.isArray(y)?k.push(...y):y&&k.push(y),h&&k.push(h),{...m,"sentry-trace":f,baggage:k.length>0?k.join(","):void 0}}else return{"sentry-trace":f,baggage:h}}const Wl=["localhost",/^\/(?!\/)/],ql={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Wl,tracePropagationTargets:Wl};function yO(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s}={traceFetch:ql.traceFetch,traceXHR:ql.traceXHR,...e},l=typeof i=="function"?i:f=>!0,u=f=>kO(f,r||o),c={};t&&Bu(f=>{const p=vO(f,l,u,c);s&&p&&df(p)}),n&&Mu(f=>{const p=SO(f,l,u,c);s&&p&&df(p)})}function bO(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function df(e){const t=e.data.url;if(!t)return;const n=ds("resource",({entries:r})=>{r.forEach(o=>{bO(o)&&o.name.endsWith(t)&&(wO(o).forEach(s=>e.setData(...s)),setTimeout(n))})})}function _O(e){let t="unknown",n="unknown",r="";for(const o of e){if(o==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}function Nn(e=0){return((In||performance.timeOrigin)+e)/1e3}function wO(e){const{name:t,version:n}=_O(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),In?[...r,["http.request.redirect_start",Nn(e.redirectStart)],["http.request.fetch_start",Nn(e.fetchStart)],["http.request.domain_lookup_start",Nn(e.domainLookupStart)],["http.request.domain_lookup_end",Nn(e.domainLookupEnd)],["http.request.connect_start",Nn(e.connectStart)],["http.request.secure_connection_start",Nn(e.secureConnectionStart)],["http.request.connection_end",Nn(e.connectEnd)],["http.request.request_start",Nn(e.requestStart)],["http.request.response_start",Nn(e.responseStart)],["http.request.response_end",Nn(e.responseEnd)]]:r}function kO(e,t){return Ra(e,t||Wl)}function SO(e,t,n,r){const o=e.xhr,i=o&&o[br];if(!es()||!o||o.__sentry_own_request__||!i)return;const s=t(i.url);if(e.endTimestamp&&s){const p=o.__sentry_xhr_span_id__;if(!p)return;const h=r[p];h&&i.status_code!==void 0&&(h.setHttpStatus(i.status_code),h.finish(),delete r[p]);return}const l=tt(),u=l.getScope(),c=u.getSpan(),f=s&&c?c.startChild({data:{type:"xhr","http.method":i.method,url:i.url},description:`${i.method} ${i.url}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(f&&(o.__sentry_xhr_span_id__=f.spanId,r[o.__sentry_xhr_span_id__]=f),o.setRequestHeader&&n(i.url))if(f){const p=f&&f.transaction,h=p&&p.getDynamicSamplingContext(),m=Vl(h);ff(o,f.toTraceparent(),m)}else{const p=l.getClient(),{traceId:h,sampled:m,dsc:y}=u.getPropagationContext(),k=Au(h,void 0,m),b=y||(p?Qi(h,p,u):void 0),w=Vl(b);ff(o,k,w)}return f}function ff(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(Ll,n)}catch{}}function CO(e,t=!0,n=!0){if(!lt||!lt.location){yt&&ne.warn("Could not initialize routing instrumentation due to invalid location");return}let r=lt.location.href,o;t&&(o=e({name:lt.location.pathname,startTimestamp:In?In/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&Xi(({to:i,from:s})=>{if(s===void 0&&r&&r.indexOf(i)!==-1){r=void 0;return}s!==i&&(r=void 0,o&&(yt&&ne.log(`[Tracing] Finishing current transaction with op: ${o.op}`),o.finish()),o=e({name:lt.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const TO="BrowserTracing",EO={...si,markBackgroundTransactions:!0,routingInstrumentation:CO,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...ql};class xO{constructor(t){this.name=TO,this._hasSetTracePropagationTargets=!1,oD(),yt&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...EO,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=rO(),this.options.enableLongTask&&aO(),this.options._experiments.enableInteractions&&oO()}setupOnce(t,n){this._getCurrentHub=n;const o=n().getClient(),i=o&&o.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:l,startTransactionOnPageLoad:u,markBackgroundTransactions:c,traceFetch:f,traceXHR:p,shouldCreateSpanForRequest:h,enableHTTPTimings:m,_experiments:y}=this.options,k=i&&i.tracePropagationTargets,b=k||this.options.tracePropagationTargets;yt&&this._hasSetTracePropagationTargets&&k&&ne.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(w=>{const T=this._createRouteTransaction(w);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(T,w,n),T},u,l),c&&UN(),y.enableInteractions&&this._registerInteractionListener(),yO({traceFetch:f,traceXHR:p,tracePropagationTargets:b,shouldCreateSpanForRequest:h,enableHTTPTimings:m})}_createRouteTransaction(t){if(!this._getCurrentHub){yt&&ne.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:o,finalTimeout:i,heartbeatInterval:s}=this.options,l=t.op==="pageload",u=l?pf("sentry-trace"):"",c=l?pf("baggage"):"",{traceparentData:f,dynamicSamplingContext:p,propagationContext:h}=kI(u,c),m={...t,...f,metadata:{...t.metadata,dynamicSamplingContext:f&&!p?{}:p},trimEnd:!0},y=typeof r=="function"?r(m):m,k=y===void 0?{...m,sampled:!1}:y;k.metadata=k.name!==m.name?{...k.metadata,source:"custom"}:k.metadata,this._latestRouteName=k.name,this._latestRouteSource=k.metadata&&k.metadata.source,k.sampled===!1&&yt&&ne.log(`[Tracing] Will not send ${k.op} transaction because of beforeNavigate.`),yt&&ne.log(`[Tracing] Starting ${k.op} transaction on scope`);const{location:b}=lt,w=Qd(n,k,o,i,!0,{location:b},s),T=n.getScope();return l&&f?T.setPropagationContext(h):T.setPropagationContext({traceId:w.traceId,spanId:w.spanId,parentSpanId:w.parentSpanId,sampled:w.sampled}),w.registerBeforeFinishCallback(O=>{this._collectWebVitals(),uO(O)}),w}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:o,heartbeatInterval:i}=this.options,s="ui.action.click",l=No();if(l&&l.op&&["navigation","pageload"].includes(l.op)){yt&&ne.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.finish(),t=void 0),!this._getCurrentHub){yt&&ne.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){yt&&ne.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const u=this._getCurrentHub(),{location:c}=lt,f={name:this._latestRouteName,op:s,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};t=Qd(u,f,r,o,!0,{location:c},i)};["click"].forEach(r=>{addEventListener(r,n,{once:!1,capture:!0})})}}function pf(e){const t=PP(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}const dt=et,Gu="sentryReplaySession",PO="replay_event",Ku="Unable to send Replay",IO=3e5,DO=9e5,NO=5e3,OO=5500,BO=6e4,MO=5e3,RO=3,hf=15e4,Qo=5e3,AO=3e3,$O=300,Xu=2e7,LO=4999,VO=15e3,mf=36e5;var Dt;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Dt||(Dt={}));function FO(e){return e.nodeType===e.ELEMENT_NODE}function ao(e){const t=e==null?void 0:e.host;return(t==null?void 0:t.shadowRoot)===e}function oo(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function HO(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}function UO(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function xi(e){try{const t=e.rules||e.cssRules;return t?HO(Array.from(t,_m).join("")):null}catch{return null}}function _m(e){let t;if(jO(e))try{t=xi(e.styleSheet)||UO(e)}catch{}else if(WO(e)&&e.selectorText.includes(":"))return zO(e.cssText);return t||e.cssText}function zO(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function jO(e){return"styleSheet"in e}function WO(e){return"selectorText"in e}class wm{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){var n;if(!t)return-1;const r=(n=this.getMeta(t))===null||n===void 0?void 0:n.id;return r??-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function qO(){return new wm}function ps({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function ko({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function Da(e){return e.toLowerCase()}function Yl(e){return e.toUpperCase()}const vf="__rrweb_original__";function YO(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let o=0;o<e.height;o+=n){const i=t.getImageData,s=vf in i?i[vf]:i;if(new Uint32Array(s.call(t,r,o,Math.min(n,e.width-r),Math.min(n,e.height-o)).data.buffer).some(u=>u!==0))return!1}return!0}function Ju(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Da(t):null}function Pi(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}let GO=1;const KO=new RegExp("[^a-z0-9-_:]"),So=-2;function Qu(){return GO++}function XO(e){if(e instanceof HTMLFormElement)return"form";const t=Da(e.tagName);return KO.test(t)?"div":t}function JO(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let oa,gf;const QO=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ZO=/^(?:[a-z+]+:)?\/\//i,eB=/^www\..*/i,tB=/^(data:)([^,]*),(.*)/i;function Ii(e,t){return(e||"").replace(QO,(n,r,o,i,s,l)=>{const u=o||s||l,c=r||i||"";if(!u)return n;if(ZO.test(u)||eB.test(u))return`url(${c}${u}${c})`;if(tB.test(u))return`url(${c}${u}${c})`;if(u[0]==="/")return`url(${c}${JO(t)+u}${c})`;const f=t.split("/"),p=u.split("/");f.pop();for(const h of p)h!=="."&&(h===".."?f.pop():f.push(h));return`url(${c}${f.join("/")}${c})`})}const nB=/^[^ \t\n\r\u000c]+/,rB=/^[, \t\n\r\u000c]+/;function aB(e,t){if(t.trim()==="")return t;let n=0;function r(i){let s;const l=i.exec(t.substring(n));return l?(s=l[0],n+=s.length,s):""}const o=[];for(;r(rB),!(n>=t.length);){let i=r(nB);if(i.slice(-1)===",")i=ca(e,i.substring(0,i.length-1)),o.push(i);else{let s="";i=ca(e,i);let l=!1;for(;;){const u=t.charAt(n);if(u===""){o.push((i+s).trim());break}else if(l)u===")"&&(l=!1);else if(u===","){n+=1,o.push((i+s).trim());break}else u==="("&&(l=!0);s+=u,n+=1}}}return o.join(", ")}function ca(e,t){if(!t||t.trim()==="")return t;const n=e.createElement("a");return n.href=t,n.href}function oB(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Zu(){const e=document.createElement("a");return e.href="",e.href}function km(e,t,n,r,o,i){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?ca(e,r):n==="srcset"?aB(e,r):n==="style"?Ii(r,Zu()):t==="object"&&n==="data"?ca(e,r):typeof i=="function"?i(n,r,o):r)}function Sm(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function iB(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let o=e.classList.length;o--;){const i=e.classList[o];if(t.test(i))return!0}if(n)return e.matches(n)}catch{}return!1}function sB(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Hr(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Hr(e.parentNode,t,n,r+1)}function da(e,t){return n=>{const r=n;if(r===null)return!1;if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(sB(r,e))return!0}return!!(t&&r.matches(t))}}function Na(e,t,n,r,o,i){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(s===null)return!1;let l=-1,u=-1;if(i){if(u=Hr(s,da(r,o)),u<0)return!0;l=Hr(s,da(t,n),u>=0?u:1/0)}else{if(l=Hr(s,da(t,n)),l<0)return!1;u=Hr(s,da(r,o),l>=0?l:1/0)}return l>=0?u>=0?l<=u:!0:u>=0?!1:!!i}catch{}return!!i}function lB(e,t,n){const r=e.contentWindow;if(!r)return;let o=!1,i;try{i=r.document.readyState}catch{return}if(i!=="complete"){const l=setTimeout(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{clearTimeout(l),o=!0,t()});return}const s="about:blank";if(r.location.href!==s||e.src===s||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function uB(e,t,n){let r=!1,o;try{o=e.sheet}catch{return}if(o)return;const i=setTimeout(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{clearTimeout(i),r=!0,t()})}function cB(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskAttributeFn:u,maskTextClass:c,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:y={},maskTextFn:k,maskInputFn:b,dataURLOptions:w={},inlineImages:T,recordCanvas:O,keepIframeSrcFn:_,newlyAddedElement:B=!1}=t,C=dB(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Dt.Document,childNodes:[],compatMode:e.compatMode}:{type:Dt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Dt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return pB(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:m,maskAttributeFn:u,maskInputOptions:y,maskInputFn:b,dataURLOptions:w,inlineImages:T,recordCanvas:O,keepIframeSrcFn:_,newlyAddedElement:B,rootId:C,maskAllText:l,maskTextClass:c,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h});case e.TEXT_NODE:return fB(e,{maskAllText:l,maskTextClass:c,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,maskTextFn:k,maskInputOptions:y,maskInputFn:b,rootId:C});case e.CDATA_SECTION_NODE:return{type:Dt.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:Dt.Comment,textContent:e.textContent||"",rootId:C};default:return!1}}function dB(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function fB(e,t){var n;const{maskAllText:r,maskTextClass:o,unmaskTextClass:i,maskTextSelector:s,unmaskTextSelector:l,maskTextFn:u,maskInputOptions:c,maskInputFn:f,rootId:p}=t,h=e.parentNode&&e.parentNode.tagName;let m=e.textContent;const y=h==="STYLE"?!0:void 0,k=h==="SCRIPT"?!0:void 0,b=h==="TEXTAREA"?!0:void 0;if(y&&m){try{e.nextSibling||e.previousSibling||!((n=e.parentNode.sheet)===null||n===void 0)&&n.cssRules&&(m=xi(e.parentNode.sheet))}catch(T){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${T}`,e)}m=Ii(m,Zu())}k&&(m="SCRIPT_PLACEHOLDER");const w=Na(e,o,s,i,l,r);if(!y&&!k&&!b&&m&&w&&(m=u?u(m):m.replace(/[\S]/g,"*")),b&&m&&(c.textarea||w)&&(m=f?f(m,e.parentNode):m.replace(/[\S]/g,"*")),h==="OPTION"&&m){const T=ps({type:null,tagName:h,maskInputOptions:c});m=ko({isMasked:Na(e,o,s,i,l,T),element:e,value:m,maskInputFn:f})}return{type:Dt.Text,textContent:m||"",isStyle:y,rootId:p}}function pB(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:l={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:f={},inlineImages:p,recordCanvas:h,keepIframeSrcFn:m,newlyAddedElement:y=!1,rootId:k,maskAllText:b,maskTextClass:w,unmaskTextClass:T,maskTextSelector:O,unmaskTextSelector:_}=t,B=iB(e,r,o,i),C=XO(e);let I={};const F=e.attributes.length;for(let W=0;W<F;W++){const M=e.attributes[W];Sm(C,M.name,M.value)||(I[M.name]=km(n,C,Da(M.name),M.value,e,u))}if(C==="link"&&s){const W=Array.from(n.styleSheets).find(D=>D.href===e.href);let M=null;W&&(M=xi(W)),M&&(delete I.rel,delete I.href,I._cssText=Ii(M,W.href))}if(C==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const W=xi(e.sheet);W&&(I._cssText=Ii(W,Zu()))}if(C==="input"||C==="textarea"||C==="select"||C==="option"){const W=e,M=Ju(W),D=Pi(W,Yl(C),M),$=W.checked;if(M!=="submit"&&M!=="button"&&D){const Y=Na(W,w,O,T,_,ps({type:M,tagName:Yl(C),maskInputOptions:l}));I.value=ko({isMasked:Y,element:W,value:D,maskInputFn:c})}$&&(I.checked=$)}if(C==="option"&&(e.selected&&!l.select?I.selected=!0:delete I.selected),C==="canvas"&&h){if(e.__context==="2d")YO(e)||(I.rr_dataURL=e.toDataURL(f.type,f.quality));else if(!("__context"in e)){const W=e.toDataURL(f.type,f.quality),M=document.createElement("canvas");M.width=e.width,M.height=e.height;const D=M.toDataURL(f.type,f.quality);W!==D&&(I.rr_dataURL=W)}}if(C==="img"&&p){oa||(oa=n.createElement("canvas"),gf=oa.getContext("2d"));const W=e,M=W.crossOrigin;W.crossOrigin="anonymous";const D=()=>{W.removeEventListener("load",D);try{oa.width=W.naturalWidth,oa.height=W.naturalHeight,gf.drawImage(W,0,0),I.rr_dataURL=oa.toDataURL(f.type,f.quality)}catch($){console.warn(`Cannot inline img src=${W.currentSrc}! Error: ${$}`)}M?I.crossOrigin=M:W.removeAttribute("crossorigin")};W.complete&&W.naturalWidth!==0?D():W.addEventListener("load",D)}if((C==="audio"||C==="video")&&(I.rr_mediaState=e.paused?"paused":"played",I.rr_mediaCurrentTime=e.currentTime),y||(e.scrollLeft&&(I.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(I.rr_scrollTop=e.scrollTop)),B){const{width:W,height:M}=e.getBoundingClientRect();I={class:I.class,rr_width:`${W}px`,rr_height:`${M}px`}}C==="iframe"&&!m(I.src)&&(e.contentDocument||(I.rr_src=I.src),delete I.src);let q;try{customElements.get(C)&&(q=!0)}catch{}return{type:Dt.Element,tagName:C,attributes:I,childNodes:[],isSVG:oB(e)||void 0,needBlock:B,rootId:k,isCustom:q}}function ut(e){return e==null?"":e.toLowerCase()}function hB(e,t){if(t.comment&&e.type===Dt.Comment)return!0;if(e.type===Dt.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ut(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ut(e.attributes.name)==="application-name"||ut(e.attributes.rel)==="icon"||ut(e.attributes.rel)==="apple-touch-icon"||ut(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&ut(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ut(e.attributes.property).match(/^(og|twitter|fb):/)||ut(e.attributes.name).match(/^(og|twitter):/)||ut(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(ut(e.attributes.name)==="robots"||ut(e.attributes.name)==="googlebot"||ut(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(ut(e.attributes.name)==="author"||ut(e.attributes.name)==="generator"||ut(e.attributes.name)==="framework"||ut(e.attributes.name)==="publisher"||ut(e.attributes.name)==="progid"||ut(e.attributes.property).match(/^article:/)||ut(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(ut(e.attributes.name)==="google-site-verification"||ut(e.attributes.name)==="yandex-verification"||ut(e.attributes.name)==="csrf-token"||ut(e.attributes.name)==="p:domain_verify"||ut(e.attributes.name)==="verify-v1"||ut(e.attributes.name)==="verification"||ut(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function fa(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:f,unmaskTextSelector:p,skipChild:h=!1,inlineStylesheet:m=!0,maskInputOptions:y={},maskAttributeFn:k,maskTextFn:b,maskInputFn:w,slimDOMOptions:T,dataURLOptions:O={},inlineImages:_=!1,recordCanvas:B=!1,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:F=5e3,onStylesheetLoad:q,stylesheetLoadTimeout:W=5e3,keepIframeSrcFn:M=()=>!1,newlyAddedElement:D=!1}=t;let{preserveWhiteSpace:$=!0}=t;const Y=cB(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:l,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:y,maskAttributeFn:k,maskTextFn:b,maskInputFn:w,dataURLOptions:O,inlineImages:_,recordCanvas:B,keepIframeSrcFn:M,newlyAddedElement:D});if(!Y)return console.warn(e,"not serialized"),null;let X;r.hasNode(e)?X=r.getId(e):hB(Y,T)||!$&&Y.type===Dt.Text&&!Y.isStyle&&!Y.textContent.replace(/^\s+|\s+$/gm,"").length?X=So:X=Qu();const K=Object.assign(Y,{id:X});if(r.add(e,K),X===So)return null;C&&C(e);let j=!h;if(K.type===Dt.Element){j=j&&!K.needBlock,delete K.needBlock;const U=e.shadowRoot;U&&oo(U)&&(K.isShadowHost=!0)}if((K.type===Dt.Document||K.type===Dt.Element)&&j){T.headWhitespace&&K.type===Dt.Element&&K.tagName==="head"&&($=!1);const U={doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:l,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:f,unmaskTextSelector:p,skipChild:h,inlineStylesheet:m,maskInputOptions:y,maskAttributeFn:k,maskTextFn:b,maskInputFn:w,slimDOMOptions:T,dataURLOptions:O,inlineImages:_,recordCanvas:B,preserveWhiteSpace:$,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:F,onStylesheetLoad:q,stylesheetLoadTimeout:W,keepIframeSrcFn:M};for(const S of Array.from(e.childNodes)){const H=fa(S,U);H&&K.childNodes.push(H)}if(FO(e)&&e.shadowRoot)for(const S of Array.from(e.shadowRoot.childNodes)){const H=fa(S,U);H&&(oo(e.shadowRoot)&&(H.isShadow=!0),K.childNodes.push(H))}}return e.parentNode&&ao(e.parentNode)&&oo(e.parentNode)&&(K.isShadow=!0),K.type===Dt.Element&&K.tagName==="iframe"&&lB(e,()=>{const U=e.contentDocument;if(U&&I){const S=fa(U,{doc:U,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:f,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:m,maskInputOptions:y,maskAttributeFn:k,maskTextFn:b,maskInputFn:w,slimDOMOptions:T,dataURLOptions:O,inlineImages:_,recordCanvas:B,preserveWhiteSpace:$,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:F,onStylesheetLoad:q,stylesheetLoadTimeout:W,keepIframeSrcFn:M});S&&I(e,S)}},F),K.type===Dt.Element&&K.tagName==="link"&&K.attributes.rel==="stylesheet"&&uB(e,()=>{if(q){const U=fa(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:f,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:m,maskInputOptions:y,maskAttributeFn:k,maskTextFn:b,maskInputFn:w,slimDOMOptions:T,dataURLOptions:O,inlineImages:_,recordCanvas:B,preserveWhiteSpace:$,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:F,onStylesheetLoad:q,stylesheetLoadTimeout:W,keepIframeSrcFn:M});U&&q(e,U)}},W),K}function mB(e,t){const{mirror:n=new wm,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:l="rr-mask",unmaskTextClass:u=null,maskTextSelector:c=null,unmaskTextSelector:f=null,inlineStylesheet:p=!0,inlineImages:h=!1,recordCanvas:m=!1,maskAllInputs:y=!1,maskAttributeFn:k,maskTextFn:b,maskInputFn:w,slimDOM:T=!1,dataURLOptions:O,preserveWhiteSpace:_,onSerialize:B,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:F,stylesheetLoadTimeout:q,keepIframeSrcFn:W=()=>!1}=t||{};return fa(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:y===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:y===!1?{}:y,maskAttributeFn:k,maskTextFn:b,maskInputFn:w,slimDOMOptions:T===!0||T==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:T==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:T===!1?{}:T,dataURLOptions:O,inlineImages:h,recordCanvas:m,preserveWhiteSpace:_,onSerialize:B,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:F,stylesheetLoadTimeout:q,keepIframeSrcFn:W,newlyAddedElement:!1})}function tn(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const sa=`Please stop import mirror directly. Instead of that,\r
103
103
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
104
- or you can use record.mirror to access the mirror instance during recording.`;let yf={map:{},getId(){return console.error(ia),-1},getNode(){return console.error(ia),null},removeNodeFromMap(){console.error(ia)},has(){return console.error(ia),!1},reset(){console.error(ia)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(yf=new Proxy(yf,{get(e,t,n){return t==="map"&&console.error(ia),Reflect.get(e,t,n)}}));function Co(e,t,n={}){let r=null,o=0;return function(...i){const s=Date.now();!o&&n.leading===!1&&(o=s);const l=t-(s-o),u=this;l<=0||l>t?(r&&(clearTimeout(r),r=null),o=s,e.apply(u,i)):!r&&n.trailing!==!1&&(r=setTimeout(()=>{o=n.leading===!1?0:Date.now(),r=null,e.apply(u,i)},l))}}function Cm(e,t,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(s){setTimeout(()=>{n.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>Cm(e,t,i||{},!0)}function ec(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}let Di=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Di=()=>new Date().getTime());function Tm(e){var t,n,r,o,i,s;const l=e.document;return{left:l.scrollingElement?l.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:(l==null?void 0:l.documentElement.scrollLeft)||((n=(t=l==null?void 0:l.body)===null||t===void 0?void 0:t.parentElement)===null||n===void 0?void 0:n.scrollLeft)||((r=l==null?void 0:l.body)===null||r===void 0?void 0:r.scrollLeft)||0,top:l.scrollingElement?l.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(l==null?void 0:l.documentElement.scrollTop)||((i=(o=l==null?void 0:l.body)===null||o===void 0?void 0:o.parentElement)===null||i===void 0?void 0:i.scrollTop)||((s=l==null?void 0:l.body)===null||s===void 0?void 0:s.scrollTop)||0}}function Em(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function xm(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Tn(e,t,n,r,o){if(!e)return!1;const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!i)return!1;const s=ca(t,n);if(!o){const c=r&&i.matches(r);return s(i)&&!c}const l=Hr(i,s);let u=-1;return l<0?!1:(r&&(u=Hr(i,ca(null,r))),l>-1&&u<0?!0:l<u)}function mB(e,t){return t.getId(e)!==-1}function tl(e,t){return t.getId(e)===So}function Pm(e,t){if(ao(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Pm(e.parentNode,t):!0:!0}function Gl(e){return!!e.changedTouches}function vB(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function Im(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Dm(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Kl(e){return!!(e!=null&&e.shadowRoot)}class gB{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){var n;return(n=this.styleIDMap.get(t))!==null&&n!==void 0?n:-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Om(e){var t,n;let r=null;return((n=(t=e.getRootNode)===null||t===void 0?void 0:t.call(e))===null||n===void 0?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(r=e.getRootNode().host),r}function yB(e){let t=e,n;for(;n=Om(t);)t=n;return t}function bB(e){const t=e.ownerDocument;if(!t)return!1;const n=yB(e);return t.contains(n)}function Nm(e){const t=e.ownerDocument;return t?t.contains(e)||bB(e):!1}var He=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(He||{}),Fe=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Fe||{}),Jt=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Jt||{}),rr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(rr||{});function bf(e){return"__ln"in e}class _B{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=(n==null?void 0:n.next)||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&bf(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&bf(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const _f=(e,t)=>`${e}@${t}`;class wB{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new _B,o=u=>{let c=u,f=So;for(;f===So;)c=c&&c.nextSibling,f=c&&this.mirror.getId(c);return f},i=u=>{if(!u.parentNode||!Nm(u))return;const c=ao(u.parentNode)?this.mirror.getId(Om(u)):this.mirror.getId(u.parentNode),f=o(u);if(c===-1||f===-1)return r.addNode(u);const p=da(u,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:h=>{Im(h,this.mirror)&&this.iframeManager.addIframe(h),Dm(h,this.mirror)&&this.stylesheetManager.trackLinkElement(h),Kl(u)&&this.shadowDomManager.addShadowRoot(u.shadowRoot,this.doc)},onIframeLoad:(h,m)=>{this.iframeManager.attachIframe(h,m),this.shadowDomManager.observeAttachShadow(h)},onStylesheetLoad:(h,m)=>{this.stylesheetManager.attachLinkElement(h,m)}});p&&(t.push({parentId:c,nextId:f,node:p}),n.add(p.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const u of this.movedSet)wf(this.removes,u,this.mirror)&&!this.movedSet.has(u.parentNode)||i(u);for(const u of this.addedSet)!kf(this.droppedSet,u)&&!wf(this.removes,u,this.mirror)||kf(this.movedSet,u)?i(u):this.droppedSet.add(u);let s=null;for(;r.length;){let u=null;if(s){const c=this.mirror.getId(s.value.parentNode),f=o(s.value);c!==-1&&f!==-1&&(u=s)}if(!u){let c=r.tail;for(;c;){const f=c;if(c=c.previous,f){const p=this.mirror.getId(f.value.parentNode);if(o(f.value)===-1)continue;if(p!==-1){u=f;break}else{const m=f.value;if(m.parentNode&&m.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const y=m.parentNode.host;if(this.mirror.getId(y)!==-1){u=f;break}}}}}}if(!u){for(;r.head;)r.removeNode(r.head.value);break}s=u.previous,r.removeNode(u.value),i(u.value)}const l={texts:this.texts.map(u=>({id:this.mirror.getId(u.node),value:u.value})).filter(u=>!n.has(u.id)).filter(u=>this.mirror.has(u.id)),attributes:this.attributes.map(u=>{const{attributes:c}=u;if(typeof c.style=="string"){const f=JSON.stringify(u.styleDiff),p=JSON.stringify(u._unchangedStyles);f.length<c.style.length&&(f+p).split("var(").length===c.style.split("var(").length&&(c.style=u.styleDiff)}return{id:this.mirror.getId(u.node),attributes:c}}).filter(u=>!n.has(u.id)).filter(u=>this.mirror.has(u.id)),removes:this.removes,adds:t};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.adds.length||(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(l))},this.processMutation=t=>{if(tl(t.target,this.mirror))return;let n;try{n=document.implementation.createHTMLDocument()}catch{n=this.doc}switch(t.type){case"characterData":{const r=t.target.textContent;!Tn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:Oa(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&r?this.maskTextFn?this.maskTextFn(r):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{const r=t.target;let o=t.attributeName,i=t.target.getAttribute(o);if(o==="value"){const l=Ju(r),u=r.tagName;i=Pi(r,u,l);const c=ps({maskInputOptions:this.maskInputOptions,tagName:u,type:l}),f=Oa(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);i=ko({isMasked:f,element:r,value:i,maskInputFn:this.maskInputFn})}if(Tn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===t.oldValue)return;let s=this.attributes.find(l=>l.node===t.target);if(r.tagName==="IFRAME"&&o==="src"&&!this.keepIframeSrcFn(i))if(!r.contentDocument)o="rr_src";else return;if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s)),o==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Sm(r.tagName,o)&&(s.attributes[o]=km(this.doc,Da(r.tagName),Da(o),i,r,this.maskAttributeFn),o==="style")){const l=n.createElement("span");t.oldValue&&l.setAttribute("style",t.oldValue);for(const u of Array.from(r.style)){const c=r.style.getPropertyValue(u),f=r.style.getPropertyPriority(u);c!==l.style.getPropertyValue(u)||f!==l.style.getPropertyPriority(u)?f===""?s.styleDiff[u]=c:s.styleDiff[u]=[c,f]:s._unchangedStyles[u]=[c,f]}for(const u of Array.from(l.style))r.style.getPropertyValue(u)===""&&(s.styleDiff[u]=!1)}break}case"childList":{if(Tn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{const o=this.mirror.getId(r),i=ao(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Tn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||tl(r,this.mirror)||!mB(r,this.mirror)||(this.addedSet.has(r)?(Xl(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&o===-1||Pm(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[_f(o,i)]?Xl(this.movedSet,r):this.removes.push({parentId:i,id:o,isShadow:ao(t.target)&&oo(t.target)?!0:void 0})),this.mapRemoves.push(r))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(tl(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[_f(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Tn(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),Kl(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Xl(e,t){e.delete(t),t.childNodes.forEach(n=>Xl(e,n))}function wf(e,t,n){return e.length===0?!1:Bm(e,t,n)}function Bm(e,t,n){const{parentNode:r}=t;if(!r)return!1;const o=n.getId(r);return e.some(i=>i.id===o)?!0:Bm(e,r,n)}function kf(e,t){return e.size===0?!1:Mm(e,t)}function Mm(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Mm(e,n):!1}let so;function kB(e){so=e}function SB(){so=void 0}const Ye=e=>so?(...n)=>{try{return e(...n)}catch(r){if(so&&so(r)===!0)return()=>{};throw r}}:e,fa=[];function No(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Rm(e,t){var n,r;const o=new wB;fa.push(o),o.init(e);let i=window.MutationObserver||window.__rrMutationObserver;const s=(r=(n=window==null?void 0:window.Zone)===null||n===void 0?void 0:n.__symbol__)===null||r===void 0?void 0:r.call(n,"MutationObserver");s&&window[s]&&(i=window[s]);const l=new i(Ye(u=>{e.onMutation&&e.onMutation(u)===!1||o.processMutations.bind(o)(u)}));return l.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),l}function CB({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const o=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let s=[],l;const u=Co(Ye(p=>{const h=Date.now()-l;e(s.map(m=>(m.timeOffset-=h,m)),p),s=[],l=null}),i),c=Ye(Co(Ye(p=>{const h=No(p),{clientX:m,clientY:y}=Gl(p)?p.changedTouches[0]:p;l||(l=Di()),s.push({x:m,y,id:r.getId(h),timeOffset:Di()-l}),u(typeof DragEvent<"u"&&p instanceof DragEvent?Fe.Drag:p instanceof MouseEvent?Fe.MouseMove:Fe.TouchMove)}),o,{trailing:!1})),f=[tn("mousemove",c,n),tn("touchmove",c,n),tn("drag",c,n)];return Ye(()=>{f.forEach(p=>p())})}function TB({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const l=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[];let c=null;const f=p=>h=>{const m=No(h);if(Tn(m,r,o,i,!0))return;let y=null,k=p;if("pointerType"in h){switch(h.pointerType){case"mouse":y=rr.Mouse;break;case"touch":y=rr.Touch;break;case"pen":y=rr.Pen;break}y===rr.Touch?Jt[p]===Jt.MouseDown?k="TouchStart":Jt[p]===Jt.MouseUp&&(k="TouchEnd"):rr.Pen}else Gl(h)&&(y=rr.Touch);y!==null?(c=y,(k.startsWith("Touch")&&y===rr.Touch||k.startsWith("Mouse")&&y===rr.Mouse)&&(y=null)):Jt[p]===Jt.Click&&(y=c,c=null);const _=Gl(h)?h.changedTouches[0]:h;if(!_)return;const w=n.getId(m),{clientX:T,clientY:N}=_;Ye(e)(Object.assign({type:Jt[k],id:w,x:T,y:N},y!==null&&{pointerType:y}))};return Object.keys(Jt).filter(p=>Number.isNaN(Number(p))&&!p.endsWith("_Departed")&&l[p]!==!1).forEach(p=>{let h=Da(p);const m=f(p);if(window.PointerEvent)switch(Jt[p]){case Jt.MouseDown:case Jt.MouseUp:h=h.replace("mouse","pointer");break;case Jt.TouchStart:case Jt.TouchEnd:return}u.push(tn(h,m,t))}),Ye(()=>{u.forEach(p=>p())})}function Am({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){const l=Ye(Co(Ye(u=>{const c=No(u);if(!c||Tn(c,r,o,i,!0))return;const f=n.getId(c);if(c===t&&t.defaultView){const p=Tm(t.defaultView);e({id:f,x:p.left,y:p.top})}else e({id:f,x:c.scrollLeft,y:c.scrollTop})}),s.scroll||100));return tn("scroll",l,t)}function EB({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const o=Ye(Co(Ye(()=>{const i=Em(),s=xm();(n!==i||r!==s)&&(e({width:Number(s),height:Number(i)}),n=i,r=s)}),200));return tn("resize",o,t)}const xB=["INPUT","TEXTAREA","SELECT"],Sf=new WeakMap;function PB({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:l,maskInputOptions:u,maskInputFn:c,sampling:f,userTriggeredOnInput:p,maskTextClass:h,unmaskTextClass:m,maskTextSelector:y,unmaskTextSelector:k}){function _(I){let F=No(I);const q=I.isTrusted,W=F&&Yl(F.tagName);if(W==="OPTION"&&(F=F.parentElement),!F||!W||xB.indexOf(W)<0||Tn(F,r,o,i,!0))return;const M=F;if(M.classList.contains(s)||l&&M.matches(l))return;const D=Ju(F);let $=Pi(M,W,D),Y=!1;const X=ps({maskInputOptions:u,tagName:W,type:D}),K=Oa(F,h,y,m,k,X);(D==="radio"||D==="checkbox")&&(Y=F.checked),$=ko({isMasked:K,element:F,value:$,maskInputFn:c}),w(F,p?{text:$,isChecked:Y,userTriggered:q}:{text:$,isChecked:Y});const j=F.name;D==="radio"&&j&&Y&&t.querySelectorAll(`input[type="radio"][name="${j}"]`).forEach(U=>{if(U!==F){const S=ko({isMasked:K,element:U,value:Pi(U,W,D),maskInputFn:c});w(U,p?{text:S,isChecked:!Y,userTriggered:!1}:{text:S,isChecked:!Y})}})}function w(I,F){const q=Sf.get(I);if(!q||q.text!==F.text||q.isChecked!==F.isChecked){Sf.set(I,F);const W=n.getId(I);Ye(e)(Object.assign(Object.assign({},F),{id:W}))}}const N=(f.input==="last"?["change"]:["input","change"]).map(I=>tn(I,Ye(_),t)),b=t.defaultView;if(!b)return()=>{N.forEach(I=>I())};const B=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),C=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return B&&B.set&&N.push(...C.map(I=>Cm(I[0],I[1],{set(){Ye(_)({target:this,isTrusted:!1})}},!1,b))),Ye(()=>{N.forEach(I=>I())})}function Oi(e){const t=[];function n(r,o){if(Zo("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Zo("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Zo("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Zo("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const s=Array.from(r.parentRule.cssRules).indexOf(r);o.unshift(s)}else if(r.parentStyleSheet){const s=Array.from(r.parentStyleSheet.cssRules).indexOf(r);o.unshift(s)}return o}return n(e,t)}function mr(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function IB({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Ye((f,p,h)=>{const[m,y]=h,{id:k,styleId:_}=mr(p,t,n.styleMirror);return(k&&k!==-1||_&&_!==-1)&&e({id:k,styleId:_,adds:[{rule:m,index:y}]}),f.apply(p,h)})});const i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:Ye((f,p,h)=>{const[m]=h,{id:y,styleId:k}=mr(p,t,n.styleMirror);return(y&&y!==-1||k&&k!==-1)&&e({id:y,styleId:k,removes:[{index:m}]}),f.apply(p,h)})});let s;r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:Ye((f,p,h)=>{const[m]=h,{id:y,styleId:k}=mr(p,t,n.styleMirror);return(y&&y!==-1||k&&k!==-1)&&e({id:y,styleId:k,replace:m}),f.apply(p,h)})}));let l;r.CSSStyleSheet.prototype.replaceSync&&(l=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:Ye((f,p,h)=>{const[m]=h,{id:y,styleId:k}=mr(p,t,n.styleMirror);return(y&&y!==-1||k&&k!==-1)&&e({id:y,styleId:k,replaceSync:m}),f.apply(p,h)})}));const u={};ei("CSSGroupingRule")?u.CSSGroupingRule=r.CSSGroupingRule:(ei("CSSMediaRule")&&(u.CSSMediaRule=r.CSSMediaRule),ei("CSSConditionRule")&&(u.CSSConditionRule=r.CSSConditionRule),ei("CSSSupportsRule")&&(u.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(u).forEach(([f,p])=>{c[f]={insertRule:p.prototype.insertRule,deleteRule:p.prototype.deleteRule},p.prototype.insertRule=new Proxy(c[f].insertRule,{apply:Ye((h,m,y)=>{const[k,_]=y,{id:w,styleId:T}=mr(m.parentStyleSheet,t,n.styleMirror);return(w&&w!==-1||T&&T!==-1)&&e({id:w,styleId:T,adds:[{rule:k,index:[...Oi(m),_||0]}]}),h.apply(m,y)})}),p.prototype.deleteRule=new Proxy(c[f].deleteRule,{apply:Ye((h,m,y)=>{const[k]=y,{id:_,styleId:w}=mr(m.parentStyleSheet,t,n.styleMirror);return(_&&_!==-1||w&&w!==-1)&&e({id:_,styleId:w,removes:[{index:[...Oi(m),k]}]}),h.apply(m,y)})})}),Ye(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,s&&(r.CSSStyleSheet.prototype.replace=s),l&&(r.CSSStyleSheet.prototype.replaceSync=l),Object.entries(u).forEach(([f,p])=>{p.prototype.insertRule=c[f].insertRule,p.prototype.deleteRule=c[f].deleteRule})})}function $m({mirror:e,stylesheetManager:t},n){var r,o,i;let s=null;n.nodeName==="#document"?s=e.getId(n):s=e.getId(n.host);const l=n.nodeName==="#document"?(r=n.defaultView)===null||r===void 0?void 0:r.Document:(i=(o=n.ownerDocument)===null||o===void 0?void 0:o.defaultView)===null||i===void 0?void 0:i.ShadowRoot,u=l!=null&&l.prototype?Object.getOwnPropertyDescriptor(l==null?void 0:l.prototype,"adoptedStyleSheets"):void 0;return s===null||s===-1||!l||!u?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get(){var c;return(c=u.get)===null||c===void 0?void 0:c.call(this)},set(c){var f;const p=(f=u.set)===null||f===void 0?void 0:f.call(this,c);if(s!==null&&s!==-1)try{t.adoptStyleSheets(c,s)}catch{}return p}}),Ye(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})}))}function DB({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:Ye((l,u,c)=>{var f;const[p,h,m]=c;if(n.has(p))return i.apply(u,[p,h,m]);const{id:y,styleId:k}=mr((f=u.parentRule)===null||f===void 0?void 0:f.parentStyleSheet,t,r.styleMirror);return(y&&y!==-1||k&&k!==-1)&&e({id:y,styleId:k,set:{property:p,value:h,priority:m},index:Oi(u.parentRule)}),l.apply(u,c)})});const s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:Ye((l,u,c)=>{var f;const[p]=c;if(n.has(p))return s.apply(u,[p]);const{id:h,styleId:m}=mr((f=u.parentRule)===null||f===void 0?void 0:f.parentStyleSheet,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,remove:{property:p},index:Oi(u.parentRule)}),l.apply(u,c)})}),Ye(()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s})}function OB({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:s}){const l=Ye(c=>Co(Ye(f=>{const p=No(f);if(!p||Tn(p,t,n,r,!0))return;const{currentTime:h,volume:m,muted:y,playbackRate:k}=p;e({type:c,id:o.getId(p),currentTime:h,volume:m,muted:y,playbackRate:k})}),i.media||500)),u=[tn("play",l(0),s),tn("pause",l(1),s),tn("seeked",l(2),s),tn("volumechange",l(3),s),tn("ratechange",l(4),s)];return Ye(()=>{u.forEach(c=>c())})}function NB({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(u,c,f){const p=new i(u,c,f);return o.set(p,{family:u,buffer:typeof c!="string",descriptors:f,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))}),p};const s=ec(t.fonts,"add",function(l){return function(u){return setTimeout(Ye(()=>{const c=o.get(u);c&&(e(c),o.delete(u))}),0),l.apply(this,[u])}});return r.push(()=>{n.FontFace=i}),r.push(s),Ye(()=>{r.forEach(l=>l())})}function BB(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:s}=e;let l=!0;const u=Ye(()=>{const c=t.getSelection();if(!c||l&&(c!=null&&c.isCollapsed))return;l=c.isCollapsed||!1;const f=[],p=c.rangeCount||0;for(let h=0;h<p;h++){const m=c.getRangeAt(h),{startContainer:y,startOffset:k,endContainer:_,endOffset:w}=m;Tn(y,r,o,i,!0)||Tn(_,r,o,i,!0)||f.push({start:n.getId(y),startOffset:k,end:n.getId(_),endOffset:w})}s({ranges:f})});return u(),tn("selectionchange",u)}function MB({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:ec(n.customElements,"define",function(o){return function(i,s,l){try{t({define:{name:i}})}catch{}return o.apply(this,[i,s,l])}})}function RB(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};const r=Rm(e,e.doc),o=CB(e),i=TB(e),s=Am(e),l=EB(e,{win:n}),u=PB(e),c=OB(e),f=IB(e,{win:n}),p=$m(e,e.doc),h=DB(e,{win:n}),m=e.collectFonts?NB(e):()=>{},y=BB(e),k=MB(e);return Ye(()=>{fa.forEach(_=>_.reset()),r.disconnect(),o(),i(),s(),l(),u(),c(),f(),p(),h(),m(),y(),k()})}function Zo(e){return typeof window[e]<"u"}function ei(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Jl{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,o){const i=r||this.getIdToRemoteIdMap(t),s=o||this.getRemoteIdToIdMap(t);let l=i.get(n);return l||(l=this.generateIdFn(),i.set(n,l),s.set(l,n)),l}getIds(t,n){const r=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return n.map(i=>this.getId(t,i,r,o))}getRemoteId(t,n,r){const o=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const i=o.get(n);return i||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(o=>this.getRemoteId(t,o,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class AB{constructor(){this.crossOriginIframeMirror=new Jl(Qu),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class $B{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Jl(Qu),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Jl(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){var r;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(r=this.loadListener)===null||r===void 0||r.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const o=this.crossOriginIframeMap.get(t.source);if(!o)return;const i=this.transformCrossOriginEvent(o,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(t,n){var r;switch(n.type){case He.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const o=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,o),this.patchRootIdOnNode(n.data.node,o),{timestamp:n.timestamp,type:He.IncrementalSnapshot,data:{source:Fe.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case He.Meta:case He.Load:case He.DomContentLoaded:return!1;case He.Plugin:return n;case He.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case He.IncrementalSnapshot:switch(n.data.source){case Fe.Mutation:return n.data.adds.forEach(o=>{this.replaceIds(o,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(o.node,t);const i=this.crossOriginIframeRootIdMap.get(t);i&&this.patchRootIdOnNode(o.node,i)}),n.data.removes.forEach(o=>{this.replaceIds(o,t,["parentId","id"])}),n.data.attributes.forEach(o=>{this.replaceIds(o,t,["id"])}),n.data.texts.forEach(o=>{this.replaceIds(o,t,["id"])}),n;case Fe.Drag:case Fe.TouchMove:case Fe.MouseMove:return n.data.positions.forEach(o=>{this.replaceIds(o,t,["id"])}),n;case Fe.ViewportResize:return!1;case Fe.MediaInteraction:case Fe.MouseInteraction:case Fe.Scroll:case Fe.CanvasMutation:case Fe.Input:return this.replaceIds(n.data,t,["id"]),n;case Fe.StyleSheetRule:case Fe.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case Fe.Font:return n;case Fe.Selection:return n.data.ranges.forEach(o=>{this.replaceIds(o,t,["start","end"])}),n;case Fe.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),(r=n.data.styles)===null||r===void 0||r.forEach(o=>{this.replaceStyleIds(o,t,["styleId"])}),n}}return!1}replace(t,n,r,o){for(const i of o)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=t.getIds(r,n[i]):n[i]=t.getId(r,n[i]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==Dt.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class LB{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class VB{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!oo(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const r=Rm(Object.assign(Object.assign({},this.bypassOptions),{doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Am(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push($m({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(ec(t.prototype,"attachShadow",function(o){return function(i){const s=o.call(this,i);return this.shadowRoot&&Nm(this)&&r.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class FB{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}}class HB{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new gB,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},o=[];for(const i of t){let s;this.styleMirror.has(i)?s=this.styleMirror.getId(i):(s=this.styleMirror.add(i),o.push({styleId:s,rules:Array.from(i.rules||CSSRule,(l,u)=>({rule:_m(l),index:u}))})),r.styleIds.push(s)}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class UB{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(o=>o!==n)}add(t,n){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function Ot(e){const t=e;return t.timestamp=Di(),t}let Ni;const ar=WN();function wr(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:l="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:f="rr-mask",unmaskTextClass:p=null,maskTextSelector:h=null,unmaskTextSelector:m=null,inlineStylesheet:y=!0,maskAllInputs:k,maskInputOptions:_,slimDOMOptions:w,maskAttributeFn:T,maskInputFn:N,maskTextFn:b,packFn:B,sampling:C={},dataURLOptions:I={},mousemoveWait:F,recordCanvas:q=!1,recordCrossOriginIframes:W=!1,recordAfter:M=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:D=!1,collectFonts:$=!1,inlineImages:Y=!1,keepIframeSrcFn:X=()=>!1,ignoreCSSAttributes:K=new Set([]),errorHandler:j,onMutation:U,getCanvasManager:S}=e;kB(j);const H=W?window.parent===window:!0;let Z=!1;if(!H)try{window.parent.document&&(Z=!1)}catch{Z=!0}if(H&&!t)throw new Error("emit function is required");F!==void 0&&C.mousemove===void 0&&(C.mousemove=F),ar.reset();const Q=k===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:_!==void 0?_:{},V=w===!0||w==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:w==="all",headMetaDescKeywords:w==="all"}:w||{};vB();let E,P=0;const R=ve=>(B&&!Z&&(ve=B(ve)),ve),G=(ve,Qe)=>{var Te;if(!((Te=fa[0])===null||Te===void 0)&&Te.isFrozen()&&ve.type!==He.FullSnapshot&&!(ve.type===He.IncrementalSnapshot&&ve.data.source===Fe.Mutation)&&fa.forEach(se=>se.unfreeze()),H)t==null||t(R(ve),Qe);else if(Z){const se={type:"rrweb",event:R(ve),origin:window.location.origin,isCheckout:Qe};window.parent.postMessage(se,"*")}if(ve.type===He.FullSnapshot)E=ve,P=0;else if(ve.type===He.IncrementalSnapshot){if(ve.data.source===Fe.Mutation&&ve.data.isAttachIframe)return;P++;const se=r&&P>=r,ce=n&&ve.timestamp-E.timestamp>n;(se||ce)&&Ke(!0)}},ie=ve=>{G(Ot({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.Mutation},ve)}))},oe=ve=>G(Ot({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.Scroll},ve)})),Ie=ve=>G(Ot({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.CanvasMutation},ve)})),Ee=ve=>G(Ot({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.AdoptedStyleSheet},ve)})),fe=new HB({mutationCb:ie,adoptedStyleSheetCb:Ee}),Be=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new AB:new $B({mirror:ar,mutationCb:ie,stylesheetManager:fe,recordCrossOriginIframes:W,wrappedEmit:G}),$e=new UB,ze=S?S({recordCanvas:q,blockClass:o,blockSelector:i,unblockSelector:s,sampling:C.canvas,dataURLOptions:I}):new FB,Ge=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new LB:new VB({mutationCb:ie,scrollCb:oe,bypassOptions:{onMutation:U,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:c,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m,inlineStylesheet:y,maskInputOptions:Q,dataURLOptions:I,maskAttributeFn:T,maskTextFn:b,maskInputFn:N,recordCanvas:q,inlineImages:Y,sampling:C,slimDOMOptions:V,iframeManager:Be,stylesheetManager:fe,canvasManager:ze,keepIframeSrcFn:X,processedNodeManager:$e},mirror:ar}),Ke=(ve=!1)=>{G(Ot({type:He.Meta,data:{href:window.location.href,width:xm(),height:Em()}}),ve),fe.reset(),Ge.init(),fa.forEach(Te=>Te.lock());const Qe=hB(document,{mirror:ar,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:c,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m,inlineStylesheet:y,maskAllInputs:Q,maskAttributeFn:T,maskInputFn:N,maskTextFn:b,slimDOM:V,dataURLOptions:I,recordCanvas:q,inlineImages:Y,onSerialize:Te=>{Im(Te,ar)&&Be.addIframe(Te),Dm(Te,ar)&&fe.trackLinkElement(Te),Kl(Te)&&Ge.addShadowRoot(Te.shadowRoot,document)},onIframeLoad:(Te,se)=>{Be.attachIframe(Te,se),Ge.observeAttachShadow(Te)},onStylesheetLoad:(Te,se)=>{fe.attachLinkElement(Te,se)},keepIframeSrcFn:X});if(!Qe)return console.warn("Failed to snapshot the document");G(Ot({type:He.FullSnapshot,data:{node:Qe,initialOffset:Tm(window)}}),ve),fa.forEach(Te=>Te.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&fe.adoptStyleSheets(document.adoptedStyleSheets,ar.getId(document))};Ni=Ke;try{const ve=[],Qe=se=>Ye(RB)({onMutation:U,mutationCb:ie,mousemoveCb:(ce,me)=>G(Ot({type:He.IncrementalSnapshot,data:{source:me,positions:ce}})),mouseInteractionCb:ce=>G(Ot({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.MouseInteraction},ce)})),scrollCb:oe,viewportResizeCb:ce=>G(Ot({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.ViewportResize},ce)})),inputCb:ce=>G(Ot({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.Input},ce)})),mediaInteractionCb:ce=>G(Ot({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.MediaInteraction},ce)})),styleSheetRuleCb:ce=>G(Ot({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.StyleSheetRule},ce)})),styleDeclarationCb:ce=>G(Ot({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.StyleDeclaration},ce)})),canvasMutationCb:Ie,fontCb:ce=>G(Ot({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.Font},ce)})),selectionCb:ce=>{G(Ot({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.Selection},ce)}))},customElementCb:ce=>{G(Ot({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.CustomElement},ce)}))},blockClass:o,ignoreClass:l,ignoreSelector:u,maskAllText:c,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m,maskInputOptions:Q,inlineStylesheet:y,sampling:C,recordCanvas:q,inlineImages:Y,userTriggeredOnInput:D,collectFonts:$,doc:se,maskAttributeFn:T,maskInputFn:N,maskTextFn:b,keepIframeSrcFn:X,blockSelector:i,unblockSelector:s,slimDOMOptions:V,dataURLOptions:I,mirror:ar,iframeManager:Be,stylesheetManager:fe,shadowDomManager:Ge,processedNodeManager:$e,canvasManager:ze,ignoreCSSAttributes:K,plugins:[]},{});Be.addLoadListener(se=>{try{ve.push(Qe(se.contentDocument))}catch(ce){console.warn(ce)}});const Te=()=>{Ke(),ve.push(Qe(document))};return document.readyState==="interactive"||document.readyState==="complete"?Te():(ve.push(tn("DOMContentLoaded",()=>{G(Ot({type:He.DomContentLoaded,data:{}})),M==="DOMContentLoaded"&&Te()})),ve.push(tn("load",()=>{G(Ot({type:He.Load,data:{}})),M==="load"&&Te()},window))),()=>{ve.forEach(se=>se()),$e.destroy(),Ni=void 0,SB()}}catch(ve){console.warn(ve)}}function zB(e){if(!Ni)throw new Error("please take full snapshot after start recording");Ni(e)}wr.mirror=ar;wr.takeFullSnapshot=zB;const jB=3,WB=5;function tc(e){return e>9999999999?e:e*1e3}function nl(e){return e>9999999999?e/1e3:e}function hs(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:He.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:An(t,10,1e3)}}),t.category==="console")))}const qB="button,a";function Lm(e){return e.closest(qB)||e}function Vm(e){const t=Fm(e);return!t||!(t instanceof Element)?t:Lm(t)}function Fm(e){return YB(e)?e.target:e}function YB(e){return typeof e=="object"&&!!e&&"target"in e}let vr;function GB(e){return vr||(vr=[],KB()),vr.push(e),()=>{const t=vr?vr.indexOf(e):-1;t>-1&&vr.splice(t,1)}}function KB(){Bt(dt,"open",function(e){return function(...t){if(vr)try{vr.forEach(n=>n())}catch{}return e.apply(dt,t)}})}function XB(e,t,n){e.handleClick(t,n)}class JB{constructor(t,n,r=hs){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=GB(()=>{this._lastMutation=Cf()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(ZB(n,this._ignoreSelector)||!eM(t))return;const r={timestamp:nl(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(o=>o.node===r.node&&Math.abs(o.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=nl(t)}registerScroll(t=Date.now()){this._lastScroll=nl(t)}registerClick(t){const n=Lm(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=Cf();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const o=this._clicks.indexOf(r);o>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!r&&!o,{clickCount:s,clickBreadcrumb:l}=t;if(i){const u=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,c=u<this._timeout*1e3?"mutation":"timeout",f={type:"default",message:l.message,timestamp:l.timestamp,category:"ui.slowClickDetected",data:{...l.data,url:dt.location.href,route:n.getCurrentRoute(),timeAfterClickMs:u,endReason:c,clickCount:s||1}};this._addBreadcrumbEvent(n,f);return}if(s>1){const u={type:"default",message:l.message,timestamp:l.timestamp,category:"ui.multiClick",data:{...l.data,url:dt.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(n,u)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}}const QB=["A","BUTTON","INPUT"];function ZB(e,t){return!!(!QB.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function eM(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Cf(){return Date.now()/1e3}function tM(e,t){try{if(!nM(t))return;const{source:n}=t.data;if(n===Fe.Mutation&&e.registerMutation(t.timestamp),n===Fe.Scroll&&e.registerScroll(t.timestamp),rM(t)){const{type:r,id:o}=t.data,i=wr.mirror.getNode(o);i instanceof HTMLElement&&r===Jt.Click&&e.registerClick(i)}}catch{}}function nM(e){return e.type===jB}function rM(e){return e.data.source===Fe.MouseInteraction}function cr(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Bi;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Bi||(Bi={}));const aM=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled"]);function oM(e){const t={};for(const n in e)if(aM.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const iM=e=>t=>{if(!e.isEnabled())return;const n=sM(t);if(!n)return;const r=t.name==="click",o=r?t.event:void 0;r&&e.clickDetector&&o&&o.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&XB(e.clickDetector,n,Vm(t.event)),hs(e,n)};function Hm(e,t){const n=wr.mirror.getId(e),r=n&&wr.mirror.getNode(n),o=r&&wr.mirror.getMeta(r),i=o&&uM(o)?o:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(s=>s.type===Bi.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:oM(i.attributes)}}:{}}}function sM(e){const{target:t,message:n}=lM(e);return cr({category:`ui.${e.name}`,...Hm(t,n)})}function lM(e){const t=e.name==="click";let n,r=null;try{r=t?Vm(e.event):Fm(e.event),n=Sr(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function uM(e){return e.type===Bi.Element}function cM(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=dM(t);n&&hs(e,n)}function dM(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i,target:s}=e;if(!s||fM(s)||!i)return null;const l=t||r||o,u=i.length===1;if(!l&&u)return null;const c=Sr(s,{maxStringLength:200})||"<unknown>",f=Hm(s,c);return cr({category:"ui.keyDown",message:c,data:{...f.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i}})}function fM(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const Tf={resource:gM,paint:mM,navigation:vM};function pM(e){return e.map(hM).filter(Boolean)}function hM(e){return Tf[e.entryType]?Tf[e.entryType](e):null}function Na(e){return((In||dt.performance.timeOrigin)+e)/1e3}function mM(e){const{duration:t,entryType:n,name:r,startTime:o}=e,i=Na(o);return{type:n,name:r,start:i,end:i+t,data:void 0}}function vM(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:l,domContentLoadedEventEnd:u,domInteractive:c,loadEventStart:f,loadEventEnd:p,redirectCount:h,startTime:m,transferSize:y,type:k}=e;return o===0?null:{type:`${t}.${k}`,start:Na(m),end:Na(i),name:n,data:{size:y,decodedBodySize:r,encodedBodySize:s,duration:o,domInteractive:c,domContentLoadedEventStart:l,domContentLoadedEventEnd:u,loadEventStart:f,loadEventEnd:p,domComplete:i,redirectCount:h}}}function gM(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:l,responseStatus:u,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Na(i),end:Na(o),name:r,data:{size:c,statusCode:u,decodedBodySize:s,encodedBodySize:l}}}function yM(e){const t=e.entries,n=t[t.length-1],r=n?n.element:void 0,o=e.value,i=Na(o);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:i,end:i,data:{value:o,size:o,nodeId:r?wr.mirror.getId(r):void 0}}}function bM(e){function t(o){e.performanceEntries.includes(o)||e.performanceEntries.push(o)}function n({entries:o}){o.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(o=>{r.push(ds(o,n))}),r.push(vm(({metric:o})=>{e.replayPerformanceEntries.push(yM(o))})),()=>{r.forEach(o=>o())}}const ft=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,_M='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function wM(){const e=new Blob([_M]);return URL.createObjectURL(e)}function Zt(e,t){ft&&(ne.info(e),t&&Um(e))}function va(e,t){ft&&(ne.info(e),t&&setTimeout(()=>{Um(e)},0))}function Um(e){tt().addBreadcrumb({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class nc extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Xu}.`)}}class zm{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>Xu)throw new nc;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?tc(t):null}}class kM{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){Zt("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((o,i)=>{const s=({data:l})=>{const u=l;if(u.method===t&&u.id===r){if(this._worker.removeEventListener("message",s),!u.success){ft&&ne.error("[Replay]",u.response),i(new Error("Error in compression worker"));return}o(u.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class SM{constructor(t){this._worker=new kM(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=tc(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>Xu?Promise.reject(new nc):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear")}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class CM{constructor(t){this._fallback=new zm,this._compression=new SM(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch{Zt("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n}=this._fallback,r=[];for(const o of t)r.push(this._compression.addEvent(o));this._compression.hasCheckout=n,this._used=this._compression;try{await Promise.all(r)}catch(o){ft&&ne.warn("[Replay] Failed to add events when switching buffers.",o)}}}function TM({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=EM(t);if(n)return n}return Zt("[Replay] Using simple buffer"),new zm}function EM(e){try{const t=e||xM();if(!t)return;Zt(`[Replay] Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new CM(n)}catch{Zt("[Replay] Failed to create compression worker")}}function xM(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?wM():""}function rc(){try{return"sessionStorage"in dt&&!!dt.sessionStorage}catch{return!1}}function PM(e){IM(),e.session=void 0}function IM(){if(rc())try{dt.sessionStorage.removeItem(Gu)}catch{}}function jm(e){return e===void 0?!1:Math.random()<e}function Wm(e){const t=Date.now(),n=e.id||Yt(),r=e.started||t,o=e.lastActivity||t,i=e.segmentId||0,s=e.sampled,l=e.previousSessionId;return{id:n,started:r,lastActivity:o,segmentId:i,sampled:s,previousSessionId:l}}function ac(e){if(rc())try{dt.sessionStorage.setItem(Gu,JSON.stringify(e))}catch{}}function DM(e,t){return jm(e)?"session":t?"buffer":!1}function Ef({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=DM(e,t),i=Wm({sampled:o,previousSessionId:r});return n&&ac(i),i}function OM(e){if(!rc())return null;try{const t=dt.sessionStorage.getItem(Gu);if(!t)return null;const n=JSON.parse(t);return va("[Replay] Loading existing session",e),Wm(n)}catch{return null}}function Ql(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function qm(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Ql(e.started,t,r)||Ql(e.lastActivity,n,r)}function Ym(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!qm(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function rl({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:r},o){const i=o.stickySession&&OM(e);return i?Ym(i,{sessionIdleExpire:t,maxReplayDuration:n})?(va("[Replay] Session in sessionStorage is expired, creating new one..."),Ef(o,{previousSessionId:i.id})):i:(va("[Replay] Creating new session",e),Ef(o,{previousSessionId:r}))}function NM(e){return e.type===He.Custom}function oc(e,t,n){return Km(e,t)?(Gm(e,t,n),!0):!1}function BM(e,t,n){return Km(e,t)?Gm(e,t,n):Promise.resolve(null)}async function Gm(e,t,n){if(!e.eventBuffer)return null;try{n&&e.recordingMode==="buffer"&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const r=e.getOptions(),o=MM(t,r.beforeAddRecordingEvent);return o?await e.eventBuffer.addEvent(o):void 0}catch(r){const o=r&&r instanceof nc?"addEventSizeExceeded":"addEvent";ft&&ne.error(r),await e.stop({reason:o});const i=Ir();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function Km(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=tc(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(Zt(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1):!0}function MM(e,t){try{if(typeof t=="function"&&NM(e))return t(e)}catch(n){return ft&&ne.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",n),null}return e}function Xm(e){return!e.type}function Zl(e){return e.type==="transaction"}function RM(e){return e.type==="replay_event"}function xf(e){return e.type==="feedback"}function Jm(e){const t=LM();return(n,r)=>{if(!e.isEnabled()||!Xm(n)&&!Zl(n))return;const o=r&&r.statusCode;if(!(t&&(!o||o<200||o>=300))){if(Zl(n)){AM(e,n);return}$M(e,n)}}}function AM(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function $M(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||setTimeout(()=>{e.sendBufferedReplayOrFlush()})}function LM(){const e=Ir();if(!e)return!1;const t=e.getTransport();return t&&t.send.__sentry__baseTransport__||!1}function VM(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function FM(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:He.Custom,timestamp:t.timestamp*1e3,data:{timestamp:t.timestamp,tag:"breadcrumb",payload:{category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function HM(e,t){return e.recordingMode!=="buffer"||t.message===Ku||!t.exception||t.type?!1:jm(e.getOptions().errorSampleRate)}function UM(e,t=!1){const n=t?Jm(e):void 0;return Object.assign((r,o)=>e.isEnabled()?RM(r)?(delete r.breadcrumbs,r):!Xm(r)&&!Zl(r)&&!xf(r)||!e.checkAndHandleExpiredSession()?r:xf(r)?(e.flush(),r.contexts.feedback.replay_id=e.getSessionId(),FM(e,r),r):VM(r,o)&&!e.getOptions()._experiments.captureExceptions?(ft&&ne.log("[Replay] Ignoring error from rrweb internals",r),null):((HM(e,r)||e.recordingMode==="session")&&(r.tags={...r.tags,replayId:e.getSessionId()}),n&&n(r,{statusCode:200}),r):r,{id:"Replay"})}function ms(e,t){return t.map(({type:n,start:r,end:o,name:i,data:s})=>{const l=e.throttledAddEvent({type:He.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:o,data:s}}});return typeof l=="string"?Promise.resolve(null):l})}function zM(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function jM(e){return t=>{if(!e.isEnabled())return;const n=zM(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(ms(e,[n]),!1)))}}function WM(e,t){return ft&&e.getOptions()._experiments.traceInternals?!1:MD(t,tt())}function vs(e,t){e.isEnabled()&&t!==null&&(WM(e,t.name)||e.addUpdate(()=>(ms(e,[t]),!0)))}function qM(e){const{startTimestamp:t,endTimestamp:n,fetchData:r,response:o}=e;if(!n)return null;const{method:i,url:s}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:s,data:{method:i,statusCode:o?o.status:void 0}}}function YM(e){return t=>{if(!e.isEnabled())return;const n=qM(t);vs(e,n)}}function GM(e){const{startTimestamp:t,endTimestamp:n,xhr:r}=e,o=r[br];if(!t||!n||!o)return null;const{method:i,url:s,status_code:l}=o;return s===void 0?null:{type:"resource.xhr",name:s,start:t/1e3,end:n/1e3,data:{method:i,statusCode:l}}}function KM(e){return t=>{if(!e.isEnabled())return;const n=GM(t);vs(e,n)}}function gs(e,t){if(e)try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=tv(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Qm(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Zm(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[tv(e)];if(!e)return[void 0]}catch{return ft&&ne.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ft&&ne.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Mi(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function ev(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:s,request:l,response:u}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:Yn({method:i,statusCode:s,request:l,response:u})}}function To(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function kr(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:i}=XM(n);return r.body=o,i&&i.length>0&&(r._meta={warnings:i}),r}function eu(e,t){return Object.keys(e).reduce((n,r)=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=e[r]),n},{})}function tv(e){return new URLSearchParams(e).toString()}function XM(e){if(!e||typeof e!="string")return{body:e};const t=e.length>hf,n=JM(e);if(t){const r=e.slice(0,hf);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function JM(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Ri(e,t){const n=QM(e);return Ra(n,t)}function QM(e,t=dt.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(dt.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function ZM(e,t,n){try{const r=await t3(e,t,n),o=ev("resource.fetch",r);vs(n.replay,o)}catch(r){ft&&ne.error("[Replay] Failed to capture fetch breadcrumb",r)}}function e3(e,t,n){const{input:r,response:o}=t,i=r?nv(r):void 0,s=gs(i,n.textEncoder),l=o?Qm(o.headers.get("content-length")):void 0;s!==void 0&&(e.data.request_body_size=s),l!==void 0&&(e.data.response_body_size=l)}async function t3(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r}=t,{url:s,method:l,status_code:u=0,request_body_size:c,response_body_size:f}=e.data,p=Ri(s,n.networkDetailAllowUrls)&&!Ri(s,n.networkDetailDenyUrls),h=p?n3(n,t.input,c):To(c),m=await r3(p,n,t.response,f);return{startTimestamp:o,endTimestamp:i,url:s,method:l,statusCode:u,request:h,response:m}}function n3({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?i3(n,t):{};if(!e)return kr(o,r,void 0);const i=nv(n),[s,l]=Zm(i),u=kr(o,r,s);return l?Mi(u,l):u}async function r3(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},o,i){if(!e&&i!==void 0)return To(i);const s=o?rv(o.headers,r):{};if(!o||!t&&i!==void 0)return kr(s,i,void 0);const[l,u]=await o3(o),c=a3(l,{networkCaptureBodies:t,textEncoder:n,responseBodySize:i,captureDetails:e,headers:s});return u?Mi(c,u):c}function a3(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:r,captureDetails:o,headers:i}){try{const s=e&&e.length&&r===void 0?gs(e,n):r;return o?t?kr(i,s,e):kr(i,s,void 0):To(s)}catch(s){return ft&&ne.warn("[Replay] Failed to serialize response body",s),kr(i,r,void 0)}}async function o3(e){const t=s3(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await l3(t)]}catch(n){return ft&&ne.warn("[Replay] Failed to get text body from response",n),[void 0,"BODY_PARSE_ERROR"]}}function nv(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function rv(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function i3(e,t){return e.length===1&&typeof e[0]!="string"?Pf(e[0],t):e.length===2?Pf(e[1],t):{}}function Pf(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?rv(n,t):Array.isArray(n)?{}:eu(n,t):{}}function s3(e){try{return e.clone()}catch(t){ft&&ne.warn("[Replay] Failed to clone response body",t)}}function l3(e){return new Promise((t,n)=>{const r=setTimeout(()=>n(new Error("Timeout while trying to read response body")),500);u3(e).then(o=>t(o),o=>n(o)).finally(()=>clearTimeout(r))})}async function u3(e){return await e.text()}async function c3(e,t,n){try{const r=f3(e,t,n),o=ev("resource.xhr",r);vs(n.replay,o)}catch(r){ft&&ne.error("[Replay] Failed to capture xhr breadcrumb",r)}}function d3(e,t,n){const{xhr:r,input:o}=t;if(!r)return;const i=gs(o,n.textEncoder),s=r.getResponseHeader("content-length")?Qm(r.getResponseHeader("content-length")):v3(r.response,r.responseType,n.textEncoder);i!==void 0&&(e.data.request_body_size=i),s!==void 0&&(e.data.response_body_size=s)}function f3(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r,input:s,xhr:l}=t,{url:u,method:c,status_code:f=0,request_body_size:p,response_body_size:h}=e.data;if(!u)return null;if(!l||!Ri(u,n.networkDetailAllowUrls)||Ri(u,n.networkDetailDenyUrls)){const C=To(p),I=To(h);return{startTimestamp:o,endTimestamp:i,url:u,method:c,statusCode:f,request:C,response:I}}const m=l[br],y=m?eu(m.request_headers,n.networkRequestHeaders):{},k=eu(p3(l),n.networkResponseHeaders),[_,w]=n.networkCaptureBodies?Zm(s):[void 0],[T,N]=n.networkCaptureBodies?h3(l):[void 0],b=kr(y,p,_),B=kr(k,h,T);return{startTimestamp:o,endTimestamp:i,url:u,method:c,statusCode:f,request:w?Mi(b,w):b,response:N?Mi(B,N):B}}function p3(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
105
- `).reduce((n,r)=>{const[o,i]=r.split(": ");return n[o.toLowerCase()]=i,n},{}):{}}function h3(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return m3(e.response,e.responseType)}catch(n){t.push(n)}return ft&&ne.warn("[Replay] Failed to get xhr response body",...t),[void 0]}function m3(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch{return ft&&ne.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ft&&ne.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function v3(e,t,n){try{const r=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return gs(r,n)}catch{return}}function g3(e){const t=Ir();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:o,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:l}=e.getOptions(),u={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:o,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:l};t&&t.on?t.on("beforeAddBreadcrumb",(c,f)=>y3(u,c,f)):(Bu(YM(e)),Mu(KM(e)))}catch{}}function y3(e,t,n){if(t.data)try{b3(t)&&w3(n)&&(d3(t,n,e),c3(t,n,e)),_3(t)&&k3(n)&&(e3(t,n,e),ZM(t,n,e))}catch{ft&&ne.warn("Error when enriching network breadcrumb")}}function b3(e){return e.category==="xhr"}function _3(e){return e.category==="fetch"}function w3(e){return e&&e.xhr}function k3(e){return e&&e.response}let If=null;function S3(e){return!!e.category}const C3=e=>t=>{if(!e.isEnabled())return;const n=T3(t);n&&hs(e,n)};function T3(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return If===t||!t||(If=t,!S3(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))?null:t.category==="console"?E3(t):cr(t)}function E3(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return cr(e);let n=!1;const r=t.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>Qo?(n=!0,`${o.slice(0,Qo)}…`):o;if(typeof o=="object")try{const i=An(o,7);return JSON.stringify(i).length>Qo?(n=!0,`${JSON.stringify(i,null,2).slice(0,Qo)}…`):i}catch{}return o});return cr({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function x3(e){const t=tt().getScope(),n=Ir();t.addScopeListener(C3(e)),Mh(iM(e)),Xi(jM(e)),g3(e);const r=UM(e,!Df(n));n&&n.addEventProcessor?n.addEventProcessor(r):_D(r),Df(n)&&(n.on("afterSendEvent",Jm(e)),n.on("createDsc",o=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(o.replay_id=i)}),n.on("startTransaction",o=>{e.lastTransaction=o}),n.on("finishTransaction",o=>{e.lastTransaction=o}),n.on("beforeSendFeedback",(o,i)=>{const s=e.getSessionId();i&&i.includeReplay&&e.isEnabled()&&s&&(e.flush(),o.contexts&&o.contexts.feedback&&(o.contexts.feedback.replay_id=s))}))}function Df(e){return!!(e&&e.on)}async function P3(e){try{return Promise.all(ms(e,[I3(dt.performance.memory)]))}catch{return[]}}function I3(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function D3(e,t,n){let r,o,i;const s=n&&n.maxWait?Math.max(n.maxWait,t):0;function l(){return u(),r=e(),r}function u(){o!==void 0&&clearTimeout(o),i!==void 0&&clearTimeout(i),o=i=void 0}function c(){return o!==void 0||i!==void 0?l():r}function f(){return o&&clearTimeout(o),o=setTimeout(l,t),s&&i===void 0&&(i=setTimeout(l,s)),r}return f.cancel=u,f.flush=c,f}function O3(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){ft&&ne.warn("[Replay] Received replay event after session expired.");return}const o=r||!t;t=!0,e.clickDetector&&tM(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&o&&e.setInitialState(),!oc(e,n,o))return!0;if(!o)return!1;if(B3(e,o),e.session&&e.session.previousSessionId)return!0;if(e.recordingMode==="buffer"&&e.session&&e.eventBuffer){const i=e.eventBuffer.getEarliestTimestamp();i&&(Zt(`[Replay] Updating session start time to earliest event in buffer to ${new Date(i)}`,e.getOptions()._experiments.traceInternals),e.session.started=i,e.getOptions().stickySession&&ac(e.session))}return e.recordingMode==="session"&&e.flush(),!0})}}function N3(e){const t=e.getOptions();return{type:He.Custom,timestamp:Date.now(),data:{tag:"options",payload:{sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function B3(e,t){!t||!e.session||e.session.segmentId!==0||oc(e,N3(e),!1)}function M3(e,t,n,r){return $a(Uh(e,$u(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function R3({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
106
- `;if(typeof e=="string")n=`${r}${e}`;else{const i=new TextEncoder().encode(r);n=new Uint8Array(i.length+e.length),n.set(i),n.set(e,i.length)}return n}async function A3({client:e,scope:t,replayId:n,event:r}){const o=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:n,integrations:o};e.emit&&e.emit("preprocessEvent",r,i);const s=await Xh(e.getOptions(),r,i,t,e);if(!s)return null;s.platform=s.platform||"javascript";const l=e.getSdkMetadata&&e.getSdkMetadata(),{name:u,version:c}=l&&l.sdk||{};return s.sdk={...s.sdk,name:u||"sentry.javascript.unknown",version:c||"0.0.0"},s}async function $3({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:i}){const s=R3({recordingData:e,headers:{segment_id:n}}),{urls:l,errorIds:u,traceIds:c,initialTimestamp:f}=r,p=tt(),h=p.getClient(),m=p.getScope(),y=h&&h.getTransport(),k=h&&h.getDsn();if(!h||!y||!k||!i.sampled)return;const _={type:xN,replay_start_timestamp:f/1e3,timestamp:o/1e3,error_ids:u,trace_ids:c,urls:l,replay_id:t,segment_id:n,replay_type:i.sampled},w=await A3({scope:m,client:h,replayId:t,event:_});if(!w){h.recordDroppedEvent("event_processor","replay",_),Zt("An event processor returned `null`, will not send event.");return}delete w.sdkProcessingMetadata;const T=M3(w,s,k,h.getOptions().tunnel);let N;try{N=await y.send(T)}catch(B){const C=new Error(Ku);try{C.cause=B}catch{}throw C}if(!N)return N;if(typeof N.statusCode=="number"&&(N.statusCode<200||N.statusCode>=300))throw new av(N.statusCode);const b=jh({},N);if(zh(b,"replay"))throw new ov(b);return N}class av extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class ov extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function iv(e,t={count:0,interval:BN}){const{recordingData:n,options:r}=e;if(n.length)try{return await $3(e),!0}catch(o){if(o instanceof av||o instanceof ov)throw o;if(ZI("Replays",{_retryCount:t.count}),ft&&r._experiments&&r._experiments.captureExceptions&&Zi(o),t.count>=MN){const i=new Error(`${Ku} - max retries exceeded`);try{i.cause=o}catch{}throw i}return t.interval*=++t.count,new Promise((i,s)=>{setTimeout(async()=>{try{await iv(e,t),i(!0)}catch(l){s(l)}},t.interval)})}}const sv="__THROTTLED",L3="__SKIPPED";function V3(e,t,n){const r=new Map,o=l=>{const u=l-n;r.forEach((c,f)=>{f<u&&r.delete(f)})},i=()=>[...r.values()].reduce((l,u)=>l+u,0);let s=!1;return(...l)=>{const u=Math.floor(Date.now()/1e3);if(o(u),i()>=t){const f=s;return s=!0,f?L3:sv}s=!1;const c=r.get(u)||0;return r.set(u,c+1),e(...l)}}class gr{constructor({options:t,recordingOptions:n}){gr.prototype.__init.call(this),gr.prototype.__init2.call(this),gr.prototype.__init3.call(this),gr.prototype.__init4.call(this),gr.prototype.__init5.call(this),gr.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:PN,sessionIdleExpire:IN},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=D3(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=V3((s,l)=>BM(this,s,l),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:o}=this.getOptions(),i=r?{threshold:Math.min(RN,r),timeout:r,scrollTimeout:AN,ignoreSelector:o?o.join(","):""}:void 0;i&&(this.clickDetector=new JB(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options;if(!(n<=0&&r<=0)){if(this._initializeSessionForSampling(t),!this.session){this._handleException(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",va(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session")throw new Error("Replay recording is already in progress");if(this._isEnabled&&this.recordingMode==="buffer")throw new Error("Replay buffering is in progress, call `flush()` to save the replay");va("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);const t=rl({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");va("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const t=rl({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{this._stopRecording=wr({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:NN},emit:O3(this),onMutation:this._onMutationHandler})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this._handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{Zt(`[Replay] Stopping Replay${n?` triggered by ${n}`:""}`,this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,PM(this)}catch(r){this._handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Zt("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),Zt("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();Zt("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&Ql(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${dt.location.pathname}${dt.location.hash}${dt.location.search}`,n=`${dt.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===sv){const o=cr({category:"replay.throttled"});this.addUpdate(()=>!oc(this,{type:WB,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastTransaction||tt().getScope().getTransaction();if(!(!t||!["route","custom"].includes(t.metadata.source)))return t.name}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=TM({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(t){ft&&ne.error("[Replay]",t),ft&&this._options._experiments&&this._options._experiments.captureExceptions&&Zi(t)}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=rl({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return Ym(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{dt.document.addEventListener("visibilitychange",this._handleVisibilityChange),dt.addEventListener("blur",this._handleWindowBlur),dt.addEventListener("focus",this._handleWindowFocus),dt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(x3(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}this._performanceCleanupCallback=bM(this)}_removeListeners(){try{dt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),dt.removeEventListener("blur",this._handleWindowBlur),dt.removeEventListener("focus",this._handleWindowFocus),dt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this._handleException(t)}}__init(){this._handleVisibilityChange=()=>{dt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=cr({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=cr({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{cM(this,t)}}_doChangeToBackgroundTasks(t){!this.session||qm(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){Zt("[Replay] Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:He.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){const t=pM(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(ms(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){ft&&ne.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await P3(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),o=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await iv({replayId:t,recordingData:i,segmentId:o,eventContext:r,session:this.session,options:this.getOptions(),timestamp:n})}catch(n){this._handleException(n),this.stop({reason:"sendReplay"});const r=Ir();r&&r.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){ft&&ne.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,o=Date.now()-n;this._debouncedFlush.cancel();const i=o<this._options.minReplayDuration,s=o>this._options.maxReplayDuration+5e3;if(i||s){Zt(`[Replay] Session duration (${Math.floor(o/1e3)}s) is too ${i?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),i&&this._debouncedFlush();return}const l=this.eventBuffer;if(l&&this.session.segmentId===0&&!l.hasCheckout&&Zt("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(u){ft&&ne.error(u)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&ac(this.session)}__init6(){this._onMutationHandler=t=>{const n=t.length,r=this._options.mutationLimit,o=this._options.mutationBreadcrumbLimit,i=r&&n>r;if(n>o||i){const s=cr({category:"replay.mutations",data:{count:n,limit:i}});this._createCustomBreadcrumb(s)}return i?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function Xa(e,t,n,r){const o=typeof r=="string"?r.split(","):[],i=[...e,...o,...t];return typeof n<"u"&&(typeof n=="string"&&i.push(`.${n}`),Xn(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),i.join(",")}function F3({mask:e,unmask:t,block:n,unblock:r,ignore:o,blockClass:i,blockSelector:s,maskTextClass:l,maskTextSelector:u,ignoreClass:c}){const f=['base[href="/"]'],p=Xa(e,[".sentry-mask","[data-sentry-mask]"],l,u),h=Xa(t,[".sentry-unmask","[data-sentry-unmask]"]),m={maskTextSelector:p,unmaskTextSelector:h,blockSelector:Xa(n,[".sentry-block","[data-sentry-block]",...f],i,s),unblockSelector:Xa(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Xa(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],c)};return i instanceof RegExp&&(m.blockClass=i),l instanceof RegExp&&(m.maskTextClass=l),m}function H3({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:i}){return!r||o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?i:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}const Of='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',U3=["content-length","content-type","accept"];let Nf=!1;class ys{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=DN,flushMaxDelay:n=ON,minReplayDuration:r=$N,maxReplayDuration:o=mf,stickySession:i=!0,useCompression:s=!0,workerUrl:l,_experiments:u={},sessionSampleRate:c,errorSampleRate:f,maskAllText:p=!0,maskAllInputs:h=!0,blockAllMedia:m=!0,mutationBreadcrumbLimit:y=750,mutationLimit:k=1e4,slowClickTimeout:_=7e3,slowClickIgnoreSelectors:w=[],networkDetailAllowUrls:T=[],networkDetailDenyUrls:N=[],networkCaptureBodies:b=!0,networkRequestHeaders:B=[],networkResponseHeaders:C=[],mask:I=[],maskAttributes:F=["title","placeholder"],unmask:q=[],block:W=[],unblock:M=[],ignore:D=[],maskFn:$,beforeAddRecordingEvent:Y,beforeErrorSampling:X,blockClass:K,blockSelector:j,maskInputOptions:U,maskTextClass:S,maskTextSelector:H,ignoreClass:Z}={}){this.name=ys.id;const Q=F3({mask:I,unmask:q,block:W,unblock:M,ignore:D,blockClass:K,blockSelector:j,maskTextClass:S,maskTextSelector:H,ignoreClass:Z});if(this._recordingOptions={maskAllInputs:h,maskAllText:p,maskInputOptions:{...U||{},password:!0},maskTextFn:$,maskInputFn:$,maskAttributeFn:(V,E,P)=>H3({maskAttributes:F,maskAllText:p,privacyOptions:Q,key:V,value:E,el:P}),...Q,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:V=>{try{V.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,LN),maxReplayDuration:Math.min(o,mf),stickySession:i,sessionSampleRate:c,errorSampleRate:f,useCompression:s,workerUrl:l,blockAllMedia:m,maskAllInputs:h,maskAllText:p,mutationBreadcrumbLimit:y,mutationLimit:k,slowClickTimeout:_,slowClickIgnoreSelectors:w,networkDetailAllowUrls:T,networkDetailDenyUrls:N,networkCaptureBodies:b,networkRequestHeaders:Bf(B),networkResponseHeaders:Bf(C),beforeAddRecordingEvent:Y,beforeErrorSampling:X,_experiments:u},typeof c=="number"&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.
104
+ or you can use record.mirror to access the mirror instance during recording.`;let yf={map:{},getId(){return console.error(sa),-1},getNode(){return console.error(sa),null},removeNodeFromMap(){console.error(sa)},has(){return console.error(sa),!1},reset(){console.error(sa)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(yf=new Proxy(yf,{get(e,t,n){return t==="map"&&console.error(sa),Reflect.get(e,t,n)}}));function Co(e,t,n={}){let r=null,o=0;return function(...i){const s=Date.now();!o&&n.leading===!1&&(o=s);const l=t-(s-o),u=this;l<=0||l>t?(r&&(clearTimeout(r),r=null),o=s,e.apply(u,i)):!r&&n.trailing!==!1&&(r=setTimeout(()=>{o=n.leading===!1?0:Date.now(),r=null,e.apply(u,i)},l))}}function Cm(e,t,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(s){setTimeout(()=>{n.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>Cm(e,t,i||{},!0)}function ec(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}let Di=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Di=()=>new Date().getTime());function Tm(e){var t,n,r,o,i,s;const l=e.document;return{left:l.scrollingElement?l.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:(l==null?void 0:l.documentElement.scrollLeft)||((n=(t=l==null?void 0:l.body)===null||t===void 0?void 0:t.parentElement)===null||n===void 0?void 0:n.scrollLeft)||((r=l==null?void 0:l.body)===null||r===void 0?void 0:r.scrollLeft)||0,top:l.scrollingElement?l.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(l==null?void 0:l.documentElement.scrollTop)||((i=(o=l==null?void 0:l.body)===null||o===void 0?void 0:o.parentElement)===null||i===void 0?void 0:i.scrollTop)||((s=l==null?void 0:l.body)===null||s===void 0?void 0:s.scrollTop)||0}}function Em(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function xm(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Tn(e,t,n,r,o){if(!e)return!1;const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!i)return!1;const s=da(t,n);if(!o){const c=r&&i.matches(r);return s(i)&&!c}const l=Hr(i,s);let u=-1;return l<0?!1:(r&&(u=Hr(i,da(null,r))),l>-1&&u<0?!0:l<u)}function vB(e,t){return t.getId(e)!==-1}function tl(e,t){return t.getId(e)===So}function Pm(e,t){if(ao(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Pm(e.parentNode,t):!0:!0}function Gl(e){return!!e.changedTouches}function gB(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function Im(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Dm(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Kl(e){return!!(e!=null&&e.shadowRoot)}class yB{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){var n;return(n=this.styleIDMap.get(t))!==null&&n!==void 0?n:-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Nm(e){var t,n;let r=null;return((n=(t=e.getRootNode)===null||t===void 0?void 0:t.call(e))===null||n===void 0?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(r=e.getRootNode().host),r}function bB(e){let t=e,n;for(;n=Nm(t);)t=n;return t}function _B(e){const t=e.ownerDocument;if(!t)return!1;const n=bB(e);return t.contains(n)}function Om(e){const t=e.ownerDocument;return t?t.contains(e)||_B(e):!1}var He=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(He||{}),Fe=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Fe||{}),Jt=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Jt||{}),rr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(rr||{});function bf(e){return"__ln"in e}class wB{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=(n==null?void 0:n.next)||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&bf(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&bf(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const _f=(e,t)=>`${e}@${t}`;class kB{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new wB,o=u=>{let c=u,f=So;for(;f===So;)c=c&&c.nextSibling,f=c&&this.mirror.getId(c);return f},i=u=>{if(!u.parentNode||!Om(u))return;const c=ao(u.parentNode)?this.mirror.getId(Nm(u)):this.mirror.getId(u.parentNode),f=o(u);if(c===-1||f===-1)return r.addNode(u);const p=fa(u,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:h=>{Im(h,this.mirror)&&this.iframeManager.addIframe(h),Dm(h,this.mirror)&&this.stylesheetManager.trackLinkElement(h),Kl(u)&&this.shadowDomManager.addShadowRoot(u.shadowRoot,this.doc)},onIframeLoad:(h,m)=>{this.iframeManager.attachIframe(h,m),this.shadowDomManager.observeAttachShadow(h)},onStylesheetLoad:(h,m)=>{this.stylesheetManager.attachLinkElement(h,m)}});p&&(t.push({parentId:c,nextId:f,node:p}),n.add(p.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const u of this.movedSet)wf(this.removes,u,this.mirror)&&!this.movedSet.has(u.parentNode)||i(u);for(const u of this.addedSet)!kf(this.droppedSet,u)&&!wf(this.removes,u,this.mirror)||kf(this.movedSet,u)?i(u):this.droppedSet.add(u);let s=null;for(;r.length;){let u=null;if(s){const c=this.mirror.getId(s.value.parentNode),f=o(s.value);c!==-1&&f!==-1&&(u=s)}if(!u){let c=r.tail;for(;c;){const f=c;if(c=c.previous,f){const p=this.mirror.getId(f.value.parentNode);if(o(f.value)===-1)continue;if(p!==-1){u=f;break}else{const m=f.value;if(m.parentNode&&m.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const y=m.parentNode.host;if(this.mirror.getId(y)!==-1){u=f;break}}}}}}if(!u){for(;r.head;)r.removeNode(r.head.value);break}s=u.previous,r.removeNode(u.value),i(u.value)}const l={texts:this.texts.map(u=>({id:this.mirror.getId(u.node),value:u.value})).filter(u=>!n.has(u.id)).filter(u=>this.mirror.has(u.id)),attributes:this.attributes.map(u=>{const{attributes:c}=u;if(typeof c.style=="string"){const f=JSON.stringify(u.styleDiff),p=JSON.stringify(u._unchangedStyles);f.length<c.style.length&&(f+p).split("var(").length===c.style.split("var(").length&&(c.style=u.styleDiff)}return{id:this.mirror.getId(u.node),attributes:c}}).filter(u=>!n.has(u.id)).filter(u=>this.mirror.has(u.id)),removes:this.removes,adds:t};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.adds.length||(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(l))},this.processMutation=t=>{if(tl(t.target,this.mirror))return;let n;try{n=document.implementation.createHTMLDocument()}catch{n=this.doc}switch(t.type){case"characterData":{const r=t.target.textContent;!Tn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:Na(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&r?this.maskTextFn?this.maskTextFn(r):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{const r=t.target;let o=t.attributeName,i=t.target.getAttribute(o);if(o==="value"){const l=Ju(r),u=r.tagName;i=Pi(r,u,l);const c=ps({maskInputOptions:this.maskInputOptions,tagName:u,type:l}),f=Na(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);i=ko({isMasked:f,element:r,value:i,maskInputFn:this.maskInputFn})}if(Tn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===t.oldValue)return;let s=this.attributes.find(l=>l.node===t.target);if(r.tagName==="IFRAME"&&o==="src"&&!this.keepIframeSrcFn(i))if(!r.contentDocument)o="rr_src";else return;if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s)),o==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Sm(r.tagName,o)&&(s.attributes[o]=km(this.doc,Da(r.tagName),Da(o),i,r,this.maskAttributeFn),o==="style")){const l=n.createElement("span");t.oldValue&&l.setAttribute("style",t.oldValue);for(const u of Array.from(r.style)){const c=r.style.getPropertyValue(u),f=r.style.getPropertyPriority(u);c!==l.style.getPropertyValue(u)||f!==l.style.getPropertyPriority(u)?f===""?s.styleDiff[u]=c:s.styleDiff[u]=[c,f]:s._unchangedStyles[u]=[c,f]}for(const u of Array.from(l.style))r.style.getPropertyValue(u)===""&&(s.styleDiff[u]=!1)}break}case"childList":{if(Tn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{const o=this.mirror.getId(r),i=ao(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Tn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||tl(r,this.mirror)||!vB(r,this.mirror)||(this.addedSet.has(r)?(Xl(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&o===-1||Pm(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[_f(o,i)]?Xl(this.movedSet,r):this.removes.push({parentId:i,id:o,isShadow:ao(t.target)&&oo(t.target)?!0:void 0})),this.mapRemoves.push(r))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(tl(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[_f(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Tn(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),Kl(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Xl(e,t){e.delete(t),t.childNodes.forEach(n=>Xl(e,n))}function wf(e,t,n){return e.length===0?!1:Bm(e,t,n)}function Bm(e,t,n){const{parentNode:r}=t;if(!r)return!1;const o=n.getId(r);return e.some(i=>i.id===o)?!0:Bm(e,r,n)}function kf(e,t){return e.size===0?!1:Mm(e,t)}function Mm(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Mm(e,n):!1}let so;function SB(e){so=e}function CB(){so=void 0}const Ye=e=>so?(...n)=>{try{return e(...n)}catch(r){if(so&&so(r)===!0)return()=>{};throw r}}:e,pa=[];function Oo(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Rm(e,t){var n,r;const o=new kB;pa.push(o),o.init(e);let i=window.MutationObserver||window.__rrMutationObserver;const s=(r=(n=window==null?void 0:window.Zone)===null||n===void 0?void 0:n.__symbol__)===null||r===void 0?void 0:r.call(n,"MutationObserver");s&&window[s]&&(i=window[s]);const l=new i(Ye(u=>{e.onMutation&&e.onMutation(u)===!1||o.processMutations.bind(o)(u)}));return l.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),l}function TB({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const o=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let s=[],l;const u=Co(Ye(p=>{const h=Date.now()-l;e(s.map(m=>(m.timeOffset-=h,m)),p),s=[],l=null}),i),c=Ye(Co(Ye(p=>{const h=Oo(p),{clientX:m,clientY:y}=Gl(p)?p.changedTouches[0]:p;l||(l=Di()),s.push({x:m,y,id:r.getId(h),timeOffset:Di()-l}),u(typeof DragEvent<"u"&&p instanceof DragEvent?Fe.Drag:p instanceof MouseEvent?Fe.MouseMove:Fe.TouchMove)}),o,{trailing:!1})),f=[tn("mousemove",c,n),tn("touchmove",c,n),tn("drag",c,n)];return Ye(()=>{f.forEach(p=>p())})}function EB({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const l=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[];let c=null;const f=p=>h=>{const m=Oo(h);if(Tn(m,r,o,i,!0))return;let y=null,k=p;if("pointerType"in h){switch(h.pointerType){case"mouse":y=rr.Mouse;break;case"touch":y=rr.Touch;break;case"pen":y=rr.Pen;break}y===rr.Touch?Jt[p]===Jt.MouseDown?k="TouchStart":Jt[p]===Jt.MouseUp&&(k="TouchEnd"):rr.Pen}else Gl(h)&&(y=rr.Touch);y!==null?(c=y,(k.startsWith("Touch")&&y===rr.Touch||k.startsWith("Mouse")&&y===rr.Mouse)&&(y=null)):Jt[p]===Jt.Click&&(y=c,c=null);const b=Gl(h)?h.changedTouches[0]:h;if(!b)return;const w=n.getId(m),{clientX:T,clientY:O}=b;Ye(e)(Object.assign({type:Jt[k],id:w,x:T,y:O},y!==null&&{pointerType:y}))};return Object.keys(Jt).filter(p=>Number.isNaN(Number(p))&&!p.endsWith("_Departed")&&l[p]!==!1).forEach(p=>{let h=Da(p);const m=f(p);if(window.PointerEvent)switch(Jt[p]){case Jt.MouseDown:case Jt.MouseUp:h=h.replace("mouse","pointer");break;case Jt.TouchStart:case Jt.TouchEnd:return}u.push(tn(h,m,t))}),Ye(()=>{u.forEach(p=>p())})}function Am({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){const l=Ye(Co(Ye(u=>{const c=Oo(u);if(!c||Tn(c,r,o,i,!0))return;const f=n.getId(c);if(c===t&&t.defaultView){const p=Tm(t.defaultView);e({id:f,x:p.left,y:p.top})}else e({id:f,x:c.scrollLeft,y:c.scrollTop})}),s.scroll||100));return tn("scroll",l,t)}function xB({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const o=Ye(Co(Ye(()=>{const i=Em(),s=xm();(n!==i||r!==s)&&(e({width:Number(s),height:Number(i)}),n=i,r=s)}),200));return tn("resize",o,t)}const PB=["INPUT","TEXTAREA","SELECT"],Sf=new WeakMap;function IB({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:l,maskInputOptions:u,maskInputFn:c,sampling:f,userTriggeredOnInput:p,maskTextClass:h,unmaskTextClass:m,maskTextSelector:y,unmaskTextSelector:k}){function b(I){let F=Oo(I);const q=I.isTrusted,W=F&&Yl(F.tagName);if(W==="OPTION"&&(F=F.parentElement),!F||!W||PB.indexOf(W)<0||Tn(F,r,o,i,!0))return;const M=F;if(M.classList.contains(s)||l&&M.matches(l))return;const D=Ju(F);let $=Pi(M,W,D),Y=!1;const X=ps({maskInputOptions:u,tagName:W,type:D}),K=Na(F,h,y,m,k,X);(D==="radio"||D==="checkbox")&&(Y=F.checked),$=ko({isMasked:K,element:F,value:$,maskInputFn:c}),w(F,p?{text:$,isChecked:Y,userTriggered:q}:{text:$,isChecked:Y});const j=F.name;D==="radio"&&j&&Y&&t.querySelectorAll(`input[type="radio"][name="${j}"]`).forEach(U=>{if(U!==F){const S=ko({isMasked:K,element:U,value:Pi(U,W,D),maskInputFn:c});w(U,p?{text:S,isChecked:!Y,userTriggered:!1}:{text:S,isChecked:!Y})}})}function w(I,F){const q=Sf.get(I);if(!q||q.text!==F.text||q.isChecked!==F.isChecked){Sf.set(I,F);const W=n.getId(I);Ye(e)(Object.assign(Object.assign({},F),{id:W}))}}const O=(f.input==="last"?["change"]:["input","change"]).map(I=>tn(I,Ye(b),t)),_=t.defaultView;if(!_)return()=>{O.forEach(I=>I())};const B=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),C=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return B&&B.set&&O.push(...C.map(I=>Cm(I[0],I[1],{set(){Ye(b)({target:this,isTrusted:!1})}},!1,_))),Ye(()=>{O.forEach(I=>I())})}function Ni(e){const t=[];function n(r,o){if(Zo("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Zo("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Zo("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Zo("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const s=Array.from(r.parentRule.cssRules).indexOf(r);o.unshift(s)}else if(r.parentStyleSheet){const s=Array.from(r.parentStyleSheet.cssRules).indexOf(r);o.unshift(s)}return o}return n(e,t)}function mr(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function DB({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Ye((f,p,h)=>{const[m,y]=h,{id:k,styleId:b}=mr(p,t,n.styleMirror);return(k&&k!==-1||b&&b!==-1)&&e({id:k,styleId:b,adds:[{rule:m,index:y}]}),f.apply(p,h)})});const i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:Ye((f,p,h)=>{const[m]=h,{id:y,styleId:k}=mr(p,t,n.styleMirror);return(y&&y!==-1||k&&k!==-1)&&e({id:y,styleId:k,removes:[{index:m}]}),f.apply(p,h)})});let s;r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:Ye((f,p,h)=>{const[m]=h,{id:y,styleId:k}=mr(p,t,n.styleMirror);return(y&&y!==-1||k&&k!==-1)&&e({id:y,styleId:k,replace:m}),f.apply(p,h)})}));let l;r.CSSStyleSheet.prototype.replaceSync&&(l=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:Ye((f,p,h)=>{const[m]=h,{id:y,styleId:k}=mr(p,t,n.styleMirror);return(y&&y!==-1||k&&k!==-1)&&e({id:y,styleId:k,replaceSync:m}),f.apply(p,h)})}));const u={};ei("CSSGroupingRule")?u.CSSGroupingRule=r.CSSGroupingRule:(ei("CSSMediaRule")&&(u.CSSMediaRule=r.CSSMediaRule),ei("CSSConditionRule")&&(u.CSSConditionRule=r.CSSConditionRule),ei("CSSSupportsRule")&&(u.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(u).forEach(([f,p])=>{c[f]={insertRule:p.prototype.insertRule,deleteRule:p.prototype.deleteRule},p.prototype.insertRule=new Proxy(c[f].insertRule,{apply:Ye((h,m,y)=>{const[k,b]=y,{id:w,styleId:T}=mr(m.parentStyleSheet,t,n.styleMirror);return(w&&w!==-1||T&&T!==-1)&&e({id:w,styleId:T,adds:[{rule:k,index:[...Ni(m),b||0]}]}),h.apply(m,y)})}),p.prototype.deleteRule=new Proxy(c[f].deleteRule,{apply:Ye((h,m,y)=>{const[k]=y,{id:b,styleId:w}=mr(m.parentStyleSheet,t,n.styleMirror);return(b&&b!==-1||w&&w!==-1)&&e({id:b,styleId:w,removes:[{index:[...Ni(m),k]}]}),h.apply(m,y)})})}),Ye(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,s&&(r.CSSStyleSheet.prototype.replace=s),l&&(r.CSSStyleSheet.prototype.replaceSync=l),Object.entries(u).forEach(([f,p])=>{p.prototype.insertRule=c[f].insertRule,p.prototype.deleteRule=c[f].deleteRule})})}function $m({mirror:e,stylesheetManager:t},n){var r,o,i;let s=null;n.nodeName==="#document"?s=e.getId(n):s=e.getId(n.host);const l=n.nodeName==="#document"?(r=n.defaultView)===null||r===void 0?void 0:r.Document:(i=(o=n.ownerDocument)===null||o===void 0?void 0:o.defaultView)===null||i===void 0?void 0:i.ShadowRoot,u=l!=null&&l.prototype?Object.getOwnPropertyDescriptor(l==null?void 0:l.prototype,"adoptedStyleSheets"):void 0;return s===null||s===-1||!l||!u?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get(){var c;return(c=u.get)===null||c===void 0?void 0:c.call(this)},set(c){var f;const p=(f=u.set)===null||f===void 0?void 0:f.call(this,c);if(s!==null&&s!==-1)try{t.adoptStyleSheets(c,s)}catch{}return p}}),Ye(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})}))}function NB({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:Ye((l,u,c)=>{var f;const[p,h,m]=c;if(n.has(p))return i.apply(u,[p,h,m]);const{id:y,styleId:k}=mr((f=u.parentRule)===null||f===void 0?void 0:f.parentStyleSheet,t,r.styleMirror);return(y&&y!==-1||k&&k!==-1)&&e({id:y,styleId:k,set:{property:p,value:h,priority:m},index:Ni(u.parentRule)}),l.apply(u,c)})});const s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:Ye((l,u,c)=>{var f;const[p]=c;if(n.has(p))return s.apply(u,[p]);const{id:h,styleId:m}=mr((f=u.parentRule)===null||f===void 0?void 0:f.parentStyleSheet,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,remove:{property:p},index:Ni(u.parentRule)}),l.apply(u,c)})}),Ye(()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s})}function OB({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:s}){const l=Ye(c=>Co(Ye(f=>{const p=Oo(f);if(!p||Tn(p,t,n,r,!0))return;const{currentTime:h,volume:m,muted:y,playbackRate:k}=p;e({type:c,id:o.getId(p),currentTime:h,volume:m,muted:y,playbackRate:k})}),i.media||500)),u=[tn("play",l(0),s),tn("pause",l(1),s),tn("seeked",l(2),s),tn("volumechange",l(3),s),tn("ratechange",l(4),s)];return Ye(()=>{u.forEach(c=>c())})}function BB({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(u,c,f){const p=new i(u,c,f);return o.set(p,{family:u,buffer:typeof c!="string",descriptors:f,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))}),p};const s=ec(t.fonts,"add",function(l){return function(u){return setTimeout(Ye(()=>{const c=o.get(u);c&&(e(c),o.delete(u))}),0),l.apply(this,[u])}});return r.push(()=>{n.FontFace=i}),r.push(s),Ye(()=>{r.forEach(l=>l())})}function MB(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:s}=e;let l=!0;const u=Ye(()=>{const c=t.getSelection();if(!c||l&&(c!=null&&c.isCollapsed))return;l=c.isCollapsed||!1;const f=[],p=c.rangeCount||0;for(let h=0;h<p;h++){const m=c.getRangeAt(h),{startContainer:y,startOffset:k,endContainer:b,endOffset:w}=m;Tn(y,r,o,i,!0)||Tn(b,r,o,i,!0)||f.push({start:n.getId(y),startOffset:k,end:n.getId(b),endOffset:w})}s({ranges:f})});return u(),tn("selectionchange",u)}function RB({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:ec(n.customElements,"define",function(o){return function(i,s,l){try{t({define:{name:i}})}catch{}return o.apply(this,[i,s,l])}})}function AB(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};const r=Rm(e,e.doc),o=TB(e),i=EB(e),s=Am(e),l=xB(e,{win:n}),u=IB(e),c=OB(e),f=DB(e,{win:n}),p=$m(e,e.doc),h=NB(e,{win:n}),m=e.collectFonts?BB(e):()=>{},y=MB(e),k=RB(e);return Ye(()=>{pa.forEach(b=>b.reset()),r.disconnect(),o(),i(),s(),l(),u(),c(),f(),p(),h(),m(),y(),k()})}function Zo(e){return typeof window[e]<"u"}function ei(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Jl{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,o){const i=r||this.getIdToRemoteIdMap(t),s=o||this.getRemoteIdToIdMap(t);let l=i.get(n);return l||(l=this.generateIdFn(),i.set(n,l),s.set(l,n)),l}getIds(t,n){const r=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return n.map(i=>this.getId(t,i,r,o))}getRemoteId(t,n,r){const o=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const i=o.get(n);return i||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(o=>this.getRemoteId(t,o,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class $B{constructor(){this.crossOriginIframeMirror=new Jl(Qu),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class LB{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Jl(Qu),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Jl(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){var r;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(r=this.loadListener)===null||r===void 0||r.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const o=this.crossOriginIframeMap.get(t.source);if(!o)return;const i=this.transformCrossOriginEvent(o,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(t,n){var r;switch(n.type){case He.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const o=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,o),this.patchRootIdOnNode(n.data.node,o),{timestamp:n.timestamp,type:He.IncrementalSnapshot,data:{source:Fe.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case He.Meta:case He.Load:case He.DomContentLoaded:return!1;case He.Plugin:return n;case He.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case He.IncrementalSnapshot:switch(n.data.source){case Fe.Mutation:return n.data.adds.forEach(o=>{this.replaceIds(o,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(o.node,t);const i=this.crossOriginIframeRootIdMap.get(t);i&&this.patchRootIdOnNode(o.node,i)}),n.data.removes.forEach(o=>{this.replaceIds(o,t,["parentId","id"])}),n.data.attributes.forEach(o=>{this.replaceIds(o,t,["id"])}),n.data.texts.forEach(o=>{this.replaceIds(o,t,["id"])}),n;case Fe.Drag:case Fe.TouchMove:case Fe.MouseMove:return n.data.positions.forEach(o=>{this.replaceIds(o,t,["id"])}),n;case Fe.ViewportResize:return!1;case Fe.MediaInteraction:case Fe.MouseInteraction:case Fe.Scroll:case Fe.CanvasMutation:case Fe.Input:return this.replaceIds(n.data,t,["id"]),n;case Fe.StyleSheetRule:case Fe.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case Fe.Font:return n;case Fe.Selection:return n.data.ranges.forEach(o=>{this.replaceIds(o,t,["start","end"])}),n;case Fe.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),(r=n.data.styles)===null||r===void 0||r.forEach(o=>{this.replaceStyleIds(o,t,["styleId"])}),n}}return!1}replace(t,n,r,o){for(const i of o)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=t.getIds(r,n[i]):n[i]=t.getId(r,n[i]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==Dt.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class VB{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class FB{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!oo(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const r=Rm(Object.assign(Object.assign({},this.bypassOptions),{doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Am(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push($m({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(ec(t.prototype,"attachShadow",function(o){return function(i){const s=o.call(this,i);return this.shadowRoot&&Om(this)&&r.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class HB{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}}class UB{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new yB,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},o=[];for(const i of t){let s;this.styleMirror.has(i)?s=this.styleMirror.getId(i):(s=this.styleMirror.add(i),o.push({styleId:s,rules:Array.from(i.rules||CSSRule,(l,u)=>({rule:_m(l),index:u}))})),r.styleIds.push(s)}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class zB{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(o=>o!==n)}add(t,n){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function Nt(e){const t=e;return t.timestamp=Di(),t}let Oi;const ar=qO();function wr(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:l="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:f="rr-mask",unmaskTextClass:p=null,maskTextSelector:h=null,unmaskTextSelector:m=null,inlineStylesheet:y=!0,maskAllInputs:k,maskInputOptions:b,slimDOMOptions:w,maskAttributeFn:T,maskInputFn:O,maskTextFn:_,packFn:B,sampling:C={},dataURLOptions:I={},mousemoveWait:F,recordCanvas:q=!1,recordCrossOriginIframes:W=!1,recordAfter:M=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:D=!1,collectFonts:$=!1,inlineImages:Y=!1,keepIframeSrcFn:X=()=>!1,ignoreCSSAttributes:K=new Set([]),errorHandler:j,onMutation:U,getCanvasManager:S}=e;SB(j);const H=W?window.parent===window:!0;let Z=!1;if(!H)try{window.parent.document&&(Z=!1)}catch{Z=!0}if(H&&!t)throw new Error("emit function is required");F!==void 0&&C.mousemove===void 0&&(C.mousemove=F),ar.reset();const Q=k===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:b!==void 0?b:{},V=w===!0||w==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:w==="all",headMetaDescKeywords:w==="all"}:w||{};gB();let E,P=0;const R=ve=>(B&&!Z&&(ve=B(ve)),ve),G=(ve,Qe)=>{var Te;if(!((Te=pa[0])===null||Te===void 0)&&Te.isFrozen()&&ve.type!==He.FullSnapshot&&!(ve.type===He.IncrementalSnapshot&&ve.data.source===Fe.Mutation)&&pa.forEach(se=>se.unfreeze()),H)t==null||t(R(ve),Qe);else if(Z){const se={type:"rrweb",event:R(ve),origin:window.location.origin,isCheckout:Qe};window.parent.postMessage(se,"*")}if(ve.type===He.FullSnapshot)E=ve,P=0;else if(ve.type===He.IncrementalSnapshot){if(ve.data.source===Fe.Mutation&&ve.data.isAttachIframe)return;P++;const se=r&&P>=r,ce=n&&ve.timestamp-E.timestamp>n;(se||ce)&&Ke(!0)}},ie=ve=>{G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.Mutation},ve)}))},oe=ve=>G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.Scroll},ve)})),Ie=ve=>G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.CanvasMutation},ve)})),Ee=ve=>G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.AdoptedStyleSheet},ve)})),fe=new UB({mutationCb:ie,adoptedStyleSheetCb:Ee}),Be=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new $B:new LB({mirror:ar,mutationCb:ie,stylesheetManager:fe,recordCrossOriginIframes:W,wrappedEmit:G}),$e=new zB,ze=S?S({recordCanvas:q,blockClass:o,blockSelector:i,unblockSelector:s,sampling:C.canvas,dataURLOptions:I}):new HB,Ge=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new VB:new FB({mutationCb:ie,scrollCb:oe,bypassOptions:{onMutation:U,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:c,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m,inlineStylesheet:y,maskInputOptions:Q,dataURLOptions:I,maskAttributeFn:T,maskTextFn:_,maskInputFn:O,recordCanvas:q,inlineImages:Y,sampling:C,slimDOMOptions:V,iframeManager:Be,stylesheetManager:fe,canvasManager:ze,keepIframeSrcFn:X,processedNodeManager:$e},mirror:ar}),Ke=(ve=!1)=>{G(Nt({type:He.Meta,data:{href:window.location.href,width:xm(),height:Em()}}),ve),fe.reset(),Ge.init(),pa.forEach(Te=>Te.lock());const Qe=mB(document,{mirror:ar,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:c,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m,inlineStylesheet:y,maskAllInputs:Q,maskAttributeFn:T,maskInputFn:O,maskTextFn:_,slimDOM:V,dataURLOptions:I,recordCanvas:q,inlineImages:Y,onSerialize:Te=>{Im(Te,ar)&&Be.addIframe(Te),Dm(Te,ar)&&fe.trackLinkElement(Te),Kl(Te)&&Ge.addShadowRoot(Te.shadowRoot,document)},onIframeLoad:(Te,se)=>{Be.attachIframe(Te,se),Ge.observeAttachShadow(Te)},onStylesheetLoad:(Te,se)=>{fe.attachLinkElement(Te,se)},keepIframeSrcFn:X});if(!Qe)return console.warn("Failed to snapshot the document");G(Nt({type:He.FullSnapshot,data:{node:Qe,initialOffset:Tm(window)}}),ve),pa.forEach(Te=>Te.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&fe.adoptStyleSheets(document.adoptedStyleSheets,ar.getId(document))};Oi=Ke;try{const ve=[],Qe=se=>Ye(AB)({onMutation:U,mutationCb:ie,mousemoveCb:(ce,me)=>G(Nt({type:He.IncrementalSnapshot,data:{source:me,positions:ce}})),mouseInteractionCb:ce=>G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.MouseInteraction},ce)})),scrollCb:oe,viewportResizeCb:ce=>G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.ViewportResize},ce)})),inputCb:ce=>G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.Input},ce)})),mediaInteractionCb:ce=>G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.MediaInteraction},ce)})),styleSheetRuleCb:ce=>G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.StyleSheetRule},ce)})),styleDeclarationCb:ce=>G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.StyleDeclaration},ce)})),canvasMutationCb:Ie,fontCb:ce=>G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.Font},ce)})),selectionCb:ce=>{G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.Selection},ce)}))},customElementCb:ce=>{G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.CustomElement},ce)}))},blockClass:o,ignoreClass:l,ignoreSelector:u,maskAllText:c,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m,maskInputOptions:Q,inlineStylesheet:y,sampling:C,recordCanvas:q,inlineImages:Y,userTriggeredOnInput:D,collectFonts:$,doc:se,maskAttributeFn:T,maskInputFn:O,maskTextFn:_,keepIframeSrcFn:X,blockSelector:i,unblockSelector:s,slimDOMOptions:V,dataURLOptions:I,mirror:ar,iframeManager:Be,stylesheetManager:fe,shadowDomManager:Ge,processedNodeManager:$e,canvasManager:ze,ignoreCSSAttributes:K,plugins:[]},{});Be.addLoadListener(se=>{try{ve.push(Qe(se.contentDocument))}catch(ce){console.warn(ce)}});const Te=()=>{Ke(),ve.push(Qe(document))};return document.readyState==="interactive"||document.readyState==="complete"?Te():(ve.push(tn("DOMContentLoaded",()=>{G(Nt({type:He.DomContentLoaded,data:{}})),M==="DOMContentLoaded"&&Te()})),ve.push(tn("load",()=>{G(Nt({type:He.Load,data:{}})),M==="load"&&Te()},window))),()=>{ve.forEach(se=>se()),$e.destroy(),Oi=void 0,CB()}}catch(ve){console.warn(ve)}}function jB(e){if(!Oi)throw new Error("please take full snapshot after start recording");Oi(e)}wr.mirror=ar;wr.takeFullSnapshot=jB;const WB=3,qB=5;function tc(e){return e>9999999999?e:e*1e3}function nl(e){return e>9999999999?e/1e3:e}function hs(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:He.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:An(t,10,1e3)}}),t.category==="console")))}const YB="button,a";function Lm(e){return e.closest(YB)||e}function Vm(e){const t=Fm(e);return!t||!(t instanceof Element)?t:Lm(t)}function Fm(e){return GB(e)?e.target:e}function GB(e){return typeof e=="object"&&!!e&&"target"in e}let vr;function KB(e){return vr||(vr=[],XB()),vr.push(e),()=>{const t=vr?vr.indexOf(e):-1;t>-1&&vr.splice(t,1)}}function XB(){Bt(dt,"open",function(e){return function(...t){if(vr)try{vr.forEach(n=>n())}catch{}return e.apply(dt,t)}})}function JB(e,t,n){e.handleClick(t,n)}class QB{constructor(t,n,r=hs){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=KB(()=>{this._lastMutation=Cf()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(eM(n,this._ignoreSelector)||!tM(t))return;const r={timestamp:nl(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(o=>o.node===r.node&&Math.abs(o.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=nl(t)}registerScroll(t=Date.now()){this._lastScroll=nl(t)}registerClick(t){const n=Lm(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=Cf();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const o=this._clicks.indexOf(r);o>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!r&&!o,{clickCount:s,clickBreadcrumb:l}=t;if(i){const u=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,c=u<this._timeout*1e3?"mutation":"timeout",f={type:"default",message:l.message,timestamp:l.timestamp,category:"ui.slowClickDetected",data:{...l.data,url:dt.location.href,route:n.getCurrentRoute(),timeAfterClickMs:u,endReason:c,clickCount:s||1}};this._addBreadcrumbEvent(n,f);return}if(s>1){const u={type:"default",message:l.message,timestamp:l.timestamp,category:"ui.multiClick",data:{...l.data,url:dt.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(n,u)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}}const ZB=["A","BUTTON","INPUT"];function eM(e,t){return!!(!ZB.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function tM(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Cf(){return Date.now()/1e3}function nM(e,t){try{if(!rM(t))return;const{source:n}=t.data;if(n===Fe.Mutation&&e.registerMutation(t.timestamp),n===Fe.Scroll&&e.registerScroll(t.timestamp),aM(t)){const{type:r,id:o}=t.data,i=wr.mirror.getNode(o);i instanceof HTMLElement&&r===Jt.Click&&e.registerClick(i)}}catch{}}function rM(e){return e.type===WB}function aM(e){return e.data.source===Fe.MouseInteraction}function cr(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Bi;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Bi||(Bi={}));const oM=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled"]);function iM(e){const t={};for(const n in e)if(oM.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const sM=e=>t=>{if(!e.isEnabled())return;const n=lM(t);if(!n)return;const r=t.name==="click",o=r?t.event:void 0;r&&e.clickDetector&&o&&o.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&JB(e.clickDetector,n,Vm(t.event)),hs(e,n)};function Hm(e,t){const n=wr.mirror.getId(e),r=n&&wr.mirror.getNode(n),o=r&&wr.mirror.getMeta(r),i=o&&cM(o)?o:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(s=>s.type===Bi.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:iM(i.attributes)}}:{}}}function lM(e){const{target:t,message:n}=uM(e);return cr({category:`ui.${e.name}`,...Hm(t,n)})}function uM(e){const t=e.name==="click";let n,r=null;try{r=t?Vm(e.event):Fm(e.event),n=Sr(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function cM(e){return e.type===Bi.Element}function dM(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=fM(t);n&&hs(e,n)}function fM(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i,target:s}=e;if(!s||pM(s)||!i)return null;const l=t||r||o,u=i.length===1;if(!l&&u)return null;const c=Sr(s,{maxStringLength:200})||"<unknown>",f=Hm(s,c);return cr({category:"ui.keyDown",message:c,data:{...f.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i}})}function pM(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const Tf={resource:yM,paint:vM,navigation:gM};function hM(e){return e.map(mM).filter(Boolean)}function mM(e){return Tf[e.entryType]?Tf[e.entryType](e):null}function Oa(e){return((In||dt.performance.timeOrigin)+e)/1e3}function vM(e){const{duration:t,entryType:n,name:r,startTime:o}=e,i=Oa(o);return{type:n,name:r,start:i,end:i+t,data:void 0}}function gM(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:l,domContentLoadedEventEnd:u,domInteractive:c,loadEventStart:f,loadEventEnd:p,redirectCount:h,startTime:m,transferSize:y,type:k}=e;return o===0?null:{type:`${t}.${k}`,start:Oa(m),end:Oa(i),name:n,data:{size:y,decodedBodySize:r,encodedBodySize:s,duration:o,domInteractive:c,domContentLoadedEventStart:l,domContentLoadedEventEnd:u,loadEventStart:f,loadEventEnd:p,domComplete:i,redirectCount:h}}}function yM(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:l,responseStatus:u,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Oa(i),end:Oa(o),name:r,data:{size:c,statusCode:u,decodedBodySize:s,encodedBodySize:l}}}function bM(e){const t=e.entries,n=t[t.length-1],r=n?n.element:void 0,o=e.value,i=Oa(o);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:i,end:i,data:{value:o,size:o,nodeId:r?wr.mirror.getId(r):void 0}}}function _M(e){function t(o){e.performanceEntries.includes(o)||e.performanceEntries.push(o)}function n({entries:o}){o.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(o=>{r.push(ds(o,n))}),r.push(vm(({metric:o})=>{e.replayPerformanceEntries.push(bM(o))})),()=>{r.forEach(o=>o())}}const ft=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,wM='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function kM(){const e=new Blob([wM]);return URL.createObjectURL(e)}function Zt(e,t){ft&&(ne.info(e),t&&Um(e))}function ga(e,t){ft&&(ne.info(e),t&&setTimeout(()=>{Um(e)},0))}function Um(e){tt().addBreadcrumb({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class nc extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Xu}.`)}}class zm{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>Xu)throw new nc;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?tc(t):null}}class SM{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){Zt("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((o,i)=>{const s=({data:l})=>{const u=l;if(u.method===t&&u.id===r){if(this._worker.removeEventListener("message",s),!u.success){ft&&ne.error("[Replay]",u.response),i(new Error("Error in compression worker"));return}o(u.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class CM{constructor(t){this._worker=new SM(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=tc(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>Xu?Promise.reject(new nc):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear")}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class TM{constructor(t){this._fallback=new zm,this._compression=new CM(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch{Zt("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n}=this._fallback,r=[];for(const o of t)r.push(this._compression.addEvent(o));this._compression.hasCheckout=n,this._used=this._compression;try{await Promise.all(r)}catch(o){ft&&ne.warn("[Replay] Failed to add events when switching buffers.",o)}}}function EM({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=xM(t);if(n)return n}return Zt("[Replay] Using simple buffer"),new zm}function xM(e){try{const t=e||PM();if(!t)return;Zt(`[Replay] Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new TM(n)}catch{Zt("[Replay] Failed to create compression worker")}}function PM(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?kM():""}function rc(){try{return"sessionStorage"in dt&&!!dt.sessionStorage}catch{return!1}}function IM(e){DM(),e.session=void 0}function DM(){if(rc())try{dt.sessionStorage.removeItem(Gu)}catch{}}function jm(e){return e===void 0?!1:Math.random()<e}function Wm(e){const t=Date.now(),n=e.id||Yt(),r=e.started||t,o=e.lastActivity||t,i=e.segmentId||0,s=e.sampled,l=e.previousSessionId;return{id:n,started:r,lastActivity:o,segmentId:i,sampled:s,previousSessionId:l}}function ac(e){if(rc())try{dt.sessionStorage.setItem(Gu,JSON.stringify(e))}catch{}}function NM(e,t){return jm(e)?"session":t?"buffer":!1}function Ef({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=NM(e,t),i=Wm({sampled:o,previousSessionId:r});return n&&ac(i),i}function OM(e){if(!rc())return null;try{const t=dt.sessionStorage.getItem(Gu);if(!t)return null;const n=JSON.parse(t);return ga("[Replay] Loading existing session",e),Wm(n)}catch{return null}}function Ql(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function qm(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Ql(e.started,t,r)||Ql(e.lastActivity,n,r)}function Ym(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!qm(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function rl({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:r},o){const i=o.stickySession&&OM(e);return i?Ym(i,{sessionIdleExpire:t,maxReplayDuration:n})?(ga("[Replay] Session in sessionStorage is expired, creating new one..."),Ef(o,{previousSessionId:i.id})):i:(ga("[Replay] Creating new session",e),Ef(o,{previousSessionId:r}))}function BM(e){return e.type===He.Custom}function oc(e,t,n){return Km(e,t)?(Gm(e,t,n),!0):!1}function MM(e,t,n){return Km(e,t)?Gm(e,t,n):Promise.resolve(null)}async function Gm(e,t,n){if(!e.eventBuffer)return null;try{n&&e.recordingMode==="buffer"&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const r=e.getOptions(),o=RM(t,r.beforeAddRecordingEvent);return o?await e.eventBuffer.addEvent(o):void 0}catch(r){const o=r&&r instanceof nc?"addEventSizeExceeded":"addEvent";ft&&ne.error(r),await e.stop({reason:o});const i=Ir();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function Km(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=tc(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(Zt(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1):!0}function RM(e,t){try{if(typeof t=="function"&&BM(e))return t(e)}catch(n){return ft&&ne.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",n),null}return e}function Xm(e){return!e.type}function Zl(e){return e.type==="transaction"}function AM(e){return e.type==="replay_event"}function xf(e){return e.type==="feedback"}function Jm(e){const t=VM();return(n,r)=>{if(!e.isEnabled()||!Xm(n)&&!Zl(n))return;const o=r&&r.statusCode;if(!(t&&(!o||o<200||o>=300))){if(Zl(n)){$M(e,n);return}LM(e,n)}}}function $M(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function LM(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||setTimeout(()=>{e.sendBufferedReplayOrFlush()})}function VM(){const e=Ir();if(!e)return!1;const t=e.getTransport();return t&&t.send.__sentry__baseTransport__||!1}function FM(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function HM(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:He.Custom,timestamp:t.timestamp*1e3,data:{timestamp:t.timestamp,tag:"breadcrumb",payload:{category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function UM(e,t){return e.recordingMode!=="buffer"||t.message===Ku||!t.exception||t.type?!1:jm(e.getOptions().errorSampleRate)}function zM(e,t=!1){const n=t?Jm(e):void 0;return Object.assign((r,o)=>e.isEnabled()?AM(r)?(delete r.breadcrumbs,r):!Xm(r)&&!Zl(r)&&!xf(r)||!e.checkAndHandleExpiredSession()?r:xf(r)?(e.flush(),r.contexts.feedback.replay_id=e.getSessionId(),HM(e,r),r):FM(r,o)&&!e.getOptions()._experiments.captureExceptions?(ft&&ne.log("[Replay] Ignoring error from rrweb internals",r),null):((UM(e,r)||e.recordingMode==="session")&&(r.tags={...r.tags,replayId:e.getSessionId()}),n&&n(r,{statusCode:200}),r):r,{id:"Replay"})}function ms(e,t){return t.map(({type:n,start:r,end:o,name:i,data:s})=>{const l=e.throttledAddEvent({type:He.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:o,data:s}}});return typeof l=="string"?Promise.resolve(null):l})}function jM(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function WM(e){return t=>{if(!e.isEnabled())return;const n=jM(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(ms(e,[n]),!1)))}}function qM(e,t){return ft&&e.getOptions()._experiments.traceInternals?!1:RD(t,tt())}function vs(e,t){e.isEnabled()&&t!==null&&(qM(e,t.name)||e.addUpdate(()=>(ms(e,[t]),!0)))}function YM(e){const{startTimestamp:t,endTimestamp:n,fetchData:r,response:o}=e;if(!n)return null;const{method:i,url:s}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:s,data:{method:i,statusCode:o?o.status:void 0}}}function GM(e){return t=>{if(!e.isEnabled())return;const n=YM(t);vs(e,n)}}function KM(e){const{startTimestamp:t,endTimestamp:n,xhr:r}=e,o=r[br];if(!t||!n||!o)return null;const{method:i,url:s,status_code:l}=o;return s===void 0?null:{type:"resource.xhr",name:s,start:t/1e3,end:n/1e3,data:{method:i,statusCode:l}}}function XM(e){return t=>{if(!e.isEnabled())return;const n=KM(t);vs(e,n)}}function gs(e,t){if(e)try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=tv(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Qm(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Zm(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[tv(e)];if(!e)return[void 0]}catch{return ft&&ne.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ft&&ne.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Mi(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function ev(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:s,request:l,response:u}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:Yn({method:i,statusCode:s,request:l,response:u})}}function To(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function kr(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:i}=JM(n);return r.body=o,i&&i.length>0&&(r._meta={warnings:i}),r}function eu(e,t){return Object.keys(e).reduce((n,r)=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=e[r]),n},{})}function tv(e){return new URLSearchParams(e).toString()}function JM(e){if(!e||typeof e!="string")return{body:e};const t=e.length>hf,n=QM(e);if(t){const r=e.slice(0,hf);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function QM(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Ri(e,t){const n=ZM(e);return Ra(n,t)}function ZM(e,t=dt.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(dt.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function e3(e,t,n){try{const r=await n3(e,t,n),o=ev("resource.fetch",r);vs(n.replay,o)}catch(r){ft&&ne.error("[Replay] Failed to capture fetch breadcrumb",r)}}function t3(e,t,n){const{input:r,response:o}=t,i=r?nv(r):void 0,s=gs(i,n.textEncoder),l=o?Qm(o.headers.get("content-length")):void 0;s!==void 0&&(e.data.request_body_size=s),l!==void 0&&(e.data.response_body_size=l)}async function n3(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r}=t,{url:s,method:l,status_code:u=0,request_body_size:c,response_body_size:f}=e.data,p=Ri(s,n.networkDetailAllowUrls)&&!Ri(s,n.networkDetailDenyUrls),h=p?r3(n,t.input,c):To(c),m=await a3(p,n,t.response,f);return{startTimestamp:o,endTimestamp:i,url:s,method:l,statusCode:u,request:h,response:m}}function r3({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?s3(n,t):{};if(!e)return kr(o,r,void 0);const i=nv(n),[s,l]=Zm(i),u=kr(o,r,s);return l?Mi(u,l):u}async function a3(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},o,i){if(!e&&i!==void 0)return To(i);const s=o?rv(o.headers,r):{};if(!o||!t&&i!==void 0)return kr(s,i,void 0);const[l,u]=await i3(o),c=o3(l,{networkCaptureBodies:t,textEncoder:n,responseBodySize:i,captureDetails:e,headers:s});return u?Mi(c,u):c}function o3(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:r,captureDetails:o,headers:i}){try{const s=e&&e.length&&r===void 0?gs(e,n):r;return o?t?kr(i,s,e):kr(i,s,void 0):To(s)}catch(s){return ft&&ne.warn("[Replay] Failed to serialize response body",s),kr(i,r,void 0)}}async function i3(e){const t=l3(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await u3(t)]}catch(n){return ft&&ne.warn("[Replay] Failed to get text body from response",n),[void 0,"BODY_PARSE_ERROR"]}}function nv(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function rv(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function s3(e,t){return e.length===1&&typeof e[0]!="string"?Pf(e[0],t):e.length===2?Pf(e[1],t):{}}function Pf(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?rv(n,t):Array.isArray(n)?{}:eu(n,t):{}}function l3(e){try{return e.clone()}catch(t){ft&&ne.warn("[Replay] Failed to clone response body",t)}}function u3(e){return new Promise((t,n)=>{const r=setTimeout(()=>n(new Error("Timeout while trying to read response body")),500);c3(e).then(o=>t(o),o=>n(o)).finally(()=>clearTimeout(r))})}async function c3(e){return await e.text()}async function d3(e,t,n){try{const r=p3(e,t,n),o=ev("resource.xhr",r);vs(n.replay,o)}catch(r){ft&&ne.error("[Replay] Failed to capture xhr breadcrumb",r)}}function f3(e,t,n){const{xhr:r,input:o}=t;if(!r)return;const i=gs(o,n.textEncoder),s=r.getResponseHeader("content-length")?Qm(r.getResponseHeader("content-length")):g3(r.response,r.responseType,n.textEncoder);i!==void 0&&(e.data.request_body_size=i),s!==void 0&&(e.data.response_body_size=s)}function p3(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r,input:s,xhr:l}=t,{url:u,method:c,status_code:f=0,request_body_size:p,response_body_size:h}=e.data;if(!u)return null;if(!l||!Ri(u,n.networkDetailAllowUrls)||Ri(u,n.networkDetailDenyUrls)){const C=To(p),I=To(h);return{startTimestamp:o,endTimestamp:i,url:u,method:c,statusCode:f,request:C,response:I}}const m=l[br],y=m?eu(m.request_headers,n.networkRequestHeaders):{},k=eu(h3(l),n.networkResponseHeaders),[b,w]=n.networkCaptureBodies?Zm(s):[void 0],[T,O]=n.networkCaptureBodies?m3(l):[void 0],_=kr(y,p,b),B=kr(k,h,T);return{startTimestamp:o,endTimestamp:i,url:u,method:c,statusCode:f,request:w?Mi(_,w):_,response:O?Mi(B,O):B}}function h3(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
105
+ `).reduce((n,r)=>{const[o,i]=r.split(": ");return n[o.toLowerCase()]=i,n},{}):{}}function m3(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return v3(e.response,e.responseType)}catch(n){t.push(n)}return ft&&ne.warn("[Replay] Failed to get xhr response body",...t),[void 0]}function v3(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch{return ft&&ne.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ft&&ne.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function g3(e,t,n){try{const r=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return gs(r,n)}catch{return}}function y3(e){const t=Ir();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:o,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:l}=e.getOptions(),u={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:o,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:l};t&&t.on?t.on("beforeAddBreadcrumb",(c,f)=>b3(u,c,f)):(Bu(GM(e)),Mu(XM(e)))}catch{}}function b3(e,t,n){if(t.data)try{_3(t)&&k3(n)&&(f3(t,n,e),d3(t,n,e)),w3(t)&&S3(n)&&(t3(t,n,e),e3(t,n,e))}catch{ft&&ne.warn("Error when enriching network breadcrumb")}}function _3(e){return e.category==="xhr"}function w3(e){return e.category==="fetch"}function k3(e){return e&&e.xhr}function S3(e){return e&&e.response}let If=null;function C3(e){return!!e.category}const T3=e=>t=>{if(!e.isEnabled())return;const n=E3(t);n&&hs(e,n)};function E3(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return If===t||!t||(If=t,!C3(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))?null:t.category==="console"?x3(t):cr(t)}function x3(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return cr(e);let n=!1;const r=t.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>Qo?(n=!0,`${o.slice(0,Qo)}…`):o;if(typeof o=="object")try{const i=An(o,7);return JSON.stringify(i).length>Qo?(n=!0,`${JSON.stringify(i,null,2).slice(0,Qo)}…`):i}catch{}return o});return cr({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function P3(e){const t=tt().getScope(),n=Ir();t.addScopeListener(T3(e)),Mh(sM(e)),Xi(WM(e)),y3(e);const r=zM(e,!Df(n));n&&n.addEventProcessor?n.addEventProcessor(r):wD(r),Df(n)&&(n.on("afterSendEvent",Jm(e)),n.on("createDsc",o=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(o.replay_id=i)}),n.on("startTransaction",o=>{e.lastTransaction=o}),n.on("finishTransaction",o=>{e.lastTransaction=o}),n.on("beforeSendFeedback",(o,i)=>{const s=e.getSessionId();i&&i.includeReplay&&e.isEnabled()&&s&&(e.flush(),o.contexts&&o.contexts.feedback&&(o.contexts.feedback.replay_id=s))}))}function Df(e){return!!(e&&e.on)}async function I3(e){try{return Promise.all(ms(e,[D3(dt.performance.memory)]))}catch{return[]}}function D3(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function N3(e,t,n){let r,o,i;const s=n&&n.maxWait?Math.max(n.maxWait,t):0;function l(){return u(),r=e(),r}function u(){o!==void 0&&clearTimeout(o),i!==void 0&&clearTimeout(i),o=i=void 0}function c(){return o!==void 0||i!==void 0?l():r}function f(){return o&&clearTimeout(o),o=setTimeout(l,t),s&&i===void 0&&(i=setTimeout(l,s)),r}return f.cancel=u,f.flush=c,f}function O3(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){ft&&ne.warn("[Replay] Received replay event after session expired.");return}const o=r||!t;t=!0,e.clickDetector&&nM(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&o&&e.setInitialState(),!oc(e,n,o))return!0;if(!o)return!1;if(M3(e,o),e.session&&e.session.previousSessionId)return!0;if(e.recordingMode==="buffer"&&e.session&&e.eventBuffer){const i=e.eventBuffer.getEarliestTimestamp();i&&(Zt(`[Replay] Updating session start time to earliest event in buffer to ${new Date(i)}`,e.getOptions()._experiments.traceInternals),e.session.started=i,e.getOptions().stickySession&&ac(e.session))}return e.recordingMode==="session"&&e.flush(),!0})}}function B3(e){const t=e.getOptions();return{type:He.Custom,timestamp:Date.now(),data:{tag:"options",payload:{sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function M3(e,t){!t||!e.session||e.session.segmentId!==0||oc(e,B3(e),!1)}function R3(e,t,n,r){return $a(Uh(e,$u(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function A3({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
106
+ `;if(typeof e=="string")n=`${r}${e}`;else{const i=new TextEncoder().encode(r);n=new Uint8Array(i.length+e.length),n.set(i),n.set(e,i.length)}return n}async function $3({client:e,scope:t,replayId:n,event:r}){const o=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:n,integrations:o};e.emit&&e.emit("preprocessEvent",r,i);const s=await Xh(e.getOptions(),r,i,t,e);if(!s)return null;s.platform=s.platform||"javascript";const l=e.getSdkMetadata&&e.getSdkMetadata(),{name:u,version:c}=l&&l.sdk||{};return s.sdk={...s.sdk,name:u||"sentry.javascript.unknown",version:c||"0.0.0"},s}async function L3({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:i}){const s=A3({recordingData:e,headers:{segment_id:n}}),{urls:l,errorIds:u,traceIds:c,initialTimestamp:f}=r,p=tt(),h=p.getClient(),m=p.getScope(),y=h&&h.getTransport(),k=h&&h.getDsn();if(!h||!y||!k||!i.sampled)return;const b={type:PO,replay_start_timestamp:f/1e3,timestamp:o/1e3,error_ids:u,trace_ids:c,urls:l,replay_id:t,segment_id:n,replay_type:i.sampled},w=await $3({scope:m,client:h,replayId:t,event:b});if(!w){h.recordDroppedEvent("event_processor","replay",b),Zt("An event processor returned `null`, will not send event.");return}delete w.sdkProcessingMetadata;const T=R3(w,s,k,h.getOptions().tunnel);let O;try{O=await y.send(T)}catch(B){const C=new Error(Ku);try{C.cause=B}catch{}throw C}if(!O)return O;if(typeof O.statusCode=="number"&&(O.statusCode<200||O.statusCode>=300))throw new av(O.statusCode);const _=jh({},O);if(zh(_,"replay"))throw new ov(_);return O}class av extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class ov extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function iv(e,t={count:0,interval:MO}){const{recordingData:n,options:r}=e;if(n.length)try{return await L3(e),!0}catch(o){if(o instanceof av||o instanceof ov)throw o;if(eD("Replays",{_retryCount:t.count}),ft&&r._experiments&&r._experiments.captureExceptions&&Zi(o),t.count>=RO){const i=new Error(`${Ku} - max retries exceeded`);try{i.cause=o}catch{}throw i}return t.interval*=++t.count,new Promise((i,s)=>{setTimeout(async()=>{try{await iv(e,t),i(!0)}catch(l){s(l)}},t.interval)})}}const sv="__THROTTLED",V3="__SKIPPED";function F3(e,t,n){const r=new Map,o=l=>{const u=l-n;r.forEach((c,f)=>{f<u&&r.delete(f)})},i=()=>[...r.values()].reduce((l,u)=>l+u,0);let s=!1;return(...l)=>{const u=Math.floor(Date.now()/1e3);if(o(u),i()>=t){const f=s;return s=!0,f?V3:sv}s=!1;const c=r.get(u)||0;return r.set(u,c+1),e(...l)}}class gr{constructor({options:t,recordingOptions:n}){gr.prototype.__init.call(this),gr.prototype.__init2.call(this),gr.prototype.__init3.call(this),gr.prototype.__init4.call(this),gr.prototype.__init5.call(this),gr.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:IO,sessionIdleExpire:DO},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=N3(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=F3((s,l)=>MM(this,s,l),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:o}=this.getOptions(),i=r?{threshold:Math.min(AO,r),timeout:r,scrollTimeout:$O,ignoreSelector:o?o.join(","):""}:void 0;i&&(this.clickDetector=new QB(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options;if(!(n<=0&&r<=0)){if(this._initializeSessionForSampling(t),!this.session){this._handleException(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",ga(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session")throw new Error("Replay recording is already in progress");if(this._isEnabled&&this.recordingMode==="buffer")throw new Error("Replay buffering is in progress, call `flush()` to save the replay");ga("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);const t=rl({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");ga("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const t=rl({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{this._stopRecording=wr({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:BO},emit:O3(this),onMutation:this._onMutationHandler})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this._handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{Zt(`[Replay] Stopping Replay${n?` triggered by ${n}`:""}`,this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,IM(this)}catch(r){this._handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Zt("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),Zt("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();Zt("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&Ql(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${dt.location.pathname}${dt.location.hash}${dt.location.search}`,n=`${dt.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===sv){const o=cr({category:"replay.throttled"});this.addUpdate(()=>!oc(this,{type:qB,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastTransaction||tt().getScope().getTransaction();if(!(!t||!["route","custom"].includes(t.metadata.source)))return t.name}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=EM({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(t){ft&&ne.error("[Replay]",t),ft&&this._options._experiments&&this._options._experiments.captureExceptions&&Zi(t)}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=rl({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return Ym(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{dt.document.addEventListener("visibilitychange",this._handleVisibilityChange),dt.addEventListener("blur",this._handleWindowBlur),dt.addEventListener("focus",this._handleWindowFocus),dt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(P3(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}this._performanceCleanupCallback=_M(this)}_removeListeners(){try{dt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),dt.removeEventListener("blur",this._handleWindowBlur),dt.removeEventListener("focus",this._handleWindowFocus),dt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this._handleException(t)}}__init(){this._handleVisibilityChange=()=>{dt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=cr({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=cr({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{dM(this,t)}}_doChangeToBackgroundTasks(t){!this.session||qm(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){Zt("[Replay] Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:He.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){const t=hM(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(ms(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){ft&&ne.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await I3(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),o=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await iv({replayId:t,recordingData:i,segmentId:o,eventContext:r,session:this.session,options:this.getOptions(),timestamp:n})}catch(n){this._handleException(n),this.stop({reason:"sendReplay"});const r=Ir();r&&r.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){ft&&ne.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,o=Date.now()-n;this._debouncedFlush.cancel();const i=o<this._options.minReplayDuration,s=o>this._options.maxReplayDuration+5e3;if(i||s){Zt(`[Replay] Session duration (${Math.floor(o/1e3)}s) is too ${i?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),i&&this._debouncedFlush();return}const l=this.eventBuffer;if(l&&this.session.segmentId===0&&!l.hasCheckout&&Zt("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(u){ft&&ne.error(u)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&ac(this.session)}__init6(){this._onMutationHandler=t=>{const n=t.length,r=this._options.mutationLimit,o=this._options.mutationBreadcrumbLimit,i=r&&n>r;if(n>o||i){const s=cr({category:"replay.mutations",data:{count:n,limit:i}});this._createCustomBreadcrumb(s)}return i?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function Xa(e,t,n,r){const o=typeof r=="string"?r.split(","):[],i=[...e,...o,...t];return typeof n<"u"&&(typeof n=="string"&&i.push(`.${n}`),Xn(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),i.join(",")}function H3({mask:e,unmask:t,block:n,unblock:r,ignore:o,blockClass:i,blockSelector:s,maskTextClass:l,maskTextSelector:u,ignoreClass:c}){const f=['base[href="/"]'],p=Xa(e,[".sentry-mask","[data-sentry-mask]"],l,u),h=Xa(t,[".sentry-unmask","[data-sentry-unmask]"]),m={maskTextSelector:p,unmaskTextSelector:h,blockSelector:Xa(n,[".sentry-block","[data-sentry-block]",...f],i,s),unblockSelector:Xa(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Xa(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],c)};return i instanceof RegExp&&(m.blockClass=i),l instanceof RegExp&&(m.maskTextClass=l),m}function U3({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:i}){return!r||o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?i:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}const Nf='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',z3=["content-length","content-type","accept"];let Of=!1;class ys{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=NO,flushMaxDelay:n=OO,minReplayDuration:r=LO,maxReplayDuration:o=mf,stickySession:i=!0,useCompression:s=!0,workerUrl:l,_experiments:u={},sessionSampleRate:c,errorSampleRate:f,maskAllText:p=!0,maskAllInputs:h=!0,blockAllMedia:m=!0,mutationBreadcrumbLimit:y=750,mutationLimit:k=1e4,slowClickTimeout:b=7e3,slowClickIgnoreSelectors:w=[],networkDetailAllowUrls:T=[],networkDetailDenyUrls:O=[],networkCaptureBodies:_=!0,networkRequestHeaders:B=[],networkResponseHeaders:C=[],mask:I=[],maskAttributes:F=["title","placeholder"],unmask:q=[],block:W=[],unblock:M=[],ignore:D=[],maskFn:$,beforeAddRecordingEvent:Y,beforeErrorSampling:X,blockClass:K,blockSelector:j,maskInputOptions:U,maskTextClass:S,maskTextSelector:H,ignoreClass:Z}={}){this.name=ys.id;const Q=H3({mask:I,unmask:q,block:W,unblock:M,ignore:D,blockClass:K,blockSelector:j,maskTextClass:S,maskTextSelector:H,ignoreClass:Z});if(this._recordingOptions={maskAllInputs:h,maskAllText:p,maskInputOptions:{...U||{},password:!0},maskTextFn:$,maskInputFn:$,maskAttributeFn:(V,E,P)=>U3({maskAttributes:F,maskAllText:p,privacyOptions:Q,key:V,value:E,el:P}),...Q,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:V=>{try{V.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,VO),maxReplayDuration:Math.min(o,mf),stickySession:i,sessionSampleRate:c,errorSampleRate:f,useCompression:s,workerUrl:l,blockAllMedia:m,maskAllInputs:h,maskAllText:p,mutationBreadcrumbLimit:y,mutationLimit:k,slowClickTimeout:b,slowClickIgnoreSelectors:w,networkDetailAllowUrls:T,networkDetailDenyUrls:O,networkCaptureBodies:_,networkRequestHeaders:Bf(B),networkResponseHeaders:Bf(C),beforeAddRecordingEvent:Y,beforeErrorSampling:X,_experiments:u},typeof c=="number"&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.
107
107
  This option is deprecated and will be removed soon.
108
108
  Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:
109
109
  Sentry.init({ replaysSessionSampleRate: ${c} })`),this._initialOptions.sessionSampleRate=c),typeof f=="number"&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.
110
110
  This option is deprecated and will be removed soon.
111
111
  Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:
112
- Sentry.init({ replaysOnErrorSampleRate: ${f} })`),this._initialOptions.errorSampleRate=f),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Of}`:Of),this._isInitialized&&zd())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Nf}set _isInitialized(t){Nf=t}setupOnce(){zd()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return!this._replay||!this._replay.isEnabled()?Promise.resolve():this._replay.sendBufferedReplayOrFlush(t)}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(){this._replay&&this._replay.initializeSampling()}_setup(){const t=z3(this._initialOptions);this._replay=new gr({options:t,recordingOptions:this._recordingOptions})}}ys.__initStatic();function z3(e){const t=Ir(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Yn(e)};return n?(e.sessionSampleRate==null&&e.errorSampleRate==null&&n.replaysSessionSampleRate==null&&n.replaysOnErrorSampleRate==null&&Xn(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),typeof n.replaysSessionSampleRate=="number"&&(r.sessionSampleRate=n.replaysSessionSampleRate),typeof n.replaysOnErrorSampleRate=="number"&&(r.errorSampleRate=n.replaysOnErrorSampleRate),r):(Xn(()=>{console.warn("SDK client is not available.")}),r)}function Bf(e){return[...U3,...e.map(t=>t.toLowerCase())]}const lv=["activate","mount","update"],j3=/(?:^|[-_])(\w)/g,W3=e=>e.replace(j3,t=>t.toUpperCase()).replace(/[-_]/g,""),q3="<Root>",al="<Anonymous>",Y3=(e,t)=>e.repeat?e.repeat(t):e,lo=(e,t)=>{if(!e)return al;if(e.$root===e)return q3;if(!e.$options)return al;const n=e.$options;let r=n.name||n._componentTag;const o=n.__file;if(!r&&o){const i=o.match(/([^/\\]+)\.vue$/);i&&(r=i[1])}return(r?`<${W3(r)}>`:al)+(o&&t!==!1?` at ${o}`:"")},G3=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const o=t[t.length-1];if(o.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[o,n],n=0)}t.push(e),e=e.$parent}return`
112
+ Sentry.init({ replaysOnErrorSampleRate: ${f} })`),this._initialOptions.errorSampleRate=f),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Nf}`:Nf),this._isInitialized&&zd())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Of}set _isInitialized(t){Of=t}setupOnce(){zd()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return!this._replay||!this._replay.isEnabled()?Promise.resolve():this._replay.sendBufferedReplayOrFlush(t)}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(){this._replay&&this._replay.initializeSampling()}_setup(){const t=j3(this._initialOptions);this._replay=new gr({options:t,recordingOptions:this._recordingOptions})}}ys.__initStatic();function j3(e){const t=Ir(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Yn(e)};return n?(e.sessionSampleRate==null&&e.errorSampleRate==null&&n.replaysSessionSampleRate==null&&n.replaysOnErrorSampleRate==null&&Xn(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),typeof n.replaysSessionSampleRate=="number"&&(r.sessionSampleRate=n.replaysSessionSampleRate),typeof n.replaysOnErrorSampleRate=="number"&&(r.errorSampleRate=n.replaysOnErrorSampleRate),r):(Xn(()=>{console.warn("SDK client is not available.")}),r)}function Bf(e){return[...z3,...e.map(t=>t.toLowerCase())]}const lv=["activate","mount","update"],W3=/(?:^|[-_])(\w)/g,q3=e=>e.replace(W3,t=>t.toUpperCase()).replace(/[-_]/g,""),Y3="<Root>",al="<Anonymous>",G3=(e,t)=>e.repeat?e.repeat(t):e,lo=(e,t)=>{if(!e)return al;if(e.$root===e)return Y3;if(!e.$options)return al;const n=e.$options;let r=n.name||n._componentTag;const o=n.__file;if(!r&&o){const i=o.match(/([^/\\]+)\.vue$/);i&&(r=i[1])}return(r?`<${q3(r)}>`:al)+(o&&t!==!1?` at ${o}`:"")},K3=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const o=t[t.length-1];if(o.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[o,n],n=0)}t.push(e),e=e.$parent}return`
113
113
 
114
114
  found in
115
115
 
116
- ${t.map((o,i)=>`${(i===0?"---> ":Y3(" ",5+i*2))+(Array.isArray(o)?`${lo(o[0])}... (${o[1]} recursive calls)`:lo(o))}`).join(`
116
+ ${t.map((o,i)=>`${(i===0?"---> ":G3(" ",5+i*2))+(Array.isArray(o)?`${lo(o[0])}... (${o[1]} recursive calls)`:lo(o))}`).join(`
117
117
  `)}`}return`
118
118
 
119
- (found in ${lo(e)})`},K3=(e,t)=>{const{errorHandler:n,warnHandler:r,silent:o}=e.config;e.config.errorHandler=(i,s,l)=>{const u=lo(s,!1),c=s?G3(s):"",f={componentName:u,lifecycleHook:l,trace:c};if(t.attachProps&&s&&(s.$options&&s.$options.propsData?f.propsData=s.$options.propsData:s.$props&&(f.propsData=s.$props)),setTimeout(()=>{tt().captureException(i,{captureContext:{contexts:{vue:f}},mechanism:{handled:!1}})}),typeof n=="function"&&n.call(e,i,s,l),t.logErrors){const p=typeof console<"u",h=`Error in ${l}: "${i&&i.toString()}"`;r?r.call(null,h,s,c):p&&!o&&Xn(()=>{console.error(`[Vue warn]: ${h}${c}`)})}}},X3=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Mf="ui.vue",J3={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function tu(){return tt().getScope().getTransaction()}function Q3(e,t,n){e.$_sentryRootSpanTimer&&clearTimeout(e.$_sentryRootSpanTimer),e.$_sentryRootSpanTimer=setTimeout(()=>{e.$root&&e.$root.$_sentryRootSpan&&(e.$root.$_sentryRootSpan.finish(t),e.$root.$_sentryRootSpan=void 0)},n)}const Z3=e=>{const t=(e.hooks||[]).concat(lv).filter((r,o,i)=>i.indexOf(r)===o),n={};for(const r of t){const o=J3[r];if(!o){X3&&ne.warn(`Unknown hook: ${r}`);continue}for(const i of o)n[i]=function(){const s=this.$root===this;if(s){const c=tu();c&&(this.$_sentryRootSpan=this.$_sentryRootSpan||c.startChild({description:"Application Render",op:`${Mf}.render`,origin:"auto.ui.vue"}))}const l=lo(this,!1),u=Array.isArray(e.trackComponents)?e.trackComponents.indexOf(l)>-1:e.trackComponents;if(!(!s&&!u))if(this.$_sentrySpans=this.$_sentrySpans||{},i==o[0]){const c=this.$root&&this.$root.$_sentryRootSpan||tu();if(c){const f=this.$_sentrySpans[r];f&&!f.endTimestamp&&f.finish(),this.$_sentrySpans[r]=c.startChild({description:`Vue <${l}>`,op:`${Mf}.${r}`,origin:"auto.ui.vue"})}}else{const c=this.$_sentrySpans[r];if(!c)return;c.finish(),Q3(this,Cr(),e.timeout)}}}return n},eR=et,tR={Vue:eR.Vue,attachProps:!0,logErrors:!0,hooks:lv,timeout:2e3,trackComponents:!1};class bs{static __initStatic(){this.id="Vue"}constructor(t={}){this.name=bs.id,this._options=t}setupOnce(t,n){this._setupIntegration(n())}_setupIntegration(t){const n=t.getClient(),r={...tR,...n&&n.getOptions(),...this._options};if(!r.Vue&&!r.app){Xn(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}r.app?Nu(r.app).forEach(i=>Rf(i,r)):r.Vue&&Rf(r.Vue,r)}}bs.__initStatic();const Rf=(e,t)=>{const n=e;(n._instance&&n._instance.isMounted)===!0&&Xn(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),K3(e,t),es(t)&&e.mixin(Z3({...t,...t.tracingOptions}))};function nR(e={}){const t={_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:wo}],version:wo}},defaultIntegrations:[...cm,new bs],...e};LO(t)}function rR(e,t={}){return(n,r=!0,o=!0)=>{const i={"routing.instrumentation":"vue-router"};r&&Ue&&Ue.location&&n({name:Ue.location.pathname,op:"pageload",origin:"auto.pageload.vue",tags:i,metadata:{source:"url"}}),e.onError(s=>Zi(s,{mechanism:{handled:!1}})),e.beforeEach((s,l,u)=>{const c=l.name==null&&l.matched.length===0,f={params:s.params,query:s.query};let p=s.path,h="url";if(s.name&&t.routeLabel!=="path"?(p=s.name.toString(),h="custom"):s.matched[0]&&s.matched[0].path&&(p=s.matched[0].path,h="route"),r&&c){const m=tu();m&&(m.metadata.source!=="custom"&&m.setName(p,h),m.setData("params",f.params),m.setData("query",f.query))}o&&!c&&n({name:p,op:"navigation",origin:"auto.navigation.vue",tags:i,data:f,metadata:{source:h}}),u&&u()})}}const aR={title:"Er lijkt iets mis te zijn gegaan",subtitle:"Ons team is op de hoogte gesteld. Het helpt enorm als je ons vertelt wat er is gebeurd.",subtitle2:"",labelName:"Naam",labelEmail:"E-mailadres",labelComments:"Omschrijf wat er gebeurd is",labelClose:"Sluiten",labelSubmit:"Verstuur rapport",errorGeneric:"Er is iets mis gegaan",errorFormEntry:"Niet alle velden zijn correct ingevuld",successMessage:"Je feedback is verzonden. Bedankt!"};function oR(e,t,n){nR({app:e,dsn:n.dsn,environment:n.environment,release:n.release,initialScope:{tags:{platform:n.platform,language:"vue"}},beforeSend(r,o){const i=n!=null&&n.beforeSend?n.beforeSend(r,o):r;return i.exception&&n.reportDialog!==!1&&VO({eventId:i.event_id,...aR,user:i==null?void 0:i.user,onLoad:()=>{var s,l,u;(s=document.querySelector(".sentry-error-embed-wrapper #id_name"))==null||s.setAttribute("placeholder",""),(l=document.querySelector(".sentry-error-embed-wrapper #id_email"))==null||l.setAttribute("placeholder",""),(u=document.querySelector(".sentry-error-embed-wrapper #id_comments"))==null||u.setAttribute("placeholder","")}}),i},integrations:[new EN({routingInstrumentation:rR(t)}),...(n==null?void 0:n.replay)===!0?[new ys]:[]],tracesSampleRate:parseFloat(`${(n==null?void 0:n.tracesSampleRate)??1}`),tracePropagationTargets:["localhost",".auto.test",n.url,/^\//]})}const iR={class:"flex items-center space-x-5"},sR={class:"font-serif text-base font-bold text-zinc-900","data-test-title":""},lR=["innerHTML"],ol=a.defineComponent({__name:"Toast",props:{title:{},content:{default:void 0},type:{},options:{default:void 0}},emits:["closeToast"],setup(e,{emit:t}){return(n,r)=>{var o;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"cursor-pointer":(o=n.options)==null?void 0:o.onClick},"relative"])},[a.createVNode(a.unref(Fi),{class:"absolute right-0 top-0 h-4 w-4 cursor-pointer",onClick:r[0]||(r[0]=a.withModifiers(()=>t("closeToast"),["stop"]))}),a.createElementVNode("div",iR,[a.createElementVNode("div",null,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Ep)[n.type]),{class:"h-7 w-7","data-test-icon":""}))]),a.createElementVNode("div",null,[a.createElementVNode("p",sR,a.toDisplayString(n.title),1),n.content?(a.openBlock(),a.createElementBlock("p",{key:0,class:"font-serif text-base text-zinc-700","data-test-content":"",innerHTML:n.content},null,8,lR)):a.createCommentVNode("",!0)])])],2)}}});function uR(e){const t=by(e);return{...t,success:(n,r,o)=>t.success({component:ol,props:{title:n,content:r,type:"success",options:o}},o),warning:(n,r,o)=>t.warning({component:ol,props:{title:n,content:r,type:"warning",options:o}},o),error:(n,r,o)=>t.error({component:ol,props:{title:n,content:r,type:"error",options:o}},o)}}const uv={install:(e,t)=>{var o;t!=null&&t.pusher&&wh(t.pusher.appKey,t.pusher.authorizer),(o=t==null?void 0:t.sentry)!=null&&o.dsn&&oR(e,t.sentry.router,t==null?void 0:t.sentry);const n={position:co.TOP_RIGHT,transition:"Vue-Toastification__bounce",maxToasts:5,icon:!1,hideProgressBar:!0,newestOnTop:!0,...(t==null?void 0:t.toast)??{}};e.use(_y,n);const r={defaultProps:{placement:"top"},...(t==null?void 0:t.tippy)??{}};e.use(pb,r)}},cR={class:"flex min-h-screen flex-col md:flex-row md:bg-secondary"},dR={class:"flex h-full grow flex-col bg-white md:h-auto md:w-1/2 md:grow-0 md:rounded-l-2xl","data-test-main-wrapper":""},fR={class:"flex grow justify-center px-10 transition-all md:items-center md:px-24"},pR={class:"mx-auto md:max-w-lg"},hR={class:"hidden w-1/2 md:block","data-test-layout-image-wrapper":""},mR=["src"],vR=a.defineComponent({__name:"Auth",setup(e){const{layoutImage:t}=fu();return(n,r)=>(a.openBlock(),a.createElementBlock("div",cR,[a.createVNode(a.unref(ji)),a.createElementVNode("div",dR,[a.renderSlot(n.$slots,"secondaryNavBar"),a.createElementVNode("main",fR,[a.createElementVNode("div",pR,[a.renderSlot(n.$slots,"default")])])]),a.createElementVNode("div",hR,[a.unref(t)?(a.openBlock(),a.createElementBlock("img",{key:0,src:a.unref(t),class:"h-screen w-full object-fill"},null,8,mR)):a.createCommentVNode("",!0)])]))}}),gR={class:"flex min-h-screen w-screen flex-col bg-zinc-100 md:flex-row"},yR={class:"relative order-4 flex shrink-0 grow flex-col overflow-y-auto overflow-x-hidden bg-zinc-100 transition-all duration-300 md:order-3 md:-mt-0 md:h-screen md:basis-0 md:overflow-y-auto md:overflow-x-hidden"},bR={class:"w-full px-4 py-8 md:px-6 md:py-12"},_R={id:"sidebar-wrapper",class:"order-3 flex w-full max-w-full shrink-0 grow-0 flex-col overflow-x-hidden bg-zinc-100 px-4 pt-8 transition-all empty:-mr-96 empty:ml-0 empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:order-4 md:max-h-screen md:w-96 md:overflow-hidden md:rounded-l-3xl md:bg-white md:p-12 xl:w-110 empty:xl:-mr-110 2xl:w-141 empty:2xl:-mr-141","data-test-layout-sidebar-wrapper":""},wR=a.defineComponent({__name:"Base",setup(e){const t=a.ref(null),n=a.ref(!0),r=new MutationObserver(o);a.onMounted(()=>{t.value&&(r.observe(t.value,{childList:!0,subtree:!0}),o())}),a.onUnmounted(()=>{r.disconnect()});function o(){const i=document.getElementById("sidebar-left-wrapper");n.value=!!(i!=null&&i.innerHTML)}return a.provide("sidebarLeftHasContent",n),(i,s)=>(a.openBlock(),a.createElementBlock("div",gR,[a.createVNode(a.unref(ji),{class:"z-50 order-1"}),a.createElementVNode("div",{id:"sidebar-left-wrapper",ref_key:"sidebarLeft",ref:t,class:"order-2 flex shrink-0 grow-0 flex-col overflow-y-auto bg-white p-4 transition-all empty:-ml-96 empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:mb-4 md:max-h-screen md:w-96 md:px-6 md:pt-8","data-test-layout-sidebar-left-wrapper":""},[a.renderSlot(i.$slots,"sidebarLeft")],512),a.createElementVNode("main",yR,[a.createVNode(a.unref(Tu)),a.createElementVNode("div",bR,[a.renderSlot(i.$slots,"default")])]),a.createElementVNode("div",_R,[a.renderSlot(i.$slots,"sidebar")])]))}}),kR={class:"flex min-h-screen w-screen flex-col bg-zinc-100 md:flex-row"},SR={class:"relative order-4 flex min-h-[calc(100vh-5rem)] shrink-0 flex-col overflow-y-auto overflow-x-hidden bg-zinc-100 transition-all duration-300 md:order-3 md:-mt-0 md:h-screen md:grow md:basis-0 md:overflow-y-auto md:overflow-x-hidden"},CR={class:"w-full px-4 py-8 md:px-6 md:py-12"},TR={id:"sidebar-wrapper",class:"order-5 flex w-full max-w-full shrink-0 grow-0 flex-col overflow-x-hidden bg-zinc-100 px-4 py-8 transition-all empty:-mr-96 empty:ml-0 empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:order-4 md:max-h-screen md:w-96 md:overflow-hidden md:rounded-l-3xl md:bg-white md:px-6 md:pb-6 md:pt-12 xl:w-[580px] empty:xl:mr-[-580px]","data-test-layout-sidebar-wrapper":""},ER=a.defineComponent({__name:"Platform",setup(e){const t=a.ref(null),n=a.ref(!0),r=new MutationObserver(o);a.onMounted(()=>{t.value&&(r.observe(t.value,{childList:!0,subtree:!0}),o())}),a.onUnmounted(()=>{r.disconnect()});function o(){const i=document.getElementById("sidebar-left-wrapper");n.value=!!(i!=null&&i.innerHTML)}return a.provide("sidebarLeftHasContent",n),(i,s)=>(a.openBlock(),a.createElementBlock("div",kR,[a.createVNode(a.unref(ji),{class:"z-50 order-1"}),a.createElementVNode("div",{id:"sidebar-left-wrapper",ref_key:"sidebarLeft",ref:t,class:"order-2 flex shrink-0 grow-0 flex-col overflow-y-auto bg-white p-4 transition-all empty:-ml-96 empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:max-h-screen md:w-96 md:px-6 md:pt-8","data-test-layout-sidebar-left-wrapper":""},[a.renderSlot(i.$slots,"sidebarLeft")],512),a.createElementVNode("main",SR,[a.createVNode(a.unref(Tu)),a.createElementVNode("div",CR,[a.renderSlot(i.$slots,"default")])]),a.createElementVNode("div",TR,[a.renderSlot(i.$slots,"sidebar")])]))}});exports.AppActionBar=Tu;exports.AppAlert=Fb;exports.AppAvatar=Jb;exports.AppBackButton=d_;exports.AppBadge=fi;exports.AppButton=Sa;exports.AppCard=$_;exports.AppConfirm=Dp;exports.AppDataTable=Ux;exports.AppDefinitionList=iw;exports.AppDisclosure=sw;exports.AppDisclosureButton=uw;exports.AppDisclosurePanel=cw;exports.AppDropdownButton=D_;exports.AppInput=lh;exports.AppInputLabel=Cu;exports.AppLicensePlate=ch;exports.AppLoader=Gr;exports.AppMaps=KE;exports.AppModal=Op;exports.AppNavigationMenu=ji;exports.AppPagination=mh;exports.AppSelect=uh;exports.AppTimeline=g2;exports.AppTimelineItem=fh;exports.AppTimelineItemIcon=dh;exports.AppToggle=eP;exports.AuthLayout=vR;exports.BaseLayout=wR;exports.PlatformLayout=ER;exports.default=uv;exports.getOrCreateListener=_h;exports.plugin=uv;exports.registerEcho=wh;exports.toastInjectionKey=ru;exports.useActionBar=qi;exports.useConfirm=tP;exports.useEcho=vP;exports.useGoogleApi=vb;exports.useLayout=fu;exports.useModal=nP;exports.useNavigation=Ba;exports.useToast=uR;
119
+ (found in ${lo(e)})`},X3=(e,t)=>{const{errorHandler:n,warnHandler:r,silent:o}=e.config;e.config.errorHandler=(i,s,l)=>{const u=lo(s,!1),c=s?K3(s):"",f={componentName:u,lifecycleHook:l,trace:c};if(t.attachProps&&s&&(s.$options&&s.$options.propsData?f.propsData=s.$options.propsData:s.$props&&(f.propsData=s.$props)),setTimeout(()=>{tt().captureException(i,{captureContext:{contexts:{vue:f}},mechanism:{handled:!1}})}),typeof n=="function"&&n.call(e,i,s,l),t.logErrors){const p=typeof console<"u",h=`Error in ${l}: "${i&&i.toString()}"`;r?r.call(null,h,s,c):p&&!o&&Xn(()=>{console.error(`[Vue warn]: ${h}${c}`)})}}},J3=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Mf="ui.vue",Q3={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function tu(){return tt().getScope().getTransaction()}function Z3(e,t,n){e.$_sentryRootSpanTimer&&clearTimeout(e.$_sentryRootSpanTimer),e.$_sentryRootSpanTimer=setTimeout(()=>{e.$root&&e.$root.$_sentryRootSpan&&(e.$root.$_sentryRootSpan.finish(t),e.$root.$_sentryRootSpan=void 0)},n)}const eR=e=>{const t=(e.hooks||[]).concat(lv).filter((r,o,i)=>i.indexOf(r)===o),n={};for(const r of t){const o=Q3[r];if(!o){J3&&ne.warn(`Unknown hook: ${r}`);continue}for(const i of o)n[i]=function(){const s=this.$root===this;if(s){const c=tu();c&&(this.$_sentryRootSpan=this.$_sentryRootSpan||c.startChild({description:"Application Render",op:`${Mf}.render`,origin:"auto.ui.vue"}))}const l=lo(this,!1),u=Array.isArray(e.trackComponents)?e.trackComponents.indexOf(l)>-1:e.trackComponents;if(!(!s&&!u))if(this.$_sentrySpans=this.$_sentrySpans||{},i==o[0]){const c=this.$root&&this.$root.$_sentryRootSpan||tu();if(c){const f=this.$_sentrySpans[r];f&&!f.endTimestamp&&f.finish(),this.$_sentrySpans[r]=c.startChild({description:`Vue <${l}>`,op:`${Mf}.${r}`,origin:"auto.ui.vue"})}}else{const c=this.$_sentrySpans[r];if(!c)return;c.finish(),Z3(this,Cr(),e.timeout)}}}return n},tR=et,nR={Vue:tR.Vue,attachProps:!0,logErrors:!0,hooks:lv,timeout:2e3,trackComponents:!1};class bs{static __initStatic(){this.id="Vue"}constructor(t={}){this.name=bs.id,this._options=t}setupOnce(t,n){this._setupIntegration(n())}_setupIntegration(t){const n=t.getClient(),r={...nR,...n&&n.getOptions(),...this._options};if(!r.Vue&&!r.app){Xn(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}r.app?Ou(r.app).forEach(i=>Rf(i,r)):r.Vue&&Rf(r.Vue,r)}}bs.__initStatic();const Rf=(e,t)=>{const n=e;(n._instance&&n._instance.isMounted)===!0&&Xn(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),X3(e,t),es(t)&&e.mixin(eR({...t,...t.tracingOptions}))};function rR(e={}){const t={_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:wo}],version:wo}},defaultIntegrations:[...cm,new bs],...e};VN(t)}function aR(e,t={}){return(n,r=!0,o=!0)=>{const i={"routing.instrumentation":"vue-router"};r&&Ue&&Ue.location&&n({name:Ue.location.pathname,op:"pageload",origin:"auto.pageload.vue",tags:i,metadata:{source:"url"}}),e.onError(s=>Zi(s,{mechanism:{handled:!1}})),e.beforeEach((s,l,u)=>{const c=l.name==null&&l.matched.length===0,f={params:s.params,query:s.query};let p=s.path,h="url";if(s.name&&t.routeLabel!=="path"?(p=s.name.toString(),h="custom"):s.matched[0]&&s.matched[0].path&&(p=s.matched[0].path,h="route"),r&&c){const m=tu();m&&(m.metadata.source!=="custom"&&m.setName(p,h),m.setData("params",f.params),m.setData("query",f.query))}o&&!c&&n({name:p,op:"navigation",origin:"auto.navigation.vue",tags:i,data:f,metadata:{source:h}}),u&&u()})}}const oR={title:"Er lijkt iets mis te zijn gegaan",subtitle:"Ons team is op de hoogte gesteld. Het helpt enorm als je ons vertelt wat er is gebeurd.",subtitle2:"",labelName:"Naam",labelEmail:"E-mailadres",labelComments:"Omschrijf wat er gebeurd is",labelClose:"Sluiten",labelSubmit:"Verstuur rapport",errorGeneric:"Er is iets mis gegaan",errorFormEntry:"Niet alle velden zijn correct ingevuld",successMessage:"Je feedback is verzonden. Bedankt!"};function iR(e,t,n){rR({app:e,dsn:n.dsn,environment:n.environment,release:n.release,initialScope:{tags:{platform:n.platform,language:"vue"}},beforeSend(r,o){const i=n!=null&&n.beforeSend?n.beforeSend(r,o):r;return i.exception&&n.reportDialog!==!1&&FN({eventId:i.event_id,...oR,user:i==null?void 0:i.user,onLoad:()=>{var s,l,u;(s=document.querySelector(".sentry-error-embed-wrapper #id_name"))==null||s.setAttribute("placeholder",""),(l=document.querySelector(".sentry-error-embed-wrapper #id_email"))==null||l.setAttribute("placeholder",""),(u=document.querySelector(".sentry-error-embed-wrapper #id_comments"))==null||u.setAttribute("placeholder","")}}),i},integrations:[new xO({routingInstrumentation:aR(t)}),...(n==null?void 0:n.replay)===!0?[new ys]:[]],tracesSampleRate:parseFloat(`${(n==null?void 0:n.tracesSampleRate)??1}`),tracePropagationTargets:["localhost",".auto.test",n.url,/^\//]})}const sR={class:"flex items-center space-x-5"},lR={class:"font-serif text-base font-bold text-zinc-900","data-test-title":""},uR=["innerHTML"],ol=a.defineComponent({__name:"Toast",props:{title:{},content:{default:void 0},type:{},options:{default:void 0}},emits:["closeToast"],setup(e,{emit:t}){return(n,r)=>{var o;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"cursor-pointer":(o=n.options)==null?void 0:o.onClick},"relative"])},[a.createVNode(a.unref(Fi),{class:"absolute right-0 top-0 h-4 w-4 cursor-pointer",onClick:r[0]||(r[0]=a.withModifiers(()=>t("closeToast"),["stop"]))}),a.createElementVNode("div",sR,[a.createElementVNode("div",null,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Ep)[n.type]),{class:"h-7 w-7","data-test-icon":""}))]),a.createElementVNode("div",null,[a.createElementVNode("p",lR,a.toDisplayString(n.title),1),n.content?(a.openBlock(),a.createElementBlock("p",{key:0,class:"font-serif text-base text-zinc-700","data-test-content":"",innerHTML:n.content},null,8,uR)):a.createCommentVNode("",!0)])])],2)}}});function cR(e){const t=by(e);return{...t,success:(n,r,o)=>t.success({component:ol,props:{title:n,content:r,type:"success",options:o}},o),warning:(n,r,o)=>t.warning({component:ol,props:{title:n,content:r,type:"warning",options:o}},o),error:(n,r,o)=>t.error({component:ol,props:{title:n,content:r,type:"error",options:o}},o)}}const uv={install:(e,t)=>{var o;t!=null&&t.pusher&&wh(t.pusher.appKey,t.pusher.authorizer),(o=t==null?void 0:t.sentry)!=null&&o.dsn&&iR(e,t.sentry.router,t==null?void 0:t.sentry);const n={position:co.TOP_RIGHT,transition:"Vue-Toastification__bounce",maxToasts:5,icon:!1,hideProgressBar:!0,newestOnTop:!0,...(t==null?void 0:t.toast)??{}};e.use(_y,n);const r={defaultProps:{placement:"top"},...(t==null?void 0:t.tippy)??{}};e.use(pb,r)}},dR={class:"flex min-h-screen flex-col md:flex-row md:bg-secondary"},fR={class:"flex h-full grow flex-col bg-white md:h-auto md:w-1/2 md:grow-0 md:rounded-l-2xl","data-test-main-wrapper":""},pR={class:"flex grow justify-center px-10 transition-all md:items-center md:px-24"},hR={class:"mx-auto md:max-w-lg"},mR={class:"hidden w-1/2 md:block","data-test-layout-image-wrapper":""},vR=["src"],gR=a.defineComponent({__name:"Auth",setup(e){const{layoutImage:t}=fu();return(n,r)=>(a.openBlock(),a.createElementBlock("div",dR,[a.createVNode(a.unref(ji)),a.createElementVNode("div",fR,[a.renderSlot(n.$slots,"secondaryNavBar"),a.createElementVNode("main",pR,[a.createElementVNode("div",hR,[a.renderSlot(n.$slots,"default")])])]),a.createElementVNode("div",mR,[a.unref(t)?(a.openBlock(),a.createElementBlock("img",{key:0,src:a.unref(t),class:"h-screen w-full object-fill"},null,8,vR)):a.createCommentVNode("",!0)])]))}}),yR={class:"flex min-h-screen w-screen flex-col bg-zinc-100 md:flex-row"},bR={class:"relative order-4 flex shrink-0 grow flex-col overflow-y-auto overflow-x-hidden bg-zinc-100 transition-all duration-300 md:order-3 md:-mt-0 md:h-screen md:basis-0 md:overflow-y-auto md:overflow-x-hidden"},_R={class:"w-full px-4 py-8 md:px-6 md:py-12"},wR={id:"sidebar-wrapper",class:"order-3 flex w-full max-w-full shrink-0 grow-0 flex-col overflow-x-hidden bg-zinc-100 px-4 pt-8 transition-all empty:-mr-96 empty:ml-0 empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:order-4 md:max-h-screen md:w-96 md:overflow-hidden md:rounded-l-3xl md:bg-white md:p-12 xl:w-110 empty:xl:-mr-110 2xl:w-141 empty:2xl:-mr-141","data-test-layout-sidebar-wrapper":""},kR=a.defineComponent({__name:"Base",setup(e){const t=a.ref(null),n=a.ref(!0),r=new MutationObserver(o);a.onMounted(()=>{t.value&&(r.observe(t.value,{childList:!0,subtree:!0}),o())}),a.onUnmounted(()=>{r.disconnect()});function o(){const i=document.getElementById("sidebar-left-wrapper");n.value=!!(i!=null&&i.innerHTML)}return a.provide("sidebarLeftHasContent",n),(i,s)=>(a.openBlock(),a.createElementBlock("div",yR,[a.createVNode(a.unref(ji),{class:"z-50 order-1"}),a.createElementVNode("div",{id:"sidebar-left-wrapper",ref_key:"sidebarLeft",ref:t,class:"order-2 flex shrink-0 grow-0 flex-col overflow-y-auto bg-white p-4 transition-all empty:-ml-96 empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:mb-4 md:max-h-screen md:w-96 md:px-6 md:pt-8","data-test-layout-sidebar-left-wrapper":""},[a.renderSlot(i.$slots,"sidebarLeft")],512),a.createElementVNode("main",bR,[a.createVNode(a.unref(Tu)),a.createElementVNode("div",_R,[a.renderSlot(i.$slots,"default")])]),a.createElementVNode("div",wR,[a.renderSlot(i.$slots,"sidebar")])]))}}),SR={class:"flex min-h-screen w-screen flex-col bg-zinc-100 md:flex-row"},CR={class:"relative order-4 flex min-h-[calc(100vh-5rem)] shrink-0 flex-col overflow-y-auto overflow-x-hidden bg-zinc-100 transition-all duration-300 md:order-3 md:-mt-0 md:h-screen md:grow md:basis-0 md:overflow-y-auto md:overflow-x-hidden"},TR={class:"w-full px-4 py-8 md:px-6 md:py-12"},ER={id:"sidebar-wrapper",class:"order-5 flex w-full max-w-full shrink-0 grow-0 flex-col overflow-x-hidden bg-zinc-100 px-4 py-8 transition-all empty:-mr-96 empty:ml-0 empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:order-4 md:max-h-screen md:w-96 md:overflow-hidden md:rounded-l-3xl md:bg-white md:px-6 md:pb-6 md:pt-12 xl:w-[580px] empty:xl:mr-[-580px]","data-test-layout-sidebar-wrapper":""},xR=a.defineComponent({__name:"Platform",setup(e){const t=a.ref(null),n=a.ref(!0),r=new MutationObserver(o);a.onMounted(()=>{t.value&&(r.observe(t.value,{childList:!0,subtree:!0}),o())}),a.onUnmounted(()=>{r.disconnect()});function o(){const i=document.getElementById("sidebar-left-wrapper");n.value=!!(i!=null&&i.innerHTML)}return a.provide("sidebarLeftHasContent",n),(i,s)=>(a.openBlock(),a.createElementBlock("div",SR,[a.createVNode(a.unref(ji),{class:"z-50 order-1"}),a.createElementVNode("div",{id:"sidebar-left-wrapper",ref_key:"sidebarLeft",ref:t,class:"order-2 flex shrink-0 grow-0 flex-col overflow-y-auto bg-white p-4 transition-all empty:-ml-96 empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:max-h-screen md:w-96 md:px-6 md:pt-8","data-test-layout-sidebar-left-wrapper":""},[a.renderSlot(i.$slots,"sidebarLeft")],512),a.createElementVNode("main",CR,[a.createVNode(a.unref(Tu)),a.createElementVNode("div",TR,[a.renderSlot(i.$slots,"default")])]),a.createElementVNode("div",ER,[a.renderSlot(i.$slots,"sidebar")])]))}});exports.AppActionBar=Tu;exports.AppAlert=Fb;exports.AppAvatar=Jb;exports.AppBackButton=f_;exports.AppBadge=fi;exports.AppButton=Wr;exports.AppCard=$_;exports.AppConfirm=Dp;exports.AppDataTable=zx;exports.AppDefinitionList=iw;exports.AppDisclosure=sw;exports.AppDisclosureButton=uw;exports.AppDisclosurePanel=cw;exports.AppDropdownButton=D_;exports.AppInput=lh;exports.AppInputLabel=Cu;exports.AppLicensePlate=ch;exports.AppLoader=Kr;exports.AppMaps=XE;exports.AppModal=Np;exports.AppNavigationMenu=ji;exports.AppPagination=mh;exports.AppSelect=uh;exports.AppTimeline=y2;exports.AppTimelineItem=fh;exports.AppTimelineItemIcon=dh;exports.AppToggle=tP;exports.AuthLayout=gR;exports.BaseLayout=kR;exports.PlatformLayout=xR;exports.default=uv;exports.getOrCreateListener=_h;exports.plugin=uv;exports.registerEcho=wh;exports.toastInjectionKey=ru;exports.useActionBar=qi;exports.useConfirm=nP;exports.useEcho=gP;exports.useGoogleApi=vb;exports.useLayout=fu;exports.useModal=rP;exports.useNavigation=Ba;exports.useToast=cR;