@autoafleveren/ui 0.20.0 → 0.20.1

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.
Files changed (3) hide show
  1. package/dist/ui.cjs +19 -19
  2. package/dist/ui.js +687 -685
  3. package/package.json +1 -1
package/dist/ui.cjs CHANGED
@@ -1,8 +1,8 @@
1
- "use strict";var C3=Object.defineProperty;var S3=(e,t,n)=>t in e?C3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ee=(e,t,n)=>S3(e,typeof t!="symbol"?t+"":t,n);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),ms=require("vue-router"),ft=require("@headlessui/vue"),mo=require("@vueuse/core"),E3=require("radash");var x3=Object.defineProperty,Gm=Object.getOwnPropertySymbols,T3=Object.prototype.hasOwnProperty,P3=Object.prototype.propertyIsEnumerable,Xm=(e,t,n)=>t in e?x3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d0=(e,t)=>{for(var n in t||(t={}))T3.call(t,n)&&Xm(e,n,t[n]);if(Gm)for(var n of Gm(t))P3.call(t,n)&&Xm(e,n,t[n]);return e},xc=e=>typeof e=="function",Tc=e=>typeof e=="string",f0=e=>Tc(e)&&e.trim().length>0,I3=e=>typeof e=="number",Qa=e=>typeof e>"u",hs=e=>typeof e=="object"&&e!==null,A3=e=>Ar(e,"tag")&&f0(e.tag),p0=e=>window.TouchEvent&&e instanceof TouchEvent,m0=e=>Ar(e,"component")&&h0(e.component),M3=e=>xc(e)||hs(e),h0=e=>!Qa(e)&&(Tc(e)||M3(e)||m0(e)),Km=e=>hs(e)&&["height","width","right","left","top","bottom"].every(t=>I3(e[t])),Ar=(e,t)=>(hs(e)||xc(e))&&t in e,O3=(e=>()=>e++)(0);function Eu(e){return p0(e)?e.targetTouches[0].clientX:e.clientX}function Jm(e){return p0(e)?e.targetTouches[0].clientY:e.clientY}var N3=e=>{Qa(e.remove)?e.parentNode&&e.parentNode.removeChild(e):e.remove()},Ds=e=>m0(e)?Ds(e.component):A3(e)?a.defineComponent({render(){return e}}):typeof e=="string"?e:a.toRaw(a.unref(e)),B3=e=>{if(typeof e=="string")return e;const t=Ar(e,"props")&&hs(e.props)?e.props:{},n=Ar(e,"listeners")&&hs(e.listeners)?e.listeners:{};return{component:Ds(e),props:t,listeners:n}},D3=()=>typeof window<"u",$f=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))}},R3=e=>["on","off","emit"].every(t=>Ar(e,t)&&xc(e[t])),Pn;(function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.DEFAULT="default"})(Pn||(Pn={}));var vs;(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"})(vs||(vs={}));var In;(function(e){e.ADD="add",e.DISMISS="dismiss",e.UPDATE="update",e.CLEAR="clear",e.UPDATE_DEFAULTS="update_defaults"})(In||(In={}));var rr="Vue-Toastification",Qn={type:{type:String,default:Pn.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},v0={type:Qn.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},Ml={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:Qn.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},yd={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},g0={transition:{type:[Object,String],default:`${rr}__bounce`}},L3={position:{type:String,default:vs.TOP_RIGHT},draggable:Qn.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:Qn.trueBoolean,pauseOnHover:Qn.trueBoolean,closeOnClick:Qn.trueBoolean,timeout:yd.timeout,hideProgressBar:yd.hideProgressBar,toastClassName:Qn.classNames,bodyClassName:Qn.classNames,icon:v0.customIcon,closeButton:Ml.component,closeButtonClassName:Ml.classNames,showCloseButtonOnHover:Ml.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new $f}},$3={id:{type:[String,Number],required:!0,default:0},type:Qn.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},z3={container:{type:[Object,Function],default:()=>document.body},newestOnTop:Qn.trueBoolean,maxToasts:{type:Number,default:20},transition:g0.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:e=>e},filterToasts:{type:Function,default:e=>e},containerClassName:Qn.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},Yr={CORE_TOAST:L3,TOAST:$3,CONTAINER:z3,PROGRESS_BAR:yd,ICON:v0,TRANSITION:g0,CLOSE_BUTTON:Ml},y0=a.defineComponent({name:"VtProgressBar",props:Yr.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?`${rr}__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 V3(e,t){return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style),class:a.normalizeClass(e.cpClass)},null,6)}y0.render=V3;var F3=y0,b0=a.defineComponent({name:"VtCloseButton",props:Yr.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?Ds(this.component):"button"},classes(){const e=[`${rr}__close-button`];return this.showOnHover&&e.push("show-on-hover"),e.concat(this.classNames)}}}),j3=a.createTextVNode(" × ");function H3(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(()=>[j3]),_:1},16,["aria-label","class"])}b0.render=H3;var U3=b0,w0={},W3={"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"},q3=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),Y3=[q3];function G3(e,t){return a.openBlock(),a.createElementBlock("svg",W3,Y3)}w0.render=G3;var X3=w0,k0={},K3={"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"},J3=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),Q3=[J3];function Z3(e,t){return a.openBlock(),a.createElementBlock("svg",K3,Q3)}k0.render=Z3;var Qm=k0,_0={},ek={"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"},tk=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),nk=[tk];function rk(e,t){return a.openBlock(),a.createElementBlock("svg",ek,nk)}_0.render=rk;var ak=_0,C0={},ok={"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"},ik=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),sk=[ik];function lk(e,t){return a.openBlock(),a.createElementBlock("svg",ok,sk)}C0.render=lk;var ck=C0,S0=a.defineComponent({name:"VtIcon",props:Yr.ICON,computed:{customIconChildren(){return Ar(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return Tc(this.customIcon)?this.trimValue(this.customIcon):Ar(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return Ar(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:h0(this.customIcon)?Ds(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[Pn.DEFAULT]:Qm,[Pn.INFO]:Qm,[Pn.SUCCESS]:X3,[Pn.ERROR]:ck,[Pn.WARNING]:ak}[this.type]},iconClasses(){const e=[`${rr}__icon`];return this.hasCustomIcon?e.concat(this.customIconClass):e}},methods:{trimValue(e,t=""){return f0(e)?e.trim():t}}});function uk(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"])}S0.render=uk;var dk=S0,E0=a.defineComponent({name:"VtToast",components:{ProgressBar:F3,CloseButton:U3,Icon:dk},inheritAttrs:!1,props:Object.assign({},Yr.CORE_TOAST,Yr.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const e=[`${rr}__toast`,`${rr}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&e.push("disable-transition"),this.rtl&&e.push(`${rr}__toast--rtl`),e},bodyClasses(){return[`${rr}__toast-${Tc(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 Km(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:Ar,getVueComponentFromObj:Ds,closeToast(){this.eventBus.emit(In.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:Eu(e),y:Jm(e)},this.dragStart=Eu(e),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(e){this.beingDragged&&(e.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:Eu(e),y:Jm(e)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,Km(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}))}}}),fk=["role"];function pk(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,fk),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)}E0.render=pk;var mk=E0,x0=a.defineComponent({name:"VtTransition",props:Yr.TRANSITION,emits:["leave"],methods:{hasProp:Ar,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 hk(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"])}x0.render=hk;var vk=x0,T0=a.defineComponent({name:"VueToastification",devtools:{hide:!0},components:{Toast:mk,VtTransition:vk},props:Object.assign({},Yr.CORE_TOAST,Yr.CONTAINER,Yr.TRANSITION),data(){return{count:0,positions:Object.values(vs),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const e=this.eventBus;e.on(In.ADD,this.addToast),e.on(In.CLEAR,this.clearToasts),e.on(In.DISMISS,this.dismissToast),e.on(In.UPDATE,this.updateToast),e.on(In.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(e){xc(e)&&(e=await e()),N3(this.$el),e.appendChild(this.$el)},setToast(e){Qa(e.id)||(this.toasts[e.id]=e)},addToast(e){e.content=B3(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];!Qa(t)&&!Qa(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){Qa(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[`${rr}__container`,e].concat(this.defaults.containerClassName)}}});function gk(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))])}T0.render=gk;var yk=T0,Zm=(e={},t=!0)=>{const n=e.eventBus=e.eventBus||new $f;t&&a.nextTick(()=>{const i=a.createApp(yk,d0({},e)),s=i.mount(document.createElement("div")),l=e.onMounted;if(Qa(l)||l(s,i),e.shareAppContext){const c=e.shareAppContext;c===!0?console.warn(`[${rr}] App to share context with was not provided.`):(i._context.components=c._context.components,i._context.directives=c._context.directives,i._context.mixins=c._context.mixins,i._context.provides=c._context.provides,i.config.globalProperties=c.config.globalProperties)}});const r=(i,s)=>{const l=Object.assign({},{id:O3(),type:Pn.DEFAULT},s,{content:i});return n.emit(In.ADD,l),l.id};r.clear=()=>n.emit(In.CLEAR,void 0),r.updateDefaults=i=>{n.emit(In.UPDATE_DEFAULTS,i)},r.dismiss=i=>{n.emit(In.DISMISS,i)};function o(i,{content:s,options:l},c=!1){const d=Object.assign({},l,{content:s});n.emit(In.UPDATE,{id:i,options:d,create:c})}return r.update=o,r.success=(i,s)=>r(i,Object.assign({},s,{type:Pn.SUCCESS})),r.info=(i,s)=>r(i,Object.assign({},s,{type:Pn.INFO})),r.error=(i,s)=>r(i,Object.assign({},s,{type:Pn.ERROR})),r.warning=(i,s)=>r(i,Object.assign({},s,{type:Pn.WARNING})),r},bk=()=>{const e=()=>console.warn(`[${rr}] This plugin does not support SSR!`);return new Proxy(e,{get(){return e}})};function bd(e){return D3()?R3(e)?Zm({eventBus:e},!1):Zm(e,!0):bk()}var zf=Symbol("VueToastification"),P0=new $f,wk=(e,t)=>{(t==null?void 0:t.shareAppContext)===!0&&(t.shareAppContext=e);const n=bd(d0({eventBus:P0},t));e.provide(zf,n)},kk=e=>{if(e)return bd(e);const t=a.getCurrentInstance()?a.inject(zf,void 0):void 0;return t||bd(P0)},_k=wk;/*!
1
+ "use strict";var C3=Object.defineProperty;var S3=(e,t,n)=>t in e?C3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ee=(e,t,n)=>S3(e,typeof t!="symbol"?t+"":t,n);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),ms=require("vue-router"),ft=require("@headlessui/vue"),mo=require("@vueuse/core"),E3=require("radash");var x3=Object.defineProperty,Gm=Object.getOwnPropertySymbols,T3=Object.prototype.hasOwnProperty,P3=Object.prototype.propertyIsEnumerable,Xm=(e,t,n)=>t in e?x3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d0=(e,t)=>{for(var n in t||(t={}))T3.call(t,n)&&Xm(e,n,t[n]);if(Gm)for(var n of Gm(t))P3.call(t,n)&&Xm(e,n,t[n]);return e},xc=e=>typeof e=="function",Tc=e=>typeof e=="string",f0=e=>Tc(e)&&e.trim().length>0,I3=e=>typeof e=="number",Qa=e=>typeof e>"u",hs=e=>typeof e=="object"&&e!==null,A3=e=>Ar(e,"tag")&&f0(e.tag),p0=e=>window.TouchEvent&&e instanceof TouchEvent,m0=e=>Ar(e,"component")&&h0(e.component),M3=e=>xc(e)||hs(e),h0=e=>!Qa(e)&&(Tc(e)||M3(e)||m0(e)),Km=e=>hs(e)&&["height","width","right","left","top","bottom"].every(t=>I3(e[t])),Ar=(e,t)=>(hs(e)||xc(e))&&t in e,O3=(e=>()=>e++)(0);function Eu(e){return p0(e)?e.targetTouches[0].clientX:e.clientX}function Jm(e){return p0(e)?e.targetTouches[0].clientY:e.clientY}var N3=e=>{Qa(e.remove)?e.parentNode&&e.parentNode.removeChild(e):e.remove()},Ds=e=>m0(e)?Ds(e.component):A3(e)?a.defineComponent({render(){return e}}):typeof e=="string"?e:a.toRaw(a.unref(e)),B3=e=>{if(typeof e=="string")return e;const t=Ar(e,"props")&&hs(e.props)?e.props:{},n=Ar(e,"listeners")&&hs(e.listeners)?e.listeners:{};return{component:Ds(e),props:t,listeners:n}},D3=()=>typeof window<"u",$f=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))}},R3=e=>["on","off","emit"].every(t=>Ar(e,t)&&xc(e[t])),Pn;(function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.DEFAULT="default"})(Pn||(Pn={}));var vs;(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"})(vs||(vs={}));var In;(function(e){e.ADD="add",e.DISMISS="dismiss",e.UPDATE="update",e.CLEAR="clear",e.UPDATE_DEFAULTS="update_defaults"})(In||(In={}));var ar="Vue-Toastification",Zn={type:{type:String,default:Pn.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},v0={type:Zn.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},Ml={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:Zn.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},yd={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},g0={transition:{type:[Object,String],default:`${ar}__bounce`}},L3={position:{type:String,default:vs.TOP_RIGHT},draggable:Zn.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:Zn.trueBoolean,pauseOnHover:Zn.trueBoolean,closeOnClick:Zn.trueBoolean,timeout:yd.timeout,hideProgressBar:yd.hideProgressBar,toastClassName:Zn.classNames,bodyClassName:Zn.classNames,icon:v0.customIcon,closeButton:Ml.component,closeButtonClassName:Ml.classNames,showCloseButtonOnHover:Ml.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new $f}},$3={id:{type:[String,Number],required:!0,default:0},type:Zn.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},z3={container:{type:[Object,Function],default:()=>document.body},newestOnTop:Zn.trueBoolean,maxToasts:{type:Number,default:20},transition:g0.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:e=>e},filterToasts:{type:Function,default:e=>e},containerClassName:Zn.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},Yr={CORE_TOAST:L3,TOAST:$3,CONTAINER:z3,PROGRESS_BAR:yd,ICON:v0,TRANSITION:g0,CLOSE_BUTTON:Ml},y0=a.defineComponent({name:"VtProgressBar",props:Yr.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?`${ar}__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 V3(e,t){return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style),class:a.normalizeClass(e.cpClass)},null,6)}y0.render=V3;var F3=y0,b0=a.defineComponent({name:"VtCloseButton",props:Yr.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?Ds(this.component):"button"},classes(){const e=[`${ar}__close-button`];return this.showOnHover&&e.push("show-on-hover"),e.concat(this.classNames)}}}),j3=a.createTextVNode(" × ");function H3(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(()=>[j3]),_:1},16,["aria-label","class"])}b0.render=H3;var U3=b0,w0={},W3={"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"},q3=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),Y3=[q3];function G3(e,t){return a.openBlock(),a.createElementBlock("svg",W3,Y3)}w0.render=G3;var X3=w0,k0={},K3={"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"},J3=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),Q3=[J3];function Z3(e,t){return a.openBlock(),a.createElementBlock("svg",K3,Q3)}k0.render=Z3;var Qm=k0,_0={},ek={"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"},tk=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),nk=[tk];function rk(e,t){return a.openBlock(),a.createElementBlock("svg",ek,nk)}_0.render=rk;var ak=_0,C0={},ok={"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"},ik=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),sk=[ik];function lk(e,t){return a.openBlock(),a.createElementBlock("svg",ok,sk)}C0.render=lk;var ck=C0,S0=a.defineComponent({name:"VtIcon",props:Yr.ICON,computed:{customIconChildren(){return Ar(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return Tc(this.customIcon)?this.trimValue(this.customIcon):Ar(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return Ar(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:h0(this.customIcon)?Ds(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[Pn.DEFAULT]:Qm,[Pn.INFO]:Qm,[Pn.SUCCESS]:X3,[Pn.ERROR]:ck,[Pn.WARNING]:ak}[this.type]},iconClasses(){const e=[`${ar}__icon`];return this.hasCustomIcon?e.concat(this.customIconClass):e}},methods:{trimValue(e,t=""){return f0(e)?e.trim():t}}});function uk(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"])}S0.render=uk;var dk=S0,E0=a.defineComponent({name:"VtToast",components:{ProgressBar:F3,CloseButton:U3,Icon:dk},inheritAttrs:!1,props:Object.assign({},Yr.CORE_TOAST,Yr.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const e=[`${ar}__toast`,`${ar}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&e.push("disable-transition"),this.rtl&&e.push(`${ar}__toast--rtl`),e},bodyClasses(){return[`${ar}__toast-${Tc(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 Km(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:Ar,getVueComponentFromObj:Ds,closeToast(){this.eventBus.emit(In.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:Eu(e),y:Jm(e)},this.dragStart=Eu(e),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(e){this.beingDragged&&(e.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:Eu(e),y:Jm(e)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,Km(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}))}}}),fk=["role"];function pk(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,fk),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)}E0.render=pk;var mk=E0,x0=a.defineComponent({name:"VtTransition",props:Yr.TRANSITION,emits:["leave"],methods:{hasProp:Ar,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 hk(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"])}x0.render=hk;var vk=x0,T0=a.defineComponent({name:"VueToastification",devtools:{hide:!0},components:{Toast:mk,VtTransition:vk},props:Object.assign({},Yr.CORE_TOAST,Yr.CONTAINER,Yr.TRANSITION),data(){return{count:0,positions:Object.values(vs),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const e=this.eventBus;e.on(In.ADD,this.addToast),e.on(In.CLEAR,this.clearToasts),e.on(In.DISMISS,this.dismissToast),e.on(In.UPDATE,this.updateToast),e.on(In.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(e){xc(e)&&(e=await e()),N3(this.$el),e.appendChild(this.$el)},setToast(e){Qa(e.id)||(this.toasts[e.id]=e)},addToast(e){e.content=B3(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];!Qa(t)&&!Qa(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){Qa(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[`${ar}__container`,e].concat(this.defaults.containerClassName)}}});function gk(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))])}T0.render=gk;var yk=T0,Zm=(e={},t=!0)=>{const n=e.eventBus=e.eventBus||new $f;t&&a.nextTick(()=>{const i=a.createApp(yk,d0({},e)),s=i.mount(document.createElement("div")),l=e.onMounted;if(Qa(l)||l(s,i),e.shareAppContext){const c=e.shareAppContext;c===!0?console.warn(`[${ar}] App to share context with was not provided.`):(i._context.components=c._context.components,i._context.directives=c._context.directives,i._context.mixins=c._context.mixins,i._context.provides=c._context.provides,i.config.globalProperties=c.config.globalProperties)}});const r=(i,s)=>{const l=Object.assign({},{id:O3(),type:Pn.DEFAULT},s,{content:i});return n.emit(In.ADD,l),l.id};r.clear=()=>n.emit(In.CLEAR,void 0),r.updateDefaults=i=>{n.emit(In.UPDATE_DEFAULTS,i)},r.dismiss=i=>{n.emit(In.DISMISS,i)};function o(i,{content:s,options:l},c=!1){const d=Object.assign({},l,{content:s});n.emit(In.UPDATE,{id:i,options:d,create:c})}return r.update=o,r.success=(i,s)=>r(i,Object.assign({},s,{type:Pn.SUCCESS})),r.info=(i,s)=>r(i,Object.assign({},s,{type:Pn.INFO})),r.error=(i,s)=>r(i,Object.assign({},s,{type:Pn.ERROR})),r.warning=(i,s)=>r(i,Object.assign({},s,{type:Pn.WARNING})),r},bk=()=>{const e=()=>console.warn(`[${ar}] This plugin does not support SSR!`);return new Proxy(e,{get(){return e}})};function bd(e){return D3()?R3(e)?Zm({eventBus:e},!1):Zm(e,!0):bk()}var zf=Symbol("VueToastification"),P0=new $f,wk=(e,t)=>{(t==null?void 0:t.shareAppContext)===!0&&(t.shareAppContext=e);const n=bd(d0({eventBus:P0},t));e.provide(zf,n)},kk=e=>{if(e)return bd(e);const t=a.getCurrentInstance()?a.inject(zf,void 0):void 0;return t||bd(P0)},_k=wk;/*!
2
2
  * vue-tippy v6.6.0
3
3
  * (c) 2024
4
4
  * @license MIT
5
- */var kn="top",Hn="bottom",Un="right",_n="left",Vf="auto",Rs=[kn,Hn,Un,_n],Zo="start",gs="end",Ck="clippingParents",I0="viewport",qi="popper",Sk="reference",eh=Rs.reduce(function(e,t){return e.concat([t+"-"+Zo,t+"-"+gs])},[]),A0=[].concat(Rs,[Vf]).reduce(function(e,t){return e.concat([t,t+"-"+Zo,t+"-"+gs])},[]),Ek="beforeRead",xk="read",Tk="afterRead",Pk="beforeMain",Ik="main",Ak="afterMain",Mk="beforeWrite",Ok="write",Nk="afterWrite",Bk=[Ek,xk,Tk,Pk,Ik,Ak,Mk,Ok,Nk];function Br(e){return e?(e.nodeName||"").toLowerCase():null}function fr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ei(e){var t=fr(e).Element;return e instanceof t||e instanceof Element}function Vn(e){var t=fr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function M0(e){if(typeof ShadowRoot>"u")return!1;var t=fr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Dk(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];!Vn(i)||!Br(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 Rk(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(c,d){return c[d]="",c},{});!Vn(o)||!Br(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}var O0={name:"applyStyles",enabled:!0,phase:"write",fn:Dk,effect:Rk,requires:["computeStyles"]};function Mr(e){return e.split("-")[0]}var ao=Math.max,ql=Math.min,ti=Math.round;function ni(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Vn(e)&&t){var i=e.offsetHeight,s=e.offsetWidth;s>0&&(r=ti(n.width)/s||1),i>0&&(o=ti(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 Ff(e){var t=ni(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 N0(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&M0(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Dr(e){return fr(e).getComputedStyle(e)}function Lk(e){return["table","td","th"].indexOf(Br(e))>=0}function Da(e){return((ei(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pc(e){return Br(e)==="html"?e:e.assignedSlot||e.parentNode||(M0(e)?e.host:null)||Da(e)}function th(e){return!Vn(e)||Dr(e).position==="fixed"?null:e.offsetParent}function $k(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Vn(e)){var r=Dr(e);if(r.position==="fixed")return null}for(var o=Pc(e);Vn(o)&&["html","body"].indexOf(Br(o))<0;){var i=Dr(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 Ls(e){for(var t=fr(e),n=th(e);n&&Lk(n)&&Dr(n).position==="static";)n=th(n);return n&&(Br(n)==="html"||Br(n)==="body"&&Dr(n).position==="static")?t:n||$k(e)||t}function jf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qi(e,t,n){return ao(e,ql(t,n))}function zk(e,t,n){var r=Qi(e,t,n);return r>n?n:r}function B0(){return{top:0,right:0,bottom:0,left:0}}function D0(e){return Object.assign({},B0(),e)}function R0(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Vk=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,D0(typeof t!="number"?t:R0(t,Rs))};function Fk(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Mr(n.placement),c=jf(l),d=[_n,Un].indexOf(l)>=0,u=d?"height":"width";if(!(!i||!s)){var f=Vk(o.padding,n),p=Ff(i),h=c==="y"?kn:_n,v=c==="y"?Hn:Un,y=n.rects.reference[u]+n.rects.reference[c]-s[c]-n.rects.popper[u],C=s[c]-n.rects.reference[c],g=Ls(i),S=g?c==="y"?g.clientHeight||0:g.clientWidth||0:0,_=y/2-C/2,b=f[h],T=S-p[u]-f[v],E=S/2-p[u]/2+_,x=Qi(b,E,T),A=c;n.modifiersData[r]=(t={},t[A]=x,t.centerOffset=x-E,t)}}function jk(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)||N0(t.elements.popper,o)&&(t.elements.arrow=o))}var Hk={name:"arrow",enabled:!0,phase:"main",fn:Fk,effect:jk,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ri(e){return e.split("-")[1]}var Uk={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wk(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:ti(t*o)/o||0,y:ti(n*o)/o||0}}function nh(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=u===!0?Wk(s):typeof u=="function"?u(s):s,h=p.x,v=h===void 0?0:h,y=p.y,C=y===void 0?0:y,g=s.hasOwnProperty("x"),S=s.hasOwnProperty("y"),_=_n,b=kn,T=window;if(d){var E=Ls(n),x="clientHeight",A="clientWidth";if(E===fr(n)&&(E=Da(n),Dr(E).position!=="static"&&l==="absolute"&&(x="scrollHeight",A="scrollWidth")),E=E,o===kn||(o===_n||o===Un)&&i===gs){b=Hn;var P=f&&T.visualViewport?T.visualViewport.height:E[x];C-=P-r.height,C*=c?1:-1}if(o===_n||(o===kn||o===Hn)&&i===gs){_=Un;var M=f&&T.visualViewport?T.visualViewport.width:E[A];v-=M-r.width,v*=c?1:-1}}var z=Object.assign({position:l},d&&Uk);if(c){var V;return Object.assign({},z,(V={},V[b]=S?"0":"",V[_]=g?"0":"",V.transform=(T.devicePixelRatio||1)<=1?"translate("+v+"px, "+C+"px)":"translate3d("+v+"px, "+C+"px, 0)",V))}return Object.assign({},z,(t={},t[b]=S?C+"px":"",t[_]=g?v+"px":"",t.transform="",t))}function qk(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,c=l===void 0?!0:l,d={placement:Mr(t.placement),variation:ri(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,nh(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,nh(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Yk={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:qk,data:{}},il={passive:!0};function Gk(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,c=fr(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",n.update,il)}),l&&c.addEventListener("resize",n.update,il),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",n.update,il)}),l&&c.removeEventListener("resize",n.update,il)}}var Xk={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Gk,data:{}},Kk={left:"right",right:"left",bottom:"top",top:"bottom"};function Ol(e){return e.replace(/left|right|bottom|top/g,function(t){return Kk[t]})}var Jk={start:"end",end:"start"};function rh(e){return e.replace(/start|end/g,function(t){return Jk[t]})}function Hf(e){var t=fr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Uf(e){return ni(Da(e)).left+Hf(e).scrollLeft}function Qk(e){var t=fr(e),n=Da(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+Uf(e),y:l}}function Zk(e){var t,n=Da(e),r=Hf(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ao(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ao(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Uf(e),c=-r.scrollTop;return Dr(o||n).direction==="rtl"&&(l+=ao(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function Wf(e){var t=Dr(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function L0(e){return["html","body","#document"].indexOf(Br(e))>=0?e.ownerDocument.body:Vn(e)&&Wf(e)?e:L0(Pc(e))}function Zi(e,t){var n;t===void 0&&(t=[]);var r=L0(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=fr(r),s=o?[i].concat(i.visualViewport||[],Wf(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(Zi(Pc(s)))}function wd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function e_(e){var t=ni(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 ah(e,t){return t===I0?wd(Qk(e)):ei(t)?e_(t):wd(Zk(Da(e)))}function t_(e){var t=Zi(Pc(e)),n=["absolute","fixed"].indexOf(Dr(e).position)>=0,r=n&&Vn(e)?Ls(e):e;return ei(r)?t.filter(function(o){return ei(o)&&N0(o,r)&&Br(o)!=="body"&&(n?Dr(o).position!=="static":!0)}):[]}function n_(e,t,n){var r=t==="clippingParents"?t_(e):[].concat(t),o=[].concat(r,[n]),i=o[0],s=o.reduce(function(l,c){var d=ah(e,c);return l.top=ao(d.top,l.top),l.right=ql(d.right,l.right),l.bottom=ql(d.bottom,l.bottom),l.left=ao(d.left,l.left),l},ah(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 $0(e){var t=e.reference,n=e.element,r=e.placement,o=r?Mr(r):null,i=r?ri(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case kn:c={x:s,y:t.y-n.height};break;case Hn:c={x:s,y:t.y+t.height};break;case Un:c={x:t.x+t.width,y:l};break;case _n:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=o?jf(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case Zo:c[d]=c[d]-(t[u]/2-n[u]/2);break;case gs:c[d]=c[d]+(t[u]/2-n[u]/2);break}}return c}function ys(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?Ck:i,l=n.rootBoundary,c=l===void 0?I0:l,d=n.elementContext,u=d===void 0?qi:d,f=n.altBoundary,p=f===void 0?!1:f,h=n.padding,v=h===void 0?0:h,y=D0(typeof v!="number"?v:R0(v,Rs)),C=u===qi?Sk:qi,g=e.rects.popper,S=e.elements[p?C:u],_=n_(ei(S)?S:S.contextElement||Da(e.elements.popper),s,c),b=ni(e.elements.reference),T=$0({reference:b,element:g,strategy:"absolute",placement:o}),E=wd(Object.assign({},g,T)),x=u===qi?E:b,A={top:_.top-x.top+y.top,bottom:x.bottom-_.bottom+y.bottom,left:_.left-x.left+y.left,right:x.right-_.right+y.right},P=e.modifiersData.offset;if(u===qi&&P){var M=P[o];Object.keys(A).forEach(function(z){var V=[Un,Hn].indexOf(z)>=0?1:-1,Y=[kn,Hn].indexOf(z)>=0?"y":"x";A[z]+=M[Y]*V})}return A}function r_(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?A0:c,u=ri(r),f=u?l?eh:eh.filter(function(v){return ri(v)===u}):Rs,p=f.filter(function(v){return d.indexOf(v)>=0});p.length===0&&(p=f);var h=p.reduce(function(v,y){return v[y]=ys(e,{placement:y,boundary:o,rootBoundary:i,padding:s})[Mr(y)],v},{});return Object.keys(h).sort(function(v,y){return h[v]-h[y]})}function a_(e){if(Mr(e)===Vf)return[];var t=Ol(e);return[rh(e),t,rh(t)]}function o_(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,c=n.fallbackPlacements,d=n.padding,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,y=n.allowedAutoPlacements,C=t.options.placement,g=Mr(C),S=g===C,_=c||(S||!v?[Ol(C)]:a_(C)),b=[C].concat(_).reduce(function(I,L){return I.concat(Mr(L)===Vf?r_(t,{placement:L,boundary:u,rootBoundary:f,padding:d,flipVariations:v,allowedAutoPlacements:y}):L)},[]),T=t.rects.reference,E=t.rects.popper,x=new Map,A=!0,P=b[0],M=0;M<b.length;M++){var z=b[M],V=Mr(z),Y=ri(z)===Zo,D=[kn,Hn].indexOf(V)>=0,H=D?"width":"height",B=ys(t,{placement:z,boundary:u,rootBoundary:f,altBoundary:p,padding:d}),q=D?Y?Un:_n:Y?Hn:kn;T[H]>E[H]&&(q=Ol(q));var J=Ol(q),U=[];if(i&&U.push(B[V]<=0),l&&U.push(B[q]<=0,B[J]<=0),U.every(function(I){return I})){P=z,A=!1;break}x.set(z,U)}if(A)for(var j=v?3:1,ie=function(L){var F=b.find(function(N){var ce=x.get(N);if(ce)return ce.slice(0,L).every(function(ge){return ge})});if(F)return P=F,"break"},Z=j;Z>0;Z--){var K=ie(Z);if(K==="break")break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}}var i_={name:"flip",enabled:!0,phase:"main",fn:o_,requiresIfExists:["offset"],data:{_skip:!1}};function oh(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 ih(e){return[kn,Un,Hn,_n].some(function(t){return e[t]>=0})}function s_(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=ys(t,{elementContext:"reference"}),l=ys(t,{altBoundary:!0}),c=oh(s,r),d=oh(l,o,i),u=ih(c),f=ih(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}var l_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:s_};function c_(e,t,n){var r=Mr(e),o=[_n,kn].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,[_n,Un].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function u_(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=A0.reduce(function(u,f){return u[f]=c_(f,t.rects,i),u},{}),l=s[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=s}var d_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:u_};function f_(e){var t=e.state,n=e.name;t.modifiersData[n]=$0({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var p_={name:"popperOffsets",enabled:!0,phase:"read",fn:f_,data:{}};function m_(e){return e==="x"?"y":"x"}function h_(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,c=n.boundary,d=n.rootBoundary,u=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,C=ys(t,{boundary:c,rootBoundary:d,padding:f,altBoundary:u}),g=Mr(t.placement),S=ri(t.placement),_=!S,b=jf(g),T=m_(b),E=t.modifiersData.popperOffsets,x=t.rects.reference,A=t.rects.popper,P=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,M=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(E){if(i){var Y,D=b==="y"?kn:_n,H=b==="y"?Hn:Un,B=b==="y"?"height":"width",q=E[b],J=q+C[D],U=q-C[H],j=h?-A[B]/2:0,ie=S===Zo?x[B]:A[B],Z=S===Zo?-A[B]:-x[B],K=t.elements.arrow,I=h&&K?Ff(K):{width:0,height:0},L=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:B0(),F=L[D],N=L[H],ce=Qi(0,x[B],I[B]),ge=_?x[B]/2-j-ce-F-M.mainAxis:ie-ce-F-M.mainAxis,Fe=_?-x[B]/2+j+ce+N+M.mainAxis:Z+ce+N+M.mainAxis,ee=t.elements.arrow&&Ls(t.elements.arrow),se=ee?b==="y"?ee.clientTop||0:ee.clientLeft||0:0,ae=(Y=z==null?void 0:z[b])!=null?Y:0,me=q+ge-ae-se,R=q+Fe-ae,oe=Qi(h?ql(J,me):J,q,h?ao(U,R):U);E[b]=oe,V[b]=oe-q}if(l){var Pe,ue=b==="x"?kn:_n,Ne=b==="x"?Hn:Un,de=E[T],G=T==="y"?"height":"width",te=de+C[ue],pe=de-C[Ne],xe=[kn,_n].indexOf(g)!==-1,Te=(Pe=z==null?void 0:z[T])!=null?Pe:0,Se=xe?te:de-x[G]-A[G]-Te+M.altAxis,ot=xe?de+x[G]+A[G]-Te-M.altAxis:pe,Ge=h&&xe?zk(Se,de,ot):Qi(h?Se:te,de,h?ot:pe);E[T]=Ge,V[T]=Ge-de}t.modifiersData[r]=V}}var v_={name:"preventOverflow",enabled:!0,phase:"main",fn:h_,requiresIfExists:["offset"]};function g_(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function y_(e){return e===fr(e)||!Vn(e)?Hf(e):g_(e)}function b_(e){var t=e.getBoundingClientRect(),n=ti(t.width)/e.offsetWidth||1,r=ti(t.height)/e.offsetHeight||1;return n!==1||r!==1}function w_(e,t,n){n===void 0&&(n=!1);var r=Vn(t),o=Vn(t)&&b_(t),i=Da(t),s=ni(e,o),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Br(t)!=="body"||Wf(i))&&(l=y_(t)),Vn(t)?(c=ni(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Uf(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function k_(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 c=t.get(l);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function __(e){var t=k_(e);return Bk.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function C_(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function S_(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 sh={placement:"bottom",modifiers:[],strategy:"absolute"};function lh(){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 E_(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?sh:o;return function(l,c,d){d===void 0&&(d=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},sh,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:u,setOptions:function(g){var S=typeof g=="function"?g(u.options):g;y(),u.options=Object.assign({},i,u.options,S),u.scrollParents={reference:ei(l)?Zi(l):l.contextElement?Zi(l.contextElement):[],popper:Zi(c)};var _=__(S_([].concat(r,u.options.modifiers)));return u.orderedModifiers=_.filter(function(b){return b.enabled}),v(),h.update()},forceUpdate:function(){if(!p){var g=u.elements,S=g.reference,_=g.popper;if(lh(S,_)){u.rects={reference:w_(S,Ls(_),u.options.strategy==="fixed"),popper:Ff(_)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(M){return u.modifiersData[M.name]=Object.assign({},M.data)});for(var b=0;b<u.orderedModifiers.length;b++){if(u.reset===!0){u.reset=!1,b=-1;continue}var T=u.orderedModifiers[b],E=T.fn,x=T.options,A=x===void 0?{}:x,P=T.name;typeof E=="function"&&(u=E({state:u,options:A,name:P,instance:h})||u)}}}},update:C_(function(){return new Promise(function(C){h.forceUpdate(),C(u)})}),destroy:function(){y(),p=!0}};if(!lh(l,c))return h;h.setOptions(d).then(function(C){!p&&d.onFirstUpdate&&d.onFirstUpdate(C)});function v(){u.orderedModifiers.forEach(function(C){var g=C.name,S=C.options,_=S===void 0?{}:S,b=C.effect;if(typeof b=="function"){var T=b({state:u,name:g,instance:h,options:_}),E=function(){};f.push(T||E)}})}function y(){f.forEach(function(C){return C()}),f=[]}return h}}var x_=[Xk,p_,Yk,O0,d_,i_,v_,Hk,l_],T_=E_({defaultModifiers:x_}),P_="tippy-box",z0="tippy-content",V0="tippy-backdrop",F0="tippy-arrow",j0="tippy-svg-arrow",Ga={passive:!0,capture:!0},H0=function(){return document.body};function xu(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function qf(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function U0(e,t){return typeof e=="function"?e.apply(void 0,t):e}function ch(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function I_(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function A_(e){return e.split(/\s+/).filter(Boolean)}function Ka(e){return[].concat(e)}function uh(e,t){e.indexOf(t)===-1&&e.push(t)}function M_(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function W0(e){return e.split("-")[0]}function ai(e){return[].slice.call(e)}function dh(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function oo(){return document.createElement("div")}function Ic(e){return["Element","Fragment"].some(function(t){return qf(e,t)})}function O_(e){return qf(e,"NodeList")}function Yf(e){return qf(e,"MouseEvent")}function N_(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function B_(e){return Ic(e)?[e]:O_(e)?ai(e):Array.isArray(e)?e:ai(document.querySelectorAll(e))}function Tu(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function bs(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function q0(e){var t,n=Ka(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function D_(e,t){var n=t.clientX,r=t.clientY;return e.every(function(o){var i=o.popperRect,s=o.popperState,l=o.props,c=l.interactiveBorder,d=W0(s.placement),u=s.modifiersData.offset;if(!u)return!0;var f=d==="bottom"?u.top.y:0,p=d==="top"?u.bottom.y:0,h=d==="right"?u.left.x:0,v=d==="left"?u.right.x:0,y=i.top-r+f>c,C=r-i.bottom-p>c,g=i.left-n+h>c,S=n-i.right-v>c;return y||C||g||S})}function Pu(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[r](o,n)})}function fh(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 br={isTouch:!1},ph=0;function R_(){br.isTouch||(br.isTouch=!0,window.performance&&document.addEventListener("mousemove",Y0))}function Y0(){var e=performance.now();e-ph<20&&(br.isTouch=!1,document.removeEventListener("mousemove",Y0)),ph=e}function L_(){var e=document.activeElement;if(N_(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function $_(){document.addEventListener("touchstart",R_,Ga),window.addEventListener("blur",L_)}var z_=typeof window<"u"&&typeof document<"u",V_=z_?!!window.msCrypto:!1,F_={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},j_={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},ar=Object.assign({appendTo:H0,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},F_,j_),H_=Object.keys(ar),U_=function(t){var n=Object.keys(t);n.forEach(function(r){ar[r]=t[r]})};function G0(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=ar[i])!=null?l:s}return r},{});return Object.assign({},e,n)}function W_(e,t){var n=t?Object.keys(G0(Object.assign({},ar,{plugins:t}))):H_,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 mh(e,t){var n=Object.assign({},t,{content:U0(t.content,[e])},t.ignoreAttributes?{}:W_(e,t.plugins));return n.aria=Object.assign({},ar.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 q_=function(){return"innerHTML"};function kd(e,t){e[q_()]=t}function hh(e){var t=oo();return e===!0?t.className=F0:(t.className=j0,Ic(e)?t.appendChild(e):kd(t,e)),t}function vh(e,t){Ic(t.content)?(kd(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?kd(e,t.content):e.textContent=t.content)}function Yl(e){var t=e.firstElementChild,n=ai(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(z0)}),arrow:n.find(function(r){return r.classList.contains(F0)||r.classList.contains(j0)}),backdrop:n.find(function(r){return r.classList.contains(V0)})}}function X0(e){var t=oo(),n=oo();n.className=P_,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=oo();r.className=z0,r.setAttribute("data-state","hidden"),vh(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props);function o(i,s){var l=Yl(t),c=l.box,d=l.content,u=l.arrow;s.theme?c.setAttribute("data-theme",s.theme):c.removeAttribute("data-theme"),typeof s.animation=="string"?c.setAttribute("data-animation",s.animation):c.removeAttribute("data-animation"),s.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?c.setAttribute("role",s.role):c.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&vh(d,e.props),s.arrow?u?i.arrow!==s.arrow&&(c.removeChild(u),c.appendChild(hh(s.arrow))):c.appendChild(hh(s.arrow)):u&&c.removeChild(u)}return{popper:t,onUpdate:o}}X0.$$tippy=!0;var Y_=1,sl=[],Iu=[];function G_(e,t){var n=mh(e,Object.assign({},ar,G0(dh(t)))),r,o,i,s=!1,l=!1,c=!1,d=!1,u,f,p,h=[],v=ch(me,n.interactiveDebounce),y,C=Y_++,g=null,S=M_(n.plugins),_={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},b={id:C,reference:e,popper:oo(),popperInstance:g,props:n,state:_,plugins:S,clearDelayTimeouts:Se,setProps:ot,setContent:Ge,show:mn,hide:xn,hideWithInteractivity:hn,enable:xe,disable:Te,unmount:zt,destroy:Gt};if(!n.render)return b;var T=n.render(b),E=T.popper,x=T.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+b.id,b.popper=E,e._tippy=b,E._tippy=b;var A=S.map(function(ne){return ne.fn(b)}),P=e.hasAttribute("aria-expanded");return ee(),j(),q(),J("onCreate",[b]),n.showOnCreate&&te(),E.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),E.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&D().addEventListener("mousemove",v)}),b;function M(){var ne=b.props.touch;return Array.isArray(ne)?ne:[ne,0]}function z(){return M()[0]==="hold"}function V(){var ne;return!!((ne=b.props.render)!=null&&ne.$$tippy)}function Y(){return y||e}function D(){var ne=Y().parentNode;return ne?q0(ne):document}function H(){return Yl(E)}function B(ne){return b.state.isMounted&&!b.state.isVisible||br.isTouch||u&&u.type==="focus"?0:xu(b.props.delay,ne?0:1,ar.delay)}function q(ne){ne===void 0&&(ne=!1),E.style.pointerEvents=b.props.interactive&&!ne?"":"none",E.style.zIndex=""+b.props.zIndex}function J(ne,ke,Ie){if(Ie===void 0&&(Ie=!0),A.forEach(function(re){re[ne]&&re[ne].apply(re,ke)}),Ie){var W;(W=b.props)[ne].apply(W,ke)}}function U(){var ne=b.props.aria;if(ne.content){var ke="aria-"+ne.content,Ie=E.id,W=Ka(b.props.triggerTarget||e);W.forEach(function(re){var we=re.getAttribute(ke);if(b.state.isVisible)re.setAttribute(ke,we?we+" "+Ie:Ie);else{var Q=we&&we.replace(Ie,"").trim();Q?re.setAttribute(ke,Q):re.removeAttribute(ke)}})}}function j(){if(!(P||!b.props.aria.expanded)){var ne=Ka(b.props.triggerTarget||e);ne.forEach(function(ke){b.props.interactive?ke.setAttribute("aria-expanded",b.state.isVisible&&ke===Y()?"true":"false"):ke.removeAttribute("aria-expanded")})}}function ie(){D().removeEventListener("mousemove",v),sl=sl.filter(function(ne){return ne!==v})}function Z(ne){if(!(br.isTouch&&(c||ne.type==="mousedown"))){var ke=ne.composedPath&&ne.composedPath()[0]||ne.target;if(!(b.props.interactive&&fh(E,ke))){if(Ka(b.props.triggerTarget||e).some(function(Ie){return fh(Ie,ke)})){if(br.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else J("onClickOutside",[b,ne]);b.props.hideOnClick===!0&&(b.clearDelayTimeouts(),b.hide(),l=!0,setTimeout(function(){l=!1}),b.state.isMounted||F())}}}function K(){c=!0}function I(){c=!1}function L(){var ne=D();ne.addEventListener("mousedown",Z,!0),ne.addEventListener("touchend",Z,Ga),ne.addEventListener("touchstart",I,Ga),ne.addEventListener("touchmove",K,Ga)}function F(){var ne=D();ne.removeEventListener("mousedown",Z,!0),ne.removeEventListener("touchend",Z,Ga),ne.removeEventListener("touchstart",I,Ga),ne.removeEventListener("touchmove",K,Ga)}function N(ne,ke){ge(ne,function(){!b.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&ke()})}function ce(ne,ke){ge(ne,ke)}function ge(ne,ke){var Ie=H().box;function W(re){re.target===Ie&&(Pu(Ie,"remove",W),ke())}if(ne===0)return ke();Pu(Ie,"remove",f),Pu(Ie,"add",W),f=W}function Fe(ne,ke,Ie){Ie===void 0&&(Ie=!1);var W=Ka(b.props.triggerTarget||e);W.forEach(function(re){re.addEventListener(ne,ke,Ie),h.push({node:re,eventType:ne,handler:ke,options:Ie})})}function ee(){z()&&(Fe("touchstart",ae,{passive:!0}),Fe("touchend",R,{passive:!0})),A_(b.props.trigger).forEach(function(ne){if(ne!=="manual")switch(Fe(ne,ae),ne){case"mouseenter":Fe("mouseleave",R);break;case"focus":Fe(V_?"focusout":"blur",oe);break;case"focusin":Fe("focusout",oe);break}})}function se(){h.forEach(function(ne){var ke=ne.node,Ie=ne.eventType,W=ne.handler,re=ne.options;ke.removeEventListener(Ie,W,re)}),h=[]}function ae(ne){var ke,Ie=!1;if(!(!b.state.isEnabled||Pe(ne)||l)){var W=((ke=u)==null?void 0:ke.type)==="focus";u=ne,y=ne.currentTarget,j(),!b.state.isVisible&&Yf(ne)&&sl.forEach(function(re){return re(ne)}),ne.type==="click"&&(b.props.trigger.indexOf("mouseenter")<0||s)&&b.props.hideOnClick!==!1&&b.state.isVisible?Ie=!0:te(ne),ne.type==="click"&&(s=!Ie),Ie&&!W&&pe(ne)}}function me(ne){var ke=ne.target,Ie=Y().contains(ke)||E.contains(ke);if(!(ne.type==="mousemove"&&Ie)){var W=G().concat(E).map(function(re){var we,Q=re._tippy,he=(we=Q.popperInstance)==null?void 0:we.state;return he?{popperRect:re.getBoundingClientRect(),popperState:he,props:n}:null}).filter(Boolean);D_(W,ne)&&(ie(),pe(ne))}}function R(ne){var ke=Pe(ne)||b.props.trigger.indexOf("click")>=0&&s;if(!ke){if(b.props.interactive){b.hideWithInteractivity(ne);return}pe(ne)}}function oe(ne){b.props.trigger.indexOf("focusin")<0&&ne.target!==Y()||b.props.interactive&&ne.relatedTarget&&E.contains(ne.relatedTarget)||pe(ne)}function Pe(ne){return br.isTouch?z()!==ne.type.indexOf("touch")>=0:!1}function ue(){Ne();var ne=b.props,ke=ne.popperOptions,Ie=ne.placement,W=ne.offset,re=ne.getReferenceClientRect,we=ne.moveTransition,Q=V()?Yl(E).arrow:null,he=re?{getBoundingClientRect:re,contextElement:re.contextElement||Y()}:e,Ce={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(dt){var Et=dt.state;if(V()){var Rt=H(),an=Rt.box;["placement","reference-hidden","escaped"].forEach(function(vn){vn==="placement"?an.setAttribute("data-placement",Et.placement):Et.attributes.popper["data-popper-"+vn]?an.setAttribute("data-"+vn,""):an.removeAttribute("data-"+vn)}),Et.attributes.popper={}}}},at=[{name:"offset",options:{offset:W}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!we}},Ce];V()&&Q&&at.push({name:"arrow",options:{element:Q,padding:3}}),at.push.apply(at,(ke==null?void 0:ke.modifiers)||[]),b.popperInstance=T_(he,E,Object.assign({},ke,{placement:Ie,onFirstUpdate:p,modifiers:at}))}function Ne(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function de(){var ne=b.props.appendTo,ke,Ie=Y();b.props.interactive&&ne===H0||ne==="parent"?ke=Ie.parentNode:ke=U0(ne,[Ie]),ke.contains(E)||ke.appendChild(E),b.state.isMounted=!0,ue()}function G(){return ai(E.querySelectorAll("[data-tippy-root]"))}function te(ne){b.clearDelayTimeouts(),ne&&J("onTrigger",[b,ne]),L();var ke=B(!0),Ie=M(),W=Ie[0],re=Ie[1];br.isTouch&&W==="hold"&&re&&(ke=re),ke?r=setTimeout(function(){b.show()},ke):b.show()}function pe(ne){if(b.clearDelayTimeouts(),J("onUntrigger",[b,ne]),!b.state.isVisible){F();return}if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ne.type)>=0&&s)){var ke=B(!1);ke?o=setTimeout(function(){b.state.isVisible&&b.hide()},ke):i=requestAnimationFrame(function(){b.hide()})}}function xe(){b.state.isEnabled=!0}function Te(){b.hide(),b.state.isEnabled=!1}function Se(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)}function ot(ne){if(!b.state.isDestroyed){J("onBeforeUpdate",[b,ne]),se();var ke=b.props,Ie=mh(e,Object.assign({},ke,dh(ne),{ignoreAttributes:!0}));b.props=Ie,ee(),ke.interactiveDebounce!==Ie.interactiveDebounce&&(ie(),v=ch(me,Ie.interactiveDebounce)),ke.triggerTarget&&!Ie.triggerTarget?Ka(ke.triggerTarget).forEach(function(W){W.removeAttribute("aria-expanded")}):Ie.triggerTarget&&e.removeAttribute("aria-expanded"),j(),q(),x&&x(ke,Ie),b.popperInstance&&(ue(),G().forEach(function(W){requestAnimationFrame(W._tippy.popperInstance.forceUpdate)})),J("onAfterUpdate",[b,ne])}}function Ge(ne){b.setProps({content:ne})}function mn(){var ne=b.state.isVisible,ke=b.state.isDestroyed,Ie=!b.state.isEnabled,W=br.isTouch&&!b.props.touch,re=xu(b.props.duration,0,ar.duration);if(!(ne||ke||Ie||W)&&!Y().hasAttribute("disabled")&&(J("onShow",[b],!1),b.props.onShow(b)!==!1)){if(b.state.isVisible=!0,V()&&(E.style.visibility="visible"),q(),L(),b.state.isMounted||(E.style.transition="none"),V()){var we=H(),Q=we.box,he=we.content;Tu([Q,he],0)}p=function(){var at;if(!(!b.state.isVisible||d)){if(d=!0,E.offsetHeight,E.style.transition=b.props.moveTransition,V()&&b.props.animation){var ut=H(),dt=ut.box,Et=ut.content;Tu([dt,Et],re),bs([dt,Et],"visible")}U(),j(),uh(Iu,b),(at=b.popperInstance)==null||at.forceUpdate(),J("onMount",[b]),b.props.animation&&V()&&ce(re,function(){b.state.isShown=!0,J("onShown",[b])})}},de()}}function xn(){var ne=!b.state.isVisible,ke=b.state.isDestroyed,Ie=!b.state.isEnabled,W=xu(b.props.duration,1,ar.duration);if(!(ne||ke||Ie)&&(J("onHide",[b],!1),b.props.onHide(b)!==!1)){if(b.state.isVisible=!1,b.state.isShown=!1,d=!1,s=!1,V()&&(E.style.visibility="hidden"),ie(),F(),q(!0),V()){var re=H(),we=re.box,Q=re.content;b.props.animation&&(Tu([we,Q],W),bs([we,Q],"hidden"))}U(),j(),b.props.animation?V()&&N(W,b.unmount):b.unmount()}}function hn(ne){D().addEventListener("mousemove",v),uh(sl,v),v(ne)}function zt(){b.state.isVisible&&b.hide(),b.state.isMounted&&(Ne(),G().forEach(function(ne){ne._tippy.unmount()}),E.parentNode&&E.parentNode.removeChild(E),Iu=Iu.filter(function(ne){return ne!==b}),b.state.isMounted=!1,J("onHidden",[b]))}function Gt(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),se(),delete e._tippy,b.state.isDestroyed=!0,J("onDestroy",[b]))}}function De(e,t){t===void 0&&(t={});var n=ar.plugins.concat(t.plugins||[]);$_();var r=Object.assign({},t,{plugins:n}),o=B_(e),i=o.reduce(function(s,l){var c=l&&G_(l,r);return c&&s.push(c),s},[]);return Ic(e)?i[0]:i}De.defaultProps=ar;De.setDefaultProps=U_;De.currentInput=br;var X_=Object.assign({},O0,{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)}}),K_=function(t,n){var r;n===void 0&&(n={});var o=t,i=[],s=[],l,c=n.overrides,d=[],u=!1;function f(){s=o.map(function(b){return Ka(b.props.triggerTarget||b.reference)}).reduce(function(b,T){return b.concat(T)},[])}function p(){i=o.map(function(b){return b.reference})}function h(b){o.forEach(function(T){b?T.enable():T.disable()})}function v(b){return o.map(function(T){var E=T.setProps;return T.setProps=function(x){E(x),T.reference===l&&b.setProps(x)},function(){T.setProps=E}})}function y(b,T){var E=s.indexOf(T);if(T!==l){l=T;var x=(c||[]).concat("content").reduce(function(A,P){return A[P]=o[E].props[P],A},{});b.setProps(Object.assign({},x,{getReferenceClientRect:typeof x.getReferenceClientRect=="function"?x.getReferenceClientRect:function(){var A;return(A=i[E])==null?void 0:A.getBoundingClientRect()}}))}}h(!1),p(),f();var C={fn:function(){return{onDestroy:function(){h(!0)},onHidden:function(){l=null},onClickOutside:function(E){E.props.showOnCreate&&!u&&(u=!0,l=null)},onShow:function(E){E.props.showOnCreate&&!u&&(u=!0,y(E,i[0]))},onTrigger:function(E,x){y(E,x.currentTarget)}}}},g=De(oo(),Object.assign({},I_(n,["overrides"]),{plugins:[C].concat(n.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},n.popperOptions,{modifiers:[].concat(((r=n.popperOptions)==null?void 0:r.modifiers)||[],[X_])})})),S=g.show;g.show=function(b){if(S(),!l&&b==null)return y(g,i[0]);if(!(l&&b==null)){if(typeof b=="number")return i[b]&&y(g,i[b]);if(o.indexOf(b)>=0){var T=b.reference;return y(g,T)}if(i.indexOf(b)>=0)return y(g,b)}},g.showNext=function(){var b=i[0];if(!l)return g.show(0);var T=i.indexOf(l);g.show(i[T+1]||b)},g.showPrevious=function(){var b=i[i.length-1];if(!l)return g.show(b);var T=i.indexOf(l),E=i[T-1]||b;g.show(E)};var _=g.setProps;return g.setProps=function(b){c=b.overrides||c,_(b)},g.setInstances=function(b){h(!0),d.forEach(function(T){return T()}),o=b,h(!1),p(),f(),d=v(g),g.setProps({triggerTarget:s})},d=v(g),g},J_={name:"animateFill",defaultValue:!1,fn:function(t){var n;if(!((n=t.props.render)!=null&&n.$$tippy))return{};var r=Yl(t.popper),o=r.box,i=r.content,s=t.props.animateFill?Q_():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 c=o.style.transitionDuration,d=Number(c.replace("ms",""));i.style.transitionDelay=Math.round(d/10)+"ms",s.style.transitionDuration=c,bs([s],"visible")}},onShow:function(){s&&(s.style.transitionDuration="0ms")},onHide:function(){s&&bs([s],"hidden")}}}};function Q_(){var e=oo();return e.className=V0,bs([e],"hidden"),e}var _d={clientX:0,clientY:0},ll=[];function K0(e){var t=e.clientX,n=e.clientY;_d={clientX:t,clientY:n}}function Z_(e){e.addEventListener("mousemove",K0)}function eC(e){e.removeEventListener("mousemove",K0)}var tC={name:"followCursor",defaultValue:!1,fn:function(t){var n=t.reference,r=q0(t.props.triggerTarget||n),o=!1,i=!1,s=!0,l=t.props;function c(){return t.props.followCursor==="initial"&&t.state.isVisible}function d(){r.addEventListener("mousemove",p)}function u(){r.removeEventListener("mousemove",p)}function f(){o=!0,t.setProps({getReferenceClientRect:null}),o=!1}function p(y){var C=y.target?n.contains(y.target):!0,g=t.props.followCursor,S=y.clientX,_=y.clientY,b=n.getBoundingClientRect(),T=S-b.left,E=_-b.top;(C||!t.props.interactive)&&t.setProps({getReferenceClientRect:function(){var A=n.getBoundingClientRect(),P=S,M=_;g==="initial"&&(P=A.left+T,M=A.top+E);var z=g==="horizontal"?A.top:M,V=g==="vertical"?A.right:P,Y=g==="horizontal"?A.bottom:M,D=g==="vertical"?A.left:P;return{width:V-D,height:Y-z,top:z,right:V,bottom:Y,left:D}}})}function h(){t.props.followCursor&&(ll.push({instance:t,doc:r}),Z_(r))}function v(){ll=ll.filter(function(y){return y.instance!==t}),ll.filter(function(y){return y.doc===r}).length===0&&eC(r)}return{onCreate:h,onDestroy:v,onBeforeUpdate:function(){l=t.props},onAfterUpdate:function(C,g){var S=g.followCursor;o||S!==void 0&&l.followCursor!==S&&(v(),S?(h(),t.state.isMounted&&!i&&!c()&&d()):(u(),f()))},onMount:function(){t.props.followCursor&&!i&&(s&&(p(_d),s=!1),c()||d())},onTrigger:function(C,g){Yf(g)&&(_d={clientX:g.clientX,clientY:g.clientY}),i=g.type==="focus"},onHidden:function(){t.props.followCursor&&(f(),u(),s=!0)}}}};function nC(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 rC={name:"inlinePositioning",defaultValue:!1,fn:function(t){var n=t.reference;function r(){return!!t.props.inlinePositioning}var o,i=-1,s=!1,l=[],c={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(h){var v=h.state;r()&&(l.indexOf(v.placement)!==-1&&(l=[]),o!==v.placement&&l.indexOf(v.placement)===-1&&(l.push(v.placement),t.setProps({getReferenceClientRect:function(){return d(v.placement)}})),o=v.placement)}};function d(p){return aC(W0(p),n.getBoundingClientRect(),ai(n.getClientRects()),i)}function u(p){s=!0,t.setProps(p),s=!1}function f(){s||u(nC(t.props,c))}return{onCreate:f,onAfterUpdate:f,onTrigger:function(h,v){if(Yf(v)){var y=ai(t.reference.getClientRects()),C=y.find(function(S){return S.left-2<=v.clientX&&S.right+2>=v.clientX&&S.top-2<=v.clientY&&S.bottom+2>=v.clientY}),g=y.indexOf(C);i=g>-1?g:i}},onHidden:function(){i=-1}}}};function aC(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,c=i.bottom,d=s?o.left:i.left,u=s?o.right:i.right,f=u-d,p=c-l;return{top:l,bottom:c,left:d,right:u,width:f,height:p}}case"left":case"right":{var h=Math.min.apply(Math,n.map(function(E){return E.left})),v=Math.max.apply(Math,n.map(function(E){return E.right})),y=n.filter(function(E){return e==="left"?E.left===h:E.right===v}),C=y[0].top,g=y[y.length-1].bottom,S=h,_=v,b=_-S,T=g-C;return{top:C,bottom:g,left:S,right:_,width:b,height:T}}default:return t}}var oC={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(d){return t.props.sticky===!0||t.props.sticky===d}var s=null,l=null;function c(){var d=i("reference")?o().getBoundingClientRect():null,u=i("popper")?r.getBoundingClientRect():null;(d&&gh(s,d)||u&&gh(l,u))&&t.popperInstance&&t.popperInstance.update(),s=d,l=u,t.state.isMounted&&requestAnimationFrame(c)}return{onMount:function(){t.props.sticky&&c()}}}};function gh(e,t){return e&&t?e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left:!0}De.setDefaultProps({render:X0});De.setDefaultProps({onShow:e=>{if(!e.props.content)return!1}});function Gf(e,t={},n={mount:!0,appName:"Tippy"}){n=Object.assign({mount:!0,appName:"Tippy"},n);const r=a.getCurrentInstance(),o=a.ref(),i=a.ref({isEnabled:!1,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1}),s=a.shallowRef();let l=null;const c=()=>l||(l=document.createDocumentFragment(),l),d=x=>{let A,P=a.isRef(x)?x.value:x;return a.isVNode(P)?(s.value||(s.value=a.createApp({name:n.appName,setup:()=>()=>a.isRef(x)?x.value:x}),r&&Object.assign(s.value._context,r.appContext),s.value.mount(c())),A=()=>c()):typeof P=="object"?(s.value||(s.value=a.createApp({name:n.appName,setup:()=>()=>a.h(a.isRef(x)?x.value:x)}),r&&Object.assign(s.value._context,r.appContext),s.value.mount(c())),A=()=>c()):A=P,A},u=x=>{let A={};return a.isRef(x)?A=x.value||{}:a.isReactive(x)?A={...x}:A={...x},A.content&&(A.content=d(A.content)),A.triggerTarget&&(A.triggerTarget=a.isRef(A.triggerTarget)?A.triggerTarget.value:A.triggerTarget),(!A.plugins||!Array.isArray(A.plugins))&&(A.plugins=[]),A.plugins=A.plugins.filter(P=>P.name!=="vueTippyReactiveState"),A.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}})}),A},f=()=>{o.value&&o.value.setProps(u(t))},p=()=>{!o.value||!t.content||o.value.setContent(d(t.content))},h=x=>{var A;(A=o.value)===null||A===void 0||A.setContent(d(x))},v=x=>{var A;(A=o.value)===null||A===void 0||A.setProps(u(x))},y=()=>{var x;o.value&&(o.value.destroy(),o.value=void 0),l=null,(x=s.value)===null||x===void 0||x.unmount(),s.value=void 0},C=()=>{var x;(x=o.value)===null||x===void 0||x.show()},g=()=>{var x;(x=o.value)===null||x===void 0||x.hide()},S=()=>{var x;(x=o.value)===null||x===void 0||x.disable(),i.value.isEnabled=!1},_=()=>{var x;(x=o.value)===null||x===void 0||x.enable(),i.value.isEnabled=!0},b=()=>{var x;(x=o.value)===null||x===void 0||x.unmount()},T=()=>{if(!e)return;let x=a.isRef(e)?e.value:e;typeof x=="function"&&(x=x()),x&&(o.value=De(x,u(t)),x.$tippy=E)},E={tippy:o,refresh:f,refreshContent:p,setContent:h,setProps:v,destroy:y,hide:g,show:C,disable:S,enable:_,unmount:b,mount:T,state:i};return n.mount&&(r?r.isMounted?T():a.onMounted(T):T()),r&&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}),E}function iC(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=K_(o,t?{allowHTML:!0,...t}:{allowHTML:!0})}),{singleton:n}}function sC(e){return typeof e=="function"?e():a.unref(e)}function lC(e){var t,n;const r=sC(e);return(n=(t=r)===null||t===void 0?void 0:t.$el)!==null&&n!==void 0?n:r}const cC=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:()=>De.defaultProps.appendTo},aria:{default:()=>De.defaultProps.aria},delay:{default:()=>De.defaultProps.delay},duration:{default:()=>De.defaultProps.duration},getReferenceClientRect:{default:()=>De.defaultProps.getReferenceClientRect},hideOnClick:{type:[Boolean,String],default:()=>De.defaultProps.hideOnClick},ignoreAttributes:{type:Boolean,default:()=>De.defaultProps.ignoreAttributes},interactive:{type:Boolean,default:()=>De.defaultProps.interactive},interactiveBorder:{default:()=>De.defaultProps.interactiveBorder},interactiveDebounce:{default:()=>De.defaultProps.interactiveDebounce},moveTransition:{default:()=>De.defaultProps.moveTransition},offset:{default:()=>De.defaultProps.offset},onAfterUpdate:{default:()=>De.defaultProps.onAfterUpdate},onBeforeUpdate:{default:()=>De.defaultProps.onBeforeUpdate},onCreate:{default:()=>De.defaultProps.onCreate},onDestroy:{default:()=>De.defaultProps.onDestroy},onHidden:{default:()=>De.defaultProps.onHidden},onHide:{default:()=>De.defaultProps.onHide},onMount:{default:()=>De.defaultProps.onMount},onShow:{default:()=>De.defaultProps.onShow},onShown:{default:()=>De.defaultProps.onShown},onTrigger:{default:()=>De.defaultProps.onTrigger},onUntrigger:{default:()=>De.defaultProps.onUntrigger},onClickOutside:{default:()=>De.defaultProps.onClickOutside},placement:{default:()=>De.defaultProps.placement},plugins:{default:()=>De.defaultProps.plugins},popperOptions:{default:()=>De.defaultProps.popperOptions},render:{default:()=>De.defaultProps.render},showOnCreate:{type:Boolean,default:()=>De.defaultProps.showOnCreate},touch:{type:[Boolean,String,Array],default:()=>De.defaultProps.touch},trigger:{default:()=>De.defaultProps.trigger},triggerTarget:{default:()=>De.defaultProps.triggerTarget},animateFill:{type:Boolean,default:()=>De.defaultProps.animateFill},followCursor:{type:[Boolean,String],default:()=>De.defaultProps.followCursor},inlinePositioning:{type:Boolean,default:()=>De.defaultProps.inlinePositioning},sticky:{type:[Boolean,String],default:()=>De.defaultProps.sticky},allowHTML:{type:Boolean,default:()=>De.defaultProps.allowHTML},animation:{default:()=>De.defaultProps.animation},arrow:{default:()=>De.defaultProps.arrow},content:{default:()=>De.defaultProps.content},inertia:{default:()=>De.defaultProps.inertia},maxWidth:{default:()=>De.defaultProps.maxWidth},role:{default:()=>De.defaultProps.role},theme:{default:()=>De.defaultProps.theme},zIndex:{default:()=>De.defaultProps.zIndex}},emits:["state"],setup(e,{slots:t,emit:n,expose:r}){const o=a.ref(),i=a.ref(),s=a.ref(),l=a.ref(!1),c=()=>{let h={...e};for(const v of["to","tag","contentTag","contentClass"])h.hasOwnProperty(v)&&delete h[v];return h};let d=()=>lC(o);e.to&&(typeof Element<"u"&&e.to instanceof Element?d=()=>e.to:e.to==="parent"?d=()=>{let h=o.value;return h||(h=o.value=i.value.parentElement),h}:(typeof e.to=="string"||e.to instanceof String)&&(d=()=>document.querySelector(e.to)));const u=Gf(d,c());let f=t.content;!f&&e.to==="parent"&&(f=t.default),a.onMounted(()=>{l.value=!0,a.nextTick(()=>{f&&u.setContent(()=>s.value)})}),a.watch(u.state,()=>{n("state",a.unref(u.state))},{immediate:!0,deep:!0}),a.watch(()=>e,()=>{u.setProps(c()),f&&u.setContent(()=>s.value)},{deep:!0});let p=a.reactive({elem:o,contentElem:s,mounted:l,...u});return r(p),()=>{const h=(typeof e.contentTag=="string",e.contentTag),v=f?a.h(h,{ref:s,style:{display:l.value?"inherit":"none"},class:e.contentClass},f(p)):null;if(e.to==="parent"){const g=[];if(!o.value){const S=a.h("span",{ref:i,"data-v-tippy":"",style:{display:"none"}});g.push(S)}return v&&g.push(v),g}const y=t.default?t.default(p):[];if(!e.tag){const g=a.h(y[0],{ref:o,"data-v-tippy":""});return v?[g,v]:g}const C=(typeof e.tag=="string",e.tag);return a.h(C,{ref:o,"data-v-tippy":""},v?[y,v]:y)}}}),uC=["a11y","allowHTML","arrow","flip","flipOnUpdate","hideOnClick","ignoreAttributes","inertia","interactive","lazy","multiple","showOnInit","touch","touchHold"];let Cd={};Object.keys(De.defaultProps).forEach(e=>{uC.includes(e)?Cd[e]={type:Boolean,default:function(){return De.defaultProps[e]}}:Cd[e]={default:function(){return De.defaultProps[e]}}});const dC=a.defineComponent({props:Cd,setup(e){const t=a.ref([]),{singleton:n}=iC(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)}}),fC={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 c;return(c=n.props)===null||c===void 0?void 0:c.onTippyShow(...l)}),n.props&&n.props.onTippyShown&&(r.onShown=function(...l){var c;return(c=n.props)===null||c===void 0?void 0:c.onTippyShown(...l)}),n.props&&n.props.onTippyHidden&&(r.onHidden=function(...l){var c;return(c=n.props)===null||c===void 0?void 0:c.onTippyHidden(...l)}),n.props&&n.props.onTippyHide&&(r.onHide=function(...l){var c;return(c=n.props)===null||c===void 0?void 0:c.onTippyHide(...l)}),n.props&&n.props.onTippyMount&&(r.onMount=function(...l){var c;return(c=n.props)===null||c===void 0?void 0:c.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")),Gf(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||{})}},pC={install(e,t={}){De.setDefaultProps(t.defaultProps||{}),e.directive(t.directive||"tippy",fC),e.component(t.component||"tippy",cC),e.component(t.componentSingleton||"tippy-singleton",dC)}},mC=De.setDefaultProps;mC({ignoreAttributes:!0,plugins:[oC,rC,tC,J_]});/*!
5
+ */var kn="top",Un="bottom",Wn="right",_n="left",Vf="auto",Rs=[kn,Un,Wn,_n],Zo="start",gs="end",Ck="clippingParents",I0="viewport",qi="popper",Sk="reference",eh=Rs.reduce(function(e,t){return e.concat([t+"-"+Zo,t+"-"+gs])},[]),A0=[].concat(Rs,[Vf]).reduce(function(e,t){return e.concat([t,t+"-"+Zo,t+"-"+gs])},[]),Ek="beforeRead",xk="read",Tk="afterRead",Pk="beforeMain",Ik="main",Ak="afterMain",Mk="beforeWrite",Ok="write",Nk="afterWrite",Bk=[Ek,xk,Tk,Pk,Ik,Ak,Mk,Ok,Nk];function Br(e){return e?(e.nodeName||"").toLowerCase():null}function fr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ei(e){var t=fr(e).Element;return e instanceof t||e instanceof Element}function Fn(e){var t=fr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function M0(e){if(typeof ShadowRoot>"u")return!1;var t=fr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Dk(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];!Fn(i)||!Br(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 Rk(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(c,d){return c[d]="",c},{});!Fn(o)||!Br(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}var O0={name:"applyStyles",enabled:!0,phase:"write",fn:Dk,effect:Rk,requires:["computeStyles"]};function Mr(e){return e.split("-")[0]}var ao=Math.max,ql=Math.min,ti=Math.round;function ni(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Fn(e)&&t){var i=e.offsetHeight,s=e.offsetWidth;s>0&&(r=ti(n.width)/s||1),i>0&&(o=ti(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 Ff(e){var t=ni(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 N0(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&M0(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Dr(e){return fr(e).getComputedStyle(e)}function Lk(e){return["table","td","th"].indexOf(Br(e))>=0}function Da(e){return((ei(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pc(e){return Br(e)==="html"?e:e.assignedSlot||e.parentNode||(M0(e)?e.host:null)||Da(e)}function th(e){return!Fn(e)||Dr(e).position==="fixed"?null:e.offsetParent}function $k(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Fn(e)){var r=Dr(e);if(r.position==="fixed")return null}for(var o=Pc(e);Fn(o)&&["html","body"].indexOf(Br(o))<0;){var i=Dr(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 Ls(e){for(var t=fr(e),n=th(e);n&&Lk(n)&&Dr(n).position==="static";)n=th(n);return n&&(Br(n)==="html"||Br(n)==="body"&&Dr(n).position==="static")?t:n||$k(e)||t}function jf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qi(e,t,n){return ao(e,ql(t,n))}function zk(e,t,n){var r=Qi(e,t,n);return r>n?n:r}function B0(){return{top:0,right:0,bottom:0,left:0}}function D0(e){return Object.assign({},B0(),e)}function R0(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Vk=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,D0(typeof t!="number"?t:R0(t,Rs))};function Fk(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Mr(n.placement),c=jf(l),d=[_n,Wn].indexOf(l)>=0,u=d?"height":"width";if(!(!i||!s)){var f=Vk(o.padding,n),p=Ff(i),h=c==="y"?kn:_n,v=c==="y"?Un:Wn,y=n.rects.reference[u]+n.rects.reference[c]-s[c]-n.rects.popper[u],C=s[c]-n.rects.reference[c],g=Ls(i),S=g?c==="y"?g.clientHeight||0:g.clientWidth||0:0,_=y/2-C/2,b=f[h],T=S-p[u]-f[v],E=S/2-p[u]/2+_,x=Qi(b,E,T),A=c;n.modifiersData[r]=(t={},t[A]=x,t.centerOffset=x-E,t)}}function jk(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)||N0(t.elements.popper,o)&&(t.elements.arrow=o))}var Hk={name:"arrow",enabled:!0,phase:"main",fn:Fk,effect:jk,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ri(e){return e.split("-")[1]}var Uk={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wk(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:ti(t*o)/o||0,y:ti(n*o)/o||0}}function nh(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=u===!0?Wk(s):typeof u=="function"?u(s):s,h=p.x,v=h===void 0?0:h,y=p.y,C=y===void 0?0:y,g=s.hasOwnProperty("x"),S=s.hasOwnProperty("y"),_=_n,b=kn,T=window;if(d){var E=Ls(n),x="clientHeight",A="clientWidth";if(E===fr(n)&&(E=Da(n),Dr(E).position!=="static"&&l==="absolute"&&(x="scrollHeight",A="scrollWidth")),E=E,o===kn||(o===_n||o===Wn)&&i===gs){b=Un;var P=f&&T.visualViewport?T.visualViewport.height:E[x];C-=P-r.height,C*=c?1:-1}if(o===_n||(o===kn||o===Un)&&i===gs){_=Wn;var M=f&&T.visualViewport?T.visualViewport.width:E[A];v-=M-r.width,v*=c?1:-1}}var z=Object.assign({position:l},d&&Uk);if(c){var V;return Object.assign({},z,(V={},V[b]=S?"0":"",V[_]=g?"0":"",V.transform=(T.devicePixelRatio||1)<=1?"translate("+v+"px, "+C+"px)":"translate3d("+v+"px, "+C+"px, 0)",V))}return Object.assign({},z,(t={},t[b]=S?C+"px":"",t[_]=g?v+"px":"",t.transform="",t))}function qk(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,c=l===void 0?!0:l,d={placement:Mr(t.placement),variation:ri(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,nh(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,nh(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Yk={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:qk,data:{}},il={passive:!0};function Gk(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,c=fr(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",n.update,il)}),l&&c.addEventListener("resize",n.update,il),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",n.update,il)}),l&&c.removeEventListener("resize",n.update,il)}}var Xk={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Gk,data:{}},Kk={left:"right",right:"left",bottom:"top",top:"bottom"};function Ol(e){return e.replace(/left|right|bottom|top/g,function(t){return Kk[t]})}var Jk={start:"end",end:"start"};function rh(e){return e.replace(/start|end/g,function(t){return Jk[t]})}function Hf(e){var t=fr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Uf(e){return ni(Da(e)).left+Hf(e).scrollLeft}function Qk(e){var t=fr(e),n=Da(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+Uf(e),y:l}}function Zk(e){var t,n=Da(e),r=Hf(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ao(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ao(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Uf(e),c=-r.scrollTop;return Dr(o||n).direction==="rtl"&&(l+=ao(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function Wf(e){var t=Dr(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function L0(e){return["html","body","#document"].indexOf(Br(e))>=0?e.ownerDocument.body:Fn(e)&&Wf(e)?e:L0(Pc(e))}function Zi(e,t){var n;t===void 0&&(t=[]);var r=L0(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=fr(r),s=o?[i].concat(i.visualViewport||[],Wf(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(Zi(Pc(s)))}function wd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function e_(e){var t=ni(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 ah(e,t){return t===I0?wd(Qk(e)):ei(t)?e_(t):wd(Zk(Da(e)))}function t_(e){var t=Zi(Pc(e)),n=["absolute","fixed"].indexOf(Dr(e).position)>=0,r=n&&Fn(e)?Ls(e):e;return ei(r)?t.filter(function(o){return ei(o)&&N0(o,r)&&Br(o)!=="body"&&(n?Dr(o).position!=="static":!0)}):[]}function n_(e,t,n){var r=t==="clippingParents"?t_(e):[].concat(t),o=[].concat(r,[n]),i=o[0],s=o.reduce(function(l,c){var d=ah(e,c);return l.top=ao(d.top,l.top),l.right=ql(d.right,l.right),l.bottom=ql(d.bottom,l.bottom),l.left=ao(d.left,l.left),l},ah(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 $0(e){var t=e.reference,n=e.element,r=e.placement,o=r?Mr(r):null,i=r?ri(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case kn:c={x:s,y:t.y-n.height};break;case Un:c={x:s,y:t.y+t.height};break;case Wn:c={x:t.x+t.width,y:l};break;case _n:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=o?jf(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case Zo:c[d]=c[d]-(t[u]/2-n[u]/2);break;case gs:c[d]=c[d]+(t[u]/2-n[u]/2);break}}return c}function ys(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?Ck:i,l=n.rootBoundary,c=l===void 0?I0:l,d=n.elementContext,u=d===void 0?qi:d,f=n.altBoundary,p=f===void 0?!1:f,h=n.padding,v=h===void 0?0:h,y=D0(typeof v!="number"?v:R0(v,Rs)),C=u===qi?Sk:qi,g=e.rects.popper,S=e.elements[p?C:u],_=n_(ei(S)?S:S.contextElement||Da(e.elements.popper),s,c),b=ni(e.elements.reference),T=$0({reference:b,element:g,strategy:"absolute",placement:o}),E=wd(Object.assign({},g,T)),x=u===qi?E:b,A={top:_.top-x.top+y.top,bottom:x.bottom-_.bottom+y.bottom,left:_.left-x.left+y.left,right:x.right-_.right+y.right},P=e.modifiersData.offset;if(u===qi&&P){var M=P[o];Object.keys(A).forEach(function(z){var V=[Wn,Un].indexOf(z)>=0?1:-1,Y=[kn,Un].indexOf(z)>=0?"y":"x";A[z]+=M[Y]*V})}return A}function r_(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?A0:c,u=ri(r),f=u?l?eh:eh.filter(function(v){return ri(v)===u}):Rs,p=f.filter(function(v){return d.indexOf(v)>=0});p.length===0&&(p=f);var h=p.reduce(function(v,y){return v[y]=ys(e,{placement:y,boundary:o,rootBoundary:i,padding:s})[Mr(y)],v},{});return Object.keys(h).sort(function(v,y){return h[v]-h[y]})}function a_(e){if(Mr(e)===Vf)return[];var t=Ol(e);return[rh(e),t,rh(t)]}function o_(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,c=n.fallbackPlacements,d=n.padding,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,y=n.allowedAutoPlacements,C=t.options.placement,g=Mr(C),S=g===C,_=c||(S||!v?[Ol(C)]:a_(C)),b=[C].concat(_).reduce(function(I,L){return I.concat(Mr(L)===Vf?r_(t,{placement:L,boundary:u,rootBoundary:f,padding:d,flipVariations:v,allowedAutoPlacements:y}):L)},[]),T=t.rects.reference,E=t.rects.popper,x=new Map,A=!0,P=b[0],M=0;M<b.length;M++){var z=b[M],V=Mr(z),Y=ri(z)===Zo,D=[kn,Un].indexOf(V)>=0,H=D?"width":"height",B=ys(t,{placement:z,boundary:u,rootBoundary:f,altBoundary:p,padding:d}),q=D?Y?Wn:_n:Y?Un:kn;T[H]>E[H]&&(q=Ol(q));var J=Ol(q),U=[];if(i&&U.push(B[V]<=0),l&&U.push(B[q]<=0,B[J]<=0),U.every(function(I){return I})){P=z,A=!1;break}x.set(z,U)}if(A)for(var j=v?3:1,ie=function(L){var F=b.find(function(N){var ce=x.get(N);if(ce)return ce.slice(0,L).every(function(ge){return ge})});if(F)return P=F,"break"},Z=j;Z>0;Z--){var K=ie(Z);if(K==="break")break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}}var i_={name:"flip",enabled:!0,phase:"main",fn:o_,requiresIfExists:["offset"],data:{_skip:!1}};function oh(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 ih(e){return[kn,Wn,Un,_n].some(function(t){return e[t]>=0})}function s_(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=ys(t,{elementContext:"reference"}),l=ys(t,{altBoundary:!0}),c=oh(s,r),d=oh(l,o,i),u=ih(c),f=ih(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}var l_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:s_};function c_(e,t,n){var r=Mr(e),o=[_n,kn].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,[_n,Wn].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function u_(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=A0.reduce(function(u,f){return u[f]=c_(f,t.rects,i),u},{}),l=s[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=s}var d_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:u_};function f_(e){var t=e.state,n=e.name;t.modifiersData[n]=$0({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var p_={name:"popperOffsets",enabled:!0,phase:"read",fn:f_,data:{}};function m_(e){return e==="x"?"y":"x"}function h_(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,c=n.boundary,d=n.rootBoundary,u=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,C=ys(t,{boundary:c,rootBoundary:d,padding:f,altBoundary:u}),g=Mr(t.placement),S=ri(t.placement),_=!S,b=jf(g),T=m_(b),E=t.modifiersData.popperOffsets,x=t.rects.reference,A=t.rects.popper,P=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,M=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(E){if(i){var Y,D=b==="y"?kn:_n,H=b==="y"?Un:Wn,B=b==="y"?"height":"width",q=E[b],J=q+C[D],U=q-C[H],j=h?-A[B]/2:0,ie=S===Zo?x[B]:A[B],Z=S===Zo?-A[B]:-x[B],K=t.elements.arrow,I=h&&K?Ff(K):{width:0,height:0},L=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:B0(),F=L[D],N=L[H],ce=Qi(0,x[B],I[B]),ge=_?x[B]/2-j-ce-F-M.mainAxis:ie-ce-F-M.mainAxis,Fe=_?-x[B]/2+j+ce+N+M.mainAxis:Z+ce+N+M.mainAxis,ee=t.elements.arrow&&Ls(t.elements.arrow),se=ee?b==="y"?ee.clientTop||0:ee.clientLeft||0:0,ae=(Y=z==null?void 0:z[b])!=null?Y:0,me=q+ge-ae-se,R=q+Fe-ae,oe=Qi(h?ql(J,me):J,q,h?ao(U,R):U);E[b]=oe,V[b]=oe-q}if(l){var Pe,ue=b==="x"?kn:_n,Ne=b==="x"?Un:Wn,de=E[T],G=T==="y"?"height":"width",te=de+C[ue],pe=de-C[Ne],xe=[kn,_n].indexOf(g)!==-1,Te=(Pe=z==null?void 0:z[T])!=null?Pe:0,Se=xe?te:de-x[G]-A[G]-Te+M.altAxis,ot=xe?de+x[G]+A[G]-Te-M.altAxis:pe,Ge=h&&xe?zk(Se,de,ot):Qi(h?Se:te,de,h?ot:pe);E[T]=Ge,V[T]=Ge-de}t.modifiersData[r]=V}}var v_={name:"preventOverflow",enabled:!0,phase:"main",fn:h_,requiresIfExists:["offset"]};function g_(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function y_(e){return e===fr(e)||!Fn(e)?Hf(e):g_(e)}function b_(e){var t=e.getBoundingClientRect(),n=ti(t.width)/e.offsetWidth||1,r=ti(t.height)/e.offsetHeight||1;return n!==1||r!==1}function w_(e,t,n){n===void 0&&(n=!1);var r=Fn(t),o=Fn(t)&&b_(t),i=Da(t),s=ni(e,o),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Br(t)!=="body"||Wf(i))&&(l=y_(t)),Fn(t)?(c=ni(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Uf(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function k_(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 c=t.get(l);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function __(e){var t=k_(e);return Bk.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function C_(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function S_(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 sh={placement:"bottom",modifiers:[],strategy:"absolute"};function lh(){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 E_(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?sh:o;return function(l,c,d){d===void 0&&(d=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},sh,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:u,setOptions:function(g){var S=typeof g=="function"?g(u.options):g;y(),u.options=Object.assign({},i,u.options,S),u.scrollParents={reference:ei(l)?Zi(l):l.contextElement?Zi(l.contextElement):[],popper:Zi(c)};var _=__(S_([].concat(r,u.options.modifiers)));return u.orderedModifiers=_.filter(function(b){return b.enabled}),v(),h.update()},forceUpdate:function(){if(!p){var g=u.elements,S=g.reference,_=g.popper;if(lh(S,_)){u.rects={reference:w_(S,Ls(_),u.options.strategy==="fixed"),popper:Ff(_)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(M){return u.modifiersData[M.name]=Object.assign({},M.data)});for(var b=0;b<u.orderedModifiers.length;b++){if(u.reset===!0){u.reset=!1,b=-1;continue}var T=u.orderedModifiers[b],E=T.fn,x=T.options,A=x===void 0?{}:x,P=T.name;typeof E=="function"&&(u=E({state:u,options:A,name:P,instance:h})||u)}}}},update:C_(function(){return new Promise(function(C){h.forceUpdate(),C(u)})}),destroy:function(){y(),p=!0}};if(!lh(l,c))return h;h.setOptions(d).then(function(C){!p&&d.onFirstUpdate&&d.onFirstUpdate(C)});function v(){u.orderedModifiers.forEach(function(C){var g=C.name,S=C.options,_=S===void 0?{}:S,b=C.effect;if(typeof b=="function"){var T=b({state:u,name:g,instance:h,options:_}),E=function(){};f.push(T||E)}})}function y(){f.forEach(function(C){return C()}),f=[]}return h}}var x_=[Xk,p_,Yk,O0,d_,i_,v_,Hk,l_],T_=E_({defaultModifiers:x_}),P_="tippy-box",z0="tippy-content",V0="tippy-backdrop",F0="tippy-arrow",j0="tippy-svg-arrow",Ga={passive:!0,capture:!0},H0=function(){return document.body};function xu(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function qf(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function U0(e,t){return typeof e=="function"?e.apply(void 0,t):e}function ch(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function I_(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function A_(e){return e.split(/\s+/).filter(Boolean)}function Ka(e){return[].concat(e)}function uh(e,t){e.indexOf(t)===-1&&e.push(t)}function M_(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function W0(e){return e.split("-")[0]}function ai(e){return[].slice.call(e)}function dh(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function oo(){return document.createElement("div")}function Ic(e){return["Element","Fragment"].some(function(t){return qf(e,t)})}function O_(e){return qf(e,"NodeList")}function Yf(e){return qf(e,"MouseEvent")}function N_(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function B_(e){return Ic(e)?[e]:O_(e)?ai(e):Array.isArray(e)?e:ai(document.querySelectorAll(e))}function Tu(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function bs(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function q0(e){var t,n=Ka(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function D_(e,t){var n=t.clientX,r=t.clientY;return e.every(function(o){var i=o.popperRect,s=o.popperState,l=o.props,c=l.interactiveBorder,d=W0(s.placement),u=s.modifiersData.offset;if(!u)return!0;var f=d==="bottom"?u.top.y:0,p=d==="top"?u.bottom.y:0,h=d==="right"?u.left.x:0,v=d==="left"?u.right.x:0,y=i.top-r+f>c,C=r-i.bottom-p>c,g=i.left-n+h>c,S=n-i.right-v>c;return y||C||g||S})}function Pu(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[r](o,n)})}function fh(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 br={isTouch:!1},ph=0;function R_(){br.isTouch||(br.isTouch=!0,window.performance&&document.addEventListener("mousemove",Y0))}function Y0(){var e=performance.now();e-ph<20&&(br.isTouch=!1,document.removeEventListener("mousemove",Y0)),ph=e}function L_(){var e=document.activeElement;if(N_(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function $_(){document.addEventListener("touchstart",R_,Ga),window.addEventListener("blur",L_)}var z_=typeof window<"u"&&typeof document<"u",V_=z_?!!window.msCrypto:!1,F_={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},j_={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},or=Object.assign({appendTo:H0,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},F_,j_),H_=Object.keys(or),U_=function(t){var n=Object.keys(t);n.forEach(function(r){or[r]=t[r]})};function G0(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=or[i])!=null?l:s}return r},{});return Object.assign({},e,n)}function W_(e,t){var n=t?Object.keys(G0(Object.assign({},or,{plugins:t}))):H_,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 mh(e,t){var n=Object.assign({},t,{content:U0(t.content,[e])},t.ignoreAttributes?{}:W_(e,t.plugins));return n.aria=Object.assign({},or.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 q_=function(){return"innerHTML"};function kd(e,t){e[q_()]=t}function hh(e){var t=oo();return e===!0?t.className=F0:(t.className=j0,Ic(e)?t.appendChild(e):kd(t,e)),t}function vh(e,t){Ic(t.content)?(kd(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?kd(e,t.content):e.textContent=t.content)}function Yl(e){var t=e.firstElementChild,n=ai(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(z0)}),arrow:n.find(function(r){return r.classList.contains(F0)||r.classList.contains(j0)}),backdrop:n.find(function(r){return r.classList.contains(V0)})}}function X0(e){var t=oo(),n=oo();n.className=P_,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=oo();r.className=z0,r.setAttribute("data-state","hidden"),vh(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props);function o(i,s){var l=Yl(t),c=l.box,d=l.content,u=l.arrow;s.theme?c.setAttribute("data-theme",s.theme):c.removeAttribute("data-theme"),typeof s.animation=="string"?c.setAttribute("data-animation",s.animation):c.removeAttribute("data-animation"),s.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?c.setAttribute("role",s.role):c.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&vh(d,e.props),s.arrow?u?i.arrow!==s.arrow&&(c.removeChild(u),c.appendChild(hh(s.arrow))):c.appendChild(hh(s.arrow)):u&&c.removeChild(u)}return{popper:t,onUpdate:o}}X0.$$tippy=!0;var Y_=1,sl=[],Iu=[];function G_(e,t){var n=mh(e,Object.assign({},or,G0(dh(t)))),r,o,i,s=!1,l=!1,c=!1,d=!1,u,f,p,h=[],v=ch(me,n.interactiveDebounce),y,C=Y_++,g=null,S=M_(n.plugins),_={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},b={id:C,reference:e,popper:oo(),popperInstance:g,props:n,state:_,plugins:S,clearDelayTimeouts:Se,setProps:ot,setContent:Ge,show:mn,hide:xn,hideWithInteractivity:hn,enable:xe,disable:Te,unmount:zt,destroy:Gt};if(!n.render)return b;var T=n.render(b),E=T.popper,x=T.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+b.id,b.popper=E,e._tippy=b,E._tippy=b;var A=S.map(function(ne){return ne.fn(b)}),P=e.hasAttribute("aria-expanded");return ee(),j(),q(),J("onCreate",[b]),n.showOnCreate&&te(),E.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),E.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&D().addEventListener("mousemove",v)}),b;function M(){var ne=b.props.touch;return Array.isArray(ne)?ne:[ne,0]}function z(){return M()[0]==="hold"}function V(){var ne;return!!((ne=b.props.render)!=null&&ne.$$tippy)}function Y(){return y||e}function D(){var ne=Y().parentNode;return ne?q0(ne):document}function H(){return Yl(E)}function B(ne){return b.state.isMounted&&!b.state.isVisible||br.isTouch||u&&u.type==="focus"?0:xu(b.props.delay,ne?0:1,or.delay)}function q(ne){ne===void 0&&(ne=!1),E.style.pointerEvents=b.props.interactive&&!ne?"":"none",E.style.zIndex=""+b.props.zIndex}function J(ne,ke,Ie){if(Ie===void 0&&(Ie=!0),A.forEach(function(re){re[ne]&&re[ne].apply(re,ke)}),Ie){var W;(W=b.props)[ne].apply(W,ke)}}function U(){var ne=b.props.aria;if(ne.content){var ke="aria-"+ne.content,Ie=E.id,W=Ka(b.props.triggerTarget||e);W.forEach(function(re){var we=re.getAttribute(ke);if(b.state.isVisible)re.setAttribute(ke,we?we+" "+Ie:Ie);else{var Q=we&&we.replace(Ie,"").trim();Q?re.setAttribute(ke,Q):re.removeAttribute(ke)}})}}function j(){if(!(P||!b.props.aria.expanded)){var ne=Ka(b.props.triggerTarget||e);ne.forEach(function(ke){b.props.interactive?ke.setAttribute("aria-expanded",b.state.isVisible&&ke===Y()?"true":"false"):ke.removeAttribute("aria-expanded")})}}function ie(){D().removeEventListener("mousemove",v),sl=sl.filter(function(ne){return ne!==v})}function Z(ne){if(!(br.isTouch&&(c||ne.type==="mousedown"))){var ke=ne.composedPath&&ne.composedPath()[0]||ne.target;if(!(b.props.interactive&&fh(E,ke))){if(Ka(b.props.triggerTarget||e).some(function(Ie){return fh(Ie,ke)})){if(br.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else J("onClickOutside",[b,ne]);b.props.hideOnClick===!0&&(b.clearDelayTimeouts(),b.hide(),l=!0,setTimeout(function(){l=!1}),b.state.isMounted||F())}}}function K(){c=!0}function I(){c=!1}function L(){var ne=D();ne.addEventListener("mousedown",Z,!0),ne.addEventListener("touchend",Z,Ga),ne.addEventListener("touchstart",I,Ga),ne.addEventListener("touchmove",K,Ga)}function F(){var ne=D();ne.removeEventListener("mousedown",Z,!0),ne.removeEventListener("touchend",Z,Ga),ne.removeEventListener("touchstart",I,Ga),ne.removeEventListener("touchmove",K,Ga)}function N(ne,ke){ge(ne,function(){!b.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&ke()})}function ce(ne,ke){ge(ne,ke)}function ge(ne,ke){var Ie=H().box;function W(re){re.target===Ie&&(Pu(Ie,"remove",W),ke())}if(ne===0)return ke();Pu(Ie,"remove",f),Pu(Ie,"add",W),f=W}function Fe(ne,ke,Ie){Ie===void 0&&(Ie=!1);var W=Ka(b.props.triggerTarget||e);W.forEach(function(re){re.addEventListener(ne,ke,Ie),h.push({node:re,eventType:ne,handler:ke,options:Ie})})}function ee(){z()&&(Fe("touchstart",ae,{passive:!0}),Fe("touchend",R,{passive:!0})),A_(b.props.trigger).forEach(function(ne){if(ne!=="manual")switch(Fe(ne,ae),ne){case"mouseenter":Fe("mouseleave",R);break;case"focus":Fe(V_?"focusout":"blur",oe);break;case"focusin":Fe("focusout",oe);break}})}function se(){h.forEach(function(ne){var ke=ne.node,Ie=ne.eventType,W=ne.handler,re=ne.options;ke.removeEventListener(Ie,W,re)}),h=[]}function ae(ne){var ke,Ie=!1;if(!(!b.state.isEnabled||Pe(ne)||l)){var W=((ke=u)==null?void 0:ke.type)==="focus";u=ne,y=ne.currentTarget,j(),!b.state.isVisible&&Yf(ne)&&sl.forEach(function(re){return re(ne)}),ne.type==="click"&&(b.props.trigger.indexOf("mouseenter")<0||s)&&b.props.hideOnClick!==!1&&b.state.isVisible?Ie=!0:te(ne),ne.type==="click"&&(s=!Ie),Ie&&!W&&pe(ne)}}function me(ne){var ke=ne.target,Ie=Y().contains(ke)||E.contains(ke);if(!(ne.type==="mousemove"&&Ie)){var W=G().concat(E).map(function(re){var we,Q=re._tippy,he=(we=Q.popperInstance)==null?void 0:we.state;return he?{popperRect:re.getBoundingClientRect(),popperState:he,props:n}:null}).filter(Boolean);D_(W,ne)&&(ie(),pe(ne))}}function R(ne){var ke=Pe(ne)||b.props.trigger.indexOf("click")>=0&&s;if(!ke){if(b.props.interactive){b.hideWithInteractivity(ne);return}pe(ne)}}function oe(ne){b.props.trigger.indexOf("focusin")<0&&ne.target!==Y()||b.props.interactive&&ne.relatedTarget&&E.contains(ne.relatedTarget)||pe(ne)}function Pe(ne){return br.isTouch?z()!==ne.type.indexOf("touch")>=0:!1}function ue(){Ne();var ne=b.props,ke=ne.popperOptions,Ie=ne.placement,W=ne.offset,re=ne.getReferenceClientRect,we=ne.moveTransition,Q=V()?Yl(E).arrow:null,he=re?{getBoundingClientRect:re,contextElement:re.contextElement||Y()}:e,Ce={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(dt){var Et=dt.state;if(V()){var Rt=H(),an=Rt.box;["placement","reference-hidden","escaped"].forEach(function(vn){vn==="placement"?an.setAttribute("data-placement",Et.placement):Et.attributes.popper["data-popper-"+vn]?an.setAttribute("data-"+vn,""):an.removeAttribute("data-"+vn)}),Et.attributes.popper={}}}},at=[{name:"offset",options:{offset:W}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!we}},Ce];V()&&Q&&at.push({name:"arrow",options:{element:Q,padding:3}}),at.push.apply(at,(ke==null?void 0:ke.modifiers)||[]),b.popperInstance=T_(he,E,Object.assign({},ke,{placement:Ie,onFirstUpdate:p,modifiers:at}))}function Ne(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function de(){var ne=b.props.appendTo,ke,Ie=Y();b.props.interactive&&ne===H0||ne==="parent"?ke=Ie.parentNode:ke=U0(ne,[Ie]),ke.contains(E)||ke.appendChild(E),b.state.isMounted=!0,ue()}function G(){return ai(E.querySelectorAll("[data-tippy-root]"))}function te(ne){b.clearDelayTimeouts(),ne&&J("onTrigger",[b,ne]),L();var ke=B(!0),Ie=M(),W=Ie[0],re=Ie[1];br.isTouch&&W==="hold"&&re&&(ke=re),ke?r=setTimeout(function(){b.show()},ke):b.show()}function pe(ne){if(b.clearDelayTimeouts(),J("onUntrigger",[b,ne]),!b.state.isVisible){F();return}if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ne.type)>=0&&s)){var ke=B(!1);ke?o=setTimeout(function(){b.state.isVisible&&b.hide()},ke):i=requestAnimationFrame(function(){b.hide()})}}function xe(){b.state.isEnabled=!0}function Te(){b.hide(),b.state.isEnabled=!1}function Se(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)}function ot(ne){if(!b.state.isDestroyed){J("onBeforeUpdate",[b,ne]),se();var ke=b.props,Ie=mh(e,Object.assign({},ke,dh(ne),{ignoreAttributes:!0}));b.props=Ie,ee(),ke.interactiveDebounce!==Ie.interactiveDebounce&&(ie(),v=ch(me,Ie.interactiveDebounce)),ke.triggerTarget&&!Ie.triggerTarget?Ka(ke.triggerTarget).forEach(function(W){W.removeAttribute("aria-expanded")}):Ie.triggerTarget&&e.removeAttribute("aria-expanded"),j(),q(),x&&x(ke,Ie),b.popperInstance&&(ue(),G().forEach(function(W){requestAnimationFrame(W._tippy.popperInstance.forceUpdate)})),J("onAfterUpdate",[b,ne])}}function Ge(ne){b.setProps({content:ne})}function mn(){var ne=b.state.isVisible,ke=b.state.isDestroyed,Ie=!b.state.isEnabled,W=br.isTouch&&!b.props.touch,re=xu(b.props.duration,0,or.duration);if(!(ne||ke||Ie||W)&&!Y().hasAttribute("disabled")&&(J("onShow",[b],!1),b.props.onShow(b)!==!1)){if(b.state.isVisible=!0,V()&&(E.style.visibility="visible"),q(),L(),b.state.isMounted||(E.style.transition="none"),V()){var we=H(),Q=we.box,he=we.content;Tu([Q,he],0)}p=function(){var at;if(!(!b.state.isVisible||d)){if(d=!0,E.offsetHeight,E.style.transition=b.props.moveTransition,V()&&b.props.animation){var ut=H(),dt=ut.box,Et=ut.content;Tu([dt,Et],re),bs([dt,Et],"visible")}U(),j(),uh(Iu,b),(at=b.popperInstance)==null||at.forceUpdate(),J("onMount",[b]),b.props.animation&&V()&&ce(re,function(){b.state.isShown=!0,J("onShown",[b])})}},de()}}function xn(){var ne=!b.state.isVisible,ke=b.state.isDestroyed,Ie=!b.state.isEnabled,W=xu(b.props.duration,1,or.duration);if(!(ne||ke||Ie)&&(J("onHide",[b],!1),b.props.onHide(b)!==!1)){if(b.state.isVisible=!1,b.state.isShown=!1,d=!1,s=!1,V()&&(E.style.visibility="hidden"),ie(),F(),q(!0),V()){var re=H(),we=re.box,Q=re.content;b.props.animation&&(Tu([we,Q],W),bs([we,Q],"hidden"))}U(),j(),b.props.animation?V()&&N(W,b.unmount):b.unmount()}}function hn(ne){D().addEventListener("mousemove",v),uh(sl,v),v(ne)}function zt(){b.state.isVisible&&b.hide(),b.state.isMounted&&(Ne(),G().forEach(function(ne){ne._tippy.unmount()}),E.parentNode&&E.parentNode.removeChild(E),Iu=Iu.filter(function(ne){return ne!==b}),b.state.isMounted=!1,J("onHidden",[b]))}function Gt(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),se(),delete e._tippy,b.state.isDestroyed=!0,J("onDestroy",[b]))}}function De(e,t){t===void 0&&(t={});var n=or.plugins.concat(t.plugins||[]);$_();var r=Object.assign({},t,{plugins:n}),o=B_(e),i=o.reduce(function(s,l){var c=l&&G_(l,r);return c&&s.push(c),s},[]);return Ic(e)?i[0]:i}De.defaultProps=or;De.setDefaultProps=U_;De.currentInput=br;var X_=Object.assign({},O0,{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)}}),K_=function(t,n){var r;n===void 0&&(n={});var o=t,i=[],s=[],l,c=n.overrides,d=[],u=!1;function f(){s=o.map(function(b){return Ka(b.props.triggerTarget||b.reference)}).reduce(function(b,T){return b.concat(T)},[])}function p(){i=o.map(function(b){return b.reference})}function h(b){o.forEach(function(T){b?T.enable():T.disable()})}function v(b){return o.map(function(T){var E=T.setProps;return T.setProps=function(x){E(x),T.reference===l&&b.setProps(x)},function(){T.setProps=E}})}function y(b,T){var E=s.indexOf(T);if(T!==l){l=T;var x=(c||[]).concat("content").reduce(function(A,P){return A[P]=o[E].props[P],A},{});b.setProps(Object.assign({},x,{getReferenceClientRect:typeof x.getReferenceClientRect=="function"?x.getReferenceClientRect:function(){var A;return(A=i[E])==null?void 0:A.getBoundingClientRect()}}))}}h(!1),p(),f();var C={fn:function(){return{onDestroy:function(){h(!0)},onHidden:function(){l=null},onClickOutside:function(E){E.props.showOnCreate&&!u&&(u=!0,l=null)},onShow:function(E){E.props.showOnCreate&&!u&&(u=!0,y(E,i[0]))},onTrigger:function(E,x){y(E,x.currentTarget)}}}},g=De(oo(),Object.assign({},I_(n,["overrides"]),{plugins:[C].concat(n.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},n.popperOptions,{modifiers:[].concat(((r=n.popperOptions)==null?void 0:r.modifiers)||[],[X_])})})),S=g.show;g.show=function(b){if(S(),!l&&b==null)return y(g,i[0]);if(!(l&&b==null)){if(typeof b=="number")return i[b]&&y(g,i[b]);if(o.indexOf(b)>=0){var T=b.reference;return y(g,T)}if(i.indexOf(b)>=0)return y(g,b)}},g.showNext=function(){var b=i[0];if(!l)return g.show(0);var T=i.indexOf(l);g.show(i[T+1]||b)},g.showPrevious=function(){var b=i[i.length-1];if(!l)return g.show(b);var T=i.indexOf(l),E=i[T-1]||b;g.show(E)};var _=g.setProps;return g.setProps=function(b){c=b.overrides||c,_(b)},g.setInstances=function(b){h(!0),d.forEach(function(T){return T()}),o=b,h(!1),p(),f(),d=v(g),g.setProps({triggerTarget:s})},d=v(g),g},J_={name:"animateFill",defaultValue:!1,fn:function(t){var n;if(!((n=t.props.render)!=null&&n.$$tippy))return{};var r=Yl(t.popper),o=r.box,i=r.content,s=t.props.animateFill?Q_():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 c=o.style.transitionDuration,d=Number(c.replace("ms",""));i.style.transitionDelay=Math.round(d/10)+"ms",s.style.transitionDuration=c,bs([s],"visible")}},onShow:function(){s&&(s.style.transitionDuration="0ms")},onHide:function(){s&&bs([s],"hidden")}}}};function Q_(){var e=oo();return e.className=V0,bs([e],"hidden"),e}var _d={clientX:0,clientY:0},ll=[];function K0(e){var t=e.clientX,n=e.clientY;_d={clientX:t,clientY:n}}function Z_(e){e.addEventListener("mousemove",K0)}function eC(e){e.removeEventListener("mousemove",K0)}var tC={name:"followCursor",defaultValue:!1,fn:function(t){var n=t.reference,r=q0(t.props.triggerTarget||n),o=!1,i=!1,s=!0,l=t.props;function c(){return t.props.followCursor==="initial"&&t.state.isVisible}function d(){r.addEventListener("mousemove",p)}function u(){r.removeEventListener("mousemove",p)}function f(){o=!0,t.setProps({getReferenceClientRect:null}),o=!1}function p(y){var C=y.target?n.contains(y.target):!0,g=t.props.followCursor,S=y.clientX,_=y.clientY,b=n.getBoundingClientRect(),T=S-b.left,E=_-b.top;(C||!t.props.interactive)&&t.setProps({getReferenceClientRect:function(){var A=n.getBoundingClientRect(),P=S,M=_;g==="initial"&&(P=A.left+T,M=A.top+E);var z=g==="horizontal"?A.top:M,V=g==="vertical"?A.right:P,Y=g==="horizontal"?A.bottom:M,D=g==="vertical"?A.left:P;return{width:V-D,height:Y-z,top:z,right:V,bottom:Y,left:D}}})}function h(){t.props.followCursor&&(ll.push({instance:t,doc:r}),Z_(r))}function v(){ll=ll.filter(function(y){return y.instance!==t}),ll.filter(function(y){return y.doc===r}).length===0&&eC(r)}return{onCreate:h,onDestroy:v,onBeforeUpdate:function(){l=t.props},onAfterUpdate:function(C,g){var S=g.followCursor;o||S!==void 0&&l.followCursor!==S&&(v(),S?(h(),t.state.isMounted&&!i&&!c()&&d()):(u(),f()))},onMount:function(){t.props.followCursor&&!i&&(s&&(p(_d),s=!1),c()||d())},onTrigger:function(C,g){Yf(g)&&(_d={clientX:g.clientX,clientY:g.clientY}),i=g.type==="focus"},onHidden:function(){t.props.followCursor&&(f(),u(),s=!0)}}}};function nC(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 rC={name:"inlinePositioning",defaultValue:!1,fn:function(t){var n=t.reference;function r(){return!!t.props.inlinePositioning}var o,i=-1,s=!1,l=[],c={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(h){var v=h.state;r()&&(l.indexOf(v.placement)!==-1&&(l=[]),o!==v.placement&&l.indexOf(v.placement)===-1&&(l.push(v.placement),t.setProps({getReferenceClientRect:function(){return d(v.placement)}})),o=v.placement)}};function d(p){return aC(W0(p),n.getBoundingClientRect(),ai(n.getClientRects()),i)}function u(p){s=!0,t.setProps(p),s=!1}function f(){s||u(nC(t.props,c))}return{onCreate:f,onAfterUpdate:f,onTrigger:function(h,v){if(Yf(v)){var y=ai(t.reference.getClientRects()),C=y.find(function(S){return S.left-2<=v.clientX&&S.right+2>=v.clientX&&S.top-2<=v.clientY&&S.bottom+2>=v.clientY}),g=y.indexOf(C);i=g>-1?g:i}},onHidden:function(){i=-1}}}};function aC(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,c=i.bottom,d=s?o.left:i.left,u=s?o.right:i.right,f=u-d,p=c-l;return{top:l,bottom:c,left:d,right:u,width:f,height:p}}case"left":case"right":{var h=Math.min.apply(Math,n.map(function(E){return E.left})),v=Math.max.apply(Math,n.map(function(E){return E.right})),y=n.filter(function(E){return e==="left"?E.left===h:E.right===v}),C=y[0].top,g=y[y.length-1].bottom,S=h,_=v,b=_-S,T=g-C;return{top:C,bottom:g,left:S,right:_,width:b,height:T}}default:return t}}var oC={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(d){return t.props.sticky===!0||t.props.sticky===d}var s=null,l=null;function c(){var d=i("reference")?o().getBoundingClientRect():null,u=i("popper")?r.getBoundingClientRect():null;(d&&gh(s,d)||u&&gh(l,u))&&t.popperInstance&&t.popperInstance.update(),s=d,l=u,t.state.isMounted&&requestAnimationFrame(c)}return{onMount:function(){t.props.sticky&&c()}}}};function gh(e,t){return e&&t?e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left:!0}De.setDefaultProps({render:X0});De.setDefaultProps({onShow:e=>{if(!e.props.content)return!1}});function Gf(e,t={},n={mount:!0,appName:"Tippy"}){n=Object.assign({mount:!0,appName:"Tippy"},n);const r=a.getCurrentInstance(),o=a.ref(),i=a.ref({isEnabled:!1,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1}),s=a.shallowRef();let l=null;const c=()=>l||(l=document.createDocumentFragment(),l),d=x=>{let A,P=a.isRef(x)?x.value:x;return a.isVNode(P)?(s.value||(s.value=a.createApp({name:n.appName,setup:()=>()=>a.isRef(x)?x.value:x}),r&&Object.assign(s.value._context,r.appContext),s.value.mount(c())),A=()=>c()):typeof P=="object"?(s.value||(s.value=a.createApp({name:n.appName,setup:()=>()=>a.h(a.isRef(x)?x.value:x)}),r&&Object.assign(s.value._context,r.appContext),s.value.mount(c())),A=()=>c()):A=P,A},u=x=>{let A={};return a.isRef(x)?A=x.value||{}:a.isReactive(x)?A={...x}:A={...x},A.content&&(A.content=d(A.content)),A.triggerTarget&&(A.triggerTarget=a.isRef(A.triggerTarget)?A.triggerTarget.value:A.triggerTarget),(!A.plugins||!Array.isArray(A.plugins))&&(A.plugins=[]),A.plugins=A.plugins.filter(P=>P.name!=="vueTippyReactiveState"),A.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}})}),A},f=()=>{o.value&&o.value.setProps(u(t))},p=()=>{!o.value||!t.content||o.value.setContent(d(t.content))},h=x=>{var A;(A=o.value)===null||A===void 0||A.setContent(d(x))},v=x=>{var A;(A=o.value)===null||A===void 0||A.setProps(u(x))},y=()=>{var x;o.value&&(o.value.destroy(),o.value=void 0),l=null,(x=s.value)===null||x===void 0||x.unmount(),s.value=void 0},C=()=>{var x;(x=o.value)===null||x===void 0||x.show()},g=()=>{var x;(x=o.value)===null||x===void 0||x.hide()},S=()=>{var x;(x=o.value)===null||x===void 0||x.disable(),i.value.isEnabled=!1},_=()=>{var x;(x=o.value)===null||x===void 0||x.enable(),i.value.isEnabled=!0},b=()=>{var x;(x=o.value)===null||x===void 0||x.unmount()},T=()=>{if(!e)return;let x=a.isRef(e)?e.value:e;typeof x=="function"&&(x=x()),x&&(o.value=De(x,u(t)),x.$tippy=E)},E={tippy:o,refresh:f,refreshContent:p,setContent:h,setProps:v,destroy:y,hide:g,show:C,disable:S,enable:_,unmount:b,mount:T,state:i};return n.mount&&(r?r.isMounted?T():a.onMounted(T):T()),r&&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}),E}function iC(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=K_(o,t?{allowHTML:!0,...t}:{allowHTML:!0})}),{singleton:n}}function sC(e){return typeof e=="function"?e():a.unref(e)}function lC(e){var t,n;const r=sC(e);return(n=(t=r)===null||t===void 0?void 0:t.$el)!==null&&n!==void 0?n:r}const cC=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:()=>De.defaultProps.appendTo},aria:{default:()=>De.defaultProps.aria},delay:{default:()=>De.defaultProps.delay},duration:{default:()=>De.defaultProps.duration},getReferenceClientRect:{default:()=>De.defaultProps.getReferenceClientRect},hideOnClick:{type:[Boolean,String],default:()=>De.defaultProps.hideOnClick},ignoreAttributes:{type:Boolean,default:()=>De.defaultProps.ignoreAttributes},interactive:{type:Boolean,default:()=>De.defaultProps.interactive},interactiveBorder:{default:()=>De.defaultProps.interactiveBorder},interactiveDebounce:{default:()=>De.defaultProps.interactiveDebounce},moveTransition:{default:()=>De.defaultProps.moveTransition},offset:{default:()=>De.defaultProps.offset},onAfterUpdate:{default:()=>De.defaultProps.onAfterUpdate},onBeforeUpdate:{default:()=>De.defaultProps.onBeforeUpdate},onCreate:{default:()=>De.defaultProps.onCreate},onDestroy:{default:()=>De.defaultProps.onDestroy},onHidden:{default:()=>De.defaultProps.onHidden},onHide:{default:()=>De.defaultProps.onHide},onMount:{default:()=>De.defaultProps.onMount},onShow:{default:()=>De.defaultProps.onShow},onShown:{default:()=>De.defaultProps.onShown},onTrigger:{default:()=>De.defaultProps.onTrigger},onUntrigger:{default:()=>De.defaultProps.onUntrigger},onClickOutside:{default:()=>De.defaultProps.onClickOutside},placement:{default:()=>De.defaultProps.placement},plugins:{default:()=>De.defaultProps.plugins},popperOptions:{default:()=>De.defaultProps.popperOptions},render:{default:()=>De.defaultProps.render},showOnCreate:{type:Boolean,default:()=>De.defaultProps.showOnCreate},touch:{type:[Boolean,String,Array],default:()=>De.defaultProps.touch},trigger:{default:()=>De.defaultProps.trigger},triggerTarget:{default:()=>De.defaultProps.triggerTarget},animateFill:{type:Boolean,default:()=>De.defaultProps.animateFill},followCursor:{type:[Boolean,String],default:()=>De.defaultProps.followCursor},inlinePositioning:{type:Boolean,default:()=>De.defaultProps.inlinePositioning},sticky:{type:[Boolean,String],default:()=>De.defaultProps.sticky},allowHTML:{type:Boolean,default:()=>De.defaultProps.allowHTML},animation:{default:()=>De.defaultProps.animation},arrow:{default:()=>De.defaultProps.arrow},content:{default:()=>De.defaultProps.content},inertia:{default:()=>De.defaultProps.inertia},maxWidth:{default:()=>De.defaultProps.maxWidth},role:{default:()=>De.defaultProps.role},theme:{default:()=>De.defaultProps.theme},zIndex:{default:()=>De.defaultProps.zIndex}},emits:["state"],setup(e,{slots:t,emit:n,expose:r}){const o=a.ref(),i=a.ref(),s=a.ref(),l=a.ref(!1),c=()=>{let h={...e};for(const v of["to","tag","contentTag","contentClass"])h.hasOwnProperty(v)&&delete h[v];return h};let d=()=>lC(o);e.to&&(typeof Element<"u"&&e.to instanceof Element?d=()=>e.to:e.to==="parent"?d=()=>{let h=o.value;return h||(h=o.value=i.value.parentElement),h}:(typeof e.to=="string"||e.to instanceof String)&&(d=()=>document.querySelector(e.to)));const u=Gf(d,c());let f=t.content;!f&&e.to==="parent"&&(f=t.default),a.onMounted(()=>{l.value=!0,a.nextTick(()=>{f&&u.setContent(()=>s.value)})}),a.watch(u.state,()=>{n("state",a.unref(u.state))},{immediate:!0,deep:!0}),a.watch(()=>e,()=>{u.setProps(c()),f&&u.setContent(()=>s.value)},{deep:!0});let p=a.reactive({elem:o,contentElem:s,mounted:l,...u});return r(p),()=>{const h=(typeof e.contentTag=="string",e.contentTag),v=f?a.h(h,{ref:s,style:{display:l.value?"inherit":"none"},class:e.contentClass},f(p)):null;if(e.to==="parent"){const g=[];if(!o.value){const S=a.h("span",{ref:i,"data-v-tippy":"",style:{display:"none"}});g.push(S)}return v&&g.push(v),g}const y=t.default?t.default(p):[];if(!e.tag){const g=a.h(y[0],{ref:o,"data-v-tippy":""});return v?[g,v]:g}const C=(typeof e.tag=="string",e.tag);return a.h(C,{ref:o,"data-v-tippy":""},v?[y,v]:y)}}}),uC=["a11y","allowHTML","arrow","flip","flipOnUpdate","hideOnClick","ignoreAttributes","inertia","interactive","lazy","multiple","showOnInit","touch","touchHold"];let Cd={};Object.keys(De.defaultProps).forEach(e=>{uC.includes(e)?Cd[e]={type:Boolean,default:function(){return De.defaultProps[e]}}:Cd[e]={default:function(){return De.defaultProps[e]}}});const dC=a.defineComponent({props:Cd,setup(e){const t=a.ref([]),{singleton:n}=iC(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)}}),fC={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 c;return(c=n.props)===null||c===void 0?void 0:c.onTippyShow(...l)}),n.props&&n.props.onTippyShown&&(r.onShown=function(...l){var c;return(c=n.props)===null||c===void 0?void 0:c.onTippyShown(...l)}),n.props&&n.props.onTippyHidden&&(r.onHidden=function(...l){var c;return(c=n.props)===null||c===void 0?void 0:c.onTippyHidden(...l)}),n.props&&n.props.onTippyHide&&(r.onHide=function(...l){var c;return(c=n.props)===null||c===void 0?void 0:c.onTippyHide(...l)}),n.props&&n.props.onTippyMount&&(r.onMount=function(...l){var c;return(c=n.props)===null||c===void 0?void 0:c.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")),Gf(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||{})}},pC={install(e,t={}){De.setDefaultProps(t.defaultProps||{}),e.directive(t.directive||"tippy",fC),e.component(t.component||"tippy",cC),e.component(t.componentSingleton||"tippy-singleton",dC)}},mC=De.setDefaultProps;mC({ignoreAttributes:!0,plugins:[oC,rC,tC,J_]});/*!
6
6
  * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
7
7
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
8
8
  * Copyright 2024 Fonticons, Inc.
@@ -602,14 +602,14 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
602
602
  71.17C27.9705 66.4095 18.277 56.8779 19.6737 51.0317C19.6875 50.9735 20.1658 49.3948 20.1806 49.3366C21.3022
603
603
  44.9009 25.3167 38.2485 27.6848 42.1625C31.7713 48.9176 39.4946 61.977 40.559 68.0199C41.2204 71.7752 36.8302
604
604
  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))])]))}}),W6=["src"],q6=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(V6)[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 size-full rounded-full"},null,8,W6)):(a.openBlock(),a.createBlock(U6,{key:1,color:t.defaultAvatarColor,class:"absolute inset-0 size-full rounded-full"},null,8,["color"]))],2))}}),Y6={class:"group mb-3 flex items-center font-semibold text-zinc-700"},G6=a.defineComponent({__name:"AppBackButton",props:{buttonText:{default:"Ga terug"},iconClasses:{default:""},to:{default:void 0}},setup(e){const t=e,n=ms.useRouter();async function r(){return t.to?n.push(t.to):n.back()}return(o,i)=>(a.openBlock(),a.createElementBlock("div",{class:"inline-block cursor-pointer",onClick:r},[a.createElementVNode("div",Y6,[a.createElementVNode("div",{class:a.normalizeClass([o.iconClasses,"mr-4 flex items-center justify-center rounded-full bg-white p-2 drop-shadow-sm transition-transform group-hover:-translate-x-2"])},[a.createVNode(a.unref(Yp),{class:"h-4 stroke-3 text-black","data-test-icon":""})],2),a.renderSlot(o.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(o.buttonText),1)])])]))}}),X6={plain:[],default:["bg-zinc-200","text-zinc-600"],success:["bg-green-200","text-green-600"],warning:["bg-yellow-200","text-yellow-600"],error:["bg-red-200","text-red-600"],info:["bg-sky-200","text-sky-600"],inactive:["bg-orange-200","text-orange-500"]},K6={medium:["px-3 py-[3px] text-sm min-h-7"],large:["px-3 py-2.5 text-sm"]},J6={plain:[],default:["!bg-zinc-600"],success:["!bg-green-600"],warning:["!bg-yellow-600"],error:["!bg-error"],info:["!bg-sky-600"],inactive:["!bg-orange-600"]},Q6={key:0,class:"app-badge__icon mr-2 h-4"},Z6={key:1,class:"app-badge__icon ml-2 h-4"},eE=a.defineComponent({__name:"AppBadge",props:{type:{default:"default"},rounded:{type:Boolean,default:!1},size:{default:"medium"},leadingIcon:{default:void 0},trailingIcon:{default:void 0}},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(X6)[r.type],...a.unref(K6)[r.size],...t.rounded?a.unref(J6)[r.type]:[],n.value],"app-badge inline-flex items-center font-semibold"])},[r.$slots.leadingIcon||r.leadingIcon?(a.openBlock(),a.createElementBlock("span",Q6,[a.renderSlot(r.$slots,"leadingIcon",{},()=>[r.leadingIcon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(r.leadingIcon),{key:0})):a.createCommentVNode("",!0)],!0)])):a.createCommentVNode("",!0),a.renderSlot(r.$slots,"default",{},void 0,!0),r.$slots.trailingIcon||r.trailingIcon?(a.openBlock(),a.createElementBlock("span",Z6,[a.renderSlot(r.$slots,"trailingIcon",{},()=>[r.trailingIcon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(r.trailingIcon),{key:0})):a.createCommentVNode("",!0)],!0)])):a.createCommentVNode("",!0)],2))}}),Jl=Ln(eE,[["__scopeId","data-v-504c9f12"]]),tE={"extra-small":["h-4","w-4"],small:["h-5","w-5"],medium:["h-7","w-7"],large:["h-10","w-10"]},Ra=a.defineComponent({__name:"AppLoader",props:{size:{default:"medium"}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("svg",{class:a.normalizeClass([a.unref(tE)[t.size],"animate-spin"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none"},n[0]||(n[0]=[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
605
- 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`},null,-1)]),2))}}),nE={class:"app-button__icon h-4"},rE=a.defineComponent({__name:"ButtonIconSlot",props:{loading:{type:Boolean}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("span",nE,[t.loading?(a.openBlock(),a.createBlock(Ra,{key:0,class:"w-4"})):a.renderSlot(t.$slots,"default",{key:1},void 0,!0)]))}}),qh=Ln(rE,[["__scopeId","data-v-04d5f165"]]),aE={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"]},oE={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"]},iE={small:["px-5","py-1.5"],medium:["px-5","py-2.5","h-[42px]"],large:["px-5","py-3.5"]},lr=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(aE)[t.colorType],...t.bordered?a.unref(oE)[t.colorType]:[],...a.unref(iE)[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(qh,{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(qh,{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"]))}}),sE=a.defineComponent({__name:"AppDropdownItem",props:{label:{},name:{},disabled:{type:Boolean},to:{},icon:{},iconClasses:{},onClick:{type:Function}},setup(e){const t=e,n=a.computed(()=>t.to?ms.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(ft.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 h-10 cursor-pointer items-center rounded-lg px-2.5 py-4 text-base text-white hover:bg-zinc-600"]),"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-2 size-4"]),"data-test-icon":""},null,8,["class"])):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(o.label),1)])]),_:3},8,["to","class"]))]),_:3}))}}),lE={class:"relative inline-block text-left"},cE=a.defineComponent({__name:"AppDropdownButton",props:{dropdownItems:{},horizontalAlign:{default:"left"},openDirection:{default:"down"},buttonClasses:{},teleport:{type:Boolean,default:!1},size:{},type:{},colorType:{},disabled:{type:Boolean},loading:{type:Boolean},bordered:{type:Boolean},block:{type:Boolean},as:{}},setup(e,{expose:t}){const n=e,r=a.ref(),o=a.ref(),i=a.ref(!1);if(n.teleport){const{isActive:s}=g2(r,o);a.watch(s,l=>{i.value=l})}return t({isActive:i}),(s,l)=>(a.openBlock(),a.createElementBlock("div",lE,[a.createVNode(a.unref(ft.Menu),null,{default:a.withCtx(()=>[a.createVNode(a.unref(ft.MenuButton),{ref_key:"button",ref:r},{default:a.withCtx(()=>[a.createVNode(a.unref(lr),a.normalizeProps(a.guardReactiveProps({...s.$props,class:s.buttonClasses})),{trailingIcon:a.withCtx(()=>[a.renderSlot(s.$slots,"trailingIcon",{},()=>[a.createVNode(a.unref(y2))])]),default:a.withCtx(()=>[a.renderSlot(s.$slots,"default")]),_:3},16)]),_:3},512),(a.openBlock(),a.createBlock(a.Teleport,{disabled:!s.teleport,to:"body"},[a.createVNode(a.unref(ft.MenuItems),{ref_key:"dropdown",ref:o,unmount:!1,class:a.normalizeClass([{"right-0 origin-top-right":s.horizontalAlign==="right","left-0 origin-top-left":s.horizontalAlign==="left","bottom-full mb-2":s.openDirection==="up"},"absolute z-10 mt-4 w-48 rounded-lg bg-secondary p-2 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(s.dropdownItems,c=>(a.openBlock(),a.createBlock(sE,a.mergeProps({key:c.label,ref_for:!0},c),{default:a.withCtx(()=>[a.renderSlot(s.$slots,`item-${c.name}`,{item:c})]),_:2},1040))),128))]),_:3},8,["class"])],8,["disabled"]))]),_:3})]))}}),uE=["aria-disabled"],dE=["value","disabled"],D1=a.defineComponent({__name:"AppColor",props:a.mergeModels({modelValue:{},disabled:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=a.useModel(e,"modelValue"),r=a.ref(null),o={red:0,green:0,blue:0},i=a.computed(()=>{if(t.modelValue){const c=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(t.modelValue);return c?{red:parseInt(c[1],16),green:parseInt(c[2],16),blue:parseInt(c[3],16)}:o}return o}),s=a.computed(()=>{const{red:c,green:d,blue:u}=i.value,f=150,p=.299*(c*c),h=.587*(d*d),v=.114*(u*u);return Math.sqrt(p+h+v)<f});function l(c){n.value=c.target.value}return(c,d)=>(a.openBlock(),a.createElementBlock("label",{"aria-disabled":c.disabled,class:"group relative block size-10 cursor-pointer aria-disabled:cursor-not-allowed"},[a.createElementVNode("input",{ref_key:"colorInput",ref:r,value:n.value,disabled:c.disabled,type:"color",class:"relative size-full cursor-pointer appearance-none rounded-lg border-none p-0 group-aria-disabled:cursor-not-allowed",onInput:l},null,40,dE),a.createVNode(a.unref(rB),{class:a.normalizeClass([{"text-white":s.value,"text-black":!s.value},"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"])},null,8,["class"])],8,uE))}}),fE={class:"flex items-center justify-between space-x-2"},pE={"data-test-title":""},mE={key:0,"data-test-default-slot":""},hE=a.defineComponent({__name:"AppColorCard",props:a.mergeModels({title:{},disabled:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=a.useModel(e,"modelValue"),n=a.useSlots();return(r,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([r.disabled?"bg-zinc-50":"bg-white","rounded-xl p-2 pl-4 shadow-[0px_2px_4px_0px_rgba(32,32,32,0.08)]"])},[a.createElementVNode("div",fE,[a.createElementVNode("span",pE,[a.renderSlot(r.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(r.title),1)])]),a.createVNode(a.unref(D1),{ref:r.title,modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=i=>t.value=i),disabled:r.disabled},null,8,["modelValue","disabled"])]),a.unref(n).default?a.withDirectives((a.openBlock(),a.createElementBlock("div",mE,[a.renderSlot(r.$slots,"default")],512)),[[a.vShow,t.value]]):a.createCommentVNode("",!0)],2))}}),vE={key:0,class:"app-card__icon float-right text-primary"},gE=a.defineComponent({__name:"CardIconSlot",props:{icon:{}},setup(e){const t=e,n=a.computed(()=>{var s;return typeof t.icon=="string"?!1:typeof((s=t.icon)==null?void 0:s.prefix)=="string"}),r=a.computed(()=>{var s,l;return typeof t.icon=="object"&&((l=(s=t.icon)==null?void 0:s.props)==null?void 0:l.icon)!==void 0}),o=a.computed(()=>n.value?a.h(or,{icon:t.icon}):t.icon),i=a.computed(()=>n.value?o.value:typeof t.icon=="string"?"span":t.icon);return(s,l)=>s.$slots.default||s.icon?(a.openBlock(),a.createElementBlock("div",vE,[a.renderSlot(s.$slots,"default",{},()=>[o.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.value),{key:0,class:a.normalizeClass({"size-5":!n.value,"size-4":n.value}),"data-test-icon-component":"",innerHTML:n.value||r.value?void 0:o.value},null,8,["class","innerHTML"])):a.createCommentVNode("",!0)],!0)])):a.createCommentVNode("",!0)}}),yE=Ln(gE,[["__scopeId","data-v-bd7a2ba5"]]),bE={1:"stroke-1",2:"stroke-2",3:"stroke-3"},wE=a.defineComponent({__name:"CardAction",props:{item:{}},setup(e){const t=e,{navigationComponent:n}=_o(),r=a.ref(!1),o=a.computed(()=>r.value||typeof t.item.icon!="string"),i=a.computed(()=>r.value?Ra:t.item.icon),s=a.computed(()=>[o.value?"":"!h-6",bE[t.item.iconStroke??3]]);async function l(c){var d,u,f;(d=t.item)!=null&&d.onClick&&(c.preventDefault(),r.value=!0,await Promise.resolve((f=(u=t.item)==null?void 0:u.onClick)==null?void 0:f.call(u)),r.value=!1)}return(c,d)=>{var u;return a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),{to:c.item.to,href:c.item.href,class:a.normalizeClass([{"flex-row-reverse":((u=c.item)==null?void 0:u.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 f,p;return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.value?i.value:"span"),{class:a.normalizeClass([s.value,"size-4"]),size:r.value?"extra-small":void 0,"data-test-icon":""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(o.value?"":c.item.icon),1)]),_:1},8,["class","size"])),a.createElementVNode("span",{class:a.normalizeClass([{"pl-2":c.item.icon&&((f=c.item)==null?void 0:f.iconPosition)!=="right","pr-2":c.item.icon&&((p=c.item)==null?void 0:p.iconPosition)==="right"},"text-sm"]),"data-test-name":""},a.toDisplayString(c.item.name),3)]}),_:1},8,["to","href","class"])}}}),kE={key:1,class:"text-2xl font-bold text-zinc-900","data-test-title":""},_E={class:"text-base font-normal text-zinc-600","data-test-description":""},cp=a.defineComponent({__name:"AppCard",props:{title:{default:void 0},description:{default:void 0},actions:{default:void 0},icon:{default:void 0},bordered:{type:Boolean,default:!1},contentClasses:{default:void 0},hoverTransition:{type:Boolean,default:!1}},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,"cursor-pointer transition hover:drop-shadow-cardhighlight":s.actions&&s.actions.length>0||s.hoverTransition}],"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.5 before:bg-primary"])},[o.value?(a.openBlock(),a.createBlock(yE,{key:0,icon:s.icon,class:a.normalizeClass({"mt-1.5":r.value}),"data-test-icon":""},{default:a.withCtx(()=>[a.renderSlot(s.$slots,"icon")]),_:3},8,["icon","class"])):a.createCommentVNode("",!0),r.value?(a.openBlock(),a.createElementBlock("h3",kE,[a.renderSlot(s.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(s.title),1)]),a.renderSlot(s.$slots,"description",{},()=>[a.createElementVNode("p",_E,a.toDisplayString(s.description),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,c=>(a.openBlock(),a.createElementBlock("div",{key:c.name,class:"mt-2 flex w-full"},[a.createVNode(wE,{item:c},null,8,["item"])]))),128))])],2))}}),CE={class:"flex min-h-screen px-4 pb-20 pt-4 text-center md:items-center md:justify-center"},SE={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"},EE={class:"rounded-2xl bg-zinc-100 drop-shadow-card"},xE={class:"flex flex-col items-center space-y-5 p-8"},TE={key:0,class:"mx-auto flex size-12 shrink-0 items-center justify-center rounded-full"},PE={class:"mt-3"},IE={class:"mt-3 w-full text-base text-zinc-700","data-test-confirm-content":""},AE=["innerHTML"],ME={key:1},OE={class:"ml-auto flex flex-row-reverse items-center gap-8 rounded-b-2xl bg-white p-8"},R1=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:{default:void 0},html:{type:Boolean,default:!1},animate:{type:Boolean,default:!0},extendedIconDomClasses:{default:""},onConfirm:{},onCancel:{}},emits:["close","confirmed"],setup(e,{emit:t}){const n=e,r=t,o=a.ref(!0),i=a.ref(!1),s=a.ref(!1),{expanded:l}=_o(),c=a.computed(()=>!n.icon&&n.type==="error"?lp:!n.icon&&n.type==="success"?sp:n.icon),d=a.computed(()=>n.animate?ft.TransitionRoot:"div"),u=a.computed(()=>n.animate?ft.TransitionChild:"div"),f=a.computed(()=>[n.type==="error"?"text-red-500":"text-green-500",n.extendedIconDomClasses]);async function p(h){h&&typeof n.onConfirm=="function"?(i.value=!0,await Promise.resolve(n.onConfirm())):!h&&typeof n.onCancel=="function"&&(s.value=!0,await Promise.resolve(n.onCancel())),o.value=!1,r("close",h)}return(h,v)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(d.value),{show:o.value,as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(ft.Dialog),{open:h.animate?void 0:o.value,class:a.normalizeClass([{"md:!left-72":a.unref(l)},"app-confirm-dialog fixed inset-0 top-16 z-50 overflow-y-auto transition-all duration-500 md:left-20 md:top-0"]),as:"div","data-test-confirm-dialog":"",onClose:v[2]||(v[2]=()=>h.preventBackdropClose?void 0:p(!1))},{default:a.withCtx(()=>[a.createElementVNode("div",CE,[h.withBackdrop?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.value),{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(ft.DialogOverlay),{class:a.normalizeClass([{"md:!left-72":a.unref(l)},"app-confirm-dialog-overlay fixed inset-0 top-16 z-40 rounded-l-2xl bg-zinc-800/50 transition-all duration-500 md:left-20 md:top-0"])},null,8,["class"])]),_:1})):a.createCommentVNode("",!0),v[3]||(v[3]=a.createElementVNode("span",{class:"hidden md:inline-block md:h-screen md:align-middle","aria-hidden":"true"}," ​ ",-1)),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.value),{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",SE,[a.createElementVNode("div",EE,[a.createElementVNode("div",xE,[c.value?(a.openBlock(),a.createElementBlock("div",TE,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.value),{class:a.normalizeClass([f.value,"size-full"]),"data-test-confirm-icon":""},null,8,["class"]))])):a.createCommentVNode("",!0),a.createElementVNode("div",PE,[a.createVNode(a.unref(ft.DialogTitle),{as:"h3",class:"text-2xl font-bold leading-6 text-zinc-900"},{default:a.withCtx(()=>[a.renderSlot(h.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(h.title),1)])]),_:3}),a.createElementVNode("div",IE,[a.renderSlot(h.$slots,"default",{},()=>[h.html?(a.openBlock(),a.createElementBlock("div",{key:0,class:"app-confirm-html-content",innerHTML:h.content},null,8,AE)):(a.openBlock(),a.createElementBlock("p",ME,a.toDisplayString(h.content),1))])])])]),a.createElementVNode("div",OE,[h.confirmButtonText?(a.openBlock(),a.createBlock(a.unref(lr),{key:0,disabled:i.value||s.value,loading:i.value,type:"button","color-type":"primary",class:"justify-center",onClick:v[0]||(v[0]=()=>p(!0))},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(h.confirmButtonText),1)]),_:2},[h.confirmButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h.confirmButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,h.confirmButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h.confirmButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0),h.cancelButtonText?(a.openBlock(),a.createBlock(a.unref(lr),{key:1,disabled:i.value||s.value,loading:s.value,"color-type":"plain",class:"justify-center text-zinc-900",onClick:v[1]||(v[1]=()=>p(!1))},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(h.cancelButtonText),1)]),_:2},[h.cancelButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h.cancelButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,h.cancelButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h.cancelButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0)])])])]),_:3}))])]),_:3},8,["open","class"])]),_:3},8,["show"]))}}),NE={class:"flex min-h-screen px-4 pb-20 pt-4 text-center md:items-center md:justify-center"},BE={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"},DE={class:"rounded-2xl bg-white p-10 drop-shadow-card"},RE={class:"flex flex-col items-center space-y-5"},LE={key:0,class:"mx-auto flex size-12 shrink-0 items-center justify-center rounded-full"},$E={class:"mt-3 text-center"},zE={class:"mt-3 w-full px-10 text-center text-sm text-zinc-600","data-test-error-content":""},VE=["innerHTML"],FE={key:1},jE={class:"mx-auto flex w-fit flex-col space-y-4 pt-10"},L1=a.defineComponent({__name:"AppError",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:{default:void 0},html:{type:Boolean,default:!1},extendedIconDomClasses:{default:""},onConfirm:{},onCancel:{}},emits:["close","confirmed"],setup(e,{emit:t}){const n=e,r=t,o=a.ref(!0),i=a.ref(!1),s=a.ref(!1),l=a.computed(()=>!n.icon&&n.type==="error"?lp:!n.icon&&n.type==="success"?sp:n.icon),c=a.computed(()=>[n.type==="error"?"text-red-500":"text-green-500",n.extendedIconDomClasses]);async function d(u){u&&typeof n.onConfirm=="function"?(i.value=!0,await Promise.resolve(n.onConfirm())):!u&&typeof n.onCancel=="function"&&(s.value=!0,await Promise.resolve(n.onCancel())),o.value=!1,r("close",u)}return(u,f)=>(a.openBlock(),a.createBlock(a.unref(ft.TransitionRoot),{show:o.value,as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(ft.Dialog),{as:"div",class:"app-error-dialog fixed inset-0 top-16 z-50 overflow-y-auto md:left-20 md:top-0","data-test-error-dialog":"",onClose:f[2]||(f[2]=()=>u.preventBackdropClose?void 0:d(!1))},{default:a.withCtx(()=>[a.createElementVNode("div",NE,[u.withBackdrop?(a.openBlock(),a.createBlock(a.unref(ft.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(ft.DialogOverlay),{class:"app-error-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),f[3]||(f[3]=a.createElementVNode("span",{class:"hidden md:inline-block md:h-screen md:align-middle","aria-hidden":"true"}," ​ ",-1)),a.createVNode(a.unref(ft.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",BE,[a.createElementVNode("div",DE,[a.createElementVNode("div",RE,[l.value?(a.openBlock(),a.createElementBlock("div",LE,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(l.value),{class:a.normalizeClass([c.value,"size-full"]),"data-test-error-icon":""},null,8,["class"]))])):a.createCommentVNode("",!0),a.createElementVNode("div",$E,[a.createVNode(a.unref(ft.DialogTitle),{as:"h3",class:"text-2xl font-bold leading-6 text-zinc-900"},{default:a.withCtx(()=>[a.renderSlot(u.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(u.title),1)])]),_:3}),a.createElementVNode("div",zE,[a.renderSlot(u.$slots,"default",{},()=>[u.html?(a.openBlock(),a.createElementBlock("div",{key:0,class:"app-error-html-content",innerHTML:u.content},null,8,VE)):(a.openBlock(),a.createElementBlock("p",FE,a.toDisplayString(u.content),1))])])])]),a.createElementVNode("div",jE,[u.confirmButtonText?(a.openBlock(),a.createBlock(a.unref(lr),{key:0,bordered:!0,disabled:i.value||s.value,loading:i.value,type:"button","color-type":"primary",class:"justify-center",onClick:f[0]||(f[0]=()=>d(!0))},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(u.confirmButtonText),1)]),_:2},[u.confirmButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.confirmButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,u.confirmButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.confirmButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0),u.cancelButtonText?(a.openBlock(),a.createBlock(a.unref(lr),{key:1,disabled:i.value||s.value,loading:s.value,"color-type":"plain",class:"justify-center",onClick:f[1]||(f[1]=()=>d(!1))},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(u.cancelButtonText),1)]),_:2},[u.cancelButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.cancelButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,u.cancelButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.cancelButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0)])])])]),_:3})])]),_:3})]),_:3},8,["show"]))}});function Yh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function er(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yh(Object(n),!0).forEach(function(r){yn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HE(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UE(e){var t=HE(e,"string");return typeof t=="symbol"?t:t+""}function Ql(e){"@babel/helpers - typeof";return Ql=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},Ql(e)}function yn(e,t,n){return t=UE(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WE(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function qE(e,t){if(e==null)return{};var n=WE(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fd(e){return YE(e)||GE(e)||XE(e)||KE()}function YE(e){if(Array.isArray(e))return jd(e)}function GE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function XE(e,t){if(e){if(typeof e=="string")return jd(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 jd(e,t)}}function jd(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 KE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
606
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var JE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},$1={exports:{}};(function(e){(function(t){var n=function(g,S,_){if(!d(S)||f(S)||p(S)||h(S)||c(S))return S;var b,T=0,E=0;if(u(S))for(b=[],E=S.length;T<E;T++)b.push(n(g,S[T],_));else{b={};for(var x in S)Object.prototype.hasOwnProperty.call(S,x)&&(b[g(x,_)]=n(g,S[x],_))}return b},r=function(g,S){S=S||{};var _=S.separator||"_",b=S.split||/(?=[A-Z])/;return g.split(b).join(_)},o=function(g){return v(g)?g:(g=g.replace(/[\-_\s]+(.)?/g,function(S,_){return _?_.toUpperCase():""}),g.substr(0,1).toLowerCase()+g.substr(1))},i=function(g){var S=o(g);return S.substr(0,1).toUpperCase()+S.substr(1)},s=function(g,S){return r(g,S).toLowerCase()},l=Object.prototype.toString,c=function(g){return typeof g=="function"},d=function(g){return g===Object(g)},u=function(g){return l.call(g)=="[object Array]"},f=function(g){return l.call(g)=="[object Date]"},p=function(g){return l.call(g)=="[object RegExp]"},h=function(g){return l.call(g)=="[object Boolean]"},v=function(g){return g=g-0,g===g},y=function(g,S){var _=S&&"process"in S?S.process:S;return typeof _!="function"?g:function(b,T){return _(b,g,T)}},C={camelize:o,decamelize:s,pascalize:i,depascalize:s,camelizeKeys:function(g,S){return n(y(o,S),g)},decamelizeKeys:function(g,S){return n(y(s,S),g,S)},pascalizeKeys:function(g,S){return n(y(i,S),g)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=C:t.humps=C})(JE)})($1);var QE=$1.exports,ZE=["class","style"];function ex(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),o=QE.camelize(n.slice(0,r)),i=n.slice(r+1).trim();return t[o]=i,t},{})}function tx(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function up(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var r=(e.children||[]).map(function(c){return up(c)}),o=Object.keys(e.attributes||{}).reduce(function(c,d){var u=e.attributes[d];switch(d){case"class":c.class=tx(u);break;case"style":c.style=ex(u);break;default:c.attrs[d]=u}return c},{attrs:{},class:{},style:{}});n.class;var i=n.style,s=i===void 0?{}:i,l=qE(n,ZE);return a.h(e.tag,er(er(er({},t),{},{class:o.class,style:er(er({},o.style),s)},o.attrs),l),r)}var z1=!1;try{z1=process.env.NODE_ENV==="production"}catch{}function nx(){if(!z1&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function ns(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?yn({},e,t):{}}function rx(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},yn(yn(yn(yn(yn(yn(yn(yn(yn(yn(t,"fa-".concat(e.size),e.size!==null),"fa-rotate-".concat(e.rotation),e.rotation!==null),"fa-pull-".concat(e.pull),e.pull!==null),"fa-swap-opacity",e.swapOpacity),"fa-bounce",e.bounce),"fa-shake",e.shake),"fa-beat",e.beat),"fa-fade",e.fade),"fa-beat-fade",e.beatFade),"fa-flash",e.flash),yn(yn(t,"fa-spin-pulse",e.spinPulse),"fa-spin-reverse",e.spinReverse));return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}function Gh(e){if(e&&Ql(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Kl.icon)return Kl.icon(e);if(e===null)return null;if(Ql(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var or=a.defineComponent({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(t,n){var r=n.attrs,o=a.computed(function(){return Gh(t.icon)}),i=a.computed(function(){return ns("classes",rx(t))}),s=a.computed(function(){return ns("transform",typeof t.transform=="string"?Kl.transform(t.transform):t.transform)}),l=a.computed(function(){return ns("mask",Gh(t.mask))}),c=a.computed(function(){return v6(o.value,er(er(er(er({},i.value),s.value),l.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});a.watch(c,function(u){if(!u)return nx("Could not find one or more icon(s)",o.value,l.value)},{immediate:!0});var d=a.computed(function(){return c.value?up(c.value.abstract[0],{},r):null});return function(){return d.value}}});a.defineComponent({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(t,n){var r=n.slots,o=A1.familyPrefix,i=a.computed(function(){return["".concat(o,"-layers")].concat(Fd(t.fixedWidth?["".concat(o,"-fw")]:[]))});return function(){return a.h("div",{class:i.value},r.default?r.default():[])}}});a.defineComponent({name:"FontAwesomeLayersText",props:{value:{type:[String,Number],default:""},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(t){return["bottom-left","bottom-right","top-left","top-right"].indexOf(t)>-1}}},setup:function(t,n){var r=n.attrs,o=A1.familyPrefix,i=a.computed(function(){return ns("classes",[].concat(Fd(t.counter?["".concat(o,"-layers-counter")]:[]),Fd(t.position?["".concat(o,"-layers-").concat(t.position)]:[])))}),s=a.computed(function(){return ns("transform",typeof t.transform=="string"?Kl.transform(t.transform):t.transform)}),l=a.computed(function(){var d=g6(t.value.toString(),er(er({},s.value),i.value)),u=d.abstract;return t.counter&&(u[0].attributes.class=u[0].attributes.class.replace("fa-layers-text","")),u[0]}),c=a.computed(function(){return up(l.value,{},r)});return function(){return c.value}}});const ax=["disabled","accept","name"],ox={key:0,class:"flex flex-col items-center px-6 py-10 text-white"},ix={class:"mb-2 mt-4 text-xl font-bold"},sx={class:"text-sm"},lx=["src"],cx=a.defineComponent({__name:"AppImageDropzone",props:{title:{default:"Drag & drop"},description:{default:"of selecteer een afbeelding van je computer"},disabled:{type:Boolean,default:!1},existingFileUrl:{},dataTypes:{default:()=>["image/png","image/gif","image/jpeg"]},name:{default:""}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=a.ref(null),i=a.ref(null),s=a.ref(),l=a.ref(),{isOverDropZone:c}=mo.useDropZone(l,{onDrop:d,dataTypes:n.dataTypes});a.watch(o,h=>{r("update:modelValue",h)}),a.onMounted(()=>{n.existingFileUrl&&(i.value=n.existingFileUrl,o.value=new File([],n.existingFileUrl.split("/").pop()??""))});function d(h){if(h&&!n.disabled){const v=h[0];o.value=v,i.value=URL.createObjectURL(v)}}function u(h){var C;const y=(C=h.target.files)==null?void 0:C[0];y&&n.dataTypes.includes(y.type)&&(o.value=y,i.value=URL.createObjectURL(y))}function f(){o.value=null,i.value=null,s.value.value=""}function p(){var h;(h=s.value)==null||h.click()}return(h,v)=>{var y,C;return a.openBlock(),a.createElementBlock("div",{ref_key:"dropZoneRef",ref:l,class:a.normalizeClass([{"cursor-pointer":!h.disabled,"cursor-not-allowed":h.disabled,"bg-zinc-700":a.unref(c)},"group relative flex size-60 items-center justify-center rounded-2xl bg-secondary text-center drop-shadow-card"]),onClick:p},[a.createElementVNode("input",{ref_key:"fileInput",ref:s,disabled:h.disabled,accept:h.dataTypes.join(", "),name:h.name,type:"file",class:"hidden",onChange:u},null,40,ax),o.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",ox,[a.createVNode(a.unref(or),{icon:(y=a.unref(zn).far)==null?void 0:y["arrow-up-to-line"],class:"size-10"},null,8,["icon"]),a.createElementVNode("h3",ix,a.toDisplayString(h.title),1),a.createElementVNode("p",sx,a.toDisplayString(h.description),1)])),i.value?(a.openBlock(),a.createElementBlock("img",{key:1,src:i.value,alt:"Preview",class:"size-full rounded-2xl object-cover"},null,8,lx)):a.createCommentVNode("",!0),o.value&&!h.disabled?(a.openBlock(),a.createElementBlock("span",{key:2,class:"absolute inset-0 hidden size-full flex-col items-center justify-center rounded-2xl bg-secondary p-1 text-white group-hover:flex",onClick:a.withModifiers(f,["stop"])},[a.createVNode(a.unref(or),{icon:(C=a.unref(zn).far)==null?void 0:C.trash,class:"size-10"},null,8,["icon"]),v[0]||(v[0]=a.createElementVNode("h3",{class:"mb-2 mt-4 text-xl font-bold"}," Verwijderen ",-1)),v[1]||(v[1]=a.createElementVNode("p",{class:"text-sm"}," Klik hier om de afbeelding te verwijderen ",-1))])):a.createCommentVNode("",!0)],2)}}}),ux={class:"flex min-h-screen items-center justify-center text-center"},dx={class:"rounded-2xl bg-zinc-100 drop-shadow-card"},fx={class:"flex flex-col items-center space-y-5"},px={class:"w-full text-center"},mx={key:0,class:"w-full rounded-b-xl bg-white p-8"},hx={class:"ml-auto flex w-fit flex-row-reverse items-center"},V1=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},contentClasses:{default:""},modalClasses:{default:""},content:{default:""},properties:{default:void 0},onSubmit:{},onCancel:{}},emits:["open","close","cancel","submit"],setup(e,{expose:t,emit:n}){const r=e,o=n,i=a.ref(!1),s=a.ref(),l=a.ref(!1),c=a.ref(!1),d=a.ref(),u=a.computed(()=>r.preventBackdropClose||r.preventBackdropCloseOnLoading&&(l.value||c.value));async function f(){i.value=!0,o("open")}async function p(){c.value=!0,i.value=!1,o("close",{animation:async()=>new Promise(y=>setTimeout(y,350))}),c.value=!1}async function h(){var g,S,_;const y=await((S=(g=d.value)==null?void 0:g.cancel)==null?void 0:S.call(g)),C=await((_=r.onCancel)==null?void 0:_.call(r));r.onCancel===void 0&&o("cancel"),!(y===!1||C===!1)&&await p()}async function v(){var C,g,S;l.value=!0;const y=new FormData(s.value);await((g=(C=d.value)==null?void 0:C.submit)==null?void 0:g.call(C,y)),await((S=r.onSubmit)==null?void 0:S.call(r,y)),l.value=!1}return t({isOpen:i,open:f,close:p,submit:v}),(y,C)=>(a.openBlock(),a.createBlock(a.unref(ft.TransitionRoot),{show:i.value,as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(ft.Dialog),{as:"div",class:"app-modal-dialog fixed inset-0 z-[250] overflow-y-auto","data-test-modal-dialog":"",onClose:C[0]||(C[0]=()=>u.value?void 0:p())},{default:a.withCtx(()=>[a.createElementVNode("div",ux,[y.withBackdrop?(a.openBlock(),a.createBlock(a.unref(ft.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(ft.DialogOverlay),{class:"fixed inset-0 z-40 bg-black/20 backdrop-blur-sm transition-opacity"})]),_:1})):a.createCommentVNode("",!0),C[1]||(C[1]=a.createElementVNode("span",{class:"inline-block h-screen align-middle","aria-hidden":"true"}," ​ ",-1)),a.createVNode(a.unref(ft.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",{class:a.normalizeClass(`relative z-50 mx-auto inline-block w-full max-w-2xl overflow-hidden rounded-2xl p-4
607
- text-left align-middle transition-all md:max-w-[70vw] ${y.modalClasses}`)},[a.createElementVNode("div",dx,[a.createElementVNode("div",fx,[a.createElementVNode("div",px,[a.createVNode(a.unref(ft.DialogTitle),{as:"h3",class:"flex justify-between px-8 pt-8 text-2xl font-bold leading-6 text-zinc-900"},{default:a.withCtx(()=>{var g;return[a.renderSlot(y.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(y.title),1)]),a.createVNode(a.unref(or),{icon:(g=a.unref(zn).far)==null?void 0:g.xmark,class:"size-5 cursor-pointer",onClick:p},null,8,["icon"])]}),_:3}),a.createElementVNode("div",{class:a.normalizeClass(`my-6 px-8 w-full text-center text-sm text-zinc-600 ${y.contentClasses}`),"data-test-modal-content":""},[a.createElementVNode("form",{ref_key:"form",ref:s},[a.renderSlot(y.$slots,"default",{},()=>[typeof y.content=="string"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(y.content),1)],64)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(y.content),a.mergeProps({key:1,ref_key:"contentRef",ref:d},y.properties,{onClose:p,onSubmit:v,onCancel:h}),null,16))])],512)],2)])]),y.withFooter?(a.openBlock(),a.createElementBlock("div",mx,[a.createElementVNode("div",hx,[y.submitButtonText?(a.openBlock(),a.createBlock(a.unref(lr),{key:0,disabled:l.value||c.value,loading:l.value,type:"button","color-type":"primary",class:"ml-6 justify-center",onClick:v},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(y.submitButtonText),1)]),_:2},[y.submitButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(y.submitButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,y.submitButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(y.submitButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0),y.cancelButtonText?(a.openBlock(),a.createBlock(a.unref(lr),{key:1,disabled:l.value||c.value,loading:c.value,"color-type":"plain",class:"justify-center !text-zinc-900",onClick:h},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(y.cancelButtonText),1)]),_:2},[y.cancelButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(y.cancelButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,y.cancelButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(y.cancelButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0)])],2)]),_:3})])]),_:3})]),_:3},8,["show"]))}}),vx={key:0,class:"flex w-full","data-test-item":""},F1=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||!!t.component);return(i,s)=>o.value||!o.value&&!i.hideEmptyValues?(a.openBlock(),a.createElementBlock("div",vx,[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||i.$slots.default?(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)}}),gx={class:"flex flex-col gap-1.5"},yx=a.defineComponent({__name:"AppDefinitionList",props:{items:{default:void 0},hideEmptyValues:{type:Boolean,default:!1}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",gx,[a.renderSlot(t.$slots,"default",{},()=>[t.items?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(t.items,(r,o)=>(a.openBlock(),a.createBlock(F1,{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)):a.createCommentVNode("",!0)])]))}}),bx=a.defineComponent({__name:"AppDisclosure",props:{defaultOpen:{type:Boolean,default:!1}},setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.unref(ft.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"]))}}),wx={class:"ml-auto pl-2"},kx=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(ft.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",wx,[a.renderSlot(r.$slots,"icon",{open:i},()=>[a.createVNode(a.unref(y2),{class:a.normalizeClass([{"rotate-180":i},"size-5 text-zinc-900 transition-transform"])},null,8,["class"])])])]),_:3},512))}}),_x=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(ft.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}))}}),Kt=[];for(let e=0;e<256;++e)Kt.push((e+256).toString(16).slice(1));function Cx(e,t=0){return(Kt[e[t+0]]+Kt[e[t+1]]+Kt[e[t+2]]+Kt[e[t+3]]+"-"+Kt[e[t+4]]+Kt[e[t+5]]+"-"+Kt[e[t+6]]+Kt[e[t+7]]+"-"+Kt[e[t+8]]+Kt[e[t+9]]+"-"+Kt[e[t+10]]+Kt[e[t+11]]+Kt[e[t+12]]+Kt[e[t+13]]+Kt[e[t+14]]+Kt[e[t+15]]).toLowerCase()}let Lu;const Sx=new Uint8Array(16);function Ex(){if(!Lu){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Lu=crypto.getRandomValues.bind(crypto)}return Lu(Sx)}const xx=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Xh={randomUUID:xx};function Tx(e,t,n){var o;if(Xh.randomUUID&&!t&&!e)return Xh.randomUUID();e=e||{};const r=e.random??((o=e.rng)==null?void 0:o.call(e))??Ex();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Cx(r)}const Px={class:"app-input__icon pointer-events-none absolute z-10 mt-px h-5"},Ix=a.defineComponent({__name:"InputIconSlot",props:{loading:{type:Boolean}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("span",Px,[t.loading?(a.openBlock(),a.createBlock(Ra,{key:0,size:"small",class:"w-4"})):a.renderSlot(t.$slots,"default",{key:1},void 0,!0)]))}}),Kh=Ln(Ix,[["__scopeId","data-v-b64a985e"]]);function Go(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function wr(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):s;o=e.formattingValues[l]||e.formattingValues[s]}else{const s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}function kr(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?Mx(l,f=>f.test(s)):Ax(l,f=>f.test(s));let d;d=e.valueCallback?e.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;const u=t.slice(s.length);return{value:d,rest:u}}}function Ax(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Mx(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function j1(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const l=t.slice(o.length);return{value:s,rest:l}}}const H1=6048e5,Ox=864e5,Nx=6e4,U1=36e5,Bx=1e3,Jh=Symbol.for("constructDateFrom");function lt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Jh in e?e[Jh](t):e instanceof Date?new e.constructor(t):new Date(t)}function Vs(e,...t){const n=lt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}let Dx={};function Co(){return Dx}function Re(e,t){return lt(t||e,e)}function cr(e,t){var l,c,d,u;const n=Co(),r=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(d=n.locale)==null?void 0:d.options)==null?void 0:u.weekStartsOn)??0,o=Re(e,t==null?void 0:t.in),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}const Rx={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"}},Lx=(e,t,n)=>{let r;const o=Rx[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},$x={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},zx=(e,t,n,r)=>$x[e],Vx={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Fx={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},jx={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"]},Hx={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"]},Ux={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"}},Wx={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"}},qx=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Yx={ordinalNumber:qx,era:wr({values:Vx,defaultWidth:"wide"}),quarter:wr({values:Fx,defaultWidth:"wide",argumentCallback:e=>e-1}),month:wr({values:jx,defaultWidth:"wide"}),day:wr({values:Hx,defaultWidth:"wide"}),dayPeriod:wr({values:Ux,defaultWidth:"wide",formattingValues:Wx,defaultFormattingWidth:"wide"})},Gx=/^(\d+)(th|st|nd|rd)?/i,Xx=/\d+/i,Kx={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},Jx={any:[/^b/i,/^(a|c)/i]},Qx={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Zx={any:[/1/i,/2/i,/3/i,/4/i]},e5={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},t5={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]},n5={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},r5={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]},a5={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},o5={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}},i5={ordinalNumber:j1({matchPattern:Gx,parsePattern:Xx,valueCallback:e=>parseInt(e,10)}),era:kr({matchPatterns:Kx,defaultMatchWidth:"wide",parsePatterns:Jx,defaultParseWidth:"any"}),quarter:kr({matchPatterns:Qx,defaultMatchWidth:"wide",parsePatterns:Zx,defaultParseWidth:"any",valueCallback:e=>e+1}),month:kr({matchPatterns:e5,defaultMatchWidth:"wide",parsePatterns:t5,defaultParseWidth:"any"}),day:kr({matchPatterns:n5,defaultMatchWidth:"wide",parsePatterns:r5,defaultParseWidth:"any"}),dayPeriod:kr({matchPatterns:a5,defaultMatchWidth:"any",parsePatterns:o5,defaultParseWidth:"any"})},s5={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},l5={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},c5={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},u5={date:Go({formats:s5,defaultWidth:"full"}),time:Go({formats:l5,defaultWidth:"full"}),dateTime:Go({formats:c5,defaultWidth:"full"})},W1={code:"en-US",formatDistance:Lx,formatLong:u5,formatRelative:zx,localize:Yx,match:i5,options:{weekStartsOn:0,firstWeekContainsDate:1}},d5={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"}},f5=(e,t,n)=>{let r;const o=d5[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"over "+r:r+" geleden":r},p5={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},m5={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},h5={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},v5={date:Go({formats:p5,defaultWidth:"full"}),time:Go({formats:m5,defaultWidth:"full"}),dateTime:Go({formats:h5,defaultWidth:"full"})},g5={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},y5=(e,t,n,r)=>g5[e],b5={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},w5={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},k5={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"]},_5={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"]},C5={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"}},S5=(e,t)=>Number(e)+"e",E5={ordinalNumber:S5,era:wr({values:b5,defaultWidth:"wide"}),quarter:wr({values:w5,defaultWidth:"wide",argumentCallback:e=>e-1}),month:wr({values:k5,defaultWidth:"wide"}),day:wr({values:_5,defaultWidth:"wide"}),dayPeriod:wr({values:C5,defaultWidth:"wide"})},x5=/^(\d+)e?/i,T5=/\d+/i,P5={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},I5={any:[/^v/,/^n/]},A5={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},M5={any:[/1/i,/2/i,/3/i,/4/i]},O5={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},N5={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]},B5={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},D5={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]},R5={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},L5={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}},$5={ordinalNumber:j1({matchPattern:x5,parsePattern:T5,valueCallback:e=>parseInt(e,10)}),era:kr({matchPatterns:P5,defaultMatchWidth:"wide",parsePatterns:I5,defaultParseWidth:"any"}),quarter:kr({matchPatterns:A5,defaultMatchWidth:"wide",parsePatterns:M5,defaultParseWidth:"any",valueCallback:e=>e+1}),month:kr({matchPatterns:O5,defaultMatchWidth:"wide",parsePatterns:N5,defaultParseWidth:"any"}),day:kr({matchPatterns:B5,defaultMatchWidth:"wide",parsePatterns:D5,defaultParseWidth:"any"}),dayPeriod:kr({matchPatterns:R5,defaultMatchWidth:"any",parsePatterns:L5,defaultParseWidth:"any"})},z5={code:"nl",formatDistance:f5,formatLong:v5,formatRelative:y5,localize:E5,match:$5,options:{weekStartsOn:1,firstWeekContainsDate:4}},V5=["date","datetime","time","year","month","week"],F5={time:"clock",week:"calendar",date:"calendar",year:"calendar",month:"calendar",datetime:"calendar"};function eo(e){return V5.includes(e)}function j5(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 H5(e,t){return{locale:"nl",uid:t,autoApply:!0,clearable:!1,formatLocale:z5,format:j5(e),timePicker:e==="time",weekPicker:e==="week",yearPicker:e==="year",monthPicker:e==="month",enableTimePicker:["time","datetime"].includes(e),teleport:!0}}const U5=["richText"];function q1(e){return U5.includes(e)}function W5(e){return{apiKey:e,init:{plugins:"link",toolbar:"bold italic underline | link",link_title:!1,theme:"silver",menubar:!1,statusbar:!1,resize:!0,language:"nl",language_url:"/src/modules/plugins/TinyMCE/lang/nl.js",valid_elements:"p,b,strong,i,em,u,a[href|target],span[style|text-decoration=underline]",content_style:"html, body { height: calc(100% - 10px); }",setup:t=>{t.editorManager.IconManager.add("default",{icons:{bold:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 384 512"><path d="M0 56C0 42.7 10.7 32 24 32l48 0 16 0 124 0c68.5 0 124 55.5 124 124c0 34.7-14.3 66.2-37.3 88.7C339.7 264.9 368 307.1 368 356c0 68.5-55.5 124-124 124L88 480l-16 0-48 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-176L48 80 24 80C10.7 80 0 69.3 0 56zM212 232c42 0 76-34 76-76s-34-76-76-76L96 80l0 152 116 0zM96 280l0 152 148 0c42 0 76-34 76-76s-34-76-76-76l-32 0L96 280z"/></svg>',underline:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 448 512"><path d="M16 56c0-13.3 10.7-24 24-24l96 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-24 0 0 144c0 61.9 50.1 112 112 112s112-50.1 112-112l0-144-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l96 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-24 0 0 144c0 88.4-71.6 160-160 160s-160-71.6-160-160L64 80 40 80C26.7 80 16 69.3 16 56zM0 456c0-13.3 10.7-24 24-24l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 480c-13.3 0-24-10.7-24-24z"/></svg>',italic:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 384 512"><path d="M128 56c0-13.3 10.7-24 24-24l208 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-68.7 0L144.7 432l87.3 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 480c-13.3 0-24-10.7-24-24s10.7-24 24-24l68.7 0L239.3 80 152 80c-13.3 0-24-10.7-24-24z"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 640 512"><path d="M580.3 267.2c56.2-56.2 56.2-147.3 0-203.5C526.8 10.2 440.9 7.3 383.9 57.2l-6.1 5.4c-10 8.7-11 23.9-2.3 33.9s23.9 11 33.9 2.3l6.1-5.4c38-33.2 95.2-31.3 130.9 4.4c37.4 37.4 37.4 98.1 0 135.6L433.1 346.6c-37.4 37.4-98.2 37.4-135.6 0c-35.7-35.7-37.6-92.9-4.4-130.9l4.7-5.4c8.7-10 7.7-25.1-2.3-33.9s-25.1-7.7-33.9 2.3l-4.7 5.4c-49.8 57-46.9 142.9 6.6 196.4c56.2 56.2 147.3 56.2 203.5 0L580.3 267.2zM59.7 244.8C3.5 301 3.5 392.1 59.7 448.2c53.6 53.6 139.5 56.4 196.5 6.5l6.1-5.4c10-8.7 11-23.9 2.3-33.9s-23.9-11-33.9-2.3l-6.1 5.4c-38 33.2-95.2 31.3-130.9-4.4c-37.4-37.4-37.4-98.1 0-135.6L207 165.4c37.4-37.4 98.1-37.4 135.6 0c35.7 35.7 37.6 92.9 4.4 130.9l-5.4 6.1c-8.7 10-7.7 25.1 2.3 33.9s25.1 7.7 33.9-2.3l5.4-6.1c49.9-57 47-142.9-6.5-196.5c-56.2-56.2-147.3-56.2-203.5 0L59.7 244.8z"/></svg>',"chevron-left":'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 320 512"><path d="M15 239c-9.4 9.4-9.4 24.6 0 33.9L207 465c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L65.9 256 241 81c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0L15 239z"/></svg>',"chevron-right":'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 320 512"><path d="M305 239c9.4 9.4 9.4 24.6 0 33.9L113 465c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l175-175L79 81c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L305 239z"/></svg>',"chevron-up":'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 512 512"><path d="M239 111c9.4-9.4 24.6-9.4 33.9 0L465 303c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-175-175L81 337c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 111z"/></svg>',"chevron-down":'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 512 512"><path d="M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"/></svg>',close:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 384 512"><path d="M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"/></svg>',checkmark:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 448 512"><path d="M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"/></svg>'}})}}}}const q5=["location"];function Zl(e){return q5.includes(e)}const Y5=["radio","checkbox"];function Dc(e){return Y5.includes(e)}const G5=`peer text-zinc-700 appearance-none h-5 w-5 border
605
+ 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`},null,-1)]),2))}}),nE={class:"app-button__icon h-4"},rE=a.defineComponent({__name:"ButtonIconSlot",props:{loading:{type:Boolean}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("span",nE,[t.loading?(a.openBlock(),a.createBlock(Ra,{key:0,class:"w-4"})):a.renderSlot(t.$slots,"default",{key:1},void 0,!0)]))}}),qh=Ln(rE,[["__scopeId","data-v-04d5f165"]]),aE={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"]},oE={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"]},iE={small:["px-5","py-1.5"],medium:["px-5","py-2.5","h-[42px]"],large:["px-5","py-3.5"]},lr=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(aE)[t.colorType],...t.bordered?a.unref(oE)[t.colorType]:[],...a.unref(iE)[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(qh,{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(qh,{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"]))}}),sE=a.defineComponent({__name:"AppDropdownItem",props:{label:{},name:{},disabled:{type:Boolean},to:{},icon:{},iconClasses:{},onClick:{type:Function}},setup(e){const t=e,n=a.computed(()=>t.to?ms.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(ft.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 h-10 cursor-pointer items-center rounded-lg px-2.5 py-4 text-base text-white hover:bg-zinc-600"]),"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-2 size-4"]),"data-test-icon":""},null,8,["class"])):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(o.label),1)])]),_:3},8,["to","class"]))]),_:3}))}}),lE={class:"relative inline-block text-left"},cE=a.defineComponent({__name:"AppDropdownButton",props:{dropdownItems:{},horizontalAlign:{default:"left"},openDirection:{default:"down"},buttonClasses:{},teleport:{type:Boolean,default:!1},size:{},type:{},colorType:{},disabled:{type:Boolean},loading:{type:Boolean},bordered:{type:Boolean},block:{type:Boolean},as:{}},setup(e,{expose:t}){const n=e,r=a.ref(),o=a.ref(),i=a.ref(!1);if(n.teleport){const{isActive:s}=g2(r,o);a.watch(s,l=>{i.value=l})}return t({isActive:i}),(s,l)=>(a.openBlock(),a.createElementBlock("div",lE,[a.createVNode(a.unref(ft.Menu),null,{default:a.withCtx(()=>[a.createVNode(a.unref(ft.MenuButton),{ref_key:"button",ref:r},{default:a.withCtx(()=>[a.createVNode(a.unref(lr),a.normalizeProps(a.guardReactiveProps({...s.$props,class:s.buttonClasses})),{trailingIcon:a.withCtx(()=>[a.renderSlot(s.$slots,"trailingIcon",{},()=>[a.createVNode(a.unref(y2))])]),default:a.withCtx(()=>[a.renderSlot(s.$slots,"default")]),_:3},16)]),_:3},512),(a.openBlock(),a.createBlock(a.Teleport,{disabled:!s.teleport,to:"body"},[a.createVNode(a.unref(ft.MenuItems),{ref_key:"dropdown",ref:o,unmount:!1,class:a.normalizeClass([{"right-0 origin-top-right":s.horizontalAlign==="right","left-0 origin-top-left":s.horizontalAlign==="left","bottom-full mb-2":s.openDirection==="up"},"absolute z-10 mt-4 w-48 rounded-lg bg-secondary p-2 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(s.dropdownItems,c=>(a.openBlock(),a.createBlock(sE,a.mergeProps({key:c.label,ref_for:!0},c),{default:a.withCtx(()=>[a.renderSlot(s.$slots,`item-${c.name}`,{item:c})]),_:2},1040))),128))]),_:3},8,["class"])],8,["disabled"]))]),_:3})]))}}),uE=["aria-disabled"],dE=["value","disabled"],D1=a.defineComponent({__name:"AppColor",props:a.mergeModels({modelValue:{},disabled:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=a.useModel(e,"modelValue"),r=a.ref(null),o={red:0,green:0,blue:0},i=a.computed(()=>{if(t.modelValue){const c=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(t.modelValue);return c?{red:parseInt(c[1],16),green:parseInt(c[2],16),blue:parseInt(c[3],16)}:o}return o}),s=a.computed(()=>{const{red:c,green:d,blue:u}=i.value,f=150,p=.299*(c*c),h=.587*(d*d),v=.114*(u*u);return Math.sqrt(p+h+v)<f});function l(c){n.value=c.target.value}return(c,d)=>(a.openBlock(),a.createElementBlock("label",{"aria-disabled":c.disabled,class:"group relative block size-10 cursor-pointer aria-disabled:cursor-not-allowed"},[a.createElementVNode("input",{ref_key:"colorInput",ref:r,value:n.value,disabled:c.disabled,type:"color",class:"relative size-full cursor-pointer appearance-none rounded-lg border-none p-0 group-aria-disabled:cursor-not-allowed",onInput:l},null,40,dE),a.createVNode(a.unref(rB),{class:a.normalizeClass([{"text-white":s.value,"text-black":!s.value},"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"])},null,8,["class"])],8,uE))}}),fE={class:"flex items-center justify-between space-x-2"},pE={"data-test-title":""},mE={key:0,"data-test-default-slot":""},hE=a.defineComponent({__name:"AppColorCard",props:a.mergeModels({title:{},disabled:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=a.useModel(e,"modelValue"),n=a.useSlots();return(r,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([r.disabled?"bg-zinc-50":"bg-white","rounded-xl p-2 pl-4 shadow-[0px_2px_4px_0px_rgba(32,32,32,0.08)]"])},[a.createElementVNode("div",fE,[a.createElementVNode("span",pE,[a.renderSlot(r.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(r.title),1)])]),a.createVNode(a.unref(D1),{ref:r.title,modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=i=>t.value=i),disabled:r.disabled},null,8,["modelValue","disabled"])]),a.unref(n).default?a.withDirectives((a.openBlock(),a.createElementBlock("div",mE,[a.renderSlot(r.$slots,"default")],512)),[[a.vShow,t.value]]):a.createCommentVNode("",!0)],2))}}),vE={key:0,class:"app-card__icon float-right text-primary"},gE=a.defineComponent({__name:"CardIconSlot",props:{icon:{}},setup(e){const t=e,n=a.computed(()=>{var s;return typeof t.icon=="string"?!1:typeof((s=t.icon)==null?void 0:s.prefix)=="string"}),r=a.computed(()=>{var s,l;return typeof t.icon=="object"&&((l=(s=t.icon)==null?void 0:s.props)==null?void 0:l.icon)!==void 0}),o=a.computed(()=>n.value?a.h(zn,{icon:t.icon}):t.icon),i=a.computed(()=>n.value?o.value:typeof t.icon=="string"?"span":t.icon);return(s,l)=>s.$slots.default||s.icon?(a.openBlock(),a.createElementBlock("div",vE,[a.renderSlot(s.$slots,"default",{},()=>[o.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.value),{key:0,class:a.normalizeClass({"size-5":!n.value,"size-4":n.value}),"data-test-icon-component":"",innerHTML:n.value||r.value?void 0:o.value},null,8,["class","innerHTML"])):a.createCommentVNode("",!0)],!0)])):a.createCommentVNode("",!0)}}),yE=Ln(gE,[["__scopeId","data-v-bd7a2ba5"]]),bE={1:"stroke-1",2:"stroke-2",3:"stroke-3"},wE=a.defineComponent({__name:"CardAction",props:{item:{}},setup(e){const t=e,{navigationComponent:n}=_o(),r=a.ref(!1),o=a.computed(()=>{var f;return typeof t.item.icon=="string"?!1:typeof((f=t.item.icon)==null?void 0:f.prefix)=="string"||Array.isArray(t.item.icon)}),i=a.computed(()=>r.value?Ra:o.value?a.h(zn,{icon:t.item.icon}):t.item.icon),s=a.computed(()=>r.value||typeof t.item.icon!="string"),l=a.computed(()=>[s.value?"":"!h-6",bE[t.item.iconStroke??3]]),c=a.computed(()=>{var f,p;return typeof t.item.icon=="object"&&((p=(f=t.item.icon)==null?void 0:f.props)==null?void 0:p.icon)!==void 0}),d=a.computed(()=>o.value?i.value:typeof t.item.icon=="string"?"span":t.item.icon);async function u(f){var p,h,v;(p=t.item)!=null&&p.onClick&&(f.preventDefault(),r.value=!0,await Promise.resolve((v=(h=t.item)==null?void 0:h.onClick)==null?void 0:v.call(h)),r.value=!1)}return(f,p)=>{var h;return a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),{to:f.item.to,href:f.item.href,class:a.normalizeClass([{"flex-row-reverse":((h=f.item)==null?void 0:h.iconPosition)==="right"},"app-card__action ml-auto flex items-center justify-center font-bold text-zinc-900 transition-colors group-hover:text-primary"]),onClick:u},{default:a.withCtx(()=>{var v,y;return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(d.value),{class:a.normalizeClass([l.value,"size-4"]),size:r.value?"extra-small":void 0,"data-test-icon":"",innerHTML:o.value||c.value?void 0:i.value},null,8,["class","size","innerHTML"])),a.createElementVNode("span",{class:a.normalizeClass([{"pl-2":f.item.icon&&((v=f.item)==null?void 0:v.iconPosition)!=="right","pr-2":f.item.icon&&((y=f.item)==null?void 0:y.iconPosition)==="right"},"text-sm"]),"data-test-name":""},a.toDisplayString(f.item.name),3)]}),_:1},8,["to","href","class"])}}}),kE={key:1,class:"text-2xl font-bold text-zinc-900","data-test-title":""},_E={class:"text-base font-normal text-zinc-600","data-test-description":""},cp=a.defineComponent({__name:"AppCard",props:{title:{default:void 0},description:{default:void 0},actions:{default:void 0},icon:{default:void 0},bordered:{type:Boolean,default:!1},contentClasses:{default:void 0},hoverTransition:{type:Boolean,default:!1}},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,"cursor-pointer transition hover:drop-shadow-cardhighlight":s.actions&&s.actions.length>0||s.hoverTransition},"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.5 before:bg-primary"])},[o.value?(a.openBlock(),a.createBlock(yE,{key:0,icon:s.icon,class:a.normalizeClass({"mt-1.5":r.value}),"data-test-icon":""},{default:a.withCtx(()=>[a.renderSlot(s.$slots,"icon")]),_:3},8,["icon","class"])):a.createCommentVNode("",!0),r.value?(a.openBlock(),a.createElementBlock("h3",kE,[a.renderSlot(s.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(s.title),1)]),a.renderSlot(s.$slots,"description",{},()=>[a.createElementVNode("p",_E,a.toDisplayString(s.description),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,c=>(a.openBlock(),a.createElementBlock("div",{key:c.name,class:"mt-2 flex w-full"},[a.createVNode(wE,{item:c},null,8,["item"])]))),128))])],2))}}),CE={class:"flex min-h-screen px-4 pb-20 pt-4 text-center md:items-center md:justify-center"},SE={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"},EE={class:"rounded-2xl bg-zinc-100 drop-shadow-card"},xE={class:"flex flex-col items-center space-y-5 p-8"},TE={key:0,class:"mx-auto flex size-12 shrink-0 items-center justify-center rounded-full"},PE={class:"mt-3"},IE={class:"mt-3 w-full text-base text-zinc-700","data-test-confirm-content":""},AE=["innerHTML"],ME={key:1},OE={class:"ml-auto flex flex-row-reverse items-center gap-8 rounded-b-2xl bg-white p-8"},R1=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:{default:void 0},html:{type:Boolean,default:!1},animate:{type:Boolean,default:!0},extendedIconDomClasses:{default:""},onConfirm:{},onCancel:{}},emits:["close","confirmed"],setup(e,{emit:t}){const n=e,r=t,o=a.ref(!0),i=a.ref(!1),s=a.ref(!1),{expanded:l}=_o(),c=a.computed(()=>!n.icon&&n.type==="error"?lp:!n.icon&&n.type==="success"?sp:n.icon),d=a.computed(()=>n.animate?ft.TransitionRoot:"div"),u=a.computed(()=>n.animate?ft.TransitionChild:"div"),f=a.computed(()=>[n.type==="error"?"text-red-500":"text-green-500",n.extendedIconDomClasses]);async function p(h){h&&typeof n.onConfirm=="function"?(i.value=!0,await Promise.resolve(n.onConfirm())):!h&&typeof n.onCancel=="function"&&(s.value=!0,await Promise.resolve(n.onCancel())),o.value=!1,r("close",h)}return(h,v)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(d.value),{show:o.value,as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(ft.Dialog),{open:h.animate?void 0:o.value,class:a.normalizeClass([{"md:!left-72":a.unref(l)},"app-confirm-dialog fixed inset-0 top-16 z-50 overflow-y-auto transition-all duration-500 md:left-20 md:top-0"]),as:"div","data-test-confirm-dialog":"",onClose:v[2]||(v[2]=()=>h.preventBackdropClose?void 0:p(!1))},{default:a.withCtx(()=>[a.createElementVNode("div",CE,[h.withBackdrop?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.value),{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(ft.DialogOverlay),{class:a.normalizeClass([{"md:!left-72":a.unref(l)},"app-confirm-dialog-overlay fixed inset-0 top-16 z-40 rounded-l-2xl bg-zinc-800/50 transition-all duration-500 md:left-20 md:top-0"])},null,8,["class"])]),_:1})):a.createCommentVNode("",!0),v[3]||(v[3]=a.createElementVNode("span",{class:"hidden md:inline-block md:h-screen md:align-middle","aria-hidden":"true"}," ​ ",-1)),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.value),{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",SE,[a.createElementVNode("div",EE,[a.createElementVNode("div",xE,[c.value?(a.openBlock(),a.createElementBlock("div",TE,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.value),{class:a.normalizeClass([f.value,"size-full"]),"data-test-confirm-icon":""},null,8,["class"]))])):a.createCommentVNode("",!0),a.createElementVNode("div",PE,[a.createVNode(a.unref(ft.DialogTitle),{as:"h3",class:"text-2xl font-bold leading-6 text-zinc-900"},{default:a.withCtx(()=>[a.renderSlot(h.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(h.title),1)])]),_:3}),a.createElementVNode("div",IE,[a.renderSlot(h.$slots,"default",{},()=>[h.html?(a.openBlock(),a.createElementBlock("div",{key:0,class:"app-confirm-html-content",innerHTML:h.content},null,8,AE)):(a.openBlock(),a.createElementBlock("p",ME,a.toDisplayString(h.content),1))])])])]),a.createElementVNode("div",OE,[h.confirmButtonText?(a.openBlock(),a.createBlock(a.unref(lr),{key:0,disabled:i.value||s.value,loading:i.value,type:"button","color-type":"primary",class:"justify-center",onClick:v[0]||(v[0]=()=>p(!0))},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(h.confirmButtonText),1)]),_:2},[h.confirmButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h.confirmButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,h.confirmButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h.confirmButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0),h.cancelButtonText?(a.openBlock(),a.createBlock(a.unref(lr),{key:1,disabled:i.value||s.value,loading:s.value,"color-type":"plain",class:"justify-center text-zinc-900",onClick:v[1]||(v[1]=()=>p(!1))},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(h.cancelButtonText),1)]),_:2},[h.cancelButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h.cancelButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,h.cancelButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h.cancelButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0)])])])]),_:3}))])]),_:3},8,["open","class"])]),_:3},8,["show"]))}}),NE={class:"flex min-h-screen px-4 pb-20 pt-4 text-center md:items-center md:justify-center"},BE={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"},DE={class:"rounded-2xl bg-white p-10 drop-shadow-card"},RE={class:"flex flex-col items-center space-y-5"},LE={key:0,class:"mx-auto flex size-12 shrink-0 items-center justify-center rounded-full"},$E={class:"mt-3 text-center"},zE={class:"mt-3 w-full px-10 text-center text-sm text-zinc-600","data-test-error-content":""},VE=["innerHTML"],FE={key:1},jE={class:"mx-auto flex w-fit flex-col space-y-4 pt-10"},L1=a.defineComponent({__name:"AppError",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:{default:void 0},html:{type:Boolean,default:!1},extendedIconDomClasses:{default:""},onConfirm:{},onCancel:{}},emits:["close","confirmed"],setup(e,{emit:t}){const n=e,r=t,o=a.ref(!0),i=a.ref(!1),s=a.ref(!1),l=a.computed(()=>!n.icon&&n.type==="error"?lp:!n.icon&&n.type==="success"?sp:n.icon),c=a.computed(()=>[n.type==="error"?"text-red-500":"text-green-500",n.extendedIconDomClasses]);async function d(u){u&&typeof n.onConfirm=="function"?(i.value=!0,await Promise.resolve(n.onConfirm())):!u&&typeof n.onCancel=="function"&&(s.value=!0,await Promise.resolve(n.onCancel())),o.value=!1,r("close",u)}return(u,f)=>(a.openBlock(),a.createBlock(a.unref(ft.TransitionRoot),{show:o.value,as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(ft.Dialog),{as:"div",class:"app-error-dialog fixed inset-0 top-16 z-50 overflow-y-auto md:left-20 md:top-0","data-test-error-dialog":"",onClose:f[2]||(f[2]=()=>u.preventBackdropClose?void 0:d(!1))},{default:a.withCtx(()=>[a.createElementVNode("div",NE,[u.withBackdrop?(a.openBlock(),a.createBlock(a.unref(ft.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(ft.DialogOverlay),{class:"app-error-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),f[3]||(f[3]=a.createElementVNode("span",{class:"hidden md:inline-block md:h-screen md:align-middle","aria-hidden":"true"}," ​ ",-1)),a.createVNode(a.unref(ft.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",BE,[a.createElementVNode("div",DE,[a.createElementVNode("div",RE,[l.value?(a.openBlock(),a.createElementBlock("div",LE,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(l.value),{class:a.normalizeClass([c.value,"size-full"]),"data-test-error-icon":""},null,8,["class"]))])):a.createCommentVNode("",!0),a.createElementVNode("div",$E,[a.createVNode(a.unref(ft.DialogTitle),{as:"h3",class:"text-2xl font-bold leading-6 text-zinc-900"},{default:a.withCtx(()=>[a.renderSlot(u.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(u.title),1)])]),_:3}),a.createElementVNode("div",zE,[a.renderSlot(u.$slots,"default",{},()=>[u.html?(a.openBlock(),a.createElementBlock("div",{key:0,class:"app-error-html-content",innerHTML:u.content},null,8,VE)):(a.openBlock(),a.createElementBlock("p",FE,a.toDisplayString(u.content),1))])])])]),a.createElementVNode("div",jE,[u.confirmButtonText?(a.openBlock(),a.createBlock(a.unref(lr),{key:0,bordered:!0,disabled:i.value||s.value,loading:i.value,type:"button","color-type":"primary",class:"justify-center",onClick:f[0]||(f[0]=()=>d(!0))},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(u.confirmButtonText),1)]),_:2},[u.confirmButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.confirmButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,u.confirmButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.confirmButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0),u.cancelButtonText?(a.openBlock(),a.createBlock(a.unref(lr),{key:1,disabled:i.value||s.value,loading:s.value,"color-type":"plain",class:"justify-center",onClick:f[1]||(f[1]=()=>d(!1))},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(u.cancelButtonText),1)]),_:2},[u.cancelButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.cancelButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,u.cancelButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.cancelButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0)])])])]),_:3})])]),_:3})]),_:3},8,["show"]))}});function Yh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yh(Object(n),!0).forEach(function(r){yn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HE(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UE(e){var t=HE(e,"string");return typeof t=="symbol"?t:t+""}function Ql(e){"@babel/helpers - typeof";return Ql=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},Ql(e)}function yn(e,t,n){return t=UE(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WE(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function qE(e,t){if(e==null)return{};var n=WE(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fd(e){return YE(e)||GE(e)||XE(e)||KE()}function YE(e){if(Array.isArray(e))return jd(e)}function GE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function XE(e,t){if(e){if(typeof e=="string")return jd(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 jd(e,t)}}function jd(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 KE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
606
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var JE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},$1={exports:{}};(function(e){(function(t){var n=function(g,S,_){if(!d(S)||f(S)||p(S)||h(S)||c(S))return S;var b,T=0,E=0;if(u(S))for(b=[],E=S.length;T<E;T++)b.push(n(g,S[T],_));else{b={};for(var x in S)Object.prototype.hasOwnProperty.call(S,x)&&(b[g(x,_)]=n(g,S[x],_))}return b},r=function(g,S){S=S||{};var _=S.separator||"_",b=S.split||/(?=[A-Z])/;return g.split(b).join(_)},o=function(g){return v(g)?g:(g=g.replace(/[\-_\s]+(.)?/g,function(S,_){return _?_.toUpperCase():""}),g.substr(0,1).toLowerCase()+g.substr(1))},i=function(g){var S=o(g);return S.substr(0,1).toUpperCase()+S.substr(1)},s=function(g,S){return r(g,S).toLowerCase()},l=Object.prototype.toString,c=function(g){return typeof g=="function"},d=function(g){return g===Object(g)},u=function(g){return l.call(g)=="[object Array]"},f=function(g){return l.call(g)=="[object Date]"},p=function(g){return l.call(g)=="[object RegExp]"},h=function(g){return l.call(g)=="[object Boolean]"},v=function(g){return g=g-0,g===g},y=function(g,S){var _=S&&"process"in S?S.process:S;return typeof _!="function"?g:function(b,T){return _(b,g,T)}},C={camelize:o,decamelize:s,pascalize:i,depascalize:s,camelizeKeys:function(g,S){return n(y(o,S),g)},decamelizeKeys:function(g,S){return n(y(s,S),g,S)},pascalizeKeys:function(g,S){return n(y(i,S),g)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=C:t.humps=C})(JE)})($1);var QE=$1.exports,ZE=["class","style"];function ex(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),o=QE.camelize(n.slice(0,r)),i=n.slice(r+1).trim();return t[o]=i,t},{})}function tx(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function up(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var r=(e.children||[]).map(function(c){return up(c)}),o=Object.keys(e.attributes||{}).reduce(function(c,d){var u=e.attributes[d];switch(d){case"class":c.class=tx(u);break;case"style":c.style=ex(u);break;default:c.attrs[d]=u}return c},{attrs:{},class:{},style:{}});n.class;var i=n.style,s=i===void 0?{}:i,l=qE(n,ZE);return a.h(e.tag,tr(tr(tr({},t),{},{class:o.class,style:tr(tr({},o.style),s)},o.attrs),l),r)}var z1=!1;try{z1=process.env.NODE_ENV==="production"}catch{}function nx(){if(!z1&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function ns(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?yn({},e,t):{}}function rx(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},yn(yn(yn(yn(yn(yn(yn(yn(yn(yn(t,"fa-".concat(e.size),e.size!==null),"fa-rotate-".concat(e.rotation),e.rotation!==null),"fa-pull-".concat(e.pull),e.pull!==null),"fa-swap-opacity",e.swapOpacity),"fa-bounce",e.bounce),"fa-shake",e.shake),"fa-beat",e.beat),"fa-fade",e.fade),"fa-beat-fade",e.beatFade),"fa-flash",e.flash),yn(yn(t,"fa-spin-pulse",e.spinPulse),"fa-spin-reverse",e.spinReverse));return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}function Gh(e){if(e&&Ql(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Kl.icon)return Kl.icon(e);if(e===null)return null;if(Ql(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var zn=a.defineComponent({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(t,n){var r=n.attrs,o=a.computed(function(){return Gh(t.icon)}),i=a.computed(function(){return ns("classes",rx(t))}),s=a.computed(function(){return ns("transform",typeof t.transform=="string"?Kl.transform(t.transform):t.transform)}),l=a.computed(function(){return ns("mask",Gh(t.mask))}),c=a.computed(function(){return v6(o.value,tr(tr(tr(tr({},i.value),s.value),l.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});a.watch(c,function(u){if(!u)return nx("Could not find one or more icon(s)",o.value,l.value)},{immediate:!0});var d=a.computed(function(){return c.value?up(c.value.abstract[0],{},r):null});return function(){return d.value}}});a.defineComponent({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(t,n){var r=n.slots,o=A1.familyPrefix,i=a.computed(function(){return["".concat(o,"-layers")].concat(Fd(t.fixedWidth?["".concat(o,"-fw")]:[]))});return function(){return a.h("div",{class:i.value},r.default?r.default():[])}}});a.defineComponent({name:"FontAwesomeLayersText",props:{value:{type:[String,Number],default:""},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(t){return["bottom-left","bottom-right","top-left","top-right"].indexOf(t)>-1}}},setup:function(t,n){var r=n.attrs,o=A1.familyPrefix,i=a.computed(function(){return ns("classes",[].concat(Fd(t.counter?["".concat(o,"-layers-counter")]:[]),Fd(t.position?["".concat(o,"-layers-").concat(t.position)]:[])))}),s=a.computed(function(){return ns("transform",typeof t.transform=="string"?Kl.transform(t.transform):t.transform)}),l=a.computed(function(){var d=g6(t.value.toString(),tr(tr({},s.value),i.value)),u=d.abstract;return t.counter&&(u[0].attributes.class=u[0].attributes.class.replace("fa-layers-text","")),u[0]}),c=a.computed(function(){return up(l.value,{},r)});return function(){return c.value}}});const ax=["disabled","accept","name"],ox={key:0,class:"flex flex-col items-center px-6 py-10 text-white"},ix={class:"mb-2 mt-4 text-xl font-bold"},sx={class:"text-sm"},lx=["src"],cx=a.defineComponent({__name:"AppImageDropzone",props:{title:{default:"Drag & drop"},description:{default:"of selecteer een afbeelding van je computer"},disabled:{type:Boolean,default:!1},existingFileUrl:{},dataTypes:{default:()=>["image/png","image/gif","image/jpeg"]},name:{default:""}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=a.ref(null),i=a.ref(null),s=a.ref(),l=a.ref(),{isOverDropZone:c}=mo.useDropZone(l,{onDrop:d,dataTypes:n.dataTypes});a.watch(o,h=>{r("update:modelValue",h)}),a.onMounted(()=>{n.existingFileUrl&&(i.value=n.existingFileUrl,o.value=new File([],n.existingFileUrl.split("/").pop()??""))});function d(h){if(h&&!n.disabled){const v=h[0];o.value=v,i.value=URL.createObjectURL(v)}}function u(h){var C;const y=(C=h.target.files)==null?void 0:C[0];y&&n.dataTypes.includes(y.type)&&(o.value=y,i.value=URL.createObjectURL(y))}function f(){o.value=null,i.value=null,s.value.value=""}function p(){var h;(h=s.value)==null||h.click()}return(h,v)=>{var y,C;return a.openBlock(),a.createElementBlock("div",{ref_key:"dropZoneRef",ref:l,class:a.normalizeClass([{"cursor-pointer":!h.disabled,"cursor-not-allowed":h.disabled,"bg-zinc-700":a.unref(c)},"group relative flex size-60 items-center justify-center rounded-2xl bg-secondary text-center drop-shadow-card"]),onClick:p},[a.createElementVNode("input",{ref_key:"fileInput",ref:s,disabled:h.disabled,accept:h.dataTypes.join(", "),name:h.name,type:"file",class:"hidden",onChange:u},null,40,ax),o.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",ox,[a.createVNode(a.unref(zn),{icon:(y=a.unref(Vn).far)==null?void 0:y["arrow-up-to-line"],class:"size-10"},null,8,["icon"]),a.createElementVNode("h3",ix,a.toDisplayString(h.title),1),a.createElementVNode("p",sx,a.toDisplayString(h.description),1)])),i.value?(a.openBlock(),a.createElementBlock("img",{key:1,src:i.value,alt:"Preview",class:"size-full rounded-2xl object-cover"},null,8,lx)):a.createCommentVNode("",!0),o.value&&!h.disabled?(a.openBlock(),a.createElementBlock("span",{key:2,class:"absolute inset-0 hidden size-full flex-col items-center justify-center rounded-2xl bg-secondary p-1 text-white group-hover:flex",onClick:a.withModifiers(f,["stop"])},[a.createVNode(a.unref(zn),{icon:(C=a.unref(Vn).far)==null?void 0:C.trash,class:"size-10"},null,8,["icon"]),v[0]||(v[0]=a.createElementVNode("h3",{class:"mb-2 mt-4 text-xl font-bold"}," Verwijderen ",-1)),v[1]||(v[1]=a.createElementVNode("p",{class:"text-sm"}," Klik hier om de afbeelding te verwijderen ",-1))])):a.createCommentVNode("",!0)],2)}}}),ux={class:"flex min-h-screen items-center justify-center text-center"},dx={class:"rounded-2xl bg-zinc-100 drop-shadow-card"},fx={class:"flex flex-col items-center space-y-5"},px={class:"w-full text-center"},mx={key:0,class:"w-full rounded-b-xl bg-white p-8"},hx={class:"ml-auto flex w-fit flex-row-reverse items-center"},V1=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},contentClasses:{default:""},modalClasses:{default:""},content:{default:""},properties:{default:void 0},onSubmit:{},onCancel:{}},emits:["open","close","cancel","submit"],setup(e,{expose:t,emit:n}){const r=e,o=n,i=a.ref(!1),s=a.ref(),l=a.ref(!1),c=a.ref(!1),d=a.ref(),u=a.computed(()=>r.preventBackdropClose||r.preventBackdropCloseOnLoading&&(l.value||c.value));async function f(){i.value=!0,o("open")}async function p(){c.value=!0,i.value=!1,o("close",{animation:async()=>new Promise(y=>setTimeout(y,350))}),c.value=!1}async function h(){var g,S,_;const y=await((S=(g=d.value)==null?void 0:g.cancel)==null?void 0:S.call(g)),C=await((_=r.onCancel)==null?void 0:_.call(r));r.onCancel===void 0&&o("cancel"),!(y===!1||C===!1)&&await p()}async function v(){var C,g,S;l.value=!0;const y=new FormData(s.value);await((g=(C=d.value)==null?void 0:C.submit)==null?void 0:g.call(C,y)),await((S=r.onSubmit)==null?void 0:S.call(r,y)),l.value=!1}return t({isOpen:i,open:f,close:p,submit:v}),(y,C)=>(a.openBlock(),a.createBlock(a.unref(ft.TransitionRoot),{show:i.value,as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(ft.Dialog),{as:"div",class:"app-modal-dialog fixed inset-0 z-[250] overflow-y-auto","data-test-modal-dialog":"",onClose:C[0]||(C[0]=()=>u.value?void 0:p())},{default:a.withCtx(()=>[a.createElementVNode("div",ux,[y.withBackdrop?(a.openBlock(),a.createBlock(a.unref(ft.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(ft.DialogOverlay),{class:"fixed inset-0 z-40 bg-black/20 backdrop-blur-sm transition-opacity"})]),_:1})):a.createCommentVNode("",!0),C[1]||(C[1]=a.createElementVNode("span",{class:"inline-block h-screen align-middle","aria-hidden":"true"}," ​ ",-1)),a.createVNode(a.unref(ft.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",{class:a.normalizeClass(`relative z-50 mx-auto inline-block w-full max-w-2xl overflow-hidden rounded-2xl p-4
607
+ text-left align-middle transition-all md:max-w-[70vw] ${y.modalClasses}`)},[a.createElementVNode("div",dx,[a.createElementVNode("div",fx,[a.createElementVNode("div",px,[a.createVNode(a.unref(ft.DialogTitle),{as:"h3",class:"flex justify-between px-8 pt-8 text-2xl font-bold leading-6 text-zinc-900"},{default:a.withCtx(()=>{var g;return[a.renderSlot(y.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(y.title),1)]),a.createVNode(a.unref(zn),{icon:(g=a.unref(Vn).far)==null?void 0:g.xmark,class:"size-5 cursor-pointer",onClick:p},null,8,["icon"])]}),_:3}),a.createElementVNode("div",{class:a.normalizeClass(`my-6 px-8 w-full text-center text-sm text-zinc-600 ${y.contentClasses}`),"data-test-modal-content":""},[a.createElementVNode("form",{ref_key:"form",ref:s},[a.renderSlot(y.$slots,"default",{},()=>[typeof y.content=="string"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(y.content),1)],64)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(y.content),a.mergeProps({key:1,ref_key:"contentRef",ref:d},y.properties,{onClose:p,onSubmit:v,onCancel:h}),null,16))])],512)],2)])]),y.withFooter?(a.openBlock(),a.createElementBlock("div",mx,[a.createElementVNode("div",hx,[y.submitButtonText?(a.openBlock(),a.createBlock(a.unref(lr),{key:0,disabled:l.value||c.value,loading:l.value,type:"button","color-type":"primary",class:"ml-6 justify-center",onClick:v},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(y.submitButtonText),1)]),_:2},[y.submitButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(y.submitButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,y.submitButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(y.submitButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0),y.cancelButtonText?(a.openBlock(),a.createBlock(a.unref(lr),{key:1,disabled:l.value||c.value,loading:c.value,"color-type":"plain",class:"justify-center !text-zinc-900",onClick:h},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(y.cancelButtonText),1)]),_:2},[y.cancelButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(y.cancelButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,y.cancelButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(y.cancelButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0)])],2)]),_:3})])]),_:3})]),_:3},8,["show"]))}}),vx={key:0,class:"flex w-full","data-test-item":""},F1=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||!!t.component);return(i,s)=>o.value||!o.value&&!i.hideEmptyValues?(a.openBlock(),a.createElementBlock("div",vx,[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||i.$slots.default?(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)}}),gx={class:"flex flex-col gap-1.5"},yx=a.defineComponent({__name:"AppDefinitionList",props:{items:{default:void 0},hideEmptyValues:{type:Boolean,default:!1}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",gx,[a.renderSlot(t.$slots,"default",{},()=>[t.items?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(t.items,(r,o)=>(a.openBlock(),a.createBlock(F1,{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)):a.createCommentVNode("",!0)])]))}}),bx=a.defineComponent({__name:"AppDisclosure",props:{defaultOpen:{type:Boolean,default:!1}},setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.unref(ft.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"]))}}),wx={class:"ml-auto pl-2"},kx=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(ft.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",wx,[a.renderSlot(r.$slots,"icon",{open:i},()=>[a.createVNode(a.unref(y2),{class:a.normalizeClass([{"rotate-180":i},"size-5 text-zinc-900 transition-transform"])},null,8,["class"])])])]),_:3},512))}}),_x=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(ft.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}))}}),Kt=[];for(let e=0;e<256;++e)Kt.push((e+256).toString(16).slice(1));function Cx(e,t=0){return(Kt[e[t+0]]+Kt[e[t+1]]+Kt[e[t+2]]+Kt[e[t+3]]+"-"+Kt[e[t+4]]+Kt[e[t+5]]+"-"+Kt[e[t+6]]+Kt[e[t+7]]+"-"+Kt[e[t+8]]+Kt[e[t+9]]+"-"+Kt[e[t+10]]+Kt[e[t+11]]+Kt[e[t+12]]+Kt[e[t+13]]+Kt[e[t+14]]+Kt[e[t+15]]).toLowerCase()}let Lu;const Sx=new Uint8Array(16);function Ex(){if(!Lu){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Lu=crypto.getRandomValues.bind(crypto)}return Lu(Sx)}const xx=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Xh={randomUUID:xx};function Tx(e,t,n){var o;if(Xh.randomUUID&&!t&&!e)return Xh.randomUUID();e=e||{};const r=e.random??((o=e.rng)==null?void 0:o.call(e))??Ex();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Cx(r)}const Px={class:"app-input__icon pointer-events-none absolute z-10 mt-px h-5"},Ix=a.defineComponent({__name:"InputIconSlot",props:{loading:{type:Boolean}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("span",Px,[t.loading?(a.openBlock(),a.createBlock(Ra,{key:0,size:"small",class:"w-4"})):a.renderSlot(t.$slots,"default",{key:1},void 0,!0)]))}}),Kh=Ln(Ix,[["__scopeId","data-v-b64a985e"]]);function Go(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function wr(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):s;o=e.formattingValues[l]||e.formattingValues[s]}else{const s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}function kr(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?Mx(l,f=>f.test(s)):Ax(l,f=>f.test(s));let d;d=e.valueCallback?e.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;const u=t.slice(s.length);return{value:d,rest:u}}}function Ax(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Mx(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function j1(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const l=t.slice(o.length);return{value:s,rest:l}}}const H1=6048e5,Ox=864e5,Nx=6e4,U1=36e5,Bx=1e3,Jh=Symbol.for("constructDateFrom");function lt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Jh in e?e[Jh](t):e instanceof Date?new e.constructor(t):new Date(t)}function Vs(e,...t){const n=lt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}let Dx={};function Co(){return Dx}function Re(e,t){return lt(t||e,e)}function cr(e,t){var l,c,d,u;const n=Co(),r=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(d=n.locale)==null?void 0:d.options)==null?void 0:u.weekStartsOn)??0,o=Re(e,t==null?void 0:t.in),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}const Rx={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"}},Lx=(e,t,n)=>{let r;const o=Rx[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},$x={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},zx=(e,t,n,r)=>$x[e],Vx={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Fx={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},jx={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"]},Hx={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"]},Ux={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"}},Wx={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"}},qx=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Yx={ordinalNumber:qx,era:wr({values:Vx,defaultWidth:"wide"}),quarter:wr({values:Fx,defaultWidth:"wide",argumentCallback:e=>e-1}),month:wr({values:jx,defaultWidth:"wide"}),day:wr({values:Hx,defaultWidth:"wide"}),dayPeriod:wr({values:Ux,defaultWidth:"wide",formattingValues:Wx,defaultFormattingWidth:"wide"})},Gx=/^(\d+)(th|st|nd|rd)?/i,Xx=/\d+/i,Kx={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},Jx={any:[/^b/i,/^(a|c)/i]},Qx={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Zx={any:[/1/i,/2/i,/3/i,/4/i]},e5={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},t5={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]},n5={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},r5={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]},a5={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},o5={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}},i5={ordinalNumber:j1({matchPattern:Gx,parsePattern:Xx,valueCallback:e=>parseInt(e,10)}),era:kr({matchPatterns:Kx,defaultMatchWidth:"wide",parsePatterns:Jx,defaultParseWidth:"any"}),quarter:kr({matchPatterns:Qx,defaultMatchWidth:"wide",parsePatterns:Zx,defaultParseWidth:"any",valueCallback:e=>e+1}),month:kr({matchPatterns:e5,defaultMatchWidth:"wide",parsePatterns:t5,defaultParseWidth:"any"}),day:kr({matchPatterns:n5,defaultMatchWidth:"wide",parsePatterns:r5,defaultParseWidth:"any"}),dayPeriod:kr({matchPatterns:a5,defaultMatchWidth:"any",parsePatterns:o5,defaultParseWidth:"any"})},s5={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},l5={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},c5={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},u5={date:Go({formats:s5,defaultWidth:"full"}),time:Go({formats:l5,defaultWidth:"full"}),dateTime:Go({formats:c5,defaultWidth:"full"})},W1={code:"en-US",formatDistance:Lx,formatLong:u5,formatRelative:zx,localize:Yx,match:i5,options:{weekStartsOn:0,firstWeekContainsDate:1}},d5={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"}},f5=(e,t,n)=>{let r;const o=d5[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"over "+r:r+" geleden":r},p5={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},m5={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},h5={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},v5={date:Go({formats:p5,defaultWidth:"full"}),time:Go({formats:m5,defaultWidth:"full"}),dateTime:Go({formats:h5,defaultWidth:"full"})},g5={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},y5=(e,t,n,r)=>g5[e],b5={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},w5={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},k5={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"]},_5={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"]},C5={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"}},S5=(e,t)=>Number(e)+"e",E5={ordinalNumber:S5,era:wr({values:b5,defaultWidth:"wide"}),quarter:wr({values:w5,defaultWidth:"wide",argumentCallback:e=>e-1}),month:wr({values:k5,defaultWidth:"wide"}),day:wr({values:_5,defaultWidth:"wide"}),dayPeriod:wr({values:C5,defaultWidth:"wide"})},x5=/^(\d+)e?/i,T5=/\d+/i,P5={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},I5={any:[/^v/,/^n/]},A5={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},M5={any:[/1/i,/2/i,/3/i,/4/i]},O5={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},N5={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]},B5={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},D5={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]},R5={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},L5={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}},$5={ordinalNumber:j1({matchPattern:x5,parsePattern:T5,valueCallback:e=>parseInt(e,10)}),era:kr({matchPatterns:P5,defaultMatchWidth:"wide",parsePatterns:I5,defaultParseWidth:"any"}),quarter:kr({matchPatterns:A5,defaultMatchWidth:"wide",parsePatterns:M5,defaultParseWidth:"any",valueCallback:e=>e+1}),month:kr({matchPatterns:O5,defaultMatchWidth:"wide",parsePatterns:N5,defaultParseWidth:"any"}),day:kr({matchPatterns:B5,defaultMatchWidth:"wide",parsePatterns:D5,defaultParseWidth:"any"}),dayPeriod:kr({matchPatterns:R5,defaultMatchWidth:"any",parsePatterns:L5,defaultParseWidth:"any"})},z5={code:"nl",formatDistance:f5,formatLong:v5,formatRelative:y5,localize:E5,match:$5,options:{weekStartsOn:1,firstWeekContainsDate:4}},V5=["date","datetime","time","year","month","week"],F5={time:"clock",week:"calendar",date:"calendar",year:"calendar",month:"calendar",datetime:"calendar"};function eo(e){return V5.includes(e)}function j5(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 H5(e,t){return{locale:"nl",uid:t,autoApply:!0,clearable:!1,formatLocale:z5,format:j5(e),timePicker:e==="time",weekPicker:e==="week",yearPicker:e==="year",monthPicker:e==="month",enableTimePicker:["time","datetime"].includes(e),teleport:!0}}const U5=["richText"];function q1(e){return U5.includes(e)}function W5(e){return{apiKey:e,init:{plugins:"link",toolbar:"bold italic underline | link",link_title:!1,theme:"silver",menubar:!1,statusbar:!1,resize:!0,language:"nl",language_url:"/src/modules/plugins/TinyMCE/lang/nl.js",valid_elements:"p,b,strong,i,em,u,a[href|target],span[style|text-decoration=underline]",content_style:"html, body { height: calc(100% - 10px); }",setup:t=>{t.editorManager.IconManager.add("default",{icons:{bold:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 384 512"><path d="M0 56C0 42.7 10.7 32 24 32l48 0 16 0 124 0c68.5 0 124 55.5 124 124c0 34.7-14.3 66.2-37.3 88.7C339.7 264.9 368 307.1 368 356c0 68.5-55.5 124-124 124L88 480l-16 0-48 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-176L48 80 24 80C10.7 80 0 69.3 0 56zM212 232c42 0 76-34 76-76s-34-76-76-76L96 80l0 152 116 0zM96 280l0 152 148 0c42 0 76-34 76-76s-34-76-76-76l-32 0L96 280z"/></svg>',underline:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 448 512"><path d="M16 56c0-13.3 10.7-24 24-24l96 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-24 0 0 144c0 61.9 50.1 112 112 112s112-50.1 112-112l0-144-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l96 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-24 0 0 144c0 88.4-71.6 160-160 160s-160-71.6-160-160L64 80 40 80C26.7 80 16 69.3 16 56zM0 456c0-13.3 10.7-24 24-24l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 480c-13.3 0-24-10.7-24-24z"/></svg>',italic:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 384 512"><path d="M128 56c0-13.3 10.7-24 24-24l208 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-68.7 0L144.7 432l87.3 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 480c-13.3 0-24-10.7-24-24s10.7-24 24-24l68.7 0L239.3 80 152 80c-13.3 0-24-10.7-24-24z"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 640 512"><path d="M580.3 267.2c56.2-56.2 56.2-147.3 0-203.5C526.8 10.2 440.9 7.3 383.9 57.2l-6.1 5.4c-10 8.7-11 23.9-2.3 33.9s23.9 11 33.9 2.3l6.1-5.4c38-33.2 95.2-31.3 130.9 4.4c37.4 37.4 37.4 98.1 0 135.6L433.1 346.6c-37.4 37.4-98.2 37.4-135.6 0c-35.7-35.7-37.6-92.9-4.4-130.9l4.7-5.4c8.7-10 7.7-25.1-2.3-33.9s-25.1-7.7-33.9 2.3l-4.7 5.4c-49.8 57-46.9 142.9 6.6 196.4c56.2 56.2 147.3 56.2 203.5 0L580.3 267.2zM59.7 244.8C3.5 301 3.5 392.1 59.7 448.2c53.6 53.6 139.5 56.4 196.5 6.5l6.1-5.4c10-8.7 11-23.9 2.3-33.9s-23.9-11-33.9-2.3l-6.1 5.4c-38 33.2-95.2 31.3-130.9-4.4c-37.4-37.4-37.4-98.1 0-135.6L207 165.4c37.4-37.4 98.1-37.4 135.6 0c35.7 35.7 37.6 92.9 4.4 130.9l-5.4 6.1c-8.7 10-7.7 25.1 2.3 33.9s25.1 7.7 33.9-2.3l5.4-6.1c49.9-57 47-142.9-6.5-196.5c-56.2-56.2-147.3-56.2-203.5 0L59.7 244.8z"/></svg>',"chevron-left":'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 320 512"><path d="M15 239c-9.4 9.4-9.4 24.6 0 33.9L207 465c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L65.9 256 241 81c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0L15 239z"/></svg>',"chevron-right":'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 320 512"><path d="M305 239c9.4 9.4 9.4 24.6 0 33.9L113 465c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l175-175L79 81c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L305 239z"/></svg>',"chevron-up":'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 512 512"><path d="M239 111c9.4-9.4 24.6-9.4 33.9 0L465 303c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-175-175L81 337c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 111z"/></svg>',"chevron-down":'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 512 512"><path d="M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"/></svg>',close:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 384 512"><path d="M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"/></svg>',checkmark:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 448 512"><path d="M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"/></svg>'}})}}}}const q5=["location"];function Zl(e){return q5.includes(e)}const Y5=["radio","checkbox"];function Dc(e){return Y5.includes(e)}const G5=`peer text-zinc-700 appearance-none h-5 w-5 border
608
608
  border-zinc-300 cursor-pointer checked:!border-[5px] checked:border-primary disabled:border-10
609
609
  disabled:!border-zinc-100 disabled:cursor-not-allowed focus:border-2 focus:border-primary
610
- focus-visible:outline-none`,X5="rounded bg-white checked:bg-primary";function K5(e,t){return{[G5]:!0,[X5]:e==="checkbox","rounded-full":e==="radio","!border-error":t}}function tr(e,t,n){const r=Re(e,n==null?void 0:n.in);return isNaN(t)?lt((n==null?void 0:n.in)||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function ir(e,t,n){const r=Re(e,n==null?void 0:n.in);if(isNaN(t))return lt(e,NaN);if(!t)return r;const o=r.getDate(),i=lt(e,r.getTime());i.setMonth(r.getMonth()+t+1,0);const s=i.getDate();return o>=s?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}function Y1(e,t,n){const{years:r=0,months:o=0,weeks:i=0,days:s=0,hours:l=0,minutes:c=0,seconds:d=0}=t,u=Re(e,n==null?void 0:n.in),f=o||r?ir(u,o+r*12):u,p=s||i?tr(f,s+i*7):f,h=c+l*60,y=(d+h*60)*1e3;return lt(e,+p+y)}function J5(e,t,n){return lt(e,+Re(e)+t)}function Q5(e,t,n){return J5(e,t*U1)}function ii(e,t){return cr(e,{...t,weekStartsOn:1})}function G1(e,t){const n=Re(e,t==null?void 0:t.in),r=n.getFullYear(),o=lt(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=ii(o),s=lt(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const l=ii(s);return n.getTime()>=i.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function ec(e){const t=Re(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Qh(e,t){const n=Re(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function X1(e,t,n){const[r,o]=Vs(n==null?void 0:n.in,e,t),i=Qh(r),s=Qh(o),l=+i-ec(i),c=+s-ec(s);return Math.round((l-c)/Ox)}function Z5(e,t){const n=G1(e,t),r=lt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ii(r)}function e8(e,t,n){return ir(e,t*3,n)}function dp(e,t,n){return ir(e,t*12,n)}function Zh(e,t){const n=+Re(e)-+Re(t);return n<0?-1:n>0?1:n}function K1(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function rs(e){return!(!K1(e)&&typeof e!="number"||isNaN(+Re(e)))}function ev(e,t){const n=Re(e,t==null?void 0:t.in);return Math.trunc(n.getMonth()/3)+1}function t8(e,t,n){const[r,o]=Vs(n==null?void 0:n.in,e,t);return r.getFullYear()-o.getFullYear()}function n8(e,t,n){const[r,o]=Vs(n==null?void 0:n.in,e,t),i=Zh(r,o),s=Math.abs(t8(r,o));r.setFullYear(1584),o.setFullYear(1584);const l=Zh(r,o)===-i,c=i*(s-+l);return c===0?0:c}function J1(e,t){const[n,r]=Vs(e,t.start,t.end);return{start:n,end:r}}function Q1(e,t){const{start:n,end:r}=J1(t==null?void 0:t.in,e);let o=+n>+r;const i=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0);let l=1;const c=[];for(;+s<=i;)c.push(lt(n,s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return o?c.reverse():c}function to(e,t){const n=Re(e,t==null?void 0:t.in),r=n.getMonth(),o=r-r%3;return n.setMonth(o,1),n.setHours(0,0,0,0),n}function r8(e,t){const{start:n,end:r}=J1(t==null?void 0:t.in,e);let o=+n>+r;const i=o?+to(n):+to(r);let s=to(o?r:n),l=1;const c=[];for(;+s<=i;)c.push(lt(n,s)),s=e8(s,l);return o?c.reverse():c}function a8(e,t){const n=Re(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Z1(e,t){const n=Re(e,t==null?void 0:t.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function _s(e,t){const n=Re(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function ey(e,t){var l,c,d,u;const n=Co(),r=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(d=n.locale)==null?void 0:d.options)==null?void 0:u.weekStartsOn)??0,o=Re(e,t==null?void 0:t.in),i=o.getDay(),s=(i<r?-7:0)+6-(i-r);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function tv(e,t){const n=Re(e,t==null?void 0:t.in),r=n.getMonth(),o=r-r%3+3;return n.setMonth(o,0),n.setHours(23,59,59,999),n}function o8(e,t){const n=Re(e,t==null?void 0:t.in);return X1(n,_s(n))+1}function fp(e,t){const n=Re(e,t==null?void 0:t.in),r=+ii(n)-+Z5(n);return Math.round(r/H1)+1}function pp(e,t){var u,f,p,h;const n=Re(e,t==null?void 0:t.in),r=n.getFullYear(),o=Co(),i=(t==null?void 0:t.firstWeekContainsDate)??((f=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??o.firstWeekContainsDate??((h=(p=o.locale)==null?void 0:p.options)==null?void 0:h.firstWeekContainsDate)??1,s=lt((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const l=cr(s,t),c=lt((t==null?void 0:t.in)||e,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const d=cr(c,t);return+n>=+l?r+1:+n>=+d?r:r-1}function i8(e,t){var l,c,d,u;const n=Co(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(d=n.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??1,o=pp(e,t),i=lt((t==null?void 0:t.in)||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),cr(i,t)}function mp(e,t){const n=Re(e,t==null?void 0:t.in),r=+cr(n,t)-+i8(n,t);return Math.round(r/H1)+1}function st(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const fa={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return st(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):st(n+1,2)},d(e,t){return st(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return st(e.getHours()%12||12,t.length)},H(e,t){return st(e.getHours(),t.length)},m(e,t){return st(e.getMinutes(),t.length)},s(e,t){return st(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return st(o,t.length)}},Bo={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},nv={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return fa.y(e,t)},Y:function(e,t,n,r){const o=pp(e,r),i=o>0?o:1-o;if(t==="YY"){const s=i%100;return st(s,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):st(i,t.length)},R:function(e,t){const n=G1(e);return st(n,t.length)},u:function(e,t){const n=e.getFullYear();return st(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return st(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return st(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return fa.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return st(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=mp(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):st(o,t.length)},I:function(e,t,n){const r=fp(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):st(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):fa.d(e,t)},D:function(e,t,n){const r=o8(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):st(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return st(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return st(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return st(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Bo.noon:r===0?o=Bo.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Bo.evening:r>=12?o=Bo.afternoon:r>=4?o=Bo.morning:o=Bo.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return fa.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):fa.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):st(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):st(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):fa.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):fa.s(e,t)},S:function(e,t){return fa.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return av(r);case"XXXX":case"XX":return Xa(r);case"XXXXX":case"XXX":default:return Xa(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return av(r);case"xxxx":case"xx":return Xa(r);case"xxxxx":case"xxx":default:return Xa(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+rv(r,":");case"OOOO":default:return"GMT"+Xa(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+rv(r,":");case"zzzz":default:return"GMT"+Xa(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return st(r,t.length)},T:function(e,t,n){return st(+e,t.length)}};function rv(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+st(i,2)}function av(e,t){return e%60===0?(e>0?"-":"+")+st(Math.abs(e)/60,2):Xa(e,t)}function Xa(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=st(Math.trunc(r/60),2),i=st(r%60,2);return n+o+t+i}const ov=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},ty=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},s8=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return ov(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",ov(r,t)).replace("{{time}}",ty(o,t))},Hd={p:ty,P:s8},l8=/^D+$/,c8=/^Y+$/,u8=["D","DD","YY","YYYY"];function ny(e){return l8.test(e)}function ry(e){return c8.test(e)}function Ud(e,t,n){const r=d8(e,t,n);if(console.warn(r),u8.includes(e))throw new RangeError(r)}function d8(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const f8=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,p8=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m8=/^'([^]*?)'?$/,h8=/''/g,v8=/[a-zA-Z]/;function Or(e,t,n){var u,f,p,h,v,y,C,g;const r=Co(),o=(n==null?void 0:n.locale)??r.locale??W1,i=(n==null?void 0:n.firstWeekContainsDate)??((f=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(p=r.locale)==null?void 0:p.options)==null?void 0:h.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((y=(v=n==null?void 0:n.locale)==null?void 0:v.options)==null?void 0:y.weekStartsOn)??r.weekStartsOn??((g=(C=r.locale)==null?void 0:C.options)==null?void 0:g.weekStartsOn)??0,l=Re(e,n==null?void 0:n.in);if(!rs(l))throw new RangeError("Invalid time value");let c=t.match(p8).map(S=>{const _=S[0];if(_==="p"||_==="P"){const b=Hd[_];return b(S,o.formatLong)}return S}).join("").match(f8).map(S=>{if(S==="''")return{isToken:!1,value:"'"};const _=S[0];if(_==="'")return{isToken:!1,value:g8(S)};if(nv[_])return{isToken:!0,value:S};if(_.match(v8))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_+"`");return{isToken:!1,value:S}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const d={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return c.map(S=>{if(!S.isToken)return S.value;const _=S.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&ry(_)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&ny(_))&&Ud(_,t,String(e));const b=nv[_[0]];return b(l,_,o.localize,d)}).join("")}function g8(e){const t=e.match(m8);return t?t[1].replace(h8,"'"):e}function y8(e,t){return Re(e,t==null?void 0:t.in).getDay()}function b8(e,t){const n=Re(e,t==null?void 0:t.in),r=n.getFullYear(),o=n.getMonth(),i=lt(n,0);return i.setFullYear(r,o+1,0),i.setHours(0,0,0,0),i.getDate()}function w8(){return Object.assign({},Co())}function ea(e,t){return Re(e,t==null?void 0:t.in).getHours()}function k8(e,t){const n=Re(e,t==null?void 0:t.in).getDay();return n===0?7:n}function Pa(e,t){return Re(e,t==null?void 0:t.in).getMinutes()}function Ke(e,t){return Re(e,t==null?void 0:t.in).getMonth()}function si(e){return Re(e).getSeconds()}function Ve(e,t){return Re(e,t==null?void 0:t.in).getFullYear()}function li(e,t){return+Re(e)>+Re(t)}function Cs(e,t){return+Re(e)<+Re(t)}function jo(e,t){return+Re(e)==+Re(t)}function _8(e,t){const n=C8(t)?new t(0):lt(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function C8(e){var t;return typeof e=="function"&&((t=e.prototype)==null?void 0:t.constructor)===e}const S8=10;class ay{constructor(){Ee(this,"subPriority",0)}validate(t,n){return!0}}class E8 extends ay{constructor(t,n,r,o,i){super(),this.value=t,this.validateValue=n,this.setValue=r,this.priority=o,i&&(this.subPriority=i)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,r){return this.setValue(t,n,this.value,r)}}class x8 extends ay{constructor(n,r){super();Ee(this,"priority",S8);Ee(this,"subPriority",-1);this.context=n||(o=>lt(r,o))}set(n,r){return r.timestampIsSet?n:lt(n,_8(n,this.context))}}class rt{run(t,n,r,o){const i=this.parse(t,n,r,o);return i?{setter:new E8(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,n,r){return!0}}class T8 extends rt{constructor(){super(...arguments);Ee(this,"priority",140);Ee(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,o){switch(r){case"G":case"GG":case"GGG":return o.era(n,{width:"abbreviated"})||o.era(n,{width:"narrow"});case"GGGGG":return o.era(n,{width:"narrow"});case"GGGG":default:return o.era(n,{width:"wide"})||o.era(n,{width:"abbreviated"})||o.era(n,{width:"narrow"})}}set(n,r,o){return r.era=o,n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}const Nt={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}/},_r={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 Bt(e,t){return e&&{value:t(e.value),rest:e.rest}}function Ct(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Cr(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const 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*U1+i*Nx+s*Bx),rest:t.slice(n[0].length)}}function oy(e){return Ct(Nt.anyDigitsSigned,e)}function Pt(e,t){switch(e){case 1:return Ct(Nt.singleDigit,t);case 2:return Ct(Nt.twoDigits,t);case 3:return Ct(Nt.threeDigits,t);case 4:return Ct(Nt.fourDigits,t);default:return Ct(new RegExp("^\\d{1,"+e+"}"),t)}}function tc(e,t){switch(e){case 1:return Ct(Nt.singleDigitSigned,t);case 2:return Ct(Nt.twoDigitsSigned,t);case 3:return Ct(Nt.threeDigitsSigned,t);case 4:return Ct(Nt.fourDigitsSigned,t);default:return Ct(new RegExp("^-?\\d{1,"+e+"}"),t)}}function hp(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 iy(e,t){const n=t>0,r=n?t:1-t;let o;if(r<=50)o=e||100;else{const i=r+50,s=Math.trunc(i/100)*100,l=e>=i%100;o=e+s-(l?100:0)}return n?o:1-o}function sy(e){return e%400===0||e%4===0&&e%100!==0}class P8 extends rt{constructor(){super(...arguments);Ee(this,"priority",130);Ee(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,o){const i=s=>({year:s,isTwoDigitYear:r==="yy"});switch(r){case"y":return Bt(Pt(4,n),i);case"yo":return Bt(o.ordinalNumber(n,{unit:"year"}),i);default:return Bt(Pt(r.length,n),i)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,o){const i=n.getFullYear();if(o.isTwoDigitYear){const l=iy(o.year,i);return n.setFullYear(l,0,1),n.setHours(0,0,0,0),n}const s=!("era"in r)||r.era===1?o.year:1-o.year;return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}class I8 extends rt{constructor(){super(...arguments);Ee(this,"priority",130);Ee(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,o){const i=s=>({year:s,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Bt(Pt(4,n),i);case"Yo":return Bt(o.ordinalNumber(n,{unit:"year"}),i);default:return Bt(Pt(r.length,n),i)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,o,i){const s=pp(n,i);if(o.isTwoDigitYear){const c=iy(o.year,s);return n.setFullYear(c,0,i.firstWeekContainsDate),n.setHours(0,0,0,0),cr(n,i)}const l=!("era"in r)||r.era===1?o.year:1-o.year;return n.setFullYear(l,0,i.firstWeekContainsDate),n.setHours(0,0,0,0),cr(n,i)}}class A8 extends rt{constructor(){super(...arguments);Ee(this,"priority",130);Ee(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return tc(r==="R"?4:r.length,n)}set(n,r,o){const i=lt(n,0);return i.setFullYear(o,0,4),i.setHours(0,0,0,0),ii(i)}}class M8 extends rt{constructor(){super(...arguments);Ee(this,"priority",130);Ee(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return tc(r==="u"?4:r.length,n)}set(n,r,o){return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class O8 extends rt{constructor(){super(...arguments);Ee(this,"priority",120);Ee(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"Q":case"QQ":return Pt(r.length,n);case"Qo":return o.ordinalNumber(n,{unit:"quarter"});case"QQQ":return o.quarter(n,{width:"abbreviated",context:"formatting"})||o.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(n,{width:"wide",context:"formatting"})||o.quarter(n,{width:"abbreviated",context:"formatting"})||o.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,o){return n.setMonth((o-1)*3,1),n.setHours(0,0,0,0),n}}class N8 extends rt{constructor(){super(...arguments);Ee(this,"priority",120);Ee(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"q":case"qq":return Pt(r.length,n);case"qo":return o.ordinalNumber(n,{unit:"quarter"});case"qqq":return o.quarter(n,{width:"abbreviated",context:"standalone"})||o.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(n,{width:"wide",context:"standalone"})||o.quarter(n,{width:"abbreviated",context:"standalone"})||o.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,o){return n.setMonth((o-1)*3,1),n.setHours(0,0,0,0),n}}class B8 extends rt{constructor(){super(...arguments);Ee(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);Ee(this,"priority",110)}parse(n,r,o){const i=s=>s-1;switch(r){case"M":return Bt(Ct(Nt.month,n),i);case"MM":return Bt(Pt(2,n),i);case"Mo":return Bt(o.ordinalNumber(n,{unit:"month"}),i);case"MMM":return o.month(n,{width:"abbreviated",context:"formatting"})||o.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(n,{width:"wide",context:"formatting"})||o.month(n,{width:"abbreviated",context:"formatting"})||o.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,o){return n.setMonth(o,1),n.setHours(0,0,0,0),n}}class D8 extends rt{constructor(){super(...arguments);Ee(this,"priority",110);Ee(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,o){const i=s=>s-1;switch(r){case"L":return Bt(Ct(Nt.month,n),i);case"LL":return Bt(Pt(2,n),i);case"Lo":return Bt(o.ordinalNumber(n,{unit:"month"}),i);case"LLL":return o.month(n,{width:"abbreviated",context:"standalone"})||o.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(n,{width:"wide",context:"standalone"})||o.month(n,{width:"abbreviated",context:"standalone"})||o.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,o){return n.setMonth(o,1),n.setHours(0,0,0,0),n}}function R8(e,t,n){const r=Re(e,n==null?void 0:n.in),o=mp(r,n)-t;return r.setDate(r.getDate()-o*7),Re(r,n==null?void 0:n.in)}class L8 extends rt{constructor(){super(...arguments);Ee(this,"priority",100);Ee(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,o){switch(r){case"w":return Ct(Nt.week,n);case"wo":return o.ordinalNumber(n,{unit:"week"});default:return Pt(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,o,i){return cr(R8(n,o,i),i)}}function $8(e,t,n){const r=Re(e,n==null?void 0:n.in),o=fp(r,n)-t;return r.setDate(r.getDate()-o*7),r}class z8 extends rt{constructor(){super(...arguments);Ee(this,"priority",100);Ee(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,o){switch(r){case"I":return Ct(Nt.week,n);case"Io":return o.ordinalNumber(n,{unit:"week"});default:return Pt(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,o){return ii($8(n,o))}}const V8=[31,28,31,30,31,30,31,31,30,31,30,31],F8=[31,29,31,30,31,30,31,31,30,31,30,31];class j8 extends rt{constructor(){super(...arguments);Ee(this,"priority",90);Ee(this,"subPriority",1);Ee(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"d":return Ct(Nt.date,n);case"do":return o.ordinalNumber(n,{unit:"date"});default:return Pt(r.length,n)}}validate(n,r){const o=n.getFullYear(),i=sy(o),s=n.getMonth();return i?r>=1&&r<=F8[s]:r>=1&&r<=V8[s]}set(n,r,o){return n.setDate(o),n.setHours(0,0,0,0),n}}class H8 extends rt{constructor(){super(...arguments);Ee(this,"priority",90);Ee(this,"subpriority",1);Ee(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,o){switch(r){case"D":case"DD":return Ct(Nt.dayOfYear,n);case"Do":return o.ordinalNumber(n,{unit:"date"});default:return Pt(r.length,n)}}validate(n,r){const o=n.getFullYear();return sy(o)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,o){return n.setMonth(0,o),n.setHours(0,0,0,0),n}}function vp(e,t,n){var f,p,h,v;const r=Co(),o=(n==null?void 0:n.weekStartsOn)??((p=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:p.weekStartsOn)??r.weekStartsOn??((v=(h=r.locale)==null?void 0:h.options)==null?void 0:v.weekStartsOn)??0,i=Re(e,n==null?void 0:n.in),s=i.getDay(),c=(t%7+7)%7,d=7-o,u=t<0||t>6?t-(s+d)%7:(c+d)%7-(s+d)%7;return tr(i,u,n)}class U8 extends rt{constructor(){super(...arguments);Ee(this,"priority",90);Ee(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"E":case"EE":case"EEE":return o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,o,i){return n=vp(n,o,i),n.setHours(0,0,0,0),n}}class W8 extends rt{constructor(){super(...arguments);Ee(this,"priority",90);Ee(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,o,i){const s=l=>{const c=Math.floor((l-1)/7)*7;return(l+i.weekStartsOn+6)%7+c};switch(r){case"e":case"ee":return Bt(Pt(r.length,n),s);case"eo":return Bt(o.ordinalNumber(n,{unit:"day"}),s);case"eee":return o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"eeeee":return o.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,o,i){return n=vp(n,o,i),n.setHours(0,0,0,0),n}}class q8 extends rt{constructor(){super(...arguments);Ee(this,"priority",90);Ee(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,o,i){const s=l=>{const c=Math.floor((l-1)/7)*7;return(l+i.weekStartsOn+6)%7+c};switch(r){case"c":case"cc":return Bt(Pt(r.length,n),s);case"co":return Bt(o.ordinalNumber(n,{unit:"day"}),s);case"ccc":return o.day(n,{width:"abbreviated",context:"standalone"})||o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"});case"ccccc":return o.day(n,{width:"narrow",context:"standalone"});case"cccccc":return o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(n,{width:"wide",context:"standalone"})||o.day(n,{width:"abbreviated",context:"standalone"})||o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,o,i){return n=vp(n,o,i),n.setHours(0,0,0,0),n}}function Y8(e,t,n){const r=Re(e,n==null?void 0:n.in),o=k8(r,n),i=t-o;return tr(r,i,n)}class G8 extends rt{constructor(){super(...arguments);Ee(this,"priority",90);Ee(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,o){const i=s=>s===0?7:s;switch(r){case"i":case"ii":return Pt(r.length,n);case"io":return o.ordinalNumber(n,{unit:"day"});case"iii":return Bt(o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),i);case"iiiii":return Bt(o.day(n,{width:"narrow",context:"formatting"}),i);case"iiiiii":return Bt(o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),i);case"iiii":default:return Bt(o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),i)}}validate(n,r){return r>=1&&r<=7}set(n,r,o){return n=Y8(n,o),n.setHours(0,0,0,0),n}}class X8 extends rt{constructor(){super(...arguments);Ee(this,"priority",80);Ee(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,o){switch(r){case"a":case"aa":case"aaa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,o){return n.setHours(hp(o),0,0,0),n}}class K8 extends rt{constructor(){super(...arguments);Ee(this,"priority",80);Ee(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,o){switch(r){case"b":case"bb":case"bbb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,o){return n.setHours(hp(o),0,0,0),n}}class J8 extends rt{constructor(){super(...arguments);Ee(this,"priority",80);Ee(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,o){switch(r){case"B":case"BB":case"BBB":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,o){return n.setHours(hp(o),0,0,0),n}}class Q8 extends rt{constructor(){super(...arguments);Ee(this,"priority",70);Ee(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,o){switch(r){case"h":return Ct(Nt.hour12h,n);case"ho":return o.ordinalNumber(n,{unit:"hour"});default:return Pt(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,o){const i=n.getHours()>=12;return i&&o<12?n.setHours(o+12,0,0,0):!i&&o===12?n.setHours(0,0,0,0):n.setHours(o,0,0,0),n}}class Z8 extends rt{constructor(){super(...arguments);Ee(this,"priority",70);Ee(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,o){switch(r){case"H":return Ct(Nt.hour23h,n);case"Ho":return o.ordinalNumber(n,{unit:"hour"});default:return Pt(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,o){return n.setHours(o,0,0,0),n}}class eT extends rt{constructor(){super(...arguments);Ee(this,"priority",70);Ee(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,o){switch(r){case"K":return Ct(Nt.hour11h,n);case"Ko":return o.ordinalNumber(n,{unit:"hour"});default:return Pt(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,o){return n.getHours()>=12&&o<12?n.setHours(o+12,0,0,0):n.setHours(o,0,0,0),n}}class tT extends rt{constructor(){super(...arguments);Ee(this,"priority",70);Ee(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,o){switch(r){case"k":return Ct(Nt.hour24h,n);case"ko":return o.ordinalNumber(n,{unit:"hour"});default:return Pt(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,o){const i=o<=24?o%24:o;return n.setHours(i,0,0,0),n}}class nT extends rt{constructor(){super(...arguments);Ee(this,"priority",60);Ee(this,"incompatibleTokens",["t","T"])}parse(n,r,o){switch(r){case"m":return Ct(Nt.minute,n);case"mo":return o.ordinalNumber(n,{unit:"minute"});default:return Pt(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,o){return n.setMinutes(o,0,0),n}}class rT extends rt{constructor(){super(...arguments);Ee(this,"priority",50);Ee(this,"incompatibleTokens",["t","T"])}parse(n,r,o){switch(r){case"s":return Ct(Nt.second,n);case"so":return o.ordinalNumber(n,{unit:"second"});default:return Pt(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,o){return n.setSeconds(o,0),n}}class aT extends rt{constructor(){super(...arguments);Ee(this,"priority",30);Ee(this,"incompatibleTokens",["t","T"])}parse(n,r){const o=i=>Math.trunc(i*Math.pow(10,-r.length+3));return Bt(Pt(r.length,n),o)}set(n,r,o){return n.setMilliseconds(o),n}}class oT extends rt{constructor(){super(...arguments);Ee(this,"priority",10);Ee(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return Cr(_r.basicOptionalMinutes,n);case"XX":return Cr(_r.basic,n);case"XXXX":return Cr(_r.basicOptionalSeconds,n);case"XXXXX":return Cr(_r.extendedOptionalSeconds,n);case"XXX":default:return Cr(_r.extended,n)}}set(n,r,o){return r.timestampIsSet?n:lt(n,n.getTime()-ec(n)-o)}}class iT extends rt{constructor(){super(...arguments);Ee(this,"priority",10);Ee(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return Cr(_r.basicOptionalMinutes,n);case"xx":return Cr(_r.basic,n);case"xxxx":return Cr(_r.basicOptionalSeconds,n);case"xxxxx":return Cr(_r.extendedOptionalSeconds,n);case"xxx":default:return Cr(_r.extended,n)}}set(n,r,o){return r.timestampIsSet?n:lt(n,n.getTime()-ec(n)-o)}}class sT extends rt{constructor(){super(...arguments);Ee(this,"priority",40);Ee(this,"incompatibleTokens","*")}parse(n){return oy(n)}set(n,r,o){return[lt(n,o*1e3),{timestampIsSet:!0}]}}class lT extends rt{constructor(){super(...arguments);Ee(this,"priority",20);Ee(this,"incompatibleTokens","*")}parse(n){return oy(n)}set(n,r,o){return[lt(n,o),{timestampIsSet:!0}]}}const cT={G:new T8,y:new P8,Y:new I8,R:new A8,u:new M8,Q:new O8,q:new N8,M:new B8,L:new D8,w:new L8,I:new z8,d:new j8,D:new H8,E:new U8,e:new W8,c:new q8,i:new G8,a:new X8,b:new K8,B:new J8,h:new Q8,H:new Z8,K:new eT,k:new tT,m:new nT,s:new rT,S:new aT,X:new oT,x:new iT,t:new sT,T:new lT},uT=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dT=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fT=/^'([^]*?)'?$/,pT=/''/g,mT=/\S/,hT=/[a-zA-Z]/;function Wd(e,t,n,r){var C,g,S,_,b,T,E,x;const o=()=>lt((r==null?void 0:r.in)||n,NaN),i=w8(),s=(r==null?void 0:r.locale)??i.locale??W1,l=(r==null?void 0:r.firstWeekContainsDate)??((g=(C=r==null?void 0:r.locale)==null?void 0:C.options)==null?void 0:g.firstWeekContainsDate)??i.firstWeekContainsDate??((_=(S=i.locale)==null?void 0:S.options)==null?void 0:_.firstWeekContainsDate)??1,c=(r==null?void 0:r.weekStartsOn)??((T=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:T.weekStartsOn)??i.weekStartsOn??((x=(E=i.locale)==null?void 0:E.options)==null?void 0:x.weekStartsOn)??0;if(!t)return e?o():Re(n,r==null?void 0:r.in);const d={firstWeekContainsDate:l,weekStartsOn:c,locale:s},u=[new x8(r==null?void 0:r.in,n)],f=t.match(dT).map(A=>{const P=A[0];if(P in Hd){const M=Hd[P];return M(A,s.formatLong)}return A}).join("").match(uT),p=[];for(let A of f){!(r!=null&&r.useAdditionalWeekYearTokens)&&ry(A)&&Ud(A,t,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&ny(A)&&Ud(A,t,e);const P=A[0],M=cT[P];if(M){const{incompatibleTokens:z}=M;if(Array.isArray(z)){const Y=p.find(D=>z.includes(D.token)||D.token===P);if(Y)throw new RangeError(`The format string mustn't contain \`${Y.fullToken}\` and \`${A}\` at the same time`)}else if(M.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${A}\` and any other token at the same time`);p.push({token:P,fullToken:A});const V=M.run(e,A,s.match,d);if(!V)return o();u.push(V.setter),e=V.rest}else{if(P.match(hT))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");if(A==="''"?A="'":P==="'"&&(A=vT(A)),e.indexOf(A)===0)e=e.slice(A.length);else return o()}}if(e.length>0&&mT.test(e))return o();const h=u.map(A=>A.priority).sort((A,P)=>P-A).filter((A,P,M)=>M.indexOf(A)===P).map(A=>u.filter(P=>P.priority===A).sort((P,M)=>M.subPriority-P.subPriority)).map(A=>A[0]);let v=Re(n,r==null?void 0:r.in);if(isNaN(+v))return o();const y={};for(const A of h){if(!A.validate(v,d))return o();const P=A.set(v,y,d);Array.isArray(P)?(v=P[0],Object.assign(y,P[1])):v=P}return v}function vT(e){return e.match(fT)[1].replace(pT,"'")}function iv(e,t,n){const[r,o]=Vs(n==null?void 0:n.in,e,t);return+to(r)==+to(o)}function gT(e,t,n){return tr(e,-t,n)}function ly(e,t,n){const r=Re(e,n==null?void 0:n.in),o=r.getFullYear(),i=r.getDate(),s=lt(e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);const l=b8(s);return r.setMonth(t,Math.min(i,l)),r}function pt(e,t,n){let r=Re(e,n==null?void 0:n.in);return isNaN(+r)?lt(e,NaN):(t.year!=null&&r.setFullYear(t.year),t.month!=null&&(r=ly(r,t.month)),t.date!=null&&r.setDate(t.date),t.hours!=null&&r.setHours(t.hours),t.minutes!=null&&r.setMinutes(t.minutes),t.seconds!=null&&r.setSeconds(t.seconds),t.milliseconds!=null&&r.setMilliseconds(t.milliseconds),r)}function yT(e,t,n){const r=Re(e,n==null?void 0:n.in);return r.setHours(t),r}function cy(e,t,n){const r=Re(e,n==null?void 0:n.in);return r.setMilliseconds(t),r}function bT(e,t,n){const r=Re(e,n==null?void 0:n.in);return r.setMinutes(t),r}function uy(e,t,n){const r=Re(e,n==null?void 0:n.in);return r.setSeconds(t),r}function Pr(e,t,n){const r=Re(e,n==null?void 0:n.in);return isNaN(+r)?lt(e,NaN):(r.setFullYear(t),r)}function ci(e,t,n){return ir(e,-t,n)}function wT(e,t,n){const{years:r=0,months:o=0,weeks:i=0,days:s=0,hours:l=0,minutes:c=0,seconds:d=0}=t,u=ci(e,o+r*12,n),f=gT(u,s+i*7,n),p=c+l*60,v=(d+p*60)*1e3;return lt(e,+f-v)}function dy(e,t,n){return dp(e,-t,n)}function Ii(){const e=a.useAttrs();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",role:"img",...e},[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"})])}Ii.compatConfig={MODE:3};function fy(){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",role:"img"},[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"})])}fy.compatConfig={MODE:3};function gp(){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",role:"img"},[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"})])}gp.compatConfig={MODE:3};function yp(){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",role:"img"},[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"})])}yp.compatConfig={MODE:3};function bp(){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",role:"img"},[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"})])}bp.compatConfig={MODE:3};function wp(){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",role:"img"},[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"})])}wp.compatConfig={MODE:3};function kp(){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",role:"img"},[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"})])}kp.compatConfig={MODE:3};const Cn=(e,t)=>t?new Date(e.toLocaleString("en-US",{timeZone:t})):new Date(e),_p=(e,t,n)=>qd(e,t,n)||fe(),kT=(e,t,n)=>{const r=t.dateInTz?Cn(new Date(e),t.dateInTz):fe(e);return n?fn(r,!0):r},qd=(e,t,n)=>{if(!e)return null;const r=n?fn(fe(e),!0):fe(e);return t?t.exactMatch?kT(e,t,n):Cn(r,t.timezone):r},_T=(e,t)=>{if(!e)return 0;const n=new Date,r=new Date(n.toLocaleString("en-US",{timeZone:"UTC"})),o=new Date(n.toLocaleString("en-US",{timeZone:e})),i=(t??o).getTimezoneOffset()/60;return(+r-+o)/(1e3*60*60)-i};var Gn=(e=>(e.month="month",e.year="year",e))(Gn||{}),Xn=(e=>(e.top="top",e.bottom="bottom",e))(Xn||{}),so=(e=>(e.header="header",e.calendar="calendar",e.timePicker="timePicker",e))(so||{}),tn=(e=>(e.month="month",e.year="year",e.calendar="calendar",e.time="time",e.minutes="minutes",e.hours="hours",e.seconds="seconds",e))(tn||{});const CT=["timestamp","date","iso"];var on=(e=>(e.up="up",e.down="down",e.left="left",e.right="right",e))(on||{}),bt=(e=>(e.arrowUp="ArrowUp",e.arrowDown="ArrowDown",e.arrowLeft="ArrowLeft",e.arrowRight="ArrowRight",e.enter="Enter",e.space=" ",e.esc="Escape",e.tab="Tab",e.home="Home",e.end="End",e.pageUp="PageUp",e.pageDown="PageDown",e))(bt||{});function sv(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 ST(e){return t=>Or(Cn(new Date(`2017-01-0${t}T00:00:00+00:00`),"UTC"),"EEEEEE",{locale:e})}const ET=(e,t,n)=>{const r=[1,2,3,4,5,6,7];let o;if(e!==null)try{o=r.map(ST(e))}catch{o=r.map(sv(t))}else o=r.map(sv(t));const i=o.slice(0,n),s=o.slice(n+1,o.length);return[o[n]].concat(...s).concat(...i)},Cp=(e,t,n)=>{const r=[];for(let o=+e[0];o<=+e[1];o++)r.push({value:+o,text:vy(o,t)});return n?r.reverse():r},py=(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"?"LLLL":"LLL";return r.map((s,l)=>{const c=Or(Cn(s,"UTC"),i,{locale:e});return{text:c.charAt(0).toUpperCase()+c.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}})},xT=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],Ft=e=>{const t=a.unref(e);return t!=null&&t.$el?t==null?void 0:t.$el:t},TT=e=>({type:"dot",...e??{}}),my=e=>Array.isArray(e)?!!e[0]&&!!e[1]:!1,Sp={prop:e=>`"${e}" prop must be enabled!`,dateArr:e=>`You need to use array as "model-value" binding in order to support "${e}"`},Ht=e=>e,lv=e=>e===0?e:!e||isNaN(+e)?null:+e,cv=e=>e===null,hy=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},PT=e=>{const t=[],n=r=>r.filter(o=>o);for(let r=0;r<e.length;r+=3){const o=[e[r],e[r+1],e[r+2]];t.push(n(o))}return t},Ss=(e,t,n)=>{const r=n!=null,o=t!=null;if(!r&&!o)return!1;const i=+n,s=+t;return r&&o?+e>i||+e<s:r?+e>i:o?+e<s:!1},ui=(e,t)=>PT(e).map(n=>n.map(r=>{const{active:o,disabled:i,isBetween:s,highlighted:l}=t(r);return{...r,active:o,disabled:i,className:{dp__overlay_cell_active:o,dp__overlay_cell:!o,dp__overlay_cell_disabled:i,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:i&&o,dp__cell_in_between:s,"dp--highlighted":l}}})),wa=(e,t,n=!1)=>{e&&t.allowStopPropagation&&(n&&e.stopImmediatePropagation(),e.stopPropagation())},IT=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", ");function AT(e,t){let n=[...document.querySelectorAll(IT())];n=n.filter(o=>!e.contains(o)||o.hasAttribute("data-datepicker-instance"));const r=n.indexOf(e);if(r>=0&&(t?r-1>=0:r+1<=n.length))return n[r+(t?-1:1)]}const Yd=(e,t)=>e==null?void 0:e.querySelector(`[data-dp-element="${t}"]`),vy=(e,t)=>new Intl.NumberFormat(t,{useGrouping:!1,style:"decimal"}).format(e),Ep=e=>Or(e,"dd-MM-yyyy"),$u=e=>Array.isArray(e),nc=(e,t)=>t.get(Ep(e)),MT=(e,t)=>e?t?t instanceof Map?!!nc(e,t):t(fe(e)):!1:!0,dn=(e,t,n=!1,r)=>{if(e.key===bt.enter||e.key===bt.space)return n&&e.preventDefault(),t();if(r)return r(e)},uv=()=>["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].some(e=>navigator.userAgent.includes(e))||navigator.userAgent.includes("Mac")&&"ontouchend"in document,dv=(e,t,n,r,o,i)=>{const s=Wd(e,t.slice(0,e.length),new Date,{locale:i});return rs(s)&&K1(s)?r||o?s:pt(s,{hours:+n.hours,minutes:+(n==null?void 0:n.minutes),seconds:+(n==null?void 0:n.seconds),milliseconds:0}):null},OT=(e,t,n,r,o,i)=>{const s=Array.isArray(n)?n[0]:n;if(typeof t=="string")return dv(e,t,s,r,o,i);if(Array.isArray(t)){let l=null;for(const c of t)if(l=dv(e,c,s,r,o,i),l)break;return l}return typeof t=="function"?t(e):null},fe=e=>e?new Date(e):new Date,NT=(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"),c=n?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${o}-${i}T${s}:${l}:${c}.000Z`}const r=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(r).toISOString()},fn=(e,t)=>{const n=fe(JSON.parse(JSON.stringify(e))),r=pt(n,{hours:0,minutes:0,seconds:0,milliseconds:0});return t?a8(r):r},ka=(e,t,n,r)=>{let o=e?fe(e):fe();return(t||t===0)&&(o=yT(o,+t)),(n||n===0)&&(o=bT(o,+n)),(r||r===0)&&(o=uy(o,+r)),cy(o,0)},Tt=(e,t)=>!e||!t?!1:Cs(fn(e),fn(t)),Je=(e,t)=>!e||!t?!1:jo(fn(e),fn(t)),Ot=(e,t)=>!e||!t?!1:li(fn(e),fn(t)),Rc=(e,t,n)=>e!=null&&e[0]&&e!=null&&e[1]?Ot(n,e[0])&&Tt(n,e[1]):e!=null&&e[0]&&t?Ot(n,e[0])&&Tt(n,t)||Tt(n,e[0])&&Ot(n,t):!1,nr=e=>{const t=pt(new Date(e),{date:1});return fn(t)},zu=(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},lo=e=>({hours:ea(e),minutes:Pa(e),seconds:si(e)}),gy=(e,t)=>{if(t){const n=Ve(fe(t));if(n>e)return 12;if(n===e)return Ke(fe(t))}},yy=(e,t)=>{if(t){const n=Ve(fe(t));return n<e?-1:n===e?Ke(fe(t)):void 0}},di=e=>{if(e)return Ve(fe(e))},by=(e,t)=>{const n=Ot(e,t)?t:e,r=Ot(t,e)?t:e;return Q1({start:n,end:r})},BT=e=>{const t=ir(e,1);return{month:Ke(t),year:Ve(t)}},Wr=(e,t)=>{const n=cr(e,{weekStartsOn:+t}),r=ey(e,{weekStartsOn:+t});return[n,r]},wy=(e,t)=>{const n={hours:ea(fe()),minutes:Pa(fe()),seconds:t?si(fe()):0};return Object.assign(n,e)},ba=(e,t,n)=>[pt(fe(e),{date:1}),pt(fe(),{month:t,year:n,date:1})],qr=(e,t,n)=>{let r=e?fe(e):fe();return(t||t===0)&&(r=ly(r,t)),n&&(r=Pr(r,n)),r},ky=(e,t,n,r,o)=>{if(!r||o&&!t||!o&&!n)return!1;const i=o?ir(e,1):ci(e,1),s=[Ke(i),Ve(i)];return o?!RT(...s,t):!DT(...s,n)},DT=(e,t,n)=>Tt(...ba(n,e,t))||Je(...ba(n,e,t)),RT=(e,t,n)=>Ot(...ba(n,e,t))||Je(...ba(n,e,t)),_y=(e,t,n,r,o,i,s)=>{if(typeof t=="function"&&!s)return t(e);const l=n?{locale:n}:void 0;return Array.isArray(e)?`${Or(e[0],i,l)}${o&&!e[1]?"":r}${e[1]?Or(e[1],i,l):""}`:Or(e,i,l)},Do=e=>{if(e)return null;throw new Error(Sp.prop("partial-range"))},fl=(e,t)=>{if(t)return e();throw new Error(Sp.prop("range"))},Gd=e=>Array.isArray(e)?rs(e[0])&&(e[1]?rs(e[1]):!0):e?rs(e):!1,LT=(e,t)=>pt(t??fe(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0}),Vu=(e,t,n,r)=>{if(!e)return!0;if(r){const o=n==="max"?Cs(e,t):li(e,t),i={seconds:0,milliseconds:0};return o||jo(pt(e,i),pt(t,i))}return n==="max"?e.getTime()<=t.getTime():e.getTime()>=t.getTime()},Fu=(e,t,n)=>e?LT(e,t):fe(n??t),fv=(e,t,n,r,o)=>{if(Array.isArray(r)){const s=Fu(e,r[0],t),l=Fu(e,r[1],t);return Vu(r[0],s,n,!!t)&&Vu(r[1],l,n,!!t)&&o}const i=Fu(e,r,t);return Vu(r,i,n,!!t)&&o},ju=e=>pt(fe(),lo(e)),$T=(e,t)=>e instanceof Map?Array.from(e.values()).filter(n=>Ve(fe(n))===t).map(n=>Ke(n)):[],zT=(e,t,n)=>{if(e instanceof Map){const r=Array.from(e.values()).filter(o=>Ve(fe(o))===t).map(o=>Ke(o));return r.length?r.includes(n):!0}return!0},Cy=(e,t,n)=>typeof e=="function"?e({month:t,year:n}):!!e.months.find(r=>r.month===t&&r.year===n),xp=(e,t)=>typeof e=="function"?e(t):e.years.includes(t),Sy=e=>Or(e,"yyyy-MM-dd"),Yi=a.reactive({menuFocused:!1,shiftKeyInMenu:!1}),Ey=()=>{const e=n=>{Yi.menuFocused=n},t=n=>{Yi.shiftKeyInMenu!==n&&(Yi.shiftKeyInMenu=n)};return{control:a.computed(()=>({shiftKeyInMenu:Yi.shiftKeyInMenu,menuFocused:Yi.menuFocused})),setMenuFocused:e,setShiftKey:t}},yt=a.reactive({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),Hu=a.ref(null),pl=a.ref(!1),Uu=a.ref(!1),Wu=a.ref(!1),qu=a.ref(!1),en=a.ref(0),At=a.ref(0),La=()=>{const e=a.computed(()=>pl.value?[...yt.selectionGrid,yt.actionRow].filter(f=>f.length):Uu.value?[...yt.timePicker[0],...yt.timePicker[1],qu.value?[]:[Hu.value],yt.actionRow].filter(f=>f.length):Wu.value?[...yt.monthPicker,yt.actionRow]:[yt.monthYear,...yt.calendar,yt.time,yt.actionRow].filter(f=>f.length)),t=f=>{en.value=f?en.value+1:en.value-1;let p=null;e.value[At.value]&&(p=e.value[At.value][en.value]),!p&&e.value[At.value+(f?1:-1)]?(At.value=At.value+(f?1:-1),en.value=f?0:e.value[At.value].length-1):p||(en.value=f?en.value-1:en.value+1)},n=f=>{At.value===0&&!f||At.value===e.value.length&&f||(At.value=f?At.value+1:At.value-1,e.value[At.value]?e.value[At.value]&&!e.value[At.value][en.value]&&en.value!==0&&(en.value=e.value[At.value].length-1):At.value=f?At.value-1:At.value+1)},r=f=>{let p=null;e.value[At.value]&&(p=e.value[At.value][en.value]),p?p.focus({preventScroll:!pl.value}):en.value=f?en.value-1:en.value+1},o=()=>{t(!0),r(!0)},i=()=>{t(!1),r(!1)},s=()=>{n(!1),r(!0)},l=()=>{n(!0),r(!0)},c=(f,p)=>{yt[p]=f},d=(f,p)=>{yt[p]=f},u=()=>{en.value=0,At.value=0};return{buildMatrix:c,buildMultiLevelMatrix:d,setTimePickerBackRef:f=>{Hu.value=f},setSelectionGrid:f=>{pl.value=f,u(),f||(yt.selectionGrid=[])},setTimePicker:(f,p=!1)=>{Uu.value=f,qu.value=p,u(),f||(yt.timePicker[0]=[],yt.timePicker[1]=[])},setTimePickerElements:(f,p=0)=>{yt.timePicker[p]=f},arrowRight:o,arrowLeft:i,arrowUp:s,arrowDown:l,clearArrowNav:()=>{yt.monthYear=[],yt.calendar=[],yt.time=[],yt.actionRow=[],yt.selectionGrid=[],yt.timePicker[0]=[],yt.timePicker[1]=[],pl.value=!1,Uu.value=!1,qu.value=!1,Wu.value=!1,u(),Hu.value=null},setMonthPicker:f=>{Wu.value=f,u()},refSets:yt}},pv=e=>({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down",...e??{}}),VT=e=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",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",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,clearInput:"Clear value",calendarIcon:"Calendar icon",timePicker:"Time picker",monthPicker:t=>`Month picker${t?" overlay":""}`,yearPicker:t=>`Year picker${t?" overlay":""}`,timeOverlay:t=>`${t} overlay`,...e??{}}),mv=e=>e?typeof e=="boolean"?e?2:0:+e>=2?+e:2:0,FT=e=>{const t=typeof e=="object"&&e,n={static:!0,solo:!1};if(!e)return{...n,count:mv(!1)};const r=t?e:{},o=t?r.count??!0:e,i=mv(o);return Object.assign(n,r,{count:i})},jT=(e,t,n)=>e||(typeof n=="string"?n:t),HT=e=>typeof e=="boolean"?e?pv({}):!1:pv(e),UT=e=>{const t={enterSubmit:!0,tabSubmit:!0,openMenu:"open",selectOnFocus:!1,rangeSeparator:" - "};return typeof e=="object"?{...t,...e??{},enabled:!0}:{...t,enabled:e}},WT=e=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...e??{}}),qT=e=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...e??{}}),YT=e=>{const t={input:!1};return typeof e=="object"?{...t,...e??{},enabled:!0}:{enabled:e,...t}},GT=e=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,shadowDom:!1,mobileBreakpoint:600,setDateOnMenuClose:!1,...e??{}}),XT=e=>{const t={dates:Array.isArray(e)?e.map(n=>fe(n)):[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}};return typeof e=="function"?e:{...t,...e??{}}},KT=e=>typeof e=="object"?{type:(e==null?void 0:e.type)??"local",hideOnOffsetDates:(e==null?void 0:e.hideOnOffsetDates)??!1}:{type:e,hideOnOffsetDates:!1},JT=e=>{const t={noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1};return typeof e=="object"?{enabled:!0,...t,...e}:{enabled:e,...t}},QT=e=>e?typeof e=="string"?{timezone:e,exactMatch:!1,dateInTz:void 0,emitTimezone:void 0,convertModel:!0}:{timezone:e.timezone,exactMatch:e.exactMatch??!1,dateInTz:e.dateInTz??void 0,emitTimezone:e.emitTimezone??void 0,convertModel:e.convertModel??!0}:{timezone:void 0,exactMatch:!1,emitTimezone:void 0},Yu=(e,t,n)=>new Map(e.map(r=>{const o=_p(r,t,n);return[Ep(o),o]})),ZT=(e,t)=>e.length?new Map(e.map(n=>{const r=_p(n.date,t);return[Ep(r),n]})):null,e7=e=>{var t;return{minDate:qd(e.minDate,e.timezone,e.isSpecific),maxDate:qd(e.maxDate,e.timezone,e.isSpecific),disabledDates:$u(e.disabledDates)?Yu(e.disabledDates,e.timezone,e.isSpecific):e.disabledDates,allowedDates:$u(e.allowedDates)?Yu(e.allowedDates,e.timezone,e.isSpecific):null,highlight:typeof e.highlight=="object"&&$u((t=e.highlight)==null?void 0:t.dates)?Yu(e.highlight.dates,e.timezone):e.highlight,markers:ZT(e.markers,e.timezone)}},t7=e=>typeof e=="boolean"?{enabled:e,dragSelect:!0,limit:null}:{enabled:!!e,limit:e.limit?+e.limit:null,dragSelect:e.dragSelect??!0},n7=e=>({...Object.fromEntries(Object.keys(e).map(t=>{const n=t,r=e[n],o=typeof e[n]=="string"?{[r]:!0}:Object.fromEntries(r.map(i=>[i,!0]));return[t,o]}))}),kt=e=>{const t=()=>{const E=e.enableSeconds?":ss":"",x=e.enableMinutes?":mm":"";return e.is24?`HH${x}${E}`:`hh${x}${E} aa`},n=()=>{var E;return e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?t():e.weekPicker?`${((E=C.value)==null?void 0:E.type)==="iso"?"RR":"ww"}-yyyy`:e.yearPicker?"yyyy":e.quarterPicker?"QQQ/yyyy":e.enableTimePicker?`MM/dd/yyyy, ${t()}`:"MM/dd/yyyy"},r=E=>wy(E,e.enableSeconds),o=()=>b.value.enabled?e.startTime&&Array.isArray(e.startTime)?[r(e.startTime[0]),r(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?r(e.startTime):null,i=a.computed(()=>FT(e.multiCalendars)),s=a.computed(()=>o()),l=a.computed(()=>VT(e.ariaLabels)),c=a.computed(()=>WT(e.filters)),d=a.computed(()=>HT(e.transitions)),u=a.computed(()=>qT(e.actionRow)),f=a.computed(()=>jT(e.previewFormat,e.format,n())),p=a.computed(()=>UT(e.textInput)),h=a.computed(()=>YT(e.inline)),v=a.computed(()=>GT(e.config)),y=a.computed(()=>XT(e.highlight)),C=a.computed(()=>KT(e.weekNumbers)),g=a.computed(()=>QT(e.timezone)),S=a.computed(()=>t7(e.multiDates)),_=a.computed(()=>e7({minDate:e.minDate,maxDate:e.maxDate,disabledDates:e.disabledDates,allowedDates:e.allowedDates,highlight:y.value,markers:e.markers,timezone:g.value,isSpecific:e.monthPicker||e.yearPicker||e.quarterPicker})),b=a.computed(()=>JT(e.range)),T=a.computed(()=>n7(e.ui));return{defaultedTransitions:d,defaultedMultiCalendars:i,defaultedStartTime:s,defaultedAriaLabels:l,defaultedFilters:c,defaultedActionRow:u,defaultedPreviewFormat:f,defaultedTextInput:p,defaultedInline:h,defaultedConfig:v,defaultedHighlight:y,defaultedWeekNumbers:C,defaultedRange:b,propDates:_,defaultedTz:g,defaultedMultiDates:S,defaultedUI:T,getDefaultPattern:n,getDefaultStartTime:o}},r7=(e,t,n)=>{const r=a.ref(),{defaultedTextInput:o,defaultedRange:i,defaultedTz:s,defaultedMultiDates:l,getDefaultPattern:c}=kt(t),d=a.ref(""),u=a.toRef(t,"format"),f=a.toRef(t,"formatLocale");a.watch(r,()=>{typeof t.onInternalModelChange=="function"&&e("internal-model-change",r.value,F(!0))},{deep:!0}),a.watch(i,(N,ce)=>{N.enabled!==ce.enabled&&(r.value=null)}),a.watch(u,()=>{J()});const p=N=>s.value.timezone&&s.value.convertModel?Cn(N,s.value.timezone):N,h=N=>{if(s.value.timezone&&s.value.convertModel){const ce=_T(s.value.timezone,N);return Q5(N,ce)}return N},v=(N,ce,ge=!1)=>_y(N,t.format,t.formatLocale,o.value.rangeSeparator,t.modelAuto,ce??c(),ge),y=N=>N?t.modelType?j(N):{hours:ea(N),minutes:Pa(N),seconds:t.enableSeconds?si(N):0}:null,C=N=>t.modelType?j(N):{month:Ke(N),year:Ve(N)},g=N=>Array.isArray(N)?l.value.enabled?N.map(ce=>S(ce,Pr(fe(),ce))):fl(()=>[Pr(fe(),N[0]),N[1]?Pr(fe(),N[1]):Do(i.value.partialRange)],i.value.enabled):Pr(fe(),+N),S=(N,ce)=>(typeof N=="string"||typeof N=="number")&&t.modelType?U(N):ce,_=N=>Array.isArray(N)?[S(N[0],ka(null,+N[0].hours,+N[0].minutes,N[0].seconds)),S(N[1],ka(null,+N[1].hours,+N[1].minutes,N[1].seconds))]:S(N,ka(null,N.hours,N.minutes,N.seconds)),b=N=>{const ce=pt(fe(),{date:1});return Array.isArray(N)?l.value.enabled?N.map(ge=>S(ge,qr(ce,+ge.month,+ge.year))):fl(()=>[S(N[0],qr(ce,+N[0].month,+N[0].year)),S(N[1],N[1]?qr(ce,+N[1].month,+N[1].year):Do(i.value.partialRange))],i.value.enabled):S(N,qr(ce,+N.month,+N.year))},T=N=>{if(Array.isArray(N))return N.map(ce=>U(ce));throw new Error(Sp.dateArr("multi-dates"))},E=N=>{if(Array.isArray(N)&&i.value.enabled){const ce=N[0],ge=N[1];return[fe(Array.isArray(ce)?ce[0]:null),Array.isArray(ge)&&ge.length?fe(ge[0]):null]}return fe(N[0])},x=N=>t.modelAuto?Array.isArray(N)?[U(N[0]),U(N[1])]:t.autoApply?[U(N)]:[U(N),null]:Array.isArray(N)?fl(()=>N[1]?[U(N[0]),N[1]?U(N[1]):Do(i.value.partialRange)]:[U(N[0])],i.value.enabled):U(N),A=()=>{Array.isArray(r.value)&&i.value.enabled&&r.value.length===1&&r.value.push(Do(i.value.partialRange))},P=()=>{const N=r.value;return[j(N[0]),N[1]?j(N[1]):Do(i.value.partialRange)]},M=()=>r.value[1]?P():j(Ht(r.value[0])),z=()=>(r.value||[]).map(N=>j(N)),V=(N=!1)=>(N||A(),t.modelAuto?M():l.value.enabled?z():Array.isArray(r.value)?fl(()=>P(),i.value.enabled):j(Ht(r.value))),Y=N=>!N||Array.isArray(N)&&!N.length?null:t.timePicker?_(Ht(N)):t.monthPicker?b(Ht(N)):t.yearPicker?g(Ht(N)):l.value.enabled?T(Ht(N)):t.weekPicker?E(Ht(N)):x(Ht(N)),D=N=>{const ce=Y(N);Gd(Ht(ce))?(r.value=Ht(ce),J()):(r.value=null,d.value="")},H=()=>{const N=ce=>Or(ce,o.value.format);return`${N(r.value[0])} ${o.value.rangeSeparator} ${r.value[1]?N(r.value[1]):""}`},B=()=>n.value&&r.value?Array.isArray(r.value)?H():Or(r.value,o.value.format):v(r.value),q=()=>r.value?l.value.enabled?r.value.map(N=>v(N)).join("; "):o.value.enabled&&typeof o.value.format=="string"?B():v(r.value):"",J=()=>{!t.format||typeof t.format=="string"||o.value.enabled&&typeof o.value.format=="string"?d.value=q():d.value=t.format(r.value)},U=N=>{if(t.utc){const ce=new Date(N);return t.utc==="preserve"?new Date(ce.getTime()+ce.getTimezoneOffset()*6e4):ce}return t.modelType?CT.includes(t.modelType)?p(new Date(N)):t.modelType==="format"&&(typeof t.format=="string"||!t.format)?p(Wd(N,c(),new Date,{locale:f.value})):p(Wd(N,t.modelType,new Date,{locale:f.value})):p(new Date(N))},j=N=>N?t.utc?NT(N,t.utc==="preserve",t.enableSeconds):t.modelType?t.modelType==="timestamp"?+h(N):t.modelType==="iso"?h(N).toISOString():t.modelType==="format"&&(typeof t.format=="string"||!t.format)?v(h(N)):v(h(N),t.modelType,!0):h(N):"",ie=(N,ce=!1,ge=!1)=>{if(ge)return N;if(e("update:model-value",N),s.value.emitTimezone&&ce){const Fe=Array.isArray(N)?N.map(ee=>Cn(Ht(ee),s.value.emitTimezone)):Cn(Ht(N),s.value.emitTimezone);e("update:model-timezone-value",Fe)}},Z=N=>Array.isArray(r.value)?l.value.enabled?r.value.map(ce=>N(ce)):[N(r.value[0]),r.value[1]?N(r.value[1]):Do(i.value.partialRange)]:N(Ht(r.value)),K=()=>{if(Array.isArray(r.value)){const N=Wr(r.value[0],t.weekStart),ce=r.value[1]?Wr(r.value[1],t.weekStart):[];return[N.map(ge=>fe(ge)),ce.map(ge=>fe(ge))]}return Wr(r.value,t.weekStart).map(N=>fe(N))},I=(N,ce)=>ie(Ht(Z(N)),!1,ce),L=N=>{const ce=K();return N?ce:e("update:model-value",K())},F=(N=!1)=>(N||J(),t.monthPicker?I(C,N):t.timePicker?I(y,N):t.yearPicker?I(Ve,N):t.weekPicker?L(N):ie(V(N),!0,N));return{inputValue:d,internalModelValue:r,checkBeforeEmit:()=>r.value?i.value.enabled?i.value.partialRange?r.value.length>=1:r.value.length===2:!!r.value:!1,parseExternalModelValue:D,formatInputValue:J,emitModelValue:F}},a7=(e,t)=>{const{defaultedFilters:n,propDates:r}=kt(e),{validateMonthYearInRange:o}=$a(e),i=(u,f)=>{let p=u;return n.value.months.includes(Ke(p))?(p=f?ir(u,1):ci(u,1),i(p,f)):p},s=(u,f)=>{let p=u;return n.value.years.includes(Ve(p))?(p=f?dp(u,1):dy(u,1),s(p,f)):p},l=(u,f=!1)=>{const p=pt(fe(),{month:e.month,year:e.year});let h=u?ir(p,1):ci(p,1);e.disableYearSelect&&(h=Pr(h,e.year));let v=Ke(h),y=Ve(h);n.value.months.includes(v)&&(h=i(h,u),v=Ke(h),y=Ve(h)),n.value.years.includes(y)&&(h=s(h,u),y=Ve(h)),o(v,y,u,e.preventMinMaxNavigation)&&c(v,y,f)},c=(u,f,p)=>{t("update-month-year",{month:u,year:f,fromNav:p})},d=a.computed(()=>u=>ky(pt(fe(),{month:e.month,year:e.year}),r.value.maxDate,r.value.minDate,e.preventMinMaxNavigation,u));return{handleMonthYearChange:l,isDisabled:d,updateMonthYear:c}},Lc={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},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},autoPosition:{type:[Boolean,String],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,Object],default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},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},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},highlight:{type:[Function,Object],default:null},teleport:{type:[Boolean,String,Object],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,Object],default:null},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:[Object,Boolean],default:!1},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"},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,Object],default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},onInternalModelChange:{type:[Function,Object],default:null},enableMinutes:{type:Boolean,default:!0},ui:{type:Object,default:()=>({})}},pr={...Lc,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},menuWrapRef:{type:Object,default:null},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1},isMobile:{type:Boolean,default:void 0}},o7=["title"],i7=["disabled"],s7=a.defineComponent({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},...pr},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const n=t,r=e,{defaultedActionRow:o,defaultedPreviewFormat:i,defaultedMultiCalendars:s,defaultedTextInput:l,defaultedInline:c,defaultedRange:d,defaultedMultiDates:u}=kt(r),{isTimeValid:f,isMonthValid:p}=$a(r),{buildMatrix:h}=La(),v=a.ref(null),y=a.ref(null),C=a.ref(!1),g=a.ref({}),S=a.ref(null),_=a.ref(null);a.onMounted(()=>{r.arrowNavigation&&h([Ft(v),Ft(y)],"actionRow"),b(),window.addEventListener("resize",b)}),a.onUnmounted(()=>{window.removeEventListener("resize",b)});const b=()=>{C.value=!1,setTimeout(()=>{var D,H;const B=(D=S.value)==null?void 0:D.getBoundingClientRect(),q=(H=_.value)==null?void 0:H.getBoundingClientRect();B&&q&&(g.value.maxWidth=`${q.width-B.width-20}px`),C.value=!0},0)},T=a.computed(()=>d.value.enabled&&!d.value.partialRange&&r.internalModelValue?r.internalModelValue.length===2:!0),E=a.computed(()=>!f.value(r.internalModelValue)||!p.value(r.internalModelValue)||!T.value),x=()=>{const D=i.value;return r.timePicker||r.monthPicker,D(Ht(r.internalModelValue))},A=()=>{const D=r.internalModelValue;return s.value.count>0?`${P(D[0])} - ${P(D[1])}`:[P(D[0]),P(D[1])]},P=D=>_y(D,i.value,r.formatLocale,l.value.rangeSeparator,r.modelAuto,i.value),M=a.computed(()=>!r.internalModelValue||!r.menuMount?"":typeof i.value=="string"?Array.isArray(r.internalModelValue)?r.internalModelValue.length===2&&r.internalModelValue[1]?A():u.value.enabled?r.internalModelValue.map(D=>`${P(D)}`):r.modelAuto?`${P(r.internalModelValue[0])}`:`${P(r.internalModelValue[0])} -`:P(r.internalModelValue):x()),z=()=>u.value.enabled?"; ":" - ",V=a.computed(()=>Array.isArray(M.value)?M.value.join(z()):M.value),Y=()=>{f.value(r.internalModelValue)&&p.value(r.internalModelValue)&&T.value?n("select-date"):n("invalid-select")};return(D,H)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"actionRowRef",ref:_,class:"dp__action_row"},[D.$slots["action-row"]?a.renderSlot(D.$slots,"action-row",a.normalizeProps(a.mergeProps({key:0},{internalModelValue:D.internalModelValue,disabled:E.value,selectDate:()=>D.$emit("select-date"),closePicker:()=>D.$emit("close-picker")}))):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.unref(o).showPreview?(a.openBlock(),a.createElementBlock("div",{key:0,class:"dp__selection_preview",title:V.value,style:a.normalizeStyle(g.value)},[D.$slots["action-preview"]&&C.value?a.renderSlot(D.$slots,"action-preview",{key:0,value:D.internalModelValue}):a.createCommentVNode("",!0),!D.$slots["action-preview"]&&C.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(V.value),1)],64)):a.createCommentVNode("",!0)],12,o7)):a.createCommentVNode("",!0),a.createElementVNode("div",{ref_key:"actionBtnContainer",ref:S,class:"dp__action_buttons","data-dp-element":"action-row"},[D.$slots["action-buttons"]?a.renderSlot(D.$slots,"action-buttons",{key:0,value:D.internalModelValue}):a.createCommentVNode("",!0),D.$slots["action-buttons"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[!a.unref(c).enabled&&a.unref(o).showCancel?(a.openBlock(),a.createElementBlock("button",{key:0,ref_key:"cancelButtonRef",ref:v,type:"button",class:"dp__action_button dp__action_cancel",onClick:H[0]||(H[0]=B=>D.$emit("close-picker")),onKeydown:H[1]||(H[1]=B=>a.unref(dn)(B,()=>D.$emit("close-picker")))},a.toDisplayString(D.cancelText),545)):a.createCommentVNode("",!0),a.unref(o).showNow?(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:H[2]||(H[2]=B=>D.$emit("select-now")),onKeydown:H[3]||(H[3]=B=>a.unref(dn)(B,()=>D.$emit("select-now")))},a.toDisplayString(D.nowButtonLabel),33)):a.createCommentVNode("",!0),a.unref(o).showSelect?(a.openBlock(),a.createElementBlock("button",{key:2,ref_key:"selectButtonRef",ref:y,type:"button",class:"dp__action_button dp__action_select",disabled:E.value,"data-test-id":"select-button",onKeydown:H[4]||(H[4]=B=>a.unref(dn)(B,()=>Y())),onClick:Y},a.toDisplayString(D.selectText),41,i7)):a.createCommentVNode("",!0)],64))],512)],64))],512))}}),l7=["role","aria-label","tabindex"],c7={class:"dp__selection_grid_header"},u7=["aria-selected","aria-disabled","data-test-id","onClick","onKeydown","onMouseover"],d7=["aria-label"],Fs=a.defineComponent({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},ariaLabels:{},overlayLabel:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(e,{expose:t,emit:n}){const{setSelectionGrid:r,buildMultiLevelMatrix:o,setMonthPicker:i}=La(),s=n,l=e,{defaultedAriaLabels:c,defaultedTextInput:d,defaultedConfig:u}=kt(l),{hideNavigationButtons:f}=Vc(),p=a.ref(!1),h=a.ref(null),v=a.ref(null),y=a.ref([]),C=a.ref(),g=a.ref(null),S=a.ref(0),_=a.ref(null);a.onBeforeUpdate(()=>{h.value=null}),a.onMounted(()=>{a.nextTick().then(()=>z()),l.noOverlayFocus||T(),b(!0)}),a.onUnmounted(()=>b(!1));const b=Z=>{var K;l.arrowNavigation&&((K=l.headerRefs)!=null&&K.length?i(Z):r(Z))},T=()=>{var Z;const K=Ft(v);K&&(d.value.enabled||(h.value?(Z=h.value)==null||Z.focus({preventScroll:!0}):K.focus({preventScroll:!0})),p.value=K.clientHeight<K.scrollHeight)},E=a.computed(()=>({dp__overlay:!0,"dp--overlay-absolute":!l.useRelative,"dp--overlay-relative":l.useRelative})),x=a.computed(()=>l.useRelative?{height:`${l.height}px`,width:"var(--dp-menu-min-width)"}:void 0),A=a.computed(()=>({dp__overlay_col:!0})),P=a.computed(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:p.value,dp__button_bottom:l.isLast})),M=a.computed(()=>{var Z,K;return{dp__overlay_container:!0,dp__container_flex:((Z=l.items)==null?void 0:Z.length)<=6,dp__container_block:((K=l.items)==null?void 0:K.length)>6}});a.watch(()=>l.items,()=>z(!1),{deep:!0});const z=(Z=!0)=>{a.nextTick().then(()=>{const K=Ft(h),I=Ft(v),L=Ft(g),F=Ft(_),N=L?L.getBoundingClientRect().height:0;I&&(I.getBoundingClientRect().height?S.value=I.getBoundingClientRect().height-N:S.value=u.value.modeHeight-N),K&&F&&Z&&(F.scrollTop=K.offsetTop-F.offsetTop-(S.value/2-K.getBoundingClientRect().height)-N)})},V=Z=>{Z.disabled||s("selected",Z.value)},Y=()=>{s("toggle"),s("reset-flow")},D=()=>{l.escClose&&Y()},H=(Z,K,I,L)=>{Z&&((K.active||K.value===l.focusValue)&&(h.value=Z),l.arrowNavigation&&(Array.isArray(y.value[I])?y.value[I][L]=Z:y.value[I]=[Z],B()))},B=()=>{var Z,K;const I=(Z=l.headerRefs)!=null&&Z.length?[l.headerRefs].concat(y.value):y.value.concat([l.skipButtonRef?[]:[g.value]]);o(Ht(I),(K=l.headerRefs)!=null&&K.length?"monthPicker":"selectionGrid")},q=Z=>{l.arrowNavigation||wa(Z,u.value,!0)},J=Z=>{C.value=Z,s("hover-value",Z)},U=()=>{if(Y(),!l.isLast){const Z=Yd(l.menuWrapRef??null,"action-row");if(Z){const K=hy(Z);K==null||K.focus()}}},j=Z=>{switch(Z.key){case bt.esc:return D();case bt.arrowLeft:return q(Z);case bt.arrowRight:return q(Z);case bt.arrowUp:return q(Z);case bt.arrowDown:return q(Z);default:return}},ie=Z=>{if(Z.key===bt.enter)return Y();if(Z.key===bt.tab)return U()};return t({focusGrid:T}),(Z,K)=>{var I;return a.openBlock(),a.createElementBlock("div",{ref_key:"gridWrapRef",ref:v,class:a.normalizeClass(E.value),style:a.normalizeStyle(x.value),role:Z.useRelative?void 0:"dialog","aria-label":Z.overlayLabel,tabindex:Z.useRelative?void 0:"0",onKeydown:j,onClick:K[0]||(K[0]=a.withModifiers(()=>{},["prevent"]))},[a.createElementVNode("div",{ref_key:"containerRef",ref:_,class:a.normalizeClass(M.value),style:a.normalizeStyle({"--dp-overlay-height":`${S.value}px`}),role:"grid"},[a.createElementVNode("div",c7,[a.renderSlot(Z.$slots,"header")]),Z.$slots.overlay?a.renderSlot(Z.$slots,"overlay",{key:0}):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(Z.items,(L,F)=>(a.openBlock(),a.createElementBlock("div",{key:F,class:a.normalizeClass(["dp__overlay_row",{dp__flex_row:Z.items.length>=3}]),role:"row"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(L,(N,ce)=>(a.openBlock(),a.createElementBlock("div",{key:N.value,ref_for:!0,ref:ge=>H(ge,N,F,ce),role:"gridcell",class:a.normalizeClass(A.value),"aria-selected":N.active||void 0,"aria-disabled":N.disabled||void 0,tabindex:"0","data-test-id":N.text,onClick:a.withModifiers(ge=>V(N),["prevent"]),onKeydown:ge=>a.unref(dn)(ge,()=>V(N),!0),onMouseover:ge=>J(N.value)},[a.createElementVNode("div",{class:a.normalizeClass(N.className)},[Z.$slots.item?a.renderSlot(Z.$slots,"item",{key:0,item:N}):a.createCommentVNode("",!0),Z.$slots.item?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(N.text),1)],64))],2)],42,u7))),128))],2))),128))],6),Z.$slots["button-icon"]?a.withDirectives((a.openBlock(),a.createElementBlock("button",{key:0,ref_key:"toggleButton",ref:g,type:"button","aria-label":(I=a.unref(c))==null?void 0:I.toggleOverlay,class:a.normalizeClass(P.value),tabindex:"0",onClick:Y,onKeydown:ie},[a.renderSlot(Z.$slots,"button-icon")],42,d7)),[[a.vShow,!a.unref(f)(Z.hideNavigation,Z.type)]]):a.createCommentVNode("",!0)],46,l7)}}}),f7=["data-dp-mobile"],$c=a.defineComponent({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean},collapse:{type:Boolean},isMobile:{type:Boolean}},setup(e){const t=e,n=a.computed(()=>t.multiCalendars>0?[...Array(t.multiCalendars).keys()]:[0]),r=a.computed(()=>({dp__instance_calendar:t.multiCalendars>0}));return(o,i)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass({dp__menu_inner:!o.stretch,"dp--menu--inner-stretched":o.stretch,dp__flex_display:o.multiCalendars>0,"dp--flex-display-collapsed":o.collapse}),"data-dp-mobile":o.isMobile},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,(s,l)=>(a.openBlock(),a.createElementBlock("div",{key:s,class:a.normalizeClass(r.value)},[a.renderSlot(o.$slots,"default",{instance:s,index:l})],2))),128))],10,f7))}}),p7=["data-dp-element","aria-label","aria-disabled"],as=a.defineComponent({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},elName:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const n=t,r=a.ref(null);return a.onMounted(()=>n("set-ref",r)),(o,i)=>(a.openBlock(),a.createElementBlock("button",{ref_key:"elRef",ref:r,type:"button","data-dp-element":o.elName,class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":o.ariaLabel,"aria-disabled":o.disabled||void 0,onClick:i[0]||(i[0]=s=>o.$emit("activate")),onKeydown:i[1]||(i[1]=s=>a.unref(dn)(s,()=>o.$emit("activate"),!0))},[a.createElementVNode("span",{class:a.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:o.disabled}])},[a.renderSlot(o.$slots,"default")],2)],40,p7))}}),m7=["aria-label","data-test-id"],xy=a.defineComponent({__name:"YearModePicker",props:{...pr,showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:()=>!1}},emits:["toggle-year-picker","year-select","handle-year"],setup(e,{emit:t}){const n=t,r=e,{showRightIcon:o,showLeftIcon:i}=Vc(),{defaultedConfig:s,defaultedMultiCalendars:l,defaultedAriaLabels:c,defaultedTransitions:d,defaultedUI:u}=kt(r),{showTransition:f,transitionName:p}=js(d),h=a.ref(!1),v=(g=!1,S)=>{h.value=!h.value,n("toggle-year-picker",{flow:g,show:S})},y=g=>{h.value=!1,n("year-select",g)},C=(g=!1)=>{n("handle-year",g)};return(g,S)=>{var _,b,T,E,x;return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",{class:a.normalizeClass(["dp--year-mode-picker",{"dp--hidden-el":h.value}])},[a.unref(i)(a.unref(l),e.instance)?(a.openBlock(),a.createBlock(as,{key:0,ref:"mpPrevIconRef","aria-label":(_=a.unref(c))==null?void 0:_.prevYear,disabled:e.isDisabled(!1),class:a.normalizeClass((b=a.unref(u))==null?void 0:b.navBtnPrev),onActivate:S[0]||(S[0]=A=>C(!1))},{default:a.withCtx(()=>[g.$slots["arrow-left"]?a.renderSlot(g.$slots,"arrow-left",{key:0}):a.createCommentVNode("",!0),g.$slots["arrow-left"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(gp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):a.createCommentVNode("",!0),a.createElementVNode("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":`${e.year}-${(T=a.unref(c))==null?void 0:T.openYearsOverlay}`,"data-test-id":`year-mode-btn-${e.instance}`,onClick:S[1]||(S[1]=()=>v(!1)),onKeydown:S[2]||(S[2]=a.withKeys(()=>v(!1),["enter"]))},[g.$slots.year?a.renderSlot(g.$slots,"year",{key:0,year:e.year}):a.createCommentVNode("",!0),g.$slots.year?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(e.year),1)],64))],40,m7),a.unref(o)(a.unref(l),e.instance)?(a.openBlock(),a.createBlock(as,{key:1,ref:"mpNextIconRef","aria-label":(E=a.unref(c))==null?void 0:E.nextYear,disabled:e.isDisabled(!0),class:a.normalizeClass((x=a.unref(u))==null?void 0:x.navBtnNext),onActivate:S[3]||(S[3]=A=>C(!0))},{default:a.withCtx(()=>[g.$slots["arrow-right"]?a.renderSlot(g.$slots,"arrow-right",{key:0}):a.createCommentVNode("",!0),g.$slots["arrow-right"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(yp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):a.createCommentVNode("",!0)],2),a.createVNode(a.Transition,{name:a.unref(p)(e.showYearPicker),css:a.unref(f)},{default:a.withCtx(()=>{var A,P;return[e.showYearPicker?(a.openBlock(),a.createBlock(Fs,{key:0,items:e.items,"text-input":g.textInput,"esc-close":g.escClose,config:g.config,"is-last":g.autoApply&&!a.unref(s).keepActionRow,"hide-navigation":g.hideNavigation,"aria-labels":g.ariaLabels,"overlay-label":(P=(A=a.unref(c))==null?void 0:A.yearPicker)==null?void 0:P.call(A,!0),type:"year",onToggle:v,onSelected:S[4]||(S[4]=M=>y(M))},a.createSlots({"button-icon":a.withCtx(()=>[g.$slots["calendar-icon"]?a.renderSlot(g.$slots,"calendar-icon",{key:0}):a.createCommentVNode("",!0),g.$slots["calendar-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Ii),{key:1}))]),_:2},[g.$slots["year-overlay-value"]?{name:"item",fn:a.withCtx(({item:M})=>[a.renderSlot(g.$slots,"year-overlay-value",{text:M.text,value:M.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation","aria-labels","overlay-label"])):a.createCommentVNode("",!0)]}),_:3},8,["name","css"])],64)}}}),Tp=(e,t,n)=>{if(t.value&&Array.isArray(t.value))if(t.value.some(r=>Je(e,r))){const r=t.value.filter(o=>!Je(o,e));t.value=r.length?r:null}else(n&&+n>t.value.length||!n)&&t.value.push(e);else t.value=[e]},Pp=(e,t,n)=>{let r=e.value?e.value.slice():[];return r.length===2&&r[1]!==null&&(r=[]),r.length?(Tt(t,r[0])?r.unshift(t):r[1]=t,n("range-end",t)):(r=[t],n("range-start",t)),r},zc=(e,t,n,r)=>{e&&(e[0]&&e[1]&&n&&t("auto-apply"),e[0]&&!e[1]&&r&&n&&t("auto-apply"))},Ty=e=>{Array.isArray(e.value)&&e.value.length<=2&&e.range?e.modelValue.value=e.value.map(t=>Cn(fe(t),e.timezone)):Array.isArray(e.value)||(e.modelValue.value=Cn(fe(e.value),e.timezone))},Py=(e,t,n,r)=>Array.isArray(t.value)&&(t.value.length===2||t.value.length===1&&r.value.partialRange)?r.value.fixedStart&&(Ot(e,t.value[0])||Je(e,t.value[0]))?[t.value[0],e]:r.value.fixedEnd&&(Tt(e,t.value[1])||Je(e,t.value[1]))?[e,t.value[1]]:(n("invalid-fixed-range",e),t.value):[],Iy=({multiCalendars:e,range:t,highlight:n,propDates:r,calendars:o,modelValue:i,props:s,filters:l,year:c,month:d,emit:u})=>{const f=a.computed(()=>Cp(s.yearRange,s.locale,s.reverseYears)),p=a.ref([!1]),h=a.computed(()=>(M,z)=>{const V=pt(nr(new Date),{month:d.value(M),year:c.value(M)}),Y=z?Z1(V):_s(V);return ky(Y,r.value.maxDate,r.value.minDate,s.preventMinMaxNavigation,z)}),v=()=>Array.isArray(i.value)&&e.value.solo&&i.value[1],y=()=>{for(let M=0;M<e.value.count;M++)if(M===0)o.value[M]=o.value[0];else if(M===e.value.count-1&&v())o.value[M]={month:Ke(i.value[1]),year:Ve(i.value[1])};else{const z=pt(fe(),o.value[M-1]);o.value[M]={month:Ke(z),year:Ve(dp(z,1))}}},C=M=>{if(!M)return y();const z=pt(fe(),o.value[M]);return o.value[0].year=Ve(dy(z,e.value.count-1)),y()},g=(M,z)=>{const V=n8(z,M);return t.value.showLastInRange&&V>1?z:M},S=M=>s.focusStartDate||e.value.solo?M[0]:M[1]?g(M[0],M[1]):M[0],_=()=>{if(i.value){const M=Array.isArray(i.value)?S(i.value):i.value;o.value[0]={month:Ke(M),year:Ve(M)}}},b=()=>{_(),e.value.count&&y()};a.watch(i,(M,z)=>{s.isTextInputDate&&JSON.stringify(M??{})!==JSON.stringify(z??{})&&b()}),a.onMounted(()=>{b()});const T=(M,z)=>{o.value[z].year=M,u("update-month-year",{instance:z,year:M,month:o.value[z].month}),e.value.count&&!e.value.solo&&C(z)},E=a.computed(()=>M=>ui(f.value,z=>{var V;const Y=c.value(M)===z.value,D=Ss(z.value,di(r.value.minDate),di(r.value.maxDate))||((V=l.value.years)==null?void 0:V.includes(c.value(M))),H=xp(n.value,z.value);return{active:Y,disabled:D,highlighted:H}})),x=(M,z)=>{T(M,z),P(z)},A=(M,z=!1)=>{if(!h.value(M,z)){const V=z?c.value(M)+1:c.value(M)-1;T(V,M)}},P=(M,z=!1,V)=>{z||u("reset-flow"),V!==void 0?p.value[M]=V:p.value[M]=!p.value[M],p.value[M]?u("overlay-toggle",{open:!0,overlay:tn.year}):(u("overlay-closed"),u("overlay-toggle",{open:!1,overlay:tn.year}))};return{isDisabled:h,groupedYears:E,showYearPicker:p,selectYear:T,toggleYearPicker:P,handleYearSelect:x,handleYear:A}},h7=(e,t)=>{const{defaultedMultiCalendars:n,defaultedAriaLabels:r,defaultedTransitions:o,defaultedConfig:i,defaultedRange:s,defaultedHighlight:l,propDates:c,defaultedTz:d,defaultedFilters:u,defaultedMultiDates:f}=kt(e),p=()=>{e.isTextInputDate&&b(Ve(fe(e.startDate)),0)},{modelValue:h,year:v,month:y,calendars:C}=Hs(e,t,p),g=a.computed(()=>py(e.formatLocale,e.locale,e.monthNameFormat)),S=a.ref(null),{checkMinMaxRange:_}=$a(e),{selectYear:b,groupedYears:T,showYearPicker:E,toggleYearPicker:x,handleYearSelect:A,handleYear:P,isDisabled:M}=Iy({modelValue:h,multiCalendars:n,range:s,highlight:l,calendars:C,year:v,propDates:c,month:y,filters:u,props:e,emit:t});a.onMounted(()=>{e.startDate&&(h.value&&e.focusStartDate||!h.value)&&b(Ve(fe(e.startDate)),0)});const z=I=>I?{month:Ke(I),year:Ve(I)}:{month:null,year:null},V=()=>h.value?Array.isArray(h.value)?h.value.map(I=>z(I)):z(h.value):z(),Y=(I,L)=>{const F=C.value[I],N=V();return Array.isArray(N)?N.some(ce=>ce.year===(F==null?void 0:F.year)&&ce.month===L):(F==null?void 0:F.year)===N.year&&L===N.month},D=(I,L,F)=>{var N,ce;const ge=V();return Array.isArray(ge)?v.value(L)===((N=ge[F])==null?void 0:N.year)&&I===((ce=ge[F])==null?void 0:ce.month):!1},H=(I,L)=>{if(s.value.enabled){const F=V();if(Array.isArray(h.value)&&Array.isArray(F)){const N=D(I,L,0)||D(I,L,1),ce=qr(nr(fe()),I,v.value(L));return Rc(h.value,S.value,ce)&&!N}return!1}return!1},B=a.computed(()=>I=>ui(g.value,L=>{var F;const N=Y(I,L.value),ce=Ss(L.value,gy(v.value(I),c.value.minDate),yy(v.value(I),c.value.maxDate))||$T(c.value.disabledDates,v.value(I)).includes(L.value)||((F=u.value.months)==null?void 0:F.includes(L.value))||!zT(c.value.allowedDates,v.value(I),L.value),ge=H(L.value,I),Fe=Cy(l.value,L.value,v.value(I));return{active:N,disabled:ce,isBetween:ge,highlighted:Fe}})),q=(I,L)=>qr(nr(fe()),I,v.value(L)),J=(I,L)=>{const F=h.value?h.value:nr(new Date);h.value=qr(F,I,v.value(L)),t("auto-apply"),t("update-flow-step")},U=(I,L)=>{const F=q(I,L);s.value.fixedEnd||s.value.fixedStart?h.value=Py(F,h,t,s):h.value?_(F,h.value)&&(h.value=Pp(h,q(I,L),t)):h.value=[q(I,L)],a.nextTick().then(()=>{zc(h.value,t,e.autoApply,e.modelAuto)})},j=(I,L)=>{Tp(q(I,L),h,f.value.limit),t("auto-apply",!0)},ie=(I,L)=>(C.value[L].month=I,K(L,C.value[L].year,I),f.value.enabled?j(I,L):s.value.enabled?U(I,L):J(I,L)),Z=(I,L)=>{b(I,L),K(L,I,null)},K=(I,L,F)=>{let N=F;if(!N&&N!==0){const ce=V();N=Array.isArray(ce)?ce[I].month:ce.month}t("update-month-year",{instance:I,year:L,month:N})};return{groupedMonths:B,groupedYears:T,year:v,isDisabled:M,defaultedMultiCalendars:n,defaultedAriaLabels:r,defaultedTransitions:o,defaultedConfig:i,showYearPicker:E,modelValue:h,presetDate:(I,L)=>{Ty({value:I,modelValue:h,range:s.value.enabled,timezone:L?void 0:d.value.timezone}),t("auto-apply")},setHoverDate:(I,L)=>{S.value=q(I,L)},selectMonth:ie,selectYear:Z,toggleYearPicker:x,handleYearSelect:A,handleYear:P,getModelMonthYear:V}},v7=a.defineComponent({compatConfig:{MODE:3},__name:"MonthPicker",props:{...pr},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","update-flow-step","mount","invalid-fixed-range","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,o=a.useSlots(),i=An(o,"yearMode"),s=e;a.onMounted(()=>{s.shadow||r("mount",null)});const{groupedMonths:l,groupedYears:c,year:d,isDisabled:u,defaultedMultiCalendars:f,defaultedConfig:p,showYearPicker:h,modelValue:v,presetDate:y,setHoverDate:C,selectMonth:g,selectYear:S,toggleYearPicker:_,handleYearSelect:b,handleYear:T,getModelMonthYear:E}=h7(s,r);return t({getSidebarProps:()=>({modelValue:v,year:d,getModelMonthYear:E,selectMonth:g,selectYear:S,handleYear:T}),presetDate:y,toggleYearPicker:x=>_(0,x)}),(x,A)=>(a.openBlock(),a.createBlock($c,{"multi-calendars":a.unref(f).count,collapse:x.collapse,stretch:"","is-mobile":x.isMobile},{default:a.withCtx(({instance:P})=>[x.$slots["top-extra"]?a.renderSlot(x.$slots,"top-extra",{key:0,value:x.internalModelValue}):a.createCommentVNode("",!0),x.$slots["month-year"]?a.renderSlot(x.$slots,"month-year",a.normalizeProps(a.mergeProps({key:1},{year:a.unref(d),months:a.unref(l)(P),years:a.unref(c)(P),selectMonth:a.unref(g),selectYear:a.unref(S),instance:P}))):(a.openBlock(),a.createBlock(Fs,{key:2,items:a.unref(l)(P),"arrow-navigation":x.arrowNavigation,"is-last":x.autoApply&&!a.unref(p).keepActionRow,"esc-close":x.escClose,height:a.unref(p).modeHeight,config:x.config,"no-overlay-focus":!!(x.noOverlayFocus||x.textInput),"use-relative":"",type:"month",onSelected:M=>a.unref(g)(M,P),onHoverValue:M=>a.unref(C)(M,P)},a.createSlots({header:a.withCtx(()=>[a.createVNode(xy,a.mergeProps(x.$props,{items:a.unref(c)(P),instance:P,"show-year-picker":a.unref(h)[P],year:a.unref(d)(P),"is-disabled":M=>a.unref(u)(P,M),onHandleYear:M=>a.unref(T)(P,M),onYearSelect:M=>a.unref(b)(M,P),onToggleYearPicker:M=>a.unref(_)(P,M==null?void 0:M.flow,M==null?void 0:M.show)}),a.createSlots({_:2},[a.renderList(a.unref(i),(M,z)=>({name:M,fn:a.withCtx(V=>[a.renderSlot(x.$slots,M,a.normalizeProps(a.guardReactiveProps(V)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[x.$slots["month-overlay-value"]?{name:"item",fn:a.withCtx(({item:M})=>[a.renderSlot(x.$slots,"month-overlay-value",{text:M.text,value:M.value})]),key:"0"}:void 0]),1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars","collapse","is-mobile"]))}}),g7=(e,t)=>{const n=()=>{e.isTextInputDate&&(u.value=Ve(fe(e.startDate)))},{modelValue:r}=Hs(e,t,n),o=a.ref(null),{defaultedHighlight:i,defaultedMultiDates:s,defaultedFilters:l,defaultedRange:c,propDates:d}=kt(e),u=a.ref();a.onMounted(()=>{e.startDate&&(r.value&&e.focusStartDate||!r.value)&&(u.value=Ve(fe(e.startDate)))});const f=y=>Array.isArray(r.value)?r.value.some(C=>Ve(C)===y):r.value?Ve(r.value)===y:!1,p=y=>c.value.enabled&&Array.isArray(r.value)?Rc(r.value,o.value,v(y)):!1,h=a.computed(()=>ui(Cp(e.yearRange,e.locale,e.reverseYears),y=>{const C=f(y.value),g=Ss(y.value,di(d.value.minDate),di(d.value.maxDate))||l.value.years.includes(y.value),S=p(y.value)&&!C,_=xp(i.value,y.value);return{active:C,disabled:g,isBetween:S,highlighted:_}})),v=y=>Pr(nr(_s(new Date)),y);return{groupedYears:h,modelValue:r,focusYear:u,setHoverValue:y=>{o.value=Pr(nr(new Date),y)},selectYear:y=>{var C;if(t("update-month-year",{instance:0,year:y}),s.value.enabled)return r.value?Array.isArray(r.value)&&(((C=r.value)==null?void 0:C.map(g=>Ve(g))).includes(y)?r.value=r.value.filter(g=>Ve(g)!==y):r.value.push(Pr(fn(fe()),y))):r.value=[Pr(fn(_s(fe())),y)],t("auto-apply",!0);c.value.enabled?(r.value=Pp(r,v(y),t),a.nextTick().then(()=>{zc(r.value,t,e.autoApply,e.modelAuto)})):(r.value=v(y),t("auto-apply"))}}},y7=a.defineComponent({compatConfig:{MODE:3},__name:"YearPicker",props:{...pr},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(e,{expose:t,emit:n}){const r=n,o=e,{groupedYears:i,modelValue:s,focusYear:l,selectYear:c,setHoverValue:d}=g7(o,r),{defaultedConfig:u}=kt(o);return t({getSidebarProps:()=>({modelValue:s,selectYear:c})}),(f,p)=>(a.openBlock(),a.createElementBlock("div",null,[f.$slots["top-extra"]?a.renderSlot(f.$slots,"top-extra",{key:0,value:f.internalModelValue}):a.createCommentVNode("",!0),f.$slots["month-year"]?a.renderSlot(f.$slots,"month-year",a.normalizeProps(a.mergeProps({key:1},{years:a.unref(i),selectYear:a.unref(c)}))):(a.openBlock(),a.createBlock(Fs,{key:2,items:a.unref(i),"is-last":f.autoApply&&!a.unref(u).keepActionRow,height:a.unref(u).modeHeight,config:f.config,"no-overlay-focus":!!(f.noOverlayFocus||f.textInput),"focus-value":a.unref(l),type:"year","use-relative":"",onSelected:a.unref(c),onHoverValue:a.unref(d)},a.createSlots({_:2},[f.$slots["year-overlay-value"]?{name:"item",fn:a.withCtx(({item:h})=>[a.renderSlot(f.$slots,"year-overlay-value",{text:h.text,value:h.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),b7={key:0,class:"dp__time_input"},w7=["data-compact","data-collapsed"],k7=["data-test-id","aria-label","onKeydown","onClick","onMousedown"],_7=["aria-label","disabled","data-test-id","onKeydown","onClick"],C7=["data-test-id","aria-label","onKeydown","onClick","onMousedown"],S7={key:0},E7=["aria-label","data-compact"],x7=a.defineComponent({compatConfig:{MODE:3},__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},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...pr},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","overlay-opened","am-pm-change"],setup(e,{expose:t,emit:n}){const r=n,o=e,{setTimePickerElements:i,setTimePickerBackRef:s}=La(),{defaultedAriaLabels:l,defaultedTransitions:c,defaultedFilters:d,defaultedConfig:u,defaultedRange:f,defaultedMultiCalendars:p}=kt(o),{transitionName:h,showTransition:v}=js(c),y=a.reactive({hours:!1,minutes:!1,seconds:!1}),C=a.ref("AM"),g=a.ref(null),S=a.ref([]),_=a.ref(),b=a.ref(!1);a.onMounted(()=>{r("mounted")});const T=R=>pt(new Date,{hours:R.hours,minutes:R.minutes,seconds:o.enableSeconds?R.seconds:0,milliseconds:0}),E=a.computed(()=>R=>U(R,o[R])||A(R,o[R])),x=a.computed(()=>({hours:o.hours,minutes:o.minutes,seconds:o.seconds})),A=(R,oe)=>f.value.enabled&&!f.value.disableTimeRangeValidation?!o.validateTime(R,oe):!1,P=(R,oe)=>{if(f.value.enabled&&!f.value.disableTimeRangeValidation){const Pe=oe?+o[`${R}Increment`]:-+o[`${R}Increment`],ue=o[R]+Pe;return!o.validateTime(R,ue)}return!1},M=a.computed(()=>R=>!I(+o[R]+ +o[`${R}Increment`],R)||P(R,!0)),z=a.computed(()=>R=>!I(+o[R]-+o[`${R}Increment`],R)||P(R,!1)),V=(R,oe)=>Y1(pt(fe(),R),oe),Y=(R,oe)=>wT(pt(fe(),R),oe),D=a.computed(()=>({dp__time_col:!0,dp__time_col_block:!o.timePickerInline,dp__time_col_reg_block:!o.enableSeconds&&o.is24&&!o.timePickerInline,dp__time_col_reg_inline:!o.enableSeconds&&o.is24&&o.timePickerInline,dp__time_col_reg_with_button:!o.enableSeconds&&!o.is24,dp__time_col_sec:o.enableSeconds&&o.is24,dp__time_col_sec_with_button:o.enableSeconds&&!o.is24})),H=a.computed(()=>o.timePickerInline&&f.value.enabled&&!p.value.count),B=a.computed(()=>{const R=[{type:"hours"}];return o.enableMinutes&&R.push({type:"",separator:!0},{type:"minutes"}),o.enableSeconds&&R.push({type:"",separator:!0},{type:"seconds"}),R}),q=a.computed(()=>B.value.filter(R=>!R.separator)),J=a.computed(()=>R=>{if(R==="hours"){const oe=Fe(+o.hours);return{text:oe<10?`0${oe}`:`${oe}`,value:oe}}return{text:o[R]<10?`0${o[R]}`:`${o[R]}`,value:o[R]}}),U=(R,oe)=>{var Pe;if(!o.disabledTimesConfig)return!1;const ue=o.disabledTimesConfig(o.order,R==="hours"?oe:void 0);return ue[R]?!!((Pe=ue[R])!=null&&Pe.includes(oe)):!0},j=(R,oe)=>oe!=="hours"||C.value==="AM"?R:R+12,ie=R=>{const oe=o.is24?24:12,Pe=R==="hours"?oe:60,ue=+o[`${R}GridIncrement`],Ne=R==="hours"&&!o.is24?ue:0,de=[];for(let G=Ne;G<Pe;G+=ue)de.push({value:o.is24?G:j(G,R),text:G<10?`0${G}`:`${G}`});return R==="hours"&&!o.is24&&de.unshift({value:C.value==="PM"?12:0,text:"12"}),ui(de,G=>({active:!1,disabled:d.value.times[R].includes(G.value)||!I(G.value,R)||U(R,G.value)||A(R,G.value)}))},Z=R=>R>=0?R:59,K=R=>R>=0?R:23,I=(R,oe)=>{const Pe=o.minTime?T(zu(o.minTime)):null,ue=o.maxTime?T(zu(o.maxTime)):null,Ne=T(zu(x.value,oe,oe==="minutes"||oe==="seconds"?Z(R):K(R)));return Pe&&ue?(Cs(Ne,ue)||jo(Ne,ue))&&(li(Ne,Pe)||jo(Ne,Pe)):Pe?li(Ne,Pe)||jo(Ne,Pe):ue?Cs(Ne,ue)||jo(Ne,ue):!0},L=R=>o[`no${R[0].toUpperCase()+R.slice(1)}Overlay`],F=R=>{L(R)||(y[R]=!y[R],y[R]?(b.value=!0,r("overlay-opened",R)):(b.value=!1,r("overlay-closed",R)))},N=R=>R==="hours"?ea:R==="minutes"?Pa:si,ce=()=>{_.value&&clearTimeout(_.value)},ge=(R,oe=!0,Pe)=>{const ue=oe?V:Y,Ne=oe?+o[`${R}Increment`]:-+o[`${R}Increment`];I(+o[R]+Ne,R)&&r(`update:${R}`,N(R)(ue({[R]:+o[R]},{[R]:+o[`${R}Increment`]}))),!(Pe!=null&&Pe.keyboard)&&u.value.timeArrowHoldThreshold&&(_.value=setTimeout(()=>{ge(R,oe)},u.value.timeArrowHoldThreshold))},Fe=R=>o.is24?R:(R>=12?C.value="PM":C.value="AM",xT(R)),ee=()=>{C.value==="PM"?(C.value="AM",r("update:hours",o.hours-12)):(C.value="PM",r("update:hours",o.hours+12)),r("am-pm-change",C.value)},se=R=>{y[R]=!0},ae=(R,oe,Pe)=>{if(R&&o.arrowNavigation){Array.isArray(S.value[oe])?S.value[oe][Pe]=R:S.value[oe]=[R];const ue=S.value.reduce((Ne,de)=>de.map((G,te)=>[...Ne[te]||[],de[te]]),[]);s(o.closeTimePickerBtn),g.value&&(ue[1]=ue[1].concat(g.value)),i(ue,o.order)}},me=(R,oe)=>(F(R),r(`update:${R}`,oe));return t({openChildCmp:se}),(R,oe)=>{var Pe;return R.disabled?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",b7,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(B.value,(ue,Ne)=>{var de,G,te;return a.openBlock(),a.createElementBlock("div",{key:Ne,class:a.normalizeClass(D.value),"data-compact":H.value&&!R.enableSeconds,"data-collapsed":H.value&&R.enableSeconds},[ue.separator?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[b.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(":")],64))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("button",{ref_for:!0,ref:pe=>ae(pe,Ne,0),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:M.value(ue.type),"dp--hidden-el":b.value}),"data-test-id":`${ue.type}-time-inc-btn-${o.order}`,"aria-label":(de=a.unref(l))==null?void 0:de.incrementValue(ue.type),tabindex:"0",onKeydown:pe=>a.unref(dn)(pe,()=>ge(ue.type,!0,{keyboard:!0}),!0),onClick:pe=>a.unref(u).timeArrowHoldThreshold?void 0:ge(ue.type,!0),onMousedown:pe=>a.unref(u).timeArrowHoldThreshold?ge(ue.type,!0):void 0,onMouseup:ce},[o.timePickerInline?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[R.$slots["tp-inline-arrow-up"]?a.renderSlot(R.$slots,"tp-inline-arrow-up",{key:0}):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[oe[2]||(oe[2]=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),oe[3]||(oe[3]=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[R.$slots["arrow-up"]?a.renderSlot(R.$slots,"arrow-up",{key:0}):a.createCommentVNode("",!0),R.$slots["arrow-up"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(wp),{key:1}))],64))],42,k7),a.createElementVNode("button",{ref_for:!0,ref:pe=>ae(pe,Ne,1),type:"button","aria-label":`${J.value(ue.type).text}-${(G=a.unref(l))==null?void 0:G.openTpOverlay(ue.type)}`,class:a.normalizeClass({dp__time_display:!0,dp__time_display_block:!R.timePickerInline,dp__time_display_inline:R.timePickerInline,"dp--time-invalid":E.value(ue.type),"dp--time-overlay-btn":!E.value(ue.type),"dp--hidden-el":b.value}),disabled:L(ue.type),tabindex:"0","data-test-id":`${ue.type}-toggle-overlay-btn-${o.order}`,onKeydown:pe=>a.unref(dn)(pe,()=>F(ue.type),!0),onClick:pe=>F(ue.type)},[R.$slots[ue.type]?a.renderSlot(R.$slots,ue.type,{key:0,text:J.value(ue.type).text,value:J.value(ue.type).value}):a.createCommentVNode("",!0),R.$slots[ue.type]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(J.value(ue.type).text),1)],64))],42,_7),a.createElementVNode("button",{ref_for:!0,ref:pe=>ae(pe,Ne,2),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:z.value(ue.type),"dp--hidden-el":b.value}),"data-test-id":`${ue.type}-time-dec-btn-${o.order}`,"aria-label":(te=a.unref(l))==null?void 0:te.decrementValue(ue.type),tabindex:"0",onKeydown:pe=>a.unref(dn)(pe,()=>ge(ue.type,!1,{keyboard:!0}),!0),onClick:pe=>a.unref(u).timeArrowHoldThreshold?void 0:ge(ue.type,!1),onMousedown:pe=>a.unref(u).timeArrowHoldThreshold?ge(ue.type,!1):void 0,onMouseup:ce},[o.timePickerInline?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[R.$slots["tp-inline-arrow-down"]?a.renderSlot(R.$slots,"tp-inline-arrow-down",{key:0}):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[oe[4]||(oe[4]=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),oe[5]||(oe[5]=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[R.$slots["arrow-down"]?a.renderSlot(R.$slots,"arrow-down",{key:0}):a.createCommentVNode("",!0),R.$slots["arrow-down"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(kp),{key:1}))],64))],42,C7)],64))],10,w7)}),128)),R.is24?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",S7,[R.$slots["am-pm-button"]?a.renderSlot(R.$slots,"am-pm-button",{key:0,toggle:ee,value:C.value}):a.createCommentVNode("",!0),R.$slots["am-pm-button"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:1,ref_key:"amPmButton",ref:g,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(Pe=a.unref(l))==null?void 0:Pe.amPmButton,tabindex:"0","data-compact":H.value,onClick:ee,onKeydown:oe[0]||(oe[0]=ue=>a.unref(dn)(ue,()=>ee(),!0))},a.toDisplayString(C.value),41,E7))])),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(q.value,(ue,Ne)=>(a.openBlock(),a.createBlock(a.Transition,{key:Ne,name:a.unref(h)(y[ue.type]),css:a.unref(v)},{default:a.withCtx(()=>{var de,G;return[y[ue.type]?(a.openBlock(),a.createBlock(Fs,{key:0,items:ie(ue.type),"is-last":R.autoApply&&!a.unref(u).keepActionRow,"esc-close":R.escClose,type:ue.type,"text-input":R.textInput,config:R.config,"arrow-navigation":R.arrowNavigation,"aria-labels":R.ariaLabels,"overlay-label":(G=(de=a.unref(l)).timeOverlay)==null?void 0:G.call(de,ue.type),onSelected:te=>me(ue.type,te),onToggle:te=>F(ue.type),onResetFlow:oe[1]||(oe[1]=te=>R.$emit("reset-flow"))},a.createSlots({"button-icon":a.withCtx(()=>[R.$slots["clock-icon"]?a.renderSlot(R.$slots,"clock-icon",{key:0}):a.createCommentVNode("",!0),R.$slots["clock-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(R.timePickerInline?a.unref(Ii):a.unref(bp)),{key:1}))]),_:2},[R.$slots[`${ue.type}-overlay-value`]?{name:"item",fn:a.withCtx(({item:te})=>[a.renderSlot(R.$slots,`${ue.type}-overlay-value`,{text:te.text,value:te.value})]),key:"0"}:void 0,R.$slots[`${ue.type}-overlay-header`]?{name:"header",fn:a.withCtx(()=>[a.renderSlot(R.$slots,`${ue.type}-overlay-header`,{toggle:()=>F(ue.type)})]),key:"1"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","aria-labels","overlay-label","onSelected","onToggle"])):a.createCommentVNode("",!0)]}),_:2},1032,["name","css"]))),128))]))}}}),T7=["data-dp-mobile"],P7=["aria-label","tabindex"],I7=["role","aria-label","tabindex"],A7=["aria-label"],Ay=a.defineComponent({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...pr},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=n,o=e,{buildMatrix:i,setTimePicker:s}=La(),l=a.useSlots(),{defaultedTransitions:c,defaultedAriaLabels:d,defaultedTextInput:u,defaultedConfig:f,defaultedRange:p}=kt(o),{transitionName:h,showTransition:v}=js(c),{hideNavigationButtons:y}=Vc(),C=a.ref(null),g=a.ref(null),S=a.ref([]),_=a.ref(null),b=a.ref(!1);a.onMounted(()=>{r("mount"),!o.timePicker&&o.arrowNavigation?i([Ft(C.value)],"time"):s(!0,o.timePicker)});const T=a.computed(()=>p.value.enabled&&o.modelAuto?my(o.internalModelValue):!0),E=a.ref(!1),x=U=>({hours:Array.isArray(o.hours)?o.hours[U]:o.hours,minutes:Array.isArray(o.minutes)?o.minutes[U]:o.minutes,seconds:Array.isArray(o.seconds)?o.seconds[U]:o.seconds}),A=a.computed(()=>{const U=[];if(p.value.enabled)for(let j=0;j<2;j++)U.push(x(j));else U.push(x(0));return U}),P=(U,j=!1,ie="")=>{j||r("reset-flow"),E.value=U,r(U?"overlay-opened":"overlay-closed",tn.time),o.arrowNavigation&&s(U),a.nextTick(()=>{ie!==""&&S.value[0]&&S.value[0].openChildCmp(ie)})},M=a.computed(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:o.autoApply&&!f.value.keepActionRow})),z=An(l,"timePicker"),V=(U,j,ie)=>p.value.enabled?j===0?[U,A.value[1][ie]]:[A.value[0][ie],U]:U,Y=U=>{r("update:hours",U)},D=U=>{r("update:minutes",U)},H=U=>{r("update:seconds",U)},B=()=>{if(_.value&&!u.value.enabled&&!o.noOverlayFocus){const U=hy(_.value);U&&U.focus({preventScroll:!0})}},q=U=>{b.value=!1,r("overlay-closed",U)},J=U=>{b.value=!0,r("overlay-opened",U)};return t({toggleTimePicker:P}),(U,j)=>{var ie;return a.openBlock(),a.createElementBlock("div",{class:"dp--tp-wrap","data-dp-mobile":U.isMobile},[!U.timePicker&&!U.timePickerInline?a.withDirectives((a.openBlock(),a.createElementBlock("button",{key:0,ref_key:"openTimePickerBtn",ref:C,type:"button",class:a.normalizeClass({...M.value,"dp--hidden-el":E.value}),"aria-label":(ie=a.unref(d))==null?void 0:ie.openTimePicker,tabindex:U.noOverlayFocus?void 0:0,"data-test-id":"open-time-picker-btn",onKeydown:j[0]||(j[0]=Z=>a.unref(dn)(Z,()=>P(!0))),onClick:j[1]||(j[1]=Z=>P(!0))},[U.$slots["clock-icon"]?a.renderSlot(U.$slots,"clock-icon",{key:0}):a.createCommentVNode("",!0),U.$slots["clock-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(bp),{key:1}))],42,P7)),[[a.vShow,!a.unref(y)(U.hideNavigation,"time")]]):a.createCommentVNode("",!0),a.createVNode(a.Transition,{name:a.unref(h)(E.value),css:a.unref(v)&&!U.timePickerInline},{default:a.withCtx(()=>{var Z,K;return[E.value||U.timePicker||U.timePickerInline?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"overlayRef",ref:_,role:U.timePickerInline?void 0:"dialog",class:a.normalizeClass({dp__overlay:!U.timePickerInline,"dp--overlay-absolute":!o.timePicker&&!U.timePickerInline,"dp--overlay-relative":o.timePicker}),style:a.normalizeStyle(U.timePicker?{height:`${a.unref(f).modeHeight}px`}:void 0),"aria-label":(Z=a.unref(d))==null?void 0:Z.timePicker,tabindex:U.timePickerInline?void 0:0},[a.createElementVNode("div",{class:a.normalizeClass(U.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[U.$slots["time-picker-overlay"]?a.renderSlot(U.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:Y,setMinutes:D,setSeconds:H}):a.createCommentVNode("",!0),U.$slots["time-picker-overlay"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(U.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(A.value,(I,L)=>a.withDirectives((a.openBlock(),a.createBlock(x7,a.mergeProps({key:L,ref_for:!0},{...U.$props,order:L,hours:I.hours,minutes:I.minutes,seconds:I.seconds,closeTimePickerBtn:g.value,disabledTimesConfig:e.disabledTimesConfig,disabled:L===0?a.unref(p).fixedStart:a.unref(p).fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:S,"validate-time":(F,N)=>e.validateTime(F,V(N,L,F)),"onUpdate:hours":F=>Y(V(F,L,"hours")),"onUpdate:minutes":F=>D(V(F,L,"minutes")),"onUpdate:seconds":F=>H(V(F,L,"seconds")),onMounted:B,onOverlayClosed:q,onOverlayOpened:J,onAmPmChange:j[2]||(j[2]=F=>U.$emit("am-pm-change",F))}),a.createSlots({_:2},[a.renderList(a.unref(z),(F,N)=>({name:F,fn:a.withCtx(ce=>[a.renderSlot(U.$slots,F,a.mergeProps({ref_for:!0},ce))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[a.vShow,L===0?!0:T.value]])),128))],2)),!U.timePicker&&!U.timePickerInline?a.withDirectives((a.openBlock(),a.createElementBlock("button",{key:2,ref_key:"closeTimePickerBtn",ref:g,type:"button",class:a.normalizeClass({...M.value,"dp--hidden-el":b.value}),"aria-label":(K=a.unref(d))==null?void 0:K.closeTimePicker,tabindex:"0",onKeydown:j[3]||(j[3]=I=>a.unref(dn)(I,()=>P(!1))),onClick:j[4]||(j[4]=I=>P(!1))},[U.$slots["calendar-icon"]?a.renderSlot(U.$slots,"calendar-icon",{key:0}):a.createCommentVNode("",!0),U.$slots["calendar-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Ii),{key:1}))],42,A7)),[[a.vShow,!a.unref(y)(U.hideNavigation,"time")]]):a.createCommentVNode("",!0)],2)],14,I7)):a.createCommentVNode("",!0)]}),_:3},8,["name","css"])],8,T7)}}}),My=(e,t,n,r)=>{const{defaultedRange:o}=kt(e),i=(_,b)=>Array.isArray(t[_])?t[_][b]:t[_],s=_=>e.enableSeconds?Array.isArray(t.seconds)?t.seconds[_]:t.seconds:0,l=(_,b)=>_?b!==void 0?ka(_,i("hours",b),i("minutes",b),s(b)):ka(_,t.hours,t.minutes,s()):uy(fe(),s(b)),c=(_,b)=>{t[_]=b},d=a.computed(()=>e.modelAuto&&o.value.enabled?Array.isArray(n.value)?n.value.length>1:!1:o.value.enabled),u=(_,b)=>{const T=Object.fromEntries(Object.keys(t).map(E=>E===_?[E,b]:[E,t[E]].slice()));if(d.value&&!o.value.disableTimeRangeValidation){const E=A=>n.value?ka(n.value[A],T.hours[A],T.minutes[A],T.seconds[A]):null,x=A=>cy(n.value[A],0);return!(Je(E(0),E(1))&&(li(E(0),x(1))||Cs(E(1),x(0))))}return!0},f=(_,b)=>{u(_,b)&&(c(_,b),r&&r())},p=_=>{f("hours",_)},h=_=>{f("minutes",_)},v=_=>{f("seconds",_)},y=(_,b,T,E)=>{b&&p(_),!b&&!T&&h(_),T&&v(_),n.value&&E(n.value)},C=_=>{if(_){const b=Array.isArray(_),T=b?[+_[0].hours,+_[1].hours]:+_.hours,E=b?[+_[0].minutes,+_[1].minutes]:+_.minutes,x=b?[+_[0].seconds,+_[1].seconds]:+_.seconds;c("hours",T),c("minutes",E),e.enableSeconds&&c("seconds",x)}},g=(_,b)=>{const T={hours:Array.isArray(t.hours)?t.hours[_]:t.hours,disabledArr:[]};return(b||b===0)&&(T.hours=b),Array.isArray(e.disabledTimes)&&(T.disabledArr=o.value.enabled&&Array.isArray(e.disabledTimes[_])?e.disabledTimes[_]:e.disabledTimes),T},S=a.computed(()=>(_,b)=>{var T;if(Array.isArray(e.disabledTimes)){const{disabledArr:E,hours:x}=g(_,b),A=E.filter(P=>+P.hours===x);return((T=A[0])==null?void 0:T.minutes)==="*"?{hours:[x],minutes:void 0,seconds:void 0}:{hours:[],minutes:(A==null?void 0:A.map(P=>+P.minutes))??[],seconds:(A==null?void 0:A.map(P=>P.seconds?+P.seconds:void 0))??[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:c,updateHours:p,updateMinutes:h,updateSeconds:v,getSetDateTime:l,updateTimeValues:y,getSecondsValue:s,assignStartTime:C,validateTime:u,disabledTimesConfig:S}},M7=(e,t)=>{const n=()=>{e.isTextInputDate&&b()},{modelValue:r,time:o}=Hs(e,t,n),{defaultedStartTime:i,defaultedRange:s,defaultedTz:l}=kt(e),{updateTimeValues:c,getSetDateTime:d,setTime:u,assignStartTime:f,disabledTimesConfig:p,validateTime:h}=My(e,o,r,v);function v(){t("update-flow-step")}const y=E=>{const{hours:x,minutes:A,seconds:P}=E;return{hours:+x,minutes:+A,seconds:P?+P:0}},C=()=>{if(e.startTime){if(Array.isArray(e.startTime)){const x=y(e.startTime[0]),A=y(e.startTime[1]);return[pt(fe(),x),pt(fe(),A)]}const E=y(e.startTime);return pt(fe(),E)}return s.value.enabled?[null,null]:null},g=()=>{if(s.value.enabled){const[E,x]=C();r.value=[Cn(d(E,0),l.value.timezone),Cn(d(x,1),l.value.timezone)]}else r.value=Cn(d(C()),l.value.timezone)},S=E=>Array.isArray(E)?[lo(fe(E[0])),lo(fe(E[1]))]:[lo(E??fe())],_=(E,x,A)=>{u("hours",E),u("minutes",x),u("seconds",e.enableSeconds?A:0)},b=()=>{const[E,x]=S(r.value);return s.value.enabled?_([E.hours,x.hours],[E.minutes,x.minutes],[E.seconds,x.seconds]):_(E.hours,E.minutes,E.seconds)};a.onMounted(()=>{if(!e.shadow)return f(i.value),r.value?b():g()});const T=()=>{Array.isArray(r.value)?r.value=r.value.map((E,x)=>E&&d(E,x)):r.value=d(r.value),t("time-update")};return{modelValue:r,time:o,disabledTimesConfig:p,updateTime:(E,x=!0,A=!1)=>{c(E,x,A,T)},validateTime:h}},O7=a.defineComponent({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{...pr},emits:["update:internal-model-value","time-update","am-pm-change","mount","reset-flow","update-flow-step","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,o=e,i=a.useSlots(),s=An(i,"timePicker"),l=a.ref(null),{time:c,modelValue:d,disabledTimesConfig:u,updateTime:f,validateTime:p}=M7(o,r);return a.onMounted(()=>{o.shadow||r("mount",null)}),t({getSidebarProps:()=>({modelValue:d,time:c,updateTime:f}),toggleTimePicker:(h,v=!1,y="")=>{var C;(C=l.value)==null||C.toggleTimePicker(h,v,y)}}),(h,v)=>(a.openBlock(),a.createBlock($c,{"multi-calendars":0,stretch:"","is-mobile":h.isMobile},{default:a.withCtx(()=>[a.createVNode(Ay,a.mergeProps({ref_key:"tpRef",ref:l},h.$props,{hours:a.unref(c).hours,minutes:a.unref(c).minutes,seconds:a.unref(c).seconds,"internal-model-value":h.internalModelValue,"disabled-times-config":a.unref(u),"validate-time":a.unref(p),"onUpdate:hours":v[0]||(v[0]=y=>a.unref(f)(y)),"onUpdate:minutes":v[1]||(v[1]=y=>a.unref(f)(y,!1)),"onUpdate:seconds":v[2]||(v[2]=y=>a.unref(f)(y,!1,!0)),onAmPmChange:v[3]||(v[3]=y=>h.$emit("am-pm-change",y)),onResetFlow:v[4]||(v[4]=y=>h.$emit("reset-flow")),onOverlayClosed:v[5]||(v[5]=y=>h.$emit("overlay-toggle",{open:!1,overlay:y})),onOverlayOpened:v[6]||(v[6]=y=>h.$emit("overlay-toggle",{open:!0,overlay:y}))}),a.createSlots({_:2},[a.renderList(a.unref(s),(y,C)=>({name:y,fn:a.withCtx(g=>[a.renderSlot(h.$slots,y,a.normalizeProps(a.guardReactiveProps(g)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])]),_:3},8,["is-mobile"]))}}),N7={class:"dp--header-wrap"},B7={key:0,class:"dp__month_year_wrap"},D7={key:0},R7={class:"dp__month_year_wrap"},L7=["data-dp-element","aria-label","data-test-id","onClick","onKeydown"],$7=a.defineComponent({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},...pr},emits:["update-month-year","mount","reset-flow","overlay-closed","overlay-opened"],setup(e,{expose:t,emit:n}){const r=n,o=e,{defaultedTransitions:i,defaultedAriaLabels:s,defaultedMultiCalendars:l,defaultedFilters:c,defaultedConfig:d,defaultedHighlight:u,propDates:f,defaultedUI:p}=kt(o),{transitionName:h,showTransition:v}=js(i),{buildMatrix:y}=La(),{handleMonthYearChange:C,isDisabled:g,updateMonthYear:S}=a7(o,r),{showLeftIcon:_,showRightIcon:b}=Vc(),T=a.ref(!1),E=a.ref(!1),x=a.ref(!1),A=a.ref([null,null,null,null]);a.onMounted(()=>{r("mount")});const P=K=>({get:()=>o[K],set:I=>{const L=K===Gn.month?Gn.year:Gn.month;r("update-month-year",{[K]:I,[L]:o[L]}),K===Gn.month?q(!0):J(!0)}}),M=a.computed(P(Gn.month)),z=a.computed(P(Gn.year)),V=a.computed(()=>K=>({month:o.month,year:o.year,items:K===Gn.month?o.months:o.years,instance:o.instance,updateMonthYear:S,toggle:K===Gn.month?q:J})),Y=a.computed(()=>o.months.find(I=>I.value===o.month)||{text:"",value:0}),D=a.computed(()=>ui(o.months,K=>{const I=o.month===K.value,L=Ss(K.value,gy(o.year,f.value.minDate),yy(o.year,f.value.maxDate))||c.value.months.includes(K.value),F=Cy(u.value,K.value,o.year);return{active:I,disabled:L,highlighted:F}})),H=a.computed(()=>ui(o.years,K=>{const I=o.year===K.value,L=Ss(K.value,di(f.value.minDate),di(f.value.maxDate))||c.value.years.includes(K.value),F=xp(u.value,K.value);return{active:I,disabled:L,highlighted:F}})),B=(K,I,L)=>{L!==void 0?K.value=L:K.value=!K.value,K.value?(x.value=!0,r("overlay-opened",I)):(x.value=!1,r("overlay-closed",I))},q=(K=!1,I)=>{U(K),B(T,tn.month,I)},J=(K=!1,I)=>{U(K),B(E,tn.year,I)},U=K=>{K||r("reset-flow")},j=(K,I)=>{o.arrowNavigation&&(A.value[I]=Ft(K),y(A.value,"monthYear"))},ie=a.computed(()=>{var K,I,L,F,N,ce;return[{type:Gn.month,index:1,toggle:q,modelValue:M.value,updateModelValue:ge=>M.value=ge,text:Y.value.text,showSelectionGrid:T.value,items:D.value,ariaLabel:(K=s.value)==null?void 0:K.openMonthsOverlay,overlayLabel:((L=(I=s.value).monthPicker)==null?void 0:L.call(I,!0))??void 0},{type:Gn.year,index:2,toggle:J,modelValue:z.value,updateModelValue:ge=>z.value=ge,text:vy(o.year,o.locale),showSelectionGrid:E.value,items:H.value,ariaLabel:(F=s.value)==null?void 0:F.openYearsOverlay,overlayLabel:((ce=(N=s.value).yearPicker)==null?void 0:ce.call(N,!0))??void 0}]}),Z=a.computed(()=>o.disableYearSelect?[ie.value[0]]:o.yearFirst?[...ie.value].reverse():ie.value);return t({toggleMonthPicker:q,toggleYearPicker:J,handleMonthYearChange:C}),(K,I)=>{var L,F,N,ce,ge,Fe;return a.openBlock(),a.createElementBlock("div",N7,[K.$slots["month-year"]?(a.openBlock(),a.createElementBlock("div",B7,[a.renderSlot(K.$slots,"month-year",a.normalizeProps(a.guardReactiveProps({month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:a.unref(S),handleMonthYearChange:a.unref(C),instance:e.instance})))])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[K.$slots["top-extra"]?(a.openBlock(),a.createElementBlock("div",D7,[a.renderSlot(K.$slots,"top-extra",{value:K.internalModelValue})])):a.createCommentVNode("",!0),a.createElementVNode("div",R7,[a.unref(_)(a.unref(l),e.instance)&&!K.vertical?(a.openBlock(),a.createBlock(as,{key:0,"aria-label":(L=a.unref(s))==null?void 0:L.prevMonth,disabled:a.unref(g)(!1),class:a.normalizeClass((F=a.unref(p))==null?void 0:F.navBtnPrev),"el-name":"action-prev",onActivate:I[0]||(I[0]=ee=>a.unref(C)(!1,!0)),onSetRef:I[1]||(I[1]=ee=>j(ee,0))},{default:a.withCtx(()=>[K.$slots["arrow-left"]?a.renderSlot(K.$slots,"arrow-left",{key:0}):a.createCommentVNode("",!0),K.$slots["arrow-left"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(gp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["dp__month_year_wrap",{dp__year_disable_select:K.disableYearSelect}])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Z.value,(ee,se)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:ee.type},[a.createElementVNode("button",{ref_for:!0,ref:ae=>j(ae,se+1),type:"button","data-dp-element":`overlay-${ee.type}`,class:a.normalizeClass(["dp__btn dp__month_year_select",{"dp--hidden-el":x.value}]),"aria-label":`${ee.text}-${ee.ariaLabel}`,"data-test-id":`${ee.type}-toggle-overlay-${e.instance}`,onClick:ee.toggle,onKeydown:ae=>a.unref(dn)(ae,()=>ee.toggle(),!0)},[K.$slots[ee.type]?a.renderSlot(K.$slots,ee.type,{key:0,text:ee.text,value:o[ee.type]}):a.createCommentVNode("",!0),K.$slots[ee.type]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(ee.text),1)],64))],42,L7),a.createVNode(a.Transition,{name:a.unref(h)(ee.showSelectionGrid),css:a.unref(v)},{default:a.withCtx(()=>[ee.showSelectionGrid?(a.openBlock(),a.createBlock(Fs,{key:0,items:ee.items,"arrow-navigation":K.arrowNavigation,"hide-navigation":K.hideNavigation,"is-last":K.autoApply&&!a.unref(d).keepActionRow,"skip-button-ref":!1,config:K.config,type:ee.type,"header-refs":[],"esc-close":K.escClose,"menu-wrap-ref":K.menuWrapRef,"text-input":K.textInput,"aria-labels":K.ariaLabels,"overlay-label":ee.overlayLabel,onSelected:ee.updateModelValue,onToggle:ee.toggle},a.createSlots({"button-icon":a.withCtx(()=>[K.$slots["calendar-icon"]?a.renderSlot(K.$slots,"calendar-icon",{key:0}):a.createCommentVNode("",!0),K.$slots["calendar-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Ii),{key:1}))]),_:2},[K.$slots[`${ee.type}-overlay-value`]?{name:"item",fn:a.withCtx(({item:ae})=>[a.renderSlot(K.$slots,`${ee.type}-overlay-value`,{text:ae.text,value:ae.value})]),key:"0"}:void 0,K.$slots[`${ee.type}-overlay`]?{name:"overlay",fn:a.withCtx(()=>[a.renderSlot(K.$slots,`${ee.type}-overlay`,a.mergeProps({ref_for:!0},V.value(ee.type)))]),key:"1"}:void 0,K.$slots[`${ee.type}-overlay-header`]?{name:"header",fn:a.withCtx(()=>[a.renderSlot(K.$slots,`${ee.type}-overlay-header`,{toggle:ee.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","menu-wrap-ref","text-input","aria-labels","overlay-label","onSelected","onToggle"])):a.createCommentVNode("",!0)]),_:2},1032,["name","css"])],64))),128))],2),a.unref(_)(a.unref(l),e.instance)&&K.vertical?(a.openBlock(),a.createBlock(as,{key:1,"aria-label":(N=a.unref(s))==null?void 0:N.prevMonth,"el-name":"action-prev",disabled:a.unref(g)(!1),class:a.normalizeClass((ce=a.unref(p))==null?void 0:ce.navBtnPrev),onActivate:I[2]||(I[2]=ee=>a.unref(C)(!1,!0))},{default:a.withCtx(()=>[K.$slots["arrow-up"]?a.renderSlot(K.$slots,"arrow-up",{key:0}):a.createCommentVNode("",!0),K.$slots["arrow-up"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(wp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):a.createCommentVNode("",!0),a.unref(b)(a.unref(l),e.instance)?(a.openBlock(),a.createBlock(as,{key:2,ref:"rightIcon","el-name":"action-next",disabled:a.unref(g)(!0),"aria-label":(ge=a.unref(s))==null?void 0:ge.nextMonth,class:a.normalizeClass((Fe=a.unref(p))==null?void 0:Fe.navBtnNext),onActivate:I[3]||(I[3]=ee=>a.unref(C)(!0,!0)),onSetRef:I[4]||(I[4]=ee=>j(ee,K.disableYearSelect?2:3))},{default:a.withCtx(()=>[K.$slots[K.vertical?"arrow-down":"arrow-right"]?a.renderSlot(K.$slots,K.vertical?"arrow-down":"arrow-right",{key:0}):a.createCommentVNode("",!0),K.$slots[K.vertical?"arrow-down":"arrow-right"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(K.vertical?a.unref(kp):a.unref(yp)),{key:1}))]),_:3},8,["disabled","aria-label","class"])):a.createCommentVNode("",!0)])],64))])}}}),z7={class:"dp__calendar_header",role:"row"},V7={key:0,class:"dp__calendar_header_item",role:"gridcell"},F7=["aria-label"],j7={key:0,class:"dp__calendar_item dp__week_num",role:"gridcell"},H7={class:"dp__cell_inner"},U7=["id","aria-pressed","aria-disabled","aria-label","tabindex","data-test-id","onClick","onTouchend","onKeydown","onMouseenter","onMouseleave","onMousedown"],W7=a.defineComponent({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...pr},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=n,o=e,{buildMultiLevelMatrix:i}=La(),{defaultedTransitions:s,defaultedConfig:l,defaultedAriaLabels:c,defaultedMultiCalendars:d,defaultedWeekNumbers:u,defaultedMultiDates:f,defaultedUI:p}=kt(o),h=a.ref(null),v=a.ref({bottom:"",left:"",transform:""}),y=a.ref([]),C=a.ref(null),g=a.ref(!0),S=a.ref(""),_=a.ref({startX:0,endX:0,startY:0,endY:0}),b=a.ref([]),T=a.ref({left:"50%"}),E=a.ref(!1),x=a.computed(()=>o.calendar?o.calendar(o.mappedDates):o.mappedDates),A=a.computed(()=>o.dayNames?Array.isArray(o.dayNames)?o.dayNames:o.dayNames(o.locale,+o.weekStart):ET(o.formatLocale,o.locale,+o.weekStart));a.onMounted(()=>{r("mount",{cmp:"calendar",refs:y}),l.value.noSwipe||C.value&&(C.value.addEventListener("touchstart",j,{passive:!1}),C.value.addEventListener("touchend",ie,{passive:!1}),C.value.addEventListener("touchmove",Z,{passive:!1})),o.monthChangeOnScroll&&C.value&&C.value.addEventListener("wheel",L,{passive:!1})});const P=ee=>ee?o.vertical?"vNext":"next":o.vertical?"vPrevious":"previous",M=(ee,se)=>{if(o.transitions){const ae=fn(qr(fe(),o.month,o.year));S.value=Ot(fn(qr(fe(),ee,se)),ae)?s.value[P(!0)]:s.value[P(!1)],g.value=!1,a.nextTick(()=>{g.value=!0})}},z=a.computed(()=>({...p.value.calendar??{}})),V=a.computed(()=>ee=>{const se=TT(ee);return{dp__marker_dot:se.type==="dot",dp__marker_line:se.type==="line"}}),Y=a.computed(()=>ee=>Je(ee,h.value)),D=a.computed(()=>({dp__calendar:!0,dp__calendar_next:d.value.count>0&&o.instance!==0})),H=a.computed(()=>ee=>o.hideOffsetDates?ee.current:!0),B=async(ee,se)=>{const{width:ae,height:me}=ee.getBoundingClientRect();h.value=se.value;let R={left:`${ae/2}px`},oe=-50;if(await a.nextTick(),b.value[0]){const{left:Pe,width:ue}=b.value[0].getBoundingClientRect();Pe<0&&(R={left:"0"},oe=0,T.value.left=`${ae/2}px`),window.innerWidth<Pe+ue&&(R={right:"0"},oe=0,T.value.left=`${ue-ae/2}px`)}v.value={bottom:`${me}px`,...R,transform:`translateX(${oe}%)`}},q=async(ee,se,ae)=>{var me,R,oe;const Pe=Ft(y.value[se][ae]);Pe&&((me=ee.marker)!=null&&me.customPosition&&(oe=(R=ee.marker)==null?void 0:R.tooltip)!=null&&oe.length?v.value=ee.marker.customPosition(Pe):await B(Pe,ee),r("tooltip-open",ee.marker))},J=async(ee,se,ae)=>{var me,R;if(E.value&&f.value.enabled&&f.value.dragSelect)return r("select-date",ee);if(r("set-hover-date",ee),(R=(me=ee.marker)==null?void 0:me.tooltip)!=null&&R.length){if(o.hideOffsetDates&&!ee.current)return;await q(ee,se,ae)}},U=ee=>{h.value&&(h.value=null,v.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),r("tooltip-close",ee.marker))},j=ee=>{_.value.startX=ee.changedTouches[0].screenX,_.value.startY=ee.changedTouches[0].screenY},ie=ee=>{_.value.endX=ee.changedTouches[0].screenX,_.value.endY=ee.changedTouches[0].screenY,K()},Z=ee=>{o.vertical&&!o.inline&&ee.preventDefault()},K=()=>{const ee=o.vertical?"Y":"X";Math.abs(_.value[`start${ee}`]-_.value[`end${ee}`])>10&&r("handle-swipe",_.value[`start${ee}`]>_.value[`end${ee}`]?"right":"left")},I=(ee,se,ae)=>{ee&&(Array.isArray(y.value[se])?y.value[se][ae]=ee:y.value[se]=[ee]),o.arrowNavigation&&i(y.value,"calendar")},L=ee=>{o.monthChangeOnScroll&&(ee.preventDefault(),r("handle-scroll",ee))},F=ee=>u.value.type==="local"?mp(ee.value,{weekStartsOn:+o.weekStart}):u.value.type==="iso"?fp(ee.value):typeof u.value.type=="function"?u.value.type(ee.value):"",N=ee=>{const se=ee[0];return u.value.hideOnOffsetDates?ee.some(ae=>ae.current)?F(se):"":F(se)},ce=(ee,se,ae=!0)=>{ae&&uv()||!ae&&!uv()||(!f.value.enabled||l.value.allowPreventDefault)&&(wa(ee,l.value),r("select-date",se))},ge=ee=>{wa(ee,l.value)},Fe=ee=>{f.value.enabled&&f.value.dragSelect?(E.value=!0,r("select-date",ee)):f.value.enabled&&r("select-date",ee)};return t({triggerTransition:M}),(ee,se)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(D.value)},[a.createElementVNode("div",{ref_key:"calendarWrapRef",ref:C,class:a.normalizeClass(z.value),role:"grid"},[a.createElementVNode("div",z7,[ee.weekNumbers?(a.openBlock(),a.createElementBlock("div",V7,a.toDisplayString(ee.weekNumName),1)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(A.value,(ae,me)=>{var R,oe;return a.openBlock(),a.createElementBlock("div",{key:me,class:"dp__calendar_header_item",role:"gridcell","data-test-id":"calendar-header","aria-label":(oe=(R=a.unref(c))==null?void 0:R.weekDay)==null?void 0:oe.call(R,me)},[ee.$slots["calendar-header"]?a.renderSlot(ee.$slots,"calendar-header",{key:0,day:ae,index:me}):a.createCommentVNode("",!0),ee.$slots["calendar-header"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(ae),1)],64))],8,F7)}),128))]),se[2]||(se[2]=a.createElementVNode("div",{class:"dp__calendar_header_separator"},null,-1)),a.createVNode(a.Transition,{name:S.value,css:!!ee.transitions},{default:a.withCtx(()=>[g.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:"dp__calendar",role:"rowgroup",onMouseleave:se[1]||(se[1]=ae=>E.value=!1)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(x.value,(ae,me)=>(a.openBlock(),a.createElementBlock("div",{key:me,class:"dp__calendar_row",role:"row"},[ee.weekNumbers?(a.openBlock(),a.createElementBlock("div",j7,[a.createElementVNode("div",H7,a.toDisplayString(N(ae.days)),1)])):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ae.days,(R,oe)=>{var Pe,ue,Ne;return a.openBlock(),a.createElementBlock("div",{id:a.unref(Sy)(R.value),ref_for:!0,ref:de=>I(de,me,oe),key:oe+me,role:"gridcell",class:"dp__calendar_item","aria-pressed":(R.classData.dp__active_date||R.classData.dp__range_start||R.classData.dp__range_start)??void 0,"aria-disabled":R.classData.dp__cell_disabled||void 0,"aria-label":(ue=(Pe=a.unref(c))==null?void 0:Pe.day)==null?void 0:ue.call(Pe,R),tabindex:!R.current&&ee.hideOffsetDates?void 0:0,"data-test-id":R.value,onClick:a.withModifiers(de=>ce(de,R),["prevent"]),onTouchend:de=>ce(de,R,!1),onKeydown:de=>a.unref(dn)(de,()=>ee.$emit("select-date",R)),onMouseenter:de=>J(R,me,oe),onMouseleave:de=>U(R),onMousedown:de=>Fe(R),onMouseup:se[0]||(se[0]=de=>E.value=!1)},[a.createElementVNode("div",{class:a.normalizeClass(["dp__cell_inner",R.classData])},[ee.$slots.day&&H.value(R)?a.renderSlot(ee.$slots,"day",{key:0,day:+R.text,date:R.value}):a.createCommentVNode("",!0),ee.$slots.day?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(R.text),1)],64)),R.marker&&H.value(R)?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[ee.$slots.marker?a.renderSlot(ee.$slots,"marker",{key:0,marker:R.marker,day:+R.text,date:R.value}):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(V.value(R.marker)),style:a.normalizeStyle(R.marker.color?{backgroundColor:R.marker.color}:{})},null,6))],64)):a.createCommentVNode("",!0),Y.value(R.value)?(a.openBlock(),a.createElementBlock("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:b,class:"dp__marker_tooltip",style:a.normalizeStyle(v.value)},[(Ne=R.marker)!=null&&Ne.tooltip?(a.openBlock(),a.createElementBlock("div",{key:0,class:"dp__tooltip_content",onClick:ge},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(R.marker.tooltip,(de,G)=>(a.openBlock(),a.createElementBlock("div",{key:G,class:"dp__tooltip_text"},[ee.$slots["marker-tooltip"]?a.renderSlot(ee.$slots,"marker-tooltip",{key:0,tooltip:de,day:R.value}):a.createCommentVNode("",!0),ee.$slots["marker-tooltip"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",{class:"dp__tooltip_mark",style:a.normalizeStyle(de.color?{backgroundColor:de.color}:{})},null,4),a.createElementVNode("div",null,a.toDisplayString(de.text),1)],64))]))),128)),a.createElementVNode("div",{class:"dp__arrow_bottom_tp",style:a.normalizeStyle(T.value)},null,4)])):a.createCommentVNode("",!0)],4)):a.createCommentVNode("",!0)],2)],40,U7)}),128))]))),128))],32)):a.createCommentVNode("",!0)]),_:3},8,["name","css"])],2)],2))}}),hv=e=>Array.isArray(e),q7=(e,t,n,r)=>{const o=a.ref([]),i=a.ref(new Date),s=a.ref(),l=()=>j(e.isTextInputDate),{modelValue:c,calendars:d,time:u,today:f}=Hs(e,t,l),{defaultedMultiCalendars:p,defaultedStartTime:h,defaultedRange:v,defaultedConfig:y,defaultedTz:C,propDates:g,defaultedMultiDates:S}=kt(e),{validateMonthYearInRange:_,isDisabled:b,isDateRangeAllowed:T,checkMinMaxRange:E}=$a(e),{updateTimeValues:x,getSetDateTime:A,setTime:P,assignStartTime:M,validateTime:z,disabledTimesConfig:V}=My(e,u,c,r),Y=a.computed(()=>W=>d.value[W]?d.value[W].month:0),D=a.computed(()=>W=>d.value[W]?d.value[W].year:0),H=W=>!y.value.keepViewOnOffsetClick||W?!0:!s.value,B=(W,re,we,Q=!1)=>{var he,Ce;H(Q)&&(d.value[W]||(d.value[W]={month:0,year:0}),d.value[W].month=cv(re)?(he=d.value[W])==null?void 0:he.month:re,d.value[W].year=cv(we)?(Ce=d.value[W])==null?void 0:Ce.year:we)},q=()=>{e.autoApply&&t("select-date")};a.onMounted(()=>{e.shadow||(c.value||(ee(),h.value&&M(h.value)),j(!0),e.focusStartDate&&e.startDate&&ee())});const J=a.computed(()=>{var W;return(W=e.flow)!=null&&W.length&&!e.partialFlow?e.flowStep===e.flow.length:!0}),U=()=>{e.autoApply&&J.value&&t("auto-apply",e.partialFlow?e.flowStep!==e.flow.length:!1)},j=(W=!1)=>{if(c.value)return Array.isArray(c.value)?(o.value=c.value,N(W)):K(c.value,W);if(p.value.count&&W&&!e.startDate)return Z(fe(),W)},ie=()=>Array.isArray(c.value)&&v.value.enabled?Ke(c.value[0])===Ke(c.value[1]??c.value[0]):!1,Z=(W=new Date,re=!1)=>{if((!p.value.count||!p.value.static||re)&&B(0,Ke(W),Ve(W)),p.value.count&&(!c.value||ie()||!p.value.solo)&&(!p.value.solo||re))for(let we=1;we<p.value.count;we++){const Q=pt(fe(),{month:Y.value(we-1),year:D.value(we-1)}),he=Y1(Q,{months:1});d.value[we]={month:Ke(he),year:Ve(he)}}},K=(W,re)=>{Z(W),P("hours",ea(W)),P("minutes",Pa(W)),P("seconds",si(W)),p.value.count&&re&&Fe()},I=W=>{if(p.value.count){if(p.value.solo)return 0;const re=Ke(W[0]),we=Ke(W[1]);return Math.abs(we-re)<p.value.count?0:1}return 1},L=(W,re)=>{W[1]&&v.value.showLastInRange?Z(W[I(W)],re):Z(W[0],re);const we=(Q,he)=>[Q(W[0]),W[1]?Q(W[1]):u[he][1]];P("hours",we(ea,"hours")),P("minutes",we(Pa,"minutes")),P("seconds",we(si,"seconds"))},F=(W,re)=>{if((v.value.enabled||e.weekPicker)&&!S.value.enabled)return L(W,re);if(S.value.enabled&&re){const we=W[W.length-1];return K(we,re)}},N=W=>{const re=c.value;F(re,W),p.value.count&&p.value.solo&&Fe()},ce=(W,re)=>{const we=pt(fe(),{month:Y.value(re),year:D.value(re)}),Q=W<0?ir(we,1):ci(we,1);_(Ke(Q),Ve(Q),W<0,e.preventMinMaxNavigation)&&(B(re,Ke(Q),Ve(Q)),t("update-month-year",{instance:re,month:Ke(Q),year:Ve(Q)}),p.value.count&&!p.value.solo&&ge(re),n())},ge=W=>{for(let re=W-1;re>=0;re--){const we=ci(pt(fe(),{month:Y.value(re+1),year:D.value(re+1)}),1);B(re,Ke(we),Ve(we))}for(let re=W+1;re<=p.value.count-1;re++){const we=ir(pt(fe(),{month:Y.value(re-1),year:D.value(re-1)}),1);B(re,Ke(we),Ve(we))}},Fe=()=>{if(Array.isArray(c.value)&&c.value.length===2){const W=fe(fe(c.value[1]?c.value[1]:ir(c.value[0],1))),[re,we]=[Ke(c.value[0]),Ve(c.value[0])],[Q,he]=[Ke(c.value[1]),Ve(c.value[1])];(re!==Q||re===Q&&we!==he)&&p.value.solo&&B(1,Ke(W),Ve(W))}else c.value&&!Array.isArray(c.value)&&(B(0,Ke(c.value),Ve(c.value)),Z(fe()))},ee=()=>{e.startDate&&(B(0,Ke(fe(e.startDate)),Ve(fe(e.startDate))),p.value.count&&ge(0))},se=(W,re)=>{if(e.monthChangeOnScroll){const we=new Date().getTime()-i.value.getTime(),Q=Math.abs(W.deltaY);let he=500;Q>1&&(he=100),Q>100&&(he=0),we>he&&(i.value=new Date,ce(e.monthChangeOnScroll!=="inverse"?-W.deltaY:W.deltaY,re))}},ae=(W,re,we=!1)=>{e.monthChangeOnArrows&&e.vertical===we&&me(W,re)},me=(W,re)=>{ce(W==="right"?-1:1,re)},R=W=>{if(g.value.markers)return nc(W.value,g.value.markers)},oe=(W,re)=>{switch(e.sixWeeks===!0?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[W==0,!0];case"fair":return[W==0||re>W,!0];case"append":return[!1,!1];default:return[!1,!1]}},Pe=(W,re,we,Q)=>{if(e.sixWeeks&&W.length<6){const he=6-W.length,Ce=(re.getDay()+7-Q)%7,at=6-(we.getDay()+7-Q)%7,[ut,dt]=oe(Ce,at);for(let Et=1;Et<=he;Et++)if(dt?!!(Et%2)==ut:ut){const Rt=W[0].days[0],an=ue(tr(Rt.value,-7),Ke(re));W.unshift({days:an})}else{const Rt=W[W.length-1],an=Rt.days[Rt.days.length-1],vn=ue(tr(an.value,1),Ke(re));W.push({days:vn})}}return W},ue=(W,re)=>{const we=fe(W),Q=[];for(let he=0;he<7;he++){const Ce=tr(we,he),at=Ke(Ce)!==re;Q.push({text:e.hideOffsetDates&&at?"":Ce.getDate(),value:Ce,current:!at,classData:{}})}return Q},Ne=(W,re)=>{const we=[],Q=new Date(re,W),he=new Date(re,W+1,0),Ce=e.weekStart,at=cr(Q,{weekStartsOn:Ce}),ut=dt=>{const Et=ue(dt,W);if(we.push({days:Et}),!we[we.length-1].days.some(Rt=>Je(fn(Rt.value),fn(he)))){const Rt=tr(dt,7);ut(Rt)}};return ut(at),Pe(we,Q,he,Ce)},de=W=>{const re=ka(fe(W.value),u.hours,u.minutes,ot());t("date-update",re),S.value.enabled?Tp(re,c,S.value.limit):c.value=re,r(),a.nextTick().then(()=>{U()})},G=W=>v.value.noDisabledRange?by(o.value[0],W).some(re=>b(re)):!1,te=()=>{o.value=c.value?c.value.slice():[],o.value.length===2&&!(v.value.fixedStart||v.value.fixedEnd)&&(o.value=[])},pe=(W,re)=>{const we=[fe(W.value),tr(fe(W.value),+v.value.autoRange)];T(we)?(re&&xe(W.value),o.value=we):t("invalid-date",W.value)},xe=W=>{const re=Ke(fe(W)),we=Ve(fe(W));if(B(0,re,we),p.value.count>0)for(let Q=1;Q<p.value.count;Q++){const he=BT(pt(fe(W),{year:D.value(Q-1),month:Y.value(Q-1)}));B(Q,he.month,he.year)}},Te=W=>{if(G(W.value)||!E(W.value,c.value,v.value.fixedStart?0:1))return t("invalid-date",W.value);o.value=Py(fe(W.value),c,t,v)},Se=(W,re)=>{if(te(),v.value.autoRange)return pe(W,re);if(v.value.fixedStart||v.value.fixedEnd)return Te(W);o.value[0]?E(fe(W.value),c.value)&&!G(W.value)?Tt(fe(W.value),fe(o.value[0]))?(o.value.unshift(fe(W.value)),t("range-end",o.value[0])):(o.value[1]=fe(W.value),t("range-end",o.value[1])):(e.autoApply&&t("auto-apply-invalid",W.value),t("invalid-date",W.value)):(o.value[0]=fe(W.value),t("range-start",o.value[0]))},ot=(W=!0)=>e.enableSeconds?Array.isArray(u.seconds)?W?u.seconds[0]:u.seconds[1]:u.seconds:0,Ge=W=>{o.value[W]=ka(o.value[W],u.hours[W],u.minutes[W],ot(W!==1))},mn=()=>{var W,re;o.value[0]&&o.value[1]&&+((W=o.value)==null?void 0:W[0])>+((re=o.value)==null?void 0:re[1])&&(o.value.reverse(),t("range-start",o.value[0]),t("range-end",o.value[1]))},xn=()=>{o.value.length&&(o.value[0]&&!o.value[1]?Ge(0):(Ge(0),Ge(1),r()),mn(),c.value=o.value.slice(),zc(o.value,t,e.autoApply,e.modelAuto))},hn=(W,re=!1)=>{if(b(W.value)||!W.current&&e.hideOffsetDates)return t("invalid-date",W.value);if(s.value=JSON.parse(JSON.stringify(W)),!v.value.enabled)return de(W);hv(u.hours)&&hv(u.minutes)&&!S.value.enabled&&(Se(W,re),xn())},zt=(W,re)=>{var we;B(W,re.month,re.year,!0),p.value.count&&!p.value.solo&&ge(W),t("update-month-year",{instance:W,month:re.month,year:re.year}),n(p.value.solo?W:void 0);const Q=(we=e.flow)!=null&&we.length?e.flow[e.flowStep]:void 0;!re.fromNav&&(Q===tn.month||Q===tn.year)&&r()},Gt=(W,re)=>{Ty({value:W,modelValue:c,range:v.value.enabled,timezone:re?void 0:C.value.timezone}),q(),e.multiCalendars&&a.nextTick().then(()=>j(!0))},ne=()=>{const W=_p(fe(),C.value);!v.value.enabled&&!S.value.enabled?c.value=W:c.value&&Array.isArray(c.value)&&c.value[0]?S.value.enabled?c.value=[...c.value,W]:c.value=Tt(W,c.value[0])?[W,c.value[0]]:[c.value[0],W]:c.value=[W],q()},ke=()=>{if(Array.isArray(c.value))if(S.value.enabled){const W=Ie();c.value[c.value.length-1]=A(W)}else c.value=c.value.map((W,re)=>W&&A(W,re));else c.value=A(c.value);t("time-update")},Ie=()=>Array.isArray(c.value)&&c.value.length?c.value[c.value.length-1]:null;return{calendars:d,modelValue:c,month:Y,year:D,time:u,disabledTimesConfig:V,today:f,validateTime:z,getCalendarDays:Ne,getMarker:R,handleScroll:se,handleSwipe:me,handleArrow:ae,selectDate:hn,updateMonthYear:zt,presetDate:Gt,selectCurrentDate:ne,updateTime:(W,re=!0,we=!1)=>{x(W,re,we,ke)},assignMonthAndYear:Z}},Y7={key:0},G7=a.defineComponent({__name:"DatePicker",props:{...pr},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,o=e,{calendars:i,month:s,year:l,modelValue:c,time:d,disabledTimesConfig:u,today:f,validateTime:p,getCalendarDays:h,getMarker:v,handleArrow:y,handleScroll:C,handleSwipe:g,selectDate:S,updateMonthYear:_,presetDate:b,selectCurrentDate:T,updateTime:E,assignMonthAndYear:x}=q7(o,r,ie,Z),A=a.useSlots(),{setHoverDate:P,getDayClassData:M,clearHoverDate:z}=dP(c,o),{defaultedMultiCalendars:V}=kt(o),Y=a.ref([]),D=a.ref([]),H=a.ref(null),B=An(A,"calendar"),q=An(A,"monthYear"),J=An(A,"timePicker"),U=se=>{o.shadow||r("mount",se)};a.watch(i,()=>{o.shadow||setTimeout(()=>{r("recalculate-position")},0)},{deep:!0}),a.watch(V,(se,ae)=>{se.count-ae.count>0&&x()},{deep:!0});const j=a.computed(()=>se=>h(s.value(se),l.value(se)).map(ae=>({...ae,days:ae.days.map(me=>(me.marker=v(me),me.classData=M(me),me))})));function ie(se){var ae;se||se===0?(ae=D.value[se])==null||ae.triggerTransition(s.value(se),l.value(se)):D.value.forEach((me,R)=>me.triggerTransition(s.value(R),l.value(R)))}function Z(){r("update-flow-step")}const K=(se,ae=!1)=>{S(se,ae),o.spaceConfirm&&r("select-date")},I=(se,ae,me=0)=>{var R;(R=Y.value[me])==null||R.toggleMonthPicker(se,ae)},L=(se,ae,me=0)=>{var R;(R=Y.value[me])==null||R.toggleYearPicker(se,ae)},F=(se,ae,me)=>{var R;(R=H.value)==null||R.toggleTimePicker(se,ae,me)},N=(se,ae)=>{var me;if(!o.range){const R=c.value?c.value:f,oe=ae?new Date(ae):R,Pe=se?cr(oe,{weekStartsOn:1}):ey(oe,{weekStartsOn:1});S({value:Pe,current:Ke(oe)===s.value(0),text:"",classData:{}}),(me=document.getElementById(Sy(Pe)))==null||me.focus()}},ce=se=>{var ae;(ae=Y.value[0])==null||ae.handleMonthYearChange(se,!0)},ge=se=>{_(0,{month:s.value(0),year:l.value(0)+(se?1:-1),fromNav:!0})},Fe=(se,ae)=>{se===tn.time&&r(`time-picker-${ae?"open":"close"}`),r("overlay-toggle",{open:ae,overlay:se})},ee=se=>{r("overlay-toggle",{open:!1,overlay:se}),r("focus-menu")};return t({clearHoverDate:z,presetDate:b,selectCurrentDate:T,toggleMonthPicker:I,toggleYearPicker:L,toggleTimePicker:F,handleArrow:y,updateMonthYear:_,getSidebarProps:()=>({modelValue:c,month:s,year:l,time:d,updateTime:E,updateMonthYear:_,selectDate:S,presetDate:b}),changeMonth:ce,changeYear:ge,selectWeekDate:N}),(se,ae)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode($c,{"multi-calendars":a.unref(V).count,collapse:se.collapse,"is-mobile":se.isMobile},{default:a.withCtx(({instance:me,index:R})=>[se.disableMonthYearSelect?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock($7,a.mergeProps({key:0,ref:oe=>{oe&&(Y.value[R]=oe)},months:a.unref(py)(se.formatLocale,se.locale,se.monthNameFormat),years:a.unref(Cp)(se.yearRange,se.locale,se.reverseYears),month:a.unref(s)(me),year:a.unref(l)(me),instance:me},se.$props,{onMount:ae[0]||(ae[0]=oe=>U(a.unref(so).header)),onResetFlow:ae[1]||(ae[1]=oe=>se.$emit("reset-flow")),onUpdateMonthYear:oe=>a.unref(_)(me,oe),onOverlayClosed:ee,onOverlayOpened:ae[2]||(ae[2]=oe=>se.$emit("overlay-toggle",{open:!0,overlay:oe}))}),a.createSlots({_:2},[a.renderList(a.unref(q),(oe,Pe)=>({name:oe,fn:a.withCtx(ue=>[a.renderSlot(se.$slots,oe,a.normalizeProps(a.guardReactiveProps(ue)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),a.createVNode(W7,a.mergeProps({ref:oe=>{oe&&(D.value[R]=oe)},"mapped-dates":j.value(me),month:a.unref(s)(me),year:a.unref(l)(me),instance:me},se.$props,{onSelectDate:oe=>a.unref(S)(oe,me!==1),onHandleSpace:oe=>K(oe,me!==1),onSetHoverDate:ae[3]||(ae[3]=oe=>a.unref(P)(oe)),onHandleScroll:oe=>a.unref(C)(oe,me),onHandleSwipe:oe=>a.unref(g)(oe,me),onMount:ae[4]||(ae[4]=oe=>U(a.unref(so).calendar)),onResetFlow:ae[5]||(ae[5]=oe=>se.$emit("reset-flow")),onTooltipOpen:ae[6]||(ae[6]=oe=>se.$emit("tooltip-open",oe)),onTooltipClose:ae[7]||(ae[7]=oe=>se.$emit("tooltip-close",oe))}),a.createSlots({_:2},[a.renderList(a.unref(B),(oe,Pe)=>({name:oe,fn:a.withCtx(ue=>[a.renderSlot(se.$slots,oe,a.normalizeProps(a.guardReactiveProps({...ue})))])}))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars","collapse","is-mobile"]),se.enableTimePicker?(a.openBlock(),a.createElementBlock("div",Y7,[se.$slots["time-picker"]?a.renderSlot(se.$slots,"time-picker",a.normalizeProps(a.mergeProps({key:0},{time:a.unref(d),updateTime:a.unref(E)}))):(a.openBlock(),a.createBlock(Ay,a.mergeProps({key:1,ref_key:"timePickerRef",ref:H},se.$props,{hours:a.unref(d).hours,minutes:a.unref(d).minutes,seconds:a.unref(d).seconds,"internal-model-value":se.internalModelValue,"disabled-times-config":a.unref(u),"validate-time":a.unref(p),onMount:ae[8]||(ae[8]=me=>U(a.unref(so).timePicker)),"onUpdate:hours":ae[9]||(ae[9]=me=>a.unref(E)(me)),"onUpdate:minutes":ae[10]||(ae[10]=me=>a.unref(E)(me,!1)),"onUpdate:seconds":ae[11]||(ae[11]=me=>a.unref(E)(me,!1,!0)),onResetFlow:ae[12]||(ae[12]=me=>se.$emit("reset-flow")),onOverlayClosed:ae[13]||(ae[13]=me=>Fe(me,!1)),onOverlayOpened:ae[14]||(ae[14]=me=>Fe(me,!0)),onAmPmChange:ae[15]||(ae[15]=me=>se.$emit("am-pm-change",me))}),a.createSlots({_:2},[a.renderList(a.unref(J),(me,R)=>({name:me,fn:a.withCtx(oe=>[a.renderSlot(se.$slots,me,a.normalizeProps(a.guardReactiveProps(oe)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):a.createCommentVNode("",!0)],64))}}),X7=(e,t)=>{const n=a.ref(),{defaultedMultiCalendars:r,defaultedConfig:o,defaultedHighlight:i,defaultedRange:s,propDates:l,defaultedFilters:c,defaultedMultiDates:d}=kt(e),{modelValue:u,year:f,month:p,calendars:h}=Hs(e,t),{isDisabled:v}=$a(e),{selectYear:y,groupedYears:C,showYearPicker:g,isDisabled:S,toggleYearPicker:_,handleYearSelect:b,handleYear:T}=Iy({modelValue:u,multiCalendars:r,range:s,highlight:i,calendars:h,propDates:l,month:p,year:f,filters:c,props:e,emit:t}),E=(H,B)=>[H,B].map(q=>Or(q,"MMMM",{locale:e.formatLocale})).join("-"),x=a.computed(()=>H=>u.value?Array.isArray(u.value)?u.value.some(B=>iv(H,B)):iv(u.value,H):!1),A=H=>{if(s.value.enabled){if(Array.isArray(u.value)){const B=Je(H,u.value[0])||Je(H,u.value[1]);return Rc(u.value,n.value,H)&&!B}return!1}return!1},P=(H,B)=>H.quarter===ev(B)&&H.year===Ve(B),M=H=>typeof i.value=="function"?i.value({quarter:ev(H),year:Ve(H)}):!!i.value.quarters.find(B=>P(B,H)),z=a.computed(()=>H=>{const B=pt(new Date,{year:f.value(H)});return r8({start:_s(B),end:Z1(B)}).map(q=>{const J=to(q),U=tv(q),j=v(q),ie=A(J),Z=M(J);return{text:E(J,U),value:J,active:x.value(J),highlighted:Z,disabled:j,isBetween:ie}})}),V=H=>{Tp(H,u,d.value.limit),t("auto-apply",!0)},Y=H=>{u.value=Pp(u,H,t),zc(u.value,t,e.autoApply,e.modelAuto)},D=H=>{u.value=H,t("auto-apply")};return{defaultedConfig:o,defaultedMultiCalendars:r,groupedYears:C,year:f,isDisabled:S,quarters:z,showYearPicker:g,modelValue:u,setHoverDate:H=>{n.value=H},selectYear:y,selectQuarter:(H,B,q)=>{if(!q)return h.value[B].month=Ke(tv(H)),d.value.enabled?V(H):s.value.enabled?Y(H):D(H)},toggleYearPicker:_,handleYearSelect:b,handleYear:T}},K7={class:"dp--quarter-items"},J7=["data-test-id","disabled","onClick","onMouseover"],Q7=a.defineComponent({compatConfig:{MODE:3},__name:"QuarterPicker",props:{...pr},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end","overlay-toggle","update-month-year"],setup(e,{expose:t,emit:n}){const r=n,o=e,i=a.useSlots(),s=An(i,"yearMode"),{defaultedMultiCalendars:l,defaultedConfig:c,groupedYears:d,year:u,isDisabled:f,quarters:p,modelValue:h,showYearPicker:v,setHoverDate:y,selectQuarter:C,toggleYearPicker:g,handleYearSelect:S,handleYear:_}=X7(o,r);return t({getSidebarProps:()=>({modelValue:h,year:u,selectQuarter:C,handleYearSelect:S,handleYear:_})}),(b,T)=>(a.openBlock(),a.createBlock($c,{"multi-calendars":a.unref(l).count,collapse:b.collapse,stretch:"","is-mobile":b.isMobile},{default:a.withCtx(({instance:E})=>[a.createElementVNode("div",{class:"dp-quarter-picker-wrap",style:a.normalizeStyle({minHeight:`${a.unref(c).modeHeight}px`})},[b.$slots["top-extra"]?a.renderSlot(b.$slots,"top-extra",{key:0,value:b.internalModelValue}):a.createCommentVNode("",!0),a.createElementVNode("div",null,[a.createVNode(xy,a.mergeProps(b.$props,{items:a.unref(d)(E),instance:E,"show-year-picker":a.unref(v)[E],year:a.unref(u)(E),"is-disabled":x=>a.unref(f)(E,x),onHandleYear:x=>a.unref(_)(E,x),onYearSelect:x=>a.unref(S)(x,E),onToggleYearPicker:x=>a.unref(g)(E,x==null?void 0:x.flow,x==null?void 0:x.show)}),a.createSlots({_:2},[a.renderList(a.unref(s),(x,A)=>({name:x,fn:a.withCtx(P=>[a.renderSlot(b.$slots,x,a.normalizeProps(a.guardReactiveProps(P)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),a.createElementVNode("div",K7,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(p)(E),(x,A)=>(a.openBlock(),a.createElementBlock("div",{key:A},[a.createElementVNode("button",{type:"button",class:a.normalizeClass(["dp--qr-btn",{"dp--qr-btn-active":x.active,"dp--qr-btn-between":x.isBetween,"dp--qr-btn-disabled":x.disabled,"dp--highlighted":x.highlighted}]),"data-test-id":x.value,disabled:x.disabled,onClick:P=>a.unref(C)(x.value,E,x.disabled),onMouseover:P=>a.unref(y)(x.value)},[b.$slots.quarter?a.renderSlot(b.$slots,"quarter",{key:0,value:x.value,text:x.text}):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(x.text),1)],64))],42,J7)]))),128))])],4)]),_:3},8,["multi-calendars","collapse","is-mobile"]))}}),Oy=(e,t)=>{const n=a.ref(0);a.onMounted(()=>{r(),window.addEventListener("resize",r,{passive:!0})}),a.onUnmounted(()=>{window.removeEventListener("resize",r)});const r=()=>{n.value=window.document.documentElement.clientWidth};return{isMobile:a.computed(()=>n.value<=e.value.mobileBreakpoint&&!t?!0:void 0)}},Z7=["id","tabindex","role","aria-label"],eP={key:0,class:"dp--menu-load-container"},tP={key:1,class:"dp--menu-header"},nP=["data-dp-mobile"],rP={key:0,class:"dp__sidebar_left"},aP=["data-dp-mobile"],oP=["data-test-id","data-dp-mobile","onClick","onKeydown"],iP={key:2,class:"dp__sidebar_right"},sP={key:3,class:"dp__action_extra"},vv=a.defineComponent({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...Lc,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},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","auto-apply-invalid","date-update","invalid-date","overlay-toggle","menu-blur"],setup(e,{expose:t,emit:n}){const r=n,o=e,i=a.ref(null),s=a.computed(()=>{const{openOnTop:G,...te}=o;return{...te,isMobile:y.value,flowStep:z.value,menuWrapRef:i.value}}),{setMenuFocused:l,setShiftKey:c,control:d}=Ey(),u=a.useSlots(),{defaultedTextInput:f,defaultedInline:p,defaultedConfig:h,defaultedUI:v}=kt(o),{isMobile:y}=Oy(h,o.shadow),C=a.ref(null),g=a.ref(0),S=a.ref(null),_=a.ref(!1),b=a.ref(null),T=a.ref(!1);a.onMounted(()=>{if(!o.shadow){_.value=!0,E(),window.addEventListener("resize",E);const G=Ft(i);if(G&&!f.value.enabled&&!p.value.enabled&&(l(!0),J()),G){const te=pe=>{T.value=!0,h.value.allowPreventDefault&&pe.preventDefault(),wa(pe,h.value,!0)};G.addEventListener("pointerdown",te),G.addEventListener("mousedown",te)}}document.addEventListener("mousedown",de)}),a.onUnmounted(()=>{window.removeEventListener("resize",E),document.addEventListener("mousedown",de)});const E=()=>{const G=Ft(S);G&&(g.value=G.getBoundingClientRect().width)},{arrowRight:x,arrowLeft:A,arrowDown:P,arrowUp:M}=La(),{flowStep:z,updateFlowStep:V,childMount:Y,resetFlow:D,handleFlow:H}=fP(o,r,b),B=a.computed(()=>o.monthPicker?v7:o.yearPicker?y7:o.timePicker?O7:o.quarterPicker?Q7:G7),q=a.computed(()=>{var G;if(h.value.arrowLeft)return h.value.arrowLeft;const te=(G=i.value)==null?void 0:G.getBoundingClientRect(),pe=o.getInputRect();return(pe==null?void 0:pe.width)<(g==null?void 0:g.value)&&(pe==null?void 0:pe.left)<=((te==null?void 0:te.left)??0)?`${(pe==null?void 0:pe.width)/2}px`:(pe==null?void 0:pe.right)>=((te==null?void 0:te.right)??0)&&(pe==null?void 0:pe.width)<(g==null?void 0:g.value)?`${(g==null?void 0:g.value)-(pe==null?void 0:pe.width)/2}px`:"50%"}),J=()=>{const G=Ft(i);G&&G.focus({preventScroll:!0})},U=a.computed(()=>{var G;return((G=b.value)==null?void 0:G.getSidebarProps())||{}}),j=()=>{o.openOnTop&&r("recalculate-position")},ie=An(u,"action"),Z=a.computed(()=>o.monthPicker||o.yearPicker?An(u,"monthYear"):o.timePicker?An(u,"timePicker"):An(u,"shared")),K=a.computed(()=>o.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),I=a.computed(()=>({dp__menu_disabled:o.disabled,dp__menu_readonly:o.readonly,"dp-menu-loading":o.loading})),L=a.computed(()=>({dp__menu:!0,dp__menu_index:!p.value.enabled,dp__relative:p.value.enabled,...v.value.menu??{}})),F=G=>{wa(G,h.value,!0)},N=()=>{o.escClose&&r("close-picker")},ce=G=>{if(o.arrowNavigation){if(G===on.up)return M();if(G===on.down)return P();if(G===on.left)return A();if(G===on.right)return x()}else G===on.left||G===on.up?ae("handleArrow",on.left,0,G===on.up):ae("handleArrow",on.right,0,G===on.down)},ge=G=>{c(G.shiftKey),!o.disableMonthYearSelect&&G.code===bt.tab&&G.target.classList.contains("dp__menu")&&d.value.shiftKeyInMenu&&(G.preventDefault(),wa(G,h.value,!0),r("close-picker"))},Fe=()=>{J(),r("time-picker-close")},ee=G=>{var te,pe,xe;(te=b.value)==null||te.toggleTimePicker(!1,!1),(pe=b.value)==null||pe.toggleMonthPicker(!1,!1,G),(xe=b.value)==null||xe.toggleYearPicker(!1,!1,G)},se=(G,te=0)=>{var pe,xe,Te;return G==="month"?(pe=b.value)==null?void 0:pe.toggleMonthPicker(!1,!0,te):G==="year"?(xe=b.value)==null?void 0:xe.toggleYearPicker(!1,!0,te):G==="time"?(Te=b.value)==null?void 0:Te.toggleTimePicker(!0,!1):ee(te)},ae=(G,...te)=>{var pe,xe;(pe=b.value)!=null&&pe[G]&&((xe=b.value)==null||xe[G](...te))},me=()=>{ae("selectCurrentDate")},R=(G,te)=>{ae("presetDate",G,te)},oe=()=>{ae("clearHoverDate")},Pe=(G,te)=>{ae("updateMonthYear",G,te)},ue=(G,te)=>{G.preventDefault(),ce(te)},Ne=G=>{var te,pe,xe;if(ge(G),G.key===bt.home||G.key===bt.end)return ae("selectWeekDate",G.key===bt.home,G.target.getAttribute("id"));switch((G.key===bt.pageUp||G.key===bt.pageDown)&&(G.shiftKey?(ae("changeYear",G.key===bt.pageUp),(te=Yd(i.value,"overlay-year"))==null||te.focus()):(ae("changeMonth",G.key===bt.pageUp),(pe=Yd(i.value,G.key===bt.pageUp?"action-prev":"action-next"))==null||pe.focus()),G.target.getAttribute("id")&&((xe=i.value)==null||xe.focus({preventScroll:!0}))),G.key){case bt.esc:return N();case bt.arrowLeft:return ue(G,on.left);case bt.arrowRight:return ue(G,on.right);case bt.arrowUp:return ue(G,on.up);case bt.arrowDown:return ue(G,on.down);default:return}},de=G=>{var te;p.value.enabled&&!p.value.input&&!((te=i.value)!=null&&te.contains(G.target))&&T.value&&(T.value=!1,r("menu-blur"))};return t({updateMonthYear:Pe,switchView:se,handleFlow:H}),(G,te)=>{var pe,xe,Te;return a.openBlock(),a.createElementBlock("div",{id:G.uid?`dp-menu-${G.uid}`:void 0,ref_key:"dpMenuRef",ref:i,tabindex:a.unref(p).enabled?void 0:"0",role:a.unref(p).enabled?void 0:"dialog","aria-label":(pe=G.ariaLabels)==null?void 0:pe.menu,class:a.normalizeClass(L.value),style:a.normalizeStyle({"--dp-arrow-left":q.value}),onMouseleave:oe,onClick:F,onKeydown:Ne},[(G.disabled||G.readonly)&&a.unref(p).enabled||G.loading?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(I.value)},[G.loading?(a.openBlock(),a.createElementBlock("div",eP,te[19]||(te[19]=[a.createElementVNode("span",{class:"dp--menu-loader"},null,-1)]))):a.createCommentVNode("",!0)],2)):a.createCommentVNode("",!0),G.$slots["menu-header"]?(a.openBlock(),a.createElementBlock("div",tP,[a.renderSlot(G.$slots,"menu-header")])):a.createCommentVNode("",!0),!a.unref(p).enabled&&!G.teleportCenter?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(K.value)},null,2)):a.createCommentVNode("",!0),a.createElementVNode("div",{ref_key:"innerMenuRef",ref:S,class:a.normalizeClass({dp__menu_content_wrapper:((xe=G.presetDates)==null?void 0:xe.length)||!!G.$slots["left-sidebar"]||!!G.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":e.collapse&&(((Te=G.presetDates)==null?void 0:Te.length)||!!G.$slots["left-sidebar"]||!!G.$slots["right-sidebar"])}),"data-dp-mobile":a.unref(y),style:a.normalizeStyle({"--dp-menu-width":`${g.value}px`})},[G.$slots["left-sidebar"]?(a.openBlock(),a.createElementBlock("div",rP,[a.renderSlot(G.$slots,"left-sidebar",a.normalizeProps(a.guardReactiveProps(U.value)))])):a.createCommentVNode("",!0),G.presetDates.length?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass({"dp--preset-dates-collapsed":e.collapse,"dp--preset-dates":!0}),"data-dp-mobile":a.unref(y)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(G.presetDates,(Se,ot)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:ot},[Se.slot?a.renderSlot(G.$slots,Se.slot,{key:0,presetDate:R,label:Se.label,value:Se.value}):(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",style:a.normalizeStyle(Se.style||{}),class:a.normalizeClass(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":e.collapse}]),"data-test-id":Se.testId??void 0,"data-dp-mobile":a.unref(y),onClick:a.withModifiers(Ge=>R(Se.value,Se.noTz),["prevent"]),onKeydown:Ge=>a.unref(dn)(Ge,()=>R(Se.value,Se.noTz),!0)},a.toDisplayString(Se.label),47,oP))],64))),128))],10,aP)):a.createCommentVNode("",!0),a.createElementVNode("div",{ref_key:"calendarWrapperRef",ref:C,class:"dp__instance_calendar",role:"document"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(B.value),a.mergeProps({ref_key:"dynCmpRef",ref:b},s.value,{"flow-step":a.unref(z),onMount:a.unref(Y),onUpdateFlowStep:a.unref(V),onResetFlow:a.unref(D),onFocusMenu:J,onSelectDate:te[0]||(te[0]=Se=>G.$emit("select-date")),onDateUpdate:te[1]||(te[1]=Se=>G.$emit("date-update",Se)),onTooltipOpen:te[2]||(te[2]=Se=>G.$emit("tooltip-open",Se)),onTooltipClose:te[3]||(te[3]=Se=>G.$emit("tooltip-close",Se)),onAutoApply:te[4]||(te[4]=Se=>G.$emit("auto-apply",Se)),onRangeStart:te[5]||(te[5]=Se=>G.$emit("range-start",Se)),onRangeEnd:te[6]||(te[6]=Se=>G.$emit("range-end",Se)),onInvalidFixedRange:te[7]||(te[7]=Se=>G.$emit("invalid-fixed-range",Se)),onTimeUpdate:te[8]||(te[8]=Se=>G.$emit("time-update")),onAmPmChange:te[9]||(te[9]=Se=>G.$emit("am-pm-change",Se)),onTimePickerOpen:te[10]||(te[10]=Se=>G.$emit("time-picker-open",Se)),onTimePickerClose:Fe,onRecalculatePosition:j,onUpdateMonthYear:te[11]||(te[11]=Se=>G.$emit("update-month-year",Se)),onAutoApplyInvalid:te[12]||(te[12]=Se=>G.$emit("auto-apply-invalid",Se)),onInvalidDate:te[13]||(te[13]=Se=>G.$emit("invalid-date",Se)),onOverlayToggle:te[14]||(te[14]=Se=>G.$emit("overlay-toggle",Se)),"onUpdate:internalModelValue":te[15]||(te[15]=Se=>G.$emit("update:internal-model-value",Se))}),a.createSlots({_:2},[a.renderList(Z.value,(Se,ot)=>({name:Se,fn:a.withCtx(Ge=>[a.renderSlot(G.$slots,Se,a.normalizeProps(a.guardReactiveProps({...Ge})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),G.$slots["right-sidebar"]?(a.openBlock(),a.createElementBlock("div",iP,[a.renderSlot(G.$slots,"right-sidebar",a.normalizeProps(a.guardReactiveProps(U.value)))])):a.createCommentVNode("",!0),G.$slots["action-extra"]?(a.openBlock(),a.createElementBlock("div",sP,[G.$slots["action-extra"]?a.renderSlot(G.$slots,"action-extra",{key:0,selectCurrentDate:me}):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)],14,nP),!G.autoApply||a.unref(h).keepActionRow?(a.openBlock(),a.createBlock(s7,a.mergeProps({key:3,"menu-mount":_.value},s.value,{"calendar-width":g.value,onClosePicker:te[16]||(te[16]=Se=>G.$emit("close-picker")),onSelectDate:te[17]||(te[17]=Se=>G.$emit("select-date")),onInvalidSelect:te[18]||(te[18]=Se=>G.$emit("invalid-select")),onSelectNow:me}),a.createSlots({_:2},[a.renderList(a.unref(ie),(Se,ot)=>({name:Se,fn:a.withCtx(Ge=>[a.renderSlot(G.$slots,Se,a.normalizeProps(a.guardReactiveProps({...Ge})))])}))]),1040,["menu-mount","calendar-width"])):a.createCommentVNode("",!0)],46,Z7)}}});var $o=(e=>(e.center="center",e.left="left",e.right="right",e))($o||{});const lP=({menuRef:e,menuRefInner:t,inputRef:n,pickerWrapperRef:r,inline:o,emit:i,props:s,slots:l})=>{const{defaultedConfig:c}=kt(s),d=a.ref({}),u=a.ref(!1),f=a.ref({top:"0",left:"0"}),p=a.ref(!1),h=a.toRef(s,"teleportCenter");a.watch(h,()=>{f.value=JSON.parse(JSON.stringify({})),T()});const v=B=>{if(s.teleport){const q=B.getBoundingClientRect();return{left:q.left+window.scrollX,top:q.top+window.scrollY}}return{top:0,left:0}},y=(B,q)=>{f.value.left=`${B+q-d.value.width}px`},C=B=>{f.value.left=`${B}px`},g=(B,q)=>{s.position===$o.left&&C(B),s.position===$o.right&&y(B,q),s.position===$o.center&&(f.value.left=`${B+q/2-d.value.width/2}px`)},S=B=>{const{width:q,height:J}=B.getBoundingClientRect(),{top:U,left:j}=v(B);return{top:+U,left:+j,width:q,height:J}},_=()=>{f.value.left="50%",f.value.top="50%",f.value.transform="translate(-50%, -50%)",f.value.position="fixed",delete f.value.opacity},b=()=>{const B=Ft(n);f.value=s.altPosition(B)},T=(B=!0)=>{var q;if(!o.value.enabled){if(h.value)return _();if(s.altPosition!==null)return b();if(B){const J=s.teleport?(q=t.value)==null?void 0:q.$el:e.value;J&&(d.value=J.getBoundingClientRect()),i("recalculate-position")}return V()}},E=({inputEl:B,left:q,width:J})=>{window.screen.width>768&&!u.value&&g(q,J),P(B)},x=B=>{const{top:q,left:J,height:U,width:j}=S(B);f.value.top=`${U+q+ +s.offset}px`,p.value=!1,u.value||(f.value.left=`${J+j/2-d.value.width/2}px`),E({inputEl:B,left:J,width:j})},A=B=>{const{top:q,left:J,width:U}=S(B);f.value.top=`${q-+s.offset-d.value.height}px`,p.value=!0,E({inputEl:B,left:J,width:U})},P=B=>{if(s.autoPosition){const{left:q,width:J}=S(B),{left:U,right:j}=d.value;if(!u.value){if(Math.abs(U)!==Math.abs(j)){if(U<=0)return u.value=!0,C(q);if(j>=document.documentElement.clientWidth)return u.value=!0,y(q,J)}return g(q,J)}}},M=()=>{const B=Ft(n);if(B){if(s.autoPosition===Xn.top)return Xn.top;if(s.autoPosition===Xn.bottom)return Xn.bottom;const{height:q}=d.value,{top:J,height:U}=B.getBoundingClientRect(),j=window.innerHeight-J-U,ie=J;return q<=j?Xn.bottom:q>j&&q<=ie?Xn.top:j>=ie?Xn.bottom:Xn.top}return Xn.bottom},z=B=>M()===Xn.bottom?x(B):A(B),V=()=>{const B=Ft(n);if(B)return s.autoPosition?z(B):x(B)},Y=function(B){if(B){const q=B.scrollHeight>B.clientHeight,J=window.getComputedStyle(B).overflowY.indexOf("hidden")!==-1;return q&&!J}return!0},D=function(B){return!B||B===document.body||B.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:Y(B)?B:D(B.assignedSlot&&c.value.shadowDom?B.assignedSlot.parentNode:B.parentNode)},H=B=>{if(B)switch(s.position){case $o.left:return{left:0,transform:"translateX(0)"};case $o.right:return{left:`${B.width}px`,transform:"translateX(-100%)"};default:return{left:`${B.width/2}px`,transform:"translateX(-50%)"}}return{}};return{openOnTop:p,menuStyle:f,xCorrect:u,setMenuPosition:T,getScrollableParent:D,shadowRender:(B,q)=>{var J,U,j;const ie=document.createElement("div"),Z=(J=Ft(n))==null?void 0:J.getBoundingClientRect();ie.setAttribute("id","dp--temp-container");const K=(U=r.value)!=null&&U.clientWidth?r.value:document.body;K.append(ie);const I=H(Z),L=c.value.shadowDom?Object.keys(l).filter(N=>["right-sidebar","left-sidebar","top-extra","action-extra"].includes(N)):Object.keys(l),F=a.h(B,{...q,shadow:!0,style:{opacity:0,position:"absolute",...I}},Object.fromEntries(L.map(N=>[N,l[N]])));a.render(F,ie),d.value=(j=F.el)==null?void 0:j.getBoundingClientRect(),a.render(null,ie),K.removeChild(ie)}}},pa=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"hours-overlay-header",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-header",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-header",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]},{name:"top-extra",use:["shared","month-year"]},{name:"tp-inline-arrow-up",use:["shared","time"]},{name:"tp-inline-arrow-down",use:["shared","time"]},{name:"menu-header",use:["menu"]}],cP=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],uP={all:()=>pa,monthYear:()=>pa.filter(e=>e.use.includes("month-year")),input:()=>cP,timePicker:()=>pa.filter(e=>e.use.includes("time")),action:()=>pa.filter(e=>e.use.includes("action")),calendar:()=>pa.filter(e=>e.use.includes("calendar")),menu:()=>pa.filter(e=>e.use.includes("menu")),shared:()=>pa.filter(e=>e.use.includes("shared")),yearMode:()=>pa.filter(e=>e.use.includes("year-mode"))},An=(e,t,n)=>{const r=[];return uP[t]().forEach(o=>{e[o.name]&&r.push(o.name)}),n!=null&&n.length&&n.forEach(o=>{o.slot&&r.push(o.slot)}),r},js=e=>{const t=a.computed(()=>r=>e.value?r?e.value.open:e.value.close:""),n=a.computed(()=>r=>e.value?r?e.value.menuAppearTop:e.value.menuAppearBottom:"");return{transitionName:t,showTransition:!!e.value,menuTransition:n}},Hs=(e,t,n)=>{const{defaultedRange:r,defaultedTz:o}=kt(e),i=fe(Cn(fe(),o.value.timezone)),s=a.ref([{month:Ke(i),year:Ve(i)}]),l=p=>{const h={hours:ea(i),minutes:Pa(i),seconds:0};return r.value.enabled?[h[p],h[p]]:h[p]},c=a.reactive({hours:l("hours"),minutes:l("minutes"),seconds:l("seconds")});a.watch(r,(p,h)=>{p.enabled!==h.enabled&&(c.hours=l("hours"),c.minutes=l("minutes"),c.seconds=l("seconds"))},{deep:!0});const d=a.computed({get:()=>e.internalModelValue,set:p=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",p)}}),u=a.computed(()=>p=>s.value[p]?s.value[p].month:0),f=a.computed(()=>p=>s.value[p]?s.value[p].year:0);return a.watch(d,(p,h)=>{n&&JSON.stringify(p??{})!==JSON.stringify(h??{})&&n()},{deep:!0}),{calendars:s,time:c,modelValue:d,month:u,year:f,today:i}},dP=(e,t)=>{const{defaultedMultiCalendars:n,defaultedMultiDates:r,defaultedUI:o,defaultedHighlight:i,defaultedTz:s,propDates:l,defaultedRange:c}=kt(t),{isDisabled:d}=$a(t),u=a.ref(null),f=a.ref(Cn(new Date,s.value.timezone)),p=I=>{!I.current&&t.hideOffsetDates||(u.value=I.value)},h=()=>{u.value=null},v=I=>Array.isArray(e.value)&&c.value.enabled&&e.value[0]&&u.value?I?Ot(u.value,e.value[0]):Tt(u.value,e.value[0]):!0,y=(I,L)=>{const F=()=>e.value?L?e.value[0]||null:e.value[1]:null,N=e.value&&Array.isArray(e.value)?F():null;return Je(fe(I.value),N)},C=I=>{const L=Array.isArray(e.value)?e.value[0]:null;return I?!Tt(u.value??null,L):!0},g=(I,L=!0)=>(c.value.enabled||t.weekPicker)&&Array.isArray(e.value)&&e.value.length===2?t.hideOffsetDates&&!I.current?!1:Je(fe(I.value),e.value[L?0:1]):c.value.enabled?y(I,L)&&C(L)||Je(I.value,Array.isArray(e.value)?e.value[0]:null)&&v(L):!1,S=(I,L)=>{if(Array.isArray(e.value)&&e.value[0]&&e.value.length===1){const F=Je(I.value,u.value);return L?Ot(e.value[0],I.value)&&F:Tt(e.value[0],I.value)&&F}return!1},_=I=>!e.value||t.hideOffsetDates&&!I.current?!1:c.value.enabled?t.modelAuto&&Array.isArray(e.value)?Je(I.value,e.value[0]?e.value[0]:f.value):!1:r.value.enabled&&Array.isArray(e.value)?e.value.some(L=>Je(L,I.value)):Je(I.value,e.value?e.value:f.value),b=I=>{if(c.value.autoRange||t.weekPicker){if(u.value){if(t.hideOffsetDates&&!I.current)return!1;const L=tr(u.value,+c.value.autoRange),F=Wr(fe(u.value),t.weekStart);return t.weekPicker?Je(F[1],fe(I.value)):Je(L,fe(I.value))}return!1}return!1},T=I=>{if(c.value.autoRange||t.weekPicker){if(u.value){const L=tr(u.value,+c.value.autoRange);if(t.hideOffsetDates&&!I.current)return!1;const F=Wr(fe(u.value),t.weekStart);return t.weekPicker?Ot(I.value,F[0])&&Tt(I.value,F[1]):Ot(I.value,u.value)&&Tt(I.value,L)}return!1}return!1},E=I=>{if(c.value.autoRange||t.weekPicker){if(u.value){if(t.hideOffsetDates&&!I.current)return!1;const L=Wr(fe(u.value),t.weekStart);return t.weekPicker?Je(L[0],I.value):Je(u.value,I.value)}return!1}return!1},x=I=>Rc(e.value,u.value,I.value),A=()=>t.modelAuto&&Array.isArray(t.internalModelValue)?!!t.internalModelValue[0]:!1,P=()=>t.modelAuto?my(t.internalModelValue):!0,M=I=>{if(t.weekPicker)return!1;const L=c.value.enabled?!g(I)&&!g(I,!1):!0;return!d(I.value)&&!_(I)&&!(!I.current&&t.hideOffsetDates)&&L},z=I=>c.value.enabled?t.modelAuto?A()&&_(I):!1:_(I),V=I=>i.value?MT(I.value,l.value.highlight):!1,Y=I=>{const L=d(I.value);return L&&(typeof i.value=="function"?!i.value(I.value,L):!i.value.options.highlightDisabled)},D=I=>{var L;return typeof i.value=="function"?i.value(I.value):(L=i.value.weekdays)==null?void 0:L.includes(I.value.getDay())},H=I=>(c.value.enabled||t.weekPicker)&&(!(n.value.count>0)||I.current)&&P()&&!(!I.current&&t.hideOffsetDates)&&!_(I)?x(I):!1,B=I=>{const{isRangeStart:L,isRangeEnd:F}=j(I),N=c.value.enabled?L||F:!1;return{dp__cell_offset:!I.current,dp__pointer:!t.disabled&&!(!I.current&&t.hideOffsetDates)&&!d(I.value),dp__cell_disabled:d(I.value),dp__cell_highlight:!Y(I)&&(V(I)||D(I))&&!z(I)&&!N&&!E(I)&&!(H(I)&&t.weekPicker)&&!F,dp__cell_highlight_active:!Y(I)&&(V(I)||D(I))&&z(I),dp__today:!t.noToday&&Je(I.value,f.value)&&I.current,"dp--past":Tt(I.value,f.value),"dp--future":Ot(I.value,f.value)}},q=I=>({dp__active_date:z(I),dp__date_hover:M(I)}),J=I=>{if(e.value&&!Array.isArray(e.value)){const L=Wr(e.value,t.weekStart);return{...Z(I),dp__range_start:Je(L[0],I.value),dp__range_end:Je(L[1],I.value),dp__range_between_week:Ot(I.value,L[0])&&Tt(I.value,L[1])}}return{...Z(I)}},U=I=>{if(e.value&&Array.isArray(e.value)){const L=Wr(e.value[0],t.weekStart),F=e.value[1]?Wr(e.value[1],t.weekStart):[];return{...Z(I),dp__range_start:Je(L[0],I.value)||Je(F[0],I.value),dp__range_end:Je(L[1],I.value)||Je(F[1],I.value),dp__range_between_week:Ot(I.value,L[0])&&Tt(I.value,L[1])||Ot(I.value,F[0])&&Tt(I.value,F[1]),dp__range_between:Ot(I.value,L[1])&&Tt(I.value,F[0])}}return{...Z(I)}},j=I=>{const L=n.value.count>0?I.current&&g(I)&&P():g(I)&&P(),F=n.value.count>0?I.current&&g(I,!1)&&P():g(I,!1)&&P();return{isRangeStart:L,isRangeEnd:F}},ie=I=>{const{isRangeStart:L,isRangeEnd:F}=j(I);return{dp__range_start:L,dp__range_end:F,dp__range_between:H(I),dp__date_hover:Je(I.value,u.value)&&!L&&!F&&!t.weekPicker,dp__date_hover_start:S(I,!0),dp__date_hover_end:S(I,!1)}},Z=I=>({...ie(I),dp__cell_auto_range:T(I),dp__cell_auto_range_start:E(I),dp__cell_auto_range_end:b(I)}),K=I=>c.value.enabled?c.value.autoRange?Z(I):t.modelAuto?{...q(I),...ie(I)}:t.weekPicker?U(I):ie(I):t.weekPicker?J(I):q(I);return{setHoverDate:p,clearHoverDate:h,getDayClassData:I=>t.hideOffsetDates&&!I.current?{}:{...B(I),...K(I),[t.dayClass?t.dayClass(I.value,t.internalModelValue):""]:!0,...o.value.calendarCell??{}}}},$a=e=>{const{defaultedFilters:t,defaultedRange:n,propDates:r,defaultedMultiDates:o}=kt(e),i=D=>r.value.disabledDates?typeof r.value.disabledDates=="function"?r.value.disabledDates(fe(D)):!!nc(D,r.value.disabledDates):!1,s=D=>r.value.maxDate?e.yearPicker?Ve(D)>Ve(r.value.maxDate):Ot(D,r.value.maxDate):!1,l=D=>r.value.minDate?e.yearPicker?Ve(D)<Ve(r.value.minDate):Tt(D,r.value.minDate):!1,c=D=>{const H=s(D),B=l(D),q=i(D),J=t.value.months.map(K=>+K).includes(Ke(D)),U=e.disabledWeekDays.length?e.disabledWeekDays.some(K=>+K===y8(D)):!1,j=h(D),ie=Ve(D),Z=ie<+e.yearRange[0]||ie>+e.yearRange[1];return!(H||B||q||J||Z||U||j)},d=(D,H)=>Tt(...ba(r.value.minDate,D,H))||Je(...ba(r.value.minDate,D,H)),u=(D,H)=>Ot(...ba(r.value.maxDate,D,H))||Je(...ba(r.value.maxDate,D,H)),f=(D,H,B)=>{let q=!1;return r.value.maxDate&&B&&u(D,H)&&(q=!0),r.value.minDate&&!B&&d(D,H)&&(q=!0),q},p=(D,H,B,q)=>{let J=!1;return q&&(r.value.minDate||r.value.maxDate)?r.value.minDate&&r.value.maxDate?J=f(D,H,B):(r.value.minDate&&d(D,H)||r.value.maxDate&&u(D,H))&&(J=!0):J=!0,J},h=D=>Array.isArray(r.value.allowedDates)&&!r.value.allowedDates.length?!0:r.value.allowedDates?!nc(D,r.value.allowedDates):!1,v=D=>!c(D),y=D=>n.value.noDisabledRange?!Q1({start:D[0],end:D[1]}).some(H=>v(H)):!0,C=D=>{if(D){const H=Ve(D);return H>=+e.yearRange[0]&&H<=e.yearRange[1]}return!0},g=(D,H)=>!!(Array.isArray(D)&&D[H]&&(n.value.maxRange||n.value.minRange)&&C(D[H])),S=(D,H,B=0)=>{if(g(H,B)&&C(D)){const q=X1(D,H[B]),J=by(H[B],D),U=J.length===1?0:J.filter(ie=>v(ie)).length,j=Math.abs(q)-(n.value.minMaxRawRange?0:U);if(n.value.minRange&&n.value.maxRange)return j>=+n.value.minRange&&j<=+n.value.maxRange;if(n.value.minRange)return j>=+n.value.minRange;if(n.value.maxRange)return j<=+n.value.maxRange}return!0},_=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,b=D=>Array.isArray(D)?[D[0]?ju(D[0]):null,D[1]?ju(D[1]):null]:ju(D),T=(D,H,B)=>D.find(q=>+q.hours===ea(H)&&q.minutes==="*"?!0:+q.minutes===Pa(H)&&+q.hours===ea(H))&&B,E=(D,H,B)=>{const[q,J]=D,[U,j]=H;return!T(q,U,B)&&!T(J,j,B)&&B},x=(D,H)=>{const B=Array.isArray(H)?H:[H];return Array.isArray(e.disabledTimes)?Array.isArray(e.disabledTimes[0])?E(e.disabledTimes,B,D):!B.some(q=>T(e.disabledTimes,q,D)):D},A=(D,H)=>{const B=Array.isArray(H)?[lo(H[0]),H[1]?lo(H[1]):void 0]:lo(H),q=!e.disabledTimes(B);return D&&q},P=(D,H)=>e.disabledTimes?Array.isArray(e.disabledTimes)?x(H,D):A(H,D):H,M=D=>{let H=!0;if(!D||_())return!0;const B=!r.value.minDate&&!r.value.maxDate?b(D):D;return(e.maxTime||r.value.maxDate)&&(H=fv(e.maxTime,r.value.maxDate,"max",Ht(B),H)),(e.minTime||r.value.minDate)&&(H=fv(e.minTime,r.value.minDate,"min",Ht(B),H)),P(D,H)},z=D=>{if(!e.monthPicker)return!0;let H=!0;const B=fe(nr(D));if(r.value.minDate&&r.value.maxDate){const q=fe(nr(r.value.minDate)),J=fe(nr(r.value.maxDate));return Ot(B,q)&&Tt(B,J)||Je(B,q)||Je(B,J)}if(r.value.minDate){const q=fe(nr(r.value.minDate));H=Ot(B,q)||Je(B,q)}if(r.value.maxDate){const q=fe(nr(r.value.maxDate));H=Tt(B,q)||Je(B,q)}return H},V=a.computed(()=>D=>!e.enableTimePicker||e.ignoreTimeValidation?!0:M(D)),Y=a.computed(()=>D=>e.monthPicker?Array.isArray(D)&&(n.value.enabled||o.value.enabled)?!D.filter(H=>!z(H)).length:z(D):!0);return{isDisabled:v,validateDate:c,validateMonthYearInRange:p,isDateRangeAllowed:y,checkMinMaxRange:S,isValidTime:M,isTimeValid:V,isMonthValid:Y}},Vc=()=>{const e=a.computed(()=>(r,o)=>r==null?void 0:r.includes(o)),t=a.computed(()=>(r,o)=>r.count?r.solo?!0:o===0:!0),n=a.computed(()=>(r,o)=>r.count?r.solo?!0:o===r.count-1:!0);return{hideNavigationButtons:e,showLeftIcon:t,showRightIcon:n}},fP=(e,t,n)=>{const r=a.ref(0),o=a.reactive({[so.timePicker]:!e.enableTimePicker||e.timePicker||e.monthPicker,[so.calendar]:!1,[so.header]:!1}),i=a.computed(()=>e.monthPicker||e.timePicker),s=f=>{var p;if((p=e.flow)!=null&&p.length){if(!f&&i.value)return u();o[f]=!0,Object.keys(o).filter(h=>!o[h]).length||u()}},l=()=>{var f,p;(f=e.flow)!=null&&f.length&&r.value!==-1&&(r.value+=1,t("flow-step",r.value),u()),((p=e.flow)==null?void 0:p.length)===r.value&&a.nextTick().then(()=>c())},c=()=>{r.value=-1},d=(f,p,...h)=>{var v,y;e.flow[r.value]===f&&n.value&&((y=(v=n.value)[p])==null||y.call(v,...h))},u=(f=0)=>{f&&(r.value+=f),d(tn.month,"toggleMonthPicker",!0),d(tn.year,"toggleYearPicker",!0),d(tn.calendar,"toggleTimePicker",!1,!0),d(tn.time,"toggleTimePicker",!0,!0);const p=e.flow[r.value];(p===tn.hours||p===tn.minutes||p===tn.seconds)&&d(p,"toggleTimePicker",!0,!0,p)};return{childMount:s,updateFlowStep:l,resetFlow:c,handleFlow:u,flowStep:r}},pP={key:1,class:"dp__input_wrap"},mP=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],hP={key:2,class:"dp--clear-btn"},vP=["aria-label"],gP=a.defineComponent({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...Lc},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur","text-input"],setup(e,{expose:t,emit:n}){const r=n,o=e,{defaultedTextInput:i,defaultedAriaLabels:s,defaultedInline:l,defaultedConfig:c,defaultedRange:d,defaultedMultiDates:u,defaultedUI:f,getDefaultPattern:p,getDefaultStartTime:h}=kt(o),{checkMinMaxRange:v}=$a(o),y=a.ref(),C=a.ref(null),g=a.ref(!1),S=a.ref(!1),_=a.computed(()=>({dp__pointer:!o.disabled&&!o.readonly&&!i.value.enabled,dp__disabled:o.disabled,dp__input_readonly:!i.value.enabled,dp__input:!0,dp__input_icon_pad:!o.hideInputIcon,dp__input_valid:typeof o.state=="boolean"?o.state:!1,dp__input_invalid:typeof o.state=="boolean"?!o.state:!1,dp__input_focus:g.value||o.isMenuOpen,dp__input_reg:!i.value.enabled,...f.value.input??{}})),b=()=>{r("set-input-date",null),o.clearable&&o.autoApply&&(r("set-empty-date"),y.value=null)},T=j=>{const ie=h();return OT(j,i.value.format??p(),ie??wy({},o.enableSeconds),o.inputValue,S.value,o.formatLocale)},E=j=>{const{rangeSeparator:ie}=i.value,[Z,K]=j.split(`${ie}`);if(Z){const I=T(Z.trim()),L=K?T(K.trim()):null;if(li(I,L))return;const F=I&&L?[I,L]:[I];v(L,F,0)&&(y.value=I?F:null)}},x=()=>{S.value=!0},A=j=>{if(d.value.enabled)E(j);else if(u.value.enabled){const ie=j.split(";");y.value=ie.map(Z=>T(Z.trim())).filter(Z=>Z)}else y.value=T(j)},P=j=>{var ie;const Z=typeof j=="string"?j:(ie=j.target)==null?void 0:ie.value;Z!==""?(i.value.openMenu&&!o.isMenuOpen&&r("open"),A(Z),r("set-input-date",y.value)):b(),S.value=!1,r("update:input-value",Z),r("text-input",j,y.value)},M=j=>{i.value.enabled?(A(j.target.value),i.value.enterSubmit&&Gd(y.value)&&o.inputValue!==""?(r("set-input-date",y.value,!0),y.value=null):i.value.enterSubmit&&o.inputValue===""&&(y.value=null,r("clear"))):Y(j)},z=(j,ie)=>{i.value.enabled&&i.value.tabSubmit&&!ie&&A(j.target.value),i.value.tabSubmit&&Gd(y.value)&&o.inputValue!==""?(r("set-input-date",y.value,!0,!0),y.value=null):i.value.tabSubmit&&o.inputValue===""&&(y.value=null,r("clear",!0))},V=()=>{g.value=!0,r("focus"),a.nextTick().then(()=>{var j;i.value.enabled&&i.value.selectOnFocus&&((j=C.value)==null||j.select())})},Y=j=>{if(wa(j,c.value,!0),i.value.enabled&&i.value.openMenu&&!l.value.input){if(i.value.openMenu==="open"&&!o.isMenuOpen)return r("open");if(i.value.openMenu==="toggle")return r("toggle")}else i.value.enabled||r("toggle")},D=()=>{r("real-blur"),g.value=!1,(!o.isMenuOpen||l.value.enabled&&l.value.input)&&r("blur"),o.autoApply&&i.value.enabled&&y.value&&!o.isMenuOpen&&(r("set-input-date",y.value),r("select-date"),y.value=null)},H=j=>{wa(j,c.value,!0),r("clear")},B=j=>{if(j.key==="Tab"&&z(j),j.key==="Enter"&&M(j),!i.value.enabled){if(j.code==="Tab")return;j.preventDefault()}},q=()=>{var j;(j=C.value)==null||j.focus({preventScroll:!0})},J=j=>{y.value=j},U=j=>{j.key===bt.tab&&z(j,!0)};return t({focusInput:q,setParsedDate:J}),(j,ie)=>{var Z,K,I;return a.openBlock(),a.createElementBlock("div",{onClick:Y},[j.$slots.trigger&&!j.$slots["dp-input"]&&!a.unref(l).enabled?a.renderSlot(j.$slots,"trigger",{key:0}):a.createCommentVNode("",!0),!j.$slots.trigger&&(!a.unref(l).enabled||a.unref(l).input)?(a.openBlock(),a.createElementBlock("div",pP,[j.$slots["dp-input"]&&!j.$slots.trigger&&(!a.unref(l).enabled||a.unref(l).enabled&&a.unref(l).input)?a.renderSlot(j.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:P,onEnter:M,onTab:z,onClear:H,onBlur:D,onKeypress:B,onPaste:x,onFocus:V,openMenu:()=>j.$emit("open"),closeMenu:()=>j.$emit("close"),toggleMenu:()=>j.$emit("toggle")}):a.createCommentVNode("",!0),j.$slots["dp-input"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("input",{key:1,id:j.uid?`dp-input-${j.uid}`:void 0,ref_key:"inputRef",ref:C,"data-test-id":"dp-input",name:j.name,class:a.normalizeClass(_.value),inputmode:a.unref(i).enabled?"text":"none",placeholder:j.placeholder,disabled:j.disabled,readonly:j.readonly,required:j.required,value:e.inputValue,autocomplete:j.autocomplete,"aria-label":(Z=a.unref(s))==null?void 0:Z.input,"aria-disabled":j.disabled||void 0,"aria-invalid":j.state===!1?!0:void 0,onInput:P,onBlur:D,onFocus:V,onKeypress:B,onKeydown:ie[0]||(ie[0]=L=>B(L)),onPaste:x},null,42,mP)),a.createElementVNode("div",{onClick:ie[3]||(ie[3]=L=>r("toggle"))},[j.$slots["input-icon"]&&!j.hideInputIcon?(a.openBlock(),a.createElementBlock("span",{key:0,class:"dp__input_icon",onClick:ie[1]||(ie[1]=L=>r("toggle"))},[a.renderSlot(j.$slots,"input-icon")])):a.createCommentVNode("",!0),!j.$slots["input-icon"]&&!j.hideInputIcon&&!j.$slots["dp-input"]?(a.openBlock(),a.createBlock(a.unref(Ii),{key:1,"aria-label":(K=a.unref(s))==null?void 0:K.calendarIcon,class:"dp__input_icon dp__input_icons",onClick:ie[2]||(ie[2]=L=>r("toggle"))},null,8,["aria-label"])):a.createCommentVNode("",!0)]),j.$slots["clear-icon"]&&e.inputValue&&j.clearable&&!j.disabled&&!j.readonly?(a.openBlock(),a.createElementBlock("span",hP,[a.renderSlot(j.$slots,"clear-icon",{clear:H})])):a.createCommentVNode("",!0),j.clearable&&!j.$slots["clear-icon"]&&e.inputValue&&!j.disabled&&!j.readonly?(a.openBlock(),a.createElementBlock("button",{key:3,"aria-label":(I=a.unref(s))==null?void 0:I.clearInput,class:"dp--clear-btn",type:"button",onKeydown:ie[4]||(ie[4]=L=>a.unref(dn)(L,()=>H(L),!0,U)),onClick:ie[5]||(ie[5]=a.withModifiers(L=>H(L),["prevent"]))},[a.createVNode(a.unref(fy),{class:"dp__input_icons","data-test-id":"clear-icon"})],40,vP)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])}}}),yP=typeof window<"u"?window:void 0,Gu=()=>{},bP=e=>a.getCurrentScope()?(a.onScopeDispose(e),!0):!1,wP=(e,t,n,r)=>{if(!e)return Gu;let o=Gu;const i=a.watch(()=>a.unref(e),l=>{o(),l&&(l.addEventListener(t,n,r),o=()=>{l.removeEventListener(t,n,r),o=Gu})},{immediate:!0,flush:"post"}),s=()=>{i(),o()};return bP(s),s},kP=(e,t,n,r={})=>{const{window:o=yP,event:i="pointerdown"}=r;return o?wP(o,i,s=>{const l=Ft(e),c=Ft(t);!l||!c||l===s.target||s.composedPath().includes(l)||s.composedPath().includes(c)||n(s)},{passive:!0}):void 0},_P=["data-dp-mobile"],CP=a.defineComponent({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...Lc},emits:["update:model-value","update:model-timezone-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","date-update","invalid-date","overlay-toggle","text-input"],setup(e,{expose:t,emit:n}){const r=n,o=e,i=a.useSlots(),s=a.ref(!1),l=a.toRef(o,"modelValue"),c=a.toRef(o,"timezone"),d=a.ref(null),u=a.ref(null),f=a.ref(null),p=a.ref(!1),h=a.ref(null),v=a.ref(!1),y=a.ref(!1),C=a.ref(!1),g=a.ref(!1),{setMenuFocused:S,setShiftKey:_}=Ey(),{clearArrowNav:b}=La(),{validateDate:T,isValidTime:E}=$a(o),{defaultedTransitions:x,defaultedTextInput:A,defaultedInline:P,defaultedConfig:M,defaultedRange:z,defaultedMultiDates:V}=kt(o),{menuTransition:Y,showTransition:D}=js(x),{isMobile:H}=Oy(M);a.onMounted(()=>{F(o.modelValue),a.nextTick().then(()=>{if(!P.value.enabled){const Q=Z(h.value);Q==null||Q.addEventListener("scroll",oe),window==null||window.addEventListener("resize",Pe)}}),P.value.enabled&&(s.value=!0),window==null||window.addEventListener("keyup",ue),window==null||window.addEventListener("keydown",Ne)}),a.onUnmounted(()=>{if(!P.value.enabled){const Q=Z(h.value);Q==null||Q.removeEventListener("scroll",oe),window==null||window.removeEventListener("resize",Pe)}window==null||window.removeEventListener("keyup",ue),window==null||window.removeEventListener("keydown",Ne)});const B=An(i,"all",o.presetDates),q=An(i,"input");a.watch([l,c],()=>{F(l.value)},{deep:!0});const{openOnTop:J,menuStyle:U,xCorrect:j,setMenuPosition:ie,getScrollableParent:Z,shadowRender:K}=lP({menuRef:d,menuRefInner:u,inputRef:f,pickerWrapperRef:h,inline:P,emit:r,props:o,slots:i}),{inputValue:I,internalModelValue:L,parseExternalModelValue:F,emitModelValue:N,formatInputValue:ce,checkBeforeEmit:ge}=r7(r,o,p),Fe=a.computed(()=>({dp__main:!0,dp__theme_dark:o.dark,dp__theme_light:!o.dark,dp__flex_display:P.value.enabled,"dp--flex-display-collapsed":C.value,dp__flex_display_with_input:P.value.input})),ee=a.computed(()=>o.dark?"dp__theme_dark":"dp__theme_light"),se=a.computed(()=>o.teleport?{to:typeof o.teleport=="boolean"?"body":o.teleport,disabled:!o.teleport||P.value.enabled}:{}),ae=a.computed(()=>({class:"dp__outer_menu_wrap"})),me=a.computed(()=>P.value.enabled&&(o.timePicker||o.monthPicker||o.yearPicker||o.quarterPicker)),R=()=>{var Q,he;return((he=(Q=f.value)==null?void 0:Q.$el)==null?void 0:he.getBoundingClientRect())??{width:0,left:0,right:0}},oe=()=>{s.value&&(M.value.closeOnScroll?Ge():ie())},Pe=()=>{var Q;s.value&&ie();const he=((Q=u.value)==null?void 0:Q.$el.getBoundingClientRect().width)??0;C.value=document.body.offsetWidth<=he},ue=Q=>{Q.key==="Tab"&&!P.value.enabled&&!o.teleport&&M.value.tabOutClosesMenu&&(h.value.contains(document.activeElement)||Ge()),y.value=Q.shiftKey},Ne=Q=>{y.value=Q.shiftKey},de=()=>{!o.disabled&&!o.readonly&&(K(vv,o),ie(!1),s.value=!0,s.value&&r("open"),s.value||ot(),F(o.modelValue))},G=()=>{var Q;I.value="",ot(),(Q=f.value)==null||Q.setParsedDate(null),r("update:model-value",null),r("update:model-timezone-value",null),r("cleared"),M.value.closeOnClearValue&&Ge()},te=()=>{const Q=L.value;return!Q||!Array.isArray(Q)&&T(Q)?!0:Array.isArray(Q)?V.value.enabled||Q.length===2&&T(Q[0])&&T(Q[1])?!0:z.value.partialRange&&!o.timePicker?T(Q[0]):!1:!1},pe=()=>{ge()&&te()?(N(),Ge()):r("invalid-select",L.value)},xe=Q=>{Te(),N(),M.value.closeOnAutoApply&&!Q&&Ge()},Te=()=>{f.value&&A.value.enabled&&f.value.setParsedDate(L.value)},Se=(Q=!1)=>{o.autoApply&&E(L.value)&&te()&&(z.value.enabled&&Array.isArray(L.value)?(z.value.partialRange||L.value.length===2)&&xe(Q):xe(Q))},ot=()=>{A.value.enabled||(L.value=null)},Ge=(Q=!1)=>{Q&&L.value&&M.value.setDateOnMenuClose&&pe(),P.value.enabled||(s.value&&(s.value=!1,j.value=!1,S(!1),_(!1),b(),r("closed"),I.value&&F(l.value)),ot(),r("blur"))},mn=(Q,he,Ce=!1)=>{if(!Q){L.value=null;return}const at=Array.isArray(Q)?!Q.some(dt=>!T(dt)):T(Q),ut=E(Q);at&&ut?(g.value=!0,L.value=Q,he&&(v.value=Ce,pe(),r("text-submit")),a.nextTick().then(()=>{g.value=!1})):r("invalid-date",Q)},xn=()=>{o.autoApply&&E(L.value)&&N(),Te()},hn=()=>s.value?Ge():de(),zt=Q=>{L.value=Q},Gt=()=>{A.value.enabled&&(p.value=!0,ce()),r("focus")},ne=()=>{if(A.value.enabled&&(p.value=!1,F(o.modelValue),v.value)){const Q=AT(h.value,y.value);Q==null||Q.focus()}r("blur")},ke=Q=>{u.value&&u.value.updateMonthYear(0,{month:lv(Q.month),year:lv(Q.year)})},Ie=Q=>{F(Q??o.modelValue)},W=(Q,he)=>{var Ce;(Ce=u.value)==null||Ce.switchView(Q,he)},re=Q=>M.value.onClickOutside?M.value.onClickOutside(Q):Ge(!0),we=(Q=0)=>{var he;(he=u.value)==null||he.handleFlow(Q)};return kP(d,f,()=>re(te)),t({closeMenu:Ge,selectDate:pe,clearValue:G,openMenu:de,onScroll:oe,formatInputValue:ce,updateInternalModelValue:zt,setMonthYear:ke,parseModel:Ie,switchView:W,toggleMenu:hn,handleFlow:we,dpWrapMenuRef:d}),(Q,he)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"pickerWrapperRef",ref:h,class:a.normalizeClass(Fe.value),"data-datepicker-instance":"","data-dp-mobile":a.unref(H)},[a.createVNode(gP,a.mergeProps({ref_key:"inputRef",ref:f,"input-value":a.unref(I),"onUpdate:inputValue":he[0]||(he[0]=Ce=>a.isRef(I)?I.value=Ce:null),"is-menu-open":s.value},Q.$props,{onClear:G,onOpen:de,onSetInputDate:mn,onSetEmptyDate:a.unref(N),onSelectDate:pe,onToggle:hn,onClose:Ge,onFocus:Gt,onBlur:ne,onRealBlur:he[1]||(he[1]=Ce=>p.value=!1),onTextInput:he[2]||(he[2]=Ce=>Q.$emit("text-input",Ce))}),a.createSlots({_:2},[a.renderList(a.unref(q),(Ce,at)=>({name:Ce,fn:a.withCtx(ut=>[a.renderSlot(Q.$slots,Ce,a.normalizeProps(a.guardReactiveProps(ut)))])}))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(Q.teleport?a.Teleport:"div"),a.normalizeProps(a.guardReactiveProps(se.value)),{default:a.withCtx(()=>[a.createVNode(a.Transition,{name:a.unref(Y)(a.unref(J)),css:a.unref(D)&&!a.unref(P).enabled},{default:a.withCtx(()=>[s.value?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,ref_key:"dpWrapMenuRef",ref:d},ae.value,{class:{"dp--menu-wrapper":!a.unref(P).enabled},style:a.unref(P).enabled?void 0:a.unref(U)}),[a.createVNode(vv,a.mergeProps({ref_key:"dpMenuRef",ref:u},Q.$props,{"internal-model-value":a.unref(L),"onUpdate:internalModelValue":he[3]||(he[3]=Ce=>a.isRef(L)?L.value=Ce:null),class:{[ee.value]:!0,"dp--menu-wrapper":Q.teleport},"open-on-top":a.unref(J),"no-overlay-focus":me.value,collapse:C.value,"get-input-rect":R,"is-text-input-date":g.value,onClosePicker:Ge,onSelectDate:pe,onAutoApply:Se,onTimeUpdate:xn,onFlowStep:he[4]||(he[4]=Ce=>Q.$emit("flow-step",Ce)),onUpdateMonthYear:he[5]||(he[5]=Ce=>Q.$emit("update-month-year",Ce)),onInvalidSelect:he[6]||(he[6]=Ce=>Q.$emit("invalid-select",a.unref(L))),onAutoApplyInvalid:he[7]||(he[7]=Ce=>Q.$emit("invalid-select",Ce)),onInvalidFixedRange:he[8]||(he[8]=Ce=>Q.$emit("invalid-fixed-range",Ce)),onRecalculatePosition:a.unref(ie),onTooltipOpen:he[9]||(he[9]=Ce=>Q.$emit("tooltip-open",Ce)),onTooltipClose:he[10]||(he[10]=Ce=>Q.$emit("tooltip-close",Ce)),onTimePickerOpen:he[11]||(he[11]=Ce=>Q.$emit("time-picker-open",Ce)),onTimePickerClose:he[12]||(he[12]=Ce=>Q.$emit("time-picker-close",Ce)),onAmPmChange:he[13]||(he[13]=Ce=>Q.$emit("am-pm-change",Ce)),onRangeStart:he[14]||(he[14]=Ce=>Q.$emit("range-start",Ce)),onRangeEnd:he[15]||(he[15]=Ce=>Q.$emit("range-end",Ce)),onDateUpdate:he[16]||(he[16]=Ce=>Q.$emit("date-update",Ce)),onInvalidDate:he[17]||(he[17]=Ce=>Q.$emit("invalid-date",Ce)),onOverlayToggle:he[18]||(he[18]=Ce=>Q.$emit("overlay-toggle",Ce)),onMenuBlur:he[19]||(he[19]=Ce=>Q.$emit("blur"))}),a.createSlots({_:2},[a.renderList(a.unref(B),(Ce,at)=>({name:Ce,fn:a.withCtx(ut=>[a.renderSlot(Q.$slots,Ce,a.normalizeProps(a.guardReactiveProps({...ut})))])}))]),1040,["internal-model-value","class","open-on-top","no-overlay-focus","collapse","is-text-input-date","onRecalculatePosition"])],16)):a.createCommentVNode("",!0)]),_:3},8,["name","css"])]),_:3},16))],10,_P))}}),Ip=(()=>{const e=CP;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),SP=Object.freeze(Object.defineProperty({__proto__:null,default:Ip},Symbol.toStringTag,{value:"Module"}));Object.entries(SP).forEach(([e,t])=>{e!=="default"&&(Ip[e]=t)});var EP=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCommentChange","onCompositionEnd","onCompositionStart","onCompositionUpdate","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onInput","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],xP=function(e){return EP.map(function(t){return t.toLowerCase()}).indexOf(e.toLowerCase())!==-1},TP=function(e,t,n){Object.keys(t).filter(xP).forEach(function(r){var o=t[r];typeof o=="function"&&(r==="onInit"?o(e,n):n.on(r.substring(2),function(i){return o(i,n)}))})},PP=function(e,t,n,r){var o=e.modelEvents?e.modelEvents:null,i=Array.isArray(o)?o.join(" "):o;a.watch(r,function(s,l){n&&typeof s=="string"&&s!==l&&s!==n.getContent({format:e.outputFormat})&&n.setContent(s)}),n.on(i||"change input undo redo",function(){t.emit("update:modelValue",n.getContent({format:e.outputFormat}))})},IP=function(e,t,n,r,o,i){r.setContent(i()),n.attrs["onUpdate:modelValue"]&&PP(t,n,r,o),TP(e,n.attrs,r)},gv=0,Ny=function(e){var t=Date.now(),n=Math.floor(Math.random()*1e9);return gv++,e+"_"+n+gv+String(t)},AP=function(e){return e!==null&&e.tagName.toLowerCase()==="textarea"},yv=function(e){return typeof e>"u"||e===""?[]:Array.isArray(e)?e:e.split(" ")},MP=function(e,t){return yv(e).concat(yv(t))},OP=function(e){return e==null},bv=function(){return{listeners:[],scriptId:Ny("tiny-script"),scriptLoaded:!1}},NP=function(){var e=bv(),t=function(o,i,s,l){var c=i.createElement("script");c.referrerPolicy="origin",c.type="application/javascript",c.id=o,c.src=s;var d=function(){c.removeEventListener("load",d),l()};c.addEventListener("load",d),i.head&&i.head.appendChild(c)},n=function(o,i,s){e.scriptLoaded?s():(e.listeners.push(s),o.getElementById(e.scriptId)||t(e.scriptId,o,i,function(){e.listeners.forEach(function(l){return l()}),e.scriptLoaded=!0}))},r=function(){e=bv()};return{load:n,reinitialize:r}},BP=NP(),DP=function(){return typeof window<"u"?window:global},qa=function(){var e=DP();return e&&e.tinymce?e.tinymce:null},RP={apiKey:String,licenseKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(e){return e==="html"||e==="text"}}},gr=function(){return gr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},gr.apply(this,arguments)},LP=function(e,t,n,r){return e(r||"div",{id:t,ref:n})},$P=function(e,t,n){return e("textarea",{id:t,visibility:"hidden",ref:n})},Xu={selector:void 0,target:void 0},zP=a.defineComponent({props:RP,setup:function(e,t){var n=e.init?gr(gr({},e.init),Xu):gr({},Xu),r=a.toRefs(e),o=r.disabled,i=r.modelValue,s=r.tagName,l=a.ref(null),c=null,d=e.id||Ny("tiny-vue"),u=e.init&&e.init.inline||e.inline,f=!!t.attrs["onUpdate:modelValue"],p=!0,h=e.initialValue?e.initialValue:"",v="",y=function(S){return f?function(){return i!=null&&i.value?i.value:""}:function(){return S?h:v}},C=function(){var S=y(p),_=gr(gr({},n),{readonly:e.disabled,target:l.value,plugins:MP(n.plugins,e.plugins),toolbar:e.toolbar||n.toolbar,inline:u,license_key:e.licenseKey,setup:function(b){c=b,b.on("init",function(T){return IP(T,e,t,b,i,S)}),typeof n.setup=="function"&&n.setup(b)}});AP(l.value)&&(l.value.style.visibility=""),qa().init(_),p=!1};a.watch(o,function(S){var _;c!==null&&(typeof((_=c.mode)===null||_===void 0?void 0:_.set)=="function"?c.mode.set(S?"readonly":"design"):c.setMode(S?"readonly":"design"))}),a.watch(s,function(S){var _;f||(v=c.getContent()),(_=qa())===null||_===void 0||_.remove(c),a.nextTick(function(){return C()})}),a.onMounted(function(){if(qa()!==null)C();else if(l.value&&l.value.ownerDocument){var S=e.cloudChannel?e.cloudChannel:"7",_=e.apiKey?e.apiKey:"no-api-key",b=OP(e.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(_,"/tinymce/").concat(S,"/tinymce.min.js"):e.tinymceScriptSrc;BP.load(l.value.ownerDocument,b,C)}}),a.onBeforeUnmount(function(){qa()!==null&&qa().remove(c)}),u||(a.onActivated(function(){p||C()}),a.onDeactivated(function(){var S;f||(v=c.getContent()),(S=qa())===null||S===void 0||S.remove(c)}));var g=function(S){var _;v=c.getContent(),(_=qa())===null||_===void 0||_.remove(c),n=gr(gr(gr({},n),S),Xu),a.nextTick(function(){return C()})};return t.expose({rerender:g,getEditor:function(){return c}}),function(){return u?LP(a.h,d,l,e.tagName):$P(a.h,d,l)}}});const VP={class:"relative w-full"},FP=["value","placeholder"],jP={key:0,class:"pointer-events-none absolute inset-0 flex items-center px-2 peer-focus:hidden","data-test-location-labels":""},HP={class:"flex space-x-2"},UP=a.defineComponent({inheritAttrs:!1,__name:"LocationInput",props:{placeholder:{default:""},placeOptions:{default:null},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=a.ref(null),i=a.ref(""),s=a.computed(()=>{var l,c,d;return!!((l=n.modelValue)!=null&&l.postcode)||!!((c=n.modelValue)!=null&&c.street)||!!((d=n.modelValue)!=null&&d.number)});return a.onMounted(async()=>{if(!o.value)return;if(!(window!=null&&window.google)){console.error("Google not defined. use composable useGoogleApi at setup");return}const{Autocomplete:l}=await google.maps.importLibrary("places"),c=new l(o.value,{strictBounds:!1,types:["address"],componentRestrictions:{country:"nl"},...n.placeOptions});c.addListener("place_changed",()=>{var T,E,x,A,P,M,z,V,Y,D,H;i.value="";const d=c.getPlace(),u=(T=d.geometry)==null?void 0:T.location,f=d.address_components??[],p=u==null?void 0:u.lat(),h=u==null?void 0:u.lng(),v=(E=f.find(B=>B.types.includes("postal_code")))==null?void 0:E.long_name,y=(x=f.find(B=>B.types.includes("route")))==null?void 0:x.long_name,C=parseInt(((P=(A=f.find(B=>B.types.includes("street_number")))==null?void 0:A.long_name.split(/(\d*)(.*)/s))==null?void 0:P[1])??"",10),g=(z=(M=f.find(B=>B.types.includes("street_number")))==null?void 0:M.long_name.split(/(\d*)(.*)/s))==null?void 0:z[2],S=(V=f.find(B=>B.types.includes("locality")))==null?void 0:V.long_name,_=(Y=f.find(B=>B.types.includes("administrative_area_level_1")))==null?void 0:Y.long_name,b=(D=f.find(B=>B.types.includes("administrative_area_level_1")))==null?void 0:D.short_name;(H=o.value)==null||H.blur(),r("update:modelValue",{postcode:v,street:y,number:C>0?C:void 0,numberSuffix:g,city:S,province:_,provinceShort:b,lat:p,lng:h})})}),(l,c)=>(a.openBlock(),a.createElementBlock("div",VP,[a.createElementVNode("input",a.mergeProps({ref_key:"input",ref:o,value:i.value,placeholder:s.value?"":l.placeholder},{...l.$attrs},{class:"peer text-zinc-900",onKeydown:c[0]||(c[0]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["enter"]))}),null,16,FP),s.value?(a.openBlock(),a.createElementBlock("div",jP,[a.createElementVNode("div",HP,[a.createVNode(a.unref(Jl),{class:"empty:hidden","data-test-street-label":""},{default:a.withCtx(()=>{var d,u,f;return[a.createTextVNode(a.toDisplayString((d=l.modelValue)==null?void 0:d.street)+" "+a.toDisplayString((u=l.modelValue)==null?void 0:u.number)+a.toDisplayString((f=l.modelValue)==null?void 0:f.numberSuffix),1)]}),_:1}),a.createVNode(a.unref(Jl),{class:"empty:hidden","data-test-postcode-label":""},{default:a.withCtx(()=>{var d;return[a.createTextVNode(a.toDisplayString((d=l.modelValue)==null?void 0:d.postcode),1)]}),_:1})])])):a.createCommentVNode("",!0)]))}}),WP=["multiple"],qP=a.defineComponent({inheritAttrs:!1,__name:"FileInput",props:{modelValue:{},multiple:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=a.computed({get:()=>n.modelValue,set:s=>r("update:modelValue",s)});function i(s){const c=s.target.files;c&&(o.value=Array.from(c))}return(s,l)=>(a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("label",null,[a.createElementVNode("input",a.mergeProps({...s.$attrs},{multiple:s.multiple,type:"file",class:"hidden","data-test-input":"",onChange:i}),null,16,WP),a.renderSlot(s.$slots,"default",{},()=>[a.createVNode(a.unref(lr),{as:"span","color-type":"secondary",class:"size-10 !p-2.5"},{default:a.withCtx(()=>{var c;return[a.createVNode(a.unref(or),{icon:(c=a.unref(zn).far)==null?void 0:c.paperclip,class:"size-5"},null,8,["icon"])]}),_:1})])])]))}}),YP={disabled:!1,readonly:!1,loading:!1,required:!1,multiple:!1,hasError:!1,label:void 0,plain:!1,custom:!1,errorMessage:"",modelModifiers:()=>({})};function GP(e){return eo(e)?Ip:q1(e)?zP:Zl(e)?UP:e==="file"?qP:e==="textarea"?"textarea":"input"}function Xd(e){return e==="license"}function XP(e,t,n){return Dc(e)&&(!!t.default||!!n)}function rc(e,t,n,r,o,i,s){return Dc(t)||Xd(t)||e==="leading"&&Zl(t)?!1:e==="trailing"?!!s.trailingIcon||eo(t)&&!r&&!o&&!i||Zl(t)&&!r||t==="search"&&!r||n&&!s.leadingIcon:!!s[`${e}Icon`]}const KP=`block w-full appearance-none rounded-lg
610
+ focus-visible:outline-none`,X5="rounded bg-white checked:bg-primary";function K5(e,t){return{[G5]:!0,[X5]:e==="checkbox","rounded-full":e==="radio","!border-error":t}}function nr(e,t,n){const r=Re(e,n==null?void 0:n.in);return isNaN(t)?lt((n==null?void 0:n.in)||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function ir(e,t,n){const r=Re(e,n==null?void 0:n.in);if(isNaN(t))return lt(e,NaN);if(!t)return r;const o=r.getDate(),i=lt(e,r.getTime());i.setMonth(r.getMonth()+t+1,0);const s=i.getDate();return o>=s?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}function Y1(e,t,n){const{years:r=0,months:o=0,weeks:i=0,days:s=0,hours:l=0,minutes:c=0,seconds:d=0}=t,u=Re(e,n==null?void 0:n.in),f=o||r?ir(u,o+r*12):u,p=s||i?nr(f,s+i*7):f,h=c+l*60,y=(d+h*60)*1e3;return lt(e,+p+y)}function J5(e,t,n){return lt(e,+Re(e)+t)}function Q5(e,t,n){return J5(e,t*U1)}function ii(e,t){return cr(e,{...t,weekStartsOn:1})}function G1(e,t){const n=Re(e,t==null?void 0:t.in),r=n.getFullYear(),o=lt(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=ii(o),s=lt(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const l=ii(s);return n.getTime()>=i.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function ec(e){const t=Re(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Qh(e,t){const n=Re(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function X1(e,t,n){const[r,o]=Vs(n==null?void 0:n.in,e,t),i=Qh(r),s=Qh(o),l=+i-ec(i),c=+s-ec(s);return Math.round((l-c)/Ox)}function Z5(e,t){const n=G1(e,t),r=lt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ii(r)}function e8(e,t,n){return ir(e,t*3,n)}function dp(e,t,n){return ir(e,t*12,n)}function Zh(e,t){const n=+Re(e)-+Re(t);return n<0?-1:n>0?1:n}function K1(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function rs(e){return!(!K1(e)&&typeof e!="number"||isNaN(+Re(e)))}function ev(e,t){const n=Re(e,t==null?void 0:t.in);return Math.trunc(n.getMonth()/3)+1}function t8(e,t,n){const[r,o]=Vs(n==null?void 0:n.in,e,t);return r.getFullYear()-o.getFullYear()}function n8(e,t,n){const[r,o]=Vs(n==null?void 0:n.in,e,t),i=Zh(r,o),s=Math.abs(t8(r,o));r.setFullYear(1584),o.setFullYear(1584);const l=Zh(r,o)===-i,c=i*(s-+l);return c===0?0:c}function J1(e,t){const[n,r]=Vs(e,t.start,t.end);return{start:n,end:r}}function Q1(e,t){const{start:n,end:r}=J1(t==null?void 0:t.in,e);let o=+n>+r;const i=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0);let l=1;const c=[];for(;+s<=i;)c.push(lt(n,s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return o?c.reverse():c}function to(e,t){const n=Re(e,t==null?void 0:t.in),r=n.getMonth(),o=r-r%3;return n.setMonth(o,1),n.setHours(0,0,0,0),n}function r8(e,t){const{start:n,end:r}=J1(t==null?void 0:t.in,e);let o=+n>+r;const i=o?+to(n):+to(r);let s=to(o?r:n),l=1;const c=[];for(;+s<=i;)c.push(lt(n,s)),s=e8(s,l);return o?c.reverse():c}function a8(e,t){const n=Re(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Z1(e,t){const n=Re(e,t==null?void 0:t.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function _s(e,t){const n=Re(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function ey(e,t){var l,c,d,u;const n=Co(),r=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(d=n.locale)==null?void 0:d.options)==null?void 0:u.weekStartsOn)??0,o=Re(e,t==null?void 0:t.in),i=o.getDay(),s=(i<r?-7:0)+6-(i-r);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function tv(e,t){const n=Re(e,t==null?void 0:t.in),r=n.getMonth(),o=r-r%3+3;return n.setMonth(o,0),n.setHours(23,59,59,999),n}function o8(e,t){const n=Re(e,t==null?void 0:t.in);return X1(n,_s(n))+1}function fp(e,t){const n=Re(e,t==null?void 0:t.in),r=+ii(n)-+Z5(n);return Math.round(r/H1)+1}function pp(e,t){var u,f,p,h;const n=Re(e,t==null?void 0:t.in),r=n.getFullYear(),o=Co(),i=(t==null?void 0:t.firstWeekContainsDate)??((f=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??o.firstWeekContainsDate??((h=(p=o.locale)==null?void 0:p.options)==null?void 0:h.firstWeekContainsDate)??1,s=lt((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const l=cr(s,t),c=lt((t==null?void 0:t.in)||e,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const d=cr(c,t);return+n>=+l?r+1:+n>=+d?r:r-1}function i8(e,t){var l,c,d,u;const n=Co(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(d=n.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??1,o=pp(e,t),i=lt((t==null?void 0:t.in)||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),cr(i,t)}function mp(e,t){const n=Re(e,t==null?void 0:t.in),r=+cr(n,t)-+i8(n,t);return Math.round(r/H1)+1}function st(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const fa={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return st(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):st(n+1,2)},d(e,t){return st(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return st(e.getHours()%12||12,t.length)},H(e,t){return st(e.getHours(),t.length)},m(e,t){return st(e.getMinutes(),t.length)},s(e,t){return st(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return st(o,t.length)}},Bo={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},nv={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return fa.y(e,t)},Y:function(e,t,n,r){const o=pp(e,r),i=o>0?o:1-o;if(t==="YY"){const s=i%100;return st(s,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):st(i,t.length)},R:function(e,t){const n=G1(e);return st(n,t.length)},u:function(e,t){const n=e.getFullYear();return st(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return st(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return st(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return fa.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return st(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=mp(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):st(o,t.length)},I:function(e,t,n){const r=fp(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):st(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):fa.d(e,t)},D:function(e,t,n){const r=o8(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):st(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return st(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return st(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return st(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Bo.noon:r===0?o=Bo.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Bo.evening:r>=12?o=Bo.afternoon:r>=4?o=Bo.morning:o=Bo.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return fa.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):fa.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):st(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):st(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):fa.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):fa.s(e,t)},S:function(e,t){return fa.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return av(r);case"XXXX":case"XX":return Xa(r);case"XXXXX":case"XXX":default:return Xa(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return av(r);case"xxxx":case"xx":return Xa(r);case"xxxxx":case"xxx":default:return Xa(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+rv(r,":");case"OOOO":default:return"GMT"+Xa(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+rv(r,":");case"zzzz":default:return"GMT"+Xa(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return st(r,t.length)},T:function(e,t,n){return st(+e,t.length)}};function rv(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+st(i,2)}function av(e,t){return e%60===0?(e>0?"-":"+")+st(Math.abs(e)/60,2):Xa(e,t)}function Xa(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=st(Math.trunc(r/60),2),i=st(r%60,2);return n+o+t+i}const ov=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},ty=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},s8=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return ov(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",ov(r,t)).replace("{{time}}",ty(o,t))},Hd={p:ty,P:s8},l8=/^D+$/,c8=/^Y+$/,u8=["D","DD","YY","YYYY"];function ny(e){return l8.test(e)}function ry(e){return c8.test(e)}function Ud(e,t,n){const r=d8(e,t,n);if(console.warn(r),u8.includes(e))throw new RangeError(r)}function d8(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const f8=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,p8=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m8=/^'([^]*?)'?$/,h8=/''/g,v8=/[a-zA-Z]/;function Or(e,t,n){var u,f,p,h,v,y,C,g;const r=Co(),o=(n==null?void 0:n.locale)??r.locale??W1,i=(n==null?void 0:n.firstWeekContainsDate)??((f=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(p=r.locale)==null?void 0:p.options)==null?void 0:h.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((y=(v=n==null?void 0:n.locale)==null?void 0:v.options)==null?void 0:y.weekStartsOn)??r.weekStartsOn??((g=(C=r.locale)==null?void 0:C.options)==null?void 0:g.weekStartsOn)??0,l=Re(e,n==null?void 0:n.in);if(!rs(l))throw new RangeError("Invalid time value");let c=t.match(p8).map(S=>{const _=S[0];if(_==="p"||_==="P"){const b=Hd[_];return b(S,o.formatLong)}return S}).join("").match(f8).map(S=>{if(S==="''")return{isToken:!1,value:"'"};const _=S[0];if(_==="'")return{isToken:!1,value:g8(S)};if(nv[_])return{isToken:!0,value:S};if(_.match(v8))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_+"`");return{isToken:!1,value:S}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const d={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return c.map(S=>{if(!S.isToken)return S.value;const _=S.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&ry(_)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&ny(_))&&Ud(_,t,String(e));const b=nv[_[0]];return b(l,_,o.localize,d)}).join("")}function g8(e){const t=e.match(m8);return t?t[1].replace(h8,"'"):e}function y8(e,t){return Re(e,t==null?void 0:t.in).getDay()}function b8(e,t){const n=Re(e,t==null?void 0:t.in),r=n.getFullYear(),o=n.getMonth(),i=lt(n,0);return i.setFullYear(r,o+1,0),i.setHours(0,0,0,0),i.getDate()}function w8(){return Object.assign({},Co())}function ea(e,t){return Re(e,t==null?void 0:t.in).getHours()}function k8(e,t){const n=Re(e,t==null?void 0:t.in).getDay();return n===0?7:n}function Pa(e,t){return Re(e,t==null?void 0:t.in).getMinutes()}function Ke(e,t){return Re(e,t==null?void 0:t.in).getMonth()}function si(e){return Re(e).getSeconds()}function Ve(e,t){return Re(e,t==null?void 0:t.in).getFullYear()}function li(e,t){return+Re(e)>+Re(t)}function Cs(e,t){return+Re(e)<+Re(t)}function jo(e,t){return+Re(e)==+Re(t)}function _8(e,t){const n=C8(t)?new t(0):lt(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function C8(e){var t;return typeof e=="function"&&((t=e.prototype)==null?void 0:t.constructor)===e}const S8=10;class ay{constructor(){Ee(this,"subPriority",0)}validate(t,n){return!0}}class E8 extends ay{constructor(t,n,r,o,i){super(),this.value=t,this.validateValue=n,this.setValue=r,this.priority=o,i&&(this.subPriority=i)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,r){return this.setValue(t,n,this.value,r)}}class x8 extends ay{constructor(n,r){super();Ee(this,"priority",S8);Ee(this,"subPriority",-1);this.context=n||(o=>lt(r,o))}set(n,r){return r.timestampIsSet?n:lt(n,_8(n,this.context))}}class rt{run(t,n,r,o){const i=this.parse(t,n,r,o);return i?{setter:new E8(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,n,r){return!0}}class T8 extends rt{constructor(){super(...arguments);Ee(this,"priority",140);Ee(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,o){switch(r){case"G":case"GG":case"GGG":return o.era(n,{width:"abbreviated"})||o.era(n,{width:"narrow"});case"GGGGG":return o.era(n,{width:"narrow"});case"GGGG":default:return o.era(n,{width:"wide"})||o.era(n,{width:"abbreviated"})||o.era(n,{width:"narrow"})}}set(n,r,o){return r.era=o,n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}const Nt={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}/},_r={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 Bt(e,t){return e&&{value:t(e.value),rest:e.rest}}function Ct(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Cr(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const 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*U1+i*Nx+s*Bx),rest:t.slice(n[0].length)}}function oy(e){return Ct(Nt.anyDigitsSigned,e)}function Pt(e,t){switch(e){case 1:return Ct(Nt.singleDigit,t);case 2:return Ct(Nt.twoDigits,t);case 3:return Ct(Nt.threeDigits,t);case 4:return Ct(Nt.fourDigits,t);default:return Ct(new RegExp("^\\d{1,"+e+"}"),t)}}function tc(e,t){switch(e){case 1:return Ct(Nt.singleDigitSigned,t);case 2:return Ct(Nt.twoDigitsSigned,t);case 3:return Ct(Nt.threeDigitsSigned,t);case 4:return Ct(Nt.fourDigitsSigned,t);default:return Ct(new RegExp("^-?\\d{1,"+e+"}"),t)}}function hp(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 iy(e,t){const n=t>0,r=n?t:1-t;let o;if(r<=50)o=e||100;else{const i=r+50,s=Math.trunc(i/100)*100,l=e>=i%100;o=e+s-(l?100:0)}return n?o:1-o}function sy(e){return e%400===0||e%4===0&&e%100!==0}class P8 extends rt{constructor(){super(...arguments);Ee(this,"priority",130);Ee(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,o){const i=s=>({year:s,isTwoDigitYear:r==="yy"});switch(r){case"y":return Bt(Pt(4,n),i);case"yo":return Bt(o.ordinalNumber(n,{unit:"year"}),i);default:return Bt(Pt(r.length,n),i)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,o){const i=n.getFullYear();if(o.isTwoDigitYear){const l=iy(o.year,i);return n.setFullYear(l,0,1),n.setHours(0,0,0,0),n}const s=!("era"in r)||r.era===1?o.year:1-o.year;return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}class I8 extends rt{constructor(){super(...arguments);Ee(this,"priority",130);Ee(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,o){const i=s=>({year:s,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Bt(Pt(4,n),i);case"Yo":return Bt(o.ordinalNumber(n,{unit:"year"}),i);default:return Bt(Pt(r.length,n),i)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,o,i){const s=pp(n,i);if(o.isTwoDigitYear){const c=iy(o.year,s);return n.setFullYear(c,0,i.firstWeekContainsDate),n.setHours(0,0,0,0),cr(n,i)}const l=!("era"in r)||r.era===1?o.year:1-o.year;return n.setFullYear(l,0,i.firstWeekContainsDate),n.setHours(0,0,0,0),cr(n,i)}}class A8 extends rt{constructor(){super(...arguments);Ee(this,"priority",130);Ee(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return tc(r==="R"?4:r.length,n)}set(n,r,o){const i=lt(n,0);return i.setFullYear(o,0,4),i.setHours(0,0,0,0),ii(i)}}class M8 extends rt{constructor(){super(...arguments);Ee(this,"priority",130);Ee(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return tc(r==="u"?4:r.length,n)}set(n,r,o){return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class O8 extends rt{constructor(){super(...arguments);Ee(this,"priority",120);Ee(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"Q":case"QQ":return Pt(r.length,n);case"Qo":return o.ordinalNumber(n,{unit:"quarter"});case"QQQ":return o.quarter(n,{width:"abbreviated",context:"formatting"})||o.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(n,{width:"wide",context:"formatting"})||o.quarter(n,{width:"abbreviated",context:"formatting"})||o.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,o){return n.setMonth((o-1)*3,1),n.setHours(0,0,0,0),n}}class N8 extends rt{constructor(){super(...arguments);Ee(this,"priority",120);Ee(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"q":case"qq":return Pt(r.length,n);case"qo":return o.ordinalNumber(n,{unit:"quarter"});case"qqq":return o.quarter(n,{width:"abbreviated",context:"standalone"})||o.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(n,{width:"wide",context:"standalone"})||o.quarter(n,{width:"abbreviated",context:"standalone"})||o.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,o){return n.setMonth((o-1)*3,1),n.setHours(0,0,0,0),n}}class B8 extends rt{constructor(){super(...arguments);Ee(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);Ee(this,"priority",110)}parse(n,r,o){const i=s=>s-1;switch(r){case"M":return Bt(Ct(Nt.month,n),i);case"MM":return Bt(Pt(2,n),i);case"Mo":return Bt(o.ordinalNumber(n,{unit:"month"}),i);case"MMM":return o.month(n,{width:"abbreviated",context:"formatting"})||o.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(n,{width:"wide",context:"formatting"})||o.month(n,{width:"abbreviated",context:"formatting"})||o.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,o){return n.setMonth(o,1),n.setHours(0,0,0,0),n}}class D8 extends rt{constructor(){super(...arguments);Ee(this,"priority",110);Ee(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,o){const i=s=>s-1;switch(r){case"L":return Bt(Ct(Nt.month,n),i);case"LL":return Bt(Pt(2,n),i);case"Lo":return Bt(o.ordinalNumber(n,{unit:"month"}),i);case"LLL":return o.month(n,{width:"abbreviated",context:"standalone"})||o.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(n,{width:"wide",context:"standalone"})||o.month(n,{width:"abbreviated",context:"standalone"})||o.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,o){return n.setMonth(o,1),n.setHours(0,0,0,0),n}}function R8(e,t,n){const r=Re(e,n==null?void 0:n.in),o=mp(r,n)-t;return r.setDate(r.getDate()-o*7),Re(r,n==null?void 0:n.in)}class L8 extends rt{constructor(){super(...arguments);Ee(this,"priority",100);Ee(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,o){switch(r){case"w":return Ct(Nt.week,n);case"wo":return o.ordinalNumber(n,{unit:"week"});default:return Pt(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,o,i){return cr(R8(n,o,i),i)}}function $8(e,t,n){const r=Re(e,n==null?void 0:n.in),o=fp(r,n)-t;return r.setDate(r.getDate()-o*7),r}class z8 extends rt{constructor(){super(...arguments);Ee(this,"priority",100);Ee(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,o){switch(r){case"I":return Ct(Nt.week,n);case"Io":return o.ordinalNumber(n,{unit:"week"});default:return Pt(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,o){return ii($8(n,o))}}const V8=[31,28,31,30,31,30,31,31,30,31,30,31],F8=[31,29,31,30,31,30,31,31,30,31,30,31];class j8 extends rt{constructor(){super(...arguments);Ee(this,"priority",90);Ee(this,"subPriority",1);Ee(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"d":return Ct(Nt.date,n);case"do":return o.ordinalNumber(n,{unit:"date"});default:return Pt(r.length,n)}}validate(n,r){const o=n.getFullYear(),i=sy(o),s=n.getMonth();return i?r>=1&&r<=F8[s]:r>=1&&r<=V8[s]}set(n,r,o){return n.setDate(o),n.setHours(0,0,0,0),n}}class H8 extends rt{constructor(){super(...arguments);Ee(this,"priority",90);Ee(this,"subpriority",1);Ee(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,o){switch(r){case"D":case"DD":return Ct(Nt.dayOfYear,n);case"Do":return o.ordinalNumber(n,{unit:"date"});default:return Pt(r.length,n)}}validate(n,r){const o=n.getFullYear();return sy(o)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,o){return n.setMonth(0,o),n.setHours(0,0,0,0),n}}function vp(e,t,n){var f,p,h,v;const r=Co(),o=(n==null?void 0:n.weekStartsOn)??((p=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:p.weekStartsOn)??r.weekStartsOn??((v=(h=r.locale)==null?void 0:h.options)==null?void 0:v.weekStartsOn)??0,i=Re(e,n==null?void 0:n.in),s=i.getDay(),c=(t%7+7)%7,d=7-o,u=t<0||t>6?t-(s+d)%7:(c+d)%7-(s+d)%7;return nr(i,u,n)}class U8 extends rt{constructor(){super(...arguments);Ee(this,"priority",90);Ee(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"E":case"EE":case"EEE":return o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,o,i){return n=vp(n,o,i),n.setHours(0,0,0,0),n}}class W8 extends rt{constructor(){super(...arguments);Ee(this,"priority",90);Ee(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,o,i){const s=l=>{const c=Math.floor((l-1)/7)*7;return(l+i.weekStartsOn+6)%7+c};switch(r){case"e":case"ee":return Bt(Pt(r.length,n),s);case"eo":return Bt(o.ordinalNumber(n,{unit:"day"}),s);case"eee":return o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"eeeee":return o.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,o,i){return n=vp(n,o,i),n.setHours(0,0,0,0),n}}class q8 extends rt{constructor(){super(...arguments);Ee(this,"priority",90);Ee(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,o,i){const s=l=>{const c=Math.floor((l-1)/7)*7;return(l+i.weekStartsOn+6)%7+c};switch(r){case"c":case"cc":return Bt(Pt(r.length,n),s);case"co":return Bt(o.ordinalNumber(n,{unit:"day"}),s);case"ccc":return o.day(n,{width:"abbreviated",context:"standalone"})||o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"});case"ccccc":return o.day(n,{width:"narrow",context:"standalone"});case"cccccc":return o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(n,{width:"wide",context:"standalone"})||o.day(n,{width:"abbreviated",context:"standalone"})||o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,o,i){return n=vp(n,o,i),n.setHours(0,0,0,0),n}}function Y8(e,t,n){const r=Re(e,n==null?void 0:n.in),o=k8(r,n),i=t-o;return nr(r,i,n)}class G8 extends rt{constructor(){super(...arguments);Ee(this,"priority",90);Ee(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,o){const i=s=>s===0?7:s;switch(r){case"i":case"ii":return Pt(r.length,n);case"io":return o.ordinalNumber(n,{unit:"day"});case"iii":return Bt(o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),i);case"iiiii":return Bt(o.day(n,{width:"narrow",context:"formatting"}),i);case"iiiiii":return Bt(o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),i);case"iiii":default:return Bt(o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),i)}}validate(n,r){return r>=1&&r<=7}set(n,r,o){return n=Y8(n,o),n.setHours(0,0,0,0),n}}class X8 extends rt{constructor(){super(...arguments);Ee(this,"priority",80);Ee(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,o){switch(r){case"a":case"aa":case"aaa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,o){return n.setHours(hp(o),0,0,0),n}}class K8 extends rt{constructor(){super(...arguments);Ee(this,"priority",80);Ee(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,o){switch(r){case"b":case"bb":case"bbb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,o){return n.setHours(hp(o),0,0,0),n}}class J8 extends rt{constructor(){super(...arguments);Ee(this,"priority",80);Ee(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,o){switch(r){case"B":case"BB":case"BBB":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,o){return n.setHours(hp(o),0,0,0),n}}class Q8 extends rt{constructor(){super(...arguments);Ee(this,"priority",70);Ee(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,o){switch(r){case"h":return Ct(Nt.hour12h,n);case"ho":return o.ordinalNumber(n,{unit:"hour"});default:return Pt(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,o){const i=n.getHours()>=12;return i&&o<12?n.setHours(o+12,0,0,0):!i&&o===12?n.setHours(0,0,0,0):n.setHours(o,0,0,0),n}}class Z8 extends rt{constructor(){super(...arguments);Ee(this,"priority",70);Ee(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,o){switch(r){case"H":return Ct(Nt.hour23h,n);case"Ho":return o.ordinalNumber(n,{unit:"hour"});default:return Pt(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,o){return n.setHours(o,0,0,0),n}}class eT extends rt{constructor(){super(...arguments);Ee(this,"priority",70);Ee(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,o){switch(r){case"K":return Ct(Nt.hour11h,n);case"Ko":return o.ordinalNumber(n,{unit:"hour"});default:return Pt(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,o){return n.getHours()>=12&&o<12?n.setHours(o+12,0,0,0):n.setHours(o,0,0,0),n}}class tT extends rt{constructor(){super(...arguments);Ee(this,"priority",70);Ee(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,o){switch(r){case"k":return Ct(Nt.hour24h,n);case"ko":return o.ordinalNumber(n,{unit:"hour"});default:return Pt(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,o){const i=o<=24?o%24:o;return n.setHours(i,0,0,0),n}}class nT extends rt{constructor(){super(...arguments);Ee(this,"priority",60);Ee(this,"incompatibleTokens",["t","T"])}parse(n,r,o){switch(r){case"m":return Ct(Nt.minute,n);case"mo":return o.ordinalNumber(n,{unit:"minute"});default:return Pt(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,o){return n.setMinutes(o,0,0),n}}class rT extends rt{constructor(){super(...arguments);Ee(this,"priority",50);Ee(this,"incompatibleTokens",["t","T"])}parse(n,r,o){switch(r){case"s":return Ct(Nt.second,n);case"so":return o.ordinalNumber(n,{unit:"second"});default:return Pt(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,o){return n.setSeconds(o,0),n}}class aT extends rt{constructor(){super(...arguments);Ee(this,"priority",30);Ee(this,"incompatibleTokens",["t","T"])}parse(n,r){const o=i=>Math.trunc(i*Math.pow(10,-r.length+3));return Bt(Pt(r.length,n),o)}set(n,r,o){return n.setMilliseconds(o),n}}class oT extends rt{constructor(){super(...arguments);Ee(this,"priority",10);Ee(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return Cr(_r.basicOptionalMinutes,n);case"XX":return Cr(_r.basic,n);case"XXXX":return Cr(_r.basicOptionalSeconds,n);case"XXXXX":return Cr(_r.extendedOptionalSeconds,n);case"XXX":default:return Cr(_r.extended,n)}}set(n,r,o){return r.timestampIsSet?n:lt(n,n.getTime()-ec(n)-o)}}class iT extends rt{constructor(){super(...arguments);Ee(this,"priority",10);Ee(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return Cr(_r.basicOptionalMinutes,n);case"xx":return Cr(_r.basic,n);case"xxxx":return Cr(_r.basicOptionalSeconds,n);case"xxxxx":return Cr(_r.extendedOptionalSeconds,n);case"xxx":default:return Cr(_r.extended,n)}}set(n,r,o){return r.timestampIsSet?n:lt(n,n.getTime()-ec(n)-o)}}class sT extends rt{constructor(){super(...arguments);Ee(this,"priority",40);Ee(this,"incompatibleTokens","*")}parse(n){return oy(n)}set(n,r,o){return[lt(n,o*1e3),{timestampIsSet:!0}]}}class lT extends rt{constructor(){super(...arguments);Ee(this,"priority",20);Ee(this,"incompatibleTokens","*")}parse(n){return oy(n)}set(n,r,o){return[lt(n,o),{timestampIsSet:!0}]}}const cT={G:new T8,y:new P8,Y:new I8,R:new A8,u:new M8,Q:new O8,q:new N8,M:new B8,L:new D8,w:new L8,I:new z8,d:new j8,D:new H8,E:new U8,e:new W8,c:new q8,i:new G8,a:new X8,b:new K8,B:new J8,h:new Q8,H:new Z8,K:new eT,k:new tT,m:new nT,s:new rT,S:new aT,X:new oT,x:new iT,t:new sT,T:new lT},uT=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dT=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fT=/^'([^]*?)'?$/,pT=/''/g,mT=/\S/,hT=/[a-zA-Z]/;function Wd(e,t,n,r){var C,g,S,_,b,T,E,x;const o=()=>lt((r==null?void 0:r.in)||n,NaN),i=w8(),s=(r==null?void 0:r.locale)??i.locale??W1,l=(r==null?void 0:r.firstWeekContainsDate)??((g=(C=r==null?void 0:r.locale)==null?void 0:C.options)==null?void 0:g.firstWeekContainsDate)??i.firstWeekContainsDate??((_=(S=i.locale)==null?void 0:S.options)==null?void 0:_.firstWeekContainsDate)??1,c=(r==null?void 0:r.weekStartsOn)??((T=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:T.weekStartsOn)??i.weekStartsOn??((x=(E=i.locale)==null?void 0:E.options)==null?void 0:x.weekStartsOn)??0;if(!t)return e?o():Re(n,r==null?void 0:r.in);const d={firstWeekContainsDate:l,weekStartsOn:c,locale:s},u=[new x8(r==null?void 0:r.in,n)],f=t.match(dT).map(A=>{const P=A[0];if(P in Hd){const M=Hd[P];return M(A,s.formatLong)}return A}).join("").match(uT),p=[];for(let A of f){!(r!=null&&r.useAdditionalWeekYearTokens)&&ry(A)&&Ud(A,t,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&ny(A)&&Ud(A,t,e);const P=A[0],M=cT[P];if(M){const{incompatibleTokens:z}=M;if(Array.isArray(z)){const Y=p.find(D=>z.includes(D.token)||D.token===P);if(Y)throw new RangeError(`The format string mustn't contain \`${Y.fullToken}\` and \`${A}\` at the same time`)}else if(M.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${A}\` and any other token at the same time`);p.push({token:P,fullToken:A});const V=M.run(e,A,s.match,d);if(!V)return o();u.push(V.setter),e=V.rest}else{if(P.match(hT))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");if(A==="''"?A="'":P==="'"&&(A=vT(A)),e.indexOf(A)===0)e=e.slice(A.length);else return o()}}if(e.length>0&&mT.test(e))return o();const h=u.map(A=>A.priority).sort((A,P)=>P-A).filter((A,P,M)=>M.indexOf(A)===P).map(A=>u.filter(P=>P.priority===A).sort((P,M)=>M.subPriority-P.subPriority)).map(A=>A[0]);let v=Re(n,r==null?void 0:r.in);if(isNaN(+v))return o();const y={};for(const A of h){if(!A.validate(v,d))return o();const P=A.set(v,y,d);Array.isArray(P)?(v=P[0],Object.assign(y,P[1])):v=P}return v}function vT(e){return e.match(fT)[1].replace(pT,"'")}function iv(e,t,n){const[r,o]=Vs(n==null?void 0:n.in,e,t);return+to(r)==+to(o)}function gT(e,t,n){return nr(e,-t,n)}function ly(e,t,n){const r=Re(e,n==null?void 0:n.in),o=r.getFullYear(),i=r.getDate(),s=lt(e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);const l=b8(s);return r.setMonth(t,Math.min(i,l)),r}function pt(e,t,n){let r=Re(e,n==null?void 0:n.in);return isNaN(+r)?lt(e,NaN):(t.year!=null&&r.setFullYear(t.year),t.month!=null&&(r=ly(r,t.month)),t.date!=null&&r.setDate(t.date),t.hours!=null&&r.setHours(t.hours),t.minutes!=null&&r.setMinutes(t.minutes),t.seconds!=null&&r.setSeconds(t.seconds),t.milliseconds!=null&&r.setMilliseconds(t.milliseconds),r)}function yT(e,t,n){const r=Re(e,n==null?void 0:n.in);return r.setHours(t),r}function cy(e,t,n){const r=Re(e,n==null?void 0:n.in);return r.setMilliseconds(t),r}function bT(e,t,n){const r=Re(e,n==null?void 0:n.in);return r.setMinutes(t),r}function uy(e,t,n){const r=Re(e,n==null?void 0:n.in);return r.setSeconds(t),r}function Pr(e,t,n){const r=Re(e,n==null?void 0:n.in);return isNaN(+r)?lt(e,NaN):(r.setFullYear(t),r)}function ci(e,t,n){return ir(e,-t,n)}function wT(e,t,n){const{years:r=0,months:o=0,weeks:i=0,days:s=0,hours:l=0,minutes:c=0,seconds:d=0}=t,u=ci(e,o+r*12,n),f=gT(u,s+i*7,n),p=c+l*60,v=(d+p*60)*1e3;return lt(e,+f-v)}function dy(e,t,n){return dp(e,-t,n)}function Ii(){const e=a.useAttrs();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",role:"img",...e},[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"})])}Ii.compatConfig={MODE:3};function fy(){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",role:"img"},[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"})])}fy.compatConfig={MODE:3};function gp(){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",role:"img"},[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"})])}gp.compatConfig={MODE:3};function yp(){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",role:"img"},[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"})])}yp.compatConfig={MODE:3};function bp(){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",role:"img"},[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"})])}bp.compatConfig={MODE:3};function wp(){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",role:"img"},[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"})])}wp.compatConfig={MODE:3};function kp(){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",role:"img"},[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"})])}kp.compatConfig={MODE:3};const Cn=(e,t)=>t?new Date(e.toLocaleString("en-US",{timeZone:t})):new Date(e),_p=(e,t,n)=>qd(e,t,n)||fe(),kT=(e,t,n)=>{const r=t.dateInTz?Cn(new Date(e),t.dateInTz):fe(e);return n?fn(r,!0):r},qd=(e,t,n)=>{if(!e)return null;const r=n?fn(fe(e),!0):fe(e);return t?t.exactMatch?kT(e,t,n):Cn(r,t.timezone):r},_T=(e,t)=>{if(!e)return 0;const n=new Date,r=new Date(n.toLocaleString("en-US",{timeZone:"UTC"})),o=new Date(n.toLocaleString("en-US",{timeZone:e})),i=(t??o).getTimezoneOffset()/60;return(+r-+o)/(1e3*60*60)-i};var Xn=(e=>(e.month="month",e.year="year",e))(Xn||{}),Kn=(e=>(e.top="top",e.bottom="bottom",e))(Kn||{}),so=(e=>(e.header="header",e.calendar="calendar",e.timePicker="timePicker",e))(so||{}),tn=(e=>(e.month="month",e.year="year",e.calendar="calendar",e.time="time",e.minutes="minutes",e.hours="hours",e.seconds="seconds",e))(tn||{});const CT=["timestamp","date","iso"];var on=(e=>(e.up="up",e.down="down",e.left="left",e.right="right",e))(on||{}),bt=(e=>(e.arrowUp="ArrowUp",e.arrowDown="ArrowDown",e.arrowLeft="ArrowLeft",e.arrowRight="ArrowRight",e.enter="Enter",e.space=" ",e.esc="Escape",e.tab="Tab",e.home="Home",e.end="End",e.pageUp="PageUp",e.pageDown="PageDown",e))(bt||{});function sv(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 ST(e){return t=>Or(Cn(new Date(`2017-01-0${t}T00:00:00+00:00`),"UTC"),"EEEEEE",{locale:e})}const ET=(e,t,n)=>{const r=[1,2,3,4,5,6,7];let o;if(e!==null)try{o=r.map(ST(e))}catch{o=r.map(sv(t))}else o=r.map(sv(t));const i=o.slice(0,n),s=o.slice(n+1,o.length);return[o[n]].concat(...s).concat(...i)},Cp=(e,t,n)=>{const r=[];for(let o=+e[0];o<=+e[1];o++)r.push({value:+o,text:vy(o,t)});return n?r.reverse():r},py=(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"?"LLLL":"LLL";return r.map((s,l)=>{const c=Or(Cn(s,"UTC"),i,{locale:e});return{text:c.charAt(0).toUpperCase()+c.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}})},xT=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],Ft=e=>{const t=a.unref(e);return t!=null&&t.$el?t==null?void 0:t.$el:t},TT=e=>({type:"dot",...e??{}}),my=e=>Array.isArray(e)?!!e[0]&&!!e[1]:!1,Sp={prop:e=>`"${e}" prop must be enabled!`,dateArr:e=>`You need to use array as "model-value" binding in order to support "${e}"`},Ht=e=>e,lv=e=>e===0?e:!e||isNaN(+e)?null:+e,cv=e=>e===null,hy=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},PT=e=>{const t=[],n=r=>r.filter(o=>o);for(let r=0;r<e.length;r+=3){const o=[e[r],e[r+1],e[r+2]];t.push(n(o))}return t},Ss=(e,t,n)=>{const r=n!=null,o=t!=null;if(!r&&!o)return!1;const i=+n,s=+t;return r&&o?+e>i||+e<s:r?+e>i:o?+e<s:!1},ui=(e,t)=>PT(e).map(n=>n.map(r=>{const{active:o,disabled:i,isBetween:s,highlighted:l}=t(r);return{...r,active:o,disabled:i,className:{dp__overlay_cell_active:o,dp__overlay_cell:!o,dp__overlay_cell_disabled:i,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:i&&o,dp__cell_in_between:s,"dp--highlighted":l}}})),wa=(e,t,n=!1)=>{e&&t.allowStopPropagation&&(n&&e.stopImmediatePropagation(),e.stopPropagation())},IT=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", ");function AT(e,t){let n=[...document.querySelectorAll(IT())];n=n.filter(o=>!e.contains(o)||o.hasAttribute("data-datepicker-instance"));const r=n.indexOf(e);if(r>=0&&(t?r-1>=0:r+1<=n.length))return n[r+(t?-1:1)]}const Yd=(e,t)=>e==null?void 0:e.querySelector(`[data-dp-element="${t}"]`),vy=(e,t)=>new Intl.NumberFormat(t,{useGrouping:!1,style:"decimal"}).format(e),Ep=e=>Or(e,"dd-MM-yyyy"),$u=e=>Array.isArray(e),nc=(e,t)=>t.get(Ep(e)),MT=(e,t)=>e?t?t instanceof Map?!!nc(e,t):t(fe(e)):!1:!0,dn=(e,t,n=!1,r)=>{if(e.key===bt.enter||e.key===bt.space)return n&&e.preventDefault(),t();if(r)return r(e)},uv=()=>["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].some(e=>navigator.userAgent.includes(e))||navigator.userAgent.includes("Mac")&&"ontouchend"in document,dv=(e,t,n,r,o,i)=>{const s=Wd(e,t.slice(0,e.length),new Date,{locale:i});return rs(s)&&K1(s)?r||o?s:pt(s,{hours:+n.hours,minutes:+(n==null?void 0:n.minutes),seconds:+(n==null?void 0:n.seconds),milliseconds:0}):null},OT=(e,t,n,r,o,i)=>{const s=Array.isArray(n)?n[0]:n;if(typeof t=="string")return dv(e,t,s,r,o,i);if(Array.isArray(t)){let l=null;for(const c of t)if(l=dv(e,c,s,r,o,i),l)break;return l}return typeof t=="function"?t(e):null},fe=e=>e?new Date(e):new Date,NT=(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"),c=n?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${o}-${i}T${s}:${l}:${c}.000Z`}const r=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(r).toISOString()},fn=(e,t)=>{const n=fe(JSON.parse(JSON.stringify(e))),r=pt(n,{hours:0,minutes:0,seconds:0,milliseconds:0});return t?a8(r):r},ka=(e,t,n,r)=>{let o=e?fe(e):fe();return(t||t===0)&&(o=yT(o,+t)),(n||n===0)&&(o=bT(o,+n)),(r||r===0)&&(o=uy(o,+r)),cy(o,0)},Tt=(e,t)=>!e||!t?!1:Cs(fn(e),fn(t)),Je=(e,t)=>!e||!t?!1:jo(fn(e),fn(t)),Ot=(e,t)=>!e||!t?!1:li(fn(e),fn(t)),Rc=(e,t,n)=>e!=null&&e[0]&&e!=null&&e[1]?Ot(n,e[0])&&Tt(n,e[1]):e!=null&&e[0]&&t?Ot(n,e[0])&&Tt(n,t)||Tt(n,e[0])&&Ot(n,t):!1,rr=e=>{const t=pt(new Date(e),{date:1});return fn(t)},zu=(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},lo=e=>({hours:ea(e),minutes:Pa(e),seconds:si(e)}),gy=(e,t)=>{if(t){const n=Ve(fe(t));if(n>e)return 12;if(n===e)return Ke(fe(t))}},yy=(e,t)=>{if(t){const n=Ve(fe(t));return n<e?-1:n===e?Ke(fe(t)):void 0}},di=e=>{if(e)return Ve(fe(e))},by=(e,t)=>{const n=Ot(e,t)?t:e,r=Ot(t,e)?t:e;return Q1({start:n,end:r})},BT=e=>{const t=ir(e,1);return{month:Ke(t),year:Ve(t)}},Wr=(e,t)=>{const n=cr(e,{weekStartsOn:+t}),r=ey(e,{weekStartsOn:+t});return[n,r]},wy=(e,t)=>{const n={hours:ea(fe()),minutes:Pa(fe()),seconds:t?si(fe()):0};return Object.assign(n,e)},ba=(e,t,n)=>[pt(fe(e),{date:1}),pt(fe(),{month:t,year:n,date:1})],qr=(e,t,n)=>{let r=e?fe(e):fe();return(t||t===0)&&(r=ly(r,t)),n&&(r=Pr(r,n)),r},ky=(e,t,n,r,o)=>{if(!r||o&&!t||!o&&!n)return!1;const i=o?ir(e,1):ci(e,1),s=[Ke(i),Ve(i)];return o?!RT(...s,t):!DT(...s,n)},DT=(e,t,n)=>Tt(...ba(n,e,t))||Je(...ba(n,e,t)),RT=(e,t,n)=>Ot(...ba(n,e,t))||Je(...ba(n,e,t)),_y=(e,t,n,r,o,i,s)=>{if(typeof t=="function"&&!s)return t(e);const l=n?{locale:n}:void 0;return Array.isArray(e)?`${Or(e[0],i,l)}${o&&!e[1]?"":r}${e[1]?Or(e[1],i,l):""}`:Or(e,i,l)},Do=e=>{if(e)return null;throw new Error(Sp.prop("partial-range"))},fl=(e,t)=>{if(t)return e();throw new Error(Sp.prop("range"))},Gd=e=>Array.isArray(e)?rs(e[0])&&(e[1]?rs(e[1]):!0):e?rs(e):!1,LT=(e,t)=>pt(t??fe(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0}),Vu=(e,t,n,r)=>{if(!e)return!0;if(r){const o=n==="max"?Cs(e,t):li(e,t),i={seconds:0,milliseconds:0};return o||jo(pt(e,i),pt(t,i))}return n==="max"?e.getTime()<=t.getTime():e.getTime()>=t.getTime()},Fu=(e,t,n)=>e?LT(e,t):fe(n??t),fv=(e,t,n,r,o)=>{if(Array.isArray(r)){const s=Fu(e,r[0],t),l=Fu(e,r[1],t);return Vu(r[0],s,n,!!t)&&Vu(r[1],l,n,!!t)&&o}const i=Fu(e,r,t);return Vu(r,i,n,!!t)&&o},ju=e=>pt(fe(),lo(e)),$T=(e,t)=>e instanceof Map?Array.from(e.values()).filter(n=>Ve(fe(n))===t).map(n=>Ke(n)):[],zT=(e,t,n)=>{if(e instanceof Map){const r=Array.from(e.values()).filter(o=>Ve(fe(o))===t).map(o=>Ke(o));return r.length?r.includes(n):!0}return!0},Cy=(e,t,n)=>typeof e=="function"?e({month:t,year:n}):!!e.months.find(r=>r.month===t&&r.year===n),xp=(e,t)=>typeof e=="function"?e(t):e.years.includes(t),Sy=e=>Or(e,"yyyy-MM-dd"),Yi=a.reactive({menuFocused:!1,shiftKeyInMenu:!1}),Ey=()=>{const e=n=>{Yi.menuFocused=n},t=n=>{Yi.shiftKeyInMenu!==n&&(Yi.shiftKeyInMenu=n)};return{control:a.computed(()=>({shiftKeyInMenu:Yi.shiftKeyInMenu,menuFocused:Yi.menuFocused})),setMenuFocused:e,setShiftKey:t}},yt=a.reactive({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),Hu=a.ref(null),pl=a.ref(!1),Uu=a.ref(!1),Wu=a.ref(!1),qu=a.ref(!1),en=a.ref(0),At=a.ref(0),La=()=>{const e=a.computed(()=>pl.value?[...yt.selectionGrid,yt.actionRow].filter(f=>f.length):Uu.value?[...yt.timePicker[0],...yt.timePicker[1],qu.value?[]:[Hu.value],yt.actionRow].filter(f=>f.length):Wu.value?[...yt.monthPicker,yt.actionRow]:[yt.monthYear,...yt.calendar,yt.time,yt.actionRow].filter(f=>f.length)),t=f=>{en.value=f?en.value+1:en.value-1;let p=null;e.value[At.value]&&(p=e.value[At.value][en.value]),!p&&e.value[At.value+(f?1:-1)]?(At.value=At.value+(f?1:-1),en.value=f?0:e.value[At.value].length-1):p||(en.value=f?en.value-1:en.value+1)},n=f=>{At.value===0&&!f||At.value===e.value.length&&f||(At.value=f?At.value+1:At.value-1,e.value[At.value]?e.value[At.value]&&!e.value[At.value][en.value]&&en.value!==0&&(en.value=e.value[At.value].length-1):At.value=f?At.value-1:At.value+1)},r=f=>{let p=null;e.value[At.value]&&(p=e.value[At.value][en.value]),p?p.focus({preventScroll:!pl.value}):en.value=f?en.value-1:en.value+1},o=()=>{t(!0),r(!0)},i=()=>{t(!1),r(!1)},s=()=>{n(!1),r(!0)},l=()=>{n(!0),r(!0)},c=(f,p)=>{yt[p]=f},d=(f,p)=>{yt[p]=f},u=()=>{en.value=0,At.value=0};return{buildMatrix:c,buildMultiLevelMatrix:d,setTimePickerBackRef:f=>{Hu.value=f},setSelectionGrid:f=>{pl.value=f,u(),f||(yt.selectionGrid=[])},setTimePicker:(f,p=!1)=>{Uu.value=f,qu.value=p,u(),f||(yt.timePicker[0]=[],yt.timePicker[1]=[])},setTimePickerElements:(f,p=0)=>{yt.timePicker[p]=f},arrowRight:o,arrowLeft:i,arrowUp:s,arrowDown:l,clearArrowNav:()=>{yt.monthYear=[],yt.calendar=[],yt.time=[],yt.actionRow=[],yt.selectionGrid=[],yt.timePicker[0]=[],yt.timePicker[1]=[],pl.value=!1,Uu.value=!1,qu.value=!1,Wu.value=!1,u(),Hu.value=null},setMonthPicker:f=>{Wu.value=f,u()},refSets:yt}},pv=e=>({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down",...e??{}}),VT=e=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",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",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,clearInput:"Clear value",calendarIcon:"Calendar icon",timePicker:"Time picker",monthPicker:t=>`Month picker${t?" overlay":""}`,yearPicker:t=>`Year picker${t?" overlay":""}`,timeOverlay:t=>`${t} overlay`,...e??{}}),mv=e=>e?typeof e=="boolean"?e?2:0:+e>=2?+e:2:0,FT=e=>{const t=typeof e=="object"&&e,n={static:!0,solo:!1};if(!e)return{...n,count:mv(!1)};const r=t?e:{},o=t?r.count??!0:e,i=mv(o);return Object.assign(n,r,{count:i})},jT=(e,t,n)=>e||(typeof n=="string"?n:t),HT=e=>typeof e=="boolean"?e?pv({}):!1:pv(e),UT=e=>{const t={enterSubmit:!0,tabSubmit:!0,openMenu:"open",selectOnFocus:!1,rangeSeparator:" - "};return typeof e=="object"?{...t,...e??{},enabled:!0}:{...t,enabled:e}},WT=e=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...e??{}}),qT=e=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...e??{}}),YT=e=>{const t={input:!1};return typeof e=="object"?{...t,...e??{},enabled:!0}:{enabled:e,...t}},GT=e=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,shadowDom:!1,mobileBreakpoint:600,setDateOnMenuClose:!1,...e??{}}),XT=e=>{const t={dates:Array.isArray(e)?e.map(n=>fe(n)):[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}};return typeof e=="function"?e:{...t,...e??{}}},KT=e=>typeof e=="object"?{type:(e==null?void 0:e.type)??"local",hideOnOffsetDates:(e==null?void 0:e.hideOnOffsetDates)??!1}:{type:e,hideOnOffsetDates:!1},JT=e=>{const t={noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1};return typeof e=="object"?{enabled:!0,...t,...e}:{enabled:e,...t}},QT=e=>e?typeof e=="string"?{timezone:e,exactMatch:!1,dateInTz:void 0,emitTimezone:void 0,convertModel:!0}:{timezone:e.timezone,exactMatch:e.exactMatch??!1,dateInTz:e.dateInTz??void 0,emitTimezone:e.emitTimezone??void 0,convertModel:e.convertModel??!0}:{timezone:void 0,exactMatch:!1,emitTimezone:void 0},Yu=(e,t,n)=>new Map(e.map(r=>{const o=_p(r,t,n);return[Ep(o),o]})),ZT=(e,t)=>e.length?new Map(e.map(n=>{const r=_p(n.date,t);return[Ep(r),n]})):null,e7=e=>{var t;return{minDate:qd(e.minDate,e.timezone,e.isSpecific),maxDate:qd(e.maxDate,e.timezone,e.isSpecific),disabledDates:$u(e.disabledDates)?Yu(e.disabledDates,e.timezone,e.isSpecific):e.disabledDates,allowedDates:$u(e.allowedDates)?Yu(e.allowedDates,e.timezone,e.isSpecific):null,highlight:typeof e.highlight=="object"&&$u((t=e.highlight)==null?void 0:t.dates)?Yu(e.highlight.dates,e.timezone):e.highlight,markers:ZT(e.markers,e.timezone)}},t7=e=>typeof e=="boolean"?{enabled:e,dragSelect:!0,limit:null}:{enabled:!!e,limit:e.limit?+e.limit:null,dragSelect:e.dragSelect??!0},n7=e=>({...Object.fromEntries(Object.keys(e).map(t=>{const n=t,r=e[n],o=typeof e[n]=="string"?{[r]:!0}:Object.fromEntries(r.map(i=>[i,!0]));return[t,o]}))}),kt=e=>{const t=()=>{const E=e.enableSeconds?":ss":"",x=e.enableMinutes?":mm":"";return e.is24?`HH${x}${E}`:`hh${x}${E} aa`},n=()=>{var E;return e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?t():e.weekPicker?`${((E=C.value)==null?void 0:E.type)==="iso"?"RR":"ww"}-yyyy`:e.yearPicker?"yyyy":e.quarterPicker?"QQQ/yyyy":e.enableTimePicker?`MM/dd/yyyy, ${t()}`:"MM/dd/yyyy"},r=E=>wy(E,e.enableSeconds),o=()=>b.value.enabled?e.startTime&&Array.isArray(e.startTime)?[r(e.startTime[0]),r(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?r(e.startTime):null,i=a.computed(()=>FT(e.multiCalendars)),s=a.computed(()=>o()),l=a.computed(()=>VT(e.ariaLabels)),c=a.computed(()=>WT(e.filters)),d=a.computed(()=>HT(e.transitions)),u=a.computed(()=>qT(e.actionRow)),f=a.computed(()=>jT(e.previewFormat,e.format,n())),p=a.computed(()=>UT(e.textInput)),h=a.computed(()=>YT(e.inline)),v=a.computed(()=>GT(e.config)),y=a.computed(()=>XT(e.highlight)),C=a.computed(()=>KT(e.weekNumbers)),g=a.computed(()=>QT(e.timezone)),S=a.computed(()=>t7(e.multiDates)),_=a.computed(()=>e7({minDate:e.minDate,maxDate:e.maxDate,disabledDates:e.disabledDates,allowedDates:e.allowedDates,highlight:y.value,markers:e.markers,timezone:g.value,isSpecific:e.monthPicker||e.yearPicker||e.quarterPicker})),b=a.computed(()=>JT(e.range)),T=a.computed(()=>n7(e.ui));return{defaultedTransitions:d,defaultedMultiCalendars:i,defaultedStartTime:s,defaultedAriaLabels:l,defaultedFilters:c,defaultedActionRow:u,defaultedPreviewFormat:f,defaultedTextInput:p,defaultedInline:h,defaultedConfig:v,defaultedHighlight:y,defaultedWeekNumbers:C,defaultedRange:b,propDates:_,defaultedTz:g,defaultedMultiDates:S,defaultedUI:T,getDefaultPattern:n,getDefaultStartTime:o}},r7=(e,t,n)=>{const r=a.ref(),{defaultedTextInput:o,defaultedRange:i,defaultedTz:s,defaultedMultiDates:l,getDefaultPattern:c}=kt(t),d=a.ref(""),u=a.toRef(t,"format"),f=a.toRef(t,"formatLocale");a.watch(r,()=>{typeof t.onInternalModelChange=="function"&&e("internal-model-change",r.value,F(!0))},{deep:!0}),a.watch(i,(N,ce)=>{N.enabled!==ce.enabled&&(r.value=null)}),a.watch(u,()=>{J()});const p=N=>s.value.timezone&&s.value.convertModel?Cn(N,s.value.timezone):N,h=N=>{if(s.value.timezone&&s.value.convertModel){const ce=_T(s.value.timezone,N);return Q5(N,ce)}return N},v=(N,ce,ge=!1)=>_y(N,t.format,t.formatLocale,o.value.rangeSeparator,t.modelAuto,ce??c(),ge),y=N=>N?t.modelType?j(N):{hours:ea(N),minutes:Pa(N),seconds:t.enableSeconds?si(N):0}:null,C=N=>t.modelType?j(N):{month:Ke(N),year:Ve(N)},g=N=>Array.isArray(N)?l.value.enabled?N.map(ce=>S(ce,Pr(fe(),ce))):fl(()=>[Pr(fe(),N[0]),N[1]?Pr(fe(),N[1]):Do(i.value.partialRange)],i.value.enabled):Pr(fe(),+N),S=(N,ce)=>(typeof N=="string"||typeof N=="number")&&t.modelType?U(N):ce,_=N=>Array.isArray(N)?[S(N[0],ka(null,+N[0].hours,+N[0].minutes,N[0].seconds)),S(N[1],ka(null,+N[1].hours,+N[1].minutes,N[1].seconds))]:S(N,ka(null,N.hours,N.minutes,N.seconds)),b=N=>{const ce=pt(fe(),{date:1});return Array.isArray(N)?l.value.enabled?N.map(ge=>S(ge,qr(ce,+ge.month,+ge.year))):fl(()=>[S(N[0],qr(ce,+N[0].month,+N[0].year)),S(N[1],N[1]?qr(ce,+N[1].month,+N[1].year):Do(i.value.partialRange))],i.value.enabled):S(N,qr(ce,+N.month,+N.year))},T=N=>{if(Array.isArray(N))return N.map(ce=>U(ce));throw new Error(Sp.dateArr("multi-dates"))},E=N=>{if(Array.isArray(N)&&i.value.enabled){const ce=N[0],ge=N[1];return[fe(Array.isArray(ce)?ce[0]:null),Array.isArray(ge)&&ge.length?fe(ge[0]):null]}return fe(N[0])},x=N=>t.modelAuto?Array.isArray(N)?[U(N[0]),U(N[1])]:t.autoApply?[U(N)]:[U(N),null]:Array.isArray(N)?fl(()=>N[1]?[U(N[0]),N[1]?U(N[1]):Do(i.value.partialRange)]:[U(N[0])],i.value.enabled):U(N),A=()=>{Array.isArray(r.value)&&i.value.enabled&&r.value.length===1&&r.value.push(Do(i.value.partialRange))},P=()=>{const N=r.value;return[j(N[0]),N[1]?j(N[1]):Do(i.value.partialRange)]},M=()=>r.value[1]?P():j(Ht(r.value[0])),z=()=>(r.value||[]).map(N=>j(N)),V=(N=!1)=>(N||A(),t.modelAuto?M():l.value.enabled?z():Array.isArray(r.value)?fl(()=>P(),i.value.enabled):j(Ht(r.value))),Y=N=>!N||Array.isArray(N)&&!N.length?null:t.timePicker?_(Ht(N)):t.monthPicker?b(Ht(N)):t.yearPicker?g(Ht(N)):l.value.enabled?T(Ht(N)):t.weekPicker?E(Ht(N)):x(Ht(N)),D=N=>{const ce=Y(N);Gd(Ht(ce))?(r.value=Ht(ce),J()):(r.value=null,d.value="")},H=()=>{const N=ce=>Or(ce,o.value.format);return`${N(r.value[0])} ${o.value.rangeSeparator} ${r.value[1]?N(r.value[1]):""}`},B=()=>n.value&&r.value?Array.isArray(r.value)?H():Or(r.value,o.value.format):v(r.value),q=()=>r.value?l.value.enabled?r.value.map(N=>v(N)).join("; "):o.value.enabled&&typeof o.value.format=="string"?B():v(r.value):"",J=()=>{!t.format||typeof t.format=="string"||o.value.enabled&&typeof o.value.format=="string"?d.value=q():d.value=t.format(r.value)},U=N=>{if(t.utc){const ce=new Date(N);return t.utc==="preserve"?new Date(ce.getTime()+ce.getTimezoneOffset()*6e4):ce}return t.modelType?CT.includes(t.modelType)?p(new Date(N)):t.modelType==="format"&&(typeof t.format=="string"||!t.format)?p(Wd(N,c(),new Date,{locale:f.value})):p(Wd(N,t.modelType,new Date,{locale:f.value})):p(new Date(N))},j=N=>N?t.utc?NT(N,t.utc==="preserve",t.enableSeconds):t.modelType?t.modelType==="timestamp"?+h(N):t.modelType==="iso"?h(N).toISOString():t.modelType==="format"&&(typeof t.format=="string"||!t.format)?v(h(N)):v(h(N),t.modelType,!0):h(N):"",ie=(N,ce=!1,ge=!1)=>{if(ge)return N;if(e("update:model-value",N),s.value.emitTimezone&&ce){const Fe=Array.isArray(N)?N.map(ee=>Cn(Ht(ee),s.value.emitTimezone)):Cn(Ht(N),s.value.emitTimezone);e("update:model-timezone-value",Fe)}},Z=N=>Array.isArray(r.value)?l.value.enabled?r.value.map(ce=>N(ce)):[N(r.value[0]),r.value[1]?N(r.value[1]):Do(i.value.partialRange)]:N(Ht(r.value)),K=()=>{if(Array.isArray(r.value)){const N=Wr(r.value[0],t.weekStart),ce=r.value[1]?Wr(r.value[1],t.weekStart):[];return[N.map(ge=>fe(ge)),ce.map(ge=>fe(ge))]}return Wr(r.value,t.weekStart).map(N=>fe(N))},I=(N,ce)=>ie(Ht(Z(N)),!1,ce),L=N=>{const ce=K();return N?ce:e("update:model-value",K())},F=(N=!1)=>(N||J(),t.monthPicker?I(C,N):t.timePicker?I(y,N):t.yearPicker?I(Ve,N):t.weekPicker?L(N):ie(V(N),!0,N));return{inputValue:d,internalModelValue:r,checkBeforeEmit:()=>r.value?i.value.enabled?i.value.partialRange?r.value.length>=1:r.value.length===2:!!r.value:!1,parseExternalModelValue:D,formatInputValue:J,emitModelValue:F}},a7=(e,t)=>{const{defaultedFilters:n,propDates:r}=kt(e),{validateMonthYearInRange:o}=$a(e),i=(u,f)=>{let p=u;return n.value.months.includes(Ke(p))?(p=f?ir(u,1):ci(u,1),i(p,f)):p},s=(u,f)=>{let p=u;return n.value.years.includes(Ve(p))?(p=f?dp(u,1):dy(u,1),s(p,f)):p},l=(u,f=!1)=>{const p=pt(fe(),{month:e.month,year:e.year});let h=u?ir(p,1):ci(p,1);e.disableYearSelect&&(h=Pr(h,e.year));let v=Ke(h),y=Ve(h);n.value.months.includes(v)&&(h=i(h,u),v=Ke(h),y=Ve(h)),n.value.years.includes(y)&&(h=s(h,u),y=Ve(h)),o(v,y,u,e.preventMinMaxNavigation)&&c(v,y,f)},c=(u,f,p)=>{t("update-month-year",{month:u,year:f,fromNav:p})},d=a.computed(()=>u=>ky(pt(fe(),{month:e.month,year:e.year}),r.value.maxDate,r.value.minDate,e.preventMinMaxNavigation,u));return{handleMonthYearChange:l,isDisabled:d,updateMonthYear:c}},Lc={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},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},autoPosition:{type:[Boolean,String],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,Object],default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},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},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},highlight:{type:[Function,Object],default:null},teleport:{type:[Boolean,String,Object],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,Object],default:null},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:[Object,Boolean],default:!1},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"},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,Object],default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},onInternalModelChange:{type:[Function,Object],default:null},enableMinutes:{type:Boolean,default:!0},ui:{type:Object,default:()=>({})}},pr={...Lc,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},menuWrapRef:{type:Object,default:null},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1},isMobile:{type:Boolean,default:void 0}},o7=["title"],i7=["disabled"],s7=a.defineComponent({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},...pr},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const n=t,r=e,{defaultedActionRow:o,defaultedPreviewFormat:i,defaultedMultiCalendars:s,defaultedTextInput:l,defaultedInline:c,defaultedRange:d,defaultedMultiDates:u}=kt(r),{isTimeValid:f,isMonthValid:p}=$a(r),{buildMatrix:h}=La(),v=a.ref(null),y=a.ref(null),C=a.ref(!1),g=a.ref({}),S=a.ref(null),_=a.ref(null);a.onMounted(()=>{r.arrowNavigation&&h([Ft(v),Ft(y)],"actionRow"),b(),window.addEventListener("resize",b)}),a.onUnmounted(()=>{window.removeEventListener("resize",b)});const b=()=>{C.value=!1,setTimeout(()=>{var D,H;const B=(D=S.value)==null?void 0:D.getBoundingClientRect(),q=(H=_.value)==null?void 0:H.getBoundingClientRect();B&&q&&(g.value.maxWidth=`${q.width-B.width-20}px`),C.value=!0},0)},T=a.computed(()=>d.value.enabled&&!d.value.partialRange&&r.internalModelValue?r.internalModelValue.length===2:!0),E=a.computed(()=>!f.value(r.internalModelValue)||!p.value(r.internalModelValue)||!T.value),x=()=>{const D=i.value;return r.timePicker||r.monthPicker,D(Ht(r.internalModelValue))},A=()=>{const D=r.internalModelValue;return s.value.count>0?`${P(D[0])} - ${P(D[1])}`:[P(D[0]),P(D[1])]},P=D=>_y(D,i.value,r.formatLocale,l.value.rangeSeparator,r.modelAuto,i.value),M=a.computed(()=>!r.internalModelValue||!r.menuMount?"":typeof i.value=="string"?Array.isArray(r.internalModelValue)?r.internalModelValue.length===2&&r.internalModelValue[1]?A():u.value.enabled?r.internalModelValue.map(D=>`${P(D)}`):r.modelAuto?`${P(r.internalModelValue[0])}`:`${P(r.internalModelValue[0])} -`:P(r.internalModelValue):x()),z=()=>u.value.enabled?"; ":" - ",V=a.computed(()=>Array.isArray(M.value)?M.value.join(z()):M.value),Y=()=>{f.value(r.internalModelValue)&&p.value(r.internalModelValue)&&T.value?n("select-date"):n("invalid-select")};return(D,H)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"actionRowRef",ref:_,class:"dp__action_row"},[D.$slots["action-row"]?a.renderSlot(D.$slots,"action-row",a.normalizeProps(a.mergeProps({key:0},{internalModelValue:D.internalModelValue,disabled:E.value,selectDate:()=>D.$emit("select-date"),closePicker:()=>D.$emit("close-picker")}))):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.unref(o).showPreview?(a.openBlock(),a.createElementBlock("div",{key:0,class:"dp__selection_preview",title:V.value,style:a.normalizeStyle(g.value)},[D.$slots["action-preview"]&&C.value?a.renderSlot(D.$slots,"action-preview",{key:0,value:D.internalModelValue}):a.createCommentVNode("",!0),!D.$slots["action-preview"]&&C.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(V.value),1)],64)):a.createCommentVNode("",!0)],12,o7)):a.createCommentVNode("",!0),a.createElementVNode("div",{ref_key:"actionBtnContainer",ref:S,class:"dp__action_buttons","data-dp-element":"action-row"},[D.$slots["action-buttons"]?a.renderSlot(D.$slots,"action-buttons",{key:0,value:D.internalModelValue}):a.createCommentVNode("",!0),D.$slots["action-buttons"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[!a.unref(c).enabled&&a.unref(o).showCancel?(a.openBlock(),a.createElementBlock("button",{key:0,ref_key:"cancelButtonRef",ref:v,type:"button",class:"dp__action_button dp__action_cancel",onClick:H[0]||(H[0]=B=>D.$emit("close-picker")),onKeydown:H[1]||(H[1]=B=>a.unref(dn)(B,()=>D.$emit("close-picker")))},a.toDisplayString(D.cancelText),545)):a.createCommentVNode("",!0),a.unref(o).showNow?(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:H[2]||(H[2]=B=>D.$emit("select-now")),onKeydown:H[3]||(H[3]=B=>a.unref(dn)(B,()=>D.$emit("select-now")))},a.toDisplayString(D.nowButtonLabel),33)):a.createCommentVNode("",!0),a.unref(o).showSelect?(a.openBlock(),a.createElementBlock("button",{key:2,ref_key:"selectButtonRef",ref:y,type:"button",class:"dp__action_button dp__action_select",disabled:E.value,"data-test-id":"select-button",onKeydown:H[4]||(H[4]=B=>a.unref(dn)(B,()=>Y())),onClick:Y},a.toDisplayString(D.selectText),41,i7)):a.createCommentVNode("",!0)],64))],512)],64))],512))}}),l7=["role","aria-label","tabindex"],c7={class:"dp__selection_grid_header"},u7=["aria-selected","aria-disabled","data-test-id","onClick","onKeydown","onMouseover"],d7=["aria-label"],Fs=a.defineComponent({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},ariaLabels:{},overlayLabel:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(e,{expose:t,emit:n}){const{setSelectionGrid:r,buildMultiLevelMatrix:o,setMonthPicker:i}=La(),s=n,l=e,{defaultedAriaLabels:c,defaultedTextInput:d,defaultedConfig:u}=kt(l),{hideNavigationButtons:f}=Vc(),p=a.ref(!1),h=a.ref(null),v=a.ref(null),y=a.ref([]),C=a.ref(),g=a.ref(null),S=a.ref(0),_=a.ref(null);a.onBeforeUpdate(()=>{h.value=null}),a.onMounted(()=>{a.nextTick().then(()=>z()),l.noOverlayFocus||T(),b(!0)}),a.onUnmounted(()=>b(!1));const b=Z=>{var K;l.arrowNavigation&&((K=l.headerRefs)!=null&&K.length?i(Z):r(Z))},T=()=>{var Z;const K=Ft(v);K&&(d.value.enabled||(h.value?(Z=h.value)==null||Z.focus({preventScroll:!0}):K.focus({preventScroll:!0})),p.value=K.clientHeight<K.scrollHeight)},E=a.computed(()=>({dp__overlay:!0,"dp--overlay-absolute":!l.useRelative,"dp--overlay-relative":l.useRelative})),x=a.computed(()=>l.useRelative?{height:`${l.height}px`,width:"var(--dp-menu-min-width)"}:void 0),A=a.computed(()=>({dp__overlay_col:!0})),P=a.computed(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:p.value,dp__button_bottom:l.isLast})),M=a.computed(()=>{var Z,K;return{dp__overlay_container:!0,dp__container_flex:((Z=l.items)==null?void 0:Z.length)<=6,dp__container_block:((K=l.items)==null?void 0:K.length)>6}});a.watch(()=>l.items,()=>z(!1),{deep:!0});const z=(Z=!0)=>{a.nextTick().then(()=>{const K=Ft(h),I=Ft(v),L=Ft(g),F=Ft(_),N=L?L.getBoundingClientRect().height:0;I&&(I.getBoundingClientRect().height?S.value=I.getBoundingClientRect().height-N:S.value=u.value.modeHeight-N),K&&F&&Z&&(F.scrollTop=K.offsetTop-F.offsetTop-(S.value/2-K.getBoundingClientRect().height)-N)})},V=Z=>{Z.disabled||s("selected",Z.value)},Y=()=>{s("toggle"),s("reset-flow")},D=()=>{l.escClose&&Y()},H=(Z,K,I,L)=>{Z&&((K.active||K.value===l.focusValue)&&(h.value=Z),l.arrowNavigation&&(Array.isArray(y.value[I])?y.value[I][L]=Z:y.value[I]=[Z],B()))},B=()=>{var Z,K;const I=(Z=l.headerRefs)!=null&&Z.length?[l.headerRefs].concat(y.value):y.value.concat([l.skipButtonRef?[]:[g.value]]);o(Ht(I),(K=l.headerRefs)!=null&&K.length?"monthPicker":"selectionGrid")},q=Z=>{l.arrowNavigation||wa(Z,u.value,!0)},J=Z=>{C.value=Z,s("hover-value",Z)},U=()=>{if(Y(),!l.isLast){const Z=Yd(l.menuWrapRef??null,"action-row");if(Z){const K=hy(Z);K==null||K.focus()}}},j=Z=>{switch(Z.key){case bt.esc:return D();case bt.arrowLeft:return q(Z);case bt.arrowRight:return q(Z);case bt.arrowUp:return q(Z);case bt.arrowDown:return q(Z);default:return}},ie=Z=>{if(Z.key===bt.enter)return Y();if(Z.key===bt.tab)return U()};return t({focusGrid:T}),(Z,K)=>{var I;return a.openBlock(),a.createElementBlock("div",{ref_key:"gridWrapRef",ref:v,class:a.normalizeClass(E.value),style:a.normalizeStyle(x.value),role:Z.useRelative?void 0:"dialog","aria-label":Z.overlayLabel,tabindex:Z.useRelative?void 0:"0",onKeydown:j,onClick:K[0]||(K[0]=a.withModifiers(()=>{},["prevent"]))},[a.createElementVNode("div",{ref_key:"containerRef",ref:_,class:a.normalizeClass(M.value),style:a.normalizeStyle({"--dp-overlay-height":`${S.value}px`}),role:"grid"},[a.createElementVNode("div",c7,[a.renderSlot(Z.$slots,"header")]),Z.$slots.overlay?a.renderSlot(Z.$slots,"overlay",{key:0}):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(Z.items,(L,F)=>(a.openBlock(),a.createElementBlock("div",{key:F,class:a.normalizeClass(["dp__overlay_row",{dp__flex_row:Z.items.length>=3}]),role:"row"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(L,(N,ce)=>(a.openBlock(),a.createElementBlock("div",{key:N.value,ref_for:!0,ref:ge=>H(ge,N,F,ce),role:"gridcell",class:a.normalizeClass(A.value),"aria-selected":N.active||void 0,"aria-disabled":N.disabled||void 0,tabindex:"0","data-test-id":N.text,onClick:a.withModifiers(ge=>V(N),["prevent"]),onKeydown:ge=>a.unref(dn)(ge,()=>V(N),!0),onMouseover:ge=>J(N.value)},[a.createElementVNode("div",{class:a.normalizeClass(N.className)},[Z.$slots.item?a.renderSlot(Z.$slots,"item",{key:0,item:N}):a.createCommentVNode("",!0),Z.$slots.item?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(N.text),1)],64))],2)],42,u7))),128))],2))),128))],6),Z.$slots["button-icon"]?a.withDirectives((a.openBlock(),a.createElementBlock("button",{key:0,ref_key:"toggleButton",ref:g,type:"button","aria-label":(I=a.unref(c))==null?void 0:I.toggleOverlay,class:a.normalizeClass(P.value),tabindex:"0",onClick:Y,onKeydown:ie},[a.renderSlot(Z.$slots,"button-icon")],42,d7)),[[a.vShow,!a.unref(f)(Z.hideNavigation,Z.type)]]):a.createCommentVNode("",!0)],46,l7)}}}),f7=["data-dp-mobile"],$c=a.defineComponent({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean},collapse:{type:Boolean},isMobile:{type:Boolean}},setup(e){const t=e,n=a.computed(()=>t.multiCalendars>0?[...Array(t.multiCalendars).keys()]:[0]),r=a.computed(()=>({dp__instance_calendar:t.multiCalendars>0}));return(o,i)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass({dp__menu_inner:!o.stretch,"dp--menu--inner-stretched":o.stretch,dp__flex_display:o.multiCalendars>0,"dp--flex-display-collapsed":o.collapse}),"data-dp-mobile":o.isMobile},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,(s,l)=>(a.openBlock(),a.createElementBlock("div",{key:s,class:a.normalizeClass(r.value)},[a.renderSlot(o.$slots,"default",{instance:s,index:l})],2))),128))],10,f7))}}),p7=["data-dp-element","aria-label","aria-disabled"],as=a.defineComponent({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},elName:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const n=t,r=a.ref(null);return a.onMounted(()=>n("set-ref",r)),(o,i)=>(a.openBlock(),a.createElementBlock("button",{ref_key:"elRef",ref:r,type:"button","data-dp-element":o.elName,class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":o.ariaLabel,"aria-disabled":o.disabled||void 0,onClick:i[0]||(i[0]=s=>o.$emit("activate")),onKeydown:i[1]||(i[1]=s=>a.unref(dn)(s,()=>o.$emit("activate"),!0))},[a.createElementVNode("span",{class:a.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:o.disabled}])},[a.renderSlot(o.$slots,"default")],2)],40,p7))}}),m7=["aria-label","data-test-id"],xy=a.defineComponent({__name:"YearModePicker",props:{...pr,showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:()=>!1}},emits:["toggle-year-picker","year-select","handle-year"],setup(e,{emit:t}){const n=t,r=e,{showRightIcon:o,showLeftIcon:i}=Vc(),{defaultedConfig:s,defaultedMultiCalendars:l,defaultedAriaLabels:c,defaultedTransitions:d,defaultedUI:u}=kt(r),{showTransition:f,transitionName:p}=js(d),h=a.ref(!1),v=(g=!1,S)=>{h.value=!h.value,n("toggle-year-picker",{flow:g,show:S})},y=g=>{h.value=!1,n("year-select",g)},C=(g=!1)=>{n("handle-year",g)};return(g,S)=>{var _,b,T,E,x;return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",{class:a.normalizeClass(["dp--year-mode-picker",{"dp--hidden-el":h.value}])},[a.unref(i)(a.unref(l),e.instance)?(a.openBlock(),a.createBlock(as,{key:0,ref:"mpPrevIconRef","aria-label":(_=a.unref(c))==null?void 0:_.prevYear,disabled:e.isDisabled(!1),class:a.normalizeClass((b=a.unref(u))==null?void 0:b.navBtnPrev),onActivate:S[0]||(S[0]=A=>C(!1))},{default:a.withCtx(()=>[g.$slots["arrow-left"]?a.renderSlot(g.$slots,"arrow-left",{key:0}):a.createCommentVNode("",!0),g.$slots["arrow-left"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(gp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):a.createCommentVNode("",!0),a.createElementVNode("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":`${e.year}-${(T=a.unref(c))==null?void 0:T.openYearsOverlay}`,"data-test-id":`year-mode-btn-${e.instance}`,onClick:S[1]||(S[1]=()=>v(!1)),onKeydown:S[2]||(S[2]=a.withKeys(()=>v(!1),["enter"]))},[g.$slots.year?a.renderSlot(g.$slots,"year",{key:0,year:e.year}):a.createCommentVNode("",!0),g.$slots.year?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(e.year),1)],64))],40,m7),a.unref(o)(a.unref(l),e.instance)?(a.openBlock(),a.createBlock(as,{key:1,ref:"mpNextIconRef","aria-label":(E=a.unref(c))==null?void 0:E.nextYear,disabled:e.isDisabled(!0),class:a.normalizeClass((x=a.unref(u))==null?void 0:x.navBtnNext),onActivate:S[3]||(S[3]=A=>C(!0))},{default:a.withCtx(()=>[g.$slots["arrow-right"]?a.renderSlot(g.$slots,"arrow-right",{key:0}):a.createCommentVNode("",!0),g.$slots["arrow-right"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(yp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):a.createCommentVNode("",!0)],2),a.createVNode(a.Transition,{name:a.unref(p)(e.showYearPicker),css:a.unref(f)},{default:a.withCtx(()=>{var A,P;return[e.showYearPicker?(a.openBlock(),a.createBlock(Fs,{key:0,items:e.items,"text-input":g.textInput,"esc-close":g.escClose,config:g.config,"is-last":g.autoApply&&!a.unref(s).keepActionRow,"hide-navigation":g.hideNavigation,"aria-labels":g.ariaLabels,"overlay-label":(P=(A=a.unref(c))==null?void 0:A.yearPicker)==null?void 0:P.call(A,!0),type:"year",onToggle:v,onSelected:S[4]||(S[4]=M=>y(M))},a.createSlots({"button-icon":a.withCtx(()=>[g.$slots["calendar-icon"]?a.renderSlot(g.$slots,"calendar-icon",{key:0}):a.createCommentVNode("",!0),g.$slots["calendar-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Ii),{key:1}))]),_:2},[g.$slots["year-overlay-value"]?{name:"item",fn:a.withCtx(({item:M})=>[a.renderSlot(g.$slots,"year-overlay-value",{text:M.text,value:M.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation","aria-labels","overlay-label"])):a.createCommentVNode("",!0)]}),_:3},8,["name","css"])],64)}}}),Tp=(e,t,n)=>{if(t.value&&Array.isArray(t.value))if(t.value.some(r=>Je(e,r))){const r=t.value.filter(o=>!Je(o,e));t.value=r.length?r:null}else(n&&+n>t.value.length||!n)&&t.value.push(e);else t.value=[e]},Pp=(e,t,n)=>{let r=e.value?e.value.slice():[];return r.length===2&&r[1]!==null&&(r=[]),r.length?(Tt(t,r[0])?r.unshift(t):r[1]=t,n("range-end",t)):(r=[t],n("range-start",t)),r},zc=(e,t,n,r)=>{e&&(e[0]&&e[1]&&n&&t("auto-apply"),e[0]&&!e[1]&&r&&n&&t("auto-apply"))},Ty=e=>{Array.isArray(e.value)&&e.value.length<=2&&e.range?e.modelValue.value=e.value.map(t=>Cn(fe(t),e.timezone)):Array.isArray(e.value)||(e.modelValue.value=Cn(fe(e.value),e.timezone))},Py=(e,t,n,r)=>Array.isArray(t.value)&&(t.value.length===2||t.value.length===1&&r.value.partialRange)?r.value.fixedStart&&(Ot(e,t.value[0])||Je(e,t.value[0]))?[t.value[0],e]:r.value.fixedEnd&&(Tt(e,t.value[1])||Je(e,t.value[1]))?[e,t.value[1]]:(n("invalid-fixed-range",e),t.value):[],Iy=({multiCalendars:e,range:t,highlight:n,propDates:r,calendars:o,modelValue:i,props:s,filters:l,year:c,month:d,emit:u})=>{const f=a.computed(()=>Cp(s.yearRange,s.locale,s.reverseYears)),p=a.ref([!1]),h=a.computed(()=>(M,z)=>{const V=pt(rr(new Date),{month:d.value(M),year:c.value(M)}),Y=z?Z1(V):_s(V);return ky(Y,r.value.maxDate,r.value.minDate,s.preventMinMaxNavigation,z)}),v=()=>Array.isArray(i.value)&&e.value.solo&&i.value[1],y=()=>{for(let M=0;M<e.value.count;M++)if(M===0)o.value[M]=o.value[0];else if(M===e.value.count-1&&v())o.value[M]={month:Ke(i.value[1]),year:Ve(i.value[1])};else{const z=pt(fe(),o.value[M-1]);o.value[M]={month:Ke(z),year:Ve(dp(z,1))}}},C=M=>{if(!M)return y();const z=pt(fe(),o.value[M]);return o.value[0].year=Ve(dy(z,e.value.count-1)),y()},g=(M,z)=>{const V=n8(z,M);return t.value.showLastInRange&&V>1?z:M},S=M=>s.focusStartDate||e.value.solo?M[0]:M[1]?g(M[0],M[1]):M[0],_=()=>{if(i.value){const M=Array.isArray(i.value)?S(i.value):i.value;o.value[0]={month:Ke(M),year:Ve(M)}}},b=()=>{_(),e.value.count&&y()};a.watch(i,(M,z)=>{s.isTextInputDate&&JSON.stringify(M??{})!==JSON.stringify(z??{})&&b()}),a.onMounted(()=>{b()});const T=(M,z)=>{o.value[z].year=M,u("update-month-year",{instance:z,year:M,month:o.value[z].month}),e.value.count&&!e.value.solo&&C(z)},E=a.computed(()=>M=>ui(f.value,z=>{var V;const Y=c.value(M)===z.value,D=Ss(z.value,di(r.value.minDate),di(r.value.maxDate))||((V=l.value.years)==null?void 0:V.includes(c.value(M))),H=xp(n.value,z.value);return{active:Y,disabled:D,highlighted:H}})),x=(M,z)=>{T(M,z),P(z)},A=(M,z=!1)=>{if(!h.value(M,z)){const V=z?c.value(M)+1:c.value(M)-1;T(V,M)}},P=(M,z=!1,V)=>{z||u("reset-flow"),V!==void 0?p.value[M]=V:p.value[M]=!p.value[M],p.value[M]?u("overlay-toggle",{open:!0,overlay:tn.year}):(u("overlay-closed"),u("overlay-toggle",{open:!1,overlay:tn.year}))};return{isDisabled:h,groupedYears:E,showYearPicker:p,selectYear:T,toggleYearPicker:P,handleYearSelect:x,handleYear:A}},h7=(e,t)=>{const{defaultedMultiCalendars:n,defaultedAriaLabels:r,defaultedTransitions:o,defaultedConfig:i,defaultedRange:s,defaultedHighlight:l,propDates:c,defaultedTz:d,defaultedFilters:u,defaultedMultiDates:f}=kt(e),p=()=>{e.isTextInputDate&&b(Ve(fe(e.startDate)),0)},{modelValue:h,year:v,month:y,calendars:C}=Hs(e,t,p),g=a.computed(()=>py(e.formatLocale,e.locale,e.monthNameFormat)),S=a.ref(null),{checkMinMaxRange:_}=$a(e),{selectYear:b,groupedYears:T,showYearPicker:E,toggleYearPicker:x,handleYearSelect:A,handleYear:P,isDisabled:M}=Iy({modelValue:h,multiCalendars:n,range:s,highlight:l,calendars:C,year:v,propDates:c,month:y,filters:u,props:e,emit:t});a.onMounted(()=>{e.startDate&&(h.value&&e.focusStartDate||!h.value)&&b(Ve(fe(e.startDate)),0)});const z=I=>I?{month:Ke(I),year:Ve(I)}:{month:null,year:null},V=()=>h.value?Array.isArray(h.value)?h.value.map(I=>z(I)):z(h.value):z(),Y=(I,L)=>{const F=C.value[I],N=V();return Array.isArray(N)?N.some(ce=>ce.year===(F==null?void 0:F.year)&&ce.month===L):(F==null?void 0:F.year)===N.year&&L===N.month},D=(I,L,F)=>{var N,ce;const ge=V();return Array.isArray(ge)?v.value(L)===((N=ge[F])==null?void 0:N.year)&&I===((ce=ge[F])==null?void 0:ce.month):!1},H=(I,L)=>{if(s.value.enabled){const F=V();if(Array.isArray(h.value)&&Array.isArray(F)){const N=D(I,L,0)||D(I,L,1),ce=qr(rr(fe()),I,v.value(L));return Rc(h.value,S.value,ce)&&!N}return!1}return!1},B=a.computed(()=>I=>ui(g.value,L=>{var F;const N=Y(I,L.value),ce=Ss(L.value,gy(v.value(I),c.value.minDate),yy(v.value(I),c.value.maxDate))||$T(c.value.disabledDates,v.value(I)).includes(L.value)||((F=u.value.months)==null?void 0:F.includes(L.value))||!zT(c.value.allowedDates,v.value(I),L.value),ge=H(L.value,I),Fe=Cy(l.value,L.value,v.value(I));return{active:N,disabled:ce,isBetween:ge,highlighted:Fe}})),q=(I,L)=>qr(rr(fe()),I,v.value(L)),J=(I,L)=>{const F=h.value?h.value:rr(new Date);h.value=qr(F,I,v.value(L)),t("auto-apply"),t("update-flow-step")},U=(I,L)=>{const F=q(I,L);s.value.fixedEnd||s.value.fixedStart?h.value=Py(F,h,t,s):h.value?_(F,h.value)&&(h.value=Pp(h,q(I,L),t)):h.value=[q(I,L)],a.nextTick().then(()=>{zc(h.value,t,e.autoApply,e.modelAuto)})},j=(I,L)=>{Tp(q(I,L),h,f.value.limit),t("auto-apply",!0)},ie=(I,L)=>(C.value[L].month=I,K(L,C.value[L].year,I),f.value.enabled?j(I,L):s.value.enabled?U(I,L):J(I,L)),Z=(I,L)=>{b(I,L),K(L,I,null)},K=(I,L,F)=>{let N=F;if(!N&&N!==0){const ce=V();N=Array.isArray(ce)?ce[I].month:ce.month}t("update-month-year",{instance:I,year:L,month:N})};return{groupedMonths:B,groupedYears:T,year:v,isDisabled:M,defaultedMultiCalendars:n,defaultedAriaLabels:r,defaultedTransitions:o,defaultedConfig:i,showYearPicker:E,modelValue:h,presetDate:(I,L)=>{Ty({value:I,modelValue:h,range:s.value.enabled,timezone:L?void 0:d.value.timezone}),t("auto-apply")},setHoverDate:(I,L)=>{S.value=q(I,L)},selectMonth:ie,selectYear:Z,toggleYearPicker:x,handleYearSelect:A,handleYear:P,getModelMonthYear:V}},v7=a.defineComponent({compatConfig:{MODE:3},__name:"MonthPicker",props:{...pr},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","update-flow-step","mount","invalid-fixed-range","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,o=a.useSlots(),i=An(o,"yearMode"),s=e;a.onMounted(()=>{s.shadow||r("mount",null)});const{groupedMonths:l,groupedYears:c,year:d,isDisabled:u,defaultedMultiCalendars:f,defaultedConfig:p,showYearPicker:h,modelValue:v,presetDate:y,setHoverDate:C,selectMonth:g,selectYear:S,toggleYearPicker:_,handleYearSelect:b,handleYear:T,getModelMonthYear:E}=h7(s,r);return t({getSidebarProps:()=>({modelValue:v,year:d,getModelMonthYear:E,selectMonth:g,selectYear:S,handleYear:T}),presetDate:y,toggleYearPicker:x=>_(0,x)}),(x,A)=>(a.openBlock(),a.createBlock($c,{"multi-calendars":a.unref(f).count,collapse:x.collapse,stretch:"","is-mobile":x.isMobile},{default:a.withCtx(({instance:P})=>[x.$slots["top-extra"]?a.renderSlot(x.$slots,"top-extra",{key:0,value:x.internalModelValue}):a.createCommentVNode("",!0),x.$slots["month-year"]?a.renderSlot(x.$slots,"month-year",a.normalizeProps(a.mergeProps({key:1},{year:a.unref(d),months:a.unref(l)(P),years:a.unref(c)(P),selectMonth:a.unref(g),selectYear:a.unref(S),instance:P}))):(a.openBlock(),a.createBlock(Fs,{key:2,items:a.unref(l)(P),"arrow-navigation":x.arrowNavigation,"is-last":x.autoApply&&!a.unref(p).keepActionRow,"esc-close":x.escClose,height:a.unref(p).modeHeight,config:x.config,"no-overlay-focus":!!(x.noOverlayFocus||x.textInput),"use-relative":"",type:"month",onSelected:M=>a.unref(g)(M,P),onHoverValue:M=>a.unref(C)(M,P)},a.createSlots({header:a.withCtx(()=>[a.createVNode(xy,a.mergeProps(x.$props,{items:a.unref(c)(P),instance:P,"show-year-picker":a.unref(h)[P],year:a.unref(d)(P),"is-disabled":M=>a.unref(u)(P,M),onHandleYear:M=>a.unref(T)(P,M),onYearSelect:M=>a.unref(b)(M,P),onToggleYearPicker:M=>a.unref(_)(P,M==null?void 0:M.flow,M==null?void 0:M.show)}),a.createSlots({_:2},[a.renderList(a.unref(i),(M,z)=>({name:M,fn:a.withCtx(V=>[a.renderSlot(x.$slots,M,a.normalizeProps(a.guardReactiveProps(V)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[x.$slots["month-overlay-value"]?{name:"item",fn:a.withCtx(({item:M})=>[a.renderSlot(x.$slots,"month-overlay-value",{text:M.text,value:M.value})]),key:"0"}:void 0]),1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars","collapse","is-mobile"]))}}),g7=(e,t)=>{const n=()=>{e.isTextInputDate&&(u.value=Ve(fe(e.startDate)))},{modelValue:r}=Hs(e,t,n),o=a.ref(null),{defaultedHighlight:i,defaultedMultiDates:s,defaultedFilters:l,defaultedRange:c,propDates:d}=kt(e),u=a.ref();a.onMounted(()=>{e.startDate&&(r.value&&e.focusStartDate||!r.value)&&(u.value=Ve(fe(e.startDate)))});const f=y=>Array.isArray(r.value)?r.value.some(C=>Ve(C)===y):r.value?Ve(r.value)===y:!1,p=y=>c.value.enabled&&Array.isArray(r.value)?Rc(r.value,o.value,v(y)):!1,h=a.computed(()=>ui(Cp(e.yearRange,e.locale,e.reverseYears),y=>{const C=f(y.value),g=Ss(y.value,di(d.value.minDate),di(d.value.maxDate))||l.value.years.includes(y.value),S=p(y.value)&&!C,_=xp(i.value,y.value);return{active:C,disabled:g,isBetween:S,highlighted:_}})),v=y=>Pr(rr(_s(new Date)),y);return{groupedYears:h,modelValue:r,focusYear:u,setHoverValue:y=>{o.value=Pr(rr(new Date),y)},selectYear:y=>{var C;if(t("update-month-year",{instance:0,year:y}),s.value.enabled)return r.value?Array.isArray(r.value)&&(((C=r.value)==null?void 0:C.map(g=>Ve(g))).includes(y)?r.value=r.value.filter(g=>Ve(g)!==y):r.value.push(Pr(fn(fe()),y))):r.value=[Pr(fn(_s(fe())),y)],t("auto-apply",!0);c.value.enabled?(r.value=Pp(r,v(y),t),a.nextTick().then(()=>{zc(r.value,t,e.autoApply,e.modelAuto)})):(r.value=v(y),t("auto-apply"))}}},y7=a.defineComponent({compatConfig:{MODE:3},__name:"YearPicker",props:{...pr},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(e,{expose:t,emit:n}){const r=n,o=e,{groupedYears:i,modelValue:s,focusYear:l,selectYear:c,setHoverValue:d}=g7(o,r),{defaultedConfig:u}=kt(o);return t({getSidebarProps:()=>({modelValue:s,selectYear:c})}),(f,p)=>(a.openBlock(),a.createElementBlock("div",null,[f.$slots["top-extra"]?a.renderSlot(f.$slots,"top-extra",{key:0,value:f.internalModelValue}):a.createCommentVNode("",!0),f.$slots["month-year"]?a.renderSlot(f.$slots,"month-year",a.normalizeProps(a.mergeProps({key:1},{years:a.unref(i),selectYear:a.unref(c)}))):(a.openBlock(),a.createBlock(Fs,{key:2,items:a.unref(i),"is-last":f.autoApply&&!a.unref(u).keepActionRow,height:a.unref(u).modeHeight,config:f.config,"no-overlay-focus":!!(f.noOverlayFocus||f.textInput),"focus-value":a.unref(l),type:"year","use-relative":"",onSelected:a.unref(c),onHoverValue:a.unref(d)},a.createSlots({_:2},[f.$slots["year-overlay-value"]?{name:"item",fn:a.withCtx(({item:h})=>[a.renderSlot(f.$slots,"year-overlay-value",{text:h.text,value:h.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),b7={key:0,class:"dp__time_input"},w7=["data-compact","data-collapsed"],k7=["data-test-id","aria-label","onKeydown","onClick","onMousedown"],_7=["aria-label","disabled","data-test-id","onKeydown","onClick"],C7=["data-test-id","aria-label","onKeydown","onClick","onMousedown"],S7={key:0},E7=["aria-label","data-compact"],x7=a.defineComponent({compatConfig:{MODE:3},__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},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...pr},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","overlay-opened","am-pm-change"],setup(e,{expose:t,emit:n}){const r=n,o=e,{setTimePickerElements:i,setTimePickerBackRef:s}=La(),{defaultedAriaLabels:l,defaultedTransitions:c,defaultedFilters:d,defaultedConfig:u,defaultedRange:f,defaultedMultiCalendars:p}=kt(o),{transitionName:h,showTransition:v}=js(c),y=a.reactive({hours:!1,minutes:!1,seconds:!1}),C=a.ref("AM"),g=a.ref(null),S=a.ref([]),_=a.ref(),b=a.ref(!1);a.onMounted(()=>{r("mounted")});const T=R=>pt(new Date,{hours:R.hours,minutes:R.minutes,seconds:o.enableSeconds?R.seconds:0,milliseconds:0}),E=a.computed(()=>R=>U(R,o[R])||A(R,o[R])),x=a.computed(()=>({hours:o.hours,minutes:o.minutes,seconds:o.seconds})),A=(R,oe)=>f.value.enabled&&!f.value.disableTimeRangeValidation?!o.validateTime(R,oe):!1,P=(R,oe)=>{if(f.value.enabled&&!f.value.disableTimeRangeValidation){const Pe=oe?+o[`${R}Increment`]:-+o[`${R}Increment`],ue=o[R]+Pe;return!o.validateTime(R,ue)}return!1},M=a.computed(()=>R=>!I(+o[R]+ +o[`${R}Increment`],R)||P(R,!0)),z=a.computed(()=>R=>!I(+o[R]-+o[`${R}Increment`],R)||P(R,!1)),V=(R,oe)=>Y1(pt(fe(),R),oe),Y=(R,oe)=>wT(pt(fe(),R),oe),D=a.computed(()=>({dp__time_col:!0,dp__time_col_block:!o.timePickerInline,dp__time_col_reg_block:!o.enableSeconds&&o.is24&&!o.timePickerInline,dp__time_col_reg_inline:!o.enableSeconds&&o.is24&&o.timePickerInline,dp__time_col_reg_with_button:!o.enableSeconds&&!o.is24,dp__time_col_sec:o.enableSeconds&&o.is24,dp__time_col_sec_with_button:o.enableSeconds&&!o.is24})),H=a.computed(()=>o.timePickerInline&&f.value.enabled&&!p.value.count),B=a.computed(()=>{const R=[{type:"hours"}];return o.enableMinutes&&R.push({type:"",separator:!0},{type:"minutes"}),o.enableSeconds&&R.push({type:"",separator:!0},{type:"seconds"}),R}),q=a.computed(()=>B.value.filter(R=>!R.separator)),J=a.computed(()=>R=>{if(R==="hours"){const oe=Fe(+o.hours);return{text:oe<10?`0${oe}`:`${oe}`,value:oe}}return{text:o[R]<10?`0${o[R]}`:`${o[R]}`,value:o[R]}}),U=(R,oe)=>{var Pe;if(!o.disabledTimesConfig)return!1;const ue=o.disabledTimesConfig(o.order,R==="hours"?oe:void 0);return ue[R]?!!((Pe=ue[R])!=null&&Pe.includes(oe)):!0},j=(R,oe)=>oe!=="hours"||C.value==="AM"?R:R+12,ie=R=>{const oe=o.is24?24:12,Pe=R==="hours"?oe:60,ue=+o[`${R}GridIncrement`],Ne=R==="hours"&&!o.is24?ue:0,de=[];for(let G=Ne;G<Pe;G+=ue)de.push({value:o.is24?G:j(G,R),text:G<10?`0${G}`:`${G}`});return R==="hours"&&!o.is24&&de.unshift({value:C.value==="PM"?12:0,text:"12"}),ui(de,G=>({active:!1,disabled:d.value.times[R].includes(G.value)||!I(G.value,R)||U(R,G.value)||A(R,G.value)}))},Z=R=>R>=0?R:59,K=R=>R>=0?R:23,I=(R,oe)=>{const Pe=o.minTime?T(zu(o.minTime)):null,ue=o.maxTime?T(zu(o.maxTime)):null,Ne=T(zu(x.value,oe,oe==="minutes"||oe==="seconds"?Z(R):K(R)));return Pe&&ue?(Cs(Ne,ue)||jo(Ne,ue))&&(li(Ne,Pe)||jo(Ne,Pe)):Pe?li(Ne,Pe)||jo(Ne,Pe):ue?Cs(Ne,ue)||jo(Ne,ue):!0},L=R=>o[`no${R[0].toUpperCase()+R.slice(1)}Overlay`],F=R=>{L(R)||(y[R]=!y[R],y[R]?(b.value=!0,r("overlay-opened",R)):(b.value=!1,r("overlay-closed",R)))},N=R=>R==="hours"?ea:R==="minutes"?Pa:si,ce=()=>{_.value&&clearTimeout(_.value)},ge=(R,oe=!0,Pe)=>{const ue=oe?V:Y,Ne=oe?+o[`${R}Increment`]:-+o[`${R}Increment`];I(+o[R]+Ne,R)&&r(`update:${R}`,N(R)(ue({[R]:+o[R]},{[R]:+o[`${R}Increment`]}))),!(Pe!=null&&Pe.keyboard)&&u.value.timeArrowHoldThreshold&&(_.value=setTimeout(()=>{ge(R,oe)},u.value.timeArrowHoldThreshold))},Fe=R=>o.is24?R:(R>=12?C.value="PM":C.value="AM",xT(R)),ee=()=>{C.value==="PM"?(C.value="AM",r("update:hours",o.hours-12)):(C.value="PM",r("update:hours",o.hours+12)),r("am-pm-change",C.value)},se=R=>{y[R]=!0},ae=(R,oe,Pe)=>{if(R&&o.arrowNavigation){Array.isArray(S.value[oe])?S.value[oe][Pe]=R:S.value[oe]=[R];const ue=S.value.reduce((Ne,de)=>de.map((G,te)=>[...Ne[te]||[],de[te]]),[]);s(o.closeTimePickerBtn),g.value&&(ue[1]=ue[1].concat(g.value)),i(ue,o.order)}},me=(R,oe)=>(F(R),r(`update:${R}`,oe));return t({openChildCmp:se}),(R,oe)=>{var Pe;return R.disabled?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",b7,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(B.value,(ue,Ne)=>{var de,G,te;return a.openBlock(),a.createElementBlock("div",{key:Ne,class:a.normalizeClass(D.value),"data-compact":H.value&&!R.enableSeconds,"data-collapsed":H.value&&R.enableSeconds},[ue.separator?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[b.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(":")],64))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("button",{ref_for:!0,ref:pe=>ae(pe,Ne,0),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:M.value(ue.type),"dp--hidden-el":b.value}),"data-test-id":`${ue.type}-time-inc-btn-${o.order}`,"aria-label":(de=a.unref(l))==null?void 0:de.incrementValue(ue.type),tabindex:"0",onKeydown:pe=>a.unref(dn)(pe,()=>ge(ue.type,!0,{keyboard:!0}),!0),onClick:pe=>a.unref(u).timeArrowHoldThreshold?void 0:ge(ue.type,!0),onMousedown:pe=>a.unref(u).timeArrowHoldThreshold?ge(ue.type,!0):void 0,onMouseup:ce},[o.timePickerInline?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[R.$slots["tp-inline-arrow-up"]?a.renderSlot(R.$slots,"tp-inline-arrow-up",{key:0}):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[oe[2]||(oe[2]=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),oe[3]||(oe[3]=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[R.$slots["arrow-up"]?a.renderSlot(R.$slots,"arrow-up",{key:0}):a.createCommentVNode("",!0),R.$slots["arrow-up"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(wp),{key:1}))],64))],42,k7),a.createElementVNode("button",{ref_for:!0,ref:pe=>ae(pe,Ne,1),type:"button","aria-label":`${J.value(ue.type).text}-${(G=a.unref(l))==null?void 0:G.openTpOverlay(ue.type)}`,class:a.normalizeClass({dp__time_display:!0,dp__time_display_block:!R.timePickerInline,dp__time_display_inline:R.timePickerInline,"dp--time-invalid":E.value(ue.type),"dp--time-overlay-btn":!E.value(ue.type),"dp--hidden-el":b.value}),disabled:L(ue.type),tabindex:"0","data-test-id":`${ue.type}-toggle-overlay-btn-${o.order}`,onKeydown:pe=>a.unref(dn)(pe,()=>F(ue.type),!0),onClick:pe=>F(ue.type)},[R.$slots[ue.type]?a.renderSlot(R.$slots,ue.type,{key:0,text:J.value(ue.type).text,value:J.value(ue.type).value}):a.createCommentVNode("",!0),R.$slots[ue.type]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(J.value(ue.type).text),1)],64))],42,_7),a.createElementVNode("button",{ref_for:!0,ref:pe=>ae(pe,Ne,2),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:z.value(ue.type),"dp--hidden-el":b.value}),"data-test-id":`${ue.type}-time-dec-btn-${o.order}`,"aria-label":(te=a.unref(l))==null?void 0:te.decrementValue(ue.type),tabindex:"0",onKeydown:pe=>a.unref(dn)(pe,()=>ge(ue.type,!1,{keyboard:!0}),!0),onClick:pe=>a.unref(u).timeArrowHoldThreshold?void 0:ge(ue.type,!1),onMousedown:pe=>a.unref(u).timeArrowHoldThreshold?ge(ue.type,!1):void 0,onMouseup:ce},[o.timePickerInline?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[R.$slots["tp-inline-arrow-down"]?a.renderSlot(R.$slots,"tp-inline-arrow-down",{key:0}):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[oe[4]||(oe[4]=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),oe[5]||(oe[5]=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[R.$slots["arrow-down"]?a.renderSlot(R.$slots,"arrow-down",{key:0}):a.createCommentVNode("",!0),R.$slots["arrow-down"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(kp),{key:1}))],64))],42,C7)],64))],10,w7)}),128)),R.is24?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",S7,[R.$slots["am-pm-button"]?a.renderSlot(R.$slots,"am-pm-button",{key:0,toggle:ee,value:C.value}):a.createCommentVNode("",!0),R.$slots["am-pm-button"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:1,ref_key:"amPmButton",ref:g,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(Pe=a.unref(l))==null?void 0:Pe.amPmButton,tabindex:"0","data-compact":H.value,onClick:ee,onKeydown:oe[0]||(oe[0]=ue=>a.unref(dn)(ue,()=>ee(),!0))},a.toDisplayString(C.value),41,E7))])),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(q.value,(ue,Ne)=>(a.openBlock(),a.createBlock(a.Transition,{key:Ne,name:a.unref(h)(y[ue.type]),css:a.unref(v)},{default:a.withCtx(()=>{var de,G;return[y[ue.type]?(a.openBlock(),a.createBlock(Fs,{key:0,items:ie(ue.type),"is-last":R.autoApply&&!a.unref(u).keepActionRow,"esc-close":R.escClose,type:ue.type,"text-input":R.textInput,config:R.config,"arrow-navigation":R.arrowNavigation,"aria-labels":R.ariaLabels,"overlay-label":(G=(de=a.unref(l)).timeOverlay)==null?void 0:G.call(de,ue.type),onSelected:te=>me(ue.type,te),onToggle:te=>F(ue.type),onResetFlow:oe[1]||(oe[1]=te=>R.$emit("reset-flow"))},a.createSlots({"button-icon":a.withCtx(()=>[R.$slots["clock-icon"]?a.renderSlot(R.$slots,"clock-icon",{key:0}):a.createCommentVNode("",!0),R.$slots["clock-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(R.timePickerInline?a.unref(Ii):a.unref(bp)),{key:1}))]),_:2},[R.$slots[`${ue.type}-overlay-value`]?{name:"item",fn:a.withCtx(({item:te})=>[a.renderSlot(R.$slots,`${ue.type}-overlay-value`,{text:te.text,value:te.value})]),key:"0"}:void 0,R.$slots[`${ue.type}-overlay-header`]?{name:"header",fn:a.withCtx(()=>[a.renderSlot(R.$slots,`${ue.type}-overlay-header`,{toggle:()=>F(ue.type)})]),key:"1"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","aria-labels","overlay-label","onSelected","onToggle"])):a.createCommentVNode("",!0)]}),_:2},1032,["name","css"]))),128))]))}}}),T7=["data-dp-mobile"],P7=["aria-label","tabindex"],I7=["role","aria-label","tabindex"],A7=["aria-label"],Ay=a.defineComponent({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...pr},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=n,o=e,{buildMatrix:i,setTimePicker:s}=La(),l=a.useSlots(),{defaultedTransitions:c,defaultedAriaLabels:d,defaultedTextInput:u,defaultedConfig:f,defaultedRange:p}=kt(o),{transitionName:h,showTransition:v}=js(c),{hideNavigationButtons:y}=Vc(),C=a.ref(null),g=a.ref(null),S=a.ref([]),_=a.ref(null),b=a.ref(!1);a.onMounted(()=>{r("mount"),!o.timePicker&&o.arrowNavigation?i([Ft(C.value)],"time"):s(!0,o.timePicker)});const T=a.computed(()=>p.value.enabled&&o.modelAuto?my(o.internalModelValue):!0),E=a.ref(!1),x=U=>({hours:Array.isArray(o.hours)?o.hours[U]:o.hours,minutes:Array.isArray(o.minutes)?o.minutes[U]:o.minutes,seconds:Array.isArray(o.seconds)?o.seconds[U]:o.seconds}),A=a.computed(()=>{const U=[];if(p.value.enabled)for(let j=0;j<2;j++)U.push(x(j));else U.push(x(0));return U}),P=(U,j=!1,ie="")=>{j||r("reset-flow"),E.value=U,r(U?"overlay-opened":"overlay-closed",tn.time),o.arrowNavigation&&s(U),a.nextTick(()=>{ie!==""&&S.value[0]&&S.value[0].openChildCmp(ie)})},M=a.computed(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:o.autoApply&&!f.value.keepActionRow})),z=An(l,"timePicker"),V=(U,j,ie)=>p.value.enabled?j===0?[U,A.value[1][ie]]:[A.value[0][ie],U]:U,Y=U=>{r("update:hours",U)},D=U=>{r("update:minutes",U)},H=U=>{r("update:seconds",U)},B=()=>{if(_.value&&!u.value.enabled&&!o.noOverlayFocus){const U=hy(_.value);U&&U.focus({preventScroll:!0})}},q=U=>{b.value=!1,r("overlay-closed",U)},J=U=>{b.value=!0,r("overlay-opened",U)};return t({toggleTimePicker:P}),(U,j)=>{var ie;return a.openBlock(),a.createElementBlock("div",{class:"dp--tp-wrap","data-dp-mobile":U.isMobile},[!U.timePicker&&!U.timePickerInline?a.withDirectives((a.openBlock(),a.createElementBlock("button",{key:0,ref_key:"openTimePickerBtn",ref:C,type:"button",class:a.normalizeClass({...M.value,"dp--hidden-el":E.value}),"aria-label":(ie=a.unref(d))==null?void 0:ie.openTimePicker,tabindex:U.noOverlayFocus?void 0:0,"data-test-id":"open-time-picker-btn",onKeydown:j[0]||(j[0]=Z=>a.unref(dn)(Z,()=>P(!0))),onClick:j[1]||(j[1]=Z=>P(!0))},[U.$slots["clock-icon"]?a.renderSlot(U.$slots,"clock-icon",{key:0}):a.createCommentVNode("",!0),U.$slots["clock-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(bp),{key:1}))],42,P7)),[[a.vShow,!a.unref(y)(U.hideNavigation,"time")]]):a.createCommentVNode("",!0),a.createVNode(a.Transition,{name:a.unref(h)(E.value),css:a.unref(v)&&!U.timePickerInline},{default:a.withCtx(()=>{var Z,K;return[E.value||U.timePicker||U.timePickerInline?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"overlayRef",ref:_,role:U.timePickerInline?void 0:"dialog",class:a.normalizeClass({dp__overlay:!U.timePickerInline,"dp--overlay-absolute":!o.timePicker&&!U.timePickerInline,"dp--overlay-relative":o.timePicker}),style:a.normalizeStyle(U.timePicker?{height:`${a.unref(f).modeHeight}px`}:void 0),"aria-label":(Z=a.unref(d))==null?void 0:Z.timePicker,tabindex:U.timePickerInline?void 0:0},[a.createElementVNode("div",{class:a.normalizeClass(U.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[U.$slots["time-picker-overlay"]?a.renderSlot(U.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:Y,setMinutes:D,setSeconds:H}):a.createCommentVNode("",!0),U.$slots["time-picker-overlay"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(U.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(A.value,(I,L)=>a.withDirectives((a.openBlock(),a.createBlock(x7,a.mergeProps({key:L,ref_for:!0},{...U.$props,order:L,hours:I.hours,minutes:I.minutes,seconds:I.seconds,closeTimePickerBtn:g.value,disabledTimesConfig:e.disabledTimesConfig,disabled:L===0?a.unref(p).fixedStart:a.unref(p).fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:S,"validate-time":(F,N)=>e.validateTime(F,V(N,L,F)),"onUpdate:hours":F=>Y(V(F,L,"hours")),"onUpdate:minutes":F=>D(V(F,L,"minutes")),"onUpdate:seconds":F=>H(V(F,L,"seconds")),onMounted:B,onOverlayClosed:q,onOverlayOpened:J,onAmPmChange:j[2]||(j[2]=F=>U.$emit("am-pm-change",F))}),a.createSlots({_:2},[a.renderList(a.unref(z),(F,N)=>({name:F,fn:a.withCtx(ce=>[a.renderSlot(U.$slots,F,a.mergeProps({ref_for:!0},ce))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[a.vShow,L===0?!0:T.value]])),128))],2)),!U.timePicker&&!U.timePickerInline?a.withDirectives((a.openBlock(),a.createElementBlock("button",{key:2,ref_key:"closeTimePickerBtn",ref:g,type:"button",class:a.normalizeClass({...M.value,"dp--hidden-el":b.value}),"aria-label":(K=a.unref(d))==null?void 0:K.closeTimePicker,tabindex:"0",onKeydown:j[3]||(j[3]=I=>a.unref(dn)(I,()=>P(!1))),onClick:j[4]||(j[4]=I=>P(!1))},[U.$slots["calendar-icon"]?a.renderSlot(U.$slots,"calendar-icon",{key:0}):a.createCommentVNode("",!0),U.$slots["calendar-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Ii),{key:1}))],42,A7)),[[a.vShow,!a.unref(y)(U.hideNavigation,"time")]]):a.createCommentVNode("",!0)],2)],14,I7)):a.createCommentVNode("",!0)]}),_:3},8,["name","css"])],8,T7)}}}),My=(e,t,n,r)=>{const{defaultedRange:o}=kt(e),i=(_,b)=>Array.isArray(t[_])?t[_][b]:t[_],s=_=>e.enableSeconds?Array.isArray(t.seconds)?t.seconds[_]:t.seconds:0,l=(_,b)=>_?b!==void 0?ka(_,i("hours",b),i("minutes",b),s(b)):ka(_,t.hours,t.minutes,s()):uy(fe(),s(b)),c=(_,b)=>{t[_]=b},d=a.computed(()=>e.modelAuto&&o.value.enabled?Array.isArray(n.value)?n.value.length>1:!1:o.value.enabled),u=(_,b)=>{const T=Object.fromEntries(Object.keys(t).map(E=>E===_?[E,b]:[E,t[E]].slice()));if(d.value&&!o.value.disableTimeRangeValidation){const E=A=>n.value?ka(n.value[A],T.hours[A],T.minutes[A],T.seconds[A]):null,x=A=>cy(n.value[A],0);return!(Je(E(0),E(1))&&(li(E(0),x(1))||Cs(E(1),x(0))))}return!0},f=(_,b)=>{u(_,b)&&(c(_,b),r&&r())},p=_=>{f("hours",_)},h=_=>{f("minutes",_)},v=_=>{f("seconds",_)},y=(_,b,T,E)=>{b&&p(_),!b&&!T&&h(_),T&&v(_),n.value&&E(n.value)},C=_=>{if(_){const b=Array.isArray(_),T=b?[+_[0].hours,+_[1].hours]:+_.hours,E=b?[+_[0].minutes,+_[1].minutes]:+_.minutes,x=b?[+_[0].seconds,+_[1].seconds]:+_.seconds;c("hours",T),c("minutes",E),e.enableSeconds&&c("seconds",x)}},g=(_,b)=>{const T={hours:Array.isArray(t.hours)?t.hours[_]:t.hours,disabledArr:[]};return(b||b===0)&&(T.hours=b),Array.isArray(e.disabledTimes)&&(T.disabledArr=o.value.enabled&&Array.isArray(e.disabledTimes[_])?e.disabledTimes[_]:e.disabledTimes),T},S=a.computed(()=>(_,b)=>{var T;if(Array.isArray(e.disabledTimes)){const{disabledArr:E,hours:x}=g(_,b),A=E.filter(P=>+P.hours===x);return((T=A[0])==null?void 0:T.minutes)==="*"?{hours:[x],minutes:void 0,seconds:void 0}:{hours:[],minutes:(A==null?void 0:A.map(P=>+P.minutes))??[],seconds:(A==null?void 0:A.map(P=>P.seconds?+P.seconds:void 0))??[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:c,updateHours:p,updateMinutes:h,updateSeconds:v,getSetDateTime:l,updateTimeValues:y,getSecondsValue:s,assignStartTime:C,validateTime:u,disabledTimesConfig:S}},M7=(e,t)=>{const n=()=>{e.isTextInputDate&&b()},{modelValue:r,time:o}=Hs(e,t,n),{defaultedStartTime:i,defaultedRange:s,defaultedTz:l}=kt(e),{updateTimeValues:c,getSetDateTime:d,setTime:u,assignStartTime:f,disabledTimesConfig:p,validateTime:h}=My(e,o,r,v);function v(){t("update-flow-step")}const y=E=>{const{hours:x,minutes:A,seconds:P}=E;return{hours:+x,minutes:+A,seconds:P?+P:0}},C=()=>{if(e.startTime){if(Array.isArray(e.startTime)){const x=y(e.startTime[0]),A=y(e.startTime[1]);return[pt(fe(),x),pt(fe(),A)]}const E=y(e.startTime);return pt(fe(),E)}return s.value.enabled?[null,null]:null},g=()=>{if(s.value.enabled){const[E,x]=C();r.value=[Cn(d(E,0),l.value.timezone),Cn(d(x,1),l.value.timezone)]}else r.value=Cn(d(C()),l.value.timezone)},S=E=>Array.isArray(E)?[lo(fe(E[0])),lo(fe(E[1]))]:[lo(E??fe())],_=(E,x,A)=>{u("hours",E),u("minutes",x),u("seconds",e.enableSeconds?A:0)},b=()=>{const[E,x]=S(r.value);return s.value.enabled?_([E.hours,x.hours],[E.minutes,x.minutes],[E.seconds,x.seconds]):_(E.hours,E.minutes,E.seconds)};a.onMounted(()=>{if(!e.shadow)return f(i.value),r.value?b():g()});const T=()=>{Array.isArray(r.value)?r.value=r.value.map((E,x)=>E&&d(E,x)):r.value=d(r.value),t("time-update")};return{modelValue:r,time:o,disabledTimesConfig:p,updateTime:(E,x=!0,A=!1)=>{c(E,x,A,T)},validateTime:h}},O7=a.defineComponent({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{...pr},emits:["update:internal-model-value","time-update","am-pm-change","mount","reset-flow","update-flow-step","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,o=e,i=a.useSlots(),s=An(i,"timePicker"),l=a.ref(null),{time:c,modelValue:d,disabledTimesConfig:u,updateTime:f,validateTime:p}=M7(o,r);return a.onMounted(()=>{o.shadow||r("mount",null)}),t({getSidebarProps:()=>({modelValue:d,time:c,updateTime:f}),toggleTimePicker:(h,v=!1,y="")=>{var C;(C=l.value)==null||C.toggleTimePicker(h,v,y)}}),(h,v)=>(a.openBlock(),a.createBlock($c,{"multi-calendars":0,stretch:"","is-mobile":h.isMobile},{default:a.withCtx(()=>[a.createVNode(Ay,a.mergeProps({ref_key:"tpRef",ref:l},h.$props,{hours:a.unref(c).hours,minutes:a.unref(c).minutes,seconds:a.unref(c).seconds,"internal-model-value":h.internalModelValue,"disabled-times-config":a.unref(u),"validate-time":a.unref(p),"onUpdate:hours":v[0]||(v[0]=y=>a.unref(f)(y)),"onUpdate:minutes":v[1]||(v[1]=y=>a.unref(f)(y,!1)),"onUpdate:seconds":v[2]||(v[2]=y=>a.unref(f)(y,!1,!0)),onAmPmChange:v[3]||(v[3]=y=>h.$emit("am-pm-change",y)),onResetFlow:v[4]||(v[4]=y=>h.$emit("reset-flow")),onOverlayClosed:v[5]||(v[5]=y=>h.$emit("overlay-toggle",{open:!1,overlay:y})),onOverlayOpened:v[6]||(v[6]=y=>h.$emit("overlay-toggle",{open:!0,overlay:y}))}),a.createSlots({_:2},[a.renderList(a.unref(s),(y,C)=>({name:y,fn:a.withCtx(g=>[a.renderSlot(h.$slots,y,a.normalizeProps(a.guardReactiveProps(g)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])]),_:3},8,["is-mobile"]))}}),N7={class:"dp--header-wrap"},B7={key:0,class:"dp__month_year_wrap"},D7={key:0},R7={class:"dp__month_year_wrap"},L7=["data-dp-element","aria-label","data-test-id","onClick","onKeydown"],$7=a.defineComponent({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},...pr},emits:["update-month-year","mount","reset-flow","overlay-closed","overlay-opened"],setup(e,{expose:t,emit:n}){const r=n,o=e,{defaultedTransitions:i,defaultedAriaLabels:s,defaultedMultiCalendars:l,defaultedFilters:c,defaultedConfig:d,defaultedHighlight:u,propDates:f,defaultedUI:p}=kt(o),{transitionName:h,showTransition:v}=js(i),{buildMatrix:y}=La(),{handleMonthYearChange:C,isDisabled:g,updateMonthYear:S}=a7(o,r),{showLeftIcon:_,showRightIcon:b}=Vc(),T=a.ref(!1),E=a.ref(!1),x=a.ref(!1),A=a.ref([null,null,null,null]);a.onMounted(()=>{r("mount")});const P=K=>({get:()=>o[K],set:I=>{const L=K===Xn.month?Xn.year:Xn.month;r("update-month-year",{[K]:I,[L]:o[L]}),K===Xn.month?q(!0):J(!0)}}),M=a.computed(P(Xn.month)),z=a.computed(P(Xn.year)),V=a.computed(()=>K=>({month:o.month,year:o.year,items:K===Xn.month?o.months:o.years,instance:o.instance,updateMonthYear:S,toggle:K===Xn.month?q:J})),Y=a.computed(()=>o.months.find(I=>I.value===o.month)||{text:"",value:0}),D=a.computed(()=>ui(o.months,K=>{const I=o.month===K.value,L=Ss(K.value,gy(o.year,f.value.minDate),yy(o.year,f.value.maxDate))||c.value.months.includes(K.value),F=Cy(u.value,K.value,o.year);return{active:I,disabled:L,highlighted:F}})),H=a.computed(()=>ui(o.years,K=>{const I=o.year===K.value,L=Ss(K.value,di(f.value.minDate),di(f.value.maxDate))||c.value.years.includes(K.value),F=xp(u.value,K.value);return{active:I,disabled:L,highlighted:F}})),B=(K,I,L)=>{L!==void 0?K.value=L:K.value=!K.value,K.value?(x.value=!0,r("overlay-opened",I)):(x.value=!1,r("overlay-closed",I))},q=(K=!1,I)=>{U(K),B(T,tn.month,I)},J=(K=!1,I)=>{U(K),B(E,tn.year,I)},U=K=>{K||r("reset-flow")},j=(K,I)=>{o.arrowNavigation&&(A.value[I]=Ft(K),y(A.value,"monthYear"))},ie=a.computed(()=>{var K,I,L,F,N,ce;return[{type:Xn.month,index:1,toggle:q,modelValue:M.value,updateModelValue:ge=>M.value=ge,text:Y.value.text,showSelectionGrid:T.value,items:D.value,ariaLabel:(K=s.value)==null?void 0:K.openMonthsOverlay,overlayLabel:((L=(I=s.value).monthPicker)==null?void 0:L.call(I,!0))??void 0},{type:Xn.year,index:2,toggle:J,modelValue:z.value,updateModelValue:ge=>z.value=ge,text:vy(o.year,o.locale),showSelectionGrid:E.value,items:H.value,ariaLabel:(F=s.value)==null?void 0:F.openYearsOverlay,overlayLabel:((ce=(N=s.value).yearPicker)==null?void 0:ce.call(N,!0))??void 0}]}),Z=a.computed(()=>o.disableYearSelect?[ie.value[0]]:o.yearFirst?[...ie.value].reverse():ie.value);return t({toggleMonthPicker:q,toggleYearPicker:J,handleMonthYearChange:C}),(K,I)=>{var L,F,N,ce,ge,Fe;return a.openBlock(),a.createElementBlock("div",N7,[K.$slots["month-year"]?(a.openBlock(),a.createElementBlock("div",B7,[a.renderSlot(K.$slots,"month-year",a.normalizeProps(a.guardReactiveProps({month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:a.unref(S),handleMonthYearChange:a.unref(C),instance:e.instance})))])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[K.$slots["top-extra"]?(a.openBlock(),a.createElementBlock("div",D7,[a.renderSlot(K.$slots,"top-extra",{value:K.internalModelValue})])):a.createCommentVNode("",!0),a.createElementVNode("div",R7,[a.unref(_)(a.unref(l),e.instance)&&!K.vertical?(a.openBlock(),a.createBlock(as,{key:0,"aria-label":(L=a.unref(s))==null?void 0:L.prevMonth,disabled:a.unref(g)(!1),class:a.normalizeClass((F=a.unref(p))==null?void 0:F.navBtnPrev),"el-name":"action-prev",onActivate:I[0]||(I[0]=ee=>a.unref(C)(!1,!0)),onSetRef:I[1]||(I[1]=ee=>j(ee,0))},{default:a.withCtx(()=>[K.$slots["arrow-left"]?a.renderSlot(K.$slots,"arrow-left",{key:0}):a.createCommentVNode("",!0),K.$slots["arrow-left"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(gp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["dp__month_year_wrap",{dp__year_disable_select:K.disableYearSelect}])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Z.value,(ee,se)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:ee.type},[a.createElementVNode("button",{ref_for:!0,ref:ae=>j(ae,se+1),type:"button","data-dp-element":`overlay-${ee.type}`,class:a.normalizeClass(["dp__btn dp__month_year_select",{"dp--hidden-el":x.value}]),"aria-label":`${ee.text}-${ee.ariaLabel}`,"data-test-id":`${ee.type}-toggle-overlay-${e.instance}`,onClick:ee.toggle,onKeydown:ae=>a.unref(dn)(ae,()=>ee.toggle(),!0)},[K.$slots[ee.type]?a.renderSlot(K.$slots,ee.type,{key:0,text:ee.text,value:o[ee.type]}):a.createCommentVNode("",!0),K.$slots[ee.type]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(ee.text),1)],64))],42,L7),a.createVNode(a.Transition,{name:a.unref(h)(ee.showSelectionGrid),css:a.unref(v)},{default:a.withCtx(()=>[ee.showSelectionGrid?(a.openBlock(),a.createBlock(Fs,{key:0,items:ee.items,"arrow-navigation":K.arrowNavigation,"hide-navigation":K.hideNavigation,"is-last":K.autoApply&&!a.unref(d).keepActionRow,"skip-button-ref":!1,config:K.config,type:ee.type,"header-refs":[],"esc-close":K.escClose,"menu-wrap-ref":K.menuWrapRef,"text-input":K.textInput,"aria-labels":K.ariaLabels,"overlay-label":ee.overlayLabel,onSelected:ee.updateModelValue,onToggle:ee.toggle},a.createSlots({"button-icon":a.withCtx(()=>[K.$slots["calendar-icon"]?a.renderSlot(K.$slots,"calendar-icon",{key:0}):a.createCommentVNode("",!0),K.$slots["calendar-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Ii),{key:1}))]),_:2},[K.$slots[`${ee.type}-overlay-value`]?{name:"item",fn:a.withCtx(({item:ae})=>[a.renderSlot(K.$slots,`${ee.type}-overlay-value`,{text:ae.text,value:ae.value})]),key:"0"}:void 0,K.$slots[`${ee.type}-overlay`]?{name:"overlay",fn:a.withCtx(()=>[a.renderSlot(K.$slots,`${ee.type}-overlay`,a.mergeProps({ref_for:!0},V.value(ee.type)))]),key:"1"}:void 0,K.$slots[`${ee.type}-overlay-header`]?{name:"header",fn:a.withCtx(()=>[a.renderSlot(K.$slots,`${ee.type}-overlay-header`,{toggle:ee.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","menu-wrap-ref","text-input","aria-labels","overlay-label","onSelected","onToggle"])):a.createCommentVNode("",!0)]),_:2},1032,["name","css"])],64))),128))],2),a.unref(_)(a.unref(l),e.instance)&&K.vertical?(a.openBlock(),a.createBlock(as,{key:1,"aria-label":(N=a.unref(s))==null?void 0:N.prevMonth,"el-name":"action-prev",disabled:a.unref(g)(!1),class:a.normalizeClass((ce=a.unref(p))==null?void 0:ce.navBtnPrev),onActivate:I[2]||(I[2]=ee=>a.unref(C)(!1,!0))},{default:a.withCtx(()=>[K.$slots["arrow-up"]?a.renderSlot(K.$slots,"arrow-up",{key:0}):a.createCommentVNode("",!0),K.$slots["arrow-up"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(wp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):a.createCommentVNode("",!0),a.unref(b)(a.unref(l),e.instance)?(a.openBlock(),a.createBlock(as,{key:2,ref:"rightIcon","el-name":"action-next",disabled:a.unref(g)(!0),"aria-label":(ge=a.unref(s))==null?void 0:ge.nextMonth,class:a.normalizeClass((Fe=a.unref(p))==null?void 0:Fe.navBtnNext),onActivate:I[3]||(I[3]=ee=>a.unref(C)(!0,!0)),onSetRef:I[4]||(I[4]=ee=>j(ee,K.disableYearSelect?2:3))},{default:a.withCtx(()=>[K.$slots[K.vertical?"arrow-down":"arrow-right"]?a.renderSlot(K.$slots,K.vertical?"arrow-down":"arrow-right",{key:0}):a.createCommentVNode("",!0),K.$slots[K.vertical?"arrow-down":"arrow-right"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(K.vertical?a.unref(kp):a.unref(yp)),{key:1}))]),_:3},8,["disabled","aria-label","class"])):a.createCommentVNode("",!0)])],64))])}}}),z7={class:"dp__calendar_header",role:"row"},V7={key:0,class:"dp__calendar_header_item",role:"gridcell"},F7=["aria-label"],j7={key:0,class:"dp__calendar_item dp__week_num",role:"gridcell"},H7={class:"dp__cell_inner"},U7=["id","aria-pressed","aria-disabled","aria-label","tabindex","data-test-id","onClick","onTouchend","onKeydown","onMouseenter","onMouseleave","onMousedown"],W7=a.defineComponent({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...pr},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=n,o=e,{buildMultiLevelMatrix:i}=La(),{defaultedTransitions:s,defaultedConfig:l,defaultedAriaLabels:c,defaultedMultiCalendars:d,defaultedWeekNumbers:u,defaultedMultiDates:f,defaultedUI:p}=kt(o),h=a.ref(null),v=a.ref({bottom:"",left:"",transform:""}),y=a.ref([]),C=a.ref(null),g=a.ref(!0),S=a.ref(""),_=a.ref({startX:0,endX:0,startY:0,endY:0}),b=a.ref([]),T=a.ref({left:"50%"}),E=a.ref(!1),x=a.computed(()=>o.calendar?o.calendar(o.mappedDates):o.mappedDates),A=a.computed(()=>o.dayNames?Array.isArray(o.dayNames)?o.dayNames:o.dayNames(o.locale,+o.weekStart):ET(o.formatLocale,o.locale,+o.weekStart));a.onMounted(()=>{r("mount",{cmp:"calendar",refs:y}),l.value.noSwipe||C.value&&(C.value.addEventListener("touchstart",j,{passive:!1}),C.value.addEventListener("touchend",ie,{passive:!1}),C.value.addEventListener("touchmove",Z,{passive:!1})),o.monthChangeOnScroll&&C.value&&C.value.addEventListener("wheel",L,{passive:!1})});const P=ee=>ee?o.vertical?"vNext":"next":o.vertical?"vPrevious":"previous",M=(ee,se)=>{if(o.transitions){const ae=fn(qr(fe(),o.month,o.year));S.value=Ot(fn(qr(fe(),ee,se)),ae)?s.value[P(!0)]:s.value[P(!1)],g.value=!1,a.nextTick(()=>{g.value=!0})}},z=a.computed(()=>({...p.value.calendar??{}})),V=a.computed(()=>ee=>{const se=TT(ee);return{dp__marker_dot:se.type==="dot",dp__marker_line:se.type==="line"}}),Y=a.computed(()=>ee=>Je(ee,h.value)),D=a.computed(()=>({dp__calendar:!0,dp__calendar_next:d.value.count>0&&o.instance!==0})),H=a.computed(()=>ee=>o.hideOffsetDates?ee.current:!0),B=async(ee,se)=>{const{width:ae,height:me}=ee.getBoundingClientRect();h.value=se.value;let R={left:`${ae/2}px`},oe=-50;if(await a.nextTick(),b.value[0]){const{left:Pe,width:ue}=b.value[0].getBoundingClientRect();Pe<0&&(R={left:"0"},oe=0,T.value.left=`${ae/2}px`),window.innerWidth<Pe+ue&&(R={right:"0"},oe=0,T.value.left=`${ue-ae/2}px`)}v.value={bottom:`${me}px`,...R,transform:`translateX(${oe}%)`}},q=async(ee,se,ae)=>{var me,R,oe;const Pe=Ft(y.value[se][ae]);Pe&&((me=ee.marker)!=null&&me.customPosition&&(oe=(R=ee.marker)==null?void 0:R.tooltip)!=null&&oe.length?v.value=ee.marker.customPosition(Pe):await B(Pe,ee),r("tooltip-open",ee.marker))},J=async(ee,se,ae)=>{var me,R;if(E.value&&f.value.enabled&&f.value.dragSelect)return r("select-date",ee);if(r("set-hover-date",ee),(R=(me=ee.marker)==null?void 0:me.tooltip)!=null&&R.length){if(o.hideOffsetDates&&!ee.current)return;await q(ee,se,ae)}},U=ee=>{h.value&&(h.value=null,v.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),r("tooltip-close",ee.marker))},j=ee=>{_.value.startX=ee.changedTouches[0].screenX,_.value.startY=ee.changedTouches[0].screenY},ie=ee=>{_.value.endX=ee.changedTouches[0].screenX,_.value.endY=ee.changedTouches[0].screenY,K()},Z=ee=>{o.vertical&&!o.inline&&ee.preventDefault()},K=()=>{const ee=o.vertical?"Y":"X";Math.abs(_.value[`start${ee}`]-_.value[`end${ee}`])>10&&r("handle-swipe",_.value[`start${ee}`]>_.value[`end${ee}`]?"right":"left")},I=(ee,se,ae)=>{ee&&(Array.isArray(y.value[se])?y.value[se][ae]=ee:y.value[se]=[ee]),o.arrowNavigation&&i(y.value,"calendar")},L=ee=>{o.monthChangeOnScroll&&(ee.preventDefault(),r("handle-scroll",ee))},F=ee=>u.value.type==="local"?mp(ee.value,{weekStartsOn:+o.weekStart}):u.value.type==="iso"?fp(ee.value):typeof u.value.type=="function"?u.value.type(ee.value):"",N=ee=>{const se=ee[0];return u.value.hideOnOffsetDates?ee.some(ae=>ae.current)?F(se):"":F(se)},ce=(ee,se,ae=!0)=>{ae&&uv()||!ae&&!uv()||(!f.value.enabled||l.value.allowPreventDefault)&&(wa(ee,l.value),r("select-date",se))},ge=ee=>{wa(ee,l.value)},Fe=ee=>{f.value.enabled&&f.value.dragSelect?(E.value=!0,r("select-date",ee)):f.value.enabled&&r("select-date",ee)};return t({triggerTransition:M}),(ee,se)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(D.value)},[a.createElementVNode("div",{ref_key:"calendarWrapRef",ref:C,class:a.normalizeClass(z.value),role:"grid"},[a.createElementVNode("div",z7,[ee.weekNumbers?(a.openBlock(),a.createElementBlock("div",V7,a.toDisplayString(ee.weekNumName),1)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(A.value,(ae,me)=>{var R,oe;return a.openBlock(),a.createElementBlock("div",{key:me,class:"dp__calendar_header_item",role:"gridcell","data-test-id":"calendar-header","aria-label":(oe=(R=a.unref(c))==null?void 0:R.weekDay)==null?void 0:oe.call(R,me)},[ee.$slots["calendar-header"]?a.renderSlot(ee.$slots,"calendar-header",{key:0,day:ae,index:me}):a.createCommentVNode("",!0),ee.$slots["calendar-header"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(ae),1)],64))],8,F7)}),128))]),se[2]||(se[2]=a.createElementVNode("div",{class:"dp__calendar_header_separator"},null,-1)),a.createVNode(a.Transition,{name:S.value,css:!!ee.transitions},{default:a.withCtx(()=>[g.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:"dp__calendar",role:"rowgroup",onMouseleave:se[1]||(se[1]=ae=>E.value=!1)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(x.value,(ae,me)=>(a.openBlock(),a.createElementBlock("div",{key:me,class:"dp__calendar_row",role:"row"},[ee.weekNumbers?(a.openBlock(),a.createElementBlock("div",j7,[a.createElementVNode("div",H7,a.toDisplayString(N(ae.days)),1)])):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ae.days,(R,oe)=>{var Pe,ue,Ne;return a.openBlock(),a.createElementBlock("div",{id:a.unref(Sy)(R.value),ref_for:!0,ref:de=>I(de,me,oe),key:oe+me,role:"gridcell",class:"dp__calendar_item","aria-pressed":(R.classData.dp__active_date||R.classData.dp__range_start||R.classData.dp__range_start)??void 0,"aria-disabled":R.classData.dp__cell_disabled||void 0,"aria-label":(ue=(Pe=a.unref(c))==null?void 0:Pe.day)==null?void 0:ue.call(Pe,R),tabindex:!R.current&&ee.hideOffsetDates?void 0:0,"data-test-id":R.value,onClick:a.withModifiers(de=>ce(de,R),["prevent"]),onTouchend:de=>ce(de,R,!1),onKeydown:de=>a.unref(dn)(de,()=>ee.$emit("select-date",R)),onMouseenter:de=>J(R,me,oe),onMouseleave:de=>U(R),onMousedown:de=>Fe(R),onMouseup:se[0]||(se[0]=de=>E.value=!1)},[a.createElementVNode("div",{class:a.normalizeClass(["dp__cell_inner",R.classData])},[ee.$slots.day&&H.value(R)?a.renderSlot(ee.$slots,"day",{key:0,day:+R.text,date:R.value}):a.createCommentVNode("",!0),ee.$slots.day?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(R.text),1)],64)),R.marker&&H.value(R)?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[ee.$slots.marker?a.renderSlot(ee.$slots,"marker",{key:0,marker:R.marker,day:+R.text,date:R.value}):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(V.value(R.marker)),style:a.normalizeStyle(R.marker.color?{backgroundColor:R.marker.color}:{})},null,6))],64)):a.createCommentVNode("",!0),Y.value(R.value)?(a.openBlock(),a.createElementBlock("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:b,class:"dp__marker_tooltip",style:a.normalizeStyle(v.value)},[(Ne=R.marker)!=null&&Ne.tooltip?(a.openBlock(),a.createElementBlock("div",{key:0,class:"dp__tooltip_content",onClick:ge},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(R.marker.tooltip,(de,G)=>(a.openBlock(),a.createElementBlock("div",{key:G,class:"dp__tooltip_text"},[ee.$slots["marker-tooltip"]?a.renderSlot(ee.$slots,"marker-tooltip",{key:0,tooltip:de,day:R.value}):a.createCommentVNode("",!0),ee.$slots["marker-tooltip"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",{class:"dp__tooltip_mark",style:a.normalizeStyle(de.color?{backgroundColor:de.color}:{})},null,4),a.createElementVNode("div",null,a.toDisplayString(de.text),1)],64))]))),128)),a.createElementVNode("div",{class:"dp__arrow_bottom_tp",style:a.normalizeStyle(T.value)},null,4)])):a.createCommentVNode("",!0)],4)):a.createCommentVNode("",!0)],2)],40,U7)}),128))]))),128))],32)):a.createCommentVNode("",!0)]),_:3},8,["name","css"])],2)],2))}}),hv=e=>Array.isArray(e),q7=(e,t,n,r)=>{const o=a.ref([]),i=a.ref(new Date),s=a.ref(),l=()=>j(e.isTextInputDate),{modelValue:c,calendars:d,time:u,today:f}=Hs(e,t,l),{defaultedMultiCalendars:p,defaultedStartTime:h,defaultedRange:v,defaultedConfig:y,defaultedTz:C,propDates:g,defaultedMultiDates:S}=kt(e),{validateMonthYearInRange:_,isDisabled:b,isDateRangeAllowed:T,checkMinMaxRange:E}=$a(e),{updateTimeValues:x,getSetDateTime:A,setTime:P,assignStartTime:M,validateTime:z,disabledTimesConfig:V}=My(e,u,c,r),Y=a.computed(()=>W=>d.value[W]?d.value[W].month:0),D=a.computed(()=>W=>d.value[W]?d.value[W].year:0),H=W=>!y.value.keepViewOnOffsetClick||W?!0:!s.value,B=(W,re,we,Q=!1)=>{var he,Ce;H(Q)&&(d.value[W]||(d.value[W]={month:0,year:0}),d.value[W].month=cv(re)?(he=d.value[W])==null?void 0:he.month:re,d.value[W].year=cv(we)?(Ce=d.value[W])==null?void 0:Ce.year:we)},q=()=>{e.autoApply&&t("select-date")};a.onMounted(()=>{e.shadow||(c.value||(ee(),h.value&&M(h.value)),j(!0),e.focusStartDate&&e.startDate&&ee())});const J=a.computed(()=>{var W;return(W=e.flow)!=null&&W.length&&!e.partialFlow?e.flowStep===e.flow.length:!0}),U=()=>{e.autoApply&&J.value&&t("auto-apply",e.partialFlow?e.flowStep!==e.flow.length:!1)},j=(W=!1)=>{if(c.value)return Array.isArray(c.value)?(o.value=c.value,N(W)):K(c.value,W);if(p.value.count&&W&&!e.startDate)return Z(fe(),W)},ie=()=>Array.isArray(c.value)&&v.value.enabled?Ke(c.value[0])===Ke(c.value[1]??c.value[0]):!1,Z=(W=new Date,re=!1)=>{if((!p.value.count||!p.value.static||re)&&B(0,Ke(W),Ve(W)),p.value.count&&(!c.value||ie()||!p.value.solo)&&(!p.value.solo||re))for(let we=1;we<p.value.count;we++){const Q=pt(fe(),{month:Y.value(we-1),year:D.value(we-1)}),he=Y1(Q,{months:1});d.value[we]={month:Ke(he),year:Ve(he)}}},K=(W,re)=>{Z(W),P("hours",ea(W)),P("minutes",Pa(W)),P("seconds",si(W)),p.value.count&&re&&Fe()},I=W=>{if(p.value.count){if(p.value.solo)return 0;const re=Ke(W[0]),we=Ke(W[1]);return Math.abs(we-re)<p.value.count?0:1}return 1},L=(W,re)=>{W[1]&&v.value.showLastInRange?Z(W[I(W)],re):Z(W[0],re);const we=(Q,he)=>[Q(W[0]),W[1]?Q(W[1]):u[he][1]];P("hours",we(ea,"hours")),P("minutes",we(Pa,"minutes")),P("seconds",we(si,"seconds"))},F=(W,re)=>{if((v.value.enabled||e.weekPicker)&&!S.value.enabled)return L(W,re);if(S.value.enabled&&re){const we=W[W.length-1];return K(we,re)}},N=W=>{const re=c.value;F(re,W),p.value.count&&p.value.solo&&Fe()},ce=(W,re)=>{const we=pt(fe(),{month:Y.value(re),year:D.value(re)}),Q=W<0?ir(we,1):ci(we,1);_(Ke(Q),Ve(Q),W<0,e.preventMinMaxNavigation)&&(B(re,Ke(Q),Ve(Q)),t("update-month-year",{instance:re,month:Ke(Q),year:Ve(Q)}),p.value.count&&!p.value.solo&&ge(re),n())},ge=W=>{for(let re=W-1;re>=0;re--){const we=ci(pt(fe(),{month:Y.value(re+1),year:D.value(re+1)}),1);B(re,Ke(we),Ve(we))}for(let re=W+1;re<=p.value.count-1;re++){const we=ir(pt(fe(),{month:Y.value(re-1),year:D.value(re-1)}),1);B(re,Ke(we),Ve(we))}},Fe=()=>{if(Array.isArray(c.value)&&c.value.length===2){const W=fe(fe(c.value[1]?c.value[1]:ir(c.value[0],1))),[re,we]=[Ke(c.value[0]),Ve(c.value[0])],[Q,he]=[Ke(c.value[1]),Ve(c.value[1])];(re!==Q||re===Q&&we!==he)&&p.value.solo&&B(1,Ke(W),Ve(W))}else c.value&&!Array.isArray(c.value)&&(B(0,Ke(c.value),Ve(c.value)),Z(fe()))},ee=()=>{e.startDate&&(B(0,Ke(fe(e.startDate)),Ve(fe(e.startDate))),p.value.count&&ge(0))},se=(W,re)=>{if(e.monthChangeOnScroll){const we=new Date().getTime()-i.value.getTime(),Q=Math.abs(W.deltaY);let he=500;Q>1&&(he=100),Q>100&&(he=0),we>he&&(i.value=new Date,ce(e.monthChangeOnScroll!=="inverse"?-W.deltaY:W.deltaY,re))}},ae=(W,re,we=!1)=>{e.monthChangeOnArrows&&e.vertical===we&&me(W,re)},me=(W,re)=>{ce(W==="right"?-1:1,re)},R=W=>{if(g.value.markers)return nc(W.value,g.value.markers)},oe=(W,re)=>{switch(e.sixWeeks===!0?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[W==0,!0];case"fair":return[W==0||re>W,!0];case"append":return[!1,!1];default:return[!1,!1]}},Pe=(W,re,we,Q)=>{if(e.sixWeeks&&W.length<6){const he=6-W.length,Ce=(re.getDay()+7-Q)%7,at=6-(we.getDay()+7-Q)%7,[ut,dt]=oe(Ce,at);for(let Et=1;Et<=he;Et++)if(dt?!!(Et%2)==ut:ut){const Rt=W[0].days[0],an=ue(nr(Rt.value,-7),Ke(re));W.unshift({days:an})}else{const Rt=W[W.length-1],an=Rt.days[Rt.days.length-1],vn=ue(nr(an.value,1),Ke(re));W.push({days:vn})}}return W},ue=(W,re)=>{const we=fe(W),Q=[];for(let he=0;he<7;he++){const Ce=nr(we,he),at=Ke(Ce)!==re;Q.push({text:e.hideOffsetDates&&at?"":Ce.getDate(),value:Ce,current:!at,classData:{}})}return Q},Ne=(W,re)=>{const we=[],Q=new Date(re,W),he=new Date(re,W+1,0),Ce=e.weekStart,at=cr(Q,{weekStartsOn:Ce}),ut=dt=>{const Et=ue(dt,W);if(we.push({days:Et}),!we[we.length-1].days.some(Rt=>Je(fn(Rt.value),fn(he)))){const Rt=nr(dt,7);ut(Rt)}};return ut(at),Pe(we,Q,he,Ce)},de=W=>{const re=ka(fe(W.value),u.hours,u.minutes,ot());t("date-update",re),S.value.enabled?Tp(re,c,S.value.limit):c.value=re,r(),a.nextTick().then(()=>{U()})},G=W=>v.value.noDisabledRange?by(o.value[0],W).some(re=>b(re)):!1,te=()=>{o.value=c.value?c.value.slice():[],o.value.length===2&&!(v.value.fixedStart||v.value.fixedEnd)&&(o.value=[])},pe=(W,re)=>{const we=[fe(W.value),nr(fe(W.value),+v.value.autoRange)];T(we)?(re&&xe(W.value),o.value=we):t("invalid-date",W.value)},xe=W=>{const re=Ke(fe(W)),we=Ve(fe(W));if(B(0,re,we),p.value.count>0)for(let Q=1;Q<p.value.count;Q++){const he=BT(pt(fe(W),{year:D.value(Q-1),month:Y.value(Q-1)}));B(Q,he.month,he.year)}},Te=W=>{if(G(W.value)||!E(W.value,c.value,v.value.fixedStart?0:1))return t("invalid-date",W.value);o.value=Py(fe(W.value),c,t,v)},Se=(W,re)=>{if(te(),v.value.autoRange)return pe(W,re);if(v.value.fixedStart||v.value.fixedEnd)return Te(W);o.value[0]?E(fe(W.value),c.value)&&!G(W.value)?Tt(fe(W.value),fe(o.value[0]))?(o.value.unshift(fe(W.value)),t("range-end",o.value[0])):(o.value[1]=fe(W.value),t("range-end",o.value[1])):(e.autoApply&&t("auto-apply-invalid",W.value),t("invalid-date",W.value)):(o.value[0]=fe(W.value),t("range-start",o.value[0]))},ot=(W=!0)=>e.enableSeconds?Array.isArray(u.seconds)?W?u.seconds[0]:u.seconds[1]:u.seconds:0,Ge=W=>{o.value[W]=ka(o.value[W],u.hours[W],u.minutes[W],ot(W!==1))},mn=()=>{var W,re;o.value[0]&&o.value[1]&&+((W=o.value)==null?void 0:W[0])>+((re=o.value)==null?void 0:re[1])&&(o.value.reverse(),t("range-start",o.value[0]),t("range-end",o.value[1]))},xn=()=>{o.value.length&&(o.value[0]&&!o.value[1]?Ge(0):(Ge(0),Ge(1),r()),mn(),c.value=o.value.slice(),zc(o.value,t,e.autoApply,e.modelAuto))},hn=(W,re=!1)=>{if(b(W.value)||!W.current&&e.hideOffsetDates)return t("invalid-date",W.value);if(s.value=JSON.parse(JSON.stringify(W)),!v.value.enabled)return de(W);hv(u.hours)&&hv(u.minutes)&&!S.value.enabled&&(Se(W,re),xn())},zt=(W,re)=>{var we;B(W,re.month,re.year,!0),p.value.count&&!p.value.solo&&ge(W),t("update-month-year",{instance:W,month:re.month,year:re.year}),n(p.value.solo?W:void 0);const Q=(we=e.flow)!=null&&we.length?e.flow[e.flowStep]:void 0;!re.fromNav&&(Q===tn.month||Q===tn.year)&&r()},Gt=(W,re)=>{Ty({value:W,modelValue:c,range:v.value.enabled,timezone:re?void 0:C.value.timezone}),q(),e.multiCalendars&&a.nextTick().then(()=>j(!0))},ne=()=>{const W=_p(fe(),C.value);!v.value.enabled&&!S.value.enabled?c.value=W:c.value&&Array.isArray(c.value)&&c.value[0]?S.value.enabled?c.value=[...c.value,W]:c.value=Tt(W,c.value[0])?[W,c.value[0]]:[c.value[0],W]:c.value=[W],q()},ke=()=>{if(Array.isArray(c.value))if(S.value.enabled){const W=Ie();c.value[c.value.length-1]=A(W)}else c.value=c.value.map((W,re)=>W&&A(W,re));else c.value=A(c.value);t("time-update")},Ie=()=>Array.isArray(c.value)&&c.value.length?c.value[c.value.length-1]:null;return{calendars:d,modelValue:c,month:Y,year:D,time:u,disabledTimesConfig:V,today:f,validateTime:z,getCalendarDays:Ne,getMarker:R,handleScroll:se,handleSwipe:me,handleArrow:ae,selectDate:hn,updateMonthYear:zt,presetDate:Gt,selectCurrentDate:ne,updateTime:(W,re=!0,we=!1)=>{x(W,re,we,ke)},assignMonthAndYear:Z}},Y7={key:0},G7=a.defineComponent({__name:"DatePicker",props:{...pr},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:n}){const r=n,o=e,{calendars:i,month:s,year:l,modelValue:c,time:d,disabledTimesConfig:u,today:f,validateTime:p,getCalendarDays:h,getMarker:v,handleArrow:y,handleScroll:C,handleSwipe:g,selectDate:S,updateMonthYear:_,presetDate:b,selectCurrentDate:T,updateTime:E,assignMonthAndYear:x}=q7(o,r,ie,Z),A=a.useSlots(),{setHoverDate:P,getDayClassData:M,clearHoverDate:z}=dP(c,o),{defaultedMultiCalendars:V}=kt(o),Y=a.ref([]),D=a.ref([]),H=a.ref(null),B=An(A,"calendar"),q=An(A,"monthYear"),J=An(A,"timePicker"),U=se=>{o.shadow||r("mount",se)};a.watch(i,()=>{o.shadow||setTimeout(()=>{r("recalculate-position")},0)},{deep:!0}),a.watch(V,(se,ae)=>{se.count-ae.count>0&&x()},{deep:!0});const j=a.computed(()=>se=>h(s.value(se),l.value(se)).map(ae=>({...ae,days:ae.days.map(me=>(me.marker=v(me),me.classData=M(me),me))})));function ie(se){var ae;se||se===0?(ae=D.value[se])==null||ae.triggerTransition(s.value(se),l.value(se)):D.value.forEach((me,R)=>me.triggerTransition(s.value(R),l.value(R)))}function Z(){r("update-flow-step")}const K=(se,ae=!1)=>{S(se,ae),o.spaceConfirm&&r("select-date")},I=(se,ae,me=0)=>{var R;(R=Y.value[me])==null||R.toggleMonthPicker(se,ae)},L=(se,ae,me=0)=>{var R;(R=Y.value[me])==null||R.toggleYearPicker(se,ae)},F=(se,ae,me)=>{var R;(R=H.value)==null||R.toggleTimePicker(se,ae,me)},N=(se,ae)=>{var me;if(!o.range){const R=c.value?c.value:f,oe=ae?new Date(ae):R,Pe=se?cr(oe,{weekStartsOn:1}):ey(oe,{weekStartsOn:1});S({value:Pe,current:Ke(oe)===s.value(0),text:"",classData:{}}),(me=document.getElementById(Sy(Pe)))==null||me.focus()}},ce=se=>{var ae;(ae=Y.value[0])==null||ae.handleMonthYearChange(se,!0)},ge=se=>{_(0,{month:s.value(0),year:l.value(0)+(se?1:-1),fromNav:!0})},Fe=(se,ae)=>{se===tn.time&&r(`time-picker-${ae?"open":"close"}`),r("overlay-toggle",{open:ae,overlay:se})},ee=se=>{r("overlay-toggle",{open:!1,overlay:se}),r("focus-menu")};return t({clearHoverDate:z,presetDate:b,selectCurrentDate:T,toggleMonthPicker:I,toggleYearPicker:L,toggleTimePicker:F,handleArrow:y,updateMonthYear:_,getSidebarProps:()=>({modelValue:c,month:s,year:l,time:d,updateTime:E,updateMonthYear:_,selectDate:S,presetDate:b}),changeMonth:ce,changeYear:ge,selectWeekDate:N}),(se,ae)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode($c,{"multi-calendars":a.unref(V).count,collapse:se.collapse,"is-mobile":se.isMobile},{default:a.withCtx(({instance:me,index:R})=>[se.disableMonthYearSelect?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock($7,a.mergeProps({key:0,ref:oe=>{oe&&(Y.value[R]=oe)},months:a.unref(py)(se.formatLocale,se.locale,se.monthNameFormat),years:a.unref(Cp)(se.yearRange,se.locale,se.reverseYears),month:a.unref(s)(me),year:a.unref(l)(me),instance:me},se.$props,{onMount:ae[0]||(ae[0]=oe=>U(a.unref(so).header)),onResetFlow:ae[1]||(ae[1]=oe=>se.$emit("reset-flow")),onUpdateMonthYear:oe=>a.unref(_)(me,oe),onOverlayClosed:ee,onOverlayOpened:ae[2]||(ae[2]=oe=>se.$emit("overlay-toggle",{open:!0,overlay:oe}))}),a.createSlots({_:2},[a.renderList(a.unref(q),(oe,Pe)=>({name:oe,fn:a.withCtx(ue=>[a.renderSlot(se.$slots,oe,a.normalizeProps(a.guardReactiveProps(ue)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),a.createVNode(W7,a.mergeProps({ref:oe=>{oe&&(D.value[R]=oe)},"mapped-dates":j.value(me),month:a.unref(s)(me),year:a.unref(l)(me),instance:me},se.$props,{onSelectDate:oe=>a.unref(S)(oe,me!==1),onHandleSpace:oe=>K(oe,me!==1),onSetHoverDate:ae[3]||(ae[3]=oe=>a.unref(P)(oe)),onHandleScroll:oe=>a.unref(C)(oe,me),onHandleSwipe:oe=>a.unref(g)(oe,me),onMount:ae[4]||(ae[4]=oe=>U(a.unref(so).calendar)),onResetFlow:ae[5]||(ae[5]=oe=>se.$emit("reset-flow")),onTooltipOpen:ae[6]||(ae[6]=oe=>se.$emit("tooltip-open",oe)),onTooltipClose:ae[7]||(ae[7]=oe=>se.$emit("tooltip-close",oe))}),a.createSlots({_:2},[a.renderList(a.unref(B),(oe,Pe)=>({name:oe,fn:a.withCtx(ue=>[a.renderSlot(se.$slots,oe,a.normalizeProps(a.guardReactiveProps({...ue})))])}))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars","collapse","is-mobile"]),se.enableTimePicker?(a.openBlock(),a.createElementBlock("div",Y7,[se.$slots["time-picker"]?a.renderSlot(se.$slots,"time-picker",a.normalizeProps(a.mergeProps({key:0},{time:a.unref(d),updateTime:a.unref(E)}))):(a.openBlock(),a.createBlock(Ay,a.mergeProps({key:1,ref_key:"timePickerRef",ref:H},se.$props,{hours:a.unref(d).hours,minutes:a.unref(d).minutes,seconds:a.unref(d).seconds,"internal-model-value":se.internalModelValue,"disabled-times-config":a.unref(u),"validate-time":a.unref(p),onMount:ae[8]||(ae[8]=me=>U(a.unref(so).timePicker)),"onUpdate:hours":ae[9]||(ae[9]=me=>a.unref(E)(me)),"onUpdate:minutes":ae[10]||(ae[10]=me=>a.unref(E)(me,!1)),"onUpdate:seconds":ae[11]||(ae[11]=me=>a.unref(E)(me,!1,!0)),onResetFlow:ae[12]||(ae[12]=me=>se.$emit("reset-flow")),onOverlayClosed:ae[13]||(ae[13]=me=>Fe(me,!1)),onOverlayOpened:ae[14]||(ae[14]=me=>Fe(me,!0)),onAmPmChange:ae[15]||(ae[15]=me=>se.$emit("am-pm-change",me))}),a.createSlots({_:2},[a.renderList(a.unref(J),(me,R)=>({name:me,fn:a.withCtx(oe=>[a.renderSlot(se.$slots,me,a.normalizeProps(a.guardReactiveProps(oe)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):a.createCommentVNode("",!0)],64))}}),X7=(e,t)=>{const n=a.ref(),{defaultedMultiCalendars:r,defaultedConfig:o,defaultedHighlight:i,defaultedRange:s,propDates:l,defaultedFilters:c,defaultedMultiDates:d}=kt(e),{modelValue:u,year:f,month:p,calendars:h}=Hs(e,t),{isDisabled:v}=$a(e),{selectYear:y,groupedYears:C,showYearPicker:g,isDisabled:S,toggleYearPicker:_,handleYearSelect:b,handleYear:T}=Iy({modelValue:u,multiCalendars:r,range:s,highlight:i,calendars:h,propDates:l,month:p,year:f,filters:c,props:e,emit:t}),E=(H,B)=>[H,B].map(q=>Or(q,"MMMM",{locale:e.formatLocale})).join("-"),x=a.computed(()=>H=>u.value?Array.isArray(u.value)?u.value.some(B=>iv(H,B)):iv(u.value,H):!1),A=H=>{if(s.value.enabled){if(Array.isArray(u.value)){const B=Je(H,u.value[0])||Je(H,u.value[1]);return Rc(u.value,n.value,H)&&!B}return!1}return!1},P=(H,B)=>H.quarter===ev(B)&&H.year===Ve(B),M=H=>typeof i.value=="function"?i.value({quarter:ev(H),year:Ve(H)}):!!i.value.quarters.find(B=>P(B,H)),z=a.computed(()=>H=>{const B=pt(new Date,{year:f.value(H)});return r8({start:_s(B),end:Z1(B)}).map(q=>{const J=to(q),U=tv(q),j=v(q),ie=A(J),Z=M(J);return{text:E(J,U),value:J,active:x.value(J),highlighted:Z,disabled:j,isBetween:ie}})}),V=H=>{Tp(H,u,d.value.limit),t("auto-apply",!0)},Y=H=>{u.value=Pp(u,H,t),zc(u.value,t,e.autoApply,e.modelAuto)},D=H=>{u.value=H,t("auto-apply")};return{defaultedConfig:o,defaultedMultiCalendars:r,groupedYears:C,year:f,isDisabled:S,quarters:z,showYearPicker:g,modelValue:u,setHoverDate:H=>{n.value=H},selectYear:y,selectQuarter:(H,B,q)=>{if(!q)return h.value[B].month=Ke(tv(H)),d.value.enabled?V(H):s.value.enabled?Y(H):D(H)},toggleYearPicker:_,handleYearSelect:b,handleYear:T}},K7={class:"dp--quarter-items"},J7=["data-test-id","disabled","onClick","onMouseover"],Q7=a.defineComponent({compatConfig:{MODE:3},__name:"QuarterPicker",props:{...pr},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end","overlay-toggle","update-month-year"],setup(e,{expose:t,emit:n}){const r=n,o=e,i=a.useSlots(),s=An(i,"yearMode"),{defaultedMultiCalendars:l,defaultedConfig:c,groupedYears:d,year:u,isDisabled:f,quarters:p,modelValue:h,showYearPicker:v,setHoverDate:y,selectQuarter:C,toggleYearPicker:g,handleYearSelect:S,handleYear:_}=X7(o,r);return t({getSidebarProps:()=>({modelValue:h,year:u,selectQuarter:C,handleYearSelect:S,handleYear:_})}),(b,T)=>(a.openBlock(),a.createBlock($c,{"multi-calendars":a.unref(l).count,collapse:b.collapse,stretch:"","is-mobile":b.isMobile},{default:a.withCtx(({instance:E})=>[a.createElementVNode("div",{class:"dp-quarter-picker-wrap",style:a.normalizeStyle({minHeight:`${a.unref(c).modeHeight}px`})},[b.$slots["top-extra"]?a.renderSlot(b.$slots,"top-extra",{key:0,value:b.internalModelValue}):a.createCommentVNode("",!0),a.createElementVNode("div",null,[a.createVNode(xy,a.mergeProps(b.$props,{items:a.unref(d)(E),instance:E,"show-year-picker":a.unref(v)[E],year:a.unref(u)(E),"is-disabled":x=>a.unref(f)(E,x),onHandleYear:x=>a.unref(_)(E,x),onYearSelect:x=>a.unref(S)(x,E),onToggleYearPicker:x=>a.unref(g)(E,x==null?void 0:x.flow,x==null?void 0:x.show)}),a.createSlots({_:2},[a.renderList(a.unref(s),(x,A)=>({name:x,fn:a.withCtx(P=>[a.renderSlot(b.$slots,x,a.normalizeProps(a.guardReactiveProps(P)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),a.createElementVNode("div",K7,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(p)(E),(x,A)=>(a.openBlock(),a.createElementBlock("div",{key:A},[a.createElementVNode("button",{type:"button",class:a.normalizeClass(["dp--qr-btn",{"dp--qr-btn-active":x.active,"dp--qr-btn-between":x.isBetween,"dp--qr-btn-disabled":x.disabled,"dp--highlighted":x.highlighted}]),"data-test-id":x.value,disabled:x.disabled,onClick:P=>a.unref(C)(x.value,E,x.disabled),onMouseover:P=>a.unref(y)(x.value)},[b.$slots.quarter?a.renderSlot(b.$slots,"quarter",{key:0,value:x.value,text:x.text}):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(x.text),1)],64))],42,J7)]))),128))])],4)]),_:3},8,["multi-calendars","collapse","is-mobile"]))}}),Oy=(e,t)=>{const n=a.ref(0);a.onMounted(()=>{r(),window.addEventListener("resize",r,{passive:!0})}),a.onUnmounted(()=>{window.removeEventListener("resize",r)});const r=()=>{n.value=window.document.documentElement.clientWidth};return{isMobile:a.computed(()=>n.value<=e.value.mobileBreakpoint&&!t?!0:void 0)}},Z7=["id","tabindex","role","aria-label"],eP={key:0,class:"dp--menu-load-container"},tP={key:1,class:"dp--menu-header"},nP=["data-dp-mobile"],rP={key:0,class:"dp__sidebar_left"},aP=["data-dp-mobile"],oP=["data-test-id","data-dp-mobile","onClick","onKeydown"],iP={key:2,class:"dp__sidebar_right"},sP={key:3,class:"dp__action_extra"},vv=a.defineComponent({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...Lc,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},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","auto-apply-invalid","date-update","invalid-date","overlay-toggle","menu-blur"],setup(e,{expose:t,emit:n}){const r=n,o=e,i=a.ref(null),s=a.computed(()=>{const{openOnTop:G,...te}=o;return{...te,isMobile:y.value,flowStep:z.value,menuWrapRef:i.value}}),{setMenuFocused:l,setShiftKey:c,control:d}=Ey(),u=a.useSlots(),{defaultedTextInput:f,defaultedInline:p,defaultedConfig:h,defaultedUI:v}=kt(o),{isMobile:y}=Oy(h,o.shadow),C=a.ref(null),g=a.ref(0),S=a.ref(null),_=a.ref(!1),b=a.ref(null),T=a.ref(!1);a.onMounted(()=>{if(!o.shadow){_.value=!0,E(),window.addEventListener("resize",E);const G=Ft(i);if(G&&!f.value.enabled&&!p.value.enabled&&(l(!0),J()),G){const te=pe=>{T.value=!0,h.value.allowPreventDefault&&pe.preventDefault(),wa(pe,h.value,!0)};G.addEventListener("pointerdown",te),G.addEventListener("mousedown",te)}}document.addEventListener("mousedown",de)}),a.onUnmounted(()=>{window.removeEventListener("resize",E),document.addEventListener("mousedown",de)});const E=()=>{const G=Ft(S);G&&(g.value=G.getBoundingClientRect().width)},{arrowRight:x,arrowLeft:A,arrowDown:P,arrowUp:M}=La(),{flowStep:z,updateFlowStep:V,childMount:Y,resetFlow:D,handleFlow:H}=fP(o,r,b),B=a.computed(()=>o.monthPicker?v7:o.yearPicker?y7:o.timePicker?O7:o.quarterPicker?Q7:G7),q=a.computed(()=>{var G;if(h.value.arrowLeft)return h.value.arrowLeft;const te=(G=i.value)==null?void 0:G.getBoundingClientRect(),pe=o.getInputRect();return(pe==null?void 0:pe.width)<(g==null?void 0:g.value)&&(pe==null?void 0:pe.left)<=((te==null?void 0:te.left)??0)?`${(pe==null?void 0:pe.width)/2}px`:(pe==null?void 0:pe.right)>=((te==null?void 0:te.right)??0)&&(pe==null?void 0:pe.width)<(g==null?void 0:g.value)?`${(g==null?void 0:g.value)-(pe==null?void 0:pe.width)/2}px`:"50%"}),J=()=>{const G=Ft(i);G&&G.focus({preventScroll:!0})},U=a.computed(()=>{var G;return((G=b.value)==null?void 0:G.getSidebarProps())||{}}),j=()=>{o.openOnTop&&r("recalculate-position")},ie=An(u,"action"),Z=a.computed(()=>o.monthPicker||o.yearPicker?An(u,"monthYear"):o.timePicker?An(u,"timePicker"):An(u,"shared")),K=a.computed(()=>o.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),I=a.computed(()=>({dp__menu_disabled:o.disabled,dp__menu_readonly:o.readonly,"dp-menu-loading":o.loading})),L=a.computed(()=>({dp__menu:!0,dp__menu_index:!p.value.enabled,dp__relative:p.value.enabled,...v.value.menu??{}})),F=G=>{wa(G,h.value,!0)},N=()=>{o.escClose&&r("close-picker")},ce=G=>{if(o.arrowNavigation){if(G===on.up)return M();if(G===on.down)return P();if(G===on.left)return A();if(G===on.right)return x()}else G===on.left||G===on.up?ae("handleArrow",on.left,0,G===on.up):ae("handleArrow",on.right,0,G===on.down)},ge=G=>{c(G.shiftKey),!o.disableMonthYearSelect&&G.code===bt.tab&&G.target.classList.contains("dp__menu")&&d.value.shiftKeyInMenu&&(G.preventDefault(),wa(G,h.value,!0),r("close-picker"))},Fe=()=>{J(),r("time-picker-close")},ee=G=>{var te,pe,xe;(te=b.value)==null||te.toggleTimePicker(!1,!1),(pe=b.value)==null||pe.toggleMonthPicker(!1,!1,G),(xe=b.value)==null||xe.toggleYearPicker(!1,!1,G)},se=(G,te=0)=>{var pe,xe,Te;return G==="month"?(pe=b.value)==null?void 0:pe.toggleMonthPicker(!1,!0,te):G==="year"?(xe=b.value)==null?void 0:xe.toggleYearPicker(!1,!0,te):G==="time"?(Te=b.value)==null?void 0:Te.toggleTimePicker(!0,!1):ee(te)},ae=(G,...te)=>{var pe,xe;(pe=b.value)!=null&&pe[G]&&((xe=b.value)==null||xe[G](...te))},me=()=>{ae("selectCurrentDate")},R=(G,te)=>{ae("presetDate",G,te)},oe=()=>{ae("clearHoverDate")},Pe=(G,te)=>{ae("updateMonthYear",G,te)},ue=(G,te)=>{G.preventDefault(),ce(te)},Ne=G=>{var te,pe,xe;if(ge(G),G.key===bt.home||G.key===bt.end)return ae("selectWeekDate",G.key===bt.home,G.target.getAttribute("id"));switch((G.key===bt.pageUp||G.key===bt.pageDown)&&(G.shiftKey?(ae("changeYear",G.key===bt.pageUp),(te=Yd(i.value,"overlay-year"))==null||te.focus()):(ae("changeMonth",G.key===bt.pageUp),(pe=Yd(i.value,G.key===bt.pageUp?"action-prev":"action-next"))==null||pe.focus()),G.target.getAttribute("id")&&((xe=i.value)==null||xe.focus({preventScroll:!0}))),G.key){case bt.esc:return N();case bt.arrowLeft:return ue(G,on.left);case bt.arrowRight:return ue(G,on.right);case bt.arrowUp:return ue(G,on.up);case bt.arrowDown:return ue(G,on.down);default:return}},de=G=>{var te;p.value.enabled&&!p.value.input&&!((te=i.value)!=null&&te.contains(G.target))&&T.value&&(T.value=!1,r("menu-blur"))};return t({updateMonthYear:Pe,switchView:se,handleFlow:H}),(G,te)=>{var pe,xe,Te;return a.openBlock(),a.createElementBlock("div",{id:G.uid?`dp-menu-${G.uid}`:void 0,ref_key:"dpMenuRef",ref:i,tabindex:a.unref(p).enabled?void 0:"0",role:a.unref(p).enabled?void 0:"dialog","aria-label":(pe=G.ariaLabels)==null?void 0:pe.menu,class:a.normalizeClass(L.value),style:a.normalizeStyle({"--dp-arrow-left":q.value}),onMouseleave:oe,onClick:F,onKeydown:Ne},[(G.disabled||G.readonly)&&a.unref(p).enabled||G.loading?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(I.value)},[G.loading?(a.openBlock(),a.createElementBlock("div",eP,te[19]||(te[19]=[a.createElementVNode("span",{class:"dp--menu-loader"},null,-1)]))):a.createCommentVNode("",!0)],2)):a.createCommentVNode("",!0),G.$slots["menu-header"]?(a.openBlock(),a.createElementBlock("div",tP,[a.renderSlot(G.$slots,"menu-header")])):a.createCommentVNode("",!0),!a.unref(p).enabled&&!G.teleportCenter?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(K.value)},null,2)):a.createCommentVNode("",!0),a.createElementVNode("div",{ref_key:"innerMenuRef",ref:S,class:a.normalizeClass({dp__menu_content_wrapper:((xe=G.presetDates)==null?void 0:xe.length)||!!G.$slots["left-sidebar"]||!!G.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":e.collapse&&(((Te=G.presetDates)==null?void 0:Te.length)||!!G.$slots["left-sidebar"]||!!G.$slots["right-sidebar"])}),"data-dp-mobile":a.unref(y),style:a.normalizeStyle({"--dp-menu-width":`${g.value}px`})},[G.$slots["left-sidebar"]?(a.openBlock(),a.createElementBlock("div",rP,[a.renderSlot(G.$slots,"left-sidebar",a.normalizeProps(a.guardReactiveProps(U.value)))])):a.createCommentVNode("",!0),G.presetDates.length?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass({"dp--preset-dates-collapsed":e.collapse,"dp--preset-dates":!0}),"data-dp-mobile":a.unref(y)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(G.presetDates,(Se,ot)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:ot},[Se.slot?a.renderSlot(G.$slots,Se.slot,{key:0,presetDate:R,label:Se.label,value:Se.value}):(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",style:a.normalizeStyle(Se.style||{}),class:a.normalizeClass(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":e.collapse}]),"data-test-id":Se.testId??void 0,"data-dp-mobile":a.unref(y),onClick:a.withModifiers(Ge=>R(Se.value,Se.noTz),["prevent"]),onKeydown:Ge=>a.unref(dn)(Ge,()=>R(Se.value,Se.noTz),!0)},a.toDisplayString(Se.label),47,oP))],64))),128))],10,aP)):a.createCommentVNode("",!0),a.createElementVNode("div",{ref_key:"calendarWrapperRef",ref:C,class:"dp__instance_calendar",role:"document"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(B.value),a.mergeProps({ref_key:"dynCmpRef",ref:b},s.value,{"flow-step":a.unref(z),onMount:a.unref(Y),onUpdateFlowStep:a.unref(V),onResetFlow:a.unref(D),onFocusMenu:J,onSelectDate:te[0]||(te[0]=Se=>G.$emit("select-date")),onDateUpdate:te[1]||(te[1]=Se=>G.$emit("date-update",Se)),onTooltipOpen:te[2]||(te[2]=Se=>G.$emit("tooltip-open",Se)),onTooltipClose:te[3]||(te[3]=Se=>G.$emit("tooltip-close",Se)),onAutoApply:te[4]||(te[4]=Se=>G.$emit("auto-apply",Se)),onRangeStart:te[5]||(te[5]=Se=>G.$emit("range-start",Se)),onRangeEnd:te[6]||(te[6]=Se=>G.$emit("range-end",Se)),onInvalidFixedRange:te[7]||(te[7]=Se=>G.$emit("invalid-fixed-range",Se)),onTimeUpdate:te[8]||(te[8]=Se=>G.$emit("time-update")),onAmPmChange:te[9]||(te[9]=Se=>G.$emit("am-pm-change",Se)),onTimePickerOpen:te[10]||(te[10]=Se=>G.$emit("time-picker-open",Se)),onTimePickerClose:Fe,onRecalculatePosition:j,onUpdateMonthYear:te[11]||(te[11]=Se=>G.$emit("update-month-year",Se)),onAutoApplyInvalid:te[12]||(te[12]=Se=>G.$emit("auto-apply-invalid",Se)),onInvalidDate:te[13]||(te[13]=Se=>G.$emit("invalid-date",Se)),onOverlayToggle:te[14]||(te[14]=Se=>G.$emit("overlay-toggle",Se)),"onUpdate:internalModelValue":te[15]||(te[15]=Se=>G.$emit("update:internal-model-value",Se))}),a.createSlots({_:2},[a.renderList(Z.value,(Se,ot)=>({name:Se,fn:a.withCtx(Ge=>[a.renderSlot(G.$slots,Se,a.normalizeProps(a.guardReactiveProps({...Ge})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),G.$slots["right-sidebar"]?(a.openBlock(),a.createElementBlock("div",iP,[a.renderSlot(G.$slots,"right-sidebar",a.normalizeProps(a.guardReactiveProps(U.value)))])):a.createCommentVNode("",!0),G.$slots["action-extra"]?(a.openBlock(),a.createElementBlock("div",sP,[G.$slots["action-extra"]?a.renderSlot(G.$slots,"action-extra",{key:0,selectCurrentDate:me}):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)],14,nP),!G.autoApply||a.unref(h).keepActionRow?(a.openBlock(),a.createBlock(s7,a.mergeProps({key:3,"menu-mount":_.value},s.value,{"calendar-width":g.value,onClosePicker:te[16]||(te[16]=Se=>G.$emit("close-picker")),onSelectDate:te[17]||(te[17]=Se=>G.$emit("select-date")),onInvalidSelect:te[18]||(te[18]=Se=>G.$emit("invalid-select")),onSelectNow:me}),a.createSlots({_:2},[a.renderList(a.unref(ie),(Se,ot)=>({name:Se,fn:a.withCtx(Ge=>[a.renderSlot(G.$slots,Se,a.normalizeProps(a.guardReactiveProps({...Ge})))])}))]),1040,["menu-mount","calendar-width"])):a.createCommentVNode("",!0)],46,Z7)}}});var $o=(e=>(e.center="center",e.left="left",e.right="right",e))($o||{});const lP=({menuRef:e,menuRefInner:t,inputRef:n,pickerWrapperRef:r,inline:o,emit:i,props:s,slots:l})=>{const{defaultedConfig:c}=kt(s),d=a.ref({}),u=a.ref(!1),f=a.ref({top:"0",left:"0"}),p=a.ref(!1),h=a.toRef(s,"teleportCenter");a.watch(h,()=>{f.value=JSON.parse(JSON.stringify({})),T()});const v=B=>{if(s.teleport){const q=B.getBoundingClientRect();return{left:q.left+window.scrollX,top:q.top+window.scrollY}}return{top:0,left:0}},y=(B,q)=>{f.value.left=`${B+q-d.value.width}px`},C=B=>{f.value.left=`${B}px`},g=(B,q)=>{s.position===$o.left&&C(B),s.position===$o.right&&y(B,q),s.position===$o.center&&(f.value.left=`${B+q/2-d.value.width/2}px`)},S=B=>{const{width:q,height:J}=B.getBoundingClientRect(),{top:U,left:j}=v(B);return{top:+U,left:+j,width:q,height:J}},_=()=>{f.value.left="50%",f.value.top="50%",f.value.transform="translate(-50%, -50%)",f.value.position="fixed",delete f.value.opacity},b=()=>{const B=Ft(n);f.value=s.altPosition(B)},T=(B=!0)=>{var q;if(!o.value.enabled){if(h.value)return _();if(s.altPosition!==null)return b();if(B){const J=s.teleport?(q=t.value)==null?void 0:q.$el:e.value;J&&(d.value=J.getBoundingClientRect()),i("recalculate-position")}return V()}},E=({inputEl:B,left:q,width:J})=>{window.screen.width>768&&!u.value&&g(q,J),P(B)},x=B=>{const{top:q,left:J,height:U,width:j}=S(B);f.value.top=`${U+q+ +s.offset}px`,p.value=!1,u.value||(f.value.left=`${J+j/2-d.value.width/2}px`),E({inputEl:B,left:J,width:j})},A=B=>{const{top:q,left:J,width:U}=S(B);f.value.top=`${q-+s.offset-d.value.height}px`,p.value=!0,E({inputEl:B,left:J,width:U})},P=B=>{if(s.autoPosition){const{left:q,width:J}=S(B),{left:U,right:j}=d.value;if(!u.value){if(Math.abs(U)!==Math.abs(j)){if(U<=0)return u.value=!0,C(q);if(j>=document.documentElement.clientWidth)return u.value=!0,y(q,J)}return g(q,J)}}},M=()=>{const B=Ft(n);if(B){if(s.autoPosition===Kn.top)return Kn.top;if(s.autoPosition===Kn.bottom)return Kn.bottom;const{height:q}=d.value,{top:J,height:U}=B.getBoundingClientRect(),j=window.innerHeight-J-U,ie=J;return q<=j?Kn.bottom:q>j&&q<=ie?Kn.top:j>=ie?Kn.bottom:Kn.top}return Kn.bottom},z=B=>M()===Kn.bottom?x(B):A(B),V=()=>{const B=Ft(n);if(B)return s.autoPosition?z(B):x(B)},Y=function(B){if(B){const q=B.scrollHeight>B.clientHeight,J=window.getComputedStyle(B).overflowY.indexOf("hidden")!==-1;return q&&!J}return!0},D=function(B){return!B||B===document.body||B.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:Y(B)?B:D(B.assignedSlot&&c.value.shadowDom?B.assignedSlot.parentNode:B.parentNode)},H=B=>{if(B)switch(s.position){case $o.left:return{left:0,transform:"translateX(0)"};case $o.right:return{left:`${B.width}px`,transform:"translateX(-100%)"};default:return{left:`${B.width/2}px`,transform:"translateX(-50%)"}}return{}};return{openOnTop:p,menuStyle:f,xCorrect:u,setMenuPosition:T,getScrollableParent:D,shadowRender:(B,q)=>{var J,U,j;const ie=document.createElement("div"),Z=(J=Ft(n))==null?void 0:J.getBoundingClientRect();ie.setAttribute("id","dp--temp-container");const K=(U=r.value)!=null&&U.clientWidth?r.value:document.body;K.append(ie);const I=H(Z),L=c.value.shadowDom?Object.keys(l).filter(N=>["right-sidebar","left-sidebar","top-extra","action-extra"].includes(N)):Object.keys(l),F=a.h(B,{...q,shadow:!0,style:{opacity:0,position:"absolute",...I}},Object.fromEntries(L.map(N=>[N,l[N]])));a.render(F,ie),d.value=(j=F.el)==null?void 0:j.getBoundingClientRect(),a.render(null,ie),K.removeChild(ie)}}},pa=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"hours-overlay-header",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-header",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-header",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]},{name:"top-extra",use:["shared","month-year"]},{name:"tp-inline-arrow-up",use:["shared","time"]},{name:"tp-inline-arrow-down",use:["shared","time"]},{name:"menu-header",use:["menu"]}],cP=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],uP={all:()=>pa,monthYear:()=>pa.filter(e=>e.use.includes("month-year")),input:()=>cP,timePicker:()=>pa.filter(e=>e.use.includes("time")),action:()=>pa.filter(e=>e.use.includes("action")),calendar:()=>pa.filter(e=>e.use.includes("calendar")),menu:()=>pa.filter(e=>e.use.includes("menu")),shared:()=>pa.filter(e=>e.use.includes("shared")),yearMode:()=>pa.filter(e=>e.use.includes("year-mode"))},An=(e,t,n)=>{const r=[];return uP[t]().forEach(o=>{e[o.name]&&r.push(o.name)}),n!=null&&n.length&&n.forEach(o=>{o.slot&&r.push(o.slot)}),r},js=e=>{const t=a.computed(()=>r=>e.value?r?e.value.open:e.value.close:""),n=a.computed(()=>r=>e.value?r?e.value.menuAppearTop:e.value.menuAppearBottom:"");return{transitionName:t,showTransition:!!e.value,menuTransition:n}},Hs=(e,t,n)=>{const{defaultedRange:r,defaultedTz:o}=kt(e),i=fe(Cn(fe(),o.value.timezone)),s=a.ref([{month:Ke(i),year:Ve(i)}]),l=p=>{const h={hours:ea(i),minutes:Pa(i),seconds:0};return r.value.enabled?[h[p],h[p]]:h[p]},c=a.reactive({hours:l("hours"),minutes:l("minutes"),seconds:l("seconds")});a.watch(r,(p,h)=>{p.enabled!==h.enabled&&(c.hours=l("hours"),c.minutes=l("minutes"),c.seconds=l("seconds"))},{deep:!0});const d=a.computed({get:()=>e.internalModelValue,set:p=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",p)}}),u=a.computed(()=>p=>s.value[p]?s.value[p].month:0),f=a.computed(()=>p=>s.value[p]?s.value[p].year:0);return a.watch(d,(p,h)=>{n&&JSON.stringify(p??{})!==JSON.stringify(h??{})&&n()},{deep:!0}),{calendars:s,time:c,modelValue:d,month:u,year:f,today:i}},dP=(e,t)=>{const{defaultedMultiCalendars:n,defaultedMultiDates:r,defaultedUI:o,defaultedHighlight:i,defaultedTz:s,propDates:l,defaultedRange:c}=kt(t),{isDisabled:d}=$a(t),u=a.ref(null),f=a.ref(Cn(new Date,s.value.timezone)),p=I=>{!I.current&&t.hideOffsetDates||(u.value=I.value)},h=()=>{u.value=null},v=I=>Array.isArray(e.value)&&c.value.enabled&&e.value[0]&&u.value?I?Ot(u.value,e.value[0]):Tt(u.value,e.value[0]):!0,y=(I,L)=>{const F=()=>e.value?L?e.value[0]||null:e.value[1]:null,N=e.value&&Array.isArray(e.value)?F():null;return Je(fe(I.value),N)},C=I=>{const L=Array.isArray(e.value)?e.value[0]:null;return I?!Tt(u.value??null,L):!0},g=(I,L=!0)=>(c.value.enabled||t.weekPicker)&&Array.isArray(e.value)&&e.value.length===2?t.hideOffsetDates&&!I.current?!1:Je(fe(I.value),e.value[L?0:1]):c.value.enabled?y(I,L)&&C(L)||Je(I.value,Array.isArray(e.value)?e.value[0]:null)&&v(L):!1,S=(I,L)=>{if(Array.isArray(e.value)&&e.value[0]&&e.value.length===1){const F=Je(I.value,u.value);return L?Ot(e.value[0],I.value)&&F:Tt(e.value[0],I.value)&&F}return!1},_=I=>!e.value||t.hideOffsetDates&&!I.current?!1:c.value.enabled?t.modelAuto&&Array.isArray(e.value)?Je(I.value,e.value[0]?e.value[0]:f.value):!1:r.value.enabled&&Array.isArray(e.value)?e.value.some(L=>Je(L,I.value)):Je(I.value,e.value?e.value:f.value),b=I=>{if(c.value.autoRange||t.weekPicker){if(u.value){if(t.hideOffsetDates&&!I.current)return!1;const L=nr(u.value,+c.value.autoRange),F=Wr(fe(u.value),t.weekStart);return t.weekPicker?Je(F[1],fe(I.value)):Je(L,fe(I.value))}return!1}return!1},T=I=>{if(c.value.autoRange||t.weekPicker){if(u.value){const L=nr(u.value,+c.value.autoRange);if(t.hideOffsetDates&&!I.current)return!1;const F=Wr(fe(u.value),t.weekStart);return t.weekPicker?Ot(I.value,F[0])&&Tt(I.value,F[1]):Ot(I.value,u.value)&&Tt(I.value,L)}return!1}return!1},E=I=>{if(c.value.autoRange||t.weekPicker){if(u.value){if(t.hideOffsetDates&&!I.current)return!1;const L=Wr(fe(u.value),t.weekStart);return t.weekPicker?Je(L[0],I.value):Je(u.value,I.value)}return!1}return!1},x=I=>Rc(e.value,u.value,I.value),A=()=>t.modelAuto&&Array.isArray(t.internalModelValue)?!!t.internalModelValue[0]:!1,P=()=>t.modelAuto?my(t.internalModelValue):!0,M=I=>{if(t.weekPicker)return!1;const L=c.value.enabled?!g(I)&&!g(I,!1):!0;return!d(I.value)&&!_(I)&&!(!I.current&&t.hideOffsetDates)&&L},z=I=>c.value.enabled?t.modelAuto?A()&&_(I):!1:_(I),V=I=>i.value?MT(I.value,l.value.highlight):!1,Y=I=>{const L=d(I.value);return L&&(typeof i.value=="function"?!i.value(I.value,L):!i.value.options.highlightDisabled)},D=I=>{var L;return typeof i.value=="function"?i.value(I.value):(L=i.value.weekdays)==null?void 0:L.includes(I.value.getDay())},H=I=>(c.value.enabled||t.weekPicker)&&(!(n.value.count>0)||I.current)&&P()&&!(!I.current&&t.hideOffsetDates)&&!_(I)?x(I):!1,B=I=>{const{isRangeStart:L,isRangeEnd:F}=j(I),N=c.value.enabled?L||F:!1;return{dp__cell_offset:!I.current,dp__pointer:!t.disabled&&!(!I.current&&t.hideOffsetDates)&&!d(I.value),dp__cell_disabled:d(I.value),dp__cell_highlight:!Y(I)&&(V(I)||D(I))&&!z(I)&&!N&&!E(I)&&!(H(I)&&t.weekPicker)&&!F,dp__cell_highlight_active:!Y(I)&&(V(I)||D(I))&&z(I),dp__today:!t.noToday&&Je(I.value,f.value)&&I.current,"dp--past":Tt(I.value,f.value),"dp--future":Ot(I.value,f.value)}},q=I=>({dp__active_date:z(I),dp__date_hover:M(I)}),J=I=>{if(e.value&&!Array.isArray(e.value)){const L=Wr(e.value,t.weekStart);return{...Z(I),dp__range_start:Je(L[0],I.value),dp__range_end:Je(L[1],I.value),dp__range_between_week:Ot(I.value,L[0])&&Tt(I.value,L[1])}}return{...Z(I)}},U=I=>{if(e.value&&Array.isArray(e.value)){const L=Wr(e.value[0],t.weekStart),F=e.value[1]?Wr(e.value[1],t.weekStart):[];return{...Z(I),dp__range_start:Je(L[0],I.value)||Je(F[0],I.value),dp__range_end:Je(L[1],I.value)||Je(F[1],I.value),dp__range_between_week:Ot(I.value,L[0])&&Tt(I.value,L[1])||Ot(I.value,F[0])&&Tt(I.value,F[1]),dp__range_between:Ot(I.value,L[1])&&Tt(I.value,F[0])}}return{...Z(I)}},j=I=>{const L=n.value.count>0?I.current&&g(I)&&P():g(I)&&P(),F=n.value.count>0?I.current&&g(I,!1)&&P():g(I,!1)&&P();return{isRangeStart:L,isRangeEnd:F}},ie=I=>{const{isRangeStart:L,isRangeEnd:F}=j(I);return{dp__range_start:L,dp__range_end:F,dp__range_between:H(I),dp__date_hover:Je(I.value,u.value)&&!L&&!F&&!t.weekPicker,dp__date_hover_start:S(I,!0),dp__date_hover_end:S(I,!1)}},Z=I=>({...ie(I),dp__cell_auto_range:T(I),dp__cell_auto_range_start:E(I),dp__cell_auto_range_end:b(I)}),K=I=>c.value.enabled?c.value.autoRange?Z(I):t.modelAuto?{...q(I),...ie(I)}:t.weekPicker?U(I):ie(I):t.weekPicker?J(I):q(I);return{setHoverDate:p,clearHoverDate:h,getDayClassData:I=>t.hideOffsetDates&&!I.current?{}:{...B(I),...K(I),[t.dayClass?t.dayClass(I.value,t.internalModelValue):""]:!0,...o.value.calendarCell??{}}}},$a=e=>{const{defaultedFilters:t,defaultedRange:n,propDates:r,defaultedMultiDates:o}=kt(e),i=D=>r.value.disabledDates?typeof r.value.disabledDates=="function"?r.value.disabledDates(fe(D)):!!nc(D,r.value.disabledDates):!1,s=D=>r.value.maxDate?e.yearPicker?Ve(D)>Ve(r.value.maxDate):Ot(D,r.value.maxDate):!1,l=D=>r.value.minDate?e.yearPicker?Ve(D)<Ve(r.value.minDate):Tt(D,r.value.minDate):!1,c=D=>{const H=s(D),B=l(D),q=i(D),J=t.value.months.map(K=>+K).includes(Ke(D)),U=e.disabledWeekDays.length?e.disabledWeekDays.some(K=>+K===y8(D)):!1,j=h(D),ie=Ve(D),Z=ie<+e.yearRange[0]||ie>+e.yearRange[1];return!(H||B||q||J||Z||U||j)},d=(D,H)=>Tt(...ba(r.value.minDate,D,H))||Je(...ba(r.value.minDate,D,H)),u=(D,H)=>Ot(...ba(r.value.maxDate,D,H))||Je(...ba(r.value.maxDate,D,H)),f=(D,H,B)=>{let q=!1;return r.value.maxDate&&B&&u(D,H)&&(q=!0),r.value.minDate&&!B&&d(D,H)&&(q=!0),q},p=(D,H,B,q)=>{let J=!1;return q&&(r.value.minDate||r.value.maxDate)?r.value.minDate&&r.value.maxDate?J=f(D,H,B):(r.value.minDate&&d(D,H)||r.value.maxDate&&u(D,H))&&(J=!0):J=!0,J},h=D=>Array.isArray(r.value.allowedDates)&&!r.value.allowedDates.length?!0:r.value.allowedDates?!nc(D,r.value.allowedDates):!1,v=D=>!c(D),y=D=>n.value.noDisabledRange?!Q1({start:D[0],end:D[1]}).some(H=>v(H)):!0,C=D=>{if(D){const H=Ve(D);return H>=+e.yearRange[0]&&H<=e.yearRange[1]}return!0},g=(D,H)=>!!(Array.isArray(D)&&D[H]&&(n.value.maxRange||n.value.minRange)&&C(D[H])),S=(D,H,B=0)=>{if(g(H,B)&&C(D)){const q=X1(D,H[B]),J=by(H[B],D),U=J.length===1?0:J.filter(ie=>v(ie)).length,j=Math.abs(q)-(n.value.minMaxRawRange?0:U);if(n.value.minRange&&n.value.maxRange)return j>=+n.value.minRange&&j<=+n.value.maxRange;if(n.value.minRange)return j>=+n.value.minRange;if(n.value.maxRange)return j<=+n.value.maxRange}return!0},_=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,b=D=>Array.isArray(D)?[D[0]?ju(D[0]):null,D[1]?ju(D[1]):null]:ju(D),T=(D,H,B)=>D.find(q=>+q.hours===ea(H)&&q.minutes==="*"?!0:+q.minutes===Pa(H)&&+q.hours===ea(H))&&B,E=(D,H,B)=>{const[q,J]=D,[U,j]=H;return!T(q,U,B)&&!T(J,j,B)&&B},x=(D,H)=>{const B=Array.isArray(H)?H:[H];return Array.isArray(e.disabledTimes)?Array.isArray(e.disabledTimes[0])?E(e.disabledTimes,B,D):!B.some(q=>T(e.disabledTimes,q,D)):D},A=(D,H)=>{const B=Array.isArray(H)?[lo(H[0]),H[1]?lo(H[1]):void 0]:lo(H),q=!e.disabledTimes(B);return D&&q},P=(D,H)=>e.disabledTimes?Array.isArray(e.disabledTimes)?x(H,D):A(H,D):H,M=D=>{let H=!0;if(!D||_())return!0;const B=!r.value.minDate&&!r.value.maxDate?b(D):D;return(e.maxTime||r.value.maxDate)&&(H=fv(e.maxTime,r.value.maxDate,"max",Ht(B),H)),(e.minTime||r.value.minDate)&&(H=fv(e.minTime,r.value.minDate,"min",Ht(B),H)),P(D,H)},z=D=>{if(!e.monthPicker)return!0;let H=!0;const B=fe(rr(D));if(r.value.minDate&&r.value.maxDate){const q=fe(rr(r.value.minDate)),J=fe(rr(r.value.maxDate));return Ot(B,q)&&Tt(B,J)||Je(B,q)||Je(B,J)}if(r.value.minDate){const q=fe(rr(r.value.minDate));H=Ot(B,q)||Je(B,q)}if(r.value.maxDate){const q=fe(rr(r.value.maxDate));H=Tt(B,q)||Je(B,q)}return H},V=a.computed(()=>D=>!e.enableTimePicker||e.ignoreTimeValidation?!0:M(D)),Y=a.computed(()=>D=>e.monthPicker?Array.isArray(D)&&(n.value.enabled||o.value.enabled)?!D.filter(H=>!z(H)).length:z(D):!0);return{isDisabled:v,validateDate:c,validateMonthYearInRange:p,isDateRangeAllowed:y,checkMinMaxRange:S,isValidTime:M,isTimeValid:V,isMonthValid:Y}},Vc=()=>{const e=a.computed(()=>(r,o)=>r==null?void 0:r.includes(o)),t=a.computed(()=>(r,o)=>r.count?r.solo?!0:o===0:!0),n=a.computed(()=>(r,o)=>r.count?r.solo?!0:o===r.count-1:!0);return{hideNavigationButtons:e,showLeftIcon:t,showRightIcon:n}},fP=(e,t,n)=>{const r=a.ref(0),o=a.reactive({[so.timePicker]:!e.enableTimePicker||e.timePicker||e.monthPicker,[so.calendar]:!1,[so.header]:!1}),i=a.computed(()=>e.monthPicker||e.timePicker),s=f=>{var p;if((p=e.flow)!=null&&p.length){if(!f&&i.value)return u();o[f]=!0,Object.keys(o).filter(h=>!o[h]).length||u()}},l=()=>{var f,p;(f=e.flow)!=null&&f.length&&r.value!==-1&&(r.value+=1,t("flow-step",r.value),u()),((p=e.flow)==null?void 0:p.length)===r.value&&a.nextTick().then(()=>c())},c=()=>{r.value=-1},d=(f,p,...h)=>{var v,y;e.flow[r.value]===f&&n.value&&((y=(v=n.value)[p])==null||y.call(v,...h))},u=(f=0)=>{f&&(r.value+=f),d(tn.month,"toggleMonthPicker",!0),d(tn.year,"toggleYearPicker",!0),d(tn.calendar,"toggleTimePicker",!1,!0),d(tn.time,"toggleTimePicker",!0,!0);const p=e.flow[r.value];(p===tn.hours||p===tn.minutes||p===tn.seconds)&&d(p,"toggleTimePicker",!0,!0,p)};return{childMount:s,updateFlowStep:l,resetFlow:c,handleFlow:u,flowStep:r}},pP={key:1,class:"dp__input_wrap"},mP=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],hP={key:2,class:"dp--clear-btn"},vP=["aria-label"],gP=a.defineComponent({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...Lc},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur","text-input"],setup(e,{expose:t,emit:n}){const r=n,o=e,{defaultedTextInput:i,defaultedAriaLabels:s,defaultedInline:l,defaultedConfig:c,defaultedRange:d,defaultedMultiDates:u,defaultedUI:f,getDefaultPattern:p,getDefaultStartTime:h}=kt(o),{checkMinMaxRange:v}=$a(o),y=a.ref(),C=a.ref(null),g=a.ref(!1),S=a.ref(!1),_=a.computed(()=>({dp__pointer:!o.disabled&&!o.readonly&&!i.value.enabled,dp__disabled:o.disabled,dp__input_readonly:!i.value.enabled,dp__input:!0,dp__input_icon_pad:!o.hideInputIcon,dp__input_valid:typeof o.state=="boolean"?o.state:!1,dp__input_invalid:typeof o.state=="boolean"?!o.state:!1,dp__input_focus:g.value||o.isMenuOpen,dp__input_reg:!i.value.enabled,...f.value.input??{}})),b=()=>{r("set-input-date",null),o.clearable&&o.autoApply&&(r("set-empty-date"),y.value=null)},T=j=>{const ie=h();return OT(j,i.value.format??p(),ie??wy({},o.enableSeconds),o.inputValue,S.value,o.formatLocale)},E=j=>{const{rangeSeparator:ie}=i.value,[Z,K]=j.split(`${ie}`);if(Z){const I=T(Z.trim()),L=K?T(K.trim()):null;if(li(I,L))return;const F=I&&L?[I,L]:[I];v(L,F,0)&&(y.value=I?F:null)}},x=()=>{S.value=!0},A=j=>{if(d.value.enabled)E(j);else if(u.value.enabled){const ie=j.split(";");y.value=ie.map(Z=>T(Z.trim())).filter(Z=>Z)}else y.value=T(j)},P=j=>{var ie;const Z=typeof j=="string"?j:(ie=j.target)==null?void 0:ie.value;Z!==""?(i.value.openMenu&&!o.isMenuOpen&&r("open"),A(Z),r("set-input-date",y.value)):b(),S.value=!1,r("update:input-value",Z),r("text-input",j,y.value)},M=j=>{i.value.enabled?(A(j.target.value),i.value.enterSubmit&&Gd(y.value)&&o.inputValue!==""?(r("set-input-date",y.value,!0),y.value=null):i.value.enterSubmit&&o.inputValue===""&&(y.value=null,r("clear"))):Y(j)},z=(j,ie)=>{i.value.enabled&&i.value.tabSubmit&&!ie&&A(j.target.value),i.value.tabSubmit&&Gd(y.value)&&o.inputValue!==""?(r("set-input-date",y.value,!0,!0),y.value=null):i.value.tabSubmit&&o.inputValue===""&&(y.value=null,r("clear",!0))},V=()=>{g.value=!0,r("focus"),a.nextTick().then(()=>{var j;i.value.enabled&&i.value.selectOnFocus&&((j=C.value)==null||j.select())})},Y=j=>{if(wa(j,c.value,!0),i.value.enabled&&i.value.openMenu&&!l.value.input){if(i.value.openMenu==="open"&&!o.isMenuOpen)return r("open");if(i.value.openMenu==="toggle")return r("toggle")}else i.value.enabled||r("toggle")},D=()=>{r("real-blur"),g.value=!1,(!o.isMenuOpen||l.value.enabled&&l.value.input)&&r("blur"),o.autoApply&&i.value.enabled&&y.value&&!o.isMenuOpen&&(r("set-input-date",y.value),r("select-date"),y.value=null)},H=j=>{wa(j,c.value,!0),r("clear")},B=j=>{if(j.key==="Tab"&&z(j),j.key==="Enter"&&M(j),!i.value.enabled){if(j.code==="Tab")return;j.preventDefault()}},q=()=>{var j;(j=C.value)==null||j.focus({preventScroll:!0})},J=j=>{y.value=j},U=j=>{j.key===bt.tab&&z(j,!0)};return t({focusInput:q,setParsedDate:J}),(j,ie)=>{var Z,K,I;return a.openBlock(),a.createElementBlock("div",{onClick:Y},[j.$slots.trigger&&!j.$slots["dp-input"]&&!a.unref(l).enabled?a.renderSlot(j.$slots,"trigger",{key:0}):a.createCommentVNode("",!0),!j.$slots.trigger&&(!a.unref(l).enabled||a.unref(l).input)?(a.openBlock(),a.createElementBlock("div",pP,[j.$slots["dp-input"]&&!j.$slots.trigger&&(!a.unref(l).enabled||a.unref(l).enabled&&a.unref(l).input)?a.renderSlot(j.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:P,onEnter:M,onTab:z,onClear:H,onBlur:D,onKeypress:B,onPaste:x,onFocus:V,openMenu:()=>j.$emit("open"),closeMenu:()=>j.$emit("close"),toggleMenu:()=>j.$emit("toggle")}):a.createCommentVNode("",!0),j.$slots["dp-input"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("input",{key:1,id:j.uid?`dp-input-${j.uid}`:void 0,ref_key:"inputRef",ref:C,"data-test-id":"dp-input",name:j.name,class:a.normalizeClass(_.value),inputmode:a.unref(i).enabled?"text":"none",placeholder:j.placeholder,disabled:j.disabled,readonly:j.readonly,required:j.required,value:e.inputValue,autocomplete:j.autocomplete,"aria-label":(Z=a.unref(s))==null?void 0:Z.input,"aria-disabled":j.disabled||void 0,"aria-invalid":j.state===!1?!0:void 0,onInput:P,onBlur:D,onFocus:V,onKeypress:B,onKeydown:ie[0]||(ie[0]=L=>B(L)),onPaste:x},null,42,mP)),a.createElementVNode("div",{onClick:ie[3]||(ie[3]=L=>r("toggle"))},[j.$slots["input-icon"]&&!j.hideInputIcon?(a.openBlock(),a.createElementBlock("span",{key:0,class:"dp__input_icon",onClick:ie[1]||(ie[1]=L=>r("toggle"))},[a.renderSlot(j.$slots,"input-icon")])):a.createCommentVNode("",!0),!j.$slots["input-icon"]&&!j.hideInputIcon&&!j.$slots["dp-input"]?(a.openBlock(),a.createBlock(a.unref(Ii),{key:1,"aria-label":(K=a.unref(s))==null?void 0:K.calendarIcon,class:"dp__input_icon dp__input_icons",onClick:ie[2]||(ie[2]=L=>r("toggle"))},null,8,["aria-label"])):a.createCommentVNode("",!0)]),j.$slots["clear-icon"]&&e.inputValue&&j.clearable&&!j.disabled&&!j.readonly?(a.openBlock(),a.createElementBlock("span",hP,[a.renderSlot(j.$slots,"clear-icon",{clear:H})])):a.createCommentVNode("",!0),j.clearable&&!j.$slots["clear-icon"]&&e.inputValue&&!j.disabled&&!j.readonly?(a.openBlock(),a.createElementBlock("button",{key:3,"aria-label":(I=a.unref(s))==null?void 0:I.clearInput,class:"dp--clear-btn",type:"button",onKeydown:ie[4]||(ie[4]=L=>a.unref(dn)(L,()=>H(L),!0,U)),onClick:ie[5]||(ie[5]=a.withModifiers(L=>H(L),["prevent"]))},[a.createVNode(a.unref(fy),{class:"dp__input_icons","data-test-id":"clear-icon"})],40,vP)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])}}}),yP=typeof window<"u"?window:void 0,Gu=()=>{},bP=e=>a.getCurrentScope()?(a.onScopeDispose(e),!0):!1,wP=(e,t,n,r)=>{if(!e)return Gu;let o=Gu;const i=a.watch(()=>a.unref(e),l=>{o(),l&&(l.addEventListener(t,n,r),o=()=>{l.removeEventListener(t,n,r),o=Gu})},{immediate:!0,flush:"post"}),s=()=>{i(),o()};return bP(s),s},kP=(e,t,n,r={})=>{const{window:o=yP,event:i="pointerdown"}=r;return o?wP(o,i,s=>{const l=Ft(e),c=Ft(t);!l||!c||l===s.target||s.composedPath().includes(l)||s.composedPath().includes(c)||n(s)},{passive:!0}):void 0},_P=["data-dp-mobile"],CP=a.defineComponent({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...Lc},emits:["update:model-value","update:model-timezone-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","date-update","invalid-date","overlay-toggle","text-input"],setup(e,{expose:t,emit:n}){const r=n,o=e,i=a.useSlots(),s=a.ref(!1),l=a.toRef(o,"modelValue"),c=a.toRef(o,"timezone"),d=a.ref(null),u=a.ref(null),f=a.ref(null),p=a.ref(!1),h=a.ref(null),v=a.ref(!1),y=a.ref(!1),C=a.ref(!1),g=a.ref(!1),{setMenuFocused:S,setShiftKey:_}=Ey(),{clearArrowNav:b}=La(),{validateDate:T,isValidTime:E}=$a(o),{defaultedTransitions:x,defaultedTextInput:A,defaultedInline:P,defaultedConfig:M,defaultedRange:z,defaultedMultiDates:V}=kt(o),{menuTransition:Y,showTransition:D}=js(x),{isMobile:H}=Oy(M);a.onMounted(()=>{F(o.modelValue),a.nextTick().then(()=>{if(!P.value.enabled){const Q=Z(h.value);Q==null||Q.addEventListener("scroll",oe),window==null||window.addEventListener("resize",Pe)}}),P.value.enabled&&(s.value=!0),window==null||window.addEventListener("keyup",ue),window==null||window.addEventListener("keydown",Ne)}),a.onUnmounted(()=>{if(!P.value.enabled){const Q=Z(h.value);Q==null||Q.removeEventListener("scroll",oe),window==null||window.removeEventListener("resize",Pe)}window==null||window.removeEventListener("keyup",ue),window==null||window.removeEventListener("keydown",Ne)});const B=An(i,"all",o.presetDates),q=An(i,"input");a.watch([l,c],()=>{F(l.value)},{deep:!0});const{openOnTop:J,menuStyle:U,xCorrect:j,setMenuPosition:ie,getScrollableParent:Z,shadowRender:K}=lP({menuRef:d,menuRefInner:u,inputRef:f,pickerWrapperRef:h,inline:P,emit:r,props:o,slots:i}),{inputValue:I,internalModelValue:L,parseExternalModelValue:F,emitModelValue:N,formatInputValue:ce,checkBeforeEmit:ge}=r7(r,o,p),Fe=a.computed(()=>({dp__main:!0,dp__theme_dark:o.dark,dp__theme_light:!o.dark,dp__flex_display:P.value.enabled,"dp--flex-display-collapsed":C.value,dp__flex_display_with_input:P.value.input})),ee=a.computed(()=>o.dark?"dp__theme_dark":"dp__theme_light"),se=a.computed(()=>o.teleport?{to:typeof o.teleport=="boolean"?"body":o.teleport,disabled:!o.teleport||P.value.enabled}:{}),ae=a.computed(()=>({class:"dp__outer_menu_wrap"})),me=a.computed(()=>P.value.enabled&&(o.timePicker||o.monthPicker||o.yearPicker||o.quarterPicker)),R=()=>{var Q,he;return((he=(Q=f.value)==null?void 0:Q.$el)==null?void 0:he.getBoundingClientRect())??{width:0,left:0,right:0}},oe=()=>{s.value&&(M.value.closeOnScroll?Ge():ie())},Pe=()=>{var Q;s.value&&ie();const he=((Q=u.value)==null?void 0:Q.$el.getBoundingClientRect().width)??0;C.value=document.body.offsetWidth<=he},ue=Q=>{Q.key==="Tab"&&!P.value.enabled&&!o.teleport&&M.value.tabOutClosesMenu&&(h.value.contains(document.activeElement)||Ge()),y.value=Q.shiftKey},Ne=Q=>{y.value=Q.shiftKey},de=()=>{!o.disabled&&!o.readonly&&(K(vv,o),ie(!1),s.value=!0,s.value&&r("open"),s.value||ot(),F(o.modelValue))},G=()=>{var Q;I.value="",ot(),(Q=f.value)==null||Q.setParsedDate(null),r("update:model-value",null),r("update:model-timezone-value",null),r("cleared"),M.value.closeOnClearValue&&Ge()},te=()=>{const Q=L.value;return!Q||!Array.isArray(Q)&&T(Q)?!0:Array.isArray(Q)?V.value.enabled||Q.length===2&&T(Q[0])&&T(Q[1])?!0:z.value.partialRange&&!o.timePicker?T(Q[0]):!1:!1},pe=()=>{ge()&&te()?(N(),Ge()):r("invalid-select",L.value)},xe=Q=>{Te(),N(),M.value.closeOnAutoApply&&!Q&&Ge()},Te=()=>{f.value&&A.value.enabled&&f.value.setParsedDate(L.value)},Se=(Q=!1)=>{o.autoApply&&E(L.value)&&te()&&(z.value.enabled&&Array.isArray(L.value)?(z.value.partialRange||L.value.length===2)&&xe(Q):xe(Q))},ot=()=>{A.value.enabled||(L.value=null)},Ge=(Q=!1)=>{Q&&L.value&&M.value.setDateOnMenuClose&&pe(),P.value.enabled||(s.value&&(s.value=!1,j.value=!1,S(!1),_(!1),b(),r("closed"),I.value&&F(l.value)),ot(),r("blur"))},mn=(Q,he,Ce=!1)=>{if(!Q){L.value=null;return}const at=Array.isArray(Q)?!Q.some(dt=>!T(dt)):T(Q),ut=E(Q);at&&ut?(g.value=!0,L.value=Q,he&&(v.value=Ce,pe(),r("text-submit")),a.nextTick().then(()=>{g.value=!1})):r("invalid-date",Q)},xn=()=>{o.autoApply&&E(L.value)&&N(),Te()},hn=()=>s.value?Ge():de(),zt=Q=>{L.value=Q},Gt=()=>{A.value.enabled&&(p.value=!0,ce()),r("focus")},ne=()=>{if(A.value.enabled&&(p.value=!1,F(o.modelValue),v.value)){const Q=AT(h.value,y.value);Q==null||Q.focus()}r("blur")},ke=Q=>{u.value&&u.value.updateMonthYear(0,{month:lv(Q.month),year:lv(Q.year)})},Ie=Q=>{F(Q??o.modelValue)},W=(Q,he)=>{var Ce;(Ce=u.value)==null||Ce.switchView(Q,he)},re=Q=>M.value.onClickOutside?M.value.onClickOutside(Q):Ge(!0),we=(Q=0)=>{var he;(he=u.value)==null||he.handleFlow(Q)};return kP(d,f,()=>re(te)),t({closeMenu:Ge,selectDate:pe,clearValue:G,openMenu:de,onScroll:oe,formatInputValue:ce,updateInternalModelValue:zt,setMonthYear:ke,parseModel:Ie,switchView:W,toggleMenu:hn,handleFlow:we,dpWrapMenuRef:d}),(Q,he)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"pickerWrapperRef",ref:h,class:a.normalizeClass(Fe.value),"data-datepicker-instance":"","data-dp-mobile":a.unref(H)},[a.createVNode(gP,a.mergeProps({ref_key:"inputRef",ref:f,"input-value":a.unref(I),"onUpdate:inputValue":he[0]||(he[0]=Ce=>a.isRef(I)?I.value=Ce:null),"is-menu-open":s.value},Q.$props,{onClear:G,onOpen:de,onSetInputDate:mn,onSetEmptyDate:a.unref(N),onSelectDate:pe,onToggle:hn,onClose:Ge,onFocus:Gt,onBlur:ne,onRealBlur:he[1]||(he[1]=Ce=>p.value=!1),onTextInput:he[2]||(he[2]=Ce=>Q.$emit("text-input",Ce))}),a.createSlots({_:2},[a.renderList(a.unref(q),(Ce,at)=>({name:Ce,fn:a.withCtx(ut=>[a.renderSlot(Q.$slots,Ce,a.normalizeProps(a.guardReactiveProps(ut)))])}))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(Q.teleport?a.Teleport:"div"),a.normalizeProps(a.guardReactiveProps(se.value)),{default:a.withCtx(()=>[a.createVNode(a.Transition,{name:a.unref(Y)(a.unref(J)),css:a.unref(D)&&!a.unref(P).enabled},{default:a.withCtx(()=>[s.value?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,ref_key:"dpWrapMenuRef",ref:d},ae.value,{class:{"dp--menu-wrapper":!a.unref(P).enabled},style:a.unref(P).enabled?void 0:a.unref(U)}),[a.createVNode(vv,a.mergeProps({ref_key:"dpMenuRef",ref:u},Q.$props,{"internal-model-value":a.unref(L),"onUpdate:internalModelValue":he[3]||(he[3]=Ce=>a.isRef(L)?L.value=Ce:null),class:{[ee.value]:!0,"dp--menu-wrapper":Q.teleport},"open-on-top":a.unref(J),"no-overlay-focus":me.value,collapse:C.value,"get-input-rect":R,"is-text-input-date":g.value,onClosePicker:Ge,onSelectDate:pe,onAutoApply:Se,onTimeUpdate:xn,onFlowStep:he[4]||(he[4]=Ce=>Q.$emit("flow-step",Ce)),onUpdateMonthYear:he[5]||(he[5]=Ce=>Q.$emit("update-month-year",Ce)),onInvalidSelect:he[6]||(he[6]=Ce=>Q.$emit("invalid-select",a.unref(L))),onAutoApplyInvalid:he[7]||(he[7]=Ce=>Q.$emit("invalid-select",Ce)),onInvalidFixedRange:he[8]||(he[8]=Ce=>Q.$emit("invalid-fixed-range",Ce)),onRecalculatePosition:a.unref(ie),onTooltipOpen:he[9]||(he[9]=Ce=>Q.$emit("tooltip-open",Ce)),onTooltipClose:he[10]||(he[10]=Ce=>Q.$emit("tooltip-close",Ce)),onTimePickerOpen:he[11]||(he[11]=Ce=>Q.$emit("time-picker-open",Ce)),onTimePickerClose:he[12]||(he[12]=Ce=>Q.$emit("time-picker-close",Ce)),onAmPmChange:he[13]||(he[13]=Ce=>Q.$emit("am-pm-change",Ce)),onRangeStart:he[14]||(he[14]=Ce=>Q.$emit("range-start",Ce)),onRangeEnd:he[15]||(he[15]=Ce=>Q.$emit("range-end",Ce)),onDateUpdate:he[16]||(he[16]=Ce=>Q.$emit("date-update",Ce)),onInvalidDate:he[17]||(he[17]=Ce=>Q.$emit("invalid-date",Ce)),onOverlayToggle:he[18]||(he[18]=Ce=>Q.$emit("overlay-toggle",Ce)),onMenuBlur:he[19]||(he[19]=Ce=>Q.$emit("blur"))}),a.createSlots({_:2},[a.renderList(a.unref(B),(Ce,at)=>({name:Ce,fn:a.withCtx(ut=>[a.renderSlot(Q.$slots,Ce,a.normalizeProps(a.guardReactiveProps({...ut})))])}))]),1040,["internal-model-value","class","open-on-top","no-overlay-focus","collapse","is-text-input-date","onRecalculatePosition"])],16)):a.createCommentVNode("",!0)]),_:3},8,["name","css"])]),_:3},16))],10,_P))}}),Ip=(()=>{const e=CP;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),SP=Object.freeze(Object.defineProperty({__proto__:null,default:Ip},Symbol.toStringTag,{value:"Module"}));Object.entries(SP).forEach(([e,t])=>{e!=="default"&&(Ip[e]=t)});var EP=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCommentChange","onCompositionEnd","onCompositionStart","onCompositionUpdate","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onInput","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],xP=function(e){return EP.map(function(t){return t.toLowerCase()}).indexOf(e.toLowerCase())!==-1},TP=function(e,t,n){Object.keys(t).filter(xP).forEach(function(r){var o=t[r];typeof o=="function"&&(r==="onInit"?o(e,n):n.on(r.substring(2),function(i){return o(i,n)}))})},PP=function(e,t,n,r){var o=e.modelEvents?e.modelEvents:null,i=Array.isArray(o)?o.join(" "):o;a.watch(r,function(s,l){n&&typeof s=="string"&&s!==l&&s!==n.getContent({format:e.outputFormat})&&n.setContent(s)}),n.on(i||"change input undo redo",function(){t.emit("update:modelValue",n.getContent({format:e.outputFormat}))})},IP=function(e,t,n,r,o,i){r.setContent(i()),n.attrs["onUpdate:modelValue"]&&PP(t,n,r,o),TP(e,n.attrs,r)},gv=0,Ny=function(e){var t=Date.now(),n=Math.floor(Math.random()*1e9);return gv++,e+"_"+n+gv+String(t)},AP=function(e){return e!==null&&e.tagName.toLowerCase()==="textarea"},yv=function(e){return typeof e>"u"||e===""?[]:Array.isArray(e)?e:e.split(" ")},MP=function(e,t){return yv(e).concat(yv(t))},OP=function(e){return e==null},bv=function(){return{listeners:[],scriptId:Ny("tiny-script"),scriptLoaded:!1}},NP=function(){var e=bv(),t=function(o,i,s,l){var c=i.createElement("script");c.referrerPolicy="origin",c.type="application/javascript",c.id=o,c.src=s;var d=function(){c.removeEventListener("load",d),l()};c.addEventListener("load",d),i.head&&i.head.appendChild(c)},n=function(o,i,s){e.scriptLoaded?s():(e.listeners.push(s),o.getElementById(e.scriptId)||t(e.scriptId,o,i,function(){e.listeners.forEach(function(l){return l()}),e.scriptLoaded=!0}))},r=function(){e=bv()};return{load:n,reinitialize:r}},BP=NP(),DP=function(){return typeof window<"u"?window:global},qa=function(){var e=DP();return e&&e.tinymce?e.tinymce:null},RP={apiKey:String,licenseKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(e){return e==="html"||e==="text"}}},gr=function(){return gr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},gr.apply(this,arguments)},LP=function(e,t,n,r){return e(r||"div",{id:t,ref:n})},$P=function(e,t,n){return e("textarea",{id:t,visibility:"hidden",ref:n})},Xu={selector:void 0,target:void 0},zP=a.defineComponent({props:RP,setup:function(e,t){var n=e.init?gr(gr({},e.init),Xu):gr({},Xu),r=a.toRefs(e),o=r.disabled,i=r.modelValue,s=r.tagName,l=a.ref(null),c=null,d=e.id||Ny("tiny-vue"),u=e.init&&e.init.inline||e.inline,f=!!t.attrs["onUpdate:modelValue"],p=!0,h=e.initialValue?e.initialValue:"",v="",y=function(S){return f?function(){return i!=null&&i.value?i.value:""}:function(){return S?h:v}},C=function(){var S=y(p),_=gr(gr({},n),{readonly:e.disabled,target:l.value,plugins:MP(n.plugins,e.plugins),toolbar:e.toolbar||n.toolbar,inline:u,license_key:e.licenseKey,setup:function(b){c=b,b.on("init",function(T){return IP(T,e,t,b,i,S)}),typeof n.setup=="function"&&n.setup(b)}});AP(l.value)&&(l.value.style.visibility=""),qa().init(_),p=!1};a.watch(o,function(S){var _;c!==null&&(typeof((_=c.mode)===null||_===void 0?void 0:_.set)=="function"?c.mode.set(S?"readonly":"design"):c.setMode(S?"readonly":"design"))}),a.watch(s,function(S){var _;f||(v=c.getContent()),(_=qa())===null||_===void 0||_.remove(c),a.nextTick(function(){return C()})}),a.onMounted(function(){if(qa()!==null)C();else if(l.value&&l.value.ownerDocument){var S=e.cloudChannel?e.cloudChannel:"7",_=e.apiKey?e.apiKey:"no-api-key",b=OP(e.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(_,"/tinymce/").concat(S,"/tinymce.min.js"):e.tinymceScriptSrc;BP.load(l.value.ownerDocument,b,C)}}),a.onBeforeUnmount(function(){qa()!==null&&qa().remove(c)}),u||(a.onActivated(function(){p||C()}),a.onDeactivated(function(){var S;f||(v=c.getContent()),(S=qa())===null||S===void 0||S.remove(c)}));var g=function(S){var _;v=c.getContent(),(_=qa())===null||_===void 0||_.remove(c),n=gr(gr(gr({},n),S),Xu),a.nextTick(function(){return C()})};return t.expose({rerender:g,getEditor:function(){return c}}),function(){return u?LP(a.h,d,l,e.tagName):$P(a.h,d,l)}}});const VP={class:"relative w-full"},FP=["value","placeholder"],jP={key:0,class:"pointer-events-none absolute inset-0 flex items-center px-2 peer-focus:hidden","data-test-location-labels":""},HP={class:"flex space-x-2"},UP=a.defineComponent({inheritAttrs:!1,__name:"LocationInput",props:{placeholder:{default:""},placeOptions:{default:null},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=a.ref(null),i=a.ref(""),s=a.computed(()=>{var l,c,d;return!!((l=n.modelValue)!=null&&l.postcode)||!!((c=n.modelValue)!=null&&c.street)||!!((d=n.modelValue)!=null&&d.number)});return a.onMounted(async()=>{if(!o.value)return;if(!(window!=null&&window.google)){console.error("Google not defined. use composable useGoogleApi at setup");return}const{Autocomplete:l}=await google.maps.importLibrary("places"),c=new l(o.value,{strictBounds:!1,types:["address"],componentRestrictions:{country:"nl"},...n.placeOptions});c.addListener("place_changed",()=>{var T,E,x,A,P,M,z,V,Y,D,H;i.value="";const d=c.getPlace(),u=(T=d.geometry)==null?void 0:T.location,f=d.address_components??[],p=u==null?void 0:u.lat(),h=u==null?void 0:u.lng(),v=(E=f.find(B=>B.types.includes("postal_code")))==null?void 0:E.long_name,y=(x=f.find(B=>B.types.includes("route")))==null?void 0:x.long_name,C=parseInt(((P=(A=f.find(B=>B.types.includes("street_number")))==null?void 0:A.long_name.split(/(\d*)(.*)/s))==null?void 0:P[1])??"",10),g=(z=(M=f.find(B=>B.types.includes("street_number")))==null?void 0:M.long_name.split(/(\d*)(.*)/s))==null?void 0:z[2],S=(V=f.find(B=>B.types.includes("locality")))==null?void 0:V.long_name,_=(Y=f.find(B=>B.types.includes("administrative_area_level_1")))==null?void 0:Y.long_name,b=(D=f.find(B=>B.types.includes("administrative_area_level_1")))==null?void 0:D.short_name;(H=o.value)==null||H.blur(),r("update:modelValue",{postcode:v,street:y,number:C>0?C:void 0,numberSuffix:g,city:S,province:_,provinceShort:b,lat:p,lng:h})})}),(l,c)=>(a.openBlock(),a.createElementBlock("div",VP,[a.createElementVNode("input",a.mergeProps({ref_key:"input",ref:o,value:i.value,placeholder:s.value?"":l.placeholder},{...l.$attrs},{class:"peer text-zinc-900",onKeydown:c[0]||(c[0]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["enter"]))}),null,16,FP),s.value?(a.openBlock(),a.createElementBlock("div",jP,[a.createElementVNode("div",HP,[a.createVNode(a.unref(Jl),{class:"empty:hidden","data-test-street-label":""},{default:a.withCtx(()=>{var d,u,f;return[a.createTextVNode(a.toDisplayString((d=l.modelValue)==null?void 0:d.street)+" "+a.toDisplayString((u=l.modelValue)==null?void 0:u.number)+a.toDisplayString((f=l.modelValue)==null?void 0:f.numberSuffix),1)]}),_:1}),a.createVNode(a.unref(Jl),{class:"empty:hidden","data-test-postcode-label":""},{default:a.withCtx(()=>{var d;return[a.createTextVNode(a.toDisplayString((d=l.modelValue)==null?void 0:d.postcode),1)]}),_:1})])])):a.createCommentVNode("",!0)]))}}),WP=["multiple"],qP=a.defineComponent({inheritAttrs:!1,__name:"FileInput",props:{modelValue:{},multiple:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=a.computed({get:()=>n.modelValue,set:s=>r("update:modelValue",s)});function i(s){const c=s.target.files;c&&(o.value=Array.from(c))}return(s,l)=>(a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("label",null,[a.createElementVNode("input",a.mergeProps({...s.$attrs},{multiple:s.multiple,type:"file",class:"hidden","data-test-input":"",onChange:i}),null,16,WP),a.renderSlot(s.$slots,"default",{},()=>[a.createVNode(a.unref(lr),{as:"span","color-type":"secondary",class:"size-10 !p-2.5"},{default:a.withCtx(()=>{var c;return[a.createVNode(a.unref(zn),{icon:(c=a.unref(Vn).far)==null?void 0:c.paperclip,class:"size-5"},null,8,["icon"])]}),_:1})])])]))}}),YP={disabled:!1,readonly:!1,loading:!1,required:!1,multiple:!1,hasError:!1,label:void 0,plain:!1,custom:!1,errorMessage:"",modelModifiers:()=>({})};function GP(e){return eo(e)?Ip:q1(e)?zP:Zl(e)?UP:e==="file"?qP:e==="textarea"?"textarea":"input"}function Xd(e){return e==="license"}function XP(e,t,n){return Dc(e)&&(!!t.default||!!n)}function rc(e,t,n,r,o,i,s){return Dc(t)||Xd(t)||e==="leading"&&Zl(t)?!1:e==="trailing"?!!s.trailingIcon||eo(t)&&!r&&!o&&!i||Zl(t)&&!r||t==="search"&&!r||n&&!s.leadingIcon:!!s[`${e}Icon`]}const KP=`block w-full appearance-none rounded-lg
611
611
  placeholder:text-zinc-300 focus:outline-none text-base
612
- disabled:cursor-not-allowed disabled:border-zinc-100 disabled:!bg-zinc-50`;function JP(e,t,n,r,o,i,s,l,c){if(Dc(e))return K5(e,o);const d=((c==null?void 0:c.class)??"").includes("text-center"),u=rc("leading",e,r,s,t,n,l),f=rc("trailing",e,r,s,t,n,l);return{"border-zinc-300":!o,"!border-zinc-100 !bg-zinc-50":t,"px-10":d&&(u||f),"pl-10 pr-5 group-aria-expanded:pl-7":u&&!d,"pr-10 pl-5":f&&!d,"px-2":!u&&!f,"!pr-0":eo(e),"!pl-0":!u&&eo(e),[KP]:!s,"block w-full appearance-none bg-transparent focus:outline-none focus-visible:outline-none":s,"py-3":!eo(e),"h-[42px]":e!=="textarea","h-24":e==="textarea","border-error text-error placeholder-error focus:ring-error focus:border-error":o,"text-center bg-transparent text-lg uppercase":Xd(e),"border bg-white focus:ring-1 focus:ring-zinc-300 hover:!bg-zinc-100":!Xd(e)&&!s,"border ring-1 ring-zinc-300":i&&!s,"read-only:cursor-default read-only:border-zinc-300 read-only:bg-zinc-50":!eo(e)}}const QP=["type"],ZP=["value"],eI=a.defineComponent({__name:"Input",props:{modelValue:{},type:{},custom:{type:Boolean}},emits:["update:modelValue","open"],setup(e,{emit:t}){const n=e,r=t,o=a.computed({get:()=>n.modelValue,set:l=>r("update:modelValue",l)}),i=a.computed(()=>GP(n.type));function s(l){o.value=l.target.value}return(l,c)=>i.value==="input"?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,"onUpdate:modelValue":c[0]||(c[0]=d=>o.value=d),type:l.type,"data-test-input":""},null,8,QP)),[[a.vShow,!l.custom],[a.vModelDynamic,o.value]]):i.value==="textarea"?(a.openBlock(),a.createElementBlock("textarea",{key:1,value:l.modelValue,"data-test-textarea":"",onInput:s},null,40,ZP)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.value),{key:2,modelValue:o.value,"onUpdate:modelValue":c[1]||(c[1]=d=>o.value=d),onOpen:c[2]||(c[2]=()=>r("open"))},{default:a.withCtx(()=>[a.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3},40,["modelValue"]))}}),tI=Ln(eI,[["__scopeId","data-v-ad3e2fbe"]]),nI=["aria-expanded"],rI=["data-error"],aI=["data-error"],By=a.defineComponent({inheritAttrs:!1,__name:"AppInput",props:a.mergeDefaults({type:{},modelValue:{},modelModifiers:{},readonly:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean},custom:{type:Boolean},required:{type:Boolean},hasError:{type:Boolean},plain:{type:Boolean},errorMessage:{},label:{},wrapperClasses:{},errorWrapperClasses:{},inputWrapperClasses:{},iconClasses:{},labelClasses:{},init:{}},YP),emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=`input-${Tx()}`,s=a.ref(!1),l=a.ref(!1),c=a.useAttrs(),d=a.computed({get:()=>{if(n.modelModifiers.dotToComma){const P=String(n.modelValue).replace(/,/g,".");return!l.value&&parseFloat(P)?String(parseFloat(P).toFixed(2)).replace(/\./g,","):String(n.modelValue).replace(/\./g,",")}return n.modelValue},set:P=>{n.modelModifiers.dotToComma?r("update:modelValue",String(P).replace(/,/g,".")):r("update:modelValue",P)}}),u=a.computed(()=>eo(n.type)),f=a.computed(()=>q1(n.type)),p=a.computed(()=>Dc(n.type)),h=a.computed(()=>Zl(n.type)),v=a.computed(()=>{var P,M,z;if(u.value){const V=n.type;return a.h(or,{icon:(P=zn.far)==null?void 0:P[F5[V]],size:"xs",class:"size-4"})}if(h.value)return a.h(or,{icon:(M=zn.far)==null?void 0:M["location-dot"],size:"xs"});if(n.type==="search")return a.h(or,{icon:(z=zn.far)==null?void 0:z["magnifying-glass"],size:"xs",class:"size-4"})}),y=a.computed(()=>{const P=n.type;return u.value?H5(P,i):void 0}),C=a.computed(()=>{const P=n.type,M=W5(P);return f.value?{...M,init:{...M.init,...n.init}}:void 0}),g=a.computed(()=>n.type==="license"?"text":n.type),S=a.computed(()=>({id:i,type:g.value,required:n.required,multiple:n.multiple,disabled:n.disabled,readonly:n.readonly})),_=a.computed(()=>n.type==="license"?a.h(Hy,{licensePlateClasses:"!p-0"}):a.h("div")),b=a.computed(()=>{const P=n.inputWrapperClasses,M=n.type==="license"?"items-stretch":"relative w-full items-center justify-center";return`${P} ${M}`});function T(){d.value=c.value}function E(P){if(n.modelModifiers.dotToComma){const M=P.key;/[\d,.]/.test(M)||P.preventDefault()}}function x(){l.value=!1,n.modelModifiers.dotToComma&&parseFloat(String(d.value))&&(d.value=String(parseFloat(String(d.value).replace(/,/g,".")).toFixed(2)).replace(/\./g,","))}function A(){l.value=!0}return(P,M)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([P.wrapperClasses,"group"]),"aria-expanded":P.plain},[(P.label||P.$slots.label)&&!p.value?(a.openBlock(),a.createBlock(a.unref(Lp),{key:0,type:P.type,"has-error":P.hasError,disabled:P.disabled,for:u.value?`dp-input-${i}`:i,class:a.normalizeClass(P.labelClasses)},{default:a.withCtx(()=>[a.renderSlot(P.$slots,"label",{},()=>[a.createTextVNode(a.toDisplayString(P.label),1)])]),_:3},8,["type","has-error","disabled","for","class"])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(_.value),{class:a.normalizeClass([b.value,"flex"])},{default:a.withCtx(()=>{var z;return[a.unref(rc)("leading",P.type,P.loading,P.plain,P.disabled,P.readonly,P.$slots)?(a.openBlock(),a.createBlock(Kh,{key:0,loading:P.loading,class:a.normalizeClass([P.iconClasses,"left-3 top-2.5"]),"data-test-leading-icon":""},{default:a.withCtx(()=>[a.renderSlot(P.$slots,"leadingIcon")]),_:3},8,["loading","class"])):a.createCommentVNode("",!0),a.createVNode(tI,a.mergeProps({modelValue:d.value,"onUpdate:modelValue":M[0]||(M[0]=V=>d.value=V)},{...S.value,...y.value,...C.value,...P.$attrs},{custom:n.custom,class:a.unref(JP)(P.type,P.disabled,P.readonly,P.loading,P.hasError,s.value,P.plain,P.$slots,P.$attrs),"data-error":P.hasError?"input":void 0,onOpen:M[1]||(M[1]=()=>s.value=!0),onBlur:x,onFocus:A,onClosed:M[2]||(M[2]=()=>s.value=!1),onKeypress:E}),{default:a.withCtx(()=>[a.renderSlot(P.$slots,"default")]),_:3},16,["modelValue","custom","class","data-error"]),P.custom?a.renderSlot(P.$slots,"input",a.normalizeProps(a.mergeProps({key:1},{check:T,checked:a.unref(c).value===d.value}))):a.createCommentVNode("",!0),!P.custom&&P.type==="checkbox"?(a.openBlock(),a.createBlock(a.unref(or),{key:2,icon:(z=a.unref(zn).far)==null?void 0:z.check,class:"pointer-events-none -ml-4 size-4 -translate-x-0.5 text-white"},null,8,["icon"])):a.createCommentVNode("",!0),a.unref(XP)(P.type,P.$slots,P.label)?(a.openBlock(),a.createElementBlock("label",{key:3,for:i,class:a.normalizeClass([`{ '!text-error': hasError, ${P.labelClasses}}`,"cursor-pointer select-none pl-2 text-base peer-disabled:cursor-not-allowed peer-disabled:text-zinc-300"]),"data-error":P.hasError?P.type:void 0,"data-test-choice-label":""},[a.renderSlot(P.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(P.label),1)])],10,rI)):a.createCommentVNode("",!0),a.unref(rc)("trailing",P.type,P.loading,P.plain,P.disabled,P.readonly,P.$slots)?(a.openBlock(),a.createBlock(Kh,{key:4,loading:P.loading,class:a.normalizeClass([P.iconClasses,"right-3 top-2.5"]),"data-test-trailing-icon":""},{default:a.withCtx(()=>[a.renderSlot(P.$slots,"trailingIcon",{},()=>[v.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(v.value),{key:0})):a.createCommentVNode("",!0)])]),_:3},8,["loading","class"])):a.createCommentVNode("",!0)]}),_:3},8,["class"])),P.hasError&&P.errorMessage?(a.openBlock(),a.createElementBlock("p",{key:1,class:a.normalizeClass([P.errorWrapperClasses,"order-2 mt-1.5 flex items-center gap-x-1 text-xs italic text-error"]),"data-error":P.hasError?"message":void 0,"data-test-error-message":""},a.toDisplayString(P.errorMessage),11,aI)):a.createCommentVNode("",!0)],10,nI))}});function yr(e){return e==null}function oI(e,t,n){const{object:r,valueProp:o,mode:i}=a.toRefs(e),s=a.getCurrentInstance().proxy,l=n.iv,c=(f,p=!0)=>{l.value=u(f);const h=d(f);t.emit("change",h,s),p&&(t.emit("input",h),t.emit("update:modelValue",h))},d=f=>r.value||yr(f)?f:Array.isArray(f)?f.map(p=>p[o.value]):f[o.value],u=f=>yr(f)?i.value==="single"?{}:[]:f;return{update:c}}function _t(e){return a.customRef(()=>({get:e,set:()=>{}}))}function iI(e,t){const{value:n,modelValue:r,mode:o,valueProp:i}=a.toRefs(e),s=a.ref(o.value!=="single"?[]:{}),l=_t(()=>r.value!==void 0?r.value:n.value),c=a.computed(()=>o.value==="single"?s.value[i.value]:s.value.map(u=>u[i.value])),d=_t(()=>o.value!=="single"?s.value.map(u=>u[i.value]).join(","):s.value[i.value]);return{iv:s,internalValue:s,ev:l,externalValue:l,textValue:d,plainValue:c}}function sI(e,t,n){const{regex:r}=a.toRefs(e),o=a.getCurrentInstance().proxy,i=n.isOpen,s=n.open,l=a.ref(null),c=()=>{l.value=""},d=p=>{l.value=p.target.value},u=p=>{if(r.value){let h=r.value;typeof h=="string"&&(h=new RegExp(h)),p.key.match(h)||p.preventDefault()}},f=p=>{if(r.value){let v=(p.clipboardData||window.clipboardData).getData("Text"),y=r.value;typeof y=="string"&&(y=new RegExp(y)),v.split("").every(C=>!!C.match(y))||p.preventDefault()}t.emit("paste",p,o)};return a.watch(l,p=>{!i.value&&p&&s(),t.emit("search-change",p,o)}),{search:l,clearSearch:c,handleSearchInput:d,handleKeypress:u,handlePaste:f}}function lI(e,t,n){const{groupSelect:r,mode:o,groups:i,disabledProp:s}=a.toRefs(e),l=a.ref(null),c=u=>{u===void 0||u!==null&&u[s.value]||i.value&&u&&u.group&&(o.value==="single"||!r.value)||(l.value=u)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function Ku(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(/æ/g,"ae").replace(/œ/g,"oe").replace(/ø/g,"o").replace(new RegExp("\\p{Diacritic}","gu"),"")}function cI(e){return Object.prototype.toString.call(e)==="[object Object]"}function uI(e,t){if(e.length!==t.length)return!1;const n=t.slice().sort();return e.slice().sort().every(function(r,o){return r===n[o]})}const Dy=(e,t)=>{if(e===t)return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o of n)if(!r.includes(o)||!Dy(e[o],t[o]))return!1;return!0};function dI(e,t,n){const{options:r,mode:o,trackBy:i,limit:s,hideSelected:l,createTag:c,createOption:d,label:u,appendNewTag:f,appendNewOption:p,multipleLabel:h,object:v,loading:y,delay:C,resolveOnLoad:g,minChars:S,filterResults:_,clearOnSearch:b,clearOnSelect:T,valueProp:E,allowAbsent:x,groupLabel:A,canDeselect:P,max:M,strict:z,closeOnSelect:V,closeOnDeselect:Y,groups:D,reverse:H,infinite:B,groupOptions:q,groupHideEmpty:J,groupSelect:U,onCreate:j,disabledProp:ie,searchStart:Z,searchFilter:K}=a.toRefs(e),I=a.getCurrentInstance().proxy,L=n.iv,F=n.ev,N=n.search,ce=n.clearSearch,ge=n.update,Fe=n.pointer,ee=n.setPointer,se=n.clearPointer,ae=n.focus,me=n.deactivate,R=n.close,oe=n.localize,Pe=a.ref([]),ue=a.ref([]),Ne=a.ref(!1),de=a.ref(null),G=a.ref(B.value&&s.value===-1?10:s.value),te=a.computed({get:()=>ue.value,set:X=>ue.value=X}),pe=_t(()=>c.value||d.value||!1),xe=_t(()=>f.value!==void 0?f.value:p.value!==void 0?p.value:!0),Te=a.computed(()=>{if(D.value){let X=Ge.value||[],ye=[];return X.forEach(Xe=>{gn(Xe[q.value]).forEach(gt=>{ye.push(Object.assign({},gt,Xe[ie.value]?{[ie.value]:!0}:{}))})}),ye}else{let X=gn(ue.value||[]);return Pe.value.length&&(X=X.concat(Pe.value)),X}}),Se=a.computed(()=>{let X=Te.value;return H.value&&(X=X.reverse()),ke.value.length&&(X=ke.value.concat(X)),ca(X)}),ot=a.computed(()=>{let X=Se.value;return G.value>0&&(X=X.slice(0,G.value)),X}),Ge=a.computed(()=>{if(!D.value)return[];let X=[],ye=ue.value||[];return Pe.value.length&&X.push({[A.value]:" ",[q.value]:[...Pe.value],__CREATE__:!0}),X.concat(ye)}),mn=a.computed(()=>{let X=[...Ge.value].map(ye=>({...ye}));return ke.value.length&&(X[0]&&X[0].__CREATE__?X[0][q.value]=[...ke.value,...X[0][q.value]]:X=[{[A.value]:" ",[q.value]:[...ke.value],__CREATE__:!0}].concat(X)),X}),xn=a.computed(()=>{if(!D.value)return[];let X=mn.value;return mt((X||[]).map((ye,Xe)=>{const gt=gn(ye[q.value]);return{...ye,index:Xe,group:!0,[q.value]:ca(gt,!1).map(Vr=>Object.assign({},Vr,ye[ie.value]?{[ie.value]:!0}:{})),__VISIBLE__:ca(gt).map(Vr=>Object.assign({},Vr,ye[ie.value]?{[ie.value]:!0}:{}))}}))}),hn=a.computed(()=>{switch(o.value){case"single":return!yr(L.value[E.value]);case"multiple":case"tags":return!yr(L.value)&&L.value.length>0}}),zt=a.computed(()=>h.value!==void 0?h.value(L.value,I):L.value&&L.value.length>1?`${L.value.length} options selected`:"1 option selected"),Gt=_t(()=>!Te.value.length&&!Ne.value&&!ke.value.length),ne=_t(()=>Te.value.length>0&&ot.value.length==0&&(N.value&&D.value||!D.value)),ke=a.computed(()=>pe.value===!1||!N.value?[]:Qt(N.value)!==-1?[]:[{[E.value]:N.value,[Ie.value[0]]:N.value,[u.value]:N.value,__CREATE__:!0}]),Ie=a.computed(()=>i.value?Array.isArray(i.value)?i.value:[i.value]:[u.value]),W=_t(()=>{switch(o.value){case"single":return null;case"multiple":case"tags":return[]}}),re=_t(()=>y.value||Ne.value),we=X=>{switch(typeof X!="object"&&(X=Ae(X)),o.value){case"single":ge(X);break;case"multiple":case"tags":ge(L.value.concat(X));break}t.emit("select",he(X),X,I)},Q=X=>{switch(typeof X!="object"&&(X=Ae(X)),o.value){case"single":ut();break;case"tags":case"multiple":ge(Array.isArray(X)?L.value.filter(ye=>X.map(Xe=>Xe[E.value]).indexOf(ye[E.value])===-1):L.value.filter(ye=>ye[E.value]!=X[E.value]));break}t.emit("deselect",he(X),X,I)},he=X=>v.value?X:X[E.value],Ce=X=>{Q(X)},at=(X,ye)=>{if(ye.button!==0){ye.preventDefault();return}Ce(X)},ut=()=>{ge(W.value),t.emit("clear",I)},dt=X=>{if(X.group!==void 0)return o.value==="single"?!1:Ao(X[q.value])&&X[q.value].length;switch(o.value){case"single":return!yr(L.value)&&(L.value[E.value]==X[E.value]||typeof L.value[E.value]=="object"&&typeof X[E.value]=="object"&&Dy(L.value[E.value],X[E.value]));case"tags":case"multiple":return!yr(L.value)&&L.value.map(ye=>ye[E.value]).indexOf(X[E.value])!==-1}},Et=X=>X[ie.value]===!0,Rt=()=>M===void 0||M.value===-1||!hn.value&&M.value>0?!1:L.value.length>=M.value,an=X=>{if(!Et(X)){if(j.value&&!dt(X)&&X.__CREATE__&&(X={...X},delete X.__CREATE__,X=j.value(X,I),X instanceof Promise)){Ne.value=!0,X.then(ye=>{Ne.value=!1,vn(ye)});return}vn(X)}},vn=X=>{switch(X.__CREATE__&&(X={...X},delete X.__CREATE__),o.value){case"single":if(X&&dt(X)){P.value&&Q(X),Y.value&&(se(),R());return}X&&Yn(X),T.value&&ce(),V.value&&(se(),R()),X&&we(X);break;case"multiple":if(X&&dt(X)){Q(X),Y.value&&(se(),R());return}if(Rt()){t.emit("max",I);return}X&&(Yn(X),we(X)),T.value&&ce(),l.value&&se(),V.value&&R();break;case"tags":if(X&&dt(X)){Q(X),Y.value&&(se(),R());return}if(Rt()){t.emit("max",I);return}X&&Yn(X),T.value&&ce(),X&&we(X),l.value&&se(),V.value&&R();break}V.value||ae()},Vi=X=>{if(!(Et(X)||o.value==="single"||!U.value)){switch(o.value){case"multiple":case"tags":Io(X[q.value])?Q(X[q.value]):we(X[q.value].filter(ye=>L.value.map(Xe=>Xe[E.value]).indexOf(ye[E.value])===-1).filter(ye=>!ye[ie.value]).filter((ye,Xe)=>L.value.length+1+Xe<=M.value||M.value===-1)),l.value&&Fe.value&&ee(xn.value.filter(ye=>!ye[ie.value])[Fe.value.index]);break}V.value&&me()}},Yn=X=>{Ae(X[E.value])===void 0&&pe.value&&(t.emit("tag",X[E.value],I),t.emit("option",X[E.value],I),t.emit("create",X[E.value],I),xe.value&&It(X),ce())},Fi=()=>{o.value!=="single"&&we(ot.value.filter(X=>!X.disabled&&!dt(X)))},Io=X=>X.find(ye=>!dt(ye)&&!ye[ie.value])===void 0,Ao=X=>X.find(ye=>!dt(ye))===void 0,Ae=X=>Te.value[Te.value.map(ye=>String(ye[E.value])).indexOf(String(X))],Qt=X=>Te.value.findIndex(ye=>Ie.value.some(Xe=>(parseInt(ye[Xe])==ye[Xe]?parseInt(ye[Xe]):ye[Xe])===(parseInt(X)==X?parseInt(X):X))),Me=X=>["tags","multiple"].indexOf(o.value)!==-1&&l.value&&dt(X),It=X=>{Pe.value.push(X)},mt=X=>J.value?X.filter(ye=>N.value?ye.__VISIBLE__.length:ye[q.value].length):X.filter(ye=>N.value?ye.__VISIBLE__.length:!0),ca=(X,ye=!0)=>{let Xe=X;if(N.value&&_.value){let gt=K.value;gt||(gt=(Vr,tl,Mm)=>Ie.value.some(gu=>{let nl=Ku(oe(Vr[gu]),z.value);return Z.value?nl.startsWith(Ku(tl,z.value)):nl.indexOf(Ku(tl,z.value))!==-1})),Xe=Xe.filter(Vr=>gt(Vr,N.value,I))}return l.value&&ye&&(Xe=Xe.filter(gt=>!Me(gt))),Xe},gn=X=>{let ye=X;return cI(ye)&&(ye=Object.keys(ye).map(Xe=>{let gt=ye[Xe];return{[E.value]:Xe,[Ie.value[0]]:gt,[u.value]:gt}})),ye&&Array.isArray(ye)?ye=ye.map(Xe=>typeof Xe=="object"?Xe:{[E.value]:Xe,[Ie.value[0]]:Xe,[u.value]:Xe}):ye=[],ye},Mo=()=>{yr(F.value)||(L.value=ua(F.value))},Oo=X=>(Ne.value=!0,new Promise((ye,Xe)=>{r.value(N.value,I).then(gt=>{ue.value=gt||[],typeof X=="function"&&X(gt),Ne.value=!1}).catch(gt=>{console.error(gt),ue.value=[],Ne.value=!1}).finally(()=>{ye()})})),ji=()=>{if(hn.value)if(o.value==="single"){let X=Ae(L.value[E.value]);if(X!==void 0){let ye=X[u.value];L.value[u.value]=ye,v.value&&(F.value[u.value]=ye)}}else L.value.forEach((X,ye)=>{let Xe=Ae(L.value[ye][E.value]);if(Xe!==void 0){let gt=Xe[u.value];L.value[ye][u.value]=gt,v.value&&(F.value[ye][u.value]=gt)}})},Hi=X=>{Oo(X)},ua=X=>yr(X)?o.value==="single"?{}:[]:v.value?X:o.value==="single"?Ae(X)||(x.value?{[u.value]:X,[E.value]:X,[Ie.value[0]]:X}:{}):X.filter(ye=>!!Ae(ye)||x.value).map(ye=>Ae(ye)||{[u.value]:ye,[E.value]:ye,[Ie.value[0]]:ye}),el=()=>{de.value=a.watch(N,X=>{X.length<S.value||!X&&S.value!==0||(Ne.value=!0,b.value&&(ue.value=[]),setTimeout(()=>{X==N.value&&r.value(N.value,I).then(ye=>{(X==N.value||!N.value)&&(ue.value=ye,Fe.value=ot.value.filter(Xe=>Xe[ie.value]!==!0)[0]||null,Ne.value=!1)}).catch(ye=>{console.error(ye)})},C.value))},{flush:"sync"})};if(o.value!=="single"&&!yr(F.value)&&!Array.isArray(F.value))throw new Error(`v-model must be an array when using "${o.value}" mode`);return r&&typeof r.value=="function"?g.value?Oo(Mo):v.value==!0&&Mo():(ue.value=r.value,Mo()),C.value>-1&&el(),a.watch(C,(X,ye)=>{de.value&&de.value(),X>=0&&el()}),a.watch(F,X=>{if(yr(X)){ge(ua(X),!1);return}switch(o.value){case"single":(v.value?X[E.value]!=L.value[E.value]:X!=L.value[E.value])&&ge(ua(X),!1);break;case"multiple":case"tags":uI(v.value?X.map(ye=>ye[E.value]):X,L.value.map(ye=>ye[E.value]))||ge(ua(X),!1);break}},{deep:!0}),a.watch(r,(X,ye)=>{typeof e.options=="function"?g.value&&(!ye||X&&X.toString()!==ye.toString())&&Oo():(ue.value=e.options,Object.keys(L.value).length||Mo(),ji())}),a.watch(u,ji),a.watch(s,(X,ye)=>{G.value=B.value&&X===-1?10:X}),{resolvedOptions:te,pfo:Se,fo:ot,filteredOptions:ot,hasSelected:hn,multipleLabelText:zt,eo:Te,extendedOptions:Te,eg:Ge,extendedGroups:Ge,fg:xn,filteredGroups:xn,noOptions:Gt,noResults:ne,resolving:Ne,busy:re,offset:G,select:we,deselect:Q,remove:Ce,selectAll:Fi,clear:ut,isSelected:dt,isDisabled:Et,isMax:Rt,getOption:Ae,handleOptionClick:an,handleGroupClick:Vi,handleTagRemove:at,refreshOptions:Hi,resolveOptions:Oo,refreshLabels:ji}}function fI(e,t,n){const{valueProp:r,showOptions:o,searchable:i,groupLabel:s,groups:l,mode:c,groupSelect:d,disabledProp:u,groupOptions:f}=a.toRefs(e),p=n.fo,h=n.fg,v=n.handleOptionClick,y=n.handleGroupClick,C=n.search,g=n.pointer,S=n.setPointer,_=n.clearPointer,b=n.multiselect,T=n.isOpen,E=a.computed(()=>p.value.filter(F=>!F[u.value])),x=a.computed(()=>h.value.filter(F=>!F[u.value])),A=_t(()=>c.value!=="single"&&d.value),P=_t(()=>g.value&&g.value.group),M=a.computed(()=>I(g.value)),z=a.computed(()=>{const F=P.value?g.value:I(g.value),N=x.value.map(ge=>ge[s.value]).indexOf(F[s.value]);let ce=x.value[N-1];return ce===void 0&&(ce=Y.value),ce}),V=a.computed(()=>{let F=x.value.map(N=>N.label).indexOf(P.value?g.value[s.value]:I(g.value)[s.value])+1;return x.value.length<=F&&(F=0),x.value[F]}),Y=a.computed(()=>[...x.value].slice(-1)[0]),D=a.computed(()=>g.value.__VISIBLE__.filter(F=>!F[u.value])[0]),H=a.computed(()=>{const F=M.value.__VISIBLE__.filter(N=>!N[u.value]);return F[F.map(N=>N[r.value]).indexOf(g.value[r.value])-1]}),B=a.computed(()=>{const F=I(g.value).__VISIBLE__.filter(N=>!N[u.value]);return F[F.map(N=>N[r.value]).indexOf(g.value[r.value])+1]}),q=a.computed(()=>[...z.value.__VISIBLE__.filter(F=>!F[u.value])].slice(-1)[0]),J=a.computed(()=>[...Y.value.__VISIBLE__.filter(F=>!F[u.value])].slice(-1)[0]),U=F=>g.value&&(!F.group&&g.value[r.value]===F[r.value]||F.group!==void 0&&g.value[s.value]===F[s.value])?!0:void 0,j=()=>{S(E.value[0]||null)},ie=()=>{!g.value||g.value[u.value]===!0||(P.value?y(g.value):v(g.value))},Z=()=>{if(g.value===null)S((l.value&&A.value?x.value[0].__CREATE__?E.value[0]:x.value[0]:E.value[0])||null);else if(l.value&&A.value){let F=P.value?D.value:B.value;F===void 0&&(F=V.value,F.__CREATE__&&(F=F[f.value][0])),S(F||null)}else{let F=E.value.map(N=>N[r.value]).indexOf(g.value[r.value])+1;E.value.length<=F&&(F=0),S(E.value[F]||null)}a.nextTick(()=>{L()})},K=()=>{if(g.value===null){let F=E.value[E.value.length-1];l.value&&A.value&&(F=J.value,F===void 0&&(F=Y.value)),S(F||null)}else if(l.value&&A.value){let F=P.value?q.value:H.value;F===void 0&&(F=P.value?z.value:M.value,F.__CREATE__&&(F=q.value,F===void 0&&(F=z.value))),S(F||null)}else{let F=E.value.map(N=>N[r.value]).indexOf(g.value[r.value])-1;F<0&&(F=E.value.length-1),S(E.value[F]||null)}a.nextTick(()=>{L()})},I=F=>x.value.find(N=>N.__VISIBLE__.map(ce=>ce[r.value]).indexOf(F[r.value])!==-1),L=()=>{let F=b.value.querySelector("[data-pointed]");if(!F)return;let N=F.parentElement.parentElement;l.value&&(N=P.value?F.parentElement.parentElement.parentElement:F.parentElement.parentElement.parentElement.parentElement),F.offsetTop+F.offsetHeight>N.clientHeight+N.scrollTop&&(N.scrollTop=F.offsetTop+F.offsetHeight-N.clientHeight),F.offsetTop<N.scrollTop&&(N.scrollTop=F.offsetTop)};return a.watch(C,F=>{i.value&&(F.length&&o.value?j():_())}),a.watch(T,F=>{if(F&&b&&b.value){let N=b.value.querySelectorAll("[data-selected]")[0];if(!N)return;let ce=N.parentElement.parentElement;a.nextTick(()=>{ce.scrollTop=N.offsetTop})}}),{pointer:g,canPointGroups:A,isPointed:U,setPointerFirst:j,selectPointer:ie,forwardPointer:Z,backwardPointer:K}}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 go(e){var t=Dn(e).Element;return e instanceof t||e instanceof Element}function Fn(e){var t=Dn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ap(e){if(typeof ShadowRoot>"u")return!1;var t=Dn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var co=Math.max,ac=Math.min,fi=Math.round;function Kd(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ry(){return!/^((?!chrome|android).)*safari/i.test(Kd())}function pi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Fn(e)&&(o=e.offsetWidth>0&&fi(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&fi(r.height)/e.offsetHeight||1);var s=go(e)?Dn(e):window,l=s.visualViewport,c=!Ry()&&n,d=(r.left+(c&&l?l.offsetLeft:0))/o,u=(r.top+(c&&l?l.offsetTop:0))/i,f=r.width/o,p=r.height/i;return{width:f,height:p,top:u,right:d+f,bottom:u+p,left:d,x:d,y:u}}function Mp(e){var t=Dn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function pI(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mI(e){return e===Dn(e)||!Fn(e)?Mp(e):pI(e)}function Rr(e){return e?(e.nodeName||"").toLowerCase():null}function za(e){return((go(e)?e.ownerDocument:e.document)||window.document).documentElement}function Op(e){return pi(za(e)).left+Mp(e).scrollLeft}function ta(e){return Dn(e).getComputedStyle(e)}function Np(e){var t=ta(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function hI(e){var t=e.getBoundingClientRect(),n=fi(t.width)/e.offsetWidth||1,r=fi(t.height)/e.offsetHeight||1;return n!==1||r!==1}function vI(e,t,n){n===void 0&&(n=!1);var r=Fn(t),o=Fn(t)&&hI(t),i=za(t),s=pi(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Rr(t)!=="body"||Np(i))&&(l=mI(t)),Fn(t)?(c=pi(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Op(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Ly(e){var t=pi(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 Fc(e){return Rr(e)==="html"?e:e.assignedSlot||e.parentNode||(Ap(e)?e.host:null)||za(e)}function $y(e){return["html","body","#document"].indexOf(Rr(e))>=0?e.ownerDocument.body:Fn(e)&&Np(e)?e:$y(Fc(e))}function os(e,t){var n;t===void 0&&(t=[]);var r=$y(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Dn(r),s=o?[i].concat(i.visualViewport||[],Np(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(os(Fc(s)))}function gI(e){return["table","td","th"].indexOf(Rr(e))>=0}function wv(e){return!Fn(e)||ta(e).position==="fixed"?null:e.offsetParent}function yI(e){var t=/firefox/i.test(Kd()),n=/Trident/i.test(Kd());if(n&&Fn(e)){var r=ta(e);if(r.position==="fixed")return null}var o=Fc(e);for(Ap(o)&&(o=o.host);Fn(o)&&["html","body"].indexOf(Rr(o))<0;){var i=ta(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 jc(e){for(var t=Dn(e),n=wv(e);n&&gI(n)&&ta(n).position==="static";)n=wv(n);return n&&(Rr(n)==="html"||Rr(n)==="body"&&ta(n).position==="static")?t:n||yI(e)||t}var sr="top",Lr="bottom",Ia="right",Gr="left",Bp="auto",Hc=[sr,Lr,Ia,Gr],mi="start",Es="end",bI="clippingParents",zy="viewport",Gi="popper",wI="reference",kv=Hc.reduce(function(e,t){return e.concat([t+"-"+mi,t+"-"+Es])},[]),kI=[].concat(Hc,[Bp]).reduce(function(e,t){return e.concat([t,t+"-"+mi,t+"-"+Es])},[]),_I="beforeRead",CI="read",SI="afterRead",EI="beforeMain",xI="main",TI="afterMain",PI="beforeWrite",II="write",AI="afterWrite",MI=[_I,CI,SI,EI,xI,TI,PI,II,AI];function OI(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 c=t.get(l);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function NI(e){var t=OI(e);return MI.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function BI(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function DI(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]})}function RI(e,t){var n=Dn(e),r=za(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,c=0;if(o){i=o.width,s=o.height;var d=Ry();(d||!d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:l+Op(e),y:c}}function LI(e){var t,n=za(e),r=Mp(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=co(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=co(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Op(e),c=-r.scrollTop;return ta(o||n).direction==="rtl"&&(l+=co(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function $I(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ap(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Jd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zI(e,t){var n=pi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function _v(e,t,n){return t===zy?Jd(RI(e,n)):go(t)?zI(t,n):Jd(LI(za(e)))}function VI(e){var t=os(Fc(e)),n=["absolute","fixed"].indexOf(ta(e).position)>=0,r=n&&Fn(e)?jc(e):e;return go(r)?t.filter(function(o){return go(o)&&$I(o,r)&&Rr(o)!=="body"}):[]}function FI(e,t,n,r){var o=t==="clippingParents"?VI(e):[].concat(t),i=[].concat(o,[n]),s=i[0],l=i.reduce(function(c,d){var u=_v(e,d,r);return c.top=co(u.top,c.top),c.right=ac(u.right,c.right),c.bottom=ac(u.bottom,c.bottom),c.left=co(u.left,c.left),c},_v(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function _a(e){return e.split("-")[0]}function hi(e){return e.split("-")[1]}function Vy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fy(e){var t=e.reference,n=e.element,r=e.placement,o=r?_a(r):null,i=r?hi(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case sr:c={x:s,y:t.y-n.height};break;case Lr:c={x:s,y:t.y+t.height};break;case Ia:c={x:t.x+t.width,y:l};break;case Gr:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=o?Vy(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case mi:c[d]=c[d]-(t[u]/2-n[u]/2);break;case Es:c[d]=c[d]+(t[u]/2-n[u]/2);break}}return c}function jy(){return{top:0,right:0,bottom:0,left:0}}function jI(e){return Object.assign({},jy(),e)}function HI(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function Dp(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?bI:l,d=n.rootBoundary,u=d===void 0?zy:d,f=n.elementContext,p=f===void 0?Gi:f,h=n.altBoundary,v=h===void 0?!1:h,y=n.padding,C=y===void 0?0:y,g=jI(typeof C!="number"?C:HI(C,Hc)),S=p===Gi?wI:Gi,_=e.rects.popper,b=e.elements[v?S:p],T=FI(go(b)?b:b.contextElement||za(e.elements.popper),c,u,s),E=pi(e.elements.reference),x=Fy({reference:E,element:_,strategy:"absolute",placement:o}),A=Jd(Object.assign({},_,x)),P=p===Gi?A:E,M={top:T.top-P.top+g.top,bottom:P.bottom-T.bottom+g.bottom,left:T.left-P.left+g.left,right:P.right-T.right+g.right},z=e.modifiersData.offset;if(p===Gi&&z){var V=z[o];Object.keys(M).forEach(function(Y){var D=[Ia,Lr].indexOf(Y)>=0?1:-1,H=[sr,Lr].indexOf(Y)>=0?"y":"x";M[Y]+=V[H]*D})}return M}var Cv={placement:"bottom",modifiers:[],strategy:"absolute"};function Sv(){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 UI(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Cv:o;return function(l,c,d){d===void 0&&(d=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Cv,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:u,setOptions:function(g){var S=typeof g=="function"?g(u.options):g;y(),u.options=Object.assign({},i,u.options,S),u.scrollParents={reference:go(l)?os(l):l.contextElement?os(l.contextElement):[],popper:os(c)};var _=NI(DI([].concat(r,u.options.modifiers)));return u.orderedModifiers=_.filter(function(b){return b.enabled}),v(),h.update()},forceUpdate:function(){if(!p){var g=u.elements,S=g.reference,_=g.popper;if(Sv(S,_)){u.rects={reference:vI(S,jc(_),u.options.strategy==="fixed"),popper:Ly(_)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(M){return u.modifiersData[M.name]=Object.assign({},M.data)});for(var b=0;b<u.orderedModifiers.length;b++){if(u.reset===!0){u.reset=!1,b=-1;continue}var T=u.orderedModifiers[b],E=T.fn,x=T.options,A=x===void 0?{}:x,P=T.name;typeof E=="function"&&(u=E({state:u,options:A,name:P,instance:h})||u)}}}},update:BI(function(){return new Promise(function(C){h.forceUpdate(),C(u)})}),destroy:function(){y(),p=!0}};if(!Sv(l,c))return h;h.setOptions(d).then(function(C){!p&&d.onFirstUpdate&&d.onFirstUpdate(C)});function v(){u.orderedModifiers.forEach(function(C){var g=C.name,S=C.options,_=S===void 0?{}:S,b=C.effect;if(typeof b=="function"){var T=b({state:u,name:g,instance:h,options:_}),E=function(){};f.push(T||E)}})}function y(){f.forEach(function(C){return C()}),f=[]}return h}}var ml={passive:!0};function WI(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,c=Dn(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",n.update,ml)}),l&&c.addEventListener("resize",n.update,ml),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",n.update,ml)}),l&&c.removeEventListener("resize",n.update,ml)}}var qI={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:WI,data:{}};function YI(e){var t=e.state,n=e.name;t.modifiersData[n]=Fy({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var GI={name:"popperOffsets",enabled:!0,phase:"read",fn:YI,data:{}},XI={top:"auto",right:"auto",bottom:"auto",left:"auto"};function KI(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:fi(n*o)/o||0,y:fi(r*o)/o||0}}function Ev(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=s.x,h=p===void 0?0:p,v=s.y,y=v===void 0?0:v,C=typeof u=="function"?u({x:h,y}):{x:h,y};h=C.x,y=C.y;var g=s.hasOwnProperty("x"),S=s.hasOwnProperty("y"),_=Gr,b=sr,T=window;if(d){var E=jc(n),x="clientHeight",A="clientWidth";if(E===Dn(n)&&(E=za(n),ta(E).position!=="static"&&l==="absolute"&&(x="scrollHeight",A="scrollWidth")),E=E,o===sr||(o===Gr||o===Ia)&&i===Es){b=Lr;var P=f&&E===T&&T.visualViewport?T.visualViewport.height:E[x];y-=P-r.height,y*=c?1:-1}if(o===Gr||(o===sr||o===Lr)&&i===Es){_=Ia;var M=f&&E===T&&T.visualViewport?T.visualViewport.width:E[A];h-=M-r.width,h*=c?1:-1}}var z=Object.assign({position:l},d&&XI),V=u===!0?KI({x:h,y},Dn(n)):{x:h,y};if(h=V.x,y=V.y,c){var Y;return Object.assign({},z,(Y={},Y[b]=S?"0":"",Y[_]=g?"0":"",Y.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",Y))}return Object.assign({},z,(t={},t[b]=S?y+"px":"",t[_]=g?h+"px":"",t.transform="",t))}function JI(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,c=l===void 0?!0:l,d={placement:_a(t.placement),variation:hi(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,Ev(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ev(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var QI={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:JI,data:{}};function ZI(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];!Fn(i)||!Rr(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 eA(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(c,d){return c[d]="",c},{});!Fn(o)||!Rr(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}var tA={name:"applyStyles",enabled:!0,phase:"write",fn:ZI,effect:eA,requires:["computeStyles"]},nA=[qI,GI,QI,tA],rA=UI({defaultModifiers:nA});function aA(e){return e==="x"?"y":"x"}function Dl(e,t,n){return co(e,ac(t,n))}function oA(e,t,n){var r=Dl(e,t,n);return r>n?n:r}function iA(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,c=n.boundary,d=n.rootBoundary,u=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,C=Dp(t,{boundary:c,rootBoundary:d,padding:f,altBoundary:u}),g=_a(t.placement),S=hi(t.placement),_=!S,b=Vy(g),T=aA(b),E=t.modifiersData.popperOffsets,x=t.rects.reference,A=t.rects.popper,P=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,M=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(E){if(i){var Y,D=b==="y"?sr:Gr,H=b==="y"?Lr:Ia,B=b==="y"?"height":"width",q=E[b],J=q+C[D],U=q-C[H],j=h?-A[B]/2:0,ie=S===mi?x[B]:A[B],Z=S===mi?-A[B]:-x[B],K=t.elements.arrow,I=h&&K?Ly(K):{width:0,height:0},L=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:jy(),F=L[D],N=L[H],ce=Dl(0,x[B],I[B]),ge=_?x[B]/2-j-ce-F-M.mainAxis:ie-ce-F-M.mainAxis,Fe=_?-x[B]/2+j+ce+N+M.mainAxis:Z+ce+N+M.mainAxis,ee=t.elements.arrow&&jc(t.elements.arrow),se=ee?b==="y"?ee.clientTop||0:ee.clientLeft||0:0,ae=(Y=z==null?void 0:z[b])!=null?Y:0,me=q+ge-ae-se,R=q+Fe-ae,oe=Dl(h?ac(J,me):J,q,h?co(U,R):U);E[b]=oe,V[b]=oe-q}if(l){var Pe,ue=b==="x"?sr:Gr,Ne=b==="x"?Lr:Ia,de=E[T],G=T==="y"?"height":"width",te=de+C[ue],pe=de-C[Ne],xe=[sr,Gr].indexOf(g)!==-1,Te=(Pe=z==null?void 0:z[T])!=null?Pe:0,Se=xe?te:de-x[G]-A[G]-Te+M.altAxis,ot=xe?de+x[G]+A[G]-Te-M.altAxis:pe,Ge=h&&xe?oA(Se,de,ot):Dl(h?Se:te,de,h?ot:pe);E[T]=Ge,V[T]=Ge-de}t.modifiersData[r]=V}}var sA={name:"preventOverflow",enabled:!0,phase:"main",fn:iA,requiresIfExists:["offset"]},lA={left:"right",right:"left",bottom:"top",top:"bottom"};function Rl(e){return e.replace(/left|right|bottom|top/g,function(t){return lA[t]})}var cA={start:"end",end:"start"};function xv(e){return e.replace(/start|end/g,function(t){return cA[t]})}function uA(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?kI:c,u=hi(r),f=u?l?kv:kv.filter(function(v){return hi(v)===u}):Hc,p=f.filter(function(v){return d.indexOf(v)>=0});p.length===0&&(p=f);var h=p.reduce(function(v,y){return v[y]=Dp(e,{placement:y,boundary:o,rootBoundary:i,padding:s})[_a(y)],v},{});return Object.keys(h).sort(function(v,y){return h[v]-h[y]})}function dA(e){if(_a(e)===Bp)return[];var t=Rl(e);return[xv(e),t,xv(t)]}function fA(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,c=n.fallbackPlacements,d=n.padding,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,y=n.allowedAutoPlacements,C=t.options.placement,g=_a(C),S=g===C,_=c||(S||!v?[Rl(C)]:dA(C)),b=[C].concat(_).reduce(function(I,L){return I.concat(_a(L)===Bp?uA(t,{placement:L,boundary:u,rootBoundary:f,padding:d,flipVariations:v,allowedAutoPlacements:y}):L)},[]),T=t.rects.reference,E=t.rects.popper,x=new Map,A=!0,P=b[0],M=0;M<b.length;M++){var z=b[M],V=_a(z),Y=hi(z)===mi,D=[sr,Lr].indexOf(V)>=0,H=D?"width":"height",B=Dp(t,{placement:z,boundary:u,rootBoundary:f,altBoundary:p,padding:d}),q=D?Y?Ia:Gr:Y?Lr:sr;T[H]>E[H]&&(q=Rl(q));var J=Rl(q),U=[];if(i&&U.push(B[V]<=0),l&&U.push(B[q]<=0,B[J]<=0),U.every(function(I){return I})){P=z,A=!1;break}x.set(z,U)}if(A)for(var j=v?3:1,ie=function(L){var F=b.find(function(N){var ce=x.get(N);if(ce)return ce.slice(0,L).every(function(ge){return ge})});if(F)return P=F,"break"},Z=j;Z>0;Z--){var K=ie(Z);if(K==="break")break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}}var pA={name:"flip",enabled:!0,phase:"main",fn:fA,requiresIfExists:["offset"],data:{_skip:!1}};function mA(e,t,n){const{disabled:r,appendTo:o,appendToBody:i,openDirection:s}=a.toRefs(e),l=a.getCurrentInstance().proxy,c=n.multiselect,d=n.dropdown,u=a.ref(!1),f=a.ref(null),p=a.ref(null),h=_t(()=>o.value||i.value),v=_t(()=>s.value==="top"&&p.value==="bottom"||s.value==="bottom"&&p.value!=="top"?"bottom":"top"),y=()=>{u.value||r.value||(u.value=!0,t.emit("open",l),h.value&&a.nextTick(()=>{g()}))},C=()=>{u.value&&(u.value=!1,t.emit("close",l))},g=()=>{if(!f.value)return;let _=parseInt(window.getComputedStyle(d.value).borderTopWidth.replace("px","")),b=parseInt(window.getComputedStyle(d.value).borderBottomWidth.replace("px",""));f.value.setOptions(T=>({...T,modifiers:[...T.modifiers,{name:"offset",options:{offset:[0,(v.value==="top"?_:b)*-1]}}]})),f.value.update()},S=_=>{for(;_&&_!==document.body;){if(getComputedStyle(_).position==="fixed")return!0;_=_.parentElement}return!1};return a.onMounted(()=>{h.value&&(f.value=rA(c.value,d.value,{strategy:S(c.value)?"fixed":void 0,placement:s.value,modifiers:[sA,pA,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:_})=>{_.styles.popper.width=`${_.rects.reference.width}px`},effect:({state:_})=>{_.elements.popper.style.width=`${_.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:_}){p.value=_.placement}}]}))}),a.onBeforeUnmount(()=>{!h.value||!f.value||(f.value.destroy(),f.value=null)}),{popper:f,isOpen:u,open:y,close:C,placement:v,updatePopper:g}}function hA(e,t,n){const{searchable:r,disabled:o,clearOnBlur:i}=a.toRefs(e),s=n.input,l=n.open,c=n.close,d=n.clearSearch,u=n.isOpen,f=n.wrapper,p=n.tags,h=a.ref(!1),v=a.ref(!1),y=_t(()=>r.value||o.value?-1:0),C=()=>{r.value&&s.value.blur(),f.value.blur()},g=()=>{r.value&&!o.value&&s.value.focus()},S=(A=!0)=>{o.value||(h.value=!0,A&&l())},_=()=>{h.value=!1,setTimeout(()=>{h.value||(c(),i.value&&d())},1)};return{tabindex:y,isActive:h,mouseClicked:v,blur:C,focus:g,activate:S,deactivate:_,handleFocusIn:A=>{A.target.closest("[data-tags]")&&A.target.nodeName!=="INPUT"||A.target.closest("[data-clear]")||S(v.value)},handleFocusOut:()=>{_()},handleCaretClick:()=>{_(),C()},handleMousedown:A=>{v.value=!0,u.value&&(A.target.isEqualNode(f.value)||A.target.isEqualNode(p.value))?setTimeout(()=>{_()},0):!u.value&&(document.activeElement.isEqualNode(f.value)||document.activeElement.isEqualNode(s.value))&&S(),setTimeout(()=>{v.value=!1},0)}}}function vA(e,t,n){const{mode:r,addTagOn:o,openDirection:i,searchable:s,showOptions:l,valueProp:c,groups:d,addOptionOn:u,createTag:f,createOption:p,reverse:h}=a.toRefs(e),v=a.getCurrentInstance().proxy,y=n.iv,C=n.update,g=n.deselect,S=n.search,_=n.setPointer,b=n.selectPointer,T=n.backwardPointer,E=n.forwardPointer,x=n.multiselect,A=n.wrapper,P=n.tags,M=n.isOpen,z=n.open,V=n.blur,Y=n.fo,D=_t(()=>f.value||p.value||!1),H=_t(()=>o.value!==void 0?o.value:u.value!==void 0?u.value:["enter"]),B=()=>{r.value==="tags"&&!l.value&&D.value&&s.value&&!d.value&&_(Y.value[Y.value.map(U=>U[c.value]).indexOf(S.value)])};return{handleKeydown:U=>{t.emit("keydown",U,v);let j,ie;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(U.key)!==-1&&r.value==="tags"&&(j=[...x.value.querySelectorAll("[data-tags] > *")].filter(Z=>Z!==P.value),ie=j.findIndex(Z=>Z===document.activeElement)),U.key){case"Backspace":if(r.value==="single"||s.value&&[null,""].indexOf(S.value)===-1||y.value.length===0)return;let Z=y.value.filter(K=>!K.disabled&&K.remove!==!1);Z.length&&g(Z[Z.length-1]);break;case"Enter":if(U.preventDefault(),U.keyCode===229)return;if(ie!==-1&&ie!==void 0){C([...y.value].filter((K,I)=>I!==ie)),ie===j.length-1&&(j.length-1?j[j.length-2].focus():s.value?P.value.querySelector("input").focus():A.value.focus());return}if(H.value.indexOf("enter")===-1&&D.value)return;B(),b();break;case" ":if(!D.value&&!s.value){U.preventDefault(),B(),b();return}if(!D.value)return!1;if(H.value.indexOf("space")===-1&&D.value)return;U.preventDefault(),B(),b();break;case"Tab":case";":case",":if(H.value.indexOf(U.key.toLowerCase())===-1||!D.value)return;B(),b(),U.preventDefault();break;case"Escape":V();break;case"ArrowUp":if(U.preventDefault(),!l.value)return;M.value||z(),T();break;case"ArrowDown":if(U.preventDefault(),!l.value)return;M.value||z(),E();break;case"ArrowLeft":if(s.value&&P.value&&P.value.querySelector("input").selectionStart||U.shiftKey||r.value!=="tags"||!y.value||!y.value.length)return;U.preventDefault(),ie===-1?j[j.length-1].focus():ie>0&&j[ie-1].focus();break;case"ArrowRight":if(ie===-1||U.shiftKey||r.value!=="tags"||!y.value||!y.value.length)return;U.preventDefault(),j.length>ie+1?j[ie+1].focus():s.value?P.value.querySelector("input").focus():s.value||A.value.focus();break}},handleKeyup:U=>{t.emit("keyup",U,v)},preparePointer:B}}function gA(e,t,n){const{classes:r,disabled:o,showOptions:i,breakTags:s}=a.toRefs(e),l=n.isOpen,c=n.isPointed,d=n.isSelected,u=n.isDisabled,f=n.isActive,p=n.canPointGroups,h=n.resolving,v=n.fo,y=n.placement,C=_t(()=>({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",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",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})),g=_t(()=>!!(l.value&&i.value&&(!h.value||h.value&&v.value.length)));return{classList:a.computed(()=>{const _=C.value;return{container:[_.container].concat(o.value?_.containerDisabled:[]).concat(g.value&&y.value==="top"?_.containerOpenTop:[]).concat(g.value&&y.value!=="top"?_.containerOpen:[]).concat(f.value?_.containerActive:[]),wrapper:_.wrapper,spacer:_.spacer,singleLabel:_.singleLabel,singleLabelText:_.singleLabelText,multipleLabel:_.multipleLabel,search:_.search,tags:_.tags,tag:[_.tag].concat(o.value?_.tagDisabled:[]),tagWrapper:[_.tagWrapper,s.value?_.tagWrapperBreak:null],tagDisabled:_.tagDisabled,tagRemove:_.tagRemove,tagRemoveIcon:_.tagRemoveIcon,tagsSearchWrapper:_.tagsSearchWrapper,tagsSearch:_.tagsSearch,tagsSearchCopy:_.tagsSearchCopy,placeholder:_.placeholder,caret:[_.caret].concat(l.value?_.caretOpen:[]),clear:_.clear,clearIcon:_.clearIcon,spinner:_.spinner,inifinite:_.inifinite,inifiniteSpinner:_.inifiniteSpinner,dropdown:[_.dropdown].concat(y.value==="top"?_.dropdownTop:[]).concat(!l.value||!i.value||!g.value?_.dropdownHidden:[]),options:[_.options].concat(y.value==="top"?_.optionsTop:[]),group:_.group,groupLabel:b=>{let T=[_.groupLabel];return c(b)?T.push(d(b)?_.groupLabelSelectedPointed:_.groupLabelPointed):d(b)&&p.value?T.push(u(b)?_.groupLabelSelectedDisabled:_.groupLabelSelected):u(b)&&T.push(_.groupLabelDisabled),p.value&&T.push(_.groupLabelPointable),T},groupOptions:_.groupOptions,option:(b,T)=>{let E=[_.option];return c(b)?E.push(d(b)?_.optionSelectedPointed:_.optionPointed):d(b)?E.push(u(b)?_.optionSelectedDisabled:_.optionSelected):(u(b)||T&&u(T))&&E.push(_.optionDisabled),E},noOptions:_.noOptions,noResults:_.noResults,assist:_.assist,fakeInput:_.fakeInput}}),showDropdown:g}}function yA(e,t,n){const{limit:r,infinite:o}=a.toRefs(e),i=n.isOpen,s=n.offset,l=n.search,c=n.pfo,d=n.eo,u=a.ref(null),f=a.shallowRef(null),p=_t(()=>s.value<c.value.length),h=y=>{const{isIntersecting:C,target:g}=y[0];if(C){const S=g.offsetParent,_=S.scrollTop;s.value+=r.value==-1?10:r.value,a.nextTick(()=>{S.scrollTop=_})}},v=()=>{i.value&&s.value<c.value.length?u.value.observe(f.value):!i.value&&u.value&&u.value.disconnect()};return a.watch(i,()=>{o.value&&v()}),a.watch(l,()=>{o.value&&(s.value=r.value,v())},{flush:"post"}),a.watch(d,()=>{o.value&&v()},{immediate:!1,flush:"post"}),a.onMounted(()=>{window&&window.IntersectionObserver&&(u.value=new IntersectionObserver(h))}),{hasMore:p,infiniteLoader:f}}function bA(e,t,n){const{placeholder:r,id:o,valueProp:i,label:s,mode:l,groupLabel:c,aria:d,searchable:u}=a.toRefs(e),f=n.pointer,p=n.iv,h=n.hasSelected,v=n.multipleLabelText,y=a.ref(null),C=_t(()=>`${o.value?o.value+"-":""}assist`),g=_t(()=>`${o.value?o.value+"-":""}multiselect-options`),S=_t(()=>{if(f.value){let V=o.value?`${o.value}-`:"";return V+=`${f.value.group?"multiselect-group":"multiselect-option"}-`,V+=f.value.group?f.value.index:f.value[i.value],V}}),_=_t(()=>r.value),b=_t(()=>l.value!=="single"),T=a.computed(()=>l.value==="single"&&h.value?p.value[s.value]:l.value==="multiple"&&h.value?v.value:l.value==="tags"&&h.value?p.value.map(V=>V[s.value]).join(", "):""),E=a.computed(()=>{let V={...d.value};return u.value&&(V["aria-labelledby"]=V["aria-labelledby"]?`${C.value} ${V["aria-labelledby"]}`:C.value,T.value&&V["aria-label"]&&(V["aria-label"]=`${T.value}, ${V["aria-label"]}`)),V}),x=V=>`${o.value?o.value+"-":""}multiselect-option-${V[i.value]}`,A=V=>`${o.value?o.value+"-":""}multiselect-group-${V.index}`,P=V=>`${V}`,M=V=>`${V}`,z=V=>`${V} ❎`;return a.onMounted(()=>{if(o.value&&document&&document.querySelector){let V=document.querySelector(`[for="${o.value}"]`);y.value=V?V.innerText:null}}),{arias:E,ariaLabel:T,ariaAssist:C,ariaControls:g,ariaPlaceholder:_,ariaMultiselectable:b,ariaActiveDescendant:S,ariaOptionId:x,ariaOptionLabel:P,ariaGroupId:A,ariaGroupLabel:M,ariaTagLabel:z}}function wA(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 kA(e,t,n){const r=a.shallowRef(null),o=a.shallowRef(null),i=a.shallowRef(null),s=a.shallowRef(null),l=a.shallowRef(null);return{multiselect:r,wrapper:o,tags:i,input:s,dropdown:l}}function _A(e,t,n,r={}){return n.forEach(o=>{r={...r,...o(e,t,r)}}),r}var Rp={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,default:void 0},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,Array],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,default:void 0},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,default:void 0},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,default:void 0},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},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String,default:void 0}},setup(e,t){return _A(e,t,[kA,wA,iI,lI,mA,sI,oI,hA,dI,yA,fI,vA,gA,bA])},beforeMount(){(this.$root.constructor&&this.$root.constructor.version&&this.$root.constructor.version.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const CA=["id","dir"],SA=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],EA=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],xA=["onKeyup","aria-label"],TA=["onClick"],PA=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],IA=["innerHTML"],AA=["id"],MA=["id"],OA=["id","aria-label","aria-selected"],NA=["data-pointed","onMouseenter","onClick"],BA=["innerHTML"],DA=["aria-label"],RA=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],LA=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],$A=["innerHTML"],zA=["innerHTML"],VA=["value"],FA=["name","value"],jA=["name","value"],HA=["id"];function UA(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[12]||(t[12]=(...s)=>e.handleFocusIn&&e.handleFocusIn(...s)),onFocusout:t[13]||(t[13]=(...s)=>e.handleFocusOut&&e.handleFocusOut(...s)),onKeyup:t[14]||(t[14]=(...s)=>e.handleKeyup&&e.handleKeyup(...s)),onKeydown:t[15]||(t[15]=(...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,EA)):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,c)=>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(d=>e.handleTagRemove(s,d),["enter"]),key:c,"aria-label":e.ariaTagLabel(e.localize(s[n.label]))},[a.createElementVNode("span",{class:a.normalizeClass(e.classList.tagWrapper)},a.toDisplayString(e.localize(s[n.label])),3),!n.disabled&&!s.disabled?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(e.classList.tagRemove),onClick:a.withModifiers(d=>e.handleTagRemove(s,d),["stop"])},[a.createElementVNode("span",{class:a.normalizeClass(e.classList.tagRemoveIcon)},null,2)],10,TA)):a.createCommentVNode("v-if",!0)],42,xA))])),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,PA)):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,IA)]):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,handleCaretClick:e.handleCaretClick,isOpen:e.isOpen},()=>[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,SA),a.createCommentVNode(" Options "),(a.openBlock(),a.createBlock(a.Teleport,{to:n.appendTo||"body",disabled:!n.appendToBody&&!n.appendTo},[a.createElementVNode("div",{id:n.id?`${n.id}-dropdown`:void 0,class:a.normalizeClass(e.classList.dropdown),tabindex:"-1",ref:"dropdown",onFocusin:t[10]||(t[10]=(...s)=>e.handleFocusIn&&e.handleFocusIn(...s)),onFocusout:t[11]||(t[11]=(...s)=>e.handleFocusOut&&e.handleFocusOut(...s))},[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,c)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(e.classList.group),key:c,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:d=>e.setPointer(s,l),onClick:d=>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,BA)])],42,NA)),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__,(d,u,f)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(e.classList.option(d,s)),"data-pointed":e.isPointed(d),"data-selected":e.isSelected(d)||void 0,key:f,onMouseenter:p=>e.setPointer(d),onClick:p=>e.handleOptionClick(d),id:e.ariaOptionId(d),"aria-selected":e.isSelected(d),"aria-label":e.ariaOptionLabel(e.localize(d[n.label])),role:"option"},[a.renderSlot(e.$slots,"option",{option:d,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[a.createElementVNode("span",null,a.toDisplayString(e.localize(d[n.label])),1)])],42,RA))),128))],10,DA)],10,OA))),128)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(e.fo,(s,l,c)=>(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:c,onMouseenter:d=>e.setPointer(s),onClick:d=>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,LA))),128))],10,MA),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,$A)]):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,zA)]):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})],42,AA)],8,["to","disabled"])),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,VA)):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,FA)):(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,jA))),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,HA)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Create height for empty input "),a.createElementVNode("div",{class:a.normalizeClass(e.classList.spacer)},null,2)],42,CA)}Rp.render=UA;Rp.__file="src/Multiselect.vue";const Mt={container:"app-select scrollbar-primary 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 h-7 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-zinc-700",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 text-base 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 text-zinc-700 transition duration-300 flex-shrink-0 flex-grow-0 flex rtl:pr-0 rtl:pl-3.5",clearIcon:"bg-multiselect-remove bg-center bg-no-repeat w-2.5 h-4 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-lg",dropdownTop:"!-translate-y-full top-px bottom-auto rounded-b-none rounded-t-lg",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 WA(e){return e in Mt}function qA(e){const t=Object.keys(Mt).find(n=>n.toLowerCase()===e);if(t&&WA(t))return Mt[t]}const YA=["onClick"],GA={key:1,class:"order-2 mt-1.5 flex items-center gap-x-1 text-xs italic text-error","data-test-error-message":""},Uc=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={...Mt};return t.openDirection==="up"&&(i.dropdown=`${Mt.dropdown} ${Mt.dropdownTop}`,i.containerOpen=`${Mt.containerOpenTop}`),t.dropdownClasses&&(i.dropdown=`${i.dropdown} ${t.dropdownClasses}`),t.hasError&&(i.container=`${i.container} !border-error focus:ring-error focus:border-error`),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(Lp),{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(Rp),a.mergeProps({native:!1,classes:o.value},{...i.$attrs,label:t.optionLabel},{onOpen:s[0]||(s[0]=l=>{var c;i.fetchOnOpen&&(l!=null&&l.noOptions)&&((c=l==null?void 0:l.resolveOptions)==null||c.call(l))})}),a.createSlots({tag:a.withCtx(l=>[a.createElementVNode("div",{class:a.normalizeClass(a.unref(Mt).tag)},[a.renderSlot(i.$slots,"tag",a.normalizeProps(a.guardReactiveProps(l)),()=>{var c;return[a.createTextVNode(a.toDisplayString((c=l.option)==null?void 0:c[i.optionLabel]),1)]}),l.disabled?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(a.unref(Mt).tagRemove),onClick:c=>l.handleTagRemove(l.option,c)},[a.createElementVNode("span",{class:a.normalizeClass(a.unref(Mt).tagRemoveIcon)},null,2)],10,YA))],2)]),_:2},[a.renderList(r.value,(l,c)=>({name:l,fn:a.withCtx(d=>[a.renderSlot(i.$slots,l,a.normalizeProps(a.guardReactiveProps({...d||{},classes:a.unref(qA)(l)})))])}))]),1040,["classes"]),i.hasError&&i.errorMessage?(a.openBlock(),a.createElementBlock("p",GA,a.toDisplayString(i.errorMessage),1)):a.createCommentVNode("",!0)],2))}}),XA=["data-error"],Lp=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-zinc-900"]),"data-error":t.hasError?"label":void 0},[a.renderSlot(t.$slots,"default")],10,XA))}}),Qd={mapId:"161a92b3666d9228",disableDefaultUI:!0,zoom:15},KA={scrollwheel:!1,clickableIcons:!1,keyboardShortcuts:!1,isFractionalZoomEnabled:!1,maxZoom:Qd.zoom,minZoom:Qd.zoom,disableDoubleClickZoom:!0,fullscreenControl:!1,streetViewControl:!1,gestureHandling:"none",rotateControl:!1,panControl:!1},JA=["inline-flex","justify-center","items-center","rounded-full","bg-primary","text-white","h-12","w-12"];function QA(){const e=document.createElement("div");return e.classList.add(...JA),a.render(a.h(eB),e),e}const ZA=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 c;return t.mapCenterLatitude&&t.mapCenterLongitude?{lat:t.mapCenterLatitude,lng:t.mapCenterLongitude}:((c=t.mapOptions)==null?void 0:c.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:c}=await google.maps.importLibrary("maps");if(n.value instanceof HTMLElement){const d=new c(n.value,{...s(),center:r.value});t.withMarker&&await l(d)}}function s(){let c={...Qd};return t.disableUserInteraction&&(c={...c,...KA}),{...c,...t.mapOptions??{}}}async function l(c){const{AdvancedMarkerElement:d}=await google.maps.importLibrary("marker"),u=new d({map:c,position:o.value,content:QA()});t.disableMarkerClick&&!t.disableUserInteraction&&(u.element.classList.add("!cursor-default"),google.maps.event.addListener(u,"click",()=>{}))}return(c,d)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"mapElement",ref:n,class:"h-80 w-full"},null,512))}}),Zd=a.defineComponent({__name:"NavigationItem",props:{item:{},linkClasses:{}},setup(e){const t=e,{navigationComponent:n,closeMobileMenu:r,expanded:o}=_o(),i=ms.useRouter(),s=a.ref(!1),l=a.computed(()=>s.value||typeof t.item.icon!="string"),c=a.computed(()=>s.value?Ra:t.item.icon),d=a.computed(()=>{var f;return t.item.href??((f=i.resolve(t.item.to))==null?void 0:f.href)??""});async function u(f){var p,h,v;r(),(p=t.item)!=null&&p.onClick&&(f.preventDefault(),s.value=!0,await Promise.resolve((v=(h=t.item)==null?void 0:h.onClick)==null?void 0:v.call(h)),s.value=!1)}return(f,p)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),{to:f.item.to,href:d.value,class:a.normalizeClass([[{"md:bg-primary md:!text-white":f.item.active??!1,"!rounded-full":f.item.rounded??!1,"mb-3":!f.item.bottom,"mt-3":f.item.bottom,"md:w-10 md:justify-center":!a.unref(o),"md:px-6":a.unref(o)},f.linkClasses],"group/item flex h-10 w-full cursor-pointer rounded-lg transition-colors hover:bg-primary md:items-center md:text-center md:text-zinc-400 md:hover:text-white"]),onClick:u},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(l.value?c.value:"span"),{class:a.normalizeClass([{"!h-6":!l.value,"md:!text-white":f.item.active},"app-navigation-item size-5 stroke-2 text-black md:size-4 md:text-zinc-400 md:group-hover/item:text-white"]),size:s.value?"extra-small":void 0,"data-test-icon":""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(l.value?"":f.item.icon),1)]),_:1},8,["class","size"])),a.createElementVNode("span",{class:a.normalizeClass([{"md:w-0 md:p-0":!a.unref(o)},"overflow-hidden whitespace-nowrap pl-7 text-lg font-semibold md:text-base md:font-normal"]),"data-test-name":""},a.toDisplayString(f.item.name),3)]),_:1},8,["to","href","class"]))}}),ef=a.defineComponent({__name:"SupportItem",setup(e){const{contactRoute:t,contactIcon:n,navigationComponent:r,closeMobileMenu:o}=_o();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 size-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:"size-full"}))]),_:1},8,["to","href","onClick"])):a.createCommentVNode("",!0)}}),eM={class:"app-mobile-menu flex h-18 items-center justify-between bg-zinc-50 px-4 text-black md:hidden"},tM=["innerHTML"],nM={class:"flex w-10 grow-0 justify-end","data-test-avatar-wrapper":""},rM={class:"relative flex size-full flex-1 flex-col bg-white focus:outline-none","data-test-navigation-wrapper":""},aM={class:"h-0 flex-1 overflow-y-auto p-4","data-test-navigation-links-wrapper":""},oM={"aria-label":"MainMenu",class:"mt-5"},iM={class:"mb-auto"},sM=a.defineComponent({__name:"Mobile",setup(e){const{logo:t,avatar:n,navigationItems:r,mobileMenuOpen:o,mobileMenuOpenTransition:i,openMobileMenu:s,closeMobileMenu:l}=_o(),c=a.computed(()=>o.value?Gp:tB);function d(){l(),setTimeout(()=>{i.value=!1},100)}function u(){i.value||(s(),i.value=!0)}return(f,p)=>(a.openBlock(),a.createElementBlock("header",eM,[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(u,["stop"])},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.value),{class:"block size-6 text-black","aria-hidden":"true"}))]),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,tM),a.createElementVNode("div",nM,[a.unref(n)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),{key:0})):a.createCommentVNode("",!0)]),a.createVNode(a.unref(ft.TransitionRoot),{show:a.unref(o),as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(ft.Dialog),{as:"div",class:"app-mobile-menu-dialog fixed inset-0 top-18 z-50 flex lg:hidden",onClose:d},{default:a.withCtx(()=>[a.createVNode(a.unref(ft.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",rM,[a.createElementVNode("div",aM,[a.createElementVNode("nav",oM,[a.createElementVNode("ul",iM,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(r).filter(h=>h.visible!==!1),h=>(a.openBlock(),a.createElementBlock("li",{key:h.name,"data-test-navigation-item":""},[a.createVNode(Zd,{item:h},null,8,["item"])]))),128))])]),a.createVNode(ef)])])]),_:1})]),_:1})]),_:1},8,["show"]),a.createVNode(ef)]))}}),lM={class:"relative before:absolute before:-right-4 before:top-0 before:z-[-1] before:size-4 before:bg-secondary after:absolute after:-right-4 after:bottom-0 after:z-[-1] after:size-4 after:bg-secondary"},cM=["aria-expanded"],uM={key:0},dM=a.defineComponent({__name:"AppNavigationMenu",setup(e){const{navigationItems:t,mainMenuOpen:n,expanded:r,toggleExpand:o,contactIcon:i}=_o();return(s,l)=>(a.openBlock(),a.createElementBlock("div",lM,[a.createElementVNode("aside",{class:a.normalizeClass([{"flex-col px-3 md:!w-20":a.unref(n),"md:!w-72":a.unref(r)},"app-navigation-menu group 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:size-8 before:bg-zinc-100 after:absolute after:-right-8 after:bottom-0 after:size-8 after:bg-zinc-100 md:flex md:bg-secondary"]),"aria-expanded":a.unref(r),"data-test-main-menu":""},[a.createElementVNode("ul",{class:a.normalizeClass([{"mx-auto":!a.unref(r)},"mb-auto transition-all duration-500"])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(t).filter(c=>c.bottom!==!0&&c.visible!==!1),c=>(a.openBlock(),a.createElementBlock("li",{key:c.name,"data-test-top-navigation-item":""},[a.createVNode(Zd,{item:c,"link-classes":c.linkClasses},null,8,["item","link-classes"])]))),128))],2),a.createElementVNode("ul",{class:a.normalizeClass([{"mx-auto":!a.unref(r)},"mt-auto pb-10 transition-all duration-500"])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(t).filter(c=>c.bottom&&c.visible!==!1),c=>(a.openBlock(),a.createElementBlock("li",{key:c.name,"data-test-bottom-navigation-item":""},[a.createVNode(Zd,{item:c,"link-classes":c.linkClasses},null,8,["item","link-classes"])]))),128)),a.unref(i)?(a.openBlock(),a.createElementBlock("li",uM,[a.createVNode(ef,{class:"!static"})])):a.createCommentVNode("",!0)],2),a.createElementVNode("div",{class:"absolute bottom-2 right-5 hidden size-10 cursor-pointer items-center justify-center overflow-hidden rounded-full bg-secondary transition-all duration-200 md:flex",onClick:l[0]||(l[0]=(...c)=>a.unref(o)&&a.unref(o)(...c))},[a.createElementVNode("div",{class:a.normalizeClass([{"!-translate-x-4":!a.unref(r)},"flex translate-x-4 space-x-4 transition-transform duration-700"])},[a.createVNode(a.unref(Yp),{class:"size-5 text-zinc-400 hover:text-white"}),a.createVNode(a.unref(b2),{class:"size-5 text-zinc-400 hover:text-white"})],2)])],10,cM),a.createVNode(sM)]))}}),Wc=Ln(dM,[["__scopeId","data-v-9bd49b21"]]),fM={class:"flex text-sm font-bold"},pM={class:"flex items-center rounded-l-lg bg-indigo-900 px-2 py-[0.188rem] text-white","data-test-country-code":""},Hy=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",fM,[a.createElementVNode("span",pM,a.toDisplayString(t.country),1),a.createElementVNode("span",{class:a.normalizeClass([t.licensePlateClasses,"w-full rounded-r-lg bg-yellow-400 px-2 py-[0.188rem] uppercase"]),"data-test-license-plate":""},[a.renderSlot(t.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(t.license),1)])],2)]))}}),Uy=a.defineComponent({__name:"AppTimelineItemIcon",props:{icon:{}},setup(e){const t=e,n=a.computed(()=>t.icon??nB),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))}}),mM={plain:[],default:["text-zinc-600"],success:["text-green-600"],warning:["text-yellow-600"],error:["text-red-600"],info:["text-sky-600"],inactive:["text-orange-500"]},hM={class:"flex"},vM={class:"ml-4"},Wy=a.defineComponent({__name:"AppTimelineItem",props:{item:{},itemType:{default:"default"}},setup(e){const t=e,n=a.computed(()=>t.item.date&&!t.item.time?t.item.date.toLocaleDateString("nl-NL",{month:"short",day:"numeric",hour:"numeric",minute:"numeric",timeStyle:void 0}):t.item.time&&!t.item.date?t.item.time:[]),r=a.computed(()=>{var o;return((o=t.item)==null?void 0:o.badge)??"default"});return(o,i)=>(a.openBlock(),a.createElementBlock("article",{class:a.normalizeClass([{"after:hidden":o.item.last},"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 after:[min-height:60px] 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"])},[a.createElementVNode("div",hM,[a.renderSlot(o.$slots,"icon",{value:o.item.icon},()=>[a.createVNode(Uy,{icon:o.item.icon},null,8,["icon"])])]),a.createElementVNode("div",vM,[a.createElementVNode("header",{class:a.normalizeClass({"flex items-center gap-3":o.itemType==="inline","!mb-0":o.item.last})},[a.createVNode(a.unref(Jl),{class:a.normalizeClass({"mb-2":o.itemType==="default"}),type:r.value},{default:a.withCtx(()=>[a.renderSlot(o.$slots,"date",{value:n.value},()=>[a.createElementVNode("time",null,a.toDisplayString(n.value)+" uur",1)])]),_:3},8,["class","type"]),a.createElementVNode("h3",{class:a.normalizeClass([{domClassesPerType:r.value},"font-semibold"]),"data-test-timeline-title":""},[a.renderSlot(o.$slots,"title",{value:o.item.title},()=>[a.createElementVNode("span",{class:a.normalizeClass(a.unref(mM)[r.value])},a.toDisplayString(o.item.title),3)])],2)],2),a.createElementVNode("p",{class:a.normalizeClass([{"mt-4":o.itemType==="inline"},"text-base empty:mt-0"]),"data-test-timeline-description":""},[a.renderSlot(o.$slots,"default",{value:o.item.description},()=>[a.createTextVNode(a.toDisplayString(o.item.description),1)])],2)])],2))}}),gM={class:"space-y-4"},yM=a.defineComponent({__name:"AppTimeline",props:{items:{},type:{default:"default"}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",gM,[a.renderSlot(t.$slots,"default",{},()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.items,r=>(a.openBlock(),a.createBlock(Wy,{key:r.title,item:r,"item-type":t.type},null,8,["item","item-type"]))),128))])]))}}),bM={},wM={class:"flow-root"},kM={class:"overflow-x-auto"},_M={class:"inline-block min-w-full"},CM={class:"overflow-hidden"},SM={class:"w-full"};function EM(e,t){return a.openBlock(),a.createElementBlock("div",wM,[a.createElementVNode("div",kM,[a.createElementVNode("div",_M,[a.createElementVNode("div",CM,[a.createElementVNode("table",SM,[a.renderSlot(e.$slots,"default",{},void 0,!0)])])])])])}const xM=Ln(bM,[["render",EM],["__scopeId","data-v-14180034"]]);var TM=Object.defineProperty,PM=Object.defineProperties,IM=Object.getOwnPropertyDescriptors,Tv=Object.getOwnPropertySymbols,AM=Object.prototype.hasOwnProperty,MM=Object.prototype.propertyIsEnumerable,Pv=(e,t,n)=>t in e?TM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sr=(e,t)=>{for(var n in t||(t={}))AM.call(t,n)&&Pv(e,n,t[n]);if(Tv)for(var n of Tv(t))MM.call(t,n)&&Pv(e,n,t[n]);return e},Ll=(e,t)=>PM(e,IM(t)),Va=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const OM=e=>(a.pushScopeId("data-v-e0a0b7f0"),e=e(),a.popScopeId(),e),NM=["onClick"],BM=["checked"],DM=OM(()=>a.createElementVNode("label",{for:"checbox"},null,-1)),RM=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,BM),DM],8,NM))}});var LM=Va(RM,[["__scopeId","data-v-e0a0b7f0"]]);const $M=e=>(a.pushScopeId("data-v-7e69a276"),e=e(),a.popScopeId(),e),zM=["checked"],VM=$M(()=>a.createElementVNode("label",{for:"checbox"},null,-1)),FM=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,zM),VM]))}});var jM=Va(FM,[["__scopeId","data-v-7e69a276"]]);const HM=e=>(a.pushScopeId("data-v-4ca5de3a"),e=e(),a.popScopeId(),e),UM={class:"easy-data-table__rows-selector"},WM={class:"rows-input"},qM=HM(()=>a.createElementVNode("div",{class:"triangle"},null,-1)),YM=["onClick"],GM=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(f=>({"1b889342":a.unref(u)}));const r=a.ref(!1),o=a.ref(!1),i=a.inject("dataTable");a.watch(r,f=>{if(f&&i){const p=window.innerHeight,h=i.value.getBoundingClientRect().height,v=i.value.getBoundingClientRect().top;p-(h+v)<=100?o.value=!0:o.value=!1}});const s=a.computed({get:()=>n.modelValue,set:f=>{t("update:modelValue",f)}}),l=f=>{s.value=f,r.value=!1},c=(f,p)=>{let h=f.parentNode;for(;h!=null;){if(h.classList&&h.classList.contains(p))return!0;h=h.parentNode}return!1},d=f=>{c(f.target,"easy-data-table__rows-selector")||(r.value=!1)};a.onMounted(()=>{document.addEventListener("click",d)}),a.onBeforeUnmount(()=>{document.removeEventListener("click",d)});const u=a.inject("themeColor");return(f,p)=>(a.openBlock(),a.createElementBlock("div",UM,[a.createElementVNode("div",{class:"rows-input__wrapper",onClick:p[0]||(p[0]=h=>r.value=!r.value)},[a.createElementVNode("div",WM,a.toDisplayString(a.unref(s)),1),qM]),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,h=>(a.openBlock(),a.createElementBlock("li",{key:h,class:a.normalizeClass({selected:h===a.unref(s)}),onClick:v=>l(h)},a.toDisplayString(h),11,YM))),128))],2)]))}});var XM=Va(GM,[["__scopeId","data-v-4ca5de3a"]]);const qc=e=>(a.pushScopeId("data-v-1fa3a520"),e=e(),a.popScopeId(),e),KM={class:"lds-ring"},JM=qc(()=>a.createElementVNode("div",null,null,-1)),QM=qc(()=>a.createElementVNode("div",null,null,-1)),ZM=qc(()=>a.createElementVNode("div",null,null,-1)),eO=qc(()=>a.createElementVNode("div",null,null,-1)),tO=[JM,QM,ZM,eO],nO=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",KM,tO))}});var rO=Va(nO,[["__scopeId","data-v-1fa3a520"]]);const aO={class:"loader-line"},oO=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",aO))}});var iO=Va(oO,[["__scopeId","data-v-7d281cac"]]);const sO={class:"buttons-pagination"},lO=["onClick"],cO=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 c=1;c<=n.maxPaginationNumber;c+=1)l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else if([1,2,n.maxPaginationNumber,n.maxPaginationNumber-1].includes(n.currentPaginationNumber))for(let c=1;c<=r;c+=1)if(c<=3)l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else if(c===4)l.push({type:"omission"});else{const d=n.maxPaginationNumber-(r-c);l.push({type:"button",page:d,active:d===n.currentPaginationNumber,activePrev:d+1===n.currentPaginationNumber})}else if([3,4].includes(n.currentPaginationNumber))for(let c=1;c<=r;c+=1)c<=5?l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber}):c===6?l.push({type:"omission"}):l.push({type:"button",page:n.maxPaginationNumber,active:n.maxPaginationNumber===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else if([n.maxPaginationNumber-2,n.maxPaginationNumber-3].includes(n.currentPaginationNumber))for(let c=1;c<=r;c+=1)if(c===1)l.push({type:"button",page:1,active:n.currentPaginationNumber===1,activePrev:c+1===n.currentPaginationNumber});else if(c===2)l.push({type:"omission"});else{const d=n.maxPaginationNumber-(r-c);l.push({type:"button",page:d,active:d===n.currentPaginationNumber,activePrev:d+1===n.currentPaginationNumber})}else for(let c=1;c<=r;c+=1)if(c===1)l.push({type:"button",page:1,active:n.currentPaginationNumber===1,activePrev:c+1===n.currentPaginationNumber});else if(c===2||c===6)l.push({type:"omission"});else if(c===7)l.push({type:"button",page:n.maxPaginationNumber,active:n.maxPaginationNumber===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else{const d=4-c,u=n.currentPaginationNumber-d;l.push({type:"button",page:u,active:u===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber})}return l}),s=a.inject("themeColor");return(l,c)=>(a.openBlock(),a.createElementBlock("div",sO,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(i),(d,u)=>(a.openBlock(),a.createElementBlock("div",{key:u,class:a.normalizeClass(["item",{button:d.type==="button",active:d.type==="button"&&d.active,"active-prev":d.type==="button"&&d.activePrev,omission:d.type==="omission"}]),onClick:f=>o(d)},a.toDisplayString(d.type==="button"?d.page:"..."),11,lO))),128))]))}});var uO=Va(cO,[["__scopeId","data-v-4c681fa2"]]);const qy=e=>(a.pushScopeId("data-v-c9da5286"),e=e(),a.popScopeId(),e),dO=qy(()=>a.createElementVNode("span",{class:"arrow arrow-right"},null,-1)),fO=[dO],pO=qy(()=>a.createElementVNode("span",{class:"arrow arrow-left"},null,-1)),mO=[pO],hO=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"))},fO,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"))},mO,2)],64))}});var vO=Va(hO,[["__scopeId","data-v-c9da5286"]]);function gO(e,t,n,r){return{clickRow:(i,s,l)=>{if(e.value!==s)return;const c=Sr({},i);if(t.value){const{checkbox:d}=i;delete c.checkbox,c.isSelected=d}if(n.value){const{index:d}=i;delete c.index,c.indexInCurrentPage=d}r("clickRow",c,l)}}}function yO(e,t,n){const r=a.ref([]);return{expandingItemIndexList:r,updateExpandingItemIndexList:(s,l,c)=>{c.stopPropagation();const d=r.value.indexOf(s);if(d!==-1)r.value.splice(d,1);else{const u=e.value.findIndex(f=>JSON.stringify(f)===JSON.stringify(l));n("expandRow",t.value+u,l),r.value.push(t.value+u)}},clearExpandingItemIndexList:()=>{r.value=[]}}}function bO(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,c;return{value:i.value,fixed:(l=i.fixed)!=null?l:!0,width:(c=i.width)!=null?c:100,distance:s===0?0:o.reduce((d,u,f)=>{let p=d;return f<s&&(p+=u),p})}})});return{fixedHeaders:t,lastFixedColumn:n,fixedColumnsInfos:r}}function wO(e,t,n,r,o,i,s,l,c,d,u,f,p,h,v,y,C,g,S){const _=a.computed(()=>s.value.findIndex(Y=>Y.fixed)!==-1),b=a.computed(()=>_.value?s.value.filter(Y=>Y.fixed):[]),T=a.computed(()=>s.value.filter(Y=>!Y.fixed)),E=(Y,D)=>Array.isArray(Y)&&Array.isArray(D)?{sortBy:Y,sortDesc:D.map(H=>H==="desc")}:Y!==""?{sortBy:v.value,sortDesc:y.value==="desc"}:null,x=a.ref(E(v.value,y.value)),A=a.computed(()=>{var Y;const H=[...b.value,...T.value].map(U=>{const j=Object.assign(U);if(j.sortable&&(j.sortType="none"),p.value)if(Array.isArray(p.value.sortBy)&&Array.isArray(p.value.sortType)&&p.value.sortBy.includes(j.value)){const ie=p.value.sortBy.indexOf(j.value);j.sortType=p.value.sortType[ie]}else j.value===p.value.sortBy&&p.value.sortType&&(j.sortType=p.value.sortType);if(x.value&&Array.isArray(x.value.sortBy)&&Array.isArray(x.value.sortDesc)&&x.value.sortBy.includes(j.value)){const ie=x.value.sortBy.indexOf(j.value);j.sortType=x.value.sortDesc[ie]?"desc":"asc"}else x.value&&j.value===x.value.sortBy&&(j.sortType=x.value.sortDesc?"desc":"asc");return j});let B=[];l.value?B=[o.value||_.value?{text:"",value:"expand",fixed:!0,width:n.value}:{text:"",value:"expand"},...H]:B=H;let q=[];h.value?q=[i.value||_.value?{text:e.value,value:"index",fixed:!0,width:c.value}:{text:e.value,value:"index"},...B]:q=B;let J=[];return d.value?J=[r.value||_.value?{text:"checkbox",value:"checkbox",fixed:!0,width:(Y=t.value)!=null?Y:36}:{text:"checkbox",value:"checkbox"},...q]:J=q,J}),P=a.computed(()=>A.value.map(Y=>Y.value));return{clientSortOptions:x,headerColumns:P,headersForRender:A,updateSortField:(Y,D)=>{let H=null;if(D==="none"?H="asc":D==="asc"?H="desc":H=f.value?"asc":null,u.value&&g(Y,H),x.value&&Array.isArray(x.value.sortBy)&&Array.isArray(x.value.sortDesc)){const B=x.value.sortBy.indexOf(Y);B===-1?H!==null&&(x.value.sortBy.push(Y),x.value.sortDesc.push(H==="desc")):H===null?(x.value.sortDesc.splice(B,1),x.value.sortBy.splice(B,1)):x.value.sortDesc[B]=H==="desc"}else H===null?x.value=null:x.value={sortBy:Y,sortDesc:H==="desc"};S("updateSort",{sortType:H,sortBy:Y})},isMultiSorting:Y=>p.value&&Array.isArray(p.value.sortBy)?p.value.sortBy.includes(Y):x.value&&Array.isArray(x.value.sortBy)?x.value.sortBy.includes(Y):!1,getMultiSortNumber:Y=>p.value&&Array.isArray(p.value.sortBy)?p.value.sortBy.indexOf(Y)+1:x.value&&Array.isArray(x.value.sortBy)?x.value.sortBy.indexOf(Y)+1:!1}}function kO(e,t,n,r,o,i,s,l,c){const d=a.computed(()=>(e.value-1)*o.value+1),u=a.computed(()=>n.value?Math.min(c.value,e.value*o.value):Math.min(l.value.length,e.value*o.value)),f=a.computed(()=>n.value?r.value:l.value.slice(d.value-1,u.value)),p=a.computed(()=>s.value?f.value.map((y,C)=>Sr({index:d.value+C},y)):f.value),h=a.computed(()=>i.value.length===0||i.value.every(C=>l.value.findIndex(g=>JSON.stringify(C)===JSON.stringify(g))===-1)?"noneSelected":i.value.length===l.value.length&&i.value.every(g=>l.value.findIndex(S=>JSON.stringify(g)===JSON.stringify(S))!==-1)?"allSelected":"partSelected"),v=a.computed(()=>t.value?h.value==="allSelected"?p.value.map(y=>Sr({checkbox:!0},y)):h.value==="noneSelected"?p.value.map(y=>Sr({checkbox:!1},y)):p.value.map(y=>{const C=i.value.findIndex(g=>{const S=Sr({},y);return delete S.index,JSON.stringify(g)===JSON.stringify(S)})!==-1;return Sr({checkbox:C},y)}):p.value);return{currentPageFirstIndex:d,currentPageLastIndex:u,multipleSelectStatus:h,pageItems:v}}function _O(e,t,n,r,o,i,s){const l=a.ref(i.value?i.value.page:e.value),c=a.computed(()=>Math.ceil(r.value/o.value)),d=a.computed(()=>c.value===0||l.value===c.value),u=a.computed(()=>l.value===1);return{currentPaginationNumber:l,maxPaginationNumber:c,isLastPage:d,isFirstPage:u,nextPage:()=>{if(r.value!==0&&!d.value&&!n.value)if(t.value){const y=l.value+1;s(y)}else l.value+=1},prevPage:()=>{if(r.value!==0&&!u.value&&!n.value)if(t.value){const y=l.value-1;s(y)}else l.value-=1},updatePage:y=>{n.value||(t.value?s(y):l.value=y)},updateCurrentPaginationNumber:y=>{l.value=y}}}function CO(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 SO(e,t,n){const r=a.computed({get:()=>{if(e.value){const{page:l,rowsPerPage:c,sortBy:d,sortType:u}=e.value;return{page:l,rowsPerPage:c,sortBy:d??null,sortType:u??null}}return null},set:l=>{n("update:serverOptions",l)}});return{serverOptionsComputed:r,updateServerOptionsPage:l=>{r.value&&(r.value=Ll(Sr({},r.value),{page:l}))},updateServerOptionsSort:(l,c)=>{if(r.value)if(t.value&&Array.isArray(r.value.sortBy)&&Array.isArray(r.value.sortType)){const d=r.value.sortBy.findIndex(u=>u===l);d===-1&&c!==null&&(r.value.sortBy.push(l),r.value.sortType.push(c)),c===null?(r.value.sortBy.splice(d,1),r.value.sortType.splice(d,1)):r.value.sortType[d]=c}else r.value=Ll(Sr({},r.value),{sortBy:c!==null?l:null,sortType:c})},updateServerOptionsRowsPerPage:l=>{r.value&&(r.value=Ll(Sr({},r.value),{page:1,rowsPerPage:l}))}}}function sn(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 EO(e,t){const n=sn(e,t);return Array.isArray(n)?n.join(","):n}function xO(e,t,n,r,o,i,s,l,c,d){const u=_=>{if(typeof i.value=="string"&&i.value!=="")return sn(i.value,_);if(Array.isArray(i.value)){let b="";return i.value.forEach(T=>{b+=sn(T,_)}),b}return Object.values(_).join(" ")},f=a.computed(()=>{if(!n.value&&s.value!==""){const _=new RegExp(s.value,"i");return r.value.filter(b=>_.test(u(b)))}return r.value}),p=a.computed(()=>{let _=[...f.value];return t.value?(t.value.forEach(b=>{_=_.filter(T=>{const{field:E,comparison:x,criteria:A}=b;if(typeof x=="function")return x(sn(E,T),A);const P=sn(E,T);switch(x){case"=":return P===A;case"!=":return P!==A;case">":return P>A;case"<":return P<A;case"<=":return P<=A;case">=":return P>=A;case"between":return P>=Math.min(...A)&&P<=Math.max(...A);case"in":return A.includes(P);default:return P===A}})}),_):f.value});a.watch(p,_=>{t.value&&d("updateFilter",_)},{immediate:!0,deep:!0});function h(_,b,T,E){const x=_[E],A=b[E];return(E===0?T:h(_,b,T,E-1)).sort((M,z)=>{let V=!0;for(let Y=0;Y<E;Y+=1)if(sn(_[Y],M)!==sn(_[Y],z)){V=!1;break}return V?sn(x,M)<sn(x,z)?A?1:-1:sn(x,M)>sn(x,z)?A?-1:1:0:0})}const v=a.computed(()=>{if(n.value)return r.value;if(e.value===null)return p.value;const{sortBy:_,sortDesc:b}=e.value,T=[...p.value];return c&&Array.isArray(_)&&Array.isArray(b)?_.length===0?T:h(_,b,T,_.length-1):T.sort((E,x)=>sn(_,E)<sn(_,x)?b?1:-1:sn(_,E)>sn(_,x)?b?-1:1:0)}),y=a.computed(()=>n.value?l.value:v.value.length),C=a.computed({get:()=>{var _;return(_=o.value)!=null?_:[]},set:_=>{d("update:itemsSelected",_)}});return{totalItems:v,selectItemsComputed:C,totalItemsLength:y,toggleSelectAll:_=>{C.value=_?v.value:[],_&&d("selectAll")},toggleSelectItem:_=>{const b=_.checkbox;if(delete _.checkbox,delete _.index,b)C.value=C.value.filter(T=>JSON.stringify(T)!==JSON.stringify(_)),d("deselectRow",_);else{const T=C.value;T.unshift(_),C.value=T,d("selectRow",_)}}}}var TO={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 PO=e=>(a.pushScopeId("data-v-32683533"),e=e(),a.popScopeId(),e),IO=["id"],AO=["onClick"],MO={key:3,class:"header-text"},OO={key:5,class:"multi-sort__number"},NO=["onClick","onDblclick","onContextmenu"],BO=["onClick"],DO=["colspan"],RO={key:0,class:"vue3-easy-data-table__loading"},LO=PO(()=>a.createElementVNode("div",{class:"vue3-easy-data-table__loading-mask"},null,-1)),$O={class:"loading-entity"},zO={key:1,class:"vue3-easy-data-table__message"},VO={key:0,class:"vue3-easy-data-table__footer"},FO={key:0,class:"pagination__rows-per-page"},jO={class:"pagination__items-index"},HO=a.defineComponent({__name:"DataTable",props:Ll(Sr({},TO),{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(Ae=>({da0d4328:a.unref(K),"3037e504":a.unref(Z)}));const{tableNodeId:o,clickEventType:i,bodyTextDirection:s,checkboxColumnWidth:l,currentPage:c,expandColumnWidth:d,filterOptions:u,fixedCheckbox:f,fixedExpand:p,fixedHeader:h,fixedIndex:v,headers:y,headerTextDirection:C,indexColumnWidth:g,items:S,itemsSelected:_,loading:b,mustSort:T,multiSort:E,rowsItems:x,rowsPerPage:A,searchField:P,searchValue:M,serverItemsLength:z,serverOptions:V,showIndex:Y,sortBy:D,sortType:H,tableHeight:B,tableMinHeight:q,themeColor:J,rowsOfPageSeparatorMessage:U,showIndexSymbol:j,preventContextMenuRow:ie}=a.toRefs(r),Z=a.computed(()=>B.value?`${B.value}px`:null),K=a.computed(()=>`${q.value}px`);a.provide("themeColor",J.value);const I=a.useSlots(),L=a.computed(()=>!!I.pagination),F=a.computed(()=>!!I.loading),N=a.computed(()=>!!I.expand),ce=a.computed(()=>!!I.body),ge=a.ref(),Fe=a.ref();a.provide("dataTable",ge);const ee=a.ref(!1);a.onMounted(()=>{Fe.value.addEventListener("scroll",()=>{ee.value=Fe.value.scrollLeft>0})});const se=a.computed(()=>_.value!==null),ae=a.computed(()=>V.value!==null),{serverOptionsComputed:me,updateServerOptionsPage:R,updateServerOptionsSort:oe,updateServerOptionsRowsPerPage:Pe}=SO(V,E,n),{clientSortOptions:ue,headerColumns:Ne,headersForRender:de,updateSortField:G,isMultiSorting:te,getMultiSortNumber:pe}=wO(j,l,d,f,p,v,y,N,g,se,ae,T,me,Y,D,H,E,oe,n),{rowsItemsComputed:xe,rowsPerPageRef:Te,updateRowsPerPage:Se}=CO(ae,x,V,A),{totalItems:ot,selectItemsComputed:Ge,totalItemsLength:mn,toggleSelectAll:xn,toggleSelectItem:hn}=xO(ue,u,ae,S,_,P,M,z,E,n),{currentPaginationNumber:zt,maxPaginationNumber:Gt,isLastPage:ne,isFirstPage:ke,nextPage:Ie,prevPage:W,updatePage:re,updateCurrentPaginationNumber:we}=_O(c,ae,b,mn,Te,V,R),{currentPageFirstIndex:Q,currentPageLastIndex:he,multipleSelectStatus:Ce,pageItems:at}=kO(zt,se,ae,S,Te,Ge,Y,ot,mn),ut=a.computed(()=>zt.value===0?0:(zt.value-1)*Te.value),{expandingItemIndexList:dt,updateExpandingItemIndexList:Et,clearExpandingItemIndexList:Rt}=yO(at,ut,n),{fixedHeaders:an,lastFixedColumn:vn,fixedColumnsInfos:Vi}=bO(de),{clickRow:Yn}=gO(i,se,Y,n),Fi=(Ae,Qt)=>{ie.value&&Qt.preventDefault(),n("contextmenuRow",Ae,Qt)},Io=Ae=>{var Qt;const Me=(Qt=Ae.width)!=null?Qt:an.value.length?100:null;if(Me)return`width: ${Me}px; min-width: ${Me}px;`},Ao=(Ae,Qt="th")=>{if(!an.value.length)return;const Me=Vi.value.find(It=>It.value===Ae);if(Me)return`left: ${Me.distance}px;z-index: ${Qt==="th"?3:1};position: sticky;`};return a.watch(b,(Ae,Qt)=>{me.value&&Ae===!1&&Qt===!0&&(we(me.value.page),Rt())}),a.watch(Te,Ae=>{ae.value?Pe(Ae):re(1)}),a.watch([M,u],()=>{ae.value||re(1)}),a.watch([zt,ue,P,M,u],()=>{Rt()},{deep:!0}),a.watch(at,Ae=>{n("updatePageItems",Ae)},{deep:!0}),a.watch(ot,Ae=>{n("updateTotalItems",Ae)},{deep:!0}),t({currentPageFirstIndex:Q,currentPageLastIndex:he,clientItemsLength:mn,maxPaginationNumber:Gt,currentPaginationNumber:zt,isLastPage:ne,isFirstPage:ke,nextPage:Ie,prevPage:W,updatePage:re,rowsPerPageOptions:xe,rowsPerPageActiveOption:Te,updateRowsPerPageActiveOption:Se}),(Ae,Qt)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"dataTable",ref:ge,class:a.normalizeClass(["vue3-easy-data-table",[Ae.tableClassName]])},[a.createElementVNode("div",{ref_key:"tableBody",ref:Fe,class:a.normalizeClass(["vue3-easy-data-table__main",{"fixed-header":a.unref(h),"fixed-height":a.unref(B),"show-shadow":ee.value,"table-fixed":a.unref(an).length,hoverable:!Ae.noHover,"border-cell":Ae.borderCell}])},[a.createElementVNode("table",{id:a.unref(o)},[a.createElementVNode("colgroup",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(de),(Me,It)=>(a.openBlock(),a.createElementBlock("col",{key:It,style:a.normalizeStyle(Io(Me))},null,4))),128))]),a.unref(I)["customize-headers"]?a.renderSlot(Ae.$slots,"customize-headers",{key:0},void 0,!0):a.unref(de).length&&!Ae.hideHeader?(a.openBlock(),a.createElementBlock("thead",{key:1,class:a.normalizeClass(["vue3-easy-data-table__header",[Ae.headerClassName]])},[a.createElementVNode("tr",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(de),(Me,It)=>(a.openBlock(),a.createElementBlock("th",{key:It,class:a.normalizeClass([{sortable:Me.sortable,none:Me.sortable&&Me.sortType==="none",desc:Me.sortable&&Me.sortType==="desc",asc:Me.sortable&&Me.sortType==="asc",shadow:Me.value===a.unref(vn)},typeof Ae.headerItemClassName=="string"?Ae.headerItemClassName:Ae.headerItemClassName(Me,It+1)]),style:a.normalizeStyle(Ao(Me.value)),onClick:a.withModifiers(mt=>Me.sortable&&Me.sortType?a.unref(G)(Me.value,Me.sortType):null,["stop"])},[Me.text==="checkbox"?(a.openBlock(),a.createBlock(LM,{key:a.unref(Ce),status:a.unref(Ce),onChange:a.unref(xn)},null,8,["status","onChange"])):(a.openBlock(),a.createElementBlock("span",{key:1,class:a.normalizeClass(["header",`direction-${a.unref(C)}`])},[a.unref(I)[`header-${Me.value}`]?a.renderSlot(Ae.$slots,`header-${Me.value}`,a.normalizeProps(a.mergeProps({key:0},Me)),void 0,!0):a.unref(I)[`header-${Me.value.toLowerCase()}`]?a.renderSlot(Ae.$slots,`header-${Me.value.toLowerCase()}`,a.normalizeProps(a.mergeProps({key:1},Me)),void 0,!0):a.unref(I).header?a.renderSlot(Ae.$slots,"header",a.normalizeProps(a.mergeProps({key:2},Me)),void 0,!0):(a.openBlock(),a.createElementBlock("span",MO,a.toDisplayString(Me.text),1)),Me.sortable?(a.openBlock(),a.createElementBlock("i",{key:Me.sortType?Me.sortType:"none",class:a.normalizeClass(["sortType-icon",{desc:Me.sortType==="desc"}])},null,2)):a.createCommentVNode("",!0),a.unref(E)&&a.unref(te)(Me.value)?(a.openBlock(),a.createElementBlock("span",OO,a.toDisplayString(a.unref(pe)(Me.value)),1)):a.createCommentVNode("",!0)],2))],14,AO))),128))])],2)):a.createCommentVNode("",!0),a.unref(ce)?a.renderSlot(Ae.$slots,"body",a.normalizeProps(a.mergeProps({key:2},a.unref(at))),void 0,!0):a.unref(Ne).length?(a.openBlock(),a.createElementBlock("tbody",{key:3,class:a.normalizeClass(["vue3-easy-data-table__body",{"row-alternation":Ae.alternating}])},[a.renderSlot(Ae.$slots,"body-prepend",a.normalizeProps(a.guardReactiveProps({items:a.unref(at),pagination:{isFirstPage:a.unref(ke),isLastPage:a.unref(ne),currentPaginationNumber:a.unref(zt),maxPaginationNumber:a.unref(Gt),nextPage:a.unref(Ie),prevPage:a.unref(W)},headers:a.unref(de)})),void 0,!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(at),(Me,It)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:It},[a.createElementVNode("tr",{class:a.normalizeClass([{"even-row":(It+1)%2===0},typeof Ae.bodyRowClassName=="string"?Ae.bodyRowClassName:Ae.bodyRowClassName(Me,It+1)]),onClick:mt=>{a.unref(Yn)(Me,"single",mt),Ae.clickRowToExpand&&a.unref(Et)(It+a.unref(ut),Me,mt)},onDblclick:mt=>{a.unref(Yn)(Me,"double",mt)},onContextmenu:mt=>{Fi(Me,mt)}},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Ne),(mt,ca)=>(a.openBlock(),a.createElementBlock("td",{key:ca,style:a.normalizeStyle(Ao(mt,"td")),class:a.normalizeClass([{shadow:mt===a.unref(vn),"can-expand":mt==="expand"},typeof Ae.bodyItemClassName=="string"?Ae.bodyItemClassName:Ae.bodyItemClassName(mt,It+1),`direction-${a.unref(s)}`]),onClick:gn=>mt==="expand"?a.unref(Et)(It+a.unref(ut),Me,gn):null},[a.unref(I)[`item-${mt}`]?a.renderSlot(Ae.$slots,`item-${mt}`,a.normalizeProps(a.mergeProps({key:0},Me)),void 0,!0):a.unref(I)[`item-${mt.toLowerCase()}`]?a.renderSlot(Ae.$slots,`item-${mt.toLowerCase()}`,a.normalizeProps(a.mergeProps({key:1},Me)),void 0,!0):mt==="expand"?(a.openBlock(),a.createElementBlock("i",{key:2,class:a.normalizeClass(["expand-icon",{expanding:a.unref(dt).includes(a.unref(ut)+It)}])},null,2)):mt==="checkbox"?(a.openBlock(),a.createBlock(jM,{key:3,checked:Me[mt],onChange:gn=>a.unref(hn)(Me)},null,8,["checked","onChange"])):a.unref(I).item?a.renderSlot(Ae.$slots,"item",a.normalizeProps(a.mergeProps({key:4},{column:mt,item:Me})),void 0,!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:5},[a.createTextVNode(a.toDisplayString(a.unref(EO)(mt,Me)),1)],64))],14,BO))),128))],42,NO),a.unref(N)&&a.unref(dt).includes(It+a.unref(ut))?(a.openBlock(),a.createElementBlock("tr",{key:0,class:a.normalizeClass([{"even-row":(It+1)%2===0},typeof Ae.bodyExpandRowClassName=="string"?Ae.bodyExpandRowClassName:Ae.bodyExpandRowClassName(Me,It+1)])},[a.createElementVNode("td",{colspan:a.unref(de).length,class:"expand"},[Me.expandLoading?(a.openBlock(),a.createBlock(iO,{key:0,class:"expand-loading"})):a.createCommentVNode("",!0),a.renderSlot(Ae.$slots,"expand",a.normalizeProps(a.guardReactiveProps(Me)),void 0,!0)],8,DO)],2)):a.createCommentVNode("",!0)],64))),128)),a.renderSlot(Ae.$slots,"body-append",a.normalizeProps(a.guardReactiveProps({items:a.unref(at),pagination:{isFirstPage:a.unref(ke),isLastPage:a.unref(ne),currentPaginationNumber:a.unref(zt),maxPaginationNumber:a.unref(Gt),nextPage:a.unref(Ie),prevPage:a.unref(W),updatePage:a.unref(re)},headers:a.unref(de)})),void 0,!0)],2)):a.createCommentVNode("",!0)],8,IO),a.unref(b)?(a.openBlock(),a.createElementBlock("div",RO,[LO,a.createElementVNode("div",$O,[a.unref(F)?a.renderSlot(Ae.$slots,"loading",{key:0},void 0,!0):(a.openBlock(),a.createBlock(rO,{key:1}))])])):a.createCommentVNode("",!0),!a.unref(at).length&&!a.unref(b)?(a.openBlock(),a.createElementBlock("div",zO,[a.renderSlot(Ae.$slots,"empty-message",{},()=>[a.createTextVNode(a.toDisplayString(Ae.emptyMessage),1)],!0)])):a.createCommentVNode("",!0)],2),Ae.hideFooter?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",VO,[Ae.hideRowsPerPage?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",FO,[a.createTextVNode(a.toDisplayString(Ae.rowsPerPageMessage)+" ",1),a.createVNode(XM,{modelValue:a.unref(Te),"onUpdate:modelValue":Qt[0]||(Qt[0]=Me=>a.isRef(Te)?Te.value=Me:null),"rows-items":a.unref(xe)},null,8,["modelValue","rows-items"])])),a.createElementVNode("div",jO,a.toDisplayString(`${a.unref(Q)}–${a.unref(he)}`)+" "+a.toDisplayString(a.unref(U))+" "+a.toDisplayString(a.unref(mn)),1),a.unref(L)?a.renderSlot(Ae.$slots,"pagination",a.normalizeProps(a.mergeProps({key:1},{isFirstPage:a.unref(ke),isLastPage:a.unref(ne),currentPaginationNumber:a.unref(zt),maxPaginationNumber:a.unref(Gt),nextPage:a.unref(Ie),prevPage:a.unref(W)})),void 0,!0):(a.openBlock(),a.createBlock(vO,{key:2,"is-first-page":a.unref(ke),"is-last-page":a.unref(ne),onClickNextPage:a.unref(Ie),onClickPrevPage:a.unref(W)},a.createSlots({_:2},[Ae.buttonsPagination?{name:"buttonsPagination",fn:a.withCtx(()=>[a.createVNode(uO,{"current-pagination-number":a.unref(zt),"max-pagination-number":a.unref(Gt),onUpdatePage:a.unref(re)},null,8,["current-pagination-number","max-pagination-number","onUpdatePage"])]),key:"0"}:void 0]),1032,["is-first-page","is-last-page","onClickNextPage","onClickPrevPage"]))]))],2))}});var Yy=Va(HO,[["__scopeId","data-v-32683533"]]);typeof window<"u"&&window.Vue&&window.Vue.createApp({}).component("Vue3EasyDataTable",Yy);const UO={class:"relative z-50 -mt-20 w-full -translate-y-0.5 rounded-2xl bg-white px-4 py-3 shadow"},WO={class:"my-[3px] flex w-full flex-col justify-between space-y-2 md:flex-row"},qO={class:"items-center sm:flex","data-test-results":""},YO={key:0,class:"flex w-full items-center md:mr-4 md:space-x-2"},GO={class:"hidden whitespace-nowrap md:flex","data-test-results-count":""},XO=a.defineComponent({__name:"AppDataTableFooter",props:{dataTable:{},currentPage:{}},emits:["nextPage","previousPage","updatePage"],setup(e,{emit:t}){const n=e,r=t,o=a.computed(()=>n.dataTable),i=a.computed(()=>{var p;return((p=o.value)==null?void 0:p.clientItemsLength)??0}),s=a.computed(()=>{var p;return(p=o.value)==null?void 0:p.maxPaginationNumber}),l=a.computed(()=>{var p;return n.currentPage??((p=o.value)==null?void 0:p.currentPaginationNumber)});function c(){r("nextPage")}function d(){r("previousPage")}function u(p){r("updatePage",p)}function f(){r("updatePage",1)}return(p,h)=>(a.openBlock(),a.createElementBlock("div",UO,[a.createElementVNode("div",WO,[a.createElementVNode("div",qO,[o.value?(a.openBlock(),a.createElementBlock("div",YO,[h[1]||(h[1]=a.createElementVNode("div",{class:"hidden md:block"}," Tonen ",-1)),a.createVNode(a.unref(Uc),{modelValue:o.value.rowsPerPageActiveOption,"onUpdate:modelValue":h[0]||(h[0]=v=>o.value.rowsPerPageActiveOption=v),"can-clear":!1,"can-deselect":!1,options:o.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",GO,[a.renderSlot(p.$slots,"results",{results:i.value},()=>[a.createTextVNode(a.toDisplayString(i.value)+" results ",1)])])]),i.value>0?(a.openBlock(),a.createBlock(a.unref(Jy),{key:0,"current-page":l.value,"last-page":s.value,onPaginate:u,onNextPage:c,onPreviousPage:d},null,8,["current-page","last-page"])):a.createCommentVNode("",!0)])]))}}),KO=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"},hideFooter:{type:Boolean,default:!1}},emits:["update:modelValue","updatePage","clickItem","contextMenuOpen","clickContextItem"],setup(e,{expose:t,emit:n}){const r=e,o=n,i=a.useSlots(),s=Ai(),l=Yc(),c=mo.useKeyModifier("Alt"),d=a.ref(),u=a.ref((r==null?void 0:r.modelValue)??void 0),f=a.computed(()=>d.value);a.watch(()=>u.value,g=>{u.value&&r.actionBarSelection!==!1&&o("update:modelValue",[...g.map(S=>S==null?void 0:S[r.actionBarSelectionKey])])}),a.onMounted(()=>{r!=null&&r.modelValue&&a.watch(r.modelValue,g=>{u.value=g})});function p(g){if(u.value&&s.setTableSelection(u.value),!g&&r.actionBarSelection){s.setSelection(u.value.map(S=>S==null?void 0:S[r.actionBarSelectionKey]));return}g&&r.actionBarSelection&&s.setSelection(g.map(S=>S==null?void 0:S[r.actionBarSelectionKey])),r.actionBarSelection===!1&&o("update:modelValue",[...g.map(S=>S==null?void 0:S[r.actionBarSelectionKey])])}function h(g){var S;(S=f.value)==null||S.updatePage(g),o("updatePage",g)}function v(){var g,S;(g=f.value)==null||g.prevPage(),o("updatePage",(((S=f.value)==null?void 0:S.currentPaginationNumber)??2)-1)}function y(){var g,S;(g=f.value)==null||g.nextPage(),o("updatePage",(((S=f.value)==null?void 0:S.currentPaginationNumber)??0)+1)}function C(g){if(c.value&&u.value!==void 0){const S=u.value.findIndex(_=>_.id===g.id);if(S>-1){u.value.splice(S,1),p();return}u.value.push({...g,isSelected:void 0}),p();return}o("clickItem",g)}return t({dataTableInstance:f}),s.onResetSelection.value=g=>{(r==null?void 0:r.modelValue)!==void 0&&(u.value=g)},(g,S)=>(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(Yy),a.mergeProps({ref_key:"dataTable",ref:d},{...g.$props,...g.$attrs},{"items-selected":u.value,"onUpdate:itemsSelected":[S[0]||(S[0]=_=>u.value=_),p],"hide-footer":!0,class:{"app-hide-footer":g.hideFooter},headers:g.headers,"checkbox-column-width":30,"rows-items":g.rowItems,"rows-per-page":g.rowsPerPage,"body-row-class-name":"drop-shadow rounded-xl",onClickRow:C,onContextmenuRow:a.unref(l).open}),a.createSlots({loading:a.withCtx(()=>[a.createVNode(a.unref(Ra),{size:"medium"})]),_:2},[a.renderList(Object.keys(a.unref(i)),(_,b)=>({name:_,fn:a.withCtx(T=>[a.renderSlot(g.$slots,_,a.normalizeProps(a.guardReactiveProps(T)))])}))]),1040,["items-selected","class","headers","rows-items","rows-per-page","onContextmenuRow"]),f.value&&!g.hideFooter?(a.openBlock(),a.createBlock(XO,{key:0,"data-table":f.value,"current-page":g.currentPage,onNextPage:y,onPreviousPage:v,onUpdatePage:h},{results:a.withCtx(({results:_})=>[a.renderSlot(g.$slots,"footer-results",{results:_})]),_:3},8,["data-table","current-page"])):a.createCommentVNode("",!0)],2))}}),JO=(e,t,n)=>{const r=e[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((o,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},Gy=a.defineComponent({__name:"Error",setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.unref(B1),{type:"error",title:"Onbekend type",description:"Type wordt niet ondersteund."}))}}),QO=Object.freeze(Object.defineProperty({__proto__:null,default:Gy},Symbol.toStringTag,{value:"Module"})),Xy=a.defineComponent({__name:"Loading",setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",null,[a.createVNode(a.unref(Ra))]))}}),ZO=Object.freeze(Object.defineProperty({__proto__:null,default:Xy},Symbol.toStringTag,{value:"Module"})),e9={default:["text-white"],danger:["text-red-500"]},t9={contextMenu:["hover:bg-zinc-600","px-2","py-1"],actionBar:["hover:bg-black-100/20"]},n9={actionBar:"before:-top-4 before:left-1/2 before:border-x-10 before:border-b-10 before:border-x-transparent before:border-b-secondary",contextMenu:"before:left-[-5px] before:top-0 before:border-y-10 before:border-r-10 before:border-y-transparent before:border-r-secondary"},r9=a.defineComponent({__name:"AppActionBarSubMenu",props:{action:{},context:{type:Boolean,default:!1},item:{default:void 0}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,o=a.defineAsyncComponent({loader:async()=>typeof n.action.component=="string"?JO(Object.assign({"./Components/Error.vue":()=>Promise.resolve().then(()=>QO),"./Components/Loading.vue":()=>Promise.resolve().then(()=>ZO),"./Components/MultiSelect.vue":()=>Promise.resolve().then(()=>sq)}),`./Components/${E3.pascal(n.action.component)}.vue`,3):n.action.component,errorComponent:Gy,loadingComponent:Xy});return(i,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"-top-full left-full translate-x-3 translate-y-[39px]":n.context,"left-1/2 top-6 -translate-x-1/2 translate-y-10":!n.context},"absolute w-fit rounded-lg bg-secondary p-2"])},[a.createElementVNode("div",{class:a.normalizeClass([a.unref(n9)[n.context?"contextMenu":"actionBar"],"relative w-fit before:absolute before:-translate-x-3"])},[a.createVNode(a.unref(o),a.mergeProps({...n,...i.action.componentProperties},{"data-test-action-menu":"",onClose:s[0]||(s[0]=()=>r("close"))}),null,16)],2)],2))}}),Ky=a.defineComponent({__name:"AppActionBarItem",props:{action:{},context:{type:Boolean,default:!1},item:{default:void 0}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,o=Ai(),i=Yc(),s=a.ref(null),l=a.ref(!1),c=a.ref(!1),d=a.ref([]),u=a.computed(()=>c.value?Ra:l.value&&n.action.confirm?O1:n.action.icon),f=a.computed(()=>n.action.type??"default"),p=a.computed(()=>typeof n.action.hidden=="function"?n.context&&i.item?n.action.hidden([mo.toValue(i.item)],!0):n.action.hidden(o.tableSelection.value,!1):n.action.hidden);async function h(){var C,g,S;if((n.action.confirm||n.action.component)&&!l.value){l.value=!0;return}c.value=!0,l.value=!1;const y=await((g=(C=n.action).onClick)==null?void 0:g.call(C,n.item??o.tableSelection.value));c.value=!1,(((S=n.action)==null?void 0:S.resetSelection)??!0)&&o.resetSelection(),y&&r("close")}function v(){l.value=!1,r("close")}return mo.onClickOutside(s,()=>{l.value=!1}),(y,C)=>{const g=a.resolveDirective("tippy");return p.value!==!0?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"actionBarItem",ref:s,class:a.normalizeClass([[...a.unref(e9)[f.value],...a.unref(t9)[n.context?"contextMenu":"actionBar"]],"relative cursor-pointer rounded-md transition-colors duration-200"])},[a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"px-2.5 py-4":!y.context},"flex w-full items-center space-x-2 whitespace-nowrap"]),"data-test-action-bar-icon":"",onClick:h},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.value),{class:a.normalizeClass({"text-yellow-600":l.value&&y.action.confirm,"size-4":y.context,"size-5":!y.context,"!size-5":c.value})},null,8,["class"])),a.renderSlot(y.$slots,"default")],2)),[[g,y.action.name]]),n.action.component&&l.value?(a.openBlock(),a.createBlock(r9,a.mergeProps({key:0,modelValue:d.value,"onUpdate:modelValue":C[0]||(C[0]=S=>d.value=S)},n,{onClose:v}),null,16,["modelValue"])):a.createCommentVNode("",!0)],2)):a.createCommentVNode("",!0)}}}),a9={class:"flex py-4.5"},o9={class:"w-28 whitespace-nowrap pl-2","data-test-selection-text":""},i9={class:"flex"},$p=a.defineComponent({__name:"AppActionBar",setup(e){const{selection:t,actions:n,isOpen:r,close:o,resetSelection:i,selectionText:s}=Ai(),l=a.ref([1]),c=a.computed(()=>s.value.replace(":selection",String(t.value.length)));function d(){l.value=[1],i()}function u(){i(),o()}return mo.onKeyStroke(["Escape"],f=>{f.preventDefault(),u()}),(f,p)=>(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",a9,[a.createVNode(By,{modelValue:l.value,"onUpdate:modelValue":p[0]||(p[0]=h=>l.value=h),value:1,type:"checkbox",onChange:d},null,8,["modelValue"]),a.createElementVNode("div",o9,a.toDisplayString(c.value),1)]),a.createElementVNode("div",i9,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(n),(h,v)=>(a.openBlock(),a.createBlock(Ky,{key:`action-item-${v}`,action:h,onClose:u},null,8,["action"]))),128))]),a.createElementVNode("div",null,[a.createVNode(a.unref(Gp),{class:"size-5 cursor-pointer",onClick:u})])],2))}}),Ju=a.defineComponent({__name:"AppPaginationItem",props:{as:{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"]))}}),s9={class:"!my-0 flex items-center justify-between border-zinc-200 sm:px-6"},Jy=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=t,o=a.ref(2),i=a.computed(()=>{var h,v;return((v=(h=n.meta)==null?void 0:h.meta)==null?void 0:v.currentPage)??n.currentPage??1}),s=a.computed(()=>{var h,v;return((v=(h=n.meta)==null?void 0:h.meta)==null?void 0:v.lastPage)??n.lastPage??1}),l=a.computed(()=>{const h=i.value-o.value;return h>0?h:1}),c=a.computed(()=>{const h=i.value+o.value;return h<s.value?h:s.value}),d=a.computed(()=>{const h=i.value-1;return h>0?h:null}),u=a.computed(()=>{const h=i.value+1;return h<=s.value?h:null}),f=a.computed(()=>{const h=[];l.value>1&&(h.push(1),l.value>2&&h.push(0));for(let v=l.value;v<=c.value;v+=1)h.push(v);return c.value<s.value&&(c.value+1!==s.value&&h.push(0),h.push(s.value)),h});function p(h){h&&r("paginate",h)}return(h,v)=>(a.openBlock(),a.createElementBlock("div",s9,[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(Ju,{disabled:d.value===null,href:"#",class:"rounded-l-lg",onClick:v[0]||(v[0]=a.withModifiers(()=>r("previousPage"),["prevent"]))},{default:a.withCtx(()=>[v[2]||(v[2]=a.createElementVNode("span",{class:"sr-only"},"previous",-1)),a.createVNode(a.unref(Yp),{class:"-mx-1.5 size-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(Ju,{key:`pagination-${y}`,as:y?"a":"span",active:y===i.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(Ju,{class:a.normalizeClass([{"cursor-not-allowed":u.value===null},"rounded-r-lg"]),disabled:u.value===null,href:"#",onClick:v[1]||(v[1]=a.withModifiers(()=>r("nextPage"),["prevent"]))},{default:a.withCtx(()=>[v[3]||(v[3]=a.createElementVNode("span",{class:"sr-only"},"next",-1)),a.createVNode(a.unref(b2),{class:"-mx-1.5 size-5 stroke-2","aria-hidden":"true"})]),_:1},8,["class","disabled"])],2)])]))}}),l9=["aria-checked","disabled"],Qy=a.defineComponent({__name:"AppToggle",props:a.mergeModels({disabled:{type:Boolean,default:!1}},{modelValue:{type:Boolean,required:!1},modelModifiers:{}}),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},i[0]||(i[0]=[a.createElementVNode("span",{"aria-hidden":"true",class:"pointer-events-none inline-block size-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)]),8,l9))}}),c9={class:"flex justify-between"},u9={"data-test-title":""},d9={key:0,"data-test-default-slot":""},f9=a.defineComponent({__name:"AppToggleCard",props:a.mergeModels({title:{},disabled:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=a.useModel(e,"modelValue"),n=a.useSlots();return(r,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([r.disabled?"bg-zinc-50":"bg-white","rounded-xl p-4 shadow-[0px_2px_4px_0px_rgba(32,32,32,0.08)]"])},[a.createElementVNode("div",c9,[a.createElementVNode("span",u9,[a.renderSlot(r.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(r.title),1)])]),a.createVNode(a.unref(Qy),{ref:r.title,modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=i=>t.value=i),disabled:r.disabled,"data-test-toggle":""},null,8,["modelValue","disabled"])]),a.unref(n).default?a.withDirectives((a.openBlock(),a.createElementBlock("div",d9,[a.renderSlot(r.$slots,"default")],512)),[[a.vShow,t.value]]):a.createCommentVNode("",!0)],2))}}),p9=["href","onClick"],m9={class:"text-base font-bold","data-test-text":""},h9=a.defineComponent({__name:"AppMenuItem",props:{name:{},icon:{},to:{},visible:{type:Boolean,default:!0}},setup(e){return(t,n)=>{const r=a.resolveComponent("RouterLink");return t.visible?(a.openBlock(),a.createBlock(r,{key:0,to:t.to,custom:""},{default:a.withCtx(({href:o,isActive:i,navigate:s})=>[a.renderSlot(t.$slots,"default",{},()=>[a.createElementVNode("a",{href:o,class:a.normalizeClass([{"bg-zinc-100 hover:!bg-zinc-100":i},"flex cursor-pointer items-center space-x-2 rounded-lg px-4 py-3 hover:bg-zinc-100"]),onClick:s},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.icon),{class:"size-4 stroke-2","data-test-icon":""})),a.createElementVNode("span",m9,a.toDisplayString(t.name),1)],10,p9)])]),_:3},8,["to"])):a.createCommentVNode("",!0)}}}),v9={class:"space-y-4"},g9={class:"flex w-full px-2"},y9={class:"text-base"},b9={class:"text-base"},w9=a.defineComponent({__name:"AppMenu",props:{responsive:{type:Boolean,default:!0},items:{}},setup(e){const t=ms.useRoute(),n=a.ref(t),r=ms.useRouter();async function o(i){await r.push(i)}return(i,s)=>(a.openBlock(),a.createElementBlock("div",v9,[i.responsive?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass([{"md:hidden":i.responsive},"block"])},[a.createVNode(a.unref(Uc),{modelValue:n.value,"onUpdate:modelValue":s[0]||(s[0]=l=>n.value=l),options:i.items,"can-clear":!1,"append-to-body":!0,"open-direction":"down","dropdown-classes":"!max-h-48","wrapper-classes":"w-full","value-prop":"to",onSelect:o},{singlelabel:a.withCtx(l=>[a.createElementVNode("div",g9,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(l.value.icon),{class:"mr-2 size-6","data-test-icon":""})),a.createElementVNode("span",y9,a.toDisplayString(l.value.name),1)])]),option:a.withCtx(l=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(l.option.icon),{class:"mr-2 size-5","data-test-icon":""})),a.createElementVNode("span",b9,a.toDisplayString(l.option.name),1)]),_:1},8,["modelValue","options"])],2)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass([{hidden:i.responsive},"!mt-0 md:block md:space-y-2"])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.items,l=>(a.openBlock(),a.createBlock(h9,a.mergeProps({ref_for:!0},l,{key:l.name}),null,16))),128))],2)]))}}),k9={class:"flex flex-col space-y-4 border-b border-zinc-200 py-8 lg:flex-row lg:space-x-10 lg:space-y-0"},_9={class:"flex shrink-0 flex-col lg:w-80 lg:space-y-1"},C9={key:0,class:"text-xl font-bold text-zinc-900","data-test-title":""},S9={key:0,class:"text-zinc-700","data-test-description":""},E9={class:"w-full min-w-0"},x9=a.defineComponent({__name:"AppSection",props:{title:{},description:{}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("section",k9,[a.createElementVNode("div",_9,[a.renderSlot(t.$slots,"titleDescription",{},()=>[a.renderSlot(t.$slots,"title",{},()=>[t.title?(a.openBlock(),a.createElementBlock("h3",C9,a.toDisplayString(t.title),1)):a.createCommentVNode("",!0)]),a.renderSlot(t.$slots,"description",{},()=>[t.description?(a.openBlock(),a.createElementBlock("p",S9,a.toDisplayString(t.description),1)):a.createCommentVNode("",!0)])])]),a.createElementVNode("div",E9,[a.renderSlot(t.$slots,"default")])]))}}),T9=a.defineComponent({__name:"ShortcutItem",props:{shortcut:{},item:{}},setup(e){const t=e,n=a.ref(t.shortcut.name);async function r(o){await t.shortcut.click(t.shortcut,t.item,o),t.shortcut.copied&&(n.value="Gekopieërd",setTimeout(()=>{n.value=t.shortcut.name},1500))}return(o,i)=>(a.openBlock(),a.createElementBlock("button",{type:"button",class:"w-full p-1.5 text-xxs text-white hover:bg-zinc-600",onClick:r},a.toDisplayString(o.shortcut.copied?n.value:o.shortcut.name),1))}}),P9={class:"text-base"},Zy=a.defineComponent({__name:"AppContextMenu",props:{item:{},event:{},actions:{}},emits:["actionClicked","close","open","cancel"],setup(e,{expose:t,emit:n}){const r=e,o=n,i=a.ref(!0),s=a.ref(!1),l=Ai(),c=Yc(),d=a.ref(null),u=a.computed(()=>r.actions??l.actions.value);async function f(){var v;i.value=!0,o("open"),(v=document.querySelector("#app"))==null||v.classList.add("context-menu-open")}async function p(){var v;i.value=!1,o("close"),(v=document.querySelector("#app"))==null||v.classList.remove("context-menu-open")}async function h(v){o("actionClicked",v),i.value=!1,setTimeout(()=>{s.value=!1},300)}return t({isOpen:i,open:f,close:p,submit:h}),mo.onClickOutside(d,p),mo.onKeyStroke(["Escape"],v=>{v.preventDefault(),p()}),(v,y)=>i.value&&(u.value.length>0||a.unref(c).shortcuts.value.length>0)?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"contextMenuElement",ref:d,style:a.normalizeStyle(`left: ${v.event.x}px; top: ${v.event.y}px;`),class:"app-context-menu fixed z-50 flex w-64 flex-col rounded-lg bg-secondary p-2 drop-shadow-card empty:hidden","data-test-context-menu":""},[a.unref(c).shortcuts.value.length>0?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass([{"mb-2":u.value.length>0},"flex justify-between divide-x divide-zinc-600 rounded-md border border-zinc-600"])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(c).shortcuts.value,C=>(a.openBlock(),a.createBlock(T9,{key:C.name,shortcut:C,item:v.item},null,8,["shortcut","item"]))),128))],2)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,(C,g)=>(a.openBlock(),a.createBlock(Ky,{key:`action-item-${g}`,action:C,context:!0,item:v.item,class:"flex h-10 items-center space-x-2 first:rounded-t-lg last:rounded-b-lg",onClose:p},{default:a.withCtx(()=>[a.createElementVNode("span",P9,a.toDisplayString(C.name),1)]),_:2},1032,["action","item"]))),128))],4)):a.createCommentVNode("",!0)}}),I9={class:"mt-6"},A9={class:"overflow-hidden rounded-full bg-zinc-200"},M9=a.defineComponent({__name:"AppProgressBar",props:{steps:{},percentage:{},activeIndex:{},unmount:{type:Boolean,default:!0}},setup(e){const t=e,n=a.useSlots(),r=["grid-cols-1","grid-cols-2","grid-cols-3","grid-cols-4","grid-cols-5","grid-cols-6","grid-cols-7","grid-cols-8"],o=a.computed(()=>n.default!==void 0),i=a.computed(()=>{var c;return t.steps?t.steps:((c=n.default)==null?void 0:c.call(n).map((d,u)=>{var f,p,h;return{name:((f=d==null?void 0:d.props)==null?void 0:f.name)??((h=(p=d==null?void 0:d.type)==null?void 0:p.props)==null?void 0:h.name),completed:s.value>=u,active:s.value===u,component:d}}))??[]}),s=a.computed(()=>{var c;return t.activeIndex!==void 0&&t.activeIndex>-1?t.activeIndex:(c=i.value)==null?void 0:c.findIndex(d=>d.active)}),l=a.computed(()=>t.percentage?t.percentage:i.value?i.value.filter(d=>d.completed).length/i.value.length*100:0);return(c,d)=>(a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",I9,[a.createElementVNode("div",A9,[a.createElementVNode("div",{style:a.normalizeStyle(`width: ${l.value}%`),class:"h-2.5 rounded-full bg-primary transition-all","data-test-progress-bar":""},null,4)]),a.createElementVNode("div",{class:a.normalizeClass([r[i.value.length-1],"mt-3 hidden w-full text-sm font-medium text-zinc-600 sm:grid"])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(u,f)=>(a.openBlock(),a.createElementBlock("div",{key:`step-${f}`,class:a.normalizeClass([{"font-bold":u.completed},"text-base text-zinc-900"]),"data-test-step-title":""},[a.renderSlot(c.$slots,`step-${f+1}`,{step:u},()=>[a.createTextVNode(a.toDisplayString(u.name),1)])],2))),128))],2),o.value?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(i.value,(u,f)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[c.unmount&&((u==null?void 0:u.active)??!0)||!c.unmount?a.withDirectives((a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.component),{key:f})),[[a.vShow,!c.unmount&&((u==null?void 0:u.active)??!0)||c.unmount]]):a.createCommentVNode("",!0)],64))),256)):a.createCommentVNode("",!0)])]))}}),O9={},N9={class:"mt-8"};function B9(e,t){return a.openBlock(),a.createElementBlock("div",N9,[a.renderSlot(e.$slots,"default")])}const D9=Ln(O9,[["render",B9]]);class Iv{constructor(t){Ee(this,"color","");this.color=t}parseAlphaColor(){return/^rgba\((\d{1,3}%?\s*,\s*){3}(\d*(?:\.\d+)?)\)$/.test(this.color)?this.parseRgba():/^hsla\(\d+\s*,\s*([\d.]+%\s*,\s*){2}(\d*(?:\.\d+)?)\)$/.test(this.color)?this.parseHsla():/^#([\dA-Fa-f]{4}|[\dA-Fa-f]{8})$/.test(this.color)?this.parseAlphaHex():/^transparent$/.test(this.color)?this.parseTransparent():{color:this.color,opacity:"1"}}parseRgba(){var t;return{color:this.color.replace(/,(?!.*,).*(?=\))|a/g,""),opacity:(t=this.color.match(/\.\d+|[01](?=\))/))==null?void 0:t[0]}}parseHsla(){var t;return{color:this.color.replace(/,(?!.*,).*(?=\))|a/g,""),opacity:(t=this.color.match(/\.\d+|[01](?=\))/))==null?void 0:t[0]}}parseAlphaHex(){return{color:this.color.length===5?this.color.slice(0,4):this.color.slice(0,7),opacity:this.color.length===5?(parseInt(this.color.slice(4,5)+this.color.slice(4,5),16)/255).toFixed(2):(parseInt(this.color.slice(7,9),16)/255).toFixed(2)}}parseTransparent(){return{color:"#fff",opacity:0}}}const R9=["height","width","viewBox"],L9=["id"],$9=["offset","stop-color","stop-opacity"],z9=["offset","stop-color","stop-opacity"],V9=["id"],F9=["stdDeviation"],j9=["points","fill","stroke","filter","stroke-width"],H9=["points","fill","stroke","stroke-width","stroke-linejoin"],U9=["points","fill"],W9=a.defineComponent({__name:"Star",props:{fill:{default:0},points:{default:()=>[]},size:{default:50},starId:{},activeColor:{},inactiveColor:{},borderColor:{default:"#000"},activeBorderColor:{default:"#000"},borderWidth:{default:0},roundedCorners:{type:Boolean,default:!1},glow:{default:0},glowColor:{default:void 0},animate:{type:Boolean,default:!1}},emits:["starMouseMove","starSelected"],setup(e,{emit:t}){const n=e,r=t,o=a.ref([19.8,2.2,6.6,43.56,39.6,17.16,0,17.16,33,43.56]),i=a.ref(""),s=a.ref(""),l=a.ref(!0),c=a.computed(()=>o.value.join(",")),d=a.computed(()=>`url(#${i.value})`),u=a.computed(()=>n.roundedCorners&&n.borderWidth<=0?6:n.borderWidth),f=a.computed(()=>{const z=n.roundedCorners&&n.borderWidth<=0?parseInt(`${n.size}`,10)-parseInt(`${u.value}`,10):n.size;return parseInt(`${z}`,10)+parseInt(`${u.value}`,10)}),p=a.computed(()=>`${n.fill}%`),h=a.computed(()=>n.roundedCorners&&n.borderWidth<=0?n.fill<=0?n.inactiveColor:n.activeColor:n.fill<=0?n.borderColor:n.activeBorderColor),v=a.computed(()=>[...o.value].reduce((z,V)=>Math.max(z,V))),y=a.computed(()=>`0 0 ${v.value} ${v.value}`),C=a.computed(()=>n.animate&&l.value),g=a.computed(()=>n.roundedCorners?"round":"miter");a.onBeforeMount(()=>{o.value=n.points.length>0?n.points:o.value,A(),i.value=x(),s.value=x()});function S(z){z.touchAction!=="undefined"&&r("starMouseMove",{position:T(z),id:n.starId})}function _(){a.nextTick(()=>{l.value=!0})}function b(){a.nextTick(()=>{l.value=!1})}function T(z){const V=.92*n.size,Y=Math.max(z.offsetX,1),D=Math.round(100/V*Y);return Math.min(D,100)}function E(z){r("starSelected",{id:n.starId,position:T(z)})}function x(){return Math.random().toString(36).slice(7)}function A(){o.value=o.value.map((z,V)=>{const Y=V%2===0?u.value*1.5:0;return n.size/v.value*z+Y})}function P(z){return new Iv(z).parseAlphaColor().color}function M(z){return new Iv(z).parseAlphaColor().opacity}return(z,V)=>(a.openBlock(),a.createElementBlock("svg",{class:a.normalizeClass([{"transition-all hover:rotate-12":C.value},"overflow-visible"]),height:f.value,width:f.value,viewBox:y.value,onMousemove:S,onClick:E,onTouchstart:_,onTouchend:b},[a.createElementVNode("linearGradient",{id:i.value,x1:"0",x2:"100%",y1:"0",y2:"0"},[a.createElementVNode("stop",{offset:p.value,"stop-color":P(z.activeColor),"stop-opacity":M(z.activeColor)},null,8,$9),a.createElementVNode("stop",{offset:p.value,"stop-color":P(z.inactiveColor),"stop-opacity":M(z.inactiveColor)},null,8,z9)],8,L9),a.createElementVNode("filter",{id:s.value,height:"130%",width:"130%",filterUnits:"userSpaceOnUse"},[a.createElementVNode("feGaussianBlur",{stdDeviation:z.glow,result:"coloredBlur"},null,8,F9),V[0]||(V[0]=a.createElementVNode("feMerge",null,[a.createElementVNode("feMergeNode",{in:"coloredBlur"}),a.createElementVNode("feMergeNode",{in:"SourceGraphic"})],-1))],8,V9),a.withDirectives(a.createElementVNode("polygon",{points:c.value,fill:d.value,stroke:z.glowColor,filter:`url(#${s.value})`,"stroke-width":u.value},null,8,j9),[[a.vShow,z.glowColor&&z.glow>0&&z.fill>0]]),a.createElementVNode("polygon",{points:c.value,fill:d.value,stroke:h.value,"stroke-width":u.value,"stroke-linejoin":g.value},null,8,H9),a.createElementVNode("polygon",{points:c.value,fill:d.value},null,8,U9)],42,R9))}}),q9={class:"sr-only"},Y9=a.defineComponent({__name:"StarRating",props:{rating:{default:0},increment:{default:1},roundStartRating:{type:Boolean,default:!0},activeColor:{default:"#ffd055"},inactiveColor:{default:"#d8d8d8"},maxRating:{default:5},starPoints:{default:()=>[]},starSize:{default:50},showRating:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},textClass:{default:""},inline:{type:Boolean,default:!1},borderColor:{default:"#999"},activeBorderColor:{default:null},borderWidth:{default:0},roundedCorners:{type:Boolean,default:!1},padding:{default:0},rtl:{type:Boolean,default:!1},fixedPoints:{default:null},glow:{default:0},glowColor:{default:"#fff"},clearable:{type:Boolean,default:!1},activeOnClick:{type:Boolean,default:!1},animate:{type:Boolean,default:!1}},emits:["update:rating","hover:rating"],setup(e,{emit:t}){const n=e,r=t,o=a.ref(0),i=a.ref([]),s=a.ref(0),l=a.ref(0),c=a.ref(!1),d=a.computed(()=>n.fixedPoints===null?s.value:s.value.toFixed(n.fixedPoints)),u=a.computed(()=>c.value||n.roundStartRating),f=a.computed(()=>n.padding+n.borderWidth),p=a.computed(()=>Array.isArray(n.activeColor)?b(n.activeColor,n.maxRating,n.activeColor.slice(-1)[0]):Array.from({length:n.maxRating}).fill(n.activeColor)),h=a.computed(()=>n.activeOnClick?`${l.value>0?p.value[Math.ceil(l.value)-1]:n.inactiveColor}`:`${s.value>0?p.value[Math.ceil(s.value)-1]:n.inactiveColor}`),v=a.computed(()=>{if(Array.isArray(n.activeBorderColor))return b(n.activeBorderColor,n.maxRating,n.activeBorderColor.slice(-1)[0]);const T=n.activeBorderColor?n.activeBorderColor:n.borderColor;return Array.from({length:n.maxRating}).fill(T)}),y=a.computed(()=>n.activeOnClick?`${l.value>0?v.value[Math.ceil(l.value)-1]:n.borderColor}`:`${s.value>0?v.value[Math.ceil(s.value)-1]:n.borderColor}`),C=a.computed(()=>{const T=1/n.increment;return Math.min(n.maxRating,Math.ceil(s.value*T)/T)});a.watch(()=>n.rating,T=>{s.value=T,l.value=T,_(u.value)}),a.onBeforeMount(()=>{o.value=n.increment*100,s.value=n.rating,l.value=s.value,_(n.roundStartRating)});function g(T,E=!1){if(n.readOnly)return;const x=n.rtl?(100-T.position)/100:T.position/100;if(s.value=(T.id+x-1).toFixed(2),s.value=s.value>n.maxRating?n.maxRating:s.value,E){_(!0,!0),l.value=n.clearable&&s.value===l.value?0:s.value,r("update:rating",l.value),c.value=!0;return}_(!0,!n.activeOnClick),r("hover:rating",s.value)}function S(){n.readOnly||(s.value=l.value,_(u.value))}function _(T=!0,E=!0){s.value=T?C.value:s.value;for(let x=0;x<n.maxRating;x++){let A=0;x<s.value&&(A=s.value-x>1?100:(s.value-x)*100),E&&(i.value[x]=Math.round(A))}}function b(T,E,x){return Object.assign([E].fill(x),T)}return(T,E)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"inline-flex":T.inline},"flex items-center"])},[a.createElementVNode("div",q9,[a.renderSlot(T.$slots,"screen-reader",{rating:l.value,stars:T.maxRating},()=>[a.createElementVNode("span",null,"Rated "+a.toDisplayString(l.value)+" stars out of "+a.toDisplayString(T.maxRating),1)])]),a.createElementVNode("div",{class:"flex items-center",onMouseleave:S},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(T.maxRating,x=>(a.openBlock(),a.createElementBlock("span",{key:x,class:a.normalizeClass([{"cursor-pointer":!T.readOnly},"inline-block"]),style:a.normalizeStyle(`margin-right: ${f.value}px`)},[a.createVNode(W9,{fill:i.value[x-1],size:T.starSize,points:T.starPoints,"star-id":x,step:o.value,"active-color":h.value,"inactive-color":T.inactiveColor,"border-color":T.borderColor,"active-border-color":y.value,"border-width":T.borderWidth,"rounded-corners":T.roundedCorners,rtl:T.rtl,glow:T.glow,"glow-color":T.glowColor,animate:T.animate,onStarSelected:E[0]||(E[0]=A=>g(A,!0)),onStarMouseMove:g},null,8,["fill","size","points","star-id","step","active-color","inactive-color","border-color","active-border-color","border-width","rounded-corners","rtl","glow","glow-color","animate"])],6))),128)),T.showRating?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass([T.textClass,"ml-2"])},a.toDisplayString(d.value),3)):a.createCommentVNode("",!0)],32)],2))}}),G9=a.defineComponent({__name:"AppRating",props:a.mergeModels({title:{default:""},stars:{default:5},showRating:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=a.useModel(e,"modelValue");return(n,r)=>(a.openBlock(),a.createBlock(a.unref(cp),{"content-classes":"flex items-center gap-8 select-none",class:"!p-4"},{default:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(n.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(n.title),1)])]),a.createVNode(Y9,{rating:t.value,"onUpdate:rating":r[0]||(r[0]=o=>t.value=o),"rounded-corners":!1,"max-rating":n.stars,"show-rating":n.showRating,increment:.5,padding:.5,"star-size":25,"border-width":0,inline:!0,"read-only":n.readonly,"active-color":"#FACC15","inactive-color":"#D4D4D8",class:"-mt-1 ml-auto"},null,8,["rating","max-rating","show-rating","read-only"])]),_:3}))}});var X9=function(){function e(t){var n=t.rootElement,r=t.durationSlide,o=r===void 0?1e3:r,i=t.durationFade,s=i===void 0?200:i,l=t.initialNumber,c=t.animateInitialNumber,d=c===void 0?!0:c,u=t.numberFormatter,f=u===void 0?function(S){return S.toString()}:u,p=t.decimalSeparator,h=p===void 0?".":p,v=t.wrapperClassname,y=v===void 0?"numberflip-digit-container":v,C=t.digitClassname,g=C===void 0?"numberflip-digit-container-value":C;this.rootElement=n,this.durationSlide=o,this.durationFade=s,this.numberFormatter=f,this.decimalSeparator=h,this.wrapperClassname=y,this.digitClassname=g,this.rootElement.style.display="flex",l!==void 0&&this.setNumber(l,d)}return e.prototype.setNumber=function(t,n){n===void 0&&(n=!0),this.adjustAmountOfDigitContainers(t),this.setDigitInContainers(t,n)},e.prototype.adjustAmountOfDigitContainers=function(t){for(var n=this.getDigitsOfNumber(t).length,r=this.rootElement.getElementsByClassName(this.wrapperClassname).length;r<n;)this.rootElement.insertAdjacentHTML("beforeend",'<div class="'.concat(this.wrapperClassname,'">')+`<span style="visibility: hidden;">0</span>
612
+ disabled:cursor-not-allowed disabled:border-zinc-100 disabled:!bg-zinc-50`;function JP(e,t,n,r,o,i,s,l,c){if(Dc(e))return K5(e,o);const d=((c==null?void 0:c.class)??"").includes("text-center"),u=rc("leading",e,r,s,t,n,l),f=rc("trailing",e,r,s,t,n,l);return{"border-zinc-300":!o,"!border-zinc-100 !bg-zinc-50":t,"px-10":d&&(u||f),"pl-10 pr-5 group-aria-expanded:pl-7":u&&!d,"pr-10 pl-5":f&&!d,"px-2":!u&&!f,"!pr-0":eo(e),"!pl-0":!u&&eo(e),[KP]:!s,"block w-full appearance-none bg-transparent focus:outline-none focus-visible:outline-none":s,"py-3":!eo(e),"h-[42px]":e!=="textarea","h-24":e==="textarea","border-error text-error placeholder-error focus:ring-error focus:border-error":o,"text-center bg-transparent text-lg uppercase":Xd(e),"border bg-white focus:ring-1 focus:ring-zinc-300 hover:!bg-zinc-100":!Xd(e)&&!s,"border ring-1 ring-zinc-300":i&&!s,"read-only:cursor-default read-only:border-zinc-300 read-only:bg-zinc-50":!eo(e)}}const QP=["type"],ZP=["value"],eI=a.defineComponent({__name:"Input",props:{modelValue:{},type:{},custom:{type:Boolean}},emits:["update:modelValue","open"],setup(e,{emit:t}){const n=e,r=t,o=a.computed({get:()=>n.modelValue,set:l=>r("update:modelValue",l)}),i=a.computed(()=>GP(n.type));function s(l){o.value=l.target.value}return(l,c)=>i.value==="input"?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,"onUpdate:modelValue":c[0]||(c[0]=d=>o.value=d),type:l.type,"data-test-input":""},null,8,QP)),[[a.vShow,!l.custom],[a.vModelDynamic,o.value]]):i.value==="textarea"?(a.openBlock(),a.createElementBlock("textarea",{key:1,value:l.modelValue,"data-test-textarea":"",onInput:s},null,40,ZP)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.value),{key:2,modelValue:o.value,"onUpdate:modelValue":c[1]||(c[1]=d=>o.value=d),onOpen:c[2]||(c[2]=()=>r("open"))},{default:a.withCtx(()=>[a.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3},40,["modelValue"]))}}),tI=Ln(eI,[["__scopeId","data-v-ad3e2fbe"]]),nI=["aria-expanded"],rI=["data-error"],aI=["data-error"],By=a.defineComponent({inheritAttrs:!1,__name:"AppInput",props:a.mergeDefaults({type:{},modelValue:{},modelModifiers:{},readonly:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean},custom:{type:Boolean},required:{type:Boolean},hasError:{type:Boolean},plain:{type:Boolean},errorMessage:{},label:{},wrapperClasses:{},errorWrapperClasses:{},inputWrapperClasses:{},iconClasses:{},labelClasses:{},init:{}},YP),emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=`input-${Tx()}`,s=a.ref(!1),l=a.ref(!1),c=a.useAttrs(),d=a.computed({get:()=>{if(n.modelModifiers.dotToComma){const P=String(n.modelValue).replace(/,/g,".");return!l.value&&parseFloat(P)?String(parseFloat(P).toFixed(2)).replace(/\./g,","):String(n.modelValue).replace(/\./g,",")}return n.modelValue},set:P=>{n.modelModifiers.dotToComma?r("update:modelValue",String(P).replace(/,/g,".")):r("update:modelValue",P)}}),u=a.computed(()=>eo(n.type)),f=a.computed(()=>q1(n.type)),p=a.computed(()=>Dc(n.type)),h=a.computed(()=>Zl(n.type)),v=a.computed(()=>{var P,M,z;if(u.value){const V=n.type;return a.h(zn,{icon:(P=Vn.far)==null?void 0:P[F5[V]],size:"xs",class:"size-4"})}if(h.value)return a.h(zn,{icon:(M=Vn.far)==null?void 0:M["location-dot"],size:"xs"});if(n.type==="search")return a.h(zn,{icon:(z=Vn.far)==null?void 0:z["magnifying-glass"],size:"xs",class:"size-4"})}),y=a.computed(()=>{const P=n.type;return u.value?H5(P,i):void 0}),C=a.computed(()=>{const P=n.type,M=W5(P);return f.value?{...M,init:{...M.init,...n.init}}:void 0}),g=a.computed(()=>n.type==="license"?"text":n.type),S=a.computed(()=>({id:i,type:g.value,required:n.required,multiple:n.multiple,disabled:n.disabled,readonly:n.readonly})),_=a.computed(()=>n.type==="license"?a.h(Hy,{licensePlateClasses:"!p-0"}):a.h("div")),b=a.computed(()=>{const P=n.inputWrapperClasses,M=n.type==="license"?"items-stretch":"relative w-full items-center justify-center";return`${P} ${M}`});function T(){d.value=c.value}function E(P){if(n.modelModifiers.dotToComma){const M=P.key;/[\d,.]/.test(M)||P.preventDefault()}}function x(){l.value=!1,n.modelModifiers.dotToComma&&parseFloat(String(d.value))&&(d.value=String(parseFloat(String(d.value).replace(/,/g,".")).toFixed(2)).replace(/\./g,","))}function A(){l.value=!0}return(P,M)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([P.wrapperClasses,"group"]),"aria-expanded":P.plain},[(P.label||P.$slots.label)&&!p.value?(a.openBlock(),a.createBlock(a.unref(Lp),{key:0,type:P.type,"has-error":P.hasError,disabled:P.disabled,for:u.value?`dp-input-${i}`:i,class:a.normalizeClass(P.labelClasses)},{default:a.withCtx(()=>[a.renderSlot(P.$slots,"label",{},()=>[a.createTextVNode(a.toDisplayString(P.label),1)])]),_:3},8,["type","has-error","disabled","for","class"])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(_.value),{class:a.normalizeClass([b.value,"flex"])},{default:a.withCtx(()=>{var z;return[a.unref(rc)("leading",P.type,P.loading,P.plain,P.disabled,P.readonly,P.$slots)?(a.openBlock(),a.createBlock(Kh,{key:0,loading:P.loading,class:a.normalizeClass([P.iconClasses,"left-3 top-2.5"]),"data-test-leading-icon":""},{default:a.withCtx(()=>[a.renderSlot(P.$slots,"leadingIcon")]),_:3},8,["loading","class"])):a.createCommentVNode("",!0),a.createVNode(tI,a.mergeProps({modelValue:d.value,"onUpdate:modelValue":M[0]||(M[0]=V=>d.value=V)},{...S.value,...y.value,...C.value,...P.$attrs},{custom:n.custom,class:a.unref(JP)(P.type,P.disabled,P.readonly,P.loading,P.hasError,s.value,P.plain,P.$slots,P.$attrs),"data-error":P.hasError?"input":void 0,onOpen:M[1]||(M[1]=()=>s.value=!0),onBlur:x,onFocus:A,onClosed:M[2]||(M[2]=()=>s.value=!1),onKeypress:E}),{default:a.withCtx(()=>[a.renderSlot(P.$slots,"default")]),_:3},16,["modelValue","custom","class","data-error"]),P.custom?a.renderSlot(P.$slots,"input",a.normalizeProps(a.mergeProps({key:1},{check:T,checked:a.unref(c).value===d.value}))):a.createCommentVNode("",!0),!P.custom&&P.type==="checkbox"?(a.openBlock(),a.createBlock(a.unref(zn),{key:2,icon:(z=a.unref(Vn).far)==null?void 0:z.check,class:"pointer-events-none -ml-4 size-4 -translate-x-0.5 text-white"},null,8,["icon"])):a.createCommentVNode("",!0),a.unref(XP)(P.type,P.$slots,P.label)?(a.openBlock(),a.createElementBlock("label",{key:3,for:i,class:a.normalizeClass([`{ '!text-error': hasError, ${P.labelClasses}}`,"cursor-pointer select-none pl-2 text-base peer-disabled:cursor-not-allowed peer-disabled:text-zinc-300"]),"data-error":P.hasError?P.type:void 0,"data-test-choice-label":""},[a.renderSlot(P.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(P.label),1)])],10,rI)):a.createCommentVNode("",!0),a.unref(rc)("trailing",P.type,P.loading,P.plain,P.disabled,P.readonly,P.$slots)?(a.openBlock(),a.createBlock(Kh,{key:4,loading:P.loading,class:a.normalizeClass([P.iconClasses,"right-3 top-2.5"]),"data-test-trailing-icon":""},{default:a.withCtx(()=>[a.renderSlot(P.$slots,"trailingIcon",{},()=>[v.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(v.value),{key:0})):a.createCommentVNode("",!0)])]),_:3},8,["loading","class"])):a.createCommentVNode("",!0)]}),_:3},8,["class"])),P.hasError&&P.errorMessage?(a.openBlock(),a.createElementBlock("p",{key:1,class:a.normalizeClass([P.errorWrapperClasses,"order-2 mt-1.5 flex items-center gap-x-1 text-xs italic text-error"]),"data-error":P.hasError?"message":void 0,"data-test-error-message":""},a.toDisplayString(P.errorMessage),11,aI)):a.createCommentVNode("",!0)],10,nI))}});function yr(e){return e==null}function oI(e,t,n){const{object:r,valueProp:o,mode:i}=a.toRefs(e),s=a.getCurrentInstance().proxy,l=n.iv,c=(f,p=!0)=>{l.value=u(f);const h=d(f);t.emit("change",h,s),p&&(t.emit("input",h),t.emit("update:modelValue",h))},d=f=>r.value||yr(f)?f:Array.isArray(f)?f.map(p=>p[o.value]):f[o.value],u=f=>yr(f)?i.value==="single"?{}:[]:f;return{update:c}}function _t(e){return a.customRef(()=>({get:e,set:()=>{}}))}function iI(e,t){const{value:n,modelValue:r,mode:o,valueProp:i}=a.toRefs(e),s=a.ref(o.value!=="single"?[]:{}),l=_t(()=>r.value!==void 0?r.value:n.value),c=a.computed(()=>o.value==="single"?s.value[i.value]:s.value.map(u=>u[i.value])),d=_t(()=>o.value!=="single"?s.value.map(u=>u[i.value]).join(","):s.value[i.value]);return{iv:s,internalValue:s,ev:l,externalValue:l,textValue:d,plainValue:c}}function sI(e,t,n){const{regex:r}=a.toRefs(e),o=a.getCurrentInstance().proxy,i=n.isOpen,s=n.open,l=a.ref(null),c=()=>{l.value=""},d=p=>{l.value=p.target.value},u=p=>{if(r.value){let h=r.value;typeof h=="string"&&(h=new RegExp(h)),p.key.match(h)||p.preventDefault()}},f=p=>{if(r.value){let v=(p.clipboardData||window.clipboardData).getData("Text"),y=r.value;typeof y=="string"&&(y=new RegExp(y)),v.split("").every(C=>!!C.match(y))||p.preventDefault()}t.emit("paste",p,o)};return a.watch(l,p=>{!i.value&&p&&s(),t.emit("search-change",p,o)}),{search:l,clearSearch:c,handleSearchInput:d,handleKeypress:u,handlePaste:f}}function lI(e,t,n){const{groupSelect:r,mode:o,groups:i,disabledProp:s}=a.toRefs(e),l=a.ref(null),c=u=>{u===void 0||u!==null&&u[s.value]||i.value&&u&&u.group&&(o.value==="single"||!r.value)||(l.value=u)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function Ku(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(/æ/g,"ae").replace(/œ/g,"oe").replace(/ø/g,"o").replace(new RegExp("\\p{Diacritic}","gu"),"")}function cI(e){return Object.prototype.toString.call(e)==="[object Object]"}function uI(e,t){if(e.length!==t.length)return!1;const n=t.slice().sort();return e.slice().sort().every(function(r,o){return r===n[o]})}const Dy=(e,t)=>{if(e===t)return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o of n)if(!r.includes(o)||!Dy(e[o],t[o]))return!1;return!0};function dI(e,t,n){const{options:r,mode:o,trackBy:i,limit:s,hideSelected:l,createTag:c,createOption:d,label:u,appendNewTag:f,appendNewOption:p,multipleLabel:h,object:v,loading:y,delay:C,resolveOnLoad:g,minChars:S,filterResults:_,clearOnSearch:b,clearOnSelect:T,valueProp:E,allowAbsent:x,groupLabel:A,canDeselect:P,max:M,strict:z,closeOnSelect:V,closeOnDeselect:Y,groups:D,reverse:H,infinite:B,groupOptions:q,groupHideEmpty:J,groupSelect:U,onCreate:j,disabledProp:ie,searchStart:Z,searchFilter:K}=a.toRefs(e),I=a.getCurrentInstance().proxy,L=n.iv,F=n.ev,N=n.search,ce=n.clearSearch,ge=n.update,Fe=n.pointer,ee=n.setPointer,se=n.clearPointer,ae=n.focus,me=n.deactivate,R=n.close,oe=n.localize,Pe=a.ref([]),ue=a.ref([]),Ne=a.ref(!1),de=a.ref(null),G=a.ref(B.value&&s.value===-1?10:s.value),te=a.computed({get:()=>ue.value,set:X=>ue.value=X}),pe=_t(()=>c.value||d.value||!1),xe=_t(()=>f.value!==void 0?f.value:p.value!==void 0?p.value:!0),Te=a.computed(()=>{if(D.value){let X=Ge.value||[],ye=[];return X.forEach(Xe=>{gn(Xe[q.value]).forEach(gt=>{ye.push(Object.assign({},gt,Xe[ie.value]?{[ie.value]:!0}:{}))})}),ye}else{let X=gn(ue.value||[]);return Pe.value.length&&(X=X.concat(Pe.value)),X}}),Se=a.computed(()=>{let X=Te.value;return H.value&&(X=X.reverse()),ke.value.length&&(X=ke.value.concat(X)),ca(X)}),ot=a.computed(()=>{let X=Se.value;return G.value>0&&(X=X.slice(0,G.value)),X}),Ge=a.computed(()=>{if(!D.value)return[];let X=[],ye=ue.value||[];return Pe.value.length&&X.push({[A.value]:" ",[q.value]:[...Pe.value],__CREATE__:!0}),X.concat(ye)}),mn=a.computed(()=>{let X=[...Ge.value].map(ye=>({...ye}));return ke.value.length&&(X[0]&&X[0].__CREATE__?X[0][q.value]=[...ke.value,...X[0][q.value]]:X=[{[A.value]:" ",[q.value]:[...ke.value],__CREATE__:!0}].concat(X)),X}),xn=a.computed(()=>{if(!D.value)return[];let X=mn.value;return mt((X||[]).map((ye,Xe)=>{const gt=gn(ye[q.value]);return{...ye,index:Xe,group:!0,[q.value]:ca(gt,!1).map(Vr=>Object.assign({},Vr,ye[ie.value]?{[ie.value]:!0}:{})),__VISIBLE__:ca(gt).map(Vr=>Object.assign({},Vr,ye[ie.value]?{[ie.value]:!0}:{}))}}))}),hn=a.computed(()=>{switch(o.value){case"single":return!yr(L.value[E.value]);case"multiple":case"tags":return!yr(L.value)&&L.value.length>0}}),zt=a.computed(()=>h.value!==void 0?h.value(L.value,I):L.value&&L.value.length>1?`${L.value.length} options selected`:"1 option selected"),Gt=_t(()=>!Te.value.length&&!Ne.value&&!ke.value.length),ne=_t(()=>Te.value.length>0&&ot.value.length==0&&(N.value&&D.value||!D.value)),ke=a.computed(()=>pe.value===!1||!N.value?[]:Qt(N.value)!==-1?[]:[{[E.value]:N.value,[Ie.value[0]]:N.value,[u.value]:N.value,__CREATE__:!0}]),Ie=a.computed(()=>i.value?Array.isArray(i.value)?i.value:[i.value]:[u.value]),W=_t(()=>{switch(o.value){case"single":return null;case"multiple":case"tags":return[]}}),re=_t(()=>y.value||Ne.value),we=X=>{switch(typeof X!="object"&&(X=Ae(X)),o.value){case"single":ge(X);break;case"multiple":case"tags":ge(L.value.concat(X));break}t.emit("select",he(X),X,I)},Q=X=>{switch(typeof X!="object"&&(X=Ae(X)),o.value){case"single":ut();break;case"tags":case"multiple":ge(Array.isArray(X)?L.value.filter(ye=>X.map(Xe=>Xe[E.value]).indexOf(ye[E.value])===-1):L.value.filter(ye=>ye[E.value]!=X[E.value]));break}t.emit("deselect",he(X),X,I)},he=X=>v.value?X:X[E.value],Ce=X=>{Q(X)},at=(X,ye)=>{if(ye.button!==0){ye.preventDefault();return}Ce(X)},ut=()=>{ge(W.value),t.emit("clear",I)},dt=X=>{if(X.group!==void 0)return o.value==="single"?!1:Ao(X[q.value])&&X[q.value].length;switch(o.value){case"single":return!yr(L.value)&&(L.value[E.value]==X[E.value]||typeof L.value[E.value]=="object"&&typeof X[E.value]=="object"&&Dy(L.value[E.value],X[E.value]));case"tags":case"multiple":return!yr(L.value)&&L.value.map(ye=>ye[E.value]).indexOf(X[E.value])!==-1}},Et=X=>X[ie.value]===!0,Rt=()=>M===void 0||M.value===-1||!hn.value&&M.value>0?!1:L.value.length>=M.value,an=X=>{if(!Et(X)){if(j.value&&!dt(X)&&X.__CREATE__&&(X={...X},delete X.__CREATE__,X=j.value(X,I),X instanceof Promise)){Ne.value=!0,X.then(ye=>{Ne.value=!1,vn(ye)});return}vn(X)}},vn=X=>{switch(X.__CREATE__&&(X={...X},delete X.__CREATE__),o.value){case"single":if(X&&dt(X)){P.value&&Q(X),Y.value&&(se(),R());return}X&&Gn(X),T.value&&ce(),V.value&&(se(),R()),X&&we(X);break;case"multiple":if(X&&dt(X)){Q(X),Y.value&&(se(),R());return}if(Rt()){t.emit("max",I);return}X&&(Gn(X),we(X)),T.value&&ce(),l.value&&se(),V.value&&R();break;case"tags":if(X&&dt(X)){Q(X),Y.value&&(se(),R());return}if(Rt()){t.emit("max",I);return}X&&Gn(X),T.value&&ce(),X&&we(X),l.value&&se(),V.value&&R();break}V.value||ae()},Vi=X=>{if(!(Et(X)||o.value==="single"||!U.value)){switch(o.value){case"multiple":case"tags":Io(X[q.value])?Q(X[q.value]):we(X[q.value].filter(ye=>L.value.map(Xe=>Xe[E.value]).indexOf(ye[E.value])===-1).filter(ye=>!ye[ie.value]).filter((ye,Xe)=>L.value.length+1+Xe<=M.value||M.value===-1)),l.value&&Fe.value&&ee(xn.value.filter(ye=>!ye[ie.value])[Fe.value.index]);break}V.value&&me()}},Gn=X=>{Ae(X[E.value])===void 0&&pe.value&&(t.emit("tag",X[E.value],I),t.emit("option",X[E.value],I),t.emit("create",X[E.value],I),xe.value&&It(X),ce())},Fi=()=>{o.value!=="single"&&we(ot.value.filter(X=>!X.disabled&&!dt(X)))},Io=X=>X.find(ye=>!dt(ye)&&!ye[ie.value])===void 0,Ao=X=>X.find(ye=>!dt(ye))===void 0,Ae=X=>Te.value[Te.value.map(ye=>String(ye[E.value])).indexOf(String(X))],Qt=X=>Te.value.findIndex(ye=>Ie.value.some(Xe=>(parseInt(ye[Xe])==ye[Xe]?parseInt(ye[Xe]):ye[Xe])===(parseInt(X)==X?parseInt(X):X))),Me=X=>["tags","multiple"].indexOf(o.value)!==-1&&l.value&&dt(X),It=X=>{Pe.value.push(X)},mt=X=>J.value?X.filter(ye=>N.value?ye.__VISIBLE__.length:ye[q.value].length):X.filter(ye=>N.value?ye.__VISIBLE__.length:!0),ca=(X,ye=!0)=>{let Xe=X;if(N.value&&_.value){let gt=K.value;gt||(gt=(Vr,tl,Mm)=>Ie.value.some(gu=>{let nl=Ku(oe(Vr[gu]),z.value);return Z.value?nl.startsWith(Ku(tl,z.value)):nl.indexOf(Ku(tl,z.value))!==-1})),Xe=Xe.filter(Vr=>gt(Vr,N.value,I))}return l.value&&ye&&(Xe=Xe.filter(gt=>!Me(gt))),Xe},gn=X=>{let ye=X;return cI(ye)&&(ye=Object.keys(ye).map(Xe=>{let gt=ye[Xe];return{[E.value]:Xe,[Ie.value[0]]:gt,[u.value]:gt}})),ye&&Array.isArray(ye)?ye=ye.map(Xe=>typeof Xe=="object"?Xe:{[E.value]:Xe,[Ie.value[0]]:Xe,[u.value]:Xe}):ye=[],ye},Mo=()=>{yr(F.value)||(L.value=ua(F.value))},Oo=X=>(Ne.value=!0,new Promise((ye,Xe)=>{r.value(N.value,I).then(gt=>{ue.value=gt||[],typeof X=="function"&&X(gt),Ne.value=!1}).catch(gt=>{console.error(gt),ue.value=[],Ne.value=!1}).finally(()=>{ye()})})),ji=()=>{if(hn.value)if(o.value==="single"){let X=Ae(L.value[E.value]);if(X!==void 0){let ye=X[u.value];L.value[u.value]=ye,v.value&&(F.value[u.value]=ye)}}else L.value.forEach((X,ye)=>{let Xe=Ae(L.value[ye][E.value]);if(Xe!==void 0){let gt=Xe[u.value];L.value[ye][u.value]=gt,v.value&&(F.value[ye][u.value]=gt)}})},Hi=X=>{Oo(X)},ua=X=>yr(X)?o.value==="single"?{}:[]:v.value?X:o.value==="single"?Ae(X)||(x.value?{[u.value]:X,[E.value]:X,[Ie.value[0]]:X}:{}):X.filter(ye=>!!Ae(ye)||x.value).map(ye=>Ae(ye)||{[u.value]:ye,[E.value]:ye,[Ie.value[0]]:ye}),el=()=>{de.value=a.watch(N,X=>{X.length<S.value||!X&&S.value!==0||(Ne.value=!0,b.value&&(ue.value=[]),setTimeout(()=>{X==N.value&&r.value(N.value,I).then(ye=>{(X==N.value||!N.value)&&(ue.value=ye,Fe.value=ot.value.filter(Xe=>Xe[ie.value]!==!0)[0]||null,Ne.value=!1)}).catch(ye=>{console.error(ye)})},C.value))},{flush:"sync"})};if(o.value!=="single"&&!yr(F.value)&&!Array.isArray(F.value))throw new Error(`v-model must be an array when using "${o.value}" mode`);return r&&typeof r.value=="function"?g.value?Oo(Mo):v.value==!0&&Mo():(ue.value=r.value,Mo()),C.value>-1&&el(),a.watch(C,(X,ye)=>{de.value&&de.value(),X>=0&&el()}),a.watch(F,X=>{if(yr(X)){ge(ua(X),!1);return}switch(o.value){case"single":(v.value?X[E.value]!=L.value[E.value]:X!=L.value[E.value])&&ge(ua(X),!1);break;case"multiple":case"tags":uI(v.value?X.map(ye=>ye[E.value]):X,L.value.map(ye=>ye[E.value]))||ge(ua(X),!1);break}},{deep:!0}),a.watch(r,(X,ye)=>{typeof e.options=="function"?g.value&&(!ye||X&&X.toString()!==ye.toString())&&Oo():(ue.value=e.options,Object.keys(L.value).length||Mo(),ji())}),a.watch(u,ji),a.watch(s,(X,ye)=>{G.value=B.value&&X===-1?10:X}),{resolvedOptions:te,pfo:Se,fo:ot,filteredOptions:ot,hasSelected:hn,multipleLabelText:zt,eo:Te,extendedOptions:Te,eg:Ge,extendedGroups:Ge,fg:xn,filteredGroups:xn,noOptions:Gt,noResults:ne,resolving:Ne,busy:re,offset:G,select:we,deselect:Q,remove:Ce,selectAll:Fi,clear:ut,isSelected:dt,isDisabled:Et,isMax:Rt,getOption:Ae,handleOptionClick:an,handleGroupClick:Vi,handleTagRemove:at,refreshOptions:Hi,resolveOptions:Oo,refreshLabels:ji}}function fI(e,t,n){const{valueProp:r,showOptions:o,searchable:i,groupLabel:s,groups:l,mode:c,groupSelect:d,disabledProp:u,groupOptions:f}=a.toRefs(e),p=n.fo,h=n.fg,v=n.handleOptionClick,y=n.handleGroupClick,C=n.search,g=n.pointer,S=n.setPointer,_=n.clearPointer,b=n.multiselect,T=n.isOpen,E=a.computed(()=>p.value.filter(F=>!F[u.value])),x=a.computed(()=>h.value.filter(F=>!F[u.value])),A=_t(()=>c.value!=="single"&&d.value),P=_t(()=>g.value&&g.value.group),M=a.computed(()=>I(g.value)),z=a.computed(()=>{const F=P.value?g.value:I(g.value),N=x.value.map(ge=>ge[s.value]).indexOf(F[s.value]);let ce=x.value[N-1];return ce===void 0&&(ce=Y.value),ce}),V=a.computed(()=>{let F=x.value.map(N=>N.label).indexOf(P.value?g.value[s.value]:I(g.value)[s.value])+1;return x.value.length<=F&&(F=0),x.value[F]}),Y=a.computed(()=>[...x.value].slice(-1)[0]),D=a.computed(()=>g.value.__VISIBLE__.filter(F=>!F[u.value])[0]),H=a.computed(()=>{const F=M.value.__VISIBLE__.filter(N=>!N[u.value]);return F[F.map(N=>N[r.value]).indexOf(g.value[r.value])-1]}),B=a.computed(()=>{const F=I(g.value).__VISIBLE__.filter(N=>!N[u.value]);return F[F.map(N=>N[r.value]).indexOf(g.value[r.value])+1]}),q=a.computed(()=>[...z.value.__VISIBLE__.filter(F=>!F[u.value])].slice(-1)[0]),J=a.computed(()=>[...Y.value.__VISIBLE__.filter(F=>!F[u.value])].slice(-1)[0]),U=F=>g.value&&(!F.group&&g.value[r.value]===F[r.value]||F.group!==void 0&&g.value[s.value]===F[s.value])?!0:void 0,j=()=>{S(E.value[0]||null)},ie=()=>{!g.value||g.value[u.value]===!0||(P.value?y(g.value):v(g.value))},Z=()=>{if(g.value===null)S((l.value&&A.value?x.value[0].__CREATE__?E.value[0]:x.value[0]:E.value[0])||null);else if(l.value&&A.value){let F=P.value?D.value:B.value;F===void 0&&(F=V.value,F.__CREATE__&&(F=F[f.value][0])),S(F||null)}else{let F=E.value.map(N=>N[r.value]).indexOf(g.value[r.value])+1;E.value.length<=F&&(F=0),S(E.value[F]||null)}a.nextTick(()=>{L()})},K=()=>{if(g.value===null){let F=E.value[E.value.length-1];l.value&&A.value&&(F=J.value,F===void 0&&(F=Y.value)),S(F||null)}else if(l.value&&A.value){let F=P.value?q.value:H.value;F===void 0&&(F=P.value?z.value:M.value,F.__CREATE__&&(F=q.value,F===void 0&&(F=z.value))),S(F||null)}else{let F=E.value.map(N=>N[r.value]).indexOf(g.value[r.value])-1;F<0&&(F=E.value.length-1),S(E.value[F]||null)}a.nextTick(()=>{L()})},I=F=>x.value.find(N=>N.__VISIBLE__.map(ce=>ce[r.value]).indexOf(F[r.value])!==-1),L=()=>{let F=b.value.querySelector("[data-pointed]");if(!F)return;let N=F.parentElement.parentElement;l.value&&(N=P.value?F.parentElement.parentElement.parentElement:F.parentElement.parentElement.parentElement.parentElement),F.offsetTop+F.offsetHeight>N.clientHeight+N.scrollTop&&(N.scrollTop=F.offsetTop+F.offsetHeight-N.clientHeight),F.offsetTop<N.scrollTop&&(N.scrollTop=F.offsetTop)};return a.watch(C,F=>{i.value&&(F.length&&o.value?j():_())}),a.watch(T,F=>{if(F&&b&&b.value){let N=b.value.querySelectorAll("[data-selected]")[0];if(!N)return;let ce=N.parentElement.parentElement;a.nextTick(()=>{ce.scrollTop=N.offsetTop})}}),{pointer:g,canPointGroups:A,isPointed:U,setPointerFirst:j,selectPointer:ie,forwardPointer:Z,backwardPointer:K}}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 go(e){var t=Dn(e).Element;return e instanceof t||e instanceof Element}function jn(e){var t=Dn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ap(e){if(typeof ShadowRoot>"u")return!1;var t=Dn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var co=Math.max,ac=Math.min,fi=Math.round;function Kd(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ry(){return!/^((?!chrome|android).)*safari/i.test(Kd())}function pi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&jn(e)&&(o=e.offsetWidth>0&&fi(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&fi(r.height)/e.offsetHeight||1);var s=go(e)?Dn(e):window,l=s.visualViewport,c=!Ry()&&n,d=(r.left+(c&&l?l.offsetLeft:0))/o,u=(r.top+(c&&l?l.offsetTop:0))/i,f=r.width/o,p=r.height/i;return{width:f,height:p,top:u,right:d+f,bottom:u+p,left:d,x:d,y:u}}function Mp(e){var t=Dn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function pI(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mI(e){return e===Dn(e)||!jn(e)?Mp(e):pI(e)}function Rr(e){return e?(e.nodeName||"").toLowerCase():null}function za(e){return((go(e)?e.ownerDocument:e.document)||window.document).documentElement}function Op(e){return pi(za(e)).left+Mp(e).scrollLeft}function ta(e){return Dn(e).getComputedStyle(e)}function Np(e){var t=ta(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function hI(e){var t=e.getBoundingClientRect(),n=fi(t.width)/e.offsetWidth||1,r=fi(t.height)/e.offsetHeight||1;return n!==1||r!==1}function vI(e,t,n){n===void 0&&(n=!1);var r=jn(t),o=jn(t)&&hI(t),i=za(t),s=pi(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Rr(t)!=="body"||Np(i))&&(l=mI(t)),jn(t)?(c=pi(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Op(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Ly(e){var t=pi(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 Fc(e){return Rr(e)==="html"?e:e.assignedSlot||e.parentNode||(Ap(e)?e.host:null)||za(e)}function $y(e){return["html","body","#document"].indexOf(Rr(e))>=0?e.ownerDocument.body:jn(e)&&Np(e)?e:$y(Fc(e))}function os(e,t){var n;t===void 0&&(t=[]);var r=$y(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Dn(r),s=o?[i].concat(i.visualViewport||[],Np(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(os(Fc(s)))}function gI(e){return["table","td","th"].indexOf(Rr(e))>=0}function wv(e){return!jn(e)||ta(e).position==="fixed"?null:e.offsetParent}function yI(e){var t=/firefox/i.test(Kd()),n=/Trident/i.test(Kd());if(n&&jn(e)){var r=ta(e);if(r.position==="fixed")return null}var o=Fc(e);for(Ap(o)&&(o=o.host);jn(o)&&["html","body"].indexOf(Rr(o))<0;){var i=ta(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 jc(e){for(var t=Dn(e),n=wv(e);n&&gI(n)&&ta(n).position==="static";)n=wv(n);return n&&(Rr(n)==="html"||Rr(n)==="body"&&ta(n).position==="static")?t:n||yI(e)||t}var sr="top",Lr="bottom",Ia="right",Gr="left",Bp="auto",Hc=[sr,Lr,Ia,Gr],mi="start",Es="end",bI="clippingParents",zy="viewport",Gi="popper",wI="reference",kv=Hc.reduce(function(e,t){return e.concat([t+"-"+mi,t+"-"+Es])},[]),kI=[].concat(Hc,[Bp]).reduce(function(e,t){return e.concat([t,t+"-"+mi,t+"-"+Es])},[]),_I="beforeRead",CI="read",SI="afterRead",EI="beforeMain",xI="main",TI="afterMain",PI="beforeWrite",II="write",AI="afterWrite",MI=[_I,CI,SI,EI,xI,TI,PI,II,AI];function OI(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 c=t.get(l);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function NI(e){var t=OI(e);return MI.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function BI(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function DI(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]})}function RI(e,t){var n=Dn(e),r=za(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,c=0;if(o){i=o.width,s=o.height;var d=Ry();(d||!d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:l+Op(e),y:c}}function LI(e){var t,n=za(e),r=Mp(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=co(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=co(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Op(e),c=-r.scrollTop;return ta(o||n).direction==="rtl"&&(l+=co(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function $I(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ap(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Jd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zI(e,t){var n=pi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function _v(e,t,n){return t===zy?Jd(RI(e,n)):go(t)?zI(t,n):Jd(LI(za(e)))}function VI(e){var t=os(Fc(e)),n=["absolute","fixed"].indexOf(ta(e).position)>=0,r=n&&jn(e)?jc(e):e;return go(r)?t.filter(function(o){return go(o)&&$I(o,r)&&Rr(o)!=="body"}):[]}function FI(e,t,n,r){var o=t==="clippingParents"?VI(e):[].concat(t),i=[].concat(o,[n]),s=i[0],l=i.reduce(function(c,d){var u=_v(e,d,r);return c.top=co(u.top,c.top),c.right=ac(u.right,c.right),c.bottom=ac(u.bottom,c.bottom),c.left=co(u.left,c.left),c},_v(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function _a(e){return e.split("-")[0]}function hi(e){return e.split("-")[1]}function Vy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fy(e){var t=e.reference,n=e.element,r=e.placement,o=r?_a(r):null,i=r?hi(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case sr:c={x:s,y:t.y-n.height};break;case Lr:c={x:s,y:t.y+t.height};break;case Ia:c={x:t.x+t.width,y:l};break;case Gr:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=o?Vy(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case mi:c[d]=c[d]-(t[u]/2-n[u]/2);break;case Es:c[d]=c[d]+(t[u]/2-n[u]/2);break}}return c}function jy(){return{top:0,right:0,bottom:0,left:0}}function jI(e){return Object.assign({},jy(),e)}function HI(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function Dp(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?bI:l,d=n.rootBoundary,u=d===void 0?zy:d,f=n.elementContext,p=f===void 0?Gi:f,h=n.altBoundary,v=h===void 0?!1:h,y=n.padding,C=y===void 0?0:y,g=jI(typeof C!="number"?C:HI(C,Hc)),S=p===Gi?wI:Gi,_=e.rects.popper,b=e.elements[v?S:p],T=FI(go(b)?b:b.contextElement||za(e.elements.popper),c,u,s),E=pi(e.elements.reference),x=Fy({reference:E,element:_,strategy:"absolute",placement:o}),A=Jd(Object.assign({},_,x)),P=p===Gi?A:E,M={top:T.top-P.top+g.top,bottom:P.bottom-T.bottom+g.bottom,left:T.left-P.left+g.left,right:P.right-T.right+g.right},z=e.modifiersData.offset;if(p===Gi&&z){var V=z[o];Object.keys(M).forEach(function(Y){var D=[Ia,Lr].indexOf(Y)>=0?1:-1,H=[sr,Lr].indexOf(Y)>=0?"y":"x";M[Y]+=V[H]*D})}return M}var Cv={placement:"bottom",modifiers:[],strategy:"absolute"};function Sv(){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 UI(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Cv:o;return function(l,c,d){d===void 0&&(d=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Cv,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:u,setOptions:function(g){var S=typeof g=="function"?g(u.options):g;y(),u.options=Object.assign({},i,u.options,S),u.scrollParents={reference:go(l)?os(l):l.contextElement?os(l.contextElement):[],popper:os(c)};var _=NI(DI([].concat(r,u.options.modifiers)));return u.orderedModifiers=_.filter(function(b){return b.enabled}),v(),h.update()},forceUpdate:function(){if(!p){var g=u.elements,S=g.reference,_=g.popper;if(Sv(S,_)){u.rects={reference:vI(S,jc(_),u.options.strategy==="fixed"),popper:Ly(_)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(M){return u.modifiersData[M.name]=Object.assign({},M.data)});for(var b=0;b<u.orderedModifiers.length;b++){if(u.reset===!0){u.reset=!1,b=-1;continue}var T=u.orderedModifiers[b],E=T.fn,x=T.options,A=x===void 0?{}:x,P=T.name;typeof E=="function"&&(u=E({state:u,options:A,name:P,instance:h})||u)}}}},update:BI(function(){return new Promise(function(C){h.forceUpdate(),C(u)})}),destroy:function(){y(),p=!0}};if(!Sv(l,c))return h;h.setOptions(d).then(function(C){!p&&d.onFirstUpdate&&d.onFirstUpdate(C)});function v(){u.orderedModifiers.forEach(function(C){var g=C.name,S=C.options,_=S===void 0?{}:S,b=C.effect;if(typeof b=="function"){var T=b({state:u,name:g,instance:h,options:_}),E=function(){};f.push(T||E)}})}function y(){f.forEach(function(C){return C()}),f=[]}return h}}var ml={passive:!0};function WI(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,c=Dn(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",n.update,ml)}),l&&c.addEventListener("resize",n.update,ml),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",n.update,ml)}),l&&c.removeEventListener("resize",n.update,ml)}}var qI={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:WI,data:{}};function YI(e){var t=e.state,n=e.name;t.modifiersData[n]=Fy({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var GI={name:"popperOffsets",enabled:!0,phase:"read",fn:YI,data:{}},XI={top:"auto",right:"auto",bottom:"auto",left:"auto"};function KI(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:fi(n*o)/o||0,y:fi(r*o)/o||0}}function Ev(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=s.x,h=p===void 0?0:p,v=s.y,y=v===void 0?0:v,C=typeof u=="function"?u({x:h,y}):{x:h,y};h=C.x,y=C.y;var g=s.hasOwnProperty("x"),S=s.hasOwnProperty("y"),_=Gr,b=sr,T=window;if(d){var E=jc(n),x="clientHeight",A="clientWidth";if(E===Dn(n)&&(E=za(n),ta(E).position!=="static"&&l==="absolute"&&(x="scrollHeight",A="scrollWidth")),E=E,o===sr||(o===Gr||o===Ia)&&i===Es){b=Lr;var P=f&&E===T&&T.visualViewport?T.visualViewport.height:E[x];y-=P-r.height,y*=c?1:-1}if(o===Gr||(o===sr||o===Lr)&&i===Es){_=Ia;var M=f&&E===T&&T.visualViewport?T.visualViewport.width:E[A];h-=M-r.width,h*=c?1:-1}}var z=Object.assign({position:l},d&&XI),V=u===!0?KI({x:h,y},Dn(n)):{x:h,y};if(h=V.x,y=V.y,c){var Y;return Object.assign({},z,(Y={},Y[b]=S?"0":"",Y[_]=g?"0":"",Y.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",Y))}return Object.assign({},z,(t={},t[b]=S?y+"px":"",t[_]=g?h+"px":"",t.transform="",t))}function JI(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,c=l===void 0?!0:l,d={placement:_a(t.placement),variation:hi(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,Ev(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ev(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var QI={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:JI,data:{}};function ZI(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];!jn(i)||!Rr(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 eA(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(c,d){return c[d]="",c},{});!jn(o)||!Rr(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}var tA={name:"applyStyles",enabled:!0,phase:"write",fn:ZI,effect:eA,requires:["computeStyles"]},nA=[qI,GI,QI,tA],rA=UI({defaultModifiers:nA});function aA(e){return e==="x"?"y":"x"}function Dl(e,t,n){return co(e,ac(t,n))}function oA(e,t,n){var r=Dl(e,t,n);return r>n?n:r}function iA(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,c=n.boundary,d=n.rootBoundary,u=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,C=Dp(t,{boundary:c,rootBoundary:d,padding:f,altBoundary:u}),g=_a(t.placement),S=hi(t.placement),_=!S,b=Vy(g),T=aA(b),E=t.modifiersData.popperOffsets,x=t.rects.reference,A=t.rects.popper,P=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,M=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(E){if(i){var Y,D=b==="y"?sr:Gr,H=b==="y"?Lr:Ia,B=b==="y"?"height":"width",q=E[b],J=q+C[D],U=q-C[H],j=h?-A[B]/2:0,ie=S===mi?x[B]:A[B],Z=S===mi?-A[B]:-x[B],K=t.elements.arrow,I=h&&K?Ly(K):{width:0,height:0},L=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:jy(),F=L[D],N=L[H],ce=Dl(0,x[B],I[B]),ge=_?x[B]/2-j-ce-F-M.mainAxis:ie-ce-F-M.mainAxis,Fe=_?-x[B]/2+j+ce+N+M.mainAxis:Z+ce+N+M.mainAxis,ee=t.elements.arrow&&jc(t.elements.arrow),se=ee?b==="y"?ee.clientTop||0:ee.clientLeft||0:0,ae=(Y=z==null?void 0:z[b])!=null?Y:0,me=q+ge-ae-se,R=q+Fe-ae,oe=Dl(h?ac(J,me):J,q,h?co(U,R):U);E[b]=oe,V[b]=oe-q}if(l){var Pe,ue=b==="x"?sr:Gr,Ne=b==="x"?Lr:Ia,de=E[T],G=T==="y"?"height":"width",te=de+C[ue],pe=de-C[Ne],xe=[sr,Gr].indexOf(g)!==-1,Te=(Pe=z==null?void 0:z[T])!=null?Pe:0,Se=xe?te:de-x[G]-A[G]-Te+M.altAxis,ot=xe?de+x[G]+A[G]-Te-M.altAxis:pe,Ge=h&&xe?oA(Se,de,ot):Dl(h?Se:te,de,h?ot:pe);E[T]=Ge,V[T]=Ge-de}t.modifiersData[r]=V}}var sA={name:"preventOverflow",enabled:!0,phase:"main",fn:iA,requiresIfExists:["offset"]},lA={left:"right",right:"left",bottom:"top",top:"bottom"};function Rl(e){return e.replace(/left|right|bottom|top/g,function(t){return lA[t]})}var cA={start:"end",end:"start"};function xv(e){return e.replace(/start|end/g,function(t){return cA[t]})}function uA(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?kI:c,u=hi(r),f=u?l?kv:kv.filter(function(v){return hi(v)===u}):Hc,p=f.filter(function(v){return d.indexOf(v)>=0});p.length===0&&(p=f);var h=p.reduce(function(v,y){return v[y]=Dp(e,{placement:y,boundary:o,rootBoundary:i,padding:s})[_a(y)],v},{});return Object.keys(h).sort(function(v,y){return h[v]-h[y]})}function dA(e){if(_a(e)===Bp)return[];var t=Rl(e);return[xv(e),t,xv(t)]}function fA(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,c=n.fallbackPlacements,d=n.padding,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,y=n.allowedAutoPlacements,C=t.options.placement,g=_a(C),S=g===C,_=c||(S||!v?[Rl(C)]:dA(C)),b=[C].concat(_).reduce(function(I,L){return I.concat(_a(L)===Bp?uA(t,{placement:L,boundary:u,rootBoundary:f,padding:d,flipVariations:v,allowedAutoPlacements:y}):L)},[]),T=t.rects.reference,E=t.rects.popper,x=new Map,A=!0,P=b[0],M=0;M<b.length;M++){var z=b[M],V=_a(z),Y=hi(z)===mi,D=[sr,Lr].indexOf(V)>=0,H=D?"width":"height",B=Dp(t,{placement:z,boundary:u,rootBoundary:f,altBoundary:p,padding:d}),q=D?Y?Ia:Gr:Y?Lr:sr;T[H]>E[H]&&(q=Rl(q));var J=Rl(q),U=[];if(i&&U.push(B[V]<=0),l&&U.push(B[q]<=0,B[J]<=0),U.every(function(I){return I})){P=z,A=!1;break}x.set(z,U)}if(A)for(var j=v?3:1,ie=function(L){var F=b.find(function(N){var ce=x.get(N);if(ce)return ce.slice(0,L).every(function(ge){return ge})});if(F)return P=F,"break"},Z=j;Z>0;Z--){var K=ie(Z);if(K==="break")break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}}var pA={name:"flip",enabled:!0,phase:"main",fn:fA,requiresIfExists:["offset"],data:{_skip:!1}};function mA(e,t,n){const{disabled:r,appendTo:o,appendToBody:i,openDirection:s}=a.toRefs(e),l=a.getCurrentInstance().proxy,c=n.multiselect,d=n.dropdown,u=a.ref(!1),f=a.ref(null),p=a.ref(null),h=_t(()=>o.value||i.value),v=_t(()=>s.value==="top"&&p.value==="bottom"||s.value==="bottom"&&p.value!=="top"?"bottom":"top"),y=()=>{u.value||r.value||(u.value=!0,t.emit("open",l),h.value&&a.nextTick(()=>{g()}))},C=()=>{u.value&&(u.value=!1,t.emit("close",l))},g=()=>{if(!f.value)return;let _=parseInt(window.getComputedStyle(d.value).borderTopWidth.replace("px","")),b=parseInt(window.getComputedStyle(d.value).borderBottomWidth.replace("px",""));f.value.setOptions(T=>({...T,modifiers:[...T.modifiers,{name:"offset",options:{offset:[0,(v.value==="top"?_:b)*-1]}}]})),f.value.update()},S=_=>{for(;_&&_!==document.body;){if(getComputedStyle(_).position==="fixed")return!0;_=_.parentElement}return!1};return a.onMounted(()=>{h.value&&(f.value=rA(c.value,d.value,{strategy:S(c.value)?"fixed":void 0,placement:s.value,modifiers:[sA,pA,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:_})=>{_.styles.popper.width=`${_.rects.reference.width}px`},effect:({state:_})=>{_.elements.popper.style.width=`${_.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:_}){p.value=_.placement}}]}))}),a.onBeforeUnmount(()=>{!h.value||!f.value||(f.value.destroy(),f.value=null)}),{popper:f,isOpen:u,open:y,close:C,placement:v,updatePopper:g}}function hA(e,t,n){const{searchable:r,disabled:o,clearOnBlur:i}=a.toRefs(e),s=n.input,l=n.open,c=n.close,d=n.clearSearch,u=n.isOpen,f=n.wrapper,p=n.tags,h=a.ref(!1),v=a.ref(!1),y=_t(()=>r.value||o.value?-1:0),C=()=>{r.value&&s.value.blur(),f.value.blur()},g=()=>{r.value&&!o.value&&s.value.focus()},S=(A=!0)=>{o.value||(h.value=!0,A&&l())},_=()=>{h.value=!1,setTimeout(()=>{h.value||(c(),i.value&&d())},1)};return{tabindex:y,isActive:h,mouseClicked:v,blur:C,focus:g,activate:S,deactivate:_,handleFocusIn:A=>{A.target.closest("[data-tags]")&&A.target.nodeName!=="INPUT"||A.target.closest("[data-clear]")||S(v.value)},handleFocusOut:()=>{_()},handleCaretClick:()=>{_(),C()},handleMousedown:A=>{v.value=!0,u.value&&(A.target.isEqualNode(f.value)||A.target.isEqualNode(p.value))?setTimeout(()=>{_()},0):!u.value&&(document.activeElement.isEqualNode(f.value)||document.activeElement.isEqualNode(s.value))&&S(),setTimeout(()=>{v.value=!1},0)}}}function vA(e,t,n){const{mode:r,addTagOn:o,openDirection:i,searchable:s,showOptions:l,valueProp:c,groups:d,addOptionOn:u,createTag:f,createOption:p,reverse:h}=a.toRefs(e),v=a.getCurrentInstance().proxy,y=n.iv,C=n.update,g=n.deselect,S=n.search,_=n.setPointer,b=n.selectPointer,T=n.backwardPointer,E=n.forwardPointer,x=n.multiselect,A=n.wrapper,P=n.tags,M=n.isOpen,z=n.open,V=n.blur,Y=n.fo,D=_t(()=>f.value||p.value||!1),H=_t(()=>o.value!==void 0?o.value:u.value!==void 0?u.value:["enter"]),B=()=>{r.value==="tags"&&!l.value&&D.value&&s.value&&!d.value&&_(Y.value[Y.value.map(U=>U[c.value]).indexOf(S.value)])};return{handleKeydown:U=>{t.emit("keydown",U,v);let j,ie;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(U.key)!==-1&&r.value==="tags"&&(j=[...x.value.querySelectorAll("[data-tags] > *")].filter(Z=>Z!==P.value),ie=j.findIndex(Z=>Z===document.activeElement)),U.key){case"Backspace":if(r.value==="single"||s.value&&[null,""].indexOf(S.value)===-1||y.value.length===0)return;let Z=y.value.filter(K=>!K.disabled&&K.remove!==!1);Z.length&&g(Z[Z.length-1]);break;case"Enter":if(U.preventDefault(),U.keyCode===229)return;if(ie!==-1&&ie!==void 0){C([...y.value].filter((K,I)=>I!==ie)),ie===j.length-1&&(j.length-1?j[j.length-2].focus():s.value?P.value.querySelector("input").focus():A.value.focus());return}if(H.value.indexOf("enter")===-1&&D.value)return;B(),b();break;case" ":if(!D.value&&!s.value){U.preventDefault(),B(),b();return}if(!D.value)return!1;if(H.value.indexOf("space")===-1&&D.value)return;U.preventDefault(),B(),b();break;case"Tab":case";":case",":if(H.value.indexOf(U.key.toLowerCase())===-1||!D.value)return;B(),b(),U.preventDefault();break;case"Escape":V();break;case"ArrowUp":if(U.preventDefault(),!l.value)return;M.value||z(),T();break;case"ArrowDown":if(U.preventDefault(),!l.value)return;M.value||z(),E();break;case"ArrowLeft":if(s.value&&P.value&&P.value.querySelector("input").selectionStart||U.shiftKey||r.value!=="tags"||!y.value||!y.value.length)return;U.preventDefault(),ie===-1?j[j.length-1].focus():ie>0&&j[ie-1].focus();break;case"ArrowRight":if(ie===-1||U.shiftKey||r.value!=="tags"||!y.value||!y.value.length)return;U.preventDefault(),j.length>ie+1?j[ie+1].focus():s.value?P.value.querySelector("input").focus():s.value||A.value.focus();break}},handleKeyup:U=>{t.emit("keyup",U,v)},preparePointer:B}}function gA(e,t,n){const{classes:r,disabled:o,showOptions:i,breakTags:s}=a.toRefs(e),l=n.isOpen,c=n.isPointed,d=n.isSelected,u=n.isDisabled,f=n.isActive,p=n.canPointGroups,h=n.resolving,v=n.fo,y=n.placement,C=_t(()=>({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",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",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})),g=_t(()=>!!(l.value&&i.value&&(!h.value||h.value&&v.value.length)));return{classList:a.computed(()=>{const _=C.value;return{container:[_.container].concat(o.value?_.containerDisabled:[]).concat(g.value&&y.value==="top"?_.containerOpenTop:[]).concat(g.value&&y.value!=="top"?_.containerOpen:[]).concat(f.value?_.containerActive:[]),wrapper:_.wrapper,spacer:_.spacer,singleLabel:_.singleLabel,singleLabelText:_.singleLabelText,multipleLabel:_.multipleLabel,search:_.search,tags:_.tags,tag:[_.tag].concat(o.value?_.tagDisabled:[]),tagWrapper:[_.tagWrapper,s.value?_.tagWrapperBreak:null],tagDisabled:_.tagDisabled,tagRemove:_.tagRemove,tagRemoveIcon:_.tagRemoveIcon,tagsSearchWrapper:_.tagsSearchWrapper,tagsSearch:_.tagsSearch,tagsSearchCopy:_.tagsSearchCopy,placeholder:_.placeholder,caret:[_.caret].concat(l.value?_.caretOpen:[]),clear:_.clear,clearIcon:_.clearIcon,spinner:_.spinner,inifinite:_.inifinite,inifiniteSpinner:_.inifiniteSpinner,dropdown:[_.dropdown].concat(y.value==="top"?_.dropdownTop:[]).concat(!l.value||!i.value||!g.value?_.dropdownHidden:[]),options:[_.options].concat(y.value==="top"?_.optionsTop:[]),group:_.group,groupLabel:b=>{let T=[_.groupLabel];return c(b)?T.push(d(b)?_.groupLabelSelectedPointed:_.groupLabelPointed):d(b)&&p.value?T.push(u(b)?_.groupLabelSelectedDisabled:_.groupLabelSelected):u(b)&&T.push(_.groupLabelDisabled),p.value&&T.push(_.groupLabelPointable),T},groupOptions:_.groupOptions,option:(b,T)=>{let E=[_.option];return c(b)?E.push(d(b)?_.optionSelectedPointed:_.optionPointed):d(b)?E.push(u(b)?_.optionSelectedDisabled:_.optionSelected):(u(b)||T&&u(T))&&E.push(_.optionDisabled),E},noOptions:_.noOptions,noResults:_.noResults,assist:_.assist,fakeInput:_.fakeInput}}),showDropdown:g}}function yA(e,t,n){const{limit:r,infinite:o}=a.toRefs(e),i=n.isOpen,s=n.offset,l=n.search,c=n.pfo,d=n.eo,u=a.ref(null),f=a.shallowRef(null),p=_t(()=>s.value<c.value.length),h=y=>{const{isIntersecting:C,target:g}=y[0];if(C){const S=g.offsetParent,_=S.scrollTop;s.value+=r.value==-1?10:r.value,a.nextTick(()=>{S.scrollTop=_})}},v=()=>{i.value&&s.value<c.value.length?u.value.observe(f.value):!i.value&&u.value&&u.value.disconnect()};return a.watch(i,()=>{o.value&&v()}),a.watch(l,()=>{o.value&&(s.value=r.value,v())},{flush:"post"}),a.watch(d,()=>{o.value&&v()},{immediate:!1,flush:"post"}),a.onMounted(()=>{window&&window.IntersectionObserver&&(u.value=new IntersectionObserver(h))}),{hasMore:p,infiniteLoader:f}}function bA(e,t,n){const{placeholder:r,id:o,valueProp:i,label:s,mode:l,groupLabel:c,aria:d,searchable:u}=a.toRefs(e),f=n.pointer,p=n.iv,h=n.hasSelected,v=n.multipleLabelText,y=a.ref(null),C=_t(()=>`${o.value?o.value+"-":""}assist`),g=_t(()=>`${o.value?o.value+"-":""}multiselect-options`),S=_t(()=>{if(f.value){let V=o.value?`${o.value}-`:"";return V+=`${f.value.group?"multiselect-group":"multiselect-option"}-`,V+=f.value.group?f.value.index:f.value[i.value],V}}),_=_t(()=>r.value),b=_t(()=>l.value!=="single"),T=a.computed(()=>l.value==="single"&&h.value?p.value[s.value]:l.value==="multiple"&&h.value?v.value:l.value==="tags"&&h.value?p.value.map(V=>V[s.value]).join(", "):""),E=a.computed(()=>{let V={...d.value};return u.value&&(V["aria-labelledby"]=V["aria-labelledby"]?`${C.value} ${V["aria-labelledby"]}`:C.value,T.value&&V["aria-label"]&&(V["aria-label"]=`${T.value}, ${V["aria-label"]}`)),V}),x=V=>`${o.value?o.value+"-":""}multiselect-option-${V[i.value]}`,A=V=>`${o.value?o.value+"-":""}multiselect-group-${V.index}`,P=V=>`${V}`,M=V=>`${V}`,z=V=>`${V} ❎`;return a.onMounted(()=>{if(o.value&&document&&document.querySelector){let V=document.querySelector(`[for="${o.value}"]`);y.value=V?V.innerText:null}}),{arias:E,ariaLabel:T,ariaAssist:C,ariaControls:g,ariaPlaceholder:_,ariaMultiselectable:b,ariaActiveDescendant:S,ariaOptionId:x,ariaOptionLabel:P,ariaGroupId:A,ariaGroupLabel:M,ariaTagLabel:z}}function wA(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 kA(e,t,n){const r=a.shallowRef(null),o=a.shallowRef(null),i=a.shallowRef(null),s=a.shallowRef(null),l=a.shallowRef(null);return{multiselect:r,wrapper:o,tags:i,input:s,dropdown:l}}function _A(e,t,n,r={}){return n.forEach(o=>{r={...r,...o(e,t,r)}}),r}var Rp={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,default:void 0},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,Array],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,default:void 0},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,default:void 0},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,default:void 0},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},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String,default:void 0}},setup(e,t){return _A(e,t,[kA,wA,iI,lI,mA,sI,oI,hA,dI,yA,fI,vA,gA,bA])},beforeMount(){(this.$root.constructor&&this.$root.constructor.version&&this.$root.constructor.version.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const CA=["id","dir"],SA=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],EA=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],xA=["onKeyup","aria-label"],TA=["onClick"],PA=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],IA=["innerHTML"],AA=["id"],MA=["id"],OA=["id","aria-label","aria-selected"],NA=["data-pointed","onMouseenter","onClick"],BA=["innerHTML"],DA=["aria-label"],RA=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],LA=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],$A=["innerHTML"],zA=["innerHTML"],VA=["value"],FA=["name","value"],jA=["name","value"],HA=["id"];function UA(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[12]||(t[12]=(...s)=>e.handleFocusIn&&e.handleFocusIn(...s)),onFocusout:t[13]||(t[13]=(...s)=>e.handleFocusOut&&e.handleFocusOut(...s)),onKeyup:t[14]||(t[14]=(...s)=>e.handleKeyup&&e.handleKeyup(...s)),onKeydown:t[15]||(t[15]=(...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,EA)):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,c)=>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(d=>e.handleTagRemove(s,d),["enter"]),key:c,"aria-label":e.ariaTagLabel(e.localize(s[n.label]))},[a.createElementVNode("span",{class:a.normalizeClass(e.classList.tagWrapper)},a.toDisplayString(e.localize(s[n.label])),3),!n.disabled&&!s.disabled?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(e.classList.tagRemove),onClick:a.withModifiers(d=>e.handleTagRemove(s,d),["stop"])},[a.createElementVNode("span",{class:a.normalizeClass(e.classList.tagRemoveIcon)},null,2)],10,TA)):a.createCommentVNode("v-if",!0)],42,xA))])),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,PA)):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,IA)]):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,handleCaretClick:e.handleCaretClick,isOpen:e.isOpen},()=>[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,SA),a.createCommentVNode(" Options "),(a.openBlock(),a.createBlock(a.Teleport,{to:n.appendTo||"body",disabled:!n.appendToBody&&!n.appendTo},[a.createElementVNode("div",{id:n.id?`${n.id}-dropdown`:void 0,class:a.normalizeClass(e.classList.dropdown),tabindex:"-1",ref:"dropdown",onFocusin:t[10]||(t[10]=(...s)=>e.handleFocusIn&&e.handleFocusIn(...s)),onFocusout:t[11]||(t[11]=(...s)=>e.handleFocusOut&&e.handleFocusOut(...s))},[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,c)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(e.classList.group),key:c,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:d=>e.setPointer(s,l),onClick:d=>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,BA)])],42,NA)),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__,(d,u,f)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(e.classList.option(d,s)),"data-pointed":e.isPointed(d),"data-selected":e.isSelected(d)||void 0,key:f,onMouseenter:p=>e.setPointer(d),onClick:p=>e.handleOptionClick(d),id:e.ariaOptionId(d),"aria-selected":e.isSelected(d),"aria-label":e.ariaOptionLabel(e.localize(d[n.label])),role:"option"},[a.renderSlot(e.$slots,"option",{option:d,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[a.createElementVNode("span",null,a.toDisplayString(e.localize(d[n.label])),1)])],42,RA))),128))],10,DA)],10,OA))),128)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(e.fo,(s,l,c)=>(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:c,onMouseenter:d=>e.setPointer(s),onClick:d=>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,LA))),128))],10,MA),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,$A)]):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,zA)]):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})],42,AA)],8,["to","disabled"])),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,VA)):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,FA)):(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,jA))),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,HA)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Create height for empty input "),a.createElementVNode("div",{class:a.normalizeClass(e.classList.spacer)},null,2)],42,CA)}Rp.render=UA;Rp.__file="src/Multiselect.vue";const Mt={container:"app-select scrollbar-primary 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 h-7 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-zinc-700",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 text-base 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 text-zinc-700 transition duration-300 flex-shrink-0 flex-grow-0 flex rtl:pr-0 rtl:pl-3.5",clearIcon:"bg-multiselect-remove bg-center bg-no-repeat w-2.5 h-4 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-lg",dropdownTop:"!-translate-y-full top-px bottom-auto rounded-b-none rounded-t-lg",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 WA(e){return e in Mt}function qA(e){const t=Object.keys(Mt).find(n=>n.toLowerCase()===e);if(t&&WA(t))return Mt[t]}const YA=["onClick"],GA={key:1,class:"order-2 mt-1.5 flex items-center gap-x-1 text-xs italic text-error","data-test-error-message":""},Uc=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={...Mt};return t.openDirection==="up"&&(i.dropdown=`${Mt.dropdown} ${Mt.dropdownTop}`,i.containerOpen=`${Mt.containerOpenTop}`),t.dropdownClasses&&(i.dropdown=`${i.dropdown} ${t.dropdownClasses}`),t.hasError&&(i.container=`${i.container} !border-error focus:ring-error focus:border-error`),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(Lp),{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(Rp),a.mergeProps({native:!1,classes:o.value},{...i.$attrs,label:t.optionLabel},{onOpen:s[0]||(s[0]=l=>{var c;i.fetchOnOpen&&(l!=null&&l.noOptions)&&((c=l==null?void 0:l.resolveOptions)==null||c.call(l))})}),a.createSlots({tag:a.withCtx(l=>[a.createElementVNode("div",{class:a.normalizeClass(a.unref(Mt).tag)},[a.renderSlot(i.$slots,"tag",a.normalizeProps(a.guardReactiveProps(l)),()=>{var c;return[a.createTextVNode(a.toDisplayString((c=l.option)==null?void 0:c[i.optionLabel]),1)]}),l.disabled?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(a.unref(Mt).tagRemove),onClick:c=>l.handleTagRemove(l.option,c)},[a.createElementVNode("span",{class:a.normalizeClass(a.unref(Mt).tagRemoveIcon)},null,2)],10,YA))],2)]),_:2},[a.renderList(r.value,(l,c)=>({name:l,fn:a.withCtx(d=>[a.renderSlot(i.$slots,l,a.normalizeProps(a.guardReactiveProps({...d||{},classes:a.unref(qA)(l)})))])}))]),1040,["classes"]),i.hasError&&i.errorMessage?(a.openBlock(),a.createElementBlock("p",GA,a.toDisplayString(i.errorMessage),1)):a.createCommentVNode("",!0)],2))}}),XA=["data-error"],Lp=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-zinc-900"]),"data-error":t.hasError?"label":void 0},[a.renderSlot(t.$slots,"default")],10,XA))}}),Qd={mapId:"161a92b3666d9228",disableDefaultUI:!0,zoom:15},KA={scrollwheel:!1,clickableIcons:!1,keyboardShortcuts:!1,isFractionalZoomEnabled:!1,maxZoom:Qd.zoom,minZoom:Qd.zoom,disableDoubleClickZoom:!0,fullscreenControl:!1,streetViewControl:!1,gestureHandling:"none",rotateControl:!1,panControl:!1},JA=["inline-flex","justify-center","items-center","rounded-full","bg-primary","text-white","h-12","w-12"];function QA(){const e=document.createElement("div");return e.classList.add(...JA),a.render(a.h(eB),e),e}const ZA=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 c;return t.mapCenterLatitude&&t.mapCenterLongitude?{lat:t.mapCenterLatitude,lng:t.mapCenterLongitude}:((c=t.mapOptions)==null?void 0:c.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:c}=await google.maps.importLibrary("maps");if(n.value instanceof HTMLElement){const d=new c(n.value,{...s(),center:r.value});t.withMarker&&await l(d)}}function s(){let c={...Qd};return t.disableUserInteraction&&(c={...c,...KA}),{...c,...t.mapOptions??{}}}async function l(c){const{AdvancedMarkerElement:d}=await google.maps.importLibrary("marker"),u=new d({map:c,position:o.value,content:QA()});t.disableMarkerClick&&!t.disableUserInteraction&&(u.element.classList.add("!cursor-default"),google.maps.event.addListener(u,"click",()=>{}))}return(c,d)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"mapElement",ref:n,class:"h-80 w-full"},null,512))}}),Zd=a.defineComponent({__name:"NavigationItem",props:{item:{},linkClasses:{}},setup(e){const t=e,{navigationComponent:n,closeMobileMenu:r,expanded:o}=_o(),i=ms.useRouter(),s=a.ref(!1),l=a.computed(()=>s.value||typeof t.item.icon!="string"),c=a.computed(()=>s.value?Ra:t.item.icon),d=a.computed(()=>{var f;return t.item.href??((f=i.resolve(t.item.to))==null?void 0:f.href)??""});async function u(f){var p,h,v;r(),(p=t.item)!=null&&p.onClick&&(f.preventDefault(),s.value=!0,await Promise.resolve((v=(h=t.item)==null?void 0:h.onClick)==null?void 0:v.call(h)),s.value=!1)}return(f,p)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),{to:f.item.to,href:d.value,class:a.normalizeClass([[{"md:bg-primary md:!text-white":f.item.active??!1,"!rounded-full":f.item.rounded??!1,"mb-3":!f.item.bottom,"mt-3":f.item.bottom,"md:w-10 md:justify-center":!a.unref(o),"md:px-6":a.unref(o)},f.linkClasses],"group/item flex h-10 w-full cursor-pointer rounded-lg transition-colors hover:bg-primary md:items-center md:text-center md:text-zinc-400 md:hover:text-white"]),onClick:u},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(l.value?c.value:"span"),{class:a.normalizeClass([{"!h-6":!l.value,"md:!text-white":f.item.active},"app-navigation-item size-5 stroke-2 text-black md:size-4 md:text-zinc-400 md:group-hover/item:text-white"]),size:s.value?"extra-small":void 0,"data-test-icon":""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(l.value?"":f.item.icon),1)]),_:1},8,["class","size"])),a.createElementVNode("span",{class:a.normalizeClass([{"md:w-0 md:p-0":!a.unref(o)},"overflow-hidden whitespace-nowrap pl-7 text-lg font-semibold md:text-base md:font-normal"]),"data-test-name":""},a.toDisplayString(f.item.name),3)]),_:1},8,["to","href","class"]))}}),ef=a.defineComponent({__name:"SupportItem",setup(e){const{contactRoute:t,contactIcon:n,navigationComponent:r,closeMobileMenu:o}=_o();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 size-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:"size-full"}))]),_:1},8,["to","href","onClick"])):a.createCommentVNode("",!0)}}),eM={class:"app-mobile-menu flex h-18 items-center justify-between bg-zinc-50 px-4 text-black md:hidden"},tM=["innerHTML"],nM={class:"flex w-10 grow-0 justify-end","data-test-avatar-wrapper":""},rM={class:"relative flex size-full flex-1 flex-col bg-white focus:outline-none","data-test-navigation-wrapper":""},aM={class:"h-0 flex-1 overflow-y-auto p-4","data-test-navigation-links-wrapper":""},oM={"aria-label":"MainMenu",class:"mt-5"},iM={class:"mb-auto"},sM=a.defineComponent({__name:"Mobile",setup(e){const{logo:t,avatar:n,navigationItems:r,mobileMenuOpen:o,mobileMenuOpenTransition:i,openMobileMenu:s,closeMobileMenu:l}=_o(),c=a.computed(()=>o.value?Gp:tB);function d(){l(),setTimeout(()=>{i.value=!1},100)}function u(){i.value||(s(),i.value=!0)}return(f,p)=>(a.openBlock(),a.createElementBlock("header",eM,[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(u,["stop"])},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.value),{class:"block size-6 text-black","aria-hidden":"true"}))]),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,tM),a.createElementVNode("div",nM,[a.unref(n)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),{key:0})):a.createCommentVNode("",!0)]),a.createVNode(a.unref(ft.TransitionRoot),{show:a.unref(o),as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(ft.Dialog),{as:"div",class:"app-mobile-menu-dialog fixed inset-0 top-18 z-50 flex lg:hidden",onClose:d},{default:a.withCtx(()=>[a.createVNode(a.unref(ft.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",rM,[a.createElementVNode("div",aM,[a.createElementVNode("nav",oM,[a.createElementVNode("ul",iM,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(r).filter(h=>h.visible!==!1),h=>(a.openBlock(),a.createElementBlock("li",{key:h.name,"data-test-navigation-item":""},[a.createVNode(Zd,{item:h},null,8,["item"])]))),128))])]),a.createVNode(ef)])])]),_:1})]),_:1})]),_:1},8,["show"]),a.createVNode(ef)]))}}),lM={class:"relative before:absolute before:-right-4 before:top-0 before:z-[-1] before:size-4 before:bg-secondary after:absolute after:-right-4 after:bottom-0 after:z-[-1] after:size-4 after:bg-secondary"},cM=["aria-expanded"],uM={key:0},dM=a.defineComponent({__name:"AppNavigationMenu",setup(e){const{navigationItems:t,mainMenuOpen:n,expanded:r,toggleExpand:o,contactIcon:i}=_o();return(s,l)=>(a.openBlock(),a.createElementBlock("div",lM,[a.createElementVNode("aside",{class:a.normalizeClass([{"flex-col px-3 md:!w-20":a.unref(n),"md:!w-72":a.unref(r)},"app-navigation-menu group 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:size-8 before:bg-zinc-100 after:absolute after:-right-8 after:bottom-0 after:size-8 after:bg-zinc-100 md:flex md:bg-secondary"]),"aria-expanded":a.unref(r),"data-test-main-menu":""},[a.createElementVNode("ul",{class:a.normalizeClass([{"mx-auto":!a.unref(r)},"mb-auto transition-all duration-500"])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(t).filter(c=>c.bottom!==!0&&c.visible!==!1),c=>(a.openBlock(),a.createElementBlock("li",{key:c.name,"data-test-top-navigation-item":""},[a.createVNode(Zd,{item:c,"link-classes":c.linkClasses},null,8,["item","link-classes"])]))),128))],2),a.createElementVNode("ul",{class:a.normalizeClass([{"mx-auto":!a.unref(r)},"mt-auto pb-10 transition-all duration-500"])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(t).filter(c=>c.bottom&&c.visible!==!1),c=>(a.openBlock(),a.createElementBlock("li",{key:c.name,"data-test-bottom-navigation-item":""},[a.createVNode(Zd,{item:c,"link-classes":c.linkClasses},null,8,["item","link-classes"])]))),128)),a.unref(i)?(a.openBlock(),a.createElementBlock("li",uM,[a.createVNode(ef,{class:"!static"})])):a.createCommentVNode("",!0)],2),a.createElementVNode("div",{class:"absolute bottom-2 right-5 hidden size-10 cursor-pointer items-center justify-center overflow-hidden rounded-full bg-secondary transition-all duration-200 md:flex",onClick:l[0]||(l[0]=(...c)=>a.unref(o)&&a.unref(o)(...c))},[a.createElementVNode("div",{class:a.normalizeClass([{"!-translate-x-4":!a.unref(r)},"flex translate-x-4 space-x-4 transition-transform duration-700"])},[a.createVNode(a.unref(Yp),{class:"size-5 text-zinc-400 hover:text-white"}),a.createVNode(a.unref(b2),{class:"size-5 text-zinc-400 hover:text-white"})],2)])],10,cM),a.createVNode(sM)]))}}),Wc=Ln(dM,[["__scopeId","data-v-9bd49b21"]]),fM={class:"flex text-sm font-bold"},pM={class:"flex items-center rounded-l-lg bg-indigo-900 px-2 py-[0.188rem] text-white","data-test-country-code":""},Hy=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",fM,[a.createElementVNode("span",pM,a.toDisplayString(t.country),1),a.createElementVNode("span",{class:a.normalizeClass([t.licensePlateClasses,"w-full rounded-r-lg bg-yellow-400 px-2 py-[0.188rem] uppercase"]),"data-test-license-plate":""},[a.renderSlot(t.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(t.license),1)])],2)]))}}),Uy=a.defineComponent({__name:"AppTimelineItemIcon",props:{icon:{}},setup(e){const t=e,n=a.computed(()=>t.icon??nB),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))}}),mM={plain:[],default:["text-zinc-600"],success:["text-green-600"],warning:["text-yellow-600"],error:["text-red-600"],info:["text-sky-600"],inactive:["text-orange-500"]},hM={class:"flex"},vM={class:"ml-4"},Wy=a.defineComponent({__name:"AppTimelineItem",props:{item:{},itemType:{default:"default"}},setup(e){const t=e,n=a.computed(()=>t.item.date&&!t.item.time?t.item.date.toLocaleDateString("nl-NL",{month:"short",day:"numeric",hour:"numeric",minute:"numeric",timeStyle:void 0}):t.item.time&&!t.item.date?t.item.time:[]),r=a.computed(()=>{var o;return((o=t.item)==null?void 0:o.badge)??"default"});return(o,i)=>(a.openBlock(),a.createElementBlock("article",{class:a.normalizeClass([{"after:hidden":o.item.last},"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 after:[min-height:60px] 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"])},[a.createElementVNode("div",hM,[a.renderSlot(o.$slots,"icon",{value:o.item.icon},()=>[a.createVNode(Uy,{icon:o.item.icon},null,8,["icon"])])]),a.createElementVNode("div",vM,[a.createElementVNode("header",{class:a.normalizeClass({"flex items-center gap-3":o.itemType==="inline","!mb-0":o.item.last})},[a.createVNode(a.unref(Jl),{class:a.normalizeClass({"mb-2":o.itemType==="default"}),type:r.value},{default:a.withCtx(()=>[a.renderSlot(o.$slots,"date",{value:n.value},()=>[a.createElementVNode("time",null,a.toDisplayString(n.value)+" uur",1)])]),_:3},8,["class","type"]),a.createElementVNode("h3",{class:a.normalizeClass([{domClassesPerType:r.value},"font-semibold"]),"data-test-timeline-title":""},[a.renderSlot(o.$slots,"title",{value:o.item.title},()=>[a.createElementVNode("span",{class:a.normalizeClass(a.unref(mM)[r.value])},a.toDisplayString(o.item.title),3)])],2)],2),a.createElementVNode("p",{class:a.normalizeClass([{"mt-4":o.itemType==="inline"},"text-base empty:mt-0"]),"data-test-timeline-description":""},[a.renderSlot(o.$slots,"default",{value:o.item.description},()=>[a.createTextVNode(a.toDisplayString(o.item.description),1)])],2)])],2))}}),gM={class:"space-y-4"},yM=a.defineComponent({__name:"AppTimeline",props:{items:{},type:{default:"default"}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",gM,[a.renderSlot(t.$slots,"default",{},()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.items,r=>(a.openBlock(),a.createBlock(Wy,{key:r.title,item:r,"item-type":t.type},null,8,["item","item-type"]))),128))])]))}}),bM={},wM={class:"flow-root"},kM={class:"overflow-x-auto"},_M={class:"inline-block min-w-full"},CM={class:"overflow-hidden"},SM={class:"w-full"};function EM(e,t){return a.openBlock(),a.createElementBlock("div",wM,[a.createElementVNode("div",kM,[a.createElementVNode("div",_M,[a.createElementVNode("div",CM,[a.createElementVNode("table",SM,[a.renderSlot(e.$slots,"default",{},void 0,!0)])])])])])}const xM=Ln(bM,[["render",EM],["__scopeId","data-v-14180034"]]);var TM=Object.defineProperty,PM=Object.defineProperties,IM=Object.getOwnPropertyDescriptors,Tv=Object.getOwnPropertySymbols,AM=Object.prototype.hasOwnProperty,MM=Object.prototype.propertyIsEnumerable,Pv=(e,t,n)=>t in e?TM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sr=(e,t)=>{for(var n in t||(t={}))AM.call(t,n)&&Pv(e,n,t[n]);if(Tv)for(var n of Tv(t))MM.call(t,n)&&Pv(e,n,t[n]);return e},Ll=(e,t)=>PM(e,IM(t)),Va=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const OM=e=>(a.pushScopeId("data-v-e0a0b7f0"),e=e(),a.popScopeId(),e),NM=["onClick"],BM=["checked"],DM=OM(()=>a.createElementVNode("label",{for:"checbox"},null,-1)),RM=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,BM),DM],8,NM))}});var LM=Va(RM,[["__scopeId","data-v-e0a0b7f0"]]);const $M=e=>(a.pushScopeId("data-v-7e69a276"),e=e(),a.popScopeId(),e),zM=["checked"],VM=$M(()=>a.createElementVNode("label",{for:"checbox"},null,-1)),FM=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,zM),VM]))}});var jM=Va(FM,[["__scopeId","data-v-7e69a276"]]);const HM=e=>(a.pushScopeId("data-v-4ca5de3a"),e=e(),a.popScopeId(),e),UM={class:"easy-data-table__rows-selector"},WM={class:"rows-input"},qM=HM(()=>a.createElementVNode("div",{class:"triangle"},null,-1)),YM=["onClick"],GM=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(f=>({"1b889342":a.unref(u)}));const r=a.ref(!1),o=a.ref(!1),i=a.inject("dataTable");a.watch(r,f=>{if(f&&i){const p=window.innerHeight,h=i.value.getBoundingClientRect().height,v=i.value.getBoundingClientRect().top;p-(h+v)<=100?o.value=!0:o.value=!1}});const s=a.computed({get:()=>n.modelValue,set:f=>{t("update:modelValue",f)}}),l=f=>{s.value=f,r.value=!1},c=(f,p)=>{let h=f.parentNode;for(;h!=null;){if(h.classList&&h.classList.contains(p))return!0;h=h.parentNode}return!1},d=f=>{c(f.target,"easy-data-table__rows-selector")||(r.value=!1)};a.onMounted(()=>{document.addEventListener("click",d)}),a.onBeforeUnmount(()=>{document.removeEventListener("click",d)});const u=a.inject("themeColor");return(f,p)=>(a.openBlock(),a.createElementBlock("div",UM,[a.createElementVNode("div",{class:"rows-input__wrapper",onClick:p[0]||(p[0]=h=>r.value=!r.value)},[a.createElementVNode("div",WM,a.toDisplayString(a.unref(s)),1),qM]),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,h=>(a.openBlock(),a.createElementBlock("li",{key:h,class:a.normalizeClass({selected:h===a.unref(s)}),onClick:v=>l(h)},a.toDisplayString(h),11,YM))),128))],2)]))}});var XM=Va(GM,[["__scopeId","data-v-4ca5de3a"]]);const qc=e=>(a.pushScopeId("data-v-1fa3a520"),e=e(),a.popScopeId(),e),KM={class:"lds-ring"},JM=qc(()=>a.createElementVNode("div",null,null,-1)),QM=qc(()=>a.createElementVNode("div",null,null,-1)),ZM=qc(()=>a.createElementVNode("div",null,null,-1)),eO=qc(()=>a.createElementVNode("div",null,null,-1)),tO=[JM,QM,ZM,eO],nO=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",KM,tO))}});var rO=Va(nO,[["__scopeId","data-v-1fa3a520"]]);const aO={class:"loader-line"},oO=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",aO))}});var iO=Va(oO,[["__scopeId","data-v-7d281cac"]]);const sO={class:"buttons-pagination"},lO=["onClick"],cO=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 c=1;c<=n.maxPaginationNumber;c+=1)l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else if([1,2,n.maxPaginationNumber,n.maxPaginationNumber-1].includes(n.currentPaginationNumber))for(let c=1;c<=r;c+=1)if(c<=3)l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else if(c===4)l.push({type:"omission"});else{const d=n.maxPaginationNumber-(r-c);l.push({type:"button",page:d,active:d===n.currentPaginationNumber,activePrev:d+1===n.currentPaginationNumber})}else if([3,4].includes(n.currentPaginationNumber))for(let c=1;c<=r;c+=1)c<=5?l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber}):c===6?l.push({type:"omission"}):l.push({type:"button",page:n.maxPaginationNumber,active:n.maxPaginationNumber===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else if([n.maxPaginationNumber-2,n.maxPaginationNumber-3].includes(n.currentPaginationNumber))for(let c=1;c<=r;c+=1)if(c===1)l.push({type:"button",page:1,active:n.currentPaginationNumber===1,activePrev:c+1===n.currentPaginationNumber});else if(c===2)l.push({type:"omission"});else{const d=n.maxPaginationNumber-(r-c);l.push({type:"button",page:d,active:d===n.currentPaginationNumber,activePrev:d+1===n.currentPaginationNumber})}else for(let c=1;c<=r;c+=1)if(c===1)l.push({type:"button",page:1,active:n.currentPaginationNumber===1,activePrev:c+1===n.currentPaginationNumber});else if(c===2||c===6)l.push({type:"omission"});else if(c===7)l.push({type:"button",page:n.maxPaginationNumber,active:n.maxPaginationNumber===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else{const d=4-c,u=n.currentPaginationNumber-d;l.push({type:"button",page:u,active:u===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber})}return l}),s=a.inject("themeColor");return(l,c)=>(a.openBlock(),a.createElementBlock("div",sO,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(i),(d,u)=>(a.openBlock(),a.createElementBlock("div",{key:u,class:a.normalizeClass(["item",{button:d.type==="button",active:d.type==="button"&&d.active,"active-prev":d.type==="button"&&d.activePrev,omission:d.type==="omission"}]),onClick:f=>o(d)},a.toDisplayString(d.type==="button"?d.page:"..."),11,lO))),128))]))}});var uO=Va(cO,[["__scopeId","data-v-4c681fa2"]]);const qy=e=>(a.pushScopeId("data-v-c9da5286"),e=e(),a.popScopeId(),e),dO=qy(()=>a.createElementVNode("span",{class:"arrow arrow-right"},null,-1)),fO=[dO],pO=qy(()=>a.createElementVNode("span",{class:"arrow arrow-left"},null,-1)),mO=[pO],hO=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"))},fO,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"))},mO,2)],64))}});var vO=Va(hO,[["__scopeId","data-v-c9da5286"]]);function gO(e,t,n,r){return{clickRow:(i,s,l)=>{if(e.value!==s)return;const c=Sr({},i);if(t.value){const{checkbox:d}=i;delete c.checkbox,c.isSelected=d}if(n.value){const{index:d}=i;delete c.index,c.indexInCurrentPage=d}r("clickRow",c,l)}}}function yO(e,t,n){const r=a.ref([]);return{expandingItemIndexList:r,updateExpandingItemIndexList:(s,l,c)=>{c.stopPropagation();const d=r.value.indexOf(s);if(d!==-1)r.value.splice(d,1);else{const u=e.value.findIndex(f=>JSON.stringify(f)===JSON.stringify(l));n("expandRow",t.value+u,l),r.value.push(t.value+u)}},clearExpandingItemIndexList:()=>{r.value=[]}}}function bO(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,c;return{value:i.value,fixed:(l=i.fixed)!=null?l:!0,width:(c=i.width)!=null?c:100,distance:s===0?0:o.reduce((d,u,f)=>{let p=d;return f<s&&(p+=u),p})}})});return{fixedHeaders:t,lastFixedColumn:n,fixedColumnsInfos:r}}function wO(e,t,n,r,o,i,s,l,c,d,u,f,p,h,v,y,C,g,S){const _=a.computed(()=>s.value.findIndex(Y=>Y.fixed)!==-1),b=a.computed(()=>_.value?s.value.filter(Y=>Y.fixed):[]),T=a.computed(()=>s.value.filter(Y=>!Y.fixed)),E=(Y,D)=>Array.isArray(Y)&&Array.isArray(D)?{sortBy:Y,sortDesc:D.map(H=>H==="desc")}:Y!==""?{sortBy:v.value,sortDesc:y.value==="desc"}:null,x=a.ref(E(v.value,y.value)),A=a.computed(()=>{var Y;const H=[...b.value,...T.value].map(U=>{const j=Object.assign(U);if(j.sortable&&(j.sortType="none"),p.value)if(Array.isArray(p.value.sortBy)&&Array.isArray(p.value.sortType)&&p.value.sortBy.includes(j.value)){const ie=p.value.sortBy.indexOf(j.value);j.sortType=p.value.sortType[ie]}else j.value===p.value.sortBy&&p.value.sortType&&(j.sortType=p.value.sortType);if(x.value&&Array.isArray(x.value.sortBy)&&Array.isArray(x.value.sortDesc)&&x.value.sortBy.includes(j.value)){const ie=x.value.sortBy.indexOf(j.value);j.sortType=x.value.sortDesc[ie]?"desc":"asc"}else x.value&&j.value===x.value.sortBy&&(j.sortType=x.value.sortDesc?"desc":"asc");return j});let B=[];l.value?B=[o.value||_.value?{text:"",value:"expand",fixed:!0,width:n.value}:{text:"",value:"expand"},...H]:B=H;let q=[];h.value?q=[i.value||_.value?{text:e.value,value:"index",fixed:!0,width:c.value}:{text:e.value,value:"index"},...B]:q=B;let J=[];return d.value?J=[r.value||_.value?{text:"checkbox",value:"checkbox",fixed:!0,width:(Y=t.value)!=null?Y:36}:{text:"checkbox",value:"checkbox"},...q]:J=q,J}),P=a.computed(()=>A.value.map(Y=>Y.value));return{clientSortOptions:x,headerColumns:P,headersForRender:A,updateSortField:(Y,D)=>{let H=null;if(D==="none"?H="asc":D==="asc"?H="desc":H=f.value?"asc":null,u.value&&g(Y,H),x.value&&Array.isArray(x.value.sortBy)&&Array.isArray(x.value.sortDesc)){const B=x.value.sortBy.indexOf(Y);B===-1?H!==null&&(x.value.sortBy.push(Y),x.value.sortDesc.push(H==="desc")):H===null?(x.value.sortDesc.splice(B,1),x.value.sortBy.splice(B,1)):x.value.sortDesc[B]=H==="desc"}else H===null?x.value=null:x.value={sortBy:Y,sortDesc:H==="desc"};S("updateSort",{sortType:H,sortBy:Y})},isMultiSorting:Y=>p.value&&Array.isArray(p.value.sortBy)?p.value.sortBy.includes(Y):x.value&&Array.isArray(x.value.sortBy)?x.value.sortBy.includes(Y):!1,getMultiSortNumber:Y=>p.value&&Array.isArray(p.value.sortBy)?p.value.sortBy.indexOf(Y)+1:x.value&&Array.isArray(x.value.sortBy)?x.value.sortBy.indexOf(Y)+1:!1}}function kO(e,t,n,r,o,i,s,l,c){const d=a.computed(()=>(e.value-1)*o.value+1),u=a.computed(()=>n.value?Math.min(c.value,e.value*o.value):Math.min(l.value.length,e.value*o.value)),f=a.computed(()=>n.value?r.value:l.value.slice(d.value-1,u.value)),p=a.computed(()=>s.value?f.value.map((y,C)=>Sr({index:d.value+C},y)):f.value),h=a.computed(()=>i.value.length===0||i.value.every(C=>l.value.findIndex(g=>JSON.stringify(C)===JSON.stringify(g))===-1)?"noneSelected":i.value.length===l.value.length&&i.value.every(g=>l.value.findIndex(S=>JSON.stringify(g)===JSON.stringify(S))!==-1)?"allSelected":"partSelected"),v=a.computed(()=>t.value?h.value==="allSelected"?p.value.map(y=>Sr({checkbox:!0},y)):h.value==="noneSelected"?p.value.map(y=>Sr({checkbox:!1},y)):p.value.map(y=>{const C=i.value.findIndex(g=>{const S=Sr({},y);return delete S.index,JSON.stringify(g)===JSON.stringify(S)})!==-1;return Sr({checkbox:C},y)}):p.value);return{currentPageFirstIndex:d,currentPageLastIndex:u,multipleSelectStatus:h,pageItems:v}}function _O(e,t,n,r,o,i,s){const l=a.ref(i.value?i.value.page:e.value),c=a.computed(()=>Math.ceil(r.value/o.value)),d=a.computed(()=>c.value===0||l.value===c.value),u=a.computed(()=>l.value===1);return{currentPaginationNumber:l,maxPaginationNumber:c,isLastPage:d,isFirstPage:u,nextPage:()=>{if(r.value!==0&&!d.value&&!n.value)if(t.value){const y=l.value+1;s(y)}else l.value+=1},prevPage:()=>{if(r.value!==0&&!u.value&&!n.value)if(t.value){const y=l.value-1;s(y)}else l.value-=1},updatePage:y=>{n.value||(t.value?s(y):l.value=y)},updateCurrentPaginationNumber:y=>{l.value=y}}}function CO(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 SO(e,t,n){const r=a.computed({get:()=>{if(e.value){const{page:l,rowsPerPage:c,sortBy:d,sortType:u}=e.value;return{page:l,rowsPerPage:c,sortBy:d??null,sortType:u??null}}return null},set:l=>{n("update:serverOptions",l)}});return{serverOptionsComputed:r,updateServerOptionsPage:l=>{r.value&&(r.value=Ll(Sr({},r.value),{page:l}))},updateServerOptionsSort:(l,c)=>{if(r.value)if(t.value&&Array.isArray(r.value.sortBy)&&Array.isArray(r.value.sortType)){const d=r.value.sortBy.findIndex(u=>u===l);d===-1&&c!==null&&(r.value.sortBy.push(l),r.value.sortType.push(c)),c===null?(r.value.sortBy.splice(d,1),r.value.sortType.splice(d,1)):r.value.sortType[d]=c}else r.value=Ll(Sr({},r.value),{sortBy:c!==null?l:null,sortType:c})},updateServerOptionsRowsPerPage:l=>{r.value&&(r.value=Ll(Sr({},r.value),{page:1,rowsPerPage:l}))}}}function sn(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 EO(e,t){const n=sn(e,t);return Array.isArray(n)?n.join(","):n}function xO(e,t,n,r,o,i,s,l,c,d){const u=_=>{if(typeof i.value=="string"&&i.value!=="")return sn(i.value,_);if(Array.isArray(i.value)){let b="";return i.value.forEach(T=>{b+=sn(T,_)}),b}return Object.values(_).join(" ")},f=a.computed(()=>{if(!n.value&&s.value!==""){const _=new RegExp(s.value,"i");return r.value.filter(b=>_.test(u(b)))}return r.value}),p=a.computed(()=>{let _=[...f.value];return t.value?(t.value.forEach(b=>{_=_.filter(T=>{const{field:E,comparison:x,criteria:A}=b;if(typeof x=="function")return x(sn(E,T),A);const P=sn(E,T);switch(x){case"=":return P===A;case"!=":return P!==A;case">":return P>A;case"<":return P<A;case"<=":return P<=A;case">=":return P>=A;case"between":return P>=Math.min(...A)&&P<=Math.max(...A);case"in":return A.includes(P);default:return P===A}})}),_):f.value});a.watch(p,_=>{t.value&&d("updateFilter",_)},{immediate:!0,deep:!0});function h(_,b,T,E){const x=_[E],A=b[E];return(E===0?T:h(_,b,T,E-1)).sort((M,z)=>{let V=!0;for(let Y=0;Y<E;Y+=1)if(sn(_[Y],M)!==sn(_[Y],z)){V=!1;break}return V?sn(x,M)<sn(x,z)?A?1:-1:sn(x,M)>sn(x,z)?A?-1:1:0:0})}const v=a.computed(()=>{if(n.value)return r.value;if(e.value===null)return p.value;const{sortBy:_,sortDesc:b}=e.value,T=[...p.value];return c&&Array.isArray(_)&&Array.isArray(b)?_.length===0?T:h(_,b,T,_.length-1):T.sort((E,x)=>sn(_,E)<sn(_,x)?b?1:-1:sn(_,E)>sn(_,x)?b?-1:1:0)}),y=a.computed(()=>n.value?l.value:v.value.length),C=a.computed({get:()=>{var _;return(_=o.value)!=null?_:[]},set:_=>{d("update:itemsSelected",_)}});return{totalItems:v,selectItemsComputed:C,totalItemsLength:y,toggleSelectAll:_=>{C.value=_?v.value:[],_&&d("selectAll")},toggleSelectItem:_=>{const b=_.checkbox;if(delete _.checkbox,delete _.index,b)C.value=C.value.filter(T=>JSON.stringify(T)!==JSON.stringify(_)),d("deselectRow",_);else{const T=C.value;T.unshift(_),C.value=T,d("selectRow",_)}}}}var TO={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 PO=e=>(a.pushScopeId("data-v-32683533"),e=e(),a.popScopeId(),e),IO=["id"],AO=["onClick"],MO={key:3,class:"header-text"},OO={key:5,class:"multi-sort__number"},NO=["onClick","onDblclick","onContextmenu"],BO=["onClick"],DO=["colspan"],RO={key:0,class:"vue3-easy-data-table__loading"},LO=PO(()=>a.createElementVNode("div",{class:"vue3-easy-data-table__loading-mask"},null,-1)),$O={class:"loading-entity"},zO={key:1,class:"vue3-easy-data-table__message"},VO={key:0,class:"vue3-easy-data-table__footer"},FO={key:0,class:"pagination__rows-per-page"},jO={class:"pagination__items-index"},HO=a.defineComponent({__name:"DataTable",props:Ll(Sr({},TO),{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(Ae=>({da0d4328:a.unref(K),"3037e504":a.unref(Z)}));const{tableNodeId:o,clickEventType:i,bodyTextDirection:s,checkboxColumnWidth:l,currentPage:c,expandColumnWidth:d,filterOptions:u,fixedCheckbox:f,fixedExpand:p,fixedHeader:h,fixedIndex:v,headers:y,headerTextDirection:C,indexColumnWidth:g,items:S,itemsSelected:_,loading:b,mustSort:T,multiSort:E,rowsItems:x,rowsPerPage:A,searchField:P,searchValue:M,serverItemsLength:z,serverOptions:V,showIndex:Y,sortBy:D,sortType:H,tableHeight:B,tableMinHeight:q,themeColor:J,rowsOfPageSeparatorMessage:U,showIndexSymbol:j,preventContextMenuRow:ie}=a.toRefs(r),Z=a.computed(()=>B.value?`${B.value}px`:null),K=a.computed(()=>`${q.value}px`);a.provide("themeColor",J.value);const I=a.useSlots(),L=a.computed(()=>!!I.pagination),F=a.computed(()=>!!I.loading),N=a.computed(()=>!!I.expand),ce=a.computed(()=>!!I.body),ge=a.ref(),Fe=a.ref();a.provide("dataTable",ge);const ee=a.ref(!1);a.onMounted(()=>{Fe.value.addEventListener("scroll",()=>{ee.value=Fe.value.scrollLeft>0})});const se=a.computed(()=>_.value!==null),ae=a.computed(()=>V.value!==null),{serverOptionsComputed:me,updateServerOptionsPage:R,updateServerOptionsSort:oe,updateServerOptionsRowsPerPage:Pe}=SO(V,E,n),{clientSortOptions:ue,headerColumns:Ne,headersForRender:de,updateSortField:G,isMultiSorting:te,getMultiSortNumber:pe}=wO(j,l,d,f,p,v,y,N,g,se,ae,T,me,Y,D,H,E,oe,n),{rowsItemsComputed:xe,rowsPerPageRef:Te,updateRowsPerPage:Se}=CO(ae,x,V,A),{totalItems:ot,selectItemsComputed:Ge,totalItemsLength:mn,toggleSelectAll:xn,toggleSelectItem:hn}=xO(ue,u,ae,S,_,P,M,z,E,n),{currentPaginationNumber:zt,maxPaginationNumber:Gt,isLastPage:ne,isFirstPage:ke,nextPage:Ie,prevPage:W,updatePage:re,updateCurrentPaginationNumber:we}=_O(c,ae,b,mn,Te,V,R),{currentPageFirstIndex:Q,currentPageLastIndex:he,multipleSelectStatus:Ce,pageItems:at}=kO(zt,se,ae,S,Te,Ge,Y,ot,mn),ut=a.computed(()=>zt.value===0?0:(zt.value-1)*Te.value),{expandingItemIndexList:dt,updateExpandingItemIndexList:Et,clearExpandingItemIndexList:Rt}=yO(at,ut,n),{fixedHeaders:an,lastFixedColumn:vn,fixedColumnsInfos:Vi}=bO(de),{clickRow:Gn}=gO(i,se,Y,n),Fi=(Ae,Qt)=>{ie.value&&Qt.preventDefault(),n("contextmenuRow",Ae,Qt)},Io=Ae=>{var Qt;const Me=(Qt=Ae.width)!=null?Qt:an.value.length?100:null;if(Me)return`width: ${Me}px; min-width: ${Me}px;`},Ao=(Ae,Qt="th")=>{if(!an.value.length)return;const Me=Vi.value.find(It=>It.value===Ae);if(Me)return`left: ${Me.distance}px;z-index: ${Qt==="th"?3:1};position: sticky;`};return a.watch(b,(Ae,Qt)=>{me.value&&Ae===!1&&Qt===!0&&(we(me.value.page),Rt())}),a.watch(Te,Ae=>{ae.value?Pe(Ae):re(1)}),a.watch([M,u],()=>{ae.value||re(1)}),a.watch([zt,ue,P,M,u],()=>{Rt()},{deep:!0}),a.watch(at,Ae=>{n("updatePageItems",Ae)},{deep:!0}),a.watch(ot,Ae=>{n("updateTotalItems",Ae)},{deep:!0}),t({currentPageFirstIndex:Q,currentPageLastIndex:he,clientItemsLength:mn,maxPaginationNumber:Gt,currentPaginationNumber:zt,isLastPage:ne,isFirstPage:ke,nextPage:Ie,prevPage:W,updatePage:re,rowsPerPageOptions:xe,rowsPerPageActiveOption:Te,updateRowsPerPageActiveOption:Se}),(Ae,Qt)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"dataTable",ref:ge,class:a.normalizeClass(["vue3-easy-data-table",[Ae.tableClassName]])},[a.createElementVNode("div",{ref_key:"tableBody",ref:Fe,class:a.normalizeClass(["vue3-easy-data-table__main",{"fixed-header":a.unref(h),"fixed-height":a.unref(B),"show-shadow":ee.value,"table-fixed":a.unref(an).length,hoverable:!Ae.noHover,"border-cell":Ae.borderCell}])},[a.createElementVNode("table",{id:a.unref(o)},[a.createElementVNode("colgroup",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(de),(Me,It)=>(a.openBlock(),a.createElementBlock("col",{key:It,style:a.normalizeStyle(Io(Me))},null,4))),128))]),a.unref(I)["customize-headers"]?a.renderSlot(Ae.$slots,"customize-headers",{key:0},void 0,!0):a.unref(de).length&&!Ae.hideHeader?(a.openBlock(),a.createElementBlock("thead",{key:1,class:a.normalizeClass(["vue3-easy-data-table__header",[Ae.headerClassName]])},[a.createElementVNode("tr",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(de),(Me,It)=>(a.openBlock(),a.createElementBlock("th",{key:It,class:a.normalizeClass([{sortable:Me.sortable,none:Me.sortable&&Me.sortType==="none",desc:Me.sortable&&Me.sortType==="desc",asc:Me.sortable&&Me.sortType==="asc",shadow:Me.value===a.unref(vn)},typeof Ae.headerItemClassName=="string"?Ae.headerItemClassName:Ae.headerItemClassName(Me,It+1)]),style:a.normalizeStyle(Ao(Me.value)),onClick:a.withModifiers(mt=>Me.sortable&&Me.sortType?a.unref(G)(Me.value,Me.sortType):null,["stop"])},[Me.text==="checkbox"?(a.openBlock(),a.createBlock(LM,{key:a.unref(Ce),status:a.unref(Ce),onChange:a.unref(xn)},null,8,["status","onChange"])):(a.openBlock(),a.createElementBlock("span",{key:1,class:a.normalizeClass(["header",`direction-${a.unref(C)}`])},[a.unref(I)[`header-${Me.value}`]?a.renderSlot(Ae.$slots,`header-${Me.value}`,a.normalizeProps(a.mergeProps({key:0},Me)),void 0,!0):a.unref(I)[`header-${Me.value.toLowerCase()}`]?a.renderSlot(Ae.$slots,`header-${Me.value.toLowerCase()}`,a.normalizeProps(a.mergeProps({key:1},Me)),void 0,!0):a.unref(I).header?a.renderSlot(Ae.$slots,"header",a.normalizeProps(a.mergeProps({key:2},Me)),void 0,!0):(a.openBlock(),a.createElementBlock("span",MO,a.toDisplayString(Me.text),1)),Me.sortable?(a.openBlock(),a.createElementBlock("i",{key:Me.sortType?Me.sortType:"none",class:a.normalizeClass(["sortType-icon",{desc:Me.sortType==="desc"}])},null,2)):a.createCommentVNode("",!0),a.unref(E)&&a.unref(te)(Me.value)?(a.openBlock(),a.createElementBlock("span",OO,a.toDisplayString(a.unref(pe)(Me.value)),1)):a.createCommentVNode("",!0)],2))],14,AO))),128))])],2)):a.createCommentVNode("",!0),a.unref(ce)?a.renderSlot(Ae.$slots,"body",a.normalizeProps(a.mergeProps({key:2},a.unref(at))),void 0,!0):a.unref(Ne).length?(a.openBlock(),a.createElementBlock("tbody",{key:3,class:a.normalizeClass(["vue3-easy-data-table__body",{"row-alternation":Ae.alternating}])},[a.renderSlot(Ae.$slots,"body-prepend",a.normalizeProps(a.guardReactiveProps({items:a.unref(at),pagination:{isFirstPage:a.unref(ke),isLastPage:a.unref(ne),currentPaginationNumber:a.unref(zt),maxPaginationNumber:a.unref(Gt),nextPage:a.unref(Ie),prevPage:a.unref(W)},headers:a.unref(de)})),void 0,!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(at),(Me,It)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:It},[a.createElementVNode("tr",{class:a.normalizeClass([{"even-row":(It+1)%2===0},typeof Ae.bodyRowClassName=="string"?Ae.bodyRowClassName:Ae.bodyRowClassName(Me,It+1)]),onClick:mt=>{a.unref(Gn)(Me,"single",mt),Ae.clickRowToExpand&&a.unref(Et)(It+a.unref(ut),Me,mt)},onDblclick:mt=>{a.unref(Gn)(Me,"double",mt)},onContextmenu:mt=>{Fi(Me,mt)}},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Ne),(mt,ca)=>(a.openBlock(),a.createElementBlock("td",{key:ca,style:a.normalizeStyle(Ao(mt,"td")),class:a.normalizeClass([{shadow:mt===a.unref(vn),"can-expand":mt==="expand"},typeof Ae.bodyItemClassName=="string"?Ae.bodyItemClassName:Ae.bodyItemClassName(mt,It+1),`direction-${a.unref(s)}`]),onClick:gn=>mt==="expand"?a.unref(Et)(It+a.unref(ut),Me,gn):null},[a.unref(I)[`item-${mt}`]?a.renderSlot(Ae.$slots,`item-${mt}`,a.normalizeProps(a.mergeProps({key:0},Me)),void 0,!0):a.unref(I)[`item-${mt.toLowerCase()}`]?a.renderSlot(Ae.$slots,`item-${mt.toLowerCase()}`,a.normalizeProps(a.mergeProps({key:1},Me)),void 0,!0):mt==="expand"?(a.openBlock(),a.createElementBlock("i",{key:2,class:a.normalizeClass(["expand-icon",{expanding:a.unref(dt).includes(a.unref(ut)+It)}])},null,2)):mt==="checkbox"?(a.openBlock(),a.createBlock(jM,{key:3,checked:Me[mt],onChange:gn=>a.unref(hn)(Me)},null,8,["checked","onChange"])):a.unref(I).item?a.renderSlot(Ae.$slots,"item",a.normalizeProps(a.mergeProps({key:4},{column:mt,item:Me})),void 0,!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:5},[a.createTextVNode(a.toDisplayString(a.unref(EO)(mt,Me)),1)],64))],14,BO))),128))],42,NO),a.unref(N)&&a.unref(dt).includes(It+a.unref(ut))?(a.openBlock(),a.createElementBlock("tr",{key:0,class:a.normalizeClass([{"even-row":(It+1)%2===0},typeof Ae.bodyExpandRowClassName=="string"?Ae.bodyExpandRowClassName:Ae.bodyExpandRowClassName(Me,It+1)])},[a.createElementVNode("td",{colspan:a.unref(de).length,class:"expand"},[Me.expandLoading?(a.openBlock(),a.createBlock(iO,{key:0,class:"expand-loading"})):a.createCommentVNode("",!0),a.renderSlot(Ae.$slots,"expand",a.normalizeProps(a.guardReactiveProps(Me)),void 0,!0)],8,DO)],2)):a.createCommentVNode("",!0)],64))),128)),a.renderSlot(Ae.$slots,"body-append",a.normalizeProps(a.guardReactiveProps({items:a.unref(at),pagination:{isFirstPage:a.unref(ke),isLastPage:a.unref(ne),currentPaginationNumber:a.unref(zt),maxPaginationNumber:a.unref(Gt),nextPage:a.unref(Ie),prevPage:a.unref(W),updatePage:a.unref(re)},headers:a.unref(de)})),void 0,!0)],2)):a.createCommentVNode("",!0)],8,IO),a.unref(b)?(a.openBlock(),a.createElementBlock("div",RO,[LO,a.createElementVNode("div",$O,[a.unref(F)?a.renderSlot(Ae.$slots,"loading",{key:0},void 0,!0):(a.openBlock(),a.createBlock(rO,{key:1}))])])):a.createCommentVNode("",!0),!a.unref(at).length&&!a.unref(b)?(a.openBlock(),a.createElementBlock("div",zO,[a.renderSlot(Ae.$slots,"empty-message",{},()=>[a.createTextVNode(a.toDisplayString(Ae.emptyMessage),1)],!0)])):a.createCommentVNode("",!0)],2),Ae.hideFooter?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",VO,[Ae.hideRowsPerPage?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",FO,[a.createTextVNode(a.toDisplayString(Ae.rowsPerPageMessage)+" ",1),a.createVNode(XM,{modelValue:a.unref(Te),"onUpdate:modelValue":Qt[0]||(Qt[0]=Me=>a.isRef(Te)?Te.value=Me:null),"rows-items":a.unref(xe)},null,8,["modelValue","rows-items"])])),a.createElementVNode("div",jO,a.toDisplayString(`${a.unref(Q)}–${a.unref(he)}`)+" "+a.toDisplayString(a.unref(U))+" "+a.toDisplayString(a.unref(mn)),1),a.unref(L)?a.renderSlot(Ae.$slots,"pagination",a.normalizeProps(a.mergeProps({key:1},{isFirstPage:a.unref(ke),isLastPage:a.unref(ne),currentPaginationNumber:a.unref(zt),maxPaginationNumber:a.unref(Gt),nextPage:a.unref(Ie),prevPage:a.unref(W)})),void 0,!0):(a.openBlock(),a.createBlock(vO,{key:2,"is-first-page":a.unref(ke),"is-last-page":a.unref(ne),onClickNextPage:a.unref(Ie),onClickPrevPage:a.unref(W)},a.createSlots({_:2},[Ae.buttonsPagination?{name:"buttonsPagination",fn:a.withCtx(()=>[a.createVNode(uO,{"current-pagination-number":a.unref(zt),"max-pagination-number":a.unref(Gt),onUpdatePage:a.unref(re)},null,8,["current-pagination-number","max-pagination-number","onUpdatePage"])]),key:"0"}:void 0]),1032,["is-first-page","is-last-page","onClickNextPage","onClickPrevPage"]))]))],2))}});var Yy=Va(HO,[["__scopeId","data-v-32683533"]]);typeof window<"u"&&window.Vue&&window.Vue.createApp({}).component("Vue3EasyDataTable",Yy);const UO={class:"relative z-50 -mt-20 w-full -translate-y-0.5 rounded-2xl bg-white px-4 py-3 shadow"},WO={class:"my-[3px] flex w-full flex-col justify-between space-y-2 md:flex-row"},qO={class:"items-center sm:flex","data-test-results":""},YO={key:0,class:"flex w-full items-center md:mr-4 md:space-x-2"},GO={class:"hidden whitespace-nowrap md:flex","data-test-results-count":""},XO=a.defineComponent({__name:"AppDataTableFooter",props:{dataTable:{},currentPage:{}},emits:["nextPage","previousPage","updatePage"],setup(e,{emit:t}){const n=e,r=t,o=a.computed(()=>n.dataTable),i=a.computed(()=>{var p;return((p=o.value)==null?void 0:p.clientItemsLength)??0}),s=a.computed(()=>{var p;return(p=o.value)==null?void 0:p.maxPaginationNumber}),l=a.computed(()=>{var p;return n.currentPage??((p=o.value)==null?void 0:p.currentPaginationNumber)});function c(){r("nextPage")}function d(){r("previousPage")}function u(p){r("updatePage",p)}function f(){r("updatePage",1)}return(p,h)=>(a.openBlock(),a.createElementBlock("div",UO,[a.createElementVNode("div",WO,[a.createElementVNode("div",qO,[o.value?(a.openBlock(),a.createElementBlock("div",YO,[h[1]||(h[1]=a.createElementVNode("div",{class:"hidden md:block"}," Tonen ",-1)),a.createVNode(a.unref(Uc),{modelValue:o.value.rowsPerPageActiveOption,"onUpdate:modelValue":h[0]||(h[0]=v=>o.value.rowsPerPageActiveOption=v),"can-clear":!1,"can-deselect":!1,options:o.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",GO,[a.renderSlot(p.$slots,"results",{results:i.value},()=>[a.createTextVNode(a.toDisplayString(i.value)+" results ",1)])])]),i.value>0?(a.openBlock(),a.createBlock(a.unref(Jy),{key:0,"current-page":l.value,"last-page":s.value,onPaginate:u,onNextPage:c,onPreviousPage:d},null,8,["current-page","last-page"])):a.createCommentVNode("",!0)])]))}}),KO=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"},hideFooter:{type:Boolean,default:!1}},emits:["update:modelValue","updatePage","clickItem","contextMenuOpen","clickContextItem"],setup(e,{expose:t,emit:n}){const r=e,o=n,i=a.useSlots(),s=Ai(),l=Yc(),c=mo.useKeyModifier("Alt"),d=a.ref(),u=a.ref((r==null?void 0:r.modelValue)??void 0),f=a.computed(()=>d.value);a.watch(()=>u.value,g=>{u.value&&r.actionBarSelection!==!1&&o("update:modelValue",[...g.map(S=>S==null?void 0:S[r.actionBarSelectionKey])])}),a.onMounted(()=>{r!=null&&r.modelValue&&a.watch(r.modelValue,g=>{u.value=g})});function p(g){if(u.value&&s.setTableSelection(u.value),!g&&r.actionBarSelection){s.setSelection(u.value.map(S=>S==null?void 0:S[r.actionBarSelectionKey]));return}g&&r.actionBarSelection&&s.setSelection(g.map(S=>S==null?void 0:S[r.actionBarSelectionKey])),r.actionBarSelection===!1&&o("update:modelValue",[...g.map(S=>S==null?void 0:S[r.actionBarSelectionKey])])}function h(g){var S;(S=f.value)==null||S.updatePage(g),o("updatePage",g)}function v(){var g,S;(g=f.value)==null||g.prevPage(),o("updatePage",(((S=f.value)==null?void 0:S.currentPaginationNumber)??2)-1)}function y(){var g,S;(g=f.value)==null||g.nextPage(),o("updatePage",(((S=f.value)==null?void 0:S.currentPaginationNumber)??0)+1)}function C(g){if(c.value&&u.value!==void 0){const S=u.value.findIndex(_=>_.id===g.id);if(S>-1){u.value.splice(S,1),p();return}u.value.push({...g,isSelected:void 0}),p();return}o("clickItem",g)}return t({dataTableInstance:f}),s.onResetSelection.value=g=>{(r==null?void 0:r.modelValue)!==void 0&&(u.value=g)},(g,S)=>(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(Yy),a.mergeProps({ref_key:"dataTable",ref:d},{...g.$props,...g.$attrs},{"items-selected":u.value,"onUpdate:itemsSelected":[S[0]||(S[0]=_=>u.value=_),p],"hide-footer":!0,class:{"app-hide-footer":g.hideFooter},headers:g.headers,"checkbox-column-width":30,"rows-items":g.rowItems,"rows-per-page":g.rowsPerPage,"body-row-class-name":"drop-shadow rounded-xl",onClickRow:C,onContextmenuRow:a.unref(l).open}),a.createSlots({loading:a.withCtx(()=>[a.createVNode(a.unref(Ra),{size:"medium"})]),_:2},[a.renderList(Object.keys(a.unref(i)),(_,b)=>({name:_,fn:a.withCtx(T=>[a.renderSlot(g.$slots,_,a.normalizeProps(a.guardReactiveProps(T)))])}))]),1040,["items-selected","class","headers","rows-items","rows-per-page","onContextmenuRow"]),f.value&&!g.hideFooter?(a.openBlock(),a.createBlock(XO,{key:0,"data-table":f.value,"current-page":g.currentPage,onNextPage:y,onPreviousPage:v,onUpdatePage:h},{results:a.withCtx(({results:_})=>[a.renderSlot(g.$slots,"footer-results",{results:_})]),_:3},8,["data-table","current-page"])):a.createCommentVNode("",!0)],2))}}),JO=(e,t,n)=>{const r=e[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((o,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},Gy=a.defineComponent({__name:"Error",setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.unref(B1),{type:"error",title:"Onbekend type",description:"Type wordt niet ondersteund."}))}}),QO=Object.freeze(Object.defineProperty({__proto__:null,default:Gy},Symbol.toStringTag,{value:"Module"})),Xy=a.defineComponent({__name:"Loading",setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",null,[a.createVNode(a.unref(Ra))]))}}),ZO=Object.freeze(Object.defineProperty({__proto__:null,default:Xy},Symbol.toStringTag,{value:"Module"})),e9={default:["text-white"],danger:["text-red-500"]},t9={contextMenu:["hover:bg-zinc-600","px-2","py-1"],actionBar:["hover:bg-black-100/20"]},n9={actionBar:"before:-top-4 before:left-1/2 before:border-x-10 before:border-b-10 before:border-x-transparent before:border-b-secondary",contextMenu:"before:left-[-5px] before:top-0 before:border-y-10 before:border-r-10 before:border-y-transparent before:border-r-secondary"},r9=a.defineComponent({__name:"AppActionBarSubMenu",props:{action:{},context:{type:Boolean,default:!1},item:{default:void 0}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,o=a.defineAsyncComponent({loader:async()=>typeof n.action.component=="string"?JO(Object.assign({"./Components/Error.vue":()=>Promise.resolve().then(()=>QO),"./Components/Loading.vue":()=>Promise.resolve().then(()=>ZO),"./Components/MultiSelect.vue":()=>Promise.resolve().then(()=>sq)}),`./Components/${E3.pascal(n.action.component)}.vue`,3):n.action.component,errorComponent:Gy,loadingComponent:Xy});return(i,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"-top-full left-full translate-x-3 translate-y-[39px]":n.context,"left-1/2 top-6 -translate-x-1/2 translate-y-10":!n.context},"absolute w-fit rounded-lg bg-secondary p-2"])},[a.createElementVNode("div",{class:a.normalizeClass([a.unref(n9)[n.context?"contextMenu":"actionBar"],"relative w-fit before:absolute before:-translate-x-3"])},[a.createVNode(a.unref(o),a.mergeProps({...n,...i.action.componentProperties},{"data-test-action-menu":"",onClose:s[0]||(s[0]=()=>r("close"))}),null,16)],2)],2))}}),Ky=a.defineComponent({__name:"AppActionBarItem",props:{action:{},context:{type:Boolean,default:!1},item:{default:void 0}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,o=Ai(),i=Yc(),s=a.ref(null),l=a.ref(!1),c=a.ref(!1),d=a.ref([]),u=a.computed(()=>c.value?Ra:l.value&&n.action.confirm?O1:n.action.icon),f=a.computed(()=>n.action.type??"default"),p=a.computed(()=>typeof n.action.hidden=="function"?n.context&&i.item?n.action.hidden([mo.toValue(i.item)],!0):n.action.hidden(o.tableSelection.value,!1):n.action.hidden);async function h(){var C,g,S;if((n.action.confirm||n.action.component)&&!l.value){l.value=!0;return}c.value=!0,l.value=!1;const y=await((g=(C=n.action).onClick)==null?void 0:g.call(C,n.item??o.tableSelection.value));c.value=!1,(((S=n.action)==null?void 0:S.resetSelection)??!0)&&o.resetSelection(),y&&r("close")}function v(){l.value=!1,r("close")}return mo.onClickOutside(s,()=>{l.value=!1}),(y,C)=>{const g=a.resolveDirective("tippy");return p.value!==!0?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"actionBarItem",ref:s,class:a.normalizeClass([[...a.unref(e9)[f.value],...a.unref(t9)[n.context?"contextMenu":"actionBar"]],"relative cursor-pointer rounded-md transition-colors duration-200"])},[a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"px-2.5 py-4":!y.context},"flex w-full items-center space-x-2 whitespace-nowrap"]),"data-test-action-bar-icon":"",onClick:h},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.value),{class:a.normalizeClass({"text-yellow-600":l.value&&y.action.confirm,"size-4":y.context,"size-5":!y.context,"!size-5":c.value})},null,8,["class"])),a.renderSlot(y.$slots,"default")],2)),[[g,y.action.name]]),n.action.component&&l.value?(a.openBlock(),a.createBlock(r9,a.mergeProps({key:0,modelValue:d.value,"onUpdate:modelValue":C[0]||(C[0]=S=>d.value=S)},n,{onClose:v}),null,16,["modelValue"])):a.createCommentVNode("",!0)],2)):a.createCommentVNode("",!0)}}}),a9={class:"flex py-4.5"},o9={class:"w-28 whitespace-nowrap pl-2","data-test-selection-text":""},i9={class:"flex"},$p=a.defineComponent({__name:"AppActionBar",setup(e){const{selection:t,actions:n,isOpen:r,close:o,resetSelection:i,selectionText:s}=Ai(),l=a.ref([1]),c=a.computed(()=>s.value.replace(":selection",String(t.value.length)));function d(){l.value=[1],i()}function u(){i(),o()}return mo.onKeyStroke(["Escape"],f=>{f.preventDefault(),u()}),(f,p)=>(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",a9,[a.createVNode(By,{modelValue:l.value,"onUpdate:modelValue":p[0]||(p[0]=h=>l.value=h),value:1,type:"checkbox",onChange:d},null,8,["modelValue"]),a.createElementVNode("div",o9,a.toDisplayString(c.value),1)]),a.createElementVNode("div",i9,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(n),(h,v)=>(a.openBlock(),a.createBlock(Ky,{key:`action-item-${v}`,action:h,onClose:u},null,8,["action"]))),128))]),a.createElementVNode("div",null,[a.createVNode(a.unref(Gp),{class:"size-5 cursor-pointer",onClick:u})])],2))}}),Ju=a.defineComponent({__name:"AppPaginationItem",props:{as:{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"]))}}),s9={class:"!my-0 flex items-center justify-between border-zinc-200 sm:px-6"},Jy=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=t,o=a.ref(2),i=a.computed(()=>{var h,v;return((v=(h=n.meta)==null?void 0:h.meta)==null?void 0:v.currentPage)??n.currentPage??1}),s=a.computed(()=>{var h,v;return((v=(h=n.meta)==null?void 0:h.meta)==null?void 0:v.lastPage)??n.lastPage??1}),l=a.computed(()=>{const h=i.value-o.value;return h>0?h:1}),c=a.computed(()=>{const h=i.value+o.value;return h<s.value?h:s.value}),d=a.computed(()=>{const h=i.value-1;return h>0?h:null}),u=a.computed(()=>{const h=i.value+1;return h<=s.value?h:null}),f=a.computed(()=>{const h=[];l.value>1&&(h.push(1),l.value>2&&h.push(0));for(let v=l.value;v<=c.value;v+=1)h.push(v);return c.value<s.value&&(c.value+1!==s.value&&h.push(0),h.push(s.value)),h});function p(h){h&&r("paginate",h)}return(h,v)=>(a.openBlock(),a.createElementBlock("div",s9,[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(Ju,{disabled:d.value===null,href:"#",class:"rounded-l-lg",onClick:v[0]||(v[0]=a.withModifiers(()=>r("previousPage"),["prevent"]))},{default:a.withCtx(()=>[v[2]||(v[2]=a.createElementVNode("span",{class:"sr-only"},"previous",-1)),a.createVNode(a.unref(Yp),{class:"-mx-1.5 size-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(Ju,{key:`pagination-${y}`,as:y?"a":"span",active:y===i.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(Ju,{class:a.normalizeClass([{"cursor-not-allowed":u.value===null},"rounded-r-lg"]),disabled:u.value===null,href:"#",onClick:v[1]||(v[1]=a.withModifiers(()=>r("nextPage"),["prevent"]))},{default:a.withCtx(()=>[v[3]||(v[3]=a.createElementVNode("span",{class:"sr-only"},"next",-1)),a.createVNode(a.unref(b2),{class:"-mx-1.5 size-5 stroke-2","aria-hidden":"true"})]),_:1},8,["class","disabled"])],2)])]))}}),l9=["aria-checked","disabled"],Qy=a.defineComponent({__name:"AppToggle",props:a.mergeModels({disabled:{type:Boolean,default:!1}},{modelValue:{type:Boolean,required:!1},modelModifiers:{}}),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},i[0]||(i[0]=[a.createElementVNode("span",{"aria-hidden":"true",class:"pointer-events-none inline-block size-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)]),8,l9))}}),c9={class:"flex justify-between"},u9={"data-test-title":""},d9={key:0,"data-test-default-slot":""},f9=a.defineComponent({__name:"AppToggleCard",props:a.mergeModels({title:{},disabled:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=a.useModel(e,"modelValue"),n=a.useSlots();return(r,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([r.disabled?"bg-zinc-50":"bg-white","rounded-xl p-4 shadow-[0px_2px_4px_0px_rgba(32,32,32,0.08)]"])},[a.createElementVNode("div",c9,[a.createElementVNode("span",u9,[a.renderSlot(r.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(r.title),1)])]),a.createVNode(a.unref(Qy),{ref:r.title,modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=i=>t.value=i),disabled:r.disabled,"data-test-toggle":""},null,8,["modelValue","disabled"])]),a.unref(n).default?a.withDirectives((a.openBlock(),a.createElementBlock("div",d9,[a.renderSlot(r.$slots,"default")],512)),[[a.vShow,t.value]]):a.createCommentVNode("",!0)],2))}}),p9=["href","onClick"],m9={class:"text-base font-bold","data-test-text":""},h9=a.defineComponent({__name:"AppMenuItem",props:{name:{},icon:{},to:{},visible:{type:Boolean,default:!0}},setup(e){return(t,n)=>{const r=a.resolveComponent("RouterLink");return t.visible?(a.openBlock(),a.createBlock(r,{key:0,to:t.to,custom:""},{default:a.withCtx(({href:o,isActive:i,navigate:s})=>[a.renderSlot(t.$slots,"default",{},()=>[a.createElementVNode("a",{href:o,class:a.normalizeClass([{"bg-zinc-100 hover:!bg-zinc-100":i},"flex cursor-pointer items-center space-x-2 rounded-lg px-4 py-3 hover:bg-zinc-100"]),onClick:s},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.icon),{class:"size-4 stroke-2","data-test-icon":""})),a.createElementVNode("span",m9,a.toDisplayString(t.name),1)],10,p9)])]),_:3},8,["to"])):a.createCommentVNode("",!0)}}}),v9={class:"space-y-4"},g9={class:"flex w-full px-2"},y9={class:"text-base"},b9={class:"text-base"},w9=a.defineComponent({__name:"AppMenu",props:{responsive:{type:Boolean,default:!0},items:{}},setup(e){const t=ms.useRoute(),n=a.ref(t),r=ms.useRouter();async function o(i){await r.push(i)}return(i,s)=>(a.openBlock(),a.createElementBlock("div",v9,[i.responsive?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass([{"md:hidden":i.responsive},"block"])},[a.createVNode(a.unref(Uc),{modelValue:n.value,"onUpdate:modelValue":s[0]||(s[0]=l=>n.value=l),options:i.items,"can-clear":!1,"append-to-body":!0,"open-direction":"down","dropdown-classes":"!max-h-48","wrapper-classes":"w-full","value-prop":"to",onSelect:o},{singlelabel:a.withCtx(l=>[a.createElementVNode("div",g9,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(l.value.icon),{class:"mr-2 size-6","data-test-icon":""})),a.createElementVNode("span",y9,a.toDisplayString(l.value.name),1)])]),option:a.withCtx(l=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(l.option.icon),{class:"mr-2 size-5","data-test-icon":""})),a.createElementVNode("span",b9,a.toDisplayString(l.option.name),1)]),_:1},8,["modelValue","options"])],2)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass([{hidden:i.responsive},"!mt-0 md:block md:space-y-2"])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.items,l=>(a.openBlock(),a.createBlock(h9,a.mergeProps({ref_for:!0},l,{key:l.name}),null,16))),128))],2)]))}}),k9={class:"flex flex-col space-y-4 border-b border-zinc-200 py-8 lg:flex-row lg:space-x-10 lg:space-y-0"},_9={class:"flex shrink-0 flex-col lg:w-80 lg:space-y-1"},C9={key:0,class:"text-xl font-bold text-zinc-900","data-test-title":""},S9={key:0,class:"text-zinc-700","data-test-description":""},E9={class:"w-full min-w-0"},x9=a.defineComponent({__name:"AppSection",props:{title:{},description:{}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("section",k9,[a.createElementVNode("div",_9,[a.renderSlot(t.$slots,"titleDescription",{},()=>[a.renderSlot(t.$slots,"title",{},()=>[t.title?(a.openBlock(),a.createElementBlock("h3",C9,a.toDisplayString(t.title),1)):a.createCommentVNode("",!0)]),a.renderSlot(t.$slots,"description",{},()=>[t.description?(a.openBlock(),a.createElementBlock("p",S9,a.toDisplayString(t.description),1)):a.createCommentVNode("",!0)])])]),a.createElementVNode("div",E9,[a.renderSlot(t.$slots,"default")])]))}}),T9=a.defineComponent({__name:"ShortcutItem",props:{shortcut:{},item:{}},setup(e){const t=e,n=a.ref(t.shortcut.name);async function r(o){await t.shortcut.click(t.shortcut,t.item,o),t.shortcut.copied&&(n.value="Gekopieërd",setTimeout(()=>{n.value=t.shortcut.name},1500))}return(o,i)=>(a.openBlock(),a.createElementBlock("button",{type:"button",class:"w-full p-1.5 text-xxs text-white hover:bg-zinc-600",onClick:r},a.toDisplayString(o.shortcut.copied?n.value:o.shortcut.name),1))}}),P9={class:"text-base"},Zy=a.defineComponent({__name:"AppContextMenu",props:{item:{},event:{},actions:{}},emits:["actionClicked","close","open","cancel"],setup(e,{expose:t,emit:n}){const r=e,o=n,i=a.ref(!0),s=a.ref(!1),l=Ai(),c=Yc(),d=a.ref(null),u=a.computed(()=>r.actions??l.actions.value);async function f(){var v;i.value=!0,o("open"),(v=document.querySelector("#app"))==null||v.classList.add("context-menu-open")}async function p(){var v;i.value=!1,o("close"),(v=document.querySelector("#app"))==null||v.classList.remove("context-menu-open")}async function h(v){o("actionClicked",v),i.value=!1,setTimeout(()=>{s.value=!1},300)}return t({isOpen:i,open:f,close:p,submit:h}),mo.onClickOutside(d,p),mo.onKeyStroke(["Escape"],v=>{v.preventDefault(),p()}),(v,y)=>i.value&&(u.value.length>0||a.unref(c).shortcuts.value.length>0)?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"contextMenuElement",ref:d,style:a.normalizeStyle(`left: ${v.event.x}px; top: ${v.event.y}px;`),class:"app-context-menu fixed z-50 flex w-64 flex-col rounded-lg bg-secondary p-2 drop-shadow-card empty:hidden","data-test-context-menu":""},[a.unref(c).shortcuts.value.length>0?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass([{"mb-2":u.value.length>0},"flex justify-between divide-x divide-zinc-600 rounded-md border border-zinc-600"])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(c).shortcuts.value,C=>(a.openBlock(),a.createBlock(T9,{key:C.name,shortcut:C,item:v.item},null,8,["shortcut","item"]))),128))],2)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,(C,g)=>(a.openBlock(),a.createBlock(Ky,{key:`action-item-${g}`,action:C,context:!0,item:v.item,class:"flex h-10 items-center space-x-2 first:rounded-t-lg last:rounded-b-lg",onClose:p},{default:a.withCtx(()=>[a.createElementVNode("span",P9,a.toDisplayString(C.name),1)]),_:2},1032,["action","item"]))),128))],4)):a.createCommentVNode("",!0)}}),I9={class:"mt-6"},A9={class:"overflow-hidden rounded-full bg-zinc-200"},M9=a.defineComponent({__name:"AppProgressBar",props:{steps:{},percentage:{},activeIndex:{},unmount:{type:Boolean,default:!0}},setup(e){const t=e,n=a.useSlots(),r=["grid-cols-1","grid-cols-2","grid-cols-3","grid-cols-4","grid-cols-5","grid-cols-6","grid-cols-7","grid-cols-8"],o=a.computed(()=>n.default!==void 0),i=a.computed(()=>{var c;return t.steps?t.steps:((c=n.default)==null?void 0:c.call(n).map((d,u)=>{var f,p,h;return{name:((f=d==null?void 0:d.props)==null?void 0:f.name)??((h=(p=d==null?void 0:d.type)==null?void 0:p.props)==null?void 0:h.name),completed:s.value>=u,active:s.value===u,component:d}}))??[]}),s=a.computed(()=>{var c;return t.activeIndex!==void 0&&t.activeIndex>-1?t.activeIndex:(c=i.value)==null?void 0:c.findIndex(d=>d.active)}),l=a.computed(()=>t.percentage?t.percentage:i.value?i.value.filter(d=>d.completed).length/i.value.length*100:0);return(c,d)=>(a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",I9,[a.createElementVNode("div",A9,[a.createElementVNode("div",{style:a.normalizeStyle(`width: ${l.value}%`),class:"h-2.5 rounded-full bg-primary transition-all","data-test-progress-bar":""},null,4)]),a.createElementVNode("div",{class:a.normalizeClass([r[i.value.length-1],"mt-3 hidden w-full text-sm font-medium text-zinc-600 sm:grid"])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(u,f)=>(a.openBlock(),a.createElementBlock("div",{key:`step-${f}`,class:a.normalizeClass([{"font-bold":u.completed},"text-base text-zinc-900"]),"data-test-step-title":""},[a.renderSlot(c.$slots,`step-${f+1}`,{step:u},()=>[a.createTextVNode(a.toDisplayString(u.name),1)])],2))),128))],2),o.value?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(i.value,(u,f)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[c.unmount&&((u==null?void 0:u.active)??!0)||!c.unmount?a.withDirectives((a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.component),{key:f})),[[a.vShow,!c.unmount&&((u==null?void 0:u.active)??!0)||c.unmount]]):a.createCommentVNode("",!0)],64))),256)):a.createCommentVNode("",!0)])]))}}),O9={},N9={class:"mt-8"};function B9(e,t){return a.openBlock(),a.createElementBlock("div",N9,[a.renderSlot(e.$slots,"default")])}const D9=Ln(O9,[["render",B9]]);class Iv{constructor(t){Ee(this,"color","");this.color=t}parseAlphaColor(){return/^rgba\((\d{1,3}%?\s*,\s*){3}(\d*(?:\.\d+)?)\)$/.test(this.color)?this.parseRgba():/^hsla\(\d+\s*,\s*([\d.]+%\s*,\s*){2}(\d*(?:\.\d+)?)\)$/.test(this.color)?this.parseHsla():/^#([\dA-Fa-f]{4}|[\dA-Fa-f]{8})$/.test(this.color)?this.parseAlphaHex():/^transparent$/.test(this.color)?this.parseTransparent():{color:this.color,opacity:"1"}}parseRgba(){var t;return{color:this.color.replace(/,(?!.*,).*(?=\))|a/g,""),opacity:(t=this.color.match(/\.\d+|[01](?=\))/))==null?void 0:t[0]}}parseHsla(){var t;return{color:this.color.replace(/,(?!.*,).*(?=\))|a/g,""),opacity:(t=this.color.match(/\.\d+|[01](?=\))/))==null?void 0:t[0]}}parseAlphaHex(){return{color:this.color.length===5?this.color.slice(0,4):this.color.slice(0,7),opacity:this.color.length===5?(parseInt(this.color.slice(4,5)+this.color.slice(4,5),16)/255).toFixed(2):(parseInt(this.color.slice(7,9),16)/255).toFixed(2)}}parseTransparent(){return{color:"#fff",opacity:0}}}const R9=["height","width","viewBox"],L9=["id"],$9=["offset","stop-color","stop-opacity"],z9=["offset","stop-color","stop-opacity"],V9=["id"],F9=["stdDeviation"],j9=["points","fill","stroke","filter","stroke-width"],H9=["points","fill","stroke","stroke-width","stroke-linejoin"],U9=["points","fill"],W9=a.defineComponent({__name:"Star",props:{fill:{default:0},points:{default:()=>[]},size:{default:50},starId:{},activeColor:{},inactiveColor:{},borderColor:{default:"#000"},activeBorderColor:{default:"#000"},borderWidth:{default:0},roundedCorners:{type:Boolean,default:!1},glow:{default:0},glowColor:{default:void 0},animate:{type:Boolean,default:!1}},emits:["starMouseMove","starSelected"],setup(e,{emit:t}){const n=e,r=t,o=a.ref([19.8,2.2,6.6,43.56,39.6,17.16,0,17.16,33,43.56]),i=a.ref(""),s=a.ref(""),l=a.ref(!0),c=a.computed(()=>o.value.join(",")),d=a.computed(()=>`url(#${i.value})`),u=a.computed(()=>n.roundedCorners&&n.borderWidth<=0?6:n.borderWidth),f=a.computed(()=>{const z=n.roundedCorners&&n.borderWidth<=0?parseInt(`${n.size}`,10)-parseInt(`${u.value}`,10):n.size;return parseInt(`${z}`,10)+parseInt(`${u.value}`,10)}),p=a.computed(()=>`${n.fill}%`),h=a.computed(()=>n.roundedCorners&&n.borderWidth<=0?n.fill<=0?n.inactiveColor:n.activeColor:n.fill<=0?n.borderColor:n.activeBorderColor),v=a.computed(()=>[...o.value].reduce((z,V)=>Math.max(z,V))),y=a.computed(()=>`0 0 ${v.value} ${v.value}`),C=a.computed(()=>n.animate&&l.value),g=a.computed(()=>n.roundedCorners?"round":"miter");a.onBeforeMount(()=>{o.value=n.points.length>0?n.points:o.value,A(),i.value=x(),s.value=x()});function S(z){z.touchAction!=="undefined"&&r("starMouseMove",{position:T(z),id:n.starId})}function _(){a.nextTick(()=>{l.value=!0})}function b(){a.nextTick(()=>{l.value=!1})}function T(z){const V=.92*n.size,Y=Math.max(z.offsetX,1),D=Math.round(100/V*Y);return Math.min(D,100)}function E(z){r("starSelected",{id:n.starId,position:T(z)})}function x(){return Math.random().toString(36).slice(7)}function A(){o.value=o.value.map((z,V)=>{const Y=V%2===0?u.value*1.5:0;return n.size/v.value*z+Y})}function P(z){return new Iv(z).parseAlphaColor().color}function M(z){return new Iv(z).parseAlphaColor().opacity}return(z,V)=>(a.openBlock(),a.createElementBlock("svg",{class:a.normalizeClass([{"transition-all hover:rotate-12":C.value},"overflow-visible"]),height:f.value,width:f.value,viewBox:y.value,onMousemove:S,onClick:E,onTouchstart:_,onTouchend:b},[a.createElementVNode("linearGradient",{id:i.value,x1:"0",x2:"100%",y1:"0",y2:"0"},[a.createElementVNode("stop",{offset:p.value,"stop-color":P(z.activeColor),"stop-opacity":M(z.activeColor)},null,8,$9),a.createElementVNode("stop",{offset:p.value,"stop-color":P(z.inactiveColor),"stop-opacity":M(z.inactiveColor)},null,8,z9)],8,L9),a.createElementVNode("filter",{id:s.value,height:"130%",width:"130%",filterUnits:"userSpaceOnUse"},[a.createElementVNode("feGaussianBlur",{stdDeviation:z.glow,result:"coloredBlur"},null,8,F9),V[0]||(V[0]=a.createElementVNode("feMerge",null,[a.createElementVNode("feMergeNode",{in:"coloredBlur"}),a.createElementVNode("feMergeNode",{in:"SourceGraphic"})],-1))],8,V9),a.withDirectives(a.createElementVNode("polygon",{points:c.value,fill:d.value,stroke:z.glowColor,filter:`url(#${s.value})`,"stroke-width":u.value},null,8,j9),[[a.vShow,z.glowColor&&z.glow>0&&z.fill>0]]),a.createElementVNode("polygon",{points:c.value,fill:d.value,stroke:h.value,"stroke-width":u.value,"stroke-linejoin":g.value},null,8,H9),a.createElementVNode("polygon",{points:c.value,fill:d.value},null,8,U9)],42,R9))}}),q9={class:"sr-only"},Y9=a.defineComponent({__name:"StarRating",props:{rating:{default:0},increment:{default:1},roundStartRating:{type:Boolean,default:!0},activeColor:{default:"#ffd055"},inactiveColor:{default:"#d8d8d8"},maxRating:{default:5},starPoints:{default:()=>[]},starSize:{default:50},showRating:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},textClass:{default:""},inline:{type:Boolean,default:!1},borderColor:{default:"#999"},activeBorderColor:{default:null},borderWidth:{default:0},roundedCorners:{type:Boolean,default:!1},padding:{default:0},rtl:{type:Boolean,default:!1},fixedPoints:{default:null},glow:{default:0},glowColor:{default:"#fff"},clearable:{type:Boolean,default:!1},activeOnClick:{type:Boolean,default:!1},animate:{type:Boolean,default:!1}},emits:["update:rating","hover:rating"],setup(e,{emit:t}){const n=e,r=t,o=a.ref(0),i=a.ref([]),s=a.ref(0),l=a.ref(0),c=a.ref(!1),d=a.computed(()=>n.fixedPoints===null?s.value:s.value.toFixed(n.fixedPoints)),u=a.computed(()=>c.value||n.roundStartRating),f=a.computed(()=>n.padding+n.borderWidth),p=a.computed(()=>Array.isArray(n.activeColor)?b(n.activeColor,n.maxRating,n.activeColor.slice(-1)[0]):Array.from({length:n.maxRating}).fill(n.activeColor)),h=a.computed(()=>n.activeOnClick?`${l.value>0?p.value[Math.ceil(l.value)-1]:n.inactiveColor}`:`${s.value>0?p.value[Math.ceil(s.value)-1]:n.inactiveColor}`),v=a.computed(()=>{if(Array.isArray(n.activeBorderColor))return b(n.activeBorderColor,n.maxRating,n.activeBorderColor.slice(-1)[0]);const T=n.activeBorderColor?n.activeBorderColor:n.borderColor;return Array.from({length:n.maxRating}).fill(T)}),y=a.computed(()=>n.activeOnClick?`${l.value>0?v.value[Math.ceil(l.value)-1]:n.borderColor}`:`${s.value>0?v.value[Math.ceil(s.value)-1]:n.borderColor}`),C=a.computed(()=>{const T=1/n.increment;return Math.min(n.maxRating,Math.ceil(s.value*T)/T)});a.watch(()=>n.rating,T=>{s.value=T,l.value=T,_(u.value)}),a.onBeforeMount(()=>{o.value=n.increment*100,s.value=n.rating,l.value=s.value,_(n.roundStartRating)});function g(T,E=!1){if(n.readOnly)return;const x=n.rtl?(100-T.position)/100:T.position/100;if(s.value=(T.id+x-1).toFixed(2),s.value=s.value>n.maxRating?n.maxRating:s.value,E){_(!0,!0),l.value=n.clearable&&s.value===l.value?0:s.value,r("update:rating",l.value),c.value=!0;return}_(!0,!n.activeOnClick),r("hover:rating",s.value)}function S(){n.readOnly||(s.value=l.value,_(u.value))}function _(T=!0,E=!0){s.value=T?C.value:s.value;for(let x=0;x<n.maxRating;x++){let A=0;x<s.value&&(A=s.value-x>1?100:(s.value-x)*100),E&&(i.value[x]=Math.round(A))}}function b(T,E,x){return Object.assign([E].fill(x),T)}return(T,E)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"inline-flex":T.inline},"flex items-center"])},[a.createElementVNode("div",q9,[a.renderSlot(T.$slots,"screen-reader",{rating:l.value,stars:T.maxRating},()=>[a.createElementVNode("span",null,"Rated "+a.toDisplayString(l.value)+" stars out of "+a.toDisplayString(T.maxRating),1)])]),a.createElementVNode("div",{class:"flex items-center",onMouseleave:S},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(T.maxRating,x=>(a.openBlock(),a.createElementBlock("span",{key:x,class:a.normalizeClass([{"cursor-pointer":!T.readOnly},"inline-block"]),style:a.normalizeStyle(`margin-right: ${f.value}px`)},[a.createVNode(W9,{fill:i.value[x-1],size:T.starSize,points:T.starPoints,"star-id":x,step:o.value,"active-color":h.value,"inactive-color":T.inactiveColor,"border-color":T.borderColor,"active-border-color":y.value,"border-width":T.borderWidth,"rounded-corners":T.roundedCorners,rtl:T.rtl,glow:T.glow,"glow-color":T.glowColor,animate:T.animate,onStarSelected:E[0]||(E[0]=A=>g(A,!0)),onStarMouseMove:g},null,8,["fill","size","points","star-id","step","active-color","inactive-color","border-color","active-border-color","border-width","rounded-corners","rtl","glow","glow-color","animate"])],6))),128)),T.showRating?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass([T.textClass,"ml-2"])},a.toDisplayString(d.value),3)):a.createCommentVNode("",!0)],32)],2))}}),G9=a.defineComponent({__name:"AppRating",props:a.mergeModels({title:{default:""},stars:{default:5},showRating:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=a.useModel(e,"modelValue");return(n,r)=>(a.openBlock(),a.createBlock(a.unref(cp),{"content-classes":"flex items-center gap-8 select-none",class:"!p-4"},{default:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(n.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(n.title),1)])]),a.createVNode(Y9,{rating:t.value,"onUpdate:rating":r[0]||(r[0]=o=>t.value=o),"rounded-corners":!1,"max-rating":n.stars,"show-rating":n.showRating,increment:.5,padding:.5,"star-size":25,"border-width":0,inline:!0,"read-only":n.readonly,"active-color":"#FACC15","inactive-color":"#D4D4D8",class:"-mt-1 ml-auto"},null,8,["rating","max-rating","show-rating","read-only"])]),_:3}))}});var X9=function(){function e(t){var n=t.rootElement,r=t.durationSlide,o=r===void 0?1e3:r,i=t.durationFade,s=i===void 0?200:i,l=t.initialNumber,c=t.animateInitialNumber,d=c===void 0?!0:c,u=t.numberFormatter,f=u===void 0?function(S){return S.toString()}:u,p=t.decimalSeparator,h=p===void 0?".":p,v=t.wrapperClassname,y=v===void 0?"numberflip-digit-container":v,C=t.digitClassname,g=C===void 0?"numberflip-digit-container-value":C;this.rootElement=n,this.durationSlide=o,this.durationFade=s,this.numberFormatter=f,this.decimalSeparator=h,this.wrapperClassname=y,this.digitClassname=g,this.rootElement.style.display="flex",l!==void 0&&this.setNumber(l,d)}return e.prototype.setNumber=function(t,n){n===void 0&&(n=!0),this.adjustAmountOfDigitContainers(t),this.setDigitInContainers(t,n)},e.prototype.adjustAmountOfDigitContainers=function(t){for(var n=this.getDigitsOfNumber(t).length,r=this.rootElement.getElementsByClassName(this.wrapperClassname).length;r<n;)this.rootElement.insertAdjacentHTML("beforeend",'<div class="'.concat(this.wrapperClassname,'">')+`<span style="visibility: hidden;">0</span>
613
613
  <div class="`.concat(this.digitClassname,`" style="transform: translateY(-100%);">
614
614
  <span>9</span>
615
615
  <span>8</span>
@@ -623,13 +623,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
623
623
  <span>0</span>
624
624
  <span>`).concat(this.decimalSeparator,`</span>
625
625
  </div>
626
- </div>`)),r++;if(r>n)for(var o=this.rootElement.getElementsByClassName(this.digitClassname),i=function(c){var d=o[c].parentElement;d.style.animationDuration=s.durationFade+"ms",d.style.animationName="numberflip-animation-fade-out",setTimeout(function(){return d.remove()},s.durationFade)},s=this,l=n;l<o.length;l++)i(l)},e.prototype.setDigitInContainers=function(t,n){for(var r=this,o=this.getDigitsOfNumber(t),i=this.rootElement.getElementsByClassName(this.digitClassname),s=function(d){var u=i[d],f=typeof o[d]=="number"?o[d]:-1;if(typeof f=="number"){var p=l.calculateTranslateY(f);setTimeout(function(){var h=n?r.durationSlide:0;u.style.transitionDuration=h+"ms",u.style.transform="translateY(".concat(p,"%)")},0)}},l=this,c=0;c<i.length;c++)s(c)},e.prototype.getDigitsOfNumber=function(t){var n=this.numberFormatter(t).split("");return n.map(function(r){return r==="."?".":parseInt(r,10)})},e.prototype.calculateTranslateY=function(t){var n=9.090909090909092;return(-10*n+(t+1)*n).toString()},e}();const K9={class:"mr-6 w-full select-none"},J9=a.defineComponent({__name:"AppStepper",props:a.mergeModels({title:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=a.useModel(e,"modelValue"),n=a.useTemplateRef("flipRef"),r=a.ref();a.watch(t,s=>{var l,c;(c=(l=r.value)==null?void 0:l.setNumber)==null||c.call(l,s)}),a.onMounted(()=>{n.value&&(r.value=new X9({rootElement:n.value,initialNumber:t.value,durationSlide:500,wrapperClassname:"flex overflow-hidden relative transition-opacity transition-1000",digitClassname:"flex flex-col absolute transition-transform transition-1000 ease-in-out *:text-center"}),setTimeout(()=>{var s,l;(l=(s=r.value)==null?void 0:s.setNumber)==null||l.call(s,t.value)},100))});function o(){t.value+=1}function i(){t.value!==0&&(t.value-=1)}return(s,l)=>(a.openBlock(),a.createBlock(a.unref(cp),{"content-classes":"flex items-center",class:"!p-4"},{default:a.withCtx(()=>{var c,d;return[a.createElementVNode("div",K9,[a.renderSlot(s.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(s.title),1)])]),a.createVNode(a.unref(or),{icon:(c=a.unref(zn).far)==null?void 0:c.minus,"aria-disabled":t.value===0,class:"cursor-pointer aria-disabled:cursor-not-allowed aria-disabled:opacity-50","data-test-decrement-icon":"",onClick:i},null,8,["icon","aria-disabled"]),a.createElementVNode("div",{ref_key:"flipRef",ref:n,class:"w-16 shrink-0 justify-center text-center font-bold","data-test-number-flip":""},null,512),a.createVNode(a.unref(or),{icon:(d=a.unref(zn).far)==null?void 0:d.plus,class:"cursor-pointer","data-test-increment-icon":"",onClick:o},null,8,["icon"])]}),_:3}))}}),Qu={instances:a.ref([])};function Av(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 Q9(e={}){async function t(r){window.scrollTo(0,0);const o=document.createElement("div");document.body.append(o);let i=null;return new Promise(s=>{i=a.createApp(R1,{...e,...r,onClose:s}),i.mount(o),Qu.instances.value.push({instance:i,element:o})}).finally(()=>{i&&setTimeout(()=>{Av({instance:i,element:o})},500)})}async function n(){return Qu.instances.value.forEach(r=>Av(r)),Promise.resolve()}return{...Qu,open:t,close:n}}const Zu={instances:a.ref([])};function Mv(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 Z9(){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(L1,{...n,onClose:i}),o.mount(r),Zu.instances.value.push({instance:o,element:r})}).finally(()=>{o&&setTimeout(()=>{Mv({instance:o,element:r})},500)})}async function t(){return Zu.instances.value.forEach(n=>Mv(n)),Promise.resolve()}return{...Zu,open:e,close:t}}const Ov={instances:a.ref([])};function Nv(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 eN(e,t){const n=a.ref(),r=a.inject("plugins");async function o(s){t&&(t.content=e),window.scrollTo(0,0);const l=document.createElement("div");document.body.append(l);let c=null,d=null;return new Promise(u=>{a.isRef(e)?d=e.value:(c=a.createApp(V1,{...t,...s,onClose:f=>{var p;(p=t==null?void 0:t.onClose)==null||p.call(t),u(f)}}),r==null||r.forEach(f=>{c==null||c.use(f)}),d=c.mount(l)),d.open(),n.value={ref:d,instance:c,element:l},Ov.instances.value.push(n.value)}).finally(()=>{c&&setTimeout(()=>{Nv({ref:d,instance:c,element:l})},500)})}async function i(){var s;return(s=n.value)==null||s.ref.close(),setTimeout(()=>{n.value&&Nv(n.value)},300),Promise.resolve()}return{...Ov,instance:n,open:o,close:i}}const hr={selection:a.shallowRef([]),tableSelection:a.shallowRef([]),actions:a.shallowRef([]),isOpen:a.shallowRef(!1),onResetSelection:a.shallowRef(),selectionText:a.shallowRef(":selection selected")};function Ai(){function e(l){hr.selection.value=l,s()}function t(l){hr.tableSelection.value=l}function n(l){hr.actions.value=l,s()}function r(){var l,c;hr.selection.value.splice(0),(c=(l=hr.onResetSelection).value)==null||c.call(l,hr.selection.value)}function o(l){hr.selectionText.value=l}function i(){var l;hr.isOpen.value=!1,(l=document.querySelectorAll("[data-tippy-root]"))==null||l.forEach(c=>{var d,u;(d=c._tippy)==null||d.hide(),(u=c._tippy)==null||u.destroy()})}function s(){hr.isOpen.value=!0}return{...hr,resetSelection:r,setSelection:e,setTableSelection:t,setSelectionText:o,setActions:n,open:s,close:i}}function is(e){"@babel/helpers - typeof";return is=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},is(e)}function qt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tN(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 Yt(e,t,n){return t&&tN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xs(){return xs=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},xs.apply(this,arguments)}function Sn(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&&tf(e,t)}function oc(e){return oc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},oc(e)}function tf(e,t){return tf=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},tf(e,t)}function nN(){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 rN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aN(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 rN(e)}function En(e){var t=nN();return function(){var r=oc(e),o;if(t){var i=oc(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return aN(this,o)}}var zp=function(){function e(){qt(this,e)}return Yt(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}(),e2=function(){function e(t){qt(this,e),this.namespace=t}return Yt(e,[{key:"format",value:function(n){return[".","\\"].includes(n.charAt(0))?n.substring(1):(this.namespace&&(n=this.namespace+"."+n),n.replace(/\./g,"\\"))}},{key:"setNamespace",value:function(n){this.namespace=n}}]),e}();function oN(e){try{new e}catch(t){if(t.message.includes("is not a constructor"))return!1}return!0}var Vp=function(e){Sn(n,e);var t=En(n);function n(r,o,i){var s;return qt(this,n),s=t.call(this),s.name=o,s.pusher=r,s.options=i,s.eventFormatter=new e2(s.options.namespace),s.subscribe(),s}return Yt(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 c=i.options.namespace.replace(/\./g,"\\"),d=s.startsWith(c)?s.substring(c.length+1):"."+s;o(d,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}(zp),t2=function(e){Sn(n,e);var t=En(n);function n(){return qt(this,n),t.apply(this,arguments)}return Yt(n,[{key:"whisper",value:function(o,i){return this.pusher.channels.channels[this.name].trigger("client-".concat(o),i),this}}]),n}(Vp),iN=function(e){Sn(n,e);var t=En(n);function n(){return qt(this,n),t.apply(this,arguments)}return Yt(n,[{key:"whisper",value:function(o,i){return this.pusher.channels.channels[this.name].trigger("client-".concat(o),i),this}}]),n}(Vp),sN=function(e){Sn(n,e);var t=En(n);function n(){return qt(this,n),t.apply(this,arguments)}return Yt(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}(t2),n2=function(e){Sn(n,e);var t=En(n);function n(r,o,i){var s;return qt(this,n),s=t.call(this),s.events={},s.listeners={},s.name=o,s.socket=r,s.options=i,s.eventFormatter=new e2(s.options.namespace),s.subscribe(),s}return Yt(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,c){s.name===l&&s.listeners[o]&&s.listeners[o].forEach(function(d){return d(c)})},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}(zp),r2=function(e){Sn(n,e);var t=En(n);function n(){return qt(this,n),t.apply(this,arguments)}return Yt(n,[{key:"whisper",value:function(o,i){return this.socket.emit("client event",{channel:this.name,event:"client-".concat(o),data:i}),this}}]),n}(n2),lN=function(e){Sn(n,e);var t=En(n);function n(){return qt(this,n),t.apply(this,arguments)}return Yt(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}(r2),ic=function(e){Sn(n,e);var t=En(n);function n(){return qt(this,n),t.apply(this,arguments)}return Yt(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}(zp),a2=function(e){Sn(n,e);var t=En(n);function n(){return qt(this,n),t.apply(this,arguments)}return Yt(n,[{key:"whisper",value:function(o,i){return this}}]),n}(ic),cN=function(e){Sn(n,e);var t=En(n);function n(){return qt(this,n),t.apply(this,arguments)}return Yt(n,[{key:"whisper",value:function(o,i){return this}}]),n}(ic),uN=function(e){Sn(n,e);var t=En(n);function n(){return qt(this,n),t.apply(this,arguments)}return Yt(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}(a2),Fp=function(){function e(t){qt(this,e),this._defaultOptions={channelAuthorization:{endpoint:"/broadcasting/auth",headers:{}},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 Yt(e,[{key:"setOptions",value:function(n){this.options=xs(this._defaultOptions,n);var r=this.csrfToken();return r&&(this.options.channelAuthorization.headers["X-CSRF-TOKEN"]=r,this.options.userAuthentication.headers["X-CSRF-TOKEN"]=r),r=this.options.bearerToken,r&&(this.options.channelAuthorization.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}(),Bv=function(e){Sn(n,e);var t=En(n);function n(){var r;return qt(this,n),r=t.apply(this,arguments),r.channels={},r}return Yt(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 Vp(this.pusher,o,this.options)),this.channels[o]}},{key:"privateChannel",value:function(o){return this.channels["private-"+o]||(this.channels["private-"+o]=new t2(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 iN(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 sN(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,c){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}(Fp),Dv=function(e){Sn(n,e);var t=En(n);function n(){var r;return qt(this,n),r=t.apply(this,arguments),r.channels={},r}return Yt(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 n2(this.socket,o,this.options)),this.channels[o]}},{key:"privateChannel",value:function(o){return this.channels["private-"+o]||(this.channels["private-"+o]=new r2(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 lN(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}(Fp),dN=function(e){Sn(n,e);var t=En(n);function n(){var r;return qt(this,n),r=t.apply(this,arguments),r.channels={},r}return Yt(n,[{key:"connect",value:function(){}},{key:"listen",value:function(o,i,s){return new ic}},{key:"channel",value:function(o){return new ic}},{key:"privateChannel",value:function(o){return new a2}},{key:"encryptedPrivateChannel",value:function(o){return new cN}},{key:"presenceChannel",value:function(o){return new uN}},{key:"leave",value:function(o){}},{key:"leaveChannel",value:function(o){}},{key:"socketId",value:function(){return"fake-socket-id"}},{key:"disconnect",value:function(){}}]),n}(Fp),fN=function(){function e(t){qt(this,e),this.options=t,this.connect(),this.options.withoutInterceptors||this.registerInterceptors()}return Yt(e,[{key:"channel",value:function(n){return this.connector.channel(n)}},{key:"connect",value:function(){if(this.options.broadcaster=="reverb")this.connector=new Bv(xs(xs({},this.options),{cluster:""}));else if(this.options.broadcaster=="pusher")this.connector=new Bv(this.options);else if(this.options.broadcaster=="socket.io")this.connector=new Dv(this.options);else if(this.options.broadcaster=="null")this.connector=new dN(this.options);else if(typeof this.options.broadcaster=="function"&&oN(this.options.broadcaster))this.connector=new this.options.broadcaster(this.options);else throw new Error("Broadcaster ".concat(is(this.options.broadcaster)," ").concat(this.options.broadcaster," is not supported."))}},{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){if(this.connector instanceof Dv)throw new Error("Broadcaster ".concat(is(this.options.broadcaster)," ").concat(this.options.broadcaster," does not support encrypted private channels."));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":is(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}(),o2={exports:{}};/*!
626
+ </div>`)),r++;if(r>n)for(var o=this.rootElement.getElementsByClassName(this.digitClassname),i=function(c){var d=o[c].parentElement;d.style.animationDuration=s.durationFade+"ms",d.style.animationName="numberflip-animation-fade-out",setTimeout(function(){return d.remove()},s.durationFade)},s=this,l=n;l<o.length;l++)i(l)},e.prototype.setDigitInContainers=function(t,n){for(var r=this,o=this.getDigitsOfNumber(t),i=this.rootElement.getElementsByClassName(this.digitClassname),s=function(d){var u=i[d],f=typeof o[d]=="number"?o[d]:-1;if(typeof f=="number"){var p=l.calculateTranslateY(f);setTimeout(function(){var h=n?r.durationSlide:0;u.style.transitionDuration=h+"ms",u.style.transform="translateY(".concat(p,"%)")},0)}},l=this,c=0;c<i.length;c++)s(c)},e.prototype.getDigitsOfNumber=function(t){var n=this.numberFormatter(t).split("");return n.map(function(r){return r==="."?".":parseInt(r,10)})},e.prototype.calculateTranslateY=function(t){var n=9.090909090909092;return(-10*n+(t+1)*n).toString()},e}();const K9={class:"mr-6 w-full select-none"},J9=a.defineComponent({__name:"AppStepper",props:a.mergeModels({title:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=a.useModel(e,"modelValue"),n=a.useTemplateRef("flipRef"),r=a.ref();a.watch(t,s=>{var l,c;(c=(l=r.value)==null?void 0:l.setNumber)==null||c.call(l,s)}),a.onMounted(()=>{n.value&&(r.value=new X9({rootElement:n.value,initialNumber:t.value,durationSlide:500,wrapperClassname:"flex overflow-hidden relative transition-opacity transition-1000",digitClassname:"flex flex-col absolute transition-transform transition-1000 ease-in-out *:text-center"}),setTimeout(()=>{var s,l;(l=(s=r.value)==null?void 0:s.setNumber)==null||l.call(s,t.value)},100))});function o(){t.value+=1}function i(){t.value!==0&&(t.value-=1)}return(s,l)=>(a.openBlock(),a.createBlock(a.unref(cp),{"content-classes":"flex items-center",class:"!p-4"},{default:a.withCtx(()=>{var c,d;return[a.createElementVNode("div",K9,[a.renderSlot(s.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(s.title),1)])]),a.createVNode(a.unref(zn),{icon:(c=a.unref(Vn).far)==null?void 0:c.minus,"aria-disabled":t.value===0,class:"cursor-pointer aria-disabled:cursor-not-allowed aria-disabled:opacity-50","data-test-decrement-icon":"",onClick:i},null,8,["icon","aria-disabled"]),a.createElementVNode("div",{ref_key:"flipRef",ref:n,class:"w-16 shrink-0 justify-center text-center font-bold","data-test-number-flip":""},null,512),a.createVNode(a.unref(zn),{icon:(d=a.unref(Vn).far)==null?void 0:d.plus,class:"cursor-pointer","data-test-increment-icon":"",onClick:o},null,8,["icon"])]}),_:3}))}}),Qu={instances:a.ref([])};function Av(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 Q9(e={}){async function t(r){window.scrollTo(0,0);const o=document.createElement("div");document.body.append(o);let i=null;return new Promise(s=>{i=a.createApp(R1,{...e,...r,onClose:s}),i.mount(o),Qu.instances.value.push({instance:i,element:o})}).finally(()=>{i&&setTimeout(()=>{Av({instance:i,element:o})},500)})}async function n(){return Qu.instances.value.forEach(r=>Av(r)),Promise.resolve()}return{...Qu,open:t,close:n}}const Zu={instances:a.ref([])};function Mv(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 Z9(){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(L1,{...n,onClose:i}),o.mount(r),Zu.instances.value.push({instance:o,element:r})}).finally(()=>{o&&setTimeout(()=>{Mv({instance:o,element:r})},500)})}async function t(){return Zu.instances.value.forEach(n=>Mv(n)),Promise.resolve()}return{...Zu,open:e,close:t}}const Ov={instances:a.ref([])};function Nv(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 eN(e,t){const n=a.ref(),r=a.inject("plugins");async function o(s){t&&(t.content=e),window.scrollTo(0,0);const l=document.createElement("div");document.body.append(l);let c=null,d=null;return new Promise(u=>{a.isRef(e)?d=e.value:(c=a.createApp(V1,{...t,...s,onClose:f=>{var p;(p=t==null?void 0:t.onClose)==null||p.call(t),u(f)}}),r==null||r.forEach(f=>{c==null||c.use(f)}),d=c.mount(l)),d.open(),n.value={ref:d,instance:c,element:l},Ov.instances.value.push(n.value)}).finally(()=>{c&&setTimeout(()=>{Nv({ref:d,instance:c,element:l})},500)})}async function i(){var s;return(s=n.value)==null||s.ref.close(),setTimeout(()=>{n.value&&Nv(n.value)},300),Promise.resolve()}return{...Ov,instance:n,open:o,close:i}}const hr={selection:a.shallowRef([]),tableSelection:a.shallowRef([]),actions:a.shallowRef([]),isOpen:a.shallowRef(!1),onResetSelection:a.shallowRef(),selectionText:a.shallowRef(":selection selected")};function Ai(){function e(l){hr.selection.value=l,s()}function t(l){hr.tableSelection.value=l}function n(l){hr.actions.value=l,s()}function r(){var l,c;hr.selection.value.splice(0),(c=(l=hr.onResetSelection).value)==null||c.call(l,hr.selection.value)}function o(l){hr.selectionText.value=l}function i(){var l;hr.isOpen.value=!1,(l=document.querySelectorAll("[data-tippy-root]"))==null||l.forEach(c=>{var d,u;(d=c._tippy)==null||d.hide(),(u=c._tippy)==null||u.destroy()})}function s(){hr.isOpen.value=!0}return{...hr,resetSelection:r,setSelection:e,setTableSelection:t,setSelectionText:o,setActions:n,open:s,close:i}}function is(e){"@babel/helpers - typeof";return is=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},is(e)}function qt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tN(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 Yt(e,t,n){return t&&tN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xs(){return xs=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},xs.apply(this,arguments)}function Sn(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&&tf(e,t)}function oc(e){return oc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},oc(e)}function tf(e,t){return tf=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},tf(e,t)}function nN(){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 rN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aN(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 rN(e)}function En(e){var t=nN();return function(){var r=oc(e),o;if(t){var i=oc(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return aN(this,o)}}var zp=function(){function e(){qt(this,e)}return Yt(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}(),e2=function(){function e(t){qt(this,e),this.namespace=t}return Yt(e,[{key:"format",value:function(n){return[".","\\"].includes(n.charAt(0))?n.substring(1):(this.namespace&&(n=this.namespace+"."+n),n.replace(/\./g,"\\"))}},{key:"setNamespace",value:function(n){this.namespace=n}}]),e}();function oN(e){try{new e}catch(t){if(t.message.includes("is not a constructor"))return!1}return!0}var Vp=function(e){Sn(n,e);var t=En(n);function n(r,o,i){var s;return qt(this,n),s=t.call(this),s.name=o,s.pusher=r,s.options=i,s.eventFormatter=new e2(s.options.namespace),s.subscribe(),s}return Yt(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 c=i.options.namespace.replace(/\./g,"\\"),d=s.startsWith(c)?s.substring(c.length+1):"."+s;o(d,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}(zp),t2=function(e){Sn(n,e);var t=En(n);function n(){return qt(this,n),t.apply(this,arguments)}return Yt(n,[{key:"whisper",value:function(o,i){return this.pusher.channels.channels[this.name].trigger("client-".concat(o),i),this}}]),n}(Vp),iN=function(e){Sn(n,e);var t=En(n);function n(){return qt(this,n),t.apply(this,arguments)}return Yt(n,[{key:"whisper",value:function(o,i){return this.pusher.channels.channels[this.name].trigger("client-".concat(o),i),this}}]),n}(Vp),sN=function(e){Sn(n,e);var t=En(n);function n(){return qt(this,n),t.apply(this,arguments)}return Yt(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}(t2),n2=function(e){Sn(n,e);var t=En(n);function n(r,o,i){var s;return qt(this,n),s=t.call(this),s.events={},s.listeners={},s.name=o,s.socket=r,s.options=i,s.eventFormatter=new e2(s.options.namespace),s.subscribe(),s}return Yt(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,c){s.name===l&&s.listeners[o]&&s.listeners[o].forEach(function(d){return d(c)})},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}(zp),r2=function(e){Sn(n,e);var t=En(n);function n(){return qt(this,n),t.apply(this,arguments)}return Yt(n,[{key:"whisper",value:function(o,i){return this.socket.emit("client event",{channel:this.name,event:"client-".concat(o),data:i}),this}}]),n}(n2),lN=function(e){Sn(n,e);var t=En(n);function n(){return qt(this,n),t.apply(this,arguments)}return Yt(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}(r2),ic=function(e){Sn(n,e);var t=En(n);function n(){return qt(this,n),t.apply(this,arguments)}return Yt(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}(zp),a2=function(e){Sn(n,e);var t=En(n);function n(){return qt(this,n),t.apply(this,arguments)}return Yt(n,[{key:"whisper",value:function(o,i){return this}}]),n}(ic),cN=function(e){Sn(n,e);var t=En(n);function n(){return qt(this,n),t.apply(this,arguments)}return Yt(n,[{key:"whisper",value:function(o,i){return this}}]),n}(ic),uN=function(e){Sn(n,e);var t=En(n);function n(){return qt(this,n),t.apply(this,arguments)}return Yt(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}(a2),Fp=function(){function e(t){qt(this,e),this._defaultOptions={channelAuthorization:{endpoint:"/broadcasting/auth",headers:{}},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 Yt(e,[{key:"setOptions",value:function(n){this.options=xs(this._defaultOptions,n);var r=this.csrfToken();return r&&(this.options.channelAuthorization.headers["X-CSRF-TOKEN"]=r,this.options.userAuthentication.headers["X-CSRF-TOKEN"]=r),r=this.options.bearerToken,r&&(this.options.channelAuthorization.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}(),Bv=function(e){Sn(n,e);var t=En(n);function n(){var r;return qt(this,n),r=t.apply(this,arguments),r.channels={},r}return Yt(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 Vp(this.pusher,o,this.options)),this.channels[o]}},{key:"privateChannel",value:function(o){return this.channels["private-"+o]||(this.channels["private-"+o]=new t2(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 iN(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 sN(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,c){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}(Fp),Dv=function(e){Sn(n,e);var t=En(n);function n(){var r;return qt(this,n),r=t.apply(this,arguments),r.channels={},r}return Yt(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 n2(this.socket,o,this.options)),this.channels[o]}},{key:"privateChannel",value:function(o){return this.channels["private-"+o]||(this.channels["private-"+o]=new r2(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 lN(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}(Fp),dN=function(e){Sn(n,e);var t=En(n);function n(){var r;return qt(this,n),r=t.apply(this,arguments),r.channels={},r}return Yt(n,[{key:"connect",value:function(){}},{key:"listen",value:function(o,i,s){return new ic}},{key:"channel",value:function(o){return new ic}},{key:"privateChannel",value:function(o){return new a2}},{key:"encryptedPrivateChannel",value:function(o){return new cN}},{key:"presenceChannel",value:function(o){return new uN}},{key:"leave",value:function(o){}},{key:"leaveChannel",value:function(o){}},{key:"socketId",value:function(){return"fake-socket-id"}},{key:"disconnect",value:function(){}}]),n}(Fp),fN=function(){function e(t){qt(this,e),this.options=t,this.connect(),this.options.withoutInterceptors||this.registerInterceptors()}return Yt(e,[{key:"channel",value:function(n){return this.connector.channel(n)}},{key:"connect",value:function(){if(this.options.broadcaster=="reverb")this.connector=new Bv(xs(xs({},this.options),{cluster:""}));else if(this.options.broadcaster=="pusher")this.connector=new Bv(this.options);else if(this.options.broadcaster=="socket.io")this.connector=new Dv(this.options);else if(this.options.broadcaster=="null")this.connector=new dN(this.options);else if(typeof this.options.broadcaster=="function"&&oN(this.options.broadcaster))this.connector=new this.options.broadcaster(this.options);else throw new Error("Broadcaster ".concat(is(this.options.broadcaster)," ").concat(this.options.broadcaster," is not supported."))}},{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){if(this.connector instanceof Dv)throw new Error("Broadcaster ".concat(is(this.options.broadcaster)," ").concat(this.options.broadcaster," does not support encrypted private channels."));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":is(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}(),o2={exports:{}};/*!
627
627
  * Pusher JavaScript Library v8.4.0-rc2
628
628
  * https://pusher.com/
629
629
  *
630
630
  * Copyright 2020, Pusher
631
631
  * Released under the MIT licence.
632
- */(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 c in i)o.d(l,c,(function(d){return i[d]}).bind(null,c));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 y=function(C,g){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,_){S.__proto__=_}||function(S,_){for(var b in _)_.hasOwnProperty(b)&&(S[b]=_[b])},y(C,g)};return function(C,g){y(C,g);function S(){this.constructor=C}C.prototype=g===null?Object.create(g):(S.prototype=g.prototype,new S)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=256,l=function(){function y(C){C===void 0&&(C="="),this._paddingCharacter=C}return y.prototype.encodedLength=function(C){return this._paddingCharacter?(C+2)/3*4|0:(C*8+5)/6|0},y.prototype.encode=function(C){for(var g="",S=0;S<C.length-2;S+=3){var _=C[S]<<16|C[S+1]<<8|C[S+2];g+=this._encodeByte(_>>>3*6&63),g+=this._encodeByte(_>>>2*6&63),g+=this._encodeByte(_>>>1*6&63),g+=this._encodeByte(_>>>0*6&63)}var b=C.length-S;if(b>0){var _=C[S]<<16|(b===2?C[S+1]<<8:0);g+=this._encodeByte(_>>>3*6&63),g+=this._encodeByte(_>>>2*6&63),b===2?g+=this._encodeByte(_>>>1*6&63):g+=this._paddingCharacter||"",g+=this._paddingCharacter||""}return g},y.prototype.maxDecodedLength=function(C){return this._paddingCharacter?C/4*3|0:(C*6+7)/8|0},y.prototype.decodedLength=function(C){return this.maxDecodedLength(C.length-this._getPaddingLength(C))},y.prototype.decode=function(C){if(C.length===0)return new Uint8Array(0);for(var g=this._getPaddingLength(C),S=C.length-g,_=new Uint8Array(this.maxDecodedLength(S)),b=0,T=0,E=0,x=0,A=0,P=0,M=0;T<S-4;T+=4)x=this._decodeChar(C.charCodeAt(T+0)),A=this._decodeChar(C.charCodeAt(T+1)),P=this._decodeChar(C.charCodeAt(T+2)),M=this._decodeChar(C.charCodeAt(T+3)),_[b++]=x<<2|A>>>4,_[b++]=A<<4|P>>>2,_[b++]=P<<6|M,E|=x&s,E|=A&s,E|=P&s,E|=M&s;if(T<S-1&&(x=this._decodeChar(C.charCodeAt(T)),A=this._decodeChar(C.charCodeAt(T+1)),_[b++]=x<<2|A>>>4,E|=x&s,E|=A&s),T<S-2&&(P=this._decodeChar(C.charCodeAt(T+2)),_[b++]=A<<4|P>>>2,E|=P&s),T<S-3&&(M=this._decodeChar(C.charCodeAt(T+3)),_[b++]=P<<6|M,E|=M&s),E!==0)throw new Error("Base64Coder: incorrect characters for decoding");return _},y.prototype._encodeByte=function(C){var g=C;return g+=65,g+=25-C>>>8&6,g+=51-C>>>8&-75,g+=61-C>>>8&-15,g+=62-C>>>8&3,String.fromCharCode(g)},y.prototype._decodeChar=function(C){var g=s;return g+=(42-C&C-44)>>>8&-s+C-43+62,g+=(46-C&C-48)>>>8&-s+C-47+63,g+=(47-C&C-58)>>>8&-s+C-48+52,g+=(64-C&C-91)>>>8&-s+C-65+0,g+=(96-C&C-123)>>>8&-s+C-97+26,g},y.prototype._getPaddingLength=function(C){var g=0;if(this._paddingCharacter){for(var S=C.length-1;S>=0&&C[S]===this._paddingCharacter;S--)g++;if(C.length<4||g>2)throw new Error("Base64Coder: incorrect padding")}return g},y}();r.Coder=l;var c=new l;function d(y){return c.encode(y)}r.encode=d;function u(y){return c.decode(y)}r.decode=u;var f=function(y){i(C,y);function C(){return y!==null&&y.apply(this,arguments)||this}return C.prototype._encodeByte=function(g){var S=g;return S+=65,S+=25-g>>>8&6,S+=51-g>>>8&-75,S+=61-g>>>8&-13,S+=62-g>>>8&49,String.fromCharCode(S)},C.prototype._decodeChar=function(g){var S=s;return S+=(44-g&g-46)>>>8&-s+g-45+62,S+=(94-g&g-96)>>>8&-s+g-95+63,S+=(47-g&g-58)>>>8&-s+g-48+52,S+=(64-g&g-91)>>>8&-s+g-65+0,S+=(96-g&g-123)>>>8&-s+g-97+26,S},C}(l);r.URLSafeCoder=f;var p=new f;function h(y){return p.encode(y)}r.encodeURLSafe=h;function v(y){return p.decode(y)}r.decodeURLSafe=v,r.encodedLength=function(y){return c.encodedLength(y)},r.maxDecodedLength=function(y){return c.maxDecodedLength(y)},r.decodedLength=function(y){return c.decodedLength(y)}},function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i="utf8: invalid string",s="utf8: invalid source encoding";function l(u){for(var f=new Uint8Array(c(u)),p=0,h=0;h<u.length;h++){var v=u.charCodeAt(h);v<128?f[p++]=v:v<2048?(f[p++]=192|v>>6,f[p++]=128|v&63):v<55296?(f[p++]=224|v>>12,f[p++]=128|v>>6&63,f[p++]=128|v&63):(h++,v=(v&1023)<<10,v|=u.charCodeAt(h)&1023,v+=65536,f[p++]=240|v>>18,f[p++]=128|v>>12&63,f[p++]=128|v>>6&63,f[p++]=128|v&63)}return f}r.encode=l;function c(u){for(var f=0,p=0;p<u.length;p++){var h=u.charCodeAt(p);if(h<128)f+=1;else if(h<2048)f+=2;else if(h<55296)f+=3;else if(h<=57343){if(p>=u.length-1)throw new Error(i);p++,f+=4}else throw new Error(i)}return f}r.encodedLength=c;function d(u){for(var f=[],p=0;p<u.length;p++){var h=u[p];if(h&128){var v=void 0;if(h<224){if(p>=u.length)throw new Error(s);var y=u[++p];if((y&192)!==128)throw new Error(s);h=(h&31)<<6|y&63,v=128}else if(h<240){if(p>=u.length-1)throw new Error(s);var y=u[++p],C=u[++p];if((y&192)!==128||(C&192)!==128)throw new Error(s);h=(h&15)<<12|(y&63)<<6|C&63,v=2048}else if(h<248){if(p>=u.length-2)throw new Error(s);var y=u[++p],C=u[++p],g=u[++p];if((y&192)!==128||(C&192)!==128||(g&192)!==128)throw new Error(s);h=(h&15)<<18|(y&63)<<12|(C&63)<<6|g&63,v=65536}else throw new Error(s);if(h<v||h>=55296&&h<=57343)throw new Error(s);if(h>=65536){if(h>1114111)throw new Error(s);h-=65536,f.push(String.fromCharCode(55296|h>>10)),h=56320|h&1023}}f.push(String.fromCharCode(h))}return f.join("")}r.decode=d},function(n,r,o){n.exports=o(3).default},function(n,r,o){o.r(r);class i{constructor(m,w){this.lastId=0,this.prefix=m,this.name=w}create(m){this.lastId++;var w=this.lastId,O=this.prefix+w,$=this.name+"["+w+"]",le=!1,be=function(){le||(m.apply(null,arguments),le=!0)};return this[w]=be,{number:w,id:O,name:$,callback:be}}remove(m){delete this[m.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:""},c=l;class d{constructor(m){this.options=m,this.receivers=m.receivers||s,this.loading={}}load(m,w,O){var $=this;if($.loading[m]&&$.loading[m].length>0)$.loading[m].push(O);else{$.loading[m]=[O];var le=We.createScriptRequest($.getPath(m,w)),be=$.receivers.create(function(Oe){if($.receivers.remove(be),$.loading[m]){var Ue=$.loading[m];delete $.loading[m];for(var nt=function(Lt){Lt||le.cleanup()},it=0;it<Ue.length;it++)Ue[it](Oe,nt)}});le.send(be)}}getRoot(m){var w,O=We.getDocument().location.protocol;return m&&m.useTLS||O==="https:"?w=this.options.cdn_https:w=this.options.cdn_http,w.replace(/\/*$/,"")+"/"+this.options.version}getPath(m,w){return this.getRoot(w)+"/"+m+this.options.suffix+".js"}}var u=new i("_pusher_dependencies","Pusher.DependenciesReceivers"),f=new d({cdn_http:c.cdn_http,cdn_https:c.cdn_https,version:c.VERSION,suffix:c.dependency_suffix,receivers:u});const p={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 v={buildLogSuffix:function(k){const m="See:",w=p.urls[k];if(!w)return"";let O;return w.fullUrl?O=w.fullUrl:w.path&&(O=p.baseUrl+w.path),O?`${m} ${O}`:""}},y;(function(k){k.UserAuthentication="user-authentication",k.ChannelAuthorization="channel-authorization"})(y||(y={}));class C extends Error{constructor(m){super(m),Object.setPrototypeOf(this,new.target.prototype)}}class g extends Error{constructor(m){super(m),Object.setPrototypeOf(this,new.target.prototype)}}class S extends Error{constructor(m){super(m),Object.setPrototypeOf(this,new.target.prototype)}}class _ extends Error{constructor(m){super(m),Object.setPrototypeOf(this,new.target.prototype)}}class b extends Error{constructor(m){super(m),Object.setPrototypeOf(this,new.target.prototype)}}class T extends Error{constructor(m){super(m),Object.setPrototypeOf(this,new.target.prototype)}}class E extends Error{constructor(m){super(m),Object.setPrototypeOf(this,new.target.prototype)}}class x extends Error{constructor(m){super(m),Object.setPrototypeOf(this,new.target.prototype)}}class A extends Error{constructor(m,w){super(w),this.status=m,Object.setPrototypeOf(this,new.target.prototype)}}var M=function(k,m,w,O,$){const le=We.createXHR();le.open("POST",w.endpoint,!0),le.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var be in w.headers)le.setRequestHeader(be,w.headers[be]);if(w.headersProvider!=null){let Oe=w.headersProvider();for(var be in Oe)le.setRequestHeader(be,Oe[be])}return le.onreadystatechange=function(){if(le.readyState===4)if(le.status===200){let Oe,Ue=!1;try{Oe=JSON.parse(le.responseText),Ue=!0}catch{$(new A(200,`JSON returned from ${O.toString()} endpoint was invalid, yet status code was 200. Data was: ${le.responseText}`),null)}Ue&&$(null,Oe)}else{let Oe="";switch(O){case y.UserAuthentication:Oe=v.buildLogSuffix("authenticationEndpoint");break;case y.ChannelAuthorization:Oe=`Clients must be authorized to join private or presence channels. ${v.buildLogSuffix("authorizationEndpoint")}`;break}$(new A(le.status,`Unable to retrieve auth string from ${O.toString()} endpoint - received status: ${le.status} from ${w.endpoint}. ${Oe}`),null)}},le.send(m),le};function z(k){return q(H(k))}var V=String.fromCharCode,Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",D=function(k){var m=k.charCodeAt(0);return m<128?k:m<2048?V(192|m>>>6)+V(128|m&63):V(224|m>>>12&15)+V(128|m>>>6&63)+V(128|m&63)},H=function(k){return k.replace(/[^\x00-\x7F]/g,D)},B=function(k){var m=[0,2,1][k.length%3],w=k.charCodeAt(0)<<16|(k.length>1?k.charCodeAt(1):0)<<8|(k.length>2?k.charCodeAt(2):0),O=[Y.charAt(w>>>18),Y.charAt(w>>>12&63),m>=2?"=":Y.charAt(w>>>6&63),m>=1?"=":Y.charAt(w&63)];return O.join("")},q=window.btoa||function(k){return k.replace(/[\s\S]{1,3}/g,B)};class J{constructor(m,w,O,$){this.clear=w,this.timer=m(()=>{this.timer&&(this.timer=$(this.timer))},O)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}var U=J;function j(k){window.clearTimeout(k)}function ie(k){window.clearInterval(k)}class Z extends U{constructor(m,w){super(setTimeout,j,m,function(O){return w(),null})}}class K extends U{constructor(m,w){super(setInterval,ie,m,function(O){return w(),O})}}var I={now(){return Date.now?Date.now():new Date().valueOf()},defer(k){return new Z(0,k)},method(k,...m){var w=Array.prototype.slice.call(arguments,1);return function(O){return O[k].apply(O,w.concat(arguments))}}},L=I;function F(k,...m){for(var w=0;w<m.length;w++){var O=m[w];for(var $ in O)O[$]&&O[$].constructor&&O[$].constructor===Object?k[$]=F(k[$]||{},O[$]):k[$]=O[$]}return k}function N(){for(var k=["Pusher"],m=0;m<arguments.length;m++)typeof arguments[m]=="string"?k.push(arguments[m]):k.push(pe(arguments[m]));return k.join(" : ")}function ce(k,m){var w=Array.prototype.indexOf;if(k===null)return-1;if(w&&k.indexOf===w)return k.indexOf(m);for(var O=0,$=k.length;O<$;O++)if(k[O]===m)return O;return-1}function ge(k,m){for(var w in k)Object.prototype.hasOwnProperty.call(k,w)&&m(k[w],w,k)}function Fe(k){var m=[];return ge(k,function(w,O){m.push(O)}),m}function ee(k){var m=[];return ge(k,function(w){m.push(w)}),m}function se(k,m,w){for(var O=0;O<k.length;O++)m.call(w||window,k[O],O,k)}function ae(k,m){for(var w=[],O=0;O<k.length;O++)w.push(m(k[O],O,k,w));return w}function me(k,m){var w={};return ge(k,function(O,$){w[$]=m(O)}),w}function R(k,m){m=m||function($){return!!$};for(var w=[],O=0;O<k.length;O++)m(k[O],O,k,w)&&w.push(k[O]);return w}function oe(k,m){var w={};return ge(k,function(O,$){(m&&m(O,$,k,w)||O)&&(w[$]=O)}),w}function Pe(k){var m=[];return ge(k,function(w,O){m.push([O,w])}),m}function ue(k,m){for(var w=0;w<k.length;w++)if(m(k[w],w,k))return!0;return!1}function Ne(k,m){for(var w=0;w<k.length;w++)if(!m(k[w],w,k))return!1;return!0}function de(k){return me(k,function(m){return typeof m=="object"&&(m=pe(m)),encodeURIComponent(z(m.toString()))})}function G(k){var m=oe(k,function(O){return O!==void 0}),w=ae(Pe(de(m)),L.method("join","=")).join("&");return w}function te(k){var m=[],w=[];return function O($,le){var be,Oe,Ue;switch(typeof $){case"object":if(!$)return null;for(be=0;be<m.length;be+=1)if(m[be]===$)return{$ref:w[be]};if(m.push($),w.push(le),Object.prototype.toString.apply($)==="[object Array]")for(Ue=[],be=0;be<$.length;be+=1)Ue[be]=O($[be],le+"["+be+"]");else{Ue={};for(Oe in $)Object.prototype.hasOwnProperty.call($,Oe)&&(Ue[Oe]=O($[Oe],le+"["+JSON.stringify(Oe)+"]"))}return Ue;case"number":case"string":case"boolean":return $}}(k,"$")}function pe(k){try{return JSON.stringify(k)}catch{return JSON.stringify(te(k))}}class xe{constructor(){this.globalLog=m=>{window.console&&window.console.log&&window.console.log(m)}}debug(...m){this.log(this.globalLog,m)}warn(...m){this.log(this.globalLogWarn,m)}error(...m){this.log(this.globalLogError,m)}globalLogWarn(m){window.console&&window.console.warn?window.console.warn(m):this.globalLog(m)}globalLogError(m){window.console&&window.console.error?window.console.error(m):this.globalLogWarn(m)}log(m,...w){var O=N.apply(this,arguments);_u.log?_u.log(O):_u.logToConsole&&m.bind(this)(O)}}var Te=new xe,Se=function(k,m,w,O,$){(w.headers!==void 0||w.headersProvider!=null)&&Te.warn(`To send headers with the ${O.toString()} request, you must use AJAX, rather than JSONP.`);var le=k.nextAuthCallbackID.toString();k.nextAuthCallbackID++;var be=k.getDocument(),Oe=be.createElement("script");k.auth_callbacks[le]=function(it){$(null,it)};var Ue="Pusher.auth_callbacks['"+le+"']";Oe.src=w.endpoint+"?callback="+encodeURIComponent(Ue)+"&"+m;var nt=be.getElementsByTagName("head")[0]||be.documentElement;nt.insertBefore(Oe,nt.firstChild)},ot=Se;class Ge{constructor(m){this.src=m}send(m){var w=this,O="Error loading "+w.src;w.script=document.createElement("script"),w.script.id=m.id,w.script.src=w.src,w.script.type="text/javascript",w.script.charset="UTF-8",w.script.addEventListener?(w.script.onerror=function(){m.callback(O)},w.script.onload=function(){m.callback(null)}):w.script.onreadystatechange=function(){(w.script.readyState==="loaded"||w.script.readyState==="complete")&&m.callback(null)},w.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(w.errorScript=document.createElement("script"),w.errorScript.id=m.id+"_error",w.errorScript.text=m.name+"('"+O+"');",w.script.async=w.errorScript.async=!1):w.script.async=!0;var $=document.getElementsByTagName("head")[0];$.insertBefore(w.script,$.firstChild),w.errorScript&&$.insertBefore(w.errorScript,w.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 mn{constructor(m,w){this.url=m,this.data=w}send(m){if(!this.request){var w=G(this.data),O=this.url+"/"+m.number+"?"+w;this.request=We.createScriptRequest(O),this.request.send(m)}}cleanup(){this.request&&this.request.cleanup()}}var xn=function(k,m){return function(w,O){var $="http"+(m?"s":"")+"://",le=$+(k.host||k.options.host)+k.options.path,be=We.createJSONPRequest(le,w),Oe=We.ScriptReceivers.create(function(Ue,nt){s.remove(Oe),be.cleanup(),nt&&nt.host&&(k.host=nt.host),O&&O(Ue,nt)});be.send(Oe)}},hn={name:"jsonp",getAgent:xn},zt=hn;function Gt(k,m,w){var O=k+(m.useTLS?"s":""),$=m.useTLS?m.hostTLS:m.hostNonTLS;return O+"://"+$+w}function ne(k,m){var w="/app/"+k,O="?protocol="+c.PROTOCOL+"&client=js&version="+c.VERSION+(m?"&"+m:"");return w+O}var ke={getInitial:function(k,m){var w=(m.httpPath||"")+ne(k,"flash=false");return Gt("ws",m,w)}},Ie={getInitial:function(k,m){var w=(m.httpPath||"/pusher")+ne(k);return Gt("http",m,w)}},W={getInitial:function(k,m){return Gt("http",m,m.httpPath||"/pusher")},getPath:function(k,m){return ne(k)}};class re{constructor(){this._callbacks={}}get(m){return this._callbacks[we(m)]}add(m,w,O){var $=we(m);this._callbacks[$]=this._callbacks[$]||[],this._callbacks[$].push({fn:w,context:O})}remove(m,w,O){if(!m&&!w&&!O){this._callbacks={};return}var $=m?[we(m)]:Fe(this._callbacks);w||O?this.removeCallback($,w,O):this.removeAllCallbacks($)}removeCallback(m,w,O){se(m,function($){this._callbacks[$]=R(this._callbacks[$]||[],function(le){return w&&w!==le.fn||O&&O!==le.context}),this._callbacks[$].length===0&&delete this._callbacks[$]},this)}removeAllCallbacks(m){se(m,function(w){delete this._callbacks[w]},this)}}function we(k){return"_"+k}class Q{constructor(m){this.callbacks=new re,this.global_callbacks=[],this.failThrough=m}bind(m,w,O){return this.callbacks.add(m,w,O),this}bind_global(m){return this.global_callbacks.push(m),this}unbind(m,w,O){return this.callbacks.remove(m,w,O),this}unbind_global(m){return m?(this.global_callbacks=R(this.global_callbacks||[],w=>w!==m),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(m,w,O){for(var $=0;$<this.global_callbacks.length;$++)this.global_callbacks[$](m,w);var le=this.callbacks.get(m),be=[];if(O?be.push(w,O):w&&be.push(w),le&&le.length>0)for(var $=0;$<le.length;$++)le[$].fn.apply(le[$].context||window,be);else this.failThrough&&this.failThrough(m,w);return this}}class he extends Q{constructor(m,w,O,$,le){super(),this.initialize=We.transportConnectionInitializer,this.hooks=m,this.name=w,this.priority=O,this.key=$,this.options=le,this.state="new",this.timeline=le.timeline,this.activityTimeout=le.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 m=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(m,this.options)}catch(w){return L.defer(()=>{this.onError(w),this.changeState("closed")}),!1}return this.bindListeners(),Te.debug("Connecting",{transport:this.name,url:m}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(m){return this.state==="open"?(L.defer(()=>{this.socket&&this.socket.send(m)}),!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(m){this.emit("error",{type:"WebSocketError",error:m}),this.timeline.error(this.buildTimelineMessage({error:m.toString()}))}onClose(m){m?this.changeState("closed",{code:m.code,reason:m.reason,wasClean:m.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(m){this.emit("message",m)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=m=>{this.onError(m)},this.socket.onclose=m=>{this.onClose(m)},this.socket.onmessage=m=>{this.onMessage(m)},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(m,w){this.state=m,this.timeline.info(this.buildTimelineMessage({state:m,params:w})),this.emit(m,w)}buildTimelineMessage(m){return F({cid:this.id},m)}}class Ce{constructor(m){this.hooks=m}isSupported(m){return this.hooks.isSupported(m)}createConnection(m,w,O,$){return new he(this.hooks,m,w,O,$)}}var at=new Ce({urls:ke,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!We.getWebSocketAPI()},isSupported:function(){return!!We.getWebSocketAPI()},getSocket:function(k){return We.createWebSocket(k)}}),ut={urls:Ie,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},dt=F({getSocket:function(k){return We.HTTPFactory.createStreamingSocket(k)}},ut),Et=F({getSocket:function(k){return We.HTTPFactory.createPollingSocket(k)}},ut),Rt={isSupported:function(){return We.isXHRSupported()}},an=new Ce(F({},dt,Rt)),vn=new Ce(F({},Et,Rt)),Vi={ws:at,xhr_streaming:an,xhr_polling:vn},Yn=Vi,Fi=new Ce({file:"sockjs",urls:W,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(k,m){return new window.SockJS(k,null,{js_path:f.getPath("sockjs",{useTLS:m.useTLS}),ignore_null_origin:m.ignoreNullOrigin})},beforeOpen:function(k,m){k.send(JSON.stringify({path:m}))}}),Io={isSupported:function(k){var m=We.isXDRSupported(k.useTLS);return m}},Ao=new Ce(F({},dt,Io)),Ae=new Ce(F({},Et,Io));Yn.xdr_streaming=Ao,Yn.xdr_polling=Ae,Yn.sockjs=Fi;var Qt=Yn;class Me extends Q{constructor(){super();var m=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){m.emit("online")},!1),window.addEventListener("offline",function(){m.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var It=new Me;class mt{constructor(m,w,O){this.manager=m,this.transport=w,this.minPingDelay=O.minPingDelay,this.maxPingDelay=O.maxPingDelay,this.pingDelay=void 0}createConnection(m,w,O,$){$=F({},$,{activityTimeout:this.pingDelay});var le=this.transport.createConnection(m,w,O,$),be=null,Oe=function(){le.unbind("open",Oe),le.bind("closed",Ue),be=L.now()},Ue=nt=>{if(le.unbind("closed",Ue),nt.code===1002||nt.code===1003)this.manager.reportDeath();else if(!nt.wasClean&&be){var it=L.now()-be;it<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(it/2,this.minPingDelay))}};return le.bind("open",Oe),le}isSupported(m){return this.manager.isAlive()&&this.transport.isSupported(m)}}const ca={decodeMessage:function(k){try{var m=JSON.parse(k.data),w=m.data;if(typeof w=="string")try{w=JSON.parse(m.data)}catch{}var O={event:m.event,channel:m.channel,data:w};return m.user_id&&(O.user_id=m.user_id),O}catch($){throw{type:"MessageParseError",error:$,data:k.data}}},encodeMessage:function(k){return JSON.stringify(k)},processHandshake:function(k){var m=ca.decodeMessage(k);if(m.event==="pusher:connection_established"){if(!m.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:m.data.socket_id,activityTimeout:m.data.activity_timeout*1e3}}else{if(m.event==="pusher:error")return{action:this.getCloseAction(m.data),error:this.getCloseError(m.data)};throw"Invalid handshake"}},getCloseAction:function(k){return k.code<4e3?k.code>=1002&&k.code<=1004?"backoff":null:k.code===4e3?"tls_only":k.code<4100?"refused":k.code<4200?"backoff":k.code<4300?"retry":"refused"},getCloseError:function(k){return k.code!==1e3&&k.code!==1001?{type:"PusherError",data:{code:k.code,message:k.reason||k.message}}:null}};var gn=ca;class Mo extends Q{constructor(m,w){super(),this.id=m,this.transport=w,this.activityTimeout=w.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(m){return this.transport.send(m)}send_event(m,w,O){var $={event:m,data:w};return O&&($.channel=O),Te.debug("Event sent",$),this.send(gn.encodeMessage($))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var m={message:O=>{var $;try{$=gn.decodeMessage(O)}catch(le){this.emit("error",{type:"MessageParseError",error:le,data:O.data})}if($!==void 0){switch(Te.debug("Event recd",$),$.event){case"pusher:error":this.emit("error",{type:"PusherError",data:$.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",$)}},activity:()=>{this.emit("activity")},error:O=>{this.emit("error",O)},closed:O=>{w(),O&&O.code&&this.handleCloseEvent(O),this.transport=null,this.emit("closed")}},w=()=>{ge(m,(O,$)=>{this.transport.unbind($,O)})};ge(m,(O,$)=>{this.transport.bind($,O)})}handleCloseEvent(m){var w=gn.getCloseAction(m),O=gn.getCloseError(m);O&&this.emit("error",O),w&&this.emit(w,{action:w,error:O})}}class Oo{constructor(m,w){this.transport=m,this.callback=w,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=m=>{this.unbindListeners();var w;try{w=gn.processHandshake(m)}catch(O){this.finish("error",{error:O}),this.transport.close();return}w.action==="connected"?this.finish("connected",{connection:new Mo(w.id,this.transport),activityTimeout:w.activityTimeout}):(this.finish(w.action,{error:w.error}),this.transport.close())},this.onClosed=m=>{this.unbindListeners();var w=gn.getCloseAction(m)||"backoff",O=gn.getCloseError(m);this.finish(w,{error:O})},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(m,w){this.callback(F({transport:this.transport,action:m},w))}}class ji{constructor(m,w){this.timeline=m,this.options=w||{}}send(m,w){this.timeline.isEmpty()||this.timeline.send(We.TimelineTransport.getAgent(this,m),w)}}class Hi extends Q{constructor(m,w){super(function(O,$){Te.debug("No callbacks on "+m+" for "+O)}),this.name=m,this.pusher=w,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(m,w){return w(null,{auth:""})}trigger(m,w){if(m.indexOf("client-")!==0)throw new C("Event '"+m+"' does not start with 'client-'");if(!this.subscribed){var O=v.buildLogSuffix("triggeringClientEvents");Te.warn(`Client event triggered before channel 'subscription_succeeded' event . ${O}`)}return this.pusher.send_event(m,w,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(m){var w=m.event,O=m.data;if(w==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(m);else if(w==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(m);else if(w.indexOf("pusher_internal:")!==0){var $={};this.emit(w,O,$)}}handleSubscriptionSucceededEvent(m){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",m.data)}handleSubscriptionCountEvent(m){m.data.subscription_count&&(this.subscriptionCount=m.data.subscription_count),this.emit("pusher:subscription_count",m.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(m,w)=>{m?(this.subscriptionPending=!1,Te.error(m.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:m.message},m instanceof A?{status:m.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:w.auth,channel_data:w.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 ua extends Hi{authorize(m,w){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:m},w)}}class el{constructor(){this.reset()}get(m){return Object.prototype.hasOwnProperty.call(this.members,m)?{id:m,info:this.members[m]}:null}each(m){ge(this.members,(w,O)=>{m(this.get(O))})}setMyID(m){this.myID=m}onSubscription(m){this.members=m.presence.hash,this.count=m.presence.count,this.me=this.get(this.myID)}addMember(m){return this.get(m.user_id)===null&&this.count++,this.members[m.user_id]=m.user_info,this.get(m.user_id)}removeMember(m){var w=this.get(m.user_id);return w&&(delete this.members[m.user_id],this.count--),w}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var X=function(k,m,w,O){function $(le){return le instanceof w?le:new w(function(be){be(le)})}return new(w||(w=Promise))(function(le,be){function Oe(it){try{nt(O.next(it))}catch(Lt){be(Lt)}}function Ue(it){try{nt(O.throw(it))}catch(Lt){be(Lt)}}function nt(it){it.done?le(it.value):$(it.value).then(Oe,Ue)}nt((O=O.apply(k,m||[])).next())})};class ye extends ua{constructor(m,w){super(m,w),this.members=new el}authorize(m,w){super.authorize(m,(O,$)=>X(this,void 0,void 0,function*(){if(!O)if($=$,$.channel_data!=null){var le=JSON.parse($.channel_data);this.members.setMyID(le.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 be=v.buildLogSuffix("authorizationEndpoint");Te.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${be}, or the user should be signed in.`),w("Invalid auth response");return}w(O,$)}))}handleEvent(m){var w=m.event;if(w.indexOf("pusher_internal:")===0)this.handleInternalEvent(m);else{var O=m.data,$={};m.user_id&&($.user_id=m.user_id),this.emit(w,O,$)}}handleInternalEvent(m){var w=m.event,O=m.data;switch(w){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(m);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(m);break;case"pusher_internal:member_added":var $=this.members.addMember(O);this.emit("pusher:member_added",$);break;case"pusher_internal:member_removed":var le=this.members.removeMember(O);le&&this.emit("pusher:member_removed",le);break}}handleSubscriptionSucceededEvent(m){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(m.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var Xe=o(1),gt=o(0);class Vr extends ua{constructor(m,w,O){super(m,w),this.key=null,this.nacl=O}authorize(m,w){super.authorize(m,(O,$)=>{if(O){w(O,$);return}let le=$.shared_secret;if(!le){w(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=Object(gt.decode)(le),delete $.shared_secret,w(null,$)})}trigger(m,w){throw new T("Client events are not currently supported for encrypted channels")}handleEvent(m){var w=m.event,O=m.data;if(w.indexOf("pusher_internal:")===0||w.indexOf("pusher:")===0){super.handleEvent(m);return}this.handleEncryptedEvent(w,O)}handleEncryptedEvent(m,w){if(!this.key){Te.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!w.ciphertext||!w.nonce){Te.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+w);return}let O=Object(gt.decode)(w.ciphertext);if(O.length<this.nacl.secretbox.overheadLength){Te.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${O.length}`);return}let $=Object(gt.decode)(w.nonce);if($.length<this.nacl.secretbox.nonceLength){Te.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${$.length}`);return}let le=this.nacl.secretbox.open(O,$,this.key);if(le===null){Te.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,(be,Oe)=>{if(be){Te.error(`Failed to make a request to the authEndpoint: ${Oe}. Unable to fetch new key, so dropping encrypted event`);return}if(le=this.nacl.secretbox.open(O,$,this.key),le===null){Te.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(m,this.getDataToEmit(le))});return}this.emit(m,this.getDataToEmit(le))}getDataToEmit(m){let w=Object(Xe.decode)(m);try{return JSON.parse(w)}catch{return w}}}class tl extends Q{constructor(m,w){super(),this.state="initialized",this.connection=null,this.key=m,this.options=w,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 O=We.getNetwork();O.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),O.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}switchCluster(m){this.key=m,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(m){return this.connection?this.connection.send(m):!1}send_event(m,w,O){return this.connection?this.connection.send_event(m,w,O):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var m=(w,O)=>{w?this.runner=this.strategy.connect(0,m):O.action==="error"?(this.emit("error",{type:"HandshakeError",error:O.error}),this.timeline.error({handshakeError:O.error})):(this.abortConnecting(),this.handshakeCallbacks[O.action](O))};this.runner=this.strategy.connect(0,m)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var m=this.abandonConnection();m.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(m){this.timeline.info({action:"retry",delay:m}),m>0&&this.emit("connecting_in",Math.round(m/1e3)),this.retryTimer=new Z(m||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new Z(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new Z(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 Z(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(m){return F({},m,{message:w=>{this.resetActivityCheck(),this.emit("message",w)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:w=>{this.emit("error",w)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(m){return F({},m,{connected:w=>{this.activityTimeout=Math.min(this.options.activityTimeout,w.activityTimeout,w.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(w.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let m=w=>O=>{O.error&&this.emit("error",{type:"WebSocketError",error:O.error}),w(O)};return{tls_only:m(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:m(()=>{this.disconnect()}),backoff:m(()=>{this.retryIn(1e3)}),retry:m(()=>{this.retryIn(0)})}}setConnection(m){this.connection=m;for(var w in this.connectionCallbacks)this.connection.bind(w,this.connectionCallbacks[w]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var m in this.connectionCallbacks)this.connection.unbind(m,this.connectionCallbacks[m]);var w=this.connection;return this.connection=null,w}}updateState(m,w){var O=this.state;if(this.state=m,O!==m){var $=m;$==="connected"&&($+=" with new socket ID "+w.socket_id),Te.debug("State changed",O+" -> "+$),this.timeline.info({state:m,params:w}),this.emit("state_change",{previous:O,current:m}),this.emit(m,w)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class Mm{constructor(){this.channels={}}add(m,w){return this.channels[m]||(this.channels[m]=gu(m,w)),this.channels[m]}all(){return ee(this.channels)}find(m){return this.channels[m]}remove(m){var w=this.channels[m];return delete this.channels[m],w}disconnect(){ge(this.channels,function(m){m.disconnect()})}}function gu(k,m){if(k.indexOf("private-encrypted-")===0){if(m.config.nacl)return Fr.createEncryptedChannel(k,m,m.config.nacl);let w="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",O=v.buildLogSuffix("encryptedChannelSupport");throw new T(`${w}. ${O}`)}else{if(k.indexOf("private-")===0)return Fr.createPrivateChannel(k,m);if(k.indexOf("presence-")===0)return Fr.createPresenceChannel(k,m);if(k.indexOf("#")===0)throw new g('Cannot create a channel with name "'+k+'".');return Fr.createChannel(k,m)}}var nl={createChannels(){return new Mm},createConnectionManager(k,m){return new tl(k,m)},createChannel(k,m){return new Hi(k,m)},createPrivateChannel(k,m){return new ua(k,m)},createPresenceChannel(k,m){return new ye(k,m)},createEncryptedChannel(k,m,w){return new Vr(k,m,w)},createTimelineSender(k,m){return new ji(k,m)},createHandshake(k,m){return new Oo(k,m)},createAssistantToTheTransportManager(k,m,w){return new mt(k,m,w)}},Fr=nl;class Om{constructor(m){this.options=m||{},this.livesLeft=this.options.lives||1/0}getAssistant(m){return Fr.createAssistantToTheTransportManager(this,m,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class Ua{constructor(m,w){this.strategies=m,this.loop=!!w.loop,this.failFast=!!w.failFast,this.timeout=w.timeout,this.timeoutLimit=w.timeoutLimit}isSupported(){return ue(this.strategies,L.method("isSupported"))}connect(m,w){var O=this.strategies,$=0,le=this.timeout,be=null,Oe=(Ue,nt)=>{nt?w(null,nt):($=$+1,this.loop&&($=$%O.length),$<O.length?(le&&(le=le*2,this.timeoutLimit&&(le=Math.min(le,this.timeoutLimit))),be=this.tryStrategy(O[$],m,{timeout:le,failFast:this.failFast},Oe)):w(!0))};return be=this.tryStrategy(O[$],m,{timeout:le,failFast:this.failFast},Oe),{abort:function(){be.abort()},forceMinPriority:function(Ue){m=Ue,be&&be.forceMinPriority(Ue)}}}tryStrategy(m,w,O,$){var le=null,be=null;return O.timeout>0&&(le=new Z(O.timeout,function(){be.abort(),$(!0)})),be=m.connect(w,function(Oe,Ue){Oe&&le&&le.isRunning()&&!O.failFast||(le&&le.ensureAborted(),$(Oe,Ue))}),{abort:function(){le&&le.ensureAborted(),be.abort()},forceMinPriority:function(Oe){be.forceMinPriority(Oe)}}}}class yu{constructor(m){this.strategies=m}isSupported(){return ue(this.strategies,L.method("isSupported"))}connect(m,w){return m4(this.strategies,m,function(O,$){return function(le,be){if($[O].error=le,le){h4($)&&w(!0);return}se($,function(Oe){Oe.forceMinPriority(be.transport.priority)}),w(null,be)}})}}function m4(k,m,w){var O=ae(k,function($,le,be,Oe){return $.connect(m,w(le,Oe))});return{abort:function(){se(O,v4)},forceMinPriority:function($){se(O,function(le){le.forceMinPriority($)})}}}function h4(k){return Ne(k,function(m){return!!m.error})}function v4(k){!k.error&&!k.aborted&&(k.abort(),k.aborted=!0)}class g4{constructor(m,w,O){this.strategy=m,this.transports=w,this.ttl=O.ttl||1800*1e3,this.usingTLS=O.useTLS,this.timeline=O.timeline}isSupported(){return this.strategy.isSupported()}connect(m,w){var O=this.usingTLS,$=y4(O),le=$&&$.cacheSkipCount?$.cacheSkipCount:0,be=[this.strategy];if($&&$.timestamp+this.ttl>=L.now()){var Oe=this.transports[$.transport];Oe&&(["ws","wss"].includes($.transport)||le>3?(this.timeline.info({cached:!0,transport:$.transport,latency:$.latency}),be.push(new Ua([Oe],{timeout:$.latency*2+1e3,failFast:!0}))):le++)}var Ue=L.now(),nt=be.pop().connect(m,function it(Lt,ol){Lt?(Nm(O),be.length>0?(Ue=L.now(),nt=be.pop().connect(m,it)):w(Lt)):(b4(O,ol.transport.name,L.now()-Ue,le),w(null,ol))});return{abort:function(){nt.abort()},forceMinPriority:function(it){m=it,nt&&nt.forceMinPriority(it)}}}}function bu(k){return"pusherTransport"+(k?"TLS":"NonTLS")}function y4(k){var m=We.getLocalStorage();if(m)try{var w=m[bu(k)];if(w)return JSON.parse(w)}catch{Nm(k)}return null}function b4(k,m,w,O){var $=We.getLocalStorage();if($)try{$[bu(k)]=pe({timestamp:L.now(),transport:m,latency:w,cacheSkipCount:O})}catch{}}function Nm(k){var m=We.getLocalStorage();if(m)try{delete m[bu(k)]}catch{}}class rl{constructor(m,{delay:w}){this.strategy=m,this.options={delay:w}}isSupported(){return this.strategy.isSupported()}connect(m,w){var O=this.strategy,$,le=new Z(this.options.delay,function(){$=O.connect(m,w)});return{abort:function(){le.ensureAborted(),$&&$.abort()},forceMinPriority:function(be){m=be,$&&$.forceMinPriority(be)}}}}class Ui{constructor(m,w,O){this.test=m,this.trueBranch=w,this.falseBranch=O}isSupported(){var m=this.test()?this.trueBranch:this.falseBranch;return m.isSupported()}connect(m,w){var O=this.test()?this.trueBranch:this.falseBranch;return O.connect(m,w)}}class w4{constructor(m){this.strategy=m}isSupported(){return this.strategy.isSupported()}connect(m,w){var O=this.strategy.connect(m,function($,le){le&&O.abort(),w($,le)});return O}}function Wi(k){return function(){return k.isSupported()}}var k4=function(k,m,w){var O={};function $(qm,b3,w3,k3,_3){var Ym=w(k,qm,b3,w3,k3,_3);return O[qm]=Ym,Ym}var le=Object.assign({},m,{hostNonTLS:k.wsHost+":"+k.wsPort,hostTLS:k.wsHost+":"+k.wssPort,httpPath:k.wsPath}),be=Object.assign({},le,{useTLS:!0}),Oe=Object.assign({},m,{hostNonTLS:k.httpHost+":"+k.httpPort,hostTLS:k.httpHost+":"+k.httpsPort,httpPath:k.httpPath}),Ue={loop:!0,timeout:15e3,timeoutLimit:6e4},nt=new Om({minPingDelay:1e4,maxPingDelay:k.activityTimeout}),it=new Om({lives:2,minPingDelay:1e4,maxPingDelay:k.activityTimeout}),Lt=$("ws","ws",3,le,nt),ol=$("wss","ws",3,be,nt),m3=$("sockjs","sockjs",1,Oe),Vm=$("xhr_streaming","xhr_streaming",1,Oe,it),h3=$("xdr_streaming","xdr_streaming",1,Oe,it),Fm=$("xhr_polling","xhr_polling",1,Oe),v3=$("xdr_polling","xdr_polling",1,Oe),jm=new Ua([Lt],Ue),g3=new Ua([ol],Ue),y3=new Ua([m3],Ue),Hm=new Ua([new Ui(Wi(Vm),Vm,h3)],Ue),Um=new Ua([new Ui(Wi(Fm),Fm,v3)],Ue),Wm=new Ua([new Ui(Wi(Hm),new yu([Hm,new rl(Um,{delay:4e3})]),Um)],Ue),Cu=new Ui(Wi(Wm),Wm,y3),Su;return m.useTLS?Su=new yu([jm,new rl(Cu,{delay:2e3})]):Su=new yu([jm,new rl(g3,{delay:2e3}),new rl(Cu,{delay:5e3})]),new g4(new w4(new Ui(Wi(Lt),Su,Cu)),O,{ttl:18e5,timeline:m.timeline,useTLS:m.useTLS})},_4=k4,C4=function(){var k=this;k.timeline.info(k.buildTimelineMessage({transport:k.name+(k.options.useTLS?"s":"")})),k.hooks.isInitialized()?k.changeState("initialized"):k.hooks.file?(k.changeState("initializing"),f.load(k.hooks.file,{useTLS:k.options.useTLS},function(m,w){k.hooks.isInitialized()?(k.changeState("initialized"),w(!0)):(m&&k.onError(m),k.onClose(),w(!1))})):k.onClose()},S4={getRequest:function(k){var m=new window.XDomainRequest;return m.ontimeout=function(){k.emit("error",new S),k.close()},m.onerror=function(w){k.emit("error",w),k.close()},m.onprogress=function(){m.responseText&&m.responseText.length>0&&k.onChunk(200,m.responseText)},m.onload=function(){m.responseText&&m.responseText.length>0&&k.onChunk(200,m.responseText),k.emit("finished",200),k.close()},m},abortRequest:function(k){k.ontimeout=k.onerror=k.onprogress=k.onload=null,k.abort()}},E4=S4;const x4=256*1024;class T4 extends Q{constructor(m,w,O){super(),this.hooks=m,this.method=w,this.url=O}start(m){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},We.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(m)}close(){this.unloader&&(We.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(m,w){for(;;){var O=this.advanceBuffer(w);if(O)this.emit("chunk",{status:m,data:O});else break}this.isBufferTooLong(w)&&this.emit("buffer_too_long")}advanceBuffer(m){var w=m.slice(this.position),O=w.indexOf(`
632
+ */(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 c in i)o.d(l,c,(function(d){return i[d]}).bind(null,c));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 y=function(C,g){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,_){S.__proto__=_}||function(S,_){for(var b in _)_.hasOwnProperty(b)&&(S[b]=_[b])},y(C,g)};return function(C,g){y(C,g);function S(){this.constructor=C}C.prototype=g===null?Object.create(g):(S.prototype=g.prototype,new S)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=256,l=function(){function y(C){C===void 0&&(C="="),this._paddingCharacter=C}return y.prototype.encodedLength=function(C){return this._paddingCharacter?(C+2)/3*4|0:(C*8+5)/6|0},y.prototype.encode=function(C){for(var g="",S=0;S<C.length-2;S+=3){var _=C[S]<<16|C[S+1]<<8|C[S+2];g+=this._encodeByte(_>>>3*6&63),g+=this._encodeByte(_>>>2*6&63),g+=this._encodeByte(_>>>1*6&63),g+=this._encodeByte(_>>>0*6&63)}var b=C.length-S;if(b>0){var _=C[S]<<16|(b===2?C[S+1]<<8:0);g+=this._encodeByte(_>>>3*6&63),g+=this._encodeByte(_>>>2*6&63),b===2?g+=this._encodeByte(_>>>1*6&63):g+=this._paddingCharacter||"",g+=this._paddingCharacter||""}return g},y.prototype.maxDecodedLength=function(C){return this._paddingCharacter?C/4*3|0:(C*6+7)/8|0},y.prototype.decodedLength=function(C){return this.maxDecodedLength(C.length-this._getPaddingLength(C))},y.prototype.decode=function(C){if(C.length===0)return new Uint8Array(0);for(var g=this._getPaddingLength(C),S=C.length-g,_=new Uint8Array(this.maxDecodedLength(S)),b=0,T=0,E=0,x=0,A=0,P=0,M=0;T<S-4;T+=4)x=this._decodeChar(C.charCodeAt(T+0)),A=this._decodeChar(C.charCodeAt(T+1)),P=this._decodeChar(C.charCodeAt(T+2)),M=this._decodeChar(C.charCodeAt(T+3)),_[b++]=x<<2|A>>>4,_[b++]=A<<4|P>>>2,_[b++]=P<<6|M,E|=x&s,E|=A&s,E|=P&s,E|=M&s;if(T<S-1&&(x=this._decodeChar(C.charCodeAt(T)),A=this._decodeChar(C.charCodeAt(T+1)),_[b++]=x<<2|A>>>4,E|=x&s,E|=A&s),T<S-2&&(P=this._decodeChar(C.charCodeAt(T+2)),_[b++]=A<<4|P>>>2,E|=P&s),T<S-3&&(M=this._decodeChar(C.charCodeAt(T+3)),_[b++]=P<<6|M,E|=M&s),E!==0)throw new Error("Base64Coder: incorrect characters for decoding");return _},y.prototype._encodeByte=function(C){var g=C;return g+=65,g+=25-C>>>8&6,g+=51-C>>>8&-75,g+=61-C>>>8&-15,g+=62-C>>>8&3,String.fromCharCode(g)},y.prototype._decodeChar=function(C){var g=s;return g+=(42-C&C-44)>>>8&-s+C-43+62,g+=(46-C&C-48)>>>8&-s+C-47+63,g+=(47-C&C-58)>>>8&-s+C-48+52,g+=(64-C&C-91)>>>8&-s+C-65+0,g+=(96-C&C-123)>>>8&-s+C-97+26,g},y.prototype._getPaddingLength=function(C){var g=0;if(this._paddingCharacter){for(var S=C.length-1;S>=0&&C[S]===this._paddingCharacter;S--)g++;if(C.length<4||g>2)throw new Error("Base64Coder: incorrect padding")}return g},y}();r.Coder=l;var c=new l;function d(y){return c.encode(y)}r.encode=d;function u(y){return c.decode(y)}r.decode=u;var f=function(y){i(C,y);function C(){return y!==null&&y.apply(this,arguments)||this}return C.prototype._encodeByte=function(g){var S=g;return S+=65,S+=25-g>>>8&6,S+=51-g>>>8&-75,S+=61-g>>>8&-13,S+=62-g>>>8&49,String.fromCharCode(S)},C.prototype._decodeChar=function(g){var S=s;return S+=(44-g&g-46)>>>8&-s+g-45+62,S+=(94-g&g-96)>>>8&-s+g-95+63,S+=(47-g&g-58)>>>8&-s+g-48+52,S+=(64-g&g-91)>>>8&-s+g-65+0,S+=(96-g&g-123)>>>8&-s+g-97+26,S},C}(l);r.URLSafeCoder=f;var p=new f;function h(y){return p.encode(y)}r.encodeURLSafe=h;function v(y){return p.decode(y)}r.decodeURLSafe=v,r.encodedLength=function(y){return c.encodedLength(y)},r.maxDecodedLength=function(y){return c.maxDecodedLength(y)},r.decodedLength=function(y){return c.decodedLength(y)}},function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i="utf8: invalid string",s="utf8: invalid source encoding";function l(u){for(var f=new Uint8Array(c(u)),p=0,h=0;h<u.length;h++){var v=u.charCodeAt(h);v<128?f[p++]=v:v<2048?(f[p++]=192|v>>6,f[p++]=128|v&63):v<55296?(f[p++]=224|v>>12,f[p++]=128|v>>6&63,f[p++]=128|v&63):(h++,v=(v&1023)<<10,v|=u.charCodeAt(h)&1023,v+=65536,f[p++]=240|v>>18,f[p++]=128|v>>12&63,f[p++]=128|v>>6&63,f[p++]=128|v&63)}return f}r.encode=l;function c(u){for(var f=0,p=0;p<u.length;p++){var h=u.charCodeAt(p);if(h<128)f+=1;else if(h<2048)f+=2;else if(h<55296)f+=3;else if(h<=57343){if(p>=u.length-1)throw new Error(i);p++,f+=4}else throw new Error(i)}return f}r.encodedLength=c;function d(u){for(var f=[],p=0;p<u.length;p++){var h=u[p];if(h&128){var v=void 0;if(h<224){if(p>=u.length)throw new Error(s);var y=u[++p];if((y&192)!==128)throw new Error(s);h=(h&31)<<6|y&63,v=128}else if(h<240){if(p>=u.length-1)throw new Error(s);var y=u[++p],C=u[++p];if((y&192)!==128||(C&192)!==128)throw new Error(s);h=(h&15)<<12|(y&63)<<6|C&63,v=2048}else if(h<248){if(p>=u.length-2)throw new Error(s);var y=u[++p],C=u[++p],g=u[++p];if((y&192)!==128||(C&192)!==128||(g&192)!==128)throw new Error(s);h=(h&15)<<18|(y&63)<<12|(C&63)<<6|g&63,v=65536}else throw new Error(s);if(h<v||h>=55296&&h<=57343)throw new Error(s);if(h>=65536){if(h>1114111)throw new Error(s);h-=65536,f.push(String.fromCharCode(55296|h>>10)),h=56320|h&1023}}f.push(String.fromCharCode(h))}return f.join("")}r.decode=d},function(n,r,o){n.exports=o(3).default},function(n,r,o){o.r(r);class i{constructor(m,w){this.lastId=0,this.prefix=m,this.name=w}create(m){this.lastId++;var w=this.lastId,O=this.prefix+w,$=this.name+"["+w+"]",le=!1,be=function(){le||(m.apply(null,arguments),le=!0)};return this[w]=be,{number:w,id:O,name:$,callback:be}}remove(m){delete this[m.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:""},c=l;class d{constructor(m){this.options=m,this.receivers=m.receivers||s,this.loading={}}load(m,w,O){var $=this;if($.loading[m]&&$.loading[m].length>0)$.loading[m].push(O);else{$.loading[m]=[O];var le=We.createScriptRequest($.getPath(m,w)),be=$.receivers.create(function(Oe){if($.receivers.remove(be),$.loading[m]){var Ue=$.loading[m];delete $.loading[m];for(var nt=function(Lt){Lt||le.cleanup()},it=0;it<Ue.length;it++)Ue[it](Oe,nt)}});le.send(be)}}getRoot(m){var w,O=We.getDocument().location.protocol;return m&&m.useTLS||O==="https:"?w=this.options.cdn_https:w=this.options.cdn_http,w.replace(/\/*$/,"")+"/"+this.options.version}getPath(m,w){return this.getRoot(w)+"/"+m+this.options.suffix+".js"}}var u=new i("_pusher_dependencies","Pusher.DependenciesReceivers"),f=new d({cdn_http:c.cdn_http,cdn_https:c.cdn_https,version:c.VERSION,suffix:c.dependency_suffix,receivers:u});const p={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 v={buildLogSuffix:function(k){const m="See:",w=p.urls[k];if(!w)return"";let O;return w.fullUrl?O=w.fullUrl:w.path&&(O=p.baseUrl+w.path),O?`${m} ${O}`:""}},y;(function(k){k.UserAuthentication="user-authentication",k.ChannelAuthorization="channel-authorization"})(y||(y={}));class C extends Error{constructor(m){super(m),Object.setPrototypeOf(this,new.target.prototype)}}class g extends Error{constructor(m){super(m),Object.setPrototypeOf(this,new.target.prototype)}}class S extends Error{constructor(m){super(m),Object.setPrototypeOf(this,new.target.prototype)}}class _ extends Error{constructor(m){super(m),Object.setPrototypeOf(this,new.target.prototype)}}class b extends Error{constructor(m){super(m),Object.setPrototypeOf(this,new.target.prototype)}}class T extends Error{constructor(m){super(m),Object.setPrototypeOf(this,new.target.prototype)}}class E extends Error{constructor(m){super(m),Object.setPrototypeOf(this,new.target.prototype)}}class x extends Error{constructor(m){super(m),Object.setPrototypeOf(this,new.target.prototype)}}class A extends Error{constructor(m,w){super(w),this.status=m,Object.setPrototypeOf(this,new.target.prototype)}}var M=function(k,m,w,O,$){const le=We.createXHR();le.open("POST",w.endpoint,!0),le.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var be in w.headers)le.setRequestHeader(be,w.headers[be]);if(w.headersProvider!=null){let Oe=w.headersProvider();for(var be in Oe)le.setRequestHeader(be,Oe[be])}return le.onreadystatechange=function(){if(le.readyState===4)if(le.status===200){let Oe,Ue=!1;try{Oe=JSON.parse(le.responseText),Ue=!0}catch{$(new A(200,`JSON returned from ${O.toString()} endpoint was invalid, yet status code was 200. Data was: ${le.responseText}`),null)}Ue&&$(null,Oe)}else{let Oe="";switch(O){case y.UserAuthentication:Oe=v.buildLogSuffix("authenticationEndpoint");break;case y.ChannelAuthorization:Oe=`Clients must be authorized to join private or presence channels. ${v.buildLogSuffix("authorizationEndpoint")}`;break}$(new A(le.status,`Unable to retrieve auth string from ${O.toString()} endpoint - received status: ${le.status} from ${w.endpoint}. ${Oe}`),null)}},le.send(m),le};function z(k){return q(H(k))}var V=String.fromCharCode,Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",D=function(k){var m=k.charCodeAt(0);return m<128?k:m<2048?V(192|m>>>6)+V(128|m&63):V(224|m>>>12&15)+V(128|m>>>6&63)+V(128|m&63)},H=function(k){return k.replace(/[^\x00-\x7F]/g,D)},B=function(k){var m=[0,2,1][k.length%3],w=k.charCodeAt(0)<<16|(k.length>1?k.charCodeAt(1):0)<<8|(k.length>2?k.charCodeAt(2):0),O=[Y.charAt(w>>>18),Y.charAt(w>>>12&63),m>=2?"=":Y.charAt(w>>>6&63),m>=1?"=":Y.charAt(w&63)];return O.join("")},q=window.btoa||function(k){return k.replace(/[\s\S]{1,3}/g,B)};class J{constructor(m,w,O,$){this.clear=w,this.timer=m(()=>{this.timer&&(this.timer=$(this.timer))},O)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}var U=J;function j(k){window.clearTimeout(k)}function ie(k){window.clearInterval(k)}class Z extends U{constructor(m,w){super(setTimeout,j,m,function(O){return w(),null})}}class K extends U{constructor(m,w){super(setInterval,ie,m,function(O){return w(),O})}}var I={now(){return Date.now?Date.now():new Date().valueOf()},defer(k){return new Z(0,k)},method(k,...m){var w=Array.prototype.slice.call(arguments,1);return function(O){return O[k].apply(O,w.concat(arguments))}}},L=I;function F(k,...m){for(var w=0;w<m.length;w++){var O=m[w];for(var $ in O)O[$]&&O[$].constructor&&O[$].constructor===Object?k[$]=F(k[$]||{},O[$]):k[$]=O[$]}return k}function N(){for(var k=["Pusher"],m=0;m<arguments.length;m++)typeof arguments[m]=="string"?k.push(arguments[m]):k.push(pe(arguments[m]));return k.join(" : ")}function ce(k,m){var w=Array.prototype.indexOf;if(k===null)return-1;if(w&&k.indexOf===w)return k.indexOf(m);for(var O=0,$=k.length;O<$;O++)if(k[O]===m)return O;return-1}function ge(k,m){for(var w in k)Object.prototype.hasOwnProperty.call(k,w)&&m(k[w],w,k)}function Fe(k){var m=[];return ge(k,function(w,O){m.push(O)}),m}function ee(k){var m=[];return ge(k,function(w){m.push(w)}),m}function se(k,m,w){for(var O=0;O<k.length;O++)m.call(w||window,k[O],O,k)}function ae(k,m){for(var w=[],O=0;O<k.length;O++)w.push(m(k[O],O,k,w));return w}function me(k,m){var w={};return ge(k,function(O,$){w[$]=m(O)}),w}function R(k,m){m=m||function($){return!!$};for(var w=[],O=0;O<k.length;O++)m(k[O],O,k,w)&&w.push(k[O]);return w}function oe(k,m){var w={};return ge(k,function(O,$){(m&&m(O,$,k,w)||O)&&(w[$]=O)}),w}function Pe(k){var m=[];return ge(k,function(w,O){m.push([O,w])}),m}function ue(k,m){for(var w=0;w<k.length;w++)if(m(k[w],w,k))return!0;return!1}function Ne(k,m){for(var w=0;w<k.length;w++)if(!m(k[w],w,k))return!1;return!0}function de(k){return me(k,function(m){return typeof m=="object"&&(m=pe(m)),encodeURIComponent(z(m.toString()))})}function G(k){var m=oe(k,function(O){return O!==void 0}),w=ae(Pe(de(m)),L.method("join","=")).join("&");return w}function te(k){var m=[],w=[];return function O($,le){var be,Oe,Ue;switch(typeof $){case"object":if(!$)return null;for(be=0;be<m.length;be+=1)if(m[be]===$)return{$ref:w[be]};if(m.push($),w.push(le),Object.prototype.toString.apply($)==="[object Array]")for(Ue=[],be=0;be<$.length;be+=1)Ue[be]=O($[be],le+"["+be+"]");else{Ue={};for(Oe in $)Object.prototype.hasOwnProperty.call($,Oe)&&(Ue[Oe]=O($[Oe],le+"["+JSON.stringify(Oe)+"]"))}return Ue;case"number":case"string":case"boolean":return $}}(k,"$")}function pe(k){try{return JSON.stringify(k)}catch{return JSON.stringify(te(k))}}class xe{constructor(){this.globalLog=m=>{window.console&&window.console.log&&window.console.log(m)}}debug(...m){this.log(this.globalLog,m)}warn(...m){this.log(this.globalLogWarn,m)}error(...m){this.log(this.globalLogError,m)}globalLogWarn(m){window.console&&window.console.warn?window.console.warn(m):this.globalLog(m)}globalLogError(m){window.console&&window.console.error?window.console.error(m):this.globalLogWarn(m)}log(m,...w){var O=N.apply(this,arguments);_u.log?_u.log(O):_u.logToConsole&&m.bind(this)(O)}}var Te=new xe,Se=function(k,m,w,O,$){(w.headers!==void 0||w.headersProvider!=null)&&Te.warn(`To send headers with the ${O.toString()} request, you must use AJAX, rather than JSONP.`);var le=k.nextAuthCallbackID.toString();k.nextAuthCallbackID++;var be=k.getDocument(),Oe=be.createElement("script");k.auth_callbacks[le]=function(it){$(null,it)};var Ue="Pusher.auth_callbacks['"+le+"']";Oe.src=w.endpoint+"?callback="+encodeURIComponent(Ue)+"&"+m;var nt=be.getElementsByTagName("head")[0]||be.documentElement;nt.insertBefore(Oe,nt.firstChild)},ot=Se;class Ge{constructor(m){this.src=m}send(m){var w=this,O="Error loading "+w.src;w.script=document.createElement("script"),w.script.id=m.id,w.script.src=w.src,w.script.type="text/javascript",w.script.charset="UTF-8",w.script.addEventListener?(w.script.onerror=function(){m.callback(O)},w.script.onload=function(){m.callback(null)}):w.script.onreadystatechange=function(){(w.script.readyState==="loaded"||w.script.readyState==="complete")&&m.callback(null)},w.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(w.errorScript=document.createElement("script"),w.errorScript.id=m.id+"_error",w.errorScript.text=m.name+"('"+O+"');",w.script.async=w.errorScript.async=!1):w.script.async=!0;var $=document.getElementsByTagName("head")[0];$.insertBefore(w.script,$.firstChild),w.errorScript&&$.insertBefore(w.errorScript,w.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 mn{constructor(m,w){this.url=m,this.data=w}send(m){if(!this.request){var w=G(this.data),O=this.url+"/"+m.number+"?"+w;this.request=We.createScriptRequest(O),this.request.send(m)}}cleanup(){this.request&&this.request.cleanup()}}var xn=function(k,m){return function(w,O){var $="http"+(m?"s":"")+"://",le=$+(k.host||k.options.host)+k.options.path,be=We.createJSONPRequest(le,w),Oe=We.ScriptReceivers.create(function(Ue,nt){s.remove(Oe),be.cleanup(),nt&&nt.host&&(k.host=nt.host),O&&O(Ue,nt)});be.send(Oe)}},hn={name:"jsonp",getAgent:xn},zt=hn;function Gt(k,m,w){var O=k+(m.useTLS?"s":""),$=m.useTLS?m.hostTLS:m.hostNonTLS;return O+"://"+$+w}function ne(k,m){var w="/app/"+k,O="?protocol="+c.PROTOCOL+"&client=js&version="+c.VERSION+(m?"&"+m:"");return w+O}var ke={getInitial:function(k,m){var w=(m.httpPath||"")+ne(k,"flash=false");return Gt("ws",m,w)}},Ie={getInitial:function(k,m){var w=(m.httpPath||"/pusher")+ne(k);return Gt("http",m,w)}},W={getInitial:function(k,m){return Gt("http",m,m.httpPath||"/pusher")},getPath:function(k,m){return ne(k)}};class re{constructor(){this._callbacks={}}get(m){return this._callbacks[we(m)]}add(m,w,O){var $=we(m);this._callbacks[$]=this._callbacks[$]||[],this._callbacks[$].push({fn:w,context:O})}remove(m,w,O){if(!m&&!w&&!O){this._callbacks={};return}var $=m?[we(m)]:Fe(this._callbacks);w||O?this.removeCallback($,w,O):this.removeAllCallbacks($)}removeCallback(m,w,O){se(m,function($){this._callbacks[$]=R(this._callbacks[$]||[],function(le){return w&&w!==le.fn||O&&O!==le.context}),this._callbacks[$].length===0&&delete this._callbacks[$]},this)}removeAllCallbacks(m){se(m,function(w){delete this._callbacks[w]},this)}}function we(k){return"_"+k}class Q{constructor(m){this.callbacks=new re,this.global_callbacks=[],this.failThrough=m}bind(m,w,O){return this.callbacks.add(m,w,O),this}bind_global(m){return this.global_callbacks.push(m),this}unbind(m,w,O){return this.callbacks.remove(m,w,O),this}unbind_global(m){return m?(this.global_callbacks=R(this.global_callbacks||[],w=>w!==m),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(m,w,O){for(var $=0;$<this.global_callbacks.length;$++)this.global_callbacks[$](m,w);var le=this.callbacks.get(m),be=[];if(O?be.push(w,O):w&&be.push(w),le&&le.length>0)for(var $=0;$<le.length;$++)le[$].fn.apply(le[$].context||window,be);else this.failThrough&&this.failThrough(m,w);return this}}class he extends Q{constructor(m,w,O,$,le){super(),this.initialize=We.transportConnectionInitializer,this.hooks=m,this.name=w,this.priority=O,this.key=$,this.options=le,this.state="new",this.timeline=le.timeline,this.activityTimeout=le.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 m=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(m,this.options)}catch(w){return L.defer(()=>{this.onError(w),this.changeState("closed")}),!1}return this.bindListeners(),Te.debug("Connecting",{transport:this.name,url:m}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(m){return this.state==="open"?(L.defer(()=>{this.socket&&this.socket.send(m)}),!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(m){this.emit("error",{type:"WebSocketError",error:m}),this.timeline.error(this.buildTimelineMessage({error:m.toString()}))}onClose(m){m?this.changeState("closed",{code:m.code,reason:m.reason,wasClean:m.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(m){this.emit("message",m)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=m=>{this.onError(m)},this.socket.onclose=m=>{this.onClose(m)},this.socket.onmessage=m=>{this.onMessage(m)},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(m,w){this.state=m,this.timeline.info(this.buildTimelineMessage({state:m,params:w})),this.emit(m,w)}buildTimelineMessage(m){return F({cid:this.id},m)}}class Ce{constructor(m){this.hooks=m}isSupported(m){return this.hooks.isSupported(m)}createConnection(m,w,O,$){return new he(this.hooks,m,w,O,$)}}var at=new Ce({urls:ke,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!We.getWebSocketAPI()},isSupported:function(){return!!We.getWebSocketAPI()},getSocket:function(k){return We.createWebSocket(k)}}),ut={urls:Ie,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},dt=F({getSocket:function(k){return We.HTTPFactory.createStreamingSocket(k)}},ut),Et=F({getSocket:function(k){return We.HTTPFactory.createPollingSocket(k)}},ut),Rt={isSupported:function(){return We.isXHRSupported()}},an=new Ce(F({},dt,Rt)),vn=new Ce(F({},Et,Rt)),Vi={ws:at,xhr_streaming:an,xhr_polling:vn},Gn=Vi,Fi=new Ce({file:"sockjs",urls:W,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(k,m){return new window.SockJS(k,null,{js_path:f.getPath("sockjs",{useTLS:m.useTLS}),ignore_null_origin:m.ignoreNullOrigin})},beforeOpen:function(k,m){k.send(JSON.stringify({path:m}))}}),Io={isSupported:function(k){var m=We.isXDRSupported(k.useTLS);return m}},Ao=new Ce(F({},dt,Io)),Ae=new Ce(F({},Et,Io));Gn.xdr_streaming=Ao,Gn.xdr_polling=Ae,Gn.sockjs=Fi;var Qt=Gn;class Me extends Q{constructor(){super();var m=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){m.emit("online")},!1),window.addEventListener("offline",function(){m.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var It=new Me;class mt{constructor(m,w,O){this.manager=m,this.transport=w,this.minPingDelay=O.minPingDelay,this.maxPingDelay=O.maxPingDelay,this.pingDelay=void 0}createConnection(m,w,O,$){$=F({},$,{activityTimeout:this.pingDelay});var le=this.transport.createConnection(m,w,O,$),be=null,Oe=function(){le.unbind("open",Oe),le.bind("closed",Ue),be=L.now()},Ue=nt=>{if(le.unbind("closed",Ue),nt.code===1002||nt.code===1003)this.manager.reportDeath();else if(!nt.wasClean&&be){var it=L.now()-be;it<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(it/2,this.minPingDelay))}};return le.bind("open",Oe),le}isSupported(m){return this.manager.isAlive()&&this.transport.isSupported(m)}}const ca={decodeMessage:function(k){try{var m=JSON.parse(k.data),w=m.data;if(typeof w=="string")try{w=JSON.parse(m.data)}catch{}var O={event:m.event,channel:m.channel,data:w};return m.user_id&&(O.user_id=m.user_id),O}catch($){throw{type:"MessageParseError",error:$,data:k.data}}},encodeMessage:function(k){return JSON.stringify(k)},processHandshake:function(k){var m=ca.decodeMessage(k);if(m.event==="pusher:connection_established"){if(!m.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:m.data.socket_id,activityTimeout:m.data.activity_timeout*1e3}}else{if(m.event==="pusher:error")return{action:this.getCloseAction(m.data),error:this.getCloseError(m.data)};throw"Invalid handshake"}},getCloseAction:function(k){return k.code<4e3?k.code>=1002&&k.code<=1004?"backoff":null:k.code===4e3?"tls_only":k.code<4100?"refused":k.code<4200?"backoff":k.code<4300?"retry":"refused"},getCloseError:function(k){return k.code!==1e3&&k.code!==1001?{type:"PusherError",data:{code:k.code,message:k.reason||k.message}}:null}};var gn=ca;class Mo extends Q{constructor(m,w){super(),this.id=m,this.transport=w,this.activityTimeout=w.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(m){return this.transport.send(m)}send_event(m,w,O){var $={event:m,data:w};return O&&($.channel=O),Te.debug("Event sent",$),this.send(gn.encodeMessage($))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var m={message:O=>{var $;try{$=gn.decodeMessage(O)}catch(le){this.emit("error",{type:"MessageParseError",error:le,data:O.data})}if($!==void 0){switch(Te.debug("Event recd",$),$.event){case"pusher:error":this.emit("error",{type:"PusherError",data:$.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",$)}},activity:()=>{this.emit("activity")},error:O=>{this.emit("error",O)},closed:O=>{w(),O&&O.code&&this.handleCloseEvent(O),this.transport=null,this.emit("closed")}},w=()=>{ge(m,(O,$)=>{this.transport.unbind($,O)})};ge(m,(O,$)=>{this.transport.bind($,O)})}handleCloseEvent(m){var w=gn.getCloseAction(m),O=gn.getCloseError(m);O&&this.emit("error",O),w&&this.emit(w,{action:w,error:O})}}class Oo{constructor(m,w){this.transport=m,this.callback=w,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=m=>{this.unbindListeners();var w;try{w=gn.processHandshake(m)}catch(O){this.finish("error",{error:O}),this.transport.close();return}w.action==="connected"?this.finish("connected",{connection:new Mo(w.id,this.transport),activityTimeout:w.activityTimeout}):(this.finish(w.action,{error:w.error}),this.transport.close())},this.onClosed=m=>{this.unbindListeners();var w=gn.getCloseAction(m)||"backoff",O=gn.getCloseError(m);this.finish(w,{error:O})},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(m,w){this.callback(F({transport:this.transport,action:m},w))}}class ji{constructor(m,w){this.timeline=m,this.options=w||{}}send(m,w){this.timeline.isEmpty()||this.timeline.send(We.TimelineTransport.getAgent(this,m),w)}}class Hi extends Q{constructor(m,w){super(function(O,$){Te.debug("No callbacks on "+m+" for "+O)}),this.name=m,this.pusher=w,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(m,w){return w(null,{auth:""})}trigger(m,w){if(m.indexOf("client-")!==0)throw new C("Event '"+m+"' does not start with 'client-'");if(!this.subscribed){var O=v.buildLogSuffix("triggeringClientEvents");Te.warn(`Client event triggered before channel 'subscription_succeeded' event . ${O}`)}return this.pusher.send_event(m,w,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(m){var w=m.event,O=m.data;if(w==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(m);else if(w==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(m);else if(w.indexOf("pusher_internal:")!==0){var $={};this.emit(w,O,$)}}handleSubscriptionSucceededEvent(m){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",m.data)}handleSubscriptionCountEvent(m){m.data.subscription_count&&(this.subscriptionCount=m.data.subscription_count),this.emit("pusher:subscription_count",m.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(m,w)=>{m?(this.subscriptionPending=!1,Te.error(m.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:m.message},m instanceof A?{status:m.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:w.auth,channel_data:w.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 ua extends Hi{authorize(m,w){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:m},w)}}class el{constructor(){this.reset()}get(m){return Object.prototype.hasOwnProperty.call(this.members,m)?{id:m,info:this.members[m]}:null}each(m){ge(this.members,(w,O)=>{m(this.get(O))})}setMyID(m){this.myID=m}onSubscription(m){this.members=m.presence.hash,this.count=m.presence.count,this.me=this.get(this.myID)}addMember(m){return this.get(m.user_id)===null&&this.count++,this.members[m.user_id]=m.user_info,this.get(m.user_id)}removeMember(m){var w=this.get(m.user_id);return w&&(delete this.members[m.user_id],this.count--),w}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var X=function(k,m,w,O){function $(le){return le instanceof w?le:new w(function(be){be(le)})}return new(w||(w=Promise))(function(le,be){function Oe(it){try{nt(O.next(it))}catch(Lt){be(Lt)}}function Ue(it){try{nt(O.throw(it))}catch(Lt){be(Lt)}}function nt(it){it.done?le(it.value):$(it.value).then(Oe,Ue)}nt((O=O.apply(k,m||[])).next())})};class ye extends ua{constructor(m,w){super(m,w),this.members=new el}authorize(m,w){super.authorize(m,(O,$)=>X(this,void 0,void 0,function*(){if(!O)if($=$,$.channel_data!=null){var le=JSON.parse($.channel_data);this.members.setMyID(le.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 be=v.buildLogSuffix("authorizationEndpoint");Te.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${be}, or the user should be signed in.`),w("Invalid auth response");return}w(O,$)}))}handleEvent(m){var w=m.event;if(w.indexOf("pusher_internal:")===0)this.handleInternalEvent(m);else{var O=m.data,$={};m.user_id&&($.user_id=m.user_id),this.emit(w,O,$)}}handleInternalEvent(m){var w=m.event,O=m.data;switch(w){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(m);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(m);break;case"pusher_internal:member_added":var $=this.members.addMember(O);this.emit("pusher:member_added",$);break;case"pusher_internal:member_removed":var le=this.members.removeMember(O);le&&this.emit("pusher:member_removed",le);break}}handleSubscriptionSucceededEvent(m){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(m.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var Xe=o(1),gt=o(0);class Vr extends ua{constructor(m,w,O){super(m,w),this.key=null,this.nacl=O}authorize(m,w){super.authorize(m,(O,$)=>{if(O){w(O,$);return}let le=$.shared_secret;if(!le){w(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=Object(gt.decode)(le),delete $.shared_secret,w(null,$)})}trigger(m,w){throw new T("Client events are not currently supported for encrypted channels")}handleEvent(m){var w=m.event,O=m.data;if(w.indexOf("pusher_internal:")===0||w.indexOf("pusher:")===0){super.handleEvent(m);return}this.handleEncryptedEvent(w,O)}handleEncryptedEvent(m,w){if(!this.key){Te.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!w.ciphertext||!w.nonce){Te.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+w);return}let O=Object(gt.decode)(w.ciphertext);if(O.length<this.nacl.secretbox.overheadLength){Te.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${O.length}`);return}let $=Object(gt.decode)(w.nonce);if($.length<this.nacl.secretbox.nonceLength){Te.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${$.length}`);return}let le=this.nacl.secretbox.open(O,$,this.key);if(le===null){Te.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,(be,Oe)=>{if(be){Te.error(`Failed to make a request to the authEndpoint: ${Oe}. Unable to fetch new key, so dropping encrypted event`);return}if(le=this.nacl.secretbox.open(O,$,this.key),le===null){Te.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(m,this.getDataToEmit(le))});return}this.emit(m,this.getDataToEmit(le))}getDataToEmit(m){let w=Object(Xe.decode)(m);try{return JSON.parse(w)}catch{return w}}}class tl extends Q{constructor(m,w){super(),this.state="initialized",this.connection=null,this.key=m,this.options=w,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 O=We.getNetwork();O.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),O.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}switchCluster(m){this.key=m,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(m){return this.connection?this.connection.send(m):!1}send_event(m,w,O){return this.connection?this.connection.send_event(m,w,O):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var m=(w,O)=>{w?this.runner=this.strategy.connect(0,m):O.action==="error"?(this.emit("error",{type:"HandshakeError",error:O.error}),this.timeline.error({handshakeError:O.error})):(this.abortConnecting(),this.handshakeCallbacks[O.action](O))};this.runner=this.strategy.connect(0,m)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var m=this.abandonConnection();m.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(m){this.timeline.info({action:"retry",delay:m}),m>0&&this.emit("connecting_in",Math.round(m/1e3)),this.retryTimer=new Z(m||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new Z(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new Z(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 Z(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(m){return F({},m,{message:w=>{this.resetActivityCheck(),this.emit("message",w)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:w=>{this.emit("error",w)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(m){return F({},m,{connected:w=>{this.activityTimeout=Math.min(this.options.activityTimeout,w.activityTimeout,w.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(w.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let m=w=>O=>{O.error&&this.emit("error",{type:"WebSocketError",error:O.error}),w(O)};return{tls_only:m(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:m(()=>{this.disconnect()}),backoff:m(()=>{this.retryIn(1e3)}),retry:m(()=>{this.retryIn(0)})}}setConnection(m){this.connection=m;for(var w in this.connectionCallbacks)this.connection.bind(w,this.connectionCallbacks[w]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var m in this.connectionCallbacks)this.connection.unbind(m,this.connectionCallbacks[m]);var w=this.connection;return this.connection=null,w}}updateState(m,w){var O=this.state;if(this.state=m,O!==m){var $=m;$==="connected"&&($+=" with new socket ID "+w.socket_id),Te.debug("State changed",O+" -> "+$),this.timeline.info({state:m,params:w}),this.emit("state_change",{previous:O,current:m}),this.emit(m,w)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class Mm{constructor(){this.channels={}}add(m,w){return this.channels[m]||(this.channels[m]=gu(m,w)),this.channels[m]}all(){return ee(this.channels)}find(m){return this.channels[m]}remove(m){var w=this.channels[m];return delete this.channels[m],w}disconnect(){ge(this.channels,function(m){m.disconnect()})}}function gu(k,m){if(k.indexOf("private-encrypted-")===0){if(m.config.nacl)return Fr.createEncryptedChannel(k,m,m.config.nacl);let w="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",O=v.buildLogSuffix("encryptedChannelSupport");throw new T(`${w}. ${O}`)}else{if(k.indexOf("private-")===0)return Fr.createPrivateChannel(k,m);if(k.indexOf("presence-")===0)return Fr.createPresenceChannel(k,m);if(k.indexOf("#")===0)throw new g('Cannot create a channel with name "'+k+'".');return Fr.createChannel(k,m)}}var nl={createChannels(){return new Mm},createConnectionManager(k,m){return new tl(k,m)},createChannel(k,m){return new Hi(k,m)},createPrivateChannel(k,m){return new ua(k,m)},createPresenceChannel(k,m){return new ye(k,m)},createEncryptedChannel(k,m,w){return new Vr(k,m,w)},createTimelineSender(k,m){return new ji(k,m)},createHandshake(k,m){return new Oo(k,m)},createAssistantToTheTransportManager(k,m,w){return new mt(k,m,w)}},Fr=nl;class Om{constructor(m){this.options=m||{},this.livesLeft=this.options.lives||1/0}getAssistant(m){return Fr.createAssistantToTheTransportManager(this,m,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class Ua{constructor(m,w){this.strategies=m,this.loop=!!w.loop,this.failFast=!!w.failFast,this.timeout=w.timeout,this.timeoutLimit=w.timeoutLimit}isSupported(){return ue(this.strategies,L.method("isSupported"))}connect(m,w){var O=this.strategies,$=0,le=this.timeout,be=null,Oe=(Ue,nt)=>{nt?w(null,nt):($=$+1,this.loop&&($=$%O.length),$<O.length?(le&&(le=le*2,this.timeoutLimit&&(le=Math.min(le,this.timeoutLimit))),be=this.tryStrategy(O[$],m,{timeout:le,failFast:this.failFast},Oe)):w(!0))};return be=this.tryStrategy(O[$],m,{timeout:le,failFast:this.failFast},Oe),{abort:function(){be.abort()},forceMinPriority:function(Ue){m=Ue,be&&be.forceMinPriority(Ue)}}}tryStrategy(m,w,O,$){var le=null,be=null;return O.timeout>0&&(le=new Z(O.timeout,function(){be.abort(),$(!0)})),be=m.connect(w,function(Oe,Ue){Oe&&le&&le.isRunning()&&!O.failFast||(le&&le.ensureAborted(),$(Oe,Ue))}),{abort:function(){le&&le.ensureAborted(),be.abort()},forceMinPriority:function(Oe){be.forceMinPriority(Oe)}}}}class yu{constructor(m){this.strategies=m}isSupported(){return ue(this.strategies,L.method("isSupported"))}connect(m,w){return m4(this.strategies,m,function(O,$){return function(le,be){if($[O].error=le,le){h4($)&&w(!0);return}se($,function(Oe){Oe.forceMinPriority(be.transport.priority)}),w(null,be)}})}}function m4(k,m,w){var O=ae(k,function($,le,be,Oe){return $.connect(m,w(le,Oe))});return{abort:function(){se(O,v4)},forceMinPriority:function($){se(O,function(le){le.forceMinPriority($)})}}}function h4(k){return Ne(k,function(m){return!!m.error})}function v4(k){!k.error&&!k.aborted&&(k.abort(),k.aborted=!0)}class g4{constructor(m,w,O){this.strategy=m,this.transports=w,this.ttl=O.ttl||1800*1e3,this.usingTLS=O.useTLS,this.timeline=O.timeline}isSupported(){return this.strategy.isSupported()}connect(m,w){var O=this.usingTLS,$=y4(O),le=$&&$.cacheSkipCount?$.cacheSkipCount:0,be=[this.strategy];if($&&$.timestamp+this.ttl>=L.now()){var Oe=this.transports[$.transport];Oe&&(["ws","wss"].includes($.transport)||le>3?(this.timeline.info({cached:!0,transport:$.transport,latency:$.latency}),be.push(new Ua([Oe],{timeout:$.latency*2+1e3,failFast:!0}))):le++)}var Ue=L.now(),nt=be.pop().connect(m,function it(Lt,ol){Lt?(Nm(O),be.length>0?(Ue=L.now(),nt=be.pop().connect(m,it)):w(Lt)):(b4(O,ol.transport.name,L.now()-Ue,le),w(null,ol))});return{abort:function(){nt.abort()},forceMinPriority:function(it){m=it,nt&&nt.forceMinPriority(it)}}}}function bu(k){return"pusherTransport"+(k?"TLS":"NonTLS")}function y4(k){var m=We.getLocalStorage();if(m)try{var w=m[bu(k)];if(w)return JSON.parse(w)}catch{Nm(k)}return null}function b4(k,m,w,O){var $=We.getLocalStorage();if($)try{$[bu(k)]=pe({timestamp:L.now(),transport:m,latency:w,cacheSkipCount:O})}catch{}}function Nm(k){var m=We.getLocalStorage();if(m)try{delete m[bu(k)]}catch{}}class rl{constructor(m,{delay:w}){this.strategy=m,this.options={delay:w}}isSupported(){return this.strategy.isSupported()}connect(m,w){var O=this.strategy,$,le=new Z(this.options.delay,function(){$=O.connect(m,w)});return{abort:function(){le.ensureAborted(),$&&$.abort()},forceMinPriority:function(be){m=be,$&&$.forceMinPriority(be)}}}}class Ui{constructor(m,w,O){this.test=m,this.trueBranch=w,this.falseBranch=O}isSupported(){var m=this.test()?this.trueBranch:this.falseBranch;return m.isSupported()}connect(m,w){var O=this.test()?this.trueBranch:this.falseBranch;return O.connect(m,w)}}class w4{constructor(m){this.strategy=m}isSupported(){return this.strategy.isSupported()}connect(m,w){var O=this.strategy.connect(m,function($,le){le&&O.abort(),w($,le)});return O}}function Wi(k){return function(){return k.isSupported()}}var k4=function(k,m,w){var O={};function $(qm,b3,w3,k3,_3){var Ym=w(k,qm,b3,w3,k3,_3);return O[qm]=Ym,Ym}var le=Object.assign({},m,{hostNonTLS:k.wsHost+":"+k.wsPort,hostTLS:k.wsHost+":"+k.wssPort,httpPath:k.wsPath}),be=Object.assign({},le,{useTLS:!0}),Oe=Object.assign({},m,{hostNonTLS:k.httpHost+":"+k.httpPort,hostTLS:k.httpHost+":"+k.httpsPort,httpPath:k.httpPath}),Ue={loop:!0,timeout:15e3,timeoutLimit:6e4},nt=new Om({minPingDelay:1e4,maxPingDelay:k.activityTimeout}),it=new Om({lives:2,minPingDelay:1e4,maxPingDelay:k.activityTimeout}),Lt=$("ws","ws",3,le,nt),ol=$("wss","ws",3,be,nt),m3=$("sockjs","sockjs",1,Oe),Vm=$("xhr_streaming","xhr_streaming",1,Oe,it),h3=$("xdr_streaming","xdr_streaming",1,Oe,it),Fm=$("xhr_polling","xhr_polling",1,Oe),v3=$("xdr_polling","xdr_polling",1,Oe),jm=new Ua([Lt],Ue),g3=new Ua([ol],Ue),y3=new Ua([m3],Ue),Hm=new Ua([new Ui(Wi(Vm),Vm,h3)],Ue),Um=new Ua([new Ui(Wi(Fm),Fm,v3)],Ue),Wm=new Ua([new Ui(Wi(Hm),new yu([Hm,new rl(Um,{delay:4e3})]),Um)],Ue),Cu=new Ui(Wi(Wm),Wm,y3),Su;return m.useTLS?Su=new yu([jm,new rl(Cu,{delay:2e3})]):Su=new yu([jm,new rl(g3,{delay:2e3}),new rl(Cu,{delay:5e3})]),new g4(new w4(new Ui(Wi(Lt),Su,Cu)),O,{ttl:18e5,timeline:m.timeline,useTLS:m.useTLS})},_4=k4,C4=function(){var k=this;k.timeline.info(k.buildTimelineMessage({transport:k.name+(k.options.useTLS?"s":"")})),k.hooks.isInitialized()?k.changeState("initialized"):k.hooks.file?(k.changeState("initializing"),f.load(k.hooks.file,{useTLS:k.options.useTLS},function(m,w){k.hooks.isInitialized()?(k.changeState("initialized"),w(!0)):(m&&k.onError(m),k.onClose(),w(!1))})):k.onClose()},S4={getRequest:function(k){var m=new window.XDomainRequest;return m.ontimeout=function(){k.emit("error",new S),k.close()},m.onerror=function(w){k.emit("error",w),k.close()},m.onprogress=function(){m.responseText&&m.responseText.length>0&&k.onChunk(200,m.responseText)},m.onload=function(){m.responseText&&m.responseText.length>0&&k.onChunk(200,m.responseText),k.emit("finished",200),k.close()},m},abortRequest:function(k){k.ontimeout=k.onerror=k.onprogress=k.onload=null,k.abort()}},E4=S4;const x4=256*1024;class T4 extends Q{constructor(m,w,O){super(),this.hooks=m,this.method=w,this.url=O}start(m){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},We.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(m)}close(){this.unloader&&(We.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(m,w){for(;;){var O=this.advanceBuffer(w);if(O)this.emit("chunk",{status:m,data:O});else break}this.isBufferTooLong(w)&&this.emit("buffer_too_long")}advanceBuffer(m){var w=m.slice(this.position),O=w.indexOf(`
633
633
  `);return O!==-1?(this.position+=O+1,w.slice(0,O)):null}isBufferTooLong(m){return this.position===m.length&&m.length>x4}}var wu;(function(k){k[k.CONNECTING=0]="CONNECTING",k[k.OPEN=1]="OPEN",k[k.CLOSED=3]="CLOSED"})(wu||(wu={}));var Wa=wu,P4=1;class I4{constructor(m,w){this.hooks=m,this.session=Dm(1e3)+"/"+N4(8),this.location=A4(w),this.readyState=Wa.CONNECTING,this.openStream()}send(m){return this.sendRaw(JSON.stringify([m]))}ping(){this.hooks.sendHeartbeat(this)}close(m,w){this.onClose(m,w,!0)}sendRaw(m){if(this.readyState===Wa.OPEN)try{return We.createSocketRequest("POST",Bm(M4(this.location,this.session))).start(m),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(m,w,O){this.closeStream(),this.readyState=Wa.CLOSED,this.onclose&&this.onclose({code:m,reason:w,wasClean:O})}onChunk(m){if(m.status===200){this.readyState===Wa.OPEN&&this.onActivity();var w,O=m.data.slice(0,1);switch(O){case"o":w=JSON.parse(m.data.slice(1)||"{}"),this.onOpen(w);break;case"a":w=JSON.parse(m.data.slice(1)||"[]");for(var $=0;$<w.length;$++)this.onEvent(w[$]);break;case"m":w=JSON.parse(m.data.slice(1)||"null"),this.onEvent(w);break;case"h":this.hooks.onHeartbeat(this);break;case"c":w=JSON.parse(m.data.slice(1)||"[]"),this.onClose(w[0],w[1],!0);break}}}onOpen(m){this.readyState===Wa.CONNECTING?(m&&m.hostname&&(this.location.base=O4(this.location.base,m.hostname)),this.readyState=Wa.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(m){this.readyState===Wa.OPEN&&this.onmessage&&this.onmessage({data:m})}onActivity(){this.onactivity&&this.onactivity()}onError(m){this.onerror&&this.onerror(m)}openStream(){this.stream=We.createSocketRequest("POST",Bm(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",m=>{this.onChunk(m)}),this.stream.bind("finished",m=>{this.hooks.onFinished(this,m)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(m){L.defer(()=>{this.onError(m),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function A4(k){var m=/([^\?]*)\/*(\??.*)/.exec(k);return{base:m[1],queryString:m[2]}}function M4(k,m){return k.base+"/"+m+"/xhr_send"}function Bm(k){var m=k.indexOf("?")===-1?"?":"&";return k+m+"t="+ +new Date+"&n="+P4++}function O4(k,m){var w=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(k);return w[1]+m+w[3]}function Dm(k){return We.randomInt(k)}function N4(k){for(var m=[],w=0;w<k;w++)m.push(Dm(32).toString(32));return m.join("")}var B4=I4,D4={getReceiveURL:function(k,m){return k.base+"/"+m+"/xhr_streaming"+k.queryString},onHeartbeat:function(k){k.sendRaw("[]")},sendHeartbeat:function(k){k.sendRaw("[]")},onFinished:function(k,m){k.onClose(1006,"Connection interrupted ("+m+")",!1)}},R4=D4,L4={getReceiveURL:function(k,m){return k.base+"/"+m+"/xhr"+k.queryString},onHeartbeat:function(){},sendHeartbeat:function(k){k.sendRaw("[]")},onFinished:function(k,m){m===200?k.reconnect():k.onClose(1006,"Connection interrupted ("+m+")",!1)}},$4=L4,z4={getRequest:function(k){var m=We.getXHRAPI(),w=new m;return w.onreadystatechange=w.onprogress=function(){switch(w.readyState){case 3:w.responseText&&w.responseText.length>0&&k.onChunk(w.status,w.responseText);break;case 4:w.responseText&&w.responseText.length>0&&k.onChunk(w.status,w.responseText),k.emit("finished",w.status),k.close();break}},w},abortRequest:function(k){k.onreadystatechange=null,k.abort()}},V4=z4,F4={createStreamingSocket(k){return this.createSocket(R4,k)},createPollingSocket(k){return this.createSocket($4,k)},createSocket(k,m){return new B4(k,m)},createXHR(k,m){return this.createRequest(V4,k,m)},createRequest(k,m,w){return new T4(k,m,w)}},Rm=F4;Rm.createXDR=function(k,m){return this.createRequest(E4,k,m)};var j4=Rm,H4={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:s,DependenciesReceivers:u,getDefaultStrategy:_4,Transports:Qt,transportConnectionInitializer:C4,HTTPFactory:j4,TimelineTransport:zt,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(k){window.Pusher=k;var m=()=>{this.onDocumentBody(k.ready)};window.JSON?m():f.load("json2",{},m)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:M,jsonp:ot}},onDocumentBody(k){document.body?k():setTimeout(()=>{this.onDocumentBody(k)},0)},createJSONPRequest(k,m){return new mn(k,m)},createScriptRequest(k){return new Ge(k)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var k=this.getXHRAPI();return new k},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return It},createWebSocket(k){var m=this.getWebSocketAPI();return new m(k)},createSocketRequest(k,m){if(this.isXHRSupported())return this.HTTPFactory.createXHR(k,m);if(this.isXDRSupported(m.indexOf("https:")===0))return this.HTTPFactory.createXDR(k,m);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var k=this.getXHRAPI();return!!k&&new k().withCredentials!==void 0},isXDRSupported(k){var m=k?"https:":"http:",w=this.getProtocol();return!!window.XDomainRequest&&w===m},addUnloadListener(k){window.addEventListener!==void 0?window.addEventListener("unload",k,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",k)},removeUnloadListener(k){window.addEventListener!==void 0?window.removeEventListener("unload",k,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",k)},randomInt(k){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*k)}},We=H4,ku;(function(k){k[k.ERROR=3]="ERROR",k[k.INFO=6]="INFO",k[k.DEBUG=7]="DEBUG"})(ku||(ku={}));var al=ku;class U4{constructor(m,w,O){this.key=m,this.session=w,this.events=[],this.options=O||{},this.sent=0,this.uniqueID=0}log(m,w){m<=this.options.level&&(this.events.push(F({},w,{timestamp:L.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(m){this.log(al.ERROR,m)}info(m){this.log(al.INFO,m)}debug(m){this.log(al.DEBUG,m)}isEmpty(){return this.events.length===0}send(m,w){var O=F({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=[],m(O,($,le)=>{$||this.sent++,w&&w($,le)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class W4{constructor(m,w,O,$){this.name=m,this.priority=w,this.transport=O,this.options=$||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(m,w){if(this.isSupported()){if(this.priority<m)return Lm(new _,w)}else return Lm(new x,w);var O=!1,$=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),le=null,be=function(){$.unbind("initialized",be),$.connect()},Oe=function(){le=Fr.createHandshake($,function(Lt){O=!0,it(),w(null,Lt)})},Ue=function(Lt){it(),w(Lt)},nt=function(){it();var Lt;Lt=pe($),w(new b(Lt))},it=function(){$.unbind("initialized",be),$.unbind("open",Oe),$.unbind("error",Ue),$.unbind("closed",nt)};return $.bind("initialized",be),$.bind("open",Oe),$.bind("error",Ue),$.bind("closed",nt),$.initialize(),{abort:()=>{O||(it(),le?le.close():$.close())},forceMinPriority:Lt=>{O||this.priority<Lt&&(le?le.close():$.close())}}}}function Lm(k,m){return L.defer(function(){m(k)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:q4}=We;var Y4=function(k,m,w,O,$,le){var be=q4[w];if(!be)throw new E(w);var Oe=(!k.enabledTransports||ce(k.enabledTransports,m)!==-1)&&(!k.disabledTransports||ce(k.disabledTransports,m)===-1),Ue;return Oe?($=Object.assign({ignoreNullOrigin:k.ignoreNullOrigin},$),Ue=new W4(m,O,le?le.getAssistant(be):be,$)):Ue=G4,Ue},G4={isSupported:function(){return!1},connect:function(k,m){var w=L.defer(function(){m(new x)});return{abort:function(){w.ensureAborted()},forceMinPriority:function(){}}}};function X4(k){if(k==null)throw"You must pass an options object";if(k.cluster==null)throw"Options object must provide a cluster";"disableStats"in k&&Te.warn("The disableStats option is deprecated in favor of enableStats")}const K4=(k,m)=>{var w="socket_id="+encodeURIComponent(k.socketId);for(var O in m.params)w+="&"+encodeURIComponent(O)+"="+encodeURIComponent(m.params[O]);if(m.paramsProvider!=null){let $=m.paramsProvider();for(var O in $)w+="&"+encodeURIComponent(O)+"="+encodeURIComponent($[O])}return w};var J4=k=>{if(typeof We.getAuthorizers()[k.transport]>"u")throw`'${k.transport}' is not a recognized auth transport`;return(m,w)=>{const O=K4(m,k);We.getAuthorizers()[k.transport](We,O,k,y.UserAuthentication,w)}};const Q4=(k,m)=>{var w="socket_id="+encodeURIComponent(k.socketId);w+="&channel_name="+encodeURIComponent(k.channelName);for(var O in m.params)w+="&"+encodeURIComponent(O)+"="+encodeURIComponent(m.params[O]);if(m.paramsProvider!=null){let $=m.paramsProvider();for(var O in $)w+="&"+encodeURIComponent(O)+"="+encodeURIComponent($[O])}return w};var Z4=k=>{if(typeof We.getAuthorizers()[k.transport]>"u")throw`'${k.transport}' is not a recognized auth transport`;return(m,w)=>{const O=Q4(m,k);We.getAuthorizers()[k.transport](We,O,k,y.ChannelAuthorization,w)}};const e3=(k,m,w)=>{const O={authTransport:m.transport,authEndpoint:m.endpoint,auth:{params:m.params,headers:m.headers}};return($,le)=>{const be=k.channel($.channelName);w(be,O).authorize($.socketId,le)}};function $m(k,m){let w={activityTimeout:k.activityTimeout||c.activityTimeout,cluster:k.cluster,httpPath:k.httpPath||c.httpPath,httpPort:k.httpPort||c.httpPort,httpsPort:k.httpsPort||c.httpsPort,pongTimeout:k.pongTimeout||c.pongTimeout,statsHost:k.statsHost||c.stats_host,unavailableTimeout:k.unavailableTimeout||c.unavailableTimeout,wsPath:k.wsPath||c.wsPath,wsPort:k.wsPort||c.wsPort,wssPort:k.wssPort||c.wssPort,enableStats:o3(k),httpHost:t3(k),useTLS:a3(k),wsHost:n3(k),userAuthenticator:i3(k),channelAuthorizer:l3(k,m)};return"disabledTransports"in k&&(w.disabledTransports=k.disabledTransports),"enabledTransports"in k&&(w.enabledTransports=k.enabledTransports),"ignoreNullOrigin"in k&&(w.ignoreNullOrigin=k.ignoreNullOrigin),"timelineParams"in k&&(w.timelineParams=k.timelineParams),"nacl"in k&&(w.nacl=k.nacl),w}function t3(k){return k.httpHost?k.httpHost:k.cluster?`sockjs-${k.cluster}.pusher.com`:c.httpHost}function n3(k){return k.wsHost?k.wsHost:r3(k.cluster)}function r3(k){return`ws-${k}.pusher.com`}function a3(k){return We.getProtocol()==="https:"?!0:k.forceTLS!==!1}function o3(k){return"enableStats"in k?k.enableStats:"disableStats"in k?!k.disableStats:!1}const zm=k=>"customHandler"in k&&k.customHandler!=null;function i3(k){const m=Object.assign(Object.assign({},c.userAuthentication),k.userAuthentication);return zm(m)?m.customHandler:J4(m)}function s3(k,m){let w;if("channelAuthorization"in k)w=Object.assign(Object.assign({},c.channelAuthorization),k.channelAuthorization);else if(w={transport:k.authTransport||c.authTransport,endpoint:k.authEndpoint||c.authEndpoint},"auth"in k&&("params"in k.auth&&(w.params=k.auth.params),"headers"in k.auth&&(w.headers=k.auth.headers)),"authorizer"in k)return{customHandler:e3(m,w,k.authorizer)};return w}function l3(k,m){const w=s3(k,m);return zm(w)?w.customHandler:Z4(w)}class c3 extends Q{constructor(m){super(function(w,O){Te.debug(`No callbacks on watchlist events for ${w}`)}),this.pusher=m,this.bindWatchlistInternalEvent()}handleEvent(m){m.data.events.forEach(w=>{this.emit(w.name,w)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",m=>{var w=m.event;w==="pusher_internal:watchlist_events"&&this.handleEvent(m)})}}function u3(){let k,m;return{promise:new Promise((O,$)=>{k=O,m=$}),resolve:k,reject:m}}var d3=u3;class f3 extends Q{constructor(m){super(function(w,O){Te.debug("No callbacks on user for "+w)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(w,O)=>{if(w){Te.warn(`Error during signin: ${w}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:O.auth,user_data:O.user_data})},this.pusher=m,this.pusher.connection.bind("state_change",({previous:w,current:O})=>{w!=="connected"&&O==="connected"&&this._signin(),w==="connected"&&O!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new c3(m),this.pusher.connection.bind("message",w=>{var O=w.event;O==="pusher:signin_success"&&this._onSigninSuccess(w.data),this.serverToUserChannel&&this.serverToUserChannel.name===w.channel&&this.serverToUserChannel.handleEvent(w)})}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(m){try{this.user_data=JSON.parse(m.user_data)}catch{Te.error(`Failed parsing user data after signin: ${m.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){Te.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const m=w=>{w.subscriptionPending&&w.subscriptionCancelled?w.reinstateSubscription():!w.subscriptionPending&&this.pusher.connection.state==="connected"&&w.subscribe()};this.serverToUserChannel=new Hi(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((w,O)=>{w.indexOf("pusher_internal:")===0||w.indexOf("pusher:")===0||this.emit(w,O)}),m(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:m,resolve:w,reject:O}=d3();m.done=!1;const $=()=>{m.done=!0};m.then($).catch($),this.signinDonePromise=m,this._signinDoneResolve=w}}class Xt{static ready(){Xt.isReady=!0;for(var m=0,w=Xt.instances.length;m<w;m++)Xt.instances[m].connect()}static getClientFeatures(){return Fe(oe({ws:We.Transports.ws},function(m){return m.isSupported({})}))}constructor(m,w){p3(m),X4(w),this.key=m,this.options=w,this.config=$m(this.options,this),this.channels=Fr.createChannels(),this.global_emitter=new Q,this.sessionID=We.randomInt(1e9),this.timeline=new U4(this.key,this.sessionID,{cluster:this.config.cluster,features:Xt.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:al.INFO,version:c.VERSION}),this.config.enableStats&&(this.timelineSender=Fr.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+We.TimelineTransport.name}));var O=$=>We.getDefaultStrategy(this.config,$,Y4);this.connection=Fr.createConnectionManager(this.key,{getStrategy:O,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",$=>{var le=$.event,be=le.indexOf("pusher_internal:")===0;if($.channel){var Oe=this.channel($.channel);Oe&&Oe.handleEvent($)}be||this.global_emitter.emit($.event,$.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",$=>{Te.warn($)}),Xt.instances.push(this),this.timeline.info({instances:Xt.instances.length}),this.user=new f3(this),Xt.isReady&&this.connect()}switchCluster(m){const{appKey:w,cluster:O}=m;this.key=w,this.options=Object.assign(Object.assign({},this.options),{cluster:O}),this.config=$m(this.options,this),this.connection.switchCluster(this.key)}channel(m){return this.channels.find(m)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var m=this.connection.isUsingTLS(),w=this.timelineSender;this.timelineSenderTimer=new K(6e4,function(){w.send(m)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(m,w,O){return this.global_emitter.bind(m,w,O),this}unbind(m,w,O){return this.global_emitter.unbind(m,w,O),this}bind_global(m){return this.global_emitter.bind_global(m),this}unbind_global(m){return this.global_emitter.unbind_global(m),this}unbind_all(m){return this.global_emitter.unbind_all(),this}subscribeAll(){var m;for(m in this.channels.channels)this.channels.channels.hasOwnProperty(m)&&this.subscribe(m)}subscribe(m){var w=this.channels.add(m,this);return w.subscriptionPending&&w.subscriptionCancelled?w.reinstateSubscription():!w.subscriptionPending&&this.connection.state==="connected"&&w.subscribe(),w}unsubscribe(m){var w=this.channels.find(m);w&&w.subscriptionPending?w.cancelSubscription():(w=this.channels.remove(m),w&&w.subscribed&&w.unsubscribe())}send_event(m,w,O){return this.connection.send_event(m,w,O)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}Xt.instances=[],Xt.isReady=!1,Xt.logToConsole=!1,Xt.Runtime=We,Xt.ScriptReceivers=We.ScriptReceivers,Xt.DependenciesReceivers=We.DependenciesReceivers,Xt.auth_callbacks=We.auth_callbacks;var _u=r.default=Xt;function p3(k){if(k==null)throw"You must pass your app key when you instantiate Pusher."}We.setup(Xt)}])})})(o2);var pN=o2.exports;function mN(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 cn={listeners:a.ref([]),echo:null,key:null,authorizer:null,emitter:mN()};function i2(e="unique"){var t;return cn.listeners.value.some(n=>n.name===e)||(t=cn.listeners.value)==null||t.push({name:e,isListening:a.ref(!1)}),cn.listeners.value.find(n=>n.name===e)}function s2(e,t){cn.echo=new fN({broadcaster:"pusher",client:pN.ConnectionManager,key:e,authorizer:t,cluster:"eu",forceTLS:!0,encrypted:!0})}function hN(e=null){const t=i2(e??void 0);function n(o,i,s,l=!0){if(cn.echo===null)throw new Error("Echo is not initialized");const c=`${o}.${i}`,d=cn.emitter.all.has(c);t&&(t.isListening=!0),d||(l?cn.echo.private(o):cn.echo.channel(o)).listen(`.${i}`,f=>{cn.emitter.emit(c,f)}),cn.emitter.on(c,async u=>{const f=await s(u)??!1;t&&(t.isListening=!1),f&&r(o,i)})}function r(o,i){if(cn.echo===null)throw new Error("Echo is not initialized");cn.emitter.off(`${o}.${i}`),cn.emitter.all.delete(`${o}.${i}`),cn.echo.leave(o),t.isListening=!1}return{on:n,off:r,listener:t,state:cn}}const Ro={instances:a.ref([]),shortcuts:a.ref([]),item:a.ref()};function hl(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 Yc(){const e=a.ref();function t(i){Ro.shortcuts.value=i}async function n(i,s){Ro.instances.value.forEach(hl);const l=document.createElement("div");document.body.append(l);let c=null,d=null;return Ro.item.value=i,new Promise(u=>{c=a.createApp(Zy,{item:i,event:s,onClose:f=>{u(f)}}),d=c.mount(l),d.open(),e.value={ref:d,instance:c,element:l},Ro.instances.value.push(e.value)}).finally(()=>{c&&setTimeout(()=>{hl({ref:d,instance:c,element:l})},500)})}async function r(){var i;return(i=e.value)==null||i.ref.close(),setTimeout(()=>{e.value&&hl(e.value)},300),Promise.resolve()}function o(){Ro.instances.value.forEach(i=>{i==null||i.ref.close(),setTimeout(()=>{i&&hl(i)},300)})}return{...Ro,instance:e,open:n,close:r,closeAll:o,setShortcuts:t}}const nf=Math.min,Xo=Math.max,sc=Math.round,vl=Math.floor,Nr=e=>({x:e,y:e}),vN={left:"right",right:"left",bottom:"top",top:"bottom"},gN={start:"end",end:"start"};function jp(e,t){return typeof e=="function"?e(t):e}function vi(e){return e.split("-")[0]}function Gc(e){return e.split("-")[1]}function yN(e){return e==="x"?"y":"x"}function l2(e){return e==="y"?"height":"width"}function Ts(e){return["top","bottom"].includes(vi(e))?"y":"x"}function c2(e){return yN(Ts(e))}function bN(e,t,n){n===void 0&&(n=!1);const r=Gc(e),o=c2(e),i=l2(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=lc(s)),[s,lc(s)]}function wN(e){const t=lc(e);return[rf(e),t,rf(t)]}function rf(e){return e.replace(/start|end/g,t=>gN[t])}function kN(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function _N(e,t,n,r){const o=Gc(e);let i=kN(vi(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(rf)))),i}function lc(e){return e.replace(/left|right|bottom|top/g,t=>vN[t])}function CN(e){return{top:0,right:0,bottom:0,left:0,...e}}function SN(e){return typeof e!="number"?CN(e):{top:e,right:e,bottom:e,left:e}}function cc(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Rv(e,t,n){let{reference:r,floating:o}=e;const i=Ts(t),s=c2(t),l=l2(s),c=vi(t),d=i==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[l]/2-o[l]/2;let h;switch(c){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Gc(t)){case"start":h[s]-=p*(n&&d?-1:1);break;case"end":h[s]+=p*(n&&d?-1:1);break}return h}const EN=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=Rv(d,r,c),p=r,h={},v=0;for(let y=0;y<l.length;y++){const{name:C,fn:g}=l[y],{x:S,y:_,data:b,reset:T}=await g({x:u,y:f,initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:d,platform:s,elements:{reference:e,floating:t}});u=S??u,f=_??f,h={...h,[C]:{...h[C],...b}},T&&v<=50&&(v++,typeof T=="object"&&(T.placement&&(p=T.placement),T.rects&&(d=T.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:u,y:f}=Rv(d,p,c)),y=-1)}return{x:u,y:f,placement:p,strategy:o,middlewareData:h}};async function xN(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=jp(t,e),v=SN(h),C=l[p?f==="floating"?"reference":"floating":f],g=cc(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(C)))==null||n?C:C.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),S=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),b=await(i.isElement==null?void 0:i.isElement(_))?await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1}:{x:1,y:1},T=cc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:S,offsetParent:_,strategy:c}):S);return{top:(g.top-T.top+v.top)/b.y,bottom:(T.bottom-g.bottom+v.bottom)/b.y,left:(g.left-T.left+v.left)/b.x,right:(T.right-g.right+v.right)/b.x}}const TN=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...C}=jp(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=vi(o),S=Ts(l),_=vi(l)===l,b=await(c.isRTL==null?void 0:c.isRTL(d.floating)),T=p||(_||!y?[lc(l)]:wN(l)),E=v!=="none";!p&&E&&T.push(..._N(l,y,v,b));const x=[l,...T],A=await xN(t,C),P=[];let M=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&P.push(A[g]),f){const D=bN(o,s,b);P.push(A[D[0]],A[D[1]])}if(M=[...M,{placement:o,overflows:P}],!P.every(D=>D<=0)){var z,V;const D=(((z=i.flip)==null?void 0:z.index)||0)+1,H=x[D];if(H)return{data:{index:D,overflows:M},reset:{placement:H}};let B=(V=M.filter(q=>q.overflows[0]<=0).sort((q,J)=>q.overflows[1]-J.overflows[1])[0])==null?void 0:V.placement;if(!B)switch(h){case"bestFit":{var Y;const q=(Y=M.filter(J=>{if(E){const U=Ts(J.placement);return U===S||U==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(U=>U>0).reduce((U,j)=>U+j,0)]).sort((J,U)=>J[1]-U[1])[0])==null?void 0:Y[0];q&&(B=q);break}case"initialPlacement":B=l;break}if(o!==B)return{reset:{placement:B}}}return{}}}};async function PN(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=vi(n),l=Gc(n),c=Ts(n)==="y",d=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,f=jp(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof v=="number"&&(h=l==="end"?v*-1:v),c?{x:h*u,y:p*d}:{x:p*d,y:h*u}}const IN=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,c=await PN(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}};function Xc(){return typeof window<"u"}function Mi(e){return u2(e)?(e.nodeName||"").toLowerCase():"#document"}function On(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function zr(e){var t;return(t=(u2(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function u2(e){return Xc()?e instanceof Node||e instanceof On(e).Node:!1}function ur(e){return Xc()?e instanceof Element||e instanceof On(e).Element:!1}function $r(e){return Xc()?e instanceof HTMLElement||e instanceof On(e).HTMLElement:!1}function Lv(e){return!Xc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof On(e).ShadowRoot}function Us(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=dr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function AN(e){return["table","td","th"].includes(Mi(e))}function Kc(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Hp(e){const t=Up(),n=ur(e)?dr(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function MN(e){let t=Aa(e);for(;$r(t)&&!gi(t);){if(Hp(t))return t;if(Kc(t))return null;t=Aa(t)}return null}function Up(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function gi(e){return["html","body","#document"].includes(Mi(e))}function dr(e){return On(e).getComputedStyle(e)}function Jc(e){return ur(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Aa(e){if(Mi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Lv(e)&&e.host||zr(e);return Lv(t)?t.host:t}function d2(e){const t=Aa(e);return gi(t)?e.ownerDocument?e.ownerDocument.body:e.body:$r(t)&&Us(t)?t:d2(t)}function Ps(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=d2(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=On(o);if(i){const l=af(s);return t.concat(s,s.visualViewport||[],Us(o)?o:[],l&&n?Ps(l):[])}return t.concat(o,Ps(o,[],n))}function af(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function f2(e){const t=dr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=$r(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=sc(n)!==i||sc(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function Wp(e){return ur(e)?e:e.contextElement}function Ko(e){const t=Wp(e);if(!$r(t))return Nr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=f2(t);let s=(i?sc(n.width):n.width)/r,l=(i?sc(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const ON=Nr(0);function p2(e){const t=On(e);return!Up()||!t.visualViewport?ON:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function NN(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==On(e)?!1:t}function yo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Wp(e);let s=Nr(1);t&&(r?ur(r)&&(s=Ko(r)):s=Ko(e));const l=NN(i,n,r)?p2(i):Nr(0);let c=(o.left+l.x)/s.x,d=(o.top+l.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(i){const p=On(i),h=r&&ur(r)?On(r):r;let v=p,y=af(v);for(;y&&r&&h!==v;){const C=Ko(y),g=y.getBoundingClientRect(),S=dr(y),_=g.left+(y.clientLeft+parseFloat(S.paddingLeft))*C.x,b=g.top+(y.clientTop+parseFloat(S.paddingTop))*C.y;c*=C.x,d*=C.y,u*=C.x,f*=C.y,c+=_,d+=b,v=On(y),y=af(v)}}return cc({width:u,height:f,x:c,y:d})}function qp(e,t){const n=Jc(e).scrollLeft;return t?t.left+n:yo(zr(e)).left+n}function m2(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:qp(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function BN(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=zr(r),l=t?Kc(t.floating):!1;if(r===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},d=Nr(1);const u=Nr(0),f=$r(r);if((f||!f&&!i)&&((Mi(r)!=="body"||Us(s))&&(c=Jc(r)),$r(r))){const h=yo(r);d=Ko(r),u.x=h.x+r.clientLeft,u.y=h.y+r.clientTop}const p=s&&!f&&!i?m2(s,c,!0):Nr(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+u.x+p.x,y:n.y*d.y-c.scrollTop*d.y+u.y+p.y}}function DN(e){return Array.from(e.getClientRects())}function RN(e){const t=zr(e),n=Jc(e),r=e.ownerDocument.body,o=Xo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Xo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+qp(e);const l=-n.scrollTop;return dr(r).direction==="rtl"&&(s+=Xo(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function LN(e,t){const n=On(e),r=zr(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,c=0;if(o){i=o.width,s=o.height;const d=Up();(!d||d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:l,y:c}}function $N(e,t){const n=yo(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=$r(e)?Ko(e):Nr(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,c=o*i.x,d=r*i.y;return{width:s,height:l,x:c,y:d}}function $v(e,t,n){let r;if(t==="viewport")r=LN(e,n);else if(t==="document")r=RN(zr(e));else if(ur(t))r=$N(t,n);else{const o=p2(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return cc(r)}function h2(e,t){const n=Aa(e);return n===t||!ur(n)||gi(n)?!1:dr(n).position==="fixed"||h2(n,t)}function zN(e,t){const n=t.get(e);if(n)return n;let r=Ps(e,[],!1).filter(l=>ur(l)&&Mi(l)!=="body"),o=null;const i=dr(e).position==="fixed";let s=i?Aa(e):e;for(;ur(s)&&!gi(s);){const l=dr(s),c=Hp(s);!c&&l.position==="fixed"&&(o=null),(i?!c&&!o:!c&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Us(s)&&!c&&h2(e,s))?r=r.filter(u=>u!==s):o=l,s=Aa(s)}return t.set(e,r),r}function VN(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Kc(t)?[]:zN(t,this._c):[].concat(n),r],l=s[0],c=s.reduce((d,u)=>{const f=$v(t,u,o);return d.top=Xo(f.top,d.top),d.right=nf(f.right,d.right),d.bottom=nf(f.bottom,d.bottom),d.left=Xo(f.left,d.left),d},$v(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function FN(e){const{width:t,height:n}=f2(e);return{width:t,height:n}}function jN(e,t,n){const r=$r(t),o=zr(t),i=n==="fixed",s=yo(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=Nr(0);if(r||!r&&!i)if((Mi(t)!=="body"||Us(o))&&(l=Jc(t)),r){const p=yo(t,!0,i,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else o&&(c.x=qp(o));const d=o&&!r&&!i?m2(o,l):Nr(0),u=s.left+l.scrollLeft-c.x-d.x,f=s.top+l.scrollTop-c.y-d.y;return{x:u,y:f,width:s.width,height:s.height}}function ed(e){return dr(e).position==="static"}function zv(e,t){if(!$r(e)||dr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return zr(e)===n&&(n=n.ownerDocument.body),n}function v2(e,t){const n=On(e);if(Kc(e))return n;if(!$r(e)){let o=Aa(e);for(;o&&!gi(o);){if(ur(o)&&!ed(o))return o;o=Aa(o)}return n}let r=zv(e,t);for(;r&&AN(r)&&ed(r);)r=zv(r,t);return r&&gi(r)&&ed(r)&&!Hp(r)?n:r||MN(e)||n}const HN=async function(e){const t=this.getOffsetParent||v2,n=this.getDimensions,r=await n(e.floating);return{reference:jN(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function UN(e){return dr(e).direction==="rtl"}const WN={convertOffsetParentRelativeRectToViewportRelativeRect:BN,getDocumentElement:zr,getClippingRect:VN,getOffsetParent:v2,getElementRects:HN,getClientRects:DN,getDimensions:FN,getScale:Ko,isElement:ur,isRTL:UN};function qN(e,t){let n=null,r;const o=zr(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:d,top:u,width:f,height:p}=e.getBoundingClientRect();if(l||t(),!f||!p)return;const h=vl(u),v=vl(o.clientWidth-(d+f)),y=vl(o.clientHeight-(u+p)),C=vl(d),S={rootMargin:-h+"px "+-v+"px "+-y+"px "+-C+"px",threshold:Xo(0,nf(1,c))||1};let _=!0;function b(T){const E=T[0].intersectionRatio;if(E!==c){if(!_)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},1e3)}_=!1}try{n=new IntersectionObserver(b,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,S)}n.observe(e)}return s(!0),i}function YN(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=Wp(e),u=o||i?[...d?Ps(d):[],...Ps(t)]:[];u.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const f=d&&l?qN(d,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(g=>{let[S]=g;S&&S.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var _;(_=h)==null||_.observe(t)})),n()}),d&&!c&&h.observe(d),h.observe(t));let v,y=c?yo(e):null;c&&C();function C(){const g=yo(e);y&&(g.x!==y.x||g.y!==y.y||g.width!==y.width||g.height!==y.height)&&n(),y=g,v=requestAnimationFrame(C)}return n(),()=>{var g;u.forEach(S=>{o&&S.removeEventListener("scroll",n),i&&S.removeEventListener("resize",n)}),f==null||f(),(g=h)==null||g.disconnect(),h=null,c&&cancelAnimationFrame(v)}}const GN=IN,XN=TN,KN=(e,t,n)=>{const r=new Map,o={platform:WN,...n},i={...o.platform,_c:r};return EN(e,t,{...o,platform:i})};function g2(e,t,n){const r="aria-expanded",o=a.ref(!1),i=a.ref(),s=a.ref(),l=a.ref(),c=a.ref(),d="bottom-start",u="clippingAncestors",f=(n==null?void 0:n.center)??!1,p=0,h=2;function v(g,S){i.value=g,s.value=S,l.value=new MutationObserver(_=>{const b=_[0].target.getAttribute(r);o.value=b==="true"}),i.value&&l.value.observe(i.value,{attributes:!0,attributeFilter:[r]})}function y(){!i.value||!s.value||(c.value=YN(i.value,s.value,async()=>{if(!i.value||!s.value)return;const g=await KN(i.value,s.value,{placement:d,middleware:[XN({boundary:u}),GN(({rects:_})=>{const b=-_.floating.width/2+_.reference.width/2;return{mainAxis:p,crossAxis:f?b:h}})]}),S={left:"0",top:"0",transform:`translate(${Math.round(g.x)}px,${Math.round(g.y)}px)`};Object.assign(s.value.style,S),s.value.dataset.position=g.placement}))}function C(){var g,S;(g=s.value)==null||delete g.dataset.position,(S=c.value)==null||S.call(c)}return a.watch(o,()=>{y()}),a.onMounted(()=>{e.value.$el&&t.value.$el&&v(e.value.$el,t.value.$el)}),a.onUnmounted(()=>{var g;C(),(g=l.value)==null||g.disconnect()}),{isActive:o}}const JN={},QN={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function ZN(e,t){return a.openBlock(),a.createElementBlock("svg",QN,t[0]||(t[0]=[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
634
634
  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
635
635
  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
@@ -638,16 +638,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
638
638
  12.5606C19.5377 14.1124 18.7758 15.5379 17.657 16.6567V16.6567Z`},null,-1),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
639
639
  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
640
640
  8.87844C10.4413 8.31583 11.2044 7.99976 12 7.99976C12.7956 7.99976 13.5587 8.31583 14.1213 8.87844C14.6839
641
- 9.44104 15 10.2041 15 10.9998V10.9998Z`},null,-1)]))}const eB=Ln(JN,[["render",ZN]]);function tB(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","data-slot":"icon"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function nB(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","data-slot":"icon"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function y2(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","data-slot":"icon"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function Yp(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","data-slot":"icon"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})])}function b2(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","data-slot":"icon"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function rB(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","data-slot":"icon"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"})])}function Gp(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","data-slot":"icon"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}var aB={prefix:"far",iconName:"thumbs-up",icon:[512,512,[61575,128077],"f164","M323.8 34.8c-38.2-10.9-78.1 11.2-89 49.4l-5.7 20c-3.7 13-10.4 25-19.5 35l-51.3 56.4c-8.9 9.8-8.2 25 1.6 33.9s25 8.2 33.9-1.6l51.3-56.4c14.1-15.5 24.4-34 30.1-54.1l5.7-20c3.6-12.7 16.9-20.1 29.7-16.5s20.1 16.9 16.5 29.7l-5.7 20c-5.7 19.9-14.7 38.7-26.6 55.5c-5.2 7.3-5.8 16.9-1.7 24.9s12.3 13 21.3 13L448 224c8.8 0 16 7.2 16 16c0 6.8-4.3 12.7-10.4 15c-7.4 2.8-13 9-14.9 16.7s.1 15.8 5.3 21.7c2.5 2.8 4 6.5 4 10.6c0 7.8-5.6 14.3-13 15.7c-8.2 1.6-15.1 7.3-18 15.2s-1.6 16.7 3.6 23.3c2.1 2.7 3.4 6.1 3.4 9.9c0 6.7-4.2 12.6-10.2 14.9c-11.5 4.5-17.7 16.9-14.4 28.8c.4 1.3 .6 2.8 .6 4.3c0 8.8-7.2 16-16 16l-97.5 0c-12.6 0-25-3.7-35.5-10.7l-61.7-41.1c-11-7.4-25.9-4.4-33.3 6.7s-4.4 25.9 6.7 33.3l61.7 41.1c18.4 12.3 40 18.8 62.1 18.8l97.5 0c34.7 0 62.9-27.6 64-62c14.6-11.7 24-29.7 24-50c0-4.5-.5-8.8-1.3-13c15.4-11.7 25.3-30.2 25.3-51c0-6.5-1-12.8-2.8-18.7C504.8 273.7 512 257.7 512 240c0-35.3-28.6-64-64-64l-92.3 0c4.7-10.4 8.7-21.2 11.8-32.2l5.7-20c10.9-38.2-11.2-78.1-49.4-89zM32 192c-17.7 0-32 14.3-32 32L0 448c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32l0-224c0-17.7-14.3-32-32-32l-64 0z"]},w2={prefix:"far",iconName:"id-card-clip",icon:[576,512,["id-card-alt"],"f47f","M256 0c-17.7 0-32 14.3-32 32l0 64c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32l0-64c0-17.7-14.3-32-32-32L256 0zM192 64L64 64C28.7 64 0 92.7 0 128L0 448c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L384 64l0 48 128 0c8.8 0 16 7.2 16 16l0 320c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l128 0 0-48zm96 240a64 64 0 1 0 0-128 64 64 0 1 0 0 128zm-32 32c-44.2 0-80 35.8-80 80c0 8.8 7.2 16 16 16l192 0c8.8 0 16-7.2 16-16c0-44.2-35.8-80-80-80l-64 0z"]},oB=w2,iB={prefix:"far",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376l0 103.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"]},Xp={prefix:"far",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M248.4 84.3c1.6-2.7 4.5-4.3 7.6-4.3s6 1.6 7.6 4.3L461.9 410c1.4 2.3 2.1 4.9 2.1 7.5c0 8-6.5 14.5-14.5 14.5l-387 0c-8 0-14.5-6.5-14.5-14.5c0-2.7 .7-5.3 2.1-7.5L248.4 84.3zm-41-25L9.1 385c-6 9.8-9.1 21-9.1 32.5C0 452 28 480 62.5 480l387 0c34.5 0 62.5-28 62.5-62.5c0-11.5-3.2-22.7-9.1-32.5L304.6 59.3C294.3 42.4 275.9 32 256 32s-38.3 10.4-48.6 27.3zM288 368a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm-8-184c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 96c0 13.3 10.7 24 24 24s24-10.7 24-24l0-96z"]},sB=Xp,lB=Xp,cB={prefix:"far",iconName:"check",icon:[448,512,[10003,10004],"f00c","M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"]},uB={prefix:"far",iconName:"calendar",icon:[448,512,[128197,128198],"f133","M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L64 64C28.7 64 0 92.7 0 128l0 16 0 48L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-256 0-48 0-16c0-35.3-28.7-64-64-64l-40 0 0-40c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L152 64l0-40zM48 192l352 0 0 256c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256z"]},dB={prefix:"far",iconName:"building",icon:[384,512,[61687,127970],"f1ad","M64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l80 0 0-64c0-26.5 21.5-48 48-48s48 21.5 48 48l0 64 80 0c8.8 0 16-7.2 16-16l0-384c0-8.8-7.2-16-16-16L64 48zM0 64C0 28.7 28.7 0 64 0L320 0c35.3 0 64 28.7 64 64l0 384c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm88 40c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16l0 48c0 8.8-7.2 16-16 16l-48 0c-8.8 0-16-7.2-16-16l0-48zM232 88l48 0c8.8 0 16 7.2 16 16l0 48c0 8.8-7.2 16-16 16l-48 0c-8.8 0-16-7.2-16-16l0-48c0-8.8 7.2-16 16-16zM88 232c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16l0 48c0 8.8-7.2 16-16 16l-48 0c-8.8 0-16-7.2-16-16l0-48zm144-16l48 0c8.8 0 16 7.2 16 16l0 48c0 8.8-7.2 16-16 16l-48 0c-8.8 0-16-7.2-16-16l0-48c0-8.8 7.2-16 16-16z"]},fB={prefix:"far",iconName:"chevron-right",icon:[320,512,[9002],"f054","M305 239c9.4 9.4 9.4 24.6 0 33.9L113 465c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l175-175L79 81c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L305 239z"]},pB={prefix:"far",iconName:"chevron-left",icon:[320,512,[9001],"f053","M15 239c-9.4 9.4-9.4 24.6 0 33.9L207 465c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L65.9 256 241 81c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0L15 239z"]},mB={prefix:"far",iconName:"cars",icon:[640,512,[],"f85b","M137.8 48l140.3 0c10.1 0 19.2 6.4 22.6 15.9L317.9 112 98.1 112l17.2-48.1c3.4-9.6 12.5-15.9 22.6-15.9zM41.4 127.9c-.2 .5-.3 .9-.5 1.4C16.2 146.7 0 175.5 0 208l0 32 0 16 0 32 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 172.1 0c5.3-6.6 11.3-12.7 17.8-18.2L248.5 240 48 240l0-32c0-26.5 21.5-48 48-48l190.8 0c19.2-20 46.1-32 75.1-32l12.8 0c0 0 0 0 0-.1L346 47.8C335.7 19.1 308.6 0 278.2 0L137.8 0C107.4 0 80.3 19.1 70 47.8L41.4 127.9zM112 224a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm249.8-16l140.3 0c10.1 0 19.2 6.4 22.6 15.9L541.9 272l-219.9 0 17.2-48.1c3.4-9.6 12.5-15.9 22.6-15.9zm-96.4 79.9c-.2 .5-.3 .9-.5 1.4C240.2 306.7 224 335.5 224 368l0 32 0 16 0 32 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 320 0 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 0-32 0-16 0-32c0-32.5-16.2-61.3-40.9-78.7c-.1-.5-.3-.9-.5-1.4L570 207.8c-10.2-28.7-37.4-47.8-67.8-47.8l-140.3 0c-30.4 0-57.6 19.1-67.8 47.8l-28.6 80.1zM544 320c26.5 0 48 21.5 48 48l0 32-320 0 0-32c0-26.5 21.5-48 48-48l224 0zM336 384a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm216-24a24 24 0 1 0 -48 0 24 24 0 1 0 48 0z"]},Ws={prefix:"far",iconName:"xmark",icon:[384,512,[215,10005,10006,10060,128473,"close","multiply","remove","times"],"f00d","M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"]},hB=Ws,vB=Ws,gB=Ws,yB=Ws,k2={prefix:"far",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M248 72c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 160L40 232c-13.3 0-24 10.7-24 24s10.7 24 24 24l160 0 0 160c0 13.3 10.7 24 24 24s24-10.7 24-24l0-160 160 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-160 0 0-160z"]},bB=k2,wB={prefix:"far",iconName:"chevron-down",icon:[512,512,[],"f078","M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"]},_2={prefix:"far",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M368 208A160 160 0 1 0 48 208a160 160 0 1 0 320 0zM337.1 371.1C301.7 399.2 256.8 416 208 416C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208c0 48.8-16.8 93.7-44.9 129.1L505 471c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L337.1 371.1z"]},kB=_2,_B={prefix:"far",iconName:"timer",icon:[512,512,[],"e29e","M232 24c0-13.3 10.7-24 24-24C397.4 0 512 114.6 512 256s-114.6 256-256 256S0 397.4 0 256c0-37.9 8.2-73.8 23-106.1c6-13.2 13.1-25.8 21.2-37.6l.1-.2C53.4 98.7 63.6 86.3 75 75c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9c-9.2 9.2-17.6 19.3-25 30.1l-.1 .2c-21.2 31.2-34.2 68.5-35.7 108.7c-.1 2.7-.2 5.4-.2 8.1c0 114.9 93.1 208 208 208s208-93.1 208-208c0-106.8-80.4-194.7-184-206.6l0 54.6c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-80zM159 159c9.4-9.4 24.6-9.4 33.9 0l80 80c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-80-80c-9.4-9.4-9.4-24.6 0-33.9z"]},C2={prefix:"far",iconName:"location-dot",icon:[384,512,["map-marker-alt"],"f3c5","M336 192c0-79.5-64.5-144-144-144S48 112.5 48 192c0 12.4 4.5 31.6 15.3 57.2c10.5 24.8 25.4 52.2 42.5 79.9c28.5 46.2 61.5 90.8 86.2 122.6c24.8-31.8 57.8-76.4 86.2-122.6c17.1-27.7 32-55.1 42.5-79.9C331.5 223.6 336 204.4 336 192zm48 0c0 87.4-117 243-168.3 307.2c-12.3 15.3-35.1 15.3-47.4 0C117 435 0 279.4 0 192C0 86 86 0 192 0S384 86 384 192zm-160 0a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm-112 0a80 80 0 1 1 160 0 80 80 0 1 1 -160 0z"]},CB=C2,SB={prefix:"far",iconName:"bell",icon:[448,512,[61602,128276],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 25.4c0 45.4-15.5 89.5-43.8 124.9L5.3 377c-5.8 7.2-6.9 17.1-2.9 25.4S14.8 416 24 416l400 0c9.2 0 17.6-5.3 21.6-13.6s2.9-18.2-2.9-25.4l-14.9-18.6C399.5 322.9 384 278.8 384 233.4l0-25.4c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm0 96c61.9 0 112 50.1 112 112l0 25.4c0 47.9 13.9 94.6 39.7 134.6L72.3 368C98.1 328 112 281.3 112 233.4l0-25.4c0-61.9 50.1-112 112-112zm64 352l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7s18.7-28.3 18.7-45.3z"]},S2={prefix:"far",iconName:"car",icon:[512,512,[128664,"automobile"],"f1b9","M127.7 106.8L103.4 176l305.1 0-24.2-69.2c-5.6-16-20.8-26.8-37.8-26.8L165.4 80c-17 0-32.1 10.7-37.8 26.8zm-79.6 82L82.3 90.9C94.7 55.6 128 32 165.4 32l181.2 0c37.4 0 70.7 23.6 83.1 58.9l34.3 97.9C492.6 205.4 512 236.4 512 272l0 80 0 48 0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56L48 400l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56 0-48 0-80c0-35.6 19.3-66.6 48.1-83.2zM416 224L96 224c-26.5 0-48 21.5-48 48l0 80 416 0 0-80c0-26.5-21.5-48-48-48zM112 256a32 32 0 1 1 0 64 32 32 0 1 1 0-64zm256 32a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},EB=S2,xB={prefix:"far",iconName:"thumbs-down",icon:[512,512,[61576,128078],"f165","M323.8 477.2c-38.2 10.9-78.1-11.2-89-49.4l-5.7-20c-3.7-13-10.4-25-19.5-35l-51.3-56.4c-8.9-9.8-8.2-25 1.6-33.9s25-8.2 33.9 1.6l51.3 56.4c14.1 15.5 24.4 34 30.1 54.1l5.7 20c3.6 12.7 16.9 20.1 29.7 16.5s20.1-16.9 16.5-29.7l-5.7-20c-5.7-19.9-14.7-38.7-26.6-55.5c-5.2-7.3-5.8-16.9-1.7-24.9s12.3-13 21.3-13L448 288c8.8 0 16-7.2 16-16c0-6.8-4.3-12.7-10.4-15c-7.4-2.8-13-9-14.9-16.7s.1-15.8 5.3-21.7c2.5-2.8 4-6.5 4-10.6c0-7.8-5.6-14.3-13-15.7c-8.2-1.6-15.1-7.3-18-15.2s-1.6-16.7 3.6-23.3c2.1-2.7 3.4-6.1 3.4-9.9c0-6.7-4.2-12.6-10.2-14.9c-11.5-4.5-17.7-16.9-14.4-28.8c.4-1.3 .6-2.8 .6-4.3c0-8.8-7.2-16-16-16l-97.5 0c-12.6 0-25 3.7-35.5 10.7l-61.7 41.1c-11 7.4-25.9 4.4-33.3-6.7s-4.4-25.9 6.7-33.3l61.7-41.1c18.4-12.3 40-18.8 62.1-18.8L384 32c34.7 0 62.9 27.6 64 62c14.6 11.7 24 29.7 24 50c0 4.5-.5 8.8-1.3 13c15.4 11.7 25.3 30.2 25.3 51c0 6.5-1 12.8-2.8 18.7C504.8 238.3 512 254.3 512 272c0 35.3-28.6 64-64 64l-92.3 0c4.7 10.4 8.7 21.2 11.8 32.2l5.7 20c10.9 38.2-11.2 78.1-49.4 89zM32 384c-17.7 0-32-14.3-32-32L0 128c0-17.7 14.3-32 32-32l64 0c17.7 0 32 14.3 32 32l0 224c0 17.7-14.3 32-32 32l-64 0z"]},Qc={prefix:"far",iconName:"house",icon:[576,512,[63498,63500,127968,"home","home-alt","home-lg-alt"],"f015","M303.5 5.7c-9-7.6-22.1-7.6-31.1 0l-264 224c-10.1 8.6-11.3 23.7-2.8 33.8s23.7 11.3 33.8 2.8L64 245.5 64 432c0 44.2 35.8 80 80 80l288 0c44.2 0 80-35.8 80-80l0-186.5 24.5 20.8c10.1 8.6 25.3 7.3 33.8-2.8s7.3-25.3-2.8-33.8l-264-224zM112 432l0-227.2L288 55.5 464 204.8 464 432c0 17.7-14.3 32-32 32l-48 0 0-152c0-22.1-17.9-40-40-40l-112 0c-22.1 0-40 17.9-40 40l0 152-48 0c-17.7 0-32-14.3-32-32zm128 32l0-144 96 0 0 144-96 0z"]},TB=Qc,PB=Qc,IB=Qc,E2={prefix:"far",iconName:"id-card",icon:[576,512,[62147,"drivers-license"],"f2c2","M528 160l0 256c0 8.8-7.2 16-16 16l-192 0c0-44.2-35.8-80-80-80l-64 0c-44.2 0-80 35.8-80 80l-32 0c-8.8 0-16-7.2-16-16l0-256 480 0zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zM272 256a64 64 0 1 0 -128 0 64 64 0 1 0 128 0zm104-48c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-80 0zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-80 0z"]},AB=E2,Kp={prefix:"far",iconName:"mobile",icon:[384,512,[128241,"mobile-android","mobile-phone"],"f3ce","M80 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l224 0c8.8 0 16-7.2 16-16l0-384c0-8.8-7.2-16-16-16L80 48zM16 64C16 28.7 44.7 0 80 0L304 0c35.3 0 64 28.7 64 64l0 384c0 35.3-28.7 64-64 64L80 512c-35.3 0-64-28.7-64-64L16 64zM160 400l64 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-64 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},MB=Kp,OB=Kp,x2={prefix:"far",iconName:"sliders",icon:[512,512,["sliders-h"],"f1de","M0 416c0 13.3 10.7 24 24 24l59.7 0c10.2 32.5 40.5 56 76.3 56s66.1-23.5 76.3-56L488 440c13.3 0 24-10.7 24-24s-10.7-24-24-24l-251.7 0c-10.2-32.5-40.5-56-76.3-56s-66.1 23.5-76.3 56L24 392c-13.3 0-24 10.7-24 24zm128 0a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zM320 256a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm32-80c-35.8 0-66.1 23.5-76.3 56L24 232c-13.3 0-24 10.7-24 24s10.7 24 24 24l251.7 0c10.2 32.5 40.5 56 76.3 56s66.1-23.5 76.3-56l59.7 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-59.7 0c-10.2-32.5-40.5-56-76.3-56zM192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm76.3-56C258.1 39.5 227.8 16 192 16s-66.1 23.5-76.3 56L24 72C10.7 72 0 82.7 0 96s10.7 24 24 24l91.7 0c10.2 32.5 40.5 56 76.3 56s66.1-23.5 76.3-56L488 120c13.3 0 24-10.7 24-24s-10.7-24-24-24L268.3 72z"]},NB=x2,BB={prefix:"far",iconName:"car-mirrors",icon:[576,512,[],"e343","M197.4 80c-17 0-32.1 10.7-37.8 26.8L135.4 176l305.1 0-24.2-69.2c-5.6-16-20.8-26.8-37.8-26.8L197.4 80zM44.8 224L40 224c-13.3 0-24-10.7-24-24s10.7-24 24-24l44.6 0 29.8-85.1C126.7 55.6 160 32 197.4 32l181.2 0c37.4 0 70.7 23.6 83.1 58.9L491.4 176l44.6 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-4.8 0c8.2 14.1 12.8 30.5 12.8 48l0 80 0 48 0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56L80 400l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56 0-48 0-80c0-17.5 4.7-33.9 12.8-48zm83.2 0c-26.5 0-48 21.5-48 48l0 80 416 0 0-80c0-26.5-21.5-48-48-48l-320 0zm-16 64a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm320-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},T2={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},DB=T2,P2={prefix:"far",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 13.3-10.7 24-24 24L40 280c-13.3 0-24-10.7-24-24s10.7-24 24-24l368 0c13.3 0 24 10.7 24 24z"]},RB=P2,I2={prefix:"far",iconName:"calendar-clock",icon:[576,512,["calendar-time"],"e0d2","M128 0c13.3 0 24 10.7 24 24l0 40 144 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 40 0c35.3 0 64 28.7 64 64l0 16 0 48-16 0-32 0-112 0L48 192l0 256c0 8.8 7.2 16 16 16l220.5 0c12.3 18.8 28 35.1 46.3 48L64 512c-35.3 0-64-28.7-64-64L0 192l0-48 0-16C0 92.7 28.7 64 64 64l40 0 0-40c0-13.3 10.7-24 24-24zM288 368a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-80c-8.8 0-16 7.2-16 16l0 64c0 8.8 7.2 16 16 16l48 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-48c0-8.8-7.2-16-16-16z"]},LB=I2,$B={prefix:"far",iconName:"calendar-check",icon:[448,512,[],"f274","M128 0c13.3 0 24 10.7 24 24l0 40 144 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 40 0c35.3 0 64 28.7 64 64l0 16 0 48 0 256c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 192l0-48 0-16C0 92.7 28.7 64 64 64l40 0 0-40c0-13.3 10.7-24 24-24zM400 192L48 192l0 256c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-256zM329 297L217 409c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47 95-95c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},A2={prefix:"far",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-88c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 64-24 0zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},zB=A2,VB={prefix:"far",iconName:"paperclip",icon:[448,512,[128206],"f0c6","M375 73c-26-26-68.1-26-94.1 0L89 265C45.3 308.6 45.3 379.4 89 423s114.4 43.6 158.1 0L399 271c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L281 457c-62.4 62.4-163.5 62.4-225.9 0S-7.4 293.4 55 231L247 39C291.7-5.7 364.3-5.7 409 39s44.7 117.2 0 161.9L225.2 384.7c-31.6 31.6-83.6 28.7-111.5-6.2c-23.8-29.8-21.5-72.8 5.5-99.8L271 127c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L153.2 312.7c-9.7 9.7-10.6 25.1-2 35.8c10 12.5 28.7 13.6 40 2.2L375 167c26-26 26-68.1 0-94.1z"]},FB={prefix:"far",iconName:"envelope",icon:[512,512,[9993,61443,128386],"f0e0","M64 112c-8.8 0-16 7.2-16 16l0 22.1L220.5 291.7c20.7 17 50.4 17 71.1 0L464 150.1l0-22.1c0-8.8-7.2-16-16-16L64 112zM48 212.2L48 384c0 8.8 7.2 16 16 16l384 0c8.8 0 16-7.2 16-16l0-171.8L322 328.8c-38.4 31.5-93.7 31.5-132 0L48 212.2zM0 128C0 92.7 28.7 64 64 64l384 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 128z"]},jB={prefix:"far",iconName:"trash",icon:[448,512,[],"f1f8","M177.1 48l93.7 0c2.7 0 5.2 1.3 6.7 3.6l19 28.4-145 0 19-28.4c1.5-2.2 4-3.6 6.7-3.6zM354.2 80L317.5 24.9C307.1 9.4 289.6 0 270.9 0L177.1 0c-18.7 0-36.2 9.4-46.6 24.9L93.8 80 80.1 80 32 80l-8 0C10.7 80 0 90.7 0 104s10.7 24 24 24l11.6 0L59.6 452.7c2.5 33.4 30.3 59.3 63.8 59.3l201.1 0c33.5 0 61.3-25.9 63.8-59.3L412.4 128l11.6 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0-48.1 0-13.7 0zm10.1 48L340.5 449.2c-.6 8.4-7.6 14.8-16 14.8l-201.1 0c-8.4 0-15.3-6.5-16-14.8L83.7 128l280.6 0z"]},HB={prefix:"far",iconName:"phone",icon:[512,512,[128222,128379],"f095","M375.8 275.2c-16.4-7-35.4-2.4-46.7 11.4l-33.2 40.6c-46-26.7-84.4-65.1-111.1-111.1L225.3 183c13.8-11.3 18.5-30.3 11.4-46.7l-48-112C181.2 6.7 162.3-3.1 143.6 .9l-112 24C13.2 28.8 0 45.1 0 64c0 0 0 0 0 0C0 295.2 175.2 485.6 400.1 509.5c9.8 1 19.6 1.8 29.6 2.2c0 0 0 0 0 0c0 0 .1 0 .1 0c6.1 .2 12.1 .4 18.2 .4c0 0 0 0 0 0c18.9 0 35.2-13.2 39.1-31.6l24-112c4-18.7-5.8-37.6-23.4-45.1l-112-48zM441.5 464C225.8 460.5 51.5 286.2 48.1 70.5l99.2-21.3 43 100.4L154.4 179c-18.2 14.9-22.9 40.8-11.1 61.2c30.9 53.3 75.3 97.7 128.6 128.6c20.4 11.8 46.3 7.1 61.2-11.1l29.4-35.9 100.4 43L441.5 464zM48 64s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0z"]},UB={prefix:"far",iconName:"left-from-bracket",icon:[512,512,[],"e66c","M160 365.8L50 256 160 146.2l0 53.8c0 13.3 10.7 24 24 24l120 0 0 64-120 0c-13.3 0-24 10.7-24 24l0 53.8zM0 256c0 11.5 4.6 22.5 12.7 30.6L128.8 402.4c8.7 8.7 20.5 13.6 32.8 13.6c25.6 0 46.4-20.8 46.4-46.4l0-33.6 96 0c26.5 0 48-21.5 48-48l0-64c0-26.5-21.5-48-48-48l-96 0 0-33.6c0-25.6-20.8-46.4-46.4-46.4c-12.3 0-24.1 4.9-32.8 13.6L12.7 225.4C4.6 233.5 0 244.5 0 256zM344 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c48.6 0 88-39.4 88-88l0-272c0-48.6-39.4-88-88-88l-80 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c22.1 0 40 17.9 40 40l0 272c0 22.1-17.9 40-40 40l-80 0z"]},Zc={prefix:"far",iconName:"arrow-rotate-right",icon:[512,512,[8635,"arrow-right-rotate","arrow-rotate-forward","redo"],"f01e","M472 224c13.3 0 24-10.7 24-24l0-144c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 80.1-20-23.5C387 63.4 325.1 32 256 32C132.3 32 32 132.3 32 256s100.3 224 224 224c50.4 0 97-16.7 134.4-44.8c10.6-8 12.7-23 4.8-33.6s-23-12.7-33.6-4.8C332.2 418.9 295.7 432 256 432c-97.2 0-176-78.8-176-176s78.8-176 176-176c54.3 0 102.9 24.6 135.2 63.4l.1 .2s0 0 0 0L418.9 176 328 176c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0z"]},WB=Zc,qB=Zc,YB=Zc,GB={prefix:"far",iconName:"clipboard-check",icon:[384,512,[],"f46c","M320 64l-40 0-9.6 0C263 27.5 230.7 0 192 0s-71 27.5-78.4 64L104 64 64 64C28.7 64 0 92.7 0 128L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64zM80 112l0 24c0 13.3 10.7 24 24 24l88 0 88 0c13.3 0 24-10.7 24-24l0-24 16 0c8.8 0 16 7.2 16 16l0 320c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l16 0zm88-32a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM289 267.6c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-89.7 89.7L129 287c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l53.3 53.3c4.5 4.5 10.6 7 17 7s12.5-2.5 17-7L289 267.6z"]},XB={prefix:"far",iconName:"badge-check",icon:[512,512,[],"f336","M200.3 81.5C210.9 61.5 231.9 48 256 48s45.1 13.5 55.7 33.5C317.1 91.7 329 96.6 340 93.2c21.6-6.6 46.1-1.4 63.1 15.7s22.3 41.5 15.7 63.1c-3.4 11 1.5 22.9 11.7 28.2c20 10.6 33.5 31.6 33.5 55.7s-13.5 45.1-33.5 55.7c-10.2 5.4-15.1 17.2-11.7 28.2c6.6 21.6 1.4 46.1-15.7 63.1s-41.5 22.3-63.1 15.7c-11-3.4-22.9 1.5-28.2 11.7c-10.6 20-31.6 33.5-55.7 33.5s-45.1-13.5-55.7-33.5c-5.4-10.2-17.2-15.1-28.2-11.7c-21.6 6.6-46.1 1.4-63.1-15.7S86.6 361.6 93.2 340c3.4-11-1.5-22.9-11.7-28.2C61.5 301.1 48 280.1 48 256s13.5-45.1 33.5-55.7C91.7 194.9 96.6 183 93.2 172c-6.6-21.6-1.4-46.1 15.7-63.1S150.4 86.6 172 93.2c11 3.4 22.9-1.5 28.2-11.7zM256 0c-35.9 0-67.8 17-88.1 43.4c-33-4.3-67.6 6.2-93 31.6s-35.9 60-31.6 93C17 188.2 0 220.1 0 256s17 67.8 43.4 88.1c-4.3 33 6.2 67.6 31.6 93s60 35.9 93 31.6C188.2 495 220.1 512 256 512s67.8-17 88.1-43.4c33 4.3 67.6-6.2 93-31.6s35.9-60 31.6-93C495 323.8 512 291.9 512 256s-17-67.8-43.4-88.1c4.3-33-6.2-67.6-31.6-93s-60-35.9-93-31.6C323.8 17 291.9 0 256 0zM369 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L369 209z"]},M2={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM294.6 151.2c-4.2-4.6-10.1-7.2-16.4-7.2C266 144 256 154 256 166.3l0 41.7-96 0c-17.7 0-32 14.3-32 32l0 32c0 17.7 14.3 32 32 32l96 0 0 41.7c0 12.3 10 22.3 22.3 22.3c6.2 0 12.1-2.6 16.4-7.2l84-91c3.5-3.8 5.4-8.7 5.4-13.9s-1.9-10.1-5.4-13.9l-84-91z"]},KB=M2,JB={prefix:"far",iconName:"code",icon:[640,512,[],"f121","M399.1 1.1c-12.7-3.9-26.1 3.1-30 15.8l-144 464c-3.9 12.7 3.1 26.1 15.8 30s26.1-3.1 30-15.8l144-464c3.9-12.7-3.1-26.1-15.8-30zm71.4 118.5c-9.1 9.7-8.6 24.9 1.1 33.9L580.9 256 471.6 358.5c-9.7 9.1-10.2 24.3-1.1 33.9s24.3 10.2 33.9 1.1l128-120c4.8-4.5 7.6-10.9 7.6-17.5s-2.7-13-7.6-17.5l-128-120c-9.7-9.1-24.9-8.6-33.9 1.1zm-301 0c-9.1-9.7-24.3-10.2-33.9-1.1l-128 120C2.7 243 0 249.4 0 256s2.7 13 7.6 17.5l128 120c9.7 9.1 24.9 8.6 33.9-1.1s8.6-24.9-1.1-33.9L59.1 256 168.4 153.5c9.7-9.1 10.2-24.3 1.1-33.9z"]},O2={prefix:"far",iconName:"star-half-stroke",icon:[576,512,["star-half-alt"],"f5c0","M309.5 13.5C305.5 5.2 297.1 0 287.9 0s-17.6 5.2-21.6 13.5L197.7 154.8 44.5 177.5c-9 1.3-16.5 7.6-19.3 16.3s-.5 18.1 5.9 24.5L142.2 328.4 116 483.9c-1.5 9 2.2 18.1 9.7 23.5s17.3 6 25.3 1.7l137-73.2 137 73.2c8.1 4.3 17.9 3.7 25.3-1.7s11.2-14.5 9.7-23.5L433.6 328.4 544.8 218.2c6.5-6.4 8.7-15.9 5.9-24.5s-10.3-14.9-19.3-16.3L378.1 154.8 309.5 13.5zM288 384.7l0-305.6 52.5 108.1c3.5 7.1 10.2 12.1 18.1 13.3l118.3 17.5L391 303c-5.5 5.5-8.1 13.3-6.8 21l20.2 119.6L299.2 387.5c-3.5-1.9-7.4-2.8-11.2-2.8z"]},QB=O2,ZB={prefix:"far",iconName:"filter",icon:[512,512,[],"f0b0","M0 73.7C0 50.7 18.7 32 41.7 32l428.6 0c23 0 41.7 18.7 41.7 41.7c0 9.6-3.3 18.9-9.4 26.3L336 304.5l0 143.2c0 17.8-14.5 32.3-32.3 32.3c-7.3 0-14.4-2.5-20.1-7l-92.5-73.4c-9.6-7.6-15.1-19.1-15.1-31.3l0-63.7L9.4 100C3.3 92.6 0 83.3 0 73.7zM55 80L218.6 280.8c3.5 4.3 5.4 9.6 5.4 15.2l0 68.4 64 50.8L288 296c0-5.5 1.9-10.9 5.4-15.2L457 80 55 80z"]},N2={prefix:"far",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L369 209z"]},eD=N2,Jp={prefix:"far",iconName:"euro-sign",icon:[320,512,[8364,"eur","euro"],"f153","M48.6 240c-.4 5.3-.6 10.6-.6 16s.2 10.7 .6 16L24 272c-13.3 0-24 10.7-24 24s10.7 24 24 24l33.3 0C84.8 412.5 170.5 480 272 480l24 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-24 0c-74.6 0-138.4-46.4-164-112l156 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L96.7 272c-.5-5.3-.7-10.6-.7-16s.2-10.7 .7-16L264 240c13.3 0 24-10.7 24-24s-10.7-24-24-24l-156 0c25.6-65.6 89.4-112 164-112l24 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-24 0C170.5 32 84.8 99.5 57.3 192L24 192c-13.3 0-24 10.7-24 24s10.7 24 24 24l24.6 0z"]},tD=Jp,nD=Jp,B2={prefix:"far",iconName:"arrow-down-to-line",icon:[384,512,["arrow-to-bottom"],"f33d","M360 480c13.3 0 24-10.7 24-24s-10.7-24-24-24L24 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l336 0zM174.5 344.4c4.5 4.8 10.9 7.6 17.5 7.6s12.9-2.7 17.5-7.6l128-136c9.1-9.7 8.6-24.8-1-33.9s-24.8-8.6-33.9 1L216 267.5l0-83.5 0-128c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 128 0 83.5L81.5 175.6c-9.1-9.7-24.3-10.1-33.9-1s-10.1 24.3-1 33.9l128 136z"]},rD=B2,aD={prefix:"far",iconName:"clipboard",icon:[384,512,[128203],"f328","M280 64l40 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 128C0 92.7 28.7 64 64 64l40 0 9.6 0C121 27.5 153.3 0 192 0s71 27.5 78.4 64l9.6 0zM64 112c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-320c0-8.8-7.2-16-16-16l-16 0 0 24c0 13.3-10.7 24-24 24l-88 0-88 0c-13.3 0-24-10.7-24-24l0-24-16 0zm128-8a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},D2={prefix:"far",iconName:"right-to-bracket",icon:[512,512,["sign-in-alt"],"f2f6","M192 365.8L302 256 192 146.2l0 53.8c0 13.3-10.7 24-24 24L48 224l0 64 120 0c13.3 0 24 10.7 24 24l0 53.8zM352 256c0 11.5-4.6 22.5-12.7 30.6L223.2 402.4c-8.7 8.7-20.5 13.6-32.8 13.6c-25.6 0-46.4-20.8-46.4-46.4l0-33.6-96 0c-26.5 0-48-21.5-48-48l0-64c0-26.5 21.5-48 48-48l96 0 0-33.6c0-25.6 20.8-46.4 46.4-46.4c12.3 0 24.1 4.9 32.8 13.6L339.3 225.4c8.1 8.1 12.7 19.1 12.7 30.6zm-8 176l80 0c22.1 0 40-17.9 40-40l0-272c0-22.1-17.9-40-40-40l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l80 0c48.6 0 88 39.4 88 88l0 272c0 48.6-39.4 88-88 88l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},oD=D2,iD={prefix:"far",iconName:"star",icon:[576,512,[11088,61446],"f005","M287.9 0c9.2 0 17.6 5.2 21.6 13.5l68.6 141.3 153.2 22.6c9 1.3 16.5 7.6 19.3 16.3s.5 18.1-5.9 24.5L433.6 328.4l26.2 155.6c1.5 9-2.2 18.1-9.7 23.5s-17.3 6-25.3 1.7l-137-73.2L151 509.1c-8.1 4.3-17.9 3.7-25.3-1.7s-11.2-14.5-9.7-23.5l26.2-155.6L31.1 218.2c-6.5-6.4-8.7-15.9-5.9-24.5s10.3-14.9 19.3-16.3l153.2-22.6L266.3 13.5C270.4 5.2 278.7 0 287.9 0zm0 79L235.4 187.2c-3.5 7.1-10.2 12.1-18.1 13.3L99 217.9 184.9 303c5.5 5.5 8.1 13.3 6.8 21L171.4 443.7l105.2-56.2c7.1-3.8 15.6-3.8 22.6 0l105.2 56.2L384.2 324.1c-1.3-7.7 1.2-15.5 6.8-21l85.9-85.1L358.6 200.5c-7.8-1.2-14.6-6.1-18.1-13.3L287.9 79z"]},R2={prefix:"far",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M385.1 419.1L92.9 126.9C64.8 162.3 48 207.2 48 256c0 114.9 93.1 208 208 208c48.8 0 93.7-16.8 129.1-44.9zm33.9-33.9C447.2 349.7 464 304.8 464 256c0-114.9-93.1-208-208-208c-48.8 0-93.7 16.8-129.1 44.9L419.1 385.1zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},sD=R2,L2={prefix:"far",iconName:"calendar-pen",icon:[448,512,["calendar-edit"],"f333","M128 0c13.3 0 24 10.7 24 24l0 40 144 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 40 0c35.3 0 64 28.7 64 64l0 16 0 48 0 256c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 192l0-48 0-16C0 92.7 28.7 64 64 64l40 0 0-40c0-13.3 10.7-24 24-24zM400 192L48 192l0 256c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-256zm-91.2 51c14.7 14.7 14.7 38.6 0 53.3l-14.9 14.9L240.6 258 255.5 243c14.7-14.7 38.6-14.7 53.3 0zM146.1 352.5L218 280.6l53.3 53.3-71.9 71.9c-4.1 4.1-9.2 7-14.9 8.4l-36.6 9.2c-5.5 1.4-11.2-.2-15.2-4.2s-5.6-9.7-4.2-15.2l9.2-36.6c1.4-5.6 4.3-10.8 8.4-14.9z"]},lD=L2,cD={prefix:"far",iconName:"key",icon:[512,512,[128273],"f084","M208 176c0-70.7 57.3-128 128-128s128 57.3 128 128s-57.3 128-128 128c-10.4 0-20.5-1.2-30.1-3.6c-8.1-2-16.7 .4-22.6 6.4L254.1 336 200 336c-13.3 0-24 10.7-24 24l0 40-40 0c-13.3 0-24 10.7-24 24l0 40-64 0 0-78.1L205.2 228.7c5.9-5.9 8.3-14.5 6.4-22.6c-2.3-9.6-3.6-19.7-3.6-30.1zM336 0C238.8 0 160 78.8 160 176c0 9.5 .7 18.8 2.2 27.9L7 359c-4.5 4.5-7 10.6-7 17L0 488c0 13.3 10.7 24 24 24l112 0c13.3 0 24-10.7 24-24l0-40 40 0c13.3 0 24-10.7 24-24l0-40 40 0c6.4 0 12.5-2.5 17-7l27.2-27.2c9.1 1.4 18.4 2.2 27.9 2.2c97.2 0 176-78.8 176-176S433.2 0 336 0zm32 176a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},uD={prefix:"far",iconName:"user",icon:[448,512,[62144,128100],"f007","M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464l349.5 0c-8.9-63.3-63.3-112-129-112l-91.4 0c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304l91.4 0C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7L29.7 512C13.3 512 0 498.7 0 482.3z"]},dD={prefix:"far",iconName:"stopwatch",icon:[448,512,[9201],"f2f2","M144 24c0-13.3 10.7-24 24-24L280 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-32 0 0 49.4c43.4 5 82.8 23.3 113.8 50.9L391 119c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-31 31c24 33.9 38.1 75.3 38.1 120c0 114.9-93.1 208-208 208S16 418.9 16 304C16 197.2 96.4 109.3 200 97.4L200 48l-32 0c-13.3 0-24-10.7-24-24zm80 440a160 160 0 1 0 0-320 160 160 0 1 0 0 320zm24-248l0 104c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-104c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},fD={prefix:"far",iconName:"chevron-up",icon:[512,512,[],"f077","M239 111c9.4-9.4 24.6-9.4 33.9 0L465 303c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-175-175L81 337c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 111z"]},pD={prefix:"far",iconName:"calendar-circle-exclamation",icon:[576,512,[],"e46e","M128 0c13.3 0 24 10.7 24 24l0 40 144 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 40 0c35.3 0 64 28.7 64 64l0 16 0 48-16 0-32 0-48 0L48 192l0 256c0 8.8 7.2 16 16 16l220.5 0c12.3 18.8 28 35.1 46.3 48L64 512c-35.3 0-64-28.7-64-64L0 192l0-48 0-16C0 92.7 28.7 64 64 64l40 0 0-40c0-13.3 10.7-24 24-24zM432 224a144 144 0 1 1 0 288 144 144 0 1 1 0-288zm0 240a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm0-192c-8.8 0-16 7.2-16 16l0 80c0 8.8 7.2 16 16 16s16-7.2 16-16l0-80c0-8.8-7.2-16-16-16z"]},mD={prefix:"far",iconName:"calendar-exclamation",icon:[448,512,[],"f334","M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L64 64C28.7 64 0 92.7 0 128l0 16 0 48L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-256 0-48 0-16c0-35.3-28.7-64-64-64l-40 0 0-40c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L152 64l0-40zM48 192l352 0 0 256c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256zM256 400a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm-8-152c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 64c0 13.3 10.7 24 24 24s24-10.7 24-24l0-64z"]},hD={prefix:"far",iconName:"lock",icon:[448,512,[128274],"f023","M144 128l0 64 160 0 0-64c0-44.2-35.8-80-80-80s-80 35.8-80 80zM96 192l0-64C96 57.3 153.3 0 224 0s128 57.3 128 128l0 64 32 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l32 0zM48 256l0 192c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-192c0-8.8-7.2-16-16-16L64 240c-8.8 0-16 7.2-16 16z"]},$2={prefix:"far",iconName:"arrow-up-to-line",icon:[384,512,["arrow-to-top"],"f341","M24 32C10.7 32 0 42.7 0 56S10.7 80 24 80l336 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L24 32zM209.5 167.6c-4.5-4.8-10.9-7.6-17.5-7.6s-12.9 2.7-17.5 7.6l-128 136c-9.1 9.7-8.6 24.8 1 33.9s24.8 8.6 33.9-1L168 244.5l0 83.5 0 128c0 13.3 10.7 24 24 24s24-10.7 24-24l0-128 0-83.5 86.5 91.9c9.1 9.7 24.3 10.1 33.9 1s10.1-24.3 1-33.9l-128-136z"]},vD=$2,z2={prefix:"far",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},gD=z2,V2={prefix:"far",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 88C0 74.7 10.7 64 24 64l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 112C10.7 112 0 101.3 0 88zM0 248c0-13.3 10.7-24 24-24l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 272c-13.3 0-24-10.7-24-24zM448 408c0 13.3-10.7 24-24 24L24 432c-13.3 0-24-10.7-24-24s10.7-24 24-24l400 0c13.3 0 24 10.7 24 24z"]},yD=V2,F2={prefix:"far",iconName:"sensor-triangle-exclamation",icon:[640,512,["sensor-alert"],"e029","M64 80l320 0c8.8 0 16 7.2 16 16l0 49.9c13.1-11.4 30.1-17.9 48-17.9l0-32c0-35.3-28.7-64-64-64L64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l161 0c-.6-4-1-8.1-1-12.3c0-12.5 3-24.7 8.9-35.7L64 432c-8.8 0-16-7.2-16-16L48 96c0-8.8 7.2-16 16-16zm80 72c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112zm96 0c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112zm21.8 293.8c-3.8 6.7-5.8 14.2-5.8 21.9c0 24.5 19.8 44.3 44.3 44.3l295.4 0c24.5 0 44.3-19.8 44.3-44.3c0-7.7-2-15.2-5.8-21.9l-150.4-265C476.5 168 462.8 160 448 160s-28.5 8-35.8 20.9l-150.4 265zM464 272l0 88c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-88c0-8.8 7.2-16 16-16s16 7.2 16 16zM448 408a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},bD=F2,wD={prefix:"far",iconName:"hyphen",icon:[320,512,[],"2d","M0 256c0-13.3 10.7-24 24-24l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 280c-13.3 0-24-10.7-24-24z"]},kD={prefix:"far",iconName:"user-check",icon:[640,512,[],"f4fc","M224 48a80 80 0 1 1 0 160 80 80 0 1 1 0-160zm0 208A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 96l91.4 0c65.7 0 120.1 48.7 129 112L49.3 464c8.9-63.3 63.3-112 129-112zm0-48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0zM625 177c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L625 177z"]},j2={prefix:"far",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M36.4 360.9L13.4 439 1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1L73 498.6l78.1-23c10.4-3 20.1-8 28.6-14.5l.3 .2 .5-.8c1.4-1.1 2.7-2.2 4-3.3c1.4-1.2 2.7-2.5 4-3.8L492.7 149.3c21.9-21.9 24.6-55.6 8.2-80.5c-2.3-3.5-5.1-6.9-8.2-10L453.3 19.3c-25-25-65.5-25-90.5 0L58.6 323.5c-2.5 2.5-4.9 5.2-7.1 8l-.8 .5 .2 .3c-6.5 8.5-11.4 18.2-14.5 28.6zM383 191L197.4 376.6l-49.6-12.4-12.4-49.6L321 129 383 191zM97 358.9l7.7 31c2.1 8.6 8.9 15.3 17.5 17.5l31 7.7-7.4 11.2c-2.6 1.4-5.3 2.6-8.1 3.4l-23.4 6.9L59.4 452.6l16.1-54.8 6.9-23.4c.8-2.8 2-5.6 3.4-8.1L97 358.9zM315.3 218.7c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0l-96 96c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0l96-96z"]},_D=j2;const CD=Object.freeze(Object.defineProperty({__proto__:null,faAdd:bB,faArrowAltCircleRight:KB,faArrowDownToLine:B2,faArrowRightRotate:WB,faArrowRotateForward:qB,faArrowRotateRight:Zc,faArrowToBottom:rD,faArrowToTop:vD,faArrowUpToLine:$2,faAutomobile:EB,faBadgeCheck:XB,faBan:R2,faBars:V2,faBell:SB,faBuilding:dB,faCalendar:uB,faCalendarCheck:$B,faCalendarCircleExclamation:pD,faCalendarClock:I2,faCalendarEdit:lD,faCalendarExclamation:mD,faCalendarPen:L2,faCalendarTime:LB,faCancel:sD,faCar:S2,faCarMirrors:BB,faCars:mB,faCheck:cB,faCheckCircle:eD,faChevronDown:wB,faChevronLeft:pB,faChevronRight:fB,faChevronUp:fD,faCircleCheck:N2,faCircleExclamation:z2,faCircleInfo:A2,faCircleRight:M2,faClipboard:aD,faClipboardCheck:GB,faClock:T2,faClockFour:DB,faClose:hB,faCode:JB,faDriversLicense:AB,faEnvelope:FB,faEur:tD,faEuro:nD,faEuroSign:Jp,faExclamationCircle:gD,faExclamationTriangle:sB,faFilter:ZB,faHome:TB,faHomeAlt:PB,faHomeLgAlt:IB,faHouse:Qc,faHyphen:wD,faIdCard:E2,faIdCardAlt:oB,faIdCardClip:w2,faInfoCircle:zB,faKey:cD,faLeftFromBracket:UB,faLocationDot:C2,faLock:hD,faMagnifyingGlass:_2,faMapMarkerAlt:CB,faMinus:P2,faMobile:Kp,faMobileAndroid:MB,faMobilePhone:OB,faMultiply:vB,faNavicon:yD,faPaperPlane:iB,faPaperclip:VB,faPencil:j2,faPencilAlt:_D,faPhone:HB,faPlus:k2,faRedo:YB,faRemove:gB,faRightToBracket:D2,faSearch:kB,faSensorAlert:bD,faSensorTriangleExclamation:F2,faSignInAlt:oD,faSliders:x2,faSlidersH:NB,faStar:iD,faStarHalfAlt:QB,faStarHalfStroke:O2,faStopwatch:dD,faSubtract:RB,faThumbsDown:xB,faThumbsUp:aB,faTimer:_B,faTimes:yB,faTrash:jB,faTriangleExclamation:Xp,faUser:uD,faUserCheck:kD,faWarning:lB,faXmark:Ws},Symbol.toStringTag,{value:"Module"}));var H2={prefix:"fas",iconName:"arrow-up-to-line",icon:[384,512,["arrow-to-top"],"f341","M32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l320 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM214.6 169.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 269.3 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-178.7 73.4 73.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-128-128z"]},SD=H2,ED={prefix:"fas",iconName:"bell",icon:[448,512,[61602,128276],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416l384 0c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8l0-18.8c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"]},xD={prefix:"fas",iconName:"bug",icon:[512,512,[],"f188","M256 0c53 0 96 43 96 96l0 3.6c0 15.7-12.7 28.4-28.4 28.4l-135.1 0c-15.7 0-28.4-12.7-28.4-28.4l0-3.6c0-53 43-96 96-96zM41.4 105.4c12.5-12.5 32.8-12.5 45.3 0l64 64c.7 .7 1.3 1.4 1.9 2.1c14.2-7.3 30.4-11.4 47.5-11.4l112 0c17.1 0 33.2 4.1 47.5 11.4c.6-.7 1.2-1.4 1.9-2.1l64-64c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-64 64c-.7 .7-1.4 1.3-2.1 1.9c6.2 12 10.1 25.3 11.1 39.5l64.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c0 24.6-5.5 47.8-15.4 68.6c2.2 1.3 4.2 2.9 6 4.8l64 64c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-63.1-63.1c-24.5 21.8-55.8 36.2-90.3 39.6L272 240c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 239.2c-34.5-3.4-65.8-17.8-90.3-39.6L86.6 502.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l64-64c1.9-1.9 3.9-3.4 6-4.8C101.5 367.8 96 344.6 96 320l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64.3 0c1.1-14.1 5-27.5 11.1-39.5c-.7-.6-1.4-1.2-2.1-1.9l-64-64c-12.5-12.5-12.5-32.8 0-45.3z"]},TD={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},U2={prefix:"fas",iconName:"dash",icon:[512,512,["minus-large"],"e404","M0 256c0-17.7 14.3-32 32-32l448 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"]},PD=U2,ID={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 242.7-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7 288 32zM64 352c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-101.5 0-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352 64 352zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},AD={prefix:"fas",iconName:"envelope",icon:[512,512,[9993,61443,128386],"f0e0","M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-208L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"]},MD={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},OD={prefix:"fas",iconName:"horizontal-rule",icon:[640,512,[8213],"f86c","M0 256c0-17.7 14.3-32 32-32l576 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"]},ND={prefix:"fas",iconName:"hyphen",icon:[320,512,[],"2d","M0 256c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"]},BD={prefix:"fas",iconName:"key",icon:[512,512,[128273],"f084","M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0S160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17l0 80c0 13.3 10.7 24 24 24l80 0c13.3 0 24-10.7 24-24l0-40 40 0c13.3 0 24-10.7 24-24l0-40 40 0c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3zM376 96a40 40 0 1 1 0 80 40 40 0 1 1 0-80z"]},W2={prefix:"fas",iconName:"mobile-notch",icon:[384,512,["mobile-iphone"],"e1ee","M128 64l0 16c0 8.8 7.2 16 16 16l96 0c8.8 0 16-7.2 16-16l0-16 32 0c8.8 0 16 7.2 16 16l0 352c0 8.8-7.2 16-16 16L96 448c-8.8 0-16-7.2-16-16L80 80c0-8.8 7.2-16 16-16l32 0zM96 0C51.8 0 16 35.8 16 80l0 352c0 44.2 35.8 80 80 80l192 0c44.2 0 80-35.8 80-80l0-352c0-44.2-35.8-80-80-80L96 0zm32 400c0 8.8 7.2 16 16 16l96 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-96 0c-8.8 0-16 7.2-16 16z"]},DD=W2,q2={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},RD=q2,LD={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"]},$D={prefix:"fas",iconName:"stopwatch",icon:[448,512,[9201],"f2f2","M176 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l16 0 0 34.4C92.3 113.8 16 200 16 304c0 114.9 93.1 208 208 208s208-93.1 208-208c0-41.8-12.3-80.7-33.5-113.2l24.1-24.1c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L355.7 143c-28.1-23-62.2-38.8-99.7-44.6L256 64l16 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L224 0 176 0zm72 192l0 128c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-128c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},Y2={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16z"]},zD=Y2,VD={prefix:"fas",iconName:"user",icon:[448,512,[62144,128100],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},qs={prefix:"fas",iconName:"xmark",icon:[384,512,[215,10005,10006,10060,128473,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},FD=qs,jD=qs,HD=qs,UD=qs;const WD=Object.freeze(Object.defineProperty({__proto__:null,faArrowToTop:SD,faArrowUpToLine:H2,faBell:ED,faBug:xD,faCheck:TD,faClose:FD,faDash:U2,faDownload:ID,faEnvelope:AD,faEye:MD,faHorizontalRule:OD,faHyphen:ND,faKey:BD,faMinusLarge:PD,faMobileIphone:DD,faMobileNotch:W2,faMultiply:jD,faPencil:q2,faPencilAlt:RD,faRemove:HD,faStar:LD,faStopwatch:$D,faTimes:UD,faTrashAlt:zD,faTrashCan:Y2,faUser:VD,faXmark:qs},Symbol.toStringTag,{value:"Module"}));var zn={far:{},fas:{}},G2=[];function X2(e){Object.keys(e).forEach(function(t){if(t!=="prefix"){var n=e[t],r=n.icon[2];r.forEach(function(o){typeof o=="string"&&(zn[n.prefix][o]=n)}),zn[n.prefix][n.iconName]=n,G2.push(n)}})}X2(CD);X2(WD);const qe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Xr="8.50.0",Qe=globalThis;function eu(e,t,n){const r=n||Qe,o=r.__SENTRY__=r.__SENTRY__||{},i=o[Xr]=o[Xr]||{};return i[e]||(i[e]=t())}const Fa=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,qD="Sentry Logger ",of=["debug","info","warn","error","log","assert","trace"],uc={};function mr(e){if(!("console"in Qe))return e();const t=Qe.console,n={},r=Object.keys(uc);r.forEach(o=>{const i=uc[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function YD(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Fa?of.forEach(n=>{t[n]=(...r)=>{e&&mr(()=>{Qe.console[n](`${qD}[${n}]:`,...r)})}}):of.forEach(n=>{t[n]=()=>{}}),t}const _e=eu("logger",YD),K2=50,bo="?",Vv=/\(error: (.*)\)/,Fv=/captureMessage|captureException/;function J2(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{const i=[],s=n.split(`
642
- `);for(let l=r;l<s.length;l++){const c=s[l];if(c.length>1024)continue;const d=Vv.test(c)?c.replace(Vv,"$1"):c;if(!d.match(/\S*Error: /)){for(const u of t){const f=u(d);if(f){i.push(f);break}}if(i.length>=K2+o)break}}return XD(i.slice(o))}}function GD(e){return Array.isArray(e)?J2(...e):e}function XD(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(gl(t).function||"")&&t.pop(),t.reverse(),Fv.test(gl(t).function||"")&&(t.pop(),Fv.test(gl(t).function||"")&&t.pop()),t.slice(0,K2).map(n=>({...n,filename:n.filename||gl(t).filename,function:n.function||bo}))}function gl(e){return e[e.length-1]||{}}const td="<anonymous>";function na(e){try{return!e||typeof e!="function"?td:e.name||td}catch{return td}}function jv(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const $l={},Hv={};function ja(e,t){$l[e]=$l[e]||[],$l[e].push(t)}function Ha(e,t){if(!Hv[e]){Hv[e]=!0;try{t()}catch(n){Fa&&_e.error(`Error while instrumenting ${e}`,n)}}}function jn(e,t){const n=e&&$l[e];if(n)for(const r of n)try{r(t)}catch(o){Fa&&_e.error(`Error while triggering instrumentation handler.
641
+ 9.44104 15 10.2041 15 10.9998V10.9998Z`},null,-1)]))}const eB=Ln(JN,[["render",ZN]]);function tB(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","data-slot":"icon"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function nB(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","data-slot":"icon"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function y2(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","data-slot":"icon"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function Yp(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","data-slot":"icon"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})])}function b2(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","data-slot":"icon"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function rB(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","data-slot":"icon"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"})])}function Gp(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","data-slot":"icon"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}var aB={prefix:"far",iconName:"thumbs-up",icon:[512,512,[61575,128077],"f164","M323.8 34.8c-38.2-10.9-78.1 11.2-89 49.4l-5.7 20c-3.7 13-10.4 25-19.5 35l-51.3 56.4c-8.9 9.8-8.2 25 1.6 33.9s25 8.2 33.9-1.6l51.3-56.4c14.1-15.5 24.4-34 30.1-54.1l5.7-20c3.6-12.7 16.9-20.1 29.7-16.5s20.1 16.9 16.5 29.7l-5.7 20c-5.7 19.9-14.7 38.7-26.6 55.5c-5.2 7.3-5.8 16.9-1.7 24.9s12.3 13 21.3 13L448 224c8.8 0 16 7.2 16 16c0 6.8-4.3 12.7-10.4 15c-7.4 2.8-13 9-14.9 16.7s.1 15.8 5.3 21.7c2.5 2.8 4 6.5 4 10.6c0 7.8-5.6 14.3-13 15.7c-8.2 1.6-15.1 7.3-18 15.2s-1.6 16.7 3.6 23.3c2.1 2.7 3.4 6.1 3.4 9.9c0 6.7-4.2 12.6-10.2 14.9c-11.5 4.5-17.7 16.9-14.4 28.8c.4 1.3 .6 2.8 .6 4.3c0 8.8-7.2 16-16 16l-97.5 0c-12.6 0-25-3.7-35.5-10.7l-61.7-41.1c-11-7.4-25.9-4.4-33.3 6.7s-4.4 25.9 6.7 33.3l61.7 41.1c18.4 12.3 40 18.8 62.1 18.8l97.5 0c34.7 0 62.9-27.6 64-62c14.6-11.7 24-29.7 24-50c0-4.5-.5-8.8-1.3-13c15.4-11.7 25.3-30.2 25.3-51c0-6.5-1-12.8-2.8-18.7C504.8 273.7 512 257.7 512 240c0-35.3-28.6-64-64-64l-92.3 0c4.7-10.4 8.7-21.2 11.8-32.2l5.7-20c10.9-38.2-11.2-78.1-49.4-89zM32 192c-17.7 0-32 14.3-32 32L0 448c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32l0-224c0-17.7-14.3-32-32-32l-64 0z"]},w2={prefix:"far",iconName:"id-card-clip",icon:[576,512,["id-card-alt"],"f47f","M256 0c-17.7 0-32 14.3-32 32l0 64c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32l0-64c0-17.7-14.3-32-32-32L256 0zM192 64L64 64C28.7 64 0 92.7 0 128L0 448c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L384 64l0 48 128 0c8.8 0 16 7.2 16 16l0 320c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l128 0 0-48zm96 240a64 64 0 1 0 0-128 64 64 0 1 0 0 128zm-32 32c-44.2 0-80 35.8-80 80c0 8.8 7.2 16 16 16l192 0c8.8 0 16-7.2 16-16c0-44.2-35.8-80-80-80l-64 0z"]},oB=w2,iB={prefix:"far",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376l0 103.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"]},Xp={prefix:"far",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M248.4 84.3c1.6-2.7 4.5-4.3 7.6-4.3s6 1.6 7.6 4.3L461.9 410c1.4 2.3 2.1 4.9 2.1 7.5c0 8-6.5 14.5-14.5 14.5l-387 0c-8 0-14.5-6.5-14.5-14.5c0-2.7 .7-5.3 2.1-7.5L248.4 84.3zm-41-25L9.1 385c-6 9.8-9.1 21-9.1 32.5C0 452 28 480 62.5 480l387 0c34.5 0 62.5-28 62.5-62.5c0-11.5-3.2-22.7-9.1-32.5L304.6 59.3C294.3 42.4 275.9 32 256 32s-38.3 10.4-48.6 27.3zM288 368a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm-8-184c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 96c0 13.3 10.7 24 24 24s24-10.7 24-24l0-96z"]},sB=Xp,lB=Xp,cB={prefix:"far",iconName:"check",icon:[448,512,[10003,10004],"f00c","M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"]},uB={prefix:"far",iconName:"calendar",icon:[448,512,[128197,128198],"f133","M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L64 64C28.7 64 0 92.7 0 128l0 16 0 48L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-256 0-48 0-16c0-35.3-28.7-64-64-64l-40 0 0-40c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L152 64l0-40zM48 192l352 0 0 256c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256z"]},dB={prefix:"far",iconName:"building",icon:[384,512,[61687,127970],"f1ad","M64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l80 0 0-64c0-26.5 21.5-48 48-48s48 21.5 48 48l0 64 80 0c8.8 0 16-7.2 16-16l0-384c0-8.8-7.2-16-16-16L64 48zM0 64C0 28.7 28.7 0 64 0L320 0c35.3 0 64 28.7 64 64l0 384c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm88 40c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16l0 48c0 8.8-7.2 16-16 16l-48 0c-8.8 0-16-7.2-16-16l0-48zM232 88l48 0c8.8 0 16 7.2 16 16l0 48c0 8.8-7.2 16-16 16l-48 0c-8.8 0-16-7.2-16-16l0-48c0-8.8 7.2-16 16-16zM88 232c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16l0 48c0 8.8-7.2 16-16 16l-48 0c-8.8 0-16-7.2-16-16l0-48zm144-16l48 0c8.8 0 16 7.2 16 16l0 48c0 8.8-7.2 16-16 16l-48 0c-8.8 0-16-7.2-16-16l0-48c0-8.8 7.2-16 16-16z"]},fB={prefix:"far",iconName:"chevron-right",icon:[320,512,[9002],"f054","M305 239c9.4 9.4 9.4 24.6 0 33.9L113 465c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l175-175L79 81c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L305 239z"]},pB={prefix:"far",iconName:"chevron-left",icon:[320,512,[9001],"f053","M15 239c-9.4 9.4-9.4 24.6 0 33.9L207 465c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L65.9 256 241 81c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0L15 239z"]},mB={prefix:"far",iconName:"cars",icon:[640,512,[],"f85b","M137.8 48l140.3 0c10.1 0 19.2 6.4 22.6 15.9L317.9 112 98.1 112l17.2-48.1c3.4-9.6 12.5-15.9 22.6-15.9zM41.4 127.9c-.2 .5-.3 .9-.5 1.4C16.2 146.7 0 175.5 0 208l0 32 0 16 0 32 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 172.1 0c5.3-6.6 11.3-12.7 17.8-18.2L248.5 240 48 240l0-32c0-26.5 21.5-48 48-48l190.8 0c19.2-20 46.1-32 75.1-32l12.8 0c0 0 0 0 0-.1L346 47.8C335.7 19.1 308.6 0 278.2 0L137.8 0C107.4 0 80.3 19.1 70 47.8L41.4 127.9zM112 224a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm249.8-16l140.3 0c10.1 0 19.2 6.4 22.6 15.9L541.9 272l-219.9 0 17.2-48.1c3.4-9.6 12.5-15.9 22.6-15.9zm-96.4 79.9c-.2 .5-.3 .9-.5 1.4C240.2 306.7 224 335.5 224 368l0 32 0 16 0 32 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 320 0 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 0-32 0-16 0-32c0-32.5-16.2-61.3-40.9-78.7c-.1-.5-.3-.9-.5-1.4L570 207.8c-10.2-28.7-37.4-47.8-67.8-47.8l-140.3 0c-30.4 0-57.6 19.1-67.8 47.8l-28.6 80.1zM544 320c26.5 0 48 21.5 48 48l0 32-320 0 0-32c0-26.5 21.5-48 48-48l224 0zM336 384a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm216-24a24 24 0 1 0 -48 0 24 24 0 1 0 48 0z"]},Ws={prefix:"far",iconName:"xmark",icon:[384,512,[215,10005,10006,10060,128473,"close","multiply","remove","times"],"f00d","M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"]},hB=Ws,vB=Ws,gB=Ws,yB=Ws,k2={prefix:"far",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M248 72c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 160L40 232c-13.3 0-24 10.7-24 24s10.7 24 24 24l160 0 0 160c0 13.3 10.7 24 24 24s24-10.7 24-24l0-160 160 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-160 0 0-160z"]},bB=k2,wB={prefix:"far",iconName:"chevron-down",icon:[512,512,[],"f078","M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"]},_2={prefix:"far",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M368 208A160 160 0 1 0 48 208a160 160 0 1 0 320 0zM337.1 371.1C301.7 399.2 256.8 416 208 416C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208c0 48.8-16.8 93.7-44.9 129.1L505 471c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L337.1 371.1z"]},kB=_2,_B={prefix:"far",iconName:"timer",icon:[512,512,[],"e29e","M232 24c0-13.3 10.7-24 24-24C397.4 0 512 114.6 512 256s-114.6 256-256 256S0 397.4 0 256c0-37.9 8.2-73.8 23-106.1c6-13.2 13.1-25.8 21.2-37.6l.1-.2C53.4 98.7 63.6 86.3 75 75c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9c-9.2 9.2-17.6 19.3-25 30.1l-.1 .2c-21.2 31.2-34.2 68.5-35.7 108.7c-.1 2.7-.2 5.4-.2 8.1c0 114.9 93.1 208 208 208s208-93.1 208-208c0-106.8-80.4-194.7-184-206.6l0 54.6c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-80zM159 159c9.4-9.4 24.6-9.4 33.9 0l80 80c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-80-80c-9.4-9.4-9.4-24.6 0-33.9z"]},C2={prefix:"far",iconName:"location-dot",icon:[384,512,["map-marker-alt"],"f3c5","M336 192c0-79.5-64.5-144-144-144S48 112.5 48 192c0 12.4 4.5 31.6 15.3 57.2c10.5 24.8 25.4 52.2 42.5 79.9c28.5 46.2 61.5 90.8 86.2 122.6c24.8-31.8 57.8-76.4 86.2-122.6c17.1-27.7 32-55.1 42.5-79.9C331.5 223.6 336 204.4 336 192zm48 0c0 87.4-117 243-168.3 307.2c-12.3 15.3-35.1 15.3-47.4 0C117 435 0 279.4 0 192C0 86 86 0 192 0S384 86 384 192zm-160 0a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm-112 0a80 80 0 1 1 160 0 80 80 0 1 1 -160 0z"]},CB=C2,SB={prefix:"far",iconName:"bell",icon:[448,512,[61602,128276],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 25.4c0 45.4-15.5 89.5-43.8 124.9L5.3 377c-5.8 7.2-6.9 17.1-2.9 25.4S14.8 416 24 416l400 0c9.2 0 17.6-5.3 21.6-13.6s2.9-18.2-2.9-25.4l-14.9-18.6C399.5 322.9 384 278.8 384 233.4l0-25.4c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm0 96c61.9 0 112 50.1 112 112l0 25.4c0 47.9 13.9 94.6 39.7 134.6L72.3 368C98.1 328 112 281.3 112 233.4l0-25.4c0-61.9 50.1-112 112-112zm64 352l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7s18.7-28.3 18.7-45.3z"]},S2={prefix:"far",iconName:"car",icon:[512,512,[128664,"automobile"],"f1b9","M127.7 106.8L103.4 176l305.1 0-24.2-69.2c-5.6-16-20.8-26.8-37.8-26.8L165.4 80c-17 0-32.1 10.7-37.8 26.8zm-79.6 82L82.3 90.9C94.7 55.6 128 32 165.4 32l181.2 0c37.4 0 70.7 23.6 83.1 58.9l34.3 97.9C492.6 205.4 512 236.4 512 272l0 80 0 48 0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56L48 400l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56 0-48 0-80c0-35.6 19.3-66.6 48.1-83.2zM416 224L96 224c-26.5 0-48 21.5-48 48l0 80 416 0 0-80c0-26.5-21.5-48-48-48zM112 256a32 32 0 1 1 0 64 32 32 0 1 1 0-64zm256 32a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},EB=S2,xB={prefix:"far",iconName:"thumbs-down",icon:[512,512,[61576,128078],"f165","M323.8 477.2c-38.2 10.9-78.1-11.2-89-49.4l-5.7-20c-3.7-13-10.4-25-19.5-35l-51.3-56.4c-8.9-9.8-8.2-25 1.6-33.9s25-8.2 33.9 1.6l51.3 56.4c14.1 15.5 24.4 34 30.1 54.1l5.7 20c3.6 12.7 16.9 20.1 29.7 16.5s20.1-16.9 16.5-29.7l-5.7-20c-5.7-19.9-14.7-38.7-26.6-55.5c-5.2-7.3-5.8-16.9-1.7-24.9s12.3-13 21.3-13L448 288c8.8 0 16-7.2 16-16c0-6.8-4.3-12.7-10.4-15c-7.4-2.8-13-9-14.9-16.7s.1-15.8 5.3-21.7c2.5-2.8 4-6.5 4-10.6c0-7.8-5.6-14.3-13-15.7c-8.2-1.6-15.1-7.3-18-15.2s-1.6-16.7 3.6-23.3c2.1-2.7 3.4-6.1 3.4-9.9c0-6.7-4.2-12.6-10.2-14.9c-11.5-4.5-17.7-16.9-14.4-28.8c.4-1.3 .6-2.8 .6-4.3c0-8.8-7.2-16-16-16l-97.5 0c-12.6 0-25 3.7-35.5 10.7l-61.7 41.1c-11 7.4-25.9 4.4-33.3-6.7s-4.4-25.9 6.7-33.3l61.7-41.1c18.4-12.3 40-18.8 62.1-18.8L384 32c34.7 0 62.9 27.6 64 62c14.6 11.7 24 29.7 24 50c0 4.5-.5 8.8-1.3 13c15.4 11.7 25.3 30.2 25.3 51c0 6.5-1 12.8-2.8 18.7C504.8 238.3 512 254.3 512 272c0 35.3-28.6 64-64 64l-92.3 0c4.7 10.4 8.7 21.2 11.8 32.2l5.7 20c10.9 38.2-11.2 78.1-49.4 89zM32 384c-17.7 0-32-14.3-32-32L0 128c0-17.7 14.3-32 32-32l64 0c17.7 0 32 14.3 32 32l0 224c0 17.7-14.3 32-32 32l-64 0z"]},Qc={prefix:"far",iconName:"house",icon:[576,512,[63498,63500,127968,"home","home-alt","home-lg-alt"],"f015","M303.5 5.7c-9-7.6-22.1-7.6-31.1 0l-264 224c-10.1 8.6-11.3 23.7-2.8 33.8s23.7 11.3 33.8 2.8L64 245.5 64 432c0 44.2 35.8 80 80 80l288 0c44.2 0 80-35.8 80-80l0-186.5 24.5 20.8c10.1 8.6 25.3 7.3 33.8-2.8s7.3-25.3-2.8-33.8l-264-224zM112 432l0-227.2L288 55.5 464 204.8 464 432c0 17.7-14.3 32-32 32l-48 0 0-152c0-22.1-17.9-40-40-40l-112 0c-22.1 0-40 17.9-40 40l0 152-48 0c-17.7 0-32-14.3-32-32zm128 32l0-144 96 0 0 144-96 0z"]},TB=Qc,PB=Qc,IB=Qc,E2={prefix:"far",iconName:"id-card",icon:[576,512,[62147,"drivers-license"],"f2c2","M528 160l0 256c0 8.8-7.2 16-16 16l-192 0c0-44.2-35.8-80-80-80l-64 0c-44.2 0-80 35.8-80 80l-32 0c-8.8 0-16-7.2-16-16l0-256 480 0zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zM272 256a64 64 0 1 0 -128 0 64 64 0 1 0 128 0zm104-48c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-80 0zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-80 0z"]},AB=E2,Kp={prefix:"far",iconName:"mobile",icon:[384,512,[128241,"mobile-android","mobile-phone"],"f3ce","M80 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l224 0c8.8 0 16-7.2 16-16l0-384c0-8.8-7.2-16-16-16L80 48zM16 64C16 28.7 44.7 0 80 0L304 0c35.3 0 64 28.7 64 64l0 384c0 35.3-28.7 64-64 64L80 512c-35.3 0-64-28.7-64-64L16 64zM160 400l64 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-64 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},MB=Kp,OB=Kp,x2={prefix:"far",iconName:"sliders",icon:[512,512,["sliders-h"],"f1de","M0 416c0 13.3 10.7 24 24 24l59.7 0c10.2 32.5 40.5 56 76.3 56s66.1-23.5 76.3-56L488 440c13.3 0 24-10.7 24-24s-10.7-24-24-24l-251.7 0c-10.2-32.5-40.5-56-76.3-56s-66.1 23.5-76.3 56L24 392c-13.3 0-24 10.7-24 24zm128 0a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zM320 256a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm32-80c-35.8 0-66.1 23.5-76.3 56L24 232c-13.3 0-24 10.7-24 24s10.7 24 24 24l251.7 0c10.2 32.5 40.5 56 76.3 56s66.1-23.5 76.3-56l59.7 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-59.7 0c-10.2-32.5-40.5-56-76.3-56zM192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm76.3-56C258.1 39.5 227.8 16 192 16s-66.1 23.5-76.3 56L24 72C10.7 72 0 82.7 0 96s10.7 24 24 24l91.7 0c10.2 32.5 40.5 56 76.3 56s66.1-23.5 76.3-56L488 120c13.3 0 24-10.7 24-24s-10.7-24-24-24L268.3 72z"]},NB=x2,BB={prefix:"far",iconName:"car-mirrors",icon:[576,512,[],"e343","M197.4 80c-17 0-32.1 10.7-37.8 26.8L135.4 176l305.1 0-24.2-69.2c-5.6-16-20.8-26.8-37.8-26.8L197.4 80zM44.8 224L40 224c-13.3 0-24-10.7-24-24s10.7-24 24-24l44.6 0 29.8-85.1C126.7 55.6 160 32 197.4 32l181.2 0c37.4 0 70.7 23.6 83.1 58.9L491.4 176l44.6 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-4.8 0c8.2 14.1 12.8 30.5 12.8 48l0 80 0 48 0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56L80 400l0 56c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-56 0-48 0-80c0-17.5 4.7-33.9 12.8-48zm83.2 0c-26.5 0-48 21.5-48 48l0 80 416 0 0-80c0-26.5-21.5-48-48-48l-320 0zm-16 64a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm320-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},T2={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},DB=T2,P2={prefix:"far",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 13.3-10.7 24-24 24L40 280c-13.3 0-24-10.7-24-24s10.7-24 24-24l368 0c13.3 0 24 10.7 24 24z"]},RB=P2,I2={prefix:"far",iconName:"calendar-clock",icon:[576,512,["calendar-time"],"e0d2","M128 0c13.3 0 24 10.7 24 24l0 40 144 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 40 0c35.3 0 64 28.7 64 64l0 16 0 48-16 0-32 0-112 0L48 192l0 256c0 8.8 7.2 16 16 16l220.5 0c12.3 18.8 28 35.1 46.3 48L64 512c-35.3 0-64-28.7-64-64L0 192l0-48 0-16C0 92.7 28.7 64 64 64l40 0 0-40c0-13.3 10.7-24 24-24zM288 368a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-80c-8.8 0-16 7.2-16 16l0 64c0 8.8 7.2 16 16 16l48 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-48c0-8.8-7.2-16-16-16z"]},LB=I2,$B={prefix:"far",iconName:"calendar-check",icon:[448,512,[],"f274","M128 0c13.3 0 24 10.7 24 24l0 40 144 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 40 0c35.3 0 64 28.7 64 64l0 16 0 48 0 256c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 192l0-48 0-16C0 92.7 28.7 64 64 64l40 0 0-40c0-13.3 10.7-24 24-24zM400 192L48 192l0 256c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-256zM329 297L217 409c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47 95-95c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},A2={prefix:"far",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-88c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 64-24 0zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},zB=A2,VB={prefix:"far",iconName:"paperclip",icon:[448,512,[128206],"f0c6","M375 73c-26-26-68.1-26-94.1 0L89 265C45.3 308.6 45.3 379.4 89 423s114.4 43.6 158.1 0L399 271c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L281 457c-62.4 62.4-163.5 62.4-225.9 0S-7.4 293.4 55 231L247 39C291.7-5.7 364.3-5.7 409 39s44.7 117.2 0 161.9L225.2 384.7c-31.6 31.6-83.6 28.7-111.5-6.2c-23.8-29.8-21.5-72.8 5.5-99.8L271 127c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L153.2 312.7c-9.7 9.7-10.6 25.1-2 35.8c10 12.5 28.7 13.6 40 2.2L375 167c26-26 26-68.1 0-94.1z"]},FB={prefix:"far",iconName:"envelope",icon:[512,512,[9993,61443,128386],"f0e0","M64 112c-8.8 0-16 7.2-16 16l0 22.1L220.5 291.7c20.7 17 50.4 17 71.1 0L464 150.1l0-22.1c0-8.8-7.2-16-16-16L64 112zM48 212.2L48 384c0 8.8 7.2 16 16 16l384 0c8.8 0 16-7.2 16-16l0-171.8L322 328.8c-38.4 31.5-93.7 31.5-132 0L48 212.2zM0 128C0 92.7 28.7 64 64 64l384 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 128z"]},jB={prefix:"far",iconName:"trash",icon:[448,512,[],"f1f8","M177.1 48l93.7 0c2.7 0 5.2 1.3 6.7 3.6l19 28.4-145 0 19-28.4c1.5-2.2 4-3.6 6.7-3.6zM354.2 80L317.5 24.9C307.1 9.4 289.6 0 270.9 0L177.1 0c-18.7 0-36.2 9.4-46.6 24.9L93.8 80 80.1 80 32 80l-8 0C10.7 80 0 90.7 0 104s10.7 24 24 24l11.6 0L59.6 452.7c2.5 33.4 30.3 59.3 63.8 59.3l201.1 0c33.5 0 61.3-25.9 63.8-59.3L412.4 128l11.6 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0-48.1 0-13.7 0zm10.1 48L340.5 449.2c-.6 8.4-7.6 14.8-16 14.8l-201.1 0c-8.4 0-15.3-6.5-16-14.8L83.7 128l280.6 0z"]},HB={prefix:"far",iconName:"phone",icon:[512,512,[128222,128379],"f095","M375.8 275.2c-16.4-7-35.4-2.4-46.7 11.4l-33.2 40.6c-46-26.7-84.4-65.1-111.1-111.1L225.3 183c13.8-11.3 18.5-30.3 11.4-46.7l-48-112C181.2 6.7 162.3-3.1 143.6 .9l-112 24C13.2 28.8 0 45.1 0 64c0 0 0 0 0 0C0 295.2 175.2 485.6 400.1 509.5c9.8 1 19.6 1.8 29.6 2.2c0 0 0 0 0 0c0 0 .1 0 .1 0c6.1 .2 12.1 .4 18.2 .4c0 0 0 0 0 0c18.9 0 35.2-13.2 39.1-31.6l24-112c4-18.7-5.8-37.6-23.4-45.1l-112-48zM441.5 464C225.8 460.5 51.5 286.2 48.1 70.5l99.2-21.3 43 100.4L154.4 179c-18.2 14.9-22.9 40.8-11.1 61.2c30.9 53.3 75.3 97.7 128.6 128.6c20.4 11.8 46.3 7.1 61.2-11.1l29.4-35.9 100.4 43L441.5 464zM48 64s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0z"]},UB={prefix:"far",iconName:"left-from-bracket",icon:[512,512,[],"e66c","M160 365.8L50 256 160 146.2l0 53.8c0 13.3 10.7 24 24 24l120 0 0 64-120 0c-13.3 0-24 10.7-24 24l0 53.8zM0 256c0 11.5 4.6 22.5 12.7 30.6L128.8 402.4c8.7 8.7 20.5 13.6 32.8 13.6c25.6 0 46.4-20.8 46.4-46.4l0-33.6 96 0c26.5 0 48-21.5 48-48l0-64c0-26.5-21.5-48-48-48l-96 0 0-33.6c0-25.6-20.8-46.4-46.4-46.4c-12.3 0-24.1 4.9-32.8 13.6L12.7 225.4C4.6 233.5 0 244.5 0 256zM344 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c48.6 0 88-39.4 88-88l0-272c0-48.6-39.4-88-88-88l-80 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c22.1 0 40 17.9 40 40l0 272c0 22.1-17.9 40-40 40l-80 0z"]},Zc={prefix:"far",iconName:"arrow-rotate-right",icon:[512,512,[8635,"arrow-right-rotate","arrow-rotate-forward","redo"],"f01e","M472 224c13.3 0 24-10.7 24-24l0-144c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 80.1-20-23.5C387 63.4 325.1 32 256 32C132.3 32 32 132.3 32 256s100.3 224 224 224c50.4 0 97-16.7 134.4-44.8c10.6-8 12.7-23 4.8-33.6s-23-12.7-33.6-4.8C332.2 418.9 295.7 432 256 432c-97.2 0-176-78.8-176-176s78.8-176 176-176c54.3 0 102.9 24.6 135.2 63.4l.1 .2s0 0 0 0L418.9 176 328 176c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0z"]},WB=Zc,qB=Zc,YB=Zc,GB={prefix:"far",iconName:"clipboard-check",icon:[384,512,[],"f46c","M320 64l-40 0-9.6 0C263 27.5 230.7 0 192 0s-71 27.5-78.4 64L104 64 64 64C28.7 64 0 92.7 0 128L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64zM80 112l0 24c0 13.3 10.7 24 24 24l88 0 88 0c13.3 0 24-10.7 24-24l0-24 16 0c8.8 0 16 7.2 16 16l0 320c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l16 0zm88-32a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM289 267.6c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-89.7 89.7L129 287c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l53.3 53.3c4.5 4.5 10.6 7 17 7s12.5-2.5 17-7L289 267.6z"]},XB={prefix:"far",iconName:"badge-check",icon:[512,512,[],"f336","M200.3 81.5C210.9 61.5 231.9 48 256 48s45.1 13.5 55.7 33.5C317.1 91.7 329 96.6 340 93.2c21.6-6.6 46.1-1.4 63.1 15.7s22.3 41.5 15.7 63.1c-3.4 11 1.5 22.9 11.7 28.2c20 10.6 33.5 31.6 33.5 55.7s-13.5 45.1-33.5 55.7c-10.2 5.4-15.1 17.2-11.7 28.2c6.6 21.6 1.4 46.1-15.7 63.1s-41.5 22.3-63.1 15.7c-11-3.4-22.9 1.5-28.2 11.7c-10.6 20-31.6 33.5-55.7 33.5s-45.1-13.5-55.7-33.5c-5.4-10.2-17.2-15.1-28.2-11.7c-21.6 6.6-46.1 1.4-63.1-15.7S86.6 361.6 93.2 340c3.4-11-1.5-22.9-11.7-28.2C61.5 301.1 48 280.1 48 256s13.5-45.1 33.5-55.7C91.7 194.9 96.6 183 93.2 172c-6.6-21.6-1.4-46.1 15.7-63.1S150.4 86.6 172 93.2c11 3.4 22.9-1.5 28.2-11.7zM256 0c-35.9 0-67.8 17-88.1 43.4c-33-4.3-67.6 6.2-93 31.6s-35.9 60-31.6 93C17 188.2 0 220.1 0 256s17 67.8 43.4 88.1c-4.3 33 6.2 67.6 31.6 93s60 35.9 93 31.6C188.2 495 220.1 512 256 512s67.8-17 88.1-43.4c33 4.3 67.6-6.2 93-31.6s35.9-60 31.6-93C495 323.8 512 291.9 512 256s-17-67.8-43.4-88.1c4.3-33-6.2-67.6-31.6-93s-60-35.9-93-31.6C323.8 17 291.9 0 256 0zM369 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L369 209z"]},M2={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM294.6 151.2c-4.2-4.6-10.1-7.2-16.4-7.2C266 144 256 154 256 166.3l0 41.7-96 0c-17.7 0-32 14.3-32 32l0 32c0 17.7 14.3 32 32 32l96 0 0 41.7c0 12.3 10 22.3 22.3 22.3c6.2 0 12.1-2.6 16.4-7.2l84-91c3.5-3.8 5.4-8.7 5.4-13.9s-1.9-10.1-5.4-13.9l-84-91z"]},KB=M2,JB={prefix:"far",iconName:"code",icon:[640,512,[],"f121","M399.1 1.1c-12.7-3.9-26.1 3.1-30 15.8l-144 464c-3.9 12.7 3.1 26.1 15.8 30s26.1-3.1 30-15.8l144-464c3.9-12.7-3.1-26.1-15.8-30zm71.4 118.5c-9.1 9.7-8.6 24.9 1.1 33.9L580.9 256 471.6 358.5c-9.7 9.1-10.2 24.3-1.1 33.9s24.3 10.2 33.9 1.1l128-120c4.8-4.5 7.6-10.9 7.6-17.5s-2.7-13-7.6-17.5l-128-120c-9.7-9.1-24.9-8.6-33.9 1.1zm-301 0c-9.1-9.7-24.3-10.2-33.9-1.1l-128 120C2.7 243 0 249.4 0 256s2.7 13 7.6 17.5l128 120c9.7 9.1 24.9 8.6 33.9-1.1s8.6-24.9-1.1-33.9L59.1 256 168.4 153.5c9.7-9.1 10.2-24.3 1.1-33.9z"]},O2={prefix:"far",iconName:"star-half-stroke",icon:[576,512,["star-half-alt"],"f5c0","M309.5 13.5C305.5 5.2 297.1 0 287.9 0s-17.6 5.2-21.6 13.5L197.7 154.8 44.5 177.5c-9 1.3-16.5 7.6-19.3 16.3s-.5 18.1 5.9 24.5L142.2 328.4 116 483.9c-1.5 9 2.2 18.1 9.7 23.5s17.3 6 25.3 1.7l137-73.2 137 73.2c8.1 4.3 17.9 3.7 25.3-1.7s11.2-14.5 9.7-23.5L433.6 328.4 544.8 218.2c6.5-6.4 8.7-15.9 5.9-24.5s-10.3-14.9-19.3-16.3L378.1 154.8 309.5 13.5zM288 384.7l0-305.6 52.5 108.1c3.5 7.1 10.2 12.1 18.1 13.3l118.3 17.5L391 303c-5.5 5.5-8.1 13.3-6.8 21l20.2 119.6L299.2 387.5c-3.5-1.9-7.4-2.8-11.2-2.8z"]},QB=O2,ZB={prefix:"far",iconName:"filter",icon:[512,512,[],"f0b0","M0 73.7C0 50.7 18.7 32 41.7 32l428.6 0c23 0 41.7 18.7 41.7 41.7c0 9.6-3.3 18.9-9.4 26.3L336 304.5l0 143.2c0 17.8-14.5 32.3-32.3 32.3c-7.3 0-14.4-2.5-20.1-7l-92.5-73.4c-9.6-7.6-15.1-19.1-15.1-31.3l0-63.7L9.4 100C3.3 92.6 0 83.3 0 73.7zM55 80L218.6 280.8c3.5 4.3 5.4 9.6 5.4 15.2l0 68.4 64 50.8L288 296c0-5.5 1.9-10.9 5.4-15.2L457 80 55 80z"]},N2={prefix:"far",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L369 209z"]},eD=N2,Jp={prefix:"far",iconName:"euro-sign",icon:[320,512,[8364,"eur","euro"],"f153","M48.6 240c-.4 5.3-.6 10.6-.6 16s.2 10.7 .6 16L24 272c-13.3 0-24 10.7-24 24s10.7 24 24 24l33.3 0C84.8 412.5 170.5 480 272 480l24 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-24 0c-74.6 0-138.4-46.4-164-112l156 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L96.7 272c-.5-5.3-.7-10.6-.7-16s.2-10.7 .7-16L264 240c13.3 0 24-10.7 24-24s-10.7-24-24-24l-156 0c25.6-65.6 89.4-112 164-112l24 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-24 0C170.5 32 84.8 99.5 57.3 192L24 192c-13.3 0-24 10.7-24 24s10.7 24 24 24l24.6 0z"]},tD=Jp,nD=Jp,B2={prefix:"far",iconName:"arrow-down-to-line",icon:[384,512,["arrow-to-bottom"],"f33d","M360 480c13.3 0 24-10.7 24-24s-10.7-24-24-24L24 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l336 0zM174.5 344.4c4.5 4.8 10.9 7.6 17.5 7.6s12.9-2.7 17.5-7.6l128-136c9.1-9.7 8.6-24.8-1-33.9s-24.8-8.6-33.9 1L216 267.5l0-83.5 0-128c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 128 0 83.5L81.5 175.6c-9.1-9.7-24.3-10.1-33.9-1s-10.1 24.3-1 33.9l128 136z"]},rD=B2,aD={prefix:"far",iconName:"clipboard",icon:[384,512,[128203],"f328","M280 64l40 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 128C0 92.7 28.7 64 64 64l40 0 9.6 0C121 27.5 153.3 0 192 0s71 27.5 78.4 64l9.6 0zM64 112c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-320c0-8.8-7.2-16-16-16l-16 0 0 24c0 13.3-10.7 24-24 24l-88 0-88 0c-13.3 0-24-10.7-24-24l0-24-16 0zm128-8a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},D2={prefix:"far",iconName:"right-to-bracket",icon:[512,512,["sign-in-alt"],"f2f6","M192 365.8L302 256 192 146.2l0 53.8c0 13.3-10.7 24-24 24L48 224l0 64 120 0c13.3 0 24 10.7 24 24l0 53.8zM352 256c0 11.5-4.6 22.5-12.7 30.6L223.2 402.4c-8.7 8.7-20.5 13.6-32.8 13.6c-25.6 0-46.4-20.8-46.4-46.4l0-33.6-96 0c-26.5 0-48-21.5-48-48l0-64c0-26.5 21.5-48 48-48l96 0 0-33.6c0-25.6 20.8-46.4 46.4-46.4c12.3 0 24.1 4.9 32.8 13.6L339.3 225.4c8.1 8.1 12.7 19.1 12.7 30.6zm-8 176l80 0c22.1 0 40-17.9 40-40l0-272c0-22.1-17.9-40-40-40l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l80 0c48.6 0 88 39.4 88 88l0 272c0 48.6-39.4 88-88 88l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},oD=D2,iD={prefix:"far",iconName:"star",icon:[576,512,[11088,61446],"f005","M287.9 0c9.2 0 17.6 5.2 21.6 13.5l68.6 141.3 153.2 22.6c9 1.3 16.5 7.6 19.3 16.3s.5 18.1-5.9 24.5L433.6 328.4l26.2 155.6c1.5 9-2.2 18.1-9.7 23.5s-17.3 6-25.3 1.7l-137-73.2L151 509.1c-8.1 4.3-17.9 3.7-25.3-1.7s-11.2-14.5-9.7-23.5l26.2-155.6L31.1 218.2c-6.5-6.4-8.7-15.9-5.9-24.5s10.3-14.9 19.3-16.3l153.2-22.6L266.3 13.5C270.4 5.2 278.7 0 287.9 0zm0 79L235.4 187.2c-3.5 7.1-10.2 12.1-18.1 13.3L99 217.9 184.9 303c5.5 5.5 8.1 13.3 6.8 21L171.4 443.7l105.2-56.2c7.1-3.8 15.6-3.8 22.6 0l105.2 56.2L384.2 324.1c-1.3-7.7 1.2-15.5 6.8-21l85.9-85.1L358.6 200.5c-7.8-1.2-14.6-6.1-18.1-13.3L287.9 79z"]},R2={prefix:"far",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M385.1 419.1L92.9 126.9C64.8 162.3 48 207.2 48 256c0 114.9 93.1 208 208 208c48.8 0 93.7-16.8 129.1-44.9zm33.9-33.9C447.2 349.7 464 304.8 464 256c0-114.9-93.1-208-208-208c-48.8 0-93.7 16.8-129.1 44.9L419.1 385.1zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},sD=R2,L2={prefix:"far",iconName:"calendar-pen",icon:[448,512,["calendar-edit"],"f333","M128 0c13.3 0 24 10.7 24 24l0 40 144 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 40 0c35.3 0 64 28.7 64 64l0 16 0 48 0 256c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 192l0-48 0-16C0 92.7 28.7 64 64 64l40 0 0-40c0-13.3 10.7-24 24-24zM400 192L48 192l0 256c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-256zm-91.2 51c14.7 14.7 14.7 38.6 0 53.3l-14.9 14.9L240.6 258 255.5 243c14.7-14.7 38.6-14.7 53.3 0zM146.1 352.5L218 280.6l53.3 53.3-71.9 71.9c-4.1 4.1-9.2 7-14.9 8.4l-36.6 9.2c-5.5 1.4-11.2-.2-15.2-4.2s-5.6-9.7-4.2-15.2l9.2-36.6c1.4-5.6 4.3-10.8 8.4-14.9z"]},lD=L2,cD={prefix:"far",iconName:"key",icon:[512,512,[128273],"f084","M208 176c0-70.7 57.3-128 128-128s128 57.3 128 128s-57.3 128-128 128c-10.4 0-20.5-1.2-30.1-3.6c-8.1-2-16.7 .4-22.6 6.4L254.1 336 200 336c-13.3 0-24 10.7-24 24l0 40-40 0c-13.3 0-24 10.7-24 24l0 40-64 0 0-78.1L205.2 228.7c5.9-5.9 8.3-14.5 6.4-22.6c-2.3-9.6-3.6-19.7-3.6-30.1zM336 0C238.8 0 160 78.8 160 176c0 9.5 .7 18.8 2.2 27.9L7 359c-4.5 4.5-7 10.6-7 17L0 488c0 13.3 10.7 24 24 24l112 0c13.3 0 24-10.7 24-24l0-40 40 0c13.3 0 24-10.7 24-24l0-40 40 0c6.4 0 12.5-2.5 17-7l27.2-27.2c9.1 1.4 18.4 2.2 27.9 2.2c97.2 0 176-78.8 176-176S433.2 0 336 0zm32 176a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},uD={prefix:"far",iconName:"user",icon:[448,512,[62144,128100],"f007","M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464l349.5 0c-8.9-63.3-63.3-112-129-112l-91.4 0c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304l91.4 0C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7L29.7 512C13.3 512 0 498.7 0 482.3z"]},dD={prefix:"far",iconName:"stopwatch",icon:[448,512,[9201],"f2f2","M144 24c0-13.3 10.7-24 24-24L280 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-32 0 0 49.4c43.4 5 82.8 23.3 113.8 50.9L391 119c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-31 31c24 33.9 38.1 75.3 38.1 120c0 114.9-93.1 208-208 208S16 418.9 16 304C16 197.2 96.4 109.3 200 97.4L200 48l-32 0c-13.3 0-24-10.7-24-24zm80 440a160 160 0 1 0 0-320 160 160 0 1 0 0 320zm24-248l0 104c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-104c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},fD={prefix:"far",iconName:"chevron-up",icon:[512,512,[],"f077","M239 111c9.4-9.4 24.6-9.4 33.9 0L465 303c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-175-175L81 337c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 111z"]},pD={prefix:"far",iconName:"calendar-circle-exclamation",icon:[576,512,[],"e46e","M128 0c13.3 0 24 10.7 24 24l0 40 144 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 40 0c35.3 0 64 28.7 64 64l0 16 0 48-16 0-32 0-48 0L48 192l0 256c0 8.8 7.2 16 16 16l220.5 0c12.3 18.8 28 35.1 46.3 48L64 512c-35.3 0-64-28.7-64-64L0 192l0-48 0-16C0 92.7 28.7 64 64 64l40 0 0-40c0-13.3 10.7-24 24-24zM432 224a144 144 0 1 1 0 288 144 144 0 1 1 0-288zm0 240a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm0-192c-8.8 0-16 7.2-16 16l0 80c0 8.8 7.2 16 16 16s16-7.2 16-16l0-80c0-8.8-7.2-16-16-16z"]},mD={prefix:"far",iconName:"calendar-exclamation",icon:[448,512,[],"f334","M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L64 64C28.7 64 0 92.7 0 128l0 16 0 48L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-256 0-48 0-16c0-35.3-28.7-64-64-64l-40 0 0-40c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L152 64l0-40zM48 192l352 0 0 256c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256zM256 400a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm-8-152c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 64c0 13.3 10.7 24 24 24s24-10.7 24-24l0-64z"]},hD={prefix:"far",iconName:"lock",icon:[448,512,[128274],"f023","M144 128l0 64 160 0 0-64c0-44.2-35.8-80-80-80s-80 35.8-80 80zM96 192l0-64C96 57.3 153.3 0 224 0s128 57.3 128 128l0 64 32 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l32 0zM48 256l0 192c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-192c0-8.8-7.2-16-16-16L64 240c-8.8 0-16 7.2-16 16z"]},$2={prefix:"far",iconName:"arrow-up-to-line",icon:[384,512,["arrow-to-top"],"f341","M24 32C10.7 32 0 42.7 0 56S10.7 80 24 80l336 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L24 32zM209.5 167.6c-4.5-4.8-10.9-7.6-17.5-7.6s-12.9 2.7-17.5 7.6l-128 136c-9.1 9.7-8.6 24.8 1 33.9s24.8 8.6 33.9-1L168 244.5l0 83.5 0 128c0 13.3 10.7 24 24 24s24-10.7 24-24l0-128 0-83.5 86.5 91.9c9.1 9.7 24.3 10.1 33.9 1s10.1-24.3 1-33.9l-128-136z"]},vD=$2,z2={prefix:"far",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},gD=z2,V2={prefix:"far",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 88C0 74.7 10.7 64 24 64l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 112C10.7 112 0 101.3 0 88zM0 248c0-13.3 10.7-24 24-24l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 272c-13.3 0-24-10.7-24-24zM448 408c0 13.3-10.7 24-24 24L24 432c-13.3 0-24-10.7-24-24s10.7-24 24-24l400 0c13.3 0 24 10.7 24 24z"]},yD=V2,F2={prefix:"far",iconName:"sensor-triangle-exclamation",icon:[640,512,["sensor-alert"],"e029","M64 80l320 0c8.8 0 16 7.2 16 16l0 49.9c13.1-11.4 30.1-17.9 48-17.9l0-32c0-35.3-28.7-64-64-64L64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l161 0c-.6-4-1-8.1-1-12.3c0-12.5 3-24.7 8.9-35.7L64 432c-8.8 0-16-7.2-16-16L48 96c0-8.8 7.2-16 16-16zm80 72c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112zm96 0c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112zm21.8 293.8c-3.8 6.7-5.8 14.2-5.8 21.9c0 24.5 19.8 44.3 44.3 44.3l295.4 0c24.5 0 44.3-19.8 44.3-44.3c0-7.7-2-15.2-5.8-21.9l-150.4-265C476.5 168 462.8 160 448 160s-28.5 8-35.8 20.9l-150.4 265zM464 272l0 88c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-88c0-8.8 7.2-16 16-16s16 7.2 16 16zM448 408a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},bD=F2,wD={prefix:"far",iconName:"hyphen",icon:[320,512,[],"2d","M0 256c0-13.3 10.7-24 24-24l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 280c-13.3 0-24-10.7-24-24z"]},kD={prefix:"far",iconName:"user-check",icon:[640,512,[],"f4fc","M224 48a80 80 0 1 1 0 160 80 80 0 1 1 0-160zm0 208A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 96l91.4 0c65.7 0 120.1 48.7 129 112L49.3 464c8.9-63.3 63.3-112 129-112zm0-48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0zM625 177c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L625 177z"]},j2={prefix:"far",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M36.4 360.9L13.4 439 1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1L73 498.6l78.1-23c10.4-3 20.1-8 28.6-14.5l.3 .2 .5-.8c1.4-1.1 2.7-2.2 4-3.3c1.4-1.2 2.7-2.5 4-3.8L492.7 149.3c21.9-21.9 24.6-55.6 8.2-80.5c-2.3-3.5-5.1-6.9-8.2-10L453.3 19.3c-25-25-65.5-25-90.5 0L58.6 323.5c-2.5 2.5-4.9 5.2-7.1 8l-.8 .5 .2 .3c-6.5 8.5-11.4 18.2-14.5 28.6zM383 191L197.4 376.6l-49.6-12.4-12.4-49.6L321 129 383 191zM97 358.9l7.7 31c2.1 8.6 8.9 15.3 17.5 17.5l31 7.7-7.4 11.2c-2.6 1.4-5.3 2.6-8.1 3.4l-23.4 6.9L59.4 452.6l16.1-54.8 6.9-23.4c.8-2.8 2-5.6 3.4-8.1L97 358.9zM315.3 218.7c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0l-96 96c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0l96-96z"]},_D=j2;const CD=Object.freeze(Object.defineProperty({__proto__:null,faAdd:bB,faArrowAltCircleRight:KB,faArrowDownToLine:B2,faArrowRightRotate:WB,faArrowRotateForward:qB,faArrowRotateRight:Zc,faArrowToBottom:rD,faArrowToTop:vD,faArrowUpToLine:$2,faAutomobile:EB,faBadgeCheck:XB,faBan:R2,faBars:V2,faBell:SB,faBuilding:dB,faCalendar:uB,faCalendarCheck:$B,faCalendarCircleExclamation:pD,faCalendarClock:I2,faCalendarEdit:lD,faCalendarExclamation:mD,faCalendarPen:L2,faCalendarTime:LB,faCancel:sD,faCar:S2,faCarMirrors:BB,faCars:mB,faCheck:cB,faCheckCircle:eD,faChevronDown:wB,faChevronLeft:pB,faChevronRight:fB,faChevronUp:fD,faCircleCheck:N2,faCircleExclamation:z2,faCircleInfo:A2,faCircleRight:M2,faClipboard:aD,faClipboardCheck:GB,faClock:T2,faClockFour:DB,faClose:hB,faCode:JB,faDriversLicense:AB,faEnvelope:FB,faEur:tD,faEuro:nD,faEuroSign:Jp,faExclamationCircle:gD,faExclamationTriangle:sB,faFilter:ZB,faHome:TB,faHomeAlt:PB,faHomeLgAlt:IB,faHouse:Qc,faHyphen:wD,faIdCard:E2,faIdCardAlt:oB,faIdCardClip:w2,faInfoCircle:zB,faKey:cD,faLeftFromBracket:UB,faLocationDot:C2,faLock:hD,faMagnifyingGlass:_2,faMapMarkerAlt:CB,faMinus:P2,faMobile:Kp,faMobileAndroid:MB,faMobilePhone:OB,faMultiply:vB,faNavicon:yD,faPaperPlane:iB,faPaperclip:VB,faPencil:j2,faPencilAlt:_D,faPhone:HB,faPlus:k2,faRedo:YB,faRemove:gB,faRightToBracket:D2,faSearch:kB,faSensorAlert:bD,faSensorTriangleExclamation:F2,faSignInAlt:oD,faSliders:x2,faSlidersH:NB,faStar:iD,faStarHalfAlt:QB,faStarHalfStroke:O2,faStopwatch:dD,faSubtract:RB,faThumbsDown:xB,faThumbsUp:aB,faTimer:_B,faTimes:yB,faTrash:jB,faTriangleExclamation:Xp,faUser:uD,faUserCheck:kD,faWarning:lB,faXmark:Ws},Symbol.toStringTag,{value:"Module"}));var H2={prefix:"fas",iconName:"arrow-up-to-line",icon:[384,512,["arrow-to-top"],"f341","M32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l320 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM214.6 169.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 269.3 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-178.7 73.4 73.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-128-128z"]},SD=H2,ED={prefix:"fas",iconName:"bell",icon:[448,512,[61602,128276],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416l384 0c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8l0-18.8c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"]},xD={prefix:"fas",iconName:"bug",icon:[512,512,[],"f188","M256 0c53 0 96 43 96 96l0 3.6c0 15.7-12.7 28.4-28.4 28.4l-135.1 0c-15.7 0-28.4-12.7-28.4-28.4l0-3.6c0-53 43-96 96-96zM41.4 105.4c12.5-12.5 32.8-12.5 45.3 0l64 64c.7 .7 1.3 1.4 1.9 2.1c14.2-7.3 30.4-11.4 47.5-11.4l112 0c17.1 0 33.2 4.1 47.5 11.4c.6-.7 1.2-1.4 1.9-2.1l64-64c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-64 64c-.7 .7-1.4 1.3-2.1 1.9c6.2 12 10.1 25.3 11.1 39.5l64.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c0 24.6-5.5 47.8-15.4 68.6c2.2 1.3 4.2 2.9 6 4.8l64 64c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-63.1-63.1c-24.5 21.8-55.8 36.2-90.3 39.6L272 240c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 239.2c-34.5-3.4-65.8-17.8-90.3-39.6L86.6 502.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l64-64c1.9-1.9 3.9-3.4 6-4.8C101.5 367.8 96 344.6 96 320l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64.3 0c1.1-14.1 5-27.5 11.1-39.5c-.7-.6-1.4-1.2-2.1-1.9l-64-64c-12.5-12.5-12.5-32.8 0-45.3z"]},TD={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},U2={prefix:"fas",iconName:"dash",icon:[512,512,["minus-large"],"e404","M0 256c0-17.7 14.3-32 32-32l448 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"]},PD=U2,ID={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 242.7-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7 288 32zM64 352c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-101.5 0-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352 64 352zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},AD={prefix:"fas",iconName:"envelope",icon:[512,512,[9993,61443,128386],"f0e0","M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-208L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"]},MD={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},OD={prefix:"fas",iconName:"horizontal-rule",icon:[640,512,[8213],"f86c","M0 256c0-17.7 14.3-32 32-32l576 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"]},ND={prefix:"fas",iconName:"hyphen",icon:[320,512,[],"2d","M0 256c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"]},BD={prefix:"fas",iconName:"key",icon:[512,512,[128273],"f084","M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0S160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17l0 80c0 13.3 10.7 24 24 24l80 0c13.3 0 24-10.7 24-24l0-40 40 0c13.3 0 24-10.7 24-24l0-40 40 0c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3zM376 96a40 40 0 1 1 0 80 40 40 0 1 1 0-80z"]},W2={prefix:"fas",iconName:"mobile-notch",icon:[384,512,["mobile-iphone"],"e1ee","M128 64l0 16c0 8.8 7.2 16 16 16l96 0c8.8 0 16-7.2 16-16l0-16 32 0c8.8 0 16 7.2 16 16l0 352c0 8.8-7.2 16-16 16L96 448c-8.8 0-16-7.2-16-16L80 80c0-8.8 7.2-16 16-16l32 0zM96 0C51.8 0 16 35.8 16 80l0 352c0 44.2 35.8 80 80 80l192 0c44.2 0 80-35.8 80-80l0-352c0-44.2-35.8-80-80-80L96 0zm32 400c0 8.8 7.2 16 16 16l96 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-96 0c-8.8 0-16 7.2-16 16z"]},DD=W2,q2={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},RD=q2,LD={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"]},$D={prefix:"fas",iconName:"stopwatch",icon:[448,512,[9201],"f2f2","M176 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l16 0 0 34.4C92.3 113.8 16 200 16 304c0 114.9 93.1 208 208 208s208-93.1 208-208c0-41.8-12.3-80.7-33.5-113.2l24.1-24.1c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L355.7 143c-28.1-23-62.2-38.8-99.7-44.6L256 64l16 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L224 0 176 0zm72 192l0 128c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-128c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},Y2={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16z"]},zD=Y2,VD={prefix:"fas",iconName:"user",icon:[448,512,[62144,128100],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},qs={prefix:"fas",iconName:"xmark",icon:[384,512,[215,10005,10006,10060,128473,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},FD=qs,jD=qs,HD=qs,UD=qs;const WD=Object.freeze(Object.defineProperty({__proto__:null,faArrowToTop:SD,faArrowUpToLine:H2,faBell:ED,faBug:xD,faCheck:TD,faClose:FD,faDash:U2,faDownload:ID,faEnvelope:AD,faEye:MD,faHorizontalRule:OD,faHyphen:ND,faKey:BD,faMinusLarge:PD,faMobileIphone:DD,faMobileNotch:W2,faMultiply:jD,faPencil:q2,faPencilAlt:RD,faRemove:HD,faStar:LD,faStopwatch:$D,faTimes:UD,faTrashAlt:zD,faTrashCan:Y2,faUser:VD,faXmark:qs},Symbol.toStringTag,{value:"Module"}));var Vn={far:{},fas:{}},G2=[];function X2(e){Object.keys(e).forEach(function(t){if(t!=="prefix"){var n=e[t],r=n.icon[2];r.forEach(function(o){typeof o=="string"&&(Vn[n.prefix][o]=n)}),Vn[n.prefix][n.iconName]=n,G2.push(n)}})}X2(CD);X2(WD);const qe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Xr="8.50.0",Qe=globalThis;function eu(e,t,n){const r=n||Qe,o=r.__SENTRY__=r.__SENTRY__||{},i=o[Xr]=o[Xr]||{};return i[e]||(i[e]=t())}const Fa=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,qD="Sentry Logger ",of=["debug","info","warn","error","log","assert","trace"],uc={};function mr(e){if(!("console"in Qe))return e();const t=Qe.console,n={},r=Object.keys(uc);r.forEach(o=>{const i=uc[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function YD(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Fa?of.forEach(n=>{t[n]=(...r)=>{e&&mr(()=>{Qe.console[n](`${qD}[${n}]:`,...r)})}}):of.forEach(n=>{t[n]=()=>{}}),t}const _e=eu("logger",YD),K2=50,bo="?",Vv=/\(error: (.*)\)/,Fv=/captureMessage|captureException/;function J2(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{const i=[],s=n.split(`
642
+ `);for(let l=r;l<s.length;l++){const c=s[l];if(c.length>1024)continue;const d=Vv.test(c)?c.replace(Vv,"$1"):c;if(!d.match(/\S*Error: /)){for(const u of t){const f=u(d);if(f){i.push(f);break}}if(i.length>=K2+o)break}}return XD(i.slice(o))}}function GD(e){return Array.isArray(e)?J2(...e):e}function XD(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(gl(t).function||"")&&t.pop(),t.reverse(),Fv.test(gl(t).function||"")&&(t.pop(),Fv.test(gl(t).function||"")&&t.pop()),t.slice(0,K2).map(n=>({...n,filename:n.filename||gl(t).filename,function:n.function||bo}))}function gl(e){return e[e.length-1]||{}}const td="<anonymous>";function na(e){try{return!e||typeof e!="function"?td:e.name||td}catch{return td}}function jv(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const $l={},Hv={};function ja(e,t){$l[e]=$l[e]||[],$l[e].push(t)}function Ha(e,t){if(!Hv[e]){Hv[e]=!0;try{t()}catch(n){Fa&&_e.error(`Error while instrumenting ${e}`,n)}}}function Hn(e,t){const n=e&&$l[e];if(n)for(const r of n)try{r(t)}catch(o){Fa&&_e.error(`Error while triggering instrumentation handler.
643
643
  Type: ${e}
644
644
  Name: ${na(r)}
645
- Error:`,o)}}let nd=null;function Q2(e){const t="error";ja(t,e),Ha(t,KD)}function KD(){nd=Qe.onerror,Qe.onerror=function(e,t,n,r,o){return jn("error",{column:r,error:o,line:n,msg:e,url:t}),nd?nd.apply(this,arguments):!1},Qe.onerror.__SENTRY_INSTRUMENTED__=!0}let rd=null;function Z2(e){const t="unhandledrejection";ja(t,e),Ha(t,JD)}function JD(){rd=Qe.onunhandledrejection,Qe.onunhandledrejection=function(e){return jn("unhandledrejection",e),rd?rd.apply(this,arguments):!0},Qe.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function So(){return Qp(Qe),Qe}function Qp(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Xr,t[Xr]=t[Xr]||{}}const eb=Object.prototype.toString;function Zp(e){switch(eb.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return ra(e,Error)}}function Oi(e,t){return eb.call(e)===`[object ${t}]`}function tb(e){return Oi(e,"ErrorEvent")}function Uv(e){return Oi(e,"DOMError")}function QD(e){return Oi(e,"DOMException")}function Kr(e){return Oi(e,"String")}function em(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function tm(e){return e===null||em(e)||typeof e!="object"&&typeof e!="function"}function yi(e){return Oi(e,"Object")}function tu(e){return typeof Event<"u"&&ra(e,Event)}function ZD(e){return typeof Element<"u"&&ra(e,Element)}function eR(e){return Oi(e,"RegExp")}function nu(e){return!!(e&&e.then&&typeof e.then=="function")}function tR(e){return yi(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function ra(e,t){try{return e instanceof t}catch{return!1}}function nb(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const Jo=Qe,nR=80;function aa(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,s=0;const l=" > ",c=l.length;let d;const u=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||nR;for(;n&&i++<r&&(d=rR(n,u),!(d==="html"||i>1&&s+o.length*c+d.length>=f));)o.push(d),s+=d.length,n=n.parentNode;return o.reverse().join(l)}catch{return"<unknown>"}}function rR(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(Jo.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(o&&o.length)o.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const s=n.className;if(s&&Kr(s)){const l=s.split(/\s+/);for(const c of l)r.push(`.${c}`)}}const i=["aria-label","type","name","title","alt"];for(const s of i){const l=n.getAttribute(s);l&&r.push(`[${s}="${l}"]`)}return r.join("")}function rb(){try{return Jo.document.location.href}catch{return""}}function aR(e){return Jo.document&&Jo.document.querySelector?Jo.document.querySelector(e):null}function ab(e){if(!Jo.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Qo(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Wv(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const o=e[r];try{nb(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function oR(e,t,n=!1){return Kr(e)?eR(t)?t.test(e):Kr(t)?n?e===t:e.includes(t):!1:!1}function Ca(e,t=[],n=!1){return t.some(r=>oR(e,r,n))}function wn(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);typeof o=="function"&&ob(o,r);try{e[t]=o}catch{Fa&&_e.log(`Failed to replace method "${t}" in object`,e)}}function Wn(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Fa&&_e.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function ob(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Wn(e,"__sentry_original__",t)}catch{}}function nm(e){return e.__sentry_original__}function ib(e){if(Zp(e))return{message:e.message,name:e.name,stack:e.stack,...Yv(e)};if(tu(e)){const t={type:e.type,target:qv(e.target),currentTarget:qv(e.currentTarget),...Yv(e)};return typeof CustomEvent<"u"&&ra(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function qv(e){try{return ZD(e)?aa(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Yv(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 iR(e,t=40){const n=Object.keys(ib(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Qo(r,t);for(let o=n.length;o>0;o--){const i=n.slice(0,o).join(", ");if(!(i.length>t))return o===n.length?i:Qo(i,t)}return""}function jt(e){return sf(e,new Map)}function sf(e,t){if(sR(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const o of Object.getOwnPropertyNames(e))typeof e[o]<"u"&&(r[o]=sf(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(sf(o,t))}),r}return e}function sR(e){if(!yi(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const sb=1e3;function Ys(){return Date.now()/sb}function lR(){const{performance:e}=Qe;if(!e||!e.now)return Ys;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/sb}const nn=lR(),pn=(()=>{const{performance:e}=Qe;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,c=typeof s=="number"?Math.abs(s+n-r):t,d=c<t;return i||d?o<=c?e.timeOrigin:s:r})();function Nn(){const e=Qe,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function lb(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function ma(e){const{message:t,event_id:n}=e;if(t)return t;const r=lb(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function lf(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="Error")}function bi(e,t){const n=lb(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 Gv(e){if(cR(e))return!0;try{Wn(e,"__sentry_captured__",!0)}catch{}return!1}function cR(e){try{return e.__sentry_captured__}catch{}}var Hr;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(Hr||(Hr={}));function oa(e){return new $n(t=>{t(e)})}function dc(e){return new $n((t,n)=>{n(e)})}class $n{constructor(t){$n.prototype.__init.call(this),$n.prototype.__init2.call(this),$n.prototype.__init3.call(this),$n.prototype.__init4.call(this),this._state=Hr.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new $n((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 $n((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(Hr.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Hr.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Hr.PENDING){if(nu(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Hr.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Hr.RESOLVED&&n[1](this._value),this._state===Hr.REJECTED&&n[2](this._value),n[0]=!0)})}}}function uR(e){const t=nn(),n={sid:Nn(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>fR(n)};return wi(n,e),n}function wi(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||nn(),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:Nn()),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 dR(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),wi(e,n)}function fR(e){return jt({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}})}function Ma(){return Nn()}function Oa(){return Nn().substring(16)}function ru(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const r={...e};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=ru(r[o],t[o],n-1));return r}const cf="_sentrySpan";function Is(e,t){t?Wn(e,cf,t):delete e[cf]}function fc(e){return e[cf]}const pR=100;class rm{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Ma(),spanId:Oa()}}clone(){const t=new rm;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Is(t,fc(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&wi(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}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[r,o]=n instanceof Na?[n.getScopeData(),n.getRequestSession()]:yi(n)?[t,t.requestSession]:[],{tags:i,extra:s,user:l,contexts:c,level:d,fingerprint:u=[],propagationContext:f}=r||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...s},this._contexts={...this._contexts,...c},l&&Object.keys(l).length&&(this._user=l),d&&(this._level=d),u.length&&(this._fingerprint=u),f&&(this._propagationContext=f),o&&(this._requestSession=o),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._session=void 0,Is(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ma()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:pR;if(r<=0)return this;const o={timestamp:Ys(),...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}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:fc(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=ru(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:Oa(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:Nn();if(!this._client)return _e.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){const o=r&&r.event_id?r.event_id:Nn();if(!this._client)return _e.warn("No client configured on scope - will not capture message!"),o;const i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o},this),o}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Nn();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(_e.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const Na=rm;function mR(){return eu("defaultCurrentScope",()=>new Na)}function hR(){return eu("defaultIsolationScope",()=>new Na)}class vR{constructor(t,n){let r;t?r=t:r=new Na;let o;n?o=n:o=new Na,this._stack=[{scope:r}],this._isolationScope=o}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(o){throw this._popScope(),o}return nu(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function ki(){const e=So(),t=Qp(e);return t.stack=t.stack||new vR(mR(),hR())}function gR(e){return ki().withScope(e)}function yR(e,t){const n=ki();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Xv(e){return ki().withScope(()=>e(ki().getIsolationScope()))}function bR(){return{withIsolationScope:Xv,withScope:gR,withSetScope:yR,withSetIsolationScope:(e,t)=>Xv(t),getCurrentScope:()=>ki().getScope(),getIsolationScope:()=>ki().getIsolationScope()}}function Ni(e){const t=Qp(e);return t.acs?t.acs:bR()}function ct(){const e=So();return Ni(e).getCurrentScope()}function qn(){const e=So();return Ni(e).getIsolationScope()}function wR(){return eu("globalScope",()=>new Na)}function am(...e){const t=So(),n=Ni(t);if(e.length===2){const[r,o]=e;return r?n.withSetScope(r,o):n.withScope(o)}return n.withScope(e[0])}function Ze(){return ct().getClient()}function kR(e){const t=e.getPropagationContext(),{traceId:n,spanId:r,parentSpanId:o}=t;return jt({trace_id:n,span_id:r,parent_span_id:o})}const _R="_sentryMetrics";function uf(e){const t=e[_R];if(!t)return;const n={};for(const[,[r,o]]of t)(n[r]||(n[r]=[])).push(jt(o));return n}const Mn="sentry.source",cb="sentry.sample_rate",wo="sentry.op",St="sentry.origin",df="sentry.idle_span_finish_reason",au="sentry.measurement_unit",ou="sentry.measurement_value",Kv="sentry.custom_span_name",CR="sentry.profile_id",om="sentry.exclusive_time",SR=0,ub=1,Ut=2;function ER(e){if(e<400&&e>=100)return{code:ub};if(e>=400&&e<500)switch(e){case 401:return{code:Ut,message:"unauthenticated"};case 403:return{code:Ut,message:"permission_denied"};case 404:return{code:Ut,message:"not_found"};case 409:return{code:Ut,message:"already_exists"};case 413:return{code:Ut,message:"failed_precondition"};case 429:return{code:Ut,message:"resource_exhausted"};case 499:return{code:Ut,message:"cancelled"};default:return{code:Ut,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:Ut,message:"unimplemented"};case 503:return{code:Ut,message:"unavailable"};case 504:return{code:Ut,message:"deadline_exceeded"};default:return{code:Ut,message:"internal_error"}}return{code:Ut,message:"unknown_error"}}function db(e,t){e.setAttribute("http.response.status_code",t);const n=ER(t);n.message!=="unknown_error"&&e.setStatus(n)}const im="sentry-",xR=/^sentry-/,TR=8192;function fb(e){const t=IR(e);if(!t)return;const n=Object.entries(t).reduce((r,[o,i])=>{if(o.match(xR)){const s=o.slice(im.length);r[s]=i}return r},{});if(Object.keys(n).length>0)return n}function PR(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,o])=>(o&&(n[`${im}${r}`]=o),n),{});return AR(t)}function IR(e){if(!(!e||!Kr(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Jv(n);return Object.entries(r).forEach(([o,i])=>{t[o]=i}),t},{}):Jv(e)}function Jv(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function AR(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>TR?(Fa&&_e.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}const pb=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function MR(e){if(!e)return;const t=e.match(pb);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 OR(e,t){const n=MR(e),r=fb(t);if(!n||!n.traceId)return{traceId:Ma(),spanId:Oa()};const{traceId:o,parentSpanId:i,parentSampled:s}=n,l=Oa();return{traceId:o,parentSpanId:i,spanId:l,sampled:s,dsc:r||{}}}function mb(e=Ma(),t=Oa(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}const hb=0,vb=1;let Qv=!1;function NR(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:s,origin:l}=tt(e);return jt({parent_span_id:i,span_id:t,trace_id:n,data:r,op:o,status:s,origin:l})}function BR(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:tt(e).parent_span_id,i=r?Oa():t;return jt({parent_span_id:o,span_id:i,trace_id:n})}function DR(e){const{traceId:t,spanId:n}=e.spanContext(),r=Eo(e);return mb(t,n,r)}function uo(e){return typeof e=="number"?Zv(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Zv(e.getTime()):nn()}function Zv(e){return e>9999999999?e/1e3:e}function tt(e){if(LR(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(RR(e)){const{attributes:r,startTime:o,name:i,endTime:s,parentSpanId:l,status:c}=e;return jt({span_id:t,trace_id:n,data:r,description:i,parent_span_id:l,start_timestamp:uo(o),timestamp:uo(s)||void 0,status:gb(c),op:r[wo],origin:r[St],_metrics_summary:uf(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function RR(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function LR(e){return typeof e.getSpanJSON=="function"}function Eo(e){const{traceFlags:t}=e.spanContext();return t===vb}function gb(e){if(!(!e||e.code===SR))return e.code===ub?"ok":e.message||"unknown_error"}const fo="_sentryChildSpans",ff="_sentryRootSpan";function yb(e,t){const n=e[ff]||e;Wn(t,ff,n),e[fo]?e[fo].add(t):Wn(e,fo,new Set([t]))}function $R(e,t){e[fo]&&e[fo].delete(t)}function zl(e){const t=new Set;function n(r){if(!t.has(r)&&Eo(r)){t.add(r);const o=r[fo]?Array.from(r[fo]):[];for(const i of o)n(i)}}return n(e),Array.from(t)}function Wt(e){return e[ff]||e}function $t(){const e=So(),t=Ni(e);return t.getActiveSpan?t.getActiveSpan():fc(ct())}function bb(){Qv||(mr(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),Qv=!0)}let eg=!1;function zR(){eg||(eg=!0,Q2(pf),Z2(pf))}function pf(){const e=$t(),t=e&&Wt(e);if(t){const n="internal_error";qe&&_e.log(`[Tracing] Root span: ${n} -> Global error occurred`),t.setStatus({code:Ut,message:n})}}pf.tag="sentry_tracingErrorCallback";const wb="_sentryScope",kb="_sentryIsolationScope";function VR(e,t,n){e&&(Wn(e,kb,n),Wn(e,wb,t))}function tg(e){return{scope:e[wb],isolationScope:e[kb]}}function ia(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Ze(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}class Bi{constructor(t={}){this._traceId=t.traceId||Ma(),this._spanId=t.spanId||Oa()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:hb}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}const sm="production",_b="_frozenDsc";function ng(e,t){Wn(e,_b,t)}function Cb(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=jt({environment:n.environment||sm,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function Sb(e,t){const n=t.getPropagationContext();return n.dsc||Cb(n.traceId,e)}function xo(e){const t=Ze();if(!t)return{};const n=Wt(e),r=n[_b];if(r)return r;const o=n.spanContext().traceState,i=o&&o.get("sentry.dsc"),s=i&&fb(i);if(s)return s;const l=Cb(e.spanContext().traceId,t),c=tt(n),d=c.data||{},u=d[cb];u!=null&&(l.sample_rate=`${u}`);const f=d[Mn],p=c.description;return f!=="url"&&p&&(l.transaction=p),ia()&&(l.sampled=String(Eo(n))),t.emit("createDsc",l,n),l}function FR(e){if(!qe)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=tt(e),{spanId:o}=e.spanContext(),i=Eo(e),s=Wt(e),l=s===e,c=`[Tracing] Starting ${i?"sampled":"unsampled"} ${l?"root ":""}span`,d=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&d.push(`parent ID: ${r}`),!l){const{op:u,description:f}=tt(s);d.push(`root ID: ${s.spanContext().spanId}`),u&&d.push(`root op: ${u}`),f&&d.push(`root description: ${f}`)}_e.log(`${c}
645
+ Error:`,o)}}let nd=null;function Q2(e){const t="error";ja(t,e),Ha(t,KD)}function KD(){nd=Qe.onerror,Qe.onerror=function(e,t,n,r,o){return Hn("error",{column:r,error:o,line:n,msg:e,url:t}),nd?nd.apply(this,arguments):!1},Qe.onerror.__SENTRY_INSTRUMENTED__=!0}let rd=null;function Z2(e){const t="unhandledrejection";ja(t,e),Ha(t,JD)}function JD(){rd=Qe.onunhandledrejection,Qe.onunhandledrejection=function(e){return Hn("unhandledrejection",e),rd?rd.apply(this,arguments):!0},Qe.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function So(){return Qp(Qe),Qe}function Qp(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Xr,t[Xr]=t[Xr]||{}}const eb=Object.prototype.toString;function Zp(e){switch(eb.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return ra(e,Error)}}function Oi(e,t){return eb.call(e)===`[object ${t}]`}function tb(e){return Oi(e,"ErrorEvent")}function Uv(e){return Oi(e,"DOMError")}function QD(e){return Oi(e,"DOMException")}function Kr(e){return Oi(e,"String")}function em(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function tm(e){return e===null||em(e)||typeof e!="object"&&typeof e!="function"}function yi(e){return Oi(e,"Object")}function tu(e){return typeof Event<"u"&&ra(e,Event)}function ZD(e){return typeof Element<"u"&&ra(e,Element)}function eR(e){return Oi(e,"RegExp")}function nu(e){return!!(e&&e.then&&typeof e.then=="function")}function tR(e){return yi(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function ra(e,t){try{return e instanceof t}catch{return!1}}function nb(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const Jo=Qe,nR=80;function aa(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,s=0;const l=" > ",c=l.length;let d;const u=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||nR;for(;n&&i++<r&&(d=rR(n,u),!(d==="html"||i>1&&s+o.length*c+d.length>=f));)o.push(d),s+=d.length,n=n.parentNode;return o.reverse().join(l)}catch{return"<unknown>"}}function rR(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(Jo.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(o&&o.length)o.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const s=n.className;if(s&&Kr(s)){const l=s.split(/\s+/);for(const c of l)r.push(`.${c}`)}}const i=["aria-label","type","name","title","alt"];for(const s of i){const l=n.getAttribute(s);l&&r.push(`[${s}="${l}"]`)}return r.join("")}function rb(){try{return Jo.document.location.href}catch{return""}}function aR(e){return Jo.document&&Jo.document.querySelector?Jo.document.querySelector(e):null}function ab(e){if(!Jo.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Qo(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Wv(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const o=e[r];try{nb(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function oR(e,t,n=!1){return Kr(e)?eR(t)?t.test(e):Kr(t)?n?e===t:e.includes(t):!1:!1}function Ca(e,t=[],n=!1){return t.some(r=>oR(e,r,n))}function wn(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);typeof o=="function"&&ob(o,r);try{e[t]=o}catch{Fa&&_e.log(`Failed to replace method "${t}" in object`,e)}}function qn(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Fa&&_e.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function ob(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,qn(e,"__sentry_original__",t)}catch{}}function nm(e){return e.__sentry_original__}function ib(e){if(Zp(e))return{message:e.message,name:e.name,stack:e.stack,...Yv(e)};if(tu(e)){const t={type:e.type,target:qv(e.target),currentTarget:qv(e.currentTarget),...Yv(e)};return typeof CustomEvent<"u"&&ra(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function qv(e){try{return ZD(e)?aa(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Yv(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 iR(e,t=40){const n=Object.keys(ib(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Qo(r,t);for(let o=n.length;o>0;o--){const i=n.slice(0,o).join(", ");if(!(i.length>t))return o===n.length?i:Qo(i,t)}return""}function jt(e){return sf(e,new Map)}function sf(e,t){if(sR(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const o of Object.getOwnPropertyNames(e))typeof e[o]<"u"&&(r[o]=sf(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(sf(o,t))}),r}return e}function sR(e){if(!yi(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const sb=1e3;function Ys(){return Date.now()/sb}function lR(){const{performance:e}=Qe;if(!e||!e.now)return Ys;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/sb}const nn=lR(),pn=(()=>{const{performance:e}=Qe;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,c=typeof s=="number"?Math.abs(s+n-r):t,d=c<t;return i||d?o<=c?e.timeOrigin:s:r})();function Nn(){const e=Qe,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function lb(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function ma(e){const{message:t,event_id:n}=e;if(t)return t;const r=lb(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function lf(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="Error")}function bi(e,t){const n=lb(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 Gv(e){if(cR(e))return!0;try{qn(e,"__sentry_captured__",!0)}catch{}return!1}function cR(e){try{return e.__sentry_captured__}catch{}}var Hr;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(Hr||(Hr={}));function oa(e){return new $n(t=>{t(e)})}function dc(e){return new $n((t,n)=>{n(e)})}class $n{constructor(t){$n.prototype.__init.call(this),$n.prototype.__init2.call(this),$n.prototype.__init3.call(this),$n.prototype.__init4.call(this),this._state=Hr.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new $n((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 $n((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(Hr.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Hr.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Hr.PENDING){if(nu(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Hr.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Hr.RESOLVED&&n[1](this._value),this._state===Hr.REJECTED&&n[2](this._value),n[0]=!0)})}}}function uR(e){const t=nn(),n={sid:Nn(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>fR(n)};return wi(n,e),n}function wi(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||nn(),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:Nn()),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 dR(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),wi(e,n)}function fR(e){return jt({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}})}function Ma(){return Nn()}function Oa(){return Nn().substring(16)}function ru(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const r={...e};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=ru(r[o],t[o],n-1));return r}const cf="_sentrySpan";function Is(e,t){t?qn(e,cf,t):delete e[cf]}function fc(e){return e[cf]}const pR=100;class rm{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Ma(),spanId:Oa()}}clone(){const t=new rm;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Is(t,fc(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&wi(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}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[r,o]=n instanceof Na?[n.getScopeData(),n.getRequestSession()]:yi(n)?[t,t.requestSession]:[],{tags:i,extra:s,user:l,contexts:c,level:d,fingerprint:u=[],propagationContext:f}=r||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...s},this._contexts={...this._contexts,...c},l&&Object.keys(l).length&&(this._user=l),d&&(this._level=d),u.length&&(this._fingerprint=u),f&&(this._propagationContext=f),o&&(this._requestSession=o),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._session=void 0,Is(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ma()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:pR;if(r<=0)return this;const o={timestamp:Ys(),...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}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:fc(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=ru(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:Oa(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:Nn();if(!this._client)return _e.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){const o=r&&r.event_id?r.event_id:Nn();if(!this._client)return _e.warn("No client configured on scope - will not capture message!"),o;const i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o},this),o}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Nn();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(_e.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const Na=rm;function mR(){return eu("defaultCurrentScope",()=>new Na)}function hR(){return eu("defaultIsolationScope",()=>new Na)}class vR{constructor(t,n){let r;t?r=t:r=new Na;let o;n?o=n:o=new Na,this._stack=[{scope:r}],this._isolationScope=o}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(o){throw this._popScope(),o}return nu(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function ki(){const e=So(),t=Qp(e);return t.stack=t.stack||new vR(mR(),hR())}function gR(e){return ki().withScope(e)}function yR(e,t){const n=ki();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Xv(e){return ki().withScope(()=>e(ki().getIsolationScope()))}function bR(){return{withIsolationScope:Xv,withScope:gR,withSetScope:yR,withSetIsolationScope:(e,t)=>Xv(t),getCurrentScope:()=>ki().getScope(),getIsolationScope:()=>ki().getIsolationScope()}}function Ni(e){const t=Qp(e);return t.acs?t.acs:bR()}function ct(){const e=So();return Ni(e).getCurrentScope()}function Yn(){const e=So();return Ni(e).getIsolationScope()}function wR(){return eu("globalScope",()=>new Na)}function am(...e){const t=So(),n=Ni(t);if(e.length===2){const[r,o]=e;return r?n.withSetScope(r,o):n.withScope(o)}return n.withScope(e[0])}function Ze(){return ct().getClient()}function kR(e){const t=e.getPropagationContext(),{traceId:n,spanId:r,parentSpanId:o}=t;return jt({trace_id:n,span_id:r,parent_span_id:o})}const _R="_sentryMetrics";function uf(e){const t=e[_R];if(!t)return;const n={};for(const[,[r,o]]of t)(n[r]||(n[r]=[])).push(jt(o));return n}const Mn="sentry.source",cb="sentry.sample_rate",wo="sentry.op",St="sentry.origin",df="sentry.idle_span_finish_reason",au="sentry.measurement_unit",ou="sentry.measurement_value",Kv="sentry.custom_span_name",CR="sentry.profile_id",om="sentry.exclusive_time",SR=0,ub=1,Ut=2;function ER(e){if(e<400&&e>=100)return{code:ub};if(e>=400&&e<500)switch(e){case 401:return{code:Ut,message:"unauthenticated"};case 403:return{code:Ut,message:"permission_denied"};case 404:return{code:Ut,message:"not_found"};case 409:return{code:Ut,message:"already_exists"};case 413:return{code:Ut,message:"failed_precondition"};case 429:return{code:Ut,message:"resource_exhausted"};case 499:return{code:Ut,message:"cancelled"};default:return{code:Ut,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:Ut,message:"unimplemented"};case 503:return{code:Ut,message:"unavailable"};case 504:return{code:Ut,message:"deadline_exceeded"};default:return{code:Ut,message:"internal_error"}}return{code:Ut,message:"unknown_error"}}function db(e,t){e.setAttribute("http.response.status_code",t);const n=ER(t);n.message!=="unknown_error"&&e.setStatus(n)}const im="sentry-",xR=/^sentry-/,TR=8192;function fb(e){const t=IR(e);if(!t)return;const n=Object.entries(t).reduce((r,[o,i])=>{if(o.match(xR)){const s=o.slice(im.length);r[s]=i}return r},{});if(Object.keys(n).length>0)return n}function PR(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,o])=>(o&&(n[`${im}${r}`]=o),n),{});return AR(t)}function IR(e){if(!(!e||!Kr(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Jv(n);return Object.entries(r).forEach(([o,i])=>{t[o]=i}),t},{}):Jv(e)}function Jv(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function AR(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>TR?(Fa&&_e.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}const pb=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function MR(e){if(!e)return;const t=e.match(pb);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 OR(e,t){const n=MR(e),r=fb(t);if(!n||!n.traceId)return{traceId:Ma(),spanId:Oa()};const{traceId:o,parentSpanId:i,parentSampled:s}=n,l=Oa();return{traceId:o,parentSpanId:i,spanId:l,sampled:s,dsc:r||{}}}function mb(e=Ma(),t=Oa(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}const hb=0,vb=1;let Qv=!1;function NR(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:s,origin:l}=tt(e);return jt({parent_span_id:i,span_id:t,trace_id:n,data:r,op:o,status:s,origin:l})}function BR(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:tt(e).parent_span_id,i=r?Oa():t;return jt({parent_span_id:o,span_id:i,trace_id:n})}function DR(e){const{traceId:t,spanId:n}=e.spanContext(),r=Eo(e);return mb(t,n,r)}function uo(e){return typeof e=="number"?Zv(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Zv(e.getTime()):nn()}function Zv(e){return e>9999999999?e/1e3:e}function tt(e){if(LR(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(RR(e)){const{attributes:r,startTime:o,name:i,endTime:s,parentSpanId:l,status:c}=e;return jt({span_id:t,trace_id:n,data:r,description:i,parent_span_id:l,start_timestamp:uo(o),timestamp:uo(s)||void 0,status:gb(c),op:r[wo],origin:r[St],_metrics_summary:uf(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function RR(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function LR(e){return typeof e.getSpanJSON=="function"}function Eo(e){const{traceFlags:t}=e.spanContext();return t===vb}function gb(e){if(!(!e||e.code===SR))return e.code===ub?"ok":e.message||"unknown_error"}const fo="_sentryChildSpans",ff="_sentryRootSpan";function yb(e,t){const n=e[ff]||e;qn(t,ff,n),e[fo]?e[fo].add(t):qn(e,fo,new Set([t]))}function $R(e,t){e[fo]&&e[fo].delete(t)}function zl(e){const t=new Set;function n(r){if(!t.has(r)&&Eo(r)){t.add(r);const o=r[fo]?Array.from(r[fo]):[];for(const i of o)n(i)}}return n(e),Array.from(t)}function Wt(e){return e[ff]||e}function $t(){const e=So(),t=Ni(e);return t.getActiveSpan?t.getActiveSpan():fc(ct())}function bb(){Qv||(mr(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),Qv=!0)}let eg=!1;function zR(){eg||(eg=!0,Q2(pf),Z2(pf))}function pf(){const e=$t(),t=e&&Wt(e);if(t){const n="internal_error";qe&&_e.log(`[Tracing] Root span: ${n} -> Global error occurred`),t.setStatus({code:Ut,message:n})}}pf.tag="sentry_tracingErrorCallback";const wb="_sentryScope",kb="_sentryIsolationScope";function VR(e,t,n){e&&(qn(e,kb,n),qn(e,wb,t))}function tg(e){return{scope:e[wb],isolationScope:e[kb]}}function ia(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Ze(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}class Bi{constructor(t={}){this._traceId=t.traceId||Ma(),this._spanId=t.spanId||Oa()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:hb}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}const sm="production",_b="_frozenDsc";function ng(e,t){qn(e,_b,t)}function Cb(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=jt({environment:n.environment||sm,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function Sb(e,t){const n=t.getPropagationContext();return n.dsc||Cb(n.traceId,e)}function xo(e){const t=Ze();if(!t)return{};const n=Wt(e),r=n[_b];if(r)return r;const o=n.spanContext().traceState,i=o&&o.get("sentry.dsc"),s=i&&fb(i);if(s)return s;const l=Cb(e.spanContext().traceId,t),c=tt(n),d=c.data||{},u=d[cb];u!=null&&(l.sample_rate=`${u}`);const f=d[Mn],p=c.description;return f!=="url"&&p&&(l.transaction=p),ia()&&(l.sampled=String(Eo(n))),t.emit("createDsc",l,n),l}function FR(e){if(!qe)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=tt(e),{spanId:o}=e.spanContext(),i=Eo(e),s=Wt(e),l=s===e,c=`[Tracing] Starting ${i?"sampled":"unsampled"} ${l?"root ":""}span`,d=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&d.push(`parent ID: ${r}`),!l){const{op:u,description:f}=tt(s);d.push(`root ID: ${s.spanContext().spanId}`),u&&d.push(`root op: ${u}`),f&&d.push(`root description: ${f}`)}_e.log(`${c}
646
646
  ${d.join(`
647
- `)}`)}function jR(e){if(!qe)return;const{description:t="< unknown name >",op:n="< unknown op >"}=tt(e),{spanId:r}=e.spanContext(),i=Wt(e)===e,s=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;_e.log(s)}function pc(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){qe&&_e.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)}.`);return}return t}function HR(e,t){if(!ia(e))return[!1];const n=qn().getScopeData().sdkProcessingMetadata.normalizedRequest,r={...t,normalizedRequest:t.normalizedRequest||n};let o;typeof e.tracesSampler=="function"?o=e.tracesSampler(r):r.parentSampled!==void 0?o=r.parentSampled:typeof e.tracesSampleRate<"u"?o=e.tracesSampleRate:o=1;const i=pc(o);return i===void 0?(qe&&_e.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):i?Math.random()<i?[!0,i]:(qe&&_e.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),[!1,i]):(qe&&_e.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,i])}const UR=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function WR(e){return e==="http"||e==="https"}function Di(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:l,publicKey:c}=e;return`${l}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function qR(e){const t=UR.exec(e);if(!t){mr(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,o="",i="",s="",l=""]=t.slice(1);let c="",d=l;const u=d.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),d=u.pop()),d){const f=d.match(/^\d+/);f&&(d=f[0])}return Eb({host:i,pass:o,path:c,projectId:d,port:s,protocol:n,publicKey:r})}function Eb(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function YR(e){if(!Fa)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(_e.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?WR(r)?t&&isNaN(parseInt(t,10))?(_e.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(_e.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(_e.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function xb(e){const t=typeof e=="string"?qR(e):Eb(e);if(!(!t||!YR(t)))return t}function GR(){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 Jn(e,t=100,n=1/0){try{return mf("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Tb(e,t=3,n=100*1024){const r=Jn(e,t);return QR(r)>n?Tb(e,t-1,n):r}function mf(e,t,n=1/0,r=1/0,o=GR()){const[i,s]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const l=XR(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return l.replace("object ","");if(i(t))return"[Circular ~]";const d=t;if(d&&typeof d.toJSON=="function")try{const h=d.toJSON();return mf("",h,c-1,r,o)}catch{}const u=Array.isArray(t)?[]:{};let f=0;const p=ib(t);for(const h in p){if(!Object.prototype.hasOwnProperty.call(p,h))continue;if(f>=r){u[h]="[MaxProperties ~]";break}const v=p[h];u[h]=mf(h,v,c-1,r,o),f++}return s(t),u}function XR(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(nb(t))return"[VueViewModel]";if(tR(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${na(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=KR(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function KR(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function JR(e){return~-encodeURI(e).split(/%..|./).length}function QR(e){return JR(JSON.stringify(e))}function To(e,t=[]){return[e,t]}function ZR(e,t){const[n,r]=e;return[n,[...r,t]]}function rg(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 hf(e){return Qe.__SENTRY__&&Qe.__SENTRY__.encodePolyfill?Qe.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function eL(e){const[t,n]=e;let r=JSON.stringify(t);function o(i){typeof r=="string"?r=typeof i=="string"?r+i:[hf(r),i]:r.push(typeof i=="string"?hf(i):i)}for(const i of n){const[s,l]=i;if(o(`
647
+ `)}`)}function jR(e){if(!qe)return;const{description:t="< unknown name >",op:n="< unknown op >"}=tt(e),{spanId:r}=e.spanContext(),i=Wt(e)===e,s=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;_e.log(s)}function pc(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){qe&&_e.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)}.`);return}return t}function HR(e,t){if(!ia(e))return[!1];const n=Yn().getScopeData().sdkProcessingMetadata.normalizedRequest,r={...t,normalizedRequest:t.normalizedRequest||n};let o;typeof e.tracesSampler=="function"?o=e.tracesSampler(r):r.parentSampled!==void 0?o=r.parentSampled:typeof e.tracesSampleRate<"u"?o=e.tracesSampleRate:o=1;const i=pc(o);return i===void 0?(qe&&_e.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):i?Math.random()<i?[!0,i]:(qe&&_e.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),[!1,i]):(qe&&_e.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,i])}const UR=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function WR(e){return e==="http"||e==="https"}function Di(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:l,publicKey:c}=e;return`${l}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function qR(e){const t=UR.exec(e);if(!t){mr(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,o="",i="",s="",l=""]=t.slice(1);let c="",d=l;const u=d.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),d=u.pop()),d){const f=d.match(/^\d+/);f&&(d=f[0])}return Eb({host:i,pass:o,path:c,projectId:d,port:s,protocol:n,publicKey:r})}function Eb(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function YR(e){if(!Fa)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(_e.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?WR(r)?t&&isNaN(parseInt(t,10))?(_e.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(_e.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(_e.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function xb(e){const t=typeof e=="string"?qR(e):Eb(e);if(!(!t||!YR(t)))return t}function GR(){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 Qn(e,t=100,n=1/0){try{return mf("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Tb(e,t=3,n=100*1024){const r=Qn(e,t);return QR(r)>n?Tb(e,t-1,n):r}function mf(e,t,n=1/0,r=1/0,o=GR()){const[i,s]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const l=XR(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return l.replace("object ","");if(i(t))return"[Circular ~]";const d=t;if(d&&typeof d.toJSON=="function")try{const h=d.toJSON();return mf("",h,c-1,r,o)}catch{}const u=Array.isArray(t)?[]:{};let f=0;const p=ib(t);for(const h in p){if(!Object.prototype.hasOwnProperty.call(p,h))continue;if(f>=r){u[h]="[MaxProperties ~]";break}const v=p[h];u[h]=mf(h,v,c-1,r,o),f++}return s(t),u}function XR(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(nb(t))return"[VueViewModel]";if(tR(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${na(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=KR(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function KR(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function JR(e){return~-encodeURI(e).split(/%..|./).length}function QR(e){return JR(JSON.stringify(e))}function To(e,t=[]){return[e,t]}function ZR(e,t){const[n,r]=e;return[n,[...r,t]]}function rg(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 hf(e){return Qe.__SENTRY__&&Qe.__SENTRY__.encodePolyfill?Qe.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function eL(e){const[t,n]=e;let r=JSON.stringify(t);function o(i){typeof r=="string"?r=typeof i=="string"?r+i:[hf(r),i]:r.push(typeof i=="string"?hf(i):i)}for(const i of n){const[s,l]=i;if(o(`
648
648
  ${JSON.stringify(s)}
649
- `),typeof l=="string"||l instanceof Uint8Array)o(l);else{let c;try{c=JSON.stringify(l)}catch{c=JSON.stringify(Jn(l))}o(c)}}return typeof r=="string"?r:tL(r)}function tL(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 nL(e){return[{type:"span"},e]}function rL(e){const t=typeof e.data=="string"?hf(e.data):e.data;return[jt({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const aL={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function ag(e){return aL[e]}function lm(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Pb(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:Di(r)},...o&&{trace:jt({...o})}}}function oL(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 iL(e,t,n,r){const o=lm(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:Di(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return To(i,[s])}function sL(e,t,n,r){const o=lm(n),i=e.type&&e.type!=="replay_event"?e.type:"event";oL(e,n&&n.sdk);const s=Pb(e,o,r,t);return delete e.sdkProcessingMetadata,To(s,[[{type:i},e]])}function lL(e,t){function n(u){return!!u.trace_id&&!!u.public_key}const r=xo(e[0]),o=t&&t.getDsn(),i=t&&t.getOptions().tunnel,s={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!i&&o&&{dsn:Di(o)}},l=t&&t.getOptions().beforeSendSpan,c=l?u=>{const f=l(tt(u));return f||bb(),f}:u=>tt(u),d=[];for(const u of e){const f=c(u);f&&d.push(nL(f))}return To(s,d)}function cL(e,t,n,r=$t()){const o=r&&Wt(r);o&&(qe&&_e.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),o.addEvent(e,{[ou]:t,[au]:n}))}function og(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},o=r[au],i=r[ou];typeof o=="string"&&typeof i=="number"&&(t[n.name]={value:i,unit:o})}),t}const ig=1e3;class cm{constructor(t={}){this._traceId=t.traceId||Ma(),this._spanId=t.spanId||Oa(),this._startTime=t.startTimestamp||nn(),this._attributes={},this.setAttributes({[St]:"manual",[wo]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this}addLinks(t){return this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?vb:hb}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=uo(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Mn,"custom"),this}end(t){this._endTime||(this._endTime=uo(t),jR(this),this._onSpanEnded())}getSpanJSON(){return jt({data:this._attributes,description:this._name,op:this._attributes[wo],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:gb(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[St],_metrics_summary:uf(this),profile_id:this._attributes[CR],exclusive_time:this._attributes[om],measurements:og(this._events),is_segment:this._isStandaloneSpan&&Wt(this)===this||void 0,segment_id:this._isStandaloneSpan?Wt(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){qe&&_e.log("[Tracing] Adding an event to span:",t);const o=sg(n)?n:r||nn(),i=sg(n)?{}:n||{},s={name:t,time:uo(o),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Ze();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===Wt(this)))return;if(this._isStandaloneSpan){this._sampled?dL(lL([this],t)):(qe&&_e.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(tg(this).scope||ct()).captureEvent(r)}_convertSpanToTransaction(){if(!lg(tt(this)))return;this._name||(qe&&_e.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=tg(this),o=(t||ct()).getClient()||Ze();if(this._sampled!==!0){qe&&_e.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),o&&o.recordDroppedEvent("sample_rate","transaction");return}const s=zl(this).filter(f=>f!==this&&!uL(f)).map(f=>tt(f)).filter(lg),l=this._attributes[Mn];delete this._attributes[Kv],s.forEach(f=>{f.data&&delete f.data[Kv]});const c={contexts:{trace:NR(this)},spans:s.length>ig?s.sort((f,p)=>f.start_timestamp-p.start_timestamp).slice(0,ig):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,...jt({dynamicSamplingContext:xo(this)})},_metrics_summary:uf(this),...l&&{transaction_info:{source:l}}},d=og(this._events);return d&&Object.keys(d).length&&(qe&&_e.log("[Measurements] Adding measurements to transaction event",JSON.stringify(d,void 0,2)),c.measurements=d),c}}function sg(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function lg(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function uL(e){return e instanceof cm&&e.isStandaloneSpan()}function dL(e){const t=Ze();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}const Ib="__SENTRY_SUPPRESS_TRACING__";function ko(e){const t=Mb();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=pL(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?s=>am(e.scope,s):o!==void 0?s=>Ab(o,s):s=>s())(()=>{const s=ct(),l=hL(s);return e.onlyIfParent&&!l?new Bi:fL({parentSpan:l,spanArguments:n,forceTransaction:r,scope:s})})}function Ab(e,t){const n=Mb();return n.withActiveSpan?n.withActiveSpan(e,t):am(r=>(Is(r,e||void 0),t(r)))}function fL({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!ia())return new Bi;const o=qn();let i;if(e&&!n)i=mL(e,r,t),yb(e,i);else if(e){const s=xo(e),{traceId:l,spanId:c}=e.spanContext(),d=Eo(e);i=cg({traceId:l,parentSpanId:c,...t},r,d),ng(i,s)}else{const{traceId:s,dsc:l,parentSpanId:c,sampled:d}={...o.getPropagationContext(),...r.getPropagationContext()};i=cg({traceId:s,parentSpanId:c,...t},r,d),l&&ng(i,l)}return FR(i),VR(i,r,o),i}function pL(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=uo(e.startTime),delete r.startTime,r}return n}function Mb(){const e=So();return Ni(e)}function cg(e,t,n){const r=Ze(),o=r&&r.getOptions()||{},{name:i="",attributes:s}=e,[l,c]=t.getScopeData().sdkProcessingMetadata[Ib]?[!1]:HR(o,{name:i,parentSampled:n,attributes:s,transactionContext:{name:i,parentSampled:n}}),d=new cm({...e,attributes:{[Mn]:"custom",...e.attributes},sampled:l});return c!==void 0&&d.setAttribute(cb,c),r&&r.emit("spanStart",d),d}function mL(e,t,n){const{spanId:r,traceId:o}=e.spanContext(),i=t.getScopeData().sdkProcessingMetadata[Ib]?!1:Eo(e),s=i?new cm({...n,parentSpanId:r,traceId:o,sampled:i}):new Bi({traceId:o});yb(e,s);const l=Ze();return l&&(l.emit("spanStart",s),n.endTimestamp&&l.emit("spanEnd",s)),s}function hL(e){const t=fc(e);if(!t)return;const n=Ze();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?Wt(t):t}const Vl={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},vL="heartbeatFailed",gL="idleTimeout",yL="finalTimeout",bL="externalFinish";function Ob(e,t={}){const n=new Map;let r=!1,o,i=bL,s=!t.disableAutoFinish;const l=[],{idleTimeout:c=Vl.idleTimeout,finalTimeout:d=Vl.finalTimeout,childSpanTimeout:u=Vl.childSpanTimeout,beforeSpanEnd:f}=t,p=Ze();if(!p||!ia())return new Bi;const h=ct(),v=$t(),y=wL(e);y.end=new Proxy(y.end,{apply(E,x,A){f&&f(y);const[P,...M]=A,z=P||nn(),V=uo(z),Y=zl(y).filter(J=>J!==y);if(!Y.length)return T(V),Reflect.apply(E,x,[V,...M]);const D=Y.map(J=>tt(J).timestamp).filter(J=>!!J),H=D.length?Math.max(...D):void 0,B=tt(y).start_timestamp,q=Math.min(B?B+d/1e3:1/0,Math.max(B||-1/0,Math.min(V,H||1/0)));return T(q),Reflect.apply(E,x,[q,...M])}});function C(){o&&(clearTimeout(o),o=void 0)}function g(E){C(),o=setTimeout(()=>{!r&&n.size===0&&s&&(i=gL,y.end(E))},c)}function S(E){o=setTimeout(()=>{!r&&s&&(i=vL,y.end(E))},u)}function _(E){C(),n.set(E,!0);const x=nn();S(x+u/1e3)}function b(E){if(n.has(E)&&n.delete(E),n.size===0){const x=nn();g(x+c/1e3)}}function T(E){r=!0,n.clear(),l.forEach(V=>V()),Is(h,v);const x=tt(y),{start_timestamp:A}=x;if(!A)return;(x.data||{})[df]||y.setAttribute(df,i),_e.log(`[Tracing] Idle span "${x.op}" finished`);const M=zl(y).filter(V=>V!==y);let z=0;M.forEach(V=>{V.isRecording()&&(V.setStatus({code:Ut,message:"cancelled"}),V.end(E),qe&&_e.log("[Tracing] Cancelling span since span ended early",JSON.stringify(V,void 0,2)));const Y=tt(V),{timestamp:D=0,start_timestamp:H=0}=Y,B=H<=E,q=(d+c)/1e3,J=D-H<=q;if(qe){const U=JSON.stringify(V,void 0,2);B?J||_e.log("[Tracing] Discarding span since it finished after idle span final timeout",U):_e.log("[Tracing] Discarding span since it happened after idle span was finished",U)}(!J||!B)&&($R(y,V),z++)}),z>0&&y.setAttribute("sentry.idle_span_discarded_spans",z)}return l.push(p.on("spanStart",E=>{if(r||E===y||tt(E).timestamp)return;zl(y).includes(E)&&_(E.spanContext().spanId)})),l.push(p.on("spanEnd",E=>{r||b(E.spanContext().spanId)})),l.push(p.on("idleSpanEnableAutoFinish",E=>{E===y&&(s=!0,g(),n.size&&S())})),t.disableAutoFinish||g(),setTimeout(()=>{r||(y.setStatus({code:Ut,message:"deadline_exceeded"}),i=yL,y.end())},d),y}function wL(e){const t=ko(e);return Is(ct(),t),qe&&_e.log("[Tracing] Started span is an idle span"),t}function vf(e,t,n,r=0){return new $n((o,i)=>{const s=e[r];if(t===null||typeof s!="function")o(t);else{const l=s({...t},n);qe&&s.id&&l===null&&_e.log(`Event processor "${s.id}" dropped event`),nu(l)?l.then(c=>vf(e,c,n,r+1).then(o)).then(null,i):vf(e,l,n,r+1).then(o).then(null,i)}})}let yl,ug,bl;function kL(e){const t=Qe._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return bl&&n.length===ug||(ug=n.length,bl=n.reduce((r,o)=>{yl||(yl={});const i=yl[o];if(i)r[i[0]]=i[1];else{const s=e(o);for(let l=s.length-1;l>=0;l--){const c=s[l],d=c&&c.filename,u=t[o];if(d&&u){r[d]=u,yl[o]=[d,u];break}}}return r},{})),bl}function _L(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;CL(e,t),r&&xL(e,r),TL(e,n),SL(e,o),EL(e,i)}function dg(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:l,breadcrumbs:c,fingerprint:d,eventProcessors:u,attachments:f,propagationContext:p,transactionName:h,span:v}=t;wl(e,"extra",n),wl(e,"tags",r),wl(e,"user",o),wl(e,"contexts",i),e.sdkProcessingMetadata=ru(e.sdkProcessingMetadata,l,2),s&&(e.level=s),h&&(e.transactionName=h),v&&(e.span=v),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function wl(e,t,n){e[t]=ru(e[t],n,1)}function CL(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:l}=t,c=jt(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const d=jt(r);d&&Object.keys(d).length&&(e.tags={...d,...e.tags});const u=jt(o);u&&Object.keys(u).length&&(e.user={...u,...e.user});const f=jt(i);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),s&&(e.level=s),l&&e.type!=="transaction"&&(e.transaction=l)}function SL(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function EL(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function xL(e,t){e.contexts={trace:BR(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:xo(t),...e.sdkProcessingMetadata};const n=Wt(t),r=tt(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function TL(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function Nb(e,t,n,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:l=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Nn(),timestamp:t.timestamp||Ys()},d=n.integrations||e.integrations.map(C=>C.name);PL(c,e),ML(c,d),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&IL(c,e.stackParser);const u=NL(r,n.captureContext);n.mechanism&&bi(c,n.mechanism);const f=o?o.getEventProcessors():[],p=wR().getScopeData();if(i){const C=i.getScopeData();dg(p,C)}if(u){const C=u.getScopeData();dg(p,C)}const h=[...n.attachments||[],...p.attachments];h.length&&(n.attachments=h),_L(c,p);const v=[...f,...p.eventProcessors];return vf(v,c,n).then(C=>(C&&AL(C),typeof s=="number"&&s>0?OL(C,s,l):C))}function PL(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;e.environment=e.environment||n||sm,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o),e.message&&(e.message=Qo(e.message,i));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Qo(s.value,i));const l=e.request;l&&l.url&&(l.url=Qo(l.url,i))}function IL(e,t){const n=kL(t);try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{n&&o.filename&&(o.debug_id=n[o.filename])})})}catch{}}function AL(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.entries(t).forEach(([r,o])=>{n.push({type:"sourcemap",code_file:r,debug_id:o})})}function ML(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function OL(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:Jn(o.data,t,n)}}))},...e.user&&{user:Jn(e.user,t,n)},...e.contexts&&{contexts:Jn(e.contexts,t,n)},...e.extra&&{extra:Jn(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=Jn(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>({...o,...o.data&&{data:Jn(o.data,t,n)}}))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=Jn(e.contexts.flags,3,n)),r}function NL(e,t){if(!t)return e;const n=e?e.clone():new Na;return n.update(t),n}function BL(e){if(e)return DL(e)?{captureContext:e}:LL(e)?{captureContext:e}:e}function DL(e){return e instanceof Na||typeof e=="function"}const RL=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function LL(e){return Object.keys(e).some(t=>RL.includes(t))}function iu(e,t){return ct().captureException(e,BL(t))}function Bb(e,t){return ct().captureEvent(e,t)}function $L(e,t){qn().setContext(e,t)}function zL(){return qn().lastEventId()}function VL(){const e=Ze();return!!e&&e.getOptions().enabled!==!1&&!!e.getTransport()}function FL(e){qn().addEventProcessor(e)}function fg(e){const t=Ze(),n=qn(),r=ct(),{release:o,environment:i=sm}=t&&t.getOptions()||{},{userAgent:s}=Qe.navigator||{},l=uR({release:o,environment:i,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),c=n.getSession();return c&&c.status==="ok"&&wi(c,{status:"exited"}),Db(),n.setSession(l),r.setSession(l),l}function Db(){const e=qn(),t=ct(),n=t.getSession()||e.getSession();n&&dR(n),Rb(),e.setSession(),t.setSession()}function Rb(){const e=qn(),t=ct(),n=Ze(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function pg(e=!1){if(e){Db();return}Rb()}const jL="7";function Lb(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function HL(e){return`${Lb(e)}${e.projectId}/envelope/`}function UL(e,t){const n={sentry_version:jL};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function WL(e,t,n){return t||`${HL(e)}?${UL(e,n)}`}function qL(e,t){const n=xb(e);if(!n)return"";const r=`${Lb(n)}embed/error-page/`;let o=`dsn=${Di(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 mg=[];function YL(e){const t={};return e.forEach(n=>{const{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function GL(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const s=n(t);r=Array.isArray(s)?s:[s]}else r=t;const o=YL(r),i=o.findIndex(s=>s.name==="Debug");if(i>-1){const[s]=o.splice(i,1);o.push(s)}return o}function XL(e,t){const n={};return t.forEach(r=>{r&&$b(e,r,n)}),n}function hg(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function $b(e,t,n){if(n[t.name]){qe&&_e.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,mg.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),mg.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>r(o,i,e))}if(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)}qe&&_e.log(`Integration installed: ${t.name}`)}function KL(e,t,n){const r=[{type:"client_report"},{timestamp:Ys(),discarded_events:e}];return To(t?{dsn:t}:{},[r])}class Er 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}}const vg="Not capturing exception because it's already been captured.";class JL{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=xb(t.dsn):qe&&_e.warn("No DSN provided, client will not send events."),this._dsn){const o=WL(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:o})}const r=["enableTracing","tracesSampleRate","tracesSampler"].find(o=>o in t&&t[o]==null);r&&mr(()=>{console.warn(`[Sentry] Deprecation warning: \`${r}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(t,n,r){const o=Nn();if(Gv(t))return qe&&_e.log(vg),o;const i={event_id:o,...n};return this._process(this.eventFromException(t,i).then(s=>this._captureEvent(s,i,r))),i.event_id}captureMessage(t,n,r,o){const i={event_id:Nn(),...r},s=em(t)?t:String(t),l=tm(t)?this.eventFromMessage(s,n,i):this.eventFromException(t,i);return this._process(l.then(c=>this._captureEvent(c,i,o))),i.event_id}captureEvent(t,n,r){const o=Nn();if(n&&n.originalException&&Gv(n.originalException))return qe&&_e.log(vg),o;const i={event_id:o,...n},l=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,i,l||r)),i.event_id}captureSession(t){typeof t.release!="string"?qe&&_e.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),wi(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.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(o=>r&&o))):oa(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];$b(this,t,this._integrations),n||hg(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=sL(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=ZR(r,rL(i));const o=this.sendEnvelope(r);o&&o.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){const n=iL(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const o=typeof r=="number"?r:1,i=`${t}:${n}`;qe&&_e.log(`Recording outcome: "${i}"${o>1?` (${o} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+o}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const o=r.indexOf(n);o>-1&&r.splice(o,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(o=>o(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(qe&&_e.error("Error while sending envelope:",n),n)):(qe&&_e.error("Transport disabled"),oa({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=XL(this,t),hg(this,t)}_updateSessionFromEvent(t,n){let r=!1,o=!1;const i=n.exception&&n.exception.values;if(i){o=!0;for(const c of i){const d=c.mechanism;if(d&&d.handled===!1){r=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(wi(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new $n(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=ct(),o=qn()){const i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),Nb(i,t,n,r,this,o).then(l=>{if(l===null)return l;l.contexts={trace:kR(r),...l.contexts};const c=Sb(this,r);return l.sdkProcessingMetadata={dynamicSamplingContext:c,...l.sdkProcessingMetadata},l})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(o=>o.event_id,o=>{if(qe){const i=o;i.logLevel==="log"?_e.log(i.message):_e.warn(i)}})}_processEvent(t,n,r){const o=this.getOptions(),{sampleRate:i}=o,s=Vb(t),l=zb(t),c=t.type||"error",d=`before send for type \`${c}\``,u=typeof i>"u"?void 0:pc(i);if(l&&typeof u=="number"&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",t),dc(new Er(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const f=c==="replay_event"?"replay":c,h=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,h).then(v=>{if(v===null)throw this.recordDroppedEvent("event_processor",f,t),new Er("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return v;const C=ZL(this,o,v,n);return QL(C,d)}).then(v=>{if(v===null){if(this.recordDroppedEvent("before_send",f,t),s){const S=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",S)}throw new Er(`${d} returned \`null\`, will not send event.`,"log")}const y=r&&r.getSession();if(!s&&y&&this._updateSessionFromEvent(y,v),s){const g=v.sdkProcessingMetadata&&v.sdkProcessingMetadata.spanCountBeforeProcessing||0,S=v.spans?v.spans.length:0,_=g-S;_>0&&this.recordDroppedEvent("before_send","span",_)}const C=v.transaction_info;if(s&&C&&v.transaction!==t.transaction){const g="custom";v.transaction_info={...C,source:g}}return this.sendEvent(v,n),v}).then(null,v=>{throw v instanceof Er?v:(this.captureException(v,{data:{__sentry__:!0},originalException:v}),new Er(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
650
- Reason: ${v}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[o,i]=n.split(":");return{reason:o,category:i,quantity:r}})}_flushOutcomes(){qe&&_e.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){qe&&_e.log("No outcomes to send");return}if(!this._dsn){qe&&_e.log("No dsn provided, will not send outcomes");return}qe&&_e.log("Sending outcomes:",t);const n=KL(t,this._options.tunnel&&Di(this._dsn));this.sendEnvelope(n)}}function QL(e,t){const n=`${t} must return \`null\` or a valid event.`;if(nu(e))return e.then(r=>{if(!yi(r)&&r!==null)throw new Er(n);return r},r=>{throw new Er(`${t} rejected with ${r}`)});if(!yi(e)&&e!==null)throw new Er(n);return e}function ZL(e,t,n,r){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=t;if(zb(n)&&o)return o(n,r);if(Vb(n)){if(n.spans&&s){const l=[];for(const c of n.spans){const d=s(c);d?l.push(d):(bb(),e.recordDroppedEvent("before_send","span"))}n.spans=l}if(i){if(n.spans){const l=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:l}}return i(n,r)}}return n}function zb(e){return e.type===void 0}function Vb(e){return e.type==="transaction"}function e$(e,t){t.debug===!0&&(qe?_e.enable():mr(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),ct().update(t.initialScope);const r=new e(t);return t$(r),r.init(),r}function t$(e){ct().setClient(e)}function n$(e){const t=[];function n(){return e===void 0||t.length<e}function r(s){return t.splice(t.indexOf(s),1)[0]||Promise.resolve(void 0)}function o(s){if(!n())return dc(new Er("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 $n((l,c)=>{let d=t.length;if(!d)return l(!0);const u=setTimeout(()=>{s&&s>0&&l(!1)},s);t.forEach(f=>{oa(f).then(()=>{--d||(clearTimeout(u),l(!0))},c)})})}return{$:t,add:o,drain:i}}const r$=60*1e3;function a$(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?r$:r-t}function o$(e,t){return e[t]||e.all||0}function Fb(e,t,n=Date.now()){return o$(e,t)>n}function jb(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[c,d,,,u]=l.split(":",5),f=parseInt(c,10),p=(isNaN(f)?60:f)*1e3;if(!d)o.all=r+p;else for(const h of d.split(";"))h==="metric_bucket"?(!u||u.split(";").includes("custom"))&&(o[h]=r+p):o[h]=r+p}else s?o.all=r+a$(s,r):t===429&&(o.all=r+60*1e3);return o}const i$=64;function s$(e,t,n=n$(e.bufferSize||i$)){let r={};const o=s=>n.drain(s);function i(s){const l=[];if(rg(s,(f,p)=>{const h=ag(p);if(Fb(r,h)){const v=gg(f,p);e.recordDroppedEvent("ratelimit_backoff",h,v)}else l.push(f)}),l.length===0)return oa({});const c=To(s[0],l),d=f=>{rg(c,(p,h)=>{const v=gg(p,h);e.recordDroppedEvent(f,ag(h),v)})},u=()=>t({body:eL(c)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&qe&&_e.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=jb(r,f),f),f=>{throw d("network_error"),f});return n.add(u).then(f=>f,f=>{if(f instanceof Er)return qe&&_e.error("Skipped sending event because buffer is full."),d("queue_overflow"),oa({});throw f})}return{send:i,flush:o}}function gg(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function l$(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return u$(e,n)||c$(e,r)}function c$(e,t){return t?yg(e)===yg(t):!1}function u$(e,t){return t?e.includes(t.host):!1}function yg(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function d$(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:Xr})),version:Xr}),e._metadata=o}function Hb(e={}){const t=Ze();if(!VL()||!t)return{};const n=So(),r=Ni(n);if(r.getTraceData)return r.getTraceData(e);const o=ct(),i=e.span||$t(),s=i?DR(i):f$(o),l=i?xo(i):Sb(t,o),c=PR(l);return pb.test(s)?{"sentry-trace":s,baggage:c}:(_e.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function f$(e){const{traceId:t,sampled:n,spanId:r}=e.getPropagationContext();return mb(t,r,n)}const p$=100;function Ba(e,t){const n=Ze(),r=qn();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=p$}=n.getOptions();if(i<=0)return;const l={timestamp:Ys(),...e},c=o?mr(()=>o(l,t)):l;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,i))}let bg;const m$="FunctionToString",wg=new WeakMap,h$=()=>({name:m$,setupOnce(){bg=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=nm(this),n=wg.has(Ze())&&t!==void 0?t:this;return bg.apply(n,e)}}catch{}},setup(e){wg.set(e,!0)}}),v$=h$,g$=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],y$="InboundFilters",b$=(e={})=>({name:y$,processEvent(t,n,r){const o=r.getOptions(),i=k$(e,o);return _$(t,i)?null:t}}),w$=b$;function k$(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:g$],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function _$(e,t){return t.ignoreInternal&&P$(e)?(qe&&_e.warn(`Event dropped due to being internal Sentry Error.
649
+ `),typeof l=="string"||l instanceof Uint8Array)o(l);else{let c;try{c=JSON.stringify(l)}catch{c=JSON.stringify(Qn(l))}o(c)}}return typeof r=="string"?r:tL(r)}function tL(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 nL(e){return[{type:"span"},e]}function rL(e){const t=typeof e.data=="string"?hf(e.data):e.data;return[jt({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const aL={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function ag(e){return aL[e]}function lm(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Pb(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:Di(r)},...o&&{trace:jt({...o})}}}function oL(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 iL(e,t,n,r){const o=lm(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:Di(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return To(i,[s])}function sL(e,t,n,r){const o=lm(n),i=e.type&&e.type!=="replay_event"?e.type:"event";oL(e,n&&n.sdk);const s=Pb(e,o,r,t);return delete e.sdkProcessingMetadata,To(s,[[{type:i},e]])}function lL(e,t){function n(u){return!!u.trace_id&&!!u.public_key}const r=xo(e[0]),o=t&&t.getDsn(),i=t&&t.getOptions().tunnel,s={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!i&&o&&{dsn:Di(o)}},l=t&&t.getOptions().beforeSendSpan,c=l?u=>{const f=l(tt(u));return f||bb(),f}:u=>tt(u),d=[];for(const u of e){const f=c(u);f&&d.push(nL(f))}return To(s,d)}function cL(e,t,n,r=$t()){const o=r&&Wt(r);o&&(qe&&_e.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),o.addEvent(e,{[ou]:t,[au]:n}))}function og(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},o=r[au],i=r[ou];typeof o=="string"&&typeof i=="number"&&(t[n.name]={value:i,unit:o})}),t}const ig=1e3;class cm{constructor(t={}){this._traceId=t.traceId||Ma(),this._spanId=t.spanId||Oa(),this._startTime=t.startTimestamp||nn(),this._attributes={},this.setAttributes({[St]:"manual",[wo]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this}addLinks(t){return this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?vb:hb}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=uo(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Mn,"custom"),this}end(t){this._endTime||(this._endTime=uo(t),jR(this),this._onSpanEnded())}getSpanJSON(){return jt({data:this._attributes,description:this._name,op:this._attributes[wo],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:gb(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[St],_metrics_summary:uf(this),profile_id:this._attributes[CR],exclusive_time:this._attributes[om],measurements:og(this._events),is_segment:this._isStandaloneSpan&&Wt(this)===this||void 0,segment_id:this._isStandaloneSpan?Wt(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){qe&&_e.log("[Tracing] Adding an event to span:",t);const o=sg(n)?n:r||nn(),i=sg(n)?{}:n||{},s={name:t,time:uo(o),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Ze();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===Wt(this)))return;if(this._isStandaloneSpan){this._sampled?dL(lL([this],t)):(qe&&_e.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(tg(this).scope||ct()).captureEvent(r)}_convertSpanToTransaction(){if(!lg(tt(this)))return;this._name||(qe&&_e.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=tg(this),o=(t||ct()).getClient()||Ze();if(this._sampled!==!0){qe&&_e.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),o&&o.recordDroppedEvent("sample_rate","transaction");return}const s=zl(this).filter(f=>f!==this&&!uL(f)).map(f=>tt(f)).filter(lg),l=this._attributes[Mn];delete this._attributes[Kv],s.forEach(f=>{f.data&&delete f.data[Kv]});const c={contexts:{trace:NR(this)},spans:s.length>ig?s.sort((f,p)=>f.start_timestamp-p.start_timestamp).slice(0,ig):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,...jt({dynamicSamplingContext:xo(this)})},_metrics_summary:uf(this),...l&&{transaction_info:{source:l}}},d=og(this._events);return d&&Object.keys(d).length&&(qe&&_e.log("[Measurements] Adding measurements to transaction event",JSON.stringify(d,void 0,2)),c.measurements=d),c}}function sg(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function lg(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function uL(e){return e instanceof cm&&e.isStandaloneSpan()}function dL(e){const t=Ze();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}const Ib="__SENTRY_SUPPRESS_TRACING__";function ko(e){const t=Mb();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=pL(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?s=>am(e.scope,s):o!==void 0?s=>Ab(o,s):s=>s())(()=>{const s=ct(),l=hL(s);return e.onlyIfParent&&!l?new Bi:fL({parentSpan:l,spanArguments:n,forceTransaction:r,scope:s})})}function Ab(e,t){const n=Mb();return n.withActiveSpan?n.withActiveSpan(e,t):am(r=>(Is(r,e||void 0),t(r)))}function fL({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!ia())return new Bi;const o=Yn();let i;if(e&&!n)i=mL(e,r,t),yb(e,i);else if(e){const s=xo(e),{traceId:l,spanId:c}=e.spanContext(),d=Eo(e);i=cg({traceId:l,parentSpanId:c,...t},r,d),ng(i,s)}else{const{traceId:s,dsc:l,parentSpanId:c,sampled:d}={...o.getPropagationContext(),...r.getPropagationContext()};i=cg({traceId:s,parentSpanId:c,...t},r,d),l&&ng(i,l)}return FR(i),VR(i,r,o),i}function pL(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=uo(e.startTime),delete r.startTime,r}return n}function Mb(){const e=So();return Ni(e)}function cg(e,t,n){const r=Ze(),o=r&&r.getOptions()||{},{name:i="",attributes:s}=e,[l,c]=t.getScopeData().sdkProcessingMetadata[Ib]?[!1]:HR(o,{name:i,parentSampled:n,attributes:s,transactionContext:{name:i,parentSampled:n}}),d=new cm({...e,attributes:{[Mn]:"custom",...e.attributes},sampled:l});return c!==void 0&&d.setAttribute(cb,c),r&&r.emit("spanStart",d),d}function mL(e,t,n){const{spanId:r,traceId:o}=e.spanContext(),i=t.getScopeData().sdkProcessingMetadata[Ib]?!1:Eo(e),s=i?new cm({...n,parentSpanId:r,traceId:o,sampled:i}):new Bi({traceId:o});yb(e,s);const l=Ze();return l&&(l.emit("spanStart",s),n.endTimestamp&&l.emit("spanEnd",s)),s}function hL(e){const t=fc(e);if(!t)return;const n=Ze();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?Wt(t):t}const Vl={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},vL="heartbeatFailed",gL="idleTimeout",yL="finalTimeout",bL="externalFinish";function Ob(e,t={}){const n=new Map;let r=!1,o,i=bL,s=!t.disableAutoFinish;const l=[],{idleTimeout:c=Vl.idleTimeout,finalTimeout:d=Vl.finalTimeout,childSpanTimeout:u=Vl.childSpanTimeout,beforeSpanEnd:f}=t,p=Ze();if(!p||!ia())return new Bi;const h=ct(),v=$t(),y=wL(e);y.end=new Proxy(y.end,{apply(E,x,A){f&&f(y);const[P,...M]=A,z=P||nn(),V=uo(z),Y=zl(y).filter(J=>J!==y);if(!Y.length)return T(V),Reflect.apply(E,x,[V,...M]);const D=Y.map(J=>tt(J).timestamp).filter(J=>!!J),H=D.length?Math.max(...D):void 0,B=tt(y).start_timestamp,q=Math.min(B?B+d/1e3:1/0,Math.max(B||-1/0,Math.min(V,H||1/0)));return T(q),Reflect.apply(E,x,[q,...M])}});function C(){o&&(clearTimeout(o),o=void 0)}function g(E){C(),o=setTimeout(()=>{!r&&n.size===0&&s&&(i=gL,y.end(E))},c)}function S(E){o=setTimeout(()=>{!r&&s&&(i=vL,y.end(E))},u)}function _(E){C(),n.set(E,!0);const x=nn();S(x+u/1e3)}function b(E){if(n.has(E)&&n.delete(E),n.size===0){const x=nn();g(x+c/1e3)}}function T(E){r=!0,n.clear(),l.forEach(V=>V()),Is(h,v);const x=tt(y),{start_timestamp:A}=x;if(!A)return;(x.data||{})[df]||y.setAttribute(df,i),_e.log(`[Tracing] Idle span "${x.op}" finished`);const M=zl(y).filter(V=>V!==y);let z=0;M.forEach(V=>{V.isRecording()&&(V.setStatus({code:Ut,message:"cancelled"}),V.end(E),qe&&_e.log("[Tracing] Cancelling span since span ended early",JSON.stringify(V,void 0,2)));const Y=tt(V),{timestamp:D=0,start_timestamp:H=0}=Y,B=H<=E,q=(d+c)/1e3,J=D-H<=q;if(qe){const U=JSON.stringify(V,void 0,2);B?J||_e.log("[Tracing] Discarding span since it finished after idle span final timeout",U):_e.log("[Tracing] Discarding span since it happened after idle span was finished",U)}(!J||!B)&&($R(y,V),z++)}),z>0&&y.setAttribute("sentry.idle_span_discarded_spans",z)}return l.push(p.on("spanStart",E=>{if(r||E===y||tt(E).timestamp)return;zl(y).includes(E)&&_(E.spanContext().spanId)})),l.push(p.on("spanEnd",E=>{r||b(E.spanContext().spanId)})),l.push(p.on("idleSpanEnableAutoFinish",E=>{E===y&&(s=!0,g(),n.size&&S())})),t.disableAutoFinish||g(),setTimeout(()=>{r||(y.setStatus({code:Ut,message:"deadline_exceeded"}),i=yL,y.end())},d),y}function wL(e){const t=ko(e);return Is(ct(),t),qe&&_e.log("[Tracing] Started span is an idle span"),t}function vf(e,t,n,r=0){return new $n((o,i)=>{const s=e[r];if(t===null||typeof s!="function")o(t);else{const l=s({...t},n);qe&&s.id&&l===null&&_e.log(`Event processor "${s.id}" dropped event`),nu(l)?l.then(c=>vf(e,c,n,r+1).then(o)).then(null,i):vf(e,l,n,r+1).then(o).then(null,i)}})}let yl,ug,bl;function kL(e){const t=Qe._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return bl&&n.length===ug||(ug=n.length,bl=n.reduce((r,o)=>{yl||(yl={});const i=yl[o];if(i)r[i[0]]=i[1];else{const s=e(o);for(let l=s.length-1;l>=0;l--){const c=s[l],d=c&&c.filename,u=t[o];if(d&&u){r[d]=u,yl[o]=[d,u];break}}}return r},{})),bl}function _L(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;CL(e,t),r&&xL(e,r),TL(e,n),SL(e,o),EL(e,i)}function dg(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:l,breadcrumbs:c,fingerprint:d,eventProcessors:u,attachments:f,propagationContext:p,transactionName:h,span:v}=t;wl(e,"extra",n),wl(e,"tags",r),wl(e,"user",o),wl(e,"contexts",i),e.sdkProcessingMetadata=ru(e.sdkProcessingMetadata,l,2),s&&(e.level=s),h&&(e.transactionName=h),v&&(e.span=v),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function wl(e,t,n){e[t]=ru(e[t],n,1)}function CL(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:l}=t,c=jt(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const d=jt(r);d&&Object.keys(d).length&&(e.tags={...d,...e.tags});const u=jt(o);u&&Object.keys(u).length&&(e.user={...u,...e.user});const f=jt(i);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),s&&(e.level=s),l&&e.type!=="transaction"&&(e.transaction=l)}function SL(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function EL(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function xL(e,t){e.contexts={trace:BR(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:xo(t),...e.sdkProcessingMetadata};const n=Wt(t),r=tt(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function TL(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function Nb(e,t,n,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:l=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Nn(),timestamp:t.timestamp||Ys()},d=n.integrations||e.integrations.map(C=>C.name);PL(c,e),ML(c,d),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&IL(c,e.stackParser);const u=NL(r,n.captureContext);n.mechanism&&bi(c,n.mechanism);const f=o?o.getEventProcessors():[],p=wR().getScopeData();if(i){const C=i.getScopeData();dg(p,C)}if(u){const C=u.getScopeData();dg(p,C)}const h=[...n.attachments||[],...p.attachments];h.length&&(n.attachments=h),_L(c,p);const v=[...f,...p.eventProcessors];return vf(v,c,n).then(C=>(C&&AL(C),typeof s=="number"&&s>0?OL(C,s,l):C))}function PL(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;e.environment=e.environment||n||sm,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o),e.message&&(e.message=Qo(e.message,i));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Qo(s.value,i));const l=e.request;l&&l.url&&(l.url=Qo(l.url,i))}function IL(e,t){const n=kL(t);try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{n&&o.filename&&(o.debug_id=n[o.filename])})})}catch{}}function AL(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.entries(t).forEach(([r,o])=>{n.push({type:"sourcemap",code_file:r,debug_id:o})})}function ML(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function OL(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:Qn(o.data,t,n)}}))},...e.user&&{user:Qn(e.user,t,n)},...e.contexts&&{contexts:Qn(e.contexts,t,n)},...e.extra&&{extra:Qn(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=Qn(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>({...o,...o.data&&{data:Qn(o.data,t,n)}}))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=Qn(e.contexts.flags,3,n)),r}function NL(e,t){if(!t)return e;const n=e?e.clone():new Na;return n.update(t),n}function BL(e){if(e)return DL(e)?{captureContext:e}:LL(e)?{captureContext:e}:e}function DL(e){return e instanceof Na||typeof e=="function"}const RL=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function LL(e){return Object.keys(e).some(t=>RL.includes(t))}function iu(e,t){return ct().captureException(e,BL(t))}function Bb(e,t){return ct().captureEvent(e,t)}function $L(e,t){Yn().setContext(e,t)}function zL(){return Yn().lastEventId()}function VL(){const e=Ze();return!!e&&e.getOptions().enabled!==!1&&!!e.getTransport()}function FL(e){Yn().addEventProcessor(e)}function fg(e){const t=Ze(),n=Yn(),r=ct(),{release:o,environment:i=sm}=t&&t.getOptions()||{},{userAgent:s}=Qe.navigator||{},l=uR({release:o,environment:i,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),c=n.getSession();return c&&c.status==="ok"&&wi(c,{status:"exited"}),Db(),n.setSession(l),r.setSession(l),l}function Db(){const e=Yn(),t=ct(),n=t.getSession()||e.getSession();n&&dR(n),Rb(),e.setSession(),t.setSession()}function Rb(){const e=Yn(),t=ct(),n=Ze(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function pg(e=!1){if(e){Db();return}Rb()}const jL="7";function Lb(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function HL(e){return`${Lb(e)}${e.projectId}/envelope/`}function UL(e,t){const n={sentry_version:jL};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function WL(e,t,n){return t||`${HL(e)}?${UL(e,n)}`}function qL(e,t){const n=xb(e);if(!n)return"";const r=`${Lb(n)}embed/error-page/`;let o=`dsn=${Di(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 mg=[];function YL(e){const t={};return e.forEach(n=>{const{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function GL(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const s=n(t);r=Array.isArray(s)?s:[s]}else r=t;const o=YL(r),i=o.findIndex(s=>s.name==="Debug");if(i>-1){const[s]=o.splice(i,1);o.push(s)}return o}function XL(e,t){const n={};return t.forEach(r=>{r&&$b(e,r,n)}),n}function hg(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function $b(e,t,n){if(n[t.name]){qe&&_e.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,mg.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),mg.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>r(o,i,e))}if(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)}qe&&_e.log(`Integration installed: ${t.name}`)}function KL(e,t,n){const r=[{type:"client_report"},{timestamp:Ys(),discarded_events:e}];return To(t?{dsn:t}:{},[r])}class Er 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}}const vg="Not capturing exception because it's already been captured.";class JL{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=xb(t.dsn):qe&&_e.warn("No DSN provided, client will not send events."),this._dsn){const o=WL(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:o})}const r=["enableTracing","tracesSampleRate","tracesSampler"].find(o=>o in t&&t[o]==null);r&&mr(()=>{console.warn(`[Sentry] Deprecation warning: \`${r}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(t,n,r){const o=Nn();if(Gv(t))return qe&&_e.log(vg),o;const i={event_id:o,...n};return this._process(this.eventFromException(t,i).then(s=>this._captureEvent(s,i,r))),i.event_id}captureMessage(t,n,r,o){const i={event_id:Nn(),...r},s=em(t)?t:String(t),l=tm(t)?this.eventFromMessage(s,n,i):this.eventFromException(t,i);return this._process(l.then(c=>this._captureEvent(c,i,o))),i.event_id}captureEvent(t,n,r){const o=Nn();if(n&&n.originalException&&Gv(n.originalException))return qe&&_e.log(vg),o;const i={event_id:o,...n},l=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,i,l||r)),i.event_id}captureSession(t){typeof t.release!="string"?qe&&_e.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),wi(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.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(o=>r&&o))):oa(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];$b(this,t,this._integrations),n||hg(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=sL(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=ZR(r,rL(i));const o=this.sendEnvelope(r);o&&o.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){const n=iL(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const o=typeof r=="number"?r:1,i=`${t}:${n}`;qe&&_e.log(`Recording outcome: "${i}"${o>1?` (${o} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+o}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const o=r.indexOf(n);o>-1&&r.splice(o,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(o=>o(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(qe&&_e.error("Error while sending envelope:",n),n)):(qe&&_e.error("Transport disabled"),oa({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=XL(this,t),hg(this,t)}_updateSessionFromEvent(t,n){let r=!1,o=!1;const i=n.exception&&n.exception.values;if(i){o=!0;for(const c of i){const d=c.mechanism;if(d&&d.handled===!1){r=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(wi(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new $n(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=ct(),o=Yn()){const i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),Nb(i,t,n,r,this,o).then(l=>{if(l===null)return l;l.contexts={trace:kR(r),...l.contexts};const c=Sb(this,r);return l.sdkProcessingMetadata={dynamicSamplingContext:c,...l.sdkProcessingMetadata},l})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(o=>o.event_id,o=>{if(qe){const i=o;i.logLevel==="log"?_e.log(i.message):_e.warn(i)}})}_processEvent(t,n,r){const o=this.getOptions(),{sampleRate:i}=o,s=Vb(t),l=zb(t),c=t.type||"error",d=`before send for type \`${c}\``,u=typeof i>"u"?void 0:pc(i);if(l&&typeof u=="number"&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",t),dc(new Er(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const f=c==="replay_event"?"replay":c,h=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,h).then(v=>{if(v===null)throw this.recordDroppedEvent("event_processor",f,t),new Er("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return v;const C=ZL(this,o,v,n);return QL(C,d)}).then(v=>{if(v===null){if(this.recordDroppedEvent("before_send",f,t),s){const S=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",S)}throw new Er(`${d} returned \`null\`, will not send event.`,"log")}const y=r&&r.getSession();if(!s&&y&&this._updateSessionFromEvent(y,v),s){const g=v.sdkProcessingMetadata&&v.sdkProcessingMetadata.spanCountBeforeProcessing||0,S=v.spans?v.spans.length:0,_=g-S;_>0&&this.recordDroppedEvent("before_send","span",_)}const C=v.transaction_info;if(s&&C&&v.transaction!==t.transaction){const g="custom";v.transaction_info={...C,source:g}}return this.sendEvent(v,n),v}).then(null,v=>{throw v instanceof Er?v:(this.captureException(v,{data:{__sentry__:!0},originalException:v}),new Er(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
650
+ Reason: ${v}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[o,i]=n.split(":");return{reason:o,category:i,quantity:r}})}_flushOutcomes(){qe&&_e.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){qe&&_e.log("No outcomes to send");return}if(!this._dsn){qe&&_e.log("No dsn provided, will not send outcomes");return}qe&&_e.log("Sending outcomes:",t);const n=KL(t,this._options.tunnel&&Di(this._dsn));this.sendEnvelope(n)}}function QL(e,t){const n=`${t} must return \`null\` or a valid event.`;if(nu(e))return e.then(r=>{if(!yi(r)&&r!==null)throw new Er(n);return r},r=>{throw new Er(`${t} rejected with ${r}`)});if(!yi(e)&&e!==null)throw new Er(n);return e}function ZL(e,t,n,r){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=t;if(zb(n)&&o)return o(n,r);if(Vb(n)){if(n.spans&&s){const l=[];for(const c of n.spans){const d=s(c);d?l.push(d):(bb(),e.recordDroppedEvent("before_send","span"))}n.spans=l}if(i){if(n.spans){const l=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:l}}return i(n,r)}}return n}function zb(e){return e.type===void 0}function Vb(e){return e.type==="transaction"}function e$(e,t){t.debug===!0&&(qe?_e.enable():mr(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),ct().update(t.initialScope);const r=new e(t);return t$(r),r.init(),r}function t$(e){ct().setClient(e)}function n$(e){const t=[];function n(){return e===void 0||t.length<e}function r(s){return t.splice(t.indexOf(s),1)[0]||Promise.resolve(void 0)}function o(s){if(!n())return dc(new Er("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 $n((l,c)=>{let d=t.length;if(!d)return l(!0);const u=setTimeout(()=>{s&&s>0&&l(!1)},s);t.forEach(f=>{oa(f).then(()=>{--d||(clearTimeout(u),l(!0))},c)})})}return{$:t,add:o,drain:i}}const r$=60*1e3;function a$(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?r$:r-t}function o$(e,t){return e[t]||e.all||0}function Fb(e,t,n=Date.now()){return o$(e,t)>n}function jb(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[c,d,,,u]=l.split(":",5),f=parseInt(c,10),p=(isNaN(f)?60:f)*1e3;if(!d)o.all=r+p;else for(const h of d.split(";"))h==="metric_bucket"?(!u||u.split(";").includes("custom"))&&(o[h]=r+p):o[h]=r+p}else s?o.all=r+a$(s,r):t===429&&(o.all=r+60*1e3);return o}const i$=64;function s$(e,t,n=n$(e.bufferSize||i$)){let r={};const o=s=>n.drain(s);function i(s){const l=[];if(rg(s,(f,p)=>{const h=ag(p);if(Fb(r,h)){const v=gg(f,p);e.recordDroppedEvent("ratelimit_backoff",h,v)}else l.push(f)}),l.length===0)return oa({});const c=To(s[0],l),d=f=>{rg(c,(p,h)=>{const v=gg(p,h);e.recordDroppedEvent(f,ag(h),v)})},u=()=>t({body:eL(c)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&qe&&_e.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=jb(r,f),f),f=>{throw d("network_error"),f});return n.add(u).then(f=>f,f=>{if(f instanceof Er)return qe&&_e.error("Skipped sending event because buffer is full."),d("queue_overflow"),oa({});throw f})}return{send:i,flush:o}}function gg(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function l$(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return u$(e,n)||c$(e,r)}function c$(e,t){return t?yg(e)===yg(t):!1}function u$(e,t){return t?e.includes(t.host):!1}function yg(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function d$(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:Xr})),version:Xr}),e._metadata=o}function Hb(e={}){const t=Ze();if(!VL()||!t)return{};const n=So(),r=Ni(n);if(r.getTraceData)return r.getTraceData(e);const o=ct(),i=e.span||$t(),s=i?DR(i):f$(o),l=i?xo(i):Sb(t,o),c=PR(l);return pb.test(s)?{"sentry-trace":s,baggage:c}:(_e.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function f$(e){const{traceId:t,sampled:n,spanId:r}=e.getPropagationContext();return mb(t,r,n)}const p$=100;function Ba(e,t){const n=Ze(),r=Yn();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=p$}=n.getOptions();if(i<=0)return;const l={timestamp:Ys(),...e},c=o?mr(()=>o(l,t)):l;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,i))}let bg;const m$="FunctionToString",wg=new WeakMap,h$=()=>({name:m$,setupOnce(){bg=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=nm(this),n=wg.has(Ze())&&t!==void 0?t:this;return bg.apply(n,e)}}catch{}},setup(e){wg.set(e,!0)}}),v$=h$,g$=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],y$="InboundFilters",b$=(e={})=>({name:y$,processEvent(t,n,r){const o=r.getOptions(),i=k$(e,o);return _$(t,i)?null:t}}),w$=b$;function k$(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:g$],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function _$(e,t){return t.ignoreInternal&&P$(e)?(qe&&_e.warn(`Event dropped due to being internal Sentry Error.
651
651
  Event: ${ma(e)}`),!0):C$(e,t.ignoreErrors)?(qe&&_e.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
652
652
  Event: ${ma(e)}`),!0):A$(e)?(qe&&_e.warn(`Event dropped due to not having an error message, error type or stacktrace.
653
653
  Event: ${ma(e)}`),!0):S$(e,t.ignoreTransactions)?(qe&&_e.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
@@ -655,14 +655,14 @@ Event: ${ma(e)}`),!0):E$(e,t.denyUrls)?(qe&&_e.warn(`Event dropped due to being
655
655
  Event: ${ma(e)}.
656
656
  Url: ${mc(e)}`),!0):x$(e,t.allowUrls)?!1:(qe&&_e.warn(`Event dropped due to not being matched by \`allowUrls\` option.
657
657
  Event: ${ma(e)}.
658
- Url: ${mc(e)}`),!0)}function C$(e,t){return e.type||!t||!t.length?!1:T$(e).some(n=>Ca(n,t))}function S$(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Ca(n,t):!1}function E$(e,t){if(!t||!t.length)return!1;const n=mc(e);return n?Ca(n,t):!1}function x$(e,t){if(!t||!t.length)return!0;const n=mc(e);return n?Ca(n,t):!0}function T$(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}`)),t}function P$(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function I$(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 mc(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?I$(t):null}catch{return qe&&_e.error(`Cannot extract url for event ${ma(e)}`),null}}function A$(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}function M$(e,t,n=250,r,o,i,s){if(!i.exception||!i.exception.values||!s||!ra(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=O$(gf(e,t,o,s.originalException,r,i.exception.values,l,0),n))}function gf(e,t,n,r,o,i,s,l){if(i.length>=n+1)return i;let c=[...i];if(ra(r[o],Error)){kg(s,l);const d=e(t,r[o]),u=c.length;_g(d,o,u,l),c=gf(e,t,n,r[o],o,[d,...c],d,u)}return Array.isArray(r.errors)&&r.errors.forEach((d,u)=>{if(ra(d,Error)){kg(s,l);const f=e(t,d),p=c.length;_g(f,`errors[${u}]`,p,l),c=gf(e,t,n,d,o,[f,...c],f,p)}}),c}function kg(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function _g(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 O$(e,t){return e.map(n=>(n.value&&(n.value=Qo(n.value,t)),n))}function po(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}}function N$(e){const t="console";ja(t,e),Ha(t,B$)}function B$(){"console"in Qe&&of.forEach(function(e){e in Qe.console&&wn(Qe.console,e,function(t){return uc[e]=t,function(...n){jn("console",{args:n,level:e});const o=uc[e];o&&o.apply(Qe.console,n)}})})}function Ub(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const D$="Dedupe",R$=()=>{let e;return{name:D$,processEvent(t){if(t.type)return t;try{if($$(t,e))return qe&&_e.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},L$=R$;function $$(e,t){return t?!!(z$(e,t)||V$(e,t)):!1}function z$(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!qb(e,t)||!Wb(e,t))}function V$(e,t){const n=Cg(t),r=Cg(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!qb(e,t)||!Wb(e,t))}function Wb(e,t){let n=jv(e),r=jv(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 qb(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 Cg(e){return e.exception&&e.exception.values&&e.exception.values[0]}function F$(e,t,n,r,o="auto.http.browser"){if(!e.fetchData)return;const i=ia()&&t(e.fetchData.url);if(e.endTimestamp&&i){const p=e.fetchData.__span;if(!p)return;const h=r[p];h&&(U$(h,e),delete r[p]);return}const{method:s,url:l}=e.fetchData,c=H$(l),d=c?po(c).host:void 0,u=!!$t(),f=i&&u?ko({name:`${s} ${l}`,attributes:{url:l,type:"fetch","http.method":s,"http.url":c,"server.address":d,[St]:o,[wo]:"http.client"}}):new Bi;if(e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f,n(e.fetchData.url)){const p=e.args[0],h=e.args[1]||{},v=j$(p,h,ia()&&u?f:void 0);v&&(e.args[1]=h,h.headers=v)}return f}function j$(e,t,n){const r=Hb({span:n}),o=r["sentry-trace"],i=r.baggage;if(!o)return;const s=t.headers||(W$(e)?e.headers:void 0);if(s)if(q$(s)){const l=new Headers(s);if(l.set("sentry-trace",o),i){const c=l.get("baggage");if(c){const d=kl(c);l.set("baggage",d?`${d},${i}`:i)}else l.set("baggage",i)}return l}else if(Array.isArray(s)){const l=[...s.filter(c=>!(Array.isArray(c)&&c[0]==="sentry-trace")).map(c=>{if(Array.isArray(c)&&c[0]==="baggage"&&typeof c[1]=="string"){const[d,u,...f]=c;return[d,kl(u),...f]}else return c}),["sentry-trace",o]];return i&&l.push(["baggage",i]),l}else{const l="baggage"in s?s.baggage:void 0;let c=[];return Array.isArray(l)?c=l.map(d=>typeof d=="string"?kl(d):d).filter(d=>d===""):l&&c.push(kl(l)),i&&c.push(i),{...s,"sentry-trace":o,baggage:c.length>0?c.join(","):void 0}}else return{...r}}function H$(e){try{return new URL(e).href}catch{return}}function U$(e,t){if(t.response){db(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:Ut,message:"internal_error"});e.end()}function kl(e){return e.split(",").filter(t=>!t.split("=")[0].startsWith(im)).join(",")}function W$(e){return typeof Request<"u"&&ra(e,Request)}function q$(e){return typeof Headers<"u"&&ra(e,Headers)}function Yb(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const yf=Qe;function Gb(){if(!("fetch"in yf))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function bf(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Y$(){if(typeof EdgeRuntime=="string")return!0;if(!Gb())return!1;if(bf(yf.fetch))return!0;let e=!1;const t=yf.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=bf(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Fa&&_e.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Xb(e,t){const n="fetch";ja(n,e),Ha(n,()=>Kb(void 0,t))}function G$(e){const t="fetch-body-resolved";ja(t,e),Ha(t,()=>Kb(K$))}function Kb(e,t=!1){t&&!Y$()||wn(Qe,"fetch",function(n){return function(...r){const o=new Error,{method:i,url:s}=J$(r),l={args:r,fetchData:{method:i,url:s},startTimestamp:nn()*1e3,virtualError:o};return e||jn("fetch",{...l}),n.apply(Qe,r).then(async c=>(e?e(c):jn("fetch",{...l,endTimestamp:nn()*1e3,response:c}),c),c=>{throw jn("fetch",{...l,endTimestamp:nn()*1e3,error:c}),Zp(c)&&c.stack===void 0&&(c.stack=o.stack,Wn(c,"framesToPop",1)),c})}})}async function X$(e,t){if(e&&e.body){const n=e.body,r=n.getReader(),o=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let i=!0;for(;i;){let s;try{s=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:l}=await r.read();clearTimeout(s),l&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(s)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,()=>{})}}function K$(e){let t;try{t=e.clone()}catch{return}X$(t,()=>{jn("fetch-body-resolved",{endTimestamp:nn()*1e3,response:e})})}function wf(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Sg(e){return typeof e=="string"?e:e?wf(e,"url")?e.url:e.toString?e.toString():"":""}function J$(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Sg(n),method:wf(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Sg(t),method:wf(t,"method")?String(t.method).toUpperCase():"GET"}}function Q$(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Z$(){return"npm"}function ez(){return!Q$()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Eg(){return typeof window<"u"&&(!ez()||tz())}function tz(){const e=Qe.process;return!!e&&e.type==="renderer"}const _l=Qe;function nz(){const e=_l.chrome,t=e&&e.app&&e.app.runtime,n="history"in _l&&!!_l.history.pushState&&!!_l.history.replaceState;return!t&&n}function rz(e,t){return e??t()}function Fl(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}const ze=Qe;let kf=0;function Jb(){return kf>0}function az(){kf++,setTimeout(()=>{kf--})}function _i(e,t={}){function n(o){return typeof o=="function"}if(!n(e))return e;try{const o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(nm(e))return e}catch{return e}const r=function(...o){try{const i=o.map(s=>_i(s,t));return e.apply(this,i)}catch(i){throw az(),am(s=>{s.addEventProcessor(l=>(t.mechanism&&(lf(l,void 0),bi(l,t.mechanism)),l.extra={...l.extra,arguments:o},l)),iu(i)}),i}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}ob(r,e),Wn(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const Bn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function um(e,t){const n=dm(e,t),r={type:cz(t),value:uz(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function oz(e,t,n,r){const o=Ze(),i=o&&o.getOptions().normalizeDepth,s=hz(t),l={__serialized__:Tb(t,i)};if(s)return{exception:{values:[um(e,s)]},extra:l};const c={exception:{values:[{type:tu(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:pz(t,{isUnhandledRejection:r})}]},extra:l};if(n){const d=dm(e,n);d.length&&(c.exception.values[0].stacktrace={frames:d})}return c}function ad(e,t){return{exception:{values:[um(e,t)]}}}function dm(e,t){const n=t.stacktrace||t.stack||"",r=sz(t),o=lz(t);try{return e(n,r,o)}catch{}return[]}const iz=/Minified React error #\d+;/i;function sz(e){return e&&iz.test(e.message)?1:0}function lz(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Qb(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function cz(e){const t=e&&e.name;return!t&&Qb(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function uz(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:Qb(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function dz(e,t,n,r){const o=n&&n.syntheticException||void 0,i=fm(e,t,o,r);return bi(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),oa(i)}function fz(e,t,n="info",r,o){const i=r&&r.syntheticException||void 0,s=_f(e,t,i,o);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),oa(s)}function fm(e,t,n,r,o){let i;if(tb(t)&&t.error)return ad(e,t.error);if(Uv(t)||QD(t)){const s=t;if("stack"in t)i=ad(e,t);else{const l=s.name||(Uv(s)?"DOMError":"DOMException"),c=s.message?`${l}: ${s.message}`:l;i=_f(e,c,n,r),lf(i,c)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return Zp(t)?ad(e,t):yi(t)||tu(t)?(i=oz(e,t,n,o),bi(i,{synthetic:!0}),i):(i=_f(e,t,n,r),lf(i,`${t}`),bi(i,{synthetic:!0}),i)}function _f(e,t,n,r){const o={};if(r&&n){const i=dm(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]}),bi(o,{synthetic:!0})}if(em(t)){const{__sentry_template_string__:i,__sentry_template_values__:s}=t;return o.logentry={message:i,params:s},o}return o.message=t,o}function pz(e,{isUnhandledRejection:t}){const n=iR(e),r=t?"promise rejection":"exception";return tb(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:tu(e)?`Event \`${mz(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function mz(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function hz(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function vz(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:Di(r)}},i=gz(e);return To(o,[i])}function gz(e){return[{type:"user_report"},e]}class yz extends JL{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=ze.SENTRY_SDK_SOURCE||Z$();d$(n,"browser",["browser"],r),super(n),n.sendClientReports&&ze.document&&ze.document.addEventListener("visibilitychange",()=>{ze.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return dz(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return fz(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Bn&&_e.warn("SDK not enabled, will not capture user feedback.");return}const n=vz(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)}}const pm=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,bz=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Ri=(e,t,n,r)=>{let o,i;return s=>{t.value>=0&&(s||r)&&(i=t.value-(o||0),(i||o===void 0)&&(o=t.value,t.delta=i,t.rating=bz(t.value,n),e(t)))}},Le=Qe,wz=()=>`v4-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Gs=(e=!0)=>{const t=Le.performance&&Le.performance.getEntriesByType&&Le.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Xs=()=>{const e=Gs();return e&&e.activationStart||0},Li=(e,t)=>{const n=Gs();let r="navigate";return n&&(Le.document&&Le.document.prerendering||Xs()>0?r="prerender":Le.document&&Le.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:wz(),navigationType:r}},Po=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(o=>{Promise.resolve().then(()=>{t(o.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},$i=e=>{const t=n=>{(n.type==="pagehide"||Le.document&&Le.document.visibilityState==="hidden")&&e(n)};Le.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},su=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let ss=-1;const kz=()=>Le.document.visibilityState==="hidden"&&!Le.document.prerendering?0:1/0,hc=e=>{Le.document.visibilityState==="hidden"&&ss>-1&&(ss=e.type==="visibilitychange"?e.timeStamp:0,Cz())},_z=()=>{addEventListener("visibilitychange",hc,!0),addEventListener("prerenderingchange",hc,!0)},Cz=()=>{removeEventListener("visibilitychange",hc,!0),removeEventListener("prerenderingchange",hc,!0)},lu=()=>(Le.document&&ss<0&&(ss=kz(),_z()),{get firstHiddenTime(){return ss}}),Ks=e=>{Le.document&&Le.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},Sz=[1800,3e3],Ez=(e,t={})=>{Ks(()=>{const n=lu(),r=Li("FCP");let o;const s=Po("paint",l=>{l.forEach(c=>{c.name==="first-contentful-paint"&&(s.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-Xs(),0),r.entries.push(c),o(!0)))})});s&&(o=Ri(e,r,Sz,t.reportAllChanges))})},xz=[.1,.25],Tz=(e,t={})=>{Ez(su(()=>{const n=Li("CLS",0);let r,o=0,i=[];const s=c=>{c.forEach(d=>{if(!d.hadRecentInput){const u=i[0],f=i[i.length-1];o&&u&&f&&d.startTime-f.startTime<1e3&&d.startTime-u.startTime<5e3?(o+=d.value,i.push(d)):(o=d.value,i=[d])}}),o>n.value&&(n.value=o,n.entries=i,r())},l=Po("layout-shift",s);l&&(r=Ri(e,n,xz,t.reportAllChanges),$i(()=>{s(l.takeRecords()),r(!0)}),setTimeout(r,0))}))},Pz=[100,300],Iz=(e,t={})=>{Ks(()=>{const n=lu(),r=Li("FID");let o;const i=c=>{c.startTime<n.firstHiddenTime&&(r.value=c.processingStart-c.startTime,r.entries.push(c),o(!0))},s=c=>{c.forEach(i)},l=Po("first-input",s);o=Ri(e,r,Pz,t.reportAllChanges),l&&$i(su(()=>{s(l.takeRecords()),l.disconnect()}))})};let Zb=0,od=1/0,Cl=0;const Az=e=>{e.forEach(t=>{t.interactionId&&(od=Math.min(od,t.interactionId),Cl=Math.max(Cl,t.interactionId),Zb=Cl?(Cl-od)/7+1:0)})};let Cf;const Mz=()=>Cf?Zb:performance.interactionCount||0,Oz=()=>{"interactionCount"in performance||Cf||(Cf=Po("event",Az,{type:"event",buffered:!0,durationThreshold:0}))},Ur=[],id=new Map,Nz=40;let Bz=0;const Dz=()=>Mz()-Bz,Rz=()=>{const e=Math.min(Ur.length-1,Math.floor(Dz()/50));return Ur[e]},sd=10,Lz=[],$z=e=>{if(Lz.forEach(r=>r(e)),!(e.interactionId||e.entryType==="first-input"))return;const t=Ur[Ur.length-1],n=id.get(e.interactionId);if(n||Ur.length<sd||t&&e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(e);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};id.set(r.id,r),Ur.push(r)}Ur.sort((r,o)=>o.latency-r.latency),Ur.length>sd&&Ur.splice(sd).forEach(r=>id.delete(r.id))}},ew=e=>{const t=Le.requestIdleCallback||Le.setTimeout;let n=-1;return e=su(e),Le.document&&Le.document.visibilityState==="hidden"?e():(n=t(e),$i(e)),n},zz=[200,500],Vz=(e,t={})=>{"PerformanceEventTiming"in Le&&"interactionId"in PerformanceEventTiming.prototype&&Ks(()=>{Oz();const n=Li("INP");let r;const o=s=>{ew(()=>{s.forEach($z);const l=Rz();l&&l.latency!==n.value&&(n.value=l.latency,n.entries=l.entries,r())})},i=Po("event",o,{durationThreshold:t.durationThreshold!=null?t.durationThreshold:Nz});r=Ri(e,n,zz,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),$i(()=>{o(i.takeRecords()),r(!0)}))})},Fz=[2500,4e3],xg={},jz=(e,t={})=>{Ks(()=>{const n=lu(),r=Li("LCP");let o;const i=l=>{t.reportAllChanges||(l=l.slice(-1)),l.forEach(c=>{c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-Xs(),0),r.entries=[c],o())})},s=Po("largest-contentful-paint",i);if(s){o=Ri(e,r,Fz,t.reportAllChanges);const l=su(()=>{xg[r.id]||(i(s.takeRecords()),s.disconnect(),xg[r.id]=!0,o(!0))});["keydown","click"].forEach(c=>{Le.document&&addEventListener(c,()=>ew(l),{once:!0,capture:!0})}),$i(l)}})},Hz=[800,1800],Sf=e=>{Le.document&&Le.document.prerendering?Ks(()=>Sf(e)):Le.document&&Le.document.readyState!=="complete"?addEventListener("load",()=>Sf(e),!0):setTimeout(e,0)},Uz=(e,t={})=>{const n=Li("TTFB"),r=Ri(e,n,Hz,t.reportAllChanges);Sf(()=>{const o=Gs();o&&(n.value=Math.max(o.responseStart-Xs(),0),n.entries=[o],r(!0))})},ls={},vc={};let tw,nw,rw,aw,ow;function mm(e,t=!1){return Js("cls",e,qz,tw,t)}function iw(e,t=!1){return Js("lcp",e,Gz,rw,t)}function sw(e){return Js("fid",e,Yz,nw)}function Wz(e){return Js("ttfb",e,Xz,aw)}function lw(e){return Js("inp",e,Kz,ow)}function Ci(e,t){return cw(e,t),vc[e]||(Jz(e),vc[e]=!0),uw(e,t)}function zi(e,t){const n=ls[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(o){pm&&_e.error(`Error while triggering instrumentation handler.
658
+ Url: ${mc(e)}`),!0)}function C$(e,t){return e.type||!t||!t.length?!1:T$(e).some(n=>Ca(n,t))}function S$(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Ca(n,t):!1}function E$(e,t){if(!t||!t.length)return!1;const n=mc(e);return n?Ca(n,t):!1}function x$(e,t){if(!t||!t.length)return!0;const n=mc(e);return n?Ca(n,t):!0}function T$(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}`)),t}function P$(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function I$(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 mc(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?I$(t):null}catch{return qe&&_e.error(`Cannot extract url for event ${ma(e)}`),null}}function A$(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}function M$(e,t,n=250,r,o,i,s){if(!i.exception||!i.exception.values||!s||!ra(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=O$(gf(e,t,o,s.originalException,r,i.exception.values,l,0),n))}function gf(e,t,n,r,o,i,s,l){if(i.length>=n+1)return i;let c=[...i];if(ra(r[o],Error)){kg(s,l);const d=e(t,r[o]),u=c.length;_g(d,o,u,l),c=gf(e,t,n,r[o],o,[d,...c],d,u)}return Array.isArray(r.errors)&&r.errors.forEach((d,u)=>{if(ra(d,Error)){kg(s,l);const f=e(t,d),p=c.length;_g(f,`errors[${u}]`,p,l),c=gf(e,t,n,d,o,[f,...c],f,p)}}),c}function kg(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function _g(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 O$(e,t){return e.map(n=>(n.value&&(n.value=Qo(n.value,t)),n))}function po(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}}function N$(e){const t="console";ja(t,e),Ha(t,B$)}function B$(){"console"in Qe&&of.forEach(function(e){e in Qe.console&&wn(Qe.console,e,function(t){return uc[e]=t,function(...n){Hn("console",{args:n,level:e});const o=uc[e];o&&o.apply(Qe.console,n)}})})}function Ub(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const D$="Dedupe",R$=()=>{let e;return{name:D$,processEvent(t){if(t.type)return t;try{if($$(t,e))return qe&&_e.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},L$=R$;function $$(e,t){return t?!!(z$(e,t)||V$(e,t)):!1}function z$(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!qb(e,t)||!Wb(e,t))}function V$(e,t){const n=Cg(t),r=Cg(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!qb(e,t)||!Wb(e,t))}function Wb(e,t){let n=jv(e),r=jv(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 qb(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 Cg(e){return e.exception&&e.exception.values&&e.exception.values[0]}function F$(e,t,n,r,o="auto.http.browser"){if(!e.fetchData)return;const i=ia()&&t(e.fetchData.url);if(e.endTimestamp&&i){const p=e.fetchData.__span;if(!p)return;const h=r[p];h&&(U$(h,e),delete r[p]);return}const{method:s,url:l}=e.fetchData,c=H$(l),d=c?po(c).host:void 0,u=!!$t(),f=i&&u?ko({name:`${s} ${l}`,attributes:{url:l,type:"fetch","http.method":s,"http.url":c,"server.address":d,[St]:o,[wo]:"http.client"}}):new Bi;if(e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f,n(e.fetchData.url)){const p=e.args[0],h=e.args[1]||{},v=j$(p,h,ia()&&u?f:void 0);v&&(e.args[1]=h,h.headers=v)}return f}function j$(e,t,n){const r=Hb({span:n}),o=r["sentry-trace"],i=r.baggage;if(!o)return;const s=t.headers||(W$(e)?e.headers:void 0);if(s)if(q$(s)){const l=new Headers(s);if(l.set("sentry-trace",o),i){const c=l.get("baggage");if(c){const d=kl(c);l.set("baggage",d?`${d},${i}`:i)}else l.set("baggage",i)}return l}else if(Array.isArray(s)){const l=[...s.filter(c=>!(Array.isArray(c)&&c[0]==="sentry-trace")).map(c=>{if(Array.isArray(c)&&c[0]==="baggage"&&typeof c[1]=="string"){const[d,u,...f]=c;return[d,kl(u),...f]}else return c}),["sentry-trace",o]];return i&&l.push(["baggage",i]),l}else{const l="baggage"in s?s.baggage:void 0;let c=[];return Array.isArray(l)?c=l.map(d=>typeof d=="string"?kl(d):d).filter(d=>d===""):l&&c.push(kl(l)),i&&c.push(i),{...s,"sentry-trace":o,baggage:c.length>0?c.join(","):void 0}}else return{...r}}function H$(e){try{return new URL(e).href}catch{return}}function U$(e,t){if(t.response){db(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:Ut,message:"internal_error"});e.end()}function kl(e){return e.split(",").filter(t=>!t.split("=")[0].startsWith(im)).join(",")}function W$(e){return typeof Request<"u"&&ra(e,Request)}function q$(e){return typeof Headers<"u"&&ra(e,Headers)}function Yb(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const yf=Qe;function Gb(){if(!("fetch"in yf))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function bf(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Y$(){if(typeof EdgeRuntime=="string")return!0;if(!Gb())return!1;if(bf(yf.fetch))return!0;let e=!1;const t=yf.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=bf(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Fa&&_e.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Xb(e,t){const n="fetch";ja(n,e),Ha(n,()=>Kb(void 0,t))}function G$(e){const t="fetch-body-resolved";ja(t,e),Ha(t,()=>Kb(K$))}function Kb(e,t=!1){t&&!Y$()||wn(Qe,"fetch",function(n){return function(...r){const o=new Error,{method:i,url:s}=J$(r),l={args:r,fetchData:{method:i,url:s},startTimestamp:nn()*1e3,virtualError:o};return e||Hn("fetch",{...l}),n.apply(Qe,r).then(async c=>(e?e(c):Hn("fetch",{...l,endTimestamp:nn()*1e3,response:c}),c),c=>{throw Hn("fetch",{...l,endTimestamp:nn()*1e3,error:c}),Zp(c)&&c.stack===void 0&&(c.stack=o.stack,qn(c,"framesToPop",1)),c})}})}async function X$(e,t){if(e&&e.body){const n=e.body,r=n.getReader(),o=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let i=!0;for(;i;){let s;try{s=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:l}=await r.read();clearTimeout(s),l&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(s)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,()=>{})}}function K$(e){let t;try{t=e.clone()}catch{return}X$(t,()=>{Hn("fetch-body-resolved",{endTimestamp:nn()*1e3,response:e})})}function wf(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Sg(e){return typeof e=="string"?e:e?wf(e,"url")?e.url:e.toString?e.toString():"":""}function J$(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Sg(n),method:wf(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Sg(t),method:wf(t,"method")?String(t.method).toUpperCase():"GET"}}function Q$(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Z$(){return"npm"}function ez(){return!Q$()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Eg(){return typeof window<"u"&&(!ez()||tz())}function tz(){const e=Qe.process;return!!e&&e.type==="renderer"}const _l=Qe;function nz(){const e=_l.chrome,t=e&&e.app&&e.app.runtime,n="history"in _l&&!!_l.history.pushState&&!!_l.history.replaceState;return!t&&n}function rz(e,t){return e??t()}function Fl(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}const ze=Qe;let kf=0;function Jb(){return kf>0}function az(){kf++,setTimeout(()=>{kf--})}function _i(e,t={}){function n(o){return typeof o=="function"}if(!n(e))return e;try{const o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(nm(e))return e}catch{return e}const r=function(...o){try{const i=o.map(s=>_i(s,t));return e.apply(this,i)}catch(i){throw az(),am(s=>{s.addEventProcessor(l=>(t.mechanism&&(lf(l,void 0),bi(l,t.mechanism)),l.extra={...l.extra,arguments:o},l)),iu(i)}),i}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}ob(r,e),qn(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const Bn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function um(e,t){const n=dm(e,t),r={type:cz(t),value:uz(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function oz(e,t,n,r){const o=Ze(),i=o&&o.getOptions().normalizeDepth,s=hz(t),l={__serialized__:Tb(t,i)};if(s)return{exception:{values:[um(e,s)]},extra:l};const c={exception:{values:[{type:tu(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:pz(t,{isUnhandledRejection:r})}]},extra:l};if(n){const d=dm(e,n);d.length&&(c.exception.values[0].stacktrace={frames:d})}return c}function ad(e,t){return{exception:{values:[um(e,t)]}}}function dm(e,t){const n=t.stacktrace||t.stack||"",r=sz(t),o=lz(t);try{return e(n,r,o)}catch{}return[]}const iz=/Minified React error #\d+;/i;function sz(e){return e&&iz.test(e.message)?1:0}function lz(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Qb(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function cz(e){const t=e&&e.name;return!t&&Qb(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function uz(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:Qb(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function dz(e,t,n,r){const o=n&&n.syntheticException||void 0,i=fm(e,t,o,r);return bi(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),oa(i)}function fz(e,t,n="info",r,o){const i=r&&r.syntheticException||void 0,s=_f(e,t,i,o);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),oa(s)}function fm(e,t,n,r,o){let i;if(tb(t)&&t.error)return ad(e,t.error);if(Uv(t)||QD(t)){const s=t;if("stack"in t)i=ad(e,t);else{const l=s.name||(Uv(s)?"DOMError":"DOMException"),c=s.message?`${l}: ${s.message}`:l;i=_f(e,c,n,r),lf(i,c)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return Zp(t)?ad(e,t):yi(t)||tu(t)?(i=oz(e,t,n,o),bi(i,{synthetic:!0}),i):(i=_f(e,t,n,r),lf(i,`${t}`),bi(i,{synthetic:!0}),i)}function _f(e,t,n,r){const o={};if(r&&n){const i=dm(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]}),bi(o,{synthetic:!0})}if(em(t)){const{__sentry_template_string__:i,__sentry_template_values__:s}=t;return o.logentry={message:i,params:s},o}return o.message=t,o}function pz(e,{isUnhandledRejection:t}){const n=iR(e),r=t?"promise rejection":"exception";return tb(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:tu(e)?`Event \`${mz(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function mz(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function hz(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function vz(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:Di(r)}},i=gz(e);return To(o,[i])}function gz(e){return[{type:"user_report"},e]}class yz extends JL{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=ze.SENTRY_SDK_SOURCE||Z$();d$(n,"browser",["browser"],r),super(n),n.sendClientReports&&ze.document&&ze.document.addEventListener("visibilitychange",()=>{ze.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return dz(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return fz(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Bn&&_e.warn("SDK not enabled, will not capture user feedback.");return}const n=vz(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)}}const pm=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,bz=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Ri=(e,t,n,r)=>{let o,i;return s=>{t.value>=0&&(s||r)&&(i=t.value-(o||0),(i||o===void 0)&&(o=t.value,t.delta=i,t.rating=bz(t.value,n),e(t)))}},Le=Qe,wz=()=>`v4-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Gs=(e=!0)=>{const t=Le.performance&&Le.performance.getEntriesByType&&Le.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Xs=()=>{const e=Gs();return e&&e.activationStart||0},Li=(e,t)=>{const n=Gs();let r="navigate";return n&&(Le.document&&Le.document.prerendering||Xs()>0?r="prerender":Le.document&&Le.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:wz(),navigationType:r}},Po=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(o=>{Promise.resolve().then(()=>{t(o.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},$i=e=>{const t=n=>{(n.type==="pagehide"||Le.document&&Le.document.visibilityState==="hidden")&&e(n)};Le.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},su=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let ss=-1;const kz=()=>Le.document.visibilityState==="hidden"&&!Le.document.prerendering?0:1/0,hc=e=>{Le.document.visibilityState==="hidden"&&ss>-1&&(ss=e.type==="visibilitychange"?e.timeStamp:0,Cz())},_z=()=>{addEventListener("visibilitychange",hc,!0),addEventListener("prerenderingchange",hc,!0)},Cz=()=>{removeEventListener("visibilitychange",hc,!0),removeEventListener("prerenderingchange",hc,!0)},lu=()=>(Le.document&&ss<0&&(ss=kz(),_z()),{get firstHiddenTime(){return ss}}),Ks=e=>{Le.document&&Le.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},Sz=[1800,3e3],Ez=(e,t={})=>{Ks(()=>{const n=lu(),r=Li("FCP");let o;const s=Po("paint",l=>{l.forEach(c=>{c.name==="first-contentful-paint"&&(s.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-Xs(),0),r.entries.push(c),o(!0)))})});s&&(o=Ri(e,r,Sz,t.reportAllChanges))})},xz=[.1,.25],Tz=(e,t={})=>{Ez(su(()=>{const n=Li("CLS",0);let r,o=0,i=[];const s=c=>{c.forEach(d=>{if(!d.hadRecentInput){const u=i[0],f=i[i.length-1];o&&u&&f&&d.startTime-f.startTime<1e3&&d.startTime-u.startTime<5e3?(o+=d.value,i.push(d)):(o=d.value,i=[d])}}),o>n.value&&(n.value=o,n.entries=i,r())},l=Po("layout-shift",s);l&&(r=Ri(e,n,xz,t.reportAllChanges),$i(()=>{s(l.takeRecords()),r(!0)}),setTimeout(r,0))}))},Pz=[100,300],Iz=(e,t={})=>{Ks(()=>{const n=lu(),r=Li("FID");let o;const i=c=>{c.startTime<n.firstHiddenTime&&(r.value=c.processingStart-c.startTime,r.entries.push(c),o(!0))},s=c=>{c.forEach(i)},l=Po("first-input",s);o=Ri(e,r,Pz,t.reportAllChanges),l&&$i(su(()=>{s(l.takeRecords()),l.disconnect()}))})};let Zb=0,od=1/0,Cl=0;const Az=e=>{e.forEach(t=>{t.interactionId&&(od=Math.min(od,t.interactionId),Cl=Math.max(Cl,t.interactionId),Zb=Cl?(Cl-od)/7+1:0)})};let Cf;const Mz=()=>Cf?Zb:performance.interactionCount||0,Oz=()=>{"interactionCount"in performance||Cf||(Cf=Po("event",Az,{type:"event",buffered:!0,durationThreshold:0}))},Ur=[],id=new Map,Nz=40;let Bz=0;const Dz=()=>Mz()-Bz,Rz=()=>{const e=Math.min(Ur.length-1,Math.floor(Dz()/50));return Ur[e]},sd=10,Lz=[],$z=e=>{if(Lz.forEach(r=>r(e)),!(e.interactionId||e.entryType==="first-input"))return;const t=Ur[Ur.length-1],n=id.get(e.interactionId);if(n||Ur.length<sd||t&&e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(e);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};id.set(r.id,r),Ur.push(r)}Ur.sort((r,o)=>o.latency-r.latency),Ur.length>sd&&Ur.splice(sd).forEach(r=>id.delete(r.id))}},ew=e=>{const t=Le.requestIdleCallback||Le.setTimeout;let n=-1;return e=su(e),Le.document&&Le.document.visibilityState==="hidden"?e():(n=t(e),$i(e)),n},zz=[200,500],Vz=(e,t={})=>{"PerformanceEventTiming"in Le&&"interactionId"in PerformanceEventTiming.prototype&&Ks(()=>{Oz();const n=Li("INP");let r;const o=s=>{ew(()=>{s.forEach($z);const l=Rz();l&&l.latency!==n.value&&(n.value=l.latency,n.entries=l.entries,r())})},i=Po("event",o,{durationThreshold:t.durationThreshold!=null?t.durationThreshold:Nz});r=Ri(e,n,zz,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),$i(()=>{o(i.takeRecords()),r(!0)}))})},Fz=[2500,4e3],xg={},jz=(e,t={})=>{Ks(()=>{const n=lu(),r=Li("LCP");let o;const i=l=>{t.reportAllChanges||(l=l.slice(-1)),l.forEach(c=>{c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-Xs(),0),r.entries=[c],o())})},s=Po("largest-contentful-paint",i);if(s){o=Ri(e,r,Fz,t.reportAllChanges);const l=su(()=>{xg[r.id]||(i(s.takeRecords()),s.disconnect(),xg[r.id]=!0,o(!0))});["keydown","click"].forEach(c=>{Le.document&&addEventListener(c,()=>ew(l),{once:!0,capture:!0})}),$i(l)}})},Hz=[800,1800],Sf=e=>{Le.document&&Le.document.prerendering?Ks(()=>Sf(e)):Le.document&&Le.document.readyState!=="complete"?addEventListener("load",()=>Sf(e),!0):setTimeout(e,0)},Uz=(e,t={})=>{const n=Li("TTFB"),r=Ri(e,n,Hz,t.reportAllChanges);Sf(()=>{const o=Gs();o&&(n.value=Math.max(o.responseStart-Xs(),0),n.entries=[o],r(!0))})},ls={},vc={};let tw,nw,rw,aw,ow;function mm(e,t=!1){return Js("cls",e,qz,tw,t)}function iw(e,t=!1){return Js("lcp",e,Gz,rw,t)}function sw(e){return Js("fid",e,Yz,nw)}function Wz(e){return Js("ttfb",e,Xz,aw)}function lw(e){return Js("inp",e,Kz,ow)}function Ci(e,t){return cw(e,t),vc[e]||(Jz(e),vc[e]=!0),uw(e,t)}function zi(e,t){const n=ls[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(o){pm&&_e.error(`Error while triggering instrumentation handler.
659
659
  Type: ${e}
660
660
  Name: ${na(r)}
661
- Error:`,o)}}function qz(){return Tz(e=>{zi("cls",{metric:e}),tw=e},{reportAllChanges:!0})}function Yz(){return Iz(e=>{zi("fid",{metric:e}),nw=e})}function Gz(){return jz(e=>{zi("lcp",{metric:e}),rw=e},{reportAllChanges:!0})}function Xz(){return Uz(e=>{zi("ttfb",{metric:e}),aw=e})}function Kz(){return Vz(e=>{zi("inp",{metric:e}),ow=e})}function Js(e,t,n,r,o=!1){cw(e,t);let i;return vc[e]||(i=n(),vc[e]=!0),r&&t({metric:r}),uw(e,t,o?i:void 0)}function Jz(e){const t={};e==="event"&&(t.durationThreshold=0),Po(e,n=>{zi(e,{entries:n})},t)}function cw(e,t){ls[e]=ls[e]||[],ls[e].push(t)}function uw(e,t,n){return()=>{n&&n();const r=ls[e];if(!r)return;const o=r.indexOf(t);o!==-1&&r.splice(o,1)}}function Qz(e){return"duration"in e}function ld(e){return typeof e=="number"&&isFinite(e)}function sa(e,t,n,{...r}){const o=tt(e).start_timestamp;return o&&o>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Ab(e,()=>{const i=ko({startTime:t,...r});return i&&i.end(n),i})}function dw(e){const t=Ze();if(!t)return;const{name:n,transaction:r,attributes:o,startTime:i}=e,{release:s,environment:l}=t.getOptions(),c=t.getIntegrationByName("Replay"),d=c&&c.getReplayId(),u=ct(),f=u.getUser(),p=f!==void 0?f.email||f.id||f.ip_address:void 0;let h;try{h=u.getScopeData().contexts.profile.profile_id}catch{}const v={release:s,environment:l,user:p||void 0,profile_id:h||void 0,replay_id:d||void 0,transaction:r,"user_agent.original":Le.navigator&&Le.navigator.userAgent,...o};return ko({name:n,attributes:v,startTime:i,experimental:{standalone:!0}})}function hm(){return Le&&Le.addEventListener&&Le.performance}function Dt(e){return e/1e3}function Zz(){let e=0,t,n;if(!tV())return;let r=!1;function o(){r||(r=!0,n&&eV(e,t,n),i())}const i=mm(({metric:s})=>{const l=s.entries[s.entries.length-1];l&&(e=s.value,t=l)},!0);$i(()=>{o()}),setTimeout(()=>{const s=Ze();if(!s)return;const l=s.on("startNavigationSpan",()=>{o(),l&&l()}),c=$t(),d=c&&Wt(c),u=d&&tt(d);u&&u.op==="pageload"&&(n=d.spanContext().spanId)},0)}function eV(e,t,n){pm&&_e.log(`Sending CLS span (${e})`);const r=Dt((pn||0)+(t&&t.startTime||0)),o=ct().getScopeData().transactionName,i=t?aa(t.sources[0]&&t.sources[0].node):"Layout shift",s=jt({[St]:"auto.http.browser.cls",[wo]:"ui.webvital.cls",[om]:t&&t.duration||0,"sentry.pageload.span_id":n}),l=dw({name:i,transaction:o,attributes:s,startTime:r});l&&(l.addEvent("cls",{[au]:"",[ou]:e}),l.end(r))}function tV(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch{return!1}}const nV=2147483647;let Tg=0,Jt={},bn,cs;function rV({recordClsStandaloneSpans:e}){const t=hm();if(t&&pn){t.mark&&Le.performance.mark("sentry-tracing-init");const n=cV(),r=lV(),o=uV(),i=e?Zz():sV();return()=>{n(),r(),o(),i&&i()}}return()=>{}}function aV(){Ci("longtask",({entries:e})=>{const t=$t();if(!t)return;const{op:n,start_timestamp:r}=tt(t);for(const o of e){const i=Dt(pn+o.startTime),s=Dt(o.duration);n==="navigation"&&r&&i<r||sa(t,i,i+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[St]:"auto.ui.browser.metrics"}})}})}function oV(){new PerformanceObserver(t=>{const n=$t();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const o=Dt(pn+r.startTime),{start_timestamp:i,op:s}=tt(n);if(s==="navigation"&&i&&o<i)continue;const l=Dt(r.duration),c={[St]:"auto.ui.browser.metrics"},d=r.scripts[0],{invoker:u,invokerType:f,sourceURL:p,sourceFunctionName:h,sourceCharPosition:v}=d;c["browser.script.invoker"]=u,c["browser.script.invoker_type"]=f,p&&(c["code.filepath"]=p),h&&(c["code.function"]=h),v!==-1&&(c["browser.script.source_char_position"]=v),sa(n,o,o+l,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function iV(){Ci("event",({entries:e})=>{const t=$t();if(t){for(const n of e)if(n.name==="click"){const r=Dt(pn+n.startTime),o=Dt(n.duration),i={name:aa(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[St]:"auto.ui.browser.metrics"}},s=ab(n.target);s&&(i.attributes["ui.component_name"]=s),sa(t,r,r+o,i)}}})}function sV(){return mm(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Jt.cls={value:e.value,unit:""},cs=t)},!0)}function lV(){return iw(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Jt.lcp={value:e.value,unit:"millisecond"},bn=t)},!0)}function cV(){return sw(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Dt(pn),r=Dt(t.startTime);Jt.fid={value:e.value,unit:"millisecond"},Jt["mark.fid"]={value:n+r,unit:"second"}})}function uV(){return Wz(({metric:e})=>{e.entries[e.entries.length-1]&&(Jt.ttfb={value:e.value,unit:"millisecond"})})}function dV(e,t){const n=hm();if(!n||!n.getEntries||!pn)return;const r=Dt(pn),o=n.getEntries(),{op:i,start_timestamp:s}=tt(e);if(o.slice(Tg).forEach(l=>{const c=Dt(l.startTime),d=Dt(Math.max(0,l.duration));if(!(i==="navigation"&&s&&r+c<s))switch(l.entryType){case"navigation":{pV(e,l,r);break}case"mark":case"paint":case"measure":{fV(e,l,c,d,r);const u=lu(),f=l.startTime<u.firstHiddenTime;l.name==="first-paint"&&f&&(Jt.fp={value:l.startTime,unit:"millisecond"}),l.name==="first-contentful-paint"&&f&&(Jt.fcp={value:l.startTime,unit:"millisecond"});break}case"resource":{vV(e,l,l.name,c,d,r);break}}}),Tg=Math.max(o.length-1,0),gV(e),i==="pageload"){bV(Jt);const l=Jt["mark.fid"];l&&Jt.fid&&(sa(e,l.value,l.value+Dt(Jt.fid.value),{name:"first input delay",op:"ui.action",attributes:{[St]:"auto.ui.browser.metrics"}}),delete Jt["mark.fid"]),(!("fcp"in Jt)||!t.recordClsOnPageloadSpan)&&delete Jt.cls,Object.entries(Jt).forEach(([c,d])=>{cL(c,d.value,d.unit)}),e.setAttribute("performance.timeOrigin",r),e.setAttribute("performance.activationStart",Xs()),yV(e)}bn=void 0,cs=void 0,Jt={}}function fV(e,t,n,r,o){const i=Gs(!1),s=Dt(i?i.requestStart:0),l=o+Math.max(n,s),c=o+n,d=c+r,u={[St]:"auto.resource.browser.metrics"};return l!==c&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=l),sa(e,l,d,{name:t.name,op:t.entryType,attributes:u}),l}function pV(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Sl(e,t,r,n)}),Sl(e,t,"secureConnection",n,"TLS/SSL"),Sl(e,t,"fetch",n,"cache"),Sl(e,t,"domainLookup",n,"DNS"),hV(e,t,n)}function Sl(e,t,n,r,o=n){const i=mV(n),s=t[i],l=t[`${n}Start`];!l||!s||sa(e,r+Dt(l),r+Dt(s),{op:`browser.${o}`,name:t.name,attributes:{[St]:"auto.ui.browser.metrics"}})}function mV(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function hV(e,t,n){const r=n+Dt(t.requestStart),o=n+Dt(t.responseEnd),i=n+Dt(t.responseStart);t.responseEnd&&(sa(e,r,o,{op:"browser.request",name:t.name,attributes:{[St]:"auto.ui.browser.metrics"}}),sa(e,i,o,{op:"browser.response",name:t.name,attributes:{[St]:"auto.ui.browser.metrics"}}))}function vV(e,t,n,r,o,i){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=po(n),l={[St]:"auto.resource.browser.metrics"};cd(l,t,"transferSize","http.response_transfer_size"),cd(l,t,"encodedBodySize","http.response_content_length"),cd(l,t,"decodedBodySize","http.decoded_response_content_length");const c=t.deliveryType;c!=null&&(l["http.response_delivery_type"]=c);const d=t.renderBlockingStatus;d&&(l["resource.render_blocking_status"]=d),s.protocol&&(l["url.scheme"]=s.protocol.split(":").pop()),s.host&&(l["server.address"]=s.host),l["url.same_origin"]=n.includes(Le.location.origin);const u=i+r,f=u+o;sa(e,u,f,{name:n.replace(Le.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:l})}function gV(e){const t=Le.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),ld(n.rtt)&&(Jt["connection.rtt"]={value:n.rtt,unit:"millisecond"})),ld(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),ld(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function yV(e){bn&&(bn.element&&e.setAttribute("lcp.element",aa(bn.element)),bn.id&&e.setAttribute("lcp.id",bn.id),bn.url&&e.setAttribute("lcp.url",bn.url.trim().slice(0,200)),bn.loadTime!=null&&e.setAttribute("lcp.loadTime",bn.loadTime),bn.renderTime!=null&&e.setAttribute("lcp.renderTime",bn.renderTime),e.setAttribute("lcp.size",bn.size)),cs&&cs.sources&&cs.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,aa(t.node)))}function cd(e,t,n,r){const o=t[n];o!=null&&o<nV&&(e[r]=o)}function bV(e){const t=Gs(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}const wV=1e3;let Pg,Ef,xf;function fw(e){const t="dom";ja(t,e),Ha(t,kV)}function kV(){if(!Le.document)return;const e=jn.bind(null,"dom"),t=Ig(e,!0);Le.document.addEventListener("click",t,!1),Le.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const o=Le[n],i=o&&o.prototype;!i||!i.hasOwnProperty||!i.hasOwnProperty("addEventListener")||(wn(i,"addEventListener",function(s){return function(l,c,d){if(l==="click"||l=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},f=u[l]=u[l]||{refCount:0};if(!f.handler){const p=Ig(e);f.handler=p,s.call(this,l,p,d)}f.refCount++}catch{}return s.call(this,l,c,d)}}),wn(i,"removeEventListener",function(s){return function(l,c,d){if(l==="click"||l=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},f=u[l];f&&(f.refCount--,f.refCount<=0&&(s.call(this,l,f.handler,d),f.handler=void 0,delete u[l]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return s.call(this,l,c,d)}}))})}function _V(e){if(e.type!==Ef)return!1;try{if(!e.target||e.target._sentryId!==xf)return!1}catch{}return!0}function CV(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Ig(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=SV(n);if(CV(n.type,r))return;Wn(n,"_sentryCaptured",!0),r&&!r._sentryId&&Wn(r,"_sentryId",Nn());const o=n.type==="keypress"?"input":n.type;_V(n)||(e({event:n,name:o,global:t}),Ef=n.type,xf=r?r._sentryId:void 0),clearTimeout(Pg),Pg=Le.setTimeout(()=>{xf=void 0,Ef=void 0},wV)}}function SV(e){try{return e.target}catch{return null}}let El;function cu(e){const t="history";ja(t,e),Ha(t,EV)}function EV(){if(!nz())return;const e=Le.onpopstate;Le.onpopstate=function(...n){const r=Le.location.href,o=El;if(El=r,jn("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=El,s=String(o);El=s,jn("history",{from:i,to:s})}return n.apply(this,r)}}wn(Le.history,"pushState",t),wn(Le.history,"replaceState",t)}const jl={};function pw(e){const t=jl[e];if(t)return t;let n=Le[e];if(bf(n))return jl[e]=n.bind(Le);const r=Le.document;if(r&&typeof r.createElement=="function")try{const o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);const i=o.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(o)}catch(o){pm&&_e.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(jl[e]=n.bind(Le))}function Ag(e){jl[e]=void 0}function Si(...e){return pw("setTimeout")(...e)}const no="__sentry_xhr_v3__";function mw(e){const t="xhr";ja(t,e),Ha(t,xV)}function xV(){if(!Le.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const o=new Error,i=nn()*1e3,s=Kr(r[0])?r[0].toUpperCase():void 0,l=TV(r[1]);if(!s||!l)return t.apply(n,r);n[no]={method:s,url:l,request_headers:{}},s==="POST"&&l.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const d=n[no];if(d&&n.readyState===4){try{d.status_code=n.status}catch{}const u={endTimestamp:nn()*1e3,startTimestamp:i,xhr:n,virtualError:o};jn("xhr",u)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(d,u,f){return c(),d.apply(u,f)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(d,u,f){const[p,h]=f,v=u[no];return v&&Kr(p)&&Kr(h)&&(v.request_headers[p.toLowerCase()]=h),d.apply(u,f)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const o=n[no];if(!o)return t.apply(n,r);r[0]!==void 0&&(o.body=r[0]);const i={startTimestamp:nn()*1e3,xhr:n};return jn("xhr",i),t.apply(n,r)}})}function TV(e){if(Kr(e))return e;try{return e.toString()}catch{}}const ud=[],Hl=new Map;function PV(){if(hm()&&pn){const t=IV();return()=>{t()}}return()=>{}}const Mg={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function IV(){return lw(({metric:e})=>{if(e.value==null)return;const t=e.entries.find(v=>v.duration===e.value&&Mg[v.name]);if(!t)return;const{interactionId:n}=t,r=Mg[t.name],o=Dt(pn+t.startTime),i=Dt(e.value),s=$t(),l=s?Wt(s):void 0,d=(n!=null?Hl.get(n):void 0)||l,u=d?tt(d).description:ct().getScopeData().transactionName,f=aa(t.target),p=jt({[St]:"auto.http.browser.inp",[wo]:`ui.interaction.${r}`,[om]:t.duration}),h=dw({name:f,transaction:u,attributes:p,startTime:o});h&&(h.addEvent("inp",{[au]:"millisecond",[ou]:e.value}),h.end(o+i))})}function AV(e){const t=({entries:n})=>{const r=$t(),o=r&&Wt(r);n.forEach(i=>{if(!Qz(i)||!o)return;const s=i.interactionId;if(s!=null&&!Hl.has(s)){if(ud.length>10){const l=ud.shift();Hl.delete(l)}ud.push(s),Hl.set(s,o)}})};Ci("event",t),Ci("first-input",t)}function MV(e,t=pw("fetch")){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};if(!t)return Ag("fetch"),dc("No fetch implementation available");try{return t(e.url,l).then(c=>(n-=s,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return Ag("fetch"),n-=s,r--,dc(c)}}return s$(e,o)}const OV=30,NV=50;function Tf(e,t,n,r){const o={filename:e,function:t==="<anonymous>"?bo:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const BV=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,DV=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,RV=/\((\S*)(?::(\d+))(?::(\d+))\)/,LV=e=>{const t=BV.exec(e);if(t){const[,r,o,i]=t;return Tf(r,bo,+o,+i)}const n=DV.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const s=RV.exec(n[2]);s&&(n[2]=s[1],n[3]=s[2],n[4]=s[3])}const[o,i]=hw(n[1]||bo,n[2]);return Tf(i,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},$V=[OV,LV],zV=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,VV=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,FV=e=>{const t=zV.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=VV.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]||bo;return[o,r]=hw(o,r),Tf(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},jV=[NV,FV],HV=[$V,jV],UV=J2(...HV),hw=(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]:bo,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},xl=1024,WV="Breadcrumbs",qV=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:WV,setup(n){t.console&&N$(KV(n)),t.dom&&fw(XV(n,t.dom)),t.xhr&&mw(JV(n)),t.fetch&&Xb(QV(n)),t.history&&cu(ZV(n)),t.sentry&&n.on("beforeSendEvent",GV(n))}}},YV=qV;function GV(e){return function(n){Ze()===e&&Ba({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:ma(n)},{event:n})}}function XV(e,t){return function(r){if(Ze()!==e)return;let o,i,s=typeof t=="object"?t.serializeAttribute:void 0,l=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;l&&l>xl&&(Bn&&_e.warn(`\`dom.maxStringLength\` cannot exceed ${xl}, but a value of ${l} was configured. Sentry will use ${xl} instead.`),l=xl),typeof s=="string"&&(s=[s]);try{const d=r.event,u=eF(d)?d.target:d;o=aa(u,{keyAttrs:s,maxStringLength:l}),i=ab(u)}catch{o="<unknown>"}if(o.length===0)return;const c={category:`ui.${r.name}`,message:o};i&&(c.data={"ui.component_name":i}),Ba(c,{event:r.event,name:r.name,global:r.global})}}function KV(e){return function(n){if(Ze()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Ub(n.level),message:Wv(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Wv(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Ba(r,{input:n.args,level:n.level})}}function JV(e){return function(n){if(Ze()!==e)return;const{startTimestamp:r,endTimestamp:o}=n,i=n.xhr[no];if(!r||!o||!i)return;const{method:s,url:l,status_code:c,body:d}=i,u={method:s,url:l,status_code:c},f={xhr:n.xhr,input:d,startTimestamp:r,endTimestamp:o},p=Yb(c);Ba({category:"xhr",data:u,type:"http",level:p},f)}}function QV(e){return function(n){if(Ze()!==e)return;const{startTimestamp:r,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const i=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o};Ba({category:"fetch",data:i,level:"error",type:"http"},s)}else{const i=n.response,s={...n.fetchData,status_code:i&&i.status},l={input:n.args,response:i,startTimestamp:r,endTimestamp:o},c=Yb(s.status_code);Ba({category:"fetch",data:s,type:"http",level:c},l)}}}function ZV(e){return function(n){if(Ze()!==e)return;let r=n.from,o=n.to;const i=po(ze.location.href);let s=r?po(r):void 0;const l=po(o);(!s||!s.path)&&(s=i),i.protocol===l.protocol&&i.host===l.host&&(o=l.relative),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),Ba({category:"navigation",data:{from:r,to:o}})}}function eF(e){return!!e&&!!e.target}const tF=["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"],nF="BrowserApiErrors",rF=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:nF,setupOnce(){t.setTimeout&&wn(ze,"setTimeout",Og),t.setInterval&&wn(ze,"setInterval",Og),t.requestAnimationFrame&&wn(ze,"requestAnimationFrame",oF),t.XMLHttpRequest&&"XMLHttpRequest"in ze&&wn(XMLHttpRequest.prototype,"send",iF);const n=t.eventTarget;n&&(Array.isArray(n)?n:tF).forEach(sF)}}},aF=rF;function Og(e){return function(...t){const n=t[0];return t[0]=_i(n,{mechanism:{data:{function:na(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function oF(e){return function(t){return e.apply(this,[_i(t,{mechanism:{data:{function:"requestAnimationFrame",handler:na(e)},handled:!1,type:"instrument"}})])}}function iF(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&wn(n,o,function(i){const s={mechanism:{data:{function:o,handler:na(i)},handled:!1,type:"instrument"}},l=nm(i);return l&&(s.mechanism.data.handler=na(l)),_i(i,s)})}),e.apply(this,t)}}function sF(e){const n=ze[e],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(wn(r,"addEventListener",function(o){return function(i,s,l){try{lF(s)&&(s.handleEvent=_i(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:na(s),target:e},handled:!1,type:"instrument"}}))}catch{}return o.apply(this,[i,_i(s,{mechanism:{data:{function:"addEventListener",handler:na(s),target:e},handled:!1,type:"instrument"}}),l])}}),wn(r,"removeEventListener",function(o){return function(i,s,l){try{const c=s.__sentry_wrapped__;c&&o.call(this,i,c,l)}catch{}return o.call(this,i,s,l)}}))}function lF(e){return typeof e.handleEvent=="function"}const cF=()=>({name:"BrowserSession",setupOnce(){if(typeof ze.document>"u"){Bn&&_e.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}fg({ignoreDuration:!0}),pg(),cu(({from:e,to:t})=>{e!==void 0&&e!==t&&(fg({ignoreDuration:!0}),pg())})}}),uF="GlobalHandlers",dF=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:uF,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(pF(n),Ng("onerror")),t.onunhandledrejection&&(mF(n),Ng("onunhandledrejection"))}}},fF=dF;function pF(e){Q2(t=>{const{stackParser:n,attachStacktrace:r}=vw();if(Ze()!==e||Jb())return;const{msg:o,url:i,line:s,column:l,error:c}=t,d=gF(fm(n,c||o,void 0,r,!1),i,s,l);d.level="error",Bb(d,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function mF(e){Z2(t=>{const{stackParser:n,attachStacktrace:r}=vw();if(Ze()!==e||Jb())return;const o=hF(t),i=tm(o)?vF(o):fm(n,o,void 0,r,!0);i.level="error",Bb(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function hF(e){if(tm(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function vF(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function gF(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||{},c=l.frames=l.frames||[],d=r,u=n,f=Kr(t)&&t.length>0?t:rb();return c.length===0&&c.push({colno:d,filename:f,function:bo,in_app:!0,lineno:u}),e}function Ng(e){Bn&&_e.log(`Global Handler attached: ${e}`)}function vw(){const e=Ze();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const yF=()=>({name:"HttpContext",preprocessEvent(e){if(!ze.navigator&&!ze.location&&!ze.document)return;const t=e.request&&e.request.url||ze.location&&ze.location.href,{referrer:n}=ze.document||{},{userAgent:r}=ze.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:o};e.request=i}}),bF="cause",wF=5,kF="LinkedErrors",_F=(e={})=>{const t=e.limit||wF,n=e.key||bF;return{name:kF,preprocessEvent(r,o,i){const s=i.getOptions();M$(um,s.stackParser,s.maxValueLength,n,t,r,o)}}},CF=_F;function gw(e){const t=[w$(),v$(),aF(),YV(),fF(),CF(),L$(),yF()];return e.autoSessionTracking!==!1&&t.push(cF()),t}function SF(e={}){const t={defaultIntegrations:gw(e),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:ze.SENTRY_RELEASE&&ze.SENTRY_RELEASE.id?ze.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function EF(){const e=typeof ze.window<"u"&&ze;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,o=ze.location&&ze.location.href||"",i=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],s=!!r&&ze===ze.top&&i.some(c=>o.startsWith(`${c}//`)),l=typeof e.nw<"u";return!!r&&!s&&!l}function xF(e={}){const t=SF(e);if(!t.skipBrowserExtensionCheck&&EF()){mr(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}Bn&&(Gb()||_e.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:GD(t.stackParser||UV),integrations:GL(t),transport:t.transport||MV};return e$(yz,n)}function TF(e={}){if(!ze.document){Bn&&_e.error("Global document not defined in showReportDialog call");return}const t=ct(),n=t.getClient(),r=n&&n.getDsn();if(!r){Bn&&_e.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const l=zL();l&&(e.eventId=l)}const o=ze.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=qL(r,e),e.onLoad&&(o.onload=e.onLoad);const{onClose:i}=e;if(i){const l=c=>{if(c.data==="__sentry_reportdialog_closed__")try{i()}finally{ze.removeEventListener("message",l)}};ze.addEventListener("message",l)}const s=ze.document.head||ze.document.body;s?s.appendChild(o):Bn&&_e.error("Not injecting report dialog. No injection point found in HTML")}const vt=Qe,vm="sentryReplaySession",PF="replay_event",gm="Unable to send Replay",IF=3e5,AF=9e5,MF=5e3,OF=5500,NF=6e4,BF=5e3,DF=3,Bg=15e4,Tl=5e3,RF=3e3,LF=300,ym=2e7,$F=4999,zF=15e3,Dg=36e5;function Pf(e,t){return e??t()}function As(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}var Vt;(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"})(Vt||(Vt={}));function VF(e){return e.nodeType===e.ELEMENT_NODE}function us(e){const t=As([e,"optionalAccess",n=>n.host]);return As([t,"optionalAccess",n=>n.shadowRoot])===e}function ds(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function FF(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function jF(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 gc(e){try{const t=e.rules||e.cssRules;return t?FF(Array.from(t,yw).join("")):null}catch{return null}}function HF(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,o=r[n],i=r.getPropertyPriority(o);t+=`${o}:${r.getPropertyValue(o)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}function yw(e){let t;if(WF(e))try{t=gc(e.styleSheet)||jF(e)}catch{}else if(qF(e)){let n=e.cssText;const r=e.selectorText.includes(":"),o=typeof e.style.all=="string"&&e.style.all;if(o&&(n=HF(e)),r&&(n=UF(n)),r||o)return n}return t||e.cssText}function UF(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function WF(e){return"styleSheet"in e}function qF(e){return"selectorText"in e}class bw{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const n=As([this,"access",r=>r.getMeta,"call",r=>r(t),"optionalAccess",r=>r.id]);return Pf(n,()=>-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 YF(){return new bw}function uu({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 Ms({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function Ei(e){return e.toLowerCase()}function If(e){return e.toUpperCase()}const Rg="__rrweb_original__";function GF(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=Rg in i?i[Rg]:i;if(new Uint32Array(s.call(t,r,o,Math.min(n,e.width-r),Math.min(n,e.height-o)).data.buffer).some(c=>c!==0))return!1}return!0}function bm(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ei(t):null}function yc(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function ww(e,t){let n;try{n=new URL(e,Pf(t,()=>window.location.href))}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,o=n.pathname.match(r);return Pf(As([o,"optionalAccess",i=>i[1]]),()=>null)}const Lg={};function kw(e){const t=Lg[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const i=o.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(o)}catch{}return Lg[e]=r.bind(window)}function Af(...e){return kw("setTimeout")(...e)}function _w(...e){return kw("clearTimeout")(...e)}function Cw(e){try{return e.contentDocument}catch{}}let XF=1;const KF=new RegExp("[^a-z0-9-_:]"),Os=-2;function wm(){return XF++}function JF(e){if(e instanceof HTMLFormElement)return"form";const t=Ei(e.tagName);return KF.test(t)?"div":t}function QF(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let Lo,$g;const ZF=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ej=/^(?:[a-z+]+:)?\/\//i,tj=/^www\..*/i,nj=/^(data:)([^,]*),(.*)/i;function bc(e,t){return(e||"").replace(ZF,(n,r,o,i,s,l)=>{const c=o||s||l,d=r||i||"";if(!c)return n;if(ej.test(c)||tj.test(c))return`url(${d}${c}${d})`;if(nj.test(c))return`url(${d}${c}${d})`;if(c[0]==="/")return`url(${d}${QF(t)+c}${d})`;const u=t.split("/"),f=c.split("/");u.pop();for(const p of f)p!=="."&&(p===".."?u.pop():u.push(p));return`url(${d}${u.join("/")}${d})`})}const rj=/^[^ \t\n\r\u000c]+/,aj=/^[, \t\n\r\u000c]+/;function oj(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(aj),!(n>=t.length);){let i=r(rj);if(i.slice(-1)===",")i=Ho(e,i.substring(0,i.length-1)),o.push(i);else{let s="";i=Ho(e,i);let l=!1;for(;;){const c=t.charAt(n);if(c===""){o.push((i+s).trim());break}else if(l)c===")"&&(l=!1);else if(c===","){n+=1,o.push((i+s).trim());break}else c==="("&&(l=!0);s+=c,n+=1}}}return o.join(", ")}const zg=new WeakMap;function Ho(e,t){return!t||t.trim()===""?t:du(e,t)}function ij(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function du(e,t){let n=zg.get(e);if(n||(n=e.createElement("a"),zg.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function Sw(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")?Ho(e,r):n==="srcset"?oj(e,r):n==="style"?bc(r,du(e)):t==="object"&&n==="data"?Ho(e,r):typeof i=="function"?i(n,r,o):r)}function Ew(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function sj(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 lj(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function ro(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:ro(e.parentNode,t,n,r+1)}function Uo(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(lj(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function xi(e,t,n,r,o,i){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(s===null)return!1;if(s.tagName==="INPUT"){const d=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(d))return!0}let l=-1,c=-1;if(i){if(c=ro(s,Uo(r,o)),c<0)return!0;l=ro(s,Uo(t,n),c>=0?c:1/0)}else{if(l=ro(s,Uo(t,n)),l<0)return!1;c=ro(s,Uo(r,o),l>=0?l:1/0)}return l>=0?c>=0?l<=c:!0:c>=0?!1:!!i}catch{}return!!i}function cj(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=Af(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{_w(l),o=!0,t()});return}const s="about:blank";if(r.location.href!==s||e.src===s||e.src==="")return Af(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function uj(e,t,n){let r=!1,o;try{o=e.sheet}catch{return}if(o)return;const i=Af(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{_w(i),r=!0,t()})}function dj(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskAttributeFn:c,maskTextClass:d,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:v={},maskTextFn:y,maskInputFn:C,dataURLOptions:g={},inlineImages:S,recordCanvas:_,keepIframeSrcFn:b,newlyAddedElement:T=!1}=t,E=fj(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Vt.Document,childNodes:[],compatMode:e.compatMode}:{type:Vt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Vt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return mj(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:v,maskInputFn:C,dataURLOptions:g,inlineImages:S,recordCanvas:_,keepIframeSrcFn:b,newlyAddedElement:T,rootId:E,maskAllText:l,maskTextClass:d,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:p});case e.TEXT_NODE:return pj(e,{doc:n,maskAllText:l,maskTextClass:d,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:p,maskTextFn:y,maskInputOptions:v,maskInputFn:C,rootId:E});case e.CDATA_SECTION_NODE:return{type:Vt.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:Vt.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}function fj(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function pj(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:l,maskInputOptions:c,maskInputFn:d,rootId:u}=t,f=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const h=f==="STYLE"?!0:void 0,v=f==="SCRIPT"?!0:void 0,y=f==="TEXTAREA"?!0:void 0;if(h&&p){try{e.nextSibling||e.previousSibling||As([e,"access",g=>g.parentNode,"access",g=>g.sheet,"optionalAccess",g=>g.cssRules])&&(p=gc(e.parentNode.sheet))}catch(g){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${g}`,e)}p=bc(p,du(t.doc))}v&&(p="SCRIPT_PLACEHOLDER");const C=xi(e,r,i,o,s,n);if(!h&&!v&&!y&&p&&C&&(p=l?l(p,e.parentElement):p.replace(/[\S]/g,"*")),y&&p&&(c.textarea||C)&&(p=d?d(p,e.parentNode):p.replace(/[\S]/g,"*")),f==="OPTION"&&p){const g=uu({type:null,tagName:f,maskInputOptions:c});p=Ms({isMasked:xi(e,r,i,o,s,g),element:e,value:p,maskInputFn:d})}return{type:Vt.Text,textContent:p||"",isStyle:h,rootId:u}}function mj(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:l={},maskAttributeFn:c,maskInputFn:d,dataURLOptions:u={},inlineImages:f,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:v=!1,rootId:y,maskAllText:C,maskTextClass:g,unmaskTextClass:S,maskTextSelector:_,unmaskTextSelector:b}=t,T=sj(e,r,o,i),E=JF(e);let x={};const A=e.attributes.length;for(let M=0;M<A;M++){const z=e.attributes[M];z.name&&!Ew(E,z.name,z.value)&&(x[z.name]=Sw(n,E,Ei(z.name),z.value,e,c))}if(E==="link"&&s){const M=Array.from(n.styleSheets).find(V=>V.href===e.href);let z=null;M&&(z=gc(M)),z&&(x.rel=null,x.href=null,x.crossorigin=null,x._cssText=bc(z,M.href))}if(E==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const M=gc(e.sheet);M&&(x._cssText=bc(M,du(n)))}if(E==="input"||E==="textarea"||E==="select"||E==="option"){const M=e,z=bm(M),V=yc(M,If(E),z),Y=M.checked;if(z!=="submit"&&z!=="button"&&V){const D=xi(M,g,_,S,b,uu({type:z,tagName:If(E),maskInputOptions:l}));x.value=Ms({isMasked:D,element:M,value:V,maskInputFn:d})}Y&&(x.checked=Y)}if(E==="option"&&(e.selected&&!l.select?x.selected=!0:delete x.selected),E==="canvas"&&p){if(e.__context==="2d")GF(e)||(x.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const M=e.toDataURL(u.type,u.quality),z=n.createElement("canvas");z.width=e.width,z.height=e.height;const V=z.toDataURL(u.type,u.quality);M!==V&&(x.rr_dataURL=M)}}if(E==="img"&&f){Lo||(Lo=n.createElement("canvas"),$g=Lo.getContext("2d"));const M=e,z=M.currentSrc||M.getAttribute("src")||"<unknown-src>",V=M.crossOrigin,Y=()=>{M.removeEventListener("load",Y);try{Lo.width=M.naturalWidth,Lo.height=M.naturalHeight,$g.drawImage(M,0,0),x.rr_dataURL=Lo.toDataURL(u.type,u.quality)}catch(D){if(M.crossOrigin!=="anonymous"){M.crossOrigin="anonymous",M.complete&&M.naturalWidth!==0?Y():M.addEventListener("load",Y);return}else console.warn(`Cannot inline img src=${z}! Error: ${D}`)}M.crossOrigin==="anonymous"&&(V?x.crossOrigin=V:M.removeAttribute("crossorigin"))};M.complete&&M.naturalWidth!==0?Y():M.addEventListener("load",Y)}if((E==="audio"||E==="video")&&(x.rr_mediaState=e.paused?"paused":"played",x.rr_mediaCurrentTime=e.currentTime),v||(e.scrollLeft&&(x.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(x.rr_scrollTop=e.scrollTop)),T){const{width:M,height:z}=e.getBoundingClientRect();x={class:x.class,rr_width:`${M}px`,rr_height:`${z}px`}}E==="iframe"&&!h(x.src)&&(!T&&!Cw(e)&&(x.rr_src=x.src),delete x.src);let P;try{customElements.get(E)&&(P=!0)}catch{}return{type:Vt.Element,tagName:E,attributes:x,childNodes:[],isSVG:ij(e)||void 0,needBlock:T,rootId:y,isCustom:P}}function ht(e){return e==null?"":e.toLowerCase()}function hj(e,t){if(t.comment&&e.type===Vt.Comment)return!0;if(e.type===Vt.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&ww(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ht(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ht(e.attributes.name)==="application-name"||ht(e.attributes.rel)==="icon"||ht(e.attributes.rel)==="apple-touch-icon"||ht(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&ht(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ht(e.attributes.property).match(/^(og|twitter|fb):/)||ht(e.attributes.name).match(/^(og|twitter):/)||ht(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(ht(e.attributes.name)==="robots"||ht(e.attributes.name)==="googlebot"||ht(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(ht(e.attributes.name)==="author"||ht(e.attributes.name)==="generator"||ht(e.attributes.name)==="framework"||ht(e.attributes.name)==="publisher"||ht(e.attributes.name)==="progid"||ht(e.attributes.property).match(/^article:/)||ht(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(ht(e.attributes.name)==="google-site-verification"||ht(e.attributes.name)==="yandex-verification"||ht(e.attributes.name)==="csrf-token"||ht(e.attributes.name)==="p:domain_verify"||ht(e.attributes.name)==="verify-v1"||ht(e.attributes.name)==="verification"||ht(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Wo(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:f,skipChild:p=!1,inlineStylesheet:h=!0,maskInputOptions:v={},maskAttributeFn:y,maskTextFn:C,maskInputFn:g,slimDOMOptions:S,dataURLOptions:_={},inlineImages:b=!1,recordCanvas:T=!1,onSerialize:E,onIframeLoad:x,iframeLoadTimeout:A=5e3,onStylesheetLoad:P,stylesheetLoadTimeout:M=5e3,keepIframeSrcFn:z=()=>!1,newlyAddedElement:V=!1}=t;let{preserveWhiteSpace:Y=!0}=t;const D=dj(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:l,unblockSelector:s,maskTextClass:c,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:v,maskAttributeFn:y,maskTextFn:C,maskInputFn:g,dataURLOptions:_,inlineImages:b,recordCanvas:T,keepIframeSrcFn:z,newlyAddedElement:V});if(!D)return console.warn(e,"not serialized"),null;let H;r.hasNode(e)?H=r.getId(e):hj(D,S)||!Y&&D.type===Vt.Text&&!D.isStyle&&!D.textContent.replace(/^\s+|\s+$/gm,"").length?H=Os:H=wm();const B=Object.assign(D,{id:H});if(r.add(e,B),H===Os)return null;E&&E(e);let q=!p;if(B.type===Vt.Element){q=q&&!B.needBlock,delete B.needBlock;const J=e.shadowRoot;J&&ds(J)&&(B.isShadowHost=!0)}if((B.type===Vt.Document||B.type===Vt.Element)&&q){S.headWhitespace&&B.type===Vt.Element&&B.tagName==="head"&&(Y=!1);const J={doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:l,unblockSelector:s,maskTextClass:c,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:f,skipChild:p,inlineStylesheet:h,maskInputOptions:v,maskAttributeFn:y,maskTextFn:C,maskInputFn:g,slimDOMOptions:S,dataURLOptions:_,inlineImages:b,recordCanvas:T,preserveWhiteSpace:Y,onSerialize:E,onIframeLoad:x,iframeLoadTimeout:A,onStylesheetLoad:P,stylesheetLoadTimeout:M,keepIframeSrcFn:z};for(const U of Array.from(e.childNodes)){const j=Wo(U,J);j&&B.childNodes.push(j)}if(VF(e)&&e.shadowRoot)for(const U of Array.from(e.shadowRoot.childNodes)){const j=Wo(U,J);j&&(ds(e.shadowRoot)&&(j.isShadow=!0),B.childNodes.push(j))}}return e.parentNode&&us(e.parentNode)&&ds(e.parentNode)&&(B.isShadow=!0),B.type===Vt.Element&&B.tagName==="iframe"&&cj(e,()=>{const J=Cw(e);if(J&&x){const U=Wo(J,{doc:J,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:h,maskInputOptions:v,maskAttributeFn:y,maskTextFn:C,maskInputFn:g,slimDOMOptions:S,dataURLOptions:_,inlineImages:b,recordCanvas:T,preserveWhiteSpace:Y,onSerialize:E,onIframeLoad:x,iframeLoadTimeout:A,onStylesheetLoad:P,stylesheetLoadTimeout:M,keepIframeSrcFn:z});U&&x(e,U)}},A),B.type===Vt.Element&&B.tagName==="link"&&typeof B.attributes.rel=="string"&&(B.attributes.rel==="stylesheet"||B.attributes.rel==="preload"&&typeof B.attributes.href=="string"&&ww(B.attributes.href)==="css")&&uj(e,()=>{if(P){const J=Wo(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:h,maskInputOptions:v,maskAttributeFn:y,maskTextFn:C,maskInputFn:g,slimDOMOptions:S,dataURLOptions:_,inlineImages:b,recordCanvas:T,preserveWhiteSpace:Y,onSerialize:E,onIframeLoad:x,iframeLoadTimeout:A,onStylesheetLoad:P,stylesheetLoadTimeout:M,keepIframeSrcFn:z});J&&P(e,J)}},M),B}function vj(e,t){const{mirror:n=new bw,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:l="rr-mask",unmaskTextClass:c=null,maskTextSelector:d=null,unmaskTextSelector:u=null,inlineStylesheet:f=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:v=!1,maskAttributeFn:y,maskTextFn:C,maskInputFn:g,slimDOM:S=!1,dataURLOptions:_,preserveWhiteSpace:b,onSerialize:T,onIframeLoad:E,iframeLoadTimeout:x,onStylesheetLoad:A,stylesheetLoadTimeout:P,keepIframeSrcFn:M=()=>!1}=t;return Wo(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:f,maskInputOptions:v===!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}:v===!1?{}:v,maskAttributeFn:y,maskTextFn:C,maskInputFn:g,slimDOMOptions:S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:S==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:S===!1?{}:S,dataURLOptions:_,inlineImages:p,recordCanvas:h,preserveWhiteSpace:b,onSerialize:T,onIframeLoad:E,iframeLoadTimeout:x,onStylesheetLoad:A,stylesheetLoadTimeout:P,keepIframeSrcFn:M,newlyAddedElement:!1})}function ha(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}function un(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const zo=`Please stop import mirror directly. Instead of that,\r
661
+ Error:`,o)}}function qz(){return Tz(e=>{zi("cls",{metric:e}),tw=e},{reportAllChanges:!0})}function Yz(){return Iz(e=>{zi("fid",{metric:e}),nw=e})}function Gz(){return jz(e=>{zi("lcp",{metric:e}),rw=e},{reportAllChanges:!0})}function Xz(){return Uz(e=>{zi("ttfb",{metric:e}),aw=e})}function Kz(){return Vz(e=>{zi("inp",{metric:e}),ow=e})}function Js(e,t,n,r,o=!1){cw(e,t);let i;return vc[e]||(i=n(),vc[e]=!0),r&&t({metric:r}),uw(e,t,o?i:void 0)}function Jz(e){const t={};e==="event"&&(t.durationThreshold=0),Po(e,n=>{zi(e,{entries:n})},t)}function cw(e,t){ls[e]=ls[e]||[],ls[e].push(t)}function uw(e,t,n){return()=>{n&&n();const r=ls[e];if(!r)return;const o=r.indexOf(t);o!==-1&&r.splice(o,1)}}function Qz(e){return"duration"in e}function ld(e){return typeof e=="number"&&isFinite(e)}function sa(e,t,n,{...r}){const o=tt(e).start_timestamp;return o&&o>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Ab(e,()=>{const i=ko({startTime:t,...r});return i&&i.end(n),i})}function dw(e){const t=Ze();if(!t)return;const{name:n,transaction:r,attributes:o,startTime:i}=e,{release:s,environment:l}=t.getOptions(),c=t.getIntegrationByName("Replay"),d=c&&c.getReplayId(),u=ct(),f=u.getUser(),p=f!==void 0?f.email||f.id||f.ip_address:void 0;let h;try{h=u.getScopeData().contexts.profile.profile_id}catch{}const v={release:s,environment:l,user:p||void 0,profile_id:h||void 0,replay_id:d||void 0,transaction:r,"user_agent.original":Le.navigator&&Le.navigator.userAgent,...o};return ko({name:n,attributes:v,startTime:i,experimental:{standalone:!0}})}function hm(){return Le&&Le.addEventListener&&Le.performance}function Dt(e){return e/1e3}function Zz(){let e=0,t,n;if(!tV())return;let r=!1;function o(){r||(r=!0,n&&eV(e,t,n),i())}const i=mm(({metric:s})=>{const l=s.entries[s.entries.length-1];l&&(e=s.value,t=l)},!0);$i(()=>{o()}),setTimeout(()=>{const s=Ze();if(!s)return;const l=s.on("startNavigationSpan",()=>{o(),l&&l()}),c=$t(),d=c&&Wt(c),u=d&&tt(d);u&&u.op==="pageload"&&(n=d.spanContext().spanId)},0)}function eV(e,t,n){pm&&_e.log(`Sending CLS span (${e})`);const r=Dt((pn||0)+(t&&t.startTime||0)),o=ct().getScopeData().transactionName,i=t?aa(t.sources[0]&&t.sources[0].node):"Layout shift",s=jt({[St]:"auto.http.browser.cls",[wo]:"ui.webvital.cls",[om]:t&&t.duration||0,"sentry.pageload.span_id":n}),l=dw({name:i,transaction:o,attributes:s,startTime:r});l&&(l.addEvent("cls",{[au]:"",[ou]:e}),l.end(r))}function tV(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch{return!1}}const nV=2147483647;let Tg=0,Jt={},bn,cs;function rV({recordClsStandaloneSpans:e}){const t=hm();if(t&&pn){t.mark&&Le.performance.mark("sentry-tracing-init");const n=cV(),r=lV(),o=uV(),i=e?Zz():sV();return()=>{n(),r(),o(),i&&i()}}return()=>{}}function aV(){Ci("longtask",({entries:e})=>{const t=$t();if(!t)return;const{op:n,start_timestamp:r}=tt(t);for(const o of e){const i=Dt(pn+o.startTime),s=Dt(o.duration);n==="navigation"&&r&&i<r||sa(t,i,i+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[St]:"auto.ui.browser.metrics"}})}})}function oV(){new PerformanceObserver(t=>{const n=$t();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const o=Dt(pn+r.startTime),{start_timestamp:i,op:s}=tt(n);if(s==="navigation"&&i&&o<i)continue;const l=Dt(r.duration),c={[St]:"auto.ui.browser.metrics"},d=r.scripts[0],{invoker:u,invokerType:f,sourceURL:p,sourceFunctionName:h,sourceCharPosition:v}=d;c["browser.script.invoker"]=u,c["browser.script.invoker_type"]=f,p&&(c["code.filepath"]=p),h&&(c["code.function"]=h),v!==-1&&(c["browser.script.source_char_position"]=v),sa(n,o,o+l,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function iV(){Ci("event",({entries:e})=>{const t=$t();if(t){for(const n of e)if(n.name==="click"){const r=Dt(pn+n.startTime),o=Dt(n.duration),i={name:aa(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[St]:"auto.ui.browser.metrics"}},s=ab(n.target);s&&(i.attributes["ui.component_name"]=s),sa(t,r,r+o,i)}}})}function sV(){return mm(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Jt.cls={value:e.value,unit:""},cs=t)},!0)}function lV(){return iw(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Jt.lcp={value:e.value,unit:"millisecond"},bn=t)},!0)}function cV(){return sw(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Dt(pn),r=Dt(t.startTime);Jt.fid={value:e.value,unit:"millisecond"},Jt["mark.fid"]={value:n+r,unit:"second"}})}function uV(){return Wz(({metric:e})=>{e.entries[e.entries.length-1]&&(Jt.ttfb={value:e.value,unit:"millisecond"})})}function dV(e,t){const n=hm();if(!n||!n.getEntries||!pn)return;const r=Dt(pn),o=n.getEntries(),{op:i,start_timestamp:s}=tt(e);if(o.slice(Tg).forEach(l=>{const c=Dt(l.startTime),d=Dt(Math.max(0,l.duration));if(!(i==="navigation"&&s&&r+c<s))switch(l.entryType){case"navigation":{pV(e,l,r);break}case"mark":case"paint":case"measure":{fV(e,l,c,d,r);const u=lu(),f=l.startTime<u.firstHiddenTime;l.name==="first-paint"&&f&&(Jt.fp={value:l.startTime,unit:"millisecond"}),l.name==="first-contentful-paint"&&f&&(Jt.fcp={value:l.startTime,unit:"millisecond"});break}case"resource":{vV(e,l,l.name,c,d,r);break}}}),Tg=Math.max(o.length-1,0),gV(e),i==="pageload"){bV(Jt);const l=Jt["mark.fid"];l&&Jt.fid&&(sa(e,l.value,l.value+Dt(Jt.fid.value),{name:"first input delay",op:"ui.action",attributes:{[St]:"auto.ui.browser.metrics"}}),delete Jt["mark.fid"]),(!("fcp"in Jt)||!t.recordClsOnPageloadSpan)&&delete Jt.cls,Object.entries(Jt).forEach(([c,d])=>{cL(c,d.value,d.unit)}),e.setAttribute("performance.timeOrigin",r),e.setAttribute("performance.activationStart",Xs()),yV(e)}bn=void 0,cs=void 0,Jt={}}function fV(e,t,n,r,o){const i=Gs(!1),s=Dt(i?i.requestStart:0),l=o+Math.max(n,s),c=o+n,d=c+r,u={[St]:"auto.resource.browser.metrics"};return l!==c&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=l),sa(e,l,d,{name:t.name,op:t.entryType,attributes:u}),l}function pV(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Sl(e,t,r,n)}),Sl(e,t,"secureConnection",n,"TLS/SSL"),Sl(e,t,"fetch",n,"cache"),Sl(e,t,"domainLookup",n,"DNS"),hV(e,t,n)}function Sl(e,t,n,r,o=n){const i=mV(n),s=t[i],l=t[`${n}Start`];!l||!s||sa(e,r+Dt(l),r+Dt(s),{op:`browser.${o}`,name:t.name,attributes:{[St]:"auto.ui.browser.metrics"}})}function mV(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function hV(e,t,n){const r=n+Dt(t.requestStart),o=n+Dt(t.responseEnd),i=n+Dt(t.responseStart);t.responseEnd&&(sa(e,r,o,{op:"browser.request",name:t.name,attributes:{[St]:"auto.ui.browser.metrics"}}),sa(e,i,o,{op:"browser.response",name:t.name,attributes:{[St]:"auto.ui.browser.metrics"}}))}function vV(e,t,n,r,o,i){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=po(n),l={[St]:"auto.resource.browser.metrics"};cd(l,t,"transferSize","http.response_transfer_size"),cd(l,t,"encodedBodySize","http.response_content_length"),cd(l,t,"decodedBodySize","http.decoded_response_content_length");const c=t.deliveryType;c!=null&&(l["http.response_delivery_type"]=c);const d=t.renderBlockingStatus;d&&(l["resource.render_blocking_status"]=d),s.protocol&&(l["url.scheme"]=s.protocol.split(":").pop()),s.host&&(l["server.address"]=s.host),l["url.same_origin"]=n.includes(Le.location.origin);const u=i+r,f=u+o;sa(e,u,f,{name:n.replace(Le.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:l})}function gV(e){const t=Le.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),ld(n.rtt)&&(Jt["connection.rtt"]={value:n.rtt,unit:"millisecond"})),ld(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),ld(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function yV(e){bn&&(bn.element&&e.setAttribute("lcp.element",aa(bn.element)),bn.id&&e.setAttribute("lcp.id",bn.id),bn.url&&e.setAttribute("lcp.url",bn.url.trim().slice(0,200)),bn.loadTime!=null&&e.setAttribute("lcp.loadTime",bn.loadTime),bn.renderTime!=null&&e.setAttribute("lcp.renderTime",bn.renderTime),e.setAttribute("lcp.size",bn.size)),cs&&cs.sources&&cs.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,aa(t.node)))}function cd(e,t,n,r){const o=t[n];o!=null&&o<nV&&(e[r]=o)}function bV(e){const t=Gs(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}const wV=1e3;let Pg,Ef,xf;function fw(e){const t="dom";ja(t,e),Ha(t,kV)}function kV(){if(!Le.document)return;const e=Hn.bind(null,"dom"),t=Ig(e,!0);Le.document.addEventListener("click",t,!1),Le.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const o=Le[n],i=o&&o.prototype;!i||!i.hasOwnProperty||!i.hasOwnProperty("addEventListener")||(wn(i,"addEventListener",function(s){return function(l,c,d){if(l==="click"||l=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},f=u[l]=u[l]||{refCount:0};if(!f.handler){const p=Ig(e);f.handler=p,s.call(this,l,p,d)}f.refCount++}catch{}return s.call(this,l,c,d)}}),wn(i,"removeEventListener",function(s){return function(l,c,d){if(l==="click"||l=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},f=u[l];f&&(f.refCount--,f.refCount<=0&&(s.call(this,l,f.handler,d),f.handler=void 0,delete u[l]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return s.call(this,l,c,d)}}))})}function _V(e){if(e.type!==Ef)return!1;try{if(!e.target||e.target._sentryId!==xf)return!1}catch{}return!0}function CV(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Ig(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=SV(n);if(CV(n.type,r))return;qn(n,"_sentryCaptured",!0),r&&!r._sentryId&&qn(r,"_sentryId",Nn());const o=n.type==="keypress"?"input":n.type;_V(n)||(e({event:n,name:o,global:t}),Ef=n.type,xf=r?r._sentryId:void 0),clearTimeout(Pg),Pg=Le.setTimeout(()=>{xf=void 0,Ef=void 0},wV)}}function SV(e){try{return e.target}catch{return null}}let El;function cu(e){const t="history";ja(t,e),Ha(t,EV)}function EV(){if(!nz())return;const e=Le.onpopstate;Le.onpopstate=function(...n){const r=Le.location.href,o=El;if(El=r,Hn("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=El,s=String(o);El=s,Hn("history",{from:i,to:s})}return n.apply(this,r)}}wn(Le.history,"pushState",t),wn(Le.history,"replaceState",t)}const jl={};function pw(e){const t=jl[e];if(t)return t;let n=Le[e];if(bf(n))return jl[e]=n.bind(Le);const r=Le.document;if(r&&typeof r.createElement=="function")try{const o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);const i=o.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(o)}catch(o){pm&&_e.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(jl[e]=n.bind(Le))}function Ag(e){jl[e]=void 0}function Si(...e){return pw("setTimeout")(...e)}const no="__sentry_xhr_v3__";function mw(e){const t="xhr";ja(t,e),Ha(t,xV)}function xV(){if(!Le.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const o=new Error,i=nn()*1e3,s=Kr(r[0])?r[0].toUpperCase():void 0,l=TV(r[1]);if(!s||!l)return t.apply(n,r);n[no]={method:s,url:l,request_headers:{}},s==="POST"&&l.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const d=n[no];if(d&&n.readyState===4){try{d.status_code=n.status}catch{}const u={endTimestamp:nn()*1e3,startTimestamp:i,xhr:n,virtualError:o};Hn("xhr",u)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(d,u,f){return c(),d.apply(u,f)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(d,u,f){const[p,h]=f,v=u[no];return v&&Kr(p)&&Kr(h)&&(v.request_headers[p.toLowerCase()]=h),d.apply(u,f)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const o=n[no];if(!o)return t.apply(n,r);r[0]!==void 0&&(o.body=r[0]);const i={startTimestamp:nn()*1e3,xhr:n};return Hn("xhr",i),t.apply(n,r)}})}function TV(e){if(Kr(e))return e;try{return e.toString()}catch{}}const ud=[],Hl=new Map;function PV(){if(hm()&&pn){const t=IV();return()=>{t()}}return()=>{}}const Mg={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function IV(){return lw(({metric:e})=>{if(e.value==null)return;const t=e.entries.find(v=>v.duration===e.value&&Mg[v.name]);if(!t)return;const{interactionId:n}=t,r=Mg[t.name],o=Dt(pn+t.startTime),i=Dt(e.value),s=$t(),l=s?Wt(s):void 0,d=(n!=null?Hl.get(n):void 0)||l,u=d?tt(d).description:ct().getScopeData().transactionName,f=aa(t.target),p=jt({[St]:"auto.http.browser.inp",[wo]:`ui.interaction.${r}`,[om]:t.duration}),h=dw({name:f,transaction:u,attributes:p,startTime:o});h&&(h.addEvent("inp",{[au]:"millisecond",[ou]:e.value}),h.end(o+i))})}function AV(e){const t=({entries:n})=>{const r=$t(),o=r&&Wt(r);n.forEach(i=>{if(!Qz(i)||!o)return;const s=i.interactionId;if(s!=null&&!Hl.has(s)){if(ud.length>10){const l=ud.shift();Hl.delete(l)}ud.push(s),Hl.set(s,o)}})};Ci("event",t),Ci("first-input",t)}function MV(e,t=pw("fetch")){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};if(!t)return Ag("fetch"),dc("No fetch implementation available");try{return t(e.url,l).then(c=>(n-=s,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return Ag("fetch"),n-=s,r--,dc(c)}}return s$(e,o)}const OV=30,NV=50;function Tf(e,t,n,r){const o={filename:e,function:t==="<anonymous>"?bo:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const BV=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,DV=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,RV=/\((\S*)(?::(\d+))(?::(\d+))\)/,LV=e=>{const t=BV.exec(e);if(t){const[,r,o,i]=t;return Tf(r,bo,+o,+i)}const n=DV.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const s=RV.exec(n[2]);s&&(n[2]=s[1],n[3]=s[2],n[4]=s[3])}const[o,i]=hw(n[1]||bo,n[2]);return Tf(i,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},$V=[OV,LV],zV=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,VV=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,FV=e=>{const t=zV.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=VV.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]||bo;return[o,r]=hw(o,r),Tf(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},jV=[NV,FV],HV=[$V,jV],UV=J2(...HV),hw=(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]:bo,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},xl=1024,WV="Breadcrumbs",qV=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:WV,setup(n){t.console&&N$(KV(n)),t.dom&&fw(XV(n,t.dom)),t.xhr&&mw(JV(n)),t.fetch&&Xb(QV(n)),t.history&&cu(ZV(n)),t.sentry&&n.on("beforeSendEvent",GV(n))}}},YV=qV;function GV(e){return function(n){Ze()===e&&Ba({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:ma(n)},{event:n})}}function XV(e,t){return function(r){if(Ze()!==e)return;let o,i,s=typeof t=="object"?t.serializeAttribute:void 0,l=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;l&&l>xl&&(Bn&&_e.warn(`\`dom.maxStringLength\` cannot exceed ${xl}, but a value of ${l} was configured. Sentry will use ${xl} instead.`),l=xl),typeof s=="string"&&(s=[s]);try{const d=r.event,u=eF(d)?d.target:d;o=aa(u,{keyAttrs:s,maxStringLength:l}),i=ab(u)}catch{o="<unknown>"}if(o.length===0)return;const c={category:`ui.${r.name}`,message:o};i&&(c.data={"ui.component_name":i}),Ba(c,{event:r.event,name:r.name,global:r.global})}}function KV(e){return function(n){if(Ze()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Ub(n.level),message:Wv(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Wv(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Ba(r,{input:n.args,level:n.level})}}function JV(e){return function(n){if(Ze()!==e)return;const{startTimestamp:r,endTimestamp:o}=n,i=n.xhr[no];if(!r||!o||!i)return;const{method:s,url:l,status_code:c,body:d}=i,u={method:s,url:l,status_code:c},f={xhr:n.xhr,input:d,startTimestamp:r,endTimestamp:o},p=Yb(c);Ba({category:"xhr",data:u,type:"http",level:p},f)}}function QV(e){return function(n){if(Ze()!==e)return;const{startTimestamp:r,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const i=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o};Ba({category:"fetch",data:i,level:"error",type:"http"},s)}else{const i=n.response,s={...n.fetchData,status_code:i&&i.status},l={input:n.args,response:i,startTimestamp:r,endTimestamp:o},c=Yb(s.status_code);Ba({category:"fetch",data:s,type:"http",level:c},l)}}}function ZV(e){return function(n){if(Ze()!==e)return;let r=n.from,o=n.to;const i=po(ze.location.href);let s=r?po(r):void 0;const l=po(o);(!s||!s.path)&&(s=i),i.protocol===l.protocol&&i.host===l.host&&(o=l.relative),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),Ba({category:"navigation",data:{from:r,to:o}})}}function eF(e){return!!e&&!!e.target}const tF=["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"],nF="BrowserApiErrors",rF=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:nF,setupOnce(){t.setTimeout&&wn(ze,"setTimeout",Og),t.setInterval&&wn(ze,"setInterval",Og),t.requestAnimationFrame&&wn(ze,"requestAnimationFrame",oF),t.XMLHttpRequest&&"XMLHttpRequest"in ze&&wn(XMLHttpRequest.prototype,"send",iF);const n=t.eventTarget;n&&(Array.isArray(n)?n:tF).forEach(sF)}}},aF=rF;function Og(e){return function(...t){const n=t[0];return t[0]=_i(n,{mechanism:{data:{function:na(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function oF(e){return function(t){return e.apply(this,[_i(t,{mechanism:{data:{function:"requestAnimationFrame",handler:na(e)},handled:!1,type:"instrument"}})])}}function iF(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&wn(n,o,function(i){const s={mechanism:{data:{function:o,handler:na(i)},handled:!1,type:"instrument"}},l=nm(i);return l&&(s.mechanism.data.handler=na(l)),_i(i,s)})}),e.apply(this,t)}}function sF(e){const n=ze[e],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(wn(r,"addEventListener",function(o){return function(i,s,l){try{lF(s)&&(s.handleEvent=_i(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:na(s),target:e},handled:!1,type:"instrument"}}))}catch{}return o.apply(this,[i,_i(s,{mechanism:{data:{function:"addEventListener",handler:na(s),target:e},handled:!1,type:"instrument"}}),l])}}),wn(r,"removeEventListener",function(o){return function(i,s,l){try{const c=s.__sentry_wrapped__;c&&o.call(this,i,c,l)}catch{}return o.call(this,i,s,l)}}))}function lF(e){return typeof e.handleEvent=="function"}const cF=()=>({name:"BrowserSession",setupOnce(){if(typeof ze.document>"u"){Bn&&_e.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}fg({ignoreDuration:!0}),pg(),cu(({from:e,to:t})=>{e!==void 0&&e!==t&&(fg({ignoreDuration:!0}),pg())})}}),uF="GlobalHandlers",dF=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:uF,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(pF(n),Ng("onerror")),t.onunhandledrejection&&(mF(n),Ng("onunhandledrejection"))}}},fF=dF;function pF(e){Q2(t=>{const{stackParser:n,attachStacktrace:r}=vw();if(Ze()!==e||Jb())return;const{msg:o,url:i,line:s,column:l,error:c}=t,d=gF(fm(n,c||o,void 0,r,!1),i,s,l);d.level="error",Bb(d,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function mF(e){Z2(t=>{const{stackParser:n,attachStacktrace:r}=vw();if(Ze()!==e||Jb())return;const o=hF(t),i=tm(o)?vF(o):fm(n,o,void 0,r,!0);i.level="error",Bb(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function hF(e){if(tm(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function vF(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function gF(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||{},c=l.frames=l.frames||[],d=r,u=n,f=Kr(t)&&t.length>0?t:rb();return c.length===0&&c.push({colno:d,filename:f,function:bo,in_app:!0,lineno:u}),e}function Ng(e){Bn&&_e.log(`Global Handler attached: ${e}`)}function vw(){const e=Ze();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const yF=()=>({name:"HttpContext",preprocessEvent(e){if(!ze.navigator&&!ze.location&&!ze.document)return;const t=e.request&&e.request.url||ze.location&&ze.location.href,{referrer:n}=ze.document||{},{userAgent:r}=ze.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:o};e.request=i}}),bF="cause",wF=5,kF="LinkedErrors",_F=(e={})=>{const t=e.limit||wF,n=e.key||bF;return{name:kF,preprocessEvent(r,o,i){const s=i.getOptions();M$(um,s.stackParser,s.maxValueLength,n,t,r,o)}}},CF=_F;function gw(e){const t=[w$(),v$(),aF(),YV(),fF(),CF(),L$(),yF()];return e.autoSessionTracking!==!1&&t.push(cF()),t}function SF(e={}){const t={defaultIntegrations:gw(e),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:ze.SENTRY_RELEASE&&ze.SENTRY_RELEASE.id?ze.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function EF(){const e=typeof ze.window<"u"&&ze;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,o=ze.location&&ze.location.href||"",i=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],s=!!r&&ze===ze.top&&i.some(c=>o.startsWith(`${c}//`)),l=typeof e.nw<"u";return!!r&&!s&&!l}function xF(e={}){const t=SF(e);if(!t.skipBrowserExtensionCheck&&EF()){mr(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}Bn&&(Gb()||_e.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:GD(t.stackParser||UV),integrations:GL(t),transport:t.transport||MV};return e$(yz,n)}function TF(e={}){if(!ze.document){Bn&&_e.error("Global document not defined in showReportDialog call");return}const t=ct(),n=t.getClient(),r=n&&n.getDsn();if(!r){Bn&&_e.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const l=zL();l&&(e.eventId=l)}const o=ze.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=qL(r,e),e.onLoad&&(o.onload=e.onLoad);const{onClose:i}=e;if(i){const l=c=>{if(c.data==="__sentry_reportdialog_closed__")try{i()}finally{ze.removeEventListener("message",l)}};ze.addEventListener("message",l)}const s=ze.document.head||ze.document.body;s?s.appendChild(o):Bn&&_e.error("Not injecting report dialog. No injection point found in HTML")}const vt=Qe,vm="sentryReplaySession",PF="replay_event",gm="Unable to send Replay",IF=3e5,AF=9e5,MF=5e3,OF=5500,NF=6e4,BF=5e3,DF=3,Bg=15e4,Tl=5e3,RF=3e3,LF=300,ym=2e7,$F=4999,zF=15e3,Dg=36e5;function Pf(e,t){return e??t()}function As(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}var Vt;(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"})(Vt||(Vt={}));function VF(e){return e.nodeType===e.ELEMENT_NODE}function us(e){const t=As([e,"optionalAccess",n=>n.host]);return As([t,"optionalAccess",n=>n.shadowRoot])===e}function ds(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function FF(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function jF(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 gc(e){try{const t=e.rules||e.cssRules;return t?FF(Array.from(t,yw).join("")):null}catch{return null}}function HF(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,o=r[n],i=r.getPropertyPriority(o);t+=`${o}:${r.getPropertyValue(o)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}function yw(e){let t;if(WF(e))try{t=gc(e.styleSheet)||jF(e)}catch{}else if(qF(e)){let n=e.cssText;const r=e.selectorText.includes(":"),o=typeof e.style.all=="string"&&e.style.all;if(o&&(n=HF(e)),r&&(n=UF(n)),r||o)return n}return t||e.cssText}function UF(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function WF(e){return"styleSheet"in e}function qF(e){return"selectorText"in e}class bw{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const n=As([this,"access",r=>r.getMeta,"call",r=>r(t),"optionalAccess",r=>r.id]);return Pf(n,()=>-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 YF(){return new bw}function uu({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 Ms({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function Ei(e){return e.toLowerCase()}function If(e){return e.toUpperCase()}const Rg="__rrweb_original__";function GF(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=Rg in i?i[Rg]:i;if(new Uint32Array(s.call(t,r,o,Math.min(n,e.width-r),Math.min(n,e.height-o)).data.buffer).some(c=>c!==0))return!1}return!0}function bm(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ei(t):null}function yc(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function ww(e,t){let n;try{n=new URL(e,Pf(t,()=>window.location.href))}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,o=n.pathname.match(r);return Pf(As([o,"optionalAccess",i=>i[1]]),()=>null)}const Lg={};function kw(e){const t=Lg[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const i=o.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(o)}catch{}return Lg[e]=r.bind(window)}function Af(...e){return kw("setTimeout")(...e)}function _w(...e){return kw("clearTimeout")(...e)}function Cw(e){try{return e.contentDocument}catch{}}let XF=1;const KF=new RegExp("[^a-z0-9-_:]"),Os=-2;function wm(){return XF++}function JF(e){if(e instanceof HTMLFormElement)return"form";const t=Ei(e.tagName);return KF.test(t)?"div":t}function QF(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let Lo,$g;const ZF=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ej=/^(?:[a-z+]+:)?\/\//i,tj=/^www\..*/i,nj=/^(data:)([^,]*),(.*)/i;function bc(e,t){return(e||"").replace(ZF,(n,r,o,i,s,l)=>{const c=o||s||l,d=r||i||"";if(!c)return n;if(ej.test(c)||tj.test(c))return`url(${d}${c}${d})`;if(nj.test(c))return`url(${d}${c}${d})`;if(c[0]==="/")return`url(${d}${QF(t)+c}${d})`;const u=t.split("/"),f=c.split("/");u.pop();for(const p of f)p!=="."&&(p===".."?u.pop():u.push(p));return`url(${d}${u.join("/")}${d})`})}const rj=/^[^ \t\n\r\u000c]+/,aj=/^[, \t\n\r\u000c]+/;function oj(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(aj),!(n>=t.length);){let i=r(rj);if(i.slice(-1)===",")i=Ho(e,i.substring(0,i.length-1)),o.push(i);else{let s="";i=Ho(e,i);let l=!1;for(;;){const c=t.charAt(n);if(c===""){o.push((i+s).trim());break}else if(l)c===")"&&(l=!1);else if(c===","){n+=1,o.push((i+s).trim());break}else c==="("&&(l=!0);s+=c,n+=1}}}return o.join(", ")}const zg=new WeakMap;function Ho(e,t){return!t||t.trim()===""?t:du(e,t)}function ij(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function du(e,t){let n=zg.get(e);if(n||(n=e.createElement("a"),zg.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function Sw(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")?Ho(e,r):n==="srcset"?oj(e,r):n==="style"?bc(r,du(e)):t==="object"&&n==="data"?Ho(e,r):typeof i=="function"?i(n,r,o):r)}function Ew(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function sj(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 lj(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function ro(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:ro(e.parentNode,t,n,r+1)}function Uo(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(lj(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function xi(e,t,n,r,o,i){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(s===null)return!1;if(s.tagName==="INPUT"){const d=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(d))return!0}let l=-1,c=-1;if(i){if(c=ro(s,Uo(r,o)),c<0)return!0;l=ro(s,Uo(t,n),c>=0?c:1/0)}else{if(l=ro(s,Uo(t,n)),l<0)return!1;c=ro(s,Uo(r,o),l>=0?l:1/0)}return l>=0?c>=0?l<=c:!0:c>=0?!1:!!i}catch{}return!!i}function cj(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=Af(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{_w(l),o=!0,t()});return}const s="about:blank";if(r.location.href!==s||e.src===s||e.src==="")return Af(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function uj(e,t,n){let r=!1,o;try{o=e.sheet}catch{return}if(o)return;const i=Af(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{_w(i),r=!0,t()})}function dj(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskAttributeFn:c,maskTextClass:d,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:v={},maskTextFn:y,maskInputFn:C,dataURLOptions:g={},inlineImages:S,recordCanvas:_,keepIframeSrcFn:b,newlyAddedElement:T=!1}=t,E=fj(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Vt.Document,childNodes:[],compatMode:e.compatMode}:{type:Vt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Vt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return mj(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:v,maskInputFn:C,dataURLOptions:g,inlineImages:S,recordCanvas:_,keepIframeSrcFn:b,newlyAddedElement:T,rootId:E,maskAllText:l,maskTextClass:d,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:p});case e.TEXT_NODE:return pj(e,{doc:n,maskAllText:l,maskTextClass:d,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:p,maskTextFn:y,maskInputOptions:v,maskInputFn:C,rootId:E});case e.CDATA_SECTION_NODE:return{type:Vt.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:Vt.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}function fj(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function pj(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:l,maskInputOptions:c,maskInputFn:d,rootId:u}=t,f=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const h=f==="STYLE"?!0:void 0,v=f==="SCRIPT"?!0:void 0,y=f==="TEXTAREA"?!0:void 0;if(h&&p){try{e.nextSibling||e.previousSibling||As([e,"access",g=>g.parentNode,"access",g=>g.sheet,"optionalAccess",g=>g.cssRules])&&(p=gc(e.parentNode.sheet))}catch(g){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${g}`,e)}p=bc(p,du(t.doc))}v&&(p="SCRIPT_PLACEHOLDER");const C=xi(e,r,i,o,s,n);if(!h&&!v&&!y&&p&&C&&(p=l?l(p,e.parentElement):p.replace(/[\S]/g,"*")),y&&p&&(c.textarea||C)&&(p=d?d(p,e.parentNode):p.replace(/[\S]/g,"*")),f==="OPTION"&&p){const g=uu({type:null,tagName:f,maskInputOptions:c});p=Ms({isMasked:xi(e,r,i,o,s,g),element:e,value:p,maskInputFn:d})}return{type:Vt.Text,textContent:p||"",isStyle:h,rootId:u}}function mj(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:l={},maskAttributeFn:c,maskInputFn:d,dataURLOptions:u={},inlineImages:f,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:v=!1,rootId:y,maskAllText:C,maskTextClass:g,unmaskTextClass:S,maskTextSelector:_,unmaskTextSelector:b}=t,T=sj(e,r,o,i),E=JF(e);let x={};const A=e.attributes.length;for(let M=0;M<A;M++){const z=e.attributes[M];z.name&&!Ew(E,z.name,z.value)&&(x[z.name]=Sw(n,E,Ei(z.name),z.value,e,c))}if(E==="link"&&s){const M=Array.from(n.styleSheets).find(V=>V.href===e.href);let z=null;M&&(z=gc(M)),z&&(x.rel=null,x.href=null,x.crossorigin=null,x._cssText=bc(z,M.href))}if(E==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const M=gc(e.sheet);M&&(x._cssText=bc(M,du(n)))}if(E==="input"||E==="textarea"||E==="select"||E==="option"){const M=e,z=bm(M),V=yc(M,If(E),z),Y=M.checked;if(z!=="submit"&&z!=="button"&&V){const D=xi(M,g,_,S,b,uu({type:z,tagName:If(E),maskInputOptions:l}));x.value=Ms({isMasked:D,element:M,value:V,maskInputFn:d})}Y&&(x.checked=Y)}if(E==="option"&&(e.selected&&!l.select?x.selected=!0:delete x.selected),E==="canvas"&&p){if(e.__context==="2d")GF(e)||(x.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const M=e.toDataURL(u.type,u.quality),z=n.createElement("canvas");z.width=e.width,z.height=e.height;const V=z.toDataURL(u.type,u.quality);M!==V&&(x.rr_dataURL=M)}}if(E==="img"&&f){Lo||(Lo=n.createElement("canvas"),$g=Lo.getContext("2d"));const M=e,z=M.currentSrc||M.getAttribute("src")||"<unknown-src>",V=M.crossOrigin,Y=()=>{M.removeEventListener("load",Y);try{Lo.width=M.naturalWidth,Lo.height=M.naturalHeight,$g.drawImage(M,0,0),x.rr_dataURL=Lo.toDataURL(u.type,u.quality)}catch(D){if(M.crossOrigin!=="anonymous"){M.crossOrigin="anonymous",M.complete&&M.naturalWidth!==0?Y():M.addEventListener("load",Y);return}else console.warn(`Cannot inline img src=${z}! Error: ${D}`)}M.crossOrigin==="anonymous"&&(V?x.crossOrigin=V:M.removeAttribute("crossorigin"))};M.complete&&M.naturalWidth!==0?Y():M.addEventListener("load",Y)}if((E==="audio"||E==="video")&&(x.rr_mediaState=e.paused?"paused":"played",x.rr_mediaCurrentTime=e.currentTime),v||(e.scrollLeft&&(x.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(x.rr_scrollTop=e.scrollTop)),T){const{width:M,height:z}=e.getBoundingClientRect();x={class:x.class,rr_width:`${M}px`,rr_height:`${z}px`}}E==="iframe"&&!h(x.src)&&(!T&&!Cw(e)&&(x.rr_src=x.src),delete x.src);let P;try{customElements.get(E)&&(P=!0)}catch{}return{type:Vt.Element,tagName:E,attributes:x,childNodes:[],isSVG:ij(e)||void 0,needBlock:T,rootId:y,isCustom:P}}function ht(e){return e==null?"":e.toLowerCase()}function hj(e,t){if(t.comment&&e.type===Vt.Comment)return!0;if(e.type===Vt.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&ww(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ht(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ht(e.attributes.name)==="application-name"||ht(e.attributes.rel)==="icon"||ht(e.attributes.rel)==="apple-touch-icon"||ht(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&ht(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ht(e.attributes.property).match(/^(og|twitter|fb):/)||ht(e.attributes.name).match(/^(og|twitter):/)||ht(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(ht(e.attributes.name)==="robots"||ht(e.attributes.name)==="googlebot"||ht(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(ht(e.attributes.name)==="author"||ht(e.attributes.name)==="generator"||ht(e.attributes.name)==="framework"||ht(e.attributes.name)==="publisher"||ht(e.attributes.name)==="progid"||ht(e.attributes.property).match(/^article:/)||ht(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(ht(e.attributes.name)==="google-site-verification"||ht(e.attributes.name)==="yandex-verification"||ht(e.attributes.name)==="csrf-token"||ht(e.attributes.name)==="p:domain_verify"||ht(e.attributes.name)==="verify-v1"||ht(e.attributes.name)==="verification"||ht(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Wo(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:f,skipChild:p=!1,inlineStylesheet:h=!0,maskInputOptions:v={},maskAttributeFn:y,maskTextFn:C,maskInputFn:g,slimDOMOptions:S,dataURLOptions:_={},inlineImages:b=!1,recordCanvas:T=!1,onSerialize:E,onIframeLoad:x,iframeLoadTimeout:A=5e3,onStylesheetLoad:P,stylesheetLoadTimeout:M=5e3,keepIframeSrcFn:z=()=>!1,newlyAddedElement:V=!1}=t;let{preserveWhiteSpace:Y=!0}=t;const D=dj(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:l,unblockSelector:s,maskTextClass:c,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:v,maskAttributeFn:y,maskTextFn:C,maskInputFn:g,dataURLOptions:_,inlineImages:b,recordCanvas:T,keepIframeSrcFn:z,newlyAddedElement:V});if(!D)return console.warn(e,"not serialized"),null;let H;r.hasNode(e)?H=r.getId(e):hj(D,S)||!Y&&D.type===Vt.Text&&!D.isStyle&&!D.textContent.replace(/^\s+|\s+$/gm,"").length?H=Os:H=wm();const B=Object.assign(D,{id:H});if(r.add(e,B),H===Os)return null;E&&E(e);let q=!p;if(B.type===Vt.Element){q=q&&!B.needBlock,delete B.needBlock;const J=e.shadowRoot;J&&ds(J)&&(B.isShadowHost=!0)}if((B.type===Vt.Document||B.type===Vt.Element)&&q){S.headWhitespace&&B.type===Vt.Element&&B.tagName==="head"&&(Y=!1);const J={doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:l,unblockSelector:s,maskTextClass:c,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:f,skipChild:p,inlineStylesheet:h,maskInputOptions:v,maskAttributeFn:y,maskTextFn:C,maskInputFn:g,slimDOMOptions:S,dataURLOptions:_,inlineImages:b,recordCanvas:T,preserveWhiteSpace:Y,onSerialize:E,onIframeLoad:x,iframeLoadTimeout:A,onStylesheetLoad:P,stylesheetLoadTimeout:M,keepIframeSrcFn:z};for(const U of Array.from(e.childNodes)){const j=Wo(U,J);j&&B.childNodes.push(j)}if(VF(e)&&e.shadowRoot)for(const U of Array.from(e.shadowRoot.childNodes)){const j=Wo(U,J);j&&(ds(e.shadowRoot)&&(j.isShadow=!0),B.childNodes.push(j))}}return e.parentNode&&us(e.parentNode)&&ds(e.parentNode)&&(B.isShadow=!0),B.type===Vt.Element&&B.tagName==="iframe"&&cj(e,()=>{const J=Cw(e);if(J&&x){const U=Wo(J,{doc:J,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:h,maskInputOptions:v,maskAttributeFn:y,maskTextFn:C,maskInputFn:g,slimDOMOptions:S,dataURLOptions:_,inlineImages:b,recordCanvas:T,preserveWhiteSpace:Y,onSerialize:E,onIframeLoad:x,iframeLoadTimeout:A,onStylesheetLoad:P,stylesheetLoadTimeout:M,keepIframeSrcFn:z});U&&x(e,U)}},A),B.type===Vt.Element&&B.tagName==="link"&&typeof B.attributes.rel=="string"&&(B.attributes.rel==="stylesheet"||B.attributes.rel==="preload"&&typeof B.attributes.href=="string"&&ww(B.attributes.href)==="css")&&uj(e,()=>{if(P){const J=Wo(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:h,maskInputOptions:v,maskAttributeFn:y,maskTextFn:C,maskInputFn:g,slimDOMOptions:S,dataURLOptions:_,inlineImages:b,recordCanvas:T,preserveWhiteSpace:Y,onSerialize:E,onIframeLoad:x,iframeLoadTimeout:A,onStylesheetLoad:P,stylesheetLoadTimeout:M,keepIframeSrcFn:z});J&&P(e,J)}},M),B}function vj(e,t){const{mirror:n=new bw,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:l="rr-mask",unmaskTextClass:c=null,maskTextSelector:d=null,unmaskTextSelector:u=null,inlineStylesheet:f=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:v=!1,maskAttributeFn:y,maskTextFn:C,maskInputFn:g,slimDOM:S=!1,dataURLOptions:_,preserveWhiteSpace:b,onSerialize:T,onIframeLoad:E,iframeLoadTimeout:x,onStylesheetLoad:A,stylesheetLoadTimeout:P,keepIframeSrcFn:M=()=>!1}=t;return Wo(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:f,maskInputOptions:v===!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}:v===!1?{}:v,maskAttributeFn:y,maskTextFn:C,maskInputFn:g,slimDOMOptions:S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:S==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:S===!1?{}:S,dataURLOptions:_,inlineImages:p,recordCanvas:h,preserveWhiteSpace:b,onSerialize:T,onIframeLoad:E,iframeLoadTimeout:x,onStylesheetLoad:A,stylesheetLoadTimeout:P,keepIframeSrcFn:M,newlyAddedElement:!1})}function ha(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}function un(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const zo=`Please stop import mirror directly. Instead of that,\r
662
662
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
663
- or you can use record.mirror to access the mirror instance during recording.`;let Vg={map:{},getId(){return console.error(zo),-1},getNode(){return console.error(zo),null},removeNodeFromMap(){console.error(zo)},has(){return console.error(zo),!1},reset(){console.error(zo)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Vg=new Proxy(Vg,{get(e,t,n){return t==="map"&&console.error(zo),Reflect.get(e,t,n)}}));function Ns(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),c=this;l<=0||l>t?(r&&(Cj(r),r=null),o=s,e.apply(c,i)):!r&&n.trailing!==!1&&(r=fu(()=>{o=n.leading===!1?0:Date.now(),r=null,e.apply(c,i)},l))}}function xw(e,t,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(s){fu(()=>{n.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>xw(e,t,i||{},!0)}function km(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 wc=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(wc=()=>new Date().getTime());function Tw(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:ha([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||ha([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||ha([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:ha([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||ha([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||ha([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function Pw(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Iw(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Aw(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Tn(e,t,n,r,o){if(!e)return!1;const i=Aw(e);if(!i)return!1;const s=Uo(t,n);if(!o){const d=r&&i.matches(r);return s(i)&&!d}const l=ro(i,s);let c=-1;return l<0?!1:(r&&(c=ro(i,Uo(null,r))),l>-1&&c<0?!0:l<c)}function gj(e,t){return t.getId(e)!==-1}function dd(e,t){return t.getId(e)===Os}function Mw(e,t){if(us(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Mw(e.parentNode,t):!0:!0}function Mf(e){return!!e.changedTouches}function yj(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 Ow(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Nw(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Of(e){return!!ha([e,"optionalAccess",t=>t.shadowRoot])}class bj{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return rz(this.styleIDMap.get(t),()=>-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 Bw(e){let t=null;return ha([e,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function wj(e){let t=e,n;for(;n=Bw(t);)t=n;return t}function kj(e){const t=e.ownerDocument;if(!t)return!1;const n=wj(e);return t.contains(n)}function Dw(e){const t=e.ownerDocument;return t?t.contains(e)||kj(e):!1}const Fg={};function _m(e){const t=Fg[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const i=o.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(o)}catch{}return Fg[e]=r.bind(window)}function _j(...e){return _m("requestAnimationFrame")(...e)}function fu(...e){return _m("setTimeout")(...e)}function Cj(...e){return _m("clearTimeout")(...e)}var Ye=(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))(Ye||{}),He=(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))(He||{}),ln=(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))(ln||{}),jr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(jr||{}),jg;(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"})(jg||(jg={}));var Hg;(function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(Hg||(Hg={}));function Cm(e){try{return e.contentDocument}catch{}}function Sj(e){try{return e.contentWindow}catch{}}function Ej(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}function Ug(e){return"__ln"in e}class xj{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=Ej([n,"optionalAccess",o=>o.next])||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&Ug(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&&Ug(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 Wg=(e,t)=>`${e}@${t}`;class Tj{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,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 xj,o=c=>{let d=c,u=Os;for(;u===Os;)d=d&&d.nextSibling,u=d&&this.mirror.getId(d);return u},i=c=>{if(!c.parentNode||!Dw(c))return;const d=us(c.parentNode)?this.mirror.getId(Bw(c)):this.mirror.getId(c.parentNode),u=o(c);if(d===-1||u===-1)return r.addNode(c);const f=Wo(c,{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:p=>{Ow(p,this.mirror)&&!Tn(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(p),Nw(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),Of(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(p,h)=>{Tn(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(p,h),p.contentWindow&&this.canvasManager.addWindow(p.contentWindow),this.shadowDomManager.observeAttachShadow(p))},onStylesheetLoad:(p,h)=>{this.stylesheetManager.attachLinkElement(p,h)}});f&&(t.push({parentId:d,nextId:u,node:f}),n.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)qg(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||i(c);for(const c of this.addedSet)!Yg(this.droppedSet,c)&&!qg(this.removes,c,this.mirror)||Yg(this.movedSet,c)?i(c):this.droppedSet.add(c);let s=null;for(;r.length;){let c=null;if(s){const d=this.mirror.getId(s.value.parentNode),u=o(s.value);d!==-1&&u!==-1&&(c=s)}if(!c){let d=r.tail;for(;d;){const u=d;if(d=d.previous,u){const f=this.mirror.getId(u.value.parentNode);if(o(u.value)===-1)continue;if(f!==-1){c=u;break}else{const h=u.value;if(h.parentNode&&h.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const v=h.parentNode.host;if(this.mirror.getId(v)!==-1){c=u;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}s=c.previous,r.removeNode(c.value),i(c.value)}const l={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:d}=c;if(typeof d.style=="string"){const u=JSON.stringify(c.styleDiff),f=JSON.stringify(c._unchangedStyles);u.length<d.style.length&&(u+f).split("var(").length===d.style.split("var(").length&&(d.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:d}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(l))},this.processMutation=t=>{if(!dd(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!Tn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:xi(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,Aw(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,o=t.target.getAttribute(r);if(r==="value"){const s=bm(n),l=n.tagName;o=yc(n,l,s);const c=uu({maskInputOptions:this.maskInputOptions,tagName:l,type:s}),d=xi(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);o=Ms({isMasked:d,element:n,value:o,maskInputFn:this.maskInputFn})}if(Tn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===t.oldValue)return;let i=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(o))if(!Cm(n))r="rr_src";else return;if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(t.target,i)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!Ew(n.tagName,r)&&(i.attributes[r]=Sw(this.doc,Ei(n.tagName),Ei(r),o,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const s=this.unattachedDoc.createElement("span");t.oldValue&&s.setAttribute("style",t.oldValue);for(const l of Array.from(n.style)){const c=n.style.getPropertyValue(l),d=n.style.getPropertyPriority(l);c!==s.style.getPropertyValue(l)||d!==s.style.getPropertyPriority(l)?d===""?i.styleDiff[l]=c:i.styleDiff[l]=[c,d]:i._unchangedStyles[l]=[c,d]}for(const l of Array.from(s.style))n.style.getPropertyValue(l)===""&&(i.styleDiff[l]=!1)}break}case"childList":{if(Tn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),o=us(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Tn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||dd(n,this.mirror)||!gj(n,this.mirror)||(this.addedSet.has(n)?(Nf(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||Mw(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Wg(r,o)]?Nf(this.movedSet,n):this.removes.push({parentId:o,id:r,isShadow:us(t.target)&&ds(t.target)?!0:void 0})),this.mapRemoves.push(n))});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(dd(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[Wg(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)),Of(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 Nf(e,t){e.delete(t),t.childNodes.forEach(n=>Nf(e,n))}function qg(e,t,n){return e.length===0?!1:Pj(e,t,n)}function Pj(e,t,n){let r=t.parentNode;for(;r;){const o=n.getId(r);if(e.some(i=>i.id===o))return!0;r=r.parentNode}return!1}function Yg(e,t){return e.size===0?!1:Rw(e,t)}function Rw(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Rw(e,n):!1}let fs;function Ij(e){fs=e}function Aj(){fs=void 0}const et=e=>fs?(...n)=>{try{return e(...n)}catch(r){if(fs&&fs(r)===!0)return()=>{};throw r}}:e;function Zn(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}const qo=[];function Qs(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 Lw(e,t){const n=new Tj;qo.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=Zn([window,"optionalAccess",s=>s.Zone,"optionalAccess",s=>s.__symbol__,"optionalCall",s=>s("MutationObserver")]);o&&window[o]&&(r=window[o]);const i=new r(et(s=>{e.onMutation&&e.onMutation(s)===!1||n.processMutations.bind(n)(s)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function Mj({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 c=Ns(et(f=>{const p=Date.now()-l;e(s.map(h=>(h.timeOffset-=p,h)),f),s=[],l=null}),i),d=et(Ns(et(f=>{const p=Qs(f),{clientX:h,clientY:v}=Mf(f)?f.changedTouches[0]:f;l||(l=wc()),s.push({x:h,y:v,id:r.getId(p),timeOffset:wc()-l}),c(typeof DragEvent<"u"&&f instanceof DragEvent?He.Drag:f instanceof MouseEvent?He.MouseMove:He.TouchMove)}),o,{trailing:!1})),u=[un("mousemove",d,n),un("touchmove",d,n),un("drag",d,n)];return et(()=>{u.forEach(f=>f())})}function Oj({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,c=[];let d=null;const u=f=>p=>{const h=Qs(p);if(Tn(h,r,o,i,!0))return;let v=null,y=f;if("pointerType"in p){switch(p.pointerType){case"mouse":v=jr.Mouse;break;case"touch":v=jr.Touch;break;case"pen":v=jr.Pen;break}v===jr.Touch?ln[f]===ln.MouseDown?y="TouchStart":ln[f]===ln.MouseUp&&(y="TouchEnd"):jr.Pen}else Mf(p)&&(v=jr.Touch);v!==null?(d=v,(y.startsWith("Touch")&&v===jr.Touch||y.startsWith("Mouse")&&v===jr.Mouse)&&(v=null)):ln[f]===ln.Click&&(v=d,d=null);const C=Mf(p)?p.changedTouches[0]:p;if(!C)return;const g=n.getId(h),{clientX:S,clientY:_}=C;et(e)({type:ln[y],id:g,x:S,y:_,...v!==null&&{pointerType:v}})};return Object.keys(ln).filter(f=>Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&l[f]!==!1).forEach(f=>{let p=Ei(f);const h=u(f);if(window.PointerEvent)switch(ln[f]){case ln.MouseDown:case ln.MouseUp:p=p.replace("mouse","pointer");break;case ln.TouchStart:case ln.TouchEnd:return}c.push(un(p,h,t))}),et(()=>{c.forEach(f=>f())})}function $w({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){const l=et(Ns(et(c=>{const d=Qs(c);if(!d||Tn(d,r,o,i,!0))return;const u=n.getId(d);if(d===t&&t.defaultView){const f=Tw(t.defaultView);e({id:u,x:f.left,y:f.top})}else e({id:u,x:d.scrollLeft,y:d.scrollTop})}),s.scroll||100));return un("scroll",l,t)}function Nj({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const o=et(Ns(et(()=>{const i=Pw(),s=Iw();(n!==i||r!==s)&&(e({width:Number(s),height:Number(i)}),n=i,r=s)}),200));return un("resize",o,t)}const Bj=["INPUT","TEXTAREA","SELECT"],Gg=new WeakMap;function Dj({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:l,maskInputOptions:c,maskInputFn:d,sampling:u,userTriggeredOnInput:f,maskTextClass:p,unmaskTextClass:h,maskTextSelector:v,unmaskTextSelector:y}){function C(x){let A=Qs(x);const P=x.isTrusted,M=A&&If(A.tagName);if(M==="OPTION"&&(A=A.parentElement),!A||!M||Bj.indexOf(M)<0||Tn(A,r,o,i,!0))return;const z=A;if(z.classList.contains(s)||l&&z.matches(l))return;const V=bm(A);let Y=yc(z,M,V),D=!1;const H=uu({maskInputOptions:c,tagName:M,type:V}),B=xi(A,p,v,h,y,H);(V==="radio"||V==="checkbox")&&(D=A.checked),Y=Ms({isMasked:B,element:A,value:Y,maskInputFn:d}),g(A,f?{text:Y,isChecked:D,userTriggered:P}:{text:Y,isChecked:D});const q=A.name;V==="radio"&&q&&D&&t.querySelectorAll(`input[type="radio"][name="${q}"]`).forEach(J=>{if(J!==A){const U=Ms({isMasked:B,element:J,value:yc(J,M,V),maskInputFn:d});g(J,f?{text:U,isChecked:!D,userTriggered:!1}:{text:U,isChecked:!D})}})}function g(x,A){const P=Gg.get(x);if(!P||P.text!==A.text||P.isChecked!==A.isChecked){Gg.set(x,A);const M=n.getId(x);et(e)({...A,id:M})}}const _=(u.input==="last"?["change"]:["input","change"]).map(x=>un(x,et(C),t)),b=t.defaultView;if(!b)return()=>{_.forEach(x=>x())};const T=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),E=[[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 T&&T.set&&_.push(...E.map(x=>xw(x[0],x[1],{set(){et(C)({target:this,isTrusted:!1})}},!1,b))),et(()=>{_.forEach(x=>x())})}function kc(e){const t=[];function n(r,o){if(Pl("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Pl("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Pl("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Pl("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 va(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function Rj({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:et((u,f,p)=>{const[h,v]=p,{id:y,styleId:C}=va(f,t,n.styleMirror);return(y&&y!==-1||C&&C!==-1)&&e({id:y,styleId:C,adds:[{rule:h,index:v}]}),u.apply(f,p)})});const i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:et((u,f,p)=>{const[h]=p,{id:v,styleId:y}=va(f,t,n.styleMirror);return(v&&v!==-1||y&&y!==-1)&&e({id:v,styleId:y,removes:[{index:h}]}),u.apply(f,p)})});let s;r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:et((u,f,p)=>{const[h]=p,{id:v,styleId:y}=va(f,t,n.styleMirror);return(v&&v!==-1||y&&y!==-1)&&e({id:v,styleId:y,replace:h}),u.apply(f,p)})}));let l;r.CSSStyleSheet.prototype.replaceSync&&(l=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:et((u,f,p)=>{const[h]=p,{id:v,styleId:y}=va(f,t,n.styleMirror);return(v&&v!==-1||y&&y!==-1)&&e({id:v,styleId:y,replaceSync:h}),u.apply(f,p)})}));const c={};Il("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Il("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Il("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Il("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const d={};return Object.entries(c).forEach(([u,f])=>{d[u]={insertRule:f.prototype.insertRule,deleteRule:f.prototype.deleteRule},f.prototype.insertRule=new Proxy(d[u].insertRule,{apply:et((p,h,v)=>{const[y,C]=v,{id:g,styleId:S}=va(h.parentStyleSheet,t,n.styleMirror);return(g&&g!==-1||S&&S!==-1)&&e({id:g,styleId:S,adds:[{rule:y,index:[...kc(h),C||0]}]}),p.apply(h,v)})}),f.prototype.deleteRule=new Proxy(d[u].deleteRule,{apply:et((p,h,v)=>{const[y]=v,{id:C,styleId:g}=va(h.parentStyleSheet,t,n.styleMirror);return(C&&C!==-1||g&&g!==-1)&&e({id:C,styleId:g,removes:[{index:[...kc(h),y]}]}),p.apply(h,v)})})}),et(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,s&&(r.CSSStyleSheet.prototype.replace=s),l&&(r.CSSStyleSheet.prototype.replaceSync=l),Object.entries(c).forEach(([u,f])=>{f.prototype.insertRule=d[u].insertRule,f.prototype.deleteRule=d[u].deleteRule})})}function zw({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const o=n.nodeName==="#document"?Zn([n,"access",s=>s.defaultView,"optionalAccess",s=>s.Document]):Zn([n,"access",s=>s.ownerDocument,"optionalAccess",s=>s.defaultView,"optionalAccess",s=>s.ShadowRoot]),i=Zn([o,"optionalAccess",s=>s.prototype])?Object.getOwnPropertyDescriptor(Zn([o,"optionalAccess",s=>s.prototype]),"adoptedStyleSheets"):void 0;return r===null||r===-1||!o||!i?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return Zn([i,"access",s=>s.get,"optionalAccess",s=>s.call,"call",s=>s(this)])},set(s){const l=Zn([i,"access",c=>c.set,"optionalAccess",c=>c.call,"call",c=>c(this,s)]);if(r!==null&&r!==-1)try{t.adoptStyleSheets(s,r)}catch{}return l}}),et(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function Lj({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:et((l,c,d)=>{const[u,f,p]=d;if(n.has(u))return i.apply(c,[u,f,p]);const{id:h,styleId:v}=va(Zn([c,"access",y=>y.parentRule,"optionalAccess",y=>y.parentStyleSheet]),t,r.styleMirror);return(h&&h!==-1||v&&v!==-1)&&e({id:h,styleId:v,set:{property:u,value:f,priority:p},index:kc(c.parentRule)}),l.apply(c,d)})});const s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:et((l,c,d)=>{const[u]=d;if(n.has(u))return s.apply(c,[u]);const{id:f,styleId:p}=va(Zn([c,"access",h=>h.parentRule,"optionalAccess",h=>h.parentStyleSheet]),t,r.styleMirror);return(f&&f!==-1||p&&p!==-1)&&e({id:f,styleId:p,remove:{property:u},index:kc(c.parentRule)}),l.apply(c,d)})}),et(()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s})}function $j({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:s}){const l=et(d=>Ns(et(u=>{const f=Qs(u);if(!f||Tn(f,t,n,r,!0))return;const{currentTime:p,volume:h,muted:v,playbackRate:y}=f;e({type:d,id:o.getId(f),currentTime:p,volume:h,muted:v,playbackRate:y})}),i.media||500)),c=[un("play",l(0),s),un("pause",l(1),s),un("seeked",l(2),s),un("volumechange",l(3),s),un("ratechange",l(4),s)];return et(()=>{c.forEach(d=>d())})}function zj({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(c,d,u){const f=new i(c,d,u);return o.set(f,{family:c,buffer:typeof d!="string",descriptors:u,fontSource:typeof d=="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))}),f};const s=km(t.fonts,"add",function(l){return function(c){return fu(et(()=>{const d=o.get(c);d&&(e(d),o.delete(c))}),0),l.apply(this,[c])}});return r.push(()=>{n.FontFace=i}),r.push(s),et(()=>{r.forEach(l=>l())})}function Vj(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:s}=e;let l=!0;const c=et(()=>{const d=t.getSelection();if(!d||l&&Zn([d,"optionalAccess",p=>p.isCollapsed]))return;l=d.isCollapsed||!1;const u=[],f=d.rangeCount||0;for(let p=0;p<f;p++){const h=d.getRangeAt(p),{startContainer:v,startOffset:y,endContainer:C,endOffset:g}=h;Tn(v,r,o,i,!0)||Tn(C,r,o,i,!0)||u.push({start:n.getId(v),startOffset:y,end:n.getId(C),endOffset:g})}s({ranges:u})});return c(),un("selectionchange",c)}function Fj({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:km(n.customElements,"define",function(o){return function(i,s,l){try{t({define:{name:i}})}catch{}return o.apply(this,[i,s,l])}})}function jj(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Lw(e,e.doc));const o=Mj(e),i=Oj(e),s=$w(e),l=Nj(e,{win:n}),c=Dj(e),d=$j(e);let u=()=>{},f=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(u=Rj(e,{win:n}),f=zw(e,e.doc),p=Lj(e,{win:n}),e.collectFonts&&(h=zj(e)));const v=Vj(e),y=Fj(e),C=[];for(const g of e.plugins)C.push(g.observer(g.callback,n,g.options));return et(()=>{qo.forEach(g=>g.reset()),Zn([r,"optionalAccess",g=>g.disconnect,"call",g=>g()]),o(),i(),s(),l(),c(),d(),u(),f(),p(),h(),v(),y(),C.forEach(g=>g())})}function Pl(e){return typeof window[e]<"u"}function Il(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Bf{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}}function Xg(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}class Hj{constructor(){this.crossOriginIframeMirror=new Bf(wm),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Uj{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Bf(wm),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Bf(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){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),Xg([this,"access",o=>o.loadListener,"optionalCall",o=>o(t)]);const r=Cm(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}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){switch(n.type){case Ye.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:Ye.IncrementalSnapshot,data:{source:He.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ye.Meta:case Ye.Load:case Ye.DomContentLoaded:return!1;case Ye.Plugin:return n;case Ye.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Ye.IncrementalSnapshot:switch(n.data.source){case He.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(r.node,o)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case He.Drag:case He.TouchMove:case He.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case He.ViewportResize:return!1;case He.MediaInteraction:case He.MouseInteraction:case He.Scroll:case He.CanvasMutation:case He.Input:return this.replaceIds(n.data,t,["id"]),n;case He.StyleSheetRule:case He.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case He.Font:return n;case He.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case He.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),Xg([n,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(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!==Vt.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class Wj{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class qj{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(!ds(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=Lw({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push($w({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),fu(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(zw({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=Cm(t),r=Sj(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(km(t.prototype,"attachShadow",function(o){return function(i){const s=o.call(this,i);return this.shadowRoot&&Dw(this)&&r.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class Kg{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class Yj{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new bj,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,c)=>({rule:yw(l),index:c}))})),r.styleIds.push(s)}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class Gj{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(o=>o!==n)}add(t,n){this.active||(this.active=!0,_j(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let xt,_c;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=Fl([e,"access",t=>t.contentWindow,"optionalAccess",t=>t.Array,"access",t=>t.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Kn=YF();function Jr(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:l="rr-ignore",ignoreSelector:c=null,maskAllText:d=!1,maskTextClass:u="rr-mask",unmaskTextClass:f=null,maskTextSelector:p=null,unmaskTextSelector:h=null,inlineStylesheet:v=!0,maskAllInputs:y,maskInputOptions:C,slimDOMOptions:g,maskAttributeFn:S,maskInputFn:_,maskTextFn:b,maxCanvasSize:T=null,packFn:E,sampling:x={},dataURLOptions:A={},mousemoveWait:P,recordDOM:M=!0,recordCanvas:z=!1,recordCrossOriginIframes:V=!1,recordAfter:Y=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:D=!1,collectFonts:H=!1,inlineImages:B=!1,plugins:q,keepIframeSrcFn:J=()=>!1,ignoreCSSAttributes:U=new Set([]),errorHandler:j,onMutation:ie,getCanvasManager:Z}=e;Ij(j);const K=V?window.parent===window:!0;let I=!1;if(!K)try{window.parent.document&&(I=!1)}catch{I=!0}if(K&&!t)throw new Error("emit function is required");if(!K&&!I)return()=>{};P!==void 0&&x.mousemove===void 0&&(x.mousemove=P),Kn.reset();const L=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,radio:!0,checkbox:!0}:C!==void 0?C:{},F=g===!0||g==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:g==="all",headMetaDescKeywords:g==="all"}:g||{};yj();let N,ce=0;const ge=de=>{for(const G of q||[])G.eventProcessor&&(de=G.eventProcessor(de));return E&&!I&&(de=E(de)),de};xt=(de,G)=>{const te=de;if(te.timestamp=wc(),Fl([qo,"access",pe=>pe[0],"optionalAccess",pe=>pe.isFrozen,"call",pe=>pe()])&&te.type!==Ye.FullSnapshot&&!(te.type===Ye.IncrementalSnapshot&&te.data.source===He.Mutation)&&qo.forEach(pe=>pe.unfreeze()),K)Fl([t,"optionalCall",pe=>pe(ge(te),G)]);else if(I){const pe={type:"rrweb",event:ge(te),origin:window.location.origin,isCheckout:G};window.parent.postMessage(pe,"*")}if(te.type===Ye.FullSnapshot)N=te,ce=0;else if(te.type===Ye.IncrementalSnapshot){if(te.data.source===He.Mutation&&te.data.isAttachIframe)return;ce++;const pe=r&&ce>=r,xe=n&&N&&te.timestamp-N.timestamp>n;(pe||xe)&&Ne(!0)}};const Fe=de=>{xt({type:Ye.IncrementalSnapshot,data:{source:He.Mutation,...de}})},ee=de=>xt({type:Ye.IncrementalSnapshot,data:{source:He.Scroll,...de}}),se=de=>xt({type:Ye.IncrementalSnapshot,data:{source:He.CanvasMutation,...de}}),ae=de=>xt({type:Ye.IncrementalSnapshot,data:{source:He.AdoptedStyleSheet,...de}}),me=new Yj({mutationCb:Fe,adoptedStyleSheetCb:ae}),R=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new Hj:new Uj({mirror:Kn,mutationCb:Fe,stylesheetManager:me,recordCrossOriginIframes:V,wrappedEmit:xt});for(const de of q||[])de.getMirror&&de.getMirror({nodeMirror:Kn,crossOriginIframeMirror:R.crossOriginIframeMirror,crossOriginIframeStyleMirror:R.crossOriginIframeStyleMirror});const oe=new Gj,Pe=Kj(Z,{mirror:Kn,win:window,mutationCb:de=>xt({type:Ye.IncrementalSnapshot,data:{source:He.CanvasMutation,...de}}),recordCanvas:z,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:T,sampling:x.canvas,dataURLOptions:A,errorHandler:j}),ue=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Wj:new qj({mutationCb:Fe,scrollCb:ee,bypassOptions:{onMutation:ie,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:d,maskTextClass:u,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:v,maskInputOptions:L,dataURLOptions:A,maskAttributeFn:S,maskTextFn:b,maskInputFn:_,recordCanvas:z,inlineImages:B,sampling:x,slimDOMOptions:F,iframeManager:R,stylesheetManager:me,canvasManager:Pe,keepIframeSrcFn:J,processedNodeManager:oe},mirror:Kn}),Ne=(de=!1)=>{if(!M)return;xt({type:Ye.Meta,data:{href:window.location.href,width:Iw(),height:Pw()}},de),me.reset(),ue.init(),qo.forEach(te=>te.lock());const G=vj(document,{mirror:Kn,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:d,maskTextClass:u,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:v,maskAllInputs:L,maskAttributeFn:S,maskInputFn:_,maskTextFn:b,slimDOM:F,dataURLOptions:A,recordCanvas:z,inlineImages:B,onSerialize:te=>{Ow(te,Kn)&&R.addIframe(te),Nw(te,Kn)&&me.trackLinkElement(te),Of(te)&&ue.addShadowRoot(te.shadowRoot,document)},onIframeLoad:(te,pe)=>{R.attachIframe(te,pe),te.contentWindow&&Pe.addWindow(te.contentWindow),ue.observeAttachShadow(te)},onStylesheetLoad:(te,pe)=>{me.attachLinkElement(te,pe)},keepIframeSrcFn:J});if(!G)return console.warn("Failed to snapshot the document");xt({type:Ye.FullSnapshot,data:{node:G,initialOffset:Tw(window)}}),qo.forEach(te=>te.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&me.adoptStyleSheets(document.adoptedStyleSheets,Kn.getId(document))};_c=Ne;try{const de=[],G=pe=>et(jj)({onMutation:ie,mutationCb:Fe,mousemoveCb:(xe,Te)=>xt({type:Ye.IncrementalSnapshot,data:{source:Te,positions:xe}}),mouseInteractionCb:xe=>xt({type:Ye.IncrementalSnapshot,data:{source:He.MouseInteraction,...xe}}),scrollCb:ee,viewportResizeCb:xe=>xt({type:Ye.IncrementalSnapshot,data:{source:He.ViewportResize,...xe}}),inputCb:xe=>xt({type:Ye.IncrementalSnapshot,data:{source:He.Input,...xe}}),mediaInteractionCb:xe=>xt({type:Ye.IncrementalSnapshot,data:{source:He.MediaInteraction,...xe}}),styleSheetRuleCb:xe=>xt({type:Ye.IncrementalSnapshot,data:{source:He.StyleSheetRule,...xe}}),styleDeclarationCb:xe=>xt({type:Ye.IncrementalSnapshot,data:{source:He.StyleDeclaration,...xe}}),canvasMutationCb:se,fontCb:xe=>xt({type:Ye.IncrementalSnapshot,data:{source:He.Font,...xe}}),selectionCb:xe=>{xt({type:Ye.IncrementalSnapshot,data:{source:He.Selection,...xe}})},customElementCb:xe=>{xt({type:Ye.IncrementalSnapshot,data:{source:He.CustomElement,...xe}})},blockClass:o,ignoreClass:l,ignoreSelector:c,maskAllText:d,maskTextClass:u,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,maskInputOptions:L,inlineStylesheet:v,sampling:x,recordDOM:M,recordCanvas:z,inlineImages:B,userTriggeredOnInput:D,collectFonts:H,doc:pe,maskAttributeFn:S,maskInputFn:_,maskTextFn:b,keepIframeSrcFn:J,blockSelector:i,unblockSelector:s,slimDOMOptions:F,dataURLOptions:A,mirror:Kn,iframeManager:R,stylesheetManager:me,shadowDomManager:ue,processedNodeManager:oe,canvasManager:Pe,ignoreCSSAttributes:U,plugins:Fl([q,"optionalAccess",xe=>xe.filter,"call",xe=>xe(Te=>Te.observer),"optionalAccess",xe=>xe.map,"call",xe=>xe(Te=>({observer:Te.observer,options:Te.options,callback:Se=>xt({type:Ye.Plugin,data:{plugin:Te.name,payload:Se}})}))])||[]},{});R.addLoadListener(pe=>{try{de.push(G(pe.contentDocument))}catch(xe){console.warn(xe)}});const te=()=>{Ne(),de.push(G(document))};return document.readyState==="interactive"||document.readyState==="complete"?te():(de.push(un("DOMContentLoaded",()=>{xt({type:Ye.DomContentLoaded,data:{}}),Y==="DOMContentLoaded"&&te()})),de.push(un("load",()=>{xt({type:Ye.Load,data:{}}),Y==="load"&&te()},window))),()=>{de.forEach(pe=>pe()),oe.destroy(),_c=void 0,Aj()}}catch(de){console.warn(de)}}function Xj(e){if(!_c)throw new Error("please take full snapshot after start recording");_c(e)}Jr.mirror=Kn;Jr.takeFullSnapshot=Xj;function Kj(e,t){try{return e?e(t):new Kg}catch{return console.warn("Unable to initialize CanvasManager"),new Kg}}const Jj=3,Qj=5;function Sm(e){return e>9999999999?e:e*1e3}function fd(e){return e>9999999999?e/1e3:e}function Zs(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Ye.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Jn(t,10,1e3)}}),t.category==="console")))}const Zj="button,a";function Vw(e){return e.closest(Zj)||e}function Fw(e){const t=jw(e);return!t||!(t instanceof Element)?t:Vw(t)}function jw(e){return eH(e)?e.target:e}function eH(e){return typeof e=="object"&&!!e&&"target"in e}let ga;function tH(e){return ga||(ga=[],nH()),ga.push(e),()=>{const t=ga?ga.indexOf(e):-1;t>-1&&ga.splice(t,1)}}function nH(){wn(vt,"open",function(e){return function(...t){if(ga)try{ga.forEach(n=>n())}catch{}return e.apply(vt,t)}})}const rH=new Set([He.Mutation,He.StyleSheetRule,He.StyleDeclaration,He.AdoptedStyleSheet,He.CanvasMutation,He.Selection,He.MediaInteraction]);function aH(e,t,n){e.handleClick(t,n)}class oH{constructor(t,n,r=Zs){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=tH(()=>{this._lastMutation=Jg()});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(sH(n,this._ignoreSelector)||!lH(t))return;const r={timestamp:fd(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=fd(t)}registerScroll(t=Date.now()){this._lastScroll=fd(t)}registerClick(t){const n=Vw(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=Jg();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._scrollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!r&&!o,{clickCount:s,clickBreadcrumb:l}=t;if(i){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,d=c<this._timeout*1e3?"mutation":"timeout",u={type:"default",message:l.message,timestamp:l.timestamp,category:"ui.slowClickDetected",data:{...l.data,url:vt.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:d,clickCount:s||1}};this._addBreadcrumbEvent(n,u);return}if(s>1){const c={type:"default",message:l.message,timestamp:l.timestamp,category:"ui.multiClick",data:{...l.data,url:vt.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Si(()=>this._checkClicks(),1e3)}}const iH=["A","BUTTON","INPUT"];function sH(e,t){return!!(!iH.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 lH(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Jg(){return Date.now()/1e3}function cH(e,t){try{if(!uH(t))return;const{source:n}=t.data;if(rH.has(n)&&e.registerMutation(t.timestamp),n===He.Scroll&&e.registerScroll(t.timestamp),dH(t)){const{type:r,id:o}=t.data,i=Jr.mirror.getNode(o);i instanceof HTMLElement&&r===ln.Click&&e.registerClick(i)}}catch{}}function uH(e){return e.type===Jj}function dH(e){return e.data.source===He.MouseInteraction}function Ir(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Cc;(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"})(Cc||(Cc={}));const fH=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function pH(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(fH.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const mH=e=>t=>{if(!e.isEnabled())return;const n=hH(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&&aH(e.clickDetector,n,Fw(t.event)),Zs(e,n)};function Hw(e,t){const n=Jr.mirror.getId(e),r=n&&Jr.mirror.getNode(n),o=r&&Jr.mirror.getMeta(r),i=o&&gH(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===Cc.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:pH(i.attributes)}}:{}}}function hH(e){const{target:t,message:n}=vH(e);return Ir({category:`ui.${e.name}`,...Hw(t,n)})}function vH(e){const t=e.name==="click";let n,r=null;try{r=t?Fw(e.event):jw(e.event),n=aa(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function gH(e){return e.type===Cc.Element}function yH(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=bH(t);n&&Zs(e,n)}function bH(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i,target:s}=e;if(!s||wH(s)||!i)return null;const l=t||r||o,c=i.length===1;if(!l&&c)return null;const d=aa(s,{maxStringLength:200})||"<unknown>",u=Hw(s,d);return Ir({category:"ui.keyDown",message:d,data:{...u.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i}})}function wH(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const kH={resource:xH,paint:SH,navigation:EH};function Al(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function _H(e){return e.map(CH).filter(Boolean)}function CH(e){const t=kH[e.entryType];return t?t(e):null}function Ti(e){return((pn||vt.performance.timeOrigin)+e)/1e3}function SH(e){const{duration:t,entryType:n,name:r,startTime:o}=e,i=Ti(o);return{type:n,name:r,start:i,end:i+t,data:void 0}}function EH(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:l,domContentLoadedEventEnd:c,domInteractive:d,loadEventStart:u,loadEventEnd:f,redirectCount:p,startTime:h,transferSize:v,type:y}=e;return o===0?null:{type:`${t}.${y}`,start:Ti(h),end:Ti(i),name:n,data:{size:v,decodedBodySize:r,encodedBodySize:s,duration:o,domInteractive:d,domContentLoadedEventStart:l,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:f,domComplete:i,redirectCount:p}}}function xH(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:l,responseStatus:c,transferSize:d}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Ti(i),end:Ti(o),name:r,data:{size:d,statusCode:c,decodedBodySize:s,encodedBodySize:l}}}function TH(e){const t=e.entries[e.entries.length-1],n=t&&t.element?[t.element]:void 0;return pu(e,"largest-contentful-paint",n)}function PH(e){return e.sources!==void 0}function IH(e){const t=[],n=[];for(const r of e.entries)if(PH(r)){const o=[];for(const i of r.sources)if(i.node){n.push(i.node);const s=Jr.mirror.getId(i.node);s&&o.push(s)}t.push({value:r.value,nodeIds:o.length?o:void 0})}return pu(e,"cumulative-layout-shift",n,t)}function AH(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return pu(e,"first-input-delay",n)}function MH(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return pu(e,"interaction-to-next-paint",n)}function pu(e,t,n,r){const o=e.value,i=e.rating,s=Ti(o);return{type:"web-vital",name:t,start:s,end:s,data:{value:o,size:o,rating:i,nodeIds:n?n.map(l=>Jr.mirror.getId(l)):void 0,attributions:r}}}function OH(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(Ci(o,n))}),r.push(iw(Al(TH,e)),mm(Al(IH,e)),sw(Al(AH,e)),lw(Al(MH,e))),()=>{r.forEach(o=>o())}}const $e=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,NH='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==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},_=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},x=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=A(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}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(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)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),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=x(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,U)+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(U,C,0),R=U;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){_(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;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=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;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}}},L=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}}},O=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=C[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(a[t]^a[t+1]<<A^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=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(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-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[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=U(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=x,c.p=_,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)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=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&&j(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)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=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(O(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}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(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=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=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(const r of t)n+=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 H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[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 BH(){const e=new Blob([NH]);return URL.createObjectURL(e)}const Qg=["info","warn","error","log"],Ul="[Replay] ";function pd(e,t="info"){Ba({category:"console",data:{logger:"replay"},level:t,message:`${Ul}${e}`},{level:t})}function DH(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=r.captureExceptions,t=r.traceInternals}};return $e?(Qg.forEach(r=>{n[r]=(...o)=>{_e[r](Ul,...o),t&&pd(o.join(""),Ub(r))}}),n.exception=(r,...o)=>{o.length&&n.error&&n.error(...o),_e.error(Ul,r),e?iu(r):t&&pd(r,"error")},n.infoTick=(...r)=>{_e.info(Ul,...r),t&&setTimeout(()=>pd(r[0]),0)}):Qg.forEach(r=>{n[r]=()=>{}}),n}const je=DH();class Em extends Error{constructor(){super(`Event buffer exceeded maximum size of ${ym}.`)}}class Uw{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!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>ym)throw new Em;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?Sm(t):null}}class RH{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(){$e&&je.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((o,i)=>{const s=({data:l})=>{const c=l;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",s),!c.success){$e&&je.error("Error in compression worker: ",c.response),i(new Error("Error in compression worker"));return}o(c.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class LH{constructor(t){this._worker=new RH(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=Sm(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>ym?Promise.reject(new Em):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{$e&&je.exception(t,'Sending "clear" message to worker failed',t)})}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 $H{constructor(t){this._fallback=new Uw,this._compression=new LH(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}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}set waitForCheckout(t){this._used.waitForCheckout=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(t){$e&&je.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,o=[];for(const i of t)o.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(o),this._fallback.clear()}catch(i){$e&&je.exception(i,"Failed to add events when switching buffers.")}}}function zH({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=VH(t);if(n)return n}return $e&&je.info("Using simple buffer"),new Uw}function VH(e){try{const t=e||FH();if(!t)return;$e&&je.info(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new $H(n)}catch(t){$e&&je.exception(t,"Failed to create compression worker")}}function FH(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?BH():""}function xm(){try{return"sessionStorage"in vt&&!!vt.sessionStorage}catch{return!1}}function jH(e){HH(),e.session=void 0}function HH(){if(xm())try{vt.sessionStorage.removeItem(vm)}catch{}}function Ww(e){return e===void 0?!1:Math.random()<e}function qw(e){const t=Date.now(),n=e.id||Nn(),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 Tm(e){if(xm())try{vt.sessionStorage.setItem(vm,JSON.stringify(e))}catch{}}function UH(e,t){return Ww(e)?"session":t?"buffer":!1}function Zg({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=UH(e,t),i=qw({sampled:o,previousSessionId:r});return n&&Tm(i),i}function WH(){if(!xm())return null;try{const e=vt.sessionStorage.getItem(vm);if(!e)return null;const t=JSON.parse(e);return $e&&je.infoTick("Loading existing session"),qw(t)}catch{return null}}function Df(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function Yw(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Df(e.started,t,r)||Df(e.lastActivity,n,r)}function Gw(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Yw(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function md({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const o=r.stickySession&&WH();return o?Gw(o,{sessionIdleExpire:e,maxReplayDuration:t})?($e&&je.infoTick("Session in sessionStorage is expired, creating new one..."),Zg(r,{previousSessionId:o.id})):o:($e&&je.infoTick("Creating new session"),Zg(r,{previousSessionId:n}))}function qH(e){return e.type===Ye.Custom}function Pm(e,t,n){return Kw(e,t)?(Xw(e,t,n),!0):!1}function YH(e,t,n){return Kw(e,t)?Xw(e,t,n):Promise.resolve(null)}async function Xw(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const o=e.recordingMode==="buffer";try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const i=e.getOptions(),s=GH(t,i.beforeAddRecordingEvent);return s?await r.addEvent(s):void 0}catch(i){const s=i&&i instanceof Em,l=s?"addEventSizeExceeded":"addEvent";if(s&&o)return r.clear(),r.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:l});const c=Ze();c&&c.recordDroppedEvent("internal_sdk_error","replay")}}function Kw(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Sm(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?($e&&je.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function GH(e,t){try{if(typeof t=="function"&&qH(e))return t(e)}catch(n){return $e&&je.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function Im(e){return!e.type}function Rf(e){return e.type==="transaction"}function XH(e){return e.type==="replay_event"}function e0(e){return e.type==="feedback"}function KH(e){return(t,n)=>{if(!e.isEnabled()||!Im(t)&&!Rf(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(Rf(t)){JH(e,t);return}QH(e,t)}}}function JH(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 QH(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)||Si(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(o){e.handleException(o)}})}function ZH(e){return t=>{!e.isEnabled()||!Im(t)||eU(e,t)}}function eU(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=Ir({category:"replay.hydrate-error",data:{url:rb()}});Zs(e,r)}}function tU(e){const t=Ze();t&&t.on("beforeAddBreadcrumb",n=>nU(e,n))}function nU(e,t){if(!e.isEnabled()||!Jw(t))return;const n=rU(t);n&&Zs(e,n)}function rU(e){return!Jw(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?aU(e):Ir(e)}function aU(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return Ir(e);let n=!1;const r=t.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>Tl?(n=!0,`${o.slice(0,Tl)}…`):o;if(typeof o=="object")try{const i=Jn(o,7);return JSON.stringify(i).length>Tl?(n=!0,`${JSON.stringify(i,null,2).slice(0,Tl)}…`):i}catch{}return o});return Ir({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Jw(e){return!!e.category}function oU(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function Qw(){const e=ct().getPropagationContext().dsc;e&&delete e.replay_id;const t=$t();if(t){const n=xo(t);delete n.replay_id}}function iU(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:Ye.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function sU(e,t){return e.recordingMode!=="buffer"||t.message===gm||!t.exception||t.type?!1:Ww(e.getOptions().errorSampleRate)}function lU(e){return Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:XH(t)?(delete t.breadcrumbs,t):!Im(t)&&!Rf(t)&&!e0(t)?t:e.checkAndHandleExpiredSession()?e0(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),iU(e,t),t):oU(t,n)&&!e.getOptions()._experiments.captureExceptions?($e&&je.log("Ignoring error from rrweb internals",t),null):((sU(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(Qw(),t),{id:"Replay"})}function mu(e,t){return t.map(({type:n,start:r,end:o,name:i,data:s})=>{const l=e.throttledAddEvent({type:Ye.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 cU(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 uU(e){return t=>{if(!e.isEnabled())return;const n=cU(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(mu(e,[n]),!1)))}}function dU(e,t){return $e&&e.getOptions()._experiments.traceInternals?!1:l$(t,Ze())}function Zw(e,t){e.isEnabled()&&t!==null&&(dU(e,t.name)||e.addUpdate(()=>(mu(e,[t]),!0)))}function hu(e){if(!e)return;const t=new TextEncoder;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=r4(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function e4(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function t4(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[r4(e)];if(!e)return[void 0]}catch(t){return $e&&je.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return $e&&je.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Sc(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 n4(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:s,request:l,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:jt({method:i,statusCode:s,request:l,response:c})}}function Bs(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Sa(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}=fU(n);return r.body=o,i&&i.length>0&&(r._meta={warnings:i}),r}function Lf(e,t){return Object.entries(e).reduce((n,[r,o])=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=o),n},{})}function r4(e){return new URLSearchParams(e).toString()}function fU(e){if(!e||typeof e!="string")return{body:e};const t=e.length>Bg,n=pU(e);if(t){const r=e.slice(0,Bg);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 pU(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Ec(e,t){const n=mU(e);return Ca(n,t)}function mU(e,t=vt.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(vt.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 hU(e,t,n){try{const r=await gU(e,t,n),o=n4("resource.fetch",r);Zw(n.replay,o)}catch(r){$e&&je.exception(r,"Failed to capture fetch breadcrumb")}}function vU(e,t){const{input:n,response:r}=t,o=n?a4(n):void 0,i=hu(o),s=r?e4(r.headers.get("content-length")):void 0;i!==void 0&&(e.data.request_body_size=i),s!==void 0&&(e.data.response_body_size=s)}async function gU(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r}=t,{url:s,method:l,status_code:c=0,request_body_size:d,response_body_size:u}=e.data,f=Ec(s,n.networkDetailAllowUrls)&&!Ec(s,n.networkDetailDenyUrls),p=f?yU(n,t.input,d):Bs(d),h=await bU(f,n,t.response,u);return{startTimestamp:o,endTimestamp:i,url:s,method:l,statusCode:c,request:p,response:h}}function yU({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?_U(n,t):{};if(!e)return Sa(o,r,void 0);const i=a4(n),[s,l]=t4(i),c=Sa(o,r,s);return l?Sc(c,l):c}async function bU(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&o!==void 0)return Bs(o);const i=r?o4(r.headers,n):{};if(!r||!t&&o!==void 0)return Sa(i,o,void 0);const[s,l]=await kU(r),c=wU(s,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:i});return l?Sc(c,l):c}function wU(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{const i=e&&e.length&&n===void 0?hu(e):n;return r?t?Sa(o,i,e):Sa(o,i,void 0):Bs(i)}catch(i){return $e&&je.exception(i,"Failed to serialize response body"),Sa(o,n,void 0)}}async function kU(e){const t=CU(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await SU(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?($e&&je.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):($e&&je.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function a4(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function o4(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function _U(e,t){return e.length===1&&typeof e[0]!="string"?t0(e[0],t):e.length===2?t0(e[1],t):{}}function t0(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?o4(n,t):Array.isArray(n)?{}:Lf(n,t):{}}function CU(e){try{return e.clone()}catch(t){$e&&je.exception(t,"Failed to clone response body")}}function SU(e){return new Promise((t,n)=>{const r=Si(()=>n(new Error("Timeout while trying to read response body")),500);EU(e).then(o=>t(o),o=>n(o)).finally(()=>clearTimeout(r))})}async function EU(e){return await e.text()}async function xU(e,t,n){try{const r=PU(e,t,n),o=n4("resource.xhr",r);Zw(n.replay,o)}catch(r){$e&&je.exception(r,"Failed to capture xhr breadcrumb")}}function TU(e,t){const{xhr:n,input:r}=t;if(!n)return;const o=hu(r),i=n.getResponseHeader("content-length")?e4(n.getResponseHeader("content-length")):OU(n.response,n.responseType);o!==void 0&&(e.data.request_body_size=o),i!==void 0&&(e.data.response_body_size=i)}function PU(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r,input:s,xhr:l}=t,{url:c,method:d,status_code:u=0,request_body_size:f,response_body_size:p}=e.data;if(!c)return null;if(!l||!Ec(c,n.networkDetailAllowUrls)||Ec(c,n.networkDetailDenyUrls)){const E=Bs(f),x=Bs(p);return{startTimestamp:o,endTimestamp:i,url:c,method:d,statusCode:u,request:E,response:x}}const h=l[no],v=h?Lf(h.request_headers,n.networkRequestHeaders):{},y=Lf(IU(l),n.networkResponseHeaders),[C,g]=n.networkCaptureBodies?t4(s):[void 0],[S,_]=n.networkCaptureBodies?AU(l):[void 0],b=Sa(v,f,C),T=Sa(y,p,S);return{startTimestamp:o,endTimestamp:i,url:c,method:d,statusCode:u,request:g?Sc(b,g):b,response:_?Sc(T,_):T}}function IU(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
663
+ or you can use record.mirror to access the mirror instance during recording.`;let Vg={map:{},getId(){return console.error(zo),-1},getNode(){return console.error(zo),null},removeNodeFromMap(){console.error(zo)},has(){return console.error(zo),!1},reset(){console.error(zo)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Vg=new Proxy(Vg,{get(e,t,n){return t==="map"&&console.error(zo),Reflect.get(e,t,n)}}));function Ns(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),c=this;l<=0||l>t?(r&&(Cj(r),r=null),o=s,e.apply(c,i)):!r&&n.trailing!==!1&&(r=fu(()=>{o=n.leading===!1?0:Date.now(),r=null,e.apply(c,i)},l))}}function xw(e,t,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(s){fu(()=>{n.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>xw(e,t,i||{},!0)}function km(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 wc=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(wc=()=>new Date().getTime());function Tw(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:ha([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||ha([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||ha([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:ha([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||ha([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||ha([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function Pw(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Iw(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Aw(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Tn(e,t,n,r,o){if(!e)return!1;const i=Aw(e);if(!i)return!1;const s=Uo(t,n);if(!o){const d=r&&i.matches(r);return s(i)&&!d}const l=ro(i,s);let c=-1;return l<0?!1:(r&&(c=ro(i,Uo(null,r))),l>-1&&c<0?!0:l<c)}function gj(e,t){return t.getId(e)!==-1}function dd(e,t){return t.getId(e)===Os}function Mw(e,t){if(us(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Mw(e.parentNode,t):!0:!0}function Mf(e){return!!e.changedTouches}function yj(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 Ow(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Nw(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Of(e){return!!ha([e,"optionalAccess",t=>t.shadowRoot])}class bj{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return rz(this.styleIDMap.get(t),()=>-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 Bw(e){let t=null;return ha([e,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function wj(e){let t=e,n;for(;n=Bw(t);)t=n;return t}function kj(e){const t=e.ownerDocument;if(!t)return!1;const n=wj(e);return t.contains(n)}function Dw(e){const t=e.ownerDocument;return t?t.contains(e)||kj(e):!1}const Fg={};function _m(e){const t=Fg[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const i=o.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(o)}catch{}return Fg[e]=r.bind(window)}function _j(...e){return _m("requestAnimationFrame")(...e)}function fu(...e){return _m("setTimeout")(...e)}function Cj(...e){return _m("clearTimeout")(...e)}var Ye=(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))(Ye||{}),He=(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))(He||{}),ln=(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))(ln||{}),jr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(jr||{}),jg;(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"})(jg||(jg={}));var Hg;(function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(Hg||(Hg={}));function Cm(e){try{return e.contentDocument}catch{}}function Sj(e){try{return e.contentWindow}catch{}}function Ej(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}function Ug(e){return"__ln"in e}class xj{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=Ej([n,"optionalAccess",o=>o.next])||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&Ug(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&&Ug(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 Wg=(e,t)=>`${e}@${t}`;class Tj{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,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 xj,o=c=>{let d=c,u=Os;for(;u===Os;)d=d&&d.nextSibling,u=d&&this.mirror.getId(d);return u},i=c=>{if(!c.parentNode||!Dw(c))return;const d=us(c.parentNode)?this.mirror.getId(Bw(c)):this.mirror.getId(c.parentNode),u=o(c);if(d===-1||u===-1)return r.addNode(c);const f=Wo(c,{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:p=>{Ow(p,this.mirror)&&!Tn(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(p),Nw(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),Of(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(p,h)=>{Tn(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(p,h),p.contentWindow&&this.canvasManager.addWindow(p.contentWindow),this.shadowDomManager.observeAttachShadow(p))},onStylesheetLoad:(p,h)=>{this.stylesheetManager.attachLinkElement(p,h)}});f&&(t.push({parentId:d,nextId:u,node:f}),n.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)qg(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||i(c);for(const c of this.addedSet)!Yg(this.droppedSet,c)&&!qg(this.removes,c,this.mirror)||Yg(this.movedSet,c)?i(c):this.droppedSet.add(c);let s=null;for(;r.length;){let c=null;if(s){const d=this.mirror.getId(s.value.parentNode),u=o(s.value);d!==-1&&u!==-1&&(c=s)}if(!c){let d=r.tail;for(;d;){const u=d;if(d=d.previous,u){const f=this.mirror.getId(u.value.parentNode);if(o(u.value)===-1)continue;if(f!==-1){c=u;break}else{const h=u.value;if(h.parentNode&&h.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const v=h.parentNode.host;if(this.mirror.getId(v)!==-1){c=u;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}s=c.previous,r.removeNode(c.value),i(c.value)}const l={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:d}=c;if(typeof d.style=="string"){const u=JSON.stringify(c.styleDiff),f=JSON.stringify(c._unchangedStyles);u.length<d.style.length&&(u+f).split("var(").length===d.style.split("var(").length&&(d.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:d}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(l))},this.processMutation=t=>{if(!dd(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!Tn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:xi(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,Aw(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,o=t.target.getAttribute(r);if(r==="value"){const s=bm(n),l=n.tagName;o=yc(n,l,s);const c=uu({maskInputOptions:this.maskInputOptions,tagName:l,type:s}),d=xi(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);o=Ms({isMasked:d,element:n,value:o,maskInputFn:this.maskInputFn})}if(Tn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===t.oldValue)return;let i=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(o))if(!Cm(n))r="rr_src";else return;if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(t.target,i)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!Ew(n.tagName,r)&&(i.attributes[r]=Sw(this.doc,Ei(n.tagName),Ei(r),o,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const s=this.unattachedDoc.createElement("span");t.oldValue&&s.setAttribute("style",t.oldValue);for(const l of Array.from(n.style)){const c=n.style.getPropertyValue(l),d=n.style.getPropertyPriority(l);c!==s.style.getPropertyValue(l)||d!==s.style.getPropertyPriority(l)?d===""?i.styleDiff[l]=c:i.styleDiff[l]=[c,d]:i._unchangedStyles[l]=[c,d]}for(const l of Array.from(s.style))n.style.getPropertyValue(l)===""&&(i.styleDiff[l]=!1)}break}case"childList":{if(Tn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),o=us(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Tn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||dd(n,this.mirror)||!gj(n,this.mirror)||(this.addedSet.has(n)?(Nf(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||Mw(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Wg(r,o)]?Nf(this.movedSet,n):this.removes.push({parentId:o,id:r,isShadow:us(t.target)&&ds(t.target)?!0:void 0})),this.mapRemoves.push(n))});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(dd(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[Wg(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)),Of(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 Nf(e,t){e.delete(t),t.childNodes.forEach(n=>Nf(e,n))}function qg(e,t,n){return e.length===0?!1:Pj(e,t,n)}function Pj(e,t,n){let r=t.parentNode;for(;r;){const o=n.getId(r);if(e.some(i=>i.id===o))return!0;r=r.parentNode}return!1}function Yg(e,t){return e.size===0?!1:Rw(e,t)}function Rw(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Rw(e,n):!1}let fs;function Ij(e){fs=e}function Aj(){fs=void 0}const et=e=>fs?(...n)=>{try{return e(...n)}catch(r){if(fs&&fs(r)===!0)return()=>{};throw r}}:e;function er(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}const qo=[];function Qs(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 Lw(e,t){const n=new Tj;qo.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=er([window,"optionalAccess",s=>s.Zone,"optionalAccess",s=>s.__symbol__,"optionalCall",s=>s("MutationObserver")]);o&&window[o]&&(r=window[o]);const i=new r(et(s=>{e.onMutation&&e.onMutation(s)===!1||n.processMutations.bind(n)(s)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function Mj({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 c=Ns(et(f=>{const p=Date.now()-l;e(s.map(h=>(h.timeOffset-=p,h)),f),s=[],l=null}),i),d=et(Ns(et(f=>{const p=Qs(f),{clientX:h,clientY:v}=Mf(f)?f.changedTouches[0]:f;l||(l=wc()),s.push({x:h,y:v,id:r.getId(p),timeOffset:wc()-l}),c(typeof DragEvent<"u"&&f instanceof DragEvent?He.Drag:f instanceof MouseEvent?He.MouseMove:He.TouchMove)}),o,{trailing:!1})),u=[un("mousemove",d,n),un("touchmove",d,n),un("drag",d,n)];return et(()=>{u.forEach(f=>f())})}function Oj({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,c=[];let d=null;const u=f=>p=>{const h=Qs(p);if(Tn(h,r,o,i,!0))return;let v=null,y=f;if("pointerType"in p){switch(p.pointerType){case"mouse":v=jr.Mouse;break;case"touch":v=jr.Touch;break;case"pen":v=jr.Pen;break}v===jr.Touch?ln[f]===ln.MouseDown?y="TouchStart":ln[f]===ln.MouseUp&&(y="TouchEnd"):jr.Pen}else Mf(p)&&(v=jr.Touch);v!==null?(d=v,(y.startsWith("Touch")&&v===jr.Touch||y.startsWith("Mouse")&&v===jr.Mouse)&&(v=null)):ln[f]===ln.Click&&(v=d,d=null);const C=Mf(p)?p.changedTouches[0]:p;if(!C)return;const g=n.getId(h),{clientX:S,clientY:_}=C;et(e)({type:ln[y],id:g,x:S,y:_,...v!==null&&{pointerType:v}})};return Object.keys(ln).filter(f=>Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&l[f]!==!1).forEach(f=>{let p=Ei(f);const h=u(f);if(window.PointerEvent)switch(ln[f]){case ln.MouseDown:case ln.MouseUp:p=p.replace("mouse","pointer");break;case ln.TouchStart:case ln.TouchEnd:return}c.push(un(p,h,t))}),et(()=>{c.forEach(f=>f())})}function $w({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){const l=et(Ns(et(c=>{const d=Qs(c);if(!d||Tn(d,r,o,i,!0))return;const u=n.getId(d);if(d===t&&t.defaultView){const f=Tw(t.defaultView);e({id:u,x:f.left,y:f.top})}else e({id:u,x:d.scrollLeft,y:d.scrollTop})}),s.scroll||100));return un("scroll",l,t)}function Nj({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const o=et(Ns(et(()=>{const i=Pw(),s=Iw();(n!==i||r!==s)&&(e({width:Number(s),height:Number(i)}),n=i,r=s)}),200));return un("resize",o,t)}const Bj=["INPUT","TEXTAREA","SELECT"],Gg=new WeakMap;function Dj({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:l,maskInputOptions:c,maskInputFn:d,sampling:u,userTriggeredOnInput:f,maskTextClass:p,unmaskTextClass:h,maskTextSelector:v,unmaskTextSelector:y}){function C(x){let A=Qs(x);const P=x.isTrusted,M=A&&If(A.tagName);if(M==="OPTION"&&(A=A.parentElement),!A||!M||Bj.indexOf(M)<0||Tn(A,r,o,i,!0))return;const z=A;if(z.classList.contains(s)||l&&z.matches(l))return;const V=bm(A);let Y=yc(z,M,V),D=!1;const H=uu({maskInputOptions:c,tagName:M,type:V}),B=xi(A,p,v,h,y,H);(V==="radio"||V==="checkbox")&&(D=A.checked),Y=Ms({isMasked:B,element:A,value:Y,maskInputFn:d}),g(A,f?{text:Y,isChecked:D,userTriggered:P}:{text:Y,isChecked:D});const q=A.name;V==="radio"&&q&&D&&t.querySelectorAll(`input[type="radio"][name="${q}"]`).forEach(J=>{if(J!==A){const U=Ms({isMasked:B,element:J,value:yc(J,M,V),maskInputFn:d});g(J,f?{text:U,isChecked:!D,userTriggered:!1}:{text:U,isChecked:!D})}})}function g(x,A){const P=Gg.get(x);if(!P||P.text!==A.text||P.isChecked!==A.isChecked){Gg.set(x,A);const M=n.getId(x);et(e)({...A,id:M})}}const _=(u.input==="last"?["change"]:["input","change"]).map(x=>un(x,et(C),t)),b=t.defaultView;if(!b)return()=>{_.forEach(x=>x())};const T=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),E=[[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 T&&T.set&&_.push(...E.map(x=>xw(x[0],x[1],{set(){et(C)({target:this,isTrusted:!1})}},!1,b))),et(()=>{_.forEach(x=>x())})}function kc(e){const t=[];function n(r,o){if(Pl("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Pl("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Pl("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Pl("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 va(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function Rj({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:et((u,f,p)=>{const[h,v]=p,{id:y,styleId:C}=va(f,t,n.styleMirror);return(y&&y!==-1||C&&C!==-1)&&e({id:y,styleId:C,adds:[{rule:h,index:v}]}),u.apply(f,p)})});const i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:et((u,f,p)=>{const[h]=p,{id:v,styleId:y}=va(f,t,n.styleMirror);return(v&&v!==-1||y&&y!==-1)&&e({id:v,styleId:y,removes:[{index:h}]}),u.apply(f,p)})});let s;r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:et((u,f,p)=>{const[h]=p,{id:v,styleId:y}=va(f,t,n.styleMirror);return(v&&v!==-1||y&&y!==-1)&&e({id:v,styleId:y,replace:h}),u.apply(f,p)})}));let l;r.CSSStyleSheet.prototype.replaceSync&&(l=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:et((u,f,p)=>{const[h]=p,{id:v,styleId:y}=va(f,t,n.styleMirror);return(v&&v!==-1||y&&y!==-1)&&e({id:v,styleId:y,replaceSync:h}),u.apply(f,p)})}));const c={};Il("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Il("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Il("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Il("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const d={};return Object.entries(c).forEach(([u,f])=>{d[u]={insertRule:f.prototype.insertRule,deleteRule:f.prototype.deleteRule},f.prototype.insertRule=new Proxy(d[u].insertRule,{apply:et((p,h,v)=>{const[y,C]=v,{id:g,styleId:S}=va(h.parentStyleSheet,t,n.styleMirror);return(g&&g!==-1||S&&S!==-1)&&e({id:g,styleId:S,adds:[{rule:y,index:[...kc(h),C||0]}]}),p.apply(h,v)})}),f.prototype.deleteRule=new Proxy(d[u].deleteRule,{apply:et((p,h,v)=>{const[y]=v,{id:C,styleId:g}=va(h.parentStyleSheet,t,n.styleMirror);return(C&&C!==-1||g&&g!==-1)&&e({id:C,styleId:g,removes:[{index:[...kc(h),y]}]}),p.apply(h,v)})})}),et(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,s&&(r.CSSStyleSheet.prototype.replace=s),l&&(r.CSSStyleSheet.prototype.replaceSync=l),Object.entries(c).forEach(([u,f])=>{f.prototype.insertRule=d[u].insertRule,f.prototype.deleteRule=d[u].deleteRule})})}function zw({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const o=n.nodeName==="#document"?er([n,"access",s=>s.defaultView,"optionalAccess",s=>s.Document]):er([n,"access",s=>s.ownerDocument,"optionalAccess",s=>s.defaultView,"optionalAccess",s=>s.ShadowRoot]),i=er([o,"optionalAccess",s=>s.prototype])?Object.getOwnPropertyDescriptor(er([o,"optionalAccess",s=>s.prototype]),"adoptedStyleSheets"):void 0;return r===null||r===-1||!o||!i?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return er([i,"access",s=>s.get,"optionalAccess",s=>s.call,"call",s=>s(this)])},set(s){const l=er([i,"access",c=>c.set,"optionalAccess",c=>c.call,"call",c=>c(this,s)]);if(r!==null&&r!==-1)try{t.adoptStyleSheets(s,r)}catch{}return l}}),et(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function Lj({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:et((l,c,d)=>{const[u,f,p]=d;if(n.has(u))return i.apply(c,[u,f,p]);const{id:h,styleId:v}=va(er([c,"access",y=>y.parentRule,"optionalAccess",y=>y.parentStyleSheet]),t,r.styleMirror);return(h&&h!==-1||v&&v!==-1)&&e({id:h,styleId:v,set:{property:u,value:f,priority:p},index:kc(c.parentRule)}),l.apply(c,d)})});const s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:et((l,c,d)=>{const[u]=d;if(n.has(u))return s.apply(c,[u]);const{id:f,styleId:p}=va(er([c,"access",h=>h.parentRule,"optionalAccess",h=>h.parentStyleSheet]),t,r.styleMirror);return(f&&f!==-1||p&&p!==-1)&&e({id:f,styleId:p,remove:{property:u},index:kc(c.parentRule)}),l.apply(c,d)})}),et(()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s})}function $j({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:s}){const l=et(d=>Ns(et(u=>{const f=Qs(u);if(!f||Tn(f,t,n,r,!0))return;const{currentTime:p,volume:h,muted:v,playbackRate:y}=f;e({type:d,id:o.getId(f),currentTime:p,volume:h,muted:v,playbackRate:y})}),i.media||500)),c=[un("play",l(0),s),un("pause",l(1),s),un("seeked",l(2),s),un("volumechange",l(3),s),un("ratechange",l(4),s)];return et(()=>{c.forEach(d=>d())})}function zj({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(c,d,u){const f=new i(c,d,u);return o.set(f,{family:c,buffer:typeof d!="string",descriptors:u,fontSource:typeof d=="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))}),f};const s=km(t.fonts,"add",function(l){return function(c){return fu(et(()=>{const d=o.get(c);d&&(e(d),o.delete(c))}),0),l.apply(this,[c])}});return r.push(()=>{n.FontFace=i}),r.push(s),et(()=>{r.forEach(l=>l())})}function Vj(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:s}=e;let l=!0;const c=et(()=>{const d=t.getSelection();if(!d||l&&er([d,"optionalAccess",p=>p.isCollapsed]))return;l=d.isCollapsed||!1;const u=[],f=d.rangeCount||0;for(let p=0;p<f;p++){const h=d.getRangeAt(p),{startContainer:v,startOffset:y,endContainer:C,endOffset:g}=h;Tn(v,r,o,i,!0)||Tn(C,r,o,i,!0)||u.push({start:n.getId(v),startOffset:y,end:n.getId(C),endOffset:g})}s({ranges:u})});return c(),un("selectionchange",c)}function Fj({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:km(n.customElements,"define",function(o){return function(i,s,l){try{t({define:{name:i}})}catch{}return o.apply(this,[i,s,l])}})}function jj(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Lw(e,e.doc));const o=Mj(e),i=Oj(e),s=$w(e),l=Nj(e,{win:n}),c=Dj(e),d=$j(e);let u=()=>{},f=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(u=Rj(e,{win:n}),f=zw(e,e.doc),p=Lj(e,{win:n}),e.collectFonts&&(h=zj(e)));const v=Vj(e),y=Fj(e),C=[];for(const g of e.plugins)C.push(g.observer(g.callback,n,g.options));return et(()=>{qo.forEach(g=>g.reset()),er([r,"optionalAccess",g=>g.disconnect,"call",g=>g()]),o(),i(),s(),l(),c(),d(),u(),f(),p(),h(),v(),y(),C.forEach(g=>g())})}function Pl(e){return typeof window[e]<"u"}function Il(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Bf{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}}function Xg(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}class Hj{constructor(){this.crossOriginIframeMirror=new Bf(wm),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Uj{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Bf(wm),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Bf(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){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),Xg([this,"access",o=>o.loadListener,"optionalCall",o=>o(t)]);const r=Cm(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}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){switch(n.type){case Ye.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:Ye.IncrementalSnapshot,data:{source:He.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ye.Meta:case Ye.Load:case Ye.DomContentLoaded:return!1;case Ye.Plugin:return n;case Ye.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Ye.IncrementalSnapshot:switch(n.data.source){case He.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(r.node,o)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case He.Drag:case He.TouchMove:case He.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case He.ViewportResize:return!1;case He.MediaInteraction:case He.MouseInteraction:case He.Scroll:case He.CanvasMutation:case He.Input:return this.replaceIds(n.data,t,["id"]),n;case He.StyleSheetRule:case He.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case He.Font:return n;case He.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case He.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),Xg([n,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(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!==Vt.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class Wj{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class qj{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(!ds(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=Lw({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push($w({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),fu(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(zw({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=Cm(t),r=Sj(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(km(t.prototype,"attachShadow",function(o){return function(i){const s=o.call(this,i);return this.shadowRoot&&Dw(this)&&r.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class Kg{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class Yj{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new bj,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,c)=>({rule:yw(l),index:c}))})),r.styleIds.push(s)}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class Gj{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(o=>o!==n)}add(t,n){this.active||(this.active=!0,_j(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let xt,_c;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=Fl([e,"access",t=>t.contentWindow,"optionalAccess",t=>t.Array,"access",t=>t.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Jn=YF();function Jr(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:l="rr-ignore",ignoreSelector:c=null,maskAllText:d=!1,maskTextClass:u="rr-mask",unmaskTextClass:f=null,maskTextSelector:p=null,unmaskTextSelector:h=null,inlineStylesheet:v=!0,maskAllInputs:y,maskInputOptions:C,slimDOMOptions:g,maskAttributeFn:S,maskInputFn:_,maskTextFn:b,maxCanvasSize:T=null,packFn:E,sampling:x={},dataURLOptions:A={},mousemoveWait:P,recordDOM:M=!0,recordCanvas:z=!1,recordCrossOriginIframes:V=!1,recordAfter:Y=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:D=!1,collectFonts:H=!1,inlineImages:B=!1,plugins:q,keepIframeSrcFn:J=()=>!1,ignoreCSSAttributes:U=new Set([]),errorHandler:j,onMutation:ie,getCanvasManager:Z}=e;Ij(j);const K=V?window.parent===window:!0;let I=!1;if(!K)try{window.parent.document&&(I=!1)}catch{I=!0}if(K&&!t)throw new Error("emit function is required");if(!K&&!I)return()=>{};P!==void 0&&x.mousemove===void 0&&(x.mousemove=P),Jn.reset();const L=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,radio:!0,checkbox:!0}:C!==void 0?C:{},F=g===!0||g==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:g==="all",headMetaDescKeywords:g==="all"}:g||{};yj();let N,ce=0;const ge=de=>{for(const G of q||[])G.eventProcessor&&(de=G.eventProcessor(de));return E&&!I&&(de=E(de)),de};xt=(de,G)=>{const te=de;if(te.timestamp=wc(),Fl([qo,"access",pe=>pe[0],"optionalAccess",pe=>pe.isFrozen,"call",pe=>pe()])&&te.type!==Ye.FullSnapshot&&!(te.type===Ye.IncrementalSnapshot&&te.data.source===He.Mutation)&&qo.forEach(pe=>pe.unfreeze()),K)Fl([t,"optionalCall",pe=>pe(ge(te),G)]);else if(I){const pe={type:"rrweb",event:ge(te),origin:window.location.origin,isCheckout:G};window.parent.postMessage(pe,"*")}if(te.type===Ye.FullSnapshot)N=te,ce=0;else if(te.type===Ye.IncrementalSnapshot){if(te.data.source===He.Mutation&&te.data.isAttachIframe)return;ce++;const pe=r&&ce>=r,xe=n&&N&&te.timestamp-N.timestamp>n;(pe||xe)&&Ne(!0)}};const Fe=de=>{xt({type:Ye.IncrementalSnapshot,data:{source:He.Mutation,...de}})},ee=de=>xt({type:Ye.IncrementalSnapshot,data:{source:He.Scroll,...de}}),se=de=>xt({type:Ye.IncrementalSnapshot,data:{source:He.CanvasMutation,...de}}),ae=de=>xt({type:Ye.IncrementalSnapshot,data:{source:He.AdoptedStyleSheet,...de}}),me=new Yj({mutationCb:Fe,adoptedStyleSheetCb:ae}),R=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new Hj:new Uj({mirror:Jn,mutationCb:Fe,stylesheetManager:me,recordCrossOriginIframes:V,wrappedEmit:xt});for(const de of q||[])de.getMirror&&de.getMirror({nodeMirror:Jn,crossOriginIframeMirror:R.crossOriginIframeMirror,crossOriginIframeStyleMirror:R.crossOriginIframeStyleMirror});const oe=new Gj,Pe=Kj(Z,{mirror:Jn,win:window,mutationCb:de=>xt({type:Ye.IncrementalSnapshot,data:{source:He.CanvasMutation,...de}}),recordCanvas:z,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:T,sampling:x.canvas,dataURLOptions:A,errorHandler:j}),ue=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Wj:new qj({mutationCb:Fe,scrollCb:ee,bypassOptions:{onMutation:ie,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:d,maskTextClass:u,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:v,maskInputOptions:L,dataURLOptions:A,maskAttributeFn:S,maskTextFn:b,maskInputFn:_,recordCanvas:z,inlineImages:B,sampling:x,slimDOMOptions:F,iframeManager:R,stylesheetManager:me,canvasManager:Pe,keepIframeSrcFn:J,processedNodeManager:oe},mirror:Jn}),Ne=(de=!1)=>{if(!M)return;xt({type:Ye.Meta,data:{href:window.location.href,width:Iw(),height:Pw()}},de),me.reset(),ue.init(),qo.forEach(te=>te.lock());const G=vj(document,{mirror:Jn,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:d,maskTextClass:u,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:v,maskAllInputs:L,maskAttributeFn:S,maskInputFn:_,maskTextFn:b,slimDOM:F,dataURLOptions:A,recordCanvas:z,inlineImages:B,onSerialize:te=>{Ow(te,Jn)&&R.addIframe(te),Nw(te,Jn)&&me.trackLinkElement(te),Of(te)&&ue.addShadowRoot(te.shadowRoot,document)},onIframeLoad:(te,pe)=>{R.attachIframe(te,pe),te.contentWindow&&Pe.addWindow(te.contentWindow),ue.observeAttachShadow(te)},onStylesheetLoad:(te,pe)=>{me.attachLinkElement(te,pe)},keepIframeSrcFn:J});if(!G)return console.warn("Failed to snapshot the document");xt({type:Ye.FullSnapshot,data:{node:G,initialOffset:Tw(window)}}),qo.forEach(te=>te.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&me.adoptStyleSheets(document.adoptedStyleSheets,Jn.getId(document))};_c=Ne;try{const de=[],G=pe=>et(jj)({onMutation:ie,mutationCb:Fe,mousemoveCb:(xe,Te)=>xt({type:Ye.IncrementalSnapshot,data:{source:Te,positions:xe}}),mouseInteractionCb:xe=>xt({type:Ye.IncrementalSnapshot,data:{source:He.MouseInteraction,...xe}}),scrollCb:ee,viewportResizeCb:xe=>xt({type:Ye.IncrementalSnapshot,data:{source:He.ViewportResize,...xe}}),inputCb:xe=>xt({type:Ye.IncrementalSnapshot,data:{source:He.Input,...xe}}),mediaInteractionCb:xe=>xt({type:Ye.IncrementalSnapshot,data:{source:He.MediaInteraction,...xe}}),styleSheetRuleCb:xe=>xt({type:Ye.IncrementalSnapshot,data:{source:He.StyleSheetRule,...xe}}),styleDeclarationCb:xe=>xt({type:Ye.IncrementalSnapshot,data:{source:He.StyleDeclaration,...xe}}),canvasMutationCb:se,fontCb:xe=>xt({type:Ye.IncrementalSnapshot,data:{source:He.Font,...xe}}),selectionCb:xe=>{xt({type:Ye.IncrementalSnapshot,data:{source:He.Selection,...xe}})},customElementCb:xe=>{xt({type:Ye.IncrementalSnapshot,data:{source:He.CustomElement,...xe}})},blockClass:o,ignoreClass:l,ignoreSelector:c,maskAllText:d,maskTextClass:u,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,maskInputOptions:L,inlineStylesheet:v,sampling:x,recordDOM:M,recordCanvas:z,inlineImages:B,userTriggeredOnInput:D,collectFonts:H,doc:pe,maskAttributeFn:S,maskInputFn:_,maskTextFn:b,keepIframeSrcFn:J,blockSelector:i,unblockSelector:s,slimDOMOptions:F,dataURLOptions:A,mirror:Jn,iframeManager:R,stylesheetManager:me,shadowDomManager:ue,processedNodeManager:oe,canvasManager:Pe,ignoreCSSAttributes:U,plugins:Fl([q,"optionalAccess",xe=>xe.filter,"call",xe=>xe(Te=>Te.observer),"optionalAccess",xe=>xe.map,"call",xe=>xe(Te=>({observer:Te.observer,options:Te.options,callback:Se=>xt({type:Ye.Plugin,data:{plugin:Te.name,payload:Se}})}))])||[]},{});R.addLoadListener(pe=>{try{de.push(G(pe.contentDocument))}catch(xe){console.warn(xe)}});const te=()=>{Ne(),de.push(G(document))};return document.readyState==="interactive"||document.readyState==="complete"?te():(de.push(un("DOMContentLoaded",()=>{xt({type:Ye.DomContentLoaded,data:{}}),Y==="DOMContentLoaded"&&te()})),de.push(un("load",()=>{xt({type:Ye.Load,data:{}}),Y==="load"&&te()},window))),()=>{de.forEach(pe=>pe()),oe.destroy(),_c=void 0,Aj()}}catch(de){console.warn(de)}}function Xj(e){if(!_c)throw new Error("please take full snapshot after start recording");_c(e)}Jr.mirror=Jn;Jr.takeFullSnapshot=Xj;function Kj(e,t){try{return e?e(t):new Kg}catch{return console.warn("Unable to initialize CanvasManager"),new Kg}}const Jj=3,Qj=5;function Sm(e){return e>9999999999?e:e*1e3}function fd(e){return e>9999999999?e/1e3:e}function Zs(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Ye.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Qn(t,10,1e3)}}),t.category==="console")))}const Zj="button,a";function Vw(e){return e.closest(Zj)||e}function Fw(e){const t=jw(e);return!t||!(t instanceof Element)?t:Vw(t)}function jw(e){return eH(e)?e.target:e}function eH(e){return typeof e=="object"&&!!e&&"target"in e}let ga;function tH(e){return ga||(ga=[],nH()),ga.push(e),()=>{const t=ga?ga.indexOf(e):-1;t>-1&&ga.splice(t,1)}}function nH(){wn(vt,"open",function(e){return function(...t){if(ga)try{ga.forEach(n=>n())}catch{}return e.apply(vt,t)}})}const rH=new Set([He.Mutation,He.StyleSheetRule,He.StyleDeclaration,He.AdoptedStyleSheet,He.CanvasMutation,He.Selection,He.MediaInteraction]);function aH(e,t,n){e.handleClick(t,n)}class oH{constructor(t,n,r=Zs){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=tH(()=>{this._lastMutation=Jg()});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(sH(n,this._ignoreSelector)||!lH(t))return;const r={timestamp:fd(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=fd(t)}registerScroll(t=Date.now()){this._lastScroll=fd(t)}registerClick(t){const n=Vw(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=Jg();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._scrollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!r&&!o,{clickCount:s,clickBreadcrumb:l}=t;if(i){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,d=c<this._timeout*1e3?"mutation":"timeout",u={type:"default",message:l.message,timestamp:l.timestamp,category:"ui.slowClickDetected",data:{...l.data,url:vt.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:d,clickCount:s||1}};this._addBreadcrumbEvent(n,u);return}if(s>1){const c={type:"default",message:l.message,timestamp:l.timestamp,category:"ui.multiClick",data:{...l.data,url:vt.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Si(()=>this._checkClicks(),1e3)}}const iH=["A","BUTTON","INPUT"];function sH(e,t){return!!(!iH.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 lH(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Jg(){return Date.now()/1e3}function cH(e,t){try{if(!uH(t))return;const{source:n}=t.data;if(rH.has(n)&&e.registerMutation(t.timestamp),n===He.Scroll&&e.registerScroll(t.timestamp),dH(t)){const{type:r,id:o}=t.data,i=Jr.mirror.getNode(o);i instanceof HTMLElement&&r===ln.Click&&e.registerClick(i)}}catch{}}function uH(e){return e.type===Jj}function dH(e){return e.data.source===He.MouseInteraction}function Ir(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Cc;(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"})(Cc||(Cc={}));const fH=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function pH(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(fH.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const mH=e=>t=>{if(!e.isEnabled())return;const n=hH(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&&aH(e.clickDetector,n,Fw(t.event)),Zs(e,n)};function Hw(e,t){const n=Jr.mirror.getId(e),r=n&&Jr.mirror.getNode(n),o=r&&Jr.mirror.getMeta(r),i=o&&gH(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===Cc.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:pH(i.attributes)}}:{}}}function hH(e){const{target:t,message:n}=vH(e);return Ir({category:`ui.${e.name}`,...Hw(t,n)})}function vH(e){const t=e.name==="click";let n,r=null;try{r=t?Fw(e.event):jw(e.event),n=aa(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function gH(e){return e.type===Cc.Element}function yH(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=bH(t);n&&Zs(e,n)}function bH(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i,target:s}=e;if(!s||wH(s)||!i)return null;const l=t||r||o,c=i.length===1;if(!l&&c)return null;const d=aa(s,{maxStringLength:200})||"<unknown>",u=Hw(s,d);return Ir({category:"ui.keyDown",message:d,data:{...u.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i}})}function wH(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const kH={resource:xH,paint:SH,navigation:EH};function Al(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function _H(e){return e.map(CH).filter(Boolean)}function CH(e){const t=kH[e.entryType];return t?t(e):null}function Ti(e){return((pn||vt.performance.timeOrigin)+e)/1e3}function SH(e){const{duration:t,entryType:n,name:r,startTime:o}=e,i=Ti(o);return{type:n,name:r,start:i,end:i+t,data:void 0}}function EH(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:l,domContentLoadedEventEnd:c,domInteractive:d,loadEventStart:u,loadEventEnd:f,redirectCount:p,startTime:h,transferSize:v,type:y}=e;return o===0?null:{type:`${t}.${y}`,start:Ti(h),end:Ti(i),name:n,data:{size:v,decodedBodySize:r,encodedBodySize:s,duration:o,domInteractive:d,domContentLoadedEventStart:l,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:f,domComplete:i,redirectCount:p}}}function xH(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:l,responseStatus:c,transferSize:d}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Ti(i),end:Ti(o),name:r,data:{size:d,statusCode:c,decodedBodySize:s,encodedBodySize:l}}}function TH(e){const t=e.entries[e.entries.length-1],n=t&&t.element?[t.element]:void 0;return pu(e,"largest-contentful-paint",n)}function PH(e){return e.sources!==void 0}function IH(e){const t=[],n=[];for(const r of e.entries)if(PH(r)){const o=[];for(const i of r.sources)if(i.node){n.push(i.node);const s=Jr.mirror.getId(i.node);s&&o.push(s)}t.push({value:r.value,nodeIds:o.length?o:void 0})}return pu(e,"cumulative-layout-shift",n,t)}function AH(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return pu(e,"first-input-delay",n)}function MH(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return pu(e,"interaction-to-next-paint",n)}function pu(e,t,n,r){const o=e.value,i=e.rating,s=Ti(o);return{type:"web-vital",name:t,start:s,end:s,data:{value:o,size:o,rating:i,nodeIds:n?n.map(l=>Jr.mirror.getId(l)):void 0,attributions:r}}}function OH(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(Ci(o,n))}),r.push(iw(Al(TH,e)),mm(Al(IH,e)),sw(Al(AH,e)),lw(Al(MH,e))),()=>{r.forEach(o=>o())}}const $e=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,NH='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==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},_=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},x=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=A(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}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(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)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),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=x(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,U)+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(U,C,0),R=U;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){_(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;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=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;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}}},L=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}}},O=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=C[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(a[t]^a[t+1]<<A^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=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(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-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[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=U(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=x,c.p=_,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)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=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&&j(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)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=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(O(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}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(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=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=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(const r of t)n+=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 H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[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 BH(){const e=new Blob([NH]);return URL.createObjectURL(e)}const Qg=["info","warn","error","log"],Ul="[Replay] ";function pd(e,t="info"){Ba({category:"console",data:{logger:"replay"},level:t,message:`${Ul}${e}`},{level:t})}function DH(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=r.captureExceptions,t=r.traceInternals}};return $e?(Qg.forEach(r=>{n[r]=(...o)=>{_e[r](Ul,...o),t&&pd(o.join(""),Ub(r))}}),n.exception=(r,...o)=>{o.length&&n.error&&n.error(...o),_e.error(Ul,r),e?iu(r):t&&pd(r,"error")},n.infoTick=(...r)=>{_e.info(Ul,...r),t&&setTimeout(()=>pd(r[0]),0)}):Qg.forEach(r=>{n[r]=()=>{}}),n}const je=DH();class Em extends Error{constructor(){super(`Event buffer exceeded maximum size of ${ym}.`)}}class Uw{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!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>ym)throw new Em;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?Sm(t):null}}class RH{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(){$e&&je.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((o,i)=>{const s=({data:l})=>{const c=l;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",s),!c.success){$e&&je.error("Error in compression worker: ",c.response),i(new Error("Error in compression worker"));return}o(c.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class LH{constructor(t){this._worker=new RH(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=Sm(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>ym?Promise.reject(new Em):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{$e&&je.exception(t,'Sending "clear" message to worker failed',t)})}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 $H{constructor(t){this._fallback=new Uw,this._compression=new LH(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}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}set waitForCheckout(t){this._used.waitForCheckout=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(t){$e&&je.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,o=[];for(const i of t)o.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(o),this._fallback.clear()}catch(i){$e&&je.exception(i,"Failed to add events when switching buffers.")}}}function zH({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=VH(t);if(n)return n}return $e&&je.info("Using simple buffer"),new Uw}function VH(e){try{const t=e||FH();if(!t)return;$e&&je.info(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new $H(n)}catch(t){$e&&je.exception(t,"Failed to create compression worker")}}function FH(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?BH():""}function xm(){try{return"sessionStorage"in vt&&!!vt.sessionStorage}catch{return!1}}function jH(e){HH(),e.session=void 0}function HH(){if(xm())try{vt.sessionStorage.removeItem(vm)}catch{}}function Ww(e){return e===void 0?!1:Math.random()<e}function qw(e){const t=Date.now(),n=e.id||Nn(),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 Tm(e){if(xm())try{vt.sessionStorage.setItem(vm,JSON.stringify(e))}catch{}}function UH(e,t){return Ww(e)?"session":t?"buffer":!1}function Zg({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=UH(e,t),i=qw({sampled:o,previousSessionId:r});return n&&Tm(i),i}function WH(){if(!xm())return null;try{const e=vt.sessionStorage.getItem(vm);if(!e)return null;const t=JSON.parse(e);return $e&&je.infoTick("Loading existing session"),qw(t)}catch{return null}}function Df(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function Yw(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Df(e.started,t,r)||Df(e.lastActivity,n,r)}function Gw(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Yw(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function md({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const o=r.stickySession&&WH();return o?Gw(o,{sessionIdleExpire:e,maxReplayDuration:t})?($e&&je.infoTick("Session in sessionStorage is expired, creating new one..."),Zg(r,{previousSessionId:o.id})):o:($e&&je.infoTick("Creating new session"),Zg(r,{previousSessionId:n}))}function qH(e){return e.type===Ye.Custom}function Pm(e,t,n){return Kw(e,t)?(Xw(e,t,n),!0):!1}function YH(e,t,n){return Kw(e,t)?Xw(e,t,n):Promise.resolve(null)}async function Xw(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const o=e.recordingMode==="buffer";try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const i=e.getOptions(),s=GH(t,i.beforeAddRecordingEvent);return s?await r.addEvent(s):void 0}catch(i){const s=i&&i instanceof Em,l=s?"addEventSizeExceeded":"addEvent";if(s&&o)return r.clear(),r.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:l});const c=Ze();c&&c.recordDroppedEvent("internal_sdk_error","replay")}}function Kw(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Sm(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?($e&&je.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function GH(e,t){try{if(typeof t=="function"&&qH(e))return t(e)}catch(n){return $e&&je.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function Im(e){return!e.type}function Rf(e){return e.type==="transaction"}function XH(e){return e.type==="replay_event"}function e0(e){return e.type==="feedback"}function KH(e){return(t,n)=>{if(!e.isEnabled()||!Im(t)&&!Rf(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(Rf(t)){JH(e,t);return}QH(e,t)}}}function JH(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 QH(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)||Si(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(o){e.handleException(o)}})}function ZH(e){return t=>{!e.isEnabled()||!Im(t)||eU(e,t)}}function eU(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=Ir({category:"replay.hydrate-error",data:{url:rb()}});Zs(e,r)}}function tU(e){const t=Ze();t&&t.on("beforeAddBreadcrumb",n=>nU(e,n))}function nU(e,t){if(!e.isEnabled()||!Jw(t))return;const n=rU(t);n&&Zs(e,n)}function rU(e){return!Jw(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?aU(e):Ir(e)}function aU(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return Ir(e);let n=!1;const r=t.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>Tl?(n=!0,`${o.slice(0,Tl)}…`):o;if(typeof o=="object")try{const i=Qn(o,7);return JSON.stringify(i).length>Tl?(n=!0,`${JSON.stringify(i,null,2).slice(0,Tl)}…`):i}catch{}return o});return Ir({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Jw(e){return!!e.category}function oU(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function Qw(){const e=ct().getPropagationContext().dsc;e&&delete e.replay_id;const t=$t();if(t){const n=xo(t);delete n.replay_id}}function iU(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:Ye.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function sU(e,t){return e.recordingMode!=="buffer"||t.message===gm||!t.exception||t.type?!1:Ww(e.getOptions().errorSampleRate)}function lU(e){return Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:XH(t)?(delete t.breadcrumbs,t):!Im(t)&&!Rf(t)&&!e0(t)?t:e.checkAndHandleExpiredSession()?e0(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),iU(e,t),t):oU(t,n)&&!e.getOptions()._experiments.captureExceptions?($e&&je.log("Ignoring error from rrweb internals",t),null):((sU(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(Qw(),t),{id:"Replay"})}function mu(e,t){return t.map(({type:n,start:r,end:o,name:i,data:s})=>{const l=e.throttledAddEvent({type:Ye.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 cU(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 uU(e){return t=>{if(!e.isEnabled())return;const n=cU(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(mu(e,[n]),!1)))}}function dU(e,t){return $e&&e.getOptions()._experiments.traceInternals?!1:l$(t,Ze())}function Zw(e,t){e.isEnabled()&&t!==null&&(dU(e,t.name)||e.addUpdate(()=>(mu(e,[t]),!0)))}function hu(e){if(!e)return;const t=new TextEncoder;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=r4(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function e4(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function t4(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[r4(e)];if(!e)return[void 0]}catch(t){return $e&&je.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return $e&&je.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Sc(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 n4(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:s,request:l,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:jt({method:i,statusCode:s,request:l,response:c})}}function Bs(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Sa(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}=fU(n);return r.body=o,i&&i.length>0&&(r._meta={warnings:i}),r}function Lf(e,t){return Object.entries(e).reduce((n,[r,o])=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=o),n},{})}function r4(e){return new URLSearchParams(e).toString()}function fU(e){if(!e||typeof e!="string")return{body:e};const t=e.length>Bg,n=pU(e);if(t){const r=e.slice(0,Bg);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 pU(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Ec(e,t){const n=mU(e);return Ca(n,t)}function mU(e,t=vt.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(vt.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 hU(e,t,n){try{const r=await gU(e,t,n),o=n4("resource.fetch",r);Zw(n.replay,o)}catch(r){$e&&je.exception(r,"Failed to capture fetch breadcrumb")}}function vU(e,t){const{input:n,response:r}=t,o=n?a4(n):void 0,i=hu(o),s=r?e4(r.headers.get("content-length")):void 0;i!==void 0&&(e.data.request_body_size=i),s!==void 0&&(e.data.response_body_size=s)}async function gU(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r}=t,{url:s,method:l,status_code:c=0,request_body_size:d,response_body_size:u}=e.data,f=Ec(s,n.networkDetailAllowUrls)&&!Ec(s,n.networkDetailDenyUrls),p=f?yU(n,t.input,d):Bs(d),h=await bU(f,n,t.response,u);return{startTimestamp:o,endTimestamp:i,url:s,method:l,statusCode:c,request:p,response:h}}function yU({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?_U(n,t):{};if(!e)return Sa(o,r,void 0);const i=a4(n),[s,l]=t4(i),c=Sa(o,r,s);return l?Sc(c,l):c}async function bU(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&o!==void 0)return Bs(o);const i=r?o4(r.headers,n):{};if(!r||!t&&o!==void 0)return Sa(i,o,void 0);const[s,l]=await kU(r),c=wU(s,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:i});return l?Sc(c,l):c}function wU(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{const i=e&&e.length&&n===void 0?hu(e):n;return r?t?Sa(o,i,e):Sa(o,i,void 0):Bs(i)}catch(i){return $e&&je.exception(i,"Failed to serialize response body"),Sa(o,n,void 0)}}async function kU(e){const t=CU(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await SU(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?($e&&je.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):($e&&je.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function a4(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function o4(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function _U(e,t){return e.length===1&&typeof e[0]!="string"?t0(e[0],t):e.length===2?t0(e[1],t):{}}function t0(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?o4(n,t):Array.isArray(n)?{}:Lf(n,t):{}}function CU(e){try{return e.clone()}catch(t){$e&&je.exception(t,"Failed to clone response body")}}function SU(e){return new Promise((t,n)=>{const r=Si(()=>n(new Error("Timeout while trying to read response body")),500);EU(e).then(o=>t(o),o=>n(o)).finally(()=>clearTimeout(r))})}async function EU(e){return await e.text()}async function xU(e,t,n){try{const r=PU(e,t,n),o=n4("resource.xhr",r);Zw(n.replay,o)}catch(r){$e&&je.exception(r,"Failed to capture xhr breadcrumb")}}function TU(e,t){const{xhr:n,input:r}=t;if(!n)return;const o=hu(r),i=n.getResponseHeader("content-length")?e4(n.getResponseHeader("content-length")):OU(n.response,n.responseType);o!==void 0&&(e.data.request_body_size=o),i!==void 0&&(e.data.response_body_size=i)}function PU(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r,input:s,xhr:l}=t,{url:c,method:d,status_code:u=0,request_body_size:f,response_body_size:p}=e.data;if(!c)return null;if(!l||!Ec(c,n.networkDetailAllowUrls)||Ec(c,n.networkDetailDenyUrls)){const E=Bs(f),x=Bs(p);return{startTimestamp:o,endTimestamp:i,url:c,method:d,statusCode:u,request:E,response:x}}const h=l[no],v=h?Lf(h.request_headers,n.networkRequestHeaders):{},y=Lf(IU(l),n.networkResponseHeaders),[C,g]=n.networkCaptureBodies?t4(s):[void 0],[S,_]=n.networkCaptureBodies?AU(l):[void 0],b=Sa(v,f,C),T=Sa(y,p,S);return{startTimestamp:o,endTimestamp:i,url:c,method:d,statusCode:u,request:g?Sc(b,g):b,response:_?Sc(T,_):T}}function IU(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
664
664
  `).reduce((n,r)=>{const[o,i]=r.split(": ");return i&&(n[o.toLowerCase()]=i),n},{}):{}}function AU(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return MU(e.response,e.responseType)}catch(n){t.push(n)}return $e&&je.warn("Failed to get xhr response body",...t),[void 0]}function MU(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(n){return $e&&je.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return $e&&je.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function OU(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return hu(n)}catch{return}}function NU(e){const t=Ze();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s}=e.getOptions(),l={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(c,d)=>BU(l,c,d))}catch{}}function BU(e,t,n){if(t.data)try{DU(t)&&LU(n)&&(TU(t,n),xU(t,n,e)),RU(t)&&$U(n)&&(vU(t,n),hU(t,n,e))}catch(r){$e&&je.exception(r,"Error when enriching network breadcrumb")}}function DU(e){return e.category==="xhr"}function RU(e){return e.category==="fetch"}function LU(e){return e&&e.xhr}function $U(e){return e&&e.response}function zU(e){const t=Ze();fw(mH(e)),cu(uU(e)),tU(e),NU(e);const n=lU(e);FL(n),t&&(t.on("beforeSendEvent",ZH(e)),t.on("afterSendEvent",KH(e)),t.on("createDsc",r=>{const o=e.getSessionId();o&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=o)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",(r,o)=>{const i=e.getSessionId();o&&o.includeReplay&&e.isEnabled()&&i&&r.contexts&&r.contexts.feedback&&(r.contexts.feedback.replay_id=i)}))}async function VU(e){try{return Promise.all(mu(e,[FU(vt.performance.memory)]))}catch{return[]}}function FU(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 jU(e,t,n){let r,o,i;const s=n.maxWait?Math.max(n.maxWait,t):0;function l(){return c(),r=e(),r}function c(){o!==void 0&&clearTimeout(o),i!==void 0&&clearTimeout(i),o=i=void 0}function d(){return o!==void 0||i!==void 0?l():r}function u(){return o&&clearTimeout(o),o=Si(l,t),s&&i===void 0&&(i=Si(l,s)),r}return u.cancel=c,u.flush=d,u}const Ya=Qe.navigator;function HU(){return/iPhone|iPad|iPod/i.test(Ya&&Ya.userAgent||"")||/Macintosh/i.test(Ya&&Ya.userAgent||"")&&Ya&&Ya.maxTouchPoints&&Ya.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function UU(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){$e&&je.warn("Received replay event after session expired.");return}const o=r||!t;t=!0,e.clickDetector&&cH(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&o&&e.setInitialState(),!Pm(e,n,o))return!0;if(!o)return!1;const i=e.session;if(qU(e,o),e.recordingMode==="buffer"&&i&&e.eventBuffer){const s=e.eventBuffer.getEarliestTimestamp();s&&($e&&je.info(`Updating session start time to earliest event in buffer to ${new Date(s)}`),i.started=s,e.getOptions().stickySession&&Tm(i))}return i&&i.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function WU(e){const t=e.getOptions();return{type:Ye.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),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 qU(e,t){!t||!e.session||e.session.segmentId!==0||Pm(e,WU(e),!1)}function YU(e,t,n,r){return To(Pb(e,lm(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function GU({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
665
- `;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 XU({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("preprocessEvent",r,i);const s=await Nb(e.getOptions(),r,i,t,e,qn());if(!s)return null;s.platform=s.platform||"javascript";const l=e.getSdkMetadata(),{name:c,version:d}=l&&l.sdk||{};return s.sdk={...s.sdk,name:c||"sentry.javascript.unknown",version:d||"0.0.0"},s}async function KU({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:i}){const s=GU({recordingData:e,headers:{segment_id:n}}),{urls:l,errorIds:c,traceIds:d,initialTimestamp:u}=r,f=Ze(),p=ct(),h=f&&f.getTransport(),v=f&&f.getDsn();if(!f||!h||!v||!i.sampled)return oa({});const y={type:PF,replay_start_timestamp:u/1e3,timestamp:o/1e3,error_ids:c,trace_ids:d,urls:l,replay_id:t,segment_id:n,replay_type:i.sampled},C=await XU({scope:p,client:f,replayId:t,event:y});if(!C)return f.recordDroppedEvent("event_processor","replay",y),$e&&je.info("An event processor returned `null`, will not send event."),oa({});delete C.sdkProcessingMetadata;const g=YU(C,s,v,f.getOptions().tunnel);let S;try{S=await h.send(g)}catch(b){const T=new Error(gm);try{T.cause=b}catch{}throw T}if(typeof S.statusCode=="number"&&(S.statusCode<200||S.statusCode>=300))throw new i4(S.statusCode);const _=jb({},S);if(Fb(_,"replay"))throw new Am(_);return S}class i4 extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class Am extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function s4(e,t={count:0,interval:BF}){const{recordingData:n,onError:r}=e;if(n.length)try{return await KU(e),!0}catch(o){if(o instanceof i4||o instanceof Am)throw o;if($L("Replays",{_retryCount:t.count}),r&&r(o),t.count>=DF){const i=new Error(`${gm} - max retries exceeded`);try{i.cause=o}catch{}throw i}return t.interval*=++t.count,new Promise((i,s)=>{Si(async()=>{try{await s4(e,t),i(!0)}catch(l){s(l)}},t.interval)})}}const l4="__THROTTLED",JU="__SKIPPED";function QU(e,t,n){const r=new Map,o=l=>{const c=l-n;r.forEach((d,u)=>{u<c&&r.delete(u)})},i=()=>[...r.values()].reduce((l,c)=>l+c,0);let s=!1;return(...l)=>{const c=Math.floor(Date.now()/1e3);if(o(c),i()>=t){const u=s;return s=!0,u?JU:l4}s=!1;const d=r.get(c)||0;return r.set(c,d+1),e(...l)}}class ya{constructor({options:t,recordingOptions:n}){ya.prototype.__init.call(this),ya.prototype.__init2.call(this),ya.prototype.__init3.call(this),ya.prototype.__init4.call(this),ya.prototype.__init5.call(this),ya.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:IF,sessionIdleExpire:AF},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!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=jU(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=QU((s,l)=>YH(this,s,l),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:o}=this.getOptions(),i=r?{threshold:Math.min(RF,r),timeout:r,scrollTimeout:LF,ignoreSelector:o?o.join(","):""}:void 0;if(i&&(this.clickDetector=new oH(this,i)),$e){const s=t._experiments;je.setConfig({captureExceptions:!!s.captureExceptions,traceInternals:!!s.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){$e&&je.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,o=n<=0&&r<=0;if(this._requiresManualStart=o,!o){if(this._initializeSessionForSampling(t),!this.session){$e&&je.exception(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",$e&&je.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){$e&&je.info("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){$e&&je.info("Buffering is in progress, call `flush()` to save the replay");return}$e&&je.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=md({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled){$e&&je.info("Buffering is in progress, call `flush()` to save the replay");return}$e&&je.infoTick("Starting replay in buffer mode");const t=md({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=Jr({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:NF}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:UU(this),...HU(),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}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{$e&&je.info(`Stopping Replay${n?` triggered by ${n}`:""}`),Qw(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,jH(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),$e&&je.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),$e&&je.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();$e&&je.info("Converting buffer to session"),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&&Df(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${vt.location.pathname}${vt.location.hash}${vt.location.search}`,n=`${vt.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===l4){const o=Ir({category:"replay.throttled"});this.addUpdate(()=>!Pm(this,{type:Qj,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||$t(),n=t&&Wt(t),o=(n&&tt(n).data||{})[Mn];if(!(!n||!o||!["route","custom"].includes(o)))return tt(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=zH({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=md({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,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 Gw(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{vt.document.addEventListener("visibilitychange",this._handleVisibilityChange),vt.addEventListener("blur",this._handleWindowBlur),vt.addEventListener("focus",this._handleWindowFocus),vt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(zU(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=OH(this)}_removeListeners(){try{vt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),vt.removeEventListener("blur",this._handleWindowBlur),vt.removeEventListener("focus",this._handleWindowFocus),vt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}__init(){this._handleVisibilityChange=()=>{vt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=Ir({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=Ir({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{yH(this,t)}}_doChangeToBackgroundTasks(t){!this.session||Yw(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()){$e&&je.info("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:Ye.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=_H(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(mu(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||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){$e&&je.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await VU(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 s4({replayId:t,recordingData:i,segmentId:o,eventContext:r,session:this.session,timestamp:n,onError:s=>this.handleException(s)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=Ze();if(r){const o=n instanceof Am?"ratelimit_backoff":"send_error";r.recordDroppedEvent(o,"replay")}}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){$e&&je.error("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){$e&&je.info(`Session duration (${Math.floor(o/1e3)}s) is too ${i?"short":"long"}, not sending replay.`),i&&this._debouncedFlush();return}const l=this.eventBuffer;l&&this.session.segmentId===0&&!l.hasCheckout&&$e&&je.info("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(d){this.handleException(d)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Tm(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=Ir({category:"replay.mutations",data:{count:n,limit:i}});this._createCustomBreadcrumb(s)}return i?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function Xi(e,t){return[...e,...t].join(",")}function ZU({mask:e,unmask:t,block:n,unblock:r,ignore:o}){const i=["base","iframe[srcdoc]:not([src])"],s=Xi(e,[".sentry-mask","[data-sentry-mask]"]),l=Xi(t,[]);return{maskTextSelector:s,unmaskTextSelector:l,blockSelector:Xi(n,[".sentry-block","[data-sentry-block]",...i]),unblockSelector:Xi(r,[]),ignoreSelector:Xi(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function eW({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 n0='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',tW=["content-length","content-type","accept"];let r0=!1;const nW=e=>new vu(e);class vu{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=MF,flushMaxDelay:n=OF,minReplayDuration:r=$F,maxReplayDuration:o=Dg,stickySession:i=!0,useCompression:s=!0,workerUrl:l,_experiments:c={},maskAllText:d=!0,maskAllInputs:u=!0,blockAllMedia:f=!0,mutationBreadcrumbLimit:p=750,mutationLimit:h=1e4,slowClickTimeout:v=7e3,slowClickIgnoreSelectors:y=[],networkDetailAllowUrls:C=[],networkDetailDenyUrls:g=[],networkCaptureBodies:S=!0,networkRequestHeaders:_=[],networkResponseHeaders:b=[],mask:T=[],maskAttributes:E=["title","placeholder"],unmask:x=[],block:A=[],unblock:P=[],ignore:M=[],maskFn:z,beforeAddRecordingEvent:V,beforeErrorSampling:Y,onError:D}={}){this.name=vu.id;const H=ZU({mask:T,unmask:x,block:A,unblock:P,ignore:M});if(this._recordingOptions={maskAllInputs:u,maskAllText:d,maskInputOptions:{password:!0},maskTextFn:z,maskInputFn:z,maskAttributeFn:(B,q,J)=>eW({maskAttributes:E,maskAllText:d,privacyOptions:H,key:B,value:q,el:J}),...H,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:B=>{try{B.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,zF),maxReplayDuration:Math.min(o,Dg),stickySession:i,useCompression:s,workerUrl:l,blockAllMedia:f,maskAllInputs:u,maskAllText:d,mutationBreadcrumbLimit:p,mutationLimit:h,slowClickTimeout:v,slowClickIgnoreSelectors:y,networkDetailAllowUrls:C,networkDetailDenyUrls:g,networkCaptureBodies:S,networkRequestHeaders:a0(_),networkResponseHeaders:a0(b),beforeAddRecordingEvent:V,beforeErrorSampling:Y,onError:D,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${n0}`:n0),this._isInitialized&&Eg())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return r0}set _isInitialized(t){r0=t}afterAllSetup(t){!Eg()||this._replay||(this._setup(t),this._initialize(t))}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()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}getRecordingMode(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=rW(this._initialOptions,t);this._replay=new ya({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}vu.__initStatic();function rW(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...jt(e)},o=pc(n.replaysSessionSampleRate),i=pc(n.replaysOnErrorSampleRate);return o==null&&i==null&&mr(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),o!=null&&(r.sessionSampleRate=o),i!=null&&(r.errorSampleRate=i),r}function a0(e){return[...tW,...e.map(t=>t.toLowerCase())]}const o0=new WeakMap,hd=new Map,Wl={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function aW(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:l}={traceFetch:Wl.traceFetch,traceXHR:Wl.traceXHR,trackFetchStreamPerformance:Wl.trackFetchStreamPerformance,...t},c=typeof i=="function"?i:f=>!0,d=f=>lW(f,l),u={};n&&(e.addEventProcessor(f=>(f.type==="transaction"&&f.spans&&f.spans.forEach(p=>{if(p.op==="http.client"){const h=hd.get(p.span_id);h&&(p.timestamp=h/1e3,hd.delete(p.span_id))}}),f)),o&&G$(f=>{if(f.response){const p=o0.get(f.response);p&&f.endTimestamp&&hd.set(p,f.endTimestamp)}}),Xb(f=>{const p=F$(f,c,d,u);if(f.response&&f.fetchData.__span&&o0.set(f.response,f.fetchData.__span),p){const h=c4(f.fetchData.url),v=h?po(h).host:void 0;p.setAttributes({"http.url":h,"server.address":v})}s&&p&&i0(p)})),r&&mw(f=>{const p=cW(f,c,d,u);s&&p&&i0(p)})}function oW(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function i0(e){const{url:t}=tt(e).data||{};if(!t||typeof t!="string")return;const n=Ci("resource",({entries:r})=>{r.forEach(o=>{oW(o)&&o.name.endsWith(t)&&(sW(o).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function iW(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 vr(e=0){return((pn||performance.timeOrigin)+e)/1e3}function sW(e){const{name:t,version:n}=iW(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),pn?[...r,["http.request.redirect_start",vr(e.redirectStart)],["http.request.fetch_start",vr(e.fetchStart)],["http.request.domain_lookup_start",vr(e.domainLookupStart)],["http.request.domain_lookup_end",vr(e.domainLookupEnd)],["http.request.connect_start",vr(e.connectStart)],["http.request.secure_connection_start",vr(e.secureConnectionStart)],["http.request.connection_end",vr(e.connectEnd)],["http.request.request_start",vr(e.requestStart)],["http.request.response_start",vr(e.responseStart)],["http.request.response_end",vr(e.responseEnd)]]:r}function lW(e,t){const n=ze.location&&ze.location.href;if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch{return!1}const i=r.origin===o;return t?Ca(r.toString(),t)||i&&Ca(r.pathname,t):i}else{const r=!!e.match(/^\/(?!\/)/);return t?Ca(e,t):r}}function cW(e,t,n,r){const o=e.xhr,i=o&&o[no];if(!o||o.__sentry_own_request__||!i)return;const s=ia()&&t(i.url);if(e.endTimestamp&&s){const f=o.__sentry_xhr_span_id__;if(!f)return;const p=r[f];p&&i.status_code!==void 0&&(db(p,i.status_code),p.end(),delete r[f]);return}const l=c4(i.url),c=l?po(l).host:void 0,d=!!$t(),u=s&&d?ko({name:`${i.method} ${i.url}`,attributes:{type:"xhr","http.method":i.method,"http.url":l,url:i.url,"server.address":c,[St]:"auto.http.browser",[wo]:"http.client"}}):new Bi;return o.__sentry_xhr_span_id__=u.spanContext().spanId,r[o.__sentry_xhr_span_id__]=u,n(i.url)&&uW(o,ia()&&d?u:void 0),u}function uW(e,t){const{"sentry-trace":n,baggage:r}=Hb({span:t});n&&dW(e,n,r)}function dW(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader("baggage",n)}catch{}}function c4(e){try{return new URL(e,ze.location.origin).href}catch{return}}function fW(){ze&&ze.document?ze.document.addEventListener("visibilitychange",()=>{const e=$t();if(!e)return;const t=Wt(e);if(ze.document.hidden&&t){const n="cancelled",{op:r,status:o}=tt(t);Bn&&_e.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),o||t.setStatus({code:Ut,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Bn&&_e.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const pW="BrowserTracing",mW={...Vl,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...Wl},s0=(e={})=>{zR();const{enableInp:t,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:o,enableStandaloneClsSpans:i},beforeStartSpan:s,idleTimeout:l,finalTimeout:c,childSpanTimeout:d,markBackgroundSpan:u,traceFetch:f,traceXHR:p,trackFetchStreamPerformance:h,shouldCreateSpanForRequest:v,enableHTTPTimings:y,instrumentPageLoad:C,instrumentNavigation:g}={...mW,...e},S=rV({recordClsStandaloneSpans:i||!1});t&&PV(),r&&Qe.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?oV():n&&aV(),o&&iV();const _={name:void 0,source:void 0};function b(T,E){const x=E.op==="pageload",A=s?s(E):E,P=A.attributes||{};E.name!==A.name&&(P[Mn]="custom",A.attributes=P),_.name=A.name,_.source=P[Mn];const M=Ob(A,{idleTimeout:l,finalTimeout:c,childSpanTimeout:d,disableAutoFinish:x,beforeSpanEnd:V=>{S(),dV(V,{recordClsOnPageloadSpan:!i})}});function z(){["interactive","complete"].includes(ze.document.readyState)&&T.emit("idleSpanEnableAutoFinish",M)}return x&&ze.document&&(ze.document.addEventListener("readystatechange",()=>{z()}),z()),M}return{name:pW,afterAllSetup(T){let E,x=ze.location&&ze.location.href;function A(){E&&!tt(E).timestamp&&(Bn&&_e.log(`[Tracing] Finishing current active span with op: ${tt(E).op}`),E.end())}T.on("startNavigationSpan",P=>{Ze()===T&&(A(),E=b(T,{op:"navigation",...P}))}),T.on("startPageLoadSpan",(P,M={})=>{if(Ze()!==T)return;A();const z=M.sentryTrace||l0("sentry-trace"),V=M.baggage||l0("baggage"),Y=OR(z,V);ct().setPropagationContext(Y),E=b(T,{op:"pageload",...P})}),T.on("spanEnd",P=>{const M=tt(P).op;if(P!==Wt(P)||M!=="navigation"&&M!=="pageload")return;const z=ct(),V=z.getPropagationContext();z.setPropagationContext({...V,sampled:V.sampled!==void 0?V.sampled:Eo(P),dsc:V.dsc||xo(P)})}),ze.location&&(C&&hW(T,{name:ze.location.pathname,startTime:pn?pn/1e3:void 0,attributes:{[Mn]:"url",[St]:"auto.pageload.browser"}}),g&&cu(({to:P,from:M})=>{if(M===void 0&&x&&x.indexOf(P)!==-1){x=void 0;return}M!==P&&(x=void 0,u4(T,{name:ze.location.pathname,attributes:{[Mn]:"url",[St]:"auto.navigation.browser"}}))})),u&&fW(),o&&vW(l,c,d,_),t&&AV(),aW(T,{traceFetch:f,traceXHR:p,trackFetchStreamPerformance:h,tracePropagationTargets:T.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:v,enableHTTPTimings:y})}}};function hW(e,t,n){e.emit("startPageLoadSpan",t,n),ct().setTransactionName(t.name);const r=$t();return(r&&tt(r).op)==="pageload"?r:void 0}function u4(e,t){qn().setPropagationContext({traceId:Ma()}),ct().setPropagationContext({traceId:Ma()}),e.emit("startNavigationSpan",t),ct().setTransactionName(t.name);const n=$t();return(n&&tt(n).op)==="navigation"?n:void 0}function l0(e){const t=aR(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function vW(e,t,n,r){let o;const i=()=>{const s="ui.action.click",l=$t(),c=l&&Wt(l);if(c){const d=tt(c).op;if(["navigation","pageload"].includes(d)){Bn&&_e.warn(`[Tracing] Did not create ${s} span because a pageload or navigation span is in progress.`);return}}if(o&&(o.setAttribute(df,"interactionInterrupted"),o.end(),o=void 0),!r.name){Bn&&_e.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}o=Ob({name:r.name,op:s,attributes:{[Mn]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n})};ze.document&&addEventListener("click",i,{once:!1,capture:!0})}const d4=["activate","mount","update"],f4=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,gW=/(?:^|[-_])(\w)/g,yW=e=>e.replace(gW,t=>t.toUpperCase()).replace(/[-_]/g,""),bW="<Root>",vd="<Anonymous>",wW=(e,t)=>e.repeat(t),ps=(e,t)=>{if(!e)return vd;if(e.$root===e)return bW;if(!e.$options)return vd;const n=e.$options;let r=n.name||n._componentTag||n.__name;const o=n.__file;if(!r&&o){const i=o.match(/([^/\\]+)\.vue$/);i&&(r=i[1])}return(r?`<${yW(r)}>`:vd)+(o&&t!==!1?` at ${o}`:"")},kW=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`
665
+ `;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 XU({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("preprocessEvent",r,i);const s=await Nb(e.getOptions(),r,i,t,e,Yn());if(!s)return null;s.platform=s.platform||"javascript";const l=e.getSdkMetadata(),{name:c,version:d}=l&&l.sdk||{};return s.sdk={...s.sdk,name:c||"sentry.javascript.unknown",version:d||"0.0.0"},s}async function KU({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:i}){const s=GU({recordingData:e,headers:{segment_id:n}}),{urls:l,errorIds:c,traceIds:d,initialTimestamp:u}=r,f=Ze(),p=ct(),h=f&&f.getTransport(),v=f&&f.getDsn();if(!f||!h||!v||!i.sampled)return oa({});const y={type:PF,replay_start_timestamp:u/1e3,timestamp:o/1e3,error_ids:c,trace_ids:d,urls:l,replay_id:t,segment_id:n,replay_type:i.sampled},C=await XU({scope:p,client:f,replayId:t,event:y});if(!C)return f.recordDroppedEvent("event_processor","replay",y),$e&&je.info("An event processor returned `null`, will not send event."),oa({});delete C.sdkProcessingMetadata;const g=YU(C,s,v,f.getOptions().tunnel);let S;try{S=await h.send(g)}catch(b){const T=new Error(gm);try{T.cause=b}catch{}throw T}if(typeof S.statusCode=="number"&&(S.statusCode<200||S.statusCode>=300))throw new i4(S.statusCode);const _=jb({},S);if(Fb(_,"replay"))throw new Am(_);return S}class i4 extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class Am extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function s4(e,t={count:0,interval:BF}){const{recordingData:n,onError:r}=e;if(n.length)try{return await KU(e),!0}catch(o){if(o instanceof i4||o instanceof Am)throw o;if($L("Replays",{_retryCount:t.count}),r&&r(o),t.count>=DF){const i=new Error(`${gm} - max retries exceeded`);try{i.cause=o}catch{}throw i}return t.interval*=++t.count,new Promise((i,s)=>{Si(async()=>{try{await s4(e,t),i(!0)}catch(l){s(l)}},t.interval)})}}const l4="__THROTTLED",JU="__SKIPPED";function QU(e,t,n){const r=new Map,o=l=>{const c=l-n;r.forEach((d,u)=>{u<c&&r.delete(u)})},i=()=>[...r.values()].reduce((l,c)=>l+c,0);let s=!1;return(...l)=>{const c=Math.floor(Date.now()/1e3);if(o(c),i()>=t){const u=s;return s=!0,u?JU:l4}s=!1;const d=r.get(c)||0;return r.set(c,d+1),e(...l)}}class ya{constructor({options:t,recordingOptions:n}){ya.prototype.__init.call(this),ya.prototype.__init2.call(this),ya.prototype.__init3.call(this),ya.prototype.__init4.call(this),ya.prototype.__init5.call(this),ya.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:IF,sessionIdleExpire:AF},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!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=jU(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=QU((s,l)=>YH(this,s,l),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:o}=this.getOptions(),i=r?{threshold:Math.min(RF,r),timeout:r,scrollTimeout:LF,ignoreSelector:o?o.join(","):""}:void 0;if(i&&(this.clickDetector=new oH(this,i)),$e){const s=t._experiments;je.setConfig({captureExceptions:!!s.captureExceptions,traceInternals:!!s.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){$e&&je.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,o=n<=0&&r<=0;if(this._requiresManualStart=o,!o){if(this._initializeSessionForSampling(t),!this.session){$e&&je.exception(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",$e&&je.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){$e&&je.info("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){$e&&je.info("Buffering is in progress, call `flush()` to save the replay");return}$e&&je.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=md({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled){$e&&je.info("Buffering is in progress, call `flush()` to save the replay");return}$e&&je.infoTick("Starting replay in buffer mode");const t=md({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=Jr({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:NF}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:UU(this),...HU(),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}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{$e&&je.info(`Stopping Replay${n?` triggered by ${n}`:""}`),Qw(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,jH(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),$e&&je.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),$e&&je.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();$e&&je.info("Converting buffer to session"),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&&Df(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${vt.location.pathname}${vt.location.hash}${vt.location.search}`,n=`${vt.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===l4){const o=Ir({category:"replay.throttled"});this.addUpdate(()=>!Pm(this,{type:Qj,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||$t(),n=t&&Wt(t),o=(n&&tt(n).data||{})[Mn];if(!(!n||!o||!["route","custom"].includes(o)))return tt(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=zH({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=md({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,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 Gw(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{vt.document.addEventListener("visibilitychange",this._handleVisibilityChange),vt.addEventListener("blur",this._handleWindowBlur),vt.addEventListener("focus",this._handleWindowFocus),vt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(zU(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=OH(this)}_removeListeners(){try{vt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),vt.removeEventListener("blur",this._handleWindowBlur),vt.removeEventListener("focus",this._handleWindowFocus),vt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}__init(){this._handleVisibilityChange=()=>{vt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=Ir({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=Ir({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{yH(this,t)}}_doChangeToBackgroundTasks(t){!this.session||Yw(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()){$e&&je.info("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:Ye.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=_H(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(mu(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||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){$e&&je.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await VU(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 s4({replayId:t,recordingData:i,segmentId:o,eventContext:r,session:this.session,timestamp:n,onError:s=>this.handleException(s)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=Ze();if(r){const o=n instanceof Am?"ratelimit_backoff":"send_error";r.recordDroppedEvent(o,"replay")}}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){$e&&je.error("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){$e&&je.info(`Session duration (${Math.floor(o/1e3)}s) is too ${i?"short":"long"}, not sending replay.`),i&&this._debouncedFlush();return}const l=this.eventBuffer;l&&this.session.segmentId===0&&!l.hasCheckout&&$e&&je.info("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(d){this.handleException(d)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Tm(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=Ir({category:"replay.mutations",data:{count:n,limit:i}});this._createCustomBreadcrumb(s)}return i?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function Xi(e,t){return[...e,...t].join(",")}function ZU({mask:e,unmask:t,block:n,unblock:r,ignore:o}){const i=["base","iframe[srcdoc]:not([src])"],s=Xi(e,[".sentry-mask","[data-sentry-mask]"]),l=Xi(t,[]);return{maskTextSelector:s,unmaskTextSelector:l,blockSelector:Xi(n,[".sentry-block","[data-sentry-block]",...i]),unblockSelector:Xi(r,[]),ignoreSelector:Xi(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function eW({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 n0='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',tW=["content-length","content-type","accept"];let r0=!1;const nW=e=>new vu(e);class vu{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=MF,flushMaxDelay:n=OF,minReplayDuration:r=$F,maxReplayDuration:o=Dg,stickySession:i=!0,useCompression:s=!0,workerUrl:l,_experiments:c={},maskAllText:d=!0,maskAllInputs:u=!0,blockAllMedia:f=!0,mutationBreadcrumbLimit:p=750,mutationLimit:h=1e4,slowClickTimeout:v=7e3,slowClickIgnoreSelectors:y=[],networkDetailAllowUrls:C=[],networkDetailDenyUrls:g=[],networkCaptureBodies:S=!0,networkRequestHeaders:_=[],networkResponseHeaders:b=[],mask:T=[],maskAttributes:E=["title","placeholder"],unmask:x=[],block:A=[],unblock:P=[],ignore:M=[],maskFn:z,beforeAddRecordingEvent:V,beforeErrorSampling:Y,onError:D}={}){this.name=vu.id;const H=ZU({mask:T,unmask:x,block:A,unblock:P,ignore:M});if(this._recordingOptions={maskAllInputs:u,maskAllText:d,maskInputOptions:{password:!0},maskTextFn:z,maskInputFn:z,maskAttributeFn:(B,q,J)=>eW({maskAttributes:E,maskAllText:d,privacyOptions:H,key:B,value:q,el:J}),...H,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:B=>{try{B.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,zF),maxReplayDuration:Math.min(o,Dg),stickySession:i,useCompression:s,workerUrl:l,blockAllMedia:f,maskAllInputs:u,maskAllText:d,mutationBreadcrumbLimit:p,mutationLimit:h,slowClickTimeout:v,slowClickIgnoreSelectors:y,networkDetailAllowUrls:C,networkDetailDenyUrls:g,networkCaptureBodies:S,networkRequestHeaders:a0(_),networkResponseHeaders:a0(b),beforeAddRecordingEvent:V,beforeErrorSampling:Y,onError:D,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${n0}`:n0),this._isInitialized&&Eg())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return r0}set _isInitialized(t){r0=t}afterAllSetup(t){!Eg()||this._replay||(this._setup(t),this._initialize(t))}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()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}getRecordingMode(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=rW(this._initialOptions,t);this._replay=new ya({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}vu.__initStatic();function rW(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...jt(e)},o=pc(n.replaysSessionSampleRate),i=pc(n.replaysOnErrorSampleRate);return o==null&&i==null&&mr(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),o!=null&&(r.sessionSampleRate=o),i!=null&&(r.errorSampleRate=i),r}function a0(e){return[...tW,...e.map(t=>t.toLowerCase())]}const o0=new WeakMap,hd=new Map,Wl={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function aW(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:l}={traceFetch:Wl.traceFetch,traceXHR:Wl.traceXHR,trackFetchStreamPerformance:Wl.trackFetchStreamPerformance,...t},c=typeof i=="function"?i:f=>!0,d=f=>lW(f,l),u={};n&&(e.addEventProcessor(f=>(f.type==="transaction"&&f.spans&&f.spans.forEach(p=>{if(p.op==="http.client"){const h=hd.get(p.span_id);h&&(p.timestamp=h/1e3,hd.delete(p.span_id))}}),f)),o&&G$(f=>{if(f.response){const p=o0.get(f.response);p&&f.endTimestamp&&hd.set(p,f.endTimestamp)}}),Xb(f=>{const p=F$(f,c,d,u);if(f.response&&f.fetchData.__span&&o0.set(f.response,f.fetchData.__span),p){const h=c4(f.fetchData.url),v=h?po(h).host:void 0;p.setAttributes({"http.url":h,"server.address":v})}s&&p&&i0(p)})),r&&mw(f=>{const p=cW(f,c,d,u);s&&p&&i0(p)})}function oW(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function i0(e){const{url:t}=tt(e).data||{};if(!t||typeof t!="string")return;const n=Ci("resource",({entries:r})=>{r.forEach(o=>{oW(o)&&o.name.endsWith(t)&&(sW(o).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function iW(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 vr(e=0){return((pn||performance.timeOrigin)+e)/1e3}function sW(e){const{name:t,version:n}=iW(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),pn?[...r,["http.request.redirect_start",vr(e.redirectStart)],["http.request.fetch_start",vr(e.fetchStart)],["http.request.domain_lookup_start",vr(e.domainLookupStart)],["http.request.domain_lookup_end",vr(e.domainLookupEnd)],["http.request.connect_start",vr(e.connectStart)],["http.request.secure_connection_start",vr(e.secureConnectionStart)],["http.request.connection_end",vr(e.connectEnd)],["http.request.request_start",vr(e.requestStart)],["http.request.response_start",vr(e.responseStart)],["http.request.response_end",vr(e.responseEnd)]]:r}function lW(e,t){const n=ze.location&&ze.location.href;if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch{return!1}const i=r.origin===o;return t?Ca(r.toString(),t)||i&&Ca(r.pathname,t):i}else{const r=!!e.match(/^\/(?!\/)/);return t?Ca(e,t):r}}function cW(e,t,n,r){const o=e.xhr,i=o&&o[no];if(!o||o.__sentry_own_request__||!i)return;const s=ia()&&t(i.url);if(e.endTimestamp&&s){const f=o.__sentry_xhr_span_id__;if(!f)return;const p=r[f];p&&i.status_code!==void 0&&(db(p,i.status_code),p.end(),delete r[f]);return}const l=c4(i.url),c=l?po(l).host:void 0,d=!!$t(),u=s&&d?ko({name:`${i.method} ${i.url}`,attributes:{type:"xhr","http.method":i.method,"http.url":l,url:i.url,"server.address":c,[St]:"auto.http.browser",[wo]:"http.client"}}):new Bi;return o.__sentry_xhr_span_id__=u.spanContext().spanId,r[o.__sentry_xhr_span_id__]=u,n(i.url)&&uW(o,ia()&&d?u:void 0),u}function uW(e,t){const{"sentry-trace":n,baggage:r}=Hb({span:t});n&&dW(e,n,r)}function dW(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader("baggage",n)}catch{}}function c4(e){try{return new URL(e,ze.location.origin).href}catch{return}}function fW(){ze&&ze.document?ze.document.addEventListener("visibilitychange",()=>{const e=$t();if(!e)return;const t=Wt(e);if(ze.document.hidden&&t){const n="cancelled",{op:r,status:o}=tt(t);Bn&&_e.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),o||t.setStatus({code:Ut,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Bn&&_e.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const pW="BrowserTracing",mW={...Vl,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...Wl},s0=(e={})=>{zR();const{enableInp:t,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:o,enableStandaloneClsSpans:i},beforeStartSpan:s,idleTimeout:l,finalTimeout:c,childSpanTimeout:d,markBackgroundSpan:u,traceFetch:f,traceXHR:p,trackFetchStreamPerformance:h,shouldCreateSpanForRequest:v,enableHTTPTimings:y,instrumentPageLoad:C,instrumentNavigation:g}={...mW,...e},S=rV({recordClsStandaloneSpans:i||!1});t&&PV(),r&&Qe.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?oV():n&&aV(),o&&iV();const _={name:void 0,source:void 0};function b(T,E){const x=E.op==="pageload",A=s?s(E):E,P=A.attributes||{};E.name!==A.name&&(P[Mn]="custom",A.attributes=P),_.name=A.name,_.source=P[Mn];const M=Ob(A,{idleTimeout:l,finalTimeout:c,childSpanTimeout:d,disableAutoFinish:x,beforeSpanEnd:V=>{S(),dV(V,{recordClsOnPageloadSpan:!i})}});function z(){["interactive","complete"].includes(ze.document.readyState)&&T.emit("idleSpanEnableAutoFinish",M)}return x&&ze.document&&(ze.document.addEventListener("readystatechange",()=>{z()}),z()),M}return{name:pW,afterAllSetup(T){let E,x=ze.location&&ze.location.href;function A(){E&&!tt(E).timestamp&&(Bn&&_e.log(`[Tracing] Finishing current active span with op: ${tt(E).op}`),E.end())}T.on("startNavigationSpan",P=>{Ze()===T&&(A(),E=b(T,{op:"navigation",...P}))}),T.on("startPageLoadSpan",(P,M={})=>{if(Ze()!==T)return;A();const z=M.sentryTrace||l0("sentry-trace"),V=M.baggage||l0("baggage"),Y=OR(z,V);ct().setPropagationContext(Y),E=b(T,{op:"pageload",...P})}),T.on("spanEnd",P=>{const M=tt(P).op;if(P!==Wt(P)||M!=="navigation"&&M!=="pageload")return;const z=ct(),V=z.getPropagationContext();z.setPropagationContext({...V,sampled:V.sampled!==void 0?V.sampled:Eo(P),dsc:V.dsc||xo(P)})}),ze.location&&(C&&hW(T,{name:ze.location.pathname,startTime:pn?pn/1e3:void 0,attributes:{[Mn]:"url",[St]:"auto.pageload.browser"}}),g&&cu(({to:P,from:M})=>{if(M===void 0&&x&&x.indexOf(P)!==-1){x=void 0;return}M!==P&&(x=void 0,u4(T,{name:ze.location.pathname,attributes:{[Mn]:"url",[St]:"auto.navigation.browser"}}))})),u&&fW(),o&&vW(l,c,d,_),t&&AV(),aW(T,{traceFetch:f,traceXHR:p,trackFetchStreamPerformance:h,tracePropagationTargets:T.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:v,enableHTTPTimings:y})}}};function hW(e,t,n){e.emit("startPageLoadSpan",t,n),ct().setTransactionName(t.name);const r=$t();return(r&&tt(r).op)==="pageload"?r:void 0}function u4(e,t){Yn().setPropagationContext({traceId:Ma()}),ct().setPropagationContext({traceId:Ma()}),e.emit("startNavigationSpan",t),ct().setTransactionName(t.name);const n=$t();return(n&&tt(n).op)==="navigation"?n:void 0}function l0(e){const t=aR(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function vW(e,t,n,r){let o;const i=()=>{const s="ui.action.click",l=$t(),c=l&&Wt(l);if(c){const d=tt(c).op;if(["navigation","pageload"].includes(d)){Bn&&_e.warn(`[Tracing] Did not create ${s} span because a pageload or navigation span is in progress.`);return}}if(o&&(o.setAttribute(df,"interactionInterrupted"),o.end(),o=void 0),!r.name){Bn&&_e.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}o=Ob({name:r.name,op:s,attributes:{[Mn]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n})};ze.document&&addEventListener("click",i,{once:!1,capture:!0})}const d4=["activate","mount","update"],f4=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,gW=/(?:^|[-_])(\w)/g,yW=e=>e.replace(gW,t=>t.toUpperCase()).replace(/[-_]/g,""),bW="<Root>",vd="<Anonymous>",wW=(e,t)=>e.repeat(t),ps=(e,t)=>{if(!e)return vd;if(e.$root===e)return bW;if(!e.$options)return vd;const n=e.$options;let r=n.name||n._componentTag||n.__name;const o=n.__file;if(!r&&o){const i=o.match(/([^/\\]+)\.vue$/);i&&(r=i[1])}return(r?`<${yW(r)}>`:vd)+(o&&t!==!1?` at ${o}`:"")},kW=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`
666
666
 
667
667
  found in
668
668