@autoafleveren/ui 0.12.8 → 0.13.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.
- package/dist/icons.cjs +37 -57
- package/dist/icons.js +7426 -7945
- package/dist/style.css +1 -1
- package/dist/types/components/AppActionBar/AppActionBar.vue.d.ts +1 -1
- package/dist/types/components/AppActionBar/AppActionBarItem.vue.d.ts +13 -10
- package/dist/types/components/AppAlert/AppAlert.vue.d.ts +37 -36
- package/dist/types/components/AppAvatar/AppAvatar.vue.d.ts +23 -23
- package/dist/types/components/AppAvatar/DefaultAvatar.vue.d.ts +14 -9
- package/dist/types/components/AppBackButton/AppBackButton.vue.d.ts +30 -27
- package/dist/types/components/AppBadge/AppBadge.vue.d.ts +35 -28
- package/dist/types/components/AppBadge/index.d.ts +1 -1
- package/dist/types/components/AppButton/AppButton.vue.d.ts +38 -68
- package/dist/types/components/AppButton/ButtonIconSlot.vue.d.ts +14 -9
- package/dist/types/components/AppCard/AppCard.vue.d.ts +43 -44
- package/dist/types/components/AppCard/CardAction.vue.d.ts +13 -10
- package/dist/types/components/AppCard/CardIconSlot.vue.d.ts +14 -9
- package/dist/types/components/AppConfirm/AppConfirm.vue.d.ts +43 -123
- package/dist/types/components/AppDataTable/AppDataTable.vue.d.ts +52 -13
- package/dist/types/components/AppDataTable/AppDataTableFooter.vue.d.ts +17 -16
- package/dist/types/components/AppDefinitionList/AppDefinitionItem.vue.d.ts +50 -45
- package/dist/types/components/AppDefinitionList/AppDefinitionList.vue.d.ts +28 -19
- package/dist/types/components/AppDisclosure/AppDisclosure.vue.d.ts +26 -11
- package/dist/types/components/AppDisclosure/AppDisclosureButton.vue.d.ts +1 -1
- package/dist/types/components/AppDisclosure/AppDisclosurePanel.vue.d.ts +30 -19
- package/dist/types/components/AppDropdownButton/AppDropdownButton.vue.d.ts +26 -82
- package/dist/types/components/AppDropdownButton/AppDropdownItem.vue.d.ts +11 -47
- package/dist/types/components/AppInput/AppInput.vue.d.ts +58 -9
- package/dist/types/components/AppInput/FileInput.vue.d.ts +12 -18
- package/dist/types/components/AppInput/Input.vue.d.ts +25 -9
- package/dist/types/components/AppInput/InputIconSlot.vue.d.ts +14 -9
- package/dist/types/components/AppInput/LocationInput.vue.d.ts +26 -27
- package/dist/types/components/AppInputLabel/AppInputLabel.vue.d.ts +11 -15
- package/dist/types/components/AppLicensePlate/AppLicensePlate.vue.d.ts +34 -27
- package/dist/types/components/AppLoader/AppLoader.vue.d.ts +26 -11
- package/dist/types/components/AppMaps/AppMaps.vue.d.ts +54 -67
- package/dist/types/components/AppModal/AppModal.vue.d.ts +38 -94
- package/dist/types/components/AppNavigationMenu/AppNavigationMenu.vue.d.ts +1 -1
- package/dist/types/components/AppNavigationMenu/Mobile.vue.d.ts +1 -1
- package/dist/types/components/AppNavigationMenu/NavigationItem.vue.d.ts +13 -10
- package/dist/types/components/AppNavigationMenu/SupportItem.vue.d.ts +1 -1
- package/dist/types/components/AppPagination/AppPagination.vue.d.ts +39 -36
- package/dist/types/components/AppPagination/AppPaginationItem.vue.d.ts +34 -27
- package/dist/types/components/AppSelect/AppSelect.vue.d.ts +93 -83
- package/dist/types/components/AppTimeline/AppTimeline.vue.d.ts +25 -9
- package/dist/types/components/AppTimeline/AppTimelineItem.vue.d.ts +13 -13
- package/dist/types/components/AppTimeline/AppTimelineItemIcon.vue.d.ts +10 -11
- package/dist/types/components/AppToggle/AppToggle.vue.d.ts +6 -2
- package/dist/types/composables/index.d.ts +1 -0
- package/dist/types/composables/useActionBar/index.d.ts +5 -133
- package/dist/types/composables/useNavigation/index.d.ts +15 -368
- package/dist/types/icons/CarsIcon.vue.d.ts +1 -1
- package/dist/types/icons/ChatPersonRoundedIcon.vue.d.ts +14 -9
- package/dist/types/icons/HeroGirlIcon.vue.d.ts +16 -15
- package/dist/types/icons/HeroPersonIcon.vue.d.ts +16 -15
- package/dist/types/icons/HeroPersonRoundedIcon.vue.d.ts +16 -15
- package/dist/types/icons/HeroPersonWithBgIcon.vue.d.ts +16 -15
- package/dist/types/icons/LocationMarkerIcon.vue.d.ts +1 -1
- package/dist/types/icons/PartyPopperIcon.vue.d.ts +1 -1
- package/dist/types/icons/status/ErrorIcon.vue.d.ts +1 -1
- package/dist/types/icons/status/SuccessIcon.vue.d.ts +1 -1
- package/dist/types/icons/status/WarningIcon.vue.d.ts +1 -1
- package/dist/types/layouts/Auth/Auth.vue.d.ts +1 -1
- package/dist/types/layouts/Base/Base.vue.d.ts +1 -1
- package/dist/types/layouts/Platform/Platform.vue.d.ts +1 -1
- package/dist/types/plugins/Toast/Toast.vue.d.ts +35 -36
- package/dist/ui.cjs +39 -51
- package/dist/ui.css +1 -1
- package/dist/ui.js +15005 -12644
- package/package.json +49 -37
package/dist/ui.cjs
CHANGED
|
@@ -1,23 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),kt=require("@headlessui/vue"),Sg=require("vue-router"),ui=require("@vueuse/core");var Cg=Object.defineProperty,kc=Object.getOwnPropertySymbols,Tg=Object.prototype.hasOwnProperty,Eg=Object.prototype.propertyIsEnumerable,Sc=(e,t,n)=>t in e?Cg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Af=(e,t)=>{for(var n in t||(t={}))Tg.call(t,n)&&Sc(e,n,t[n]);if(kc)for(var n of kc(t))Eg.call(t,n)&&Sc(e,n,t[n]);return e},Ai=e=>typeof e=="function",$i=e=>typeof e=="string",$f=e=>$i(e)&&e.trim().length>0,xg=e=>typeof e=="number",Lr=e=>typeof e>"u",uo=e=>typeof e=="object"&&e!==null,Pg=e=>jn(e,"tag")&&$f(e.tag),Lf=e=>window.TouchEvent&&e instanceof TouchEvent,Vf=e=>jn(e,"component")&&Ff(e.component),Ig=e=>Ai(e)||uo(e),Ff=e=>!Lr(e)&&($i(e)||Ig(e)||Vf(e)),Cc=e=>uo(e)&&["height","width","right","left","top","bottom"].every(t=>xg(e[t])),jn=(e,t)=>(uo(e)||Ai(e))&&t in e,Dg=(e=>()=>e++)(0);function Ps(e){return Lf(e)?e.targetTouches[0].clientX:e.clientX}function Tc(e){return Lf(e)?e.targetTouches[0].clientY:e.clientY}var Ng=e=>{Lr(e.remove)?e.parentNode&&e.parentNode.removeChild(e):e.remove()},Eo=e=>Vf(e)?Eo(e.component):Pg(e)?a.defineComponent({render(){return e}}):typeof e=="string"?e:a.toRaw(a.unref(e)),Og=e=>{if(typeof e=="string")return e;const t=jn(e,"props")&&uo(e.props)?e.props:{},n=jn(e,"listeners")&&uo(e.listeners)?e.listeners:{};return{component:Eo(e),props:t,listeners:n}},Bg=()=>typeof window<"u",nu=class{constructor(){this.allHandlers={}}getHandlers(e){return this.allHandlers[e]||[]}on(e,t){const n=this.getHandlers(e);n.push(t),this.allHandlers[e]=n}off(e,t){const n=this.getHandlers(e);n.splice(n.indexOf(t)>>>0,1)}emit(e,t){this.getHandlers(e).forEach(r=>r(t))}},Mg=e=>["on","off","emit"].every(t=>jn(e,t)&&Ai(e[t])),cn;(function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.DEFAULT="default"})(cn||(cn={}));var co;(function(e){e.TOP_LEFT="top-left",e.TOP_CENTER="top-center",e.TOP_RIGHT="top-right",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_CENTER="bottom-center",e.BOTTOM_RIGHT="bottom-right"})(co||(co={}));var dn;(function(e){e.ADD="add",e.DISMISS="dismiss",e.UPDATE="update",e.CLEAR="clear",e.UPDATE_DEFAULTS="update_defaults"})(dn||(dn={}));var En="Vue-Toastification",Cn={type:{type:String,default:cn.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},Hf={type:Cn.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},ti={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:Cn.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},il={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},Uf={transition:{type:[Object,String],default:`${En}__bounce`}},Rg={position:{type:String,default:co.TOP_RIGHT},draggable:Cn.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:Cn.trueBoolean,pauseOnHover:Cn.trueBoolean,closeOnClick:Cn.trueBoolean,timeout:il.timeout,hideProgressBar:il.hideProgressBar,toastClassName:Cn.classNames,bodyClassName:Cn.classNames,icon:Hf.customIcon,closeButton:ti.component,closeButtonClassName:ti.classNames,showCloseButtonOnHover:ti.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new nu}},Ag={id:{type:[String,Number],required:!0,default:0},type:Cn.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},$g={container:{type:[Object,Function],default:()=>document.body},newestOnTop:Cn.trueBoolean,maxToasts:{type:Number,default:20},transition:Uf.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:e=>e},filterToasts:{type:Function,default:e=>e},containerClassName:Cn.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},dr={CORE_TOAST:Rg,TOAST:Ag,CONTAINER:$g,PROGRESS_BAR:il,ICON:Hf,TRANSITION:Uf,CLOSE_BUTTON:ti},zf=a.defineComponent({name:"VtProgressBar",props:dr.PROGRESS_BAR,data(){return{hasClass:!0}},computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${En}__progress-bar`:""}},watch:{timeout(){this.hasClass=!1,this.$nextTick(()=>this.hasClass=!0)}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeUnmount(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}}});function Lg(e,t){return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style),class:a.normalizeClass(e.cpClass)},null,6)}zf.render=Lg;var Vg=zf,jf=a.defineComponent({name:"VtCloseButton",props:dr.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?Eo(this.component):"button"},classes(){const e=[`${En}__close-button`];return this.showOnHover&&e.push("show-on-hover"),e.concat(this.classNames)}}}),Fg=a.createTextVNode(" × ");function Hg(e,t){return a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.buttonComponent),a.mergeProps({"aria-label":e.ariaLabel,class:e.classes},e.$attrs),{default:a.withCtx(()=>[Fg]),_:1},16,["aria-label","class"])}jf.render=Hg;var Ug=jf,Wf={},zg={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",class:"svg-inline--fa fa-check-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},jg=a.createElementVNode("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},null,-1),Wg=[jg];function qg(e,t){return a.openBlock(),a.createElementBlock("svg",zg,Wg)}Wf.render=qg;var Yg=Wf,qf={},Gg={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",class:"svg-inline--fa fa-info-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Kg=a.createElementVNode("path",{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},null,-1),Xg=[Kg];function Jg(e,t){return a.openBlock(),a.createElementBlock("svg",Gg,Xg)}qf.render=Jg;var Ec=qf,Yf={},Qg={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",class:"svg-inline--fa fa-exclamation-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Zg=a.createElementVNode("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),ey=[Zg];function ty(e,t){return a.openBlock(),a.createElementBlock("svg",Qg,ey)}Yf.render=ty;var ny=Yf,Gf={},ry={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",class:"svg-inline--fa fa-exclamation-triangle fa-w-18",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},ay=a.createElementVNode("path",{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),oy=[ay];function iy(e,t){return a.openBlock(),a.createElementBlock("svg",ry,oy)}Gf.render=iy;var sy=Gf,Kf=a.defineComponent({name:"VtIcon",props:dr.ICON,computed:{customIconChildren(){return jn(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return $i(this.customIcon)?this.trimValue(this.customIcon):jn(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return jn(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:Ff(this.customIcon)?Eo(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[cn.DEFAULT]:Ec,[cn.INFO]:Ec,[cn.SUCCESS]:Yg,[cn.ERROR]:sy,[cn.WARNING]:ny}[this.type]},iconClasses(){const e=[`${En}__icon`];return this.hasCustomIcon?e.concat(this.customIconClass):e}},methods:{trimValue(e,t=""){return $f(e)?e.trim():t}}});function ly(e,t){return a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.component),{class:a.normalizeClass(e.iconClasses)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.customIconChildren),1)]),_:1},8,["class"])}Kf.render=ly;var uy=Kf,Xf=a.defineComponent({name:"VtToast",components:{ProgressBar:Vg,CloseButton:Ug,Icon:uy},inheritAttrs:!1,props:Object.assign({},dr.CORE_TOAST,dr.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const e=[`${En}__toast`,`${En}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&e.push("disable-transition"),this.rtl&&e.push(`${En}__toast--rtl`),e},bodyClasses(){return[`${En}__toast-${$i(this.content)?"body":"component-body"}`].concat(this.bodyClassName)},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return Cc(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeUnmount(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},methods:{hasProp:jn,getVueComponentFromObj:Eo,closeToast(){this.eventBus.emit(dn.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(!this.beingDragged||this.dragStart===this.dragPos.x)&&this.closeToast()},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const e=this.$el;e.addEventListener("touchstart",this.onDragStart,{passive:!0}),e.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const e=this.$el;e.removeEventListener("touchstart",this.onDragStart),e.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(e){this.beingDragged=!0,this.dragPos={x:Ps(e),y:Tc(e)},this.dragStart=Ps(e),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(e){this.beingDragged&&(e.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:Ps(e),y:Tc(e)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,Cc(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0}))}}}),cy=["role"];function dy(e,t){const n=a.resolveComponent("Icon"),r=a.resolveComponent("CloseButton"),o=a.resolveComponent("ProgressBar");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.draggableStyle),onClick:t[0]||(t[0]=(...i)=>e.clickHandler&&e.clickHandler(...i)),onMouseenter:t[1]||(t[1]=(...i)=>e.hoverPause&&e.hoverPause(...i)),onMouseleave:t[2]||(t[2]=(...i)=>e.hoverPlay&&e.hoverPlay(...i))},[e.icon?(a.openBlock(),a.createBlock(n,{key:0,"custom-icon":e.icon,type:e.type},null,8,["custom-icon","type"])):a.createCommentVNode("v-if",!0),a.createElementVNode("div",{role:e.accessibility.toastRole||"alert",class:a.normalizeClass(e.bodyClasses)},[typeof e.content=="string"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(e.content),1)],2112)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.getVueComponentFromObj(e.content)),a.mergeProps({key:1,"toast-id":e.id},e.hasProp(e.content,"props")?e.content.props:{},a.toHandlers(e.hasProp(e.content,"listeners")?e.content.listeners:{}),{onCloseToast:e.closeToast}),null,16,["toast-id","onCloseToast"]))],10,cy),e.closeButton?(a.openBlock(),a.createBlock(r,{key:1,component:e.closeButton,"class-names":e.closeButtonClassName,"show-on-hover":e.showCloseButtonOnHover,"aria-label":e.accessibility.closeButtonLabel,onClick:a.withModifiers(e.closeToast,["stop"])},null,8,["component","class-names","show-on-hover","aria-label","onClick"])):a.createCommentVNode("v-if",!0),e.timeout?(a.openBlock(),a.createBlock(o,{key:2,"is-running":e.isRunning,"hide-progress-bar":e.hideProgressBar,timeout:e.timeout,onCloseToast:e.timeoutHandler},null,8,["is-running","hide-progress-bar","timeout","onCloseToast"])):a.createCommentVNode("v-if",!0)],38)}Xf.render=dy;var fy=Xf,Jf=a.defineComponent({name:"VtTransition",props:dr.TRANSITION,emits:["leave"],methods:{hasProp:jn,leave(e){e instanceof HTMLElement&&(e.style.left=e.offsetLeft+"px",e.style.top=e.offsetTop+"px",e.style.width=getComputedStyle(e).width,e.style.position="absolute")}}});function py(e,t){return a.openBlock(),a.createBlock(a.TransitionGroup,{tag:"div","enter-active-class":e.transition.enter?e.transition.enter:`${e.transition}-enter-active`,"move-class":e.transition.move?e.transition.move:`${e.transition}-move`,"leave-active-class":e.transition.leave?e.transition.leave:`${e.transition}-leave-active`,onLeave:e.leave},{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default")]),_:3},8,["enter-active-class","move-class","leave-active-class","onLeave"])}Jf.render=py;var hy=Jf,Qf=a.defineComponent({name:"VueToastification",devtools:{hide:!0},components:{Toast:fy,VtTransition:hy},props:Object.assign({},dr.CORE_TOAST,dr.CONTAINER,dr.TRANSITION),data(){return{count:0,positions:Object.values(co),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const e=this.eventBus;e.on(dn.ADD,this.addToast),e.on(dn.CLEAR,this.clearToasts),e.on(dn.DISMISS,this.dismissToast),e.on(dn.UPDATE,this.updateToast),e.on(dn.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(e){Ai(e)&&(e=await e()),Ng(this.$el),e.appendChild(this.$el)},setToast(e){Lr(e.id)||(this.toasts[e.id]=e)},addToast(e){e.content=Og(e.content);const t=Object.assign({},this.defaults,e.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[e.type],e),n=this.defaults.filterBeforeCreate(t,this.toastArray);n&&this.setToast(n)},dismissToast(e){const t=this.toasts[e];!Lr(t)&&!Lr(t.onClose)&&t.onClose(),delete this.toasts[e]},clearToasts(){Object.keys(this.toasts).forEach(e=>{this.dismissToast(e)})},getPositionToasts(e){const t=this.filteredToasts.filter(n=>n.position===e).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?t.reverse():t},updateDefaults(e){Lr(e.container)||this.setup(e.container),this.defaults=Object.assign({},this.defaults,e)},updateToast({id:e,options:t,create:n}){this.toasts[e]?(t.timeout&&t.timeout===this.toasts[e].timeout&&t.timeout++,this.setToast(Object.assign({},this.toasts[e],t))):n&&this.addToast(Object.assign({},{id:e},t))},getClasses(e){return[`${En}__container`,e].concat(this.defaults.containerClassName)}}});function my(e,t){const n=a.resolveComponent("Toast"),r=a.resolveComponent("VtTransition");return a.openBlock(),a.createElementBlock("div",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.positions,o=>(a.openBlock(),a.createElementBlock("div",{key:o},[a.createVNode(r,{transition:e.defaults.transition,class:a.normalizeClass(e.getClasses(o))},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.getPositionToasts(o),i=>(a.openBlock(),a.createBlock(n,a.mergeProps({key:i.id},i),null,16))),128))]),_:2},1032,["transition","class"])]))),128))])}Qf.render=my;var vy=Qf,xc=(e={},t=!0)=>{const n=e.eventBus=e.eventBus||new nu;t&&a.nextTick(()=>{const i=a.createApp(vy,Af({},e)),s=i.mount(document.createElement("div")),l=e.onMounted;if(Lr(l)||l(s,i),e.shareAppContext){const u=e.shareAppContext;u===!0?console.warn(`[${En}] App to share context with was not provided.`):(i._context.components=u._context.components,i._context.directives=u._context.directives,i._context.mixins=u._context.mixins,i._context.provides=u._context.provides,i.config.globalProperties=u.config.globalProperties)}});const r=(i,s)=>{const l=Object.assign({},{id:Dg(),type:cn.DEFAULT},s,{content:i});return n.emit(dn.ADD,l),l.id};r.clear=()=>n.emit(dn.CLEAR,void 0),r.updateDefaults=i=>{n.emit(dn.UPDATE_DEFAULTS,i)},r.dismiss=i=>{n.emit(dn.DISMISS,i)};function o(i,{content:s,options:l},u=!1){const c=Object.assign({},l,{content:s});n.emit(dn.UPDATE,{id:i,options:c,create:u})}return r.update=o,r.success=(i,s)=>r(i,Object.assign({},s,{type:cn.SUCCESS})),r.info=(i,s)=>r(i,Object.assign({},s,{type:cn.INFO})),r.error=(i,s)=>r(i,Object.assign({},s,{type:cn.ERROR})),r.warning=(i,s)=>r(i,Object.assign({},s,{type:cn.WARNING})),r},gy=()=>{const e=()=>console.warn(`[${En}] This plugin does not support SSR!`);return new Proxy(e,{get(){return e}})};function sl(e){return Bg()?Mg(e)?xc({eventBus:e},!1):xc(e,!0):gy()}var ru=Symbol("VueToastification"),Zf=new nu,yy=(e,t)=>{(t==null?void 0:t.shareAppContext)===!0&&(t.shareAppContext=e);const n=sl(Af({eventBus:Zf},t));e.provide(ru,n)},by=e=>{if(e)return sl(e);const t=a.getCurrentInstance()?a.inject(ru,void 0):void 0;return t||sl(Zf)},_y=yy;/*!
|
|
2
|
-
* vue-tippy v6.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),St=require("@headlessui/vue"),x0=require("vue-router"),rs=require("@vueuse/core");var I0=Object.defineProperty,Pd=Object.getOwnPropertySymbols,P0=Object.prototype.hasOwnProperty,O0=Object.prototype.propertyIsEnumerable,Od=(e,t,n)=>t in e?I0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sh=(e,t)=>{for(var n in t||(t={}))P0.call(t,n)&&Od(e,n,t[n]);if(Pd)for(var n of Pd(t))O0.call(t,n)&&Od(e,n,t[n]);return e},Rs=e=>typeof e=="function",$s=e=>typeof e=="string",lh=e=>$s(e)&&e.trim().length>0,N0=e=>typeof e=="number",ia=e=>typeof e>"u",Xo=e=>typeof e=="object"&&e!==null,D0=e=>nr(e,"tag")&&lh(e.tag),uh=e=>window.TouchEvent&&e instanceof TouchEvent,ch=e=>nr(e,"component")&&dh(e.component),M0=e=>Rs(e)||Xo(e),dh=e=>!ia(e)&&($s(e)||M0(e)||ch(e)),Nd=e=>Xo(e)&&["height","width","right","left","top","bottom"].every(t=>N0(e[t])),nr=(e,t)=>(Xo(e)||Rs(e))&&t in e,B0=(e=>()=>e++)(0);function wl(e){return uh(e)?e.targetTouches[0].clientX:e.clientX}function Dd(e){return uh(e)?e.targetTouches[0].clientY:e.clientY}var A0=e=>{ia(e.remove)?e.parentNode&&e.parentNode.removeChild(e):e.remove()},fi=e=>ch(e)?fi(e.component):D0(e)?a.defineComponent({render(){return e}}):typeof e=="string"?e:a.toRaw(a.unref(e)),R0=e=>{if(typeof e=="string")return e;const t=nr(e,"props")&&Xo(e.props)?e.props:{},n=nr(e,"listeners")&&Xo(e.listeners)?e.listeners:{};return{component:fi(e),props:t,listeners:n}},$0=()=>typeof window<"u",Qu=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))}},L0=e=>["on","off","emit"].every(t=>nr(e,t)&&Rs(e[t])),mn;(function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.DEFAULT="default"})(mn||(mn={}));var Jo;(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"})(Jo||(Jo={}));var vn;(function(e){e.ADD="add",e.DISMISS="dismiss",e.UPDATE="update",e.CLEAR="clear",e.UPDATE_DEFAULTS="update_defaults"})(vn||(vn={}));var An="Vue-Toastification",Mn={type:{type:String,default:mn.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},fh={type:Mn.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},Ki={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:Mn.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},nu={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},ph={transition:{type:[Object,String],default:`${An}__bounce`}},V0={position:{type:String,default:Jo.TOP_RIGHT},draggable:Mn.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:Mn.trueBoolean,pauseOnHover:Mn.trueBoolean,closeOnClick:Mn.trueBoolean,timeout:nu.timeout,hideProgressBar:nu.hideProgressBar,toastClassName:Mn.classNames,bodyClassName:Mn.classNames,icon:fh.customIcon,closeButton:Ki.component,closeButtonClassName:Ki.classNames,showCloseButtonOnHover:Ki.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new Qu}},F0={id:{type:[String,Number],required:!0,default:0},type:Mn.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},H0={container:{type:[Object,Function],default:()=>document.body},newestOnTop:Mn.trueBoolean,maxToasts:{type:Number,default:20},transition:ph.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:e=>e},filterToasts:{type:Function,default:e=>e},containerClassName:Mn.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},Sr={CORE_TOAST:V0,TOAST:F0,CONTAINER:H0,PROGRESS_BAR:nu,ICON:fh,TRANSITION:ph,CLOSE_BUTTON:Ki},hh=a.defineComponent({name:"VtProgressBar",props:Sr.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?`${An}__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 U0(e,t){return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style),class:a.normalizeClass(e.cpClass)},null,6)}hh.render=U0;var z0=hh,mh=a.defineComponent({name:"VtCloseButton",props:Sr.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?fi(this.component):"button"},classes(){const e=[`${An}__close-button`];return this.showOnHover&&e.push("show-on-hover"),e.concat(this.classNames)}}}),j0=a.createTextVNode(" × ");function W0(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(()=>[j0]),_:1},16,["aria-label","class"])}mh.render=W0;var q0=mh,vh={},Y0={"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"},G0=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),K0=[G0];function X0(e,t){return a.openBlock(),a.createElementBlock("svg",Y0,K0)}vh.render=X0;var J0=vh,gh={},Z0={"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"},Q0=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),eb=[Q0];function tb(e,t){return a.openBlock(),a.createElementBlock("svg",Z0,eb)}gh.render=tb;var Md=gh,yh={},nb={"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"},rb=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),ab=[rb];function ob(e,t){return a.openBlock(),a.createElementBlock("svg",nb,ab)}yh.render=ob;var ib=yh,bh={},sb={"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"},lb=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),ub=[lb];function cb(e,t){return a.openBlock(),a.createElementBlock("svg",sb,ub)}bh.render=cb;var db=bh,_h=a.defineComponent({name:"VtIcon",props:Sr.ICON,computed:{customIconChildren(){return nr(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return $s(this.customIcon)?this.trimValue(this.customIcon):nr(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return nr(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:dh(this.customIcon)?fi(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[mn.DEFAULT]:Md,[mn.INFO]:Md,[mn.SUCCESS]:J0,[mn.ERROR]:db,[mn.WARNING]:ib}[this.type]},iconClasses(){const e=[`${An}__icon`];return this.hasCustomIcon?e.concat(this.customIconClass):e}},methods:{trimValue(e,t=""){return lh(e)?e.trim():t}}});function fb(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"])}_h.render=fb;var pb=_h,wh=a.defineComponent({name:"VtToast",components:{ProgressBar:z0,CloseButton:q0,Icon:pb},inheritAttrs:!1,props:Object.assign({},Sr.CORE_TOAST,Sr.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const e=[`${An}__toast`,`${An}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&e.push("disable-transition"),this.rtl&&e.push(`${An}__toast--rtl`),e},bodyClasses(){return[`${An}__toast-${$s(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 Nd(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:nr,getVueComponentFromObj:fi,closeToast(){this.eventBus.emit(vn.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:wl(e),y:Dd(e)},this.dragStart=wl(e),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(e){this.beingDragged&&(e.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:wl(e),y:Dd(e)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,Nd(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}))}}}),hb=["role"];function mb(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,hb),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)}wh.render=mb;var vb=wh,kh=a.defineComponent({name:"VtTransition",props:Sr.TRANSITION,emits:["leave"],methods:{hasProp:nr,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 gb(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"])}kh.render=gb;var yb=kh,Sh=a.defineComponent({name:"VueToastification",devtools:{hide:!0},components:{Toast:vb,VtTransition:yb},props:Object.assign({},Sr.CORE_TOAST,Sr.CONTAINER,Sr.TRANSITION),data(){return{count:0,positions:Object.values(Jo),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const e=this.eventBus;e.on(vn.ADD,this.addToast),e.on(vn.CLEAR,this.clearToasts),e.on(vn.DISMISS,this.dismissToast),e.on(vn.UPDATE,this.updateToast),e.on(vn.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(e){Rs(e)&&(e=await e()),A0(this.$el),e.appendChild(this.$el)},setToast(e){ia(e.id)||(this.toasts[e.id]=e)},addToast(e){e.content=R0(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];!ia(t)&&!ia(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){ia(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[`${An}__container`,e].concat(this.defaults.containerClassName)}}});function bb(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))])}Sh.render=bb;var _b=Sh,Bd=(e={},t=!0)=>{const n=e.eventBus=e.eventBus||new Qu;t&&a.nextTick(()=>{const i=a.createApp(_b,sh({},e)),s=i.mount(document.createElement("div")),l=e.onMounted;if(ia(l)||l(s,i),e.shareAppContext){const u=e.shareAppContext;u===!0?console.warn(`[${An}] App to share context with was not provided.`):(i._context.components=u._context.components,i._context.directives=u._context.directives,i._context.mixins=u._context.mixins,i._context.provides=u._context.provides,i.config.globalProperties=u.config.globalProperties)}});const r=(i,s)=>{const l=Object.assign({},{id:B0(),type:mn.DEFAULT},s,{content:i});return n.emit(vn.ADD,l),l.id};r.clear=()=>n.emit(vn.CLEAR,void 0),r.updateDefaults=i=>{n.emit(vn.UPDATE_DEFAULTS,i)},r.dismiss=i=>{n.emit(vn.DISMISS,i)};function o(i,{content:s,options:l},u=!1){const d=Object.assign({},l,{content:s});n.emit(vn.UPDATE,{id:i,options:d,create:u})}return r.update=o,r.success=(i,s)=>r(i,Object.assign({},s,{type:mn.SUCCESS})),r.info=(i,s)=>r(i,Object.assign({},s,{type:mn.INFO})),r.error=(i,s)=>r(i,Object.assign({},s,{type:mn.ERROR})),r.warning=(i,s)=>r(i,Object.assign({},s,{type:mn.WARNING})),r},wb=()=>{const e=()=>console.warn(`[${An}] This plugin does not support SSR!`);return new Proxy(e,{get(){return e}})};function ru(e){return $0()?L0(e)?Bd({eventBus:e},!1):Bd(e,!0):wb()}var ec=Symbol("VueToastification"),Ch=new Qu,kb=(e,t)=>{(t==null?void 0:t.shareAppContext)===!0&&(t.shareAppContext=e);const n=ru(sh({eventBus:Ch},t));e.provide(ec,n)},Sb=e=>{if(e)return ru(e);const t=a.getCurrentInstance()?a.inject(ec,void 0):void 0;return t||ru(Ch)},Cb=kb;/*!
|
|
2
|
+
* vue-tippy v6.4.1
|
|
3
3
|
* (c) 2023
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/var on="top",bn="bottom",_n="right",sn="left",au="auto",xo=[on,bn,_n,sn],ya="start",fo="end",wy="clippingParents",ep="viewport",ja="popper",ky="reference",Pc=xo.reduce(function(e,t){return e.concat([t+"-"+ya,t+"-"+fo])},[]),tp=[].concat(xo,[au]).reduce(function(e,t){return e.concat([t,t+"-"+ya,t+"-"+fo])},[]),Sy="beforeRead",Cy="read",Ty="afterRead",Ey="beforeMain",xy="main",Py="afterMain",Iy="beforeWrite",Dy="write",Ny="afterWrite",Oy=[Sy,Cy,Ty,Ey,xy,Py,Iy,Dy,Ny];function Gn(e){return e?(e.nodeName||"").toLowerCase():null}function Dn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ba(e){var t=Dn(e).Element;return e instanceof t||e instanceof Element}function gn(e){var t=Dn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function np(e){if(typeof ShadowRoot>"u")return!1;var t=Dn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function By(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!gn(i)||!Gn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function My(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(u,c){return u[c]="",u},{});!gn(o)||!Gn(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(u){o.removeAttribute(u)}))})}}var rp={name:"applyStyles",enabled:!0,phase:"write",fn:By,effect:My,requires:["computeStyles"]};function Wn(e){return e.split("-")[0]}var Ur=Math.max,ci=Math.min,_a=Math.round;function wa(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(gn(e)&&t){var i=e.offsetHeight,s=e.offsetWidth;s>0&&(r=_a(n.width)/s||1),i>0&&(o=_a(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function ou(e){var t=wa(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ap(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&np(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Kn(e){return Dn(e).getComputedStyle(e)}function Ry(e){return["table","td","th"].indexOf(Gn(e))>=0}function Tr(e){return((ba(e)?e.ownerDocument:e.document)||window.document).documentElement}function Li(e){return Gn(e)==="html"?e:e.assignedSlot||e.parentNode||(np(e)?e.host:null)||Tr(e)}function Ic(e){return!gn(e)||Kn(e).position==="fixed"?null:e.offsetParent}function Ay(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&gn(e)){var r=Kn(e);if(r.position==="fixed")return null}for(var o=Li(e);gn(o)&&["html","body"].indexOf(Gn(o))<0;){var i=Kn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Po(e){for(var t=Dn(e),n=Ic(e);n&&Ry(n)&&Kn(n).position==="static";)n=Ic(n);return n&&(Gn(n)==="html"||Gn(n)==="body"&&Kn(n).position==="static")?t:n||Ay(e)||t}function iu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qa(e,t,n){return Ur(e,ci(t,n))}function $y(e,t,n){var r=Qa(e,t,n);return r>n?n:r}function op(){return{top:0,right:0,bottom:0,left:0}}function ip(e){return Object.assign({},op(),e)}function sp(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Ly=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ip(typeof t!="number"?t:sp(t,xo))};function Vy(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Wn(n.placement),u=iu(l),c=[sn,_n].indexOf(l)>=0,f=c?"height":"width";if(!(!i||!s)){var p=Ly(o.padding,n),h=ou(i),m=u==="y"?on:sn,y=u==="y"?bn:_n,k=n.rects.reference[f]+n.rects.reference[u]-s[u]-n.rects.popper[f],b=s[u]-n.rects.reference[u],w=Po(i),T=w?u==="y"?w.clientHeight||0:w.clientWidth||0:0,O=k/2-b/2,_=p[m],B=T-h[f]-p[y],C=T/2-h[f]/2+O,I=Qa(_,C,B),F=u;n.modifiersData[r]=(t={},t[F]=I,t.centerOffset=I-C,t)}}function Fy(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||ap(t.elements.popper,o)&&(t.elements.arrow=o))}var Hy={name:"arrow",enabled:!0,phase:"main",fn:Vy,effect:Fy,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ka(e){return e.split("-")[1]}var Uy={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zy(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:_a(t*o)/o||0,y:_a(n*o)/o||0}}function Dc(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,p=e.isFixed,h=f===!0?zy(s):typeof f=="function"?f(s):s,m=h.x,y=m===void 0?0:m,k=h.y,b=k===void 0?0:k,w=s.hasOwnProperty("x"),T=s.hasOwnProperty("y"),O=sn,_=on,B=window;if(c){var C=Po(n),I="clientHeight",F="clientWidth";if(C===Dn(n)&&(C=Tr(n),Kn(C).position!=="static"&&l==="absolute"&&(I="scrollHeight",F="scrollWidth")),C=C,o===on||(o===sn||o===_n)&&i===fo){_=bn;var q=p&&B.visualViewport?B.visualViewport.height:C[I];b-=q-r.height,b*=u?1:-1}if(o===sn||(o===on||o===bn)&&i===fo){O=_n;var W=p&&B.visualViewport?B.visualViewport.width:C[F];y-=W-r.width,y*=u?1:-1}}var M=Object.assign({position:l},c&&Uy);if(u){var D;return Object.assign({},M,(D={},D[_]=T?"0":"",D[O]=w?"0":"",D.transform=(B.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",D))}return Object.assign({},M,(t={},t[_]=T?b+"px":"",t[O]=w?y+"px":"",t.transform="",t))}function jy(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,u=l===void 0?!0:l,c={placement:Wn(t.placement),variation:ka(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Dc(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Dc(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Wy={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jy,data:{}},Lo={passive:!0};function qy(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,u=Dn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(f){f.addEventListener("scroll",n.update,Lo)}),l&&u.addEventListener("resize",n.update,Lo),function(){i&&c.forEach(function(f){f.removeEventListener("scroll",n.update,Lo)}),l&&u.removeEventListener("resize",n.update,Lo)}}var Yy={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qy,data:{}},Gy={left:"right",right:"left",bottom:"top",top:"bottom"};function ni(e){return e.replace(/left|right|bottom|top/g,function(t){return Gy[t]})}var Ky={start:"end",end:"start"};function Nc(e){return e.replace(/start|end/g,function(t){return Ky[t]})}function su(e){var t=Dn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function lu(e){return wa(Tr(e)).left+su(e).scrollLeft}function Xy(e){var t=Dn(e),n=Tr(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,s=0,l=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,l=r.offsetTop)),{width:o,height:i,x:s+lu(e),y:l}}function Jy(e){var t,n=Tr(e),r=su(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ur(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ur(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+lu(e),u=-r.scrollTop;return Kn(o||n).direction==="rtl"&&(l+=Ur(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:u}}function uu(e){var t=Kn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function lp(e){return["html","body","#document"].indexOf(Gn(e))>=0?e.ownerDocument.body:gn(e)&&uu(e)?e:lp(Li(e))}function Za(e,t){var n;t===void 0&&(t=[]);var r=lp(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Dn(r),s=o?[i].concat(i.visualViewport||[],uu(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(Za(Li(s)))}function ll(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Qy(e){var t=wa(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Oc(e,t){return t===ep?ll(Xy(e)):ba(t)?Qy(t):ll(Jy(Tr(e)))}function Zy(e){var t=Za(Li(e)),n=["absolute","fixed"].indexOf(Kn(e).position)>=0,r=n&&gn(e)?Po(e):e;return ba(r)?t.filter(function(o){return ba(o)&&ap(o,r)&&Gn(o)!=="body"&&(n?Kn(o).position!=="static":!0)}):[]}function e0(e,t,n){var r=t==="clippingParents"?Zy(e):[].concat(t),o=[].concat(r,[n]),i=o[0],s=o.reduce(function(l,u){var c=Oc(e,u);return l.top=Ur(c.top,l.top),l.right=ci(c.right,l.right),l.bottom=ci(c.bottom,l.bottom),l.left=Ur(c.left,l.left),l},Oc(e,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function up(e){var t=e.reference,n=e.element,r=e.placement,o=r?Wn(r):null,i=r?ka(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(o){case on:u={x:s,y:t.y-n.height};break;case bn:u={x:s,y:t.y+t.height};break;case _n:u={x:t.x+t.width,y:l};break;case sn:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var c=o?iu(o):null;if(c!=null){var f=c==="y"?"height":"width";switch(i){case ya:u[c]=u[c]-(t[f]/2-n[f]/2);break;case fo:u[c]=u[c]+(t[f]/2-n[f]/2);break}}return u}function po(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.boundary,s=i===void 0?wy:i,l=n.rootBoundary,u=l===void 0?ep:l,c=n.elementContext,f=c===void 0?ja:c,p=n.altBoundary,h=p===void 0?!1:p,m=n.padding,y=m===void 0?0:m,k=ip(typeof y!="number"?y:sp(y,xo)),b=f===ja?ky:ja,w=e.rects.popper,T=e.elements[h?b:f],O=e0(ba(T)?T:T.contextElement||Tr(e.elements.popper),s,u),_=wa(e.elements.reference),B=up({reference:_,element:w,strategy:"absolute",placement:o}),C=ll(Object.assign({},w,B)),I=f===ja?C:_,F={top:O.top-I.top+k.top,bottom:I.bottom-O.bottom+k.bottom,left:O.left-I.left+k.left,right:I.right-O.right+k.right},q=e.modifiersData.offset;if(f===ja&&q){var W=q[o];Object.keys(F).forEach(function(M){var D=[_n,bn].indexOf(M)>=0?1:-1,$=[on,bn].indexOf(M)>=0?"y":"x";F[M]+=W[$]*D})}return F}function t0(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?tp:u,f=ka(r),p=f?l?Pc:Pc.filter(function(y){return ka(y)===f}):xo,h=p.filter(function(y){return c.indexOf(y)>=0});h.length===0&&(h=p);var m=h.reduce(function(y,k){return y[k]=po(e,{placement:k,boundary:o,rootBoundary:i,padding:s})[Wn(k)],y},{});return Object.keys(m).sort(function(y,k){return m[y]-m[k]})}function n0(e){if(Wn(e)===au)return[];var t=ni(e);return[Nc(e),t,Nc(t)]}function r0(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,u=n.fallbackPlacements,c=n.padding,f=n.boundary,p=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,y=m===void 0?!0:m,k=n.allowedAutoPlacements,b=t.options.placement,w=Wn(b),T=w===b,O=u||(T||!y?[ni(b)]:n0(b)),_=[b].concat(O).reduce(function(E,P){return E.concat(Wn(P)===au?t0(t,{placement:P,boundary:f,rootBoundary:p,padding:c,flipVariations:y,allowedAutoPlacements:k}):P)},[]),B=t.rects.reference,C=t.rects.popper,I=new Map,F=!0,q=_[0],W=0;W<_.length;W++){var M=_[W],D=Wn(M),$=ka(M)===ya,Y=[on,bn].indexOf(D)>=0,X=Y?"width":"height",K=po(t,{placement:M,boundary:f,rootBoundary:p,altBoundary:h,padding:c}),j=Y?$?_n:sn:$?bn:on;B[X]>C[X]&&(j=ni(j));var U=ni(j),S=[];if(i&&S.push(K[D]<=0),l&&S.push(K[j]<=0,K[U]<=0),S.every(function(E){return E})){q=M,F=!1;break}I.set(M,S)}if(F)for(var H=y?3:1,Z=function(P){var R=_.find(function(G){var ie=I.get(G);if(ie)return ie.slice(0,P).every(function(oe){return oe})});if(R)return q=R,"break"},Q=H;Q>0;Q--){var V=Z(Q);if(V==="break")break}t.placement!==q&&(t.modifiersData[r]._skip=!0,t.placement=q,t.reset=!0)}}var a0={name:"flip",enabled:!0,phase:"main",fn:r0,requiresIfExists:["offset"],data:{_skip:!1}};function Bc(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Mc(e){return[on,_n,bn,sn].some(function(t){return e[t]>=0})}function o0(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=po(t,{elementContext:"reference"}),l=po(t,{altBoundary:!0}),u=Bc(s,r),c=Bc(l,o,i),f=Mc(u),p=Mc(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}var i0={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:o0};function s0(e,t,n){var r=Wn(e),o=[sn,on].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*o,[sn,_n].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function l0(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=tp.reduce(function(f,p){return f[p]=s0(p,t.rects,i),f},{}),l=s[t.placement],u=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}var u0={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:l0};function c0(e){var t=e.state,n=e.name;t.modifiersData[n]=up({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var d0={name:"popperOffsets",enabled:!0,phase:"read",fn:c0,data:{}};function f0(e){return e==="x"?"y":"x"}function p0(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,u=n.boundary,c=n.rootBoundary,f=n.altBoundary,p=n.padding,h=n.tether,m=h===void 0?!0:h,y=n.tetherOffset,k=y===void 0?0:y,b=po(t,{boundary:u,rootBoundary:c,padding:p,altBoundary:f}),w=Wn(t.placement),T=ka(t.placement),O=!T,_=iu(w),B=f0(_),C=t.modifiersData.popperOffsets,I=t.rects.reference,F=t.rects.popper,q=typeof k=="function"?k(Object.assign({},t.rects,{placement:t.placement})):k,W=typeof q=="number"?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(C){if(i){var $,Y=_==="y"?on:sn,X=_==="y"?bn:_n,K=_==="y"?"height":"width",j=C[_],U=j+b[Y],S=j-b[X],H=m?-F[K]/2:0,Z=T===ya?I[K]:F[K],Q=T===ya?-F[K]:-I[K],V=t.elements.arrow,E=m&&V?ou(V):{width:0,height:0},P=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:op(),R=P[Y],G=P[X],ie=Qa(0,I[K],E[K]),oe=O?I[K]/2-H-ie-R-W.mainAxis:Z-ie-R-W.mainAxis,Ie=O?-I[K]/2+H+ie+G+W.mainAxis:Q+ie+G+W.mainAxis,Ee=t.elements.arrow&&Po(t.elements.arrow),fe=Ee?_==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,Be=($=M==null?void 0:M[_])!=null?$:0,$e=j+oe-Be-fe,ze=j+Ie-Be,Ge=Qa(m?ci(U,$e):U,j,m?Ur(S,ze):S);C[_]=Ge,D[_]=Ge-j}if(l){var Ke,ve=_==="x"?on:sn,Qe=_==="x"?bn:_n,Te=C[B],se=B==="y"?"height":"width",ce=Te+b[ve],me=Te-b[Qe],Pt=[on,sn].indexOf(w)!==-1,xe=(Ke=M==null?void 0:M[B])!=null?Ke:0,Mt=Pt?ce:Te-I[se]-F[se]-xe+W.altAxis,Ut=Pt?Te+I[se]+F[se]-xe-W.altAxis:me,Rt=m&&Pt?$y(Mt,Te,Ut):Qa(m?Mt:ce,Te,m?Ut:me);C[B]=Rt,D[B]=Rt-Te}t.modifiersData[r]=D}}var h0={name:"preventOverflow",enabled:!0,phase:"main",fn:p0,requiresIfExists:["offset"]};function m0(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function v0(e){return e===Dn(e)||!gn(e)?su(e):m0(e)}function g0(e){var t=e.getBoundingClientRect(),n=_a(t.width)/e.offsetWidth||1,r=_a(t.height)/e.offsetHeight||1;return n!==1||r!==1}function y0(e,t,n){n===void 0&&(n=!1);var r=gn(t),o=gn(t)&&g0(t),i=Tr(t),s=wa(e,o),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Gn(t)!=="body"||uu(i))&&(l=v0(t)),gn(t)?(u=wa(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=lu(i))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function b0(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&o(u)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function _0(e){var t=b0(e);return Oy.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function w0(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function k0(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Rc={placement:"bottom",modifiers:[],strategy:"absolute"};function Ac(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function S0(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Rc:o;return function(l,u,c){c===void 0&&(c=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rc,i),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},p=[],h=!1,m={state:f,setOptions:function(w){var T=typeof w=="function"?w(f.options):w;k(),f.options=Object.assign({},i,f.options,T),f.scrollParents={reference:ba(l)?Za(l):l.contextElement?Za(l.contextElement):[],popper:Za(u)};var O=_0(k0([].concat(r,f.options.modifiers)));return f.orderedModifiers=O.filter(function(_){return _.enabled}),y(),m.update()},forceUpdate:function(){if(!h){var w=f.elements,T=w.reference,O=w.popper;if(Ac(T,O)){f.rects={reference:y0(T,Po(O),f.options.strategy==="fixed"),popper:ou(O)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(W){return f.modifiersData[W.name]=Object.assign({},W.data)});for(var _=0;_<f.orderedModifiers.length;_++){if(f.reset===!0){f.reset=!1,_=-1;continue}var B=f.orderedModifiers[_],C=B.fn,I=B.options,F=I===void 0?{}:I,q=B.name;typeof C=="function"&&(f=C({state:f,options:F,name:q,instance:m})||f)}}}},update:w0(function(){return new Promise(function(b){m.forceUpdate(),b(f)})}),destroy:function(){k(),h=!0}};if(!Ac(l,u))return m;m.setOptions(c).then(function(b){!h&&c.onFirstUpdate&&c.onFirstUpdate(b)});function y(){f.orderedModifiers.forEach(function(b){var w=b.name,T=b.options,O=T===void 0?{}:T,_=b.effect;if(typeof _=="function"){var B=_({state:f,name:w,instance:m,options:O}),C=function(){};p.push(B||C)}})}function k(){p.forEach(function(b){return b()}),p=[]}return m}}var C0=[Yy,d0,Wy,rp,u0,a0,h0,Hy,i0],T0=S0({defaultModifiers:C0}),E0="tippy-box",cp="tippy-content",dp="tippy-backdrop",fp="tippy-arrow",pp="tippy-svg-arrow",Mr={passive:!0,capture:!0},hp=function(){return document.body};function Is(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function cu(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function mp(e,t){return typeof e=="function"?e.apply(void 0,t):e}function $c(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function x0(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function P0(e){return e.split(/\s+/).filter(Boolean)}function Ar(e){return[].concat(e)}function Lc(e,t){e.indexOf(t)===-1&&e.push(t)}function I0(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function vp(e){return e.split("-")[0]}function Sa(e){return[].slice.call(e)}function Vc(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function zr(){return document.createElement("div")}function Vi(e){return["Element","Fragment"].some(function(t){return cu(e,t)})}function D0(e){return cu(e,"NodeList")}function du(e){return cu(e,"MouseEvent")}function N0(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function O0(e){return Vi(e)?[e]:D0(e)?Sa(e):Array.isArray(e)?e:Sa(document.querySelectorAll(e))}function Ds(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function ho(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function gp(e){var t,n=Ar(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function B0(e,t){var n=t.clientX,r=t.clientY;return e.every(function(o){var i=o.popperRect,s=o.popperState,l=o.props,u=l.interactiveBorder,c=vp(s.placement),f=s.modifiersData.offset;if(!f)return!0;var p=c==="bottom"?f.top.y:0,h=c==="top"?f.bottom.y:0,m=c==="right"?f.left.x:0,y=c==="left"?f.right.x:0,k=i.top-r+p>u,b=r-i.bottom-h>u,w=i.left-n+m>u,T=n-i.right-y>u;return k||b||w||T})}function Ns(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[r](o,n)})}function Fc(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Rn={isTouch:!1},Hc=0;function M0(){Rn.isTouch||(Rn.isTouch=!0,window.performance&&document.addEventListener("mousemove",yp))}function yp(){var e=performance.now();e-Hc<20&&(Rn.isTouch=!1,document.removeEventListener("mousemove",yp)),Hc=e}function R0(){var e=document.activeElement;if(N0(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function A0(){document.addEventListener("touchstart",M0,Mr),window.addEventListener("blur",R0)}var $0=typeof window<"u"&&typeof document<"u",L0=$0?!!window.msCrypto:!1,V0={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},F0={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},xn=Object.assign({appendTo:hp,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},V0,F0),H0=Object.keys(xn),U0=function(t){var n=Object.keys(t);n.forEach(function(r){xn[r]=t[r]})};function bp(e){var t=e.plugins||[],n=t.reduce(function(r,o){var i=o.name,s=o.defaultValue;if(i){var l;r[i]=e[i]!==void 0?e[i]:(l=xn[i])!=null?l:s}return r},{});return Object.assign({},e,n)}function z0(e,t){var n=t?Object.keys(bp(Object.assign({},xn,{plugins:t}))):H0,r=n.reduce(function(o,i){var s=(e.getAttribute("data-tippy-"+i)||"").trim();if(!s)return o;if(i==="content")o[i]=s;else try{o[i]=JSON.parse(s)}catch{o[i]=s}return o},{});return r}function Uc(e,t){var n=Object.assign({},t,{content:mp(t.content,[e])},t.ignoreAttributes?{}:z0(e,t.plugins));return n.aria=Object.assign({},xn.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var j0=function(){return"innerHTML"};function ul(e,t){e[j0()]=t}function zc(e){var t=zr();return e===!0?t.className=fp:(t.className=pp,Vi(e)?t.appendChild(e):ul(t,e)),t}function jc(e,t){Vi(t.content)?(ul(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?ul(e,t.content):e.textContent=t.content)}function di(e){var t=e.firstElementChild,n=Sa(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(cp)}),arrow:n.find(function(r){return r.classList.contains(fp)||r.classList.contains(pp)}),backdrop:n.find(function(r){return r.classList.contains(dp)})}}function _p(e){var t=zr(),n=zr();n.className=E0,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=zr();r.className=cp,r.setAttribute("data-state","hidden"),jc(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props);function o(i,s){var l=di(t),u=l.box,c=l.content,f=l.arrow;s.theme?u.setAttribute("data-theme",s.theme):u.removeAttribute("data-theme"),typeof s.animation=="string"?u.setAttribute("data-animation",s.animation):u.removeAttribute("data-animation"),s.inertia?u.setAttribute("data-inertia",""):u.removeAttribute("data-inertia"),u.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?u.setAttribute("role",s.role):u.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&jc(c,e.props),s.arrow?f?i.arrow!==s.arrow&&(u.removeChild(f),u.appendChild(zc(s.arrow))):u.appendChild(zc(s.arrow)):f&&u.removeChild(f)}return{popper:t,onUpdate:o}}_p.$$tippy=!0;var W0=1,Vo=[],Os=[];function q0(e,t){var n=Uc(e,Object.assign({},xn,bp(Vc(t)))),r,o,i,s=!1,l=!1,u=!1,c=!1,f,p,h,m=[],y=$c($e,n.interactiveDebounce),k,b=W0++,w=null,T=I0(n.plugins),O={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},_={id:b,reference:e,popper:zr(),popperInstance:w,props:n,state:O,plugins:T,clearDelayTimeouts:Mt,setProps:Ut,setContent:Rt,show:zt,hide:kn,hideWithInteractivity:Sn,enable:Pt,disable:xe,unmount:Et,destroy:L};if(!n.render)return _;var B=n.render(_),C=B.popper,I=B.onUpdate;C.setAttribute("data-tippy-root",""),C.id="tippy-"+_.id,_.popper=C,e._tippy=_,C._tippy=_;var F=T.map(function(N){return N.fn(_)}),q=e.hasAttribute("aria-expanded");return Ee(),H(),j(),U("onCreate",[_]),n.showOnCreate&&ce(),C.addEventListener("mouseenter",function(){_.props.interactive&&_.state.isVisible&&_.clearDelayTimeouts()}),C.addEventListener("mouseleave",function(){_.props.interactive&&_.props.trigger.indexOf("mouseenter")>=0&&Y().addEventListener("mousemove",y)}),_;function W(){var N=_.props.touch;return Array.isArray(N)?N:[N,0]}function M(){return W()[0]==="hold"}function D(){var N;return!!((N=_.props.render)!=null&&N.$$tippy)}function $(){return k||e}function Y(){var N=$().parentNode;return N?gp(N):document}function X(){return di(C)}function K(N){return _.state.isMounted&&!_.state.isVisible||Rn.isTouch||f&&f.type==="focus"?0:Is(_.props.delay,N?0:1,xn.delay)}function j(N){N===void 0&&(N=!1),C.style.pointerEvents=_.props.interactive&&!N?"":"none",C.style.zIndex=""+_.props.zIndex}function U(N,ee,re){if(re===void 0&&(re=!0),F.forEach(function(we){we[N]&&we[N].apply(we,ee)}),re){var ge;(ge=_.props)[N].apply(ge,ee)}}function S(){var N=_.props.aria;if(N.content){var ee="aria-"+N.content,re=C.id,ge=Ar(_.props.triggerTarget||e);ge.forEach(function(we){var qe=we.getAttribute(ee);if(_.state.isVisible)we.setAttribute(ee,qe?qe+" "+re:re);else{var J=qe&&qe.replace(re,"").trim();J?we.setAttribute(ee,J):we.removeAttribute(ee)}})}}function H(){if(!(q||!_.props.aria.expanded)){var N=Ar(_.props.triggerTarget||e);N.forEach(function(ee){_.props.interactive?ee.setAttribute("aria-expanded",_.state.isVisible&&ee===$()?"true":"false"):ee.removeAttribute("aria-expanded")})}}function Z(){Y().removeEventListener("mousemove",y),Vo=Vo.filter(function(N){return N!==y})}function Q(N){if(!(Rn.isTouch&&(u||N.type==="mousedown"))){var ee=N.composedPath&&N.composedPath()[0]||N.target;if(!(_.props.interactive&&Fc(C,ee))){if(Ar(_.props.triggerTarget||e).some(function(re){return Fc(re,ee)})){if(Rn.isTouch||_.state.isVisible&&_.props.trigger.indexOf("click")>=0)return}else U("onClickOutside",[_,N]);_.props.hideOnClick===!0&&(_.clearDelayTimeouts(),_.hide(),l=!0,setTimeout(function(){l=!1}),_.state.isMounted||R())}}}function V(){u=!0}function E(){u=!1}function P(){var N=Y();N.addEventListener("mousedown",Q,!0),N.addEventListener("touchend",Q,Mr),N.addEventListener("touchstart",E,Mr),N.addEventListener("touchmove",V,Mr)}function R(){var N=Y();N.removeEventListener("mousedown",Q,!0),N.removeEventListener("touchend",Q,Mr),N.removeEventListener("touchstart",E,Mr),N.removeEventListener("touchmove",V,Mr)}function G(N,ee){oe(N,function(){!_.state.isVisible&&C.parentNode&&C.parentNode.contains(C)&&ee()})}function ie(N,ee){oe(N,ee)}function oe(N,ee){var re=X().box;function ge(we){we.target===re&&(Ns(re,"remove",ge),ee())}if(N===0)return ee();Ns(re,"remove",p),Ns(re,"add",ge),p=ge}function Ie(N,ee,re){re===void 0&&(re=!1);var ge=Ar(_.props.triggerTarget||e);ge.forEach(function(we){we.addEventListener(N,ee,re),m.push({node:we,eventType:N,handler:ee,options:re})})}function Ee(){M()&&(Ie("touchstart",Be,{passive:!0}),Ie("touchend",ze,{passive:!0})),P0(_.props.trigger).forEach(function(N){if(N!=="manual")switch(Ie(N,Be),N){case"mouseenter":Ie("mouseleave",ze);break;case"focus":Ie(L0?"focusout":"blur",Ge);break;case"focusin":Ie("focusout",Ge);break}})}function fe(){m.forEach(function(N){var ee=N.node,re=N.eventType,ge=N.handler,we=N.options;ee.removeEventListener(re,ge,we)}),m=[]}function Be(N){var ee,re=!1;if(!(!_.state.isEnabled||Ke(N)||l)){var ge=((ee=f)==null?void 0:ee.type)==="focus";f=N,k=N.currentTarget,H(),!_.state.isVisible&&du(N)&&Vo.forEach(function(we){return we(N)}),N.type==="click"&&(_.props.trigger.indexOf("mouseenter")<0||s)&&_.props.hideOnClick!==!1&&_.state.isVisible?re=!0:ce(N),N.type==="click"&&(s=!re),re&&!ge&&me(N)}}function $e(N){var ee=N.target,re=$().contains(ee)||C.contains(ee);if(!(N.type==="mousemove"&&re)){var ge=se().concat(C).map(function(we){var qe,J=we._tippy,le=(qe=J.popperInstance)==null?void 0:qe.state;return le?{popperRect:we.getBoundingClientRect(),popperState:le,props:n}:null}).filter(Boolean);B0(ge,N)&&(Z(),me(N))}}function ze(N){var ee=Ke(N)||_.props.trigger.indexOf("click")>=0&&s;if(!ee){if(_.props.interactive){_.hideWithInteractivity(N);return}me(N)}}function Ge(N){_.props.trigger.indexOf("focusin")<0&&N.target!==$()||_.props.interactive&&N.relatedTarget&&C.contains(N.relatedTarget)||me(N)}function Ke(N){return Rn.isTouch?M()!==N.type.indexOf("touch")>=0:!1}function ve(){Qe();var N=_.props,ee=N.popperOptions,re=N.placement,ge=N.offset,we=N.getReferenceClientRect,qe=N.moveTransition,J=D()?di(C).arrow:null,le=we?{getBoundingClientRect:we,contextElement:we.contextElement||$()}:e,Le={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(pe){var mt=pe.state;if(D()){var Me=X(),ln=Me.box;["placement","reference-hidden","escaped"].forEach(function(At){At==="placement"?ln.setAttribute("data-placement",mt.placement):mt.attributes.popper["data-popper-"+At]?ln.setAttribute("data-"+At,""):ln.removeAttribute("data-"+At)}),mt.attributes.popper={}}}},De=[{name:"offset",options:{offset:ge}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!qe}},Le];D()&&J&&De.push({name:"arrow",options:{element:J,padding:3}}),De.push.apply(De,(ee==null?void 0:ee.modifiers)||[]),_.popperInstance=T0(le,C,Object.assign({},ee,{placement:re,onFirstUpdate:h,modifiers:De}))}function Qe(){_.popperInstance&&(_.popperInstance.destroy(),_.popperInstance=null)}function Te(){var N=_.props.appendTo,ee,re=$();_.props.interactive&&N===hp||N==="parent"?ee=re.parentNode:ee=mp(N,[re]),ee.contains(C)||ee.appendChild(C),_.state.isMounted=!0,ve()}function se(){return Sa(C.querySelectorAll("[data-tippy-root]"))}function ce(N){_.clearDelayTimeouts(),N&&U("onTrigger",[_,N]),P();var ee=K(!0),re=W(),ge=re[0],we=re[1];Rn.isTouch&&ge==="hold"&&we&&(ee=we),ee?r=setTimeout(function(){_.show()},ee):_.show()}function me(N){if(_.clearDelayTimeouts(),U("onUntrigger",[_,N]),!_.state.isVisible){R();return}if(!(_.props.trigger.indexOf("mouseenter")>=0&&_.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(N.type)>=0&&s)){var ee=K(!1);ee?o=setTimeout(function(){_.state.isVisible&&_.hide()},ee):i=requestAnimationFrame(function(){_.hide()})}}function Pt(){_.state.isEnabled=!0}function xe(){_.hide(),_.state.isEnabled=!1}function Mt(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)}function Ut(N){if(!_.state.isDestroyed){U("onBeforeUpdate",[_,N]),fe();var ee=_.props,re=Uc(e,Object.assign({},ee,Vc(N),{ignoreAttributes:!0}));_.props=re,Ee(),ee.interactiveDebounce!==re.interactiveDebounce&&(Z(),y=$c($e,re.interactiveDebounce)),ee.triggerTarget&&!re.triggerTarget?Ar(ee.triggerTarget).forEach(function(ge){ge.removeAttribute("aria-expanded")}):re.triggerTarget&&e.removeAttribute("aria-expanded"),H(),j(),I&&I(ee,re),_.popperInstance&&(ve(),se().forEach(function(ge){requestAnimationFrame(ge._tippy.popperInstance.forceUpdate)})),U("onAfterUpdate",[_,N])}}function Rt(N){_.setProps({content:N})}function zt(){var N=_.state.isVisible,ee=_.state.isDestroyed,re=!_.state.isEnabled,ge=Rn.isTouch&&!_.props.touch,we=Is(_.props.duration,0,xn.duration);if(!(N||ee||re||ge)&&!$().hasAttribute("disabled")&&(U("onShow",[_],!1),_.props.onShow(_)!==!1)){if(_.state.isVisible=!0,D()&&(C.style.visibility="visible"),j(),P(),_.state.isMounted||(C.style.transition="none"),D()){var qe=X(),J=qe.box,le=qe.content;Ds([J,le],0)}h=function(){var De;if(!(!_.state.isVisible||c)){if(c=!0,C.offsetHeight,C.style.transition=_.props.moveTransition,D()&&_.props.animation){var st=X(),pe=st.box,mt=st.content;Ds([pe,mt],we),ho([pe,mt],"visible")}S(),H(),Lc(Os,_),(De=_.popperInstance)==null||De.forceUpdate(),U("onMount",[_]),_.props.animation&&D()&&ie(we,function(){_.state.isShown=!0,U("onShown",[_])})}},Te()}}function kn(){var N=!_.state.isVisible,ee=_.state.isDestroyed,re=!_.state.isEnabled,ge=Is(_.props.duration,1,xn.duration);if(!(N||ee||re)&&(U("onHide",[_],!1),_.props.onHide(_)!==!1)){if(_.state.isVisible=!1,_.state.isShown=!1,c=!1,s=!1,D()&&(C.style.visibility="hidden"),Z(),R(),j(!0),D()){var we=X(),qe=we.box,J=we.content;_.props.animation&&(Ds([qe,J],ge),ho([qe,J],"hidden"))}S(),H(),_.props.animation?D()&&G(ge,_.unmount):_.unmount()}}function Sn(N){Y().addEventListener("mousemove",y),Lc(Vo,y),y(N)}function Et(){_.state.isVisible&&_.hide(),_.state.isMounted&&(Qe(),se().forEach(function(N){N._tippy.unmount()}),C.parentNode&&C.parentNode.removeChild(C),Os=Os.filter(function(N){return N!==_}),_.state.isMounted=!1,U("onHidden",[_]))}function L(){_.state.isDestroyed||(_.clearDelayTimeouts(),_.unmount(),fe(),delete e._tippy,_.state.isDestroyed=!0,U("onDestroy",[_]))}}function Ce(e,t){t===void 0&&(t={});var n=xn.plugins.concat(t.plugins||[]);A0();var r=Object.assign({},t,{plugins:n}),o=O0(e),i=o.reduce(function(s,l){var u=l&&q0(l,r);return u&&s.push(u),s},[]);return Vi(e)?i[0]:i}Ce.defaultProps=xn;Ce.setDefaultProps=U0;Ce.currentInput=Rn;var Y0=Object.assign({},rp,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}}),G0=function(t,n){var r;n===void 0&&(n={});var o=t,i=[],s=[],l,u=n.overrides,c=[],f=!1;function p(){s=o.map(function(_){return Ar(_.props.triggerTarget||_.reference)}).reduce(function(_,B){return _.concat(B)},[])}function h(){i=o.map(function(_){return _.reference})}function m(_){o.forEach(function(B){_?B.enable():B.disable()})}function y(_){return o.map(function(B){var C=B.setProps;return B.setProps=function(I){C(I),B.reference===l&&_.setProps(I)},function(){B.setProps=C}})}function k(_,B){var C=s.indexOf(B);if(B!==l){l=B;var I=(u||[]).concat("content").reduce(function(F,q){return F[q]=o[C].props[q],F},{});_.setProps(Object.assign({},I,{getReferenceClientRect:typeof I.getReferenceClientRect=="function"?I.getReferenceClientRect:function(){var F;return(F=i[C])==null?void 0:F.getBoundingClientRect()}}))}}m(!1),h(),p();var b={fn:function(){return{onDestroy:function(){m(!0)},onHidden:function(){l=null},onClickOutside:function(C){C.props.showOnCreate&&!f&&(f=!0,l=null)},onShow:function(C){C.props.showOnCreate&&!f&&(f=!0,k(C,i[0]))},onTrigger:function(C,I){k(C,I.currentTarget)}}}},w=Ce(zr(),Object.assign({},x0(n,["overrides"]),{plugins:[b].concat(n.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},n.popperOptions,{modifiers:[].concat(((r=n.popperOptions)==null?void 0:r.modifiers)||[],[Y0])})})),T=w.show;w.show=function(_){if(T(),!l&&_==null)return k(w,i[0]);if(!(l&&_==null)){if(typeof _=="number")return i[_]&&k(w,i[_]);if(o.indexOf(_)>=0){var B=_.reference;return k(w,B)}if(i.indexOf(_)>=0)return k(w,_)}},w.showNext=function(){var _=i[0];if(!l)return w.show(0);var B=i.indexOf(l);w.show(i[B+1]||_)},w.showPrevious=function(){var _=i[i.length-1];if(!l)return w.show(_);var B=i.indexOf(l),C=i[B-1]||_;w.show(C)};var O=w.setProps;return w.setProps=function(_){u=_.overrides||u,O(_)},w.setInstances=function(_){m(!0),c.forEach(function(B){return B()}),o=_,m(!1),h(),p(),c=y(w),w.setProps({triggerTarget:s})},c=y(w),w},K0={name:"animateFill",defaultValue:!1,fn:function(t){var n;if(!((n=t.props.render)!=null&&n.$$tippy))return{};var r=di(t.popper),o=r.box,i=r.content,s=t.props.animateFill?X0():null;return{onCreate:function(){s&&(o.insertBefore(s,o.firstElementChild),o.setAttribute("data-animatefill",""),o.style.overflow="hidden",t.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(s){var u=o.style.transitionDuration,c=Number(u.replace("ms",""));i.style.transitionDelay=Math.round(c/10)+"ms",s.style.transitionDuration=u,ho([s],"visible")}},onShow:function(){s&&(s.style.transitionDuration="0ms")},onHide:function(){s&&ho([s],"hidden")}}}};function X0(){var e=zr();return e.className=dp,ho([e],"hidden"),e}var cl={clientX:0,clientY:0},Fo=[];function wp(e){var t=e.clientX,n=e.clientY;cl={clientX:t,clientY:n}}function J0(e){e.addEventListener("mousemove",wp)}function Q0(e){e.removeEventListener("mousemove",wp)}var Z0={name:"followCursor",defaultValue:!1,fn:function(t){var n=t.reference,r=gp(t.props.triggerTarget||n),o=!1,i=!1,s=!0,l=t.props;function u(){return t.props.followCursor==="initial"&&t.state.isVisible}function c(){r.addEventListener("mousemove",h)}function f(){r.removeEventListener("mousemove",h)}function p(){o=!0,t.setProps({getReferenceClientRect:null}),o=!1}function h(k){var b=k.target?n.contains(k.target):!0,w=t.props.followCursor,T=k.clientX,O=k.clientY,_=n.getBoundingClientRect(),B=T-_.left,C=O-_.top;(b||!t.props.interactive)&&t.setProps({getReferenceClientRect:function(){var F=n.getBoundingClientRect(),q=T,W=O;w==="initial"&&(q=F.left+B,W=F.top+C);var M=w==="horizontal"?F.top:W,D=w==="vertical"?F.right:q,$=w==="horizontal"?F.bottom:W,Y=w==="vertical"?F.left:q;return{width:D-Y,height:$-M,top:M,right:D,bottom:$,left:Y}}})}function m(){t.props.followCursor&&(Fo.push({instance:t,doc:r}),J0(r))}function y(){Fo=Fo.filter(function(k){return k.instance!==t}),Fo.filter(function(k){return k.doc===r}).length===0&&Q0(r)}return{onCreate:m,onDestroy:y,onBeforeUpdate:function(){l=t.props},onAfterUpdate:function(b,w){var T=w.followCursor;o||T!==void 0&&l.followCursor!==T&&(y(),T?(m(),t.state.isMounted&&!i&&!u()&&c()):(f(),p()))},onMount:function(){t.props.followCursor&&!i&&(s&&(h(cl),s=!1),u()||c())},onTrigger:function(b,w){du(w)&&(cl={clientX:w.clientX,clientY:w.clientY}),i=w.type==="focus"},onHidden:function(){t.props.followCursor&&(p(),f(),s=!0)}}}};function eb(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat((((n=e.popperOptions)==null?void 0:n.modifiers)||[]).filter(function(r){var o=r.name;return o!==t.name}),[t])})}}var tb={name:"inlinePositioning",defaultValue:!1,fn:function(t){var n=t.reference;function r(){return!!t.props.inlinePositioning}var o,i=-1,s=!1,l=[],u={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(m){var y=m.state;r()&&(l.indexOf(y.placement)!==-1&&(l=[]),o!==y.placement&&l.indexOf(y.placement)===-1&&(l.push(y.placement),t.setProps({getReferenceClientRect:function(){return c(y.placement)}})),o=y.placement)}};function c(h){return nb(vp(h),n.getBoundingClientRect(),Sa(n.getClientRects()),i)}function f(h){s=!0,t.setProps(h),s=!1}function p(){s||f(eb(t.props,u))}return{onCreate:p,onAfterUpdate:p,onTrigger:function(m,y){if(du(y)){var k=Sa(t.reference.getClientRects()),b=k.find(function(T){return T.left-2<=y.clientX&&T.right+2>=y.clientX&&T.top-2<=y.clientY&&T.bottom+2>=y.clientY}),w=k.indexOf(b);i=w>-1?w:i}},onHidden:function(){i=-1}}}};function nb(e,t,n,r){if(n.length<2||e===null)return t;if(n.length===2&&r>=0&&n[0].left>n[1].right)return n[r]||t;switch(e){case"top":case"bottom":{var o=n[0],i=n[n.length-1],s=e==="top",l=o.top,u=i.bottom,c=s?o.left:i.left,f=s?o.right:i.right,p=f-c,h=u-l;return{top:l,bottom:u,left:c,right:f,width:p,height:h}}case"left":case"right":{var m=Math.min.apply(Math,n.map(function(C){return C.left})),y=Math.max.apply(Math,n.map(function(C){return C.right})),k=n.filter(function(C){return e==="left"?C.left===m:C.right===y}),b=k[0].top,w=k[k.length-1].bottom,T=m,O=y,_=O-T,B=w-b;return{top:b,bottom:w,left:T,right:O,width:_,height:B}}default:return t}}var rb={name:"sticky",defaultValue:!1,fn:function(t){var n=t.reference,r=t.popper;function o(){return t.popperInstance?t.popperInstance.state.elements.reference:n}function i(c){return t.props.sticky===!0||t.props.sticky===c}var s=null,l=null;function u(){var c=i("reference")?o().getBoundingClientRect():null,f=i("popper")?r.getBoundingClientRect():null;(c&&Wc(s,c)||f&&Wc(l,f))&&t.popperInstance&&t.popperInstance.update(),s=c,l=f,t.state.isMounted&&requestAnimationFrame(u)}return{onMount:function(){t.props.sticky&&u()}}}};function Wc(e,t){return e&&t?e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left:!0}Ce.setDefaultProps({render:_p});Ce.setDefaultProps({onShow:e=>{if(!e.props.content)return!1}});function kp(e,t={},n={mount:!0}){const r=a.getCurrentInstance(),o=a.ref(),i=a.ref({isEnabled:!1,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1});let s=null;const l=()=>s||(s=document.createDocumentFragment(),s),u=C=>{let I,F=a.isRef(C)?C.value:C;if(a.isVNode(F))r&&(F.appContext=r.appContext),a.render(F,l()),I=()=>l();else if(typeof F=="object"){let q=a.h(F);r&&(q.appContext=r.appContext),a.render(q,l()),I=()=>l()}else I=F;return I},c=C=>{let I={};return a.isRef(C)?I=C.value||{}:a.isReactive(C)?I={...C}:I={...C},I.content&&(I.content=u(I.content)),I.triggerTarget&&(I.triggerTarget=a.isRef(I.triggerTarget)?I.triggerTarget.value:I.triggerTarget),(!I.plugins||!Array.isArray(I.plugins))&&(I.plugins=[]),I.plugins=I.plugins.filter(F=>F.name!=="vueTippyReactiveState"),I.plugins.push({name:"vueTippyReactiveState",fn:()=>({onCreate(){i.value.isEnabled=!0},onMount(){i.value.isMounted=!0},onShow(){i.value.isMounted=!0,i.value.isVisible=!0},onShown(){i.value.isShown=!0},onHide(){i.value.isMounted=!1,i.value.isVisible=!1},onHidden(){i.value.isShown=!1},onUnmounted(){i.value.isMounted=!1},onDestroy(){i.value.isDestroyed=!0}})}),I},f=()=>{o.value&&o.value.setProps(c(t))},p=()=>{!o.value||!t.content||o.value.setContent(u(t.content))},h=C=>{var I;(I=o.value)===null||I===void 0||I.setContent(u(C))},m=C=>{var I;(I=o.value)===null||I===void 0||I.setProps(c(C))},y=()=>{o.value&&(o.value.destroy(),o.value=void 0),s=null},k=()=>{var C;(C=o.value)===null||C===void 0||C.show()},b=()=>{var C;(C=o.value)===null||C===void 0||C.hide()},w=()=>{var C;(C=o.value)===null||C===void 0||C.disable(),i.value.isEnabled=!1},T=()=>{var C;(C=o.value)===null||C===void 0||C.enable(),i.value.isEnabled=!0},O=()=>{var C;(C=o.value)===null||C===void 0||C.unmount()},_=()=>{if(!e)return;let C=a.isRef(e)?e.value:e;typeof C=="function"&&(C=C()),C&&(o.value=Ce(C,c(t)),C.$tippy=B)},B={tippy:o,refresh:f,refreshContent:p,setContent:h,setProps:m,destroy:y,hide:b,show:k,disable:w,enable:T,unmount:O,mount:_,state:i};return n.mount&&(r?(r.isMounted?_():a.onMounted(_),a.onUnmounted(()=>{y()})):_()),a.isRef(t)||a.isReactive(t)?a.watch(t,f,{immediate:!1}):a.isRef(t.content)&&a.watch(t.content,p,{immediate:!1}),B}function ab(e,t){const n=a.ref();return a.onMounted(()=>{const o=(Array.isArray(e)?e.map(i=>i.value):typeof e=="function"?e():e.value).map(i=>i instanceof Element?i._tippy:i).filter(Boolean);n.value=G0(o,t?{allowHTML:!0,...t}:{allowHTML:!0})}),{singleton:n}}function ob(e){return typeof e=="function"?e():a.unref(e)}function ib(e){var t,n;const r=ob(e);return(n=(t=r)===null||t===void 0?void 0:t.$el)!==null&&n!==void 0?n:r}const sb=a.defineComponent({props:{to:{type:[String,Function]},tag:{type:[String,Object],default:"span"},contentTag:{type:[String,Object],default:"span"},contentClass:{type:String,default:null},appendTo:{default:()=>Ce.defaultProps.appendTo},aria:{default:()=>Ce.defaultProps.aria},delay:{default:()=>Ce.defaultProps.delay},duration:{default:()=>Ce.defaultProps.duration},getReferenceClientRect:{default:()=>Ce.defaultProps.getReferenceClientRect},hideOnClick:{type:[Boolean,String],default:()=>Ce.defaultProps.hideOnClick},ignoreAttributes:{type:Boolean,default:()=>Ce.defaultProps.ignoreAttributes},interactive:{type:Boolean,default:()=>Ce.defaultProps.interactive},interactiveBorder:{default:()=>Ce.defaultProps.interactiveBorder},interactiveDebounce:{default:()=>Ce.defaultProps.interactiveDebounce},moveTransition:{default:()=>Ce.defaultProps.moveTransition},offset:{default:()=>Ce.defaultProps.offset},onAfterUpdate:{default:()=>Ce.defaultProps.onAfterUpdate},onBeforeUpdate:{default:()=>Ce.defaultProps.onBeforeUpdate},onCreate:{default:()=>Ce.defaultProps.onCreate},onDestroy:{default:()=>Ce.defaultProps.onDestroy},onHidden:{default:()=>Ce.defaultProps.onHidden},onHide:{default:()=>Ce.defaultProps.onHide},onMount:{default:()=>Ce.defaultProps.onMount},onShow:{default:()=>Ce.defaultProps.onShow},onShown:{default:()=>Ce.defaultProps.onShown},onTrigger:{default:()=>Ce.defaultProps.onTrigger},onUntrigger:{default:()=>Ce.defaultProps.onUntrigger},onClickOutside:{default:()=>Ce.defaultProps.onClickOutside},placement:{default:()=>Ce.defaultProps.placement},plugins:{default:()=>Ce.defaultProps.plugins},popperOptions:{default:()=>Ce.defaultProps.popperOptions},render:{default:()=>Ce.defaultProps.render},showOnCreate:{type:Boolean,default:()=>Ce.defaultProps.showOnCreate},touch:{type:[Boolean,String,Array],default:()=>Ce.defaultProps.touch},trigger:{default:()=>Ce.defaultProps.trigger},triggerTarget:{default:()=>Ce.defaultProps.triggerTarget},animateFill:{type:Boolean,default:()=>Ce.defaultProps.animateFill},followCursor:{type:[Boolean,String],default:()=>Ce.defaultProps.followCursor},inlinePositioning:{type:Boolean,default:()=>Ce.defaultProps.inlinePositioning},sticky:{type:[Boolean,String],default:()=>Ce.defaultProps.sticky},allowHTML:{type:Boolean,default:()=>Ce.defaultProps.allowHTML},animation:{default:()=>Ce.defaultProps.animation},arrow:{default:()=>Ce.defaultProps.arrow},content:{default:()=>Ce.defaultProps.content},inertia:{default:()=>Ce.defaultProps.inertia},maxWidth:{default:()=>Ce.defaultProps.maxWidth},role:{default:()=>Ce.defaultProps.role},theme:{default:()=>Ce.defaultProps.theme},zIndex:{default:()=>Ce.defaultProps.zIndex}},emits:["state"],setup(e,{slots:t,emit:n,expose:r}){const o=a.ref(),i=a.ref(),s=a.ref(!1),l=()=>{let p={...e};for(const h of["to","tag","contentTag","contentClass"])p.hasOwnProperty(h)&&delete p[h];return p};let u=()=>ib(o);e.to&&(typeof Element<"u"&&e.to instanceof Element?u=()=>e.to:(typeof e.to=="string"||e.to instanceof String)&&(u=()=>document.querySelector(e.to)));const c=kp(u,l());a.onMounted(()=>{s.value=!0,a.nextTick(()=>{t.content&&c.setContent(()=>i.value)})}),a.watch(c.state,()=>{n("state",a.unref(c.state))},{immediate:!0,deep:!0}),a.watch(()=>e,()=>{c.setProps(l()),t.content&&c.setContent(()=>i.value)},{deep:!0});let f=a.reactive({elem:o,contentElem:i,mounted:s,...c});return r(f),()=>{const p=t.default?t.default(f):[],h=(typeof e.contentTag=="string",e.contentTag);if(!e.tag){const y=a.h(p[0],{ref:o,"data-v-tippy":""});return t.content?[y,a.h(h,{ref:i,style:{display:s.value?"inherit":"none"},class:e.contentClass},t.content(f))]:y}const m=(typeof e.tag=="string",e.tag);return a.h(m,{ref:o,"data-v-tippy":""},t.content?[p,a.h(h,{ref:i,style:{display:s.value?"inherit":"none"},class:e.contentClass},t.content(f))]:p)}}}),lb=["a11y","allowHTML","arrow","flip","flipOnUpdate","hideOnClick","ignoreAttributes","inertia","interactive","lazy","multiple","showOnInit","touch","touchHold"];let dl={};Object.keys(Ce.defaultProps).forEach(e=>{lb.includes(e)?dl[e]={type:Boolean,default:function(){return Ce.defaultProps[e]}}:dl[e]={default:function(){return Ce.defaultProps[e]}}});const ub=a.defineComponent({props:dl,setup(e){const t=a.ref([]),{singleton:n}=ab(t,e);return{instances:t,singleton:n}},mounted(){var e;const n=this.$el.parentElement.querySelectorAll("[data-v-tippy]");this.instances=Array.from(n).map(r=>r._tippy).filter(Boolean),(e=this.singleton)===null||e===void 0||e.setInstances(this.instances)},render(){let e=this.$slots.default?this.$slots.default():[];return a.h(()=>e)}}),cb={mounted(e,t,n){const r=typeof t.value=="string"?{content:t.value}:t.value||{},o=Object.keys(t.modifiers||{}),i=o.find(l=>l!=="arrow"),s=o.findIndex(l=>l==="arrow")!==-1;i&&(r.placement=r.placement||i),s&&(r.arrow=r.arrow!==void 0?r.arrow:!0),n.props&&n.props.onTippyShow&&(r.onShow=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyShow(...l)}),n.props&&n.props.onTippyShown&&(r.onShown=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyShown(...l)}),n.props&&n.props.onTippyHidden&&(r.onHidden=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyHidden(...l)}),n.props&&n.props.onTippyHide&&(r.onHide=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyHide(...l)}),n.props&&n.props.onTippyMount&&(r.onMount=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyMount(...l)}),e.getAttribute("title")&&!r.content&&(r.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!r.content&&(r.content=e.getAttribute("content")),kp(e,r)},unmounted(e){e.$tippy?e.$tippy.destroy():e._tippy&&e._tippy.destroy()},updated(e,t){const n=typeof t.value=="string"?{content:t.value}:t.value||{};e.getAttribute("title")&&!n.content&&(n.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!n.content&&(n.content=e.getAttribute("content")),e.$tippy?e.$tippy.setProps(n||{}):e._tippy&&e._tippy.setProps(n||{})}},db={install(e,t={}){Ce.setDefaultProps(t.defaultProps||{}),e.directive(t.directive||"tippy",cb),e.component(t.component||"tippy",sb),e.component(t.componentSingleton||"tippy-singleton",ub)}},fb=Ce.setDefaultProps;fb({ignoreAttributes:!0,plugins:[rb,tb,Z0,K0]});const pb=db,an={navigationItems:a.ref([]),mainMenuOpen:a.ref(!1),mobileMenuOpen:a.ref(!1),mobileMenuOpenTransition:a.ref(!1),navigationComponent:a.shallowRef("a"),logo:a.ref(null),avatar:a.shallowRef(null),contactRoute:a.ref(),contactIcon:a.ref("?")};function Ba(){function e(f){an.navigationItems.value=a.isRef(f)?f==null?void 0:f.value:f}function t(f){an.navigationComponent.value=f}function n(f){an.logo.value=f}function r(f){an.avatar.value=f}function o(){an.mainMenuOpen.value=!0}function i(){an.mainMenuOpen.value=!1}function s(){an.mainMenuOpen.value=!an.mainMenuOpen.value}function l(){an.mobileMenuOpen.value=!0,an.mobileMenuOpenTransition.value=!0}function u(){an.mobileMenuOpen.value=!1,setTimeout(()=>{an.mobileMenuOpenTransition.value=!1},100)}function c(){return an.mobileMenuOpen.value?u():l()}return{...an,setNavigationItems:e,setNavigationComponent:t,setLogo:n,setAvatar:r,openMainMenu:o,closeMainMenu:i,toggleMainMenu:s,openMobileMenu:l,closeMobileMenu:u,toggleMobileMenu:c}}const ta={layoutImage:a.ref(null),colors:{primaryColor:a.ref("#47A6DC"),primaryColorActive:a.ref("#3094CD"),secondaryColor:a.ref("#27272A"),secondaryColorActive:a.ref("#202023")}};function fu(){function e(r){ta.layoutImage.value=r}function t(r,o){ta.colors.primaryColor.value=r,ta.colors.primaryColorActive.value=o,document.documentElement.style.setProperty("--color-primary",r),document.documentElement.style.setProperty("--color-primary-active",o)}function n(r,o){ta.colors.secondaryColor.value=r,ta.colors.secondaryColorActive.value=o,document.documentElement.style.setProperty("--color-secondary",r),document.documentElement.style.setProperty("--color-secondary-active",o)}return{...ta,setLayoutImage:e,setPrimaryColors:t,setSecondaryColors:n}}/*! *****************************************************************************
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
9
|
-
purpose with or without fee is hereby granted.
|
|
10
|
-
|
|
11
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
12
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
13
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
14
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
15
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
16
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
17
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
18
|
-
***************************************************************************** */function hb(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(f){try{c(r.next(f))}catch(p){s(p)}}function u(f){try{c(r.throw(f))}catch(p){s(p)}}function c(f){f.done?i(f.value):o(f.value).then(l,u)}c((r=r.apply(e,t||[])).next())})}var mb=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!==0;){var s=i[o];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n};const qc="__googleMapsScriptId";var la;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(la||(la={}));class $r{constructor({apiKey:t,authReferrerPolicy:n,channel:r,client:o,id:i=qc,language:s,libraries:l=[],mapIds:u,nonce:c,region:f,retries:p=3,url:h="https://maps.googleapis.com/maps/api/js",version:m}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=n,this.channel=r,this.client=o,this.id=i||qc,this.language=s,this.libraries=l,this.mapIds=u,this.nonce=c,this.region=f,this.retries=p,this.url=h,this.version=m,$r.instance){if(!mb(this.options,$r.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify($r.instance.options)}`);return $r.instance}$r.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?la.FAILURE:this.done?la.SUCCESS:this.loading?la.LOADING:la.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+="?callback=__googleMapsCallback",this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`®ion=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((t,n)=>{this.loadCallback(r=>{r?n(r.error):t(window.google)})})}importLibrary(t){return this.execute(),google.maps.importLibrary(t)}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){var t,n;if(document.getElementById(this.id)){this.callback();return}const r={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(r).forEach(i=>!r[i]&&delete r[i]),!((n=(t=window==null?void 0:window.google)===null||t===void 0?void 0:t.maps)===null||n===void 0)&&n.importLibrary||(i=>{let s,l,u,c="The Google Maps JavaScript API",f="google",p="importLibrary",h="__ib__",m=document,y=window;y=y[f]||(y[f]={});const k=y.maps||(y.maps={}),b=new Set,w=new URLSearchParams,T=()=>s||(s=new Promise((O,_)=>hb(this,void 0,void 0,function*(){var B;yield l=m.createElement("script"),l.id=this.id,w.set("libraries",[...b]+"");for(u in i)w.set(u.replace(/[A-Z]/g,C=>"_"+C[0].toLowerCase()),i[u]);w.set("callback",f+".maps."+h),l.src=this.url+"?"+w,k[h]=O,l.onerror=()=>s=_(Error(c+" could not load.")),l.nonce=this.nonce||((B=m.querySelector("script[nonce]"))===null||B===void 0?void 0:B.nonce)||"",m.head.append(l)})));k[p]?console.warn(c+" only loads once. Ignoring:",i):k[p]=(O,..._)=>b.add(O)&&T().then(()=>k[p](O,..._))})(r);const o=this.libraries.map(i=>this.importLibrary(i));o.length||o.push(this.importLibrary("core")),Promise.all(o).then(()=>this.callback(),i=>{const s=new ErrorEvent("error",{error:i});this.loadErrorCallback(s)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const n=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${n} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},n)}else this.onerrorEvent=t,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(t=>{t(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setScript())}}}const Bs={loaded:a.ref(!1)};function vb(){async function e(t){Bs.loaded&&(await new $r({apiKey:t,version:"weekly"}).load(),Bs.loaded.value=!0)}return{...Bs,load:e}}const Jn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},gb={},yb={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},bb=a.createElementVNode("circle",{r:"10",cy:"12",cx:"12.0269",fill:"#22C55E"},null,-1),_b=a.createElementVNode("path",{stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",d:"M8 12.8571L10.5714 15.4286L17 9"},null,-1),wb=[bb,_b];function kb(e,t){return a.openBlock(),a.createElementBlock("svg",yb,wb)}const Sp=Jn(gb,[["render",kb]]),Sb={},Cb={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Tb=a.createElementVNode("path",{fill:"#EAB308",stroke:"#EAB308","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",d:`M2.31804 17.4787C1.41423 19.0442 2.54451 21 4.35109 21H19.7033C21.5089 21 22.6391 19.0442
|
|
19
|
-
21.7364 17.4787L14.0613 4.17412C13.1575 2.60863 10.8969 2.60863 9.99311 4.17412L2.31804 17.4787Z`},null,-1),Eb=a.createElementVNode("path",{stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8V13.549M12 17.9882H12.0104V18H12V17.9882Z"},null,-1),xb=[Tb,Eb];function Pb(e,t){return a.openBlock(),a.createElementBlock("svg",Cb,xb)}const Cp=Jn(Sb,[["render",Pb]]),Ib={},Db={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Nb=a.createElementVNode("circle",{r:"10",cy:"12",cx:"12.0269",fill:"#DC2626"},null,-1),Ob=a.createElementVNode("path",{stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",d:"M12.0269 7V12.549M12.0269 16.9882H12.0372V17H12.0269V16.9882Z"},null,-1),Bb=[Nb,Ob];function Mb(e,t){return a.openBlock(),a.createElementBlock("svg",Db,Bb)}const Tp=Jn(Ib,[["render",Mb]]),Rb={success:["bg-green-100"],warning:["bg-yellow-100"],error:["bg-red-100"]},Ep={success:Sp,warning:Cp,error:Tp},Ab={class:"flex items-center font-bold"},$b={key:0,class:"mr-2"},Lb={"data-test-title":""},Vb={key:0,class:"mt-1","data-test-description":""},Fb=a.defineComponent({__name:"AppAlert",props:{type:{},title:{default:void 0},description:{default:void 0},withIcon:{type:Boolean,default:!0}},setup(e){const t=a.useSlots();return(n,r)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([a.unref(Rb)[n.type],"app-alert flex flex-col rounded-lg px-4 py-2 text-sm text-zinc-900"])},[a.createElementVNode("div",Ab,[n.withIcon?(a.openBlock(),a.createElementBlock("span",$b,[a.renderSlot(n.$slots,"icon",{type:n.type},()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Ep)[n.type]),{class:"h-5 w-5"}))])])):a.createCommentVNode("",!0),a.createElementVNode("span",Lb,[a.renderSlot(n.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(n.title),1)])])]),n.description||a.unref(t).description?(a.openBlock(),a.createElementBlock("div",Vb,[a.renderSlot(n.$slots,"description",{},()=>[a.createTextVNode(a.toDisplayString(n.description),1)])])):a.createCommentVNode("",!0)],2))}}),Hb={small:["w-7 h-7"],medium:["w-10 h-10"],large:["w-12 h-12"]},Ub={width:"39",height:"39",viewBox:"0 0 39 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zb=a.createElementVNode("mask",{id:"mask0_928_1872",style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"39",height:"39"},[a.createElementVNode("circle",{cx:"19.5",cy:"19.5",r:"19.5",fill:"#D9D9D9"})],-1),jb={mask:"url(#mask0_928_1872)"},Wb=a.createElementVNode("circle",{cx:"19.5",cy:"19.5",r:"19.5",fill:"#E4E4E7"},null,-1),qb=a.createElementVNode("path",{d:`M22.1755 30.7083C21.0239 32.4573 21.339 35.344 21.339 35.344C21.339 35.344 23.0323 34.3422 23.1456
|
|
20
|
-
32.6631C23.2588 30.984 22.1755 30.7083 22.1755 30.7083Z`,fill:"#EBEFF2"},null,-1),Yb=["fill"],Gb=a.createStaticVNode(`<path d="M28.9482 30.3374C28.9564 30.4399 28.8581 30.617 28.6812 30.8453C27.6784 32.1493 24.1454 35.1328 23.3724
|
|
5
|
+
*/var un="top",xn="bottom",In="right",cn="left",tc="auto",pi=[un,xn,In,cn],Ka="start",Zo="end",Tb="clippingParents",Th="viewport",Po="popper",Eb="reference",Ad=pi.reduce(function(e,t){return e.concat([t+"-"+Ka,t+"-"+Zo])},[]),Eh=[].concat(pi,[tc]).reduce(function(e,t){return e.concat([t,t+"-"+Ka,t+"-"+Zo])},[]),xb="beforeRead",Ib="read",Pb="afterRead",Ob="beforeMain",Nb="main",Db="afterMain",Mb="beforeWrite",Bb="write",Ab="afterWrite",Rb=[xb,Ib,Pb,Ob,Nb,Db,Mb,Bb,Ab];function or(e){return e?(e.nodeName||"").toLowerCase():null}function Fn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xa(e){var t=Fn(e).Element;return e instanceof t||e instanceof Element}function Cn(e){var t=Fn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function xh(e){if(typeof ShadowRoot>"u")return!1;var t=Fn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function $b(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];!Cn(i)||!or(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 Lb(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(u,d){return u[d]="",u},{});!Cn(o)||!or(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(u){o.removeAttribute(u)}))})}}var Ih={name:"applyStyles",enabled:!0,phase:"write",fn:$b,effect:Lb,requires:["computeStyles"]};function rr(e){return e.split("-")[0]}var ca=Math.max,as=Math.min,Ja=Math.round;function Za(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Cn(e)&&t){var i=e.offsetHeight,s=e.offsetWidth;s>0&&(r=Ja(n.width)/s||1),i>0&&(o=Ja(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 nc(e){var t=Za(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 Ph(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&xh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ir(e){return Fn(e).getComputedStyle(e)}function Vb(e){return["table","td","th"].indexOf(or(e))>=0}function Wr(e){return((Xa(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ls(e){return or(e)==="html"?e:e.assignedSlot||e.parentNode||(xh(e)?e.host:null)||Wr(e)}function Rd(e){return!Cn(e)||ir(e).position==="fixed"?null:e.offsetParent}function Fb(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Cn(e)){var r=ir(e);if(r.position==="fixed")return null}for(var o=Ls(e);Cn(o)&&["html","body"].indexOf(or(o))<0;){var i=ir(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 hi(e){for(var t=Fn(e),n=Rd(e);n&&Vb(n)&&ir(n).position==="static";)n=Rd(n);return n&&(or(n)==="html"||or(n)==="body"&&ir(n).position==="static")?t:n||Fb(e)||t}function rc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Vo(e,t,n){return ca(e,as(t,n))}function Hb(e,t,n){var r=Vo(e,t,n);return r>n?n:r}function Oh(){return{top:0,right:0,bottom:0,left:0}}function Nh(e){return Object.assign({},Oh(),e)}function Dh(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Ub=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Nh(typeof t!="number"?t:Dh(t,pi))};function zb(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=rr(n.placement),u=rc(l),d=[cn,In].indexOf(l)>=0,c=d?"height":"width";if(!(!i||!s)){var p=Ub(o.padding,n),h=nc(i),m=u==="y"?un:cn,y=u==="y"?xn:In,w=n.rects.reference[c]+n.rects.reference[u]-s[u]-n.rects.popper[c],k=s[u]-n.rects.reference[u],_=hi(i),x=_?u==="y"?_.clientHeight||0:_.clientWidth||0:0,S=w/2-k/2,b=p[m],N=x-h[c]-p[y],T=x/2-h[c]/2+S,I=Vo(b,T,N),$=u;n.modifiersData[r]=(t={},t[$]=I,t.centerOffset=I-T,t)}}function jb(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)||Ph(t.elements.popper,o)&&(t.elements.arrow=o))}var Wb={name:"arrow",enabled:!0,phase:"main",fn:zb,effect:jb,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qa(e){return e.split("-")[1]}var qb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yb(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Ja(t*o)/o||0,y:Ja(n*o)/o||0}}function $d(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,d=e.adaptive,c=e.roundOffsets,p=e.isFixed,h=c===!0?Yb(s):typeof c=="function"?c(s):s,m=h.x,y=m===void 0?0:m,w=h.y,k=w===void 0?0:w,_=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),S=cn,b=un,N=window;if(d){var T=hi(n),I="clientHeight",$="clientWidth";if(T===Fn(n)&&(T=Wr(n),ir(T).position!=="static"&&l==="absolute"&&(I="scrollHeight",$="scrollWidth")),T=T,o===un||(o===cn||o===In)&&i===Zo){b=xn;var W=p&&N.visualViewport?N.visualViewport.height:T[I];k-=W-r.height,k*=u?1:-1}if(o===cn||(o===un||o===xn)&&i===Zo){S=In;var j=p&&N.visualViewport?N.visualViewport.width:T[$];y-=j-r.width,y*=u?1:-1}}var M=Object.assign({position:l},d&&qb);if(u){var D;return Object.assign({},M,(D={},D[b]=x?"0":"",D[S]=_?"0":"",D.transform=(N.devicePixelRatio||1)<=1?"translate("+y+"px, "+k+"px)":"translate3d("+y+"px, "+k+"px, 0)",D))}return Object.assign({},M,(t={},t[b]=x?k+"px":"",t[S]=_?y+"px":"",t.transform="",t))}function Gb(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,u=l===void 0?!0:l,d={placement:rr(t.placement),variation:Qa(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,$d(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,$d(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Kb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Gb,data:{}},Pi={passive:!0};function Xb(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,u=Fn(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(c){c.addEventListener("scroll",n.update,Pi)}),l&&u.addEventListener("resize",n.update,Pi),function(){i&&d.forEach(function(c){c.removeEventListener("scroll",n.update,Pi)}),l&&u.removeEventListener("resize",n.update,Pi)}}var Jb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Xb,data:{}},Zb={left:"right",right:"left",bottom:"top",top:"bottom"};function Xi(e){return e.replace(/left|right|bottom|top/g,function(t){return Zb[t]})}var Qb={start:"end",end:"start"};function Ld(e){return e.replace(/start|end/g,function(t){return Qb[t]})}function ac(e){var t=Fn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function oc(e){return Za(Wr(e)).left+ac(e).scrollLeft}function e_(e){var t=Fn(e),n=Wr(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+oc(e),y:l}}function t_(e){var t,n=Wr(e),r=ac(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ca(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ca(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+oc(e),u=-r.scrollTop;return ir(o||n).direction==="rtl"&&(l+=ca(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:u}}function ic(e){var t=ir(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Mh(e){return["html","body","#document"].indexOf(or(e))>=0?e.ownerDocument.body:Cn(e)&&ic(e)?e:Mh(Ls(e))}function Fo(e,t){var n;t===void 0&&(t=[]);var r=Mh(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Fn(r),s=o?[i].concat(i.visualViewport||[],ic(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(Fo(Ls(s)))}function au(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function n_(e){var t=Za(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 Vd(e,t){return t===Th?au(e_(e)):Xa(t)?n_(t):au(t_(Wr(e)))}function r_(e){var t=Fo(Ls(e)),n=["absolute","fixed"].indexOf(ir(e).position)>=0,r=n&&Cn(e)?hi(e):e;return Xa(r)?t.filter(function(o){return Xa(o)&&Ph(o,r)&&or(o)!=="body"&&(n?ir(o).position!=="static":!0)}):[]}function a_(e,t,n){var r=t==="clippingParents"?r_(e):[].concat(t),o=[].concat(r,[n]),i=o[0],s=o.reduce(function(l,u){var d=Vd(e,u);return l.top=ca(d.top,l.top),l.right=as(d.right,l.right),l.bottom=as(d.bottom,l.bottom),l.left=ca(d.left,l.left),l},Vd(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 Bh(e){var t=e.reference,n=e.element,r=e.placement,o=r?rr(r):null,i=r?Qa(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(o){case un:u={x:s,y:t.y-n.height};break;case xn:u={x:s,y:t.y+t.height};break;case In:u={x:t.x+t.width,y:l};break;case cn:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var d=o?rc(o):null;if(d!=null){var c=d==="y"?"height":"width";switch(i){case Ka:u[d]=u[d]-(t[c]/2-n[c]/2);break;case Zo:u[d]=u[d]+(t[c]/2-n[c]/2);break}}return u}function Qo(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?Tb:i,l=n.rootBoundary,u=l===void 0?Th:l,d=n.elementContext,c=d===void 0?Po:d,p=n.altBoundary,h=p===void 0?!1:p,m=n.padding,y=m===void 0?0:m,w=Nh(typeof y!="number"?y:Dh(y,pi)),k=c===Po?Eb:Po,_=e.rects.popper,x=e.elements[h?k:c],S=a_(Xa(x)?x:x.contextElement||Wr(e.elements.popper),s,u),b=Za(e.elements.reference),N=Bh({reference:b,element:_,strategy:"absolute",placement:o}),T=au(Object.assign({},_,N)),I=c===Po?T:b,$={top:S.top-I.top+w.top,bottom:I.bottom-S.bottom+w.bottom,left:S.left-I.left+w.left,right:I.right-S.right+w.right},W=e.modifiersData.offset;if(c===Po&&W){var j=W[o];Object.keys($).forEach(function(M){var D=[In,xn].indexOf(M)>=0?1:-1,R=[un,xn].indexOf(M)>=0?"y":"x";$[M]+=j[R]*D})}return $}function o_(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,d=u===void 0?Eh:u,c=Qa(r),p=c?l?Ad:Ad.filter(function(y){return Qa(y)===c}):pi,h=p.filter(function(y){return d.indexOf(y)>=0});h.length===0&&(h=p);var m=h.reduce(function(y,w){return y[w]=Qo(e,{placement:w,boundary:o,rootBoundary:i,padding:s})[rr(w)],y},{});return Object.keys(m).sort(function(y,w){return m[y]-m[w]})}function i_(e){if(rr(e)===tc)return[];var t=Xi(e);return[Ld(e),t,Ld(t)]}function s_(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,u=n.fallbackPlacements,d=n.padding,c=n.boundary,p=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,y=m===void 0?!0:m,w=n.allowedAutoPlacements,k=t.options.placement,_=rr(k),x=_===k,S=u||(x||!y?[Xi(k)]:i_(k)),b=[k].concat(S).reduce(function(E,O){return E.concat(rr(O)===tc?o_(t,{placement:O,boundary:c,rootBoundary:p,padding:d,flipVariations:y,allowedAutoPlacements:w}):O)},[]),N=t.rects.reference,T=t.rects.popper,I=new Map,$=!0,W=b[0],j=0;j<b.length;j++){var M=b[j],D=rr(M),R=Qa(M)===Ka,K=[un,xn].indexOf(D)>=0,G=K?"width":"height",Y=Qo(t,{placement:M,boundary:c,rootBoundary:p,altBoundary:h,padding:d}),z=K?R?In:cn:R?xn:un;N[G]>T[G]&&(z=Xi(z));var H=Xi(z),C=[];if(i&&C.push(Y[D]<=0),l&&C.push(Y[z]<=0,Y[H]<=0),C.every(function(E){return E})){W=M,$=!1;break}I.set(M,C)}if($)for(var U=y?3:1,Q=function(O){var A=b.find(function(Z){var re=I.get(Z);if(re)return re.slice(0,O).every(function(ie){return ie})});if(A)return W=A,"break"},X=U;X>0;X--){var V=Q(X);if(V==="break")break}t.placement!==W&&(t.modifiersData[r]._skip=!0,t.placement=W,t.reset=!0)}}var l_={name:"flip",enabled:!0,phase:"main",fn:s_,requiresIfExists:["offset"],data:{_skip:!1}};function Fd(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 Hd(e){return[un,In,xn,cn].some(function(t){return e[t]>=0})}function u_(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Qo(t,{elementContext:"reference"}),l=Qo(t,{altBoundary:!0}),u=Fd(s,r),d=Fd(l,o,i),c=Hd(u),p=Hd(d);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:c,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}var c_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:u_};function d_(e,t,n){var r=rr(e),o=[cn,un].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,[cn,In].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function f_(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=Eh.reduce(function(c,p){return c[p]=d_(p,t.rects,i),c},{}),l=s[t.placement],u=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=s}var p_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f_};function h_(e){var t=e.state,n=e.name;t.modifiersData[n]=Bh({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var m_={name:"popperOffsets",enabled:!0,phase:"read",fn:h_,data:{}};function v_(e){return e==="x"?"y":"x"}function g_(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,u=n.boundary,d=n.rootBoundary,c=n.altBoundary,p=n.padding,h=n.tether,m=h===void 0?!0:h,y=n.tetherOffset,w=y===void 0?0:y,k=Qo(t,{boundary:u,rootBoundary:d,padding:p,altBoundary:c}),_=rr(t.placement),x=Qa(t.placement),S=!x,b=rc(_),N=v_(b),T=t.modifiersData.popperOffsets,I=t.rects.reference,$=t.rects.popper,W=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,j=typeof W=="number"?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(T){if(i){var R,K=b==="y"?un:cn,G=b==="y"?xn:In,Y=b==="y"?"height":"width",z=T[b],H=z+k[K],C=z-k[G],U=m?-$[Y]/2:0,Q=x===Ka?I[Y]:$[Y],X=x===Ka?-$[Y]:-I[Y],V=t.elements.arrow,E=m&&V?nc(V):{width:0,height:0},O=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Oh(),A=O[K],Z=O[G],re=Vo(0,I[Y],E[Y]),ie=S?I[Y]/2-U-re-A-j.mainAxis:Q-re-A-j.mainAxis,Te=S?-I[Y]/2+U+re+Z+j.mainAxis:X+re+Z+j.mainAxis,Pe=t.elements.arrow&&hi(t.elements.arrow),fe=Pe?b==="y"?Pe.clientTop||0:Pe.clientLeft||0:0,Ie=(R=M==null?void 0:M[b])!=null?R:0,Ve=z+ie-Ie-fe,Be=z+Te-Ie,at=Vo(m?as(H,Ve):H,z,m?ca(C,Be):C);T[b]=at,D[b]=at-z}if(l){var Je,Ye=b==="x"?un:cn,pe=b==="x"?xn:In,Ne=T[N],ae=N==="y"?"height":"width",he=Ne+k[Ye],le=Ne-k[pe],je=[un,cn].indexOf(_)!==-1,xe=(Je=M==null?void 0:M[N])!=null?Je:0,Et=je?he:Ne-I[ae]-$[ae]-xe+j.altAxis,_t=je?Ne+I[ae]+$[ae]-xe-j.altAxis:le,Mt=m&&je?Hb(Et,Ne,_t):Vo(m?Et:he,Ne,m?_t:le);T[N]=Mt,D[N]=Mt-Ne}t.modifiersData[r]=D}}var y_={name:"preventOverflow",enabled:!0,phase:"main",fn:g_,requiresIfExists:["offset"]};function b_(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function __(e){return e===Fn(e)||!Cn(e)?ac(e):b_(e)}function w_(e){var t=e.getBoundingClientRect(),n=Ja(t.width)/e.offsetWidth||1,r=Ja(t.height)/e.offsetHeight||1;return n!==1||r!==1}function k_(e,t,n){n===void 0&&(n=!1);var r=Cn(t),o=Cn(t)&&w_(t),i=Wr(t),s=Za(e,o),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((or(t)!=="body"||ic(i))&&(l=__(t)),Cn(t)?(u=Za(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=oc(i))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function S_(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&o(u)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function C_(e){var t=S_(e);return Rb.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function T_(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function E_(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 Ud={placement:"bottom",modifiers:[],strategy:"absolute"};function zd(){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 x_(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Ud:o;return function(l,u,d){d===void 0&&(d=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ud,i),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},p=[],h=!1,m={state:c,setOptions:function(_){var x=typeof _=="function"?_(c.options):_;w(),c.options=Object.assign({},i,c.options,x),c.scrollParents={reference:Xa(l)?Fo(l):l.contextElement?Fo(l.contextElement):[],popper:Fo(u)};var S=C_(E_([].concat(r,c.options.modifiers)));return c.orderedModifiers=S.filter(function(b){return b.enabled}),y(),m.update()},forceUpdate:function(){if(!h){var _=c.elements,x=_.reference,S=_.popper;if(zd(x,S)){c.rects={reference:k_(x,hi(S),c.options.strategy==="fixed"),popper:nc(S)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(j){return c.modifiersData[j.name]=Object.assign({},j.data)});for(var b=0;b<c.orderedModifiers.length;b++){if(c.reset===!0){c.reset=!1,b=-1;continue}var N=c.orderedModifiers[b],T=N.fn,I=N.options,$=I===void 0?{}:I,W=N.name;typeof T=="function"&&(c=T({state:c,options:$,name:W,instance:m})||c)}}}},update:T_(function(){return new Promise(function(k){m.forceUpdate(),k(c)})}),destroy:function(){w(),h=!0}};if(!zd(l,u))return m;m.setOptions(d).then(function(k){!h&&d.onFirstUpdate&&d.onFirstUpdate(k)});function y(){c.orderedModifiers.forEach(function(k){var _=k.name,x=k.options,S=x===void 0?{}:x,b=k.effect;if(typeof b=="function"){var N=b({state:c,name:_,instance:m,options:S}),T=function(){};p.push(N||T)}})}function w(){p.forEach(function(k){return k()}),p=[]}return m}}var I_=[Jb,m_,Kb,Ih,p_,l_,y_,Wb,c_],P_=x_({defaultModifiers:I_}),O_="tippy-box",Ah="tippy-content",Rh="tippy-backdrop",$h="tippy-arrow",Lh="tippy-svg-arrow",na={passive:!0,capture:!0},Vh=function(){return document.body};function kl(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function sc(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function Fh(e,t){return typeof e=="function"?e.apply(void 0,t):e}function jd(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function N_(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function D_(e){return e.split(/\s+/).filter(Boolean)}function aa(e){return[].concat(e)}function Wd(e,t){e.indexOf(t)===-1&&e.push(t)}function M_(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Hh(e){return e.split("-")[0]}function eo(e){return[].slice.call(e)}function qd(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function da(){return document.createElement("div")}function Vs(e){return["Element","Fragment"].some(function(t){return sc(e,t)})}function B_(e){return sc(e,"NodeList")}function lc(e){return sc(e,"MouseEvent")}function A_(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function R_(e){return Vs(e)?[e]:B_(e)?eo(e):Array.isArray(e)?e:eo(document.querySelectorAll(e))}function Sl(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function ei(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Uh(e){var t,n=aa(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function $_(e,t){var n=t.clientX,r=t.clientY;return e.every(function(o){var i=o.popperRect,s=o.popperState,l=o.props,u=l.interactiveBorder,d=Hh(s.placement),c=s.modifiersData.offset;if(!c)return!0;var p=d==="bottom"?c.top.y:0,h=d==="top"?c.bottom.y:0,m=d==="right"?c.left.x:0,y=d==="left"?c.right.x:0,w=i.top-r+p>u,k=r-i.bottom-h>u,_=i.left-n+m>u,x=n-i.right-y>u;return w||k||_||x})}function Cl(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[r](o,n)})}function Yd(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 Wn={isTouch:!1},Gd=0;function L_(){Wn.isTouch||(Wn.isTouch=!0,window.performance&&document.addEventListener("mousemove",zh))}function zh(){var e=performance.now();e-Gd<20&&(Wn.isTouch=!1,document.removeEventListener("mousemove",zh)),Gd=e}function V_(){var e=document.activeElement;if(A_(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function F_(){document.addEventListener("touchstart",L_,na),window.addEventListener("blur",V_)}var H_=typeof window<"u"&&typeof document<"u",U_=H_?!!window.msCrypto:!1,z_={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},Rn=Object.assign({appendTo:Vh,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},z_,j_),W_=Object.keys(Rn),q_=function(t){var n=Object.keys(t);n.forEach(function(r){Rn[r]=t[r]})};function jh(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=Rn[i])!=null?l:s}return r},{});return Object.assign({},e,n)}function Y_(e,t){var n=t?Object.keys(jh(Object.assign({},Rn,{plugins:t}))):W_,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 Kd(e,t){var n=Object.assign({},t,{content:Fh(t.content,[e])},t.ignoreAttributes?{}:Y_(e,t.plugins));return n.aria=Object.assign({},Rn.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 G_=function(){return"innerHTML"};function ou(e,t){e[G_()]=t}function Xd(e){var t=da();return e===!0?t.className=$h:(t.className=Lh,Vs(e)?t.appendChild(e):ou(t,e)),t}function Jd(e,t){Vs(t.content)?(ou(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?ou(e,t.content):e.textContent=t.content)}function os(e){var t=e.firstElementChild,n=eo(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(Ah)}),arrow:n.find(function(r){return r.classList.contains($h)||r.classList.contains(Lh)}),backdrop:n.find(function(r){return r.classList.contains(Rh)})}}function Wh(e){var t=da(),n=da();n.className=O_,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=da();r.className=Ah,r.setAttribute("data-state","hidden"),Jd(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props);function o(i,s){var l=os(t),u=l.box,d=l.content,c=l.arrow;s.theme?u.setAttribute("data-theme",s.theme):u.removeAttribute("data-theme"),typeof s.animation=="string"?u.setAttribute("data-animation",s.animation):u.removeAttribute("data-animation"),s.inertia?u.setAttribute("data-inertia",""):u.removeAttribute("data-inertia"),u.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?u.setAttribute("role",s.role):u.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&Jd(d,e.props),s.arrow?c?i.arrow!==s.arrow&&(u.removeChild(c),u.appendChild(Xd(s.arrow))):u.appendChild(Xd(s.arrow)):c&&u.removeChild(c)}return{popper:t,onUpdate:o}}Wh.$$tippy=!0;var K_=1,Oi=[],Tl=[];function X_(e,t){var n=Kd(e,Object.assign({},Rn,jh(qd(t)))),r,o,i,s=!1,l=!1,u=!1,d=!1,c,p,h,m=[],y=jd(Ve,n.interactiveDebounce),w,k=K_++,_=null,x=M_(n.plugins),S={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},b={id:k,reference:e,popper:da(),popperInstance:_,props:n,state:S,plugins:x,clearDelayTimeouts:Et,setProps:_t,setContent:Mt,show:jt,hide:pn,hideWithInteractivity:On,enable:je,disable:xe,unmount:Ot,destroy:F};if(!n.render)return b;var N=n.render(b),T=N.popper,I=N.onUpdate;T.setAttribute("data-tippy-root",""),T.id="tippy-"+b.id,b.popper=T,e._tippy=b,T._tippy=b;var $=x.map(function(B){return B.fn(b)}),W=e.hasAttribute("aria-expanded");return Pe(),U(),z(),H("onCreate",[b]),n.showOnCreate&&he(),T.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),T.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&K().addEventListener("mousemove",y)}),b;function j(){var B=b.props.touch;return Array.isArray(B)?B:[B,0]}function M(){return j()[0]==="hold"}function D(){var B;return!!((B=b.props.render)!=null&&B.$$tippy)}function R(){return w||e}function K(){var B=R().parentNode;return B?Uh(B):document}function G(){return os(T)}function Y(B){return b.state.isMounted&&!b.state.isVisible||Wn.isTouch||c&&c.type==="focus"?0:kl(b.props.delay,B?0:1,Rn.delay)}function z(B){B===void 0&&(B=!1),T.style.pointerEvents=b.props.interactive&&!B?"":"none",T.style.zIndex=""+b.props.zIndex}function H(B,te,oe){if(oe===void 0&&(oe=!0),$.forEach(function(we){we[B]&&we[B].apply(we,te)}),oe){var ye;(ye=b.props)[B].apply(ye,te)}}function C(){var B=b.props.aria;if(B.content){var te="aria-"+B.content,oe=T.id,ye=aa(b.props.triggerTarget||e);ye.forEach(function(we){var Ue=we.getAttribute(te);if(b.state.isVisible)we.setAttribute(te,Ue?Ue+" "+oe:oe);else{var J=Ue&&Ue.replace(oe,"").trim();J?we.setAttribute(te,J):we.removeAttribute(te)}})}}function U(){if(!(W||!b.props.aria.expanded)){var B=aa(b.props.triggerTarget||e);B.forEach(function(te){b.props.interactive?te.setAttribute("aria-expanded",b.state.isVisible&&te===R()?"true":"false"):te.removeAttribute("aria-expanded")})}}function Q(){K().removeEventListener("mousemove",y),Oi=Oi.filter(function(B){return B!==y})}function X(B){if(!(Wn.isTouch&&(u||B.type==="mousedown"))){var te=B.composedPath&&B.composedPath()[0]||B.target;if(!(b.props.interactive&&Yd(T,te))){if(aa(b.props.triggerTarget||e).some(function(oe){return Yd(oe,te)})){if(Wn.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else H("onClickOutside",[b,B]);b.props.hideOnClick===!0&&(b.clearDelayTimeouts(),b.hide(),l=!0,setTimeout(function(){l=!1}),b.state.isMounted||A())}}}function V(){u=!0}function E(){u=!1}function O(){var B=K();B.addEventListener("mousedown",X,!0),B.addEventListener("touchend",X,na),B.addEventListener("touchstart",E,na),B.addEventListener("touchmove",V,na)}function A(){var B=K();B.removeEventListener("mousedown",X,!0),B.removeEventListener("touchend",X,na),B.removeEventListener("touchstart",E,na),B.removeEventListener("touchmove",V,na)}function Z(B,te){ie(B,function(){!b.state.isVisible&&T.parentNode&&T.parentNode.contains(T)&&te()})}function re(B,te){ie(B,te)}function ie(B,te){var oe=G().box;function ye(we){we.target===oe&&(Cl(oe,"remove",ye),te())}if(B===0)return te();Cl(oe,"remove",p),Cl(oe,"add",ye),p=ye}function Te(B,te,oe){oe===void 0&&(oe=!1);var ye=aa(b.props.triggerTarget||e);ye.forEach(function(we){we.addEventListener(B,te,oe),m.push({node:we,eventType:B,handler:te,options:oe})})}function Pe(){M()&&(Te("touchstart",Ie,{passive:!0}),Te("touchend",Be,{passive:!0})),D_(b.props.trigger).forEach(function(B){if(B!=="manual")switch(Te(B,Ie),B){case"mouseenter":Te("mouseleave",Be);break;case"focus":Te(U_?"focusout":"blur",at);break;case"focusin":Te("focusout",at);break}})}function fe(){m.forEach(function(B){var te=B.node,oe=B.eventType,ye=B.handler,we=B.options;te.removeEventListener(oe,ye,we)}),m=[]}function Ie(B){var te,oe=!1;if(!(!b.state.isEnabled||Je(B)||l)){var ye=((te=c)==null?void 0:te.type)==="focus";c=B,w=B.currentTarget,U(),!b.state.isVisible&&lc(B)&&Oi.forEach(function(we){return we(B)}),B.type==="click"&&(b.props.trigger.indexOf("mouseenter")<0||s)&&b.props.hideOnClick!==!1&&b.state.isVisible?oe=!0:he(B),B.type==="click"&&(s=!oe),oe&&!ye&&le(B)}}function Ve(B){var te=B.target,oe=R().contains(te)||T.contains(te);if(!(B.type==="mousemove"&&oe)){var ye=ae().concat(T).map(function(we){var Ue,J=we._tippy,ce=(Ue=J.popperInstance)==null?void 0:Ue.state;return ce?{popperRect:we.getBoundingClientRect(),popperState:ce,props:n}:null}).filter(Boolean);$_(ye,B)&&(Q(),le(B))}}function Be(B){var te=Je(B)||b.props.trigger.indexOf("click")>=0&&s;if(!te){if(b.props.interactive){b.hideWithInteractivity(B);return}le(B)}}function at(B){b.props.trigger.indexOf("focusin")<0&&B.target!==R()||b.props.interactive&&B.relatedTarget&&T.contains(B.relatedTarget)||le(B)}function Je(B){return Wn.isTouch?M()!==B.type.indexOf("touch")>=0:!1}function Ye(){pe();var B=b.props,te=B.popperOptions,oe=B.placement,ye=B.offset,we=B.getReferenceClientRect,Ue=B.moveTransition,J=D()?os(T).arrow:null,ce=we?{getBoundingClientRect:we,contextElement:we.contextElement||R()}:e,We={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(me){var dt=me.state;if(D()){var Me=G(),on=Me.box;["placement","reference-hidden","escaped"].forEach(function(Gt){Gt==="placement"?on.setAttribute("data-placement",dt.placement):dt.attributes.popper["data-popper-"+Gt]?on.setAttribute("data-"+Gt,""):on.removeAttribute("data-"+Gt)}),dt.attributes.popper={}}}},Ae=[{name:"offset",options:{offset:ye}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Ue}},We];D()&&J&&Ae.push({name:"arrow",options:{element:J,padding:3}}),Ae.push.apply(Ae,(te==null?void 0:te.modifiers)||[]),b.popperInstance=P_(ce,T,Object.assign({},te,{placement:oe,onFirstUpdate:h,modifiers:Ae}))}function pe(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Ne(){var B=b.props.appendTo,te,oe=R();b.props.interactive&&B===Vh||B==="parent"?te=oe.parentNode:te=Fh(B,[oe]),te.contains(T)||te.appendChild(T),b.state.isMounted=!0,Ye()}function ae(){return eo(T.querySelectorAll("[data-tippy-root]"))}function he(B){b.clearDelayTimeouts(),B&&H("onTrigger",[b,B]),O();var te=Y(!0),oe=j(),ye=oe[0],we=oe[1];Wn.isTouch&&ye==="hold"&&we&&(te=we),te?r=setTimeout(function(){b.show()},te):b.show()}function le(B){if(b.clearDelayTimeouts(),H("onUntrigger",[b,B]),!b.state.isVisible){A();return}if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(B.type)>=0&&s)){var te=Y(!1);te?o=setTimeout(function(){b.state.isVisible&&b.hide()},te):i=requestAnimationFrame(function(){b.hide()})}}function je(){b.state.isEnabled=!0}function xe(){b.hide(),b.state.isEnabled=!1}function Et(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)}function _t(B){if(!b.state.isDestroyed){H("onBeforeUpdate",[b,B]),fe();var te=b.props,oe=Kd(e,Object.assign({},te,qd(B),{ignoreAttributes:!0}));b.props=oe,Pe(),te.interactiveDebounce!==oe.interactiveDebounce&&(Q(),y=jd(Ve,oe.interactiveDebounce)),te.triggerTarget&&!oe.triggerTarget?aa(te.triggerTarget).forEach(function(ye){ye.removeAttribute("aria-expanded")}):oe.triggerTarget&&e.removeAttribute("aria-expanded"),U(),z(),I&&I(te,oe),b.popperInstance&&(Ye(),ae().forEach(function(ye){requestAnimationFrame(ye._tippy.popperInstance.forceUpdate)})),H("onAfterUpdate",[b,B])}}function Mt(B){b.setProps({content:B})}function jt(){var B=b.state.isVisible,te=b.state.isDestroyed,oe=!b.state.isEnabled,ye=Wn.isTouch&&!b.props.touch,we=kl(b.props.duration,0,Rn.duration);if(!(B||te||oe||ye)&&!R().hasAttribute("disabled")&&(H("onShow",[b],!1),b.props.onShow(b)!==!1)){if(b.state.isVisible=!0,D()&&(T.style.visibility="visible"),z(),O(),b.state.isMounted||(T.style.transition="none"),D()){var Ue=G(),J=Ue.box,ce=Ue.content;Sl([J,ce],0)}h=function(){var Ae;if(!(!b.state.isVisible||d)){if(d=!0,T.offsetHeight,T.style.transition=b.props.moveTransition,D()&&b.props.animation){var Qe=G(),me=Qe.box,dt=Qe.content;Sl([me,dt],we),ei([me,dt],"visible")}C(),U(),Wd(Tl,b),(Ae=b.popperInstance)==null||Ae.forceUpdate(),H("onMount",[b]),b.props.animation&&D()&&re(we,function(){b.state.isShown=!0,H("onShown",[b])})}},Ne()}}function pn(){var B=!b.state.isVisible,te=b.state.isDestroyed,oe=!b.state.isEnabled,ye=kl(b.props.duration,1,Rn.duration);if(!(B||te||oe)&&(H("onHide",[b],!1),b.props.onHide(b)!==!1)){if(b.state.isVisible=!1,b.state.isShown=!1,d=!1,s=!1,D()&&(T.style.visibility="hidden"),Q(),A(),z(!0),D()){var we=G(),Ue=we.box,J=we.content;b.props.animation&&(Sl([Ue,J],ye),ei([Ue,J],"hidden"))}C(),U(),b.props.animation?D()&&Z(ye,b.unmount):b.unmount()}}function On(B){K().addEventListener("mousemove",y),Wd(Oi,y),y(B)}function Ot(){b.state.isVisible&&b.hide(),b.state.isMounted&&(pe(),ae().forEach(function(B){B._tippy.unmount()}),T.parentNode&&T.parentNode.removeChild(T),Tl=Tl.filter(function(B){return B!==b}),b.state.isMounted=!1,H("onHidden",[b]))}function F(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),fe(),delete e._tippy,b.state.isDestroyed=!0,H("onDestroy",[b]))}}function Ce(e,t){t===void 0&&(t={});var n=Rn.plugins.concat(t.plugins||[]);F_();var r=Object.assign({},t,{plugins:n}),o=R_(e),i=o.reduce(function(s,l){var u=l&&X_(l,r);return u&&s.push(u),s},[]);return Vs(e)?i[0]:i}Ce.defaultProps=Rn;Ce.setDefaultProps=q_;Ce.currentInput=Wn;var J_=Object.assign({},Ih,{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)}}),Z_=function(t,n){var r;n===void 0&&(n={});var o=t,i=[],s=[],l,u=n.overrides,d=[],c=!1;function p(){s=o.map(function(b){return aa(b.props.triggerTarget||b.reference)}).reduce(function(b,N){return b.concat(N)},[])}function h(){i=o.map(function(b){return b.reference})}function m(b){o.forEach(function(N){b?N.enable():N.disable()})}function y(b){return o.map(function(N){var T=N.setProps;return N.setProps=function(I){T(I),N.reference===l&&b.setProps(I)},function(){N.setProps=T}})}function w(b,N){var T=s.indexOf(N);if(N!==l){l=N;var I=(u||[]).concat("content").reduce(function($,W){return $[W]=o[T].props[W],$},{});b.setProps(Object.assign({},I,{getReferenceClientRect:typeof I.getReferenceClientRect=="function"?I.getReferenceClientRect:function(){var $;return($=i[T])==null?void 0:$.getBoundingClientRect()}}))}}m(!1),h(),p();var k={fn:function(){return{onDestroy:function(){m(!0)},onHidden:function(){l=null},onClickOutside:function(T){T.props.showOnCreate&&!c&&(c=!0,l=null)},onShow:function(T){T.props.showOnCreate&&!c&&(c=!0,w(T,i[0]))},onTrigger:function(T,I){w(T,I.currentTarget)}}}},_=Ce(da(),Object.assign({},N_(n,["overrides"]),{plugins:[k].concat(n.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},n.popperOptions,{modifiers:[].concat(((r=n.popperOptions)==null?void 0:r.modifiers)||[],[J_])})})),x=_.show;_.show=function(b){if(x(),!l&&b==null)return w(_,i[0]);if(!(l&&b==null)){if(typeof b=="number")return i[b]&&w(_,i[b]);if(o.indexOf(b)>=0){var N=b.reference;return w(_,N)}if(i.indexOf(b)>=0)return w(_,b)}},_.showNext=function(){var b=i[0];if(!l)return _.show(0);var N=i.indexOf(l);_.show(i[N+1]||b)},_.showPrevious=function(){var b=i[i.length-1];if(!l)return _.show(b);var N=i.indexOf(l),T=i[N-1]||b;_.show(T)};var S=_.setProps;return _.setProps=function(b){u=b.overrides||u,S(b)},_.setInstances=function(b){m(!0),d.forEach(function(N){return N()}),o=b,m(!1),h(),p(),d=y(_),_.setProps({triggerTarget:s})},d=y(_),_},Q_={name:"animateFill",defaultValue:!1,fn:function(t){var n;if(!((n=t.props.render)!=null&&n.$$tippy))return{};var r=os(t.popper),o=r.box,i=r.content,s=t.props.animateFill?ew():null;return{onCreate:function(){s&&(o.insertBefore(s,o.firstElementChild),o.setAttribute("data-animatefill",""),o.style.overflow="hidden",t.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(s){var u=o.style.transitionDuration,d=Number(u.replace("ms",""));i.style.transitionDelay=Math.round(d/10)+"ms",s.style.transitionDuration=u,ei([s],"visible")}},onShow:function(){s&&(s.style.transitionDuration="0ms")},onHide:function(){s&&ei([s],"hidden")}}}};function ew(){var e=da();return e.className=Rh,ei([e],"hidden"),e}var iu={clientX:0,clientY:0},Ni=[];function qh(e){var t=e.clientX,n=e.clientY;iu={clientX:t,clientY:n}}function tw(e){e.addEventListener("mousemove",qh)}function nw(e){e.removeEventListener("mousemove",qh)}var rw={name:"followCursor",defaultValue:!1,fn:function(t){var n=t.reference,r=Uh(t.props.triggerTarget||n),o=!1,i=!1,s=!0,l=t.props;function u(){return t.props.followCursor==="initial"&&t.state.isVisible}function d(){r.addEventListener("mousemove",h)}function c(){r.removeEventListener("mousemove",h)}function p(){o=!0,t.setProps({getReferenceClientRect:null}),o=!1}function h(w){var k=w.target?n.contains(w.target):!0,_=t.props.followCursor,x=w.clientX,S=w.clientY,b=n.getBoundingClientRect(),N=x-b.left,T=S-b.top;(k||!t.props.interactive)&&t.setProps({getReferenceClientRect:function(){var $=n.getBoundingClientRect(),W=x,j=S;_==="initial"&&(W=$.left+N,j=$.top+T);var M=_==="horizontal"?$.top:j,D=_==="vertical"?$.right:W,R=_==="horizontal"?$.bottom:j,K=_==="vertical"?$.left:W;return{width:D-K,height:R-M,top:M,right:D,bottom:R,left:K}}})}function m(){t.props.followCursor&&(Ni.push({instance:t,doc:r}),tw(r))}function y(){Ni=Ni.filter(function(w){return w.instance!==t}),Ni.filter(function(w){return w.doc===r}).length===0&&nw(r)}return{onCreate:m,onDestroy:y,onBeforeUpdate:function(){l=t.props},onAfterUpdate:function(k,_){var x=_.followCursor;o||x!==void 0&&l.followCursor!==x&&(y(),x?(m(),t.state.isMounted&&!i&&!u()&&d()):(c(),p()))},onMount:function(){t.props.followCursor&&!i&&(s&&(h(iu),s=!1),u()||d())},onTrigger:function(k,_){lc(_)&&(iu={clientX:_.clientX,clientY:_.clientY}),i=_.type==="focus"},onHidden:function(){t.props.followCursor&&(p(),c(),s=!0)}}}};function aw(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 ow={name:"inlinePositioning",defaultValue:!1,fn:function(t){var n=t.reference;function r(){return!!t.props.inlinePositioning}var o,i=-1,s=!1,l=[],u={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(m){var y=m.state;r()&&(l.indexOf(y.placement)!==-1&&(l=[]),o!==y.placement&&l.indexOf(y.placement)===-1&&(l.push(y.placement),t.setProps({getReferenceClientRect:function(){return d(y.placement)}})),o=y.placement)}};function d(h){return iw(Hh(h),n.getBoundingClientRect(),eo(n.getClientRects()),i)}function c(h){s=!0,t.setProps(h),s=!1}function p(){s||c(aw(t.props,u))}return{onCreate:p,onAfterUpdate:p,onTrigger:function(m,y){if(lc(y)){var w=eo(t.reference.getClientRects()),k=w.find(function(x){return x.left-2<=y.clientX&&x.right+2>=y.clientX&&x.top-2<=y.clientY&&x.bottom+2>=y.clientY}),_=w.indexOf(k);i=_>-1?_:i}},onHidden:function(){i=-1}}}};function iw(e,t,n,r){if(n.length<2||e===null)return t;if(n.length===2&&r>=0&&n[0].left>n[1].right)return n[r]||t;switch(e){case"top":case"bottom":{var o=n[0],i=n[n.length-1],s=e==="top",l=o.top,u=i.bottom,d=s?o.left:i.left,c=s?o.right:i.right,p=c-d,h=u-l;return{top:l,bottom:u,left:d,right:c,width:p,height:h}}case"left":case"right":{var m=Math.min.apply(Math,n.map(function(T){return T.left})),y=Math.max.apply(Math,n.map(function(T){return T.right})),w=n.filter(function(T){return e==="left"?T.left===m:T.right===y}),k=w[0].top,_=w[w.length-1].bottom,x=m,S=y,b=S-x,N=_-k;return{top:k,bottom:_,left:x,right:S,width:b,height:N}}default:return t}}var sw={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 u(){var d=i("reference")?o().getBoundingClientRect():null,c=i("popper")?r.getBoundingClientRect():null;(d&&Zd(s,d)||c&&Zd(l,c))&&t.popperInstance&&t.popperInstance.update(),s=d,l=c,t.state.isMounted&&requestAnimationFrame(u)}return{onMount:function(){t.props.sticky&&u()}}}};function Zd(e,t){return e&&t?e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left:!0}Ce.setDefaultProps({render:Wh});Ce.setDefaultProps({onShow:e=>{if(!e.props.content)return!1}});function uc(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 u=()=>l||(l=document.createDocumentFragment(),l),d=I=>{let $,W=a.isRef(I)?I.value:I;return a.isVNode(W)?(s.value||(s.value=a.createApp({name:n.appName,setup:()=>()=>a.isRef(I)?I.value:I}),r&&Object.assign(s.value._context,r.appContext),s.value.mount(u())),$=()=>u()):typeof W=="object"?(s.value||(s.value=a.createApp({name:n.appName,setup:()=>()=>a.h(a.isRef(I)?I.value:I)}),r&&Object.assign(s.value._context,r.appContext),s.value.mount(u())),$=()=>u()):$=W,$},c=I=>{let $={};return a.isRef(I)?$=I.value||{}:a.isReactive(I)?$={...I}:$={...I},$.content&&($.content=d($.content)),$.triggerTarget&&($.triggerTarget=a.isRef($.triggerTarget)?$.triggerTarget.value:$.triggerTarget),(!$.plugins||!Array.isArray($.plugins))&&($.plugins=[]),$.plugins=$.plugins.filter(W=>W.name!=="vueTippyReactiveState"),$.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}})}),$},p=()=>{o.value&&o.value.setProps(c(t))},h=()=>{!o.value||!t.content||o.value.setContent(d(t.content))},m=I=>{var $;($=o.value)===null||$===void 0||$.setContent(d(I))},y=I=>{var $;($=o.value)===null||$===void 0||$.setProps(c(I))},w=()=>{var I;o.value&&(o.value.destroy(),o.value=void 0),l=null,(I=s.value)===null||I===void 0||I.unmount(),s.value=void 0},k=()=>{var I;(I=o.value)===null||I===void 0||I.show()},_=()=>{var I;(I=o.value)===null||I===void 0||I.hide()},x=()=>{var I;(I=o.value)===null||I===void 0||I.disable(),i.value.isEnabled=!1},S=()=>{var I;(I=o.value)===null||I===void 0||I.enable(),i.value.isEnabled=!0},b=()=>{var I;(I=o.value)===null||I===void 0||I.unmount()},N=()=>{if(!e)return;let I=a.isRef(e)?e.value:e;typeof I=="function"&&(I=I()),I&&(o.value=Ce(I,c(t)),I.$tippy=T)},T={tippy:o,refresh:p,refreshContent:h,setContent:m,setProps:y,destroy:w,hide:_,show:k,disable:x,enable:S,unmount:b,mount:N,state:i};return n.mount&&(r?r.isMounted?N():a.onMounted(N):N()),r&&a.onUnmounted(()=>{w()}),a.isRef(t)||a.isReactive(t)?a.watch(t,p,{immediate:!1}):a.isRef(t.content)&&a.watch(t.content,h,{immediate:!1}),T}function lw(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=Z_(o,t?{allowHTML:!0,...t}:{allowHTML:!0})}),{singleton:n}}function uw(e){return typeof e=="function"?e():a.unref(e)}function cw(e){var t,n;const r=uw(e);return(n=(t=r)===null||t===void 0?void 0:t.$el)!==null&&n!==void 0?n:r}const dw=a.defineComponent({props:{to:{type:[String,Function]},tag:{type:[String,Object],default:"span"},contentTag:{type:[String,Object],default:"span"},contentClass:{type:String,default:null},appendTo:{default:()=>Ce.defaultProps.appendTo},aria:{default:()=>Ce.defaultProps.aria},delay:{default:()=>Ce.defaultProps.delay},duration:{default:()=>Ce.defaultProps.duration},getReferenceClientRect:{default:()=>Ce.defaultProps.getReferenceClientRect},hideOnClick:{type:[Boolean,String],default:()=>Ce.defaultProps.hideOnClick},ignoreAttributes:{type:Boolean,default:()=>Ce.defaultProps.ignoreAttributes},interactive:{type:Boolean,default:()=>Ce.defaultProps.interactive},interactiveBorder:{default:()=>Ce.defaultProps.interactiveBorder},interactiveDebounce:{default:()=>Ce.defaultProps.interactiveDebounce},moveTransition:{default:()=>Ce.defaultProps.moveTransition},offset:{default:()=>Ce.defaultProps.offset},onAfterUpdate:{default:()=>Ce.defaultProps.onAfterUpdate},onBeforeUpdate:{default:()=>Ce.defaultProps.onBeforeUpdate},onCreate:{default:()=>Ce.defaultProps.onCreate},onDestroy:{default:()=>Ce.defaultProps.onDestroy},onHidden:{default:()=>Ce.defaultProps.onHidden},onHide:{default:()=>Ce.defaultProps.onHide},onMount:{default:()=>Ce.defaultProps.onMount},onShow:{default:()=>Ce.defaultProps.onShow},onShown:{default:()=>Ce.defaultProps.onShown},onTrigger:{default:()=>Ce.defaultProps.onTrigger},onUntrigger:{default:()=>Ce.defaultProps.onUntrigger},onClickOutside:{default:()=>Ce.defaultProps.onClickOutside},placement:{default:()=>Ce.defaultProps.placement},plugins:{default:()=>Ce.defaultProps.plugins},popperOptions:{default:()=>Ce.defaultProps.popperOptions},render:{default:()=>Ce.defaultProps.render},showOnCreate:{type:Boolean,default:()=>Ce.defaultProps.showOnCreate},touch:{type:[Boolean,String,Array],default:()=>Ce.defaultProps.touch},trigger:{default:()=>Ce.defaultProps.trigger},triggerTarget:{default:()=>Ce.defaultProps.triggerTarget},animateFill:{type:Boolean,default:()=>Ce.defaultProps.animateFill},followCursor:{type:[Boolean,String],default:()=>Ce.defaultProps.followCursor},inlinePositioning:{type:Boolean,default:()=>Ce.defaultProps.inlinePositioning},sticky:{type:[Boolean,String],default:()=>Ce.defaultProps.sticky},allowHTML:{type:Boolean,default:()=>Ce.defaultProps.allowHTML},animation:{default:()=>Ce.defaultProps.animation},arrow:{default:()=>Ce.defaultProps.arrow},content:{default:()=>Ce.defaultProps.content},inertia:{default:()=>Ce.defaultProps.inertia},maxWidth:{default:()=>Ce.defaultProps.maxWidth},role:{default:()=>Ce.defaultProps.role},theme:{default:()=>Ce.defaultProps.theme},zIndex:{default:()=>Ce.defaultProps.zIndex}},emits:["state"],setup(e,{slots:t,emit:n,expose:r}){const o=a.ref(),i=a.ref(),s=a.ref(),l=a.ref(!1),u=()=>{let m={...e};for(const y of["to","tag","contentTag","contentClass"])m.hasOwnProperty(y)&&delete m[y];return m};let d=()=>cw(o);e.to&&(typeof Element<"u"&&e.to instanceof Element?d=()=>e.to:e.to==="parent"?d=()=>{let m=o.value;return m||(m=o.value=i.value.parentElement),m}:(typeof e.to=="string"||e.to instanceof String)&&(d=()=>document.querySelector(e.to)));const c=uc(d,u());let p=t.content;!p&&e.to==="parent"&&(p=t.default),a.onMounted(()=>{l.value=!0,a.nextTick(()=>{p&&c.setContent(()=>s.value)})}),a.watch(c.state,()=>{n("state",a.unref(c.state))},{immediate:!0,deep:!0}),a.watch(()=>e,()=>{c.setProps(u()),p&&c.setContent(()=>s.value)},{deep:!0});let h=a.reactive({elem:o,contentElem:s,mounted:l,...c});return r(h),()=>{const m=(typeof e.contentTag=="string",e.contentTag),y=p?a.h(m,{ref:s,style:{display:l.value?"inherit":"none"},class:e.contentClass},p(h)):null;if(e.to==="parent"){const _=[];if(!o.value){const x=a.h("span",{ref:i,"data-v-tippy":"",style:{display:"none"}});_.push(x)}return y&&_.push(y),_}const w=t.default?t.default(h):[];if(!e.tag){const _=a.h(w[0],{ref:o,"data-v-tippy":""});return y?[_,y]:_}const k=(typeof e.tag=="string",e.tag);return a.h(k,{ref:o,"data-v-tippy":""},y?[w,y]:w)}}}),fw=["a11y","allowHTML","arrow","flip","flipOnUpdate","hideOnClick","ignoreAttributes","inertia","interactive","lazy","multiple","showOnInit","touch","touchHold"];let su={};Object.keys(Ce.defaultProps).forEach(e=>{fw.includes(e)?su[e]={type:Boolean,default:function(){return Ce.defaultProps[e]}}:su[e]={default:function(){return Ce.defaultProps[e]}}});const pw=a.defineComponent({props:su,setup(e){const t=a.ref([]),{singleton:n}=lw(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)}}),hw={mounted(e,t,n){const r=typeof t.value=="string"?{content:t.value}:t.value||{},o=Object.keys(t.modifiers||{}),i=o.find(l=>l!=="arrow"),s=o.findIndex(l=>l==="arrow")!==-1;i&&(r.placement=r.placement||i),s&&(r.arrow=r.arrow!==void 0?r.arrow:!0),n.props&&n.props.onTippyShow&&(r.onShow=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyShow(...l)}),n.props&&n.props.onTippyShown&&(r.onShown=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyShown(...l)}),n.props&&n.props.onTippyHidden&&(r.onHidden=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyHidden(...l)}),n.props&&n.props.onTippyHide&&(r.onHide=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyHide(...l)}),n.props&&n.props.onTippyMount&&(r.onMount=function(...l){var u;return(u=n.props)===null||u===void 0?void 0:u.onTippyMount(...l)}),e.getAttribute("title")&&!r.content&&(r.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!r.content&&(r.content=e.getAttribute("content")),uc(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||{})}},mw={install(e,t={}){Ce.setDefaultProps(t.defaultProps||{}),e.directive(t.directive||"tippy",hw),e.component(t.component||"tippy",dw),e.component(t.componentSingleton||"tippy-singleton",pw)}},vw=Ce.setDefaultProps;vw({ignoreAttributes:!0,plugins:[sw,ow,rw,Q_]});const ln={navigationItems:a.shallowRef([]),mainMenuOpen:a.shallowRef(!1),mobileMenuOpen:a.shallowRef(!1),mobileMenuOpenTransition:a.shallowRef(!1),navigationComponent:a.shallowRef("a"),logo:a.shallowRef(null),avatar:a.shallowRef(null),contactRoute:a.shallowRef(),contactIcon:a.shallowRef("?")};function yo(){function e(c){ln.navigationItems.value=a.isRef(c)?c==null?void 0:c.value:c}function t(c){ln.navigationComponent.value=c}function n(c){ln.logo.value=c}function r(c){ln.avatar.value=c}function o(){ln.mainMenuOpen.value=!0}function i(){ln.mainMenuOpen.value=!1}function s(){ln.mainMenuOpen.value=!ln.mainMenuOpen.value}function l(){ln.mobileMenuOpen.value=!0,ln.mobileMenuOpenTransition.value=!0}function u(){ln.mobileMenuOpen.value=!1,setTimeout(()=>{ln.mobileMenuOpenTransition.value=!1},100)}function d(){return ln.mobileMenuOpen.value?u():l()}return{...ln,setNavigationItems:e,setNavigationComponent:t,setLogo:n,setAvatar:r,openMainMenu:o,closeMainMenu:i,toggleMainMenu:s,openMobileMenu:l,closeMobileMenu:u,toggleMobileMenu:d}}const Oa={layoutImage:a.ref(null),colors:{primaryColor:a.ref("#47A6DC"),primaryColorActive:a.ref("#3094CD"),secondaryColor:a.ref("#27272A"),secondaryColorActive:a.ref("#202023")}};function cc(){function e(r){Oa.layoutImage.value=r}function t(r,o){Oa.colors.primaryColor.value=r,Oa.colors.primaryColorActive.value=o,document.documentElement.style.setProperty("--color-primary",r),document.documentElement.style.setProperty("--color-primary-active",o)}function n(r,o){Oa.colors.secondaryColor.value=r,Oa.colors.secondaryColorActive.value=o,document.documentElement.style.setProperty("--color-secondary",r),document.documentElement.style.setProperty("--color-secondary-active",o)}return{...Oa,setLayoutImage:e,setPrimaryColors:t,setSecondaryColors:n}}function gw(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(c){try{d(r.next(c))}catch(p){s(p)}}function u(c){try{d(r.throw(c))}catch(p){s(p)}}function d(c){c.done?i(c.value):o(c.value).then(l,u)}d((r=r.apply(e,t||[])).next())})}function yw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bw=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!==0;){var s=i[o];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n},_w=yw(bw);const Qd="__googleMapsScriptId";var $a;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})($a||($a={}));class oa{constructor({apiKey:t,authReferrerPolicy:n,channel:r,client:o,id:i=Qd,language:s,libraries:l=[],mapIds:u,nonce:d,region:c,retries:p=3,url:h="https://maps.googleapis.com/maps/api/js",version:m}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=n,this.channel=r,this.client=o,this.id=i||Qd,this.language=s,this.libraries=l,this.mapIds=u,this.nonce=d,this.region=c,this.retries=p,this.url=h,this.version=m,oa.instance){if(!_w(this.options,oa.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(oa.instance.options)}`);return oa.instance}oa.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?$a.FAILURE:this.done?$a.SUCCESS:this.loading?$a.LOADING:$a.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`®ion=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((t,n)=>{this.loadCallback(r=>{r?n(r.error):t(window.google)})})}importLibrary(t){return this.execute(),google.maps.importLibrary(t)}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){var t,n;if(document.getElementById(this.id)){this.callback();return}const r={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(r).forEach(i=>!r[i]&&delete r[i]),!((n=(t=window==null?void 0:window.google)===null||t===void 0?void 0:t.maps)===null||n===void 0)&&n.importLibrary||(i=>{let s,l,u,d="The Google Maps JavaScript API",c="google",p="importLibrary",h="__ib__",m=document,y=window;y=y[c]||(y[c]={});const w=y.maps||(y.maps={}),k=new Set,_=new URLSearchParams,x=()=>s||(s=new Promise((S,b)=>gw(this,void 0,void 0,function*(){var N;yield l=m.createElement("script"),l.id=this.id,_.set("libraries",[...k]+"");for(u in i)_.set(u.replace(/[A-Z]/g,T=>"_"+T[0].toLowerCase()),i[u]);_.set("callback",c+".maps."+h),l.src=this.url+"?"+_,w[h]=S,l.onerror=()=>s=b(Error(d+" could not load.")),l.nonce=this.nonce||((N=m.querySelector("script[nonce]"))===null||N===void 0?void 0:N.nonce)||"",m.head.append(l)})));w[p]?console.warn(d+" only loads once. Ignoring:",i):w[p]=(S,...b)=>k.add(S)&&x().then(()=>w[p](S,...b))})(r);const o=this.libraries.map(i=>this.importLibrary(i));o.length||o.push(this.importLibrary("core")),Promise.all(o).then(()=>this.callback(),i=>{const s=new ErrorEvent("error",{error:i});this.loadErrorCallback(s)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const n=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${n} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},n)}else this.onerrorEvent=t,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(t=>{t(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setScript())}}}const El={loaded:a.ref(!1)};function ww(){async function e(t){El.loaded&&(await new oa({apiKey:t,version:"weekly"}).load(),El.loaded.value=!0)}return{...El,load:e}}const cr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},kw={},Sw={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Cw=a.createElementVNode("circle",{r:"10",cy:"12",cx:"12.0269",fill:"#22C55E"},null,-1),Tw=a.createElementVNode("path",{stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",d:"M8 12.8571L10.5714 15.4286L17 9"},null,-1),Ew=[Cw,Tw];function xw(e,t){return a.openBlock(),a.createElementBlock("svg",Sw,Ew)}const Yh=cr(kw,[["render",xw]]),Iw={},Pw={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ow=a.createElementVNode("path",{fill:"#EAB308",stroke:"#EAB308","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",d:`M2.31804 17.4787C1.41423 19.0442 2.54451 21 4.35109 21H19.7033C21.5089 21 22.6391 19.0442
|
|
6
|
+
21.7364 17.4787L14.0613 4.17412C13.1575 2.60863 10.8969 2.60863 9.99311 4.17412L2.31804 17.4787Z`},null,-1),Nw=a.createElementVNode("path",{stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8V13.549M12 17.9882H12.0104V18H12V17.9882Z"},null,-1),Dw=[Ow,Nw];function Mw(e,t){return a.openBlock(),a.createElementBlock("svg",Pw,Dw)}const Gh=cr(Iw,[["render",Mw]]),Bw={},Aw={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Rw=a.createElementVNode("circle",{r:"10",cy:"12",cx:"12.0269",fill:"#DC2626"},null,-1),$w=a.createElementVNode("path",{stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",d:"M12.0269 7V12.549M12.0269 16.9882H12.0372V17H12.0269V16.9882Z"},null,-1),Lw=[Rw,$w];function Vw(e,t){return a.openBlock(),a.createElementBlock("svg",Aw,Lw)}const Kh=cr(Bw,[["render",Vw]]),Fw={success:["bg-green-100"],warning:["bg-yellow-100"],error:["bg-red-100"]},Xh={success:Yh,warning:Gh,error:Kh},Hw={class:"flex items-center font-bold"},Uw={key:0,class:"mr-2"},zw={"data-test-title":""},jw={key:0,class:"mt-1","data-test-description":""},Ww=a.defineComponent({__name:"AppAlert",props:{type:{},title:{default:void 0},description:{default:void 0},withIcon:{type:Boolean,default:!0}},setup(e){const t=a.useSlots();return(n,r)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([a.unref(Fw)[n.type],"app-alert flex flex-col rounded-lg px-4 py-2 text-sm text-zinc-900"])},[a.createElementVNode("div",Hw,[n.withIcon?(a.openBlock(),a.createElementBlock("span",Uw,[a.renderSlot(n.$slots,"icon",{type:n.type},()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Xh)[n.type]),{class:"h-5 w-5"}))])])):a.createCommentVNode("",!0),a.createElementVNode("span",zw,[a.renderSlot(n.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(n.title),1)])])]),n.description||a.unref(t).description?(a.openBlock(),a.createElementBlock("div",jw,[a.renderSlot(n.$slots,"description",{},()=>[a.createTextVNode(a.toDisplayString(n.description),1)])])):a.createCommentVNode("",!0)],2))}}),qw={small:["w-7 h-7"],medium:["w-10 h-10"],large:["w-12 h-12"]},Yw={width:"39",height:"39",viewBox:"0 0 39 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Gw=a.createElementVNode("mask",{id:"mask0_928_1872",style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"39",height:"39"},[a.createElementVNode("circle",{cx:"19.5",cy:"19.5",r:"19.5",fill:"#D9D9D9"})],-1),Kw={mask:"url(#mask0_928_1872)"},Xw=a.createElementVNode("circle",{cx:"19.5",cy:"19.5",r:"19.5",fill:"#E4E4E7"},null,-1),Jw=a.createElementVNode("path",{d:`M22.1755 30.7083C21.0239 32.4573 21.339 35.344 21.339 35.344C21.339 35.344 23.0323 34.3422 23.1456
|
|
7
|
+
32.6631C23.2588 30.984 22.1755 30.7083 22.1755 30.7083Z`,fill:"#EBEFF2"},null,-1),Zw=["fill"],Qw=a.createStaticVNode(`<path d="M28.9482 30.3374C28.9564 30.4399 28.8581 30.617 28.6812 30.8453C27.6784 32.1493 24.1454 35.1328 23.3724
|
|
21
8
|
35.5308C22.4628 35.9993 23.2503 32.6818 22.2268 30.5188C22.7132 30.5487 26.6922 28.6152 27.933 28.4082C28.0986
|
|
22
9
|
28.3804 28.2155 28.3836 28.2683 28.4252C28.7226 28.7859 28.8954 29.6513 28.9482 30.3364V30.3374Z" fill="white"></path><path d="M14.0829 3.72947C10.4355 3.03851 8.76582 6.04253 9.26737 8.87937C9.76786 11.7162 15.3706 12.932 16.0383
|
|
23
10
|
12.9563C16.706 12.9807 17.0393 8.95132 16.6817 6.78111C16.324 4.61195 14.0829 3.72947 14.0829 3.72947Z" fill="#27272A"></path><path d="M27.9844 28.5191C26.8257 28.7064 23.335 30.3201 22.3573 30.5761C22.3541 30.5761 22.353 30.5772 22.352
|
|
@@ -52,68 +39,69 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
52
39
|
23.1433 79.253C23.1423 79.2519 23.1402 79.2519 23.1402 79.2519C25.1495 76.1389 26.978 73.0164 27.2552
|
|
53
40
|
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
|
|
54
41
|
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
|
|
55
|
-
76.4574 31.7089 80.4317Z" fill="#E25C2A"></path><ellipse cx="16.0958" cy="13.853" rx="0.579469" ry="1.39073" transform="rotate(7.61614 16.0958 13.853)" fill="#232426"></ellipse><ellipse cx="13.9746" cy="13.7072" rx="0.543825" ry="1.30518" transform="rotate(-0.540649 13.9746 13.7072)" fill="#232426"></ellipse>`,16),
|
|
42
|
+
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),e1=a.defineComponent({__name:"DefaultAvatar",props:{color:{}},setup(e){const t=e,{colors:n}=cc(),r=a.computed(()=>t.color??n.primaryColorActive.value);return(o,i)=>(a.openBlock(),a.createElementBlock("svg",Yw,[Gw,a.createElementVNode("g",Kw,[Xw,Jw,a.createElementVNode("path",{fill:r.value,d:`M35.5856 80.897C29.1642 82.4294 14.7376 82.1295 8.80295 80.8632C8.72254 75.5395 8.88442 70.0636 9.34891
|
|
56
43
|
64.4843C10.4863 50.8311 21.5303 37.8094 22.0551 33.4794C22.1757 32.4899 22.2107 31.5637 22.1715 30.7083C23.219
|
|
57
44
|
32.849 22.4128 36.1324 23.3428 35.6687C24.1342 35.2748 27.7454 32.322 28.7706 31.0314C31.6253 40.2237 35.6692
|
|
58
|
-
55.4599 35.6692 68.0444C35.6776 72.405 35.648 76.6969 35.5845 80.8981L35.5856 80.897Z`},null,8,
|
|
45
|
+
55.4599 35.6692 68.0444C35.6776 72.405 35.648 76.6969 35.5845 80.8981L35.5856 80.897Z`},null,8,Zw),Qw])]))}}),t1=["src"],n1=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(qw)[t.size],"app-avatar relative flex items-center rounded-full"])},[t.src?(a.openBlock(),a.createElementBlock("img",{key:0,src:t.src,alt:"avatar",class:"absolute inset-0 h-full w-full rounded-full"},null,8,t1)):(a.openBlock(),a.createBlock(e1,{key:1,color:t.defaultAvatarColor,class:"absolute inset-0 h-full w-full rounded-full"},null,8,["color"]))],2))}});function r1(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 Oo(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.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5m-9-6h.008v.008H12v-.008ZM12 15h.008v.008H12V15Zm0 2.25h.008v.008H12v-.008ZM9.75 15h.008v.008H9.75V15Zm0 2.25h.008v.008H9.75v-.008ZM7.5 15h.008v.008H7.5V15Zm0 2.25h.008v.008H7.5v-.008Zm6.75-4.5h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V15Zm0 2.25h.008v.008h-.008v-.008Zm2.25-4.5h.008v.008H16.5v-.008Zm0 2.25h.008v.008H16.5V15Z"})])}function Jh(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 Zh(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 Qh(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 a1(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 o1(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:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function i1(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 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}),a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z"})])}function s1(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:"m18.375 12.739-7.693 7.693a4.5 4.5 0 0 1-6.364-6.364l10.94-10.94A3 3 0 1 1 19.5 7.372L8.552 18.32m.009-.01-.01.01m5.699-9.941-7.81 7.81a1.5 1.5 0 0 0 2.112 2.13"})])}function Fs(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"})])}const l1={},u1={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},c1=a.createElementVNode("path",{stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",d:`M17.657 16.6567L13.414 20.8997C13.2284 21.0854 13.0081 21.2328 12.7656 21.3333C12.523 21.4339 12.2631
|
|
59
46
|
21.4856 12.0005 21.4856C11.738 21.4856 11.478 21.4339 11.2354 21.3333C10.9929 21.2328 10.7726 21.0854 10.587
|
|
60
47
|
20.8997L6.343 16.6567C5.22422 15.5379 4.46234 14.1124 4.15369 12.5606C3.84504 11.0087 4.00349 9.40022 4.60901
|
|
61
48
|
7.93844C5.21452 6.47665 6.2399 5.22725 7.55548 4.34821C8.87107 3.46918 10.4178 3 12 3C13.5822 3 15.1289 3.46918
|
|
62
49
|
16.4445 4.34821C17.7601 5.22725 18.7855 6.47665 19.391 7.93844C19.9965 9.40022 20.155 11.0087 19.8463
|
|
63
|
-
12.5606C19.5377 14.1124 18.7758 15.5379 17.657 16.6567V16.6567Z`},null,-1),
|
|
50
|
+
12.5606C19.5377 14.1124 18.7758 15.5379 17.657 16.6567V16.6567Z`},null,-1),d1=a.createElementVNode("path",{stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",d:`M15 10.9998C15 11.7954 14.6839 12.5585 14.1213 13.1211C13.5587 13.6837 12.7956 13.9998 12 13.9998C11.2044
|
|
64
51
|
13.9998 10.4413 13.6837 9.87868 13.1211C9.31607 12.5585 9 11.7954 9 10.9998C9 10.2041 9.31607 9.44104 9.87868
|
|
65
52
|
8.87844C10.4413 8.31583 11.2044 7.99976 12 7.99976C12.7956 7.99976 13.5587 8.31583 14.1213 8.87844C14.6839
|
|
66
|
-
9.44104 15 10.2041 15 10.9998V10.9998Z`},null,-1),
|
|
67
|
-
7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`},null,-1),k_=[__,w_],Kr=a.defineComponent({__name:"AppLoader",props:{size:{default:"medium"}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("svg",{class:a.normalizeClass([a.unref(b_)[t.size],"animate-spin"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none"},k_,2))}}),S_={class:"app-button__icon h-4"},C_=a.defineComponent({__name:"ButtonIconSlot",props:{loading:{type:Boolean}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("span",S_,[t.loading?(a.openBlock(),a.createBlock(Kr,{key:0,class:"w-4"})):a.renderSlot(t.$slots,"default",{key:1},void 0,!0)]))}});const Yc=Jn(C_,[["__scopeId","data-v-04d5f165"]]),T_={plain:["text-primary","border-transparent"],white:["text-secondary","bg-white","border-white"],primary:["text-white","bg-primary","border-transparent","enabled:hover:bg-primary-active"],secondary:["text-white","bg-secondary","border-transparent","enabled:hover:bg-secondary-active"]},E_={plain:["text-primary","border-transparent"],white:["text-secondary","bg-white","border-secondary"],primary:["text-primary","bg-transparent","border-primary","enabled:hover:text-white","enabled:hover:bg-primary"],secondary:["text-secondary","bg-transparent","border-secondary","enabled:hover:text-white","enabled:hover:bg-secondary"]},x_={small:["px-5","py-2"],medium:["px-5","py-3"],large:["px-5","py-4"]},Wr=a.defineComponent({__name:"AppButton",props:{size:{default:"medium"},type:{default:"button"},colorType:{default:"primary"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},block:{type:Boolean,default:!1},as:{default:"button"}},setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.as),{type:t.type,disabled:t.disabled||t.loading,class:a.normalizeClass([[...t.bordered?[]:a.unref(T_)[t.colorType],...t.bordered?a.unref(E_)[t.colorType]:[],...a.unref(x_)[t.size],...t.block?["w-full","justify-center"]:[]],"app-button inline-flex cursor-pointer items-center whitespace-nowrap rounded-lg border text-base font-semibold transition-colors focus:outline-none disabled:cursor-not-allowed disabled:select-none disabled:opacity-50"])},{default:a.withCtx(()=>[t.$slots.leadingIcon||t.loading?(a.openBlock(),a.createBlock(Yc,{key:0,loading:t.loading,class:"mr-3","data-test-leading-icon":""},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"leadingIcon")]),_:3},8,["loading"])):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"default"),t.$slots.trailingIcon?(a.openBlock(),a.createBlock(Yc,{key:1,class:"ml-3","data-test-trailing-icon":""},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"trailingIcon")]),_:3})):a.createCommentVNode("",!0)]),_:3},8,["type","disabled","class"]))}}),P_=a.defineComponent({__name:"AppDropdownItem",props:{label:{},name:{},disabled:{type:Boolean},to:{},icon:{type:[Object,Function]},iconClasses:{},onClick:{type:Function}},setup(e){const t=e,n=a.computed(()=>t.to?Sg.RouterLink:"div");function r(o){var i;if(t.disabled){o.preventDefault();return}(i=t.onClick)==null||i.call(t)}return(o,i)=>(a.openBlock(),a.createBlock(a.unref(kt.MenuItem),null,{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.value),{to:o.to,class:a.normalizeClass([{"!cursor-not-allowed":o.disabled},"flex cursor-pointer items-center px-6 py-2 text-base text-zinc-500 hover:bg-zinc-100 hover:text-zinc-900"]),"data-test-dropdown-item":"",onClick:r},{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default",{},()=>[o.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.icon),{key:0,class:a.normalizeClass([o.iconClasses,"mr-3 h-6 w-6"]),"data-test-icon":""},null,8,["class"])):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(o.label),1)])]),_:3},8,["to","class"]))]),_:3}))}}),I_={class:"relative inline-block text-left"},D_=a.defineComponent({__name:"AppDropdownButton",props:{dropdownItems:{},horizontalAlign:{default:"left"},openDirection:{default:"down"},buttonClasses:{},size:{},type:{},colorType:{},disabled:{type:Boolean},loading:{type:Boolean},bordered:{type:Boolean},block:{type:Boolean},as:{}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",I_,[a.createVNode(a.unref(kt.Menu),null,{default:a.withCtx(()=>[a.createVNode(a.unref(kt.MenuButton),null,{default:a.withCtx(()=>[a.createVNode(a.unref(Wr),a.normalizeProps(a.guardReactiveProps({...t.$props,class:t.buttonClasses})),{trailingIcon:a.withCtx(()=>[a.createVNode(a.unref(Pp))]),default:a.withCtx(()=>[a.renderSlot(t.$slots,"default")]),_:3},16)]),_:3}),a.createVNode(a.unref(kt.MenuItems),{class:a.normalizeClass([{"right-0 origin-top-right":t.horizontalAlign==="right","left-0 origin-top-left":t.horizontalAlign==="left","bottom-full mb-2":t.openDirection==="up"},"absolute z-10 mt-14 w-64 rounded-lg bg-white py-4 drop-shadow-card focus:outline-none"]),role:"menu","aria-orientation":"vertical","aria-labelledby":"menu-button",tabindex:"-1"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.dropdownItems,r=>(a.openBlock(),a.createBlock(P_,a.normalizeProps(a.mergeProps({key:r.label},r)),{default:a.withCtx(()=>[a.renderSlot(t.$slots,`item-${r.name}`,{item:r})]),_:2},1040))),128))]),_:3},8,["class"])]),_:3})]))}}),N_={key:0,class:"app-card__icon float-right mt-1.5 h-5 text-primary"},O_=a.defineComponent({__name:"CardIconSlot",props:{icon:{type:[String,Object,Function]}},setup(e){const t=e;return(n,r)=>n.$slots.default||n.icon?(a.openBlock(),a.createElementBlock("div",N_,[a.renderSlot(n.$slots,"default",{},()=>[t.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(typeof t.icon=="string"?"span":t.icon),{key:0,"data-test-icon-component":"",innerHTML:t.icon},null,8,["innerHTML"])):a.createCommentVNode("",!0)],!0)])):a.createCommentVNode("",!0)}});const B_=Jn(O_,[["__scopeId","data-v-817cbc72"]]),M_={1:"stroke-1",2:"stroke-2",3:"stroke-3"},R_=a.defineComponent({__name:"CardAction",props:{item:{}},setup(e){const t=e,{navigationComponent:n}=Ba(),r=a.ref(!1),o=a.computed(()=>r.value||typeof t.item.icon!="string"),i=a.computed(()=>r.value?Kr:t.item.icon),s=a.computed(()=>[o.value?"":"!h-6",M_[t.item.iconStroke??3]]);async function l(u){var c,f,p;(c=t.item)!=null&&c.onClick&&(u.preventDefault(),r.value=!0,await Promise.resolve((p=(f=t.item)==null?void 0:f.onClick)==null?void 0:p.call(f)),r.value=!1)}return(u,c)=>{var f;return a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),{to:u.item.to,href:u.item.href,class:a.normalizeClass([{"flex-row-reverse":((f=u.item)==null?void 0:f.iconPosition)==="right"},"app-card__action ml-auto flex items-center justify-center font-bold text-zinc-900 transition-colors group-hover:text-primary"]),onClick:l},{default:a.withCtx(()=>{var p,h;return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.value?i.value:"span"),{class:a.normalizeClass([s.value,"h-4 w-4"]),size:r.value?"extra-small":void 0,"data-test-icon":""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(o.value?"":u.item.icon),1)]),_:1},8,["class","size"])),a.createElementVNode("span",{class:a.normalizeClass([{"pl-2":u.item.icon&&((p=u.item)==null?void 0:p.iconPosition)!=="right","pr-2":u.item.icon&&((h=u.item)==null?void 0:h.iconPosition)==="right"},"text-xs"]),"data-test-name":""},a.toDisplayString(u.item.name),3)]}),_:1},8,["to","href","class"])}}}),A_={key:1,class:"text-2xl font-bold text-zinc-900","data-test-title":""},$_=a.defineComponent({__name:"AppCard",props:{title:{default:void 0},actions:{default:void 0},icon:{type:[String,Object,Function],default:void 0},bordered:{type:Boolean,default:!1},contentClasses:{default:void 0}},setup(e){const t=e,n=a.useSlots(),r=a.computed(()=>!!n.title||!!t.title),o=a.computed(()=>!!n.icon||!!t.icon),i=a.computed(()=>`${t.contentClasses} ${r.value?"mt-4":void 0}`);return(s,l)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([[{"before:hidden":!s.bordered,"transition hover:drop-shadow-cardhighlight":t.actions&&t.actions.length>0}],"group relative w-full overflow-hidden rounded-2xl bg-white px-6 py-5 text-zinc-600 drop-shadow-card before:absolute before:left-0 before:top-0 before:h-full before:w-1 before:bg-primary"])},[o.value?(a.openBlock(),a.createBlock(B_,{key:0,icon:s.icon,"data-test-icon":""},{default:a.withCtx(()=>[a.renderSlot(s.$slots,"icon")]),_:3},8,["icon"])):a.createCommentVNode("",!0),r.value?(a.openBlock(),a.createElementBlock("h3",A_,[a.renderSlot(s.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(s.title),1)])])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(i.value),"data-test-content":""},[a.renderSlot(s.$slots,"default")],2),a.renderSlot(s.$slots,"actions",{},()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.actions,u=>(a.openBlock(),a.createElementBlock("div",{key:u.name,class:"mt-2 flex w-full"},[a.createVNode(R_,{item:u},null,8,["item"])]))),128))])],2))}}),L_={class:"flex min-h-screen px-4 pb-20 pt-4 text-center md:items-center md:justify-center"},V_=a.createElementVNode("span",{class:"hidden md:inline-block md:h-screen md:align-middle","aria-hidden":"true"}," ",-1),F_={class:"relative z-50 mx-auto inline-block w-full max-w-lg overflow-hidden text-left align-bottom transition-all md:my-8 md:max-w-2xl md:align-middle"},H_={class:"rounded-2xl bg-white p-10 drop-shadow-card"},U_={class:"flex flex-col items-center space-y-5"},z_={key:0,class:"mx-auto flex h-12 w-12 shrink-0 items-center justify-center rounded-full"},j_={class:"mt-3 text-center"},W_={class:"mt-3 w-full px-10 text-center text-sm text-zinc-600","data-test-confirm-content":""},q_=["innerHTML"],Y_={key:1},G_={class:"mx-auto flex w-fit flex-col space-y-4 pt-10"},Dp=a.defineComponent({__name:"AppConfirm",props:{title:{default:""},type:{default:"default"},content:{default:""},confirmButtonText:{default:""},confirmButtonTrailingIcon:{},confirmButtonLeadingIcon:{},cancelButtonText:{default:""},cancelButtonTrailingIcon:{},cancelButtonLeadingIcon:{},withBackdrop:{type:Boolean,default:!0},preventBackdropClose:{type:Boolean,default:!0},icon:{type:[String,Object,Function],default:void 0},html:{type:Boolean,default:!1},extendedIconDomClasses:{default:""},onConfirm:{},onCancel:{}},emits:["close","confirmed"],setup(e,{emit:t}){const n=e,r=a.ref(!0),o=a.ref(!1),i=a.ref(!1),s=a.computed(()=>!n.icon&&n.type==="error"?Tp:!n.icon&&n.type==="success"?Sp:n.icon),l=a.computed(()=>[n.type==="error"?"text-red-500":"text-green-500",n.extendedIconDomClasses]);async function u(c){c&&typeof n.onConfirm=="function"?(o.value=!0,await Promise.resolve(n.onConfirm())):!c&&typeof n.onCancel=="function"&&(i.value=!0,await Promise.resolve(n.onCancel())),r.value=!1,t("close",c)}return(c,f)=>(a.openBlock(),a.createBlock(a.unref(kt.TransitionRoot),{show:r.value,as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(kt.Dialog),{as:"div",class:"app-confirm-dialog fixed inset-0 top-16 z-50 overflow-y-auto md:left-20 md:top-0","data-test-confirm-dialog":"",onClose:f[2]||(f[2]=()=>c.preventBackdropClose?void 0:u(!1))},{default:a.withCtx(()=>[a.createElementVNode("div",L_,[c.withBackdrop?(a.openBlock(),a.createBlock(a.unref(kt.TransitionChild),{key:0,as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:a.withCtx(()=>[a.createVNode(a.unref(kt.DialogOverlay),{class:"app-confirm-dialog-overlay fixed inset-0 top-16 z-40 rounded-l-2xl bg-zinc-100 transition-opacity md:left-20 md:top-0"})]),_:1})):a.createCommentVNode("",!0),V_,a.createVNode(a.unref(kt.TransitionChild),{as:"template",enter:"ease-in-out duration-300","enter-from":"opacity-0 translate-y-4 md:translate-y-0 md:scale-95","enter-to":"opacity-100 translate-y-0 md:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 md:scale-100","leave-to":"opacity-0 translate-y-4 md:translate-y-0 md:scale-95"},{default:a.withCtx(()=>[a.createElementVNode("div",F_,[a.createElementVNode("div",H_,[a.createElementVNode("div",U_,[s.value?(a.openBlock(),a.createElementBlock("div",z_,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s.value),{class:a.normalizeClass([l.value,"h-full w-full"]),"data-test-confirm-icon":""},null,8,["class"]))])):a.createCommentVNode("",!0),a.createElementVNode("div",j_,[a.createVNode(a.unref(kt.DialogTitle),{as:"h3",class:"text-2xl font-bold leading-6 text-zinc-900"},{default:a.withCtx(()=>[a.renderSlot(c.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(c.title),1)])]),_:3}),a.createElementVNode("div",W_,[a.renderSlot(c.$slots,"default",{},()=>[c.html?(a.openBlock(),a.createElementBlock("div",{key:0,class:"app-confirm-html-content",innerHTML:c.content},null,8,q_)):(a.openBlock(),a.createElementBlock("p",Y_,a.toDisplayString(c.content),1))])])])]),a.createElementVNode("div",G_,[c.confirmButtonText?(a.openBlock(),a.createBlock(a.unref(Wr),{key:0,bordered:!0,disabled:o.value||i.value,loading:o.value,type:"button","color-type":"primary",class:"justify-center",onClick:f[0]||(f[0]=()=>u(!0))},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(c.confirmButtonText),1)]),_:2},[c.confirmButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.confirmButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,c.confirmButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.confirmButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0),c.cancelButtonText?(a.openBlock(),a.createBlock(a.unref(Wr),{key:1,disabled:o.value||i.value,loading:i.value,"color-type":"plain",class:"justify-center",onClick:f[1]||(f[1]=()=>u(!1))},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(c.cancelButtonText),1)]),_:2},[c.cancelButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.cancelButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,c.cancelButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.cancelButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0)])])])]),_:3})])]),_:3})]),_:3},8,["show"]))}}),K_={class:"flex min-h-screen items-center justify-center text-center"},X_=a.createElementVNode("span",{class:"inline-block h-screen align-middle","aria-hidden":"true"}," ",-1),J_={class:"relative z-50 mx-auto inline-block w-full max-w-2xl overflow-hidden rounded-2xl p-4 text-left align-middle transition-all md:max-w-[70vw]"},Q_={class:"rounded-2xl bg-zinc-100 p-8 drop-shadow-card"},Z_={class:"flex flex-col items-center space-y-5"},ew={class:"w-full text-center"},tw={class:"mt-3 w-full px-10 text-center text-sm text-zinc-600","data-test-modal-content":""},nw={key:0,class:"ml-auto flex w-fit flex-row-reverse items-center pt-10"},Np=a.defineComponent({__name:"AppModal",props:{title:{default:""},submitButtonText:{default:"Opslaan"},submitButtonTrailingIcon:{},submitButtonLeadingIcon:{},cancelButtonText:{default:"Annuleren"},cancelButtonTrailingIcon:{},cancelButtonLeadingIcon:{},withBackdrop:{type:Boolean,default:!0},withFooter:{type:Boolean,default:!0},preventBackdropClose:{type:Boolean,default:!1},preventBackdropCloseOnLoading:{type:Boolean,default:!0},content:{type:[String,Object,Function],default:""}},emits:["open","close","cancel","submit"],setup(e,{expose:t,emit:n}){const r=e,o=a.ref(!1),i=a.ref(),s=a.ref(!1),l=a.ref(!1),u=a.computed(()=>r.preventBackdropClose||r.preventBackdropCloseOnLoading&&(s.value||l.value));async function c(){o.value=!0,n("open")}async function f(){l.value=!0,o.value=!1,n("close"),l.value=!1}async function p(){n("cancel"),await f()}async function h(){s.value=!0;const m=new FormData(i.value);n("submit",m),o.value=!1,setTimeout(()=>{s.value=!1},300)}return t({isOpen:o,open:c,close:f,submit:h}),(m,y)=>(a.openBlock(),a.createBlock(a.unref(kt.TransitionRoot),{show:o.value,as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(kt.Dialog),{as:"div",class:"app-modal-dialog fixed inset-0 z-50 overflow-y-auto","data-test-modal-dialog":"",onClose:y[0]||(y[0]=()=>u.value?void 0:f())},{default:a.withCtx(()=>[a.createElementVNode("div",K_,[m.withBackdrop?(a.openBlock(),a.createBlock(a.unref(kt.TransitionChild),{key:0,as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:a.withCtx(()=>[a.createVNode(a.unref(kt.DialogOverlay),{class:"fixed inset-0 z-40 bg-black/20 backdrop-blur-sm transition-opacity"})]),_:1})):a.createCommentVNode("",!0),X_,a.createVNode(a.unref(kt.TransitionChild),{as:"template",enter:"ease-in-out duration-300","enter-from":"opacity-0 translate-y-4 md:translate-y-0 md:scale-95","enter-to":"opacity-100 translate-y-0 md:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 md:scale-100","leave-to":"opacity-0 translate-y-4 md:translate-y-0 md:scale-95"},{default:a.withCtx(()=>[a.createElementVNode("div",J_,[a.createElementVNode("div",Q_,[a.createElementVNode("div",Z_,[a.createElementVNode("div",ew,[a.createVNode(a.unref(kt.DialogTitle),{as:"h3",class:"flex justify-between text-2xl font-bold leading-6 text-zinc-900"},{default:a.withCtx(()=>[a.renderSlot(m.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(m.title),1)]),a.createVNode(a.unref(Fi),{class:"h-6 w-6 cursor-pointer",onClick:f})]),_:3}),a.createElementVNode("div",tw,[a.createElementVNode("form",{ref_key:"form",ref:i},[a.renderSlot(m.$slots,"default",{},()=>[typeof m.content=="string"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(m.content),1)],64)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(m.content),{key:1}))])],512)])])]),m.withFooter?(a.openBlock(),a.createElementBlock("div",nw,[m.submitButtonText?(a.openBlock(),a.createBlock(a.unref(Wr),{key:0,disabled:s.value||l.value,loading:s.value,type:"button","color-type":"primary",class:"ml-6 justify-center",onClick:h},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(m.submitButtonText),1)]),_:2},[m.submitButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(m.submitButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,m.submitButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(m.submitButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0),m.cancelButtonText?(a.openBlock(),a.createBlock(a.unref(Wr),{key:1,disabled:s.value||l.value,loading:l.value,"color-type":"plain",class:"justify-center !text-zinc-900",onClick:p},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(m.cancelButtonText),1)]),_:2},[m.cancelButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(m.cancelButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,m.cancelButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(m.cancelButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])])]),_:3})])]),_:3})]),_:3},8,["show"]))}}),rw={key:0,class:"flex w-full","data-test-item":""},aw=a.defineComponent({__name:"AppDefinitionItem",props:{title:{default:void 0},description:{default:void 0},component:{default:void 0},componentProperties:{default:void 0},hideEmptyValues:{type:Boolean,default:!1}},setup(e){const t=e,n=a.useSlots(),r=a.computed(()=>!!n.title||!!t.title),o=a.computed(()=>!!n.default||!!t.description);return(i,s)=>o.value||!o.value&&!i.hideEmptyValues?(a.openBlock(),a.createElementBlock("div",rw,[r.value?(a.openBlock(),a.createElementBlock("dt",{key:0,class:a.normalizeClass([{"w-1/2":o.value||i.component},"font-bold text-zinc-900"]),"data-test-title":""},[a.renderSlot(i.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(i.title),1)])],2)):a.createCommentVNode("",!0),o.value||i.component?(a.openBlock(),a.createElementBlock("dd",{key:1,class:a.normalizeClass({"w-1/2":r.value}),"data-test-description":""},[a.renderSlot(i.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(i.description),1)]),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.component),a.mergeProps(i.componentProperties,{"data-test-component":""}),null,16))],2)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}}),ow={class:"flex flex-col gap-1.5"},iw=a.defineComponent({__name:"AppDefinitionList",props:{items:{},hideEmptyValues:{type:Boolean,default:!1}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",ow,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.items,(r,o)=>(a.openBlock(),a.createBlock(aw,{key:o,title:r.title,description:r.description,component:r.component,"component-properties":r.componentProperties,"hide-empty-values":t.hideEmptyValues},null,8,["title","description","component","component-properties","hide-empty-values"]))),128))]))}}),sw=a.defineComponent({__name:"AppDisclosure",props:{defaultOpen:{type:Boolean,default:!1}},setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.unref(kt.Disclosure),{"default-open":t.defaultOpen,class:"border-b border-zinc-200 last:border-0",as:"div"},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default")]),_:3},8,["default-open"]))}}),lw={class:"ml-auto pl-2"},uw=a.defineComponent({__name:"AppDisclosureButton",setup(e){const t=a.ref(null);function n(){var r,o;((r=t.value)==null?void 0:r.$el.dataset.headlessuiState)==="open"&&((o=t.value)==null||o.$el.blur())}return(r,o)=>(a.openBlock(),a.createBlock(a.unref(kt.DisclosureButton),{ref_key:"toggleButton",ref:t,as:"button",class:"flex w-full items-center py-4 text-zinc-900 outline-0 transition-font focus:font-bold",onClick:n},{default:a.withCtx(({open:i})=>[a.createElementVNode("span",{class:a.normalizeClass([{"font-bold":i},"text-left"])},[a.renderSlot(r.$slots,"default")],2),a.createElementVNode("span",lw,[a.renderSlot(r.$slots,"icon",{open:i},()=>[a.createVNode(a.unref(Pp),{class:a.normalizeClass([{"rotate-180":i},"h-5 w-5 text-zinc-900 transition-transform"])},null,8,["class"])])])]),_:3},512))}}),cw=a.defineComponent({__name:"AppDisclosurePanel",props:{static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.Transition,{"enter-active-class":"transition duration-100 ease-out","enter-from-class":"transform scale-95 opacity-0","enter-to-class":"transform scale-100 opacity-100","leave-active-class":"transition duration-75 ease-out","leave-from-class":"transform scale-100 opacity-100","leave-to-class":"transform scale-95 opacity-0"},{default:a.withCtx(()=>[a.createVNode(a.unref(kt.DisclosurePanel),{static:t.static,unmount:t.unmount,class:"-mt-2 mb-4",as:"div"},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default")]),_:3},8,["static","unmount"])]),_:3}))}});let Ho;const dw=new Uint8Array(16);function fw(){if(!Ho&&(Ho=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ho))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ho(dw)}const Vt=[];for(let e=0;e<256;++e)Vt.push((e+256).toString(16).slice(1));function pw(e,t=0){return(Vt[e[t+0]]+Vt[e[t+1]]+Vt[e[t+2]]+Vt[e[t+3]]+"-"+Vt[e[t+4]]+Vt[e[t+5]]+"-"+Vt[e[t+6]]+Vt[e[t+7]]+"-"+Vt[e[t+8]]+Vt[e[t+9]]+"-"+Vt[e[t+10]]+Vt[e[t+11]]+Vt[e[t+12]]+Vt[e[t+13]]+Vt[e[t+14]]+Vt[e[t+15]]).toLowerCase()}const hw=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Gc={randomUUID:hw};function mw(e,t,n){if(Gc.randomUUID&&!t&&!e)return Gc.randomUUID();e=e||{};const r=e.random||(e.rng||fw)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let o=0;o<16;++o)t[n+o]=r[o];return t}return pw(r)}const vw={class:"app-input__icon pointer-events-none absolute z-10 mt-px h-5"},gw=a.defineComponent({__name:"InputIconSlot",props:{loading:{type:Boolean}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("span",vw,[t.loading?(a.openBlock(),a.createBlock(Kr,{key:0,size:"small",class:"w-4"})):a.renderSlot(t.$slots,"default",{key:1},void 0,!0)]))}});const Kc=Jn(gw,[["__scopeId","data-v-b64a985e"]]);function ha(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}function $n(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",o;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):i;o=e.formattingValues[s]||e.formattingValues[i]}else{var l=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[u]||e.values[l]}var c=e.argumentCallback?e.argumentCallback(t):t;return o[c]}}function Ln(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?bw(l,function(p){return p.test(s)}):yw(l,function(p){return p.test(s)}),c;c=e.valueCallback?e.valueCallback(u):u,c=n.valueCallback?n.valueCallback(c):c;var f=t.slice(s.length);return{value:c,rest:f}}}function yw(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function bw(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Op(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;var l=t.slice(o.length);return{value:s,rest:l}}}function wn(e){"@babel/helpers - typeof";return wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wn(e)}function Ne(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ke(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Oe(e){ke(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||wn(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function lr(e,t){ke(2,arguments);var n=Oe(e),r=Ne(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function zn(e,t){ke(2,arguments);var n=Oe(e),r=Ne(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var s=i.getDate();return o>=s?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function Bp(e,t){if(ke(2,arguments),!t||wn(t)!=="object")return new Date(NaN);var n=t.years?Ne(t.years):0,r=t.months?Ne(t.months):0,o=t.weeks?Ne(t.weeks):0,i=t.days?Ne(t.days):0,s=t.hours?Ne(t.hours):0,l=t.minutes?Ne(t.minutes):0,u=t.seconds?Ne(t.seconds):0,c=Oe(e),f=r||n?zn(c,r+n*12):c,p=i||o?lr(f,i+o*7):f,h=l+s*60,m=u+h*60,y=m*1e3,k=new Date(p.getTime()+y);return k}function _w(e,t){ke(2,arguments);var n=Oe(e).getTime(),r=Ne(t);return new Date(n+r)}var ww={};function Qn(){return ww}function qr(e,t){var n,r,o,i,s,l,u,c;ke(1,arguments);var f=Qn(),p=Ne((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Oe(e),m=h.getDay(),y=(m<p?7:0)+m-p;return h.setDate(h.getDate()-y),h.setHours(0,0,0,0),h}function pi(e){return ke(1,arguments),qr(e,{weekStartsOn:1})}function kw(e){ke(1,arguments);var t=Oe(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var o=pi(r),i=new Date(0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);var s=pi(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Sw(e){ke(1,arguments);var t=kw(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=pi(n);return r}function hi(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Xc(e){ke(1,arguments);var t=Oe(e);return t.setHours(0,0,0,0),t}var Cw=864e5;function Tw(e,t){ke(2,arguments);var n=Xc(e),r=Xc(t),o=n.getTime()-hi(n),i=r.getTime()-hi(r);return Math.round((o-i)/Cw)}function Mp(e,t){ke(2,arguments);var n=Ne(t);return zn(e,n*12)}var pu=6e4,hu=36e5,Ew=1e3;function Rp(e){return ke(1,arguments),e instanceof Date||wn(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function eo(e){if(ke(1,arguments),!Rp(e)&&typeof e!="number")return!1;var t=Oe(e);return!isNaN(Number(t))}function Jc(e,t){var n;ke(1,arguments);var r=e||{},o=Oe(r.start),i=Oe(r.end),s=i.getTime();if(!(o.getTime()<=s))throw new RangeError("Invalid interval");var l=[],u=o;u.setHours(0,0,0,0);var c=Number((n=t==null?void 0:t.step)!==null&&n!==void 0?n:1);if(c<1||isNaN(c))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=s;)l.push(Oe(u)),u.setDate(u.getDate()+c),u.setHours(0,0,0,0);return l}function xw(e,t){var n,r,o,i,s,l,u,c;ke(1,arguments);var f=Qn(),p=Ne((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Oe(e),m=h.getDay(),y=(m<p?-7:0)+6-(m-p);return h.setDate(h.getDate()+y),h.setHours(23,59,59,999),h}function Ap(e,t){ke(2,arguments);var n=Ne(t);return _w(e,-n)}var Pw=864e5;function Iw(e){ke(1,arguments);var t=Oe(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/Pw)+1}function Ca(e){ke(1,arguments);var t=1,n=Oe(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function $p(e){ke(1,arguments);var t=Oe(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=Ca(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var s=Ca(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Dw(e){ke(1,arguments);var t=$p(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Ca(n);return r}var Nw=6048e5;function Lp(e){ke(1,arguments);var t=Oe(e),n=Ca(t).getTime()-Dw(t).getTime();return Math.round(n/Nw)+1}function Yr(e,t){var n,r,o,i,s,l,u,c;ke(1,arguments);var f=Qn(),p=Ne((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Oe(e),m=h.getUTCDay(),y=(m<p?7:0)+m-p;return h.setUTCDate(h.getUTCDate()-y),h.setUTCHours(0,0,0,0),h}function mu(e,t){var n,r,o,i,s,l,u,c;ke(1,arguments);var f=Oe(e),p=f.getUTCFullYear(),h=Qn(),m=Ne((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:h.firstWeekContainsDate)!==null&&r!==void 0?r:(u=h.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(p+1,0,m),y.setUTCHours(0,0,0,0);var k=Yr(y,t),b=new Date(0);b.setUTCFullYear(p,0,m),b.setUTCHours(0,0,0,0);var w=Yr(b,t);return f.getTime()>=k.getTime()?p+1:f.getTime()>=w.getTime()?p:p-1}function Ow(e,t){var n,r,o,i,s,l,u,c;ke(1,arguments);var f=Qn(),p=Ne((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:f.firstWeekContainsDate)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=mu(e,t),m=new Date(0);m.setUTCFullYear(h,0,p),m.setUTCHours(0,0,0,0);var y=Yr(m,t);return y}var Bw=6048e5;function Vp(e,t){ke(1,arguments);var n=Oe(e),r=Yr(n,t).getTime()-Ow(n,t).getTime();return Math.round(r/Bw)+1}function at(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Mw={y:function(t,n){var r=t.getUTCFullYear(),o=r>0?r:1-r;return at(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):at(r+1,2)},d:function(t,n){return at(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return at(t.getUTCHours()%12||12,n.length)},H:function(t,n){return at(t.getUTCHours(),n.length)},m:function(t,n){return at(t.getUTCMinutes(),n.length)},s:function(t,n){return at(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return at(i,n.length)}};const hr=Mw;var na={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Rw={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return hr.y(t,n)},Y:function(t,n,r,o){var i=mu(t,o),s=i>0?i:1-i;if(n==="YY"){var l=s%100;return at(l,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):at(s,n.length)},R:function(t,n){var r=$p(t);return at(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return at(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return at(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return at(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return hr.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return at(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=Vp(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):at(i,n.length)},I:function(t,n,r){var o=Lp(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):at(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):hr.d(t,n)},D:function(t,n,r){var o=Iw(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):at(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,r,o){var i=t.getUTCDay(),s=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return at(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,o){var i=t.getUTCDay(),s=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return at(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return at(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=na.noon:o===0?i=na.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=na.evening:o>=12?i=na.afternoon:o>=4?i=na.morning:i=na.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return hr.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):hr.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):at(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):at(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):hr.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):hr.s(t,n)},S:function(t,n){return hr.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return Zc(s);case"XXXX":case"XX":return Rr(s);case"XXXXX":case"XXX":default:return Rr(s,":")}},x:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();switch(n){case"x":return Zc(s);case"xxxx":case"xx":return Rr(s);case"xxxxx":case"xxx":default:return Rr(s,":")}},O:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Qc(s,":");case"OOOO":default:return"GMT"+Rr(s,":")}},z:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Qc(s,":");case"zzzz":default:return"GMT"+Rr(s,":")}},t:function(t,n,r,o){var i=o._originalDate||t,s=Math.floor(i.getTime()/1e3);return at(s,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,s=i.getTime();return at(s,n.length)}};function Qc(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var s=t||"";return n+String(o)+s+at(i,2)}function Zc(e,t){if(e%60===0){var n=e>0?"-":"+";return n+at(Math.abs(e)/60,2)}return Rr(e,t)}function Rr(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=at(Math.floor(o/60),2),s=at(o%60,2);return r+i+n+s}const Aw=Rw;var ed=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Fp=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},$w=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return ed(t,n);var s;switch(o){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",ed(o,n)).replace("{{time}}",Fp(i,n))},Lw={p:Fp,P:$w};const fl=Lw;var Vw=["D","DD"],Fw=["YY","YYYY"];function Hp(e){return Vw.indexOf(e)!==-1}function Up(e){return Fw.indexOf(e)!==-1}function mi(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Hw={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Uw=function(t,n,r){var o,i=Hw[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const zw=Uw;var jw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ww={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},qw={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Yw={date:ha({formats:jw,defaultWidth:"full"}),time:ha({formats:Ww,defaultWidth:"full"}),dateTime:ha({formats:qw,defaultWidth:"full"})};const Gw=Yw;var Kw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Xw=function(t,n,r,o){return Kw[t]};const Jw=Xw;var Qw={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Zw={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},e1={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},t1={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},n1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},r1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},a1=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},o1={ordinalNumber:a1,era:$n({values:Qw,defaultWidth:"wide"}),quarter:$n({values:Zw,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:$n({values:e1,defaultWidth:"wide"}),day:$n({values:t1,defaultWidth:"wide"}),dayPeriod:$n({values:n1,defaultWidth:"wide",formattingValues:r1,defaultFormattingWidth:"wide"})};const i1=o1;var s1=/^(\d+)(th|st|nd|rd)?/i,l1=/\d+/i,u1={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},c1={any:[/^b/i,/^(a|c)/i]},d1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},f1={any:[/1/i,/2/i,/3/i,/4/i]},p1={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h1={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},m1={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},v1={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g1={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},y1={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},b1={ordinalNumber:Op({matchPattern:s1,parsePattern:l1,valueCallback:function(t){return parseInt(t,10)}}),era:Ln({matchPatterns:u1,defaultMatchWidth:"wide",parsePatterns:c1,defaultParseWidth:"any"}),quarter:Ln({matchPatterns:d1,defaultMatchWidth:"wide",parsePatterns:f1,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ln({matchPatterns:p1,defaultMatchWidth:"wide",parsePatterns:h1,defaultParseWidth:"any"}),day:Ln({matchPatterns:m1,defaultMatchWidth:"wide",parsePatterns:v1,defaultParseWidth:"any"}),dayPeriod:Ln({matchPatterns:g1,defaultMatchWidth:"any",parsePatterns:y1,defaultParseWidth:"any"})};const _1=b1;var w1={code:"en-US",formatDistance:zw,formatLong:Gw,formatRelative:Jw,localize:i1,match:_1,options:{weekStartsOn:0,firstWeekContainsDate:1}};const zp=w1;var k1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,S1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,C1=/^'([^]*?)'?$/,T1=/''/g,E1=/[a-zA-Z]/;function jr(e,t,n){var r,o,i,s,l,u,c,f,p,h,m,y,k,b,w,T,O,_;ke(2,arguments);var B=String(t),C=Qn(),I=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:C.locale)!==null&&r!==void 0?r:zp,F=Ne((i=(s=(l=(u=n==null?void 0:n.firstWeekContainsDate)!==null&&u!==void 0?u:n==null||(c=n.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&l!==void 0?l:C.firstWeekContainsDate)!==null&&s!==void 0?s:(p=C.locale)===null||p===void 0||(h=p.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(F>=1&&F<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var q=Ne((m=(y=(k=(b=n==null?void 0:n.weekStartsOn)!==null&&b!==void 0?b:n==null||(w=n.locale)===null||w===void 0||(T=w.options)===null||T===void 0?void 0:T.weekStartsOn)!==null&&k!==void 0?k:C.weekStartsOn)!==null&&y!==void 0?y:(O=C.locale)===null||O===void 0||(_=O.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:0);if(!(q>=0&&q<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!I.localize)throw new RangeError("locale must contain localize property");if(!I.formatLong)throw new RangeError("locale must contain formatLong property");var W=Oe(e);if(!eo(W))throw new RangeError("Invalid time value");var M=hi(W),D=Ap(W,M),$={firstWeekContainsDate:F,weekStartsOn:q,locale:I,_originalDate:W},Y=B.match(S1).map(function(X){var K=X[0];if(K==="p"||K==="P"){var j=fl[K];return j(X,I.formatLong)}return X}).join("").match(k1).map(function(X){if(X==="''")return"'";var K=X[0];if(K==="'")return x1(X);var j=Aw[K];if(j)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Up(X)&&mi(X,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Hp(X)&&mi(X,t,String(e)),j(D,X,I.localize,$);if(K.match(E1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+K+"`");return X}).join("");return Y}function x1(e){var t=e.match(C1);return t?t[1].replace(T1,"'"):e}function P1(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function I1(e){ke(1,arguments);var t=Oe(e),n=t.getDay();return n}function D1(e){ke(1,arguments);var t=Oe(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function ir(e){ke(1,arguments);var t=Oe(e),n=t.getHours();return n}var N1=6048e5;function O1(e){ke(1,arguments);var t=Oe(e),n=pi(t).getTime()-Sw(t).getTime();return Math.round(n/N1)+1}function sr(e){ke(1,arguments);var t=Oe(e),n=t.getMinutes();return n}function ct(e){ke(1,arguments);var t=Oe(e),n=t.getMonth();return n}function Ta(e){ke(1,arguments);var t=Oe(e),n=t.getSeconds();return n}function B1(e,t){var n,r,o,i,s,l,u,c;ke(1,arguments);var f=Oe(e),p=f.getFullYear(),h=Qn(),m=Ne((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:h.firstWeekContainsDate)!==null&&r!==void 0?r:(u=h.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setFullYear(p+1,0,m),y.setHours(0,0,0,0);var k=qr(y,t),b=new Date(0);b.setFullYear(p,0,m),b.setHours(0,0,0,0);var w=qr(b,t);return f.getTime()>=k.getTime()?p+1:f.getTime()>=w.getTime()?p:p-1}function M1(e,t){var n,r,o,i,s,l,u,c;ke(1,arguments);var f=Qn(),p=Ne((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:f.firstWeekContainsDate)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=B1(e,t),m=new Date(0);m.setFullYear(h,0,p),m.setHours(0,0,0,0);var y=qr(m,t);return y}var R1=6048e5;function A1(e,t){ke(1,arguments);var n=Oe(e),r=qr(n,t).getTime()-M1(n,t).getTime();return Math.round(r/R1)+1}function ht(e){return ke(1,arguments),Oe(e).getFullYear()}function mo(e,t){ke(2,arguments);var n=Oe(e),r=Oe(t);return n.getTime()>r.getTime()}function vo(e,t){ke(2,arguments);var n=Oe(e),r=Oe(t);return n.getTime()<r.getTime()}function Vr(e,t){ke(2,arguments);var n=Oe(e),r=Oe(t);return n.getTime()===r.getTime()}function td(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $1(e,t){if(e){if(typeof e=="string")return td(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return td(e,t)}}function nd(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=$1(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
68
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,l;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return i=c.done,c},e:function(c){s=!0,l=c},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw l}}}}function ye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pl(e,t){return pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},pl(e,t)}function Xe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pl(e,t)}function vi(e){return vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vi(e)}function L1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function V1(e,t){if(t&&(wn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ye(e)}function Je(e){var t=L1();return function(){var r=vi(e),o;if(t){var i=vi(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return V1(this,o)}}function je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F1(e,t){if(wn(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(wn(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jp(e){var t=F1(e,"string");return wn(t)==="symbol"?t:String(t)}function rd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jp(r.key),r)}}function We(e,t,n){return t&&rd(e.prototype,t),n&&rd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function he(e,t,n){return t=jp(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H1=10,Wp=function(){function e(){je(this,e),he(this,"priority",void 0),he(this,"subPriority",0)}return We(e,[{key:"validate",value:function(n,r){return!0}}]),e}(),U1=function(e){Xe(n,e);var t=Je(n);function n(r,o,i,s,l){var u;return je(this,n),u=t.call(this),u.value=r,u.validateValue=o,u.setValue=i,u.priority=s,l&&(u.subPriority=l),u}return We(n,[{key:"validate",value:function(o,i){return this.validateValue(o,this.value,i)}},{key:"set",value:function(o,i,s){return this.setValue(o,i,this.value,s)}}]),n}(Wp),z1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",H1),he(ye(r),"subPriority",-1),r}return We(n,[{key:"set",value:function(o,i){if(i.timestampIsSet)return o;var s=new Date(0);return s.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),s.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),s}}]),n}(Wp),nt=function(){function e(){je(this,e),he(this,"incompatibleTokens",void 0),he(this,"priority",void 0),he(this,"subPriority",void 0)}return We(e,[{key:"run",value:function(n,r,o,i){var s=this.parse(n,r,o,i);return s?{setter:new U1(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}},{key:"validate",value:function(n,r,o){return!0}}]),e}(),j1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",140),he(ye(r),"incompatibleTokens",["R","u","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"G":case"GG":case"GGG":return s.era(o,{width:"abbreviated"})||s.era(o,{width:"narrow"});case"GGGGG":return s.era(o,{width:"narrow"});case"GGGG":default:return s.era(o,{width:"wide"})||s.era(o,{width:"abbreviated"})||s.era(o,{width:"narrow"})}}},{key:"set",value:function(o,i,s){return i.era=s,o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(nt),Ct={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Vn={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Tt(e,t){return e&&{value:t(e.value),rest:e.rest}}function bt(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Fn(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(o*hu+i*pu+s*Ew),rest:t.slice(n[0].length)}}function qp(e){return bt(Ct.anyDigitsSigned,e)}function St(e,t){switch(e){case 1:return bt(Ct.singleDigit,t);case 2:return bt(Ct.twoDigits,t);case 3:return bt(Ct.threeDigits,t);case 4:return bt(Ct.fourDigits,t);default:return bt(new RegExp("^\\d{1,"+e+"}"),t)}}function gi(e,t){switch(e){case 1:return bt(Ct.singleDigitSigned,t);case 2:return bt(Ct.twoDigitsSigned,t);case 3:return bt(Ct.threeDigitsSigned,t);case 4:return bt(Ct.fourDigitsSigned,t);default:return bt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function vu(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Yp(e,t){var n=t>0,r=n?t:1-t,o;if(r<=50)o=e||100;else{var i=r+50,s=Math.floor(i/100)*100,l=e>=i%100;o=e+s-(l?100:0)}return n?o:1-o}function Gp(e){return e%400===0||e%4===0&&e%100!==0}var W1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",130),he(ye(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){var l=function(c){return{year:c,isTwoDigitYear:i==="yy"}};switch(i){case"y":return Tt(St(4,o),l);case"yo":return Tt(s.ordinalNumber(o,{unit:"year"}),l);default:return Tt(St(i.length,o),l)}}},{key:"validate",value:function(o,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(o,i,s){var l=o.getUTCFullYear();if(s.isTwoDigitYear){var u=Yp(s.year,l);return o.setUTCFullYear(u,0,1),o.setUTCHours(0,0,0,0),o}var c=!("era"in i)||i.era===1?s.year:1-s.year;return o.setUTCFullYear(c,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(nt),q1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",130),he(ye(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){var l=function(c){return{year:c,isTwoDigitYear:i==="YY"}};switch(i){case"Y":return Tt(St(4,o),l);case"Yo":return Tt(s.ordinalNumber(o,{unit:"year"}),l);default:return Tt(St(i.length,o),l)}}},{key:"validate",value:function(o,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(o,i,s,l){var u=mu(o,l);if(s.isTwoDigitYear){var c=Yp(s.year,u);return o.setUTCFullYear(c,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Yr(o,l)}var f=!("era"in i)||i.era===1?s.year:1-s.year;return o.setUTCFullYear(f,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Yr(o,l)}}]),n}(nt),Y1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",130),he(ye(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i){return gi(i==="R"?4:i.length,o)}},{key:"set",value:function(o,i,s){var l=new Date(0);return l.setUTCFullYear(s,0,4),l.setUTCHours(0,0,0,0),Ca(l)}}]),n}(nt),G1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",130),he(ye(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i){return gi(i==="u"?4:i.length,o)}},{key:"set",value:function(o,i,s){return o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(nt),K1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",120),he(ye(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"Q":case"QQ":return St(i.length,o);case"Qo":return s.ordinalNumber(o,{unit:"quarter"});case"QQQ":return s.quarter(o,{width:"abbreviated",context:"formatting"})||s.quarter(o,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(o,{width:"wide",context:"formatting"})||s.quarter(o,{width:"abbreviated",context:"formatting"})||s.quarter(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=1&&i<=4}},{key:"set",value:function(o,i,s){return o.setUTCMonth((s-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(nt),X1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",120),he(ye(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"q":case"qq":return St(i.length,o);case"qo":return s.ordinalNumber(o,{unit:"quarter"});case"qqq":return s.quarter(o,{width:"abbreviated",context:"standalone"})||s.quarter(o,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(o,{width:"wide",context:"standalone"})||s.quarter(o,{width:"abbreviated",context:"standalone"})||s.quarter(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,i){return i>=1&&i<=4}},{key:"set",value:function(o,i,s){return o.setUTCMonth((s-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(nt),J1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),he(ye(r),"priority",110),r}return We(n,[{key:"parse",value:function(o,i,s){var l=function(c){return c-1};switch(i){case"M":return Tt(bt(Ct.month,o),l);case"MM":return Tt(St(2,o),l);case"Mo":return Tt(s.ordinalNumber(o,{unit:"month"}),l);case"MMM":return s.month(o,{width:"abbreviated",context:"formatting"})||s.month(o,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(o,{width:"wide",context:"formatting"})||s.month(o,{width:"abbreviated",context:"formatting"})||s.month(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=11}},{key:"set",value:function(o,i,s){return o.setUTCMonth(s,1),o.setUTCHours(0,0,0,0),o}}]),n}(nt),Q1=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",110),he(ye(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){var l=function(c){return c-1};switch(i){case"L":return Tt(bt(Ct.month,o),l);case"LL":return Tt(St(2,o),l);case"Lo":return Tt(s.ordinalNumber(o,{unit:"month"}),l);case"LLL":return s.month(o,{width:"abbreviated",context:"standalone"})||s.month(o,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(o,{width:"wide",context:"standalone"})||s.month(o,{width:"abbreviated",context:"standalone"})||s.month(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=11}},{key:"set",value:function(o,i,s){return o.setUTCMonth(s,1),o.setUTCHours(0,0,0,0),o}}]),n}(nt);function Z1(e,t,n){ke(2,arguments);var r=Oe(e),o=Ne(t),i=Vp(r,n)-o;return r.setUTCDate(r.getUTCDate()-i*7),r}var ek=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",100),he(ye(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"w":return bt(Ct.week,o);case"wo":return s.ordinalNumber(o,{unit:"week"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=53}},{key:"set",value:function(o,i,s,l){return Yr(Z1(o,s,l),l)}}]),n}(nt);function tk(e,t){ke(2,arguments);var n=Oe(e),r=Ne(t),o=Lp(n)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}var nk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",100),he(ye(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"I":return bt(Ct.week,o);case"Io":return s.ordinalNumber(o,{unit:"week"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=53}},{key:"set",value:function(o,i,s){return Ca(tk(o,s))}}]),n}(nt),rk=[31,28,31,30,31,30,31,31,30,31,30,31],ak=[31,29,31,30,31,30,31,31,30,31,30,31],ok=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",90),he(ye(r),"subPriority",1),he(ye(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"d":return bt(Ct.date,o);case"do":return s.ordinalNumber(o,{unit:"date"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){var s=o.getUTCFullYear(),l=Gp(s),u=o.getUTCMonth();return l?i>=1&&i<=ak[u]:i>=1&&i<=rk[u]}},{key:"set",value:function(o,i,s){return o.setUTCDate(s),o.setUTCHours(0,0,0,0),o}}]),n}(nt),ik=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",90),he(ye(r),"subpriority",1),he(ye(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"D":case"DD":return bt(Ct.dayOfYear,o);case"Do":return s.ordinalNumber(o,{unit:"date"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){var s=o.getUTCFullYear(),l=Gp(s);return l?i>=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(o,i,s){return o.setUTCMonth(0,s),o.setUTCHours(0,0,0,0),o}}]),n}(nt);function gu(e,t,n){var r,o,i,s,l,u,c,f;ke(2,arguments);var p=Qn(),h=Ne((r=(o=(i=(s=n==null?void 0:n.weekStartsOn)!==null&&s!==void 0?s:n==null||(l=n.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&i!==void 0?i:p.weekStartsOn)!==null&&o!==void 0?o:(c=p.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Oe(e),y=Ne(t),k=m.getUTCDay(),b=y%7,w=(b+7)%7,T=(w<h?7:0)+y-k;return m.setUTCDate(m.getUTCDate()+T),m}var sk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",90),he(ye(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"E":case"EE":case"EEE":return s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(o,{width:"wide",context:"formatting"})||s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=6}},{key:"set",value:function(o,i,s,l){return o=gu(o,s,l),o.setUTCHours(0,0,0,0),o}}]),n}(nt),lk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",90),he(ye(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s,l){var u=function(f){var p=Math.floor((f-1)/7)*7;return(f+l.weekStartsOn+6)%7+p};switch(i){case"e":case"ee":return Tt(St(i.length,o),u);case"eo":return Tt(s.ordinalNumber(o,{unit:"day"}),u);case"eee":return s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"eeeee":return s.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(o,{width:"wide",context:"formatting"})||s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=6}},{key:"set",value:function(o,i,s,l){return o=gu(o,s,l),o.setUTCHours(0,0,0,0),o}}]),n}(nt),uk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",90),he(ye(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s,l){var u=function(f){var p=Math.floor((f-1)/7)*7;return(f+l.weekStartsOn+6)%7+p};switch(i){case"c":case"cc":return Tt(St(i.length,o),u);case"co":return Tt(s.ordinalNumber(o,{unit:"day"}),u);case"ccc":return s.day(o,{width:"abbreviated",context:"standalone"})||s.day(o,{width:"short",context:"standalone"})||s.day(o,{width:"narrow",context:"standalone"});case"ccccc":return s.day(o,{width:"narrow",context:"standalone"});case"cccccc":return s.day(o,{width:"short",context:"standalone"})||s.day(o,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(o,{width:"wide",context:"standalone"})||s.day(o,{width:"abbreviated",context:"standalone"})||s.day(o,{width:"short",context:"standalone"})||s.day(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=6}},{key:"set",value:function(o,i,s,l){return o=gu(o,s,l),o.setUTCHours(0,0,0,0),o}}]),n}(nt);function ck(e,t){ke(2,arguments);var n=Ne(t);n%7===0&&(n=n-7);var r=1,o=Oe(e),i=o.getUTCDay(),s=n%7,l=(s+7)%7,u=(l<r?7:0)+n-i;return o.setUTCDate(o.getUTCDate()+u),o}var dk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",90),he(ye(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){var l=function(c){return c===0?7:c};switch(i){case"i":case"ii":return St(i.length,o);case"io":return s.ordinalNumber(o,{unit:"day"});case"iii":return Tt(s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"}),l);case"iiiii":return Tt(s.day(o,{width:"narrow",context:"formatting"}),l);case"iiiiii":return Tt(s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"}),l);case"iiii":default:return Tt(s.day(o,{width:"wide",context:"formatting"})||s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"}),l)}}},{key:"validate",value:function(o,i){return i>=1&&i<=7}},{key:"set",value:function(o,i,s){return o=ck(o,s),o.setUTCHours(0,0,0,0),o}}]),n}(nt),fk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",80),he(ye(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"a":case"aa":case"aaa":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})||s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,i,s){return o.setUTCHours(vu(s),0,0,0),o}}]),n}(nt),pk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",80),he(ye(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"b":case"bb":case"bbb":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})||s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,i,s){return o.setUTCHours(vu(s),0,0,0),o}}]),n}(nt),hk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",80),he(ye(r),"incompatibleTokens",["a","b","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"B":case"BB":case"BBB":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})||s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,i,s){return o.setUTCHours(vu(s),0,0,0),o}}]),n}(nt),mk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",70),he(ye(r),"incompatibleTokens",["H","K","k","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"h":return bt(Ct.hour12h,o);case"ho":return s.ordinalNumber(o,{unit:"hour"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=12}},{key:"set",value:function(o,i,s){var l=o.getUTCHours()>=12;return l&&s<12?o.setUTCHours(s+12,0,0,0):!l&&s===12?o.setUTCHours(0,0,0,0):o.setUTCHours(s,0,0,0),o}}]),n}(nt),vk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",70),he(ye(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"H":return bt(Ct.hour23h,o);case"Ho":return s.ordinalNumber(o,{unit:"hour"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=23}},{key:"set",value:function(o,i,s){return o.setUTCHours(s,0,0,0),o}}]),n}(nt),gk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",70),he(ye(r),"incompatibleTokens",["h","H","k","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"K":return bt(Ct.hour11h,o);case"Ko":return s.ordinalNumber(o,{unit:"hour"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=11}},{key:"set",value:function(o,i,s){var l=o.getUTCHours()>=12;return l&&s<12?o.setUTCHours(s+12,0,0,0):o.setUTCHours(s,0,0,0),o}}]),n}(nt),yk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",70),he(ye(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"k":return bt(Ct.hour24h,o);case"ko":return s.ordinalNumber(o,{unit:"hour"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=24}},{key:"set",value:function(o,i,s){var l=s<=24?s%24:s;return o.setUTCHours(l,0,0,0),o}}]),n}(nt),bk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",60),he(ye(r),"incompatibleTokens",["t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"m":return bt(Ct.minute,o);case"mo":return s.ordinalNumber(o,{unit:"minute"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=59}},{key:"set",value:function(o,i,s){return o.setUTCMinutes(s,0,0),o}}]),n}(nt),_k=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",50),he(ye(r),"incompatibleTokens",["t","T"]),r}return We(n,[{key:"parse",value:function(o,i,s){switch(i){case"s":return bt(Ct.second,o);case"so":return s.ordinalNumber(o,{unit:"second"});default:return St(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=59}},{key:"set",value:function(o,i,s){return o.setUTCSeconds(s,0),o}}]),n}(nt),wk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",30),he(ye(r),"incompatibleTokens",["t","T"]),r}return We(n,[{key:"parse",value:function(o,i){var s=function(u){return Math.floor(u*Math.pow(10,-i.length+3))};return Tt(St(i.length,o),s)}},{key:"set",value:function(o,i,s){return o.setUTCMilliseconds(s),o}}]),n}(nt),kk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",10),he(ye(r),"incompatibleTokens",["t","T","x"]),r}return We(n,[{key:"parse",value:function(o,i){switch(i){case"X":return Fn(Vn.basicOptionalMinutes,o);case"XX":return Fn(Vn.basic,o);case"XXXX":return Fn(Vn.basicOptionalSeconds,o);case"XXXXX":return Fn(Vn.extendedOptionalSeconds,o);case"XXX":default:return Fn(Vn.extended,o)}}},{key:"set",value:function(o,i,s){return i.timestampIsSet?o:new Date(o.getTime()-s)}}]),n}(nt),Sk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",10),he(ye(r),"incompatibleTokens",["t","T","X"]),r}return We(n,[{key:"parse",value:function(o,i){switch(i){case"x":return Fn(Vn.basicOptionalMinutes,o);case"xx":return Fn(Vn.basic,o);case"xxxx":return Fn(Vn.basicOptionalSeconds,o);case"xxxxx":return Fn(Vn.extendedOptionalSeconds,o);case"xxx":default:return Fn(Vn.extended,o)}}},{key:"set",value:function(o,i,s){return i.timestampIsSet?o:new Date(o.getTime()-s)}}]),n}(nt),Ck=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",40),he(ye(r),"incompatibleTokens","*"),r}return We(n,[{key:"parse",value:function(o){return qp(o)}},{key:"set",value:function(o,i,s){return[new Date(s*1e3),{timestampIsSet:!0}]}}]),n}(nt),Tk=function(e){Xe(n,e);var t=Je(n);function n(){var r;je(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),he(ye(r),"priority",20),he(ye(r),"incompatibleTokens","*"),r}return We(n,[{key:"parse",value:function(o){return qp(o)}},{key:"set",value:function(o,i,s){return[new Date(s),{timestampIsSet:!0}]}}]),n}(nt),Ek={G:new j1,y:new W1,Y:new q1,R:new Y1,u:new G1,Q:new K1,q:new X1,M:new J1,L:new Q1,w:new ek,I:new nk,d:new ok,D:new ik,E:new sk,e:new lk,c:new uk,i:new dk,a:new fk,b:new pk,B:new hk,h:new mk,H:new vk,K:new gk,k:new yk,m:new bk,s:new _k,S:new wk,X:new kk,x:new Sk,t:new Ck,T:new Tk},xk=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Pk=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ik=/^'([^]*?)'?$/,Dk=/''/g,Nk=/\S/,Ok=/[a-zA-Z]/;function hl(e,t,n,r){var o,i,s,l,u,c,f,p,h,m,y,k,b,w,T,O,_,B;ke(3,arguments);var C=String(e),I=String(t),F=Qn(),q=(o=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:F.locale)!==null&&o!==void 0?o:zp;if(!q.match)throw new RangeError("locale must contain match property");var W=Ne((s=(l=(u=(c=r==null?void 0:r.firstWeekContainsDate)!==null&&c!==void 0?c:r==null||(f=r.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&u!==void 0?u:F.firstWeekContainsDate)!==null&&l!==void 0?l:(h=F.locale)===null||h===void 0||(m=h.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=Ne((y=(k=(b=(w=r==null?void 0:r.weekStartsOn)!==null&&w!==void 0?w:r==null||(T=r.locale)===null||T===void 0||(O=T.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&b!==void 0?b:F.weekStartsOn)!==null&&k!==void 0?k:(_=F.locale)===null||_===void 0||(B=_.options)===null||B===void 0?void 0:B.weekStartsOn)!==null&&y!==void 0?y:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(I==="")return C===""?Oe(n):new Date(NaN);var D={firstWeekContainsDate:W,weekStartsOn:M,locale:q},$=[new z1],Y=I.match(Pk).map(function(ie){var oe=ie[0];if(oe in fl){var Ie=fl[oe];return Ie(ie,q.formatLong)}return ie}).join("").match(xk),X=[],K=nd(Y),j;try{var U=function(){var oe=j.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Up(oe)&&mi(oe,I,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Hp(oe)&&mi(oe,I,e);var Ie=oe[0],Ee=Ek[Ie];if(Ee){var fe=Ee.incompatibleTokens;if(Array.isArray(fe)){var Be=X.find(function(ze){return fe.includes(ze.token)||ze.token===Ie});if(Be)throw new RangeError("The format string mustn't contain `".concat(Be.fullToken,"` and `").concat(oe,"` at the same time"))}else if(Ee.incompatibleTokens==="*"&&X.length>0)throw new RangeError("The format string mustn't contain `".concat(oe,"` and any other token at the same time"));X.push({token:Ie,fullToken:oe});var $e=Ee.run(C,oe,q.match,D);if(!$e)return{v:new Date(NaN)};$.push($e.setter),C=$e.rest}else{if(Ie.match(Ok))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Ie+"`");if(oe==="''"?oe="'":Ie==="'"&&(oe=Bk(oe)),C.indexOf(oe)===0)C=C.slice(oe.length);else return{v:new Date(NaN)}}};for(K.s();!(j=K.n()).done;){var S=U();if(wn(S)==="object")return S.v}}catch(ie){K.e(ie)}finally{K.f()}if(C.length>0&&Nk.test(C))return new Date(NaN);var H=$.map(function(ie){return ie.priority}).sort(function(ie,oe){return oe-ie}).filter(function(ie,oe,Ie){return Ie.indexOf(ie)===oe}).map(function(ie){return $.filter(function(oe){return oe.priority===ie}).sort(function(oe,Ie){return Ie.subPriority-oe.subPriority})}).map(function(ie){return ie[0]}),Z=Oe(n);if(isNaN(Z.getTime()))return new Date(NaN);var Q=Ap(Z,hi(Z)),V={},E=nd(H),P;try{for(E.s();!(P=E.n()).done;){var R=P.value;if(!R.validate(Q,D))return new Date(NaN);var G=R.set(Q,V,D);Array.isArray(G)?(Q=G[0],P1(V,G[1])):Q=G}}catch(ie){E.e(ie)}finally{E.f()}return Q}function Bk(e){return e.match(Ik)[1].replace(Dk,"'")}function Mk(e,t){ke(2,arguments);var n=Ne(t);return lr(e,-n)}function Rk(e,t){var n;ke(1,arguments);var r=Ne((n=t==null?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=Vk(e),i;if(o.date){var s=Fk(o.date,r);i=Hk(s.restDateString,s.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var l=i.getTime(),u=0,c;if(o.time&&(u=Uk(o.time),isNaN(u)))return new Date(NaN);if(o.timezone){if(c=zk(o.timezone),isNaN(c))return new Date(NaN)}else{var f=new Date(l+u),p=new Date(0);return p.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),p.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),p}return new Date(l+u+c)}var Uo={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ak=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,$k=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Lk=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Vk(e){var t={},n=e.split(Uo.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Uo.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Uo.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var o=Uo.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function Fk(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function Hk(e,t){if(t===null)return new Date(NaN);var n=e.match(Ak);if(!n)return new Date(NaN);var r=!!n[4],o=qa(n[1]),i=qa(n[2])-1,s=qa(n[3]),l=qa(n[4]),u=qa(n[5])-1;if(r)return Gk(t,l,u)?jk(t,l,u):new Date(NaN);var c=new Date(0);return!qk(t,i,s)||!Yk(t,o)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(o,s)),c)}function qa(e){return e?parseInt(e):1}function Uk(e){var t=e.match($k);if(!t)return NaN;var n=Ms(t[1]),r=Ms(t[2]),o=Ms(t[3]);return Kk(n,r,o)?n*hu+r*pu+o*1e3:NaN}function Ms(e){return e&&parseFloat(e.replace(",","."))||0}function zk(e){if(e==="Z")return 0;var t=e.match(Lk);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return Xk(r,o)?n*(r*hu+o*pu):NaN}function jk(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var Wk=[31,null,31,30,31,30,31,31,30,31,30,31];function Kp(e){return e%400===0||e%4===0&&e%100!==0}function qk(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Wk[t]||(Kp(e)?29:28))}function Yk(e,t){return t>=1&&t<=(Kp(e)?366:365)}function Gk(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Kk(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Xk(e,t){return t>=0&&t<=59}function ua(e,t){ke(2,arguments);var n=Oe(e),r=Ne(t),o=n.getFullYear(),i=n.getDate(),s=new Date(0);s.setFullYear(o,r,15),s.setHours(0,0,0,0);var l=D1(s);return n.setMonth(r,Math.min(i,l)),n}function Ot(e,t){if(ke(2,arguments),wn(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=Oe(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=ua(n,t.month)),t.date!=null&&n.setDate(Ne(t.date)),t.hours!=null&&n.setHours(Ne(t.hours)),t.minutes!=null&&n.setMinutes(Ne(t.minutes)),t.seconds!=null&&n.setSeconds(Ne(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(Ne(t.milliseconds)),n)}function Xp(e,t){ke(2,arguments);var n=Oe(e),r=Ne(t);return n.setHours(r),n}function yu(e,t){ke(2,arguments);var n=Oe(e),r=Ne(t);return n.setMilliseconds(r),n}function Jp(e,t){ke(2,arguments);var n=Oe(e),r=Ne(t);return n.setMinutes(r),n}function Qp(e,t){ke(2,arguments);var n=Oe(e),r=Ne(t);return n.setSeconds(r),n}function ur(e,t){ke(2,arguments);var n=Oe(e),r=Ne(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function ma(e,t){ke(2,arguments);var n=Ne(t);return zn(e,-n)}function Jk(e,t){if(ke(2,arguments),!t||wn(t)!=="object")return new Date(NaN);var n=t.years?Ne(t.years):0,r=t.months?Ne(t.months):0,o=t.weeks?Ne(t.weeks):0,i=t.days?Ne(t.days):0,s=t.hours?Ne(t.hours):0,l=t.minutes?Ne(t.minutes):0,u=t.seconds?Ne(t.seconds):0,c=ma(e,r+n*12),f=Mk(c,i+o*7),p=l+s*60,h=u+p*60,m=h*1e3,y=new Date(f.getTime()-m);return y}function Qk(e,t){ke(2,arguments);var n=Ne(t);return Mp(e,-n)}var Zk={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},eS=function(t,n,r){var o,i=Zk[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"over "+o:o+" geleden":o};const tS=eS;var nS={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},rS={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},aS={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},oS={date:ha({formats:nS,defaultWidth:"full"}),time:ha({formats:rS,defaultWidth:"full"}),dateTime:ha({formats:aS,defaultWidth:"full"})};const iS=oS;var sS={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},lS=function(t,n,r,o){return sS[t]};const uS=lS;var cS={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},dS={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},fS={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},pS={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},hS={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},mS=function(t,n){var r=Number(t);return r+"e"},vS={ordinalNumber:mS,era:$n({values:cS,defaultWidth:"wide"}),quarter:$n({values:dS,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:$n({values:fS,defaultWidth:"wide"}),day:$n({values:pS,defaultWidth:"wide"}),dayPeriod:$n({values:hS,defaultWidth:"wide"})};const gS=vS;var yS=/^(\d+)e?/i,bS=/\d+/i,_S={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},wS={any:[/^v/,/^n/]},kS={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},SS={any:[/1/i,/2/i,/3/i,/4/i]},CS={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},TS={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},ES={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},xS={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},PS={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},IS={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},DS={ordinalNumber:Op({matchPattern:yS,parsePattern:bS,valueCallback:function(t){return parseInt(t,10)}}),era:Ln({matchPatterns:_S,defaultMatchWidth:"wide",parsePatterns:wS,defaultParseWidth:"any"}),quarter:Ln({matchPatterns:kS,defaultMatchWidth:"wide",parsePatterns:SS,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ln({matchPatterns:CS,defaultMatchWidth:"wide",parsePatterns:TS,defaultParseWidth:"any"}),day:Ln({matchPatterns:ES,defaultMatchWidth:"wide",parsePatterns:xS,defaultParseWidth:"any"}),dayPeriod:Ln({matchPatterns:PS,defaultMatchWidth:"any",parsePatterns:IS,defaultParseWidth:"any"})};const NS=DS;var OS={code:"nl",formatDistance:tS,formatLong:iS,formatRelative:uS,localize:gS,match:NS,options:{weekStartsOn:1,firstWeekContainsDate:4}};const BS=OS,MS=["date","datetime","time","year","month","week"],RS={time:e_,week:Wa,date:Wa,year:Wa,month:Wa,datetime:Wa};function go(e){return MS.includes(e)}function AS(e){switch(e){case"datetime":return"d LLLL yyyy HH:mm";case"time":return"HH:mm";case"year":return"yyyy";case"month":return"LLLL";case"week":return"d LLLL yyyy";case"date":default:return"d LLLL yyyy"}}function $S(e,t){return{locale:"nl",uid:t,autoApply:!0,clearable:!1,formatLocale:BS,format:AS(e),timePicker:e==="time",weekPicker:e==="week",yearPicker:e==="year",monthPicker:e==="month",enableTimePicker:["time","datetime"].includes(e),teleport:!0}}const LS=["location"];function yi(e){return LS.includes(e)}const VS=["radio","checkbox"];function Hi(e){return VS.includes(e)}const FS=`peer text-zinc-700 appearance-none h-5 w-5 border
|
|
53
|
+
9.44104 15 10.2041 15 10.9998V10.9998Z`},null,-1),f1=[c1,d1];function p1(e,t){return a.openBlock(),a.createElementBlock("svg",u1,f1)}const h1=cr(l1,[["render",p1]]),m1={class:"group mb-3 flex items-center font-semibold text-zinc-700"},v1={class:"mr-4 flex items-center justify-center rounded-full bg-white p-2 drop-shadow-sm transition-transform group-hover:-translate-x-2"},g1=a.defineComponent({__name:"AppBackButton",props:{buttonText:{},urlName:{},urlParameters:{default:void 0}},setup(e){return(t,n)=>{const r=a.resolveComponent("RouterLink");return a.openBlock(),a.createBlock(r,{to:{name:t.urlName,params:t.urlParameters},class:"inline-block"},{default:a.withCtx(()=>[a.createElementVNode("div",m1,[a.createElementVNode("div",v1,[a.createVNode(a.unref(Qh),{class:"h-4 stroke-3 text-black","data-test-icon":""})]),a.createTextVNode(" "+a.toDisplayString(t.buttonText),1)])]),_:1},8,["to"])}}}),y1={plain:[],default:["bg-zinc-100","text-zinc-900"],success:["bg-green-100","text-green-900"],warning:["bg-yellow-100","text-zinc-900"],error:["bg-red-100","text-error"],info:["bg-sky-200","text-sky-600"]},b1={medium:["px-3 py-1.5 text-xs"],large:["px-3 py-2.5 text-sm"]},_1={plain:[],default:["!bg-zinc-600"],success:["!bg-green-600"],warning:["!bg-yellow-600"],error:["!bg-error"],info:["!bg-sky-600"]},w1={key:0,class:"app-badge__icon mr-2 h-4"},k1={key:1,class:"app-badge__icon ml-2 h-4"},S1=a.defineComponent({__name:"AppBadge",props:{type:{default:"default"},rounded:{type:Boolean,default:!1},size:{default:"medium"}},setup(e){const t=e,n=a.computed(()=>({"rounded-full !text-white":t.rounded,"rounded-lg":!t.rounded}));return(r,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([[...a.unref(y1)[r.type],...a.unref(b1)[r.size],...t.rounded?a.unref(_1)[r.type]:[],n.value],"app-badge inline-flex items-center font-semibold"])},[r.$slots.leadingIcon?(a.openBlock(),a.createElementBlock("span",w1,[a.renderSlot(r.$slots,"leadingIcon",{},void 0,!0)])):a.createCommentVNode("",!0),a.renderSlot(r.$slots,"default",{},void 0,!0),r.$slots.trailingIcon?(a.openBlock(),a.createElementBlock("span",k1,[a.renderSlot(r.$slots,"trailingIcon",{},void 0,!0)])):a.createCommentVNode("",!0)],2))}}),is=cr(S1,[["__scopeId","data-v-4092128e"]]),C1={"extra-small":["h-4","w-4"],small:["h-5","w-5"],medium:["h-7","w-7"],large:["h-10","w-10"]},T1=a.createElementVNode("circle",{stroke:"currentColor",class:"opacity-25","stroke-width":"4",cx:"12",cy:"12",r:"10"},null,-1),E1=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
|
|
54
|
+
7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`},null,-1),x1=[T1,E1],ka=a.defineComponent({__name:"AppLoader",props:{size:{default:"medium"}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("svg",{class:a.normalizeClass([a.unref(C1)[t.size],"animate-spin"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none"},x1,2))}}),I1={class:"app-button__icon h-4"},P1=a.defineComponent({__name:"ButtonIconSlot",props:{loading:{type:Boolean}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("span",I1,[t.loading?(a.openBlock(),a.createBlock(ka,{key:0,class:"w-4"})):a.renderSlot(t.$slots,"default",{key:1},void 0,!0)]))}}),ef=cr(P1,[["__scopeId","data-v-04d5f165"]]),O1={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"]},N1={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"]},D1={small:["px-5","py-2"],medium:["px-5","py-3"],large:["px-5","py-4"]},ma=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(O1)[t.colorType],...t.bordered?a.unref(N1)[t.colorType]:[],...a.unref(D1)[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(ef,{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(ef,{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"]))}}),M1=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?x0.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(St.MenuItem),null,{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.value),{to:o.to,class:a.normalizeClass([{"!cursor-not-allowed":o.disabled},"flex cursor-pointer items-center px-6 py-2 text-base text-zinc-500 hover:bg-zinc-100 hover:text-zinc-900"]),"data-test-dropdown-item":"",onClick:r},{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default",{},()=>[o.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.icon),{key:0,class:a.normalizeClass([o.iconClasses,"mr-3 h-6 w-6"]),"data-test-icon":""},null,8,["class"])):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(o.label),1)])]),_:3},8,["to","class"]))]),_:3}))}}),B1={class:"relative inline-block text-left"},A1=a.defineComponent({__name:"AppDropdownButton",props:{dropdownItems:{},horizontalAlign:{default:"left"},openDirection:{default:"down"},buttonClasses:{},size:{},type:{},colorType:{},disabled:{type:Boolean},loading:{type:Boolean},bordered:{type:Boolean},block:{type:Boolean},as:{}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",B1,[a.createVNode(a.unref(St.Menu),null,{default:a.withCtx(()=>[a.createVNode(a.unref(St.MenuButton),null,{default:a.withCtx(()=>[a.createVNode(a.unref(ma),a.normalizeProps(a.guardReactiveProps({...t.$props,class:t.buttonClasses})),{trailingIcon:a.withCtx(()=>[a.createVNode(a.unref(Zh))]),default:a.withCtx(()=>[a.renderSlot(t.$slots,"default")]),_:3},16)]),_:3}),a.createVNode(a.unref(St.MenuItems),{class:a.normalizeClass([{"right-0 origin-top-right":t.horizontalAlign==="right","left-0 origin-top-left":t.horizontalAlign==="left","bottom-full mb-2":t.openDirection==="up"},"absolute z-10 mt-14 w-64 rounded-lg bg-white py-4 drop-shadow-card focus:outline-none"]),role:"menu","aria-orientation":"vertical","aria-labelledby":"menu-button",tabindex:"-1"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.dropdownItems,r=>(a.openBlock(),a.createBlock(M1,a.normalizeProps(a.mergeProps({key:r.label},r)),{default:a.withCtx(()=>[a.renderSlot(t.$slots,`item-${r.name}`,{item:r})]),_:2},1040))),128))]),_:3},8,["class"])]),_:3})]))}}),R1={key:0,class:"app-card__icon float-right mt-1.5 h-5 text-primary"},$1=a.defineComponent({__name:"CardIconSlot",props:{icon:{}},setup(e){const t=e;return(n,r)=>n.$slots.default||n.icon?(a.openBlock(),a.createElementBlock("div",R1,[a.renderSlot(n.$slots,"default",{},()=>[t.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(typeof t.icon=="string"?"span":t.icon),{key:0,"data-test-icon-component":"",innerHTML:t.icon},null,8,["innerHTML"])):a.createCommentVNode("",!0)],!0)])):a.createCommentVNode("",!0)}}),L1=cr($1,[["__scopeId","data-v-817cbc72"]]),V1={1:"stroke-1",2:"stroke-2",3:"stroke-3"},F1=a.defineComponent({__name:"CardAction",props:{item:{}},setup(e){const t=e,{navigationComponent:n}=yo(),r=a.ref(!1),o=a.computed(()=>r.value||typeof t.item.icon!="string"),i=a.computed(()=>r.value?ka:t.item.icon),s=a.computed(()=>[o.value?"":"!h-6",V1[t.item.iconStroke??3]]);async function l(u){var d,c,p;(d=t.item)!=null&&d.onClick&&(u.preventDefault(),r.value=!0,await Promise.resolve((p=(c=t.item)==null?void 0:c.onClick)==null?void 0:p.call(c)),r.value=!1)}return(u,d)=>{var c;return a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),{to:u.item.to,href:u.item.href,class:a.normalizeClass([{"flex-row-reverse":((c=u.item)==null?void 0:c.iconPosition)==="right"},"app-card__action ml-auto flex items-center justify-center font-bold text-zinc-900 transition-colors group-hover:text-primary"]),onClick:l},{default:a.withCtx(()=>{var p,h;return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.value?i.value:"span"),{class:a.normalizeClass([s.value,"h-4 w-4"]),size:r.value?"extra-small":void 0,"data-test-icon":""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(o.value?"":u.item.icon),1)]),_:1},8,["class","size"])),a.createElementVNode("span",{class:a.normalizeClass([{"pl-2":u.item.icon&&((p=u.item)==null?void 0:p.iconPosition)!=="right","pr-2":u.item.icon&&((h=u.item)==null?void 0:h.iconPosition)==="right"},"text-xs"]),"data-test-name":""},a.toDisplayString(u.item.name),3)]}),_:1},8,["to","href","class"])}}}),H1={key:1,class:"text-2xl font-bold text-zinc-900","data-test-title":""},U1=a.defineComponent({__name:"AppCard",props:{title:{default:void 0},actions:{default:void 0},icon:{default:void 0},bordered:{type:Boolean,default:!1},contentClasses:{default:void 0}},setup(e){const t=e,n=a.useSlots(),r=a.computed(()=>!!n.title||!!t.title),o=a.computed(()=>!!n.icon||!!t.icon),i=a.computed(()=>`${t.contentClasses} ${r.value?"mt-4":void 0}`);return(s,l)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([[{"before:hidden":!s.bordered,"transition hover:drop-shadow-cardhighlight":t.actions&&t.actions.length>0}],"group relative w-full overflow-hidden rounded-2xl bg-white px-6 py-5 text-zinc-600 drop-shadow-card before:absolute before:left-0 before:top-0 before:h-full before:w-1 before:bg-primary"])},[o.value?(a.openBlock(),a.createBlock(L1,{key:0,icon:s.icon,"data-test-icon":""},{default:a.withCtx(()=>[a.renderSlot(s.$slots,"icon")]),_:3},8,["icon"])):a.createCommentVNode("",!0),r.value?(a.openBlock(),a.createElementBlock("h3",H1,[a.renderSlot(s.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(s.title),1)])])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(i.value),"data-test-content":""},[a.renderSlot(s.$slots,"default")],2),a.renderSlot(s.$slots,"actions",{},()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.actions,u=>(a.openBlock(),a.createElementBlock("div",{key:u.name,class:"mt-2 flex w-full"},[a.createVNode(F1,{item:u},null,8,["item"])]))),128))])],2))}}),z1={class:"flex min-h-screen px-4 pb-20 pt-4 text-center md:items-center md:justify-center"},j1=a.createElementVNode("span",{class:"hidden md:inline-block md:h-screen md:align-middle","aria-hidden":"true"}," ",-1),W1={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"},q1={class:"rounded-2xl bg-white p-10 drop-shadow-card"},Y1={class:"flex flex-col items-center space-y-5"},G1={key:0,class:"mx-auto flex h-12 w-12 shrink-0 items-center justify-center rounded-full"},K1={class:"mt-3 text-center"},X1={class:"mt-3 w-full px-10 text-center text-sm text-zinc-600","data-test-confirm-content":""},J1=["innerHTML"],Z1={key:1},Q1={class:"mx-auto flex w-fit flex-col space-y-4 pt-10"},em=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},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"?Kh:!n.icon&&n.type==="success"?Yh:n.icon),u=a.computed(()=>[n.type==="error"?"text-red-500":"text-green-500",n.extendedIconDomClasses]);async function d(c){c&&typeof n.onConfirm=="function"?(i.value=!0,await Promise.resolve(n.onConfirm())):!c&&typeof n.onCancel=="function"&&(s.value=!0,await Promise.resolve(n.onCancel())),o.value=!1,r("close",c)}return(c,p)=>(a.openBlock(),a.createBlock(a.unref(St.TransitionRoot),{show:o.value,as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(St.Dialog),{as:"div",class:"app-confirm-dialog fixed inset-0 top-16 z-50 overflow-y-auto md:left-20 md:top-0","data-test-confirm-dialog":"",onClose:p[2]||(p[2]=()=>c.preventBackdropClose?void 0:d(!1))},{default:a.withCtx(()=>[a.createElementVNode("div",z1,[c.withBackdrop?(a.openBlock(),a.createBlock(a.unref(St.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(St.DialogOverlay),{class:"app-confirm-dialog-overlay fixed inset-0 top-16 z-40 rounded-l-2xl bg-zinc-100 transition-opacity md:left-20 md:top-0"})]),_:1})):a.createCommentVNode("",!0),j1,a.createVNode(a.unref(St.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",W1,[a.createElementVNode("div",q1,[a.createElementVNode("div",Y1,[l.value?(a.openBlock(),a.createElementBlock("div",G1,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(l.value),{class:a.normalizeClass([u.value,"h-full w-full"]),"data-test-confirm-icon":""},null,8,["class"]))])):a.createCommentVNode("",!0),a.createElementVNode("div",K1,[a.createVNode(a.unref(St.DialogTitle),{as:"h3",class:"text-2xl font-bold leading-6 text-zinc-900"},{default:a.withCtx(()=>[a.renderSlot(c.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(c.title),1)])]),_:3}),a.createElementVNode("div",X1,[a.renderSlot(c.$slots,"default",{},()=>[c.html?(a.openBlock(),a.createElementBlock("div",{key:0,class:"app-confirm-html-content",innerHTML:c.content},null,8,J1)):(a.openBlock(),a.createElementBlock("p",Z1,a.toDisplayString(c.content),1))])])])]),a.createElementVNode("div",Q1,[c.confirmButtonText?(a.openBlock(),a.createBlock(a.unref(ma),{key:0,bordered:!0,disabled:i.value||s.value,loading:i.value,type:"button","color-type":"primary",class:"justify-center",onClick:p[0]||(p[0]=()=>d(!0))},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(c.confirmButtonText),1)]),_:2},[c.confirmButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.confirmButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,c.confirmButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.confirmButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0),c.cancelButtonText?(a.openBlock(),a.createBlock(a.unref(ma),{key:1,disabled:i.value||s.value,loading:s.value,"color-type":"plain",class:"justify-center",onClick:p[1]||(p[1]=()=>d(!1))},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(c.cancelButtonText),1)]),_:2},[c.cancelButtonTrailingIcon?{name:"trailingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.cancelButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,c.cancelButtonLeadingIcon?{name:"leadingIcon",fn:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.cancelButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):a.createCommentVNode("",!0)])])])]),_:3})])]),_:3})]),_:3},8,["show"]))}}),ek={class:"flex min-h-screen items-center justify-center text-center"},tk=a.createElementVNode("span",{class:"inline-block h-screen align-middle","aria-hidden":"true"}," ",-1),nk={class:"relative z-50 mx-auto inline-block w-full max-w-2xl overflow-hidden rounded-2xl p-4 text-left align-middle transition-all md:max-w-[70vw]"},rk={class:"rounded-2xl bg-zinc-100 p-8 drop-shadow-card"},ak={class:"flex flex-col items-center space-y-5"},ok={class:"w-full text-center"},ik={class:"mt-3 w-full px-10 text-center text-sm text-zinc-600","data-test-modal-content":""},sk={key:0,class:"ml-auto flex w-fit flex-row-reverse items-center pt-10"},tm=a.defineComponent({__name:"AppModal",props:{title:{default:""},submitButtonText:{default:"Opslaan"},submitButtonTrailingIcon:{},submitButtonLeadingIcon:{},cancelButtonText:{default:"Annuleren"},cancelButtonTrailingIcon:{},cancelButtonLeadingIcon:{},withBackdrop:{type:Boolean,default:!0},withFooter:{type:Boolean,default:!0},preventBackdropClose:{type:Boolean,default:!1},preventBackdropCloseOnLoading:{type:Boolean,default:!0},content:{default:""}},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),u=a.ref(!1),d=a.computed(()=>r.preventBackdropClose||r.preventBackdropCloseOnLoading&&(l.value||u.value));async function c(){i.value=!0,o("open")}async function p(){u.value=!0,i.value=!1,o("close"),u.value=!1}async function h(){o("cancel"),await p()}async function m(){l.value=!0;const y=new FormData(s.value);o("submit",y),i.value=!1,setTimeout(()=>{l.value=!1},300)}return t({isOpen:i,open:c,close:p,submit:m}),(y,w)=>(a.openBlock(),a.createBlock(a.unref(St.TransitionRoot),{show:i.value,as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(St.Dialog),{as:"div",class:"app-modal-dialog fixed inset-0 z-50 overflow-y-auto","data-test-modal-dialog":"",onClose:w[0]||(w[0]=()=>d.value?void 0:p())},{default:a.withCtx(()=>[a.createElementVNode("div",ek,[y.withBackdrop?(a.openBlock(),a.createBlock(a.unref(St.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(St.DialogOverlay),{class:"fixed inset-0 z-40 bg-black/20 backdrop-blur-sm transition-opacity"})]),_:1})):a.createCommentVNode("",!0),tk,a.createVNode(a.unref(St.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",nk,[a.createElementVNode("div",rk,[a.createElementVNode("div",ak,[a.createElementVNode("div",ok,[a.createVNode(a.unref(St.DialogTitle),{as:"h3",class:"flex justify-between text-2xl font-bold leading-6 text-zinc-900"},{default:a.withCtx(()=>[a.renderSlot(y.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(y.title),1)]),a.createVNode(a.unref(Fs),{class:"h-6 w-6 cursor-pointer",onClick:p})]),_:3}),a.createElementVNode("div",ik,[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),{key:1}))])],512)])])]),y.withFooter?(a.openBlock(),a.createElementBlock("div",sk,[y.submitButtonText?(a.openBlock(),a.createBlock(a.unref(ma),{key:0,disabled:l.value||u.value,loading:l.value,type:"button","color-type":"primary",class:"ml-6 justify-center",onClick:m},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(ma),{key:1,disabled:l.value||u.value,loading:u.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)])])]),_:3})])]),_:3})]),_:3},8,["show"]))}}),lk={key:0,class:"flex w-full","data-test-item":""},uk=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",lk,[r.value?(a.openBlock(),a.createElementBlock("dt",{key:0,class:a.normalizeClass([{"w-1/2":o.value||i.component},"font-bold text-zinc-900"]),"data-test-title":""},[a.renderSlot(i.$slots,"title",{},()=>[a.createTextVNode(a.toDisplayString(i.title),1)])],2)):a.createCommentVNode("",!0),o.value||i.component?(a.openBlock(),a.createElementBlock("dd",{key:1,class:a.normalizeClass({"w-1/2":r.value}),"data-test-description":""},[a.renderSlot(i.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(i.description),1)]),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.component),a.mergeProps(i.componentProperties,{"data-test-component":""}),null,16))],2)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}}),ck={class:"flex flex-col gap-1.5"},dk=a.defineComponent({__name:"AppDefinitionList",props:{items:{},hideEmptyValues:{type:Boolean,default:!1}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",ck,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.items,(r,o)=>(a.openBlock(),a.createBlock(uk,{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))]))}}),fk=a.defineComponent({__name:"AppDisclosure",props:{defaultOpen:{type:Boolean,default:!1}},setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.unref(St.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"]))}}),pk={class:"ml-auto pl-2"},hk=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(St.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",pk,[a.renderSlot(r.$slots,"icon",{open:i},()=>[a.createVNode(a.unref(Zh),{class:a.normalizeClass([{"rotate-180":i},"h-5 w-5 text-zinc-900 transition-transform"])},null,8,["class"])])])]),_:3},512))}}),mk=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(St.DisclosurePanel),{static:t.static,unmount:t.unmount,class:"-mt-2 mb-4",as:"div"},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default")]),_:3},8,["static","unmount"])]),_:3}))}});let Di;const vk=new Uint8Array(16);function gk(){if(!Di&&(Di=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Di))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Di(vk)}const Ht=[];for(let e=0;e<256;++e)Ht.push((e+256).toString(16).slice(1));function yk(e,t=0){return Ht[e[t+0]]+Ht[e[t+1]]+Ht[e[t+2]]+Ht[e[t+3]]+"-"+Ht[e[t+4]]+Ht[e[t+5]]+"-"+Ht[e[t+6]]+Ht[e[t+7]]+"-"+Ht[e[t+8]]+Ht[e[t+9]]+"-"+Ht[e[t+10]]+Ht[e[t+11]]+Ht[e[t+12]]+Ht[e[t+13]]+Ht[e[t+14]]+Ht[e[t+15]]}const bk=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),tf={randomUUID:bk};function _k(e,t,n){if(tf.randomUUID&&!t&&!e)return tf.randomUUID();e=e||{};const r=e.random||(e.rng||gk)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let o=0;o<16;++o)t[n+o]=r[o];return t}return yk(r)}const wk={class:"app-input__icon pointer-events-none absolute z-10 mt-px h-5"},kk=a.defineComponent({__name:"InputIconSlot",props:{loading:{type:Boolean}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("span",wk,[t.loading?(a.openBlock(),a.createBlock(ka,{key:0,size:"small",class:"w-4"})):a.renderSlot(t.$slots,"default",{key:1},void 0,!0)]))}}),nf=cr(kk,[["__scopeId","data-v-b64a985e"]]);function ja(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}function Gn(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",o;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):i;o=e.formattingValues[s]||e.formattingValues[i]}else{var l=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[u]||e.values[l]}var d=e.argumentCallback?e.argumentCallback(t):t;return o[d]}}function Kn(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?Ck(l,function(p){return p.test(s)}):Sk(l,function(p){return p.test(s)}),d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;var c=t.slice(s.length);return{value:d,rest:c}}}function Sk(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Ck(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function nm(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;var l=t.slice(o.length);return{value:s,rest:l}}}function Pn(e){"@babel/helpers - typeof";return Pn=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},Pn(e)}function Oe(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ke(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function De(e){ke(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Pn(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function _r(e,t){ke(2,arguments);var n=De(e),r=Oe(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function er(e,t){ke(2,arguments);var n=De(e),r=Oe(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var s=i.getDate();return o>=s?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function rm(e,t){if(ke(2,arguments),!t||Pn(t)!=="object")return new Date(NaN);var n=t.years?Oe(t.years):0,r=t.months?Oe(t.months):0,o=t.weeks?Oe(t.weeks):0,i=t.days?Oe(t.days):0,s=t.hours?Oe(t.hours):0,l=t.minutes?Oe(t.minutes):0,u=t.seconds?Oe(t.seconds):0,d=De(e),c=r||n?er(d,r+n*12):d,p=i||o?_r(c,i+o*7):c,h=l+s*60,m=u+h*60,y=m*1e3,w=new Date(p.getTime()+y);return w}function Tk(e,t){ke(2,arguments);var n=De(e).getTime(),r=Oe(t);return new Date(n+r)}var Ek={};function dr(){return Ek}function va(e,t){var n,r,o,i,s,l,u,d;ke(1,arguments);var c=dr(),p=Oe((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:c.weekStartsOn)!==null&&r!==void 0?r:(u=c.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=De(e),m=h.getDay(),y=(m<p?7:0)+m-p;return h.setDate(h.getDate()-y),h.setHours(0,0,0,0),h}function ss(e){return ke(1,arguments),va(e,{weekStartsOn:1})}function xk(e){ke(1,arguments);var t=De(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var o=ss(r),i=new Date(0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);var s=ss(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Ik(e){ke(1,arguments);var t=xk(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=ss(n);return r}function ls(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function rf(e){ke(1,arguments);var t=De(e);return t.setHours(0,0,0,0),t}var Pk=864e5;function Ok(e,t){ke(2,arguments);var n=rf(e),r=rf(t),o=n.getTime()-ls(n),i=r.getTime()-ls(r);return Math.round((o-i)/Pk)}function am(e,t){ke(2,arguments);var n=Oe(t);return er(e,n*12)}var dc=6e4,fc=36e5,Nk=1e3;function om(e){return ke(1,arguments),e instanceof Date||Pn(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ho(e){if(ke(1,arguments),!om(e)&&typeof e!="number")return!1;var t=De(e);return!isNaN(Number(t))}function af(e,t){var n;ke(1,arguments);var r=e||{},o=De(r.start),i=De(r.end),s=i.getTime();if(!(o.getTime()<=s))throw new RangeError("Invalid interval");var l=[],u=o;u.setHours(0,0,0,0);var d=Number((n=t==null?void 0:t.step)!==null&&n!==void 0?n:1);if(d<1||isNaN(d))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=s;)l.push(De(u)),u.setDate(u.getDate()+d),u.setHours(0,0,0,0);return l}function Dk(e,t){var n,r,o,i,s,l,u,d;ke(1,arguments);var c=dr(),p=Oe((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:c.weekStartsOn)!==null&&r!==void 0?r:(u=c.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=De(e),m=h.getDay(),y=(m<p?-7:0)+6-(m-p);return h.setDate(h.getDate()+y),h.setHours(23,59,59,999),h}function im(e,t){ke(2,arguments);var n=Oe(t);return Tk(e,-n)}var Mk=864e5;function Bk(e){ke(1,arguments);var t=De(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/Mk)+1}function to(e){ke(1,arguments);var t=1,n=De(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function sm(e){ke(1,arguments);var t=De(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=to(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var s=to(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Ak(e){ke(1,arguments);var t=sm(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=to(n);return r}var Rk=6048e5;function lm(e){ke(1,arguments);var t=De(e),n=to(t).getTime()-Ak(t).getTime();return Math.round(n/Rk)+1}function ga(e,t){var n,r,o,i,s,l,u,d;ke(1,arguments);var c=dr(),p=Oe((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:c.weekStartsOn)!==null&&r!==void 0?r:(u=c.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=De(e),m=h.getUTCDay(),y=(m<p?7:0)+m-p;return h.setUTCDate(h.getUTCDate()-y),h.setUTCHours(0,0,0,0),h}function pc(e,t){var n,r,o,i,s,l,u,d;ke(1,arguments);var c=De(e),p=c.getUTCFullYear(),h=dr(),m=Oe((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:h.firstWeekContainsDate)!==null&&r!==void 0?r:(u=h.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(p+1,0,m),y.setUTCHours(0,0,0,0);var w=ga(y,t),k=new Date(0);k.setUTCFullYear(p,0,m),k.setUTCHours(0,0,0,0);var _=ga(k,t);return c.getTime()>=w.getTime()?p+1:c.getTime()>=_.getTime()?p:p-1}function $k(e,t){var n,r,o,i,s,l,u,d;ke(1,arguments);var c=dr(),p=Oe((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:c.firstWeekContainsDate)!==null&&r!==void 0?r:(u=c.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=pc(e,t),m=new Date(0);m.setUTCFullYear(h,0,p),m.setUTCHours(0,0,0,0);var y=ga(m,t);return y}var Lk=6048e5;function um(e,t){ke(1,arguments);var n=De(e),r=ga(n,t).getTime()-$k(n,t).getTime();return Math.round(r/Lk)+1}function it(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Vk={y:function(t,n){var r=t.getUTCFullYear(),o=r>0?r:1-r;return it(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):it(r+1,2)},d:function(t,n){return it(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return it(t.getUTCHours()%12||12,n.length)},H:function(t,n){return it(t.getUTCHours(),n.length)},m:function(t,n){return it(t.getUTCMinutes(),n.length)},s:function(t,n){return it(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return it(i,n.length)}};const Dr=Vk;var Na={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Fk={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return Dr.y(t,n)},Y:function(t,n,r,o){var i=pc(t,o),s=i>0?i:1-i;if(n==="YY"){var l=s%100;return it(l,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):it(s,n.length)},R:function(t,n){var r=sm(t);return it(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return it(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return it(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return it(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return Dr.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return it(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=um(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):it(i,n.length)},I:function(t,n,r){var o=lm(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):it(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Dr.d(t,n)},D:function(t,n,r){var o=Bk(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):it(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,r,o){var i=t.getUTCDay(),s=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return it(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,o){var i=t.getUTCDay(),s=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return it(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return it(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=Na.noon:o===0?i=Na.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=Na.evening:o>=12?i=Na.afternoon:o>=4?i=Na.morning:i=Na.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return Dr.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Dr.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):it(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):it(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Dr.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Dr.s(t,n)},S:function(t,n){return Dr.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return sf(s);case"XXXX":case"XX":return ra(s);case"XXXXX":case"XXX":default:return ra(s,":")}},x:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();switch(n){case"x":return sf(s);case"xxxx":case"xx":return ra(s);case"xxxxx":case"xxx":default:return ra(s,":")}},O:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+of(s,":");case"OOOO":default:return"GMT"+ra(s,":")}},z:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+of(s,":");case"zzzz":default:return"GMT"+ra(s,":")}},t:function(t,n,r,o){var i=o._originalDate||t,s=Math.floor(i.getTime()/1e3);return it(s,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,s=i.getTime();return it(s,n.length)}};function of(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var s=t||"";return n+String(o)+s+it(i,2)}function sf(e,t){if(e%60===0){var n=e>0?"-":"+";return n+it(Math.abs(e)/60,2)}return ra(e,t)}function ra(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=it(Math.floor(o/60),2),s=it(o%60,2);return r+i+n+s}var lf=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},cm=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Hk=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return lf(t,n);var s;switch(o){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",lf(o,n)).replace("{{time}}",cm(i,n))},lu={p:cm,P:Hk},Uk=["D","DD"],zk=["YY","YYYY"];function dm(e){return Uk.indexOf(e)!==-1}function fm(e){return zk.indexOf(e)!==-1}function us(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var jk={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"}},Wk=function(t,n,r){var o,i=jk[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const qk=Wk;var Yk={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Gk={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Kk={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Xk={date:ja({formats:Yk,defaultWidth:"full"}),time:ja({formats:Gk,defaultWidth:"full"}),dateTime:ja({formats:Kk,defaultWidth:"full"})};const Jk=Xk;var Zk={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Qk=function(t,n,r,o){return Zk[t]};const eS=Qk;var tS={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},nS={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},rS={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"]},aS={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"]},oS={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"}},iS={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"}},sS=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},lS={ordinalNumber:sS,era:Gn({values:tS,defaultWidth:"wide"}),quarter:Gn({values:nS,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Gn({values:rS,defaultWidth:"wide"}),day:Gn({values:aS,defaultWidth:"wide"}),dayPeriod:Gn({values:oS,defaultWidth:"wide",formattingValues:iS,defaultFormattingWidth:"wide"})};const uS=lS;var cS=/^(\d+)(th|st|nd|rd)?/i,dS=/\d+/i,fS={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},pS={any:[/^b/i,/^(a|c)/i]},hS={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},mS={any:[/1/i,/2/i,/3/i,/4/i]},vS={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},gS={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]},yS={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},bS={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]},_S={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},wS={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}},kS={ordinalNumber:nm({matchPattern:cS,parsePattern:dS,valueCallback:function(t){return parseInt(t,10)}}),era:Kn({matchPatterns:fS,defaultMatchWidth:"wide",parsePatterns:pS,defaultParseWidth:"any"}),quarter:Kn({matchPatterns:hS,defaultMatchWidth:"wide",parsePatterns:mS,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Kn({matchPatterns:vS,defaultMatchWidth:"wide",parsePatterns:gS,defaultParseWidth:"any"}),day:Kn({matchPatterns:yS,defaultMatchWidth:"wide",parsePatterns:bS,defaultParseWidth:"any"}),dayPeriod:Kn({matchPatterns:_S,defaultMatchWidth:"any",parsePatterns:wS,defaultParseWidth:"any"})};const SS=kS;var CS={code:"en-US",formatDistance:qk,formatLong:Jk,formatRelative:eS,localize:uS,match:SS,options:{weekStartsOn:0,firstWeekContainsDate:1}};const pm=CS;var TS=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ES=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,xS=/^'([^]*?)'?$/,IS=/''/g,PS=/[a-zA-Z]/;function fa(e,t,n){var r,o,i,s,l,u,d,c,p,h,m,y,w,k,_,x,S,b;ke(2,arguments);var N=String(t),T=dr(),I=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:T.locale)!==null&&r!==void 0?r:pm,$=Oe((i=(s=(l=(u=n==null?void 0:n.firstWeekContainsDate)!==null&&u!==void 0?u:n==null||(d=n.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&l!==void 0?l:T.firstWeekContainsDate)!==null&&s!==void 0?s:(p=T.locale)===null||p===void 0||(h=p.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!($>=1&&$<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var W=Oe((m=(y=(w=(k=n==null?void 0:n.weekStartsOn)!==null&&k!==void 0?k:n==null||(_=n.locale)===null||_===void 0||(x=_.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&w!==void 0?w:T.weekStartsOn)!==null&&y!==void 0?y:(S=T.locale)===null||S===void 0||(b=S.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&m!==void 0?m:0);if(!(W>=0&&W<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!I.localize)throw new RangeError("locale must contain localize property");if(!I.formatLong)throw new RangeError("locale must contain formatLong property");var j=De(e);if(!Ho(j))throw new RangeError("Invalid time value");var M=ls(j),D=im(j,M),R={firstWeekContainsDate:$,weekStartsOn:W,locale:I,_originalDate:j},K=N.match(ES).map(function(G){var Y=G[0];if(Y==="p"||Y==="P"){var z=lu[Y];return z(G,I.formatLong)}return G}).join("").match(TS).map(function(G){if(G==="''")return"'";var Y=G[0];if(Y==="'")return OS(G);var z=Fk[Y];if(z)return!(n!=null&&n.useAdditionalWeekYearTokens)&&fm(G)&&us(G,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&dm(G)&&us(G,t,String(e)),z(D,G,I.localize,R);if(Y.match(PS))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Y+"`");return G}).join("");return K}function OS(e){var t=e.match(xS);return t?t[1].replace(IS,"'"):e}function NS(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function DS(e){ke(1,arguments);var t=De(e),n=t.getDay();return n}function MS(e){ke(1,arguments);var t=De(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function yr(e){ke(1,arguments);var t=De(e),n=t.getHours();return n}var BS=6048e5;function AS(e){ke(1,arguments);var t=De(e),n=ss(t).getTime()-Ik(t).getTime();return Math.round(n/BS)+1}function br(e){ke(1,arguments);var t=De(e),n=t.getMinutes();return n}function pt(e){ke(1,arguments);var t=De(e),n=t.getMonth();return n}function no(e){ke(1,arguments);var t=De(e),n=t.getSeconds();return n}function RS(e,t){var n,r,o,i,s,l,u,d;ke(1,arguments);var c=De(e),p=c.getFullYear(),h=dr(),m=Oe((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:h.firstWeekContainsDate)!==null&&r!==void 0?r:(u=h.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setFullYear(p+1,0,m),y.setHours(0,0,0,0);var w=va(y,t),k=new Date(0);k.setFullYear(p,0,m),k.setHours(0,0,0,0);var _=va(k,t);return c.getTime()>=w.getTime()?p+1:c.getTime()>=_.getTime()?p:p-1}function $S(e,t){var n,r,o,i,s,l,u,d;ke(1,arguments);var c=dr(),p=Oe((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:c.firstWeekContainsDate)!==null&&r!==void 0?r:(u=c.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=RS(e,t),m=new Date(0);m.setFullYear(h,0,p),m.setHours(0,0,0,0);var y=va(m,t);return y}var LS=6048e5;function VS(e,t){ke(1,arguments);var n=De(e),r=va(n,t).getTime()-$S(n,t).getTime();return Math.round(r/LS)+1}function gt(e){return ke(1,arguments),De(e).getFullYear()}function ti(e,t){ke(2,arguments);var n=De(e),r=De(t);return n.getTime()>r.getTime()}function ni(e,t){ke(2,arguments);var n=De(e),r=De(t);return n.getTime()<r.getTime()}function sa(e,t){ke(2,arguments);var n=De(e),r=De(t);return n.getTime()===r.getTime()}function uf(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 FS(e,t){if(e){if(typeof e=="string")return uf(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 uf(e,t)}}function cf(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=FS(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(d){throw d},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
55
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,l;return{s:function(){n=n.call(e)},n:function(){var d=n.next();return i=d.done,d},e:function(d){s=!0,l=d},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw l}}}}function ge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uu(e,t){return uu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},uu(e,t)}function et(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&&uu(e,t)}function cs(e){return cs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cs(e)}function HS(){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 US(e,t){if(t&&(Pn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ge(e)}function tt(e){var t=HS();return function(){var r=cs(e),o;if(t){var i=cs(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return US(this,o)}}function Ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zS(e,t){if(Pn(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Pn(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hm(e){var t=zS(e,"string");return Pn(t)==="symbol"?t:String(t)}function df(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,hm(r.key),r)}}function Xe(e,t,n){return t&&df(e.prototype,t),n&&df(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ve(e,t,n){return t=hm(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jS=10,mm=function(){function e(){Ke(this,e),ve(this,"priority",void 0),ve(this,"subPriority",0)}return Xe(e,[{key:"validate",value:function(n,r){return!0}}]),e}(),WS=function(e){et(n,e);var t=tt(n);function n(r,o,i,s,l){var u;return Ke(this,n),u=t.call(this),u.value=r,u.validateValue=o,u.setValue=i,u.priority=s,l&&(u.subPriority=l),u}return Xe(n,[{key:"validate",value:function(o,i){return this.validateValue(o,this.value,i)}},{key:"set",value:function(o,i,s){return this.setValue(o,i,this.value,s)}}]),n}(mm),qS=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",jS),ve(ge(r),"subPriority",-1),r}return Xe(n,[{key:"set",value:function(o,i){if(i.timestampIsSet)return o;var s=new Date(0);return s.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),s.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),s}}]),n}(mm),rt=function(){function e(){Ke(this,e),ve(this,"incompatibleTokens",void 0),ve(this,"priority",void 0),ve(this,"subPriority",void 0)}return Xe(e,[{key:"run",value:function(n,r,o,i){var s=this.parse(n,r,o,i);return s?{setter:new WS(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}},{key:"validate",value:function(n,r,o){return!0}}]),e}(),YS=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",140),ve(ge(r),"incompatibleTokens",["R","u","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s){switch(i){case"G":case"GG":case"GGG":return s.era(o,{width:"abbreviated"})||s.era(o,{width:"narrow"});case"GGGGG":return s.era(o,{width:"narrow"});case"GGGG":default:return s.era(o,{width:"wide"})||s.era(o,{width:"abbreviated"})||s.era(o,{width:"narrow"})}}},{key:"set",value:function(o,i,s){return i.era=s,o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(rt),It={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}/},Xn={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 Pt(e,t){return e&&{value:t(e.value),rest:e.rest}}function bt(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Jn(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(o*fc+i*dc+s*Nk),rest:t.slice(n[0].length)}}function vm(e){return bt(It.anyDigitsSigned,e)}function Tt(e,t){switch(e){case 1:return bt(It.singleDigit,t);case 2:return bt(It.twoDigits,t);case 3:return bt(It.threeDigits,t);case 4:return bt(It.fourDigits,t);default:return bt(new RegExp("^\\d{1,"+e+"}"),t)}}function ds(e,t){switch(e){case 1:return bt(It.singleDigitSigned,t);case 2:return bt(It.twoDigitsSigned,t);case 3:return bt(It.threeDigitsSigned,t);case 4:return bt(It.fourDigitsSigned,t);default:return bt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function hc(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 gm(e,t){var n=t>0,r=n?t:1-t,o;if(r<=50)o=e||100;else{var i=r+50,s=Math.floor(i/100)*100,l=e>=i%100;o=e+s-(l?100:0)}return n?o:1-o}function ym(e){return e%400===0||e%4===0&&e%100!==0}var GS=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",130),ve(ge(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s){var l=function(d){return{year:d,isTwoDigitYear:i==="yy"}};switch(i){case"y":return Pt(Tt(4,o),l);case"yo":return Pt(s.ordinalNumber(o,{unit:"year"}),l);default:return Pt(Tt(i.length,o),l)}}},{key:"validate",value:function(o,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(o,i,s){var l=o.getUTCFullYear();if(s.isTwoDigitYear){var u=gm(s.year,l);return o.setUTCFullYear(u,0,1),o.setUTCHours(0,0,0,0),o}var d=!("era"in i)||i.era===1?s.year:1-s.year;return o.setUTCFullYear(d,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(rt),KS=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",130),ve(ge(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s){var l=function(d){return{year:d,isTwoDigitYear:i==="YY"}};switch(i){case"Y":return Pt(Tt(4,o),l);case"Yo":return Pt(s.ordinalNumber(o,{unit:"year"}),l);default:return Pt(Tt(i.length,o),l)}}},{key:"validate",value:function(o,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(o,i,s,l){var u=pc(o,l);if(s.isTwoDigitYear){var d=gm(s.year,u);return o.setUTCFullYear(d,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),ga(o,l)}var c=!("era"in i)||i.era===1?s.year:1-s.year;return o.setUTCFullYear(c,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),ga(o,l)}}]),n}(rt),XS=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",130),ve(ge(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i){return ds(i==="R"?4:i.length,o)}},{key:"set",value:function(o,i,s){var l=new Date(0);return l.setUTCFullYear(s,0,4),l.setUTCHours(0,0,0,0),to(l)}}]),n}(rt),JS=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",130),ve(ge(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i){return ds(i==="u"?4:i.length,o)}},{key:"set",value:function(o,i,s){return o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(rt),ZS=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",120),ve(ge(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s){switch(i){case"Q":case"QQ":return Tt(i.length,o);case"Qo":return s.ordinalNumber(o,{unit:"quarter"});case"QQQ":return s.quarter(o,{width:"abbreviated",context:"formatting"})||s.quarter(o,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(o,{width:"wide",context:"formatting"})||s.quarter(o,{width:"abbreviated",context:"formatting"})||s.quarter(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=1&&i<=4}},{key:"set",value:function(o,i,s){return o.setUTCMonth((s-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(rt),QS=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",120),ve(ge(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s){switch(i){case"q":case"qq":return Tt(i.length,o);case"qo":return s.ordinalNumber(o,{unit:"quarter"});case"qqq":return s.quarter(o,{width:"abbreviated",context:"standalone"})||s.quarter(o,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(o,{width:"wide",context:"standalone"})||s.quarter(o,{width:"abbreviated",context:"standalone"})||s.quarter(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,i){return i>=1&&i<=4}},{key:"set",value:function(o,i,s){return o.setUTCMonth((s-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(rt),eC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),ve(ge(r),"priority",110),r}return Xe(n,[{key:"parse",value:function(o,i,s){var l=function(d){return d-1};switch(i){case"M":return Pt(bt(It.month,o),l);case"MM":return Pt(Tt(2,o),l);case"Mo":return Pt(s.ordinalNumber(o,{unit:"month"}),l);case"MMM":return s.month(o,{width:"abbreviated",context:"formatting"})||s.month(o,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(o,{width:"wide",context:"formatting"})||s.month(o,{width:"abbreviated",context:"formatting"})||s.month(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=11}},{key:"set",value:function(o,i,s){return o.setUTCMonth(s,1),o.setUTCHours(0,0,0,0),o}}]),n}(rt),tC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",110),ve(ge(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s){var l=function(d){return d-1};switch(i){case"L":return Pt(bt(It.month,o),l);case"LL":return Pt(Tt(2,o),l);case"Lo":return Pt(s.ordinalNumber(o,{unit:"month"}),l);case"LLL":return s.month(o,{width:"abbreviated",context:"standalone"})||s.month(o,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(o,{width:"wide",context:"standalone"})||s.month(o,{width:"abbreviated",context:"standalone"})||s.month(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=11}},{key:"set",value:function(o,i,s){return o.setUTCMonth(s,1),o.setUTCHours(0,0,0,0),o}}]),n}(rt);function nC(e,t,n){ke(2,arguments);var r=De(e),o=Oe(t),i=um(r,n)-o;return r.setUTCDate(r.getUTCDate()-i*7),r}var rC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",100),ve(ge(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s){switch(i){case"w":return bt(It.week,o);case"wo":return s.ordinalNumber(o,{unit:"week"});default:return Tt(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=53}},{key:"set",value:function(o,i,s,l){return ga(nC(o,s,l),l)}}]),n}(rt);function aC(e,t){ke(2,arguments);var n=De(e),r=Oe(t),o=lm(n)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}var oC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",100),ve(ge(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s){switch(i){case"I":return bt(It.week,o);case"Io":return s.ordinalNumber(o,{unit:"week"});default:return Tt(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=53}},{key:"set",value:function(o,i,s){return to(aC(o,s))}}]),n}(rt),iC=[31,28,31,30,31,30,31,31,30,31,30,31],sC=[31,29,31,30,31,30,31,31,30,31,30,31],lC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",90),ve(ge(r),"subPriority",1),ve(ge(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s){switch(i){case"d":return bt(It.date,o);case"do":return s.ordinalNumber(o,{unit:"date"});default:return Tt(i.length,o)}}},{key:"validate",value:function(o,i){var s=o.getUTCFullYear(),l=ym(s),u=o.getUTCMonth();return l?i>=1&&i<=sC[u]:i>=1&&i<=iC[u]}},{key:"set",value:function(o,i,s){return o.setUTCDate(s),o.setUTCHours(0,0,0,0),o}}]),n}(rt),uC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",90),ve(ge(r),"subpriority",1),ve(ge(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s){switch(i){case"D":case"DD":return bt(It.dayOfYear,o);case"Do":return s.ordinalNumber(o,{unit:"date"});default:return Tt(i.length,o)}}},{key:"validate",value:function(o,i){var s=o.getUTCFullYear(),l=ym(s);return l?i>=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(o,i,s){return o.setUTCMonth(0,s),o.setUTCHours(0,0,0,0),o}}]),n}(rt);function mc(e,t,n){var r,o,i,s,l,u,d,c;ke(2,arguments);var p=dr(),h=Oe((r=(o=(i=(s=n==null?void 0:n.weekStartsOn)!==null&&s!==void 0?s:n==null||(l=n.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&i!==void 0?i:p.weekStartsOn)!==null&&o!==void 0?o:(d=p.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=De(e),y=Oe(t),w=m.getUTCDay(),k=y%7,_=(k+7)%7,x=(_<h?7:0)+y-w;return m.setUTCDate(m.getUTCDate()+x),m}var cC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",90),ve(ge(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s){switch(i){case"E":case"EE":case"EEE":return s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(o,{width:"wide",context:"formatting"})||s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=6}},{key:"set",value:function(o,i,s,l){return o=mc(o,s,l),o.setUTCHours(0,0,0,0),o}}]),n}(rt),dC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",90),ve(ge(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s,l){var u=function(c){var p=Math.floor((c-1)/7)*7;return(c+l.weekStartsOn+6)%7+p};switch(i){case"e":case"ee":return Pt(Tt(i.length,o),u);case"eo":return Pt(s.ordinalNumber(o,{unit:"day"}),u);case"eee":return s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"eeeee":return s.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(o,{width:"wide",context:"formatting"})||s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=6}},{key:"set",value:function(o,i,s,l){return o=mc(o,s,l),o.setUTCHours(0,0,0,0),o}}]),n}(rt),fC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",90),ve(ge(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s,l){var u=function(c){var p=Math.floor((c-1)/7)*7;return(c+l.weekStartsOn+6)%7+p};switch(i){case"c":case"cc":return Pt(Tt(i.length,o),u);case"co":return Pt(s.ordinalNumber(o,{unit:"day"}),u);case"ccc":return s.day(o,{width:"abbreviated",context:"standalone"})||s.day(o,{width:"short",context:"standalone"})||s.day(o,{width:"narrow",context:"standalone"});case"ccccc":return s.day(o,{width:"narrow",context:"standalone"});case"cccccc":return s.day(o,{width:"short",context:"standalone"})||s.day(o,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(o,{width:"wide",context:"standalone"})||s.day(o,{width:"abbreviated",context:"standalone"})||s.day(o,{width:"short",context:"standalone"})||s.day(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=6}},{key:"set",value:function(o,i,s,l){return o=mc(o,s,l),o.setUTCHours(0,0,0,0),o}}]),n}(rt);function pC(e,t){ke(2,arguments);var n=Oe(t);n%7===0&&(n=n-7);var r=1,o=De(e),i=o.getUTCDay(),s=n%7,l=(s+7)%7,u=(l<r?7:0)+n-i;return o.setUTCDate(o.getUTCDate()+u),o}var hC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",90),ve(ge(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s){var l=function(d){return d===0?7:d};switch(i){case"i":case"ii":return Tt(i.length,o);case"io":return s.ordinalNumber(o,{unit:"day"});case"iii":return Pt(s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"}),l);case"iiiii":return Pt(s.day(o,{width:"narrow",context:"formatting"}),l);case"iiiiii":return Pt(s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"}),l);case"iiii":default:return Pt(s.day(o,{width:"wide",context:"formatting"})||s.day(o,{width:"abbreviated",context:"formatting"})||s.day(o,{width:"short",context:"formatting"})||s.day(o,{width:"narrow",context:"formatting"}),l)}}},{key:"validate",value:function(o,i){return i>=1&&i<=7}},{key:"set",value:function(o,i,s){return o=pC(o,s),o.setUTCHours(0,0,0,0),o}}]),n}(rt),mC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",80),ve(ge(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s){switch(i){case"a":case"aa":case"aaa":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})||s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,i,s){return o.setUTCHours(hc(s),0,0,0),o}}]),n}(rt),vC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",80),ve(ge(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s){switch(i){case"b":case"bb":case"bbb":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})||s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,i,s){return o.setUTCHours(hc(s),0,0,0),o}}]),n}(rt),gC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",80),ve(ge(r),"incompatibleTokens",["a","b","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s){switch(i){case"B":case"BB":case"BBB":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})||s.dayPeriod(o,{width:"abbreviated",context:"formatting"})||s.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,i,s){return o.setUTCHours(hc(s),0,0,0),o}}]),n}(rt),yC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",70),ve(ge(r),"incompatibleTokens",["H","K","k","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s){switch(i){case"h":return bt(It.hour12h,o);case"ho":return s.ordinalNumber(o,{unit:"hour"});default:return Tt(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=12}},{key:"set",value:function(o,i,s){var l=o.getUTCHours()>=12;return l&&s<12?o.setUTCHours(s+12,0,0,0):!l&&s===12?o.setUTCHours(0,0,0,0):o.setUTCHours(s,0,0,0),o}}]),n}(rt),bC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",70),ve(ge(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s){switch(i){case"H":return bt(It.hour23h,o);case"Ho":return s.ordinalNumber(o,{unit:"hour"});default:return Tt(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=23}},{key:"set",value:function(o,i,s){return o.setUTCHours(s,0,0,0),o}}]),n}(rt),_C=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",70),ve(ge(r),"incompatibleTokens",["h","H","k","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s){switch(i){case"K":return bt(It.hour11h,o);case"Ko":return s.ordinalNumber(o,{unit:"hour"});default:return Tt(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=11}},{key:"set",value:function(o,i,s){var l=o.getUTCHours()>=12;return l&&s<12?o.setUTCHours(s+12,0,0,0):o.setUTCHours(s,0,0,0),o}}]),n}(rt),wC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",70),ve(ge(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s){switch(i){case"k":return bt(It.hour24h,o);case"ko":return s.ordinalNumber(o,{unit:"hour"});default:return Tt(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=24}},{key:"set",value:function(o,i,s){var l=s<=24?s%24:s;return o.setUTCHours(l,0,0,0),o}}]),n}(rt),kC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",60),ve(ge(r),"incompatibleTokens",["t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s){switch(i){case"m":return bt(It.minute,o);case"mo":return s.ordinalNumber(o,{unit:"minute"});default:return Tt(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=59}},{key:"set",value:function(o,i,s){return o.setUTCMinutes(s,0,0),o}}]),n}(rt),SC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",50),ve(ge(r),"incompatibleTokens",["t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i,s){switch(i){case"s":return bt(It.second,o);case"so":return s.ordinalNumber(o,{unit:"second"});default:return Tt(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=59}},{key:"set",value:function(o,i,s){return o.setUTCSeconds(s,0),o}}]),n}(rt),CC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",30),ve(ge(r),"incompatibleTokens",["t","T"]),r}return Xe(n,[{key:"parse",value:function(o,i){var s=function(u){return Math.floor(u*Math.pow(10,-i.length+3))};return Pt(Tt(i.length,o),s)}},{key:"set",value:function(o,i,s){return o.setUTCMilliseconds(s),o}}]),n}(rt),TC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",10),ve(ge(r),"incompatibleTokens",["t","T","x"]),r}return Xe(n,[{key:"parse",value:function(o,i){switch(i){case"X":return Jn(Xn.basicOptionalMinutes,o);case"XX":return Jn(Xn.basic,o);case"XXXX":return Jn(Xn.basicOptionalSeconds,o);case"XXXXX":return Jn(Xn.extendedOptionalSeconds,o);case"XXX":default:return Jn(Xn.extended,o)}}},{key:"set",value:function(o,i,s){return i.timestampIsSet?o:new Date(o.getTime()-s)}}]),n}(rt),EC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",10),ve(ge(r),"incompatibleTokens",["t","T","X"]),r}return Xe(n,[{key:"parse",value:function(o,i){switch(i){case"x":return Jn(Xn.basicOptionalMinutes,o);case"xx":return Jn(Xn.basic,o);case"xxxx":return Jn(Xn.basicOptionalSeconds,o);case"xxxxx":return Jn(Xn.extendedOptionalSeconds,o);case"xxx":default:return Jn(Xn.extended,o)}}},{key:"set",value:function(o,i,s){return i.timestampIsSet?o:new Date(o.getTime()-s)}}]),n}(rt),xC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",40),ve(ge(r),"incompatibleTokens","*"),r}return Xe(n,[{key:"parse",value:function(o){return vm(o)}},{key:"set",value:function(o,i,s){return[new Date(s*1e3),{timestampIsSet:!0}]}}]),n}(rt),IC=function(e){et(n,e);var t=tt(n);function n(){var r;Ke(this,n);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i)),ve(ge(r),"priority",20),ve(ge(r),"incompatibleTokens","*"),r}return Xe(n,[{key:"parse",value:function(o){return vm(o)}},{key:"set",value:function(o,i,s){return[new Date(s),{timestampIsSet:!0}]}}]),n}(rt),PC={G:new YS,y:new GS,Y:new KS,R:new XS,u:new JS,Q:new ZS,q:new QS,M:new eC,L:new tC,w:new rC,I:new oC,d:new lC,D:new uC,E:new cC,e:new dC,c:new fC,i:new hC,a:new mC,b:new vC,B:new gC,h:new yC,H:new bC,K:new _C,k:new wC,m:new kC,s:new SC,S:new CC,X:new TC,x:new EC,t:new xC,T:new IC},OC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,NC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,DC=/^'([^]*?)'?$/,MC=/''/g,BC=/\S/,AC=/[a-zA-Z]/;function cu(e,t,n,r){var o,i,s,l,u,d,c,p,h,m,y,w,k,_,x,S,b,N;ke(3,arguments);var T=String(e),I=String(t),$=dr(),W=(o=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:$.locale)!==null&&o!==void 0?o:pm;if(!W.match)throw new RangeError("locale must contain match property");var j=Oe((s=(l=(u=(d=r==null?void 0:r.firstWeekContainsDate)!==null&&d!==void 0?d:r==null||(c=r.locale)===null||c===void 0||(p=c.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&u!==void 0?u:$.firstWeekContainsDate)!==null&&l!==void 0?l:(h=$.locale)===null||h===void 0||(m=h.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(j>=1&&j<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=Oe((y=(w=(k=(_=r==null?void 0:r.weekStartsOn)!==null&&_!==void 0?_:r==null||(x=r.locale)===null||x===void 0||(S=x.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&k!==void 0?k:$.weekStartsOn)!==null&&w!==void 0?w:(b=$.locale)===null||b===void 0||(N=b.options)===null||N===void 0?void 0:N.weekStartsOn)!==null&&y!==void 0?y:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(I==="")return T===""?De(n):new Date(NaN);var D={firstWeekContainsDate:j,weekStartsOn:M,locale:W},R=[new qS],K=I.match(NC).map(function(re){var ie=re[0];if(ie in lu){var Te=lu[ie];return Te(re,W.formatLong)}return re}).join("").match(OC),G=[],Y=cf(K),z;try{var H=function(){var ie=z.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&fm(ie)&&us(ie,I,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&dm(ie)&&us(ie,I,e);var Te=ie[0],Pe=PC[Te];if(Pe){var fe=Pe.incompatibleTokens;if(Array.isArray(fe)){var Ie=G.find(function(Be){return fe.includes(Be.token)||Be.token===Te});if(Ie)throw new RangeError("The format string mustn't contain `".concat(Ie.fullToken,"` and `").concat(ie,"` at the same time"))}else if(Pe.incompatibleTokens==="*"&&G.length>0)throw new RangeError("The format string mustn't contain `".concat(ie,"` and any other token at the same time"));G.push({token:Te,fullToken:ie});var Ve=Pe.run(T,ie,W.match,D);if(!Ve)return{v:new Date(NaN)};R.push(Ve.setter),T=Ve.rest}else{if(Te.match(AC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Te+"`");if(ie==="''"?ie="'":Te==="'"&&(ie=RC(ie)),T.indexOf(ie)===0)T=T.slice(ie.length);else return{v:new Date(NaN)}}};for(Y.s();!(z=Y.n()).done;){var C=H();if(Pn(C)==="object")return C.v}}catch(re){Y.e(re)}finally{Y.f()}if(T.length>0&&BC.test(T))return new Date(NaN);var U=R.map(function(re){return re.priority}).sort(function(re,ie){return ie-re}).filter(function(re,ie,Te){return Te.indexOf(re)===ie}).map(function(re){return R.filter(function(ie){return ie.priority===re}).sort(function(ie,Te){return Te.subPriority-ie.subPriority})}).map(function(re){return re[0]}),Q=De(n);if(isNaN(Q.getTime()))return new Date(NaN);var X=im(Q,ls(Q)),V={},E=cf(U),O;try{for(E.s();!(O=E.n()).done;){var A=O.value;if(!A.validate(X,D))return new Date(NaN);var Z=A.set(X,V,D);Array.isArray(Z)?(X=Z[0],NS(V,Z[1])):X=Z}}catch(re){E.e(re)}finally{E.f()}return X}function RC(e){return e.match(DC)[1].replace(MC,"'")}function $C(e,t){ke(2,arguments);var n=Oe(t);return _r(e,-n)}function LC(e,t){var n;ke(1,arguments);var r=Oe((n=t==null?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=UC(e),i;if(o.date){var s=zC(o.date,r);i=jC(s.restDateString,s.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var l=i.getTime(),u=0,d;if(o.time&&(u=WC(o.time),isNaN(u)))return new Date(NaN);if(o.timezone){if(d=qC(o.timezone),isNaN(d))return new Date(NaN)}else{var c=new Date(l+u),p=new Date(0);return p.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),p.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),p}return new Date(l+u+d)}var Mi={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},VC=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,FC=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,HC=/^([+-])(\d{2})(?::?(\d{2}))?$/;function UC(e){var t={},n=e.split(Mi.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Mi.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Mi.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var o=Mi.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function zC(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function jC(e,t){if(t===null)return new Date(NaN);var n=e.match(VC);if(!n)return new Date(NaN);var r=!!n[4],o=No(n[1]),i=No(n[2])-1,s=No(n[3]),l=No(n[4]),u=No(n[5])-1;if(r)return JC(t,l,u)?YC(t,l,u):new Date(NaN);var d=new Date(0);return!KC(t,i,s)||!XC(t,o)?new Date(NaN):(d.setUTCFullYear(t,i,Math.max(o,s)),d)}function No(e){return e?parseInt(e):1}function WC(e){var t=e.match(FC);if(!t)return NaN;var n=xl(t[1]),r=xl(t[2]),o=xl(t[3]);return ZC(n,r,o)?n*fc+r*dc+o*1e3:NaN}function xl(e){return e&&parseFloat(e.replace(",","."))||0}function qC(e){if(e==="Z")return 0;var t=e.match(HC);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return QC(r,o)?n*(r*fc+o*dc):NaN}function YC(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var GC=[31,null,31,30,31,30,31,31,30,31,30,31];function bm(e){return e%400===0||e%4===0&&e%100!==0}function KC(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(GC[t]||(bm(e)?29:28))}function XC(e,t){return t>=1&&t<=(bm(e)?366:365)}function JC(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function ZC(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function QC(e,t){return t>=0&&t<=59}function La(e,t){ke(2,arguments);var n=De(e),r=Oe(t),o=n.getFullYear(),i=n.getDate(),s=new Date(0);s.setFullYear(o,r,15),s.setHours(0,0,0,0);var l=MS(s);return n.setMonth(r,Math.min(i,l)),n}function Rt(e,t){if(ke(2,arguments),Pn(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=De(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=La(n,t.month)),t.date!=null&&n.setDate(Oe(t.date)),t.hours!=null&&n.setHours(Oe(t.hours)),t.minutes!=null&&n.setMinutes(Oe(t.minutes)),t.seconds!=null&&n.setSeconds(Oe(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(Oe(t.milliseconds)),n)}function _m(e,t){ke(2,arguments);var n=De(e),r=Oe(t);return n.setHours(r),n}function vc(e,t){ke(2,arguments);var n=De(e),r=Oe(t);return n.setMilliseconds(r),n}function wm(e,t){ke(2,arguments);var n=De(e),r=Oe(t);return n.setMinutes(r),n}function km(e,t){ke(2,arguments);var n=De(e),r=Oe(t);return n.setSeconds(r),n}function wr(e,t){ke(2,arguments);var n=De(e),r=Oe(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function Wa(e,t){ke(2,arguments);var n=Oe(t);return er(e,-n)}function eT(e,t){if(ke(2,arguments),!t||Pn(t)!=="object")return new Date(NaN);var n=t.years?Oe(t.years):0,r=t.months?Oe(t.months):0,o=t.weeks?Oe(t.weeks):0,i=t.days?Oe(t.days):0,s=t.hours?Oe(t.hours):0,l=t.minutes?Oe(t.minutes):0,u=t.seconds?Oe(t.seconds):0,d=Wa(e,r+n*12),c=$C(d,i+o*7),p=l+s*60,h=u+p*60,m=h*1e3,y=new Date(c.getTime()-m);return y}function tT(e,t){ke(2,arguments);var n=Oe(t);return am(e,-n)}var nT={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"}},rT=function(t,n,r){var o,i=nT[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"over "+o:o+" geleden":o};const aT=rT;var oT={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},iT={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},sT={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},lT={date:ja({formats:oT,defaultWidth:"full"}),time:ja({formats:iT,defaultWidth:"full"}),dateTime:ja({formats:sT,defaultWidth:"full"})};const uT=lT;var cT={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},dT=function(t,n,r,o){return cT[t]};const fT=dT;var pT={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},hT={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},mT={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"]},vT={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"]},gT={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"}},yT=function(t,n){var r=Number(t);return r+"e"},bT={ordinalNumber:yT,era:Gn({values:pT,defaultWidth:"wide"}),quarter:Gn({values:hT,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Gn({values:mT,defaultWidth:"wide"}),day:Gn({values:vT,defaultWidth:"wide"}),dayPeriod:Gn({values:gT,defaultWidth:"wide"})};const _T=bT;var wT=/^(\d+)e?/i,kT=/\d+/i,ST={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},CT={any:[/^v/,/^n/]},TT={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},ET={any:[/1/i,/2/i,/3/i,/4/i]},xT={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},IT={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]},PT={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},OT={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]},NT={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},DT={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}},MT={ordinalNumber:nm({matchPattern:wT,parsePattern:kT,valueCallback:function(t){return parseInt(t,10)}}),era:Kn({matchPatterns:ST,defaultMatchWidth:"wide",parsePatterns:CT,defaultParseWidth:"any"}),quarter:Kn({matchPatterns:TT,defaultMatchWidth:"wide",parsePatterns:ET,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Kn({matchPatterns:xT,defaultMatchWidth:"wide",parsePatterns:IT,defaultParseWidth:"any"}),day:Kn({matchPatterns:PT,defaultMatchWidth:"wide",parsePatterns:OT,defaultParseWidth:"any"}),dayPeriod:Kn({matchPatterns:NT,defaultMatchWidth:"any",parsePatterns:DT,defaultParseWidth:"any"})};const BT=MT;var AT={code:"nl",formatDistance:aT,formatLong:uT,formatRelative:fT,localize:_T,match:BT,options:{weekStartsOn:1,firstWeekContainsDate:4}};const RT=AT,$T=["date","datetime","time","year","month","week"],LT={time:o1,week:Oo,date:Oo,year:Oo,month:Oo,datetime:Oo};function ri(e){return $T.includes(e)}function VT(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 FT(e,t){return{locale:"nl",uid:t,autoApply:!0,clearable:!1,formatLocale:RT,format:VT(e),timePicker:e==="time",weekPicker:e==="week",yearPicker:e==="year",monthPicker:e==="month",enableTimePicker:["time","datetime"].includes(e),teleport:!0}}const HT=["location"];function fs(e){return HT.includes(e)}const UT=["radio","checkbox"];function Hs(e){return UT.includes(e)}const zT=`peer text-zinc-700 appearance-none h-5 w-5 border
|
|
69
56
|
border-zinc-300 cursor-pointer checked:!border-[5px] checked:border-primary disabled:border-10
|
|
70
57
|
disabled:!border-zinc-100 disabled:cursor-not-allowed focus:border-2 focus:border-primary
|
|
71
|
-
focus-visible:outline-none`,HS="rounded bg-white checked:bg-primary";function US(e,t){return{[FS]:!0,[HS]:e==="checkbox","rounded-full":e==="radio","!border-error":t}}function Ui(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),a.createElementVNode("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),a.createElementVNode("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),a.createElementVNode("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}function zS(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),a.createElementVNode("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}function ad(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function od(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}function Zp(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),a.createElementVNode("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}function eh(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function th(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}const id=(e,t,n,r,o)=>{const i=hl(e,t.slice(0,e.length),new Date);return eo(i)&&Rp(i)?r||o?i:Ot(i,{hours:+n.hours,minutes:+(n==null?void 0:n.minutes),seconds:+(n==null?void 0:n.seconds),milliseconds:0}):null},jS=(e,t,n,r,o)=>{const i=Array.isArray(n)?n[0]:n;if(typeof t=="string")return id(e,t,i,r,o);if(Array.isArray(t)){let s=null;for(const l of t)if(s=id(e,l,i,r,o),s)break;return s}return typeof t=="function"?t(e):null},ae=e=>e?new Date(e):new Date,WS=(e,t,n)=>{if(t){const o=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),s=e.getHours().toString().padStart(2,"0"),l=e.getMinutes().toString().padStart(2,"0"),u=n?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${o}-${i}T${s}:${l}:${u}.000Z`}const r=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(r).toISOString()},yn=e=>{let t=ae(JSON.parse(JSON.stringify(e)));return t=Xp(t,0),t=Jp(t,0),t=Qp(t,0),t=yu(t,0),t},mn=(e,t,n,r)=>{let o=e?ae(e):ae();return(t||t===0)&&(o=Xp(o,+t)),(n||n===0)&&(o=Jp(o,+n)),(r||r===0)&&(o=Qp(o,+r)),yu(o,0)},qt=(e,t)=>!e||!t?!1:vo(yn(e),yn(t)),ot=(e,t)=>!e||!t?!1:Vr(yn(e),yn(t)),nn=(e,t)=>!e||!t?!1:mo(yn(e),yn(t)),nh=(e,t,n)=>e&&e[0]&&e[1]?nn(n,e[0])&&qt(n,e[1]):e&&e[0]&&t?nn(n,e[0])&&qt(n,t)||qt(n,e[0])&&nn(n,t):!1,Ya=e=>{const t=Ot(new Date(e),{date:1});return yn(t)},Rs=(e,t,n)=>t&&(n||n===0)?Object.fromEntries(["hours","minutes","seconds"].map(r=>r===t?[r,n]:[r,isNaN(+e[r])?void 0:+e[r]])):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},zo=e=>({hours:ir(e),minutes:sr(e),seconds:Ta(e)}),Ga=a.reactive({menuFocused:!1,shiftKeyInMenu:!1}),rh=()=>{const e=n=>{Ga.menuFocused=n},t=n=>{Ga.shiftKeyInMenu!==n&&(Ga.shiftKeyInMenu=n)};return{control:a.computed(()=>({shiftKeyInMenu:Ga.shiftKeyInMenu,menuFocused:Ga.menuFocused})),setMenuFocused:e,setShiftKey:t}};function bu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ah={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ah);var qS=ah.exports,ml={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var o=Number(r);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}e.exports=t.default})(ml,ml.exports);var YS=ml.exports;const GS=bu(YS);var vl={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var o=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return o.setUTCFullYear(r.getFullYear()),r.getTime()-o.getTime()}e.exports=t.default})(vl,vl.exports);var KS=vl.exports;const sd=bu(KS);function XS(e,t){var n=eC(t);return n.formatToParts?QS(n,e):ZS(n,e)}var JS={year:0,month:1,day:2,hour:3,minute:4,second:5};function QS(e,t){try{for(var n=e.formatToParts(t),r=[],o=0;o<n.length;o++){var i=JS[n[o].type];i>=0&&(r[i]=parseInt(n[o].value,10))}return r}catch(s){if(s instanceof RangeError)return[NaN];throw s}}function ZS(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var As={};function eC(e){if(!As[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="06/25/2014 00:00:00";As[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return As[e]}function _u(e,t,n,r,o,i,s){var l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,o,i,s),l}var ld=36e5,tC=6e4,$s={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function wu(e,t,n){var r,o;if(!e||(r=$s.timezoneZ.exec(e),r))return 0;var i;if(r=$s.timezoneHH.exec(e),r)return i=parseInt(r[1],10),ud(i)?-(i*ld):NaN;if(r=$s.timezoneHHMM.exec(e),r){i=parseInt(r[1],10);var s=parseInt(r[2],10);return ud(i,s)?(o=Math.abs(i)*ld+s*tC,i>0?-o:o):NaN}if(aC(e)){t=new Date(t||Date.now());var l=n?t:nC(t),u=gl(l,e),c=n?u:rC(t,u,e);return-c}return NaN}function nC(e){return _u(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function gl(e,t){var n=XS(e,t),r=_u(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),i=o%1e3;return o-=i>=0?i:1e3+i,r-o}function rC(e,t,n){var r=e.getTime(),o=r-t,i=gl(new Date(o),n);if(t===i)return t;o-=i-t;var s=gl(new Date(o),n);return i===s?i:Math.max(i,s)}function ud(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var cd={};function aC(e){if(cd[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),cd[e]=!0,!0}catch{return!1}}var oC=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const oh=oC;var Ls=36e5,dd=6e4,iC=2,en={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:oh};function yl(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},r=n.additionalDigits==null?iC:GS(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=sC(e),i=lC(o.date,r),s=i.year,l=i.restDateString,u=uC(l,s);if(isNaN(u))return new Date(NaN);if(u){var c=u.getTime(),f=0,p;if(o.time&&(f=cC(o.time),isNaN(f)))return new Date(NaN);if(o.timeZone||n.timeZone){if(p=wu(o.timeZone||n.timeZone,new Date(c+f)),isNaN(p))return new Date(NaN)}else p=sd(new Date(c+f)),p=sd(new Date(c+f+p));return new Date(c+f+p)}else return new Date(NaN)}function sC(e){var t={},n=en.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=en.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){var o=en.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function lC(e,t){var n=en.YYY[t],r=en.YYYYY[t],o;if(o=en.YYYY.exec(e)||r.exec(e),o){var i=o[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(o=en.YY.exec(e)||n.exec(e),o){var s=o[1];return{year:parseInt(s,10)*100,restDateString:e.slice(s.length)}}return{year:null}}function uC(e,t){if(t===null)return null;var n,r,o,i;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=en.MM.exec(e),n)return r=new Date(0),o=parseInt(n[1],10)-1,pd(t,o)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=en.DDD.exec(e),n){r=new Date(0);var s=parseInt(n[1],10);return pC(t,s)?(r.setUTCFullYear(t,0,s),r):new Date(NaN)}if(n=en.MMDD.exec(e),n){r=new Date(0),o=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return pd(t,o,l)?(r.setUTCFullYear(t,o,l),r):new Date(NaN)}if(n=en.Www.exec(e),n)return i=parseInt(n[1],10)-1,hd(t,i)?fd(t,i):new Date(NaN);if(n=en.WwwD.exec(e),n){i=parseInt(n[1],10)-1;var u=parseInt(n[2],10)-1;return hd(t,i,u)?fd(t,i,u):new Date(NaN)}return null}function cC(e){var t,n,r;if(t=en.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),Vs(n)?n%24*Ls:NaN;if(t=en.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),Vs(n,r)?n%24*Ls+r*dd:NaN;if(t=en.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return Vs(n,r,o)?n%24*Ls+r*dd+o*1e3:NaN}return null}function fd(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var dC=[31,28,31,30,31,30,31,31,30,31,30,31],fC=[31,29,31,30,31,30,31,31,30,31,30,31];function ih(e){return e%400===0||e%4===0&&e%100!==0}function pd(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=ih(e);if(r&&n>fC[t]||!r&&n>dC[t])return!1}return!0}function pC(e,t){if(t<1)return!1;var n=ih(e);return!(n&&t>366||!n&&t>365)}function hd(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function Vs(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}var bl={exports:{}},_l={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i]);return r}e.exports=t.default})(_l,_l.exports);var hC=_l.exports;(function(e,t){var n=qS.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(hC);function o(i){return(0,r.default)({},i)}e.exports=t.default})(bl,bl.exports);var mC=bl.exports;const vC=bu(mC);function gC(e,t,n){var r=yl(e,n),o=wu(t,r,!0),i=new Date(r.getTime()-o),s=new Date(0);return s.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),s.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),s}function yC(e,t,n){if(typeof e=="string"&&!e.match(oh)){var r=vC(n);return r.timeZone=t,yl(e,r)}var o=yl(e,n),i=_u(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()).getTime(),s=wu(t,new Date(i));return new Date(i+s)}const bC=(e,t=3)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push([e[r],e[r+1],e[r+2]]);return n};function md(e){return t=>new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${t}T00:00:00+00:00`)).slice(0,2)}function _C(e){return t=>jr(new Date(`2017-01-0${t}T00:00:00+00:00`),"EEEEEE",{locale:e})}const wC=(e,t,n)=>{const r=[1,2,3,4,5,6,7];let o;if(e!==null)try{o=r.map(_C(e))}catch{o=r.map(md(t))}else o=r.map(md(t));const i=o.slice(0,n),s=o.slice(n+1,o.length);return[o[n]].concat(...s).concat(...i)},kC=(e,t)=>{const n=[];for(let r=+e[0];r<=+e[1];r++)n.push({value:+r,text:`${r}`});return t?n.reverse():n},SC=(e,t,n)=>{const r=[1,2,3,4,5,6,7,8,9,10,11,12].map(i=>{const s=i<10?`0${i}`:i;return new Date(`2017-${s}-01T00:00:00+00:00`)});if(e!==null)try{const i=n==="long"?"MMMM":"MMM";return r.map((s,l)=>{const u=jr(s,i,{locale:e});return{text:u.charAt(0).toUpperCase()+u.substring(1),value:l}})}catch{}const o=new Intl.DateTimeFormat(t,{month:n,timeZone:"UTC"});return r.map((i,s)=>{const l=o.format(i);return{text:l.charAt(0).toUpperCase()+l.substring(1),value:s}})},CC=e=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][e],wt=e=>{const t=a.unref(e);return t!=null&&t.$el?t==null?void 0:t.$el:t},TC=e=>Object.assign({type:"dot"},e),sh=e=>Array.isArray(e)?!!e[0]&&!!e[1]:!1,bi={prop:e=>`"${e}" prop must be enabled!`,dateArr:e=>`You need to use array as "model-value" binding in order to support "${e}"`},Wt=e=>e,vd=e=>e===0?e:!e||isNaN(+e)?null:+e,EC=e=>e===0?!0:!!e,gd=e=>e===null,xC=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},yd=e=>Object.assign({menuAppear:"",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down"},e),PC=e=>Object.assign({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",calendarWrap:"Calendar wrapper",calendarDays:"Calendar days",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:t=>`Increment ${t}`,decrementValue:t=>`Decrement ${t}`,openTpOverlay:t=>`Open ${t} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",day:()=>""},e),IC=e=>e===null?0:typeof e=="boolean"?e?2:0:+e>=2?+e:2,DC=(e,t,n)=>e||(typeof n=="string"?n:t),NC=e=>typeof e=="boolean"?e?yd({}):!1:yd(e),OC=()=>({enterSubmit:!0,tabSubmit:!0,openMenu:!0,rangeSeparator:" - "}),BC=e=>Object.assign({months:[],years:[],times:{hours:[],minutes:[],seconds:[]}},e),MC=e=>Object.assign({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0},e),fn=e=>{const t=()=>{if(e.partialRange)return null;throw new Error(bi.prop("partial-range"))},n=a.computed(()=>({ariaLabels:PC(e.ariaLabels),textInputOptions:Object.assign(OC(),e.textInputOptions),multiCalendars:IC(e.multiCalendars),previewFormat:DC(e.previewFormat,e.format,i()),filters:BC(e.filters),transitions:NC(e.transitions),startTime:m(),actionRow:MC(e.actionRow)})),r=V=>{if(e.range)return V();throw new Error(bi.prop("range"))},o=()=>{const V=e.enableSeconds?":ss":"";return e.is24?`HH:mm${V}`:`hh:mm${V} aa`},i=()=>e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?o():e.weekPicker?"MM/dd/yyyy":e.yearPicker?"yyyy":e.enableTimePicker?`MM/dd/yyyy, ${o()}`:"MM/dd/yyyy",s=(V,E)=>{if(typeof e.format=="function")return e.format(V);const P=E||i(),R=e.formatLocale?{locale:e.formatLocale}:void 0;return Array.isArray(V)?`${jr(V[0],P,R)}${e.modelAuto&&!V[1]?"":n.value.textInputOptions.rangeSeparator||"-"}${V[1]?jr(V[1],P,R):""}`:jr(V,P,R)},l=V=>e.timezone?gC(V,e.timezone):V,u=V=>e.timezone?yC(V,e.timezone):V,c=a.computed(()=>V=>{var E;return(E=e.hideNavigation)==null?void 0:E.includes(V)}),f=V=>{var E,P,R,G;return Array.isArray(e.allowedDates)&&!((E=e.allowedDates)!=null&&E.length)?!0:(P=e.arrMapValues)!=null&&P.allowedDates?!T(V,e.arrMapValues.allowedDates):(R=e.allowedDates)!=null&&R.length?!((G=e.allowedDates)!=null&&G.some(ie=>ot(l(ae(ie)),l(V)))):!1},p=V=>{var E;const P=e.maxDate?nn(l(V),l(ae(e.maxDate))):!1,R=e.minDate?qt(l(V),l(ae(e.minDate))):!1,G=T(V,(E=e.arrMapValues)!=null&&E.disabledDates?e.arrMapValues.disabledDates:e.disabledDates),ie=n.value.filters.months.map(Be=>+Be).includes(ct(V)),oe=e.disabledWeekDays.length?e.disabledWeekDays.some(Be=>+Be===I1(V)):!1,Ie=f(V),Ee=ht(V),fe=Ee<+e.yearRange[0]||Ee>+e.yearRange[1];return!(P||R||G||ie||fe||oe||Ie)},h=V=>{const E={hours:ir(ae()),minutes:sr(ae()),seconds:e.enableSeconds?Ta(ae()):0};return Object.assign(E,V)},m=()=>e.range?e.startTime&&Array.isArray(e.startTime)?[h(e.startTime[0]),h(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?h(e.startTime):null,y=V=>!p(V),k=V=>Array.isArray(V)?eo(V[0])&&(V[1]?eo(V[1]):!0):V?eo(V):!1,b=V=>V instanceof Date?V:Rk(V),w=V=>{const E=qr(l(V),{weekStartsOn:+e.weekStart}),P=xw(l(V),{weekStartsOn:+e.weekStart});return[E,P]},T=(V,E)=>V?E instanceof Map?!!E.get(H(V)):Array.isArray(E)?E.some(P=>ot(l(ae(P)),l(V))):E(ae(JSON.parse(JSON.stringify(V)))):!0,O=(V,E,P)=>{let R=V?ae(V):ae();return(E||E===0)&&(R=ua(R,E)),P&&(R=ur(R,P)),R},_=V=>Ot(ae(),zo(V)),B=V=>Ot(ae(),{hours:+V.hours||0,minutes:+V.minutes||0,seconds:+V.seconds||0}),C=(V,E,P,R)=>{if(!V)return!0;if(R){const G=P==="max"?vo(V,E):mo(V,E),ie={seconds:0,milliseconds:0};return G||Vr(Ot(V,ie),Ot(E,ie))}return P==="max"?V.getTime()<=E.getTime():V.getTime()>=E.getTime()},I=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,F=V=>Array.isArray(V)?[V[0]?_(V[0]):null,V[1]?_(V[1]):null]:_(V),q=V=>{const E=e.maxTime?B(e.maxTime):ae(e.maxDate);return Array.isArray(V)?C(V[0],E,"max",!!e.maxDate)&&C(V[1],E,"max",!!e.maxDate):C(V,E,"max",!!e.maxDate)},W=(V,E)=>{const P=e.minTime?B(e.minTime):ae(e.minDate);return Array.isArray(V)?C(V[0],P,"min",!!e.minDate)&&C(V[1],P,"min",!!e.minDate)&&E:C(V,P,"min",!!e.minDate)&&E},M=V=>{let E=!0;if(!V||I())return!0;const P=!e.minDate&&!e.maxDate?F(V):V;if((e.maxTime||e.maxDate)&&(E=q(Wt(P))),(e.minTime||e.minDate)&&(E=W(Wt(P),E)),e.disabledTimes){const R=Array.isArray(V)?[zo(V[0]),V[1]?zo(V[1]):void 0]:zo(V);E=!e.disabledTimes(R)}return E},D=(V,E)=>{const P=ae(JSON.parse(JSON.stringify(V))),R=[];for(let G=0;G<7;G++){const ie=lr(P,G),oe=ct(ie)!==E;R.push({text:e.hideOffsetDates&&oe?"":ie.getDate(),value:ie,current:!oe,classData:{}})}return R},$=(V,E)=>{switch(e.sixWeeks===!0?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[V==0,!0];case"fair":return[V==0||E>V,!0];case"append":return[!1,!1];default:return[!1,!1]}},Y=(V,E)=>{const P=[],R=ae(l(new Date(E,V))),G=ae(l(new Date(E,V+1,0))),ie=e.weekStart,oe=qr(R,{weekStartsOn:ie}),Ie=Ee=>{const fe=D(Ee,V);if(P.push({days:fe}),!P[P.length-1].days.some(Be=>ot(yn(Be.value),yn(G)))){const Be=lr(Ee,7);Ie(Be)}};if(Ie(oe),e.sixWeeks&&P.length<6){const Ee=6-P.length,fe=(R.getDay()+7-ie)%7,Be=6-(G.getDay()+7-ie)%7,[$e,ze]=$(fe,Be);for(let Ge=1;Ge<=Ee;Ge++)if(ze?!!(Ge%2)==$e:$e){const Ke=P[0].days[0],ve=D(lr(Ke.value,-7),ct(R));P.unshift({days:ve})}else{const Ke=P[P.length-1],ve=Ke.days[Ke.days.length-1],Qe=D(lr(ve.value,1),ct(R));P.push({days:Qe})}}return P},X=(V,E,P)=>[Ot(ae(V),{date:1}),Ot(ae(),{month:E,year:P,date:1})],K=(V,E)=>qt(...X(e.minDate,V,E))||ot(...X(e.minDate,V,E)),j=(V,E)=>nn(...X(e.maxDate,V,E))||ot(...X(e.maxDate,V,E)),U=(V,E,P)=>{let R=!1;return e.maxDate&&P&&j(V,E)&&(R=!0),e.minDate&&!P&&K(V,E)&&(R=!0),R},S=(V,E,P,R)=>{let G=!1;return R?e.minDate&&e.maxDate?G=U(V,E,P):(e.minDate&&K(V,E)||e.maxDate&&j(V,E))&&(G=!0):G=!0,G},H=V=>{const E=yn(l(ae(V))).toISOString(),[P]=E.split("T");return P},Z=V=>new Map(V.map(E=>[H(E),!0])),Q=V=>Array.isArray(V)&&V.length>0;return{checkPartialRangeValue:t,checkRangeEnabled:r,getZonedDate:l,getZonedToUtc:u,formatDate:s,getDefaultPattern:i,validateDate:p,getDefaultStartTime:m,isDisabled:y,isValidDate:k,sanitizeDate:b,getWeekFromDate:w,matchDate:T,setDateMonthOrYear:O,isValidTime:M,getCalendarDays:Y,validateMonthYearInRange:S,validateMaxDate:j,validateMinDate:K,assignDefaultTime:h,mapDatesArrToMap:V=>{Q(e.allowedDates)&&(V.allowedDates=Z(e.allowedDates)),Q(e.highlight)&&(V.highlightedDates=Z(e.highlight)),Q(e.disabledDates)&&(V.disabledDates=Z(e.disabledDates))},defaults:n,hideNavigationButtons:c}},pt=a.reactive({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),Fs=a.ref(null),jo=a.ref(!1),Hs=a.ref(!1),Us=a.ref(!1),zs=a.ref(!1),Kt=a.ref(0),Lt=a.ref(0),Er=()=>{const e=a.computed(()=>jo.value?[...pt.selectionGrid,pt.actionRow].filter(p=>p.length):Hs.value?[...pt.timePicker[0],...pt.timePicker[1],zs.value?[]:[Fs.value],pt.actionRow].filter(p=>p.length):Us.value?[...pt.monthPicker,pt.actionRow]:[pt.monthYear,...pt.calendar,pt.time,pt.actionRow].filter(p=>p.length)),t=p=>{Kt.value=p?Kt.value+1:Kt.value-1;let h=null;e.value[Lt.value]&&(h=e.value[Lt.value][Kt.value]),h||(Kt.value=p?Kt.value-1:Kt.value+1)},n=p=>{Lt.value===0&&!p||Lt.value===e.value.length&&p||(Lt.value=p?Lt.value+1:Lt.value-1,e.value[Lt.value]?e.value[Lt.value]&&!e.value[Lt.value][Kt.value]&&Kt.value!==0&&(Kt.value=e.value[Lt.value].length-1):Lt.value=p?Lt.value-1:Lt.value+1)},r=p=>{let h=null;e.value[Lt.value]&&(h=e.value[Lt.value][Kt.value]),h?h.focus({preventScroll:!jo.value}):Kt.value=p?Kt.value-1:Kt.value+1},o=()=>{t(!0),r(!0)},i=()=>{t(!1),r(!1)},s=()=>{n(!1),r(!0)},l=()=>{n(!0),r(!0)},u=(p,h)=>{pt[h]=p},c=(p,h)=>{pt[h]=p},f=()=>{Kt.value=0,Lt.value=0};return{buildMatrix:u,buildMultiLevelMatrix:c,setTimePickerBackRef:p=>{Fs.value=p},setSelectionGrid:p=>{jo.value=p,f(),p||(pt.selectionGrid=[])},setTimePicker:(p,h=!1)=>{Hs.value=p,zs.value=h,f(),p||(pt.timePicker[0]=[],pt.timePicker[1]=[])},setTimePickerElements:(p,h=0)=>{pt.timePicker[h]=p},arrowRight:o,arrowLeft:i,arrowUp:s,arrowDown:l,clearArrowNav:()=>{pt.monthYear=[],pt.calendar=[],pt.time=[],pt.actionRow=[],pt.selectionGrid=[],pt.timePicker[0]=[],pt.timePicker[1]=[],jo.value=!1,Hs.value=!1,zs.value=!1,Us.value=!1,f(),Fs.value=null},setMonthPicker:p=>{Us.value=p,f()},refSets:pt}},bd=e=>Array.isArray(e),Br=e=>Array.isArray(e),_d=e=>Array.isArray(e)&&e.length===2,RC=(e,t,n,r,o)=>{const{getDefaultStartTime:i,isDisabled:s,sanitizeDate:l,getWeekFromDate:u,setDateMonthOrYear:c,validateMonthYearInRange:f,defaults:p}=fn(e),h=a.computed({get:()=>e.internalModelValue,set:L=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",L)}}),m=a.ref([]);a.watch(h,(L,N)=>{e.range?I():Vr(L,N)||I()});const y=a.toRef(e,"multiCalendars");a.watch(y,()=>{se(0)});const k=a.ref([{month:ct(ae()),year:ht(ae())}]);a.watch(k,()=>{k.value.forEach((L,N)=>{t("update-month-year",{instance:N,month:L.month,year:L.year})})},{deep:!0});const b=a.reactive({hours:e.range?[ir(ae()),ir(ae())]:ir(ae()),minutes:e.range?[sr(ae()),sr(ae())]:sr(ae()),seconds:e.range?[0,0]:0}),w=a.computed(()=>L=>k.value[L]?k.value[L].month:0),T=a.computed(()=>L=>k.value[L]?k.value[L].year:0),O=a.computed(()=>{var L;return(L=e.flow)!=null&&L.length&&!e.partialFlow?o.value===e.flow.length:!0}),_=(L,N,ee)=>{var re,ge;k.value[L]||(k.value[L]={month:0,year:0}),k.value[L].month=gd(N)?(re=k.value[L])==null?void 0:re.month:N,k.value[L].year=gd(ee)?(ge=k.value[L])==null?void 0:ge.year:ee},B=(L,N)=>{b[L]=N},C=()=>{e.startDate&&(_(0,ct(ae(e.startDate)),ht(ae(e.startDate))),p.value.multiCalendars&&se(0))};a.onMounted(()=>{h.value||(C(),p.value.startTime&&j()),I(!0),e.focusStartDate&&e.startDate&&C()});const I=(L=!1)=>{if(h.value)return Array.isArray(h.value)?(m.value=h.value,D(L)):q(h.value,L);if(e.timePicker)return $();if(e.monthPicker&&!e.range)return Y();if(e.yearPicker&&!e.range)return X();if(p.value.multiCalendars&&L&&!e.startDate)return F(ae(),L)},F=(L,N=!1)=>{if((!p.value.multiCalendars||!e.multiStatic||N)&&_(0,ct(L),ht(L)),p.value.multiCalendars)for(let ee=1;ee<p.value.multiCalendars;ee++){const re=Ot(ae(),{month:w.value(ee-1),year:T.value(ee-1)}),ge=Bp(re,{months:1});k.value[ee]={month:ct(ge),year:ht(ge)}}},q=(L,N)=>{F(L),B("hours",ir(L)),B("minutes",sr(L)),B("seconds",Ta(L)),p.value.multiCalendars&&N&&S()},W=(L,N)=>{L[1]&&e.showLastInRange?F(L[1],N):F(L[0],N);const ee=(re,ge)=>[re(L[0]),L[1]?re(L[1]):b[ge][1]];B("hours",ee(ir,"hours")),B("minutes",ee(sr,"minutes")),B("seconds",ee(Ta,"seconds"))},M=(L,N)=>{if((e.range||e.weekPicker)&&!e.multiDates)return W(L,N);if(e.multiDates){const ee=L[L.length-1];return q(ee,N)}},D=L=>{const N=h.value;M(N,L),p.value.multiCalendars&&e.multiCalendarsSolo&&S()},$=()=>{if(j(),!e.range)h.value=mn(ae(),b.hours,b.minutes,K());else{const L=b.hours,N=b.minutes;h.value=[mn(ae(),L[0],N[0],K()),mn(ae(),L[1],N[1],K(!1))]}},Y=()=>{e.multiDates?h.value=[c(ae(),w.value(0),T.value(0))]:h.value=c(ae(),w.value(0),T.value(0))},X=()=>{h.value=ae()},K=(L=!0)=>e.enableSeconds?Array.isArray(b.seconds)?L?b.seconds[0]:b.seconds[1]:b.seconds:0,j=()=>{const L=i();if(L){const N=Array.isArray(L),ee=N?[+L[0].hours,+L[1].hours]:+L.hours,re=N?[+L[0].minutes,+L[1].minutes]:+L.minutes,ge=N?[+L[0].seconds,+L[1].seconds]:+L.seconds;B("hours",ee),B("minutes",re),e.enableSeconds&&B("seconds",ge)}},U=()=>Array.isArray(h.value)&&h.value.length?h.value[h.value.length-1]:null,S=()=>{if(Array.isArray(h.value)&&h.value.length===2){const L=ae(ae(h.value[1]?h.value[1]:zn(h.value[0],1))),[N,ee]=[ct(h.value[0]),ht(h.value[0])],[re,ge]=[ct(h.value[1]),ht(h.value[1])];(N!==re||N===re&&ee!==ge)&&e.multiCalendarsSolo&&_(1,ct(L),ht(L))}else h.value&&!Array.isArray(h.value)&&_(0,ct(h.value),ht(h.value))},H=L=>{const N=zn(L,1);return{month:ct(N),year:ht(N)}},Z=L=>{const N=ct(ae(L)),ee=ht(ae(L));if(_(0,N,ee),p.value.multiCalendars>0)for(let re=1;re<p.value.multiCalendars;re++){const ge=H(Ot(ae(L),{year:w.value(re-1),month:T.value(re-1)}));_(re,ge.month,ge.year)}},Q=L=>{if(h.value&&Array.isArray(h.value))if(h.value.some(N=>ot(L,N))){const N=h.value.filter(ee=>!ot(ee,L));h.value=N.length?N:null}else(e.multiDatesLimit&&+e.multiDatesLimit>h.value.length||!e.multiDatesLimit)&&h.value.push(L);else h.value=[L]},V=(L,N)=>{const ee=nn(L,N)?N:L,re=nn(N,L)?N:L;return Jc({start:ee,end:re})},E=(L,N=0)=>{if(Array.isArray(h.value)&&h.value[N]){const ee=Tw(L,h.value[N]),re=V(h.value[N],L),ge=re.length===1?0:re.filter(qe=>s(qe)).length,we=Math.abs(ee)-ge;if(e.minRange&&e.maxRange)return we>=+e.minRange&&we<=+e.maxRange;if(e.minRange)return we>=+e.minRange;if(e.maxRange)return we<=+e.maxRange}return!0},P=L=>Array.isArray(h.value)&&h.value.length===2?e.fixedStart&&(nn(L,h.value[0])||ot(L,h.value[0]))?[h.value[0],L]:e.fixedEnd&&(qt(L,h.value[1])||ot(L,h.value[1]))?[L,h.value[1]]:(t("invalid-fixed-range",L),h.value):[],R=()=>{e.autoApply&&O.value&&t("auto-apply",e.partialFlow)},G=()=>{e.autoApply&&t("select-date")},ie=L=>!Jc({start:L[0],end:L[1]}).some(N=>s(N)),oe=L=>(h.value=u(ae(L.value)),R()),Ie=L=>{const N=mn(ae(L.value),b.hours,b.minutes,K());e.multiDates?Q(N):h.value=N,n(),R()},Ee=()=>{m.value=h.value?h.value.slice():[],m.value.length===2&&!(e.fixedStart||e.fixedEnd)&&(m.value=[])},fe=(L,N)=>{const ee=[ae(L.value),lr(ae(L.value),+e.autoRange)];ie(ee)&&(N&&Z(L.value),m.value=ee)},Be=L=>{$e(L.value)||!E(L.value,e.fixedStart?0:1)||(m.value=P(ae(L.value)))},$e=L=>e.noDisabledRange?V(m.value[0],L).some(N=>s(N)):!1,ze=(L,N)=>{if(Ee(),e.autoRange)return fe(L,N);if(e.fixedStart||e.fixedEnd)return Be(L);m.value[0]?E(ae(L.value))&&!$e(L.value)&&(qt(ae(L.value),ae(m.value[0]))?(m.value.unshift(ae(L.value)),t("range-end",m.value[0])):(m.value[1]=ae(L.value),t("range-end",m.value[1]))):(m.value[0]=ae(L.value),t("range-start",m.value[0]))},Ge=L=>{m.value[L]=mn(m.value[L],b.hours[L],b.minutes[L],K(L!==1))},Ke=()=>{var L,N;m.value[0]&&m.value[1]&&+((L=m.value)==null?void 0:L[0])>+((N=m.value)==null?void 0:N[1])&&(m.value.reverse(),t("range-start",m.value[0]),t("range-end",m.value[1]))},ve=()=>{m.value.length&&(m.value[0]&&!m.value[1]?Ge(0):(Ge(0),Ge(1),n()),Ke(),h.value=m.value.slice(),m.value[0]&&m.value[1]&&e.autoApply&&t("auto-apply"),m.value[0]&&!m.value[1]&&e.modelAuto&&e.autoApply&&t("auto-apply"))},Qe=(L,N=!1)=>{if(!(s(L.value)||!L.current&&e.hideOffsetDates)){if(e.weekPicker)return oe(L);if(!e.range)return Ie(L);Br(b.hours)&&Br(b.minutes)&&!e.multiDates&&(ze(L,N),ve())}},Te=L=>{const N=L[0];return e.weekNumbers==="local"?A1(N.value,{weekStartsOn:+e.weekStart}):e.weekNumbers==="iso"?O1(N.value):typeof e.weekNumbers=="function"?e.weekNumbers(N.value):""},se=L=>{for(let N=L-1;N>=0;N--){const ee=ma(Ot(ae(),{month:w.value(N+1),year:T.value(N+1)}),1);_(N,ct(ee),ht(ee))}for(let N=L+1;N<=p.value.multiCalendars-1;N++){const ee=zn(Ot(ae(),{month:w.value(N-1),year:T.value(N-1)}),1);_(N,ct(ee),ht(ee))}},ce=L=>c(ae(),w.value(L),T.value(L)),me=L=>mn(L,b.hours,b.minutes,K()),Pt=L=>{Q(ce(L))},xe=(L,N)=>{const ee=e.monthPicker?w.value(L)!==N.month||!N.fromNav:T.value(L)!==N.year||!N.fromNav;if(_(L,N.month,N.year),p.value.multiCalendars&&!e.multiCalendarsSolo&&se(L),e.monthPicker||e.yearPicker)if(e.multiDates)ee&&Pt(L);else if(e.range){if(ee&&E(ce(L))){let re=h.value?h.value.slice():[];re.length===2&&re[1]!==null&&(re=[]),re.length?qt(ce(L),re[0])?re.unshift(ce(L)):re[1]=ce(L):re=[ce(L)],h.value=re}}else(e.autoApplyMonth||ee)&&(h.value=ce(L));r(e.multiCalendarsSolo?L:void 0)},Mt=async(L=!1)=>{if(e.autoApply&&(e.monthPicker||e.yearPicker)){await a.nextTick();const N=e.monthPicker?L:!1;e.range?t("auto-apply",N||!h.value||h.value.length===1):t("auto-apply",N)}n()},Ut=(L,N)=>{const ee=Ot(ae(),{month:w.value(N),year:T.value(N)}),re=L<0?zn(ee,1):ma(ee,1);f(ct(re),ht(re),L<0,e.preventMinMaxNavigation)&&(_(N,ct(re),ht(re)),p.value.multiCalendars&&!e.multiCalendarsSolo&&se(N),r())},Rt=L=>{bd(L)&&bd(h.value)&&Br(b.hours)&&Br(b.minutes)?(L[0]&&h.value[0]&&(h.value[0]=mn(L[0],b.hours[0],b.minutes[0],K())),L[1]&&h.value[1]&&(h.value[1]=mn(L[1],b.hours[1],b.minutes[1],K(!1)))):e.multiDates&&Array.isArray(h.value)?h.value[h.value.length-1]=me(L):!e.range&&!_d(L)&&(h.value=me(L)),t("time-update")},zt=(L,N=!0,ee=!1)=>{const re=N?L:b.hours,ge=!N&&!ee?L:b.minutes,we=ee?L:b.seconds;if(e.range&&_d(h.value)&&Br(re)&&Br(ge)&&Br(we)&&!e.disableTimeRangeValidation){const qe=le=>mn(h.value[le],re[le],ge[le],we[le]),J=le=>yu(h.value[le],0);if(ot(h.value[0],h.value[1])&&(mo(qe(0),J(1))||vo(qe(1),J(0))))return}if(B("hours",re),B("minutes",ge),B("seconds",we),h.value)if(e.multiDates){const qe=U();qe&&Rt(qe)}else Rt(h.value);else e.timePicker&&Rt(e.range?[ae(),ae()]:ae());n()},kn=(L,N)=>{e.monthChangeOnScroll&&Ut(e.monthChangeOnScroll!=="inverse"?-L.deltaY:L.deltaY,N)},Sn=(L,N,ee=!1)=>{e.monthChangeOnArrows&&e.vertical===ee&&Et(L,N)},Et=(L,N)=>{Ut(L==="right"?-1:1,N)};return{time:b,month:w,year:T,modelValue:h,calendars:k,monthYearSelect:Mt,isDisabled:s,updateTime:zt,getWeekNum:Te,selectDate:Qe,updateMonthYear:xe,handleScroll:kn,getMarker:L=>e.markers.find(N=>ot(l(L.value),l(N.date))),handleArrow:Sn,handleSwipe:Et,selectCurrentDate:()=>{e.range?h.value&&Array.isArray(h.value)&&h.value[0]?h.value=qt(ae(),h.value[0])?[ae(),h.value[0]]:[h.value[0],ae()]:h.value=[ae()]:h.value=ae(),G()},presetDateRange:(L,N)=>{N||L.length&&L.length<=2&&e.range&&(h.value=L.map(ee=>ae(ee)),G(),e.multiCalendars&&a.nextTick().then(()=>I(!0)))}}},AC=(e,t,n)=>{const r=a.ref(),{getZonedToUtc:o,getZonedDate:i,formatDate:s,getDefaultPattern:l,checkRangeEnabled:u,checkPartialRangeValue:c,isValidDate:f,setDateMonthOrYear:p,defaults:h}=fn(t),m=a.ref(""),y=a.toRef(t,"format");a.watch(r,()=>{e("internal-model-change",r.value)}),a.watch(y,()=>{U()});const k=E=>{const P=E||ae();return t.modelType?H(P):{hours:ir(P),minutes:sr(P),seconds:t.enableSeconds?Ta(P):0}},b=E=>t.modelType?H(E):{month:ct(E),year:ht(E)},w=E=>Array.isArray(E)?u(()=>[ur(ae(),E[0]),E[1]?ur(ae(),E[1]):c()]):ur(ae(),+E),T=(E,P)=>(typeof E=="string"||typeof E=="number")&&t.modelType?S(E):P,O=E=>Array.isArray(E)?[T(E[0],mn(null,+E[0].hours,+E[0].minutes,E[0].seconds)),T(E[1],mn(null,+E[1].hours,+E[1].minutes,E[1].seconds))]:T(E,mn(null,E.hours,E.minutes,E.seconds)),_=E=>Array.isArray(E)?t.multiDates?E.map(P=>T(P,p(null,+P.month,+P.year))):u(()=>[T(E[0],p(null,+E[0].month,+E[0].year)),T(E[1],E[1]?p(null,+E[1].month,+E[1].year):c())]):T(E,p(null,+E.month,+E.year)),B=E=>{if(Array.isArray(E))return E.map(P=>S(P));throw new Error(bi.dateArr("multi-dates"))},C=E=>{if(Array.isArray(E))return[ae(E[0]),ae(E[1])];throw new Error(bi.dateArr("week-picker"))},I=E=>t.modelAuto?Array.isArray(E)?[S(E[0]),S(E[1])]:t.autoApply?[S(E)]:[S(E),null]:Array.isArray(E)?u(()=>[S(E[0]),E[1]?S(E[1]):c()]):S(E),F=()=>{Array.isArray(r.value)&&t.range&&r.value.length===1&&r.value.push(c())},q=()=>{const E=r.value;return[H(E[0]),E[1]?H(E[1]):c()]},W=()=>r.value[1]?q():H(Wt(r.value[0])),M=()=>(r.value||[]).map(E=>H(E)),D=()=>(F(),t.modelAuto?W():t.multiDates?M():Array.isArray(r.value)?u(()=>q()):H(Wt(r.value))),$=E=>E?t.timePicker?O(Wt(E)):t.monthPicker?_(Wt(E)):t.yearPicker?w(Wt(E)):t.multiDates?B(Wt(E)):t.weekPicker?C(Wt(E)):I(Wt(E)):null,Y=E=>{const P=$(E);f(Wt(P))?(r.value=Wt(P),U()):(r.value=null,m.value="")},X=()=>{var E;const P=R=>{var G;return jr(R,(G=h.value.textInputOptions)==null?void 0:G.format)};return`${P(r.value[0])} ${(E=h.value.textInputOptions)==null?void 0:E.rangeSeparator} ${r.value[1]?P(r.value[1]):""}`},K=()=>{var E;return n.value&&r.value?Array.isArray(r.value)?X():jr(r.value,(E=h.value.textInputOptions)==null?void 0:E.format):s(r.value)},j=()=>{var E;return r.value?t.multiDates?r.value.map(P=>s(P)).join("; "):t.textInput&&typeof((E=h.value.textInputOptions)==null?void 0:E.format)=="string"?K():s(r.value):""},U=()=>{!t.format||typeof t.format=="string"||t.textInput&&typeof t.textInputOptions.format=="string"?m.value=j():m.value=t.format(r.value)},S=E=>{if(t.utc){const P=new Date(E);return t.utc==="preserve"?new Date(P.getTime()+P.getTimezoneOffset()*6e4):P}return t.modelType?t.modelType==="date"||t.modelType==="timestamp"?i(new Date(E)):t.modelType==="format"&&(typeof t.format=="string"||!t.format)?hl(E,l(),new Date):i(hl(E,t.modelType,new Date)):i(new Date(E))},H=E=>E?t.utc?WS(E,t.utc==="preserve",t.enableSeconds):t.modelType?t.modelType==="timestamp"?+o(E):t.modelType==="format"&&(typeof t.format=="string"||!t.format)?s(o(E)):s(o(E),t.modelType):o(E):"",Z=E=>{e("update:model-value",E)},Q=E=>Array.isArray(r.value)?t.multiDates?r.value.map(P=>E(P)):[E(r.value[0]),r.value[1]?E(r.value[1]):c()]:E(Wt(r.value)),V=E=>Z(Wt(Q(E)));return{inputValue:m,internalModelValue:r,checkBeforeEmit:()=>r.value?t.range?t.partialRange?r.value.length>=1:r.value.length===2:!!r.value:!1,parseExternalModelValue:Y,formatInputValue:U,emitModelValue:()=>(U(),t.monthPicker?V(b):t.timePicker?V(k):t.yearPicker?V(ht):t.weekPicker?Z(r.value):Z(D()))}},$C=(e,t)=>{const{validateMonthYearInRange:n,validateMaxDate:r,validateMinDate:o,defaults:i}=fn(e),s=(p,h)=>{let m=p;return i.value.filters.months.includes(ct(m))?(m=h?zn(p,1):ma(p,1),s(m,h)):m},l=(p,h)=>{let m=p;return i.value.filters.years.includes(ht(m))?(m=h?Mp(p,1):Qk(p,1),l(m,h)):m},u=p=>{const h=Ot(new Date,{month:e.month,year:e.year});let m=p?zn(h,1):ma(h,1);e.disableYearSelect&&(m=ur(m,e.year));let y=ct(m),k=ht(m);i.value.filters.months.includes(y)&&(m=s(m,p),y=ct(m),k=ht(m)),i.value.filters.years.includes(k)&&(m=l(m,p),k=ht(m)),n(y,k,p,e.preventMinMaxNavigation)&&c(y,k)},c=(p,h)=>{t("update-month-year",{month:p,year:h})},f=a.computed(()=>p=>{if(!e.preventMinMaxNavigation||p&&!e.maxDate||!p&&!e.minDate)return!1;const h=Ot(new Date,{month:e.month,year:e.year}),m=p?zn(h,1):ma(h,1),y=[ct(m),ht(m)];return p?!r(...y):!o(...y)});return{handleMonthYearChange:u,isDisabled:f,updateMonthYear:c}};var ri=(e=>(e.center="center",e.left="left",e.right="right",e))(ri||{});const LC=(e,t,n,r)=>{const o=a.ref({top:"0",left:"0",transform:"none",opacity:"0"}),i=a.ref(!1),s=a.toRef(r,"teleportCenter"),l=a.computed(()=>i.value?"-100%":"0"),u=()=>{c(),o.value.opacity="0"};a.watch(s,()=>{T()}),a.onMounted(()=>{c()});const c=()=>{const D=wt(t);if(D){const{top:$,left:Y,width:X,height:K}=y(D);o.value.top=`${$+K/2}px`,m(Y,X,50)}},f=D=>{if(r.teleport){const $=D.getBoundingClientRect();return{left:$.left+window.scrollX,top:$.top+window.scrollY}}return{top:0,left:0}},p=(D,$)=>{o.value.left=`${D+$}px`,o.value.transform=`translate(-100%, ${l.value})`},h=D=>{o.value.left=`${D}px`,o.value.transform=`translate(0, ${l.value})`},m=(D,$,Y)=>{r.position===ri.left&&h(D),r.position===ri.right&&p(D,$),r.position===ri.center&&(o.value.left=`${D+$/2}px`,o.value.transform=Y?`translate(-50%, -${Y}%)`:`translate(-50%, ${l.value})`)},y=D=>{const{width:$,height:Y}=D.getBoundingClientRect(),{top:X,left:K}=r.altPosition?r.altPosition(D):f(D);return{top:+X,left:+K,width:$,height:Y}},k=()=>{const D=wt(t);if(D){const{top:$,left:Y,width:X,height:K}=y(D),j=I();o.value.top=`${$+K/2}px`,m(Y,X,j==="top"?100:0)}},b=()=>{o.value.left="50%",o.value.top="50%",o.value.transform="translate(-50%, -50%)",o.value.position="fixed",delete o.value.opacity},w=()=>{const D=wt(t),{top:$,left:Y,transform:X}=r.altPosition(D);o.value={top:`${$}px`,left:`${Y}px`,transform:X||""}},T=(D=!0)=>{if(!r.inline)return s.value?b():r.altPosition!==null?w():(D&&n("recalculate-position"),q())},O=({inputEl:D,menuEl:$,left:Y,width:X})=>{window.screen.width>768&&m(Y,X),C(D,$)},_=(D,$)=>{const{top:Y,left:X,height:K,width:j}=y(D);o.value.top=`${K+Y+ +r.offset}px`,i.value=!1,O({inputEl:D,menuEl:$,left:X,width:j})},B=(D,$)=>{const{top:Y,left:X,width:K}=y(D);o.value.top=`${Y-+r.offset}px`,i.value=!0,O({inputEl:D,menuEl:$,left:X,width:K})},C=(D,$)=>{if(r.autoPosition){const{left:Y,width:X}=y(D),{left:K,right:j}=$.getBoundingClientRect();return K<=0?h(Y):j>=document.documentElement.clientWidth?p(Y,X):m(Y,X)}},I=()=>{const D=wt(e),$=wt(t);if(D&&$){const{height:Y}=D.getBoundingClientRect(),{top:X,height:K}=$.getBoundingClientRect(),j=window.innerHeight-X-K,U=X;return Y<=j?"bottom":Y>j&&Y<=U?"top":j>=U?"bottom":"top"}return"bottom"},F=(D,$)=>I()==="bottom"?_(D,$):B(D,$),q=()=>{const D=wt(t),$=wt(e);if(D&&$)return r.autoPosition?F(D,$):_(D,$)},W=function(D){if(D){const $=D.scrollHeight>D.clientHeight,Y=window.getComputedStyle(D).overflowY.indexOf("hidden")!==-1;return $&&!Y}return!0},M=function(D){return!D||D===document.body||D.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:W(D)?D:M(D.parentNode)};return{openOnTop:i,menuStyle:o,resetPosition:u,setMenuPosition:T,setInitialPosition:k,getScrollableParent:M}},ra=[{name:"clock-icon",use:["time","calendar"]},{name:"arrow-left",use:["month-year","calendar"]},{name:"arrow-right",use:["month-year","calendar"]},{name:"arrow-up",use:["time","calendar","month-year"]},{name:"arrow-down",use:["time","calendar","month-year"]},{name:"calendar-icon",use:["month-year","time","calendar"]},{name:"day",use:["calendar"]},{name:"month-overlay-value",use:["calendar","month-year"]},{name:"year-overlay-value",use:["calendar","month-year"]},{name:"year-overlay",use:["month-year"]},{name:"month-overlay",use:["month-year"]},{name:"month-overlay-header",use:["month-year"]},{name:"year-overlay-header",use:["month-year"]},{name:"hours-overlay-value",use:["calendar","time"]},{name:"minutes-overlay-value",use:["calendar","time"]},{name:"seconds-overlay-value",use:["calendar","time"]},{name:"hours",use:["calendar","time"]},{name:"minutes",use:["calendar","time"]},{name:"month",use:["calendar","month-year"]},{name:"year",use:["calendar","month-year"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar"]},{name:"marker-tooltip",use:["calendar"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time"]},{name:"am-pm-button",use:["calendar","time"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year"]},{name:"time-picker",use:["menu"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar"]}],VC=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],FC={all:()=>ra,monthYear:()=>ra.filter(e=>e.use.includes("month-year")),input:()=>VC,timePicker:()=>ra.filter(e=>e.use.includes("time")),action:()=>ra.filter(e=>e.use.includes("action")),calendar:()=>ra.filter(e=>e.use.includes("calendar")),menu:()=>ra.filter(e=>e.use.includes("menu"))},Fr=(e,t,n)=>{const r=[];return FC[t]().forEach(o=>{e[o.name]&&r.push(o.name)}),n&&n.length&&n.forEach(o=>{o.slot&&r.push(o.slot)}),r},zi=e=>({transitionName:a.computed(()=>t=>e&&typeof e!="boolean"?t?e.open:e.close:""),showTransition:!!e}),xr={multiCalendars:{type:[Boolean,Number,String],default:null},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},closeOnScroll:{type:Boolean,default:!1},autoPosition:{type:Boolean,default:!0},closeOnAutoApply:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:String,default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},menuClassName:{type:String,default:null},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},multiCalendarsSolo:{type:Boolean,default:!1},calendarCellClassName:{type:String,default:null},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},showNowButton:{type:Boolean,default:!1},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},modeHeight:{type:[Number,String],default:255},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetRanges:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},minRange:{type:[Number,String],default:null},maxRange:{type:[Number,String],default:null},multiDatesLimit:{type:[Number,String],default:null},reverseYears:{type:Boolean,default:!1},keepActionRow:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},multiStatic:{type:Boolean,default:!0},disableTimeRangeValidation:{type:Boolean,default:!1},highlight:{type:[Array,Function],default:null},highlightWeekDays:{type:Array,default:null},highlightDisabledDays:{type:Boolean,default:!1},teleport:{type:[String,Boolean],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function],default:null},calendarClassName:{type:String,default:null},noSwipe:{type:Boolean,default:!1},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:Boolean,default:!1},partialRange:{type:Boolean,default:!0},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},inputClassName:{type:String,default:null},inlineWithInput:{type:Boolean,default:!1},textInputOptions:{type:Object,default:()=>null},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:Boolean,default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},onClickOutside:{type:Function,default:null},noDisabledRange:{type:Boolean,default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},allowPreventDefault:{type:Boolean,default:!1},closeOnClearValue:{type:Boolean,default:!0},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:Function,default:void 0},showLastInRange:{type:Boolean,default:!0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},autoApplyMonth:{type:Boolean,default:!0}},HC={key:1,class:"dp__input_wrap"},UC=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","onKeydown"],zC={key:2,class:"dp__clear_icon"},jC=a.defineComponent({__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...xr},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur"],setup(e,{expose:t,emit:n}){const r=e,{getDefaultPattern:o,isValidDate:i,defaults:s,getDefaultStartTime:l,assignDefaultTime:u}=fn(r),c=a.ref(),f=a.ref(null),p=a.ref(!1),h=a.ref(!1),m=a.computed(()=>({dp__pointer:!r.disabled&&!r.readonly&&!r.textInput,dp__disabled:r.disabled,dp__input_readonly:!r.textInput,dp__input:!0,dp__input_icon_pad:!r.hideInputIcon,dp__input_valid:r.state,dp__input_invalid:r.state===!1,dp__input_focus:p.value||r.isMenuOpen,dp__input_reg:!r.textInput,[r.inputClassName]:!!r.inputClassName})),y=()=>{n("set-input-date",null),r.autoApply&&(n("set-empty-date"),c.value=null)},k=M=>{var D;const $=l();return jS(M,((D=s.value.textInputOptions)==null?void 0:D.format)||o(),$||u({}),r.inputValue,h.value)},b=M=>{const{rangeSeparator:D}=s.value.textInputOptions,[$,Y]=M.split(`${D}`);if($){const X=k($.trim()),K=Y?k(Y.trim()):null,j=X&&K?[X,K]:[X];c.value=X?j:null}},w=()=>{h.value=!0},T=M=>{if(r.range)b(M);else if(r.multiDates){const D=M.split(";");c.value=D.map($=>k($.trim())).filter($=>$)}else c.value=k(M)},O=M=>{var D,$;const Y=typeof M=="string"?M:(D=M.target)==null?void 0:D.value;Y!==""?(($=s.value.textInputOptions)!=null&&$.openMenu&&!r.isMenuOpen&&n("open"),T(Y),n("set-input-date",c.value)):y(),h.value=!1,n("update:input-value",Y)},_=M=>{var D,$;r.textInput?(T(M.target.value),(D=s.value.textInputOptions)!=null&&D.enterSubmit&&i(c.value)&&r.inputValue!==""?(n("set-input-date",c.value,!0),c.value=null):($=s.value.textInputOptions)!=null&&$.enterSubmit&&r.inputValue===""&&(c.value=null,n("clear"))):I(M)},B=M=>{var D,$,Y;r.textInput&&(D=s.value.textInputOptions)!=null&&D.tabSubmit&&T(M.target.value),($=s.value.textInputOptions)!=null&&$.tabSubmit&&i(c.value)&&r.inputValue!==""?(n("set-input-date",c.value,!0),c.value=null):(Y=s.value.textInputOptions)!=null&&Y.tabSubmit&&r.inputValue===""&&(c.value=null,n("clear"))},C=()=>{p.value=!0,n("focus")},I=M=>{var D;M.preventDefault(),M.stopImmediatePropagation(),M.stopPropagation(),r.textInput&&(D=s.value.textInputOptions)!=null&&D.openMenu&&!r.inlineWithInput?(n("toggle"),s.value.textInputOptions.enterSubmit&&n("select-date")):r.textInput||n("toggle")},F=()=>{n("real-blur"),p.value=!1,(!r.isMenuOpen||r.inline&&r.inlineWithInput)&&n("blur"),r.autoApply&&r.textInput&&c.value&&!r.isMenuOpen&&(n("set-input-date",c.value),n("select-date"),c.value=null)},q=()=>{n("clear")},W=M=>{if(!r.textInput){if(M.code==="Tab")return;M.preventDefault()}};return t({focusInput:()=>{var M;(M=f.value)==null||M.focus({preventScroll:!0})},setParsedDate:M=>{c.value=M}}),(M,D)=>{var $;return a.openBlock(),a.createElementBlock("div",{onClick:I},[M.$slots.trigger&&!M.$slots["dp-input"]&&!M.inline?a.renderSlot(M.$slots,"trigger",{key:0}):a.createCommentVNode("",!0),!M.$slots.trigger&&(!M.inline||M.inlineWithInput)?(a.openBlock(),a.createElementBlock("div",HC,[M.$slots["dp-input"]&&!M.$slots.trigger&&!M.inline?a.renderSlot(M.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:O,onEnter:_,onTab:B,onClear:q,onBlur:F,onKeypress:W,onPaste:w}):a.createCommentVNode("",!0),M.$slots["dp-input"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("input",{key:1,ref_key:"inputRef",ref:f,id:M.uid?`dp-input-${M.uid}`:void 0,name:M.name,class:a.normalizeClass(m.value),inputmode:M.textInput?"text":"none",placeholder:M.placeholder,disabled:M.disabled,readonly:M.readonly,required:M.required,value:e.inputValue,autocomplete:M.autocomplete,"aria-label":($=a.unref(s).ariaLabels)==null?void 0:$.input,onInput:O,onKeydown:[a.withKeys(_,["enter"]),a.withKeys(B,["tab"]),W],onBlur:F,onFocus:C,onKeypress:W,onPaste:w},null,42,UC)),a.createElementVNode("div",{onClick:D[2]||(D[2]=Y=>n("toggle"))},[M.$slots["input-icon"]&&!M.hideInputIcon?(a.openBlock(),a.createElementBlock("span",{key:0,class:"dp__input_icon",onClick:D[0]||(D[0]=Y=>n("toggle"))},[a.renderSlot(M.$slots,"input-icon")])):a.createCommentVNode("",!0),!M.$slots["input-icon"]&&!M.hideInputIcon&&!M.$slots["dp-input"]?(a.openBlock(),a.createBlock(a.unref(Ui),{key:1,onClick:D[1]||(D[1]=Y=>n("toggle")),class:"dp__input_icon dp__input_icons"})):a.createCommentVNode("",!0)]),M.$slots["clear-icon"]&&e.inputValue&&M.clearable&&!M.disabled&&!M.readonly?(a.openBlock(),a.createElementBlock("span",zC,[a.renderSlot(M.$slots,"clear-icon",{clear:q})])):a.createCommentVNode("",!0),M.clearable&&!M.$slots["clear-icon"]&&e.inputValue&&!M.disabled&&!M.readonly?(a.openBlock(),a.createBlock(a.unref(zS),{key:3,class:"dp__clear_icon dp__input_icons",onClick:a.withModifiers(q,["stop","prevent"])},null,8,["onClick"])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])}}}),WC=["title"],qC={class:"dp__action_buttons"},YC=["onKeydown","disabled"],GC=a.defineComponent({__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},calendarWidth:{type:Number,default:0},...xr},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const n=e,{formatDate:r,isValidTime:o,defaults:i}=fn(n),{buildMatrix:s}=Er(),l=a.ref(null),u=a.ref(null);a.onMounted(()=>{n.arrowNavigation&&s([wt(l),wt(u)],"actionRow")});const c=a.computed(()=>n.range&&!n.partialRange&&n.internalModelValue?n.internalModelValue.length===2:!0),f=a.computed(()=>!p.value||!h.value||!c.value),p=a.computed(()=>!n.enableTimePicker||n.ignoreTimeValidation?!0:o(n.internalModelValue)),h=a.computed(()=>n.monthPicker?n.range&&Array.isArray(n.internalModelValue)?!n.internalModelValue.filter(B=>!O(B)).length:O(n.internalModelValue):!0),m=()=>{const B=i.value.previewFormat;return n.timePicker||n.monthPicker,B(Wt(n.internalModelValue))},y=()=>{const B=n.internalModelValue;return i.value.multiCalendars>0?`${k(B[0])} - ${k(B[1])}`:[k(B[0]),k(B[1])]},k=B=>r(B,i.value.previewFormat),b=a.computed(()=>!n.internalModelValue||!n.menuMount?"":typeof i.value.previewFormat=="string"?Array.isArray(n.internalModelValue)?n.internalModelValue.length===2&&n.internalModelValue[1]?y():n.multiDates?n.internalModelValue.map(B=>`${k(B)}`):n.modelAuto?`${k(n.internalModelValue[0])}`:`${k(n.internalModelValue[0])} -`:k(n.internalModelValue):m()),w=()=>n.multiDates?"; ":" - ",T=a.computed(()=>Array.isArray(b.value)?b.value.join(w()):b.value),O=B=>{if(!n.monthPicker)return!0;let C=!0;const I=ae(Ya(B));if(n.minDate&&n.maxDate){const F=ae(Ya(n.minDate)),q=ae(Ya(n.maxDate));return nn(I,F)&&qt(I,q)||ot(I,F)||ot(I,q)}if(n.minDate){const F=ae(Ya(n.minDate));C=nn(I,F)||ot(I,F)}if(n.maxDate){const F=ae(Ya(n.maxDate));C=qt(I,F)||ot(I,F)}return C},_=()=>{p.value&&h.value&&c.value?t("select-date"):t("invalid-select")};return(B,C)=>(a.openBlock(),a.createElementBlock("div",{class:"dp__action_row",style:a.normalizeStyle(e.calendarWidth?{width:`${e.calendarWidth}px`}:{})},[B.$slots["action-row"]?a.renderSlot(B.$slots,"action-row",a.normalizeProps(a.mergeProps({key:0},{internalModelValue:e.internalModelValue,disabled:f.value,selectDate:()=>B.$emit("select-date"),closePicker:()=>B.$emit("close-picker")}))):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.unref(i).actionRow.showPreview?(a.openBlock(),a.createElementBlock("div",{key:0,class:"dp__selection_preview",title:T.value},[B.$slots["action-preview"]?a.renderSlot(B.$slots,"action-preview",{key:0,value:e.internalModelValue}):a.createCommentVNode("",!0),B.$slots["action-preview"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(T.value),1)],64))],8,WC)):a.createCommentVNode("",!0),a.createElementVNode("div",qC,[B.$slots["action-buttons"]?a.renderSlot(B.$slots,"action-buttons",{key:0,value:e.internalModelValue}):a.createCommentVNode("",!0),B.$slots["action-buttons"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[!B.inline&&a.unref(i).actionRow.showCancel?(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",ref_key:"cancelButtonRef",ref:l,class:"dp__action_button dp__action_cancel",onClick:C[0]||(C[0]=I=>B.$emit("close-picker")),onKeydown:[C[1]||(C[1]=a.withKeys(I=>B.$emit("close-picker"),["enter"])),C[2]||(C[2]=a.withKeys(I=>B.$emit("close-picker"),["space"]))]},a.toDisplayString(B.cancelText),545)):a.createCommentVNode("",!0),B.showNowButton||a.unref(i).actionRow.showNow?(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",ref_key:"cancelButtonRef",ref:l,class:"dp__action_button dp__action_cancel",onClick:C[3]||(C[3]=I=>B.$emit("select-now")),onKeydown:[C[4]||(C[4]=a.withKeys(I=>B.$emit("select-now"),["enter"])),C[5]||(C[5]=a.withKeys(I=>B.$emit("select-now"),["space"]))]},a.toDisplayString(B.nowButtonLabel),545)):a.createCommentVNode("",!0),a.unref(i).actionRow.showSelect?(a.openBlock(),a.createElementBlock("button",{key:2,type:"button",class:"dp__action_button dp__action_select",onKeydown:[a.withKeys(_,["enter"]),a.withKeys(_,["space"])],onClick:_,disabled:f.value,ref_key:"selectButtonRef",ref:u},a.toDisplayString(B.selectText),41,YC)):a.createCommentVNode("",!0)],64))])],64))],4))}}),KC=["aria-label"],XC={class:"dp__calendar_header",role:"row"},JC={key:0,class:"dp__calendar_header_item",role:"gridcell"},QC=a.createElementVNode("div",{class:"dp__calendar_header_separator"},null,-1),ZC=["aria-label"],eT={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},tT={class:"dp__cell_inner"},nT=["aria-selected","aria-disabled","aria-label","onClick","onKeydown","onMouseenter","onMouseleave"],rT=a.defineComponent({__name:"Calendar",props:{mappedDates:{type:Array,default:()=>[]},getWeekNum:{type:Function,default:()=>""},specificMode:{type:Boolean,default:!1},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...xr},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:t,emit:n}){const r=e,{buildMultiLevelMatrix:o}=Er(),{setDateMonthOrYear:i,defaults:s}=fn(r),l=a.ref(null),u=a.ref({bottom:"",left:"",transform:""}),c=a.ref([]),f=a.ref(null),p=a.ref(!0),h=a.ref(""),m=a.ref({startX:0,endX:0,startY:0,endY:0}),y=a.ref([]),k=a.ref({left:"50%"}),b=a.computed(()=>r.calendar?r.calendar(r.mappedDates):r.mappedDates),w=a.computed(()=>r.dayNames?Array.isArray(r.dayNames)?r.dayNames:r.dayNames(r.locale,+r.weekStart):wC(r.formatLocale,r.locale,+r.weekStart));a.onMounted(()=>{n("mount",{cmp:"calendar",refs:c}),r.noSwipe||f.value&&(f.value.addEventListener("touchstart",D,{passive:!1}),f.value.addEventListener("touchend",$,{passive:!1}),f.value.addEventListener("touchmove",Y,{passive:!1})),r.monthChangeOnScroll&&f.value&&f.value.addEventListener("wheel",j,{passive:!1})});const T=U=>U?r.vertical?"vNext":"next":r.vertical?"vPrevious":"previous",O=(U,S)=>{if(r.transitions){const H=yn(i(ae(),r.month,r.year));h.value=nn(yn(i(ae(),U,S)),H)?s.value.transitions[T(!0)]:s.value.transitions[T(!1)],p.value=!1,a.nextTick(()=>{p.value=!0})}},_=a.computed(()=>({[r.calendarClassName]:!!r.calendarClassName})),B=a.computed(()=>U=>{const S=TC(U);return{dp__marker_dot:S.type==="dot",dp__marker_line:S.type==="line"}}),C=a.computed(()=>U=>ot(U,l.value)),I=a.computed(()=>({dp__calendar:!0,dp__calendar_next:s.value.multiCalendars>0&&r.instance!==0})),F=a.computed(()=>U=>r.hideOffsetDates?U.current:!0),q=a.computed(()=>r.specificMode?{height:`${r.modeHeight}px`}:void 0),W=async(U,S,H)=>{var Z,Q;if(n("set-hover-date",U),(Q=(Z=U.marker)==null?void 0:Z.tooltip)!=null&&Q.length){const V=wt(c.value[S][H]);if(V){const{width:E,height:P}=V.getBoundingClientRect();l.value=U.value;let R={left:`${E/2}px`},G=-50;if(await a.nextTick(),y.value[0]){const{left:ie,width:oe}=y.value[0].getBoundingClientRect();ie<0&&(R={left:"0"},G=0,k.value.left=`${E/2}px`),window.innerWidth<ie+oe&&(R={right:"0"},G=0,k.value.left=`${oe-E/2}px`)}u.value={bottom:`${P}px`,...R,transform:`translateX(${G}%)`},n("tooltip-open",U.marker)}}},M=U=>{l.value&&(l.value=null,u.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),n("tooltip-close",U.marker))},D=U=>{m.value.startX=U.changedTouches[0].screenX,m.value.startY=U.changedTouches[0].screenY},$=U=>{m.value.endX=U.changedTouches[0].screenX,m.value.endY=U.changedTouches[0].screenY,X()},Y=U=>{r.vertical&&!r.inline&&U.preventDefault()},X=()=>{const U=r.vertical?"Y":"X";Math.abs(m.value[`start${U}`]-m.value[`end${U}`])>10&&n("handle-swipe",m.value[`start${U}`]>m.value[`end${U}`]?"right":"left")},K=(U,S,H)=>{U&&(Array.isArray(c.value[S])?c.value[S][H]=U:c.value[S]=[U]),r.arrowNavigation&&o(c.value,"calendar")},j=U=>{r.monthChangeOnScroll&&(U.preventDefault(),n("handle-scroll",U))};return t({triggerTransition:O}),(U,S)=>{var H;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(I.value)},[a.createElementVNode("div",{style:a.normalizeStyle(q.value),ref_key:"calendarWrapRef",ref:f,role:"grid",class:a.normalizeClass(_.value),"aria-label":(H=a.unref(s).ariaLabels)==null?void 0:H.calendarWrap},[e.specificMode?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("div",XC,[U.weekNumbers?(a.openBlock(),a.createElementBlock("div",JC,a.toDisplayString(U.weekNumName),1)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(w.value,(Z,Q)=>(a.openBlock(),a.createElementBlock("div",{class:"dp__calendar_header_item",role:"gridcell",key:Q},[U.$slots["calendar-header"]?a.renderSlot(U.$slots,"calendar-header",{key:0,day:Z,index:Q}):a.createCommentVNode("",!0),U.$slots["calendar-header"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(Z),1)],64))]))),128))]),QC,a.createVNode(a.Transition,{name:h.value,css:!!U.transitions},{default:a.withCtx(()=>{var Z;return[p.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:"dp__calendar",role:"grid","aria-label":(Z=a.unref(s).ariaLabels)==null?void 0:Z.calendarDays},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(b.value,(Q,V)=>(a.openBlock(),a.createElementBlock("div",{class:"dp__calendar_row",role:"row",key:V},[U.weekNumbers?(a.openBlock(),a.createElementBlock("div",eT,[a.createElementVNode("div",tT,a.toDisplayString(e.getWeekNum(Q.days)),1)])):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Q.days,(E,P)=>{var R,G,ie;return a.openBlock(),a.createElementBlock("div",{role:"gridcell",class:"dp__calendar_item",ref_for:!0,ref:oe=>K(oe,V,P),key:P+V,"aria-selected":E.classData.dp__active_date||E.classData.dp__range_start||E.classData.dp__range_start,"aria-disabled":E.classData.dp__cell_disabled,"aria-label":(G=(R=a.unref(s).ariaLabels)==null?void 0:R.day)==null?void 0:G.call(R,E),tabindex:"0",onClick:a.withModifiers(oe=>U.$emit("select-date",E),["stop","prevent"]),onKeydown:[a.withKeys(oe=>U.$emit("select-date",E),["enter"]),a.withKeys(oe=>U.$emit("handle-space",E),["space"])],onMouseenter:oe=>W(E,V,P),onMouseleave:oe=>M(E)},[a.createElementVNode("div",{class:a.normalizeClass(["dp__cell_inner",E.classData])},[U.$slots.day&&F.value(E)?a.renderSlot(U.$slots,"day",{key:0,day:+E.text,date:E.value}):a.createCommentVNode("",!0),U.$slots.day?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(E.text),1)],64)),E.marker&&F.value(E)?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[U.$slots.marker?a.renderSlot(U.$slots,"marker",{key:0,marker:E.marker,day:+E.text,date:E.value}):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(B.value(E.marker)),style:a.normalizeStyle(E.marker.color?{backgroundColor:E.marker.color}:{})},null,6))],64)):a.createCommentVNode("",!0),C.value(E.value)?(a.openBlock(),a.createElementBlock("div",{key:3,class:"dp__marker_tooltip",ref_for:!0,ref_key:"activeTooltip",ref:y,style:a.normalizeStyle(u.value)},[(ie=E.marker)!=null&&ie.tooltip?(a.openBlock(),a.createElementBlock("div",{key:0,class:"dp__tooltip_content",onClick:S[0]||(S[0]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.marker.tooltip,(oe,Ie)=>(a.openBlock(),a.createElementBlock("div",{key:Ie,class:"dp__tooltip_text"},[U.$slots["marker-tooltip"]?a.renderSlot(U.$slots,"marker-tooltip",{key:0,tooltip:oe,day:E.value}):a.createCommentVNode("",!0),U.$slots["marker-tooltip"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",{class:"dp__tooltip_mark",style:a.normalizeStyle(oe.color?{backgroundColor:oe.color}:{})},null,4),a.createElementVNode("div",null,a.toDisplayString(oe.text),1)],64))]))),128)),a.createElementVNode("div",{class:"dp__arrow_bottom_tp",style:a.normalizeStyle(k.value)},null,4)])):a.createCommentVNode("",!0)],4)):a.createCommentVNode("",!0)],2)],40,nT)}),128))]))),128))],8,ZC)):a.createCommentVNode("",!0)]}),_:3},8,["name","css"])],64))],14,KC)],2)}}}),aT=["aria-label","aria-disabled"],js=a.defineComponent({__name:"ActionIcon",props:{ariaLabel:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const n=a.ref(null);return a.onMounted(()=>t("set-ref",n)),(r,o)=>(a.openBlock(),a.createElementBlock("button",{type:"button",class:"dp__btn dp__month_year_col_nav",onClick:o[0]||(o[0]=i=>r.$emit("activate")),onKeydown:[o[1]||(o[1]=a.withKeys(a.withModifiers(i=>r.$emit("activate"),["prevent"]),["enter"])),o[2]||(o[2]=a.withKeys(a.withModifiers(i=>r.$emit("activate"),["prevent"]),["space"]))],tabindex:"0","aria-label":r.ariaLabel,"aria-disabled":r.disabled,ref_key:"elRef",ref:n},[a.createElementVNode("span",{class:a.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:r.disabled}])},[a.renderSlot(r.$slots,"default")],2)],40,aT))}}),oT=["onKeydown"],iT={class:"dp__selection_grid_header"},sT=["aria-selected","aria-disabled","onClick","onKeydown","onMouseover"],lT=["aria-label","onKeydown"],to=a.defineComponent({__name:"SelectionGrid",props:{items:{type:Array,default:()=>[]},modelValue:{type:[String,Number],default:null},multiModelValue:{type:Array,default:()=>[]},disabledValues:{type:Array,default:()=>[]},minValue:{type:[Number,String],default:null},maxValue:{type:[Number,String],default:null},year:{type:Number,default:0},skipActive:{type:Boolean,default:!1},headerRefs:{type:Array,default:()=>[]},skipButtonRef:{type:Boolean,default:!1},monthPicker:{type:Boolean,default:!1},yearPicker:{type:Boolean,default:!1},escClose:{type:Boolean,default:!0},type:{type:String,default:null},arrowNavigation:{type:Boolean,default:!1},autoApply:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},ariaLabels:{type:Object,default:()=>({})},hideNavigation:{type:Array,default:()=>[]},internalModelValue:{type:[Date,Array],default:null},autoApplyMonth:{type:Boolean,default:!1}},emits:["update:model-value","selected","toggle","reset-flow"],setup(e,{expose:t,emit:n}){const r=e,{setSelectionGrid:o,buildMultiLevelMatrix:i,setMonthPicker:s}=Er(),{hideNavigationButtons:l}=fn(r),u=a.ref(!1),c=a.ref(null),f=a.ref(null),p=a.ref([]),h=a.ref(),m=a.ref(null),y=a.ref(0),k=a.ref(null);a.onBeforeUpdate(()=>{c.value=null}),a.onMounted(()=>{var j;a.nextTick().then(()=>q()),w(),b(!0),(j=c.value)==null||j.focus({preventScroll:!0})}),a.onUnmounted(()=>b(!1));const b=j=>{var U;r.arrowNavigation&&((U=r.headerRefs)!=null&&U.length?s(j):o(j))},w=()=>{const j=wt(f);j&&(r.textInput||j.focus({preventScroll:!0}),u.value=j.clientHeight<j.scrollHeight)},T=a.computed(()=>({dp__overlay:!0})),O=a.computed(()=>({dp__overlay_col:!0})),_=j=>r.monthPicker&&!r.autoApplyMonth?ot(r.internalModelValue,ur(ua(new Date,j.value),r.year)):r.skipActive?!1:j.value===r.modelValue,B=a.computed(()=>r.items.map(j=>j.filter(U=>U).map(U=>{var S,H,Z;const Q=r.disabledValues.some(E=>E===U.value)||F(U.value),V=(S=r.multiModelValue)!=null&&S.length?(H=r.multiModelValue)==null?void 0:H.some(E=>ot(E,ur(r.monthPicker?ua(new Date,U.value):new Date,r.monthPicker?r.year:U.value))):_(U);return{...U,className:{dp__overlay_cell_active:V,dp__overlay_cell:!V,dp__overlay_cell_disabled:Q,dp__overlay_cell_active_disabled:Q&&V,dp__overlay_cell_pad:!0,dp__cell_in_between:(Z=r.multiModelValue)!=null&&Z.length&&r.skipActive?M(U.value):!1}}}))),C=a.computed(()=>({dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:u.value,dp__button_bottom:r.autoApply})),I=a.computed(()=>{var j,U;return{dp__overlay_container:!0,dp__container_flex:((j=r.items)==null?void 0:j.length)<=6,dp__container_block:((U=r.items)==null?void 0:U.length)>6}}),F=j=>{const U=r.maxValue||r.maxValue===0,S=r.minValue||r.minValue===0;return!U&&!S?!1:U&&S?+j>+r.maxValue||+j<+r.minValue:U?+j>+r.maxValue:S?+j<+r.minValue:!1},q=()=>{const j=wt(c),U=wt(f),S=wt(m),H=wt(k),Z=S?S.getBoundingClientRect().height:0;U&&(y.value=U.getBoundingClientRect().height-Z),j&&H&&(H.scrollTop=j.offsetTop-H.offsetTop-(y.value/2-j.getBoundingClientRect().height)-Z)},W=j=>{!r.disabledValues.some(U=>U===j)&&!F(j)&&(n("update:model-value",j),n("selected"))},M=j=>{const U=r.monthPicker?r.year:j;return nh(r.multiModelValue,ur(r.monthPicker?ua(new Date,h.value||0):new Date,r.monthPicker?U:h.value||U),ur(r.monthPicker?ua(new Date,j):new Date,U))},D=()=>{n("toggle"),n("reset-flow")},$=()=>{r.escClose&&D()},Y=(j,U,S,H)=>{j&&(U.value===+r.modelValue&&!r.disabledValues.includes(U.value)&&(c.value=j),r.arrowNavigation&&(Array.isArray(p.value[S])?p.value[S][H]=j:p.value[S]=[j],X()))},X=()=>{var j,U;const S=(j=r.headerRefs)!=null&&j.length?[r.headerRefs].concat(p.value):p.value.concat([r.skipButtonRef?[]:[m.value]]);i(Wt(S),(U=r.headerRefs)!=null&&U.length?"monthPicker":"selectionGrid")},K=j=>{r.arrowNavigation||j.stopImmediatePropagation()};return t({focusGrid:w}),(j,U)=>{var S;return a.openBlock(),a.createElementBlock("div",{ref_key:"gridWrapRef",ref:f,class:a.normalizeClass(T.value),role:"dialog",tabindex:"0",onKeydown:[a.withKeys($,["esc"]),U[0]||(U[0]=a.withKeys(H=>K(H),["left"])),U[1]||(U[1]=a.withKeys(H=>K(H),["up"])),U[2]||(U[2]=a.withKeys(H=>K(H),["down"])),U[3]||(U[3]=a.withKeys(H=>K(H),["right"]))]},[a.createElementVNode("div",{class:a.normalizeClass(I.value),ref_key:"containerRef",ref:k,role:"grid",style:a.normalizeStyle({height:`${y.value}px`})},[a.createElementVNode("div",iT,[a.renderSlot(j.$slots,"header")]),j.$slots.overlay?a.renderSlot(j.$slots,"overlay",{key:0}):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(B.value,(H,Z)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["dp__overlay_row",{dp__flex_row:B.value.length>=3}]),key:Z,role:"row"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(H,(Q,V)=>(a.openBlock(),a.createElementBlock("div",{role:"gridcell",class:a.normalizeClass(O.value),key:Q.value,"aria-selected":Q.value===e.modelValue&&!e.disabledValues.includes(Q.value),"aria-disabled":Q.className.dp__overlay_cell_disabled,ref_for:!0,ref:E=>Y(E,Q,Z,V),tabindex:"0",onClick:E=>W(Q.value),onKeydown:[a.withKeys(E=>W(Q.value),["enter"]),a.withKeys(E=>W(Q.value),["space"])],onMouseover:E=>h.value=Q.value},[a.createElementVNode("div",{class:a.normalizeClass(Q.className)},[j.$slots.item?a.renderSlot(j.$slots,"item",{key:0,item:Q}):a.createCommentVNode("",!0),j.$slots.item?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(Q.text),1)],64))],2)],42,sT))),128))],2))),128))],6),j.$slots["button-icon"]?a.withDirectives((a.openBlock(),a.createElementBlock("div",{key:0,role:"button","aria-label":(S=e.ariaLabels)==null?void 0:S.toggleOverlay,class:a.normalizeClass(C.value),tabindex:"0",ref_key:"toggleButton",ref:m,onClick:D,onKeydown:[a.withKeys(D,["enter"]),a.withKeys(D,["tab"])]},[a.renderSlot(j.$slots,"button-icon")],42,lT)),[[a.vShow,!a.unref(l)(e.type)]]):a.createCommentVNode("",!0)],42,oT)}}}),uT=["aria-label"],wd=a.defineComponent({__name:"RegularPicker",props:{ariaLabel:{type:String,default:""},showSelectionGrid:{type:Boolean,default:!1},modelValue:{type:Number,default:null},items:{type:Array,default:()=>[]},disabledValues:{type:Array,default:()=>[]},minValue:{type:Number,default:null},maxValue:{type:Number,default:null},slotName:{type:String,default:""},overlaySlot:{type:String,default:""},headerRefs:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},type:{type:String,default:null},transitions:{type:[Object,Boolean],default:!1},arrowNavigation:{type:Boolean,default:!1},autoApply:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},ariaLabels:{type:Object,default:()=>({})},hideNavigation:{type:Array,default:()=>[]}},emits:["update:model-value","toggle","set-ref"],setup(e,{emit:t}){const n=e,{transitionName:r,showTransition:o}=zi(n.transitions),i=a.ref(null);return a.onMounted(()=>t("set-ref",i)),(s,l)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("button",{type:"button",class:"dp__btn dp__month_year_select",onClick:l[0]||(l[0]=u=>s.$emit("toggle")),onKeydown:[l[1]||(l[1]=a.withKeys(a.withModifiers(u=>s.$emit("toggle"),["prevent"]),["enter"])),l[2]||(l[2]=a.withKeys(a.withModifiers(u=>s.$emit("toggle"),["prevent"]),["space"]))],"aria-label":e.ariaLabel,tabindex:"0",ref_key:"elRef",ref:i},[a.renderSlot(s.$slots,"default")],40,uT),a.createVNode(a.Transition,{name:a.unref(r)(e.showSelectionGrid),css:a.unref(o)},{default:a.withCtx(()=>[e.showSelectionGrid?(a.openBlock(),a.createBlock(to,a.mergeProps({key:0},{modelValue:e.modelValue,items:e.items,disabledValues:e.disabledValues,minValue:e.minValue,maxValue:e.maxValue,escClose:e.escClose,type:e.type,arrowNavigation:e.arrowNavigation,textInput:e.textInput,autoApply:e.autoApply,ariaLabels:e.ariaLabels,hideNavigation:e.hideNavigation},{"header-refs":[],"onUpdate:modelValue":l[3]||(l[3]=u=>s.$emit("update:model-value",u)),onToggle:l[4]||(l[4]=u=>s.$emit("toggle"))}),a.createSlots({"button-icon":a.withCtx(()=>[s.$slots["calendar-icon"]?a.renderSlot(s.$slots,"calendar-icon",{key:0}):a.createCommentVNode("",!0),s.$slots["calendar-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Ui),{key:1}))]),_:2},[s.$slots[e.slotName]?{name:"item",fn:a.withCtx(({item:u})=>[a.renderSlot(s.$slots,e.slotName,{item:u})]),key:"0"}:void 0,s.$slots[e.overlaySlot]?{name:"overlay",fn:a.withCtx(()=>[a.renderSlot(s.$slots,e.overlaySlot)]),key:"1"}:void 0,s.$slots[`${e.overlaySlot}-header`]?{name:"header",fn:a.withCtx(()=>[a.renderSlot(s.$slots,`${e.overlaySlot}-header`)]),key:"2"}:void 0]),1040)):a.createCommentVNode("",!0)]),_:3},8,["name","css"])],64))}}),cT={class:"dp__month_year_row"},dT={class:"dp__month_picker_header"},fT=["aria-label"],pT=["aria-label"],hT=["aria-label"],mT=a.defineComponent({__name:"MonthYearPicker",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},internalModelValue:{type:[Date,Array],default:null},...xr},emits:["update-month-year","month-year-select","mount","reset-flow","overlay-closed"],setup(e,{expose:t,emit:n}){const r=e,{defaults:o}=fn(r),{transitionName:i,showTransition:s}=zi(o.value.transitions),{buildMatrix:l}=Er(),{handleMonthYearChange:u,isDisabled:c,updateMonthYear:f}=$C(r,n),p=a.ref(!1),h=a.ref(!1),m=a.ref([null,null,null,null]),y=a.ref(null),k=a.ref(null),b=a.ref(null);a.onMounted(()=>{n("mount")});const w=P=>({get:()=>r[P],set:R=>{const G=P==="month"?"year":"month";n("update-month-year",{[P]:R,[G]:r[G]}),n("month-year-select",P==="year"),P==="month"?H(!0):Z(!0)}}),T=a.computed(w("month")),O=a.computed(w("year")),_=P=>{const R=ht(ae(P));return r.year===R},B=a.computed(()=>r.monthPicker?Array.isArray(r.disabledDates)?r.disabledDates.map(P=>ae(P)).filter(P=>_(P)).map(P=>ct(P)):[]:[]),C=a.computed(()=>P=>{const R=P==="month";return{showSelectionGrid:(R?p:h).value,items:(R?X:K).value,disabledValues:o.value.filters[R?"months":"years"].concat(B.value),minValue:(R?W:F).value,maxValue:(R?M:q).value,headerRefs:R&&r.monthPicker?[y.value,k.value,b.value]:[],escClose:r.escClose,transitions:o.value.transitions,ariaLabels:o.value.ariaLabels,textInput:r.textInput,autoApply:r.autoApply,arrowNavigation:r.arrowNavigation,hideNavigation:r.hideNavigation}}),I=a.computed(()=>P=>({month:r.month,year:r.year,items:P==="month"?r.months:r.years,instance:r.instance,updateMonthYear:f,toggle:P==="month"?H:Z})),F=a.computed(()=>r.minDate?ht(ae(r.minDate)):null),q=a.computed(()=>r.maxDate?ht(ae(r.maxDate)):null),W=a.computed(()=>{if(r.minDate&&F.value){if(F.value>r.year)return 12;if(F.value===r.year)return ct(ae(r.minDate))}return null}),M=a.computed(()=>r.maxDate&&q.value?q.value<r.year?-1:q.value===r.year?ct(ae(r.maxDate)):null:null),D=a.computed(()=>(r.range||r.multiDates)&&r.internalModelValue&&(r.monthPicker||r.yearPicker)?r.internalModelValue:[]),$=P=>{const R=[],G=ie=>ie;for(let ie=0;ie<P.length;ie+=3){const oe=[P[ie],P[ie+1],P[ie+2]];R.push(G(oe))}return R},Y=a.computed(()=>r.months.find(R=>R.value===r.month)||{text:"",value:0}),X=a.computed(()=>$(r.months)),K=a.computed(()=>$(r.years)),j=a.computed(()=>o.value.multiCalendars?r.multiCalendarsSolo?!0:r.instance===0:!0),U=a.computed(()=>o.value.multiCalendars?r.multiCalendarsSolo?!0:r.instance===o.value.multiCalendars-1:!0),S=(P,R)=>{R!==void 0?P.value=R:P.value=!P.value},H=(P=!1,R)=>{Q(P),S(p,R),p.value||n("overlay-closed")},Z=(P=!1,R)=>{Q(P),S(h,R),h.value||n("overlay-closed")},Q=P=>{P||n("reset-flow")},V=(P=!1)=>{c.value(P)||n("update-month-year",{year:P?r.year+1:r.year-1,month:r.month,fromNav:!0})},E=(P,R)=>{r.arrowNavigation&&(m.value[R]=wt(P),l(m.value,"monthYear"))};return t({toggleMonthPicker:H,toggleYearPicker:Z,handleMonthYearChange:u}),(P,R)=>{var G,ie,oe,Ie,Ee;return a.openBlock(),a.createElementBlock("div",cT,[P.$slots["month-year"]?a.renderSlot(P.$slots,"month-year",a.normalizeProps(a.mergeProps({key:0},{month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:a.unref(f),handleMonthYearChange:a.unref(u),instance:e.instance}))):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[!P.monthPicker&&!P.yearPicker?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[j.value&&!P.vertical?(a.openBlock(),a.createBlock(js,{key:0,"aria-label":(G=a.unref(o).ariaLabels)==null?void 0:G.prevMonth,disabled:a.unref(c)(!1),onActivate:R[0]||(R[0]=fe=>a.unref(u)(!1)),onSetRef:R[1]||(R[1]=fe=>E(fe,0))},{default:a.withCtx(()=>[P.$slots["arrow-left"]?a.renderSlot(P.$slots,"arrow-left",{key:0}):a.createCommentVNode("",!0),P.$slots["arrow-left"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(ad),{key:1}))]),_:3},8,["aria-label","disabled"])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["dp__month_year_wrap",{dp__year_disable_select:r.disableYearSelect}])},[a.createVNode(wd,a.mergeProps({type:"month","slot-name":"month-overlay-val","overlay-slot":"overlay-month","aria-label":(ie=a.unref(o).ariaLabels)==null?void 0:ie.openMonthsOverlay,modelValue:T.value,"onUpdate:modelValue":R[2]||(R[2]=fe=>T.value=fe)},C.value("month"),{onToggle:H,onSetRef:R[3]||(R[3]=fe=>E(fe,1))}),a.createSlots({default:a.withCtx(()=>[P.$slots.month?a.renderSlot(P.$slots,"month",a.normalizeProps(a.mergeProps({key:0},Y.value))):a.createCommentVNode("",!0),P.$slots.month?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(Y.value.text),1)],64))]),_:2},[P.$slots["calendar-icon"]?{name:"calendar-icon",fn:a.withCtx(()=>[a.renderSlot(P.$slots,"calendar-icon")]),key:"0"}:void 0,P.$slots["month-overlay-value"]?{name:"month-overlay-val",fn:a.withCtx(({item:fe})=>[a.renderSlot(P.$slots,"month-overlay-value",{text:fe.text,value:fe.value})]),key:"1"}:void 0,P.$slots["month-overlay"]?{name:"overlay-month",fn:a.withCtx(()=>[a.renderSlot(P.$slots,"month-overlay",a.normalizeProps(a.guardReactiveProps(I.value("month"))))]),key:"2"}:void 0,P.$slots["month-overlay-header"]?{name:"overlay-month-header",fn:a.withCtx(()=>[a.renderSlot(P.$slots,"month-overlay-header",{toggle:H})]),key:"3"}:void 0]),1040,["aria-label","modelValue"]),r.disableYearSelect?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(wd,a.mergeProps({key:0,type:"year","slot-name":"year-overlay-val","overlay-slot":"overlay-year","aria-label":(oe=a.unref(o).ariaLabels)==null?void 0:oe.openYearsOverlay,modelValue:O.value,"onUpdate:modelValue":R[4]||(R[4]=fe=>O.value=fe)},C.value("year"),{onToggle:Z,onSetRef:R[5]||(R[5]=fe=>E(fe,2))}),a.createSlots({default:a.withCtx(()=>[P.$slots.year?a.renderSlot(P.$slots,"year",{key:0,year:e.year}):a.createCommentVNode("",!0),P.$slots.year?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(e.year),1)],64))]),_:2},[P.$slots["calendar-icon"]?{name:"calendar-icon",fn:a.withCtx(()=>[a.renderSlot(P.$slots,"calendar-icon")]),key:"0"}:void 0,P.$slots["year-overlay-value"]?{name:"year-overlay-val",fn:a.withCtx(({item:fe})=>[a.renderSlot(P.$slots,"year-overlay-value",{text:fe.text,value:fe.value})]),key:"1"}:void 0,P.$slots["year-overlay"]?{name:"overlay-year",fn:a.withCtx(()=>[a.renderSlot(P.$slots,"year-overlay",a.normalizeProps(a.guardReactiveProps(I.value("year"))))]),key:"2"}:void 0,P.$slots["year-overlay-header"]?{name:"overlay-year-header",fn:a.withCtx(()=>[a.renderSlot(P.$slots,"year-overlay-header",{toggle:Z})]),key:"3"}:void 0]),1040,["aria-label","modelValue"]))],2),j.value&&P.vertical?(a.openBlock(),a.createBlock(js,{key:1,"aria-label":(Ie=a.unref(o).ariaLabels)==null?void 0:Ie.prevMonth,disabled:a.unref(c)(!1),onActivate:R[6]||(R[6]=fe=>a.unref(u)(!1))},{default:a.withCtx(()=>[P.$slots["arrow-up"]?a.renderSlot(P.$slots,"arrow-up",{key:0}):a.createCommentVNode("",!0),P.$slots["arrow-up"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(eh),{key:1}))]),_:3},8,["aria-label","disabled"])):a.createCommentVNode("",!0),U.value?(a.openBlock(),a.createBlock(js,{key:2,ref:"rightIcon",disabled:a.unref(c)(!0),"aria-label":(Ee=a.unref(o).ariaLabels)==null?void 0:Ee.nextMonth,onActivate:R[7]||(R[7]=fe=>a.unref(u)(!0)),onSetRef:R[8]||(R[8]=fe=>E(fe,3))},{default:a.withCtx(()=>[P.$slots[P.vertical?"arrow-down":"arrow-right"]?a.renderSlot(P.$slots,P.vertical?"arrow-down":"arrow-right",{key:0}):a.createCommentVNode("",!0),P.$slots[P.vertical?"arrow-down":"arrow-right"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(P.vertical?a.unref(th):a.unref(od)),{key:1}))]),_:3},8,["disabled","aria-label"])):a.createCommentVNode("",!0)],64)):a.createCommentVNode("",!0),P.monthPicker?(a.openBlock(),a.createBlock(to,a.mergeProps({key:1},C.value("month"),{"skip-active":P.range,"internal-model-value":e.internalModelValue,year:e.year,"auto-apply-month":P.autoApplyMonth,"multi-model-value":D.value,"month-picker":"",modelValue:T.value,"onUpdate:modelValue":R[17]||(R[17]=fe=>T.value=fe),onToggle:H,onSelected:R[18]||(R[18]=fe=>P.$emit("overlay-closed"))}),a.createSlots({header:a.withCtx(()=>{var fe,Be,$e;return[a.createElementVNode("div",dT,[a.createElementVNode("div",{class:"dp__month_year_col_nav",tabindex:"0",ref_key:"mpPrevIconRef",ref:y,onClick:R[9]||(R[9]=ze=>V(!1)),onKeydown:R[10]||(R[10]=a.withKeys(ze=>V(!1),["enter"]))},[a.createElementVNode("div",{class:a.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:a.unref(c)(!1)}]),role:"button","aria-label":(fe=a.unref(o).ariaLabels)==null?void 0:fe.prevMonth},[P.$slots["arrow-left"]?a.renderSlot(P.$slots,"arrow-left",{key:0}):a.createCommentVNode("",!0),P.$slots["arrow-left"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(ad),{key:1}))],10,fT)],544),a.createElementVNode("div",{class:"dp__pointer",role:"button",ref_key:"mpYearButtonRef",ref:k,"aria-label":(Be=a.unref(o).ariaLabels)==null?void 0:Be.openYearsOverlay,tabindex:"0",onClick:R[11]||(R[11]=()=>Z(!1)),onKeydown:R[12]||(R[12]=a.withKeys(()=>Z(!1),["enter"]))},[P.$slots.year?a.renderSlot(P.$slots,"year",{key:0,year:e.year}):a.createCommentVNode("",!0),P.$slots.year?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(e.year),1)],64))],40,pT),a.createElementVNode("div",{class:"dp__month_year_col_nav",tabindex:"0",ref_key:"mpNextIconRef",ref:b,onClick:R[13]||(R[13]=ze=>V(!0)),onKeydown:R[14]||(R[14]=a.withKeys(ze=>V(!0),["enter"]))},[a.createElementVNode("div",{class:a.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:a.unref(c)(!0)}]),role:"button","aria-label":($e=a.unref(o).ariaLabels)==null?void 0:$e.nextMonth},[P.$slots["arrow-right"]?a.renderSlot(P.$slots,"arrow-right",{key:0}):a.createCommentVNode("",!0),P.$slots["arrow-right"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(od),{key:1}))],10,hT)],544)]),a.createVNode(a.Transition,{name:a.unref(i)(h.value),css:a.unref(s)},{default:a.withCtx(()=>[h.value?(a.openBlock(),a.createBlock(to,a.mergeProps({key:0},C.value("year"),{modelValue:O.value,"onUpdate:modelValue":R[15]||(R[15]=ze=>O.value=ze),onToggle:Z,onSelected:R[16]||(R[16]=ze=>P.$emit("overlay-closed"))}),a.createSlots({"button-icon":a.withCtx(()=>[P.$slots["calendar-icon"]?a.renderSlot(P.$slots,"calendar-icon",{key:0}):a.createCommentVNode("",!0),P.$slots["calendar-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Ui),{key:1}))]),_:2},[P.$slots["year-overlay-value"]?{name:"item",fn:a.withCtx(({item:ze})=>[a.renderSlot(P.$slots,"year-overlay-value",{text:ze.text,value:ze.value})]),key:"0"}:void 0]),1040,["modelValue"])):a.createCommentVNode("",!0)]),_:3},8,["name","css"])]}),_:2},[P.$slots["month-overlay-value"]?{name:"item",fn:a.withCtx(({item:fe})=>[a.renderSlot(P.$slots,"month-overlay-value",{text:fe.text,value:fe.value})]),key:"0"}:void 0]),1040,["skip-active","internal-model-value","year","auto-apply-month","multi-model-value","modelValue"])):a.createCommentVNode("",!0),P.yearPicker?(a.openBlock(),a.createBlock(to,a.mergeProps({key:2},C.value("year"),{modelValue:O.value,"onUpdate:modelValue":R[19]||(R[19]=fe=>O.value=fe),"multi-model-value":D.value,"skip-active":P.range,"skip-button-ref":"","year-picker":"",onToggle:Z,onSelected:R[20]||(R[20]=fe=>P.$emit("overlay-closed"))}),a.createSlots({_:2},[P.$slots["year-overlay-value"]?{name:"item",fn:a.withCtx(({item:fe})=>[a.renderSlot(P.$slots,"year-overlay-value",{text:fe.text,value:fe.value})]),key:"0"}:void 0]),1040,["modelValue","multi-model-value","skip-active"])):a.createCommentVNode("",!0)],64))])}}}),vT={key:0,class:"dp__time_input"},gT=["aria-label","onKeydown","onClick"],yT=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),bT=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),_T=["aria-label","onKeydown","onClick"],wT=["aria-label","onKeydown","onClick"],kT=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),ST=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),CT={key:0},TT=["aria-label","onKeydown"],ET=a.defineComponent({__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},...xr},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const r=e,{setTimePickerElements:o,setTimePickerBackRef:i}=Er(),{defaults:s}=fn(r),{transitionName:l,showTransition:u}=zi(s.value.transitions),c=a.reactive({hours:!1,minutes:!1,seconds:!1}),f=a.ref("AM"),p=a.ref(null),h=a.ref([]);a.onMounted(()=>{n("mounted")});const m=S=>Ot(new Date,{hours:S.hours,minutes:S.minutes,seconds:r.enableSeconds?S.seconds:0,milliseconds:0}),y=a.computed(()=>({hours:r.hours,minutes:r.minutes,seconds:r.seconds})),k=a.computed(()=>S=>!F(+r[S]+ +r[`${S}Increment`],S)),b=a.computed(()=>S=>!F(+r[S]-+r[`${S}Increment`],S)),w=(S,H)=>Bp(Ot(ae(),S),H),T=(S,H)=>Jk(Ot(ae(),S),H),O=a.computed(()=>({dp__time_col:!0,dp__time_col_block:!r.timePickerInline,dp__time_col_reg_block:!r.enableSeconds&&r.is24&&!r.timePickerInline,dp__time_col_reg_inline:!r.enableSeconds&&r.is24&&r.timePickerInline,dp__time_col_reg_with_button:!r.enableSeconds&&!r.is24,dp__time_col_sec:r.enableSeconds&&r.is24,dp__time_col_sec_with_button:r.enableSeconds&&!r.is24})),_=a.computed(()=>{const S=[{type:"hours"},{type:"",separator:!0},{type:"minutes"}];return r.enableSeconds?S.concat([{type:"",separator:!0},{type:"seconds"}]):S}),B=a.computed(()=>_.value.filter(S=>!S.separator)),C=a.computed(()=>S=>{if(S==="hours"){const H=Y(+r.hours);return{text:H<10?`0${H}`:`${H}`,value:H}}return{text:r[S]<10?`0${r[S]}`:`${r[S]}`,value:r[S]}}),I=S=>{const H=r.is24?24:12,Z=S==="hours"?H:60,Q=+r[`${S}GridIncrement`],V=S==="hours"&&!r.is24?Q:0,E=[];for(let P=V;P<Z;P+=Q)E.push({value:P,text:P<10?`0${P}`:`${P}`});return S==="hours"&&!r.is24&&E.push({value:0,text:"12"}),bC(E)},F=(S,H)=>{const Z=r.minTime?m(Rs(r.minTime)):null,Q=r.maxTime?m(Rs(r.maxTime)):null,V=m(Rs(y.value,H,S));return Z&&Q?(vo(V,Q)||Vr(V,Q))&&(mo(V,Z)||Vr(V,Z)):Z?mo(V,Z)||Vr(V,Z):Q?vo(V,Q)||Vr(V,Q):!0},q=a.computed(()=>S=>I(S).flat().filter(H=>EC(H.value)).map(H=>H.value).filter(H=>!F(H,S))),W=S=>r[`no${S[0].toUpperCase()+S.slice(1)}Overlay`],M=S=>{W(S)||(c[S]=!c[S],c[S]||n("overlay-closed"))},D=S=>S==="hours"?ir:S==="minutes"?sr:Ta,$=(S,H=!0)=>{const Z=H?w:T,Q=H?+r[`${S}Increment`]:-+r[`${S}Increment`];F(+r[S]+Q,S)&&n(`update:${S}`,D(S)(Z({[S]:+r[S]},{[S]:+r[`${S}Increment`]})))},Y=S=>r.is24?S:(S>=12?f.value="PM":f.value="AM",CC(S)),X=()=>{f.value==="PM"?(f.value="AM",n("update:hours",r.hours-12)):(f.value="PM",n("update:hours",r.hours+12)),n("am-pm-change",f.value)},K=S=>{c[S]=!0},j=(S,H,Z)=>{if(S&&r.arrowNavigation){Array.isArray(h.value[H])?h.value[H][Z]=S:h.value[H]=[S];const Q=h.value.reduce((V,E)=>E.map((P,R)=>[...V[R]||[],E[R]]),[]);i(r.closeTimePickerBtn),p.value&&(Q[1]=Q[1].concat(p.value)),o(Q,r.order)}},U=(S,H)=>S==="hours"&&!r.is24?n(`update:${S}`,f.value==="PM"?H+12:H):n(`update:${S}`,H);return t({openChildCmp:K}),(S,H)=>{var Z;return S.disabled?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",vT,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(_.value,(Q,V)=>{var E,P,R;return a.openBlock(),a.createElementBlock("div",{key:V,class:a.normalizeClass(O.value)},[Q.separator?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(" : ")],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("button",{type:"button",class:a.normalizeClass({dp__btn:!0,dp__inc_dec_button:!r.timePickerInline,dp__inc_dec_button_inline:r.timePickerInline,dp__tp_inline_btn_top:r.timePickerInline,dp__inc_dec_button_disabled:k.value(Q.type)}),"aria-label":(E=a.unref(s).ariaLabels)==null?void 0:E.incrementValue(Q.type),tabindex:"0",onKeydown:[a.withKeys(G=>$(Q.type),["enter"]),a.withKeys(G=>$(Q.type),["space"])],onClick:G=>$(Q.type),ref_for:!0,ref:G=>j(G,V,0)},[r.timePickerInline?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[yT,bT],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[S.$slots["arrow-up"]?a.renderSlot(S.$slots,"arrow-up",{key:0}):a.createCommentVNode("",!0),S.$slots["arrow-up"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(eh),{key:1}))],64))],42,gT),a.createElementVNode("button",{type:"button","aria-label":(P=a.unref(s).ariaLabels)==null?void 0:P.openTpOverlay(Q.type),class:a.normalizeClass(["dp__btn",W(Q.type)?void 0:{dp__time_display:!0,dp__time_display_block:!r.timePickerInline,dp__time_display_inline:r.timePickerInline}]),tabindex:"0",onKeydown:[a.withKeys(G=>M(Q.type),["enter"]),a.withKeys(G=>M(Q.type),["space"])],onClick:G=>M(Q.type),ref_for:!0,ref:G=>j(G,V,1)},[S.$slots[Q.type]?a.renderSlot(S.$slots,Q.type,{key:0,text:C.value(Q.type).text,value:C.value(Q.type).value}):a.createCommentVNode("",!0),S.$slots[Q.type]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(C.value(Q.type).text),1)],64))],42,_T),a.createElementVNode("button",{type:"button",class:a.normalizeClass({dp__btn:!0,dp__inc_dec_button:!r.timePickerInline,dp__inc_dec_button_inline:r.timePickerInline,dp__tp_inline_btn_bottom:r.timePickerInline,dp__inc_dec_button_disabled:b.value(Q.type)}),"aria-label":(R=a.unref(s).ariaLabels)==null?void 0:R.decrementValue(Q.type),tabindex:"0",onKeydown:[a.withKeys(G=>$(Q.type,!1),["enter"]),a.withKeys(G=>$(Q.type,!1),["space"])],onClick:G=>$(Q.type,!1),ref_for:!0,ref:G=>j(G,V,2)},[r.timePickerInline?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[kT,ST],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[S.$slots["arrow-down"]?a.renderSlot(S.$slots,"arrow-down",{key:0}):a.createCommentVNode("",!0),S.$slots["arrow-down"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(th),{key:1}))],64))],42,wT)],64))],2)}),128)),S.is24?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",CT,[S.$slots["am-pm-button"]?a.renderSlot(S.$slots,"am-pm-button",{key:0,toggle:X,value:f.value}):a.createCommentVNode("",!0),S.$slots["am-pm-button"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:1,ref_key:"amPmButton",ref:p,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(Z=a.unref(s).ariaLabels)==null?void 0:Z.amPmButton,tabindex:"0",onClick:X,onKeydown:[a.withKeys(a.withModifiers(X,["prevent"]),["enter"]),a.withKeys(a.withModifiers(X,["prevent"]),["space"])]},a.toDisplayString(f.value),41,TT))])),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(B.value,(Q,V)=>(a.openBlock(),a.createBlock(a.Transition,{key:V,name:a.unref(l)(c[Q.type]),css:a.unref(u)},{default:a.withCtx(()=>[c[Q.type]?(a.openBlock(),a.createBlock(to,{key:0,items:I(Q.type),"disabled-values":a.unref(s).filters.times[Q.type].concat(q.value(Q.type)),"esc-close":S.escClose,"aria-labels":a.unref(s).ariaLabels,"hide-navigation":S.hideNavigation,"onUpdate:modelValue":E=>U(Q.type,E),onSelected:E=>M(Q.type),onToggle:E=>M(Q.type),onResetFlow:H[0]||(H[0]=E=>S.$emit("reset-flow")),type:Q.type},a.createSlots({"button-icon":a.withCtx(()=>[S.$slots["clock-icon"]?a.renderSlot(S.$slots,"clock-icon",{key:0}):a.createCommentVNode("",!0),S.$slots["clock-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Zp),{key:1}))]),_:2},[S.$slots[`${Q.type}-overlay-value`]?{name:"item",fn:a.withCtx(({item:E})=>[a.renderSlot(S.$slots,`${Q.type}-overlay-value`,{text:E.text,value:E.value})]),key:"0"}:void 0]),1032,["items","disabled-values","esc-close","aria-labels","hide-navigation","onUpdate:modelValue","onSelected","onToggle","type"])):a.createCommentVNode("",!0)]),_:2},1032,["name","css"]))),128))]))}}}),xT=["aria-label"],PT=["tabindex"],IT=["aria-label"],DT=a.defineComponent({__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},internalModelValue:{type:[Date,Array],default:null},...xr},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const r=e,{buildMatrix:o,setTimePicker:i}=Er(),s=a.useSlots(),{hideNavigationButtons:l,defaults:u}=fn(r),{transitionName:c,showTransition:f}=zi(u.value.transitions),p=a.ref(null),h=a.ref(null),m=a.ref([]),y=a.ref(null);a.onMounted(()=>{n("mount"),!r.timePicker&&r.arrowNavigation?o([wt(p.value)],"time"):i(!0,r.timePicker)});const k=a.computed(()=>r.range&&r.modelAuto?sh(r.internalModelValue):!0),b=a.ref(!1),w=M=>({hours:Array.isArray(r.hours)?r.hours[M]:r.hours,minutes:Array.isArray(r.minutes)?r.minutes[M]:r.minutes,seconds:Array.isArray(r.seconds)?r.seconds[M]:r.seconds}),T=a.computed(()=>{const M=[];if(r.range)for(let D=0;D<2;D++)M.push(w(D));else M.push(w(0));return M}),O=(M,D=!1,$="")=>{D||n("reset-flow"),b.value=M,n(M?"overlay-opened":"overlay-closed"),r.arrowNavigation&&i(M),a.nextTick(()=>{$!==""&&m.value[0]&&m.value[0].openChildCmp($)})},_=a.computed(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:r.autoApply&&!r.keepActionRow})),B=Fr(s,"timePicker"),C=(M,D,$)=>r.range?D===0?[M,T.value[1][$]]:[T.value[0][$],M]:M,I=M=>{n("update:hours",M)},F=M=>{n("update:minutes",M)},q=M=>{n("update:seconds",M)},W=()=>{if(y.value){const M=xC(y.value);M&&M.focus({preventScroll:!0})}};return t({toggleTimePicker:O}),(M,D)=>{var $;return a.openBlock(),a.createElementBlock("div",null,[!M.timePicker&&!M.timePickerInline?a.withDirectives((a.openBlock(),a.createElementBlock("button",{key:0,type:"button",class:a.normalizeClass(_.value),"aria-label":($=a.unref(u).ariaLabels)==null?void 0:$.openTimePicker,tabindex:"0",ref_key:"openTimePickerBtn",ref:p,onKeydown:[D[0]||(D[0]=a.withKeys(Y=>O(!0),["enter"])),D[1]||(D[1]=a.withKeys(Y=>O(!0),["space"]))],onClick:D[2]||(D[2]=Y=>O(!0))},[M.$slots["clock-icon"]?a.renderSlot(M.$slots,"clock-icon",{key:0}):a.createCommentVNode("",!0),M.$slots["clock-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Zp),{key:1}))],42,xT)),[[a.vShow,!a.unref(l)("time")]]):a.createCommentVNode("",!0),a.createVNode(a.Transition,{name:a.unref(c)(b.value),css:a.unref(f)&&!M.timePickerInline},{default:a.withCtx(()=>{var Y;return[b.value||M.timePicker||M.timePickerInline?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass({dp__overlay:!M.timePickerInline}),ref_key:"overlayRef",ref:y,tabindex:M.timePickerInline?void 0:0},[a.createElementVNode("div",{class:a.normalizeClass(M.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[M.$slots["time-picker-overlay"]?a.renderSlot(M.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:I,setMinutes:F,setSeconds:q}):a.createCommentVNode("",!0),M.$slots["time-picker-overlay"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(M.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(T.value,(X,K)=>a.withDirectives((a.openBlock(),a.createBlock(ET,a.mergeProps({key:K},{...M.$props,order:K,hours:X.hours,minutes:X.minutes,seconds:X.seconds,closeTimePickerBtn:h.value,disabled:K===0?M.fixedStart:M.fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:m,"onUpdate:hours":j=>I(C(j,K,"hours")),"onUpdate:minutes":j=>F(C(j,K,"minutes")),"onUpdate:seconds":j=>q(C(j,K,"seconds")),onMounted:W,onOverlayClosed:W,onAmPmChange:D[3]||(D[3]=j=>M.$emit("am-pm-change",j))}),a.createSlots({_:2},[a.renderList(a.unref(B),(j,U)=>({name:j,fn:a.withCtx(S=>[a.renderSlot(M.$slots,j,a.normalizeProps(a.guardReactiveProps(S)))])}))]),1040,["onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[a.vShow,K===0?!0:k.value]])),128))],2)),!M.timePicker&&!M.timePickerInline?a.withDirectives((a.openBlock(),a.createElementBlock("button",{key:2,type:"button",ref_key:"closeTimePickerBtn",ref:h,class:a.normalizeClass(_.value),"aria-label":(Y=a.unref(u).ariaLabels)==null?void 0:Y.closeTimePicker,tabindex:"0",onKeydown:[D[4]||(D[4]=a.withKeys(X=>O(!1),["enter"])),D[5]||(D[5]=a.withKeys(X=>O(!1),["space"]))],onClick:D[6]||(D[6]=X=>O(!1))},[M.$slots["calendar-icon"]?a.renderSlot(M.$slots,"calendar-icon",{key:0}):a.createCommentVNode("",!0),M.$slots["calendar-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Ui),{key:1}))],42,IT)),[[a.vShow,!a.unref(l)("time")]]):a.createCommentVNode("",!0)],2)],10,PT)):a.createCommentVNode("",!0)]}),_:3},8,["name","css"])])}}}),NT=(e,t)=>{const{isDisabled:n,matchDate:r,getWeekFromDate:o,defaults:i}=fn(t),s=a.ref(null),l=a.ref(ae()),u=S=>{!S.current&&t.hideOffsetDates||(s.value=S.value)},c=()=>{s.value=null},f=S=>Array.isArray(e.value)&&t.range&&e.value[0]&&s.value?S?nn(s.value,e.value[0]):qt(s.value,e.value[0]):!0,p=(S,H)=>{const Z=()=>e.value?H?e.value[0]||null:e.value[1]:null,Q=e.value&&Array.isArray(e.value)?Z():null;return ot(ae(S.value),Q)},h=S=>{const H=Array.isArray(e.value)?e.value[0]:null;return S?!qt(s.value||null,H):!0},m=(S,H=!0)=>(t.range||t.weekPicker)&&Array.isArray(e.value)&&e.value.length===2?t.hideOffsetDates&&!S.current?!1:ot(ae(S.value),e.value[H?0:1]):t.range?p(S,H)&&h(H)||ot(S.value,Array.isArray(e.value)?e.value[0]:null)&&f(H):!1,y=(S,H,Z)=>Array.isArray(e.value)&&e.value[0]&&e.value.length===1?S?!1:Z?nn(e.value[0],H.value):qt(e.value[0],H.value):!1,k=S=>!e.value||t.hideOffsetDates&&!S.current?!1:t.range?t.modelAuto&&Array.isArray(e.value)?ot(S.value,e.value[0]?e.value[0]:l.value):!1:t.multiDates&&Array.isArray(e.value)?e.value.some(H=>ot(H,S.value)):ot(S.value,e.value?e.value:l.value),b=S=>{if(t.autoRange||t.weekPicker){if(s.value){if(t.hideOffsetDates&&!S.current)return!1;const H=lr(s.value,+t.autoRange),Z=o(ae(s.value));return t.weekPicker?ot(Z[1],ae(S.value)):ot(H,ae(S.value))}return!1}return!1},w=S=>{if(t.autoRange||t.weekPicker){if(s.value){const H=lr(s.value,+t.autoRange);if(t.hideOffsetDates&&!S.current)return!1;const Z=o(ae(s.value));return t.weekPicker?nn(S.value,Z[0])&&qt(S.value,Z[1]):nn(S.value,s.value)&&qt(S.value,H)}return!1}return!1},T=S=>{if(t.autoRange||t.weekPicker){if(s.value){if(t.hideOffsetDates&&!S.current)return!1;const H=o(ae(s.value));return t.weekPicker?ot(H[0],S.value):ot(s.value,S.value)}return!1}return!1},O=S=>nh(e.value,s.value,S.value),_=()=>t.modelAuto&&Array.isArray(t.internalModelValue)?!!t.internalModelValue[0]:!1,B=()=>t.modelAuto?sh(t.internalModelValue):!0,C=S=>{if(Array.isArray(e.value)&&e.value.length||t.weekPicker)return!1;const H=t.range?!m(S)&&!m(S,!1):!0;return!n(S.value)&&!k(S)&&!(!S.current&&t.hideOffsetDates)&&H},I=S=>t.range?t.modelAuto?_()&&k(S):!1:k(S),F=S=>{var H;return t.highlight?r(S.value,(H=t.arrMapValues)!=null&&H.highlightedDates?t.arrMapValues.highlightedDates:t.highlight):!1},q=S=>n(S.value)&&t.highlightDisabledDays===!1,W=S=>t.highlightWeekDays&&t.highlightWeekDays.includes(S.value.getDay()),M=S=>(t.range||t.weekPicker)&&(!(i.value.multiCalendars>0)||S.current)&&B()&&!(!S.current&&t.hideOffsetDates)&&!k(S)?O(S):!1,D=S=>{const{isRangeStart:H,isRangeEnd:Z}=X(S),Q=t.range?H||Z:!1;return{dp__cell_offset:!S.current,dp__pointer:!t.disabled&&!(!S.current&&t.hideOffsetDates)&&!n(S.value),dp__cell_disabled:n(S.value),dp__cell_highlight:!q(S)&&(F(S)||W(S))&&!I(S)&&!Q,dp__cell_highlight_active:!q(S)&&(F(S)||W(S))&&I(S),dp__today:!t.noToday&&ot(S.value,l.value)&&S.current}},$=S=>({dp__active_date:I(S),dp__date_hover:C(S)}),Y=S=>({...K(S),...j(S),dp__range_between_week:M(S)&&t.weekPicker}),X=S=>{const H=i.value.multiCalendars>0?S.current&&m(S)&&B():m(S)&&B(),Z=i.value.multiCalendars>0?S.current&&m(S,!1)&&B():m(S,!1)&&B();return{isRangeStart:H,isRangeEnd:Z}},K=S=>{const{isRangeStart:H,isRangeEnd:Z}=X(S);return{dp__range_start:H,dp__range_end:Z,dp__range_between:M(S)&&!t.weekPicker,dp__date_hover_start:y(C(S),S,!0),dp__date_hover_end:y(C(S),S,!1)}},j=S=>({...K(S),dp__cell_auto_range:w(S),dp__cell_auto_range_start:T(S),dp__cell_auto_range_end:b(S)}),U=S=>t.range?t.autoRange?j(S):t.modelAuto?{...$(S),...K(S)}:K(S):t.weekPicker?Y(S):$(S);return{setHoverDate:u,clearHoverDate:c,getDayClassData:S=>t.hideOffsetDates&&!S.current?{}:{...D(S),...U(S),[t.dayClass?t.dayClass(S.value):""]:!0,[t.calendarCellClassName]:!!t.calendarCellClassName}}},OT=["id","onKeydown"],BT={key:0,class:"dp__sidebar_left"},MT={key:1,class:"dp__preset_ranges"},RT=["onClick"],AT={key:2,class:"dp__sidebar_right"},$T={key:3,class:"dp__action_extra"},LT=a.defineComponent({__name:"DatepickerMenu",props:{openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},arrMapValues:{type:Object,default:()=>({})},...xr},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end"],setup(e,{expose:t,emit:n}){const r=e,o=a.computed(()=>{const{openOnTop:J,internalModelValue:le,arrMapValues:Le,...De}=r;return De}),{setMenuFocused:i,setShiftKey:s,control:l}=rh(),{getCalendarDays:u,defaults:c}=fn(r),f=a.useSlots(),p=a.ref(null),h=a.reactive({timePicker:!!(!r.enableTimePicker||r.timePicker||r.monthPicker),monthYearInput:!!r.timePicker,calendar:!1}),m=a.ref([]),y=a.ref([]),k=a.ref(null),b=a.ref(null),w=a.ref(0),T=a.ref(!1),O=a.ref(0);a.onMounted(()=>{var J;T.value=!0,!((J=r.presetRanges)!=null&&J.length)&&!f["left-sidebar"]&&!f["right-sidebar"]&&(Qe(),window.addEventListener("resize",Qe));const le=wt(b);if(le&&!r.textInput&&!r.inline&&(i(!0),q()),le){const Le=De=>{r.allowPreventDefault&&De.preventDefault(),De.stopImmediatePropagation(),De.stopPropagation()};le.addEventListener("pointerdown",Le),le.addEventListener("mousedown",Le)}}),a.onUnmounted(()=>{window.removeEventListener("resize",Qe)});const{arrowRight:_,arrowLeft:B,arrowDown:C,arrowUp:I}=Er(),F=J=>{J||J===0?y.value[J].triggerTransition(Y.value(J),X.value(J)):y.value.forEach((le,Le)=>le.triggerTransition(Y.value(Le),X.value(Le)))},q=()=>{const J=wt(b);J&&J.focus({preventScroll:!0})},W=()=>{var J;(J=r.flow)!=null&&J.length&&O.value!==-1&&(O.value+=1,n("flow-step",O.value),ee())},M=()=>{O.value=-1},{calendars:D,modelValue:$,month:Y,year:X,time:K,updateTime:j,updateMonthYear:U,selectDate:S,getWeekNum:H,monthYearSelect:Z,handleScroll:Q,handleArrow:V,handleSwipe:E,getMarker:P,selectCurrentDate:R,presetDateRange:G}=RC(r,n,W,F,O),{setHoverDate:ie,clearHoverDate:oe,getDayClassData:Ie}=NT($,r),Ee={modelValue:$,month:Y,year:X,time:K,updateTime:j,updateMonthYear:U,selectDate:S,presetDateRange:G,handleMonthYearChange:J=>{m.value[0]&&m.value[0].handleMonthYearChange(J)}};a.watch(D,()=>{r.openOnTop&&setTimeout(()=>{n("recalculate-position")},0)},{deep:!0});const fe=Fr(f,"calendar"),Be=Fr(f,"action"),$e=Fr(f,"timePicker"),ze=Fr(f,"monthYear"),Ge=a.computed(()=>r.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),Ke=a.computed(()=>kC(r.yearRange,r.reverseYears)),ve=a.computed(()=>SC(r.formatLocale,r.locale,r.monthNameFormat)),Qe=()=>{const J=wt(p);J&&(w.value=J.getBoundingClientRect().width)},Te=a.computed(()=>J=>u(Y.value(J),X.value(J))),se=a.computed(()=>c.value.multiCalendars>0?[...Array(c.value.multiCalendars).keys()]:[0]),ce=a.computed(()=>J=>J===1),me=a.computed(()=>r.monthPicker||r.timePicker||r.yearPicker),Pt=a.computed(()=>({dp__menu_inner:!0,dp__flex_display:c.value.multiCalendars>0})),xe=a.computed(()=>({dp__instance_calendar:c.value.multiCalendars>0})),Mt=a.computed(()=>({dp__menu_disabled:r.disabled,dp__menu_readonly:r.readonly})),Ut=a.computed(()=>J=>zt(Te,J)),Rt=a.computed(()=>({dp__menu:!0,dp__menu_index:!r.inline,dp__relative:r.inline,[r.menuClassName]:!!r.menuClassName})),zt=(J,le)=>J.value(le).map(Le=>({...Le,days:Le.days.map(De=>(De.marker=P(De),De.classData=Ie(De),De))})),kn=J=>{J.stopPropagation(),J.stopImmediatePropagation()},Sn=()=>{r.escClose&&n("close-picker")},Et=(J,le=!1)=>{S(J,le),r.spaceConfirm&&n("select-date")},L=J=>{var le;(le=r.flow)!=null&&le.length&&(h[J]=!0,Object.keys(h).filter(Le=>!h[Le]).length||ee())},N=(J,le,Le,De,...st)=>{if(r.flow[O.value]===J){const pe=De?le.value[0]:le.value;pe&&pe[Le](...st)}},ee=()=>{N("month",m,"toggleMonthPicker",!0,!0),N("year",m,"toggleYearPicker",!0,!0),N("calendar",k,"toggleTimePicker",!1,!1,!0),N("time",k,"toggleTimePicker",!1,!0,!0);const J=r.flow[O.value];(J==="hours"||J==="minutes"||J==="seconds")&&N(J,k,"toggleTimePicker",!1,!0,!0,J)},re=J=>{if(r.arrowNavigation){if(J==="up")return I();if(J==="down")return C();if(J==="left")return B();if(J==="right")return _()}else J==="left"||J==="up"?V("left",0,J==="up"):V("right",0,J==="down")},ge=J=>{s(J.shiftKey),!r.disableMonthYearSelect&&J.code==="Tab"&&J.target.classList.contains("dp__menu")&&l.value.shiftKeyInMenu&&(J.preventDefault(),J.stopImmediatePropagation(),n("close-picker"))},we=()=>{q(),n("time-picker-close")},qe=J=>{var le,Le,De,st,pe;(le=k.value)==null||le.toggleTimePicker(!1,!1),(De=(Le=m.value)==null?void 0:Le[J])==null||De.toggleMonthPicker(!1,!1),(pe=(st=m.value)==null?void 0:st[J])==null||pe.toggleYearPicker(!1,!1)};return t({updateMonthYear:U,switchView:(J,le=0)=>{var Le,De,st,pe,mt;return J==="month"?(De=(Le=m.value)==null?void 0:Le[le])==null?void 0:De.toggleMonthPicker(!1,!0):J==="year"?(pe=(st=m.value)==null?void 0:st[le])==null?void 0:pe.toggleYearPicker(!1,!0):J==="time"?(mt=k.value)==null?void 0:mt.toggleTimePicker(!0,!1):qe(le)}}),(J,le)=>{var Le;return a.openBlock(),a.createBlock(a.Transition,{appear:"",name:(Le=a.unref(c).transitions)==null?void 0:Le.menuAppear,css:!!J.transitions},{default:a.withCtx(()=>{var De,st;return[a.createElementVNode("div",{id:J.uid?`dp-menu-${J.uid}`:void 0,tabindex:"0",ref_key:"dpMenuRef",ref:b,role:"dialog",class:a.normalizeClass(Rt.value),onMouseleave:le[14]||(le[14]=(...pe)=>a.unref(oe)&&a.unref(oe)(...pe)),onClick:kn,onKeydown:[a.withKeys(Sn,["esc"]),le[15]||(le[15]=a.withKeys(a.withModifiers(pe=>re("left"),["prevent"]),["left"])),le[16]||(le[16]=a.withKeys(a.withModifiers(pe=>re("up"),["prevent"]),["up"])),le[17]||(le[17]=a.withKeys(a.withModifiers(pe=>re("down"),["prevent"]),["down"])),le[18]||(le[18]=a.withKeys(a.withModifiers(pe=>re("right"),["prevent"]),["right"])),ge]},[(J.disabled||J.readonly)&&J.inline?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(Mt.value)},null,2)):a.createCommentVNode("",!0),!J.inline&&!J.teleportCenter?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(Ge.value)},null,2)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass({dp__menu_content_wrapper:((De=J.presetRanges)==null?void 0:De.length)||!!J.$slots["left-sidebar"]||!!J.$slots["right-sidebar"]})},[J.$slots["left-sidebar"]?(a.openBlock(),a.createElementBlock("div",BT,[a.renderSlot(J.$slots,"left-sidebar",a.normalizeProps(a.guardReactiveProps(Ee)))])):a.createCommentVNode("",!0),(st=J.presetRanges)!=null&&st.length?(a.openBlock(),a.createElementBlock("div",MT,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(J.presetRanges,(pe,mt)=>(a.openBlock(),a.createElementBlock("div",{key:mt,style:a.normalizeStyle(pe.style||{}),class:"dp__preset_range",onClick:Me=>a.unref(G)(pe.range,!!pe.slot)},[pe.slot?a.renderSlot(J.$slots,pe.slot,{key:0,presetDateRange:a.unref(G),label:pe.label,range:pe.range}):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(pe.label),1)],64))],12,RT))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"dp__instance_calendar",ref_key:"calendarWrapperRef",ref:p,role:"document"},[a.createElementVNode("div",{class:a.normalizeClass(Pt.value)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(se.value,(pe,mt)=>(a.openBlock(),a.createElementBlock("div",{key:pe,class:a.normalizeClass(xe.value)},[!J.disableMonthYearSelect&&!J.timePicker?(a.openBlock(),a.createBlock(mT,a.mergeProps({key:0,ref_for:!0,ref:Me=>{Me&&(m.value[mt]=Me)},months:ve.value,years:Ke.value,month:a.unref(Y)(pe),year:a.unref(X)(pe),instance:pe,"internal-model-value":e.internalModelValue},o.value,{onMount:le[0]||(le[0]=Me=>L("monthYearInput")),onResetFlow:M,onUpdateMonthYear:Me=>a.unref(U)(pe,Me),onMonthYearSelect:a.unref(Z),onOverlayClosed:q}),a.createSlots({_:2},[a.renderList(a.unref(ze),(Me,ln)=>({name:Me,fn:a.withCtx(At=>[a.renderSlot(J.$slots,Me,a.normalizeProps(a.guardReactiveProps(At)))])}))]),1040,["months","years","month","year","instance","internal-model-value","onUpdateMonthYear","onMonthYearSelect"])):a.createCommentVNode("",!0),a.createVNode(rT,a.mergeProps({ref_for:!0,ref:Me=>{Me&&(y.value[mt]=Me)},"specific-mode":me.value,"get-week-num":a.unref(H),instance:pe,"mapped-dates":Ut.value(pe),month:a.unref(Y)(pe),year:a.unref(X)(pe)},o.value,{onSelectDate:Me=>a.unref(S)(Me,!ce.value(pe)),onHandleSpace:Me=>Et(Me,!ce.value(pe)),onSetHoverDate:le[1]||(le[1]=Me=>a.unref(ie)(Me)),onHandleScroll:Me=>a.unref(Q)(Me,pe),onHandleSwipe:Me=>a.unref(E)(Me,pe),onMount:le[2]||(le[2]=Me=>L("calendar")),onResetFlow:M,onTooltipOpen:le[3]||(le[3]=Me=>J.$emit("tooltip-open",Me)),onTooltipClose:le[4]||(le[4]=Me=>J.$emit("tooltip-close",Me))}),a.createSlots({_:2},[a.renderList(a.unref(fe),(Me,ln)=>({name:Me,fn:a.withCtx(At=>[a.renderSlot(J.$slots,Me,a.normalizeProps(a.guardReactiveProps({...At})))])}))]),1040,["specific-mode","get-week-num","instance","mapped-dates","month","year","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])],2))),128))],2),a.createElementVNode("div",null,[J.$slots["time-picker"]?a.renderSlot(J.$slots,"time-picker",a.normalizeProps(a.mergeProps({key:0},{time:a.unref(K),updateTime:a.unref(j)}))):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[J.enableTimePicker&&!J.monthPicker&&!J.weekPicker?(a.openBlock(),a.createBlock(DT,a.mergeProps({key:0,ref_key:"timePickerRef",ref:k,hours:a.unref(K).hours,minutes:a.unref(K).minutes,seconds:a.unref(K).seconds,"internal-model-value":e.internalModelValue},o.value,{onMount:le[5]||(le[5]=pe=>L("timePicker")),"onUpdate:hours":le[6]||(le[6]=pe=>a.unref(j)(pe)),"onUpdate:minutes":le[7]||(le[7]=pe=>a.unref(j)(pe,!1)),"onUpdate:seconds":le[8]||(le[8]=pe=>a.unref(j)(pe,!1,!0)),onResetFlow:M,onOverlayClosed:we,onOverlayOpened:le[9]||(le[9]=pe=>J.$emit("time-picker-open",pe)),onAmPmChange:le[10]||(le[10]=pe=>J.$emit("am-pm-change",pe))}),a.createSlots({_:2},[a.renderList(a.unref($e),(pe,mt)=>({name:pe,fn:a.withCtx(Me=>[a.renderSlot(J.$slots,pe,a.normalizeProps(a.guardReactiveProps(Me)))])}))]),1040,["hours","minutes","seconds","internal-model-value"])):a.createCommentVNode("",!0)],64))])],512),J.$slots["right-sidebar"]?(a.openBlock(),a.createElementBlock("div",AT,[a.renderSlot(J.$slots,"right-sidebar",a.normalizeProps(a.guardReactiveProps(Ee)))])):a.createCommentVNode("",!0),J.$slots["action-extra"]?(a.openBlock(),a.createElementBlock("div",$T,[J.$slots["action-extra"]?a.renderSlot(J.$slots,"action-extra",{key:0,selectCurrentDate:a.unref(R)}):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)],2),!J.autoApply||J.keepActionRow?(a.openBlock(),a.createBlock(GC,a.mergeProps({key:2,"menu-mount":T.value,"calendar-width":w.value,"internal-model-value":e.internalModelValue},o.value,{onClosePicker:le[11]||(le[11]=pe=>J.$emit("close-picker")),onSelectDate:le[12]||(le[12]=pe=>J.$emit("select-date")),onInvalidSelect:le[13]||(le[13]=pe=>J.$emit("invalid-select")),onSelectNow:a.unref(R)}),a.createSlots({_:2},[a.renderList(a.unref(Be),(pe,mt)=>({name:pe,fn:a.withCtx(Me=>[a.renderSlot(J.$slots,pe,a.normalizeProps(a.guardReactiveProps({...Me})))])}))]),1040,["menu-mount","calendar-width","internal-model-value","onSelectNow"])):a.createCommentVNode("",!0)],42,OT)]}),_:3},8,["name","css"])}}}),VT=typeof window<"u"?window:void 0,Ws=()=>{},FT=e=>a.getCurrentScope()?(a.onScopeDispose(e),!0):!1,HT=(e,t,n,r)=>{if(!e)return Ws;let o=Ws;const i=a.watch(()=>a.unref(e),l=>{o(),l&&(l.addEventListener(t,n,r),o=()=>{l.removeEventListener(t,n,r),o=Ws})},{immediate:!0,flush:"post"}),s=()=>{i(),o()};return FT(s),s},UT=(e,t,n,r={})=>{const{window:o=VT,event:i="pointerdown"}=r;return o?HT(o,i,s=>{const l=wt(e),u=wt(t);!l||!u||l===s.target||s.composedPath().includes(l)||s.composedPath().includes(u)||n(s)},{passive:!0}):void 0},zT=a.defineComponent({__name:"VueDatePicker",props:{...xr},emits:["update:model-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end"],setup(e,{expose:t,emit:n}){const r=e,o=a.useSlots(),i=a.ref(!1),s=a.toRef(r,"modelValue"),l=a.toRef(r,"timezone"),u=a.ref(null),c=a.ref(null),f=a.ref(!1),p=a.ref(null),h=a.reactive({disabledDates:null,allowedDates:null,highlightedDates:null}),{setMenuFocused:m,setShiftKey:y}=rh(),{clearArrowNav:k}=Er(),{validateDate:b,isValidTime:w,defaults:T,mapDatesArrToMap:O}=fn(r);a.onMounted(()=>{Y(r.modelValue),r.inline||(M(p.value).addEventListener("scroll",Z),window.addEventListener("resize",Q)),r.inline&&(i.value=!0),O(h)}),a.onUnmounted(()=>{if(!r.inline){const se=M(p.value);se&&se.removeEventListener("scroll",Z),window.removeEventListener("resize",Q)}});const _=Fr(o,"all",r.presetRanges),B=Fr(o,"input");a.watch([s,l],()=>{Y(s.value)},{deep:!0});const{openOnTop:C,menuStyle:I,resetPosition:F,setMenuPosition:q,setInitialPosition:W,getScrollableParent:M}=LC(u,c,n,r),{inputValue:D,internalModelValue:$,parseExternalModelValue:Y,emitModelValue:X,formatInputValue:K,checkBeforeEmit:j}=AC(n,r,f),U=a.computed(()=>({dp__main:!0,dp__theme_dark:r.dark,dp__theme_light:!r.dark,dp__flex_display:r.inline,dp__flex_display_with_input:r.inlineWithInput})),S=a.computed(()=>r.dark?"dp__theme_dark":"dp__theme_light"),H=a.computed(()=>r.teleport?{to:typeof r.teleport=="boolean"?"body":r.teleport,disabled:r.inline}:{class:"dp__outer_menu_wrap"}),Z=()=>{i.value&&(r.closeOnScroll?Ee():q())},Q=()=>{i.value&&q()},V=async()=>{var se,ce,me;!r.disabled&&!r.readonly&&(F(),await a.nextTick(),i.value=!0,await a.nextTick(),W(),await a.nextTick(),q(),delete I.value.opacity,!((se=T.value.transitions)!=null&&se.menuAppear)&&r.transitions&&((me=(ce=u.value)==null?void 0:ce.$el)==null||me.classList.add("dp__menu_transitioned")),i.value&&n("open"),i.value||Ie(),Y(r.modelValue))},E=()=>{D.value="",Ie(),n("update:model-value",null),n("cleared"),r.closeOnClearValue&&Ee()},P=()=>{const se=$.value;return!se||!Array.isArray(se)&&b(se)?!0:Array.isArray(se)?se.length===2&&b(se[0])&&b(se[1])?!0:b(se[0]):!1},R=()=>{j()&&P()?(X(),Ee()):n("invalid-select",$.value)},G=se=>{ie(),X(),r.closeOnAutoApply&&!se&&Ee()},ie=()=>{c.value&&r.textInput&&c.value.setParsedDate($.value)},oe=(se=!1)=>{r.autoApply&&w($.value)&&P()&&(r.range&&Array.isArray($.value)?(r.partialRange||$.value.length===2)&&G(se):G(se))},Ie=()=>{r.textInput||($.value=null)},Ee=()=>{r.inline||(i.value&&(i.value=!1,m(!1),y(!1),k(),n("closed"),W(),D.value&&Y(s.value)),Ie())},fe=(se,ce)=>{if(!se){$.value=null;return}$.value=se,ce&&(R(),n("text-submit"))},Be=()=>{r.autoApply&&w($.value)&&X(),ie()},$e=()=>i.value?Ee():V(),ze=se=>{$.value=se},Ge=()=>{r.textInput&&(f.value=!0,K()),n("focus")},Ke=()=>{r.textInput&&(f.value=!1,Y(r.modelValue)),n("blur")},ve=se=>{u.value&&u.value.updateMonthYear(0,{month:vd(se.month),year:vd(se.year)})},Qe=se=>{Y(se||r.modelValue)},Te=(se,ce)=>{var me;(me=u.value)==null||me.switchView(se,ce)};return UT(u,c,r.onClickOutside?()=>r.onClickOutside(P):Ee),t({closeMenu:Ee,selectDate:R,clearValue:E,openMenu:V,onScroll:Z,formatInputValue:K,updateInternalModelValue:ze,setMonthYear:ve,parseModel:Qe,switchView:Te}),(se,ce)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(U.value),ref_key:"pickerWrapperRef",ref:p},[a.createVNode(jC,a.mergeProps({ref_key:"inputRef",ref:c,"is-menu-open":i.value,"input-value":a.unref(D),"onUpdate:inputValue":ce[0]||(ce[0]=me=>a.isRef(D)?D.value=me:null)},se.$props,{onClear:E,onOpen:V,onSetInputDate:fe,onSetEmptyDate:a.unref(X),onSelectDate:R,onToggle:$e,onClose:Ee,onFocus:Ge,onBlur:Ke,onRealBlur:ce[1]||(ce[1]=me=>f.value=!1)}),a.createSlots({_:2},[a.renderList(a.unref(B),(me,Pt)=>({name:me,fn:a.withCtx(xe=>[a.renderSlot(se.$slots,me,a.normalizeProps(a.guardReactiveProps(xe)))])}))]),1040,["is-menu-open","input-value","onSetEmptyDate"]),i.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(se.teleport?a.Teleport:"div"),a.normalizeProps(a.mergeProps({key:0},H.value)),{default:a.withCtx(()=>[i.value?(a.openBlock(),a.createBlock(LT,a.mergeProps({key:0,ref_key:"dpMenuRef",ref:u,class:S.value,style:se.inline?void 0:a.unref(I),"open-on-top":a.unref(C),"arr-map-values":h},se.$props,{"internal-model-value":a.unref($),"onUpdate:internalModelValue":ce[2]||(ce[2]=me=>a.isRef($)?$.value=me:null),onClosePicker:Ee,onSelectDate:R,onAutoApply:oe,onTimeUpdate:Be,onFlowStep:ce[3]||(ce[3]=me=>se.$emit("flow-step",me)),onUpdateMonthYear:ce[4]||(ce[4]=me=>se.$emit("update-month-year",me)),onInvalidSelect:ce[5]||(ce[5]=me=>se.$emit("invalid-select",a.unref($))),onInvalidFixedRange:ce[6]||(ce[6]=me=>se.$emit("invalid-fixed-range",me)),onRecalculatePosition:a.unref(q),onTooltipOpen:ce[7]||(ce[7]=me=>se.$emit("tooltip-open",me)),onTooltipClose:ce[8]||(ce[8]=me=>se.$emit("tooltip-close",me)),onTimePickerOpen:ce[9]||(ce[9]=me=>se.$emit("time-picker-open",me)),onTimePickerClose:ce[10]||(ce[10]=me=>se.$emit("time-picker-close",me)),onAmPmChange:ce[11]||(ce[11]=me=>se.$emit("am-pm-change",me)),onRangeStart:ce[12]||(ce[12]=me=>se.$emit("range-start",me)),onRangeEnd:ce[13]||(ce[13]=me=>se.$emit("range-end",me))}),a.createSlots({_:2},[a.renderList(a.unref(_),(me,Pt)=>({name:me,fn:a.withCtx(xe=>[a.renderSlot(se.$slots,me,a.normalizeProps(a.guardReactiveProps({...xe})))])}))]),1040,["class","style","open-on-top","arr-map-values","internal-model-value","onRecalculatePosition"])):a.createCommentVNode("",!0)]),_:3},16)):a.createCommentVNode("",!0)],2))}}),ku=(()=>{const e=zT;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),jT=Object.freeze(Object.defineProperty({__proto__:null,default:ku},Symbol.toStringTag,{value:"Module"}));Object.entries(jT).forEach(([e,t])=>{e!=="default"&&(ku[e]=t)});const WT={class:"relative w-full"},qT=["value","placeholder"],YT={key:0,class:"pointer-events-none absolute left-5 top-2.5 space-x-2 peer-focus:hidden","data-test-location-labels":""},GT=a.defineComponent({inheritAttrs:!1,__name:"LocationInput",props:{placeholder:{default:""},placeOptions:{default:null},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=a.ref(null),o=a.ref("");return a.onMounted(async()=>{if(!r.value)return;if(!(window!=null&&window.google)){console.error("Google not defined. use composable useGoogleApi at setup");return}const{Autocomplete:i}=await google.maps.importLibrary("places"),s=new i(r.value,{strictBounds:!1,types:["address"],componentRestrictions:{country:"nl"},...n.placeOptions});s.addListener("place_changed",()=>{var O,_,B,C,I,F,q,W,M,D,$;o.value="";const l=s.getPlace(),u=(O=l.geometry)==null?void 0:O.location,c=l.address_components??[],f=u==null?void 0:u.lat(),p=u==null?void 0:u.lng(),h=(_=c.find(Y=>Y.types.includes("postal_code")))==null?void 0:_.long_name,m=(B=c.find(Y=>Y.types.includes("route")))==null?void 0:B.long_name,y=parseInt(((I=(C=c.find(Y=>Y.types.includes("street_number")))==null?void 0:C.long_name.split(/(\d*)(.*)/s))==null?void 0:I[1])??"",10),k=(q=(F=c.find(Y=>Y.types.includes("street_number")))==null?void 0:F.long_name.split(/(\d*)(.*)/s))==null?void 0:q[2],b=(W=c.find(Y=>Y.types.includes("locality")))==null?void 0:W.long_name,w=(M=c.find(Y=>Y.types.includes("administrative_area_level_1")))==null?void 0:M.long_name,T=(D=c.find(Y=>Y.types.includes("administrative_area_level_1")))==null?void 0:D.short_name;($=r.value)==null||$.blur(),t("update:modelValue",{postcode:h,street:m,number:y>0?y:void 0,numberSuffix:k,city:b,province:w,provinceShort:T,lat:f,lng:p})})}),(i,s)=>{var l,u,c;return a.openBlock(),a.createElementBlock("div",WT,[a.createElementVNode("input",a.mergeProps({ref_key:"input",ref:r,value:o.value,placeholder:i.placeholder},{...i.$attrs},{class:"peer text-zinc-900",onKeydown:s[0]||(s[0]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["enter"]))}),null,16,qT),(l=i.modelValue)!=null&&l.postcode||(u=i.modelValue)!=null&&u.street||(c=i.modelValue)!=null&&c.number?(a.openBlock(),a.createElementBlock("div",YT,[a.createVNode(a.unref(fi),{class:"empty:hidden","data-test-street-label":""},{default:a.withCtx(()=>{var f,p,h;return[a.createTextVNode(a.toDisplayString((f=i.modelValue)==null?void 0:f.street)+" "+a.toDisplayString((p=i.modelValue)==null?void 0:p.number)+a.toDisplayString((h=i.modelValue)==null?void 0:h.numberSuffix),1)]}),_:1}),a.createVNode(a.unref(fi),{class:"empty:hidden","data-test-postcode-label":""},{default:a.withCtx(()=>{var f;return[a.createTextVNode(a.toDisplayString((f=i.modelValue)==null?void 0:f.postcode),1)]}),_:1})])):a.createCommentVNode("",!0)])}}});const KT=["multiple"],XT=a.defineComponent({inheritAttrs:!1,__name:"FileInput",props:{modelValue:{},multiple:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=a.computed({get:()=>n.modelValue,set:i=>t("update:modelValue",i)});function o(i){const l=i.target.files;l&&(r.value=Array.from(l))}return(i,s)=>(a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("label",null,[a.createElementVNode("input",a.mergeProps({...i.$attrs},{multiple:i.multiple,type:"file",class:"hidden","data-test-input":"",onChange:o}),null,16,KT),a.renderSlot(i.$slots,"default",{},()=>[a.createVNode(a.unref(Wr),{as:"span","color-type":"white",class:"h-10 w-10 !p-2.5"},{default:a.withCtx(()=>[a.createVNode(a.unref(n_),{class:"h-5 w-5"})]),_:1})])])]))}}),JT={disabled:!1,readonly:!1,loading:!1,required:!1,multiple:!1,hasError:!1,label:void 0,errorMessage:""};function QT(e){return go(e)?ku:yi(e)?GT:e==="file"?XT:e==="textarea"?"textarea":"input"}function wl(e){return e==="license"}function ZT(e,t,n){return Hi(e)&&(!!t.default||!!n)}function _i(e,t,n,r){return Hi(t)||wl(t)||e==="leading"&&yi(t)?!1:e==="trailing"?!!r.trailingIcon||go(t)||yi(t)||n&&!r.leadingIcon:!!r[`${e}Icon`]}const eE=`block h-12 w-full appearance-none rounded-lg
|
|
58
|
+
focus-visible:outline-none`,jT="rounded bg-white checked:bg-primary";function WT(e,t){return{[zT]:!0,[jT]:e==="checkbox","rounded-full":e==="radio","!border-error":t}}function Us(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),a.createElementVNode("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),a.createElementVNode("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),a.createElementVNode("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}function qT(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),a.createElementVNode("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}function ff(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function pf(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}function Sm(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),a.createElementVNode("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}function Cm(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function Tm(){return a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[a.createElementVNode("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}const hf=(e,t,n,r,o)=>{const i=cu(e,t.slice(0,e.length),new Date);return Ho(i)&&om(i)?r||o?i:Rt(i,{hours:+n.hours,minutes:+(n==null?void 0:n.minutes),seconds:+(n==null?void 0:n.seconds),milliseconds:0}):null},YT=(e,t,n,r,o)=>{const i=Array.isArray(n)?n[0]:n;if(typeof t=="string")return hf(e,t,i,r,o);if(Array.isArray(t)){let s=null;for(const l of t)if(s=hf(e,l,i,r,o),s)break;return s}return typeof t=="function"?t(e):null},se=e=>e?new Date(e):new Date,GT=(e,t,n)=>{if(t){const o=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),s=e.getHours().toString().padStart(2,"0"),l=e.getMinutes().toString().padStart(2,"0"),u=n?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${o}-${i}T${s}:${l}:${u}.000Z`}const r=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(r).toISOString()},Tn=e=>{let t=se(JSON.parse(JSON.stringify(e)));return t=_m(t,0),t=wm(t,0),t=km(t,0),t=vc(t,0),t},kn=(e,t,n,r)=>{let o=e?se(e):se();return(t||t===0)&&(o=_m(o,+t)),(n||n===0)&&(o=wm(o,+n)),(r||r===0)&&(o=km(o,+r)),vc(o,0)},Yt=(e,t)=>!e||!t?!1:ni(Tn(e),Tn(t)),st=(e,t)=>!e||!t?!1:sa(Tn(e),Tn(t)),rn=(e,t)=>!e||!t?!1:ti(Tn(e),Tn(t)),Em=(e,t,n)=>e&&e[0]&&e[1]?rn(n,e[0])&&Yt(n,e[1]):e&&e[0]&&t?rn(n,e[0])&&Yt(n,t)||Yt(n,e[0])&&rn(n,t):!1,Do=e=>{const t=Rt(new Date(e),{date:1});return Tn(t)},Il=(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},Bi=e=>({hours:yr(e),minutes:br(e),seconds:no(e)}),Mo=a.reactive({menuFocused:!1,shiftKeyInMenu:!1}),xm=()=>{const e=n=>{Mo.menuFocused=n},t=n=>{Mo.shiftKeyInMenu!==n&&(Mo.shiftKeyInMenu=n)};return{control:a.computed(()=>({shiftKeyInMenu:Mo.shiftKeyInMenu,menuFocused:Mo.menuFocused})),setMenuFocused:e,setShiftKey:t}};function gc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Im={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Im);var KT=Im.exports,du={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var o=Number(r);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}e.exports=t.default})(du,du.exports);var XT=du.exports;const JT=gc(XT);var fu={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var o=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return o.setUTCFullYear(r.getFullYear()),r.getTime()-o.getTime()}e.exports=t.default})(fu,fu.exports);var ZT=fu.exports;const mf=gc(ZT);function QT(e,t){var n=rE(t);return n.formatToParts?tE(n,e):nE(n,e)}var eE={year:0,month:1,day:2,hour:3,minute:4,second:5};function tE(e,t){try{for(var n=e.formatToParts(t),r=[],o=0;o<n.length;o++){var i=eE[n[o].type];i>=0&&(r[i]=parseInt(n[o].value,10))}return r}catch(s){if(s instanceof RangeError)return[NaN];throw s}}function nE(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var Pl={};function rE(e){if(!Pl[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="06/25/2014 00:00:00";Pl[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Pl[e]}function yc(e,t,n,r,o,i,s){var l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,o,i,s),l}var vf=36e5,aE=6e4,Ol={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function bc(e,t,n){var r,o;if(!e||(r=Ol.timezoneZ.exec(e),r))return 0;var i;if(r=Ol.timezoneHH.exec(e),r)return i=parseInt(r[1],10),gf(i)?-(i*vf):NaN;if(r=Ol.timezoneHHMM.exec(e),r){i=parseInt(r[1],10);var s=parseInt(r[2],10);return gf(i,s)?(o=Math.abs(i)*vf+s*aE,i>0?-o:o):NaN}if(sE(e)){t=new Date(t||Date.now());var l=n?t:oE(t),u=pu(l,e),d=n?u:iE(t,u,e);return-d}return NaN}function oE(e){return yc(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function pu(e,t){var n=QT(e,t),r=yc(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),i=o%1e3;return o-=i>=0?i:1e3+i,r-o}function iE(e,t,n){var r=e.getTime(),o=r-t,i=pu(new Date(o),n);if(t===i)return t;o-=i-t;var s=pu(new Date(o),n);return i===s?i:Math.max(i,s)}function gf(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var yf={};function sE(e){if(yf[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),yf[e]=!0,!0}catch{return!1}}var lE=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const Pm=lE;var Nl=36e5,bf=6e4,uE=2,tn={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:Pm};function hu(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},r=n.additionalDigits==null?uE:JT(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=cE(e),i=dE(o.date,r),s=i.year,l=i.restDateString,u=fE(l,s);if(isNaN(u))return new Date(NaN);if(u){var d=u.getTime(),c=0,p;if(o.time&&(c=pE(o.time),isNaN(c)))return new Date(NaN);if(o.timeZone||n.timeZone){if(p=bc(o.timeZone||n.timeZone,new Date(d+c)),isNaN(p))return new Date(NaN)}else p=mf(new Date(d+c)),p=mf(new Date(d+c+p));return new Date(d+c+p)}else return new Date(NaN)}function cE(e){var t={},n=tn.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=tn.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){var o=tn.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function dE(e,t){var n=tn.YYY[t],r=tn.YYYYY[t],o;if(o=tn.YYYY.exec(e)||r.exec(e),o){var i=o[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(o=tn.YY.exec(e)||n.exec(e),o){var s=o[1];return{year:parseInt(s,10)*100,restDateString:e.slice(s.length)}}return{year:null}}function fE(e,t){if(t===null)return null;var n,r,o,i;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=tn.MM.exec(e),n)return r=new Date(0),o=parseInt(n[1],10)-1,wf(t,o)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=tn.DDD.exec(e),n){r=new Date(0);var s=parseInt(n[1],10);return vE(t,s)?(r.setUTCFullYear(t,0,s),r):new Date(NaN)}if(n=tn.MMDD.exec(e),n){r=new Date(0),o=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return wf(t,o,l)?(r.setUTCFullYear(t,o,l),r):new Date(NaN)}if(n=tn.Www.exec(e),n)return i=parseInt(n[1],10)-1,kf(t,i)?_f(t,i):new Date(NaN);if(n=tn.WwwD.exec(e),n){i=parseInt(n[1],10)-1;var u=parseInt(n[2],10)-1;return kf(t,i,u)?_f(t,i,u):new Date(NaN)}return null}function pE(e){var t,n,r;if(t=tn.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),Dl(n)?n%24*Nl:NaN;if(t=tn.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),Dl(n,r)?n%24*Nl+r*bf:NaN;if(t=tn.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return Dl(n,r,o)?n%24*Nl+r*bf+o*1e3:NaN}return null}function _f(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var hE=[31,28,31,30,31,30,31,31,30,31,30,31],mE=[31,29,31,30,31,30,31,31,30,31,30,31];function Om(e){return e%400===0||e%4===0&&e%100!==0}function wf(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=Om(e);if(r&&n>mE[t]||!r&&n>hE[t])return!1}return!0}function vE(e,t){if(t<1)return!1;var n=Om(e);return!(n&&t>366||!n&&t>365)}function kf(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function Dl(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}var mu={exports:{}},vu={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i]);return r}e.exports=t.default})(vu,vu.exports);var gE=vu.exports;(function(e,t){var n=KT.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(gE);function o(i){return(0,r.default)({},i)}e.exports=t.default})(mu,mu.exports);var yE=mu.exports;const bE=gc(yE);function _E(e,t,n){var r=hu(e,n),o=bc(t,r,!0),i=new Date(r.getTime()-o),s=new Date(0);return s.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),s.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),s}function wE(e,t,n){if(typeof e=="string"&&!e.match(Pm)){var r=bE(n);return r.timeZone=t,hu(e,r)}var o=hu(e,n),i=yc(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()).getTime(),s=bc(t,new Date(i));return new Date(i+s)}const kE=(e,t=3)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push([e[r],e[r+1],e[r+2]]);return n};function Sf(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 SE(e){return t=>fa(new Date(`2017-01-0${t}T00:00:00+00:00`),"EEEEEE",{locale:e})}const CE=(e,t,n)=>{const r=[1,2,3,4,5,6,7];let o;if(e!==null)try{o=r.map(SE(e))}catch{o=r.map(Sf(t))}else o=r.map(Sf(t));const i=o.slice(0,n),s=o.slice(n+1,o.length);return[o[n]].concat(...s).concat(...i)},TE=(e,t)=>{const n=[];for(let r=+e[0];r<=+e[1];r++)n.push({value:+r,text:`${r}`});return t?n.reverse():n},EE=(e,t,n)=>{const r=[1,2,3,4,5,6,7,8,9,10,11,12].map(i=>{const s=i<10?`0${i}`:i;return new Date(`2017-${s}-01T00:00:00+00:00`)});if(e!==null)try{const i=n==="long"?"MMMM":"MMM";return r.map((s,l)=>{const u=fa(s,i,{locale:e});return{text:u.charAt(0).toUpperCase()+u.substring(1),value:l}})}catch{}const o=new Intl.DateTimeFormat(t,{month:n,timeZone:"UTC"});return r.map((i,s)=>{const l=o.format(i);return{text:l.charAt(0).toUpperCase()+l.substring(1),value:s}})},xE=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],kt=e=>{const t=a.unref(e);return t!=null&&t.$el?t==null?void 0:t.$el:t},IE=e=>Object.assign({type:"dot"},e),Nm=e=>Array.isArray(e)?!!e[0]&&!!e[1]:!1,ps={prop:e=>`"${e}" prop must be enabled!`,dateArr:e=>`You need to use array as "model-value" binding in order to support "${e}"`},qt=e=>e,Cf=e=>e===0?e:!e||isNaN(+e)?null:+e,PE=e=>e===0?!0:!!e,Tf=e=>e===null,OE=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},Ef=e=>Object.assign({menuAppear:"",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down"},e),NE=e=>Object.assign({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",calendarWrap:"Calendar wrapper",calendarDays:"Calendar days",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:t=>`Increment ${t}`,decrementValue:t=>`Decrement ${t}`,openTpOverlay:t=>`Open ${t} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",day:()=>""},e),DE=e=>e===null?0:typeof e=="boolean"?e?2:0:+e>=2?+e:2,ME=(e,t,n)=>e||(typeof n=="string"?n:t),BE=e=>typeof e=="boolean"?e?Ef({}):!1:Ef(e),AE=()=>({enterSubmit:!0,tabSubmit:!0,openMenu:!0,rangeSeparator:" - "}),RE=e=>Object.assign({months:[],years:[],times:{hours:[],minutes:[],seconds:[]}},e),$E=e=>Object.assign({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0},e),bn=e=>{const t=()=>{if(e.partialRange)return null;throw new Error(ps.prop("partial-range"))},n=a.computed(()=>({ariaLabels:NE(e.ariaLabels),textInputOptions:Object.assign(AE(),e.textInputOptions),multiCalendars:DE(e.multiCalendars),previewFormat:ME(e.previewFormat,e.format,i()),filters:RE(e.filters),transitions:BE(e.transitions),startTime:m(),actionRow:$E(e.actionRow)})),r=V=>{if(e.range)return V();throw new Error(ps.prop("range"))},o=()=>{const V=e.enableSeconds?":ss":"";return e.is24?`HH:mm${V}`:`hh:mm${V} aa`},i=()=>e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?o():e.weekPicker?"MM/dd/yyyy":e.yearPicker?"yyyy":e.enableTimePicker?`MM/dd/yyyy, ${o()}`:"MM/dd/yyyy",s=(V,E)=>{if(typeof e.format=="function")return e.format(V);const O=E||i(),A=e.formatLocale?{locale:e.formatLocale}:void 0;return Array.isArray(V)?`${fa(V[0],O,A)}${e.modelAuto&&!V[1]?"":n.value.textInputOptions.rangeSeparator||"-"}${V[1]?fa(V[1],O,A):""}`:fa(V,O,A)},l=V=>e.timezone?_E(V,e.timezone):V,u=V=>e.timezone?wE(V,e.timezone):V,d=a.computed(()=>V=>{var E;return(E=e.hideNavigation)==null?void 0:E.includes(V)}),c=V=>{var E,O,A,Z;return Array.isArray(e.allowedDates)&&!((E=e.allowedDates)!=null&&E.length)?!0:(O=e.arrMapValues)!=null&&O.allowedDates?!x(V,e.arrMapValues.allowedDates):(A=e.allowedDates)!=null&&A.length?!((Z=e.allowedDates)!=null&&Z.some(re=>st(l(se(re)),l(V)))):!1},p=V=>{var E;const O=e.maxDate?rn(l(V),l(se(e.maxDate))):!1,A=e.minDate?Yt(l(V),l(se(e.minDate))):!1,Z=x(V,(E=e.arrMapValues)!=null&&E.disabledDates?e.arrMapValues.disabledDates:e.disabledDates),re=n.value.filters.months.map(Ie=>+Ie).includes(pt(V)),ie=e.disabledWeekDays.length?e.disabledWeekDays.some(Ie=>+Ie===DS(V)):!1,Te=c(V),Pe=gt(V),fe=Pe<+e.yearRange[0]||Pe>+e.yearRange[1];return!(O||A||Z||re||fe||ie||Te)},h=V=>{const E={hours:yr(se()),minutes:br(se()),seconds:e.enableSeconds?no(se()):0};return Object.assign(E,V)},m=()=>e.range?e.startTime&&Array.isArray(e.startTime)?[h(e.startTime[0]),h(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?h(e.startTime):null,y=V=>!p(V),w=V=>Array.isArray(V)?Ho(V[0])&&(V[1]?Ho(V[1]):!0):V?Ho(V):!1,k=V=>V instanceof Date?V:LC(V),_=V=>{const E=va(l(V),{weekStartsOn:+e.weekStart}),O=Dk(l(V),{weekStartsOn:+e.weekStart});return[E,O]},x=(V,E)=>V?E instanceof Map?!!E.get(U(V)):Array.isArray(E)?E.some(O=>st(l(se(O)),l(V))):E(se(JSON.parse(JSON.stringify(V)))):!0,S=(V,E,O)=>{let A=V?se(V):se();return(E||E===0)&&(A=La(A,E)),O&&(A=wr(A,O)),A},b=V=>Rt(se(),Bi(V)),N=V=>Rt(se(),{hours:+V.hours||0,minutes:+V.minutes||0,seconds:+V.seconds||0}),T=(V,E,O,A)=>{if(!V)return!0;if(A){const Z=O==="max"?ni(V,E):ti(V,E),re={seconds:0,milliseconds:0};return Z||sa(Rt(V,re),Rt(E,re))}return O==="max"?V.getTime()<=E.getTime():V.getTime()>=E.getTime()},I=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,$=V=>Array.isArray(V)?[V[0]?b(V[0]):null,V[1]?b(V[1]):null]:b(V),W=V=>{const E=e.maxTime?N(e.maxTime):se(e.maxDate);return Array.isArray(V)?T(V[0],E,"max",!!e.maxDate)&&T(V[1],E,"max",!!e.maxDate):T(V,E,"max",!!e.maxDate)},j=(V,E)=>{const O=e.minTime?N(e.minTime):se(e.minDate);return Array.isArray(V)?T(V[0],O,"min",!!e.minDate)&&T(V[1],O,"min",!!e.minDate)&&E:T(V,O,"min",!!e.minDate)&&E},M=V=>{let E=!0;if(!V||I())return!0;const O=!e.minDate&&!e.maxDate?$(V):V;if((e.maxTime||e.maxDate)&&(E=W(qt(O))),(e.minTime||e.minDate)&&(E=j(qt(O),E)),e.disabledTimes){const A=Array.isArray(V)?[Bi(V[0]),V[1]?Bi(V[1]):void 0]:Bi(V);E=!e.disabledTimes(A)}return E},D=(V,E)=>{const O=se(JSON.parse(JSON.stringify(V))),A=[];for(let Z=0;Z<7;Z++){const re=_r(O,Z),ie=pt(re)!==E;A.push({text:e.hideOffsetDates&&ie?"":re.getDate(),value:re,current:!ie,classData:{}})}return A},R=(V,E)=>{switch(e.sixWeeks===!0?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[V==0,!0];case"fair":return[V==0||E>V,!0];case"append":return[!1,!1];default:return[!1,!1]}},K=(V,E)=>{const O=[],A=se(l(new Date(E,V))),Z=se(l(new Date(E,V+1,0))),re=e.weekStart,ie=va(A,{weekStartsOn:re}),Te=Pe=>{const fe=D(Pe,V);if(O.push({days:fe}),!O[O.length-1].days.some(Ie=>st(Tn(Ie.value),Tn(Z)))){const Ie=_r(Pe,7);Te(Ie)}};if(Te(ie),e.sixWeeks&&O.length<6){const Pe=6-O.length,fe=(A.getDay()+7-re)%7,Ie=6-(Z.getDay()+7-re)%7,[Ve,Be]=R(fe,Ie);for(let at=1;at<=Pe;at++)if(Be?!!(at%2)==Ve:Ve){const Je=O[0].days[0],Ye=D(_r(Je.value,-7),pt(A));O.unshift({days:Ye})}else{const Je=O[O.length-1],Ye=Je.days[Je.days.length-1],pe=D(_r(Ye.value,1),pt(A));O.push({days:pe})}}return O},G=(V,E,O)=>[Rt(se(V),{date:1}),Rt(se(),{month:E,year:O,date:1})],Y=(V,E)=>Yt(...G(e.minDate,V,E))||st(...G(e.minDate,V,E)),z=(V,E)=>rn(...G(e.maxDate,V,E))||st(...G(e.maxDate,V,E)),H=(V,E,O)=>{let A=!1;return e.maxDate&&O&&z(V,E)&&(A=!0),e.minDate&&!O&&Y(V,E)&&(A=!0),A},C=(V,E,O,A)=>{let Z=!1;return A?e.minDate&&e.maxDate?Z=H(V,E,O):(e.minDate&&Y(V,E)||e.maxDate&&z(V,E))&&(Z=!0):Z=!0,Z},U=V=>{const E=Tn(l(se(V))).toISOString(),[O]=E.split("T");return O},Q=V=>new Map(V.map(E=>[U(E),!0])),X=V=>Array.isArray(V)&&V.length>0;return{checkPartialRangeValue:t,checkRangeEnabled:r,getZonedDate:l,getZonedToUtc:u,formatDate:s,getDefaultPattern:i,validateDate:p,getDefaultStartTime:m,isDisabled:y,isValidDate:w,sanitizeDate:k,getWeekFromDate:_,matchDate:x,setDateMonthOrYear:S,isValidTime:M,getCalendarDays:K,validateMonthYearInRange:C,validateMaxDate:z,validateMinDate:Y,assignDefaultTime:h,mapDatesArrToMap:V=>{X(e.allowedDates)&&(V.allowedDates=Q(e.allowedDates)),X(e.highlight)&&(V.highlightedDates=Q(e.highlight)),X(e.disabledDates)&&(V.disabledDates=Q(e.disabledDates))},defaults:n,hideNavigationButtons:d}},vt=a.reactive({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),Ml=a.ref(null),Ai=a.ref(!1),Bl=a.ref(!1),Al=a.ref(!1),Rl=a.ref(!1),Xt=a.ref(0),Ft=a.ref(0),qr=()=>{const e=a.computed(()=>Ai.value?[...vt.selectionGrid,vt.actionRow].filter(p=>p.length):Bl.value?[...vt.timePicker[0],...vt.timePicker[1],Rl.value?[]:[Ml.value],vt.actionRow].filter(p=>p.length):Al.value?[...vt.monthPicker,vt.actionRow]:[vt.monthYear,...vt.calendar,vt.time,vt.actionRow].filter(p=>p.length)),t=p=>{Xt.value=p?Xt.value+1:Xt.value-1;let h=null;e.value[Ft.value]&&(h=e.value[Ft.value][Xt.value]),h||(Xt.value=p?Xt.value-1:Xt.value+1)},n=p=>{Ft.value===0&&!p||Ft.value===e.value.length&&p||(Ft.value=p?Ft.value+1:Ft.value-1,e.value[Ft.value]?e.value[Ft.value]&&!e.value[Ft.value][Xt.value]&&Xt.value!==0&&(Xt.value=e.value[Ft.value].length-1):Ft.value=p?Ft.value-1:Ft.value+1)},r=p=>{let h=null;e.value[Ft.value]&&(h=e.value[Ft.value][Xt.value]),h?h.focus({preventScroll:!Ai.value}):Xt.value=p?Xt.value-1:Xt.value+1},o=()=>{t(!0),r(!0)},i=()=>{t(!1),r(!1)},s=()=>{n(!1),r(!0)},l=()=>{n(!0),r(!0)},u=(p,h)=>{vt[h]=p},d=(p,h)=>{vt[h]=p},c=()=>{Xt.value=0,Ft.value=0};return{buildMatrix:u,buildMultiLevelMatrix:d,setTimePickerBackRef:p=>{Ml.value=p},setSelectionGrid:p=>{Ai.value=p,c(),p||(vt.selectionGrid=[])},setTimePicker:(p,h=!1)=>{Bl.value=p,Rl.value=h,c(),p||(vt.timePicker[0]=[],vt.timePicker[1]=[])},setTimePickerElements:(p,h=0)=>{vt.timePicker[h]=p},arrowRight:o,arrowLeft:i,arrowUp:s,arrowDown:l,clearArrowNav:()=>{vt.monthYear=[],vt.calendar=[],vt.time=[],vt.actionRow=[],vt.selectionGrid=[],vt.timePicker[0]=[],vt.timePicker[1]=[],Ai.value=!1,Bl.value=!1,Rl.value=!1,Al.value=!1,c(),Ml.value=null},setMonthPicker:p=>{Al.value=p,c()},refSets:vt}},xf=e=>Array.isArray(e),ta=e=>Array.isArray(e),If=e=>Array.isArray(e)&&e.length===2,LE=(e,t,n,r,o)=>{const{getDefaultStartTime:i,isDisabled:s,sanitizeDate:l,getWeekFromDate:u,setDateMonthOrYear:d,validateMonthYearInRange:c,defaults:p}=bn(e),h=a.computed({get:()=>e.internalModelValue,set:F=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",F)}}),m=a.ref([]);a.watch(h,(F,B)=>{e.range?I():sa(F,B)||I()});const y=a.toRef(e,"multiCalendars");a.watch(y,()=>{ae(0)});const w=a.ref([{month:pt(se()),year:gt(se())}]);a.watch(w,()=>{w.value.forEach((F,B)=>{t("update-month-year",{instance:B,month:F.month,year:F.year})})},{deep:!0});const k=a.reactive({hours:e.range?[yr(se()),yr(se())]:yr(se()),minutes:e.range?[br(se()),br(se())]:br(se()),seconds:e.range?[0,0]:0}),_=a.computed(()=>F=>w.value[F]?w.value[F].month:0),x=a.computed(()=>F=>w.value[F]?w.value[F].year:0),S=a.computed(()=>{var F;return(F=e.flow)!=null&&F.length&&!e.partialFlow?o.value===e.flow.length:!0}),b=(F,B,te)=>{var oe,ye;w.value[F]||(w.value[F]={month:0,year:0}),w.value[F].month=Tf(B)?(oe=w.value[F])==null?void 0:oe.month:B,w.value[F].year=Tf(te)?(ye=w.value[F])==null?void 0:ye.year:te},N=(F,B)=>{k[F]=B},T=()=>{e.startDate&&(b(0,pt(se(e.startDate)),gt(se(e.startDate))),p.value.multiCalendars&&ae(0))};a.onMounted(()=>{h.value||(T(),p.value.startTime&&z()),I(!0),e.focusStartDate&&e.startDate&&T()});const I=(F=!1)=>{if(h.value)return Array.isArray(h.value)?(m.value=h.value,D(F)):W(h.value,F);if(e.timePicker)return R();if(e.monthPicker&&!e.range)return K();if(e.yearPicker&&!e.range)return G();if(p.value.multiCalendars&&F&&!e.startDate)return $(se(),F)},$=(F,B=!1)=>{if((!p.value.multiCalendars||!e.multiStatic||B)&&b(0,pt(F),gt(F)),p.value.multiCalendars)for(let te=1;te<p.value.multiCalendars;te++){const oe=Rt(se(),{month:_.value(te-1),year:x.value(te-1)}),ye=rm(oe,{months:1});w.value[te]={month:pt(ye),year:gt(ye)}}},W=(F,B)=>{$(F),N("hours",yr(F)),N("minutes",br(F)),N("seconds",no(F)),p.value.multiCalendars&&B&&C()},j=(F,B)=>{F[1]&&e.showLastInRange?$(F[1],B):$(F[0],B);const te=(oe,ye)=>[oe(F[0]),F[1]?oe(F[1]):k[ye][1]];N("hours",te(yr,"hours")),N("minutes",te(br,"minutes")),N("seconds",te(no,"seconds"))},M=(F,B)=>{if((e.range||e.weekPicker)&&!e.multiDates)return j(F,B);if(e.multiDates){const te=F[F.length-1];return W(te,B)}},D=F=>{const B=h.value;M(B,F),p.value.multiCalendars&&e.multiCalendarsSolo&&C()},R=()=>{if(z(),!e.range)h.value=kn(se(),k.hours,k.minutes,Y());else{const F=k.hours,B=k.minutes;h.value=[kn(se(),F[0],B[0],Y()),kn(se(),F[1],B[1],Y(!1))]}},K=()=>{e.multiDates?h.value=[d(se(),_.value(0),x.value(0))]:h.value=d(se(),_.value(0),x.value(0))},G=()=>{h.value=se()},Y=(F=!0)=>e.enableSeconds?Array.isArray(k.seconds)?F?k.seconds[0]:k.seconds[1]:k.seconds:0,z=()=>{const F=i();if(F){const B=Array.isArray(F),te=B?[+F[0].hours,+F[1].hours]:+F.hours,oe=B?[+F[0].minutes,+F[1].minutes]:+F.minutes,ye=B?[+F[0].seconds,+F[1].seconds]:+F.seconds;N("hours",te),N("minutes",oe),e.enableSeconds&&N("seconds",ye)}},H=()=>Array.isArray(h.value)&&h.value.length?h.value[h.value.length-1]:null,C=()=>{if(Array.isArray(h.value)&&h.value.length===2){const F=se(se(h.value[1]?h.value[1]:er(h.value[0],1))),[B,te]=[pt(h.value[0]),gt(h.value[0])],[oe,ye]=[pt(h.value[1]),gt(h.value[1])];(B!==oe||B===oe&&te!==ye)&&e.multiCalendarsSolo&&b(1,pt(F),gt(F))}else h.value&&!Array.isArray(h.value)&&b(0,pt(h.value),gt(h.value))},U=F=>{const B=er(F,1);return{month:pt(B),year:gt(B)}},Q=F=>{const B=pt(se(F)),te=gt(se(F));if(b(0,B,te),p.value.multiCalendars>0)for(let oe=1;oe<p.value.multiCalendars;oe++){const ye=U(Rt(se(F),{year:_.value(oe-1),month:x.value(oe-1)}));b(oe,ye.month,ye.year)}},X=F=>{if(h.value&&Array.isArray(h.value))if(h.value.some(B=>st(F,B))){const B=h.value.filter(te=>!st(te,F));h.value=B.length?B:null}else(e.multiDatesLimit&&+e.multiDatesLimit>h.value.length||!e.multiDatesLimit)&&h.value.push(F);else h.value=[F]},V=(F,B)=>{const te=rn(F,B)?B:F,oe=rn(B,F)?B:F;return af({start:te,end:oe})},E=(F,B=0)=>{if(Array.isArray(h.value)&&h.value[B]){const te=Ok(F,h.value[B]),oe=V(h.value[B],F),ye=oe.length===1?0:oe.filter(Ue=>s(Ue)).length,we=Math.abs(te)-ye;if(e.minRange&&e.maxRange)return we>=+e.minRange&&we<=+e.maxRange;if(e.minRange)return we>=+e.minRange;if(e.maxRange)return we<=+e.maxRange}return!0},O=F=>Array.isArray(h.value)&&h.value.length===2?e.fixedStart&&(rn(F,h.value[0])||st(F,h.value[0]))?[h.value[0],F]:e.fixedEnd&&(Yt(F,h.value[1])||st(F,h.value[1]))?[F,h.value[1]]:(t("invalid-fixed-range",F),h.value):[],A=()=>{e.autoApply&&S.value&&t("auto-apply",e.partialFlow)},Z=()=>{e.autoApply&&t("select-date")},re=F=>!af({start:F[0],end:F[1]}).some(B=>s(B)),ie=F=>(h.value=u(se(F.value)),A()),Te=F=>{const B=kn(se(F.value),k.hours,k.minutes,Y());e.multiDates?X(B):h.value=B,n(),A()},Pe=()=>{m.value=h.value?h.value.slice():[],m.value.length===2&&!(e.fixedStart||e.fixedEnd)&&(m.value=[])},fe=(F,B)=>{const te=[se(F.value),_r(se(F.value),+e.autoRange)];re(te)&&(B&&Q(F.value),m.value=te)},Ie=F=>{Ve(F.value)||!E(F.value,e.fixedStart?0:1)||(m.value=O(se(F.value)))},Ve=F=>e.noDisabledRange?V(m.value[0],F).some(B=>s(B)):!1,Be=(F,B)=>{if(Pe(),e.autoRange)return fe(F,B);if(e.fixedStart||e.fixedEnd)return Ie(F);m.value[0]?E(se(F.value))&&!Ve(F.value)&&(Yt(se(F.value),se(m.value[0]))?(m.value.unshift(se(F.value)),t("range-end",m.value[0])):(m.value[1]=se(F.value),t("range-end",m.value[1]))):(m.value[0]=se(F.value),t("range-start",m.value[0]))},at=F=>{m.value[F]=kn(m.value[F],k.hours[F],k.minutes[F],Y(F!==1))},Je=()=>{var F,B;m.value[0]&&m.value[1]&&+((F=m.value)==null?void 0:F[0])>+((B=m.value)==null?void 0:B[1])&&(m.value.reverse(),t("range-start",m.value[0]),t("range-end",m.value[1]))},Ye=()=>{m.value.length&&(m.value[0]&&!m.value[1]?at(0):(at(0),at(1),n()),Je(),h.value=m.value.slice(),m.value[0]&&m.value[1]&&e.autoApply&&t("auto-apply"),m.value[0]&&!m.value[1]&&e.modelAuto&&e.autoApply&&t("auto-apply"))},pe=(F,B=!1)=>{if(!(s(F.value)||!F.current&&e.hideOffsetDates)){if(e.weekPicker)return ie(F);if(!e.range)return Te(F);ta(k.hours)&&ta(k.minutes)&&!e.multiDates&&(Be(F,B),Ye())}},Ne=F=>{const B=F[0];return e.weekNumbers==="local"?VS(B.value,{weekStartsOn:+e.weekStart}):e.weekNumbers==="iso"?AS(B.value):typeof e.weekNumbers=="function"?e.weekNumbers(B.value):""},ae=F=>{for(let B=F-1;B>=0;B--){const te=Wa(Rt(se(),{month:_.value(B+1),year:x.value(B+1)}),1);b(B,pt(te),gt(te))}for(let B=F+1;B<=p.value.multiCalendars-1;B++){const te=er(Rt(se(),{month:_.value(B-1),year:x.value(B-1)}),1);b(B,pt(te),gt(te))}},he=F=>d(se(),_.value(F),x.value(F)),le=F=>kn(F,k.hours,k.minutes,Y()),je=F=>{X(he(F))},xe=(F,B)=>{const te=e.monthPicker?_.value(F)!==B.month||!B.fromNav:x.value(F)!==B.year||!B.fromNav;if(b(F,B.month,B.year),p.value.multiCalendars&&!e.multiCalendarsSolo&&ae(F),e.monthPicker||e.yearPicker)if(e.multiDates)te&&je(F);else if(e.range){if(te&&E(he(F))){let oe=h.value?h.value.slice():[];oe.length===2&&oe[1]!==null&&(oe=[]),oe.length?Yt(he(F),oe[0])?oe.unshift(he(F)):oe[1]=he(F):oe=[he(F)],h.value=oe}}else(e.autoApplyMonth||te)&&(h.value=he(F));r(e.multiCalendarsSolo?F:void 0)},Et=async(F=!1)=>{if(e.autoApply&&(e.monthPicker||e.yearPicker)){await a.nextTick();const B=e.monthPicker?F:!1;e.range?t("auto-apply",B||!h.value||h.value.length===1):t("auto-apply",B)}n()},_t=(F,B)=>{const te=Rt(se(),{month:_.value(B),year:x.value(B)}),oe=F<0?er(te,1):Wa(te,1);c(pt(oe),gt(oe),F<0,e.preventMinMaxNavigation)&&(b(B,pt(oe),gt(oe)),p.value.multiCalendars&&!e.multiCalendarsSolo&&ae(B),r())},Mt=F=>{xf(F)&&xf(h.value)&&ta(k.hours)&&ta(k.minutes)?(F[0]&&h.value[0]&&(h.value[0]=kn(F[0],k.hours[0],k.minutes[0],Y())),F[1]&&h.value[1]&&(h.value[1]=kn(F[1],k.hours[1],k.minutes[1],Y(!1)))):e.multiDates&&Array.isArray(h.value)?h.value[h.value.length-1]=le(F):!e.range&&!If(F)&&(h.value=le(F)),t("time-update")},jt=(F,B=!0,te=!1)=>{const oe=B?F:k.hours,ye=!B&&!te?F:k.minutes,we=te?F:k.seconds;if(e.range&&If(h.value)&&ta(oe)&&ta(ye)&&ta(we)&&!e.disableTimeRangeValidation){const Ue=ce=>kn(h.value[ce],oe[ce],ye[ce],we[ce]),J=ce=>vc(h.value[ce],0);if(st(h.value[0],h.value[1])&&(ti(Ue(0),J(1))||ni(Ue(1),J(0))))return}if(N("hours",oe),N("minutes",ye),N("seconds",we),h.value)if(e.multiDates){const Ue=H();Ue&&Mt(Ue)}else Mt(h.value);else e.timePicker&&Mt(e.range?[se(),se()]:se());n()},pn=(F,B)=>{e.monthChangeOnScroll&&_t(e.monthChangeOnScroll!=="inverse"?-F.deltaY:F.deltaY,B)},On=(F,B,te=!1)=>{e.monthChangeOnArrows&&e.vertical===te&&Ot(F,B)},Ot=(F,B)=>{_t(F==="right"?-1:1,B)};return{time:k,month:_,year:x,modelValue:h,calendars:w,monthYearSelect:Et,isDisabled:s,updateTime:jt,getWeekNum:Ne,selectDate:pe,updateMonthYear:xe,handleScroll:pn,getMarker:F=>e.markers.find(B=>st(l(F.value),l(B.date))),handleArrow:On,handleSwipe:Ot,selectCurrentDate:()=>{e.range?h.value&&Array.isArray(h.value)&&h.value[0]?h.value=Yt(se(),h.value[0])?[se(),h.value[0]]:[h.value[0],se()]:h.value=[se()]:h.value=se(),Z()},presetDateRange:(F,B)=>{B||F.length&&F.length<=2&&e.range&&(h.value=F.map(te=>se(te)),Z(),e.multiCalendars&&a.nextTick().then(()=>I(!0)))}}},VE=(e,t,n)=>{const r=a.ref(),{getZonedToUtc:o,getZonedDate:i,formatDate:s,getDefaultPattern:l,checkRangeEnabled:u,checkPartialRangeValue:d,isValidDate:c,setDateMonthOrYear:p,defaults:h}=bn(t),m=a.ref(""),y=a.toRef(t,"format");a.watch(r,()=>{e("internal-model-change",r.value)}),a.watch(y,()=>{H()});const w=E=>{const O=E||se();return t.modelType?U(O):{hours:yr(O),minutes:br(O),seconds:t.enableSeconds?no(O):0}},k=E=>t.modelType?U(E):{month:pt(E),year:gt(E)},_=E=>Array.isArray(E)?u(()=>[wr(se(),E[0]),E[1]?wr(se(),E[1]):d()]):wr(se(),+E),x=(E,O)=>(typeof E=="string"||typeof E=="number")&&t.modelType?C(E):O,S=E=>Array.isArray(E)?[x(E[0],kn(null,+E[0].hours,+E[0].minutes,E[0].seconds)),x(E[1],kn(null,+E[1].hours,+E[1].minutes,E[1].seconds))]:x(E,kn(null,E.hours,E.minutes,E.seconds)),b=E=>Array.isArray(E)?t.multiDates?E.map(O=>x(O,p(null,+O.month,+O.year))):u(()=>[x(E[0],p(null,+E[0].month,+E[0].year)),x(E[1],E[1]?p(null,+E[1].month,+E[1].year):d())]):x(E,p(null,+E.month,+E.year)),N=E=>{if(Array.isArray(E))return E.map(O=>C(O));throw new Error(ps.dateArr("multi-dates"))},T=E=>{if(Array.isArray(E))return[se(E[0]),se(E[1])];throw new Error(ps.dateArr("week-picker"))},I=E=>t.modelAuto?Array.isArray(E)?[C(E[0]),C(E[1])]:t.autoApply?[C(E)]:[C(E),null]:Array.isArray(E)?u(()=>[C(E[0]),E[1]?C(E[1]):d()]):C(E),$=()=>{Array.isArray(r.value)&&t.range&&r.value.length===1&&r.value.push(d())},W=()=>{const E=r.value;return[U(E[0]),E[1]?U(E[1]):d()]},j=()=>r.value[1]?W():U(qt(r.value[0])),M=()=>(r.value||[]).map(E=>U(E)),D=()=>($(),t.modelAuto?j():t.multiDates?M():Array.isArray(r.value)?u(()=>W()):U(qt(r.value))),R=E=>E?t.timePicker?S(qt(E)):t.monthPicker?b(qt(E)):t.yearPicker?_(qt(E)):t.multiDates?N(qt(E)):t.weekPicker?T(qt(E)):I(qt(E)):null,K=E=>{const O=R(E);c(qt(O))?(r.value=qt(O),H()):(r.value=null,m.value="")},G=()=>{var E;const O=A=>{var Z;return fa(A,(Z=h.value.textInputOptions)==null?void 0:Z.format)};return`${O(r.value[0])} ${(E=h.value.textInputOptions)==null?void 0:E.rangeSeparator} ${r.value[1]?O(r.value[1]):""}`},Y=()=>{var E;return n.value&&r.value?Array.isArray(r.value)?G():fa(r.value,(E=h.value.textInputOptions)==null?void 0:E.format):s(r.value)},z=()=>{var E;return r.value?t.multiDates?r.value.map(O=>s(O)).join("; "):t.textInput&&typeof((E=h.value.textInputOptions)==null?void 0:E.format)=="string"?Y():s(r.value):""},H=()=>{!t.format||typeof t.format=="string"||t.textInput&&typeof t.textInputOptions.format=="string"?m.value=z():m.value=t.format(r.value)},C=E=>{if(t.utc){const O=new Date(E);return t.utc==="preserve"?new Date(O.getTime()+O.getTimezoneOffset()*6e4):O}return t.modelType?t.modelType==="date"||t.modelType==="timestamp"?i(new Date(E)):t.modelType==="format"&&(typeof t.format=="string"||!t.format)?cu(E,l(),new Date):i(cu(E,t.modelType,new Date)):i(new Date(E))},U=E=>E?t.utc?GT(E,t.utc==="preserve",t.enableSeconds):t.modelType?t.modelType==="timestamp"?+o(E):t.modelType==="format"&&(typeof t.format=="string"||!t.format)?s(o(E)):s(o(E),t.modelType):o(E):"",Q=E=>{e("update:model-value",E)},X=E=>Array.isArray(r.value)?t.multiDates?r.value.map(O=>E(O)):[E(r.value[0]),r.value[1]?E(r.value[1]):d()]:E(qt(r.value)),V=E=>Q(qt(X(E)));return{inputValue:m,internalModelValue:r,checkBeforeEmit:()=>r.value?t.range?t.partialRange?r.value.length>=1:r.value.length===2:!!r.value:!1,parseExternalModelValue:K,formatInputValue:H,emitModelValue:()=>(H(),t.monthPicker?V(k):t.timePicker?V(w):t.yearPicker?V(gt):t.weekPicker?Q(r.value):Q(D()))}},FE=(e,t)=>{const{validateMonthYearInRange:n,validateMaxDate:r,validateMinDate:o,defaults:i}=bn(e),s=(p,h)=>{let m=p;return i.value.filters.months.includes(pt(m))?(m=h?er(p,1):Wa(p,1),s(m,h)):m},l=(p,h)=>{let m=p;return i.value.filters.years.includes(gt(m))?(m=h?am(p,1):tT(p,1),l(m,h)):m},u=p=>{const h=Rt(new Date,{month:e.month,year:e.year});let m=p?er(h,1):Wa(h,1);e.disableYearSelect&&(m=wr(m,e.year));let y=pt(m),w=gt(m);i.value.filters.months.includes(y)&&(m=s(m,p),y=pt(m),w=gt(m)),i.value.filters.years.includes(w)&&(m=l(m,p),w=gt(m)),n(y,w,p,e.preventMinMaxNavigation)&&d(y,w)},d=(p,h)=>{t("update-month-year",{month:p,year:h})},c=a.computed(()=>p=>{if(!e.preventMinMaxNavigation||p&&!e.maxDate||!p&&!e.minDate)return!1;const h=Rt(new Date,{month:e.month,year:e.year}),m=p?er(h,1):Wa(h,1),y=[pt(m),gt(m)];return p?!r(...y):!o(...y)});return{handleMonthYearChange:u,isDisabled:c,updateMonthYear:d}};var Ji=(e=>(e.center="center",e.left="left",e.right="right",e))(Ji||{});const HE=(e,t,n,r)=>{const o=a.ref({top:"0",left:"0",transform:"none",opacity:"0"}),i=a.ref(!1),s=a.toRef(r,"teleportCenter"),l=a.computed(()=>i.value?"-100%":"0"),u=()=>{d(),o.value.opacity="0"};a.watch(s,()=>{x()}),a.onMounted(()=>{d()});const d=()=>{const D=kt(t);if(D){const{top:R,left:K,width:G,height:Y}=y(D);o.value.top=`${R+Y/2}px`,m(K,G,50)}},c=D=>{if(r.teleport){const R=D.getBoundingClientRect();return{left:R.left+window.scrollX,top:R.top+window.scrollY}}return{top:0,left:0}},p=(D,R)=>{o.value.left=`${D+R}px`,o.value.transform=`translate(-100%, ${l.value})`},h=D=>{o.value.left=`${D}px`,o.value.transform=`translate(0, ${l.value})`},m=(D,R,K)=>{r.position===Ji.left&&h(D),r.position===Ji.right&&p(D,R),r.position===Ji.center&&(o.value.left=`${D+R/2}px`,o.value.transform=K?`translate(-50%, -${K}%)`:`translate(-50%, ${l.value})`)},y=D=>{const{width:R,height:K}=D.getBoundingClientRect(),{top:G,left:Y}=r.altPosition?r.altPosition(D):c(D);return{top:+G,left:+Y,width:R,height:K}},w=()=>{const D=kt(t);if(D){const{top:R,left:K,width:G,height:Y}=y(D),z=I();o.value.top=`${R+Y/2}px`,m(K,G,z==="top"?100:0)}},k=()=>{o.value.left="50%",o.value.top="50%",o.value.transform="translate(-50%, -50%)",o.value.position="fixed",delete o.value.opacity},_=()=>{const D=kt(t),{top:R,left:K,transform:G}=r.altPosition(D);o.value={top:`${R}px`,left:`${K}px`,transform:G||""}},x=(D=!0)=>{if(!r.inline)return s.value?k():r.altPosition!==null?_():(D&&n("recalculate-position"),W())},S=({inputEl:D,menuEl:R,left:K,width:G})=>{window.screen.width>768&&m(K,G),T(D,R)},b=(D,R)=>{const{top:K,left:G,height:Y,width:z}=y(D);o.value.top=`${Y+K+ +r.offset}px`,i.value=!1,S({inputEl:D,menuEl:R,left:G,width:z})},N=(D,R)=>{const{top:K,left:G,width:Y}=y(D);o.value.top=`${K-+r.offset}px`,i.value=!0,S({inputEl:D,menuEl:R,left:G,width:Y})},T=(D,R)=>{if(r.autoPosition){const{left:K,width:G}=y(D),{left:Y,right:z}=R.getBoundingClientRect();return Y<=0?h(K):z>=document.documentElement.clientWidth?p(K,G):m(K,G)}},I=()=>{const D=kt(e),R=kt(t);if(D&&R){const{height:K}=D.getBoundingClientRect(),{top:G,height:Y}=R.getBoundingClientRect(),z=window.innerHeight-G-Y,H=G;return K<=z?"bottom":K>z&&K<=H?"top":z>=H?"bottom":"top"}return"bottom"},$=(D,R)=>I()==="bottom"?b(D,R):N(D,R),W=()=>{const D=kt(t),R=kt(e);if(D&&R)return r.autoPosition?$(D,R):b(D,R)},j=function(D){if(D){const R=D.scrollHeight>D.clientHeight,K=window.getComputedStyle(D).overflowY.indexOf("hidden")!==-1;return R&&!K}return!0},M=function(D){return!D||D===document.body||D.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:j(D)?D:M(D.parentNode)};return{openOnTop:i,menuStyle:o,resetPosition:u,setMenuPosition:x,setInitialPosition:w,getScrollableParent:M}},Da=[{name:"clock-icon",use:["time","calendar"]},{name:"arrow-left",use:["month-year","calendar"]},{name:"arrow-right",use:["month-year","calendar"]},{name:"arrow-up",use:["time","calendar","month-year"]},{name:"arrow-down",use:["time","calendar","month-year"]},{name:"calendar-icon",use:["month-year","time","calendar"]},{name:"day",use:["calendar"]},{name:"month-overlay-value",use:["calendar","month-year"]},{name:"year-overlay-value",use:["calendar","month-year"]},{name:"year-overlay",use:["month-year"]},{name:"month-overlay",use:["month-year"]},{name:"month-overlay-header",use:["month-year"]},{name:"year-overlay-header",use:["month-year"]},{name:"hours-overlay-value",use:["calendar","time"]},{name:"minutes-overlay-value",use:["calendar","time"]},{name:"seconds-overlay-value",use:["calendar","time"]},{name:"hours",use:["calendar","time"]},{name:"minutes",use:["calendar","time"]},{name:"month",use:["calendar","month-year"]},{name:"year",use:["calendar","month-year"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar"]},{name:"marker-tooltip",use:["calendar"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time"]},{name:"am-pm-button",use:["calendar","time"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year"]},{name:"time-picker",use:["menu"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar"]}],UE=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],zE={all:()=>Da,monthYear:()=>Da.filter(e=>e.use.includes("month-year")),input:()=>UE,timePicker:()=>Da.filter(e=>e.use.includes("time")),action:()=>Da.filter(e=>e.use.includes("action")),calendar:()=>Da.filter(e=>e.use.includes("calendar")),menu:()=>Da.filter(e=>e.use.includes("menu"))},la=(e,t,n)=>{const r=[];return zE[t]().forEach(o=>{e[o.name]&&r.push(o.name)}),n&&n.length&&n.forEach(o=>{o.slot&&r.push(o.slot)}),r},zs=e=>({transitionName:a.computed(()=>t=>e&&typeof e!="boolean"?t?e.open:e.close:""),showTransition:!!e}),Yr={multiCalendars:{type:[Boolean,Number,String],default:null},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},closeOnScroll:{type:Boolean,default:!1},autoPosition:{type:Boolean,default:!0},closeOnAutoApply:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:String,default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},menuClassName:{type:String,default:null},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},multiCalendarsSolo:{type:Boolean,default:!1},calendarCellClassName:{type:String,default:null},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},showNowButton:{type:Boolean,default:!1},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},modeHeight:{type:[Number,String],default:255},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetRanges:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},minRange:{type:[Number,String],default:null},maxRange:{type:[Number,String],default:null},multiDatesLimit:{type:[Number,String],default:null},reverseYears:{type:Boolean,default:!1},keepActionRow:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},multiStatic:{type:Boolean,default:!0},disableTimeRangeValidation:{type:Boolean,default:!1},highlight:{type:[Array,Function],default:null},highlightWeekDays:{type:Array,default:null},highlightDisabledDays:{type:Boolean,default:!1},teleport:{type:[String,Boolean],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function],default:null},calendarClassName:{type:String,default:null},noSwipe:{type:Boolean,default:!1},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:Boolean,default:!1},partialRange:{type:Boolean,default:!0},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},inputClassName:{type:String,default:null},inlineWithInput:{type:Boolean,default:!1},textInputOptions:{type:Object,default:()=>null},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:Boolean,default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},onClickOutside:{type:Function,default:null},noDisabledRange:{type:Boolean,default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},allowPreventDefault:{type:Boolean,default:!1},closeOnClearValue:{type:Boolean,default:!0},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:Function,default:void 0},showLastInRange:{type:Boolean,default:!0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},autoApplyMonth:{type:Boolean,default:!0}},jE={key:1,class:"dp__input_wrap"},WE=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","onKeydown"],qE={key:2,class:"dp__clear_icon"},YE=a.defineComponent({__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...Yr},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur"],setup(e,{expose:t,emit:n}){const r=e,{getDefaultPattern:o,isValidDate:i,defaults:s,getDefaultStartTime:l,assignDefaultTime:u}=bn(r),d=a.ref(),c=a.ref(null),p=a.ref(!1),h=a.ref(!1),m=a.computed(()=>({dp__pointer:!r.disabled&&!r.readonly&&!r.textInput,dp__disabled:r.disabled,dp__input_readonly:!r.textInput,dp__input:!0,dp__input_icon_pad:!r.hideInputIcon,dp__input_valid:r.state,dp__input_invalid:r.state===!1,dp__input_focus:p.value||r.isMenuOpen,dp__input_reg:!r.textInput,[r.inputClassName]:!!r.inputClassName})),y=()=>{n("set-input-date",null),r.autoApply&&(n("set-empty-date"),d.value=null)},w=M=>{var D;const R=l();return YT(M,((D=s.value.textInputOptions)==null?void 0:D.format)||o(),R||u({}),r.inputValue,h.value)},k=M=>{const{rangeSeparator:D}=s.value.textInputOptions,[R,K]=M.split(`${D}`);if(R){const G=w(R.trim()),Y=K?w(K.trim()):null,z=G&&Y?[G,Y]:[G];d.value=G?z:null}},_=()=>{h.value=!0},x=M=>{if(r.range)k(M);else if(r.multiDates){const D=M.split(";");d.value=D.map(R=>w(R.trim())).filter(R=>R)}else d.value=w(M)},S=M=>{var D,R;const K=typeof M=="string"?M:(D=M.target)==null?void 0:D.value;K!==""?((R=s.value.textInputOptions)!=null&&R.openMenu&&!r.isMenuOpen&&n("open"),x(K),n("set-input-date",d.value)):y(),h.value=!1,n("update:input-value",K)},b=M=>{var D,R;r.textInput?(x(M.target.value),(D=s.value.textInputOptions)!=null&&D.enterSubmit&&i(d.value)&&r.inputValue!==""?(n("set-input-date",d.value,!0),d.value=null):(R=s.value.textInputOptions)!=null&&R.enterSubmit&&r.inputValue===""&&(d.value=null,n("clear"))):I(M)},N=M=>{var D,R,K;r.textInput&&(D=s.value.textInputOptions)!=null&&D.tabSubmit&&x(M.target.value),(R=s.value.textInputOptions)!=null&&R.tabSubmit&&i(d.value)&&r.inputValue!==""?(n("set-input-date",d.value,!0),d.value=null):(K=s.value.textInputOptions)!=null&&K.tabSubmit&&r.inputValue===""&&(d.value=null,n("clear"))},T=()=>{p.value=!0,n("focus")},I=M=>{var D;M.preventDefault(),M.stopImmediatePropagation(),M.stopPropagation(),r.textInput&&(D=s.value.textInputOptions)!=null&&D.openMenu&&!r.inlineWithInput?(n("toggle"),s.value.textInputOptions.enterSubmit&&n("select-date")):r.textInput||n("toggle")},$=()=>{n("real-blur"),p.value=!1,(!r.isMenuOpen||r.inline&&r.inlineWithInput)&&n("blur"),r.autoApply&&r.textInput&&d.value&&!r.isMenuOpen&&(n("set-input-date",d.value),n("select-date"),d.value=null)},W=()=>{n("clear")},j=M=>{if(!r.textInput){if(M.code==="Tab")return;M.preventDefault()}};return t({focusInput:()=>{var M;(M=c.value)==null||M.focus({preventScroll:!0})},setParsedDate:M=>{d.value=M}}),(M,D)=>{var R;return a.openBlock(),a.createElementBlock("div",{onClick:I},[M.$slots.trigger&&!M.$slots["dp-input"]&&!M.inline?a.renderSlot(M.$slots,"trigger",{key:0}):a.createCommentVNode("",!0),!M.$slots.trigger&&(!M.inline||M.inlineWithInput)?(a.openBlock(),a.createElementBlock("div",jE,[M.$slots["dp-input"]&&!M.$slots.trigger&&!M.inline?a.renderSlot(M.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:S,onEnter:b,onTab:N,onClear:W,onBlur:$,onKeypress:j,onPaste:_}):a.createCommentVNode("",!0),M.$slots["dp-input"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("input",{key:1,ref_key:"inputRef",ref:c,id:M.uid?`dp-input-${M.uid}`:void 0,name:M.name,class:a.normalizeClass(m.value),inputmode:M.textInput?"text":"none",placeholder:M.placeholder,disabled:M.disabled,readonly:M.readonly,required:M.required,value:e.inputValue,autocomplete:M.autocomplete,"aria-label":(R=a.unref(s).ariaLabels)==null?void 0:R.input,onInput:S,onKeydown:[a.withKeys(b,["enter"]),a.withKeys(N,["tab"]),j],onBlur:$,onFocus:T,onKeypress:j,onPaste:_},null,42,WE)),a.createElementVNode("div",{onClick:D[2]||(D[2]=K=>n("toggle"))},[M.$slots["input-icon"]&&!M.hideInputIcon?(a.openBlock(),a.createElementBlock("span",{key:0,class:"dp__input_icon",onClick:D[0]||(D[0]=K=>n("toggle"))},[a.renderSlot(M.$slots,"input-icon")])):a.createCommentVNode("",!0),!M.$slots["input-icon"]&&!M.hideInputIcon&&!M.$slots["dp-input"]?(a.openBlock(),a.createBlock(a.unref(Us),{key:1,onClick:D[1]||(D[1]=K=>n("toggle")),class:"dp__input_icon dp__input_icons"})):a.createCommentVNode("",!0)]),M.$slots["clear-icon"]&&e.inputValue&&M.clearable&&!M.disabled&&!M.readonly?(a.openBlock(),a.createElementBlock("span",qE,[a.renderSlot(M.$slots,"clear-icon",{clear:W})])):a.createCommentVNode("",!0),M.clearable&&!M.$slots["clear-icon"]&&e.inputValue&&!M.disabled&&!M.readonly?(a.openBlock(),a.createBlock(a.unref(qT),{key:3,class:"dp__clear_icon dp__input_icons",onClick:a.withModifiers(W,["stop","prevent"])},null,8,["onClick"])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])}}}),GE=["title"],KE={class:"dp__action_buttons"},XE=["onKeydown","disabled"],JE=a.defineComponent({__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},calendarWidth:{type:Number,default:0},...Yr},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const n=e,{formatDate:r,isValidTime:o,defaults:i}=bn(n),{buildMatrix:s}=qr(),l=a.ref(null),u=a.ref(null);a.onMounted(()=>{n.arrowNavigation&&s([kt(l),kt(u)],"actionRow")});const d=a.computed(()=>n.range&&!n.partialRange&&n.internalModelValue?n.internalModelValue.length===2:!0),c=a.computed(()=>!p.value||!h.value||!d.value),p=a.computed(()=>!n.enableTimePicker||n.ignoreTimeValidation?!0:o(n.internalModelValue)),h=a.computed(()=>n.monthPicker?n.range&&Array.isArray(n.internalModelValue)?!n.internalModelValue.filter(N=>!S(N)).length:S(n.internalModelValue):!0),m=()=>{const N=i.value.previewFormat;return n.timePicker||n.monthPicker,N(qt(n.internalModelValue))},y=()=>{const N=n.internalModelValue;return i.value.multiCalendars>0?`${w(N[0])} - ${w(N[1])}`:[w(N[0]),w(N[1])]},w=N=>r(N,i.value.previewFormat),k=a.computed(()=>!n.internalModelValue||!n.menuMount?"":typeof i.value.previewFormat=="string"?Array.isArray(n.internalModelValue)?n.internalModelValue.length===2&&n.internalModelValue[1]?y():n.multiDates?n.internalModelValue.map(N=>`${w(N)}`):n.modelAuto?`${w(n.internalModelValue[0])}`:`${w(n.internalModelValue[0])} -`:w(n.internalModelValue):m()),_=()=>n.multiDates?"; ":" - ",x=a.computed(()=>Array.isArray(k.value)?k.value.join(_()):k.value),S=N=>{if(!n.monthPicker)return!0;let T=!0;const I=se(Do(N));if(n.minDate&&n.maxDate){const $=se(Do(n.minDate)),W=se(Do(n.maxDate));return rn(I,$)&&Yt(I,W)||st(I,$)||st(I,W)}if(n.minDate){const $=se(Do(n.minDate));T=rn(I,$)||st(I,$)}if(n.maxDate){const $=se(Do(n.maxDate));T=Yt(I,$)||st(I,$)}return T},b=()=>{p.value&&h.value&&d.value?t("select-date"):t("invalid-select")};return(N,T)=>(a.openBlock(),a.createElementBlock("div",{class:"dp__action_row",style:a.normalizeStyle(e.calendarWidth?{width:`${e.calendarWidth}px`}:{})},[N.$slots["action-row"]?a.renderSlot(N.$slots,"action-row",a.normalizeProps(a.mergeProps({key:0},{internalModelValue:e.internalModelValue,disabled:c.value,selectDate:()=>N.$emit("select-date"),closePicker:()=>N.$emit("close-picker")}))):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.unref(i).actionRow.showPreview?(a.openBlock(),a.createElementBlock("div",{key:0,class:"dp__selection_preview",title:x.value},[N.$slots["action-preview"]?a.renderSlot(N.$slots,"action-preview",{key:0,value:e.internalModelValue}):a.createCommentVNode("",!0),N.$slots["action-preview"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(x.value),1)],64))],8,GE)):a.createCommentVNode("",!0),a.createElementVNode("div",KE,[N.$slots["action-buttons"]?a.renderSlot(N.$slots,"action-buttons",{key:0,value:e.internalModelValue}):a.createCommentVNode("",!0),N.$slots["action-buttons"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[!N.inline&&a.unref(i).actionRow.showCancel?(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",ref_key:"cancelButtonRef",ref:l,class:"dp__action_button dp__action_cancel",onClick:T[0]||(T[0]=I=>N.$emit("close-picker")),onKeydown:[T[1]||(T[1]=a.withKeys(I=>N.$emit("close-picker"),["enter"])),T[2]||(T[2]=a.withKeys(I=>N.$emit("close-picker"),["space"]))]},a.toDisplayString(N.cancelText),545)):a.createCommentVNode("",!0),N.showNowButton||a.unref(i).actionRow.showNow?(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",ref_key:"cancelButtonRef",ref:l,class:"dp__action_button dp__action_cancel",onClick:T[3]||(T[3]=I=>N.$emit("select-now")),onKeydown:[T[4]||(T[4]=a.withKeys(I=>N.$emit("select-now"),["enter"])),T[5]||(T[5]=a.withKeys(I=>N.$emit("select-now"),["space"]))]},a.toDisplayString(N.nowButtonLabel),545)):a.createCommentVNode("",!0),a.unref(i).actionRow.showSelect?(a.openBlock(),a.createElementBlock("button",{key:2,type:"button",class:"dp__action_button dp__action_select",onKeydown:[a.withKeys(b,["enter"]),a.withKeys(b,["space"])],onClick:b,disabled:c.value,ref_key:"selectButtonRef",ref:u},a.toDisplayString(N.selectText),41,XE)):a.createCommentVNode("",!0)],64))])],64))],4))}}),ZE=["aria-label"],QE={class:"dp__calendar_header",role:"row"},ex={key:0,class:"dp__calendar_header_item",role:"gridcell"},tx=a.createElementVNode("div",{class:"dp__calendar_header_separator"},null,-1),nx=["aria-label"],rx={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},ax={class:"dp__cell_inner"},ox=["aria-selected","aria-disabled","aria-label","onClick","onKeydown","onMouseenter","onMouseleave"],ix=a.defineComponent({__name:"Calendar",props:{mappedDates:{type:Array,default:()=>[]},getWeekNum:{type:Function,default:()=>""},specificMode:{type:Boolean,default:!1},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...Yr},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:t,emit:n}){const r=e,{buildMultiLevelMatrix:o}=qr(),{setDateMonthOrYear:i,defaults:s}=bn(r),l=a.ref(null),u=a.ref({bottom:"",left:"",transform:""}),d=a.ref([]),c=a.ref(null),p=a.ref(!0),h=a.ref(""),m=a.ref({startX:0,endX:0,startY:0,endY:0}),y=a.ref([]),w=a.ref({left:"50%"}),k=a.computed(()=>r.calendar?r.calendar(r.mappedDates):r.mappedDates),_=a.computed(()=>r.dayNames?Array.isArray(r.dayNames)?r.dayNames:r.dayNames(r.locale,+r.weekStart):CE(r.formatLocale,r.locale,+r.weekStart));a.onMounted(()=>{n("mount",{cmp:"calendar",refs:d}),r.noSwipe||c.value&&(c.value.addEventListener("touchstart",D,{passive:!1}),c.value.addEventListener("touchend",R,{passive:!1}),c.value.addEventListener("touchmove",K,{passive:!1})),r.monthChangeOnScroll&&c.value&&c.value.addEventListener("wheel",z,{passive:!1})});const x=H=>H?r.vertical?"vNext":"next":r.vertical?"vPrevious":"previous",S=(H,C)=>{if(r.transitions){const U=Tn(i(se(),r.month,r.year));h.value=rn(Tn(i(se(),H,C)),U)?s.value.transitions[x(!0)]:s.value.transitions[x(!1)],p.value=!1,a.nextTick(()=>{p.value=!0})}},b=a.computed(()=>({[r.calendarClassName]:!!r.calendarClassName})),N=a.computed(()=>H=>{const C=IE(H);return{dp__marker_dot:C.type==="dot",dp__marker_line:C.type==="line"}}),T=a.computed(()=>H=>st(H,l.value)),I=a.computed(()=>({dp__calendar:!0,dp__calendar_next:s.value.multiCalendars>0&&r.instance!==0})),$=a.computed(()=>H=>r.hideOffsetDates?H.current:!0),W=a.computed(()=>r.specificMode?{height:`${r.modeHeight}px`}:void 0),j=async(H,C,U)=>{var Q,X;if(n("set-hover-date",H),(X=(Q=H.marker)==null?void 0:Q.tooltip)!=null&&X.length){const V=kt(d.value[C][U]);if(V){const{width:E,height:O}=V.getBoundingClientRect();l.value=H.value;let A={left:`${E/2}px`},Z=-50;if(await a.nextTick(),y.value[0]){const{left:re,width:ie}=y.value[0].getBoundingClientRect();re<0&&(A={left:"0"},Z=0,w.value.left=`${E/2}px`),window.innerWidth<re+ie&&(A={right:"0"},Z=0,w.value.left=`${ie-E/2}px`)}u.value={bottom:`${O}px`,...A,transform:`translateX(${Z}%)`},n("tooltip-open",H.marker)}}},M=H=>{l.value&&(l.value=null,u.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),n("tooltip-close",H.marker))},D=H=>{m.value.startX=H.changedTouches[0].screenX,m.value.startY=H.changedTouches[0].screenY},R=H=>{m.value.endX=H.changedTouches[0].screenX,m.value.endY=H.changedTouches[0].screenY,G()},K=H=>{r.vertical&&!r.inline&&H.preventDefault()},G=()=>{const H=r.vertical?"Y":"X";Math.abs(m.value[`start${H}`]-m.value[`end${H}`])>10&&n("handle-swipe",m.value[`start${H}`]>m.value[`end${H}`]?"right":"left")},Y=(H,C,U)=>{H&&(Array.isArray(d.value[C])?d.value[C][U]=H:d.value[C]=[H]),r.arrowNavigation&&o(d.value,"calendar")},z=H=>{r.monthChangeOnScroll&&(H.preventDefault(),n("handle-scroll",H))};return t({triggerTransition:S}),(H,C)=>{var U;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(I.value)},[a.createElementVNode("div",{style:a.normalizeStyle(W.value),ref_key:"calendarWrapRef",ref:c,role:"grid",class:a.normalizeClass(b.value),"aria-label":(U=a.unref(s).ariaLabels)==null?void 0:U.calendarWrap},[e.specificMode?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("div",QE,[H.weekNumbers?(a.openBlock(),a.createElementBlock("div",ex,a.toDisplayString(H.weekNumName),1)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(_.value,(Q,X)=>(a.openBlock(),a.createElementBlock("div",{class:"dp__calendar_header_item",role:"gridcell",key:X},[H.$slots["calendar-header"]?a.renderSlot(H.$slots,"calendar-header",{key:0,day:Q,index:X}):a.createCommentVNode("",!0),H.$slots["calendar-header"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(Q),1)],64))]))),128))]),tx,a.createVNode(a.Transition,{name:h.value,css:!!H.transitions},{default:a.withCtx(()=>{var Q;return[p.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:"dp__calendar",role:"grid","aria-label":(Q=a.unref(s).ariaLabels)==null?void 0:Q.calendarDays},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(k.value,(X,V)=>(a.openBlock(),a.createElementBlock("div",{class:"dp__calendar_row",role:"row",key:V},[H.weekNumbers?(a.openBlock(),a.createElementBlock("div",rx,[a.createElementVNode("div",ax,a.toDisplayString(e.getWeekNum(X.days)),1)])):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(X.days,(E,O)=>{var A,Z,re;return a.openBlock(),a.createElementBlock("div",{role:"gridcell",class:"dp__calendar_item",ref_for:!0,ref:ie=>Y(ie,V,O),key:O+V,"aria-selected":E.classData.dp__active_date||E.classData.dp__range_start||E.classData.dp__range_start,"aria-disabled":E.classData.dp__cell_disabled,"aria-label":(Z=(A=a.unref(s).ariaLabels)==null?void 0:A.day)==null?void 0:Z.call(A,E),tabindex:"0",onClick:a.withModifiers(ie=>H.$emit("select-date",E),["stop","prevent"]),onKeydown:[a.withKeys(ie=>H.$emit("select-date",E),["enter"]),a.withKeys(ie=>H.$emit("handle-space",E),["space"])],onMouseenter:ie=>j(E,V,O),onMouseleave:ie=>M(E)},[a.createElementVNode("div",{class:a.normalizeClass(["dp__cell_inner",E.classData])},[H.$slots.day&&$.value(E)?a.renderSlot(H.$slots,"day",{key:0,day:+E.text,date:E.value}):a.createCommentVNode("",!0),H.$slots.day?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(E.text),1)],64)),E.marker&&$.value(E)?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[H.$slots.marker?a.renderSlot(H.$slots,"marker",{key:0,marker:E.marker,day:+E.text,date:E.value}):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(N.value(E.marker)),style:a.normalizeStyle(E.marker.color?{backgroundColor:E.marker.color}:{})},null,6))],64)):a.createCommentVNode("",!0),T.value(E.value)?(a.openBlock(),a.createElementBlock("div",{key:3,class:"dp__marker_tooltip",ref_for:!0,ref_key:"activeTooltip",ref:y,style:a.normalizeStyle(u.value)},[(re=E.marker)!=null&&re.tooltip?(a.openBlock(),a.createElementBlock("div",{key:0,class:"dp__tooltip_content",onClick:C[0]||(C[0]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(E.marker.tooltip,(ie,Te)=>(a.openBlock(),a.createElementBlock("div",{key:Te,class:"dp__tooltip_text"},[H.$slots["marker-tooltip"]?a.renderSlot(H.$slots,"marker-tooltip",{key:0,tooltip:ie,day:E.value}):a.createCommentVNode("",!0),H.$slots["marker-tooltip"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",{class:"dp__tooltip_mark",style:a.normalizeStyle(ie.color?{backgroundColor:ie.color}:{})},null,4),a.createElementVNode("div",null,a.toDisplayString(ie.text),1)],64))]))),128)),a.createElementVNode("div",{class:"dp__arrow_bottom_tp",style:a.normalizeStyle(w.value)},null,4)])):a.createCommentVNode("",!0)],4)):a.createCommentVNode("",!0)],2)],40,ox)}),128))]))),128))],8,nx)):a.createCommentVNode("",!0)]}),_:3},8,["name","css"])],64))],14,ZE)],2)}}}),sx=["aria-label","aria-disabled"],$l=a.defineComponent({__name:"ActionIcon",props:{ariaLabel:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const n=a.ref(null);return a.onMounted(()=>t("set-ref",n)),(r,o)=>(a.openBlock(),a.createElementBlock("button",{type:"button",class:"dp__btn dp__month_year_col_nav",onClick:o[0]||(o[0]=i=>r.$emit("activate")),onKeydown:[o[1]||(o[1]=a.withKeys(a.withModifiers(i=>r.$emit("activate"),["prevent"]),["enter"])),o[2]||(o[2]=a.withKeys(a.withModifiers(i=>r.$emit("activate"),["prevent"]),["space"]))],tabindex:"0","aria-label":r.ariaLabel,"aria-disabled":r.disabled,ref_key:"elRef",ref:n},[a.createElementVNode("span",{class:a.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:r.disabled}])},[a.renderSlot(r.$slots,"default")],2)],40,sx))}}),lx=["onKeydown"],ux={class:"dp__selection_grid_header"},cx=["aria-selected","aria-disabled","onClick","onKeydown","onMouseover"],dx=["aria-label","onKeydown"],Uo=a.defineComponent({__name:"SelectionGrid",props:{items:{type:Array,default:()=>[]},modelValue:{type:[String,Number],default:null},multiModelValue:{type:Array,default:()=>[]},disabledValues:{type:Array,default:()=>[]},minValue:{type:[Number,String],default:null},maxValue:{type:[Number,String],default:null},year:{type:Number,default:0},skipActive:{type:Boolean,default:!1},headerRefs:{type:Array,default:()=>[]},skipButtonRef:{type:Boolean,default:!1},monthPicker:{type:Boolean,default:!1},yearPicker:{type:Boolean,default:!1},escClose:{type:Boolean,default:!0},type:{type:String,default:null},arrowNavigation:{type:Boolean,default:!1},autoApply:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},ariaLabels:{type:Object,default:()=>({})},hideNavigation:{type:Array,default:()=>[]},internalModelValue:{type:[Date,Array],default:null},autoApplyMonth:{type:Boolean,default:!1}},emits:["update:model-value","selected","toggle","reset-flow"],setup(e,{expose:t,emit:n}){const r=e,{setSelectionGrid:o,buildMultiLevelMatrix:i,setMonthPicker:s}=qr(),{hideNavigationButtons:l}=bn(r),u=a.ref(!1),d=a.ref(null),c=a.ref(null),p=a.ref([]),h=a.ref(),m=a.ref(null),y=a.ref(0),w=a.ref(null);a.onBeforeUpdate(()=>{d.value=null}),a.onMounted(()=>{var z;a.nextTick().then(()=>W()),_(),k(!0),(z=d.value)==null||z.focus({preventScroll:!0})}),a.onUnmounted(()=>k(!1));const k=z=>{var H;r.arrowNavigation&&((H=r.headerRefs)!=null&&H.length?s(z):o(z))},_=()=>{const z=kt(c);z&&(r.textInput||z.focus({preventScroll:!0}),u.value=z.clientHeight<z.scrollHeight)},x=a.computed(()=>({dp__overlay:!0})),S=a.computed(()=>({dp__overlay_col:!0})),b=z=>r.monthPicker&&!r.autoApplyMonth?st(r.internalModelValue,wr(La(new Date,z.value),r.year)):r.skipActive?!1:z.value===r.modelValue,N=a.computed(()=>r.items.map(z=>z.filter(H=>H).map(H=>{var C,U,Q;const X=r.disabledValues.some(E=>E===H.value)||$(H.value),V=(C=r.multiModelValue)!=null&&C.length?(U=r.multiModelValue)==null?void 0:U.some(E=>st(E,wr(r.monthPicker?La(new Date,H.value):new Date,r.monthPicker?r.year:H.value))):b(H);return{...H,className:{dp__overlay_cell_active:V,dp__overlay_cell:!V,dp__overlay_cell_disabled:X,dp__overlay_cell_active_disabled:X&&V,dp__overlay_cell_pad:!0,dp__cell_in_between:(Q=r.multiModelValue)!=null&&Q.length&&r.skipActive?M(H.value):!1}}}))),T=a.computed(()=>({dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:u.value,dp__button_bottom:r.autoApply})),I=a.computed(()=>{var z,H;return{dp__overlay_container:!0,dp__container_flex:((z=r.items)==null?void 0:z.length)<=6,dp__container_block:((H=r.items)==null?void 0:H.length)>6}}),$=z=>{const H=r.maxValue||r.maxValue===0,C=r.minValue||r.minValue===0;return!H&&!C?!1:H&&C?+z>+r.maxValue||+z<+r.minValue:H?+z>+r.maxValue:C?+z<+r.minValue:!1},W=()=>{const z=kt(d),H=kt(c),C=kt(m),U=kt(w),Q=C?C.getBoundingClientRect().height:0;H&&(y.value=H.getBoundingClientRect().height-Q),z&&U&&(U.scrollTop=z.offsetTop-U.offsetTop-(y.value/2-z.getBoundingClientRect().height)-Q)},j=z=>{!r.disabledValues.some(H=>H===z)&&!$(z)&&(n("update:model-value",z),n("selected"))},M=z=>{const H=r.monthPicker?r.year:z;return Em(r.multiModelValue,wr(r.monthPicker?La(new Date,h.value||0):new Date,r.monthPicker?H:h.value||H),wr(r.monthPicker?La(new Date,z):new Date,H))},D=()=>{n("toggle"),n("reset-flow")},R=()=>{r.escClose&&D()},K=(z,H,C,U)=>{z&&(H.value===+r.modelValue&&!r.disabledValues.includes(H.value)&&(d.value=z),r.arrowNavigation&&(Array.isArray(p.value[C])?p.value[C][U]=z:p.value[C]=[z],G()))},G=()=>{var z,H;const C=(z=r.headerRefs)!=null&&z.length?[r.headerRefs].concat(p.value):p.value.concat([r.skipButtonRef?[]:[m.value]]);i(qt(C),(H=r.headerRefs)!=null&&H.length?"monthPicker":"selectionGrid")},Y=z=>{r.arrowNavigation||z.stopImmediatePropagation()};return t({focusGrid:_}),(z,H)=>{var C;return a.openBlock(),a.createElementBlock("div",{ref_key:"gridWrapRef",ref:c,class:a.normalizeClass(x.value),role:"dialog",tabindex:"0",onKeydown:[a.withKeys(R,["esc"]),H[0]||(H[0]=a.withKeys(U=>Y(U),["left"])),H[1]||(H[1]=a.withKeys(U=>Y(U),["up"])),H[2]||(H[2]=a.withKeys(U=>Y(U),["down"])),H[3]||(H[3]=a.withKeys(U=>Y(U),["right"]))]},[a.createElementVNode("div",{class:a.normalizeClass(I.value),ref_key:"containerRef",ref:w,role:"grid",style:a.normalizeStyle({height:`${y.value}px`})},[a.createElementVNode("div",ux,[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(N.value,(U,Q)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["dp__overlay_row",{dp__flex_row:N.value.length>=3}]),key:Q,role:"row"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(U,(X,V)=>(a.openBlock(),a.createElementBlock("div",{role:"gridcell",class:a.normalizeClass(S.value),key:X.value,"aria-selected":X.value===e.modelValue&&!e.disabledValues.includes(X.value),"aria-disabled":X.className.dp__overlay_cell_disabled,ref_for:!0,ref:E=>K(E,X,Q,V),tabindex:"0",onClick:E=>j(X.value),onKeydown:[a.withKeys(E=>j(X.value),["enter"]),a.withKeys(E=>j(X.value),["space"])],onMouseover:E=>h.value=X.value},[a.createElementVNode("div",{class:a.normalizeClass(X.className)},[z.$slots.item?a.renderSlot(z.$slots,"item",{key:0,item:X}):a.createCommentVNode("",!0),z.$slots.item?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(X.text),1)],64))],2)],42,cx))),128))],2))),128))],6),z.$slots["button-icon"]?a.withDirectives((a.openBlock(),a.createElementBlock("div",{key:0,role:"button","aria-label":(C=e.ariaLabels)==null?void 0:C.toggleOverlay,class:a.normalizeClass(T.value),tabindex:"0",ref_key:"toggleButton",ref:m,onClick:D,onKeydown:[a.withKeys(D,["enter"]),a.withKeys(D,["tab"])]},[a.renderSlot(z.$slots,"button-icon")],42,dx)),[[a.vShow,!a.unref(l)(e.type)]]):a.createCommentVNode("",!0)],42,lx)}}}),fx=["aria-label"],Pf=a.defineComponent({__name:"RegularPicker",props:{ariaLabel:{type:String,default:""},showSelectionGrid:{type:Boolean,default:!1},modelValue:{type:Number,default:null},items:{type:Array,default:()=>[]},disabledValues:{type:Array,default:()=>[]},minValue:{type:Number,default:null},maxValue:{type:Number,default:null},slotName:{type:String,default:""},overlaySlot:{type:String,default:""},headerRefs:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},type:{type:String,default:null},transitions:{type:[Object,Boolean],default:!1},arrowNavigation:{type:Boolean,default:!1},autoApply:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},ariaLabels:{type:Object,default:()=>({})},hideNavigation:{type:Array,default:()=>[]}},emits:["update:model-value","toggle","set-ref"],setup(e,{emit:t}){const n=e,{transitionName:r,showTransition:o}=zs(n.transitions),i=a.ref(null);return a.onMounted(()=>t("set-ref",i)),(s,l)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("button",{type:"button",class:"dp__btn dp__month_year_select",onClick:l[0]||(l[0]=u=>s.$emit("toggle")),onKeydown:[l[1]||(l[1]=a.withKeys(a.withModifiers(u=>s.$emit("toggle"),["prevent"]),["enter"])),l[2]||(l[2]=a.withKeys(a.withModifiers(u=>s.$emit("toggle"),["prevent"]),["space"]))],"aria-label":e.ariaLabel,tabindex:"0",ref_key:"elRef",ref:i},[a.renderSlot(s.$slots,"default")],40,fx),a.createVNode(a.Transition,{name:a.unref(r)(e.showSelectionGrid),css:a.unref(o)},{default:a.withCtx(()=>[e.showSelectionGrid?(a.openBlock(),a.createBlock(Uo,a.mergeProps({key:0},{modelValue:e.modelValue,items:e.items,disabledValues:e.disabledValues,minValue:e.minValue,maxValue:e.maxValue,escClose:e.escClose,type:e.type,arrowNavigation:e.arrowNavigation,textInput:e.textInput,autoApply:e.autoApply,ariaLabels:e.ariaLabels,hideNavigation:e.hideNavigation},{"header-refs":[],"onUpdate:modelValue":l[3]||(l[3]=u=>s.$emit("update:model-value",u)),onToggle:l[4]||(l[4]=u=>s.$emit("toggle"))}),a.createSlots({"button-icon":a.withCtx(()=>[s.$slots["calendar-icon"]?a.renderSlot(s.$slots,"calendar-icon",{key:0}):a.createCommentVNode("",!0),s.$slots["calendar-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Us),{key:1}))]),_:2},[s.$slots[e.slotName]?{name:"item",fn:a.withCtx(({item:u})=>[a.renderSlot(s.$slots,e.slotName,{item:u})]),key:"0"}:void 0,s.$slots[e.overlaySlot]?{name:"overlay",fn:a.withCtx(()=>[a.renderSlot(s.$slots,e.overlaySlot)]),key:"1"}:void 0,s.$slots[`${e.overlaySlot}-header`]?{name:"header",fn:a.withCtx(()=>[a.renderSlot(s.$slots,`${e.overlaySlot}-header`)]),key:"2"}:void 0]),1040)):a.createCommentVNode("",!0)]),_:3},8,["name","css"])],64))}}),px={class:"dp__month_year_row"},hx={class:"dp__month_picker_header"},mx=["aria-label"],vx=["aria-label"],gx=["aria-label"],yx=a.defineComponent({__name:"MonthYearPicker",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},internalModelValue:{type:[Date,Array],default:null},...Yr},emits:["update-month-year","month-year-select","mount","reset-flow","overlay-closed"],setup(e,{expose:t,emit:n}){const r=e,{defaults:o}=bn(r),{transitionName:i,showTransition:s}=zs(o.value.transitions),{buildMatrix:l}=qr(),{handleMonthYearChange:u,isDisabled:d,updateMonthYear:c}=FE(r,n),p=a.ref(!1),h=a.ref(!1),m=a.ref([null,null,null,null]),y=a.ref(null),w=a.ref(null),k=a.ref(null);a.onMounted(()=>{n("mount")});const _=O=>({get:()=>r[O],set:A=>{const Z=O==="month"?"year":"month";n("update-month-year",{[O]:A,[Z]:r[Z]}),n("month-year-select",O==="year"),O==="month"?U(!0):Q(!0)}}),x=a.computed(_("month")),S=a.computed(_("year")),b=O=>{const A=gt(se(O));return r.year===A},N=a.computed(()=>r.monthPicker?Array.isArray(r.disabledDates)?r.disabledDates.map(O=>se(O)).filter(O=>b(O)).map(O=>pt(O)):[]:[]),T=a.computed(()=>O=>{const A=O==="month";return{showSelectionGrid:(A?p:h).value,items:(A?G:Y).value,disabledValues:o.value.filters[A?"months":"years"].concat(N.value),minValue:(A?j:$).value,maxValue:(A?M:W).value,headerRefs:A&&r.monthPicker?[y.value,w.value,k.value]:[],escClose:r.escClose,transitions:o.value.transitions,ariaLabels:o.value.ariaLabels,textInput:r.textInput,autoApply:r.autoApply,arrowNavigation:r.arrowNavigation,hideNavigation:r.hideNavigation}}),I=a.computed(()=>O=>({month:r.month,year:r.year,items:O==="month"?r.months:r.years,instance:r.instance,updateMonthYear:c,toggle:O==="month"?U:Q})),$=a.computed(()=>r.minDate?gt(se(r.minDate)):null),W=a.computed(()=>r.maxDate?gt(se(r.maxDate)):null),j=a.computed(()=>{if(r.minDate&&$.value){if($.value>r.year)return 12;if($.value===r.year)return pt(se(r.minDate))}return null}),M=a.computed(()=>r.maxDate&&W.value?W.value<r.year?-1:W.value===r.year?pt(se(r.maxDate)):null:null),D=a.computed(()=>(r.range||r.multiDates)&&r.internalModelValue&&(r.monthPicker||r.yearPicker)?r.internalModelValue:[]),R=O=>{const A=[],Z=re=>re;for(let re=0;re<O.length;re+=3){const ie=[O[re],O[re+1],O[re+2]];A.push(Z(ie))}return A},K=a.computed(()=>r.months.find(A=>A.value===r.month)||{text:"",value:0}),G=a.computed(()=>R(r.months)),Y=a.computed(()=>R(r.years)),z=a.computed(()=>o.value.multiCalendars?r.multiCalendarsSolo?!0:r.instance===0:!0),H=a.computed(()=>o.value.multiCalendars?r.multiCalendarsSolo?!0:r.instance===o.value.multiCalendars-1:!0),C=(O,A)=>{A!==void 0?O.value=A:O.value=!O.value},U=(O=!1,A)=>{X(O),C(p,A),p.value||n("overlay-closed")},Q=(O=!1,A)=>{X(O),C(h,A),h.value||n("overlay-closed")},X=O=>{O||n("reset-flow")},V=(O=!1)=>{d.value(O)||n("update-month-year",{year:O?r.year+1:r.year-1,month:r.month,fromNav:!0})},E=(O,A)=>{r.arrowNavigation&&(m.value[A]=kt(O),l(m.value,"monthYear"))};return t({toggleMonthPicker:U,toggleYearPicker:Q,handleMonthYearChange:u}),(O,A)=>{var Z,re,ie,Te,Pe;return a.openBlock(),a.createElementBlock("div",px,[O.$slots["month-year"]?a.renderSlot(O.$slots,"month-year",a.normalizeProps(a.mergeProps({key:0},{month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:a.unref(c),handleMonthYearChange:a.unref(u),instance:e.instance}))):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[!O.monthPicker&&!O.yearPicker?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[z.value&&!O.vertical?(a.openBlock(),a.createBlock($l,{key:0,"aria-label":(Z=a.unref(o).ariaLabels)==null?void 0:Z.prevMonth,disabled:a.unref(d)(!1),onActivate:A[0]||(A[0]=fe=>a.unref(u)(!1)),onSetRef:A[1]||(A[1]=fe=>E(fe,0))},{default:a.withCtx(()=>[O.$slots["arrow-left"]?a.renderSlot(O.$slots,"arrow-left",{key:0}):a.createCommentVNode("",!0),O.$slots["arrow-left"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(ff),{key:1}))]),_:3},8,["aria-label","disabled"])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["dp__month_year_wrap",{dp__year_disable_select:r.disableYearSelect}])},[a.createVNode(Pf,a.mergeProps({type:"month","slot-name":"month-overlay-val","overlay-slot":"overlay-month","aria-label":(re=a.unref(o).ariaLabels)==null?void 0:re.openMonthsOverlay,modelValue:x.value,"onUpdate:modelValue":A[2]||(A[2]=fe=>x.value=fe)},T.value("month"),{onToggle:U,onSetRef:A[3]||(A[3]=fe=>E(fe,1))}),a.createSlots({default:a.withCtx(()=>[O.$slots.month?a.renderSlot(O.$slots,"month",a.normalizeProps(a.mergeProps({key:0},K.value))):a.createCommentVNode("",!0),O.$slots.month?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(K.value.text),1)],64))]),_:2},[O.$slots["calendar-icon"]?{name:"calendar-icon",fn:a.withCtx(()=>[a.renderSlot(O.$slots,"calendar-icon")]),key:"0"}:void 0,O.$slots["month-overlay-value"]?{name:"month-overlay-val",fn:a.withCtx(({item:fe})=>[a.renderSlot(O.$slots,"month-overlay-value",{text:fe.text,value:fe.value})]),key:"1"}:void 0,O.$slots["month-overlay"]?{name:"overlay-month",fn:a.withCtx(()=>[a.renderSlot(O.$slots,"month-overlay",a.normalizeProps(a.guardReactiveProps(I.value("month"))))]),key:"2"}:void 0,O.$slots["month-overlay-header"]?{name:"overlay-month-header",fn:a.withCtx(()=>[a.renderSlot(O.$slots,"month-overlay-header",{toggle:U})]),key:"3"}:void 0]),1040,["aria-label","modelValue"]),r.disableYearSelect?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(Pf,a.mergeProps({key:0,type:"year","slot-name":"year-overlay-val","overlay-slot":"overlay-year","aria-label":(ie=a.unref(o).ariaLabels)==null?void 0:ie.openYearsOverlay,modelValue:S.value,"onUpdate:modelValue":A[4]||(A[4]=fe=>S.value=fe)},T.value("year"),{onToggle:Q,onSetRef:A[5]||(A[5]=fe=>E(fe,2))}),a.createSlots({default:a.withCtx(()=>[O.$slots.year?a.renderSlot(O.$slots,"year",{key:0,year:e.year}):a.createCommentVNode("",!0),O.$slots.year?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(e.year),1)],64))]),_:2},[O.$slots["calendar-icon"]?{name:"calendar-icon",fn:a.withCtx(()=>[a.renderSlot(O.$slots,"calendar-icon")]),key:"0"}:void 0,O.$slots["year-overlay-value"]?{name:"year-overlay-val",fn:a.withCtx(({item:fe})=>[a.renderSlot(O.$slots,"year-overlay-value",{text:fe.text,value:fe.value})]),key:"1"}:void 0,O.$slots["year-overlay"]?{name:"overlay-year",fn:a.withCtx(()=>[a.renderSlot(O.$slots,"year-overlay",a.normalizeProps(a.guardReactiveProps(I.value("year"))))]),key:"2"}:void 0,O.$slots["year-overlay-header"]?{name:"overlay-year-header",fn:a.withCtx(()=>[a.renderSlot(O.$slots,"year-overlay-header",{toggle:Q})]),key:"3"}:void 0]),1040,["aria-label","modelValue"]))],2),z.value&&O.vertical?(a.openBlock(),a.createBlock($l,{key:1,"aria-label":(Te=a.unref(o).ariaLabels)==null?void 0:Te.prevMonth,disabled:a.unref(d)(!1),onActivate:A[6]||(A[6]=fe=>a.unref(u)(!1))},{default:a.withCtx(()=>[O.$slots["arrow-up"]?a.renderSlot(O.$slots,"arrow-up",{key:0}):a.createCommentVNode("",!0),O.$slots["arrow-up"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Cm),{key:1}))]),_:3},8,["aria-label","disabled"])):a.createCommentVNode("",!0),H.value?(a.openBlock(),a.createBlock($l,{key:2,ref:"rightIcon",disabled:a.unref(d)(!0),"aria-label":(Pe=a.unref(o).ariaLabels)==null?void 0:Pe.nextMonth,onActivate:A[7]||(A[7]=fe=>a.unref(u)(!0)),onSetRef:A[8]||(A[8]=fe=>E(fe,3))},{default:a.withCtx(()=>[O.$slots[O.vertical?"arrow-down":"arrow-right"]?a.renderSlot(O.$slots,O.vertical?"arrow-down":"arrow-right",{key:0}):a.createCommentVNode("",!0),O.$slots[O.vertical?"arrow-down":"arrow-right"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(O.vertical?a.unref(Tm):a.unref(pf)),{key:1}))]),_:3},8,["disabled","aria-label"])):a.createCommentVNode("",!0)],64)):a.createCommentVNode("",!0),O.monthPicker?(a.openBlock(),a.createBlock(Uo,a.mergeProps({key:1},T.value("month"),{"skip-active":O.range,"internal-model-value":e.internalModelValue,year:e.year,"auto-apply-month":O.autoApplyMonth,"multi-model-value":D.value,"month-picker":"",modelValue:x.value,"onUpdate:modelValue":A[17]||(A[17]=fe=>x.value=fe),onToggle:U,onSelected:A[18]||(A[18]=fe=>O.$emit("overlay-closed"))}),a.createSlots({header:a.withCtx(()=>{var fe,Ie,Ve;return[a.createElementVNode("div",hx,[a.createElementVNode("div",{class:"dp__month_year_col_nav",tabindex:"0",ref_key:"mpPrevIconRef",ref:y,onClick:A[9]||(A[9]=Be=>V(!1)),onKeydown:A[10]||(A[10]=a.withKeys(Be=>V(!1),["enter"]))},[a.createElementVNode("div",{class:a.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:a.unref(d)(!1)}]),role:"button","aria-label":(fe=a.unref(o).ariaLabels)==null?void 0:fe.prevMonth},[O.$slots["arrow-left"]?a.renderSlot(O.$slots,"arrow-left",{key:0}):a.createCommentVNode("",!0),O.$slots["arrow-left"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(ff),{key:1}))],10,mx)],544),a.createElementVNode("div",{class:"dp__pointer",role:"button",ref_key:"mpYearButtonRef",ref:w,"aria-label":(Ie=a.unref(o).ariaLabels)==null?void 0:Ie.openYearsOverlay,tabindex:"0",onClick:A[11]||(A[11]=()=>Q(!1)),onKeydown:A[12]||(A[12]=a.withKeys(()=>Q(!1),["enter"]))},[O.$slots.year?a.renderSlot(O.$slots,"year",{key:0,year:e.year}):a.createCommentVNode("",!0),O.$slots.year?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(e.year),1)],64))],40,vx),a.createElementVNode("div",{class:"dp__month_year_col_nav",tabindex:"0",ref_key:"mpNextIconRef",ref:k,onClick:A[13]||(A[13]=Be=>V(!0)),onKeydown:A[14]||(A[14]=a.withKeys(Be=>V(!0),["enter"]))},[a.createElementVNode("div",{class:a.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:a.unref(d)(!0)}]),role:"button","aria-label":(Ve=a.unref(o).ariaLabels)==null?void 0:Ve.nextMonth},[O.$slots["arrow-right"]?a.renderSlot(O.$slots,"arrow-right",{key:0}):a.createCommentVNode("",!0),O.$slots["arrow-right"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(pf),{key:1}))],10,gx)],544)]),a.createVNode(a.Transition,{name:a.unref(i)(h.value),css:a.unref(s)},{default:a.withCtx(()=>[h.value?(a.openBlock(),a.createBlock(Uo,a.mergeProps({key:0},T.value("year"),{modelValue:S.value,"onUpdate:modelValue":A[15]||(A[15]=Be=>S.value=Be),onToggle:Q,onSelected:A[16]||(A[16]=Be=>O.$emit("overlay-closed"))}),a.createSlots({"button-icon":a.withCtx(()=>[O.$slots["calendar-icon"]?a.renderSlot(O.$slots,"calendar-icon",{key:0}):a.createCommentVNode("",!0),O.$slots["calendar-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Us),{key:1}))]),_:2},[O.$slots["year-overlay-value"]?{name:"item",fn:a.withCtx(({item:Be})=>[a.renderSlot(O.$slots,"year-overlay-value",{text:Be.text,value:Be.value})]),key:"0"}:void 0]),1040,["modelValue"])):a.createCommentVNode("",!0)]),_:3},8,["name","css"])]}),_:2},[O.$slots["month-overlay-value"]?{name:"item",fn:a.withCtx(({item:fe})=>[a.renderSlot(O.$slots,"month-overlay-value",{text:fe.text,value:fe.value})]),key:"0"}:void 0]),1040,["skip-active","internal-model-value","year","auto-apply-month","multi-model-value","modelValue"])):a.createCommentVNode("",!0),O.yearPicker?(a.openBlock(),a.createBlock(Uo,a.mergeProps({key:2},T.value("year"),{modelValue:S.value,"onUpdate:modelValue":A[19]||(A[19]=fe=>S.value=fe),"multi-model-value":D.value,"skip-active":O.range,"skip-button-ref":"","year-picker":"",onToggle:Q,onSelected:A[20]||(A[20]=fe=>O.$emit("overlay-closed"))}),a.createSlots({_:2},[O.$slots["year-overlay-value"]?{name:"item",fn:a.withCtx(({item:fe})=>[a.renderSlot(O.$slots,"year-overlay-value",{text:fe.text,value:fe.value})]),key:"0"}:void 0]),1040,["modelValue","multi-model-value","skip-active"])):a.createCommentVNode("",!0)],64))])}}}),bx={key:0,class:"dp__time_input"},_x=["aria-label","onKeydown","onClick"],wx=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),kx=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),Sx=["aria-label","onKeydown","onClick"],Cx=["aria-label","onKeydown","onClick"],Tx=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),Ex=a.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),xx={key:0},Ix=["aria-label","onKeydown"],Px=a.defineComponent({__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},...Yr},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const r=e,{setTimePickerElements:o,setTimePickerBackRef:i}=qr(),{defaults:s}=bn(r),{transitionName:l,showTransition:u}=zs(s.value.transitions),d=a.reactive({hours:!1,minutes:!1,seconds:!1}),c=a.ref("AM"),p=a.ref(null),h=a.ref([]);a.onMounted(()=>{n("mounted")});const m=C=>Rt(new Date,{hours:C.hours,minutes:C.minutes,seconds:r.enableSeconds?C.seconds:0,milliseconds:0}),y=a.computed(()=>({hours:r.hours,minutes:r.minutes,seconds:r.seconds})),w=a.computed(()=>C=>!$(+r[C]+ +r[`${C}Increment`],C)),k=a.computed(()=>C=>!$(+r[C]-+r[`${C}Increment`],C)),_=(C,U)=>rm(Rt(se(),C),U),x=(C,U)=>eT(Rt(se(),C),U),S=a.computed(()=>({dp__time_col:!0,dp__time_col_block:!r.timePickerInline,dp__time_col_reg_block:!r.enableSeconds&&r.is24&&!r.timePickerInline,dp__time_col_reg_inline:!r.enableSeconds&&r.is24&&r.timePickerInline,dp__time_col_reg_with_button:!r.enableSeconds&&!r.is24,dp__time_col_sec:r.enableSeconds&&r.is24,dp__time_col_sec_with_button:r.enableSeconds&&!r.is24})),b=a.computed(()=>{const C=[{type:"hours"},{type:"",separator:!0},{type:"minutes"}];return r.enableSeconds?C.concat([{type:"",separator:!0},{type:"seconds"}]):C}),N=a.computed(()=>b.value.filter(C=>!C.separator)),T=a.computed(()=>C=>{if(C==="hours"){const U=K(+r.hours);return{text:U<10?`0${U}`:`${U}`,value:U}}return{text:r[C]<10?`0${r[C]}`:`${r[C]}`,value:r[C]}}),I=C=>{const U=r.is24?24:12,Q=C==="hours"?U:60,X=+r[`${C}GridIncrement`],V=C==="hours"&&!r.is24?X:0,E=[];for(let O=V;O<Q;O+=X)E.push({value:O,text:O<10?`0${O}`:`${O}`});return C==="hours"&&!r.is24&&E.push({value:0,text:"12"}),kE(E)},$=(C,U)=>{const Q=r.minTime?m(Il(r.minTime)):null,X=r.maxTime?m(Il(r.maxTime)):null,V=m(Il(y.value,U,C));return Q&&X?(ni(V,X)||sa(V,X))&&(ti(V,Q)||sa(V,Q)):Q?ti(V,Q)||sa(V,Q):X?ni(V,X)||sa(V,X):!0},W=a.computed(()=>C=>I(C).flat().filter(U=>PE(U.value)).map(U=>U.value).filter(U=>!$(U,C))),j=C=>r[`no${C[0].toUpperCase()+C.slice(1)}Overlay`],M=C=>{j(C)||(d[C]=!d[C],d[C]||n("overlay-closed"))},D=C=>C==="hours"?yr:C==="minutes"?br:no,R=(C,U=!0)=>{const Q=U?_:x,X=U?+r[`${C}Increment`]:-+r[`${C}Increment`];$(+r[C]+X,C)&&n(`update:${C}`,D(C)(Q({[C]:+r[C]},{[C]:+r[`${C}Increment`]})))},K=C=>r.is24?C:(C>=12?c.value="PM":c.value="AM",xE(C)),G=()=>{c.value==="PM"?(c.value="AM",n("update:hours",r.hours-12)):(c.value="PM",n("update:hours",r.hours+12)),n("am-pm-change",c.value)},Y=C=>{d[C]=!0},z=(C,U,Q)=>{if(C&&r.arrowNavigation){Array.isArray(h.value[U])?h.value[U][Q]=C:h.value[U]=[C];const X=h.value.reduce((V,E)=>E.map((O,A)=>[...V[A]||[],E[A]]),[]);i(r.closeTimePickerBtn),p.value&&(X[1]=X[1].concat(p.value)),o(X,r.order)}},H=(C,U)=>C==="hours"&&!r.is24?n(`update:${C}`,c.value==="PM"?U+12:U):n(`update:${C}`,U);return t({openChildCmp:Y}),(C,U)=>{var Q;return C.disabled?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",bx,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(b.value,(X,V)=>{var E,O,A;return a.openBlock(),a.createElementBlock("div",{key:V,class:a.normalizeClass(S.value)},[X.separator?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(" : ")],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("button",{type:"button",class:a.normalizeClass({dp__btn:!0,dp__inc_dec_button:!r.timePickerInline,dp__inc_dec_button_inline:r.timePickerInline,dp__tp_inline_btn_top:r.timePickerInline,dp__inc_dec_button_disabled:w.value(X.type)}),"aria-label":(E=a.unref(s).ariaLabels)==null?void 0:E.incrementValue(X.type),tabindex:"0",onKeydown:[a.withKeys(Z=>R(X.type),["enter"]),a.withKeys(Z=>R(X.type),["space"])],onClick:Z=>R(X.type),ref_for:!0,ref:Z=>z(Z,V,0)},[r.timePickerInline?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[wx,kx],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[C.$slots["arrow-up"]?a.renderSlot(C.$slots,"arrow-up",{key:0}):a.createCommentVNode("",!0),C.$slots["arrow-up"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Cm),{key:1}))],64))],42,_x),a.createElementVNode("button",{type:"button","aria-label":(O=a.unref(s).ariaLabels)==null?void 0:O.openTpOverlay(X.type),class:a.normalizeClass(["dp__btn",j(X.type)?void 0:{dp__time_display:!0,dp__time_display_block:!r.timePickerInline,dp__time_display_inline:r.timePickerInline}]),tabindex:"0",onKeydown:[a.withKeys(Z=>M(X.type),["enter"]),a.withKeys(Z=>M(X.type),["space"])],onClick:Z=>M(X.type),ref_for:!0,ref:Z=>z(Z,V,1)},[C.$slots[X.type]?a.renderSlot(C.$slots,X.type,{key:0,text:T.value(X.type).text,value:T.value(X.type).value}):a.createCommentVNode("",!0),C.$slots[X.type]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(T.value(X.type).text),1)],64))],42,Sx),a.createElementVNode("button",{type:"button",class:a.normalizeClass({dp__btn:!0,dp__inc_dec_button:!r.timePickerInline,dp__inc_dec_button_inline:r.timePickerInline,dp__tp_inline_btn_bottom:r.timePickerInline,dp__inc_dec_button_disabled:k.value(X.type)}),"aria-label":(A=a.unref(s).ariaLabels)==null?void 0:A.decrementValue(X.type),tabindex:"0",onKeydown:[a.withKeys(Z=>R(X.type,!1),["enter"]),a.withKeys(Z=>R(X.type,!1),["space"])],onClick:Z=>R(X.type,!1),ref_for:!0,ref:Z=>z(Z,V,2)},[r.timePickerInline?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[Tx,Ex],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[C.$slots["arrow-down"]?a.renderSlot(C.$slots,"arrow-down",{key:0}):a.createCommentVNode("",!0),C.$slots["arrow-down"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Tm),{key:1}))],64))],42,Cx)],64))],2)}),128)),C.is24?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",xx,[C.$slots["am-pm-button"]?a.renderSlot(C.$slots,"am-pm-button",{key:0,toggle:G,value:c.value}):a.createCommentVNode("",!0),C.$slots["am-pm-button"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:1,ref_key:"amPmButton",ref:p,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(Q=a.unref(s).ariaLabels)==null?void 0:Q.amPmButton,tabindex:"0",onClick:G,onKeydown:[a.withKeys(a.withModifiers(G,["prevent"]),["enter"]),a.withKeys(a.withModifiers(G,["prevent"]),["space"])]},a.toDisplayString(c.value),41,Ix))])),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(N.value,(X,V)=>(a.openBlock(),a.createBlock(a.Transition,{key:V,name:a.unref(l)(d[X.type]),css:a.unref(u)},{default:a.withCtx(()=>[d[X.type]?(a.openBlock(),a.createBlock(Uo,{key:0,items:I(X.type),"disabled-values":a.unref(s).filters.times[X.type].concat(W.value(X.type)),"esc-close":C.escClose,"aria-labels":a.unref(s).ariaLabels,"hide-navigation":C.hideNavigation,"onUpdate:modelValue":E=>H(X.type,E),onSelected:E=>M(X.type),onToggle:E=>M(X.type),onResetFlow:U[0]||(U[0]=E=>C.$emit("reset-flow")),type:X.type},a.createSlots({"button-icon":a.withCtx(()=>[C.$slots["clock-icon"]?a.renderSlot(C.$slots,"clock-icon",{key:0}):a.createCommentVNode("",!0),C.$slots["clock-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Sm),{key:1}))]),_:2},[C.$slots[`${X.type}-overlay-value`]?{name:"item",fn:a.withCtx(({item:E})=>[a.renderSlot(C.$slots,`${X.type}-overlay-value`,{text:E.text,value:E.value})]),key:"0"}:void 0]),1032,["items","disabled-values","esc-close","aria-labels","hide-navigation","onUpdate:modelValue","onSelected","onToggle","type"])):a.createCommentVNode("",!0)]),_:2},1032,["name","css"]))),128))]))}}}),Ox=["aria-label"],Nx=["tabindex"],Dx=["aria-label"],Mx=a.defineComponent({__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},internalModelValue:{type:[Date,Array],default:null},...Yr},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const r=e,{buildMatrix:o,setTimePicker:i}=qr(),s=a.useSlots(),{hideNavigationButtons:l,defaults:u}=bn(r),{transitionName:d,showTransition:c}=zs(u.value.transitions),p=a.ref(null),h=a.ref(null),m=a.ref([]),y=a.ref(null);a.onMounted(()=>{n("mount"),!r.timePicker&&r.arrowNavigation?o([kt(p.value)],"time"):i(!0,r.timePicker)});const w=a.computed(()=>r.range&&r.modelAuto?Nm(r.internalModelValue):!0),k=a.ref(!1),_=M=>({hours:Array.isArray(r.hours)?r.hours[M]:r.hours,minutes:Array.isArray(r.minutes)?r.minutes[M]:r.minutes,seconds:Array.isArray(r.seconds)?r.seconds[M]:r.seconds}),x=a.computed(()=>{const M=[];if(r.range)for(let D=0;D<2;D++)M.push(_(D));else M.push(_(0));return M}),S=(M,D=!1,R="")=>{D||n("reset-flow"),k.value=M,n(M?"overlay-opened":"overlay-closed"),r.arrowNavigation&&i(M),a.nextTick(()=>{R!==""&&m.value[0]&&m.value[0].openChildCmp(R)})},b=a.computed(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:r.autoApply&&!r.keepActionRow})),N=la(s,"timePicker"),T=(M,D,R)=>r.range?D===0?[M,x.value[1][R]]:[x.value[0][R],M]:M,I=M=>{n("update:hours",M)},$=M=>{n("update:minutes",M)},W=M=>{n("update:seconds",M)},j=()=>{if(y.value){const M=OE(y.value);M&&M.focus({preventScroll:!0})}};return t({toggleTimePicker:S}),(M,D)=>{var R;return a.openBlock(),a.createElementBlock("div",null,[!M.timePicker&&!M.timePickerInline?a.withDirectives((a.openBlock(),a.createElementBlock("button",{key:0,type:"button",class:a.normalizeClass(b.value),"aria-label":(R=a.unref(u).ariaLabels)==null?void 0:R.openTimePicker,tabindex:"0",ref_key:"openTimePickerBtn",ref:p,onKeydown:[D[0]||(D[0]=a.withKeys(K=>S(!0),["enter"])),D[1]||(D[1]=a.withKeys(K=>S(!0),["space"]))],onClick:D[2]||(D[2]=K=>S(!0))},[M.$slots["clock-icon"]?a.renderSlot(M.$slots,"clock-icon",{key:0}):a.createCommentVNode("",!0),M.$slots["clock-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Sm),{key:1}))],42,Ox)),[[a.vShow,!a.unref(l)("time")]]):a.createCommentVNode("",!0),a.createVNode(a.Transition,{name:a.unref(d)(k.value),css:a.unref(c)&&!M.timePickerInline},{default:a.withCtx(()=>{var K;return[k.value||M.timePicker||M.timePickerInline?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass({dp__overlay:!M.timePickerInline}),ref_key:"overlayRef",ref:y,tabindex:M.timePickerInline?void 0:0},[a.createElementVNode("div",{class:a.normalizeClass(M.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[M.$slots["time-picker-overlay"]?a.renderSlot(M.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:I,setMinutes:$,setSeconds:W}):a.createCommentVNode("",!0),M.$slots["time-picker-overlay"]?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(M.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(x.value,(G,Y)=>a.withDirectives((a.openBlock(),a.createBlock(Px,a.mergeProps({key:Y},{...M.$props,order:Y,hours:G.hours,minutes:G.minutes,seconds:G.seconds,closeTimePickerBtn:h.value,disabled:Y===0?M.fixedStart:M.fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:m,"onUpdate:hours":z=>I(T(z,Y,"hours")),"onUpdate:minutes":z=>$(T(z,Y,"minutes")),"onUpdate:seconds":z=>W(T(z,Y,"seconds")),onMounted:j,onOverlayClosed:j,onAmPmChange:D[3]||(D[3]=z=>M.$emit("am-pm-change",z))}),a.createSlots({_:2},[a.renderList(a.unref(N),(z,H)=>({name:z,fn:a.withCtx(C=>[a.renderSlot(M.$slots,z,a.normalizeProps(a.guardReactiveProps(C)))])}))]),1040,["onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[a.vShow,Y===0?!0:w.value]])),128))],2)),!M.timePicker&&!M.timePickerInline?a.withDirectives((a.openBlock(),a.createElementBlock("button",{key:2,type:"button",ref_key:"closeTimePickerBtn",ref:h,class:a.normalizeClass(b.value),"aria-label":(K=a.unref(u).ariaLabels)==null?void 0:K.closeTimePicker,tabindex:"0",onKeydown:[D[4]||(D[4]=a.withKeys(G=>S(!1),["enter"])),D[5]||(D[5]=a.withKeys(G=>S(!1),["space"]))],onClick:D[6]||(D[6]=G=>S(!1))},[M.$slots["calendar-icon"]?a.renderSlot(M.$slots,"calendar-icon",{key:0}):a.createCommentVNode("",!0),M.$slots["calendar-icon"]?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.unref(Us),{key:1}))],42,Dx)),[[a.vShow,!a.unref(l)("time")]]):a.createCommentVNode("",!0)],2)],10,Nx)):a.createCommentVNode("",!0)]}),_:3},8,["name","css"])])}}}),Bx=(e,t)=>{const{isDisabled:n,matchDate:r,getWeekFromDate:o,defaults:i}=bn(t),s=a.ref(null),l=a.ref(se()),u=C=>{!C.current&&t.hideOffsetDates||(s.value=C.value)},d=()=>{s.value=null},c=C=>Array.isArray(e.value)&&t.range&&e.value[0]&&s.value?C?rn(s.value,e.value[0]):Yt(s.value,e.value[0]):!0,p=(C,U)=>{const Q=()=>e.value?U?e.value[0]||null:e.value[1]:null,X=e.value&&Array.isArray(e.value)?Q():null;return st(se(C.value),X)},h=C=>{const U=Array.isArray(e.value)?e.value[0]:null;return C?!Yt(s.value||null,U):!0},m=(C,U=!0)=>(t.range||t.weekPicker)&&Array.isArray(e.value)&&e.value.length===2?t.hideOffsetDates&&!C.current?!1:st(se(C.value),e.value[U?0:1]):t.range?p(C,U)&&h(U)||st(C.value,Array.isArray(e.value)?e.value[0]:null)&&c(U):!1,y=(C,U,Q)=>Array.isArray(e.value)&&e.value[0]&&e.value.length===1?C?!1:Q?rn(e.value[0],U.value):Yt(e.value[0],U.value):!1,w=C=>!e.value||t.hideOffsetDates&&!C.current?!1:t.range?t.modelAuto&&Array.isArray(e.value)?st(C.value,e.value[0]?e.value[0]:l.value):!1:t.multiDates&&Array.isArray(e.value)?e.value.some(U=>st(U,C.value)):st(C.value,e.value?e.value:l.value),k=C=>{if(t.autoRange||t.weekPicker){if(s.value){if(t.hideOffsetDates&&!C.current)return!1;const U=_r(s.value,+t.autoRange),Q=o(se(s.value));return t.weekPicker?st(Q[1],se(C.value)):st(U,se(C.value))}return!1}return!1},_=C=>{if(t.autoRange||t.weekPicker){if(s.value){const U=_r(s.value,+t.autoRange);if(t.hideOffsetDates&&!C.current)return!1;const Q=o(se(s.value));return t.weekPicker?rn(C.value,Q[0])&&Yt(C.value,Q[1]):rn(C.value,s.value)&&Yt(C.value,U)}return!1}return!1},x=C=>{if(t.autoRange||t.weekPicker){if(s.value){if(t.hideOffsetDates&&!C.current)return!1;const U=o(se(s.value));return t.weekPicker?st(U[0],C.value):st(s.value,C.value)}return!1}return!1},S=C=>Em(e.value,s.value,C.value),b=()=>t.modelAuto&&Array.isArray(t.internalModelValue)?!!t.internalModelValue[0]:!1,N=()=>t.modelAuto?Nm(t.internalModelValue):!0,T=C=>{if(Array.isArray(e.value)&&e.value.length||t.weekPicker)return!1;const U=t.range?!m(C)&&!m(C,!1):!0;return!n(C.value)&&!w(C)&&!(!C.current&&t.hideOffsetDates)&&U},I=C=>t.range?t.modelAuto?b()&&w(C):!1:w(C),$=C=>{var U;return t.highlight?r(C.value,(U=t.arrMapValues)!=null&&U.highlightedDates?t.arrMapValues.highlightedDates:t.highlight):!1},W=C=>n(C.value)&&t.highlightDisabledDays===!1,j=C=>t.highlightWeekDays&&t.highlightWeekDays.includes(C.value.getDay()),M=C=>(t.range||t.weekPicker)&&(!(i.value.multiCalendars>0)||C.current)&&N()&&!(!C.current&&t.hideOffsetDates)&&!w(C)?S(C):!1,D=C=>{const{isRangeStart:U,isRangeEnd:Q}=G(C),X=t.range?U||Q:!1;return{dp__cell_offset:!C.current,dp__pointer:!t.disabled&&!(!C.current&&t.hideOffsetDates)&&!n(C.value),dp__cell_disabled:n(C.value),dp__cell_highlight:!W(C)&&($(C)||j(C))&&!I(C)&&!X,dp__cell_highlight_active:!W(C)&&($(C)||j(C))&&I(C),dp__today:!t.noToday&&st(C.value,l.value)&&C.current}},R=C=>({dp__active_date:I(C),dp__date_hover:T(C)}),K=C=>({...Y(C),...z(C),dp__range_between_week:M(C)&&t.weekPicker}),G=C=>{const U=i.value.multiCalendars>0?C.current&&m(C)&&N():m(C)&&N(),Q=i.value.multiCalendars>0?C.current&&m(C,!1)&&N():m(C,!1)&&N();return{isRangeStart:U,isRangeEnd:Q}},Y=C=>{const{isRangeStart:U,isRangeEnd:Q}=G(C);return{dp__range_start:U,dp__range_end:Q,dp__range_between:M(C)&&!t.weekPicker,dp__date_hover_start:y(T(C),C,!0),dp__date_hover_end:y(T(C),C,!1)}},z=C=>({...Y(C),dp__cell_auto_range:_(C),dp__cell_auto_range_start:x(C),dp__cell_auto_range_end:k(C)}),H=C=>t.range?t.autoRange?z(C):t.modelAuto?{...R(C),...Y(C)}:Y(C):t.weekPicker?K(C):R(C);return{setHoverDate:u,clearHoverDate:d,getDayClassData:C=>t.hideOffsetDates&&!C.current?{}:{...D(C),...H(C),[t.dayClass?t.dayClass(C.value):""]:!0,[t.calendarCellClassName]:!!t.calendarCellClassName}}},Ax=["id","onKeydown"],Rx={key:0,class:"dp__sidebar_left"},$x={key:1,class:"dp__preset_ranges"},Lx=["onClick"],Vx={key:2,class:"dp__sidebar_right"},Fx={key:3,class:"dp__action_extra"},Hx=a.defineComponent({__name:"DatepickerMenu",props:{openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},arrMapValues:{type:Object,default:()=>({})},...Yr},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end"],setup(e,{expose:t,emit:n}){const r=e,o=a.computed(()=>{const{openOnTop:J,internalModelValue:ce,arrMapValues:We,...Ae}=r;return Ae}),{setMenuFocused:i,setShiftKey:s,control:l}=xm(),{getCalendarDays:u,defaults:d}=bn(r),c=a.useSlots(),p=a.ref(null),h=a.reactive({timePicker:!!(!r.enableTimePicker||r.timePicker||r.monthPicker),monthYearInput:!!r.timePicker,calendar:!1}),m=a.ref([]),y=a.ref([]),w=a.ref(null),k=a.ref(null),_=a.ref(0),x=a.ref(!1),S=a.ref(0);a.onMounted(()=>{var J;x.value=!0,!((J=r.presetRanges)!=null&&J.length)&&!c["left-sidebar"]&&!c["right-sidebar"]&&(pe(),window.addEventListener("resize",pe));const ce=kt(k);if(ce&&!r.textInput&&!r.inline&&(i(!0),W()),ce){const We=Ae=>{r.allowPreventDefault&&Ae.preventDefault(),Ae.stopImmediatePropagation(),Ae.stopPropagation()};ce.addEventListener("pointerdown",We),ce.addEventListener("mousedown",We)}}),a.onUnmounted(()=>{window.removeEventListener("resize",pe)});const{arrowRight:b,arrowLeft:N,arrowDown:T,arrowUp:I}=qr(),$=J=>{J||J===0?y.value[J].triggerTransition(K.value(J),G.value(J)):y.value.forEach((ce,We)=>ce.triggerTransition(K.value(We),G.value(We)))},W=()=>{const J=kt(k);J&&J.focus({preventScroll:!0})},j=()=>{var J;(J=r.flow)!=null&&J.length&&S.value!==-1&&(S.value+=1,n("flow-step",S.value),te())},M=()=>{S.value=-1},{calendars:D,modelValue:R,month:K,year:G,time:Y,updateTime:z,updateMonthYear:H,selectDate:C,getWeekNum:U,monthYearSelect:Q,handleScroll:X,handleArrow:V,handleSwipe:E,getMarker:O,selectCurrentDate:A,presetDateRange:Z}=LE(r,n,j,$,S),{setHoverDate:re,clearHoverDate:ie,getDayClassData:Te}=Bx(R,r),Pe={modelValue:R,month:K,year:G,time:Y,updateTime:z,updateMonthYear:H,selectDate:C,presetDateRange:Z,handleMonthYearChange:J=>{m.value[0]&&m.value[0].handleMonthYearChange(J)}};a.watch(D,()=>{r.openOnTop&&setTimeout(()=>{n("recalculate-position")},0)},{deep:!0});const fe=la(c,"calendar"),Ie=la(c,"action"),Ve=la(c,"timePicker"),Be=la(c,"monthYear"),at=a.computed(()=>r.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),Je=a.computed(()=>TE(r.yearRange,r.reverseYears)),Ye=a.computed(()=>EE(r.formatLocale,r.locale,r.monthNameFormat)),pe=()=>{const J=kt(p);J&&(_.value=J.getBoundingClientRect().width)},Ne=a.computed(()=>J=>u(K.value(J),G.value(J))),ae=a.computed(()=>d.value.multiCalendars>0?[...Array(d.value.multiCalendars).keys()]:[0]),he=a.computed(()=>J=>J===1),le=a.computed(()=>r.monthPicker||r.timePicker||r.yearPicker),je=a.computed(()=>({dp__menu_inner:!0,dp__flex_display:d.value.multiCalendars>0})),xe=a.computed(()=>({dp__instance_calendar:d.value.multiCalendars>0})),Et=a.computed(()=>({dp__menu_disabled:r.disabled,dp__menu_readonly:r.readonly})),_t=a.computed(()=>J=>jt(Ne,J)),Mt=a.computed(()=>({dp__menu:!0,dp__menu_index:!r.inline,dp__relative:r.inline,[r.menuClassName]:!!r.menuClassName})),jt=(J,ce)=>J.value(ce).map(We=>({...We,days:We.days.map(Ae=>(Ae.marker=O(Ae),Ae.classData=Te(Ae),Ae))})),pn=J=>{J.stopPropagation(),J.stopImmediatePropagation()},On=()=>{r.escClose&&n("close-picker")},Ot=(J,ce=!1)=>{C(J,ce),r.spaceConfirm&&n("select-date")},F=J=>{var ce;(ce=r.flow)!=null&&ce.length&&(h[J]=!0,Object.keys(h).filter(We=>!h[We]).length||te())},B=(J,ce,We,Ae,...Qe)=>{if(r.flow[S.value]===J){const me=Ae?ce.value[0]:ce.value;me&&me[We](...Qe)}},te=()=>{B("month",m,"toggleMonthPicker",!0,!0),B("year",m,"toggleYearPicker",!0,!0),B("calendar",w,"toggleTimePicker",!1,!1,!0),B("time",w,"toggleTimePicker",!1,!0,!0);const J=r.flow[S.value];(J==="hours"||J==="minutes"||J==="seconds")&&B(J,w,"toggleTimePicker",!1,!0,!0,J)},oe=J=>{if(r.arrowNavigation){if(J==="up")return I();if(J==="down")return T();if(J==="left")return N();if(J==="right")return b()}else J==="left"||J==="up"?V("left",0,J==="up"):V("right",0,J==="down")},ye=J=>{s(J.shiftKey),!r.disableMonthYearSelect&&J.code==="Tab"&&J.target.classList.contains("dp__menu")&&l.value.shiftKeyInMenu&&(J.preventDefault(),J.stopImmediatePropagation(),n("close-picker"))},we=()=>{W(),n("time-picker-close")},Ue=J=>{var ce,We,Ae,Qe,me;(ce=w.value)==null||ce.toggleTimePicker(!1,!1),(Ae=(We=m.value)==null?void 0:We[J])==null||Ae.toggleMonthPicker(!1,!1),(me=(Qe=m.value)==null?void 0:Qe[J])==null||me.toggleYearPicker(!1,!1)};return t({updateMonthYear:H,switchView:(J,ce=0)=>{var We,Ae,Qe,me,dt;return J==="month"?(Ae=(We=m.value)==null?void 0:We[ce])==null?void 0:Ae.toggleMonthPicker(!1,!0):J==="year"?(me=(Qe=m.value)==null?void 0:Qe[ce])==null?void 0:me.toggleYearPicker(!1,!0):J==="time"?(dt=w.value)==null?void 0:dt.toggleTimePicker(!0,!1):Ue(ce)}}),(J,ce)=>{var We;return a.openBlock(),a.createBlock(a.Transition,{appear:"",name:(We=a.unref(d).transitions)==null?void 0:We.menuAppear,css:!!J.transitions},{default:a.withCtx(()=>{var Ae,Qe;return[a.createElementVNode("div",{id:J.uid?`dp-menu-${J.uid}`:void 0,tabindex:"0",ref_key:"dpMenuRef",ref:k,role:"dialog",class:a.normalizeClass(Mt.value),onMouseleave:ce[14]||(ce[14]=(...me)=>a.unref(ie)&&a.unref(ie)(...me)),onClick:pn,onKeydown:[a.withKeys(On,["esc"]),ce[15]||(ce[15]=a.withKeys(a.withModifiers(me=>oe("left"),["prevent"]),["left"])),ce[16]||(ce[16]=a.withKeys(a.withModifiers(me=>oe("up"),["prevent"]),["up"])),ce[17]||(ce[17]=a.withKeys(a.withModifiers(me=>oe("down"),["prevent"]),["down"])),ce[18]||(ce[18]=a.withKeys(a.withModifiers(me=>oe("right"),["prevent"]),["right"])),ye]},[(J.disabled||J.readonly)&&J.inline?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(Et.value)},null,2)):a.createCommentVNode("",!0),!J.inline&&!J.teleportCenter?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(at.value)},null,2)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass({dp__menu_content_wrapper:((Ae=J.presetRanges)==null?void 0:Ae.length)||!!J.$slots["left-sidebar"]||!!J.$slots["right-sidebar"]})},[J.$slots["left-sidebar"]?(a.openBlock(),a.createElementBlock("div",Rx,[a.renderSlot(J.$slots,"left-sidebar",a.normalizeProps(a.guardReactiveProps(Pe)))])):a.createCommentVNode("",!0),(Qe=J.presetRanges)!=null&&Qe.length?(a.openBlock(),a.createElementBlock("div",$x,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(J.presetRanges,(me,dt)=>(a.openBlock(),a.createElementBlock("div",{key:dt,style:a.normalizeStyle(me.style||{}),class:"dp__preset_range",onClick:Me=>a.unref(Z)(me.range,!!me.slot)},[me.slot?a.renderSlot(J.$slots,me.slot,{key:0,presetDateRange:a.unref(Z),label:me.label,range:me.range}):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(me.label),1)],64))],12,Lx))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"dp__instance_calendar",ref_key:"calendarWrapperRef",ref:p,role:"document"},[a.createElementVNode("div",{class:a.normalizeClass(je.value)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ae.value,(me,dt)=>(a.openBlock(),a.createElementBlock("div",{key:me,class:a.normalizeClass(xe.value)},[!J.disableMonthYearSelect&&!J.timePicker?(a.openBlock(),a.createBlock(yx,a.mergeProps({key:0,ref_for:!0,ref:Me=>{Me&&(m.value[dt]=Me)},months:Ye.value,years:Je.value,month:a.unref(K)(me),year:a.unref(G)(me),instance:me,"internal-model-value":e.internalModelValue},o.value,{onMount:ce[0]||(ce[0]=Me=>F("monthYearInput")),onResetFlow:M,onUpdateMonthYear:Me=>a.unref(H)(me,Me),onMonthYearSelect:a.unref(Q),onOverlayClosed:W}),a.createSlots({_:2},[a.renderList(a.unref(Be),(Me,on)=>({name:Me,fn:a.withCtx(Gt=>[a.renderSlot(J.$slots,Me,a.normalizeProps(a.guardReactiveProps(Gt)))])}))]),1040,["months","years","month","year","instance","internal-model-value","onUpdateMonthYear","onMonthYearSelect"])):a.createCommentVNode("",!0),a.createVNode(ix,a.mergeProps({ref_for:!0,ref:Me=>{Me&&(y.value[dt]=Me)},"specific-mode":le.value,"get-week-num":a.unref(U),instance:me,"mapped-dates":_t.value(me),month:a.unref(K)(me),year:a.unref(G)(me)},o.value,{onSelectDate:Me=>a.unref(C)(Me,!he.value(me)),onHandleSpace:Me=>Ot(Me,!he.value(me)),onSetHoverDate:ce[1]||(ce[1]=Me=>a.unref(re)(Me)),onHandleScroll:Me=>a.unref(X)(Me,me),onHandleSwipe:Me=>a.unref(E)(Me,me),onMount:ce[2]||(ce[2]=Me=>F("calendar")),onResetFlow:M,onTooltipOpen:ce[3]||(ce[3]=Me=>J.$emit("tooltip-open",Me)),onTooltipClose:ce[4]||(ce[4]=Me=>J.$emit("tooltip-close",Me))}),a.createSlots({_:2},[a.renderList(a.unref(fe),(Me,on)=>({name:Me,fn:a.withCtx(Gt=>[a.renderSlot(J.$slots,Me,a.normalizeProps(a.guardReactiveProps({...Gt})))])}))]),1040,["specific-mode","get-week-num","instance","mapped-dates","month","year","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])],2))),128))],2),a.createElementVNode("div",null,[J.$slots["time-picker"]?a.renderSlot(J.$slots,"time-picker",a.normalizeProps(a.mergeProps({key:0},{time:a.unref(Y),updateTime:a.unref(z)}))):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[J.enableTimePicker&&!J.monthPicker&&!J.weekPicker?(a.openBlock(),a.createBlock(Mx,a.mergeProps({key:0,ref_key:"timePickerRef",ref:w,hours:a.unref(Y).hours,minutes:a.unref(Y).minutes,seconds:a.unref(Y).seconds,"internal-model-value":e.internalModelValue},o.value,{onMount:ce[5]||(ce[5]=me=>F("timePicker")),"onUpdate:hours":ce[6]||(ce[6]=me=>a.unref(z)(me)),"onUpdate:minutes":ce[7]||(ce[7]=me=>a.unref(z)(me,!1)),"onUpdate:seconds":ce[8]||(ce[8]=me=>a.unref(z)(me,!1,!0)),onResetFlow:M,onOverlayClosed:we,onOverlayOpened:ce[9]||(ce[9]=me=>J.$emit("time-picker-open",me)),onAmPmChange:ce[10]||(ce[10]=me=>J.$emit("am-pm-change",me))}),a.createSlots({_:2},[a.renderList(a.unref(Ve),(me,dt)=>({name:me,fn:a.withCtx(Me=>[a.renderSlot(J.$slots,me,a.normalizeProps(a.guardReactiveProps(Me)))])}))]),1040,["hours","minutes","seconds","internal-model-value"])):a.createCommentVNode("",!0)],64))])],512),J.$slots["right-sidebar"]?(a.openBlock(),a.createElementBlock("div",Vx,[a.renderSlot(J.$slots,"right-sidebar",a.normalizeProps(a.guardReactiveProps(Pe)))])):a.createCommentVNode("",!0),J.$slots["action-extra"]?(a.openBlock(),a.createElementBlock("div",Fx,[J.$slots["action-extra"]?a.renderSlot(J.$slots,"action-extra",{key:0,selectCurrentDate:a.unref(A)}):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)],2),!J.autoApply||J.keepActionRow?(a.openBlock(),a.createBlock(JE,a.mergeProps({key:2,"menu-mount":x.value,"calendar-width":_.value,"internal-model-value":e.internalModelValue},o.value,{onClosePicker:ce[11]||(ce[11]=me=>J.$emit("close-picker")),onSelectDate:ce[12]||(ce[12]=me=>J.$emit("select-date")),onInvalidSelect:ce[13]||(ce[13]=me=>J.$emit("invalid-select")),onSelectNow:a.unref(A)}),a.createSlots({_:2},[a.renderList(a.unref(Ie),(me,dt)=>({name:me,fn:a.withCtx(Me=>[a.renderSlot(J.$slots,me,a.normalizeProps(a.guardReactiveProps({...Me})))])}))]),1040,["menu-mount","calendar-width","internal-model-value","onSelectNow"])):a.createCommentVNode("",!0)],42,Ax)]}),_:3},8,["name","css"])}}}),Ux=typeof window<"u"?window:void 0,Ll=()=>{},zx=e=>a.getCurrentScope()?(a.onScopeDispose(e),!0):!1,jx=(e,t,n,r)=>{if(!e)return Ll;let o=Ll;const i=a.watch(()=>a.unref(e),l=>{o(),l&&(l.addEventListener(t,n,r),o=()=>{l.removeEventListener(t,n,r),o=Ll})},{immediate:!0,flush:"post"}),s=()=>{i(),o()};return zx(s),s},Wx=(e,t,n,r={})=>{const{window:o=Ux,event:i="pointerdown"}=r;return o?jx(o,i,s=>{const l=kt(e),u=kt(t);!l||!u||l===s.target||s.composedPath().includes(l)||s.composedPath().includes(u)||n(s)},{passive:!0}):void 0},qx=a.defineComponent({__name:"VueDatePicker",props:{...Yr},emits:["update:model-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end"],setup(e,{expose:t,emit:n}){const r=e,o=a.useSlots(),i=a.ref(!1),s=a.toRef(r,"modelValue"),l=a.toRef(r,"timezone"),u=a.ref(null),d=a.ref(null),c=a.ref(!1),p=a.ref(null),h=a.reactive({disabledDates:null,allowedDates:null,highlightedDates:null}),{setMenuFocused:m,setShiftKey:y}=xm(),{clearArrowNav:w}=qr(),{validateDate:k,isValidTime:_,defaults:x,mapDatesArrToMap:S}=bn(r);a.onMounted(()=>{K(r.modelValue),r.inline||(M(p.value).addEventListener("scroll",Q),window.addEventListener("resize",X)),r.inline&&(i.value=!0),S(h)}),a.onUnmounted(()=>{if(!r.inline){const ae=M(p.value);ae&&ae.removeEventListener("scroll",Q),window.removeEventListener("resize",X)}});const b=la(o,"all",r.presetRanges),N=la(o,"input");a.watch([s,l],()=>{K(s.value)},{deep:!0});const{openOnTop:T,menuStyle:I,resetPosition:$,setMenuPosition:W,setInitialPosition:j,getScrollableParent:M}=HE(u,d,n,r),{inputValue:D,internalModelValue:R,parseExternalModelValue:K,emitModelValue:G,formatInputValue:Y,checkBeforeEmit:z}=VE(n,r,c),H=a.computed(()=>({dp__main:!0,dp__theme_dark:r.dark,dp__theme_light:!r.dark,dp__flex_display:r.inline,dp__flex_display_with_input:r.inlineWithInput})),C=a.computed(()=>r.dark?"dp__theme_dark":"dp__theme_light"),U=a.computed(()=>r.teleport?{to:typeof r.teleport=="boolean"?"body":r.teleport,disabled:r.inline}:{class:"dp__outer_menu_wrap"}),Q=()=>{i.value&&(r.closeOnScroll?Pe():W())},X=()=>{i.value&&W()},V=async()=>{var ae,he,le;!r.disabled&&!r.readonly&&($(),await a.nextTick(),i.value=!0,await a.nextTick(),j(),await a.nextTick(),W(),delete I.value.opacity,!((ae=x.value.transitions)!=null&&ae.menuAppear)&&r.transitions&&((le=(he=u.value)==null?void 0:he.$el)==null||le.classList.add("dp__menu_transitioned")),i.value&&n("open"),i.value||Te(),K(r.modelValue))},E=()=>{D.value="",Te(),n("update:model-value",null),n("cleared"),r.closeOnClearValue&&Pe()},O=()=>{const ae=R.value;return!ae||!Array.isArray(ae)&&k(ae)?!0:Array.isArray(ae)?ae.length===2&&k(ae[0])&&k(ae[1])?!0:k(ae[0]):!1},A=()=>{z()&&O()?(G(),Pe()):n("invalid-select",R.value)},Z=ae=>{re(),G(),r.closeOnAutoApply&&!ae&&Pe()},re=()=>{d.value&&r.textInput&&d.value.setParsedDate(R.value)},ie=(ae=!1)=>{r.autoApply&&_(R.value)&&O()&&(r.range&&Array.isArray(R.value)?(r.partialRange||R.value.length===2)&&Z(ae):Z(ae))},Te=()=>{r.textInput||(R.value=null)},Pe=()=>{r.inline||(i.value&&(i.value=!1,m(!1),y(!1),w(),n("closed"),j(),D.value&&K(s.value)),Te())},fe=(ae,he)=>{if(!ae){R.value=null;return}R.value=ae,he&&(A(),n("text-submit"))},Ie=()=>{r.autoApply&&_(R.value)&&G(),re()},Ve=()=>i.value?Pe():V(),Be=ae=>{R.value=ae},at=()=>{r.textInput&&(c.value=!0,Y()),n("focus")},Je=()=>{r.textInput&&(c.value=!1,K(r.modelValue)),n("blur")},Ye=ae=>{u.value&&u.value.updateMonthYear(0,{month:Cf(ae.month),year:Cf(ae.year)})},pe=ae=>{K(ae||r.modelValue)},Ne=(ae,he)=>{var le;(le=u.value)==null||le.switchView(ae,he)};return Wx(u,d,r.onClickOutside?()=>r.onClickOutside(O):Pe),t({closeMenu:Pe,selectDate:A,clearValue:E,openMenu:V,onScroll:Q,formatInputValue:Y,updateInternalModelValue:Be,setMonthYear:Ye,parseModel:pe,switchView:Ne}),(ae,he)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(H.value),ref_key:"pickerWrapperRef",ref:p},[a.createVNode(YE,a.mergeProps({ref_key:"inputRef",ref:d,"is-menu-open":i.value,"input-value":a.unref(D),"onUpdate:inputValue":he[0]||(he[0]=le=>a.isRef(D)?D.value=le:null)},ae.$props,{onClear:E,onOpen:V,onSetInputDate:fe,onSetEmptyDate:a.unref(G),onSelectDate:A,onToggle:Ve,onClose:Pe,onFocus:at,onBlur:Je,onRealBlur:he[1]||(he[1]=le=>c.value=!1)}),a.createSlots({_:2},[a.renderList(a.unref(N),(le,je)=>({name:le,fn:a.withCtx(xe=>[a.renderSlot(ae.$slots,le,a.normalizeProps(a.guardReactiveProps(xe)))])}))]),1040,["is-menu-open","input-value","onSetEmptyDate"]),i.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(ae.teleport?a.Teleport:"div"),a.normalizeProps(a.mergeProps({key:0},U.value)),{default:a.withCtx(()=>[i.value?(a.openBlock(),a.createBlock(Hx,a.mergeProps({key:0,ref_key:"dpMenuRef",ref:u,class:C.value,style:ae.inline?void 0:a.unref(I),"open-on-top":a.unref(T),"arr-map-values":h},ae.$props,{"internal-model-value":a.unref(R),"onUpdate:internalModelValue":he[2]||(he[2]=le=>a.isRef(R)?R.value=le:null),onClosePicker:Pe,onSelectDate:A,onAutoApply:ie,onTimeUpdate:Ie,onFlowStep:he[3]||(he[3]=le=>ae.$emit("flow-step",le)),onUpdateMonthYear:he[4]||(he[4]=le=>ae.$emit("update-month-year",le)),onInvalidSelect:he[5]||(he[5]=le=>ae.$emit("invalid-select",a.unref(R))),onInvalidFixedRange:he[6]||(he[6]=le=>ae.$emit("invalid-fixed-range",le)),onRecalculatePosition:a.unref(W),onTooltipOpen:he[7]||(he[7]=le=>ae.$emit("tooltip-open",le)),onTooltipClose:he[8]||(he[8]=le=>ae.$emit("tooltip-close",le)),onTimePickerOpen:he[9]||(he[9]=le=>ae.$emit("time-picker-open",le)),onTimePickerClose:he[10]||(he[10]=le=>ae.$emit("time-picker-close",le)),onAmPmChange:he[11]||(he[11]=le=>ae.$emit("am-pm-change",le)),onRangeStart:he[12]||(he[12]=le=>ae.$emit("range-start",le)),onRangeEnd:he[13]||(he[13]=le=>ae.$emit("range-end",le))}),a.createSlots({_:2},[a.renderList(a.unref(b),(le,je)=>({name:le,fn:a.withCtx(xe=>[a.renderSlot(ae.$slots,le,a.normalizeProps(a.guardReactiveProps({...xe})))])}))]),1040,["class","style","open-on-top","arr-map-values","internal-model-value","onRecalculatePosition"])):a.createCommentVNode("",!0)]),_:3},16)):a.createCommentVNode("",!0)],2))}}),_c=(()=>{const e=qx;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),Yx=Object.freeze(Object.defineProperty({__proto__:null,default:_c},Symbol.toStringTag,{value:"Module"}));Object.entries(Yx).forEach(([e,t])=>{e!=="default"&&(_c[e]=t)});const Gx={class:"relative w-full"},Kx=["value","placeholder"],Xx={key:0,class:"pointer-events-none absolute left-5 top-2.5 space-x-2 peer-focus:hidden","data-test-location-labels":""},Jx=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("");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:s}=await google.maps.importLibrary("places"),l=new s(o.value,{strictBounds:!1,types:["address"],componentRestrictions:{country:"nl"},...n.placeOptions});l.addListener("place_changed",()=>{var b,N,T,I,$,W,j,M,D,R,K;i.value="";const u=l.getPlace(),d=(b=u.geometry)==null?void 0:b.location,c=u.address_components??[],p=d==null?void 0:d.lat(),h=d==null?void 0:d.lng(),m=(N=c.find(G=>G.types.includes("postal_code")))==null?void 0:N.long_name,y=(T=c.find(G=>G.types.includes("route")))==null?void 0:T.long_name,w=parseInt((($=(I=c.find(G=>G.types.includes("street_number")))==null?void 0:I.long_name.split(/(\d*)(.*)/s))==null?void 0:$[1])??"",10),k=(j=(W=c.find(G=>G.types.includes("street_number")))==null?void 0:W.long_name.split(/(\d*)(.*)/s))==null?void 0:j[2],_=(M=c.find(G=>G.types.includes("locality")))==null?void 0:M.long_name,x=(D=c.find(G=>G.types.includes("administrative_area_level_1")))==null?void 0:D.long_name,S=(R=c.find(G=>G.types.includes("administrative_area_level_1")))==null?void 0:R.short_name;(K=o.value)==null||K.blur(),r("update:modelValue",{postcode:m,street:y,number:w>0?w:void 0,numberSuffix:k,city:_,province:x,provinceShort:S,lat:p,lng:h})})}),(s,l)=>{var u,d,c;return a.openBlock(),a.createElementBlock("div",Gx,[a.createElementVNode("input",a.mergeProps({ref_key:"input",ref:o,value:i.value,placeholder:s.placeholder},{...s.$attrs},{class:"peer text-zinc-900",onKeydown:l[0]||(l[0]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["enter"]))}),null,16,Kx),(u=s.modelValue)!=null&&u.postcode||(d=s.modelValue)!=null&&d.street||(c=s.modelValue)!=null&&c.number?(a.openBlock(),a.createElementBlock("div",Xx,[a.createVNode(a.unref(is),{class:"empty:hidden","data-test-street-label":""},{default:a.withCtx(()=>{var p,h,m;return[a.createTextVNode(a.toDisplayString((p=s.modelValue)==null?void 0:p.street)+" "+a.toDisplayString((h=s.modelValue)==null?void 0:h.number)+a.toDisplayString((m=s.modelValue)==null?void 0:m.numberSuffix),1)]}),_:1}),a.createVNode(a.unref(is),{class:"empty:hidden","data-test-postcode-label":""},{default:a.withCtx(()=>{var p;return[a.createTextVNode(a.toDisplayString((p=s.modelValue)==null?void 0:p.postcode),1)]}),_:1})])):a.createCommentVNode("",!0)])}}}),Zx=["multiple"],Qx=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 u=s.target.files;u&&(o.value=Array.from(u))}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,Zx),a.renderSlot(s.$slots,"default",{},()=>[a.createVNode(a.unref(ma),{as:"span","color-type":"white",class:"h-10 w-10 !p-2.5"},{default:a.withCtx(()=>[a.createVNode(a.unref(s1),{class:"h-5 w-5"})]),_:1})])])]))}}),e2={disabled:!1,readonly:!1,loading:!1,required:!1,multiple:!1,hasError:!1,label:void 0,errorMessage:""};function t2(e){return ri(e)?_c:fs(e)?Jx:e==="file"?Qx:e==="textarea"?"textarea":"input"}function gu(e){return e==="license"}function n2(e,t,n){return Hs(e)&&(!!t.default||!!n)}function hs(e,t,n,r){return Hs(t)||gu(t)||e==="leading"&&fs(t)?!1:e==="trailing"?!!r.trailingIcon||ri(t)||fs(t)||n&&!r.leadingIcon:!!r[`${e}Icon`]}const r2=`block h-12 w-full appearance-none rounded-lg
|
|
72
59
|
placeholder:text-zinc-300 focus:outline-none text-base
|
|
73
60
|
disabled:cursor-not-allowed disabled:border-zinc-100 disabled:bg-zinc-100
|
|
74
|
-
read-only:cursor-default read-only:border-zinc-300 read-only:bg-zinc-100`;function tE(e,t,n,r,o,i,s){if(Hi(e))return US(e,r);const l=((s==null?void 0:s.class)??"").includes("text-center"),u=_i("leading",e,n,i),c=_i("trailing",e,n,i);return{"border-zinc-300":!r,"border-zinc-100":t,"px-10":l&&(u||c),"pl-10 pr-5":u&&!l,"pr-10 pl-5":c&&!l,"px-5":!u&&!c,"!pl-0":!u&&go(e),[eE]:!0,"py-3":!go(e),"h-12":e!=="textarea","h-24":e==="textarea","border-error text-error placeholder-error focus:ring-error focus:border-error":r,"text-center bg-transparent text-lg uppercase":wl(e),"border bg-white focus:ring-1 focus:ring-zinc-300 hover:bg-zinc-100":!wl(e),"border ring-1 ring-zinc-300":o}}const nE=["type"],rE=["value"],aE=a.defineComponent({__name:"Input",props:{modelValue:{},type:{}},emits:["update:modelValue","open"],setup(e,{emit:t}){const n=e,r=a.computed({get:()=>n.modelValue,set:s=>t("update:modelValue",s)}),o=a.computed(()=>QT(n.type));function i(s){r.value=s.target.value}return(s,l)=>o.value==="input"?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,"onUpdate:modelValue":l[0]||(l[0]=u=>r.value=u),type:s.type,"data-test-input":""},null,8,nE)),[[a.vModelDynamic,r.value]]):o.value==="textarea"?(a.openBlock(),a.createElementBlock("textarea",{key:1,value:s.modelValue,"data-test-textarea":"",onInput:i},null,40,rE)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.value),{key:2,modelValue:r.value,"onUpdate:modelValue":l[1]||(l[1]=u=>r.value=u),onOpen:l[2]||(l[2]=()=>t("open"))},{default:a.withCtx(()=>[a.renderSlot(s.$slots,"default",{},void 0,!0)]),_:3},40,["modelValue"]))}});const oE=Jn(aE,[["__scopeId","data-v-2f91c266"]]),lh=a.defineComponent({inheritAttrs:!1,__name:"AppInput",props:a.mergeDefaults({type:{},modelValue:{},readonly:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean},required:{type:Boolean},hasError:{type:Boolean},errorMessage:{},label:{},wrapperClasses:{},errorWrapperClasses:{},inputWrapperClasses:{},iconClasses:{},labelClasses:{}},JT),emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=`input-${mw()}`,i=a.ref(!1),s=a.computed({get:()=>n.modelValue,set:b=>t("update:modelValue",b)}),l=a.computed(()=>go(n.type)),u=a.computed(()=>Hi(n.type)),c=a.computed(()=>yi(n.type)),f=a.computed(()=>{if(l.value){const b=n.type;return RS[b]}if(c.value)return t_}),p=a.computed(()=>{const b=n.type;return l.value?$S(b,o):void 0}),h=a.computed(()=>n.type==="license"?"text":n.type),m=a.computed(()=>({id:o,type:h.value,required:n.required,multiple:n.multiple,disabled:n.disabled,readonly:n.readonly})),y=a.computed(()=>n.type==="license"?a.h(ch,{licensePlateClasses:"!p-0"}):a.h("div")),k=a.computed(()=>{const b=n.inputWrapperClasses,w=n.type==="license"?"items-stretch":"relative w-full items-center justify-center";return`${b} ${w}`});return(b,w)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(b.wrapperClasses)},[(b.label||b.$slots.label)&&!u.value?(a.openBlock(),a.createBlock(a.unref(Cu),{key:0,type:b.type,"has-error":b.hasError,disabled:b.disabled,for:l.value?`dp-input-${o}`:o,class:a.normalizeClass(b.labelClasses)},{default:a.withCtx(()=>[a.renderSlot(b.$slots,"label",{},()=>[a.createTextVNode(a.toDisplayString(b.label),1)])]),_:3},8,["type","has-error","disabled","for","class"])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(y.value),{class:a.normalizeClass([k.value,"flex"])},{default:a.withCtx(()=>[a.unref(_i)("leading",b.type,b.loading,b.$slots)?(a.openBlock(),a.createBlock(Kc,{key:0,loading:b.loading,class:a.normalizeClass([b.iconClasses,"left-3 top-3"]),"data-test-leading-icon":""},{default:a.withCtx(()=>[a.renderSlot(b.$slots,"leadingIcon")]),_:3},8,["loading","class"])):a.createCommentVNode("",!0),a.createVNode(oE,a.mergeProps({modelValue:s.value,"onUpdate:modelValue":w[0]||(w[0]=T=>s.value=T)},{...m.value,...p.value,...b.$attrs},{class:a.unref(tE)(b.type,b.disabled,b.loading,b.hasError,i.value,b.$slots,b.$attrs),onOpen:w[1]||(w[1]=()=>i.value=!0),onClosed:w[2]||(w[2]=()=>i.value=!1)}),{default:a.withCtx(()=>[a.renderSlot(b.$slots,"default")]),_:3},16,["modelValue","class"]),b.type==="checkbox"?(a.openBlock(),a.createBlock(a.unref(xp),{key:1,class:"pointer-events-none -ml-4 h-4 w-4 -translate-x-0.5 text-white"})):a.createCommentVNode("",!0),a.unref(ZT)(b.type,b.$slots,b.label)?(a.openBlock(),a.createElementBlock("label",{key:2,for:o,class:a.normalizeClass([{"!text-error":b.hasError},"cursor-pointer select-none pl-2 text-base peer-checked:text-primary peer-disabled:cursor-not-allowed peer-disabled:text-zinc-300"]),"data-test-choice-label":""},[a.renderSlot(b.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(b.label),1)])],2)):a.createCommentVNode("",!0),a.unref(_i)("trailing",b.type,b.loading,b.$slots)?(a.openBlock(),a.createBlock(Kc,{key:3,loading:b.loading,class:a.normalizeClass([b.iconClasses,"right-3 top-3"]),"data-test-trailing-icon":""},{default:a.withCtx(()=>[a.renderSlot(b.$slots,"trailingIcon",{},()=>[f.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(f.value),{key:0})):a.createCommentVNode("",!0)])]),_:3},8,["loading","class"])):a.createCommentVNode("",!0)]),_:3},8,["class"])),b.hasError&&b.errorMessage?(a.openBlock(),a.createElementBlock("p",{key:1,class:a.normalizeClass([b.errorWrapperClasses,"order-2 mt-1.5 flex items-center gap-x-1 text-xs italic text-error"]),"data-test-error-message":""},a.toDisplayString(b.errorMessage),3)):a.createCommentVNode("",!0)],2))}});function On(e){return[null,void 0].indexOf(e)!==-1}function iE(e,t,n){const{object:r,valueProp:o,mode:i}=a.toRefs(e),s=a.getCurrentInstance().proxy,l=n.iv,u=(p,h=!0)=>{l.value=f(p);const m=c(p);t.emit("change",m,s),h&&(t.emit("input",m),t.emit("update:modelValue",m))},c=p=>r.value||On(p)?p:Array.isArray(p)?p.map(h=>h[o.value]):p[o.value],f=p=>On(p)?i.value==="single"?{}:[]:p;return{update:u}}function sE(e,t){const{value:n,modelValue:r,mode:o,valueProp:i}=a.toRefs(e),s=a.ref(o.value!=="single"?[]:{}),l=r&&r.value!==void 0?r:n,u=a.computed(()=>o.value==="single"?s.value[i.value]:s.value.map(f=>f[i.value])),c=a.computed(()=>o.value!=="single"?s.value.map(f=>f[i.value]).join(","):s.value[i.value]);return{iv:s,internalValue:s,ev:l,externalValue:l,textValue:c,plainValue:u}}function lE(e,t,n){const{regex:r}=a.toRefs(e),o=a.getCurrentInstance().proxy,i=n.isOpen,s=n.open,l=a.ref(null),u=a.ref(null),c=()=>{l.value=""},f=m=>{l.value=m.target.value},p=m=>{if(r&&r.value){let y=r.value;typeof y=="string"&&(y=new RegExp(y)),m.key.match(y)||m.preventDefault()}},h=m=>{if(r&&r.value){let k=(m.clipboardData||window.clipboardData).getData("Text"),b=r.value;typeof b=="string"&&(b=new RegExp(b)),k.split("").every(w=>!!w.match(b))||m.preventDefault()}t.emit("paste",m,o)};return a.watch(l,m=>{!i.value&&m&&s(),t.emit("search-change",m,o)}),{search:l,input:u,clearSearch:c,handleSearchInput:f,handleKeypress:p,handlePaste:h}}function uE(e,t,n){const{groupSelect:r,mode:o,groups:i,disabledProp:s}=a.toRefs(e),l=a.ref(null),u=f=>{f===void 0||f!==null&&f[s.value]||i.value&&f&&f.group&&(o.value==="single"||!r.value)||(l.value=f)};return{pointer:l,setPointer:u,clearPointer:()=>{u(null)}}}function qs(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function cE(e){return Object.prototype.toString.call(e)==="[object Object]"}function dE(e,t){const n=t.slice().sort();return e.length===t.length&&e.slice().sort().every(function(r,o){return r===n[o]})}function fE(e,t,n){const{options:r,mode:o,trackBy:i,limit:s,hideSelected:l,createTag:u,createOption:c,label:f,appendNewTag:p,appendNewOption:h,multipleLabel:m,object:y,loading:k,delay:b,resolveOnLoad:w,minChars:T,filterResults:O,clearOnSearch:_,clearOnSelect:B,valueProp:C,allowAbsent:I,groupLabel:F,canDeselect:q,max:W,strict:M,closeOnSelect:D,closeOnDeselect:$,groups:Y,reverse:X,infinite:K,groupOptions:j,groupHideEmpty:U,groupSelect:S,onCreate:H,disabledProp:Z,searchStart:Q,searchFilter:V}=a.toRefs(e),E=a.getCurrentInstance().proxy,P=n.iv,R=n.ev,G=n.search,ie=n.clearSearch,oe=n.update,Ie=n.pointer,Ee=n.clearPointer,fe=n.focus,Be=n.deactivate,$e=n.close,ze=n.localize,Ge=a.ref([]),Ke=a.ref([]),ve=a.ref(!1),Qe=a.ref(null),Te=a.ref(K.value&&s.value===-1?10:s.value),se=a.computed(()=>u.value||c.value||!1),ce=a.computed(()=>p.value!==void 0?p.value:h.value!==void 0?h.value:!0),me=a.computed(()=>{if(Y.value){let z=Mt.value||[],de=[];return z.forEach(Ve=>{it(Ve[j.value]).forEach(gt=>{de.push(Object.assign({},gt,Ve[Z.value]?{[Z.value]:!0}:{}))})}),de}else{let z=it(Ke.value||[]);return Ge.value.length&&(z=z.concat(Ge.value)),z}}),Pt=a.computed(()=>{let z=me.value;return X.value&&(z=z.reverse()),L.value.length&&(z=L.value.concat(z)),vt(z)}),xe=a.computed(()=>{let z=Pt.value;return Te.value>0&&(z=z.slice(0,Te.value)),z}),Mt=a.computed(()=>{if(!Y.value)return[];let z=[],de=Ke.value||[];return Ge.value.length&&z.push({[F.value]:" ",[j.value]:[...Ge.value],__CREATE__:!0}),z.concat(de)}),Ut=a.computed(()=>{let z=[...Mt.value].map(de=>({...de}));return L.value.length&&(z[0]&&z[0].__CREATE__?z[0][j.value]=[...L.value,...z[0][j.value]]:z=[{[F.value]:" ",[j.value]:[...L.value],__CREATE__:!0}].concat(z)),z}),Rt=a.computed(()=>{if(!Y.value)return[];let z=Ut.value;return be((z||[]).map((de,Ve)=>{const gt=it(de[j.value]);return{...de,index:Ve,group:!0,[j.value]:vt(gt,!1).map(Dr=>Object.assign({},Dr,de[Z.value]?{[Z.value]:!0}:{})),__VISIBLE__:vt(gt).map(Dr=>Object.assign({},Dr,de[Z.value]?{[Z.value]:!0}:{}))}}))}),zt=a.computed(()=>{switch(o.value){case"single":return!On(P.value[C.value]);case"multiple":case"tags":return!On(P.value)&&P.value.length>0}}),kn=a.computed(()=>m!==void 0&&m.value!==void 0?m.value(P.value,E):P.value&&P.value.length>1?`${P.value.length} options selected`:"1 option selected"),Sn=a.computed(()=>!me.value.length&&!ve.value&&!L.value.length),Et=a.computed(()=>me.value.length>0&&xe.value.length==0&&(G.value&&Y.value||!Y.value)),L=a.computed(()=>se.value===!1||!G.value?[]:Qr(G.value)!==-1?[]:[{[C.value]:G.value,[N.value]:G.value,[f.value]:G.value,__CREATE__:!0}]),N=a.computed(()=>i.value||f.value),ee=a.computed(()=>{switch(o.value){case"single":return null;case"multiple":case"tags":return[]}}),re=a.computed(()=>k.value||ve.value),ge=z=>{switch(typeof z!="object"&&(z=rn(z)),o.value){case"single":oe(z);break;case"multiple":case"tags":oe(P.value.concat(z));break}t.emit("select",qe(z),z,E)},we=z=>{switch(typeof z!="object"&&(z=rn(z)),o.value){case"single":Le();break;case"tags":case"multiple":oe(Array.isArray(z)?P.value.filter(de=>z.map(Ve=>Ve[C.value]).indexOf(de[C.value])===-1):P.value.filter(de=>de[C.value]!=z[C.value]));break}t.emit("deselect",qe(z),z,E)},qe=z=>y.value?z:z[C.value],J=z=>{we(z)},le=(z,de)=>{if(de.button!==0){de.preventDefault();return}J(z)},Le=()=>{t.emit("clear",E),oe(ee.value)},De=z=>{if(z.group!==void 0)return o.value==="single"?!1:Fa(z[j.value])&&z[j.value].length;switch(o.value){case"single":return!On(P.value)&&P.value[C.value]==z[C.value];case"tags":case"multiple":return!On(P.value)&&P.value.map(de=>de[C.value]).indexOf(z[C.value])!==-1}},st=z=>z[Z.value]===!0,pe=()=>W===void 0||W.value===-1||!zt.value&&W.value>0?!1:P.value.length>=W.value,mt=z=>{if(!st(z)){if(H&&H.value&&!De(z)&&z.__CREATE__&&(z={...z},delete z.__CREATE__,z=H.value(z,E),z instanceof Promise)){ve.value=!0,z.then(de=>{ve.value=!1,Me(de)});return}Me(z)}},Me=z=>{switch(z.__CREATE__&&(z={...z},delete z.__CREATE__),o.value){case"single":if(z&&De(z)){q.value&&we(z),$.value&&(Ee(),$e());return}z&&At(z),B.value&&ie(),D.value&&(Ee(),$e()),z&&ge(z);break;case"multiple":if(z&&De(z)){we(z),$.value&&(Ee(),$e());return}if(pe()){t.emit("max",E);return}z&&(At(z),ge(z)),B.value&&ie(),l.value&&Ee(),D.value&&$e();break;case"tags":if(z&&De(z)){we(z),$.value&&(Ee(),$e());return}if(pe()){t.emit("max",E);return}z&&At(z),B.value&&ie(),z&&ge(z),l.value&&Ee(),D.value&&$e();break}D.value||fe()},ln=z=>{if(!(st(z)||o.value==="single"||!S.value)){switch(o.value){case"multiple":case"tags":Zn(z[j.value])?we(z[j.value]):ge(z[j.value].filter(de=>P.value.map(Ve=>Ve[C.value]).indexOf(de[C.value])===-1).filter(de=>!de[Z.value]).filter((de,Ve)=>P.value.length+1+Ve<=W.value||W.value===-1));break}D.value&&Be()}},At=z=>{rn(z[C.value])===void 0&&se.value&&(t.emit("tag",z[C.value],E),t.emit("option",z[C.value],E),t.emit("create",z[C.value],E),ce.value&&jt(z),ie())},Va=()=>{o.value!=="single"&&ge(xe.value.filter(z=>!z.disabled&&!De(z)))},Zn=z=>z.find(de=>!De(de)&&!de[Z.value])===void 0,Fa=z=>z.find(de=>!De(de))===void 0,rn=z=>me.value[me.value.map(de=>String(de[C.value])).indexOf(String(z))],Qr=(z,de=!0)=>me.value.map(Ve=>parseInt(Ve[N.value])==Ve[N.value]?parseInt(Ve[N.value]):Ve[N.value]).indexOf(parseInt(z)==z?parseInt(z):z),Se=z=>["tags","multiple"].indexOf(o.value)!==-1&&l.value&&De(z),jt=z=>{Ge.value.push(z)},be=z=>U.value?z.filter(de=>G.value?de.__VISIBLE__.length:de[j.value].length):z.filter(de=>G.value?de.__VISIBLE__.length:!0),vt=(z,de=!0)=>{let Ve=z;if(G.value&&O.value){let gt=V.value;gt||(gt=(Dr,Bo)=>{let Mo=qs(ze(Dr[N.value]),M.value);return Q.value?Mo.startsWith(qs(G.value,M.value)):Mo.indexOf(qs(G.value,M.value))!==-1}),Ve=Ve.filter(gt)}return l.value&&de&&(Ve=Ve.filter(gt=>!Se(gt))),Ve},it=z=>{let de=z;return cE(de)&&(de=Object.keys(de).map(Ve=>{let gt=de[Ve];return{[C.value]:Ve,[N.value]:gt,[f.value]:gt}})),de=de.map(Ve=>typeof Ve=="object"?Ve:{[C.value]:Ve,[N.value]:Ve,[f.value]:Ve}),de},er=()=>{On(R.value)||(P.value=Zr(R.value))},Gt=z=>(ve.value=!0,new Promise((de,Ve)=>{r.value(G.value,E).then(gt=>{Ke.value=gt||[],typeof z=="function"&&z(gt),ve.value=!1}).catch(gt=>{console.error(gt),Ke.value=[],ve.value=!1}).finally(()=>{de()})})),Ha=()=>{if(zt.value)if(o.value==="single"){let z=rn(P.value[C.value]);if(z!==void 0){let de=z[f.value];P.value[f.value]=de,y.value&&(R.value[f.value]=de)}}else P.value.forEach((z,de)=>{let Ve=rn(P.value[de][C.value]);if(Ve!==void 0){let gt=Ve[f.value];P.value[de][f.value]=gt,y.value&&(R.value[de][f.value]=gt)}})},_s=z=>{Gt(z)},Zr=z=>On(z)?o.value==="single"?{}:[]:y.value?z:o.value==="single"?rn(z)||(I.value?{[f.value]:z,[C.value]:z,[N.value]:z}:{}):z.filter(de=>!!rn(de)||I.value).map(de=>rn(de)||{[f.value]:de,[C.value]:de,[N.value]:de}),ea=()=>{Qe.value=a.watch(G,z=>{z.length<T.value||!z&&T.value!==0||(ve.value=!0,_.value&&(Ke.value=[]),setTimeout(()=>{z==G.value&&r.value(G.value,E).then(de=>{(z==G.value||!G.value)&&(Ke.value=de,Ie.value=xe.value.filter(Ve=>Ve[Z.value]!==!0)[0]||null,ve.value=!1)}).catch(de=>{console.error(de)})},b.value))},{flush:"sync"})};if(o.value!=="single"&&!On(R.value)&&!Array.isArray(R.value))throw new Error(`v-model must be an array when using "${o.value}" mode`);return r&&typeof r.value=="function"?w.value?Gt(er):y.value==!0&&er():(Ke.value=r.value,er()),b.value>-1&&ea(),a.watch(b,(z,de)=>{Qe.value&&Qe.value(),z>=0&&ea()}),a.watch(R,z=>{if(On(z)){oe(Zr(z),!1);return}switch(o.value){case"single":(y.value?z[C.value]!=P.value[C.value]:z!=P.value[C.value])&&oe(Zr(z),!1);break;case"multiple":case"tags":dE(y.value?z.map(de=>de[C.value]):z,P.value.map(de=>de[C.value]))||oe(Zr(z),!1);break}},{deep:!0}),a.watch(r,(z,de)=>{typeof e.options=="function"?w.value&&(!de||z&&z.toString()!==de.toString())&&Gt():(Ke.value=e.options,Object.keys(P.value).length||er(),Ha())}),a.watch(f,Ha),{pfo:Pt,fo:xe,filteredOptions:xe,hasSelected:zt,multipleLabelText:kn,eo:me,extendedOptions:me,eg:Mt,extendedGroups:Mt,fg:Rt,filteredGroups:Rt,noOptions:Sn,noResults:Et,resolving:ve,busy:re,offset:Te,select:ge,deselect:we,remove:J,selectAll:Va,clear:Le,isSelected:De,isDisabled:st,isMax:pe,getOption:rn,handleOptionClick:mt,handleGroupClick:ln,handleTagRemove:le,refreshOptions:_s,resolveOptions:Gt,refreshLabels:Ha}}function pE(e,t,n){const{valueProp:r,showOptions:o,searchable:i,groupLabel:s,groups:l,mode:u,groupSelect:c,disabledProp:f,groupOptions:p}=a.toRefs(e),h=n.fo,m=n.fg,y=n.handleOptionClick,k=n.handleGroupClick,b=n.search,w=n.pointer,T=n.setPointer,O=n.clearPointer,_=n.multiselect,B=n.isOpen,C=a.computed(()=>h.value.filter(R=>!R[f.value])),I=a.computed(()=>m.value.filter(R=>!R[f.value])),F=a.computed(()=>u.value!=="single"&&c.value),q=a.computed(()=>w.value&&w.value.group),W=a.computed(()=>E(w.value)),M=a.computed(()=>{const R=q.value?w.value:E(w.value),G=I.value.map(oe=>oe[s.value]).indexOf(R[s.value]);let ie=I.value[G-1];return ie===void 0&&(ie=$.value),ie}),D=a.computed(()=>{let R=I.value.map(G=>G.label).indexOf(q.value?w.value[s.value]:E(w.value)[s.value])+1;return I.value.length<=R&&(R=0),I.value[R]}),$=a.computed(()=>[...I.value].slice(-1)[0]),Y=a.computed(()=>w.value.__VISIBLE__.filter(R=>!R[f.value])[0]),X=a.computed(()=>{const R=W.value.__VISIBLE__.filter(G=>!G[f.value]);return R[R.map(G=>G[r.value]).indexOf(w.value[r.value])-1]}),K=a.computed(()=>{const R=E(w.value).__VISIBLE__.filter(G=>!G[f.value]);return R[R.map(G=>G[r.value]).indexOf(w.value[r.value])+1]}),j=a.computed(()=>[...M.value.__VISIBLE__.filter(R=>!R[f.value])].slice(-1)[0]),U=a.computed(()=>[...$.value.__VISIBLE__.filter(R=>!R[f.value])].slice(-1)[0]),S=R=>w.value&&(!R.group&&w.value[r.value]===R[r.value]||R.group!==void 0&&w.value[s.value]===R[s.value])?!0:void 0,H=()=>{T(C.value[0]||null)},Z=()=>{!w.value||w.value[f.value]===!0||(q.value?k(w.value):y(w.value))},Q=()=>{if(w.value===null)T((l.value&&F.value?I.value[0].__CREATE__?C.value[0]:I.value[0]:C.value[0])||null);else if(l.value&&F.value){let R=q.value?Y.value:K.value;R===void 0&&(R=D.value,R.__CREATE__&&(R=R[p.value][0])),T(R||null)}else{let R=C.value.map(G=>G[r.value]).indexOf(w.value[r.value])+1;C.value.length<=R&&(R=0),T(C.value[R]||null)}a.nextTick(()=>{P()})},V=()=>{if(w.value===null){let R=C.value[C.value.length-1];l.value&&F.value&&(R=U.value,R===void 0&&(R=$.value)),T(R||null)}else if(l.value&&F.value){let R=q.value?j.value:X.value;R===void 0&&(R=q.value?M.value:W.value,R.__CREATE__&&(R=j.value,R===void 0&&(R=M.value))),T(R||null)}else{let R=C.value.map(G=>G[r.value]).indexOf(w.value[r.value])-1;R<0&&(R=C.value.length-1),T(C.value[R]||null)}a.nextTick(()=>{P()})},E=R=>I.value.find(G=>G.__VISIBLE__.map(ie=>ie[r.value]).indexOf(R[r.value])!==-1),P=()=>{let R=_.value.querySelector("[data-pointed]");if(!R)return;let G=R.parentElement.parentElement;l.value&&(G=q.value?R.parentElement.parentElement.parentElement:R.parentElement.parentElement.parentElement.parentElement),R.offsetTop+R.offsetHeight>G.clientHeight+G.scrollTop&&(G.scrollTop=R.offsetTop+R.offsetHeight-G.clientHeight),R.offsetTop<G.scrollTop&&(G.scrollTop=R.offsetTop)};return a.watch(b,R=>{i.value&&(R.length&&o.value?H():O())}),a.watch(B,R=>{if(R){let G=_.value.querySelectorAll("[data-selected]")[0];if(!G)return;let ie=G.parentElement.parentElement;a.nextTick(()=>{ie.scrollTop>0||(ie.scrollTop=G.offsetTop)})}}),{pointer:w,canPointGroups:F,isPointed:S,setPointerFirst:H,selectPointer:Z,forwardPointer:Q,backwardPointer:V}}function hE(e,t,n){const{disabled:r}=a.toRefs(e),o=a.getCurrentInstance().proxy,i=a.ref(!1);return{isOpen:i,open:()=>{i.value||r.value||(i.value=!0,t.emit("open",o))},close:()=>{i.value&&(i.value=!1,t.emit("close",o))}}}function mE(e,t,n){const{searchable:r,disabled:o,clearOnBlur:i}=a.toRefs(e),s=n.input,l=n.open,u=n.close,c=n.clearSearch,f=n.isOpen,p=a.ref(null),h=a.ref(null),m=a.ref(null),y=a.ref(!1),k=a.ref(!1),b=a.computed(()=>r.value||o.value?-1:0),w=()=>{r.value&&s.value.blur(),h.value.blur()},T=()=>{r.value&&!o.value&&s.value.focus()},O=(q=!0)=>{o.value||(y.value=!0,q&&l())},_=()=>{y.value=!1,setTimeout(()=>{y.value||(u(),i.value&&c())},1)};return{multiselect:p,wrapper:h,tags:m,tabindex:b,isActive:y,mouseClicked:k,blur:w,focus:T,activate:O,deactivate:_,handleFocusIn:q=>{q.target.closest("[data-tags]")&&q.target.nodeName!=="INPUT"||q.target.closest("[data-clear]")||O(k.value)},handleFocusOut:()=>{_()},handleCaretClick:()=>{_(),w()},handleMousedown:q=>{k.value=!0,f.value&&(q.target.isEqualNode(h.value)||q.target.isEqualNode(m.value))?setTimeout(()=>{_()},0):document.activeElement.isEqualNode(h.value)&&!f.value&&O(),setTimeout(()=>{k.value=!1},0)}}}function vE(e,t,n){const{mode:r,addTagOn:o,openDirection:i,searchable:s,showOptions:l,valueProp:u,groups:c,addOptionOn:f,createTag:p,createOption:h,reverse:m}=a.toRefs(e),y=a.getCurrentInstance().proxy,k=n.iv,b=n.update,w=n.search,T=n.setPointer,O=n.selectPointer,_=n.backwardPointer,B=n.forwardPointer,C=n.multiselect,I=n.wrapper,F=n.tags,q=n.isOpen,W=n.open,M=n.blur,D=n.fo,$=a.computed(()=>p.value||h.value||!1),Y=a.computed(()=>o.value!==void 0?o.value:f.value!==void 0?f.value:["enter"]),X=()=>{r.value==="tags"&&!l.value&&$.value&&s.value&&!c.value&&T(D.value[D.value.map(S=>S[u.value]).indexOf(w.value)])},K=S=>{let H=S.length-1;for(;H>=0&&(S[H].remove===!1||S[H].disabled);)H--;return H<0||S.splice(H,1),S};return{handleKeydown:S=>{t.emit("keydown",S,y);let H,Z;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(S.key)!==-1&&r.value==="tags"&&(H=[...C.value.querySelectorAll("[data-tags] > *")].filter(Q=>Q!==F.value),Z=H.findIndex(Q=>Q===document.activeElement)),S.key){case"Backspace":if(r.value==="single"||s.value&&[null,""].indexOf(w.value)===-1||k.value.length===0)return;b(K([...k.value]));break;case"Enter":if(S.preventDefault(),S.keyCode===229)return;if(Z!==-1&&Z!==void 0){b([...k.value].filter((Q,V)=>V!==Z)),Z===H.length-1&&(H.length-1?H[H.length-2].focus():s.value?F.value.querySelector("input").focus():I.value.focus());return}if(Y.value.indexOf("enter")===-1&&$.value)return;X(),O();break;case" ":if(!$.value&&!s.value){S.preventDefault(),X(),O();return}if(!$.value)return!1;if(Y.value.indexOf("space")===-1&&$.value)return;S.preventDefault(),X(),O();break;case"Tab":case";":case",":if(Y.value.indexOf(S.key.toLowerCase())===-1||!$.value)return;X(),O(),S.preventDefault();break;case"Escape":M();break;case"ArrowUp":if(S.preventDefault(),!l.value)return;q.value||W(),_();break;case"ArrowDown":if(S.preventDefault(),!l.value)return;q.value||W(),B();break;case"ArrowLeft":if(s.value&&F.value&&F.value.querySelector("input").selectionStart||S.shiftKey||r.value!=="tags"||!k.value||!k.value.length)return;S.preventDefault(),Z===-1?H[H.length-1].focus():Z>0&&H[Z-1].focus();break;case"ArrowRight":if(Z===-1||S.shiftKey||r.value!=="tags"||!k.value||!k.value.length)return;S.preventDefault(),H.length>Z+1?H[Z+1].focus():s.value?F.value.querySelector("input").focus():s.value||I.value.focus();break}},handleKeyup:S=>{t.emit("keyup",S,y)},preparePointer:X}}function gE(e,t,n){const{classes:r,disabled:o,openDirection:i,showOptions:s}=a.toRefs(e),l=n.isOpen,u=n.isPointed,c=n.isSelected,f=n.isDisabled,p=n.isActive,h=n.canPointGroups,m=n.resolving,y=n.fo,k=a.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...r.value})),b=a.computed(()=>!!(l.value&&s.value&&(!m.value||m.value&&y.value.length)));return{classList:a.computed(()=>{const T=k.value;return{container:[T.container].concat(o.value?T.containerDisabled:[]).concat(b.value&&i.value==="top"?T.containerOpenTop:[]).concat(b.value&&i.value!=="top"?T.containerOpen:[]).concat(p.value?T.containerActive:[]),wrapper:T.wrapper,spacer:T.spacer,singleLabel:T.singleLabel,singleLabelText:T.singleLabelText,multipleLabel:T.multipleLabel,search:T.search,tags:T.tags,tag:[T.tag].concat(o.value?T.tagDisabled:[]),tagDisabled:T.tagDisabled,tagRemove:T.tagRemove,tagRemoveIcon:T.tagRemoveIcon,tagsSearchWrapper:T.tagsSearchWrapper,tagsSearch:T.tagsSearch,tagsSearchCopy:T.tagsSearchCopy,placeholder:T.placeholder,caret:[T.caret].concat(l.value?T.caretOpen:[]),clear:T.clear,clearIcon:T.clearIcon,spinner:T.spinner,inifinite:T.inifinite,inifiniteSpinner:T.inifiniteSpinner,dropdown:[T.dropdown].concat(i.value==="top"?T.dropdownTop:[]).concat(!l.value||!s.value||!b.value?T.dropdownHidden:[]),options:[T.options].concat(i.value==="top"?T.optionsTop:[]),group:T.group,groupLabel:O=>{let _=[T.groupLabel];return u(O)?_.push(c(O)?T.groupLabelSelectedPointed:T.groupLabelPointed):c(O)&&h.value?_.push(f(O)?T.groupLabelSelectedDisabled:T.groupLabelSelected):f(O)&&_.push(T.groupLabelDisabled),h.value&&_.push(T.groupLabelPointable),_},groupOptions:T.groupOptions,option:(O,_)=>{let B=[T.option];return u(O)?B.push(c(O)?T.optionSelectedPointed:T.optionPointed):c(O)?B.push(f(O)?T.optionSelectedDisabled:T.optionSelected):(f(O)||_&&f(_))&&B.push(T.optionDisabled),B},noOptions:T.noOptions,noResults:T.noResults,assist:T.assist,fakeInput:T.fakeInput}}),showDropdown:b}}function yE(e,t,n){const{limit:r,infinite:o}=a.toRefs(e),i=n.isOpen,s=n.offset,l=n.search,u=n.pfo,c=n.eo,f=a.ref(null),p=a.ref(null),h=a.computed(()=>s.value<u.value.length),m=k=>{const{isIntersecting:b,target:w}=k[0];if(b){const T=w.offsetParent,O=T.scrollTop;s.value+=r.value==-1?10:r.value,a.nextTick(()=>{T.scrollTop=O})}},y=()=>{i.value&&s.value<u.value.length?f.value.observe(p.value):!i.value&&f.value&&f.value.disconnect()};return a.watch(i,()=>{o.value&&y()}),a.watch(l,()=>{o.value&&(s.value=r.value,y())},{flush:"post"}),a.watch(c,()=>{o.value&&y()},{immediate:!1,flush:"post"}),a.onMounted(()=>{window&&window.IntersectionObserver&&(f.value=new IntersectionObserver(m))}),{hasMore:h,infiniteLoader:p}}function bE(e,t,n){const{placeholder:r,id:o,valueProp:i,label:s,mode:l,groupLabel:u,aria:c,searchable:f}=a.toRefs(e),p=n.pointer,h=n.iv,m=n.hasSelected,y=n.multipleLabelText,k=a.ref(null),b=a.computed(()=>{let D=[];return o&&o.value&&D.push(o.value),D.push("assist"),D.join("-")}),w=a.computed(()=>{let D=[];return o&&o.value&&D.push(o.value),D.push("multiselect-options"),D.join("-")}),T=a.computed(()=>{let D=[];if(o&&o.value&&D.push(o.value),p.value)return D.push(p.value.group?"multiselect-group":"multiselect-option"),D.push(p.value.group?p.value.index:p.value[i.value]),D.join("-")}),O=a.computed(()=>r.value),_=a.computed(()=>l.value!=="single"),B=a.computed(()=>{let D="";return l.value==="single"&&m.value&&(D+=h.value[s.value]),l.value==="multiple"&&m.value&&(D+=y.value),l.value==="tags"&&m.value&&(D+=h.value.map($=>$[s.value]).join(", ")),D}),C=a.computed(()=>{let D={...c.value};return f.value&&(D["aria-labelledby"]=D["aria-labelledby"]?`${b.value} ${D["aria-labelledby"]}`:b.value,B.value&&D["aria-label"]&&(D["aria-label"]=`${B.value}, ${D["aria-label"]}`)),D}),I=D=>{let $=[];return o&&o.value&&$.push(o.value),$.push("multiselect-option"),$.push(D[i.value]),$.join("-")},F=D=>{let $=[];return o&&o.value&&$.push(o.value),$.push("multiselect-group"),$.push(D.index),$.join("-")},q=D=>{let $=[];return $.push(D),$.join(" ")},W=D=>{let $=[];return $.push(D),$.join(" ")},M=D=>`${D} ❎`;return a.onMounted(()=>{if(o&&o.value&&document&&document.querySelector){let D=document.querySelector(`[for="${o.value}"]`);k.value=D?D.innerText:null}}),{arias:C,ariaLabel:B,ariaAssist:b,ariaControls:w,ariaPlaceholder:O,ariaMultiselectable:_,ariaActiveDescendant:T,ariaOptionId:I,ariaOptionLabel:q,ariaGroupId:F,ariaGroupLabel:W,ariaTagLabel:M}}function _E(e,t,n){const{locale:r,fallbackLocale:o}=a.toRefs(e);return{localize:s=>!s||typeof s!="object"?s:s&&s[r.value]?s[r.value]:s&&r.value&&s[r.value.toUpperCase()]?s[r.value.toUpperCase()]:s&&s[o.value]?s[o.value]:s&&o.value&&s[o.value.toUpperCase()]?s[o.value.toUpperCase()]:s&&Object.keys(s)[0]?s[Object.keys(s)[0]]:""}}function wE(e,t,n,r={}){return n.forEach(o=>{o&&(r={...r,...o(e,t,r)})}),r}var Su={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:String,required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1}},setup(e,t){return wE(e,t,[_E,sE,uE,hE,lE,iE,mE,fE,yE,pE,vE,gE,bE])}};const kE=["id","dir"],SE=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],CE=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],TE=["onKeyup","aria-label"],EE=["onClick"],xE=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],PE=["innerHTML"],IE=["id"],DE=["id","aria-label","aria-selected"],NE=["data-pointed","onMouseenter","onClick"],OE=["innerHTML"],BE=["aria-label"],ME=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],RE=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],AE=["innerHTML"],$E=["innerHTML"],LE=["value"],VE=["name","value"],FE=["name","value"],HE=["id"];function UE(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{ref:"multiselect",class:a.normalizeClass(e.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:t[10]||(t[10]=(...s)=>e.handleFocusIn&&e.handleFocusIn(...s)),onFocusout:t[11]||(t[11]=(...s)=>e.handleFocusOut&&e.handleFocusOut(...s)),onKeyup:t[12]||(t[12]=(...s)=>e.handleKeyup&&e.handleKeyup(...s)),onKeydown:t[13]||(t[13]=(...s)=>e.handleKeydown&&e.handleKeydown(...s))},[a.createElementVNode("div",a.mergeProps({class:e.classList.wrapper,onMousedown:t[9]||(t[9]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),ref:"wrapper",tabindex:e.tabindex,"aria-controls":n.searchable?void 0:e.ariaControls,"aria-placeholder":n.searchable?void 0:e.ariaPlaceholder,"aria-expanded":n.searchable?void 0:e.isOpen,"aria-activedescendant":n.searchable?void 0:e.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:e.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:e.arias),[a.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(a.openBlock(),a.createElementBlock("input",a.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:t[0]||(t[0]=(...s)=>e.handleSearchInput&&e.handleSearchInput(...s)),onKeypress:t[1]||(t[1]=(...s)=>e.handleKeypress&&e.handleKeypress(...s)),onPaste:t[2]||(t[2]=a.withModifiers((...s)=>e.handlePaste&&e.handlePaste(...s),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,CE)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(e.classList.tags),"data-tags":""},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.iv,(s,l,u)=>a.renderSlot(e.$slots,"tag",{option:s,handleTagRemove:e.handleTagRemove,disabled:n.disabled},()=>[(a.openBlock(),a.createElementBlock("span",{class:a.normalizeClass([e.classList.tag,s.disabled?e.classList.tagDisabled:null]),tabindex:"-1",onKeyup:a.withKeys(c=>e.handleTagRemove(s,c),["enter"]),key:u,"aria-label":e.ariaTagLabel(e.localize(s[n.label]))},[a.createTextVNode(a.toDisplayString(e.localize(s[n.label]))+" ",1),!n.disabled&&!s.disabled?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(e.classList.tagRemove),onClick:a.withModifiers(c=>e.handleTagRemove(s,c),["stop"])},[a.createElementVNode("span",{class:a.normalizeClass(e.classList.tagRemoveIcon)},null,2)],10,EE)):a.createCommentVNode("v-if",!0)],42,TE))])),256)),a.createElementVNode("div",{class:a.normalizeClass(e.classList.tagsSearchWrapper),ref:"tags"},[a.createCommentVNode(" Used for measuring search width "),a.createElementVNode("span",{class:a.normalizeClass(e.classList.tagsSearchCopy)},a.toDisplayString(e.search),3),a.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(a.openBlock(),a.createElementBlock("input",a.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:t[3]||(t[3]=(...s)=>e.handleSearchInput&&e.handleSearchInput(...s)),onKeypress:t[4]||(t[4]=(...s)=>e.handleKeypress&&e.handleKeypress(...s)),onPaste:t[5]||(t[5]=a.withModifiers((...s)=>e.handlePaste&&e.handlePaste(...s),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,xE)):a.createCommentVNode("v-if",!0)],2)],2)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Single label "),n.mode=="single"&&e.hasSelected&&!e.search&&e.iv?a.renderSlot(e.$slots,"singlelabel",{key:2,value:e.iv},()=>[a.createElementVNode("div",{class:a.normalizeClass(e.classList.singleLabel)},[a.createElementVNode("span",{class:a.normalizeClass(e.classList.singleLabelText)},a.toDisplayString(e.localize(e.iv[n.label])),3)],2)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Multiple label "),n.mode=="multiple"&&e.hasSelected&&!e.search?a.renderSlot(e.$slots,"multiplelabel",{key:3,values:e.iv},()=>[a.createElementVNode("div",{class:a.normalizeClass(e.classList.multipleLabel),innerHTML:e.multipleLabelText},null,10,PE)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Placeholder "),n.placeholder&&!e.hasSelected&&!e.search?a.renderSlot(e.$slots,"placeholder",{key:4},()=>[a.createElementVNode("div",{class:a.normalizeClass(e.classList.placeholder),"aria-hidden":"true"},a.toDisplayString(n.placeholder),3)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Spinner "),n.loading||e.resolving?a.renderSlot(e.$slots,"spinner",{key:5},()=>[a.createElementVNode("span",{class:a.normalizeClass(e.classList.spinner),"aria-hidden":"true"},null,2)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Clear "),e.hasSelected&&!n.disabled&&n.canClear&&!e.busy?a.renderSlot(e.$slots,"clear",{key:6,clear:e.clear},()=>[a.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:a.normalizeClass(e.classList.clear),onClick:t[6]||(t[6]=(...s)=>e.clear&&e.clear(...s)),onKeyup:t[7]||(t[7]=a.withKeys((...s)=>e.clear&&e.clear(...s),["enter"]))},[a.createElementVNode("span",{class:a.normalizeClass(e.classList.clearIcon)},null,2)],34)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Caret "),n.caret&&n.showOptions?a.renderSlot(e.$slots,"caret",{key:7},()=>[a.createElementVNode("span",{class:a.normalizeClass(e.classList.caret),onClick:t[8]||(t[8]=(...s)=>e.handleCaretClick&&e.handleCaretClick(...s)),"aria-hidden":"true"},null,2)]):a.createCommentVNode("v-if",!0)],16,SE),a.createCommentVNode(" Options "),a.createElementVNode("div",{class:a.normalizeClass(e.classList.dropdown),tabindex:"-1"},[a.renderSlot(e.$slots,"beforelist",{options:e.fo}),a.createElementVNode("ul",{class:a.normalizeClass(e.classList.options),id:e.ariaControls,role:"listbox"},[n.groups?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(e.fg,(s,l,u)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(e.classList.group),key:u,id:e.ariaGroupId(s),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),"aria-selected":e.isSelected(s),role:"option"},[s.__CREATE__?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(e.classList.groupLabel(s)),"data-pointed":e.isPointed(s),onMouseenter:c=>e.setPointer(s,l),onClick:c=>e.handleGroupClick(s)},[a.renderSlot(e.$slots,"grouplabel",{group:s,isSelected:e.isSelected,isPointed:e.isPointed},()=>[a.createElementVNode("span",{innerHTML:e.localize(s[n.groupLabel])},null,8,OE)])],42,NE)),a.createElementVNode("ul",{class:a.normalizeClass(e.classList.groupOptions),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),role:"group"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.__VISIBLE__,(c,f,p)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(e.classList.option(c,s)),"data-pointed":e.isPointed(c),"data-selected":e.isSelected(c)||void 0,key:p,onMouseenter:h=>e.setPointer(c),onClick:h=>e.handleOptionClick(c),id:e.ariaOptionId(c),"aria-selected":e.isSelected(c),"aria-label":e.ariaOptionLabel(e.localize(c[n.label])),role:"option"},[a.renderSlot(e.$slots,"option",{option:c,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[a.createElementVNode("span",null,a.toDisplayString(e.localize(c[n.label])),1)])],42,ME))),128))],10,BE)],10,DE))),128)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(e.fo,(s,l,u)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(e.classList.option(s)),"data-pointed":e.isPointed(s),"data-selected":e.isSelected(s)||void 0,key:u,onMouseenter:c=>e.setPointer(s),onClick:c=>e.handleOptionClick(s),id:e.ariaOptionId(s),"aria-selected":e.isSelected(s),"aria-label":e.ariaOptionLabel(e.localize(s[n.label])),role:"option"},[a.renderSlot(e.$slots,"option",{option:s,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[a.createElementVNode("span",null,a.toDisplayString(e.localize(s[n.label])),1)])],42,RE))),128))],10,IE),e.noOptions?a.renderSlot(e.$slots,"nooptions",{key:0},()=>[a.createElementVNode("div",{class:a.normalizeClass(e.classList.noOptions),innerHTML:e.localize(n.noOptionsText)},null,10,AE)]):a.createCommentVNode("v-if",!0),e.noResults?a.renderSlot(e.$slots,"noresults",{key:1},()=>[a.createElementVNode("div",{class:a.normalizeClass(e.classList.noResults),innerHTML:e.localize(n.noResultsText)},null,10,$E)]):a.createCommentVNode("v-if",!0),n.infinite&&e.hasMore?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(e.classList.inifinite),ref:"infiniteLoader"},[a.renderSlot(e.$slots,"infinite",{},()=>[a.createElementVNode("span",{class:a.normalizeClass(e.classList.inifiniteSpinner)},null,2)])],2)):a.createCommentVNode("v-if",!0),a.renderSlot(e.$slots,"afterlist",{options:e.fo})],2),a.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(a.openBlock(),a.createElementBlock("input",{key:0,class:a.normalizeClass(e.classList.fakeInput),tabindex:"-1",value:e.textValue,required:""},null,10,LE)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Native input support "),n.nativeSupport?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[n.mode=="single"?(a.openBlock(),a.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:e.plainValue!==void 0?e.plainValue:""},null,8,VE)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(e.plainValue,(s,l)=>(a.openBlock(),a.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:s,key:l},null,8,FE))),128))],64)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Screen reader assistive text "),n.searchable&&e.hasSelected?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(e.classList.assist),id:e.ariaAssist,"aria-hidden":"true"},a.toDisplayString(e.ariaLabel),11,HE)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Create height for empty input "),a.createElementVNode("div",{class:a.normalizeClass(e.classList.spacer)},null,2)],42,kE)}Su.render=UE;Su.__file="src/Multiselect.vue";const Mn={container:"relative mx-auto w-full flex items-center justify-end box-border cursor-pointer border border-zinc-300 rounded bg-white text-base leading-snug outline-none rounded-lg hover:bg-zinc-100",containerDisabled:"cursor-default bg-zinc-100",containerOpen:"rounded-b-none",containerOpenTop:"rounded-t-none",containerActive:"ring-1 ring-zinc-300",singleLabel:"flex items-center h-full max-w-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3.5 pr-16 box-border rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3.5",singleLabelText:"overflow-ellipsis overflow-hidden block whitespace-nowrap max-w-full",multipleLabel:"flex items-center h-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3.5 rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3.5",search:"h-full w-full absolute inset-0 outline-none focus:ring-0 appearance-none box-border border-0 text-base font-sans bg-white rounded-lg pl-3.5 rtl:pl-0 rtl:pr-3.5",tags:"flex-grow flex-shrink flex flex-wrap items-center mt-1 pl-2 rtl:pl-0 rtl:pr-2",tag:"bg-zinc-200 text-sm font-semibold py-1 pl-2 rounded mr-1 mb-1 flex items-center whitespace-nowrap rtl:pl-0 rtl:pr-2 rtl:mr-0 rtl:ml-1",tagDisabled:"pr-2 opacity-50 rtl:pl-2",tagRemove:"flex items-center justify-center p-1 mx-0.5 rounded-sm hover:bg-black hover:bg-opacity-10 group",tagRemoveIcon:"bg-multiselect-remove bg-center bg-no-repeat inline-block w-3 h-3 text-black",tagsSearchWrapper:"inline-block relative mx-1 mb-1 flex-grow flex-shrink h-full",tagsSearch:"absolute inset-0 border-0 outline-none focus:ring-0 appearance-none p-0 text-base font-sans box-border w-full bg-transparent",tagsSearchCopy:"invisible whitespace-pre-wrap inline-block h-px",placeholder:"flex items-center h-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3.5 text-zinc-400 rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3.5",caret:"bg-multiselect-caret bg-center bg-no-repeat w-5 h-8 py-px box-content mr-3.5 relative z-10 stroke-2 flex-shrink-0 flex-grow-0 transition-transform transform pointer-events-none rtl:mr-0 rtl:ml-3.5",caretOpen:"rotate-180 pointer-events-auto",clear:"pr-3.5 relative z-10 opacity-30 transition duration-300 flex-shrink-0 flex-grow-0 flex hover:opacity-80 rtl:pr-0 rtl:pl-3.5",clearIcon:"bg-multiselect-remove bg-center bg-no-repeat w-3 h-5 py-px box-content inline-block",spinner:"bg-multiselect-spinner bg-center bg-no-repeat w-4 h-4 z-10 mr-3.5 animate-spin flex-shrink-0 flex-grow-0 rtl:mr-0 rtl:ml-3.5",inifite:"flex items-center justify-center w-full",inifiteSpinner:"bg-multiselect-spinner bg-center bg-no-repeat w-4 h-4 z-10 animate-spin flex-shrink-0 flex-grow-0 m-3.5",dropdown:"max-h-60 absolute -left-[2px] -right-[2px] bottom-0 transform translate-y-full border-2 border-zinc-300 -mt-px overflow-y-auto z-50 bg-white flex flex-col rounded-b",dropdownTop:"!-translate-y-full top-px bottom-auto rounded-b-none rounded-t",dropdownHidden:"hidden",options:"flex flex-col p-0 m-0 list-none",optionsTop:"",group:"p-0 m-0",groupLabel:"flex text-sm box-border items-center justify-start text-left py-1 px-3 font-semibold bg-zinc-200 cursor-default leading-normal",groupLabelPointable:"cursor-pointer",groupLabelPointed:"bg-zinc-300 text-zinc-700",groupLabelSelected:"bg-primary-active text-white",groupLabelDisabled:"bg-zinc-100 text-zinc-300 cursor-not-allowed",groupLabelSelectedPointed:"bg-primary-active text-white opacity-90",groupLabelSelectedDisabled:"text-white bg-primary-active bg-opacity-50 cursor-not-allowed",groupOptions:"p-0 m-0",option:"flex items-center justify-start box-border text-left cursor-pointer text-base leading-snug py-2 px-3",optionPointed:"text-zinc-800 bg-zinc-100",optionSelected:"text-white bg-primary",optionDisabled:"text-zinc-300 cursor-not-allowed",optionSelectedPointed:"text-white bg-primary opacity-90",optionSelectedDisabled:"text-green-100 bg-primary bg-opacity-50 cursor-not-allowed",noOptions:"py-2 px-3 text-zinc-600 bg-white text-left",noResults:"py-2 px-3 text-zinc-600 bg-white text-left",fakeInput:"bg-transparent absolute left-0 right-0 -bottom-px w-full h-px border-0 p-0 appearance-none outline-none text-transparent",spacer:"h-9 py-px box-content"};function zE(e){return e in Mn}function jE(e){const t=Object.keys(Mn).find(n=>n.toLowerCase()===e);if(t&&zE(t))return Mn[t]}const WE=["onClick"],qE={key:1,class:"order-2 mt-1.5 flex items-center gap-x-1 text-xs italic text-error","data-test-error-message":""},uh=a.defineComponent({inheritAttrs:!1,__name:"AppSelect",props:{wrapperClasses:{default:void 0},hasError:{type:Boolean},errorMessage:{default:void 0},label:{default:void 0},optionLabel:{default:"name"},fetchOnOpen:{type:Boolean,default:!1},openDirection:{default:"down"},dropdownClasses:{default:void 0},additionalClasses:{default:void 0},labelClasses:{default:void 0}},setup(e){const t=e,n=a.useSlots(),r=a.computed(()=>Object.keys(n).filter(i=>i!=="tag")),o=a.computed(()=>{const i={...Mn};return t.openDirection==="up"&&(i.dropdown=`${Mn.dropdown} ${Mn.dropdownTop}`,i.containerOpen=`${Mn.containerOpenTop}`),t.dropdownClasses&&(i.dropdown=`${i.dropdown} ${t.dropdownClasses}`),Object.entries(t.additionalClasses??{}).forEach(([s,l])=>{s in i&&(i[s]=`${i[s]} ${l}`)}),i});return(i,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(i.wrapperClasses)},[i.label||i.$slots.label?(a.openBlock(),a.createBlock(a.unref(Cu),{key:0,"has-error":i.hasError,class:a.normalizeClass(i.labelClasses)},{default:a.withCtx(()=>[a.renderSlot(i.$slots,"label",{},()=>[a.createTextVNode(a.toDisplayString(i.label),1)])]),_:3},8,["has-error","class"])):a.createCommentVNode("",!0),a.createVNode(a.unref(Su),a.mergeProps({native:!1,classes:o.value},{...i.$attrs,label:t.optionLabel},{onOpen:s[0]||(s[0]=l=>{var u;i.fetchOnOpen&&(l!=null&&l.noOptions)&&((u=l==null?void 0:l.resolveOptions)==null||u.call(l))})}),a.createSlots({tag:a.withCtx(l=>[a.createElementVNode("div",{class:a.normalizeClass(a.unref(Mn).tag)},[a.renderSlot(i.$slots,"tag",a.normalizeProps(a.guardReactiveProps(l)),()=>{var u;return[a.createTextVNode(a.toDisplayString((u=l.option)==null?void 0:u[i.optionLabel]),1)]}),l.disabled?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(a.unref(Mn).tagRemove),onClick:u=>l.handleTagRemove(l.option,u)},[a.createElementVNode("span",{class:a.normalizeClass(a.unref(Mn).tagRemoveIcon)},null,2)],10,WE))],2)]),_:2},[a.renderList(r.value,(l,u)=>({name:l,fn:a.withCtx(c=>[a.renderSlot(i.$slots,l,a.normalizeProps(a.guardReactiveProps({...c||{},classes:a.unref(jE)(l)})))])}))]),1040,["classes"]),i.hasError&&i.errorMessage?(a.openBlock(),a.createElementBlock("p",qE,a.toDisplayString(i.errorMessage),1)):a.createCommentVNode("",!0)],2))}});const Cu=a.defineComponent({__name:"AppInputLabel",props:{disabled:{type:Boolean},hasError:{type:Boolean}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("label",{class:a.normalizeClass([{"text-error":t.hasError,"select-none text-zinc-300":t.disabled},"mb-2 block text-base font-semibold text-black"])},[a.renderSlot(t.$slots,"default")],2))}}),kl={mapId:"161a92b3666d9228",disableDefaultUI:!0,zoom:15},YE={scrollwheel:!1,clickableIcons:!1,keyboardShortcuts:!1,isFractionalZoomEnabled:!1,maxZoom:kl.zoom,minZoom:kl.zoom,disableDoubleClickZoom:!0,fullscreenControl:!1,streetViewControl:!1,gestureHandling:"none",rotateControl:!1,panControl:!1},GE=["inline-flex","justify-center","items-center","rounded-full","bg-primary","text-white","h-12","w-12"];function KE(){const e=document.createElement("div");return e.classList.add(...GE),a.render(a.h(u_),e),e}const XE=a.defineComponent({__name:"AppMaps",props:{withMarker:{type:Boolean,default:!0},disableMarkerClick:{type:Boolean,default:!1},markerLatitude:{default:null},markerLongitude:{default:null},disableUserInteraction:{type:Boolean,default:!1},mapCenterLatitude:{default:null},mapCenterLongitude:{default:null},mapOptions:{default:null}},setup(e){const t=e,n=a.ref(null),r=a.computed(()=>{var u;return t.mapCenterLatitude&&t.mapCenterLongitude?{lat:t.mapCenterLatitude,lng:t.mapCenterLongitude}:((u=t.mapOptions)==null?void 0:u.center)??null}),o=a.computed(()=>t.markerLatitude&&t.markerLongitude?{lat:t.markerLatitude,lng:t.markerLongitude}:r.value);a.watch(t,async()=>{await i()}),a.onMounted(async()=>{if(!(window!=null&&window.google)){console.error("Google not defined. use composable useGoogleApi at setup");return}await i()});async function i(){const{Map:u}=await google.maps.importLibrary("maps");if(n.value instanceof HTMLElement){const c=new u(n.value,{...s(),center:r.value});t.withMarker&&await l(c)}}function s(){let u={...kl};return t.disableUserInteraction&&(u={...u,...YE}),{...u,...t.mapOptions??{}}}async function l(u){const{AdvancedMarkerElement:c}=await google.maps.importLibrary("marker"),f=new c({map:u,position:o.value,content:KE()});t.disableMarkerClick&&!t.disableUserInteraction&&(f.element.classList.add("!cursor-default"),google.maps.event.addListener(f,"click",()=>{}))}return(u,c)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"mapElement",ref:n,class:"h-80 w-full"},null,512))}}),JE={class:"pl-7 text-lg font-semibold md:hidden","data-test-name":""},Sl=a.defineComponent({__name:"NavigationItem",props:{item:{}},setup(e){const t=e,{navigationComponent:n,closeMobileMenu:r}=Ba(),o=a.ref(!1),i=a.computed(()=>o.value||typeof t.item.icon!="string"),s=a.computed(()=>o.value?Kr:t.item.icon);async function l(u){var c,f,p;r(),(c=t.item)!=null&&c.onClick&&(u.preventDefault(),o.value=!0,await Promise.resolve((p=(f=t.item)==null?void 0:f.onClick)==null?void 0:p.call(f)),o.value=!1)}return(u,c)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),{to:u.item.to,href:u.item.href,class:a.normalizeClass([{"md:bg-primary":u.item.active??!1,"!rounded-full":u.item.rounded??!1,"mb-4":!u.item.bottom,"mt-4":u.item.bottom??!1},"flex h-10 w-full cursor-pointer items-center rounded-lg text-center transition-colors md:w-10 md:justify-center md:hover:bg-primary-active"]),onClick:l},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.value?s.value:"span"),{class:a.normalizeClass([{"!h-6":!i.value},"app-navigation-item h-6 w-6 stroke-2 text-black md:h-5 md:w-5 md:text-white"]),size:o.value?"extra-small":void 0,"data-test-icon":""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(i.value?"":u.item.icon),1)]),_:1},8,["class","size"])),a.createElementVNode("span",JE,a.toDisplayString(u.item.name),1)]),_:1},8,["to","href","class"]))}}),Cl=a.defineComponent({__name:"SupportItem",setup(e){const{contactRoute:t,contactIcon:n,navigationComponent:r,closeMobileMenu:o}=Ba();return(i,s)=>a.unref(t)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(r)),{key:0,to:a.unref(r)!=="a"?a.unref(t):void 0,href:a.unref(r)?a.unref(t):void 0,class:"app-support-item fixed bottom-5 right-5 z-50 mt-2 flex h-10 w-10 justify-center rounded-full bg-primary py-2 text-white transition-colors hover:bg-primary-active focus-visible:outline-none","data-test-help-icon":"",onClick:a.unref(o)},{default:a.withCtx(()=>[typeof a.unref(n)=="string"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(a.unref(n)),1)],64)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),{key:1,class:"h-full w-full"}))]),_:1},8,["to","href","onClick"])):a.createCommentVNode("",!0)}}),QE={class:"app-mobile-menu flex h-18 items-center justify-between bg-zinc-50 px-4 text-black md:hidden"},ZE=["onClick"],e2=["innerHTML"],t2={class:"flex w-10 grow-0 justify-end","data-test-avatar-wrapper":""},n2={class:"relative flex h-full w-full flex-1 flex-col bg-white focus:outline-none","data-test-navigation-wrapper":""},r2={class:"h-0 flex-1 overflow-y-auto p-4","data-test-navigation-links-wrapper":""},a2={"aria-label":"MainMenu",class:"mt-5"},o2={class:"mb-auto"},i2=a.defineComponent({__name:"Mobile",setup(e){const{logo:t,avatar:n,navigationItems:r,mobileMenuOpen:o,mobileMenuOpenTransition:i,openMobileMenu:s,closeMobileMenu:l}=Ba(),u=a.computed(()=>o.value?Fi:Qb);function c(){l(),setTimeout(()=>{i.value=!1},100)}function f(){i.value||(s(),i.value=!0)}return(p,h)=>(a.openBlock(),a.createElementBlock("header",QE,[a.createElementVNode("div",{class:"inline-flex w-10 grow-0 cursor-pointer items-center justify-start rounded-sm !py-2 hover:text-primary focus:outline-none","data-test-menu-icon-wrapper":"",onClick:a.withModifiers(f,["stop"])},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.value),{class:"block h-6 w-6 text-black","aria-hidden":"true"}))],8,ZE),a.createElementVNode("div",{class:"flex h-full max-w-[70%] grow justify-center py-4","data-test-logo-wrapper":"",innerHTML:a.unref(t)},null,8,e2),a.createElementVNode("div",t2,[a.unref(n)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),{key:0})):a.createCommentVNode("",!0)]),a.createVNode(a.unref(kt.TransitionRoot),{show:a.unref(o),as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(kt.Dialog),{as:"div",class:"app-mobile-menu-dialog fixed inset-0 top-18 z-50 flex lg:hidden",onClose:c},{default:a.withCtx(()=>[a.createVNode(a.unref(kt.TransitionChild),{as:"template",enter:"transition ease-in-out duration-300 transform","enter-from":"translate-y-full","enter-to":"translate-y-0",leave:"transition ease-in-out duration-300 transform","leave-from":"translate-y-0","leave-to":"translate-y-full"},{default:a.withCtx(()=>[a.createElementVNode("div",n2,[a.createElementVNode("div",r2,[a.createElementVNode("nav",a2,[a.createElementVNode("ul",o2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(r).filter(m=>m.visible!==!1),m=>(a.openBlock(),a.createElementBlock("li",{key:m.name,"data-test-navigation-item":""},[a.createVNode(Sl,{item:m},null,8,["item"])]))),128))])]),a.createVNode(Cl)])])]),_:1})]),_:1})]),_:1},8,["show"]),a.createVNode(Cl)]))}}),s2={class:"mx-auto mb-auto"},l2={class:"mx-auto mt-auto"},u2=a.defineComponent({__name:"AppNavigationMenu",setup(e){const{navigationItems:t,mainMenuOpen:n}=Ba();return(r,o)=>(a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("aside",{class:a.normalizeClass([{"flex-col px-3 md:!w-20":a.unref(n)},"app-navigation-menu sticky top-0 hidden h-screen w-0 justify-center py-5 transition-all duration-500 before:absolute before:-right-8 before:top-0 before:h-8 before:w-8 before:bg-transparent after:absolute after:-right-8 after:bottom-0 after:h-8 after:w-8 after:bg-transparent md:flex md:bg-secondary"]),"data-test-main-menu":""},[a.createElementVNode("ul",s2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(t).filter(i=>i.bottom!==!0&&i.visible!==!1),i=>(a.openBlock(),a.createElementBlock("li",{key:i.name,"data-test-top-navigation-item":""},[a.createVNode(Sl,{item:i},null,8,["item"])]))),128))]),a.createElementVNode("ul",l2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(t).filter(i=>i.bottom&&i.visible!==!1),i=>(a.openBlock(),a.createElementBlock("li",{key:i.name,"data-test-bottom-navigation-item":""},[a.createVNode(Sl,{item:i},null,8,["item"])]))),128)),a.createElementVNode("li",null,[a.createVNode(Cl,{class:"!static"})])])],2),a.createVNode(i2)]))}});const ji=Jn(u2,[["__scopeId","data-v-8287ec08"]]),c2={class:"flex text-sm font-bold"},d2={class:"flex items-center rounded-l-lg bg-indigo-900 px-2 py-1.5 text-white","data-test-country-code":""},ch=a.defineComponent({__name:"AppLicensePlate",props:{license:{default:void 0},country:{default:"NL"},licensePlateClasses:{default:void 0}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",c2,[a.createElementVNode("span",d2,a.toDisplayString(t.country),1),a.createElementVNode("span",{class:a.normalizeClass([t.licensePlateClasses,"w-full rounded-r-lg bg-yellow-400 px-2 py-1.5 uppercase"]),"data-test-license-plate":""},[a.renderSlot(t.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(t.license),1)])],2)]))}}),dh=a.defineComponent({__name:"AppTimelineItemIcon",props:{icon:{type:[Object,Function]}},setup(e){const t=e,n=a.computed(()=>t.icon??xp),r=a.computed(()=>t.icon?["w-full"]:["bg-primary","w-6","h-6","text-white","stroke-3","p-1","z-10","mx-auto","flex","items-center","justify-center","rounded-full"]),o=a.computed(()=>t.icon?["border-primary","border-2","-translate-y-2","h-10","w-10","rounded-full","flex","justify-center","items-center","p-1.5","z-50","bg-white"]:["w-10"]);return(i,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(o.value)},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.value),{class:a.normalizeClass([r.value,"relative"])},null,8,["class"]))],2))}}),f2={class:"relative flex w-full before:absolute before:-top-5 before:left-4.5 before:h-5 before:w-0.5 before:bg-primary after:absolute after:left-4.5 after:h-full after:w-0.5 after:bg-primary first-of-type:before:hidden last-of-type:from-primary last-of-type:to-white last-of-type:after:bg-transparent last-of-type:after:bg-gradient-to-b"},p2={class:"flex"},h2={class:"ml-4"},m2={class:"text-sm font-semibold text-zinc-900","data-test-timeline-title":""},v2={class:"text-base","data-test-timeline-description":""},fh=a.defineComponent({__name:"AppTimelineItem",props:{item:{}},setup(e){const t=e,n=a.computed(()=>t.item.date.toLocaleDateString("nl-NL",{month:"short",day:"numeric",hour:"numeric",minute:"numeric",timeStyle:void 0}));return(r,o)=>(a.openBlock(),a.createElementBlock("article",f2,[a.createElementVNode("div",p2,[a.renderSlot(r.$slots,"icon",{value:r.item.icon},()=>[a.createVNode(dh,{icon:r.item.icon},null,8,["icon"])])]),a.createElementVNode("div",h2,[a.createElementVNode("header",null,[a.createVNode(a.unref(fi),{class:"mb-2"},{default:a.withCtx(()=>[a.renderSlot(r.$slots,"date",{value:n.value},()=>[a.createElementVNode("time",null,a.toDisplayString(n.value)+" uur",1)])]),_:3}),a.createElementVNode("h3",m2,[a.renderSlot(r.$slots,"title",{value:r.item.title},()=>[a.createTextVNode(a.toDisplayString(r.item.title),1)])])]),a.createElementVNode("p",v2,[a.renderSlot(r.$slots,"default",{value:r.item.description},()=>[a.createTextVNode(a.toDisplayString(r.item.description),1)])])])]))}}),g2={class:"space-y-5"},y2=a.defineComponent({__name:"AppTimeline",props:{items:{}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",g2,[a.renderSlot(t.$slots,"default",{},()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.items,r=>(a.openBlock(),a.createBlock(fh,{key:r.title,item:r},null,8,["item"]))),128))])]))}});var b2=Object.defineProperty,_2=Object.defineProperties,w2=Object.getOwnPropertyDescriptors,kd=Object.getOwnPropertySymbols,k2=Object.prototype.hasOwnProperty,S2=Object.prototype.propertyIsEnumerable,Sd=(e,t,n)=>t in e?b2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hn=(e,t)=>{for(var n in t||(t={}))k2.call(t,n)&&Sd(e,n,t[n]);if(kd)for(var n of kd(t))S2.call(t,n)&&Sd(e,n,t[n]);return e},ai=(e,t)=>_2(e,w2(t)),Pr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const C2=e=>(a.pushScopeId("data-v-e0a0b7f0"),e=e(),a.popScopeId(),e),T2=["onClick"],E2=["checked"],x2=C2(()=>a.createElementVNode("label",{for:"checbox"},null,-1)),P2=a.defineComponent({__name:"MultipleSelectCheckBox",props:{status:{type:String,required:!0}},emits:["change"],setup(e,{emit:t}){const n=e;a.useCssVars(s=>({"51ab8a49":a.unref(i)}));const r=a.computed(()=>n.status==="allSelected"),o=()=>{t("change",!r.value)},i=a.inject("themeColor");return(s,l)=>(a.openBlock(),a.createElementBlock("div",{class:"easy-checkbox",onClick:a.withModifiers(o,["stop","prevent"])},[a.createElementVNode("input",{type:"checkbox",checked:a.unref(r),class:a.normalizeClass(e.status)},null,10,E2),x2],8,T2))}});var I2=Pr(P2,[["__scopeId","data-v-e0a0b7f0"]]);const D2=e=>(a.pushScopeId("data-v-7e69a276"),e=e(),a.popScopeId(),e),N2=["checked"],O2=D2(()=>a.createElementVNode("label",{for:"checbox"},null,-1)),B2=a.defineComponent({__name:"SingleSelectCheckBox",props:{checked:{type:Boolean,required:!0}},emits:["change"],setup(e,{emit:t}){a.useCssVars(r=>({fdaf7e9e:a.unref(n)}));const n=a.inject("themeColor");return(r,o)=>(a.openBlock(),a.createElementBlock("div",{class:"easy-checkbox",onClick:o[0]||(o[0]=a.withModifiers(i=>t("change"),["stop","prevent"]))},[a.createElementVNode("input",{type:"checkbox",checked:e.checked},null,8,N2),O2]))}});var M2=Pr(B2,[["__scopeId","data-v-7e69a276"]]);const R2=e=>(a.pushScopeId("data-v-4ca5de3a"),e=e(),a.popScopeId(),e),A2={class:"easy-data-table__rows-selector"},$2={class:"rows-input"},L2=R2(()=>a.createElementVNode("div",{class:"triangle"},null,-1)),V2=["onClick"],F2=a.defineComponent({__name:"RowsSelector",props:{modelValue:{type:Number,required:!0},rowsItems:{type:Array,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;a.useCssVars(p=>({"1b889342":a.unref(f)}));const r=a.ref(!1),o=a.ref(!1),i=a.inject("dataTable");a.watch(r,p=>{if(p&&i){const h=window.innerHeight,m=i.value.getBoundingClientRect().height,y=i.value.getBoundingClientRect().top;h-(m+y)<=100?o.value=!0:o.value=!1}});const s=a.computed({get:()=>n.modelValue,set:p=>{t("update:modelValue",p)}}),l=p=>{s.value=p,r.value=!1},u=(p,h)=>{let m=p.parentNode;for(;m!=null;){if(m.classList&&m.classList.contains(h))return!0;m=m.parentNode}return!1},c=p=>{u(p.target,"easy-data-table__rows-selector")||(r.value=!1)};a.onMounted(()=>{document.addEventListener("click",c)}),a.onBeforeUnmount(()=>{document.removeEventListener("click",c)});const f=a.inject("themeColor");return(p,h)=>(a.openBlock(),a.createElementBlock("div",A2,[a.createElementVNode("div",{class:"rows-input__wrapper",onClick:h[0]||(h[0]=m=>r.value=!r.value)},[a.createElementVNode("div",$2,a.toDisplayString(a.unref(s)),1),L2]),a.createElementVNode("ul",{class:a.normalizeClass(["select-items",{show:r.value,inside:o.value}])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.rowsItems,m=>(a.openBlock(),a.createElementBlock("li",{key:m,class:a.normalizeClass({selected:m===a.unref(s)}),onClick:y=>l(m)},a.toDisplayString(m),11,V2))),128))],2)]))}});var H2=Pr(F2,[["__scopeId","data-v-4ca5de3a"]]);const Wi=e=>(a.pushScopeId("data-v-1fa3a520"),e=e(),a.popScopeId(),e),U2={class:"lds-ring"},z2=Wi(()=>a.createElementVNode("div",null,null,-1)),j2=Wi(()=>a.createElementVNode("div",null,null,-1)),W2=Wi(()=>a.createElementVNode("div",null,null,-1)),q2=Wi(()=>a.createElementVNode("div",null,null,-1)),Y2=[z2,j2,W2,q2],G2=a.defineComponent({__name:"Loading",setup(e){a.useCssVars(n=>({26774109:a.unref(t)}));const t=a.inject("themeColor");return(n,r)=>(a.openBlock(),a.createElementBlock("div",U2,Y2))}});var K2=Pr(G2,[["__scopeId","data-v-1fa3a520"]]);const X2={class:"loader-line"},J2=a.defineComponent({__name:"LoadingLine",setup(e){a.useCssVars(n=>({"0d327f57":a.unref(t)}));const t=a.inject("themeColor");return(n,r)=>(a.openBlock(),a.createElementBlock("div",X2))}});var Q2=Pr(J2,[["__scopeId","data-v-7d281cac"]]);const Z2={class:"buttons-pagination"},ex=["onClick"],tx=a.defineComponent({__name:"ButtonsPagination",props:{maxPaginationNumber:{type:Number,required:!0},currentPaginationNumber:{type:Number,required:!0}},emits:["updatePage"],setup(e,{emit:t}){const n=e;a.useCssVars(l=>({"40dd4f07":a.unref(s)}));const r=7,o=l=>{l.type==="button"&&!l.active&&t("updatePage",l.page)},i=a.computed(()=>{const l=[];if(n.maxPaginationNumber<=r)for(let u=1;u<=n.maxPaginationNumber;u+=1)l.push({type:"button",page:u,active:u===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber});else if([1,2,n.maxPaginationNumber,n.maxPaginationNumber-1].includes(n.currentPaginationNumber))for(let u=1;u<=r;u+=1)if(u<=3)l.push({type:"button",page:u,active:u===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber});else if(u===4)l.push({type:"omission"});else{const c=n.maxPaginationNumber-(r-u);l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber})}else if([3,4].includes(n.currentPaginationNumber))for(let u=1;u<=r;u+=1)u<=5?l.push({type:"button",page:u,active:u===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber}):u===6?l.push({type:"omission"}):l.push({type:"button",page:n.maxPaginationNumber,active:n.maxPaginationNumber===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber});else if([n.maxPaginationNumber-2,n.maxPaginationNumber-3].includes(n.currentPaginationNumber))for(let u=1;u<=r;u+=1)if(u===1)l.push({type:"button",page:1,active:n.currentPaginationNumber===1,activePrev:u+1===n.currentPaginationNumber});else if(u===2)l.push({type:"omission"});else{const c=n.maxPaginationNumber-(r-u);l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber})}else for(let u=1;u<=r;u+=1)if(u===1)l.push({type:"button",page:1,active:n.currentPaginationNumber===1,activePrev:u+1===n.currentPaginationNumber});else if(u===2||u===6)l.push({type:"omission"});else if(u===7)l.push({type:"button",page:n.maxPaginationNumber,active:n.maxPaginationNumber===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber});else{const c=4-u,f=n.currentPaginationNumber-c;l.push({type:"button",page:f,active:f===n.currentPaginationNumber,activePrev:f+1===n.currentPaginationNumber})}return l}),s=a.inject("themeColor");return(l,u)=>(a.openBlock(),a.createElementBlock("div",Z2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(i),(c,f)=>(a.openBlock(),a.createElementBlock("div",{key:f,class:a.normalizeClass(["item",{button:c.type==="button",active:c.type==="button"&&c.active,"active-prev":c.type==="button"&&c.activePrev,omission:c.type==="omission"}]),onClick:p=>o(c)},a.toDisplayString(c.type==="button"?c.page:"..."),11,ex))),128))]))}});var nx=Pr(tx,[["__scopeId","data-v-4c681fa2"]]);const ph=e=>(a.pushScopeId("data-v-c9da5286"),e=e(),a.popScopeId(),e),rx=ph(()=>a.createElementVNode("span",{class:"arrow arrow-right"},null,-1)),ax=[rx],ox=ph(()=>a.createElementVNode("span",{class:"arrow arrow-left"},null,-1)),ix=[ox],sx=a.defineComponent({__name:"PaginationArrows",props:{isFirstPage:{type:Boolean,required:!1},isLastPage:{type:Boolean,required:!1}},emits:["clickPrevPage","clickNextPage"],setup(e,{emit:t}){const n=a.useSlots();return(r,o)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",{class:a.normalizeClass(["previous-page__click-button",{"first-page":e.isFirstPage}]),onClick:o[0]||(o[0]=i=>t("clickPrevPage"))},ax,2),a.unref(n).buttonsPagination?a.renderSlot(r.$slots,"buttonsPagination",{key:0},void 0,!0):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["next-page__click-button",{"last-page":e.isLastPage}]),onClick:o[1]||(o[1]=i=>t("clickNextPage"))},ix,2)],64))}});var lx=Pr(sx,[["__scopeId","data-v-c9da5286"]]);function ux(e,t,n,r){return{clickRow:(i,s,l)=>{if(e.value!==s)return;const u=Hn({},i);if(t.value){const{checkbox:c}=i;delete u.checkbox,u.isSelected=c}if(n.value){const{index:c}=i;delete u.index,u.indexInCurrentPage=c}r("clickRow",u,l)}}}function cx(e,t,n){const r=a.ref([]);return{expandingItemIndexList:r,updateExpandingItemIndexList:(s,l,u)=>{u.stopPropagation();const c=r.value.indexOf(s);if(c!==-1)r.value.splice(c,1);else{const f=e.value.findIndex(p=>JSON.stringify(p)===JSON.stringify(l));n("expandRow",t.value+f,l),r.value.push(t.value+f)}},clearExpandingItemIndexList:()=>{r.value=[]}}}function dx(e){const t=a.computed(()=>e.value.filter(o=>o.fixed)),n=a.computed(()=>t.value.length?t.value[t.value.length-1].value:""),r=a.computed(()=>{if(!t.value.length)return[];const o=t.value.map(i=>{var s;return(s=i.width)!=null?s:100});return t.value.map((i,s)=>{var l,u;return{value:i.value,fixed:(l=i.fixed)!=null?l:!0,width:(u=i.width)!=null?u:100,distance:s===0?0:o.reduce((c,f,p)=>{let h=c;return p<s&&(h+=f),h})}})});return{fixedHeaders:t,lastFixedColumn:n,fixedColumnsInfos:r}}function fx(e,t,n,r,o,i,s,l,u,c,f,p,h,m,y,k,b,w,T){const O=a.computed(()=>s.value.findIndex($=>$.fixed)!==-1),_=a.computed(()=>O.value?s.value.filter($=>$.fixed):[]),B=a.computed(()=>s.value.filter($=>!$.fixed)),C=($,Y)=>Array.isArray($)&&Array.isArray(Y)?{sortBy:$,sortDesc:Y.map(X=>X==="desc")}:$!==""?{sortBy:y.value,sortDesc:k.value==="desc"}:null,I=a.ref(C(y.value,k.value)),F=a.computed(()=>{var $;const X=[..._.value,...B.value].map(S=>{const H=Object.assign(S);if(H.sortable&&(H.sortType="none"),h.value)if(Array.isArray(h.value.sortBy)&&Array.isArray(h.value.sortType)&&h.value.sortBy.includes(H.value)){const Z=h.value.sortBy.indexOf(H.value);H.sortType=h.value.sortType[Z]}else H.value===h.value.sortBy&&h.value.sortType&&(H.sortType=h.value.sortType);if(I.value&&Array.isArray(I.value.sortBy)&&Array.isArray(I.value.sortDesc)&&I.value.sortBy.includes(H.value)){const Z=I.value.sortBy.indexOf(H.value);H.sortType=I.value.sortDesc[Z]?"desc":"asc"}else I.value&&H.value===I.value.sortBy&&(H.sortType=I.value.sortDesc?"desc":"asc");return H});let K=[];l.value?K=[o.value||O.value?{text:"",value:"expand",fixed:!0,width:n.value}:{text:"",value:"expand"},...X]:K=X;let j=[];m.value?j=[i.value||O.value?{text:e.value,value:"index",fixed:!0,width:u.value}:{text:e.value,value:"index"},...K]:j=K;let U=[];return c.value?U=[r.value||O.value?{text:"checkbox",value:"checkbox",fixed:!0,width:($=t.value)!=null?$:36}:{text:"checkbox",value:"checkbox"},...j]:U=j,U}),q=a.computed(()=>F.value.map($=>$.value));return{clientSortOptions:I,headerColumns:q,headersForRender:F,updateSortField:($,Y)=>{let X=null;if(Y==="none"?X="asc":Y==="asc"?X="desc":X=p.value?"asc":null,f.value&&w($,X),I.value&&Array.isArray(I.value.sortBy)&&Array.isArray(I.value.sortDesc)){const K=I.value.sortBy.indexOf($);K===-1?X!==null&&(I.value.sortBy.push($),I.value.sortDesc.push(X==="desc")):X===null?(I.value.sortDesc.splice(K,1),I.value.sortBy.splice(K,1)):I.value.sortDesc[K]=X==="desc"}else X===null?I.value=null:I.value={sortBy:$,sortDesc:X==="desc"};T("updateSort",{sortType:X,sortBy:$})},isMultiSorting:$=>h.value&&Array.isArray(h.value.sortBy)?h.value.sortBy.includes($):I.value&&Array.isArray(I.value.sortBy)?I.value.sortBy.includes($):!1,getMultiSortNumber:$=>h.value&&Array.isArray(h.value.sortBy)?h.value.sortBy.indexOf($)+1:I.value&&Array.isArray(I.value.sortBy)?I.value.sortBy.indexOf($)+1:!1}}function px(e,t,n,r,o,i,s,l,u){const c=a.computed(()=>(e.value-1)*o.value+1),f=a.computed(()=>n.value?Math.min(u.value,e.value*o.value):Math.min(l.value.length,e.value*o.value)),p=a.computed(()=>n.value?r.value:l.value.slice(c.value-1,f.value)),h=a.computed(()=>s.value?p.value.map((k,b)=>Hn({index:c.value+b},k)):p.value),m=a.computed(()=>i.value.length===0||i.value.every(b=>l.value.findIndex(w=>JSON.stringify(b)===JSON.stringify(w))===-1)?"noneSelected":i.value.length===l.value.length&&i.value.every(w=>l.value.findIndex(T=>JSON.stringify(w)===JSON.stringify(T))!==-1)?"allSelected":"partSelected"),y=a.computed(()=>t.value?m.value==="allSelected"?h.value.map(k=>Hn({checkbox:!0},k)):m.value==="noneSelected"?h.value.map(k=>Hn({checkbox:!1},k)):h.value.map(k=>{const b=i.value.findIndex(w=>{const T=Hn({},k);return delete T.index,JSON.stringify(w)===JSON.stringify(T)})!==-1;return Hn({checkbox:b},k)}):h.value);return{currentPageFirstIndex:c,currentPageLastIndex:f,multipleSelectStatus:m,pageItems:y}}function hx(e,t,n,r,o,i,s){const l=a.ref(i.value?i.value.page:e.value),u=a.computed(()=>Math.ceil(r.value/o.value)),c=a.computed(()=>u.value===0||l.value===u.value),f=a.computed(()=>l.value===1);return{currentPaginationNumber:l,maxPaginationNumber:u,isLastPage:c,isFirstPage:f,nextPage:()=>{if(r.value!==0&&!c.value&&!n.value)if(t.value){const k=l.value+1;s(k)}else l.value+=1},prevPage:()=>{if(r.value!==0&&!f.value&&!n.value)if(t.value){const k=l.value-1;s(k)}else l.value-=1},updatePage:k=>{n.value||(t.value?s(k):l.value=k)},updateCurrentPaginationNumber:k=>{l.value=k}}}function mx(e,t,n,r){const o=a.computed(()=>!e.value&&t.value.findIndex(l=>l===r.value)===-1?[r.value,...t.value]:t.value),i=a.ref(n.value?n.value.rowsPerPage:r.value);return{rowsItemsComputed:o,rowsPerPageRef:i,updateRowsPerPage:l=>{i.value=l}}}function vx(e,t,n){const r=a.computed({get:()=>{if(e.value){const{page:l,rowsPerPage:u,sortBy:c,sortType:f}=e.value;return{page:l,rowsPerPage:u,sortBy:c??null,sortType:f??null}}return null},set:l=>{n("update:serverOptions",l)}});return{serverOptionsComputed:r,updateServerOptionsPage:l=>{r.value&&(r.value=ai(Hn({},r.value),{page:l}))},updateServerOptionsSort:(l,u)=>{if(r.value)if(t.value&&Array.isArray(r.value.sortBy)&&Array.isArray(r.value.sortType)){const c=r.value.sortBy.findIndex(f=>f===l);c===-1&&u!==null&&(r.value.sortBy.push(l),r.value.sortType.push(u)),u===null?(r.value.sortBy.splice(c,1),r.value.sortType.splice(c,1)):r.value.sortType[c]=u}else r.value=ai(Hn({},r.value),{sortBy:u!==null?l:null,sortType:u})},updateServerOptionsRowsPerPage:l=>{r.value&&(r.value=ai(Hn({},r.value),{page:1,rowsPerPage:l}))}}}function Xt(e,t){var n;if(e.includes(".")){const r=e.split("."),{length:o}=r;let i,s=0;for(;s<o;){if(s===0)i=t[r[0]];else if(i&&typeof i=="object")i=i[r[s]];else{i="";break}s+=1}return i??""}return(n=t[e])!=null?n:""}function gx(e,t){const n=Xt(e,t);return Array.isArray(n)?n.join(","):n}function yx(e,t,n,r,o,i,s,l,u,c){const f=O=>{if(typeof i.value=="string"&&i.value!=="")return Xt(i.value,O);if(Array.isArray(i.value)){let _="";return i.value.forEach(B=>{_+=Xt(B,O)}),_}return Object.values(O).join(" ")},p=a.computed(()=>{if(!n.value&&s.value!==""){const O=new RegExp(s.value,"i");return r.value.filter(_=>O.test(f(_)))}return r.value}),h=a.computed(()=>{let O=[...p.value];return t.value?(t.value.forEach(_=>{O=O.filter(B=>{const{field:C,comparison:I,criteria:F}=_;if(typeof I=="function")return I(Xt(C,B),F);const q=Xt(C,B);switch(I){case"=":return q===F;case"!=":return q!==F;case">":return q>F;case"<":return q<F;case"<=":return q<=F;case">=":return q>=F;case"between":return q>=Math.min(...F)&&q<=Math.max(...F);case"in":return F.includes(q);default:return q===F}})}),O):p.value});a.watch(h,O=>{t.value&&c("updateFilter",O)},{immediate:!0,deep:!0});function m(O,_,B,C){const I=O[C],F=_[C];return(C===0?B:m(O,_,B,C-1)).sort((W,M)=>{let D=!0;for(let $=0;$<C;$+=1)if(Xt(O[$],W)!==Xt(O[$],M)){D=!1;break}return D?Xt(I,W)<Xt(I,M)?F?1:-1:Xt(I,W)>Xt(I,M)?F?-1:1:0:0})}const y=a.computed(()=>{if(n.value)return r.value;if(e.value===null)return h.value;const{sortBy:O,sortDesc:_}=e.value,B=[...h.value];return u&&Array.isArray(O)&&Array.isArray(_)?O.length===0?B:m(O,_,B,O.length-1):B.sort((C,I)=>Xt(O,C)<Xt(O,I)?_?1:-1:Xt(O,C)>Xt(O,I)?_?-1:1:0)}),k=a.computed(()=>n.value?l.value:y.value.length),b=a.computed({get:()=>{var O;return(O=o.value)!=null?O:[]},set:O=>{c("update:itemsSelected",O)}});return{totalItems:y,selectItemsComputed:b,totalItemsLength:k,toggleSelectAll:O=>{b.value=O?y.value:[],O&&c("selectAll")},toggleSelectItem:O=>{const _=O.checkbox;if(delete O.checkbox,delete O.index,_)b.value=b.value.filter(B=>JSON.stringify(B)!==JSON.stringify(O)),c("deselectRow",O);else{const B=b.value;B.unshift(O),b.value=B,c("selectRow",O)}}}}var bx={alternating:{type:Boolean,default:!1},buttonsPagination:{type:Boolean,default:!1},checkboxColumnWidth:{type:Number,default:null},currentPage:{type:Number,default:1},emptyMessage:{type:String,default:"No Available Data"},expandColumnWidth:{type:Number,default:36},filterOptions:{type:Array,default:null},fixedExpand:{type:Boolean,default:!1},fixedHeader:{type:Boolean,default:!0},fixedCheckbox:{type:Boolean,default:!1},fixedIndex:{type:Boolean,default:!1},headerTextDirection:{type:String,default:"left"},bodyTextDirection:{type:String,default:"left"},hideFooter:{type:Boolean,default:!1},hideRowsPerPage:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},indexColumnWidth:{type:Number,default:60},itemsSelected:{type:Array,default:null},loading:{type:Boolean,default:!1},rowsPerPage:{type:Number,default:25},rowsItems:{type:Array,default:()=>[25,50,100]},rowsPerPageMessage:{type:String,default:"rows per page:"},searchField:{type:[String,Array],default:""},searchValue:{type:String,default:""},serverOptions:{type:Object,default:null},serverItemsLength:{type:Number,default:0},showIndex:{type:Boolean,default:!1},sortBy:{type:[String,Array],default:""},sortType:{type:[String,Array],default:"asc"},multiSort:{type:Boolean,default:!1},tableMinHeight:{type:Number,default:180},tableHeight:{type:Number,default:null},themeColor:{type:String,default:"#42b883"},tableClassName:{type:String,default:""},headerClassName:{type:String,default:""},headerItemClassName:{type:[Function,String],default:""},bodyRowClassName:{type:[Function,String],default:""},bodyExpandRowClassName:{type:[Function,String],default:""},bodyItemClassName:{type:[Function,String],default:""},noHover:{type:Boolean,default:!1},borderCell:{type:Boolean,default:!1},mustSort:{type:Boolean,default:!1},rowsOfPageSeparatorMessage:{type:String,default:"of"},clickEventType:{type:String,default:"single"},clickRowToExpand:{type:Boolean,default:!1},tableNodeId:{type:String,default:""},showIndexSymbol:{type:String,default:"#"},preventContextMenuRow:{type:Boolean,default:!0}};const _x=e=>(a.pushScopeId("data-v-32683533"),e=e(),a.popScopeId(),e),wx=["id"],kx=["onClick"],Sx={key:3,class:"header-text"},Cx={key:5,class:"multi-sort__number"},Tx=["onClick","onDblclick","onContextmenu"],Ex=["onClick"],xx=["colspan"],Px={key:0,class:"vue3-easy-data-table__loading"},Ix=_x(()=>a.createElementVNode("div",{class:"vue3-easy-data-table__loading-mask"},null,-1)),Dx={class:"loading-entity"},Nx={key:1,class:"vue3-easy-data-table__message"},Ox={key:0,class:"vue3-easy-data-table__footer"},Bx={key:0,class:"pagination__rows-per-page"},Mx={class:"pagination__items-index"},Rx=a.defineComponent({__name:"DataTable",props:ai(Hn({},bx),{items:{type:Array,required:!0},headers:{type:Array,required:!0}}),emits:["clickRow","contextmenuRow","selectRow","deselectRow","expandRow","updateSort","updateFilter","update:itemsSelected","update:serverOptions","updatePageItems","updateTotalItems","selectAll"],setup(e,{expose:t,emit:n}){const r=e;a.useCssVars(Se=>({da0d4328:a.unref(V),"3037e504":a.unref(Q)}));const{tableNodeId:o,clickEventType:i,bodyTextDirection:s,checkboxColumnWidth:l,currentPage:u,expandColumnWidth:c,filterOptions:f,fixedCheckbox:p,fixedExpand:h,fixedHeader:m,fixedIndex:y,headers:k,headerTextDirection:b,indexColumnWidth:w,items:T,itemsSelected:O,loading:_,mustSort:B,multiSort:C,rowsItems:I,rowsPerPage:F,searchField:q,searchValue:W,serverItemsLength:M,serverOptions:D,showIndex:$,sortBy:Y,sortType:X,tableHeight:K,tableMinHeight:j,themeColor:U,rowsOfPageSeparatorMessage:S,showIndexSymbol:H,preventContextMenuRow:Z}=a.toRefs(r),Q=a.computed(()=>K.value?`${K.value}px`:null),V=a.computed(()=>`${j.value}px`);a.provide("themeColor",U.value);const E=a.useSlots(),P=a.computed(()=>!!E.pagination),R=a.computed(()=>!!E.loading),G=a.computed(()=>!!E.expand),ie=a.computed(()=>!!E.body),oe=a.ref(),Ie=a.ref();a.provide("dataTable",oe);const Ee=a.ref(!1);a.onMounted(()=>{Ie.value.addEventListener("scroll",()=>{Ee.value=Ie.value.scrollLeft>0})});const fe=a.computed(()=>O.value!==null),Be=a.computed(()=>D.value!==null),{serverOptionsComputed:$e,updateServerOptionsPage:ze,updateServerOptionsSort:Ge,updateServerOptionsRowsPerPage:Ke}=vx(D,C,n),{clientSortOptions:ve,headerColumns:Qe,headersForRender:Te,updateSortField:se,isMultiSorting:ce,getMultiSortNumber:me}=fx(H,l,c,p,h,y,k,G,w,fe,Be,B,$e,$,Y,X,C,Ge,n),{rowsItemsComputed:Pt,rowsPerPageRef:xe,updateRowsPerPage:Mt}=mx(Be,I,D,F),{totalItems:Ut,selectItemsComputed:Rt,totalItemsLength:zt,toggleSelectAll:kn,toggleSelectItem:Sn}=yx(ve,f,Be,T,O,q,W,M,C,n),{currentPaginationNumber:Et,maxPaginationNumber:L,isLastPage:N,isFirstPage:ee,nextPage:re,prevPage:ge,updatePage:we,updateCurrentPaginationNumber:qe}=hx(u,Be,_,zt,xe,D,ze),{currentPageFirstIndex:J,currentPageLastIndex:le,multipleSelectStatus:Le,pageItems:De}=px(Et,fe,Be,T,xe,Rt,$,Ut,zt),st=a.computed(()=>Et.value===0?0:(Et.value-1)*xe.value),{expandingItemIndexList:pe,updateExpandingItemIndexList:mt,clearExpandingItemIndexList:Me}=cx(De,st,n),{fixedHeaders:ln,lastFixedColumn:At,fixedColumnsInfos:Va}=dx(Te),{clickRow:Zn}=ux(i,fe,$,n),Fa=(Se,jt)=>{Z.value&&jt.preventDefault(),n("contextmenuRow",Se,jt)},rn=Se=>{var jt;const be=(jt=Se.width)!=null?jt:ln.value.length?100:null;if(be)return`width: ${be}px; min-width: ${be}px;`},Qr=(Se,jt="th")=>{if(!ln.value.length)return;const be=Va.value.find(vt=>vt.value===Se);if(be)return`left: ${be.distance}px;z-index: ${jt==="th"?3:1};position: sticky;`};return a.watch(_,(Se,jt)=>{$e.value&&Se===!1&&jt===!0&&(qe($e.value.page),Me())}),a.watch(xe,Se=>{Be.value?Ke(Se):we(1)}),a.watch([W,f],()=>{Be.value||we(1)}),a.watch([Et,ve,q,W,f],()=>{Me()},{deep:!0}),a.watch(De,Se=>{n("updatePageItems",Se)},{deep:!0}),a.watch(Ut,Se=>{n("updateTotalItems",Se)},{deep:!0}),t({currentPageFirstIndex:J,currentPageLastIndex:le,clientItemsLength:zt,maxPaginationNumber:L,currentPaginationNumber:Et,isLastPage:N,isFirstPage:ee,nextPage:re,prevPage:ge,updatePage:we,rowsPerPageOptions:Pt,rowsPerPageActiveOption:xe,updateRowsPerPageActiveOption:Mt}),(Se,jt)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"dataTable",ref:oe,class:a.normalizeClass(["vue3-easy-data-table",[Se.tableClassName]])},[a.createElementVNode("div",{ref_key:"tableBody",ref:Ie,class:a.normalizeClass(["vue3-easy-data-table__main",{"fixed-header":a.unref(m),"fixed-height":a.unref(K),"show-shadow":Ee.value,"table-fixed":a.unref(ln).length,hoverable:!Se.noHover,"border-cell":Se.borderCell}])},[a.createElementVNode("table",{id:a.unref(o)},[a.createElementVNode("colgroup",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Te),(be,vt)=>(a.openBlock(),a.createElementBlock("col",{key:vt,style:a.normalizeStyle(rn(be))},null,4))),128))]),a.unref(E)["customize-headers"]?a.renderSlot(Se.$slots,"customize-headers",{key:0},void 0,!0):a.unref(Te).length&&!Se.hideHeader?(a.openBlock(),a.createElementBlock("thead",{key:1,class:a.normalizeClass(["vue3-easy-data-table__header",[Se.headerClassName]])},[a.createElementVNode("tr",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Te),(be,vt)=>(a.openBlock(),a.createElementBlock("th",{key:vt,class:a.normalizeClass([{sortable:be.sortable,none:be.sortable&&be.sortType==="none",desc:be.sortable&&be.sortType==="desc",asc:be.sortable&&be.sortType==="asc",shadow:be.value===a.unref(At)},typeof Se.headerItemClassName=="string"?Se.headerItemClassName:Se.headerItemClassName(be,vt+1)]),style:a.normalizeStyle(Qr(be.value)),onClick:a.withModifiers(it=>be.sortable&&be.sortType?a.unref(se)(be.value,be.sortType):null,["stop"])},[be.text==="checkbox"?(a.openBlock(),a.createBlock(I2,{key:a.unref(Le),status:a.unref(Le),onChange:a.unref(kn)},null,8,["status","onChange"])):(a.openBlock(),a.createElementBlock("span",{key:1,class:a.normalizeClass(["header",`direction-${a.unref(b)}`])},[a.unref(E)[`header-${be.value}`]?a.renderSlot(Se.$slots,`header-${be.value}`,a.normalizeProps(a.mergeProps({key:0},be)),void 0,!0):a.unref(E)[`header-${be.value.toLowerCase()}`]?a.renderSlot(Se.$slots,`header-${be.value.toLowerCase()}`,a.normalizeProps(a.mergeProps({key:1},be)),void 0,!0):a.unref(E).header?a.renderSlot(Se.$slots,"header",a.normalizeProps(a.mergeProps({key:2},be)),void 0,!0):(a.openBlock(),a.createElementBlock("span",Sx,a.toDisplayString(be.text),1)),be.sortable?(a.openBlock(),a.createElementBlock("i",{key:be.sortType?be.sortType:"none",class:a.normalizeClass(["sortType-icon",{desc:be.sortType==="desc"}])},null,2)):a.createCommentVNode("",!0),a.unref(C)&&a.unref(ce)(be.value)?(a.openBlock(),a.createElementBlock("span",Cx,a.toDisplayString(a.unref(me)(be.value)),1)):a.createCommentVNode("",!0)],2))],14,kx))),128))])],2)):a.createCommentVNode("",!0),a.unref(ie)?a.renderSlot(Se.$slots,"body",a.normalizeProps(a.mergeProps({key:2},a.unref(De))),void 0,!0):a.unref(Qe).length?(a.openBlock(),a.createElementBlock("tbody",{key:3,class:a.normalizeClass(["vue3-easy-data-table__body",{"row-alternation":Se.alternating}])},[a.renderSlot(Se.$slots,"body-prepend",a.normalizeProps(a.guardReactiveProps({items:a.unref(De),pagination:{isFirstPage:a.unref(ee),isLastPage:a.unref(N),currentPaginationNumber:a.unref(Et),maxPaginationNumber:a.unref(L),nextPage:a.unref(re),prevPage:a.unref(ge)},headers:a.unref(Te)})),void 0,!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(De),(be,vt)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:vt},[a.createElementVNode("tr",{class:a.normalizeClass([{"even-row":(vt+1)%2===0},typeof Se.bodyRowClassName=="string"?Se.bodyRowClassName:Se.bodyRowClassName(be,vt+1)]),onClick:it=>{a.unref(Zn)(be,"single",it),Se.clickRowToExpand&&a.unref(mt)(vt+a.unref(st),be,it)},onDblclick:it=>{a.unref(Zn)(be,"double",it)},onContextmenu:it=>{Fa(be,it)}},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Qe),(it,er)=>(a.openBlock(),a.createElementBlock("td",{key:er,style:a.normalizeStyle(Qr(it,"td")),class:a.normalizeClass([{shadow:it===a.unref(At),"can-expand":it==="expand"},typeof Se.bodyItemClassName=="string"?Se.bodyItemClassName:Se.bodyItemClassName(it,vt+1),`direction-${a.unref(s)}`]),onClick:Gt=>it==="expand"?a.unref(mt)(vt+a.unref(st),be,Gt):null},[a.unref(E)[`item-${it}`]?a.renderSlot(Se.$slots,`item-${it}`,a.normalizeProps(a.mergeProps({key:0},be)),void 0,!0):a.unref(E)[`item-${it.toLowerCase()}`]?a.renderSlot(Se.$slots,`item-${it.toLowerCase()}`,a.normalizeProps(a.mergeProps({key:1},be)),void 0,!0):it==="expand"?(a.openBlock(),a.createElementBlock("i",{key:2,class:a.normalizeClass(["expand-icon",{expanding:a.unref(pe).includes(a.unref(st)+vt)}])},null,2)):it==="checkbox"?(a.openBlock(),a.createBlock(M2,{key:3,checked:be[it],onChange:Gt=>a.unref(Sn)(be)},null,8,["checked","onChange"])):a.unref(E).item?a.renderSlot(Se.$slots,"item",a.normalizeProps(a.mergeProps({key:4},{column:it,item:be})),void 0,!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:5},[a.createTextVNode(a.toDisplayString(a.unref(gx)(it,be)),1)],64))],14,Ex))),128))],42,Tx),a.unref(G)&&a.unref(pe).includes(vt+a.unref(st))?(a.openBlock(),a.createElementBlock("tr",{key:0,class:a.normalizeClass([{"even-row":(vt+1)%2===0},typeof Se.bodyExpandRowClassName=="string"?Se.bodyExpandRowClassName:Se.bodyExpandRowClassName(be,vt+1)])},[a.createElementVNode("td",{colspan:a.unref(Te).length,class:"expand"},[be.expandLoading?(a.openBlock(),a.createBlock(Q2,{key:0,class:"expand-loading"})):a.createCommentVNode("",!0),a.renderSlot(Se.$slots,"expand",a.normalizeProps(a.guardReactiveProps(be)),void 0,!0)],8,xx)],2)):a.createCommentVNode("",!0)],64))),128)),a.renderSlot(Se.$slots,"body-append",a.normalizeProps(a.guardReactiveProps({items:a.unref(De),pagination:{isFirstPage:a.unref(ee),isLastPage:a.unref(N),currentPaginationNumber:a.unref(Et),maxPaginationNumber:a.unref(L),nextPage:a.unref(re),prevPage:a.unref(ge),updatePage:a.unref(we)},headers:a.unref(Te)})),void 0,!0)],2)):a.createCommentVNode("",!0)],8,wx),a.unref(_)?(a.openBlock(),a.createElementBlock("div",Px,[Ix,a.createElementVNode("div",Dx,[a.unref(R)?a.renderSlot(Se.$slots,"loading",{key:0},void 0,!0):(a.openBlock(),a.createBlock(K2,{key:1}))])])):a.createCommentVNode("",!0),!a.unref(De).length&&!a.unref(_)?(a.openBlock(),a.createElementBlock("div",Nx,[a.renderSlot(Se.$slots,"empty-message",{},()=>[a.createTextVNode(a.toDisplayString(Se.emptyMessage),1)],!0)])):a.createCommentVNode("",!0)],2),Se.hideFooter?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",Ox,[Se.hideRowsPerPage?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",Bx,[a.createTextVNode(a.toDisplayString(Se.rowsPerPageMessage)+" ",1),a.createVNode(H2,{modelValue:a.unref(xe),"onUpdate:modelValue":jt[0]||(jt[0]=be=>a.isRef(xe)?xe.value=be:null),"rows-items":a.unref(Pt)},null,8,["modelValue","rows-items"])])),a.createElementVNode("div",Mx,a.toDisplayString(`${a.unref(J)}–${a.unref(le)}`)+" "+a.toDisplayString(a.unref(S))+" "+a.toDisplayString(a.unref(zt)),1),a.unref(P)?a.renderSlot(Se.$slots,"pagination",a.normalizeProps(a.mergeProps({key:1},{isFirstPage:a.unref(ee),isLastPage:a.unref(N),currentPaginationNumber:a.unref(Et),maxPaginationNumber:a.unref(L),nextPage:a.unref(re),prevPage:a.unref(ge)})),void 0,!0):(a.openBlock(),a.createBlock(lx,{key:2,"is-first-page":a.unref(ee),"is-last-page":a.unref(N),onClickNextPage:a.unref(re),onClickPrevPage:a.unref(ge)},a.createSlots({_:2},[Se.buttonsPagination?{name:"buttonsPagination",fn:a.withCtx(()=>[a.createVNode(nx,{"current-pagination-number":a.unref(Et),"max-pagination-number":a.unref(L),onUpdatePage:a.unref(we)},null,8,["current-pagination-number","max-pagination-number","onUpdatePage"])]),key:"0"}:void 0]),1032,["is-first-page","is-last-page","onClickNextPage","onClickPrevPage"]))]))],2))}});var hh=Pr(Rx,[["__scopeId","data-v-32683533"]]);typeof window<"u"&&window.Vue&&window.Vue.createApp({}).component("Vue3EasyDataTable",hh);const Ax={class:"relative z-50 -mt-20 w-full -translate-y-0.5 rounded-2xl bg-white px-4 py-3 shadow"},$x={class:"my-[3px] flex w-full flex-col justify-between space-y-2 md:flex-row"},Lx={class:"items-center sm:flex","data-test-results":""},Vx={key:0,class:"flex w-full items-center md:mr-4 md:space-x-2"},Fx=a.createElementVNode("div",{class:"hidden md:block"}," Tonen ",-1),Hx={class:"hidden whitespace-nowrap md:flex","data-test-results-count":""},Ux=a.defineComponent({__name:"AppDataTableFooter",props:{dataTable:{},currentPage:{}},emits:["nextPage","previousPage","updatePage"],setup(e,{emit:t}){const n=e,r=a.computed(()=>n.dataTable),o=a.computed(()=>{var p;return((p=r.value)==null?void 0:p.clientItemsLength)??0}),i=a.computed(()=>{var p;return(p=r.value)==null?void 0:p.maxPaginationNumber}),s=a.computed(()=>{var p;return n.currentPage??((p=r.value)==null?void 0:p.currentPaginationNumber)});function l(){t("nextPage")}function u(){t("previousPage")}function c(p){t("updatePage",p)}function f(){t("updatePage",1)}return(p,h)=>(a.openBlock(),a.createElementBlock("div",Ax,[a.createElementVNode("div",$x,[a.createElementVNode("div",Lx,[r.value?(a.openBlock(),a.createElementBlock("div",Vx,[Fx,a.createVNode(a.unref(uh),{modelValue:r.value.rowsPerPageActiveOption,"onUpdate:modelValue":h[0]||(h[0]=m=>r.value.rowsPerPageActiveOption=m),"can-clear":!1,"can-deselect":!1,options:r.value.rowsPerPageOptions,"additional-classes":{singleLabel:"!p-3",caret:"!mr-2"},"open-direction":"up","wrapper-classes":"w-full",class:"h-10 w-full md:w-20",onChange:f},null,8,["modelValue","options"])])):a.createCommentVNode("",!0),a.createElementVNode("div",Hx,[a.renderSlot(p.$slots,"results",{results:o.value},()=>[a.createTextVNode(a.toDisplayString(o.value)+" results ",1)])])]),o.value>0?(a.openBlock(),a.createBlock(a.unref(mh),{key:0,"current-page":s.value,"last-page":i.value,onPaginate:c,onNextPage:l,onPreviousPage:u},null,8,["current-page","last-page"])):a.createCommentVNode("",!0)])]))}}),zx=a.defineComponent({inheritAttrs:!1,__name:"AppDataTable",props:{headers:{},items:{},modelValue:{},currentPage:{},rowItems:{default:()=>[20,50,100,200,500]},rowsPerPage:{default:50},actionBarSelection:{type:Boolean,default:!0},actionBarSelectionKey:{default:"id"}},emits:["update:modelValue","updatePage","clickItem"],setup(e,{expose:t,emit:n}){const r=e,o=a.useSlots(),i=qi(),s=ui.useKeyModifier("Alt"),l=ui.useKeyModifier("Shift"),u=a.ref(),c=a.ref((r==null?void 0:r.modelValue)??void 0),f=a.computed(()=>u.value);a.watch(()=>c.value,w=>{c.value&&n("update:modelValue",[...w.map(T=>T==null?void 0:T[r.actionBarSelectionKey])])}),a.onMounted(()=>{r!=null&&r.modelValue&&a.watch(r.modelValue,w=>{c.value=w})});function p(w){if(!w&&r.actionBarSelection){i.setSelection(c.value.map(T=>T==null?void 0:T[r.actionBarSelectionKey]));return}w&&r.actionBarSelection&&i.setSelection(w.map(T=>T==null?void 0:T[r.actionBarSelectionKey]))}function h(w){var T;(T=f.value)==null||T.updatePage(w),n("updatePage",w)}function m(){var w,T;(w=f.value)==null||w.prevPage(),n("updatePage",(((T=f.value)==null?void 0:T.currentPaginationNumber)??2)-1)}function y(){var w,T;(w=f.value)==null||w.nextPage(),n("updatePage",(((T=f.value)==null?void 0:T.currentPaginationNumber)??0)+1)}function k(w){if(s.value&&c.value!==void 0){const T=c.value.findIndex(O=>O.id===w.id);if(T>-1){c.value.splice(T,1),p();return}c.value.push({...w,isSelected:void 0}),p();return}n("clickItem",w)}function b(w){var T;if(l&&c.value&&((T=c.value??[])==null?void 0:T.length)>1){const O=r.items.findIndex(B=>{var C,I;return B.id===((I=(C=c.value)==null?void 0:C[(c.value??[]).length-1])==null?void 0:I.id)}),_=r.items.findIndex(B=>B.id===w.id);r.items.slice(O,_).forEach(B=>{c.value.findIndex(I=>I.id===B.id)===-1&&c.value.push({...B,isSelected:void 0})}),p()}}return t({dataTableInstance:f}),i.onResetSelection.value=w=>{(r==null?void 0:r.modelValue)!==void 0&&(c.value=w)},(w,T)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"app-table-without-selection":(r==null?void 0:r.modelValue)===void 0},"app-data-table-wrapper"])},[a.createVNode(a.unref(hh),a.mergeProps({ref_key:"dataTable",ref:u},{...w.$props,...w.$attrs},{"items-selected":c.value,"onUpdate:itemsSelected":[T[0]||(T[0]=O=>c.value=O),p],"hide-footer":!0,headers:w.headers,"checkbox-column-width":30,"rows-items":w.rowItems,"rows-per-page":w.rowsPerPage,"body-row-class-name":"drop-shadow rounded-xl",onClickRow:k,onSelectRow:b}),a.createSlots({loading:a.withCtx(()=>[a.createVNode(a.unref(Kr),{size:"medium"})]),_:2},[a.renderList(Object.keys(a.unref(o)),(O,_)=>({name:O,fn:a.withCtx(B=>[a.renderSlot(w.$slots,O,a.normalizeProps(a.guardReactiveProps(B)))])}))]),1040,["items-selected","headers","rows-items","rows-per-page"]),f.value?(a.openBlock(),a.createBlock(Ux,{key:0,"data-table":f.value,"current-page":w.currentPage,onNextPage:y,onPreviousPage:m,onUpdatePage:h},{results:a.withCtx(({results:O})=>[a.renderSlot(w.$slots,"footer-results",{results:O})]),_:3},8,["data-table","current-page"])):a.createCommentVNode("",!0)],2))}});const jx={default:["text-white"],danger:["text-red-500"]},Wx=a.defineComponent({__name:"AppActionBarItem",props:{action:{}},setup(e){const t=e,n=qi(),r=a.ref(null),o=a.ref(!1),i=a.ref(!1),s=a.computed(()=>i.value?Kr:o.value?Cp:t.action.icon),l=a.computed(()=>t.action.type??"default");async function u(){var c,f,p;if(t.action.confirm&&!o.value){o.value=!0;return}i.value=!0,o.value=!1,await((f=(c=t.action).onClick)==null?void 0:f.call(c)),i.value=!1,(((p=t.action)==null?void 0:p.resetSelection)??!0)&&n.resetSelection()}return ui.onClickOutside(r,()=>{o.value=!1}),(c,f)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"actionBarItem",ref:r,class:a.normalizeClass([a.unref(jx)[l.value],"cursor-pointer px-3 py-4 hover:bg-black-100/20"]),onClick:u},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s.value),{class:a.normalizeClass([{"text-yellow-600":o.value},"h-5 w-5"]),size:"small"},null,8,["class"]))],2))}}),qx={class:"flex py-4.5 text-sm"},Yx={class:"w-28 whitespace-nowrap pl-2","data-test-selection-text":""},Gx={class:"flex"},Tu=a.defineComponent({__name:"AppActionBar",setup(e){const{selection:t,actions:n,isOpen:r,close:o,resetSelection:i,selectionText:s}=qi(),l=a.ref([1]),u=a.computed(()=>s.value.replace(":selection",String(t.value.length)));function c(){l.value=[1],i()}function f(){i(),o()}return ui.onKeyStroke(["Escape"],p=>{p.preventDefault(),f()}),(p,h)=>{const m=a.resolveDirective("tippy");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"!translate-y-0":a.unref(t).length>0&&a.unref(r)},"fixed inset-x-0 top-0 z-100 -mt-14 flex h-14 -translate-y-24 items-center justify-between bg-secondary px-4 text-white transition-all ease-in-out md:sticky"])},[a.createElementVNode("div",qx,[a.createVNode(lh,{modelValue:l.value,"onUpdate:modelValue":h[0]||(h[0]=y=>l.value=y),value:1,type:"checkbox",onChange:c},null,8,["modelValue"]),a.createElementVNode("div",Yx,a.toDisplayString(u.value),1)]),a.createElementVNode("div",Gx,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(n),(y,k)=>a.withDirectives((a.openBlock(),a.createBlock(Wx,{key:`action-item-${k}`,action:y},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(y.icon),1)]),_:2},1032,["action"])),[[m,y.name]])),128))]),a.createElementVNode("div",null,[a.createVNode(a.unref(Fi),{class:"h-5 w-5 cursor-pointer",onClick:f})])],2)}}}),Ys=a.defineComponent({__name:"AppPaginationItem",props:{as:{type:[String,Object,Function],default:"a"},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e){return(t,n)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.as),{class:a.normalizeClass([{"-ml-px !border-primary bg-primary text-white hover:!bg-primary":t.active,"border-y !border-y-zinc-300 !bg-zinc-100 !text-zinc-300":t.disabled,"hover:border-y hover:border-zinc-300 hover:bg-zinc-100":t.as==="a"},"-my-px flex items-center border-y border-r border-y-transparent border-r-zinc-300 px-3 py-1 last:border-r-0"])},{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default")]),_:3},8,["class"]))}}),Kx={class:"flex items-center justify-between border-zinc-200 sm:px-6"},Xx=a.createElementVNode("span",{class:"sr-only"},"previous",-1),Jx=a.createElementVNode("span",{class:"sr-only"},"next",-1),mh=a.defineComponent({__name:"AppPagination",props:{meta:{default:void 0},currentPage:{default:void 0},lastPage:{default:void 0},loaded:{type:Boolean,default:!0}},emits:["paginate","nextPage","previousPage"],setup(e,{emit:t}){const n=e,r=a.ref(2),o=a.computed(()=>{var h,m;return((m=(h=n.meta)==null?void 0:h.meta)==null?void 0:m.currentPage)??n.currentPage??1}),i=a.computed(()=>{var h,m;return((m=(h=n.meta)==null?void 0:h.meta)==null?void 0:m.lastPage)??n.lastPage??1}),s=a.computed(()=>{const h=o.value-r.value;return h>0?h:1}),l=a.computed(()=>{const h=o.value+r.value;return h<i.value?h:i.value}),u=a.computed(()=>{const h=o.value-1;return h>0?h:null}),c=a.computed(()=>{const h=o.value+1;return h<=i.value?h:null}),f=a.computed(()=>{const h=[];s.value>1&&(h.push(1),s.value>2&&h.push(0));for(let m=s.value;m<=l.value;m+=1)h.push(m);return l.value<i.value&&(l.value+1!==i.value&&h.push(0),h.push(i.value)),h});function p(h){h&&t("paginate",h)}return(h,m)=>(a.openBlock(),a.createElementBlock("div",Kx,[a.createElementVNode("div",null,[a.createElementVNode("nav",{class:a.normalizeClass([{"pointer-events-none opacity-50":!h.loaded},"flex rounded-lg border border-zinc-300"]),"aria-label":"Pagination"},[a.createVNode(Ys,{disabled:u.value===null,href:"#",class:"rounded-l-lg",onClick:m[0]||(m[0]=a.withModifiers(()=>t("previousPage"),["prevent"]))},{default:a.withCtx(()=>[Xx,a.createVNode(a.unref(Ip),{class:"-mx-1.5 h-5 w-5 stroke-2","aria-hidden":"true"})]),_:1},8,["disabled"]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.value,y=>(a.openBlock(),a.createBlock(Ys,{key:`pagination-${y}`,as:y?"a":"span",active:y===o.value,href:"#",onClick:a.withModifiers(()=>p(y),["prevent"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(y||"..."),1)]),_:2},1032,["as","active","onClick"]))),128)),a.createVNode(Ys,{class:a.normalizeClass([{"cursor-not-allowed":c.value===null},"rounded-r-lg"]),disabled:c.value===null,href:"#",onClick:m[1]||(m[1]=a.withModifiers(()=>t("nextPage"),["prevent"]))},{default:a.withCtx(()=>[Jx,a.createVNode(a.unref(Zb),{class:"-mx-1.5 h-5 w-5 stroke-2","aria-hidden":"true"})]),_:1},8,["class","disabled"])],2)])]))}}),Qx=["aria-checked","disabled"],Zx=a.createElementVNode("span",{"aria-hidden":"true",class:"pointer-events-none inline-block h-5 w-5 translate-x-0 rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out group-aria-checked:!translate-x-6","data-test-handle":""},null,-1),eP=[Zx],tP=a.defineComponent({__name:"AppToggle",props:a.mergeModels({disabled:{type:Boolean,default:!1}},{modelValue:{type:Boolean,required:!1}}),emits:["update:modelValue"],setup(e){const t=e,n=a.useModel(e,"modelValue");function r(){t.disabled||(n.value=!n.value)}return(o,i)=>(a.openBlock(),a.createElementBlock("button",{"aria-checked":n.value,disabled:o.disabled,type:"button",class:"group relative inline-flex h-6 w-12 shrink-0 cursor-pointer rounded-full border-2 border-transparent bg-zinc-200 transition-colors duration-200 ease-in-out disabled:cursor-not-allowed disabled:opacity-60 aria-checked:bg-primary",role:"switch",onClick:r},eP,8,Qx))}}),Gs={instances:a.ref([])};function Cd(e){var t,n;(t=e==null?void 0:e.instance)==null||t.unmount(),(n=e==null?void 0:e.element)==null||n.remove()}function nP(){async function e(n){window.scrollTo(0,0);const r=document.createElement("div");document.body.append(r);let o=null;return new Promise(i=>{o=a.createApp(Dp,{...n,onClose:i}),o.mount(r),Gs.instances.value.push({instance:o,element:r})}).finally(()=>{o&&setTimeout(()=>{Cd({instance:o,element:r})},500)})}async function t(){return Gs.instances.value.forEach(n=>Cd(n)),Promise.resolve()}return{...Gs,open:e,close:t}}const Td={instances:a.ref([])};function Ed(e){var t,n;(t=e==null?void 0:e.instance)==null||t.unmount(),(n=e==null?void 0:e.element)==null||n.remove()}function rP(e,t){const n=a.ref();async function r(i){t&&(t.content=e),window.scrollTo(0,0);const s=document.createElement("div");document.body.append(s);let l=null,u=null;return new Promise(c=>{a.isRef(e)?u=e.value:(l=a.createApp(Np,{...t,...i,onClose:f=>{var p;(p=t==null?void 0:t.onClose)==null||p.call(t),c(f)}}),u=l.mount(s)),u.open(),n.value={ref:u,instance:l,element:s},Td.instances.value.push(n.value)}).finally(()=>{l&&setTimeout(()=>{Ed({ref:u,instance:l,element:s})},500)})}async function o(){var i;return(i=n.value)==null||i.ref.close(),setTimeout(()=>{n.value&&Ed(n.value)},300),Promise.resolve()}return{...Td,instance:n,open:r,close:o}}const nr={selection:a.ref([]),actions:a.ref([]),isOpen:a.ref(!1),onResetSelection:a.ref(),selectionText:a.ref(":selection selected")};function qi(){function e(s){nr.selection.value=s,i()}function t(s){nr.actions.value=s,i()}function n(){var s,l;nr.selection.value.splice(0),(l=(s=nr.onResetSelection).value)==null||l.call(s,nr.selection.value)}function r(s){nr.selectionText.value=s}function o(){nr.isOpen.value=!1}function i(){nr.isOpen.value=!0}return{...nr,resetSelection:n,setSelection:e,setSelectionText:r,setActions:t,open:i,close:o}}function Tl(e){"@babel/helpers - typeof";return Tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tl(e)}function Ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ht(e,t,n){return t&&xd(e.prototype,t),n&&xd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yo(){return yo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yo.apply(this,arguments)}function pn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&El(e,t)}function wi(e){return wi=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wi(e)}function El(e,t){return El=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},El(e,t)}function aP(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function oP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iP(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oP(e)}function hn(e){var t=aP();return function(){var r=wi(e),o;if(t){var i=wi(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return iP(this,o)}}var Eu=function(){function e(){Ft(this,e)}return Ht(e,[{key:"listenForWhisper",value:function(n,r){return this.listen(".client-"+n,r)}},{key:"notification",value:function(n){return this.listen(".Illuminate\\Notifications\\Events\\BroadcastNotificationCreated",n)}},{key:"stopListeningForWhisper",value:function(n,r){return this.stopListening(".client-"+n,r)}}]),e}(),vh=function(){function e(t){Ft(this,e),this.namespace=t}return Ht(e,[{key:"format",value:function(n){return n.charAt(0)==="."||n.charAt(0)==="\\"?n.substr(1):(this.namespace&&(n=this.namespace+"."+n),n.replace(/\./g,"\\"))}},{key:"setNamespace",value:function(n){this.namespace=n}}]),e}(),Yi=function(e){pn(n,e);var t=hn(n);function n(r,o,i){var s;return Ft(this,n),s=t.call(this),s.name=o,s.pusher=r,s.options=i,s.eventFormatter=new vh(s.options.namespace),s.subscribe(),s}return Ht(n,[{key:"subscribe",value:function(){this.subscription=this.pusher.subscribe(this.name)}},{key:"unsubscribe",value:function(){this.pusher.unsubscribe(this.name)}},{key:"listen",value:function(o,i){return this.on(this.eventFormatter.format(o),i),this}},{key:"listenToAll",value:function(o){var i=this;return this.subscription.bind_global(function(s,l){if(!s.startsWith("pusher:")){var u=i.options.namespace.replace(/\./g,"\\"),c=s.startsWith(u)?s.substring(u.length+1):"."+s;o(c,l)}}),this}},{key:"stopListening",value:function(o,i){return i?this.subscription.unbind(this.eventFormatter.format(o),i):this.subscription.unbind(this.eventFormatter.format(o)),this}},{key:"stopListeningToAll",value:function(o){return o?this.subscription.unbind_global(o):this.subscription.unbind_global(),this}},{key:"subscribed",value:function(o){return this.on("pusher:subscription_succeeded",function(){o()}),this}},{key:"error",value:function(o){return this.on("pusher:subscription_error",function(i){o(i)}),this}},{key:"on",value:function(o,i){return this.subscription.bind(o,i),this}}]),n}(Eu),sP=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"whisper",value:function(o,i){return this.pusher.channels.channels[this.name].trigger("client-".concat(o),i),this}}]),n}(Yi),lP=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"whisper",value:function(o,i){return this.pusher.channels.channels[this.name].trigger("client-".concat(o),i),this}}]),n}(Yi),uP=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"here",value:function(o){return this.on("pusher:subscription_succeeded",function(i){o(Object.keys(i.members).map(function(s){return i.members[s]}))}),this}},{key:"joining",value:function(o){return this.on("pusher:member_added",function(i){o(i.info)}),this}},{key:"whisper",value:function(o,i){return this.pusher.channels.channels[this.name].trigger("client-".concat(o),i),this}},{key:"leaving",value:function(o){return this.on("pusher:member_removed",function(i){o(i.info)}),this}}]),n}(Yi),gh=function(e){pn(n,e);var t=hn(n);function n(r,o,i){var s;return Ft(this,n),s=t.call(this),s.events={},s.listeners={},s.name=o,s.socket=r,s.options=i,s.eventFormatter=new vh(s.options.namespace),s.subscribe(),s}return Ht(n,[{key:"subscribe",value:function(){this.socket.emit("subscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"unsubscribe",value:function(){this.unbind(),this.socket.emit("unsubscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"listen",value:function(o,i){return this.on(this.eventFormatter.format(o),i),this}},{key:"stopListening",value:function(o,i){return this.unbindEvent(this.eventFormatter.format(o),i),this}},{key:"subscribed",value:function(o){return this.on("connect",function(i){o(i)}),this}},{key:"error",value:function(o){return this}},{key:"on",value:function(o,i){var s=this;return this.listeners[o]=this.listeners[o]||[],this.events[o]||(this.events[o]=function(l,u){s.name===l&&s.listeners[o]&&s.listeners[o].forEach(function(c){return c(u)})},this.socket.on(o,this.events[o])),this.listeners[o].push(i),this}},{key:"unbind",value:function(){var o=this;Object.keys(this.events).forEach(function(i){o.unbindEvent(i)})}},{key:"unbindEvent",value:function(o,i){this.listeners[o]=this.listeners[o]||[],i&&(this.listeners[o]=this.listeners[o].filter(function(s){return s!==i})),(!i||this.listeners[o].length===0)&&(this.events[o]&&(this.socket.removeListener(o,this.events[o]),delete this.events[o]),delete this.listeners[o])}}]),n}(Eu),yh=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"whisper",value:function(o,i){return this.socket.emit("client event",{channel:this.name,event:"client-".concat(o),data:i}),this}}]),n}(gh),cP=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"here",value:function(o){return this.on("presence:subscribed",function(i){o(i.map(function(s){return s.user_info}))}),this}},{key:"joining",value:function(o){return this.on("presence:joining",function(i){return o(i.user_info)}),this}},{key:"whisper",value:function(o,i){return this.socket.emit("client event",{channel:this.name,event:"client-".concat(o),data:i}),this}},{key:"leaving",value:function(o){return this.on("presence:leaving",function(i){return o(i.user_info)}),this}}]),n}(yh),ki=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"subscribe",value:function(){}},{key:"unsubscribe",value:function(){}},{key:"listen",value:function(o,i){return this}},{key:"listenToAll",value:function(o){return this}},{key:"stopListening",value:function(o,i){return this}},{key:"subscribed",value:function(o){return this}},{key:"error",value:function(o){return this}},{key:"on",value:function(o,i){return this}}]),n}(Eu),Pd=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"whisper",value:function(o,i){return this}}]),n}(ki),dP=function(e){pn(n,e);var t=hn(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Ht(n,[{key:"here",value:function(o){return this}},{key:"joining",value:function(o){return this}},{key:"whisper",value:function(o,i){return this}},{key:"leaving",value:function(o){return this}}]),n}(ki),xu=function(){function e(t){Ft(this,e),this._defaultOptions={auth:{headers:{}},authEndpoint:"/broadcasting/auth",userAuthentication:{endpoint:"/broadcasting/user-auth",headers:{}},broadcaster:"pusher",csrfToken:null,bearerToken:null,host:null,key:null,namespace:"App.Events"},this.setOptions(t),this.connect()}return Ht(e,[{key:"setOptions",value:function(n){this.options=yo(this._defaultOptions,n);var r=this.csrfToken();return r&&(this.options.auth.headers["X-CSRF-TOKEN"]=r,this.options.userAuthentication.headers["X-CSRF-TOKEN"]=r),r=this.options.bearerToken,r&&(this.options.auth.headers.Authorization="Bearer "+r,this.options.userAuthentication.headers.Authorization="Bearer "+r),n}},{key:"csrfToken",value:function(){var n;return typeof window<"u"&&window.Laravel&&window.Laravel.csrfToken?window.Laravel.csrfToken:this.options.csrfToken?this.options.csrfToken:typeof document<"u"&&typeof document.querySelector=="function"&&(n=document.querySelector('meta[name="csrf-token"]'))?n.getAttribute("content"):null}}]),e}(),Id=function(e){pn(n,e);var t=hn(n);function n(){var r;return Ft(this,n),r=t.apply(this,arguments),r.channels={},r}return Ht(n,[{key:"connect",value:function(){typeof this.options.client<"u"?this.pusher=this.options.client:this.options.Pusher?this.pusher=new this.options.Pusher(this.options.key,this.options):this.pusher=new Pusher(this.options.key,this.options)}},{key:"signin",value:function(){this.pusher.signin()}},{key:"listen",value:function(o,i,s){return this.channel(o).listen(i,s)}},{key:"channel",value:function(o){return this.channels[o]||(this.channels[o]=new Yi(this.pusher,o,this.options)),this.channels[o]}},{key:"privateChannel",value:function(o){return this.channels["private-"+o]||(this.channels["private-"+o]=new sP(this.pusher,"private-"+o,this.options)),this.channels["private-"+o]}},{key:"encryptedPrivateChannel",value:function(o){return this.channels["private-encrypted-"+o]||(this.channels["private-encrypted-"+o]=new lP(this.pusher,"private-encrypted-"+o,this.options)),this.channels["private-encrypted-"+o]}},{key:"presenceChannel",value:function(o){return this.channels["presence-"+o]||(this.channels["presence-"+o]=new uP(this.pusher,"presence-"+o,this.options)),this.channels["presence-"+o]}},{key:"leave",value:function(o){var i=this,s=[o,"private-"+o,"private-encrypted-"+o,"presence-"+o];s.forEach(function(l,u){i.leaveChannel(l)})}},{key:"leaveChannel",value:function(o){this.channels[o]&&(this.channels[o].unsubscribe(),delete this.channels[o])}},{key:"socketId",value:function(){return this.pusher.connection.socket_id}},{key:"disconnect",value:function(){this.pusher.disconnect()}}]),n}(xu),fP=function(e){pn(n,e);var t=hn(n);function n(){var r;return Ft(this,n),r=t.apply(this,arguments),r.channels={},r}return Ht(n,[{key:"connect",value:function(){var o=this,i=this.getSocketIO();return this.socket=i(this.options.host,this.options),this.socket.on("reconnect",function(){Object.values(o.channels).forEach(function(s){s.subscribe()})}),this.socket}},{key:"getSocketIO",value:function(){if(typeof this.options.client<"u")return this.options.client;if(typeof io<"u")return io;throw new Error("Socket.io client not found. Should be globally available or passed via options.client")}},{key:"listen",value:function(o,i,s){return this.channel(o).listen(i,s)}},{key:"channel",value:function(o){return this.channels[o]||(this.channels[o]=new gh(this.socket,o,this.options)),this.channels[o]}},{key:"privateChannel",value:function(o){return this.channels["private-"+o]||(this.channels["private-"+o]=new yh(this.socket,"private-"+o,this.options)),this.channels["private-"+o]}},{key:"presenceChannel",value:function(o){return this.channels["presence-"+o]||(this.channels["presence-"+o]=new cP(this.socket,"presence-"+o,this.options)),this.channels["presence-"+o]}},{key:"leave",value:function(o){var i=this,s=[o,"private-"+o,"presence-"+o];s.forEach(function(l){i.leaveChannel(l)})}},{key:"leaveChannel",value:function(o){this.channels[o]&&(this.channels[o].unsubscribe(),delete this.channels[o])}},{key:"socketId",value:function(){return this.socket.id}},{key:"disconnect",value:function(){this.socket.disconnect()}}]),n}(xu),pP=function(e){pn(n,e);var t=hn(n);function n(){var r;return Ft(this,n),r=t.apply(this,arguments),r.channels={},r}return Ht(n,[{key:"connect",value:function(){}},{key:"listen",value:function(o,i,s){return new ki}},{key:"channel",value:function(o){return new ki}},{key:"privateChannel",value:function(o){return new Pd}},{key:"encryptedPrivateChannel",value:function(o){return new Pd}},{key:"presenceChannel",value:function(o){return new dP}},{key:"leave",value:function(o){}},{key:"leaveChannel",value:function(o){}},{key:"socketId",value:function(){return"fake-socket-id"}},{key:"disconnect",value:function(){}}]),n}(xu),hP=function(){function e(t){Ft(this,e),this.options=t,this.connect(),this.options.withoutInterceptors||this.registerInterceptors()}return Ht(e,[{key:"channel",value:function(n){return this.connector.channel(n)}},{key:"connect",value:function(){this.options.broadcaster=="reverb"?this.connector=new Id(yo(yo({},this.options),{cluster:""})):this.options.broadcaster=="pusher"?this.connector=new Id(this.options):this.options.broadcaster=="socket.io"?this.connector=new fP(this.options):this.options.broadcaster=="null"?this.connector=new pP(this.options):typeof this.options.broadcaster=="function"&&(this.connector=new this.options.broadcaster(this.options))}},{key:"disconnect",value:function(){this.connector.disconnect()}},{key:"join",value:function(n){return this.connector.presenceChannel(n)}},{key:"leave",value:function(n){this.connector.leave(n)}},{key:"leaveChannel",value:function(n){this.connector.leaveChannel(n)}},{key:"leaveAllChannels",value:function(){for(var n in this.connector.channels)this.leaveChannel(n)}},{key:"listen",value:function(n,r,o){return this.connector.listen(n,r,o)}},{key:"private",value:function(n){return this.connector.privateChannel(n)}},{key:"encryptedPrivate",value:function(n){return this.connector.encryptedPrivateChannel(n)}},{key:"socketId",value:function(){return this.connector.socketId()}},{key:"registerInterceptors",value:function(){typeof Vue=="function"&&Vue.http&&this.registerVueRequestInterceptor(),typeof axios=="function"&&this.registerAxiosRequestInterceptor(),typeof jQuery=="function"&&this.registerjQueryAjaxSetup(),(typeof Turbo>"u"?"undefined":Tl(Turbo))==="object"&&this.registerTurboRequestInterceptor()}},{key:"registerVueRequestInterceptor",value:function(){var n=this;Vue.http.interceptors.push(function(r,o){n.socketId()&&r.headers.set("X-Socket-ID",n.socketId()),o()})}},{key:"registerAxiosRequestInterceptor",value:function(){var n=this;axios.interceptors.request.use(function(r){return n.socketId()&&(r.headers["X-Socket-Id"]=n.socketId()),r})}},{key:"registerjQueryAjaxSetup",value:function(){var n=this;typeof jQuery.ajax<"u"&&jQuery.ajaxPrefilter(function(r,o,i){n.socketId()&&i.setRequestHeader("X-Socket-Id",n.socketId())})}},{key:"registerTurboRequestInterceptor",value:function(){var n=this;document.addEventListener("turbo:before-fetch-request",function(r){r.detail.fetchOptions.headers["X-Socket-Id"]=n.socketId()})}}]),e}(),bh={exports:{}};/*!
|
|
61
|
+
read-only:cursor-default read-only:border-zinc-300 read-only:bg-zinc-100`;function a2(e,t,n,r,o,i,s){if(Hs(e))return WT(e,r);const l=((s==null?void 0:s.class)??"").includes("text-center"),u=hs("leading",e,n,i),d=hs("trailing",e,n,i);return{"border-zinc-300":!r,"border-zinc-100":t,"px-10":l&&(u||d),"pl-10 pr-5":u&&!l,"pr-10 pl-5":d&&!l,"px-5":!u&&!d,"!pl-0":!u&&ri(e),[r2]:!0,"py-3":!ri(e),"h-12":e!=="textarea","h-24":e==="textarea","border-error text-error placeholder-error focus:ring-error focus:border-error":r,"text-center bg-transparent text-lg uppercase":gu(e),"border bg-white focus:ring-1 focus:ring-zinc-300 hover:bg-zinc-100":!gu(e),"border ring-1 ring-zinc-300":o}}const o2=["type"],i2=["value"],s2=a.defineComponent({__name:"Input",props:{modelValue:{},type:{}},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(()=>t2(n.type));function s(l){o.value=l.target.value}return(l,u)=>i.value==="input"?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,"onUpdate:modelValue":u[0]||(u[0]=d=>o.value=d),type:l.type,"data-test-input":""},null,8,o2)),[[a.vModelDynamic,o.value]]):i.value==="textarea"?(a.openBlock(),a.createElementBlock("textarea",{key:1,value:l.modelValue,"data-test-textarea":"",onInput:s},null,40,i2)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.value),{key:2,modelValue:o.value,"onUpdate:modelValue":u[1]||(u[1]=d=>o.value=d),onOpen:u[2]||(u[2]=()=>r("open"))},{default:a.withCtx(()=>[a.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3},40,["modelValue"]))}}),l2=cr(s2,[["__scopeId","data-v-2f91c266"]]),Dm=a.defineComponent({inheritAttrs:!1,__name:"AppInput",props:a.mergeDefaults({type:{},modelValue:{},readonly:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean},required:{type:Boolean},hasError:{type:Boolean},errorMessage:{},label:{},wrapperClasses:{},errorWrapperClasses:{},inputWrapperClasses:{},iconClasses:{},labelClasses:{}},e2),emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=`input-${_k()}`,s=a.ref(!1),l=a.computed({get:()=>n.modelValue,set:_=>r("update:modelValue",_)}),u=a.computed(()=>ri(n.type)),d=a.computed(()=>Hs(n.type)),c=a.computed(()=>fs(n.type)),p=a.computed(()=>{if(u.value){const _=n.type;return LT[_]}if(c.value)return i1}),h=a.computed(()=>{const _=n.type;return u.value?FT(_,i):void 0}),m=a.computed(()=>n.type==="license"?"text":n.type),y=a.computed(()=>({id:i,type:m.value,required:n.required,multiple:n.multiple,disabled:n.disabled,readonly:n.readonly})),w=a.computed(()=>n.type==="license"?a.h(Hm,{licensePlateClasses:"!p-0"}):a.h("div")),k=a.computed(()=>{const _=n.inputWrapperClasses,x=n.type==="license"?"items-stretch":"relative w-full items-center justify-center";return`${_} ${x}`});return(_,x)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(_.wrapperClasses)},[(_.label||_.$slots.label)&&!d.value?(a.openBlock(),a.createBlock(a.unref(Ic),{key:0,type:_.type,"has-error":_.hasError,disabled:_.disabled,for:u.value?`dp-input-${i}`:i,class:a.normalizeClass(_.labelClasses)},{default:a.withCtx(()=>[a.renderSlot(_.$slots,"label",{},()=>[a.createTextVNode(a.toDisplayString(_.label),1)])]),_:3},8,["type","has-error","disabled","for","class"])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(w.value),{class:a.normalizeClass([k.value,"flex"])},{default:a.withCtx(()=>[a.unref(hs)("leading",_.type,_.loading,_.$slots)?(a.openBlock(),a.createBlock(nf,{key:0,loading:_.loading,class:a.normalizeClass([_.iconClasses,"left-3 top-3"]),"data-test-leading-icon":""},{default:a.withCtx(()=>[a.renderSlot(_.$slots,"leadingIcon")]),_:3},8,["loading","class"])):a.createCommentVNode("",!0),a.createVNode(l2,a.mergeProps({modelValue:l.value,"onUpdate:modelValue":x[0]||(x[0]=S=>l.value=S)},{...y.value,...h.value,..._.$attrs},{class:a.unref(a2)(_.type,_.disabled,_.loading,_.hasError,s.value,_.$slots,_.$attrs),onOpen:x[1]||(x[1]=()=>s.value=!0),onClosed:x[2]||(x[2]=()=>s.value=!1)}),{default:a.withCtx(()=>[a.renderSlot(_.$slots,"default")]),_:3},16,["modelValue","class"]),_.type==="checkbox"?(a.openBlock(),a.createBlock(a.unref(Jh),{key:1,class:"pointer-events-none -ml-4 h-4 w-4 -translate-x-0.5 text-white"})):a.createCommentVNode("",!0),a.unref(n2)(_.type,_.$slots,_.label)?(a.openBlock(),a.createElementBlock("label",{key:2,for:i,class:a.normalizeClass([{"!text-error":_.hasError},"cursor-pointer select-none pl-2 text-base peer-checked:text-primary peer-disabled:cursor-not-allowed peer-disabled:text-zinc-300"]),"data-test-choice-label":""},[a.renderSlot(_.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(_.label),1)])],2)):a.createCommentVNode("",!0),a.unref(hs)("trailing",_.type,_.loading,_.$slots)?(a.openBlock(),a.createBlock(nf,{key:3,loading:_.loading,class:a.normalizeClass([_.iconClasses,"right-3 top-3"]),"data-test-trailing-icon":""},{default:a.withCtx(()=>[a.renderSlot(_.$slots,"trailingIcon",{},()=>[p.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(p.value),{key:0})):a.createCommentVNode("",!0)])]),_:3},8,["loading","class"])):a.createCommentVNode("",!0)]),_:3},8,["class"])),_.hasError&&_.errorMessage?(a.openBlock(),a.createElementBlock("p",{key:1,class:a.normalizeClass([_.errorWrapperClasses,"order-2 mt-1.5 flex items-center gap-x-1 text-xs italic text-error"]),"data-test-error-message":""},a.toDisplayString(_.errorMessage),3)):a.createCommentVNode("",!0)],2))}});function Un(e){return[null,void 0].indexOf(e)!==-1}function u2(e,t,n){const{object:r,valueProp:o,mode:i}=a.toRefs(e),s=a.getCurrentInstance().proxy,l=n.iv,u=(p,h=!0)=>{l.value=c(p);const m=d(p);t.emit("change",m,s),h&&(t.emit("input",m),t.emit("update:modelValue",m))},d=p=>r.value||Un(p)?p:Array.isArray(p)?p.map(h=>h[o.value]):p[o.value],c=p=>Un(p)?i.value==="single"?{}:[]:p;return{update:u}}function c2(e,t){const{value:n,modelValue:r,mode:o,valueProp:i}=a.toRefs(e),s=a.ref(o.value!=="single"?[]:{}),l=a.computed(()=>r&&r.value!==void 0?r.value:n.value),u=a.computed(()=>o.value==="single"?s.value[i.value]:s.value.map(c=>c[i.value])),d=a.computed(()=>o.value!=="single"?s.value.map(c=>c[i.value]).join(","):s.value[i.value]);return{iv:s,internalValue:s,ev:l,externalValue:l,textValue:d,plainValue:u}}function d2(e,t,n){const{regex:r}=a.toRefs(e),o=a.getCurrentInstance().proxy,i=n.isOpen,s=n.open,l=a.ref(null),u=()=>{l.value=""},d=h=>{l.value=h.target.value},c=h=>{if(r&&r.value){let m=r.value;typeof m=="string"&&(m=new RegExp(m)),h.key.match(m)||h.preventDefault()}},p=h=>{if(r&&r.value){let y=(h.clipboardData||window.clipboardData).getData("Text"),w=r.value;typeof w=="string"&&(w=new RegExp(w)),y.split("").every(k=>!!k.match(w))||h.preventDefault()}t.emit("paste",h,o)};return a.watch(l,h=>{!i.value&&h&&s(),t.emit("search-change",h,o)}),{search:l,clearSearch:u,handleSearchInput:d,handleKeypress:c,handlePaste:p}}function f2(e,t,n){const{groupSelect:r,mode:o,groups:i,disabledProp:s}=a.toRefs(e),l=a.ref(null),u=c=>{c===void 0||c!==null&&c[s.value]||i.value&&c&&c.group&&(o.value==="single"||!r.value)||(l.value=c)};return{pointer:l,setPointer:u,clearPointer:()=>{u(null)}}}function Vl(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(new RegExp("\\p{Diacritic}","gu"),"")}function p2(e){return Object.prototype.toString.call(e)==="[object Object]"}function h2(e,t){const n=t.slice().sort();return e.length===t.length&&e.slice().sort().every(function(r,o){return r===n[o]})}function m2(e,t,n){const{options:r,mode:o,trackBy:i,limit:s,hideSelected:l,createTag:u,createOption:d,label:c,appendNewTag:p,appendNewOption:h,multipleLabel:m,object:y,loading:w,delay:k,resolveOnLoad:_,minChars:x,filterResults:S,clearOnSearch:b,clearOnSelect:N,valueProp:T,allowAbsent:I,groupLabel:$,canDeselect:W,max:j,strict:M,closeOnSelect:D,closeOnDeselect:R,groups:K,reverse:G,infinite:Y,groupOptions:z,groupHideEmpty:H,groupSelect:C,onCreate:U,disabledProp:Q,searchStart:X,searchFilter:V}=a.toRefs(e),E=a.getCurrentInstance().proxy,O=n.iv,A=n.ev,Z=n.search,re=n.clearSearch,ie=n.update,Te=n.pointer,Pe=n.setPointer,fe=n.clearPointer,Ie=n.focus,Ve=n.deactivate,Be=n.close,at=n.localize,Je=a.ref([]),Ye=a.ref([]),pe=a.ref(!1),Ne=a.ref(null),ae=a.ref(Y.value&&s.value===-1?10:s.value),he=a.computed(()=>u.value||d.value||!1),le=a.computed(()=>p.value!==void 0?p.value:h.value!==void 0?h.value:!0),je=a.computed(()=>{if(K.value){let q=_t.value||[],ue=[];return q.forEach(ze=>{Or(ze[z.value]).forEach(yt=>{ue.push(Object.assign({},yt,ze[Q.value]?{[Q.value]:!0}:{}))})}),ue}else{let q=Or(Ye.value||[]);return Je.value.length&&(q=q.concat(Je.value)),q}}),xe=a.computed(()=>{let q=je.value;return G.value&&(q=q.reverse()),B.value.length&&(q=B.value.concat(q)),ut(q)}),Et=a.computed(()=>{let q=xe.value;return ae.value>0&&(q=q.slice(0,ae.value)),q}),_t=a.computed(()=>{if(!K.value)return[];let q=[],ue=Ye.value||[];return Je.value.length&&q.push({[$.value]:" ",[z.value]:[...Je.value],__CREATE__:!0}),q.concat(ue)}),Mt=a.computed(()=>{let q=[..._t.value].map(ue=>({...ue}));return B.value.length&&(q[0]&&q[0].__CREATE__?q[0][z.value]=[...B.value,...q[0][z.value]]:q=[{[$.value]:" ",[z.value]:[...B.value],__CREATE__:!0}].concat(q)),q}),jt=a.computed(()=>{if(!K.value)return[];let q=Mt.value;return xt((q||[]).map((ue,ze)=>{const yt=Or(ue[z.value]);return{...ue,index:ze,group:!0,[z.value]:ut(yt,!1).map(Nn=>Object.assign({},Nn,ue[Q.value]?{[Q.value]:!0}:{})),__VISIBLE__:ut(yt).map(Nn=>Object.assign({},Nn,ue[Q.value]?{[Q.value]:!0}:{}))}}))}),pn=a.computed(()=>{switch(o.value){case"single":return!Un(O.value[T.value]);case"multiple":case"tags":return!Un(O.value)&&O.value.length>0}}),On=a.computed(()=>m!==void 0&&m.value!==void 0?m.value(O.value,E):O.value&&O.value.length>1?`${O.value.length} options selected`:"1 option selected"),Ot=a.computed(()=>!je.value.length&&!pe.value&&!B.value.length),F=a.computed(()=>je.value.length>0&&Et.value.length==0&&(Z.value&&K.value||!K.value)),B=a.computed(()=>he.value===!1||!Z.value?[]:Se(Z.value)!==-1?[]:[{[T.value]:Z.value,[te.value[0]]:Z.value,[c.value]:Z.value,__CREATE__:!0}]),te=a.computed(()=>i.value?Array.isArray(i.value)?i.value:[i.value]:[c.value]),oe=a.computed(()=>{switch(o.value){case"single":return null;case"multiple":case"tags":return[]}}),ye=a.computed(()=>w.value||pe.value),we=q=>{switch(typeof q!="object"&&(q=sn(q)),o.value){case"single":ie(q);break;case"multiple":case"tags":ie(O.value.concat(q));break}t.emit("select",J(q),q,E)},Ue=q=>{switch(typeof q!="object"&&(q=sn(q)),o.value){case"single":Ae();break;case"tags":case"multiple":ie(Array.isArray(q)?O.value.filter(ue=>q.map(ze=>ze[T.value]).indexOf(ue[T.value])===-1):O.value.filter(ue=>ue[T.value]!=q[T.value]));break}t.emit("deselect",J(q),q,E)},J=q=>y.value?q:q[T.value],ce=q=>{Ue(q)},We=(q,ue)=>{if(ue.button!==0){ue.preventDefault();return}ce(q)},Ae=()=>{ie(oe.value),t.emit("clear",E)},Qe=q=>{if(q.group!==void 0)return o.value==="single"?!1:xa(q[z.value])&&q[z.value].length;switch(o.value){case"single":return!Un(O.value)&&O.value[T.value]==q[T.value];case"tags":case"multiple":return!Un(O.value)&&O.value.map(ue=>ue[T.value]).indexOf(q[T.value])!==-1}},me=q=>q[Q.value]===!0,dt=()=>j===void 0||j.value===-1||!pn.value&&j.value>0?!1:O.value.length>=j.value,Me=q=>{if(!me(q)){if(U&&U.value&&!Qe(q)&&q.__CREATE__&&(q={...q},delete q.__CREATE__,q=U.value(q,E),q instanceof Promise)){pe.value=!0,q.then(ue=>{pe.value=!1,on(ue)});return}on(q)}},on=q=>{switch(q.__CREATE__&&(q={...q},delete q.__CREATE__),o.value){case"single":if(q&&Qe(q)){W.value&&Ue(q),R.value&&(fe(),Be());return}q&&Zr(q),N.value&&re(),D.value&&(fe(),Be()),q&&we(q);break;case"multiple":if(q&&Qe(q)){Ue(q),R.value&&(fe(),Be());return}if(dt()){t.emit("max",E);return}q&&(Zr(q),we(q)),N.value&&re(),l.value&&fe(),D.value&&Be();break;case"tags":if(q&&Qe(q)){Ue(q),R.value&&(fe(),Be());return}if(dt()){t.emit("max",E);return}q&&Zr(q),N.value&&re(),q&&we(q),l.value&&fe(),D.value&&Be();break}D.value||Ie()},Gt=q=>{if(!(me(q)||o.value==="single"||!C.value)){switch(o.value){case"multiple":case"tags":To(q[z.value])?Ue(q[z.value]):we(q[z.value].filter(ue=>O.value.map(ze=>ze[T.value]).indexOf(ue[T.value])===-1).filter(ue=>!ue[Q.value]).filter((ue,ze)=>O.value.length+1+ze<=j.value||j.value===-1)),l.value&&Te.value&&Pe(jt.value.filter(ue=>!ue[Q.value])[Te.value.index]);break}D.value&&Ve()}},Zr=q=>{sn(q[T.value])===void 0&&he.value&&(t.emit("tag",q[T.value],E),t.emit("option",q[T.value],E),t.emit("create",q[T.value],E),le.value&&be(q),re())},fr=()=>{o.value!=="single"&&we(Et.value.filter(q=>!q.disabled&&!Qe(q)))},To=q=>q.find(ue=>!Qe(ue)&&!ue[Q.value])===void 0,xa=q=>q.find(ue=>!Qe(ue))===void 0,sn=q=>je.value[je.value.map(ue=>String(ue[T.value])).indexOf(String(q))],Se=q=>je.value.findIndex(ue=>te.value.some(ze=>(parseInt(ue[ze])==ue[ze]?parseInt(ue[ze]):ue[ze])===(parseInt(q)==q?parseInt(q):q))),Wt=q=>["tags","multiple"].indexOf(o.value)!==-1&&l.value&&Qe(q),be=q=>{Je.value.push(q)},xt=q=>H.value?q.filter(ue=>Z.value?ue.__VISIBLE__.length:ue[z.value].length):q.filter(ue=>Z.value?ue.__VISIBLE__.length:!0),ut=(q,ue=!0)=>{let ze=q;if(Z.value&&S.value){let yt=V.value;yt||(yt=(Nn,Ci,fd)=>te.value.some(pl=>{let Ti=Vl(at(Nn[pl]),M.value);return X.value?Ti.startsWith(Vl(Ci,M.value)):Ti.indexOf(Vl(Ci,M.value))!==-1})),ze=ze.filter(Nn=>yt(Nn,Z.value,E))}return l.value&&ue&&(ze=ze.filter(yt=>!Wt(yt))),ze},Or=q=>{let ue=q;return p2(ue)&&(ue=Object.keys(ue).map(ze=>{let yt=ue[ze];return{[T.value]:ze,[te.value[0]]:yt,[c.value]:yt}})),ue=ue.map(ze=>typeof ze=="object"?ze:{[T.value]:ze,[te.value[0]]:ze,[c.value]:ze}),ue},Kt=()=>{Un(A.value)||(O.value=Nr(A.value))},Ia=q=>(pe.value=!0,new Promise((ue,ze)=>{r.value(Z.value,E).then(yt=>{Ye.value=yt||[],typeof q=="function"&&q(yt),pe.value=!1}).catch(yt=>{console.error(yt),Ye.value=[],pe.value=!1}).finally(()=>{ue()})})),Eo=()=>{if(pn.value)if(o.value==="single"){let q=sn(O.value[T.value]);if(q!==void 0){let ue=q[c.value];O.value[c.value]=ue,y.value&&(A.value[c.value]=ue)}}else O.value.forEach((q,ue)=>{let ze=sn(O.value[ue][T.value]);if(ze!==void 0){let yt=ze[c.value];O.value[ue][c.value]=yt,y.value&&(A.value[ue][c.value]=yt)}})},fl=q=>{Ia(q)},Nr=q=>Un(q)?o.value==="single"?{}:[]:y.value?q:o.value==="single"?sn(q)||(I.value?{[c.value]:q,[T.value]:q,[te.value[0]]:q}:{}):q.filter(ue=>!!sn(ue)||I.value).map(ue=>sn(ue)||{[c.value]:ue,[T.value]:ue,[te.value[0]]:ue}),Pa=()=>{Ne.value=a.watch(Z,q=>{q.length<x.value||!q&&x.value!==0||(pe.value=!0,b.value&&(Ye.value=[]),setTimeout(()=>{q==Z.value&&r.value(Z.value,E).then(ue=>{(q==Z.value||!Z.value)&&(Ye.value=ue,Te.value=Et.value.filter(ze=>ze[Q.value]!==!0)[0]||null,pe.value=!1)}).catch(ue=>{console.error(ue)})},k.value))},{flush:"sync"})};if(o.value!=="single"&&!Un(A.value)&&!Array.isArray(A.value))throw new Error(`v-model must be an array when using "${o.value}" mode`);return r&&typeof r.value=="function"?_.value?Ia(Kt):y.value==!0&&Kt():(Ye.value=r.value,Kt()),k.value>-1&&Pa(),a.watch(k,(q,ue)=>{Ne.value&&Ne.value(),q>=0&&Pa()}),a.watch(A,q=>{if(Un(q)){ie(Nr(q),!1);return}switch(o.value){case"single":(y.value?q[T.value]!=O.value[T.value]:q!=O.value[T.value])&&ie(Nr(q),!1);break;case"multiple":case"tags":h2(y.value?q.map(ue=>ue[T.value]):q,O.value.map(ue=>ue[T.value]))||ie(Nr(q),!1);break}},{deep:!0}),a.watch(r,(q,ue)=>{typeof e.options=="function"?_.value&&(!ue||q&&q.toString()!==ue.toString())&&Ia():(Ye.value=e.options,Object.keys(O.value).length||Kt(),Eo())}),a.watch(c,Eo),a.watch(s,(q,ue)=>{ae.value=Y.value&&q===-1?10:q}),{pfo:xe,fo:Et,filteredOptions:Et,hasSelected:pn,multipleLabelText:On,eo:je,extendedOptions:je,eg:_t,extendedGroups:_t,fg:jt,filteredGroups:jt,noOptions:Ot,noResults:F,resolving:pe,busy:ye,offset:ae,select:we,deselect:Ue,remove:ce,selectAll:fr,clear:Ae,isSelected:Qe,isDisabled:me,isMax:dt,getOption:sn,handleOptionClick:Me,handleGroupClick:Gt,handleTagRemove:We,refreshOptions:fl,resolveOptions:Ia,refreshLabels:Eo}}function v2(e,t,n){const{valueProp:r,showOptions:o,searchable:i,groupLabel:s,groups:l,mode:u,groupSelect:d,disabledProp:c,groupOptions:p}=a.toRefs(e),h=n.fo,m=n.fg,y=n.handleOptionClick,w=n.handleGroupClick,k=n.search,_=n.pointer,x=n.setPointer,S=n.clearPointer,b=n.multiselect,N=n.isOpen,T=a.computed(()=>h.value.filter(A=>!A[c.value])),I=a.computed(()=>m.value.filter(A=>!A[c.value])),$=a.computed(()=>u.value!=="single"&&d.value),W=a.computed(()=>_.value&&_.value.group),j=a.computed(()=>E(_.value)),M=a.computed(()=>{const A=W.value?_.value:E(_.value),Z=I.value.map(ie=>ie[s.value]).indexOf(A[s.value]);let re=I.value[Z-1];return re===void 0&&(re=R.value),re}),D=a.computed(()=>{let A=I.value.map(Z=>Z.label).indexOf(W.value?_.value[s.value]:E(_.value)[s.value])+1;return I.value.length<=A&&(A=0),I.value[A]}),R=a.computed(()=>[...I.value].slice(-1)[0]),K=a.computed(()=>_.value.__VISIBLE__.filter(A=>!A[c.value])[0]),G=a.computed(()=>{const A=j.value.__VISIBLE__.filter(Z=>!Z[c.value]);return A[A.map(Z=>Z[r.value]).indexOf(_.value[r.value])-1]}),Y=a.computed(()=>{const A=E(_.value).__VISIBLE__.filter(Z=>!Z[c.value]);return A[A.map(Z=>Z[r.value]).indexOf(_.value[r.value])+1]}),z=a.computed(()=>[...M.value.__VISIBLE__.filter(A=>!A[c.value])].slice(-1)[0]),H=a.computed(()=>[...R.value.__VISIBLE__.filter(A=>!A[c.value])].slice(-1)[0]),C=A=>_.value&&(!A.group&&_.value[r.value]===A[r.value]||A.group!==void 0&&_.value[s.value]===A[s.value])?!0:void 0,U=()=>{x(T.value[0]||null)},Q=()=>{!_.value||_.value[c.value]===!0||(W.value?w(_.value):y(_.value))},X=()=>{if(_.value===null)x((l.value&&$.value?I.value[0].__CREATE__?T.value[0]:I.value[0]:T.value[0])||null);else if(l.value&&$.value){let A=W.value?K.value:Y.value;A===void 0&&(A=D.value,A.__CREATE__&&(A=A[p.value][0])),x(A||null)}else{let A=T.value.map(Z=>Z[r.value]).indexOf(_.value[r.value])+1;T.value.length<=A&&(A=0),x(T.value[A]||null)}a.nextTick(()=>{O()})},V=()=>{if(_.value===null){let A=T.value[T.value.length-1];l.value&&$.value&&(A=H.value,A===void 0&&(A=R.value)),x(A||null)}else if(l.value&&$.value){let A=W.value?z.value:G.value;A===void 0&&(A=W.value?M.value:j.value,A.__CREATE__&&(A=z.value,A===void 0&&(A=M.value))),x(A||null)}else{let A=T.value.map(Z=>Z[r.value]).indexOf(_.value[r.value])-1;A<0&&(A=T.value.length-1),x(T.value[A]||null)}a.nextTick(()=>{O()})},E=A=>I.value.find(Z=>Z.__VISIBLE__.map(re=>re[r.value]).indexOf(A[r.value])!==-1),O=()=>{let A=b.value.querySelector("[data-pointed]");if(!A)return;let Z=A.parentElement.parentElement;l.value&&(Z=W.value?A.parentElement.parentElement.parentElement:A.parentElement.parentElement.parentElement.parentElement),A.offsetTop+A.offsetHeight>Z.clientHeight+Z.scrollTop&&(Z.scrollTop=A.offsetTop+A.offsetHeight-Z.clientHeight),A.offsetTop<Z.scrollTop&&(Z.scrollTop=A.offsetTop)};return a.watch(k,A=>{i.value&&(A.length&&o.value?U():S())}),a.watch(N,A=>{if(A&&(b!=null&&b.value)){let Z=b.value.querySelectorAll("[data-selected]")[0];if(!Z)return;let re=Z.parentElement.parentElement;a.nextTick(()=>{re.scrollTop>0||(re.scrollTop=Z.offsetTop)})}}),{pointer:_,canPointGroups:$,isPointed:C,setPointerFirst:U,selectPointer:Q,forwardPointer:X,backwardPointer:V}}function gn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ya(e){var t=gn(e).Element;return e instanceof t||e instanceof Element}function En(e){var t=gn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function wc(e){if(typeof ShadowRoot>"u")return!1;var t=gn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var pa=Math.max,ms=Math.min,ro=Math.round;function yu(){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 Mm(){return!/^((?!chrome|android).)*safari/i.test(yu())}function ao(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&En(e)&&(o=e.offsetWidth>0&&ro(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ro(r.height)/e.offsetHeight||1);var s=ya(e)?gn(e):window,l=s.visualViewport,u=!Mm()&&n,d=(r.left+(u&&l?l.offsetLeft:0))/o,c=(r.top+(u&&l?l.offsetTop:0))/i,p=r.width/o,h=r.height/i;return{width:p,height:h,top:c,right:d+p,bottom:c+h,left:d,x:d,y:c}}function kc(e){var t=gn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function g2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function y2(e){return e===gn(e)||!En(e)?kc(e):g2(e)}function sr(e){return e?(e.nodeName||"").toLowerCase():null}function Gr(e){return((ya(e)?e.ownerDocument:e.document)||window.document).documentElement}function Sc(e){return ao(Gr(e)).left+kc(e).scrollLeft}function Er(e){return gn(e).getComputedStyle(e)}function Cc(e){var t=Er(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function b2(e){var t=e.getBoundingClientRect(),n=ro(t.width)/e.offsetWidth||1,r=ro(t.height)/e.offsetHeight||1;return n!==1||r!==1}function _2(e,t,n){n===void 0&&(n=!1);var r=En(t),o=En(t)&&b2(t),i=Gr(t),s=ao(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((sr(t)!=="body"||Cc(i))&&(l=y2(t)),En(t)?(u=ao(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=Sc(i))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function Bm(e){var t=ao(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 js(e){return sr(e)==="html"?e:e.assignedSlot||e.parentNode||(wc(e)?e.host:null)||Gr(e)}function Am(e){return["html","body","#document"].indexOf(sr(e))>=0?e.ownerDocument.body:En(e)&&Cc(e)?e:Am(js(e))}function zo(e,t){var n;t===void 0&&(t=[]);var r=Am(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=gn(r),s=o?[i].concat(i.visualViewport||[],Cc(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(zo(js(s)))}function w2(e){return["table","td","th"].indexOf(sr(e))>=0}function Of(e){return!En(e)||Er(e).position==="fixed"?null:e.offsetParent}function k2(e){var t=/firefox/i.test(yu()),n=/Trident/i.test(yu());if(n&&En(e)){var r=Er(e);if(r.position==="fixed")return null}var o=js(e);for(wc(o)&&(o=o.host);En(o)&&["html","body"].indexOf(sr(o))<0;){var i=Er(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 Ws(e){for(var t=gn(e),n=Of(e);n&&w2(n)&&Er(n).position==="static";)n=Of(n);return n&&(sr(n)==="html"||sr(n)==="body"&&Er(n).position==="static")?t:n||k2(e)||t}var $n="top",lr="bottom",Ur="right",Cr="left",Tc="auto",qs=[$n,lr,Ur,Cr],oo="start",ai="end",S2="clippingParents",Rm="viewport",Bo="popper",C2="reference",Nf=qs.reduce(function(e,t){return e.concat([t+"-"+oo,t+"-"+ai])},[]),T2=[].concat(qs,[Tc]).reduce(function(e,t){return e.concat([t,t+"-"+oo,t+"-"+ai])},[]),E2="beforeRead",x2="read",I2="afterRead",P2="beforeMain",O2="main",N2="afterMain",D2="beforeWrite",M2="write",B2="afterWrite",A2=[E2,x2,I2,P2,O2,N2,D2,M2,B2];function R2(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&o(u)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function $2(e){var t=R2(e);return A2.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function L2(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function V2(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 F2(e,t){var n=gn(e),r=Gr(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,u=0;if(o){i=o.width,s=o.height;var d=Mm();(d||!d&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:i,height:s,x:l+Sc(e),y:u}}function H2(e){var t,n=Gr(e),r=kc(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=pa(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=pa(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Sc(e),u=-r.scrollTop;return Er(o||n).direction==="rtl"&&(l+=pa(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:u}}function U2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function bu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function z2(e,t){var n=ao(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 Df(e,t,n){return t===Rm?bu(F2(e,n)):ya(t)?z2(t,n):bu(H2(Gr(e)))}function j2(e){var t=zo(js(e)),n=["absolute","fixed"].indexOf(Er(e).position)>=0,r=n&&En(e)?Ws(e):e;return ya(r)?t.filter(function(o){return ya(o)&&U2(o,r)&&sr(o)!=="body"}):[]}function W2(e,t,n,r){var o=t==="clippingParents"?j2(e):[].concat(t),i=[].concat(o,[n]),s=i[0],l=i.reduce(function(u,d){var c=Df(e,d,r);return u.top=pa(c.top,u.top),u.right=ms(c.right,u.right),u.bottom=ms(c.bottom,u.bottom),u.left=pa(c.left,u.left),u},Df(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 Vr(e){return e.split("-")[0]}function so(e){return e.split("-")[1]}function $m(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Lm(e){var t=e.reference,n=e.element,r=e.placement,o=r?Vr(r):null,i=r?so(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(o){case $n:u={x:s,y:t.y-n.height};break;case lr:u={x:s,y:t.y+t.height};break;case Ur:u={x:t.x+t.width,y:l};break;case Cr:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var d=o?$m(o):null;if(d!=null){var c=d==="y"?"height":"width";switch(i){case oo:u[d]=u[d]-(t[c]/2-n[c]/2);break;case ai:u[d]=u[d]+(t[c]/2-n[c]/2);break}}return u}function Vm(){return{top:0,right:0,bottom:0,left:0}}function q2(e){return Object.assign({},Vm(),e)}function Y2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function Ec(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,u=l===void 0?S2:l,d=n.rootBoundary,c=d===void 0?Rm:d,p=n.elementContext,h=p===void 0?Bo:p,m=n.altBoundary,y=m===void 0?!1:m,w=n.padding,k=w===void 0?0:w,_=q2(typeof k!="number"?k:Y2(k,qs)),x=h===Bo?C2:Bo,S=e.rects.popper,b=e.elements[y?x:h],N=W2(ya(b)?b:b.contextElement||Gr(e.elements.popper),u,c,s),T=ao(e.elements.reference),I=Lm({reference:T,element:S,strategy:"absolute",placement:o}),$=bu(Object.assign({},S,I)),W=h===Bo?$:T,j={top:N.top-W.top+_.top,bottom:W.bottom-N.bottom+_.bottom,left:N.left-W.left+_.left,right:W.right-N.right+_.right},M=e.modifiersData.offset;if(h===Bo&&M){var D=M[o];Object.keys(j).forEach(function(R){var K=[Ur,lr].indexOf(R)>=0?1:-1,G=[$n,lr].indexOf(R)>=0?"y":"x";j[R]+=D[G]*K})}return j}var Mf={placement:"bottom",modifiers:[],strategy:"absolute"};function Bf(){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 G2(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Mf:o;return function(l,u,d){d===void 0&&(d=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mf,i),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},p=[],h=!1,m={state:c,setOptions:function(_){var x=typeof _=="function"?_(c.options):_;w(),c.options=Object.assign({},i,c.options,x),c.scrollParents={reference:ya(l)?zo(l):l.contextElement?zo(l.contextElement):[],popper:zo(u)};var S=$2(V2([].concat(r,c.options.modifiers)));return c.orderedModifiers=S.filter(function(b){return b.enabled}),y(),m.update()},forceUpdate:function(){if(!h){var _=c.elements,x=_.reference,S=_.popper;if(Bf(x,S)){c.rects={reference:_2(x,Ws(S),c.options.strategy==="fixed"),popper:Bm(S)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(j){return c.modifiersData[j.name]=Object.assign({},j.data)});for(var b=0;b<c.orderedModifiers.length;b++){if(c.reset===!0){c.reset=!1,b=-1;continue}var N=c.orderedModifiers[b],T=N.fn,I=N.options,$=I===void 0?{}:I,W=N.name;typeof T=="function"&&(c=T({state:c,options:$,name:W,instance:m})||c)}}}},update:L2(function(){return new Promise(function(k){m.forceUpdate(),k(c)})}),destroy:function(){w(),h=!0}};if(!Bf(l,u))return m;m.setOptions(d).then(function(k){!h&&d.onFirstUpdate&&d.onFirstUpdate(k)});function y(){c.orderedModifiers.forEach(function(k){var _=k.name,x=k.options,S=x===void 0?{}:x,b=k.effect;if(typeof b=="function"){var N=b({state:c,name:_,instance:m,options:S}),T=function(){};p.push(N||T)}})}function w(){p.forEach(function(k){return k()}),p=[]}return m}}var Ri={passive:!0};function K2(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,u=gn(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(c){c.addEventListener("scroll",n.update,Ri)}),l&&u.addEventListener("resize",n.update,Ri),function(){i&&d.forEach(function(c){c.removeEventListener("scroll",n.update,Ri)}),l&&u.removeEventListener("resize",n.update,Ri)}}var X2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:K2,data:{}};function J2(e){var t=e.state,n=e.name;t.modifiersData[n]=Lm({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Z2={name:"popperOffsets",enabled:!0,phase:"read",fn:J2,data:{}},Q2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function eI(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ro(n*o)/o||0,y:ro(r*o)/o||0}}function Af(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,d=e.adaptive,c=e.roundOffsets,p=e.isFixed,h=s.x,m=h===void 0?0:h,y=s.y,w=y===void 0?0:y,k=typeof c=="function"?c({x:m,y:w}):{x:m,y:w};m=k.x,w=k.y;var _=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),S=Cr,b=$n,N=window;if(d){var T=Ws(n),I="clientHeight",$="clientWidth";if(T===gn(n)&&(T=Gr(n),Er(T).position!=="static"&&l==="absolute"&&(I="scrollHeight",$="scrollWidth")),T=T,o===$n||(o===Cr||o===Ur)&&i===ai){b=lr;var W=p&&T===N&&N.visualViewport?N.visualViewport.height:T[I];w-=W-r.height,w*=u?1:-1}if(o===Cr||(o===$n||o===lr)&&i===ai){S=Ur;var j=p&&T===N&&N.visualViewport?N.visualViewport.width:T[$];m-=j-r.width,m*=u?1:-1}}var M=Object.assign({position:l},d&&Q2),D=c===!0?eI({x:m,y:w},gn(n)):{x:m,y:w};if(m=D.x,w=D.y,u){var R;return Object.assign({},M,(R={},R[b]=x?"0":"",R[S]=_?"0":"",R.transform=(N.devicePixelRatio||1)<=1?"translate("+m+"px, "+w+"px)":"translate3d("+m+"px, "+w+"px, 0)",R))}return Object.assign({},M,(t={},t[b]=x?w+"px":"",t[S]=_?m+"px":"",t.transform="",t))}function tI(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,u=l===void 0?!0:l,d={placement:Vr(t.placement),variation:so(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,Af(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Af(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var nI={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:tI,data:{}};function rI(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];!En(i)||!sr(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 aI(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(u,d){return u[d]="",u},{});!En(o)||!sr(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(u){o.removeAttribute(u)}))})}}var oI={name:"applyStyles",enabled:!0,phase:"write",fn:rI,effect:aI,requires:["computeStyles"]},iI=[X2,Z2,nI,oI],sI=G2({defaultModifiers:iI});function lI(e){return e==="x"?"y":"x"}function Zi(e,t,n){return pa(e,ms(t,n))}function uI(e,t,n){var r=Zi(e,t,n);return r>n?n:r}function cI(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,u=n.boundary,d=n.rootBoundary,c=n.altBoundary,p=n.padding,h=n.tether,m=h===void 0?!0:h,y=n.tetherOffset,w=y===void 0?0:y,k=Ec(t,{boundary:u,rootBoundary:d,padding:p,altBoundary:c}),_=Vr(t.placement),x=so(t.placement),S=!x,b=$m(_),N=lI(b),T=t.modifiersData.popperOffsets,I=t.rects.reference,$=t.rects.popper,W=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,j=typeof W=="number"?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(T){if(i){var R,K=b==="y"?$n:Cr,G=b==="y"?lr:Ur,Y=b==="y"?"height":"width",z=T[b],H=z+k[K],C=z-k[G],U=m?-$[Y]/2:0,Q=x===oo?I[Y]:$[Y],X=x===oo?-$[Y]:-I[Y],V=t.elements.arrow,E=m&&V?Bm(V):{width:0,height:0},O=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Vm(),A=O[K],Z=O[G],re=Zi(0,I[Y],E[Y]),ie=S?I[Y]/2-U-re-A-j.mainAxis:Q-re-A-j.mainAxis,Te=S?-I[Y]/2+U+re+Z+j.mainAxis:X+re+Z+j.mainAxis,Pe=t.elements.arrow&&Ws(t.elements.arrow),fe=Pe?b==="y"?Pe.clientTop||0:Pe.clientLeft||0:0,Ie=(R=M==null?void 0:M[b])!=null?R:0,Ve=z+ie-Ie-fe,Be=z+Te-Ie,at=Zi(m?ms(H,Ve):H,z,m?pa(C,Be):C);T[b]=at,D[b]=at-z}if(l){var Je,Ye=b==="x"?$n:Cr,pe=b==="x"?lr:Ur,Ne=T[N],ae=N==="y"?"height":"width",he=Ne+k[Ye],le=Ne-k[pe],je=[$n,Cr].indexOf(_)!==-1,xe=(Je=M==null?void 0:M[N])!=null?Je:0,Et=je?he:Ne-I[ae]-$[ae]-xe+j.altAxis,_t=je?Ne+I[ae]+$[ae]-xe-j.altAxis:le,Mt=m&&je?uI(Et,Ne,_t):Zi(m?Et:he,Ne,m?_t:le);T[N]=Mt,D[N]=Mt-Ne}t.modifiersData[r]=D}}var dI={name:"preventOverflow",enabled:!0,phase:"main",fn:cI,requiresIfExists:["offset"]},fI={left:"right",right:"left",bottom:"top",top:"bottom"};function Qi(e){return e.replace(/left|right|bottom|top/g,function(t){return fI[t]})}var pI={start:"end",end:"start"};function Rf(e){return e.replace(/start|end/g,function(t){return pI[t]})}function hI(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,d=u===void 0?T2:u,c=so(r),p=c?l?Nf:Nf.filter(function(y){return so(y)===c}):qs,h=p.filter(function(y){return d.indexOf(y)>=0});h.length===0&&(h=p);var m=h.reduce(function(y,w){return y[w]=Ec(e,{placement:w,boundary:o,rootBoundary:i,padding:s})[Vr(w)],y},{});return Object.keys(m).sort(function(y,w){return m[y]-m[w]})}function mI(e){if(Vr(e)===Tc)return[];var t=Qi(e);return[Rf(e),t,Rf(t)]}function vI(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,u=n.fallbackPlacements,d=n.padding,c=n.boundary,p=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,y=m===void 0?!0:m,w=n.allowedAutoPlacements,k=t.options.placement,_=Vr(k),x=_===k,S=u||(x||!y?[Qi(k)]:mI(k)),b=[k].concat(S).reduce(function(E,O){return E.concat(Vr(O)===Tc?hI(t,{placement:O,boundary:c,rootBoundary:p,padding:d,flipVariations:y,allowedAutoPlacements:w}):O)},[]),N=t.rects.reference,T=t.rects.popper,I=new Map,$=!0,W=b[0],j=0;j<b.length;j++){var M=b[j],D=Vr(M),R=so(M)===oo,K=[$n,lr].indexOf(D)>=0,G=K?"width":"height",Y=Ec(t,{placement:M,boundary:c,rootBoundary:p,altBoundary:h,padding:d}),z=K?R?Ur:Cr:R?lr:$n;N[G]>T[G]&&(z=Qi(z));var H=Qi(z),C=[];if(i&&C.push(Y[D]<=0),l&&C.push(Y[z]<=0,Y[H]<=0),C.every(function(E){return E})){W=M,$=!1;break}I.set(M,C)}if($)for(var U=y?3:1,Q=function(O){var A=b.find(function(Z){var re=I.get(Z);if(re)return re.slice(0,O).every(function(ie){return ie})});if(A)return W=A,"break"},X=U;X>0;X--){var V=Q(X);if(V==="break")break}t.placement!==W&&(t.modifiersData[r]._skip=!0,t.placement=W,t.reset=!0)}}var gI={name:"flip",enabled:!0,phase:"main",fn:vI,requiresIfExists:["offset"],data:{_skip:!1}};function yI(e,t,n){const{disabled:r,appendTo:o,appendToBody:i,openDirection:s}=a.toRefs(e),l=a.getCurrentInstance().proxy,u=n.multiselect,d=n.dropdown,c=a.ref(!1),p=a.ref(null),h=a.ref(null),m=a.computed(()=>o.value||i.value),y=a.computed(()=>s.value==="top"&&h.value==="bottom"||s.value==="bottom"&&h.value!=="top"?"bottom":"top"),w=()=>{c.value||r.value||(c.value=!0,t.emit("open",l),m.value&&a.nextTick(()=>{_()}))},k=()=>{c.value&&(c.value=!1,t.emit("close",l))},_=()=>{if(!p.value)return;let S=parseInt(window.getComputedStyle(d.value).borderTopWidth.replace("px","")),b=parseInt(window.getComputedStyle(d.value).borderBottomWidth.replace("px",""));p.value.setOptions(N=>({...N,modifiers:[...N.modifiers,{name:"offset",options:{offset:[0,(y.value==="top"?S:b)*-1]}}]})),p.value.update()},x=S=>{for(;S&&S!==document.body;){if(getComputedStyle(S).position==="fixed")return!0;S=S.parentElement}return!1};return a.onMounted(()=>{m.value&&(p.value=sI(u.value,d.value,{strategy:x(u.value)?"fixed":void 0,placement:s.value,modifiers:[dI,gI,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:S})=>{S.styles.popper.width=`${S.rects.reference.width}px`},effect:({state:S})=>{S.elements.popper.style.width=`${S.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:S}){h.value=S.placement}}]}))}),a.onBeforeUnmount(()=>{!m.value||!p.value||(p.value.destroy(),p.value=null)}),{popper:p,isOpen:c,open:w,close:k,placement:y,updatePopper:_}}function bI(e,t,n){const{searchable:r,disabled:o,clearOnBlur:i}=a.toRefs(e),s=n.input,l=n.open,u=n.close,d=n.clearSearch,c=n.isOpen,p=n.wrapper,h=n.tags,m=a.ref(!1),y=a.ref(!1),w=a.computed(()=>r.value||o.value?-1:0),k=()=>{r.value&&s.value.blur(),p.value.blur()},_=()=>{r.value&&!o.value&&s.value.focus()},x=($=!0)=>{o.value||(m.value=!0,$&&l())},S=()=>{m.value=!1,setTimeout(()=>{m.value||(u(),i.value&&d())},1)};return{tabindex:w,isActive:m,mouseClicked:y,blur:k,focus:_,activate:x,deactivate:S,handleFocusIn:$=>{$.target.closest("[data-tags]")&&$.target.nodeName!=="INPUT"||$.target.closest("[data-clear]")||x(y.value)},handleFocusOut:()=>{S()},handleCaretClick:()=>{S(),k()},handleMousedown:$=>{y.value=!0,c.value&&($.target.isEqualNode(p.value)||$.target.isEqualNode(h.value))?setTimeout(()=>{S()},0):!c.value&&(document.activeElement.isEqualNode(p.value)||document.activeElement.isEqualNode(s.value))&&x(),setTimeout(()=>{y.value=!1},0)}}}function _I(e,t,n){const{mode:r,addTagOn:o,openDirection:i,searchable:s,showOptions:l,valueProp:u,groups:d,addOptionOn:c,createTag:p,createOption:h,reverse:m}=a.toRefs(e),y=a.getCurrentInstance().proxy,w=n.iv,k=n.update,_=n.deselect,x=n.search,S=n.setPointer,b=n.selectPointer,N=n.backwardPointer,T=n.forwardPointer,I=n.multiselect,$=n.wrapper,W=n.tags,j=n.isOpen,M=n.open,D=n.blur,R=n.fo,K=a.computed(()=>p.value||h.value||!1),G=a.computed(()=>o.value!==void 0?o.value:c.value!==void 0?c.value:["enter"]),Y=()=>{r.value==="tags"&&!l.value&&K.value&&s.value&&!d.value&&S(R.value[R.value.map(C=>C[u.value]).indexOf(x.value)])};return{handleKeydown:C=>{t.emit("keydown",C,y);let U,Q;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(C.key)!==-1&&r.value==="tags"&&(U=[...I.value.querySelectorAll("[data-tags] > *")].filter(X=>X!==W.value),Q=U.findIndex(X=>X===document.activeElement)),C.key){case"Backspace":if(r.value==="single"||s.value&&[null,""].indexOf(x.value)===-1||w.value.length===0)return;let X=w.value.filter(V=>!V.disabled&&V.remove!==!1);X.length&&_(X[X.length-1]);break;case"Enter":if(C.preventDefault(),C.keyCode===229)return;if(Q!==-1&&Q!==void 0){k([...w.value].filter((V,E)=>E!==Q)),Q===U.length-1&&(U.length-1?U[U.length-2].focus():s.value?W.value.querySelector("input").focus():$.value.focus());return}if(G.value.indexOf("enter")===-1&&K.value)return;Y(),b();break;case" ":if(!K.value&&!s.value){C.preventDefault(),Y(),b();return}if(!K.value)return!1;if(G.value.indexOf("space")===-1&&K.value)return;C.preventDefault(),Y(),b();break;case"Tab":case";":case",":if(G.value.indexOf(C.key.toLowerCase())===-1||!K.value)return;Y(),b(),C.preventDefault();break;case"Escape":D();break;case"ArrowUp":if(C.preventDefault(),!l.value)return;j.value||M(),N();break;case"ArrowDown":if(C.preventDefault(),!l.value)return;j.value||M(),T();break;case"ArrowLeft":if(s.value&&W.value&&W.value.querySelector("input").selectionStart||C.shiftKey||r.value!=="tags"||!w.value||!w.value.length)return;C.preventDefault(),Q===-1?U[U.length-1].focus():Q>0&&U[Q-1].focus();break;case"ArrowRight":if(Q===-1||C.shiftKey||r.value!=="tags"||!w.value||!w.value.length)return;C.preventDefault(),U.length>Q+1?U[Q+1].focus():s.value?W.value.querySelector("input").focus():s.value||$.value.focus();break}},handleKeyup:C=>{t.emit("keyup",C,y)},preparePointer:Y}}function wI(e,t,n){const{classes:r,disabled:o,showOptions:i,breakTags:s}=a.toRefs(e),l=n.isOpen,u=n.isPointed,d=n.isSelected,c=n.isDisabled,p=n.isActive,h=n.canPointGroups,m=n.resolving,y=n.fo,w=n.placement,k=a.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",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})),_=a.computed(()=>!!(l.value&&i.value&&(!m.value||m.value&&y.value.length)));return{classList:a.computed(()=>{const S=k.value;return{container:[S.container].concat(o.value?S.containerDisabled:[]).concat(_.value&&w.value==="top"?S.containerOpenTop:[]).concat(_.value&&w.value!=="top"?S.containerOpen:[]).concat(p.value?S.containerActive:[]),wrapper:S.wrapper,spacer:S.spacer,singleLabel:S.singleLabel,singleLabelText:S.singleLabelText,multipleLabel:S.multipleLabel,search:S.search,tags:S.tags,tag:[S.tag].concat(o.value?S.tagDisabled:[]),tagWrapper:[S.tagWrapper,s.value?S.tagWrapperBreak:null],tagDisabled:S.tagDisabled,tagRemove:S.tagRemove,tagRemoveIcon:S.tagRemoveIcon,tagsSearchWrapper:S.tagsSearchWrapper,tagsSearch:S.tagsSearch,tagsSearchCopy:S.tagsSearchCopy,placeholder:S.placeholder,caret:[S.caret].concat(l.value?S.caretOpen:[]),clear:S.clear,clearIcon:S.clearIcon,spinner:S.spinner,inifinite:S.inifinite,inifiniteSpinner:S.inifiniteSpinner,dropdown:[S.dropdown].concat(w.value==="top"?S.dropdownTop:[]).concat(!l.value||!i.value||!_.value?S.dropdownHidden:[]),options:[S.options].concat(w.value==="top"?S.optionsTop:[]),group:S.group,groupLabel:b=>{let N=[S.groupLabel];return u(b)?N.push(d(b)?S.groupLabelSelectedPointed:S.groupLabelPointed):d(b)&&h.value?N.push(c(b)?S.groupLabelSelectedDisabled:S.groupLabelSelected):c(b)&&N.push(S.groupLabelDisabled),h.value&&N.push(S.groupLabelPointable),N},groupOptions:S.groupOptions,option:(b,N)=>{let T=[S.option];return u(b)?T.push(d(b)?S.optionSelectedPointed:S.optionPointed):d(b)?T.push(c(b)?S.optionSelectedDisabled:S.optionSelected):(c(b)||N&&c(N))&&T.push(S.optionDisabled),T},noOptions:S.noOptions,noResults:S.noResults,assist:S.assist,fakeInput:S.fakeInput}}),showDropdown:_}}function kI(e,t,n){const{limit:r,infinite:o}=a.toRefs(e),i=n.isOpen,s=n.offset,l=n.search,u=n.pfo,d=n.eo,c=a.ref(null),p=a.ref(null),h=a.computed(()=>s.value<u.value.length),m=w=>{const{isIntersecting:k,target:_}=w[0];if(k){const x=_.offsetParent,S=x.scrollTop;s.value+=r.value==-1?10:r.value,a.nextTick(()=>{x.scrollTop=S})}},y=()=>{i.value&&s.value<u.value.length?c.value.observe(p.value):!i.value&&c.value&&c.value.disconnect()};return a.watch(i,()=>{o.value&&y()}),a.watch(l,()=>{o.value&&(s.value=r.value,y())},{flush:"post"}),a.watch(d,()=>{o.value&&y()},{immediate:!1,flush:"post"}),a.onMounted(()=>{window&&window.IntersectionObserver&&(c.value=new IntersectionObserver(m))}),{hasMore:h,infiniteLoader:p}}function SI(e,t,n){const{placeholder:r,id:o,valueProp:i,label:s,mode:l,groupLabel:u,aria:d,searchable:c}=a.toRefs(e),p=n.pointer,h=n.iv,m=n.hasSelected,y=n.multipleLabelText,w=a.ref(null),k=a.computed(()=>{let D=[];return o&&o.value&&D.push(o.value),D.push("assist"),D.join("-")}),_=a.computed(()=>{let D=[];return o&&o.value&&D.push(o.value),D.push("multiselect-options"),D.join("-")}),x=a.computed(()=>{let D=[];if(o&&o.value&&D.push(o.value),p.value)return D.push(p.value.group?"multiselect-group":"multiselect-option"),D.push(p.value.group?p.value.index:p.value[i.value]),D.join("-")}),S=a.computed(()=>r.value),b=a.computed(()=>l.value!=="single"),N=a.computed(()=>{let D="";return l.value==="single"&&m.value&&(D+=h.value[s.value]),l.value==="multiple"&&m.value&&(D+=y.value),l.value==="tags"&&m.value&&(D+=h.value.map(R=>R[s.value]).join(", ")),D}),T=a.computed(()=>{let D={...d.value};return c.value&&(D["aria-labelledby"]=D["aria-labelledby"]?`${k.value} ${D["aria-labelledby"]}`:k.value,N.value&&D["aria-label"]&&(D["aria-label"]=`${N.value}, ${D["aria-label"]}`)),D}),I=D=>{let R=[];return o&&o.value&&R.push(o.value),R.push("multiselect-option"),R.push(D[i.value]),R.join("-")},$=D=>{let R=[];return o&&o.value&&R.push(o.value),R.push("multiselect-group"),R.push(D.index),R.join("-")},W=D=>{let R=[];return R.push(D),R.join(" ")},j=D=>{let R=[];return R.push(D),R.join(" ")},M=D=>`${D} ❎`;return a.onMounted(()=>{if(o&&o.value&&document&&document.querySelector){let D=document.querySelector(`[for="${o.value}"]`);w.value=D?D.innerText:null}}),{arias:T,ariaLabel:N,ariaAssist:k,ariaControls:_,ariaPlaceholder:S,ariaMultiselectable:b,ariaActiveDescendant:x,ariaOptionId:I,ariaOptionLabel:W,ariaGroupId:$,ariaGroupLabel:j,ariaTagLabel:M}}function CI(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 TI(e,t,n){const r=a.ref(null),o=a.ref(null),i=a.ref(null),s=a.ref(null),l=a.ref(null);return{multiselect:r,wrapper:o,tags:i,input:s,dropdown:l}}function EI(e,t,n,r={}){return n.forEach(o=>{o&&(r={...r,...o(e,t,r)})}),r}var xc={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,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},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},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}},setup(e,t){return EI(e,t,[TI,CI,c2,f2,yI,d2,u2,bI,m2,kI,v2,_I,wI,SI])},beforeMount(){var e,t;((t=(e=this.$root.constructor)==null?void 0:e.version)!=null&&t.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const xI=["id","dir"],II=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],PI=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],OI=["onKeyup","aria-label"],NI=["onClick"],DI=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],MI=["innerHTML"],BI=["id"],AI=["id"],RI=["id","aria-label","aria-selected"],$I=["data-pointed","onMouseenter","onMousedown"],LI=["innerHTML"],VI=["aria-label"],FI=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],HI=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],UI=["innerHTML"],zI=["innerHTML"],jI=["value"],WI=["name","value"],qI=["name","value"],YI=["id"];function GI(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,PI)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(e.classList.tags),"data-tags":""},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.iv,(s,l,u)=>a.renderSlot(e.$slots,"tag",{option:s,handleTagRemove:e.handleTagRemove,disabled:n.disabled},()=>[(a.openBlock(),a.createElementBlock("span",{class:a.normalizeClass([e.classList.tag,s.disabled?e.classList.tagDisabled:null]),tabindex:"-1",onKeyup:a.withKeys(d=>e.handleTagRemove(s,d),["enter"]),key:u,"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,NI)):a.createCommentVNode("v-if",!0)],42,OI))])),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,DI)):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,MI)]):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,II),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,u)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(e.classList.group),key:u,id:e.ariaGroupId(s),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),"aria-selected":e.isSelected(s),role:"option"},[s.__CREATE__?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(e.classList.groupLabel(s)),"data-pointed":e.isPointed(s),onMouseenter:d=>e.setPointer(s,l),onMousedown:a.withModifiers(d=>e.handleGroupClick(s),["prevent"])},[a.renderSlot(e.$slots,"grouplabel",{group:s,isSelected:e.isSelected,isPointed:e.isPointed},()=>[a.createElementVNode("span",{innerHTML:e.localize(s[n.groupLabel])},null,8,LI)])],42,$I)),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,c,p)=>(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:p,onMouseenter:h=>e.setPointer(d),onMousedown:a.withModifiers(h=>e.handleOptionClick(d),["prevent"]),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,FI))),128))],10,VI)],10,RI))),128)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(e.fo,(s,l,u)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(e.classList.option(s)),"data-pointed":e.isPointed(s),"data-selected":e.isSelected(s)||void 0,key:u,onMouseenter:d=>e.setPointer(s),onMousedown:a.withModifiers(d=>e.handleOptionClick(s),["prevent"]),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,HI))),128))],10,AI),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,UI)]):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,zI)]):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,BI)],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,jI)):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,WI)):(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,qI))),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,YI)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Create height for empty input "),a.createElementVNode("div",{class:a.normalizeClass(e.classList.spacer)},null,2)],42,xI)}xc.render=GI;xc.__file="src/Multiselect.vue";const jn={container:"relative mx-auto w-full flex items-center justify-end box-border cursor-pointer border border-zinc-300 rounded bg-white text-base leading-snug outline-none rounded-lg hover:bg-zinc-100",containerDisabled:"cursor-default bg-zinc-100",containerOpen:"rounded-b-none",containerOpenTop:"rounded-t-none",containerActive:"ring-1 ring-zinc-300",singleLabel:"flex items-center h-full max-w-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3.5 pr-16 box-border rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3.5",singleLabelText:"overflow-ellipsis overflow-hidden block whitespace-nowrap max-w-full",multipleLabel:"flex items-center h-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3.5 rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3.5",search:"h-full w-full absolute inset-0 outline-none focus:ring-0 appearance-none box-border border-0 text-base font-sans bg-white rounded-lg pl-3.5 rtl:pl-0 rtl:pr-3.5",tags:"flex-grow flex-shrink flex flex-wrap items-center mt-1 pl-2 rtl:pl-0 rtl:pr-2",tag:"bg-zinc-200 text-sm font-semibold py-1 pl-2 rounded mr-1 mb-1 flex items-center whitespace-nowrap rtl:pl-0 rtl:pr-2 rtl:mr-0 rtl:ml-1",tagDisabled:"pr-2 opacity-50 rtl:pl-2",tagRemove:"flex items-center justify-center p-1 mx-0.5 rounded-sm hover:bg-black hover:bg-opacity-10 group",tagRemoveIcon:"bg-multiselect-remove bg-center bg-no-repeat inline-block w-3 h-3 text-black",tagsSearchWrapper:"inline-block relative mx-1 mb-1 flex-grow flex-shrink h-full",tagsSearch:"absolute inset-0 border-0 outline-none focus:ring-0 appearance-none p-0 text-base font-sans box-border w-full bg-transparent",tagsSearchCopy:"invisible whitespace-pre-wrap inline-block h-px",placeholder:"flex items-center h-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3.5 text-zinc-400 rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3.5",caret:"bg-multiselect-caret bg-center bg-no-repeat w-5 h-8 py-px box-content mr-3.5 relative z-10 stroke-2 flex-shrink-0 flex-grow-0 transition-transform transform pointer-events-none rtl:mr-0 rtl:ml-3.5",caretOpen:"rotate-180 pointer-events-auto",clear:"pr-3.5 relative z-10 opacity-30 transition duration-300 flex-shrink-0 flex-grow-0 flex hover:opacity-80 rtl:pr-0 rtl:pl-3.5",clearIcon:"bg-multiselect-remove bg-center bg-no-repeat w-3 h-5 py-px box-content inline-block",spinner:"bg-multiselect-spinner bg-center bg-no-repeat w-4 h-4 z-10 mr-3.5 animate-spin flex-shrink-0 flex-grow-0 rtl:mr-0 rtl:ml-3.5",inifite:"flex items-center justify-center w-full",inifiteSpinner:"bg-multiselect-spinner bg-center bg-no-repeat w-4 h-4 z-10 animate-spin flex-shrink-0 flex-grow-0 m-3.5",dropdown:"max-h-60 absolute -left-[2px] -right-[2px] bottom-0 transform translate-y-full border-2 border-zinc-300 -mt-px overflow-y-auto z-50 bg-white flex flex-col rounded-b",dropdownTop:"!-translate-y-full top-px bottom-auto rounded-b-none rounded-t",dropdownHidden:"hidden",options:"flex flex-col p-0 m-0 list-none",optionsTop:"",group:"p-0 m-0",groupLabel:"flex text-sm box-border items-center justify-start text-left py-1 px-3 font-semibold bg-zinc-200 cursor-default leading-normal",groupLabelPointable:"cursor-pointer",groupLabelPointed:"bg-zinc-300 text-zinc-700",groupLabelSelected:"bg-primary-active text-white",groupLabelDisabled:"bg-zinc-100 text-zinc-300 cursor-not-allowed",groupLabelSelectedPointed:"bg-primary-active text-white opacity-90",groupLabelSelectedDisabled:"text-white bg-primary-active bg-opacity-50 cursor-not-allowed",groupOptions:"p-0 m-0",option:"flex items-center justify-start box-border text-left cursor-pointer text-base leading-snug py-2 px-3",optionPointed:"text-zinc-800 bg-zinc-100",optionSelected:"text-white bg-primary",optionDisabled:"text-zinc-300 cursor-not-allowed",optionSelectedPointed:"text-white bg-primary opacity-90",optionSelectedDisabled:"text-green-100 bg-primary bg-opacity-50 cursor-not-allowed",noOptions:"py-2 px-3 text-zinc-600 bg-white text-left",noResults:"py-2 px-3 text-zinc-600 bg-white text-left",fakeInput:"bg-transparent absolute left-0 right-0 -bottom-px w-full h-px border-0 p-0 appearance-none outline-none text-transparent",spacer:"h-9 py-px box-content"};function KI(e){return e in jn}function XI(e){const t=Object.keys(jn).find(n=>n.toLowerCase()===e);if(t&&KI(t))return jn[t]}const JI=["onClick"],ZI={key:1,class:"order-2 mt-1.5 flex items-center gap-x-1 text-xs italic text-error","data-test-error-message":""},Fm=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={...jn};return t.openDirection==="up"&&(i.dropdown=`${jn.dropdown} ${jn.dropdownTop}`,i.containerOpen=`${jn.containerOpenTop}`),t.dropdownClasses&&(i.dropdown=`${i.dropdown} ${t.dropdownClasses}`),Object.entries(t.additionalClasses??{}).forEach(([s,l])=>{s in i&&(i[s]=`${i[s]} ${l}`)}),i});return(i,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(i.wrapperClasses)},[i.label||i.$slots.label?(a.openBlock(),a.createBlock(a.unref(Ic),{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(xc),a.mergeProps({native:!1,classes:o.value},{...i.$attrs,label:t.optionLabel},{onOpen:s[0]||(s[0]=l=>{var u;i.fetchOnOpen&&(l!=null&&l.noOptions)&&((u=l==null?void 0:l.resolveOptions)==null||u.call(l))})}),a.createSlots({tag:a.withCtx(l=>[a.createElementVNode("div",{class:a.normalizeClass(a.unref(jn).tag)},[a.renderSlot(i.$slots,"tag",a.normalizeProps(a.guardReactiveProps(l)),()=>{var u;return[a.createTextVNode(a.toDisplayString((u=l.option)==null?void 0:u[i.optionLabel]),1)]}),l.disabled?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(a.unref(jn).tagRemove),onClick:u=>l.handleTagRemove(l.option,u)},[a.createElementVNode("span",{class:a.normalizeClass(a.unref(jn).tagRemoveIcon)},null,2)],10,JI))],2)]),_:2},[a.renderList(r.value,(l,u)=>({name:l,fn:a.withCtx(d=>[a.renderSlot(i.$slots,l,a.normalizeProps(a.guardReactiveProps({...d||{},classes:a.unref(XI)(l)})))])}))]),1040,["classes"]),i.hasError&&i.errorMessage?(a.openBlock(),a.createElementBlock("p",ZI,a.toDisplayString(i.errorMessage),1)):a.createCommentVNode("",!0)],2))}}),Ic=a.defineComponent({__name:"AppInputLabel",props:{disabled:{type:Boolean},hasError:{type:Boolean}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("label",{class:a.normalizeClass([{"text-error":t.hasError,"select-none text-zinc-300":t.disabled},"mb-2 block text-base font-semibold text-black"])},[a.renderSlot(t.$slots,"default")],2))}}),_u={mapId:"161a92b3666d9228",disableDefaultUI:!0,zoom:15},QI={scrollwheel:!1,clickableIcons:!1,keyboardShortcuts:!1,isFractionalZoomEnabled:!1,maxZoom:_u.zoom,minZoom:_u.zoom,disableDoubleClickZoom:!0,fullscreenControl:!1,streetViewControl:!1,gestureHandling:"none",rotateControl:!1,panControl:!1},eP=["inline-flex","justify-center","items-center","rounded-full","bg-primary","text-white","h-12","w-12"];function tP(){const e=document.createElement("div");return e.classList.add(...eP),a.render(a.h(h1),e),e}const nP=a.defineComponent({__name:"AppMaps",props:{withMarker:{type:Boolean,default:!0},disableMarkerClick:{type:Boolean,default:!1},markerLatitude:{default:null},markerLongitude:{default:null},disableUserInteraction:{type:Boolean,default:!1},mapCenterLatitude:{default:null},mapCenterLongitude:{default:null},mapOptions:{default:null}},setup(e){const t=e,n=a.ref(null),r=a.computed(()=>{var u;return t.mapCenterLatitude&&t.mapCenterLongitude?{lat:t.mapCenterLatitude,lng:t.mapCenterLongitude}:((u=t.mapOptions)==null?void 0:u.center)??null}),o=a.computed(()=>t.markerLatitude&&t.markerLongitude?{lat:t.markerLatitude,lng:t.markerLongitude}:r.value);a.watch(t,async()=>{await i()}),a.onMounted(async()=>{if(!(window!=null&&window.google)){console.error("Google not defined. use composable useGoogleApi at setup");return}await i()});async function i(){const{Map:u}=await google.maps.importLibrary("maps");if(n.value instanceof HTMLElement){const d=new u(n.value,{...s(),center:r.value});t.withMarker&&await l(d)}}function s(){let u={..._u};return t.disableUserInteraction&&(u={...u,...QI}),{...u,...t.mapOptions??{}}}async function l(u){const{AdvancedMarkerElement:d}=await google.maps.importLibrary("marker"),c=new d({map:u,position:o.value,content:tP()});t.disableMarkerClick&&!t.disableUserInteraction&&(c.element.classList.add("!cursor-default"),google.maps.event.addListener(c,"click",()=>{}))}return(u,d)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"mapElement",ref:n,class:"h-80 w-full"},null,512))}}),rP={class:"pl-7 text-lg font-semibold md:hidden","data-test-name":""},wu=a.defineComponent({__name:"NavigationItem",props:{item:{}},setup(e){const t=e,{navigationComponent:n,closeMobileMenu:r}=yo(),o=a.ref(!1),i=a.computed(()=>o.value||typeof t.item.icon!="string"),s=a.computed(()=>o.value?ka:t.item.icon);async function l(u){var d,c,p;r(),(d=t.item)!=null&&d.onClick&&(u.preventDefault(),o.value=!0,await Promise.resolve((p=(c=t.item)==null?void 0:c.onClick)==null?void 0:p.call(c)),o.value=!1)}return(u,d)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),{to:u.item.to,href:u.item.href,class:a.normalizeClass([{"md:bg-primary":u.item.active??!1,"!rounded-full":u.item.rounded??!1,"mb-4":!u.item.bottom,"mt-4":u.item.bottom},"flex h-10 w-full cursor-pointer items-center rounded-lg text-center transition-colors md:w-10 md:justify-center md:hover:bg-primary-active"]),onClick:l},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.value?s.value:"span"),{class:a.normalizeClass([{"!h-6":!i.value},"app-navigation-item h-6 w-6 stroke-2 text-black md:h-5 md:w-5 md:text-white"]),size:o.value?"extra-small":void 0,"data-test-icon":""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(i.value?"":u.item.icon),1)]),_:1},8,["class","size"])),a.createElementVNode("span",rP,a.toDisplayString(u.item.name),1)]),_:1},8,["to","href","class"]))}}),ku=a.defineComponent({__name:"SupportItem",setup(e){const{contactRoute:t,contactIcon:n,navigationComponent:r,closeMobileMenu:o}=yo();return(i,s)=>a.unref(t)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(r)),{key:0,to:a.unref(r)!=="a"?a.unref(t):void 0,href:a.unref(r)?a.unref(t):void 0,class:"app-support-item fixed bottom-5 right-5 z-50 mt-2 flex h-10 w-10 justify-center rounded-full bg-primary py-2 text-white transition-colors hover:bg-primary-active focus-visible:outline-none","data-test-help-icon":"",onClick:a.unref(o)},{default:a.withCtx(()=>[typeof a.unref(n)=="string"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(a.unref(n)),1)],64)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),{key:1,class:"h-full w-full"}))]),_:1},8,["to","href","onClick"])):a.createCommentVNode("",!0)}}),aP={class:"app-mobile-menu flex h-18 items-center justify-between bg-zinc-50 px-4 text-black md:hidden"},oP=["innerHTML"],iP={class:"flex w-10 grow-0 justify-end","data-test-avatar-wrapper":""},sP={class:"relative flex h-full w-full flex-1 flex-col bg-white focus:outline-none","data-test-navigation-wrapper":""},lP={class:"h-0 flex-1 overflow-y-auto p-4","data-test-navigation-links-wrapper":""},uP={"aria-label":"MainMenu",class:"mt-5"},cP={class:"mb-auto"},dP=a.defineComponent({__name:"Mobile",setup(e){const{logo:t,avatar:n,navigationItems:r,mobileMenuOpen:o,mobileMenuOpenTransition:i,openMobileMenu:s,closeMobileMenu:l}=yo(),u=a.computed(()=>o.value?Fs:r1);function d(){l(),setTimeout(()=>{i.value=!1},100)}function c(){i.value||(s(),i.value=!0)}return(p,h)=>(a.openBlock(),a.createElementBlock("header",aP,[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(c,["stop"])},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.value),{class:"block h-6 w-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,oP),a.createElementVNode("div",iP,[a.unref(n)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(n)),{key:0})):a.createCommentVNode("",!0)]),a.createVNode(a.unref(St.TransitionRoot),{show:a.unref(o),as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(St.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(St.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",sP,[a.createElementVNode("div",lP,[a.createElementVNode("nav",uP,[a.createElementVNode("ul",cP,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(r).filter(m=>m.visible!==!1),m=>(a.openBlock(),a.createElementBlock("li",{key:m.name,"data-test-navigation-item":""},[a.createVNode(wu,{item:m},null,8,["item"])]))),128))])]),a.createVNode(ku)])])]),_:1})]),_:1})]),_:1},8,["show"]),a.createVNode(ku)]))}}),fP={class:"mx-auto mb-auto"},pP={class:"mx-auto mt-auto"},hP=a.defineComponent({__name:"AppNavigationMenu",setup(e){const{navigationItems:t,mainMenuOpen:n}=yo();return(r,o)=>(a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("aside",{class:a.normalizeClass([{"flex-col px-3 md:!w-20":a.unref(n)},"app-navigation-menu sticky top-0 hidden h-screen w-0 justify-center py-5 transition-all duration-500 before:absolute before:-right-8 before:top-0 before:h-8 before:w-8 before:bg-transparent after:absolute after:-right-8 after:bottom-0 after:h-8 after:w-8 after:bg-transparent md:flex md:bg-secondary"]),"data-test-main-menu":""},[a.createElementVNode("ul",fP,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(t).filter(i=>i.bottom!==!0&&i.visible!==!1),i=>(a.openBlock(),a.createElementBlock("li",{key:i.name,"data-test-top-navigation-item":""},[a.createVNode(wu,{item:i},null,8,["item"])]))),128))]),a.createElementVNode("ul",pP,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(t).filter(i=>i.bottom&&i.visible!==!1),i=>(a.openBlock(),a.createElementBlock("li",{key:i.name,"data-test-bottom-navigation-item":""},[a.createVNode(wu,{item:i},null,8,["item"])]))),128)),a.createElementVNode("li",null,[a.createVNode(ku,{class:"!static"})])])],2),a.createVNode(dP)]))}}),Ys=cr(hP,[["__scopeId","data-v-8287ec08"]]),mP={class:"flex text-sm font-bold"},vP={class:"flex items-center rounded-l-lg bg-indigo-900 px-2 py-1.5 text-white","data-test-country-code":""},Hm=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",mP,[a.createElementVNode("span",vP,a.toDisplayString(t.country),1),a.createElementVNode("span",{class:a.normalizeClass([t.licensePlateClasses,"w-full rounded-r-lg bg-yellow-400 px-2 py-1.5 uppercase"]),"data-test-license-plate":""},[a.renderSlot(t.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(t.license),1)])],2)]))}}),Um=a.defineComponent({__name:"AppTimelineItemIcon",props:{icon:{}},setup(e){const t=e,n=a.computed(()=>t.icon??Jh),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))}}),gP={class:"flex"},yP={class:"ml-4"},bP={class:"text-sm font-semibold text-zinc-900","data-test-timeline-title":""},zm=a.defineComponent({__name:"AppTimelineItem",props:{item:{},itemType:{}},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:[]);return(r,o)=>(a.openBlock(),a.createElementBlock("article",{class:a.normalizeClass([{"after:hidden":r.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",gP,[a.renderSlot(r.$slots,"icon",{value:r.item.icon},()=>[a.createVNode(Um,{icon:r.item.icon},null,8,["icon"])])]),a.createElementVNode("div",yP,[a.createElementVNode("header",{class:a.normalizeClass({"flex items-center gap-3":r.itemType==="inline","!mb-0":r.item.last})},[a.createVNode(a.unref(is),{class:a.normalizeClass({"mb-2":r.itemType==="default"})},{default:a.withCtx(()=>[a.renderSlot(r.$slots,"date",{value:n.value},()=>[a.createElementVNode("time",null,a.toDisplayString(n.value)+" uur",1)])]),_:3},8,["class"]),a.createElementVNode("h3",bP,[a.renderSlot(r.$slots,"title",{value:r.item.title},()=>[a.createTextVNode(a.toDisplayString(r.item.title),1)])])],2),a.createElementVNode("p",{class:a.normalizeClass([{"mt-4":r.itemType==="inline"},"text-base empty:mt-0"]),"data-test-timeline-description":""},[a.renderSlot(r.$slots,"default",{value:r.item.description},()=>[a.createTextVNode(a.toDisplayString(r.item.description),1)])],2)])],2))}}),_P={class:"space-y-4"},wP=a.defineComponent({__name:"AppTimeline",props:{items:{},type:{default:"default"}},setup(e){return(t,n)=>(a.openBlock(),a.createElementBlock("div",_P,[a.renderSlot(t.$slots,"default",{},()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.items,r=>(a.openBlock(),a.createBlock(zm,{key:r.title,item:r,"item-type":t.type},null,8,["item","item-type"]))),128))])]))}});var kP=Object.defineProperty,SP=Object.defineProperties,CP=Object.getOwnPropertyDescriptors,$f=Object.getOwnPropertySymbols,TP=Object.prototype.hasOwnProperty,EP=Object.prototype.propertyIsEnumerable,Lf=(e,t,n)=>t in e?kP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zn=(e,t)=>{for(var n in t||(t={}))TP.call(t,n)&&Lf(e,n,t[n]);if($f)for(var n of $f(t))EP.call(t,n)&&Lf(e,n,t[n]);return e},es=(e,t)=>SP(e,CP(t)),Kr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const xP=e=>(a.pushScopeId("data-v-e0a0b7f0"),e=e(),a.popScopeId(),e),IP=["onClick"],PP=["checked"],OP=xP(()=>a.createElementVNode("label",{for:"checbox"},null,-1)),NP=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,PP),OP],8,IP))}});var DP=Kr(NP,[["__scopeId","data-v-e0a0b7f0"]]);const MP=e=>(a.pushScopeId("data-v-7e69a276"),e=e(),a.popScopeId(),e),BP=["checked"],AP=MP(()=>a.createElementVNode("label",{for:"checbox"},null,-1)),RP=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,BP),AP]))}});var $P=Kr(RP,[["__scopeId","data-v-7e69a276"]]);const LP=e=>(a.pushScopeId("data-v-4ca5de3a"),e=e(),a.popScopeId(),e),VP={class:"easy-data-table__rows-selector"},FP={class:"rows-input"},HP=LP(()=>a.createElementVNode("div",{class:"triangle"},null,-1)),UP=["onClick"],zP=a.defineComponent({__name:"RowsSelector",props:{modelValue:{type:Number,required:!0},rowsItems:{type:Array,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;a.useCssVars(p=>({"1b889342":a.unref(c)}));const r=a.ref(!1),o=a.ref(!1),i=a.inject("dataTable");a.watch(r,p=>{if(p&&i){const h=window.innerHeight,m=i.value.getBoundingClientRect().height,y=i.value.getBoundingClientRect().top;h-(m+y)<=100?o.value=!0:o.value=!1}});const s=a.computed({get:()=>n.modelValue,set:p=>{t("update:modelValue",p)}}),l=p=>{s.value=p,r.value=!1},u=(p,h)=>{let m=p.parentNode;for(;m!=null;){if(m.classList&&m.classList.contains(h))return!0;m=m.parentNode}return!1},d=p=>{u(p.target,"easy-data-table__rows-selector")||(r.value=!1)};a.onMounted(()=>{document.addEventListener("click",d)}),a.onBeforeUnmount(()=>{document.removeEventListener("click",d)});const c=a.inject("themeColor");return(p,h)=>(a.openBlock(),a.createElementBlock("div",VP,[a.createElementVNode("div",{class:"rows-input__wrapper",onClick:h[0]||(h[0]=m=>r.value=!r.value)},[a.createElementVNode("div",FP,a.toDisplayString(a.unref(s)),1),HP]),a.createElementVNode("ul",{class:a.normalizeClass(["select-items",{show:r.value,inside:o.value}])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.rowsItems,m=>(a.openBlock(),a.createElementBlock("li",{key:m,class:a.normalizeClass({selected:m===a.unref(s)}),onClick:y=>l(m)},a.toDisplayString(m),11,UP))),128))],2)]))}});var jP=Kr(zP,[["__scopeId","data-v-4ca5de3a"]]);const Gs=e=>(a.pushScopeId("data-v-1fa3a520"),e=e(),a.popScopeId(),e),WP={class:"lds-ring"},qP=Gs(()=>a.createElementVNode("div",null,null,-1)),YP=Gs(()=>a.createElementVNode("div",null,null,-1)),GP=Gs(()=>a.createElementVNode("div",null,null,-1)),KP=Gs(()=>a.createElementVNode("div",null,null,-1)),XP=[qP,YP,GP,KP],JP=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",WP,XP))}});var ZP=Kr(JP,[["__scopeId","data-v-1fa3a520"]]);const QP={class:"loader-line"},eO=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",QP))}});var tO=Kr(eO,[["__scopeId","data-v-7d281cac"]]);const nO={class:"buttons-pagination"},rO=["onClick"],aO=a.defineComponent({__name:"ButtonsPagination",props:{maxPaginationNumber:{type:Number,required:!0},currentPaginationNumber:{type:Number,required:!0}},emits:["updatePage"],setup(e,{emit:t}){const n=e;a.useCssVars(l=>({"40dd4f07":a.unref(s)}));const r=7,o=l=>{l.type==="button"&&!l.active&&t("updatePage",l.page)},i=a.computed(()=>{const l=[];if(n.maxPaginationNumber<=r)for(let u=1;u<=n.maxPaginationNumber;u+=1)l.push({type:"button",page:u,active:u===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber});else if([1,2,n.maxPaginationNumber,n.maxPaginationNumber-1].includes(n.currentPaginationNumber))for(let u=1;u<=r;u+=1)if(u<=3)l.push({type:"button",page:u,active:u===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber});else if(u===4)l.push({type:"omission"});else{const d=n.maxPaginationNumber-(r-u);l.push({type:"button",page:d,active:d===n.currentPaginationNumber,activePrev:d+1===n.currentPaginationNumber})}else if([3,4].includes(n.currentPaginationNumber))for(let u=1;u<=r;u+=1)u<=5?l.push({type:"button",page:u,active:u===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber}):u===6?l.push({type:"omission"}):l.push({type:"button",page:n.maxPaginationNumber,active:n.maxPaginationNumber===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber});else if([n.maxPaginationNumber-2,n.maxPaginationNumber-3].includes(n.currentPaginationNumber))for(let u=1;u<=r;u+=1)if(u===1)l.push({type:"button",page:1,active:n.currentPaginationNumber===1,activePrev:u+1===n.currentPaginationNumber});else if(u===2)l.push({type:"omission"});else{const d=n.maxPaginationNumber-(r-u);l.push({type:"button",page:d,active:d===n.currentPaginationNumber,activePrev:d+1===n.currentPaginationNumber})}else for(let u=1;u<=r;u+=1)if(u===1)l.push({type:"button",page:1,active:n.currentPaginationNumber===1,activePrev:u+1===n.currentPaginationNumber});else if(u===2||u===6)l.push({type:"omission"});else if(u===7)l.push({type:"button",page:n.maxPaginationNumber,active:n.maxPaginationNumber===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber});else{const d=4-u,c=n.currentPaginationNumber-d;l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber})}return l}),s=a.inject("themeColor");return(l,u)=>(a.openBlock(),a.createElementBlock("div",nO,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(i),(d,c)=>(a.openBlock(),a.createElementBlock("div",{key:c,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:p=>o(d)},a.toDisplayString(d.type==="button"?d.page:"..."),11,rO))),128))]))}});var oO=Kr(aO,[["__scopeId","data-v-4c681fa2"]]);const jm=e=>(a.pushScopeId("data-v-c9da5286"),e=e(),a.popScopeId(),e),iO=jm(()=>a.createElementVNode("span",{class:"arrow arrow-right"},null,-1)),sO=[iO],lO=jm(()=>a.createElementVNode("span",{class:"arrow arrow-left"},null,-1)),uO=[lO],cO=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"))},sO,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"))},uO,2)],64))}});var dO=Kr(cO,[["__scopeId","data-v-c9da5286"]]);function fO(e,t,n,r){return{clickRow:(i,s,l)=>{if(e.value!==s)return;const u=Zn({},i);if(t.value){const{checkbox:d}=i;delete u.checkbox,u.isSelected=d}if(n.value){const{index:d}=i;delete u.index,u.indexInCurrentPage=d}r("clickRow",u,l)}}}function pO(e,t,n){const r=a.ref([]);return{expandingItemIndexList:r,updateExpandingItemIndexList:(s,l,u)=>{u.stopPropagation();const d=r.value.indexOf(s);if(d!==-1)r.value.splice(d,1);else{const c=e.value.findIndex(p=>JSON.stringify(p)===JSON.stringify(l));n("expandRow",t.value+c,l),r.value.push(t.value+c)}},clearExpandingItemIndexList:()=>{r.value=[]}}}function hO(e){const t=a.computed(()=>e.value.filter(o=>o.fixed)),n=a.computed(()=>t.value.length?t.value[t.value.length-1].value:""),r=a.computed(()=>{if(!t.value.length)return[];const o=t.value.map(i=>{var s;return(s=i.width)!=null?s:100});return t.value.map((i,s)=>{var l,u;return{value:i.value,fixed:(l=i.fixed)!=null?l:!0,width:(u=i.width)!=null?u:100,distance:s===0?0:o.reduce((d,c,p)=>{let h=d;return p<s&&(h+=c),h})}})});return{fixedHeaders:t,lastFixedColumn:n,fixedColumnsInfos:r}}function mO(e,t,n,r,o,i,s,l,u,d,c,p,h,m,y,w,k,_,x){const S=a.computed(()=>s.value.findIndex(R=>R.fixed)!==-1),b=a.computed(()=>S.value?s.value.filter(R=>R.fixed):[]),N=a.computed(()=>s.value.filter(R=>!R.fixed)),T=(R,K)=>Array.isArray(R)&&Array.isArray(K)?{sortBy:R,sortDesc:K.map(G=>G==="desc")}:R!==""?{sortBy:y.value,sortDesc:w.value==="desc"}:null,I=a.ref(T(y.value,w.value)),$=a.computed(()=>{var R;const G=[...b.value,...N.value].map(C=>{const U=Object.assign(C);if(U.sortable&&(U.sortType="none"),h.value)if(Array.isArray(h.value.sortBy)&&Array.isArray(h.value.sortType)&&h.value.sortBy.includes(U.value)){const Q=h.value.sortBy.indexOf(U.value);U.sortType=h.value.sortType[Q]}else U.value===h.value.sortBy&&h.value.sortType&&(U.sortType=h.value.sortType);if(I.value&&Array.isArray(I.value.sortBy)&&Array.isArray(I.value.sortDesc)&&I.value.sortBy.includes(U.value)){const Q=I.value.sortBy.indexOf(U.value);U.sortType=I.value.sortDesc[Q]?"desc":"asc"}else I.value&&U.value===I.value.sortBy&&(U.sortType=I.value.sortDesc?"desc":"asc");return U});let Y=[];l.value?Y=[o.value||S.value?{text:"",value:"expand",fixed:!0,width:n.value}:{text:"",value:"expand"},...G]:Y=G;let z=[];m.value?z=[i.value||S.value?{text:e.value,value:"index",fixed:!0,width:u.value}:{text:e.value,value:"index"},...Y]:z=Y;let H=[];return d.value?H=[r.value||S.value?{text:"checkbox",value:"checkbox",fixed:!0,width:(R=t.value)!=null?R:36}:{text:"checkbox",value:"checkbox"},...z]:H=z,H}),W=a.computed(()=>$.value.map(R=>R.value));return{clientSortOptions:I,headerColumns:W,headersForRender:$,updateSortField:(R,K)=>{let G=null;if(K==="none"?G="asc":K==="asc"?G="desc":G=p.value?"asc":null,c.value&&_(R,G),I.value&&Array.isArray(I.value.sortBy)&&Array.isArray(I.value.sortDesc)){const Y=I.value.sortBy.indexOf(R);Y===-1?G!==null&&(I.value.sortBy.push(R),I.value.sortDesc.push(G==="desc")):G===null?(I.value.sortDesc.splice(Y,1),I.value.sortBy.splice(Y,1)):I.value.sortDesc[Y]=G==="desc"}else G===null?I.value=null:I.value={sortBy:R,sortDesc:G==="desc"};x("updateSort",{sortType:G,sortBy:R})},isMultiSorting:R=>h.value&&Array.isArray(h.value.sortBy)?h.value.sortBy.includes(R):I.value&&Array.isArray(I.value.sortBy)?I.value.sortBy.includes(R):!1,getMultiSortNumber:R=>h.value&&Array.isArray(h.value.sortBy)?h.value.sortBy.indexOf(R)+1:I.value&&Array.isArray(I.value.sortBy)?I.value.sortBy.indexOf(R)+1:!1}}function vO(e,t,n,r,o,i,s,l,u){const d=a.computed(()=>(e.value-1)*o.value+1),c=a.computed(()=>n.value?Math.min(u.value,e.value*o.value):Math.min(l.value.length,e.value*o.value)),p=a.computed(()=>n.value?r.value:l.value.slice(d.value-1,c.value)),h=a.computed(()=>s.value?p.value.map((w,k)=>Zn({index:d.value+k},w)):p.value),m=a.computed(()=>i.value.length===0||i.value.every(k=>l.value.findIndex(_=>JSON.stringify(k)===JSON.stringify(_))===-1)?"noneSelected":i.value.length===l.value.length&&i.value.every(_=>l.value.findIndex(x=>JSON.stringify(_)===JSON.stringify(x))!==-1)?"allSelected":"partSelected"),y=a.computed(()=>t.value?m.value==="allSelected"?h.value.map(w=>Zn({checkbox:!0},w)):m.value==="noneSelected"?h.value.map(w=>Zn({checkbox:!1},w)):h.value.map(w=>{const k=i.value.findIndex(_=>{const x=Zn({},w);return delete x.index,JSON.stringify(_)===JSON.stringify(x)})!==-1;return Zn({checkbox:k},w)}):h.value);return{currentPageFirstIndex:d,currentPageLastIndex:c,multipleSelectStatus:m,pageItems:y}}function gO(e,t,n,r,o,i,s){const l=a.ref(i.value?i.value.page:e.value),u=a.computed(()=>Math.ceil(r.value/o.value)),d=a.computed(()=>u.value===0||l.value===u.value),c=a.computed(()=>l.value===1);return{currentPaginationNumber:l,maxPaginationNumber:u,isLastPage:d,isFirstPage:c,nextPage:()=>{if(r.value!==0&&!d.value&&!n.value)if(t.value){const w=l.value+1;s(w)}else l.value+=1},prevPage:()=>{if(r.value!==0&&!c.value&&!n.value)if(t.value){const w=l.value-1;s(w)}else l.value-=1},updatePage:w=>{n.value||(t.value?s(w):l.value=w)},updateCurrentPaginationNumber:w=>{l.value=w}}}function yO(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 bO(e,t,n){const r=a.computed({get:()=>{if(e.value){const{page:l,rowsPerPage:u,sortBy:d,sortType:c}=e.value;return{page:l,rowsPerPage:u,sortBy:d??null,sortType:c??null}}return null},set:l=>{n("update:serverOptions",l)}});return{serverOptionsComputed:r,updateServerOptionsPage:l=>{r.value&&(r.value=es(Zn({},r.value),{page:l}))},updateServerOptionsSort:(l,u)=>{if(r.value)if(t.value&&Array.isArray(r.value.sortBy)&&Array.isArray(r.value.sortType)){const d=r.value.sortBy.findIndex(c=>c===l);d===-1&&u!==null&&(r.value.sortBy.push(l),r.value.sortType.push(u)),u===null?(r.value.sortBy.splice(d,1),r.value.sortType.splice(d,1)):r.value.sortType[d]=u}else r.value=es(Zn({},r.value),{sortBy:u!==null?l:null,sortType:u})},updateServerOptionsRowsPerPage:l=>{r.value&&(r.value=es(Zn({},r.value),{page:1,rowsPerPage:l}))}}}function Jt(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 _O(e,t){const n=Jt(e,t);return Array.isArray(n)?n.join(","):n}function wO(e,t,n,r,o,i,s,l,u,d){const c=S=>{if(typeof i.value=="string"&&i.value!=="")return Jt(i.value,S);if(Array.isArray(i.value)){let b="";return i.value.forEach(N=>{b+=Jt(N,S)}),b}return Object.values(S).join(" ")},p=a.computed(()=>{if(!n.value&&s.value!==""){const S=new RegExp(s.value,"i");return r.value.filter(b=>S.test(c(b)))}return r.value}),h=a.computed(()=>{let S=[...p.value];return t.value?(t.value.forEach(b=>{S=S.filter(N=>{const{field:T,comparison:I,criteria:$}=b;if(typeof I=="function")return I(Jt(T,N),$);const W=Jt(T,N);switch(I){case"=":return W===$;case"!=":return W!==$;case">":return W>$;case"<":return W<$;case"<=":return W<=$;case">=":return W>=$;case"between":return W>=Math.min(...$)&&W<=Math.max(...$);case"in":return $.includes(W);default:return W===$}})}),S):p.value});a.watch(h,S=>{t.value&&d("updateFilter",S)},{immediate:!0,deep:!0});function m(S,b,N,T){const I=S[T],$=b[T];return(T===0?N:m(S,b,N,T-1)).sort((j,M)=>{let D=!0;for(let R=0;R<T;R+=1)if(Jt(S[R],j)!==Jt(S[R],M)){D=!1;break}return D?Jt(I,j)<Jt(I,M)?$?1:-1:Jt(I,j)>Jt(I,M)?$?-1:1:0:0})}const y=a.computed(()=>{if(n.value)return r.value;if(e.value===null)return h.value;const{sortBy:S,sortDesc:b}=e.value,N=[...h.value];return u&&Array.isArray(S)&&Array.isArray(b)?S.length===0?N:m(S,b,N,S.length-1):N.sort((T,I)=>Jt(S,T)<Jt(S,I)?b?1:-1:Jt(S,T)>Jt(S,I)?b?-1:1:0)}),w=a.computed(()=>n.value?l.value:y.value.length),k=a.computed({get:()=>{var S;return(S=o.value)!=null?S:[]},set:S=>{d("update:itemsSelected",S)}});return{totalItems:y,selectItemsComputed:k,totalItemsLength:w,toggleSelectAll:S=>{k.value=S?y.value:[],S&&d("selectAll")},toggleSelectItem:S=>{const b=S.checkbox;if(delete S.checkbox,delete S.index,b)k.value=k.value.filter(N=>JSON.stringify(N)!==JSON.stringify(S)),d("deselectRow",S);else{const N=k.value;N.unshift(S),k.value=N,d("selectRow",S)}}}}var kO={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 SO=e=>(a.pushScopeId("data-v-32683533"),e=e(),a.popScopeId(),e),CO=["id"],TO=["onClick"],EO={key:3,class:"header-text"},xO={key:5,class:"multi-sort__number"},IO=["onClick","onDblclick","onContextmenu"],PO=["onClick"],OO=["colspan"],NO={key:0,class:"vue3-easy-data-table__loading"},DO=SO(()=>a.createElementVNode("div",{class:"vue3-easy-data-table__loading-mask"},null,-1)),MO={class:"loading-entity"},BO={key:1,class:"vue3-easy-data-table__message"},AO={key:0,class:"vue3-easy-data-table__footer"},RO={key:0,class:"pagination__rows-per-page"},$O={class:"pagination__items-index"},LO=a.defineComponent({__name:"DataTable",props:es(Zn({},kO),{items:{type:Array,required:!0},headers:{type:Array,required:!0}}),emits:["clickRow","contextmenuRow","selectRow","deselectRow","expandRow","updateSort","updateFilter","update:itemsSelected","update:serverOptions","updatePageItems","updateTotalItems","selectAll"],setup(e,{expose:t,emit:n}){const r=e;a.useCssVars(Se=>({da0d4328:a.unref(V),"3037e504":a.unref(X)}));const{tableNodeId:o,clickEventType:i,bodyTextDirection:s,checkboxColumnWidth:l,currentPage:u,expandColumnWidth:d,filterOptions:c,fixedCheckbox:p,fixedExpand:h,fixedHeader:m,fixedIndex:y,headers:w,headerTextDirection:k,indexColumnWidth:_,items:x,itemsSelected:S,loading:b,mustSort:N,multiSort:T,rowsItems:I,rowsPerPage:$,searchField:W,searchValue:j,serverItemsLength:M,serverOptions:D,showIndex:R,sortBy:K,sortType:G,tableHeight:Y,tableMinHeight:z,themeColor:H,rowsOfPageSeparatorMessage:C,showIndexSymbol:U,preventContextMenuRow:Q}=a.toRefs(r),X=a.computed(()=>Y.value?`${Y.value}px`:null),V=a.computed(()=>`${z.value}px`);a.provide("themeColor",H.value);const E=a.useSlots(),O=a.computed(()=>!!E.pagination),A=a.computed(()=>!!E.loading),Z=a.computed(()=>!!E.expand),re=a.computed(()=>!!E.body),ie=a.ref(),Te=a.ref();a.provide("dataTable",ie);const Pe=a.ref(!1);a.onMounted(()=>{Te.value.addEventListener("scroll",()=>{Pe.value=Te.value.scrollLeft>0})});const fe=a.computed(()=>S.value!==null),Ie=a.computed(()=>D.value!==null),{serverOptionsComputed:Ve,updateServerOptionsPage:Be,updateServerOptionsSort:at,updateServerOptionsRowsPerPage:Je}=bO(D,T,n),{clientSortOptions:Ye,headerColumns:pe,headersForRender:Ne,updateSortField:ae,isMultiSorting:he,getMultiSortNumber:le}=mO(U,l,d,p,h,y,w,Z,_,fe,Ie,N,Ve,R,K,G,T,at,n),{rowsItemsComputed:je,rowsPerPageRef:xe,updateRowsPerPage:Et}=yO(Ie,I,D,$),{totalItems:_t,selectItemsComputed:Mt,totalItemsLength:jt,toggleSelectAll:pn,toggleSelectItem:On}=wO(Ye,c,Ie,x,S,W,j,M,T,n),{currentPaginationNumber:Ot,maxPaginationNumber:F,isLastPage:B,isFirstPage:te,nextPage:oe,prevPage:ye,updatePage:we,updateCurrentPaginationNumber:Ue}=gO(u,Ie,b,jt,xe,D,Be),{currentPageFirstIndex:J,currentPageLastIndex:ce,multipleSelectStatus:We,pageItems:Ae}=vO(Ot,fe,Ie,x,xe,Mt,R,_t,jt),Qe=a.computed(()=>Ot.value===0?0:(Ot.value-1)*xe.value),{expandingItemIndexList:me,updateExpandingItemIndexList:dt,clearExpandingItemIndexList:Me}=pO(Ae,Qe,n),{fixedHeaders:on,lastFixedColumn:Gt,fixedColumnsInfos:Zr}=hO(Ne),{clickRow:fr}=fO(i,fe,R,n),To=(Se,Wt)=>{Q.value&&Wt.preventDefault(),n("contextmenuRow",Se,Wt)},xa=Se=>{var Wt;const be=(Wt=Se.width)!=null?Wt:on.value.length?100:null;if(be)return`width: ${be}px; min-width: ${be}px;`},sn=(Se,Wt="th")=>{if(!on.value.length)return;const be=Zr.value.find(xt=>xt.value===Se);if(be)return`left: ${be.distance}px;z-index: ${Wt==="th"?3:1};position: sticky;`};return a.watch(b,(Se,Wt)=>{Ve.value&&Se===!1&&Wt===!0&&(Ue(Ve.value.page),Me())}),a.watch(xe,Se=>{Ie.value?Je(Se):we(1)}),a.watch([j,c],()=>{Ie.value||we(1)}),a.watch([Ot,Ye,W,j,c],()=>{Me()},{deep:!0}),a.watch(Ae,Se=>{n("updatePageItems",Se)},{deep:!0}),a.watch(_t,Se=>{n("updateTotalItems",Se)},{deep:!0}),t({currentPageFirstIndex:J,currentPageLastIndex:ce,clientItemsLength:jt,maxPaginationNumber:F,currentPaginationNumber:Ot,isLastPage:B,isFirstPage:te,nextPage:oe,prevPage:ye,updatePage:we,rowsPerPageOptions:je,rowsPerPageActiveOption:xe,updateRowsPerPageActiveOption:Et}),(Se,Wt)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"dataTable",ref:ie,class:a.normalizeClass(["vue3-easy-data-table",[Se.tableClassName]])},[a.createElementVNode("div",{ref_key:"tableBody",ref:Te,class:a.normalizeClass(["vue3-easy-data-table__main",{"fixed-header":a.unref(m),"fixed-height":a.unref(Y),"show-shadow":Pe.value,"table-fixed":a.unref(on).length,hoverable:!Se.noHover,"border-cell":Se.borderCell}])},[a.createElementVNode("table",{id:a.unref(o)},[a.createElementVNode("colgroup",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Ne),(be,xt)=>(a.openBlock(),a.createElementBlock("col",{key:xt,style:a.normalizeStyle(xa(be))},null,4))),128))]),a.unref(E)["customize-headers"]?a.renderSlot(Se.$slots,"customize-headers",{key:0},void 0,!0):a.unref(Ne).length&&!Se.hideHeader?(a.openBlock(),a.createElementBlock("thead",{key:1,class:a.normalizeClass(["vue3-easy-data-table__header",[Se.headerClassName]])},[a.createElementVNode("tr",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Ne),(be,xt)=>(a.openBlock(),a.createElementBlock("th",{key:xt,class:a.normalizeClass([{sortable:be.sortable,none:be.sortable&&be.sortType==="none",desc:be.sortable&&be.sortType==="desc",asc:be.sortable&&be.sortType==="asc",shadow:be.value===a.unref(Gt)},typeof Se.headerItemClassName=="string"?Se.headerItemClassName:Se.headerItemClassName(be,xt+1)]),style:a.normalizeStyle(sn(be.value)),onClick:a.withModifiers(ut=>be.sortable&&be.sortType?a.unref(ae)(be.value,be.sortType):null,["stop"])},[be.text==="checkbox"?(a.openBlock(),a.createBlock(DP,{key:a.unref(We),status:a.unref(We),onChange:a.unref(pn)},null,8,["status","onChange"])):(a.openBlock(),a.createElementBlock("span",{key:1,class:a.normalizeClass(["header",`direction-${a.unref(k)}`])},[a.unref(E)[`header-${be.value}`]?a.renderSlot(Se.$slots,`header-${be.value}`,a.normalizeProps(a.mergeProps({key:0},be)),void 0,!0):a.unref(E)[`header-${be.value.toLowerCase()}`]?a.renderSlot(Se.$slots,`header-${be.value.toLowerCase()}`,a.normalizeProps(a.mergeProps({key:1},be)),void 0,!0):a.unref(E).header?a.renderSlot(Se.$slots,"header",a.normalizeProps(a.mergeProps({key:2},be)),void 0,!0):(a.openBlock(),a.createElementBlock("span",EO,a.toDisplayString(be.text),1)),be.sortable?(a.openBlock(),a.createElementBlock("i",{key:be.sortType?be.sortType:"none",class:a.normalizeClass(["sortType-icon",{desc:be.sortType==="desc"}])},null,2)):a.createCommentVNode("",!0),a.unref(T)&&a.unref(he)(be.value)?(a.openBlock(),a.createElementBlock("span",xO,a.toDisplayString(a.unref(le)(be.value)),1)):a.createCommentVNode("",!0)],2))],14,TO))),128))])],2)):a.createCommentVNode("",!0),a.unref(re)?a.renderSlot(Se.$slots,"body",a.normalizeProps(a.mergeProps({key:2},a.unref(Ae))),void 0,!0):a.unref(pe).length?(a.openBlock(),a.createElementBlock("tbody",{key:3,class:a.normalizeClass(["vue3-easy-data-table__body",{"row-alternation":Se.alternating}])},[a.renderSlot(Se.$slots,"body-prepend",a.normalizeProps(a.guardReactiveProps({items:a.unref(Ae),pagination:{isFirstPage:a.unref(te),isLastPage:a.unref(B),currentPaginationNumber:a.unref(Ot),maxPaginationNumber:a.unref(F),nextPage:a.unref(oe),prevPage:a.unref(ye)},headers:a.unref(Ne)})),void 0,!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Ae),(be,xt)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:xt},[a.createElementVNode("tr",{class:a.normalizeClass([{"even-row":(xt+1)%2===0},typeof Se.bodyRowClassName=="string"?Se.bodyRowClassName:Se.bodyRowClassName(be,xt+1)]),onClick:ut=>{a.unref(fr)(be,"single",ut),Se.clickRowToExpand&&a.unref(dt)(xt+a.unref(Qe),be,ut)},onDblclick:ut=>{a.unref(fr)(be,"double",ut)},onContextmenu:ut=>{To(be,ut)}},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(pe),(ut,Or)=>(a.openBlock(),a.createElementBlock("td",{key:Or,style:a.normalizeStyle(sn(ut,"td")),class:a.normalizeClass([{shadow:ut===a.unref(Gt),"can-expand":ut==="expand"},typeof Se.bodyItemClassName=="string"?Se.bodyItemClassName:Se.bodyItemClassName(ut,xt+1),`direction-${a.unref(s)}`]),onClick:Kt=>ut==="expand"?a.unref(dt)(xt+a.unref(Qe),be,Kt):null},[a.unref(E)[`item-${ut}`]?a.renderSlot(Se.$slots,`item-${ut}`,a.normalizeProps(a.mergeProps({key:0},be)),void 0,!0):a.unref(E)[`item-${ut.toLowerCase()}`]?a.renderSlot(Se.$slots,`item-${ut.toLowerCase()}`,a.normalizeProps(a.mergeProps({key:1},be)),void 0,!0):ut==="expand"?(a.openBlock(),a.createElementBlock("i",{key:2,class:a.normalizeClass(["expand-icon",{expanding:a.unref(me).includes(a.unref(Qe)+xt)}])},null,2)):ut==="checkbox"?(a.openBlock(),a.createBlock($P,{key:3,checked:be[ut],onChange:Kt=>a.unref(On)(be)},null,8,["checked","onChange"])):a.unref(E).item?a.renderSlot(Se.$slots,"item",a.normalizeProps(a.mergeProps({key:4},{column:ut,item:be})),void 0,!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:5},[a.createTextVNode(a.toDisplayString(a.unref(_O)(ut,be)),1)],64))],14,PO))),128))],42,IO),a.unref(Z)&&a.unref(me).includes(xt+a.unref(Qe))?(a.openBlock(),a.createElementBlock("tr",{key:0,class:a.normalizeClass([{"even-row":(xt+1)%2===0},typeof Se.bodyExpandRowClassName=="string"?Se.bodyExpandRowClassName:Se.bodyExpandRowClassName(be,xt+1)])},[a.createElementVNode("td",{colspan:a.unref(Ne).length,class:"expand"},[be.expandLoading?(a.openBlock(),a.createBlock(tO,{key:0,class:"expand-loading"})):a.createCommentVNode("",!0),a.renderSlot(Se.$slots,"expand",a.normalizeProps(a.guardReactiveProps(be)),void 0,!0)],8,OO)],2)):a.createCommentVNode("",!0)],64))),128)),a.renderSlot(Se.$slots,"body-append",a.normalizeProps(a.guardReactiveProps({items:a.unref(Ae),pagination:{isFirstPage:a.unref(te),isLastPage:a.unref(B),currentPaginationNumber:a.unref(Ot),maxPaginationNumber:a.unref(F),nextPage:a.unref(oe),prevPage:a.unref(ye),updatePage:a.unref(we)},headers:a.unref(Ne)})),void 0,!0)],2)):a.createCommentVNode("",!0)],8,CO),a.unref(b)?(a.openBlock(),a.createElementBlock("div",NO,[DO,a.createElementVNode("div",MO,[a.unref(A)?a.renderSlot(Se.$slots,"loading",{key:0},void 0,!0):(a.openBlock(),a.createBlock(ZP,{key:1}))])])):a.createCommentVNode("",!0),!a.unref(Ae).length&&!a.unref(b)?(a.openBlock(),a.createElementBlock("div",BO,[a.renderSlot(Se.$slots,"empty-message",{},()=>[a.createTextVNode(a.toDisplayString(Se.emptyMessage),1)],!0)])):a.createCommentVNode("",!0)],2),Se.hideFooter?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",AO,[Se.hideRowsPerPage?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",RO,[a.createTextVNode(a.toDisplayString(Se.rowsPerPageMessage)+" ",1),a.createVNode(jP,{modelValue:a.unref(xe),"onUpdate:modelValue":Wt[0]||(Wt[0]=be=>a.isRef(xe)?xe.value=be:null),"rows-items":a.unref(je)},null,8,["modelValue","rows-items"])])),a.createElementVNode("div",$O,a.toDisplayString(`${a.unref(J)}–${a.unref(ce)}`)+" "+a.toDisplayString(a.unref(C))+" "+a.toDisplayString(a.unref(jt)),1),a.unref(O)?a.renderSlot(Se.$slots,"pagination",a.normalizeProps(a.mergeProps({key:1},{isFirstPage:a.unref(te),isLastPage:a.unref(B),currentPaginationNumber:a.unref(Ot),maxPaginationNumber:a.unref(F),nextPage:a.unref(oe),prevPage:a.unref(ye)})),void 0,!0):(a.openBlock(),a.createBlock(dO,{key:2,"is-first-page":a.unref(te),"is-last-page":a.unref(B),onClickNextPage:a.unref(oe),onClickPrevPage:a.unref(ye)},a.createSlots({_:2},[Se.buttonsPagination?{name:"buttonsPagination",fn:a.withCtx(()=>[a.createVNode(oO,{"current-pagination-number":a.unref(Ot),"max-pagination-number":a.unref(F),onUpdatePage:a.unref(we)},null,8,["current-pagination-number","max-pagination-number","onUpdatePage"])]),key:"0"}:void 0]),1032,["is-first-page","is-last-page","onClickNextPage","onClickPrevPage"]))]))],2))}});var Wm=Kr(LO,[["__scopeId","data-v-32683533"]]);typeof window<"u"&&window.Vue&&window.Vue.createApp({}).component("Vue3EasyDataTable",Wm);const VO={class:"relative z-50 -mt-20 w-full -translate-y-0.5 rounded-2xl bg-white px-4 py-3 shadow"},FO={class:"my-[3px] flex w-full flex-col justify-between space-y-2 md:flex-row"},HO={class:"items-center sm:flex","data-test-results":""},UO={key:0,class:"flex w-full items-center md:mr-4 md:space-x-2"},zO=a.createElementVNode("div",{class:"hidden md:block"}," Tonen ",-1),jO={class:"hidden whitespace-nowrap md:flex","data-test-results-count":""},WO=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 h;return((h=o.value)==null?void 0:h.clientItemsLength)??0}),s=a.computed(()=>{var h;return(h=o.value)==null?void 0:h.maxPaginationNumber}),l=a.computed(()=>{var h;return n.currentPage??((h=o.value)==null?void 0:h.currentPaginationNumber)});function u(){r("nextPage")}function d(){r("previousPage")}function c(h){r("updatePage",h)}function p(){r("updatePage",1)}return(h,m)=>(a.openBlock(),a.createElementBlock("div",VO,[a.createElementVNode("div",FO,[a.createElementVNode("div",HO,[o.value?(a.openBlock(),a.createElementBlock("div",UO,[zO,a.createVNode(a.unref(Fm),{modelValue:o.value.rowsPerPageActiveOption,"onUpdate:modelValue":m[0]||(m[0]=y=>o.value.rowsPerPageActiveOption=y),"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:p},null,8,["modelValue","options"])])):a.createCommentVNode("",!0),a.createElementVNode("div",jO,[a.renderSlot(h.$slots,"results",{results:i.value},()=>[a.createTextVNode(a.toDisplayString(i.value)+" results ",1)])])]),i.value>0?(a.openBlock(),a.createBlock(a.unref(qm),{key:0,"current-page":l.value,"last-page":s.value,onPaginate:c,onNextPage:u,onPreviousPage:d},null,8,["current-page","last-page"])):a.createCommentVNode("",!0)])]))}}),qO=a.defineComponent({inheritAttrs:!1,__name:"AppDataTable",props:{headers:{},items:{},modelValue:{},currentPage:{},rowItems:{default:()=>[20,50,100,200,500]},rowsPerPage:{default:50},actionBarSelection:{type:Boolean,default:!0},actionBarSelectionKey:{default:"id"}},emits:["update:modelValue","updatePage","clickItem"],setup(e,{expose:t,emit:n}){const r=e,o=n,i=a.useSlots(),s=Ks(),l=rs.useKeyModifier("Alt"),u=rs.useKeyModifier("Shift"),d=a.ref(),c=a.ref((r==null?void 0:r.modelValue)??void 0),p=a.computed(()=>d.value);a.watch(()=>c.value,x=>{c.value&&o("update:modelValue",[...x.map(S=>S==null?void 0:S[r.actionBarSelectionKey])])}),a.onMounted(()=>{r!=null&&r.modelValue&&a.watch(r.modelValue,x=>{c.value=x})});function h(x){if(!x&&r.actionBarSelection){s.setSelection(c.value.map(S=>S==null?void 0:S[r.actionBarSelectionKey]));return}x&&r.actionBarSelection&&s.setSelection(x.map(S=>S==null?void 0:S[r.actionBarSelectionKey]))}function m(x){var S;(S=p.value)==null||S.updatePage(x),o("updatePage",x)}function y(){var x,S;(x=p.value)==null||x.prevPage(),o("updatePage",(((S=p.value)==null?void 0:S.currentPaginationNumber)??2)-1)}function w(){var x,S;(x=p.value)==null||x.nextPage(),o("updatePage",(((S=p.value)==null?void 0:S.currentPaginationNumber)??0)+1)}function k(x){if(l.value&&c.value!==void 0){const S=c.value.findIndex(b=>b.id===x.id);if(S>-1){c.value.splice(S,1),h();return}c.value.push({...x,isSelected:void 0}),h();return}o("clickItem",x)}function _(x){var S;if(u&&c.value&&((S=c.value??[])==null?void 0:S.length)>1){const b=r.items.findIndex(T=>{var I,$;return T.id===(($=(I=c.value)==null?void 0:I[(c.value??[]).length-1])==null?void 0:$.id)}),N=r.items.findIndex(T=>T.id===x.id);r.items.slice(b,N).forEach(T=>{c.value.findIndex($=>$.id===T.id)===-1&&c.value.push({...T,isSelected:void 0})}),h()}}return t({dataTableInstance:p}),s.onResetSelection.value=x=>{(r==null?void 0:r.modelValue)!==void 0&&(c.value=x)},(x,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(Wm),a.mergeProps({ref_key:"dataTable",ref:d},{...x.$props,...x.$attrs},{"items-selected":c.value,"onUpdate:itemsSelected":[S[0]||(S[0]=b=>c.value=b),h],"hide-footer":!0,headers:x.headers,"checkbox-column-width":30,"rows-items":x.rowItems,"rows-per-page":x.rowsPerPage,"body-row-class-name":"drop-shadow rounded-xl",onClickRow:k,onSelectRow:_}),a.createSlots({loading:a.withCtx(()=>[a.createVNode(a.unref(ka),{size:"medium"})]),_:2},[a.renderList(Object.keys(a.unref(i)),(b,N)=>({name:b,fn:a.withCtx(T=>[a.renderSlot(x.$slots,b,a.normalizeProps(a.guardReactiveProps(T)))])}))]),1040,["items-selected","headers","rows-items","rows-per-page"]),p.value?(a.openBlock(),a.createBlock(WO,{key:0,"data-table":p.value,"current-page":x.currentPage,onNextPage:w,onPreviousPage:y,onUpdatePage:m},{results:a.withCtx(({results:b})=>[a.renderSlot(x.$slots,"footer-results",{results:b})]),_:3},8,["data-table","current-page"])):a.createCommentVNode("",!0)],2))}}),YO={default:["text-white"],danger:["text-red-500"]},GO=a.defineComponent({__name:"AppActionBarItem",props:{action:{}},setup(e){const t=e,n=Ks(),r=a.ref(null),o=a.ref(!1),i=a.ref(!1),s=a.computed(()=>i.value?ka:o.value?Gh:t.action.icon),l=a.computed(()=>t.action.type??"default");async function u(){var d,c,p;if(t.action.confirm&&!o.value){o.value=!0;return}i.value=!0,o.value=!1,await((c=(d=t.action).onClick)==null?void 0:c.call(d)),i.value=!1,(((p=t.action)==null?void 0:p.resetSelection)??!0)&&n.resetSelection()}return rs.onClickOutside(r,()=>{o.value=!1}),(d,c)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"actionBarItem",ref:r,class:a.normalizeClass([a.unref(YO)[l.value],"cursor-pointer px-3 py-4 hover:bg-black-100/20"]),onClick:u},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s.value),{class:a.normalizeClass([{"text-yellow-600":o.value},"h-5 w-5"]),size:"small"},null,8,["class"]))],2))}}),KO={class:"flex py-4.5 text-sm"},XO={class:"w-28 whitespace-nowrap pl-2","data-test-selection-text":""},JO={class:"flex"},Pc=a.defineComponent({__name:"AppActionBar",setup(e){const{selection:t,actions:n,isOpen:r,close:o,resetSelection:i,selectionText:s}=Ks(),l=a.ref([1]),u=a.computed(()=>s.value.replace(":selection",String(t.value.length)));function d(){l.value=[1],i()}function c(){i(),o()}return rs.onKeyStroke(["Escape"],p=>{p.preventDefault(),c()}),(p,h)=>{const m=a.resolveDirective("tippy");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"!translate-y-0":a.unref(t).length>0&&a.unref(r)},"fixed inset-x-0 top-0 z-100 -mt-14 flex h-14 -translate-y-24 items-center justify-between bg-secondary px-4 text-white transition-all ease-in-out md:sticky"])},[a.createElementVNode("div",KO,[a.createVNode(Dm,{modelValue:l.value,"onUpdate:modelValue":h[0]||(h[0]=y=>l.value=y),value:1,type:"checkbox",onChange:d},null,8,["modelValue"]),a.createElementVNode("div",XO,a.toDisplayString(u.value),1)]),a.createElementVNode("div",JO,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(n),(y,w)=>a.withDirectives((a.openBlock(),a.createBlock(GO,{key:`action-item-${w}`,action:y},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(y.icon),1)]),_:2},1032,["action"])),[[m,y.name]])),128))]),a.createElementVNode("div",null,[a.createVNode(a.unref(Fs),{class:"h-5 w-5 cursor-pointer",onClick:c})])],2)}}}),Fl=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"]))}}),ZO={class:"flex items-center justify-between border-zinc-200 sm:px-6"},QO=a.createElementVNode("span",{class:"sr-only"},"previous",-1),eN=a.createElementVNode("span",{class:"sr-only"},"next",-1),qm=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 m,y;return((y=(m=n.meta)==null?void 0:m.meta)==null?void 0:y.currentPage)??n.currentPage??1}),s=a.computed(()=>{var m,y;return((y=(m=n.meta)==null?void 0:m.meta)==null?void 0:y.lastPage)??n.lastPage??1}),l=a.computed(()=>{const m=i.value-o.value;return m>0?m:1}),u=a.computed(()=>{const m=i.value+o.value;return m<s.value?m:s.value}),d=a.computed(()=>{const m=i.value-1;return m>0?m:null}),c=a.computed(()=>{const m=i.value+1;return m<=s.value?m:null}),p=a.computed(()=>{const m=[];l.value>1&&(m.push(1),l.value>2&&m.push(0));for(let y=l.value;y<=u.value;y+=1)m.push(y);return u.value<s.value&&(u.value+1!==s.value&&m.push(0),m.push(s.value)),m});function h(m){m&&r("paginate",m)}return(m,y)=>(a.openBlock(),a.createElementBlock("div",ZO,[a.createElementVNode("div",null,[a.createElementVNode("nav",{class:a.normalizeClass([{"pointer-events-none opacity-50":!m.loaded},"flex rounded-lg border border-zinc-300"]),"aria-label":"Pagination"},[a.createVNode(Fl,{disabled:d.value===null,href:"#",class:"rounded-l-lg",onClick:y[0]||(y[0]=a.withModifiers(()=>r("previousPage"),["prevent"]))},{default:a.withCtx(()=>[QO,a.createVNode(a.unref(Qh),{class:"-mx-1.5 h-5 w-5 stroke-2","aria-hidden":"true"})]),_:1},8,["disabled"]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.value,w=>(a.openBlock(),a.createBlock(Fl,{key:`pagination-${w}`,as:w?"a":"span",active:w===i.value,href:"#",onClick:a.withModifiers(()=>h(w),["prevent"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(w||"..."),1)]),_:2},1032,["as","active","onClick"]))),128)),a.createVNode(Fl,{class:a.normalizeClass([{"cursor-not-allowed":c.value===null},"rounded-r-lg"]),disabled:c.value===null,href:"#",onClick:y[1]||(y[1]=a.withModifiers(()=>r("nextPage"),["prevent"]))},{default:a.withCtx(()=>[eN,a.createVNode(a.unref(a1),{class:"-mx-1.5 h-5 w-5 stroke-2","aria-hidden":"true"})]),_:1},8,["class","disabled"])],2)])]))}}),tN=["aria-checked","disabled"],nN=a.createElementVNode("span",{"aria-hidden":"true",class:"pointer-events-none inline-block h-5 w-5 translate-x-0 rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out group-aria-checked:!translate-x-6","data-test-handle":""},null,-1),rN=[nN],aN=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},rN,8,tN))}}),Hl={instances:a.ref([])};function Vf(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 oN(){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(em,{...n,onClose:i}),o.mount(r),Hl.instances.value.push({instance:o,element:r})}).finally(()=>{o&&setTimeout(()=>{Vf({instance:o,element:r})},500)})}async function t(){return Hl.instances.value.forEach(n=>Vf(n)),Promise.resolve()}return{...Hl,open:e,close:t}}const Ff={instances:a.ref([])};function Hf(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 iN(e,t){const n=a.ref();async function r(i){t&&(t.content=e),window.scrollTo(0,0);const s=document.createElement("div");document.body.append(s);let l=null,u=null;return new Promise(d=>{a.isRef(e)?u=e.value:(l=a.createApp(tm,{...t,...i,onClose:c=>{var p;(p=t==null?void 0:t.onClose)==null||p.call(t),d(c)}}),u=l.mount(s)),u.open(),n.value={ref:u,instance:l,element:s},Ff.instances.value.push(n.value)}).finally(()=>{l&&setTimeout(()=>{Hf({ref:u,instance:l,element:s})},500)})}async function o(){var i;return(i=n.value)==null||i.ref.close(),setTimeout(()=>{n.value&&Hf(n.value)},300),Promise.resolve()}return{...Ff,instance:n,open:r,close:o}}const hr={selection:a.shallowRef([]),actions:a.shallowRef([]),isOpen:a.shallowRef(!1),onResetSelection:a.shallowRef(),selectionText:a.shallowRef(":selection selected")};function Ks(){function e(s){hr.selection.value=s,i()}function t(s){hr.actions.value=s,i()}function n(){var s,l;hr.selection.value.splice(0),(l=(s=hr.onResetSelection).value)==null||l.call(s,hr.selection.value)}function r(s){hr.selectionText.value=s}function o(){hr.isOpen.value=!1}function i(){hr.isOpen.value=!0}return{...hr,resetSelection:n,setSelection:e,setSelectionText:r,setActions:t,open:i,close:o}}function vs(e){"@babel/helpers - typeof";return vs=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},vs(e)}function Ut(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uf(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 zt(e,t,n){return t&&Uf(e.prototype,t),n&&Uf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function oi(){return oi=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},oi.apply(this,arguments)}function _n(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&&Su(e,t)}function gs(e){return gs=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gs(e)}function Su(e,t){return Su=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},Su(e,t)}function sN(){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 lN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uN(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 lN(e)}function wn(e){var t=sN();return function(){var r=gs(e),o;if(t){var i=gs(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return uN(this,o)}}var Oc=function(){function e(){Ut(this,e)}return zt(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}(),Ym=function(){function e(t){Ut(this,e),this.namespace=t}return zt(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}(),Xs=function(e){_n(n,e);var t=wn(n);function n(r,o,i){var s;return Ut(this,n),s=t.call(this),s.name=o,s.pusher=r,s.options=i,s.eventFormatter=new Ym(s.options.namespace),s.subscribe(),s}return zt(n,[{key:"subscribe",value:function(){this.subscription=this.pusher.subscribe(this.name)}},{key:"unsubscribe",value:function(){this.pusher.unsubscribe(this.name)}},{key:"listen",value:function(o,i){return this.on(this.eventFormatter.format(o),i),this}},{key:"listenToAll",value:function(o){var i=this;return this.subscription.bind_global(function(s,l){if(!s.startsWith("pusher:")){var u=i.options.namespace.replace(/\./g,"\\"),d=s.startsWith(u)?s.substring(u.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}(Oc),cN=function(e){_n(n,e);var t=wn(n);function n(){return Ut(this,n),t.apply(this,arguments)}return zt(n,[{key:"whisper",value:function(o,i){return this.pusher.channels.channels[this.name].trigger("client-".concat(o),i),this}}]),n}(Xs),dN=function(e){_n(n,e);var t=wn(n);function n(){return Ut(this,n),t.apply(this,arguments)}return zt(n,[{key:"whisper",value:function(o,i){return this.pusher.channels.channels[this.name].trigger("client-".concat(o),i),this}}]),n}(Xs),fN=function(e){_n(n,e);var t=wn(n);function n(){return Ut(this,n),t.apply(this,arguments)}return zt(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}(Xs),Gm=function(e){_n(n,e);var t=wn(n);function n(r,o,i){var s;return Ut(this,n),s=t.call(this),s.events={},s.listeners={},s.name=o,s.socket=r,s.options=i,s.eventFormatter=new Ym(s.options.namespace),s.subscribe(),s}return zt(n,[{key:"subscribe",value:function(){this.socket.emit("subscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"unsubscribe",value:function(){this.unbind(),this.socket.emit("unsubscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"listen",value:function(o,i){return this.on(this.eventFormatter.format(o),i),this}},{key:"stopListening",value:function(o,i){return this.unbindEvent(this.eventFormatter.format(o),i),this}},{key:"subscribed",value:function(o){return this.on("connect",function(i){o(i)}),this}},{key:"error",value:function(o){return this}},{key:"on",value:function(o,i){var s=this;return this.listeners[o]=this.listeners[o]||[],this.events[o]||(this.events[o]=function(l,u){s.name===l&&s.listeners[o]&&s.listeners[o].forEach(function(d){return d(u)})},this.socket.on(o,this.events[o])),this.listeners[o].push(i),this}},{key:"unbind",value:function(){var o=this;Object.keys(this.events).forEach(function(i){o.unbindEvent(i)})}},{key:"unbindEvent",value:function(o,i){this.listeners[o]=this.listeners[o]||[],i&&(this.listeners[o]=this.listeners[o].filter(function(s){return s!==i})),(!i||this.listeners[o].length===0)&&(this.events[o]&&(this.socket.removeListener(o,this.events[o]),delete this.events[o]),delete this.listeners[o])}}]),n}(Oc),Km=function(e){_n(n,e);var t=wn(n);function n(){return Ut(this,n),t.apply(this,arguments)}return zt(n,[{key:"whisper",value:function(o,i){return this.socket.emit("client event",{channel:this.name,event:"client-".concat(o),data:i}),this}}]),n}(Gm),pN=function(e){_n(n,e);var t=wn(n);function n(){return Ut(this,n),t.apply(this,arguments)}return zt(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}(Km),ys=function(e){_n(n,e);var t=wn(n);function n(){return Ut(this,n),t.apply(this,arguments)}return zt(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}(Oc),zf=function(e){_n(n,e);var t=wn(n);function n(){return Ut(this,n),t.apply(this,arguments)}return zt(n,[{key:"whisper",value:function(o,i){return this}}]),n}(ys),hN=function(e){_n(n,e);var t=wn(n);function n(){return Ut(this,n),t.apply(this,arguments)}return zt(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}(ys),Nc=function(){function e(t){Ut(this,e),this._defaultOptions={auth:{headers:{}},authEndpoint:"/broadcasting/auth",userAuthentication:{endpoint:"/broadcasting/user-auth",headers:{}},broadcaster:"pusher",csrfToken:null,bearerToken:null,host:null,key:null,namespace:"App.Events"},this.setOptions(t),this.connect()}return zt(e,[{key:"setOptions",value:function(n){this.options=oi(this._defaultOptions,n);var r=this.csrfToken();return r&&(this.options.auth.headers["X-CSRF-TOKEN"]=r,this.options.userAuthentication.headers["X-CSRF-TOKEN"]=r),r=this.options.bearerToken,r&&(this.options.auth.headers.Authorization="Bearer "+r,this.options.userAuthentication.headers.Authorization="Bearer "+r),n}},{key:"csrfToken",value:function(){var n;return typeof window<"u"&&window.Laravel&&window.Laravel.csrfToken?window.Laravel.csrfToken:this.options.csrfToken?this.options.csrfToken:typeof document<"u"&&typeof document.querySelector=="function"&&(n=document.querySelector('meta[name="csrf-token"]'))?n.getAttribute("content"):null}}]),e}(),jf=function(e){_n(n,e);var t=wn(n);function n(){var r;return Ut(this,n),r=t.apply(this,arguments),r.channels={},r}return zt(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 Xs(this.pusher,o,this.options)),this.channels[o]}},{key:"privateChannel",value:function(o){return this.channels["private-"+o]||(this.channels["private-"+o]=new cN(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 dN(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 fN(this.pusher,"presence-"+o,this.options)),this.channels["presence-"+o]}},{key:"leave",value:function(o){var i=this,s=[o,"private-"+o,"private-encrypted-"+o,"presence-"+o];s.forEach(function(l,u){i.leaveChannel(l)})}},{key:"leaveChannel",value:function(o){this.channels[o]&&(this.channels[o].unsubscribe(),delete this.channels[o])}},{key:"socketId",value:function(){return this.pusher.connection.socket_id}},{key:"disconnect",value:function(){this.pusher.disconnect()}}]),n}(Nc),mN=function(e){_n(n,e);var t=wn(n);function n(){var r;return Ut(this,n),r=t.apply(this,arguments),r.channels={},r}return zt(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 Gm(this.socket,o,this.options)),this.channels[o]}},{key:"privateChannel",value:function(o){return this.channels["private-"+o]||(this.channels["private-"+o]=new Km(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 pN(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}(Nc),vN=function(e){_n(n,e);var t=wn(n);function n(){var r;return Ut(this,n),r=t.apply(this,arguments),r.channels={},r}return zt(n,[{key:"connect",value:function(){}},{key:"listen",value:function(o,i,s){return new ys}},{key:"channel",value:function(o){return new ys}},{key:"privateChannel",value:function(o){return new zf}},{key:"encryptedPrivateChannel",value:function(o){return new zf}},{key:"presenceChannel",value:function(o){return new hN}},{key:"leave",value:function(o){}},{key:"leaveChannel",value:function(o){}},{key:"socketId",value:function(){return"fake-socket-id"}},{key:"disconnect",value:function(){}}]),n}(Nc),gN=function(){function e(t){Ut(this,e),this.options=t,this.connect(),this.options.withoutInterceptors||this.registerInterceptors()}return zt(e,[{key:"channel",value:function(n){return this.connector.channel(n)}},{key:"connect",value:function(){if(this.options.broadcaster=="reverb")this.connector=new jf(oi(oi({},this.options),{cluster:""}));else if(this.options.broadcaster=="pusher")this.connector=new jf(this.options);else if(this.options.broadcaster=="socket.io")this.connector=new mN(this.options);else if(this.options.broadcaster=="null")this.connector=new vN(this.options);else if(typeof this.options.broadcaster=="function")this.connector=new this.options.broadcaster(this.options);else throw new Error("Broadcaster ".concat(vs(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){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":vs(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}(),Xm={exports:{}};/*!
|
|
75
62
|
* Pusher JavaScript Library v8.4.0-rc2
|
|
76
63
|
* https://pusher.com/
|
|
77
64
|
*
|
|
78
65
|
* Copyright 2020, Pusher
|
|
79
66
|
* Released under the MIT licence.
|
|
80
|
-
*/(function(e,t){(function(r,o){e.exports=o()})(window,function(){return function(n){var r={};function o(i){if(r[i])return r[i].exports;var s=r[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=n,o.c=r,o.d=function(i,s,l){o.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:l})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,s){if(s&1&&(i=o(i)),s&8||s&4&&typeof i=="object"&&i&&i.__esModule)return i;var l=Object.create(null);if(o.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:i}),s&2&&typeof i!="string")for(var u in i)o.d(l,u,(function(c){return i[c]}).bind(null,u));return l},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=2)}([function(n,r,o){var i=this&&this.__extends||function(){var k=function(b,w){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,O){T.__proto__=O}||function(T,O){for(var _ in O)O.hasOwnProperty(_)&&(T[_]=O[_])},k(b,w)};return function(b,w){k(b,w);function T(){this.constructor=b}b.prototype=w===null?Object.create(w):(T.prototype=w.prototype,new T)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=256,l=function(){function k(b){b===void 0&&(b="="),this._paddingCharacter=b}return k.prototype.encodedLength=function(b){return this._paddingCharacter?(b+2)/3*4|0:(b*8+5)/6|0},k.prototype.encode=function(b){for(var w="",T=0;T<b.length-2;T+=3){var O=b[T]<<16|b[T+1]<<8|b[T+2];w+=this._encodeByte(O>>>3*6&63),w+=this._encodeByte(O>>>2*6&63),w+=this._encodeByte(O>>>1*6&63),w+=this._encodeByte(O>>>0*6&63)}var _=b.length-T;if(_>0){var O=b[T]<<16|(_===2?b[T+1]<<8:0);w+=this._encodeByte(O>>>3*6&63),w+=this._encodeByte(O>>>2*6&63),_===2?w+=this._encodeByte(O>>>1*6&63):w+=this._paddingCharacter||"",w+=this._paddingCharacter||""}return w},k.prototype.maxDecodedLength=function(b){return this._paddingCharacter?b/4*3|0:(b*6+7)/8|0},k.prototype.decodedLength=function(b){return this.maxDecodedLength(b.length-this._getPaddingLength(b))},k.prototype.decode=function(b){if(b.length===0)return new Uint8Array(0);for(var w=this._getPaddingLength(b),T=b.length-w,O=new Uint8Array(this.maxDecodedLength(T)),_=0,B=0,C=0,I=0,F=0,q=0,W=0;B<T-4;B+=4)I=this._decodeChar(b.charCodeAt(B+0)),F=this._decodeChar(b.charCodeAt(B+1)),q=this._decodeChar(b.charCodeAt(B+2)),W=this._decodeChar(b.charCodeAt(B+3)),O[_++]=I<<2|F>>>4,O[_++]=F<<4|q>>>2,O[_++]=q<<6|W,C|=I&s,C|=F&s,C|=q&s,C|=W&s;if(B<T-1&&(I=this._decodeChar(b.charCodeAt(B)),F=this._decodeChar(b.charCodeAt(B+1)),O[_++]=I<<2|F>>>4,C|=I&s,C|=F&s),B<T-2&&(q=this._decodeChar(b.charCodeAt(B+2)),O[_++]=F<<4|q>>>2,C|=q&s),B<T-3&&(W=this._decodeChar(b.charCodeAt(B+3)),O[_++]=q<<6|W,C|=W&s),C!==0)throw new Error("Base64Coder: incorrect characters for decoding");return O},k.prototype._encodeByte=function(b){var w=b;return w+=65,w+=25-b>>>8&0-65-26+97,w+=51-b>>>8&26-97-52+48,w+=61-b>>>8&52-48-62+43,w+=62-b>>>8&62-43-63+47,String.fromCharCode(w)},k.prototype._decodeChar=function(b){var w=s;return w+=(42-b&b-44)>>>8&-s+b-43+62,w+=(46-b&b-48)>>>8&-s+b-47+63,w+=(47-b&b-58)>>>8&-s+b-48+52,w+=(64-b&b-91)>>>8&-s+b-65+0,w+=(96-b&b-123)>>>8&-s+b-97+26,w},k.prototype._getPaddingLength=function(b){var w=0;if(this._paddingCharacter){for(var T=b.length-1;T>=0&&b[T]===this._paddingCharacter;T--)w++;if(b.length<4||w>2)throw new Error("Base64Coder: incorrect padding")}return w},k}();r.Coder=l;var u=new l;function c(k){return u.encode(k)}r.encode=c;function f(k){return u.decode(k)}r.decode=f;var p=function(k){i(b,k);function b(){return k!==null&&k.apply(this,arguments)||this}return b.prototype._encodeByte=function(w){var T=w;return T+=65,T+=25-w>>>8&0-65-26+97,T+=51-w>>>8&26-97-52+48,T+=61-w>>>8&52-48-62+45,T+=62-w>>>8&62-45-63+95,String.fromCharCode(T)},b.prototype._decodeChar=function(w){var T=s;return T+=(44-w&w-46)>>>8&-s+w-45+62,T+=(94-w&w-96)>>>8&-s+w-95+63,T+=(47-w&w-58)>>>8&-s+w-48+52,T+=(64-w&w-91)>>>8&-s+w-65+0,T+=(96-w&w-123)>>>8&-s+w-97+26,T},b}(l);r.URLSafeCoder=p;var h=new p;function m(k){return h.encode(k)}r.encodeURLSafe=m;function y(k){return h.decode(k)}r.decodeURLSafe=y,r.encodedLength=function(k){return u.encodedLength(k)},r.maxDecodedLength=function(k){return u.maxDecodedLength(k)},r.decodedLength=function(k){return u.decodedLength(k)}},function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i="utf8: invalid string",s="utf8: invalid source encoding";function l(f){for(var p=new Uint8Array(u(f)),h=0,m=0;m<f.length;m++){var y=f.charCodeAt(m);y<128?p[h++]=y:y<2048?(p[h++]=192|y>>6,p[h++]=128|y&63):y<55296?(p[h++]=224|y>>12,p[h++]=128|y>>6&63,p[h++]=128|y&63):(m++,y=(y&1023)<<10,y|=f.charCodeAt(m)&1023,y+=65536,p[h++]=240|y>>18,p[h++]=128|y>>12&63,p[h++]=128|y>>6&63,p[h++]=128|y&63)}return p}r.encode=l;function u(f){for(var p=0,h=0;h<f.length;h++){var m=f.charCodeAt(h);if(m<128)p+=1;else if(m<2048)p+=2;else if(m<55296)p+=3;else if(m<=57343){if(h>=f.length-1)throw new Error(i);h++,p+=4}else throw new Error(i)}return p}r.encodedLength=u;function c(f){for(var p=[],h=0;h<f.length;h++){var m=f[h];if(m&128){var y=void 0;if(m<224){if(h>=f.length)throw new Error(s);var k=f[++h];if((k&192)!==128)throw new Error(s);m=(m&31)<<6|k&63,y=128}else if(m<240){if(h>=f.length-1)throw new Error(s);var k=f[++h],b=f[++h];if((k&192)!==128||(b&192)!==128)throw new Error(s);m=(m&15)<<12|(k&63)<<6|b&63,y=2048}else if(m<248){if(h>=f.length-2)throw new Error(s);var k=f[++h],b=f[++h],w=f[++h];if((k&192)!==128||(b&192)!==128||(w&192)!==128)throw new Error(s);m=(m&15)<<18|(k&63)<<12|(b&63)<<6|w&63,y=65536}else throw new Error(s);if(m<y||m>=55296&&m<=57343)throw new Error(s);if(m>=65536){if(m>1114111)throw new Error(s);m-=65536,p.push(String.fromCharCode(55296|m>>10)),m=56320|m&1023}}p.push(String.fromCharCode(m))}return p.join("")}r.decode=c},function(n,r,o){n.exports=o(3).default},function(n,r,o){o.r(r);class i{constructor(d,v){this.lastId=0,this.prefix=d,this.name=v}create(d){this.lastId++;var v=this.lastId,x=this.prefix+v,A=this.name+"["+v+"]",te=!1,ue=function(){te||(d.apply(null,arguments),te=!0)};return this[v]=ue,{number:v,id:x,name:A,callback:ue}}remove(d){delete this[d.number]}}var s=new i("_pusher_script_","Pusher.ScriptReceivers"),l={VERSION:"8.4.0-rc2",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},u=l;class c{constructor(d){this.options=d,this.receivers=d.receivers||s,this.loading={}}load(d,v,x){var A=this;if(A.loading[d]&&A.loading[d].length>0)A.loading[d].push(x);else{A.loading[d]=[x];var te=Ae.createScriptRequest(A.getPath(d,v)),ue=A.receivers.create(function(_e){if(A.receivers.remove(ue),A.loading[d]){var Re=A.loading[d];delete A.loading[d];for(var Ze=function(xt){xt||te.cleanup()},rt=0;rt<Re.length;rt++)Re[rt](_e,Ze)}});te.send(ue)}}getRoot(d){var v,x=Ae.getDocument().location.protocol;return d&&d.useTLS||x==="https:"?v=this.options.cdn_https:v=this.options.cdn_http,v.replace(/\/*$/,"")+"/"+this.options.version}getPath(d,v){return this.getRoot(v)+"/"+d+this.options.suffix+".js"}}var f=new i("_pusher_dependencies","Pusher.DependenciesReceivers"),p=new c({cdn_http:u.cdn_http,cdn_https:u.cdn_https,version:u.VERSION,suffix:u.dependency_suffix,receivers:f});const h={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}};var y={buildLogSuffix:function(g){const d="See:",v=h.urls[g];if(!v)return"";let x;return v.fullUrl?x=v.fullUrl:v.path&&(x=h.baseUrl+v.path),x?`${d} ${x}`:""}},k;(function(g){g.UserAuthentication="user-authentication",g.ChannelAuthorization="channel-authorization"})(k||(k={}));class b extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class w extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class T extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class O extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class _ extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class B extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class C extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class I extends Error{constructor(d){super(d),Object.setPrototypeOf(this,new.target.prototype)}}class F extends Error{constructor(d,v){super(v),this.status=d,Object.setPrototypeOf(this,new.target.prototype)}}var W=function(g,d,v,x,A){const te=Ae.createXHR();te.open("POST",v.endpoint,!0),te.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var ue in v.headers)te.setRequestHeader(ue,v.headers[ue]);if(v.headersProvider!=null){let _e=v.headersProvider();for(var ue in _e)te.setRequestHeader(ue,_e[ue])}return te.onreadystatechange=function(){if(te.readyState===4)if(te.status===200){let _e,Re=!1;try{_e=JSON.parse(te.responseText),Re=!0}catch{A(new F(200,`JSON returned from ${x.toString()} endpoint was invalid, yet status code was 200. Data was: ${te.responseText}`),null)}Re&&A(null,_e)}else{let _e="";switch(x){case k.UserAuthentication:_e=y.buildLogSuffix("authenticationEndpoint");break;case k.ChannelAuthorization:_e=`Clients must be authorized to join private or presence channels. ${y.buildLogSuffix("authorizationEndpoint")}`;break}A(new F(te.status,`Unable to retrieve auth string from ${x.toString()} endpoint - received status: ${te.status} from ${v.endpoint}. ${_e}`),null)}},te.send(d),te};function M(g){return j(X(g))}var D=String.fromCharCode,$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Y=function(g){var d=g.charCodeAt(0);return d<128?g:d<2048?D(192|d>>>6)+D(128|d&63):D(224|d>>>12&15)+D(128|d>>>6&63)+D(128|d&63)},X=function(g){return g.replace(/[^\x00-\x7F]/g,Y)},K=function(g){var d=[0,2,1][g.length%3],v=g.charCodeAt(0)<<16|(g.length>1?g.charCodeAt(1):0)<<8|(g.length>2?g.charCodeAt(2):0),x=[$.charAt(v>>>18),$.charAt(v>>>12&63),d>=2?"=":$.charAt(v>>>6&63),d>=1?"=":$.charAt(v&63)];return x.join("")},j=window.btoa||function(g){return g.replace(/[\s\S]{1,3}/g,K)};class U{constructor(d,v,x,A){this.clear=v,this.timer=d(()=>{this.timer&&(this.timer=A(this.timer))},x)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}var S=U;function H(g){window.clearTimeout(g)}function Z(g){window.clearInterval(g)}class Q extends S{constructor(d,v){super(setTimeout,H,d,function(x){return v(),null})}}class V extends S{constructor(d,v){super(setInterval,Z,d,function(x){return v(),x})}}var E={now(){return Date.now?Date.now():new Date().valueOf()},defer(g){return new Q(0,g)},method(g,...d){var v=Array.prototype.slice.call(arguments,1);return function(x){return x[g].apply(x,v.concat(arguments))}}},P=E;function R(g,...d){for(var v=0;v<d.length;v++){var x=d[v];for(var A in x)x[A]&&x[A].constructor&&x[A].constructor===Object?g[A]=R(g[A]||{},x[A]):g[A]=x[A]}return g}function G(){for(var g=["Pusher"],d=0;d<arguments.length;d++)typeof arguments[d]=="string"?g.push(arguments[d]):g.push(me(arguments[d]));return g.join(" : ")}function ie(g,d){var v=Array.prototype.indexOf;if(g===null)return-1;if(v&&g.indexOf===v)return g.indexOf(d);for(var x=0,A=g.length;x<A;x++)if(g[x]===d)return x;return-1}function oe(g,d){for(var v in g)Object.prototype.hasOwnProperty.call(g,v)&&d(g[v],v,g)}function Ie(g){var d=[];return oe(g,function(v,x){d.push(x)}),d}function Ee(g){var d=[];return oe(g,function(v){d.push(v)}),d}function fe(g,d,v){for(var x=0;x<g.length;x++)d.call(v||window,g[x],x,g)}function Be(g,d){for(var v=[],x=0;x<g.length;x++)v.push(d(g[x],x,g,v));return v}function $e(g,d){var v={};return oe(g,function(x,A){v[A]=d(x)}),v}function ze(g,d){d=d||function(A){return!!A};for(var v=[],x=0;x<g.length;x++)d(g[x],x,g,v)&&v.push(g[x]);return v}function Ge(g,d){var v={};return oe(g,function(x,A){(d&&d(x,A,g,v)||x)&&(v[A]=x)}),v}function Ke(g){var d=[];return oe(g,function(v,x){d.push([x,v])}),d}function ve(g,d){for(var v=0;v<g.length;v++)if(d(g[v],v,g))return!0;return!1}function Qe(g,d){for(var v=0;v<g.length;v++)if(!d(g[v],v,g))return!1;return!0}function Te(g){return $e(g,function(d){return typeof d=="object"&&(d=me(d)),encodeURIComponent(M(d.toString()))})}function se(g){var d=Ge(g,function(x){return x!==void 0}),v=Be(Ke(Te(d)),P.method("join","=")).join("&");return v}function ce(g){var d=[],v=[];return function x(A,te){var ue,_e,Re;switch(typeof A){case"object":if(!A)return null;for(ue=0;ue<d.length;ue+=1)if(d[ue]===A)return{$ref:v[ue]};if(d.push(A),v.push(te),Object.prototype.toString.apply(A)==="[object Array]")for(Re=[],ue=0;ue<A.length;ue+=1)Re[ue]=x(A[ue],te+"["+ue+"]");else{Re={};for(_e in A)Object.prototype.hasOwnProperty.call(A,_e)&&(Re[_e]=x(A[_e],te+"["+JSON.stringify(_e)+"]"))}return Re;case"number":case"string":case"boolean":return A}}(g,"$")}function me(g){try{return JSON.stringify(g)}catch{return JSON.stringify(ce(g))}}class Pt{constructor(){this.globalLog=d=>{window.console&&window.console.log&&window.console.log(d)}}debug(...d){this.log(this.globalLog,d)}warn(...d){this.log(this.globalLogWarn,d)}error(...d){this.log(this.globalLogError,d)}globalLogWarn(d){window.console&&window.console.warn?window.console.warn(d):this.globalLog(d)}globalLogError(d){window.console&&window.console.error?window.console.error(d):this.globalLogWarn(d)}log(d,...v){var x=G.apply(this,arguments);Ts.log?Ts.log(x):Ts.logToConsole&&d.bind(this)(x)}}var xe=new Pt,Mt=function(g,d,v,x,A){(v.headers!==void 0||v.headersProvider!=null)&&xe.warn(`To send headers with the ${x.toString()} request, you must use AJAX, rather than JSONP.`);var te=g.nextAuthCallbackID.toString();g.nextAuthCallbackID++;var ue=g.getDocument(),_e=ue.createElement("script");g.auth_callbacks[te]=function(rt){A(null,rt)};var Re="Pusher.auth_callbacks['"+te+"']";_e.src=v.endpoint+"?callback="+encodeURIComponent(Re)+"&"+d;var Ze=ue.getElementsByTagName("head")[0]||ue.documentElement;Ze.insertBefore(_e,Ze.firstChild)},Ut=Mt;class Rt{constructor(d){this.src=d}send(d){var v=this,x="Error loading "+v.src;v.script=document.createElement("script"),v.script.id=d.id,v.script.src=v.src,v.script.type="text/javascript",v.script.charset="UTF-8",v.script.addEventListener?(v.script.onerror=function(){d.callback(x)},v.script.onload=function(){d.callback(null)}):v.script.onreadystatechange=function(){(v.script.readyState==="loaded"||v.script.readyState==="complete")&&d.callback(null)},v.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(v.errorScript=document.createElement("script"),v.errorScript.id=d.id+"_error",v.errorScript.text=d.name+"('"+x+"');",v.script.async=v.errorScript.async=!1):v.script.async=!0;var A=document.getElementsByTagName("head")[0];A.insertBefore(v.script,A.firstChild),v.errorScript&&A.insertBefore(v.errorScript,v.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class zt{constructor(d,v){this.url=d,this.data=v}send(d){if(!this.request){var v=se(this.data),x=this.url+"/"+d.number+"?"+v;this.request=Ae.createScriptRequest(x),this.request.send(d)}}cleanup(){this.request&&this.request.cleanup()}}var kn=function(g,d){return function(v,x){var A="http"+(d?"s":"")+"://",te=A+(g.host||g.options.host)+g.options.path,ue=Ae.createJSONPRequest(te,v),_e=Ae.ScriptReceivers.create(function(Re,Ze){s.remove(_e),ue.cleanup(),Ze&&Ze.host&&(g.host=Ze.host),x&&x(Re,Ze)});ue.send(_e)}},Sn={name:"jsonp",getAgent:kn},Et=Sn;function L(g,d,v){var x=g+(d.useTLS?"s":""),A=d.useTLS?d.hostTLS:d.hostNonTLS;return x+"://"+A+v}function N(g,d){var v="/app/"+g,x="?protocol="+u.PROTOCOL+"&client=js&version="+u.VERSION+(d?"&"+d:"");return v+x}var ee={getInitial:function(g,d){var v=(d.httpPath||"")+N(g,"flash=false");return L("ws",d,v)}},re={getInitial:function(g,d){var v=(d.httpPath||"/pusher")+N(g);return L("http",d,v)}},ge={getInitial:function(g,d){return L("http",d,d.httpPath||"/pusher")},getPath:function(g,d){return N(g)}};class we{constructor(){this._callbacks={}}get(d){return this._callbacks[qe(d)]}add(d,v,x){var A=qe(d);this._callbacks[A]=this._callbacks[A]||[],this._callbacks[A].push({fn:v,context:x})}remove(d,v,x){if(!d&&!v&&!x){this._callbacks={};return}var A=d?[qe(d)]:Ie(this._callbacks);v||x?this.removeCallback(A,v,x):this.removeAllCallbacks(A)}removeCallback(d,v,x){fe(d,function(A){this._callbacks[A]=ze(this._callbacks[A]||[],function(te){return v&&v!==te.fn||x&&x!==te.context}),this._callbacks[A].length===0&&delete this._callbacks[A]},this)}removeAllCallbacks(d){fe(d,function(v){delete this._callbacks[v]},this)}}function qe(g){return"_"+g}class J{constructor(d){this.callbacks=new we,this.global_callbacks=[],this.failThrough=d}bind(d,v,x){return this.callbacks.add(d,v,x),this}bind_global(d){return this.global_callbacks.push(d),this}unbind(d,v,x){return this.callbacks.remove(d,v,x),this}unbind_global(d){return d?(this.global_callbacks=ze(this.global_callbacks||[],v=>v!==d),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(d,v,x){for(var A=0;A<this.global_callbacks.length;A++)this.global_callbacks[A](d,v);var te=this.callbacks.get(d),ue=[];if(x?ue.push(v,x):v&&ue.push(v),te&&te.length>0)for(var A=0;A<te.length;A++)te[A].fn.apply(te[A].context||window,ue);else this.failThrough&&this.failThrough(d,v);return this}}class le extends J{constructor(d,v,x,A,te){super(),this.initialize=Ae.transportConnectionInitializer,this.hooks=d,this.name=v,this.priority=x,this.key=A,this.options=te,this.state="new",this.timeline=te.timeline,this.activityTimeout=te.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return!!this.hooks.handlesActivityChecks}supportsPing(){return!!this.hooks.supportsPing}connect(){if(this.socket||this.state!=="initialized")return!1;var d=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(d,this.options)}catch(v){return P.defer(()=>{this.onError(v),this.changeState("closed")}),!1}return this.bindListeners(),xe.debug("Connecting",{transport:this.name,url:d}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(d){return this.state==="open"?(P.defer(()=>{this.socket&&this.socket.send(d)}),!0):!1}ping(){this.state==="open"&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(d){this.emit("error",{type:"WebSocketError",error:d}),this.timeline.error(this.buildTimelineMessage({error:d.toString()}))}onClose(d){d?this.changeState("closed",{code:d.code,reason:d.reason,wasClean:d.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(d){this.emit("message",d)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=d=>{this.onError(d)},this.socket.onclose=d=>{this.onClose(d)},this.socket.onmessage=d=>{this.onMessage(d)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(d,v){this.state=d,this.timeline.info(this.buildTimelineMessage({state:d,params:v})),this.emit(d,v)}buildTimelineMessage(d){return R({cid:this.id},d)}}class Le{constructor(d){this.hooks=d}isSupported(d){return this.hooks.isSupported(d)}createConnection(d,v,x,A){return new le(this.hooks,d,v,x,A)}}var De=new Le({urls:ee,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!Ae.getWebSocketAPI()},isSupported:function(){return!!Ae.getWebSocketAPI()},getSocket:function(g){return Ae.createWebSocket(g)}}),st={urls:re,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},pe=R({getSocket:function(g){return Ae.HTTPFactory.createStreamingSocket(g)}},st),mt=R({getSocket:function(g){return Ae.HTTPFactory.createPollingSocket(g)}},st),Me={isSupported:function(){return Ae.isXHRSupported()}},ln=new Le(R({},pe,Me)),At=new Le(R({},mt,Me)),Va={ws:De,xhr_streaming:ln,xhr_polling:At},Zn=Va,Fa=new Le({file:"sockjs",urls:ge,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(g,d){return new window.SockJS(g,null,{js_path:p.getPath("sockjs",{useTLS:d.useTLS}),ignore_null_origin:d.ignoreNullOrigin})},beforeOpen:function(g,d){g.send(JSON.stringify({path:d}))}}),rn={isSupported:function(g){var d=Ae.isXDRSupported(g.useTLS);return d}},Qr=new Le(R({},pe,rn)),Se=new Le(R({},mt,rn));Zn.xdr_streaming=Qr,Zn.xdr_polling=Se,Zn.sockjs=Fa;var jt=Zn;class be extends J{constructor(){super();var d=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){d.emit("online")},!1),window.addEventListener("offline",function(){d.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var vt=new be;class it{constructor(d,v,x){this.manager=d,this.transport=v,this.minPingDelay=x.minPingDelay,this.maxPingDelay=x.maxPingDelay,this.pingDelay=void 0}createConnection(d,v,x,A){A=R({},A,{activityTimeout:this.pingDelay});var te=this.transport.createConnection(d,v,x,A),ue=null,_e=function(){te.unbind("open",_e),te.bind("closed",Re),ue=P.now()},Re=Ze=>{if(te.unbind("closed",Re),Ze.code===1002||Ze.code===1003)this.manager.reportDeath();else if(!Ze.wasClean&&ue){var rt=P.now()-ue;rt<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(rt/2,this.minPingDelay))}};return te.bind("open",_e),te}isSupported(d){return this.manager.isAlive()&&this.transport.isSupported(d)}}const er={decodeMessage:function(g){try{var d=JSON.parse(g.data),v=d.data;if(typeof v=="string")try{v=JSON.parse(d.data)}catch{}var x={event:d.event,channel:d.channel,data:v};return d.user_id&&(x.user_id=d.user_id),x}catch(A){throw{type:"MessageParseError",error:A,data:g.data}}},encodeMessage:function(g){return JSON.stringify(g)},processHandshake:function(g){var d=er.decodeMessage(g);if(d.event==="pusher:connection_established"){if(!d.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:d.data.socket_id,activityTimeout:d.data.activity_timeout*1e3}}else{if(d.event==="pusher:error")return{action:this.getCloseAction(d.data),error:this.getCloseError(d.data)};throw"Invalid handshake"}},getCloseAction:function(g){return g.code<4e3?g.code>=1002&&g.code<=1004?"backoff":null:g.code===4e3?"tls_only":g.code<4100?"refused":g.code<4200?"backoff":g.code<4300?"retry":"refused"},getCloseError:function(g){return g.code!==1e3&&g.code!==1001?{type:"PusherError",data:{code:g.code,message:g.reason||g.message}}:null}};var Gt=er;class Ha extends J{constructor(d,v){super(),this.id=d,this.transport=v,this.activityTimeout=v.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(d){return this.transport.send(d)}send_event(d,v,x){var A={event:d,data:v};return x&&(A.channel=x),xe.debug("Event sent",A),this.send(Gt.encodeMessage(A))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var d={message:x=>{var A;try{A=Gt.decodeMessage(x)}catch(te){this.emit("error",{type:"MessageParseError",error:te,data:x.data})}if(A!==void 0){switch(xe.debug("Event recd",A),A.event){case"pusher:error":this.emit("error",{type:"PusherError",data:A.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",A)}},activity:()=>{this.emit("activity")},error:x=>{this.emit("error",x)},closed:x=>{v(),x&&x.code&&this.handleCloseEvent(x),this.transport=null,this.emit("closed")}},v=()=>{oe(d,(x,A)=>{this.transport.unbind(A,x)})};oe(d,(x,A)=>{this.transport.bind(A,x)})}handleCloseEvent(d){var v=Gt.getCloseAction(d),x=Gt.getCloseError(d);x&&this.emit("error",x),v&&this.emit(v,{action:v,error:x})}}class _s{constructor(d,v){this.transport=d,this.callback=v,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=d=>{this.unbindListeners();var v;try{v=Gt.processHandshake(d)}catch(x){this.finish("error",{error:x}),this.transport.close();return}v.action==="connected"?this.finish("connected",{connection:new Ha(v.id,this.transport),activityTimeout:v.activityTimeout}):(this.finish(v.action,{error:v.error}),this.transport.close())},this.onClosed=d=>{this.unbindListeners();var v=Gt.getCloseAction(d)||"backoff",x=Gt.getCloseError(d);this.finish(v,{error:x})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(d,v){this.callback(R({transport:this.transport,action:d},v))}}class Zr{constructor(d,v){this.timeline=d,this.options=v||{}}send(d,v){this.timeline.isEmpty()||this.timeline.send(Ae.TimelineTransport.getAgent(this,d),v)}}class ea extends J{constructor(d,v){super(function(x,A){xe.debug("No callbacks on "+d+" for "+x)}),this.name=d,this.pusher=v,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(d,v){return v(null,{auth:""})}trigger(d,v){if(d.indexOf("client-")!==0)throw new b("Event '"+d+"' does not start with 'client-'");if(!this.subscribed){var x=y.buildLogSuffix("triggeringClientEvents");xe.warn(`Client event triggered before channel 'subscription_succeeded' event . ${x}`)}return this.pusher.send_event(d,v,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(d){var v=d.event,x=d.data;if(v==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(d);else if(v==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(d);else if(v.indexOf("pusher_internal:")!==0){var A={};this.emit(v,x,A)}}handleSubscriptionSucceededEvent(d){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",d.data)}handleSubscriptionCountEvent(d){d.data.subscription_count&&(this.subscriptionCount=d.data.subscription_count),this.emit("pusher:subscription_count",d.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(d,v)=>{d?(this.subscriptionPending=!1,xe.error(d.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:d.message},d instanceof F?{status:d.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:v.auth,channel_data:v.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class z extends ea{authorize(d,v){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:d},v)}}class de{constructor(){this.reset()}get(d){return Object.prototype.hasOwnProperty.call(this.members,d)?{id:d,info:this.members[d]}:null}each(d){oe(this.members,(v,x)=>{d(this.get(x))})}setMyID(d){this.myID=d}onSubscription(d){this.members=d.presence.hash,this.count=d.presence.count,this.me=this.get(this.myID)}addMember(d){return this.get(d.user_id)===null&&this.count++,this.members[d.user_id]=d.user_info,this.get(d.user_id)}removeMember(d){var v=this.get(d.user_id);return v&&(delete this.members[d.user_id],this.count--),v}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var Ve=function(g,d,v,x){function A(te){return te instanceof v?te:new v(function(ue){ue(te)})}return new(v||(v=Promise))(function(te,ue){function _e(rt){try{Ze(x.next(rt))}catch(xt){ue(xt)}}function Re(rt){try{Ze(x.throw(rt))}catch(xt){ue(xt)}}function Ze(rt){rt.done?te(rt.value):A(rt.value).then(_e,Re)}Ze((x=x.apply(g,d||[])).next())})};class gt extends z{constructor(d,v){super(d,v),this.members=new de}authorize(d,v){super.authorize(d,(x,A)=>Ve(this,void 0,void 0,function*(){if(!x)if(A=A,A.channel_data!=null){var te=JSON.parse(A.channel_data);this.members.setMyID(te.user_id)}else if(yield this.pusher.user.signinDonePromise,this.pusher.user.user_data!=null)this.members.setMyID(this.pusher.user.user_data.id);else{let ue=y.buildLogSuffix("authorizationEndpoint");xe.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${ue}, or the user should be signed in.`),v("Invalid auth response");return}v(x,A)}))}handleEvent(d){var v=d.event;if(v.indexOf("pusher_internal:")===0)this.handleInternalEvent(d);else{var x=d.data,A={};d.user_id&&(A.user_id=d.user_id),this.emit(v,x,A)}}handleInternalEvent(d){var v=d.event,x=d.data;switch(v){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(d);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(d);break;case"pusher_internal:member_added":var A=this.members.addMember(x);this.emit("pusher:member_added",A);break;case"pusher_internal:member_removed":var te=this.members.removeMember(x);te&&this.emit("pusher:member_removed",te);break}}handleSubscriptionSucceededEvent(d){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(d.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var Dr=o(1),Bo=o(0);class Mo extends z{constructor(d,v,x){super(d,v),this.key=null,this.nacl=x}authorize(d,v){super.authorize(d,(x,A)=>{if(x){v(x,A);return}let te=A.shared_secret;if(!te){v(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=Object(Bo.decode)(te),delete A.shared_secret,v(null,A)})}trigger(d,v){throw new B("Client events are not currently supported for encrypted channels")}handleEvent(d){var v=d.event,x=d.data;if(v.indexOf("pusher_internal:")===0||v.indexOf("pusher:")===0){super.handleEvent(d);return}this.handleEncryptedEvent(v,x)}handleEncryptedEvent(d,v){if(!this.key){xe.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!v.ciphertext||!v.nonce){xe.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+v);return}let x=Object(Bo.decode)(v.ciphertext);if(x.length<this.nacl.secretbox.overheadLength){xe.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${x.length}`);return}let A=Object(Bo.decode)(v.nonce);if(A.length<this.nacl.secretbox.nonceLength){xe.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${A.length}`);return}let te=this.nacl.secretbox.open(x,A,this.key);if(te===null){xe.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,(ue,_e)=>{if(ue){xe.error(`Failed to make a request to the authEndpoint: ${_e}. Unable to fetch new key, so dropping encrypted event`);return}if(te=this.nacl.secretbox.open(x,A,this.key),te===null){xe.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(d,this.getDataToEmit(te))});return}this.emit(d,this.getDataToEmit(te))}getDataToEmit(d){let v=Object(Dr.decode)(d);try{return JSON.parse(v)}catch{return v}}}class cv extends J{constructor(d,v){super(),this.state="initialized",this.connection=null,this.key=d,this.options=v,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var x=Ae.getNetwork();x.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),x.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}switchCluster(d){this.key=d,this.updateStrategy(),this.retryIn(0)}connect(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(d){return this.connection?this.connection.send(d):!1}send_event(d,v,x){return this.connection?this.connection.send_event(d,v,x):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var d=(v,x)=>{v?this.runner=this.strategy.connect(0,d):x.action==="error"?(this.emit("error",{type:"HandshakeError",error:x.error}),this.timeline.error({handshakeError:x.error})):(this.abortConnecting(),this.handshakeCallbacks[x.action](x))};this.runner=this.strategy.connect(0,d)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var d=this.abandonConnection();d.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(d){this.timeline.info({action:"retry",delay:d}),d>0&&this.emit("connecting_in",Math.round(d/1e3)),this.retryTimer=new Q(d||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new Q(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new Q(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new Q(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(d){return R({},d,{message:v=>{this.resetActivityCheck(),this.emit("message",v)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:v=>{this.emit("error",v)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(d){return R({},d,{connected:v=>{this.activityTimeout=Math.min(this.options.activityTimeout,v.activityTimeout,v.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(v.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let d=v=>x=>{x.error&&this.emit("error",{type:"WebSocketError",error:x.error}),v(x)};return{tls_only:d(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:d(()=>{this.disconnect()}),backoff:d(()=>{this.retryIn(1e3)}),retry:d(()=>{this.retryIn(0)})}}setConnection(d){this.connection=d;for(var v in this.connectionCallbacks)this.connection.bind(v,this.connectionCallbacks[v]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var d in this.connectionCallbacks)this.connection.unbind(d,this.connectionCallbacks[d]);var v=this.connection;return this.connection=null,v}}updateState(d,v){var x=this.state;if(this.state=d,x!==d){var A=d;A==="connected"&&(A+=" with new socket ID "+v.socket_id),xe.debug("State changed",x+" -> "+A),this.timeline.info({state:d,params:v}),this.emit("state_change",{previous:x,current:d}),this.emit(d,v)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class dv{constructor(){this.channels={}}add(d,v){return this.channels[d]||(this.channels[d]=fv(d,v)),this.channels[d]}all(){return Ee(this.channels)}find(d){return this.channels[d]}remove(d){var v=this.channels[d];return delete this.channels[d],v}disconnect(){oe(this.channels,function(d){d.disconnect()})}}function fv(g,d){if(g.indexOf("private-encrypted-")===0){if(d.config.nacl)return tr.createEncryptedChannel(g,d,d.config.nacl);let v="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",x=y.buildLogSuffix("encryptedChannelSupport");throw new B(`${v}. ${x}`)}else{if(g.indexOf("private-")===0)return tr.createPrivateChannel(g,d);if(g.indexOf("presence-")===0)return tr.createPresenceChannel(g,d);if(g.indexOf("#")===0)throw new w('Cannot create a channel with name "'+g+'".');return tr.createChannel(g,d)}}var pv={createChannels(){return new dv},createConnectionManager(g,d){return new cv(g,d)},createChannel(g,d){return new ea(g,d)},createPrivateChannel(g,d){return new z(g,d)},createPresenceChannel(g,d){return new gt(g,d)},createEncryptedChannel(g,d,v){return new Mo(g,d,v)},createTimelineSender(g,d){return new Zr(g,d)},createHandshake(g,d){return new _s(g,d)},createAssistantToTheTransportManager(g,d,v){return new it(g,d,v)}},tr=pv;class ic{constructor(d){this.options=d||{},this.livesLeft=this.options.lives||1/0}getAssistant(d){return tr.createAssistantToTheTransportManager(this,d,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class Nr{constructor(d,v){this.strategies=d,this.loop=!!v.loop,this.failFast=!!v.failFast,this.timeout=v.timeout,this.timeoutLimit=v.timeoutLimit}isSupported(){return ve(this.strategies,P.method("isSupported"))}connect(d,v){var x=this.strategies,A=0,te=this.timeout,ue=null,_e=(Re,Ze)=>{Ze?v(null,Ze):(A=A+1,this.loop&&(A=A%x.length),A<x.length?(te&&(te=te*2,this.timeoutLimit&&(te=Math.min(te,this.timeoutLimit))),ue=this.tryStrategy(x[A],d,{timeout:te,failFast:this.failFast},_e)):v(!0))};return ue=this.tryStrategy(x[A],d,{timeout:te,failFast:this.failFast},_e),{abort:function(){ue.abort()},forceMinPriority:function(Re){d=Re,ue&&ue.forceMinPriority(Re)}}}tryStrategy(d,v,x,A){var te=null,ue=null;return x.timeout>0&&(te=new Q(x.timeout,function(){ue.abort(),A(!0)})),ue=d.connect(v,function(_e,Re){_e&&te&&te.isRunning()&&!x.failFast||(te&&te.ensureAborted(),A(_e,Re))}),{abort:function(){te&&te.ensureAborted(),ue.abort()},forceMinPriority:function(_e){ue.forceMinPriority(_e)}}}}class ws{constructor(d){this.strategies=d}isSupported(){return ve(this.strategies,P.method("isSupported"))}connect(d,v){return hv(this.strategies,d,function(x,A){return function(te,ue){if(A[x].error=te,te){mv(A)&&v(!0);return}fe(A,function(_e){_e.forceMinPriority(ue.transport.priority)}),v(null,ue)}})}}function hv(g,d,v){var x=Be(g,function(A,te,ue,_e){return A.connect(d,v(te,_e))});return{abort:function(){fe(x,vv)},forceMinPriority:function(A){fe(x,function(te){te.forceMinPriority(A)})}}}function mv(g){return Qe(g,function(d){return!!d.error})}function vv(g){!g.error&&!g.aborted&&(g.abort(),g.aborted=!0)}class gv{constructor(d,v,x){this.strategy=d,this.transports=v,this.ttl=x.ttl||1800*1e3,this.usingTLS=x.useTLS,this.timeline=x.timeline}isSupported(){return this.strategy.isSupported()}connect(d,v){var x=this.usingTLS,A=yv(x),te=A&&A.cacheSkipCount?A.cacheSkipCount:0,ue=[this.strategy];if(A&&A.timestamp+this.ttl>=P.now()){var _e=this.transports[A.transport];_e&&(["ws","wss"].includes(A.transport)||te>3?(this.timeline.info({cached:!0,transport:A.transport,latency:A.latency}),ue.push(new Nr([_e],{timeout:A.latency*2+1e3,failFast:!0}))):te++)}var Re=P.now(),Ze=ue.pop().connect(d,function rt(xt,$o){xt?(sc(x),ue.length>0?(Re=P.now(),Ze=ue.pop().connect(d,rt)):v(xt)):(bv(x,$o.transport.name,P.now()-Re,te),v(null,$o))});return{abort:function(){Ze.abort()},forceMinPriority:function(rt){d=rt,Ze&&Ze.forceMinPriority(rt)}}}}function ks(g){return"pusherTransport"+(g?"TLS":"NonTLS")}function yv(g){var d=Ae.getLocalStorage();if(d)try{var v=d[ks(g)];if(v)return JSON.parse(v)}catch{sc(g)}return null}function bv(g,d,v,x){var A=Ae.getLocalStorage();if(A)try{A[ks(g)]=me({timestamp:P.now(),transport:d,latency:v,cacheSkipCount:x})}catch{}}function sc(g){var d=Ae.getLocalStorage();if(d)try{delete d[ks(g)]}catch{}}class Ro{constructor(d,{delay:v}){this.strategy=d,this.options={delay:v}}isSupported(){return this.strategy.isSupported()}connect(d,v){var x=this.strategy,A,te=new Q(this.options.delay,function(){A=x.connect(d,v)});return{abort:function(){te.ensureAborted(),A&&A.abort()},forceMinPriority:function(ue){d=ue,A&&A.forceMinPriority(ue)}}}}class Ua{constructor(d,v,x){this.test=d,this.trueBranch=v,this.falseBranch=x}isSupported(){var d=this.test()?this.trueBranch:this.falseBranch;return d.isSupported()}connect(d,v){var x=this.test()?this.trueBranch:this.falseBranch;return x.connect(d,v)}}class _v{constructor(d){this.strategy=d}isSupported(){return this.strategy.isSupported()}connect(d,v){var x=this.strategy.connect(d,function(A,te){te&&x.abort(),v(A,te)});return x}}function za(g){return function(){return g.isSupported()}}var wv=function(g,d,v){var x={};function A(_c,bg,_g,wg,kg){var wc=v(g,_c,bg,_g,wg,kg);return x[_c]=wc,wc}var te=Object.assign({},d,{hostNonTLS:g.wsHost+":"+g.wsPort,hostTLS:g.wsHost+":"+g.wssPort,httpPath:g.wsPath}),ue=Object.assign({},te,{useTLS:!0}),_e=Object.assign({},d,{hostNonTLS:g.httpHost+":"+g.httpPort,hostTLS:g.httpHost+":"+g.httpsPort,httpPath:g.httpPath}),Re={loop:!0,timeout:15e3,timeoutLimit:6e4},Ze=new ic({minPingDelay:1e4,maxPingDelay:g.activityTimeout}),rt=new ic({lives:2,minPingDelay:1e4,maxPingDelay:g.activityTimeout}),xt=A("ws","ws",3,te,Ze),$o=A("wss","ws",3,ue,Ze),hg=A("sockjs","sockjs",1,_e),hc=A("xhr_streaming","xhr_streaming",1,_e,rt),mg=A("xdr_streaming","xdr_streaming",1,_e,rt),mc=A("xhr_polling","xhr_polling",1,_e),vg=A("xdr_polling","xdr_polling",1,_e),vc=new Nr([xt],Re),gg=new Nr([$o],Re),yg=new Nr([hg],Re),gc=new Nr([new Ua(za(hc),hc,mg)],Re),yc=new Nr([new Ua(za(mc),mc,vg)],Re),bc=new Nr([new Ua(za(gc),new ws([gc,new Ro(yc,{delay:4e3})]),yc)],Re),Es=new Ua(za(bc),bc,yg),xs;return d.useTLS?xs=new ws([vc,new Ro(Es,{delay:2e3})]):xs=new ws([vc,new Ro(gg,{delay:2e3}),new Ro(Es,{delay:5e3})]),new gv(new _v(new Ua(za(xt),xs,Es)),x,{ttl:18e5,timeline:d.timeline,useTLS:d.useTLS})},kv=wv,Sv=function(){var g=this;g.timeline.info(g.buildTimelineMessage({transport:g.name+(g.options.useTLS?"s":"")})),g.hooks.isInitialized()?g.changeState("initialized"):g.hooks.file?(g.changeState("initializing"),p.load(g.hooks.file,{useTLS:g.options.useTLS},function(d,v){g.hooks.isInitialized()?(g.changeState("initialized"),v(!0)):(d&&g.onError(d),g.onClose(),v(!1))})):g.onClose()},Cv={getRequest:function(g){var d=new window.XDomainRequest;return d.ontimeout=function(){g.emit("error",new T),g.close()},d.onerror=function(v){g.emit("error",v),g.close()},d.onprogress=function(){d.responseText&&d.responseText.length>0&&g.onChunk(200,d.responseText)},d.onload=function(){d.responseText&&d.responseText.length>0&&g.onChunk(200,d.responseText),g.emit("finished",200),g.close()},d},abortRequest:function(g){g.ontimeout=g.onerror=g.onprogress=g.onload=null,g.abort()}},Tv=Cv;const Ev=256*1024;class xv extends J{constructor(d,v,x){super(),this.hooks=d,this.method=v,this.url=x}start(d){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},Ae.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(d)}close(){this.unloader&&(Ae.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(d,v){for(;;){var x=this.advanceBuffer(v);if(x)this.emit("chunk",{status:d,data:x});else break}this.isBufferTooLong(v)&&this.emit("buffer_too_long")}advanceBuffer(d){var v=d.slice(this.position),x=v.indexOf(`
|
|
81
|
-
`);return x!==-1?(this.position+=x+1,v.slice(0,x)):null}isBufferTooLong(d){return this.position===d.length&&d.length>Ev}}var Ss;(function(g){g[g.CONNECTING=0]="CONNECTING",g[g.OPEN=1]="OPEN",g[g.CLOSED=3]="CLOSED"})(Ss||(Ss={}));var Or=Ss,Pv=1;class Iv{constructor(d,v){this.hooks=d,this.session=uc(1e3)+"/"+Bv(8),this.location=Dv(v),this.readyState=Or.CONNECTING,this.openStream()}send(d){return this.sendRaw(JSON.stringify([d]))}ping(){this.hooks.sendHeartbeat(this)}close(d,v){this.onClose(d,v,!0)}sendRaw(d){if(this.readyState===Or.OPEN)try{return Ae.createSocketRequest("POST",lc(Nv(this.location,this.session))).start(d),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(d,v,x){this.closeStream(),this.readyState=Or.CLOSED,this.onclose&&this.onclose({code:d,reason:v,wasClean:x})}onChunk(d){if(d.status===200){this.readyState===Or.OPEN&&this.onActivity();var v,x=d.data.slice(0,1);switch(x){case"o":v=JSON.parse(d.data.slice(1)||"{}"),this.onOpen(v);break;case"a":v=JSON.parse(d.data.slice(1)||"[]");for(var A=0;A<v.length;A++)this.onEvent(v[A]);break;case"m":v=JSON.parse(d.data.slice(1)||"null"),this.onEvent(v);break;case"h":this.hooks.onHeartbeat(this);break;case"c":v=JSON.parse(d.data.slice(1)||"[]"),this.onClose(v[0],v[1],!0);break}}}onOpen(d){this.readyState===Or.CONNECTING?(d&&d.hostname&&(this.location.base=Ov(this.location.base,d.hostname)),this.readyState=Or.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(d){this.readyState===Or.OPEN&&this.onmessage&&this.onmessage({data:d})}onActivity(){this.onactivity&&this.onactivity()}onError(d){this.onerror&&this.onerror(d)}openStream(){this.stream=Ae.createSocketRequest("POST",lc(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",d=>{this.onChunk(d)}),this.stream.bind("finished",d=>{this.hooks.onFinished(this,d)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(d){P.defer(()=>{this.onError(d),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function Dv(g){var d=/([^\?]*)\/*(\??.*)/.exec(g);return{base:d[1],queryString:d[2]}}function Nv(g,d){return g.base+"/"+d+"/xhr_send"}function lc(g){var d=g.indexOf("?")===-1?"?":"&";return g+d+"t="+ +new Date+"&n="+Pv++}function Ov(g,d){var v=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(g);return v[1]+d+v[3]}function uc(g){return Ae.randomInt(g)}function Bv(g){for(var d=[],v=0;v<g;v++)d.push(uc(32).toString(32));return d.join("")}var Mv=Iv,Rv={getReceiveURL:function(g,d){return g.base+"/"+d+"/xhr_streaming"+g.queryString},onHeartbeat:function(g){g.sendRaw("[]")},sendHeartbeat:function(g){g.sendRaw("[]")},onFinished:function(g,d){g.onClose(1006,"Connection interrupted ("+d+")",!1)}},Av=Rv,$v={getReceiveURL:function(g,d){return g.base+"/"+d+"/xhr"+g.queryString},onHeartbeat:function(){},sendHeartbeat:function(g){g.sendRaw("[]")},onFinished:function(g,d){d===200?g.reconnect():g.onClose(1006,"Connection interrupted ("+d+")",!1)}},Lv=$v,Vv={getRequest:function(g){var d=Ae.getXHRAPI(),v=new d;return v.onreadystatechange=v.onprogress=function(){switch(v.readyState){case 3:v.responseText&&v.responseText.length>0&&g.onChunk(v.status,v.responseText);break;case 4:v.responseText&&v.responseText.length>0&&g.onChunk(v.status,v.responseText),g.emit("finished",v.status),g.close();break}},v},abortRequest:function(g){g.onreadystatechange=null,g.abort()}},Fv=Vv,Hv={createStreamingSocket(g){return this.createSocket(Av,g)},createPollingSocket(g){return this.createSocket(Lv,g)},createSocket(g,d){return new Mv(g,d)},createXHR(g,d){return this.createRequest(Fv,g,d)},createRequest(g,d,v){return new xv(g,d,v)}},cc=Hv;cc.createXDR=function(g,d){return this.createRequest(Tv,g,d)};var Uv=cc,zv={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:s,DependenciesReceivers:f,getDefaultStrategy:kv,Transports:jt,transportConnectionInitializer:Sv,HTTPFactory:Uv,TimelineTransport:Et,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(g){window.Pusher=g;var d=()=>{this.onDocumentBody(g.ready)};window.JSON?d():p.load("json2",{},d)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:W,jsonp:Ut}},onDocumentBody(g){document.body?g():setTimeout(()=>{this.onDocumentBody(g)},0)},createJSONPRequest(g,d){return new zt(g,d)},createScriptRequest(g){return new Rt(g)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var g=this.getXHRAPI();return new g},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return vt},createWebSocket(g){var d=this.getWebSocketAPI();return new d(g)},createSocketRequest(g,d){if(this.isXHRSupported())return this.HTTPFactory.createXHR(g,d);if(this.isXDRSupported(d.indexOf("https:")===0))return this.HTTPFactory.createXDR(g,d);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var g=this.getXHRAPI();return!!g&&new g().withCredentials!==void 0},isXDRSupported(g){var d=g?"https:":"http:",v=this.getProtocol();return!!window.XDomainRequest&&v===d},addUnloadListener(g){window.addEventListener!==void 0?window.addEventListener("unload",g,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",g)},removeUnloadListener(g){window.addEventListener!==void 0?window.removeEventListener("unload",g,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",g)},randomInt(g){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*g)}},Ae=zv,Cs;(function(g){g[g.ERROR=3]="ERROR",g[g.INFO=6]="INFO",g[g.DEBUG=7]="DEBUG"})(Cs||(Cs={}));var Ao=Cs;class jv{constructor(d,v,x){this.key=d,this.session=v,this.events=[],this.options=x||{},this.sent=0,this.uniqueID=0}log(d,v){d<=this.options.level&&(this.events.push(R({},v,{timestamp:P.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(d){this.log(Ao.ERROR,d)}info(d){this.log(Ao.INFO,d)}debug(d){this.log(Ao.DEBUG,d)}isEmpty(){return this.events.length===0}send(d,v){var x=R({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],d(x,(A,te)=>{A||this.sent++,v&&v(A,te)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class Wv{constructor(d,v,x,A){this.name=d,this.priority=v,this.transport=x,this.options=A||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(d,v){if(this.isSupported()){if(this.priority<d)return dc(new O,v)}else return dc(new I,v);var x=!1,A=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),te=null,ue=function(){A.unbind("initialized",ue),A.connect()},_e=function(){te=tr.createHandshake(A,function(xt){x=!0,rt(),v(null,xt)})},Re=function(xt){rt(),v(xt)},Ze=function(){rt();var xt;xt=me(A),v(new _(xt))},rt=function(){A.unbind("initialized",ue),A.unbind("open",_e),A.unbind("error",Re),A.unbind("closed",Ze)};return A.bind("initialized",ue),A.bind("open",_e),A.bind("error",Re),A.bind("closed",Ze),A.initialize(),{abort:()=>{x||(rt(),te?te.close():A.close())},forceMinPriority:xt=>{x||this.priority<xt&&(te?te.close():A.close())}}}}function dc(g,d){return P.defer(function(){d(g)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:qv}=Ae;var Yv=function(g,d,v,x,A,te){var ue=qv[v];if(!ue)throw new C(v);var _e=(!g.enabledTransports||ie(g.enabledTransports,d)!==-1)&&(!g.disabledTransports||ie(g.disabledTransports,d)===-1),Re;return _e?(A=Object.assign({ignoreNullOrigin:g.ignoreNullOrigin},A),Re=new Wv(d,x,te?te.getAssistant(ue):ue,A)):Re=Gv,Re},Gv={isSupported:function(){return!1},connect:function(g,d){var v=P.defer(function(){d(new I)});return{abort:function(){v.ensureAborted()},forceMinPriority:function(){}}}};function Kv(g){if(g==null)throw"You must pass an options object";if(g.cluster==null)throw"Options object must provide a cluster";"disableStats"in g&&xe.warn("The disableStats option is deprecated in favor of enableStats")}const Xv=(g,d)=>{var v="socket_id="+encodeURIComponent(g.socketId);for(var x in d.params)v+="&"+encodeURIComponent(x)+"="+encodeURIComponent(d.params[x]);if(d.paramsProvider!=null){let A=d.paramsProvider();for(var x in A)v+="&"+encodeURIComponent(x)+"="+encodeURIComponent(A[x])}return v};var Jv=g=>{if(typeof Ae.getAuthorizers()[g.transport]>"u")throw`'${g.transport}' is not a recognized auth transport`;return(d,v)=>{const x=Xv(d,g);Ae.getAuthorizers()[g.transport](Ae,x,g,k.UserAuthentication,v)}};const Qv=(g,d)=>{var v="socket_id="+encodeURIComponent(g.socketId);v+="&channel_name="+encodeURIComponent(g.channelName);for(var x in d.params)v+="&"+encodeURIComponent(x)+"="+encodeURIComponent(d.params[x]);if(d.paramsProvider!=null){let A=d.paramsProvider();for(var x in A)v+="&"+encodeURIComponent(x)+"="+encodeURIComponent(A[x])}return v};var Zv=g=>{if(typeof Ae.getAuthorizers()[g.transport]>"u")throw`'${g.transport}' is not a recognized auth transport`;return(d,v)=>{const x=Qv(d,g);Ae.getAuthorizers()[g.transport](Ae,x,g,k.ChannelAuthorization,v)}};const eg=(g,d,v)=>{const x={authTransport:d.transport,authEndpoint:d.endpoint,auth:{params:d.params,headers:d.headers}};return(A,te)=>{const ue=g.channel(A.channelName);v(ue,x).authorize(A.socketId,te)}};function fc(g,d){let v={activityTimeout:g.activityTimeout||u.activityTimeout,cluster:g.cluster,httpPath:g.httpPath||u.httpPath,httpPort:g.httpPort||u.httpPort,httpsPort:g.httpsPort||u.httpsPort,pongTimeout:g.pongTimeout||u.pongTimeout,statsHost:g.statsHost||u.stats_host,unavailableTimeout:g.unavailableTimeout||u.unavailableTimeout,wsPath:g.wsPath||u.wsPath,wsPort:g.wsPort||u.wsPort,wssPort:g.wssPort||u.wssPort,enableStats:og(g),httpHost:tg(g),useTLS:ag(g),wsHost:ng(g),userAuthenticator:ig(g),channelAuthorizer:lg(g,d)};return"disabledTransports"in g&&(v.disabledTransports=g.disabledTransports),"enabledTransports"in g&&(v.enabledTransports=g.enabledTransports),"ignoreNullOrigin"in g&&(v.ignoreNullOrigin=g.ignoreNullOrigin),"timelineParams"in g&&(v.timelineParams=g.timelineParams),"nacl"in g&&(v.nacl=g.nacl),v}function tg(g){return g.httpHost?g.httpHost:g.cluster?`sockjs-${g.cluster}.pusher.com`:u.httpHost}function ng(g){return g.wsHost?g.wsHost:rg(g.cluster)}function rg(g){return`ws-${g}.pusher.com`}function ag(g){return Ae.getProtocol()==="https:"?!0:g.forceTLS!==!1}function og(g){return"enableStats"in g?g.enableStats:"disableStats"in g?!g.disableStats:!1}const pc=g=>"customHandler"in g&&g.customHandler!=null;function ig(g){const d=Object.assign(Object.assign({},u.userAuthentication),g.userAuthentication);return pc(d)?d.customHandler:Jv(d)}function sg(g,d){let v;if("channelAuthorization"in g)v=Object.assign(Object.assign({},u.channelAuthorization),g.channelAuthorization);else if(v={transport:g.authTransport||u.authTransport,endpoint:g.authEndpoint||u.authEndpoint},"auth"in g&&("params"in g.auth&&(v.params=g.auth.params),"headers"in g.auth&&(v.headers=g.auth.headers)),"authorizer"in g)return{customHandler:eg(d,v,g.authorizer)};return v}function lg(g,d){const v=sg(g,d);return pc(v)?v.customHandler:Zv(v)}class ug extends J{constructor(d){super(function(v,x){xe.debug(`No callbacks on watchlist events for ${v}`)}),this.pusher=d,this.bindWatchlistInternalEvent()}handleEvent(d){d.data.events.forEach(v=>{this.emit(v.name,v)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",d=>{var v=d.event;v==="pusher_internal:watchlist_events"&&this.handleEvent(d)})}}function cg(){let g,d;return{promise:new Promise((x,A)=>{g=x,d=A}),resolve:g,reject:d}}var dg=cg;class fg extends J{constructor(d){super(function(v,x){xe.debug("No callbacks on user for "+v)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(v,x)=>{if(v){xe.warn(`Error during signin: ${v}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:x.auth,user_data:x.user_data})},this.pusher=d,this.pusher.connection.bind("state_change",({previous:v,current:x})=>{v!=="connected"&&x==="connected"&&this._signin(),v==="connected"&&x!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new ug(d),this.pusher.connection.bind("message",v=>{var x=v.event;x==="pusher:signin_success"&&this._onSigninSuccess(v.data),this.serverToUserChannel&&this.serverToUserChannel.name===v.channel&&this.serverToUserChannel.handleEvent(v)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(d){try{this.user_data=JSON.parse(d.user_data)}catch{xe.error(`Failed parsing user data after signin: ${d.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){xe.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const d=v=>{v.subscriptionPending&&v.subscriptionCancelled?v.reinstateSubscription():!v.subscriptionPending&&this.pusher.connection.state==="connected"&&v.subscribe()};this.serverToUserChannel=new ea(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((v,x)=>{v.indexOf("pusher_internal:")===0||v.indexOf("pusher:")===0||this.emit(v,x)}),d(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:d,resolve:v,reject:x}=dg();d.done=!1;const A=()=>{d.done=!0};d.then(A).catch(A),this.signinDonePromise=d,this._signinDoneResolve=v}}class $t{static ready(){$t.isReady=!0;for(var d=0,v=$t.instances.length;d<v;d++)$t.instances[d].connect()}static getClientFeatures(){return Ie(Ge({ws:Ae.Transports.ws},function(d){return d.isSupported({})}))}constructor(d,v){pg(d),Kv(v),this.key=d,this.options=v,this.config=fc(this.options,this),this.channels=tr.createChannels(),this.global_emitter=new J,this.sessionID=Ae.randomInt(1e9),this.timeline=new jv(this.key,this.sessionID,{cluster:this.config.cluster,features:$t.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:Ao.INFO,version:u.VERSION}),this.config.enableStats&&(this.timelineSender=tr.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+Ae.TimelineTransport.name}));var x=A=>Ae.getDefaultStrategy(this.config,A,Yv);this.connection=tr.createConnectionManager(this.key,{getStrategy:x,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",A=>{var te=A.event,ue=te.indexOf("pusher_internal:")===0;if(A.channel){var _e=this.channel(A.channel);_e&&_e.handleEvent(A)}ue||this.global_emitter.emit(A.event,A.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",A=>{xe.warn(A)}),$t.instances.push(this),this.timeline.info({instances:$t.instances.length}),this.user=new fg(this),$t.isReady&&this.connect()}switchCluster(d){const{appKey:v,cluster:x}=d;this.key=v,this.options=Object.assign(Object.assign({},this.options),{cluster:x}),this.config=fc(this.options,this),this.connection.switchCluster(this.key)}channel(d){return this.channels.find(d)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var d=this.connection.isUsingTLS(),v=this.timelineSender;this.timelineSenderTimer=new V(6e4,function(){v.send(d)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(d,v,x){return this.global_emitter.bind(d,v,x),this}unbind(d,v,x){return this.global_emitter.unbind(d,v,x),this}bind_global(d){return this.global_emitter.bind_global(d),this}unbind_global(d){return this.global_emitter.unbind_global(d),this}unbind_all(d){return this.global_emitter.unbind_all(),this}subscribeAll(){var d;for(d in this.channels.channels)this.channels.channels.hasOwnProperty(d)&&this.subscribe(d)}subscribe(d){var v=this.channels.add(d,this);return v.subscriptionPending&&v.subscriptionCancelled?v.reinstateSubscription():!v.subscriptionPending&&this.connection.state==="connected"&&v.subscribe(),v}unsubscribe(d){var v=this.channels.find(d);v&&v.subscriptionPending?v.cancelSubscription():(v=this.channels.remove(d),v&&v.subscribed&&v.unsubscribe())}send_event(d,v,x){return this.connection.send_event(d,v,x)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}$t.instances=[],$t.isReady=!1,$t.logToConsole=!1,$t.Runtime=Ae,$t.ScriptReceivers=Ae.ScriptReceivers,$t.DependenciesReceivers=Ae.DependenciesReceivers,$t.auth_callbacks=Ae.auth_callbacks;var Ts=r.default=$t;function pg(g){if(g==null)throw"You must pass your app key when you instantiate Pusher."}Ae.setup($t)}])})})(bh);var mP=bh.exports;function vP(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n)})}}}const Qt={listeners:a.ref([]),echo:null,key:null,authorizer:null,emitter:vP()};function _h(e="unique"){var t;return Qt.listeners.value.some(n=>n.name===e)||(t=Qt.listeners.value)==null||t.push({name:e,isListening:a.ref(!1)}),Qt.listeners.value.find(n=>n.name===e)}function wh(e,t){Qt.echo=new hP({broadcaster:"pusher",client:mP.ConnectionManager,key:e,authorizer:t,cluster:"eu",forceTLS:!0,encrypted:!0})}function gP(e=null){const t=_h(e??void 0);function n(o,i,s,l=!0){if(Qt.echo===null)throw new Error("Echo is not initialized");const u=`${o}.${i}`,c=Qt.emitter.all.has(u);t&&(t.isListening=!0),c||(l?Qt.echo.private(o):Qt.echo.channel(o)).listen(`.${i}`,p=>{Qt.emitter.emit(u,p)}),Qt.emitter.on(u,async f=>{const p=await s(f)??!1;t&&(t.isListening=!1),p&&r(o,i)})}function r(o,i){if(Qt.echo===null)throw new Error("Echo is not initialized");Qt.emitter.off(`${o}.${i}`),Qt.emitter.all.delete(`${o}.${i}`),Qt.echo.leave(o),t.isListening=!1}return{on:n,off:r,listener:t,state:Qt}}const kh=Object.prototype.toString;function Sh(e){switch(kh.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return fr(e,Error)}}function Ma(e,t){return kh.call(e)===`[object ${t}]`}function Pu(e){return Ma(e,"ErrorEvent")}function Dd(e){return Ma(e,"DOMError")}function yP(e){return Ma(e,"DOMException")}function qn(e){return Ma(e,"String")}function Iu(e){return e===null||typeof e!="object"&&typeof e!="function"}function Ea(e){return Ma(e,"Object")}function Gi(e){return typeof Event<"u"&&fr(e,Event)}function bP(e){return typeof Element<"u"&&fr(e,Element)}function _P(e){return Ma(e,"RegExp")}function Du(e){return!!(e&&e.then&&typeof e.then=="function")}function wP(e){return Ea(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Ch(e){return typeof e=="number"&&e!==e}function fr(e,t){try{return e instanceof t}catch{return!1}}function Th(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function va(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Nd(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const o=e[r];try{Th(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function kP(e,t,n=!1){return qn(e)?_P(t)?t.test(e):qn(t)?n?e===t:e.includes(t):!1:!1}function Ra(e,t=[],n=!1){return t.some(r=>kP(e,r,n))}function SP(e,t,n=250,r,o,i,s){if(!i.exception||!i.exception.values||!s||!fr(s.originalException,Error))return;const l=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;l&&(i.exception.values=CP(xl(e,t,o,s.originalException,r,i.exception.values,l,0),n))}function xl(e,t,n,r,o,i,s,l){if(i.length>=n+1)return i;let u=[...i];if(fr(r[o],Error)){Od(s,l);const c=e(t,r[o]),f=u.length;Bd(c,o,f,l),u=xl(e,t,n,r[o],o,[c,...u],c,f)}return Array.isArray(r.errors)&&r.errors.forEach((c,f)=>{if(fr(c,Error)){Od(s,l);const p=e(t,c),h=u.length;Bd(p,`errors[${f}]`,h,l),u=xl(e,t,n,c,o,[p,...u],p,h)}}),u}function Od(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function Bd(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function CP(e,t){return e.map(n=>(n.value&&(n.value=va(n.value,t)),n))}function Wo(e){return e&&e.Math==Math?e:void 0}const et=typeof globalThis=="object"&&Wo(globalThis)||typeof window=="object"&&Wo(window)||typeof self=="object"&&Wo(self)||typeof global=="object"&&Wo(global)||function(){return this}()||{};function Ki(){return et}function Eh(e,t,n){const r=n||et,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}const oi=Ki(),TP=80;function Sr(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,s=0;const l=" > ",u=l.length;let c;const f=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||TP;for(;n&&i++<r&&(c=EP(n,f),!(c==="html"||i>1&&s+o.length*u+c.length>=p));)o.push(c),s+=c.length,n=n.parentNode;return o.reverse().join(l)}catch{return"<unknown>"}}function EP(e,t){const n=e,r=[];let o,i,s,l,u;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter(p=>n.getAttribute(p)).map(p=>[p,n.getAttribute(p)]):null;if(c&&c.length)c.forEach(p=>{r.push(`[${p[0]}="${p[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&qn(o))for(i=o.split(/\s+/),u=0;u<i.length;u++)r.push(`.${i[u]}`);const f=["aria-label","type","name","title","alt"];for(u=0;u<f.length;u++)s=f[u],l=n.getAttribute(s),l&&r.push(`[${s}="${l}"]`);return r.join("")}function xP(){try{return oi.document.location.href}catch{return""}}function PP(e){return oi.document&&oi.document.querySelector?oi.document.querySelector(e):null}const Aa=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,IP="Sentry Logger ",Pl=["debug","info","warn","error","log","assert","trace"],Si={};function Xn(e){if(!("console"in et))return e();const t=et.console,n={},r=Object.keys(Si);r.forEach(o=>{const i=Si[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function DP(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Aa?Pl.forEach(n=>{t[n]=(...r)=>{e&&Xn(()=>{et.console[n](`${IP}[${n}]:`,...r)})}}):Pl.forEach(n=>{t[n]=()=>{}}),t}const ne=DP(),NP=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function OP(e){return e==="http"||e==="https"}function Io(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:l,publicKey:u}=e;return`${l}://${u}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function BP(e){const t=NP.exec(e);if(!t){Xn(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,o="",i,s="",l]=t.slice(1);let u="",c=l;const f=c.split("/");if(f.length>1&&(u=f.slice(0,-1).join("/"),c=f.pop()),c){const p=c.match(/^\d+/);p&&(c=p[0])}return xh({host:i,pass:o,path:u,projectId:c,port:s,protocol:n,publicKey:r})}function xh(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function MP(e){if(!Aa)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(ne.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?OP(r)?t&&isNaN(parseInt(t,10))?(ne.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(ne.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(ne.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Ph(e){const t=typeof e=="string"?BP(e):xh(e);if(!(!t||!MP(t)))return t}class Un extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function Bt(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);typeof o=="function"&&Ih(o,r),e[t]=o}function bo(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Aa&&ne.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Ih(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,bo(e,"__sentry_original__",t)}catch{}}function Nu(e){return e.__sentry_original__}function RP(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Dh(e){if(Sh(e))return{message:e.message,name:e.name,stack:e.stack,...Rd(e)};if(Gi(e)){const t={type:e.type,target:Md(e.target),currentTarget:Md(e.currentTarget),...Rd(e)};return typeof CustomEvent<"u"&&fr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Md(e){try{return bP(e)?Sr(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Rd(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function AP(e,t=40){const n=Object.keys(Dh(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return va(n[0],t);for(let r=n.length;r>0;r--){const o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:va(o,t)}return""}function Yn(e){return Il(e,new Map)}function Il(e,t){if(Ea(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const o of Object.keys(e))typeof e[o]<"u"&&(r[o]=Il(e[o],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(o=>{r.push(Il(o,t))}),r}return e}const Nh=50,Ad=/\(error: (.*)\)/,$d=/captureMessage|captureException/;function Oh(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const o=[],i=n.split(`
|
|
82
|
-
`);for(let s=r;s<i.length;s++){const l=i[s];if(l.length>1024)continue;const u=
|
|
67
|
+
*/(function(e,t){(function(r,o){e.exports=o()})(window,function(){return function(n){var r={};function o(i){if(r[i])return r[i].exports;var s=r[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=n,o.c=r,o.d=function(i,s,l){o.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:l})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,s){if(s&1&&(i=o(i)),s&8||s&4&&typeof i=="object"&&i&&i.__esModule)return i;var l=Object.create(null);if(o.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:i}),s&2&&typeof i!="string")for(var u in i)o.d(l,u,(function(d){return i[d]}).bind(null,u));return l},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=2)}([function(n,r,o){var i=this&&this.__extends||function(){var w=function(k,_){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,S){x.__proto__=S}||function(x,S){for(var b in S)S.hasOwnProperty(b)&&(x[b]=S[b])},w(k,_)};return function(k,_){w(k,_);function x(){this.constructor=k}k.prototype=_===null?Object.create(_):(x.prototype=_.prototype,new x)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=256,l=function(){function w(k){k===void 0&&(k="="),this._paddingCharacter=k}return w.prototype.encodedLength=function(k){return this._paddingCharacter?(k+2)/3*4|0:(k*8+5)/6|0},w.prototype.encode=function(k){for(var _="",x=0;x<k.length-2;x+=3){var S=k[x]<<16|k[x+1]<<8|k[x+2];_+=this._encodeByte(S>>>3*6&63),_+=this._encodeByte(S>>>2*6&63),_+=this._encodeByte(S>>>1*6&63),_+=this._encodeByte(S>>>0*6&63)}var b=k.length-x;if(b>0){var S=k[x]<<16|(b===2?k[x+1]<<8:0);_+=this._encodeByte(S>>>3*6&63),_+=this._encodeByte(S>>>2*6&63),b===2?_+=this._encodeByte(S>>>1*6&63):_+=this._paddingCharacter||"",_+=this._paddingCharacter||""}return _},w.prototype.maxDecodedLength=function(k){return this._paddingCharacter?k/4*3|0:(k*6+7)/8|0},w.prototype.decodedLength=function(k){return this.maxDecodedLength(k.length-this._getPaddingLength(k))},w.prototype.decode=function(k){if(k.length===0)return new Uint8Array(0);for(var _=this._getPaddingLength(k),x=k.length-_,S=new Uint8Array(this.maxDecodedLength(x)),b=0,N=0,T=0,I=0,$=0,W=0,j=0;N<x-4;N+=4)I=this._decodeChar(k.charCodeAt(N+0)),$=this._decodeChar(k.charCodeAt(N+1)),W=this._decodeChar(k.charCodeAt(N+2)),j=this._decodeChar(k.charCodeAt(N+3)),S[b++]=I<<2|$>>>4,S[b++]=$<<4|W>>>2,S[b++]=W<<6|j,T|=I&s,T|=$&s,T|=W&s,T|=j&s;if(N<x-1&&(I=this._decodeChar(k.charCodeAt(N)),$=this._decodeChar(k.charCodeAt(N+1)),S[b++]=I<<2|$>>>4,T|=I&s,T|=$&s),N<x-2&&(W=this._decodeChar(k.charCodeAt(N+2)),S[b++]=$<<4|W>>>2,T|=W&s),N<x-3&&(j=this._decodeChar(k.charCodeAt(N+3)),S[b++]=W<<6|j,T|=j&s),T!==0)throw new Error("Base64Coder: incorrect characters for decoding");return S},w.prototype._encodeByte=function(k){var _=k;return _+=65,_+=25-k>>>8&6,_+=51-k>>>8&-75,_+=61-k>>>8&-15,_+=62-k>>>8&3,String.fromCharCode(_)},w.prototype._decodeChar=function(k){var _=s;return _+=(42-k&k-44)>>>8&-s+k-43+62,_+=(46-k&k-48)>>>8&-s+k-47+63,_+=(47-k&k-58)>>>8&-s+k-48+52,_+=(64-k&k-91)>>>8&-s+k-65+0,_+=(96-k&k-123)>>>8&-s+k-97+26,_},w.prototype._getPaddingLength=function(k){var _=0;if(this._paddingCharacter){for(var x=k.length-1;x>=0&&k[x]===this._paddingCharacter;x--)_++;if(k.length<4||_>2)throw new Error("Base64Coder: incorrect padding")}return _},w}();r.Coder=l;var u=new l;function d(w){return u.encode(w)}r.encode=d;function c(w){return u.decode(w)}r.decode=c;var p=function(w){i(k,w);function k(){return w!==null&&w.apply(this,arguments)||this}return k.prototype._encodeByte=function(_){var x=_;return x+=65,x+=25-_>>>8&6,x+=51-_>>>8&-75,x+=61-_>>>8&-13,x+=62-_>>>8&49,String.fromCharCode(x)},k.prototype._decodeChar=function(_){var x=s;return x+=(44-_&_-46)>>>8&-s+_-45+62,x+=(94-_&_-96)>>>8&-s+_-95+63,x+=(47-_&_-58)>>>8&-s+_-48+52,x+=(64-_&_-91)>>>8&-s+_-65+0,x+=(96-_&_-123)>>>8&-s+_-97+26,x},k}(l);r.URLSafeCoder=p;var h=new p;function m(w){return h.encode(w)}r.encodeURLSafe=m;function y(w){return h.decode(w)}r.decodeURLSafe=y,r.encodedLength=function(w){return u.encodedLength(w)},r.maxDecodedLength=function(w){return u.maxDecodedLength(w)},r.decodedLength=function(w){return u.decodedLength(w)}},function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i="utf8: invalid string",s="utf8: invalid source encoding";function l(c){for(var p=new Uint8Array(u(c)),h=0,m=0;m<c.length;m++){var y=c.charCodeAt(m);y<128?p[h++]=y:y<2048?(p[h++]=192|y>>6,p[h++]=128|y&63):y<55296?(p[h++]=224|y>>12,p[h++]=128|y>>6&63,p[h++]=128|y&63):(m++,y=(y&1023)<<10,y|=c.charCodeAt(m)&1023,y+=65536,p[h++]=240|y>>18,p[h++]=128|y>>12&63,p[h++]=128|y>>6&63,p[h++]=128|y&63)}return p}r.encode=l;function u(c){for(var p=0,h=0;h<c.length;h++){var m=c.charCodeAt(h);if(m<128)p+=1;else if(m<2048)p+=2;else if(m<55296)p+=3;else if(m<=57343){if(h>=c.length-1)throw new Error(i);h++,p+=4}else throw new Error(i)}return p}r.encodedLength=u;function d(c){for(var p=[],h=0;h<c.length;h++){var m=c[h];if(m&128){var y=void 0;if(m<224){if(h>=c.length)throw new Error(s);var w=c[++h];if((w&192)!==128)throw new Error(s);m=(m&31)<<6|w&63,y=128}else if(m<240){if(h>=c.length-1)throw new Error(s);var w=c[++h],k=c[++h];if((w&192)!==128||(k&192)!==128)throw new Error(s);m=(m&15)<<12|(w&63)<<6|k&63,y=2048}else if(m<248){if(h>=c.length-2)throw new Error(s);var w=c[++h],k=c[++h],_=c[++h];if((w&192)!==128||(k&192)!==128||(_&192)!==128)throw new Error(s);m=(m&15)<<18|(w&63)<<12|(k&63)<<6|_&63,y=65536}else throw new Error(s);if(m<y||m>=55296&&m<=57343)throw new Error(s);if(m>=65536){if(m>1114111)throw new Error(s);m-=65536,p.push(String.fromCharCode(55296|m>>10)),m=56320|m&1023}}p.push(String.fromCharCode(m))}return p.join("")}r.decode=d},function(n,r,o){n.exports=o(3).default},function(n,r,o){o.r(r);class i{constructor(f,v){this.lastId=0,this.prefix=f,this.name=v}create(f){this.lastId++;var v=this.lastId,P=this.prefix+v,L=this.name+"["+v+"]",ne=!1,de=function(){ne||(f.apply(null,arguments),ne=!0)};return this[v]=de,{number:v,id:P,name:L,callback:de}}remove(f){delete this[f.number]}}var s=new i("_pusher_script_","Pusher.ScriptReceivers"),l={VERSION:"8.4.0-rc2",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},u=l;class d{constructor(f){this.options=f,this.receivers=f.receivers||s,this.loading={}}load(f,v,P){var L=this;if(L.loading[f]&&L.loading[f].length>0)L.loading[f].push(P);else{L.loading[f]=[P];var ne=$e.createScriptRequest(L.getPath(f,v)),de=L.receivers.create(function(_e){if(L.receivers.remove(de),L.loading[f]){var Re=L.loading[f];delete L.loading[f];for(var nt=function(Nt){Nt||ne.cleanup()},ot=0;ot<Re.length;ot++)Re[ot](_e,nt)}});ne.send(de)}}getRoot(f){var v,P=$e.getDocument().location.protocol;return f&&f.useTLS||P==="https:"?v=this.options.cdn_https:v=this.options.cdn_http,v.replace(/\/*$/,"")+"/"+this.options.version}getPath(f,v){return this.getRoot(v)+"/"+f+this.options.suffix+".js"}}var c=new i("_pusher_dependencies","Pusher.DependenciesReceivers"),p=new d({cdn_http:u.cdn_http,cdn_https:u.cdn_https,version:u.VERSION,suffix:u.dependency_suffix,receivers:c});const h={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}};var y={buildLogSuffix:function(g){const f="See:",v=h.urls[g];if(!v)return"";let P;return v.fullUrl?P=v.fullUrl:v.path&&(P=h.baseUrl+v.path),P?`${f} ${P}`:""}},w;(function(g){g.UserAuthentication="user-authentication",g.ChannelAuthorization="channel-authorization"})(w||(w={}));class k extends Error{constructor(f){super(f),Object.setPrototypeOf(this,new.target.prototype)}}class _ extends Error{constructor(f){super(f),Object.setPrototypeOf(this,new.target.prototype)}}class x extends Error{constructor(f){super(f),Object.setPrototypeOf(this,new.target.prototype)}}class S extends Error{constructor(f){super(f),Object.setPrototypeOf(this,new.target.prototype)}}class b extends Error{constructor(f){super(f),Object.setPrototypeOf(this,new.target.prototype)}}class N extends Error{constructor(f){super(f),Object.setPrototypeOf(this,new.target.prototype)}}class T extends Error{constructor(f){super(f),Object.setPrototypeOf(this,new.target.prototype)}}class I extends Error{constructor(f){super(f),Object.setPrototypeOf(this,new.target.prototype)}}class $ extends Error{constructor(f,v){super(v),this.status=f,Object.setPrototypeOf(this,new.target.prototype)}}var j=function(g,f,v,P,L){const ne=$e.createXHR();ne.open("POST",v.endpoint,!0),ne.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var de in v.headers)ne.setRequestHeader(de,v.headers[de]);if(v.headersProvider!=null){let _e=v.headersProvider();for(var de in _e)ne.setRequestHeader(de,_e[de])}return ne.onreadystatechange=function(){if(ne.readyState===4)if(ne.status===200){let _e,Re=!1;try{_e=JSON.parse(ne.responseText),Re=!0}catch{L(new $(200,`JSON returned from ${P.toString()} endpoint was invalid, yet status code was 200. Data was: ${ne.responseText}`),null)}Re&&L(null,_e)}else{let _e="";switch(P){case w.UserAuthentication:_e=y.buildLogSuffix("authenticationEndpoint");break;case w.ChannelAuthorization:_e=`Clients must be authorized to join private or presence channels. ${y.buildLogSuffix("authorizationEndpoint")}`;break}L(new $(ne.status,`Unable to retrieve auth string from ${P.toString()} endpoint - received status: ${ne.status} from ${v.endpoint}. ${_e}`),null)}},ne.send(f),ne};function M(g){return z(G(g))}var D=String.fromCharCode,R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",K=function(g){var f=g.charCodeAt(0);return f<128?g:f<2048?D(192|f>>>6)+D(128|f&63):D(224|f>>>12&15)+D(128|f>>>6&63)+D(128|f&63)},G=function(g){return g.replace(/[^\x00-\x7F]/g,K)},Y=function(g){var f=[0,2,1][g.length%3],v=g.charCodeAt(0)<<16|(g.length>1?g.charCodeAt(1):0)<<8|(g.length>2?g.charCodeAt(2):0),P=[R.charAt(v>>>18),R.charAt(v>>>12&63),f>=2?"=":R.charAt(v>>>6&63),f>=1?"=":R.charAt(v&63)];return P.join("")},z=window.btoa||function(g){return g.replace(/[\s\S]{1,3}/g,Y)};class H{constructor(f,v,P,L){this.clear=v,this.timer=f(()=>{this.timer&&(this.timer=L(this.timer))},P)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}var C=H;function U(g){window.clearTimeout(g)}function Q(g){window.clearInterval(g)}class X extends C{constructor(f,v){super(setTimeout,U,f,function(P){return v(),null})}}class V extends C{constructor(f,v){super(setInterval,Q,f,function(P){return v(),P})}}var E={now(){return Date.now?Date.now():new Date().valueOf()},defer(g){return new X(0,g)},method(g,...f){var v=Array.prototype.slice.call(arguments,1);return function(P){return P[g].apply(P,v.concat(arguments))}}},O=E;function A(g,...f){for(var v=0;v<f.length;v++){var P=f[v];for(var L in P)P[L]&&P[L].constructor&&P[L].constructor===Object?g[L]=A(g[L]||{},P[L]):g[L]=P[L]}return g}function Z(){for(var g=["Pusher"],f=0;f<arguments.length;f++)typeof arguments[f]=="string"?g.push(arguments[f]):g.push(le(arguments[f]));return g.join(" : ")}function re(g,f){var v=Array.prototype.indexOf;if(g===null)return-1;if(v&&g.indexOf===v)return g.indexOf(f);for(var P=0,L=g.length;P<L;P++)if(g[P]===f)return P;return-1}function ie(g,f){for(var v in g)Object.prototype.hasOwnProperty.call(g,v)&&f(g[v],v,g)}function Te(g){var f=[];return ie(g,function(v,P){f.push(P)}),f}function Pe(g){var f=[];return ie(g,function(v){f.push(v)}),f}function fe(g,f,v){for(var P=0;P<g.length;P++)f.call(v||window,g[P],P,g)}function Ie(g,f){for(var v=[],P=0;P<g.length;P++)v.push(f(g[P],P,g,v));return v}function Ve(g,f){var v={};return ie(g,function(P,L){v[L]=f(P)}),v}function Be(g,f){f=f||function(L){return!!L};for(var v=[],P=0;P<g.length;P++)f(g[P],P,g,v)&&v.push(g[P]);return v}function at(g,f){var v={};return ie(g,function(P,L){(f&&f(P,L,g,v)||P)&&(v[L]=P)}),v}function Je(g){var f=[];return ie(g,function(v,P){f.push([P,v])}),f}function Ye(g,f){for(var v=0;v<g.length;v++)if(f(g[v],v,g))return!0;return!1}function pe(g,f){for(var v=0;v<g.length;v++)if(!f(g[v],v,g))return!1;return!0}function Ne(g){return Ve(g,function(f){return typeof f=="object"&&(f=le(f)),encodeURIComponent(M(f.toString()))})}function ae(g){var f=at(g,function(P){return P!==void 0}),v=Ie(Je(Ne(f)),O.method("join","=")).join("&");return v}function he(g){var f=[],v=[];return function P(L,ne){var de,_e,Re;switch(typeof L){case"object":if(!L)return null;for(de=0;de<f.length;de+=1)if(f[de]===L)return{$ref:v[de]};if(f.push(L),v.push(ne),Object.prototype.toString.apply(L)==="[object Array]")for(Re=[],de=0;de<L.length;de+=1)Re[de]=P(L[de],ne+"["+de+"]");else{Re={};for(_e in L)Object.prototype.hasOwnProperty.call(L,_e)&&(Re[_e]=P(L[_e],ne+"["+JSON.stringify(_e)+"]"))}return Re;case"number":case"string":case"boolean":return L}}(g,"$")}function le(g){try{return JSON.stringify(g)}catch{return JSON.stringify(he(g))}}class je{constructor(){this.globalLog=f=>{window.console&&window.console.log&&window.console.log(f)}}debug(...f){this.log(this.globalLog,f)}warn(...f){this.log(this.globalLogWarn,f)}error(...f){this.log(this.globalLogError,f)}globalLogWarn(f){window.console&&window.console.warn?window.console.warn(f):this.globalLog(f)}globalLogError(f){window.console&&window.console.error?window.console.error(f):this.globalLogWarn(f)}log(f,...v){var P=Z.apply(this,arguments);yl.log?yl.log(P):yl.logToConsole&&f.bind(this)(P)}}var xe=new je,Et=function(g,f,v,P,L){(v.headers!==void 0||v.headersProvider!=null)&&xe.warn(`To send headers with the ${P.toString()} request, you must use AJAX, rather than JSONP.`);var ne=g.nextAuthCallbackID.toString();g.nextAuthCallbackID++;var de=g.getDocument(),_e=de.createElement("script");g.auth_callbacks[ne]=function(ot){L(null,ot)};var Re="Pusher.auth_callbacks['"+ne+"']";_e.src=v.endpoint+"?callback="+encodeURIComponent(Re)+"&"+f;var nt=de.getElementsByTagName("head")[0]||de.documentElement;nt.insertBefore(_e,nt.firstChild)},_t=Et;class Mt{constructor(f){this.src=f}send(f){var v=this,P="Error loading "+v.src;v.script=document.createElement("script"),v.script.id=f.id,v.script.src=v.src,v.script.type="text/javascript",v.script.charset="UTF-8",v.script.addEventListener?(v.script.onerror=function(){f.callback(P)},v.script.onload=function(){f.callback(null)}):v.script.onreadystatechange=function(){(v.script.readyState==="loaded"||v.script.readyState==="complete")&&f.callback(null)},v.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(v.errorScript=document.createElement("script"),v.errorScript.id=f.id+"_error",v.errorScript.text=f.name+"('"+P+"');",v.script.async=v.errorScript.async=!1):v.script.async=!0;var L=document.getElementsByTagName("head")[0];L.insertBefore(v.script,L.firstChild),v.errorScript&&L.insertBefore(v.errorScript,v.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class jt{constructor(f,v){this.url=f,this.data=v}send(f){if(!this.request){var v=ae(this.data),P=this.url+"/"+f.number+"?"+v;this.request=$e.createScriptRequest(P),this.request.send(f)}}cleanup(){this.request&&this.request.cleanup()}}var pn=function(g,f){return function(v,P){var L="http"+(f?"s":"")+"://",ne=L+(g.host||g.options.host)+g.options.path,de=$e.createJSONPRequest(ne,v),_e=$e.ScriptReceivers.create(function(Re,nt){s.remove(_e),de.cleanup(),nt&&nt.host&&(g.host=nt.host),P&&P(Re,nt)});de.send(_e)}},On={name:"jsonp",getAgent:pn},Ot=On;function F(g,f,v){var P=g+(f.useTLS?"s":""),L=f.useTLS?f.hostTLS:f.hostNonTLS;return P+"://"+L+v}function B(g,f){var v="/app/"+g,P="?protocol="+u.PROTOCOL+"&client=js&version="+u.VERSION+(f?"&"+f:"");return v+P}var te={getInitial:function(g,f){var v=(f.httpPath||"")+B(g,"flash=false");return F("ws",f,v)}},oe={getInitial:function(g,f){var v=(f.httpPath||"/pusher")+B(g);return F("http",f,v)}},ye={getInitial:function(g,f){return F("http",f,f.httpPath||"/pusher")},getPath:function(g,f){return B(g)}};class we{constructor(){this._callbacks={}}get(f){return this._callbacks[Ue(f)]}add(f,v,P){var L=Ue(f);this._callbacks[L]=this._callbacks[L]||[],this._callbacks[L].push({fn:v,context:P})}remove(f,v,P){if(!f&&!v&&!P){this._callbacks={};return}var L=f?[Ue(f)]:Te(this._callbacks);v||P?this.removeCallback(L,v,P):this.removeAllCallbacks(L)}removeCallback(f,v,P){fe(f,function(L){this._callbacks[L]=Be(this._callbacks[L]||[],function(ne){return v&&v!==ne.fn||P&&P!==ne.context}),this._callbacks[L].length===0&&delete this._callbacks[L]},this)}removeAllCallbacks(f){fe(f,function(v){delete this._callbacks[v]},this)}}function Ue(g){return"_"+g}class J{constructor(f){this.callbacks=new we,this.global_callbacks=[],this.failThrough=f}bind(f,v,P){return this.callbacks.add(f,v,P),this}bind_global(f){return this.global_callbacks.push(f),this}unbind(f,v,P){return this.callbacks.remove(f,v,P),this}unbind_global(f){return f?(this.global_callbacks=Be(this.global_callbacks||[],v=>v!==f),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(f,v,P){for(var L=0;L<this.global_callbacks.length;L++)this.global_callbacks[L](f,v);var ne=this.callbacks.get(f),de=[];if(P?de.push(v,P):v&&de.push(v),ne&&ne.length>0)for(var L=0;L<ne.length;L++)ne[L].fn.apply(ne[L].context||window,de);else this.failThrough&&this.failThrough(f,v);return this}}class ce extends J{constructor(f,v,P,L,ne){super(),this.initialize=$e.transportConnectionInitializer,this.hooks=f,this.name=v,this.priority=P,this.key=L,this.options=ne,this.state="new",this.timeline=ne.timeline,this.activityTimeout=ne.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 f=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(f,this.options)}catch(v){return O.defer(()=>{this.onError(v),this.changeState("closed")}),!1}return this.bindListeners(),xe.debug("Connecting",{transport:this.name,url:f}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(f){return this.state==="open"?(O.defer(()=>{this.socket&&this.socket.send(f)}),!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(f){this.emit("error",{type:"WebSocketError",error:f}),this.timeline.error(this.buildTimelineMessage({error:f.toString()}))}onClose(f){f?this.changeState("closed",{code:f.code,reason:f.reason,wasClean:f.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(f){this.emit("message",f)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=f=>{this.onError(f)},this.socket.onclose=f=>{this.onClose(f)},this.socket.onmessage=f=>{this.onMessage(f)},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(f,v){this.state=f,this.timeline.info(this.buildTimelineMessage({state:f,params:v})),this.emit(f,v)}buildTimelineMessage(f){return A({cid:this.id},f)}}class We{constructor(f){this.hooks=f}isSupported(f){return this.hooks.isSupported(f)}createConnection(f,v,P,L){return new ce(this.hooks,f,v,P,L)}}var Ae=new We({urls:te,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!$e.getWebSocketAPI()},isSupported:function(){return!!$e.getWebSocketAPI()},getSocket:function(g){return $e.createWebSocket(g)}}),Qe={urls:oe,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},me=A({getSocket:function(g){return $e.HTTPFactory.createStreamingSocket(g)}},Qe),dt=A({getSocket:function(g){return $e.HTTPFactory.createPollingSocket(g)}},Qe),Me={isSupported:function(){return $e.isXHRSupported()}},on=new We(A({},me,Me)),Gt=new We(A({},dt,Me)),Zr={ws:Ae,xhr_streaming:on,xhr_polling:Gt},fr=Zr,To=new We({file:"sockjs",urls:ye,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(g,f){return new window.SockJS(g,null,{js_path:p.getPath("sockjs",{useTLS:f.useTLS}),ignore_null_origin:f.ignoreNullOrigin})},beforeOpen:function(g,f){g.send(JSON.stringify({path:f}))}}),xa={isSupported:function(g){var f=$e.isXDRSupported(g.useTLS);return f}},sn=new We(A({},me,xa)),Se=new We(A({},dt,xa));fr.xdr_streaming=sn,fr.xdr_polling=Se,fr.sockjs=To;var Wt=fr;class be extends J{constructor(){super();var f=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){f.emit("online")},!1),window.addEventListener("offline",function(){f.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var xt=new be;class ut{constructor(f,v,P){this.manager=f,this.transport=v,this.minPingDelay=P.minPingDelay,this.maxPingDelay=P.maxPingDelay,this.pingDelay=void 0}createConnection(f,v,P,L){L=A({},L,{activityTimeout:this.pingDelay});var ne=this.transport.createConnection(f,v,P,L),de=null,_e=function(){ne.unbind("open",_e),ne.bind("closed",Re),de=O.now()},Re=nt=>{if(ne.unbind("closed",Re),nt.code===1002||nt.code===1003)this.manager.reportDeath();else if(!nt.wasClean&&de){var ot=O.now()-de;ot<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(ot/2,this.minPingDelay))}};return ne.bind("open",_e),ne}isSupported(f){return this.manager.isAlive()&&this.transport.isSupported(f)}}const Or={decodeMessage:function(g){try{var f=JSON.parse(g.data),v=f.data;if(typeof v=="string")try{v=JSON.parse(f.data)}catch{}var P={event:f.event,channel:f.channel,data:v};return f.user_id&&(P.user_id=f.user_id),P}catch(L){throw{type:"MessageParseError",error:L,data:g.data}}},encodeMessage:function(g){return JSON.stringify(g)},processHandshake:function(g){var f=Or.decodeMessage(g);if(f.event==="pusher:connection_established"){if(!f.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:f.data.socket_id,activityTimeout:f.data.activity_timeout*1e3}}else{if(f.event==="pusher:error")return{action:this.getCloseAction(f.data),error:this.getCloseError(f.data)};throw"Invalid handshake"}},getCloseAction:function(g){return g.code<4e3?g.code>=1002&&g.code<=1004?"backoff":null:g.code===4e3?"tls_only":g.code<4100?"refused":g.code<4200?"backoff":g.code<4300?"retry":"refused"},getCloseError:function(g){return g.code!==1e3&&g.code!==1001?{type:"PusherError",data:{code:g.code,message:g.reason||g.message}}:null}};var Kt=Or;class Ia extends J{constructor(f,v){super(),this.id=f,this.transport=v,this.activityTimeout=v.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(f){return this.transport.send(f)}send_event(f,v,P){var L={event:f,data:v};return P&&(L.channel=P),xe.debug("Event sent",L),this.send(Kt.encodeMessage(L))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var f={message:P=>{var L;try{L=Kt.decodeMessage(P)}catch(ne){this.emit("error",{type:"MessageParseError",error:ne,data:P.data})}if(L!==void 0){switch(xe.debug("Event recd",L),L.event){case"pusher:error":this.emit("error",{type:"PusherError",data:L.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",L)}},activity:()=>{this.emit("activity")},error:P=>{this.emit("error",P)},closed:P=>{v(),P&&P.code&&this.handleCloseEvent(P),this.transport=null,this.emit("closed")}},v=()=>{ie(f,(P,L)=>{this.transport.unbind(L,P)})};ie(f,(P,L)=>{this.transport.bind(L,P)})}handleCloseEvent(f){var v=Kt.getCloseAction(f),P=Kt.getCloseError(f);P&&this.emit("error",P),v&&this.emit(v,{action:v,error:P})}}class Eo{constructor(f,v){this.transport=f,this.callback=v,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=f=>{this.unbindListeners();var v;try{v=Kt.processHandshake(f)}catch(P){this.finish("error",{error:P}),this.transport.close();return}v.action==="connected"?this.finish("connected",{connection:new Ia(v.id,this.transport),activityTimeout:v.activityTimeout}):(this.finish(v.action,{error:v.error}),this.transport.close())},this.onClosed=f=>{this.unbindListeners();var v=Kt.getCloseAction(f)||"backoff",P=Kt.getCloseError(f);this.finish(v,{error:P})},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(f,v){this.callback(A({transport:this.transport,action:f},v))}}class fl{constructor(f,v){this.timeline=f,this.options=v||{}}send(f,v){this.timeline.isEmpty()||this.timeline.send($e.TimelineTransport.getAgent(this,f),v)}}class Nr extends J{constructor(f,v){super(function(P,L){xe.debug("No callbacks on "+f+" for "+P)}),this.name=f,this.pusher=v,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(f,v){return v(null,{auth:""})}trigger(f,v){if(f.indexOf("client-")!==0)throw new k("Event '"+f+"' does not start with 'client-'");if(!this.subscribed){var P=y.buildLogSuffix("triggeringClientEvents");xe.warn(`Client event triggered before channel 'subscription_succeeded' event . ${P}`)}return this.pusher.send_event(f,v,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(f){var v=f.event,P=f.data;if(v==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(f);else if(v==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(f);else if(v.indexOf("pusher_internal:")!==0){var L={};this.emit(v,P,L)}}handleSubscriptionSucceededEvent(f){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",f.data)}handleSubscriptionCountEvent(f){f.data.subscription_count&&(this.subscriptionCount=f.data.subscription_count),this.emit("pusher:subscription_count",f.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(f,v)=>{f?(this.subscriptionPending=!1,xe.error(f.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:f.message},f instanceof $?{status:f.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:v.auth,channel_data:v.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class Pa extends Nr{authorize(f,v){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:f},v)}}class q{constructor(){this.reset()}get(f){return Object.prototype.hasOwnProperty.call(this.members,f)?{id:f,info:this.members[f]}:null}each(f){ie(this.members,(v,P)=>{f(this.get(P))})}setMyID(f){this.myID=f}onSubscription(f){this.members=f.presence.hash,this.count=f.presence.count,this.me=this.get(this.myID)}addMember(f){return this.get(f.user_id)===null&&this.count++,this.members[f.user_id]=f.user_info,this.get(f.user_id)}removeMember(f){var v=this.get(f.user_id);return v&&(delete this.members[f.user_id],this.count--),v}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var ue=function(g,f,v,P){function L(ne){return ne instanceof v?ne:new v(function(de){de(ne)})}return new(v||(v=Promise))(function(ne,de){function _e(ot){try{nt(P.next(ot))}catch(Nt){de(Nt)}}function Re(ot){try{nt(P.throw(ot))}catch(Nt){de(Nt)}}function nt(ot){ot.done?ne(ot.value):L(ot.value).then(_e,Re)}nt((P=P.apply(g,f||[])).next())})};class ze extends Pa{constructor(f,v){super(f,v),this.members=new q}authorize(f,v){super.authorize(f,(P,L)=>ue(this,void 0,void 0,function*(){if(!P)if(L=L,L.channel_data!=null){var ne=JSON.parse(L.channel_data);this.members.setMyID(ne.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 de=y.buildLogSuffix("authorizationEndpoint");xe.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${de}, or the user should be signed in.`),v("Invalid auth response");return}v(P,L)}))}handleEvent(f){var v=f.event;if(v.indexOf("pusher_internal:")===0)this.handleInternalEvent(f);else{var P=f.data,L={};f.user_id&&(L.user_id=f.user_id),this.emit(v,P,L)}}handleInternalEvent(f){var v=f.event,P=f.data;switch(v){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(f);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(f);break;case"pusher_internal:member_added":var L=this.members.addMember(P);this.emit("pusher:member_added",L);break;case"pusher_internal:member_removed":var ne=this.members.removeMember(P);ne&&this.emit("pusher:member_removed",ne);break}}handleSubscriptionSucceededEvent(f){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(f.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var yt=o(1),Nn=o(0);class Ci extends Pa{constructor(f,v,P){super(f,v),this.key=null,this.nacl=P}authorize(f,v){super.authorize(f,(P,L)=>{if(P){v(P,L);return}let ne=L.shared_secret;if(!ne){v(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=Object(Nn.decode)(ne),delete L.shared_secret,v(null,L)})}trigger(f,v){throw new N("Client events are not currently supported for encrypted channels")}handleEvent(f){var v=f.event,P=f.data;if(v.indexOf("pusher_internal:")===0||v.indexOf("pusher:")===0){super.handleEvent(f);return}this.handleEncryptedEvent(v,P)}handleEncryptedEvent(f,v){if(!this.key){xe.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!v.ciphertext||!v.nonce){xe.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+v);return}let P=Object(Nn.decode)(v.ciphertext);if(P.length<this.nacl.secretbox.overheadLength){xe.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${P.length}`);return}let L=Object(Nn.decode)(v.nonce);if(L.length<this.nacl.secretbox.nonceLength){xe.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${L.length}`);return}let ne=this.nacl.secretbox.open(P,L,this.key);if(ne===null){xe.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,(de,_e)=>{if(de){xe.error(`Failed to make a request to the authEndpoint: ${_e}. Unable to fetch new key, so dropping encrypted event`);return}if(ne=this.nacl.secretbox.open(P,L,this.key),ne===null){xe.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(f,this.getDataToEmit(ne))});return}this.emit(f,this.getDataToEmit(ne))}getDataToEmit(f){let v=Object(yt.decode)(f);try{return JSON.parse(v)}catch{return v}}}class fd extends J{constructor(f,v){super(),this.state="initialized",this.connection=null,this.key=f,this.options=v,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var P=$e.getNetwork();P.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),P.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}switchCluster(f){this.key=f,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(f){return this.connection?this.connection.send(f):!1}send_event(f,v,P){return this.connection?this.connection.send_event(f,v,P):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var f=(v,P)=>{v?this.runner=this.strategy.connect(0,f):P.action==="error"?(this.emit("error",{type:"HandshakeError",error:P.error}),this.timeline.error({handshakeError:P.error})):(this.abortConnecting(),this.handshakeCallbacks[P.action](P))};this.runner=this.strategy.connect(0,f)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var f=this.abandonConnection();f.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(f){this.timeline.info({action:"retry",delay:f}),f>0&&this.emit("connecting_in",Math.round(f/1e3)),this.retryTimer=new X(f||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new X(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new X(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 X(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(f){return A({},f,{message:v=>{this.resetActivityCheck(),this.emit("message",v)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:v=>{this.emit("error",v)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(f){return A({},f,{connected:v=>{this.activityTimeout=Math.min(this.options.activityTimeout,v.activityTimeout,v.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(v.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let f=v=>P=>{P.error&&this.emit("error",{type:"WebSocketError",error:P.error}),v(P)};return{tls_only:f(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:f(()=>{this.disconnect()}),backoff:f(()=>{this.retryIn(1e3)}),retry:f(()=>{this.retryIn(0)})}}setConnection(f){this.connection=f;for(var v in this.connectionCallbacks)this.connection.bind(v,this.connectionCallbacks[v]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var f in this.connectionCallbacks)this.connection.unbind(f,this.connectionCallbacks[f]);var v=this.connection;return this.connection=null,v}}updateState(f,v){var P=this.state;if(this.state=f,P!==f){var L=f;L==="connected"&&(L+=" with new socket ID "+v.socket_id),xe.debug("State changed",P+" -> "+L),this.timeline.info({state:f,params:v}),this.emit("state_change",{previous:P,current:f}),this.emit(f,v)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class pl{constructor(){this.channels={}}add(f,v){return this.channels[f]||(this.channels[f]=Ti(f,v)),this.channels[f]}all(){return Pe(this.channels)}find(f){return this.channels[f]}remove(f){var v=this.channels[f];return delete this.channels[f],v}disconnect(){ie(this.channels,function(f){f.disconnect()})}}function Ti(g,f){if(g.indexOf("private-encrypted-")===0){if(f.config.nacl)return pr.createEncryptedChannel(g,f,f.config.nacl);let v="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",P=y.buildLogSuffix("encryptedChannelSupport");throw new N(`${v}. ${P}`)}else{if(g.indexOf("private-")===0)return pr.createPrivateChannel(g,f);if(g.indexOf("presence-")===0)return pr.createPresenceChannel(g,f);if(g.indexOf("#")===0)throw new _('Cannot create a channel with name "'+g+'".');return pr.createChannel(g,f)}}var gy={createChannels(){return new pl},createConnectionManager(g,f){return new fd(g,f)},createChannel(g,f){return new Nr(g,f)},createPrivateChannel(g,f){return new Pa(g,f)},createPresenceChannel(g,f){return new ze(g,f)},createEncryptedChannel(g,f,v){return new Ci(g,f,v)},createTimelineSender(g,f){return new fl(g,f)},createHandshake(g,f){return new Eo(g,f)},createAssistantToTheTransportManager(g,f,v){return new ut(g,f,v)}},pr=gy;class pd{constructor(f){this.options=f||{},this.livesLeft=this.options.lives||1/0}getAssistant(f){return pr.createAssistantToTheTransportManager(this,f,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class Qr{constructor(f,v){this.strategies=f,this.loop=!!v.loop,this.failFast=!!v.failFast,this.timeout=v.timeout,this.timeoutLimit=v.timeoutLimit}isSupported(){return Ye(this.strategies,O.method("isSupported"))}connect(f,v){var P=this.strategies,L=0,ne=this.timeout,de=null,_e=(Re,nt)=>{nt?v(null,nt):(L=L+1,this.loop&&(L=L%P.length),L<P.length?(ne&&(ne=ne*2,this.timeoutLimit&&(ne=Math.min(ne,this.timeoutLimit))),de=this.tryStrategy(P[L],f,{timeout:ne,failFast:this.failFast},_e)):v(!0))};return de=this.tryStrategy(P[L],f,{timeout:ne,failFast:this.failFast},_e),{abort:function(){de.abort()},forceMinPriority:function(Re){f=Re,de&&de.forceMinPriority(Re)}}}tryStrategy(f,v,P,L){var ne=null,de=null;return P.timeout>0&&(ne=new X(P.timeout,function(){de.abort(),L(!0)})),de=f.connect(v,function(_e,Re){_e&&ne&&ne.isRunning()&&!P.failFast||(ne&&ne.ensureAborted(),L(_e,Re))}),{abort:function(){ne&&ne.ensureAborted(),de.abort()},forceMinPriority:function(_e){de.forceMinPriority(_e)}}}}class hl{constructor(f){this.strategies=f}isSupported(){return Ye(this.strategies,O.method("isSupported"))}connect(f,v){return yy(this.strategies,f,function(P,L){return function(ne,de){if(L[P].error=ne,ne){by(L)&&v(!0);return}fe(L,function(_e){_e.forceMinPriority(de.transport.priority)}),v(null,de)}})}}function yy(g,f,v){var P=Ie(g,function(L,ne,de,_e){return L.connect(f,v(ne,_e))});return{abort:function(){fe(P,_y)},forceMinPriority:function(L){fe(P,function(ne){ne.forceMinPriority(L)})}}}function by(g){return pe(g,function(f){return!!f.error})}function _y(g){!g.error&&!g.aborted&&(g.abort(),g.aborted=!0)}class wy{constructor(f,v,P){this.strategy=f,this.transports=v,this.ttl=P.ttl||1800*1e3,this.usingTLS=P.useTLS,this.timeline=P.timeline}isSupported(){return this.strategy.isSupported()}connect(f,v){var P=this.usingTLS,L=ky(P),ne=L&&L.cacheSkipCount?L.cacheSkipCount:0,de=[this.strategy];if(L&&L.timestamp+this.ttl>=O.now()){var _e=this.transports[L.transport];_e&&(["ws","wss"].includes(L.transport)||ne>3?(this.timeline.info({cached:!0,transport:L.transport,latency:L.latency}),de.push(new Qr([_e],{timeout:L.latency*2+1e3,failFast:!0}))):ne++)}var Re=O.now(),nt=de.pop().connect(f,function ot(Nt,Ii){Nt?(hd(P),de.length>0?(Re=O.now(),nt=de.pop().connect(f,ot)):v(Nt)):(Sy(P,Ii.transport.name,O.now()-Re,ne),v(null,Ii))});return{abort:function(){nt.abort()},forceMinPriority:function(ot){f=ot,nt&&nt.forceMinPriority(ot)}}}}function ml(g){return"pusherTransport"+(g?"TLS":"NonTLS")}function ky(g){var f=$e.getLocalStorage();if(f)try{var v=f[ml(g)];if(v)return JSON.parse(v)}catch{hd(g)}return null}function Sy(g,f,v,P){var L=$e.getLocalStorage();if(L)try{L[ml(g)]=le({timestamp:O.now(),transport:f,latency:v,cacheSkipCount:P})}catch{}}function hd(g){var f=$e.getLocalStorage();if(f)try{delete f[ml(g)]}catch{}}class Ei{constructor(f,{delay:v}){this.strategy=f,this.options={delay:v}}isSupported(){return this.strategy.isSupported()}connect(f,v){var P=this.strategy,L,ne=new X(this.options.delay,function(){L=P.connect(f,v)});return{abort:function(){ne.ensureAborted(),L&&L.abort()},forceMinPriority:function(de){f=de,L&&L.forceMinPriority(de)}}}}class xo{constructor(f,v,P){this.test=f,this.trueBranch=v,this.falseBranch=P}isSupported(){var f=this.test()?this.trueBranch:this.falseBranch;return f.isSupported()}connect(f,v){var P=this.test()?this.trueBranch:this.falseBranch;return P.connect(f,v)}}class Cy{constructor(f){this.strategy=f}isSupported(){return this.strategy.isSupported()}connect(f,v){var P=this.strategy.connect(f,function(L,ne){ne&&P.abort(),v(L,ne)});return P}}function Io(g){return function(){return g.isSupported()}}var Ty=function(g,f,v){var P={};function L(xd,S0,C0,T0,E0){var Id=v(g,xd,S0,C0,T0,E0);return P[xd]=Id,Id}var ne=Object.assign({},f,{hostNonTLS:g.wsHost+":"+g.wsPort,hostTLS:g.wsHost+":"+g.wssPort,httpPath:g.wsPath}),de=Object.assign({},ne,{useTLS:!0}),_e=Object.assign({},f,{hostNonTLS:g.httpHost+":"+g.httpPort,hostTLS:g.httpHost+":"+g.httpsPort,httpPath:g.httpPath}),Re={loop:!0,timeout:15e3,timeoutLimit:6e4},nt=new pd({minPingDelay:1e4,maxPingDelay:g.activityTimeout}),ot=new pd({lives:2,minPingDelay:1e4,maxPingDelay:g.activityTimeout}),Nt=L("ws","ws",3,ne,nt),Ii=L("wss","ws",3,de,nt),y0=L("sockjs","sockjs",1,_e),wd=L("xhr_streaming","xhr_streaming",1,_e,ot),b0=L("xdr_streaming","xdr_streaming",1,_e,ot),kd=L("xhr_polling","xhr_polling",1,_e),_0=L("xdr_polling","xdr_polling",1,_e),Sd=new Qr([Nt],Re),w0=new Qr([Ii],Re),k0=new Qr([y0],Re),Cd=new Qr([new xo(Io(wd),wd,b0)],Re),Td=new Qr([new xo(Io(kd),kd,_0)],Re),Ed=new Qr([new xo(Io(Cd),new hl([Cd,new Ei(Td,{delay:4e3})]),Td)],Re),bl=new xo(Io(Ed),Ed,k0),_l;return f.useTLS?_l=new hl([Sd,new Ei(bl,{delay:2e3})]):_l=new hl([Sd,new Ei(w0,{delay:2e3}),new Ei(bl,{delay:5e3})]),new wy(new Cy(new xo(Io(Nt),_l,bl)),P,{ttl:18e5,timeline:f.timeline,useTLS:f.useTLS})},Ey=Ty,xy=function(){var g=this;g.timeline.info(g.buildTimelineMessage({transport:g.name+(g.options.useTLS?"s":"")})),g.hooks.isInitialized()?g.changeState("initialized"):g.hooks.file?(g.changeState("initializing"),p.load(g.hooks.file,{useTLS:g.options.useTLS},function(f,v){g.hooks.isInitialized()?(g.changeState("initialized"),v(!0)):(f&&g.onError(f),g.onClose(),v(!1))})):g.onClose()},Iy={getRequest:function(g){var f=new window.XDomainRequest;return f.ontimeout=function(){g.emit("error",new x),g.close()},f.onerror=function(v){g.emit("error",v),g.close()},f.onprogress=function(){f.responseText&&f.responseText.length>0&&g.onChunk(200,f.responseText)},f.onload=function(){f.responseText&&f.responseText.length>0&&g.onChunk(200,f.responseText),g.emit("finished",200),g.close()},f},abortRequest:function(g){g.ontimeout=g.onerror=g.onprogress=g.onload=null,g.abort()}},Py=Iy;const Oy=256*1024;class Ny extends J{constructor(f,v,P){super(),this.hooks=f,this.method=v,this.url=P}start(f){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},$e.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(f)}close(){this.unloader&&($e.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(f,v){for(;;){var P=this.advanceBuffer(v);if(P)this.emit("chunk",{status:f,data:P});else break}this.isBufferTooLong(v)&&this.emit("buffer_too_long")}advanceBuffer(f){var v=f.slice(this.position),P=v.indexOf(`
|
|
68
|
+
`);return P!==-1?(this.position+=P+1,v.slice(0,P)):null}isBufferTooLong(f){return this.position===f.length&&f.length>Oy}}var vl;(function(g){g[g.CONNECTING=0]="CONNECTING",g[g.OPEN=1]="OPEN",g[g.CLOSED=3]="CLOSED"})(vl||(vl={}));var ea=vl,Dy=1;class My{constructor(f,v){this.hooks=f,this.session=vd(1e3)+"/"+$y(8),this.location=By(v),this.readyState=ea.CONNECTING,this.openStream()}send(f){return this.sendRaw(JSON.stringify([f]))}ping(){this.hooks.sendHeartbeat(this)}close(f,v){this.onClose(f,v,!0)}sendRaw(f){if(this.readyState===ea.OPEN)try{return $e.createSocketRequest("POST",md(Ay(this.location,this.session))).start(f),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(f,v,P){this.closeStream(),this.readyState=ea.CLOSED,this.onclose&&this.onclose({code:f,reason:v,wasClean:P})}onChunk(f){if(f.status===200){this.readyState===ea.OPEN&&this.onActivity();var v,P=f.data.slice(0,1);switch(P){case"o":v=JSON.parse(f.data.slice(1)||"{}"),this.onOpen(v);break;case"a":v=JSON.parse(f.data.slice(1)||"[]");for(var L=0;L<v.length;L++)this.onEvent(v[L]);break;case"m":v=JSON.parse(f.data.slice(1)||"null"),this.onEvent(v);break;case"h":this.hooks.onHeartbeat(this);break;case"c":v=JSON.parse(f.data.slice(1)||"[]"),this.onClose(v[0],v[1],!0);break}}}onOpen(f){this.readyState===ea.CONNECTING?(f&&f.hostname&&(this.location.base=Ry(this.location.base,f.hostname)),this.readyState=ea.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(f){this.readyState===ea.OPEN&&this.onmessage&&this.onmessage({data:f})}onActivity(){this.onactivity&&this.onactivity()}onError(f){this.onerror&&this.onerror(f)}openStream(){this.stream=$e.createSocketRequest("POST",md(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",f=>{this.onChunk(f)}),this.stream.bind("finished",f=>{this.hooks.onFinished(this,f)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(f){O.defer(()=>{this.onError(f),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function By(g){var f=/([^\?]*)\/*(\??.*)/.exec(g);return{base:f[1],queryString:f[2]}}function Ay(g,f){return g.base+"/"+f+"/xhr_send"}function md(g){var f=g.indexOf("?")===-1?"?":"&";return g+f+"t="+ +new Date+"&n="+Dy++}function Ry(g,f){var v=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(g);return v[1]+f+v[3]}function vd(g){return $e.randomInt(g)}function $y(g){for(var f=[],v=0;v<g;v++)f.push(vd(32).toString(32));return f.join("")}var Ly=My,Vy={getReceiveURL:function(g,f){return g.base+"/"+f+"/xhr_streaming"+g.queryString},onHeartbeat:function(g){g.sendRaw("[]")},sendHeartbeat:function(g){g.sendRaw("[]")},onFinished:function(g,f){g.onClose(1006,"Connection interrupted ("+f+")",!1)}},Fy=Vy,Hy={getReceiveURL:function(g,f){return g.base+"/"+f+"/xhr"+g.queryString},onHeartbeat:function(){},sendHeartbeat:function(g){g.sendRaw("[]")},onFinished:function(g,f){f===200?g.reconnect():g.onClose(1006,"Connection interrupted ("+f+")",!1)}},Uy=Hy,zy={getRequest:function(g){var f=$e.getXHRAPI(),v=new f;return v.onreadystatechange=v.onprogress=function(){switch(v.readyState){case 3:v.responseText&&v.responseText.length>0&&g.onChunk(v.status,v.responseText);break;case 4:v.responseText&&v.responseText.length>0&&g.onChunk(v.status,v.responseText),g.emit("finished",v.status),g.close();break}},v},abortRequest:function(g){g.onreadystatechange=null,g.abort()}},jy=zy,Wy={createStreamingSocket(g){return this.createSocket(Fy,g)},createPollingSocket(g){return this.createSocket(Uy,g)},createSocket(g,f){return new Ly(g,f)},createXHR(g,f){return this.createRequest(jy,g,f)},createRequest(g,f,v){return new Ny(g,f,v)}},gd=Wy;gd.createXDR=function(g,f){return this.createRequest(Py,g,f)};var qy=gd,Yy={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:s,DependenciesReceivers:c,getDefaultStrategy:Ey,Transports:Wt,transportConnectionInitializer:xy,HTTPFactory:qy,TimelineTransport:Ot,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(g){window.Pusher=g;var f=()=>{this.onDocumentBody(g.ready)};window.JSON?f():p.load("json2",{},f)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:j,jsonp:_t}},onDocumentBody(g){document.body?g():setTimeout(()=>{this.onDocumentBody(g)},0)},createJSONPRequest(g,f){return new jt(g,f)},createScriptRequest(g){return new Mt(g)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var g=this.getXHRAPI();return new g},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return xt},createWebSocket(g){var f=this.getWebSocketAPI();return new f(g)},createSocketRequest(g,f){if(this.isXHRSupported())return this.HTTPFactory.createXHR(g,f);if(this.isXDRSupported(f.indexOf("https:")===0))return this.HTTPFactory.createXDR(g,f);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var g=this.getXHRAPI();return!!g&&new g().withCredentials!==void 0},isXDRSupported(g){var f=g?"https:":"http:",v=this.getProtocol();return!!window.XDomainRequest&&v===f},addUnloadListener(g){window.addEventListener!==void 0?window.addEventListener("unload",g,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",g)},removeUnloadListener(g){window.addEventListener!==void 0?window.removeEventListener("unload",g,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",g)},randomInt(g){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*g)}},$e=Yy,gl;(function(g){g[g.ERROR=3]="ERROR",g[g.INFO=6]="INFO",g[g.DEBUG=7]="DEBUG"})(gl||(gl={}));var xi=gl;class Gy{constructor(f,v,P){this.key=f,this.session=v,this.events=[],this.options=P||{},this.sent=0,this.uniqueID=0}log(f,v){f<=this.options.level&&(this.events.push(A({},v,{timestamp:O.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(f){this.log(xi.ERROR,f)}info(f){this.log(xi.INFO,f)}debug(f){this.log(xi.DEBUG,f)}isEmpty(){return this.events.length===0}send(f,v){var P=A({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=[],f(P,(L,ne)=>{L||this.sent++,v&&v(L,ne)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class Ky{constructor(f,v,P,L){this.name=f,this.priority=v,this.transport=P,this.options=L||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(f,v){if(this.isSupported()){if(this.priority<f)return yd(new S,v)}else return yd(new I,v);var P=!1,L=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),ne=null,de=function(){L.unbind("initialized",de),L.connect()},_e=function(){ne=pr.createHandshake(L,function(Nt){P=!0,ot(),v(null,Nt)})},Re=function(Nt){ot(),v(Nt)},nt=function(){ot();var Nt;Nt=le(L),v(new b(Nt))},ot=function(){L.unbind("initialized",de),L.unbind("open",_e),L.unbind("error",Re),L.unbind("closed",nt)};return L.bind("initialized",de),L.bind("open",_e),L.bind("error",Re),L.bind("closed",nt),L.initialize(),{abort:()=>{P||(ot(),ne?ne.close():L.close())},forceMinPriority:Nt=>{P||this.priority<Nt&&(ne?ne.close():L.close())}}}}function yd(g,f){return O.defer(function(){f(g)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:Xy}=$e;var Jy=function(g,f,v,P,L,ne){var de=Xy[v];if(!de)throw new T(v);var _e=(!g.enabledTransports||re(g.enabledTransports,f)!==-1)&&(!g.disabledTransports||re(g.disabledTransports,f)===-1),Re;return _e?(L=Object.assign({ignoreNullOrigin:g.ignoreNullOrigin},L),Re=new Ky(f,P,ne?ne.getAssistant(de):de,L)):Re=Zy,Re},Zy={isSupported:function(){return!1},connect:function(g,f){var v=O.defer(function(){f(new I)});return{abort:function(){v.ensureAborted()},forceMinPriority:function(){}}}};function Qy(g){if(g==null)throw"You must pass an options object";if(g.cluster==null)throw"Options object must provide a cluster";"disableStats"in g&&xe.warn("The disableStats option is deprecated in favor of enableStats")}const e0=(g,f)=>{var v="socket_id="+encodeURIComponent(g.socketId);for(var P in f.params)v+="&"+encodeURIComponent(P)+"="+encodeURIComponent(f.params[P]);if(f.paramsProvider!=null){let L=f.paramsProvider();for(var P in L)v+="&"+encodeURIComponent(P)+"="+encodeURIComponent(L[P])}return v};var t0=g=>{if(typeof $e.getAuthorizers()[g.transport]>"u")throw`'${g.transport}' is not a recognized auth transport`;return(f,v)=>{const P=e0(f,g);$e.getAuthorizers()[g.transport]($e,P,g,w.UserAuthentication,v)}};const n0=(g,f)=>{var v="socket_id="+encodeURIComponent(g.socketId);v+="&channel_name="+encodeURIComponent(g.channelName);for(var P in f.params)v+="&"+encodeURIComponent(P)+"="+encodeURIComponent(f.params[P]);if(f.paramsProvider!=null){let L=f.paramsProvider();for(var P in L)v+="&"+encodeURIComponent(P)+"="+encodeURIComponent(L[P])}return v};var r0=g=>{if(typeof $e.getAuthorizers()[g.transport]>"u")throw`'${g.transport}' is not a recognized auth transport`;return(f,v)=>{const P=n0(f,g);$e.getAuthorizers()[g.transport]($e,P,g,w.ChannelAuthorization,v)}};const a0=(g,f,v)=>{const P={authTransport:f.transport,authEndpoint:f.endpoint,auth:{params:f.params,headers:f.headers}};return(L,ne)=>{const de=g.channel(L.channelName);v(de,P).authorize(L.socketId,ne)}};function bd(g,f){let v={activityTimeout:g.activityTimeout||u.activityTimeout,cluster:g.cluster,httpPath:g.httpPath||u.httpPath,httpPort:g.httpPort||u.httpPort,httpsPort:g.httpsPort||u.httpsPort,pongTimeout:g.pongTimeout||u.pongTimeout,statsHost:g.statsHost||u.stats_host,unavailableTimeout:g.unavailableTimeout||u.unavailableTimeout,wsPath:g.wsPath||u.wsPath,wsPort:g.wsPort||u.wsPort,wssPort:g.wssPort||u.wssPort,enableStats:u0(g),httpHost:o0(g),useTLS:l0(g),wsHost:i0(g),userAuthenticator:c0(g),channelAuthorizer:f0(g,f)};return"disabledTransports"in g&&(v.disabledTransports=g.disabledTransports),"enabledTransports"in g&&(v.enabledTransports=g.enabledTransports),"ignoreNullOrigin"in g&&(v.ignoreNullOrigin=g.ignoreNullOrigin),"timelineParams"in g&&(v.timelineParams=g.timelineParams),"nacl"in g&&(v.nacl=g.nacl),v}function o0(g){return g.httpHost?g.httpHost:g.cluster?`sockjs-${g.cluster}.pusher.com`:u.httpHost}function i0(g){return g.wsHost?g.wsHost:s0(g.cluster)}function s0(g){return`ws-${g}.pusher.com`}function l0(g){return $e.getProtocol()==="https:"?!0:g.forceTLS!==!1}function u0(g){return"enableStats"in g?g.enableStats:"disableStats"in g?!g.disableStats:!1}const _d=g=>"customHandler"in g&&g.customHandler!=null;function c0(g){const f=Object.assign(Object.assign({},u.userAuthentication),g.userAuthentication);return _d(f)?f.customHandler:t0(f)}function d0(g,f){let v;if("channelAuthorization"in g)v=Object.assign(Object.assign({},u.channelAuthorization),g.channelAuthorization);else if(v={transport:g.authTransport||u.authTransport,endpoint:g.authEndpoint||u.authEndpoint},"auth"in g&&("params"in g.auth&&(v.params=g.auth.params),"headers"in g.auth&&(v.headers=g.auth.headers)),"authorizer"in g)return{customHandler:a0(f,v,g.authorizer)};return v}function f0(g,f){const v=d0(g,f);return _d(v)?v.customHandler:r0(v)}class p0 extends J{constructor(f){super(function(v,P){xe.debug(`No callbacks on watchlist events for ${v}`)}),this.pusher=f,this.bindWatchlistInternalEvent()}handleEvent(f){f.data.events.forEach(v=>{this.emit(v.name,v)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",f=>{var v=f.event;v==="pusher_internal:watchlist_events"&&this.handleEvent(f)})}}function h0(){let g,f;return{promise:new Promise((P,L)=>{g=P,f=L}),resolve:g,reject:f}}var m0=h0;class v0 extends J{constructor(f){super(function(v,P){xe.debug("No callbacks on user for "+v)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(v,P)=>{if(v){xe.warn(`Error during signin: ${v}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:P.auth,user_data:P.user_data})},this.pusher=f,this.pusher.connection.bind("state_change",({previous:v,current:P})=>{v!=="connected"&&P==="connected"&&this._signin(),v==="connected"&&P!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new p0(f),this.pusher.connection.bind("message",v=>{var P=v.event;P==="pusher:signin_success"&&this._onSigninSuccess(v.data),this.serverToUserChannel&&this.serverToUserChannel.name===v.channel&&this.serverToUserChannel.handleEvent(v)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(f){try{this.user_data=JSON.parse(f.user_data)}catch{xe.error(`Failed parsing user data after signin: ${f.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){xe.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const f=v=>{v.subscriptionPending&&v.subscriptionCancelled?v.reinstateSubscription():!v.subscriptionPending&&this.pusher.connection.state==="connected"&&v.subscribe()};this.serverToUserChannel=new Nr(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((v,P)=>{v.indexOf("pusher_internal:")===0||v.indexOf("pusher:")===0||this.emit(v,P)}),f(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:f,resolve:v,reject:P}=m0();f.done=!1;const L=()=>{f.done=!0};f.then(L).catch(L),this.signinDonePromise=f,this._signinDoneResolve=v}}class Vt{static ready(){Vt.isReady=!0;for(var f=0,v=Vt.instances.length;f<v;f++)Vt.instances[f].connect()}static getClientFeatures(){return Te(at({ws:$e.Transports.ws},function(f){return f.isSupported({})}))}constructor(f,v){g0(f),Qy(v),this.key=f,this.options=v,this.config=bd(this.options,this),this.channels=pr.createChannels(),this.global_emitter=new J,this.sessionID=$e.randomInt(1e9),this.timeline=new Gy(this.key,this.sessionID,{cluster:this.config.cluster,features:Vt.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:xi.INFO,version:u.VERSION}),this.config.enableStats&&(this.timelineSender=pr.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+$e.TimelineTransport.name}));var P=L=>$e.getDefaultStrategy(this.config,L,Jy);this.connection=pr.createConnectionManager(this.key,{getStrategy:P,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",L=>{var ne=L.event,de=ne.indexOf("pusher_internal:")===0;if(L.channel){var _e=this.channel(L.channel);_e&&_e.handleEvent(L)}de||this.global_emitter.emit(L.event,L.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",L=>{xe.warn(L)}),Vt.instances.push(this),this.timeline.info({instances:Vt.instances.length}),this.user=new v0(this),Vt.isReady&&this.connect()}switchCluster(f){const{appKey:v,cluster:P}=f;this.key=v,this.options=Object.assign(Object.assign({},this.options),{cluster:P}),this.config=bd(this.options,this),this.connection.switchCluster(this.key)}channel(f){return this.channels.find(f)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var f=this.connection.isUsingTLS(),v=this.timelineSender;this.timelineSenderTimer=new V(6e4,function(){v.send(f)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(f,v,P){return this.global_emitter.bind(f,v,P),this}unbind(f,v,P){return this.global_emitter.unbind(f,v,P),this}bind_global(f){return this.global_emitter.bind_global(f),this}unbind_global(f){return this.global_emitter.unbind_global(f),this}unbind_all(f){return this.global_emitter.unbind_all(),this}subscribeAll(){var f;for(f in this.channels.channels)this.channels.channels.hasOwnProperty(f)&&this.subscribe(f)}subscribe(f){var v=this.channels.add(f,this);return v.subscriptionPending&&v.subscriptionCancelled?v.reinstateSubscription():!v.subscriptionPending&&this.connection.state==="connected"&&v.subscribe(),v}unsubscribe(f){var v=this.channels.find(f);v&&v.subscriptionPending?v.cancelSubscription():(v=this.channels.remove(f),v&&v.subscribed&&v.unsubscribe())}send_event(f,v,P){return this.connection.send_event(f,v,P)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}Vt.instances=[],Vt.isReady=!1,Vt.logToConsole=!1,Vt.Runtime=$e,Vt.ScriptReceivers=$e.ScriptReceivers,Vt.DependenciesReceivers=$e.DependenciesReceivers,Vt.auth_callbacks=$e.auth_callbacks;var yl=r.default=Vt;function g0(g){if(g==null)throw"You must pass your app key when you instantiate Pusher."}$e.setup(Vt)}])})})(Xm);var yN=Xm.exports;function bN(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n)})}}}const Qt={listeners:a.ref([]),echo:null,key:null,authorizer:null,emitter:bN()};function Jm(e="unique"){var t;return Qt.listeners.value.some(n=>n.name===e)||(t=Qt.listeners.value)==null||t.push({name:e,isListening:a.ref(!1)}),Qt.listeners.value.find(n=>n.name===e)}function Zm(e,t){Qt.echo=new gN({broadcaster:"pusher",client:yN.ConnectionManager,key:e,authorizer:t,cluster:"eu",forceTLS:!0,encrypted:!0})}function _N(e=null){const t=Jm(e??void 0);function n(o,i,s,l=!0){if(Qt.echo===null)throw new Error("Echo is not initialized");const u=`${o}.${i}`,d=Qt.emitter.all.has(u);t&&(t.isListening=!0),d||(l?Qt.echo.private(o):Qt.echo.channel(o)).listen(`.${i}`,p=>{Qt.emitter.emit(u,p)}),Qt.emitter.on(u,async c=>{const p=await s(c)??!1;t&&(t.isListening=!1),p&&r(o,i)})}function r(o,i){if(Qt.echo===null)throw new Error("Echo is not initialized");Qt.emitter.off(`${o}.${i}`),Qt.emitter.all.delete(`${o}.${i}`),Qt.echo.leave(o),t.isListening=!1}return{on:n,off:r,listener:t,state:Qt}}const Qm=Object.prototype.toString;function ev(e){switch(Qm.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return xr(e,Error)}}function bo(e,t){return Qm.call(e)===`[object ${t}]`}function Dc(e){return bo(e,"ErrorEvent")}function Wf(e){return bo(e,"DOMError")}function wN(e){return bo(e,"DOMException")}function ar(e){return bo(e,"String")}function Mc(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Bc(e){return e===null||Mc(e)||typeof e!="object"&&typeof e!="function"}function lo(e){return bo(e,"Object")}function Js(e){return typeof Event<"u"&&xr(e,Event)}function kN(e){return typeof Element<"u"&&xr(e,Element)}function SN(e){return bo(e,"RegExp")}function Zs(e){return!!(e&&e.then&&typeof e.then=="function")}function CN(e){return lo(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function tv(e){return typeof e=="number"&&e!==e}function xr(e,t){try{return e instanceof t}catch{return!1}}function nv(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function qa(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function qf(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const o=e[r];try{nv(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function TN(e,t,n=!1){return ar(e)?SN(t)?t.test(e):ar(t)?n?e===t:e.includes(t):!1:!1}function _o(e,t=[],n=!1){return t.some(r=>TN(e,r,n))}function EN(e,t,n=250,r,o,i,s){if(!i.exception||!i.exception.values||!s||!xr(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=xN(Cu(e,t,o,s.originalException,r,i.exception.values,l,0),n))}function Cu(e,t,n,r,o,i,s,l){if(i.length>=n+1)return i;let u=[...i];if(xr(r[o],Error)){Yf(s,l);const d=e(t,r[o]),c=u.length;Gf(d,o,c,l),u=Cu(e,t,n,r[o],o,[d,...u],d,c)}return Array.isArray(r.errors)&&r.errors.forEach((d,c)=>{if(xr(d,Error)){Yf(s,l);const p=e(t,d),h=u.length;Gf(p,`errors[${c}]`,h,l),u=Cu(e,t,n,d,o,[p,...u],p,h)}}),u}function Yf(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 Gf(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 xN(e,t){return e.map(n=>(n.value&&(n.value=qa(n.value,t)),n))}function $i(e){return e&&e.Math==Math?e:void 0}const Ge=typeof globalThis=="object"&&$i(globalThis)||typeof window=="object"&&$i(window)||typeof self=="object"&&$i(self)||typeof global=="object"&&$i(global)||function(){return this}()||{};function Ac(){return Ge}function rv(e,t,n){const r=n||Ge,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}const Ya=Ac(),IN=80;function zr(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,s=0;const l=" > ",u=l.length;let d;const c=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||IN;for(;n&&i++<r&&(d=PN(n,c),!(d==="html"||i>1&&s+o.length*u+d.length>=p));)o.push(d),s+=d.length,n=n.parentNode;return o.reverse().join(l)}catch{return"<unknown>"}}function PN(e,t){const n=e,r=[];let o,i,s,l,u;if(!n||!n.tagName)return"";if(Ya.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const d=t&&t.length?t.filter(p=>n.getAttribute(p)).map(p=>[p,n.getAttribute(p)]):null;if(d&&d.length)d.forEach(p=>{r.push(`[${p[0]}="${p[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&ar(o))for(i=o.split(/\s+/),u=0;u<i.length;u++)r.push(`.${i[u]}`);const c=["aria-label","type","name","title","alt"];for(u=0;u<c.length;u++)s=c[u],l=n.getAttribute(s),l&&r.push(`[${s}="${l}"]`);return r.join("")}function ON(){try{return Ya.document.location.href}catch{return""}}function NN(e){return Ya.document&&Ya.document.querySelector?Ya.document.querySelector(e):null}function av(e){if(!Ya.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const wo=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,DN="Sentry Logger ",Tu=["debug","info","warn","error","log","assert","trace"],bs={};function ur(e){if(!("console"in Ge))return e();const t=Ge.console,n={},r=Object.keys(bs);r.forEach(o=>{const i=bs[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function MN(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return wo?Tu.forEach(n=>{t[n]=(...r)=>{e&&ur(()=>{Ge.console[n](`${DN}[${n}]:`,...r)})}}):Tu.forEach(n=>{t[n]=()=>{}}),t}const ee=MN(),BN=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function AN(e){return e==="http"||e==="https"}function Sa(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:l,publicKey:u}=e;return`${l}://${u}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function RN(e){const t=BN.exec(e);if(!t){ur(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,o="",i,s="",l]=t.slice(1);let u="",d=l;const c=d.split("/");if(c.length>1&&(u=c.slice(0,-1).join("/"),d=c.pop()),d){const p=d.match(/^\d+/);p&&(d=p[0])}return ov({host:i,pass:o,path:u,projectId:d,port:s,protocol:n,publicKey:r})}function ov(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function $N(e){if(!wo)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(ee.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?AN(r)?t&&isNaN(parseInt(t,10))?(ee.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(ee.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(ee.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function iv(e){const t=typeof e=="string"?RN(e):ov(e);if(!(!t||!$N(t)))return t}class Qn extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function $t(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);typeof o=="function"&&sv(o,r),e[t]=o}function ba(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{wo&&ee.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function sv(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,ba(e,"__sentry_original__",t)}catch{}}function Rc(e){return e.__sentry_original__}function LN(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function lv(e){if(ev(e))return{message:e.message,name:e.name,stack:e.stack,...Xf(e)};if(Js(e)){const t={type:e.type,target:Kf(e.target),currentTarget:Kf(e.currentTarget),...Xf(e)};return typeof CustomEvent<"u"&&xr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Kf(e){try{return kN(e)?zr(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Xf(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 VN(e,t=40){const n=Object.keys(lv(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return qa(n[0],t);for(let r=n.length;r>0;r--){const o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:qa(o,t)}return""}function an(e){return Eu(e,new Map)}function Eu(e,t){if(FN(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const o of Object.keys(e))typeof e[o]<"u"&&(r[o]=Eu(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(Eu(o,t))}),r}return e}function FN(e){if(!lo(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const uv=50,Jf=/\(error: (.*)\)/,Zf=/captureMessage|captureException/;function cv(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const o=[],i=n.split(`
|
|
69
|
+
`);for(let s=r;s<i.length;s++){const l=i[s];if(l.length>1024)continue;const u=Jf.test(l)?l.replace(Jf,"$1"):l;if(!u.match(/\S*Error: /)){for(const d of t){const c=d(u);if(c){o.push(c);break}}if(o.length>=uv)break}}return UN(o)}}function HN(e){return Array.isArray(e)?cv(...e):e}function UN(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),Zf.test(t[t.length-1].function||"")&&(t.pop(),Zf.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,uv).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const Ul="<anonymous>";function Ir(e){try{return!e||typeof e!="function"?Ul:e.name||Ul}catch{return Ul}}const ts={},Qf={};function Ca(e,t){ts[e]=ts[e]||[],ts[e].push(t)}function Ta(e,t){Qf[e]||(t(),Qf[e]=!0)}function Ln(e,t){const n=e&&ts[e];if(n)for(const r of n)try{r(t)}catch(o){wo&&ee.error(`Error while triggering instrumentation handler.
|
|
83
70
|
Type: ${e}
|
|
84
|
-
Name: ${
|
|
85
|
-
Error:`,o)}}function VP(e){const t="console";Xr(t,e),Jr(t,FP)}function FP(){"console"in et&&Pl.forEach(function(e){e in et.console&&Bt(et.console,e,function(t){return Si[e]=t,function(...n){Pn("console",{args:n,level:e});const o=Si[e];o&&o.apply(et.console,n)}})})}function Yt(){const e=et,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>t.getRandomValues(new Uint8Array(1))[0])}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Bh(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function yr(e){const{message:t,event_id:n}=e;if(t)return t;const r=Bh(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Dl(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function _o(e,t){const n=Bh(e);if(!n)return;const r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){const i={...o&&o.data,...t.data};n.mechanism.data=i}}function Vd(e){if(e&&e.__sentry_captured__)return!0;try{bo(e,"__sentry_captured__",!0)}catch{}return!1}function Ou(e){return Array.isArray(e)?e:[e]}const ia=et,HP=1e3;let Fd,Nl,Ol;function Mh(e){const t="dom";Xr(t,e),Jr(t,UP)}function UP(){if(!ia.document)return;const e=Pn.bind(null,"dom"),t=Hd(e,!0);ia.document.addEventListener("click",t,!1),ia.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=ia[n]&&ia[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Bt(r,"addEventListener",function(o){return function(i,s,l){if(i==="click"||i=="keypress")try{const u=this,c=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},f=c[i]=c[i]||{refCount:0};if(!f.handler){const p=Hd(e);f.handler=p,o.call(this,i,p,l)}f.refCount++}catch{}return o.call(this,i,s,l)}}),Bt(r,"removeEventListener",function(o){return function(i,s,l){if(i==="click"||i=="keypress")try{const u=this,c=u.__sentry_instrumentation_handlers__||{},f=c[i];f&&(f.refCount--,f.refCount<=0&&(o.call(this,i,f.handler,l),f.handler=void 0,delete c[i]),Object.keys(c).length===0&&delete u.__sentry_instrumentation_handlers__)}catch{}return o.call(this,i,s,l)}}))})}function zP(e){if(e.type!==Nl)return!1;try{if(!e.target||e.target._sentryId!==Ol)return!1}catch{}return!0}function jP(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Hd(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=WP(n);if(jP(n.type,r))return;bo(n,"_sentryCaptured",!0),r&&!r._sentryId&&bo(r,"_sentryId",Yt());const o=n.type==="keypress"?"input":n.type;zP(n)||(e({event:n,name:o,global:t}),Nl=n.type,Ol=r?r._sentryId:void 0),clearTimeout(Fd),Fd=ia.setTimeout(()=>{Ol=void 0,Nl=void 0},HP)}}function WP(e){try{return e.target}catch{return null}}const Bl=Ki();function Rh(){if(!("fetch"in Bl))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Ml(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function qP(){if(typeof EdgeRuntime=="string")return!0;if(!Rh())return!1;if(Ml(Bl.fetch))return!0;let e=!1;const t=Bl.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Ml(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Aa&&ne.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Bu(e){const t="fetch";Xr(t,e),Jr(t,YP)}function YP(){qP()&&Bt(et,"fetch",function(e){return function(...t){const{method:n,url:r}=GP(t),o={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Pn("fetch",{...o}),e.apply(et,t).then(i=>{const s={...o,endTimestamp:Date.now(),response:i};return Pn("fetch",s),i},i=>{const s={...o,endTimestamp:Date.now(),error:i};throw Pn("fetch",s),i})}})}function Rl(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Ud(e){return typeof e=="string"?e:e?Rl(e,"url")?e.url:e.toString?e.toString():"":""}function GP(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Ud(n),method:Rl(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Ud(t),method:Rl(t,"method")?String(t.method).toUpperCase():"GET"}}let qo=null;function Ah(e){const t="error";Xr(t,e),Jr(t,KP)}function KP(){qo=et.onerror,et.onerror=function(e,t,n,r,o){return Pn("error",{column:r,error:o,line:n,msg:e,url:t}),qo&&!qo.__SENTRY_LOADER__?qo.apply(this,arguments):!1},et.onerror.__SENTRY_INSTRUMENTED__=!0}let Yo=null;function $h(e){const t="unhandledrejection";Xr(t,e),Jr(t,XP)}function XP(){Yo=et.onunhandledrejection,et.onunhandledrejection=function(e){return Pn("unhandledrejection",e),Yo&&!Yo.__SENTRY_LOADER__?Yo.apply(this,arguments):!0},et.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Go=Ki();function JP(){const e=Go.chrome,t=e&&e.app&&e.app.runtime,n="history"in Go&&!!Go.history.pushState&&!!Go.history.replaceState;return!t&&n}const Ka=et;let Ko;function Xi(e){const t="history";Xr(t,e),Jr(t,QP)}function QP(){if(!JP())return;const e=Ka.onpopstate;Ka.onpopstate=function(...n){const r=Ka.location.href,o=Ko;if(Ko=r,Pn("history",{from:o,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const o=r.length>2?r[2]:void 0;if(o){const i=Ko,s=String(o);Ko=s,Pn("history",{from:i,to:s})}return n.apply(this,r)}}Bt(Ka.history,"pushState",t),Bt(Ka.history,"replaceState",t)}const ZP=et,br="__sentry_xhr_v3__";function Mu(e){const t="xhr";Xr(t,e),Jr(t,eI)}function eI(){if(!ZP.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Bt(e,"open",function(t){return function(...n){const r=Date.now(),o=qn(n[0])?n[0].toUpperCase():void 0,i=tI(n[1]);if(!o||!i)return t.apply(this,n);this[br]={method:o,url:i,request_headers:{}},o==="POST"&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const l=this[br];if(l&&this.readyState===4){try{l.status_code=this.status}catch{}const u={args:[o,i],endTimestamp:Date.now(),startTimestamp:r,xhr:this};Pn("xhr",u)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Bt(this,"onreadystatechange",function(l){return function(...u){return s(),l.apply(this,u)}}):this.addEventListener("readystatechange",s),Bt(this,"setRequestHeader",function(l){return function(...u){const[c,f]=u,p=this[br];return p&&qn(c)&&qn(f)&&(p.request_headers[c.toLowerCase()]=f),l.apply(this,u)}}),t.apply(this,n)}}),Bt(e,"send",function(t){return function(...n){const r=this[br];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const o={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return Pn("xhr",o),t.apply(this,n)}})}function tI(e){if(qn(e))return e;try{return e.toString()}catch{}}function nI(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function rI(){return"npm"}function Lh(){return!nI()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function aI(e,t){return e.require(t)}function zd(){return typeof window<"u"&&(!Lh()||oI())}function oI(){return et.process!==void 0&&et.process.type==="renderer"}function iI(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(o){if(e)return t.has(o)?!0:(t.add(o),!1);for(let i=0;i<t.length;i++)if(t[i]===o)return!0;return t.push(o),!1}function r(o){if(e)t.delete(o);else for(let i=0;i<t.length;i++)if(t[i]===o){t.splice(i,1);break}}return[n,r]}function An(e,t=100,n=1/0){try{return Al("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Vh(e,t=3,n=100*1024){const r=An(e,t);return cI(r)>n?Vh(e,t-1,n):r}function Al(e,t,n=1/0,r=1/0,o=iI()){const[i,s]=o;if(t==null||["number","boolean","string"].includes(typeof t)&&!Ch(t))return t;const l=sI(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;const u=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(u===0)return l.replace("object ","");if(i(t))return"[Circular ~]";const c=t;if(c&&typeof c.toJSON=="function")try{const m=c.toJSON();return Al("",m,u-1,r,o)}catch{}const f=Array.isArray(t)?[]:{};let p=0;const h=Dh(t);for(const m in h){if(!Object.prototype.hasOwnProperty.call(h,m))continue;if(p>=r){f[m]="[MaxProperties ~]";break}const y=h[m];f[m]=Al(m,y,u-1,r,o),p++}return s(t),f}function sI(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Th(t))return"[VueViewModel]";if(wP(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${pr(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=lI(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function lI(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function uI(e){return~-encodeURI(e).split(/%..|./).length}function cI(e){return uI(JSON.stringify(e))}var or;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(or||(or={}));function Gr(e){return new un(t=>{t(e)})}function Ru(e){return new un((t,n)=>{n(e)})}class un{constructor(t){un.prototype.__init.call(this),un.prototype.__init2.call(this),un.prototype.__init3.call(this),un.prototype.__init4.call(this),this._state=or.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new un((r,o)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(s){o(s)}},i=>{if(!n)o(i);else try{r(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new un((n,r)=>{let o,i;return this.then(s=>{i=!1,o=s,t&&t()},s=>{i=!0,o=s,t&&t()}).then(()=>{if(i){r(o);return}n(o)})})}__init(){this._resolve=t=>{this._setResult(or.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(or.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===or.PENDING){if(Du(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===or.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===or.RESOLVED&&n[1](this._value),this._state===or.REJECTED&&n[2](this._value),n[0]=!0)})}}}function dI(e){const t=[];function n(){return e===void 0||t.length<e}function r(s){return t.splice(t.indexOf(s),1)[0]}function o(s){if(!n())return Ru(new Un("Not adding Promise because buffer limit was reached."));const l=s();return t.indexOf(l)===-1&&t.push(l),l.then(()=>r(l)).then(null,()=>r(l).then(null,()=>{})),l}function i(s){return new un((l,u)=>{let c=t.length;if(!c)return l(!0);const f=setTimeout(()=>{s&&s>0&&l(!1)},s);t.forEach(p=>{Gr(p).then(()=>{--c||(clearTimeout(f),l(!0))},u)})})}return{$:t,add:o,drain:i}}function Xs(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const fI=["fatal","error","warning","log","info","debug"];function pI(e){return e==="warn"?"warning":fI.includes(e)?e:"log"}const Fh=Ki(),$l={nowSeconds:()=>Date.now()/1e3};function hI(){const{performance:e}=Fh;if(!e||!e.now)return;const t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}function mI(){try{return aI(module,"perf_hooks").performance}catch{return}}const Js=Lh()?mI():hI(),jd=Js===void 0?$l:{nowSeconds:()=>(Js.timeOrigin+Js.now())/1e3},Ji=$l.nowSeconds.bind($l),Cr=jd.nowSeconds.bind(jd),In=(()=>{const{performance:e}=Fh;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,s=e.timing&&e.timing.navigationStart,u=typeof s=="number"?Math.abs(s+n-r):t,c=u<t;return i||c?o<=u?e.timeOrigin:s:r})(),Ll="baggage",Hh="sentry-",vI=/^sentry-/,gI=8192;function yI(e){if(!qn(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((r,o)=>{const i=Wd(o);return{...r,...i}},{});else{if(!e)return;t=Wd(e)}const n=Object.entries(t).reduce((r,[o,i])=>{if(o.match(vI)){const s=o.slice(Hh.length);r[s]=i}return r},{});if(Object.keys(n).length>0)return n}function Vl(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,o])=>(o&&(n[`${Hh}${r}`]=o),n),{});return bI(t)}function Wd(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function bI(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],o)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=o===0?i:`${t},${i}`;return s.length>gI?(Aa&&ne.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}const _I=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function wI(e){if(!e)return;const t=e.match(_I);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function kI(e,t){const n=wI(e),r=yI(t),{traceId:o,parentSpanId:i,parentSampled:s}=n||{},l={traceId:o||Yt(),spanId:Yt().substring(16),sampled:s};return i&&(l.parentSpanId=i),r&&(l.dsc=r),{traceparentData:n,dynamicSamplingContext:r,propagationContext:l}}function Au(e=Yt(),t=Yt().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function $a(e,t=[]){return[e,t]}function SI(e,t){const[n,r]=e;return[n,[...r,t]]}function qd(e,t){const n=e[1];for(const r of n){const o=r[0].type;if(t(r,o))return!0}return!1}function Fl(e,t){return(t||new TextEncoder).encode(e)}function CI(e,t){const[n,r]=e;let o=JSON.stringify(n);function i(s){typeof o=="string"?o=typeof s=="string"?o+s:[Fl(o,t),s]:o.push(typeof s=="string"?Fl(s,t):s)}for(const s of r){const[l,u]=s;if(i(`
|
|
71
|
+
Name: ${Ir(r)}
|
|
72
|
+
Error:`,o)}}function zN(e){const t="console";Ca(t,e),Ta(t,jN)}function jN(){"console"in Ge&&Tu.forEach(function(e){e in Ge.console&&$t(Ge.console,e,function(t){return bs[e]=t,function(...n){Ln("console",{args:n,level:e});const o=bs[e];o&&o.apply(Ge.console,n)}})})}function Ct(){const e=Ge,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 dv(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function $r(e){const{message:t,event_id:n}=e;if(t)return t;const r=dv(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function xu(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function ii(e,t){const n=dv(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 ep(e){if(e&&e.__sentry_captured__)return!0;try{ba(e,"__sentry_captured__",!0)}catch{}return!1}function $c(e){return Array.isArray(e)?e:[e]}const Aa=Ge,WN=1e3;let tp,Iu,Pu;function fv(e){const t="dom";Ca(t,e),Ta(t,qN)}function qN(){if(!Aa.document)return;const e=Ln.bind(null,"dom"),t=np(e,!0);Aa.document.addEventListener("click",t,!1),Aa.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=Aa[n]&&Aa[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||($t(r,"addEventListener",function(o){return function(i,s,l){if(i==="click"||i=="keypress")try{const u=this,d=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},c=d[i]=d[i]||{refCount:0};if(!c.handler){const p=np(e);c.handler=p,o.call(this,i,p,l)}c.refCount++}catch{}return o.call(this,i,s,l)}}),$t(r,"removeEventListener",function(o){return function(i,s,l){if(i==="click"||i=="keypress")try{const u=this,d=u.__sentry_instrumentation_handlers__||{},c=d[i];c&&(c.refCount--,c.refCount<=0&&(o.call(this,i,c.handler,l),c.handler=void 0,delete d[i]),Object.keys(d).length===0&&delete u.__sentry_instrumentation_handlers__)}catch{}return o.call(this,i,s,l)}}))})}function YN(e){if(e.type!==Iu)return!1;try{if(!e.target||e.target._sentryId!==Pu)return!1}catch{}return!0}function GN(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function np(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=KN(n);if(GN(n.type,r))return;ba(n,"_sentryCaptured",!0),r&&!r._sentryId&&ba(r,"_sentryId",Ct());const o=n.type==="keypress"?"input":n.type;YN(n)||(e({event:n,name:o,global:t}),Iu=n.type,Pu=r?r._sentryId:void 0),clearTimeout(tp),tp=Aa.setTimeout(()=>{Pu=void 0,Iu=void 0},WN)}}function KN(e){try{return e.target}catch{return null}}const Ou=Ac();function pv(){if(!("fetch"in Ou))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Nu(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function XN(){if(typeof EdgeRuntime=="string")return!0;if(!pv())return!1;if(Nu(Ou.fetch))return!0;let e=!1;const t=Ou.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=Nu(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){wo&&ee.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Lc(e){const t="fetch";Ca(t,e),Ta(t,JN)}function JN(){XN()&&$t(Ge,"fetch",function(e){return function(...t){const{method:n,url:r}=ZN(t),o={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Ln("fetch",{...o}),e.apply(Ge,t).then(i=>{const s={...o,endTimestamp:Date.now(),response:i};return Ln("fetch",s),i},i=>{const s={...o,endTimestamp:Date.now(),error:i};throw Ln("fetch",s),i})}})}function Du(e,t){return!!e&&typeof e=="object"&&!!e[t]}function rp(e){return typeof e=="string"?e:e?Du(e,"url")?e.url:e.toString?e.toString():"":""}function ZN(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:rp(n),method:Du(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:rp(t),method:Du(t,"method")?String(t.method).toUpperCase():"GET"}}let Li=null;function hv(e){const t="error";Ca(t,e),Ta(t,QN)}function QN(){Li=Ge.onerror,Ge.onerror=function(e,t,n,r,o){return Ln("error",{column:r,error:o,line:n,msg:e,url:t}),Li&&!Li.__SENTRY_LOADER__?Li.apply(this,arguments):!1},Ge.onerror.__SENTRY_INSTRUMENTED__=!0}let Vi=null;function mv(e){const t="unhandledrejection";Ca(t,e),Ta(t,eD)}function eD(){Vi=Ge.onunhandledrejection,Ge.onunhandledrejection=function(e){return Ln("unhandledrejection",e),Vi&&!Vi.__SENTRY_LOADER__?Vi.apply(this,arguments):!0},Ge.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Fi=Ac();function tD(){const e=Fi.chrome,t=e&&e.app&&e.app.runtime,n="history"in Fi&&!!Fi.history.pushState&&!!Fi.history.replaceState;return!t&&n}const Ao=Ge;let Hi;function Qs(e){const t="history";Ca(t,e),Ta(t,nD)}function nD(){if(!tD())return;const e=Ao.onpopstate;Ao.onpopstate=function(...n){const r=Ao.location.href,o=Hi;if(Hi=r,Ln("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=Hi,s=String(o);Hi=s,Ln("history",{from:i,to:s})}return n.apply(this,r)}}$t(Ao.history,"pushState",t),$t(Ao.history,"replaceState",t)}const rD=Ge,Lr="__sentry_xhr_v3__";function Vc(e){const t="xhr";Ca(t,e),Ta(t,aD)}function aD(){if(!rD.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;$t(e,"open",function(t){return function(...n){const r=Date.now(),o=ar(n[0])?n[0].toUpperCase():void 0,i=oD(n[1]);if(!o||!i)return t.apply(this,n);this[Lr]={method:o,url:i,request_headers:{}},o==="POST"&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const l=this[Lr];if(l&&this.readyState===4){try{l.status_code=this.status}catch{}const u={args:[o,i],endTimestamp:Date.now(),startTimestamp:r,xhr:this};Ln("xhr",u)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?$t(this,"onreadystatechange",function(l){return function(...u){return s(),l.apply(this,u)}}):this.addEventListener("readystatechange",s),$t(this,"setRequestHeader",function(l){return function(...u){const[d,c]=u,p=this[Lr];return p&&ar(d)&&ar(c)&&(p.request_headers[d.toLowerCase()]=c),l.apply(this,u)}}),t.apply(this,n)}}),$t(e,"send",function(t){return function(...n){const r=this[Lr];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const o={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return Ln("xhr",o),t.apply(this,n)}})}function oD(e){if(ar(e))return e;try{return e.toString()}catch{}}function iD(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function sD(){return"npm"}function lD(){return!iD()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function ap(){return typeof window<"u"&&(!lD()||uD())}function uD(){return Ge.process!==void 0&&Ge.process.type==="renderer"}function cD(){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 Mu("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function vv(e,t=3,n=100*1024){const r=qn(e,t);return hD(r)>n?vv(e,t-1,n):r}function Mu(e,t,n=1/0,r=1/0,o=cD()){const[i,s]=o;if(t==null||["number","boolean","string"].includes(typeof t)&&!tv(t))return t;const l=dD(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;const u=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(u===0)return l.replace("object ","");if(i(t))return"[Circular ~]";const d=t;if(d&&typeof d.toJSON=="function")try{const m=d.toJSON();return Mu("",m,u-1,r,o)}catch{}const c=Array.isArray(t)?[]:{};let p=0;const h=lv(t);for(const m in h){if(!Object.prototype.hasOwnProperty.call(h,m))continue;if(p>=r){c[m]="[MaxProperties ~]";break}const y=h[m];c[m]=Mu(m,y,u-1,r,o),p++}return s(t),c}function dD(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(nv(t))return"[VueViewModel]";if(CN(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${Ir(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=fD(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function fD(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function pD(e){return~-encodeURI(e).split(/%..|./).length}function hD(e){return pD(JSON.stringify(e))}var vr;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(vr||(vr={}));function uo(e){return new hn(t=>{t(e)})}function Fc(e){return new hn((t,n)=>{n(e)})}class hn{constructor(t){hn.prototype.__init.call(this),hn.prototype.__init2.call(this),hn.prototype.__init3.call(this),hn.prototype.__init4.call(this),this._state=vr.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new hn((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 hn((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(vr.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(vr.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===vr.PENDING){if(Zs(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===vr.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===vr.RESOLVED&&n[1](this._value),this._state===vr.REJECTED&&n[2](this._value),n[0]=!0)})}}}function mD(e){const t=[];function n(){return e===void 0||t.length<e}function r(s){return t.splice(t.indexOf(s),1)[0]}function o(s){if(!n())return Fc(new Qn("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 hn((l,u)=>{let d=t.length;if(!d)return l(!0);const c=setTimeout(()=>{s&&s>0&&l(!1)},s);t.forEach(p=>{uo(p).then(()=>{--d||(clearTimeout(c),l(!0))},u)})})}return{$:t,add:o,drain:i}}function ha(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const vD=["fatal","error","warning","log","info","debug"];function gD(e){return e==="warn"?"warning":vD.includes(e)?e:"log"}const gv=1e3;function mi(){return Date.now()/gv}function yD(){const{performance:e}=Ge;if(!e||!e.now)return mi;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/gv}const ko=yD(),yn=(()=>{const{performance:e}=Ge;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,s=e.timing&&e.timing.navigationStart,u=typeof s=="number"?Math.abs(s+n-r):t,d=u<t;return i||d?o<=u?e.timeOrigin:s:r})(),Bu="baggage",yv="sentry-",bD=/^sentry-/,_D=8192;function wD(e){if(!ar(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((r,o)=>{const i=op(o);for(const s of Object.keys(i))r[s]=i[s];return r},{});else{if(!e)return;t=op(e)}const n=Object.entries(t).reduce((r,[o,i])=>{if(o.match(bD)){const s=o.slice(yv.length);r[s]=i}return r},{});if(Object.keys(n).length>0)return n}function bv(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,o])=>(o&&(n[`${yv}${r}`]=o),n),{});return kD(t)}function op(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function kD(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>_D?(wo&&ee.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}const SD=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function CD(e){if(!e)return;const t=e.match(SD);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 TD(e,t){const n=CD(e),r=wD(t),{traceId:o,parentSpanId:i,parentSampled:s}=n||{};return n?{traceId:o||Ct(),parentSpanId:i||Ct().substring(16),spanId:Ct().substring(16),sampled:s,dsc:r||{}}:{traceId:o||Ct(),spanId:Ct().substring(16)}}function Hc(e=Ct(),t=Ct().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Xr(e,t=[]){return[e,t]}function ED(e,t){const[n,r]=e;return[n,[...r,t]]}function ip(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 Au(e,t){return(t||new TextEncoder).encode(e)}function xD(e,t){const[n,r]=e;let o=JSON.stringify(n);function i(s){typeof o=="string"?o=typeof s=="string"?o+s:[Au(o,t),s]:o.push(typeof s=="string"?Au(s,t):s)}for(const s of r){const[l,u]=s;if(i(`
|
|
86
73
|
${JSON.stringify(l)}
|
|
87
|
-
`),typeof u=="string"||u instanceof Uint8Array)i(u);else{let c;try{c=JSON.stringify(u)}catch{c=JSON.stringify(An(u))}i(c)}}return typeof o=="string"?o:TI(o)}function TI(e){const t=e.reduce((o,i)=>o+i.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function EI(e,t){const n=typeof e.data=="string"?Fl(e.data,t):e.data;return[Yn({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const xI={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function Yd(e){return xI[e]}function $u(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Uh(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Io(r)},...o&&{trace:Yn({...o})}}}function PI(e,t,n){const r=[{type:"client_report"},{timestamp:n||Ji(),discarded_events:e}];return $a(t?{dsn:t}:{},[r])}const II=60*1e3;function DI(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?II:r-t}function NI(e,t){return e[t]||e.all||0}function zh(e,t,n=Date.now()){return NI(e,t)>n}function jh(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(const l of i.trim().split(",")){const[u,c]=l.split(":",2),f=parseInt(u,10),p=(isNaN(f)?60:f)*1e3;if(!c)o.all=r+p;else for(const h of c.split(";"))o[h]=r+p}else s?o.all=r+DI(s,r):t===429&&(o.all=r+60*1e3);return o}const Pe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Lu="production";function Vu(){return Eh("globalEventProcessors",()=>[])}function OI(e){Vu().push(e)}function Ci(e,t,n,r=0){return new un((o,i)=>{const s=e[r];if(t===null||typeof s!="function")o(t);else{const l=s({...t},n);Pe&&s.id&&l===null&&ne.log(`Event processor "${s.id}" dropped event`),Du(l)?l.then(u=>Ci(e,u,n,r+1).then(o)).then(null,i):Ci(e,l,n,r+1).then(o).then(null,i)}})}function BI(e){const t=Cr(),n={sid:Yt(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>RI(n)};return e&&xa(n,e),n}function xa(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Cr(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Yt()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function MI(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),xa(e,n)}function RI(e){return Yn({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const AI=100;class _r{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Gd()}static clone(t){const n=new _r;return t&&(n._breadcrumbs=[...t._breadcrumbs],n._tags={...t._tags},n._extra={...t._extra},n._contexts={...t._contexts},n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=[...t._eventProcessors],n._requestSession=t._requestSession,n._attachments=[...t._attachments],n._sdkProcessingMetadata={...t._sdkProcessingMetadata},n._propagationContext={...t._propagationContext}),n}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&xa(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){const n=t(this);return n instanceof _r?n:this}return t instanceof _r?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):Ea(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Gd(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:AI;if(r<=0)return this;const o={timestamp:Ji(),...t},i=this._breadcrumbs;return i.push(o),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,n={},r){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const s=this._span.transaction;if(s){t.sdkProcessingMetadata={dynamicSamplingContext:s.getDynamicSamplingContext(),...t.sdkProcessingMetadata};const l=s.name;l&&(t.tags={transaction:l,...t.tags})}}this._applyFingerprint(t);const o=this._getBreadcrumbs(),i=[...t.breadcrumbs||[],...o];return t.breadcrumbs=i.length>0?i:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext},Ci([...r||[],...Vu(),...this._eventProcessors],t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?Ou(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function Gd(){return{traceId:Yt(),spanId:Yt().substring(16)}}const wo="7.86.0",Wh=parseFloat(wo),$I=100;class qh{constructor(t,n=new _r,r=Wh){this._version=r,this._stack=[{scope:n}],t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=_r.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();try{t(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:Yt(),o=new Error("Sentry syntheticException");return this._withClient((i,s)=>{i.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},s)}),r}captureMessage(t,n,r){const o=this._lastEventId=r&&r.event_id?r.event_id:Yt(),i=new Error(t);return this._withClient((s,l)=>{s.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o},l)}),o}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Yt();return t.type||(this._lastEventId=r),this._withClient((o,i)=>{o.captureEvent(t,{...n,event_id:r},i)}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:o}=this.getStackTop();if(!o)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=$I}=o.getOptions&&o.getOptions()||{};if(s<=0)return;const u={timestamp:Ji(),...t},c=i?Xn(()=>i(u,n)):u;c!==null&&(o.emit&&o.emit("beforeAddBreadcrumb",c,n),r.addBreadcrumb(c,s))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=Kd(this);try{t(this)}finally{Kd(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return Pe&&ne.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return Pe&&!r&&(this.getClient()?ne.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
|
|
74
|
+
`),typeof u=="string"||u instanceof Uint8Array)i(u);else{let d;try{d=JSON.stringify(u)}catch{d=JSON.stringify(qn(u))}i(d)}}return typeof o=="string"?o:ID(o)}function ID(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 PD(e,t){const n=typeof e.data=="string"?Au(e.data,t):e.data;return[an({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const OD={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function sp(e){return OD[e]}function Uc(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function _v(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:Sa(r)},...o&&{trace:an({...o})}}}function ND(e,t,n){const r=[{type:"client_report"},{timestamp:n||mi(),discarded_events:e}];return Xr(t?{dsn:t}:{},[r])}const DD=60*1e3;function MD(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?DD:r-t}function BD(e,t){return e[t]||e.all||0}function wv(e,t,n=Date.now()){return BD(e,t)>n}function kv(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(const l of i.trim().split(",")){const[u,d,,,c]=l.split(":",5),p=parseInt(u,10),h=(isNaN(p)?60:p)*1e3;if(!d)o.all=r+h;else for(const m of d.split(";"))m==="metric_bucket"?(!c||c.split(";").includes("custom"))&&(o[m]=r+h):o[m]=r+h}else s?o.all=r+MD(s,r):t===429&&(o.all=r+60*1e3);return o}function AD(e,t){return e??t()}function zl(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 Ee=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,el="production";function zc(){return rv("globalEventProcessors",()=>[])}function RD(e){zc().push(e)}function _s(e,t,n,r=0){return new hn((o,i)=>{const s=e[r];if(t===null||typeof s!="function")o(t);else{const l=s({...t},n);Ee&&s.id&&l===null&&ee.log(`Event processor "${s.id}" dropped event`),Zs(l)?l.then(u=>_s(e,u,n,r+1).then(o)).then(null,i):_s(e,l,n,r+1).then(o).then(null,i)}})}function Sv(e){const t=ko(),n={sid:Ct(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>$D(n)};return e&&_a(n,e),n}function _a(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||ko(),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:Ct()),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 Cv(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),_a(e,n)}function $D(e){return an({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const LD=0,Tv=1;function jc(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:s,tags:l,origin:u}=Lt(e);return an({data:r,op:o,parent_span_id:i,span_id:t,status:s,tags:l,trace_id:n,origin:u})}function tl(e){const{traceId:t,spanId:n}=e.spanContext(),r=Wc(e);return Hc(t,n,r)}function nl(e){return typeof e=="number"?lp(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?lp(e.getTime()):ko()}function lp(e){return e>9999999999?e/1e3:e}function Lt(e){return VD(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function VD(e){return typeof e.getSpanJSON=="function"}function Wc(e){const{traceFlags:t}=e.spanContext();return!!(t&Tv)}function Ev(e,t,n,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:l=1e3}=e,u={...t,event_id:t.event_id||n.event_id||Ct(),timestamp:t.timestamp||mi()},d=n.integrations||e.integrations.map(k=>k.name);FD(u,e),zD(u,d),t.type===void 0&&HD(u,e.stackParser);const c=WD(r,n.captureContext);n.mechanism&&ii(u,n.mechanism);const p=o&&o.getEventProcessors?o.getEventProcessors():[],h=aM().getScopeData();if(i){const k=i.getScopeData();fp(h,k)}if(c){const k=c.getScopeData();fp(h,k)}const m=[...n.attachments||[],...h.attachments];m.length&&(n.attachments=m),Ov(u,h);const y=[...p,...zc(),...h.eventProcessors];return _s(y,u,n).then(k=>(k&&UD(k),typeof s=="number"&&s>0?jD(k,s,l):k))}function FD(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:el),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&o!==void 0&&(e.dist=o),e.message&&(e.message=qa(e.message,i));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=qa(s.value,i));const l=e.request;l&&l.url&&(l.url=qa(l.url,i))}const up=new WeakMap;function HD(e,t){const n=Ge._sentryDebugIds;if(!n)return;let r;const o=up.get(t);o?r=o:(r=new Map,up.set(t,r));const i=Object.keys(n).reduce((s,l)=>{let u;const d=r.get(l);d?u=d:(u=t(l),r.set(l,u));for(let c=u.length-1;c>=0;c--){const p=u[c];if(p.filename){s[p.filename]=n[l];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(l=>{l.filename&&(l.debug_id=i[l.filename])})})}catch{}}function UD(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function zD(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function jD(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=>{const i=Lt(o).data;return i&&(o.data=qn(i,t,n)),o})),r}function WD(e,t){if(!t)return e;const n=e?e.clone():new Tr;return n.update(t),n}function qD(e){if(e)return YD(e)?{captureContext:e}:KD(e)?{captureContext:e}:e}function YD(e){return e instanceof Tr||typeof e=="function"}const GD=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function KD(e){return Object.keys(e).some(t=>GD.includes(t))}function vi(e,t){return fn().captureException(e,qD(t))}function xv(e,t){return fn().captureEvent(e,t)}function jr(e,t){fn().addBreadcrumb(e,t)}function XD(e,t){fn().setContext(e,t)}function JD(...e){const t=fn();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function lt(){return fn().getClient()}function dn(){return fn().getScope()}function cp(e){const t=lt(),n=Jr(),r=dn(),{release:o,environment:i=el}=t&&t.getOptions()||{},{userAgent:s}=Ge.navigator||{},l=Sv({release:o,environment:i,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),u=n.getSession();return u&&u.status==="ok"&&_a(u,{status:"exited"}),Iv(),n.setSession(l),r.setSession(l),l}function Iv(){const e=Jr(),t=dn(),n=t.getSession()||e.getSession();n&&Cv(n),Pv(),e.setSession(),t.setSession()}function Pv(){const e=Jr(),t=dn(),n=lt(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function dp(e=!1){if(e){Iv();return}Pv()}function ws(e){return e.transaction}function rl(e,t,n){const r=t.getOptions(),{publicKey:o}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},s=an({environment:r.environment||el,release:r.release,user_segment:i,public_key:o,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function co(e){const t=lt();if(!t)return{};const n=rl(Lt(e).trace_id||"",t,dn()),r=ws(e);if(!r)return n;const o=r&&r._frozenDynamicSamplingContext;if(o)return o;const{sampleRate:i,source:s}=r.metadata;i!=null&&(n.sample_rate=`${i}`);const l=Lt(r);return s&&s!=="url"&&(n.transaction=l.description),n.sampled=String(Wc(r)),t.emit&&t.emit("createDsc",n),n}function Ov(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;ZD(e,t),r&&tM(e,r),nM(e,n),QD(e,o),eM(e,i)}function fp(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:l,breadcrumbs:u,fingerprint:d,eventProcessors:c,attachments:p,propagationContext:h,transactionName:m,span:y}=t;Ro(e,"extra",n),Ro(e,"tags",r),Ro(e,"user",o),Ro(e,"contexts",i),Ro(e,"sdkProcessingMetadata",l),s&&(e.level=s),m&&(e.transactionName=m),y&&(e.span=y),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...h}}function Ro(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function ZD(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:l}=t,u=an(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const d=an(r);d&&Object.keys(d).length&&(e.tags={...d,...e.tags});const c=an(o);c&&Object.keys(c).length&&(e.user={...c,...e.user});const p=an(i);p&&Object.keys(p).length&&(e.contexts={...p,...e.contexts}),s&&(e.level=s),l&&(e.transaction=l)}function QD(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function eM(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function tM(e,t){e.contexts={trace:jc(t),...e.contexts};const n=ws(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:co(t),...e.sdkProcessingMetadata};const r=Lt(n).description;r&&(e.tags={transaction:r,...e.tags})}}function nM(e,t){e.fingerprint=e.fingerprint?$c(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const rM=100;let jl;class Tr{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=pp()}static clone(t){return t?t.clone():new Tr}clone(){const t=new Tr;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,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}setClient(t){this._client=t}getClient(){return this._client}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,segment:void 0,username:void 0},this._session&&_a(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof Tr){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(lo(n)){const r=t;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=pp(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:rM;if(r<=0)return this;const o={timestamp:mi(),...t},i=this._breadcrumbs;return i.push(o),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:o,_extra:i,_user:s,_level:l,_fingerprint:u,_eventProcessors:d,_propagationContext:c,_sdkProcessingMetadata:p,_transactionName:h,_span:m}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:o,extra:i,user:s,level:l,fingerprint:u||[],eventProcessors:d,propagationContext:c,sdkProcessingMetadata:p,transactionName:h,span:m}}applyToEvent(t,n={},r=[]){Ov(t,this.getScopeData());const o=[...r,...zc(),...this._eventProcessors];return _s(o,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:Ct();if(!this._client)return ee.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:Ct();if(!this._client)return ee.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:Ct();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(ee.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)}}function aM(){return jl||(jl=new Tr),jl}function pp(){return{traceId:Ct(),spanId:Ct().substring(16)}}const si="7.111.0",Nv=parseFloat(si),oM=100;class Dv{constructor(t,n,r,o=Nv){this._version=o;let i;n?i=n:(i=new Tr,i.setClient(t));let s;r?s=r:(s=new Tr,s.setClient(t)),this._stack=[{scope:i}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();let r;try{r=t(n)}catch(o){throw this.popScope(),o}return Zs(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}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:Ct(),o=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:o,...n,event_id:r}),r}captureMessage(t,n,r){const o=this._lastEventId=r&&r.event_id?r.event_id:Ct(),i=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o}),o}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Ct();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:o}=this.getStackTop();if(!o)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=oM}=o.getOptions&&o.getOptions()||{};if(s<=0)return;const u={timestamp:mi(),...t},d=i?ur(()=>i(u,n)):u;d!==null&&(o.emit&&o.emit("beforeAddBreadcrumb",d,n),r.addBreadcrumb(d,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=hp(this);try{t(this)}finally{hp(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return Ee&&ee.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return Ee&&!r&&(this.getClient()?ee.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
|
|
88
75
|
Sentry.addTracingExtensions();
|
|
89
76
|
Sentry.init({...});
|
|
90
|
-
`):ne.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&MI(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:o,environment:i=Lu}=r&&r.getOptions()||{},{userAgent:s}=et.navigator||{},l=BI({release:o,environment:i,user:n.getUser(),...s&&{userAgent:s},...t}),u=n.getSession&&n.getSession();return u&&u.status==="ok"&&xa(u,{status:"exited"}),this.endSession(),n.setSession(l),l}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_withClient(t){const{scope:n,client:r}=this.getStackTop();r&&t(r,n)}_callExtensionMethod(t,...n){const o=Do().__SENTRY__;if(o&&o.extensions&&typeof o.extensions[t]=="function")return o.extensions[t].apply(this,n);Pe&&ne.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function Do(){return et.__SENTRY__=et.__SENTRY__||{extensions:{},hub:void 0},et}function Kd(e){const t=Do(),n=Hl(t);return Yh(t,e),n}function tt(){const e=Do();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return LI(e)}function LI(e=Do()){return(!VI(e)||Hl(e).isOlderThan(Wh))&&Yh(e,new qh),Hl(e)}function VI(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Hl(e){return Eh("hub",()=>new qh,e)}function Yh(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function No(e){return(e||tt()).getScope().getTransaction()}let Xd=!1;function FI(){Xd||(Xd=!0,Ah(Ul),$h(Ul))}function Ul(){const e=No();if(e){const t="internal_error";Pe&&ne.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}Ul.tag="sentry_tracingErrorCallback";class Gh{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class Fu{constructor(t={}){this.traceId=t.traceId||Yt(),this.spanId=t.spanId||Yt().substring(16),this.startTimestamp=t.startTimestamp||Cr(),this.tags=t.tags||{},this.data=t.data||{},this.instrumenter=t.instrumenter||"sentry",this.origin=t.origin||"manual",t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.name&&(this.description=t.name),t.status&&(this.status=t.status),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}get name(){return this.description||""}set name(t){this.setName(t)}startChild(t){const n=new Fu({...t,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,Pe&&n.transaction){const r=t&&t.op||"< unknown op >",o=n.transaction.name||"< unknown name >",i=n.transaction.spanId,s=`[Tracing] Starting '${r}' span on transaction '${o}' (${i}).`;n.transaction.metadata.spanMetadata[n.spanId]={logMessage:s},ne.log(s)}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setStatus(t){return this.status=t,this}setHttpStatus(t){this.setTag("http.status_code",String(t)),this.setData("http.response.status_code",t);const n=HI(t);return n!=="unknown_error"&&this.setStatus(n),this}setName(t){this.description=t}isSuccess(){return this.status==="ok"}finish(t){if(Pe&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:n}=this.transaction.metadata.spanMetadata[this.spanId];n&&ne.log(n.replace("Starting","Finishing"))}this.endTimestamp=typeof t=="number"?t:Cr()}toTraceparent(){return Au(this.traceId,this.spanId,this.sampled)}toContext(){return Yn({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(t){return this.data=t.data||{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=t.spanId||this.spanId,this.startTimestamp=t.startTimestamp||this.startTimestamp,this.status=t.status,this.tags=t.tags||{},this.traceId=t.traceId||this.traceId,this}getTraceContext(){return Yn({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId,origin:this.origin})}toJSON(){return Yn({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}}function HI(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function Qi(e,t,n){const r=t.getOptions(),{publicKey:o}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},s=Yn({environment:r.environment||Lu,release:r.release,user_segment:i,public_key:o,trace_id:e});return t.emit&&t.emit("createDsc",s),s}class Kh extends Fu{constructor(t,n){super(t),delete this.description,this._measurements={},this._contexts={},this._hub=n||tt(),this._name=t.name||"",this.metadata={source:"custom",...t.metadata,spanMetadata:{}},this._trimEnd=t.trimEnd,this.transaction=this;const r=this.metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}setName(t,n="custom"){this._name=t,this.metadata.source=n}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new Gh(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this.metadata={...this.metadata,...t}}finish(t){const n=this._finishTransaction(t);if(n)return this._hub.captureEvent(n)}toContext(){const t=super.toContext();return Yn({...t,name:this.name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this.name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const t=this._hub||tt(),n=t.getClient();if(!n)return{};const r=t.getScope(),o=Qi(this.traceId,n,r),i=this.metadata.sampleRate;i!==void 0&&(o.sample_rate=`${i}`);const s=this.metadata.source;return s&&s!=="url"&&(o.transaction=this.name),this.sampled!==void 0&&(o.sampled=String(this.sampled)),o}setHub(t){this._hub=t}_finishTransaction(t){if(this.endTimestamp!==void 0)return;this.name||(Pe&&ne.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this.sampled!==!0){Pe&&ne.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(l=>l!==this&&l.endTimestamp):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce((l,u)=>l.endTimestamp&&u.endTimestamp?l.endTimestamp>u.endTimestamp?l:u:l).endTimestamp);const o=this.metadata,i={contexts:{...this._contexts,trace:this.getTraceContext()},spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...o,dynamicSamplingContext:this.getDynamicSamplingContext()},...o.source&&{transaction_info:{source:o.source}}};return Object.keys(this._measurements).length>0&&(Pe&&ne.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),Pe&&ne.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),i}}const si={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},UI="finishReason",aa=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class zI extends Gh{constructor(t,n,r,o){super(o),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){t.spanId!==this.transactionSpanId&&(t.finish=n=>{t.endTimestamp=typeof n=="number"?n:Cr(),this._popActivity(t.spanId)},t.endTimestamp===void 0&&this._pushActivity(t.spanId)),super.add(t)}}class jI extends Kh{constructor(t,n,r=si.idleTimeout,o=si.finalTimeout,i=si.heartbeatInterval,s=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=o,this._heartbeatInterval=i,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=aa[4],s&&(Pe&&ne.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),n.configureScope(l=>l.setSpan(this))),this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=aa[3],this.finish())},this._finalTimeout)}finish(t=Cr()){if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setTag(UI,this._finishReason),this.spanRecorder){Pe&&ne.log("[Tracing] finishing IdleTransaction",new Date(t*1e3).toISOString(),this.op);for(const n of this._beforeFinishCallbacks)n(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter(n=>{if(n.spanId===this.spanId)return!0;n.endTimestamp||(n.endTimestamp=t,n.setStatus("cancelled"),Pe&&ne.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(n,void 0,2)));const r=n.startTimestamp<t,o=(this._finalTimeout+this._idleTimeout)/1e3,i=n.endTimestamp-this.startTimestamp<o;if(Pe){const s=JSON.stringify(n,void 0,2);r?i||ne.log("[Tracing] discarding Span since it finished after Transaction final timeout",s):ne.log("[Tracing] discarding Span since it happened after Transaction was finished",s)}return r&&i}),Pe&&ne.log("[Tracing] flushing IdleTransaction")}else Pe&&ne.log("[Tracing] No active IdleTransaction");if(this._onScope){const n=this._idleHub.getScope();n.getTransaction()===this&&n.setSpan(void 0)}return super.finish(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const n=o=>{this._finished||this._pushActivity(o)},r=o=>{this._finished||this._popActivity(o)};this.spanRecorder=new zI(n,r,this.spanId,t),Pe&&ne.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=aa[5],this.finish(t)))}setFinishReason(t){this._finishReason=t}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=aa[1],this.finish(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),Pe&&ne.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,Pe&&ne.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(Pe&&ne.log(`[Tracing] popActivity ${t}`),delete this.activities[t],Pe&&ne.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=Cr();this._idleTimeoutCanceledPermanently?(this._finishReason=aa[5],this.finish(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?(Pe&&ne.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=aa[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){Pe&&ne.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function Xh(e,t,n,r,o){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=e,l={...t,event_id:t.event_id||n.event_id||Yt(),timestamp:t.timestamp||Ji()},u=n.integrations||e.integrations.map(h=>h.name);WI(l,e),GI(l,u),t.type===void 0&&qI(l,e.stackParser);let c=r;n.captureContext&&(c=_r.clone(c).update(n.captureContext)),n.mechanism&&_o(l,n.mechanism);let f=Gr(l);const p=o&&o.getEventProcessors?o.getEventProcessors():[];if(c){if(c.getAttachments){const h=[...n.attachments||[],...c.getAttachments()];h.length&&(n.attachments=h)}f=c.applyToEvent(l,n,p)}else f=Ci([...p,...Vu()],l,n);return f.then(h=>(h&&YI(h),typeof i=="number"&&i>0?KI(h,i,s):h))}function WI(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:Lu),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&o!==void 0&&(e.dist=o),e.message&&(e.message=va(e.message,i));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=va(s.value,i));const l=e.request;l&&l.url&&(l.url=va(l.url,i))}const Jd=new WeakMap;function qI(e,t){const n=et._sentryDebugIds;if(!n)return;let r;const o=Jd.get(t);o?r=o:(r=new Map,Jd.set(t,r));const i=Object.keys(n).reduce((s,l)=>{let u;const c=r.get(l);c?u=c:(u=t(l),r.set(l,u));for(let f=u.length-1;f>=0;f--){const p=u[f];if(p.filename){s[p.filename]=n[l];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(l=>{l.filename&&(l.debug_id=i[l.filename])})})}catch{}}function YI(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function GI(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function KI(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:An(o.data,t,n)}}))},...e.user&&{user:An(e.user,t,n)},...e.contexts&&{contexts:An(e.contexts,t,n)},...e.extra&&{extra:An(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=An(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>(o.data&&(o.data=An(o.data,t,n)),o))),r}function XI(e){if(e)return JI(e)?{captureContext:e}:ZI(e)?{captureContext:e}:e}function JI(e){return e instanceof _r||typeof e=="function"}const QI=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function ZI(e){return Object.keys(e).some(t=>QI.includes(t))}function Zi(e,t){return tt().captureException(e,XI(t))}function eD(e,t){tt().setContext(e,t)}function tD(e){tt().withScope(e)}function Ir(){return tt().getClient()}function es(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Ir(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function Jh(e,t,n){if(!es(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setMetadata({sampleRate:Number(e.sampled)}),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setMetadata({sampleRate:Number(r)})):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setMetadata({sampleRate:Number(r)})):(r=1,e.setMetadata({sampleRate:r})),nD(r)?r?(e.sampled=Math.random()<r,e.sampled?(Pe&&ne.log(`[Tracing] starting ${e.op} transaction - ${e.name}`),e):(Pe&&ne.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),e)):(Pe&&ne.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1,e):(Pe&&ne.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function nD(e){return Ch(e)||!(typeof e=="number"||typeof e=="boolean")?(Pe&&ne.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e<0||e>1?(Pe&&ne.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function rD(){const t=this.getScope().getSpan();return t?{"sentry-trace":t.toTraceparent()}:{}}function aD(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},o=r.instrumenter||"sentry",i=e.instrumenter||"sentry";o!==i&&(Pe&&ne.error(`A transaction was started with instrumenter=\`${i}\`, but the SDK is configured with the \`${o}\` instrumenter.
|
|
91
|
-
The transaction will not be sampled. Please use the ${o} instrumentation to start transactions.`),e.sampled=!1);let s=new
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
Event: ${
|
|
95
|
-
Event: ${
|
|
96
|
-
Event: ${
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
Url: ${Ti(e)}`),!0)}function PD(e,t){return e.type||!t||!t.length?!1:OD(e).some(n=>Ra(n,t))}function ID(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Ra(n,t):!1}function DD(e,t){if(!t||!t.length)return!1;const n=Ti(e);return n?Ra(n,t):!1}function ND(e,t){if(!t||!t.length)return!0;const n=Ti(e);return n?Ra(n,t):!0}function OD(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),Pe&&t.length===0&&ne.error(`Could not extract message for event ${yr(e)}`),t}function BD(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function MD(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Ti(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?MD(t):null}catch{return Pe&&ne.error(`Cannot extract url for event ${yr(e)}`),null}}function RD(e,t){const n=t.getClient(),r=n&&n.getDsn(),o=n&&n.getOptions().tunnel;return $D(e,r)||AD(e,o)}function AD(e,t){return t?rf(e)===rf(t):!1}function $D(e,t){return t?e.includes(t.host):!1}function rf(e){return e[e.length-1]==="/"?e.slice(0,-1):e}const Ue=et;let zl=0;function rm(){return zl>0}function LD(){zl++,setTimeout(()=>{zl--})}function Pa(e,t={},n){if(typeof e!="function")return e;try{const o=e.__sentry_wrapped__;if(o)return o;if(Nu(e))return e}catch{return e}const r=function(){const o=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const i=o.map(s=>Pa(s,t));return e.apply(this,i)}catch(i){throw LD(),tD(s=>{s.addEventProcessor(l=>(t.mechanism&&(Dl(l,void 0,void 0),_o(l,t.mechanism)),l.extra={...l.extra,arguments:o},l)),Zi(i)}),i}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}Ih(r,e),bo(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const vn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function am(e,t){const n=Hu(e,t),r={type:t&&t.name,value:UD(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function VD(e,t,n,r){const i=tt().getClient(),s=i&&i.getOptions().normalizeDepth,l={exception:{values:[{type:Gi(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:WD(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Vh(t,s)}};if(n){const u=Hu(e,n);u.length&&(l.exception.values[0].stacktrace={frames:u})}return l}function Qs(e,t){return{exception:{values:[am(e,t)]}}}function Hu(e,t){const n=t.stacktrace||t.stack||"",r=HD(t);try{return e(n,r)}catch{}return[]}const FD=/Minified React error #\d+;/i;function HD(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(FD.test(e.message))return 1}return 0}function UD(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function zD(e,t,n,r){const o=n&&n.syntheticException||void 0,i=Uu(e,t,o,r);return _o(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),Gr(i)}function jD(e,t,n="info",r,o){const i=r&&r.syntheticException||void 0,s=jl(e,t,i,o);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),Gr(s)}function Uu(e,t,n,r,o){let i;if(Pu(t)&&t.error)return Qs(e,t.error);if(Dd(t)||yP(t)){const s=t;if("stack"in t)i=Qs(e,t);else{const l=s.name||(Dd(s)?"DOMError":"DOMException"),u=s.message?`${l}: ${s.message}`:l;i=jl(e,u,n,r),Dl(i,u)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return Sh(t)?Qs(e,t):Ea(t)||Gi(t)?(i=VD(e,t,n,o),_o(i,{synthetic:!0}),i):(i=jl(e,t,n,r),Dl(i,`${t}`,void 0),_o(i,{synthetic:!0}),i)}function jl(e,t,n,r){const o={message:t};if(r&&n){const i=Hu(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]})}return o}function WD(e,{isUnhandledRejection:t}){const n=AP(e),r=t?"promise rejection":"exception";return Pu(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Gi(e)?`Event \`${qD(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function qD(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function YD(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Io(r)}},i=GD(e);return $a(o,[i])}function GD(e){return[{type:"user_report"},e]}class KD extends yD{constructor(t){const n=Ue.SENTRY_SDK_SOURCE||rI();t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${n}:@sentry/browser`,version:wo}],version:wo},super(t),t.sendClientReports&&Ue.document&&Ue.document.addEventListener("visibilitychange",()=>{Ue.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return zD(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return jD(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){vn&&ne.warn("SDK not enabled, will not capture user feedback.");return}const n=YD(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){vn&&ne.log("No outcomes to send");return}if(!this._dsn){vn&&ne.log("No dsn provided, will not send outcomes");return}vn&&ne.log("Sending outcomes:",t);const n=PI(t,this._options.tunnel&&Io(this._dsn));this._sendEnvelope(n)}}let Ja;function XD(){if(Ja)return Ja;if(Ml(Ue.fetch))return Ja=Ue.fetch.bind(Ue);const e=Ue.document;let t=Ue.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){vn&&ne.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return Ja=t.bind(Ue)}function JD(){Ja=void 0}function QD(e,t=XD()){let n=0,r=0;function o(i){const s=i.body.length;n+=s,r++;const l={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,l).then(u=>(n-=s,r--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return JD(),n-=s,r--,Ru(u)}}return nm(e,o)}const ZD=4;function eN(e){function t(n){return new un((r,o)=>{const i=new XMLHttpRequest;i.onerror=o,i.onreadystatechange=()=>{i.readyState===ZD&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&i.setRequestHeader(s,e.headers[s]);i.send(n.body)})}return nm(e,t)}const rs="?",tN=30,nN=40,rN=50;function zu(e,t,n,r){const o={filename:e,function:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const aN=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,oN=/\((\S*)(?::(\d+))(?::(\d+))\)/,iN=e=>{const t=aN.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const i=oN.exec(t[2]);i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3])}const[r,o]=om(t[1]||rs,t[2]);return zu(o,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},sN=[tN,iN],lN=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,uN=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,cN=e=>{const t=lN.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=uN.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],o=t[1]||rs;return[o,r]=om(o,r),zu(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},dN=[rN,cN],fN=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,pN=e=>{const t=fN.exec(e);return t?zu(t[2],t[1]||rs,+t[3],t[4]?+t[4]:void 0):void 0},hN=[nN,pN],mN=[sN,dN,hN],vN=Oh(...mN),om=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:rs,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class La{static __initStatic(){this.id="GlobalHandlers"}constructor(t){this.name=La.id,this._options={onerror:!0,onunhandledrejection:!0,...t},this._installFunc={onerror:gN,onunhandledrejection:yN}}setupOnce(){Error.stackTraceLimit=50;const t=this._options;for(const n in t){const r=this._installFunc[n];r&&t[n]&&(kN(n),r(),this._installFunc[n]=void 0)}}}La.__initStatic();function gN(){Ah(e=>{const[t,n,r]=sm();if(!t.getIntegration(La))return;const{msg:o,url:i,line:s,column:l,error:u}=e;if(rm())return;const c=u===void 0&&qn(o)?wN(o,i,s,l):im(Uu(n,u||o,void 0,r,!1),i,s,l);c.level="error",t.captureEvent(c,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function yN(){$h(e=>{const[t,n,r]=sm();if(!t.getIntegration(La))return;if(rm())return!0;const o=bN(e),i=Iu(o)?_N(o):Uu(n,o,void 0,r,!0);i.level="error",t.captureEvent(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function bN(e){if(Iu(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function _N(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function wN(e,t,n,r){const o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let i=Pu(e)?e.message:e,s="Error";const l=i.match(o);return l&&(s=l[1],i=l[2]),im({exception:{values:[{type:s,value:i}]}},t,n,r)}function im(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},l=s.stacktrace=s.stacktrace||{},u=l.frames=l.frames||[],c=isNaN(parseInt(r,10))?void 0:r,f=isNaN(parseInt(n,10))?void 0:n,p=qn(t)&&t.length>0?t:xP();return u.length===0&&u.push({colno:c,filename:p,function:"?",in_app:!0,lineno:f}),e}function kN(e){vn&&ne.log(`Global Handler attached: ${e}`)}function sm(){const e=tt(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}const SN=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class as{static __initStatic(){this.id="TryCatch"}constructor(t){this.name=as.id,this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this._options.setTimeout&&Bt(Ue,"setTimeout",af),this._options.setInterval&&Bt(Ue,"setInterval",af),this._options.requestAnimationFrame&&Bt(Ue,"requestAnimationFrame",CN),this._options.XMLHttpRequest&&"XMLHttpRequest"in Ue&&Bt(XMLHttpRequest.prototype,"send",TN);const t=this._options.eventTarget;t&&(Array.isArray(t)?t:SN).forEach(EN)}}as.__initStatic();function af(e){return function(...t){const n=t[0];return t[0]=Pa(n,{mechanism:{data:{function:pr(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function CN(e){return function(t){return e.apply(this,[Pa(t,{mechanism:{data:{function:"requestAnimationFrame",handler:pr(e)},handled:!1,type:"instrument"}})])}}function TN(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&Bt(n,o,function(i){const s={mechanism:{data:{function:o,handler:pr(i)},handled:!1,type:"instrument"}},l=Nu(i);return l&&(s.mechanism.data.handler=pr(l)),Pa(i,s)})}),e.apply(this,t)}}function EN(e){const t=Ue,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Bt(n,"addEventListener",function(r){return function(o,i,s){try{typeof i.handleEvent=="function"&&(i.handleEvent=Pa(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:pr(i),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[o,Pa(i,{mechanism:{data:{function:"addEventListener",handler:pr(i),target:e},handled:!1,type:"instrument"}}),s])}}),Bt(n,"removeEventListener",function(r){return function(o,i,s){const l=i;try{const u=l&&l.__sentry_wrapped__;u&&r.call(this,o,u,s)}catch{}return r.call(this,o,l,s)}}))}const xN="cause",PN=5;class os{static __initStatic(){this.id="LinkedErrors"}constructor(t={}){this.name=os.id,this._key=t.key||xN,this._limit=t.limit||PN}setupOnce(){}preprocessEvent(t,n,r){const o=r.getOptions();SP(am,o.stackParser,o.maxValueLength,this._key,this._limit,t,n)}}os.__initStatic();class is{static __initStatic(){this.id="HttpContext"}constructor(){this.name=is.id}setupOnce(){}preprocessEvent(t){if(!Ue.navigator&&!Ue.location&&!Ue.document)return;const n=t.request&&t.request.url||Ue.location&&Ue.location.href,{referrer:r}=Ue.document||{},{userAgent:o}=Ue.navigator||{},i={...t.request&&t.request.headers,...r&&{Referer:r},...o&&{"User-Agent":o}},s={...t.request,...n&&{url:n},headers:i};t.request=s}}is.__initStatic();class ss{static __initStatic(){this.id="Dedupe"}constructor(){this.name=ss.id}setupOnce(t,n){}processEvent(t){if(t.type)return t;try{if(IN(t,this._previousEvent))return vn&&ne.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return this._previousEvent=t}}ss.__initStatic();function IN(e,t){return t?!!(DN(e,t)||NN(e,t)):!1}function DN(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!um(e,t)||!lm(e,t))}function NN(e,t){const n=of(t),r=of(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!um(e,t)||!lm(e,t))}function lm(e,t){let n=sf(e),r=sf(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){const i=r[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function um(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function of(e){return e.exception&&e.exception.values&&e.exception.values[0]}function sf(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const Xo=1024;class ls{static __initStatic(){this.id="Breadcrumbs"}constructor(t){this.name=ls.id,this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){if(this.options.console&&VP(MN),this.options.dom&&Mh(BN(this.options.dom)),this.options.xhr&&Mu(RN),this.options.fetch&&Bu(AN),this.options.history&&Xi($N),this.options.sentry){const t=Ir();t&&t.on&&t.on("beforeSendEvent",ON)}}}ls.__initStatic();function ON(e){tt().addBreadcrumb({category:`sentry.${e.type==="transaction"?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:yr(e)},{event:e})}function BN(e){function t(n){let r,o=typeof e=="object"?e.serializeAttribute:void 0,i=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;i&&i>Xo&&(vn&&ne.warn(`\`dom.maxStringLength\` cannot exceed ${Xo}, but a value of ${i} was configured. Sentry will use ${Xo} instead.`),i=Xo),typeof o=="string"&&(o=[o]);try{const s=n.event;r=LN(s)?Sr(s.target,{keyAttrs:o,maxStringLength:i}):Sr(s,{keyAttrs:o,maxStringLength:i})}catch{r="<unknown>"}r.length!==0&&tt().addBreadcrumb({category:`ui.${n.name}`,message:r},{event:n.event,name:n.name,global:n.global})}return t}function MN(e){const t={category:"console",data:{arguments:e.args,logger:"console"},level:pI(e.level),message:Nd(e.args," ")};if(e.level==="assert")if(e.args[0]===!1)t.message=`Assertion failed: ${Nd(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);else return;tt().addBreadcrumb(t,{input:e.args,level:e.level})}function RN(e){const{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[br];if(!t||!n||!r)return;const{method:o,url:i,status_code:s,body:l}=r,u={method:o,url:i,status_code:s},c={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:n};tt().addBreadcrumb({category:"xhr",data:u,type:"http"},c)}function AN(e){const{startTimestamp:t,endTimestamp:n}=e;if(n&&!(e.fetchData.url.match(/sentry_key/)&&e.fetchData.method==="POST"))if(e.error){const r=e.fetchData,o={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};tt().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},o)}else{const r=e.response,o={...e.fetchData,status_code:r&&r.status},i={input:e.args,response:r,startTimestamp:t,endTimestamp:n};tt().addBreadcrumb({category:"fetch",data:o,type:"http"},i)}}function $N(e){let t=e.from,n=e.to;const r=Xs(Ue.location.href);let o=t?Xs(t):void 0;const i=Xs(n);(!o||!o.path)&&(o=r),r.protocol===i.protocol&&r.host===i.host&&(n=i.relative),r.protocol===o.protocol&&r.host===o.host&&(t=o.relative),tt().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}function LN(e){return!!e&&!!e.target}const cm=[new ns,new ts,new as,new ls,new La,new os,new ss,new is];function VN(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=cm),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),Ue.SENTRY_RELEASE&&Ue.SENTRY_RELEASE.id&&(e.release=Ue.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:$P(e.stackParser||vN),integrations:mD(e),transport:e.transport||(Rh()?QD:eN)};kD(KD,t),e.autoSessionTracking&&HN()}function FN(e={},t=tt()){if(!Ue.document){vn&&ne.error("Global document not defined in showReportDialog call");return}const{client:n,scope:r}=t.getStackTop(),o=e.dsn||n&&n.getDsn();if(!o){vn&&ne.error("DSN not configured for showReportDialog call");return}r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());const i=Ue.document.createElement("script");i.async=!0,i.crossOrigin="anonymous",i.src=pD(o,e),e.onLoad&&(i.onload=e.onLoad);const{onClose:s}=e;if(s){const u=c=>{if(c.data==="__sentry_reportdialog_closed__")try{s()}finally{Ue.removeEventListener("message",u)}};Ue.addEventListener("message",u)}const l=Ue.document.head||Ue.document.body;l?l.appendChild(i):vn&&ne.error("Not injecting report dialog. No injection point found in HTML")}function lf(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function HN(){if(typeof Ue.document>"u"){vn&&ne.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}const e=tt();e.captureSession&&(lf(e),Xi(({from:t,to:n})=>{t!==void 0&&t!==n&&lf(tt())}))}const yt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,lt=et;function UN(){lt&<.document?lt.document.addEventListener("visibilitychange",()=>{const e=No();if(lt.document.hidden&&e){const t="cancelled";yt&&ne.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}}):yt&&ne.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const ju=(e,t,n)=>{let r,o;return i=>{t.value>=0&&(i||n)&&(o=t.value-(r||0),(o||r===void 0)&&(r=t.value,t.delta=o,e(t)))}},zN=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,jN=()=>{const e=lt.performance.timing,t=lt.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},dm=()=>lt.__WEB_VITALS_POLYFILL__?lt.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||jN()):lt.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],fm=()=>{const e=dm();return e&&e.activationStart||0},Wu=(e,t)=>{const n=dm();let r="navigate";return n&&(lt.document.prerendering||fm()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:zN(),navigationType:r}},us=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(o=>{t(o.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},cs=(e,t)=>{const n=r=>{(r.type==="pagehide"||lt.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},WN=e=>{const t=Wu("CLS",0);let n,r=0,o=[];const i=l=>{l.forEach(u=>{if(!u.hadRecentInput){const c=o[0],f=o[o.length-1];r&&o.length!==0&&u.startTime-f.startTime<1e3&&u.startTime-c.startTime<5e3?(r+=u.value,o.push(u)):(r=u.value,o=[u]),r>t.value&&(t.value=r,t.entries=o,n&&n())}})},s=us("layout-shift",i);if(s){n=ju(e,t);const l=()=>{i(s.takeRecords()),n(!0)};return cs(l),l}};let li=-1;const qN=()=>lt.document.visibilityState==="hidden"&&!lt.document.prerendering?0:1/0,YN=()=>{cs(({timeStamp:e})=>{li=e},!0)},qu=()=>(li<0&&(li=qN(),YN()),{get firstHiddenTime(){return li}}),GN=e=>{const t=qu(),n=Wu("FID");let r;const o=l=>{l.startTime<t.firstHiddenTime&&(n.value=l.processingStart-l.startTime,n.entries.push(l),r(!0))},i=l=>{l.forEach(o)},s=us("first-input",i);r=ju(e,n),s&&cs(()=>{i(s.takeRecords()),s.disconnect()},!0)},uf={},KN=e=>{const t=qu(),n=Wu("LCP");let r;const o=s=>{const l=s[s.length-1];if(l){const u=Math.max(l.startTime-fm(),0);u<t.firstHiddenTime&&(n.value=u,n.entries=[l],r())}},i=us("largest-contentful-paint",o);if(i){r=ju(e,n);const s=()=>{uf[n.id]||(o(i.takeRecords()),i.disconnect(),uf[n.id]=!0,r(!0))};return["keydown","click"].forEach(l=>{addEventListener(l,s,{once:!0,capture:!0})}),cs(s,!0),s}},no={},Ei={};let pm,hm,mm;function XN(e){return Yu("cls",e,QN,pm)}function vm(e){return Yu("lcp",e,eO,mm)}function JN(e){return Yu("fid",e,ZN,hm)}function ds(e,t){return gm(e,t),Ei[e]||(tO(e),Ei[e]=!0),ym(e,t)}function fs(e,t){const n=no[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(o){yt&&ne.error(`Error while triggering instrumentation handler.
|
|
77
|
+
`):ee.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&Cv(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:o,environment:i=el}=r&&r.getOptions()||{},{userAgent:s}=Ge.navigator||{},l=Sv({release:o,environment:i,user:n.getUser(),...s&&{userAgent:s},...t}),u=n.getSession&&n.getSession();return u&&u.status==="ok"&&_a(u,{status:"exited"}),this.endSession(),n.setSession(l),l}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const o=gi().__SENTRY__;if(o&&o.extensions&&typeof o.extensions[t]=="function")return o.extensions[t].apply(this,n);Ee&&ee.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function gi(){return Ge.__SENTRY__=Ge.__SENTRY__||{extensions:{},hub:void 0},Ge}function hp(e){const t=gi(),n=Ru(t);return Mv(t,e),n}function fn(){const e=gi();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return iM(e)}function Jr(){return fn().getIsolationScope()}function iM(e=gi()){return(!sM(e)||Ru(e).isOlderThan(Nv))&&Mv(e,new Dv),Ru(e)}function sM(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Ru(e){return rv("hub",()=>new Dv,e)}function Mv(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function wa(e){return(e||fn()).getScope().getTransaction()}let mp=!1;function lM(){mp||(mp=!0,hv($u),mv($u))}function $u(){const e=wa();if(e){const t="internal_error";Ee&&ee.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}$u.tag="sentry_tracingErrorCallback";var vp;(function(e){const t="ok";e.Ok=t;const n="deadline_exceeded";e.DeadlineExceeded=n;const r="unauthenticated";e.Unauthenticated=r;const o="permission_denied";e.PermissionDenied=o;const i="not_found";e.NotFound=i;const s="resource_exhausted";e.ResourceExhausted=s;const l="invalid_argument";e.InvalidArgument=l;const u="unimplemented";e.Unimplemented=u;const d="unavailable";e.Unavailable=d;const c="internal_error";e.InternalError=c;const p="unknown_error";e.UnknownError=p;const h="cancelled";e.Cancelled=h;const m="already_exists";e.AlreadyExists=m;const y="failed_precondition";e.FailedPrecondition=y;const w="aborted";e.Aborted=w;const k="out_of_range";e.OutOfRange=k;const _="data_loss";e.DataLoss=_})(vp||(vp={}));function uM(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function qc(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=uM(t);n!=="unknown_error"&&e.setStatus(n)}function Ea(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=lt(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function ks(e){if(!Ea())return;const t=dM(e),n=fn(),r=e.scope?e.scope.getSpan():Lu();if(e.onlyIfParent&&!r)return;const s=(e.scope||dn()).clone();return cM(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:s})}function Lu(){return dn().getSpan()}function cM(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:o}){if(!Ea())return;const i=Jr();let s;if(t&&!r)s=t.startChild(n);else if(t){const l=co(t),{traceId:u,spanId:d}=t.spanContext(),c=Wc(t);s=e.startTransaction({traceId:u,parentSpanId:d,parentSampled:c,...n,metadata:{dynamicSamplingContext:l,...n.metadata}})}else{const{traceId:l,dsc:u,parentSpanId:d,sampled:c}={...i.getPropagationContext(),...o.getPropagationContext()};s=e.startTransaction({traceId:l,parentSpanId:d,parentSampled:c,...n,metadata:{dynamicSamplingContext:u,...n.metadata}})}return o.setSpan(s),fM(s,o,i),s}function dM(e){if(e.startTime){const t={...e};return t.startTimestamp=nl(e.startTime),delete t.startTime,t}return e}const Bv="_sentryScope",Av="_sentryIsolationScope";function fM(e,t,n){e&&(ba(e,Av,n),ba(e,Bv,t))}function pM(e){return{scope:e[Bv],isolationScope:e[Av]}}const Vn="sentry.source",Va="sentry.sample_rate",Ui="sentry.op",kr="sentry.origin",hM="profile_id";class Rv{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class al{constructor(t={}){this._traceId=t.traceId||Ct(),this._spanId=t.spanId||Ct().substring(16),this._startTime=t.startTimestamp||ko(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[kr]:t.origin||"manual",[Ui]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),t.exclusiveTime!==void 0&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[Ui]}set op(t){this.setAttribute(Ui,t)}get origin(){return this._attributes[kr]}set origin(t){this.setAttribute(kr,t)}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Tv:LD}}startChild(t){const n=new al({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const r=ws(this);if(n.transaction=r,Ee&&r){const o=t&&t.op||"< unknown op >",i=Lt(n).description||"< unknown name >",s=r.spanContext().spanId,l=`[Tracing] Starting '${o}' span on transaction '${i}' (${s}).`;ee.log(l),this._logMessage=l}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return qc(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const n=ws(this);if(Ee&&n&&n.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&ee.log(r.replace("Starting","Finishing"))}this._endTime=nl(t)}toTraceparent(){return tl(this)}toContext(){return an({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return jc(this)}getSpanJSON(){return an({data:this._getData(),description:this._name,op:this._attributes[Ui],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[kr],_metrics_summary:void 0,profile_id:this._attributes[hM],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:n}=this,r=Object.keys(t).length>0,o=Object.keys(n).length>0;if(!(!r&&!o))return r&&o?{...t,...n}:r?t:n}}class $v extends al{constructor(t,n){super(t),this._contexts={},this._hub=n||fn(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[Vn]&&{source:this._attributes[Vn]},...this._attributes[Va]&&{sampleRate:this._attributes[Va]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(Vn,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new Rv(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const n=nl(t),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){const t=super.toContext();return an({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return co(this)}setHub(t){this._hub=t}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(Ee&&ee.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){Ee&&ee.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(c=>c!==this&&Lt(c).timestamp):[];if(this._trimEnd&&r.length>0){const c=r.map(p=>Lt(p).timestamp).filter(Boolean);this._endTime=c.reduce((p,h)=>p>h?p:h)}const{scope:o,isolationScope:i}=pM(this),{metadata:s}=this,{source:l}=s,u={contexts:{...this._contexts,trace:jc(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...s,capturedSpanScope:o,capturedSpanIsolationScope:i,...an({dynamicSamplingContext:co(this)})},_metrics_summary:void 0,...l&&{transaction_info:{source:l}}};return Object.keys(this._measurements).length>0&&(Ee&&ee.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),u.measurements=this._measurements),Ee&&ee.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),u}}const ns={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},mM="finishReason",Ma=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class vM extends Rv{constructor(t,n,r,o){super(o),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const n=t.end;t.end=(...r)=>(this._popActivity(t.spanContext().spanId),n.apply(t,r)),Lt(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class gM extends $v{constructor(t,n,r=ns.idleTimeout,o=ns.finalTimeout,i=ns.heartbeatInterval,s=!1,l=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=o,this._heartbeatInterval=i,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Ma[4],this._autoFinishAllowed=!l,s&&(Ee&&ee.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),l||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Ma[3],this.end())},this._finalTimeout)}end(t){const n=nl(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(mM,this._finishReason),this.spanRecorder){Ee&&ee.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;Lt(r).timestamp||(r.setStatus("cancelled"),r.end(n),Ee&&ee.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:o,timestamp:i}=Lt(r),s=o&&o<n,l=(this._finalTimeout+this._idleTimeout)/1e3,u=i&&o&&i-o<l;if(Ee){const d=JSON.stringify(r,void 0,2);s?u||ee.log("[Tracing] discarding Span since it finished after Transaction final timeout",d):ee.log("[Tracing] discarding Span since it happened after Transaction was finished",d)}return s&&u}),Ee&&ee.log("[Tracing] flushing IdleTransaction")}else Ee&&ee.log("[Tracing] No active IdleTransaction");if(this._onScope){const r=this._idleHub.getScope();r.getTransaction()===this&&r.setSpan(void 0)}return super.end(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const n=o=>{this._finished||this._pushActivity(o)},r=o=>{this._finished||this._popActivity(o)};this.spanRecorder=new vM(n,r,this.spanContext().spanId,t),Ee&&ee.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Ma[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(Ee&&ee.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=Ma[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),Ee&&ee.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,Ee&&ee.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(Ee&&ee.log(`[Tracing] popActivity ${t}`),delete this.activities[t],Ee&&ee.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=ko();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=Ma[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(Ee&&ee.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Ma[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){Ee&&ee.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function Lv(e,t,n){if(!Ea(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(Va,Number(e.sampled)),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setAttribute(Va,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setAttribute(Va,Number(r))):(r=1,e.setAttribute(Va,r)),Vv(r)?r?(e.sampled=Math.random()<r,e.sampled?(Ee&&ee.log(`[Tracing] starting ${e.op} transaction - ${Lt(e).description}`),e):(Ee&&ee.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),e)):(Ee&&ee.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1,e):(Ee&&ee.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function Vv(e){return tv(e)||!(typeof e=="number"||typeof e=="boolean")?(Ee&&ee.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e<0||e>1?(Ee&&ee.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function yM(){const t=this.getScope().getSpan();return t?{"sentry-trace":tl(t)}:{}}function bM(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},o=r.instrumenter||"sentry",i=e.instrumenter||"sentry";o!==i&&(Ee&&ee.error(`A transaction was started with instrumenter=\`${i}\`, but the SDK is configured with the \`${o}\` instrumenter.
|
|
78
|
+
The transaction will not be sampled. Please use the ${o} instrumentation to start transactions.`),e.sampled=!1);let s=new $v(e,this);return s=Lv(s,r,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),s.isRecording()&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function gp(e,t,n,r,o,i,s,l=!1){const u=e.getClient(),d=u&&u.getOptions()||{};let c=new gM(t,e,n,r,s,o,l);return c=Lv(c,d,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...i}),c.isRecording()&&c.initSpanRecorder(d._experiments&&d._experiments.maxSpans),u&&u.emit&&u.emit("startTransaction",c),c}function _M(){const e=gi();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=bM),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=yM),lM())}function wM(e,t,n){const r=wa();r&&r.setMeasurement(e,t,n)}function kM(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 SM(e,t,n,r){const o=Uc(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:Sa(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Xr(i,[s])}function CM(e,t,n,r){const o=Uc(n),i=e.type&&e.type!=="replay_event"?e.type:"event";kM(e,n&&n.sdk);const s=_v(e,o,r,t);return delete e.sdkProcessingMetadata,Xr(s,[[{type:i},e]])}const TM="7";function Fv(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function EM(e){return`${Fv(e)}${e.projectId}/envelope/`}function xM(e,t){return LN({sentry_key:e.publicKey,sentry_version:TM,...t&&{sentry_client:`${t.name}/${t.version}`}})}function IM(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${EM(e)}?${xM(e,r)}`}function PM(e,t){const n=iv(e);if(!n)return"";const r=`${Fv(n)}embed/error-page/`;let o=`dsn=${Sa(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 yp=[];function OM(e){const t={};return e.forEach(n=>{const{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function NM(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=$c(n(t)):r=t;const o=OM(r),i=MM(o,s=>s.name==="Debug");if(i!==-1){const[s]=o.splice(i,1);o.push(s)}return o}function DM(e,t){const n={};return t.forEach(r=>{r&&Hv(e,r,n)}),n}function bp(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Hv(e,t,n){if(n[t.name]){Ee&&ee.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,yp.indexOf(t.name)===-1&&(t.setupOnce(RD,fn),yp.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>r(o,i,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),o=Object.assign((i,s)=>r(i,s,e),{id:t.name});e.addEventProcessor(o)}Ee&&ee.log(`Integration installed: ${t.name}`)}function MM(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}function Pr(e,t){return Object.assign(function(...r){return t(...r)},{id:e})}function BM(e){let t="";for(const n of e){const r=Object.entries(n.tags),o=r.length>0?`|#${r.map(([i,s])=>`${i}:${s}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${o}|T${n.timestamp}
|
|
79
|
+
`}return t}function AM(e,t,n,r){const o={sent_at:new Date().toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(o.dsn=Sa(t));const i=RM(e);return Xr(o,[i])}function RM(e){const t=BM(e);return[{type:"statsd",length:t.length},t]}const _p="Not capturing exception because it's already been captured.";class $M{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=iv(t.dsn):Ee&&ee.warn("No DSN provided, client will not send events."),this._dsn){const n=IM(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(ep(t)){Ee&&ee.log(_p);return}let o=n&&n.event_id;return this._process(this.eventFromException(t,n).then(i=>this._captureEvent(i,n,r)).then(i=>{o=i})),o}captureMessage(t,n,r,o){let i=r&&r.event_id;const s=Mc(t)?t:String(t),l=Bc(t)?this.eventFromMessage(s,n,r):this.eventFromException(t,r);return this._process(l.then(u=>this._captureEvent(u,r,o)).then(u=>{i=u})),i}captureEvent(t,n,r){if(n&&n.originalException&&ep(n.originalException)){Ee&&ee.log(_p);return}let o=n&&n.event_id;const s=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,n,s||r).then(l=>{o=l})),o}captureSession(t){typeof t.release!="string"?Ee&&ee.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),_a(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.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(o=>r&&o))):uo(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return Ee&&ee.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];Hv(this,t,this._integrations),n||bp(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=CM(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=ED(r,PD(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));const o=this._sendEnvelope(r);o&&o.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){const n=SM(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const o=`${t}:${n}`;Ee&&ee.log(`Adding outcome: "${o}"`),this._outcomes[o]=this._outcomes[o]+1||1}}captureAggregateMetrics(t){Ee&&ee.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=AM(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=DM(this,t),bp(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,o=!1;const i=n.exception&&n.exception.values;if(i){o=!0;for(const u of i){const d=u.mechanism;if(d&&d.handled===!1){r=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(_a(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new hn(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,o=Jr()){const i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),Ev(i,t,n,r,this,o).then(l=>{if(l===null)return l;const u={...o.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(l.contexts&&l.contexts.trace)&&u){const{traceId:c,spanId:p,parentSpanId:h,dsc:m}=u;l.contexts={trace:{trace_id:c,span_id:p,parent_span_id:h},...l.contexts};const y=m||rl(c,this,r);l.sdkProcessingMetadata={dynamicSamplingContext:y,...l.sdkProcessingMetadata}}return l})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(o=>o.event_id,o=>{if(Ee){const i=o;i.logLevel==="log"?ee.log(i.message):ee.warn(i)}})}_processEvent(t,n,r){const o=this.getOptions(),{sampleRate:i}=o,s=zv(t),l=Uv(t),u=t.type||"error",d=`before send for type \`${u}\``;if(l&&typeof i=="number"&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),Fc(new Qn(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const c=u==="replay_event"?"replay":u,h=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,h).then(m=>{if(m===null)throw this.recordDroppedEvent("event_processor",c,t),new Qn("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return m;const w=VM(o,m,n);return LM(w,d)}).then(m=>{if(m===null)throw this.recordDroppedEvent("before_send",c,t),new Qn(`${d} returned \`null\`, will not send event.`,"log");const y=r&&r.getSession();!s&&y&&this._updateSessionFromEvent(y,m);const w=m.transaction_info;if(s&&w&&m.transaction!==t.transaction){const k="custom";m.transaction_info={...w,source:k}}return this.sendEvent(m,n),m}).then(null,m=>{throw m instanceof Qn?m:(this.captureException(m,{data:{__sentry__:!0},originalException:m}),new Qn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
80
|
+
Reason: ${m}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{Ee&&ee.error("Error while sending event:",n)});Ee&&ee.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,o]=n.split(":");return{reason:r,category:o,quantity:t[n]}})}}function LM(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Zs(e))return e.then(r=>{if(!lo(r)&&r!==null)throw new Qn(n);return r},r=>{throw new Qn(`${t} rejected with ${r}`)});if(!lo(e)&&e!==null)throw new Qn(n);return e}function VM(e,t,n){const{beforeSend:r,beforeSendTransaction:o}=e;return Uv(t)&&r?r(t,n):zv(t)&&o?o(t,n):t}function Uv(e){return e.type===void 0}function zv(e){return e.type==="transaction"}function FM(e){const t=lt();!t||!t.addEventProcessor||t.addEventProcessor(e)}function HM(e,t){t.debug===!0&&(Ee?ee.enable():ur(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),dn().update(t.initialScope);const r=new e(t);UM(r),zM(r)}function UM(e){const n=fn().getStackTop();n.client=e,n.scope.setClient(e)}function zM(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const jM=30;function jv(e,t,n=mD(e.bufferSize||jM)){let r={};const o=s=>n.drain(s);function i(s){const l=[];if(ip(s,(p,h)=>{const m=sp(h);if(wv(r,m)){const y=wp(p,h);e.recordDroppedEvent("ratelimit_backoff",m,y)}else l.push(p)}),l.length===0)return uo();const u=Xr(s[0],l),d=p=>{ip(u,(h,m)=>{const y=wp(h,m);e.recordDroppedEvent(p,sp(m),y)})},c=()=>t({body:xD(u,e.textEncoder)}).then(p=>(p.statusCode!==void 0&&(p.statusCode<200||p.statusCode>=300)&&Ee&&ee.warn(`Sentry responded with status code ${p.statusCode} to sent event.`),r=kv(r,p),p),p=>{throw d("network_error"),p});return n.add(c).then(p=>p,p=>{if(p instanceof Qn)return Ee&&ee.error("Skipped sending event because buffer is full."),d("queue_overflow"),uo();throw p})}return i.__sentry__baseTransport__=!0,{send:i,flush:o}}function wp(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function WM(e,t){const n={sent_at:new Date().toISOString()};t&&(n.dsn=Sa(t));const r=e.map(qM);return Xr(n,r)}function qM(e){return[{type:"span"},e]}function YM(e,t){const n=t&&XM(t)?t.getClient():t,r=n&&n.getDsn(),o=n&&n.getOptions().tunnel;return KM(e,r)||GM(e,o)}function GM(e,t){return t?kp(e)===kp(t):!1}function KM(e,t){return t?e.includes(t.host):!1}function kp(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function XM(e){return e.getClient!==void 0}function JM(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:si})),version:si}),e._metadata=o}const ZM=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],QM=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Wv="InboundFilters",eB=(e={})=>({name:Wv,setupOnce(){},processEvent(t,n,r){const o=r.getOptions(),i=tB(e,o);return nB(t,i)?null:t}}),qv=eB;Pr(Wv,qv);function tB(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:ZM],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:QM],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function nB(e,t){return t.ignoreInternal&&lB(e)?(Ee&&ee.warn(`Event dropped due to being internal Sentry Error.
|
|
81
|
+
Event: ${$r(e)}`),!0):rB(e,t.ignoreErrors)?(Ee&&ee.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
82
|
+
Event: ${$r(e)}`),!0):aB(e,t.ignoreTransactions)?(Ee&&ee.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
83
|
+
Event: ${$r(e)}`),!0):oB(e,t.denyUrls)?(Ee&&ee.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
84
|
+
Event: ${$r(e)}.
|
|
85
|
+
Url: ${Ss(e)}`),!0):iB(e,t.allowUrls)?!1:(Ee&&ee.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
86
|
+
Event: ${$r(e)}.
|
|
87
|
+
Url: ${Ss(e)}`),!0)}function rB(e,t){return e.type||!t||!t.length?!1:sB(e).some(n=>_o(n,t))}function aB(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?_o(n,t):!1}function oB(e,t){if(!t||!t.length)return!1;const n=Ss(e);return n?_o(n,t):!1}function iB(e,t){if(!t||!t.length)return!0;const n=Ss(e);return n?_o(n,t):!0}function sB(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}`)),Ee&&t.length===0&&ee.error(`Could not extract message for event ${$r(e)}`),t}function lB(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function uB(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 Ss(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?uB(t):null}catch{return Ee&&ee.error(`Cannot extract url for event ${$r(e)}`),null}}let Sp;const Yv="FunctionToString",Cp=new WeakMap,cB=()=>({name:Yv,setupOnce(){Sp=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Rc(this),n=Cp.has(lt())&&t!==void 0?t:this;return Sp.apply(n,e)}}catch{}},setup(e){Cp.set(e,!0)}}),Gv=cB;Pr(Yv,Gv);const mt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Le=Ge;function dB(){Le.document?Le.document.addEventListener("visibilitychange",()=>{const e=wa();if(Le.document.hidden&&e){const t="cancelled",{op:n,status:r}=Lt(e);mt&&ee.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):mt&&ee.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const yi=(e,t,n)=>{let r,o;return i=>{t.value>=0&&(i||n)&&(o=t.value-(r||0),(o||r===void 0)&&(r=t.value,t.delta=o,e(t)))}},fB=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,pB=()=>{const e=Le.performance.timing,t=Le.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},ol=()=>Le.__WEB_VITALS_POLYFILL__?Le.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||pB()):Le.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Yc=()=>{const e=ol();return e&&e.activationStart||0},bi=(e,t)=>{const n=ol();let r="navigate";return n&&(Le.document&&Le.document.prerendering||Yc()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:fB(),navigationType:r}},So=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(o=>{t(o.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},_i=(e,t)=>{const n=r=>{(r.type==="pagehide"||Le.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};Le.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},hB=e=>{const t=bi("CLS",0);let n,r=0,o=[];const i=l=>{l.forEach(u=>{if(!u.hadRecentInput){const d=o[0],c=o[o.length-1];r&&o.length!==0&&u.startTime-c.startTime<1e3&&u.startTime-d.startTime<5e3?(r+=u.value,o.push(u)):(r=u.value,o=[u]),r>t.value&&(t.value=r,t.entries=o,n&&n())}})},s=So("layout-shift",i);if(s){n=yi(e,t);const l=()=>{i(s.takeRecords()),n(!0)};return _i(l),l}};let Cs=-1;const mB=()=>{Le.document&&Le.document.visibilityState&&(Cs=Le.document.visibilityState==="hidden"&&!Le.document.prerendering?0:1/0)},vB=()=>{_i(({timeStamp:e})=>{Cs=e},!0)},Gc=()=>(Cs<0&&(mB(),vB()),{get firstHiddenTime(){return Cs}}),gB=e=>{const t=Gc(),n=bi("FID");let r;const o=l=>{l.startTime<t.firstHiddenTime&&(n.value=l.processingStart-l.startTime,n.entries.push(l),r(!0))},i=l=>{l.forEach(o)},s=So("first-input",i);r=yi(e,n),s&&_i(()=>{i(s.takeRecords()),s.disconnect()},!0)};let Kv=0,Wl=1/0,zi=0;const yB=e=>{e.forEach(t=>{t.interactionId&&(Wl=Math.min(Wl,t.interactionId),zi=Math.max(zi,t.interactionId),Kv=zi?(zi-Wl)/7+1:0)})};let Vu;const bB=()=>Vu?Kv:performance.interactionCount||0,_B=()=>{"interactionCount"in performance||Vu||(Vu=So("event",yB,{type:"event",buffered:!0,durationThreshold:0}))},Xv=()=>bB(),Tp=10,gr=[],ql={},Ep=e=>{const t=gr[gr.length-1],n=ql[e.interactionId];if(n||gr.length<Tp||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};ql[r.id]=r,gr.push(r)}gr.sort((r,o)=>o.latency-r.latency),gr.splice(Tp).forEach(r=>{delete ql[r.id]})}},wB=()=>{const e=Math.min(gr.length-1,Math.floor(Xv()/50));return gr[e]},kB=(e,t)=>{t=t||{},_B();const n=bi("INP");let r;const o=s=>{s.forEach(u=>{u.interactionId&&Ep(u),u.entryType==="first-input"&&!gr.some(c=>c.entries.some(p=>u.duration===p.duration&&u.startTime===p.startTime))&&Ep(u)});const l=wB();l&&l.latency!==n.value&&(n.value=l.latency,n.entries=l.entries,r())},i=So("event",o,{durationThreshold:t.durationThreshold||40});r=yi(e,n,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),_i(()=>{o(i.takeRecords()),n.value<0&&Xv()>0&&(n.value=0,n.entries=[]),r(!0)}))},xp={},SB=e=>{const t=Gc(),n=bi("LCP");let r;const o=s=>{const l=s[s.length-1];if(l){const u=Math.max(l.startTime-Yc(),0);u<t.firstHiddenTime&&(n.value=u,n.entries=[l],r())}},i=So("largest-contentful-paint",o);if(i){r=yi(e,n);const s=()=>{xp[n.id]||(o(i.takeRecords()),i.disconnect(),xp[n.id]=!0,r(!0))};return["keydown","click"].forEach(l=>{Le.document&&addEventListener(l,s,{once:!0,capture:!0})}),_i(s,!0),s}},Fu=e=>{Le.document&&(Le.document.prerendering?addEventListener("prerenderingchange",()=>Fu(e),!0):Le.document.readyState!=="complete"?addEventListener("load",()=>Fu(e),!0):setTimeout(e,0))},CB=(e,t)=>{t=t||{};const n=bi("TTFB"),r=yi(e,n,t.reportAllChanges);Fu(()=>{const o=ol();if(o){if(n.value=Math.max(o.responseStart-Yc(),0),n.value<0||n.value>performance.now())return;n.entries=[o],r(!0)}})},jo={},Ts={};let Jv,Zv,Qv,eg,tg;function TB(e,t=!1){return wi("cls",e,PB,Jv,t)}function ng(e,t=!1){return wi("lcp",e,NB,Qv,t)}function EB(e){return wi("ttfb",e,DB,eg)}function xB(e){return wi("fid",e,OB,Zv)}function IB(e){return wi("inp",e,MB,tg)}function fo(e,t){return rg(e,t),Ts[e]||(BB(e),Ts[e]=!0),ag(e,t)}function Co(e,t){const n=jo[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(o){mt&&ee.error(`Error while triggering instrumentation handler.
|
|
100
88
|
Type: ${e}
|
|
101
|
-
Name: ${
|
|
102
|
-
Error:`,o)}}function QN(){WN(e=>{fs("cls",{metric:e}),pm=e})}function ZN(){GN(e=>{fs("fid",{metric:e}),hm=e})}function eO(){KN(e=>{fs("lcp",{metric:e}),mm=e})}function Yu(e,t,n,r){return gm(e,t),Ei[e]||(n(),Ei[e]=!0),r&&t({metric:r}),ym(e,t)}function tO(e){const t={};e==="event"&&(t.durationThreshold=0),us(e,n=>{fs(e,{entries:n})},t)}function gm(e,t){no[e]=no[e]||[],no[e].push(t)}function ym(e,t){return()=>{const n=no[e];if(!n)return;const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}function Zs(e){return typeof e=="number"&&isFinite(e)}function Ia(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const nO=2147483647;function It(e){return e/1e3}function bm(){return lt&<.addEventListener&<.performance}let cf=0,_t={},Bn,ro;function rO(){const e=bm();if(e&&In){e.mark&<.performance.mark("sentry-tracing-init");const t=lO(),n=iO(),r=sO();return()=>{t(),n(),r()}}return()=>{}}function aO(){ds("longtask",({entries:e})=>{for(const t of e){const n=No();if(!n)return;const r=It(In+t.startTime),o=It(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+o})}})}function oO(){ds("event",({entries:e})=>{for(const t of e){const n=No();if(!n)return;if(t.name==="click"){const r=It(In+t.startTime),o=It(t.duration);n.startChild({description:Sr(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+o})}}})}function iO(){return XN(({metric:e})=>{const t=e.entries.pop();t&&(yt&&ne.log("[Measurements] Adding CLS"),_t.cls={value:e.value,unit:""},ro=t)})}function sO(){return vm(({metric:e})=>{const t=e.entries.pop();t&&(yt&&ne.log("[Measurements] Adding LCP"),_t.lcp={value:e.value,unit:"millisecond"},Bn=t)})}function lO(){return JN(({metric:e})=>{const t=e.entries.pop();if(!t)return;const n=It(In),r=It(t.startTime);yt&&ne.log("[Measurements] Adding FID"),_t.fid={value:e.value,unit:"millisecond"},_t["mark.fid"]={value:n+r,unit:"second"}})}function uO(e){const t=bm();if(!t||!lt.performance.getEntries||!In)return;yt&&ne.log("[Tracing] Adding & adjusting spans using Performance API");const n=It(In),r=t.getEntries();let o,i;if(r.slice(cf).forEach(s=>{const l=It(s.startTime),u=It(s.duration);if(!(e.op==="navigation"&&n+l<e.startTimestamp))switch(s.entryType){case"navigation":{dO(e,s,n),o=n+It(s.responseStart),i=n+It(s.requestStart);break}case"mark":case"paint":case"measure":{cO(e,s,l,u,n);const c=qu(),f=s.startTime<c.firstHiddenTime;s.name==="first-paint"&&f&&(yt&&ne.log("[Measurements] Adding FP"),_t.fp={value:s.startTime,unit:"millisecond"}),s.name==="first-contentful-paint"&&f&&(yt&&ne.log("[Measurements] Adding FCP"),_t.fcp={value:s.startTime,unit:"millisecond"});break}case"resource":{const c=s.name.replace(lt.location.origin,"");pO(e,s,c,l,u,n);break}}}),cf=Math.max(r.length-1,0),hO(e),e.op==="pageload"){typeof o=="number"&&(yt&&ne.log("[Measurements] Adding TTFB"),_t.ttfb={value:(o-e.startTimestamp)*1e3,unit:"millisecond"},typeof i=="number"&&i<=o&&(_t["ttfb.requestTime"]={value:(o-i)*1e3,unit:"millisecond"})),["fcp","fp","lcp"].forEach(l=>{if(!_t[l]||n>=e.startTimestamp)return;const u=_t[l].value,c=n+It(u),f=Math.abs((c-e.startTimestamp)*1e3),p=f-u;yt&&ne.log(`[Measurements] Normalized ${l} from ${u} to ${f} (${p})`),_t[l].value=f});const s=_t["mark.fid"];s&&_t.fid&&(Ia(e,{description:"first input delay",endTimestamp:s.value+It(_t.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:s.value}),delete _t["mark.fid"]),"fcp"in _t||delete _t.cls,Object.keys(_t).forEach(l=>{e.setMeasurement(l,_t[l].value,_t[l].unit)}),mO(e)}Bn=void 0,ro=void 0,_t={}}function cO(e,t,n,r,o){const i=o+n,s=i+r;return Ia(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:i}),i}function dO(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Jo(e,t,r,n)}),Jo(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),Jo(e,t,"fetch",n,"cache","domainLookupStart"),Jo(e,t,"domainLookup",n,"DNS"),fO(e,t,n)}function Jo(e,t,n,r,o,i){const s=i?t[i]:t[`${n}End`],l=t[`${n}Start`];!l||!s||Ia(e,{op:"browser",origin:"auto.browser.browser.metrics",description:o||n,startTimestamp:r+It(l),endTimestamp:r+It(s)})}function fO(e,t,n){Ia(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+It(t.requestStart),endTimestamp:n+It(t.responseEnd)}),Ia(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+It(t.responseStart),endTimestamp:n+It(t.responseEnd)})}function pO(e,t,n,r,o,i){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s={};el(s,t,"transferSize","http.response_transfer_size"),el(s,t,"encodedBodySize","http.response_content_length"),el(s,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(s["resource.render_blocking_status"]=t.renderBlockingStatus);const l=i+r,u=l+o;Ia(e,{description:n,endTimestamp:u,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:s})}function hO(e){const t=lt.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),Zs(n.rtt)&&(_t["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Zs(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),Zs(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function mO(e){Bn&&(yt&&ne.log("[Measurements] Adding LCP Data"),Bn.element&&e.setTag("lcp.element",Sr(Bn.element)),Bn.id&&e.setTag("lcp.id",Bn.id),Bn.url&&e.setTag("lcp.url",Bn.url.trim().slice(0,200)),e.setTag("lcp.size",Bn.size)),ro&&ro.sources&&(yt&&ne.log("[Measurements] Adding CLS Data"),ro.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,Sr(t.node))))}function el(e,t,n,r){const o=t[n];o!=null&&o<nO&&(e[r]=o)}function vO(e,t,n,r,o="auto.http.browser"){if(!es()||!e.fetchData)return;const i=t(e.fetchData.url);if(e.endTimestamp&&i){const m=e.fetchData.__span;if(!m)return;const y=r[m];if(y){if(e.response){y.setHttpStatus(e.response.status);const k=e.response&&e.response.headers&&e.response.headers.get("content-length");if(k){const b=parseInt(k);b>0&&y.setData("http.response_content_length",b)}}else e.error&&y.setStatus("internal_error");y.finish(),delete r[m]}return}const s=tt(),l=s.getScope(),u=s.getClient(),c=l.getSpan(),{method:f,url:p}=e.fetchData,h=i&&c?c.startChild({data:{url:p,type:"fetch","http.method":f},description:`${f} ${p}`,op:"http.client",origin:o}):void 0;if(h&&(e.fetchData.__span=h.spanId,r[h.spanId]=h),n(e.fetchData.url)&&u){const m=e.args[0];e.args[1]=e.args[1]||{};const y=e.args[1];y.headers=gO(m,u,l,y,h)}return h}function gO(e,t,n,r,o){const i=o||n.getSpan(),s=i&&i.transaction,{traceId:l,sampled:u,dsc:c}=n.getPropagationContext(),f=i?i.toTraceparent():Au(l,void 0,u),p=s?s.getDynamicSamplingContext():c||Qi(l,t,n),h=Vl(p),m=typeof Request<"u"&&fr(e,Request)?e.headers:r.headers;if(m)if(typeof Headers<"u"&&fr(m,Headers)){const y=new Headers(m);return y.append("sentry-trace",f),h&&y.append(Ll,h),y}else if(Array.isArray(m)){const y=[...m,["sentry-trace",f]];return h&&y.push([Ll,h]),y}else{const y="baggage"in m?m.baggage:void 0,k=[];return Array.isArray(y)?k.push(...y):y&&k.push(y),h&&k.push(h),{...m,"sentry-trace":f,baggage:k.length>0?k.join(","):void 0}}else return{"sentry-trace":f,baggage:h}}const Wl=["localhost",/^\/(?!\/)/],ql={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Wl,tracePropagationTargets:Wl};function yO(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s}={traceFetch:ql.traceFetch,traceXHR:ql.traceXHR,...e},l=typeof i=="function"?i:f=>!0,u=f=>kO(f,r||o),c={};t&&Bu(f=>{const p=vO(f,l,u,c);s&&p&&df(p)}),n&&Mu(f=>{const p=SO(f,l,u,c);s&&p&&df(p)})}function bO(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function df(e){const t=e.data.url;if(!t)return;const n=ds("resource",({entries:r})=>{r.forEach(o=>{bO(o)&&o.name.endsWith(t)&&(wO(o).forEach(s=>e.setData(...s)),setTimeout(n))})})}function _O(e){let t="unknown",n="unknown",r="";for(const o of e){if(o==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}function Nn(e=0){return((In||performance.timeOrigin)+e)/1e3}function wO(e){const{name:t,version:n}=_O(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),In?[...r,["http.request.redirect_start",Nn(e.redirectStart)],["http.request.fetch_start",Nn(e.fetchStart)],["http.request.domain_lookup_start",Nn(e.domainLookupStart)],["http.request.domain_lookup_end",Nn(e.domainLookupEnd)],["http.request.connect_start",Nn(e.connectStart)],["http.request.secure_connection_start",Nn(e.secureConnectionStart)],["http.request.connection_end",Nn(e.connectEnd)],["http.request.request_start",Nn(e.requestStart)],["http.request.response_start",Nn(e.responseStart)],["http.request.response_end",Nn(e.responseEnd)]]:r}function kO(e,t){return Ra(e,t||Wl)}function SO(e,t,n,r){const o=e.xhr,i=o&&o[br];if(!es()||!o||o.__sentry_own_request__||!i)return;const s=t(i.url);if(e.endTimestamp&&s){const p=o.__sentry_xhr_span_id__;if(!p)return;const h=r[p];h&&i.status_code!==void 0&&(h.setHttpStatus(i.status_code),h.finish(),delete r[p]);return}const l=tt(),u=l.getScope(),c=u.getSpan(),f=s&&c?c.startChild({data:{type:"xhr","http.method":i.method,url:i.url},description:`${i.method} ${i.url}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(f&&(o.__sentry_xhr_span_id__=f.spanId,r[o.__sentry_xhr_span_id__]=f),o.setRequestHeader&&n(i.url))if(f){const p=f&&f.transaction,h=p&&p.getDynamicSamplingContext(),m=Vl(h);ff(o,f.toTraceparent(),m)}else{const p=l.getClient(),{traceId:h,sampled:m,dsc:y}=u.getPropagationContext(),k=Au(h,void 0,m),b=y||(p?Qi(h,p,u):void 0),w=Vl(b);ff(o,k,w)}return f}function ff(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(Ll,n)}catch{}}function CO(e,t=!0,n=!0){if(!lt||!lt.location){yt&&ne.warn("Could not initialize routing instrumentation due to invalid location");return}let r=lt.location.href,o;t&&(o=e({name:lt.location.pathname,startTimestamp:In?In/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&Xi(({to:i,from:s})=>{if(s===void 0&&r&&r.indexOf(i)!==-1){r=void 0;return}s!==i&&(r=void 0,o&&(yt&&ne.log(`[Tracing] Finishing current transaction with op: ${o.op}`),o.finish()),o=e({name:lt.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const TO="BrowserTracing",EO={...si,markBackgroundTransactions:!0,routingInstrumentation:CO,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...ql};class xO{constructor(t){this.name=TO,this._hasSetTracePropagationTargets=!1,oD(),yt&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...EO,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=rO(),this.options.enableLongTask&&aO(),this.options._experiments.enableInteractions&&oO()}setupOnce(t,n){this._getCurrentHub=n;const o=n().getClient(),i=o&&o.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:l,startTransactionOnPageLoad:u,markBackgroundTransactions:c,traceFetch:f,traceXHR:p,shouldCreateSpanForRequest:h,enableHTTPTimings:m,_experiments:y}=this.options,k=i&&i.tracePropagationTargets,b=k||this.options.tracePropagationTargets;yt&&this._hasSetTracePropagationTargets&&k&&ne.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(w=>{const T=this._createRouteTransaction(w);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(T,w,n),T},u,l),c&&UN(),y.enableInteractions&&this._registerInteractionListener(),yO({traceFetch:f,traceXHR:p,tracePropagationTargets:b,shouldCreateSpanForRequest:h,enableHTTPTimings:m})}_createRouteTransaction(t){if(!this._getCurrentHub){yt&&ne.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:o,finalTimeout:i,heartbeatInterval:s}=this.options,l=t.op==="pageload",u=l?pf("sentry-trace"):"",c=l?pf("baggage"):"",{traceparentData:f,dynamicSamplingContext:p,propagationContext:h}=kI(u,c),m={...t,...f,metadata:{...t.metadata,dynamicSamplingContext:f&&!p?{}:p},trimEnd:!0},y=typeof r=="function"?r(m):m,k=y===void 0?{...m,sampled:!1}:y;k.metadata=k.name!==m.name?{...k.metadata,source:"custom"}:k.metadata,this._latestRouteName=k.name,this._latestRouteSource=k.metadata&&k.metadata.source,k.sampled===!1&&yt&&ne.log(`[Tracing] Will not send ${k.op} transaction because of beforeNavigate.`),yt&&ne.log(`[Tracing] Starting ${k.op} transaction on scope`);const{location:b}=lt,w=Qd(n,k,o,i,!0,{location:b},s),T=n.getScope();return l&&f?T.setPropagationContext(h):T.setPropagationContext({traceId:w.traceId,spanId:w.spanId,parentSpanId:w.parentSpanId,sampled:w.sampled}),w.registerBeforeFinishCallback(O=>{this._collectWebVitals(),uO(O)}),w}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:o,heartbeatInterval:i}=this.options,s="ui.action.click",l=No();if(l&&l.op&&["navigation","pageload"].includes(l.op)){yt&&ne.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.finish(),t=void 0),!this._getCurrentHub){yt&&ne.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){yt&&ne.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const u=this._getCurrentHub(),{location:c}=lt,f={name:this._latestRouteName,op:s,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};t=Qd(u,f,r,o,!0,{location:c},i)};["click"].forEach(r=>{addEventListener(r,n,{once:!1,capture:!0})})}}function pf(e){const t=PP(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}const dt=et,Gu="sentryReplaySession",PO="replay_event",Ku="Unable to send Replay",IO=3e5,DO=9e5,NO=5e3,OO=5500,BO=6e4,MO=5e3,RO=3,hf=15e4,Qo=5e3,AO=3e3,$O=300,Xu=2e7,LO=4999,VO=15e3,mf=36e5;var Dt;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Dt||(Dt={}));function FO(e){return e.nodeType===e.ELEMENT_NODE}function ao(e){const t=e==null?void 0:e.host;return(t==null?void 0:t.shadowRoot)===e}function oo(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function HO(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}function UO(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function xi(e){try{const t=e.rules||e.cssRules;return t?HO(Array.from(t,_m).join("")):null}catch{return null}}function _m(e){let t;if(jO(e))try{t=xi(e.styleSheet)||UO(e)}catch{}else if(WO(e)&&e.selectorText.includes(":"))return zO(e.cssText);return t||e.cssText}function zO(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function jO(e){return"styleSheet"in e}function WO(e){return"selectorText"in e}class wm{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){var n;if(!t)return-1;const r=(n=this.getMeta(t))===null||n===void 0?void 0:n.id;return r??-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function qO(){return new wm}function ps({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function ko({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function Da(e){return e.toLowerCase()}function Yl(e){return e.toUpperCase()}const vf="__rrweb_original__";function YO(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let o=0;o<e.height;o+=n){const i=t.getImageData,s=vf in i?i[vf]:i;if(new Uint32Array(s.call(t,r,o,Math.min(n,e.width-r),Math.min(n,e.height-o)).data.buffer).some(u=>u!==0))return!1}return!0}function Ju(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Da(t):null}function Pi(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}let GO=1;const KO=new RegExp("[^a-z0-9-_:]"),So=-2;function Qu(){return GO++}function XO(e){if(e instanceof HTMLFormElement)return"form";const t=Da(e.tagName);return KO.test(t)?"div":t}function JO(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let oa,gf;const QO=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ZO=/^(?:[a-z+]+:)?\/\//i,eB=/^www\..*/i,tB=/^(data:)([^,]*),(.*)/i;function Ii(e,t){return(e||"").replace(QO,(n,r,o,i,s,l)=>{const u=o||s||l,c=r||i||"";if(!u)return n;if(ZO.test(u)||eB.test(u))return`url(${c}${u}${c})`;if(tB.test(u))return`url(${c}${u}${c})`;if(u[0]==="/")return`url(${c}${JO(t)+u}${c})`;const f=t.split("/"),p=u.split("/");f.pop();for(const h of p)h!=="."&&(h===".."?f.pop():f.push(h));return`url(${c}${f.join("/")}${c})`})}const nB=/^[^ \t\n\r\u000c]+/,rB=/^[, \t\n\r\u000c]+/;function aB(e,t){if(t.trim()==="")return t;let n=0;function r(i){let s;const l=i.exec(t.substring(n));return l?(s=l[0],n+=s.length,s):""}const o=[];for(;r(rB),!(n>=t.length);){let i=r(nB);if(i.slice(-1)===",")i=ca(e,i.substring(0,i.length-1)),o.push(i);else{let s="";i=ca(e,i);let l=!1;for(;;){const u=t.charAt(n);if(u===""){o.push((i+s).trim());break}else if(l)u===")"&&(l=!1);else if(u===","){n+=1,o.push((i+s).trim());break}else u==="("&&(l=!0);s+=u,n+=1}}}return o.join(", ")}function ca(e,t){if(!t||t.trim()==="")return t;const n=e.createElement("a");return n.href=t,n.href}function oB(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Zu(){const e=document.createElement("a");return e.href="",e.href}function km(e,t,n,r,o,i){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?ca(e,r):n==="srcset"?aB(e,r):n==="style"?Ii(r,Zu()):t==="object"&&n==="data"?ca(e,r):typeof i=="function"?i(n,r,o):r)}function Sm(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function iB(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let o=e.classList.length;o--;){const i=e.classList[o];if(t.test(i))return!0}if(n)return e.matches(n)}catch{}return!1}function sB(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Hr(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Hr(e.parentNode,t,n,r+1)}function da(e,t){return n=>{const r=n;if(r===null)return!1;if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(sB(r,e))return!0}return!!(t&&r.matches(t))}}function Na(e,t,n,r,o,i){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(s===null)return!1;let l=-1,u=-1;if(i){if(u=Hr(s,da(r,o)),u<0)return!0;l=Hr(s,da(t,n),u>=0?u:1/0)}else{if(l=Hr(s,da(t,n)),l<0)return!1;u=Hr(s,da(r,o),l>=0?l:1/0)}return l>=0?u>=0?l<=u:!0:u>=0?!1:!!i}catch{}return!!i}function lB(e,t,n){const r=e.contentWindow;if(!r)return;let o=!1,i;try{i=r.document.readyState}catch{return}if(i!=="complete"){const l=setTimeout(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{clearTimeout(l),o=!0,t()});return}const s="about:blank";if(r.location.href!==s||e.src===s||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function uB(e,t,n){let r=!1,o;try{o=e.sheet}catch{return}if(o)return;const i=setTimeout(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{clearTimeout(i),r=!0,t()})}function cB(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskAttributeFn:u,maskTextClass:c,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:y={},maskTextFn:k,maskInputFn:b,dataURLOptions:w={},inlineImages:T,recordCanvas:O,keepIframeSrcFn:_,newlyAddedElement:B=!1}=t,C=dB(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Dt.Document,childNodes:[],compatMode:e.compatMode}:{type:Dt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Dt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return pB(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:m,maskAttributeFn:u,maskInputOptions:y,maskInputFn:b,dataURLOptions:w,inlineImages:T,recordCanvas:O,keepIframeSrcFn:_,newlyAddedElement:B,rootId:C,maskAllText:l,maskTextClass:c,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h});case e.TEXT_NODE:return fB(e,{maskAllText:l,maskTextClass:c,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,maskTextFn:k,maskInputOptions:y,maskInputFn:b,rootId:C});case e.CDATA_SECTION_NODE:return{type:Dt.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:Dt.Comment,textContent:e.textContent||"",rootId:C};default:return!1}}function dB(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function fB(e,t){var n;const{maskAllText:r,maskTextClass:o,unmaskTextClass:i,maskTextSelector:s,unmaskTextSelector:l,maskTextFn:u,maskInputOptions:c,maskInputFn:f,rootId:p}=t,h=e.parentNode&&e.parentNode.tagName;let m=e.textContent;const y=h==="STYLE"?!0:void 0,k=h==="SCRIPT"?!0:void 0,b=h==="TEXTAREA"?!0:void 0;if(y&&m){try{e.nextSibling||e.previousSibling||!((n=e.parentNode.sheet)===null||n===void 0)&&n.cssRules&&(m=xi(e.parentNode.sheet))}catch(T){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${T}`,e)}m=Ii(m,Zu())}k&&(m="SCRIPT_PLACEHOLDER");const w=Na(e,o,s,i,l,r);if(!y&&!k&&!b&&m&&w&&(m=u?u(m):m.replace(/[\S]/g,"*")),b&&m&&(c.textarea||w)&&(m=f?f(m,e.parentNode):m.replace(/[\S]/g,"*")),h==="OPTION"&&m){const T=ps({type:null,tagName:h,maskInputOptions:c});m=ko({isMasked:Na(e,o,s,i,l,T),element:e,value:m,maskInputFn:f})}return{type:Dt.Text,textContent:m||"",isStyle:y,rootId:p}}function pB(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:l={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:f={},inlineImages:p,recordCanvas:h,keepIframeSrcFn:m,newlyAddedElement:y=!1,rootId:k,maskAllText:b,maskTextClass:w,unmaskTextClass:T,maskTextSelector:O,unmaskTextSelector:_}=t,B=iB(e,r,o,i),C=XO(e);let I={};const F=e.attributes.length;for(let W=0;W<F;W++){const M=e.attributes[W];Sm(C,M.name,M.value)||(I[M.name]=km(n,C,Da(M.name),M.value,e,u))}if(C==="link"&&s){const W=Array.from(n.styleSheets).find(D=>D.href===e.href);let M=null;W&&(M=xi(W)),M&&(delete I.rel,delete I.href,I._cssText=Ii(M,W.href))}if(C==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const W=xi(e.sheet);W&&(I._cssText=Ii(W,Zu()))}if(C==="input"||C==="textarea"||C==="select"||C==="option"){const W=e,M=Ju(W),D=Pi(W,Yl(C),M),$=W.checked;if(M!=="submit"&&M!=="button"&&D){const Y=Na(W,w,O,T,_,ps({type:M,tagName:Yl(C),maskInputOptions:l}));I.value=ko({isMasked:Y,element:W,value:D,maskInputFn:c})}$&&(I.checked=$)}if(C==="option"&&(e.selected&&!l.select?I.selected=!0:delete I.selected),C==="canvas"&&h){if(e.__context==="2d")YO(e)||(I.rr_dataURL=e.toDataURL(f.type,f.quality));else if(!("__context"in e)){const W=e.toDataURL(f.type,f.quality),M=document.createElement("canvas");M.width=e.width,M.height=e.height;const D=M.toDataURL(f.type,f.quality);W!==D&&(I.rr_dataURL=W)}}if(C==="img"&&p){oa||(oa=n.createElement("canvas"),gf=oa.getContext("2d"));const W=e,M=W.crossOrigin;W.crossOrigin="anonymous";const D=()=>{W.removeEventListener("load",D);try{oa.width=W.naturalWidth,oa.height=W.naturalHeight,gf.drawImage(W,0,0),I.rr_dataURL=oa.toDataURL(f.type,f.quality)}catch($){console.warn(`Cannot inline img src=${W.currentSrc}! Error: ${$}`)}M?I.crossOrigin=M:W.removeAttribute("crossorigin")};W.complete&&W.naturalWidth!==0?D():W.addEventListener("load",D)}if((C==="audio"||C==="video")&&(I.rr_mediaState=e.paused?"paused":"played",I.rr_mediaCurrentTime=e.currentTime),y||(e.scrollLeft&&(I.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(I.rr_scrollTop=e.scrollTop)),B){const{width:W,height:M}=e.getBoundingClientRect();I={class:I.class,rr_width:`${W}px`,rr_height:`${M}px`}}C==="iframe"&&!m(I.src)&&(e.contentDocument||(I.rr_src=I.src),delete I.src);let q;try{customElements.get(C)&&(q=!0)}catch{}return{type:Dt.Element,tagName:C,attributes:I,childNodes:[],isSVG:oB(e)||void 0,needBlock:B,rootId:k,isCustom:q}}function ut(e){return e==null?"":e.toLowerCase()}function hB(e,t){if(t.comment&&e.type===Dt.Comment)return!0;if(e.type===Dt.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ut(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ut(e.attributes.name)==="application-name"||ut(e.attributes.rel)==="icon"||ut(e.attributes.rel)==="apple-touch-icon"||ut(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&ut(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ut(e.attributes.property).match(/^(og|twitter|fb):/)||ut(e.attributes.name).match(/^(og|twitter):/)||ut(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(ut(e.attributes.name)==="robots"||ut(e.attributes.name)==="googlebot"||ut(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(ut(e.attributes.name)==="author"||ut(e.attributes.name)==="generator"||ut(e.attributes.name)==="framework"||ut(e.attributes.name)==="publisher"||ut(e.attributes.name)==="progid"||ut(e.attributes.property).match(/^article:/)||ut(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(ut(e.attributes.name)==="google-site-verification"||ut(e.attributes.name)==="yandex-verification"||ut(e.attributes.name)==="csrf-token"||ut(e.attributes.name)==="p:domain_verify"||ut(e.attributes.name)==="verify-v1"||ut(e.attributes.name)==="verification"||ut(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function fa(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:f,unmaskTextSelector:p,skipChild:h=!1,inlineStylesheet:m=!0,maskInputOptions:y={},maskAttributeFn:k,maskTextFn:b,maskInputFn:w,slimDOMOptions:T,dataURLOptions:O={},inlineImages:_=!1,recordCanvas:B=!1,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:F=5e3,onStylesheetLoad:q,stylesheetLoadTimeout:W=5e3,keepIframeSrcFn:M=()=>!1,newlyAddedElement:D=!1}=t;let{preserveWhiteSpace:$=!0}=t;const Y=cB(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:l,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:y,maskAttributeFn:k,maskTextFn:b,maskInputFn:w,dataURLOptions:O,inlineImages:_,recordCanvas:B,keepIframeSrcFn:M,newlyAddedElement:D});if(!Y)return console.warn(e,"not serialized"),null;let X;r.hasNode(e)?X=r.getId(e):hB(Y,T)||!$&&Y.type===Dt.Text&&!Y.isStyle&&!Y.textContent.replace(/^\s+|\s+$/gm,"").length?X=So:X=Qu();const K=Object.assign(Y,{id:X});if(r.add(e,K),X===So)return null;C&&C(e);let j=!h;if(K.type===Dt.Element){j=j&&!K.needBlock,delete K.needBlock;const U=e.shadowRoot;U&&oo(U)&&(K.isShadowHost=!0)}if((K.type===Dt.Document||K.type===Dt.Element)&&j){T.headWhitespace&&K.type===Dt.Element&&K.tagName==="head"&&($=!1);const U={doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:l,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:f,unmaskTextSelector:p,skipChild:h,inlineStylesheet:m,maskInputOptions:y,maskAttributeFn:k,maskTextFn:b,maskInputFn:w,slimDOMOptions:T,dataURLOptions:O,inlineImages:_,recordCanvas:B,preserveWhiteSpace:$,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:F,onStylesheetLoad:q,stylesheetLoadTimeout:W,keepIframeSrcFn:M};for(const S of Array.from(e.childNodes)){const H=fa(S,U);H&&K.childNodes.push(H)}if(FO(e)&&e.shadowRoot)for(const S of Array.from(e.shadowRoot.childNodes)){const H=fa(S,U);H&&(oo(e.shadowRoot)&&(H.isShadow=!0),K.childNodes.push(H))}}return e.parentNode&&ao(e.parentNode)&&oo(e.parentNode)&&(K.isShadow=!0),K.type===Dt.Element&&K.tagName==="iframe"&&lB(e,()=>{const U=e.contentDocument;if(U&&I){const S=fa(U,{doc:U,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:f,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:m,maskInputOptions:y,maskAttributeFn:k,maskTextFn:b,maskInputFn:w,slimDOMOptions:T,dataURLOptions:O,inlineImages:_,recordCanvas:B,preserveWhiteSpace:$,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:F,onStylesheetLoad:q,stylesheetLoadTimeout:W,keepIframeSrcFn:M});S&&I(e,S)}},F),K.type===Dt.Element&&K.tagName==="link"&&K.attributes.rel==="stylesheet"&&uB(e,()=>{if(q){const U=fa(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:f,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:m,maskInputOptions:y,maskAttributeFn:k,maskTextFn:b,maskInputFn:w,slimDOMOptions:T,dataURLOptions:O,inlineImages:_,recordCanvas:B,preserveWhiteSpace:$,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:F,onStylesheetLoad:q,stylesheetLoadTimeout:W,keepIframeSrcFn:M});U&&q(e,U)}},W),K}function mB(e,t){const{mirror:n=new wm,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:l="rr-mask",unmaskTextClass:u=null,maskTextSelector:c=null,unmaskTextSelector:f=null,inlineStylesheet:p=!0,inlineImages:h=!1,recordCanvas:m=!1,maskAllInputs:y=!1,maskAttributeFn:k,maskTextFn:b,maskInputFn:w,slimDOM:T=!1,dataURLOptions:O,preserveWhiteSpace:_,onSerialize:B,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:F,stylesheetLoadTimeout:q,keepIframeSrcFn:W=()=>!1}=t||{};return fa(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:y===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:y===!1?{}:y,maskAttributeFn:k,maskTextFn:b,maskInputFn:w,slimDOMOptions:T===!0||T==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:T==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:T===!1?{}:T,dataURLOptions:O,inlineImages:h,recordCanvas:m,preserveWhiteSpace:_,onSerialize:B,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:F,stylesheetLoadTimeout:q,keepIframeSrcFn:W,newlyAddedElement:!1})}function tn(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const sa=`Please stop import mirror directly. Instead of that,\r
|
|
89
|
+
Name: ${Ir(r)}
|
|
90
|
+
Error:`,o)}}function PB(){return hB(e=>{Co("cls",{metric:e}),Jv=e})}function OB(){return gB(e=>{Co("fid",{metric:e}),Zv=e})}function NB(){return SB(e=>{Co("lcp",{metric:e}),Qv=e})}function DB(){return CB(e=>{Co("ttfb",{metric:e}),eg=e})}function MB(){return kB(e=>{Co("inp",{metric:e}),tg=e})}function wi(e,t,n,r,o=!1){rg(e,t);let i;return Ts[e]||(i=n(),Ts[e]=!0),r&&t({metric:r}),ag(e,t,o?i:void 0)}function BB(e){const t={};e==="event"&&(t.durationThreshold=0),So(e,n=>{Co(e,{entries:n})},t)}function rg(e,t){jo[e]=jo[e]||[],jo[e].push(t)}function ag(e,t,n){return()=>{n&&n();const r=jo[e];if(!r)return;const o=r.indexOf(t);o!==-1&&r.splice(o,1)}}function Yl(e){return typeof e=="number"&&isFinite(e)}function po(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const AB=2147483647;function At(e){return e/1e3}function Kc(){return Le&&Le.addEventListener&&Le.performance}let Ip=0,wt={},zn,Wo;function RB(){const e=Kc();if(e&&yn){e.mark&&Le.performance.mark("sentry-tracing-init");const t=UB(),n=FB(),r=HB(),o=zB();return()=>{t(),n(),r(),o()}}return()=>{}}function $B(){fo("longtask",({entries:e})=>{for(const t of e){const n=wa();if(!n)return;const r=At(yn+t.startTime),o=At(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+o})}})}function LB(){fo("event",({entries:e})=>{for(const t of e){const n=wa();if(!n)return;if(t.name==="click"){const r=At(yn+t.startTime),o=At(t.duration),i={description:zr(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+o},s=av(t.target);s&&(i.attributes={"ui.component_name":s}),n.startChild(i)}}})}function VB(e,t){if(Kc()&&yn){const r=jB(e,t);return()=>{r()}}return()=>{}}function FB(){return TB(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(mt&&ee.log("[Measurements] Adding CLS"),wt.cls={value:e.value,unit:""},Wo=t)},!0)}function HB(){return ng(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(mt&&ee.log("[Measurements] Adding LCP"),wt.lcp={value:e.value,unit:"millisecond"},zn=t)},!0)}function UB(){return xB(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=At(yn),r=At(t.startTime);mt&&ee.log("[Measurements] Adding FID"),wt.fid={value:e.value,unit:"millisecond"},wt["mark.fid"]={value:n+r,unit:"second"}})}function zB(){return EB(({metric:e})=>{e.entries[e.entries.length-1]&&(mt&&ee.log("[Measurements] Adding TTFB"),wt.ttfb={value:e.value,unit:"millisecond"})})}const Pp={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 jB(e,t){return IB(({metric:n})=>{if(n.value===void 0)return;const r=n.entries.find(S=>S.duration===n.value&&Pp[S.name]!==void 0),o=lt();if(!r||!o)return;const i=Pp[r.name],s=o.getOptions(),l=At(yn+r.startTime),u=At(n.value),d=r.interactionId!==void 0?e[r.interactionId]:void 0;if(d===void 0)return;const{routeName:c,parentContext:p,activeTransaction:h,user:m,replayId:y}=d,w=m!==void 0?m.email||m.id||m.ip_address:void 0,k=h!==void 0?h.getProfileId():void 0,_=new al({startTimestamp:l,endTimestamp:l+u,op:`ui.interaction.${i}`,name:zr(r.target),attributes:{release:s.release,environment:s.environment,transaction:c,...w!==void 0&&w!==""?{user:w}:{},...k!==void 0?{profile_id:k}:{},...y!==void 0?{replay_id:y}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),x=QB(p,s,t);if(x&&Math.random()<x){const S=_?WM([_],o.getDsn()):void 0,b=o&&o.getTransport();b&&S&&b.send(S).then(null,N=>{mt&&ee.error("Error while sending interaction:",N)});return}})}function WB(e){const t=Kc();if(!t||!Le.performance.getEntries||!yn)return;mt&&ee.log("[Tracing] Adding & adjusting spans using Performance API");const n=At(yn),r=t.getEntries(),{op:o,start_timestamp:i}=Lt(e);if(r.slice(Ip).forEach(s=>{const l=At(s.startTime),u=At(s.duration);if(!(e.op==="navigation"&&i&&n+l<i))switch(s.entryType){case"navigation":{YB(e,s,n);break}case"mark":case"paint":case"measure":{qB(e,s,l,u,n);const d=Gc(),c=s.startTime<d.firstHiddenTime;s.name==="first-paint"&&c&&(mt&&ee.log("[Measurements] Adding FP"),wt.fp={value:s.startTime,unit:"millisecond"}),s.name==="first-contentful-paint"&&c&&(mt&&ee.log("[Measurements] Adding FCP"),wt.fcp={value:s.startTime,unit:"millisecond"});break}case"resource":{KB(e,s,s.name,l,u,n);break}}}),Ip=Math.max(r.length-1,0),XB(e),o==="pageload"){ZB(wt),["fcp","fp","lcp"].forEach(l=>{if(!wt[l]||!i||n>=i)return;const u=wt[l].value,d=n+At(u),c=Math.abs((d-i)*1e3),p=c-u;mt&&ee.log(`[Measurements] Normalized ${l} from ${u} to ${c} (${p})`),wt[l].value=c});const s=wt["mark.fid"];s&&wt.fid&&(po(e,{description:"first input delay",endTimestamp:s.value+At(wt.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:s.value}),delete wt["mark.fid"]),"fcp"in wt||delete wt.cls,Object.keys(wt).forEach(l=>{wM(l,wt[l].value,wt[l].unit)}),JB(e)}zn=void 0,Wo=void 0,wt={}}function qB(e,t,n,r,o){const i=o+n,s=i+r;return po(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:i}),i}function YB(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{ji(e,t,r,n)}),ji(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),ji(e,t,"fetch",n,"cache","domainLookupStart"),ji(e,t,"domainLookup",n,"DNS"),GB(e,t,n)}function ji(e,t,n,r,o,i){const s=i?t[i]:t[`${n}End`],l=t[`${n}Start`];!l||!s||po(e,{op:"browser",origin:"auto.browser.browser.metrics",description:o||n,startTimestamp:r+At(l),endTimestamp:r+At(s)})}function GB(e,t,n){t.responseEnd&&(po(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+At(t.requestStart),endTimestamp:n+At(t.responseEnd)}),po(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+At(t.responseStart),endTimestamp:n+At(t.responseEnd)}))}function KB(e,t,n,r,o,i){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=ha(n),l={};Gl(l,t,"transferSize","http.response_transfer_size"),Gl(l,t,"encodedBodySize","http.response_content_length"),Gl(l,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(l["resource.render_blocking_status"]=t.renderBlockingStatus),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,d=u+o;po(e,{description:n.replace(Le.location.origin,""),endTimestamp:d,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:u,data:l})}function XB(e){const t=Le.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),Yl(n.rtt)&&(wt["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Yl(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),Yl(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function JB(e){zn&&(mt&&ee.log("[Measurements] Adding LCP Data"),zn.element&&e.setTag("lcp.element",zr(zn.element)),zn.id&&e.setTag("lcp.id",zn.id),zn.url&&e.setTag("lcp.url",zn.url.trim().slice(0,200)),e.setTag("lcp.size",zn.size)),Wo&&Wo.sources&&(mt&&ee.log("[Measurements] Adding CLS Data"),Wo.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,zr(t.node))))}function Gl(e,t,n,r){const o=t[n];o!=null&&o<AB&&(e[r]=o)}function ZB(e){const t=ol();if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(mt&&ee.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function QB(e,t,n){if(!Ea(t))return!1;let r;return e!==void 0&&typeof t.tracesSampler=="function"?r=t.tracesSampler({transactionContext:e,name:e.name,parentSampled:e.parentSampled,attributes:{...e.data,...e.attributes},location:Le.location}):e!==void 0&&e.sampled!==void 0?r=e.sampled:typeof t.tracesSampleRate<"u"?r=t.tracesSampleRate:r=1,Vv(r)?r===!0?n:r===!1?0:r*n:(mt&&ee.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}function eA(e,t,n,r,o="auto.http.browser"){if(!Ea()||!e.fetchData)return;const i=t(e.fetchData.url);if(e.endTimestamp&&i){const m=e.fetchData.__span;if(!m)return;const y=r[m];y&&(rA(y,e),delete r[m]);return}const s=dn(),l=lt(),{method:u,url:d}=e.fetchData,c=nA(d),p=c?ha(c).host:void 0,h=i?ks({name:`${u} ${d}`,onlyIfParent:!0,attributes:{url:d,type:"fetch","http.method":u,"http.url":c,"server.address":p,[kr]:o},op:"http.client"}):void 0;if(h&&(e.fetchData.__span=h.spanContext().spanId,r[h.spanContext().spanId]=h),n(e.fetchData.url)&&l){const m=e.args[0];e.args[1]=e.args[1]||{};const y=e.args[1];y.headers=tA(m,l,s,y,h)}return h}function tA(e,t,n,r,o){const i=o||n.getSpan(),s=Jr(),{traceId:l,spanId:u,sampled:d,dsc:c}={...s.getPropagationContext(),...n.getPropagationContext()},p=i?tl(i):Hc(l,u,d),h=bv(c||(i?co(i):rl(l,t,n))),m=r.headers||(typeof Request<"u"&&xr(e,Request)?e.headers:void 0);if(m)if(typeof Headers<"u"&&xr(m,Headers)){const y=new Headers(m);return y.append("sentry-trace",p),h&&y.append(Bu,h),y}else if(Array.isArray(m)){const y=[...m,["sentry-trace",p]];return h&&y.push([Bu,h]),y}else{const y="baggage"in m?m.baggage:void 0,w=[];return Array.isArray(y)?w.push(...y):y&&w.push(y),h&&w.push(h),{...m,"sentry-trace":p,baggage:w.length>0?w.join(","):void 0}}else return{"sentry-trace":p,baggage:h}}function nA(e){try{return new URL(e).href}catch{return}}function rA(e,t){if(t.response){qc(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("internal_error");e.end()}const Hu=["localhost",/^\/(?!\/)/],Uu={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Hu,tracePropagationTargets:Hu};function aA(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s}={traceFetch:Uu.traceFetch,traceXHR:Uu.traceXHR,...e},l=typeof i=="function"?i:c=>!0,u=c=>lA(c,r||o),d={};t&&Lc(c=>{const p=eA(c,l,u,d);if(p){const h=og(c.fetchData.url),m=h?ha(h).host:void 0;p.setAttributes({"http.url":h,"server.address":m})}s&&p&&Op(p)}),n&&Vc(c=>{const p=uA(c,l,u,d);s&&p&&Op(p)})}function oA(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function Op(e){const{url:t}=Lt(e).data||{};if(!t||typeof t!="string")return;const n=fo("resource",({entries:r})=>{r.forEach(o=>{oA(o)&&o.name.endsWith(t)&&(sA(o).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function iA(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 Hn(e=0){return((yn||performance.timeOrigin)+e)/1e3}function sA(e){const{name:t,version:n}=iA(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),yn?[...r,["http.request.redirect_start",Hn(e.redirectStart)],["http.request.fetch_start",Hn(e.fetchStart)],["http.request.domain_lookup_start",Hn(e.domainLookupStart)],["http.request.domain_lookup_end",Hn(e.domainLookupEnd)],["http.request.connect_start",Hn(e.connectStart)],["http.request.secure_connection_start",Hn(e.secureConnectionStart)],["http.request.connection_end",Hn(e.connectEnd)],["http.request.request_start",Hn(e.requestStart)],["http.request.response_start",Hn(e.responseStart)],["http.request.response_end",Hn(e.responseEnd)]]:r}function lA(e,t){return _o(e,t||Hu)}function uA(e,t,n,r){const o=e.xhr,i=o&&o[Lr];if(!Ea()||!o||o.__sentry_own_request__||!i)return;const s=t(i.url);if(e.endTimestamp&&s){const m=o.__sentry_xhr_span_id__;if(!m)return;const y=r[m];y&&i.status_code!==void 0&&(qc(y,i.status_code),y.end(),delete r[m]);return}const l=dn(),u=Jr(),d=og(i.url),c=d?ha(d).host:void 0,p=s?ks({name:`${i.method} ${i.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":i.method,"http.url":d,url:i.url,"server.address":c,[kr]:"auto.http.browser"},op:"http.client"}):void 0;p&&(o.__sentry_xhr_span_id__=p.spanContext().spanId,r[o.__sentry_xhr_span_id__]=p);const h=lt();if(o.setRequestHeader&&n(i.url)&&h){const{traceId:m,spanId:y,sampled:w,dsc:k}={...u.getPropagationContext(),...l.getPropagationContext()},_=p?tl(p):Hc(m,y,w),x=bv(k||(p?co(p):rl(m,h,l)));cA(o,_,x)}return p}function cA(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(Bu,n)}catch{}}function og(e){try{return new URL(e,Le.location.origin).href}catch{return}}function dA(e,t=!0,n=!0){if(!Le||!Le.location){mt&&ee.warn("Could not initialize routing instrumentation due to invalid location");return}let r=Le.location.href,o;t&&(o=e({name:Le.location.pathname,startTimestamp:yn?yn/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&Qs(({to:i,from:s})=>{if(s===void 0&&r&&r.indexOf(i)!==-1){r=void 0;return}s!==i&&(r=void 0,o&&(mt&&ee.log(`[Tracing] Finishing current transaction with op: ${o.op}`),o.end()),o=e({name:Le.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const fA="BrowserTracing",pA={...ns,markBackgroundTransactions:!0,routingInstrumentation:dA,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...Uu},Np=10;class hA{constructor(t){this.name=fA,this._hasSetTracePropagationTargets=!1,_M(),mt&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...pA,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=RB(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&VB(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&$B(),this.options._experiments.enableInteractions&&LB(),this._latestRoute={name:void 0,context:void 0}}setupOnce(t,n){this._getCurrentHub=n;const o=n().getClient(),i=o&&o.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:l,startTransactionOnPageLoad:u,markBackgroundTransactions:d,traceFetch:c,traceXHR:p,shouldCreateSpanForRequest:h,enableHTTPTimings:m,_experiments:y}=this.options,w=i&&i.tracePropagationTargets,k=w||this.options.tracePropagationTargets;mt&&this._hasSetTracePropagationTargets&&w&&ee.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(_=>{const x=this._createRouteTransaction(_);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(x,_,n),x},u,l),d&&dB(),y.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),aA({traceFetch:c,traceXHR:p,tracePropagationTargets:k,shouldCreateSpanForRequest:h,enableHTTPTimings:m})}_createRouteTransaction(t){if(!this._getCurrentHub){mt&&ee.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:o,finalTimeout:i,heartbeatInterval:s}=this.options,l=t.op==="pageload";let u;if(l){const m=l?Dp("sentry-trace"):"",y=l?Dp("baggage"):void 0,{traceId:w,dsc:k,parentSpanId:_,sampled:x}=TD(m,y);u={traceId:w,parentSpanId:_,parentSampled:x,...t,metadata:{...t.metadata,dynamicSamplingContext:k},trimEnd:!0}}else u={trimEnd:!0,...t};const d=typeof r=="function"?r(u):u,c=d===void 0?{...u,sampled:!1}:d;c.metadata=c.name!==u.name?{...c.metadata,source:"custom"}:c.metadata,this._latestRoute.name=c.name,this._latestRoute.context=c,c.sampled===!1&&mt&&ee.log(`[Tracing] Will not send ${c.op} transaction because of beforeNavigate.`),mt&&ee.log(`[Tracing] Starting ${c.op} transaction on scope`);const{location:p}=Le,h=gp(n,c,o,i,!0,{location:p},s,l);return l&&Le.document&&(Le.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(Le.document.readyState)&&h.sendAutoFinishSignal()}),["interactive","complete"].includes(Le.document.readyState)&&h.sendAutoFinishSignal()),h.registerBeforeFinishCallback(m=>{this._collectWebVitals(),WB(m)}),h}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:o,heartbeatInterval:i}=this.options,s="ui.action.click",l=wa();if(l&&l.op&&["navigation","pageload"].includes(l.op)){mt&&ee.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){mt&&ee.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRoute.name){mt&&ee.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const u=this._getCurrentHub(),{location:d}=Le,c={name:this._latestRoute.name,op:s,trimEnd:!0,data:{[Vn]:this._latestRoute.context?mA(this._latestRoute.context):"url"}};t=gp(u,c,r,o,!0,{location:d},i)};["click"].forEach(r=>{Le.document&&addEventListener(r,n,{once:!1,capture:!0})})}_registerInpInteractionListener(){const t=({entries:n})=>{const r=lt(),o=r!==void 0&&r.getIntegrationByName!==void 0?r.getIntegrationByName("Replay"):void 0,i=o!==void 0?o.getReplayId():void 0,s=wa(),l=dn(),u=l!==void 0?l.getUser():void 0;n.forEach(d=>{if(vA(d)){const c=d.interactionId;if(c===void 0)return;const p=this._interactionIdToRouteNameMapping[c],h=d.duration,m=d.startTime,y=Object.keys(this._interactionIdToRouteNameMapping),w=y.length>0?y.reduce((k,_)=>this._interactionIdToRouteNameMapping[k].duration<this._interactionIdToRouteNameMapping[_].duration?k:_):void 0;if(d.entryType==="first-input"&&y.map(_=>this._interactionIdToRouteNameMapping[_]).some(_=>_.duration===h&&_.startTime===m)||!c)return;if(p)p.duration=Math.max(p.duration,h);else if(y.length<Np||w===void 0||h>this._interactionIdToRouteNameMapping[w].duration){const k=this._latestRoute.name,_=this._latestRoute.context;k&&_&&(w&&Object.keys(this._interactionIdToRouteNameMapping).length>=Np&&delete this._interactionIdToRouteNameMapping[w],this._interactionIdToRouteNameMapping[c]={routeName:k,duration:h,parentContext:_,user:u,activeTransaction:s,replayId:i,startTime:m})}}})};fo("event",t),fo("first-input",t)}}function Dp(e){const t=NN(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function mA(e){const t=e.attributes&&e.attributes[Vn],n=e.data&&e.data[Vn],r=e.metadata&&e.metadata.source;return t||n||r}function vA(e){return"duration"in e}const qe=Ge;let zu=0;function ig(){return zu>0}function gA(){zu++,setTimeout(()=>{zu--})}function ho(e,t={},n){if(typeof e!="function")return e;try{const o=e.__sentry_wrapped__;if(o)return o;if(Rc(e))return e}catch{return e}const r=function(){const o=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const i=o.map(s=>ho(s,t));return e.apply(this,i)}catch(i){throw gA(),JD(s=>{s.addEventProcessor(l=>(t.mechanism&&(xu(l,void 0,void 0),ii(l,t.mechanism)),l.extra={...l.extra,arguments:o},l)),vi(i)}),i}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}sv(r,e),ba(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const Sn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function sg(e,t){const n=Xc(e,t),r={type:t&&t.name,value:wA(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function yA(e,t,n,r){const o=lt(),i=o&&o.getOptions().normalizeDepth,s={exception:{values:[{type:Js(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:CA(t,{isUnhandledRejection:r})}]},extra:{__serialized__:vv(t,i)}};if(n){const l=Xc(e,n);l.length&&(s.exception.values[0].stacktrace={frames:l})}return s}function Kl(e,t){return{exception:{values:[sg(e,t)]}}}function Xc(e,t){const n=t.stacktrace||t.stack||"",r=_A(t);try{return e(n,r)}catch{}return[]}const bA=/Minified React error #\d+;/i;function _A(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(bA.test(e.message))return 1}return 0}function wA(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function kA(e,t,n,r){const o=n&&n.syntheticException||void 0,i=Jc(e,t,o,r);return ii(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),uo(i)}function SA(e,t,n="info",r,o){const i=r&&r.syntheticException||void 0,s=ju(e,t,i,o);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),uo(s)}function Jc(e,t,n,r,o){let i;if(Dc(t)&&t.error)return Kl(e,t.error);if(Wf(t)||wN(t)){const s=t;if("stack"in t)i=Kl(e,t);else{const l=s.name||(Wf(s)?"DOMError":"DOMException"),u=s.message?`${l}: ${s.message}`:l;i=ju(e,u,n,r),xu(i,u)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return ev(t)?Kl(e,t):lo(t)||Js(t)?(i=yA(e,t,n,o),ii(i,{synthetic:!0}),i):(i=ju(e,t,n,r),xu(i,`${t}`,void 0),ii(i,{synthetic:!0}),i)}function ju(e,t,n,r){const o={};if(r&&n){const i=Xc(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]})}if(Mc(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 CA(e,{isUnhandledRejection:t}){const n=VN(e),r=t?"promise rejection":"exception";return Dc(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Js(e)?`Event \`${TA(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function TA(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function EA(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:Sa(r)}},i=xA(e);return Xr(o,[i])}function xA(e){return[{type:"user_report"},e]}class IA extends $M{constructor(t){const n=qe.SENTRY_SDK_SOURCE||sD();JM(t,"browser",["browser"],n),super(t),t.sendClientReports&&qe.document&&qe.document.addEventListener("visibilitychange",()=>{qe.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return kA(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return SA(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Sn&&ee.warn("SDK not enabled, will not capture user feedback.");return}const n=EA(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){Sn&&ee.log("No outcomes to send");return}if(!this._dsn){Sn&&ee.log("No dsn provided, will not send outcomes");return}Sn&&ee.log("Sending outcomes:",t);const n=ND(t,this._options.tunnel&&Sa(this._dsn));this._sendEnvelope(n)}}let Lo;function PA(){if(Lo)return Lo;if(Nu(qe.fetch))return Lo=qe.fetch.bind(qe);const e=qe.document;let t=qe.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){Sn&&ee.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return Lo=t.bind(qe)}function OA(){Lo=void 0}function NA(e,t=PA()){let n=0,r=0;function o(i){const s=i.body.length;n+=s,r++;const l={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,l).then(u=>(n-=s,r--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return OA(),n-=s,r--,Fc(u)}}return jv(e,o)}const DA=4;function MA(e){function t(n){return new hn((r,o)=>{const i=new XMLHttpRequest;i.onerror=o,i.onreadystatechange=()=>{i.readyState===DA&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&i.setRequestHeader(s,e.headers[s]);i.send(n.body)})}return jv(e,t)}const il="?",BA=30,AA=40,RA=50;function Zc(e,t,n,r){const o={filename:e,function:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const $A=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,LA=/\((\S*)(?::(\d+))(?::(\d+))\)/,VA=e=>{const t=$A.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const i=LA.exec(t[2]);i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3])}const[r,o]=lg(t[1]||il,t[2]);return Zc(o,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},FA=[BA,VA],HA=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,UA=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,zA=e=>{const t=HA.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=UA.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]||il;return[o,r]=lg(o,r),Zc(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},jA=[RA,zA],WA=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,qA=e=>{const t=WA.exec(e);return t?Zc(t[2],t[1]||il,+t[3],t[4]?+t[4]:void 0):void 0},YA=[AA,qA],GA=[FA,jA,YA],KA=cv(...GA),lg=(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]:il,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Wi=1024,ug="Breadcrumbs",XA=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:ug,setupOnce(){},setup(n){t.console&&zN(QA(n)),t.dom&&fv(ZA(n,t.dom)),t.xhr&&Vc(eR(n)),t.fetch&&Lc(tR(n)),t.history&&Qs(nR(n)),t.sentry&&n.on&&n.on("beforeSendEvent",JA(n))}}},cg=XA;Pr(ug,cg);function JA(e){return function(n){lt()===e&&jr({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:$r(n)},{event:n})}}function ZA(e,t){return function(r){if(lt()!==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>Wi&&(Sn&&ee.warn(`\`dom.maxStringLength\` cannot exceed ${Wi}, but a value of ${l} was configured. Sentry will use ${Wi} instead.`),l=Wi),typeof s=="string"&&(s=[s]);try{const d=r.event,c=rR(d)?d.target:d;o=zr(c,{keyAttrs:s,maxStringLength:l}),i=av(c)}catch{o="<unknown>"}if(o.length===0)return;const u={category:`ui.${r.name}`,message:o};i&&(u.data={"ui.component_name":i}),jr(u,{event:r.event,name:r.name,global:r.global})}}function QA(e){return function(n){if(lt()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:gD(n.level),message:qf(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${qf(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;jr(r,{input:n.args,level:n.level})}}function eR(e){return function(n){if(lt()!==e)return;const{startTimestamp:r,endTimestamp:o}=n,i=n.xhr[Lr];if(!r||!o||!i)return;const{method:s,url:l,status_code:u,body:d}=i,c={method:s,url:l,status_code:u},p={xhr:n.xhr,input:d,startTimestamp:r,endTimestamp:o};jr({category:"xhr",data:c,type:"http"},p)}}function tR(e){return function(n){if(lt()!==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};jr({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};jr({category:"fetch",data:s,type:"http"},l)}}}function nR(e){return function(n){if(lt()!==e)return;let r=n.from,o=n.to;const i=ha(qe.location.href);let s=r?ha(r):void 0;const l=ha(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),jr({category:"navigation",data:{from:r,to:o}})}}function rR(e){return!!e&&!!e.target}const dg="Dedupe",aR=()=>{let e;return{name:dg,setupOnce(){},processEvent(t){if(t.type)return t;try{if(oR(t,e))return Sn&&ee.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},fg=aR;Pr(dg,fg);function oR(e,t){return t?!!(iR(e,t)||sR(e,t)):!1}function iR(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!hg(e,t)||!pg(e,t))}function sR(e,t){const n=Mp(t),r=Mp(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!hg(e,t)||!pg(e,t))}function pg(e,t){let n=Bp(e),r=Bp(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 hg(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 Mp(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Bp(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const mg="GlobalHandlers",lR=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:mg,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(uR(n),Ap("onerror")),t.onunhandledrejection&&(cR(n),Ap("onunhandledrejection"))}}},vg=lR;Pr(mg,vg);function uR(e){hv(t=>{const{stackParser:n,attachStacktrace:r}=yg();if(lt()!==e||ig())return;const{msg:o,url:i,line:s,column:l,error:u}=t,d=u===void 0&&ar(o)?pR(o,i,s,l):gg(Jc(n,u||o,void 0,r,!1),i,s,l);d.level="error",xv(d,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function cR(e){mv(t=>{const{stackParser:n,attachStacktrace:r}=yg();if(lt()!==e||ig())return;const o=dR(t),i=Bc(o)?fR(o):Jc(n,o,void 0,r,!0);i.level="error",xv(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function dR(e){if(Bc(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function fR(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function pR(e,t,n,r){const o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let i=Dc(e)?e.message:e,s="Error";const l=i.match(o);return l&&(s=l[1],i=l[2]),gg({exception:{values:[{type:s,value:i}]}},t,n,r)}function gg(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},l=s.stacktrace=s.stacktrace||{},u=l.frames=l.frames||[],d=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,p=ar(t)&&t.length>0?t:ON();return u.length===0&&u.push({colno:d,filename:p,function:"?",in_app:!0,lineno:c}),e}function Ap(e){Sn&&ee.log(`Global Handler attached: ${e}`)}function yg(){const e=lt();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const bg="HttpContext",hR=()=>({name:bg,setupOnce(){},preprocessEvent(e){if(!qe.navigator&&!qe.location&&!qe.document)return;const t=e.request&&e.request.url||qe.location&&qe.location.href,{referrer:n}=qe.document||{},{userAgent:r}=qe.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}}),_g=hR;Pr(bg,_g);const mR="cause",vR=5,wg="LinkedErrors",gR=(e={})=>{const t=e.limit||vR,n=e.key||mR;return{name:wg,setupOnce(){},preprocessEvent(r,o,i){const s=i.getOptions();EN(sg,s.stackParser,s.maxValueLength,n,t,r,o)}}},kg=gR;Pr(wg,kg);const yR=["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"],Sg="TryCatch",bR=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Sg,setupOnce(){t.setTimeout&&$t(qe,"setTimeout",Rp),t.setInterval&&$t(qe,"setInterval",Rp),t.requestAnimationFrame&&$t(qe,"requestAnimationFrame",_R),t.XMLHttpRequest&&"XMLHttpRequest"in qe&&$t(XMLHttpRequest.prototype,"send",wR);const n=t.eventTarget;n&&(Array.isArray(n)?n:yR).forEach(kR)}}},Cg=bR;Pr(Sg,Cg);function Rp(e){return function(...t){const n=t[0];return t[0]=ho(n,{mechanism:{data:{function:Ir(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function _R(e){return function(t){return e.apply(this,[ho(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Ir(e)},handled:!1,type:"instrument"}})])}}function wR(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&$t(n,o,function(i){const s={mechanism:{data:{function:o,handler:Ir(i)},handled:!1,type:"instrument"}},l=Rc(i);return l&&(s.mechanism.data.handler=Ir(l)),ho(i,s)})}),e.apply(this,t)}}function kR(e){const t=qe,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||($t(n,"addEventListener",function(r){return function(o,i,s){try{typeof i.handleEvent=="function"&&(i.handleEvent=ho(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ir(i),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[o,ho(i,{mechanism:{data:{function:"addEventListener",handler:Ir(i),target:e},handled:!1,type:"instrument"}}),s])}}),$t(n,"removeEventListener",function(r){return function(o,i,s){const l=i;try{const u=l&&l.__sentry_wrapped__;u&&r.call(this,o,u,s)}catch{}return r.call(this,o,l,s)}}))}const SR=[qv(),Gv(),Cg(),cg(),vg(),kg(),fg(),_g()];function Tg(e){return[...SR]}function CR(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=Tg()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),qe.SENTRY_RELEASE&&qe.SENTRY_RELEASE.id&&(e.release=qe.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:HN(e.stackParser||KA),integrations:NM(e),transport:e.transport||(pv()?NA:MA)};HM(IA,t),e.autoSessionTracking&&ER()}const TR=(e={},t=fn())=>{if(!qe.document){Sn&&ee.error("Global document not defined in showReportDialog call");return}const{client:n,scope:r}=t.getStackTop(),o=e.dsn||n&&n.getDsn();if(!o){Sn&&ee.error("DSN not configured for showReportDialog call");return}r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());const i=qe.document.createElement("script");i.async=!0,i.crossOrigin="anonymous",i.src=PM(o,e),e.onLoad&&(i.onload=e.onLoad);const{onClose:s}=e;if(s){const u=d=>{if(d.data==="__sentry_reportdialog_closed__")try{s()}finally{qe.removeEventListener("message",u)}};qe.addEventListener("message",u)}const l=qe.document.head||qe.document.body;l?l.appendChild(i):Sn&&ee.error("Not injecting report dialog. No injection point found in HTML")};function ER(){if(typeof qe.document>"u"){Sn&&ee.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}cp({ignoreDuration:!0}),dp(),Qs(({from:e,to:t})=>{e!==void 0&&e!==t&&(cp({ignoreDuration:!0}),dp())})}const ht=Ge,Qc="sentryReplaySession",xR="replay_event",ed="Unable to send Replay",IR=3e5,PR=9e5,OR=5e3,NR=5500,DR=6e4,MR=5e3,BR=3,$p=15e4,qi=5e3,AR=3e3,RR=300,td=2e7,$R=4999,LR=15e3,Lp=36e5;function VR(e,t){return e??t()}function Es(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 Bt;(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"})(Bt||(Bt={}));function FR(e){return e.nodeType===e.ELEMENT_NODE}function qo(e){const t=Es([e,"optionalAccess",n=>n.host]);return Es([t,"optionalAccess",n=>n.shadowRoot])===e}function Yo(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function HR(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}function UR(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 xs(e){try{const t=e.rules||e.cssRules;return t?HR(Array.from(t,Eg).join("")):null}catch{return null}}function Eg(e){let t;if(jR(e))try{t=xs(e.styleSheet)||UR(e)}catch{}else if(WR(e)&&e.selectorText.includes(":"))return zR(e.cssText);return t||e.cssText}function zR(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function jR(e){return"styleSheet"in e}function WR(e){return"selectorText"in e}class xg{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const n=Es([this,"access",r=>r.getMeta,"call",r=>r(t),"optionalAccess",r=>r.id]);return VR(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 qR(){return new xg}function sl({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 li({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function mo(e){return e.toLowerCase()}function Wu(e){return e.toUpperCase()}const Vp="__rrweb_original__";function YR(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=Vp in i?i[Vp]:i;if(new Uint32Array(s.call(t,r,o,Math.min(n,e.width-r),Math.min(n,e.height-o)).data.buffer).some(u=>u!==0))return!1}return!0}function nd(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?mo(t):null}function Is(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}let GR=1;const KR=new RegExp("[^a-z0-9-_:]"),ui=-2;function rd(){return GR++}function XR(e){if(e instanceof HTMLFormElement)return"form";const t=mo(e.tagName);return KR.test(t)?"div":t}function JR(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let Ba,Fp;const ZR=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,QR=/^(?:[a-z+]+:)?\/\//i,e3=/^www\..*/i,t3=/^(data:)([^,]*),(.*)/i;function Ps(e,t){return(e||"").replace(ZR,(n,r,o,i,s,l)=>{const u=o||s||l,d=r||i||"";if(!u)return n;if(QR.test(u)||e3.test(u))return`url(${d}${u}${d})`;if(t3.test(u))return`url(${d}${u}${d})`;if(u[0]==="/")return`url(${d}${JR(t)+u}${d})`;const c=t.split("/"),p=u.split("/");c.pop();for(const h of p)h!=="."&&(h===".."?c.pop():c.push(h));return`url(${d}${c.join("/")}${d})`})}const n3=/^[^ \t\n\r\u000c]+/,r3=/^[, \t\n\r\u000c]+/;function a3(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(r3),!(n>=t.length);){let i=r(n3);if(i.slice(-1)===",")i=Fa(e,i.substring(0,i.length-1)),o.push(i);else{let s="";i=Fa(e,i);let l=!1;for(;;){const u=t.charAt(n);if(u===""){o.push((i+s).trim());break}else if(l)u===")"&&(l=!1);else if(u===","){n+=1,o.push((i+s).trim());break}else u==="("&&(l=!0);s+=u,n+=1}}}return o.join(", ")}function Fa(e,t){if(!t||t.trim()==="")return t;const n=e.createElement("a");return n.href=t,n.href}function o3(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function ad(){const e=document.createElement("a");return e.href="",e.href}function Ig(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")?Fa(e,r):n==="srcset"?a3(e,r):n==="style"?Ps(r,ad()):t==="object"&&n==="data"?Fa(e,r):typeof i=="function"?i(n,r,o):r)}function Pg(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function i3(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 s3(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function ua(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:ua(e.parentNode,t,n,r+1)}function Ha(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(s3(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function vo(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,u=-1;if(i){if(u=ua(s,Ha(r,o)),u<0)return!0;l=ua(s,Ha(t,n),u>=0?u:1/0)}else{if(l=ua(s,Ha(t,n)),l<0)return!1;u=ua(s,Ha(r,o),l>=0?l:1/0)}return l>=0?u>=0?l<=u:!0:u>=0?!1:!!i}catch{}return!!i}function l3(e,t,n){const r=e.contentWindow;if(!r)return;let o=!1,i;try{i=r.document.readyState}catch{return}if(i!=="complete"){const l=setTimeout(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{clearTimeout(l),o=!0,t()});return}const s="about:blank";if(r.location.href!==s||e.src===s||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function u3(e,t,n){let r=!1,o;try{o=e.sheet}catch{return}if(o)return;const i=setTimeout(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{clearTimeout(i),r=!0,t()})}function c3(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskAttributeFn:u,maskTextClass:d,unmaskTextClass:c,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:y={},maskTextFn:w,maskInputFn:k,dataURLOptions:_={},inlineImages:x,recordCanvas:S,keepIframeSrcFn:b,newlyAddedElement:N=!1}=t,T=d3(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Bt.Document,childNodes:[],compatMode:e.compatMode}:{type:Bt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Bt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:T};case e.ELEMENT_NODE:return p3(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:m,maskAttributeFn:u,maskInputOptions:y,maskInputFn:k,dataURLOptions:_,inlineImages:x,recordCanvas:S,keepIframeSrcFn:b,newlyAddedElement:N,rootId:T,maskAllText:l,maskTextClass:d,unmaskTextClass:c,maskTextSelector:p,unmaskTextSelector:h});case e.TEXT_NODE:return f3(e,{maskAllText:l,maskTextClass:d,unmaskTextClass:c,maskTextSelector:p,unmaskTextSelector:h,maskTextFn:w,maskInputOptions:y,maskInputFn:k,rootId:T});case e.CDATA_SECTION_NODE:return{type:Bt.CDATA,textContent:"",rootId:T};case e.COMMENT_NODE:return{type:Bt.Comment,textContent:e.textContent||"",rootId:T};default:return!1}}function d3(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function f3(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:l,maskInputOptions:u,maskInputFn:d,rootId:c}=t,p=e.parentNode&&e.parentNode.tagName;let h=e.textContent;const m=p==="STYLE"?!0:void 0,y=p==="SCRIPT"?!0:void 0,w=p==="TEXTAREA"?!0:void 0;if(m&&h){try{e.nextSibling||e.previousSibling||Es([e,"access",_=>_.parentNode,"access",_=>_.sheet,"optionalAccess",_=>_.cssRules])&&(h=xs(e.parentNode.sheet))}catch(_){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${_}`,e)}h=Ps(h,ad())}y&&(h="SCRIPT_PLACEHOLDER");const k=vo(e,r,i,o,s,n);if(!m&&!y&&!w&&h&&k&&(h=l?l(h):h.replace(/[\S]/g,"*")),w&&h&&(u.textarea||k)&&(h=d?d(h,e.parentNode):h.replace(/[\S]/g,"*")),p==="OPTION"&&h){const _=sl({type:null,tagName:p,maskInputOptions:u});h=li({isMasked:vo(e,r,i,o,s,_),element:e,value:h,maskInputFn:d})}return{type:Bt.Text,textContent:h||"",isStyle:m,rootId:c}}function p3(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:l={},maskAttributeFn:u,maskInputFn:d,dataURLOptions:c={},inlineImages:p,recordCanvas:h,keepIframeSrcFn:m,newlyAddedElement:y=!1,rootId:w,maskAllText:k,maskTextClass:_,unmaskTextClass:x,maskTextSelector:S,unmaskTextSelector:b}=t,N=i3(e,r,o,i),T=XR(e);let I={};const $=e.attributes.length;for(let j=0;j<$;j++){const M=e.attributes[j];M.name&&!Pg(T,M.name,M.value)&&(I[M.name]=Ig(n,T,mo(M.name),M.value,e,u))}if(T==="link"&&s){const j=Array.from(n.styleSheets).find(D=>D.href===e.href);let M=null;j&&(M=xs(j)),M&&(delete I.rel,delete I.href,I._cssText=Ps(M,j.href))}if(T==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const j=xs(e.sheet);j&&(I._cssText=Ps(j,ad()))}if(T==="input"||T==="textarea"||T==="select"||T==="option"){const j=e,M=nd(j),D=Is(j,Wu(T),M),R=j.checked;if(M!=="submit"&&M!=="button"&&D){const K=vo(j,_,S,x,b,sl({type:M,tagName:Wu(T),maskInputOptions:l}));I.value=li({isMasked:K,element:j,value:D,maskInputFn:d})}R&&(I.checked=R)}if(T==="option"&&(e.selected&&!l.select?I.selected=!0:delete I.selected),T==="canvas"&&h){if(e.__context==="2d")YR(e)||(I.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){const j=e.toDataURL(c.type,c.quality),M=document.createElement("canvas");M.width=e.width,M.height=e.height;const D=M.toDataURL(c.type,c.quality);j!==D&&(I.rr_dataURL=j)}}if(T==="img"&&p){Ba||(Ba=n.createElement("canvas"),Fp=Ba.getContext("2d"));const j=e,M=j.crossOrigin;j.crossOrigin="anonymous";const D=()=>{j.removeEventListener("load",D);try{Ba.width=j.naturalWidth,Ba.height=j.naturalHeight,Fp.drawImage(j,0,0),I.rr_dataURL=Ba.toDataURL(c.type,c.quality)}catch(R){console.warn(`Cannot inline img src=${j.currentSrc}! Error: ${R}`)}M?I.crossOrigin=M:j.removeAttribute("crossorigin")};j.complete&&j.naturalWidth!==0?D():j.addEventListener("load",D)}if((T==="audio"||T==="video")&&(I.rr_mediaState=e.paused?"paused":"played",I.rr_mediaCurrentTime=e.currentTime),y||(e.scrollLeft&&(I.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(I.rr_scrollTop=e.scrollTop)),N){const{width:j,height:M}=e.getBoundingClientRect();I={class:I.class,rr_width:`${j}px`,rr_height:`${M}px`}}T==="iframe"&&!m(I.src)&&(e.contentDocument||(I.rr_src=I.src),delete I.src);let W;try{customElements.get(T)&&(W=!0)}catch{}return{type:Bt.Element,tagName:T,attributes:I,childNodes:[],isSVG:o3(e)||void 0,needBlock:N,rootId:w,isCustom:W}}function ft(e){return e==null?"":e.toLowerCase()}function h3(e,t){if(t.comment&&e.type===Bt.Comment)return!0;if(e.type===Bt.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ft(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ft(e.attributes.name)==="application-name"||ft(e.attributes.rel)==="icon"||ft(e.attributes.rel)==="apple-touch-icon"||ft(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&ft(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ft(e.attributes.property).match(/^(og|twitter|fb):/)||ft(e.attributes.name).match(/^(og|twitter):/)||ft(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(ft(e.attributes.name)==="robots"||ft(e.attributes.name)==="googlebot"||ft(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(ft(e.attributes.name)==="author"||ft(e.attributes.name)==="generator"||ft(e.attributes.name)==="framework"||ft(e.attributes.name)==="publisher"||ft(e.attributes.name)==="progid"||ft(e.attributes.property).match(/^article:/)||ft(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(ft(e.attributes.name)==="google-site-verification"||ft(e.attributes.name)==="yandex-verification"||ft(e.attributes.name)==="csrf-token"||ft(e.attributes.name)==="p:domain_verify"||ft(e.attributes.name)==="verify-v1"||ft(e.attributes.name)==="verification"||ft(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ua(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:c,unmaskTextSelector:p,skipChild:h=!1,inlineStylesheet:m=!0,maskInputOptions:y={},maskAttributeFn:w,maskTextFn:k,maskInputFn:_,slimDOMOptions:x,dataURLOptions:S={},inlineImages:b=!1,recordCanvas:N=!1,onSerialize:T,onIframeLoad:I,iframeLoadTimeout:$=5e3,onStylesheetLoad:W,stylesheetLoadTimeout:j=5e3,keepIframeSrcFn:M=()=>!1,newlyAddedElement:D=!1}=t;let{preserveWhiteSpace:R=!0}=t;const K=c3(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:l,unblockSelector:s,maskTextClass:u,unmaskTextClass:d,maskTextSelector:c,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:y,maskAttributeFn:w,maskTextFn:k,maskInputFn:_,dataURLOptions:S,inlineImages:b,recordCanvas:N,keepIframeSrcFn:M,newlyAddedElement:D});if(!K)return console.warn(e,"not serialized"),null;let G;r.hasNode(e)?G=r.getId(e):h3(K,x)||!R&&K.type===Bt.Text&&!K.isStyle&&!K.textContent.replace(/^\s+|\s+$/gm,"").length?G=ui:G=rd();const Y=Object.assign(K,{id:G});if(r.add(e,Y),G===ui)return null;T&&T(e);let z=!h;if(Y.type===Bt.Element){z=z&&!Y.needBlock,delete Y.needBlock;const H=e.shadowRoot;H&&Yo(H)&&(Y.isShadowHost=!0)}if((Y.type===Bt.Document||Y.type===Bt.Element)&&z){x.headWhitespace&&Y.type===Bt.Element&&Y.tagName==="head"&&(R=!1);const H={doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:l,unblockSelector:s,maskTextClass:u,unmaskTextClass:d,maskTextSelector:c,unmaskTextSelector:p,skipChild:h,inlineStylesheet:m,maskInputOptions:y,maskAttributeFn:w,maskTextFn:k,maskInputFn:_,slimDOMOptions:x,dataURLOptions:S,inlineImages:b,recordCanvas:N,preserveWhiteSpace:R,onSerialize:T,onIframeLoad:I,iframeLoadTimeout:$,onStylesheetLoad:W,stylesheetLoadTimeout:j,keepIframeSrcFn:M};for(const C of Array.from(e.childNodes)){const U=Ua(C,H);U&&Y.childNodes.push(U)}if(FR(e)&&e.shadowRoot)for(const C of Array.from(e.shadowRoot.childNodes)){const U=Ua(C,H);U&&(Yo(e.shadowRoot)&&(U.isShadow=!0),Y.childNodes.push(U))}}return e.parentNode&&qo(e.parentNode)&&Yo(e.parentNode)&&(Y.isShadow=!0),Y.type===Bt.Element&&Y.tagName==="iframe"&&l3(e,()=>{const H=e.contentDocument;if(H&&I){const C=Ua(H,{doc:H,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:c,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:m,maskInputOptions:y,maskAttributeFn:w,maskTextFn:k,maskInputFn:_,slimDOMOptions:x,dataURLOptions:S,inlineImages:b,recordCanvas:N,preserveWhiteSpace:R,onSerialize:T,onIframeLoad:I,iframeLoadTimeout:$,onStylesheetLoad:W,stylesheetLoadTimeout:j,keepIframeSrcFn:M});C&&I(e,C)}},$),Y.type===Bt.Element&&Y.tagName==="link"&&Y.attributes.rel==="stylesheet"&&u3(e,()=>{if(W){const H=Ua(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:c,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:m,maskInputOptions:y,maskAttributeFn:w,maskTextFn:k,maskInputFn:_,slimDOMOptions:x,dataURLOptions:S,inlineImages:b,recordCanvas:N,preserveWhiteSpace:R,onSerialize:T,onIframeLoad:I,iframeLoadTimeout:$,onStylesheetLoad:W,stylesheetLoadTimeout:j,keepIframeSrcFn:M});H&&W(e,H)}},j),Y}function m3(e,t){const{mirror:n=new xg,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:l="rr-mask",unmaskTextClass:u=null,maskTextSelector:d=null,unmaskTextSelector:c=null,inlineStylesheet:p=!0,inlineImages:h=!1,recordCanvas:m=!1,maskAllInputs:y=!1,maskAttributeFn:w,maskTextFn:k,maskInputFn:_,slimDOM:x=!1,dataURLOptions:S,preserveWhiteSpace:b,onSerialize:N,onIframeLoad:T,iframeLoadTimeout:I,onStylesheetLoad:$,stylesheetLoadTimeout:W,keepIframeSrcFn:j=()=>!1}=t||{};return Ua(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:p,maskInputOptions:y===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:y===!1?{}:y,maskAttributeFn:w,maskTextFn:k,maskInputFn:_,slimDOMOptions:x===!0||x==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:x==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:x===!1?{}:x,dataURLOptions:S,inlineImages:h,recordCanvas:m,preserveWhiteSpace:b,onSerialize:N,onIframeLoad:T,iframeLoadTimeout:I,onStylesheetLoad:$,stylesheetLoadTimeout:W,keepIframeSrcFn:j,newlyAddedElement:!1})}function Mr(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 nn(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Ra=`Please stop import mirror directly. Instead of that,\r
|
|
103
91
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
104
|
-
or you can use record.mirror to access the mirror instance during recording.`;let yf={map:{},getId(){return console.error(sa),-1},getNode(){return console.error(sa),null},removeNodeFromMap(){console.error(sa)},has(){return console.error(sa),!1},reset(){console.error(sa)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(yf=new Proxy(yf,{get(e,t,n){return t==="map"&&console.error(sa),Reflect.get(e,t,n)}}));function Co(e,t,n={}){let r=null,o=0;return function(...i){const s=Date.now();!o&&n.leading===!1&&(o=s);const l=t-(s-o),u=this;l<=0||l>t?(r&&(clearTimeout(r),r=null),o=s,e.apply(u,i)):!r&&n.trailing!==!1&&(r=setTimeout(()=>{o=n.leading===!1?0:Date.now(),r=null,e.apply(u,i)},l))}}function Cm(e,t,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(s){setTimeout(()=>{n.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>Cm(e,t,i||{},!0)}function ec(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}let Di=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Di=()=>new Date().getTime());function Tm(e){var t,n,r,o,i,s;const l=e.document;return{left:l.scrollingElement?l.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:(l==null?void 0:l.documentElement.scrollLeft)||((n=(t=l==null?void 0:l.body)===null||t===void 0?void 0:t.parentElement)===null||n===void 0?void 0:n.scrollLeft)||((r=l==null?void 0:l.body)===null||r===void 0?void 0:r.scrollLeft)||0,top:l.scrollingElement?l.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(l==null?void 0:l.documentElement.scrollTop)||((i=(o=l==null?void 0:l.body)===null||o===void 0?void 0:o.parentElement)===null||i===void 0?void 0:i.scrollTop)||((s=l==null?void 0:l.body)===null||s===void 0?void 0:s.scrollTop)||0}}function Em(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function xm(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Tn(e,t,n,r,o){if(!e)return!1;const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!i)return!1;const s=da(t,n);if(!o){const c=r&&i.matches(r);return s(i)&&!c}const l=Hr(i,s);let u=-1;return l<0?!1:(r&&(u=Hr(i,da(null,r))),l>-1&&u<0?!0:l<u)}function vB(e,t){return t.getId(e)!==-1}function tl(e,t){return t.getId(e)===So}function Pm(e,t){if(ao(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Pm(e.parentNode,t):!0:!0}function Gl(e){return!!e.changedTouches}function gB(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function Im(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Dm(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Kl(e){return!!(e!=null&&e.shadowRoot)}class yB{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){var n;return(n=this.styleIDMap.get(t))!==null&&n!==void 0?n:-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Nm(e){var t,n;let r=null;return((n=(t=e.getRootNode)===null||t===void 0?void 0:t.call(e))===null||n===void 0?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(r=e.getRootNode().host),r}function bB(e){let t=e,n;for(;n=Nm(t);)t=n;return t}function _B(e){const t=e.ownerDocument;if(!t)return!1;const n=bB(e);return t.contains(n)}function Om(e){const t=e.ownerDocument;return t?t.contains(e)||_B(e):!1}var He=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(He||{}),Fe=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Fe||{}),Jt=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Jt||{}),rr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(rr||{});function bf(e){return"__ln"in e}class wB{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=(n==null?void 0:n.next)||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&bf(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&bf(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const _f=(e,t)=>`${e}@${t}`;class kB{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new wB,o=u=>{let c=u,f=So;for(;f===So;)c=c&&c.nextSibling,f=c&&this.mirror.getId(c);return f},i=u=>{if(!u.parentNode||!Om(u))return;const c=ao(u.parentNode)?this.mirror.getId(Nm(u)):this.mirror.getId(u.parentNode),f=o(u);if(c===-1||f===-1)return r.addNode(u);const p=fa(u,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:h=>{Im(h,this.mirror)&&this.iframeManager.addIframe(h),Dm(h,this.mirror)&&this.stylesheetManager.trackLinkElement(h),Kl(u)&&this.shadowDomManager.addShadowRoot(u.shadowRoot,this.doc)},onIframeLoad:(h,m)=>{this.iframeManager.attachIframe(h,m),this.shadowDomManager.observeAttachShadow(h)},onStylesheetLoad:(h,m)=>{this.stylesheetManager.attachLinkElement(h,m)}});p&&(t.push({parentId:c,nextId:f,node:p}),n.add(p.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const u of this.movedSet)wf(this.removes,u,this.mirror)&&!this.movedSet.has(u.parentNode)||i(u);for(const u of this.addedSet)!kf(this.droppedSet,u)&&!wf(this.removes,u,this.mirror)||kf(this.movedSet,u)?i(u):this.droppedSet.add(u);let s=null;for(;r.length;){let u=null;if(s){const c=this.mirror.getId(s.value.parentNode),f=o(s.value);c!==-1&&f!==-1&&(u=s)}if(!u){let c=r.tail;for(;c;){const f=c;if(c=c.previous,f){const p=this.mirror.getId(f.value.parentNode);if(o(f.value)===-1)continue;if(p!==-1){u=f;break}else{const m=f.value;if(m.parentNode&&m.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const y=m.parentNode.host;if(this.mirror.getId(y)!==-1){u=f;break}}}}}}if(!u){for(;r.head;)r.removeNode(r.head.value);break}s=u.previous,r.removeNode(u.value),i(u.value)}const l={texts:this.texts.map(u=>({id:this.mirror.getId(u.node),value:u.value})).filter(u=>!n.has(u.id)).filter(u=>this.mirror.has(u.id)),attributes:this.attributes.map(u=>{const{attributes:c}=u;if(typeof c.style=="string"){const f=JSON.stringify(u.styleDiff),p=JSON.stringify(u._unchangedStyles);f.length<c.style.length&&(f+p).split("var(").length===c.style.split("var(").length&&(c.style=u.styleDiff)}return{id:this.mirror.getId(u.node),attributes:c}}).filter(u=>!n.has(u.id)).filter(u=>this.mirror.has(u.id)),removes:this.removes,adds:t};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.adds.length||(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(l))},this.processMutation=t=>{if(tl(t.target,this.mirror))return;let n;try{n=document.implementation.createHTMLDocument()}catch{n=this.doc}switch(t.type){case"characterData":{const r=t.target.textContent;!Tn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:Na(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&r?this.maskTextFn?this.maskTextFn(r):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{const r=t.target;let o=t.attributeName,i=t.target.getAttribute(o);if(o==="value"){const l=Ju(r),u=r.tagName;i=Pi(r,u,l);const c=ps({maskInputOptions:this.maskInputOptions,tagName:u,type:l}),f=Na(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);i=ko({isMasked:f,element:r,value:i,maskInputFn:this.maskInputFn})}if(Tn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===t.oldValue)return;let s=this.attributes.find(l=>l.node===t.target);if(r.tagName==="IFRAME"&&o==="src"&&!this.keepIframeSrcFn(i))if(!r.contentDocument)o="rr_src";else return;if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s)),o==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Sm(r.tagName,o)&&(s.attributes[o]=km(this.doc,Da(r.tagName),Da(o),i,r,this.maskAttributeFn),o==="style")){const l=n.createElement("span");t.oldValue&&l.setAttribute("style",t.oldValue);for(const u of Array.from(r.style)){const c=r.style.getPropertyValue(u),f=r.style.getPropertyPriority(u);c!==l.style.getPropertyValue(u)||f!==l.style.getPropertyPriority(u)?f===""?s.styleDiff[u]=c:s.styleDiff[u]=[c,f]:s._unchangedStyles[u]=[c,f]}for(const u of Array.from(l.style))r.style.getPropertyValue(u)===""&&(s.styleDiff[u]=!1)}break}case"childList":{if(Tn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{const o=this.mirror.getId(r),i=ao(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Tn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||tl(r,this.mirror)||!vB(r,this.mirror)||(this.addedSet.has(r)?(Xl(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&o===-1||Pm(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[_f(o,i)]?Xl(this.movedSet,r):this.removes.push({parentId:i,id:o,isShadow:ao(t.target)&&oo(t.target)?!0:void 0})),this.mapRemoves.push(r))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(tl(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[_f(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Tn(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),Kl(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Xl(e,t){e.delete(t),t.childNodes.forEach(n=>Xl(e,n))}function wf(e,t,n){return e.length===0?!1:Bm(e,t,n)}function Bm(e,t,n){const{parentNode:r}=t;if(!r)return!1;const o=n.getId(r);return e.some(i=>i.id===o)?!0:Bm(e,r,n)}function kf(e,t){return e.size===0?!1:Mm(e,t)}function Mm(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Mm(e,n):!1}let so;function SB(e){so=e}function CB(){so=void 0}const Ye=e=>so?(...n)=>{try{return e(...n)}catch(r){if(so&&so(r)===!0)return()=>{};throw r}}:e,pa=[];function Oo(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Rm(e,t){var n,r;const o=new kB;pa.push(o),o.init(e);let i=window.MutationObserver||window.__rrMutationObserver;const s=(r=(n=window==null?void 0:window.Zone)===null||n===void 0?void 0:n.__symbol__)===null||r===void 0?void 0:r.call(n,"MutationObserver");s&&window[s]&&(i=window[s]);const l=new i(Ye(u=>{e.onMutation&&e.onMutation(u)===!1||o.processMutations.bind(o)(u)}));return l.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),l}function TB({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const o=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let s=[],l;const u=Co(Ye(p=>{const h=Date.now()-l;e(s.map(m=>(m.timeOffset-=h,m)),p),s=[],l=null}),i),c=Ye(Co(Ye(p=>{const h=Oo(p),{clientX:m,clientY:y}=Gl(p)?p.changedTouches[0]:p;l||(l=Di()),s.push({x:m,y,id:r.getId(h),timeOffset:Di()-l}),u(typeof DragEvent<"u"&&p instanceof DragEvent?Fe.Drag:p instanceof MouseEvent?Fe.MouseMove:Fe.TouchMove)}),o,{trailing:!1})),f=[tn("mousemove",c,n),tn("touchmove",c,n),tn("drag",c,n)];return Ye(()=>{f.forEach(p=>p())})}function EB({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const l=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[];let c=null;const f=p=>h=>{const m=Oo(h);if(Tn(m,r,o,i,!0))return;let y=null,k=p;if("pointerType"in h){switch(h.pointerType){case"mouse":y=rr.Mouse;break;case"touch":y=rr.Touch;break;case"pen":y=rr.Pen;break}y===rr.Touch?Jt[p]===Jt.MouseDown?k="TouchStart":Jt[p]===Jt.MouseUp&&(k="TouchEnd"):rr.Pen}else Gl(h)&&(y=rr.Touch);y!==null?(c=y,(k.startsWith("Touch")&&y===rr.Touch||k.startsWith("Mouse")&&y===rr.Mouse)&&(y=null)):Jt[p]===Jt.Click&&(y=c,c=null);const b=Gl(h)?h.changedTouches[0]:h;if(!b)return;const w=n.getId(m),{clientX:T,clientY:O}=b;Ye(e)(Object.assign({type:Jt[k],id:w,x:T,y:O},y!==null&&{pointerType:y}))};return Object.keys(Jt).filter(p=>Number.isNaN(Number(p))&&!p.endsWith("_Departed")&&l[p]!==!1).forEach(p=>{let h=Da(p);const m=f(p);if(window.PointerEvent)switch(Jt[p]){case Jt.MouseDown:case Jt.MouseUp:h=h.replace("mouse","pointer");break;case Jt.TouchStart:case Jt.TouchEnd:return}u.push(tn(h,m,t))}),Ye(()=>{u.forEach(p=>p())})}function Am({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){const l=Ye(Co(Ye(u=>{const c=Oo(u);if(!c||Tn(c,r,o,i,!0))return;const f=n.getId(c);if(c===t&&t.defaultView){const p=Tm(t.defaultView);e({id:f,x:p.left,y:p.top})}else e({id:f,x:c.scrollLeft,y:c.scrollTop})}),s.scroll||100));return tn("scroll",l,t)}function xB({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const o=Ye(Co(Ye(()=>{const i=Em(),s=xm();(n!==i||r!==s)&&(e({width:Number(s),height:Number(i)}),n=i,r=s)}),200));return tn("resize",o,t)}const PB=["INPUT","TEXTAREA","SELECT"],Sf=new WeakMap;function IB({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:l,maskInputOptions:u,maskInputFn:c,sampling:f,userTriggeredOnInput:p,maskTextClass:h,unmaskTextClass:m,maskTextSelector:y,unmaskTextSelector:k}){function b(I){let F=Oo(I);const q=I.isTrusted,W=F&&Yl(F.tagName);if(W==="OPTION"&&(F=F.parentElement),!F||!W||PB.indexOf(W)<0||Tn(F,r,o,i,!0))return;const M=F;if(M.classList.contains(s)||l&&M.matches(l))return;const D=Ju(F);let $=Pi(M,W,D),Y=!1;const X=ps({maskInputOptions:u,tagName:W,type:D}),K=Na(F,h,y,m,k,X);(D==="radio"||D==="checkbox")&&(Y=F.checked),$=ko({isMasked:K,element:F,value:$,maskInputFn:c}),w(F,p?{text:$,isChecked:Y,userTriggered:q}:{text:$,isChecked:Y});const j=F.name;D==="radio"&&j&&Y&&t.querySelectorAll(`input[type="radio"][name="${j}"]`).forEach(U=>{if(U!==F){const S=ko({isMasked:K,element:U,value:Pi(U,W,D),maskInputFn:c});w(U,p?{text:S,isChecked:!Y,userTriggered:!1}:{text:S,isChecked:!Y})}})}function w(I,F){const q=Sf.get(I);if(!q||q.text!==F.text||q.isChecked!==F.isChecked){Sf.set(I,F);const W=n.getId(I);Ye(e)(Object.assign(Object.assign({},F),{id:W}))}}const O=(f.input==="last"?["change"]:["input","change"]).map(I=>tn(I,Ye(b),t)),_=t.defaultView;if(!_)return()=>{O.forEach(I=>I())};const B=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),C=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return B&&B.set&&O.push(...C.map(I=>Cm(I[0],I[1],{set(){Ye(b)({target:this,isTrusted:!1})}},!1,_))),Ye(()=>{O.forEach(I=>I())})}function Ni(e){const t=[];function n(r,o){if(Zo("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Zo("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Zo("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Zo("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const s=Array.from(r.parentRule.cssRules).indexOf(r);o.unshift(s)}else if(r.parentStyleSheet){const s=Array.from(r.parentStyleSheet.cssRules).indexOf(r);o.unshift(s)}return o}return n(e,t)}function mr(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function DB({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Ye((f,p,h)=>{const[m,y]=h,{id:k,styleId:b}=mr(p,t,n.styleMirror);return(k&&k!==-1||b&&b!==-1)&&e({id:k,styleId:b,adds:[{rule:m,index:y}]}),f.apply(p,h)})});const i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:Ye((f,p,h)=>{const[m]=h,{id:y,styleId:k}=mr(p,t,n.styleMirror);return(y&&y!==-1||k&&k!==-1)&&e({id:y,styleId:k,removes:[{index:m}]}),f.apply(p,h)})});let s;r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:Ye((f,p,h)=>{const[m]=h,{id:y,styleId:k}=mr(p,t,n.styleMirror);return(y&&y!==-1||k&&k!==-1)&&e({id:y,styleId:k,replace:m}),f.apply(p,h)})}));let l;r.CSSStyleSheet.prototype.replaceSync&&(l=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:Ye((f,p,h)=>{const[m]=h,{id:y,styleId:k}=mr(p,t,n.styleMirror);return(y&&y!==-1||k&&k!==-1)&&e({id:y,styleId:k,replaceSync:m}),f.apply(p,h)})}));const u={};ei("CSSGroupingRule")?u.CSSGroupingRule=r.CSSGroupingRule:(ei("CSSMediaRule")&&(u.CSSMediaRule=r.CSSMediaRule),ei("CSSConditionRule")&&(u.CSSConditionRule=r.CSSConditionRule),ei("CSSSupportsRule")&&(u.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(u).forEach(([f,p])=>{c[f]={insertRule:p.prototype.insertRule,deleteRule:p.prototype.deleteRule},p.prototype.insertRule=new Proxy(c[f].insertRule,{apply:Ye((h,m,y)=>{const[k,b]=y,{id:w,styleId:T}=mr(m.parentStyleSheet,t,n.styleMirror);return(w&&w!==-1||T&&T!==-1)&&e({id:w,styleId:T,adds:[{rule:k,index:[...Ni(m),b||0]}]}),h.apply(m,y)})}),p.prototype.deleteRule=new Proxy(c[f].deleteRule,{apply:Ye((h,m,y)=>{const[k]=y,{id:b,styleId:w}=mr(m.parentStyleSheet,t,n.styleMirror);return(b&&b!==-1||w&&w!==-1)&&e({id:b,styleId:w,removes:[{index:[...Ni(m),k]}]}),h.apply(m,y)})})}),Ye(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,s&&(r.CSSStyleSheet.prototype.replace=s),l&&(r.CSSStyleSheet.prototype.replaceSync=l),Object.entries(u).forEach(([f,p])=>{p.prototype.insertRule=c[f].insertRule,p.prototype.deleteRule=c[f].deleteRule})})}function $m({mirror:e,stylesheetManager:t},n){var r,o,i;let s=null;n.nodeName==="#document"?s=e.getId(n):s=e.getId(n.host);const l=n.nodeName==="#document"?(r=n.defaultView)===null||r===void 0?void 0:r.Document:(i=(o=n.ownerDocument)===null||o===void 0?void 0:o.defaultView)===null||i===void 0?void 0:i.ShadowRoot,u=l!=null&&l.prototype?Object.getOwnPropertyDescriptor(l==null?void 0:l.prototype,"adoptedStyleSheets"):void 0;return s===null||s===-1||!l||!u?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get(){var c;return(c=u.get)===null||c===void 0?void 0:c.call(this)},set(c){var f;const p=(f=u.set)===null||f===void 0?void 0:f.call(this,c);if(s!==null&&s!==-1)try{t.adoptStyleSheets(c,s)}catch{}return p}}),Ye(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})}))}function NB({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:Ye((l,u,c)=>{var f;const[p,h,m]=c;if(n.has(p))return i.apply(u,[p,h,m]);const{id:y,styleId:k}=mr((f=u.parentRule)===null||f===void 0?void 0:f.parentStyleSheet,t,r.styleMirror);return(y&&y!==-1||k&&k!==-1)&&e({id:y,styleId:k,set:{property:p,value:h,priority:m},index:Ni(u.parentRule)}),l.apply(u,c)})});const s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:Ye((l,u,c)=>{var f;const[p]=c;if(n.has(p))return s.apply(u,[p]);const{id:h,styleId:m}=mr((f=u.parentRule)===null||f===void 0?void 0:f.parentStyleSheet,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,remove:{property:p},index:Ni(u.parentRule)}),l.apply(u,c)})}),Ye(()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s})}function OB({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:s}){const l=Ye(c=>Co(Ye(f=>{const p=Oo(f);if(!p||Tn(p,t,n,r,!0))return;const{currentTime:h,volume:m,muted:y,playbackRate:k}=p;e({type:c,id:o.getId(p),currentTime:h,volume:m,muted:y,playbackRate:k})}),i.media||500)),u=[tn("play",l(0),s),tn("pause",l(1),s),tn("seeked",l(2),s),tn("volumechange",l(3),s),tn("ratechange",l(4),s)];return Ye(()=>{u.forEach(c=>c())})}function BB({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(u,c,f){const p=new i(u,c,f);return o.set(p,{family:u,buffer:typeof c!="string",descriptors:f,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))}),p};const s=ec(t.fonts,"add",function(l){return function(u){return setTimeout(Ye(()=>{const c=o.get(u);c&&(e(c),o.delete(u))}),0),l.apply(this,[u])}});return r.push(()=>{n.FontFace=i}),r.push(s),Ye(()=>{r.forEach(l=>l())})}function MB(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:s}=e;let l=!0;const u=Ye(()=>{const c=t.getSelection();if(!c||l&&(c!=null&&c.isCollapsed))return;l=c.isCollapsed||!1;const f=[],p=c.rangeCount||0;for(let h=0;h<p;h++){const m=c.getRangeAt(h),{startContainer:y,startOffset:k,endContainer:b,endOffset:w}=m;Tn(y,r,o,i,!0)||Tn(b,r,o,i,!0)||f.push({start:n.getId(y),startOffset:k,end:n.getId(b),endOffset:w})}s({ranges:f})});return u(),tn("selectionchange",u)}function RB({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:ec(n.customElements,"define",function(o){return function(i,s,l){try{t({define:{name:i}})}catch{}return o.apply(this,[i,s,l])}})}function AB(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};const r=Rm(e,e.doc),o=TB(e),i=EB(e),s=Am(e),l=xB(e,{win:n}),u=IB(e),c=OB(e),f=DB(e,{win:n}),p=$m(e,e.doc),h=NB(e,{win:n}),m=e.collectFonts?BB(e):()=>{},y=MB(e),k=RB(e);return Ye(()=>{pa.forEach(b=>b.reset()),r.disconnect(),o(),i(),s(),l(),u(),c(),f(),p(),h(),m(),y(),k()})}function Zo(e){return typeof window[e]<"u"}function ei(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Jl{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,o){const i=r||this.getIdToRemoteIdMap(t),s=o||this.getRemoteIdToIdMap(t);let l=i.get(n);return l||(l=this.generateIdFn(),i.set(n,l),s.set(l,n)),l}getIds(t,n){const r=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return n.map(i=>this.getId(t,i,r,o))}getRemoteId(t,n,r){const o=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const i=o.get(n);return i||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(o=>this.getRemoteId(t,o,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class $B{constructor(){this.crossOriginIframeMirror=new Jl(Qu),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class LB{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Jl(Qu),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Jl(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){var r;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(r=this.loadListener)===null||r===void 0||r.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const o=this.crossOriginIframeMap.get(t.source);if(!o)return;const i=this.transformCrossOriginEvent(o,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(t,n){var r;switch(n.type){case He.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const o=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,o),this.patchRootIdOnNode(n.data.node,o),{timestamp:n.timestamp,type:He.IncrementalSnapshot,data:{source:Fe.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case He.Meta:case He.Load:case He.DomContentLoaded:return!1;case He.Plugin:return n;case He.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case He.IncrementalSnapshot:switch(n.data.source){case Fe.Mutation:return n.data.adds.forEach(o=>{this.replaceIds(o,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(o.node,t);const i=this.crossOriginIframeRootIdMap.get(t);i&&this.patchRootIdOnNode(o.node,i)}),n.data.removes.forEach(o=>{this.replaceIds(o,t,["parentId","id"])}),n.data.attributes.forEach(o=>{this.replaceIds(o,t,["id"])}),n.data.texts.forEach(o=>{this.replaceIds(o,t,["id"])}),n;case Fe.Drag:case Fe.TouchMove:case Fe.MouseMove:return n.data.positions.forEach(o=>{this.replaceIds(o,t,["id"])}),n;case Fe.ViewportResize:return!1;case Fe.MediaInteraction:case Fe.MouseInteraction:case Fe.Scroll:case Fe.CanvasMutation:case Fe.Input:return this.replaceIds(n.data,t,["id"]),n;case Fe.StyleSheetRule:case Fe.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case Fe.Font:return n;case Fe.Selection:return n.data.ranges.forEach(o=>{this.replaceIds(o,t,["start","end"])}),n;case Fe.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),(r=n.data.styles)===null||r===void 0||r.forEach(o=>{this.replaceStyleIds(o,t,["styleId"])}),n}}return!1}replace(t,n,r,o){for(const i of o)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=t.getIds(r,n[i]):n[i]=t.getId(r,n[i]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==Dt.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class VB{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class FB{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!oo(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const r=Rm(Object.assign(Object.assign({},this.bypassOptions),{doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Am(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push($m({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(ec(t.prototype,"attachShadow",function(o){return function(i){const s=o.call(this,i);return this.shadowRoot&&Om(this)&&r.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class HB{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}}class UB{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new yB,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},o=[];for(const i of t){let s;this.styleMirror.has(i)?s=this.styleMirror.getId(i):(s=this.styleMirror.add(i),o.push({styleId:s,rules:Array.from(i.rules||CSSRule,(l,u)=>({rule:_m(l),index:u}))})),r.styleIds.push(s)}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class zB{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(o=>o!==n)}add(t,n){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function Nt(e){const t=e;return t.timestamp=Di(),t}let Oi;const ar=qO();function wr(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:l="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:f="rr-mask",unmaskTextClass:p=null,maskTextSelector:h=null,unmaskTextSelector:m=null,inlineStylesheet:y=!0,maskAllInputs:k,maskInputOptions:b,slimDOMOptions:w,maskAttributeFn:T,maskInputFn:O,maskTextFn:_,packFn:B,sampling:C={},dataURLOptions:I={},mousemoveWait:F,recordCanvas:q=!1,recordCrossOriginIframes:W=!1,recordAfter:M=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:D=!1,collectFonts:$=!1,inlineImages:Y=!1,keepIframeSrcFn:X=()=>!1,ignoreCSSAttributes:K=new Set([]),errorHandler:j,onMutation:U,getCanvasManager:S}=e;SB(j);const H=W?window.parent===window:!0;let Z=!1;if(!H)try{window.parent.document&&(Z=!1)}catch{Z=!0}if(H&&!t)throw new Error("emit function is required");F!==void 0&&C.mousemove===void 0&&(C.mousemove=F),ar.reset();const Q=k===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:b!==void 0?b:{},V=w===!0||w==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:w==="all",headMetaDescKeywords:w==="all"}:w||{};gB();let E,P=0;const R=ve=>(B&&!Z&&(ve=B(ve)),ve),G=(ve,Qe)=>{var Te;if(!((Te=pa[0])===null||Te===void 0)&&Te.isFrozen()&&ve.type!==He.FullSnapshot&&!(ve.type===He.IncrementalSnapshot&&ve.data.source===Fe.Mutation)&&pa.forEach(se=>se.unfreeze()),H)t==null||t(R(ve),Qe);else if(Z){const se={type:"rrweb",event:R(ve),origin:window.location.origin,isCheckout:Qe};window.parent.postMessage(se,"*")}if(ve.type===He.FullSnapshot)E=ve,P=0;else if(ve.type===He.IncrementalSnapshot){if(ve.data.source===Fe.Mutation&&ve.data.isAttachIframe)return;P++;const se=r&&P>=r,ce=n&&ve.timestamp-E.timestamp>n;(se||ce)&&Ke(!0)}},ie=ve=>{G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.Mutation},ve)}))},oe=ve=>G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.Scroll},ve)})),Ie=ve=>G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.CanvasMutation},ve)})),Ee=ve=>G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.AdoptedStyleSheet},ve)})),fe=new UB({mutationCb:ie,adoptedStyleSheetCb:Ee}),Be=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new $B:new LB({mirror:ar,mutationCb:ie,stylesheetManager:fe,recordCrossOriginIframes:W,wrappedEmit:G}),$e=new zB,ze=S?S({recordCanvas:q,blockClass:o,blockSelector:i,unblockSelector:s,sampling:C.canvas,dataURLOptions:I}):new HB,Ge=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new VB:new FB({mutationCb:ie,scrollCb:oe,bypassOptions:{onMutation:U,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:c,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m,inlineStylesheet:y,maskInputOptions:Q,dataURLOptions:I,maskAttributeFn:T,maskTextFn:_,maskInputFn:O,recordCanvas:q,inlineImages:Y,sampling:C,slimDOMOptions:V,iframeManager:Be,stylesheetManager:fe,canvasManager:ze,keepIframeSrcFn:X,processedNodeManager:$e},mirror:ar}),Ke=(ve=!1)=>{G(Nt({type:He.Meta,data:{href:window.location.href,width:xm(),height:Em()}}),ve),fe.reset(),Ge.init(),pa.forEach(Te=>Te.lock());const Qe=mB(document,{mirror:ar,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:c,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m,inlineStylesheet:y,maskAllInputs:Q,maskAttributeFn:T,maskInputFn:O,maskTextFn:_,slimDOM:V,dataURLOptions:I,recordCanvas:q,inlineImages:Y,onSerialize:Te=>{Im(Te,ar)&&Be.addIframe(Te),Dm(Te,ar)&&fe.trackLinkElement(Te),Kl(Te)&&Ge.addShadowRoot(Te.shadowRoot,document)},onIframeLoad:(Te,se)=>{Be.attachIframe(Te,se),Ge.observeAttachShadow(Te)},onStylesheetLoad:(Te,se)=>{fe.attachLinkElement(Te,se)},keepIframeSrcFn:X});if(!Qe)return console.warn("Failed to snapshot the document");G(Nt({type:He.FullSnapshot,data:{node:Qe,initialOffset:Tm(window)}}),ve),pa.forEach(Te=>Te.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&fe.adoptStyleSheets(document.adoptedStyleSheets,ar.getId(document))};Oi=Ke;try{const ve=[],Qe=se=>Ye(AB)({onMutation:U,mutationCb:ie,mousemoveCb:(ce,me)=>G(Nt({type:He.IncrementalSnapshot,data:{source:me,positions:ce}})),mouseInteractionCb:ce=>G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.MouseInteraction},ce)})),scrollCb:oe,viewportResizeCb:ce=>G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.ViewportResize},ce)})),inputCb:ce=>G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.Input},ce)})),mediaInteractionCb:ce=>G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.MediaInteraction},ce)})),styleSheetRuleCb:ce=>G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.StyleSheetRule},ce)})),styleDeclarationCb:ce=>G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.StyleDeclaration},ce)})),canvasMutationCb:Ie,fontCb:ce=>G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.Font},ce)})),selectionCb:ce=>{G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.Selection},ce)}))},customElementCb:ce=>{G(Nt({type:He.IncrementalSnapshot,data:Object.assign({source:Fe.CustomElement},ce)}))},blockClass:o,ignoreClass:l,ignoreSelector:u,maskAllText:c,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m,maskInputOptions:Q,inlineStylesheet:y,sampling:C,recordCanvas:q,inlineImages:Y,userTriggeredOnInput:D,collectFonts:$,doc:se,maskAttributeFn:T,maskInputFn:O,maskTextFn:_,keepIframeSrcFn:X,blockSelector:i,unblockSelector:s,slimDOMOptions:V,dataURLOptions:I,mirror:ar,iframeManager:Be,stylesheetManager:fe,shadowDomManager:Ge,processedNodeManager:$e,canvasManager:ze,ignoreCSSAttributes:K,plugins:[]},{});Be.addLoadListener(se=>{try{ve.push(Qe(se.contentDocument))}catch(ce){console.warn(ce)}});const Te=()=>{Ke(),ve.push(Qe(document))};return document.readyState==="interactive"||document.readyState==="complete"?Te():(ve.push(tn("DOMContentLoaded",()=>{G(Nt({type:He.DomContentLoaded,data:{}})),M==="DOMContentLoaded"&&Te()})),ve.push(tn("load",()=>{G(Nt({type:He.Load,data:{}})),M==="load"&&Te()},window))),()=>{ve.forEach(se=>se()),$e.destroy(),Oi=void 0,CB()}}catch(ve){console.warn(ve)}}function jB(e){if(!Oi)throw new Error("please take full snapshot after start recording");Oi(e)}wr.mirror=ar;wr.takeFullSnapshot=jB;const WB=3,qB=5;function tc(e){return e>9999999999?e:e*1e3}function nl(e){return e>9999999999?e/1e3:e}function hs(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:He.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:An(t,10,1e3)}}),t.category==="console")))}const YB="button,a";function Lm(e){return e.closest(YB)||e}function Vm(e){const t=Fm(e);return!t||!(t instanceof Element)?t:Lm(t)}function Fm(e){return GB(e)?e.target:e}function GB(e){return typeof e=="object"&&!!e&&"target"in e}let vr;function KB(e){return vr||(vr=[],XB()),vr.push(e),()=>{const t=vr?vr.indexOf(e):-1;t>-1&&vr.splice(t,1)}}function XB(){Bt(dt,"open",function(e){return function(...t){if(vr)try{vr.forEach(n=>n())}catch{}return e.apply(dt,t)}})}function JB(e,t,n){e.handleClick(t,n)}class QB{constructor(t,n,r=hs){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=KB(()=>{this._lastMutation=Cf()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(eM(n,this._ignoreSelector)||!tM(t))return;const r={timestamp:nl(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(o=>o.node===r.node&&Math.abs(o.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=nl(t)}registerScroll(t=Date.now()){this._lastScroll=nl(t)}registerClick(t){const n=Lm(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=Cf();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const o=this._clicks.indexOf(r);o>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!r&&!o,{clickCount:s,clickBreadcrumb:l}=t;if(i){const u=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,c=u<this._timeout*1e3?"mutation":"timeout",f={type:"default",message:l.message,timestamp:l.timestamp,category:"ui.slowClickDetected",data:{...l.data,url:dt.location.href,route:n.getCurrentRoute(),timeAfterClickMs:u,endReason:c,clickCount:s||1}};this._addBreadcrumbEvent(n,f);return}if(s>1){const u={type:"default",message:l.message,timestamp:l.timestamp,category:"ui.multiClick",data:{...l.data,url:dt.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(n,u)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}}const ZB=["A","BUTTON","INPUT"];function eM(e,t){return!!(!ZB.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function tM(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Cf(){return Date.now()/1e3}function nM(e,t){try{if(!rM(t))return;const{source:n}=t.data;if(n===Fe.Mutation&&e.registerMutation(t.timestamp),n===Fe.Scroll&&e.registerScroll(t.timestamp),aM(t)){const{type:r,id:o}=t.data,i=wr.mirror.getNode(o);i instanceof HTMLElement&&r===Jt.Click&&e.registerClick(i)}}catch{}}function rM(e){return e.type===WB}function aM(e){return e.data.source===Fe.MouseInteraction}function cr(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Bi;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Bi||(Bi={}));const oM=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled"]);function iM(e){const t={};for(const n in e)if(oM.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const sM=e=>t=>{if(!e.isEnabled())return;const n=lM(t);if(!n)return;const r=t.name==="click",o=r?t.event:void 0;r&&e.clickDetector&&o&&o.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&JB(e.clickDetector,n,Vm(t.event)),hs(e,n)};function Hm(e,t){const n=wr.mirror.getId(e),r=n&&wr.mirror.getNode(n),o=r&&wr.mirror.getMeta(r),i=o&&cM(o)?o:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(s=>s.type===Bi.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:iM(i.attributes)}}:{}}}function lM(e){const{target:t,message:n}=uM(e);return cr({category:`ui.${e.name}`,...Hm(t,n)})}function uM(e){const t=e.name==="click";let n,r=null;try{r=t?Vm(e.event):Fm(e.event),n=Sr(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function cM(e){return e.type===Bi.Element}function dM(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=fM(t);n&&hs(e,n)}function fM(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i,target:s}=e;if(!s||pM(s)||!i)return null;const l=t||r||o,u=i.length===1;if(!l&&u)return null;const c=Sr(s,{maxStringLength:200})||"<unknown>",f=Hm(s,c);return cr({category:"ui.keyDown",message:c,data:{...f.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i}})}function pM(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const Tf={resource:yM,paint:vM,navigation:gM};function hM(e){return e.map(mM).filter(Boolean)}function mM(e){return Tf[e.entryType]?Tf[e.entryType](e):null}function Oa(e){return((In||dt.performance.timeOrigin)+e)/1e3}function vM(e){const{duration:t,entryType:n,name:r,startTime:o}=e,i=Oa(o);return{type:n,name:r,start:i,end:i+t,data:void 0}}function gM(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:l,domContentLoadedEventEnd:u,domInteractive:c,loadEventStart:f,loadEventEnd:p,redirectCount:h,startTime:m,transferSize:y,type:k}=e;return o===0?null:{type:`${t}.${k}`,start:Oa(m),end:Oa(i),name:n,data:{size:y,decodedBodySize:r,encodedBodySize:s,duration:o,domInteractive:c,domContentLoadedEventStart:l,domContentLoadedEventEnd:u,loadEventStart:f,loadEventEnd:p,domComplete:i,redirectCount:h}}}function yM(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:l,responseStatus:u,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Oa(i),end:Oa(o),name:r,data:{size:c,statusCode:u,decodedBodySize:s,encodedBodySize:l}}}function bM(e){const t=e.entries,n=t[t.length-1],r=n?n.element:void 0,o=e.value,i=Oa(o);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:i,end:i,data:{value:o,size:o,nodeId:r?wr.mirror.getId(r):void 0}}}function _M(e){function t(o){e.performanceEntries.includes(o)||e.performanceEntries.push(o)}function n({entries:o}){o.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(o=>{r.push(ds(o,n))}),r.push(vm(({metric:o})=>{e.replayPerformanceEntries.push(bM(o))})),()=>{r.forEach(o=>o())}}const ft=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,wM='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function kM(){const e=new Blob([wM]);return URL.createObjectURL(e)}function Zt(e,t){ft&&(ne.info(e),t&&Um(e))}function ga(e,t){ft&&(ne.info(e),t&&setTimeout(()=>{Um(e)},0))}function Um(e){tt().addBreadcrumb({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class nc extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Xu}.`)}}class zm{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>Xu)throw new nc;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?tc(t):null}}class SM{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){Zt("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((o,i)=>{const s=({data:l})=>{const u=l;if(u.method===t&&u.id===r){if(this._worker.removeEventListener("message",s),!u.success){ft&&ne.error("[Replay]",u.response),i(new Error("Error in compression worker"));return}o(u.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class CM{constructor(t){this._worker=new SM(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=tc(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>Xu?Promise.reject(new nc):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear")}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class TM{constructor(t){this._fallback=new zm,this._compression=new CM(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch{Zt("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n}=this._fallback,r=[];for(const o of t)r.push(this._compression.addEvent(o));this._compression.hasCheckout=n,this._used=this._compression;try{await Promise.all(r)}catch(o){ft&&ne.warn("[Replay] Failed to add events when switching buffers.",o)}}}function EM({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=xM(t);if(n)return n}return Zt("[Replay] Using simple buffer"),new zm}function xM(e){try{const t=e||PM();if(!t)return;Zt(`[Replay] Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new TM(n)}catch{Zt("[Replay] Failed to create compression worker")}}function PM(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?kM():""}function rc(){try{return"sessionStorage"in dt&&!!dt.sessionStorage}catch{return!1}}function IM(e){DM(),e.session=void 0}function DM(){if(rc())try{dt.sessionStorage.removeItem(Gu)}catch{}}function jm(e){return e===void 0?!1:Math.random()<e}function Wm(e){const t=Date.now(),n=e.id||Yt(),r=e.started||t,o=e.lastActivity||t,i=e.segmentId||0,s=e.sampled,l=e.previousSessionId;return{id:n,started:r,lastActivity:o,segmentId:i,sampled:s,previousSessionId:l}}function ac(e){if(rc())try{dt.sessionStorage.setItem(Gu,JSON.stringify(e))}catch{}}function NM(e,t){return jm(e)?"session":t?"buffer":!1}function Ef({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=NM(e,t),i=Wm({sampled:o,previousSessionId:r});return n&&ac(i),i}function OM(e){if(!rc())return null;try{const t=dt.sessionStorage.getItem(Gu);if(!t)return null;const n=JSON.parse(t);return ga("[Replay] Loading existing session",e),Wm(n)}catch{return null}}function Ql(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function qm(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Ql(e.started,t,r)||Ql(e.lastActivity,n,r)}function Ym(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!qm(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function rl({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:r},o){const i=o.stickySession&&OM(e);return i?Ym(i,{sessionIdleExpire:t,maxReplayDuration:n})?(ga("[Replay] Session in sessionStorage is expired, creating new one..."),Ef(o,{previousSessionId:i.id})):i:(ga("[Replay] Creating new session",e),Ef(o,{previousSessionId:r}))}function BM(e){return e.type===He.Custom}function oc(e,t,n){return Km(e,t)?(Gm(e,t,n),!0):!1}function MM(e,t,n){return Km(e,t)?Gm(e,t,n):Promise.resolve(null)}async function Gm(e,t,n){if(!e.eventBuffer)return null;try{n&&e.recordingMode==="buffer"&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const r=e.getOptions(),o=RM(t,r.beforeAddRecordingEvent);return o?await e.eventBuffer.addEvent(o):void 0}catch(r){const o=r&&r instanceof nc?"addEventSizeExceeded":"addEvent";ft&&ne.error(r),await e.stop({reason:o});const i=Ir();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function Km(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=tc(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(Zt(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1):!0}function RM(e,t){try{if(typeof t=="function"&&BM(e))return t(e)}catch(n){return ft&&ne.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",n),null}return e}function Xm(e){return!e.type}function Zl(e){return e.type==="transaction"}function AM(e){return e.type==="replay_event"}function xf(e){return e.type==="feedback"}function Jm(e){const t=VM();return(n,r)=>{if(!e.isEnabled()||!Xm(n)&&!Zl(n))return;const o=r&&r.statusCode;if(!(t&&(!o||o<200||o>=300))){if(Zl(n)){$M(e,n);return}LM(e,n)}}}function $M(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function LM(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||setTimeout(()=>{e.sendBufferedReplayOrFlush()})}function VM(){const e=Ir();if(!e)return!1;const t=e.getTransport();return t&&t.send.__sentry__baseTransport__||!1}function FM(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function HM(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:He.Custom,timestamp:t.timestamp*1e3,data:{timestamp:t.timestamp,tag:"breadcrumb",payload:{category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function UM(e,t){return e.recordingMode!=="buffer"||t.message===Ku||!t.exception||t.type?!1:jm(e.getOptions().errorSampleRate)}function zM(e,t=!1){const n=t?Jm(e):void 0;return Object.assign((r,o)=>e.isEnabled()?AM(r)?(delete r.breadcrumbs,r):!Xm(r)&&!Zl(r)&&!xf(r)||!e.checkAndHandleExpiredSession()?r:xf(r)?(e.flush(),r.contexts.feedback.replay_id=e.getSessionId(),HM(e,r),r):FM(r,o)&&!e.getOptions()._experiments.captureExceptions?(ft&&ne.log("[Replay] Ignoring error from rrweb internals",r),null):((UM(e,r)||e.recordingMode==="session")&&(r.tags={...r.tags,replayId:e.getSessionId()}),n&&n(r,{statusCode:200}),r):r,{id:"Replay"})}function ms(e,t){return t.map(({type:n,start:r,end:o,name:i,data:s})=>{const l=e.throttledAddEvent({type:He.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:o,data:s}}});return typeof l=="string"?Promise.resolve(null):l})}function jM(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function WM(e){return t=>{if(!e.isEnabled())return;const n=jM(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(ms(e,[n]),!1)))}}function qM(e,t){return ft&&e.getOptions()._experiments.traceInternals?!1:RD(t,tt())}function vs(e,t){e.isEnabled()&&t!==null&&(qM(e,t.name)||e.addUpdate(()=>(ms(e,[t]),!0)))}function YM(e){const{startTimestamp:t,endTimestamp:n,fetchData:r,response:o}=e;if(!n)return null;const{method:i,url:s}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:s,data:{method:i,statusCode:o?o.status:void 0}}}function GM(e){return t=>{if(!e.isEnabled())return;const n=YM(t);vs(e,n)}}function KM(e){const{startTimestamp:t,endTimestamp:n,xhr:r}=e,o=r[br];if(!t||!n||!o)return null;const{method:i,url:s,status_code:l}=o;return s===void 0?null:{type:"resource.xhr",name:s,start:t/1e3,end:n/1e3,data:{method:i,statusCode:l}}}function XM(e){return t=>{if(!e.isEnabled())return;const n=KM(t);vs(e,n)}}function gs(e,t){if(e)try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=tv(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Qm(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Zm(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[tv(e)];if(!e)return[void 0]}catch{return ft&&ne.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ft&&ne.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Mi(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function ev(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:s,request:l,response:u}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:Yn({method:i,statusCode:s,request:l,response:u})}}function To(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function kr(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:i}=JM(n);return r.body=o,i&&i.length>0&&(r._meta={warnings:i}),r}function eu(e,t){return Object.keys(e).reduce((n,r)=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=e[r]),n},{})}function tv(e){return new URLSearchParams(e).toString()}function JM(e){if(!e||typeof e!="string")return{body:e};const t=e.length>hf,n=QM(e);if(t){const r=e.slice(0,hf);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function QM(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Ri(e,t){const n=ZM(e);return Ra(n,t)}function ZM(e,t=dt.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(dt.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function e3(e,t,n){try{const r=await n3(e,t,n),o=ev("resource.fetch",r);vs(n.replay,o)}catch(r){ft&&ne.error("[Replay] Failed to capture fetch breadcrumb",r)}}function t3(e,t,n){const{input:r,response:o}=t,i=r?nv(r):void 0,s=gs(i,n.textEncoder),l=o?Qm(o.headers.get("content-length")):void 0;s!==void 0&&(e.data.request_body_size=s),l!==void 0&&(e.data.response_body_size=l)}async function n3(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r}=t,{url:s,method:l,status_code:u=0,request_body_size:c,response_body_size:f}=e.data,p=Ri(s,n.networkDetailAllowUrls)&&!Ri(s,n.networkDetailDenyUrls),h=p?r3(n,t.input,c):To(c),m=await a3(p,n,t.response,f);return{startTimestamp:o,endTimestamp:i,url:s,method:l,statusCode:u,request:h,response:m}}function r3({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?s3(n,t):{};if(!e)return kr(o,r,void 0);const i=nv(n),[s,l]=Zm(i),u=kr(o,r,s);return l?Mi(u,l):u}async function a3(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},o,i){if(!e&&i!==void 0)return To(i);const s=o?rv(o.headers,r):{};if(!o||!t&&i!==void 0)return kr(s,i,void 0);const[l,u]=await i3(o),c=o3(l,{networkCaptureBodies:t,textEncoder:n,responseBodySize:i,captureDetails:e,headers:s});return u?Mi(c,u):c}function o3(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:r,captureDetails:o,headers:i}){try{const s=e&&e.length&&r===void 0?gs(e,n):r;return o?t?kr(i,s,e):kr(i,s,void 0):To(s)}catch(s){return ft&&ne.warn("[Replay] Failed to serialize response body",s),kr(i,r,void 0)}}async function i3(e){const t=l3(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await u3(t)]}catch(n){return ft&&ne.warn("[Replay] Failed to get text body from response",n),[void 0,"BODY_PARSE_ERROR"]}}function nv(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function rv(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function s3(e,t){return e.length===1&&typeof e[0]!="string"?Pf(e[0],t):e.length===2?Pf(e[1],t):{}}function Pf(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?rv(n,t):Array.isArray(n)?{}:eu(n,t):{}}function l3(e){try{return e.clone()}catch(t){ft&&ne.warn("[Replay] Failed to clone response body",t)}}function u3(e){return new Promise((t,n)=>{const r=setTimeout(()=>n(new Error("Timeout while trying to read response body")),500);c3(e).then(o=>t(o),o=>n(o)).finally(()=>clearTimeout(r))})}async function c3(e){return await e.text()}async function d3(e,t,n){try{const r=p3(e,t,n),o=ev("resource.xhr",r);vs(n.replay,o)}catch(r){ft&&ne.error("[Replay] Failed to capture xhr breadcrumb",r)}}function f3(e,t,n){const{xhr:r,input:o}=t;if(!r)return;const i=gs(o,n.textEncoder),s=r.getResponseHeader("content-length")?Qm(r.getResponseHeader("content-length")):g3(r.response,r.responseType,n.textEncoder);i!==void 0&&(e.data.request_body_size=i),s!==void 0&&(e.data.response_body_size=s)}function p3(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r,input:s,xhr:l}=t,{url:u,method:c,status_code:f=0,request_body_size:p,response_body_size:h}=e.data;if(!u)return null;if(!l||!Ri(u,n.networkDetailAllowUrls)||Ri(u,n.networkDetailDenyUrls)){const C=To(p),I=To(h);return{startTimestamp:o,endTimestamp:i,url:u,method:c,statusCode:f,request:C,response:I}}const m=l[br],y=m?eu(m.request_headers,n.networkRequestHeaders):{},k=eu(h3(l),n.networkResponseHeaders),[b,w]=n.networkCaptureBodies?Zm(s):[void 0],[T,O]=n.networkCaptureBodies?m3(l):[void 0],_=kr(y,p,b),B=kr(k,h,T);return{startTimestamp:o,endTimestamp:i,url:u,method:c,statusCode:f,request:w?Mi(_,w):_,response:O?Mi(B,O):B}}function h3(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
|
|
105
|
-
`).reduce((n,r)=>{const[o,i]=r.split(": ");return n[o.toLowerCase()]=i,n},{}):{}}function
|
|
106
|
-
`;if(typeof e=="string")n=`${r}${e}`;else{const i=new TextEncoder().encode(r);n=new Uint8Array(i.length+e.length),n.set(i),n.set(e,i.length)}return n}async function $3({client:e,scope:t,replayId:n,event:r}){const o=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:n,integrations:o};e.emit&&e.emit("preprocessEvent",r,i);const s=await Xh(e.getOptions(),r,i,t,e);if(!s)return null;s.platform=s.platform||"javascript";const l=e.getSdkMetadata&&e.getSdkMetadata(),{name:u,version:c}=l&&l.sdk||{};return s.sdk={...s.sdk,name:u||"sentry.javascript.unknown",version:c||"0.0.0"},s}async function L3({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:i}){const s=A3({recordingData:e,headers:{segment_id:n}}),{urls:l,errorIds:u,traceIds:c,initialTimestamp:f}=r,p=tt(),h=p.getClient(),m=p.getScope(),y=h&&h.getTransport(),k=h&&h.getDsn();if(!h||!y||!k||!i.sampled)return;const b={type:PO,replay_start_timestamp:f/1e3,timestamp:o/1e3,error_ids:u,trace_ids:c,urls:l,replay_id:t,segment_id:n,replay_type:i.sampled},w=await $3({scope:m,client:h,replayId:t,event:b});if(!w){h.recordDroppedEvent("event_processor","replay",b),Zt("An event processor returned `null`, will not send event.");return}delete w.sdkProcessingMetadata;const T=R3(w,s,k,h.getOptions().tunnel);let O;try{O=await y.send(T)}catch(B){const C=new Error(Ku);try{C.cause=B}catch{}throw C}if(!O)return O;if(typeof O.statusCode=="number"&&(O.statusCode<200||O.statusCode>=300))throw new av(O.statusCode);const _=jh({},O);if(zh(_,"replay"))throw new ov(_);return O}class av extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class ov extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function iv(e,t={count:0,interval:MO}){const{recordingData:n,options:r}=e;if(n.length)try{return await L3(e),!0}catch(o){if(o instanceof av||o instanceof ov)throw o;if(eD("Replays",{_retryCount:t.count}),ft&&r._experiments&&r._experiments.captureExceptions&&Zi(o),t.count>=RO){const i=new Error(`${Ku} - max retries exceeded`);try{i.cause=o}catch{}throw i}return t.interval*=++t.count,new Promise((i,s)=>{setTimeout(async()=>{try{await iv(e,t),i(!0)}catch(l){s(l)}},t.interval)})}}const sv="__THROTTLED",V3="__SKIPPED";function F3(e,t,n){const r=new Map,o=l=>{const u=l-n;r.forEach((c,f)=>{f<u&&r.delete(f)})},i=()=>[...r.values()].reduce((l,u)=>l+u,0);let s=!1;return(...l)=>{const u=Math.floor(Date.now()/1e3);if(o(u),i()>=t){const f=s;return s=!0,f?V3:sv}s=!1;const c=r.get(u)||0;return r.set(u,c+1),e(...l)}}class gr{constructor({options:t,recordingOptions:n}){gr.prototype.__init.call(this),gr.prototype.__init2.call(this),gr.prototype.__init3.call(this),gr.prototype.__init4.call(this),gr.prototype.__init5.call(this),gr.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:IO,sessionIdleExpire:DO},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=N3(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=F3((s,l)=>MM(this,s,l),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:o}=this.getOptions(),i=r?{threshold:Math.min(AO,r),timeout:r,scrollTimeout:$O,ignoreSelector:o?o.join(","):""}:void 0;i&&(this.clickDetector=new QB(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options;if(!(n<=0&&r<=0)){if(this._initializeSessionForSampling(t),!this.session){this._handleException(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",ga(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session")throw new Error("Replay recording is already in progress");if(this._isEnabled&&this.recordingMode==="buffer")throw new Error("Replay buffering is in progress, call `flush()` to save the replay");ga("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);const t=rl({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");ga("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const t=rl({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{this._stopRecording=wr({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:BO},emit:O3(this),onMutation:this._onMutationHandler})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this._handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{Zt(`[Replay] Stopping Replay${n?` triggered by ${n}`:""}`,this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,IM(this)}catch(r){this._handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Zt("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),Zt("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();Zt("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&Ql(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${dt.location.pathname}${dt.location.hash}${dt.location.search}`,n=`${dt.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===sv){const o=cr({category:"replay.throttled"});this.addUpdate(()=>!oc(this,{type:qB,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastTransaction||tt().getScope().getTransaction();if(!(!t||!["route","custom"].includes(t.metadata.source)))return t.name}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=EM({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(t){ft&&ne.error("[Replay]",t),ft&&this._options._experiments&&this._options._experiments.captureExceptions&&Zi(t)}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=rl({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return Ym(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{dt.document.addEventListener("visibilitychange",this._handleVisibilityChange),dt.addEventListener("blur",this._handleWindowBlur),dt.addEventListener("focus",this._handleWindowFocus),dt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(P3(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}this._performanceCleanupCallback=_M(this)}_removeListeners(){try{dt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),dt.removeEventListener("blur",this._handleWindowBlur),dt.removeEventListener("focus",this._handleWindowFocus),dt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this._handleException(t)}}__init(){this._handleVisibilityChange=()=>{dt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=cr({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=cr({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{dM(this,t)}}_doChangeToBackgroundTasks(t){!this.session||qm(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){Zt("[Replay] Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:He.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){const t=hM(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(ms(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){ft&&ne.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await I3(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),o=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await iv({replayId:t,recordingData:i,segmentId:o,eventContext:r,session:this.session,options:this.getOptions(),timestamp:n})}catch(n){this._handleException(n),this.stop({reason:"sendReplay"});const r=Ir();r&&r.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){ft&&ne.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,o=Date.now()-n;this._debouncedFlush.cancel();const i=o<this._options.minReplayDuration,s=o>this._options.maxReplayDuration+5e3;if(i||s){Zt(`[Replay] Session duration (${Math.floor(o/1e3)}s) is too ${i?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),i&&this._debouncedFlush();return}const l=this.eventBuffer;if(l&&this.session.segmentId===0&&!l.hasCheckout&&Zt("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(u){ft&&ne.error(u)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&ac(this.session)}__init6(){this._onMutationHandler=t=>{const n=t.length,r=this._options.mutationLimit,o=this._options.mutationBreadcrumbLimit,i=r&&n>r;if(n>o||i){const s=cr({category:"replay.mutations",data:{count:n,limit:i}});this._createCustomBreadcrumb(s)}return i?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function Xa(e,t,n,r){const o=typeof r=="string"?r.split(","):[],i=[...e,...o,...t];return typeof n<"u"&&(typeof n=="string"&&i.push(`.${n}`),Xn(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),i.join(",")}function H3({mask:e,unmask:t,block:n,unblock:r,ignore:o,blockClass:i,blockSelector:s,maskTextClass:l,maskTextSelector:u,ignoreClass:c}){const f=['base[href="/"]'],p=Xa(e,[".sentry-mask","[data-sentry-mask]"],l,u),h=Xa(t,[".sentry-unmask","[data-sentry-unmask]"]),m={maskTextSelector:p,unmaskTextSelector:h,blockSelector:Xa(n,[".sentry-block","[data-sentry-block]",...f],i,s),unblockSelector:Xa(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Xa(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],c)};return i instanceof RegExp&&(m.blockClass=i),l instanceof RegExp&&(m.maskTextClass=l),m}function U3({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:i}){return!r||o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?i:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}const Nf='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',z3=["content-length","content-type","accept"];let Of=!1;class ys{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=NO,flushMaxDelay:n=OO,minReplayDuration:r=LO,maxReplayDuration:o=mf,stickySession:i=!0,useCompression:s=!0,workerUrl:l,_experiments:u={},sessionSampleRate:c,errorSampleRate:f,maskAllText:p=!0,maskAllInputs:h=!0,blockAllMedia:m=!0,mutationBreadcrumbLimit:y=750,mutationLimit:k=1e4,slowClickTimeout:b=7e3,slowClickIgnoreSelectors:w=[],networkDetailAllowUrls:T=[],networkDetailDenyUrls:O=[],networkCaptureBodies:_=!0,networkRequestHeaders:B=[],networkResponseHeaders:C=[],mask:I=[],maskAttributes:F=["title","placeholder"],unmask:q=[],block:W=[],unblock:M=[],ignore:D=[],maskFn:$,beforeAddRecordingEvent:Y,beforeErrorSampling:X,blockClass:K,blockSelector:j,maskInputOptions:U,maskTextClass:S,maskTextSelector:H,ignoreClass:Z}={}){this.name=ys.id;const Q=H3({mask:I,unmask:q,block:W,unblock:M,ignore:D,blockClass:K,blockSelector:j,maskTextClass:S,maskTextSelector:H,ignoreClass:Z});if(this._recordingOptions={maskAllInputs:h,maskAllText:p,maskInputOptions:{...U||{},password:!0},maskTextFn:$,maskInputFn:$,maskAttributeFn:(V,E,P)=>U3({maskAttributes:F,maskAllText:p,privacyOptions:Q,key:V,value:E,el:P}),...Q,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:V=>{try{V.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,VO),maxReplayDuration:Math.min(o,mf),stickySession:i,sessionSampleRate:c,errorSampleRate:f,useCompression:s,workerUrl:l,blockAllMedia:m,maskAllInputs:h,maskAllText:p,mutationBreadcrumbLimit:y,mutationLimit:k,slowClickTimeout:b,slowClickIgnoreSelectors:w,networkDetailAllowUrls:T,networkDetailDenyUrls:O,networkCaptureBodies:_,networkRequestHeaders:Bf(B),networkResponseHeaders:Bf(C),beforeAddRecordingEvent:Y,beforeErrorSampling:X,_experiments:u},typeof c=="number"&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.
|
|
92
|
+
or you can use record.mirror to access the mirror instance during recording.`;let Hp={map:{},getId(){return console.error(Ra),-1},getNode(){return console.error(Ra),null},removeNodeFromMap(){console.error(Ra)},has(){return console.error(Ra),!1},reset(){console.error(Ra)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Hp=new Proxy(Hp,{get(e,t,n){return t==="map"&&console.error(Ra),Reflect.get(e,t,n)}}));function ci(e,t,n={}){let r=null,o=0;return function(...i){const s=Date.now();!o&&n.leading===!1&&(o=s);const l=t-(s-o),u=this;l<=0||l>t?(r&&(clearTimeout(r),r=null),o=s,e.apply(u,i)):!r&&n.trailing!==!1&&(r=setTimeout(()=>{o=n.leading===!1?0:Date.now(),r=null,e.apply(u,i)},l))}}function Og(e,t,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(s){setTimeout(()=>{n.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>Og(e,t,i||{},!0)}function od(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 Os=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Os=()=>new Date().getTime());function Ng(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:Mr([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||Mr([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||Mr([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:Mr([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||Mr([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||Mr([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function Dg(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Mg(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Bn(e,t,n,r,o){if(!e)return!1;const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!i)return!1;const s=Ha(t,n);if(!o){const d=r&&i.matches(r);return s(i)&&!d}const l=ua(i,s);let u=-1;return l<0?!1:(r&&(u=ua(i,Ha(null,r))),l>-1&&u<0?!0:l<u)}function v3(e,t){return t.getId(e)!==-1}function Xl(e,t){return t.getId(e)===ui}function Bg(e,t){if(qo(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Bg(e.parentNode,t):!0:!0}function qu(e){return!!e.changedTouches}function g3(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 Ag(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Rg(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Yu(e){return!!Mr([e,"optionalAccess",t=>t.shadowRoot])}class y3{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return AD(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 $g(e){let t=null;return Mr([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 b3(e){let t=e,n;for(;n=$g(t);)t=n;return t}function _3(e){const t=e.ownerDocument;if(!t)return!1;const n=b3(e);return t.contains(n)}function Lg(e){const t=e.ownerDocument;return t?t.contains(e)||_3(e):!1}let Jl;function w3(){if(Jl)return Jl;const e=window.document;let t=window.requestAnimationFrame;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.requestAnimationFrame&&(t=r.requestAnimationFrame),e.head.removeChild(n)}catch{}return Jl=t.bind(window)}function k3(...e){return w3()(...e)}var Fe=(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))(Fe||{}),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||{}),Zt=(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))(Zt||{}),mr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(mr||{});function S3(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 Up(e){return"__ln"in e}class C3{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=S3([n,"optionalAccess",o=>o.next])||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&Up(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&&Up(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 zp=(e,t)=>`${e}@${t}`;class T3{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new C3,o=u=>{let d=u,c=ui;for(;c===ui;)d=d&&d.nextSibling,c=d&&this.mirror.getId(d);return c},i=u=>{if(!u.parentNode||!Lg(u))return;const d=qo(u.parentNode)?this.mirror.getId($g(u)):this.mirror.getId(u.parentNode),c=o(u);if(d===-1||c===-1)return r.addNode(u);const p=Ua(u,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:h=>{Ag(h,this.mirror)&&this.iframeManager.addIframe(h),Rg(h,this.mirror)&&this.stylesheetManager.trackLinkElement(h),Yu(u)&&this.shadowDomManager.addShadowRoot(u.shadowRoot,this.doc)},onIframeLoad:(h,m)=>{this.iframeManager.attachIframe(h,m),this.shadowDomManager.observeAttachShadow(h)},onStylesheetLoad:(h,m)=>{this.stylesheetManager.attachLinkElement(h,m)}});p&&(t.push({parentId:d,nextId:c,node:p}),n.add(p.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const u of this.movedSet)jp(this.removes,u,this.mirror)&&!this.movedSet.has(u.parentNode)||i(u);for(const u of this.addedSet)!Wp(this.droppedSet,u)&&!jp(this.removes,u,this.mirror)||Wp(this.movedSet,u)?i(u):this.droppedSet.add(u);let s=null;for(;r.length;){let u=null;if(s){const d=this.mirror.getId(s.value.parentNode),c=o(s.value);d!==-1&&c!==-1&&(u=s)}if(!u){let d=r.tail;for(;d;){const c=d;if(d=d.previous,c){const p=this.mirror.getId(c.value.parentNode);if(o(c.value)===-1)continue;if(p!==-1){u=c;break}else{const m=c.value;if(m.parentNode&&m.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const y=m.parentNode.host;if(this.mirror.getId(y)!==-1){u=c;break}}}}}}if(!u){for(;r.head;)r.removeNode(r.head.value);break}s=u.previous,r.removeNode(u.value),i(u.value)}const l={texts:this.texts.map(u=>({id:this.mirror.getId(u.node),value:u.value})).filter(u=>!n.has(u.id)).filter(u=>this.mirror.has(u.id)),attributes:this.attributes.map(u=>{const{attributes:d}=u;if(typeof d.style=="string"){const c=JSON.stringify(u.styleDiff),p=JSON.stringify(u._unchangedStyles);c.length<d.style.length&&(c+p).split("var(").length===d.style.split("var(").length&&(d.style=u.styleDiff)}return{id:this.mirror.getId(u.node),attributes:d}}).filter(u=>!n.has(u.id)).filter(u=>this.mirror.has(u.id)),removes:this.removes,adds:t};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.adds.length||(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(l))},this.processMutation=t=>{if(Xl(t.target,this.mirror))return;let n;try{n=document.implementation.createHTMLDocument()}catch{n=this.doc}switch(t.type){case"characterData":{const r=t.target.textContent;!Bn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:vo(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&r?this.maskTextFn?this.maskTextFn(r):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{const r=t.target;let o=t.attributeName,i=t.target.getAttribute(o);if(o==="value"){const l=nd(r),u=r.tagName;i=Is(r,u,l);const d=sl({maskInputOptions:this.maskInputOptions,tagName:u,type:l}),c=vo(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,d);i=li({isMasked:c,element:r,value:i,maskInputFn:this.maskInputFn})}if(Bn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===t.oldValue)return;let s=this.attributes.find(l=>l.node===t.target);if(r.tagName==="IFRAME"&&o==="src"&&!this.keepIframeSrcFn(i))if(!r.contentDocument)o="rr_src";else return;if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s)),o==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Pg(r.tagName,o)&&(s.attributes[o]=Ig(this.doc,mo(r.tagName),mo(o),i,r,this.maskAttributeFn),o==="style")){const l=n.createElement("span");t.oldValue&&l.setAttribute("style",t.oldValue);for(const u of Array.from(r.style)){const d=r.style.getPropertyValue(u),c=r.style.getPropertyPriority(u);d!==l.style.getPropertyValue(u)||c!==l.style.getPropertyPriority(u)?c===""?s.styleDiff[u]=d:s.styleDiff[u]=[d,c]:s._unchangedStyles[u]=[d,c]}for(const u of Array.from(l.style))r.style.getPropertyValue(u)===""&&(s.styleDiff[u]=!1)}break}case"childList":{if(Bn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{const o=this.mirror.getId(r),i=qo(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Bn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Xl(r,this.mirror)||!v3(r,this.mirror)||(this.addedSet.has(r)?(Gu(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&o===-1||Bg(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[zp(o,i)]?Gu(this.movedSet,r):this.removes.push({parentId:i,id:o,isShadow:qo(t.target)&&Yo(t.target)?!0:void 0})),this.mapRemoves.push(r))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Xl(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[zp(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Bn(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),Yu(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 Gu(e,t){e.delete(t),t.childNodes.forEach(n=>Gu(e,n))}function jp(e,t,n){return e.length===0?!1:Vg(e,t,n)}function Vg(e,t,n){const{parentNode:r}=t;if(!r)return!1;const o=n.getId(r);return e.some(i=>i.id===o)?!0:Vg(e,r,n)}function Wp(e,t){return e.size===0?!1:Fg(e,t)}function Fg(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Fg(e,n):!1}let Go;function E3(e){Go=e}function x3(){Go=void 0}const Ze=e=>Go?(...n)=>{try{return e(...n)}catch(r){if(Go&&Go(r)===!0)return()=>{};throw r}}:e;function Yn(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 za=[];function ki(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 Hg(e,t){const n=new T3;za.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=Yn([window,"optionalAccess",s=>s.Zone,"optionalAccess",s=>s.__symbol__,"optionalCall",s=>s("MutationObserver")]);o&&window[o]&&(r=window[o]);const i=new r(Ze(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 I3({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const o=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let s=[],l;const u=ci(Ze(p=>{const h=Date.now()-l;e(s.map(m=>(m.timeOffset-=h,m)),p),s=[],l=null}),i),d=Ze(ci(Ze(p=>{const h=ki(p),{clientX:m,clientY:y}=qu(p)?p.changedTouches[0]:p;l||(l=Os()),s.push({x:m,y,id:r.getId(h),timeOffset:Os()-l}),u(typeof DragEvent<"u"&&p instanceof DragEvent?He.Drag:p instanceof MouseEvent?He.MouseMove:He.TouchMove)}),o,{trailing:!1})),c=[nn("mousemove",d,n),nn("touchmove",d,n),nn("drag",d,n)];return Ze(()=>{c.forEach(p=>p())})}function P3({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const l=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[];let d=null;const c=p=>h=>{const m=ki(h);if(Bn(m,r,o,i,!0))return;let y=null,w=p;if("pointerType"in h){switch(h.pointerType){case"mouse":y=mr.Mouse;break;case"touch":y=mr.Touch;break;case"pen":y=mr.Pen;break}y===mr.Touch?Zt[p]===Zt.MouseDown?w="TouchStart":Zt[p]===Zt.MouseUp&&(w="TouchEnd"):mr.Pen}else qu(h)&&(y=mr.Touch);y!==null?(d=y,(w.startsWith("Touch")&&y===mr.Touch||w.startsWith("Mouse")&&y===mr.Mouse)&&(y=null)):Zt[p]===Zt.Click&&(y=d,d=null);const k=qu(h)?h.changedTouches[0]:h;if(!k)return;const _=n.getId(m),{clientX:x,clientY:S}=k;Ze(e)({type:Zt[w],id:_,x,y:S,...y!==null&&{pointerType:y}})};return Object.keys(Zt).filter(p=>Number.isNaN(Number(p))&&!p.endsWith("_Departed")&&l[p]!==!1).forEach(p=>{let h=mo(p);const m=c(p);if(window.PointerEvent)switch(Zt[p]){case Zt.MouseDown:case Zt.MouseUp:h=h.replace("mouse","pointer");break;case Zt.TouchStart:case Zt.TouchEnd:return}u.push(nn(h,m,t))}),Ze(()=>{u.forEach(p=>p())})}function Ug({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){const l=Ze(ci(Ze(u=>{const d=ki(u);if(!d||Bn(d,r,o,i,!0))return;const c=n.getId(d);if(d===t&&t.defaultView){const p=Ng(t.defaultView);e({id:c,x:p.left,y:p.top})}else e({id:c,x:d.scrollLeft,y:d.scrollTop})}),s.scroll||100));return nn("scroll",l,t)}function O3({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const o=Ze(ci(Ze(()=>{const i=Dg(),s=Mg();(n!==i||r!==s)&&(e({width:Number(s),height:Number(i)}),n=i,r=s)}),200));return nn("resize",o,t)}const N3=["INPUT","TEXTAREA","SELECT"],qp=new WeakMap;function D3({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:l,maskInputOptions:u,maskInputFn:d,sampling:c,userTriggeredOnInput:p,maskTextClass:h,unmaskTextClass:m,maskTextSelector:y,unmaskTextSelector:w}){function k(I){let $=ki(I);const W=I.isTrusted,j=$&&Wu($.tagName);if(j==="OPTION"&&($=$.parentElement),!$||!j||N3.indexOf(j)<0||Bn($,r,o,i,!0))return;const M=$;if(M.classList.contains(s)||l&&M.matches(l))return;const D=nd($);let R=Is(M,j,D),K=!1;const G=sl({maskInputOptions:u,tagName:j,type:D}),Y=vo($,h,y,m,w,G);(D==="radio"||D==="checkbox")&&(K=$.checked),R=li({isMasked:Y,element:$,value:R,maskInputFn:d}),_($,p?{text:R,isChecked:K,userTriggered:W}:{text:R,isChecked:K});const z=$.name;D==="radio"&&z&&K&&t.querySelectorAll(`input[type="radio"][name="${z}"]`).forEach(H=>{if(H!==$){const C=li({isMasked:Y,element:H,value:Is(H,j,D),maskInputFn:d});_(H,p?{text:C,isChecked:!K,userTriggered:!1}:{text:C,isChecked:!K})}})}function _(I,$){const W=qp.get(I);if(!W||W.text!==$.text||W.isChecked!==$.isChecked){qp.set(I,$);const j=n.getId(I);Ze(e)({...$,id:j})}}const S=(c.input==="last"?["change"]:["input","change"]).map(I=>nn(I,Ze(k),t)),b=t.defaultView;if(!b)return()=>{S.forEach(I=>I())};const N=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),T=[[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 N&&N.set&&S.push(...T.map(I=>Og(I[0],I[1],{set(){Ze(k)({target:this,isTrusted:!1})}},!1,b))),Ze(()=>{S.forEach(I=>I())})}function Ns(e){const t=[];function n(r,o){if(Yi("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Yi("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Yi("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Yi("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 Br(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function M3({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:Ze((c,p,h)=>{const[m,y]=h,{id:w,styleId:k}=Br(p,t,n.styleMirror);return(w&&w!==-1||k&&k!==-1)&&e({id:w,styleId:k,adds:[{rule:m,index:y}]}),c.apply(p,h)})});const i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:Ze((c,p,h)=>{const[m]=h,{id:y,styleId:w}=Br(p,t,n.styleMirror);return(y&&y!==-1||w&&w!==-1)&&e({id:y,styleId:w,removes:[{index:m}]}),c.apply(p,h)})});let s;r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:Ze((c,p,h)=>{const[m]=h,{id:y,styleId:w}=Br(p,t,n.styleMirror);return(y&&y!==-1||w&&w!==-1)&&e({id:y,styleId:w,replace:m}),c.apply(p,h)})}));let l;r.CSSStyleSheet.prototype.replaceSync&&(l=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:Ze((c,p,h)=>{const[m]=h,{id:y,styleId:w}=Br(p,t,n.styleMirror);return(y&&y!==-1||w&&w!==-1)&&e({id:y,styleId:w,replaceSync:m}),c.apply(p,h)})}));const u={};Gi("CSSGroupingRule")?u.CSSGroupingRule=r.CSSGroupingRule:(Gi("CSSMediaRule")&&(u.CSSMediaRule=r.CSSMediaRule),Gi("CSSConditionRule")&&(u.CSSConditionRule=r.CSSConditionRule),Gi("CSSSupportsRule")&&(u.CSSSupportsRule=r.CSSSupportsRule));const d={};return Object.entries(u).forEach(([c,p])=>{d[c]={insertRule:p.prototype.insertRule,deleteRule:p.prototype.deleteRule},p.prototype.insertRule=new Proxy(d[c].insertRule,{apply:Ze((h,m,y)=>{const[w,k]=y,{id:_,styleId:x}=Br(m.parentStyleSheet,t,n.styleMirror);return(_&&_!==-1||x&&x!==-1)&&e({id:_,styleId:x,adds:[{rule:w,index:[...Ns(m),k||0]}]}),h.apply(m,y)})}),p.prototype.deleteRule=new Proxy(d[c].deleteRule,{apply:Ze((h,m,y)=>{const[w]=y,{id:k,styleId:_}=Br(m.parentStyleSheet,t,n.styleMirror);return(k&&k!==-1||_&&_!==-1)&&e({id:k,styleId:_,removes:[{index:[...Ns(m),w]}]}),h.apply(m,y)})})}),Ze(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,s&&(r.CSSStyleSheet.prototype.replace=s),l&&(r.CSSStyleSheet.prototype.replaceSync=l),Object.entries(u).forEach(([c,p])=>{p.prototype.insertRule=d[c].insertRule,p.prototype.deleteRule=d[c].deleteRule})})}function zg({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"?Yn([n,"access",s=>s.defaultView,"optionalAccess",s=>s.Document]):Yn([n,"access",s=>s.ownerDocument,"optionalAccess",s=>s.defaultView,"optionalAccess",s=>s.ShadowRoot]),i=Yn([o,"optionalAccess",s=>s.prototype])?Object.getOwnPropertyDescriptor(Yn([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 Yn([i,"access",s=>s.get,"optionalAccess",s=>s.call,"call",s=>s(this)])},set(s){const l=Yn([i,"access",u=>u.set,"optionalAccess",u=>u.call,"call",u=>u(this,s)]);if(r!==null&&r!==-1)try{t.adoptStyleSheets(s,r)}catch{}return l}}),Ze(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function B3({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:Ze((l,u,d)=>{const[c,p,h]=d;if(n.has(c))return i.apply(u,[c,p,h]);const{id:m,styleId:y}=Br(Yn([u,"access",w=>w.parentRule,"optionalAccess",w=>w.parentStyleSheet]),t,r.styleMirror);return(m&&m!==-1||y&&y!==-1)&&e({id:m,styleId:y,set:{property:c,value:p,priority:h},index:Ns(u.parentRule)}),l.apply(u,d)})});const s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:Ze((l,u,d)=>{const[c]=d;if(n.has(c))return s.apply(u,[c]);const{id:p,styleId:h}=Br(Yn([u,"access",m=>m.parentRule,"optionalAccess",m=>m.parentStyleSheet]),t,r.styleMirror);return(p&&p!==-1||h&&h!==-1)&&e({id:p,styleId:h,remove:{property:c},index:Ns(u.parentRule)}),l.apply(u,d)})}),Ze(()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s})}function A3({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:s}){const l=Ze(d=>ci(Ze(c=>{const p=ki(c);if(!p||Bn(p,t,n,r,!0))return;const{currentTime:h,volume:m,muted:y,playbackRate:w}=p;e({type:d,id:o.getId(p),currentTime:h,volume:m,muted:y,playbackRate:w})}),i.media||500)),u=[nn("play",l(0),s),nn("pause",l(1),s),nn("seeked",l(2),s),nn("volumechange",l(3),s),nn("ratechange",l(4),s)];return Ze(()=>{u.forEach(d=>d())})}function R3({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(u,d,c){const p=new i(u,d,c);return o.set(p,{family:u,buffer:typeof d!="string",descriptors:c,fontSource:typeof d=="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))}),p};const s=od(t.fonts,"add",function(l){return function(u){return setTimeout(Ze(()=>{const d=o.get(u);d&&(e(d),o.delete(u))}),0),l.apply(this,[u])}});return r.push(()=>{n.FontFace=i}),r.push(s),Ze(()=>{r.forEach(l=>l())})}function $3(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:s}=e;let l=!0;const u=Ze(()=>{const d=t.getSelection();if(!d||l&&Yn([d,"optionalAccess",h=>h.isCollapsed]))return;l=d.isCollapsed||!1;const c=[],p=d.rangeCount||0;for(let h=0;h<p;h++){const m=d.getRangeAt(h),{startContainer:y,startOffset:w,endContainer:k,endOffset:_}=m;Bn(y,r,o,i,!0)||Bn(k,r,o,i,!0)||c.push({start:n.getId(y),startOffset:w,end:n.getId(k),endOffset:_})}s({ranges:c})});return u(),nn("selectionchange",u)}function L3({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:od(n.customElements,"define",function(o){return function(i,s,l){try{t({define:{name:i}})}catch{}return o.apply(this,[i,s,l])}})}function V3(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};const r=Hg(e,e.doc),o=I3(e),i=P3(e),s=Ug(e),l=O3(e,{win:n}),u=D3(e),d=A3(e),c=M3(e,{win:n}),p=zg(e,e.doc),h=B3(e,{win:n}),m=e.collectFonts?R3(e):()=>{},y=$3(e),w=L3(e),k=[];for(const _ of e.plugins)k.push(_.observer(_.callback,n,_.options));return Ze(()=>{za.forEach(_=>_.reset()),r.disconnect(),o(),i(),s(),l(),u(),d(),c(),p(),h(),m(),y(),w(),k.forEach(_=>_())})}function Yi(e){return typeof window[e]<"u"}function Gi(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Ku{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 Yp(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 F3{constructor(){this.crossOriginIframeMirror=new Ku(rd),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class H3{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Ku(rd),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ku(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}),Yp([this,"access",r=>r.loadListener,"optionalCall",r=>r(t)]),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const o=this.crossOriginIframeMap.get(t.source);if(!o)return;const i=this.transformCrossOriginEvent(o,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case Fe.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:Fe.IncrementalSnapshot,data:{source:He.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Fe.Meta:case Fe.Load:case Fe.DomContentLoaded:return!1;case Fe.Plugin:return n;case Fe.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Fe.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"]),Yp([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!==Bt.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class U3{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class z3{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(!Yo(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const r=Hg({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Ug({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(zg({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(od(t.prototype,"attachShadow",function(o){return function(i){const s=o.call(this,i);return this.shadowRoot&&Lg(this)&&r.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class Gp{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class j3{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new y3,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},o=[];for(const i of t){let s;this.styleMirror.has(i)?s=this.styleMirror.getId(i):(s=this.styleMirror.add(i),o.push({styleId:s,rules:Array.from(i.rules||CSSRule,(l,u)=>({rule:Eg(l),index:u}))})),r.styleIds.push(s)}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class W3{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){k3(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(o=>o!==n)}add(t,n){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function Dt(e){const t=e;return t.timestamp=Os(),t}let Ds;const Dn=qR();function Fr(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:l="rr-ignore",ignoreSelector:u=null,maskAllText:d=!1,maskTextClass:c="rr-mask",unmaskTextClass:p=null,maskTextSelector:h=null,unmaskTextSelector:m=null,inlineStylesheet:y=!0,maskAllInputs:w,maskInputOptions:k,slimDOMOptions:_,maskAttributeFn:x,maskInputFn:S,maskTextFn:b,packFn:N,sampling:T={},dataURLOptions:I={},mousemoveWait:$,recordCanvas:W=!1,recordCrossOriginIframes:j=!1,recordAfter:M=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:D=!1,collectFonts:R=!1,inlineImages:K=!1,plugins:G,keepIframeSrcFn:Y=()=>!1,ignoreCSSAttributes:z=new Set([]),errorHandler:H,onMutation:C,getCanvasManager:U}=e;E3(H);const Q=j?window.parent===window:!0;let X=!1;if(!Q)try{window.parent.document&&(X=!1)}catch{X=!0}if(Q&&!t)throw new Error("emit function is required");$!==void 0&&T.mousemove===void 0&&(T.mousemove=$),Dn.reset();const V=w===!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}:k!==void 0?k:{},E=_===!0||_==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:_==="all",headMetaDescKeywords:_==="all"}:_||{};g3();let O,A=0;const Z=pe=>{for(const Ne of G||[])Ne.eventProcessor&&(pe=Ne.eventProcessor(pe));return N&&!X&&(pe=N(pe)),pe},re=(pe,Ne)=>{if(zl([za,"access",ae=>ae[0],"optionalAccess",ae=>ae.isFrozen,"call",ae=>ae()])&&pe.type!==Fe.FullSnapshot&&!(pe.type===Fe.IncrementalSnapshot&&pe.data.source===He.Mutation)&&za.forEach(ae=>ae.unfreeze()),Q)zl([t,"optionalCall",ae=>ae(Z(pe),Ne)]);else if(X){const ae={type:"rrweb",event:Z(pe),origin:window.location.origin,isCheckout:Ne};window.parent.postMessage(ae,"*")}if(pe.type===Fe.FullSnapshot)O=pe,A=0;else if(pe.type===Fe.IncrementalSnapshot){if(pe.data.source===He.Mutation&&pe.data.isAttachIframe)return;A++;const ae=r&&A>=r,he=n&&O&&pe.timestamp-O.timestamp>n;(ae||he)&&Ye(!0)}},ie=pe=>{re(Dt({type:Fe.IncrementalSnapshot,data:{source:He.Mutation,...pe}}))},Te=pe=>re(Dt({type:Fe.IncrementalSnapshot,data:{source:He.Scroll,...pe}})),Pe=pe=>re(Dt({type:Fe.IncrementalSnapshot,data:{source:He.CanvasMutation,...pe}})),fe=pe=>re(Dt({type:Fe.IncrementalSnapshot,data:{source:He.AdoptedStyleSheet,...pe}})),Ie=new j3({mutationCb:ie,adoptedStyleSheetCb:fe}),Ve=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new F3:new H3({mirror:Dn,mutationCb:ie,stylesheetManager:Ie,recordCrossOriginIframes:j,wrappedEmit:re});for(const pe of G||[])pe.getMirror&&pe.getMirror({nodeMirror:Dn,crossOriginIframeMirror:Ve.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ve.crossOriginIframeStyleMirror});const Be=new W3,at=Y3(U,{mirror:Dn,win:window,mutationCb:pe=>re(Dt({type:Fe.IncrementalSnapshot,data:{source:He.CanvasMutation,...pe}})),recordCanvas:W,blockClass:o,blockSelector:i,unblockSelector:s,sampling:T.canvas,dataURLOptions:I,errorHandler:H}),Je=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new U3:new z3({mutationCb:ie,scrollCb:Te,bypassOptions:{onMutation:C,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:d,maskTextClass:c,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m,inlineStylesheet:y,maskInputOptions:V,dataURLOptions:I,maskAttributeFn:x,maskTextFn:b,maskInputFn:S,recordCanvas:W,inlineImages:K,sampling:T,slimDOMOptions:E,iframeManager:Ve,stylesheetManager:Ie,canvasManager:at,keepIframeSrcFn:Y,processedNodeManager:Be},mirror:Dn}),Ye=(pe=!1)=>{re(Dt({type:Fe.Meta,data:{href:window.location.href,width:Mg(),height:Dg()}}),pe),Ie.reset(),Je.init(),za.forEach(ae=>ae.lock());const Ne=m3(document,{mirror:Dn,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:d,maskTextClass:c,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m,inlineStylesheet:y,maskAllInputs:V,maskAttributeFn:x,maskInputFn:S,maskTextFn:b,slimDOM:E,dataURLOptions:I,recordCanvas:W,inlineImages:K,onSerialize:ae=>{Ag(ae,Dn)&&Ve.addIframe(ae),Rg(ae,Dn)&&Ie.trackLinkElement(ae),Yu(ae)&&Je.addShadowRoot(ae.shadowRoot,document)},onIframeLoad:(ae,he)=>{Ve.attachIframe(ae,he),Je.observeAttachShadow(ae)},onStylesheetLoad:(ae,he)=>{Ie.attachLinkElement(ae,he)},keepIframeSrcFn:Y});if(!Ne)return console.warn("Failed to snapshot the document");re(Dt({type:Fe.FullSnapshot,data:{node:Ne,initialOffset:Ng(window)}})),za.forEach(ae=>ae.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Ie.adoptStyleSheets(document.adoptedStyleSheets,Dn.getId(document))};Ds=Ye;try{const pe=[],Ne=he=>Ze(V3)({onMutation:C,mutationCb:ie,mousemoveCb:(le,je)=>re(Dt({type:Fe.IncrementalSnapshot,data:{source:je,positions:le}})),mouseInteractionCb:le=>re(Dt({type:Fe.IncrementalSnapshot,data:{source:He.MouseInteraction,...le}})),scrollCb:Te,viewportResizeCb:le=>re(Dt({type:Fe.IncrementalSnapshot,data:{source:He.ViewportResize,...le}})),inputCb:le=>re(Dt({type:Fe.IncrementalSnapshot,data:{source:He.Input,...le}})),mediaInteractionCb:le=>re(Dt({type:Fe.IncrementalSnapshot,data:{source:He.MediaInteraction,...le}})),styleSheetRuleCb:le=>re(Dt({type:Fe.IncrementalSnapshot,data:{source:He.StyleSheetRule,...le}})),styleDeclarationCb:le=>re(Dt({type:Fe.IncrementalSnapshot,data:{source:He.StyleDeclaration,...le}})),canvasMutationCb:Pe,fontCb:le=>re(Dt({type:Fe.IncrementalSnapshot,data:{source:He.Font,...le}})),selectionCb:le=>{re(Dt({type:Fe.IncrementalSnapshot,data:{source:He.Selection,...le}}))},customElementCb:le=>{re(Dt({type:Fe.IncrementalSnapshot,data:{source:He.CustomElement,...le}}))},blockClass:o,ignoreClass:l,ignoreSelector:u,maskAllText:d,maskTextClass:c,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m,maskInputOptions:V,inlineStylesheet:y,sampling:T,recordCanvas:W,inlineImages:K,userTriggeredOnInput:D,collectFonts:R,doc:he,maskAttributeFn:x,maskInputFn:S,maskTextFn:b,keepIframeSrcFn:Y,blockSelector:i,unblockSelector:s,slimDOMOptions:E,dataURLOptions:I,mirror:Dn,iframeManager:Ve,stylesheetManager:Ie,shadowDomManager:Je,processedNodeManager:Be,canvasManager:at,ignoreCSSAttributes:z,plugins:zl([G,"optionalAccess",le=>le.filter,"call",le=>le(je=>je.observer),"optionalAccess",le=>le.map,"call",le=>le(je=>({observer:je.observer,options:je.options,callback:xe=>re(Dt({type:Fe.Plugin,data:{plugin:je.name,payload:xe}}))}))])||[]},{});Ve.addLoadListener(he=>{try{pe.push(Ne(he.contentDocument))}catch(le){console.warn(le)}});const ae=()=>{Ye(),pe.push(Ne(document))};return document.readyState==="interactive"||document.readyState==="complete"?ae():(pe.push(nn("DOMContentLoaded",()=>{re(Dt({type:Fe.DomContentLoaded,data:{}})),M==="DOMContentLoaded"&&ae()})),pe.push(nn("load",()=>{re(Dt({type:Fe.Load,data:{}})),M==="load"&&ae()},window))),()=>{pe.forEach(he=>he()),Be.destroy(),Ds=void 0,x3()}}catch(pe){console.warn(pe)}}function q3(e){if(!Ds)throw new Error("please take full snapshot after start recording");Ds(e)}Fr.mirror=Dn;Fr.takeFullSnapshot=q3;function Y3(e,t){try{return e?e(t):new Gp}catch{return console.warn("Unable to initialize CanvasManager"),new Gp}}const G3=3,K3=5;function id(e){return e>9999999999?e:e*1e3}function Zl(e){return e>9999999999?e/1e3:e}function Si(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Fe.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:qn(t,10,1e3)}}),t.category==="console")))}const X3="button,a";function jg(e){return e.closest(X3)||e}function Wg(e){const t=qg(e);return!t||!(t instanceof Element)?t:jg(t)}function qg(e){return J3(e)?e.target:e}function J3(e){return typeof e=="object"&&!!e&&"target"in e}let Ar;function Z3(e){return Ar||(Ar=[],Q3()),Ar.push(e),()=>{const t=Ar?Ar.indexOf(e):-1;t>-1&&Ar.splice(t,1)}}function Q3(){$t(ht,"open",function(e){return function(...t){if(Ar)try{Ar.forEach(n=>n())}catch{}return e.apply(ht,t)}})}function e$(e,t,n){e.handleClick(t,n)}class t${constructor(t,n,r=Si){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=Z3(()=>{this._lastMutation=Kp()});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(r$(n,this._ignoreSelector)||!a$(t))return;const r={timestamp:Zl(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=Zl(t)}registerScroll(t=Date.now()){this._lastScroll=Zl(t)}registerClick(t){const n=jg(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=Kp();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const o=this._clicks.indexOf(r);o>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!r&&!o,{clickCount:s,clickBreadcrumb:l}=t;if(i){const u=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,d=u<this._timeout*1e3?"mutation":"timeout",c={type:"default",message:l.message,timestamp:l.timestamp,category:"ui.slowClickDetected",data:{...l.data,url:ht.location.href,route:n.getCurrentRoute(),timeAfterClickMs:u,endReason:d,clickCount:s||1}};this._addBreadcrumbEvent(n,c);return}if(s>1){const u={type:"default",message:l.message,timestamp:l.timestamp,category:"ui.multiClick",data:{...l.data,url:ht.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(n,u)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}}const n$=["A","BUTTON","INPUT"];function r$(e,t){return!!(!n$.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 a$(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Kp(){return Date.now()/1e3}function o$(e,t){try{if(!i$(t))return;const{source:n}=t.data;if(n===He.Mutation&&e.registerMutation(t.timestamp),n===He.Scroll&&e.registerScroll(t.timestamp),s$(t)){const{type:r,id:o}=t.data,i=Fr.mirror.getNode(o);i instanceof HTMLElement&&r===Zt.Click&&e.registerClick(i)}}catch{}}function i$(e){return e.type===G3}function s$(e){return e.data.source===He.MouseInteraction}function tr(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Ms;(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"})(Ms||(Ms={}));const l$=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function u$(e){const t={};for(const n in e)if(l$.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const c$=e=>t=>{if(!e.isEnabled())return;const n=d$(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&&e$(e.clickDetector,n,Wg(t.event)),Si(e,n)};function Yg(e,t){const n=Fr.mirror.getId(e),r=n&&Fr.mirror.getNode(n),o=r&&Fr.mirror.getMeta(r),i=o&&p$(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===Ms.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:u$(i.attributes)}}:{}}}function d$(e){const{target:t,message:n}=f$(e);return tr({category:`ui.${e.name}`,...Yg(t,n)})}function f$(e){const t=e.name==="click";let n,r=null;try{r=t?Wg(e.event):qg(e.event),n=zr(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function p$(e){return e.type===Ms.Element}function h$(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=m$(t);n&&Si(e,n)}function m$(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i,target:s}=e;if(!s||v$(s)||!i)return null;const l=t||r||o,u=i.length===1;if(!l&&u)return null;const d=zr(s,{maxStringLength:200})||"<unknown>",c=Yg(s,d);return tr({category:"ui.keyDown",message:d,data:{...c.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i}})}function v$(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const Xp={resource:w$,paint:b$,navigation:_$};function g$(e){return e.map(y$).filter(Boolean)}function y$(e){return Xp[e.entryType]?Xp[e.entryType](e):null}function go(e){return((yn||ht.performance.timeOrigin)+e)/1e3}function b$(e){const{duration:t,entryType:n,name:r,startTime:o}=e,i=go(o);return{type:n,name:r,start:i,end:i+t,data:void 0}}function _$(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:l,domContentLoadedEventEnd:u,domInteractive:d,loadEventStart:c,loadEventEnd:p,redirectCount:h,startTime:m,transferSize:y,type:w}=e;return o===0?null:{type:`${t}.${w}`,start:go(m),end:go(i),name:n,data:{size:y,decodedBodySize:r,encodedBodySize:s,duration:o,domInteractive:d,domContentLoadedEventStart:l,domContentLoadedEventEnd:u,loadEventStart:c,loadEventEnd:p,domComplete:i,redirectCount:h}}}function w$(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:l,responseStatus:u,transferSize:d}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:go(i),end:go(o),name:r,data:{size:d,statusCode:u,decodedBodySize:s,encodedBodySize:l}}}function k$(e){const t=e.entries,n=t[t.length-1],r=n?n.element:void 0,o=e.value,i=go(o);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:i,end:i,data:{value:o,size:o,nodeId:r?Fr.mirror.getId(r):void 0}}}function S$(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(fo(o,n))}),r.push(ng(({metric:o})=>{e.replayPerformanceEntries.push(k$(o))})),()=>{r.forEach(o=>o())}}const ct=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,C$='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function T$(){const e=new Blob([C$]);return URL.createObjectURL(e)}function en(e,t){ct&&(ee.info(e),t&&Gg(e))}function Ga(e,t){ct&&(ee.info(e),t&&setTimeout(()=>{Gg(e)},0))}function Gg(e){jr({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class sd extends Error{constructor(){super(`Event buffer exceeded maximum size of ${td}.`)}}class Kg{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>td)throw new sd;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?id(t):null}}class E${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(){en("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((o,i)=>{const s=({data:l})=>{const u=l;if(u.method===t&&u.id===r){if(this._worker.removeEventListener("message",s),!u.success){ct&&ee.error("[Replay]",u.response),i(new Error("Error in compression worker"));return}o(u.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class x${constructor(t){this._worker=new E$(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=id(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>td?Promise.reject(new sd):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{ct&&ee.warn('[Replay] 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 I${constructor(t){this._fallback=new Kg,this._compression=new x$(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch{en("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n}=this._fallback,r=[];for(const o of t)r.push(this._compression.addEvent(o));this._compression.hasCheckout=n,this._used=this._compression;try{await Promise.all(r)}catch(o){ct&&ee.warn("[Replay] Failed to add events when switching buffers.",o)}}}function P$({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=O$(t);if(n)return n}return en("[Replay] Using simple buffer"),new Kg}function O$(e){try{const t=e||N$();if(!t)return;en(`[Replay] Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new I$(n)}catch{en("[Replay] Failed to create compression worker")}}function N$(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?T$():""}function ld(){try{return"sessionStorage"in ht&&!!ht.sessionStorage}catch{return!1}}function D$(e){M$(),e.session=void 0}function M$(){if(ld())try{ht.sessionStorage.removeItem(Qc)}catch{}}function Xg(e){return e===void 0?!1:Math.random()<e}function Jg(e){const t=Date.now(),n=e.id||Ct(),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 ud(e){if(ld())try{ht.sessionStorage.setItem(Qc,JSON.stringify(e))}catch{}}function B$(e,t){return Xg(e)?"session":t?"buffer":!1}function Jp({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=B$(e,t),i=Jg({sampled:o,previousSessionId:r});return n&&ud(i),i}function A$(e){if(!ld())return null;try{const t=ht.sessionStorage.getItem(Qc);if(!t)return null;const n=JSON.parse(t);return Ga("[Replay] Loading existing session",e),Jg(n)}catch{return null}}function Xu(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function Zg(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Xu(e.started,t,r)||Xu(e.lastActivity,n,r)}function Qg(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Zg(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function Ql({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:r},o){const i=o.stickySession&&A$(e);return i?Qg(i,{sessionIdleExpire:t,maxReplayDuration:n})?(Ga("[Replay] Session in sessionStorage is expired, creating new one..."),Jp(o,{previousSessionId:i.id})):i:(Ga("[Replay] Creating new session",e),Jp(o,{previousSessionId:r}))}function R$(e){return e.type===Fe.Custom}function cd(e,t,n){return ty(e,t)?(ey(e,t,n),!0):!1}function $$(e,t,n){return ty(e,t)?ey(e,t,n):Promise.resolve(null)}async function ey(e,t,n){if(!e.eventBuffer)return null;try{n&&e.recordingMode==="buffer"&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const r=e.getOptions(),o=L$(t,r.beforeAddRecordingEvent);return o?await e.eventBuffer.addEvent(o):void 0}catch(r){const o=r&&r instanceof sd?"addEventSizeExceeded":"addEvent";ct&&ee.error(r),await e.stop({reason:o});const i=lt();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function ty(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=id(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(en(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1):!0}function L$(e,t){try{if(typeof t=="function"&&R$(e))return t(e)}catch(n){return ct&&ee.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",n),null}return e}function dd(e){return!e.type}function Ju(e){return e.type==="transaction"}function V$(e){return e.type==="replay_event"}function Zp(e){return e.type==="feedback"}function ny(e){const t=U$();return(n,r)=>{if(!e.isEnabled()||!dd(n)&&!Ju(n))return;const o=r&&r.statusCode;if(!(t&&(!o||o<200||o>=300))){if(Ju(n)){F$(e,n);return}H$(e,n)}}}function F$(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 H$(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||setTimeout(()=>{e.sendBufferedReplayOrFlush()})}function U$(){const e=lt();if(!e)return!1;const t=e.getTransport();return t&&t.send.__sentry__baseTransport__||!1}function z$(e){return t=>{!e.isEnabled()||!dd(t)||j$(e,t)}}function j$(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0].value;if(typeof n=="string"&&(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=tr({category:"replay.hydrate-error"});Si(e,r)}}function W$(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function q$(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:Fe.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 Y$(e,t){return e.recordingMode!=="buffer"||t.message===ed||!t.exception||t.type?!1:Xg(e.getOptions().errorSampleRate)}function G$(e,t=!1){const n=t?ny(e):void 0;return Object.assign((r,o)=>e.isEnabled()?V$(r)?(delete r.breadcrumbs,r):!dd(r)&&!Ju(r)&&!Zp(r)||!e.checkAndHandleExpiredSession()?r:Zp(r)?(e.flush(),r.contexts.feedback.replay_id=e.getSessionId(),q$(e,r),r):W$(r,o)&&!e.getOptions()._experiments.captureExceptions?(ct&&ee.log("[Replay] Ignoring error from rrweb internals",r),null):((Y$(e,r)||e.recordingMode==="session")&&(r.tags={...r.tags,replayId:e.getSessionId()}),n&&n(r,{statusCode:200}),r):r,{id:"Replay"})}function ll(e,t){return t.map(({type:n,start:r,end:o,name:i,data:s})=>{const l=e.throttledAddEvent({type:Fe.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 K$(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 X$(e){return t=>{if(!e.isEnabled())return;const n=K$(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(ll(e,[n]),!1)))}}function J$(e,t){return ct&&e.getOptions()._experiments.traceInternals?!1:YM(t,lt())}function ul(e,t){e.isEnabled()&&t!==null&&(J$(e,t.name)||e.addUpdate(()=>(ll(e,[t]),!0)))}function Z$(e){const{startTimestamp:t,endTimestamp:n,fetchData:r,response:o}=e;if(!n)return null;const{method:i,url:s}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:s,data:{method:i,statusCode:o?o.status:void 0}}}function Q$(e){return t=>{if(!e.isEnabled())return;const n=Z$(t);ul(e,n)}}function eL(e){const{startTimestamp:t,endTimestamp:n,xhr:r}=e,o=r[Lr];if(!t||!n||!o)return null;const{method:i,url:s,status_code:l}=o;return s===void 0?null:{type:"resource.xhr",name:s,start:t/1e3,end:n/1e3,data:{method:i,statusCode:l}}}function tL(e){return t=>{if(!e.isEnabled())return;const n=eL(t);ul(e,n)}}function cl(e,t){if(e)try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=iy(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function ry(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function ay(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[iy(e)];if(!e)return[void 0]}catch{return ct&&ee.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ct&&ee.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Bs(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 oy(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:s,request:l,response:u}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:an({method:i,statusCode:s,request:l,response:u})}}function di(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Hr(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}=nL(n);return r.body=o,i&&i.length>0&&(r._meta={warnings:i}),r}function Zu(e,t){return Object.keys(e).reduce((n,r)=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=e[r]),n},{})}function iy(e){return new URLSearchParams(e).toString()}function nL(e){if(!e||typeof e!="string")return{body:e};const t=e.length>$p,n=rL(e);if(t){const r=e.slice(0,$p);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 rL(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function As(e,t){const n=aL(e);return _o(n,t)}function aL(e,t=ht.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(ht.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 oL(e,t,n){try{const r=await sL(e,t,n),o=oy("resource.fetch",r);ul(n.replay,o)}catch(r){ct&&ee.error("[Replay] Failed to capture fetch breadcrumb",r)}}function iL(e,t,n){const{input:r,response:o}=t,i=r?sy(r):void 0,s=cl(i,n.textEncoder),l=o?ry(o.headers.get("content-length")):void 0;s!==void 0&&(e.data.request_body_size=s),l!==void 0&&(e.data.response_body_size=l)}async function sL(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r}=t,{url:s,method:l,status_code:u=0,request_body_size:d,response_body_size:c}=e.data,p=As(s,n.networkDetailAllowUrls)&&!As(s,n.networkDetailDenyUrls),h=p?lL(n,t.input,d):di(d),m=await uL(p,n,t.response,c);return{startTimestamp:o,endTimestamp:i,url:s,method:l,statusCode:u,request:h,response:m}}function lL({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?fL(n,t):{};if(!e)return Hr(o,r,void 0);const i=sy(n),[s,l]=ay(i),u=Hr(o,r,s);return l?Bs(u,l):u}async function uL(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},o,i){if(!e&&i!==void 0)return di(i);const s=o?ly(o.headers,r):{};if(!o||!t&&i!==void 0)return Hr(s,i,void 0);const[l,u]=await dL(o),d=cL(l,{networkCaptureBodies:t,textEncoder:n,responseBodySize:i,captureDetails:e,headers:s});return u?Bs(d,u):d}function cL(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:r,captureDetails:o,headers:i}){try{const s=e&&e.length&&r===void 0?cl(e,n):r;return o?t?Hr(i,s,e):Hr(i,s,void 0):di(s)}catch(s){return ct&&ee.warn("[Replay] Failed to serialize response body",s),Hr(i,r,void 0)}}async function dL(e){const t=pL(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await hL(t)]}catch(n){return ct&&ee.warn("[Replay] Failed to get text body from response",n),[void 0,"BODY_PARSE_ERROR"]}}function sy(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function ly(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function fL(e,t){return e.length===1&&typeof e[0]!="string"?Qp(e[0],t):e.length===2?Qp(e[1],t):{}}function Qp(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?ly(n,t):Array.isArray(n)?{}:Zu(n,t):{}}function pL(e){try{return e.clone()}catch(t){ct&&ee.warn("[Replay] Failed to clone response body",t)}}function hL(e){return new Promise((t,n)=>{const r=setTimeout(()=>n(new Error("Timeout while trying to read response body")),500);mL(e).then(o=>t(o),o=>n(o)).finally(()=>clearTimeout(r))})}async function mL(e){return await e.text()}async function vL(e,t,n){try{const r=yL(e,t,n),o=oy("resource.xhr",r);ul(n.replay,o)}catch(r){ct&&ee.error("[Replay] Failed to capture xhr breadcrumb",r)}}function gL(e,t,n){const{xhr:r,input:o}=t;if(!r)return;const i=cl(o,n.textEncoder),s=r.getResponseHeader("content-length")?ry(r.getResponseHeader("content-length")):kL(r.response,r.responseType,n.textEncoder);i!==void 0&&(e.data.request_body_size=i),s!==void 0&&(e.data.response_body_size=s)}function yL(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r,input:s,xhr:l}=t,{url:u,method:d,status_code:c=0,request_body_size:p,response_body_size:h}=e.data;if(!u)return null;if(!l||!As(u,n.networkDetailAllowUrls)||As(u,n.networkDetailDenyUrls)){const T=di(p),I=di(h);return{startTimestamp:o,endTimestamp:i,url:u,method:d,statusCode:c,request:T,response:I}}const m=l[Lr],y=m?Zu(m.request_headers,n.networkRequestHeaders):{},w=Zu(bL(l),n.networkResponseHeaders),[k,_]=n.networkCaptureBodies?ay(s):[void 0],[x,S]=n.networkCaptureBodies?_L(l):[void 0],b=Hr(y,p,k),N=Hr(w,h,x);return{startTimestamp:o,endTimestamp:i,url:u,method:d,statusCode:c,request:_?Bs(b,_):b,response:S?Bs(N,S):N}}function bL(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
|
|
93
|
+
`).reduce((n,r)=>{const[o,i]=r.split(": ");return n[o.toLowerCase()]=i,n},{}):{}}function _L(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return wL(e.response,e.responseType)}catch(n){t.push(n)}return ct&&ee.warn("[Replay] Failed to get xhr response body",...t),[void 0]}function wL(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch{return ct&&ee.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ct&&ee.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function kL(e,t,n){try{const r=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return cl(r,n)}catch{return}}function SL(e){const t=lt();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:o,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:l}=e.getOptions(),u={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:o,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:l};t&&t.on?t.on("beforeAddBreadcrumb",(d,c)=>CL(u,d,c)):(Lc(Q$(e)),Vc(tL(e)))}catch{}}function CL(e,t,n){if(t.data)try{TL(t)&&xL(n)&&(gL(t,n,e),vL(t,n,e)),EL(t)&&IL(n)&&(iL(t,n,e),oL(t,n,e))}catch{ct&&ee.warn("Error when enriching network breadcrumb")}}function TL(e){return e.category==="xhr"}function EL(e){return e.category==="fetch"}function xL(e){return e&&e.xhr}function IL(e){return e&&e.response}let eh=null;function PL(e){return!!e.category}const OL=e=>t=>{if(!e.isEnabled())return;const n=NL(t);n&&Si(e,n)};function NL(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return eh===t||!t||(eh=t,!PL(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))?null:t.category==="console"?DL(t):tr(t)}function DL(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return tr(e);let n=!1;const r=t.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>qi?(n=!0,`${o.slice(0,qi)}…`):o;if(typeof o=="object")try{const i=qn(o,7);return JSON.stringify(i).length>qi?(n=!0,`${JSON.stringify(i,null,2).slice(0,qi)}…`):i}catch{}return o});return tr({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function ML(e){const t=dn(),n=lt();t.addScopeListener(OL(e)),fv(c$(e)),Qs(X$(e)),SL(e);const r=G$(e,!th(n));n&&n.addEventProcessor?n.addEventProcessor(r):FM(r),th(n)&&(n.on("beforeSendEvent",z$(e)),n.on("afterSendEvent",ny(e)),n.on("createDsc",o=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(o.replay_id=i)}),n.on("startTransaction",o=>{e.lastTransaction=o}),n.on("finishTransaction",o=>{e.lastTransaction=o}),n.on("beforeSendFeedback",(o,i)=>{const s=e.getSessionId();i&&i.includeReplay&&e.isEnabled()&&s&&o.contexts&&o.contexts.feedback&&(o.contexts.feedback.replay_id=s)}))}function th(e){return!!(e&&e.on)}async function BL(e){try{return Promise.all(ll(e,[AL(ht.performance.memory)]))}catch{return[]}}function AL(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 RL(e,t,n){let r,o,i;const s=n&&n.maxWait?Math.max(n.maxWait,t):0;function l(){return u(),r=e(),r}function u(){o!==void 0&&clearTimeout(o),i!==void 0&&clearTimeout(i),o=i=void 0}function d(){return o!==void 0||i!==void 0?l():r}function c(){return o&&clearTimeout(o),o=setTimeout(l,t),s&&i===void 0&&(i=setTimeout(l,s)),r}return c.cancel=u,c.flush=d,c}function $L(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){ct&&ee.warn("[Replay] Received replay event after session expired.");return}const o=r||!t;t=!0,e.clickDetector&&o$(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&o&&e.setInitialState(),!cd(e,n,o))return!0;if(!o)return!1;if(VL(e,o),e.session&&e.session.previousSessionId)return!0;if(e.recordingMode==="buffer"&&e.session&&e.eventBuffer){const i=e.eventBuffer.getEarliestTimestamp();i&&(en(`[Replay] Updating session start time to earliest event in buffer to ${new Date(i)}`,e.getOptions()._experiments.traceInternals),e.session.started=i,e.getOptions().stickySession&&ud(e.session))}return e.recordingMode==="session"&&e.flush(),!0})}}function LL(e){const t=e.getOptions();return{type:Fe.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 VL(e,t){!t||!e.session||e.session.segmentId!==0||cd(e,LL(e),!1)}function FL(e,t,n,r){return Xr(_v(e,Uc(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function HL({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
|
|
94
|
+
`;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 UL({client:e,scope:t,replayId:n,event:r}){const o=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:n,integrations:o};e.emit&&e.emit("preprocessEvent",r,i);const s=await Ev(e.getOptions(),r,i,t,e,Jr());if(!s)return null;s.platform=s.platform||"javascript";const l=e.getSdkMetadata&&e.getSdkMetadata(),{name:u,version:d}=l&&l.sdk||{};return s.sdk={...s.sdk,name:u||"sentry.javascript.unknown",version:d||"0.0.0"},s}async function zL({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:i}){const s=HL({recordingData:e,headers:{segment_id:n}}),{urls:l,errorIds:u,traceIds:d,initialTimestamp:c}=r,p=lt(),h=dn(),m=p&&p.getTransport(),y=p&&p.getDsn();if(!p||!m||!y||!i.sampled)return;const w={type:xR,replay_start_timestamp:c/1e3,timestamp:o/1e3,error_ids:u,trace_ids:d,urls:l,replay_id:t,segment_id:n,replay_type:i.sampled},k=await UL({scope:h,client:p,replayId:t,event:w});if(!k){p.recordDroppedEvent("event_processor","replay",w),en("An event processor returned `null`, will not send event.");return}delete k.sdkProcessingMetadata;const _=FL(k,s,y,p.getOptions().tunnel);let x;try{x=await m.send(_)}catch(b){const N=new Error(ed);try{N.cause=b}catch{}throw N}if(!x)return x;if(typeof x.statusCode=="number"&&(x.statusCode<200||x.statusCode>=300))throw new uy(x.statusCode);const S=kv({},x);if(wv(S,"replay"))throw new cy(S);return x}class uy extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class cy extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function dy(e,t={count:0,interval:MR}){const{recordingData:n,options:r}=e;if(n.length)try{return await zL(e),!0}catch(o){if(o instanceof uy||o instanceof cy)throw o;if(XD("Replays",{_retryCount:t.count}),ct&&r._experiments&&r._experiments.captureExceptions&&vi(o),t.count>=BR){const i=new Error(`${ed} - max retries exceeded`);try{i.cause=o}catch{}throw i}return t.interval*=++t.count,new Promise((i,s)=>{setTimeout(async()=>{try{await dy(e,t),i(!0)}catch(l){s(l)}},t.interval)})}}const fy="__THROTTLED",jL="__SKIPPED";function WL(e,t,n){const r=new Map,o=l=>{const u=l-n;r.forEach((d,c)=>{c<u&&r.delete(c)})},i=()=>[...r.values()].reduce((l,u)=>l+u,0);let s=!1;return(...l)=>{const u=Math.floor(Date.now()/1e3);if(o(u),i()>=t){const c=s;return s=!0,c?jL:fy}s=!1;const d=r.get(u)||0;return r.set(u,d+1),e(...l)}}class Rr{constructor({options:t,recordingOptions:n}){Rr.prototype.__init.call(this),Rr.prototype.__init2.call(this),Rr.prototype.__init3.call(this),Rr.prototype.__init4.call(this),Rr.prototype.__init5.call(this),Rr.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:IR,sessionIdleExpire:PR},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=RL(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=WL((s,l)=>$$(this,s,l),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:o}=this.getOptions(),i=r?{threshold:Math.min(AR,r),timeout:r,scrollTimeout:RR,ignoreSelector:o?o.join(","):""}:void 0;i&&(this.clickDetector=new t$(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options;if(!(n<=0&&r<=0)){if(this._initializeSessionForSampling(t),!this.session){this._handleException(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",Ga(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session")throw new Error("Replay recording is already in progress");if(this._isEnabled&&this.recordingMode==="buffer")throw new Error("Replay buffering is in progress, call `flush()` to save the replay");Ga("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);const t=Ql({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");Ga("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const t=Ql({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=Fr({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:DR},emit:$L(this),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{en(`[Replay] Stopping Replay${n?` triggered by ${n}`:""}`,this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,D$(this)}catch(r){this._handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),en("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),en("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();en("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&Xu(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${ht.location.pathname}${ht.location.hash}${ht.location.search}`,n=`${ht.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===fy){const o=tr({category:"replay.throttled"});this.addUpdate(()=>!cd(this,{type:K3,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastTransaction||dn().getTransaction(),r=(t&&Lt(t).data||{})[Vn];if(!(!t||!r||!["route","custom"].includes(r)))return Lt(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=P$({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(t){ct&&ee.error("[Replay]",t),ct&&this._options._experiments&&this._options._experiments.captureExceptions&&vi(t)}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=Ql({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return Qg(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{ht.document.addEventListener("visibilitychange",this._handleVisibilityChange),ht.addEventListener("blur",this._handleWindowBlur),ht.addEventListener("focus",this._handleWindowFocus),ht.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(ML(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}this._performanceCleanupCallback=S$(this)}_removeListeners(){try{ht.document.removeEventListener("visibilitychange",this._handleVisibilityChange),ht.removeEventListener("blur",this._handleWindowBlur),ht.removeEventListener("focus",this._handleWindowFocus),ht.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this._handleException(t)}}__init(){this._handleVisibilityChange=()=>{ht.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=tr({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=tr({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{h$(this,t)}}_doChangeToBackgroundTasks(t){!this.session||Zg(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()){en("[Replay] Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:Fe.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){const t=g$(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(ll(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){ct&&ee.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await BL(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 dy({replayId:t,recordingData:i,segmentId:o,eventContext:r,session:this.session,options:this.getOptions(),timestamp:n})}catch(n){this._handleException(n),this.stop({reason:"sendReplay"});const r=lt();r&&r.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){ct&&ee.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,o=Date.now()-n;this._debouncedFlush.cancel();const i=o<this._options.minReplayDuration,s=o>this._options.maxReplayDuration+5e3;if(i||s){en(`[Replay] Session duration (${Math.floor(o/1e3)}s) is too ${i?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),i&&this._debouncedFlush();return}const l=this.eventBuffer;if(l&&this.session.segmentId===0&&!l.hasCheckout&&en("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(u){ct&&ee.error(u)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&ud(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=tr({category:"replay.mutations",data:{count:n,limit:i}});this._createCustomBreadcrumb(s)}return i?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function $o(e,t,n,r){const o=typeof r=="string"?r.split(","):[],i=[...e,...o,...t];return typeof n<"u"&&(typeof n=="string"&&i.push(`.${n}`),ur(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),i.join(",")}function qL({mask:e,unmask:t,block:n,unblock:r,ignore:o,blockClass:i,blockSelector:s,maskTextClass:l,maskTextSelector:u,ignoreClass:d}){const c=['base[href="/"]'],p=$o(e,[".sentry-mask","[data-sentry-mask]"],l,u),h=$o(t,[".sentry-unmask","[data-sentry-unmask]"]),m={maskTextSelector:p,unmaskTextSelector:h,blockSelector:$o(n,[".sentry-block","[data-sentry-block]",...c],i,s),unblockSelector:$o(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:$o(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],d)};return i instanceof RegExp&&(m.blockClass=i),l instanceof RegExp&&(m.maskTextClass=l),m}function YL({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 nh='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',GL=["content-length","content-type","accept"];let rh=!1;class dl{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=OR,flushMaxDelay:n=NR,minReplayDuration:r=$R,maxReplayDuration:o=Lp,stickySession:i=!0,useCompression:s=!0,workerUrl:l,_experiments:u={},sessionSampleRate:d,errorSampleRate:c,maskAllText:p=!0,maskAllInputs:h=!0,blockAllMedia:m=!0,mutationBreadcrumbLimit:y=750,mutationLimit:w=1e4,slowClickTimeout:k=7e3,slowClickIgnoreSelectors:_=[],networkDetailAllowUrls:x=[],networkDetailDenyUrls:S=[],networkCaptureBodies:b=!0,networkRequestHeaders:N=[],networkResponseHeaders:T=[],mask:I=[],maskAttributes:$=["title","placeholder"],unmask:W=[],block:j=[],unblock:M=[],ignore:D=[],maskFn:R,beforeAddRecordingEvent:K,beforeErrorSampling:G,blockClass:Y,blockSelector:z,maskInputOptions:H,maskTextClass:C,maskTextSelector:U,ignoreClass:Q}={}){this.name=dl.id;const X=qL({mask:I,unmask:W,block:j,unblock:M,ignore:D,blockClass:Y,blockSelector:z,maskTextClass:C,maskTextSelector:U,ignoreClass:Q});if(this._recordingOptions={maskAllInputs:h,maskAllText:p,maskInputOptions:{...H||{},password:!0},maskTextFn:R,maskInputFn:R,maskAttributeFn:(V,E,O)=>YL({maskAttributes:$,maskAllText:p,privacyOptions:X,key:V,value:E,el:O}),...X,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:V=>{try{V.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,LR),maxReplayDuration:Math.min(o,Lp),stickySession:i,sessionSampleRate:d,errorSampleRate:c,useCompression:s,workerUrl:l,blockAllMedia:m,maskAllInputs:h,maskAllText:p,mutationBreadcrumbLimit:y,mutationLimit:w,slowClickTimeout:k,slowClickIgnoreSelectors:_,networkDetailAllowUrls:x,networkDetailDenyUrls:S,networkCaptureBodies:b,networkRequestHeaders:ah(N),networkResponseHeaders:ah(T),beforeAddRecordingEvent:K,beforeErrorSampling:G,_experiments:u},typeof d=="number"&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.
|
|
107
95
|
This option is deprecated and will be removed soon.
|
|
108
96
|
Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:
|
|
109
|
-
Sentry.init({ replaysSessionSampleRate: ${
|
|
97
|
+
Sentry.init({ replaysSessionSampleRate: ${d} })`),this._initialOptions.sessionSampleRate=d),typeof c=="number"&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.
|
|
110
98
|
This option is deprecated and will be removed soon.
|
|
111
99
|
Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:
|
|
112
|
-
Sentry.init({ replaysOnErrorSampleRate: ${
|
|
100
|
+
Sentry.init({ replaysOnErrorSampleRate: ${c} })`),this._initialOptions.errorSampleRate=c),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${nh}`:nh),this._isInitialized&&ap())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return rh}set _isInitialized(t){rh=t}setupOnce(){ap()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return!this._replay||!this._replay.isEnabled()?Promise.resolve():this._replay.sendBufferedReplayOrFlush(t)}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const t=KL(this._initialOptions);this._replay=new Rr({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const n=lt().getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}dl.__initStatic();function KL(e){const t=lt(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...an(e)};return n?(e.sessionSampleRate==null&&e.errorSampleRate==null&&n.replaysSessionSampleRate==null&&n.replaysOnErrorSampleRate==null&&ur(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),typeof n.replaysSessionSampleRate=="number"&&(r.sessionSampleRate=n.replaysSessionSampleRate),typeof n.replaysOnErrorSampleRate=="number"&&(r.errorSampleRate=n.replaysOnErrorSampleRate),r):(ur(()=>{console.warn("SDK client is not available.")}),r)}function ah(e){return[...GL,...e.map(t=>t.toLowerCase())]}const py=["activate","mount","update"],XL=/(?:^|[-_])(\w)/g,JL=e=>e.replace(XL,t=>t.toUpperCase()).replace(/[-_]/g,""),ZL="<Root>",eu="<Anonymous>",QL=(e,t)=>e.repeat?e.repeat(t):e,Ko=(e,t)=>{if(!e)return eu;if(e.$root===e)return ZL;if(!e.$options)return eu;const n=e.$options;let r=n.name||n._componentTag;const o=n.__file;if(!r&&o){const i=o.match(/([^/\\]+)\.vue$/);i&&(r=i[1])}return(r?`<${JL(r)}>`:eu)+(o&&t!==!1?` at ${o}`:"")},e5=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const o=t[t.length-1];if(o.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[o,n],n=0)}t.push(e),e=e.$parent}return`
|
|
113
101
|
|
|
114
102
|
found in
|
|
115
103
|
|
|
116
|
-
${t.map((o,i)=>`${(i===0?"---> ":
|
|
104
|
+
${t.map((o,i)=>`${(i===0?"---> ":QL(" ",5+i*2))+(Array.isArray(o)?`${Ko(o[0])}... (${o[1]} recursive calls)`:Ko(o))}`).join(`
|
|
117
105
|
`)}`}return`
|
|
118
106
|
|
|
119
|
-
(found in ${lo(e)})`},X3=(e,t)=>{const{errorHandler:n,warnHandler:r,silent:o}=e.config;e.config.errorHandler=(i,s,l)=>{const u=lo(s,!1),c=s?K3(s):"",f={componentName:u,lifecycleHook:l,trace:c};if(t.attachProps&&s&&(s.$options&&s.$options.propsData?f.propsData=s.$options.propsData:s.$props&&(f.propsData=s.$props)),setTimeout(()=>{tt().captureException(i,{captureContext:{contexts:{vue:f}},mechanism:{handled:!1}})}),typeof n=="function"&&n.call(e,i,s,l),t.logErrors){const p=typeof console<"u",h=`Error in ${l}: "${i&&i.toString()}"`;r?r.call(null,h,s,c):p&&!o&&Xn(()=>{console.error(`[Vue warn]: ${h}${c}`)})}}},J3=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Mf="ui.vue",Q3={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function tu(){return tt().getScope().getTransaction()}function Z3(e,t,n){e.$_sentryRootSpanTimer&&clearTimeout(e.$_sentryRootSpanTimer),e.$_sentryRootSpanTimer=setTimeout(()=>{e.$root&&e.$root.$_sentryRootSpan&&(e.$root.$_sentryRootSpan.finish(t),e.$root.$_sentryRootSpan=void 0)},n)}const eR=e=>{const t=(e.hooks||[]).concat(lv).filter((r,o,i)=>i.indexOf(r)===o),n={};for(const r of t){const o=Q3[r];if(!o){J3&&ne.warn(`Unknown hook: ${r}`);continue}for(const i of o)n[i]=function(){const s=this.$root===this;if(s){const c=tu();c&&(this.$_sentryRootSpan=this.$_sentryRootSpan||c.startChild({description:"Application Render",op:`${Mf}.render`,origin:"auto.ui.vue"}))}const l=lo(this,!1),u=Array.isArray(e.trackComponents)?e.trackComponents.indexOf(l)>-1:e.trackComponents;if(!(!s&&!u))if(this.$_sentrySpans=this.$_sentrySpans||{},i==o[0]){const c=this.$root&&this.$root.$_sentryRootSpan||tu();if(c){const f=this.$_sentrySpans[r];f&&!f.endTimestamp&&f.finish(),this.$_sentrySpans[r]=c.startChild({description:`Vue <${l}>`,op:`${Mf}.${r}`,origin:"auto.ui.vue"})}}else{const c=this.$_sentrySpans[r];if(!c)return;c.finish(),Z3(this,Cr(),e.timeout)}}}return n},tR=et,nR={Vue:tR.Vue,attachProps:!0,logErrors:!0,hooks:lv,timeout:2e3,trackComponents:!1};class bs{static __initStatic(){this.id="Vue"}constructor(t={}){this.name=bs.id,this._options=t}setupOnce(t,n){this._setupIntegration(n())}_setupIntegration(t){const n=t.getClient(),r={...nR,...n&&n.getOptions(),...this._options};if(!r.Vue&&!r.app){Xn(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}r.app?Ou(r.app).forEach(i=>Rf(i,r)):r.Vue&&Rf(r.Vue,r)}}bs.__initStatic();const Rf=(e,t)=>{const n=e;(n._instance&&n._instance.isMounted)===!0&&Xn(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),X3(e,t),es(t)&&e.mixin(eR({...t,...t.tracingOptions}))};function rR(e={}){const t={_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:wo}],version:wo}},defaultIntegrations:[...cm,new bs],...e};VN(t)}function aR(e,t={}){return(n,r=!0,o=!0)=>{const i={"routing.instrumentation":"vue-router"};r&&Ue&&Ue.location&&n({name:Ue.location.pathname,op:"pageload",origin:"auto.pageload.vue",tags:i,metadata:{source:"url"}}),e.onError(s=>Zi(s,{mechanism:{handled:!1}})),e.beforeEach((s,l,u)=>{const c=l.name==null&&l.matched.length===0,f={params:s.params,query:s.query};let p=s.path,h="url";if(s.name&&t.routeLabel!=="path"?(p=s.name.toString(),h="custom"):s.matched[0]&&s.matched[0].path&&(p=s.matched[0].path,h="route"),r&&c){const m=tu();m&&(m.metadata.source!=="custom"&&m.setName(p,h),m.setData("params",f.params),m.setData("query",f.query))}o&&!c&&n({name:p,op:"navigation",origin:"auto.navigation.vue",tags:i,data:f,metadata:{source:h}}),u&&u()})}}const oR={title:"Er lijkt iets mis te zijn gegaan",subtitle:"Ons team is op de hoogte gesteld. Het helpt enorm als je ons vertelt wat er is gebeurd.",subtitle2:"",labelName:"Naam",labelEmail:"E-mailadres",labelComments:"Omschrijf wat er gebeurd is",labelClose:"Sluiten",labelSubmit:"Verstuur rapport",errorGeneric:"Er is iets mis gegaan",errorFormEntry:"Niet alle velden zijn correct ingevuld",successMessage:"Je feedback is verzonden. Bedankt!"};function iR(e,t,n){rR({app:e,dsn:n.dsn,environment:n.environment,release:n.release,initialScope:{tags:{platform:n.platform,language:"vue"}},beforeSend(r,o){const i=n!=null&&n.beforeSend?n.beforeSend(r,o):r;return i.exception&&n.reportDialog!==!1&&FN({eventId:i.event_id,...oR,user:i==null?void 0:i.user,onLoad:()=>{var s,l,u;(s=document.querySelector(".sentry-error-embed-wrapper #id_name"))==null||s.setAttribute("placeholder",""),(l=document.querySelector(".sentry-error-embed-wrapper #id_email"))==null||l.setAttribute("placeholder",""),(u=document.querySelector(".sentry-error-embed-wrapper #id_comments"))==null||u.setAttribute("placeholder","")}}),i},integrations:[new xO({routingInstrumentation:aR(t)}),...(n==null?void 0:n.replay)===!0?[new ys]:[]],tracesSampleRate:parseFloat(`${(n==null?void 0:n.tracesSampleRate)??1}`),tracePropagationTargets:["localhost",".auto.test",n.url,/^\//]})}const sR={class:"flex items-center space-x-5"},lR={class:"font-serif text-base font-bold text-zinc-900","data-test-title":""},uR=["innerHTML"],ol=a.defineComponent({__name:"Toast",props:{title:{},content:{default:void 0},type:{},options:{default:void 0}},emits:["closeToast"],setup(e,{emit:t}){return(n,r)=>{var o;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"cursor-pointer":(o=n.options)==null?void 0:o.onClick},"relative"])},[a.createVNode(a.unref(Fi),{class:"absolute right-0 top-0 h-4 w-4 cursor-pointer",onClick:r[0]||(r[0]=a.withModifiers(()=>t("closeToast"),["stop"]))}),a.createElementVNode("div",sR,[a.createElementVNode("div",null,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Ep)[n.type]),{class:"h-7 w-7","data-test-icon":""}))]),a.createElementVNode("div",null,[a.createElementVNode("p",lR,a.toDisplayString(n.title),1),n.content?(a.openBlock(),a.createElementBlock("p",{key:0,class:"font-serif text-base text-zinc-700","data-test-content":"",innerHTML:n.content},null,8,uR)):a.createCommentVNode("",!0)])])],2)}}});function cR(e){const t=by(e);return{...t,success:(n,r,o)=>t.success({component:ol,props:{title:n,content:r,type:"success",options:o}},o),warning:(n,r,o)=>t.warning({component:ol,props:{title:n,content:r,type:"warning",options:o}},o),error:(n,r,o)=>t.error({component:ol,props:{title:n,content:r,type:"error",options:o}},o)}}const uv={install:(e,t)=>{var o;t!=null&&t.pusher&&wh(t.pusher.appKey,t.pusher.authorizer),(o=t==null?void 0:t.sentry)!=null&&o.dsn&&iR(e,t.sentry.router,t==null?void 0:t.sentry);const n={position:co.TOP_RIGHT,transition:"Vue-Toastification__bounce",maxToasts:5,icon:!1,hideProgressBar:!0,newestOnTop:!0,...(t==null?void 0:t.toast)??{}};e.use(_y,n);const r={defaultProps:{placement:"top"},...(t==null?void 0:t.tippy)??{}};e.use(pb,r)}},dR={class:"flex min-h-screen flex-col md:flex-row md:bg-secondary"},fR={class:"flex h-full grow flex-col bg-white md:h-auto md:w-1/2 md:grow-0 md:rounded-l-2xl","data-test-main-wrapper":""},pR={class:"flex grow justify-center px-10 transition-all md:items-center md:px-24"},hR={class:"mx-auto md:max-w-lg"},mR={class:"hidden w-1/2 md:block","data-test-layout-image-wrapper":""},vR=["src"],gR=a.defineComponent({__name:"Auth",setup(e){const{layoutImage:t}=fu();return(n,r)=>(a.openBlock(),a.createElementBlock("div",dR,[a.createVNode(a.unref(ji)),a.createElementVNode("div",fR,[a.renderSlot(n.$slots,"secondaryNavBar"),a.createElementVNode("main",pR,[a.createElementVNode("div",hR,[a.renderSlot(n.$slots,"default")])])]),a.createElementVNode("div",mR,[a.unref(t)?(a.openBlock(),a.createElementBlock("img",{key:0,src:a.unref(t),class:"h-screen w-full object-fill"},null,8,vR)):a.createCommentVNode("",!0)])]))}}),yR={class:"flex min-h-screen w-screen flex-col bg-zinc-100 md:flex-row"},bR={class:"relative order-4 flex shrink-0 grow flex-col overflow-y-auto overflow-x-hidden bg-zinc-100 transition-all duration-300 md:order-3 md:-mt-0 md:h-screen md:basis-0 md:overflow-y-auto md:overflow-x-hidden"},_R={class:"w-full px-4 py-8 md:px-6 md:py-12"},wR={id:"sidebar-wrapper",class:"order-3 flex w-full max-w-full shrink-0 grow-0 flex-col overflow-x-hidden bg-zinc-100 px-4 pt-8 transition-all empty:-mr-96 empty:ml-0 empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:order-4 md:max-h-screen md:w-96 md:overflow-hidden md:rounded-l-3xl md:bg-white md:p-12 xl:w-110 empty:xl:-mr-110 2xl:w-141 empty:2xl:-mr-141","data-test-layout-sidebar-wrapper":""},kR=a.defineComponent({__name:"Base",setup(e){const t=a.ref(null),n=a.ref(!0),r=new MutationObserver(o);a.onMounted(()=>{t.value&&(r.observe(t.value,{childList:!0,subtree:!0}),o())}),a.onUnmounted(()=>{r.disconnect()});function o(){const i=document.getElementById("sidebar-left-wrapper");n.value=!!(i!=null&&i.innerHTML)}return a.provide("sidebarLeftHasContent",n),(i,s)=>(a.openBlock(),a.createElementBlock("div",yR,[a.createVNode(a.unref(ji),{class:"z-50 order-1"}),a.createElementVNode("div",{id:"sidebar-left-wrapper",ref_key:"sidebarLeft",ref:t,class:"order-2 flex shrink-0 grow-0 flex-col overflow-y-auto bg-white p-4 transition-all empty:-ml-96 empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:mb-4 md:max-h-screen md:w-96 md:px-6 md:pt-8","data-test-layout-sidebar-left-wrapper":""},[a.renderSlot(i.$slots,"sidebarLeft")],512),a.createElementVNode("main",bR,[a.createVNode(a.unref(Tu)),a.createElementVNode("div",_R,[a.renderSlot(i.$slots,"default")])]),a.createElementVNode("div",wR,[a.renderSlot(i.$slots,"sidebar")])]))}}),SR={class:"flex min-h-screen w-screen flex-col bg-zinc-100 md:flex-row"},CR={class:"relative order-4 flex min-h-[calc(100vh-5rem)] shrink-0 flex-col overflow-y-auto overflow-x-hidden bg-zinc-100 transition-all duration-300 md:order-3 md:-mt-0 md:h-screen md:grow md:basis-0 md:overflow-y-auto md:overflow-x-hidden"},TR={class:"w-full px-4 py-8 md:px-6 md:py-12"},ER={id:"sidebar-wrapper",class:"order-5 flex w-full max-w-full shrink-0 grow-0 flex-col overflow-x-hidden bg-zinc-100 px-4 py-8 transition-all empty:-mr-96 empty:ml-0 empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:order-4 md:max-h-screen md:w-96 md:overflow-hidden md:rounded-l-3xl md:bg-white md:px-6 md:pb-6 md:pt-12 xl:w-[580px] empty:xl:mr-[-580px]","data-test-layout-sidebar-wrapper":""},xR=a.defineComponent({__name:"Platform",setup(e){const t=a.ref(null),n=a.ref(!0),r=new MutationObserver(o);a.onMounted(()=>{t.value&&(r.observe(t.value,{childList:!0,subtree:!0}),o())}),a.onUnmounted(()=>{r.disconnect()});function o(){const i=document.getElementById("sidebar-left-wrapper");n.value=!!(i!=null&&i.innerHTML)}return a.provide("sidebarLeftHasContent",n),(i,s)=>(a.openBlock(),a.createElementBlock("div",SR,[a.createVNode(a.unref(ji),{class:"z-50 order-1"}),a.createElementVNode("div",{id:"sidebar-left-wrapper",ref_key:"sidebarLeft",ref:t,class:"order-2 flex shrink-0 grow-0 flex-col overflow-y-auto bg-white p-4 transition-all empty:-ml-96 empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:max-h-screen md:w-96 md:px-6 md:pt-8","data-test-layout-sidebar-left-wrapper":""},[a.renderSlot(i.$slots,"sidebarLeft")],512),a.createElementVNode("main",CR,[a.createVNode(a.unref(Tu)),a.createElementVNode("div",TR,[a.renderSlot(i.$slots,"default")])]),a.createElementVNode("div",ER,[a.renderSlot(i.$slots,"sidebar")])]))}});exports.AppActionBar=Tu;exports.AppAlert=Fb;exports.AppAvatar=Jb;exports.AppBackButton=f_;exports.AppBadge=fi;exports.AppButton=Wr;exports.AppCard=$_;exports.AppConfirm=Dp;exports.AppDataTable=zx;exports.AppDefinitionList=iw;exports.AppDisclosure=sw;exports.AppDisclosureButton=uw;exports.AppDisclosurePanel=cw;exports.AppDropdownButton=D_;exports.AppInput=lh;exports.AppInputLabel=Cu;exports.AppLicensePlate=ch;exports.AppLoader=Kr;exports.AppMaps=XE;exports.AppModal=Np;exports.AppNavigationMenu=ji;exports.AppPagination=mh;exports.AppSelect=uh;exports.AppTimeline=y2;exports.AppTimelineItem=fh;exports.AppTimelineItemIcon=dh;exports.AppToggle=tP;exports.AuthLayout=gR;exports.BaseLayout=kR;exports.PlatformLayout=xR;exports.default=uv;exports.getOrCreateListener=_h;exports.plugin=uv;exports.registerEcho=wh;exports.toastInjectionKey=ru;exports.useActionBar=qi;exports.useConfirm=nP;exports.useEcho=gP;exports.useGoogleApi=vb;exports.useLayout=fu;exports.useModal=rP;exports.useNavigation=Ba;exports.useToast=cR;
|
|
107
|
+
(found in ${Ko(e)})`},t5=(e,t)=>{const{errorHandler:n,warnHandler:r,silent:o}=e.config;e.config.errorHandler=(i,s,l)=>{const u=Ko(s,!1),d=s?e5(s):"",c={componentName:u,lifecycleHook:l,trace:d};if(t.attachProps&&s&&(s.$options&&s.$options.propsData?c.propsData=s.$options.propsData:s.$props&&(c.propsData=s.$props)),setTimeout(()=>{vi(i,{captureContext:{contexts:{vue:c}},mechanism:{handled:!1}})}),typeof n=="function"&&n.call(e,i,s,l),t.logErrors){const p=typeof console<"u",h=`Error in ${l}: "${i&&i.toString()}"`;r?r.call(null,h,s,d):p&&!o&&ur(()=>{console.error(`[Vue warn]: ${h}${d}`)})}}},n5=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,oh="ui.vue",r5={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function a5(){return dn().getTransaction()}function o5(e,t,n){e.$_sentryRootSpanTimer&&clearTimeout(e.$_sentryRootSpanTimer),e.$_sentryRootSpanTimer=setTimeout(()=>{e.$root&&e.$root.$_sentryRootSpan&&(e.$root.$_sentryRootSpan.end(t),e.$root.$_sentryRootSpan=void 0)},n)}const i5=e=>{const t=(e.hooks||[]).concat(py).filter((r,o,i)=>i.indexOf(r)===o),n={};for(const r of t){const o=r5[r];if(!o){n5&&ee.warn(`Unknown hook: ${r}`);continue}for(const i of o)n[i]=function(){const s=this.$root===this;s&&Lu()&&(this.$_sentryRootSpan=this.$_sentryRootSpan||ks({name:"Application Render",op:`${oh}.render`,origin:"auto.ui.vue"}));const l=Ko(this,!1),u=Array.isArray(e.trackComponents)?e.trackComponents.indexOf(l)>-1:e.trackComponents;if(!(!s&&!u))if(this.$_sentrySpans=this.$_sentrySpans||{},i==o[0]){if(this.$root&&this.$root.$_sentryRootSpan||Lu()){const c=this.$_sentrySpans[r];c&&c.end(),this.$_sentrySpans[r]=ks({name:`Vue <${l}>`,op:`${oh}.${r}`,origin:"auto.ui.vue"})}}else{const d=this.$_sentrySpans[r];if(!d)return;d.end(),o5(this,ko(),e.timeout)}}}return n},s5=Ge,l5={Vue:s5.Vue,attachProps:!0,logErrors:!0,hooks:py,timeout:2e3,trackComponents:!1},hy="Vue",u5=(e={})=>({name:hy,setupOnce(){},setup(t){c5(t,e)}}),my=u5;Pr(hy,my);function c5(e,t){const n={...l5,...e.getOptions(),...t};if(!n.Vue&&!n.app){ur(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?$c(n.app).forEach(o=>ih(o,n)):n.Vue&&ih(n.Vue,n)}const ih=(e,t)=>{const n=e;(n._instance&&n._instance.isMounted)===!0&&ur(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),t5(e,t),Ea(t)&&e.mixin(i5({...t,...t.tracingOptions}))};function d5(e={}){const t={_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:si}],version:si}},defaultIntegrations:[...Tg(),my()],...e};CR(t)}function f5(e,t={}){return(n,r=!0,o=!0)=>{r&&qe&&qe.location&&n({name:qe.location.pathname,op:"pageload",attributes:{[kr]:"auto.pageload.vue",[Vn]:"url"}}),p5(e,{routeLabel:t.routeLabel||"name",instrumentNavigation:o,instrumentPageLoad:r},n)}}function p5(e,t,n){e.onError(r=>vi(r,{mechanism:{handled:!1}})),e.beforeEach((r,o,i)=>{const s=o.name==null&&o.matched.length===0,l={[kr]:"auto.navigation.vue"};for(const c of Object.keys(r.params))l[`params.${c}`]=r.params[c];for(const c of Object.keys(r.query)){const p=r.query[c];p&&(l[`query.${c}`]=p)}let u=r.path,d="url";if(r.name&&t.routeLabel!=="path"?(u=r.name.toString(),d="custom"):r.matched[0]&&r.matched[0].path&&(u=r.matched[0].path,d="route"),t.instrumentPageLoad&&s){const c=a5();c&&((Lt(c).data||{})[Vn]!=="custom"&&(c.updateName(u),c.setAttribute(Vn,d)),c.setAttributes({...l,[kr]:"auto.pageload.vue"}))}t.instrumentNavigation&&!s&&(l[Vn]=d,n({name:u,op:"navigation",attributes:l})),i&&i()})}const h5={title:"Er lijkt iets mis te zijn gegaan",subtitle:"Ons team is op de hoogte gesteld. Het helpt enorm als je ons vertelt wat er is gebeurd.",subtitle2:"",labelName:"Naam",labelEmail:"E-mailadres",labelComments:"Omschrijf wat er gebeurd is",labelClose:"Sluiten",labelSubmit:"Verstuur rapport",errorGeneric:"Er is iets mis gegaan",errorFormEntry:"Niet alle velden zijn correct ingevuld",successMessage:"Je feedback is verzonden. Bedankt!"};function m5(e,t,n){d5({app:e,dsn:n.dsn,environment:n.environment,release:n.release,initialScope:{tags:{platform:n.platform,language:"vue"}},beforeSend(r,o){const i=n!=null&&n.beforeSend?n.beforeSend(r,o):r;return i.exception&&n.reportDialog!==!1&&TR({eventId:i.event_id,...h5,user:i==null?void 0:i.user,onLoad:()=>{var s,l,u;(s=document.querySelector(".sentry-error-embed-wrapper #id_name"))==null||s.setAttribute("placeholder",""),(l=document.querySelector(".sentry-error-embed-wrapper #id_email"))==null||l.setAttribute("placeholder",""),(u=document.querySelector(".sentry-error-embed-wrapper #id_comments"))==null||u.setAttribute("placeholder","")}}),i},integrations:[new hA({routingInstrumentation:f5(t)}),...(n==null?void 0:n.replay)===!0?[new dl]:[]],tracesSampleRate:parseFloat(`${(n==null?void 0:n.tracesSampleRate)??1}`),tracePropagationTargets:["localhost",".auto.test",n.url,/^\//]})}const v5={class:"flex items-center space-x-5"},g5={class:"font-serif text-base font-bold text-zinc-900","data-test-title":""},y5=["innerHTML"],tu=a.defineComponent({__name:"Toast",props:{title:{},content:{default:void 0},type:{},options:{default:void 0}},emits:["closeToast"],setup(e,{emit:t}){const n=t;return(r,o)=>{var i;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{"cursor-pointer":(i=r.options)==null?void 0:i.onClick},"relative"])},[a.createVNode(a.unref(Fs),{class:"absolute right-0 top-0 h-4 w-4 cursor-pointer",onClick:o[0]||(o[0]=a.withModifiers(()=>n("closeToast"),["stop"]))}),a.createElementVNode("div",v5,[a.createElementVNode("div",null,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Xh)[r.type]),{class:"h-7 w-7","data-test-icon":""}))]),a.createElementVNode("div",null,[a.createElementVNode("p",g5,a.toDisplayString(r.title),1),r.content?(a.openBlock(),a.createElementBlock("p",{key:0,class:"font-serif text-base text-zinc-700","data-test-content":"",innerHTML:r.content},null,8,y5)):a.createCommentVNode("",!0)])])],2)}}});function b5(e){const t=Sb(e);return{...t,success:(n,r,o)=>t.success({component:tu,props:{title:n,content:r,type:"success",options:o}},o),warning:(n,r,o)=>t.warning({component:tu,props:{title:n,content:r,type:"warning",options:o}},o),error:(n,r,o)=>t.error({component:tu,props:{title:n,content:r,type:"error",options:o}},o)}}const vy={install:(e,t)=>{var o;t!=null&&t.pusher&&Zm(t.pusher.appKey,t.pusher.authorizer),(o=t==null?void 0:t.sentry)!=null&&o.dsn&&m5(e,t.sentry.router,t==null?void 0:t.sentry);const n={position:Jo.TOP_RIGHT,transition:"Vue-Toastification__bounce",maxToasts:5,icon:!1,hideProgressBar:!0,newestOnTop:!0,...(t==null?void 0:t.toast)??{}};e.use(Cb,n);const r={defaultProps:{placement:"top"},...(t==null?void 0:t.tippy)??{}};e.use(mw,r)}},_5={class:"flex min-h-screen flex-col md:flex-row md:bg-secondary"},w5={class:"flex h-full grow flex-col bg-white md:h-auto md:w-1/2 md:grow-0 md:rounded-l-2xl","data-test-main-wrapper":""},k5={class:"flex grow justify-center px-10 transition-all md:items-center md:px-24"},S5={class:"mx-auto md:max-w-lg"},C5={class:"hidden w-1/2 md:block","data-test-layout-image-wrapper":""},T5=["src"],E5=a.defineComponent({__name:"Auth",setup(e){const{layoutImage:t}=cc();return(n,r)=>(a.openBlock(),a.createElementBlock("div",_5,[a.createVNode(a.unref(Ys)),a.createElementVNode("div",w5,[a.renderSlot(n.$slots,"secondaryNavBar"),a.createElementVNode("main",k5,[a.createElementVNode("div",S5,[a.renderSlot(n.$slots,"default")])])]),a.createElementVNode("div",C5,[a.unref(t)?(a.openBlock(),a.createElementBlock("img",{key:0,src:a.unref(t),class:"h-screen w-full object-fill"},null,8,T5)):a.createCommentVNode("",!0)])]))}}),x5={class:"flex min-h-screen w-screen flex-col bg-zinc-100 md:flex-row"},I5={class:"relative order-4 flex shrink-0 grow flex-col overflow-y-auto overflow-x-hidden bg-zinc-100 transition-all duration-300 md:order-3 md:-mt-0 md:h-screen md:basis-0 md:overflow-y-auto md:overflow-x-hidden"},P5={class:"w-full px-4 py-8 md:px-6 md:py-12"},O5={id:"sidebar-wrapper",class:"order-3 flex w-full max-w-full shrink-0 grow-0 flex-col overflow-x-hidden bg-zinc-100 px-4 pt-8 transition-all empty:-mr-96 empty:ml-0 empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:order-4 md:max-h-screen md:w-96 md:overflow-hidden md:rounded-l-3xl md:bg-white md:p-12 xl:w-110 empty:xl:-mr-110 2xl:w-141 empty:2xl:-mr-141","data-test-layout-sidebar-wrapper":""},N5=a.defineComponent({__name:"Base",setup(e){const t=a.ref(null),n=a.ref(!0),r=new MutationObserver(o);a.onMounted(()=>{t.value&&(r.observe(t.value,{childList:!0,subtree:!0}),o())}),a.onUnmounted(()=>{r.disconnect()});function o(){const i=document.getElementById("sidebar-left-wrapper");n.value=!!(i!=null&&i.innerHTML)}return a.provide("sidebarLeftHasContent",n),(i,s)=>(a.openBlock(),a.createElementBlock("div",x5,[a.createVNode(a.unref(Ys),{class:"z-50 order-1"}),a.createElementVNode("div",{id:"sidebar-left-wrapper",ref_key:"sidebarLeft",ref:t,class:"order-2 flex shrink-0 grow-0 flex-col overflow-y-auto bg-white p-4 transition-all empty:-ml-96 empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:mb-4 md:max-h-screen md:w-96 md:px-6 md:pt-8","data-test-layout-sidebar-left-wrapper":""},[a.renderSlot(i.$slots,"sidebarLeft")],512),a.createElementVNode("main",I5,[a.createVNode(a.unref(Pc)),a.createElementVNode("div",P5,[a.renderSlot(i.$slots,"default")])]),a.createElementVNode("div",O5,[a.renderSlot(i.$slots,"sidebar")])]))}}),D5={class:"flex min-h-screen w-screen flex-col bg-zinc-100 md:flex-row"},M5={class:"relative order-4 flex min-h-[calc(100vh-5rem)] shrink-0 flex-col overflow-y-auto overflow-x-hidden bg-zinc-100 transition-all duration-300 md:order-3 md:-mt-0 md:h-screen md:grow md:basis-0 md:overflow-y-auto md:overflow-x-hidden"},B5={class:"w-full px-4 py-8 md:px-6 md:py-12"},A5={id:"sidebar-wrapper",class:"order-5 flex w-full max-w-full shrink-0 grow-0 flex-col overflow-x-hidden bg-zinc-100 px-4 py-8 transition-all empty:-mr-96 empty:ml-0 empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:order-4 md:max-h-screen md:w-96 md:overflow-hidden md:rounded-l-3xl md:bg-white md:px-6 md:pb-6 md:pt-12 xl:w-[580px] empty:xl:mr-[-580px]","data-test-layout-sidebar-wrapper":""},R5=a.defineComponent({__name:"Platform",setup(e){const t=a.ref(null),n=a.ref(!0),r=new MutationObserver(o);a.onMounted(()=>{t.value&&(r.observe(t.value,{childList:!0,subtree:!0}),o())}),a.onUnmounted(()=>{r.disconnect()});function o(){const i=document.getElementById("sidebar-left-wrapper");n.value=!!(i!=null&&i.innerHTML)}return a.provide("sidebarLeftHasContent",n),(i,s)=>(a.openBlock(),a.createElementBlock("div",D5,[a.createVNode(a.unref(Ys),{class:"z-50 order-1"}),a.createElementVNode("div",{id:"sidebar-left-wrapper",ref_key:"sidebarLeft",ref:t,class:"order-2 flex shrink-0 grow-0 flex-col overflow-y-auto bg-white p-4 transition-all empty:-ml-96 empty:whitespace-nowrap empty:p-0 md:sticky md:top-0 md:max-h-screen md:w-96 md:px-6 md:pt-8","data-test-layout-sidebar-left-wrapper":""},[a.renderSlot(i.$slots,"sidebarLeft")],512),a.createElementVNode("main",M5,[a.createVNode(a.unref(Pc)),a.createElementVNode("div",B5,[a.renderSlot(i.$slots,"default")])]),a.createElementVNode("div",A5,[a.renderSlot(i.$slots,"sidebar")])]))}});exports.AppActionBar=Pc;exports.AppAlert=Ww;exports.AppAvatar=n1;exports.AppBackButton=g1;exports.AppBadge=is;exports.AppButton=ma;exports.AppCard=U1;exports.AppConfirm=em;exports.AppDataTable=qO;exports.AppDefinitionList=dk;exports.AppDisclosure=fk;exports.AppDisclosureButton=hk;exports.AppDisclosurePanel=mk;exports.AppDropdownButton=A1;exports.AppInput=Dm;exports.AppInputLabel=Ic;exports.AppLicensePlate=Hm;exports.AppLoader=ka;exports.AppMaps=nP;exports.AppModal=tm;exports.AppNavigationMenu=Ys;exports.AppPagination=qm;exports.AppSelect=Fm;exports.AppTimeline=wP;exports.AppTimelineItem=zm;exports.AppTimelineItemIcon=Um;exports.AppToggle=aN;exports.AuthLayout=E5;exports.BaseLayout=N5;exports.PlatformLayout=R5;exports.default=vy;exports.getOrCreateListener=Jm;exports.plugin=vy;exports.registerEcho=Zm;exports.toastInjectionKey=ec;exports.useActionBar=Ks;exports.useConfirm=oN;exports.useEcho=_N;exports.useGoogleApi=ww;exports.useLayout=cc;exports.useModal=iN;exports.useNavigation=yo;exports.useTippy=uc;exports.useToast=b5;
|