@autoafleveren/ui 1.4.13 → 1.4.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
  * vue-tippy v6.7.1
3
3
  * (c) 2025
4
4
  * @license MIT
5
- */var _n="top",Fn="bottom",jn="right",Sn="left",sp="auto",Os=[_n,Fn,jn,Sn],ti="start",hs="end",S_="clippingParents",Pg="viewport",Wi="popper",C_="reference",Oh=Os.reduce(function(e,t){return e.concat([t+"-"+ti,t+"-"+hs])},[]),Ag=[].concat(Os,[sp]).reduce(function(e,t){return e.concat([t,t+"-"+ti,t+"-"+hs])},[]),x_="beforeRead",E_="read",T_="afterRead",P_="beforeMain",A_="main",I_="afterMain",M_="beforeWrite",N_="write",O_="afterWrite",B_=[x_,E_,T_,P_,A_,I_,M_,N_,O_];function Ar(e){return e?(e.nodeName||"").toLowerCase():null}function cr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ni(e){var t=cr(e).Element;return e instanceof t||e instanceof Element}function $n(e){var t=cr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ig(e){if(typeof ShadowRoot>"u")return!1;var t=cr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function L_(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!$n(i)||!Ar(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function D_(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(a){var o=t.elements[a],i=t.attributes[a]||{},s=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),l=s.reduce(function(c,u){return c[u]="",c},{});!$n(o)||!Ar(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}var Mg={name:"applyStyles",enabled:!0,phase:"write",fn:L_,effect:D_,requires:["computeStyles"]};function Er(e){return e.split("-")[0]}var no=Math.max,tc=Math.min,ri=Math.round;function ai(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),a=1,o=1;if($n(e)&&t){var i=e.offsetHeight,s=e.offsetWidth;s>0&&(a=ri(n.width)/s||1),i>0&&(o=ri(n.height)/i||1)}return{width:n.width/a,height:n.height/o,top:n.top/o,right:n.right/a,bottom:n.bottom/o,left:n.left/a,x:n.left/a,y:n.top/o}}function lp(e){var t=ai(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function Ng(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ig(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Ir(e){return cr(e).getComputedStyle(e)}function R_(e){return["table","td","th"].indexOf(Ar(e))>=0}function Ma(e){return((ni(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wc(e){return Ar(e)==="html"?e:e.assignedSlot||e.parentNode||(Ig(e)?e.host:null)||Ma(e)}function Bh(e){return!$n(e)||Ir(e).position==="fixed"?null:e.offsetParent}function $_(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&$n(e)){var a=Ir(e);if(a.position==="fixed")return null}for(var o=Wc(e);$n(o)&&["html","body"].indexOf(Ar(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 Bs(e){for(var t=cr(e),n=Bh(e);n&&R_(n)&&Ir(n).position==="static";)n=Bh(n);return n&&(Ar(n)==="html"||Ar(n)==="body"&&Ir(n).position==="static")?t:n||$_(e)||t}function cp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qi(e,t,n){return no(e,tc(t,n))}function z_(e,t,n){var a=Qi(e,t,n);return a>n?n:a}function Og(){return{top:0,right:0,bottom:0,left:0}}function Bg(e){return Object.assign({},Og(),e)}function Lg(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}var V_=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Bg(typeof t!="number"?t:Lg(t,Os))};function F_(e){var t,n=e.state,a=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Er(n.placement),c=cp(l),u=[Sn,jn].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!s)){var f=V_(o.padding,n),p=lp(i),m=c==="y"?_n:Sn,v=c==="y"?Fn:jn,y=n.rects.reference[d]+n.rects.reference[c]-s[c]-n.rects.popper[d],w=s[c]-n.rects.reference[c],b=Bs(i),E=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,_=y/2-w/2,g=f[m],x=E-p[d]-f[v],C=E/2-p[d]/2+_,P=Qi(g,C,x),O=c;n.modifiersData[a]=(t={},t[O]=P,t.centerOffset=P-C,t)}}function j_(e){var t=e.state,n=e.options,a=n.element,o=a===void 0?"[data-popper-arrow]":a;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Ng(t.elements.popper,o)&&(t.elements.arrow=o))}var H_={name:"arrow",enabled:!0,phase:"main",fn:F_,effect:j_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oi(e){return e.split("-")[1]}var U_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function W_(e){var t=e.x,n=e.y,a=window,o=a.devicePixelRatio||1;return{x:ri(t*o)/o||0,y:ri(n*o)/o||0}}function Lh(e){var t,n=e.popper,a=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=d===!0?W_(s):typeof d=="function"?d(s):s,m=p.x,v=m===void 0?0:m,y=p.y,w=y===void 0?0:y,b=s.hasOwnProperty("x"),E=s.hasOwnProperty("y"),_=Sn,g=_n,x=window;if(u){var C=Bs(n),P="clientHeight",O="clientWidth";if(C===cr(n)&&(C=Ma(n),Ir(C).position!=="static"&&l==="absolute"&&(P="scrollHeight",O="scrollWidth")),C=C,o===_n||(o===Sn||o===jn)&&i===hs){g=Fn;var A=f&&x.visualViewport?x.visualViewport.height:C[P];w-=A-a.height,w*=c?1:-1}if(o===Sn||(o===_n||o===Fn)&&i===hs){_=jn;var L=f&&x.visualViewport?x.visualViewport.width:C[O];v-=L-a.width,v*=c?1:-1}}var U=Object.assign({position:l},u&&U_);if(c){var z;return Object.assign({},U,(z={},z[g]=E?"0":"",z[_]=b?"0":"",z.transform=(x.devicePixelRatio||1)<=1?"translate("+v+"px, "+w+"px)":"translate3d("+v+"px, "+w+"px, 0)",z))}return Object.assign({},U,(t={},t[g]=E?w+"px":"",t[_]=b?v+"px":"",t.transform="",t))}function q_(e){var t=e.state,n=e.options,a=n.gpuAcceleration,o=a===void 0?!0:a,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:Er(t.placement),variation:oi(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,Lh(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Lh(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Y_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:q_,data:{}},dl={passive:!0};function G_(e){var t=e.state,n=e.instance,a=e.options,o=a.scroll,i=o===void 0?!0:o,s=a.resize,l=s===void 0?!0:s,c=cr(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,dl)}),l&&c.addEventListener("resize",n.update,dl),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,dl)}),l&&c.removeEventListener("resize",n.update,dl)}}var K_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:G_,data:{}},X_={left:"right",right:"left",bottom:"top",top:"bottom"};function Vl(e){return e.replace(/left|right|bottom|top/g,function(t){return X_[t]})}var J_={start:"end",end:"start"};function Dh(e){return e.replace(/start|end/g,function(t){return J_[t]})}function up(e){var t=cr(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function dp(e){return ai(Ma(e)).left+up(e).scrollLeft}function Q_(e){var t=cr(e),n=Ma(e),a=t.visualViewport,o=n.clientWidth,i=n.clientHeight,s=0,l=0;return a&&(o=a.width,i=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=a.offsetLeft,l=a.offsetTop)),{width:o,height:i,x:s+dp(e),y:l}}function Z_(e){var t,n=Ma(e),a=up(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=no(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=no(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-a.scrollLeft+dp(e),c=-a.scrollTop;return Ir(o||n).direction==="rtl"&&(l+=no(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function fp(e){var t=Ir(e),n=t.overflow,a=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+a)}function Dg(e){return["html","body","#document"].indexOf(Ar(e))>=0?e.ownerDocument.body:$n(e)&&fp(e)?e:Dg(Wc(e))}function Zi(e,t){var n;t===void 0&&(t=[]);var a=Dg(e),o=a===((n=e.ownerDocument)==null?void 0:n.body),i=cr(a),s=o?[i].concat(i.visualViewport||[],fp(a)?a:[]):a,l=t.concat(s);return o?l:l.concat(Zi(Wc(s)))}function Wd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function eS(e){var t=ai(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 Rh(e,t){return t===Pg?Wd(Q_(e)):ni(t)?eS(t):Wd(Z_(Ma(e)))}function tS(e){var t=Zi(Wc(e)),n=["absolute","fixed"].indexOf(Ir(e).position)>=0,a=n&&$n(e)?Bs(e):e;return ni(a)?t.filter(function(o){return ni(o)&&Ng(o,a)&&Ar(o)!=="body"&&(n?Ir(o).position!=="static":!0)}):[]}function nS(e,t,n){var a=t==="clippingParents"?tS(e):[].concat(t),o=[].concat(a,[n]),i=o[0],s=o.reduce(function(l,c){var u=Rh(e,c);return l.top=no(u.top,l.top),l.right=tc(u.right,l.right),l.bottom=tc(u.bottom,l.bottom),l.left=no(u.left,l.left),l},Rh(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 Rg(e){var t=e.reference,n=e.element,a=e.placement,o=a?Er(a):null,i=a?oi(a):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case _n:c={x:s,y:t.y-n.height};break;case Fn:c={x:s,y:t.y+t.height};break;case jn:c={x:t.x+t.width,y:l};break;case Sn:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=o?cp(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case ti:c[u]=c[u]-(t[d]/2-n[d]/2);break;case hs:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function vs(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=a===void 0?e.placement:a,i=n.boundary,s=i===void 0?S_:i,l=n.rootBoundary,c=l===void 0?Pg:l,u=n.elementContext,d=u===void 0?Wi:u,f=n.altBoundary,p=f===void 0?!1:f,m=n.padding,v=m===void 0?0:m,y=Bg(typeof v!="number"?v:Lg(v,Os)),w=d===Wi?C_:Wi,b=e.rects.popper,E=e.elements[p?w:d],_=nS(ni(E)?E:E.contextElement||Ma(e.elements.popper),s,c),g=ai(e.elements.reference),x=Rg({reference:g,element:b,placement:o}),C=Wd(Object.assign({},b,x)),P=d===Wi?C:g,O={top:_.top-P.top+y.top,bottom:P.bottom-_.bottom+y.bottom,left:_.left-P.left+y.left,right:P.right-_.right+y.right},A=e.modifiersData.offset;if(d===Wi&&A){var L=A[o];Object.keys(O).forEach(function(U){var z=[jn,Fn].indexOf(U)>=0?1:-1,R=[_n,Fn].indexOf(U)>=0?"y":"x";O[U]+=L[R]*z})}return O}function rS(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?Ag:c,d=oi(a),f=d?l?Oh:Oh.filter(function(v){return oi(v)===d}):Os,p=f.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=f);var m=p.reduce(function(v,y){return v[y]=vs(e,{placement:y,boundary:o,rootBoundary:i,padding:s})[Er(y)],v},{});return Object.keys(m).sort(function(v,y){return m[v]-m[y]})}function aS(e){if(Er(e)===sp)return[];var t=Vl(e);return[Dh(e),t,Dh(t)]}function oS(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,v=m===void 0?!0:m,y=n.allowedAutoPlacements,w=t.options.placement,b=Er(w),E=b===w,_=c||(E||!v?[Vl(w)]:aS(w)),g=[w].concat(_).reduce(function(W,Y){return W.concat(Er(Y)===sp?rS(t,{placement:Y,boundary:d,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:y}):Y)},[]),x=t.rects.reference,C=t.rects.popper,P=new Map,O=!0,A=g[0],L=0;L<g.length;L++){var U=g[L],z=Er(U),R=oi(U)===ti,I=[_n,Fn].indexOf(z)>=0,B=I?"width":"height",M=vs(t,{placement:U,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),$=I?R?jn:Sn:R?Fn:_n;x[B]>C[B]&&($=Vl($));var K=Vl($),V=[];if(i&&V.push(M[z]<=0),l&&V.push(M[$]<=0,M[K]<=0),V.every(function(W){return W})){A=U,O=!1;break}P.set(U,V)}if(O)for(var Z=v?3:1,q=function(Y){var H=g.find(function(T){var J=P.get(T);if(J)return J.slice(0,Y).every(function(le){return le})});if(H)return A=H,"break"},oe=Z;oe>0;oe--){var j=q(oe);if(j==="break")break}t.placement!==A&&(t.modifiersData[a]._skip=!0,t.placement=A,t.reset=!0)}}var iS={name:"flip",enabled:!0,phase:"main",fn:oS,requiresIfExists:["offset"],data:{_skip:!1}};function $h(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 zh(e){return[_n,jn,Fn,Sn].some(function(t){return e[t]>=0})}function sS(e){var t=e.state,n=e.name,a=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=vs(t,{elementContext:"reference"}),l=vs(t,{altBoundary:!0}),c=$h(s,a),u=$h(l,o,i),d=zh(c),f=zh(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var lS={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sS};function cS(e,t,n){var a=Er(e),o=[Sn,_n].indexOf(a)>=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,jn].indexOf(a)>=0?{x:l,y:s}:{x:s,y:l}}function uS(e){var t=e.state,n=e.options,a=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=Ag.reduce(function(d,f){return d[f]=cS(f,t.rects,i),d},{}),l=s[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[a]=s}var dS={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:uS};function fS(e){var t=e.state,n=e.name;t.modifiersData[n]=Rg({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var pS={name:"popperOffsets",enabled:!0,phase:"read",fn:fS,data:{}};function mS(e){return e==="x"?"y":"x"}function hS(e){var t=e.state,n=e.options,a=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,w=vs(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),b=Er(t.placement),E=oi(t.placement),_=!E,g=cp(b),x=mS(g),C=t.modifiersData.popperOffsets,P=t.rects.reference,O=t.rects.popper,A=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,L=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),U=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(C){if(i){var R,I=g==="y"?_n:Sn,B=g==="y"?Fn:jn,M=g==="y"?"height":"width",$=C[g],K=$+w[I],V=$-w[B],Z=m?-O[M]/2:0,q=E===ti?P[M]:O[M],oe=E===ti?-O[M]:-P[M],j=t.elements.arrow,W=m&&j?lp(j):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Og(),H=Y[I],T=Y[B],J=Qi(0,P[M],W[M]),le=_?P[M]/2-Z-J-H-L.mainAxis:q-J-H-L.mainAxis,Oe=_?-P[M]/2+Z+J+T+L.mainAxis:oe+J+T+L.mainAxis,ee=t.elements.arrow&&Bs(t.elements.arrow),Te=ee?g==="y"?ee.clientTop||0:ee.clientLeft||0:0,ae=(R=U?.[g])!=null?R:0,ue=$+le-ae-Te,D=$+Oe-ae,de=Qi(m?tc(K,ue):K,$,m?no(V,D):V);C[g]=de,z[g]=de-$}if(l){var fe,ce=g==="x"?_n:Sn,Ae=g==="x"?Fn:jn,pe=C[x],Ie=x==="y"?"height":"width",xe=pe+w[ce],X=pe-w[Ae],re=[_n,Sn].indexOf(b)!==-1,ye=(fe=U?.[x])!=null?fe:0,Ze=re?xe:pe-P[Ie]-O[Ie]-ye+L.altAxis,ct=re?pe+P[Ie]+O[Ie]-ye-L.altAxis:X,Se=m&&re?z_(Ze,pe,ct):Qi(m?Ze:xe,pe,m?ct:X);C[x]=Se,z[x]=Se-pe}t.modifiersData[a]=z}}var vS={name:"preventOverflow",enabled:!0,phase:"main",fn:hS,requiresIfExists:["offset"]};function gS(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function yS(e){return e===cr(e)||!$n(e)?up(e):gS(e)}function bS(e){var t=e.getBoundingClientRect(),n=ri(t.width)/e.offsetWidth||1,a=ri(t.height)/e.offsetHeight||1;return n!==1||a!==1}function wS(e,t,n){n===void 0&&(n=!1);var a=$n(t),o=$n(t)&&bS(t),i=Ma(t),s=ai(e,o),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&((Ar(t)!=="body"||fp(i))&&(l=yS(t)),$n(t)?(c=ai(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=dp(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function kS(e){var t=new Map,n=new Set,a=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),a.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),a}function _S(e){var t=kS(e);return B_.reduce(function(n,a){return n.concat(t.filter(function(o){return o.phase===a}))},[])}function SS(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function CS(e){var t=e.reduce(function(n,a){var o=n[a.name];return n[a.name]=o?Object.assign({},o,a,{options:Object.assign({},o.options,a.options),data:Object.assign({},o.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var Vh={placement:"bottom",modifiers:[],strategy:"absolute"};function Fh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function xS(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Vh:o;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Vh,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,m={state:d,setOptions:function(b){var E=typeof b=="function"?b(d.options):b;y(),d.options=Object.assign({},i,d.options,E),d.scrollParents={reference:ni(l)?Zi(l):l.contextElement?Zi(l.contextElement):[],popper:Zi(c)};var _=_S(CS([].concat(a,d.options.modifiers)));return d.orderedModifiers=_.filter(function(g){return g.enabled}),v(),m.update()},forceUpdate:function(){if(!p){var b=d.elements,E=b.reference,_=b.popper;if(Fh(E,_)){d.rects={reference:wS(E,Bs(_),d.options.strategy==="fixed"),popper:lp(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(L){return d.modifiersData[L.name]=Object.assign({},L.data)});for(var g=0;g<d.orderedModifiers.length;g++){if(d.reset===!0){d.reset=!1,g=-1;continue}var x=d.orderedModifiers[g],C=x.fn,P=x.options,O=P===void 0?{}:P,A=x.name;typeof C=="function"&&(d=C({state:d,options:O,name:A,instance:m})||d)}}}},update:SS(function(){return new Promise(function(w){m.forceUpdate(),w(d)})}),destroy:function(){y(),p=!0}};if(!Fh(l,c))return m;m.setOptions(u).then(function(w){!p&&u.onFirstUpdate&&u.onFirstUpdate(w)});function v(){d.orderedModifiers.forEach(function(w){var b=w.name,E=w.options,_=E===void 0?{}:E,g=w.effect;if(typeof g=="function"){var x=g({state:d,name:b,instance:m,options:_}),C=function(){};f.push(x||C)}})}function y(){f.forEach(function(w){return w()}),f=[]}return m}}var ES=[K_,pS,Y_,Mg,dS,iS,vS,H_,lS],TS=xS({defaultModifiers:ES}),PS="tippy-box",$g="tippy-content",zg="tippy-backdrop",Vg="tippy-arrow",Fg="tippy-svg-arrow",Ha={passive:!0,capture:!0},jg=function(){return document.body};function Vu(e,t,n){if(Array.isArray(e)){var a=e[t];return a??(Array.isArray(n)?n[t]:n)}return e}function pp(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function Hg(e,t){return typeof e=="function"?e.apply(void 0,t):e}function jh(e,t){if(t===0)return e;var n;return function(a){clearTimeout(n),n=setTimeout(function(){e(a)},t)}}function AS(e,t){var n=Object.assign({},e);return t.forEach(function(a){delete n[a]}),n}function IS(e){return e.split(/\s+/).filter(Boolean)}function Wa(e){return[].concat(e)}function Hh(e,t){e.indexOf(t)===-1&&e.push(t)}function MS(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Ug(e){return e.split("-")[0]}function ii(e){return[].slice.call(e)}function Uh(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function ro(){return document.createElement("div")}function qc(e){return["Element","Fragment"].some(function(t){return pp(e,t)})}function NS(e){return pp(e,"NodeList")}function mp(e){return pp(e,"MouseEvent")}function OS(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function BS(e){return qc(e)?[e]:NS(e)?ii(e):Array.isArray(e)?e:ii(document.querySelectorAll(e))}function Fu(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function gs(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Wg(e){var t,n=Wa(e),a=n[0];return a!=null&&(t=a.ownerDocument)!=null&&t.body?a.ownerDocument:document}function LS(e,t){var n=t.clientX,a=t.clientY;return e.every(function(o){var i=o.popperRect,s=o.popperState,l=o.props,c=l.interactiveBorder,u=Ug(s.placement),d=s.modifiersData.offset;if(!d)return!0;var f=u==="bottom"?d.top.y:0,p=u==="top"?d.bottom.y:0,m=u==="right"?d.left.x:0,v=u==="left"?d.right.x:0,y=i.top-a+f>c,w=a-i.bottom-p>c,b=i.left-n+m>c,E=n-i.right-v>c;return y||w||b||E})}function ju(e,t,n){var a=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[a](o,n)})}function Wh(e,t){for(var n=t;n;){var a;if(e.contains(n))return!0;n=n.getRootNode==null||(a=n.getRootNode())==null?void 0:a.host}return!1}var hr={isTouch:!1},qh=0;function DS(){hr.isTouch||(hr.isTouch=!0,window.performance&&document.addEventListener("mousemove",qg))}function qg(){var e=performance.now();e-qh<20&&(hr.isTouch=!1,document.removeEventListener("mousemove",qg)),qh=e}function RS(){var e=document.activeElement;if(OS(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function $S(){document.addEventListener("touchstart",DS,Ha),window.addEventListener("blur",RS)}var zS=typeof window<"u"&&typeof document<"u",VS=zS?!!window.msCrypto:!1,FS={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},jS={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},er=Object.assign({appendTo:jg,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},FS,jS),HS=Object.keys(er),US=function(t){var n=Object.keys(t);n.forEach(function(a){er[a]=t[a]})};function Yg(e){var t=e.plugins||[],n=t.reduce(function(a,o){var i=o.name,s=o.defaultValue;if(i){var l;a[i]=e[i]!==void 0?e[i]:(l=er[i])!=null?l:s}return a},{});return Object.assign({},e,n)}function WS(e,t){var n=t?Object.keys(Yg(Object.assign({},er,{plugins:t}))):HS,a=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 a}function Yh(e,t){var n=Object.assign({},t,{content:Hg(t.content,[e])},t.ignoreAttributes?{}:WS(e,t.plugins));return n.aria=Object.assign({},er.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 qS=function(){return"innerHTML"};function qd(e,t){e[qS()]=t}function Gh(e){var t=ro();return e===!0?t.className=Vg:(t.className=Fg,qc(e)?t.appendChild(e):qd(t,e)),t}function Kh(e,t){qc(t.content)?(qd(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?qd(e,t.content):e.textContent=t.content)}function nc(e){var t=e.firstElementChild,n=ii(t.children);return{box:t,content:n.find(function(a){return a.classList.contains($g)}),arrow:n.find(function(a){return a.classList.contains(Vg)||a.classList.contains(Fg)}),backdrop:n.find(function(a){return a.classList.contains(zg)})}}function Gg(e){var t=ro(),n=ro();n.className=PS,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var a=ro();a.className=$g,a.setAttribute("data-state","hidden"),Kh(a,e.props),t.appendChild(n),n.appendChild(a),o(e.props,e.props);function o(i,s){var l=nc(t),c=l.box,u=l.content,d=l.arrow;s.theme?c.setAttribute("data-theme",s.theme):c.removeAttribute("data-theme"),typeof s.animation=="string"?c.setAttribute("data-animation",s.animation):c.removeAttribute("data-animation"),s.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?c.setAttribute("role",s.role):c.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&Kh(u,e.props),s.arrow?d?i.arrow!==s.arrow&&(c.removeChild(d),c.appendChild(Gh(s.arrow))):c.appendChild(Gh(s.arrow)):d&&c.removeChild(d)}return{popper:t,onUpdate:o}}Gg.$$tippy=!0;var YS=1,fl=[],Hu=[];function GS(e,t){var n=Yh(e,Object.assign({},er,Yg(Uh(t)))),a,o,i,s=!1,l=!1,c=!1,u=!1,d,f,p,m=[],v=jh(ue,n.interactiveDebounce),y,w=YS++,b=null,E=MS(n.plugins),_={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},g={id:w,reference:e,popper:ro(),popperInstance:b,props:n,state:_,plugins:E,clearDelayTimeouts:Ze,setProps:ct,setContent:Se,show:ut,hide:$t,hideWithInteractivity:xn,enable:re,disable:ye,unmount:zt,destroy:Kt};if(!n.render)return g;var x=n.render(g),C=x.popper,P=x.onUpdate;C.setAttribute("data-tippy-root",""),C.id="tippy-"+g.id,g.popper=C,e._tippy=g,C._tippy=g;var O=E.map(function(te){return te.fn(g)}),A=e.hasAttribute("aria-expanded");return ee(),Z(),$(),K("onCreate",[g]),n.showOnCreate&&xe(),C.addEventListener("mouseenter",function(){g.props.interactive&&g.state.isVisible&&g.clearDelayTimeouts()}),C.addEventListener("mouseleave",function(){g.props.interactive&&g.props.trigger.indexOf("mouseenter")>=0&&I().addEventListener("mousemove",v)}),g;function L(){var te=g.props.touch;return Array.isArray(te)?te:[te,0]}function U(){return L()[0]==="hold"}function z(){var te;return!!((te=g.props.render)!=null&&te.$$tippy)}function R(){return y||e}function I(){var te=R().parentNode;return te?Wg(te):document}function B(){return nc(C)}function M(te){return g.state.isMounted&&!g.state.isVisible||hr.isTouch||d&&d.type==="focus"?0:Vu(g.props.delay,te?0:1,er.delay)}function $(te){te===void 0&&(te=!1),C.style.pointerEvents=g.props.interactive&&!te?"":"none",C.style.zIndex=""+g.props.zIndex}function K(te,_e,Ee){if(Ee===void 0&&(Ee=!0),O.forEach(function(G){G[te]&&G[te].apply(G,_e)}),Ee){var He;(He=g.props)[te].apply(He,_e)}}function V(){var te=g.props.aria;if(te.content){var _e="aria-"+te.content,Ee=C.id,He=Wa(g.props.triggerTarget||e);He.forEach(function(G){var se=G.getAttribute(_e);if(g.state.isVisible)G.setAttribute(_e,se?se+" "+Ee:Ee);else{var be=se&&se.replace(Ee,"").trim();be?G.setAttribute(_e,be):G.removeAttribute(_e)}})}}function Z(){if(!(A||!g.props.aria.expanded)){var te=Wa(g.props.triggerTarget||e);te.forEach(function(_e){g.props.interactive?_e.setAttribute("aria-expanded",g.state.isVisible&&_e===R()?"true":"false"):_e.removeAttribute("aria-expanded")})}}function q(){I().removeEventListener("mousemove",v),fl=fl.filter(function(te){return te!==v})}function oe(te){if(!(hr.isTouch&&(c||te.type==="mousedown"))){var _e=te.composedPath&&te.composedPath()[0]||te.target;if(!(g.props.interactive&&Wh(C,_e))){if(Wa(g.props.triggerTarget||e).some(function(Ee){return Wh(Ee,_e)})){if(hr.isTouch||g.state.isVisible&&g.props.trigger.indexOf("click")>=0)return}else K("onClickOutside",[g,te]);g.props.hideOnClick===!0&&(g.clearDelayTimeouts(),g.hide(),l=!0,setTimeout(function(){l=!1}),g.state.isMounted||H())}}}function j(){c=!0}function W(){c=!1}function Y(){var te=I();te.addEventListener("mousedown",oe,!0),te.addEventListener("touchend",oe,Ha),te.addEventListener("touchstart",W,Ha),te.addEventListener("touchmove",j,Ha)}function H(){var te=I();te.removeEventListener("mousedown",oe,!0),te.removeEventListener("touchend",oe,Ha),te.removeEventListener("touchstart",W,Ha),te.removeEventListener("touchmove",j,Ha)}function T(te,_e){le(te,function(){!g.state.isVisible&&C.parentNode&&C.parentNode.contains(C)&&_e()})}function J(te,_e){le(te,_e)}function le(te,_e){var Ee=B().box;function He(G){G.target===Ee&&(ju(Ee,"remove",He),_e())}if(te===0)return _e();ju(Ee,"remove",f),ju(Ee,"add",He),f=He}function Oe(te,_e,Ee){Ee===void 0&&(Ee=!1);var He=Wa(g.props.triggerTarget||e);He.forEach(function(G){G.addEventListener(te,_e,Ee),m.push({node:G,eventType:te,handler:_e,options:Ee})})}function ee(){U()&&(Oe("touchstart",ae,{passive:!0}),Oe("touchend",D,{passive:!0})),IS(g.props.trigger).forEach(function(te){if(te!=="manual")switch(Oe(te,ae),te){case"mouseenter":Oe("mouseleave",D);break;case"focus":Oe(VS?"focusout":"blur",de);break;case"focusin":Oe("focusout",de);break}})}function Te(){m.forEach(function(te){var _e=te.node,Ee=te.eventType,He=te.handler,G=te.options;_e.removeEventListener(Ee,He,G)}),m=[]}function ae(te){var _e,Ee=!1;if(!(!g.state.isEnabled||fe(te)||l)){var He=((_e=d)==null?void 0:_e.type)==="focus";d=te,y=te.currentTarget,Z(),!g.state.isVisible&&mp(te)&&fl.forEach(function(G){return G(te)}),te.type==="click"&&(g.props.trigger.indexOf("mouseenter")<0||s)&&g.props.hideOnClick!==!1&&g.state.isVisible?Ee=!0:xe(te),te.type==="click"&&(s=!Ee),Ee&&!He&&X(te)}}function ue(te){var _e=te.target,Ee=R().contains(_e)||C.contains(_e);if(!(te.type==="mousemove"&&Ee)){var He=Ie().concat(C).map(function(G){var se,be=G._tippy,Re=(se=be.popperInstance)==null?void 0:se.state;return Re?{popperRect:G.getBoundingClientRect(),popperState:Re,props:n}:null}).filter(Boolean);LS(He,te)&&(q(),X(te))}}function D(te){var _e=fe(te)||g.props.trigger.indexOf("click")>=0&&s;if(!_e){if(g.props.interactive){g.hideWithInteractivity(te);return}X(te)}}function de(te){g.props.trigger.indexOf("focusin")<0&&te.target!==R()||g.props.interactive&&te.relatedTarget&&C.contains(te.relatedTarget)||X(te)}function fe(te){return hr.isTouch?U()!==te.type.indexOf("touch")>=0:!1}function ce(){Ae();var te=g.props,_e=te.popperOptions,Ee=te.placement,He=te.offset,G=te.getReferenceClientRect,se=te.moveTransition,be=z()?nc(C).arrow:null,Re=G?{getBoundingClientRect:G,contextElement:G.contextElement||R()}:e,ne={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(st){var vt=st.state;if(z()){var Ut=B(),Vt=Ut.box;["placement","reference-hidden","escaped"].forEach(function(nn){nn==="placement"?Vt.setAttribute("data-placement",vt.placement):vt.attributes.popper["data-popper-"+nn]?Vt.setAttribute("data-"+nn,""):Vt.removeAttribute("data-"+nn)}),vt.attributes.popper={}}}},he=[{name:"offset",options:{offset:He}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!se}},ne];z()&&be&&he.push({name:"arrow",options:{element:be,padding:3}}),he.push.apply(he,_e?.modifiers||[]),g.popperInstance=TS(Re,C,Object.assign({},_e,{placement:Ee,onFirstUpdate:p,modifiers:he}))}function Ae(){g.popperInstance&&(g.popperInstance.destroy(),g.popperInstance=null)}function pe(){var te=g.props.appendTo,_e,Ee=R();g.props.interactive&&te===jg||te==="parent"?_e=Ee.parentNode:_e=Hg(te,[Ee]),_e.contains(C)||_e.appendChild(C),g.state.isMounted=!0,ce()}function Ie(){return ii(C.querySelectorAll("[data-tippy-root]"))}function xe(te){g.clearDelayTimeouts(),te&&K("onTrigger",[g,te]),Y();var _e=M(!0),Ee=L(),He=Ee[0],G=Ee[1];hr.isTouch&&He==="hold"&&G&&(_e=G),_e?a=setTimeout(function(){g.show()},_e):g.show()}function X(te){if(g.clearDelayTimeouts(),K("onUntrigger",[g,te]),!g.state.isVisible){H();return}if(!(g.props.trigger.indexOf("mouseenter")>=0&&g.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(te.type)>=0&&s)){var _e=M(!1);_e?o=setTimeout(function(){g.state.isVisible&&g.hide()},_e):i=requestAnimationFrame(function(){g.hide()})}}function re(){g.state.isEnabled=!0}function ye(){g.hide(),g.state.isEnabled=!1}function Ze(){clearTimeout(a),clearTimeout(o),cancelAnimationFrame(i)}function ct(te){if(!g.state.isDestroyed){K("onBeforeUpdate",[g,te]),Te();var _e=g.props,Ee=Yh(e,Object.assign({},_e,Uh(te),{ignoreAttributes:!0}));g.props=Ee,ee(),_e.interactiveDebounce!==Ee.interactiveDebounce&&(q(),v=jh(ue,Ee.interactiveDebounce)),_e.triggerTarget&&!Ee.triggerTarget?Wa(_e.triggerTarget).forEach(function(He){He.removeAttribute("aria-expanded")}):Ee.triggerTarget&&e.removeAttribute("aria-expanded"),Z(),$(),P&&P(_e,Ee),g.popperInstance&&(ce(),Ie().forEach(function(He){requestAnimationFrame(He._tippy.popperInstance.forceUpdate)})),K("onAfterUpdate",[g,te])}}function Se(te){g.setProps({content:te})}function ut(){var te=g.state.isVisible,_e=g.state.isDestroyed,Ee=!g.state.isEnabled,He=hr.isTouch&&!g.props.touch,G=Vu(g.props.duration,0,er.duration);if(!(te||_e||Ee||He)&&!R().hasAttribute("disabled")&&(K("onShow",[g],!1),g.props.onShow(g)!==!1)){if(g.state.isVisible=!0,z()&&(C.style.visibility="visible"),$(),Y(),g.state.isMounted||(C.style.transition="none"),z()){var se=B(),be=se.box,Re=se.content;Fu([be,Re],0)}p=function(){var he;if(!(!g.state.isVisible||u)){if(u=!0,C.offsetHeight,C.style.transition=g.props.moveTransition,z()&&g.props.animation){var Ce=B(),st=Ce.box,vt=Ce.content;Fu([st,vt],G),gs([st,vt],"visible")}V(),Z(),Hh(Hu,g),(he=g.popperInstance)==null||he.forceUpdate(),K("onMount",[g]),g.props.animation&&z()&&J(G,function(){g.state.isShown=!0,K("onShown",[g])})}},pe()}}function $t(){var te=!g.state.isVisible,_e=g.state.isDestroyed,Ee=!g.state.isEnabled,He=Vu(g.props.duration,1,er.duration);if(!(te||_e||Ee)&&(K("onHide",[g],!1),g.props.onHide(g)!==!1)){if(g.state.isVisible=!1,g.state.isShown=!1,u=!1,s=!1,z()&&(C.style.visibility="hidden"),q(),H(),$(!0),z()){var G=B(),se=G.box,be=G.content;g.props.animation&&(Fu([se,be],He),gs([se,be],"hidden"))}V(),Z(),g.props.animation?z()&&T(He,g.unmount):g.unmount()}}function xn(te){I().addEventListener("mousemove",v),Hh(fl,v),v(te)}function zt(){g.state.isVisible&&g.hide(),g.state.isMounted&&(Ae(),Ie().forEach(function(te){te._tippy.unmount()}),C.parentNode&&C.parentNode.removeChild(C),Hu=Hu.filter(function(te){return te!==g}),g.state.isMounted=!1,K("onHidden",[g]))}function Kt(){g.state.isDestroyed||(g.clearDelayTimeouts(),g.unmount(),Te(),delete e._tippy,g.state.isDestroyed=!0,K("onDestroy",[g]))}}function Be(e,t){t===void 0&&(t={});var n=er.plugins.concat(t.plugins||[]);$S();var a=Object.assign({},t,{plugins:n}),o=BS(e),i=o.reduce(function(s,l){var c=l&&GS(l,a);return c&&s.push(c),s},[]);return qc(e)?i[0]:i}Be.defaultProps=er;Be.setDefaultProps=US;Be.currentInput=hr;var KS=Object.assign({},Mg,{effect:function(t){var n=t.state,a={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,a.popper),n.styles=a,n.elements.arrow&&Object.assign(n.elements.arrow.style,a.arrow)}}),XS=function(t,n){var a;n===void 0&&(n={});var o=t,i=[],s=[],l,c=n.overrides,u=[],d=!1;function f(){s=o.map(function(g){return Wa(g.props.triggerTarget||g.reference)}).reduce(function(g,x){return g.concat(x)},[])}function p(){i=o.map(function(g){return g.reference})}function m(g){o.forEach(function(x){g?x.enable():x.disable()})}function v(g){return o.map(function(x){var C=x.setProps;return x.setProps=function(P){C(P),x.reference===l&&g.setProps(P)},function(){x.setProps=C}})}function y(g,x){var C=s.indexOf(x);if(x!==l){l=x;var P=(c||[]).concat("content").reduce(function(O,A){return O[A]=o[C].props[A],O},{});g.setProps(Object.assign({},P,{getReferenceClientRect:typeof P.getReferenceClientRect=="function"?P.getReferenceClientRect:function(){var O;return(O=i[C])==null?void 0:O.getBoundingClientRect()}}))}}m(!1),p(),f();var w={fn:function(){return{onDestroy:function(){m(!0)},onHidden:function(){l=null},onClickOutside:function(C){C.props.showOnCreate&&!d&&(d=!0,l=null)},onShow:function(C){C.props.showOnCreate&&!d&&(d=!0,y(C,i[0]))},onTrigger:function(C,P){y(C,P.currentTarget)}}}},b=Be(ro(),Object.assign({},AS(n,["overrides"]),{plugins:[w].concat(n.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},n.popperOptions,{modifiers:[].concat(((a=n.popperOptions)==null?void 0:a.modifiers)||[],[KS])})})),E=b.show;b.show=function(g){if(E(),!l&&g==null)return y(b,i[0]);if(!(l&&g==null)){if(typeof g=="number")return i[g]&&y(b,i[g]);if(o.indexOf(g)>=0){var x=g.reference;return y(b,x)}if(i.indexOf(g)>=0)return y(b,g)}},b.showNext=function(){var g=i[0];if(!l)return b.show(0);var x=i.indexOf(l);b.show(i[x+1]||g)},b.showPrevious=function(){var g=i[i.length-1];if(!l)return b.show(g);var x=i.indexOf(l),C=i[x-1]||g;b.show(C)};var _=b.setProps;return b.setProps=function(g){c=g.overrides||c,_(g)},b.setInstances=function(g){m(!0),u.forEach(function(x){return x()}),o=g,m(!1),p(),f(),u=v(b),b.setProps({triggerTarget:s})},u=v(b),b},JS={name:"animateFill",defaultValue:!1,fn:function(t){var n;if(!((n=t.props.render)!=null&&n.$$tippy))return{};var a=nc(t.popper),o=a.box,i=a.content,s=t.props.animateFill?QS():null;return{onCreate:function(){s&&(o.insertBefore(s,o.firstElementChild),o.setAttribute("data-animatefill",""),o.style.overflow="hidden",t.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(s){var c=o.style.transitionDuration,u=Number(c.replace("ms",""));i.style.transitionDelay=Math.round(u/10)+"ms",s.style.transitionDuration=c,gs([s],"visible")}},onShow:function(){s&&(s.style.transitionDuration="0ms")},onHide:function(){s&&gs([s],"hidden")}}}};function QS(){var e=ro();return e.className=zg,gs([e],"hidden"),e}var Yd={clientX:0,clientY:0},pl=[];function Kg(e){var t=e.clientX,n=e.clientY;Yd={clientX:t,clientY:n}}function ZS(e){e.addEventListener("mousemove",Kg)}function e8(e){e.removeEventListener("mousemove",Kg)}var t8={name:"followCursor",defaultValue:!1,fn:function(t){var n=t.reference,a=Wg(t.props.triggerTarget||n),o=!1,i=!1,s=!0,l=t.props;function c(){return t.props.followCursor==="initial"&&t.state.isVisible}function u(){a.addEventListener("mousemove",p)}function d(){a.removeEventListener("mousemove",p)}function f(){o=!0,t.setProps({getReferenceClientRect:null}),o=!1}function p(y){var w=y.target?n.contains(y.target):!0,b=t.props.followCursor,E=y.clientX,_=y.clientY,g=n.getBoundingClientRect(),x=E-g.left,C=_-g.top;(w||!t.props.interactive)&&t.setProps({getReferenceClientRect:function(){var O=n.getBoundingClientRect(),A=E,L=_;b==="initial"&&(A=O.left+x,L=O.top+C);var U=b==="horizontal"?O.top:L,z=b==="vertical"?O.right:A,R=b==="horizontal"?O.bottom:L,I=b==="vertical"?O.left:A;return{width:z-I,height:R-U,top:U,right:z,bottom:R,left:I}}})}function m(){t.props.followCursor&&(pl.push({instance:t,doc:a}),ZS(a))}function v(){pl=pl.filter(function(y){return y.instance!==t}),pl.filter(function(y){return y.doc===a}).length===0&&e8(a)}return{onCreate:m,onDestroy:v,onBeforeUpdate:function(){l=t.props},onAfterUpdate:function(w,b){var E=b.followCursor;o||E!==void 0&&l.followCursor!==E&&(v(),E?(m(),t.state.isMounted&&!i&&!c()&&u()):(d(),f()))},onMount:function(){t.props.followCursor&&!i&&(s&&(p(Yd),s=!1),c()||u())},onTrigger:function(w,b){mp(b)&&(Yd={clientX:b.clientX,clientY:b.clientY}),i=b.type==="focus"},onHidden:function(){t.props.followCursor&&(f(),d(),s=!0)}}}};function n8(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat((((n=e.popperOptions)==null?void 0:n.modifiers)||[]).filter(function(a){var o=a.name;return o!==t.name}),[t])})}}var r8={name:"inlinePositioning",defaultValue:!1,fn:function(t){var n=t.reference;function a(){return!!t.props.inlinePositioning}var o,i=-1,s=!1,l=[],c={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(m){var v=m.state;a()&&(l.indexOf(v.placement)!==-1&&(l=[]),o!==v.placement&&l.indexOf(v.placement)===-1&&(l.push(v.placement),t.setProps({getReferenceClientRect:function(){return u(v.placement)}})),o=v.placement)}};function u(p){return a8(Ug(p),n.getBoundingClientRect(),ii(n.getClientRects()),i)}function d(p){s=!0,t.setProps(p),s=!1}function f(){s||d(n8(t.props,c))}return{onCreate:f,onAfterUpdate:f,onTrigger:function(m,v){if(mp(v)){var y=ii(t.reference.getClientRects()),w=y.find(function(E){return E.left-2<=v.clientX&&E.right+2>=v.clientX&&E.top-2<=v.clientY&&E.bottom+2>=v.clientY}),b=y.indexOf(w);i=b>-1?b:i}},onHidden:function(){i=-1}}}};function a8(e,t,n,a){if(n.length<2||e===null)return t;if(n.length===2&&a>=0&&n[0].left>n[1].right)return n[a]||t;switch(e){case"top":case"bottom":{var o=n[0],i=n[n.length-1],s=e==="top",l=o.top,c=i.bottom,u=s?o.left:i.left,d=s?o.right:i.right,f=d-u,p=c-l;return{top:l,bottom:c,left:u,right:d,width:f,height:p}}case"left":case"right":{var m=Math.min.apply(Math,n.map(function(C){return C.left})),v=Math.max.apply(Math,n.map(function(C){return C.right})),y=n.filter(function(C){return e==="left"?C.left===m:C.right===v}),w=y[0].top,b=y[y.length-1].bottom,E=m,_=v,g=_-E,x=b-w;return{top:w,bottom:b,left:E,right:_,width:g,height:x}}default:return t}}var o8={name:"sticky",defaultValue:!1,fn:function(t){var n=t.reference,a=t.popper;function o(){return t.popperInstance?t.popperInstance.state.elements.reference:n}function i(u){return t.props.sticky===!0||t.props.sticky===u}var s=null,l=null;function c(){var u=i("reference")?o().getBoundingClientRect():null,d=i("popper")?a.getBoundingClientRect():null;(u&&Xh(s,u)||d&&Xh(l,d))&&t.popperInstance&&t.popperInstance.update(),s=u,l=d,t.state.isMounted&&requestAnimationFrame(c)}return{onMount:function(){t.props.sticky&&c()}}}};function Xh(e,t){return e&&t?e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left:!0}Be.setDefaultProps({render:Gg});Be.setDefaultProps({onShow:e=>{if(!e.props.content)return!1}});const i8=e=>e instanceof Object&&"$"in e&&"$el"in e;function hp(e,t={},n={mount:!0,appName:"Tippy"}){n=Object.assign({mount:!0,appName:"Tippy"},n);const a=r.getCurrentInstance(),o=r.ref(),i=r.ref({isEnabled:!1,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1}),s=r.shallowRef();let l=null;const c=()=>l||(l=document.createDocumentFragment(),l),u=P=>{let O,A=r.isRef(P)?P.value:P;return r.isVNode(A)?(s.value||(s.value=r.createApp({name:n.appName,setup:()=>()=>r.isRef(P)?P.value:P}),a&&Object.assign(s.value._context,a.appContext),s.value.mount(c())),O=()=>c()):typeof A=="object"?(s.value||(s.value=r.createApp({name:n.appName,setup:()=>()=>r.h(r.isRef(P)?P.value:P)}),a&&Object.assign(s.value._context,a.appContext),s.value.mount(c())),O=()=>c()):O=A,O},d=P=>{let O={};return r.isRef(P)?O=P.value||{}:r.isReactive(P)?O={...P}:O={...P},O.content&&(O.content=u(O.content)),O.triggerTarget&&(O.triggerTarget=r.isRef(O.triggerTarget)?O.triggerTarget.value:O.triggerTarget),(!O.plugins||!Array.isArray(O.plugins))&&(O.plugins=[]),O.plugins=O.plugins.filter(A=>A.name!=="vueTippyReactiveState"),O.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}})}),O},f=()=>{o.value&&o.value.setProps(d(t))},p=()=>{!o.value||!t.content||o.value.setContent(u(t.content))},m=P=>{var O;(O=o.value)===null||O===void 0||O.setContent(u(P))},v=P=>{var O;(O=o.value)===null||O===void 0||O.setProps(d(P))},y=()=>{var P;o.value&&(o.value.destroy(),o.value=void 0),l=null,(P=s.value)===null||P===void 0||P.unmount(),s.value=void 0},w=()=>{var P;(P=o.value)===null||P===void 0||P.show()},b=()=>{var P;(P=o.value)===null||P===void 0||P.hide()},E=()=>{var P;(P=o.value)===null||P===void 0||P.disable(),i.value.isEnabled=!1},_=()=>{var P;(P=o.value)===null||P===void 0||P.enable(),i.value.isEnabled=!0},g=()=>{var P;(P=o.value)===null||P===void 0||P.unmount()},x=()=>{if(!e)return;let P=r.isRef(e)?e.value:e;typeof P=="function"&&(P=P()),i8(P)&&(P=P.$el),P&&(o.value=Be(P,d(t)),P.$tippy=C)},C={tippy:o,refresh:f,refreshContent:p,setContent:m,setProps:v,destroy:y,hide:b,show:w,disable:E,enable:_,unmount:g,mount:x,state:i};return n.mount&&(a?a.isMounted?x():r.onMounted(x):x()),a&&r.onUnmounted(()=>{y()}),r.isRef(t)||r.isReactive(t)?r.watch(t,f,{immediate:!1}):r.isRef(t.content)&&r.watch(t.content,p,{immediate:!1}),C}function s8(e,t){const n=r.ref();return r.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=XS(o,t?{allowHTML:!0,...t}:{allowHTML:!0})}),{singleton:n}}function l8(e){return typeof e=="function"?e():r.unref(e)}function c8(e){var t,n;const a=l8(e);return(n=(t=a)===null||t===void 0?void 0:t.$el)!==null&&n!==void 0?n:a}const Xg=r.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:()=>Be.defaultProps.appendTo},aria:{default:()=>Be.defaultProps.aria},delay:{default:()=>Be.defaultProps.delay},duration:{default:()=>Be.defaultProps.duration},getReferenceClientRect:{default:()=>Be.defaultProps.getReferenceClientRect},hideOnClick:{type:[Boolean,String],default:()=>Be.defaultProps.hideOnClick},ignoreAttributes:{type:Boolean,default:()=>Be.defaultProps.ignoreAttributes},interactive:{type:Boolean,default:()=>Be.defaultProps.interactive},interactiveBorder:{default:()=>Be.defaultProps.interactiveBorder},interactiveDebounce:{default:()=>Be.defaultProps.interactiveDebounce},moveTransition:{default:()=>Be.defaultProps.moveTransition},offset:{default:()=>Be.defaultProps.offset},onAfterUpdate:{default:()=>Be.defaultProps.onAfterUpdate},onBeforeUpdate:{default:()=>Be.defaultProps.onBeforeUpdate},onCreate:{default:()=>Be.defaultProps.onCreate},onDestroy:{default:()=>Be.defaultProps.onDestroy},onHidden:{default:()=>Be.defaultProps.onHidden},onHide:{default:()=>Be.defaultProps.onHide},onMount:{default:()=>Be.defaultProps.onMount},onShow:{default:()=>Be.defaultProps.onShow},onShown:{default:()=>Be.defaultProps.onShown},onTrigger:{default:()=>Be.defaultProps.onTrigger},onUntrigger:{default:()=>Be.defaultProps.onUntrigger},onClickOutside:{default:()=>Be.defaultProps.onClickOutside},placement:{default:()=>Be.defaultProps.placement},plugins:{default:()=>Be.defaultProps.plugins},popperOptions:{default:()=>Be.defaultProps.popperOptions},render:{default:()=>Be.defaultProps.render},showOnCreate:{type:Boolean,default:()=>Be.defaultProps.showOnCreate},touch:{type:[Boolean,String,Array],default:()=>Be.defaultProps.touch},trigger:{default:()=>Be.defaultProps.trigger},triggerTarget:{default:()=>Be.defaultProps.triggerTarget},animateFill:{type:Boolean,default:()=>Be.defaultProps.animateFill},followCursor:{type:[Boolean,String],default:()=>Be.defaultProps.followCursor},inlinePositioning:{type:Boolean,default:()=>Be.defaultProps.inlinePositioning},sticky:{type:[Boolean,String],default:()=>Be.defaultProps.sticky},allowHTML:{type:Boolean,default:()=>Be.defaultProps.allowHTML},animation:{default:()=>Be.defaultProps.animation},arrow:{default:()=>Be.defaultProps.arrow},content:{default:()=>Be.defaultProps.content},inertia:{default:()=>Be.defaultProps.inertia},maxWidth:{default:()=>Be.defaultProps.maxWidth},role:{default:()=>Be.defaultProps.role},theme:{default:()=>Be.defaultProps.theme},zIndex:{default:()=>Be.defaultProps.zIndex}},emits:["state"],setup(e,{slots:t,emit:n,expose:a}){const o=r.ref(),i=r.ref(),s=r.ref(),l=r.ref(!1),c=()=>{let m={...e};for(const v of["to","tag","contentTag","contentClass"])m.hasOwnProperty(v)&&delete m[v];return m};let u=()=>c8(o);e.to&&(typeof Element<"u"&&e.to instanceof Element?u=()=>e.to:e.to==="parent"?u=()=>{let m=o.value;return m||(m=o.value=i.value.parentElement),m}:(typeof e.to=="string"||e.to instanceof String)&&(u=()=>document.querySelector(e.to)));const d=hp(u,c());let f=t.content;!f&&e.to==="parent"&&(f=t.default),r.onMounted(()=>{l.value=!0,r.nextTick(()=>{f&&d.setContent(()=>s.value)})}),r.watch(d.state,()=>{n("state",r.unref(d.state))},{immediate:!0,deep:!0}),r.watch(()=>e,()=>{d.setProps(c()),f&&d.setContent(()=>s.value)},{deep:!0});let p=r.reactive({elem:o,contentElem:s,mounted:l,...d});return a(p),()=>{const m=(typeof e.contentTag=="string",e.contentTag),v=f?r.h(m,{ref:s,style:{display:l.value?"inherit":"none"},class:e.contentClass},f(p)):null;if(e.to==="parent"){const b=[];if(!o.value){const E=r.h("span",{ref:i,"data-v-tippy":"",style:{display:"none"}});b.push(E)}return v&&b.push(v),b}const y=t.default?t.default(p):[];if(!e.tag){const b=r.h(y[0],{ref:o,"data-v-tippy":""});return v?[b,v]:b}const w=(typeof e.tag=="string",e.tag);return r.h(w,{ref:o,"data-v-tippy":""},v?[y,v]:y)}}}),u8=["a11y","allowHTML","arrow","flip","flipOnUpdate","hideOnClick","ignoreAttributes","inertia","interactive","lazy","multiple","showOnInit","touch","touchHold"];let Gd={};Object.keys(Be.defaultProps).forEach(e=>{u8.includes(e)?Gd[e]={type:Boolean,default:function(){return Be.defaultProps[e]}}:Gd[e]={default:function(){return Be.defaultProps[e]}}});const d8=r.defineComponent({props:Gd,setup(e){const t=r.ref([]),{singleton:n}=s8(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(a=>a._tippy).filter(Boolean),(e=this.singleton)===null||e===void 0||e.setInstances(this.instances)},render(){let e=this.$slots.default?this.$slots.default():[];return r.h(()=>e)}}),f8={mounted(e,t,n){const a=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&&(a.placement=a.placement||i),s&&(a.arrow=a.arrow!==void 0?a.arrow:!0),n.props&&n.props.onTippyShow&&(a.onShow=function(...l){var c;return(c=n.props)===null||c===void 0?void 0:c.onTippyShow(...l)}),n.props&&n.props.onTippyShown&&(a.onShown=function(...l){var c;return(c=n.props)===null||c===void 0?void 0:c.onTippyShown(...l)}),n.props&&n.props.onTippyHidden&&(a.onHidden=function(...l){var c;return(c=n.props)===null||c===void 0?void 0:c.onTippyHidden(...l)}),n.props&&n.props.onTippyHide&&(a.onHide=function(...l){var c;return(c=n.props)===null||c===void 0?void 0:c.onTippyHide(...l)}),n.props&&n.props.onTippyMount&&(a.onMount=function(...l){var c;return(c=n.props)===null||c===void 0?void 0:c.onTippyMount(...l)}),e.getAttribute("title")&&!a.content&&(a.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!a.content&&(a.content=e.getAttribute("content")),hp(e,a)},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||{};n.content||(n.content=null),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||{})}},Jh={install(e,t={}){Be.setDefaultProps(t.defaultProps||{}),e.directive(t.directive||"tippy",f8),e.component(t.component||"tippy",Xg),e.component(t.componentSingleton||"tippy-singleton",d8)}},p8=Be.setDefaultProps;p8({ignoreAttributes:!0,plugins:[o8,r8,t8,JS]});/*!
5
+ */var _n="top",Fn="bottom",jn="right",Sn="left",sp="auto",Os=[_n,Fn,jn,Sn],ti="start",hs="end",S_="clippingParents",Pg="viewport",Wi="popper",C_="reference",Oh=Os.reduce(function(e,t){return e.concat([t+"-"+ti,t+"-"+hs])},[]),Ag=[].concat(Os,[sp]).reduce(function(e,t){return e.concat([t,t+"-"+ti,t+"-"+hs])},[]),x_="beforeRead",E_="read",T_="afterRead",P_="beforeMain",A_="main",I_="afterMain",M_="beforeWrite",N_="write",O_="afterWrite",B_=[x_,E_,T_,P_,A_,I_,M_,N_,O_];function Ar(e){return e?(e.nodeName||"").toLowerCase():null}function cr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ni(e){var t=cr(e).Element;return e instanceof t||e instanceof Element}function $n(e){var t=cr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ig(e){if(typeof ShadowRoot>"u")return!1;var t=cr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function L_(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!$n(i)||!Ar(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function D_(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(a){var o=t.elements[a],i=t.attributes[a]||{},s=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),l=s.reduce(function(c,u){return c[u]="",c},{});!$n(o)||!Ar(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}var Mg={name:"applyStyles",enabled:!0,phase:"write",fn:L_,effect:D_,requires:["computeStyles"]};function Er(e){return e.split("-")[0]}var no=Math.max,tc=Math.min,ri=Math.round;function ai(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),a=1,o=1;if($n(e)&&t){var i=e.offsetHeight,s=e.offsetWidth;s>0&&(a=ri(n.width)/s||1),i>0&&(o=ri(n.height)/i||1)}return{width:n.width/a,height:n.height/o,top:n.top/o,right:n.right/a,bottom:n.bottom/o,left:n.left/a,x:n.left/a,y:n.top/o}}function lp(e){var t=ai(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function Ng(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ig(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Ir(e){return cr(e).getComputedStyle(e)}function R_(e){return["table","td","th"].indexOf(Ar(e))>=0}function Ma(e){return((ni(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wc(e){return Ar(e)==="html"?e:e.assignedSlot||e.parentNode||(Ig(e)?e.host:null)||Ma(e)}function Bh(e){return!$n(e)||Ir(e).position==="fixed"?null:e.offsetParent}function $_(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&$n(e)){var a=Ir(e);if(a.position==="fixed")return null}for(var o=Wc(e);$n(o)&&["html","body"].indexOf(Ar(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 Bs(e){for(var t=cr(e),n=Bh(e);n&&R_(n)&&Ir(n).position==="static";)n=Bh(n);return n&&(Ar(n)==="html"||Ar(n)==="body"&&Ir(n).position==="static")?t:n||$_(e)||t}function cp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qi(e,t,n){return no(e,tc(t,n))}function z_(e,t,n){var a=Qi(e,t,n);return a>n?n:a}function Og(){return{top:0,right:0,bottom:0,left:0}}function Bg(e){return Object.assign({},Og(),e)}function Lg(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}var V_=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Bg(typeof t!="number"?t:Lg(t,Os))};function F_(e){var t,n=e.state,a=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Er(n.placement),c=cp(l),u=[Sn,jn].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!s)){var f=V_(o.padding,n),p=lp(i),m=c==="y"?_n:Sn,g=c==="y"?Fn:jn,y=n.rects.reference[d]+n.rects.reference[c]-s[c]-n.rects.popper[d],w=s[c]-n.rects.reference[c],b=Bs(i),E=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,_=y/2-w/2,v=f[m],x=E-p[d]-f[g],C=E/2-p[d]/2+_,P=Qi(v,C,x),O=c;n.modifiersData[a]=(t={},t[O]=P,t.centerOffset=P-C,t)}}function j_(e){var t=e.state,n=e.options,a=n.element,o=a===void 0?"[data-popper-arrow]":a;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Ng(t.elements.popper,o)&&(t.elements.arrow=o))}var H_={name:"arrow",enabled:!0,phase:"main",fn:F_,effect:j_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oi(e){return e.split("-")[1]}var U_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function W_(e){var t=e.x,n=e.y,a=window,o=a.devicePixelRatio||1;return{x:ri(t*o)/o||0,y:ri(n*o)/o||0}}function Lh(e){var t,n=e.popper,a=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=d===!0?W_(s):typeof d=="function"?d(s):s,m=p.x,g=m===void 0?0:m,y=p.y,w=y===void 0?0:y,b=s.hasOwnProperty("x"),E=s.hasOwnProperty("y"),_=Sn,v=_n,x=window;if(u){var C=Bs(n),P="clientHeight",O="clientWidth";if(C===cr(n)&&(C=Ma(n),Ir(C).position!=="static"&&l==="absolute"&&(P="scrollHeight",O="scrollWidth")),C=C,o===_n||(o===Sn||o===jn)&&i===hs){v=Fn;var A=f&&x.visualViewport?x.visualViewport.height:C[P];w-=A-a.height,w*=c?1:-1}if(o===Sn||(o===_n||o===Fn)&&i===hs){_=jn;var L=f&&x.visualViewport?x.visualViewport.width:C[O];g-=L-a.width,g*=c?1:-1}}var U=Object.assign({position:l},u&&U_);if(c){var z;return Object.assign({},U,(z={},z[v]=E?"0":"",z[_]=b?"0":"",z.transform=(x.devicePixelRatio||1)<=1?"translate("+g+"px, "+w+"px)":"translate3d("+g+"px, "+w+"px, 0)",z))}return Object.assign({},U,(t={},t[v]=E?w+"px":"",t[_]=b?g+"px":"",t.transform="",t))}function q_(e){var t=e.state,n=e.options,a=n.gpuAcceleration,o=a===void 0?!0:a,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:Er(t.placement),variation:oi(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,Lh(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Lh(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Y_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:q_,data:{}},dl={passive:!0};function G_(e){var t=e.state,n=e.instance,a=e.options,o=a.scroll,i=o===void 0?!0:o,s=a.resize,l=s===void 0?!0:s,c=cr(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,dl)}),l&&c.addEventListener("resize",n.update,dl),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,dl)}),l&&c.removeEventListener("resize",n.update,dl)}}var K_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:G_,data:{}},X_={left:"right",right:"left",bottom:"top",top:"bottom"};function Vl(e){return e.replace(/left|right|bottom|top/g,function(t){return X_[t]})}var J_={start:"end",end:"start"};function Dh(e){return e.replace(/start|end/g,function(t){return J_[t]})}function up(e){var t=cr(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function dp(e){return ai(Ma(e)).left+up(e).scrollLeft}function Q_(e){var t=cr(e),n=Ma(e),a=t.visualViewport,o=n.clientWidth,i=n.clientHeight,s=0,l=0;return a&&(o=a.width,i=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=a.offsetLeft,l=a.offsetTop)),{width:o,height:i,x:s+dp(e),y:l}}function Z_(e){var t,n=Ma(e),a=up(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=no(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=no(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-a.scrollLeft+dp(e),c=-a.scrollTop;return Ir(o||n).direction==="rtl"&&(l+=no(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function fp(e){var t=Ir(e),n=t.overflow,a=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+a)}function Dg(e){return["html","body","#document"].indexOf(Ar(e))>=0?e.ownerDocument.body:$n(e)&&fp(e)?e:Dg(Wc(e))}function Zi(e,t){var n;t===void 0&&(t=[]);var a=Dg(e),o=a===((n=e.ownerDocument)==null?void 0:n.body),i=cr(a),s=o?[i].concat(i.visualViewport||[],fp(a)?a:[]):a,l=t.concat(s);return o?l:l.concat(Zi(Wc(s)))}function Wd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function eS(e){var t=ai(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 Rh(e,t){return t===Pg?Wd(Q_(e)):ni(t)?eS(t):Wd(Z_(Ma(e)))}function tS(e){var t=Zi(Wc(e)),n=["absolute","fixed"].indexOf(Ir(e).position)>=0,a=n&&$n(e)?Bs(e):e;return ni(a)?t.filter(function(o){return ni(o)&&Ng(o,a)&&Ar(o)!=="body"&&(n?Ir(o).position!=="static":!0)}):[]}function nS(e,t,n){var a=t==="clippingParents"?tS(e):[].concat(t),o=[].concat(a,[n]),i=o[0],s=o.reduce(function(l,c){var u=Rh(e,c);return l.top=no(u.top,l.top),l.right=tc(u.right,l.right),l.bottom=tc(u.bottom,l.bottom),l.left=no(u.left,l.left),l},Rh(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 Rg(e){var t=e.reference,n=e.element,a=e.placement,o=a?Er(a):null,i=a?oi(a):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case _n:c={x:s,y:t.y-n.height};break;case Fn:c={x:s,y:t.y+t.height};break;case jn:c={x:t.x+t.width,y:l};break;case Sn:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=o?cp(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case ti:c[u]=c[u]-(t[d]/2-n[d]/2);break;case hs:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function vs(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=a===void 0?e.placement:a,i=n.boundary,s=i===void 0?S_:i,l=n.rootBoundary,c=l===void 0?Pg:l,u=n.elementContext,d=u===void 0?Wi:u,f=n.altBoundary,p=f===void 0?!1:f,m=n.padding,g=m===void 0?0:m,y=Bg(typeof g!="number"?g:Lg(g,Os)),w=d===Wi?C_:Wi,b=e.rects.popper,E=e.elements[p?w:d],_=nS(ni(E)?E:E.contextElement||Ma(e.elements.popper),s,c),v=ai(e.elements.reference),x=Rg({reference:v,element:b,placement:o}),C=Wd(Object.assign({},b,x)),P=d===Wi?C:v,O={top:_.top-P.top+y.top,bottom:P.bottom-_.bottom+y.bottom,left:_.left-P.left+y.left,right:P.right-_.right+y.right},A=e.modifiersData.offset;if(d===Wi&&A){var L=A[o];Object.keys(O).forEach(function(U){var z=[jn,Fn].indexOf(U)>=0?1:-1,R=[_n,Fn].indexOf(U)>=0?"y":"x";O[U]+=L[R]*z})}return O}function rS(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?Ag:c,d=oi(a),f=d?l?Oh:Oh.filter(function(g){return oi(g)===d}):Os,p=f.filter(function(g){return u.indexOf(g)>=0});p.length===0&&(p=f);var m=p.reduce(function(g,y){return g[y]=vs(e,{placement:y,boundary:o,rootBoundary:i,padding:s})[Er(y)],g},{});return Object.keys(m).sort(function(g,y){return m[g]-m[y]})}function aS(e){if(Er(e)===sp)return[];var t=Vl(e);return[Dh(e),t,Dh(t)]}function oS(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,g=m===void 0?!0:m,y=n.allowedAutoPlacements,w=t.options.placement,b=Er(w),E=b===w,_=c||(E||!g?[Vl(w)]:aS(w)),v=[w].concat(_).reduce(function(W,Y){return W.concat(Er(Y)===sp?rS(t,{placement:Y,boundary:d,rootBoundary:f,padding:u,flipVariations:g,allowedAutoPlacements:y}):Y)},[]),x=t.rects.reference,C=t.rects.popper,P=new Map,O=!0,A=v[0],L=0;L<v.length;L++){var U=v[L],z=Er(U),R=oi(U)===ti,I=[_n,Fn].indexOf(z)>=0,B=I?"width":"height",M=vs(t,{placement:U,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),$=I?R?jn:Sn:R?Fn:_n;x[B]>C[B]&&($=Vl($));var K=Vl($),V=[];if(i&&V.push(M[z]<=0),l&&V.push(M[$]<=0,M[K]<=0),V.every(function(W){return W})){A=U,O=!1;break}P.set(U,V)}if(O)for(var Z=g?3:1,q=function(Y){var H=v.find(function(T){var J=P.get(T);if(J)return J.slice(0,Y).every(function(le){return le})});if(H)return A=H,"break"},oe=Z;oe>0;oe--){var j=q(oe);if(j==="break")break}t.placement!==A&&(t.modifiersData[a]._skip=!0,t.placement=A,t.reset=!0)}}var iS={name:"flip",enabled:!0,phase:"main",fn:oS,requiresIfExists:["offset"],data:{_skip:!1}};function $h(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 zh(e){return[_n,jn,Fn,Sn].some(function(t){return e[t]>=0})}function sS(e){var t=e.state,n=e.name,a=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=vs(t,{elementContext:"reference"}),l=vs(t,{altBoundary:!0}),c=$h(s,a),u=$h(l,o,i),d=zh(c),f=zh(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var lS={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sS};function cS(e,t,n){var a=Er(e),o=[Sn,_n].indexOf(a)>=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,jn].indexOf(a)>=0?{x:l,y:s}:{x:s,y:l}}function uS(e){var t=e.state,n=e.options,a=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=Ag.reduce(function(d,f){return d[f]=cS(f,t.rects,i),d},{}),l=s[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[a]=s}var dS={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:uS};function fS(e){var t=e.state,n=e.name;t.modifiersData[n]=Rg({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var pS={name:"popperOffsets",enabled:!0,phase:"read",fn:fS,data:{}};function mS(e){return e==="x"?"y":"x"}function hS(e){var t=e.state,n=e.options,a=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,g=n.tetherOffset,y=g===void 0?0:g,w=vs(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),b=Er(t.placement),E=oi(t.placement),_=!E,v=cp(b),x=mS(v),C=t.modifiersData.popperOffsets,P=t.rects.reference,O=t.rects.popper,A=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,L=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),U=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(C){if(i){var R,I=v==="y"?_n:Sn,B=v==="y"?Fn:jn,M=v==="y"?"height":"width",$=C[v],K=$+w[I],V=$-w[B],Z=m?-O[M]/2:0,q=E===ti?P[M]:O[M],oe=E===ti?-O[M]:-P[M],j=t.elements.arrow,W=m&&j?lp(j):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Og(),H=Y[I],T=Y[B],J=Qi(0,P[M],W[M]),le=_?P[M]/2-Z-J-H-L.mainAxis:q-J-H-L.mainAxis,Oe=_?-P[M]/2+Z+J+T+L.mainAxis:oe+J+T+L.mainAxis,ee=t.elements.arrow&&Bs(t.elements.arrow),Te=ee?v==="y"?ee.clientTop||0:ee.clientLeft||0:0,ae=(R=U?.[v])!=null?R:0,ue=$+le-ae-Te,D=$+Oe-ae,de=Qi(m?tc(K,ue):K,$,m?no(V,D):V);C[v]=de,z[v]=de-$}if(l){var fe,ce=v==="x"?_n:Sn,Ae=v==="x"?Fn:jn,pe=C[x],Ie=x==="y"?"height":"width",xe=pe+w[ce],X=pe-w[Ae],re=[_n,Sn].indexOf(b)!==-1,ye=(fe=U?.[x])!=null?fe:0,Ze=re?xe:pe-P[Ie]-O[Ie]-ye+L.altAxis,ct=re?pe+P[Ie]+O[Ie]-ye-L.altAxis:X,Se=m&&re?z_(Ze,pe,ct):Qi(m?Ze:xe,pe,m?ct:X);C[x]=Se,z[x]=Se-pe}t.modifiersData[a]=z}}var vS={name:"preventOverflow",enabled:!0,phase:"main",fn:hS,requiresIfExists:["offset"]};function gS(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function yS(e){return e===cr(e)||!$n(e)?up(e):gS(e)}function bS(e){var t=e.getBoundingClientRect(),n=ri(t.width)/e.offsetWidth||1,a=ri(t.height)/e.offsetHeight||1;return n!==1||a!==1}function wS(e,t,n){n===void 0&&(n=!1);var a=$n(t),o=$n(t)&&bS(t),i=Ma(t),s=ai(e,o),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&((Ar(t)!=="body"||fp(i))&&(l=yS(t)),$n(t)?(c=ai(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=dp(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function kS(e){var t=new Map,n=new Set,a=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),a.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),a}function _S(e){var t=kS(e);return B_.reduce(function(n,a){return n.concat(t.filter(function(o){return o.phase===a}))},[])}function SS(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function CS(e){var t=e.reduce(function(n,a){var o=n[a.name];return n[a.name]=o?Object.assign({},o,a,{options:Object.assign({},o.options,a.options),data:Object.assign({},o.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var Vh={placement:"bottom",modifiers:[],strategy:"absolute"};function Fh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function xS(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Vh:o;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Vh,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,m={state:d,setOptions:function(b){var E=typeof b=="function"?b(d.options):b;y(),d.options=Object.assign({},i,d.options,E),d.scrollParents={reference:ni(l)?Zi(l):l.contextElement?Zi(l.contextElement):[],popper:Zi(c)};var _=_S(CS([].concat(a,d.options.modifiers)));return d.orderedModifiers=_.filter(function(v){return v.enabled}),g(),m.update()},forceUpdate:function(){if(!p){var b=d.elements,E=b.reference,_=b.popper;if(Fh(E,_)){d.rects={reference:wS(E,Bs(_),d.options.strategy==="fixed"),popper:lp(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(L){return d.modifiersData[L.name]=Object.assign({},L.data)});for(var v=0;v<d.orderedModifiers.length;v++){if(d.reset===!0){d.reset=!1,v=-1;continue}var x=d.orderedModifiers[v],C=x.fn,P=x.options,O=P===void 0?{}:P,A=x.name;typeof C=="function"&&(d=C({state:d,options:O,name:A,instance:m})||d)}}}},update:SS(function(){return new Promise(function(w){m.forceUpdate(),w(d)})}),destroy:function(){y(),p=!0}};if(!Fh(l,c))return m;m.setOptions(u).then(function(w){!p&&u.onFirstUpdate&&u.onFirstUpdate(w)});function g(){d.orderedModifiers.forEach(function(w){var b=w.name,E=w.options,_=E===void 0?{}:E,v=w.effect;if(typeof v=="function"){var x=v({state:d,name:b,instance:m,options:_}),C=function(){};f.push(x||C)}})}function y(){f.forEach(function(w){return w()}),f=[]}return m}}var ES=[K_,pS,Y_,Mg,dS,iS,vS,H_,lS],TS=xS({defaultModifiers:ES}),PS="tippy-box",$g="tippy-content",zg="tippy-backdrop",Vg="tippy-arrow",Fg="tippy-svg-arrow",Ha={passive:!0,capture:!0},jg=function(){return document.body};function Vu(e,t,n){if(Array.isArray(e)){var a=e[t];return a??(Array.isArray(n)?n[t]:n)}return e}function pp(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function Hg(e,t){return typeof e=="function"?e.apply(void 0,t):e}function jh(e,t){if(t===0)return e;var n;return function(a){clearTimeout(n),n=setTimeout(function(){e(a)},t)}}function AS(e,t){var n=Object.assign({},e);return t.forEach(function(a){delete n[a]}),n}function IS(e){return e.split(/\s+/).filter(Boolean)}function Wa(e){return[].concat(e)}function Hh(e,t){e.indexOf(t)===-1&&e.push(t)}function MS(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Ug(e){return e.split("-")[0]}function ii(e){return[].slice.call(e)}function Uh(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function ro(){return document.createElement("div")}function qc(e){return["Element","Fragment"].some(function(t){return pp(e,t)})}function NS(e){return pp(e,"NodeList")}function mp(e){return pp(e,"MouseEvent")}function OS(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function BS(e){return qc(e)?[e]:NS(e)?ii(e):Array.isArray(e)?e:ii(document.querySelectorAll(e))}function Fu(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function gs(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Wg(e){var t,n=Wa(e),a=n[0];return a!=null&&(t=a.ownerDocument)!=null&&t.body?a.ownerDocument:document}function LS(e,t){var n=t.clientX,a=t.clientY;return e.every(function(o){var i=o.popperRect,s=o.popperState,l=o.props,c=l.interactiveBorder,u=Ug(s.placement),d=s.modifiersData.offset;if(!d)return!0;var f=u==="bottom"?d.top.y:0,p=u==="top"?d.bottom.y:0,m=u==="right"?d.left.x:0,g=u==="left"?d.right.x:0,y=i.top-a+f>c,w=a-i.bottom-p>c,b=i.left-n+m>c,E=n-i.right-g>c;return y||w||b||E})}function ju(e,t,n){var a=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[a](o,n)})}function Wh(e,t){for(var n=t;n;){var a;if(e.contains(n))return!0;n=n.getRootNode==null||(a=n.getRootNode())==null?void 0:a.host}return!1}var hr={isTouch:!1},qh=0;function DS(){hr.isTouch||(hr.isTouch=!0,window.performance&&document.addEventListener("mousemove",qg))}function qg(){var e=performance.now();e-qh<20&&(hr.isTouch=!1,document.removeEventListener("mousemove",qg)),qh=e}function RS(){var e=document.activeElement;if(OS(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function $S(){document.addEventListener("touchstart",DS,Ha),window.addEventListener("blur",RS)}var zS=typeof window<"u"&&typeof document<"u",VS=zS?!!window.msCrypto:!1,FS={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},jS={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},er=Object.assign({appendTo:jg,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},FS,jS),HS=Object.keys(er),US=function(t){var n=Object.keys(t);n.forEach(function(a){er[a]=t[a]})};function Yg(e){var t=e.plugins||[],n=t.reduce(function(a,o){var i=o.name,s=o.defaultValue;if(i){var l;a[i]=e[i]!==void 0?e[i]:(l=er[i])!=null?l:s}return a},{});return Object.assign({},e,n)}function WS(e,t){var n=t?Object.keys(Yg(Object.assign({},er,{plugins:t}))):HS,a=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 a}function Yh(e,t){var n=Object.assign({},t,{content:Hg(t.content,[e])},t.ignoreAttributes?{}:WS(e,t.plugins));return n.aria=Object.assign({},er.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 qS=function(){return"innerHTML"};function qd(e,t){e[qS()]=t}function Gh(e){var t=ro();return e===!0?t.className=Vg:(t.className=Fg,qc(e)?t.appendChild(e):qd(t,e)),t}function Kh(e,t){qc(t.content)?(qd(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?qd(e,t.content):e.textContent=t.content)}function nc(e){var t=e.firstElementChild,n=ii(t.children);return{box:t,content:n.find(function(a){return a.classList.contains($g)}),arrow:n.find(function(a){return a.classList.contains(Vg)||a.classList.contains(Fg)}),backdrop:n.find(function(a){return a.classList.contains(zg)})}}function Gg(e){var t=ro(),n=ro();n.className=PS,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var a=ro();a.className=$g,a.setAttribute("data-state","hidden"),Kh(a,e.props),t.appendChild(n),n.appendChild(a),o(e.props,e.props);function o(i,s){var l=nc(t),c=l.box,u=l.content,d=l.arrow;s.theme?c.setAttribute("data-theme",s.theme):c.removeAttribute("data-theme"),typeof s.animation=="string"?c.setAttribute("data-animation",s.animation):c.removeAttribute("data-animation"),s.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?c.setAttribute("role",s.role):c.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&Kh(u,e.props),s.arrow?d?i.arrow!==s.arrow&&(c.removeChild(d),c.appendChild(Gh(s.arrow))):c.appendChild(Gh(s.arrow)):d&&c.removeChild(d)}return{popper:t,onUpdate:o}}Gg.$$tippy=!0;var YS=1,fl=[],Hu=[];function GS(e,t){var n=Yh(e,Object.assign({},er,Yg(Uh(t)))),a,o,i,s=!1,l=!1,c=!1,u=!1,d,f,p,m=[],g=jh(ue,n.interactiveDebounce),y,w=YS++,b=null,E=MS(n.plugins),_={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},v={id:w,reference:e,popper:ro(),popperInstance:b,props:n,state:_,plugins:E,clearDelayTimeouts:Ze,setProps:ct,setContent:Se,show:ut,hide:$t,hideWithInteractivity:xn,enable:re,disable:ye,unmount:zt,destroy:Kt};if(!n.render)return v;var x=n.render(v),C=x.popper,P=x.onUpdate;C.setAttribute("data-tippy-root",""),C.id="tippy-"+v.id,v.popper=C,e._tippy=v,C._tippy=v;var O=E.map(function(te){return te.fn(v)}),A=e.hasAttribute("aria-expanded");return ee(),Z(),$(),K("onCreate",[v]),n.showOnCreate&&xe(),C.addEventListener("mouseenter",function(){v.props.interactive&&v.state.isVisible&&v.clearDelayTimeouts()}),C.addEventListener("mouseleave",function(){v.props.interactive&&v.props.trigger.indexOf("mouseenter")>=0&&I().addEventListener("mousemove",g)}),v;function L(){var te=v.props.touch;return Array.isArray(te)?te:[te,0]}function U(){return L()[0]==="hold"}function z(){var te;return!!((te=v.props.render)!=null&&te.$$tippy)}function R(){return y||e}function I(){var te=R().parentNode;return te?Wg(te):document}function B(){return nc(C)}function M(te){return v.state.isMounted&&!v.state.isVisible||hr.isTouch||d&&d.type==="focus"?0:Vu(v.props.delay,te?0:1,er.delay)}function $(te){te===void 0&&(te=!1),C.style.pointerEvents=v.props.interactive&&!te?"":"none",C.style.zIndex=""+v.props.zIndex}function K(te,_e,Ee){if(Ee===void 0&&(Ee=!0),O.forEach(function(G){G[te]&&G[te].apply(G,_e)}),Ee){var He;(He=v.props)[te].apply(He,_e)}}function V(){var te=v.props.aria;if(te.content){var _e="aria-"+te.content,Ee=C.id,He=Wa(v.props.triggerTarget||e);He.forEach(function(G){var se=G.getAttribute(_e);if(v.state.isVisible)G.setAttribute(_e,se?se+" "+Ee:Ee);else{var be=se&&se.replace(Ee,"").trim();be?G.setAttribute(_e,be):G.removeAttribute(_e)}})}}function Z(){if(!(A||!v.props.aria.expanded)){var te=Wa(v.props.triggerTarget||e);te.forEach(function(_e){v.props.interactive?_e.setAttribute("aria-expanded",v.state.isVisible&&_e===R()?"true":"false"):_e.removeAttribute("aria-expanded")})}}function q(){I().removeEventListener("mousemove",g),fl=fl.filter(function(te){return te!==g})}function oe(te){if(!(hr.isTouch&&(c||te.type==="mousedown"))){var _e=te.composedPath&&te.composedPath()[0]||te.target;if(!(v.props.interactive&&Wh(C,_e))){if(Wa(v.props.triggerTarget||e).some(function(Ee){return Wh(Ee,_e)})){if(hr.isTouch||v.state.isVisible&&v.props.trigger.indexOf("click")>=0)return}else K("onClickOutside",[v,te]);v.props.hideOnClick===!0&&(v.clearDelayTimeouts(),v.hide(),l=!0,setTimeout(function(){l=!1}),v.state.isMounted||H())}}}function j(){c=!0}function W(){c=!1}function Y(){var te=I();te.addEventListener("mousedown",oe,!0),te.addEventListener("touchend",oe,Ha),te.addEventListener("touchstart",W,Ha),te.addEventListener("touchmove",j,Ha)}function H(){var te=I();te.removeEventListener("mousedown",oe,!0),te.removeEventListener("touchend",oe,Ha),te.removeEventListener("touchstart",W,Ha),te.removeEventListener("touchmove",j,Ha)}function T(te,_e){le(te,function(){!v.state.isVisible&&C.parentNode&&C.parentNode.contains(C)&&_e()})}function J(te,_e){le(te,_e)}function le(te,_e){var Ee=B().box;function He(G){G.target===Ee&&(ju(Ee,"remove",He),_e())}if(te===0)return _e();ju(Ee,"remove",f),ju(Ee,"add",He),f=He}function Oe(te,_e,Ee){Ee===void 0&&(Ee=!1);var He=Wa(v.props.triggerTarget||e);He.forEach(function(G){G.addEventListener(te,_e,Ee),m.push({node:G,eventType:te,handler:_e,options:Ee})})}function ee(){U()&&(Oe("touchstart",ae,{passive:!0}),Oe("touchend",D,{passive:!0})),IS(v.props.trigger).forEach(function(te){if(te!=="manual")switch(Oe(te,ae),te){case"mouseenter":Oe("mouseleave",D);break;case"focus":Oe(VS?"focusout":"blur",de);break;case"focusin":Oe("focusout",de);break}})}function Te(){m.forEach(function(te){var _e=te.node,Ee=te.eventType,He=te.handler,G=te.options;_e.removeEventListener(Ee,He,G)}),m=[]}function ae(te){var _e,Ee=!1;if(!(!v.state.isEnabled||fe(te)||l)){var He=((_e=d)==null?void 0:_e.type)==="focus";d=te,y=te.currentTarget,Z(),!v.state.isVisible&&mp(te)&&fl.forEach(function(G){return G(te)}),te.type==="click"&&(v.props.trigger.indexOf("mouseenter")<0||s)&&v.props.hideOnClick!==!1&&v.state.isVisible?Ee=!0:xe(te),te.type==="click"&&(s=!Ee),Ee&&!He&&X(te)}}function ue(te){var _e=te.target,Ee=R().contains(_e)||C.contains(_e);if(!(te.type==="mousemove"&&Ee)){var He=Ie().concat(C).map(function(G){var se,be=G._tippy,Re=(se=be.popperInstance)==null?void 0:se.state;return Re?{popperRect:G.getBoundingClientRect(),popperState:Re,props:n}:null}).filter(Boolean);LS(He,te)&&(q(),X(te))}}function D(te){var _e=fe(te)||v.props.trigger.indexOf("click")>=0&&s;if(!_e){if(v.props.interactive){v.hideWithInteractivity(te);return}X(te)}}function de(te){v.props.trigger.indexOf("focusin")<0&&te.target!==R()||v.props.interactive&&te.relatedTarget&&C.contains(te.relatedTarget)||X(te)}function fe(te){return hr.isTouch?U()!==te.type.indexOf("touch")>=0:!1}function ce(){Ae();var te=v.props,_e=te.popperOptions,Ee=te.placement,He=te.offset,G=te.getReferenceClientRect,se=te.moveTransition,be=z()?nc(C).arrow:null,Re=G?{getBoundingClientRect:G,contextElement:G.contextElement||R()}:e,ne={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(st){var vt=st.state;if(z()){var Ut=B(),Vt=Ut.box;["placement","reference-hidden","escaped"].forEach(function(nn){nn==="placement"?Vt.setAttribute("data-placement",vt.placement):vt.attributes.popper["data-popper-"+nn]?Vt.setAttribute("data-"+nn,""):Vt.removeAttribute("data-"+nn)}),vt.attributes.popper={}}}},he=[{name:"offset",options:{offset:He}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!se}},ne];z()&&be&&he.push({name:"arrow",options:{element:be,padding:3}}),he.push.apply(he,_e?.modifiers||[]),v.popperInstance=TS(Re,C,Object.assign({},_e,{placement:Ee,onFirstUpdate:p,modifiers:he}))}function Ae(){v.popperInstance&&(v.popperInstance.destroy(),v.popperInstance=null)}function pe(){var te=v.props.appendTo,_e,Ee=R();v.props.interactive&&te===jg||te==="parent"?_e=Ee.parentNode:_e=Hg(te,[Ee]),_e.contains(C)||_e.appendChild(C),v.state.isMounted=!0,ce()}function Ie(){return ii(C.querySelectorAll("[data-tippy-root]"))}function xe(te){v.clearDelayTimeouts(),te&&K("onTrigger",[v,te]),Y();var _e=M(!0),Ee=L(),He=Ee[0],G=Ee[1];hr.isTouch&&He==="hold"&&G&&(_e=G),_e?a=setTimeout(function(){v.show()},_e):v.show()}function X(te){if(v.clearDelayTimeouts(),K("onUntrigger",[v,te]),!v.state.isVisible){H();return}if(!(v.props.trigger.indexOf("mouseenter")>=0&&v.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(te.type)>=0&&s)){var _e=M(!1);_e?o=setTimeout(function(){v.state.isVisible&&v.hide()},_e):i=requestAnimationFrame(function(){v.hide()})}}function re(){v.state.isEnabled=!0}function ye(){v.hide(),v.state.isEnabled=!1}function Ze(){clearTimeout(a),clearTimeout(o),cancelAnimationFrame(i)}function ct(te){if(!v.state.isDestroyed){K("onBeforeUpdate",[v,te]),Te();var _e=v.props,Ee=Yh(e,Object.assign({},_e,Uh(te),{ignoreAttributes:!0}));v.props=Ee,ee(),_e.interactiveDebounce!==Ee.interactiveDebounce&&(q(),g=jh(ue,Ee.interactiveDebounce)),_e.triggerTarget&&!Ee.triggerTarget?Wa(_e.triggerTarget).forEach(function(He){He.removeAttribute("aria-expanded")}):Ee.triggerTarget&&e.removeAttribute("aria-expanded"),Z(),$(),P&&P(_e,Ee),v.popperInstance&&(ce(),Ie().forEach(function(He){requestAnimationFrame(He._tippy.popperInstance.forceUpdate)})),K("onAfterUpdate",[v,te])}}function Se(te){v.setProps({content:te})}function ut(){var te=v.state.isVisible,_e=v.state.isDestroyed,Ee=!v.state.isEnabled,He=hr.isTouch&&!v.props.touch,G=Vu(v.props.duration,0,er.duration);if(!(te||_e||Ee||He)&&!R().hasAttribute("disabled")&&(K("onShow",[v],!1),v.props.onShow(v)!==!1)){if(v.state.isVisible=!0,z()&&(C.style.visibility="visible"),$(),Y(),v.state.isMounted||(C.style.transition="none"),z()){var se=B(),be=se.box,Re=se.content;Fu([be,Re],0)}p=function(){var he;if(!(!v.state.isVisible||u)){if(u=!0,C.offsetHeight,C.style.transition=v.props.moveTransition,z()&&v.props.animation){var Ce=B(),st=Ce.box,vt=Ce.content;Fu([st,vt],G),gs([st,vt],"visible")}V(),Z(),Hh(Hu,v),(he=v.popperInstance)==null||he.forceUpdate(),K("onMount",[v]),v.props.animation&&z()&&J(G,function(){v.state.isShown=!0,K("onShown",[v])})}},pe()}}function $t(){var te=!v.state.isVisible,_e=v.state.isDestroyed,Ee=!v.state.isEnabled,He=Vu(v.props.duration,1,er.duration);if(!(te||_e||Ee)&&(K("onHide",[v],!1),v.props.onHide(v)!==!1)){if(v.state.isVisible=!1,v.state.isShown=!1,u=!1,s=!1,z()&&(C.style.visibility="hidden"),q(),H(),$(!0),z()){var G=B(),se=G.box,be=G.content;v.props.animation&&(Fu([se,be],He),gs([se,be],"hidden"))}V(),Z(),v.props.animation?z()&&T(He,v.unmount):v.unmount()}}function xn(te){I().addEventListener("mousemove",g),Hh(fl,g),g(te)}function zt(){v.state.isVisible&&v.hide(),v.state.isMounted&&(Ae(),Ie().forEach(function(te){te._tippy.unmount()}),C.parentNode&&C.parentNode.removeChild(C),Hu=Hu.filter(function(te){return te!==v}),v.state.isMounted=!1,K("onHidden",[v]))}function Kt(){v.state.isDestroyed||(v.clearDelayTimeouts(),v.unmount(),Te(),delete e._tippy,v.state.isDestroyed=!0,K("onDestroy",[v]))}}function Be(e,t){t===void 0&&(t={});var n=er.plugins.concat(t.plugins||[]);$S();var a=Object.assign({},t,{plugins:n}),o=BS(e),i=o.reduce(function(s,l){var c=l&&GS(l,a);return c&&s.push(c),s},[]);return qc(e)?i[0]:i}Be.defaultProps=er;Be.setDefaultProps=US;Be.currentInput=hr;var KS=Object.assign({},Mg,{effect:function(t){var n=t.state,a={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,a.popper),n.styles=a,n.elements.arrow&&Object.assign(n.elements.arrow.style,a.arrow)}}),XS=function(t,n){var a;n===void 0&&(n={});var o=t,i=[],s=[],l,c=n.overrides,u=[],d=!1;function f(){s=o.map(function(v){return Wa(v.props.triggerTarget||v.reference)}).reduce(function(v,x){return v.concat(x)},[])}function p(){i=o.map(function(v){return v.reference})}function m(v){o.forEach(function(x){v?x.enable():x.disable()})}function g(v){return o.map(function(x){var C=x.setProps;return x.setProps=function(P){C(P),x.reference===l&&v.setProps(P)},function(){x.setProps=C}})}function y(v,x){var C=s.indexOf(x);if(x!==l){l=x;var P=(c||[]).concat("content").reduce(function(O,A){return O[A]=o[C].props[A],O},{});v.setProps(Object.assign({},P,{getReferenceClientRect:typeof P.getReferenceClientRect=="function"?P.getReferenceClientRect:function(){var O;return(O=i[C])==null?void 0:O.getBoundingClientRect()}}))}}m(!1),p(),f();var w={fn:function(){return{onDestroy:function(){m(!0)},onHidden:function(){l=null},onClickOutside:function(C){C.props.showOnCreate&&!d&&(d=!0,l=null)},onShow:function(C){C.props.showOnCreate&&!d&&(d=!0,y(C,i[0]))},onTrigger:function(C,P){y(C,P.currentTarget)}}}},b=Be(ro(),Object.assign({},AS(n,["overrides"]),{plugins:[w].concat(n.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},n.popperOptions,{modifiers:[].concat(((a=n.popperOptions)==null?void 0:a.modifiers)||[],[KS])})})),E=b.show;b.show=function(v){if(E(),!l&&v==null)return y(b,i[0]);if(!(l&&v==null)){if(typeof v=="number")return i[v]&&y(b,i[v]);if(o.indexOf(v)>=0){var x=v.reference;return y(b,x)}if(i.indexOf(v)>=0)return y(b,v)}},b.showNext=function(){var v=i[0];if(!l)return b.show(0);var x=i.indexOf(l);b.show(i[x+1]||v)},b.showPrevious=function(){var v=i[i.length-1];if(!l)return b.show(v);var x=i.indexOf(l),C=i[x-1]||v;b.show(C)};var _=b.setProps;return b.setProps=function(v){c=v.overrides||c,_(v)},b.setInstances=function(v){m(!0),u.forEach(function(x){return x()}),o=v,m(!1),p(),f(),u=g(b),b.setProps({triggerTarget:s})},u=g(b),b},JS={name:"animateFill",defaultValue:!1,fn:function(t){var n;if(!((n=t.props.render)!=null&&n.$$tippy))return{};var a=nc(t.popper),o=a.box,i=a.content,s=t.props.animateFill?QS():null;return{onCreate:function(){s&&(o.insertBefore(s,o.firstElementChild),o.setAttribute("data-animatefill",""),o.style.overflow="hidden",t.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(s){var c=o.style.transitionDuration,u=Number(c.replace("ms",""));i.style.transitionDelay=Math.round(u/10)+"ms",s.style.transitionDuration=c,gs([s],"visible")}},onShow:function(){s&&(s.style.transitionDuration="0ms")},onHide:function(){s&&gs([s],"hidden")}}}};function QS(){var e=ro();return e.className=zg,gs([e],"hidden"),e}var Yd={clientX:0,clientY:0},pl=[];function Kg(e){var t=e.clientX,n=e.clientY;Yd={clientX:t,clientY:n}}function ZS(e){e.addEventListener("mousemove",Kg)}function e8(e){e.removeEventListener("mousemove",Kg)}var t8={name:"followCursor",defaultValue:!1,fn:function(t){var n=t.reference,a=Wg(t.props.triggerTarget||n),o=!1,i=!1,s=!0,l=t.props;function c(){return t.props.followCursor==="initial"&&t.state.isVisible}function u(){a.addEventListener("mousemove",p)}function d(){a.removeEventListener("mousemove",p)}function f(){o=!0,t.setProps({getReferenceClientRect:null}),o=!1}function p(y){var w=y.target?n.contains(y.target):!0,b=t.props.followCursor,E=y.clientX,_=y.clientY,v=n.getBoundingClientRect(),x=E-v.left,C=_-v.top;(w||!t.props.interactive)&&t.setProps({getReferenceClientRect:function(){var O=n.getBoundingClientRect(),A=E,L=_;b==="initial"&&(A=O.left+x,L=O.top+C);var U=b==="horizontal"?O.top:L,z=b==="vertical"?O.right:A,R=b==="horizontal"?O.bottom:L,I=b==="vertical"?O.left:A;return{width:z-I,height:R-U,top:U,right:z,bottom:R,left:I}}})}function m(){t.props.followCursor&&(pl.push({instance:t,doc:a}),ZS(a))}function g(){pl=pl.filter(function(y){return y.instance!==t}),pl.filter(function(y){return y.doc===a}).length===0&&e8(a)}return{onCreate:m,onDestroy:g,onBeforeUpdate:function(){l=t.props},onAfterUpdate:function(w,b){var E=b.followCursor;o||E!==void 0&&l.followCursor!==E&&(g(),E?(m(),t.state.isMounted&&!i&&!c()&&u()):(d(),f()))},onMount:function(){t.props.followCursor&&!i&&(s&&(p(Yd),s=!1),c()||u())},onTrigger:function(w,b){mp(b)&&(Yd={clientX:b.clientX,clientY:b.clientY}),i=b.type==="focus"},onHidden:function(){t.props.followCursor&&(f(),d(),s=!0)}}}};function n8(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat((((n=e.popperOptions)==null?void 0:n.modifiers)||[]).filter(function(a){var o=a.name;return o!==t.name}),[t])})}}var r8={name:"inlinePositioning",defaultValue:!1,fn:function(t){var n=t.reference;function a(){return!!t.props.inlinePositioning}var o,i=-1,s=!1,l=[],c={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(m){var g=m.state;a()&&(l.indexOf(g.placement)!==-1&&(l=[]),o!==g.placement&&l.indexOf(g.placement)===-1&&(l.push(g.placement),t.setProps({getReferenceClientRect:function(){return u(g.placement)}})),o=g.placement)}};function u(p){return a8(Ug(p),n.getBoundingClientRect(),ii(n.getClientRects()),i)}function d(p){s=!0,t.setProps(p),s=!1}function f(){s||d(n8(t.props,c))}return{onCreate:f,onAfterUpdate:f,onTrigger:function(m,g){if(mp(g)){var y=ii(t.reference.getClientRects()),w=y.find(function(E){return E.left-2<=g.clientX&&E.right+2>=g.clientX&&E.top-2<=g.clientY&&E.bottom+2>=g.clientY}),b=y.indexOf(w);i=b>-1?b:i}},onHidden:function(){i=-1}}}};function a8(e,t,n,a){if(n.length<2||e===null)return t;if(n.length===2&&a>=0&&n[0].left>n[1].right)return n[a]||t;switch(e){case"top":case"bottom":{var o=n[0],i=n[n.length-1],s=e==="top",l=o.top,c=i.bottom,u=s?o.left:i.left,d=s?o.right:i.right,f=d-u,p=c-l;return{top:l,bottom:c,left:u,right:d,width:f,height:p}}case"left":case"right":{var m=Math.min.apply(Math,n.map(function(C){return C.left})),g=Math.max.apply(Math,n.map(function(C){return C.right})),y=n.filter(function(C){return e==="left"?C.left===m:C.right===g}),w=y[0].top,b=y[y.length-1].bottom,E=m,_=g,v=_-E,x=b-w;return{top:w,bottom:b,left:E,right:_,width:v,height:x}}default:return t}}var o8={name:"sticky",defaultValue:!1,fn:function(t){var n=t.reference,a=t.popper;function o(){return t.popperInstance?t.popperInstance.state.elements.reference:n}function i(u){return t.props.sticky===!0||t.props.sticky===u}var s=null,l=null;function c(){var u=i("reference")?o().getBoundingClientRect():null,d=i("popper")?a.getBoundingClientRect():null;(u&&Xh(s,u)||d&&Xh(l,d))&&t.popperInstance&&t.popperInstance.update(),s=u,l=d,t.state.isMounted&&requestAnimationFrame(c)}return{onMount:function(){t.props.sticky&&c()}}}};function Xh(e,t){return e&&t?e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left:!0}Be.setDefaultProps({render:Gg});Be.setDefaultProps({onShow:e=>{if(!e.props.content)return!1}});const i8=e=>e instanceof Object&&"$"in e&&"$el"in e;function hp(e,t={},n={mount:!0,appName:"Tippy"}){n=Object.assign({mount:!0,appName:"Tippy"},n);const a=r.getCurrentInstance(),o=r.ref(),i=r.ref({isEnabled:!1,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1}),s=r.shallowRef();let l=null;const c=()=>l||(l=document.createDocumentFragment(),l),u=P=>{let O,A=r.isRef(P)?P.value:P;return r.isVNode(A)?(s.value||(s.value=r.createApp({name:n.appName,setup:()=>()=>r.isRef(P)?P.value:P}),a&&Object.assign(s.value._context,a.appContext),s.value.mount(c())),O=()=>c()):typeof A=="object"?(s.value||(s.value=r.createApp({name:n.appName,setup:()=>()=>r.h(r.isRef(P)?P.value:P)}),a&&Object.assign(s.value._context,a.appContext),s.value.mount(c())),O=()=>c()):O=A,O},d=P=>{let O={};return r.isRef(P)?O=P.value||{}:r.isReactive(P)?O={...P}:O={...P},O.content&&(O.content=u(O.content)),O.triggerTarget&&(O.triggerTarget=r.isRef(O.triggerTarget)?O.triggerTarget.value:O.triggerTarget),(!O.plugins||!Array.isArray(O.plugins))&&(O.plugins=[]),O.plugins=O.plugins.filter(A=>A.name!=="vueTippyReactiveState"),O.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}})}),O},f=()=>{o.value&&o.value.setProps(d(t))},p=()=>{!o.value||!t.content||o.value.setContent(u(t.content))},m=P=>{var O;(O=o.value)===null||O===void 0||O.setContent(u(P))},g=P=>{var O;(O=o.value)===null||O===void 0||O.setProps(d(P))},y=()=>{var P;o.value&&(o.value.destroy(),o.value=void 0),l=null,(P=s.value)===null||P===void 0||P.unmount(),s.value=void 0},w=()=>{var P;(P=o.value)===null||P===void 0||P.show()},b=()=>{var P;(P=o.value)===null||P===void 0||P.hide()},E=()=>{var P;(P=o.value)===null||P===void 0||P.disable(),i.value.isEnabled=!1},_=()=>{var P;(P=o.value)===null||P===void 0||P.enable(),i.value.isEnabled=!0},v=()=>{var P;(P=o.value)===null||P===void 0||P.unmount()},x=()=>{if(!e)return;let P=r.isRef(e)?e.value:e;typeof P=="function"&&(P=P()),i8(P)&&(P=P.$el),P&&(o.value=Be(P,d(t)),P.$tippy=C)},C={tippy:o,refresh:f,refreshContent:p,setContent:m,setProps:g,destroy:y,hide:b,show:w,disable:E,enable:_,unmount:v,mount:x,state:i};return n.mount&&(a?a.isMounted?x():r.onMounted(x):x()),a&&r.onUnmounted(()=>{y()}),r.isRef(t)||r.isReactive(t)?r.watch(t,f,{immediate:!1}):r.isRef(t.content)&&r.watch(t.content,p,{immediate:!1}),C}function s8(e,t){const n=r.ref();return r.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=XS(o,t?{allowHTML:!0,...t}:{allowHTML:!0})}),{singleton:n}}function l8(e){return typeof e=="function"?e():r.unref(e)}function c8(e){var t,n;const a=l8(e);return(n=(t=a)===null||t===void 0?void 0:t.$el)!==null&&n!==void 0?n:a}const Xg=r.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:()=>Be.defaultProps.appendTo},aria:{default:()=>Be.defaultProps.aria},delay:{default:()=>Be.defaultProps.delay},duration:{default:()=>Be.defaultProps.duration},getReferenceClientRect:{default:()=>Be.defaultProps.getReferenceClientRect},hideOnClick:{type:[Boolean,String],default:()=>Be.defaultProps.hideOnClick},ignoreAttributes:{type:Boolean,default:()=>Be.defaultProps.ignoreAttributes},interactive:{type:Boolean,default:()=>Be.defaultProps.interactive},interactiveBorder:{default:()=>Be.defaultProps.interactiveBorder},interactiveDebounce:{default:()=>Be.defaultProps.interactiveDebounce},moveTransition:{default:()=>Be.defaultProps.moveTransition},offset:{default:()=>Be.defaultProps.offset},onAfterUpdate:{default:()=>Be.defaultProps.onAfterUpdate},onBeforeUpdate:{default:()=>Be.defaultProps.onBeforeUpdate},onCreate:{default:()=>Be.defaultProps.onCreate},onDestroy:{default:()=>Be.defaultProps.onDestroy},onHidden:{default:()=>Be.defaultProps.onHidden},onHide:{default:()=>Be.defaultProps.onHide},onMount:{default:()=>Be.defaultProps.onMount},onShow:{default:()=>Be.defaultProps.onShow},onShown:{default:()=>Be.defaultProps.onShown},onTrigger:{default:()=>Be.defaultProps.onTrigger},onUntrigger:{default:()=>Be.defaultProps.onUntrigger},onClickOutside:{default:()=>Be.defaultProps.onClickOutside},placement:{default:()=>Be.defaultProps.placement},plugins:{default:()=>Be.defaultProps.plugins},popperOptions:{default:()=>Be.defaultProps.popperOptions},render:{default:()=>Be.defaultProps.render},showOnCreate:{type:Boolean,default:()=>Be.defaultProps.showOnCreate},touch:{type:[Boolean,String,Array],default:()=>Be.defaultProps.touch},trigger:{default:()=>Be.defaultProps.trigger},triggerTarget:{default:()=>Be.defaultProps.triggerTarget},animateFill:{type:Boolean,default:()=>Be.defaultProps.animateFill},followCursor:{type:[Boolean,String],default:()=>Be.defaultProps.followCursor},inlinePositioning:{type:Boolean,default:()=>Be.defaultProps.inlinePositioning},sticky:{type:[Boolean,String],default:()=>Be.defaultProps.sticky},allowHTML:{type:Boolean,default:()=>Be.defaultProps.allowHTML},animation:{default:()=>Be.defaultProps.animation},arrow:{default:()=>Be.defaultProps.arrow},content:{default:()=>Be.defaultProps.content},inertia:{default:()=>Be.defaultProps.inertia},maxWidth:{default:()=>Be.defaultProps.maxWidth},role:{default:()=>Be.defaultProps.role},theme:{default:()=>Be.defaultProps.theme},zIndex:{default:()=>Be.defaultProps.zIndex}},emits:["state"],setup(e,{slots:t,emit:n,expose:a}){const o=r.ref(),i=r.ref(),s=r.ref(),l=r.ref(!1),c=()=>{let m={...e};for(const g of["to","tag","contentTag","contentClass"])m.hasOwnProperty(g)&&delete m[g];return m};let u=()=>c8(o);e.to&&(typeof Element<"u"&&e.to instanceof Element?u=()=>e.to:e.to==="parent"?u=()=>{let m=o.value;return m||(m=o.value=i.value.parentElement),m}:(typeof e.to=="string"||e.to instanceof String)&&(u=()=>document.querySelector(e.to)));const d=hp(u,c());let f=t.content;!f&&e.to==="parent"&&(f=t.default),r.onMounted(()=>{l.value=!0,r.nextTick(()=>{f&&d.setContent(()=>s.value)})}),r.watch(d.state,()=>{n("state",r.unref(d.state))},{immediate:!0,deep:!0}),r.watch(()=>e,()=>{d.setProps(c()),f&&d.setContent(()=>s.value)},{deep:!0});let p=r.reactive({elem:o,contentElem:s,mounted:l,...d});return a(p),()=>{const m=(typeof e.contentTag=="string",e.contentTag),g=f?r.h(m,{ref:s,style:{display:l.value?"inherit":"none"},class:e.contentClass},f(p)):null;if(e.to==="parent"){const b=[];if(!o.value){const E=r.h("span",{ref:i,"data-v-tippy":"",style:{display:"none"}});b.push(E)}return g&&b.push(g),b}const y=t.default?t.default(p):[];if(!e.tag){const b=r.h(y[0],{ref:o,"data-v-tippy":""});return g?[b,g]:b}const w=(typeof e.tag=="string",e.tag);return r.h(w,{ref:o,"data-v-tippy":""},g?[y,g]:y)}}}),u8=["a11y","allowHTML","arrow","flip","flipOnUpdate","hideOnClick","ignoreAttributes","inertia","interactive","lazy","multiple","showOnInit","touch","touchHold"];let Gd={};Object.keys(Be.defaultProps).forEach(e=>{u8.includes(e)?Gd[e]={type:Boolean,default:function(){return Be.defaultProps[e]}}:Gd[e]={default:function(){return Be.defaultProps[e]}}});const d8=r.defineComponent({props:Gd,setup(e){const t=r.ref([]),{singleton:n}=s8(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(a=>a._tippy).filter(Boolean),(e=this.singleton)===null||e===void 0||e.setInstances(this.instances)},render(){let e=this.$slots.default?this.$slots.default():[];return r.h(()=>e)}}),f8={mounted(e,t,n){const a=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&&(a.placement=a.placement||i),s&&(a.arrow=a.arrow!==void 0?a.arrow:!0),n.props&&n.props.onTippyShow&&(a.onShow=function(...l){var c;return(c=n.props)===null||c===void 0?void 0:c.onTippyShow(...l)}),n.props&&n.props.onTippyShown&&(a.onShown=function(...l){var c;return(c=n.props)===null||c===void 0?void 0:c.onTippyShown(...l)}),n.props&&n.props.onTippyHidden&&(a.onHidden=function(...l){var c;return(c=n.props)===null||c===void 0?void 0:c.onTippyHidden(...l)}),n.props&&n.props.onTippyHide&&(a.onHide=function(...l){var c;return(c=n.props)===null||c===void 0?void 0:c.onTippyHide(...l)}),n.props&&n.props.onTippyMount&&(a.onMount=function(...l){var c;return(c=n.props)===null||c===void 0?void 0:c.onTippyMount(...l)}),e.getAttribute("title")&&!a.content&&(a.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!a.content&&(a.content=e.getAttribute("content")),hp(e,a)},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||{};n.content||(n.content=null),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||{})}},Jh={install(e,t={}){Be.setDefaultProps(t.defaultProps||{}),e.directive(t.directive||"tippy",f8),e.component(t.component||"tippy",Xg),e.component(t.componentSingleton||"tippy-singleton",d8)}},p8=Be.setDefaultProps;p8({ignoreAttributes:!0,plugins:[o8,r8,t8,JS]});/*!
6
6
  * Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com
7
7
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
8
8
  * Copyright 2025 Fonticons, Inc.
@@ -557,10 +557,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
557
557
  right: 0;
558
558
  top: 0;
559
559
  z-index: var(--fa-stack-z-index, auto);
560
- }`;function I2(){var e=k2,t=_2,n=De.cssPrefix,a=De.replacementClass,o=l5;if(n!==e||a!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(l,".".concat(a))}return o}var lv=!1;function Yu(){De.autoAddCss&&!lv&&(r5(I2()),lv=!0)}var c5={mixout:function(){return{dom:{css:I2,insertCss:Yu}}},hooks:function(){return{beforeDOMElementCreation:function(){Yu()},beforeI2svg:function(){Yu()}}}},Gr=ya||{};Gr[Yr]||(Gr[Yr]={});Gr[Yr].styles||(Gr[Yr].styles={});Gr[Yr].hooks||(Gr[Yr].hooks={});Gr[Yr].shims||(Gr[Yr].shims=[]);var tr=Gr[Yr],M2=[],N2=function(){St.removeEventListener("DOMContentLoaded",N2),ac=1,M2.map(function(t){return t()})},ac=!1;oa&&(ac=(St.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(St.readyState),ac||St.addEventListener("DOMContentLoaded",N2));function u5(e){oa&&(ac?setTimeout(e,0):M2.push(e))}function Rs(e){var t=e.tag,n=e.attributes,a=n===void 0?{}:n,o=e.children,i=o===void 0?[]:o;return typeof e=="string"?A2(e):"<".concat(t," ").concat(o5(a),">").concat(i.map(Rs).join(""),"</").concat(t,">")}function cv(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Gu=function(t,n,a,o){var i=Object.keys(t),s=i.length,l=n,c,u,d;for(a===void 0?(c=1,d=t[i[0]]):(c=0,d=a);c<s;c++)u=i[c],d=l(d,t[u],u,t);return d};function O2(e){return ar(e).length!==1?null:e.codePointAt(0).toString(16)}function uv(e){return Object.keys(e).reduce(function(t,n){var a=e[n],o=!!a.icon;return o?t[a.iconName]=a.icon:t[n]=a,t},{})}function B2(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.skipHooks,o=a===void 0?!1:a,i=uv(t);typeof tr.hooks.addPack=="function"&&!o?tr.hooks.addPack(e,uv(t)):tr.styles[e]=ge(ge({},tr.styles[e]||{}),i),e==="fas"&&B2("fa",t)}var ys=tr.styles,d5=tr.shims,L2=Object.keys(E2),f5=L2.reduce(function(e,t){return e[t]=Object.keys(E2[t]),e},{}),_p=null,D2={},R2={},$2={},z2={},V2={};function p5(e){return~QC.indexOf(e)}function m5(e,t){var n=t.split("-"),a=n[0],o=n.slice(1).join("-");return a===e&&o!==""&&!p5(o)?o:null}var F2=function(){var t=function(i){return Gu(ys,function(s,l,c){return s[c]=Gu(l,i,{}),s},{})};D2=t(function(o,i,s){if(i[3]&&(o[i[3]]=s),i[2]){var l=i[2].filter(function(c){return typeof c=="number"});l.forEach(function(c){o[c.toString(16)]=s})}return o}),R2=t(function(o,i,s){if(o[s]=s,i[2]){var l=i[2].filter(function(c){return typeof c=="string"});l.forEach(function(c){o[c]=s})}return o}),V2=t(function(o,i,s){var l=i[2];return o[s]=s,l.forEach(function(c){o[c]=s}),o});var n="far"in ys||De.autoFetchSvg,a=Gu(d5,function(o,i){var s=i[0],l=i[1],c=i[2];return l==="far"&&!n&&(l="fas"),typeof s=="string"&&(o.names[s]={prefix:l,iconName:c}),typeof s=="number"&&(o.unicodes[s.toString(16)]={prefix:l,iconName:c}),o},{names:{},unicodes:{}});$2=a.names,z2=a.unicodes,_p=Kc(De.styleDefault,{family:De.familyDefault})};n5(function(e){_p=Kc(e.styleDefault,{family:De.familyDefault})});F2();function Sp(e,t){return(D2[e]||{})[t]}function h5(e,t){return(R2[e]||{})[t]}function Ja(e,t){return(V2[e]||{})[t]}function j2(e){return $2[e]||{prefix:null,iconName:null}}function v5(e){var t=z2[e],n=Sp("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function ba(){return _p}var H2=function(){return{prefix:null,iconName:null,rest:[]}};function g5(e){var t=cn,n=L2.reduce(function(a,o){return a[o]="".concat(De.cssPrefix,"-").concat(o),a},{});return g2.forEach(function(a){(e.includes(n[a])||e.some(function(o){return f5[a].includes(o)}))&&(t=a)}),t}function Kc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,a=n===void 0?cn:n,o=YC[a][e];if(a===Ls&&!e)return"fad";var i=iv[a][e]||iv[a][o],s=e in tr.styles?e:null,l=i||s||null;return l}function y5(e){var t=[],n=null;return e.forEach(function(a){var o=m5(De.cssPrefix,a);o?n=o:a&&t.push(a)}),{iconName:n,rest:t}}function dv(e){return e.sort().filter(function(t,n,a){return a.indexOf(t)===n})}var fv=b2.concat(y2);function Xc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,a=n===void 0?!1:n,o=null,i=dv(e.filter(function(m){return fv.includes(m)})),s=dv(e.filter(function(m){return!fv.includes(m)})),l=i.filter(function(m){return o=m,!r2.includes(m)}),c=Yc(l,1),u=c[0],d=u===void 0?null:u,f=g5(i),p=ge(ge({},y5(s)),{},{prefix:Kc(d,{family:f})});return ge(ge(ge({},p),_5({values:e,family:f,styles:ys,config:De,canonical:p,givenPrefix:o})),b5(a,o,p))}function b5(e,t,n){var a=n.prefix,o=n.iconName;if(e||!a||!o)return{prefix:a,iconName:o};var i=t==="fa"?j2(o):{},s=Ja(a,o);return o=i.iconName||s||o,a=i.prefix||a,a==="far"&&!ys.far&&ys.fas&&!De.autoFetchSvg&&(a="fas"),{prefix:a,iconName:o}}var w5=g2.filter(function(e){return e!==cn||e!==Ls}),k5=Object.keys(Xd).filter(function(e){return e!==cn}).map(function(e){return Object.keys(Xd[e])}).flat();function _5(e){var t=e.values,n=e.family,a=e.canonical,o=e.givenPrefix,i=o===void 0?"":o,s=e.styles,l=s===void 0?{}:s,c=e.config,u=c===void 0?{}:c,d=n===Ls,f=t.includes("fa-duotone")||t.includes("fad"),p=u.familyDefault==="duotone",m=a.prefix==="fad"||a.prefix==="fa-duotone";if(!d&&(f||p||m)&&(a.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(a.prefix="fab"),!a.prefix&&w5.includes(n)){var v=Object.keys(l).find(function(w){return k5.includes(w)});if(v||u.autoFetchSvg){var y=W8.get(n).defaultShortPrefixId;a.prefix=y,a.iconName=Ja(a.prefix,a.iconName)||a.iconName}}return(a.prefix==="fa"||i==="fa")&&(a.prefix=ba()||"fas"),a}var S5=function(){function e(){v8(this,e),this.definitions={}}return y8(e,[{key:"add",value:function(){for(var n=this,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];var s=o.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(l){n.definitions[l]=ge(ge({},n.definitions[l]||{}),s[l]),B2(l,s[l]),F2()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,a){var o=a.prefix&&a.iconName&&a.icon?{0:a}:a;return Object.keys(o).map(function(i){var s=o[i],l=s.prefix,c=s.iconName,u=s.icon,d=u[2];n[l]||(n[l]={}),d.length>0&&d.forEach(function(f){typeof f=="string"&&(n[l][f]=u)}),n[l][c]=u}),n}}])}(),pv=[],Ho={},Xo={},C5=Object.keys(Xo);function x5(e,t){var n=t.mixoutsTo;return pv=e,Ho={},Object.keys(Xo).forEach(function(a){C5.indexOf(a)===-1&&delete Xo[a]}),pv.forEach(function(a){var o=a.mixout?a.mixout():{};if(Object.keys(o).forEach(function(s){typeof o[s]=="function"&&(n[s]=o[s]),rc(o[s])==="object"&&Object.keys(o[s]).forEach(function(l){n[s]||(n[s]={}),n[s][l]=o[s][l]})}),a.hooks){var i=a.hooks();Object.keys(i).forEach(function(s){Ho[s]||(Ho[s]=[]),Ho[s].push(i[s])})}a.provides&&a.provides(Xo)}),n}function nf(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),o=2;o<n;o++)a[o-2]=arguments[o];var i=Ho[e]||[];return i.forEach(function(s){t=s.apply(null,[t].concat(a))}),t}function po(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var o=Ho[e]||[];o.forEach(function(i){i.apply(null,n)})}function wa(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Xo[e]?Xo[e].apply(null,t):void 0}function rf(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||ba();if(t)return t=Ja(n,t)||t,cv(U2.definitions,n,t)||cv(tr.styles,n,t)}var U2=new S5,E5=function(){De.autoReplaceSvg=!1,De.observeMutations=!1,po("noAuto")},T5={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return oa?(po("beforeI2svg",t),wa("pseudoElements2svg",t),wa("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;De.autoReplaceSvg===!1&&(De.autoReplaceSvg=!0),De.observeMutations=!0,u5(function(){A5({autoReplaceSvgRoot:n}),po("watch",t)})}},P5={icon:function(t){if(t===null)return null;if(rc(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Ja(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],a=Kc(t[0]);return{prefix:a,iconName:Ja(a,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(De.cssPrefix,"-"))>-1||t.match(GC))){var o=Xc(t.split(" "),{skipLookups:!0});return{prefix:o.prefix||ba(),iconName:Ja(o.prefix,o.iconName)||o.iconName}}if(typeof t=="string"){var i=ba();return{prefix:i,iconName:Ja(i,t)||t}}}},Ln={noAuto:E5,config:De,dom:T5,parse:P5,library:U2,findIconDefinition:rf,toHtml:Rs},A5=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,a=n===void 0?St:n;(Object.keys(tr.styles).length>0||De.autoFetchSvg)&&oa&&De.autoReplaceSvg&&Ln.dom.i2svg({node:a})};function Jc(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(a){return Rs(a)})}}),Object.defineProperty(e,"node",{get:function(){if(oa){var a=St.createElement("div");return a.innerHTML=e.html,a.children}}}),e}function I5(e){var t=e.children,n=e.main,a=e.mask,o=e.attributes,i=e.styles,s=e.transform;if(kp(s)&&n.found&&!a.found){var l=n.width,c=n.height,u={x:l/c/2,y:.5};o.style=Gc(ge(ge({},i),{},{"transform-origin":"".concat(u.x+s.x/16,"em ").concat(u.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function M5(e){var t=e.prefix,n=e.iconName,a=e.children,o=e.attributes,i=e.symbol,s=i===!0?"".concat(t,"-").concat(De.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ge(ge({},o),{},{id:s}),children:a}]}]}function N5(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function Cp(e){var t=e.icons,n=t.main,a=t.mask,o=e.prefix,i=e.iconName,s=e.transform,l=e.symbol,c=e.maskId,u=e.extra,d=e.watchable,f=d===void 0?!1:d,p=a.found?a:n,m=p.width,v=p.height,y=[De.replacementClass,i?"".concat(De.cssPrefix,"-").concat(i):""].filter(function(x){return u.classes.indexOf(x)===-1}).filter(function(x){return x!==""||!!x}).concat(u.classes).join(" "),w={children:[],attributes:ge(ge({},u.attributes),{},{"data-prefix":o,"data-icon":i,class:y,role:u.attributes.role||"img",viewBox:"0 0 ".concat(m," ").concat(v)})};!N5(u.attributes)&&!u.attributes["aria-hidden"]&&(w.attributes["aria-hidden"]="true"),f&&(w.attributes[fo]="");var b=ge(ge({},w),{},{prefix:o,iconName:i,main:n,mask:a,maskId:c,transform:s,symbol:l,styles:ge({},u.styles)}),E=a.found&&n.found?wa("generateAbstractMask",b)||{children:[],attributes:{}}:wa("generateAbstractIcon",b)||{children:[],attributes:{}},_=E.children,g=E.attributes;return b.children=_,b.attributes=g,l?M5(b):I5(b)}function mv(e){var t=e.content,n=e.width,a=e.height,o=e.transform,i=e.extra,s=e.watchable,l=s===void 0?!1:s,c=ge(ge({},i.attributes),{},{class:i.classes.join(" ")});l&&(c[fo]="");var u=ge({},i.styles);kp(o)&&(u.transform=s5({transform:o,width:n,height:a}),u["-webkit-transform"]=u.transform);var d=Gc(u);d.length>0&&(c.style=d);var f=[];return f.push({tag:"span",attributes:c,children:[t]}),f}function O5(e){var t=e.content,n=e.extra,a=ge(ge({},n.attributes),{},{class:n.classes.join(" ")}),o=Gc(n.styles);o.length>0&&(a.style=o);var i=[];return i.push({tag:"span",attributes:a,children:[t]}),i}var Ku=tr.styles;function af(e){var t=e[0],n=e[1],a=e.slice(4),o=Yc(a,1),i=o[0],s=null;return Array.isArray(i)?s={tag:"g",attributes:{class:"".concat(De.cssPrefix,"-").concat(qu.GROUP)},children:[{tag:"path",attributes:{class:"".concat(De.cssPrefix,"-").concat(qu.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(De.cssPrefix,"-").concat(qu.PRIMARY),fill:"currentColor",d:i[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:s}}var B5={found:!1,width:512,height:512};function L5(e,t){!C2&&!De.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function of(e,t){var n=t;return t==="fa"&&De.styleDefault!==null&&(t=ba()),new Promise(function(a,o){if(n==="fa"){var i=j2(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Ku[t]&&Ku[t][e]){var s=Ku[t][e];return a(af(s))}L5(e,t),a(ge(ge({},B5),{},{icon:De.showMissingIcons&&e?wa("missingIconAbstract")||{}:{}}))})}var hv=function(){},sf=De.measurePerformance&&ml&&ml.mark&&ml.measure?ml:{mark:hv,measure:hv},Xi='FA "7.0.0"',D5=function(t){return sf.mark("".concat(Xi," ").concat(t," begins")),function(){return W2(t)}},W2=function(t){sf.mark("".concat(Xi," ").concat(t," ends")),sf.measure("".concat(Xi," ").concat(t),"".concat(Xi," ").concat(t," begins"),"".concat(Xi," ").concat(t," ends"))},xp={begin:D5,end:W2},jl=function(){};function vv(e){var t=e.getAttribute?e.getAttribute(fo):null;return typeof t=="string"}function R5(e){var t=e.getAttribute?e.getAttribute(yp):null,n=e.getAttribute?e.getAttribute(bp):null;return t&&n}function $5(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(De.replacementClass)}function z5(){if(De.autoReplaceSvg===!0)return Hl.replace;var e=Hl[De.autoReplaceSvg];return e||Hl.replace}function V5(e){return St.createElementNS("http://www.w3.org/2000/svg",e)}function F5(e){return St.createElement(e)}function q2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,a=n===void 0?e.tag==="svg"?V5:F5:n;if(typeof e=="string")return St.createTextNode(e);var o=a(e.tag);Object.keys(e.attributes||[]).forEach(function(s){o.setAttribute(s,e.attributes[s])});var i=e.children||[];return i.forEach(function(s){o.appendChild(q2(s,{ceFn:a}))}),o}function j5(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Hl={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(o){n.parentNode.insertBefore(q2(o),n)}),n.getAttribute(fo)===null&&De.keepOriginalSource){var a=St.createComment(j5(n));n.parentNode.replaceChild(a,n)}else n.remove()},nest:function(t){var n=t[0],a=t[1];if(~wp(n).indexOf(De.replacementClass))return Hl.replace(t);var o=new RegExp("".concat(De.cssPrefix,"-.*"));if(delete a[0].attributes.id,a[0].attributes.class){var i=a[0].attributes.class.split(" ").reduce(function(l,c){return c===De.replacementClass||c.match(o)?l.toSvg.push(c):l.toNode.push(c),l},{toNode:[],toSvg:[]});a[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var s=a.map(function(l){return Rs(l)}).join(`
561
- `);n.setAttribute(fo,""),n.innerHTML=s}};function gv(e){e()}function Y2(e,t){var n=typeof t=="function"?t:jl;if(e.length===0)n();else{var a=gv;De.mutateApproach===WC&&(a=ya.requestAnimationFrame||gv),a(function(){var o=z5(),i=xp.begin("mutate");e.map(o),i(),n()})}}var Ep=!1;function G2(){Ep=!0}function lf(){Ep=!1}var oc=null;function yv(e){if(nv&&De.observeMutations){var t=e.treeCallback,n=t===void 0?jl:t,a=e.nodeCallback,o=a===void 0?jl:a,i=e.pseudoElementsCallback,s=i===void 0?jl:i,l=e.observeMutationsRoot,c=l===void 0?St:l;oc=new nv(function(u){if(!Ep){var d=ba();Pi(u).forEach(function(f){if(f.type==="childList"&&f.addedNodes.length>0&&!vv(f.addedNodes[0])&&(De.searchPseudoElements&&s(f.target),n(f.target)),f.type==="attributes"&&f.target.parentNode&&De.searchPseudoElements&&s([f.target],!0),f.type==="attributes"&&vv(f.target)&&~JC.indexOf(f.attributeName))if(f.attributeName==="class"&&R5(f.target)){var p=Xc(wp(f.target)),m=p.prefix,v=p.iconName;f.target.setAttribute(yp,m||d),v&&f.target.setAttribute(bp,v)}else $5(f.target)&&o(f.target)})}}),oa&&oc.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function H5(){oc&&oc.disconnect()}function U5(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(a,o){var i=o.split(":"),s=i[0],l=i.slice(1);return s&&l.length>0&&(a[s]=l.join(":").trim()),a},{})),n}function W5(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),a=e.innerText!==void 0?e.innerText.trim():"",o=Xc(wp(e));return o.prefix||(o.prefix=ba()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&a.length>0&&(o.iconName=h5(o.prefix,e.innerText)||Sp(o.prefix,O2(e.innerText))),!o.iconName&&De.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function q5(e){var t=Pi(e.attributes).reduce(function(n,a){return n.name!=="class"&&n.name!=="style"&&(n[a.name]=a.value),n},{});return t}function Y5(){return{iconName:null,prefix:null,transform:kr,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function bv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=W5(e),a=n.iconName,o=n.prefix,i=n.rest,s=q5(e),l=nf("parseNodeAttributes",{},e),c=t.styleParser?U5(e):[];return ge({iconName:a,prefix:o,transform:kr,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:c,attributes:s}},l)}var G5=tr.styles;function K2(e){var t=De.autoReplaceSvg==="nest"?bv(e,{styleParser:!1}):bv(e);return~t.extra.classes.indexOf(T2)?wa("generateLayersText",e,t):wa("generateSvgReplacementMutation",e,t)}function K5(){return[].concat(ar(y2),ar(b2))}function wv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!oa)return Promise.resolve();var n=St.documentElement.classList,a=function(f){return n.add("".concat(ov,"-").concat(f))},o=function(f){return n.remove("".concat(ov,"-").concat(f))},i=De.autoFetchSvg?K5():r2.concat(Object.keys(G5));i.includes("fa")||i.push("fa");var s=[".".concat(T2,":not([").concat(fo,"])")].concat(i.map(function(d){return".".concat(d,":not([").concat(fo,"])")})).join(", ");if(s.length===0)return Promise.resolve();var l=[];try{l=Pi(e.querySelectorAll(s))}catch{}if(l.length>0)a("pending"),o("complete");else return Promise.resolve();var c=xp.begin("onTree"),u=l.reduce(function(d,f){try{var p=K2(f);p&&d.push(p)}catch(m){C2||m.name==="MissingIcon"&&console.error(m)}return d},[]);return new Promise(function(d,f){Promise.all(u).then(function(p){Y2(p,function(){a("active"),a("complete"),o("pending"),typeof t=="function"&&t(),c(),d()})}).catch(function(p){c(),f(p)})})}function X5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;K2(e).then(function(n){n&&Y2([n],t)})}function J5(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=(t||{}).icon?t:rf(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:rf(o||{})),e(a,ge(ge({},n),{},{mask:o}))}}var Q5=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.transform,o=a===void 0?kr:a,i=n.symbol,s=i===void 0?!1:i,l=n.mask,c=l===void 0?null:l,u=n.maskId,d=u===void 0?null:u,f=n.classes,p=f===void 0?[]:f,m=n.attributes,v=m===void 0?{}:m,y=n.styles,w=y===void 0?{}:y;if(t){var b=t.prefix,E=t.iconName,_=t.icon;return Jc(ge({type:"icon"},t),function(){return po("beforeDOMElementCreation",{iconDefinition:t,params:n}),Cp({icons:{main:af(_),mask:c?af(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:b,iconName:E,transform:ge(ge({},kr),o),symbol:s,maskId:d,extra:{attributes:v,styles:w,classes:p}})})}},Z5={mixout:function(){return{icon:J5(Q5)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=wv,n.nodeCallback=X5,n}}},provides:function(t){t.i2svg=function(n){var a=n.node,o=a===void 0?St:a,i=n.callback,s=i===void 0?function(){}:i;return wv(o,s)},t.generateSvgReplacementMutation=function(n,a){var o=a.iconName,i=a.prefix,s=a.transform,l=a.symbol,c=a.mask,u=a.maskId,d=a.extra;return new Promise(function(f,p){Promise.all([of(o,i),c.iconName?of(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(m){var v=Yc(m,2),y=v[0],w=v[1];f([n,Cp({icons:{main:y,mask:w},prefix:i,iconName:o,transform:s,symbol:l,maskId:u,extra:d,watchable:!0})])}).catch(p)})},t.generateAbstractIcon=function(n){var a=n.children,o=n.attributes,i=n.main,s=n.transform,l=n.styles,c=Gc(l);c.length>0&&(o.style=c);var u;return kp(s)&&(u=wa("generateAbstractTransformGrouping",{main:i,transform:s,containerWidth:i.width,iconWidth:i.width})),a.push(u||i.icon),{children:a,attributes:o}}}},ex={mixout:function(){return{layer:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.classes,i=o===void 0?[]:o;return Jc({type:"layer"},function(){po("beforeDOMElementCreation",{assembler:n,params:a});var s=[];return n(function(l){Array.isArray(l)?l.map(function(c){s=s.concat(c.abstract)}):s=s.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(De.cssPrefix,"-layers")].concat(ar(i)).join(" ")},children:s}]})}}}},tx={mixout:function(){return{counter:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};a.title;var o=a.classes,i=o===void 0?[]:o,s=a.attributes,l=s===void 0?{}:s,c=a.styles,u=c===void 0?{}:c;return Jc({type:"counter",content:n},function(){return po("beforeDOMElementCreation",{content:n,params:a}),O5({content:n.toString(),extra:{attributes:l,styles:u,classes:["".concat(De.cssPrefix,"-layers-counter")].concat(ar(i))}})})}}}},nx={mixout:function(){return{text:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.transform,i=o===void 0?kr:o,s=a.classes,l=s===void 0?[]:s,c=a.attributes,u=c===void 0?{}:c,d=a.styles,f=d===void 0?{}:d;return Jc({type:"text",content:n},function(){return po("beforeDOMElementCreation",{content:n,params:a}),mv({content:n,transform:ge(ge({},kr),i),extra:{attributes:u,styles:f,classes:["".concat(De.cssPrefix,"-layers-text")].concat(ar(l))}})})}}},provides:function(t){t.generateLayersText=function(n,a){var o=a.transform,i=a.extra,s=null,l=null;if(t2){var c=parseInt(getComputedStyle(n).fontSize,10),u=n.getBoundingClientRect();s=u.width/c,l=u.height/c}return Promise.resolve([n,mv({content:n.innerHTML,width:s,height:l,transform:o,extra:i,watchable:!0})])}}},X2=new RegExp('"',"ug"),kv=[1105920,1112319],_v=ge(ge(ge(ge({},{FontAwesome:{normal:"fas",400:"fas"}}),U8),HC),Z8),cf=Object.keys(_v).reduce(function(e,t){return e[t.toLowerCase()]=_v[t],e},{}),rx=Object.keys(cf).reduce(function(e,t){var n=cf[t];return e[t]=n[900]||ar(Object.entries(n))[0][1],e},{});function ax(e){var t=e.replace(X2,"");return O2(ar(t)[0]||"")}function ox(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),a=n.replace(X2,""),o=a.codePointAt(0),i=o>=kv[0]&&o<=kv[1],s=a.length===2?a[0]===a[1]:!1;return i||s||t}function ix(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),a=parseInt(t),o=isNaN(a)?"normal":a;return(cf[n]||{})[o]||rx[n]}function Sv(e,t){var n="".concat(UC).concat(t.replace(":","-"));return new Promise(function(a,o){if(e.getAttribute(n)!==null)return a();var i=Pi(e.children),s=i.filter(function(C){return C.getAttribute(Qd)===t})[0],l=ya.getComputedStyle(e,t),c=l.getPropertyValue("font-family"),u=c.match(KC),d=l.getPropertyValue("font-weight"),f=l.getPropertyValue("content");if(s&&!u)return e.removeChild(s),a();if(u&&f!=="none"&&f!==""){var p=l.getPropertyValue("content"),m=ix(c,d),v=ax(p),y=u[0].startsWith("FontAwesome"),w=ox(l),b=Sp(m,v),E=b;if(y){var _=v5(v);_.iconName&&_.prefix&&(b=_.iconName,m=_.prefix)}if(b&&!w&&(!s||s.getAttribute(yp)!==m||s.getAttribute(bp)!==E)){e.setAttribute(n,E),s&&e.removeChild(s);var g=Y5(),x=g.extra;x.attributes[Qd]=t,of(b,m).then(function(C){var P=Cp(ge(ge({},g),{},{icons:{main:C,mask:H2()},prefix:m,iconName:E,extra:x,watchable:!0})),O=St.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(O,e.firstChild):e.appendChild(O),O.outerHTML=P.map(function(A){return Rs(A)}).join(`
562
- `),e.removeAttribute(n),a()}).catch(o)}else a()}else a()})}function sx(e){return Promise.all([Sv(e,"::before"),Sv(e,"::after")])}function lx(e){return e.parentNode!==document.head&&!~qC.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Qd)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var cx=function(t){return!!t&&S2.some(function(n){return t.includes(n)})},ux=function(t){if(!t)return[];for(var n=new Set,a=[t],o=[/(?=\s:)/,new RegExp("(?<=\\)\\)?[^,]*,)")],i=function(){var m=l[s];a=a.flatMap(function(v){return v.split(m).map(function(y){return y.replace(/,\s*$/,"").trim()})})},s=0,l=o;s<l.length;s++)i();a=a.flatMap(function(p){return p.includes("(")?p:p.split(",").map(function(m){return m.trim()})});var c=Fl(a),u;try{for(c.s();!(u=c.n()).done;){var d=u.value;if(cx(d)){var f=S2.reduce(function(p,m){return p.replace(m,"")},d);f!==""&&f!=="*"&&n.add(f)}}}catch(p){c.e(p)}finally{c.f()}return n};function Cv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(oa){var n;if(t)n=e;else if(De.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var a=new Set,o=Fl(document.styleSheets),i;try{for(o.s();!(i=o.n()).done;){var s=i.value;try{var l=Fl(s.cssRules),c;try{for(l.s();!(c=l.n()).done;){var u=c.value,d=ux(u.selectorText),f=Fl(d),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;a.add(m)}}catch(y){f.e(y)}finally{f.f()}}}catch(y){l.e(y)}finally{l.f()}}catch(y){De.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(s.href," (").concat(y.message,`)
563
- If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(y){o.e(y)}finally{o.f()}if(!a.size)return;var v=Array.from(a).join(", ");try{n=e.querySelectorAll(v)}catch{}}return new Promise(function(y,w){var b=Pi(n).filter(lx).map(sx),E=xp.begin("searchPseudoElements");G2(),Promise.all(b).then(function(){E(),lf(),y()}).catch(function(){E(),lf(),w()})})}}var dx={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Cv,n}}},provides:function(t){t.pseudoElements2svg=function(n){var a=n.node,o=a===void 0?St:a;De.searchPseudoElements&&Cv(o)}}},xv=!1,fx={mixout:function(){return{dom:{unwatch:function(){G2(),xv=!0}}}},hooks:function(){return{bootstrap:function(){yv(nf("mutationObserverCallbacks",{}))},noAuto:function(){H5()},watch:function(n){var a=n.observeMutationsRoot;xv?lf():yv(nf("mutationObserverCallbacks",{observeMutationsRoot:a}))}}}},Ev=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(a,o){var i=o.toLowerCase().split("-"),s=i[0],l=i.slice(1).join("-");if(s&&l==="h")return a.flipX=!0,a;if(s&&l==="v")return a.flipY=!0,a;if(l=parseFloat(l),isNaN(l))return a;switch(s){case"grow":a.size=a.size+l;break;case"shrink":a.size=a.size-l;break;case"left":a.x=a.x-l;break;case"right":a.x=a.x+l;break;case"up":a.y=a.y-l;break;case"down":a.y=a.y+l;break;case"rotate":a.rotate=a.rotate+l;break}return a},n)},px={mixout:function(){return{parse:{transform:function(n){return Ev(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,a){var o=a.getAttribute("data-fa-transform");return o&&(n.transform=Ev(o)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var a=n.main,o=n.transform,i=n.containerWidth,s=n.iconWidth,l={transform:"translate(".concat(i/2," 256)")},c="translate(".concat(o.x*32,", ").concat(o.y*32,") "),u="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),d="rotate(".concat(o.rotate," 0 0)"),f={transform:"".concat(c," ").concat(u," ").concat(d)},p={transform:"translate(".concat(s/2*-1," -256)")},m={outer:l,inner:f,path:p};return{tag:"g",attributes:ge({},m.outer),children:[{tag:"g",attributes:ge({},m.inner),children:[{tag:a.icon.tag,children:a.icon.children,attributes:ge(ge({},a.icon.attributes),m.path)}]}]}}}},Xu={x:0,y:0,width:"100%",height:"100%"};function Tv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function mx(e){return e.tag==="g"?e.children:[e]}var hx={hooks:function(){return{parseNodeAttributes:function(n,a){var o=a.getAttribute("data-fa-mask"),i=o?Xc(o.split(" ").map(function(s){return s.trim()})):H2();return i.prefix||(i.prefix=ba()),n.mask=i,n.maskId=a.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var a=n.children,o=n.attributes,i=n.main,s=n.mask,l=n.maskId,c=n.transform,u=i.width,d=i.icon,f=s.width,p=s.icon,m=i5({transform:c,containerWidth:f,iconWidth:u}),v={tag:"rect",attributes:ge(ge({},Xu),{},{fill:"white"})},y=d.children?{children:d.children.map(Tv)}:{},w={tag:"g",attributes:ge({},m.inner),children:[Tv(ge({tag:d.tag,attributes:ge(ge({},d.attributes),m.path)},y))]},b={tag:"g",attributes:ge({},m.outer),children:[w]},E="mask-".concat(l||sv()),_="clip-".concat(l||sv()),g={tag:"mask",attributes:ge(ge({},Xu),{},{id:E,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,b]},x={tag:"defs",children:[{tag:"clipPath",attributes:{id:_},children:mx(p)},g]};return a.push(x,{tag:"rect",attributes:ge({fill:"currentColor","clip-path":"url(#".concat(_,")"),mask:"url(#".concat(E,")")},Xu)}),{children:a,attributes:o}}}},vx={provides:function(t){var n=!1;ya.matchMedia&&(n=ya.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var a=[],o={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};a.push({tag:"path",attributes:ge(ge({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=ge(ge({},i),{},{attributeName:"opacity"}),l={tag:"circle",attributes:ge(ge({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||l.children.push({tag:"animate",attributes:ge(ge({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ge(ge({},s),{},{values:"1;0;1;1;0;1;"})}),a.push(l),a.push({tag:"path",attributes:ge(ge({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:ge(ge({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||a.push({tag:"path",attributes:ge(ge({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:ge(ge({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:a}}}},gx={hooks:function(){return{parseNodeAttributes:function(n,a){var o=a.getAttribute("data-fa-symbol"),i=o===null?!1:o===""?!0:o;return n.symbol=i,n}}}},yx=[c5,Z5,ex,tx,nx,dx,fx,px,hx,vx,gx];x5(yx,{mixoutsTo:Ln});Ln.noAuto;var J2=Ln.config,bx=Ln.library;Ln.dom;var ic=Ln.parse;Ln.findIconDefinition;Ln.toHtml;var wx=Ln.icon;Ln.layer;var kx=Ln.text;Ln.counter;/*! js-cookie v3.0.5 | MIT */function vl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)e[a]=n[a]}return e}var _x={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function uf(e,t){function n(o,i,s){if(!(typeof document>"u")){s=vl({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in s)s[c]&&(l+="; "+c,s[c]!==!0&&(l+="="+s[c].split(";")[0]));return document.cookie=o+"="+e.write(i,o)+l}}function a(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var i=document.cookie?document.cookie.split("; "):[],s={},l=0;l<i.length;l++){var c=i[l].split("="),u=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(s[d]=e.read(u,d),o===d)break}catch{}}return o?s[o]:s}}return Object.create({set:n,get:a,remove:function(o,i){n(o,"",vl({},i,{expires:-1}))},withAttributes:function(o){return uf(this.converter,vl({},this.attributes,o))},withConverter:function(o){return uf(vl({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Q2=uf(_x,{path:"/"});const an={navigationItems:r.shallowRef([]),mainMenuOpen:r.shallowRef(!1),expanded:r.shallowRef(Q2.get("navigation-expanded")==="true"),mobileMenuOpen:r.shallowRef(!1),mobileMenuOpenTransition:r.shallowRef(!1),navigationComponent:r.shallowRef("a"),logo:r.shallowRef(null),avatar:r.shallowRef(null),contactRoute:r.shallowRef(),contactIcon:r.shallowRef("?")};function ko(){function e(p){an.navigationItems.value=r.isRef(p)?p?.value:p}function t(p){an.navigationComponent.value=p}function n(p){an.logo.value=p}function a(p){an.avatar.value=p}function o(){an.mainMenuOpen.value=!0}function i(p=!0){Q2.set("navigation-expanded",`${p}`),an.expanded.value=p}function s(){i(!an.expanded.value)}function l(){an.mainMenuOpen.value=!1}function c(){an.mainMenuOpen.value=!an.mainMenuOpen.value}function u(){an.mobileMenuOpen.value=!0,an.mobileMenuOpenTransition.value=!0}function d(){an.mobileMenuOpen.value=!1,setTimeout(()=>{an.mobileMenuOpenTransition.value=!1},100)}function f(){return an.mobileMenuOpen.value?d():u()}return{...an,setNavigationItems:e,setNavigationComponent:t,setLogo:n,setAvatar:a,openMainMenu:o,closeMainMenu:l,toggleMainMenu:c,openMobileMenu:u,closeMobileMenu:d,toggleMobileMenu:f,expand:i,toggleExpand:s}}function Ju(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Sx(e){return`#${Ju(e[0])}${Ju(e[1])}${Ju(e[2])}`}function Ji(e,t=!1){const n=parseInt(e.slice(1,3),16),a=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return t?`${n} ${a} ${o}`:[n,a,o]}const Bo={layoutImage:r.ref(null),colors:{primaryColor:r.ref("#47A6DC"),primaryColorActive:r.ref("#3094CD"),secondaryColor:r.ref("#27272A"),secondaryColorActive:r.ref("#202023")}};function Tp(){function e(a){Bo.layoutImage.value=a}function t(a,o){Bo.colors.primaryColor.value=a,Bo.colors.primaryColorActive.value=o,document.documentElement.style.setProperty("--color-primary",`rgb(${Ji(a,!0)})`),document.documentElement.style.setProperty("--color-primary-active",`rgb(${Ji(o,!0)})`)}function n(a,o){Bo.colors.secondaryColor.value=a,Bo.colors.secondaryColorActive.value=o,document.documentElement.style.setProperty("--color-secondary",`rgb(${Ji(a,!0)})`),document.documentElement.style.setProperty("--color-secondary-active",`rgb(${Ji(o,!0)})`)}return{...Bo,setLayoutImage:e,setPrimaryColors:t,setSecondaryColors:n}}function Cx(e,t,n,a){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(d){try{u(a.next(d))}catch(f){s(f)}}function c(d){try{u(a.throw(d))}catch(f){s(f)}}function u(d){d.done?i(d.value):o(d.value).then(l,c)}u((a=a.apply(e,[])).next())})}function xx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qu,Pv;function Ex(){return Pv||(Pv=1,Qu=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 a,o,i;if(Array.isArray(t)){if(a=t.length,a!=n.length)return!1;for(o=a;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),a=i.length,a!==Object.keys(n).length)return!1;for(o=a;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=a;o--!==0;){var s=i[o];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n}),Qu}var Tx=Ex(),Px=xx(Tx);const Av="__googleMapsScriptId";var Uo;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(Uo||(Uo={}));class qa{constructor({apiKey:t,authReferrerPolicy:n,channel:a,client:o,id:i=Av,language:s,libraries:l=[],mapIds:c,nonce:u,region:d,retries:f=3,url:p="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=a,this.client=o,this.id=i||Av,this.language=s,this.libraries=l,this.mapIds=c,this.nonce=u,this.region=d,this.retries=f,this.url=p,this.version=m,qa.instance){if(!Px(this.options,qa.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(qa.instance.options)}`);return qa.instance}qa.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?Uo.FAILURE:this.done?Uo.SUCCESS:this.loading?Uo.LOADING:Uo.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+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((t,n)=>{this.loadCallback(a=>{a?n(a.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 a={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(a).forEach(i=>!a[i]&&delete a[i]),!((n=(t=window?.google)===null||t===void 0?void 0:t.maps)===null||n===void 0)&&n.importLibrary||(i=>{let s,l,c,u="The Google Maps JavaScript API",d="google",f="importLibrary",p="__ib__",m=document,v=window;v=v[d]||(v[d]={});const y=v.maps||(v.maps={}),w=new Set,b=new URLSearchParams,E=()=>s||(s=new Promise((_,g)=>Cx(this,void 0,void 0,function*(){var x;yield l=m.createElement("script"),l.id=this.id,b.set("libraries",[...w]+"");for(c in i)b.set(c.replace(/[A-Z]/g,C=>"_"+C[0].toLowerCase()),i[c]);b.set("callback",d+".maps."+p),l.src=this.url+"?"+b,y[p]=_,l.onerror=()=>s=g(Error(u+" could not load.")),l.nonce=this.nonce||((x=m.querySelector("script[nonce]"))===null||x===void 0?void 0:x.nonce)||"",m.head.append(l)})));y[f]?console.warn(u+" only loads once. Ignoring:",i):y[f]=(_,...g)=>w.add(_)&&E().then(()=>y[f](_,...g))})(a);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.loading)if(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=!0,this.setScript()}}}const Zu={loaded:r.ref(!1)};function Ax(){async function e(t){Zu.loaded&&(await new qa({apiKey:t,version:"weekly"}).load(),Zu.loaded.value=!0)}return{...Zu,load:e}}const Dn=(e,t)=>{const n=e.__vccOpts||e;for(const[a,o]of t)n[a]=o;return n},Ix={},Mx={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function Nx(e,t){return r.openBlock(),r.createElementBlock("svg",Mx,t[0]||(t[0]=[r.createElementVNode("circle",{r:"10",cy:"12",cx:"12.0269",fill:"#22C55E"},null,-1),r.createElementVNode("path",{stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",d:"M8 12.8571L10.5714 15.4286L17 9"},null,-1)]))}const Pp=Dn(Ix,[["render",Nx]]),Ox={},Bx={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function Lx(e,t){return r.openBlock(),r.createElementBlock("svg",Bx,t[0]||(t[0]=[r.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
560
+ }`;function I2(){var e=k2,t=_2,n=De.cssPrefix,a=De.replacementClass,o=l5;if(n!==e||a!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(l,".".concat(a))}return o}var lv=!1;function Yu(){De.autoAddCss&&!lv&&(r5(I2()),lv=!0)}var c5={mixout:function(){return{dom:{css:I2,insertCss:Yu}}},hooks:function(){return{beforeDOMElementCreation:function(){Yu()},beforeI2svg:function(){Yu()}}}},Gr=ya||{};Gr[Yr]||(Gr[Yr]={});Gr[Yr].styles||(Gr[Yr].styles={});Gr[Yr].hooks||(Gr[Yr].hooks={});Gr[Yr].shims||(Gr[Yr].shims=[]);var tr=Gr[Yr],M2=[],N2=function(){St.removeEventListener("DOMContentLoaded",N2),ac=1,M2.map(function(t){return t()})},ac=!1;oa&&(ac=(St.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(St.readyState),ac||St.addEventListener("DOMContentLoaded",N2));function u5(e){oa&&(ac?setTimeout(e,0):M2.push(e))}function Rs(e){var t=e.tag,n=e.attributes,a=n===void 0?{}:n,o=e.children,i=o===void 0?[]:o;return typeof e=="string"?A2(e):"<".concat(t," ").concat(o5(a),">").concat(i.map(Rs).join(""),"</").concat(t,">")}function cv(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Gu=function(t,n,a,o){var i=Object.keys(t),s=i.length,l=n,c,u,d;for(a===void 0?(c=1,d=t[i[0]]):(c=0,d=a);c<s;c++)u=i[c],d=l(d,t[u],u,t);return d};function O2(e){return ar(e).length!==1?null:e.codePointAt(0).toString(16)}function uv(e){return Object.keys(e).reduce(function(t,n){var a=e[n],o=!!a.icon;return o?t[a.iconName]=a.icon:t[n]=a,t},{})}function B2(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.skipHooks,o=a===void 0?!1:a,i=uv(t);typeof tr.hooks.addPack=="function"&&!o?tr.hooks.addPack(e,uv(t)):tr.styles[e]=ge(ge({},tr.styles[e]||{}),i),e==="fas"&&B2("fa",t)}var ys=tr.styles,d5=tr.shims,L2=Object.keys(E2),f5=L2.reduce(function(e,t){return e[t]=Object.keys(E2[t]),e},{}),_p=null,D2={},R2={},$2={},z2={},V2={};function p5(e){return~QC.indexOf(e)}function m5(e,t){var n=t.split("-"),a=n[0],o=n.slice(1).join("-");return a===e&&o!==""&&!p5(o)?o:null}var F2=function(){var t=function(i){return Gu(ys,function(s,l,c){return s[c]=Gu(l,i,{}),s},{})};D2=t(function(o,i,s){if(i[3]&&(o[i[3]]=s),i[2]){var l=i[2].filter(function(c){return typeof c=="number"});l.forEach(function(c){o[c.toString(16)]=s})}return o}),R2=t(function(o,i,s){if(o[s]=s,i[2]){var l=i[2].filter(function(c){return typeof c=="string"});l.forEach(function(c){o[c]=s})}return o}),V2=t(function(o,i,s){var l=i[2];return o[s]=s,l.forEach(function(c){o[c]=s}),o});var n="far"in ys||De.autoFetchSvg,a=Gu(d5,function(o,i){var s=i[0],l=i[1],c=i[2];return l==="far"&&!n&&(l="fas"),typeof s=="string"&&(o.names[s]={prefix:l,iconName:c}),typeof s=="number"&&(o.unicodes[s.toString(16)]={prefix:l,iconName:c}),o},{names:{},unicodes:{}});$2=a.names,z2=a.unicodes,_p=Kc(De.styleDefault,{family:De.familyDefault})};n5(function(e){_p=Kc(e.styleDefault,{family:De.familyDefault})});F2();function Sp(e,t){return(D2[e]||{})[t]}function h5(e,t){return(R2[e]||{})[t]}function Ja(e,t){return(V2[e]||{})[t]}function j2(e){return $2[e]||{prefix:null,iconName:null}}function v5(e){var t=z2[e],n=Sp("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function ba(){return _p}var H2=function(){return{prefix:null,iconName:null,rest:[]}};function g5(e){var t=cn,n=L2.reduce(function(a,o){return a[o]="".concat(De.cssPrefix,"-").concat(o),a},{});return g2.forEach(function(a){(e.includes(n[a])||e.some(function(o){return f5[a].includes(o)}))&&(t=a)}),t}function Kc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,a=n===void 0?cn:n,o=YC[a][e];if(a===Ls&&!e)return"fad";var i=iv[a][e]||iv[a][o],s=e in tr.styles?e:null,l=i||s||null;return l}function y5(e){var t=[],n=null;return e.forEach(function(a){var o=m5(De.cssPrefix,a);o?n=o:a&&t.push(a)}),{iconName:n,rest:t}}function dv(e){return e.sort().filter(function(t,n,a){return a.indexOf(t)===n})}var fv=b2.concat(y2);function Xc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,a=n===void 0?!1:n,o=null,i=dv(e.filter(function(m){return fv.includes(m)})),s=dv(e.filter(function(m){return!fv.includes(m)})),l=i.filter(function(m){return o=m,!r2.includes(m)}),c=Yc(l,1),u=c[0],d=u===void 0?null:u,f=g5(i),p=ge(ge({},y5(s)),{},{prefix:Kc(d,{family:f})});return ge(ge(ge({},p),_5({values:e,family:f,styles:ys,config:De,canonical:p,givenPrefix:o})),b5(a,o,p))}function b5(e,t,n){var a=n.prefix,o=n.iconName;if(e||!a||!o)return{prefix:a,iconName:o};var i=t==="fa"?j2(o):{},s=Ja(a,o);return o=i.iconName||s||o,a=i.prefix||a,a==="far"&&!ys.far&&ys.fas&&!De.autoFetchSvg&&(a="fas"),{prefix:a,iconName:o}}var w5=g2.filter(function(e){return e!==cn||e!==Ls}),k5=Object.keys(Xd).filter(function(e){return e!==cn}).map(function(e){return Object.keys(Xd[e])}).flat();function _5(e){var t=e.values,n=e.family,a=e.canonical,o=e.givenPrefix,i=o===void 0?"":o,s=e.styles,l=s===void 0?{}:s,c=e.config,u=c===void 0?{}:c,d=n===Ls,f=t.includes("fa-duotone")||t.includes("fad"),p=u.familyDefault==="duotone",m=a.prefix==="fad"||a.prefix==="fa-duotone";if(!d&&(f||p||m)&&(a.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(a.prefix="fab"),!a.prefix&&w5.includes(n)){var g=Object.keys(l).find(function(w){return k5.includes(w)});if(g||u.autoFetchSvg){var y=W8.get(n).defaultShortPrefixId;a.prefix=y,a.iconName=Ja(a.prefix,a.iconName)||a.iconName}}return(a.prefix==="fa"||i==="fa")&&(a.prefix=ba()||"fas"),a}var S5=function(){function e(){v8(this,e),this.definitions={}}return y8(e,[{key:"add",value:function(){for(var n=this,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];var s=o.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(l){n.definitions[l]=ge(ge({},n.definitions[l]||{}),s[l]),B2(l,s[l]),F2()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,a){var o=a.prefix&&a.iconName&&a.icon?{0:a}:a;return Object.keys(o).map(function(i){var s=o[i],l=s.prefix,c=s.iconName,u=s.icon,d=u[2];n[l]||(n[l]={}),d.length>0&&d.forEach(function(f){typeof f=="string"&&(n[l][f]=u)}),n[l][c]=u}),n}}])}(),pv=[],Ho={},Xo={},C5=Object.keys(Xo);function x5(e,t){var n=t.mixoutsTo;return pv=e,Ho={},Object.keys(Xo).forEach(function(a){C5.indexOf(a)===-1&&delete Xo[a]}),pv.forEach(function(a){var o=a.mixout?a.mixout():{};if(Object.keys(o).forEach(function(s){typeof o[s]=="function"&&(n[s]=o[s]),rc(o[s])==="object"&&Object.keys(o[s]).forEach(function(l){n[s]||(n[s]={}),n[s][l]=o[s][l]})}),a.hooks){var i=a.hooks();Object.keys(i).forEach(function(s){Ho[s]||(Ho[s]=[]),Ho[s].push(i[s])})}a.provides&&a.provides(Xo)}),n}function nf(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),o=2;o<n;o++)a[o-2]=arguments[o];var i=Ho[e]||[];return i.forEach(function(s){t=s.apply(null,[t].concat(a))}),t}function po(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var o=Ho[e]||[];o.forEach(function(i){i.apply(null,n)})}function wa(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Xo[e]?Xo[e].apply(null,t):void 0}function rf(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||ba();if(t)return t=Ja(n,t)||t,cv(U2.definitions,n,t)||cv(tr.styles,n,t)}var U2=new S5,E5=function(){De.autoReplaceSvg=!1,De.observeMutations=!1,po("noAuto")},T5={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return oa?(po("beforeI2svg",t),wa("pseudoElements2svg",t),wa("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;De.autoReplaceSvg===!1&&(De.autoReplaceSvg=!0),De.observeMutations=!0,u5(function(){A5({autoReplaceSvgRoot:n}),po("watch",t)})}},P5={icon:function(t){if(t===null)return null;if(rc(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Ja(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],a=Kc(t[0]);return{prefix:a,iconName:Ja(a,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(De.cssPrefix,"-"))>-1||t.match(GC))){var o=Xc(t.split(" "),{skipLookups:!0});return{prefix:o.prefix||ba(),iconName:Ja(o.prefix,o.iconName)||o.iconName}}if(typeof t=="string"){var i=ba();return{prefix:i,iconName:Ja(i,t)||t}}}},Ln={noAuto:E5,config:De,dom:T5,parse:P5,library:U2,findIconDefinition:rf,toHtml:Rs},A5=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,a=n===void 0?St:n;(Object.keys(tr.styles).length>0||De.autoFetchSvg)&&oa&&De.autoReplaceSvg&&Ln.dom.i2svg({node:a})};function Jc(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(a){return Rs(a)})}}),Object.defineProperty(e,"node",{get:function(){if(oa){var a=St.createElement("div");return a.innerHTML=e.html,a.children}}}),e}function I5(e){var t=e.children,n=e.main,a=e.mask,o=e.attributes,i=e.styles,s=e.transform;if(kp(s)&&n.found&&!a.found){var l=n.width,c=n.height,u={x:l/c/2,y:.5};o.style=Gc(ge(ge({},i),{},{"transform-origin":"".concat(u.x+s.x/16,"em ").concat(u.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function M5(e){var t=e.prefix,n=e.iconName,a=e.children,o=e.attributes,i=e.symbol,s=i===!0?"".concat(t,"-").concat(De.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ge(ge({},o),{},{id:s}),children:a}]}]}function N5(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function Cp(e){var t=e.icons,n=t.main,a=t.mask,o=e.prefix,i=e.iconName,s=e.transform,l=e.symbol,c=e.maskId,u=e.extra,d=e.watchable,f=d===void 0?!1:d,p=a.found?a:n,m=p.width,g=p.height,y=[De.replacementClass,i?"".concat(De.cssPrefix,"-").concat(i):""].filter(function(x){return u.classes.indexOf(x)===-1}).filter(function(x){return x!==""||!!x}).concat(u.classes).join(" "),w={children:[],attributes:ge(ge({},u.attributes),{},{"data-prefix":o,"data-icon":i,class:y,role:u.attributes.role||"img",viewBox:"0 0 ".concat(m," ").concat(g)})};!N5(u.attributes)&&!u.attributes["aria-hidden"]&&(w.attributes["aria-hidden"]="true"),f&&(w.attributes[fo]="");var b=ge(ge({},w),{},{prefix:o,iconName:i,main:n,mask:a,maskId:c,transform:s,symbol:l,styles:ge({},u.styles)}),E=a.found&&n.found?wa("generateAbstractMask",b)||{children:[],attributes:{}}:wa("generateAbstractIcon",b)||{children:[],attributes:{}},_=E.children,v=E.attributes;return b.children=_,b.attributes=v,l?M5(b):I5(b)}function mv(e){var t=e.content,n=e.width,a=e.height,o=e.transform,i=e.extra,s=e.watchable,l=s===void 0?!1:s,c=ge(ge({},i.attributes),{},{class:i.classes.join(" ")});l&&(c[fo]="");var u=ge({},i.styles);kp(o)&&(u.transform=s5({transform:o,width:n,height:a}),u["-webkit-transform"]=u.transform);var d=Gc(u);d.length>0&&(c.style=d);var f=[];return f.push({tag:"span",attributes:c,children:[t]}),f}function O5(e){var t=e.content,n=e.extra,a=ge(ge({},n.attributes),{},{class:n.classes.join(" ")}),o=Gc(n.styles);o.length>0&&(a.style=o);var i=[];return i.push({tag:"span",attributes:a,children:[t]}),i}var Ku=tr.styles;function af(e){var t=e[0],n=e[1],a=e.slice(4),o=Yc(a,1),i=o[0],s=null;return Array.isArray(i)?s={tag:"g",attributes:{class:"".concat(De.cssPrefix,"-").concat(qu.GROUP)},children:[{tag:"path",attributes:{class:"".concat(De.cssPrefix,"-").concat(qu.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(De.cssPrefix,"-").concat(qu.PRIMARY),fill:"currentColor",d:i[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:s}}var B5={found:!1,width:512,height:512};function L5(e,t){!C2&&!De.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function of(e,t){var n=t;return t==="fa"&&De.styleDefault!==null&&(t=ba()),new Promise(function(a,o){if(n==="fa"){var i=j2(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Ku[t]&&Ku[t][e]){var s=Ku[t][e];return a(af(s))}L5(e,t),a(ge(ge({},B5),{},{icon:De.showMissingIcons&&e?wa("missingIconAbstract")||{}:{}}))})}var hv=function(){},sf=De.measurePerformance&&ml&&ml.mark&&ml.measure?ml:{mark:hv,measure:hv},Xi='FA "7.0.0"',D5=function(t){return sf.mark("".concat(Xi," ").concat(t," begins")),function(){return W2(t)}},W2=function(t){sf.mark("".concat(Xi," ").concat(t," ends")),sf.measure("".concat(Xi," ").concat(t),"".concat(Xi," ").concat(t," begins"),"".concat(Xi," ").concat(t," ends"))},xp={begin:D5,end:W2},jl=function(){};function vv(e){var t=e.getAttribute?e.getAttribute(fo):null;return typeof t=="string"}function R5(e){var t=e.getAttribute?e.getAttribute(yp):null,n=e.getAttribute?e.getAttribute(bp):null;return t&&n}function $5(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(De.replacementClass)}function z5(){if(De.autoReplaceSvg===!0)return Hl.replace;var e=Hl[De.autoReplaceSvg];return e||Hl.replace}function V5(e){return St.createElementNS("http://www.w3.org/2000/svg",e)}function F5(e){return St.createElement(e)}function q2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,a=n===void 0?e.tag==="svg"?V5:F5:n;if(typeof e=="string")return St.createTextNode(e);var o=a(e.tag);Object.keys(e.attributes||[]).forEach(function(s){o.setAttribute(s,e.attributes[s])});var i=e.children||[];return i.forEach(function(s){o.appendChild(q2(s,{ceFn:a}))}),o}function j5(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Hl={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(o){n.parentNode.insertBefore(q2(o),n)}),n.getAttribute(fo)===null&&De.keepOriginalSource){var a=St.createComment(j5(n));n.parentNode.replaceChild(a,n)}else n.remove()},nest:function(t){var n=t[0],a=t[1];if(~wp(n).indexOf(De.replacementClass))return Hl.replace(t);var o=new RegExp("".concat(De.cssPrefix,"-.*"));if(delete a[0].attributes.id,a[0].attributes.class){var i=a[0].attributes.class.split(" ").reduce(function(l,c){return c===De.replacementClass||c.match(o)?l.toSvg.push(c):l.toNode.push(c),l},{toNode:[],toSvg:[]});a[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var s=a.map(function(l){return Rs(l)}).join(`
561
+ `);n.setAttribute(fo,""),n.innerHTML=s}};function gv(e){e()}function Y2(e,t){var n=typeof t=="function"?t:jl;if(e.length===0)n();else{var a=gv;De.mutateApproach===WC&&(a=ya.requestAnimationFrame||gv),a(function(){var o=z5(),i=xp.begin("mutate");e.map(o),i(),n()})}}var Ep=!1;function G2(){Ep=!0}function lf(){Ep=!1}var oc=null;function yv(e){if(nv&&De.observeMutations){var t=e.treeCallback,n=t===void 0?jl:t,a=e.nodeCallback,o=a===void 0?jl:a,i=e.pseudoElementsCallback,s=i===void 0?jl:i,l=e.observeMutationsRoot,c=l===void 0?St:l;oc=new nv(function(u){if(!Ep){var d=ba();Pi(u).forEach(function(f){if(f.type==="childList"&&f.addedNodes.length>0&&!vv(f.addedNodes[0])&&(De.searchPseudoElements&&s(f.target),n(f.target)),f.type==="attributes"&&f.target.parentNode&&De.searchPseudoElements&&s([f.target],!0),f.type==="attributes"&&vv(f.target)&&~JC.indexOf(f.attributeName))if(f.attributeName==="class"&&R5(f.target)){var p=Xc(wp(f.target)),m=p.prefix,g=p.iconName;f.target.setAttribute(yp,m||d),g&&f.target.setAttribute(bp,g)}else $5(f.target)&&o(f.target)})}}),oa&&oc.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function H5(){oc&&oc.disconnect()}function U5(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(a,o){var i=o.split(":"),s=i[0],l=i.slice(1);return s&&l.length>0&&(a[s]=l.join(":").trim()),a},{})),n}function W5(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),a=e.innerText!==void 0?e.innerText.trim():"",o=Xc(wp(e));return o.prefix||(o.prefix=ba()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&a.length>0&&(o.iconName=h5(o.prefix,e.innerText)||Sp(o.prefix,O2(e.innerText))),!o.iconName&&De.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function q5(e){var t=Pi(e.attributes).reduce(function(n,a){return n.name!=="class"&&n.name!=="style"&&(n[a.name]=a.value),n},{});return t}function Y5(){return{iconName:null,prefix:null,transform:kr,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function bv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=W5(e),a=n.iconName,o=n.prefix,i=n.rest,s=q5(e),l=nf("parseNodeAttributes",{},e),c=t.styleParser?U5(e):[];return ge({iconName:a,prefix:o,transform:kr,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:c,attributes:s}},l)}var G5=tr.styles;function K2(e){var t=De.autoReplaceSvg==="nest"?bv(e,{styleParser:!1}):bv(e);return~t.extra.classes.indexOf(T2)?wa("generateLayersText",e,t):wa("generateSvgReplacementMutation",e,t)}function K5(){return[].concat(ar(y2),ar(b2))}function wv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!oa)return Promise.resolve();var n=St.documentElement.classList,a=function(f){return n.add("".concat(ov,"-").concat(f))},o=function(f){return n.remove("".concat(ov,"-").concat(f))},i=De.autoFetchSvg?K5():r2.concat(Object.keys(G5));i.includes("fa")||i.push("fa");var s=[".".concat(T2,":not([").concat(fo,"])")].concat(i.map(function(d){return".".concat(d,":not([").concat(fo,"])")})).join(", ");if(s.length===0)return Promise.resolve();var l=[];try{l=Pi(e.querySelectorAll(s))}catch{}if(l.length>0)a("pending"),o("complete");else return Promise.resolve();var c=xp.begin("onTree"),u=l.reduce(function(d,f){try{var p=K2(f);p&&d.push(p)}catch(m){C2||m.name==="MissingIcon"&&console.error(m)}return d},[]);return new Promise(function(d,f){Promise.all(u).then(function(p){Y2(p,function(){a("active"),a("complete"),o("pending"),typeof t=="function"&&t(),c(),d()})}).catch(function(p){c(),f(p)})})}function X5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;K2(e).then(function(n){n&&Y2([n],t)})}function J5(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=(t||{}).icon?t:rf(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:rf(o||{})),e(a,ge(ge({},n),{},{mask:o}))}}var Q5=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.transform,o=a===void 0?kr:a,i=n.symbol,s=i===void 0?!1:i,l=n.mask,c=l===void 0?null:l,u=n.maskId,d=u===void 0?null:u,f=n.classes,p=f===void 0?[]:f,m=n.attributes,g=m===void 0?{}:m,y=n.styles,w=y===void 0?{}:y;if(t){var b=t.prefix,E=t.iconName,_=t.icon;return Jc(ge({type:"icon"},t),function(){return po("beforeDOMElementCreation",{iconDefinition:t,params:n}),Cp({icons:{main:af(_),mask:c?af(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:b,iconName:E,transform:ge(ge({},kr),o),symbol:s,maskId:d,extra:{attributes:g,styles:w,classes:p}})})}},Z5={mixout:function(){return{icon:J5(Q5)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=wv,n.nodeCallback=X5,n}}},provides:function(t){t.i2svg=function(n){var a=n.node,o=a===void 0?St:a,i=n.callback,s=i===void 0?function(){}:i;return wv(o,s)},t.generateSvgReplacementMutation=function(n,a){var o=a.iconName,i=a.prefix,s=a.transform,l=a.symbol,c=a.mask,u=a.maskId,d=a.extra;return new Promise(function(f,p){Promise.all([of(o,i),c.iconName?of(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(m){var g=Yc(m,2),y=g[0],w=g[1];f([n,Cp({icons:{main:y,mask:w},prefix:i,iconName:o,transform:s,symbol:l,maskId:u,extra:d,watchable:!0})])}).catch(p)})},t.generateAbstractIcon=function(n){var a=n.children,o=n.attributes,i=n.main,s=n.transform,l=n.styles,c=Gc(l);c.length>0&&(o.style=c);var u;return kp(s)&&(u=wa("generateAbstractTransformGrouping",{main:i,transform:s,containerWidth:i.width,iconWidth:i.width})),a.push(u||i.icon),{children:a,attributes:o}}}},ex={mixout:function(){return{layer:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.classes,i=o===void 0?[]:o;return Jc({type:"layer"},function(){po("beforeDOMElementCreation",{assembler:n,params:a});var s=[];return n(function(l){Array.isArray(l)?l.map(function(c){s=s.concat(c.abstract)}):s=s.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(De.cssPrefix,"-layers")].concat(ar(i)).join(" ")},children:s}]})}}}},tx={mixout:function(){return{counter:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};a.title;var o=a.classes,i=o===void 0?[]:o,s=a.attributes,l=s===void 0?{}:s,c=a.styles,u=c===void 0?{}:c;return Jc({type:"counter",content:n},function(){return po("beforeDOMElementCreation",{content:n,params:a}),O5({content:n.toString(),extra:{attributes:l,styles:u,classes:["".concat(De.cssPrefix,"-layers-counter")].concat(ar(i))}})})}}}},nx={mixout:function(){return{text:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.transform,i=o===void 0?kr:o,s=a.classes,l=s===void 0?[]:s,c=a.attributes,u=c===void 0?{}:c,d=a.styles,f=d===void 0?{}:d;return Jc({type:"text",content:n},function(){return po("beforeDOMElementCreation",{content:n,params:a}),mv({content:n,transform:ge(ge({},kr),i),extra:{attributes:u,styles:f,classes:["".concat(De.cssPrefix,"-layers-text")].concat(ar(l))}})})}}},provides:function(t){t.generateLayersText=function(n,a){var o=a.transform,i=a.extra,s=null,l=null;if(t2){var c=parseInt(getComputedStyle(n).fontSize,10),u=n.getBoundingClientRect();s=u.width/c,l=u.height/c}return Promise.resolve([n,mv({content:n.innerHTML,width:s,height:l,transform:o,extra:i,watchable:!0})])}}},X2=new RegExp('"',"ug"),kv=[1105920,1112319],_v=ge(ge(ge(ge({},{FontAwesome:{normal:"fas",400:"fas"}}),U8),HC),Z8),cf=Object.keys(_v).reduce(function(e,t){return e[t.toLowerCase()]=_v[t],e},{}),rx=Object.keys(cf).reduce(function(e,t){var n=cf[t];return e[t]=n[900]||ar(Object.entries(n))[0][1],e},{});function ax(e){var t=e.replace(X2,"");return O2(ar(t)[0]||"")}function ox(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),a=n.replace(X2,""),o=a.codePointAt(0),i=o>=kv[0]&&o<=kv[1],s=a.length===2?a[0]===a[1]:!1;return i||s||t}function ix(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),a=parseInt(t),o=isNaN(a)?"normal":a;return(cf[n]||{})[o]||rx[n]}function Sv(e,t){var n="".concat(UC).concat(t.replace(":","-"));return new Promise(function(a,o){if(e.getAttribute(n)!==null)return a();var i=Pi(e.children),s=i.filter(function(C){return C.getAttribute(Qd)===t})[0],l=ya.getComputedStyle(e,t),c=l.getPropertyValue("font-family"),u=c.match(KC),d=l.getPropertyValue("font-weight"),f=l.getPropertyValue("content");if(s&&!u)return e.removeChild(s),a();if(u&&f!=="none"&&f!==""){var p=l.getPropertyValue("content"),m=ix(c,d),g=ax(p),y=u[0].startsWith("FontAwesome"),w=ox(l),b=Sp(m,g),E=b;if(y){var _=v5(g);_.iconName&&_.prefix&&(b=_.iconName,m=_.prefix)}if(b&&!w&&(!s||s.getAttribute(yp)!==m||s.getAttribute(bp)!==E)){e.setAttribute(n,E),s&&e.removeChild(s);var v=Y5(),x=v.extra;x.attributes[Qd]=t,of(b,m).then(function(C){var P=Cp(ge(ge({},v),{},{icons:{main:C,mask:H2()},prefix:m,iconName:E,extra:x,watchable:!0})),O=St.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(O,e.firstChild):e.appendChild(O),O.outerHTML=P.map(function(A){return Rs(A)}).join(`
562
+ `),e.removeAttribute(n),a()}).catch(o)}else a()}else a()})}function sx(e){return Promise.all([Sv(e,"::before"),Sv(e,"::after")])}function lx(e){return e.parentNode!==document.head&&!~qC.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Qd)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var cx=function(t){return!!t&&S2.some(function(n){return t.includes(n)})},ux=function(t){if(!t)return[];for(var n=new Set,a=[t],o=[/(?=\s:)/,new RegExp("(?<=\\)\\)?[^,]*,)")],i=function(){var m=l[s];a=a.flatMap(function(g){return g.split(m).map(function(y){return y.replace(/,\s*$/,"").trim()})})},s=0,l=o;s<l.length;s++)i();a=a.flatMap(function(p){return p.includes("(")?p:p.split(",").map(function(m){return m.trim()})});var c=Fl(a),u;try{for(c.s();!(u=c.n()).done;){var d=u.value;if(cx(d)){var f=S2.reduce(function(p,m){return p.replace(m,"")},d);f!==""&&f!=="*"&&n.add(f)}}}catch(p){c.e(p)}finally{c.f()}return n};function Cv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(oa){var n;if(t)n=e;else if(De.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var a=new Set,o=Fl(document.styleSheets),i;try{for(o.s();!(i=o.n()).done;){var s=i.value;try{var l=Fl(s.cssRules),c;try{for(l.s();!(c=l.n()).done;){var u=c.value,d=ux(u.selectorText),f=Fl(d),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;a.add(m)}}catch(y){f.e(y)}finally{f.f()}}}catch(y){l.e(y)}finally{l.f()}}catch(y){De.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(s.href," (").concat(y.message,`)
563
+ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(y){o.e(y)}finally{o.f()}if(!a.size)return;var g=Array.from(a).join(", ");try{n=e.querySelectorAll(g)}catch{}}return new Promise(function(y,w){var b=Pi(n).filter(lx).map(sx),E=xp.begin("searchPseudoElements");G2(),Promise.all(b).then(function(){E(),lf(),y()}).catch(function(){E(),lf(),w()})})}}var dx={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Cv,n}}},provides:function(t){t.pseudoElements2svg=function(n){var a=n.node,o=a===void 0?St:a;De.searchPseudoElements&&Cv(o)}}},xv=!1,fx={mixout:function(){return{dom:{unwatch:function(){G2(),xv=!0}}}},hooks:function(){return{bootstrap:function(){yv(nf("mutationObserverCallbacks",{}))},noAuto:function(){H5()},watch:function(n){var a=n.observeMutationsRoot;xv?lf():yv(nf("mutationObserverCallbacks",{observeMutationsRoot:a}))}}}},Ev=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(a,o){var i=o.toLowerCase().split("-"),s=i[0],l=i.slice(1).join("-");if(s&&l==="h")return a.flipX=!0,a;if(s&&l==="v")return a.flipY=!0,a;if(l=parseFloat(l),isNaN(l))return a;switch(s){case"grow":a.size=a.size+l;break;case"shrink":a.size=a.size-l;break;case"left":a.x=a.x-l;break;case"right":a.x=a.x+l;break;case"up":a.y=a.y-l;break;case"down":a.y=a.y+l;break;case"rotate":a.rotate=a.rotate+l;break}return a},n)},px={mixout:function(){return{parse:{transform:function(n){return Ev(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,a){var o=a.getAttribute("data-fa-transform");return o&&(n.transform=Ev(o)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var a=n.main,o=n.transform,i=n.containerWidth,s=n.iconWidth,l={transform:"translate(".concat(i/2," 256)")},c="translate(".concat(o.x*32,", ").concat(o.y*32,") "),u="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),d="rotate(".concat(o.rotate," 0 0)"),f={transform:"".concat(c," ").concat(u," ").concat(d)},p={transform:"translate(".concat(s/2*-1," -256)")},m={outer:l,inner:f,path:p};return{tag:"g",attributes:ge({},m.outer),children:[{tag:"g",attributes:ge({},m.inner),children:[{tag:a.icon.tag,children:a.icon.children,attributes:ge(ge({},a.icon.attributes),m.path)}]}]}}}},Xu={x:0,y:0,width:"100%",height:"100%"};function Tv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function mx(e){return e.tag==="g"?e.children:[e]}var hx={hooks:function(){return{parseNodeAttributes:function(n,a){var o=a.getAttribute("data-fa-mask"),i=o?Xc(o.split(" ").map(function(s){return s.trim()})):H2();return i.prefix||(i.prefix=ba()),n.mask=i,n.maskId=a.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var a=n.children,o=n.attributes,i=n.main,s=n.mask,l=n.maskId,c=n.transform,u=i.width,d=i.icon,f=s.width,p=s.icon,m=i5({transform:c,containerWidth:f,iconWidth:u}),g={tag:"rect",attributes:ge(ge({},Xu),{},{fill:"white"})},y=d.children?{children:d.children.map(Tv)}:{},w={tag:"g",attributes:ge({},m.inner),children:[Tv(ge({tag:d.tag,attributes:ge(ge({},d.attributes),m.path)},y))]},b={tag:"g",attributes:ge({},m.outer),children:[w]},E="mask-".concat(l||sv()),_="clip-".concat(l||sv()),v={tag:"mask",attributes:ge(ge({},Xu),{},{id:E,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[g,b]},x={tag:"defs",children:[{tag:"clipPath",attributes:{id:_},children:mx(p)},v]};return a.push(x,{tag:"rect",attributes:ge({fill:"currentColor","clip-path":"url(#".concat(_,")"),mask:"url(#".concat(E,")")},Xu)}),{children:a,attributes:o}}}},vx={provides:function(t){var n=!1;ya.matchMedia&&(n=ya.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var a=[],o={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};a.push({tag:"path",attributes:ge(ge({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=ge(ge({},i),{},{attributeName:"opacity"}),l={tag:"circle",attributes:ge(ge({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||l.children.push({tag:"animate",attributes:ge(ge({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ge(ge({},s),{},{values:"1;0;1;1;0;1;"})}),a.push(l),a.push({tag:"path",attributes:ge(ge({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:ge(ge({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||a.push({tag:"path",attributes:ge(ge({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:ge(ge({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:a}}}},gx={hooks:function(){return{parseNodeAttributes:function(n,a){var o=a.getAttribute("data-fa-symbol"),i=o===null?!1:o===""?!0:o;return n.symbol=i,n}}}},yx=[c5,Z5,ex,tx,nx,dx,fx,px,hx,vx,gx];x5(yx,{mixoutsTo:Ln});Ln.noAuto;var J2=Ln.config,bx=Ln.library;Ln.dom;var ic=Ln.parse;Ln.findIconDefinition;Ln.toHtml;var wx=Ln.icon;Ln.layer;var kx=Ln.text;Ln.counter;/*! js-cookie v3.0.5 | MIT */function vl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)e[a]=n[a]}return e}var _x={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function uf(e,t){function n(o,i,s){if(!(typeof document>"u")){s=vl({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in s)s[c]&&(l+="; "+c,s[c]!==!0&&(l+="="+s[c].split(";")[0]));return document.cookie=o+"="+e.write(i,o)+l}}function a(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var i=document.cookie?document.cookie.split("; "):[],s={},l=0;l<i.length;l++){var c=i[l].split("="),u=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(s[d]=e.read(u,d),o===d)break}catch{}}return o?s[o]:s}}return Object.create({set:n,get:a,remove:function(o,i){n(o,"",vl({},i,{expires:-1}))},withAttributes:function(o){return uf(this.converter,vl({},this.attributes,o))},withConverter:function(o){return uf(vl({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Q2=uf(_x,{path:"/"});const an={navigationItems:r.shallowRef([]),mainMenuOpen:r.shallowRef(!1),expanded:r.shallowRef(Q2.get("navigation-expanded")==="true"),mobileMenuOpen:r.shallowRef(!1),mobileMenuOpenTransition:r.shallowRef(!1),navigationComponent:r.shallowRef("a"),logo:r.shallowRef(null),avatar:r.shallowRef(null),contactRoute:r.shallowRef(),contactIcon:r.shallowRef("?")};function ko(){function e(p){an.navigationItems.value=r.isRef(p)?p?.value:p}function t(p){an.navigationComponent.value=p}function n(p){an.logo.value=p}function a(p){an.avatar.value=p}function o(){an.mainMenuOpen.value=!0}function i(p=!0){Q2.set("navigation-expanded",`${p}`),an.expanded.value=p}function s(){i(!an.expanded.value)}function l(){an.mainMenuOpen.value=!1}function c(){an.mainMenuOpen.value=!an.mainMenuOpen.value}function u(){an.mobileMenuOpen.value=!0,an.mobileMenuOpenTransition.value=!0}function d(){an.mobileMenuOpen.value=!1,setTimeout(()=>{an.mobileMenuOpenTransition.value=!1},100)}function f(){return an.mobileMenuOpen.value?d():u()}return{...an,setNavigationItems:e,setNavigationComponent:t,setLogo:n,setAvatar:a,openMainMenu:o,closeMainMenu:l,toggleMainMenu:c,openMobileMenu:u,closeMobileMenu:d,toggleMobileMenu:f,expand:i,toggleExpand:s}}function Ju(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Sx(e){return`#${Ju(e[0])}${Ju(e[1])}${Ju(e[2])}`}function Ji(e,t=!1){const n=parseInt(e.slice(1,3),16),a=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return t?`${n} ${a} ${o}`:[n,a,o]}const Bo={layoutImage:r.ref(null),colors:{primaryColor:r.ref("#47A6DC"),primaryColorActive:r.ref("#3094CD"),secondaryColor:r.ref("#27272A"),secondaryColorActive:r.ref("#202023")}};function Tp(){function e(a){Bo.layoutImage.value=a}function t(a,o){Bo.colors.primaryColor.value=a,Bo.colors.primaryColorActive.value=o,document.documentElement.style.setProperty("--color-primary",`rgb(${Ji(a,!0)})`),document.documentElement.style.setProperty("--color-primary-active",`rgb(${Ji(o,!0)})`)}function n(a,o){Bo.colors.secondaryColor.value=a,Bo.colors.secondaryColorActive.value=o,document.documentElement.style.setProperty("--color-secondary",`rgb(${Ji(a,!0)})`),document.documentElement.style.setProperty("--color-secondary-active",`rgb(${Ji(o,!0)})`)}return{...Bo,setLayoutImage:e,setPrimaryColors:t,setSecondaryColors:n}}function Cx(e,t,n,a){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(d){try{u(a.next(d))}catch(f){s(f)}}function c(d){try{u(a.throw(d))}catch(f){s(f)}}function u(d){d.done?i(d.value):o(d.value).then(l,c)}u((a=a.apply(e,[])).next())})}function xx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qu,Pv;function Ex(){return Pv||(Pv=1,Qu=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 a,o,i;if(Array.isArray(t)){if(a=t.length,a!=n.length)return!1;for(o=a;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),a=i.length,a!==Object.keys(n).length)return!1;for(o=a;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=a;o--!==0;){var s=i[o];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n}),Qu}var Tx=Ex(),Px=xx(Tx);const Av="__googleMapsScriptId";var Uo;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(Uo||(Uo={}));class qa{constructor({apiKey:t,authReferrerPolicy:n,channel:a,client:o,id:i=Av,language:s,libraries:l=[],mapIds:c,nonce:u,region:d,retries:f=3,url:p="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=a,this.client=o,this.id=i||Av,this.language=s,this.libraries=l,this.mapIds=c,this.nonce=u,this.region=d,this.retries=f,this.url=p,this.version=m,qa.instance){if(!Px(this.options,qa.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(qa.instance.options)}`);return qa.instance}qa.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?Uo.FAILURE:this.done?Uo.SUCCESS:this.loading?Uo.LOADING:Uo.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+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((t,n)=>{this.loadCallback(a=>{a?n(a.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 a={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(a).forEach(i=>!a[i]&&delete a[i]),!((n=(t=window?.google)===null||t===void 0?void 0:t.maps)===null||n===void 0)&&n.importLibrary||(i=>{let s,l,c,u="The Google Maps JavaScript API",d="google",f="importLibrary",p="__ib__",m=document,g=window;g=g[d]||(g[d]={});const y=g.maps||(g.maps={}),w=new Set,b=new URLSearchParams,E=()=>s||(s=new Promise((_,v)=>Cx(this,void 0,void 0,function*(){var x;yield l=m.createElement("script"),l.id=this.id,b.set("libraries",[...w]+"");for(c in i)b.set(c.replace(/[A-Z]/g,C=>"_"+C[0].toLowerCase()),i[c]);b.set("callback",d+".maps."+p),l.src=this.url+"?"+b,y[p]=_,l.onerror=()=>s=v(Error(u+" could not load.")),l.nonce=this.nonce||((x=m.querySelector("script[nonce]"))===null||x===void 0?void 0:x.nonce)||"",m.head.append(l)})));y[f]?console.warn(u+" only loads once. Ignoring:",i):y[f]=(_,...v)=>w.add(_)&&E().then(()=>y[f](_,...v))})(a);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.loading)if(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=!0,this.setScript()}}}const Zu={loaded:r.ref(!1)};function Ax(){async function e(t){Zu.loaded&&(await new qa({apiKey:t,version:"weekly"}).load(),Zu.loaded.value=!0)}return{...Zu,load:e}}const Dn=(e,t)=>{const n=e.__vccOpts||e;for(const[a,o]of t)n[a]=o;return n},Ix={},Mx={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function Nx(e,t){return r.openBlock(),r.createElementBlock("svg",Mx,t[0]||(t[0]=[r.createElementVNode("circle",{r:"10",cy:"12",cx:"12.0269",fill:"#22C55E"},null,-1),r.createElementVNode("path",{stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",d:"M8 12.8571L10.5714 15.4286L17 9"},null,-1)]))}const Pp=Dn(Ix,[["render",Nx]]),Ox={},Bx={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function Lx(e,t){return r.openBlock(),r.createElementBlock("svg",Bx,t[0]||(t[0]=[r.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
564
564
  21.7364 17.4787L14.0613 4.17412C13.1575 2.60863 10.8969 2.60863 9.99311 4.17412L2.31804 17.4787Z`},null,-1),r.createElementVNode("path",{stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8V13.549M12 17.9882H12.0104V18H12V17.9882Z"},null,-1)]))}const Ap=Dn(Ox,[["render",Lx]]),Dx={},Rx={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function $x(e,t){return r.openBlock(),r.createElementBlock("svg",Rx,t[0]||(t[0]=[r.createElementVNode("circle",{r:"10",cy:"12",cx:"12.0269",fill:"#DC2626"},null,-1),r.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)]))}const Ip=Dn(Dx,[["render",$x]]),zx={success:["bg-green-100"],warning:["bg-yellow-100"],error:["bg-red-100"]},Z2={success:Pp,warning:Ap,error:Ip},Vx={class:"flex items-center font-bold"},Fx={key:0,class:"mr-2"},jx={"data-test-title":""},Hx={key:0,class:"mt-1 text-zinc-700","data-test-description":""},Ux=r.defineComponent({__name:"AppAlert",props:{type:{},title:{default:void 0},description:{default:void 0},withIcon:{type:Boolean,default:!0}},setup(e){const t=r.useSlots();return(n,a)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([r.unref(zx)[n.type],"app-alert inline-flex max-w-[410px] flex-col rounded-lg px-4 py-2 text-sm text-zinc-900"])},[r.createElementVNode("div",Vx,[n.withIcon?(r.openBlock(),r.createElementBlock("span",Fx,[r.renderSlot(n.$slots,"icon",{type:n.type},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(Z2)[n.type]),{class:"size-5"}))],!0)])):r.createCommentVNode("",!0),r.createElementVNode("span",jx,[r.renderSlot(n.$slots,"title",{},()=>[r.createTextVNode(r.toDisplayString(n.title),1)],!0)])]),n.description||r.unref(t).description?(r.openBlock(),r.createElementBlock("div",Hx,[r.renderSlot(n.$slots,"description",{},()=>[r.createTextVNode(r.toDisplayString(n.description),1)],!0)])):r.createCommentVNode("",!0)],2))}}),ey=Dn(Ux,[["__scopeId","data-v-3537e936"]]),Wx={small:["w-7 h-7"],medium:["w-10 h-10"],large:["w-12 h-12"]},qx={width:"39",height:"39",viewBox:"0 0 39 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yx={mask:"url(#mask0_928_1872)"},Gx=["fill"],Kx=r.defineComponent({__name:"DefaultAvatar",props:{color:{}},setup(e){const t=e,{colors:n}=Tp(),a=r.computed(()=>t.color??n.primaryColorActive.value);return(o,i)=>(r.openBlock(),r.createElementBlock("svg",qx,[i[3]||(i[3]=r.createElementVNode("mask",{id:"mask0_928_1872",style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"39",height:"39"},[r.createElementVNode("circle",{cx:"19.5",cy:"19.5",r:"19.5",fill:"#D9D9D9"})],-1)),r.createElementVNode("g",Yx,[i[0]||(i[0]=r.createElementVNode("circle",{cx:"19.5",cy:"19.5",r:"19.5",fill:"#E4E4E7"},null,-1)),i[1]||(i[1]=r.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
565
565
  32.6631C23.2588 30.984 22.1755 30.7083 22.1755 30.7083Z`,fill:"#EBEFF2"},null,-1)),r.createElementVNode("path",{fill:a.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
566
566
  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
@@ -601,14 +601,14 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
601
601
  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
602
602
  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
603
603
  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))])]))}}),Xx=["src"],Jx=r.defineComponent({__name:"AppAvatar",props:{size:{default:"medium"},src:{},defaultAvatarColor:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([r.unref(Wx)[t.size],"app-avatar relative flex items-center rounded-full"])},[t.src?(r.openBlock(),r.createElementBlock("img",{key:0,src:t.src,alt:"avatar",class:"absolute inset-0 size-full object-cover object-center rounded-full"},null,8,Xx)):(r.openBlock(),r.createBlock(Kx,{key:1,color:t.defaultAvatarColor,class:"absolute inset-0 size-full rounded-full"},null,8,["color"]))],2))}}),Qx={class:"group mb-3 flex items-center font-semibold text-zinc-700"},Zx=r.defineComponent({__name:"AppBackButton",props:{buttonText:{default:"Ga terug"},iconClasses:{default:""},to:{default:void 0}},setup(e){const t=e,n=ei.useRouter();async function a(){return t.to?n.push(t.to):n.back()}return(o,i)=>(r.openBlock(),r.createElementBlock("div",{class:"inline-block cursor-pointer",onClick:a},[r.createElementVNode("div",Qx,[r.createElementVNode("div",{class:r.normalizeClass([o.iconClasses,"mr-4 flex items-center justify-center rounded-full bg-white p-2 drop-shadow-xs transition-transform group-hover:-translate-x-2"])},[r.createVNode(r.unref(wm),{class:"h-4 stroke-3 text-black","data-test-icon":""})],2),r.renderSlot(o.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(o.buttonText),1)])])]))}}),eE={plain:[],default:["bg-zinc-200","text-zinc-600"],success:["bg-green-200","text-green-600"],warning:["bg-yellow-200","text-yellow-600"],error:["bg-red-200","text-red-600"],info:["bg-sky-200","text-sky-600"],inactive:["bg-orange-200","text-orange-500"],counter:["bg-red-600","text-white"]},tE={small:["px-2 py-1 text-xs"],medium:["px-3 py-[3px] text-sm min-h-7"],large:["px-3 py-2.5 text-sm"]},nE={plain:[],default:["bg-zinc-600!"],success:["bg-green-600!"],warning:["bg-yellow-600!"],error:["bg-error!"],info:["bg-sky-600!"],inactive:["bg-orange-600!"],counter:["bg-red-600!"]},rE={key:0,class:"app-badge__icon mr-2 h-4"},aE={key:1,class:"app-badge__icon ml-2 h-4"},oE=r.defineComponent({__name:"AppBadge",props:{type:{default:"default"},rounded:{type:Boolean,default:!1},size:{default:"medium"},leadingIcon:{default:void 0},trailingIcon:{default:void 0}},setup(e){const t=e,n=r.computed(()=>({"rounded-full text-white!":t.rounded,"rounded-lg":!t.rounded}));return(a,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([[...r.unref(eE)[a.type],...r.unref(tE)[a.size],...t.rounded?r.unref(nE)[a.type]:[],n.value],"app-badge inline-flex items-center font-semibold"])},[a.$slots.leadingIcon||a.leadingIcon?(r.openBlock(),r.createElementBlock("span",rE,[r.renderSlot(a.$slots,"leadingIcon",{},()=>[a.leadingIcon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(a.leadingIcon),{key:0})):r.createCommentVNode("",!0)],!0)])):r.createCommentVNode("",!0),r.renderSlot(a.$slots,"default",{},void 0,!0),a.$slots.trailingIcon||a.trailingIcon?(r.openBlock(),r.createElementBlock("span",aE,[r.renderSlot(a.$slots,"trailingIcon",{},()=>[a.trailingIcon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(a.trailingIcon),{key:0})):r.createCommentVNode("",!0)],!0)])):r.createCommentVNode("",!0)],2))}}),sc=Dn(oE,[["__scopeId","data-v-0c9153c3"]]),iE={"extra-small":["h-4","w-4"],small:["h-5","w-5"],medium:["h-7","w-7"],large:["h-10","w-10"]},Na=r.defineComponent({__name:"AppLoader",props:{size:{default:"medium"}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass([r.unref(iE)[t.size],"animate-spin"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none"},n[0]||(n[0]=[r.createElementVNode("circle",{stroke:"currentColor",class:"opacity-25","stroke-width":"4",cx:"12",cy:"12",r:"10"},null,-1),r.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962
604
- 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`},null,-1)]),2))}}),sE={class:"app-button__icon h-4"},lE=r.defineComponent({__name:"ButtonIconSlot",props:{loading:{type:Boolean}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("span",sE,[t.loading?(r.openBlock(),r.createBlock(Na,{key:0,class:"w-4"})):r.renderSlot(t.$slots,"default",{key:1},void 0,!0)]))}}),Iv=Dn(lE,[["__scopeId","data-v-e328ef39"]]),cE={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"]},uE={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"]},dE={small:["px-5","py-1.5"],medium:["px-5","py-2.5","h-[42px]"],large:["px-5","py-3.5"]},or=r.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"},round:{type:Boolean,default:!1}},setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.as),{type:t.type,disabled:t.disabled||t.loading,class:r.normalizeClass([[...t.bordered?[]:r.unref(cE)[t.colorType],...t.bordered?r.unref(uE)[t.colorType]:[],...r.unref(dE)[t.size],...t.block?["w-full","justify-center"]:[],...t.round?["rounded-full","justify-center"]:["rounded-lg"]],"app-button inline-flex cursor-pointer items-center whitespace-nowrap border text-base font-semibold transition-colors focus:outline-hidden disabled:cursor-not-allowed disabled:select-none disabled:opacity-50"])},{default:r.withCtx(()=>[t.$slots.leadingIcon||t.loading?(r.openBlock(),r.createBlock(Iv,{key:0,loading:t.loading,class:"mr-3","data-test-leading-icon":""},{default:r.withCtx(()=>[r.renderSlot(t.$slots,"leadingIcon")]),_:3},8,["loading"])):r.createCommentVNode("",!0),r.renderSlot(t.$slots,"default"),t.$slots.trailingIcon?(r.openBlock(),r.createBlock(Iv,{key:1,class:"ml-3","data-test-trailing-icon":""},{default:r.withCtx(()=>[r.renderSlot(t.$slots,"trailingIcon")]),_:3})):r.createCommentVNode("",!0)]),_:3},8,["type","disabled","class"]))}}),fE={default:["text-white"],danger:["text-red-500"]},pE={ref:"dropdownItem"},mE=r.defineComponent({__name:"AppDropdownItem",props:{label:{},name:{},disabled:{type:Boolean},to:{},icon:{},iconClasses:{},onClick:{},confirm:{type:Boolean,default:!1},type:{default:"default"}},setup(e){const t=e,n=r.useTemplateRef("dropdownItem"),a=r.ref(!1),o=r.computed(()=>t.confirm&&a.value?Ap:t.icon),i=r.computed(()=>t.to?ei.RouterLink:"div"),s=r.computed(()=>t.type??"default");function l(c){if(t.confirm&&!a.value||t.disabled){c.preventDefault(),a.value=!0;return}a.value=!1,t.onClick?.()}return Zt.onClickOutside(n,()=>{a.value=!1}),(c,u)=>(r.openBlock(),r.createElementBlock("div",pE,[r.createVNode(r.unref(nt.MenuItem),null,{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.value),{to:c.to,class:r.normalizeClass([[...r.unref(fE)[s.value],{"cursor-not-allowed!":c.disabled}],"flex h-10 cursor-pointer items-center rounded-lg px-2.5 py-4 text-base hover:bg-zinc-600"]),"data-test-dropdown-item":"",onClick:l},{default:r.withCtx(()=>[r.renderSlot(c.$slots,"default",{},()=>[o.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(o.value),{key:0,class:r.normalizeClass([c.iconClasses,"mr-2 size-4"]),"data-test-icon":""},null,8,["class"])):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(c.label),1)])]),_:3},8,["to","class"]))]),_:3})],512))}}),hE={class:"relative inline-block text-left"},vE=r.defineComponent({__name:"AppDropdownButton",props:{dropdownItems:{},horizontalAlign:{default:"left"},openDirection:{default:"down"},buttonClasses:{},teleport:{type:Boolean,default:!1},size:{},type:{},colorType:{},disabled:{type:Boolean},loading:{type:Boolean},bordered:{type:Boolean},block:{type:Boolean},as:{},round:{type:Boolean}},setup(e,{expose:t}){const n=e,a=r.ref(),o=r.ref(),i=r.ref(!1);if(n.teleport){const{isActive:s}=Hs(a,o);r.watch(s,l=>{i.value=l})}return t({isActive:i}),(s,l)=>(r.openBlock(),r.createElementBlock("div",hE,[r.createVNode(r.unref(nt.Menu),null,{default:r.withCtx(()=>[r.createVNode(r.unref(nt.MenuButton),{ref_key:"button",ref:a},{default:r.withCtx(()=>[r.createVNode(r.unref(or),r.normalizeProps(r.guardReactiveProps({...s.$props,class:s.buttonClasses})),{trailingIcon:r.withCtx(()=>[r.renderSlot(s.$slots,"trailingIcon",{},()=>[r.createVNode(r.unref(Xb))])]),default:r.withCtx(()=>[r.renderSlot(s.$slots,"default")]),_:3},16)]),_:3},512),(r.openBlock(),r.createBlock(r.Teleport,{disabled:!s.teleport,to:"body"},[r.createVNode(r.unref(nt.MenuItems),{ref_key:"dropdown",ref:o,unmount:!1,class:r.normalizeClass([{"right-0 origin-top-right":s.horizontalAlign==="right","left-0 origin-top-left":s.horizontalAlign==="left","bottom-full mb-2":s.openDirection==="up"},"absolute z-10 mt-4 w-48 rounded-lg bg-secondary p-2 drop-shadow-card focus:outline-hidden"]),role:"menu","aria-orientation":"vertical","aria-labelledby":"menu-button",tabindex:"-1"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.dropdownItems,c=>(r.openBlock(),r.createBlock(mE,r.mergeProps({key:c.label,ref_for:!0},c),{default:r.withCtx(()=>[r.renderSlot(s.$slots,`item-${c.name}`,{item:c})]),_:2},1040))),128))]),_:3},8,["class"])],8,["disabled"]))]),_:3})]))}}),gE=["aria-disabled"],yE=["value","disabled"],ty=r.defineComponent({__name:"AppColor",props:r.mergeModels({modelValue:{},disabled:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=r.useModel(e,"modelValue"),a=r.ref(null),o={red:0,green:0,blue:0},i=r.computed(()=>{if(t.modelValue){const c=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(t.modelValue);return c?{red:parseInt(c[1],16),green:parseInt(c[2],16),blue:parseInt(c[3],16)}:o}return o}),s=r.computed(()=>{const{red:c,green:u,blue:d}=i.value,f=150,p=.299*(c*c),m=.587*(u*u),v=.114*(d*d);return Math.sqrt(p+m+v)<f});function l(c){n.value=c.target.value}return(c,u)=>(r.openBlock(),r.createElementBlock("label",{"aria-disabled":c.disabled,class:"group relative block size-10 cursor-pointer aria-disabled:cursor-not-allowed"},[r.createElementVNode("input",{ref_key:"colorInput",ref:a,value:n.value,disabled:c.disabled,type:"color",class:"relative size-full cursor-pointer appearance-none rounded-lg border-none p-0 group-aria-disabled:cursor-not-allowed",onInput:l},null,40,yE),r.createVNode(r.unref(c$),{class:r.normalizeClass([{"text-white":s.value,"text-black":!s.value},"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"])},null,8,["class"])],8,gE))}}),bE={class:"flex items-center justify-between space-x-2"},wE={"data-test-title":""},kE={key:0,"data-test-default-slot":""},_E=r.defineComponent({__name:"AppColorCard",props:r.mergeModels({title:{},disabled:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=r.useModel(e,"modelValue"),n=r.useSlots();return(a,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([a.disabled?"bg-zinc-50":"bg-white","rounded-xl p-2 pl-4 shadow-[0px_2px_4px_0px_rgba(32,32,32,0.08)]"])},[r.createElementVNode("div",bE,[r.createElementVNode("span",wE,[r.renderSlot(a.$slots,"title",{},()=>[r.createTextVNode(r.toDisplayString(a.title),1)])]),r.createVNode(r.unref(ty),{ref:a.title,modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=i=>t.value=i),disabled:a.disabled},null,8,["modelValue","disabled"])]),r.unref(n).default?r.withDirectives((r.openBlock(),r.createElementBlock("div",kE,[r.renderSlot(a.$slots,"default")],512)),[[r.vShow,t.value]]):r.createCommentVNode("",!0)],2))}}),SE={key:0,class:"app-card__icon float-right text-primary"},CE=r.defineComponent({__name:"CardIconSlot",props:{icon:{}},setup(e){const t=e,n=r.computed(()=>typeof t.icon=="string"?!1:typeof t.icon?.prefix=="string"),a=r.computed(()=>typeof t.icon=="object"&&t.icon?.props?.icon!==void 0),o=r.computed(()=>n.value?r.h(yn,{icon:t.icon}):t.icon),i=r.computed(()=>n.value?o.value:typeof t.icon=="string"?"span":t.icon);return(s,l)=>s.$slots.default||s.icon?(r.openBlock(),r.createElementBlock("div",SE,[r.renderSlot(s.$slots,"default",{},()=>[o.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.value),{key:0,class:r.normalizeClass({"size-5":!n.value,"size-4":n.value}),"data-test-icon-component":"",innerHTML:n.value||a.value?void 0:o.value},null,8,["class","innerHTML"])):r.createCommentVNode("",!0)],!0)])):r.createCommentVNode("",!0)}}),xE=Dn(CE,[["__scopeId","data-v-f4c15a3c"]]),EE={1:"stroke-1",2:"stroke-2",3:"stroke-3"},TE=r.defineComponent({__name:"CardAction",props:{item:{}},setup(e){const t=e,{navigationComponent:n}=ko(),a=r.ref(!1),o=r.computed(()=>typeof t.item.icon=="string"?!1:typeof t.item.icon?.prefix=="string"||Array.isArray(t.item.icon)),i=r.computed(()=>a.value?Na:o.value?r.h(yn,{icon:t.item.icon}):t.item.icon),s=r.computed(()=>a.value||typeof t.item.icon!="string"),l=r.computed(()=>[s.value?"":"h-6!",EE[t.item.iconStroke??3]]),c=r.computed(()=>typeof t.item.icon=="object"&&t.item.icon?.props?.icon!==void 0),u=r.computed(()=>o.value?i.value:typeof t.item.icon=="string"?"span":t.item.icon);async function d(f){t.item?.onClick&&(f.preventDefault(),a.value=!0,await Promise.resolve(t.item?.onClick?.()),a.value=!1)}return(f,p)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(n)),{to:f.item.to,href:f.item.href,class:r.normalizeClass([{"flex-row-reverse":f.item?.iconPosition==="right"},"app-card__action ml-auto flex items-center justify-center font-bold text-zinc-900 transition-colors group-hover:text-primary"]),onClick:d},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(u.value),{class:r.normalizeClass([l.value,"size-4"]),size:a.value?"extra-small":void 0,"data-test-icon":"",innerHTML:o.value||c.value?void 0:i.value},null,8,["class","size","innerHTML"])),r.createElementVNode("span",{class:r.normalizeClass([{"pl-2":f.item.icon&&f.item?.iconPosition!=="right","pr-2":f.item.icon&&f.item?.iconPosition==="right"},"text-sm"]),"data-test-name":""},r.toDisplayString(f.item.name),3)]),_:1},8,["to","href","class"]))}}),PE={key:2,class:"text-2xl font-bold text-zinc-900","data-test-title":""},AE={class:"text-base font-normal text-zinc-600","data-test-description":""},Mp=r.defineComponent({__name:"AppCard",props:{title:{default:void 0},description:{default:void 0},actions:{default:void 0},icon:{default:void 0},bordered:{type:Boolean,default:!1},contentClasses:{default:void 0},hoverTransition:{type:Boolean,default:!1}},setup(e){const t=e,n=r.useSlots(),a=r.computed(()=>!!n.avatar),o=r.computed(()=>!!n.title||!!t.title),i=r.computed(()=>!!n.icon||!!t.icon),s=r.computed(()=>`${t.contentClasses} ${o.value?"mt-4":void 0}`);return(l,c)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"before:hidden":!l.bordered,"cursor-pointer transition hover:drop-shadow-cardhighlight":l.actions&&l.actions.length>0||l.hoverTransition},"group relative w-full overflow-hidden rounded-2xl bg-white px-6 py-5 text-zinc-600 drop-shadow-card before:absolute before:left-0 before:top-0 before:h-full before:w-1.5 before:bg-primary"])},[i.value?(r.openBlock(),r.createBlock(xE,{key:0,icon:l.icon,class:r.normalizeClass({"mt-1.5":o.value}),"data-test-icon":""},{default:r.withCtx(()=>[r.renderSlot(l.$slots,"icon")]),_:3},8,["icon","class"])):r.createCommentVNode("",!0),a.value?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass([{"mr-3":i.value},"float-right"]),"data-test-avatar":""},[r.renderSlot(l.$slots,"avatar")],2)):r.createCommentVNode("",!0),o.value?(r.openBlock(),r.createElementBlock("h3",PE,[r.renderSlot(l.$slots,"title",{},()=>[r.createTextVNode(r.toDisplayString(l.title),1)]),r.renderSlot(l.$slots,"description",{},()=>[r.createElementVNode("p",AE,r.toDisplayString(l.description),1)])])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(s.value),"data-test-content":""},[r.renderSlot(l.$slots,"default")],2),r.renderSlot(l.$slots,"actions",{},()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.actions,u=>(r.openBlock(),r.createElementBlock("div",{key:u.name,class:"mt-2 flex w-full"},[r.createVNode(TE,{item:u},null,8,["item"])]))),128))])],2))}}),IE={class:"flex min-h-screen px-4 pb-20 pt-4 text-center md:items-center md:justify-center"},ME={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"},NE={class:"rounded-2xl bg-zinc-100 drop-shadow-card"},OE={class:"flex flex-col items-center space-y-5 p-8"},BE={key:0,class:"mx-auto flex size-12 shrink-0 items-center justify-center rounded-full"},LE={class:"mt-3"},DE={class:"mt-3 w-full text-base text-zinc-700","data-test-confirm-content":""},RE=["innerHTML"],$E={key:1},zE={class:"ml-auto flex flex-row-reverse items-center gap-8 rounded-b-2xl bg-white p-8"},ny=r.defineComponent({__name:"AppConfirm",props:{title:{default:""},type:{default:"default"},content:{default:""},confirmButtonText:{default:""},confirmButtonTrailingIcon:{},confirmButtonLeadingIcon:{},cancelButtonText:{default:""},cancelButtonTrailingIcon:{},cancelButtonLeadingIcon:{},withBackdrop:{type:Boolean,default:!0},preventBackdropClose:{type:Boolean,default:!0},icon:{default:void 0},html:{type:Boolean,default:!1},animate:{type:Boolean,default:!0},extendedIconDomClasses:{default:""},onConfirm:{},onCancel:{}},emits:["close","confirmed"],setup(e,{emit:t}){const n=e,a=t,o=r.ref(!0),i=r.ref(!1),s=r.ref(!1),{expanded:l}=ko(),c=r.computed(()=>!n.icon&&n.type==="error"?Ip:!n.icon&&n.type==="success"?Pp:n.icon),u=r.computed(()=>n.animate?nt.TransitionRoot:"div"),d=r.computed(()=>n.animate?nt.TransitionChild:"div"),f=r.computed(()=>[n.type==="error"?"text-red-500":"text-green-500",n.extendedIconDomClasses]);async function p(m){m&&typeof n.onConfirm=="function"?(i.value=!0,await Promise.resolve(n.onConfirm())):!m&&typeof n.onCancel=="function"&&(s.value=!0,await Promise.resolve(n.onCancel())),o.value=!1,a("close",m)}return(m,v)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(u.value),{show:o.value,as:"template"},{default:r.withCtx(()=>[r.createVNode(r.unref(nt.Dialog),{open:m.animate?void 0:o.value,class:r.normalizeClass([{"md:left-72!":r.unref(l)},"app-confirm-dialog fixed inset-0 top-16 z-50 overflow-y-auto transition-all duration-500 md:left-20 md:top-0"]),as:"div","data-test-confirm-dialog":"",onClose:v[2]||(v[2]=()=>m.preventBackdropClose?void 0:p(!1))},{default:r.withCtx(()=>[r.createElementVNode("div",IE,[m.withBackdrop?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(d.value),{key:0,as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:r.withCtx(()=>[r.createVNode(r.unref(nt.DialogOverlay),{class:r.normalizeClass([{"md:left-72!":r.unref(l)},"app-confirm-dialog-overlay fixed inset-0 top-16 z-40 rounded-l-2xl bg-zinc-800/50 transition-all duration-500 md:left-20 md:top-0"])},null,8,["class"])]),_:1})):r.createCommentVNode("",!0),v[3]||(v[3]=r.createElementVNode("span",{class:"hidden md:inline-block md:h-screen md:align-middle","aria-hidden":"true"}," ​ ",-1)),(r.openBlock(),r.createBlock(r.resolveDynamicComponent(d.value),{as:"template",enter:"ease-in-out duration-300","enter-from":"opacity-0 translate-y-4 md:translate-y-0 md:scale-95","enter-to":"opacity-100 translate-y-0 md:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 md:scale-100","leave-to":"opacity-0 translate-y-4 md:translate-y-0 md:scale-95"},{default:r.withCtx(()=>[r.createElementVNode("div",ME,[r.createElementVNode("div",NE,[r.createElementVNode("div",OE,[c.value?(r.openBlock(),r.createElementBlock("div",BE,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(c.value),{class:r.normalizeClass([f.value,"size-full"]),"data-test-confirm-icon":""},null,8,["class"]))])):r.createCommentVNode("",!0),r.createElementVNode("div",LE,[r.createVNode(r.unref(nt.DialogTitle),{as:"h3",class:"text-2xl font-bold leading-6 text-zinc-900"},{default:r.withCtx(()=>[r.renderSlot(m.$slots,"title",{},()=>[r.createTextVNode(r.toDisplayString(m.title),1)])]),_:3}),r.createElementVNode("div",DE,[r.renderSlot(m.$slots,"default",{},()=>[m.html?(r.openBlock(),r.createElementBlock("div",{key:0,class:"app-confirm-html-content",innerHTML:m.content},null,8,RE)):(r.openBlock(),r.createElementBlock("p",$E,r.toDisplayString(m.content),1))])])])]),r.createElementVNode("div",zE,[m.confirmButtonText?(r.openBlock(),r.createBlock(r.unref(or),{key:0,disabled:i.value||s.value,loading:i.value,type:"button","color-type":"primary",class:"justify-center",onClick:v[0]||(v[0]=()=>p(!0))},r.createSlots({default:r.withCtx(()=>[r.createTextVNode(" "+r.toDisplayString(m.confirmButtonText),1)]),_:2},[m.confirmButtonTrailingIcon?{name:"trailingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(m.confirmButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,m.confirmButtonLeadingIcon?{name:"leadingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(m.confirmButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):r.createCommentVNode("",!0),m.cancelButtonText?(r.openBlock(),r.createBlock(r.unref(or),{key:1,disabled:i.value||s.value,loading:s.value,"color-type":"plain",class:"justify-center text-zinc-900",onClick:v[1]||(v[1]=()=>p(!1))},r.createSlots({default:r.withCtx(()=>[r.createTextVNode(" "+r.toDisplayString(m.cancelButtonText),1)]),_:2},[m.cancelButtonTrailingIcon?{name:"trailingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(m.cancelButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,m.cancelButtonLeadingIcon?{name:"leadingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(m.cancelButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):r.createCommentVNode("",!0)])])])]),_:3}))])]),_:3},8,["open","class"])]),_:3},8,["show"]))}}),VE={class:"flex min-h-screen px-4 pb-20 pt-4 text-center md:items-center md:justify-center"},FE={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"},jE={class:"rounded-2xl bg-white p-10 drop-shadow-card"},HE={class:"flex flex-col items-center space-y-5"},UE={key:0,class:"mx-auto flex size-12 shrink-0 items-center justify-center rounded-full"},WE={class:"mt-3 text-center"},qE={class:"mt-3 w-full px-10 text-center text-sm text-zinc-600","data-test-error-content":""},YE=["innerHTML"],GE={key:1},KE={class:"mx-auto flex w-fit flex-col space-y-4 pt-10"},ry=r.defineComponent({__name:"AppError",props:{title:{default:""},type:{default:"default"},content:{default:""},confirmButtonText:{default:""},confirmButtonTrailingIcon:{},confirmButtonLeadingIcon:{},cancelButtonText:{default:""},cancelButtonTrailingIcon:{},cancelButtonLeadingIcon:{},withBackdrop:{type:Boolean,default:!0},preventBackdropClose:{type:Boolean,default:!0},icon:{default:void 0},html:{type:Boolean,default:!1},extendedIconDomClasses:{default:""},onConfirm:{},onCancel:{}},emits:["close","confirmed"],setup(e,{emit:t}){const n=e,a=t,o=r.ref(!0),i=r.ref(!1),s=r.ref(!1),l=r.computed(()=>!n.icon&&n.type==="error"?Ip:!n.icon&&n.type==="success"?Pp:n.icon),c=r.computed(()=>[n.type==="error"?"text-red-500":"text-green-500",n.extendedIconDomClasses]);async function u(d){d&&typeof n.onConfirm=="function"?(i.value=!0,await Promise.resolve(n.onConfirm())):!d&&typeof n.onCancel=="function"&&(s.value=!0,await Promise.resolve(n.onCancel())),o.value=!1,a("close",d)}return(d,f)=>(r.openBlock(),r.createBlock(r.unref(nt.TransitionRoot),{show:o.value,as:"template"},{default:r.withCtx(()=>[r.createVNode(r.unref(nt.Dialog),{as:"div",class:"app-error-dialog fixed inset-0 top-16 z-50 overflow-y-auto md:left-20 md:top-0","data-test-error-dialog":"",onClose:f[2]||(f[2]=()=>d.preventBackdropClose?void 0:u(!1))},{default:r.withCtx(()=>[r.createElementVNode("div",VE,[d.withBackdrop?(r.openBlock(),r.createBlock(r.unref(nt.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:r.withCtx(()=>[r.createVNode(r.unref(nt.DialogOverlay),{class:"app-error-dialog-overlay fixed inset-0 top-16 z-40 rounded-l-2xl bg-zinc-100 transition-opacity md:left-20 md:top-0"})]),_:1})):r.createCommentVNode("",!0),f[3]||(f[3]=r.createElementVNode("span",{class:"hidden md:inline-block md:h-screen md:align-middle","aria-hidden":"true"}," ​ ",-1)),r.createVNode(r.unref(nt.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:r.withCtx(()=>[r.createElementVNode("div",FE,[r.createElementVNode("div",jE,[r.createElementVNode("div",HE,[l.value?(r.openBlock(),r.createElementBlock("div",UE,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l.value),{class:r.normalizeClass([c.value,"size-full"]),"data-test-error-icon":""},null,8,["class"]))])):r.createCommentVNode("",!0),r.createElementVNode("div",WE,[r.createVNode(r.unref(nt.DialogTitle),{as:"h3",class:"text-2xl font-bold leading-6 text-zinc-900"},{default:r.withCtx(()=>[r.renderSlot(d.$slots,"title",{},()=>[r.createTextVNode(r.toDisplayString(d.title),1)])]),_:3}),r.createElementVNode("div",qE,[r.renderSlot(d.$slots,"default",{},()=>[d.html?(r.openBlock(),r.createElementBlock("div",{key:0,class:"app-error-html-content",innerHTML:d.content},null,8,YE)):(r.openBlock(),r.createElementBlock("p",GE,r.toDisplayString(d.content),1))])])])]),r.createElementVNode("div",KE,[d.confirmButtonText?(r.openBlock(),r.createBlock(r.unref(or),{key:0,bordered:!0,disabled:i.value||s.value,loading:i.value,type:"button","color-type":"primary",class:"justify-center",onClick:f[0]||(f[0]=()=>u(!0))},r.createSlots({default:r.withCtx(()=>[r.createTextVNode(" "+r.toDisplayString(d.confirmButtonText),1)]),_:2},[d.confirmButtonTrailingIcon?{name:"trailingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(d.confirmButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,d.confirmButtonLeadingIcon?{name:"leadingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(d.confirmButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):r.createCommentVNode("",!0),d.cancelButtonText?(r.openBlock(),r.createBlock(r.unref(or),{key:1,disabled:i.value||s.value,loading:s.value,"color-type":"plain",class:"justify-center",onClick:f[1]||(f[1]=()=>u(!1))},r.createSlots({default:r.withCtx(()=>[r.createTextVNode(" "+r.toDisplayString(d.cancelButtonText),1)]),_:2},[d.cancelButtonTrailingIcon?{name:"trailingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(d.cancelButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,d.cancelButtonLeadingIcon?{name:"leadingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(d.cancelButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):r.createCommentVNode("",!0)])])])]),_:3})])]),_:3})]),_:3},8,["show"]))}});function df(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function XE(e){if(Array.isArray(e))return df(e)}function sn(e,t,n){return(t=n7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
605
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,a)}return n}function Jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mv(Object(n),!0).forEach(function(a){sn(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mv(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function ZE(e,t){if(e==null)return{};var n,a,o=e7(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function e7(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}function ff(e){return XE(e)||JE(e)||r7(e)||QE()}function t7(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function n7(e){var t=t7(e,"string");return typeof t=="symbol"?t:t+""}function lc(e){"@babel/helpers - typeof";return lc=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},lc(e)}function r7(e,t){if(e){if(typeof e=="string")return df(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?df(e,t):void 0}}function ns(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?sn({},e,t):{}}function a7(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},sn(sn(sn(sn(sn(sn(sn(sn(sn(sn(t,"fa-".concat(e.size),e.size!==null),"fa-rotate-".concat(e.rotation),e.rotation!==null),"fa-rotate-by",e.rotateBy),"fa-pull-".concat(e.pull),e.pull!==null),"fa-swap-opacity",e.swapOpacity),"fa-bounce",e.bounce),"fa-shake",e.shake),"fa-beat",e.beat),"fa-fade",e.fade),"fa-beat-fade",e.beatFade),sn(sn(sn(sn(t,"fa-flash",e.flash),"fa-spin-pulse",e.spinPulse),"fa-spin-reverse",e.spinReverse),"fa-width-auto",e.widthAuto));return Object.keys(n).map(function(a){return n[a]?a:null}).filter(function(a){return a})}var o7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ay={exports:{}};(function(e){(function(t){var n=function(b,E,_){if(!u(E)||f(E)||p(E)||m(E)||c(E))return E;var g,x=0,C=0;if(d(E))for(g=[],C=E.length;x<C;x++)g.push(n(b,E[x],_));else{g={};for(var P in E)Object.prototype.hasOwnProperty.call(E,P)&&(g[b(P,_)]=n(b,E[P],_))}return g},a=function(b,E){E=E||{};var _=E.separator||"_",g=E.split||/(?=[A-Z])/;return b.split(g).join(_)},o=function(b){return v(b)?b:(b=b.replace(/[\-_\s]+(.)?/g,function(E,_){return _?_.toUpperCase():""}),b.substr(0,1).toLowerCase()+b.substr(1))},i=function(b){var E=o(b);return E.substr(0,1).toUpperCase()+E.substr(1)},s=function(b,E){return a(b,E).toLowerCase()},l=Object.prototype.toString,c=function(b){return typeof b=="function"},u=function(b){return b===Object(b)},d=function(b){return l.call(b)=="[object Array]"},f=function(b){return l.call(b)=="[object Date]"},p=function(b){return l.call(b)=="[object RegExp]"},m=function(b){return l.call(b)=="[object Boolean]"},v=function(b){return b=b-0,b===b},y=function(b,E){var _=E&&"process"in E?E.process:E;return typeof _!="function"?b:function(g,x){return _(g,b,x)}},w={camelize:o,decamelize:s,pascalize:i,depascalize:s,camelizeKeys:function(b,E){return n(y(o,E),b)},decamelizeKeys:function(b,E){return n(y(s,E),b,E)},pascalizeKeys:function(b,E){return n(y(i,E),b)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=w:t.humps=w})(o7)})(ay);var i7=ay.exports,s7=["class","style"];function l7(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var a=n.indexOf(":"),o=i7.camelize(n.slice(0,a)),i=n.slice(a+1).trim();return t[o]=i,t},{})}function c7(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function Np(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var a=(e.children||[]).map(function(c){return Np(c)}),o=Object.keys(e.attributes||{}).reduce(function(c,u){var d=e.attributes[u];switch(u){case"class":c.class=c7(d);break;case"style":c.style=l7(d);break;default:c.attrs[u]=d}return c},{attrs:{},class:{},style:{}});n.class;var i=n.style,s=i===void 0?{}:i,l=ZE(n,s7);return r.h(e.tag,Jn(Jn(Jn({},t),{},{class:o.class,style:Jn(Jn({},o.style),s)},o.attrs),l),a)}var oy=!1;try{oy=process.env.NODE_ENV==="production"}catch{}function u7(){if(!oy&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Nv(e){if(e&&lc(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(ic.icon)return ic.icon(e);if(e===null)return null;if(lc(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var yn=r.defineComponent({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},rotateBy:{type:Boolean,default:!1},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1},widthAuto:{type:Boolean,default:!1}},setup:function(t,n){var a=n.attrs,o=r.computed(function(){return Nv(t.icon)}),i=r.computed(function(){return ns("classes",a7(t))}),s=r.computed(function(){return ns("transform",typeof t.transform=="string"?ic.transform(t.transform):t.transform)}),l=r.computed(function(){return ns("mask",Nv(t.mask))}),c=r.computed(function(){var d=Jn(Jn(Jn(Jn({},i.value),s.value),l.value),{},{symbol:t.symbol,maskId:t.maskId});return d.title=t.title,d.titleId=t.titleId,wx(o.value,d)});r.watch(c,function(d){if(!d)return u7("Could not find one or more icon(s)",o.value,l.value)},{immediate:!0});var u=r.computed(function(){return c.value?Np(c.value.abstract[0],{},a):null});return function(){return u.value}}});r.defineComponent({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(t,n){var a=n.slots,o=J2.familyPrefix,i=r.computed(function(){return["".concat(o,"-layers")].concat(ff(t.fixedWidth?["".concat(o,"-fw")]:[]))});return function(){return r.h("div",{class:i.value},a.default?a.default():[])}}});r.defineComponent({name:"FontAwesomeLayersText",props:{value:{type:[String,Number],default:""},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(t){return["bottom-left","bottom-right","top-left","top-right"].indexOf(t)>-1}}},setup:function(t,n){var a=n.attrs,o=J2.familyPrefix,i=r.computed(function(){return ns("classes",[].concat(ff(t.counter?["".concat(o,"-layers-counter")]:[]),ff(t.position?["".concat(o,"-layers-").concat(t.position)]:[])))}),s=r.computed(function(){return ns("transform",typeof t.transform=="string"?ic.transform(t.transform):t.transform)}),l=r.computed(function(){var u=kx(t.value.toString(),Jn(Jn({},s.value),i.value)),d=u.abstract;return t.counter&&(d[0].attributes.class=d[0].attributes.class.replace("fa-layers-text","")),d[0]}),c=r.computed(function(){return Np(l.value,{},a)});return function(){return c.value}}});const d7=["disabled","accept","name"],f7={key:0,class:"flex flex-col items-center px-6 py-10 text-white"},p7={class:"mb-2 mt-4 text-xl font-bold"},m7={class:"text-sm"},h7=["src"],v7=r.defineComponent({__name:"AppImageDropzone",props:{title:{default:"Drag & drop"},description:{default:"of selecteer een afbeelding van je computer (jpg, jpeg of png)."},disabled:{type:Boolean,default:!1},existingFileUrl:{},dataTypes:{default:()=>["image/png","image/gif","image/jpeg"]},name:{default:""}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,o=r.ref(null),i=r.ref(null),s=r.ref(),l=r.ref(),{isOverDropZone:c}=Zt.useDropZone(l,{onDrop:u,dataTypes:n.dataTypes});r.watch(o,m=>{a("update:modelValue",m)}),r.onMounted(()=>{n.existingFileUrl&&(i.value=n.existingFileUrl,o.value=new File([],n.existingFileUrl.split("/").pop()??""))});function u(m){if(m&&!n.disabled){const v=m[0];o.value=v,i.value=URL.createObjectURL(v)}}function d(m){const y=m.target.files?.[0];y&&n.dataTypes.includes(y.type)&&(o.value=y,i.value=URL.createObjectURL(y))}function f(){o.value=null,i.value=null,s.value.value=""}function p(){s.value?.click()}return(m,v)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"dropZoneRef",ref:l,class:r.normalizeClass([{"cursor-pointer":!m.disabled,"cursor-not-allowed":m.disabled,"bg-zinc-700":r.unref(c)},"group relative flex size-60 items-center justify-center rounded-2xl bg-secondary text-center drop-shadow-card"]),onClick:p},[r.createElementVNode("input",{ref_key:"fileInput",ref:s,disabled:m.disabled,accept:m.dataTypes.join(", "),name:m.name,type:"file",class:"hidden",onChange:d},null,40,d7),o.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",f7,[r.createVNode(r.unref(yn),{icon:r.unref(bn).far?.["arrow-up-to-line"],class:"size-10"},null,8,["icon"]),r.createElementVNode("h3",p7,r.toDisplayString(m.title),1),r.createElementVNode("p",m7,r.toDisplayString(m.description),1)])),i.value?(r.openBlock(),r.createElementBlock("img",{key:1,src:i.value,alt:"Preview",class:"size-full rounded-2xl object-cover"},null,8,h7)):r.createCommentVNode("",!0),o.value&&!m.disabled?(r.openBlock(),r.createElementBlock("span",{key:2,class:"absolute inset-0 hidden size-full flex-col items-center justify-center rounded-2xl bg-secondary p-1 text-white group-hover:flex",onClick:r.withModifiers(f,["stop"])},[r.createVNode(r.unref(yn),{icon:r.unref(bn).far?.trash,class:"size-10"},null,8,["icon"]),v[0]||(v[0]=r.createElementVNode("h3",{class:"mb-2 mt-4 text-xl font-bold"}," Verwijderen ",-1)),v[1]||(v[1]=r.createElementVNode("p",{class:"text-sm"}," Klik hier om de afbeelding te verwijderen ",-1))])):r.createCommentVNode("",!0)],2))}}),g7={class:"flex min-h-screen items-center justify-center text-center"},y7={class:"rounded-2xl bg-zinc-100 drop-shadow-card"},b7={class:"flex flex-col items-center space-y-5"},w7={class:"w-full text-center"},k7={key:0,class:"w-full rounded-b-xl bg-white p-8"},_7={class:"ml-auto flex w-fit flex-row-reverse items-center"},iy=r.defineComponent({__name:"AppModal",props:{title:{default:""},submitButtonText:{default:"Opslaan"},submitButtonTrailingIcon:{},submitButtonLeadingIcon:{},cancelButtonText:{default:"Annuleren"},cancelButtonTrailingIcon:{},cancelButtonLeadingIcon:{},withBackdrop:{type:Boolean,default:!0},withFooter:{type:Boolean,default:!0},preventBackdropClose:{type:Boolean,default:!1},preventBackdropCloseOnLoading:{type:Boolean,default:!0},contentClasses:{default:""},modalClasses:{default:""},content:{default:""},properties:{default:void 0},onSubmit:{},onCancel:{}},emits:["open","close","cancel","submit"],setup(e,{expose:t,emit:n}){const a=e,o=n,i=r.ref(!1),s=r.ref(),l=r.ref(!1),c=r.ref(!1),u=r.ref(),d=r.computed(()=>a.preventBackdropClose||a.preventBackdropCloseOnLoading&&(l.value||c.value));async function f(){i.value=!0,o("open")}async function p(){c.value=!0,i.value=!1,o("close",{animation:async()=>new Promise(y=>setTimeout(y,350))}),c.value=!1}async function m(){const y=await u.value?.cancel?.(),w=await a.onCancel?.();a.onCancel===void 0&&o("cancel"),!(y===!1||w===!1)&&await p()}async function v(){l.value=!0;const y=new FormData(s.value);await u.value?.submit?.(y),await a.onSubmit?.(y),l.value=!1}return t({isOpen:i,open:f,close:p,submit:v}),Zt.onKeyStroke("Escape",p,{dedupe:!0}),(y,w)=>(r.openBlock(),r.createBlock(r.unref(nt.TransitionRoot),{show:i.value,as:"template"},{default:r.withCtx(()=>[r.createVNode(r.unref(nt.Dialog),{as:"div",class:"app-modal-dialog fixed inset-0 z-250 overflow-y-auto","data-test-modal-dialog":"",onClose:w[0]||(w[0]=()=>d.value?void 0:p())},{default:r.withCtx(()=>[r.createElementVNode("div",g7,[y.withBackdrop?(r.openBlock(),r.createBlock(r.unref(nt.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:r.withCtx(()=>[r.createVNode(r.unref(nt.DialogOverlay),{class:"fixed inset-0 z-40 bg-black/20 backdrop-blur-xs transition-opacity"})]),_:1})):r.createCommentVNode("",!0),w[1]||(w[1]=r.createElementVNode("span",{class:"inline-block h-screen align-middle","aria-hidden":"true"}," ​ ",-1)),r.createVNode(r.unref(nt.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:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(`relative z-50 mx-auto inline-block w-full max-w-2xl rounded-2xl p-4
606
- text-left align-middle transition-all md:max-w-[70vw] ${y.modalClasses}`)},[r.createElementVNode("div",y7,[r.createElementVNode("div",b7,[r.createElementVNode("div",w7,[r.createVNode(r.unref(nt.DialogTitle),{as:"h3",class:"flex justify-between px-8 pt-8 text-2xl font-bold leading-6 text-zinc-900"},{default:r.withCtx(()=>[r.renderSlot(y.$slots,"title",{},()=>[r.createTextVNode(r.toDisplayString(y.title),1)]),r.createVNode(r.unref(yn),{icon:r.unref(bn).far?.xmark,class:"size-5 cursor-pointer",onClick:p},null,8,["icon"])]),_:3}),r.createElementVNode("div",{class:r.normalizeClass(`my-6 px-8 w-full text-center text-sm text-zinc-600 ${y.contentClasses}`),"data-test-modal-content":""},[r.createElementVNode("form",{ref_key:"form",ref:s},[r.renderSlot(y.$slots,"default",{},()=>[typeof y.content=="string"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(y.content),1)],64)):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(y.content),r.mergeProps({key:1,ref_key:"contentRef",ref:u},y.properties,{onClose:p,onSubmit:v,onCancel:m}),null,16))])],512)],2)])]),y.withFooter?(r.openBlock(),r.createElementBlock("div",k7,[r.createElementVNode("div",_7,[y.submitButtonText?(r.openBlock(),r.createBlock(r.unref(or),{key:0,disabled:l.value||c.value,loading:l.value,type:"button","color-type":"primary",class:"ml-6 justify-center",onClick:v},r.createSlots({default:r.withCtx(()=>[r.createTextVNode(" "+r.toDisplayString(y.submitButtonText),1)]),_:2},[y.submitButtonTrailingIcon?{name:"trailingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(y.submitButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,y.submitButtonLeadingIcon?{name:"leadingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(y.submitButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):r.createCommentVNode("",!0),y.cancelButtonText?(r.openBlock(),r.createBlock(r.unref(or),{key:1,disabled:l.value||c.value,loading:c.value,"color-type":"plain",class:"justify-center text-zinc-900!",onClick:m},r.createSlots({default:r.withCtx(()=>[r.createTextVNode(" "+r.toDisplayString(y.cancelButtonText),1)]),_:2},[y.cancelButtonTrailingIcon?{name:"trailingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(y.cancelButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,y.cancelButtonLeadingIcon?{name:"leadingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(y.cancelButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0)])],2)]),_:3})])]),_:3})]),_:3},8,["show"]))}}),sy=r.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},itemRowClasses:{default:void 0},itemCellClasses:{default:void 0}},setup(e){const t=e,n=r.useSlots(),a=r.computed(()=>!!n.title||!!t.title),o=r.computed(()=>!!n.default||!!t.description||!!t.component);return(i,s)=>o.value||!o.value&&!i.hideEmptyValues?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass([i.itemRowClasses,"flex w-full"]),"data-test-item":""},[a.value?(r.openBlock(),r.createElementBlock("dt",{key:0,class:r.normalizeClass([[i.itemCellClasses,{"w-1/2":o.value||i.component}],"font-bold text-zinc-900"]),"data-test-title":""},[r.renderSlot(i.$slots,"title",{},()=>[r.createTextVNode(r.toDisplayString(i.title),1)])],2)):r.createCommentVNode("",!0),o.value||i.component||i.$slots.default?(r.openBlock(),r.createElementBlock("dd",{key:1,class:r.normalizeClass([i.itemCellClasses,{"w-1/2":a.value}]),"data-test-description":""},[r.renderSlot(i.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(i.description),1)]),(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.component),r.mergeProps(i.componentProperties,{"data-test-component":""}),null,16))],2)):r.createCommentVNode("",!0)],2)):r.createCommentVNode("",!0)}}),S7={class:"flex flex-col gap-1.5"},C7=r.defineComponent({__name:"AppDefinitionList",props:{items:{default:void 0},hideEmptyValues:{type:Boolean,default:!1},itemRowClasses:{default:void 0},itemCellClasses:{default:void 0}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",S7,[r.renderSlot(t.$slots,"default",{},()=>[t.items?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(t.items,(a,o)=>(r.openBlock(),r.createBlock(sy,{key:o,tabindex:`1${o}`,title:a.title,description:a.description,component:a.component,"component-properties":a.componentProperties,"hide-empty-values":t.hideEmptyValues,"item-row-classes":t.itemRowClasses,"item-cell-classes":t.itemCellClasses},null,8,["tabindex","title","description","component","component-properties","hide-empty-values","item-row-classes","item-cell-classes"]))),128)):r.createCommentVNode("",!0)])]))}}),x7=r.defineComponent({__name:"AppDisclosure",props:{defaultOpen:{type:Boolean,default:!1}},setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(nt.Disclosure),{"default-open":t.defaultOpen,class:"border-b border-zinc-200 last:border-0",as:"div"},{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},8,["default-open"]))}}),E7={class:"ml-auto pl-2"},T7=r.defineComponent({__name:"AppDisclosureButton",setup(e){const t=r.ref(null);function n(){t.value?.$el.dataset.headlessuiState==="open"&&t.value?.$el.blur()}return(a,o)=>(r.openBlock(),r.createBlock(r.unref(nt.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:r.withCtx(({open:i})=>[r.createElementVNode("span",{class:r.normalizeClass([{"font-bold":i},"text-left"])},[r.renderSlot(a.$slots,"default")],2),r.createElementVNode("span",E7,[r.renderSlot(a.$slots,"icon",{open:i},()=>[r.createVNode(r.unref(Xb),{class:r.normalizeClass([{"rotate-180":i},"size-5 text-zinc-900 transition-transform"])},null,8,["class"])])])]),_:3},512))}}),P7=r.defineComponent({__name:"AppDisclosurePanel",props:{static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.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:r.withCtx(()=>[r.createVNode(r.unref(nt.DisclosurePanel),{static:t.static,unmount:t.unmount,class:"-mt-2 mb-4",as:"div"},{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},8,["static","unmount"])]),_:3}))}}),Jt=[];for(let e=0;e<256;++e)Jt.push((e+256).toString(16).slice(1));function A7(e,t=0){return(Jt[e[t+0]]+Jt[e[t+1]]+Jt[e[t+2]]+Jt[e[t+3]]+"-"+Jt[e[t+4]]+Jt[e[t+5]]+"-"+Jt[e[t+6]]+Jt[e[t+7]]+"-"+Jt[e[t+8]]+Jt[e[t+9]]+"-"+Jt[e[t+10]]+Jt[e[t+11]]+Jt[e[t+12]]+Jt[e[t+13]]+Jt[e[t+14]]+Jt[e[t+15]]).toLowerCase()}let ed;const I7=new Uint8Array(16);function M7(){if(!ed){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ed=crypto.getRandomValues.bind(crypto)}return ed(I7)}const N7=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ov={randomUUID:N7};function O7(e,t,n){e=e||{};const a=e.random??e.rng?.()??M7();if(a.length<16)throw new Error("Random bytes length must be >= 16");return a[6]=a[6]&15|64,a[8]=a[8]&63|128,A7(a)}function B7(e,t,n){return Ov.randomUUID&&!e?Ov.randomUUID():O7(e)}const L7={class:"app-input__icon pointer-events-none absolute z-10 mt-px h-5"},D7=r.defineComponent({__name:"InputIconSlot",props:{loading:{type:Boolean}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("span",L7,[t.loading?(r.openBlock(),r.createBlock(Na,{key:0,size:"small",class:"w-4"})):r.renderSlot(t.$slots,"default",{key:1},void 0,!0)]))}}),Bv=Dn(D7,[["__scopeId","data-v-a5a8b3ff"]]);function Jo(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function vr(e){return(t,n)=>{const a=n?.context?String(n.context):"standalone";let o;if(a==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,l=n?.width?String(n.width):s;o=e.formattingValues[l]||e.formattingValues[s]}else{const s=e.defaultWidth,l=n?.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}function gr(e){return(t,n={})=>{const a=n.width,o=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const s=i[0],l=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?$7(l,f=>f.test(s)):R7(l,f=>f.test(s));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(s.length);return{value:u,rest:d}}}function R7(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function $7(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function ly(e){return(t,n={})=>{const a=t.match(e.matchPattern);if(!a)return null;const o=a[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const l=t.slice(o.length);return{value:s,rest:l}}}const cy=6048e5,z7=864e5,V7=6e4,uy=36e5,F7=1e3,Lv=Symbol.for("constructDateFrom");function mt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Lv in e?e[Lv](t):e instanceof Date?new e.constructor(t):new Date(t)}function $s(e,...t){const n=mt.bind(null,t.find(a=>typeof a=="object"));return t.map(n)}let j7={};function _o(){return j7}function $e(e,t){return mt(t||e,e)}function ir(e,t){const n=_o(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=$e(e,t?.in),i=o.getDay(),s=(i<a?7:0)+i-a;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}const H7={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"}},U7=(e,t,n)=>{let a;const o=H7[e];return typeof o=="string"?a=o:t===1?a=o.one:a=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a},W7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},q7=(e,t,n,a)=>W7[e],Y7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},G7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},K7={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"]},X7={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"]},J7={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"}},Q7={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"}},Z7=(e,t)=>{const n=Number(e),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},e9={ordinalNumber:Z7,era:vr({values:Y7,defaultWidth:"wide"}),quarter:vr({values:G7,defaultWidth:"wide",argumentCallback:e=>e-1}),month:vr({values:K7,defaultWidth:"wide"}),day:vr({values:X7,defaultWidth:"wide"}),dayPeriod:vr({values:J7,defaultWidth:"wide",formattingValues:Q7,defaultFormattingWidth:"wide"})},t9=/^(\d+)(th|st|nd|rd)?/i,n9=/\d+/i,r9={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},a9={any:[/^b/i,/^(a|c)/i]},o9={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},i9={any:[/1/i,/2/i,/3/i,/4/i]},s9={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},l9={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]},c9={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},u9={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]},d9={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},f9={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}},p9={ordinalNumber:ly({matchPattern:t9,parsePattern:n9,valueCallback:e=>parseInt(e,10)}),era:gr({matchPatterns:r9,defaultMatchWidth:"wide",parsePatterns:a9,defaultParseWidth:"any"}),quarter:gr({matchPatterns:o9,defaultMatchWidth:"wide",parsePatterns:i9,defaultParseWidth:"any",valueCallback:e=>e+1}),month:gr({matchPatterns:s9,defaultMatchWidth:"wide",parsePatterns:l9,defaultParseWidth:"any"}),day:gr({matchPatterns:c9,defaultMatchWidth:"wide",parsePatterns:u9,defaultParseWidth:"any"}),dayPeriod:gr({matchPatterns:d9,defaultMatchWidth:"any",parsePatterns:f9,defaultParseWidth:"any"})},m9={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},h9={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},v9={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},g9={date:Jo({formats:m9,defaultWidth:"full"}),time:Jo({formats:h9,defaultWidth:"full"}),dateTime:Jo({formats:v9,defaultWidth:"full"})},dy={code:"en-US",formatDistance:U7,formatLong:g9,formatRelative:q7,localize:e9,match:p9,options:{weekStartsOn:0,firstWeekContainsDate:1}},y9={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"}},b9=(e,t,n)=>{let a;const o=y9[e];return typeof o=="string"?a=o:t===1?a=o.one:a=o.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"over "+a:a+" geleden":a},w9={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},k9={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},_9={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},S9={date:Jo({formats:w9,defaultWidth:"full"}),time:Jo({formats:k9,defaultWidth:"full"}),dateTime:Jo({formats:_9,defaultWidth:"full"})},C9={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},x9=(e,t,n,a)=>C9[e],E9={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},T9={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},P9={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"]},A9={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"]},I9={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"}},M9=(e,t)=>Number(e)+"e",N9={ordinalNumber:M9,era:vr({values:E9,defaultWidth:"wide"}),quarter:vr({values:T9,defaultWidth:"wide",argumentCallback:e=>e-1}),month:vr({values:P9,defaultWidth:"wide"}),day:vr({values:A9,defaultWidth:"wide"}),dayPeriod:vr({values:I9,defaultWidth:"wide"})},O9=/^(\d+)e?/i,B9=/\d+/i,L9={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},D9={any:[/^v/,/^n/]},R9={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},$9={any:[/1/i,/2/i,/3/i,/4/i]},z9={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},V9={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]},F9={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},j9={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]},H9={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},U9={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}},W9={ordinalNumber:ly({matchPattern:O9,parsePattern:B9,valueCallback:e=>parseInt(e,10)}),era:gr({matchPatterns:L9,defaultMatchWidth:"wide",parsePatterns:D9,defaultParseWidth:"any"}),quarter:gr({matchPatterns:R9,defaultMatchWidth:"wide",parsePatterns:$9,defaultParseWidth:"any",valueCallback:e=>e+1}),month:gr({matchPatterns:z9,defaultMatchWidth:"wide",parsePatterns:V9,defaultParseWidth:"any"}),day:gr({matchPatterns:F9,defaultMatchWidth:"wide",parsePatterns:j9,defaultParseWidth:"any"}),dayPeriod:gr({matchPatterns:H9,defaultMatchWidth:"any",parsePatterns:U9,defaultParseWidth:"any"})},q9={code:"nl",formatDistance:b9,formatLong:S9,formatRelative:x9,localize:N9,match:W9,options:{weekStartsOn:1,firstWeekContainsDate:4}},Y9=["date","datetime","time","year","month","week"],G9={time:"clock",week:"calendar",date:"calendar",year:"calendar",month:"calendar",datetime:"calendar"};function Qa(e){return Y9.includes(e)}function K9(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 X9(e,t){return{locale:"nl",uid:t,autoApply:!0,clearable:!1,formatLocale:q9,format:K9(e),timePicker:e==="time",weekPicker:e==="week",yearPicker:e==="year",monthPicker:e==="month",enableTimePicker:["time","datetime"].includes(e),teleport:!0,textInput:{...e==="time"?{format:"HH:mm"}:{},...e==="date"?{format:"dd-MM-yyyy"}:{}}}}const J9=["richText"];function fy(e){return J9.includes(e)}function Q9(e){return{apiKey:e,init:{plugins:"link",toolbar:"bold italic underline | link",link_title:!1,theme:"silver",menubar:!1,statusbar:!1,resize:!0,language:"nl",language_url:"/src/modules/plugins/TinyMCE/lang/nl.js",valid_elements:"p,b,strong,i,em,u,a[href|target],span[style|text-decoration=underline]",content_style:"html, body { height: calc(100% - 10px); }",setup:t=>{t.editorManager.IconManager.add("default",{icons:{bold:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 384 512"><path d="M0 56C0 42.7 10.7 32 24 32l48 0 16 0 124 0c68.5 0 124 55.5 124 124c0 34.7-14.3 66.2-37.3 88.7C339.7 264.9 368 307.1 368 356c0 68.5-55.5 124-124 124L88 480l-16 0-48 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-176L48 80 24 80C10.7 80 0 69.3 0 56zM212 232c42 0 76-34 76-76s-34-76-76-76L96 80l0 152 116 0zM96 280l0 152 148 0c42 0 76-34 76-76s-34-76-76-76l-32 0L96 280z"/></svg>',underline:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 448 512"><path d="M16 56c0-13.3 10.7-24 24-24l96 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-24 0 0 144c0 61.9 50.1 112 112 112s112-50.1 112-112l0-144-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l96 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-24 0 0 144c0 88.4-71.6 160-160 160s-160-71.6-160-160L64 80 40 80C26.7 80 16 69.3 16 56zM0 456c0-13.3 10.7-24 24-24l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 480c-13.3 0-24-10.7-24-24z"/></svg>',italic:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 384 512"><path d="M128 56c0-13.3 10.7-24 24-24l208 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-68.7 0L144.7 432l87.3 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 480c-13.3 0-24-10.7-24-24s10.7-24 24-24l68.7 0L239.3 80 152 80c-13.3 0-24-10.7-24-24z"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 640 512"><path d="M580.3 267.2c56.2-56.2 56.2-147.3 0-203.5C526.8 10.2 440.9 7.3 383.9 57.2l-6.1 5.4c-10 8.7-11 23.9-2.3 33.9s23.9 11 33.9 2.3l6.1-5.4c38-33.2 95.2-31.3 130.9 4.4c37.4 37.4 37.4 98.1 0 135.6L433.1 346.6c-37.4 37.4-98.2 37.4-135.6 0c-35.7-35.7-37.6-92.9-4.4-130.9l4.7-5.4c8.7-10 7.7-25.1-2.3-33.9s-25.1-7.7-33.9 2.3l-4.7 5.4c-49.8 57-46.9 142.9 6.6 196.4c56.2 56.2 147.3 56.2 203.5 0L580.3 267.2zM59.7 244.8C3.5 301 3.5 392.1 59.7 448.2c53.6 53.6 139.5 56.4 196.5 6.5l6.1-5.4c10-8.7 11-23.9 2.3-33.9s-23.9-11-33.9-2.3l-6.1 5.4c-38 33.2-95.2 31.3-130.9-4.4c-37.4-37.4-37.4-98.1 0-135.6L207 165.4c37.4-37.4 98.1-37.4 135.6 0c35.7 35.7 37.6 92.9 4.4 130.9l-5.4 6.1c-8.7 10-7.7 25.1 2.3 33.9s25.1 7.7 33.9-2.3l5.4-6.1c49.9-57 47-142.9-6.5-196.5c-56.2-56.2-147.3-56.2-203.5 0L59.7 244.8z"/></svg>',"chevron-left":'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 320 512"><path d="M15 239c-9.4 9.4-9.4 24.6 0 33.9L207 465c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L65.9 256 241 81c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0L15 239z"/></svg>',"chevron-right":'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 320 512"><path d="M305 239c9.4 9.4 9.4 24.6 0 33.9L113 465c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l175-175L79 81c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L305 239z"/></svg>',"chevron-up":'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 512 512"><path d="M239 111c9.4-9.4 24.6-9.4 33.9 0L465 303c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-175-175L81 337c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 111z"/></svg>',"chevron-down":'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 512 512"><path d="M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"/></svg>',close:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 384 512"><path d="M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"/></svg>',checkmark:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 448 512"><path d="M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"/></svg>'}})}}}}const Z9=["location"];function cc(e){return Z9.includes(e)}const eT=["radio","checkbox"];function Qc(e){return eT.includes(e)}const tT=`peer text-zinc-700 appearance-none h-5 w-5 border
604
+ 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`},null,-1)]),2))}}),sE={class:"app-button__icon h-4"},lE=r.defineComponent({__name:"ButtonIconSlot",props:{loading:{type:Boolean}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("span",sE,[t.loading?(r.openBlock(),r.createBlock(Na,{key:0,class:"w-4"})):r.renderSlot(t.$slots,"default",{key:1},void 0,!0)]))}}),Iv=Dn(lE,[["__scopeId","data-v-e328ef39"]]),cE={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"]},uE={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"]},dE={small:["px-5","py-1.5"],medium:["px-5","py-2.5","h-[42px]"],large:["px-5","py-3.5"]},or=r.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"},round:{type:Boolean,default:!1}},setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.as),{type:t.type,disabled:t.disabled||t.loading,class:r.normalizeClass([[...t.bordered?[]:r.unref(cE)[t.colorType],...t.bordered?r.unref(uE)[t.colorType]:[],...r.unref(dE)[t.size],...t.block?["w-full","justify-center"]:[],...t.round?["rounded-full","justify-center"]:["rounded-lg"]],"app-button inline-flex cursor-pointer items-center whitespace-nowrap border text-base font-semibold transition-colors focus:outline-hidden disabled:cursor-not-allowed disabled:select-none disabled:opacity-50"])},{default:r.withCtx(()=>[t.$slots.leadingIcon||t.loading?(r.openBlock(),r.createBlock(Iv,{key:0,loading:t.loading,class:"mr-3","data-test-leading-icon":""},{default:r.withCtx(()=>[r.renderSlot(t.$slots,"leadingIcon")]),_:3},8,["loading"])):r.createCommentVNode("",!0),r.renderSlot(t.$slots,"default"),t.$slots.trailingIcon?(r.openBlock(),r.createBlock(Iv,{key:1,class:"ml-3","data-test-trailing-icon":""},{default:r.withCtx(()=>[r.renderSlot(t.$slots,"trailingIcon")]),_:3})):r.createCommentVNode("",!0)]),_:3},8,["type","disabled","class"]))}}),fE={default:["text-white"],danger:["text-red-500"]},pE={ref:"dropdownItem"},mE=r.defineComponent({__name:"AppDropdownItem",props:{label:{},name:{},disabled:{type:Boolean},to:{},icon:{},iconClasses:{},onClick:{},confirm:{type:Boolean,default:!1},type:{default:"default"}},setup(e){const t=e,n=r.useTemplateRef("dropdownItem"),a=r.ref(!1),o=r.computed(()=>t.confirm&&a.value?Ap:t.icon),i=r.computed(()=>t.to?ei.RouterLink:"div"),s=r.computed(()=>t.type??"default");function l(c){if(t.confirm&&!a.value||t.disabled){c.preventDefault(),a.value=!0;return}a.value=!1,t.onClick?.()}return Zt.onClickOutside(n,()=>{a.value=!1}),(c,u)=>(r.openBlock(),r.createElementBlock("div",pE,[r.createVNode(r.unref(nt.MenuItem),null,{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.value),{to:c.to,class:r.normalizeClass([[...r.unref(fE)[s.value],{"cursor-not-allowed!":c.disabled}],"flex h-10 cursor-pointer items-center rounded-lg px-2.5 py-4 text-base hover:bg-zinc-600"]),"data-test-dropdown-item":"",onClick:l},{default:r.withCtx(()=>[r.renderSlot(c.$slots,"default",{},()=>[o.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(o.value),{key:0,class:r.normalizeClass([c.iconClasses,"mr-2 size-4"]),"data-test-icon":""},null,8,["class"])):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(c.label),1)])]),_:3},8,["to","class"]))]),_:3})],512))}}),hE={class:"relative inline-block text-left"},vE=r.defineComponent({__name:"AppDropdownButton",props:{dropdownItems:{},horizontalAlign:{default:"left"},openDirection:{default:"down"},buttonClasses:{},teleport:{type:Boolean,default:!1},size:{},type:{},colorType:{},disabled:{type:Boolean},loading:{type:Boolean},bordered:{type:Boolean},block:{type:Boolean},as:{},round:{type:Boolean}},setup(e,{expose:t}){const n=e,a=r.ref(),o=r.ref(),i=r.ref(!1);if(n.teleport){const{isActive:s}=Hs(a,o);r.watch(s,l=>{i.value=l})}return t({isActive:i}),(s,l)=>(r.openBlock(),r.createElementBlock("div",hE,[r.createVNode(r.unref(nt.Menu),null,{default:r.withCtx(()=>[r.createVNode(r.unref(nt.MenuButton),{ref_key:"button",ref:a},{default:r.withCtx(()=>[r.createVNode(r.unref(or),r.normalizeProps(r.guardReactiveProps({...s.$props,class:s.buttonClasses})),{trailingIcon:r.withCtx(()=>[r.renderSlot(s.$slots,"trailingIcon",{},()=>[r.createVNode(r.unref(Xb))])]),default:r.withCtx(()=>[r.renderSlot(s.$slots,"default")]),_:3},16)]),_:3},512),(r.openBlock(),r.createBlock(r.Teleport,{disabled:!s.teleport,to:"body"},[r.createVNode(r.unref(nt.MenuItems),{ref_key:"dropdown",ref:o,unmount:!1,class:r.normalizeClass([{"right-0 origin-top-right":s.horizontalAlign==="right","left-0 origin-top-left":s.horizontalAlign==="left","bottom-full mb-2":s.openDirection==="up"},"absolute z-10 mt-4 w-48 rounded-lg bg-secondary p-2 drop-shadow-card focus:outline-hidden"]),role:"menu","aria-orientation":"vertical","aria-labelledby":"menu-button",tabindex:"-1"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.dropdownItems,c=>(r.openBlock(),r.createBlock(mE,r.mergeProps({key:c.label,ref_for:!0},c),{default:r.withCtx(()=>[r.renderSlot(s.$slots,`item-${c.name}`,{item:c})]),_:2},1040))),128))]),_:3},8,["class"])],8,["disabled"]))]),_:3})]))}}),gE=["aria-disabled"],yE=["value","disabled"],ty=r.defineComponent({__name:"AppColor",props:r.mergeModels({modelValue:{},disabled:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=r.useModel(e,"modelValue"),a=r.ref(null),o={red:0,green:0,blue:0},i=r.computed(()=>{if(t.modelValue){const c=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(t.modelValue);return c?{red:parseInt(c[1],16),green:parseInt(c[2],16),blue:parseInt(c[3],16)}:o}return o}),s=r.computed(()=>{const{red:c,green:u,blue:d}=i.value,f=150,p=.299*(c*c),m=.587*(u*u),g=.114*(d*d);return Math.sqrt(p+m+g)<f});function l(c){n.value=c.target.value}return(c,u)=>(r.openBlock(),r.createElementBlock("label",{"aria-disabled":c.disabled,class:"group relative block size-10 cursor-pointer aria-disabled:cursor-not-allowed"},[r.createElementVNode("input",{ref_key:"colorInput",ref:a,value:n.value,disabled:c.disabled,type:"color",class:"relative size-full cursor-pointer appearance-none rounded-lg border-none p-0 group-aria-disabled:cursor-not-allowed",onInput:l},null,40,yE),r.createVNode(r.unref(c$),{class:r.normalizeClass([{"text-white":s.value,"text-black":!s.value},"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"])},null,8,["class"])],8,gE))}}),bE={class:"flex items-center justify-between space-x-2"},wE={"data-test-title":""},kE={key:0,"data-test-default-slot":""},_E=r.defineComponent({__name:"AppColorCard",props:r.mergeModels({title:{},disabled:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=r.useModel(e,"modelValue"),n=r.useSlots();return(a,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([a.disabled?"bg-zinc-50":"bg-white","rounded-xl p-2 pl-4 shadow-[0px_2px_4px_0px_rgba(32,32,32,0.08)]"])},[r.createElementVNode("div",bE,[r.createElementVNode("span",wE,[r.renderSlot(a.$slots,"title",{},()=>[r.createTextVNode(r.toDisplayString(a.title),1)])]),r.createVNode(r.unref(ty),{ref:a.title,modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=i=>t.value=i),disabled:a.disabled},null,8,["modelValue","disabled"])]),r.unref(n).default?r.withDirectives((r.openBlock(),r.createElementBlock("div",kE,[r.renderSlot(a.$slots,"default")],512)),[[r.vShow,t.value]]):r.createCommentVNode("",!0)],2))}}),SE={key:0,class:"app-card__icon float-right text-primary"},CE=r.defineComponent({__name:"CardIconSlot",props:{icon:{}},setup(e){const t=e,n=r.computed(()=>typeof t.icon=="string"?!1:typeof t.icon?.prefix=="string"),a=r.computed(()=>typeof t.icon=="object"&&t.icon?.props?.icon!==void 0),o=r.computed(()=>n.value?r.h(yn,{icon:t.icon}):t.icon),i=r.computed(()=>n.value?o.value:typeof t.icon=="string"?"span":t.icon);return(s,l)=>s.$slots.default||s.icon?(r.openBlock(),r.createElementBlock("div",SE,[r.renderSlot(s.$slots,"default",{},()=>[o.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.value),{key:0,class:r.normalizeClass({"size-5":!n.value,"size-4":n.value}),"data-test-icon-component":"",innerHTML:n.value||a.value?void 0:o.value},null,8,["class","innerHTML"])):r.createCommentVNode("",!0)],!0)])):r.createCommentVNode("",!0)}}),xE=Dn(CE,[["__scopeId","data-v-f4c15a3c"]]),EE={1:"stroke-1",2:"stroke-2",3:"stroke-3"},TE=r.defineComponent({__name:"CardAction",props:{item:{}},setup(e){const t=e,{navigationComponent:n}=ko(),a=r.ref(!1),o=r.computed(()=>typeof t.item.icon=="string"?!1:typeof t.item.icon?.prefix=="string"||Array.isArray(t.item.icon)),i=r.computed(()=>a.value?Na:o.value?r.h(yn,{icon:t.item.icon}):t.item.icon),s=r.computed(()=>a.value||typeof t.item.icon!="string"),l=r.computed(()=>[s.value?"":"h-6!",EE[t.item.iconStroke??3]]),c=r.computed(()=>typeof t.item.icon=="object"&&t.item.icon?.props?.icon!==void 0),u=r.computed(()=>o.value?i.value:typeof t.item.icon=="string"?"span":t.item.icon);async function d(f){t.item?.onClick&&(f.preventDefault(),a.value=!0,await Promise.resolve(t.item?.onClick?.()),a.value=!1)}return(f,p)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(n)),{to:f.item.to,href:f.item.href,class:r.normalizeClass([{"flex-row-reverse":f.item?.iconPosition==="right"},"app-card__action ml-auto flex items-center justify-center font-bold text-zinc-900 transition-colors group-hover:text-primary"]),onClick:d},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(u.value),{class:r.normalizeClass([l.value,"size-4"]),size:a.value?"extra-small":void 0,"data-test-icon":"",innerHTML:o.value||c.value?void 0:i.value},null,8,["class","size","innerHTML"])),r.createElementVNode("span",{class:r.normalizeClass([{"pl-2":f.item.icon&&f.item?.iconPosition!=="right","pr-2":f.item.icon&&f.item?.iconPosition==="right"},"text-sm"]),"data-test-name":""},r.toDisplayString(f.item.name),3)]),_:1},8,["to","href","class"]))}}),PE={key:2,class:"text-2xl font-bold text-zinc-900","data-test-title":""},AE={class:"text-base font-normal text-zinc-600","data-test-description":""},Mp=r.defineComponent({__name:"AppCard",props:{title:{default:void 0},description:{default:void 0},actions:{default:void 0},icon:{default:void 0},bordered:{type:Boolean,default:!1},contentClasses:{default:void 0},hoverTransition:{type:Boolean,default:!1}},setup(e){const t=e,n=r.useSlots(),a=r.computed(()=>!!n.avatar),o=r.computed(()=>!!n.title||!!t.title),i=r.computed(()=>!!n.icon||!!t.icon),s=r.computed(()=>`${t.contentClasses} ${o.value?"mt-4":void 0}`);return(l,c)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"before:hidden":!l.bordered,"cursor-pointer transition hover:drop-shadow-cardhighlight":l.actions&&l.actions.length>0||l.hoverTransition},"group relative w-full overflow-hidden rounded-2xl bg-white px-6 py-5 text-zinc-600 drop-shadow-card before:absolute before:left-0 before:top-0 before:h-full before:w-1.5 before:bg-primary"])},[i.value?(r.openBlock(),r.createBlock(xE,{key:0,icon:l.icon,class:r.normalizeClass({"mt-1.5":o.value}),"data-test-icon":""},{default:r.withCtx(()=>[r.renderSlot(l.$slots,"icon")]),_:3},8,["icon","class"])):r.createCommentVNode("",!0),a.value?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass([{"mr-3":i.value},"float-right"]),"data-test-avatar":""},[r.renderSlot(l.$slots,"avatar")],2)):r.createCommentVNode("",!0),o.value?(r.openBlock(),r.createElementBlock("h3",PE,[r.renderSlot(l.$slots,"title",{},()=>[r.createTextVNode(r.toDisplayString(l.title),1)]),r.renderSlot(l.$slots,"description",{},()=>[r.createElementVNode("p",AE,r.toDisplayString(l.description),1)])])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(s.value),"data-test-content":""},[r.renderSlot(l.$slots,"default")],2),r.renderSlot(l.$slots,"actions",{},()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.actions,u=>(r.openBlock(),r.createElementBlock("div",{key:u.name,class:"mt-2 flex w-full"},[r.createVNode(TE,{item:u},null,8,["item"])]))),128))])],2))}}),IE={class:"flex min-h-screen px-4 pb-20 pt-4 text-center md:items-center md:justify-center"},ME={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"},NE={class:"rounded-2xl bg-zinc-100 drop-shadow-card"},OE={class:"flex flex-col items-center space-y-5 p-8"},BE={key:0,class:"mx-auto flex size-12 shrink-0 items-center justify-center rounded-full"},LE={class:"mt-3"},DE={class:"mt-3 w-full text-base text-zinc-700","data-test-confirm-content":""},RE=["innerHTML"],$E={key:1},zE={class:"ml-auto flex flex-row-reverse items-center gap-8 rounded-b-2xl bg-white p-8"},ny=r.defineComponent({__name:"AppConfirm",props:{title:{default:""},type:{default:"default"},content:{default:""},confirmButtonText:{default:""},confirmButtonTrailingIcon:{},confirmButtonLeadingIcon:{},cancelButtonText:{default:""},cancelButtonTrailingIcon:{},cancelButtonLeadingIcon:{},withBackdrop:{type:Boolean,default:!0},preventBackdropClose:{type:Boolean,default:!0},icon:{default:void 0},html:{type:Boolean,default:!1},animate:{type:Boolean,default:!0},extendedIconDomClasses:{default:""},onConfirm:{},onCancel:{}},emits:["close","confirmed"],setup(e,{emit:t}){const n=e,a=t,o=r.ref(!0),i=r.ref(!1),s=r.ref(!1),{expanded:l}=ko(),c=r.computed(()=>!n.icon&&n.type==="error"?Ip:!n.icon&&n.type==="success"?Pp:n.icon),u=r.computed(()=>n.animate?nt.TransitionRoot:"div"),d=r.computed(()=>n.animate?nt.TransitionChild:"div"),f=r.computed(()=>[n.type==="error"?"text-red-500":"text-green-500",n.extendedIconDomClasses]);async function p(m){m&&typeof n.onConfirm=="function"?(i.value=!0,await Promise.resolve(n.onConfirm())):!m&&typeof n.onCancel=="function"&&(s.value=!0,await Promise.resolve(n.onCancel())),o.value=!1,a("close",m)}return(m,g)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(u.value),{show:o.value,as:"template"},{default:r.withCtx(()=>[r.createVNode(r.unref(nt.Dialog),{open:m.animate?void 0:o.value,class:r.normalizeClass([{"md:left-72!":r.unref(l)},"app-confirm-dialog fixed inset-0 top-16 z-50 overflow-y-auto transition-all duration-500 md:left-20 md:top-0"]),as:"div","data-test-confirm-dialog":"",onClose:g[2]||(g[2]=()=>m.preventBackdropClose?void 0:p(!1))},{default:r.withCtx(()=>[r.createElementVNode("div",IE,[m.withBackdrop?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(d.value),{key:0,as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:r.withCtx(()=>[r.createVNode(r.unref(nt.DialogOverlay),{class:r.normalizeClass([{"md:left-72!":r.unref(l)},"app-confirm-dialog-overlay fixed inset-0 top-16 z-40 rounded-l-2xl bg-zinc-800/50 transition-all duration-500 md:left-20 md:top-0"])},null,8,["class"])]),_:1})):r.createCommentVNode("",!0),g[3]||(g[3]=r.createElementVNode("span",{class:"hidden md:inline-block md:h-screen md:align-middle","aria-hidden":"true"}," ​ ",-1)),(r.openBlock(),r.createBlock(r.resolveDynamicComponent(d.value),{as:"template",enter:"ease-in-out duration-300","enter-from":"opacity-0 translate-y-4 md:translate-y-0 md:scale-95","enter-to":"opacity-100 translate-y-0 md:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 md:scale-100","leave-to":"opacity-0 translate-y-4 md:translate-y-0 md:scale-95"},{default:r.withCtx(()=>[r.createElementVNode("div",ME,[r.createElementVNode("div",NE,[r.createElementVNode("div",OE,[c.value?(r.openBlock(),r.createElementBlock("div",BE,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(c.value),{class:r.normalizeClass([f.value,"size-full"]),"data-test-confirm-icon":""},null,8,["class"]))])):r.createCommentVNode("",!0),r.createElementVNode("div",LE,[r.createVNode(r.unref(nt.DialogTitle),{as:"h3",class:"text-2xl font-bold leading-6 text-zinc-900"},{default:r.withCtx(()=>[r.renderSlot(m.$slots,"title",{},()=>[r.createTextVNode(r.toDisplayString(m.title),1)])]),_:3}),r.createElementVNode("div",DE,[r.renderSlot(m.$slots,"default",{},()=>[m.html?(r.openBlock(),r.createElementBlock("div",{key:0,class:"app-confirm-html-content",innerHTML:m.content},null,8,RE)):(r.openBlock(),r.createElementBlock("p",$E,r.toDisplayString(m.content),1))])])])]),r.createElementVNode("div",zE,[m.confirmButtonText?(r.openBlock(),r.createBlock(r.unref(or),{key:0,disabled:i.value||s.value,loading:i.value,type:"button","color-type":"primary",class:"justify-center",onClick:g[0]||(g[0]=()=>p(!0))},r.createSlots({default:r.withCtx(()=>[r.createTextVNode(" "+r.toDisplayString(m.confirmButtonText),1)]),_:2},[m.confirmButtonTrailingIcon?{name:"trailingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(m.confirmButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,m.confirmButtonLeadingIcon?{name:"leadingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(m.confirmButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):r.createCommentVNode("",!0),m.cancelButtonText?(r.openBlock(),r.createBlock(r.unref(or),{key:1,disabled:i.value||s.value,loading:s.value,"color-type":"plain",class:"justify-center text-zinc-900",onClick:g[1]||(g[1]=()=>p(!1))},r.createSlots({default:r.withCtx(()=>[r.createTextVNode(" "+r.toDisplayString(m.cancelButtonText),1)]),_:2},[m.cancelButtonTrailingIcon?{name:"trailingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(m.cancelButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,m.cancelButtonLeadingIcon?{name:"leadingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(m.cancelButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):r.createCommentVNode("",!0)])])])]),_:3}))])]),_:3},8,["open","class"])]),_:3},8,["show"]))}}),VE={class:"flex min-h-screen px-4 pb-20 pt-4 text-center md:items-center md:justify-center"},FE={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"},jE={class:"rounded-2xl bg-white p-10 drop-shadow-card"},HE={class:"flex flex-col items-center space-y-5"},UE={key:0,class:"mx-auto flex size-12 shrink-0 items-center justify-center rounded-full"},WE={class:"mt-3 text-center"},qE={class:"mt-3 w-full px-10 text-center text-sm text-zinc-600","data-test-error-content":""},YE=["innerHTML"],GE={key:1},KE={class:"mx-auto flex w-fit flex-col space-y-4 pt-10"},ry=r.defineComponent({__name:"AppError",props:{title:{default:""},type:{default:"default"},content:{default:""},confirmButtonText:{default:""},confirmButtonTrailingIcon:{},confirmButtonLeadingIcon:{},cancelButtonText:{default:""},cancelButtonTrailingIcon:{},cancelButtonLeadingIcon:{},withBackdrop:{type:Boolean,default:!0},preventBackdropClose:{type:Boolean,default:!0},icon:{default:void 0},html:{type:Boolean,default:!1},extendedIconDomClasses:{default:""},onConfirm:{},onCancel:{}},emits:["close","confirmed"],setup(e,{emit:t}){const n=e,a=t,o=r.ref(!0),i=r.ref(!1),s=r.ref(!1),l=r.computed(()=>!n.icon&&n.type==="error"?Ip:!n.icon&&n.type==="success"?Pp:n.icon),c=r.computed(()=>[n.type==="error"?"text-red-500":"text-green-500",n.extendedIconDomClasses]);async function u(d){d&&typeof n.onConfirm=="function"?(i.value=!0,await Promise.resolve(n.onConfirm())):!d&&typeof n.onCancel=="function"&&(s.value=!0,await Promise.resolve(n.onCancel())),o.value=!1,a("close",d)}return(d,f)=>(r.openBlock(),r.createBlock(r.unref(nt.TransitionRoot),{show:o.value,as:"template"},{default:r.withCtx(()=>[r.createVNode(r.unref(nt.Dialog),{as:"div",class:"app-error-dialog fixed inset-0 top-16 z-50 overflow-y-auto md:left-20 md:top-0","data-test-error-dialog":"",onClose:f[2]||(f[2]=()=>d.preventBackdropClose?void 0:u(!1))},{default:r.withCtx(()=>[r.createElementVNode("div",VE,[d.withBackdrop?(r.openBlock(),r.createBlock(r.unref(nt.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:r.withCtx(()=>[r.createVNode(r.unref(nt.DialogOverlay),{class:"app-error-dialog-overlay fixed inset-0 top-16 z-40 rounded-l-2xl bg-zinc-100 transition-opacity md:left-20 md:top-0"})]),_:1})):r.createCommentVNode("",!0),f[3]||(f[3]=r.createElementVNode("span",{class:"hidden md:inline-block md:h-screen md:align-middle","aria-hidden":"true"}," ​ ",-1)),r.createVNode(r.unref(nt.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:r.withCtx(()=>[r.createElementVNode("div",FE,[r.createElementVNode("div",jE,[r.createElementVNode("div",HE,[l.value?(r.openBlock(),r.createElementBlock("div",UE,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l.value),{class:r.normalizeClass([c.value,"size-full"]),"data-test-error-icon":""},null,8,["class"]))])):r.createCommentVNode("",!0),r.createElementVNode("div",WE,[r.createVNode(r.unref(nt.DialogTitle),{as:"h3",class:"text-2xl font-bold leading-6 text-zinc-900"},{default:r.withCtx(()=>[r.renderSlot(d.$slots,"title",{},()=>[r.createTextVNode(r.toDisplayString(d.title),1)])]),_:3}),r.createElementVNode("div",qE,[r.renderSlot(d.$slots,"default",{},()=>[d.html?(r.openBlock(),r.createElementBlock("div",{key:0,class:"app-error-html-content",innerHTML:d.content},null,8,YE)):(r.openBlock(),r.createElementBlock("p",GE,r.toDisplayString(d.content),1))])])])]),r.createElementVNode("div",KE,[d.confirmButtonText?(r.openBlock(),r.createBlock(r.unref(or),{key:0,bordered:!0,disabled:i.value||s.value,loading:i.value,type:"button","color-type":"primary",class:"justify-center",onClick:f[0]||(f[0]=()=>u(!0))},r.createSlots({default:r.withCtx(()=>[r.createTextVNode(" "+r.toDisplayString(d.confirmButtonText),1)]),_:2},[d.confirmButtonTrailingIcon?{name:"trailingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(d.confirmButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,d.confirmButtonLeadingIcon?{name:"leadingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(d.confirmButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):r.createCommentVNode("",!0),d.cancelButtonText?(r.openBlock(),r.createBlock(r.unref(or),{key:1,disabled:i.value||s.value,loading:s.value,"color-type":"plain",class:"justify-center",onClick:f[1]||(f[1]=()=>u(!1))},r.createSlots({default:r.withCtx(()=>[r.createTextVNode(" "+r.toDisplayString(d.cancelButtonText),1)]),_:2},[d.cancelButtonTrailingIcon?{name:"trailingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(d.cancelButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,d.cancelButtonLeadingIcon?{name:"leadingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(d.cancelButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):r.createCommentVNode("",!0)])])])]),_:3})])]),_:3})]),_:3},8,["show"]))}});function df(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function XE(e){if(Array.isArray(e))return df(e)}function sn(e,t,n){return(t=n7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
605
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,a)}return n}function Jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mv(Object(n),!0).forEach(function(a){sn(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mv(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function ZE(e,t){if(e==null)return{};var n,a,o=e7(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function e7(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}function ff(e){return XE(e)||JE(e)||r7(e)||QE()}function t7(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function n7(e){var t=t7(e,"string");return typeof t=="symbol"?t:t+""}function lc(e){"@babel/helpers - typeof";return lc=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},lc(e)}function r7(e,t){if(e){if(typeof e=="string")return df(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?df(e,t):void 0}}function ns(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?sn({},e,t):{}}function a7(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},sn(sn(sn(sn(sn(sn(sn(sn(sn(sn(t,"fa-".concat(e.size),e.size!==null),"fa-rotate-".concat(e.rotation),e.rotation!==null),"fa-rotate-by",e.rotateBy),"fa-pull-".concat(e.pull),e.pull!==null),"fa-swap-opacity",e.swapOpacity),"fa-bounce",e.bounce),"fa-shake",e.shake),"fa-beat",e.beat),"fa-fade",e.fade),"fa-beat-fade",e.beatFade),sn(sn(sn(sn(t,"fa-flash",e.flash),"fa-spin-pulse",e.spinPulse),"fa-spin-reverse",e.spinReverse),"fa-width-auto",e.widthAuto));return Object.keys(n).map(function(a){return n[a]?a:null}).filter(function(a){return a})}var o7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ay={exports:{}};(function(e){(function(t){var n=function(b,E,_){if(!u(E)||f(E)||p(E)||m(E)||c(E))return E;var v,x=0,C=0;if(d(E))for(v=[],C=E.length;x<C;x++)v.push(n(b,E[x],_));else{v={};for(var P in E)Object.prototype.hasOwnProperty.call(E,P)&&(v[b(P,_)]=n(b,E[P],_))}return v},a=function(b,E){E=E||{};var _=E.separator||"_",v=E.split||/(?=[A-Z])/;return b.split(v).join(_)},o=function(b){return g(b)?b:(b=b.replace(/[\-_\s]+(.)?/g,function(E,_){return _?_.toUpperCase():""}),b.substr(0,1).toLowerCase()+b.substr(1))},i=function(b){var E=o(b);return E.substr(0,1).toUpperCase()+E.substr(1)},s=function(b,E){return a(b,E).toLowerCase()},l=Object.prototype.toString,c=function(b){return typeof b=="function"},u=function(b){return b===Object(b)},d=function(b){return l.call(b)=="[object Array]"},f=function(b){return l.call(b)=="[object Date]"},p=function(b){return l.call(b)=="[object RegExp]"},m=function(b){return l.call(b)=="[object Boolean]"},g=function(b){return b=b-0,b===b},y=function(b,E){var _=E&&"process"in E?E.process:E;return typeof _!="function"?b:function(v,x){return _(v,b,x)}},w={camelize:o,decamelize:s,pascalize:i,depascalize:s,camelizeKeys:function(b,E){return n(y(o,E),b)},decamelizeKeys:function(b,E){return n(y(s,E),b,E)},pascalizeKeys:function(b,E){return n(y(i,E),b)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=w:t.humps=w})(o7)})(ay);var i7=ay.exports,s7=["class","style"];function l7(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var a=n.indexOf(":"),o=i7.camelize(n.slice(0,a)),i=n.slice(a+1).trim();return t[o]=i,t},{})}function c7(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function Np(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var a=(e.children||[]).map(function(c){return Np(c)}),o=Object.keys(e.attributes||{}).reduce(function(c,u){var d=e.attributes[u];switch(u){case"class":c.class=c7(d);break;case"style":c.style=l7(d);break;default:c.attrs[u]=d}return c},{attrs:{},class:{},style:{}});n.class;var i=n.style,s=i===void 0?{}:i,l=ZE(n,s7);return r.h(e.tag,Jn(Jn(Jn({},t),{},{class:o.class,style:Jn(Jn({},o.style),s)},o.attrs),l),a)}var oy=!1;try{oy=process.env.NODE_ENV==="production"}catch{}function u7(){if(!oy&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Nv(e){if(e&&lc(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(ic.icon)return ic.icon(e);if(e===null)return null;if(lc(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var yn=r.defineComponent({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},rotateBy:{type:Boolean,default:!1},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1},widthAuto:{type:Boolean,default:!1}},setup:function(t,n){var a=n.attrs,o=r.computed(function(){return Nv(t.icon)}),i=r.computed(function(){return ns("classes",a7(t))}),s=r.computed(function(){return ns("transform",typeof t.transform=="string"?ic.transform(t.transform):t.transform)}),l=r.computed(function(){return ns("mask",Nv(t.mask))}),c=r.computed(function(){var d=Jn(Jn(Jn(Jn({},i.value),s.value),l.value),{},{symbol:t.symbol,maskId:t.maskId});return d.title=t.title,d.titleId=t.titleId,wx(o.value,d)});r.watch(c,function(d){if(!d)return u7("Could not find one or more icon(s)",o.value,l.value)},{immediate:!0});var u=r.computed(function(){return c.value?Np(c.value.abstract[0],{},a):null});return function(){return u.value}}});r.defineComponent({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(t,n){var a=n.slots,o=J2.familyPrefix,i=r.computed(function(){return["".concat(o,"-layers")].concat(ff(t.fixedWidth?["".concat(o,"-fw")]:[]))});return function(){return r.h("div",{class:i.value},a.default?a.default():[])}}});r.defineComponent({name:"FontAwesomeLayersText",props:{value:{type:[String,Number],default:""},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(t){return["bottom-left","bottom-right","top-left","top-right"].indexOf(t)>-1}}},setup:function(t,n){var a=n.attrs,o=J2.familyPrefix,i=r.computed(function(){return ns("classes",[].concat(ff(t.counter?["".concat(o,"-layers-counter")]:[]),ff(t.position?["".concat(o,"-layers-").concat(t.position)]:[])))}),s=r.computed(function(){return ns("transform",typeof t.transform=="string"?ic.transform(t.transform):t.transform)}),l=r.computed(function(){var u=kx(t.value.toString(),Jn(Jn({},s.value),i.value)),d=u.abstract;return t.counter&&(d[0].attributes.class=d[0].attributes.class.replace("fa-layers-text","")),d[0]}),c=r.computed(function(){return Np(l.value,{},a)});return function(){return c.value}}});const d7=["disabled","accept","name"],f7={key:0,class:"flex flex-col items-center px-6 py-10 text-white"},p7={class:"mb-2 mt-4 text-xl font-bold"},m7={class:"text-sm"},h7=["src"],v7=r.defineComponent({__name:"AppImageDropzone",props:{title:{default:"Drag & drop"},description:{default:"of selecteer een afbeelding van je computer (jpg, jpeg of png)."},disabled:{type:Boolean,default:!1},existingFileUrl:{},dataTypes:{default:()=>["image/png","image/gif","image/jpeg"]},name:{default:""}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,o=r.ref(null),i=r.ref(null),s=r.ref(),l=r.ref(),{isOverDropZone:c}=Zt.useDropZone(l,{onDrop:u,dataTypes:n.dataTypes});r.watch(o,m=>{a("update:modelValue",m)}),r.onMounted(()=>{n.existingFileUrl&&(i.value=n.existingFileUrl,o.value=new File([],n.existingFileUrl.split("/").pop()??""))});function u(m){if(m&&!n.disabled){const g=m[0];o.value=g,i.value=URL.createObjectURL(g)}}function d(m){const y=m.target.files?.[0];y&&n.dataTypes.includes(y.type)&&(o.value=y,i.value=URL.createObjectURL(y))}function f(){o.value=null,i.value=null,s.value.value=""}function p(){s.value?.click()}return(m,g)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"dropZoneRef",ref:l,class:r.normalizeClass([{"cursor-pointer":!m.disabled,"cursor-not-allowed":m.disabled,"bg-zinc-700":r.unref(c)},"group relative flex size-60 items-center justify-center rounded-2xl bg-secondary text-center drop-shadow-card"]),onClick:p},[r.createElementVNode("input",{ref_key:"fileInput",ref:s,disabled:m.disabled,accept:m.dataTypes.join(", "),name:m.name,type:"file",class:"hidden",onChange:d},null,40,d7),o.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",f7,[r.createVNode(r.unref(yn),{icon:r.unref(bn).far?.["arrow-up-to-line"],class:"size-10"},null,8,["icon"]),r.createElementVNode("h3",p7,r.toDisplayString(m.title),1),r.createElementVNode("p",m7,r.toDisplayString(m.description),1)])),i.value?(r.openBlock(),r.createElementBlock("img",{key:1,src:i.value,alt:"Preview",class:"size-full rounded-2xl object-cover"},null,8,h7)):r.createCommentVNode("",!0),o.value&&!m.disabled?(r.openBlock(),r.createElementBlock("span",{key:2,class:"absolute inset-0 hidden size-full flex-col items-center justify-center rounded-2xl bg-secondary p-1 text-white group-hover:flex",onClick:r.withModifiers(f,["stop"])},[r.createVNode(r.unref(yn),{icon:r.unref(bn).far?.trash,class:"size-10"},null,8,["icon"]),g[0]||(g[0]=r.createElementVNode("h3",{class:"mb-2 mt-4 text-xl font-bold"}," Verwijderen ",-1)),g[1]||(g[1]=r.createElementVNode("p",{class:"text-sm"}," Klik hier om de afbeelding te verwijderen ",-1))])):r.createCommentVNode("",!0)],2))}}),g7={class:"flex min-h-screen items-center justify-center text-center"},y7={class:"rounded-2xl bg-zinc-100 drop-shadow-card"},b7={class:"flex flex-col items-center space-y-5"},w7={class:"w-full text-center"},k7={key:0,class:"w-full rounded-b-xl bg-white p-8"},_7={class:"ml-auto flex w-fit flex-row-reverse items-center"},iy=r.defineComponent({__name:"AppModal",props:{title:{default:""},submitButtonText:{default:"Opslaan"},submitButtonTrailingIcon:{},submitButtonLeadingIcon:{},cancelButtonText:{default:"Annuleren"},cancelButtonTrailingIcon:{},cancelButtonLeadingIcon:{},withBackdrop:{type:Boolean,default:!0},withFooter:{type:Boolean,default:!0},preventBackdropClose:{type:Boolean,default:!1},preventBackdropCloseOnLoading:{type:Boolean,default:!0},contentClasses:{default:""},modalClasses:{default:""},content:{default:""},properties:{default:void 0},onSubmit:{},onCancel:{}},emits:["open","close","cancel","submit"],setup(e,{expose:t,emit:n}){const a=e,o=n,i=r.ref(!1),s=r.ref(),l=r.ref(!1),c=r.ref(!1),u=r.ref(),d=r.computed(()=>a.preventBackdropClose||a.preventBackdropCloseOnLoading&&(l.value||c.value));async function f(){i.value=!0,o("open")}async function p(){c.value=!0,i.value=!1,o("close",{animation:async()=>new Promise(y=>setTimeout(y,350))}),c.value=!1}async function m(){const y=await u.value?.cancel?.(),w=await a.onCancel?.();a.onCancel===void 0&&o("cancel"),!(y===!1||w===!1)&&await p()}async function g(){l.value=!0;const y=new FormData(s.value);await u.value?.submit?.(y),await a.onSubmit?.(y),l.value=!1}return t({isOpen:i,open:f,close:p,submit:g}),Zt.onKeyStroke("Escape",p,{dedupe:!0}),(y,w)=>(r.openBlock(),r.createBlock(r.unref(nt.TransitionRoot),{show:i.value,as:"template"},{default:r.withCtx(()=>[r.createVNode(r.unref(nt.Dialog),{as:"div",class:"app-modal-dialog fixed inset-0 z-250 overflow-y-auto","data-test-modal-dialog":"",onClose:w[0]||(w[0]=()=>d.value?void 0:p())},{default:r.withCtx(()=>[r.createElementVNode("div",g7,[y.withBackdrop?(r.openBlock(),r.createBlock(r.unref(nt.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:r.withCtx(()=>[r.createVNode(r.unref(nt.DialogOverlay),{class:"fixed inset-0 z-40 bg-black/20 backdrop-blur-xs transition-opacity"})]),_:1})):r.createCommentVNode("",!0),w[1]||(w[1]=r.createElementVNode("span",{class:"inline-block h-screen align-middle","aria-hidden":"true"}," ​ ",-1)),r.createVNode(r.unref(nt.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:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(`relative z-50 mx-auto inline-block w-full max-w-2xl rounded-2xl p-4
606
+ text-left align-middle transition-all md:max-w-[70vw] ${y.modalClasses}`)},[r.createElementVNode("div",y7,[r.createElementVNode("div",b7,[r.createElementVNode("div",w7,[r.createVNode(r.unref(nt.DialogTitle),{as:"h3",class:"flex justify-between px-8 pt-8 text-2xl font-bold leading-6 text-zinc-900"},{default:r.withCtx(()=>[r.renderSlot(y.$slots,"title",{},()=>[r.createTextVNode(r.toDisplayString(y.title),1)]),r.createVNode(r.unref(yn),{icon:r.unref(bn).far?.xmark,class:"size-5 cursor-pointer",onClick:p},null,8,["icon"])]),_:3}),r.createElementVNode("div",{class:r.normalizeClass(`my-6 px-8 w-full text-center text-sm text-zinc-600 ${y.contentClasses}`),"data-test-modal-content":""},[r.createElementVNode("form",{ref_key:"form",ref:s},[r.renderSlot(y.$slots,"default",{},()=>[typeof y.content=="string"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(y.content),1)],64)):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(y.content),r.mergeProps({key:1,ref_key:"contentRef",ref:u},y.properties,{onClose:p,onSubmit:g,onCancel:m}),null,16))])],512)],2)])]),y.withFooter?(r.openBlock(),r.createElementBlock("div",k7,[r.createElementVNode("div",_7,[y.submitButtonText?(r.openBlock(),r.createBlock(r.unref(or),{key:0,disabled:l.value||c.value,loading:l.value,type:"button","color-type":"primary",class:"ml-6 justify-center",onClick:g},r.createSlots({default:r.withCtx(()=>[r.createTextVNode(" "+r.toDisplayString(y.submitButtonText),1)]),_:2},[y.submitButtonTrailingIcon?{name:"trailingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(y.submitButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,y.submitButtonLeadingIcon?{name:"leadingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(y.submitButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):r.createCommentVNode("",!0),y.cancelButtonText?(r.openBlock(),r.createBlock(r.unref(or),{key:1,disabled:l.value||c.value,loading:c.value,"color-type":"plain",class:"justify-center text-zinc-900!",onClick:m},r.createSlots({default:r.withCtx(()=>[r.createTextVNode(" "+r.toDisplayString(y.cancelButtonText),1)]),_:2},[y.cancelButtonTrailingIcon?{name:"trailingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(y.cancelButtonTrailingIcon),{class:"stroke-2"}))]),key:"0"}:void 0,y.cancelButtonLeadingIcon?{name:"leadingIcon",fn:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(y.cancelButtonLeadingIcon),{class:"stroke-2"}))]),key:"1"}:void 0]),1032,["disabled","loading"])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0)])],2)]),_:3})])]),_:3})]),_:3},8,["show"]))}}),sy=r.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},itemRowClasses:{default:void 0},itemCellClasses:{default:void 0}},setup(e){const t=e,n=r.useSlots(),a=r.computed(()=>!!n.title||!!t.title),o=r.computed(()=>!!n.default||!!t.description||!!t.component);return(i,s)=>o.value||!o.value&&!i.hideEmptyValues?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass([i.itemRowClasses,"flex w-full"]),"data-test-item":""},[a.value?(r.openBlock(),r.createElementBlock("dt",{key:0,class:r.normalizeClass([[i.itemCellClasses,{"w-1/2":o.value||i.component}],"font-bold text-zinc-900"]),"data-test-title":""},[r.renderSlot(i.$slots,"title",{},()=>[r.createTextVNode(r.toDisplayString(i.title),1)])],2)):r.createCommentVNode("",!0),o.value||i.component||i.$slots.default?(r.openBlock(),r.createElementBlock("dd",{key:1,class:r.normalizeClass([i.itemCellClasses,{"w-1/2":a.value}]),"data-test-description":""},[r.renderSlot(i.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(i.description),1)]),(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.component),r.mergeProps(i.componentProperties,{"data-test-component":""}),null,16))],2)):r.createCommentVNode("",!0)],2)):r.createCommentVNode("",!0)}}),S7={class:"flex flex-col gap-1.5"},C7=r.defineComponent({__name:"AppDefinitionList",props:{items:{default:void 0},hideEmptyValues:{type:Boolean,default:!1},itemRowClasses:{default:void 0},itemCellClasses:{default:void 0}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",S7,[r.renderSlot(t.$slots,"default",{},()=>[t.items?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(t.items,(a,o)=>(r.openBlock(),r.createBlock(sy,{key:o,tabindex:`1${o}`,title:a.title,description:a.description,component:a.component,"component-properties":a.componentProperties,"hide-empty-values":t.hideEmptyValues,"item-row-classes":t.itemRowClasses,"item-cell-classes":t.itemCellClasses},null,8,["tabindex","title","description","component","component-properties","hide-empty-values","item-row-classes","item-cell-classes"]))),128)):r.createCommentVNode("",!0)])]))}}),x7=r.defineComponent({__name:"AppDisclosure",props:{defaultOpen:{type:Boolean,default:!1}},setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(nt.Disclosure),{"default-open":t.defaultOpen,class:"border-b border-zinc-200 last:border-0",as:"div"},{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},8,["default-open"]))}}),E7={class:"ml-auto pl-2"},T7=r.defineComponent({__name:"AppDisclosureButton",setup(e){const t=r.ref(null);function n(){t.value?.$el.dataset.headlessuiState==="open"&&t.value?.$el.blur()}return(a,o)=>(r.openBlock(),r.createBlock(r.unref(nt.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:r.withCtx(({open:i})=>[r.createElementVNode("span",{class:r.normalizeClass([{"font-bold":i},"text-left"])},[r.renderSlot(a.$slots,"default")],2),r.createElementVNode("span",E7,[r.renderSlot(a.$slots,"icon",{open:i},()=>[r.createVNode(r.unref(Xb),{class:r.normalizeClass([{"rotate-180":i},"size-5 text-zinc-900 transition-transform"])},null,8,["class"])])])]),_:3},512))}}),P7=r.defineComponent({__name:"AppDisclosurePanel",props:{static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.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:r.withCtx(()=>[r.createVNode(r.unref(nt.DisclosurePanel),{static:t.static,unmount:t.unmount,class:"-mt-2 mb-4",as:"div"},{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},8,["static","unmount"])]),_:3}))}}),Jt=[];for(let e=0;e<256;++e)Jt.push((e+256).toString(16).slice(1));function A7(e,t=0){return(Jt[e[t+0]]+Jt[e[t+1]]+Jt[e[t+2]]+Jt[e[t+3]]+"-"+Jt[e[t+4]]+Jt[e[t+5]]+"-"+Jt[e[t+6]]+Jt[e[t+7]]+"-"+Jt[e[t+8]]+Jt[e[t+9]]+"-"+Jt[e[t+10]]+Jt[e[t+11]]+Jt[e[t+12]]+Jt[e[t+13]]+Jt[e[t+14]]+Jt[e[t+15]]).toLowerCase()}let ed;const I7=new Uint8Array(16);function M7(){if(!ed){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ed=crypto.getRandomValues.bind(crypto)}return ed(I7)}const N7=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ov={randomUUID:N7};function O7(e,t,n){e=e||{};const a=e.random??e.rng?.()??M7();if(a.length<16)throw new Error("Random bytes length must be >= 16");return a[6]=a[6]&15|64,a[8]=a[8]&63|128,A7(a)}function B7(e,t,n){return Ov.randomUUID&&!e?Ov.randomUUID():O7(e)}const L7={class:"app-input__icon pointer-events-none absolute z-10 mt-px h-5"},D7=r.defineComponent({__name:"InputIconSlot",props:{loading:{type:Boolean}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("span",L7,[t.loading?(r.openBlock(),r.createBlock(Na,{key:0,size:"small",class:"w-4"})):r.renderSlot(t.$slots,"default",{key:1},void 0,!0)]))}}),Bv=Dn(D7,[["__scopeId","data-v-a5a8b3ff"]]);function Jo(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function vr(e){return(t,n)=>{const a=n?.context?String(n.context):"standalone";let o;if(a==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,l=n?.width?String(n.width):s;o=e.formattingValues[l]||e.formattingValues[s]}else{const s=e.defaultWidth,l=n?.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}function gr(e){return(t,n={})=>{const a=n.width,o=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const s=i[0],l=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?$7(l,f=>f.test(s)):R7(l,f=>f.test(s));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(s.length);return{value:u,rest:d}}}function R7(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function $7(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function ly(e){return(t,n={})=>{const a=t.match(e.matchPattern);if(!a)return null;const o=a[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const l=t.slice(o.length);return{value:s,rest:l}}}const cy=6048e5,z7=864e5,V7=6e4,uy=36e5,F7=1e3,Lv=Symbol.for("constructDateFrom");function mt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Lv in e?e[Lv](t):e instanceof Date?new e.constructor(t):new Date(t)}function $s(e,...t){const n=mt.bind(null,t.find(a=>typeof a=="object"));return t.map(n)}let j7={};function _o(){return j7}function $e(e,t){return mt(t||e,e)}function ir(e,t){const n=_o(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=$e(e,t?.in),i=o.getDay(),s=(i<a?7:0)+i-a;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}const H7={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"}},U7=(e,t,n)=>{let a;const o=H7[e];return typeof o=="string"?a=o:t===1?a=o.one:a=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a},W7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},q7=(e,t,n,a)=>W7[e],Y7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},G7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},K7={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"]},X7={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"]},J7={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"}},Q7={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"}},Z7=(e,t)=>{const n=Number(e),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},e9={ordinalNumber:Z7,era:vr({values:Y7,defaultWidth:"wide"}),quarter:vr({values:G7,defaultWidth:"wide",argumentCallback:e=>e-1}),month:vr({values:K7,defaultWidth:"wide"}),day:vr({values:X7,defaultWidth:"wide"}),dayPeriod:vr({values:J7,defaultWidth:"wide",formattingValues:Q7,defaultFormattingWidth:"wide"})},t9=/^(\d+)(th|st|nd|rd)?/i,n9=/\d+/i,r9={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},a9={any:[/^b/i,/^(a|c)/i]},o9={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},i9={any:[/1/i,/2/i,/3/i,/4/i]},s9={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},l9={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]},c9={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},u9={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]},d9={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},f9={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}},p9={ordinalNumber:ly({matchPattern:t9,parsePattern:n9,valueCallback:e=>parseInt(e,10)}),era:gr({matchPatterns:r9,defaultMatchWidth:"wide",parsePatterns:a9,defaultParseWidth:"any"}),quarter:gr({matchPatterns:o9,defaultMatchWidth:"wide",parsePatterns:i9,defaultParseWidth:"any",valueCallback:e=>e+1}),month:gr({matchPatterns:s9,defaultMatchWidth:"wide",parsePatterns:l9,defaultParseWidth:"any"}),day:gr({matchPatterns:c9,defaultMatchWidth:"wide",parsePatterns:u9,defaultParseWidth:"any"}),dayPeriod:gr({matchPatterns:d9,defaultMatchWidth:"any",parsePatterns:f9,defaultParseWidth:"any"})},m9={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},h9={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},v9={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},g9={date:Jo({formats:m9,defaultWidth:"full"}),time:Jo({formats:h9,defaultWidth:"full"}),dateTime:Jo({formats:v9,defaultWidth:"full"})},dy={code:"en-US",formatDistance:U7,formatLong:g9,formatRelative:q7,localize:e9,match:p9,options:{weekStartsOn:0,firstWeekContainsDate:1}},y9={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"}},b9=(e,t,n)=>{let a;const o=y9[e];return typeof o=="string"?a=o:t===1?a=o.one:a=o.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"over "+a:a+" geleden":a},w9={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},k9={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},_9={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},S9={date:Jo({formats:w9,defaultWidth:"full"}),time:Jo({formats:k9,defaultWidth:"full"}),dateTime:Jo({formats:_9,defaultWidth:"full"})},C9={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},x9=(e,t,n,a)=>C9[e],E9={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},T9={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},P9={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"]},A9={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"]},I9={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"}},M9=(e,t)=>Number(e)+"e",N9={ordinalNumber:M9,era:vr({values:E9,defaultWidth:"wide"}),quarter:vr({values:T9,defaultWidth:"wide",argumentCallback:e=>e-1}),month:vr({values:P9,defaultWidth:"wide"}),day:vr({values:A9,defaultWidth:"wide"}),dayPeriod:vr({values:I9,defaultWidth:"wide"})},O9=/^(\d+)e?/i,B9=/\d+/i,L9={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},D9={any:[/^v/,/^n/]},R9={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},$9={any:[/1/i,/2/i,/3/i,/4/i]},z9={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},V9={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]},F9={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},j9={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]},H9={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},U9={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}},W9={ordinalNumber:ly({matchPattern:O9,parsePattern:B9,valueCallback:e=>parseInt(e,10)}),era:gr({matchPatterns:L9,defaultMatchWidth:"wide",parsePatterns:D9,defaultParseWidth:"any"}),quarter:gr({matchPatterns:R9,defaultMatchWidth:"wide",parsePatterns:$9,defaultParseWidth:"any",valueCallback:e=>e+1}),month:gr({matchPatterns:z9,defaultMatchWidth:"wide",parsePatterns:V9,defaultParseWidth:"any"}),day:gr({matchPatterns:F9,defaultMatchWidth:"wide",parsePatterns:j9,defaultParseWidth:"any"}),dayPeriod:gr({matchPatterns:H9,defaultMatchWidth:"any",parsePatterns:U9,defaultParseWidth:"any"})},q9={code:"nl",formatDistance:b9,formatLong:S9,formatRelative:x9,localize:N9,match:W9,options:{weekStartsOn:1,firstWeekContainsDate:4}},Y9=["date","datetime","time","year","month","week"],G9={time:"clock",week:"calendar",date:"calendar",year:"calendar",month:"calendar",datetime:"calendar"};function Qa(e){return Y9.includes(e)}function K9(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 X9(e,t){return{locale:"nl",uid:t,autoApply:!0,clearable:!1,formatLocale:q9,format:K9(e),timePicker:e==="time",weekPicker:e==="week",yearPicker:e==="year",monthPicker:e==="month",enableTimePicker:["time","datetime"].includes(e),teleport:!0,textInput:{...e==="time"?{format:"HH:mm"}:{},...e==="date"?{format:"dd-MM-yyyy"}:{}}}}const J9=["richText"];function fy(e){return J9.includes(e)}function Q9(e){return{apiKey:e,init:{plugins:"link",toolbar:"bold italic underline | link",link_title:!1,theme:"silver",menubar:!1,statusbar:!1,resize:!0,language:"nl",language_url:"/src/modules/plugins/TinyMCE/lang/nl.js",valid_elements:"p,b,strong,i,em,u,a[href|target],span[style|text-decoration=underline]",content_style:"html, body { height: calc(100% - 10px); }",setup:t=>{t.editorManager.IconManager.add("default",{icons:{bold:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 384 512"><path d="M0 56C0 42.7 10.7 32 24 32l48 0 16 0 124 0c68.5 0 124 55.5 124 124c0 34.7-14.3 66.2-37.3 88.7C339.7 264.9 368 307.1 368 356c0 68.5-55.5 124-124 124L88 480l-16 0-48 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-176L48 80 24 80C10.7 80 0 69.3 0 56zM212 232c42 0 76-34 76-76s-34-76-76-76L96 80l0 152 116 0zM96 280l0 152 148 0c42 0 76-34 76-76s-34-76-76-76l-32 0L96 280z"/></svg>',underline:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 448 512"><path d="M16 56c0-13.3 10.7-24 24-24l96 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-24 0 0 144c0 61.9 50.1 112 112 112s112-50.1 112-112l0-144-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l96 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-24 0 0 144c0 88.4-71.6 160-160 160s-160-71.6-160-160L64 80 40 80C26.7 80 16 69.3 16 56zM0 456c0-13.3 10.7-24 24-24l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 480c-13.3 0-24-10.7-24-24z"/></svg>',italic:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 384 512"><path d="M128 56c0-13.3 10.7-24 24-24l208 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-68.7 0L144.7 432l87.3 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 480c-13.3 0-24-10.7-24-24s10.7-24 24-24l68.7 0L239.3 80 152 80c-13.3 0-24-10.7-24-24z"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 640 512"><path d="M580.3 267.2c56.2-56.2 56.2-147.3 0-203.5C526.8 10.2 440.9 7.3 383.9 57.2l-6.1 5.4c-10 8.7-11 23.9-2.3 33.9s23.9 11 33.9 2.3l6.1-5.4c38-33.2 95.2-31.3 130.9 4.4c37.4 37.4 37.4 98.1 0 135.6L433.1 346.6c-37.4 37.4-98.2 37.4-135.6 0c-35.7-35.7-37.6-92.9-4.4-130.9l4.7-5.4c8.7-10 7.7-25.1-2.3-33.9s-25.1-7.7-33.9 2.3l-4.7 5.4c-49.8 57-46.9 142.9 6.6 196.4c56.2 56.2 147.3 56.2 203.5 0L580.3 267.2zM59.7 244.8C3.5 301 3.5 392.1 59.7 448.2c53.6 53.6 139.5 56.4 196.5 6.5l6.1-5.4c10-8.7 11-23.9 2.3-33.9s-23.9-11-33.9-2.3l-6.1 5.4c-38 33.2-95.2 31.3-130.9-4.4c-37.4-37.4-37.4-98.1 0-135.6L207 165.4c37.4-37.4 98.1-37.4 135.6 0c35.7 35.7 37.6 92.9 4.4 130.9l-5.4 6.1c-8.7 10-7.7 25.1 2.3 33.9s25.1 7.7 33.9-2.3l5.4-6.1c49.9-57 47-142.9-6.5-196.5c-56.2-56.2-147.3-56.2-203.5 0L59.7 244.8z"/></svg>',"chevron-left":'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 320 512"><path d="M15 239c-9.4 9.4-9.4 24.6 0 33.9L207 465c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L65.9 256 241 81c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0L15 239z"/></svg>',"chevron-right":'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 320 512"><path d="M305 239c9.4 9.4 9.4 24.6 0 33.9L113 465c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l175-175L79 81c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L305 239z"/></svg>',"chevron-up":'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 512 512"><path d="M239 111c9.4-9.4 24.6-9.4 33.9 0L465 303c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-175-175L81 337c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 111z"/></svg>',"chevron-down":'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 512 512"><path d="M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"/></svg>',close:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 384 512"><path d="M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"/></svg>',checkmark:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 448 512"><path d="M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"/></svg>'}})}}}}const Z9=["location"];function cc(e){return Z9.includes(e)}const eT=["radio","checkbox"];function Qc(e){return eT.includes(e)}const tT=`peer text-zinc-700 appearance-none h-5 w-5 border
607
607
  border-zinc-300 cursor-pointer checked:border-[5px]! checked:border-primary disabled:border-10
608
608
  disabled:border-zinc-100! disabled:cursor-not-allowed focus:border-2 focus:border-primary
609
- focus-visible:outline-hidden`,nT="rounded-md bg-white checked:bg-primary";function rT(e,t){return{[tT]:!0,[nT]:e==="checkbox","rounded-full":e==="radio","border-error!":t}}function Rn(e,t,n){const a=$e(e,n?.in);return isNaN(t)?mt(n?.in||e,NaN):(t&&a.setDate(a.getDate()+t),a)}function nr(e,t,n){const a=$e(e,n?.in);if(isNaN(t))return mt(e,NaN);if(!t)return a;const o=a.getDate(),i=mt(e,a.getTime());i.setMonth(a.getMonth()+t+1,0);const s=i.getDate();return o>=s?i:(a.setFullYear(i.getFullYear(),i.getMonth(),o),a)}function py(e,t,n){const{years:a=0,months:o=0,weeks:i=0,days:s=0,hours:l=0,minutes:c=0,seconds:u=0}=t,d=$e(e,n?.in),f=o||a?nr(d,o+a*12):d,p=s||i?Rn(f,s+i*7):f,m=c+l*60,y=(u+m*60)*1e3;return mt(e,+p+y)}function aT(e,t,n){return mt(e,+$e(e)+t)}function oT(e,t,n){return aT(e,t*uy)}function li(e,t){return ir(e,{...t,weekStartsOn:1})}function my(e,t){const n=$e(e,t?.in),a=n.getFullYear(),o=mt(n,0);o.setFullYear(a+1,0,4),o.setHours(0,0,0,0);const i=li(o),s=mt(n,0);s.setFullYear(a,0,4),s.setHours(0,0,0,0);const l=li(s);return n.getTime()>=i.getTime()?a+1:n.getTime()>=l.getTime()?a:a-1}function uc(e){const t=$e(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Dv(e,t){const n=$e(e,t?.in);return n.setHours(0,0,0,0),n}function hy(e,t,n){const[a,o]=$s(n?.in,e,t),i=Dv(a),s=Dv(o),l=+i-uc(i),c=+s-uc(s);return Math.round((l-c)/z7)}function iT(e,t){const n=my(e,t),a=mt(e,0);return a.setFullYear(n,0,4),a.setHours(0,0,0,0),li(a)}function sT(e,t,n){return nr(e,t*3,n)}function Op(e,t,n){return nr(e,t*12,n)}function Rv(e,t){const n=+$e(e)-+$e(t);return n<0?-1:n>0?1:n}function vy(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function rs(e){return!(!vy(e)&&typeof e!="number"||isNaN(+$e(e)))}function $v(e,t){const n=$e(e,t?.in);return Math.trunc(n.getMonth()/3)+1}function lT(e,t,n){const[a,o]=$s(n?.in,e,t);return a.getFullYear()-o.getFullYear()}function cT(e,t,n){const[a,o]=$s(n?.in,e,t),i=Rv(a,o),s=Math.abs(lT(a,o));a.setFullYear(1584),o.setFullYear(1584);const l=Rv(a,o)===-i,c=i*(s-+l);return c===0?0:c}function gy(e,t){const[n,a]=$s(e,t.start,t.end);return{start:n,end:a}}function yy(e,t){const{start:n,end:a}=gy(t?.in,e);let o=+n>+a;const i=o?+n:+a,s=o?a:n;s.setHours(0,0,0,0);let l=1;const c=[];for(;+s<=i;)c.push(mt(n,s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return o?c.reverse():c}function Za(e,t){const n=$e(e,t?.in),a=n.getMonth(),o=a-a%3;return n.setMonth(o,1),n.setHours(0,0,0,0),n}function uT(e,t){const{start:n,end:a}=gy(t?.in,e);let o=+n>+a;const i=o?+Za(n):+Za(a);let s=Za(o?a:n),l=1;const c=[];for(;+s<=i;)c.push(mt(n,s)),s=sT(s,l);return o?c.reverse():c}function dT(e,t){const n=$e(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function by(e,t){const n=$e(e,t?.in),a=n.getFullYear();return n.setFullYear(a+1,0,0),n.setHours(23,59,59,999),n}function bs(e,t){const n=$e(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function wy(e,t){const n=_o(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=$e(e,t?.in),i=o.getDay(),s=(i<a?-7:0)+6-(i-a);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function zv(e,t){const n=$e(e,t?.in),a=n.getMonth(),o=a-a%3+3;return n.setMonth(o,0),n.setHours(23,59,59,999),n}function fT(e,t){const n=$e(e,t?.in);return hy(n,bs(n))+1}function Bp(e,t){const n=$e(e,t?.in),a=+li(n)-+iT(n);return Math.round(a/cy)+1}function Lp(e,t){const n=$e(e,t?.in),a=n.getFullYear(),o=_o(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=mt(t?.in||e,0);s.setFullYear(a+1,0,i),s.setHours(0,0,0,0);const l=ir(s,t),c=mt(t?.in||e,0);c.setFullYear(a,0,i),c.setHours(0,0,0,0);const u=ir(c,t);return+n>=+l?a+1:+n>=+u?a:a-1}function pT(e,t){const n=_o(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Lp(e,t),i=mt(t?.in||e,0);return i.setFullYear(o,0,a),i.setHours(0,0,0,0),ir(i,t)}function Dp(e,t){const n=$e(e,t?.in),a=+ir(n,t)-+pT(n,t);return Math.round(a/cy)+1}function pt(e,t){const n=e<0?"-":"",a=Math.abs(e).toString().padStart(t,"0");return n+a}const ca={y(e,t){const n=e.getFullYear(),a=n>0?n:1-n;return pt(t==="yy"?a%100:a,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):pt(n+1,2)},d(e,t){return pt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return pt(e.getHours()%12||12,t.length)},H(e,t){return pt(e.getHours(),t.length)},m(e,t){return pt(e.getMinutes(),t.length)},s(e,t){return pt(e.getSeconds(),t.length)},S(e,t){const n=t.length,a=e.getMilliseconds(),o=Math.trunc(a*Math.pow(10,n-3));return pt(o,t.length)}},Lo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Vv={G:function(e,t,n){const a=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const a=e.getFullYear(),o=a>0?a:1-a;return n.ordinalNumber(o,{unit:"year"})}return ca.y(e,t)},Y:function(e,t,n,a){const o=Lp(e,a),i=o>0?o:1-o;if(t==="YY"){const s=i%100;return pt(s,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):pt(i,t.length)},R:function(e,t){const n=my(e);return pt(n,t.length)},u:function(e,t){const n=e.getFullYear();return pt(n,t.length)},Q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return pt(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return pt(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,n){const a=e.getMonth();switch(t){case"M":case"MM":return ca.M(e,t);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,n){const a=e.getMonth();switch(t){case"L":return String(a+1);case"LL":return pt(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,n,a){const o=Dp(e,a);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):pt(o,t.length)},I:function(e,t,n){const a=Bp(e);return t==="Io"?n.ordinalNumber(a,{unit:"week"}):pt(a,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):ca.d(e,t)},D:function(e,t,n){const a=fT(e);return t==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):pt(a,t.length)},E:function(e,t,n){const a=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,n,a){const o=e.getDay(),i=(o-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return pt(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,a){const o=e.getDay(),i=(o-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return pt(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const a=e.getDay(),o=a===0?7:a;switch(t){case"i":return String(o);case"ii":return pt(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const a=e.getHours();let o;switch(a===12?o=Lo.noon:a===0?o=Lo.midnight:o=a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const a=e.getHours();let o;switch(a>=17?o=Lo.evening:a>=12?o=Lo.afternoon:a>=4?o=Lo.morning:o=Lo.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let a=e.getHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return ca.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):ca.H(e,t)},K:function(e,t,n){const a=e.getHours()%12;return t==="Ko"?n.ordinalNumber(a,{unit:"hour"}):pt(a,t.length)},k:function(e,t,n){let a=e.getHours();return a===0&&(a=24),t==="ko"?n.ordinalNumber(a,{unit:"hour"}):pt(a,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ca.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ca.s(e,t)},S:function(e,t){return ca.S(e,t)},X:function(e,t,n){const a=e.getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return jv(a);case"XXXX":case"XX":return Ua(a);case"XXXXX":case"XXX":default:return Ua(a,":")}},x:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"x":return jv(a);case"xxxx":case"xx":return Ua(a);case"xxxxx":case"xxx":default:return Ua(a,":")}},O:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Fv(a,":");case"OOOO":default:return"GMT"+Ua(a,":")}},z:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Fv(a,":");case"zzzz":default:return"GMT"+Ua(a,":")}},t:function(e,t,n){const a=Math.trunc(+e/1e3);return pt(a,t.length)},T:function(e,t,n){return pt(+e,t.length)}};function Fv(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),o=Math.trunc(a/60),i=a%60;return i===0?n+String(o):n+String(o)+t+pt(i,2)}function jv(e,t){return e%60===0?(e>0?"-":"+")+pt(Math.abs(e)/60,2):Ua(e,t)}function Ua(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),o=pt(Math.trunc(a/60),2),i=pt(a%60,2);return n+o+t+i}const Hv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},ky=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},mT=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],a=n[1],o=n[2];if(!o)return Hv(e,t);let i;switch(a){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",Hv(a,t)).replace("{{time}}",ky(o,t))},pf={p:ky,P:mT},hT=/^D+$/,vT=/^Y+$/,gT=["D","DD","YY","YYYY"];function _y(e){return hT.test(e)}function Sy(e){return vT.test(e)}function mf(e,t,n){const a=yT(e,t,n);if(console.warn(a),gT.includes(e))throw new RangeError(a)}function yT(e,t,n){const a=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${a} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const bT=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wT=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,kT=/^'([^]*?)'?$/,_T=/''/g,ST=/[a-zA-Z]/;function Tr(e,t,n){const a=_o(),o=n?.locale??a.locale??dy,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,l=$e(e,n?.in);if(!rs(l))throw new RangeError("Invalid time value");let c=t.match(wT).map(d=>{const f=d[0];if(f==="p"||f==="P"){const p=pf[f];return p(d,o.formatLong)}return d}).join("").match(bT).map(d=>{if(d==="''")return{isToken:!1,value:"'"};const f=d[0];if(f==="'")return{isToken:!1,value:CT(d)};if(Vv[f])return{isToken:!0,value:d};if(f.match(ST))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:d}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const u={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return c.map(d=>{if(!d.isToken)return d.value;const f=d.value;(!n?.useAdditionalWeekYearTokens&&Sy(f)||!n?.useAdditionalDayOfYearTokens&&_y(f))&&mf(f,t,String(e));const p=Vv[f[0]];return p(l,f,o.localize,u)}).join("")}function CT(e){const t=e.match(kT);return t?t[1].replace(_T,"'"):e}function xT(e,t){return $e(e,t?.in).getDay()}function ET(e,t){const n=$e(e,t?.in),a=n.getFullYear(),o=n.getMonth(),i=mt(n,0);return i.setFullYear(a,o+1,0),i.setHours(0,0,0,0),i.getDate()}function TT(){return Object.assign({},_o())}function Kr(e,t){return $e(e,t?.in).getHours()}function PT(e,t){const n=$e(e,t?.in).getDay();return n===0?7:n}function ka(e,t){return $e(e,t?.in).getMinutes()}function Ke(e,t){return $e(e,t?.in).getMonth()}function ci(e){return $e(e).getSeconds()}function Fe(e,t){return $e(e,t?.in).getFullYear()}function mo(e,t){return+$e(e)>+$e(t)}function ui(e,t){return+$e(e)<+$e(t)}function Wo(e,t){return+$e(e)==+$e(t)}function AT(e,t){const n=IT(t)?new t(0):mt(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function IT(e){return typeof e=="function"&&e.prototype?.constructor===e}const MT=10;class Cy{subPriority=0;validate(t,n){return!0}}class NT extends Cy{constructor(t,n,a,o,i){super(),this.value=t,this.validateValue=n,this.setValue=a,this.priority=o,i&&(this.subPriority=i)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,a){return this.setValue(t,n,this.value,a)}}class OT extends Cy{priority=MT;subPriority=-1;constructor(t,n){super(),this.context=t||(a=>mt(n,a))}set(t,n){return n.timestampIsSet?t:mt(t,AT(t,this.context))}}class it{run(t,n,a,o){const i=this.parse(t,n,a,o);return i?{setter:new NT(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,n,a){return!0}}class BT extends it{priority=140;parse(t,n,a){switch(n){case"G":case"GG":case"GGG":return a.era(t,{width:"abbreviated"})||a.era(t,{width:"narrow"});case"GGGGG":return a.era(t,{width:"narrow"});case"GGGG":default:return a.era(t,{width:"wide"})||a.era(t,{width:"abbreviated"})||a.era(t,{width:"narrow"})}}set(t,n,a){return n.era=a,t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]}const Dt={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}/},yr={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 Rt(e,t){return e&&{value:t(e.value),rest:e.rest}}function At(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function br(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const a=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:a*(o*uy+i*V7+s*F7),rest:t.slice(n[0].length)}}function xy(e){return At(Dt.anyDigitsSigned,e)}function Nt(e,t){switch(e){case 1:return At(Dt.singleDigit,t);case 2:return At(Dt.twoDigits,t);case 3:return At(Dt.threeDigits,t);case 4:return At(Dt.fourDigits,t);default:return At(new RegExp("^\\d{1,"+e+"}"),t)}}function dc(e,t){switch(e){case 1:return At(Dt.singleDigitSigned,t);case 2:return At(Dt.twoDigitsSigned,t);case 3:return At(Dt.threeDigitsSigned,t);case 4:return At(Dt.fourDigitsSigned,t);default:return At(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Rp(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 Ey(e,t){const n=t>0,a=n?t:1-t;let o;if(a<=50)o=e||100;else{const i=a+50,s=Math.trunc(i/100)*100,l=e>=i%100;o=e+s-(l?100:0)}return n?o:1-o}function Ty(e){return e%400===0||e%4===0&&e%100!==0}class LT extends it{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,n,a){const o=i=>({year:i,isTwoDigitYear:n==="yy"});switch(n){case"y":return Rt(Nt(4,t),o);case"yo":return Rt(a.ordinalNumber(t,{unit:"year"}),o);default:return Rt(Nt(n.length,t),o)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,a){const o=t.getFullYear();if(a.isTwoDigitYear){const s=Ey(a.year,o);return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}const i=!("era"in n)||n.era===1?a.year:1-a.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}}class DT extends it{priority=130;parse(t,n,a){const o=i=>({year:i,isTwoDigitYear:n==="YY"});switch(n){case"Y":return Rt(Nt(4,t),o);case"Yo":return Rt(a.ordinalNumber(t,{unit:"year"}),o);default:return Rt(Nt(n.length,t),o)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,a,o){const i=Lp(t,o);if(a.isTwoDigitYear){const l=Ey(a.year,i);return t.setFullYear(l,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),ir(t,o)}const s=!("era"in n)||n.era===1?a.year:1-a.year;return t.setFullYear(s,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),ir(t,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class RT extends it{priority=130;parse(t,n){return dc(n==="R"?4:n.length,t)}set(t,n,a){const o=mt(t,0);return o.setFullYear(a,0,4),o.setHours(0,0,0,0),li(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class $T extends it{priority=130;parse(t,n){return dc(n==="u"?4:n.length,t)}set(t,n,a){return t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class zT extends it{priority=120;parse(t,n,a){switch(n){case"Q":case"QQ":return Nt(n.length,t);case"Qo":return a.ordinalNumber(t,{unit:"quarter"});case"QQQ":return a.quarter(t,{width:"abbreviated",context:"formatting"})||a.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(t,{width:"wide",context:"formatting"})||a.quarter(t,{width:"abbreviated",context:"formatting"})||a.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=1&&n<=4}set(t,n,a){return t.setMonth((a-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class VT extends it{priority=120;parse(t,n,a){switch(n){case"q":case"qq":return Nt(n.length,t);case"qo":return a.ordinalNumber(t,{unit:"quarter"});case"qqq":return a.quarter(t,{width:"abbreviated",context:"standalone"})||a.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(t,{width:"wide",context:"standalone"})||a.quarter(t,{width:"abbreviated",context:"standalone"})||a.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=1&&n<=4}set(t,n,a){return t.setMonth((a-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class FT extends it{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,n,a){const o=i=>i-1;switch(n){case"M":return Rt(At(Dt.month,t),o);case"MM":return Rt(Nt(2,t),o);case"Mo":return Rt(a.ordinalNumber(t,{unit:"month"}),o);case"MMM":return a.month(t,{width:"abbreviated",context:"formatting"})||a.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(t,{width:"wide",context:"formatting"})||a.month(t,{width:"abbreviated",context:"formatting"})||a.month(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=11}set(t,n,a){return t.setMonth(a,1),t.setHours(0,0,0,0),t}}class jT extends it{priority=110;parse(t,n,a){const o=i=>i-1;switch(n){case"L":return Rt(At(Dt.month,t),o);case"LL":return Rt(Nt(2,t),o);case"Lo":return Rt(a.ordinalNumber(t,{unit:"month"}),o);case"LLL":return a.month(t,{width:"abbreviated",context:"standalone"})||a.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(t,{width:"wide",context:"standalone"})||a.month(t,{width:"abbreviated",context:"standalone"})||a.month(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=11}set(t,n,a){return t.setMonth(a,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function HT(e,t,n){const a=$e(e,n?.in),o=Dp(a,n)-t;return a.setDate(a.getDate()-o*7),$e(a,n?.in)}class UT extends it{priority=100;parse(t,n,a){switch(n){case"w":return At(Dt.week,t);case"wo":return a.ordinalNumber(t,{unit:"week"});default:return Nt(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,a,o){return ir(HT(t,a,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function WT(e,t,n){const a=$e(e,n?.in),o=Bp(a,n)-t;return a.setDate(a.getDate()-o*7),a}class qT extends it{priority=100;parse(t,n,a){switch(n){case"I":return At(Dt.week,t);case"Io":return a.ordinalNumber(t,{unit:"week"});default:return Nt(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,a){return li(WT(t,a))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const YT=[31,28,31,30,31,30,31,31,30,31,30,31],GT=[31,29,31,30,31,30,31,31,30,31,30,31];class KT extends it{priority=90;subPriority=1;parse(t,n,a){switch(n){case"d":return At(Dt.date,t);case"do":return a.ordinalNumber(t,{unit:"date"});default:return Nt(n.length,t)}}validate(t,n){const a=t.getFullYear(),o=Ty(a),i=t.getMonth();return o?n>=1&&n<=GT[i]:n>=1&&n<=YT[i]}set(t,n,a){return t.setDate(a),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class XT extends it{priority=90;subpriority=1;parse(t,n,a){switch(n){case"D":case"DD":return At(Dt.dayOfYear,t);case"Do":return a.ordinalNumber(t,{unit:"date"});default:return Nt(n.length,t)}}validate(t,n){const a=t.getFullYear();return Ty(a)?n>=1&&n<=366:n>=1&&n<=365}set(t,n,a){return t.setMonth(0,a),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function $p(e,t,n){const a=_o(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,i=$e(e,n?.in),s=i.getDay(),c=(t%7+7)%7,u=7-o,d=t<0||t>6?t-(s+u)%7:(c+u)%7-(s+u)%7;return Rn(i,d,n)}class JT extends it{priority=90;parse(t,n,a){switch(n){case"E":case"EE":case"EEE":return a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(t,{width:"wide",context:"formatting"})||a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,a,o){return t=$p(t,a,o),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]}class QT extends it{priority=90;parse(t,n,a,o){const i=s=>{const l=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+l};switch(n){case"e":case"ee":return Rt(Nt(n.length,t),i);case"eo":return Rt(a.ordinalNumber(t,{unit:"day"}),i);case"eee":return a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"eeeee":return a.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(t,{width:"wide",context:"formatting"})||a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,a,o){return t=$p(t,a,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class ZT extends it{priority=90;parse(t,n,a,o){const i=s=>{const l=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+l};switch(n){case"c":case"cc":return Rt(Nt(n.length,t),i);case"co":return Rt(a.ordinalNumber(t,{unit:"day"}),i);case"ccc":return a.day(t,{width:"abbreviated",context:"standalone"})||a.day(t,{width:"short",context:"standalone"})||a.day(t,{width:"narrow",context:"standalone"});case"ccccc":return a.day(t,{width:"narrow",context:"standalone"});case"cccccc":return a.day(t,{width:"short",context:"standalone"})||a.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(t,{width:"wide",context:"standalone"})||a.day(t,{width:"abbreviated",context:"standalone"})||a.day(t,{width:"short",context:"standalone"})||a.day(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=6}set(t,n,a,o){return t=$p(t,a,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function eP(e,t,n){const a=$e(e,n?.in),o=PT(a,n),i=t-o;return Rn(a,i,n)}class tP extends it{priority=90;parse(t,n,a){const o=i=>i===0?7:i;switch(n){case"i":case"ii":return Nt(n.length,t);case"io":return a.ordinalNumber(t,{unit:"day"});case"iii":return Rt(a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return Rt(a.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return Rt(a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"}),o);case"iiii":default:return Rt(a.day(t,{width:"wide",context:"formatting"})||a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,n){return n>=1&&n<=7}set(t,n,a){return t=eP(t,a),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class nP extends it{priority=80;parse(t,n,a){switch(n){case"a":case"aa":case"aaa":return a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(t,{width:"wide",context:"formatting"})||a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,a){return t.setHours(Rp(a),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]}class rP extends it{priority=80;parse(t,n,a){switch(n){case"b":case"bb":case"bbb":return a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(t,{width:"wide",context:"formatting"})||a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,a){return t.setHours(Rp(a),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]}class aP extends it{priority=80;parse(t,n,a){switch(n){case"B":case"BB":case"BBB":return a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(t,{width:"wide",context:"formatting"})||a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,a){return t.setHours(Rp(a),0,0,0),t}incompatibleTokens=["a","b","t","T"]}class oP extends it{priority=70;parse(t,n,a){switch(n){case"h":return At(Dt.hour12h,t);case"ho":return a.ordinalNumber(t,{unit:"hour"});default:return Nt(n.length,t)}}validate(t,n){return n>=1&&n<=12}set(t,n,a){const o=t.getHours()>=12;return o&&a<12?t.setHours(a+12,0,0,0):!o&&a===12?t.setHours(0,0,0,0):t.setHours(a,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]}class iP extends it{priority=70;parse(t,n,a){switch(n){case"H":return At(Dt.hour23h,t);case"Ho":return a.ordinalNumber(t,{unit:"hour"});default:return Nt(n.length,t)}}validate(t,n){return n>=0&&n<=23}set(t,n,a){return t.setHours(a,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]}class sP extends it{priority=70;parse(t,n,a){switch(n){case"K":return At(Dt.hour11h,t);case"Ko":return a.ordinalNumber(t,{unit:"hour"});default:return Nt(n.length,t)}}validate(t,n){return n>=0&&n<=11}set(t,n,a){return t.getHours()>=12&&a<12?t.setHours(a+12,0,0,0):t.setHours(a,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]}class lP extends it{priority=70;parse(t,n,a){switch(n){case"k":return At(Dt.hour24h,t);case"ko":return a.ordinalNumber(t,{unit:"hour"});default:return Nt(n.length,t)}}validate(t,n){return n>=1&&n<=24}set(t,n,a){const o=a<=24?a%24:a;return t.setHours(o,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]}class cP extends it{priority=60;parse(t,n,a){switch(n){case"m":return At(Dt.minute,t);case"mo":return a.ordinalNumber(t,{unit:"minute"});default:return Nt(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,a){return t.setMinutes(a,0,0),t}incompatibleTokens=["t","T"]}class uP extends it{priority=50;parse(t,n,a){switch(n){case"s":return At(Dt.second,t);case"so":return a.ordinalNumber(t,{unit:"second"});default:return Nt(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,a){return t.setSeconds(a,0),t}incompatibleTokens=["t","T"]}class dP extends it{priority=30;parse(t,n){const a=o=>Math.trunc(o*Math.pow(10,-n.length+3));return Rt(Nt(n.length,t),a)}set(t,n,a){return t.setMilliseconds(a),t}incompatibleTokens=["t","T"]}class fP extends it{priority=10;parse(t,n){switch(n){case"X":return br(yr.basicOptionalMinutes,t);case"XX":return br(yr.basic,t);case"XXXX":return br(yr.basicOptionalSeconds,t);case"XXXXX":return br(yr.extendedOptionalSeconds,t);case"XXX":default:return br(yr.extended,t)}}set(t,n,a){return n.timestampIsSet?t:mt(t,t.getTime()-uc(t)-a)}incompatibleTokens=["t","T","x"]}class pP extends it{priority=10;parse(t,n){switch(n){case"x":return br(yr.basicOptionalMinutes,t);case"xx":return br(yr.basic,t);case"xxxx":return br(yr.basicOptionalSeconds,t);case"xxxxx":return br(yr.extendedOptionalSeconds,t);case"xxx":default:return br(yr.extended,t)}}set(t,n,a){return n.timestampIsSet?t:mt(t,t.getTime()-uc(t)-a)}incompatibleTokens=["t","T","X"]}class mP extends it{priority=40;parse(t){return xy(t)}set(t,n,a){return[mt(t,a*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class hP extends it{priority=20;parse(t){return xy(t)}set(t,n,a){return[mt(t,a),{timestampIsSet:!0}]}incompatibleTokens="*"}const vP={G:new BT,y:new LT,Y:new DT,R:new RT,u:new $T,Q:new zT,q:new VT,M:new FT,L:new jT,w:new UT,I:new qT,d:new KT,D:new XT,E:new JT,e:new QT,c:new ZT,i:new tP,a:new nP,b:new rP,B:new aP,h:new oP,H:new iP,K:new sP,k:new lP,m:new cP,s:new uP,S:new dP,X:new fP,x:new pP,t:new mP,T:new hP},gP=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yP=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,bP=/^'([^]*?)'?$/,wP=/''/g,kP=/\S/,_P=/[a-zA-Z]/;function hf(e,t,n,a){const o=()=>mt(a?.in||n,NaN),i=TT(),s=a?.locale??i.locale??dy,l=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,c=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!t)return e?o():$e(n,a?.in);const u={firstWeekContainsDate:l,weekStartsOn:c,locale:s},d=[new OT(a?.in,n)],f=t.match(yP).map(w=>{const b=w[0];if(b in pf){const E=pf[b];return E(w,s.formatLong)}return w}).join("").match(gP),p=[];for(let w of f){!a?.useAdditionalWeekYearTokens&&Sy(w)&&mf(w,t,e),!a?.useAdditionalDayOfYearTokens&&_y(w)&&mf(w,t,e);const b=w[0],E=vP[b];if(E){const{incompatibleTokens:_}=E;if(Array.isArray(_)){const x=p.find(C=>_.includes(C.token)||C.token===b);if(x)throw new RangeError(`The format string mustn't contain \`${x.fullToken}\` and \`${w}\` at the same time`)}else if(E.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${w}\` and any other token at the same time`);p.push({token:b,fullToken:w});const g=E.run(e,w,s.match,u);if(!g)return o();d.push(g.setter),e=g.rest}else{if(b.match(_P))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");if(w==="''"?w="'":b==="'"&&(w=SP(w)),e.indexOf(w)===0)e=e.slice(w.length);else return o()}}if(e.length>0&&kP.test(e))return o();const m=d.map(w=>w.priority).sort((w,b)=>b-w).filter((w,b,E)=>E.indexOf(w)===b).map(w=>d.filter(b=>b.priority===w).sort((b,E)=>E.subPriority-b.subPriority)).map(w=>w[0]);let v=$e(n,a?.in);if(isNaN(+v))return o();const y={};for(const w of m){if(!w.validate(v,u))return o();const b=w.set(v,y,u);Array.isArray(b)?(v=b[0],Object.assign(y,b[1])):v=b}return v}function SP(e){return e.match(bP)[1].replace(wP,"'")}function Uv(e,t,n){const[a,o]=$s(n?.in,e,t);return+Za(a)==+Za(o)}function Py(e,t,n){return Rn(e,-t,n)}function Ay(e,t,n){const a=$e(e,n?.in),o=a.getFullYear(),i=a.getDate(),s=mt(e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);const l=ET(s);return a.setMonth(t,Math.min(i,l)),a}function ht(e,t,n){let a=$e(e,n?.in);return isNaN(+a)?mt(e,NaN):(t.year!=null&&a.setFullYear(t.year),t.month!=null&&(a=Ay(a,t.month)),t.date!=null&&a.setDate(t.date),t.hours!=null&&a.setHours(t.hours),t.minutes!=null&&a.setMinutes(t.minutes),t.seconds!=null&&a.setSeconds(t.seconds),t.milliseconds!=null&&a.setMilliseconds(t.milliseconds),a)}function CP(e,t,n){const a=$e(e,n?.in);return a.setHours(t),a}function Iy(e,t,n){const a=$e(e,n?.in);return a.setMilliseconds(t),a}function xP(e,t,n){const a=$e(e,n?.in);return a.setMinutes(t),a}function My(e,t,n){const a=$e(e,n?.in);return a.setSeconds(t),a}function _r(e,t,n){const a=$e(e,n?.in);return isNaN(+a)?mt(e,NaN):(a.setFullYear(t),a)}function di(e,t,n){return nr(e,-t,n)}function EP(e,t,n){const{years:a=0,months:o=0,weeks:i=0,days:s=0,hours:l=0,minutes:c=0,seconds:u=0}=t,d=di(e,o+a*12,n),f=Py(d,s+i*7,n),p=c+l*60,v=(u+p*60)*1e3;return mt(e,+f-v)}function Ny(e,t,n){return Op(e,-t,n)}function Ai(){const e=r.useAttrs();return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img",...e},[r.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"}),r.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"}),r.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"}),r.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"})])}Ai.compatConfig={MODE:3};function Oy(){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[r.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"}),r.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"})])}Oy.compatConfig={MODE:3};function zp(){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[r.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"})])}zp.compatConfig={MODE:3};function Vp(){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[r.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"})])}Vp.compatConfig={MODE:3};function Fp(){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[r.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"}),r.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"})])}Fp.compatConfig={MODE:3};function jp(){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[r.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"})])}jp.compatConfig={MODE:3};function Hp(){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[r.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"})])}Hp.compatConfig={MODE:3};const Cn=(e,t)=>t?new Date(e.toLocaleString("en-US",{timeZone:t})):new Date(e),Up=(e,t,n)=>vf(e,t,n)||me(),TP=(e,t,n)=>{const a=t.dateInTz?Cn(new Date(e),t.dateInTz):me(e);return n?Gt(a,!0):a},vf=(e,t,n)=>{if(!e)return null;const a=n?Gt(me(e),!0):me(e);return t?t.exactMatch?TP(e,t,n):Cn(a,t.timezone):a},PP=e=>{const t=new Date(e.getFullYear(),0,1).getTimezoneOffset();return e.getTimezoneOffset()<t},AP=(e,t)=>{if(!e)return 0;const n=new Date,a=new Date(n.toLocaleString("en-US",{timeZone:"UTC"})),o=new Date(n.toLocaleString("en-US",{timeZone:e})),i=(PP(t??o)?o:t??o).getTimezoneOffset()/60;return(+a-+o)/(1e3*60*60)-i};var qn=(e=>(e.month="month",e.year="year",e))(qn||{}),Yn=(e=>(e.top="top",e.bottom="bottom",e))(Yn||{}),ao=(e=>(e.header="header",e.calendar="calendar",e.timePicker="timePicker",e))(ao||{}),ln=(e=>(e.month="month",e.year="year",e.calendar="calendar",e.time="time",e.minutes="minutes",e.hours="hours",e.seconds="seconds",e))(ln||{});const IP=["timestamp","date","iso"];var un=(e=>(e.up="up",e.down="down",e.left="left",e.right="right",e))(un||{}),_t=(e=>(e.arrowUp="ArrowUp",e.arrowDown="ArrowDown",e.arrowLeft="ArrowLeft",e.arrowRight="ArrowRight",e.enter="Enter",e.space=" ",e.esc="Escape",e.tab="Tab",e.home="Home",e.end="End",e.pageUp="PageUp",e.pageDown="PageDown",e))(_t||{}),Qo=(e=>(e.MONTH_AND_YEAR="MM-yyyy",e.YEAR="yyyy",e.DATE="dd-MM-yyyy",e))(Qo||{});function Wv(e){return t=>{const n=new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${t}T00:00:00+00:00`));return e==="ar"?n.slice(2,5):n.slice(0,2)}}function MP(e){return t=>Tr(Cn(new Date(`2017-01-0${t}T00:00:00+00:00`),"UTC"),"EEEEEE",{locale:e})}const NP=(e,t,n)=>{const a=[1,2,3,4,5,6,7];let o;if(e!==null)try{o=a.map(MP(e))}catch{o=a.map(Wv(t))}else o=a.map(Wv(t));const i=o.slice(0,n),s=o.slice(n+1,o.length);return[o[n]].concat(...s).concat(...i)},Wp=(e,t,n)=>{const a=[];for(let o=+e[0];o<=+e[1];o++)a.push({value:+o,text:Ry(o,t)});return n?a.reverse():a},By=(e,t,n)=>{const a=[1,2,3,4,5,6,7,8,9,10,11,12].map(i=>{const s=i<10?`0${i}`:i;return new Date(`2017-${s}-01T00:00:00+00:00`)});if(e!==null)try{const i=n==="long"?"LLLL":"LLL";return a.map((s,l)=>{const c=Tr(Cn(s,"UTC"),i,{locale:e});return{text:c.charAt(0).toUpperCase()+c.substring(1),value:l}})}catch{}const o=new Intl.DateTimeFormat(t,{month:n,timeZone:"UTC"});return a.map((i,s)=>{const l=o.format(i);return{text:l.charAt(0).toUpperCase()+l.substring(1),value:s}})},OP=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],jt=e=>{const t=r.unref(e);return t!=null&&t.$el?t?.$el:t},BP=e=>({type:"dot",...e??{}}),Ly=e=>Array.isArray(e)?!!e[0]&&!!e[1]:!1,qp={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,qv=e=>e===0?e:!e||isNaN(+e)?null:+e,Yv=e=>e===null,Dy=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},LP=e=>{const t=[],n=a=>a.filter(o=>o);for(let a=0;a<e.length;a+=3){const o=[e[a],e[a+1],e[a+2]];t.push(n(o))}return t},ws=(e,t,n)=>{const a=n!=null,o=t!=null;if(!a&&!o)return!1;const i=+n,s=+t;return a&&o?+e>i||+e<s:a?+e>i:o?+e<s:!1},fi=(e,t)=>LP(e).map(n=>n.map(a=>{const{active:o,disabled:i,isBetween:s,highlighted:l}=t(a);return{...a,active:o,disabled:i,className:{dp__overlay_cell_active:o,dp__overlay_cell:!o,dp__overlay_cell_disabled:i,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:i&&o,dp__cell_in_between:s,"dp--highlighted":l}}})),ma=(e,t,n=!1)=>{e&&t.allowStopPropagation&&(n&&e.stopImmediatePropagation(),e.stopPropagation())},DP=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", ");function RP(e,t){let n=[...document.querySelectorAll(DP())];n=n.filter(o=>!e.contains(o)||o.hasAttribute("data-datepicker-instance"));const a=n.indexOf(e);if(a>=0&&(t?a-1>=0:a+1<=n.length))return n[a+(t?-1:1)]}const gf=(e,t)=>e?.querySelector(`[data-dp-element="${t}"]`),Ry=(e,t)=>new Intl.NumberFormat(t,{useGrouping:!1,style:"decimal"}).format(e),Yp=(e,t)=>Tr(e,t??Qo.DATE),td=e=>Array.isArray(e),fc=(e,t,n)=>t.get(Yp(e,n)),$P=(e,t)=>e?t?t instanceof Map?!!fc(e,t):t(me(e)):!1:!0,mn=(e,t,n=!1,a)=>{if(e.key===_t.enter||e.key===_t.space)return n&&e.preventDefault(),t();if(a)return a(e)},zP=()=>"ontouchstart"in window||navigator.maxTouchPoints>0,$y=(e,t)=>e?Qo.MONTH_AND_YEAR:t?Qo.YEAR:Qo.DATE,zy=e=>e<10?`0${e}`:e,Gv=(e,t,n,a,o,i)=>{const s=hf(e,t.slice(0,e.length),new Date,{locale:i});return rs(s)&&vy(s)?a||o?s:ht(s,{hours:+n.hours,minutes:+n?.minutes,seconds:+n?.seconds,milliseconds:0}):null},VP=(e,t,n,a,o,i)=>{const s=Array.isArray(n)?n[0]:n;if(typeof t=="string")return Gv(e,t,s,a,o,i);if(Array.isArray(t)){let l=null;for(const c of t)if(l=Gv(e,c,s,a,o,i),l)break;return l}return typeof t=="function"?t(e):null},me=e=>e?new Date(e):new Date,FP=(e,t,n)=>{if(t){const o=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),s=e.getHours().toString().padStart(2,"0"),l=e.getMinutes().toString().padStart(2,"0"),c=n?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${o}-${i}T${s}:${l}:${c}.000Z`}const a=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(a).toISOString()},Gt=(e,t)=>{const n=me(JSON.parse(JSON.stringify(e))),a=ht(n,{hours:0,minutes:0,seconds:0,milliseconds:0});return t?dT(a):a},ha=(e,t,n,a)=>{let o=e?me(e):me();return(t||t===0)&&(o=CP(o,+t)),(n||n===0)&&(o=xP(o,+n)),(a||a===0)&&(o=My(o,+a)),Iy(o,0)},Mt=(e,t)=>!e||!t?!1:ui(Gt(e),Gt(t)),Xe=(e,t)=>!e||!t?!1:Wo(Gt(e),Gt(t)),Lt=(e,t)=>!e||!t?!1:mo(Gt(e),Gt(t)),ks=(e,t,n)=>e!=null&&e[0]&&e!=null&&e[1]?Lt(n,e[0])&&Mt(n,e[1]):e!=null&&e[0]&&t?Lt(n,e[0])&&Mt(n,t)||Mt(n,e[0])&&Lt(n,t):!1,Qn=e=>{const t=ht(new Date(e),{date:1});return Gt(t)},nd=(e,t,n)=>t&&(n||n===0)?Object.fromEntries(["hours","minutes","seconds"].map(a=>a===t?[a,n]:[a,isNaN(+e[a])?void 0:+e[a]])):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},oo=e=>({hours:Kr(e),minutes:ka(e),seconds:ci(e)}),Vy=(e,t)=>{if(t){const n=Fe(me(t));if(n>e)return 12;if(n===e)return Ke(me(t))}},Fy=(e,t)=>{if(t){const n=Fe(me(t));return n<e?-1:n===e?Ke(me(t)):void 0}},pi=e=>{if(e)return Fe(me(e))},jy=(e,t)=>{const n=Lt(e,t)?t:e,a=Lt(t,e)?t:e;return yy({start:n,end:a})},jP=e=>{const t=nr(e,1);return{month:Ke(t),year:Fe(t)}},Vr=(e,t)=>{const n=ir(e,{weekStartsOn:+t}),a=wy(e,{weekStartsOn:+t});return[n,a]},Hy=(e,t)=>{const n={hours:Kr(me()),minutes:ka(me()),seconds:t?ci(me()):0};return Object.assign(n,e)},pa=(e,t,n)=>[ht(me(e),{date:1}),ht(me(),{month:t,year:n,date:1})],Fr=(e,t,n)=>{let a=e?me(e):me();return(t||t===0)&&(a=Ay(a,t)),n&&(a=_r(a,n)),a},Uy=(e,t,n,a,o)=>{if(!a||o&&!t||!o&&!n)return!1;const i=o?nr(e,1):di(e,1),s=[Ke(i),Fe(i)];return o?!UP(...s,t):!HP(...s,n)},HP=(e,t,n)=>Mt(...pa(n,e,t))||Xe(...pa(n,e,t)),UP=(e,t,n)=>Lt(...pa(n,e,t))||Xe(...pa(n,e,t)),Wy=(e,t,n,a,o,i,s)=>{if(typeof t=="function"&&!s)return t(e);const l=n?{locale:n}:void 0;return Array.isArray(e)?`${Tr(e[0],i,l)}${o&&!e[1]?"":a}${e[1]?Tr(e[1],i,l):""}`:Tr(e,i,l)},Do=e=>{if(e)return null;throw new Error(qp.prop("partial-range"))},gl=(e,t)=>{if(t)return e();throw new Error(qp.prop("range"))},yf=e=>Array.isArray(e)?rs(e[0])&&(e[1]?rs(e[1]):!0):e?rs(e):!1,WP=(e,t)=>ht(t??me(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0}),rd=(e,t,n,a)=>{if(!e)return!0;if(a){const o=n==="max"?ui(e,t):mo(e,t),i={seconds:0,milliseconds:0};return o||Wo(ht(e,i),ht(t,i))}return n==="max"?e.getTime()<=t.getTime():e.getTime()>=t.getTime()},ad=(e,t,n)=>e?WP(e,t):me(n??t),Kv=(e,t,n,a,o)=>{if(Array.isArray(a)){const s=ad(e,a[0],t),l=ad(e,a[1],t);return rd(a[0],s,n,!!t)&&rd(a[1],l,n,!!t)&&o}const i=ad(e,a,t);return rd(a,i,n,!!t)&&o},od=e=>ht(me(),oo(e)),qP=(e,t,n)=>{if(e instanceof Map){const a=`${zy(n+1)}-${t}`;return e.size?e.has(a):!1}return typeof e=="function"?e(Gt(ht(me(),{month:n,year:t}),!0)):!1},YP=(e,t,n)=>{if(e instanceof Map){const a=`${zy(n+1)}-${t}`;return e.size?e.has(a):!0}return!0},qy=(e,t,n)=>typeof e=="function"?e({month:t,year:n}):!!e.months.find(a=>a.month===t&&a.year===n),Gp=(e,t)=>typeof e=="function"?e(t):e.years.includes(t),bf=e=>`dp-${Tr(e,"yyyy-MM-dd")}`,Xv=(e,t)=>{const n=Py(Gt(t),e),a=Rn(Gt(t),e);return{before:n,after:a}},qi=r.reactive({menuFocused:!1,shiftKeyInMenu:!1}),Yy=()=>{const e=n=>{qi.menuFocused=n},t=n=>{qi.shiftKeyInMenu!==n&&(qi.shiftKeyInMenu=n)};return{control:r.computed(()=>({shiftKeyInMenu:qi.shiftKeyInMenu,menuFocused:qi.menuFocused})),setMenuFocused:e,setShiftKey:t}},kt=r.reactive({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),id=r.ref(null),yl=r.ref(!1),sd=r.ref(!1),ld=r.ref(!1),cd=r.ref(!1),on=r.ref(0),Bt=r.ref(0),Oa=()=>{const e=r.computed(()=>yl.value?[...kt.selectionGrid,kt.actionRow].filter(f=>f.length):sd.value?[...kt.timePicker[0],...kt.timePicker[1],cd.value?[]:[id.value],kt.actionRow].filter(f=>f.length):ld.value?[...kt.monthPicker,kt.actionRow]:[kt.monthYear,...kt.calendar,kt.time,kt.actionRow].filter(f=>f.length)),t=f=>{on.value=f?on.value+1:on.value-1;let p=null;e.value[Bt.value]&&(p=e.value[Bt.value][on.value]),!p&&e.value[Bt.value+(f?1:-1)]?(Bt.value=Bt.value+(f?1:-1),on.value=f?0:e.value[Bt.value].length-1):p||(on.value=f?on.value-1:on.value+1)},n=f=>{Bt.value===0&&!f||Bt.value===e.value.length&&f||(Bt.value=f?Bt.value+1:Bt.value-1,e.value[Bt.value]?e.value[Bt.value]&&!e.value[Bt.value][on.value]&&on.value!==0&&(on.value=e.value[Bt.value].length-1):Bt.value=f?Bt.value-1:Bt.value+1)},a=f=>{let p=null;e.value[Bt.value]&&(p=e.value[Bt.value][on.value]),p?p.focus({preventScroll:!yl.value}):on.value=f?on.value-1:on.value+1},o=()=>{t(!0),a(!0)},i=()=>{t(!1),a(!1)},s=()=>{n(!1),a(!0)},l=()=>{n(!0),a(!0)},c=(f,p)=>{kt[p]=f},u=(f,p)=>{kt[p]=f},d=()=>{on.value=0,Bt.value=0};return{buildMatrix:c,buildMultiLevelMatrix:u,setTimePickerBackRef:f=>{id.value=f},setSelectionGrid:f=>{yl.value=f,d(),f||(kt.selectionGrid=[])},setTimePicker:(f,p=!1)=>{sd.value=f,cd.value=p,d(),f||(kt.timePicker[0]=[],kt.timePicker[1]=[])},setTimePickerElements:(f,p=0)=>{kt.timePicker[p]=f},arrowRight:o,arrowLeft:i,arrowUp:s,arrowDown:l,clearArrowNav:()=>{kt.monthYear=[],kt.calendar=[],kt.time=[],kt.actionRow=[],kt.selectionGrid=[],kt.timePicker[0]=[],kt.timePicker[1]=[],yl.value=!1,sd.value=!1,cd.value=!1,ld.value=!1,d(),id.value=null},setMonthPicker:f=>{ld.value=f,d()},refSets:kt}},Jv=e=>({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down",...e??{}}),GP=e=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:t=>`Increment ${t}`,decrementValue:t=>`Decrement ${t}`,openTpOverlay:t=>`Open ${t} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,clearInput:"Clear value",calendarIcon:"Calendar icon",timePicker:"Time picker",monthPicker:t=>`Month picker${t?" overlay":""}`,yearPicker:t=>`Year picker${t?" overlay":""}`,timeOverlay:t=>`${t} overlay`,...e??{}}),Qv=e=>e?typeof e=="boolean"?e?2:0:+e>=2?+e:2:0,KP=e=>{const t=typeof e=="object"&&e,n={static:!0,solo:!1};if(!e)return{...n,count:Qv(!1)};const a=t?e:{},o=t?a.count??!0:e,i=Qv(o);return Object.assign(n,a,{count:i})},XP=(e,t,n)=>e||(typeof n=="string"?n:t),JP=e=>typeof e=="boolean"?e?Jv({}):!1:Jv(e),QP=e=>{const t={enterSubmit:!0,tabSubmit:!0,openMenu:"open",selectOnFocus:!1,rangeSeparator:" - ",escClose:!0};return typeof e=="object"?{...t,...e??{},enabled:!0}:{...t,enabled:e}},ZP=e=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...e??{}}),eA=e=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...e??{}}),tA=e=>{const t={input:!1};return typeof e=="object"?{...t,...e??{},enabled:!0}:{enabled:e,...t}},nA=e=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,shadowDom:!1,mobileBreakpoint:600,setDateOnMenuClose:!1,...e??{}}),rA=e=>{const t={dates:Array.isArray(e)?e.map(n=>me(n)):[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}};return typeof e=="function"?e:{...t,...e??{}}},aA=e=>typeof e=="object"?{type:e?.type??"local",hideOnOffsetDates:e?.hideOnOffsetDates??!1}:{type:e,hideOnOffsetDates:!1},oA=e=>{const t={noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1};return typeof e=="object"?{enabled:!0,...t,...e}:{enabled:e,...t}},iA=e=>e?typeof e=="string"?{timezone:e,exactMatch:!1,dateInTz:void 0,emitTimezone:void 0,convertModel:!0}:{timezone:e.timezone,exactMatch:e.exactMatch??!1,dateInTz:e.dateInTz??void 0,emitTimezone:e.emitTimezone??void 0,convertModel:e.convertModel??!0}:{timezone:void 0,exactMatch:!1,emitTimezone:void 0},ud=(e,t,n,a)=>new Map(e.map(o=>{const i=Up(o,t,a);return[Yp(i,n),i]})),sA=(e,t)=>e.length?new Map(e.map(n=>{const a=Up(n.date,t);return[Yp(a,Qo.DATE),n]})):null,lA=e=>{var t;const n=$y(e.isMonthPicker,e.isYearPicker);return{minDate:vf(e.minDate,e.timezone,e.isSpecific),maxDate:vf(e.maxDate,e.timezone,e.isSpecific),disabledDates:td(e.disabledDates)?ud(e.disabledDates,e.timezone,n,e.isSpecific):e.disabledDates,allowedDates:td(e.allowedDates)?ud(e.allowedDates,e.timezone,n,e.isSpecific):null,highlight:typeof e.highlight=="object"&&td((t=e.highlight)==null?void 0:t.dates)?ud(e.highlight.dates,e.timezone,n):e.highlight,markers:sA(e.markers,e.timezone)}},cA=e=>typeof e=="boolean"?{enabled:e,dragSelect:!0,limit:null}:{enabled:!!e,limit:e.limit?+e.limit:null,dragSelect:e.dragSelect??!0},uA=e=>({...Object.fromEntries(Object.keys(e).map(t=>{const n=t,a=e[n],o=typeof e[n]=="string"?{[a]:!0}:Object.fromEntries(a.map(i=>[i,!0]));return[t,o]}))}),Et=e=>{const t=()=>{const C=e.enableSeconds?":ss":"",P=e.enableMinutes?":mm":"";return e.is24?`HH${P}${C}`:`hh${P}${C} aa`},n=()=>{var C;return e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?t():e.weekPicker?`${((C=w.value)==null?void 0:C.type)==="iso"?"II":"ww"}-RR`:e.yearPicker?"yyyy":e.quarterPicker?"QQQ/yyyy":e.enableTimePicker?`MM/dd/yyyy, ${t()}`:"MM/dd/yyyy"},a=C=>Hy(C,e.enableSeconds),o=()=>g.value.enabled?e.startTime&&Array.isArray(e.startTime)?[a(e.startTime[0]),a(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?a(e.startTime):null,i=r.computed(()=>KP(e.multiCalendars)),s=r.computed(()=>o()),l=r.computed(()=>GP(e.ariaLabels)),c=r.computed(()=>ZP(e.filters)),u=r.computed(()=>JP(e.transitions)),d=r.computed(()=>eA(e.actionRow)),f=r.computed(()=>XP(e.previewFormat,e.format,n())),p=r.computed(()=>QP(e.textInput)),m=r.computed(()=>tA(e.inline)),v=r.computed(()=>nA(e.config)),y=r.computed(()=>rA(e.highlight)),w=r.computed(()=>aA(e.weekNumbers)),b=r.computed(()=>iA(e.timezone)),E=r.computed(()=>cA(e.multiDates)),_=r.computed(()=>lA({minDate:e.minDate,maxDate:e.maxDate,disabledDates:e.disabledDates,allowedDates:e.allowedDates,highlight:y.value,markers:e.markers,timezone:b.value,isSpecific:e.monthPicker||e.yearPicker||e.quarterPicker,isMonthPicker:e.monthPicker,isYearPicker:e.yearPicker})),g=r.computed(()=>oA(e.range)),x=r.computed(()=>uA(e.ui));return{defaultedTransitions:u,defaultedMultiCalendars:i,defaultedStartTime:s,defaultedAriaLabels:l,defaultedFilters:c,defaultedActionRow:d,defaultedPreviewFormat:f,defaultedTextInput:p,defaultedInline:m,defaultedConfig:v,defaultedHighlight:y,defaultedWeekNumbers:w,defaultedRange:g,propDates:_,defaultedTz:b,defaultedMultiDates:E,defaultedUI:x,getDefaultPattern:n,getDefaultStartTime:o,handleEventPropagation:C=>{v.value.allowStopPropagation&&C.stopPropagation(),v.value.allowPreventDefault&&C.preventDefault()}}},dA=(e,t,n)=>{const a=r.ref(),{defaultedTextInput:o,defaultedRange:i,defaultedTz:s,defaultedMultiDates:l,getDefaultPattern:c}=Et(t),u=r.ref(""),d=r.toRef(t,"format"),f=r.toRef(t,"formatLocale");r.watch(a,()=>{typeof t.onInternalModelChange=="function"&&e("internal-model-change",a.value,H(!0))},{deep:!0}),r.watch(i,(T,J)=>{T.enabled!==J.enabled&&(a.value=null)}),r.watch(d,()=>{K()});const p=T=>s.value.timezone&&s.value.convertModel?Cn(T,s.value.timezone):T,m=T=>{if(s.value.timezone&&s.value.convertModel){const J=AP(s.value.timezone,T);return oT(T,J)}return T},v=(T,J,le=!1)=>Wy(T,t.format,t.formatLocale,o.value.rangeSeparator,t.modelAuto,J??c(),le),y=T=>T?t.modelType?Z(T):{hours:Kr(T),minutes:ka(T),seconds:t.enableSeconds?ci(T):0}:null,w=T=>t.modelType?Z(T):{month:Ke(T),year:Fe(T)},b=T=>Array.isArray(T)?l.value.enabled?T.map(J=>E(J,_r(me(),J))):gl(()=>[_r(me(),T[0]),T[1]?_r(me(),T[1]):Do(i.value.partialRange)],i.value.enabled):_r(me(),+T),E=(T,J)=>(typeof T=="string"||typeof T=="number")&&t.modelType?V(T):J,_=T=>Array.isArray(T)?[E(T[0],ha(null,+T[0].hours,+T[0].minutes,T[0].seconds)),E(T[1],ha(null,+T[1].hours,+T[1].minutes,T[1].seconds))]:E(T,ha(null,T.hours,T.minutes,T.seconds)),g=T=>{const J=ht(me(),{date:1});return Array.isArray(T)?l.value.enabled?T.map(le=>E(le,Fr(J,+le.month,+le.year))):gl(()=>[E(T[0],Fr(J,+T[0].month,+T[0].year)),E(T[1],T[1]?Fr(J,+T[1].month,+T[1].year):Do(i.value.partialRange))],i.value.enabled):E(T,Fr(J,+T.month,+T.year))},x=T=>{if(Array.isArray(T))return T.map(J=>V(J));throw new Error(qp.dateArr("multi-dates"))},C=T=>{if(Array.isArray(T)&&i.value.enabled){const J=T[0],le=T[1];return[me(Array.isArray(J)?J[0]:null),Array.isArray(le)&&le.length?me(le[0]):null]}return me(T[0])},P=T=>t.modelAuto?Array.isArray(T)?[V(T[0]),V(T[1])]:t.autoApply?[V(T)]:[V(T),null]:Array.isArray(T)?gl(()=>T[1]?[V(T[0]),T[1]?V(T[1]):Do(i.value.partialRange)]:[V(T[0])],i.value.enabled):V(T),O=()=>{Array.isArray(a.value)&&i.value.enabled&&a.value.length===1&&a.value.push(Do(i.value.partialRange))},A=()=>{const T=a.value;return[Z(T[0]),T[1]?Z(T[1]):Do(i.value.partialRange)]},L=()=>Array.isArray(a.value)?a.value[1]?A():Z(qt(a.value[0])):[],U=()=>(a.value||[]).map(T=>Z(T)),z=(T=!1)=>(T||O(),t.modelAuto?L():l.value.enabled?U():Array.isArray(a.value)?gl(()=>A(),i.value.enabled):Z(qt(a.value))),R=T=>!T||Array.isArray(T)&&!T.length?null:t.timePicker?_(qt(T)):t.monthPicker?g(qt(T)):t.yearPicker?b(qt(T)):l.value.enabled?x(qt(T)):t.weekPicker?C(qt(T)):P(qt(T)),I=T=>{const J=R(T);yf(qt(J))?(a.value=qt(J),K()):(a.value=null,u.value="")},B=()=>{const T=J=>Tr(J,o.value.format);return`${T(a.value[0])} ${o.value.rangeSeparator} ${a.value[1]?T(a.value[1]):""}`},M=()=>n.value&&a.value?Array.isArray(a.value)?B():Tr(a.value,o.value.format):v(a.value),$=()=>a.value?l.value.enabled?a.value.map(T=>v(T)).join("; "):o.value.enabled&&typeof o.value.format=="string"?M():v(a.value):"",K=()=>{!t.format||typeof t.format=="string"||o.value.enabled&&typeof o.value.format=="string"?u.value=$():u.value=t.format(a.value)},V=T=>{if(t.utc){const J=new Date(T);return t.utc==="preserve"?new Date(J.getTime()+J.getTimezoneOffset()*6e4):J}return t.modelType?IP.includes(t.modelType)?p(new Date(T)):t.modelType==="format"&&(typeof t.format=="string"||!t.format)?p(hf(T,c(),new Date,{locale:f.value})):p(hf(T,t.modelType,new Date,{locale:f.value})):p(new Date(T))},Z=T=>T?t.utc?FP(T,t.utc==="preserve",t.enableSeconds):t.modelType?t.modelType==="timestamp"?+m(T):t.modelType==="iso"?m(T).toISOString():t.modelType==="format"&&(typeof t.format=="string"||!t.format)?v(m(T)):v(m(T),t.modelType,!0):m(T):"",q=(T,J=!1,le=!1)=>{if(le)return T;if(e("update:model-value",T),s.value.emitTimezone&&J){const Oe=Array.isArray(T)?T.map(ee=>Cn(qt(ee),s.value.emitTimezone)):Cn(qt(T),s.value.emitTimezone);e("update:model-timezone-value",Oe)}},oe=T=>Array.isArray(a.value)?l.value.enabled?a.value.map(J=>T(J)):[T(a.value[0]),a.value[1]?T(a.value[1]):Do(i.value.partialRange)]:T(qt(a.value)),j=()=>{if(Array.isArray(a.value)){const T=Vr(a.value[0],t.weekStart),J=a.value[1]?Vr(a.value[1],t.weekStart):[];return[T.map(le=>me(le)),J.map(le=>me(le))]}return Vr(a.value,t.weekStart).map(T=>me(T))},W=(T,J)=>q(qt(oe(T)),!1,J),Y=T=>{const J=j();return T?J:e("update:model-value",j())},H=(T=!1)=>(T||K(),t.monthPicker?W(w,T):t.timePicker?W(y,T):t.yearPicker?W(Fe,T):t.weekPicker?Y(T):q(z(T),!0,T));return{inputValue:u,internalModelValue:a,checkBeforeEmit:()=>a.value?i.value.enabled?i.value.partialRange?a.value.length>=1:a.value.length===2:!!a.value:!1,parseExternalModelValue:I,formatInputValue:K,emitModelValue:H}},fA=(e,t)=>{const{defaultedFilters:n,propDates:a}=Et(e),{validateMonthYearInRange:o}=Ba(e),i=(d,f)=>{let p=d;return n.value.months.includes(Ke(p))?(p=f?nr(d,1):di(d,1),i(p,f)):p},s=(d,f)=>{let p=d;return n.value.years.includes(Fe(p))?(p=f?Op(d,1):Ny(d,1),s(p,f)):p},l=(d,f=!1)=>{const p=ht(me(),{month:e.month,year:e.year});let m=d?nr(p,1):di(p,1);e.disableYearSelect&&(m=_r(m,e.year));let v=Ke(m),y=Fe(m);n.value.months.includes(v)&&(m=i(m,d),v=Ke(m),y=Fe(m)),n.value.years.includes(y)&&(m=s(m,d),y=Fe(m)),o(v,y,d,e.preventMinMaxNavigation)&&c(v,y,f)},c=(d,f,p)=>{t("update-month-year",{month:d,year:f,fromNav:p})},u=r.computed(()=>d=>Uy(ht(me(),{month:e.month,year:e.year}),a.value.maxDate,a.value.minDate,e.preventMinMaxNavigation,d));return{handleMonthYearChange:l,isDisabled:u,updateMonthYear:c}},Zc={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},autoPosition:{type:[Boolean,String],default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:[String,Object],default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},highlight:{type:[Function,Object],default:null},teleport:{type:[Boolean,String,Object],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function,Object],default:null},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:[Object,Boolean],default:!1},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},alwaysClearable:{type:Boolean,default:!1},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:[Boolean,Object],default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},onInternalModelChange:{type:[Function,Object],default:null},enableMinutes:{type:Boolean,default:!0},ui:{type:Object,default:()=>({})}},ur={...Zc,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},menuWrapRef:{type:Object,default:null},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1},isMobile:{type:Boolean,default:void 0}},pA=["title"],mA=["disabled"],hA=r.defineComponent({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},...ur},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const n=t,a=e,{defaultedActionRow:o,defaultedPreviewFormat:i,defaultedMultiCalendars:s,defaultedTextInput:l,defaultedInline:c,defaultedRange:u,defaultedMultiDates:d}=Et(a),{isTimeValid:f,isMonthValid:p}=Ba(a),{buildMatrix:m}=Oa(),v=r.ref(null),y=r.ref(null),w=r.ref(!1),b=r.ref({}),E=r.ref(null),_=r.ref(null);r.onMounted(()=>{a.arrowNavigation&&m([jt(v),jt(y)],"actionRow"),g(),window.addEventListener("resize",g)}),r.onUnmounted(()=>{window.removeEventListener("resize",g)});const g=()=>{w.value=!1,setTimeout(()=>{var I,B;const M=(I=E.value)==null?void 0:I.getBoundingClientRect(),$=(B=_.value)==null?void 0:B.getBoundingClientRect();M&&$&&(b.value.maxWidth=`${$.width-M.width-20}px`),w.value=!0},0)},x=r.computed(()=>u.value.enabled&&!u.value.partialRange&&a.internalModelValue?a.internalModelValue.length===2:!0),C=r.computed(()=>!f.value(a.internalModelValue)||!p.value(a.internalModelValue)||!x.value),P=()=>{const I=i.value;return a.timePicker||a.monthPicker,I(qt(a.internalModelValue))},O=()=>{const I=a.internalModelValue;return s.value.count>0?`${A(I[0])} - ${A(I[1])}`:[A(I[0]),A(I[1])]},A=I=>Wy(I,i.value,a.formatLocale,l.value.rangeSeparator,a.modelAuto,i.value),L=r.computed(()=>!a.internalModelValue||!a.menuMount?"":typeof i.value=="string"?Array.isArray(a.internalModelValue)?a.internalModelValue.length===2&&a.internalModelValue[1]?O():d.value.enabled?a.internalModelValue.map(I=>`${A(I)}`):a.modelAuto?`${A(a.internalModelValue[0])}`:`${A(a.internalModelValue[0])} -`:A(a.internalModelValue):P()),U=()=>d.value.enabled?"; ":" - ",z=r.computed(()=>Array.isArray(L.value)?L.value.join(U()):L.value),R=()=>{f.value(a.internalModelValue)&&p.value(a.internalModelValue)&&x.value?n("select-date"):n("invalid-select")};return(I,B)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"actionRowRef",ref:_,class:"dp__action_row"},[I.$slots["action-row"]?r.renderSlot(I.$slots,"action-row",r.normalizeProps(r.mergeProps({key:0},{internalModelValue:I.internalModelValue,disabled:C.value,selectDate:()=>I.$emit("select-date"),closePicker:()=>I.$emit("close-picker")}))):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.unref(o).showPreview?(r.openBlock(),r.createElementBlock("div",{key:0,class:"dp__selection_preview",title:z.value,style:r.normalizeStyle(b.value)},[I.$slots["action-preview"]&&w.value?r.renderSlot(I.$slots,"action-preview",{key:0,value:I.internalModelValue}):r.createCommentVNode("",!0),!I.$slots["action-preview"]&&w.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(z.value),1)],64)):r.createCommentVNode("",!0)],12,pA)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref_key:"actionBtnContainer",ref:E,class:"dp__action_buttons","data-dp-element":"action-row"},[I.$slots["action-buttons"]?r.renderSlot(I.$slots,"action-buttons",{key:0,value:I.internalModelValue}):r.createCommentVNode("",!0),I.$slots["action-buttons"]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[!r.unref(c).enabled&&r.unref(o).showCancel?(r.openBlock(),r.createElementBlock("button",{key:0,ref_key:"cancelButtonRef",ref:v,type:"button",class:"dp__action_button dp__action_cancel",onClick:B[0]||(B[0]=M=>I.$emit("close-picker")),onKeydown:B[1]||(B[1]=M=>r.unref(mn)(M,()=>I.$emit("close-picker")))},r.toDisplayString(I.cancelText),545)):r.createCommentVNode("",!0),r.unref(o).showNow?(r.openBlock(),r.createElementBlock("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:B[2]||(B[2]=M=>I.$emit("select-now")),onKeydown:B[3]||(B[3]=M=>r.unref(mn)(M,()=>I.$emit("select-now")))},r.toDisplayString(I.nowButtonLabel),33)):r.createCommentVNode("",!0),r.unref(o).showSelect?(r.openBlock(),r.createElementBlock("button",{key:2,ref_key:"selectButtonRef",ref:y,type:"button",class:"dp__action_button dp__action_select",disabled:C.value,"data-test-id":"select-button",onKeydown:B[4]||(B[4]=M=>r.unref(mn)(M,()=>R())),onClick:R},r.toDisplayString(I.selectText),41,mA)):r.createCommentVNode("",!0)],64))],512)],64))],512))}}),vA=["role","aria-label","tabindex"],gA={class:"dp__selection_grid_header"},yA=["aria-selected","aria-disabled","data-test-id","onClick","onKeydown","onMouseover"],bA=["aria-label"],zs=r.defineComponent({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},ariaLabels:{},overlayLabel:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(e,{expose:t,emit:n}){const{setSelectionGrid:a,buildMultiLevelMatrix:o,setMonthPicker:i}=Oa(),s=n,l=e,{defaultedAriaLabels:c,defaultedTextInput:u,defaultedConfig:d,handleEventPropagation:f}=Et(l),{hideNavigationButtons:p}=nu(),m=r.ref(!1),v=r.ref(null),y=r.ref(null),w=r.ref([]),b=r.ref(),E=r.ref(null),_=r.ref(0),g=r.ref(null);r.onBeforeUpdate(()=>{v.value=null}),r.onMounted(()=>{r.nextTick().then(()=>z()),l.noOverlayFocus||C(),x(!0)}),r.onUnmounted(()=>x(!1));const x=j=>{var W;l.arrowNavigation&&((W=l.headerRefs)!=null&&W.length?i(j):a(j))},C=()=>{var j;const W=jt(y);W&&(u.value.enabled||(v.value?(j=v.value)==null||j.focus({preventScroll:!0}):W.focus({preventScroll:!0})),m.value=W.clientHeight<W.scrollHeight)},P=r.computed(()=>({dp__overlay:!0,"dp--overlay-absolute":!l.useRelative,"dp--overlay-relative":l.useRelative})),O=r.computed(()=>l.useRelative?{height:`${l.height}px`,width:"var(--dp-menu-min-width)"}:void 0),A=r.computed(()=>({dp__overlay_col:!0})),L=r.computed(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:m.value,dp__button_bottom:l.isLast})),U=r.computed(()=>{var j,W;return{dp__overlay_container:!0,dp__container_flex:((j=l.items)==null?void 0:j.length)<=6,dp__container_block:((W=l.items)==null?void 0:W.length)>6}});r.watch(()=>l.items,()=>z(!1),{deep:!0});const z=(j=!0)=>{r.nextTick().then(()=>{const W=jt(v),Y=jt(y),H=jt(E),T=jt(g),J=H?H.getBoundingClientRect().height:0;Y&&(Y.getBoundingClientRect().height?_.value=Y.getBoundingClientRect().height-J:_.value=d.value.modeHeight-J),W&&T&&j&&(T.scrollTop=W.offsetTop-T.offsetTop-(_.value/2-W.getBoundingClientRect().height)-J)})},R=j=>{j.disabled||s("selected",j.value)},I=()=>{s("toggle"),s("reset-flow")},B=j=>{l.escClose&&(I(),f(j))},M=(j,W,Y,H)=>{j&&((W.active||W.value===l.focusValue)&&(v.value=j),l.arrowNavigation&&(Array.isArray(w.value[Y])?w.value[Y][H]=j:w.value[Y]=[j],$()))},$=()=>{var j,W;const Y=(j=l.headerRefs)!=null&&j.length?[l.headerRefs].concat(w.value):w.value.concat([l.skipButtonRef?[]:[E.value]]);o(qt(Y),(W=l.headerRefs)!=null&&W.length?"monthPicker":"selectionGrid")},K=j=>{l.arrowNavigation||ma(j,d.value,!0)},V=j=>{b.value=j,s("hover-value",j)},Z=()=>{if(I(),!l.isLast){const j=gf(l.menuWrapRef??null,"action-row");if(j){const W=Dy(j);W?.focus()}}},q=j=>{switch(j.key){case _t.esc:return B(j);case _t.arrowLeft:return K(j);case _t.arrowRight:return K(j);case _t.arrowUp:return K(j);case _t.arrowDown:return K(j);default:return}},oe=j=>{if(j.key===_t.enter)return I();if(j.key===_t.tab)return Z()};return t({focusGrid:C}),(j,W)=>{var Y;return r.openBlock(),r.createElementBlock("div",{ref_key:"gridWrapRef",ref:y,class:r.normalizeClass(P.value),style:r.normalizeStyle(O.value),role:j.useRelative?void 0:"dialog","aria-label":j.overlayLabel,tabindex:j.useRelative?void 0:"0",onKeydown:q,onClick:W[0]||(W[0]=r.withModifiers(()=>{},["prevent"]))},[r.createElementVNode("div",{ref_key:"containerRef",ref:g,class:r.normalizeClass(U.value),style:r.normalizeStyle({"--dp-overlay-height":`${_.value}px`}),role:"grid"},[r.createElementVNode("div",gA,[r.renderSlot(j.$slots,"header")]),j.$slots.overlay?r.renderSlot(j.$slots,"overlay",{key:0}):(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(j.items,(H,T)=>(r.openBlock(),r.createElementBlock("div",{key:T,class:r.normalizeClass(["dp__overlay_row",{dp__flex_row:j.items.length>=3}]),role:"row"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(H,(J,le)=>(r.openBlock(),r.createElementBlock("div",{key:J.value,ref_for:!0,ref:Oe=>M(Oe,J,T,le),role:"gridcell",class:r.normalizeClass(A.value),"aria-selected":J.active||void 0,"aria-disabled":J.disabled||void 0,tabindex:"0","data-test-id":J.text,onClick:r.withModifiers(Oe=>R(J),["prevent"]),onKeydown:Oe=>r.unref(mn)(Oe,()=>R(J),!0),onMouseover:Oe=>V(J.value)},[r.createElementVNode("div",{class:r.normalizeClass(J.className)},[j.$slots.item?r.renderSlot(j.$slots,"item",{key:0,item:J}):r.createCommentVNode("",!0),j.$slots.item?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(J.text),1)],64))],2)],42,yA))),128))],2))),128))],6),j.$slots["button-icon"]?r.withDirectives((r.openBlock(),r.createElementBlock("button",{key:0,ref_key:"toggleButton",ref:E,type:"button","aria-label":(Y=r.unref(c))==null?void 0:Y.toggleOverlay,class:r.normalizeClass(L.value),tabindex:"0",onClick:I,onKeydown:oe},[r.renderSlot(j.$slots,"button-icon")],42,bA)),[[r.vShow,!r.unref(p)(j.hideNavigation,j.type)]]):r.createCommentVNode("",!0)],46,vA)}}}),wA=["data-dp-mobile"],eu=r.defineComponent({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean},collapse:{type:Boolean},isMobile:{type:Boolean}},setup(e){const t=e,n=r.computed(()=>t.multiCalendars>0?[...Array(t.multiCalendars).keys()]:[0]),a=r.computed(()=>({dp__instance_calendar:t.multiCalendars>0}));return(o,i)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass({dp__menu_inner:!o.stretch,"dp--menu--inner-stretched":o.stretch,dp__flex_display:o.multiCalendars>0,"dp--flex-display-collapsed":o.collapse}),"data-dp-mobile":o.isMobile},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.value,(s,l)=>(r.openBlock(),r.createElementBlock("div",{key:s,class:r.normalizeClass(a.value)},[r.renderSlot(o.$slots,"default",{instance:s,index:l})],2))),128))],10,wA))}}),kA=["data-dp-element","aria-label","aria-disabled"],as=r.defineComponent({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},elName:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const n=t,a=r.ref(null);return r.onMounted(()=>n("set-ref",a)),(o,i)=>(r.openBlock(),r.createElementBlock("button",{ref_key:"elRef",ref:a,type:"button","data-dp-element":o.elName,class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":o.ariaLabel,"aria-disabled":o.disabled||void 0,onClick:i[0]||(i[0]=s=>o.$emit("activate")),onKeydown:i[1]||(i[1]=s=>r.unref(mn)(s,()=>o.$emit("activate"),!0))},[r.createElementVNode("span",{class:r.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:o.disabled}])},[r.renderSlot(o.$slots,"default")],2)],40,kA))}}),_A=["aria-label","data-test-id"],Gy=r.defineComponent({__name:"YearModePicker",props:{...ur,showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:()=>!1}},emits:["toggle-year-picker","year-select","handle-year"],setup(e,{emit:t}){const n=t,a=e,{showRightIcon:o,showLeftIcon:i}=nu(),{defaultedConfig:s,defaultedMultiCalendars:l,defaultedAriaLabels:c,defaultedTransitions:u,defaultedUI:d}=Et(a),{showTransition:f,transitionName:p}=Vs(u),m=r.ref(!1),v=(b=!1,E)=>{m.value=!m.value,n("toggle-year-picker",{flow:b,show:E})},y=b=>{m.value=!1,n("year-select",b)},w=(b=!1)=>{n("handle-year",b)};return(b,E)=>{var _,g,x,C,P;return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",{class:r.normalizeClass(["dp--year-mode-picker",{"dp--hidden-el":m.value}])},[r.unref(i)(r.unref(l),e.instance)?(r.openBlock(),r.createBlock(as,{key:0,ref:"mpPrevIconRef","aria-label":(_=r.unref(c))==null?void 0:_.prevYear,disabled:e.isDisabled(!1),class:r.normalizeClass((g=r.unref(d))==null?void 0:g.navBtnPrev),onActivate:E[0]||(E[0]=O=>w(!1))},{default:r.withCtx(()=>[b.$slots["arrow-left"]?r.renderSlot(b.$slots,"arrow-left",{key:0}):r.createCommentVNode("",!0),b.$slots["arrow-left"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(zp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):r.createCommentVNode("",!0),r.createElementVNode("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":`${e.year}-${(x=r.unref(c))==null?void 0:x.openYearsOverlay}`,"data-test-id":`year-mode-btn-${e.instance}`,onClick:E[1]||(E[1]=()=>v(!1)),onKeydown:E[2]||(E[2]=r.withKeys(()=>v(!1),["enter"]))},[b.$slots.year?r.renderSlot(b.$slots,"year",{key:0,year:e.year}):r.createCommentVNode("",!0),b.$slots.year?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(e.year),1)],64))],40,_A),r.unref(o)(r.unref(l),e.instance)?(r.openBlock(),r.createBlock(as,{key:1,ref:"mpNextIconRef","aria-label":(C=r.unref(c))==null?void 0:C.nextYear,disabled:e.isDisabled(!0),class:r.normalizeClass((P=r.unref(d))==null?void 0:P.navBtnNext),onActivate:E[3]||(E[3]=O=>w(!0))},{default:r.withCtx(()=>[b.$slots["arrow-right"]?r.renderSlot(b.$slots,"arrow-right",{key:0}):r.createCommentVNode("",!0),b.$slots["arrow-right"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(Vp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):r.createCommentVNode("",!0)],2),r.createVNode(r.Transition,{name:r.unref(p)(e.showYearPicker),css:r.unref(f)},{default:r.withCtx(()=>{var O,A;return[e.showYearPicker?(r.openBlock(),r.createBlock(zs,{key:0,items:e.items,"text-input":b.textInput,"esc-close":b.escClose,config:b.config,"is-last":b.autoApply&&!r.unref(s).keepActionRow,"hide-navigation":b.hideNavigation,"aria-labels":b.ariaLabels,"overlay-label":(A=(O=r.unref(c))==null?void 0:O.yearPicker)==null?void 0:A.call(O,!0),type:"year",onToggle:v,onSelected:E[4]||(E[4]=L=>y(L))},r.createSlots({"button-icon":r.withCtx(()=>[b.$slots["calendar-icon"]?r.renderSlot(b.$slots,"calendar-icon",{key:0}):r.createCommentVNode("",!0),b.$slots["calendar-icon"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(Ai),{key:1}))]),_:2},[b.$slots["year-overlay-value"]?{name:"item",fn:r.withCtx(({item:L})=>[r.renderSlot(b.$slots,"year-overlay-value",{text:L.text,value:L.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation","aria-labels","overlay-label"])):r.createCommentVNode("",!0)]}),_:3},8,["name","css"])],64)}}}),Kp=(e,t,n)=>{if(t.value&&Array.isArray(t.value))if(t.value.some(a=>Xe(e,a))){const a=t.value.filter(o=>!Xe(o,e));t.value=a.length?a:null}else(n&&+n>t.value.length||!n)&&t.value.push(e);else t.value=[e]},Xp=(e,t,n)=>{let a=e.value?e.value.slice():[];return a.length===2&&a[1]!==null&&(a=[]),a.length?(Mt(t,a[0])?a.unshift(t):a[1]=t,n("range-end",t)):(a=[t],n("range-start",t)),a},tu=(e,t,n,a)=>{e&&(e[0]&&e[1]&&n&&t("auto-apply"),e[0]&&!e[1]&&a&&n&&t("auto-apply"))},Ky=e=>{Array.isArray(e.value)&&e.value.length<=2&&e.range?e.modelValue.value=e.value.map(t=>Cn(me(t),e.timezone)):Array.isArray(e.value)||(e.modelValue.value=Cn(me(e.value),e.timezone))},Xy=(e,t,n,a)=>Array.isArray(t.value)&&(t.value.length===2||t.value.length===1&&a.value.partialRange)?a.value.fixedStart&&(Lt(e,t.value[0])||Xe(e,t.value[0]))?[t.value[0],e]:a.value.fixedEnd&&(Mt(e,t.value[1])||Xe(e,t.value[1]))?[e,t.value[1]]:(n("invalid-fixed-range",e),t.value):[],Jy=({multiCalendars:e,range:t,highlight:n,propDates:a,calendars:o,modelValue:i,props:s,filters:l,year:c,month:u,emit:d})=>{const f=r.computed(()=>Wp(s.yearRange,s.locale,s.reverseYears)),p=r.ref([!1]),m=r.computed(()=>(L,U)=>{const z=ht(Qn(new Date),{month:u.value(L),year:c.value(L)}),R=U?by(z):bs(z);return Uy(R,a.value.maxDate,a.value.minDate,s.preventMinMaxNavigation,U)}),v=()=>Array.isArray(i.value)&&e.value.solo&&i.value[1],y=()=>{for(let L=0;L<e.value.count;L++)if(L===0)o.value[L]=o.value[0];else if(L===e.value.count-1&&v())o.value[L]={month:Ke(i.value[1]),year:Fe(i.value[1])};else{const U=ht(me(),o.value[L-1]);o.value[L]={month:Ke(U),year:Fe(Op(U,1))}}},w=L=>{if(!L)return y();const U=ht(me(),o.value[L]);return o.value[0].year=Fe(Ny(U,e.value.count-1)),y()},b=(L,U)=>{const z=cT(U,L);return t.value.showLastInRange&&z>1?U:L},E=L=>s.focusStartDate||e.value.solo?L[0]:L[1]?b(L[0],L[1]):L[0],_=()=>{if(i.value){const L=Array.isArray(i.value)?E(i.value):i.value;o.value[0]={month:Ke(L),year:Fe(L)}}},g=()=>{_(),e.value.count&&y()};r.watch(i,(L,U)=>{s.isTextInputDate&&JSON.stringify(L??{})!==JSON.stringify(U??{})&&g()}),r.onMounted(()=>{g()});const x=(L,U)=>{o.value[U].year=L,d("update-month-year",{instance:U,year:L,month:o.value[U].month}),e.value.count&&!e.value.solo&&w(U)},C=r.computed(()=>L=>fi(f.value,U=>{var z;const R=c.value(L)===U.value,I=ws(U.value,pi(a.value.minDate),pi(a.value.maxDate))||((z=l.value.years)==null?void 0:z.includes(c.value(L))),B=Gp(n.value,U.value);return{active:R,disabled:I,highlighted:B}})),P=(L,U)=>{x(L,U),A(U)},O=(L,U=!1)=>{if(!m.value(L,U)){const z=U?c.value(L)+1:c.value(L)-1;x(z,L)}},A=(L,U=!1,z)=>{U||d("reset-flow"),z!==void 0?p.value[L]=z:p.value[L]=!p.value[L],p.value[L]?d("overlay-toggle",{open:!0,overlay:ln.year}):(d("overlay-closed"),d("overlay-toggle",{open:!1,overlay:ln.year}))};return{isDisabled:m,groupedYears:C,showYearPicker:p,selectYear:x,toggleYearPicker:A,handleYearSelect:P,handleYear:O}},SA=(e,t)=>{const{defaultedMultiCalendars:n,defaultedAriaLabels:a,defaultedTransitions:o,defaultedConfig:i,defaultedRange:s,defaultedHighlight:l,propDates:c,defaultedTz:u,defaultedFilters:d,defaultedMultiDates:f}=Et(e),p=()=>{e.isTextInputDate&&g(Fe(me(e.startDate)),0)},{modelValue:m,year:v,month:y,calendars:w}=Fs(e,t,p),b=r.computed(()=>By(e.formatLocale,e.locale,e.monthNameFormat)),E=r.ref(null),{checkMinMaxRange:_}=Ba(e),{selectYear:g,groupedYears:x,showYearPicker:C,toggleYearPicker:P,handleYearSelect:O,handleYear:A,isDisabled:L}=Jy({modelValue:m,multiCalendars:n,range:s,highlight:l,calendars:w,year:v,propDates:c,month:y,filters:d,props:e,emit:t});r.onMounted(()=>{e.startDate&&(m.value&&e.focusStartDate||!m.value)&&g(Fe(me(e.startDate)),0)});const U=W=>W?{month:Ke(W),year:Fe(W)}:{month:null,year:null},z=()=>m.value?Array.isArray(m.value)?m.value.map(W=>U(W)):U(m.value):U(),R=(W,Y)=>{const H=w.value[W],T=z();return Array.isArray(T)?T.some(J=>J.year===H?.year&&J.month===Y):H?.year===T.year&&Y===T.month},I=(W,Y,H)=>{var T,J;const le=z();return Array.isArray(le)?v.value(Y)===((T=le[H])==null?void 0:T.year)&&W===((J=le[H])==null?void 0:J.month):!1},B=(W,Y)=>{if(s.value.enabled){const H=z();if(Array.isArray(m.value)&&Array.isArray(H)){const T=I(W,Y,0)||I(W,Y,1),J=Fr(Qn(me()),W,v.value(Y));return ks(m.value,E.value,J)&&!T}return!1}return!1},M=r.computed(()=>W=>fi(b.value,Y=>{var H;const T=R(W,Y.value),J=ws(Y.value,Vy(v.value(W),c.value.minDate),Fy(v.value(W),c.value.maxDate))||qP(c.value.disabledDates,v.value(W),Y.value)||((H=d.value.months)==null?void 0:H.includes(Y.value))||!YP(c.value.allowedDates,v.value(W),Y.value),le=B(Y.value,W),Oe=qy(l.value,Y.value,v.value(W));return{active:T,disabled:J,isBetween:le,highlighted:Oe}})),$=(W,Y)=>Fr(Qn(me()),W,v.value(Y)),K=(W,Y)=>{const H=m.value?m.value:Qn(new Date);m.value=Fr(H,W,v.value(Y)),t("auto-apply"),t("update-flow-step")},V=(W,Y)=>{const H=$(W,Y);s.value.fixedEnd||s.value.fixedStart?m.value=Xy(H,m,t,s):m.value?_(H,m.value)&&(m.value=Xp(m,$(W,Y),t)):m.value=[$(W,Y)],r.nextTick().then(()=>{tu(m.value,t,e.autoApply,e.modelAuto)})},Z=(W,Y)=>{Kp($(W,Y),m,f.value.limit),t("auto-apply",!0)},q=(W,Y)=>(w.value[Y].month=W,j(Y,w.value[Y].year,W),f.value.enabled?Z(W,Y):s.value.enabled?V(W,Y):K(W,Y)),oe=(W,Y)=>{g(W,Y),j(Y,W,null)},j=(W,Y,H)=>{let T=H;if(!T&&T!==0){const J=z();T=Array.isArray(J)?J[W].month:J.month}t("update-month-year",{instance:W,year:Y,month:T})};return{groupedMonths:M,groupedYears:x,year:v,isDisabled:L,defaultedMultiCalendars:n,defaultedAriaLabels:a,defaultedTransitions:o,defaultedConfig:i,showYearPicker:C,modelValue:m,presetDate:(W,Y)=>{Ky({value:W,modelValue:m,range:s.value.enabled,timezone:Y?void 0:u.value.timezone}),t("auto-apply")},setHoverDate:(W,Y)=>{E.value=$(W,Y)},selectMonth:q,selectYear:oe,toggleYearPicker:P,handleYearSelect:O,handleYear:A,getModelMonthYear:z}},CA=r.defineComponent({compatConfig:{MODE:3},__name:"MonthPicker",props:{...ur},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","update-flow-step","mount","invalid-fixed-range","overlay-toggle"],setup(e,{expose:t,emit:n}){const a=n,o=r.useSlots(),i=In(o,"yearMode"),s=e;r.onMounted(()=>{s.shadow||a("mount",null)});const{groupedMonths:l,groupedYears:c,year:u,isDisabled:d,defaultedMultiCalendars:f,defaultedConfig:p,showYearPicker:m,modelValue:v,presetDate:y,setHoverDate:w,selectMonth:b,selectYear:E,toggleYearPicker:_,handleYearSelect:g,handleYear:x,getModelMonthYear:C}=SA(s,a);return t({getSidebarProps:()=>({modelValue:v,year:u,getModelMonthYear:C,selectMonth:b,selectYear:E,handleYear:x}),presetDate:y,toggleYearPicker:P=>_(0,P)}),(P,O)=>(r.openBlock(),r.createBlock(eu,{"multi-calendars":r.unref(f).count,collapse:P.collapse,stretch:"","is-mobile":P.isMobile},{default:r.withCtx(({instance:A})=>[P.$slots["top-extra"]?r.renderSlot(P.$slots,"top-extra",{key:0,value:P.internalModelValue}):r.createCommentVNode("",!0),P.$slots["month-year"]?r.renderSlot(P.$slots,"month-year",r.normalizeProps(r.mergeProps({key:1},{year:r.unref(u),months:r.unref(l)(A),years:r.unref(c)(A),selectMonth:r.unref(b),selectYear:r.unref(E),instance:A}))):(r.openBlock(),r.createBlock(zs,{key:2,items:r.unref(l)(A),"arrow-navigation":P.arrowNavigation,"is-last":P.autoApply&&!r.unref(p).keepActionRow,"esc-close":P.escClose,height:r.unref(p).modeHeight,config:P.config,"no-overlay-focus":!!(P.noOverlayFocus||P.textInput),"use-relative":"",type:"month",onSelected:L=>r.unref(b)(L,A),onHoverValue:L=>r.unref(w)(L,A)},r.createSlots({header:r.withCtx(()=>[r.createVNode(Gy,r.mergeProps(P.$props,{items:r.unref(c)(A),instance:A,"show-year-picker":r.unref(m)[A],year:r.unref(u)(A),"is-disabled":L=>r.unref(d)(A,L),onHandleYear:L=>r.unref(x)(A,L),onYearSelect:L=>r.unref(g)(L,A),onToggleYearPicker:L=>r.unref(_)(A,L?.flow,L?.show)}),r.createSlots({_:2},[r.renderList(r.unref(i),(L,U)=>({name:L,fn:r.withCtx(z=>[r.renderSlot(P.$slots,L,r.normalizeProps(r.guardReactiveProps(z)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[P.$slots["month-overlay-value"]?{name:"item",fn:r.withCtx(({item:L})=>[r.renderSlot(P.$slots,"month-overlay-value",{text:L.text,value:L.value})]),key:"0"}:void 0]),1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars","collapse","is-mobile"]))}}),xA=(e,t)=>{const n=()=>{e.isTextInputDate&&(d.value=Fe(me(e.startDate)))},{modelValue:a}=Fs(e,t,n),o=r.ref(null),{defaultedHighlight:i,defaultedMultiDates:s,defaultedFilters:l,defaultedRange:c,propDates:u}=Et(e),d=r.ref();r.onMounted(()=>{e.startDate&&(a.value&&e.focusStartDate||!a.value)&&(d.value=Fe(me(e.startDate)))});const f=b=>Array.isArray(a.value)?a.value.some(E=>Fe(E)===b):a.value?Fe(a.value)===b:!1,p=b=>c.value.enabled&&Array.isArray(a.value)?ks(a.value,o.value,w(b)):!1,m=b=>u.value.allowedDates instanceof Map?u.value.allowedDates.size?u.value.allowedDates.has(`${b}`):!1:!0,v=b=>u.value.disabledDates instanceof Map?u.value.disabledDates.size?u.value.disabledDates.has(`${b}`):!1:!0,y=r.computed(()=>fi(Wp(e.yearRange,e.locale,e.reverseYears),b=>{const E=f(b.value),_=ws(b.value,pi(u.value.minDate),pi(u.value.maxDate))||l.value.years.includes(b.value)||!m(b.value)||v(b.value),g=p(b.value)&&!E,x=Gp(i.value,b.value);return{active:E,disabled:_,isBetween:g,highlighted:x}})),w=b=>_r(Qn(bs(new Date)),b);return{groupedYears:y,modelValue:a,focusYear:d,setHoverValue:b=>{o.value=_r(Qn(new Date),b)},selectYear:b=>{var E;if(t("update-month-year",{instance:0,year:b}),s.value.enabled)return a.value?Array.isArray(a.value)&&(((E=a.value)==null?void 0:E.map(_=>Fe(_))).includes(b)?a.value=a.value.filter(_=>Fe(_)!==b):a.value.push(_r(Gt(me()),b))):a.value=[_r(Gt(bs(me())),b)],t("auto-apply",!0);c.value.enabled?(a.value=Xp(a,w(b),t),r.nextTick().then(()=>{tu(a.value,t,e.autoApply,e.modelAuto)})):(a.value=w(b),t("auto-apply"))}}},EA=r.defineComponent({compatConfig:{MODE:3},__name:"YearPicker",props:{...ur},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(e,{expose:t,emit:n}){const a=n,o=e,{groupedYears:i,modelValue:s,focusYear:l,selectYear:c,setHoverValue:u}=xA(o,a),{defaultedConfig:d}=Et(o);return t({getSidebarProps:()=>({modelValue:s,selectYear:c})}),(f,p)=>(r.openBlock(),r.createElementBlock("div",null,[f.$slots["top-extra"]?r.renderSlot(f.$slots,"top-extra",{key:0,value:f.internalModelValue}):r.createCommentVNode("",!0),f.$slots["month-year"]?r.renderSlot(f.$slots,"month-year",r.normalizeProps(r.mergeProps({key:1},{years:r.unref(i),selectYear:r.unref(c)}))):(r.openBlock(),r.createBlock(zs,{key:2,items:r.unref(i),"is-last":f.autoApply&&!r.unref(d).keepActionRow,height:r.unref(d).modeHeight,config:f.config,"no-overlay-focus":!!(f.noOverlayFocus||f.textInput),"focus-value":r.unref(l),type:"year","use-relative":"",onSelected:r.unref(c),onHoverValue:r.unref(u)},r.createSlots({_:2},[f.$slots["year-overlay-value"]?{name:"item",fn:r.withCtx(({item:m})=>[r.renderSlot(f.$slots,"year-overlay-value",{text:m.text,value:m.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),TA={key:0,class:"dp__time_input"},PA=["data-compact","data-collapsed"],AA=["data-test-id","aria-label","onKeydown","onClick","onMousedown"],IA=["aria-label","disabled","data-test-id","onKeydown","onClick"],MA=["data-test-id","aria-label","onKeydown","onClick","onMousedown"],NA={key:0},OA=["aria-label","data-compact"],BA=r.defineComponent({compatConfig:{MODE:3},__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...ur},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","overlay-opened","am-pm-change"],setup(e,{expose:t,emit:n}){const a=n,o=e,{setTimePickerElements:i,setTimePickerBackRef:s}=Oa(),{defaultedAriaLabels:l,defaultedTransitions:c,defaultedFilters:u,defaultedConfig:d,defaultedRange:f,defaultedMultiCalendars:p}=Et(o),{transitionName:m,showTransition:v}=Vs(c),y=r.reactive({hours:!1,minutes:!1,seconds:!1}),w=r.ref("AM"),b=r.ref(null),E=r.ref([]),_=r.ref(),g=r.ref(!1);r.onMounted(()=>{a("mounted")});const x=D=>ht(new Date,{hours:D.hours,minutes:D.minutes,seconds:o.enableSeconds?D.seconds:0,milliseconds:0}),C=r.computed(()=>D=>V(D,o[D])||O(D,o[D])),P=r.computed(()=>({hours:o.hours,minutes:o.minutes,seconds:o.seconds})),O=(D,de)=>f.value.enabled&&!f.value.disableTimeRangeValidation?!o.validateTime(D,de):!1,A=(D,de)=>{if(f.value.enabled&&!f.value.disableTimeRangeValidation){const fe=de?+o[`${D}Increment`]:-+o[`${D}Increment`],ce=o[D]+fe;return!o.validateTime(D,ce)}return!1},L=r.computed(()=>D=>!W(+o[D]+ +o[`${D}Increment`],D)||A(D,!0)),U=r.computed(()=>D=>!W(+o[D]-+o[`${D}Increment`],D)||A(D,!1)),z=(D,de)=>py(ht(me(),D),de),R=(D,de)=>EP(ht(me(),D),de),I=r.computed(()=>({dp__time_col:!0,dp__time_col_block:!o.timePickerInline,dp__time_col_reg_block:!o.enableSeconds&&o.is24&&!o.timePickerInline,dp__time_col_reg_inline:!o.enableSeconds&&o.is24&&o.timePickerInline,dp__time_col_reg_with_button:!o.enableSeconds&&!o.is24,dp__time_col_sec:o.enableSeconds&&o.is24,dp__time_col_sec_with_button:o.enableSeconds&&!o.is24})),B=r.computed(()=>o.timePickerInline&&f.value.enabled&&!p.value.count),M=r.computed(()=>{const D=[{type:"hours"}];return o.enableMinutes&&D.push({type:"",separator:!0},{type:"minutes"}),o.enableSeconds&&D.push({type:"",separator:!0},{type:"seconds"}),D}),$=r.computed(()=>M.value.filter(D=>!D.separator)),K=r.computed(()=>D=>{if(D==="hours"){const de=Oe(+o.hours);return{text:de<10?`0${de}`:`${de}`,value:de}}return{text:o[D]<10?`0${o[D]}`:`${o[D]}`,value:o[D]}}),V=(D,de)=>{var fe;if(!o.disabledTimesConfig)return!1;const ce=o.disabledTimesConfig(o.order,D==="hours"?de:void 0);return ce[D]?!!((fe=ce[D])!=null&&fe.includes(de)):!0},Z=(D,de)=>de!=="hours"||w.value==="AM"?D:D+12,q=D=>{const de=o.is24?24:12,fe=D==="hours"?de:60,ce=+o[`${D}GridIncrement`],Ae=D==="hours"&&!o.is24?ce:0,pe=[];for(let Ie=Ae;Ie<fe;Ie+=ce)pe.push({value:o.is24?Ie:Z(Ie,D),text:Ie<10?`0${Ie}`:`${Ie}`});return D==="hours"&&!o.is24&&pe.unshift({value:w.value==="PM"?12:0,text:"12"}),fi(pe,Ie=>({active:!1,disabled:u.value.times[D].includes(Ie.value)||!W(Ie.value,D)||V(D,Ie.value)||O(D,Ie.value)}))},oe=D=>D>=0?D:59,j=D=>D>=0?D:23,W=(D,de)=>{const fe=o.minTime?x(nd(o.minTime)):null,ce=o.maxTime?x(nd(o.maxTime)):null,Ae=x(nd(P.value,de,de==="minutes"||de==="seconds"?oe(D):j(D)));return fe&&ce?(ui(Ae,ce)||Wo(Ae,ce))&&(mo(Ae,fe)||Wo(Ae,fe)):fe?mo(Ae,fe)||Wo(Ae,fe):ce?ui(Ae,ce)||Wo(Ae,ce):!0},Y=D=>o[`no${D[0].toUpperCase()+D.slice(1)}Overlay`],H=D=>{Y(D)||(y[D]=!y[D],y[D]?(g.value=!0,a("overlay-opened",D)):(g.value=!1,a("overlay-closed",D)))},T=D=>D==="hours"?Kr:D==="minutes"?ka:ci,J=()=>{_.value&&clearTimeout(_.value)},le=(D,de=!0,fe)=>{const ce=de?z:R,Ae=de?+o[`${D}Increment`]:-+o[`${D}Increment`];W(+o[D]+Ae,D)&&a(`update:${D}`,T(D)(ce({[D]:+o[D]},{[D]:+o[`${D}Increment`]}))),!(fe!=null&&fe.keyboard)&&d.value.timeArrowHoldThreshold&&(_.value=setTimeout(()=>{le(D,de)},d.value.timeArrowHoldThreshold))},Oe=D=>o.is24?D:(D>=12?w.value="PM":w.value="AM",OP(D)),ee=()=>{w.value==="PM"?(w.value="AM",a("update:hours",o.hours-12)):(w.value="PM",a("update:hours",o.hours+12)),a("am-pm-change",w.value)},Te=D=>{y[D]=!0},ae=(D,de,fe)=>{if(D&&o.arrowNavigation){Array.isArray(E.value[de])?E.value[de][fe]=D:E.value[de]=[D];const ce=E.value.reduce((Ae,pe)=>pe.map((Ie,xe)=>[...Ae[xe]||[],pe[xe]]),[]);s(o.closeTimePickerBtn),b.value&&(ce[1]=ce[1].concat(b.value)),i(ce,o.order)}},ue=(D,de)=>(H(D),a(`update:${D}`,de));return t({openChildCmp:Te}),(D,de)=>{var fe;return D.disabled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",TA,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(M.value,(ce,Ae)=>{var pe,Ie,xe;return r.openBlock(),r.createElementBlock("div",{key:Ae,class:r.normalizeClass(I.value),"data-compact":B.value&&!D.enableSeconds,"data-collapsed":B.value&&D.enableSeconds},[ce.separator?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[g.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(":")],64))],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createElementVNode("button",{ref_for:!0,ref:X=>ae(X,Ae,0),type:"button",class:r.normalizeClass({dp__btn:!0,dp__inc_dec_button:!D.timePickerInline,dp__inc_dec_button_inline:D.timePickerInline,dp__tp_inline_btn_top:D.timePickerInline,dp__inc_dec_button_disabled:L.value(ce.type),"dp--hidden-el":g.value}),"data-test-id":`${ce.type}-time-inc-btn-${o.order}`,"aria-label":(pe=r.unref(l))==null?void 0:pe.incrementValue(ce.type),tabindex:"0",onKeydown:X=>r.unref(mn)(X,()=>le(ce.type,!0,{keyboard:!0}),!0),onClick:X=>r.unref(d).timeArrowHoldThreshold?void 0:le(ce.type,!0),onMousedown:X=>r.unref(d).timeArrowHoldThreshold?le(ce.type,!0):void 0,onMouseup:J},[o.timePickerInline?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[D.$slots["tp-inline-arrow-up"]?r.renderSlot(D.$slots,"tp-inline-arrow-up",{key:0}):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[de[2]||(de[2]=r.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),de[3]||(de[3]=r.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[D.$slots["arrow-up"]?r.renderSlot(D.$slots,"arrow-up",{key:0}):r.createCommentVNode("",!0),D.$slots["arrow-up"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(jp),{key:1}))],64))],42,AA),r.createElementVNode("button",{ref_for:!0,ref:X=>ae(X,Ae,1),type:"button","aria-label":`${K.value(ce.type).text}-${(Ie=r.unref(l))==null?void 0:Ie.openTpOverlay(ce.type)}`,class:r.normalizeClass({dp__time_display:!0,dp__time_display_block:!D.timePickerInline,dp__time_display_inline:D.timePickerInline,"dp--time-invalid":C.value(ce.type),"dp--time-overlay-btn":!C.value(ce.type),"dp--hidden-el":g.value}),disabled:Y(ce.type),tabindex:"0","data-test-id":`${ce.type}-toggle-overlay-btn-${o.order}`,onKeydown:X=>r.unref(mn)(X,()=>H(ce.type),!0),onClick:X=>H(ce.type)},[D.$slots[ce.type]?r.renderSlot(D.$slots,ce.type,{key:0,text:K.value(ce.type).text,value:K.value(ce.type).value}):r.createCommentVNode("",!0),D.$slots[ce.type]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(K.value(ce.type).text),1)],64))],42,IA),r.createElementVNode("button",{ref_for:!0,ref:X=>ae(X,Ae,2),type:"button",class:r.normalizeClass({dp__btn:!0,dp__inc_dec_button:!D.timePickerInline,dp__inc_dec_button_inline:D.timePickerInline,dp__tp_inline_btn_bottom:D.timePickerInline,dp__inc_dec_button_disabled:U.value(ce.type),"dp--hidden-el":g.value}),"data-test-id":`${ce.type}-time-dec-btn-${o.order}`,"aria-label":(xe=r.unref(l))==null?void 0:xe.decrementValue(ce.type),tabindex:"0",onKeydown:X=>r.unref(mn)(X,()=>le(ce.type,!1,{keyboard:!0}),!0),onClick:X=>r.unref(d).timeArrowHoldThreshold?void 0:le(ce.type,!1),onMousedown:X=>r.unref(d).timeArrowHoldThreshold?le(ce.type,!1):void 0,onMouseup:J},[o.timePickerInline?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[D.$slots["tp-inline-arrow-down"]?r.renderSlot(D.$slots,"tp-inline-arrow-down",{key:0}):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[de[4]||(de[4]=r.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),de[5]||(de[5]=r.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[D.$slots["arrow-down"]?r.renderSlot(D.$slots,"arrow-down",{key:0}):r.createCommentVNode("",!0),D.$slots["arrow-down"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(Hp),{key:1}))],64))],42,MA)],64))],10,PA)}),128)),D.is24?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",NA,[D.$slots["am-pm-button"]?r.renderSlot(D.$slots,"am-pm-button",{key:0,toggle:ee,value:w.value}):r.createCommentVNode("",!0),D.$slots["am-pm-button"]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:1,ref_key:"amPmButton",ref:b,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(fe=r.unref(l))==null?void 0:fe.amPmButton,tabindex:"0","data-compact":B.value,onClick:ee,onKeydown:de[0]||(de[0]=ce=>r.unref(mn)(ce,()=>ee(),!0))},r.toDisplayString(w.value),41,OA))])),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList($.value,(ce,Ae)=>(r.openBlock(),r.createBlock(r.Transition,{key:Ae,name:r.unref(m)(y[ce.type]),css:r.unref(v)},{default:r.withCtx(()=>{var pe,Ie;return[y[ce.type]?(r.openBlock(),r.createBlock(zs,{key:0,items:q(ce.type),"is-last":D.autoApply&&!r.unref(d).keepActionRow,"esc-close":D.escClose,type:ce.type,"text-input":D.textInput,config:D.config,"arrow-navigation":D.arrowNavigation,"aria-labels":D.ariaLabels,"overlay-label":(Ie=(pe=r.unref(l)).timeOverlay)==null?void 0:Ie.call(pe,ce.type),onSelected:xe=>ue(ce.type,xe),onToggle:xe=>H(ce.type),onResetFlow:de[1]||(de[1]=xe=>D.$emit("reset-flow"))},r.createSlots({"button-icon":r.withCtx(()=>[D.$slots["clock-icon"]?r.renderSlot(D.$slots,"clock-icon",{key:0}):r.createCommentVNode("",!0),D.$slots["clock-icon"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(D.timePickerInline?r.unref(Ai):r.unref(Fp)),{key:1}))]),_:2},[D.$slots[`${ce.type}-overlay-value`]?{name:"item",fn:r.withCtx(({item:xe})=>[r.renderSlot(D.$slots,`${ce.type}-overlay-value`,{text:xe.text,value:xe.value})]),key:"0"}:void 0,D.$slots[`${ce.type}-overlay-header`]?{name:"header",fn:r.withCtx(()=>[r.renderSlot(D.$slots,`${ce.type}-overlay-header`,{toggle:()=>H(ce.type)})]),key:"1"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","aria-labels","overlay-label","onSelected","onToggle"])):r.createCommentVNode("",!0)]}),_:2},1032,["name","css"]))),128))]))}}}),LA=["data-dp-mobile"],DA=["aria-label","tabindex"],RA=["role","aria-label","tabindex"],$A=["aria-label"],Qy=r.defineComponent({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...ur},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const a=n,o=e,{buildMatrix:i,setTimePicker:s}=Oa(),l=r.useSlots(),{defaultedTransitions:c,defaultedAriaLabels:u,defaultedTextInput:d,defaultedConfig:f,defaultedRange:p}=Et(o),{transitionName:m,showTransition:v}=Vs(c),{hideNavigationButtons:y}=nu(),w=r.ref(null),b=r.ref(null),E=r.ref([]),_=r.ref(null),g=r.ref(!1);r.onMounted(()=>{a("mount"),!o.timePicker&&o.arrowNavigation?i([jt(w.value)],"time"):s(!0,o.timePicker)});const x=r.computed(()=>p.value.enabled&&o.modelAuto?Ly(o.internalModelValue):!0),C=r.ref(!1),P=V=>({hours:Array.isArray(o.hours)?o.hours[V]:o.hours,minutes:Array.isArray(o.minutes)?o.minutes[V]:o.minutes,seconds:Array.isArray(o.seconds)?o.seconds[V]:o.seconds}),O=r.computed(()=>{const V=[];if(p.value.enabled)for(let Z=0;Z<2;Z++)V.push(P(Z));else V.push(P(0));return V}),A=(V,Z=!1,q="")=>{Z||a("reset-flow"),C.value=V,a(V?"overlay-opened":"overlay-closed",ln.time),o.arrowNavigation&&s(V),r.nextTick(()=>{q!==""&&E.value[0]&&E.value[0].openChildCmp(q)})},L=r.computed(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:o.autoApply&&!f.value.keepActionRow})),U=In(l,"timePicker"),z=(V,Z,q)=>p.value.enabled?Z===0?[V,O.value[1][q]]:[O.value[0][q],V]:V,R=V=>{a("update:hours",V)},I=V=>{a("update:minutes",V)},B=V=>{a("update:seconds",V)},M=()=>{if(_.value&&!d.value.enabled&&!o.noOverlayFocus){const V=Dy(_.value);V&&V.focus({preventScroll:!0})}},$=V=>{g.value=!1,a("overlay-closed",V)},K=V=>{g.value=!0,a("overlay-opened",V)};return t({toggleTimePicker:A}),(V,Z)=>{var q;return r.openBlock(),r.createElementBlock("div",{class:"dp--tp-wrap","data-dp-mobile":V.isMobile},[!V.timePicker&&!V.timePickerInline?r.withDirectives((r.openBlock(),r.createElementBlock("button",{key:0,ref_key:"openTimePickerBtn",ref:w,type:"button",class:r.normalizeClass({...L.value,"dp--hidden-el":C.value}),"aria-label":(q=r.unref(u))==null?void 0:q.openTimePicker,tabindex:V.noOverlayFocus?void 0:0,"data-test-id":"open-time-picker-btn",onKeydown:Z[0]||(Z[0]=oe=>r.unref(mn)(oe,()=>A(!0))),onClick:Z[1]||(Z[1]=oe=>A(!0))},[V.$slots["clock-icon"]?r.renderSlot(V.$slots,"clock-icon",{key:0}):r.createCommentVNode("",!0),V.$slots["clock-icon"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(Fp),{key:1}))],42,DA)),[[r.vShow,!r.unref(y)(V.hideNavigation,"time")]]):r.createCommentVNode("",!0),r.createVNode(r.Transition,{name:r.unref(m)(C.value),css:r.unref(v)&&!V.timePickerInline},{default:r.withCtx(()=>{var oe,j;return[C.value||V.timePicker||V.timePickerInline?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"overlayRef",ref:_,role:V.timePickerInline?void 0:"dialog",class:r.normalizeClass({dp__overlay:!V.timePickerInline,"dp--overlay-absolute":!o.timePicker&&!V.timePickerInline,"dp--overlay-relative":o.timePicker}),style:r.normalizeStyle(V.timePicker?{height:`${r.unref(f).modeHeight}px`}:void 0),"aria-label":(oe=r.unref(u))==null?void 0:oe.timePicker,tabindex:V.timePickerInline?void 0:0},[r.createElementVNode("div",{class:r.normalizeClass(V.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[V.$slots["time-picker-overlay"]?r.renderSlot(V.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:R,setMinutes:I,setSeconds:B}):r.createCommentVNode("",!0),V.$slots["time-picker-overlay"]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(V.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(O.value,(W,Y)=>r.withDirectives((r.openBlock(),r.createBlock(BA,r.mergeProps({key:Y,ref_for:!0},{...V.$props,order:Y,hours:W.hours,minutes:W.minutes,seconds:W.seconds,closeTimePickerBtn:b.value,disabledTimesConfig:e.disabledTimesConfig,disabled:Y===0?r.unref(p).fixedStart:r.unref(p).fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:E,"validate-time":(H,T)=>e.validateTime(H,z(T,Y,H)),"onUpdate:hours":H=>R(z(H,Y,"hours")),"onUpdate:minutes":H=>I(z(H,Y,"minutes")),"onUpdate:seconds":H=>B(z(H,Y,"seconds")),onMounted:M,onOverlayClosed:$,onOverlayOpened:K,onAmPmChange:Z[2]||(Z[2]=H=>V.$emit("am-pm-change",H))}),r.createSlots({_:2},[r.renderList(r.unref(U),(H,T)=>({name:H,fn:r.withCtx(J=>[r.renderSlot(V.$slots,H,r.mergeProps({ref_for:!0},J))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[r.vShow,Y===0?!0:x.value]])),128))],2)),!V.timePicker&&!V.timePickerInline?r.withDirectives((r.openBlock(),r.createElementBlock("button",{key:2,ref_key:"closeTimePickerBtn",ref:b,type:"button",class:r.normalizeClass({...L.value,"dp--hidden-el":g.value}),"aria-label":(j=r.unref(u))==null?void 0:j.closeTimePicker,tabindex:"0",onKeydown:Z[3]||(Z[3]=W=>r.unref(mn)(W,()=>A(!1))),onClick:Z[4]||(Z[4]=W=>A(!1))},[V.$slots["calendar-icon"]?r.renderSlot(V.$slots,"calendar-icon",{key:0}):r.createCommentVNode("",!0),V.$slots["calendar-icon"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(Ai),{key:1}))],42,$A)),[[r.vShow,!r.unref(y)(V.hideNavigation,"time")]]):r.createCommentVNode("",!0)],2)],14,RA)):r.createCommentVNode("",!0)]}),_:3},8,["name","css"])],8,LA)}}}),Zy=(e,t,n,a)=>{const{defaultedRange:o}=Et(e),i=(_,g)=>Array.isArray(t[_])?t[_][g]:t[_],s=_=>e.enableSeconds?Array.isArray(t.seconds)?t.seconds[_]:t.seconds:0,l=(_,g)=>_?g!==void 0?ha(_,i("hours",g),i("minutes",g),s(g)):ha(_,t.hours,t.minutes,s()):My(me(),s(g)),c=(_,g)=>{t[_]=g},u=r.computed(()=>e.modelAuto&&o.value.enabled?Array.isArray(n.value)?n.value.length>1:!1:o.value.enabled),d=(_,g)=>{const x=Object.fromEntries(Object.keys(t).map(C=>C===_?[C,g]:[C,t[C]].slice()));if(u.value&&!o.value.disableTimeRangeValidation){const C=O=>n.value?ha(n.value[O],x.hours[O],x.minutes[O],x.seconds[O]):null,P=O=>Iy(n.value[O],0);return!(Xe(C(0),C(1))&&(mo(C(0),P(1))||ui(C(1),P(0))))}return!0},f=(_,g)=>{d(_,g)&&(c(_,g),a&&a())},p=_=>{f("hours",_)},m=_=>{f("minutes",_)},v=_=>{f("seconds",_)},y=(_,g,x,C)=>{g&&p(_),!g&&!x&&m(_),x&&v(_),n.value&&C(n.value)},w=_=>{if(_){const g=Array.isArray(_),x=g?[+_[0].hours,+_[1].hours]:+_.hours,C=g?[+_[0].minutes,+_[1].minutes]:+_.minutes,P=g?[+_[0].seconds,+_[1].seconds]:+_.seconds;c("hours",x),c("minutes",C),e.enableSeconds&&c("seconds",P)}},b=(_,g)=>{const x={hours:Array.isArray(t.hours)?t.hours[_]:t.hours,disabledArr:[]};return(g||g===0)&&(x.hours=g),Array.isArray(e.disabledTimes)&&(x.disabledArr=o.value.enabled&&Array.isArray(e.disabledTimes[_])?e.disabledTimes[_]:e.disabledTimes),x},E=r.computed(()=>(_,g)=>{var x;if(Array.isArray(e.disabledTimes)){const{disabledArr:C,hours:P}=b(_,g),O=C.filter(A=>+A.hours===P);return((x=O[0])==null?void 0:x.minutes)==="*"?{hours:[P],minutes:void 0,seconds:void 0}:{hours:[],minutes:O?.map(A=>+A.minutes)??[],seconds:O?.map(A=>A.seconds?+A.seconds:void 0)??[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:c,updateHours:p,updateMinutes:m,updateSeconds:v,getSetDateTime:l,updateTimeValues:y,getSecondsValue:s,assignStartTime:w,validateTime:d,disabledTimesConfig:E}},zA=(e,t)=>{const n=()=>{e.isTextInputDate&&g()},{modelValue:a,time:o}=Fs(e,t,n),{defaultedStartTime:i,defaultedRange:s,defaultedTz:l}=Et(e),{updateTimeValues:c,getSetDateTime:u,setTime:d,assignStartTime:f,disabledTimesConfig:p,validateTime:m}=Zy(e,o,a,v);function v(){t("update-flow-step")}const y=C=>{const{hours:P,minutes:O,seconds:A}=C;return{hours:+P,minutes:+O,seconds:A?+A:0}},w=()=>{if(e.startTime){if(Array.isArray(e.startTime)){const P=y(e.startTime[0]),O=y(e.startTime[1]);return[ht(me(),P),ht(me(),O)]}const C=y(e.startTime);return ht(me(),C)}return s.value.enabled?[null,null]:null},b=()=>{if(s.value.enabled){const[C,P]=w();a.value=[Cn(u(C,0),l.value.timezone),Cn(u(P,1),l.value.timezone)]}else a.value=Cn(u(w()),l.value.timezone)},E=C=>Array.isArray(C)?[oo(me(C[0])),oo(me(C[1]))]:[oo(C??me())],_=(C,P,O)=>{d("hours",C),d("minutes",P),d("seconds",e.enableSeconds?O:0)},g=()=>{const[C,P]=E(a.value);return s.value.enabled?_([C.hours,P.hours],[C.minutes,P.minutes],[C.seconds,P.seconds]):_(C.hours,C.minutes,C.seconds)};r.onMounted(()=>{if(!e.shadow)return f(i.value),a.value?g():b()});const x=()=>{Array.isArray(a.value)?a.value=a.value.map((C,P)=>C&&u(C,P)):a.value=u(a.value),t("time-update")};return{modelValue:a,time:o,disabledTimesConfig:p,updateTime:(C,P=!0,O=!1)=>{c(C,P,O,x)},validateTime:m}},VA=r.defineComponent({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{...ur},emits:["update:internal-model-value","time-update","am-pm-change","mount","reset-flow","update-flow-step","overlay-toggle"],setup(e,{expose:t,emit:n}){const a=n,o=e,i=r.useSlots(),s=In(i,"timePicker"),l=r.ref(null),{time:c,modelValue:u,disabledTimesConfig:d,updateTime:f,validateTime:p}=zA(o,a);return r.onMounted(()=>{o.shadow||a("mount",null)}),t({getSidebarProps:()=>({modelValue:u,time:c,updateTime:f}),toggleTimePicker:(m,v=!1,y="")=>{var w;(w=l.value)==null||w.toggleTimePicker(m,v,y)}}),(m,v)=>(r.openBlock(),r.createBlock(eu,{"multi-calendars":0,stretch:"","is-mobile":m.isMobile},{default:r.withCtx(()=>[r.createVNode(Qy,r.mergeProps({ref_key:"tpRef",ref:l},m.$props,{hours:r.unref(c).hours,minutes:r.unref(c).minutes,seconds:r.unref(c).seconds,"internal-model-value":m.internalModelValue,"disabled-times-config":r.unref(d),"validate-time":r.unref(p),"onUpdate:hours":v[0]||(v[0]=y=>r.unref(f)(y)),"onUpdate:minutes":v[1]||(v[1]=y=>r.unref(f)(y,!1)),"onUpdate:seconds":v[2]||(v[2]=y=>r.unref(f)(y,!1,!0)),onAmPmChange:v[3]||(v[3]=y=>m.$emit("am-pm-change",y)),onResetFlow:v[4]||(v[4]=y=>m.$emit("reset-flow")),onOverlayClosed:v[5]||(v[5]=y=>m.$emit("overlay-toggle",{open:!1,overlay:y})),onOverlayOpened:v[6]||(v[6]=y=>m.$emit("overlay-toggle",{open:!0,overlay:y}))}),r.createSlots({_:2},[r.renderList(r.unref(s),(y,w)=>({name:y,fn:r.withCtx(b=>[r.renderSlot(m.$slots,y,r.normalizeProps(r.guardReactiveProps(b)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])]),_:3},8,["is-mobile"]))}}),FA={class:"dp--header-wrap"},jA={key:0,class:"dp__month_year_wrap"},HA={key:0},UA={class:"dp__month_year_wrap"},WA=["data-dp-element","aria-label","data-test-id","onClick","onKeydown"],qA=r.defineComponent({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},...ur},emits:["update-month-year","mount","reset-flow","overlay-closed","overlay-opened"],setup(e,{expose:t,emit:n}){const a=n,o=e,{defaultedTransitions:i,defaultedAriaLabels:s,defaultedMultiCalendars:l,defaultedFilters:c,defaultedConfig:u,defaultedHighlight:d,propDates:f,defaultedUI:p}=Et(o),{transitionName:m,showTransition:v}=Vs(i),{buildMatrix:y}=Oa(),{handleMonthYearChange:w,isDisabled:b,updateMonthYear:E}=fA(o,a),{showLeftIcon:_,showRightIcon:g}=nu(),x=r.ref(!1),C=r.ref(!1),P=r.ref(!1),O=r.ref([null,null,null,null]);r.onMounted(()=>{a("mount")});const A=j=>({get:()=>o[j],set:W=>{const Y=j===qn.month?qn.year:qn.month;a("update-month-year",{[j]:W,[Y]:o[Y]}),j===qn.month?$(!0):K(!0)}}),L=r.computed(A(qn.month)),U=r.computed(A(qn.year)),z=r.computed(()=>j=>({month:o.month,year:o.year,items:j===qn.month?o.months:o.years,instance:o.instance,updateMonthYear:E,toggle:j===qn.month?$:K})),R=r.computed(()=>o.months.find(W=>W.value===o.month)||{text:"",value:0}),I=r.computed(()=>fi(o.months,j=>{const W=o.month===j.value,Y=ws(j.value,Vy(o.year,f.value.minDate),Fy(o.year,f.value.maxDate))||c.value.months.includes(j.value),H=qy(d.value,j.value,o.year);return{active:W,disabled:Y,highlighted:H}})),B=r.computed(()=>fi(o.years,j=>{const W=o.year===j.value,Y=ws(j.value,pi(f.value.minDate),pi(f.value.maxDate))||c.value.years.includes(j.value),H=Gp(d.value,j.value);return{active:W,disabled:Y,highlighted:H}})),M=(j,W,Y)=>{Y!==void 0?j.value=Y:j.value=!j.value,j.value?(P.value=!0,a("overlay-opened",W)):(P.value=!1,a("overlay-closed",W))},$=(j=!1,W)=>{V(j),M(x,ln.month,W)},K=(j=!1,W)=>{V(j),M(C,ln.year,W)},V=j=>{j||a("reset-flow")},Z=(j,W)=>{o.arrowNavigation&&(O.value[W]=jt(j),y(O.value,"monthYear"))},q=r.computed(()=>{var j,W,Y,H,T,J;return[{type:qn.month,index:1,toggle:$,modelValue:L.value,updateModelValue:le=>L.value=le,text:R.value.text,showSelectionGrid:x.value,items:I.value,ariaLabel:(j=s.value)==null?void 0:j.openMonthsOverlay,overlayLabel:((Y=(W=s.value).monthPicker)==null?void 0:Y.call(W,!0))??void 0},{type:qn.year,index:2,toggle:K,modelValue:U.value,updateModelValue:le=>U.value=le,text:Ry(o.year,o.locale),showSelectionGrid:C.value,items:B.value,ariaLabel:(H=s.value)==null?void 0:H.openYearsOverlay,overlayLabel:((J=(T=s.value).yearPicker)==null?void 0:J.call(T,!0))??void 0}]}),oe=r.computed(()=>o.disableYearSelect?[q.value[0]]:o.yearFirst?[...q.value].reverse():q.value);return t({toggleMonthPicker:$,toggleYearPicker:K,handleMonthYearChange:w}),(j,W)=>{var Y,H,T,J,le,Oe;return r.openBlock(),r.createElementBlock("div",FA,[j.$slots["month-year"]?(r.openBlock(),r.createElementBlock("div",jA,[r.renderSlot(j.$slots,"month-year",r.normalizeProps(r.guardReactiveProps({month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:r.unref(E),handleMonthYearChange:r.unref(w),instance:e.instance,isDisabled:r.unref(b)})))])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[j.$slots["top-extra"]?(r.openBlock(),r.createElementBlock("div",HA,[r.renderSlot(j.$slots,"top-extra",{value:j.internalModelValue})])):r.createCommentVNode("",!0),r.createElementVNode("div",UA,[r.unref(_)(r.unref(l),e.instance)&&!j.vertical?(r.openBlock(),r.createBlock(as,{key:0,"aria-label":(Y=r.unref(s))==null?void 0:Y.prevMonth,disabled:r.unref(b)(!1),class:r.normalizeClass((H=r.unref(p))==null?void 0:H.navBtnPrev),"el-name":"action-prev",onActivate:W[0]||(W[0]=ee=>r.unref(w)(!1,!0)),onSetRef:W[1]||(W[1]=ee=>Z(ee,0))},{default:r.withCtx(()=>[j.$slots["arrow-left"]?r.renderSlot(j.$slots,"arrow-left",{key:0}):r.createCommentVNode("",!0),j.$slots["arrow-left"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(zp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["dp__month_year_wrap",{dp__year_disable_select:j.disableYearSelect}])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(oe.value,(ee,Te)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:ee.type},[r.createElementVNode("button",{ref_for:!0,ref:ae=>Z(ae,Te+1),type:"button","data-dp-element":`overlay-${ee.type}`,class:r.normalizeClass(["dp__btn dp__month_year_select",{"dp--hidden-el":P.value}]),"aria-label":`${ee.text}-${ee.ariaLabel}`,"data-test-id":`${ee.type}-toggle-overlay-${e.instance}`,onClick:ee.toggle,onKeydown:ae=>r.unref(mn)(ae,()=>ee.toggle(),!0)},[j.$slots[ee.type]?r.renderSlot(j.$slots,ee.type,{key:0,text:ee.text,value:o[ee.type]}):r.createCommentVNode("",!0),j.$slots[ee.type]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(ee.text),1)],64))],42,WA),r.createVNode(r.Transition,{name:r.unref(m)(ee.showSelectionGrid),css:r.unref(v)},{default:r.withCtx(()=>[ee.showSelectionGrid?(r.openBlock(),r.createBlock(zs,{key:0,items:ee.items,"arrow-navigation":j.arrowNavigation,"hide-navigation":j.hideNavigation,"is-last":j.autoApply&&!r.unref(u).keepActionRow,"skip-button-ref":!1,config:j.config,type:ee.type,"header-refs":[],"esc-close":j.escClose,"menu-wrap-ref":j.menuWrapRef,"text-input":j.textInput,"aria-labels":j.ariaLabels,"overlay-label":ee.overlayLabel,onSelected:ee.updateModelValue,onToggle:ee.toggle},r.createSlots({"button-icon":r.withCtx(()=>[j.$slots["calendar-icon"]?r.renderSlot(j.$slots,"calendar-icon",{key:0}):r.createCommentVNode("",!0),j.$slots["calendar-icon"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(Ai),{key:1}))]),_:2},[j.$slots[`${ee.type}-overlay-value`]?{name:"item",fn:r.withCtx(({item:ae})=>[r.renderSlot(j.$slots,`${ee.type}-overlay-value`,{text:ae.text,value:ae.value})]),key:"0"}:void 0,j.$slots[`${ee.type}-overlay`]?{name:"overlay",fn:r.withCtx(()=>[r.renderSlot(j.$slots,`${ee.type}-overlay`,r.mergeProps({ref_for:!0},z.value(ee.type)))]),key:"1"}:void 0,j.$slots[`${ee.type}-overlay-header`]?{name:"header",fn:r.withCtx(()=>[r.renderSlot(j.$slots,`${ee.type}-overlay-header`,{toggle:ee.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","menu-wrap-ref","text-input","aria-labels","overlay-label","onSelected","onToggle"])):r.createCommentVNode("",!0)]),_:2},1032,["name","css"])],64))),128))],2),r.unref(_)(r.unref(l),e.instance)&&j.vertical?(r.openBlock(),r.createBlock(as,{key:1,"aria-label":(T=r.unref(s))==null?void 0:T.prevMonth,"el-name":"action-prev",disabled:r.unref(b)(!1),class:r.normalizeClass((J=r.unref(p))==null?void 0:J.navBtnPrev),onActivate:W[2]||(W[2]=ee=>r.unref(w)(!1,!0))},{default:r.withCtx(()=>[j.$slots["arrow-up"]?r.renderSlot(j.$slots,"arrow-up",{key:0}):r.createCommentVNode("",!0),j.$slots["arrow-up"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(jp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):r.createCommentVNode("",!0),r.unref(g)(r.unref(l),e.instance)?(r.openBlock(),r.createBlock(as,{key:2,ref:"rightIcon","el-name":"action-next",disabled:r.unref(b)(!0),"aria-label":(le=r.unref(s))==null?void 0:le.nextMonth,class:r.normalizeClass((Oe=r.unref(p))==null?void 0:Oe.navBtnNext),onActivate:W[3]||(W[3]=ee=>r.unref(w)(!0,!0)),onSetRef:W[4]||(W[4]=ee=>Z(ee,j.disableYearSelect?2:3))},{default:r.withCtx(()=>[j.$slots[j.vertical?"arrow-down":"arrow-right"]?r.renderSlot(j.$slots,j.vertical?"arrow-down":"arrow-right",{key:0}):r.createCommentVNode("",!0),j.$slots[j.vertical?"arrow-down":"arrow-right"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(j.vertical?r.unref(Hp):r.unref(Vp)),{key:1}))]),_:3},8,["disabled","aria-label","class"])):r.createCommentVNode("",!0)])],64))])}}}),YA={class:"dp__calendar_header",role:"row"},GA={key:0,class:"dp__calendar_header_item",role:"gridcell"},KA=["aria-label"],XA={key:0,class:"dp__calendar_item dp__week_num",role:"gridcell"},JA={class:"dp__cell_inner"},QA=["id","aria-pressed","aria-disabled","aria-label","tabindex","data-test-id","onClick","onTouchend","onKeydown","onMouseenter","onMouseleave","onMousedown"],ZA=r.defineComponent({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...ur},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:t,emit:n}){const a=n,o=e,{buildMultiLevelMatrix:i}=Oa(),{defaultedTransitions:s,defaultedConfig:l,defaultedAriaLabels:c,defaultedMultiCalendars:u,defaultedWeekNumbers:d,defaultedMultiDates:f,defaultedUI:p}=Et(o),m=r.ref(null),v=r.ref({bottom:"",left:"",transform:""}),y=r.ref([]),w=r.ref(null),b=r.ref(!0),E=r.ref(""),_=r.ref({startX:0,endX:0,startY:0,endY:0}),g=r.ref([]),x=r.ref({left:"50%"}),C=r.ref(!1),P=r.computed(()=>o.calendar?o.calendar(o.mappedDates):o.mappedDates),O=r.computed(()=>o.dayNames?Array.isArray(o.dayNames)?o.dayNames:o.dayNames(o.locale,+o.weekStart):NP(o.formatLocale,o.locale,+o.weekStart));r.onMounted(()=>{a("mount",{cmp:"calendar",refs:y}),l.value.noSwipe||w.value&&(w.value.addEventListener("touchstart",Z,{passive:!1}),w.value.addEventListener("touchend",q,{passive:!1}),w.value.addEventListener("touchmove",oe,{passive:!1})),o.monthChangeOnScroll&&w.value&&w.value.addEventListener("wheel",Y,{passive:!1})}),r.onUnmounted(()=>{l.value.noSwipe||w.value&&(w.value.removeEventListener("touchstart",Z),w.value.removeEventListener("touchend",q),w.value.removeEventListener("touchmove",oe)),o.monthChangeOnScroll&&w.value&&w.value.removeEventListener("wheel",Y)});const A=ee=>ee?o.vertical?"vNext":"next":o.vertical?"vPrevious":"previous",L=(ee,Te)=>{if(o.transitions){const ae=Gt(Fr(me(),o.month,o.year));E.value=Lt(Gt(Fr(me(),ee,Te)),ae)?s.value[A(!0)]:s.value[A(!1)],b.value=!1,r.nextTick(()=>{b.value=!0})}},U=r.computed(()=>({...p.value.calendar??{}})),z=r.computed(()=>ee=>{const Te=BP(ee);return{dp__marker_dot:Te.type==="dot",dp__marker_line:Te.type==="line"}}),R=r.computed(()=>ee=>Xe(ee,m.value)),I=r.computed(()=>({dp__calendar:!0,dp__calendar_next:u.value.count>0&&o.instance!==0})),B=r.computed(()=>ee=>o.hideOffsetDates?ee.current:!0),M=async(ee,Te)=>{const{width:ae,height:ue}=ee.getBoundingClientRect();m.value=Te.value;let D={left:`${ae/2}px`},de=-50;if(await r.nextTick(),g.value[0]){const{left:fe,width:ce}=g.value[0].getBoundingClientRect();fe<0&&(D={left:"0"},de=0,x.value.left=`${ae/2}px`),window.innerWidth<fe+ce&&(D={right:"0"},de=0,x.value.left=`${ce-ae/2}px`)}v.value={bottom:`${ue}px`,...D,transform:`translateX(${de}%)`}},$=async(ee,Te,ae)=>{var ue,D,de;const fe=jt(y.value[Te][ae]);fe&&((ue=ee.marker)!=null&&ue.customPosition&&(de=(D=ee.marker)==null?void 0:D.tooltip)!=null&&de.length?v.value=ee.marker.customPosition(fe):await M(fe,ee),a("tooltip-open",ee.marker))},K=async(ee,Te,ae)=>{var ue,D;if(C.value&&f.value.enabled&&f.value.dragSelect)return a("select-date",ee);if(a("set-hover-date",ee),(D=(ue=ee.marker)==null?void 0:ue.tooltip)!=null&&D.length){if(o.hideOffsetDates&&!ee.current)return;await $(ee,Te,ae)}},V=ee=>{m.value&&(m.value=null,v.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),a("tooltip-close",ee.marker))},Z=ee=>{_.value.startX=ee.changedTouches[0].screenX,_.value.startY=ee.changedTouches[0].screenY},q=ee=>{_.value.endX=ee.changedTouches[0].screenX,_.value.endY=ee.changedTouches[0].screenY,j()},oe=ee=>{o.vertical&&!o.inline&&ee.preventDefault()},j=()=>{const ee=o.vertical?"Y":"X";Math.abs(_.value[`start${ee}`]-_.value[`end${ee}`])>10&&a("handle-swipe",_.value[`start${ee}`]>_.value[`end${ee}`]?"right":"left")},W=(ee,Te,ae)=>{ee&&(Array.isArray(y.value[Te])?y.value[Te][ae]=ee:y.value[Te]=[ee]),o.arrowNavigation&&i(y.value,"calendar")},Y=ee=>{o.monthChangeOnScroll&&(ee.preventDefault(),a("handle-scroll",ee))},H=ee=>d.value.type==="local"?Dp(ee.value,{weekStartsOn:+o.weekStart}):d.value.type==="iso"?Bp(ee.value):typeof d.value.type=="function"?d.value.type(ee.value):"",T=ee=>{const Te=ee[0];return d.value.hideOnOffsetDates?ee.some(ae=>ae.current)?H(Te):"":H(Te)},J=(ee,Te,ae=!0)=>{!ae&&zP()||(!f.value.enabled||l.value.allowPreventDefault)&&(ma(ee,l.value),a("select-date",Te))},le=ee=>{ma(ee,l.value)},Oe=ee=>{f.value.enabled&&f.value.dragSelect?(C.value=!0,a("select-date",ee)):f.value.enabled&&a("select-date",ee)};return t({triggerTransition:L}),(ee,Te)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(I.value)},[r.createElementVNode("div",{ref_key:"calendarWrapRef",ref:w,class:r.normalizeClass(U.value),role:"grid"},[r.createElementVNode("div",YA,[ee.weekNumbers?(r.openBlock(),r.createElementBlock("div",GA,r.toDisplayString(ee.weekNumName),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(O.value,(ae,ue)=>{var D,de;return r.openBlock(),r.createElementBlock("div",{key:ue,class:"dp__calendar_header_item",role:"gridcell","data-test-id":"calendar-header","aria-label":(de=(D=r.unref(c))==null?void 0:D.weekDay)==null?void 0:de.call(D,ue)},[ee.$slots["calendar-header"]?r.renderSlot(ee.$slots,"calendar-header",{key:0,day:ae,index:ue}):r.createCommentVNode("",!0),ee.$slots["calendar-header"]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(ae),1)],64))],8,KA)}),128))]),Te[2]||(Te[2]=r.createElementVNode("div",{class:"dp__calendar_header_separator"},null,-1)),r.createVNode(r.Transition,{name:E.value,css:!!ee.transitions},{default:r.withCtx(()=>[b.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:"dp__calendar",role:"rowgroup",onMouseleave:Te[1]||(Te[1]=ae=>C.value=!1)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(P.value,(ae,ue)=>(r.openBlock(),r.createElementBlock("div",{key:ue,class:"dp__calendar_row",role:"row"},[ee.weekNumbers?(r.openBlock(),r.createElementBlock("div",XA,[r.createElementVNode("div",JA,r.toDisplayString(T(ae.days)),1)])):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(ae.days,(D,de)=>{var fe,ce,Ae;return r.openBlock(),r.createElementBlock("div",{id:r.unref(bf)(D.value),ref_for:!0,ref:pe=>W(pe,ue,de),key:de+ue,role:"gridcell",class:"dp__calendar_item","aria-pressed":(D.classData.dp__active_date||D.classData.dp__range_start||D.classData.dp__range_start)??void 0,"aria-disabled":D.classData.dp__cell_disabled||void 0,"aria-label":(ce=(fe=r.unref(c))==null?void 0:fe.day)==null?void 0:ce.call(fe,D),tabindex:!D.current&&ee.hideOffsetDates?void 0:0,"data-test-id":r.unref(bf)(D.value),onClick:r.withModifiers(pe=>J(pe,D),["prevent"]),onTouchend:pe=>J(pe,D,!1),onKeydown:pe=>r.unref(mn)(pe,()=>ee.$emit("select-date",D)),onMouseenter:pe=>K(D,ue,de),onMouseleave:pe=>V(D),onMousedown:pe=>Oe(D),onMouseup:Te[0]||(Te[0]=pe=>C.value=!1)},[r.createElementVNode("div",{class:r.normalizeClass(["dp__cell_inner",D.classData])},[ee.$slots.day&&B.value(D)?r.renderSlot(ee.$slots,"day",{key:0,day:+D.text,date:D.value}):r.createCommentVNode("",!0),ee.$slots.day?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(D.text),1)],64)),D.marker&&B.value(D)?(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[ee.$slots.marker?r.renderSlot(ee.$slots,"marker",{key:0,marker:D.marker,day:+D.text,date:D.value}):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(z.value(D.marker)),style:r.normalizeStyle(D.marker.color?{backgroundColor:D.marker.color}:{})},null,6))],64)):r.createCommentVNode("",!0),R.value(D.value)?(r.openBlock(),r.createElementBlock("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:g,class:"dp__marker_tooltip",style:r.normalizeStyle(v.value)},[(Ae=D.marker)!=null&&Ae.tooltip?(r.openBlock(),r.createElementBlock("div",{key:0,class:"dp__tooltip_content",onClick:le},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(D.marker.tooltip,(pe,Ie)=>(r.openBlock(),r.createElementBlock("div",{key:Ie,class:"dp__tooltip_text"},[ee.$slots["marker-tooltip"]?r.renderSlot(ee.$slots,"marker-tooltip",{key:0,tooltip:pe,day:D.value}):r.createCommentVNode("",!0),ee.$slots["marker-tooltip"]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createElementVNode("div",{class:"dp__tooltip_mark",style:r.normalizeStyle(pe.color?{backgroundColor:pe.color}:{})},null,4),r.createElementVNode("div",null,r.toDisplayString(pe.text),1)],64))]))),128)),r.createElementVNode("div",{class:"dp__arrow_bottom_tp",style:r.normalizeStyle(x.value)},null,4)])):r.createCommentVNode("",!0)],4)):r.createCommentVNode("",!0)],2)],40,QA)}),128))]))),128))],32)):r.createCommentVNode("",!0)]),_:3},8,["name","css"])],2)],2))}}),Zv=e=>Array.isArray(e),eI=(e,t,n,a)=>{const o=r.ref([]),i=r.ref(new Date),s=r.ref(),l=()=>q(e.isTextInputDate),{modelValue:c,calendars:u,time:d,today:f}=Fs(e,t,l),{defaultedMultiCalendars:p,defaultedStartTime:m,defaultedRange:v,defaultedConfig:y,defaultedTz:w,propDates:b,defaultedMultiDates:E}=Et(e),{validateMonthYearInRange:_,isDisabled:g,isDateRangeAllowed:x,checkMinMaxRange:C}=Ba(e),{updateTimeValues:P,getSetDateTime:O,setTime:A,assignStartTime:L,validateTime:U,disabledTimesConfig:z}=Zy(e,d,c,a),R=r.computed(()=>G=>u.value[G]?u.value[G].month:0),I=r.computed(()=>G=>u.value[G]?u.value[G].year:0),B=G=>!y.value.keepViewOnOffsetClick||G?!0:!s.value,M=(G,se,be,Re=!1)=>{var ne,he;B(Re)&&(u.value[G]||(u.value[G]={month:0,year:0}),u.value[G].month=Yv(se)?(ne=u.value[G])==null?void 0:ne.month:se,u.value[G].year=Yv(be)?(he=u.value[G])==null?void 0:he.year:be)},$=()=>{e.autoApply&&t("select-date")},K=()=>{m.value&&L(m.value)};r.onMounted(()=>{e.shadow||(c.value||(Te(),K()),q(!0),e.focusStartDate&&e.startDate&&Te())});const V=r.computed(()=>{var G;return(G=e.flow)!=null&&G.length&&!e.partialFlow?e.flowStep===e.flow.length:!0}),Z=()=>{e.autoApply&&V.value&&t("auto-apply",e.partialFlow?e.flowStep!==e.flow.length:!1)},q=(G=!1)=>{if(c.value)return Array.isArray(c.value)?(o.value=c.value,J(G)):W(c.value,G);if(p.value.count&&G&&!e.startDate)return j(me(),G)},oe=()=>Array.isArray(c.value)&&v.value.enabled?Ke(c.value[0])===Ke(c.value[1]??c.value[0]):!1,j=(G=new Date,se=!1)=>{if((!p.value.count||!p.value.static||se)&&M(0,Ke(G),Fe(G)),p.value.count&&(!c.value||oe()||!p.value.solo)&&(!p.value.solo||se))for(let be=1;be<p.value.count;be++){const Re=ht(me(),{month:R.value(be-1),year:I.value(be-1)}),ne=py(Re,{months:1});u.value[be]={month:Ke(ne),year:Fe(ne)}}},W=(G,se)=>{j(G),A("hours",Kr(G)),A("minutes",ka(G)),A("seconds",ci(G)),p.value.count&&se&&ee()},Y=G=>{if(p.value.count){if(p.value.solo)return 0;const se=Ke(G[0]),be=Ke(G[1]);return Math.abs(be-se)<p.value.count?0:1}return 1},H=(G,se)=>{G[1]&&v.value.showLastInRange?j(G[Y(G)],se):j(G[0],se);const be=(Re,ne)=>[Re(G[0]),G[1]?Re(G[1]):d[ne][1]];A("hours",be(Kr,"hours")),A("minutes",be(ka,"minutes")),A("seconds",be(ci,"seconds"))},T=(G,se)=>{if((v.value.enabled||e.weekPicker)&&!E.value.enabled)return H(G,se);if(E.value.enabled&&se){const be=G[G.length-1];return W(be,se)}},J=G=>{const se=c.value;T(se,G),p.value.count&&p.value.solo&&ee()},le=(G,se)=>{const be=ht(me(),{month:R.value(se),year:I.value(se)}),Re=G<0?nr(be,1):di(be,1);_(Ke(Re),Fe(Re),G<0,e.preventMinMaxNavigation)&&(M(se,Ke(Re),Fe(Re)),t("update-month-year",{instance:se,month:Ke(Re),year:Fe(Re)}),p.value.count&&!p.value.solo&&Oe(se),n())},Oe=G=>{for(let se=G-1;se>=0;se--){const be=di(ht(me(),{month:R.value(se+1),year:I.value(se+1)}),1);M(se,Ke(be),Fe(be))}for(let se=G+1;se<=p.value.count-1;se++){const be=nr(ht(me(),{month:R.value(se-1),year:I.value(se-1)}),1);M(se,Ke(be),Fe(be))}},ee=()=>{if(Array.isArray(c.value)&&c.value.length===2){const G=me(me(c.value[1]?c.value[1]:nr(c.value[0],1))),[se,be]=[Ke(c.value[0]),Fe(c.value[0])],[Re,ne]=[Ke(c.value[1]),Fe(c.value[1])];(se!==Re||se===Re&&be!==ne)&&p.value.solo&&M(1,Ke(G),Fe(G))}else c.value&&!Array.isArray(c.value)&&(M(0,Ke(c.value),Fe(c.value)),j(me()))},Te=()=>{e.startDate&&(M(0,Ke(me(e.startDate)),Fe(me(e.startDate))),p.value.count&&Oe(0))},ae=(G,se)=>{if(e.monthChangeOnScroll){const be=new Date().getTime()-i.value.getTime(),Re=Math.abs(G.deltaY);let ne=500;Re>1&&(ne=100),Re>100&&(ne=0),be>ne&&(i.value=new Date,le(e.monthChangeOnScroll!=="inverse"?-G.deltaY:G.deltaY,se))}},ue=(G,se,be=!1)=>{e.monthChangeOnArrows&&e.vertical===be&&D(G,se)},D=(G,se)=>{le(G==="right"?-1:1,se)},de=G=>{if(b.value.markers)return fc(G.value,b.value.markers)},fe=(G,se)=>{switch(e.sixWeeks===!0?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[G==0,!0];case"fair":return[G==0||se>G,!0];case"append":return[!1,!1];default:return[!1,!1]}},ce=(G,se,be,Re)=>{if(e.sixWeeks&&G.length<6){const ne=6-G.length,he=(se.getDay()+7-Re)%7,Ce=6-(be.getDay()+7-Re)%7,[st,vt]=fe(he,Ce);for(let Ut=1;Ut<=ne;Ut++)if(vt?!!(Ut%2)==st:st){const Vt=G[0].days[0],nn=Ae(Rn(Vt.value,-7),Ke(se));G.unshift({days:nn})}else{const Vt=G[G.length-1],nn=Vt.days[Vt.days.length-1],za=Ae(Rn(nn.value,1),Ke(se));G.push({days:za})}}return G},Ae=(G,se)=>{const be=me(G),Re=[];for(let ne=0;ne<7;ne++){const he=Rn(be,ne),Ce=Ke(he)!==se;Re.push({text:e.hideOffsetDates&&Ce?"":he.getDate(),value:he,current:!Ce,classData:{}})}return Re},pe=(G,se)=>{const be=[],Re=new Date(se,G),ne=new Date(se,G+1,0),he=e.weekStart,Ce=ir(Re,{weekStartsOn:he}),st=vt=>{const Ut=Ae(vt,G);if(be.push({days:Ut}),!be[be.length-1].days.some(Vt=>Xe(Gt(Vt.value),Gt(ne)))){const Vt=Rn(vt,7);st(Vt)}};return st(Ce),ce(be,Re,ne,he)},Ie=G=>{const se=ha(me(G.value),d.hours,d.minutes,Se());t("date-update",se),E.value.enabled?Kp(se,c,E.value.limit):c.value=se,a(),r.nextTick().then(()=>{Z()})},xe=G=>v.value.noDisabledRange?jy(o.value[0],G).some(se=>g(se)):!1,X=()=>{o.value=c.value?c.value.slice():[],o.value.length===2&&!(v.value.fixedStart||v.value.fixedEnd)&&(o.value=[])},re=(G,se)=>{const be=[me(G.value),Rn(me(G.value),+v.value.autoRange)];x(be)?(se&&ye(G.value),o.value=be):t("invalid-date",G.value)},ye=G=>{const se=Ke(me(G)),be=Fe(me(G));if(M(0,se,be),p.value.count>0)for(let Re=1;Re<p.value.count;Re++){const ne=jP(ht(me(G),{year:I.value(Re-1),month:R.value(Re-1)}));M(Re,ne.month,ne.year)}},Ze=G=>{if(xe(G.value)||!C(G.value,c.value,v.value.fixedStart?0:1))return t("invalid-date",G.value);o.value=Xy(me(G.value),c,t,v)},ct=(G,se)=>{if(X(),v.value.autoRange)return re(G,se);if(v.value.fixedStart||v.value.fixedEnd)return Ze(G);o.value[0]?C(me(G.value),c.value)&&!xe(G.value)?Mt(me(G.value),me(o.value[0]))?(o.value.unshift(me(G.value)),t("range-end",o.value[0])):(o.value[1]=me(G.value),t("range-end",o.value[1])):(e.autoApply&&t("auto-apply-invalid",G.value),t("invalid-date",G.value)):(o.value[0]=me(G.value),t("range-start",o.value[0]))},Se=(G=!0)=>e.enableSeconds?Array.isArray(d.seconds)?G?d.seconds[0]:d.seconds[1]:d.seconds:0,ut=G=>{o.value[G]=ha(o.value[G],d.hours[G],d.minutes[G],Se(G!==1))},$t=()=>{var G,se;o.value[0]&&o.value[1]&&+((G=o.value)==null?void 0:G[0])>+((se=o.value)==null?void 0:se[1])&&(o.value.reverse(),t("range-start",o.value[0]),t("range-end",o.value[1]))},xn=()=>{o.value.length&&(o.value[0]&&!o.value[1]?ut(0):(ut(0),ut(1),a()),$t(),c.value=o.value.slice(),tu(o.value,t,e.autoApply,e.modelAuto))},zt=(G,se=!1)=>{if(g(G.value)||!G.current&&e.hideOffsetDates)return t("invalid-date",G.value);if(s.value=JSON.parse(JSON.stringify(G)),!v.value.enabled)return Ie(G);Zv(d.hours)&&Zv(d.minutes)&&!E.value.enabled&&(ct(G,se),xn())},Kt=(G,se)=>{var be;M(G,se.month,se.year,!0),p.value.count&&!p.value.solo&&Oe(G),t("update-month-year",{instance:G,month:se.month,year:se.year}),n(p.value.solo?G:void 0);const Re=(be=e.flow)!=null&&be.length?e.flow[e.flowStep]:void 0;!se.fromNav&&(Re===ln.month||Re===ln.year)&&a()},te=(G,se)=>{Ky({value:G,modelValue:c,range:v.value.enabled,timezone:se?void 0:w.value.timezone}),$(),e.multiCalendars&&r.nextTick().then(()=>q(!0))},_e=()=>{const G=Up(me(),w.value);!v.value.enabled&&!E.value.enabled?c.value=G:c.value&&Array.isArray(c.value)&&c.value[0]?E.value.enabled?c.value=[...c.value,G]:c.value=Mt(G,c.value[0])?[G,c.value[0]]:[c.value[0],G]:c.value=[G],$()},Ee=()=>{if(Array.isArray(c.value))if(E.value.enabled){const G=He();c.value[c.value.length-1]=O(G)}else c.value=c.value.map((G,se)=>G&&O(G,se));else c.value=O(c.value);t("time-update")},He=()=>Array.isArray(c.value)&&c.value.length?c.value[c.value.length-1]:null;return{calendars:u,modelValue:c,month:R,year:I,time:d,disabledTimesConfig:z,today:f,validateTime:U,getCalendarDays:pe,getMarker:de,handleScroll:ae,handleSwipe:D,handleArrow:ue,selectDate:zt,updateMonthYear:Kt,presetDate:te,selectCurrentDate:_e,updateTime:(G,se=!0,be=!1)=>{P(G,se,be,Ee)},assignMonthAndYear:j,setStartTime:K}},tI={key:0},nI=r.defineComponent({__name:"DatePicker",props:{...ur},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:n}){const a=n,o=e,{calendars:i,month:s,year:l,modelValue:c,time:u,disabledTimesConfig:d,today:f,validateTime:p,getCalendarDays:m,getMarker:v,handleArrow:y,handleScroll:w,handleSwipe:b,selectDate:E,updateMonthYear:_,presetDate:g,selectCurrentDate:x,updateTime:C,assignMonthAndYear:P,setStartTime:O}=eI(o,a,oe,j),A=r.useSlots(),{setHoverDate:L,getDayClassData:U,clearHoverDate:z}=bI(c,o),{defaultedMultiCalendars:R}=Et(o),I=r.ref([]),B=r.ref([]),M=r.ref(null),$=In(A,"calendar"),K=In(A,"monthYear"),V=In(A,"timePicker"),Z=ae=>{o.shadow||a("mount",ae)};r.watch(i,()=>{o.shadow||setTimeout(()=>{a("recalculate-position")},0)},{deep:!0}),r.watch(R,(ae,ue)=>{ae.count-ue.count>0&&P()},{deep:!0});const q=r.computed(()=>ae=>m(s.value(ae),l.value(ae)).map(ue=>({...ue,days:ue.days.map(D=>(D.marker=v(D),D.classData=U(D),D))})));function oe(ae){var ue;ae||ae===0?(ue=B.value[ae])==null||ue.triggerTransition(s.value(ae),l.value(ae)):B.value.forEach((D,de)=>D.triggerTransition(s.value(de),l.value(de)))}function j(){a("update-flow-step")}const W=(ae,ue=!1)=>{E(ae,ue),o.spaceConfirm&&a("select-date")},Y=(ae,ue,D=0)=>{var de;(de=I.value[D])==null||de.toggleMonthPicker(ae,ue)},H=(ae,ue,D=0)=>{var de;(de=I.value[D])==null||de.toggleYearPicker(ae,ue)},T=(ae,ue,D)=>{var de;(de=M.value)==null||de.toggleTimePicker(ae,ue,D)},J=(ae,ue)=>{var D;if(!o.range){const de=c.value?c.value:f,fe=ue?new Date(ue):de,ce=ae?ir(fe,{weekStartsOn:1}):wy(fe,{weekStartsOn:1});E({value:ce,current:Ke(fe)===s.value(0),text:"",classData:{}}),(D=document.getElementById(bf(ce)))==null||D.focus()}},le=ae=>{var ue;(ue=I.value[0])==null||ue.handleMonthYearChange(ae,!0)},Oe=ae=>{_(0,{month:s.value(0),year:l.value(0)+(ae?1:-1),fromNav:!0})},ee=(ae,ue)=>{ae===ln.time&&a(`time-picker-${ue?"open":"close"}`),a("overlay-toggle",{open:ue,overlay:ae})},Te=ae=>{a("overlay-toggle",{open:!1,overlay:ae}),a("focus-menu")};return t({clearHoverDate:z,presetDate:g,selectCurrentDate:x,toggleMonthPicker:Y,toggleYearPicker:H,toggleTimePicker:T,handleArrow:y,updateMonthYear:_,getSidebarProps:()=>({modelValue:c,month:s,year:l,time:u,updateTime:C,updateMonthYear:_,selectDate:E,presetDate:g}),changeMonth:le,changeYear:Oe,selectWeekDate:J,setStartTime:O}),(ae,ue)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(eu,{"multi-calendars":r.unref(R).count,collapse:ae.collapse,"is-mobile":ae.isMobile},{default:r.withCtx(({instance:D,index:de})=>[ae.disableMonthYearSelect?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(qA,r.mergeProps({key:0,ref:fe=>{fe&&(I.value[de]=fe)},months:r.unref(By)(ae.formatLocale,ae.locale,ae.monthNameFormat),years:r.unref(Wp)(ae.yearRange,ae.locale,ae.reverseYears),month:r.unref(s)(D),year:r.unref(l)(D),instance:D},ae.$props,{onMount:ue[0]||(ue[0]=fe=>Z(r.unref(ao).header)),onResetFlow:ue[1]||(ue[1]=fe=>ae.$emit("reset-flow")),onUpdateMonthYear:fe=>r.unref(_)(D,fe),onOverlayClosed:Te,onOverlayOpened:ue[2]||(ue[2]=fe=>ae.$emit("overlay-toggle",{open:!0,overlay:fe}))}),r.createSlots({_:2},[r.renderList(r.unref(K),(fe,ce)=>({name:fe,fn:r.withCtx(Ae=>[r.renderSlot(ae.$slots,fe,r.normalizeProps(r.guardReactiveProps(Ae)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),r.createVNode(ZA,r.mergeProps({ref:fe=>{fe&&(B.value[de]=fe)},"mapped-dates":q.value(D),month:r.unref(s)(D),year:r.unref(l)(D),instance:D},ae.$props,{onSelectDate:fe=>r.unref(E)(fe,D!==1),onHandleSpace:fe=>W(fe,D!==1),onSetHoverDate:ue[3]||(ue[3]=fe=>r.unref(L)(fe)),onHandleScroll:fe=>r.unref(w)(fe,D),onHandleSwipe:fe=>r.unref(b)(fe,D),onMount:ue[4]||(ue[4]=fe=>Z(r.unref(ao).calendar)),onResetFlow:ue[5]||(ue[5]=fe=>ae.$emit("reset-flow")),onTooltipOpen:ue[6]||(ue[6]=fe=>ae.$emit("tooltip-open",fe)),onTooltipClose:ue[7]||(ue[7]=fe=>ae.$emit("tooltip-close",fe))}),r.createSlots({_:2},[r.renderList(r.unref($),(fe,ce)=>({name:fe,fn:r.withCtx(Ae=>[r.renderSlot(ae.$slots,fe,r.normalizeProps(r.guardReactiveProps({...Ae})))])}))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars","collapse","is-mobile"]),ae.enableTimePicker?(r.openBlock(),r.createElementBlock("div",tI,[ae.$slots["time-picker"]?r.renderSlot(ae.$slots,"time-picker",r.normalizeProps(r.mergeProps({key:0},{time:r.unref(u),updateTime:r.unref(C)}))):(r.openBlock(),r.createBlock(Qy,r.mergeProps({key:1,ref_key:"timePickerRef",ref:M},ae.$props,{hours:r.unref(u).hours,minutes:r.unref(u).minutes,seconds:r.unref(u).seconds,"internal-model-value":ae.internalModelValue,"disabled-times-config":r.unref(d),"validate-time":r.unref(p),onMount:ue[8]||(ue[8]=D=>Z(r.unref(ao).timePicker)),"onUpdate:hours":ue[9]||(ue[9]=D=>r.unref(C)(D)),"onUpdate:minutes":ue[10]||(ue[10]=D=>r.unref(C)(D,!1)),"onUpdate:seconds":ue[11]||(ue[11]=D=>r.unref(C)(D,!1,!0)),onResetFlow:ue[12]||(ue[12]=D=>ae.$emit("reset-flow")),onOverlayClosed:ue[13]||(ue[13]=D=>ee(D,!1)),onOverlayOpened:ue[14]||(ue[14]=D=>ee(D,!0)),onAmPmChange:ue[15]||(ue[15]=D=>ae.$emit("am-pm-change",D))}),r.createSlots({_:2},[r.renderList(r.unref(V),(D,de)=>({name:D,fn:r.withCtx(fe=>[r.renderSlot(ae.$slots,D,r.normalizeProps(r.guardReactiveProps(fe)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):r.createCommentVNode("",!0)],64))}}),rI=(e,t)=>{const n=r.ref(),{defaultedMultiCalendars:a,defaultedConfig:o,defaultedHighlight:i,defaultedRange:s,propDates:l,defaultedFilters:c,defaultedMultiDates:u}=Et(e),{modelValue:d,year:f,month:p,calendars:m}=Fs(e,t),{isDisabled:v}=Ba(e),{selectYear:y,groupedYears:w,showYearPicker:b,isDisabled:E,toggleYearPicker:_,handleYearSelect:g,handleYear:x}=Jy({modelValue:d,multiCalendars:a,range:s,highlight:i,calendars:m,propDates:l,month:p,year:f,filters:c,props:e,emit:t}),C=(B,M)=>[B,M].map($=>Tr($,"MMMM",{locale:e.formatLocale})).join("-"),P=r.computed(()=>B=>d.value?Array.isArray(d.value)?d.value.some(M=>Uv(B,M)):Uv(d.value,B):!1),O=B=>{if(s.value.enabled){if(Array.isArray(d.value)){const M=Xe(B,d.value[0])||Xe(B,d.value[1]);return ks(d.value,n.value,B)&&!M}return!1}return!1},A=(B,M)=>B.quarter===$v(M)&&B.year===Fe(M),L=B=>typeof i.value=="function"?i.value({quarter:$v(B),year:Fe(B)}):!!i.value.quarters.find(M=>A(M,B)),U=r.computed(()=>B=>{const M=ht(new Date,{year:f.value(B)});return uT({start:bs(M),end:by(M)}).map($=>{const K=Za($),V=zv($),Z=v($),q=O(K),oe=L(K);return{text:C(K,V),value:K,active:P.value(K),highlighted:oe,disabled:Z,isBetween:q}})}),z=B=>{Kp(B,d,u.value.limit),t("auto-apply",!0)},R=B=>{d.value=Xp(d,B,t),tu(d.value,t,e.autoApply,e.modelAuto)},I=B=>{d.value=B,t("auto-apply")};return{defaultedConfig:o,defaultedMultiCalendars:a,groupedYears:w,year:f,isDisabled:E,quarters:U,showYearPicker:b,modelValue:d,setHoverDate:B=>{n.value=B},selectYear:y,selectQuarter:(B,M,$)=>{if(!$)return m.value[M].month=Ke(zv(B)),u.value.enabled?z(B):s.value.enabled?R(B):I(B)},toggleYearPicker:_,handleYearSelect:g,handleYear:x}},aI={class:"dp--quarter-items"},oI=["data-test-id","disabled","onClick","onMouseover"],iI=r.defineComponent({compatConfig:{MODE:3},__name:"QuarterPicker",props:{...ur},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end","overlay-toggle","update-month-year"],setup(e,{expose:t,emit:n}){const a=n,o=e,i=r.useSlots(),s=In(i,"yearMode"),{defaultedMultiCalendars:l,defaultedConfig:c,groupedYears:u,year:d,isDisabled:f,quarters:p,modelValue:m,showYearPicker:v,setHoverDate:y,selectQuarter:w,toggleYearPicker:b,handleYearSelect:E,handleYear:_}=rI(o,a);return t({getSidebarProps:()=>({modelValue:m,year:d,selectQuarter:w,handleYearSelect:E,handleYear:_})}),(g,x)=>(r.openBlock(),r.createBlock(eu,{"multi-calendars":r.unref(l).count,collapse:g.collapse,stretch:"","is-mobile":g.isMobile},{default:r.withCtx(({instance:C})=>[r.createElementVNode("div",{class:"dp-quarter-picker-wrap",style:r.normalizeStyle({minHeight:`${r.unref(c).modeHeight}px`})},[g.$slots["top-extra"]?r.renderSlot(g.$slots,"top-extra",{key:0,value:g.internalModelValue}):r.createCommentVNode("",!0),r.createElementVNode("div",null,[r.createVNode(Gy,r.mergeProps(g.$props,{items:r.unref(u)(C),instance:C,"show-year-picker":r.unref(v)[C],year:r.unref(d)(C),"is-disabled":P=>r.unref(f)(C,P),onHandleYear:P=>r.unref(_)(C,P),onYearSelect:P=>r.unref(E)(P,C),onToggleYearPicker:P=>r.unref(b)(C,P?.flow,P?.show)}),r.createSlots({_:2},[r.renderList(r.unref(s),(P,O)=>({name:P,fn:r.withCtx(A=>[r.renderSlot(g.$slots,P,r.normalizeProps(r.guardReactiveProps(A)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),r.createElementVNode("div",aI,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(p)(C),(P,O)=>(r.openBlock(),r.createElementBlock("div",{key:O},[r.createElementVNode("button",{type:"button",class:r.normalizeClass(["dp--qr-btn",{"dp--qr-btn-active":P.active,"dp--qr-btn-between":P.isBetween,"dp--qr-btn-disabled":P.disabled,"dp--highlighted":P.highlighted}]),"data-test-id":P.value,disabled:P.disabled,onClick:A=>r.unref(w)(P.value,C,P.disabled),onMouseover:A=>r.unref(y)(P.value)},[g.$slots.quarter?r.renderSlot(g.$slots,"quarter",{key:0,value:P.value,text:P.text}):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(P.text),1)],64))],42,oI)]))),128))])],4)]),_:3},8,["multi-calendars","collapse","is-mobile"]))}}),eb=(e,t)=>{const n=r.ref(0);r.onMounted(()=>{a(),window.addEventListener("resize",a,{passive:!0})}),r.onUnmounted(()=>{window.removeEventListener("resize",a)});const a=()=>{n.value=window.document.documentElement.clientWidth};return{isMobile:r.computed(()=>n.value<=e.value.mobileBreakpoint&&!t?!0:void 0)}},sI=["id","tabindex","role","aria-label"],lI={key:0,class:"dp--menu-load-container"},cI={key:1,class:"dp--menu-header"},uI=["data-dp-mobile"],dI={key:0,class:"dp__sidebar_left"},fI=["data-dp-mobile"],pI=["data-test-id","data-dp-mobile","onClick","onKeydown"],mI={key:2,class:"dp__sidebar_right"},hI={key:3,class:"dp__action_extra"},e0=r.defineComponent({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...Zc,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","auto-apply-invalid","date-update","invalid-date","overlay-toggle","menu-blur"],setup(e,{expose:t,emit:n}){const a=n,o=e,i=r.ref(null),s=r.computed(()=>{const{openOnTop:X,...re}=o;return{...re,isMobile:w.value,flowStep:R.value,menuWrapRef:i.value}}),{setMenuFocused:l,setShiftKey:c,control:u}=Yy(),d=r.useSlots(),{defaultedTextInput:f,defaultedInline:p,defaultedConfig:m,defaultedUI:v,handleEventPropagation:y}=Et(o),{isMobile:w}=eb(m,o.shadow),b=r.ref(null),E=r.ref(0),_=r.ref(null),g=r.ref(!1),x=r.ref(null),C=r.ref(!1),P=X=>{C.value=!0,m.value.allowPreventDefault&&X.preventDefault(),ma(X,m.value,!0)};r.onMounted(()=>{if(!o.shadow){g.value=!0,O(),window.addEventListener("resize",O);const X=jt(i);X&&!f.value.enabled&&!p.value.enabled&&(l(!0),Z()),X&&(X.addEventListener("pointerdown",P),X.addEventListener("mousedown",P))}document.addEventListener("mousedown",xe)}),r.onUnmounted(()=>{window.removeEventListener("resize",O),document.removeEventListener("mousedown",xe);const X=jt(i);X&&(X.removeEventListener("pointerdown",P),X.removeEventListener("mousedown",P))});const O=()=>{const X=jt(_);X&&(E.value=X.getBoundingClientRect().width)},{arrowRight:A,arrowLeft:L,arrowDown:U,arrowUp:z}=Oa(),{flowStep:R,updateFlowStep:I,childMount:B,resetFlow:M,handleFlow:$}=wI(o,a,x),K=r.computed(()=>o.monthPicker?CA:o.yearPicker?EA:o.timePicker?VA:o.quarterPicker?iI:nI),V=r.computed(()=>{var X;if(m.value.arrowLeft)return m.value.arrowLeft;const re=(X=i.value)==null?void 0:X.getBoundingClientRect(),ye=o.getInputRect();return ye?.width<E?.value&&ye?.left<=(re?.left??0)?`${ye?.width/2}px`:ye?.right>=(re?.right??0)&&ye?.width<E?.value?`${E?.value-ye?.width/2}px`:"50%"}),Z=()=>{const X=jt(i);X&&X.focus({preventScroll:!0})},q=r.computed(()=>{var X;return((X=x.value)==null?void 0:X.getSidebarProps())||{}}),oe=()=>{o.openOnTop&&a("recalculate-position")},j=In(d,"action"),W=r.computed(()=>o.monthPicker||o.yearPicker?In(d,"monthYear"):o.timePicker?In(d,"timePicker"):In(d,"shared")),Y=r.computed(()=>o.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),H=r.computed(()=>({dp__menu_disabled:o.disabled,dp__menu_readonly:o.readonly,"dp-menu-loading":o.loading})),T=r.computed(()=>({dp__menu:!0,dp__menu_index:!p.value.enabled,dp__relative:p.value.enabled,...v.value.menu??{}})),J=X=>{ma(X,m.value,!0)},le=X=>{o.escClose&&(a("close-picker"),y(X))},Oe=X=>{if(o.arrowNavigation){if(X===un.up)return z();if(X===un.down)return U();if(X===un.left)return L();if(X===un.right)return A()}else X===un.left||X===un.up?D("handleArrow",un.left,0,X===un.up):D("handleArrow",un.right,0,X===un.down)},ee=X=>{c(X.shiftKey),!o.disableMonthYearSelect&&X.code===_t.tab&&X.target.classList.contains("dp__menu")&&u.value.shiftKeyInMenu&&(X.preventDefault(),ma(X,m.value,!0),a("close-picker"))},Te=()=>{Z(),a("time-picker-close")},ae=X=>{var re,ye,Ze;(re=x.value)==null||re.toggleTimePicker(!1,!1),(ye=x.value)==null||ye.toggleMonthPicker(!1,!1,X),(Ze=x.value)==null||Ze.toggleYearPicker(!1,!1,X)},ue=(X,re=0)=>{var ye,Ze,ct;return X==="month"?(ye=x.value)==null?void 0:ye.toggleMonthPicker(!1,!0,re):X==="year"?(Ze=x.value)==null?void 0:Ze.toggleYearPicker(!1,!0,re):X==="time"?(ct=x.value)==null?void 0:ct.toggleTimePicker(!0,!1):ae(re)},D=(X,...re)=>{var ye,Ze;(ye=x.value)!=null&&ye[X]&&((Ze=x.value)==null||Ze[X](...re))},de=()=>{D("selectCurrentDate")},fe=(X,re)=>{D("presetDate",r.toValue(X),re)},ce=()=>{D("clearHoverDate")},Ae=(X,re)=>{D("updateMonthYear",X,re)},pe=(X,re)=>{X.preventDefault(),Oe(re)},Ie=X=>{var re,ye,Ze;if(ee(X),X.key===_t.home||X.key===_t.end)return D("selectWeekDate",X.key===_t.home,X.target.getAttribute("id"));switch((X.key===_t.pageUp||X.key===_t.pageDown)&&(X.shiftKey?(D("changeYear",X.key===_t.pageUp),(re=gf(i.value,"overlay-year"))==null||re.focus()):(D("changeMonth",X.key===_t.pageUp),(ye=gf(i.value,X.key===_t.pageUp?"action-prev":"action-next"))==null||ye.focus()),X.target.getAttribute("id")&&((Ze=i.value)==null||Ze.focus({preventScroll:!0}))),X.key){case _t.esc:return le(X);case _t.arrowLeft:return pe(X,un.left);case _t.arrowRight:return pe(X,un.right);case _t.arrowUp:return pe(X,un.up);case _t.arrowDown:return pe(X,un.down);default:return}},xe=X=>{var re;p.value.enabled&&!p.value.input&&!((re=i.value)!=null&&re.contains(X.target))&&C.value&&(C.value=!1,a("menu-blur"))};return t({updateMonthYear:Ae,switchView:ue,handleFlow:$,onValueCleared:()=>{var X,re;(re=(X=x.value)==null?void 0:X.setStartTime)==null||re.call(X)}}),(X,re)=>{var ye,Ze,ct;return r.openBlock(),r.createElementBlock("div",{id:X.uid?`dp-menu-${X.uid}`:void 0,ref_key:"dpMenuRef",ref:i,tabindex:r.unref(p).enabled?void 0:"0",role:r.unref(p).enabled?void 0:"dialog","aria-label":(ye=X.ariaLabels)==null?void 0:ye.menu,class:r.normalizeClass(T.value),style:r.normalizeStyle({"--dp-arrow-left":V.value}),onMouseleave:ce,onClick:J,onKeydown:Ie},[(X.disabled||X.readonly)&&r.unref(p).enabled||X.loading?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(H.value)},[X.loading?(r.openBlock(),r.createElementBlock("div",lI,re[19]||(re[19]=[r.createElementVNode("span",{class:"dp--menu-loader"},null,-1)]))):r.createCommentVNode("",!0)],2)):r.createCommentVNode("",!0),X.$slots["menu-header"]?(r.openBlock(),r.createElementBlock("div",cI,[r.renderSlot(X.$slots,"menu-header")])):r.createCommentVNode("",!0),!r.unref(p).enabled&&!X.teleportCenter?(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(Y.value)},null,2)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref_key:"innerMenuRef",ref:_,class:r.normalizeClass({dp__menu_content_wrapper:((Ze=X.presetDates)==null?void 0:Ze.length)||!!X.$slots["left-sidebar"]||!!X.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":e.collapse&&(((ct=X.presetDates)==null?void 0:ct.length)||!!X.$slots["left-sidebar"]||!!X.$slots["right-sidebar"])}),"data-dp-mobile":r.unref(w),style:r.normalizeStyle({"--dp-menu-width":`${E.value}px`})},[X.$slots["left-sidebar"]?(r.openBlock(),r.createElementBlock("div",dI,[r.renderSlot(X.$slots,"left-sidebar",r.normalizeProps(r.guardReactiveProps(q.value)))])):r.createCommentVNode("",!0),X.presetDates.length?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass({"dp--preset-dates-collapsed":e.collapse,"dp--preset-dates":!0}),"data-dp-mobile":r.unref(w)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(X.presetDates,(Se,ut)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:ut},[Se.slot?r.renderSlot(X.$slots,Se.slot,{key:0,presetDate:fe,label:Se.label,value:Se.value}):(r.openBlock(),r.createElementBlock("button",{key:1,type:"button",style:r.normalizeStyle(Se.style||{}),class:r.normalizeClass(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":e.collapse}]),"data-test-id":Se.testId??void 0,"data-dp-mobile":r.unref(w),onClick:r.withModifiers($t=>fe(Se.value,Se.noTz),["prevent"]),onKeydown:$t=>r.unref(mn)($t,()=>fe(Se.value,Se.noTz),!0)},r.toDisplayString(Se.label),47,pI))],64))),128))],10,fI)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref_key:"calendarWrapperRef",ref:b,class:"dp__instance_calendar",role:"document"},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(K.value),r.mergeProps({ref_key:"dynCmpRef",ref:x},s.value,{"flow-step":r.unref(R),onMount:r.unref(B),onUpdateFlowStep:r.unref(I),onResetFlow:r.unref(M),onFocusMenu:Z,onSelectDate:re[0]||(re[0]=Se=>X.$emit("select-date")),onDateUpdate:re[1]||(re[1]=Se=>X.$emit("date-update",Se)),onTooltipOpen:re[2]||(re[2]=Se=>X.$emit("tooltip-open",Se)),onTooltipClose:re[3]||(re[3]=Se=>X.$emit("tooltip-close",Se)),onAutoApply:re[4]||(re[4]=Se=>X.$emit("auto-apply",Se)),onRangeStart:re[5]||(re[5]=Se=>X.$emit("range-start",Se)),onRangeEnd:re[6]||(re[6]=Se=>X.$emit("range-end",Se)),onInvalidFixedRange:re[7]||(re[7]=Se=>X.$emit("invalid-fixed-range",Se)),onTimeUpdate:re[8]||(re[8]=Se=>X.$emit("time-update")),onAmPmChange:re[9]||(re[9]=Se=>X.$emit("am-pm-change",Se)),onTimePickerOpen:re[10]||(re[10]=Se=>X.$emit("time-picker-open",Se)),onTimePickerClose:Te,onRecalculatePosition:oe,onUpdateMonthYear:re[11]||(re[11]=Se=>X.$emit("update-month-year",Se)),onAutoApplyInvalid:re[12]||(re[12]=Se=>X.$emit("auto-apply-invalid",Se)),onInvalidDate:re[13]||(re[13]=Se=>X.$emit("invalid-date",Se)),onOverlayToggle:re[14]||(re[14]=Se=>X.$emit("overlay-toggle",Se)),"onUpdate:internalModelValue":re[15]||(re[15]=Se=>X.$emit("update:internal-model-value",Se))}),r.createSlots({_:2},[r.renderList(W.value,(Se,ut)=>({name:Se,fn:r.withCtx($t=>[r.renderSlot(X.$slots,Se,r.normalizeProps(r.guardReactiveProps({...$t})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),X.$slots["right-sidebar"]?(r.openBlock(),r.createElementBlock("div",mI,[r.renderSlot(X.$slots,"right-sidebar",r.normalizeProps(r.guardReactiveProps(q.value)))])):r.createCommentVNode("",!0),X.$slots["action-extra"]?(r.openBlock(),r.createElementBlock("div",hI,[X.$slots["action-extra"]?r.renderSlot(X.$slots,"action-extra",{key:0,selectCurrentDate:de}):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)],14,uI),!X.autoApply||r.unref(m).keepActionRow?(r.openBlock(),r.createBlock(hA,r.mergeProps({key:3,"menu-mount":g.value},s.value,{"calendar-width":E.value,onClosePicker:re[16]||(re[16]=Se=>X.$emit("close-picker")),onSelectDate:re[17]||(re[17]=Se=>X.$emit("select-date")),onInvalidSelect:re[18]||(re[18]=Se=>X.$emit("invalid-select")),onSelectNow:de}),r.createSlots({_:2},[r.renderList(r.unref(j),(Se,ut)=>({name:Se,fn:r.withCtx($t=>[r.renderSlot(X.$slots,Se,r.normalizeProps(r.guardReactiveProps({...$t})))])}))]),1040,["menu-mount","calendar-width"])):r.createCommentVNode("",!0)],46,sI)}}});var Vo=(e=>(e.center="center",e.left="left",e.right="right",e))(Vo||{});const vI=({menuRef:e,menuRefInner:t,inputRef:n,pickerWrapperRef:a,inline:o,emit:i,props:s,slots:l})=>{const{defaultedConfig:c}=Et(s),u=r.ref({}),d=r.ref(!1),f=r.ref({top:"0",left:"0"}),p=r.ref(!1),m=r.toRef(s,"teleportCenter");r.watch(m,()=>{f.value=JSON.parse(JSON.stringify({})),x()});const v=M=>{if(s.teleport){const $=M.getBoundingClientRect();return{left:$.left+window.scrollX,top:$.top+window.scrollY}}return{top:0,left:0}},y=(M,$)=>{f.value.left=`${M+$-u.value.width}px`},w=M=>{f.value.left=`${M}px`},b=(M,$)=>{s.position===Vo.left&&w(M),s.position===Vo.right&&y(M,$),s.position===Vo.center&&(f.value.left=`${M+$/2-u.value.width/2}px`)},E=M=>{const{width:$,height:K}=M.getBoundingClientRect(),{top:V,left:Z}=v(M);return{top:+V,left:+Z,width:$,height:K}},_=()=>{f.value.left="50%",f.value.top="50%",f.value.transform="translate(-50%, -50%)",f.value.position="fixed",delete f.value.opacity},g=()=>{const M=jt(n);f.value=s.altPosition(M)},x=(M=!0)=>{var $;if(!o.value.enabled){if(m.value)return _();if(s.altPosition!==null)return g();if(M){const K=s.teleport?($=t.value)==null?void 0:$.$el:e.value;K&&(u.value=K.getBoundingClientRect()),i("recalculate-position")}return z()}},C=({inputEl:M,left:$,width:K})=>{window.screen.width>768&&!d.value&&b($,K),A(M)},P=M=>{const{top:$,left:K,height:V,width:Z}=E(M);f.value.top=`${V+$+ +s.offset}px`,p.value=!1,d.value||(f.value.left=`${K+Z/2-u.value.width/2}px`),C({inputEl:M,left:K,width:Z})},O=M=>{const{top:$,left:K,width:V}=E(M);f.value.top=`${$-+s.offset-u.value.height}px`,p.value=!0,C({inputEl:M,left:K,width:V})},A=M=>{if(s.autoPosition){const{left:$,width:K}=E(M),{left:V,right:Z}=u.value;if(!d.value){if(Math.abs(V)!==Math.abs(Z)){if(V<=0)return d.value=!0,w($);if(Z>=document.documentElement.clientWidth)return d.value=!0,y($,K)}return b($,K)}}},L=()=>{const M=jt(n);if(M){if(s.autoPosition===Yn.top)return Yn.top;if(s.autoPosition===Yn.bottom)return Yn.bottom;const{height:$}=u.value,{top:K,height:V}=M.getBoundingClientRect(),Z=window.innerHeight-K-V,q=K;return $<=Z?Yn.bottom:$>Z&&$<=q?Yn.top:Z>=q?Yn.bottom:Yn.top}return Yn.bottom},U=M=>L()===Yn.bottom?P(M):O(M),z=()=>{const M=jt(n);if(M)return s.autoPosition?U(M):P(M)},R=function(M){if(M){const $=M.scrollHeight>M.clientHeight,K=window.getComputedStyle(M).overflowY.indexOf("hidden")!==-1;return $&&!K}return!0},I=function(M){return!M||M===document.body||M.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:R(M)?M:I(M.assignedSlot&&c.value.shadowDom?M.assignedSlot.parentNode:M.parentNode)},B=M=>{if(M)switch(s.position){case Vo.left:return{left:0,transform:"translateX(0)"};case Vo.right:return{left:`${M.width}px`,transform:"translateX(-100%)"};default:return{left:`${M.width/2}px`,transform:"translateX(-50%)"}}return{}};return{openOnTop:p,menuStyle:f,xCorrect:d,setMenuPosition:x,getScrollableParent:I,shadowRender:(M,$,K)=>{var V,Z,q;const oe=document.createElement("div"),j=(V=jt(n))==null?void 0:V.getBoundingClientRect();oe.setAttribute("id","dp--temp-container");const W=(Z=a.value)!=null&&Z.clientWidth?a.value:document.body;W.append(oe);const Y=B(j),H=c.value.shadowDom?Object.keys(l).filter(J=>["right-sidebar","left-sidebar","top-extra","action-extra"].includes(J)):Object.keys(l),T=r.h($,{...K,shadow:!0,style:{opacity:0,position:"absolute",...Y}},Object.fromEntries(H.map(J=>[J,l[J]])));M!=null&&(T.appContext=M.appContext),r.render(T,oe),u.value=(q=T.el)==null?void 0:q.getBoundingClientRect(),r.render(null,oe),W.removeChild(oe)}}},ua=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"hours-overlay-header",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-header",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-header",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]},{name:"top-extra",use:["shared","month-year"]},{name:"tp-inline-arrow-up",use:["shared","time"]},{name:"tp-inline-arrow-down",use:["shared","time"]},{name:"menu-header",use:["menu"]}],gI=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],yI={all:()=>ua,monthYear:()=>ua.filter(e=>e.use.includes("month-year")),input:()=>gI,timePicker:()=>ua.filter(e=>e.use.includes("time")),action:()=>ua.filter(e=>e.use.includes("action")),calendar:()=>ua.filter(e=>e.use.includes("calendar")),menu:()=>ua.filter(e=>e.use.includes("menu")),shared:()=>ua.filter(e=>e.use.includes("shared")),yearMode:()=>ua.filter(e=>e.use.includes("year-mode"))},In=(e,t,n)=>{const a=[];return yI[t]().forEach(o=>{e[o.name]&&a.push(o.name)}),n!=null&&n.length&&n.forEach(o=>{o.slot&&a.push(o.slot)}),a},Vs=e=>{const t=r.computed(()=>a=>e.value?a?e.value.open:e.value.close:""),n=r.computed(()=>a=>e.value?a?e.value.menuAppearTop:e.value.menuAppearBottom:"");return{transitionName:t,showTransition:!!e.value,menuTransition:n}},Fs=(e,t,n)=>{const{defaultedRange:a,defaultedTz:o}=Et(e),i=me(Cn(me(),o.value.timezone)),s=r.ref([{month:Ke(i),year:Fe(i)}]),l=p=>{const m={hours:Kr(i),minutes:ka(i),seconds:0};return a.value.enabled?[m[p],m[p]]:m[p]},c=r.reactive({hours:l("hours"),minutes:l("minutes"),seconds:l("seconds")});r.watch(a,(p,m)=>{p.enabled!==m.enabled&&(c.hours=l("hours"),c.minutes=l("minutes"),c.seconds=l("seconds"))},{deep:!0});const u=r.computed({get:()=>e.internalModelValue,set:p=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",p)}}),d=r.computed(()=>p=>s.value[p]?s.value[p].month:0),f=r.computed(()=>p=>s.value[p]?s.value[p].year:0);return r.watch(u,(p,m)=>{n&&JSON.stringify(p??{})!==JSON.stringify(m??{})&&n()},{deep:!0}),{calendars:s,time:c,modelValue:u,month:d,year:f,today:i}},bI=(e,t)=>{const{defaultedMultiCalendars:n,defaultedMultiDates:a,defaultedUI:o,defaultedHighlight:i,defaultedTz:s,propDates:l,defaultedRange:c}=Et(t),{isDisabled:u}=Ba(t),d=r.ref(null),f=r.ref(Cn(new Date,s.value.timezone)),p=T=>{!T.current&&t.hideOffsetDates||(d.value=T.value)},m=()=>{d.value=null},v=T=>Array.isArray(e.value)&&c.value.enabled&&e.value[0]&&d.value?T?Lt(d.value,e.value[0]):Mt(d.value,e.value[0]):!0,y=(T,J)=>{const le=()=>e.value?J?e.value[0]||null:e.value[1]:null,Oe=e.value&&Array.isArray(e.value)?le():null;return Xe(me(T.value),Oe)},w=T=>{const J=Array.isArray(e.value)?e.value[0]:null;return T?!Mt(d.value??null,J):!0},b=(T,J=!0)=>(c.value.enabled||t.weekPicker)&&Array.isArray(e.value)&&e.value.length===2?t.hideOffsetDates&&!T.current?!1:Xe(me(T.value),e.value[J?0:1]):c.value.enabled?y(T,J)&&w(J)||Xe(T.value,Array.isArray(e.value)?e.value[0]:null)&&v(J):!1,E=(T,J)=>{if(Array.isArray(e.value)&&e.value[0]&&e.value.length===1){const le=Xe(T.value,d.value);return J?Lt(e.value[0],T.value)&&le:Mt(e.value[0],T.value)&&le}return!1},_=T=>!e.value||t.hideOffsetDates&&!T.current?!1:c.value.enabled?t.modelAuto&&Array.isArray(e.value)?Xe(T.value,e.value[0]?e.value[0]:f.value):!1:a.value.enabled&&Array.isArray(e.value)?e.value.some(J=>Xe(J,T.value)):Xe(T.value,e.value?e.value:f.value),g=T=>{if(c.value.autoRange||t.weekPicker){if(d.value){if(t.hideOffsetDates&&!T.current)return!1;const J=Rn(d.value,+c.value.autoRange),le=Vr(me(d.value),t.weekStart);return t.weekPicker?Xe(le[1],me(T.value)):Xe(J,me(T.value))}return!1}return!1},x=T=>{if(c.value.autoRange||t.weekPicker){if(d.value){const J=Rn(d.value,+c.value.autoRange);if(t.hideOffsetDates&&!T.current)return!1;const le=Vr(me(d.value),t.weekStart);return t.weekPicker?Lt(T.value,le[0])&&Mt(T.value,le[1]):Lt(T.value,d.value)&&Mt(T.value,J)}return!1}return!1},C=T=>{if(c.value.autoRange||t.weekPicker){if(d.value){if(t.hideOffsetDates&&!T.current)return!1;const J=Vr(me(d.value),t.weekStart);return t.weekPicker?Xe(J[0],T.value):Xe(d.value,T.value)}return!1}return!1},P=T=>ks(e.value,d.value,T.value),O=()=>t.modelAuto&&Array.isArray(t.internalModelValue)?!!t.internalModelValue[0]:!1,A=()=>t.modelAuto?Ly(t.internalModelValue):!0,L=T=>{if(t.weekPicker)return!1;const J=c.value.enabled?!b(T)&&!b(T,!1):!0;return!u(T.value)&&!_(T)&&!(!T.current&&t.hideOffsetDates)&&J},U=T=>c.value.enabled?t.modelAuto?O()&&_(T):!1:_(T),z=T=>i.value?$P(T.value,l.value.highlight):!1,R=T=>{const J=u(T.value);return J&&(typeof i.value=="function"?!i.value(T.value,J):!i.value.options.highlightDisabled)},I=T=>{var J;return typeof i.value=="function"?i.value(T.value):(J=i.value.weekdays)==null?void 0:J.includes(T.value.getDay())},B=T=>(c.value.enabled||t.weekPicker)&&(!(n.value.count>0)||T.current)&&A()&&!(!T.current&&t.hideOffsetDates)&&!_(T)?P(T):!1,M=T=>{if(Array.isArray(e.value)&&e.value.length===1){const{before:J,after:le}=Xv(+c.value.maxRange,e.value[0]);return ui(T.value,J)||mo(T.value,le)}return!1},$=T=>{if(Array.isArray(e.value)&&e.value.length===1){const{before:J,after:le}=Xv(+c.value.minRange,e.value[0]);return ks([J,le],e.value[0],T.value)}return!1},K=T=>c.value.enabled&&(c.value.maxRange||c.value.minRange)?c.value.maxRange&&c.value.minRange?M(T)||$(T):c.value.maxRange?M(T):$(T):!1,V=T=>{const{isRangeStart:J,isRangeEnd:le}=j(T),Oe=c.value.enabled?J||le:!1;return{dp__cell_offset:!T.current,dp__pointer:!t.disabled&&!(!T.current&&t.hideOffsetDates)&&!u(T.value)&&!K(T),dp__cell_disabled:u(T.value)||K(T),dp__cell_highlight:!R(T)&&(z(T)||I(T))&&!U(T)&&!Oe&&!C(T)&&!(B(T)&&t.weekPicker)&&!le,dp__cell_highlight_active:!R(T)&&(z(T)||I(T))&&U(T),dp__today:!t.noToday&&Xe(T.value,f.value)&&T.current,"dp--past":Mt(T.value,f.value),"dp--future":Lt(T.value,f.value)}},Z=T=>({dp__active_date:U(T),dp__date_hover:L(T)}),q=T=>{if(e.value&&!Array.isArray(e.value)){const J=Vr(e.value,t.weekStart);return{...Y(T),dp__range_start:Xe(J[0],T.value),dp__range_end:Xe(J[1],T.value),dp__range_between_week:Lt(T.value,J[0])&&Mt(T.value,J[1])}}return{...Y(T)}},oe=T=>{if(e.value&&Array.isArray(e.value)){const J=Vr(e.value[0],t.weekStart),le=e.value[1]?Vr(e.value[1],t.weekStart):[];return{...Y(T),dp__range_start:Xe(J[0],T.value)||Xe(le[0],T.value),dp__range_end:Xe(J[1],T.value)||Xe(le[1],T.value),dp__range_between_week:Lt(T.value,J[0])&&Mt(T.value,J[1])||Lt(T.value,le[0])&&Mt(T.value,le[1]),dp__range_between:Lt(T.value,J[1])&&Mt(T.value,le[0])}}return{...Y(T)}},j=T=>{const J=n.value.count>0?T.current&&b(T)&&A():b(T)&&A(),le=n.value.count>0?T.current&&b(T,!1)&&A():b(T,!1)&&A();return{isRangeStart:J,isRangeEnd:le}},W=T=>{const{isRangeStart:J,isRangeEnd:le}=j(T);return{dp__range_start:J,dp__range_end:le,dp__range_between:B(T),dp__date_hover:Xe(T.value,d.value)&&!J&&!le&&!t.weekPicker,dp__date_hover_start:E(T,!0),dp__date_hover_end:E(T,!1)}},Y=T=>({...W(T),dp__cell_auto_range:x(T),dp__cell_auto_range_start:C(T),dp__cell_auto_range_end:g(T)}),H=T=>c.value.enabled?c.value.autoRange?Y(T):t.modelAuto?{...Z(T),...W(T)}:t.weekPicker?oe(T):W(T):t.weekPicker?q(T):Z(T);return{setHoverDate:p,clearHoverDate:m,getDayClassData:T=>t.hideOffsetDates&&!T.current?{}:{...V(T),...H(T),[t.dayClass?t.dayClass(T.value,t.internalModelValue):""]:!0,...o.value.calendarCell??{}}}},Ba=e=>{const{defaultedFilters:t,defaultedRange:n,propDates:a,defaultedMultiDates:o}=Et(e),i=I=>a.value.disabledDates?typeof a.value.disabledDates=="function"?a.value.disabledDates(me(I)):!!fc(I,a.value.disabledDates):!1,s=I=>a.value.maxDate?e.yearPicker?Fe(I)>Fe(a.value.maxDate):Lt(I,a.value.maxDate):!1,l=I=>a.value.minDate?e.yearPicker?Fe(I)<Fe(a.value.minDate):Mt(I,a.value.minDate):!1,c=I=>{const B=s(I),M=l(I),$=i(I),K=t.value.months.map(j=>+j).includes(Ke(I)),V=e.disabledWeekDays.length?e.disabledWeekDays.some(j=>+j===xT(I)):!1,Z=m(I),q=Fe(I),oe=q<+e.yearRange[0]||q>+e.yearRange[1];return!(B||M||$||K||oe||V||Z)},u=(I,B)=>Mt(...pa(a.value.minDate,I,B))||Xe(...pa(a.value.minDate,I,B)),d=(I,B)=>Lt(...pa(a.value.maxDate,I,B))||Xe(...pa(a.value.maxDate,I,B)),f=(I,B,M)=>{let $=!1;return a.value.maxDate&&M&&d(I,B)&&($=!0),a.value.minDate&&!M&&u(I,B)&&($=!0),$},p=(I,B,M,$)=>{let K=!1;return $&&(a.value.minDate||a.value.maxDate)?a.value.minDate&&a.value.maxDate?K=f(I,B,M):(a.value.minDate&&u(I,B)||a.value.maxDate&&d(I,B))&&(K=!0):K=!0,K},m=I=>Array.isArray(a.value.allowedDates)&&!a.value.allowedDates.length?!0:a.value.allowedDates?!fc(I,a.value.allowedDates,$y(e.monthPicker,e.yearPicker)):!1,v=I=>!c(I),y=I=>n.value.noDisabledRange?!yy({start:I[0],end:I[1]}).some(B=>v(B)):!0,w=I=>{if(I){const B=Fe(I);return B>=+e.yearRange[0]&&B<=e.yearRange[1]}return!0},b=(I,B)=>!!(Array.isArray(I)&&I[B]&&(n.value.maxRange||n.value.minRange)&&w(I[B])),E=(I,B,M=0)=>{if(b(B,M)&&w(I)){const $=hy(I,B[M]),K=jy(B[M],I),V=K.length===1?0:K.filter(q=>v(q)).length,Z=Math.abs($)-(n.value.minMaxRawRange?0:V);if(n.value.minRange&&n.value.maxRange)return Z>=+n.value.minRange&&Z<=+n.value.maxRange;if(n.value.minRange)return Z>=+n.value.minRange;if(n.value.maxRange)return Z<=+n.value.maxRange}return!0},_=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,g=I=>Array.isArray(I)?[I[0]?od(I[0]):null,I[1]?od(I[1]):null]:od(I),x=(I,B,M)=>I.find($=>+$.hours===Kr(B)&&$.minutes==="*"?!0:+$.minutes===ka(B)&&+$.hours===Kr(B))&&M,C=(I,B,M)=>{const[$,K]=I,[V,Z]=B;return!x($,V,M)&&!x(K,Z,M)&&M},P=(I,B)=>{const M=Array.isArray(B)?B:[B];return Array.isArray(e.disabledTimes)?Array.isArray(e.disabledTimes[0])?C(e.disabledTimes,M,I):!M.some($=>x(e.disabledTimes,$,I)):I},O=(I,B)=>{const M=Array.isArray(B)?[oo(B[0]),B[1]?oo(B[1]):void 0]:oo(B),$=!e.disabledTimes(M);return I&&$},A=(I,B)=>e.disabledTimes?Array.isArray(e.disabledTimes)?P(B,I):O(B,I):B,L=I=>{let B=!0;if(!I||_())return!0;const M=!a.value.minDate&&!a.value.maxDate?g(I):I;return(e.maxTime||a.value.maxDate)&&(B=Kv(e.maxTime,a.value.maxDate,"max",qt(M),B)),(e.minTime||a.value.minDate)&&(B=Kv(e.minTime,a.value.minDate,"min",qt(M),B)),A(I,B)},U=I=>{if(!e.monthPicker)return!0;let B=!0;const M=me(Qn(I));if(a.value.minDate&&a.value.maxDate){const $=me(Qn(a.value.minDate)),K=me(Qn(a.value.maxDate));return Lt(M,$)&&Mt(M,K)||Xe(M,$)||Xe(M,K)}if(a.value.minDate){const $=me(Qn(a.value.minDate));B=Lt(M,$)||Xe(M,$)}if(a.value.maxDate){const $=me(Qn(a.value.maxDate));B=Mt(M,$)||Xe(M,$)}return B},z=r.computed(()=>I=>!e.enableTimePicker||e.ignoreTimeValidation?!0:L(I)),R=r.computed(()=>I=>e.monthPicker?Array.isArray(I)&&(n.value.enabled||o.value.enabled)?!I.filter(B=>!U(B)).length:U(I):!0);return{isDisabled:v,validateDate:c,validateMonthYearInRange:p,isDateRangeAllowed:y,checkMinMaxRange:E,isValidTime:L,isTimeValid:z,isMonthValid:R}},nu=()=>{const e=r.computed(()=>(a,o)=>a?.includes(o)),t=r.computed(()=>(a,o)=>a.count?a.solo?!0:o===0:!0),n=r.computed(()=>(a,o)=>a.count?a.solo?!0:o===a.count-1:!0);return{hideNavigationButtons:e,showLeftIcon:t,showRightIcon:n}},wI=(e,t,n)=>{const a=r.ref(0),o=r.reactive({[ao.timePicker]:!e.enableTimePicker||e.timePicker||e.monthPicker,[ao.calendar]:!1,[ao.header]:!1}),i=r.computed(()=>e.monthPicker||e.timePicker),s=f=>{var p;if((p=e.flow)!=null&&p.length){if(!f&&i.value)return d();o[f]=!0,Object.keys(o).filter(m=>!o[m]).length||d()}},l=()=>{var f,p;(f=e.flow)!=null&&f.length&&a.value!==-1&&(a.value+=1,t("flow-step",a.value),d()),((p=e.flow)==null?void 0:p.length)===a.value&&r.nextTick().then(()=>c())},c=()=>{a.value=-1},u=(f,p,...m)=>{var v,y;e.flow[a.value]===f&&n.value&&((y=(v=n.value)[p])==null||y.call(v,...m))},d=(f=0)=>{f&&(a.value+=f),u(ln.month,"toggleMonthPicker",!0),u(ln.year,"toggleYearPicker",!0),u(ln.calendar,"toggleTimePicker",!1,!0),u(ln.time,"toggleTimePicker",!0,!0);const p=e.flow[a.value];(p===ln.hours||p===ln.minutes||p===ln.seconds)&&u(p,"toggleTimePicker",!0,!0,p)};return{childMount:s,updateFlowStep:l,resetFlow:c,handleFlow:d,flowStep:a}},kI={key:1,class:"dp__input_wrap"},_I=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],SI={key:2,class:"dp--clear-btn"},CI=["aria-label"],xI=r.defineComponent({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...Zc},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur","text-input"],setup(e,{expose:t,emit:n}){const a=n,o=e,{defaultedTextInput:i,defaultedAriaLabels:s,defaultedInline:l,defaultedConfig:c,defaultedRange:u,defaultedMultiDates:d,defaultedUI:f,getDefaultPattern:p,getDefaultStartTime:m}=Et(o),{checkMinMaxRange:v}=Ba(o),y=r.ref(),w=r.ref(null),b=r.ref(!1),E=r.ref(!1),_=r.computed(()=>({dp__pointer:!o.disabled&&!o.readonly&&!i.value.enabled,dp__disabled:o.disabled,dp__input_readonly:!i.value.enabled,dp__input:!0,dp__input_icon_pad:!o.hideInputIcon,dp__input_valid:typeof o.state=="boolean"?o.state:!1,dp__input_invalid:typeof o.state=="boolean"?!o.state:!1,dp__input_focus:b.value||o.isMenuOpen,dp__input_reg:!i.value.enabled,...f.value.input??{}})),g=()=>{a("set-input-date",null),o.clearable&&o.autoApply&&(a("set-empty-date"),y.value=null)},x=q=>{const oe=m();return VP(q,i.value.format??p(),oe??Hy({},o.enableSeconds),o.inputValue,E.value,o.formatLocale)},C=q=>{const{rangeSeparator:oe}=i.value,[j,W]=q.split(`${oe}`);if(j){const Y=x(j.trim()),H=W?x(W.trim()):void 0;if(mo(Y,H))return;const T=Y&&H?[Y,H]:[Y];v(H,T,0)&&(y.value=Y?T:null)}},P=()=>{E.value=!0},O=q=>{if(u.value.enabled)C(q);else if(d.value.enabled){const oe=q.split(";");y.value=oe.map(j=>x(j.trim())).filter(j=>j)}else y.value=x(q)},A=q=>{var oe;const j=typeof q=="string"?q:(oe=q.target)==null?void 0:oe.value;j!==""?(i.value.openMenu&&!o.isMenuOpen&&a("open"),O(j),a("set-input-date",y.value)):g(),E.value=!1,a("update:input-value",j),a("text-input",q,y.value)},L=q=>{i.value.enabled?(O(q.target.value),i.value.enterSubmit&&yf(y.value)&&o.inputValue!==""?(a("set-input-date",y.value,!0),y.value=null):i.value.enterSubmit&&o.inputValue===""&&(y.value=null,a("clear"))):R(q)},U=(q,oe)=>{i.value.enabled&&i.value.tabSubmit&&!oe&&O(q.target.value),i.value.tabSubmit&&yf(y.value)&&o.inputValue!==""?(a("set-input-date",y.value,!0,!0),y.value=null):i.value.tabSubmit&&o.inputValue===""&&(y.value=null,a("clear",!0))},z=()=>{b.value=!0,a("focus"),r.nextTick().then(()=>{var q;i.value.enabled&&i.value.selectOnFocus&&((q=w.value)==null||q.select())})},R=q=>{if(ma(q,c.value,!0),i.value.enabled&&i.value.openMenu&&!l.value.input){if(i.value.openMenu==="open"&&!o.isMenuOpen)return a("open");if(i.value.openMenu==="toggle")return a("toggle")}else i.value.enabled||a("toggle")},I=()=>{a("real-blur"),b.value=!1,(!o.isMenuOpen||l.value.enabled&&l.value.input)&&a("blur"),o.autoApply&&i.value.enabled&&y.value&&!o.isMenuOpen&&(a("set-input-date",y.value),a("select-date"),y.value=null)},B=q=>{ma(q,c.value,!0),a("clear")},M=()=>{a("close")},$=q=>{if(q.key==="Tab"&&U(q),q.key==="Enter"&&L(q),q.key==="Escape"&&i.value.escClose&&M(),!i.value.enabled){if(q.code==="Tab")return;q.preventDefault()}},K=()=>{var q;(q=w.value)==null||q.focus({preventScroll:!0})},V=q=>{y.value=q},Z=q=>{q.key===_t.tab&&U(q,!0)};return t({focusInput:K,setParsedDate:V}),(q,oe)=>{var j,W,Y;return r.openBlock(),r.createElementBlock("div",{onClick:R},[q.$slots.trigger&&!q.$slots["dp-input"]&&!r.unref(l).enabled?r.renderSlot(q.$slots,"trigger",{key:0}):r.createCommentVNode("",!0),!q.$slots.trigger&&(!r.unref(l).enabled||r.unref(l).input)?(r.openBlock(),r.createElementBlock("div",kI,[q.$slots["dp-input"]&&!q.$slots.trigger&&(!r.unref(l).enabled||r.unref(l).enabled&&r.unref(l).input)?r.renderSlot(q.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:A,onEnter:L,onTab:U,onClear:B,onBlur:I,onKeypress:$,onPaste:P,onFocus:z,openMenu:()=>q.$emit("open"),closeMenu:()=>q.$emit("close"),toggleMenu:()=>q.$emit("toggle")}):r.createCommentVNode("",!0),q.$slots["dp-input"]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("input",{key:1,id:q.uid?`dp-input-${q.uid}`:void 0,ref_key:"inputRef",ref:w,"data-test-id":"dp-input",name:q.name,class:r.normalizeClass(_.value),inputmode:r.unref(i).enabled?"text":"none",placeholder:q.placeholder,disabled:q.disabled,readonly:q.readonly,required:q.required,value:e.inputValue,autocomplete:q.autocomplete,"aria-label":(j=r.unref(s))==null?void 0:j.input,"aria-disabled":q.disabled||void 0,"aria-invalid":q.state===!1?!0:void 0,onInput:A,onBlur:I,onFocus:z,onKeypress:$,onKeydown:oe[0]||(oe[0]=H=>$(H)),onPaste:P},null,42,_I)),r.createElementVNode("div",{onClick:oe[3]||(oe[3]=H=>a("toggle"))},[q.$slots["input-icon"]&&!q.hideInputIcon?(r.openBlock(),r.createElementBlock("span",{key:0,class:"dp__input_icon",onClick:oe[1]||(oe[1]=H=>a("toggle"))},[r.renderSlot(q.$slots,"input-icon")])):r.createCommentVNode("",!0),!q.$slots["input-icon"]&&!q.hideInputIcon&&!q.$slots["dp-input"]?(r.openBlock(),r.createBlock(r.unref(Ai),{key:1,"aria-label":(W=r.unref(s))==null?void 0:W.calendarIcon,class:"dp__input_icon dp__input_icons",onClick:oe[2]||(oe[2]=H=>a("toggle"))},null,8,["aria-label"])):r.createCommentVNode("",!0)]),q.$slots["clear-icon"]&&(q.alwaysClearable||e.inputValue&&q.clearable&&!q.disabled&&!q.readonly)?(r.openBlock(),r.createElementBlock("span",SI,[r.renderSlot(q.$slots,"clear-icon",{clear:B})])):r.createCommentVNode("",!0),!q.$slots["clear-icon"]&&(q.alwaysClearable||q.clearable&&e.inputValue&&!q.disabled&&!q.readonly)?(r.openBlock(),r.createElementBlock("button",{key:3,"aria-label":(Y=r.unref(s))==null?void 0:Y.clearInput,class:"dp--clear-btn",type:"button",onKeydown:oe[4]||(oe[4]=H=>r.unref(mn)(H,()=>B(H),!0,Z)),onClick:oe[5]||(oe[5]=r.withModifiers(H=>B(H),["prevent"]))},[r.createVNode(r.unref(Oy),{class:"dp__input_icons","data-test-id":"clear-icon"})],40,CI)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)])}}}),EI=typeof window<"u"?window:void 0,dd=()=>{},TI=e=>r.getCurrentScope()?(r.onScopeDispose(e),!0):!1,PI=(e,t,n,a)=>{if(!e)return dd;let o=dd;const i=r.watch(()=>r.unref(e),l=>{o(),l&&(l.removeEventListener(t,n),l.addEventListener(t,n,a),o=()=>{l.removeEventListener(t,n,a),o=dd})},{immediate:!0,flush:"post"}),s=()=>{i(),o()};return TI(s),s},AI=(e,t,n,a={})=>{const{window:o=EI,event:i="pointerdown"}=a;return o?PI(o,i,s=>{const l=jt(e),c=jt(t);!l||!c||l===s.target||s.composedPath().includes(l)||s.composedPath().includes(c)||n(s)},{passive:!0}):void 0},II=["data-dp-mobile"],MI=r.defineComponent({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...Zc},emits:["update:model-value","update:model-timezone-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","date-update","invalid-date","overlay-toggle","text-input"],setup(e,{expose:t,emit:n}){const a=n,o=e,i=r.useSlots(),s=r.ref(!1),l=r.toRef(o,"modelValue"),c=r.toRef(o,"timezone"),u=r.ref(null),d=r.ref(null),f=r.ref(null),p=r.ref(!1),m=r.ref(null),v=r.ref(!1),y=r.ref(!1),w=r.ref(!1),b=r.ref(!1),{setMenuFocused:E,setShiftKey:_}=Yy(),{clearArrowNav:g}=Oa(),{validateDate:x,isValidTime:C}=Ba(o),{defaultedTransitions:P,defaultedTextInput:O,defaultedInline:A,defaultedConfig:L,defaultedRange:U,defaultedMultiDates:z}=Et(o),{menuTransition:R,showTransition:I}=Vs(P),{isMobile:B}=eb(L),M=r.getCurrentInstance();r.onMounted(()=>{T(o.modelValue),r.nextTick().then(()=>{if(!A.value.enabled){const ne=j(m.value);ne?.addEventListener("scroll",fe),window?.addEventListener("resize",ce)}}),A.value.enabled&&(s.value=!0),window?.addEventListener("keyup",Ae),window?.addEventListener("keydown",pe)}),r.onUnmounted(()=>{if(!A.value.enabled){const ne=j(m.value);ne?.removeEventListener("scroll",fe),window?.removeEventListener("resize",ce)}window?.removeEventListener("keyup",Ae),window?.removeEventListener("keydown",pe)});const $=In(i,"all",o.presetDates),K=In(i,"input");r.watch([l,c],()=>{T(l.value)},{deep:!0});const{openOnTop:V,menuStyle:Z,xCorrect:q,setMenuPosition:oe,getScrollableParent:j,shadowRender:W}=vI({menuRef:u,menuRefInner:d,inputRef:f,pickerWrapperRef:m,inline:A,emit:a,props:o,slots:i}),{inputValue:Y,internalModelValue:H,parseExternalModelValue:T,emitModelValue:J,formatInputValue:le,checkBeforeEmit:Oe}=dA(a,o,p),ee=r.computed(()=>({dp__main:!0,dp__theme_dark:o.dark,dp__theme_light:!o.dark,dp__flex_display:A.value.enabled,"dp--flex-display-collapsed":w.value,dp__flex_display_with_input:A.value.input})),Te=r.computed(()=>o.dark?"dp__theme_dark":"dp__theme_light"),ae=r.computed(()=>o.teleport?{to:typeof o.teleport=="boolean"?"body":o.teleport,disabled:!o.teleport||A.value.enabled}:{}),ue=r.computed(()=>({class:"dp__outer_menu_wrap"})),D=r.computed(()=>A.value.enabled&&(o.timePicker||o.monthPicker||o.yearPicker||o.quarterPicker)),de=()=>{var ne,he;return((he=(ne=f.value)==null?void 0:ne.$el)==null?void 0:he.getBoundingClientRect())??{width:0,left:0,right:0}},fe=()=>{s.value&&(L.value.closeOnScroll?ut():oe())},ce=()=>{var ne;s.value&&oe();const he=((ne=d.value)==null?void 0:ne.$el.getBoundingClientRect().width)??0;w.value=document.body.offsetWidth<=he},Ae=ne=>{ne.key==="Tab"&&!A.value.enabled&&!o.teleport&&L.value.tabOutClosesMenu&&(m.value.contains(document.activeElement)||ut()),y.value=ne.shiftKey},pe=ne=>{y.value=ne.shiftKey},Ie=()=>{!o.disabled&&!o.readonly&&(W(M,e0,o),oe(!1),s.value=!0,s.value&&a("open"),s.value||Se(),T(o.modelValue))},xe=()=>{var ne,he;Y.value="",Se(),(ne=d.value)==null||ne.onValueCleared(),(he=f.value)==null||he.setParsedDate(null),a("update:model-value",null),a("update:model-timezone-value",null),a("cleared"),L.value.closeOnClearValue&&ut()},X=()=>{const ne=H.value;return!ne||!Array.isArray(ne)&&x(ne)?!0:Array.isArray(ne)?z.value.enabled||ne.length===2&&x(ne[0])&&x(ne[1])?!0:U.value.partialRange&&!o.timePicker?x(ne[0]):!1:!1},re=()=>{Oe()&&X()?(J(),ut()):a("invalid-select",H.value)},ye=ne=>{Ze(),J(),L.value.closeOnAutoApply&&!ne&&ut()},Ze=()=>{f.value&&O.value.enabled&&f.value.setParsedDate(H.value)},ct=(ne=!1)=>{o.autoApply&&C(H.value)&&X()&&(U.value.enabled&&Array.isArray(H.value)?(U.value.partialRange||H.value.length===2)&&ye(ne):ye(ne))},Se=()=>{O.value.enabled||(H.value=null)},ut=(ne=!1)=>{var he,Ce;ne&&H.value&&L.value.setDateOnMenuClose&&re(),A.value.enabled||(s.value&&(s.value=!1,q.value=!1,E(!1),_(!1),g(),a("closed"),Y.value&&T(l.value)),Se(),a("blur"),(Ce=(he=d.value)==null?void 0:he.$el)==null||Ce.remove())},$t=(ne,he,Ce=!1)=>{if(!ne){H.value=null;return}const st=Array.isArray(ne)?!ne.some(Ut=>!x(Ut)):x(ne),vt=C(ne);st&&vt?(b.value=!0,H.value=ne,he?(v.value=Ce,re(),a("text-submit")):o.autoApply&&ct(),r.nextTick().then(()=>{b.value=!1})):a("invalid-date",ne)},xn=()=>{o.autoApply&&C(H.value)&&J(),Ze()},zt=()=>s.value?ut():Ie(),Kt=ne=>{H.value=ne},te=()=>{O.value.enabled&&(p.value=!0,le()),a("focus")},_e=()=>{if(O.value.enabled&&(p.value=!1,T(o.modelValue),v.value)){const ne=RP(m.value,y.value);ne?.focus()}a("blur")},Ee=ne=>{d.value&&d.value.updateMonthYear(0,{month:qv(ne.month),year:qv(ne.year)})},He=ne=>{T(ne??o.modelValue)},G=(ne,he)=>{var Ce;(Ce=d.value)==null||Ce.switchView(ne,he)},se=(ne,he)=>L.value.onClickOutside?L.value.onClickOutside(ne,he):ut(!0),be=(ne=0)=>{var he;(he=d.value)==null||he.handleFlow(ne)},Re=()=>u;return AI(u,f,ne=>se(X,ne)),t({closeMenu:ut,selectDate:re,clearValue:xe,openMenu:Ie,onScroll:fe,formatInputValue:le,updateInternalModelValue:Kt,setMonthYear:Ee,parseModel:He,switchView:G,toggleMenu:zt,handleFlow:be,getDpWrapMenuRef:Re}),(ne,he)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"pickerWrapperRef",ref:m,class:r.normalizeClass(ee.value),"data-datepicker-instance":"","data-dp-mobile":r.unref(B)},[r.createVNode(xI,r.mergeProps({ref_key:"inputRef",ref:f,"input-value":r.unref(Y),"onUpdate:inputValue":he[0]||(he[0]=Ce=>r.isRef(Y)?Y.value=Ce:null),"is-menu-open":s.value},ne.$props,{onClear:xe,onOpen:Ie,onSetInputDate:$t,onSetEmptyDate:r.unref(J),onSelectDate:re,onToggle:zt,onClose:ut,onFocus:te,onBlur:_e,onRealBlur:he[1]||(he[1]=Ce=>p.value=!1),onTextInput:he[2]||(he[2]=Ce=>ne.$emit("text-input",Ce))}),r.createSlots({_:2},[r.renderList(r.unref(K),(Ce,st)=>({name:Ce,fn:r.withCtx(vt=>[r.renderSlot(ne.$slots,Ce,r.normalizeProps(r.guardReactiveProps(vt)))])}))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),(r.openBlock(),r.createBlock(r.resolveDynamicComponent(ne.teleport?r.Teleport:"div"),r.normalizeProps(r.guardReactiveProps(ae.value)),{default:r.withCtx(()=>[r.createVNode(r.Transition,{name:r.unref(R)(r.unref(V)),css:r.unref(I)&&!r.unref(A).enabled},{default:r.withCtx(()=>[s.value?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,ref_key:"dpWrapMenuRef",ref:u},ue.value,{class:{"dp--menu-wrapper":!r.unref(A).enabled},style:r.unref(A).enabled?void 0:r.unref(Z)}),[r.createVNode(e0,r.mergeProps({ref_key:"dpMenuRef",ref:d},ne.$props,{"internal-model-value":r.unref(H),"onUpdate:internalModelValue":he[3]||(he[3]=Ce=>r.isRef(H)?H.value=Ce:null),class:{[Te.value]:!0,"dp--menu-wrapper":ne.teleport},"open-on-top":r.unref(V),"no-overlay-focus":D.value,collapse:w.value,"get-input-rect":de,"is-text-input-date":b.value,onClosePicker:ut,onSelectDate:re,onAutoApply:ct,onTimeUpdate:xn,onFlowStep:he[4]||(he[4]=Ce=>ne.$emit("flow-step",Ce)),onUpdateMonthYear:he[5]||(he[5]=Ce=>ne.$emit("update-month-year",Ce)),onInvalidSelect:he[6]||(he[6]=Ce=>ne.$emit("invalid-select",r.unref(H))),onAutoApplyInvalid:he[7]||(he[7]=Ce=>ne.$emit("invalid-select",Ce)),onInvalidFixedRange:he[8]||(he[8]=Ce=>ne.$emit("invalid-fixed-range",Ce)),onRecalculatePosition:r.unref(oe),onTooltipOpen:he[9]||(he[9]=Ce=>ne.$emit("tooltip-open",Ce)),onTooltipClose:he[10]||(he[10]=Ce=>ne.$emit("tooltip-close",Ce)),onTimePickerOpen:he[11]||(he[11]=Ce=>ne.$emit("time-picker-open",Ce)),onTimePickerClose:he[12]||(he[12]=Ce=>ne.$emit("time-picker-close",Ce)),onAmPmChange:he[13]||(he[13]=Ce=>ne.$emit("am-pm-change",Ce)),onRangeStart:he[14]||(he[14]=Ce=>ne.$emit("range-start",Ce)),onRangeEnd:he[15]||(he[15]=Ce=>ne.$emit("range-end",Ce)),onDateUpdate:he[16]||(he[16]=Ce=>ne.$emit("date-update",Ce)),onInvalidDate:he[17]||(he[17]=Ce=>ne.$emit("invalid-date",Ce)),onOverlayToggle:he[18]||(he[18]=Ce=>ne.$emit("overlay-toggle",Ce)),onMenuBlur:he[19]||(he[19]=Ce=>ne.$emit("blur"))}),r.createSlots({_:2},[r.renderList(r.unref($),(Ce,st)=>({name:Ce,fn:r.withCtx(vt=>[r.renderSlot(ne.$slots,Ce,r.normalizeProps(r.guardReactiveProps({...vt})))])}))]),1040,["internal-model-value","class","open-on-top","no-overlay-focus","collapse","is-text-input-date","onRecalculatePosition"])],16)):r.createCommentVNode("",!0)]),_:3},8,["name","css"])]),_:3},16))],10,II))}}),Jp=(()=>{const e=MI;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),NI=Object.freeze(Object.defineProperty({__proto__:null,default:Jp},Symbol.toStringTag,{value:"Module"}));Object.entries(NI).forEach(([e,t])=>{e!=="default"&&(Jp[e]=t)});var OI=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCommentChange","onCompositionEnd","onCompositionStart","onCompositionUpdate","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onInput","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],BI=function(e){return OI.map(function(t){return t.toLowerCase()}).indexOf(e.toLowerCase())!==-1},LI=function(e,t,n){Object.keys(t).filter(BI).forEach(function(a){var o=t[a];typeof o=="function"&&(a==="onInit"?o(e,n):n.on(a.substring(2),function(i){return o(i,n)}))})},DI=function(e,t,n,a){var o=e.modelEvents?e.modelEvents:null,i=Array.isArray(o)?o.join(" "):o;r.watch(a,function(s,l){n&&typeof s=="string"&&s!==l&&s!==n.getContent({format:e.outputFormat})&&n.setContent(s)}),n.on(i||"change input undo redo",function(){t.emit("update:modelValue",n.getContent({format:e.outputFormat}))})},RI=function(e,t,n,a,o,i){a.setContent(i()),n.attrs["onUpdate:modelValue"]&&DI(t,n,a,o),LI(e,n.attrs,a)},t0=0,tb=function(e){var t=Date.now(),n=Math.floor(Math.random()*1e9);return t0++,e+"_"+n+t0+String(t)},$I=function(e){return e!==null&&e.tagName.toLowerCase()==="textarea"},n0=function(e){return typeof e>"u"||e===""?[]:Array.isArray(e)?e:e.split(" ")},zI=function(e,t){return n0(e).concat(n0(t))},VI=function(e){return e==null},r0=function(e){var t;return typeof((t=e.options)===null||t===void 0?void 0:t.set)=="function"&&e.options.isRegistered("disabled")},a0=function(){return{listeners:[],scriptId:tb("tiny-script"),scriptLoaded:!1}},FI=function(){var e=a0(),t=function(o,i,s,l){var c=i.createElement("script");c.referrerPolicy="origin",c.type="application/javascript",c.id=o,c.src=s;var u=function(){c.removeEventListener("load",u),l()};c.addEventListener("load",u),i.head&&i.head.appendChild(c)},n=function(o,i,s){e.scriptLoaded?s():(e.listeners.push(s),o.getElementById(e.scriptId)||t(e.scriptId,o,i,function(){e.listeners.forEach(function(l){return l()}),e.scriptLoaded=!0}))},a=function(){e=a0()};return{load:n,reinitialize:a}},jI=FI(),HI=function(){return typeof window<"u"?window:global},ja=function(){var e=HI();return e&&e.tinymce?e.tinymce:null},UI={apiKey:String,licenseKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,readonly:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(e){return e==="html"||e==="text"}}},pr=function(){return pr=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},pr.apply(this,arguments)},WI=function(e,t,n,a){return e(a||"div",{id:t,ref:n})},qI=function(e,t,n){return e("textarea",{id:t,visibility:"hidden",ref:n})},fd={selector:void 0,target:void 0},pd=function(e,t){var n;typeof((n=e.mode)===null||n===void 0?void 0:n.set)=="function"?e.mode.set(t):e.setMode(t)},YI=r.defineComponent({props:UI,setup:function(e,t){var n=e.init?pr(pr({},e.init),fd):pr({},fd),a=r.toRefs(e),o=a.disabled,i=a.readonly,s=a.modelValue,l=a.tagName,c=r.ref(null),u=null,d=e.id||tb("tiny-vue"),f=e.init&&e.init.inline||e.inline,p=!!t.attrs["onUpdate:modelValue"],m=!0,v=e.initialValue?e.initialValue:"",y="",w=function(_){return p?function(){return s?.value?s.value:""}:function(){return _?v:y}},b=function(){var _=w(m),g=pr(pr({},n),{disabled:e.disabled,readonly:e.readonly,target:c.value,plugins:zI(n.plugins,e.plugins),toolbar:e.toolbar||n.toolbar,inline:f,license_key:e.licenseKey,setup:function(x){u=x,!r0(u)&&e.disabled===!0&&pd(u,"readonly"),x.on("init",function(C){return RI(C,e,t,x,s,_)}),typeof n.setup=="function"&&n.setup(x)}});$I(c.value)&&(c.value.style.visibility=""),ja().init(g),m=!1};r.watch(i,function(_){u!==null&&pd(u,_?"readonly":"design")}),r.watch(o,function(_){u!==null&&(r0(u)?u.options.set("disabled",_):pd(u,_?"readonly":"design"))}),r.watch(l,function(_){var g;u&&(p||(y=u.getContent()),(g=ja())===null||g===void 0||g.remove(u),r.nextTick(function(){return b()}))}),r.onMounted(function(){if(ja()!==null)b();else if(c.value&&c.value.ownerDocument){var _=e.cloudChannel?e.cloudChannel:"8",g=e.apiKey?e.apiKey:"no-api-key",x=VI(e.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(g,"/tinymce/").concat(_,"/tinymce.min.js"):e.tinymceScriptSrc;jI.load(c.value.ownerDocument,x,b)}}),r.onBeforeUnmount(function(){ja()!==null&&ja().remove(u)}),f||(r.onActivated(function(){m||b()}),r.onDeactivated(function(){var _;u&&(p||(y=u.getContent()),(_=ja())===null||_===void 0||_.remove(u))}));var E=function(_){var g;u&&(y=u.getContent(),(g=ja())===null||g===void 0||g.remove(u),n=pr(pr(pr({},n),_),fd),r.nextTick(function(){return b()}))};return t.expose({rerender:E,getEditor:function(){return u}}),function(){return f?WI(r.h,d,c,e.tagName):qI(r.h,d,c)}}});const GI={class:"relative w-full"},KI=["value","placeholder"],XI={key:0,class:"pointer-events-none absolute inset-0 flex items-center px-2 peer-focus:hidden","data-test-location-labels":""},JI={class:"flex space-x-2"},QI=r.defineComponent({inheritAttrs:!1,__name:"LocationInput",props:{placeholder:{default:""},placeOptions:{default:null},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,o=r.ref(null),i=r.ref(""),s=r.computed(()=>!!n.modelValue?.postcode||!!n.modelValue?.street||!!n.modelValue?.number);return r.onMounted(async()=>{if(!o.value)return;if(!window?.google){console.error("Google not defined. use composable useGoogleApi at setup");return}const{Autocomplete:l}=await google.maps.importLibrary("places"),c=new l(o.value,{strictBounds:!1,types:["address"],componentRestrictions:{country:"nl"},...n.placeOptions});c.addListener("place_changed",()=>{i.value="";const u=c.getPlace(),d=u.geometry?.location,f=u.address_components??[],p=d?.lat(),m=d?.lng(),v=f.find(x=>x.types.includes("postal_code"))?.long_name,y=f.find(x=>x.types.includes("route"))?.long_name,w=parseInt(f.find(x=>x.types.includes("street_number"))?.long_name.split(/(\d*)(.*)/s)?.[1]??"",10),b=f.find(x=>x.types.includes("street_number"))?.long_name.split(/(\d*)(.*)/s)?.[2],E=f.find(x=>x.types.includes("locality"))?.long_name,_=f.find(x=>x.types.includes("administrative_area_level_1"))?.long_name,g=f.find(x=>x.types.includes("administrative_area_level_1"))?.short_name;o.value?.blur(),a("update:modelValue",{postcode:v,street:y,number:w>0?w:void 0,numberSuffix:b,city:E,province:_,provinceShort:g,lat:p,lng:m})})}),(l,c)=>(r.openBlock(),r.createElementBlock("div",GI,[r.createElementVNode("input",r.mergeProps({ref_key:"input",ref:o,value:i.value,placeholder:s.value?"":l.placeholder},{...l.$attrs},{class:"peer text-zinc-900",onKeydown:c[0]||(c[0]=r.withKeys(r.withModifiers(()=>{},["prevent"]),["enter"]))}),null,16,KI),s.value?(r.openBlock(),r.createElementBlock("div",XI,[r.createElementVNode("div",JI,[r.createVNode(r.unref(sc),{class:"empty:hidden","data-test-street-label":""},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(l.modelValue?.street)+" "+r.toDisplayString(l.modelValue?.number)+r.toDisplayString(l.modelValue?.numberSuffix),1)]),_:1}),r.createVNode(r.unref(sc),{class:"empty:hidden","data-test-postcode-label":""},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(l.modelValue?.postcode),1)]),_:1})])])):r.createCommentVNode("",!0)]))}}),ZI=["multiple"],eM=r.defineComponent({inheritAttrs:!1,__name:"FileInput",props:{modelValue:{},multiple:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,o=r.computed({get:()=>n.modelValue,set:s=>a("update:modelValue",s)});function i(s){const c=s.target.files;c&&(o.value=Array.from(c))}return(s,l)=>(r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("label",null,[r.createElementVNode("input",r.mergeProps({...s.$attrs},{multiple:s.multiple,type:"file",class:"hidden","data-test-input":"",onChange:i}),null,16,ZI),r.renderSlot(s.$slots,"default",{},()=>[r.createVNode(r.unref(or),{as:"span","color-type":"secondary",class:"size-10 p-2.5!"},{default:r.withCtx(()=>[r.createVNode(r.unref(yn),{icon:r.unref(bn).far?.paperclip,class:"size-5"},null,8,["icon"])]),_:1})])])]))}}),tM={disabled:!1,readonly:!1,loading:!1,required:!1,multiple:!1,hasError:!1,native:!1,label:void 0,plain:!1,custom:!1,errorMessage:"",modelModifiers:()=>({})};function nM(e,t=!1){return t?"input":Qa(e)?Jp:fy(e)?YI:cc(e)?QI:e==="file"?eM:e==="textarea"?"textarea":"input"}function wf(e){return e==="license"}function rM(e,t,n){return Qc(e)&&(!!t.default||!!n)}function pc(e,t,n,a,o,i,s){return Qc(t)||wf(t)||e==="leading"&&cc(t)?!1:e==="trailing"?!!s.trailingIcon||Qa(t)&&!a&&!o&&!i||cc(t)&&!a||t==="search"&&!a||n&&!s.leadingIcon:!!s[`${e}Icon`]}const aM=`block w-full appearance-none rounded-lg
609
+ focus-visible:outline-hidden`,nT="rounded-md bg-white checked:bg-primary";function rT(e,t){return{[tT]:!0,[nT]:e==="checkbox","rounded-full":e==="radio","border-error!":t}}function Rn(e,t,n){const a=$e(e,n?.in);return isNaN(t)?mt(n?.in||e,NaN):(t&&a.setDate(a.getDate()+t),a)}function nr(e,t,n){const a=$e(e,n?.in);if(isNaN(t))return mt(e,NaN);if(!t)return a;const o=a.getDate(),i=mt(e,a.getTime());i.setMonth(a.getMonth()+t+1,0);const s=i.getDate();return o>=s?i:(a.setFullYear(i.getFullYear(),i.getMonth(),o),a)}function py(e,t,n){const{years:a=0,months:o=0,weeks:i=0,days:s=0,hours:l=0,minutes:c=0,seconds:u=0}=t,d=$e(e,n?.in),f=o||a?nr(d,o+a*12):d,p=s||i?Rn(f,s+i*7):f,m=c+l*60,y=(u+m*60)*1e3;return mt(e,+p+y)}function aT(e,t,n){return mt(e,+$e(e)+t)}function oT(e,t,n){return aT(e,t*uy)}function li(e,t){return ir(e,{...t,weekStartsOn:1})}function my(e,t){const n=$e(e,t?.in),a=n.getFullYear(),o=mt(n,0);o.setFullYear(a+1,0,4),o.setHours(0,0,0,0);const i=li(o),s=mt(n,0);s.setFullYear(a,0,4),s.setHours(0,0,0,0);const l=li(s);return n.getTime()>=i.getTime()?a+1:n.getTime()>=l.getTime()?a:a-1}function uc(e){const t=$e(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Dv(e,t){const n=$e(e,t?.in);return n.setHours(0,0,0,0),n}function hy(e,t,n){const[a,o]=$s(n?.in,e,t),i=Dv(a),s=Dv(o),l=+i-uc(i),c=+s-uc(s);return Math.round((l-c)/z7)}function iT(e,t){const n=my(e,t),a=mt(e,0);return a.setFullYear(n,0,4),a.setHours(0,0,0,0),li(a)}function sT(e,t,n){return nr(e,t*3,n)}function Op(e,t,n){return nr(e,t*12,n)}function Rv(e,t){const n=+$e(e)-+$e(t);return n<0?-1:n>0?1:n}function vy(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function rs(e){return!(!vy(e)&&typeof e!="number"||isNaN(+$e(e)))}function $v(e,t){const n=$e(e,t?.in);return Math.trunc(n.getMonth()/3)+1}function lT(e,t,n){const[a,o]=$s(n?.in,e,t);return a.getFullYear()-o.getFullYear()}function cT(e,t,n){const[a,o]=$s(n?.in,e,t),i=Rv(a,o),s=Math.abs(lT(a,o));a.setFullYear(1584),o.setFullYear(1584);const l=Rv(a,o)===-i,c=i*(s-+l);return c===0?0:c}function gy(e,t){const[n,a]=$s(e,t.start,t.end);return{start:n,end:a}}function yy(e,t){const{start:n,end:a}=gy(t?.in,e);let o=+n>+a;const i=o?+n:+a,s=o?a:n;s.setHours(0,0,0,0);let l=1;const c=[];for(;+s<=i;)c.push(mt(n,s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return o?c.reverse():c}function Za(e,t){const n=$e(e,t?.in),a=n.getMonth(),o=a-a%3;return n.setMonth(o,1),n.setHours(0,0,0,0),n}function uT(e,t){const{start:n,end:a}=gy(t?.in,e);let o=+n>+a;const i=o?+Za(n):+Za(a);let s=Za(o?a:n),l=1;const c=[];for(;+s<=i;)c.push(mt(n,s)),s=sT(s,l);return o?c.reverse():c}function dT(e,t){const n=$e(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function by(e,t){const n=$e(e,t?.in),a=n.getFullYear();return n.setFullYear(a+1,0,0),n.setHours(23,59,59,999),n}function bs(e,t){const n=$e(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function wy(e,t){const n=_o(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=$e(e,t?.in),i=o.getDay(),s=(i<a?-7:0)+6-(i-a);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function zv(e,t){const n=$e(e,t?.in),a=n.getMonth(),o=a-a%3+3;return n.setMonth(o,0),n.setHours(23,59,59,999),n}function fT(e,t){const n=$e(e,t?.in);return hy(n,bs(n))+1}function Bp(e,t){const n=$e(e,t?.in),a=+li(n)-+iT(n);return Math.round(a/cy)+1}function Lp(e,t){const n=$e(e,t?.in),a=n.getFullYear(),o=_o(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=mt(t?.in||e,0);s.setFullYear(a+1,0,i),s.setHours(0,0,0,0);const l=ir(s,t),c=mt(t?.in||e,0);c.setFullYear(a,0,i),c.setHours(0,0,0,0);const u=ir(c,t);return+n>=+l?a+1:+n>=+u?a:a-1}function pT(e,t){const n=_o(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Lp(e,t),i=mt(t?.in||e,0);return i.setFullYear(o,0,a),i.setHours(0,0,0,0),ir(i,t)}function Dp(e,t){const n=$e(e,t?.in),a=+ir(n,t)-+pT(n,t);return Math.round(a/cy)+1}function pt(e,t){const n=e<0?"-":"",a=Math.abs(e).toString().padStart(t,"0");return n+a}const ca={y(e,t){const n=e.getFullYear(),a=n>0?n:1-n;return pt(t==="yy"?a%100:a,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):pt(n+1,2)},d(e,t){return pt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return pt(e.getHours()%12||12,t.length)},H(e,t){return pt(e.getHours(),t.length)},m(e,t){return pt(e.getMinutes(),t.length)},s(e,t){return pt(e.getSeconds(),t.length)},S(e,t){const n=t.length,a=e.getMilliseconds(),o=Math.trunc(a*Math.pow(10,n-3));return pt(o,t.length)}},Lo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Vv={G:function(e,t,n){const a=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const a=e.getFullYear(),o=a>0?a:1-a;return n.ordinalNumber(o,{unit:"year"})}return ca.y(e,t)},Y:function(e,t,n,a){const o=Lp(e,a),i=o>0?o:1-o;if(t==="YY"){const s=i%100;return pt(s,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):pt(i,t.length)},R:function(e,t){const n=my(e);return pt(n,t.length)},u:function(e,t){const n=e.getFullYear();return pt(n,t.length)},Q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return pt(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return pt(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,n){const a=e.getMonth();switch(t){case"M":case"MM":return ca.M(e,t);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,n){const a=e.getMonth();switch(t){case"L":return String(a+1);case"LL":return pt(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,n,a){const o=Dp(e,a);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):pt(o,t.length)},I:function(e,t,n){const a=Bp(e);return t==="Io"?n.ordinalNumber(a,{unit:"week"}):pt(a,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):ca.d(e,t)},D:function(e,t,n){const a=fT(e);return t==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):pt(a,t.length)},E:function(e,t,n){const a=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,n,a){const o=e.getDay(),i=(o-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return pt(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,a){const o=e.getDay(),i=(o-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return pt(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const a=e.getDay(),o=a===0?7:a;switch(t){case"i":return String(o);case"ii":return pt(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const a=e.getHours();let o;switch(a===12?o=Lo.noon:a===0?o=Lo.midnight:o=a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const a=e.getHours();let o;switch(a>=17?o=Lo.evening:a>=12?o=Lo.afternoon:a>=4?o=Lo.morning:o=Lo.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let a=e.getHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return ca.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):ca.H(e,t)},K:function(e,t,n){const a=e.getHours()%12;return t==="Ko"?n.ordinalNumber(a,{unit:"hour"}):pt(a,t.length)},k:function(e,t,n){let a=e.getHours();return a===0&&(a=24),t==="ko"?n.ordinalNumber(a,{unit:"hour"}):pt(a,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ca.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ca.s(e,t)},S:function(e,t){return ca.S(e,t)},X:function(e,t,n){const a=e.getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return jv(a);case"XXXX":case"XX":return Ua(a);case"XXXXX":case"XXX":default:return Ua(a,":")}},x:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"x":return jv(a);case"xxxx":case"xx":return Ua(a);case"xxxxx":case"xxx":default:return Ua(a,":")}},O:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Fv(a,":");case"OOOO":default:return"GMT"+Ua(a,":")}},z:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Fv(a,":");case"zzzz":default:return"GMT"+Ua(a,":")}},t:function(e,t,n){const a=Math.trunc(+e/1e3);return pt(a,t.length)},T:function(e,t,n){return pt(+e,t.length)}};function Fv(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),o=Math.trunc(a/60),i=a%60;return i===0?n+String(o):n+String(o)+t+pt(i,2)}function jv(e,t){return e%60===0?(e>0?"-":"+")+pt(Math.abs(e)/60,2):Ua(e,t)}function Ua(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),o=pt(Math.trunc(a/60),2),i=pt(a%60,2);return n+o+t+i}const Hv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},ky=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},mT=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],a=n[1],o=n[2];if(!o)return Hv(e,t);let i;switch(a){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",Hv(a,t)).replace("{{time}}",ky(o,t))},pf={p:ky,P:mT},hT=/^D+$/,vT=/^Y+$/,gT=["D","DD","YY","YYYY"];function _y(e){return hT.test(e)}function Sy(e){return vT.test(e)}function mf(e,t,n){const a=yT(e,t,n);if(console.warn(a),gT.includes(e))throw new RangeError(a)}function yT(e,t,n){const a=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${a} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const bT=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wT=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,kT=/^'([^]*?)'?$/,_T=/''/g,ST=/[a-zA-Z]/;function Tr(e,t,n){const a=_o(),o=n?.locale??a.locale??dy,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,l=$e(e,n?.in);if(!rs(l))throw new RangeError("Invalid time value");let c=t.match(wT).map(d=>{const f=d[0];if(f==="p"||f==="P"){const p=pf[f];return p(d,o.formatLong)}return d}).join("").match(bT).map(d=>{if(d==="''")return{isToken:!1,value:"'"};const f=d[0];if(f==="'")return{isToken:!1,value:CT(d)};if(Vv[f])return{isToken:!0,value:d};if(f.match(ST))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:d}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const u={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return c.map(d=>{if(!d.isToken)return d.value;const f=d.value;(!n?.useAdditionalWeekYearTokens&&Sy(f)||!n?.useAdditionalDayOfYearTokens&&_y(f))&&mf(f,t,String(e));const p=Vv[f[0]];return p(l,f,o.localize,u)}).join("")}function CT(e){const t=e.match(kT);return t?t[1].replace(_T,"'"):e}function xT(e,t){return $e(e,t?.in).getDay()}function ET(e,t){const n=$e(e,t?.in),a=n.getFullYear(),o=n.getMonth(),i=mt(n,0);return i.setFullYear(a,o+1,0),i.setHours(0,0,0,0),i.getDate()}function TT(){return Object.assign({},_o())}function Kr(e,t){return $e(e,t?.in).getHours()}function PT(e,t){const n=$e(e,t?.in).getDay();return n===0?7:n}function ka(e,t){return $e(e,t?.in).getMinutes()}function Ke(e,t){return $e(e,t?.in).getMonth()}function ci(e){return $e(e).getSeconds()}function Fe(e,t){return $e(e,t?.in).getFullYear()}function mo(e,t){return+$e(e)>+$e(t)}function ui(e,t){return+$e(e)<+$e(t)}function Wo(e,t){return+$e(e)==+$e(t)}function AT(e,t){const n=IT(t)?new t(0):mt(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function IT(e){return typeof e=="function"&&e.prototype?.constructor===e}const MT=10;class Cy{subPriority=0;validate(t,n){return!0}}class NT extends Cy{constructor(t,n,a,o,i){super(),this.value=t,this.validateValue=n,this.setValue=a,this.priority=o,i&&(this.subPriority=i)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,a){return this.setValue(t,n,this.value,a)}}class OT extends Cy{priority=MT;subPriority=-1;constructor(t,n){super(),this.context=t||(a=>mt(n,a))}set(t,n){return n.timestampIsSet?t:mt(t,AT(t,this.context))}}class it{run(t,n,a,o){const i=this.parse(t,n,a,o);return i?{setter:new NT(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,n,a){return!0}}class BT extends it{priority=140;parse(t,n,a){switch(n){case"G":case"GG":case"GGG":return a.era(t,{width:"abbreviated"})||a.era(t,{width:"narrow"});case"GGGGG":return a.era(t,{width:"narrow"});case"GGGG":default:return a.era(t,{width:"wide"})||a.era(t,{width:"abbreviated"})||a.era(t,{width:"narrow"})}}set(t,n,a){return n.era=a,t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]}const Dt={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}/},yr={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 Rt(e,t){return e&&{value:t(e.value),rest:e.rest}}function At(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function br(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const a=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:a*(o*uy+i*V7+s*F7),rest:t.slice(n[0].length)}}function xy(e){return At(Dt.anyDigitsSigned,e)}function Nt(e,t){switch(e){case 1:return At(Dt.singleDigit,t);case 2:return At(Dt.twoDigits,t);case 3:return At(Dt.threeDigits,t);case 4:return At(Dt.fourDigits,t);default:return At(new RegExp("^\\d{1,"+e+"}"),t)}}function dc(e,t){switch(e){case 1:return At(Dt.singleDigitSigned,t);case 2:return At(Dt.twoDigitsSigned,t);case 3:return At(Dt.threeDigitsSigned,t);case 4:return At(Dt.fourDigitsSigned,t);default:return At(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Rp(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 Ey(e,t){const n=t>0,a=n?t:1-t;let o;if(a<=50)o=e||100;else{const i=a+50,s=Math.trunc(i/100)*100,l=e>=i%100;o=e+s-(l?100:0)}return n?o:1-o}function Ty(e){return e%400===0||e%4===0&&e%100!==0}class LT extends it{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,n,a){const o=i=>({year:i,isTwoDigitYear:n==="yy"});switch(n){case"y":return Rt(Nt(4,t),o);case"yo":return Rt(a.ordinalNumber(t,{unit:"year"}),o);default:return Rt(Nt(n.length,t),o)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,a){const o=t.getFullYear();if(a.isTwoDigitYear){const s=Ey(a.year,o);return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}const i=!("era"in n)||n.era===1?a.year:1-a.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}}class DT extends it{priority=130;parse(t,n,a){const o=i=>({year:i,isTwoDigitYear:n==="YY"});switch(n){case"Y":return Rt(Nt(4,t),o);case"Yo":return Rt(a.ordinalNumber(t,{unit:"year"}),o);default:return Rt(Nt(n.length,t),o)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,a,o){const i=Lp(t,o);if(a.isTwoDigitYear){const l=Ey(a.year,i);return t.setFullYear(l,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),ir(t,o)}const s=!("era"in n)||n.era===1?a.year:1-a.year;return t.setFullYear(s,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),ir(t,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class RT extends it{priority=130;parse(t,n){return dc(n==="R"?4:n.length,t)}set(t,n,a){const o=mt(t,0);return o.setFullYear(a,0,4),o.setHours(0,0,0,0),li(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class $T extends it{priority=130;parse(t,n){return dc(n==="u"?4:n.length,t)}set(t,n,a){return t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class zT extends it{priority=120;parse(t,n,a){switch(n){case"Q":case"QQ":return Nt(n.length,t);case"Qo":return a.ordinalNumber(t,{unit:"quarter"});case"QQQ":return a.quarter(t,{width:"abbreviated",context:"formatting"})||a.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(t,{width:"wide",context:"formatting"})||a.quarter(t,{width:"abbreviated",context:"formatting"})||a.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=1&&n<=4}set(t,n,a){return t.setMonth((a-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class VT extends it{priority=120;parse(t,n,a){switch(n){case"q":case"qq":return Nt(n.length,t);case"qo":return a.ordinalNumber(t,{unit:"quarter"});case"qqq":return a.quarter(t,{width:"abbreviated",context:"standalone"})||a.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(t,{width:"wide",context:"standalone"})||a.quarter(t,{width:"abbreviated",context:"standalone"})||a.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=1&&n<=4}set(t,n,a){return t.setMonth((a-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class FT extends it{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,n,a){const o=i=>i-1;switch(n){case"M":return Rt(At(Dt.month,t),o);case"MM":return Rt(Nt(2,t),o);case"Mo":return Rt(a.ordinalNumber(t,{unit:"month"}),o);case"MMM":return a.month(t,{width:"abbreviated",context:"formatting"})||a.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(t,{width:"wide",context:"formatting"})||a.month(t,{width:"abbreviated",context:"formatting"})||a.month(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=11}set(t,n,a){return t.setMonth(a,1),t.setHours(0,0,0,0),t}}class jT extends it{priority=110;parse(t,n,a){const o=i=>i-1;switch(n){case"L":return Rt(At(Dt.month,t),o);case"LL":return Rt(Nt(2,t),o);case"Lo":return Rt(a.ordinalNumber(t,{unit:"month"}),o);case"LLL":return a.month(t,{width:"abbreviated",context:"standalone"})||a.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(t,{width:"wide",context:"standalone"})||a.month(t,{width:"abbreviated",context:"standalone"})||a.month(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=11}set(t,n,a){return t.setMonth(a,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function HT(e,t,n){const a=$e(e,n?.in),o=Dp(a,n)-t;return a.setDate(a.getDate()-o*7),$e(a,n?.in)}class UT extends it{priority=100;parse(t,n,a){switch(n){case"w":return At(Dt.week,t);case"wo":return a.ordinalNumber(t,{unit:"week"});default:return Nt(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,a,o){return ir(HT(t,a,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function WT(e,t,n){const a=$e(e,n?.in),o=Bp(a,n)-t;return a.setDate(a.getDate()-o*7),a}class qT extends it{priority=100;parse(t,n,a){switch(n){case"I":return At(Dt.week,t);case"Io":return a.ordinalNumber(t,{unit:"week"});default:return Nt(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,a){return li(WT(t,a))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const YT=[31,28,31,30,31,30,31,31,30,31,30,31],GT=[31,29,31,30,31,30,31,31,30,31,30,31];class KT extends it{priority=90;subPriority=1;parse(t,n,a){switch(n){case"d":return At(Dt.date,t);case"do":return a.ordinalNumber(t,{unit:"date"});default:return Nt(n.length,t)}}validate(t,n){const a=t.getFullYear(),o=Ty(a),i=t.getMonth();return o?n>=1&&n<=GT[i]:n>=1&&n<=YT[i]}set(t,n,a){return t.setDate(a),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class XT extends it{priority=90;subpriority=1;parse(t,n,a){switch(n){case"D":case"DD":return At(Dt.dayOfYear,t);case"Do":return a.ordinalNumber(t,{unit:"date"});default:return Nt(n.length,t)}}validate(t,n){const a=t.getFullYear();return Ty(a)?n>=1&&n<=366:n>=1&&n<=365}set(t,n,a){return t.setMonth(0,a),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function $p(e,t,n){const a=_o(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,i=$e(e,n?.in),s=i.getDay(),c=(t%7+7)%7,u=7-o,d=t<0||t>6?t-(s+u)%7:(c+u)%7-(s+u)%7;return Rn(i,d,n)}class JT extends it{priority=90;parse(t,n,a){switch(n){case"E":case"EE":case"EEE":return a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(t,{width:"wide",context:"formatting"})||a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,a,o){return t=$p(t,a,o),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]}class QT extends it{priority=90;parse(t,n,a,o){const i=s=>{const l=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+l};switch(n){case"e":case"ee":return Rt(Nt(n.length,t),i);case"eo":return Rt(a.ordinalNumber(t,{unit:"day"}),i);case"eee":return a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"eeeee":return a.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(t,{width:"wide",context:"formatting"})||a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,a,o){return t=$p(t,a,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class ZT extends it{priority=90;parse(t,n,a,o){const i=s=>{const l=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+l};switch(n){case"c":case"cc":return Rt(Nt(n.length,t),i);case"co":return Rt(a.ordinalNumber(t,{unit:"day"}),i);case"ccc":return a.day(t,{width:"abbreviated",context:"standalone"})||a.day(t,{width:"short",context:"standalone"})||a.day(t,{width:"narrow",context:"standalone"});case"ccccc":return a.day(t,{width:"narrow",context:"standalone"});case"cccccc":return a.day(t,{width:"short",context:"standalone"})||a.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(t,{width:"wide",context:"standalone"})||a.day(t,{width:"abbreviated",context:"standalone"})||a.day(t,{width:"short",context:"standalone"})||a.day(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=6}set(t,n,a,o){return t=$p(t,a,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function eP(e,t,n){const a=$e(e,n?.in),o=PT(a,n),i=t-o;return Rn(a,i,n)}class tP extends it{priority=90;parse(t,n,a){const o=i=>i===0?7:i;switch(n){case"i":case"ii":return Nt(n.length,t);case"io":return a.ordinalNumber(t,{unit:"day"});case"iii":return Rt(a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return Rt(a.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return Rt(a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"}),o);case"iiii":default:return Rt(a.day(t,{width:"wide",context:"formatting"})||a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,n){return n>=1&&n<=7}set(t,n,a){return t=eP(t,a),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class nP extends it{priority=80;parse(t,n,a){switch(n){case"a":case"aa":case"aaa":return a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(t,{width:"wide",context:"formatting"})||a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,a){return t.setHours(Rp(a),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]}class rP extends it{priority=80;parse(t,n,a){switch(n){case"b":case"bb":case"bbb":return a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(t,{width:"wide",context:"formatting"})||a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,a){return t.setHours(Rp(a),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]}class aP extends it{priority=80;parse(t,n,a){switch(n){case"B":case"BB":case"BBB":return a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(t,{width:"wide",context:"formatting"})||a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,a){return t.setHours(Rp(a),0,0,0),t}incompatibleTokens=["a","b","t","T"]}class oP extends it{priority=70;parse(t,n,a){switch(n){case"h":return At(Dt.hour12h,t);case"ho":return a.ordinalNumber(t,{unit:"hour"});default:return Nt(n.length,t)}}validate(t,n){return n>=1&&n<=12}set(t,n,a){const o=t.getHours()>=12;return o&&a<12?t.setHours(a+12,0,0,0):!o&&a===12?t.setHours(0,0,0,0):t.setHours(a,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]}class iP extends it{priority=70;parse(t,n,a){switch(n){case"H":return At(Dt.hour23h,t);case"Ho":return a.ordinalNumber(t,{unit:"hour"});default:return Nt(n.length,t)}}validate(t,n){return n>=0&&n<=23}set(t,n,a){return t.setHours(a,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]}class sP extends it{priority=70;parse(t,n,a){switch(n){case"K":return At(Dt.hour11h,t);case"Ko":return a.ordinalNumber(t,{unit:"hour"});default:return Nt(n.length,t)}}validate(t,n){return n>=0&&n<=11}set(t,n,a){return t.getHours()>=12&&a<12?t.setHours(a+12,0,0,0):t.setHours(a,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]}class lP extends it{priority=70;parse(t,n,a){switch(n){case"k":return At(Dt.hour24h,t);case"ko":return a.ordinalNumber(t,{unit:"hour"});default:return Nt(n.length,t)}}validate(t,n){return n>=1&&n<=24}set(t,n,a){const o=a<=24?a%24:a;return t.setHours(o,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]}class cP extends it{priority=60;parse(t,n,a){switch(n){case"m":return At(Dt.minute,t);case"mo":return a.ordinalNumber(t,{unit:"minute"});default:return Nt(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,a){return t.setMinutes(a,0,0),t}incompatibleTokens=["t","T"]}class uP extends it{priority=50;parse(t,n,a){switch(n){case"s":return At(Dt.second,t);case"so":return a.ordinalNumber(t,{unit:"second"});default:return Nt(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,a){return t.setSeconds(a,0),t}incompatibleTokens=["t","T"]}class dP extends it{priority=30;parse(t,n){const a=o=>Math.trunc(o*Math.pow(10,-n.length+3));return Rt(Nt(n.length,t),a)}set(t,n,a){return t.setMilliseconds(a),t}incompatibleTokens=["t","T"]}class fP extends it{priority=10;parse(t,n){switch(n){case"X":return br(yr.basicOptionalMinutes,t);case"XX":return br(yr.basic,t);case"XXXX":return br(yr.basicOptionalSeconds,t);case"XXXXX":return br(yr.extendedOptionalSeconds,t);case"XXX":default:return br(yr.extended,t)}}set(t,n,a){return n.timestampIsSet?t:mt(t,t.getTime()-uc(t)-a)}incompatibleTokens=["t","T","x"]}class pP extends it{priority=10;parse(t,n){switch(n){case"x":return br(yr.basicOptionalMinutes,t);case"xx":return br(yr.basic,t);case"xxxx":return br(yr.basicOptionalSeconds,t);case"xxxxx":return br(yr.extendedOptionalSeconds,t);case"xxx":default:return br(yr.extended,t)}}set(t,n,a){return n.timestampIsSet?t:mt(t,t.getTime()-uc(t)-a)}incompatibleTokens=["t","T","X"]}class mP extends it{priority=40;parse(t){return xy(t)}set(t,n,a){return[mt(t,a*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class hP extends it{priority=20;parse(t){return xy(t)}set(t,n,a){return[mt(t,a),{timestampIsSet:!0}]}incompatibleTokens="*"}const vP={G:new BT,y:new LT,Y:new DT,R:new RT,u:new $T,Q:new zT,q:new VT,M:new FT,L:new jT,w:new UT,I:new qT,d:new KT,D:new XT,E:new JT,e:new QT,c:new ZT,i:new tP,a:new nP,b:new rP,B:new aP,h:new oP,H:new iP,K:new sP,k:new lP,m:new cP,s:new uP,S:new dP,X:new fP,x:new pP,t:new mP,T:new hP},gP=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yP=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,bP=/^'([^]*?)'?$/,wP=/''/g,kP=/\S/,_P=/[a-zA-Z]/;function hf(e,t,n,a){const o=()=>mt(a?.in||n,NaN),i=TT(),s=a?.locale??i.locale??dy,l=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,c=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!t)return e?o():$e(n,a?.in);const u={firstWeekContainsDate:l,weekStartsOn:c,locale:s},d=[new OT(a?.in,n)],f=t.match(yP).map(w=>{const b=w[0];if(b in pf){const E=pf[b];return E(w,s.formatLong)}return w}).join("").match(gP),p=[];for(let w of f){!a?.useAdditionalWeekYearTokens&&Sy(w)&&mf(w,t,e),!a?.useAdditionalDayOfYearTokens&&_y(w)&&mf(w,t,e);const b=w[0],E=vP[b];if(E){const{incompatibleTokens:_}=E;if(Array.isArray(_)){const x=p.find(C=>_.includes(C.token)||C.token===b);if(x)throw new RangeError(`The format string mustn't contain \`${x.fullToken}\` and \`${w}\` at the same time`)}else if(E.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${w}\` and any other token at the same time`);p.push({token:b,fullToken:w});const v=E.run(e,w,s.match,u);if(!v)return o();d.push(v.setter),e=v.rest}else{if(b.match(_P))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");if(w==="''"?w="'":b==="'"&&(w=SP(w)),e.indexOf(w)===0)e=e.slice(w.length);else return o()}}if(e.length>0&&kP.test(e))return o();const m=d.map(w=>w.priority).sort((w,b)=>b-w).filter((w,b,E)=>E.indexOf(w)===b).map(w=>d.filter(b=>b.priority===w).sort((b,E)=>E.subPriority-b.subPriority)).map(w=>w[0]);let g=$e(n,a?.in);if(isNaN(+g))return o();const y={};for(const w of m){if(!w.validate(g,u))return o();const b=w.set(g,y,u);Array.isArray(b)?(g=b[0],Object.assign(y,b[1])):g=b}return g}function SP(e){return e.match(bP)[1].replace(wP,"'")}function Uv(e,t,n){const[a,o]=$s(n?.in,e,t);return+Za(a)==+Za(o)}function Py(e,t,n){return Rn(e,-t,n)}function Ay(e,t,n){const a=$e(e,n?.in),o=a.getFullYear(),i=a.getDate(),s=mt(e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);const l=ET(s);return a.setMonth(t,Math.min(i,l)),a}function ht(e,t,n){let a=$e(e,n?.in);return isNaN(+a)?mt(e,NaN):(t.year!=null&&a.setFullYear(t.year),t.month!=null&&(a=Ay(a,t.month)),t.date!=null&&a.setDate(t.date),t.hours!=null&&a.setHours(t.hours),t.minutes!=null&&a.setMinutes(t.minutes),t.seconds!=null&&a.setSeconds(t.seconds),t.milliseconds!=null&&a.setMilliseconds(t.milliseconds),a)}function CP(e,t,n){const a=$e(e,n?.in);return a.setHours(t),a}function Iy(e,t,n){const a=$e(e,n?.in);return a.setMilliseconds(t),a}function xP(e,t,n){const a=$e(e,n?.in);return a.setMinutes(t),a}function My(e,t,n){const a=$e(e,n?.in);return a.setSeconds(t),a}function _r(e,t,n){const a=$e(e,n?.in);return isNaN(+a)?mt(e,NaN):(a.setFullYear(t),a)}function di(e,t,n){return nr(e,-t,n)}function EP(e,t,n){const{years:a=0,months:o=0,weeks:i=0,days:s=0,hours:l=0,minutes:c=0,seconds:u=0}=t,d=di(e,o+a*12,n),f=Py(d,s+i*7,n),p=c+l*60,g=(u+p*60)*1e3;return mt(e,+f-g)}function Ny(e,t,n){return Op(e,-t,n)}function Ai(){const e=r.useAttrs();return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img",...e},[r.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"}),r.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"}),r.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"}),r.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"})])}Ai.compatConfig={MODE:3};function Oy(){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[r.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"}),r.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"})])}Oy.compatConfig={MODE:3};function zp(){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[r.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"})])}zp.compatConfig={MODE:3};function Vp(){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[r.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"})])}Vp.compatConfig={MODE:3};function Fp(){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[r.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"}),r.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"})])}Fp.compatConfig={MODE:3};function jp(){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[r.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"})])}jp.compatConfig={MODE:3};function Hp(){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[r.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"})])}Hp.compatConfig={MODE:3};const Cn=(e,t)=>t?new Date(e.toLocaleString("en-US",{timeZone:t})):new Date(e),Up=(e,t,n)=>vf(e,t,n)||me(),TP=(e,t,n)=>{const a=t.dateInTz?Cn(new Date(e),t.dateInTz):me(e);return n?Gt(a,!0):a},vf=(e,t,n)=>{if(!e)return null;const a=n?Gt(me(e),!0):me(e);return t?t.exactMatch?TP(e,t,n):Cn(a,t.timezone):a},PP=e=>{const t=new Date(e.getFullYear(),0,1).getTimezoneOffset();return e.getTimezoneOffset()<t},AP=(e,t)=>{if(!e)return 0;const n=new Date,a=new Date(n.toLocaleString("en-US",{timeZone:"UTC"})),o=new Date(n.toLocaleString("en-US",{timeZone:e})),i=(PP(t??o)?o:t??o).getTimezoneOffset()/60;return(+a-+o)/(1e3*60*60)-i};var qn=(e=>(e.month="month",e.year="year",e))(qn||{}),Yn=(e=>(e.top="top",e.bottom="bottom",e))(Yn||{}),ao=(e=>(e.header="header",e.calendar="calendar",e.timePicker="timePicker",e))(ao||{}),ln=(e=>(e.month="month",e.year="year",e.calendar="calendar",e.time="time",e.minutes="minutes",e.hours="hours",e.seconds="seconds",e))(ln||{});const IP=["timestamp","date","iso"];var un=(e=>(e.up="up",e.down="down",e.left="left",e.right="right",e))(un||{}),_t=(e=>(e.arrowUp="ArrowUp",e.arrowDown="ArrowDown",e.arrowLeft="ArrowLeft",e.arrowRight="ArrowRight",e.enter="Enter",e.space=" ",e.esc="Escape",e.tab="Tab",e.home="Home",e.end="End",e.pageUp="PageUp",e.pageDown="PageDown",e))(_t||{}),Qo=(e=>(e.MONTH_AND_YEAR="MM-yyyy",e.YEAR="yyyy",e.DATE="dd-MM-yyyy",e))(Qo||{});function Wv(e){return t=>{const n=new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${t}T00:00:00+00:00`));return e==="ar"?n.slice(2,5):n.slice(0,2)}}function MP(e){return t=>Tr(Cn(new Date(`2017-01-0${t}T00:00:00+00:00`),"UTC"),"EEEEEE",{locale:e})}const NP=(e,t,n)=>{const a=[1,2,3,4,5,6,7];let o;if(e!==null)try{o=a.map(MP(e))}catch{o=a.map(Wv(t))}else o=a.map(Wv(t));const i=o.slice(0,n),s=o.slice(n+1,o.length);return[o[n]].concat(...s).concat(...i)},Wp=(e,t,n)=>{const a=[];for(let o=+e[0];o<=+e[1];o++)a.push({value:+o,text:Ry(o,t)});return n?a.reverse():a},By=(e,t,n)=>{const a=[1,2,3,4,5,6,7,8,9,10,11,12].map(i=>{const s=i<10?`0${i}`:i;return new Date(`2017-${s}-01T00:00:00+00:00`)});if(e!==null)try{const i=n==="long"?"LLLL":"LLL";return a.map((s,l)=>{const c=Tr(Cn(s,"UTC"),i,{locale:e});return{text:c.charAt(0).toUpperCase()+c.substring(1),value:l}})}catch{}const o=new Intl.DateTimeFormat(t,{month:n,timeZone:"UTC"});return a.map((i,s)=>{const l=o.format(i);return{text:l.charAt(0).toUpperCase()+l.substring(1),value:s}})},OP=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],jt=e=>{const t=r.unref(e);return t!=null&&t.$el?t?.$el:t},BP=e=>({type:"dot",...e??{}}),Ly=e=>Array.isArray(e)?!!e[0]&&!!e[1]:!1,qp={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,qv=e=>e===0?e:!e||isNaN(+e)?null:+e,Yv=e=>e===null,Dy=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},LP=e=>{const t=[],n=a=>a.filter(o=>o);for(let a=0;a<e.length;a+=3){const o=[e[a],e[a+1],e[a+2]];t.push(n(o))}return t},ws=(e,t,n)=>{const a=n!=null,o=t!=null;if(!a&&!o)return!1;const i=+n,s=+t;return a&&o?+e>i||+e<s:a?+e>i:o?+e<s:!1},fi=(e,t)=>LP(e).map(n=>n.map(a=>{const{active:o,disabled:i,isBetween:s,highlighted:l}=t(a);return{...a,active:o,disabled:i,className:{dp__overlay_cell_active:o,dp__overlay_cell:!o,dp__overlay_cell_disabled:i,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:i&&o,dp__cell_in_between:s,"dp--highlighted":l}}})),ma=(e,t,n=!1)=>{e&&t.allowStopPropagation&&(n&&e.stopImmediatePropagation(),e.stopPropagation())},DP=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", ");function RP(e,t){let n=[...document.querySelectorAll(DP())];n=n.filter(o=>!e.contains(o)||o.hasAttribute("data-datepicker-instance"));const a=n.indexOf(e);if(a>=0&&(t?a-1>=0:a+1<=n.length))return n[a+(t?-1:1)]}const gf=(e,t)=>e?.querySelector(`[data-dp-element="${t}"]`),Ry=(e,t)=>new Intl.NumberFormat(t,{useGrouping:!1,style:"decimal"}).format(e),Yp=(e,t)=>Tr(e,t??Qo.DATE),td=e=>Array.isArray(e),fc=(e,t,n)=>t.get(Yp(e,n)),$P=(e,t)=>e?t?t instanceof Map?!!fc(e,t):t(me(e)):!1:!0,mn=(e,t,n=!1,a)=>{if(e.key===_t.enter||e.key===_t.space)return n&&e.preventDefault(),t();if(a)return a(e)},zP=()=>"ontouchstart"in window||navigator.maxTouchPoints>0,$y=(e,t)=>e?Qo.MONTH_AND_YEAR:t?Qo.YEAR:Qo.DATE,zy=e=>e<10?`0${e}`:e,Gv=(e,t,n,a,o,i)=>{const s=hf(e,t.slice(0,e.length),new Date,{locale:i});return rs(s)&&vy(s)?a||o?s:ht(s,{hours:+n.hours,minutes:+n?.minutes,seconds:+n?.seconds,milliseconds:0}):null},VP=(e,t,n,a,o,i)=>{const s=Array.isArray(n)?n[0]:n;if(typeof t=="string")return Gv(e,t,s,a,o,i);if(Array.isArray(t)){let l=null;for(const c of t)if(l=Gv(e,c,s,a,o,i),l)break;return l}return typeof t=="function"?t(e):null},me=e=>e?new Date(e):new Date,FP=(e,t,n)=>{if(t){const o=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),s=e.getHours().toString().padStart(2,"0"),l=e.getMinutes().toString().padStart(2,"0"),c=n?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${o}-${i}T${s}:${l}:${c}.000Z`}const a=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(a).toISOString()},Gt=(e,t)=>{const n=me(JSON.parse(JSON.stringify(e))),a=ht(n,{hours:0,minutes:0,seconds:0,milliseconds:0});return t?dT(a):a},ha=(e,t,n,a)=>{let o=e?me(e):me();return(t||t===0)&&(o=CP(o,+t)),(n||n===0)&&(o=xP(o,+n)),(a||a===0)&&(o=My(o,+a)),Iy(o,0)},Mt=(e,t)=>!e||!t?!1:ui(Gt(e),Gt(t)),Xe=(e,t)=>!e||!t?!1:Wo(Gt(e),Gt(t)),Lt=(e,t)=>!e||!t?!1:mo(Gt(e),Gt(t)),ks=(e,t,n)=>e!=null&&e[0]&&e!=null&&e[1]?Lt(n,e[0])&&Mt(n,e[1]):e!=null&&e[0]&&t?Lt(n,e[0])&&Mt(n,t)||Mt(n,e[0])&&Lt(n,t):!1,Qn=e=>{const t=ht(new Date(e),{date:1});return Gt(t)},nd=(e,t,n)=>t&&(n||n===0)?Object.fromEntries(["hours","minutes","seconds"].map(a=>a===t?[a,n]:[a,isNaN(+e[a])?void 0:+e[a]])):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},oo=e=>({hours:Kr(e),minutes:ka(e),seconds:ci(e)}),Vy=(e,t)=>{if(t){const n=Fe(me(t));if(n>e)return 12;if(n===e)return Ke(me(t))}},Fy=(e,t)=>{if(t){const n=Fe(me(t));return n<e?-1:n===e?Ke(me(t)):void 0}},pi=e=>{if(e)return Fe(me(e))},jy=(e,t)=>{const n=Lt(e,t)?t:e,a=Lt(t,e)?t:e;return yy({start:n,end:a})},jP=e=>{const t=nr(e,1);return{month:Ke(t),year:Fe(t)}},Vr=(e,t)=>{const n=ir(e,{weekStartsOn:+t}),a=wy(e,{weekStartsOn:+t});return[n,a]},Hy=(e,t)=>{const n={hours:Kr(me()),minutes:ka(me()),seconds:t?ci(me()):0};return Object.assign(n,e)},pa=(e,t,n)=>[ht(me(e),{date:1}),ht(me(),{month:t,year:n,date:1})],Fr=(e,t,n)=>{let a=e?me(e):me();return(t||t===0)&&(a=Ay(a,t)),n&&(a=_r(a,n)),a},Uy=(e,t,n,a,o)=>{if(!a||o&&!t||!o&&!n)return!1;const i=o?nr(e,1):di(e,1),s=[Ke(i),Fe(i)];return o?!UP(...s,t):!HP(...s,n)},HP=(e,t,n)=>Mt(...pa(n,e,t))||Xe(...pa(n,e,t)),UP=(e,t,n)=>Lt(...pa(n,e,t))||Xe(...pa(n,e,t)),Wy=(e,t,n,a,o,i,s)=>{if(typeof t=="function"&&!s)return t(e);const l=n?{locale:n}:void 0;return Array.isArray(e)?`${Tr(e[0],i,l)}${o&&!e[1]?"":a}${e[1]?Tr(e[1],i,l):""}`:Tr(e,i,l)},Do=e=>{if(e)return null;throw new Error(qp.prop("partial-range"))},gl=(e,t)=>{if(t)return e();throw new Error(qp.prop("range"))},yf=e=>Array.isArray(e)?rs(e[0])&&(e[1]?rs(e[1]):!0):e?rs(e):!1,WP=(e,t)=>ht(t??me(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0}),rd=(e,t,n,a)=>{if(!e)return!0;if(a){const o=n==="max"?ui(e,t):mo(e,t),i={seconds:0,milliseconds:0};return o||Wo(ht(e,i),ht(t,i))}return n==="max"?e.getTime()<=t.getTime():e.getTime()>=t.getTime()},ad=(e,t,n)=>e?WP(e,t):me(n??t),Kv=(e,t,n,a,o)=>{if(Array.isArray(a)){const s=ad(e,a[0],t),l=ad(e,a[1],t);return rd(a[0],s,n,!!t)&&rd(a[1],l,n,!!t)&&o}const i=ad(e,a,t);return rd(a,i,n,!!t)&&o},od=e=>ht(me(),oo(e)),qP=(e,t,n)=>{if(e instanceof Map){const a=`${zy(n+1)}-${t}`;return e.size?e.has(a):!1}return typeof e=="function"?e(Gt(ht(me(),{month:n,year:t}),!0)):!1},YP=(e,t,n)=>{if(e instanceof Map){const a=`${zy(n+1)}-${t}`;return e.size?e.has(a):!0}return!0},qy=(e,t,n)=>typeof e=="function"?e({month:t,year:n}):!!e.months.find(a=>a.month===t&&a.year===n),Gp=(e,t)=>typeof e=="function"?e(t):e.years.includes(t),bf=e=>`dp-${Tr(e,"yyyy-MM-dd")}`,Xv=(e,t)=>{const n=Py(Gt(t),e),a=Rn(Gt(t),e);return{before:n,after:a}},qi=r.reactive({menuFocused:!1,shiftKeyInMenu:!1}),Yy=()=>{const e=n=>{qi.menuFocused=n},t=n=>{qi.shiftKeyInMenu!==n&&(qi.shiftKeyInMenu=n)};return{control:r.computed(()=>({shiftKeyInMenu:qi.shiftKeyInMenu,menuFocused:qi.menuFocused})),setMenuFocused:e,setShiftKey:t}},kt=r.reactive({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),id=r.ref(null),yl=r.ref(!1),sd=r.ref(!1),ld=r.ref(!1),cd=r.ref(!1),on=r.ref(0),Bt=r.ref(0),Oa=()=>{const e=r.computed(()=>yl.value?[...kt.selectionGrid,kt.actionRow].filter(f=>f.length):sd.value?[...kt.timePicker[0],...kt.timePicker[1],cd.value?[]:[id.value],kt.actionRow].filter(f=>f.length):ld.value?[...kt.monthPicker,kt.actionRow]:[kt.monthYear,...kt.calendar,kt.time,kt.actionRow].filter(f=>f.length)),t=f=>{on.value=f?on.value+1:on.value-1;let p=null;e.value[Bt.value]&&(p=e.value[Bt.value][on.value]),!p&&e.value[Bt.value+(f?1:-1)]?(Bt.value=Bt.value+(f?1:-1),on.value=f?0:e.value[Bt.value].length-1):p||(on.value=f?on.value-1:on.value+1)},n=f=>{Bt.value===0&&!f||Bt.value===e.value.length&&f||(Bt.value=f?Bt.value+1:Bt.value-1,e.value[Bt.value]?e.value[Bt.value]&&!e.value[Bt.value][on.value]&&on.value!==0&&(on.value=e.value[Bt.value].length-1):Bt.value=f?Bt.value-1:Bt.value+1)},a=f=>{let p=null;e.value[Bt.value]&&(p=e.value[Bt.value][on.value]),p?p.focus({preventScroll:!yl.value}):on.value=f?on.value-1:on.value+1},o=()=>{t(!0),a(!0)},i=()=>{t(!1),a(!1)},s=()=>{n(!1),a(!0)},l=()=>{n(!0),a(!0)},c=(f,p)=>{kt[p]=f},u=(f,p)=>{kt[p]=f},d=()=>{on.value=0,Bt.value=0};return{buildMatrix:c,buildMultiLevelMatrix:u,setTimePickerBackRef:f=>{id.value=f},setSelectionGrid:f=>{yl.value=f,d(),f||(kt.selectionGrid=[])},setTimePicker:(f,p=!1)=>{sd.value=f,cd.value=p,d(),f||(kt.timePicker[0]=[],kt.timePicker[1]=[])},setTimePickerElements:(f,p=0)=>{kt.timePicker[p]=f},arrowRight:o,arrowLeft:i,arrowUp:s,arrowDown:l,clearArrowNav:()=>{kt.monthYear=[],kt.calendar=[],kt.time=[],kt.actionRow=[],kt.selectionGrid=[],kt.timePicker[0]=[],kt.timePicker[1]=[],yl.value=!1,sd.value=!1,cd.value=!1,ld.value=!1,d(),id.value=null},setMonthPicker:f=>{ld.value=f,d()},refSets:kt}},Jv=e=>({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down",...e??{}}),GP=e=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:t=>`Increment ${t}`,decrementValue:t=>`Decrement ${t}`,openTpOverlay:t=>`Open ${t} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,clearInput:"Clear value",calendarIcon:"Calendar icon",timePicker:"Time picker",monthPicker:t=>`Month picker${t?" overlay":""}`,yearPicker:t=>`Year picker${t?" overlay":""}`,timeOverlay:t=>`${t} overlay`,...e??{}}),Qv=e=>e?typeof e=="boolean"?e?2:0:+e>=2?+e:2:0,KP=e=>{const t=typeof e=="object"&&e,n={static:!0,solo:!1};if(!e)return{...n,count:Qv(!1)};const a=t?e:{},o=t?a.count??!0:e,i=Qv(o);return Object.assign(n,a,{count:i})},XP=(e,t,n)=>e||(typeof n=="string"?n:t),JP=e=>typeof e=="boolean"?e?Jv({}):!1:Jv(e),QP=e=>{const t={enterSubmit:!0,tabSubmit:!0,openMenu:"open",selectOnFocus:!1,rangeSeparator:" - ",escClose:!0};return typeof e=="object"?{...t,...e??{},enabled:!0}:{...t,enabled:e}},ZP=e=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...e??{}}),eA=e=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...e??{}}),tA=e=>{const t={input:!1};return typeof e=="object"?{...t,...e??{},enabled:!0}:{enabled:e,...t}},nA=e=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,shadowDom:!1,mobileBreakpoint:600,setDateOnMenuClose:!1,...e??{}}),rA=e=>{const t={dates:Array.isArray(e)?e.map(n=>me(n)):[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}};return typeof e=="function"?e:{...t,...e??{}}},aA=e=>typeof e=="object"?{type:e?.type??"local",hideOnOffsetDates:e?.hideOnOffsetDates??!1}:{type:e,hideOnOffsetDates:!1},oA=e=>{const t={noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1};return typeof e=="object"?{enabled:!0,...t,...e}:{enabled:e,...t}},iA=e=>e?typeof e=="string"?{timezone:e,exactMatch:!1,dateInTz:void 0,emitTimezone:void 0,convertModel:!0}:{timezone:e.timezone,exactMatch:e.exactMatch??!1,dateInTz:e.dateInTz??void 0,emitTimezone:e.emitTimezone??void 0,convertModel:e.convertModel??!0}:{timezone:void 0,exactMatch:!1,emitTimezone:void 0},ud=(e,t,n,a)=>new Map(e.map(o=>{const i=Up(o,t,a);return[Yp(i,n),i]})),sA=(e,t)=>e.length?new Map(e.map(n=>{const a=Up(n.date,t);return[Yp(a,Qo.DATE),n]})):null,lA=e=>{var t;const n=$y(e.isMonthPicker,e.isYearPicker);return{minDate:vf(e.minDate,e.timezone,e.isSpecific),maxDate:vf(e.maxDate,e.timezone,e.isSpecific),disabledDates:td(e.disabledDates)?ud(e.disabledDates,e.timezone,n,e.isSpecific):e.disabledDates,allowedDates:td(e.allowedDates)?ud(e.allowedDates,e.timezone,n,e.isSpecific):null,highlight:typeof e.highlight=="object"&&td((t=e.highlight)==null?void 0:t.dates)?ud(e.highlight.dates,e.timezone,n):e.highlight,markers:sA(e.markers,e.timezone)}},cA=e=>typeof e=="boolean"?{enabled:e,dragSelect:!0,limit:null}:{enabled:!!e,limit:e.limit?+e.limit:null,dragSelect:e.dragSelect??!0},uA=e=>({...Object.fromEntries(Object.keys(e).map(t=>{const n=t,a=e[n],o=typeof e[n]=="string"?{[a]:!0}:Object.fromEntries(a.map(i=>[i,!0]));return[t,o]}))}),Et=e=>{const t=()=>{const C=e.enableSeconds?":ss":"",P=e.enableMinutes?":mm":"";return e.is24?`HH${P}${C}`:`hh${P}${C} aa`},n=()=>{var C;return e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?t():e.weekPicker?`${((C=w.value)==null?void 0:C.type)==="iso"?"II":"ww"}-RR`:e.yearPicker?"yyyy":e.quarterPicker?"QQQ/yyyy":e.enableTimePicker?`MM/dd/yyyy, ${t()}`:"MM/dd/yyyy"},a=C=>Hy(C,e.enableSeconds),o=()=>v.value.enabled?e.startTime&&Array.isArray(e.startTime)?[a(e.startTime[0]),a(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?a(e.startTime):null,i=r.computed(()=>KP(e.multiCalendars)),s=r.computed(()=>o()),l=r.computed(()=>GP(e.ariaLabels)),c=r.computed(()=>ZP(e.filters)),u=r.computed(()=>JP(e.transitions)),d=r.computed(()=>eA(e.actionRow)),f=r.computed(()=>XP(e.previewFormat,e.format,n())),p=r.computed(()=>QP(e.textInput)),m=r.computed(()=>tA(e.inline)),g=r.computed(()=>nA(e.config)),y=r.computed(()=>rA(e.highlight)),w=r.computed(()=>aA(e.weekNumbers)),b=r.computed(()=>iA(e.timezone)),E=r.computed(()=>cA(e.multiDates)),_=r.computed(()=>lA({minDate:e.minDate,maxDate:e.maxDate,disabledDates:e.disabledDates,allowedDates:e.allowedDates,highlight:y.value,markers:e.markers,timezone:b.value,isSpecific:e.monthPicker||e.yearPicker||e.quarterPicker,isMonthPicker:e.monthPicker,isYearPicker:e.yearPicker})),v=r.computed(()=>oA(e.range)),x=r.computed(()=>uA(e.ui));return{defaultedTransitions:u,defaultedMultiCalendars:i,defaultedStartTime:s,defaultedAriaLabels:l,defaultedFilters:c,defaultedActionRow:d,defaultedPreviewFormat:f,defaultedTextInput:p,defaultedInline:m,defaultedConfig:g,defaultedHighlight:y,defaultedWeekNumbers:w,defaultedRange:v,propDates:_,defaultedTz:b,defaultedMultiDates:E,defaultedUI:x,getDefaultPattern:n,getDefaultStartTime:o,handleEventPropagation:C=>{g.value.allowStopPropagation&&C.stopPropagation(),g.value.allowPreventDefault&&C.preventDefault()}}},dA=(e,t,n)=>{const a=r.ref(),{defaultedTextInput:o,defaultedRange:i,defaultedTz:s,defaultedMultiDates:l,getDefaultPattern:c}=Et(t),u=r.ref(""),d=r.toRef(t,"format"),f=r.toRef(t,"formatLocale");r.watch(a,()=>{typeof t.onInternalModelChange=="function"&&e("internal-model-change",a.value,H(!0))},{deep:!0}),r.watch(i,(T,J)=>{T.enabled!==J.enabled&&(a.value=null)}),r.watch(d,()=>{K()});const p=T=>s.value.timezone&&s.value.convertModel?Cn(T,s.value.timezone):T,m=T=>{if(s.value.timezone&&s.value.convertModel){const J=AP(s.value.timezone,T);return oT(T,J)}return T},g=(T,J,le=!1)=>Wy(T,t.format,t.formatLocale,o.value.rangeSeparator,t.modelAuto,J??c(),le),y=T=>T?t.modelType?Z(T):{hours:Kr(T),minutes:ka(T),seconds:t.enableSeconds?ci(T):0}:null,w=T=>t.modelType?Z(T):{month:Ke(T),year:Fe(T)},b=T=>Array.isArray(T)?l.value.enabled?T.map(J=>E(J,_r(me(),J))):gl(()=>[_r(me(),T[0]),T[1]?_r(me(),T[1]):Do(i.value.partialRange)],i.value.enabled):_r(me(),+T),E=(T,J)=>(typeof T=="string"||typeof T=="number")&&t.modelType?V(T):J,_=T=>Array.isArray(T)?[E(T[0],ha(null,+T[0].hours,+T[0].minutes,T[0].seconds)),E(T[1],ha(null,+T[1].hours,+T[1].minutes,T[1].seconds))]:E(T,ha(null,T.hours,T.minutes,T.seconds)),v=T=>{const J=ht(me(),{date:1});return Array.isArray(T)?l.value.enabled?T.map(le=>E(le,Fr(J,+le.month,+le.year))):gl(()=>[E(T[0],Fr(J,+T[0].month,+T[0].year)),E(T[1],T[1]?Fr(J,+T[1].month,+T[1].year):Do(i.value.partialRange))],i.value.enabled):E(T,Fr(J,+T.month,+T.year))},x=T=>{if(Array.isArray(T))return T.map(J=>V(J));throw new Error(qp.dateArr("multi-dates"))},C=T=>{if(Array.isArray(T)&&i.value.enabled){const J=T[0],le=T[1];return[me(Array.isArray(J)?J[0]:null),Array.isArray(le)&&le.length?me(le[0]):null]}return me(T[0])},P=T=>t.modelAuto?Array.isArray(T)?[V(T[0]),V(T[1])]:t.autoApply?[V(T)]:[V(T),null]:Array.isArray(T)?gl(()=>T[1]?[V(T[0]),T[1]?V(T[1]):Do(i.value.partialRange)]:[V(T[0])],i.value.enabled):V(T),O=()=>{Array.isArray(a.value)&&i.value.enabled&&a.value.length===1&&a.value.push(Do(i.value.partialRange))},A=()=>{const T=a.value;return[Z(T[0]),T[1]?Z(T[1]):Do(i.value.partialRange)]},L=()=>Array.isArray(a.value)?a.value[1]?A():Z(qt(a.value[0])):[],U=()=>(a.value||[]).map(T=>Z(T)),z=(T=!1)=>(T||O(),t.modelAuto?L():l.value.enabled?U():Array.isArray(a.value)?gl(()=>A(),i.value.enabled):Z(qt(a.value))),R=T=>!T||Array.isArray(T)&&!T.length?null:t.timePicker?_(qt(T)):t.monthPicker?v(qt(T)):t.yearPicker?b(qt(T)):l.value.enabled?x(qt(T)):t.weekPicker?C(qt(T)):P(qt(T)),I=T=>{const J=R(T);yf(qt(J))?(a.value=qt(J),K()):(a.value=null,u.value="")},B=()=>{const T=J=>Tr(J,o.value.format);return`${T(a.value[0])} ${o.value.rangeSeparator} ${a.value[1]?T(a.value[1]):""}`},M=()=>n.value&&a.value?Array.isArray(a.value)?B():Tr(a.value,o.value.format):g(a.value),$=()=>a.value?l.value.enabled?a.value.map(T=>g(T)).join("; "):o.value.enabled&&typeof o.value.format=="string"?M():g(a.value):"",K=()=>{!t.format||typeof t.format=="string"||o.value.enabled&&typeof o.value.format=="string"?u.value=$():u.value=t.format(a.value)},V=T=>{if(t.utc){const J=new Date(T);return t.utc==="preserve"?new Date(J.getTime()+J.getTimezoneOffset()*6e4):J}return t.modelType?IP.includes(t.modelType)?p(new Date(T)):t.modelType==="format"&&(typeof t.format=="string"||!t.format)?p(hf(T,c(),new Date,{locale:f.value})):p(hf(T,t.modelType,new Date,{locale:f.value})):p(new Date(T))},Z=T=>T?t.utc?FP(T,t.utc==="preserve",t.enableSeconds):t.modelType?t.modelType==="timestamp"?+m(T):t.modelType==="iso"?m(T).toISOString():t.modelType==="format"&&(typeof t.format=="string"||!t.format)?g(m(T)):g(m(T),t.modelType,!0):m(T):"",q=(T,J=!1,le=!1)=>{if(le)return T;if(e("update:model-value",T),s.value.emitTimezone&&J){const Oe=Array.isArray(T)?T.map(ee=>Cn(qt(ee),s.value.emitTimezone)):Cn(qt(T),s.value.emitTimezone);e("update:model-timezone-value",Oe)}},oe=T=>Array.isArray(a.value)?l.value.enabled?a.value.map(J=>T(J)):[T(a.value[0]),a.value[1]?T(a.value[1]):Do(i.value.partialRange)]:T(qt(a.value)),j=()=>{if(Array.isArray(a.value)){const T=Vr(a.value[0],t.weekStart),J=a.value[1]?Vr(a.value[1],t.weekStart):[];return[T.map(le=>me(le)),J.map(le=>me(le))]}return Vr(a.value,t.weekStart).map(T=>me(T))},W=(T,J)=>q(qt(oe(T)),!1,J),Y=T=>{const J=j();return T?J:e("update:model-value",j())},H=(T=!1)=>(T||K(),t.monthPicker?W(w,T):t.timePicker?W(y,T):t.yearPicker?W(Fe,T):t.weekPicker?Y(T):q(z(T),!0,T));return{inputValue:u,internalModelValue:a,checkBeforeEmit:()=>a.value?i.value.enabled?i.value.partialRange?a.value.length>=1:a.value.length===2:!!a.value:!1,parseExternalModelValue:I,formatInputValue:K,emitModelValue:H}},fA=(e,t)=>{const{defaultedFilters:n,propDates:a}=Et(e),{validateMonthYearInRange:o}=Ba(e),i=(d,f)=>{let p=d;return n.value.months.includes(Ke(p))?(p=f?nr(d,1):di(d,1),i(p,f)):p},s=(d,f)=>{let p=d;return n.value.years.includes(Fe(p))?(p=f?Op(d,1):Ny(d,1),s(p,f)):p},l=(d,f=!1)=>{const p=ht(me(),{month:e.month,year:e.year});let m=d?nr(p,1):di(p,1);e.disableYearSelect&&(m=_r(m,e.year));let g=Ke(m),y=Fe(m);n.value.months.includes(g)&&(m=i(m,d),g=Ke(m),y=Fe(m)),n.value.years.includes(y)&&(m=s(m,d),y=Fe(m)),o(g,y,d,e.preventMinMaxNavigation)&&c(g,y,f)},c=(d,f,p)=>{t("update-month-year",{month:d,year:f,fromNav:p})},u=r.computed(()=>d=>Uy(ht(me(),{month:e.month,year:e.year}),a.value.maxDate,a.value.minDate,e.preventMinMaxNavigation,d));return{handleMonthYearChange:l,isDisabled:u,updateMonthYear:c}},Zc={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},autoPosition:{type:[Boolean,String],default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:[String,Object],default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},highlight:{type:[Function,Object],default:null},teleport:{type:[Boolean,String,Object],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function,Object],default:null},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:[Object,Boolean],default:!1},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},alwaysClearable:{type:Boolean,default:!1},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:[Boolean,Object],default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},onInternalModelChange:{type:[Function,Object],default:null},enableMinutes:{type:Boolean,default:!0},ui:{type:Object,default:()=>({})}},ur={...Zc,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},menuWrapRef:{type:Object,default:null},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1},isMobile:{type:Boolean,default:void 0}},pA=["title"],mA=["disabled"],hA=r.defineComponent({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},...ur},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const n=t,a=e,{defaultedActionRow:o,defaultedPreviewFormat:i,defaultedMultiCalendars:s,defaultedTextInput:l,defaultedInline:c,defaultedRange:u,defaultedMultiDates:d}=Et(a),{isTimeValid:f,isMonthValid:p}=Ba(a),{buildMatrix:m}=Oa(),g=r.ref(null),y=r.ref(null),w=r.ref(!1),b=r.ref({}),E=r.ref(null),_=r.ref(null);r.onMounted(()=>{a.arrowNavigation&&m([jt(g),jt(y)],"actionRow"),v(),window.addEventListener("resize",v)}),r.onUnmounted(()=>{window.removeEventListener("resize",v)});const v=()=>{w.value=!1,setTimeout(()=>{var I,B;const M=(I=E.value)==null?void 0:I.getBoundingClientRect(),$=(B=_.value)==null?void 0:B.getBoundingClientRect();M&&$&&(b.value.maxWidth=`${$.width-M.width-20}px`),w.value=!0},0)},x=r.computed(()=>u.value.enabled&&!u.value.partialRange&&a.internalModelValue?a.internalModelValue.length===2:!0),C=r.computed(()=>!f.value(a.internalModelValue)||!p.value(a.internalModelValue)||!x.value),P=()=>{const I=i.value;return a.timePicker||a.monthPicker,I(qt(a.internalModelValue))},O=()=>{const I=a.internalModelValue;return s.value.count>0?`${A(I[0])} - ${A(I[1])}`:[A(I[0]),A(I[1])]},A=I=>Wy(I,i.value,a.formatLocale,l.value.rangeSeparator,a.modelAuto,i.value),L=r.computed(()=>!a.internalModelValue||!a.menuMount?"":typeof i.value=="string"?Array.isArray(a.internalModelValue)?a.internalModelValue.length===2&&a.internalModelValue[1]?O():d.value.enabled?a.internalModelValue.map(I=>`${A(I)}`):a.modelAuto?`${A(a.internalModelValue[0])}`:`${A(a.internalModelValue[0])} -`:A(a.internalModelValue):P()),U=()=>d.value.enabled?"; ":" - ",z=r.computed(()=>Array.isArray(L.value)?L.value.join(U()):L.value),R=()=>{f.value(a.internalModelValue)&&p.value(a.internalModelValue)&&x.value?n("select-date"):n("invalid-select")};return(I,B)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"actionRowRef",ref:_,class:"dp__action_row"},[I.$slots["action-row"]?r.renderSlot(I.$slots,"action-row",r.normalizeProps(r.mergeProps({key:0},{internalModelValue:I.internalModelValue,disabled:C.value,selectDate:()=>I.$emit("select-date"),closePicker:()=>I.$emit("close-picker")}))):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.unref(o).showPreview?(r.openBlock(),r.createElementBlock("div",{key:0,class:"dp__selection_preview",title:z.value,style:r.normalizeStyle(b.value)},[I.$slots["action-preview"]&&w.value?r.renderSlot(I.$slots,"action-preview",{key:0,value:I.internalModelValue}):r.createCommentVNode("",!0),!I.$slots["action-preview"]&&w.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(z.value),1)],64)):r.createCommentVNode("",!0)],12,pA)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref_key:"actionBtnContainer",ref:E,class:"dp__action_buttons","data-dp-element":"action-row"},[I.$slots["action-buttons"]?r.renderSlot(I.$slots,"action-buttons",{key:0,value:I.internalModelValue}):r.createCommentVNode("",!0),I.$slots["action-buttons"]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[!r.unref(c).enabled&&r.unref(o).showCancel?(r.openBlock(),r.createElementBlock("button",{key:0,ref_key:"cancelButtonRef",ref:g,type:"button",class:"dp__action_button dp__action_cancel",onClick:B[0]||(B[0]=M=>I.$emit("close-picker")),onKeydown:B[1]||(B[1]=M=>r.unref(mn)(M,()=>I.$emit("close-picker")))},r.toDisplayString(I.cancelText),545)):r.createCommentVNode("",!0),r.unref(o).showNow?(r.openBlock(),r.createElementBlock("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:B[2]||(B[2]=M=>I.$emit("select-now")),onKeydown:B[3]||(B[3]=M=>r.unref(mn)(M,()=>I.$emit("select-now")))},r.toDisplayString(I.nowButtonLabel),33)):r.createCommentVNode("",!0),r.unref(o).showSelect?(r.openBlock(),r.createElementBlock("button",{key:2,ref_key:"selectButtonRef",ref:y,type:"button",class:"dp__action_button dp__action_select",disabled:C.value,"data-test-id":"select-button",onKeydown:B[4]||(B[4]=M=>r.unref(mn)(M,()=>R())),onClick:R},r.toDisplayString(I.selectText),41,mA)):r.createCommentVNode("",!0)],64))],512)],64))],512))}}),vA=["role","aria-label","tabindex"],gA={class:"dp__selection_grid_header"},yA=["aria-selected","aria-disabled","data-test-id","onClick","onKeydown","onMouseover"],bA=["aria-label"],zs=r.defineComponent({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},ariaLabels:{},overlayLabel:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(e,{expose:t,emit:n}){const{setSelectionGrid:a,buildMultiLevelMatrix:o,setMonthPicker:i}=Oa(),s=n,l=e,{defaultedAriaLabels:c,defaultedTextInput:u,defaultedConfig:d,handleEventPropagation:f}=Et(l),{hideNavigationButtons:p}=nu(),m=r.ref(!1),g=r.ref(null),y=r.ref(null),w=r.ref([]),b=r.ref(),E=r.ref(null),_=r.ref(0),v=r.ref(null);r.onBeforeUpdate(()=>{g.value=null}),r.onMounted(()=>{r.nextTick().then(()=>z()),l.noOverlayFocus||C(),x(!0)}),r.onUnmounted(()=>x(!1));const x=j=>{var W;l.arrowNavigation&&((W=l.headerRefs)!=null&&W.length?i(j):a(j))},C=()=>{var j;const W=jt(y);W&&(u.value.enabled||(g.value?(j=g.value)==null||j.focus({preventScroll:!0}):W.focus({preventScroll:!0})),m.value=W.clientHeight<W.scrollHeight)},P=r.computed(()=>({dp__overlay:!0,"dp--overlay-absolute":!l.useRelative,"dp--overlay-relative":l.useRelative})),O=r.computed(()=>l.useRelative?{height:`${l.height}px`,width:"var(--dp-menu-min-width)"}:void 0),A=r.computed(()=>({dp__overlay_col:!0})),L=r.computed(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:m.value,dp__button_bottom:l.isLast})),U=r.computed(()=>{var j,W;return{dp__overlay_container:!0,dp__container_flex:((j=l.items)==null?void 0:j.length)<=6,dp__container_block:((W=l.items)==null?void 0:W.length)>6}});r.watch(()=>l.items,()=>z(!1),{deep:!0});const z=(j=!0)=>{r.nextTick().then(()=>{const W=jt(g),Y=jt(y),H=jt(E),T=jt(v),J=H?H.getBoundingClientRect().height:0;Y&&(Y.getBoundingClientRect().height?_.value=Y.getBoundingClientRect().height-J:_.value=d.value.modeHeight-J),W&&T&&j&&(T.scrollTop=W.offsetTop-T.offsetTop-(_.value/2-W.getBoundingClientRect().height)-J)})},R=j=>{j.disabled||s("selected",j.value)},I=()=>{s("toggle"),s("reset-flow")},B=j=>{l.escClose&&(I(),f(j))},M=(j,W,Y,H)=>{j&&((W.active||W.value===l.focusValue)&&(g.value=j),l.arrowNavigation&&(Array.isArray(w.value[Y])?w.value[Y][H]=j:w.value[Y]=[j],$()))},$=()=>{var j,W;const Y=(j=l.headerRefs)!=null&&j.length?[l.headerRefs].concat(w.value):w.value.concat([l.skipButtonRef?[]:[E.value]]);o(qt(Y),(W=l.headerRefs)!=null&&W.length?"monthPicker":"selectionGrid")},K=j=>{l.arrowNavigation||ma(j,d.value,!0)},V=j=>{b.value=j,s("hover-value",j)},Z=()=>{if(I(),!l.isLast){const j=gf(l.menuWrapRef??null,"action-row");if(j){const W=Dy(j);W?.focus()}}},q=j=>{switch(j.key){case _t.esc:return B(j);case _t.arrowLeft:return K(j);case _t.arrowRight:return K(j);case _t.arrowUp:return K(j);case _t.arrowDown:return K(j);default:return}},oe=j=>{if(j.key===_t.enter)return I();if(j.key===_t.tab)return Z()};return t({focusGrid:C}),(j,W)=>{var Y;return r.openBlock(),r.createElementBlock("div",{ref_key:"gridWrapRef",ref:y,class:r.normalizeClass(P.value),style:r.normalizeStyle(O.value),role:j.useRelative?void 0:"dialog","aria-label":j.overlayLabel,tabindex:j.useRelative?void 0:"0",onKeydown:q,onClick:W[0]||(W[0]=r.withModifiers(()=>{},["prevent"]))},[r.createElementVNode("div",{ref_key:"containerRef",ref:v,class:r.normalizeClass(U.value),style:r.normalizeStyle({"--dp-overlay-height":`${_.value}px`}),role:"grid"},[r.createElementVNode("div",gA,[r.renderSlot(j.$slots,"header")]),j.$slots.overlay?r.renderSlot(j.$slots,"overlay",{key:0}):(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(j.items,(H,T)=>(r.openBlock(),r.createElementBlock("div",{key:T,class:r.normalizeClass(["dp__overlay_row",{dp__flex_row:j.items.length>=3}]),role:"row"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(H,(J,le)=>(r.openBlock(),r.createElementBlock("div",{key:J.value,ref_for:!0,ref:Oe=>M(Oe,J,T,le),role:"gridcell",class:r.normalizeClass(A.value),"aria-selected":J.active||void 0,"aria-disabled":J.disabled||void 0,tabindex:"0","data-test-id":J.text,onClick:r.withModifiers(Oe=>R(J),["prevent"]),onKeydown:Oe=>r.unref(mn)(Oe,()=>R(J),!0),onMouseover:Oe=>V(J.value)},[r.createElementVNode("div",{class:r.normalizeClass(J.className)},[j.$slots.item?r.renderSlot(j.$slots,"item",{key:0,item:J}):r.createCommentVNode("",!0),j.$slots.item?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(J.text),1)],64))],2)],42,yA))),128))],2))),128))],6),j.$slots["button-icon"]?r.withDirectives((r.openBlock(),r.createElementBlock("button",{key:0,ref_key:"toggleButton",ref:E,type:"button","aria-label":(Y=r.unref(c))==null?void 0:Y.toggleOverlay,class:r.normalizeClass(L.value),tabindex:"0",onClick:I,onKeydown:oe},[r.renderSlot(j.$slots,"button-icon")],42,bA)),[[r.vShow,!r.unref(p)(j.hideNavigation,j.type)]]):r.createCommentVNode("",!0)],46,vA)}}}),wA=["data-dp-mobile"],eu=r.defineComponent({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean},collapse:{type:Boolean},isMobile:{type:Boolean}},setup(e){const t=e,n=r.computed(()=>t.multiCalendars>0?[...Array(t.multiCalendars).keys()]:[0]),a=r.computed(()=>({dp__instance_calendar:t.multiCalendars>0}));return(o,i)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass({dp__menu_inner:!o.stretch,"dp--menu--inner-stretched":o.stretch,dp__flex_display:o.multiCalendars>0,"dp--flex-display-collapsed":o.collapse}),"data-dp-mobile":o.isMobile},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.value,(s,l)=>(r.openBlock(),r.createElementBlock("div",{key:s,class:r.normalizeClass(a.value)},[r.renderSlot(o.$slots,"default",{instance:s,index:l})],2))),128))],10,wA))}}),kA=["data-dp-element","aria-label","aria-disabled"],as=r.defineComponent({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},elName:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const n=t,a=r.ref(null);return r.onMounted(()=>n("set-ref",a)),(o,i)=>(r.openBlock(),r.createElementBlock("button",{ref_key:"elRef",ref:a,type:"button","data-dp-element":o.elName,class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":o.ariaLabel,"aria-disabled":o.disabled||void 0,onClick:i[0]||(i[0]=s=>o.$emit("activate")),onKeydown:i[1]||(i[1]=s=>r.unref(mn)(s,()=>o.$emit("activate"),!0))},[r.createElementVNode("span",{class:r.normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:o.disabled}])},[r.renderSlot(o.$slots,"default")],2)],40,kA))}}),_A=["aria-label","data-test-id"],Gy=r.defineComponent({__name:"YearModePicker",props:{...ur,showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:()=>!1}},emits:["toggle-year-picker","year-select","handle-year"],setup(e,{emit:t}){const n=t,a=e,{showRightIcon:o,showLeftIcon:i}=nu(),{defaultedConfig:s,defaultedMultiCalendars:l,defaultedAriaLabels:c,defaultedTransitions:u,defaultedUI:d}=Et(a),{showTransition:f,transitionName:p}=Vs(u),m=r.ref(!1),g=(b=!1,E)=>{m.value=!m.value,n("toggle-year-picker",{flow:b,show:E})},y=b=>{m.value=!1,n("year-select",b)},w=(b=!1)=>{n("handle-year",b)};return(b,E)=>{var _,v,x,C,P;return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",{class:r.normalizeClass(["dp--year-mode-picker",{"dp--hidden-el":m.value}])},[r.unref(i)(r.unref(l),e.instance)?(r.openBlock(),r.createBlock(as,{key:0,ref:"mpPrevIconRef","aria-label":(_=r.unref(c))==null?void 0:_.prevYear,disabled:e.isDisabled(!1),class:r.normalizeClass((v=r.unref(d))==null?void 0:v.navBtnPrev),onActivate:E[0]||(E[0]=O=>w(!1))},{default:r.withCtx(()=>[b.$slots["arrow-left"]?r.renderSlot(b.$slots,"arrow-left",{key:0}):r.createCommentVNode("",!0),b.$slots["arrow-left"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(zp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):r.createCommentVNode("",!0),r.createElementVNode("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":`${e.year}-${(x=r.unref(c))==null?void 0:x.openYearsOverlay}`,"data-test-id":`year-mode-btn-${e.instance}`,onClick:E[1]||(E[1]=()=>g(!1)),onKeydown:E[2]||(E[2]=r.withKeys(()=>g(!1),["enter"]))},[b.$slots.year?r.renderSlot(b.$slots,"year",{key:0,year:e.year}):r.createCommentVNode("",!0),b.$slots.year?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(e.year),1)],64))],40,_A),r.unref(o)(r.unref(l),e.instance)?(r.openBlock(),r.createBlock(as,{key:1,ref:"mpNextIconRef","aria-label":(C=r.unref(c))==null?void 0:C.nextYear,disabled:e.isDisabled(!0),class:r.normalizeClass((P=r.unref(d))==null?void 0:P.navBtnNext),onActivate:E[3]||(E[3]=O=>w(!0))},{default:r.withCtx(()=>[b.$slots["arrow-right"]?r.renderSlot(b.$slots,"arrow-right",{key:0}):r.createCommentVNode("",!0),b.$slots["arrow-right"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(Vp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):r.createCommentVNode("",!0)],2),r.createVNode(r.Transition,{name:r.unref(p)(e.showYearPicker),css:r.unref(f)},{default:r.withCtx(()=>{var O,A;return[e.showYearPicker?(r.openBlock(),r.createBlock(zs,{key:0,items:e.items,"text-input":b.textInput,"esc-close":b.escClose,config:b.config,"is-last":b.autoApply&&!r.unref(s).keepActionRow,"hide-navigation":b.hideNavigation,"aria-labels":b.ariaLabels,"overlay-label":(A=(O=r.unref(c))==null?void 0:O.yearPicker)==null?void 0:A.call(O,!0),type:"year",onToggle:g,onSelected:E[4]||(E[4]=L=>y(L))},r.createSlots({"button-icon":r.withCtx(()=>[b.$slots["calendar-icon"]?r.renderSlot(b.$slots,"calendar-icon",{key:0}):r.createCommentVNode("",!0),b.$slots["calendar-icon"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(Ai),{key:1}))]),_:2},[b.$slots["year-overlay-value"]?{name:"item",fn:r.withCtx(({item:L})=>[r.renderSlot(b.$slots,"year-overlay-value",{text:L.text,value:L.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation","aria-labels","overlay-label"])):r.createCommentVNode("",!0)]}),_:3},8,["name","css"])],64)}}}),Kp=(e,t,n)=>{if(t.value&&Array.isArray(t.value))if(t.value.some(a=>Xe(e,a))){const a=t.value.filter(o=>!Xe(o,e));t.value=a.length?a:null}else(n&&+n>t.value.length||!n)&&t.value.push(e);else t.value=[e]},Xp=(e,t,n)=>{let a=e.value?e.value.slice():[];return a.length===2&&a[1]!==null&&(a=[]),a.length?(Mt(t,a[0])?a.unshift(t):a[1]=t,n("range-end",t)):(a=[t],n("range-start",t)),a},tu=(e,t,n,a)=>{e&&(e[0]&&e[1]&&n&&t("auto-apply"),e[0]&&!e[1]&&a&&n&&t("auto-apply"))},Ky=e=>{Array.isArray(e.value)&&e.value.length<=2&&e.range?e.modelValue.value=e.value.map(t=>Cn(me(t),e.timezone)):Array.isArray(e.value)||(e.modelValue.value=Cn(me(e.value),e.timezone))},Xy=(e,t,n,a)=>Array.isArray(t.value)&&(t.value.length===2||t.value.length===1&&a.value.partialRange)?a.value.fixedStart&&(Lt(e,t.value[0])||Xe(e,t.value[0]))?[t.value[0],e]:a.value.fixedEnd&&(Mt(e,t.value[1])||Xe(e,t.value[1]))?[e,t.value[1]]:(n("invalid-fixed-range",e),t.value):[],Jy=({multiCalendars:e,range:t,highlight:n,propDates:a,calendars:o,modelValue:i,props:s,filters:l,year:c,month:u,emit:d})=>{const f=r.computed(()=>Wp(s.yearRange,s.locale,s.reverseYears)),p=r.ref([!1]),m=r.computed(()=>(L,U)=>{const z=ht(Qn(new Date),{month:u.value(L),year:c.value(L)}),R=U?by(z):bs(z);return Uy(R,a.value.maxDate,a.value.minDate,s.preventMinMaxNavigation,U)}),g=()=>Array.isArray(i.value)&&e.value.solo&&i.value[1],y=()=>{for(let L=0;L<e.value.count;L++)if(L===0)o.value[L]=o.value[0];else if(L===e.value.count-1&&g())o.value[L]={month:Ke(i.value[1]),year:Fe(i.value[1])};else{const U=ht(me(),o.value[L-1]);o.value[L]={month:Ke(U),year:Fe(Op(U,1))}}},w=L=>{if(!L)return y();const U=ht(me(),o.value[L]);return o.value[0].year=Fe(Ny(U,e.value.count-1)),y()},b=(L,U)=>{const z=cT(U,L);return t.value.showLastInRange&&z>1?U:L},E=L=>s.focusStartDate||e.value.solo?L[0]:L[1]?b(L[0],L[1]):L[0],_=()=>{if(i.value){const L=Array.isArray(i.value)?E(i.value):i.value;o.value[0]={month:Ke(L),year:Fe(L)}}},v=()=>{_(),e.value.count&&y()};r.watch(i,(L,U)=>{s.isTextInputDate&&JSON.stringify(L??{})!==JSON.stringify(U??{})&&v()}),r.onMounted(()=>{v()});const x=(L,U)=>{o.value[U].year=L,d("update-month-year",{instance:U,year:L,month:o.value[U].month}),e.value.count&&!e.value.solo&&w(U)},C=r.computed(()=>L=>fi(f.value,U=>{var z;const R=c.value(L)===U.value,I=ws(U.value,pi(a.value.minDate),pi(a.value.maxDate))||((z=l.value.years)==null?void 0:z.includes(c.value(L))),B=Gp(n.value,U.value);return{active:R,disabled:I,highlighted:B}})),P=(L,U)=>{x(L,U),A(U)},O=(L,U=!1)=>{if(!m.value(L,U)){const z=U?c.value(L)+1:c.value(L)-1;x(z,L)}},A=(L,U=!1,z)=>{U||d("reset-flow"),z!==void 0?p.value[L]=z:p.value[L]=!p.value[L],p.value[L]?d("overlay-toggle",{open:!0,overlay:ln.year}):(d("overlay-closed"),d("overlay-toggle",{open:!1,overlay:ln.year}))};return{isDisabled:m,groupedYears:C,showYearPicker:p,selectYear:x,toggleYearPicker:A,handleYearSelect:P,handleYear:O}},SA=(e,t)=>{const{defaultedMultiCalendars:n,defaultedAriaLabels:a,defaultedTransitions:o,defaultedConfig:i,defaultedRange:s,defaultedHighlight:l,propDates:c,defaultedTz:u,defaultedFilters:d,defaultedMultiDates:f}=Et(e),p=()=>{e.isTextInputDate&&v(Fe(me(e.startDate)),0)},{modelValue:m,year:g,month:y,calendars:w}=Fs(e,t,p),b=r.computed(()=>By(e.formatLocale,e.locale,e.monthNameFormat)),E=r.ref(null),{checkMinMaxRange:_}=Ba(e),{selectYear:v,groupedYears:x,showYearPicker:C,toggleYearPicker:P,handleYearSelect:O,handleYear:A,isDisabled:L}=Jy({modelValue:m,multiCalendars:n,range:s,highlight:l,calendars:w,year:g,propDates:c,month:y,filters:d,props:e,emit:t});r.onMounted(()=>{e.startDate&&(m.value&&e.focusStartDate||!m.value)&&v(Fe(me(e.startDate)),0)});const U=W=>W?{month:Ke(W),year:Fe(W)}:{month:null,year:null},z=()=>m.value?Array.isArray(m.value)?m.value.map(W=>U(W)):U(m.value):U(),R=(W,Y)=>{const H=w.value[W],T=z();return Array.isArray(T)?T.some(J=>J.year===H?.year&&J.month===Y):H?.year===T.year&&Y===T.month},I=(W,Y,H)=>{var T,J;const le=z();return Array.isArray(le)?g.value(Y)===((T=le[H])==null?void 0:T.year)&&W===((J=le[H])==null?void 0:J.month):!1},B=(W,Y)=>{if(s.value.enabled){const H=z();if(Array.isArray(m.value)&&Array.isArray(H)){const T=I(W,Y,0)||I(W,Y,1),J=Fr(Qn(me()),W,g.value(Y));return ks(m.value,E.value,J)&&!T}return!1}return!1},M=r.computed(()=>W=>fi(b.value,Y=>{var H;const T=R(W,Y.value),J=ws(Y.value,Vy(g.value(W),c.value.minDate),Fy(g.value(W),c.value.maxDate))||qP(c.value.disabledDates,g.value(W),Y.value)||((H=d.value.months)==null?void 0:H.includes(Y.value))||!YP(c.value.allowedDates,g.value(W),Y.value),le=B(Y.value,W),Oe=qy(l.value,Y.value,g.value(W));return{active:T,disabled:J,isBetween:le,highlighted:Oe}})),$=(W,Y)=>Fr(Qn(me()),W,g.value(Y)),K=(W,Y)=>{const H=m.value?m.value:Qn(new Date);m.value=Fr(H,W,g.value(Y)),t("auto-apply"),t("update-flow-step")},V=(W,Y)=>{const H=$(W,Y);s.value.fixedEnd||s.value.fixedStart?m.value=Xy(H,m,t,s):m.value?_(H,m.value)&&(m.value=Xp(m,$(W,Y),t)):m.value=[$(W,Y)],r.nextTick().then(()=>{tu(m.value,t,e.autoApply,e.modelAuto)})},Z=(W,Y)=>{Kp($(W,Y),m,f.value.limit),t("auto-apply",!0)},q=(W,Y)=>(w.value[Y].month=W,j(Y,w.value[Y].year,W),f.value.enabled?Z(W,Y):s.value.enabled?V(W,Y):K(W,Y)),oe=(W,Y)=>{v(W,Y),j(Y,W,null)},j=(W,Y,H)=>{let T=H;if(!T&&T!==0){const J=z();T=Array.isArray(J)?J[W].month:J.month}t("update-month-year",{instance:W,year:Y,month:T})};return{groupedMonths:M,groupedYears:x,year:g,isDisabled:L,defaultedMultiCalendars:n,defaultedAriaLabels:a,defaultedTransitions:o,defaultedConfig:i,showYearPicker:C,modelValue:m,presetDate:(W,Y)=>{Ky({value:W,modelValue:m,range:s.value.enabled,timezone:Y?void 0:u.value.timezone}),t("auto-apply")},setHoverDate:(W,Y)=>{E.value=$(W,Y)},selectMonth:q,selectYear:oe,toggleYearPicker:P,handleYearSelect:O,handleYear:A,getModelMonthYear:z}},CA=r.defineComponent({compatConfig:{MODE:3},__name:"MonthPicker",props:{...ur},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","update-flow-step","mount","invalid-fixed-range","overlay-toggle"],setup(e,{expose:t,emit:n}){const a=n,o=r.useSlots(),i=In(o,"yearMode"),s=e;r.onMounted(()=>{s.shadow||a("mount",null)});const{groupedMonths:l,groupedYears:c,year:u,isDisabled:d,defaultedMultiCalendars:f,defaultedConfig:p,showYearPicker:m,modelValue:g,presetDate:y,setHoverDate:w,selectMonth:b,selectYear:E,toggleYearPicker:_,handleYearSelect:v,handleYear:x,getModelMonthYear:C}=SA(s,a);return t({getSidebarProps:()=>({modelValue:g,year:u,getModelMonthYear:C,selectMonth:b,selectYear:E,handleYear:x}),presetDate:y,toggleYearPicker:P=>_(0,P)}),(P,O)=>(r.openBlock(),r.createBlock(eu,{"multi-calendars":r.unref(f).count,collapse:P.collapse,stretch:"","is-mobile":P.isMobile},{default:r.withCtx(({instance:A})=>[P.$slots["top-extra"]?r.renderSlot(P.$slots,"top-extra",{key:0,value:P.internalModelValue}):r.createCommentVNode("",!0),P.$slots["month-year"]?r.renderSlot(P.$slots,"month-year",r.normalizeProps(r.mergeProps({key:1},{year:r.unref(u),months:r.unref(l)(A),years:r.unref(c)(A),selectMonth:r.unref(b),selectYear:r.unref(E),instance:A}))):(r.openBlock(),r.createBlock(zs,{key:2,items:r.unref(l)(A),"arrow-navigation":P.arrowNavigation,"is-last":P.autoApply&&!r.unref(p).keepActionRow,"esc-close":P.escClose,height:r.unref(p).modeHeight,config:P.config,"no-overlay-focus":!!(P.noOverlayFocus||P.textInput),"use-relative":"",type:"month",onSelected:L=>r.unref(b)(L,A),onHoverValue:L=>r.unref(w)(L,A)},r.createSlots({header:r.withCtx(()=>[r.createVNode(Gy,r.mergeProps(P.$props,{items:r.unref(c)(A),instance:A,"show-year-picker":r.unref(m)[A],year:r.unref(u)(A),"is-disabled":L=>r.unref(d)(A,L),onHandleYear:L=>r.unref(x)(A,L),onYearSelect:L=>r.unref(v)(L,A),onToggleYearPicker:L=>r.unref(_)(A,L?.flow,L?.show)}),r.createSlots({_:2},[r.renderList(r.unref(i),(L,U)=>({name:L,fn:r.withCtx(z=>[r.renderSlot(P.$slots,L,r.normalizeProps(r.guardReactiveProps(z)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[P.$slots["month-overlay-value"]?{name:"item",fn:r.withCtx(({item:L})=>[r.renderSlot(P.$slots,"month-overlay-value",{text:L.text,value:L.value})]),key:"0"}:void 0]),1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars","collapse","is-mobile"]))}}),xA=(e,t)=>{const n=()=>{e.isTextInputDate&&(d.value=Fe(me(e.startDate)))},{modelValue:a}=Fs(e,t,n),o=r.ref(null),{defaultedHighlight:i,defaultedMultiDates:s,defaultedFilters:l,defaultedRange:c,propDates:u}=Et(e),d=r.ref();r.onMounted(()=>{e.startDate&&(a.value&&e.focusStartDate||!a.value)&&(d.value=Fe(me(e.startDate)))});const f=b=>Array.isArray(a.value)?a.value.some(E=>Fe(E)===b):a.value?Fe(a.value)===b:!1,p=b=>c.value.enabled&&Array.isArray(a.value)?ks(a.value,o.value,w(b)):!1,m=b=>u.value.allowedDates instanceof Map?u.value.allowedDates.size?u.value.allowedDates.has(`${b}`):!1:!0,g=b=>u.value.disabledDates instanceof Map?u.value.disabledDates.size?u.value.disabledDates.has(`${b}`):!1:!0,y=r.computed(()=>fi(Wp(e.yearRange,e.locale,e.reverseYears),b=>{const E=f(b.value),_=ws(b.value,pi(u.value.minDate),pi(u.value.maxDate))||l.value.years.includes(b.value)||!m(b.value)||g(b.value),v=p(b.value)&&!E,x=Gp(i.value,b.value);return{active:E,disabled:_,isBetween:v,highlighted:x}})),w=b=>_r(Qn(bs(new Date)),b);return{groupedYears:y,modelValue:a,focusYear:d,setHoverValue:b=>{o.value=_r(Qn(new Date),b)},selectYear:b=>{var E;if(t("update-month-year",{instance:0,year:b}),s.value.enabled)return a.value?Array.isArray(a.value)&&(((E=a.value)==null?void 0:E.map(_=>Fe(_))).includes(b)?a.value=a.value.filter(_=>Fe(_)!==b):a.value.push(_r(Gt(me()),b))):a.value=[_r(Gt(bs(me())),b)],t("auto-apply",!0);c.value.enabled?(a.value=Xp(a,w(b),t),r.nextTick().then(()=>{tu(a.value,t,e.autoApply,e.modelAuto)})):(a.value=w(b),t("auto-apply"))}}},EA=r.defineComponent({compatConfig:{MODE:3},__name:"YearPicker",props:{...ur},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(e,{expose:t,emit:n}){const a=n,o=e,{groupedYears:i,modelValue:s,focusYear:l,selectYear:c,setHoverValue:u}=xA(o,a),{defaultedConfig:d}=Et(o);return t({getSidebarProps:()=>({modelValue:s,selectYear:c})}),(f,p)=>(r.openBlock(),r.createElementBlock("div",null,[f.$slots["top-extra"]?r.renderSlot(f.$slots,"top-extra",{key:0,value:f.internalModelValue}):r.createCommentVNode("",!0),f.$slots["month-year"]?r.renderSlot(f.$slots,"month-year",r.normalizeProps(r.mergeProps({key:1},{years:r.unref(i),selectYear:r.unref(c)}))):(r.openBlock(),r.createBlock(zs,{key:2,items:r.unref(i),"is-last":f.autoApply&&!r.unref(d).keepActionRow,height:r.unref(d).modeHeight,config:f.config,"no-overlay-focus":!!(f.noOverlayFocus||f.textInput),"focus-value":r.unref(l),type:"year","use-relative":"",onSelected:r.unref(c),onHoverValue:r.unref(u)},r.createSlots({_:2},[f.$slots["year-overlay-value"]?{name:"item",fn:r.withCtx(({item:m})=>[r.renderSlot(f.$slots,"year-overlay-value",{text:m.text,value:m.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),TA={key:0,class:"dp__time_input"},PA=["data-compact","data-collapsed"],AA=["data-test-id","aria-label","onKeydown","onClick","onMousedown"],IA=["aria-label","disabled","data-test-id","onKeydown","onClick"],MA=["data-test-id","aria-label","onKeydown","onClick","onMousedown"],NA={key:0},OA=["aria-label","data-compact"],BA=r.defineComponent({compatConfig:{MODE:3},__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...ur},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","overlay-opened","am-pm-change"],setup(e,{expose:t,emit:n}){const a=n,o=e,{setTimePickerElements:i,setTimePickerBackRef:s}=Oa(),{defaultedAriaLabels:l,defaultedTransitions:c,defaultedFilters:u,defaultedConfig:d,defaultedRange:f,defaultedMultiCalendars:p}=Et(o),{transitionName:m,showTransition:g}=Vs(c),y=r.reactive({hours:!1,minutes:!1,seconds:!1}),w=r.ref("AM"),b=r.ref(null),E=r.ref([]),_=r.ref(),v=r.ref(!1);r.onMounted(()=>{a("mounted")});const x=D=>ht(new Date,{hours:D.hours,minutes:D.minutes,seconds:o.enableSeconds?D.seconds:0,milliseconds:0}),C=r.computed(()=>D=>V(D,o[D])||O(D,o[D])),P=r.computed(()=>({hours:o.hours,minutes:o.minutes,seconds:o.seconds})),O=(D,de)=>f.value.enabled&&!f.value.disableTimeRangeValidation?!o.validateTime(D,de):!1,A=(D,de)=>{if(f.value.enabled&&!f.value.disableTimeRangeValidation){const fe=de?+o[`${D}Increment`]:-+o[`${D}Increment`],ce=o[D]+fe;return!o.validateTime(D,ce)}return!1},L=r.computed(()=>D=>!W(+o[D]+ +o[`${D}Increment`],D)||A(D,!0)),U=r.computed(()=>D=>!W(+o[D]-+o[`${D}Increment`],D)||A(D,!1)),z=(D,de)=>py(ht(me(),D),de),R=(D,de)=>EP(ht(me(),D),de),I=r.computed(()=>({dp__time_col:!0,dp__time_col_block:!o.timePickerInline,dp__time_col_reg_block:!o.enableSeconds&&o.is24&&!o.timePickerInline,dp__time_col_reg_inline:!o.enableSeconds&&o.is24&&o.timePickerInline,dp__time_col_reg_with_button:!o.enableSeconds&&!o.is24,dp__time_col_sec:o.enableSeconds&&o.is24,dp__time_col_sec_with_button:o.enableSeconds&&!o.is24})),B=r.computed(()=>o.timePickerInline&&f.value.enabled&&!p.value.count),M=r.computed(()=>{const D=[{type:"hours"}];return o.enableMinutes&&D.push({type:"",separator:!0},{type:"minutes"}),o.enableSeconds&&D.push({type:"",separator:!0},{type:"seconds"}),D}),$=r.computed(()=>M.value.filter(D=>!D.separator)),K=r.computed(()=>D=>{if(D==="hours"){const de=Oe(+o.hours);return{text:de<10?`0${de}`:`${de}`,value:de}}return{text:o[D]<10?`0${o[D]}`:`${o[D]}`,value:o[D]}}),V=(D,de)=>{var fe;if(!o.disabledTimesConfig)return!1;const ce=o.disabledTimesConfig(o.order,D==="hours"?de:void 0);return ce[D]?!!((fe=ce[D])!=null&&fe.includes(de)):!0},Z=(D,de)=>de!=="hours"||w.value==="AM"?D:D+12,q=D=>{const de=o.is24?24:12,fe=D==="hours"?de:60,ce=+o[`${D}GridIncrement`],Ae=D==="hours"&&!o.is24?ce:0,pe=[];for(let Ie=Ae;Ie<fe;Ie+=ce)pe.push({value:o.is24?Ie:Z(Ie,D),text:Ie<10?`0${Ie}`:`${Ie}`});return D==="hours"&&!o.is24&&pe.unshift({value:w.value==="PM"?12:0,text:"12"}),fi(pe,Ie=>({active:!1,disabled:u.value.times[D].includes(Ie.value)||!W(Ie.value,D)||V(D,Ie.value)||O(D,Ie.value)}))},oe=D=>D>=0?D:59,j=D=>D>=0?D:23,W=(D,de)=>{const fe=o.minTime?x(nd(o.minTime)):null,ce=o.maxTime?x(nd(o.maxTime)):null,Ae=x(nd(P.value,de,de==="minutes"||de==="seconds"?oe(D):j(D)));return fe&&ce?(ui(Ae,ce)||Wo(Ae,ce))&&(mo(Ae,fe)||Wo(Ae,fe)):fe?mo(Ae,fe)||Wo(Ae,fe):ce?ui(Ae,ce)||Wo(Ae,ce):!0},Y=D=>o[`no${D[0].toUpperCase()+D.slice(1)}Overlay`],H=D=>{Y(D)||(y[D]=!y[D],y[D]?(v.value=!0,a("overlay-opened",D)):(v.value=!1,a("overlay-closed",D)))},T=D=>D==="hours"?Kr:D==="minutes"?ka:ci,J=()=>{_.value&&clearTimeout(_.value)},le=(D,de=!0,fe)=>{const ce=de?z:R,Ae=de?+o[`${D}Increment`]:-+o[`${D}Increment`];W(+o[D]+Ae,D)&&a(`update:${D}`,T(D)(ce({[D]:+o[D]},{[D]:+o[`${D}Increment`]}))),!(fe!=null&&fe.keyboard)&&d.value.timeArrowHoldThreshold&&(_.value=setTimeout(()=>{le(D,de)},d.value.timeArrowHoldThreshold))},Oe=D=>o.is24?D:(D>=12?w.value="PM":w.value="AM",OP(D)),ee=()=>{w.value==="PM"?(w.value="AM",a("update:hours",o.hours-12)):(w.value="PM",a("update:hours",o.hours+12)),a("am-pm-change",w.value)},Te=D=>{y[D]=!0},ae=(D,de,fe)=>{if(D&&o.arrowNavigation){Array.isArray(E.value[de])?E.value[de][fe]=D:E.value[de]=[D];const ce=E.value.reduce((Ae,pe)=>pe.map((Ie,xe)=>[...Ae[xe]||[],pe[xe]]),[]);s(o.closeTimePickerBtn),b.value&&(ce[1]=ce[1].concat(b.value)),i(ce,o.order)}},ue=(D,de)=>(H(D),a(`update:${D}`,de));return t({openChildCmp:Te}),(D,de)=>{var fe;return D.disabled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",TA,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(M.value,(ce,Ae)=>{var pe,Ie,xe;return r.openBlock(),r.createElementBlock("div",{key:Ae,class:r.normalizeClass(I.value),"data-compact":B.value&&!D.enableSeconds,"data-collapsed":B.value&&D.enableSeconds},[ce.separator?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[v.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(":")],64))],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createElementVNode("button",{ref_for:!0,ref:X=>ae(X,Ae,0),type:"button",class:r.normalizeClass({dp__btn:!0,dp__inc_dec_button:!D.timePickerInline,dp__inc_dec_button_inline:D.timePickerInline,dp__tp_inline_btn_top:D.timePickerInline,dp__inc_dec_button_disabled:L.value(ce.type),"dp--hidden-el":v.value}),"data-test-id":`${ce.type}-time-inc-btn-${o.order}`,"aria-label":(pe=r.unref(l))==null?void 0:pe.incrementValue(ce.type),tabindex:"0",onKeydown:X=>r.unref(mn)(X,()=>le(ce.type,!0,{keyboard:!0}),!0),onClick:X=>r.unref(d).timeArrowHoldThreshold?void 0:le(ce.type,!0),onMousedown:X=>r.unref(d).timeArrowHoldThreshold?le(ce.type,!0):void 0,onMouseup:J},[o.timePickerInline?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[D.$slots["tp-inline-arrow-up"]?r.renderSlot(D.$slots,"tp-inline-arrow-up",{key:0}):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[de[2]||(de[2]=r.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),de[3]||(de[3]=r.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[D.$slots["arrow-up"]?r.renderSlot(D.$slots,"arrow-up",{key:0}):r.createCommentVNode("",!0),D.$slots["arrow-up"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(jp),{key:1}))],64))],42,AA),r.createElementVNode("button",{ref_for:!0,ref:X=>ae(X,Ae,1),type:"button","aria-label":`${K.value(ce.type).text}-${(Ie=r.unref(l))==null?void 0:Ie.openTpOverlay(ce.type)}`,class:r.normalizeClass({dp__time_display:!0,dp__time_display_block:!D.timePickerInline,dp__time_display_inline:D.timePickerInline,"dp--time-invalid":C.value(ce.type),"dp--time-overlay-btn":!C.value(ce.type),"dp--hidden-el":v.value}),disabled:Y(ce.type),tabindex:"0","data-test-id":`${ce.type}-toggle-overlay-btn-${o.order}`,onKeydown:X=>r.unref(mn)(X,()=>H(ce.type),!0),onClick:X=>H(ce.type)},[D.$slots[ce.type]?r.renderSlot(D.$slots,ce.type,{key:0,text:K.value(ce.type).text,value:K.value(ce.type).value}):r.createCommentVNode("",!0),D.$slots[ce.type]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(K.value(ce.type).text),1)],64))],42,IA),r.createElementVNode("button",{ref_for:!0,ref:X=>ae(X,Ae,2),type:"button",class:r.normalizeClass({dp__btn:!0,dp__inc_dec_button:!D.timePickerInline,dp__inc_dec_button_inline:D.timePickerInline,dp__tp_inline_btn_bottom:D.timePickerInline,dp__inc_dec_button_disabled:U.value(ce.type),"dp--hidden-el":v.value}),"data-test-id":`${ce.type}-time-dec-btn-${o.order}`,"aria-label":(xe=r.unref(l))==null?void 0:xe.decrementValue(ce.type),tabindex:"0",onKeydown:X=>r.unref(mn)(X,()=>le(ce.type,!1,{keyboard:!0}),!0),onClick:X=>r.unref(d).timeArrowHoldThreshold?void 0:le(ce.type,!1),onMousedown:X=>r.unref(d).timeArrowHoldThreshold?le(ce.type,!1):void 0,onMouseup:J},[o.timePickerInline?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[D.$slots["tp-inline-arrow-down"]?r.renderSlot(D.$slots,"tp-inline-arrow-down",{key:0}):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[de[4]||(de[4]=r.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),de[5]||(de[5]=r.createElementVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[D.$slots["arrow-down"]?r.renderSlot(D.$slots,"arrow-down",{key:0}):r.createCommentVNode("",!0),D.$slots["arrow-down"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(Hp),{key:1}))],64))],42,MA)],64))],10,PA)}),128)),D.is24?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",NA,[D.$slots["am-pm-button"]?r.renderSlot(D.$slots,"am-pm-button",{key:0,toggle:ee,value:w.value}):r.createCommentVNode("",!0),D.$slots["am-pm-button"]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:1,ref_key:"amPmButton",ref:b,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(fe=r.unref(l))==null?void 0:fe.amPmButton,tabindex:"0","data-compact":B.value,onClick:ee,onKeydown:de[0]||(de[0]=ce=>r.unref(mn)(ce,()=>ee(),!0))},r.toDisplayString(w.value),41,OA))])),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList($.value,(ce,Ae)=>(r.openBlock(),r.createBlock(r.Transition,{key:Ae,name:r.unref(m)(y[ce.type]),css:r.unref(g)},{default:r.withCtx(()=>{var pe,Ie;return[y[ce.type]?(r.openBlock(),r.createBlock(zs,{key:0,items:q(ce.type),"is-last":D.autoApply&&!r.unref(d).keepActionRow,"esc-close":D.escClose,type:ce.type,"text-input":D.textInput,config:D.config,"arrow-navigation":D.arrowNavigation,"aria-labels":D.ariaLabels,"overlay-label":(Ie=(pe=r.unref(l)).timeOverlay)==null?void 0:Ie.call(pe,ce.type),onSelected:xe=>ue(ce.type,xe),onToggle:xe=>H(ce.type),onResetFlow:de[1]||(de[1]=xe=>D.$emit("reset-flow"))},r.createSlots({"button-icon":r.withCtx(()=>[D.$slots["clock-icon"]?r.renderSlot(D.$slots,"clock-icon",{key:0}):r.createCommentVNode("",!0),D.$slots["clock-icon"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(D.timePickerInline?r.unref(Ai):r.unref(Fp)),{key:1}))]),_:2},[D.$slots[`${ce.type}-overlay-value`]?{name:"item",fn:r.withCtx(({item:xe})=>[r.renderSlot(D.$slots,`${ce.type}-overlay-value`,{text:xe.text,value:xe.value})]),key:"0"}:void 0,D.$slots[`${ce.type}-overlay-header`]?{name:"header",fn:r.withCtx(()=>[r.renderSlot(D.$slots,`${ce.type}-overlay-header`,{toggle:()=>H(ce.type)})]),key:"1"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","aria-labels","overlay-label","onSelected","onToggle"])):r.createCommentVNode("",!0)]}),_:2},1032,["name","css"]))),128))]))}}}),LA=["data-dp-mobile"],DA=["aria-label","tabindex"],RA=["role","aria-label","tabindex"],$A=["aria-label"],Qy=r.defineComponent({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...ur},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const a=n,o=e,{buildMatrix:i,setTimePicker:s}=Oa(),l=r.useSlots(),{defaultedTransitions:c,defaultedAriaLabels:u,defaultedTextInput:d,defaultedConfig:f,defaultedRange:p}=Et(o),{transitionName:m,showTransition:g}=Vs(c),{hideNavigationButtons:y}=nu(),w=r.ref(null),b=r.ref(null),E=r.ref([]),_=r.ref(null),v=r.ref(!1);r.onMounted(()=>{a("mount"),!o.timePicker&&o.arrowNavigation?i([jt(w.value)],"time"):s(!0,o.timePicker)});const x=r.computed(()=>p.value.enabled&&o.modelAuto?Ly(o.internalModelValue):!0),C=r.ref(!1),P=V=>({hours:Array.isArray(o.hours)?o.hours[V]:o.hours,minutes:Array.isArray(o.minutes)?o.minutes[V]:o.minutes,seconds:Array.isArray(o.seconds)?o.seconds[V]:o.seconds}),O=r.computed(()=>{const V=[];if(p.value.enabled)for(let Z=0;Z<2;Z++)V.push(P(Z));else V.push(P(0));return V}),A=(V,Z=!1,q="")=>{Z||a("reset-flow"),C.value=V,a(V?"overlay-opened":"overlay-closed",ln.time),o.arrowNavigation&&s(V),r.nextTick(()=>{q!==""&&E.value[0]&&E.value[0].openChildCmp(q)})},L=r.computed(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:o.autoApply&&!f.value.keepActionRow})),U=In(l,"timePicker"),z=(V,Z,q)=>p.value.enabled?Z===0?[V,O.value[1][q]]:[O.value[0][q],V]:V,R=V=>{a("update:hours",V)},I=V=>{a("update:minutes",V)},B=V=>{a("update:seconds",V)},M=()=>{if(_.value&&!d.value.enabled&&!o.noOverlayFocus){const V=Dy(_.value);V&&V.focus({preventScroll:!0})}},$=V=>{v.value=!1,a("overlay-closed",V)},K=V=>{v.value=!0,a("overlay-opened",V)};return t({toggleTimePicker:A}),(V,Z)=>{var q;return r.openBlock(),r.createElementBlock("div",{class:"dp--tp-wrap","data-dp-mobile":V.isMobile},[!V.timePicker&&!V.timePickerInline?r.withDirectives((r.openBlock(),r.createElementBlock("button",{key:0,ref_key:"openTimePickerBtn",ref:w,type:"button",class:r.normalizeClass({...L.value,"dp--hidden-el":C.value}),"aria-label":(q=r.unref(u))==null?void 0:q.openTimePicker,tabindex:V.noOverlayFocus?void 0:0,"data-test-id":"open-time-picker-btn",onKeydown:Z[0]||(Z[0]=oe=>r.unref(mn)(oe,()=>A(!0))),onClick:Z[1]||(Z[1]=oe=>A(!0))},[V.$slots["clock-icon"]?r.renderSlot(V.$slots,"clock-icon",{key:0}):r.createCommentVNode("",!0),V.$slots["clock-icon"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(Fp),{key:1}))],42,DA)),[[r.vShow,!r.unref(y)(V.hideNavigation,"time")]]):r.createCommentVNode("",!0),r.createVNode(r.Transition,{name:r.unref(m)(C.value),css:r.unref(g)&&!V.timePickerInline},{default:r.withCtx(()=>{var oe,j;return[C.value||V.timePicker||V.timePickerInline?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"overlayRef",ref:_,role:V.timePickerInline?void 0:"dialog",class:r.normalizeClass({dp__overlay:!V.timePickerInline,"dp--overlay-absolute":!o.timePicker&&!V.timePickerInline,"dp--overlay-relative":o.timePicker}),style:r.normalizeStyle(V.timePicker?{height:`${r.unref(f).modeHeight}px`}:void 0),"aria-label":(oe=r.unref(u))==null?void 0:oe.timePicker,tabindex:V.timePickerInline?void 0:0},[r.createElementVNode("div",{class:r.normalizeClass(V.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[V.$slots["time-picker-overlay"]?r.renderSlot(V.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:R,setMinutes:I,setSeconds:B}):r.createCommentVNode("",!0),V.$slots["time-picker-overlay"]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(V.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(O.value,(W,Y)=>r.withDirectives((r.openBlock(),r.createBlock(BA,r.mergeProps({key:Y,ref_for:!0},{...V.$props,order:Y,hours:W.hours,minutes:W.minutes,seconds:W.seconds,closeTimePickerBtn:b.value,disabledTimesConfig:e.disabledTimesConfig,disabled:Y===0?r.unref(p).fixedStart:r.unref(p).fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:E,"validate-time":(H,T)=>e.validateTime(H,z(T,Y,H)),"onUpdate:hours":H=>R(z(H,Y,"hours")),"onUpdate:minutes":H=>I(z(H,Y,"minutes")),"onUpdate:seconds":H=>B(z(H,Y,"seconds")),onMounted:M,onOverlayClosed:$,onOverlayOpened:K,onAmPmChange:Z[2]||(Z[2]=H=>V.$emit("am-pm-change",H))}),r.createSlots({_:2},[r.renderList(r.unref(U),(H,T)=>({name:H,fn:r.withCtx(J=>[r.renderSlot(V.$slots,H,r.mergeProps({ref_for:!0},J))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[r.vShow,Y===0?!0:x.value]])),128))],2)),!V.timePicker&&!V.timePickerInline?r.withDirectives((r.openBlock(),r.createElementBlock("button",{key:2,ref_key:"closeTimePickerBtn",ref:b,type:"button",class:r.normalizeClass({...L.value,"dp--hidden-el":v.value}),"aria-label":(j=r.unref(u))==null?void 0:j.closeTimePicker,tabindex:"0",onKeydown:Z[3]||(Z[3]=W=>r.unref(mn)(W,()=>A(!1))),onClick:Z[4]||(Z[4]=W=>A(!1))},[V.$slots["calendar-icon"]?r.renderSlot(V.$slots,"calendar-icon",{key:0}):r.createCommentVNode("",!0),V.$slots["calendar-icon"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(Ai),{key:1}))],42,$A)),[[r.vShow,!r.unref(y)(V.hideNavigation,"time")]]):r.createCommentVNode("",!0)],2)],14,RA)):r.createCommentVNode("",!0)]}),_:3},8,["name","css"])],8,LA)}}}),Zy=(e,t,n,a)=>{const{defaultedRange:o}=Et(e),i=(_,v)=>Array.isArray(t[_])?t[_][v]:t[_],s=_=>e.enableSeconds?Array.isArray(t.seconds)?t.seconds[_]:t.seconds:0,l=(_,v)=>_?v!==void 0?ha(_,i("hours",v),i("minutes",v),s(v)):ha(_,t.hours,t.minutes,s()):My(me(),s(v)),c=(_,v)=>{t[_]=v},u=r.computed(()=>e.modelAuto&&o.value.enabled?Array.isArray(n.value)?n.value.length>1:!1:o.value.enabled),d=(_,v)=>{const x=Object.fromEntries(Object.keys(t).map(C=>C===_?[C,v]:[C,t[C]].slice()));if(u.value&&!o.value.disableTimeRangeValidation){const C=O=>n.value?ha(n.value[O],x.hours[O],x.minutes[O],x.seconds[O]):null,P=O=>Iy(n.value[O],0);return!(Xe(C(0),C(1))&&(mo(C(0),P(1))||ui(C(1),P(0))))}return!0},f=(_,v)=>{d(_,v)&&(c(_,v),a&&a())},p=_=>{f("hours",_)},m=_=>{f("minutes",_)},g=_=>{f("seconds",_)},y=(_,v,x,C)=>{v&&p(_),!v&&!x&&m(_),x&&g(_),n.value&&C(n.value)},w=_=>{if(_){const v=Array.isArray(_),x=v?[+_[0].hours,+_[1].hours]:+_.hours,C=v?[+_[0].minutes,+_[1].minutes]:+_.minutes,P=v?[+_[0].seconds,+_[1].seconds]:+_.seconds;c("hours",x),c("minutes",C),e.enableSeconds&&c("seconds",P)}},b=(_,v)=>{const x={hours:Array.isArray(t.hours)?t.hours[_]:t.hours,disabledArr:[]};return(v||v===0)&&(x.hours=v),Array.isArray(e.disabledTimes)&&(x.disabledArr=o.value.enabled&&Array.isArray(e.disabledTimes[_])?e.disabledTimes[_]:e.disabledTimes),x},E=r.computed(()=>(_,v)=>{var x;if(Array.isArray(e.disabledTimes)){const{disabledArr:C,hours:P}=b(_,v),O=C.filter(A=>+A.hours===P);return((x=O[0])==null?void 0:x.minutes)==="*"?{hours:[P],minutes:void 0,seconds:void 0}:{hours:[],minutes:O?.map(A=>+A.minutes)??[],seconds:O?.map(A=>A.seconds?+A.seconds:void 0)??[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:c,updateHours:p,updateMinutes:m,updateSeconds:g,getSetDateTime:l,updateTimeValues:y,getSecondsValue:s,assignStartTime:w,validateTime:d,disabledTimesConfig:E}},zA=(e,t)=>{const n=()=>{e.isTextInputDate&&v()},{modelValue:a,time:o}=Fs(e,t,n),{defaultedStartTime:i,defaultedRange:s,defaultedTz:l}=Et(e),{updateTimeValues:c,getSetDateTime:u,setTime:d,assignStartTime:f,disabledTimesConfig:p,validateTime:m}=Zy(e,o,a,g);function g(){t("update-flow-step")}const y=C=>{const{hours:P,minutes:O,seconds:A}=C;return{hours:+P,minutes:+O,seconds:A?+A:0}},w=()=>{if(e.startTime){if(Array.isArray(e.startTime)){const P=y(e.startTime[0]),O=y(e.startTime[1]);return[ht(me(),P),ht(me(),O)]}const C=y(e.startTime);return ht(me(),C)}return s.value.enabled?[null,null]:null},b=()=>{if(s.value.enabled){const[C,P]=w();a.value=[Cn(u(C,0),l.value.timezone),Cn(u(P,1),l.value.timezone)]}else a.value=Cn(u(w()),l.value.timezone)},E=C=>Array.isArray(C)?[oo(me(C[0])),oo(me(C[1]))]:[oo(C??me())],_=(C,P,O)=>{d("hours",C),d("minutes",P),d("seconds",e.enableSeconds?O:0)},v=()=>{const[C,P]=E(a.value);return s.value.enabled?_([C.hours,P.hours],[C.minutes,P.minutes],[C.seconds,P.seconds]):_(C.hours,C.minutes,C.seconds)};r.onMounted(()=>{if(!e.shadow)return f(i.value),a.value?v():b()});const x=()=>{Array.isArray(a.value)?a.value=a.value.map((C,P)=>C&&u(C,P)):a.value=u(a.value),t("time-update")};return{modelValue:a,time:o,disabledTimesConfig:p,updateTime:(C,P=!0,O=!1)=>{c(C,P,O,x)},validateTime:m}},VA=r.defineComponent({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{...ur},emits:["update:internal-model-value","time-update","am-pm-change","mount","reset-flow","update-flow-step","overlay-toggle"],setup(e,{expose:t,emit:n}){const a=n,o=e,i=r.useSlots(),s=In(i,"timePicker"),l=r.ref(null),{time:c,modelValue:u,disabledTimesConfig:d,updateTime:f,validateTime:p}=zA(o,a);return r.onMounted(()=>{o.shadow||a("mount",null)}),t({getSidebarProps:()=>({modelValue:u,time:c,updateTime:f}),toggleTimePicker:(m,g=!1,y="")=>{var w;(w=l.value)==null||w.toggleTimePicker(m,g,y)}}),(m,g)=>(r.openBlock(),r.createBlock(eu,{"multi-calendars":0,stretch:"","is-mobile":m.isMobile},{default:r.withCtx(()=>[r.createVNode(Qy,r.mergeProps({ref_key:"tpRef",ref:l},m.$props,{hours:r.unref(c).hours,minutes:r.unref(c).minutes,seconds:r.unref(c).seconds,"internal-model-value":m.internalModelValue,"disabled-times-config":r.unref(d),"validate-time":r.unref(p),"onUpdate:hours":g[0]||(g[0]=y=>r.unref(f)(y)),"onUpdate:minutes":g[1]||(g[1]=y=>r.unref(f)(y,!1)),"onUpdate:seconds":g[2]||(g[2]=y=>r.unref(f)(y,!1,!0)),onAmPmChange:g[3]||(g[3]=y=>m.$emit("am-pm-change",y)),onResetFlow:g[4]||(g[4]=y=>m.$emit("reset-flow")),onOverlayClosed:g[5]||(g[5]=y=>m.$emit("overlay-toggle",{open:!1,overlay:y})),onOverlayOpened:g[6]||(g[6]=y=>m.$emit("overlay-toggle",{open:!0,overlay:y}))}),r.createSlots({_:2},[r.renderList(r.unref(s),(y,w)=>({name:y,fn:r.withCtx(b=>[r.renderSlot(m.$slots,y,r.normalizeProps(r.guardReactiveProps(b)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])]),_:3},8,["is-mobile"]))}}),FA={class:"dp--header-wrap"},jA={key:0,class:"dp__month_year_wrap"},HA={key:0},UA={class:"dp__month_year_wrap"},WA=["data-dp-element","aria-label","data-test-id","onClick","onKeydown"],qA=r.defineComponent({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},...ur},emits:["update-month-year","mount","reset-flow","overlay-closed","overlay-opened"],setup(e,{expose:t,emit:n}){const a=n,o=e,{defaultedTransitions:i,defaultedAriaLabels:s,defaultedMultiCalendars:l,defaultedFilters:c,defaultedConfig:u,defaultedHighlight:d,propDates:f,defaultedUI:p}=Et(o),{transitionName:m,showTransition:g}=Vs(i),{buildMatrix:y}=Oa(),{handleMonthYearChange:w,isDisabled:b,updateMonthYear:E}=fA(o,a),{showLeftIcon:_,showRightIcon:v}=nu(),x=r.ref(!1),C=r.ref(!1),P=r.ref(!1),O=r.ref([null,null,null,null]);r.onMounted(()=>{a("mount")});const A=j=>({get:()=>o[j],set:W=>{const Y=j===qn.month?qn.year:qn.month;a("update-month-year",{[j]:W,[Y]:o[Y]}),j===qn.month?$(!0):K(!0)}}),L=r.computed(A(qn.month)),U=r.computed(A(qn.year)),z=r.computed(()=>j=>({month:o.month,year:o.year,items:j===qn.month?o.months:o.years,instance:o.instance,updateMonthYear:E,toggle:j===qn.month?$:K})),R=r.computed(()=>o.months.find(W=>W.value===o.month)||{text:"",value:0}),I=r.computed(()=>fi(o.months,j=>{const W=o.month===j.value,Y=ws(j.value,Vy(o.year,f.value.minDate),Fy(o.year,f.value.maxDate))||c.value.months.includes(j.value),H=qy(d.value,j.value,o.year);return{active:W,disabled:Y,highlighted:H}})),B=r.computed(()=>fi(o.years,j=>{const W=o.year===j.value,Y=ws(j.value,pi(f.value.minDate),pi(f.value.maxDate))||c.value.years.includes(j.value),H=Gp(d.value,j.value);return{active:W,disabled:Y,highlighted:H}})),M=(j,W,Y)=>{Y!==void 0?j.value=Y:j.value=!j.value,j.value?(P.value=!0,a("overlay-opened",W)):(P.value=!1,a("overlay-closed",W))},$=(j=!1,W)=>{V(j),M(x,ln.month,W)},K=(j=!1,W)=>{V(j),M(C,ln.year,W)},V=j=>{j||a("reset-flow")},Z=(j,W)=>{o.arrowNavigation&&(O.value[W]=jt(j),y(O.value,"monthYear"))},q=r.computed(()=>{var j,W,Y,H,T,J;return[{type:qn.month,index:1,toggle:$,modelValue:L.value,updateModelValue:le=>L.value=le,text:R.value.text,showSelectionGrid:x.value,items:I.value,ariaLabel:(j=s.value)==null?void 0:j.openMonthsOverlay,overlayLabel:((Y=(W=s.value).monthPicker)==null?void 0:Y.call(W,!0))??void 0},{type:qn.year,index:2,toggle:K,modelValue:U.value,updateModelValue:le=>U.value=le,text:Ry(o.year,o.locale),showSelectionGrid:C.value,items:B.value,ariaLabel:(H=s.value)==null?void 0:H.openYearsOverlay,overlayLabel:((J=(T=s.value).yearPicker)==null?void 0:J.call(T,!0))??void 0}]}),oe=r.computed(()=>o.disableYearSelect?[q.value[0]]:o.yearFirst?[...q.value].reverse():q.value);return t({toggleMonthPicker:$,toggleYearPicker:K,handleMonthYearChange:w}),(j,W)=>{var Y,H,T,J,le,Oe;return r.openBlock(),r.createElementBlock("div",FA,[j.$slots["month-year"]?(r.openBlock(),r.createElementBlock("div",jA,[r.renderSlot(j.$slots,"month-year",r.normalizeProps(r.guardReactiveProps({month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:r.unref(E),handleMonthYearChange:r.unref(w),instance:e.instance,isDisabled:r.unref(b)})))])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[j.$slots["top-extra"]?(r.openBlock(),r.createElementBlock("div",HA,[r.renderSlot(j.$slots,"top-extra",{value:j.internalModelValue})])):r.createCommentVNode("",!0),r.createElementVNode("div",UA,[r.unref(_)(r.unref(l),e.instance)&&!j.vertical?(r.openBlock(),r.createBlock(as,{key:0,"aria-label":(Y=r.unref(s))==null?void 0:Y.prevMonth,disabled:r.unref(b)(!1),class:r.normalizeClass((H=r.unref(p))==null?void 0:H.navBtnPrev),"el-name":"action-prev",onActivate:W[0]||(W[0]=ee=>r.unref(w)(!1,!0)),onSetRef:W[1]||(W[1]=ee=>Z(ee,0))},{default:r.withCtx(()=>[j.$slots["arrow-left"]?r.renderSlot(j.$slots,"arrow-left",{key:0}):r.createCommentVNode("",!0),j.$slots["arrow-left"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(zp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["dp__month_year_wrap",{dp__year_disable_select:j.disableYearSelect}])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(oe.value,(ee,Te)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:ee.type},[r.createElementVNode("button",{ref_for:!0,ref:ae=>Z(ae,Te+1),type:"button","data-dp-element":`overlay-${ee.type}`,class:r.normalizeClass(["dp__btn dp__month_year_select",{"dp--hidden-el":P.value}]),"aria-label":`${ee.text}-${ee.ariaLabel}`,"data-test-id":`${ee.type}-toggle-overlay-${e.instance}`,onClick:ee.toggle,onKeydown:ae=>r.unref(mn)(ae,()=>ee.toggle(),!0)},[j.$slots[ee.type]?r.renderSlot(j.$slots,ee.type,{key:0,text:ee.text,value:o[ee.type]}):r.createCommentVNode("",!0),j.$slots[ee.type]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(ee.text),1)],64))],42,WA),r.createVNode(r.Transition,{name:r.unref(m)(ee.showSelectionGrid),css:r.unref(g)},{default:r.withCtx(()=>[ee.showSelectionGrid?(r.openBlock(),r.createBlock(zs,{key:0,items:ee.items,"arrow-navigation":j.arrowNavigation,"hide-navigation":j.hideNavigation,"is-last":j.autoApply&&!r.unref(u).keepActionRow,"skip-button-ref":!1,config:j.config,type:ee.type,"header-refs":[],"esc-close":j.escClose,"menu-wrap-ref":j.menuWrapRef,"text-input":j.textInput,"aria-labels":j.ariaLabels,"overlay-label":ee.overlayLabel,onSelected:ee.updateModelValue,onToggle:ee.toggle},r.createSlots({"button-icon":r.withCtx(()=>[j.$slots["calendar-icon"]?r.renderSlot(j.$slots,"calendar-icon",{key:0}):r.createCommentVNode("",!0),j.$slots["calendar-icon"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(Ai),{key:1}))]),_:2},[j.$slots[`${ee.type}-overlay-value`]?{name:"item",fn:r.withCtx(({item:ae})=>[r.renderSlot(j.$slots,`${ee.type}-overlay-value`,{text:ae.text,value:ae.value})]),key:"0"}:void 0,j.$slots[`${ee.type}-overlay`]?{name:"overlay",fn:r.withCtx(()=>[r.renderSlot(j.$slots,`${ee.type}-overlay`,r.mergeProps({ref_for:!0},z.value(ee.type)))]),key:"1"}:void 0,j.$slots[`${ee.type}-overlay-header`]?{name:"header",fn:r.withCtx(()=>[r.renderSlot(j.$slots,`${ee.type}-overlay-header`,{toggle:ee.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","menu-wrap-ref","text-input","aria-labels","overlay-label","onSelected","onToggle"])):r.createCommentVNode("",!0)]),_:2},1032,["name","css"])],64))),128))],2),r.unref(_)(r.unref(l),e.instance)&&j.vertical?(r.openBlock(),r.createBlock(as,{key:1,"aria-label":(T=r.unref(s))==null?void 0:T.prevMonth,"el-name":"action-prev",disabled:r.unref(b)(!1),class:r.normalizeClass((J=r.unref(p))==null?void 0:J.navBtnPrev),onActivate:W[2]||(W[2]=ee=>r.unref(w)(!1,!0))},{default:r.withCtx(()=>[j.$slots["arrow-up"]?r.renderSlot(j.$slots,"arrow-up",{key:0}):r.createCommentVNode("",!0),j.$slots["arrow-up"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(jp),{key:1}))]),_:3},8,["aria-label","disabled","class"])):r.createCommentVNode("",!0),r.unref(v)(r.unref(l),e.instance)?(r.openBlock(),r.createBlock(as,{key:2,ref:"rightIcon","el-name":"action-next",disabled:r.unref(b)(!0),"aria-label":(le=r.unref(s))==null?void 0:le.nextMonth,class:r.normalizeClass((Oe=r.unref(p))==null?void 0:Oe.navBtnNext),onActivate:W[3]||(W[3]=ee=>r.unref(w)(!0,!0)),onSetRef:W[4]||(W[4]=ee=>Z(ee,j.disableYearSelect?2:3))},{default:r.withCtx(()=>[j.$slots[j.vertical?"arrow-down":"arrow-right"]?r.renderSlot(j.$slots,j.vertical?"arrow-down":"arrow-right",{key:0}):r.createCommentVNode("",!0),j.$slots[j.vertical?"arrow-down":"arrow-right"]?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(j.vertical?r.unref(Hp):r.unref(Vp)),{key:1}))]),_:3},8,["disabled","aria-label","class"])):r.createCommentVNode("",!0)])],64))])}}}),YA={class:"dp__calendar_header",role:"row"},GA={key:0,class:"dp__calendar_header_item",role:"gridcell"},KA=["aria-label"],XA={key:0,class:"dp__calendar_item dp__week_num",role:"gridcell"},JA={class:"dp__cell_inner"},QA=["id","aria-pressed","aria-disabled","aria-label","tabindex","data-test-id","onClick","onTouchend","onKeydown","onMouseenter","onMouseleave","onMousedown"],ZA=r.defineComponent({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...ur},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:t,emit:n}){const a=n,o=e,{buildMultiLevelMatrix:i}=Oa(),{defaultedTransitions:s,defaultedConfig:l,defaultedAriaLabels:c,defaultedMultiCalendars:u,defaultedWeekNumbers:d,defaultedMultiDates:f,defaultedUI:p}=Et(o),m=r.ref(null),g=r.ref({bottom:"",left:"",transform:""}),y=r.ref([]),w=r.ref(null),b=r.ref(!0),E=r.ref(""),_=r.ref({startX:0,endX:0,startY:0,endY:0}),v=r.ref([]),x=r.ref({left:"50%"}),C=r.ref(!1),P=r.computed(()=>o.calendar?o.calendar(o.mappedDates):o.mappedDates),O=r.computed(()=>o.dayNames?Array.isArray(o.dayNames)?o.dayNames:o.dayNames(o.locale,+o.weekStart):NP(o.formatLocale,o.locale,+o.weekStart));r.onMounted(()=>{a("mount",{cmp:"calendar",refs:y}),l.value.noSwipe||w.value&&(w.value.addEventListener("touchstart",Z,{passive:!1}),w.value.addEventListener("touchend",q,{passive:!1}),w.value.addEventListener("touchmove",oe,{passive:!1})),o.monthChangeOnScroll&&w.value&&w.value.addEventListener("wheel",Y,{passive:!1})}),r.onUnmounted(()=>{l.value.noSwipe||w.value&&(w.value.removeEventListener("touchstart",Z),w.value.removeEventListener("touchend",q),w.value.removeEventListener("touchmove",oe)),o.monthChangeOnScroll&&w.value&&w.value.removeEventListener("wheel",Y)});const A=ee=>ee?o.vertical?"vNext":"next":o.vertical?"vPrevious":"previous",L=(ee,Te)=>{if(o.transitions){const ae=Gt(Fr(me(),o.month,o.year));E.value=Lt(Gt(Fr(me(),ee,Te)),ae)?s.value[A(!0)]:s.value[A(!1)],b.value=!1,r.nextTick(()=>{b.value=!0})}},U=r.computed(()=>({...p.value.calendar??{}})),z=r.computed(()=>ee=>{const Te=BP(ee);return{dp__marker_dot:Te.type==="dot",dp__marker_line:Te.type==="line"}}),R=r.computed(()=>ee=>Xe(ee,m.value)),I=r.computed(()=>({dp__calendar:!0,dp__calendar_next:u.value.count>0&&o.instance!==0})),B=r.computed(()=>ee=>o.hideOffsetDates?ee.current:!0),M=async(ee,Te)=>{const{width:ae,height:ue}=ee.getBoundingClientRect();m.value=Te.value;let D={left:`${ae/2}px`},de=-50;if(await r.nextTick(),v.value[0]){const{left:fe,width:ce}=v.value[0].getBoundingClientRect();fe<0&&(D={left:"0"},de=0,x.value.left=`${ae/2}px`),window.innerWidth<fe+ce&&(D={right:"0"},de=0,x.value.left=`${ce-ae/2}px`)}g.value={bottom:`${ue}px`,...D,transform:`translateX(${de}%)`}},$=async(ee,Te,ae)=>{var ue,D,de;const fe=jt(y.value[Te][ae]);fe&&((ue=ee.marker)!=null&&ue.customPosition&&(de=(D=ee.marker)==null?void 0:D.tooltip)!=null&&de.length?g.value=ee.marker.customPosition(fe):await M(fe,ee),a("tooltip-open",ee.marker))},K=async(ee,Te,ae)=>{var ue,D;if(C.value&&f.value.enabled&&f.value.dragSelect)return a("select-date",ee);if(a("set-hover-date",ee),(D=(ue=ee.marker)==null?void 0:ue.tooltip)!=null&&D.length){if(o.hideOffsetDates&&!ee.current)return;await $(ee,Te,ae)}},V=ee=>{m.value&&(m.value=null,g.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),a("tooltip-close",ee.marker))},Z=ee=>{_.value.startX=ee.changedTouches[0].screenX,_.value.startY=ee.changedTouches[0].screenY},q=ee=>{_.value.endX=ee.changedTouches[0].screenX,_.value.endY=ee.changedTouches[0].screenY,j()},oe=ee=>{o.vertical&&!o.inline&&ee.preventDefault()},j=()=>{const ee=o.vertical?"Y":"X";Math.abs(_.value[`start${ee}`]-_.value[`end${ee}`])>10&&a("handle-swipe",_.value[`start${ee}`]>_.value[`end${ee}`]?"right":"left")},W=(ee,Te,ae)=>{ee&&(Array.isArray(y.value[Te])?y.value[Te][ae]=ee:y.value[Te]=[ee]),o.arrowNavigation&&i(y.value,"calendar")},Y=ee=>{o.monthChangeOnScroll&&(ee.preventDefault(),a("handle-scroll",ee))},H=ee=>d.value.type==="local"?Dp(ee.value,{weekStartsOn:+o.weekStart}):d.value.type==="iso"?Bp(ee.value):typeof d.value.type=="function"?d.value.type(ee.value):"",T=ee=>{const Te=ee[0];return d.value.hideOnOffsetDates?ee.some(ae=>ae.current)?H(Te):"":H(Te)},J=(ee,Te,ae=!0)=>{!ae&&zP()||(!f.value.enabled||l.value.allowPreventDefault)&&(ma(ee,l.value),a("select-date",Te))},le=ee=>{ma(ee,l.value)},Oe=ee=>{f.value.enabled&&f.value.dragSelect?(C.value=!0,a("select-date",ee)):f.value.enabled&&a("select-date",ee)};return t({triggerTransition:L}),(ee,Te)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(I.value)},[r.createElementVNode("div",{ref_key:"calendarWrapRef",ref:w,class:r.normalizeClass(U.value),role:"grid"},[r.createElementVNode("div",YA,[ee.weekNumbers?(r.openBlock(),r.createElementBlock("div",GA,r.toDisplayString(ee.weekNumName),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(O.value,(ae,ue)=>{var D,de;return r.openBlock(),r.createElementBlock("div",{key:ue,class:"dp__calendar_header_item",role:"gridcell","data-test-id":"calendar-header","aria-label":(de=(D=r.unref(c))==null?void 0:D.weekDay)==null?void 0:de.call(D,ue)},[ee.$slots["calendar-header"]?r.renderSlot(ee.$slots,"calendar-header",{key:0,day:ae,index:ue}):r.createCommentVNode("",!0),ee.$slots["calendar-header"]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(ae),1)],64))],8,KA)}),128))]),Te[2]||(Te[2]=r.createElementVNode("div",{class:"dp__calendar_header_separator"},null,-1)),r.createVNode(r.Transition,{name:E.value,css:!!ee.transitions},{default:r.withCtx(()=>[b.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:"dp__calendar",role:"rowgroup",onMouseleave:Te[1]||(Te[1]=ae=>C.value=!1)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(P.value,(ae,ue)=>(r.openBlock(),r.createElementBlock("div",{key:ue,class:"dp__calendar_row",role:"row"},[ee.weekNumbers?(r.openBlock(),r.createElementBlock("div",XA,[r.createElementVNode("div",JA,r.toDisplayString(T(ae.days)),1)])):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(ae.days,(D,de)=>{var fe,ce,Ae;return r.openBlock(),r.createElementBlock("div",{id:r.unref(bf)(D.value),ref_for:!0,ref:pe=>W(pe,ue,de),key:de+ue,role:"gridcell",class:"dp__calendar_item","aria-pressed":(D.classData.dp__active_date||D.classData.dp__range_start||D.classData.dp__range_start)??void 0,"aria-disabled":D.classData.dp__cell_disabled||void 0,"aria-label":(ce=(fe=r.unref(c))==null?void 0:fe.day)==null?void 0:ce.call(fe,D),tabindex:!D.current&&ee.hideOffsetDates?void 0:0,"data-test-id":r.unref(bf)(D.value),onClick:r.withModifiers(pe=>J(pe,D),["prevent"]),onTouchend:pe=>J(pe,D,!1),onKeydown:pe=>r.unref(mn)(pe,()=>ee.$emit("select-date",D)),onMouseenter:pe=>K(D,ue,de),onMouseleave:pe=>V(D),onMousedown:pe=>Oe(D),onMouseup:Te[0]||(Te[0]=pe=>C.value=!1)},[r.createElementVNode("div",{class:r.normalizeClass(["dp__cell_inner",D.classData])},[ee.$slots.day&&B.value(D)?r.renderSlot(ee.$slots,"day",{key:0,day:+D.text,date:D.value}):r.createCommentVNode("",!0),ee.$slots.day?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(D.text),1)],64)),D.marker&&B.value(D)?(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[ee.$slots.marker?r.renderSlot(ee.$slots,"marker",{key:0,marker:D.marker,day:+D.text,date:D.value}):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(z.value(D.marker)),style:r.normalizeStyle(D.marker.color?{backgroundColor:D.marker.color}:{})},null,6))],64)):r.createCommentVNode("",!0),R.value(D.value)?(r.openBlock(),r.createElementBlock("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:v,class:"dp__marker_tooltip",style:r.normalizeStyle(g.value)},[(Ae=D.marker)!=null&&Ae.tooltip?(r.openBlock(),r.createElementBlock("div",{key:0,class:"dp__tooltip_content",onClick:le},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(D.marker.tooltip,(pe,Ie)=>(r.openBlock(),r.createElementBlock("div",{key:Ie,class:"dp__tooltip_text"},[ee.$slots["marker-tooltip"]?r.renderSlot(ee.$slots,"marker-tooltip",{key:0,tooltip:pe,day:D.value}):r.createCommentVNode("",!0),ee.$slots["marker-tooltip"]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createElementVNode("div",{class:"dp__tooltip_mark",style:r.normalizeStyle(pe.color?{backgroundColor:pe.color}:{})},null,4),r.createElementVNode("div",null,r.toDisplayString(pe.text),1)],64))]))),128)),r.createElementVNode("div",{class:"dp__arrow_bottom_tp",style:r.normalizeStyle(x.value)},null,4)])):r.createCommentVNode("",!0)],4)):r.createCommentVNode("",!0)],2)],40,QA)}),128))]))),128))],32)):r.createCommentVNode("",!0)]),_:3},8,["name","css"])],2)],2))}}),Zv=e=>Array.isArray(e),eI=(e,t,n,a)=>{const o=r.ref([]),i=r.ref(new Date),s=r.ref(),l=()=>q(e.isTextInputDate),{modelValue:c,calendars:u,time:d,today:f}=Fs(e,t,l),{defaultedMultiCalendars:p,defaultedStartTime:m,defaultedRange:g,defaultedConfig:y,defaultedTz:w,propDates:b,defaultedMultiDates:E}=Et(e),{validateMonthYearInRange:_,isDisabled:v,isDateRangeAllowed:x,checkMinMaxRange:C}=Ba(e),{updateTimeValues:P,getSetDateTime:O,setTime:A,assignStartTime:L,validateTime:U,disabledTimesConfig:z}=Zy(e,d,c,a),R=r.computed(()=>G=>u.value[G]?u.value[G].month:0),I=r.computed(()=>G=>u.value[G]?u.value[G].year:0),B=G=>!y.value.keepViewOnOffsetClick||G?!0:!s.value,M=(G,se,be,Re=!1)=>{var ne,he;B(Re)&&(u.value[G]||(u.value[G]={month:0,year:0}),u.value[G].month=Yv(se)?(ne=u.value[G])==null?void 0:ne.month:se,u.value[G].year=Yv(be)?(he=u.value[G])==null?void 0:he.year:be)},$=()=>{e.autoApply&&t("select-date")},K=()=>{m.value&&L(m.value)};r.onMounted(()=>{e.shadow||(c.value||(Te(),K()),q(!0),e.focusStartDate&&e.startDate&&Te())});const V=r.computed(()=>{var G;return(G=e.flow)!=null&&G.length&&!e.partialFlow?e.flowStep===e.flow.length:!0}),Z=()=>{e.autoApply&&V.value&&t("auto-apply",e.partialFlow?e.flowStep!==e.flow.length:!1)},q=(G=!1)=>{if(c.value)return Array.isArray(c.value)?(o.value=c.value,J(G)):W(c.value,G);if(p.value.count&&G&&!e.startDate)return j(me(),G)},oe=()=>Array.isArray(c.value)&&g.value.enabled?Ke(c.value[0])===Ke(c.value[1]??c.value[0]):!1,j=(G=new Date,se=!1)=>{if((!p.value.count||!p.value.static||se)&&M(0,Ke(G),Fe(G)),p.value.count&&(!c.value||oe()||!p.value.solo)&&(!p.value.solo||se))for(let be=1;be<p.value.count;be++){const Re=ht(me(),{month:R.value(be-1),year:I.value(be-1)}),ne=py(Re,{months:1});u.value[be]={month:Ke(ne),year:Fe(ne)}}},W=(G,se)=>{j(G),A("hours",Kr(G)),A("minutes",ka(G)),A("seconds",ci(G)),p.value.count&&se&&ee()},Y=G=>{if(p.value.count){if(p.value.solo)return 0;const se=Ke(G[0]),be=Ke(G[1]);return Math.abs(be-se)<p.value.count?0:1}return 1},H=(G,se)=>{G[1]&&g.value.showLastInRange?j(G[Y(G)],se):j(G[0],se);const be=(Re,ne)=>[Re(G[0]),G[1]?Re(G[1]):d[ne][1]];A("hours",be(Kr,"hours")),A("minutes",be(ka,"minutes")),A("seconds",be(ci,"seconds"))},T=(G,se)=>{if((g.value.enabled||e.weekPicker)&&!E.value.enabled)return H(G,se);if(E.value.enabled&&se){const be=G[G.length-1];return W(be,se)}},J=G=>{const se=c.value;T(se,G),p.value.count&&p.value.solo&&ee()},le=(G,se)=>{const be=ht(me(),{month:R.value(se),year:I.value(se)}),Re=G<0?nr(be,1):di(be,1);_(Ke(Re),Fe(Re),G<0,e.preventMinMaxNavigation)&&(M(se,Ke(Re),Fe(Re)),t("update-month-year",{instance:se,month:Ke(Re),year:Fe(Re)}),p.value.count&&!p.value.solo&&Oe(se),n())},Oe=G=>{for(let se=G-1;se>=0;se--){const be=di(ht(me(),{month:R.value(se+1),year:I.value(se+1)}),1);M(se,Ke(be),Fe(be))}for(let se=G+1;se<=p.value.count-1;se++){const be=nr(ht(me(),{month:R.value(se-1),year:I.value(se-1)}),1);M(se,Ke(be),Fe(be))}},ee=()=>{if(Array.isArray(c.value)&&c.value.length===2){const G=me(me(c.value[1]?c.value[1]:nr(c.value[0],1))),[se,be]=[Ke(c.value[0]),Fe(c.value[0])],[Re,ne]=[Ke(c.value[1]),Fe(c.value[1])];(se!==Re||se===Re&&be!==ne)&&p.value.solo&&M(1,Ke(G),Fe(G))}else c.value&&!Array.isArray(c.value)&&(M(0,Ke(c.value),Fe(c.value)),j(me()))},Te=()=>{e.startDate&&(M(0,Ke(me(e.startDate)),Fe(me(e.startDate))),p.value.count&&Oe(0))},ae=(G,se)=>{if(e.monthChangeOnScroll){const be=new Date().getTime()-i.value.getTime(),Re=Math.abs(G.deltaY);let ne=500;Re>1&&(ne=100),Re>100&&(ne=0),be>ne&&(i.value=new Date,le(e.monthChangeOnScroll!=="inverse"?-G.deltaY:G.deltaY,se))}},ue=(G,se,be=!1)=>{e.monthChangeOnArrows&&e.vertical===be&&D(G,se)},D=(G,se)=>{le(G==="right"?-1:1,se)},de=G=>{if(b.value.markers)return fc(G.value,b.value.markers)},fe=(G,se)=>{switch(e.sixWeeks===!0?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[G==0,!0];case"fair":return[G==0||se>G,!0];case"append":return[!1,!1];default:return[!1,!1]}},ce=(G,se,be,Re)=>{if(e.sixWeeks&&G.length<6){const ne=6-G.length,he=(se.getDay()+7-Re)%7,Ce=6-(be.getDay()+7-Re)%7,[st,vt]=fe(he,Ce);for(let Ut=1;Ut<=ne;Ut++)if(vt?!!(Ut%2)==st:st){const Vt=G[0].days[0],nn=Ae(Rn(Vt.value,-7),Ke(se));G.unshift({days:nn})}else{const Vt=G[G.length-1],nn=Vt.days[Vt.days.length-1],za=Ae(Rn(nn.value,1),Ke(se));G.push({days:za})}}return G},Ae=(G,se)=>{const be=me(G),Re=[];for(let ne=0;ne<7;ne++){const he=Rn(be,ne),Ce=Ke(he)!==se;Re.push({text:e.hideOffsetDates&&Ce?"":he.getDate(),value:he,current:!Ce,classData:{}})}return Re},pe=(G,se)=>{const be=[],Re=new Date(se,G),ne=new Date(se,G+1,0),he=e.weekStart,Ce=ir(Re,{weekStartsOn:he}),st=vt=>{const Ut=Ae(vt,G);if(be.push({days:Ut}),!be[be.length-1].days.some(Vt=>Xe(Gt(Vt.value),Gt(ne)))){const Vt=Rn(vt,7);st(Vt)}};return st(Ce),ce(be,Re,ne,he)},Ie=G=>{const se=ha(me(G.value),d.hours,d.minutes,Se());t("date-update",se),E.value.enabled?Kp(se,c,E.value.limit):c.value=se,a(),r.nextTick().then(()=>{Z()})},xe=G=>g.value.noDisabledRange?jy(o.value[0],G).some(se=>v(se)):!1,X=()=>{o.value=c.value?c.value.slice():[],o.value.length===2&&!(g.value.fixedStart||g.value.fixedEnd)&&(o.value=[])},re=(G,se)=>{const be=[me(G.value),Rn(me(G.value),+g.value.autoRange)];x(be)?(se&&ye(G.value),o.value=be):t("invalid-date",G.value)},ye=G=>{const se=Ke(me(G)),be=Fe(me(G));if(M(0,se,be),p.value.count>0)for(let Re=1;Re<p.value.count;Re++){const ne=jP(ht(me(G),{year:I.value(Re-1),month:R.value(Re-1)}));M(Re,ne.month,ne.year)}},Ze=G=>{if(xe(G.value)||!C(G.value,c.value,g.value.fixedStart?0:1))return t("invalid-date",G.value);o.value=Xy(me(G.value),c,t,g)},ct=(G,se)=>{if(X(),g.value.autoRange)return re(G,se);if(g.value.fixedStart||g.value.fixedEnd)return Ze(G);o.value[0]?C(me(G.value),c.value)&&!xe(G.value)?Mt(me(G.value),me(o.value[0]))?(o.value.unshift(me(G.value)),t("range-end",o.value[0])):(o.value[1]=me(G.value),t("range-end",o.value[1])):(e.autoApply&&t("auto-apply-invalid",G.value),t("invalid-date",G.value)):(o.value[0]=me(G.value),t("range-start",o.value[0]))},Se=(G=!0)=>e.enableSeconds?Array.isArray(d.seconds)?G?d.seconds[0]:d.seconds[1]:d.seconds:0,ut=G=>{o.value[G]=ha(o.value[G],d.hours[G],d.minutes[G],Se(G!==1))},$t=()=>{var G,se;o.value[0]&&o.value[1]&&+((G=o.value)==null?void 0:G[0])>+((se=o.value)==null?void 0:se[1])&&(o.value.reverse(),t("range-start",o.value[0]),t("range-end",o.value[1]))},xn=()=>{o.value.length&&(o.value[0]&&!o.value[1]?ut(0):(ut(0),ut(1),a()),$t(),c.value=o.value.slice(),tu(o.value,t,e.autoApply,e.modelAuto))},zt=(G,se=!1)=>{if(v(G.value)||!G.current&&e.hideOffsetDates)return t("invalid-date",G.value);if(s.value=JSON.parse(JSON.stringify(G)),!g.value.enabled)return Ie(G);Zv(d.hours)&&Zv(d.minutes)&&!E.value.enabled&&(ct(G,se),xn())},Kt=(G,se)=>{var be;M(G,se.month,se.year,!0),p.value.count&&!p.value.solo&&Oe(G),t("update-month-year",{instance:G,month:se.month,year:se.year}),n(p.value.solo?G:void 0);const Re=(be=e.flow)!=null&&be.length?e.flow[e.flowStep]:void 0;!se.fromNav&&(Re===ln.month||Re===ln.year)&&a()},te=(G,se)=>{Ky({value:G,modelValue:c,range:g.value.enabled,timezone:se?void 0:w.value.timezone}),$(),e.multiCalendars&&r.nextTick().then(()=>q(!0))},_e=()=>{const G=Up(me(),w.value);!g.value.enabled&&!E.value.enabled?c.value=G:c.value&&Array.isArray(c.value)&&c.value[0]?E.value.enabled?c.value=[...c.value,G]:c.value=Mt(G,c.value[0])?[G,c.value[0]]:[c.value[0],G]:c.value=[G],$()},Ee=()=>{if(Array.isArray(c.value))if(E.value.enabled){const G=He();c.value[c.value.length-1]=O(G)}else c.value=c.value.map((G,se)=>G&&O(G,se));else c.value=O(c.value);t("time-update")},He=()=>Array.isArray(c.value)&&c.value.length?c.value[c.value.length-1]:null;return{calendars:u,modelValue:c,month:R,year:I,time:d,disabledTimesConfig:z,today:f,validateTime:U,getCalendarDays:pe,getMarker:de,handleScroll:ae,handleSwipe:D,handleArrow:ue,selectDate:zt,updateMonthYear:Kt,presetDate:te,selectCurrentDate:_e,updateTime:(G,se=!0,be=!1)=>{P(G,se,be,Ee)},assignMonthAndYear:j,setStartTime:K}},tI={key:0},nI=r.defineComponent({__name:"DatePicker",props:{...ur},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(e,{expose:t,emit:n}){const a=n,o=e,{calendars:i,month:s,year:l,modelValue:c,time:u,disabledTimesConfig:d,today:f,validateTime:p,getCalendarDays:m,getMarker:g,handleArrow:y,handleScroll:w,handleSwipe:b,selectDate:E,updateMonthYear:_,presetDate:v,selectCurrentDate:x,updateTime:C,assignMonthAndYear:P,setStartTime:O}=eI(o,a,oe,j),A=r.useSlots(),{setHoverDate:L,getDayClassData:U,clearHoverDate:z}=bI(c,o),{defaultedMultiCalendars:R}=Et(o),I=r.ref([]),B=r.ref([]),M=r.ref(null),$=In(A,"calendar"),K=In(A,"monthYear"),V=In(A,"timePicker"),Z=ae=>{o.shadow||a("mount",ae)};r.watch(i,()=>{o.shadow||setTimeout(()=>{a("recalculate-position")},0)},{deep:!0}),r.watch(R,(ae,ue)=>{ae.count-ue.count>0&&P()},{deep:!0});const q=r.computed(()=>ae=>m(s.value(ae),l.value(ae)).map(ue=>({...ue,days:ue.days.map(D=>(D.marker=g(D),D.classData=U(D),D))})));function oe(ae){var ue;ae||ae===0?(ue=B.value[ae])==null||ue.triggerTransition(s.value(ae),l.value(ae)):B.value.forEach((D,de)=>D.triggerTransition(s.value(de),l.value(de)))}function j(){a("update-flow-step")}const W=(ae,ue=!1)=>{E(ae,ue),o.spaceConfirm&&a("select-date")},Y=(ae,ue,D=0)=>{var de;(de=I.value[D])==null||de.toggleMonthPicker(ae,ue)},H=(ae,ue,D=0)=>{var de;(de=I.value[D])==null||de.toggleYearPicker(ae,ue)},T=(ae,ue,D)=>{var de;(de=M.value)==null||de.toggleTimePicker(ae,ue,D)},J=(ae,ue)=>{var D;if(!o.range){const de=c.value?c.value:f,fe=ue?new Date(ue):de,ce=ae?ir(fe,{weekStartsOn:1}):wy(fe,{weekStartsOn:1});E({value:ce,current:Ke(fe)===s.value(0),text:"",classData:{}}),(D=document.getElementById(bf(ce)))==null||D.focus()}},le=ae=>{var ue;(ue=I.value[0])==null||ue.handleMonthYearChange(ae,!0)},Oe=ae=>{_(0,{month:s.value(0),year:l.value(0)+(ae?1:-1),fromNav:!0})},ee=(ae,ue)=>{ae===ln.time&&a(`time-picker-${ue?"open":"close"}`),a("overlay-toggle",{open:ue,overlay:ae})},Te=ae=>{a("overlay-toggle",{open:!1,overlay:ae}),a("focus-menu")};return t({clearHoverDate:z,presetDate:v,selectCurrentDate:x,toggleMonthPicker:Y,toggleYearPicker:H,toggleTimePicker:T,handleArrow:y,updateMonthYear:_,getSidebarProps:()=>({modelValue:c,month:s,year:l,time:u,updateTime:C,updateMonthYear:_,selectDate:E,presetDate:v}),changeMonth:le,changeYear:Oe,selectWeekDate:J,setStartTime:O}),(ae,ue)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(eu,{"multi-calendars":r.unref(R).count,collapse:ae.collapse,"is-mobile":ae.isMobile},{default:r.withCtx(({instance:D,index:de})=>[ae.disableMonthYearSelect?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(qA,r.mergeProps({key:0,ref:fe=>{fe&&(I.value[de]=fe)},months:r.unref(By)(ae.formatLocale,ae.locale,ae.monthNameFormat),years:r.unref(Wp)(ae.yearRange,ae.locale,ae.reverseYears),month:r.unref(s)(D),year:r.unref(l)(D),instance:D},ae.$props,{onMount:ue[0]||(ue[0]=fe=>Z(r.unref(ao).header)),onResetFlow:ue[1]||(ue[1]=fe=>ae.$emit("reset-flow")),onUpdateMonthYear:fe=>r.unref(_)(D,fe),onOverlayClosed:Te,onOverlayOpened:ue[2]||(ue[2]=fe=>ae.$emit("overlay-toggle",{open:!0,overlay:fe}))}),r.createSlots({_:2},[r.renderList(r.unref(K),(fe,ce)=>({name:fe,fn:r.withCtx(Ae=>[r.renderSlot(ae.$slots,fe,r.normalizeProps(r.guardReactiveProps(Ae)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),r.createVNode(ZA,r.mergeProps({ref:fe=>{fe&&(B.value[de]=fe)},"mapped-dates":q.value(D),month:r.unref(s)(D),year:r.unref(l)(D),instance:D},ae.$props,{onSelectDate:fe=>r.unref(E)(fe,D!==1),onHandleSpace:fe=>W(fe,D!==1),onSetHoverDate:ue[3]||(ue[3]=fe=>r.unref(L)(fe)),onHandleScroll:fe=>r.unref(w)(fe,D),onHandleSwipe:fe=>r.unref(b)(fe,D),onMount:ue[4]||(ue[4]=fe=>Z(r.unref(ao).calendar)),onResetFlow:ue[5]||(ue[5]=fe=>ae.$emit("reset-flow")),onTooltipOpen:ue[6]||(ue[6]=fe=>ae.$emit("tooltip-open",fe)),onTooltipClose:ue[7]||(ue[7]=fe=>ae.$emit("tooltip-close",fe))}),r.createSlots({_:2},[r.renderList(r.unref($),(fe,ce)=>({name:fe,fn:r.withCtx(Ae=>[r.renderSlot(ae.$slots,fe,r.normalizeProps(r.guardReactiveProps({...Ae})))])}))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars","collapse","is-mobile"]),ae.enableTimePicker?(r.openBlock(),r.createElementBlock("div",tI,[ae.$slots["time-picker"]?r.renderSlot(ae.$slots,"time-picker",r.normalizeProps(r.mergeProps({key:0},{time:r.unref(u),updateTime:r.unref(C)}))):(r.openBlock(),r.createBlock(Qy,r.mergeProps({key:1,ref_key:"timePickerRef",ref:M},ae.$props,{hours:r.unref(u).hours,minutes:r.unref(u).minutes,seconds:r.unref(u).seconds,"internal-model-value":ae.internalModelValue,"disabled-times-config":r.unref(d),"validate-time":r.unref(p),onMount:ue[8]||(ue[8]=D=>Z(r.unref(ao).timePicker)),"onUpdate:hours":ue[9]||(ue[9]=D=>r.unref(C)(D)),"onUpdate:minutes":ue[10]||(ue[10]=D=>r.unref(C)(D,!1)),"onUpdate:seconds":ue[11]||(ue[11]=D=>r.unref(C)(D,!1,!0)),onResetFlow:ue[12]||(ue[12]=D=>ae.$emit("reset-flow")),onOverlayClosed:ue[13]||(ue[13]=D=>ee(D,!1)),onOverlayOpened:ue[14]||(ue[14]=D=>ee(D,!0)),onAmPmChange:ue[15]||(ue[15]=D=>ae.$emit("am-pm-change",D))}),r.createSlots({_:2},[r.renderList(r.unref(V),(D,de)=>({name:D,fn:r.withCtx(fe=>[r.renderSlot(ae.$slots,D,r.normalizeProps(r.guardReactiveProps(fe)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):r.createCommentVNode("",!0)],64))}}),rI=(e,t)=>{const n=r.ref(),{defaultedMultiCalendars:a,defaultedConfig:o,defaultedHighlight:i,defaultedRange:s,propDates:l,defaultedFilters:c,defaultedMultiDates:u}=Et(e),{modelValue:d,year:f,month:p,calendars:m}=Fs(e,t),{isDisabled:g}=Ba(e),{selectYear:y,groupedYears:w,showYearPicker:b,isDisabled:E,toggleYearPicker:_,handleYearSelect:v,handleYear:x}=Jy({modelValue:d,multiCalendars:a,range:s,highlight:i,calendars:m,propDates:l,month:p,year:f,filters:c,props:e,emit:t}),C=(B,M)=>[B,M].map($=>Tr($,"MMMM",{locale:e.formatLocale})).join("-"),P=r.computed(()=>B=>d.value?Array.isArray(d.value)?d.value.some(M=>Uv(B,M)):Uv(d.value,B):!1),O=B=>{if(s.value.enabled){if(Array.isArray(d.value)){const M=Xe(B,d.value[0])||Xe(B,d.value[1]);return ks(d.value,n.value,B)&&!M}return!1}return!1},A=(B,M)=>B.quarter===$v(M)&&B.year===Fe(M),L=B=>typeof i.value=="function"?i.value({quarter:$v(B),year:Fe(B)}):!!i.value.quarters.find(M=>A(M,B)),U=r.computed(()=>B=>{const M=ht(new Date,{year:f.value(B)});return uT({start:bs(M),end:by(M)}).map($=>{const K=Za($),V=zv($),Z=g($),q=O(K),oe=L(K);return{text:C(K,V),value:K,active:P.value(K),highlighted:oe,disabled:Z,isBetween:q}})}),z=B=>{Kp(B,d,u.value.limit),t("auto-apply",!0)},R=B=>{d.value=Xp(d,B,t),tu(d.value,t,e.autoApply,e.modelAuto)},I=B=>{d.value=B,t("auto-apply")};return{defaultedConfig:o,defaultedMultiCalendars:a,groupedYears:w,year:f,isDisabled:E,quarters:U,showYearPicker:b,modelValue:d,setHoverDate:B=>{n.value=B},selectYear:y,selectQuarter:(B,M,$)=>{if(!$)return m.value[M].month=Ke(zv(B)),u.value.enabled?z(B):s.value.enabled?R(B):I(B)},toggleYearPicker:_,handleYearSelect:v,handleYear:x}},aI={class:"dp--quarter-items"},oI=["data-test-id","disabled","onClick","onMouseover"],iI=r.defineComponent({compatConfig:{MODE:3},__name:"QuarterPicker",props:{...ur},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end","overlay-toggle","update-month-year"],setup(e,{expose:t,emit:n}){const a=n,o=e,i=r.useSlots(),s=In(i,"yearMode"),{defaultedMultiCalendars:l,defaultedConfig:c,groupedYears:u,year:d,isDisabled:f,quarters:p,modelValue:m,showYearPicker:g,setHoverDate:y,selectQuarter:w,toggleYearPicker:b,handleYearSelect:E,handleYear:_}=rI(o,a);return t({getSidebarProps:()=>({modelValue:m,year:d,selectQuarter:w,handleYearSelect:E,handleYear:_})}),(v,x)=>(r.openBlock(),r.createBlock(eu,{"multi-calendars":r.unref(l).count,collapse:v.collapse,stretch:"","is-mobile":v.isMobile},{default:r.withCtx(({instance:C})=>[r.createElementVNode("div",{class:"dp-quarter-picker-wrap",style:r.normalizeStyle({minHeight:`${r.unref(c).modeHeight}px`})},[v.$slots["top-extra"]?r.renderSlot(v.$slots,"top-extra",{key:0,value:v.internalModelValue}):r.createCommentVNode("",!0),r.createElementVNode("div",null,[r.createVNode(Gy,r.mergeProps(v.$props,{items:r.unref(u)(C),instance:C,"show-year-picker":r.unref(g)[C],year:r.unref(d)(C),"is-disabled":P=>r.unref(f)(C,P),onHandleYear:P=>r.unref(_)(C,P),onYearSelect:P=>r.unref(E)(P,C),onToggleYearPicker:P=>r.unref(b)(C,P?.flow,P?.show)}),r.createSlots({_:2},[r.renderList(r.unref(s),(P,O)=>({name:P,fn:r.withCtx(A=>[r.renderSlot(v.$slots,P,r.normalizeProps(r.guardReactiveProps(A)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),r.createElementVNode("div",aI,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(p)(C),(P,O)=>(r.openBlock(),r.createElementBlock("div",{key:O},[r.createElementVNode("button",{type:"button",class:r.normalizeClass(["dp--qr-btn",{"dp--qr-btn-active":P.active,"dp--qr-btn-between":P.isBetween,"dp--qr-btn-disabled":P.disabled,"dp--highlighted":P.highlighted}]),"data-test-id":P.value,disabled:P.disabled,onClick:A=>r.unref(w)(P.value,C,P.disabled),onMouseover:A=>r.unref(y)(P.value)},[v.$slots.quarter?r.renderSlot(v.$slots,"quarter",{key:0,value:P.value,text:P.text}):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(P.text),1)],64))],42,oI)]))),128))])],4)]),_:3},8,["multi-calendars","collapse","is-mobile"]))}}),eb=(e,t)=>{const n=r.ref(0);r.onMounted(()=>{a(),window.addEventListener("resize",a,{passive:!0})}),r.onUnmounted(()=>{window.removeEventListener("resize",a)});const a=()=>{n.value=window.document.documentElement.clientWidth};return{isMobile:r.computed(()=>n.value<=e.value.mobileBreakpoint&&!t?!0:void 0)}},sI=["id","tabindex","role","aria-label"],lI={key:0,class:"dp--menu-load-container"},cI={key:1,class:"dp--menu-header"},uI=["data-dp-mobile"],dI={key:0,class:"dp__sidebar_left"},fI=["data-dp-mobile"],pI=["data-test-id","data-dp-mobile","onClick","onKeydown"],mI={key:2,class:"dp__sidebar_right"},hI={key:3,class:"dp__action_extra"},e0=r.defineComponent({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...Zc,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","auto-apply-invalid","date-update","invalid-date","overlay-toggle","menu-blur"],setup(e,{expose:t,emit:n}){const a=n,o=e,i=r.ref(null),s=r.computed(()=>{const{openOnTop:X,...re}=o;return{...re,isMobile:w.value,flowStep:R.value,menuWrapRef:i.value}}),{setMenuFocused:l,setShiftKey:c,control:u}=Yy(),d=r.useSlots(),{defaultedTextInput:f,defaultedInline:p,defaultedConfig:m,defaultedUI:g,handleEventPropagation:y}=Et(o),{isMobile:w}=eb(m,o.shadow),b=r.ref(null),E=r.ref(0),_=r.ref(null),v=r.ref(!1),x=r.ref(null),C=r.ref(!1),P=X=>{C.value=!0,m.value.allowPreventDefault&&X.preventDefault(),ma(X,m.value,!0)};r.onMounted(()=>{if(!o.shadow){v.value=!0,O(),window.addEventListener("resize",O);const X=jt(i);X&&!f.value.enabled&&!p.value.enabled&&(l(!0),Z()),X&&(X.addEventListener("pointerdown",P),X.addEventListener("mousedown",P))}document.addEventListener("mousedown",xe)}),r.onUnmounted(()=>{window.removeEventListener("resize",O),document.removeEventListener("mousedown",xe);const X=jt(i);X&&(X.removeEventListener("pointerdown",P),X.removeEventListener("mousedown",P))});const O=()=>{const X=jt(_);X&&(E.value=X.getBoundingClientRect().width)},{arrowRight:A,arrowLeft:L,arrowDown:U,arrowUp:z}=Oa(),{flowStep:R,updateFlowStep:I,childMount:B,resetFlow:M,handleFlow:$}=wI(o,a,x),K=r.computed(()=>o.monthPicker?CA:o.yearPicker?EA:o.timePicker?VA:o.quarterPicker?iI:nI),V=r.computed(()=>{var X;if(m.value.arrowLeft)return m.value.arrowLeft;const re=(X=i.value)==null?void 0:X.getBoundingClientRect(),ye=o.getInputRect();return ye?.width<E?.value&&ye?.left<=(re?.left??0)?`${ye?.width/2}px`:ye?.right>=(re?.right??0)&&ye?.width<E?.value?`${E?.value-ye?.width/2}px`:"50%"}),Z=()=>{const X=jt(i);X&&X.focus({preventScroll:!0})},q=r.computed(()=>{var X;return((X=x.value)==null?void 0:X.getSidebarProps())||{}}),oe=()=>{o.openOnTop&&a("recalculate-position")},j=In(d,"action"),W=r.computed(()=>o.monthPicker||o.yearPicker?In(d,"monthYear"):o.timePicker?In(d,"timePicker"):In(d,"shared")),Y=r.computed(()=>o.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),H=r.computed(()=>({dp__menu_disabled:o.disabled,dp__menu_readonly:o.readonly,"dp-menu-loading":o.loading})),T=r.computed(()=>({dp__menu:!0,dp__menu_index:!p.value.enabled,dp__relative:p.value.enabled,...g.value.menu??{}})),J=X=>{ma(X,m.value,!0)},le=X=>{o.escClose&&(a("close-picker"),y(X))},Oe=X=>{if(o.arrowNavigation){if(X===un.up)return z();if(X===un.down)return U();if(X===un.left)return L();if(X===un.right)return A()}else X===un.left||X===un.up?D("handleArrow",un.left,0,X===un.up):D("handleArrow",un.right,0,X===un.down)},ee=X=>{c(X.shiftKey),!o.disableMonthYearSelect&&X.code===_t.tab&&X.target.classList.contains("dp__menu")&&u.value.shiftKeyInMenu&&(X.preventDefault(),ma(X,m.value,!0),a("close-picker"))},Te=()=>{Z(),a("time-picker-close")},ae=X=>{var re,ye,Ze;(re=x.value)==null||re.toggleTimePicker(!1,!1),(ye=x.value)==null||ye.toggleMonthPicker(!1,!1,X),(Ze=x.value)==null||Ze.toggleYearPicker(!1,!1,X)},ue=(X,re=0)=>{var ye,Ze,ct;return X==="month"?(ye=x.value)==null?void 0:ye.toggleMonthPicker(!1,!0,re):X==="year"?(Ze=x.value)==null?void 0:Ze.toggleYearPicker(!1,!0,re):X==="time"?(ct=x.value)==null?void 0:ct.toggleTimePicker(!0,!1):ae(re)},D=(X,...re)=>{var ye,Ze;(ye=x.value)!=null&&ye[X]&&((Ze=x.value)==null||Ze[X](...re))},de=()=>{D("selectCurrentDate")},fe=(X,re)=>{D("presetDate",r.toValue(X),re)},ce=()=>{D("clearHoverDate")},Ae=(X,re)=>{D("updateMonthYear",X,re)},pe=(X,re)=>{X.preventDefault(),Oe(re)},Ie=X=>{var re,ye,Ze;if(ee(X),X.key===_t.home||X.key===_t.end)return D("selectWeekDate",X.key===_t.home,X.target.getAttribute("id"));switch((X.key===_t.pageUp||X.key===_t.pageDown)&&(X.shiftKey?(D("changeYear",X.key===_t.pageUp),(re=gf(i.value,"overlay-year"))==null||re.focus()):(D("changeMonth",X.key===_t.pageUp),(ye=gf(i.value,X.key===_t.pageUp?"action-prev":"action-next"))==null||ye.focus()),X.target.getAttribute("id")&&((Ze=i.value)==null||Ze.focus({preventScroll:!0}))),X.key){case _t.esc:return le(X);case _t.arrowLeft:return pe(X,un.left);case _t.arrowRight:return pe(X,un.right);case _t.arrowUp:return pe(X,un.up);case _t.arrowDown:return pe(X,un.down);default:return}},xe=X=>{var re;p.value.enabled&&!p.value.input&&!((re=i.value)!=null&&re.contains(X.target))&&C.value&&(C.value=!1,a("menu-blur"))};return t({updateMonthYear:Ae,switchView:ue,handleFlow:$,onValueCleared:()=>{var X,re;(re=(X=x.value)==null?void 0:X.setStartTime)==null||re.call(X)}}),(X,re)=>{var ye,Ze,ct;return r.openBlock(),r.createElementBlock("div",{id:X.uid?`dp-menu-${X.uid}`:void 0,ref_key:"dpMenuRef",ref:i,tabindex:r.unref(p).enabled?void 0:"0",role:r.unref(p).enabled?void 0:"dialog","aria-label":(ye=X.ariaLabels)==null?void 0:ye.menu,class:r.normalizeClass(T.value),style:r.normalizeStyle({"--dp-arrow-left":V.value}),onMouseleave:ce,onClick:J,onKeydown:Ie},[(X.disabled||X.readonly)&&r.unref(p).enabled||X.loading?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(H.value)},[X.loading?(r.openBlock(),r.createElementBlock("div",lI,re[19]||(re[19]=[r.createElementVNode("span",{class:"dp--menu-loader"},null,-1)]))):r.createCommentVNode("",!0)],2)):r.createCommentVNode("",!0),X.$slots["menu-header"]?(r.openBlock(),r.createElementBlock("div",cI,[r.renderSlot(X.$slots,"menu-header")])):r.createCommentVNode("",!0),!r.unref(p).enabled&&!X.teleportCenter?(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(Y.value)},null,2)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref_key:"innerMenuRef",ref:_,class:r.normalizeClass({dp__menu_content_wrapper:((Ze=X.presetDates)==null?void 0:Ze.length)||!!X.$slots["left-sidebar"]||!!X.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":e.collapse&&(((ct=X.presetDates)==null?void 0:ct.length)||!!X.$slots["left-sidebar"]||!!X.$slots["right-sidebar"])}),"data-dp-mobile":r.unref(w),style:r.normalizeStyle({"--dp-menu-width":`${E.value}px`})},[X.$slots["left-sidebar"]?(r.openBlock(),r.createElementBlock("div",dI,[r.renderSlot(X.$slots,"left-sidebar",r.normalizeProps(r.guardReactiveProps(q.value)))])):r.createCommentVNode("",!0),X.presetDates.length?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass({"dp--preset-dates-collapsed":e.collapse,"dp--preset-dates":!0}),"data-dp-mobile":r.unref(w)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(X.presetDates,(Se,ut)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:ut},[Se.slot?r.renderSlot(X.$slots,Se.slot,{key:0,presetDate:fe,label:Se.label,value:Se.value}):(r.openBlock(),r.createElementBlock("button",{key:1,type:"button",style:r.normalizeStyle(Se.style||{}),class:r.normalizeClass(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":e.collapse}]),"data-test-id":Se.testId??void 0,"data-dp-mobile":r.unref(w),onClick:r.withModifiers($t=>fe(Se.value,Se.noTz),["prevent"]),onKeydown:$t=>r.unref(mn)($t,()=>fe(Se.value,Se.noTz),!0)},r.toDisplayString(Se.label),47,pI))],64))),128))],10,fI)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref_key:"calendarWrapperRef",ref:b,class:"dp__instance_calendar",role:"document"},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(K.value),r.mergeProps({ref_key:"dynCmpRef",ref:x},s.value,{"flow-step":r.unref(R),onMount:r.unref(B),onUpdateFlowStep:r.unref(I),onResetFlow:r.unref(M),onFocusMenu:Z,onSelectDate:re[0]||(re[0]=Se=>X.$emit("select-date")),onDateUpdate:re[1]||(re[1]=Se=>X.$emit("date-update",Se)),onTooltipOpen:re[2]||(re[2]=Se=>X.$emit("tooltip-open",Se)),onTooltipClose:re[3]||(re[3]=Se=>X.$emit("tooltip-close",Se)),onAutoApply:re[4]||(re[4]=Se=>X.$emit("auto-apply",Se)),onRangeStart:re[5]||(re[5]=Se=>X.$emit("range-start",Se)),onRangeEnd:re[6]||(re[6]=Se=>X.$emit("range-end",Se)),onInvalidFixedRange:re[7]||(re[7]=Se=>X.$emit("invalid-fixed-range",Se)),onTimeUpdate:re[8]||(re[8]=Se=>X.$emit("time-update")),onAmPmChange:re[9]||(re[9]=Se=>X.$emit("am-pm-change",Se)),onTimePickerOpen:re[10]||(re[10]=Se=>X.$emit("time-picker-open",Se)),onTimePickerClose:Te,onRecalculatePosition:oe,onUpdateMonthYear:re[11]||(re[11]=Se=>X.$emit("update-month-year",Se)),onAutoApplyInvalid:re[12]||(re[12]=Se=>X.$emit("auto-apply-invalid",Se)),onInvalidDate:re[13]||(re[13]=Se=>X.$emit("invalid-date",Se)),onOverlayToggle:re[14]||(re[14]=Se=>X.$emit("overlay-toggle",Se)),"onUpdate:internalModelValue":re[15]||(re[15]=Se=>X.$emit("update:internal-model-value",Se))}),r.createSlots({_:2},[r.renderList(W.value,(Se,ut)=>({name:Se,fn:r.withCtx($t=>[r.renderSlot(X.$slots,Se,r.normalizeProps(r.guardReactiveProps({...$t})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),X.$slots["right-sidebar"]?(r.openBlock(),r.createElementBlock("div",mI,[r.renderSlot(X.$slots,"right-sidebar",r.normalizeProps(r.guardReactiveProps(q.value)))])):r.createCommentVNode("",!0),X.$slots["action-extra"]?(r.openBlock(),r.createElementBlock("div",hI,[X.$slots["action-extra"]?r.renderSlot(X.$slots,"action-extra",{key:0,selectCurrentDate:de}):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)],14,uI),!X.autoApply||r.unref(m).keepActionRow?(r.openBlock(),r.createBlock(hA,r.mergeProps({key:3,"menu-mount":v.value},s.value,{"calendar-width":E.value,onClosePicker:re[16]||(re[16]=Se=>X.$emit("close-picker")),onSelectDate:re[17]||(re[17]=Se=>X.$emit("select-date")),onInvalidSelect:re[18]||(re[18]=Se=>X.$emit("invalid-select")),onSelectNow:de}),r.createSlots({_:2},[r.renderList(r.unref(j),(Se,ut)=>({name:Se,fn:r.withCtx($t=>[r.renderSlot(X.$slots,Se,r.normalizeProps(r.guardReactiveProps({...$t})))])}))]),1040,["menu-mount","calendar-width"])):r.createCommentVNode("",!0)],46,sI)}}});var Vo=(e=>(e.center="center",e.left="left",e.right="right",e))(Vo||{});const vI=({menuRef:e,menuRefInner:t,inputRef:n,pickerWrapperRef:a,inline:o,emit:i,props:s,slots:l})=>{const{defaultedConfig:c}=Et(s),u=r.ref({}),d=r.ref(!1),f=r.ref({top:"0",left:"0"}),p=r.ref(!1),m=r.toRef(s,"teleportCenter");r.watch(m,()=>{f.value=JSON.parse(JSON.stringify({})),x()});const g=M=>{if(s.teleport){const $=M.getBoundingClientRect();return{left:$.left+window.scrollX,top:$.top+window.scrollY}}return{top:0,left:0}},y=(M,$)=>{f.value.left=`${M+$-u.value.width}px`},w=M=>{f.value.left=`${M}px`},b=(M,$)=>{s.position===Vo.left&&w(M),s.position===Vo.right&&y(M,$),s.position===Vo.center&&(f.value.left=`${M+$/2-u.value.width/2}px`)},E=M=>{const{width:$,height:K}=M.getBoundingClientRect(),{top:V,left:Z}=g(M);return{top:+V,left:+Z,width:$,height:K}},_=()=>{f.value.left="50%",f.value.top="50%",f.value.transform="translate(-50%, -50%)",f.value.position="fixed",delete f.value.opacity},v=()=>{const M=jt(n);f.value=s.altPosition(M)},x=(M=!0)=>{var $;if(!o.value.enabled){if(m.value)return _();if(s.altPosition!==null)return v();if(M){const K=s.teleport?($=t.value)==null?void 0:$.$el:e.value;K&&(u.value=K.getBoundingClientRect()),i("recalculate-position")}return z()}},C=({inputEl:M,left:$,width:K})=>{window.screen.width>768&&!d.value&&b($,K),A(M)},P=M=>{const{top:$,left:K,height:V,width:Z}=E(M);f.value.top=`${V+$+ +s.offset}px`,p.value=!1,d.value||(f.value.left=`${K+Z/2-u.value.width/2}px`),C({inputEl:M,left:K,width:Z})},O=M=>{const{top:$,left:K,width:V}=E(M);f.value.top=`${$-+s.offset-u.value.height}px`,p.value=!0,C({inputEl:M,left:K,width:V})},A=M=>{if(s.autoPosition){const{left:$,width:K}=E(M),{left:V,right:Z}=u.value;if(!d.value){if(Math.abs(V)!==Math.abs(Z)){if(V<=0)return d.value=!0,w($);if(Z>=document.documentElement.clientWidth)return d.value=!0,y($,K)}return b($,K)}}},L=()=>{const M=jt(n);if(M){if(s.autoPosition===Yn.top)return Yn.top;if(s.autoPosition===Yn.bottom)return Yn.bottom;const{height:$}=u.value,{top:K,height:V}=M.getBoundingClientRect(),Z=window.innerHeight-K-V,q=K;return $<=Z?Yn.bottom:$>Z&&$<=q?Yn.top:Z>=q?Yn.bottom:Yn.top}return Yn.bottom},U=M=>L()===Yn.bottom?P(M):O(M),z=()=>{const M=jt(n);if(M)return s.autoPosition?U(M):P(M)},R=function(M){if(M){const $=M.scrollHeight>M.clientHeight,K=window.getComputedStyle(M).overflowY.indexOf("hidden")!==-1;return $&&!K}return!0},I=function(M){return!M||M===document.body||M.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:R(M)?M:I(M.assignedSlot&&c.value.shadowDom?M.assignedSlot.parentNode:M.parentNode)},B=M=>{if(M)switch(s.position){case Vo.left:return{left:0,transform:"translateX(0)"};case Vo.right:return{left:`${M.width}px`,transform:"translateX(-100%)"};default:return{left:`${M.width/2}px`,transform:"translateX(-50%)"}}return{}};return{openOnTop:p,menuStyle:f,xCorrect:d,setMenuPosition:x,getScrollableParent:I,shadowRender:(M,$,K)=>{var V,Z,q;const oe=document.createElement("div"),j=(V=jt(n))==null?void 0:V.getBoundingClientRect();oe.setAttribute("id","dp--temp-container");const W=(Z=a.value)!=null&&Z.clientWidth?a.value:document.body;W.append(oe);const Y=B(j),H=c.value.shadowDom?Object.keys(l).filter(J=>["right-sidebar","left-sidebar","top-extra","action-extra"].includes(J)):Object.keys(l),T=r.h($,{...K,shadow:!0,style:{opacity:0,position:"absolute",...Y}},Object.fromEntries(H.map(J=>[J,l[J]])));M!=null&&(T.appContext=M.appContext),r.render(T,oe),u.value=(q=T.el)==null?void 0:q.getBoundingClientRect(),r.render(null,oe),W.removeChild(oe)}}},ua=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"hours-overlay-header",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-header",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-header",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]},{name:"top-extra",use:["shared","month-year"]},{name:"tp-inline-arrow-up",use:["shared","time"]},{name:"tp-inline-arrow-down",use:["shared","time"]},{name:"menu-header",use:["menu"]}],gI=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],yI={all:()=>ua,monthYear:()=>ua.filter(e=>e.use.includes("month-year")),input:()=>gI,timePicker:()=>ua.filter(e=>e.use.includes("time")),action:()=>ua.filter(e=>e.use.includes("action")),calendar:()=>ua.filter(e=>e.use.includes("calendar")),menu:()=>ua.filter(e=>e.use.includes("menu")),shared:()=>ua.filter(e=>e.use.includes("shared")),yearMode:()=>ua.filter(e=>e.use.includes("year-mode"))},In=(e,t,n)=>{const a=[];return yI[t]().forEach(o=>{e[o.name]&&a.push(o.name)}),n!=null&&n.length&&n.forEach(o=>{o.slot&&a.push(o.slot)}),a},Vs=e=>{const t=r.computed(()=>a=>e.value?a?e.value.open:e.value.close:""),n=r.computed(()=>a=>e.value?a?e.value.menuAppearTop:e.value.menuAppearBottom:"");return{transitionName:t,showTransition:!!e.value,menuTransition:n}},Fs=(e,t,n)=>{const{defaultedRange:a,defaultedTz:o}=Et(e),i=me(Cn(me(),o.value.timezone)),s=r.ref([{month:Ke(i),year:Fe(i)}]),l=p=>{const m={hours:Kr(i),minutes:ka(i),seconds:0};return a.value.enabled?[m[p],m[p]]:m[p]},c=r.reactive({hours:l("hours"),minutes:l("minutes"),seconds:l("seconds")});r.watch(a,(p,m)=>{p.enabled!==m.enabled&&(c.hours=l("hours"),c.minutes=l("minutes"),c.seconds=l("seconds"))},{deep:!0});const u=r.computed({get:()=>e.internalModelValue,set:p=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",p)}}),d=r.computed(()=>p=>s.value[p]?s.value[p].month:0),f=r.computed(()=>p=>s.value[p]?s.value[p].year:0);return r.watch(u,(p,m)=>{n&&JSON.stringify(p??{})!==JSON.stringify(m??{})&&n()},{deep:!0}),{calendars:s,time:c,modelValue:u,month:d,year:f,today:i}},bI=(e,t)=>{const{defaultedMultiCalendars:n,defaultedMultiDates:a,defaultedUI:o,defaultedHighlight:i,defaultedTz:s,propDates:l,defaultedRange:c}=Et(t),{isDisabled:u}=Ba(t),d=r.ref(null),f=r.ref(Cn(new Date,s.value.timezone)),p=T=>{!T.current&&t.hideOffsetDates||(d.value=T.value)},m=()=>{d.value=null},g=T=>Array.isArray(e.value)&&c.value.enabled&&e.value[0]&&d.value?T?Lt(d.value,e.value[0]):Mt(d.value,e.value[0]):!0,y=(T,J)=>{const le=()=>e.value?J?e.value[0]||null:e.value[1]:null,Oe=e.value&&Array.isArray(e.value)?le():null;return Xe(me(T.value),Oe)},w=T=>{const J=Array.isArray(e.value)?e.value[0]:null;return T?!Mt(d.value??null,J):!0},b=(T,J=!0)=>(c.value.enabled||t.weekPicker)&&Array.isArray(e.value)&&e.value.length===2?t.hideOffsetDates&&!T.current?!1:Xe(me(T.value),e.value[J?0:1]):c.value.enabled?y(T,J)&&w(J)||Xe(T.value,Array.isArray(e.value)?e.value[0]:null)&&g(J):!1,E=(T,J)=>{if(Array.isArray(e.value)&&e.value[0]&&e.value.length===1){const le=Xe(T.value,d.value);return J?Lt(e.value[0],T.value)&&le:Mt(e.value[0],T.value)&&le}return!1},_=T=>!e.value||t.hideOffsetDates&&!T.current?!1:c.value.enabled?t.modelAuto&&Array.isArray(e.value)?Xe(T.value,e.value[0]?e.value[0]:f.value):!1:a.value.enabled&&Array.isArray(e.value)?e.value.some(J=>Xe(J,T.value)):Xe(T.value,e.value?e.value:f.value),v=T=>{if(c.value.autoRange||t.weekPicker){if(d.value){if(t.hideOffsetDates&&!T.current)return!1;const J=Rn(d.value,+c.value.autoRange),le=Vr(me(d.value),t.weekStart);return t.weekPicker?Xe(le[1],me(T.value)):Xe(J,me(T.value))}return!1}return!1},x=T=>{if(c.value.autoRange||t.weekPicker){if(d.value){const J=Rn(d.value,+c.value.autoRange);if(t.hideOffsetDates&&!T.current)return!1;const le=Vr(me(d.value),t.weekStart);return t.weekPicker?Lt(T.value,le[0])&&Mt(T.value,le[1]):Lt(T.value,d.value)&&Mt(T.value,J)}return!1}return!1},C=T=>{if(c.value.autoRange||t.weekPicker){if(d.value){if(t.hideOffsetDates&&!T.current)return!1;const J=Vr(me(d.value),t.weekStart);return t.weekPicker?Xe(J[0],T.value):Xe(d.value,T.value)}return!1}return!1},P=T=>ks(e.value,d.value,T.value),O=()=>t.modelAuto&&Array.isArray(t.internalModelValue)?!!t.internalModelValue[0]:!1,A=()=>t.modelAuto?Ly(t.internalModelValue):!0,L=T=>{if(t.weekPicker)return!1;const J=c.value.enabled?!b(T)&&!b(T,!1):!0;return!u(T.value)&&!_(T)&&!(!T.current&&t.hideOffsetDates)&&J},U=T=>c.value.enabled?t.modelAuto?O()&&_(T):!1:_(T),z=T=>i.value?$P(T.value,l.value.highlight):!1,R=T=>{const J=u(T.value);return J&&(typeof i.value=="function"?!i.value(T.value,J):!i.value.options.highlightDisabled)},I=T=>{var J;return typeof i.value=="function"?i.value(T.value):(J=i.value.weekdays)==null?void 0:J.includes(T.value.getDay())},B=T=>(c.value.enabled||t.weekPicker)&&(!(n.value.count>0)||T.current)&&A()&&!(!T.current&&t.hideOffsetDates)&&!_(T)?P(T):!1,M=T=>{if(Array.isArray(e.value)&&e.value.length===1){const{before:J,after:le}=Xv(+c.value.maxRange,e.value[0]);return ui(T.value,J)||mo(T.value,le)}return!1},$=T=>{if(Array.isArray(e.value)&&e.value.length===1){const{before:J,after:le}=Xv(+c.value.minRange,e.value[0]);return ks([J,le],e.value[0],T.value)}return!1},K=T=>c.value.enabled&&(c.value.maxRange||c.value.minRange)?c.value.maxRange&&c.value.minRange?M(T)||$(T):c.value.maxRange?M(T):$(T):!1,V=T=>{const{isRangeStart:J,isRangeEnd:le}=j(T),Oe=c.value.enabled?J||le:!1;return{dp__cell_offset:!T.current,dp__pointer:!t.disabled&&!(!T.current&&t.hideOffsetDates)&&!u(T.value)&&!K(T),dp__cell_disabled:u(T.value)||K(T),dp__cell_highlight:!R(T)&&(z(T)||I(T))&&!U(T)&&!Oe&&!C(T)&&!(B(T)&&t.weekPicker)&&!le,dp__cell_highlight_active:!R(T)&&(z(T)||I(T))&&U(T),dp__today:!t.noToday&&Xe(T.value,f.value)&&T.current,"dp--past":Mt(T.value,f.value),"dp--future":Lt(T.value,f.value)}},Z=T=>({dp__active_date:U(T),dp__date_hover:L(T)}),q=T=>{if(e.value&&!Array.isArray(e.value)){const J=Vr(e.value,t.weekStart);return{...Y(T),dp__range_start:Xe(J[0],T.value),dp__range_end:Xe(J[1],T.value),dp__range_between_week:Lt(T.value,J[0])&&Mt(T.value,J[1])}}return{...Y(T)}},oe=T=>{if(e.value&&Array.isArray(e.value)){const J=Vr(e.value[0],t.weekStart),le=e.value[1]?Vr(e.value[1],t.weekStart):[];return{...Y(T),dp__range_start:Xe(J[0],T.value)||Xe(le[0],T.value),dp__range_end:Xe(J[1],T.value)||Xe(le[1],T.value),dp__range_between_week:Lt(T.value,J[0])&&Mt(T.value,J[1])||Lt(T.value,le[0])&&Mt(T.value,le[1]),dp__range_between:Lt(T.value,J[1])&&Mt(T.value,le[0])}}return{...Y(T)}},j=T=>{const J=n.value.count>0?T.current&&b(T)&&A():b(T)&&A(),le=n.value.count>0?T.current&&b(T,!1)&&A():b(T,!1)&&A();return{isRangeStart:J,isRangeEnd:le}},W=T=>{const{isRangeStart:J,isRangeEnd:le}=j(T);return{dp__range_start:J,dp__range_end:le,dp__range_between:B(T),dp__date_hover:Xe(T.value,d.value)&&!J&&!le&&!t.weekPicker,dp__date_hover_start:E(T,!0),dp__date_hover_end:E(T,!1)}},Y=T=>({...W(T),dp__cell_auto_range:x(T),dp__cell_auto_range_start:C(T),dp__cell_auto_range_end:v(T)}),H=T=>c.value.enabled?c.value.autoRange?Y(T):t.modelAuto?{...Z(T),...W(T)}:t.weekPicker?oe(T):W(T):t.weekPicker?q(T):Z(T);return{setHoverDate:p,clearHoverDate:m,getDayClassData:T=>t.hideOffsetDates&&!T.current?{}:{...V(T),...H(T),[t.dayClass?t.dayClass(T.value,t.internalModelValue):""]:!0,...o.value.calendarCell??{}}}},Ba=e=>{const{defaultedFilters:t,defaultedRange:n,propDates:a,defaultedMultiDates:o}=Et(e),i=I=>a.value.disabledDates?typeof a.value.disabledDates=="function"?a.value.disabledDates(me(I)):!!fc(I,a.value.disabledDates):!1,s=I=>a.value.maxDate?e.yearPicker?Fe(I)>Fe(a.value.maxDate):Lt(I,a.value.maxDate):!1,l=I=>a.value.minDate?e.yearPicker?Fe(I)<Fe(a.value.minDate):Mt(I,a.value.minDate):!1,c=I=>{const B=s(I),M=l(I),$=i(I),K=t.value.months.map(j=>+j).includes(Ke(I)),V=e.disabledWeekDays.length?e.disabledWeekDays.some(j=>+j===xT(I)):!1,Z=m(I),q=Fe(I),oe=q<+e.yearRange[0]||q>+e.yearRange[1];return!(B||M||$||K||oe||V||Z)},u=(I,B)=>Mt(...pa(a.value.minDate,I,B))||Xe(...pa(a.value.minDate,I,B)),d=(I,B)=>Lt(...pa(a.value.maxDate,I,B))||Xe(...pa(a.value.maxDate,I,B)),f=(I,B,M)=>{let $=!1;return a.value.maxDate&&M&&d(I,B)&&($=!0),a.value.minDate&&!M&&u(I,B)&&($=!0),$},p=(I,B,M,$)=>{let K=!1;return $&&(a.value.minDate||a.value.maxDate)?a.value.minDate&&a.value.maxDate?K=f(I,B,M):(a.value.minDate&&u(I,B)||a.value.maxDate&&d(I,B))&&(K=!0):K=!0,K},m=I=>Array.isArray(a.value.allowedDates)&&!a.value.allowedDates.length?!0:a.value.allowedDates?!fc(I,a.value.allowedDates,$y(e.monthPicker,e.yearPicker)):!1,g=I=>!c(I),y=I=>n.value.noDisabledRange?!yy({start:I[0],end:I[1]}).some(B=>g(B)):!0,w=I=>{if(I){const B=Fe(I);return B>=+e.yearRange[0]&&B<=e.yearRange[1]}return!0},b=(I,B)=>!!(Array.isArray(I)&&I[B]&&(n.value.maxRange||n.value.minRange)&&w(I[B])),E=(I,B,M=0)=>{if(b(B,M)&&w(I)){const $=hy(I,B[M]),K=jy(B[M],I),V=K.length===1?0:K.filter(q=>g(q)).length,Z=Math.abs($)-(n.value.minMaxRawRange?0:V);if(n.value.minRange&&n.value.maxRange)return Z>=+n.value.minRange&&Z<=+n.value.maxRange;if(n.value.minRange)return Z>=+n.value.minRange;if(n.value.maxRange)return Z<=+n.value.maxRange}return!0},_=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,v=I=>Array.isArray(I)?[I[0]?od(I[0]):null,I[1]?od(I[1]):null]:od(I),x=(I,B,M)=>I.find($=>+$.hours===Kr(B)&&$.minutes==="*"?!0:+$.minutes===ka(B)&&+$.hours===Kr(B))&&M,C=(I,B,M)=>{const[$,K]=I,[V,Z]=B;return!x($,V,M)&&!x(K,Z,M)&&M},P=(I,B)=>{const M=Array.isArray(B)?B:[B];return Array.isArray(e.disabledTimes)?Array.isArray(e.disabledTimes[0])?C(e.disabledTimes,M,I):!M.some($=>x(e.disabledTimes,$,I)):I},O=(I,B)=>{const M=Array.isArray(B)?[oo(B[0]),B[1]?oo(B[1]):void 0]:oo(B),$=!e.disabledTimes(M);return I&&$},A=(I,B)=>e.disabledTimes?Array.isArray(e.disabledTimes)?P(B,I):O(B,I):B,L=I=>{let B=!0;if(!I||_())return!0;const M=!a.value.minDate&&!a.value.maxDate?v(I):I;return(e.maxTime||a.value.maxDate)&&(B=Kv(e.maxTime,a.value.maxDate,"max",qt(M),B)),(e.minTime||a.value.minDate)&&(B=Kv(e.minTime,a.value.minDate,"min",qt(M),B)),A(I,B)},U=I=>{if(!e.monthPicker)return!0;let B=!0;const M=me(Qn(I));if(a.value.minDate&&a.value.maxDate){const $=me(Qn(a.value.minDate)),K=me(Qn(a.value.maxDate));return Lt(M,$)&&Mt(M,K)||Xe(M,$)||Xe(M,K)}if(a.value.minDate){const $=me(Qn(a.value.minDate));B=Lt(M,$)||Xe(M,$)}if(a.value.maxDate){const $=me(Qn(a.value.maxDate));B=Mt(M,$)||Xe(M,$)}return B},z=r.computed(()=>I=>!e.enableTimePicker||e.ignoreTimeValidation?!0:L(I)),R=r.computed(()=>I=>e.monthPicker?Array.isArray(I)&&(n.value.enabled||o.value.enabled)?!I.filter(B=>!U(B)).length:U(I):!0);return{isDisabled:g,validateDate:c,validateMonthYearInRange:p,isDateRangeAllowed:y,checkMinMaxRange:E,isValidTime:L,isTimeValid:z,isMonthValid:R}},nu=()=>{const e=r.computed(()=>(a,o)=>a?.includes(o)),t=r.computed(()=>(a,o)=>a.count?a.solo?!0:o===0:!0),n=r.computed(()=>(a,o)=>a.count?a.solo?!0:o===a.count-1:!0);return{hideNavigationButtons:e,showLeftIcon:t,showRightIcon:n}},wI=(e,t,n)=>{const a=r.ref(0),o=r.reactive({[ao.timePicker]:!e.enableTimePicker||e.timePicker||e.monthPicker,[ao.calendar]:!1,[ao.header]:!1}),i=r.computed(()=>e.monthPicker||e.timePicker),s=f=>{var p;if((p=e.flow)!=null&&p.length){if(!f&&i.value)return d();o[f]=!0,Object.keys(o).filter(m=>!o[m]).length||d()}},l=()=>{var f,p;(f=e.flow)!=null&&f.length&&a.value!==-1&&(a.value+=1,t("flow-step",a.value),d()),((p=e.flow)==null?void 0:p.length)===a.value&&r.nextTick().then(()=>c())},c=()=>{a.value=-1},u=(f,p,...m)=>{var g,y;e.flow[a.value]===f&&n.value&&((y=(g=n.value)[p])==null||y.call(g,...m))},d=(f=0)=>{f&&(a.value+=f),u(ln.month,"toggleMonthPicker",!0),u(ln.year,"toggleYearPicker",!0),u(ln.calendar,"toggleTimePicker",!1,!0),u(ln.time,"toggleTimePicker",!0,!0);const p=e.flow[a.value];(p===ln.hours||p===ln.minutes||p===ln.seconds)&&u(p,"toggleTimePicker",!0,!0,p)};return{childMount:s,updateFlowStep:l,resetFlow:c,handleFlow:d,flowStep:a}},kI={key:1,class:"dp__input_wrap"},_I=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],SI={key:2,class:"dp--clear-btn"},CI=["aria-label"],xI=r.defineComponent({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...Zc},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur","text-input"],setup(e,{expose:t,emit:n}){const a=n,o=e,{defaultedTextInput:i,defaultedAriaLabels:s,defaultedInline:l,defaultedConfig:c,defaultedRange:u,defaultedMultiDates:d,defaultedUI:f,getDefaultPattern:p,getDefaultStartTime:m}=Et(o),{checkMinMaxRange:g}=Ba(o),y=r.ref(),w=r.ref(null),b=r.ref(!1),E=r.ref(!1),_=r.computed(()=>({dp__pointer:!o.disabled&&!o.readonly&&!i.value.enabled,dp__disabled:o.disabled,dp__input_readonly:!i.value.enabled,dp__input:!0,dp__input_icon_pad:!o.hideInputIcon,dp__input_valid:typeof o.state=="boolean"?o.state:!1,dp__input_invalid:typeof o.state=="boolean"?!o.state:!1,dp__input_focus:b.value||o.isMenuOpen,dp__input_reg:!i.value.enabled,...f.value.input??{}})),v=()=>{a("set-input-date",null),o.clearable&&o.autoApply&&(a("set-empty-date"),y.value=null)},x=q=>{const oe=m();return VP(q,i.value.format??p(),oe??Hy({},o.enableSeconds),o.inputValue,E.value,o.formatLocale)},C=q=>{const{rangeSeparator:oe}=i.value,[j,W]=q.split(`${oe}`);if(j){const Y=x(j.trim()),H=W?x(W.trim()):void 0;if(mo(Y,H))return;const T=Y&&H?[Y,H]:[Y];g(H,T,0)&&(y.value=Y?T:null)}},P=()=>{E.value=!0},O=q=>{if(u.value.enabled)C(q);else if(d.value.enabled){const oe=q.split(";");y.value=oe.map(j=>x(j.trim())).filter(j=>j)}else y.value=x(q)},A=q=>{var oe;const j=typeof q=="string"?q:(oe=q.target)==null?void 0:oe.value;j!==""?(i.value.openMenu&&!o.isMenuOpen&&a("open"),O(j),a("set-input-date",y.value)):v(),E.value=!1,a("update:input-value",j),a("text-input",q,y.value)},L=q=>{i.value.enabled?(O(q.target.value),i.value.enterSubmit&&yf(y.value)&&o.inputValue!==""?(a("set-input-date",y.value,!0),y.value=null):i.value.enterSubmit&&o.inputValue===""&&(y.value=null,a("clear"))):R(q)},U=(q,oe)=>{i.value.enabled&&i.value.tabSubmit&&!oe&&O(q.target.value),i.value.tabSubmit&&yf(y.value)&&o.inputValue!==""?(a("set-input-date",y.value,!0,!0),y.value=null):i.value.tabSubmit&&o.inputValue===""&&(y.value=null,a("clear",!0))},z=()=>{b.value=!0,a("focus"),r.nextTick().then(()=>{var q;i.value.enabled&&i.value.selectOnFocus&&((q=w.value)==null||q.select())})},R=q=>{if(ma(q,c.value,!0),i.value.enabled&&i.value.openMenu&&!l.value.input){if(i.value.openMenu==="open"&&!o.isMenuOpen)return a("open");if(i.value.openMenu==="toggle")return a("toggle")}else i.value.enabled||a("toggle")},I=()=>{a("real-blur"),b.value=!1,(!o.isMenuOpen||l.value.enabled&&l.value.input)&&a("blur"),o.autoApply&&i.value.enabled&&y.value&&!o.isMenuOpen&&(a("set-input-date",y.value),a("select-date"),y.value=null)},B=q=>{ma(q,c.value,!0),a("clear")},M=()=>{a("close")},$=q=>{if(q.key==="Tab"&&U(q),q.key==="Enter"&&L(q),q.key==="Escape"&&i.value.escClose&&M(),!i.value.enabled){if(q.code==="Tab")return;q.preventDefault()}},K=()=>{var q;(q=w.value)==null||q.focus({preventScroll:!0})},V=q=>{y.value=q},Z=q=>{q.key===_t.tab&&U(q,!0)};return t({focusInput:K,setParsedDate:V}),(q,oe)=>{var j,W,Y;return r.openBlock(),r.createElementBlock("div",{onClick:R},[q.$slots.trigger&&!q.$slots["dp-input"]&&!r.unref(l).enabled?r.renderSlot(q.$slots,"trigger",{key:0}):r.createCommentVNode("",!0),!q.$slots.trigger&&(!r.unref(l).enabled||r.unref(l).input)?(r.openBlock(),r.createElementBlock("div",kI,[q.$slots["dp-input"]&&!q.$slots.trigger&&(!r.unref(l).enabled||r.unref(l).enabled&&r.unref(l).input)?r.renderSlot(q.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:A,onEnter:L,onTab:U,onClear:B,onBlur:I,onKeypress:$,onPaste:P,onFocus:z,openMenu:()=>q.$emit("open"),closeMenu:()=>q.$emit("close"),toggleMenu:()=>q.$emit("toggle")}):r.createCommentVNode("",!0),q.$slots["dp-input"]?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("input",{key:1,id:q.uid?`dp-input-${q.uid}`:void 0,ref_key:"inputRef",ref:w,"data-test-id":"dp-input",name:q.name,class:r.normalizeClass(_.value),inputmode:r.unref(i).enabled?"text":"none",placeholder:q.placeholder,disabled:q.disabled,readonly:q.readonly,required:q.required,value:e.inputValue,autocomplete:q.autocomplete,"aria-label":(j=r.unref(s))==null?void 0:j.input,"aria-disabled":q.disabled||void 0,"aria-invalid":q.state===!1?!0:void 0,onInput:A,onBlur:I,onFocus:z,onKeypress:$,onKeydown:oe[0]||(oe[0]=H=>$(H)),onPaste:P},null,42,_I)),r.createElementVNode("div",{onClick:oe[3]||(oe[3]=H=>a("toggle"))},[q.$slots["input-icon"]&&!q.hideInputIcon?(r.openBlock(),r.createElementBlock("span",{key:0,class:"dp__input_icon",onClick:oe[1]||(oe[1]=H=>a("toggle"))},[r.renderSlot(q.$slots,"input-icon")])):r.createCommentVNode("",!0),!q.$slots["input-icon"]&&!q.hideInputIcon&&!q.$slots["dp-input"]?(r.openBlock(),r.createBlock(r.unref(Ai),{key:1,"aria-label":(W=r.unref(s))==null?void 0:W.calendarIcon,class:"dp__input_icon dp__input_icons",onClick:oe[2]||(oe[2]=H=>a("toggle"))},null,8,["aria-label"])):r.createCommentVNode("",!0)]),q.$slots["clear-icon"]&&(q.alwaysClearable||e.inputValue&&q.clearable&&!q.disabled&&!q.readonly)?(r.openBlock(),r.createElementBlock("span",SI,[r.renderSlot(q.$slots,"clear-icon",{clear:B})])):r.createCommentVNode("",!0),!q.$slots["clear-icon"]&&(q.alwaysClearable||q.clearable&&e.inputValue&&!q.disabled&&!q.readonly)?(r.openBlock(),r.createElementBlock("button",{key:3,"aria-label":(Y=r.unref(s))==null?void 0:Y.clearInput,class:"dp--clear-btn",type:"button",onKeydown:oe[4]||(oe[4]=H=>r.unref(mn)(H,()=>B(H),!0,Z)),onClick:oe[5]||(oe[5]=r.withModifiers(H=>B(H),["prevent"]))},[r.createVNode(r.unref(Oy),{class:"dp__input_icons","data-test-id":"clear-icon"})],40,CI)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)])}}}),EI=typeof window<"u"?window:void 0,dd=()=>{},TI=e=>r.getCurrentScope()?(r.onScopeDispose(e),!0):!1,PI=(e,t,n,a)=>{if(!e)return dd;let o=dd;const i=r.watch(()=>r.unref(e),l=>{o(),l&&(l.removeEventListener(t,n),l.addEventListener(t,n,a),o=()=>{l.removeEventListener(t,n,a),o=dd})},{immediate:!0,flush:"post"}),s=()=>{i(),o()};return TI(s),s},AI=(e,t,n,a={})=>{const{window:o=EI,event:i="pointerdown"}=a;return o?PI(o,i,s=>{const l=jt(e),c=jt(t);!l||!c||l===s.target||s.composedPath().includes(l)||s.composedPath().includes(c)||n(s)},{passive:!0}):void 0},II=["data-dp-mobile"],MI=r.defineComponent({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...Zc},emits:["update:model-value","update:model-timezone-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","date-update","invalid-date","overlay-toggle","text-input"],setup(e,{expose:t,emit:n}){const a=n,o=e,i=r.useSlots(),s=r.ref(!1),l=r.toRef(o,"modelValue"),c=r.toRef(o,"timezone"),u=r.ref(null),d=r.ref(null),f=r.ref(null),p=r.ref(!1),m=r.ref(null),g=r.ref(!1),y=r.ref(!1),w=r.ref(!1),b=r.ref(!1),{setMenuFocused:E,setShiftKey:_}=Yy(),{clearArrowNav:v}=Oa(),{validateDate:x,isValidTime:C}=Ba(o),{defaultedTransitions:P,defaultedTextInput:O,defaultedInline:A,defaultedConfig:L,defaultedRange:U,defaultedMultiDates:z}=Et(o),{menuTransition:R,showTransition:I}=Vs(P),{isMobile:B}=eb(L),M=r.getCurrentInstance();r.onMounted(()=>{T(o.modelValue),r.nextTick().then(()=>{if(!A.value.enabled){const ne=j(m.value);ne?.addEventListener("scroll",fe),window?.addEventListener("resize",ce)}}),A.value.enabled&&(s.value=!0),window?.addEventListener("keyup",Ae),window?.addEventListener("keydown",pe)}),r.onUnmounted(()=>{if(!A.value.enabled){const ne=j(m.value);ne?.removeEventListener("scroll",fe),window?.removeEventListener("resize",ce)}window?.removeEventListener("keyup",Ae),window?.removeEventListener("keydown",pe)});const $=In(i,"all",o.presetDates),K=In(i,"input");r.watch([l,c],()=>{T(l.value)},{deep:!0});const{openOnTop:V,menuStyle:Z,xCorrect:q,setMenuPosition:oe,getScrollableParent:j,shadowRender:W}=vI({menuRef:u,menuRefInner:d,inputRef:f,pickerWrapperRef:m,inline:A,emit:a,props:o,slots:i}),{inputValue:Y,internalModelValue:H,parseExternalModelValue:T,emitModelValue:J,formatInputValue:le,checkBeforeEmit:Oe}=dA(a,o,p),ee=r.computed(()=>({dp__main:!0,dp__theme_dark:o.dark,dp__theme_light:!o.dark,dp__flex_display:A.value.enabled,"dp--flex-display-collapsed":w.value,dp__flex_display_with_input:A.value.input})),Te=r.computed(()=>o.dark?"dp__theme_dark":"dp__theme_light"),ae=r.computed(()=>o.teleport?{to:typeof o.teleport=="boolean"?"body":o.teleport,disabled:!o.teleport||A.value.enabled}:{}),ue=r.computed(()=>({class:"dp__outer_menu_wrap"})),D=r.computed(()=>A.value.enabled&&(o.timePicker||o.monthPicker||o.yearPicker||o.quarterPicker)),de=()=>{var ne,he;return((he=(ne=f.value)==null?void 0:ne.$el)==null?void 0:he.getBoundingClientRect())??{width:0,left:0,right:0}},fe=()=>{s.value&&(L.value.closeOnScroll?ut():oe())},ce=()=>{var ne;s.value&&oe();const he=((ne=d.value)==null?void 0:ne.$el.getBoundingClientRect().width)??0;w.value=document.body.offsetWidth<=he},Ae=ne=>{ne.key==="Tab"&&!A.value.enabled&&!o.teleport&&L.value.tabOutClosesMenu&&(m.value.contains(document.activeElement)||ut()),y.value=ne.shiftKey},pe=ne=>{y.value=ne.shiftKey},Ie=()=>{!o.disabled&&!o.readonly&&(W(M,e0,o),oe(!1),s.value=!0,s.value&&a("open"),s.value||Se(),T(o.modelValue))},xe=()=>{var ne,he;Y.value="",Se(),(ne=d.value)==null||ne.onValueCleared(),(he=f.value)==null||he.setParsedDate(null),a("update:model-value",null),a("update:model-timezone-value",null),a("cleared"),L.value.closeOnClearValue&&ut()},X=()=>{const ne=H.value;return!ne||!Array.isArray(ne)&&x(ne)?!0:Array.isArray(ne)?z.value.enabled||ne.length===2&&x(ne[0])&&x(ne[1])?!0:U.value.partialRange&&!o.timePicker?x(ne[0]):!1:!1},re=()=>{Oe()&&X()?(J(),ut()):a("invalid-select",H.value)},ye=ne=>{Ze(),J(),L.value.closeOnAutoApply&&!ne&&ut()},Ze=()=>{f.value&&O.value.enabled&&f.value.setParsedDate(H.value)},ct=(ne=!1)=>{o.autoApply&&C(H.value)&&X()&&(U.value.enabled&&Array.isArray(H.value)?(U.value.partialRange||H.value.length===2)&&ye(ne):ye(ne))},Se=()=>{O.value.enabled||(H.value=null)},ut=(ne=!1)=>{var he,Ce;ne&&H.value&&L.value.setDateOnMenuClose&&re(),A.value.enabled||(s.value&&(s.value=!1,q.value=!1,E(!1),_(!1),v(),a("closed"),Y.value&&T(l.value)),Se(),a("blur"),(Ce=(he=d.value)==null?void 0:he.$el)==null||Ce.remove())},$t=(ne,he,Ce=!1)=>{if(!ne){H.value=null;return}const st=Array.isArray(ne)?!ne.some(Ut=>!x(Ut)):x(ne),vt=C(ne);st&&vt?(b.value=!0,H.value=ne,he?(g.value=Ce,re(),a("text-submit")):o.autoApply&&ct(),r.nextTick().then(()=>{b.value=!1})):a("invalid-date",ne)},xn=()=>{o.autoApply&&C(H.value)&&J(),Ze()},zt=()=>s.value?ut():Ie(),Kt=ne=>{H.value=ne},te=()=>{O.value.enabled&&(p.value=!0,le()),a("focus")},_e=()=>{if(O.value.enabled&&(p.value=!1,T(o.modelValue),g.value)){const ne=RP(m.value,y.value);ne?.focus()}a("blur")},Ee=ne=>{d.value&&d.value.updateMonthYear(0,{month:qv(ne.month),year:qv(ne.year)})},He=ne=>{T(ne??o.modelValue)},G=(ne,he)=>{var Ce;(Ce=d.value)==null||Ce.switchView(ne,he)},se=(ne,he)=>L.value.onClickOutside?L.value.onClickOutside(ne,he):ut(!0),be=(ne=0)=>{var he;(he=d.value)==null||he.handleFlow(ne)},Re=()=>u;return AI(u,f,ne=>se(X,ne)),t({closeMenu:ut,selectDate:re,clearValue:xe,openMenu:Ie,onScroll:fe,formatInputValue:le,updateInternalModelValue:Kt,setMonthYear:Ee,parseModel:He,switchView:G,toggleMenu:zt,handleFlow:be,getDpWrapMenuRef:Re}),(ne,he)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"pickerWrapperRef",ref:m,class:r.normalizeClass(ee.value),"data-datepicker-instance":"","data-dp-mobile":r.unref(B)},[r.createVNode(xI,r.mergeProps({ref_key:"inputRef",ref:f,"input-value":r.unref(Y),"onUpdate:inputValue":he[0]||(he[0]=Ce=>r.isRef(Y)?Y.value=Ce:null),"is-menu-open":s.value},ne.$props,{onClear:xe,onOpen:Ie,onSetInputDate:$t,onSetEmptyDate:r.unref(J),onSelectDate:re,onToggle:zt,onClose:ut,onFocus:te,onBlur:_e,onRealBlur:he[1]||(he[1]=Ce=>p.value=!1),onTextInput:he[2]||(he[2]=Ce=>ne.$emit("text-input",Ce))}),r.createSlots({_:2},[r.renderList(r.unref(K),(Ce,st)=>({name:Ce,fn:r.withCtx(vt=>[r.renderSlot(ne.$slots,Ce,r.normalizeProps(r.guardReactiveProps(vt)))])}))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),(r.openBlock(),r.createBlock(r.resolveDynamicComponent(ne.teleport?r.Teleport:"div"),r.normalizeProps(r.guardReactiveProps(ae.value)),{default:r.withCtx(()=>[r.createVNode(r.Transition,{name:r.unref(R)(r.unref(V)),css:r.unref(I)&&!r.unref(A).enabled},{default:r.withCtx(()=>[s.value?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,ref_key:"dpWrapMenuRef",ref:u},ue.value,{class:{"dp--menu-wrapper":!r.unref(A).enabled},style:r.unref(A).enabled?void 0:r.unref(Z)}),[r.createVNode(e0,r.mergeProps({ref_key:"dpMenuRef",ref:d},ne.$props,{"internal-model-value":r.unref(H),"onUpdate:internalModelValue":he[3]||(he[3]=Ce=>r.isRef(H)?H.value=Ce:null),class:{[Te.value]:!0,"dp--menu-wrapper":ne.teleport},"open-on-top":r.unref(V),"no-overlay-focus":D.value,collapse:w.value,"get-input-rect":de,"is-text-input-date":b.value,onClosePicker:ut,onSelectDate:re,onAutoApply:ct,onTimeUpdate:xn,onFlowStep:he[4]||(he[4]=Ce=>ne.$emit("flow-step",Ce)),onUpdateMonthYear:he[5]||(he[5]=Ce=>ne.$emit("update-month-year",Ce)),onInvalidSelect:he[6]||(he[6]=Ce=>ne.$emit("invalid-select",r.unref(H))),onAutoApplyInvalid:he[7]||(he[7]=Ce=>ne.$emit("invalid-select",Ce)),onInvalidFixedRange:he[8]||(he[8]=Ce=>ne.$emit("invalid-fixed-range",Ce)),onRecalculatePosition:r.unref(oe),onTooltipOpen:he[9]||(he[9]=Ce=>ne.$emit("tooltip-open",Ce)),onTooltipClose:he[10]||(he[10]=Ce=>ne.$emit("tooltip-close",Ce)),onTimePickerOpen:he[11]||(he[11]=Ce=>ne.$emit("time-picker-open",Ce)),onTimePickerClose:he[12]||(he[12]=Ce=>ne.$emit("time-picker-close",Ce)),onAmPmChange:he[13]||(he[13]=Ce=>ne.$emit("am-pm-change",Ce)),onRangeStart:he[14]||(he[14]=Ce=>ne.$emit("range-start",Ce)),onRangeEnd:he[15]||(he[15]=Ce=>ne.$emit("range-end",Ce)),onDateUpdate:he[16]||(he[16]=Ce=>ne.$emit("date-update",Ce)),onInvalidDate:he[17]||(he[17]=Ce=>ne.$emit("invalid-date",Ce)),onOverlayToggle:he[18]||(he[18]=Ce=>ne.$emit("overlay-toggle",Ce)),onMenuBlur:he[19]||(he[19]=Ce=>ne.$emit("blur"))}),r.createSlots({_:2},[r.renderList(r.unref($),(Ce,st)=>({name:Ce,fn:r.withCtx(vt=>[r.renderSlot(ne.$slots,Ce,r.normalizeProps(r.guardReactiveProps({...vt})))])}))]),1040,["internal-model-value","class","open-on-top","no-overlay-focus","collapse","is-text-input-date","onRecalculatePosition"])],16)):r.createCommentVNode("",!0)]),_:3},8,["name","css"])]),_:3},16))],10,II))}}),Jp=(()=>{const e=MI;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),NI=Object.freeze(Object.defineProperty({__proto__:null,default:Jp},Symbol.toStringTag,{value:"Module"}));Object.entries(NI).forEach(([e,t])=>{e!=="default"&&(Jp[e]=t)});var OI=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCommentChange","onCompositionEnd","onCompositionStart","onCompositionUpdate","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onInput","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],BI=function(e){return OI.map(function(t){return t.toLowerCase()}).indexOf(e.toLowerCase())!==-1},LI=function(e,t,n){Object.keys(t).filter(BI).forEach(function(a){var o=t[a];typeof o=="function"&&(a==="onInit"?o(e,n):n.on(a.substring(2),function(i){return o(i,n)}))})},DI=function(e,t,n,a){var o=e.modelEvents?e.modelEvents:null,i=Array.isArray(o)?o.join(" "):o;r.watch(a,function(s,l){n&&typeof s=="string"&&s!==l&&s!==n.getContent({format:e.outputFormat})&&n.setContent(s)}),n.on(i||"change input undo redo",function(){t.emit("update:modelValue",n.getContent({format:e.outputFormat}))})},RI=function(e,t,n,a,o,i){a.setContent(i()),n.attrs["onUpdate:modelValue"]&&DI(t,n,a,o),LI(e,n.attrs,a)},t0=0,tb=function(e){var t=Date.now(),n=Math.floor(Math.random()*1e9);return t0++,e+"_"+n+t0+String(t)},$I=function(e){return e!==null&&e.tagName.toLowerCase()==="textarea"},n0=function(e){return typeof e>"u"||e===""?[]:Array.isArray(e)?e:e.split(" ")},zI=function(e,t){return n0(e).concat(n0(t))},VI=function(e){return e==null},r0=function(e){var t;return typeof((t=e.options)===null||t===void 0?void 0:t.set)=="function"&&e.options.isRegistered("disabled")},a0=function(){return{listeners:[],scriptId:tb("tiny-script"),scriptLoaded:!1}},FI=function(){var e=a0(),t=function(o,i,s,l){var c=i.createElement("script");c.referrerPolicy="origin",c.type="application/javascript",c.id=o,c.src=s;var u=function(){c.removeEventListener("load",u),l()};c.addEventListener("load",u),i.head&&i.head.appendChild(c)},n=function(o,i,s){e.scriptLoaded?s():(e.listeners.push(s),o.getElementById(e.scriptId)||t(e.scriptId,o,i,function(){e.listeners.forEach(function(l){return l()}),e.scriptLoaded=!0}))},a=function(){e=a0()};return{load:n,reinitialize:a}},jI=FI(),HI=function(){return typeof window<"u"?window:global},ja=function(){var e=HI();return e&&e.tinymce?e.tinymce:null},UI={apiKey:String,licenseKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,readonly:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(e){return e==="html"||e==="text"}}},pr=function(){return pr=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},pr.apply(this,arguments)},WI=function(e,t,n,a){return e(a||"div",{id:t,ref:n})},qI=function(e,t,n){return e("textarea",{id:t,visibility:"hidden",ref:n})},fd={selector:void 0,target:void 0},pd=function(e,t){var n;typeof((n=e.mode)===null||n===void 0?void 0:n.set)=="function"?e.mode.set(t):e.setMode(t)},YI=r.defineComponent({props:UI,setup:function(e,t){var n=e.init?pr(pr({},e.init),fd):pr({},fd),a=r.toRefs(e),o=a.disabled,i=a.readonly,s=a.modelValue,l=a.tagName,c=r.ref(null),u=null,d=e.id||tb("tiny-vue"),f=e.init&&e.init.inline||e.inline,p=!!t.attrs["onUpdate:modelValue"],m=!0,g=e.initialValue?e.initialValue:"",y="",w=function(_){return p?function(){return s?.value?s.value:""}:function(){return _?g:y}},b=function(){var _=w(m),v=pr(pr({},n),{disabled:e.disabled,readonly:e.readonly,target:c.value,plugins:zI(n.plugins,e.plugins),toolbar:e.toolbar||n.toolbar,inline:f,license_key:e.licenseKey,setup:function(x){u=x,!r0(u)&&e.disabled===!0&&pd(u,"readonly"),x.on("init",function(C){return RI(C,e,t,x,s,_)}),typeof n.setup=="function"&&n.setup(x)}});$I(c.value)&&(c.value.style.visibility=""),ja().init(v),m=!1};r.watch(i,function(_){u!==null&&pd(u,_?"readonly":"design")}),r.watch(o,function(_){u!==null&&(r0(u)?u.options.set("disabled",_):pd(u,_?"readonly":"design"))}),r.watch(l,function(_){var v;u&&(p||(y=u.getContent()),(v=ja())===null||v===void 0||v.remove(u),r.nextTick(function(){return b()}))}),r.onMounted(function(){if(ja()!==null)b();else if(c.value&&c.value.ownerDocument){var _=e.cloudChannel?e.cloudChannel:"8",v=e.apiKey?e.apiKey:"no-api-key",x=VI(e.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(v,"/tinymce/").concat(_,"/tinymce.min.js"):e.tinymceScriptSrc;jI.load(c.value.ownerDocument,x,b)}}),r.onBeforeUnmount(function(){ja()!==null&&ja().remove(u)}),f||(r.onActivated(function(){m||b()}),r.onDeactivated(function(){var _;u&&(p||(y=u.getContent()),(_=ja())===null||_===void 0||_.remove(u))}));var E=function(_){var v;u&&(y=u.getContent(),(v=ja())===null||v===void 0||v.remove(u),n=pr(pr(pr({},n),_),fd),r.nextTick(function(){return b()}))};return t.expose({rerender:E,getEditor:function(){return u}}),function(){return f?WI(r.h,d,c,e.tagName):qI(r.h,d,c)}}});const GI={class:"relative w-full"},KI=["value","placeholder"],XI={key:0,class:"pointer-events-none absolute inset-0 flex items-center px-2 peer-focus:hidden","data-test-location-labels":""},JI={class:"flex space-x-2"},QI=r.defineComponent({inheritAttrs:!1,__name:"LocationInput",props:{placeholder:{default:""},placeOptions:{default:null},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,o=r.ref(null),i=r.ref(""),s=r.computed(()=>!!n.modelValue?.postcode||!!n.modelValue?.street||!!n.modelValue?.number);return r.onMounted(async()=>{if(!o.value)return;if(!window?.google){console.error("Google not defined. use composable useGoogleApi at setup");return}const{Autocomplete:l}=await google.maps.importLibrary("places"),c=new l(o.value,{strictBounds:!1,types:["address"],componentRestrictions:{country:"nl"},...n.placeOptions});c.addListener("place_changed",()=>{i.value="";const u=c.getPlace(),d=u.geometry?.location,f=u.address_components??[],p=d?.lat(),m=d?.lng(),g=f.find(x=>x.types.includes("postal_code"))?.long_name,y=f.find(x=>x.types.includes("route"))?.long_name,w=parseInt(f.find(x=>x.types.includes("street_number"))?.long_name.split(/(\d*)(.*)/s)?.[1]??"",10),b=f.find(x=>x.types.includes("street_number"))?.long_name.split(/(\d*)(.*)/s)?.[2],E=f.find(x=>x.types.includes("locality"))?.long_name,_=f.find(x=>x.types.includes("administrative_area_level_1"))?.long_name,v=f.find(x=>x.types.includes("administrative_area_level_1"))?.short_name;o.value?.blur(),a("update:modelValue",{postcode:g,street:y,number:w>0?w:void 0,numberSuffix:b,city:E,province:_,provinceShort:v,lat:p,lng:m})})}),(l,c)=>(r.openBlock(),r.createElementBlock("div",GI,[r.createElementVNode("input",r.mergeProps({ref_key:"input",ref:o,value:i.value,placeholder:s.value?"":l.placeholder},{...l.$attrs},{class:"peer text-zinc-900",onKeydown:c[0]||(c[0]=r.withKeys(r.withModifiers(()=>{},["prevent"]),["enter"]))}),null,16,KI),s.value?(r.openBlock(),r.createElementBlock("div",XI,[r.createElementVNode("div",JI,[r.createVNode(r.unref(sc),{class:"empty:hidden","data-test-street-label":""},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(l.modelValue?.street)+" "+r.toDisplayString(l.modelValue?.number)+r.toDisplayString(l.modelValue?.numberSuffix),1)]),_:1}),r.createVNode(r.unref(sc),{class:"empty:hidden","data-test-postcode-label":""},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(l.modelValue?.postcode),1)]),_:1})])])):r.createCommentVNode("",!0)]))}}),ZI=["multiple"],eM=r.defineComponent({inheritAttrs:!1,__name:"FileInput",props:{modelValue:{},multiple:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,o=r.computed({get:()=>n.modelValue,set:s=>a("update:modelValue",s)});function i(s){const c=s.target.files;c&&(o.value=Array.from(c))}return(s,l)=>(r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("label",null,[r.createElementVNode("input",r.mergeProps({...s.$attrs},{multiple:s.multiple,type:"file",class:"hidden","data-test-input":"",onChange:i}),null,16,ZI),r.renderSlot(s.$slots,"default",{},()=>[r.createVNode(r.unref(or),{as:"span","color-type":"secondary",class:"size-10 p-2.5!"},{default:r.withCtx(()=>[r.createVNode(r.unref(yn),{icon:r.unref(bn).far?.paperclip,class:"size-5"},null,8,["icon"])]),_:1})])])]))}}),tM={disabled:!1,readonly:!1,loading:!1,required:!1,multiple:!1,hasError:!1,native:!1,label:void 0,plain:!1,custom:!1,errorMessage:"",modelModifiers:()=>({})};function nM(e,t=!1){return t?"input":Qa(e)?Jp:fy(e)?YI:cc(e)?QI:e==="file"?eM:e==="textarea"?"textarea":"input"}function wf(e){return e==="license"}function rM(e,t,n){return Qc(e)&&(!!t.default||!!n)}function pc(e,t,n,a,o,i,s){return Qc(t)||wf(t)||e==="leading"&&cc(t)?!1:e==="trailing"?!!s.trailingIcon||Qa(t)&&!a&&!o&&!i||cc(t)&&!a||t==="search"&&!a||n&&!s.leadingIcon:!!s[`${e}Icon`]}const aM=`block w-full appearance-none rounded-lg
610
610
  placeholder:text-zinc-300 focus:outline-hidden text-base
611
- disabled:cursor-not-allowed disabled:border-zinc-100 disabled:!bg-zinc-50`;function oM(e,t,n,a,o,i,s,l,c){if(Qc(e))return rT(e,o);const u=(c?.class??"").includes("text-center"),d=pc("leading",e,a,s,t,n,l),f=pc("trailing",e,a,s,t,n,l);return{"border-zinc-300":!o,"border-zinc-100! bg-zinc-50!":t,"px-10":u&&(d||f),"pl-10 pr-5 group-aria-expanded:pl-7":d&&!u,"pr-10 pl-3":f&&!u,"px-3":!d&&!f,"pr-0!":Qa(e),"pl-0!":!d&&Qa(e),[aM]:!s,"block w-full appearance-none bg-transparent focus:outline-hidden focus-visible:outline-hidden":s,"py-3":!Qa(e),"h-[42px]":e!=="textarea","h-24":e==="textarea","border-error text-error placeholder-error focus:ring-error focus:border-error":o,"text-center bg-transparent text-lg uppercase":wf(e),"border bg-white focus:ring-1 focus:ring-zinc-300 hover:bg-zinc-100!":!wf(e)&&!s,"border ring-1 ring-zinc-300":i&&!s,"read-only:cursor-default read-only:border-zinc-300 read-only:bg-zinc-50":!Qa(e)}}const iM=["type","tabindex"],sM=["value","tabindex"],lM=r.defineComponent({__name:"Input",props:{modelValue:{},tabindex:{},type:{},custom:{type:Boolean},native:{type:Boolean}},emits:["update:modelValue","open"],setup(e,{emit:t}){const n=e,a=t,o=r.computed({get:()=>n.modelValue,set:l=>a("update:modelValue",l)}),i=r.computed(()=>nM(n.type,n.native));function s(l){o.value=l.target.value}return(l,c)=>i.value==="input"?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:0,"onUpdate:modelValue":c[0]||(c[0]=u=>o.value=u),type:l.type,tabindex:l.tabindex,"data-test-input":""},null,8,iM)),[[r.vShow,!l.custom],[r.vModelDynamic,o.value]]):i.value==="textarea"?(r.openBlock(),r.createElementBlock("textarea",{key:1,value:l.modelValue,tabindex:l.tabindex,"data-test-textarea":"",onInput:s},null,40,sM)):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.value),{key:2,modelValue:o.value,"onUpdate:modelValue":c[1]||(c[1]=u=>o.value=u),tabindex:l.tabindex,onOpen:c[2]||(c[2]=()=>a("open"))},{default:r.withCtx(()=>[r.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3},40,["modelValue","tabindex"]))}}),cM=Dn(lM,[["__scopeId","data-v-ed50e679"]]),uM=["aria-expanded"],dM=["data-error"],fM=["data-error"],nb=r.defineComponent({inheritAttrs:!1,__name:"AppInput",props:r.mergeDefaults({type:{},modelValue:{},modelModifiers:{},readonly:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean},custom:{type:Boolean},required:{type:Boolean},hasError:{type:Boolean},native:{type:Boolean},plain:{type:Boolean},errorMessage:{},label:{},tabindex:{},wrapperClasses:{},errorWrapperClasses:{},inputWrapperClasses:{},iconClasses:{},labelClasses:{},init:{}},tM),emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,i=`input-${B7()}`,s=r.ref(!1),l=r.ref(!1),c=r.useAttrs(),u=r.computed({get:()=>{if(n.modelModifiers.dotToComma){const A=String(n.modelValue).replace(/,/g,".");return!l.value&&parseFloat(A)?String(parseFloat(A).toFixed(2)).replace(/\./g,","):String(n.modelValue).replace(/\./g,",")}return n.modelValue},set:A=>{n.modelModifiers.dotToComma?a("update:modelValue",String(A).replace(/,/g,".")):a("update:modelValue",A)}}),d=r.computed(()=>Qa(n.type)),f=r.computed(()=>fy(n.type)),p=r.computed(()=>Qc(n.type)),m=r.computed(()=>cc(n.type)),v=r.computed(()=>{if(d.value){const A=n.type;return r.h(yn,{icon:bn.far?.[G9[A]],size:"xs",class:"size-4"})}if(m.value)return r.h(yn,{icon:bn.far?.["location-dot"],size:"xs"});if(n.type==="search")return r.h(yn,{icon:bn.far?.["magnifying-glass"],size:"xs",class:"size-4"})}),y=r.computed(()=>{const A=n.type;return d.value?X9(A,i):void 0}),w=r.computed(()=>{const A=n.type,L=Q9(A);return f.value?{...L,init:{...L.init,...n.init}}:void 0}),b=r.computed(()=>n.type==="license"?"text":n.type),E=r.computed(()=>({id:i,type:b.value,required:n.required,multiple:n.multiple,disabled:n.disabled,readonly:n.readonly})),_=r.computed(()=>n.type==="license"?r.h(db,{licensePlateClasses:"p-0!"}):r.h("div")),g=r.computed(()=>{const A=n.inputWrapperClasses,L=n.type==="license"?"items-stretch":"relative w-full items-center justify-center";return`${A} ${L}`});function x(){u.value=c.value}function C(A){if(n.modelModifiers.dotToComma){const L=A.key;/[\d,.]/.test(L)||A.preventDefault()}}function P(){l.value=!1,n.modelModifiers.dotToComma&&parseFloat(String(u.value))&&(u.value=String(parseFloat(String(u.value).replace(/,/g,".")).toFixed(2)).replace(/\./g,","))}function O(){l.value=!0}return(A,L)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([A.wrapperClasses,"group"]),"aria-expanded":A.plain},[(A.label||A.$slots.label)&&!p.value?(r.openBlock(),r.createBlock(r.unref(om),{key:0,type:A.type,"has-error":A.hasError,disabled:A.disabled,for:d.value?`dp-input-${i}`:i,class:r.normalizeClass(A.labelClasses)},{default:r.withCtx(()=>[r.renderSlot(A.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(A.label),1)])]),_:3},8,["type","has-error","disabled","for","class"])):r.createCommentVNode("",!0),(r.openBlock(),r.createBlock(r.resolveDynamicComponent(_.value),{class:r.normalizeClass([g.value,"flex"])},{default:r.withCtx(()=>[r.unref(pc)("leading",A.type,A.loading,A.plain,A.disabled,A.readonly,A.$slots)?(r.openBlock(),r.createBlock(Bv,{key:0,loading:A.loading,class:r.normalizeClass([A.iconClasses,"left-3.5 top-2.5"]),"data-test-leading-icon":""},{default:r.withCtx(()=>[r.renderSlot(A.$slots,"leadingIcon")]),_:3},8,["loading","class"])):r.createCommentVNode("",!0),r.createVNode(cM,r.mergeProps({modelValue:u.value,"onUpdate:modelValue":L[0]||(L[0]=U=>u.value=U)},{...E.value,...y.value,...w.value,...A.$attrs},{custom:n.custom,tabindex:n.tabindex,class:r.unref(oM)(A.type,A.disabled,A.readonly,A.loading,A.hasError,s.value,A.plain,A.$slots,A.$attrs),"data-error":A.hasError?"input":void 0,native:A.native,onOpen:L[1]||(L[1]=()=>s.value=!0),onBlur:P,onFocus:O,onClosed:L[2]||(L[2]=()=>s.value=!1),onKeypress:C}),{default:r.withCtx(()=>[r.renderSlot(A.$slots,"default")]),_:3},16,["modelValue","custom","tabindex","class","data-error","native"]),A.custom?r.renderSlot(A.$slots,"input",r.normalizeProps(r.mergeProps({key:1},{check:x,checked:r.unref(c).value===u.value}))):r.createCommentVNode("",!0),!A.custom&&A.type==="checkbox"?(r.openBlock(),r.createBlock(r.unref(yn),{key:2,icon:r.unref(bn).far?.check,class:"pointer-events-none -ml-4 size-4 -translate-x-0.5 text-white"},null,8,["icon"])):r.createCommentVNode("",!0),r.unref(rM)(A.type,A.$slots,A.label)?(r.openBlock(),r.createElementBlock("label",{key:3,for:i,class:r.normalizeClass([`{ 'text-error!': hasError, ${A.labelClasses}}`,"cursor-pointer select-none pl-2 text-base peer-disabled:cursor-not-allowed peer-disabled:text-zinc-300"]),"data-error":A.hasError?A.type:void 0,"data-test-choice-label":""},[r.renderSlot(A.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(A.label),1)])],10,dM)):r.createCommentVNode("",!0),r.unref(pc)("trailing",A.type,A.loading,A.plain,A.disabled,A.readonly,A.$slots)?(r.openBlock(),r.createBlock(Bv,{key:4,loading:A.loading,class:r.normalizeClass([A.iconClasses,"right-3.5 top-2.5"]),"data-test-trailing-icon":""},{default:r.withCtx(()=>[r.renderSlot(A.$slots,"trailingIcon",{},()=>[v.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(v.value),{key:0})):r.createCommentVNode("",!0)])]),_:3},8,["loading","class"])):r.createCommentVNode("",!0)]),_:3},8,["class"])),A.hasError&&A.errorMessage?(r.openBlock(),r.createElementBlock("p",{key:1,class:r.normalizeClass([A.errorWrapperClasses,"order-2 mt-1.5 flex items-center gap-x-1 text-xs italic text-error"]),"data-error":A.hasError?"message":void 0,"data-test-error-message":""},r.toDisplayString(A.errorMessage),11,fM)):r.createCommentVNode("",!0)],10,uM))}});function mr(e){return e==null}function pM(e,t,n){const{object:a,valueProp:o,mode:i}=r.toRefs(e),s=r.getCurrentInstance().proxy,l=n.iv,c=(f,p=!0)=>{l.value=d(f);const m=u(f);t.emit("change",m,s),p&&(t.emit("input",m),t.emit("update:modelValue",m))},u=f=>a.value||mr(f)?f:Array.isArray(f)?f.map(p=>p[o.value]):f[o.value],d=f=>mr(f)?i.value==="single"?{}:[]:f;return{update:c}}function Pt(e){return r.customRef(()=>({get:e,set:()=>{}}))}function mM(e,t){const{value:n,modelValue:a,mode:o,valueProp:i}=r.toRefs(e),s=r.ref(o.value!=="single"?[]:{}),l=Pt(()=>a.value!==void 0?a.value:n.value),c=r.computed(()=>o.value==="single"?s.value[i.value]:s.value.map(d=>d[i.value])),u=Pt(()=>o.value!=="single"?s.value.map(d=>d[i.value]).join(","):s.value[i.value]);return{iv:s,internalValue:s,ev:l,externalValue:l,textValue:u,plainValue:c}}function hM(e,t,n){const{regex:a}=r.toRefs(e),o=r.getCurrentInstance().proxy,i=n.isOpen,s=n.open,l=r.ref(null),c=()=>{l.value=""},u=p=>{l.value=p.target.value},d=p=>{if(a.value){let m=a.value;typeof m=="string"&&(m=new RegExp(m)),p.key.match(m)||p.preventDefault()}},f=p=>{if(a.value){let v=(p.clipboardData||window.clipboardData).getData("Text"),y=a.value;typeof y=="string"&&(y=new RegExp(y)),v.split("").every(w=>!!w.match(y))||p.preventDefault()}t.emit("paste",p,o)};return r.watch(l,p=>{!i.value&&p&&s(),t.emit("search-change",p,o)}),{search:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:f}}function vM(e,t,n){const{groupSelect:a,mode:o,groups:i,disabledProp:s}=r.toRefs(e),l=r.ref(null),c=d=>{d===void 0||d!==null&&d[s.value]||i.value&&d&&d.group&&(o.value==="single"||!a.value)||(l.value=d)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function md(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(/æ/g,"ae").replace(/œ/g,"oe").replace(/ø/g,"o").replace(new RegExp("\\p{Diacritic}","gu"),"")}function gM(e){return Object.prototype.toString.call(e)==="[object Object]"}function yM(e,t){if(e.length!==t.length)return!1;const n=t.slice().sort();return e.slice().sort().every(function(a,o){return a===n[o]})}const rb=(e,t)=>{if(e===t)return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(let o of n)if(!a.includes(o)||!rb(e[o],t[o]))return!1;return!0};function bM(e,t,n){const{options:a,mode:o,trackBy:i,limit:s,hideSelected:l,createTag:c,createOption:u,label:d,appendNewTag:f,appendNewOption:p,multipleLabel:m,object:v,loading:y,delay:w,resolveOnLoad:b,minChars:E,filterResults:_,clearOnSearch:g,clearOnSelect:x,valueProp:C,allowAbsent:P,groupLabel:O,canDeselect:A,max:L,strict:U,closeOnSelect:z,closeOnDeselect:R,groups:I,reverse:B,infinite:M,groupOptions:$,groupHideEmpty:K,groupSelect:V,onCreate:Z,disabledProp:q,searchStart:oe,searchFilter:j}=r.toRefs(e),W=r.getCurrentInstance().proxy,Y=n.iv,H=n.ev,T=n.search,J=n.clearSearch,le=n.update,Oe=n.pointer,ee=n.setPointer,Te=n.clearPointer,ae=n.focus,ue=n.deactivate,D=n.close,de=n.localize,fe=r.ref([]),ce=r.ref([]),Ae=r.ref(!1),pe=r.ref(null),Ie=r.ref(M.value&&s.value===-1?10:s.value),xe=r.computed({get:()=>ce.value,set:Q=>ce.value=Q}),X=Pt(()=>c.value||u.value||!1),re=Pt(()=>f.value!==void 0?f.value:p.value!==void 0?p.value:!0),ye=r.computed(()=>{if(I.value){let Q=Se.value||[],ve=[];return Q.forEach(Ge=>{vn(Ge[$.value]).forEach(wt=>{ve.push(Object.assign({},wt,Ge[q.value]?{[q.value]:!0}:{}))})}),ve}else{let Q=vn(ce.value||[]);return fe.value.length&&(Q=Q.concat(fe.value)),Q}}),Ze=r.computed(()=>{let Q=ye.value;return B.value&&(Q=Q.reverse()),_e.value.length&&(Q=_e.value.concat(Q)),sa(Q)}),ct=r.computed(()=>{let Q=Ze.value;return Ie.value>0&&(Q=Q.slice(0,Ie.value)),Q}),Se=r.computed(()=>{if(!I.value)return[];let Q=[],ve=ce.value||[];return fe.value.length&&Q.push({[O.value]:" ",[$.value]:[...fe.value],__CREATE__:!0}),Q.concat(ve)}),ut=r.computed(()=>{let Q=[...Se.value].map(ve=>({...ve}));return _e.value.length&&(Q[0]&&Q[0].__CREATE__?Q[0][$.value]=[..._e.value,...Q[0][$.value]]:Q=[{[O.value]:" ",[$.value]:[..._e.value],__CREATE__:!0}].concat(Q)),Q}),$t=r.computed(()=>{if(!I.value)return[];let Q=ut.value;return gt((Q||[]).map((ve,Ge)=>{const wt=vn(ve[$.value]);return{...ve,index:Ge,group:!0,[$.value]:sa(wt,!1).map(Rr=>Object.assign({},Rr,ve[q.value]?{[q.value]:!0}:{})),__VISIBLE__:sa(wt).map(Rr=>Object.assign({},Rr,ve[q.value]?{[q.value]:!0}:{}))}}))}),xn=r.computed(()=>{switch(o.value){case"single":return!mr(Y.value[C.value]);case"multiple":case"tags":return!mr(Y.value)&&Y.value.length>0}}),zt=r.computed(()=>m.value!==void 0?m.value(Y.value,W):Y.value&&Y.value.length>1?`${Y.value.length} options selected`:"1 option selected"),Kt=Pt(()=>!ye.value.length&&!Ae.value&&!_e.value.length),te=Pt(()=>ye.value.length>0&&ct.value.length==0&&(T.value&&I.value||!I.value)),_e=r.computed(()=>X.value===!1||!T.value?[]:rn(T.value)!==-1?[]:[{[C.value]:T.value,[Ee.value[0]]:T.value,[d.value]:T.value,__CREATE__:!0}]),Ee=r.computed(()=>i.value?Array.isArray(i.value)?i.value:[i.value]:[d.value]),He=Pt(()=>{switch(o.value){case"single":return null;case"multiple":case"tags":return[]}}),G=Pt(()=>y.value||Ae.value),se=Q=>{switch(typeof Q!="object"&&(Q=Pe(Q)),o.value){case"single":le(Q);break;case"multiple":case"tags":le(Y.value.concat(Q));break}t.emit("select",Re(Q),Q,W)},be=Q=>{switch(typeof Q!="object"&&(Q=Pe(Q)),o.value){case"single":Ce();break;case"tags":case"multiple":le(Array.isArray(Q)?Y.value.filter(ve=>Q.map(Ge=>Ge[C.value]).indexOf(ve[C.value])===-1):Y.value.filter(ve=>ve[C.value]!=Q[C.value]));break}t.emit("deselect",Re(Q),Q,W)},Re=Q=>v.value?Q:Q[C.value],ne=Q=>{be(Q)},he=(Q,ve)=>{if(ve.button!==0){ve.preventDefault();return}ne(Q)},Ce=()=>{le(He.value),t.emit("clear",W)},st=Q=>{if(Q.group!==void 0)return o.value==="single"?!1:Io(Q[$.value])&&Q[$.value].length;switch(o.value){case"single":return!mr(Y.value)&&(Y.value[C.value]==Q[C.value]||typeof Y.value[C.value]=="object"&&typeof Q[C.value]=="object"&&rb(Y.value[C.value],Q[C.value]));case"tags":case"multiple":return!mr(Y.value)&&Y.value.map(ve=>ve[C.value]).indexOf(Q[C.value])!==-1}},vt=Q=>Q[q.value]===!0,Ut=()=>L===void 0||L.value===-1||!xn.value&&L.value>0?!1:Y.value.length>=L.value,Vt=Q=>{if(!vt(Q)){if(Z.value&&!st(Q)&&Q.__CREATE__&&(Q={...Q},delete Q.__CREATE__,Q=Z.value(Q,W),Q instanceof Promise)){Ae.value=!0,Q.then(ve=>{Ae.value=!1,nn(ve)});return}nn(Q)}},nn=Q=>{switch(Q.__CREATE__&&(Q={...Q},delete Q.__CREATE__),o.value){case"single":if(Q&&st(Q)){A.value&&be(Q),R.value&&(Te(),D());return}Q&&Wn(Q),x.value&&J(),z.value&&(Te(),D()),Q&&se(Q);break;case"multiple":if(Q&&st(Q)){be(Q),R.value&&(Te(),D());return}if(Ut()){t.emit("max",W);return}Q&&(Wn(Q),se(Q)),x.value&&J(),l.value&&Te(),z.value&&D();break;case"tags":if(Q&&st(Q)){be(Q),R.value&&(Te(),D());return}if(Ut()){t.emit("max",W);return}Q&&Wn(Q),x.value&&J(),Q&&se(Q),l.value&&Te(),z.value&&D();break}z.value||ae()},za=Q=>{if(!(vt(Q)||o.value==="single"||!V.value)){switch(o.value){case"multiple":case"tags":Ao(Q[$.value])?be(Q[$.value]):se(Q[$.value].filter(ve=>Y.value.map(Ge=>Ge[C.value]).indexOf(ve[C.value])===-1).filter(ve=>!ve[q.value]).filter((ve,Ge)=>Y.value.length+1+Ge<=L.value||L.value===-1)),l.value&&Oe.value&&ee($t.value.filter(ve=>!ve[q.value])[Oe.value.index]);break}z.value&&ue()}},Wn=Q=>{Pe(Q[C.value])===void 0&&X.value&&(t.emit("tag",Q[C.value],W),t.emit("option",Q[C.value],W),t.emit("create",Q[C.value],W),re.value&&Ot(Q),J())},Vi=()=>{o.value!=="single"&&se(ct.value.filter(Q=>!Q.disabled&&!st(Q)))},Ao=Q=>Q.find(ve=>!st(ve)&&!ve[q.value])===void 0,Io=Q=>Q.find(ve=>!st(ve))===void 0,Pe=Q=>ye.value[ye.value.map(ve=>String(ve[C.value])).indexOf(String(Q))],rn=Q=>ye.value.findIndex(ve=>Ee.value.some(Ge=>(parseInt(ve[Ge])==ve[Ge]?parseInt(ve[Ge]):ve[Ge])===(parseInt(Q)==Q?parseInt(Q):Q))),Me=Q=>["tags","multiple"].indexOf(o.value)!==-1&&l.value&&st(Q),Ot=Q=>{fe.value.push(Q)},gt=Q=>K.value?Q.filter(ve=>T.value?ve.__VISIBLE__.length:ve[$.value].length):Q.filter(ve=>T.value?ve.__VISIBLE__.length:!0),sa=(Q,ve=!0)=>{let Ge=Q;if(T.value&&_.value){let wt=j.value;wt||(wt=(Rr,il,fh)=>Ee.value.some(Mu=>{let sl=md(de(Rr[Mu]),U.value);return oe.value?sl.startsWith(md(il,U.value)):sl.indexOf(md(il,U.value))!==-1})),Ge=Ge.filter(Rr=>wt(Rr,T.value,W))}return l.value&&ve&&(Ge=Ge.filter(wt=>!Me(wt))),Ge},vn=Q=>{let ve=Q;return gM(ve)&&(ve=Object.keys(ve).map(Ge=>{let wt=ve[Ge];return{[C.value]:Ge,[Ee.value[0]]:wt,[d.value]:wt}})),ve&&Array.isArray(ve)?ve=ve.map(Ge=>typeof Ge=="object"?Ge:{[C.value]:Ge,[Ee.value[0]]:Ge,[d.value]:Ge}):ve=[],ve},Mo=()=>{mr(H.value)||(Y.value=la(H.value))},No=Q=>(Ae.value=!0,new Promise((ve,Ge)=>{a.value(T.value,W).then(wt=>{ce.value=wt||[],typeof Q=="function"&&Q(wt),Ae.value=!1}).catch(wt=>{console.error(wt),ce.value=[],Ae.value=!1}).finally(()=>{ve()})})),Fi=()=>{if(xn.value)if(o.value==="single"){let Q=Pe(Y.value[C.value]);if(Q!==void 0){let ve=Q[d.value];Y.value[d.value]=ve,v.value&&(H.value[d.value]=ve)}}else Y.value.forEach((Q,ve)=>{let Ge=Pe(Y.value[ve][C.value]);if(Ge!==void 0){let wt=Ge[d.value];Y.value[ve][d.value]=wt,v.value&&(H.value[ve][d.value]=wt)}})},ji=Q=>{No(Q)},la=Q=>mr(Q)?o.value==="single"?{}:[]:v.value?Q:o.value==="single"?Pe(Q)||(P.value?{[d.value]:Q,[C.value]:Q,[Ee.value[0]]:Q}:{}):Q.filter(ve=>!!Pe(ve)||P.value).map(ve=>Pe(ve)||{[d.value]:ve,[C.value]:ve,[Ee.value[0]]:ve}),ol=()=>{pe.value=r.watch(T,Q=>{Q.length<E.value||!Q&&E.value!==0||(Ae.value=!0,g.value&&(ce.value=[]),setTimeout(()=>{Q==T.value&&a.value(T.value,W).then(ve=>{(Q==T.value||!T.value)&&(ce.value=ve,Oe.value=ct.value.filter(Ge=>Ge[q.value]!==!0)[0]||null,Ae.value=!1)}).catch(ve=>{console.error(ve)})},w.value))},{flush:"sync"})};if(o.value!=="single"&&!mr(H.value)&&!Array.isArray(H.value))throw new Error(`v-model must be an array when using "${o.value}" mode`);return a&&typeof a.value=="function"?b.value?No(Mo):v.value==!0&&Mo():(ce.value=a.value,Mo()),w.value>-1&&ol(),r.watch(w,(Q,ve)=>{pe.value&&pe.value(),Q>=0&&ol()}),r.watch(H,Q=>{if(mr(Q)){le(la(Q),!1);return}switch(o.value){case"single":(v.value?Q[C.value]!=Y.value[C.value]:Q!=Y.value[C.value])&&le(la(Q),!1);break;case"multiple":case"tags":yM(v.value?Q.map(ve=>ve[C.value]):Q,Y.value.map(ve=>ve[C.value]))||le(la(Q),!1);break}},{deep:!0}),r.watch(a,(Q,ve)=>{typeof e.options=="function"?b.value&&(!ve||Q&&Q.toString()!==ve.toString())&&No():(ce.value=e.options,Object.keys(Y.value).length||Mo(),Fi())}),r.watch(d,Fi),r.watch(s,(Q,ve)=>{Ie.value=M.value&&Q===-1?10:Q}),{resolvedOptions:xe,pfo:Ze,fo:ct,filteredOptions:ct,hasSelected:xn,multipleLabelText:zt,eo:ye,extendedOptions:ye,eg:Se,extendedGroups:Se,fg:$t,filteredGroups:$t,noOptions:Kt,noResults:te,resolving:Ae,busy:G,offset:Ie,select:se,deselect:be,remove:ne,selectAll:Vi,clear:Ce,isSelected:st,isDisabled:vt,isMax:Ut,getOption:Pe,handleOptionClick:Vt,handleGroupClick:za,handleTagRemove:he,refreshOptions:ji,resolveOptions:No,refreshLabels:Fi}}function wM(e,t,n){const{valueProp:a,showOptions:o,searchable:i,groupLabel:s,groups:l,mode:c,groupSelect:u,disabledProp:d,groupOptions:f}=r.toRefs(e),p=n.fo,m=n.fg,v=n.handleOptionClick,y=n.handleGroupClick,w=n.search,b=n.pointer,E=n.setPointer,_=n.clearPointer,g=n.multiselect,x=n.isOpen,C=r.computed(()=>p.value.filter(H=>!H[d.value])),P=r.computed(()=>m.value.filter(H=>!H[d.value])),O=Pt(()=>c.value!=="single"&&u.value),A=Pt(()=>b.value&&b.value.group),L=r.computed(()=>W(b.value)),U=r.computed(()=>{const H=A.value?b.value:W(b.value),T=P.value.map(le=>le[s.value]).indexOf(H[s.value]);let J=P.value[T-1];return J===void 0&&(J=R.value),J}),z=r.computed(()=>{let H=P.value.map(T=>T.label).indexOf(A.value?b.value[s.value]:W(b.value)[s.value])+1;return P.value.length<=H&&(H=0),P.value[H]}),R=r.computed(()=>[...P.value].slice(-1)[0]),I=r.computed(()=>b.value.__VISIBLE__.filter(H=>!H[d.value])[0]),B=r.computed(()=>{const H=L.value.__VISIBLE__.filter(T=>!T[d.value]);return H[H.map(T=>T[a.value]).indexOf(b.value[a.value])-1]}),M=r.computed(()=>{const H=W(b.value).__VISIBLE__.filter(T=>!T[d.value]);return H[H.map(T=>T[a.value]).indexOf(b.value[a.value])+1]}),$=r.computed(()=>[...U.value.__VISIBLE__.filter(H=>!H[d.value])].slice(-1)[0]),K=r.computed(()=>[...R.value.__VISIBLE__.filter(H=>!H[d.value])].slice(-1)[0]),V=H=>b.value&&(!H.group&&b.value[a.value]===H[a.value]||H.group!==void 0&&b.value[s.value]===H[s.value])?!0:void 0,Z=()=>{E(C.value[0]||null)},q=()=>{!b.value||b.value[d.value]===!0||(A.value?y(b.value):v(b.value))},oe=()=>{if(b.value===null)E((l.value&&O.value?P.value[0].__CREATE__?C.value[0]:P.value[0]:C.value[0])||null);else if(l.value&&O.value){let H=A.value?I.value:M.value;H===void 0&&(H=z.value,H.__CREATE__&&(H=H[f.value][0])),E(H||null)}else{let H=C.value.map(T=>T[a.value]).indexOf(b.value[a.value])+1;C.value.length<=H&&(H=0),E(C.value[H]||null)}r.nextTick(()=>{Y()})},j=()=>{if(b.value===null){let H=C.value[C.value.length-1];l.value&&O.value&&(H=K.value,H===void 0&&(H=R.value)),E(H||null)}else if(l.value&&O.value){let H=A.value?$.value:B.value;H===void 0&&(H=A.value?U.value:L.value,H.__CREATE__&&(H=$.value,H===void 0&&(H=U.value))),E(H||null)}else{let H=C.value.map(T=>T[a.value]).indexOf(b.value[a.value])-1;H<0&&(H=C.value.length-1),E(C.value[H]||null)}r.nextTick(()=>{Y()})},W=H=>P.value.find(T=>T.__VISIBLE__.map(J=>J[a.value]).indexOf(H[a.value])!==-1),Y=()=>{let H=g.value.querySelector("[data-pointed]");if(!H)return;let T=H.parentElement.parentElement;l.value&&(T=A.value?H.parentElement.parentElement.parentElement:H.parentElement.parentElement.parentElement.parentElement),H.offsetTop+H.offsetHeight>T.clientHeight+T.scrollTop&&(T.scrollTop=H.offsetTop+H.offsetHeight-T.clientHeight),H.offsetTop<T.scrollTop&&(T.scrollTop=H.offsetTop)};return r.watch(w,H=>{i.value&&(H.length&&o.value?Z():_())}),r.watch(x,H=>{if(H&&g&&g.value){let T=g.value.querySelectorAll("[data-selected]")[0];if(!T)return;let J=T.parentElement.parentElement;r.nextTick(()=>{J.scrollTop=T.offsetTop})}}),{pointer:b,canPointGroups:O,isPointed:V,setPointerFirst:Z,selectPointer:q,forwardPointer:oe,backwardPointer:j}}function On(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ho(e){var t=On(e).Element;return e instanceof t||e instanceof Element}function zn(e){var t=On(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Qp(e){if(typeof ShadowRoot>"u")return!1;var t=On(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var io=Math.max,mc=Math.min,mi=Math.round;function kf(){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 ab(){return!/^((?!chrome|android).)*safari/i.test(kf())}function hi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),o=1,i=1;t&&zn(e)&&(o=e.offsetWidth>0&&mi(a.width)/e.offsetWidth||1,i=e.offsetHeight>0&&mi(a.height)/e.offsetHeight||1);var s=ho(e)?On(e):window,l=s.visualViewport,c=!ab()&&n,u=(a.left+(c&&l?l.offsetLeft:0))/o,d=(a.top+(c&&l?l.offsetTop:0))/i,f=a.width/o,p=a.height/i;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function Zp(e){var t=On(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function kM(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function _M(e){return e===On(e)||!zn(e)?Zp(e):kM(e)}function Mr(e){return e?(e.nodeName||"").toLowerCase():null}function La(e){return((ho(e)?e.ownerDocument:e.document)||window.document).documentElement}function em(e){return hi(La(e)).left+Zp(e).scrollLeft}function Xr(e){return On(e).getComputedStyle(e)}function tm(e){var t=Xr(e),n=t.overflow,a=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+a)}function SM(e){var t=e.getBoundingClientRect(),n=mi(t.width)/e.offsetWidth||1,a=mi(t.height)/e.offsetHeight||1;return n!==1||a!==1}function CM(e,t,n){n===void 0&&(n=!1);var a=zn(t),o=zn(t)&&SM(t),i=La(t),s=hi(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&((Mr(t)!=="body"||tm(i))&&(l=_M(t)),zn(t)?(c=hi(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=em(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function ob(e){var t=hi(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function ru(e){return Mr(e)==="html"?e:e.assignedSlot||e.parentNode||(Qp(e)?e.host:null)||La(e)}function ib(e){return["html","body","#document"].indexOf(Mr(e))>=0?e.ownerDocument.body:zn(e)&&tm(e)?e:ib(ru(e))}function os(e,t){var n;t===void 0&&(t=[]);var a=ib(e),o=a===((n=e.ownerDocument)==null?void 0:n.body),i=On(a),s=o?[i].concat(i.visualViewport||[],tm(a)?a:[]):a,l=t.concat(s);return o?l:l.concat(os(ru(s)))}function xM(e){return["table","td","th"].indexOf(Mr(e))>=0}function o0(e){return!zn(e)||Xr(e).position==="fixed"?null:e.offsetParent}function EM(e){var t=/firefox/i.test(kf()),n=/Trident/i.test(kf());if(n&&zn(e)){var a=Xr(e);if(a.position==="fixed")return null}var o=ru(e);for(Qp(o)&&(o=o.host);zn(o)&&["html","body"].indexOf(Mr(o))<0;){var i=Xr(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 au(e){for(var t=On(e),n=o0(e);n&&xM(n)&&Xr(n).position==="static";)n=o0(n);return n&&(Mr(n)==="html"||Mr(n)==="body"&&Xr(n).position==="static")?t:n||EM(e)||t}var rr="top",Nr="bottom",_a="right",Hr="left",nm="auto",ou=[rr,Nr,_a,Hr],vi="start",_s="end",TM="clippingParents",sb="viewport",Yi="popper",PM="reference",i0=ou.reduce(function(e,t){return e.concat([t+"-"+vi,t+"-"+_s])},[]),AM=[].concat(ou,[nm]).reduce(function(e,t){return e.concat([t,t+"-"+vi,t+"-"+_s])},[]),IM="beforeRead",MM="read",NM="afterRead",OM="beforeMain",BM="main",LM="afterMain",DM="beforeWrite",RM="write",$M="afterWrite",zM=[IM,MM,NM,OM,BM,LM,DM,RM,$M];function VM(e){var t=new Map,n=new Set,a=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),a.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),a}function FM(e){var t=VM(e);return zM.reduce(function(n,a){return n.concat(t.filter(function(o){return o.phase===a}))},[])}function jM(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function HM(e){var t=e.reduce(function(n,a){var o=n[a.name];return n[a.name]=o?Object.assign({},o,a,{options:Object.assign({},o.options,a.options),data:Object.assign({},o.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}function UM(e,t){var n=On(e),a=La(e),o=n.visualViewport,i=a.clientWidth,s=a.clientHeight,l=0,c=0;if(o){i=o.width,s=o.height;var u=ab();(u||!u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:l+em(e),y:c}}function WM(e){var t,n=La(e),a=Zp(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=io(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=io(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-a.scrollLeft+em(e),c=-a.scrollTop;return Xr(o||n).direction==="rtl"&&(l+=io(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function qM(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Qp(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function _f(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function YM(e,t){var n=hi(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 s0(e,t,n){return t===sb?_f(UM(e,n)):ho(t)?YM(t,n):_f(WM(La(e)))}function GM(e){var t=os(ru(e)),n=["absolute","fixed"].indexOf(Xr(e).position)>=0,a=n&&zn(e)?au(e):e;return ho(a)?t.filter(function(o){return ho(o)&&qM(o,a)&&Mr(o)!=="body"}):[]}function KM(e,t,n,a){var o=t==="clippingParents"?GM(e):[].concat(t),i=[].concat(o,[n]),s=i[0],l=i.reduce(function(c,u){var d=s0(e,u,a);return c.top=io(d.top,c.top),c.right=mc(d.right,c.right),c.bottom=mc(d.bottom,c.bottom),c.left=io(d.left,c.left),c},s0(e,s,a));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function va(e){return e.split("-")[0]}function gi(e){return e.split("-")[1]}function lb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function cb(e){var t=e.reference,n=e.element,a=e.placement,o=a?va(a):null,i=a?gi(a):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case rr:c={x:s,y:t.y-n.height};break;case Nr:c={x:s,y:t.y+t.height};break;case _a:c={x:t.x+t.width,y:l};break;case Hr:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=o?lb(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case vi:c[u]=c[u]-(t[d]/2-n[d]/2);break;case _s:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function ub(){return{top:0,right:0,bottom:0,left:0}}function XM(e){return Object.assign({},ub(),e)}function JM(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}function rm(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=a===void 0?e.placement:a,i=n.strategy,s=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?TM:l,u=n.rootBoundary,d=u===void 0?sb:u,f=n.elementContext,p=f===void 0?Yi:f,m=n.altBoundary,v=m===void 0?!1:m,y=n.padding,w=y===void 0?0:y,b=XM(typeof w!="number"?w:JM(w,ou)),E=p===Yi?PM:Yi,_=e.rects.popper,g=e.elements[v?E:p],x=KM(ho(g)?g:g.contextElement||La(e.elements.popper),c,d,s),C=hi(e.elements.reference),P=cb({reference:C,element:_,placement:o}),O=_f(Object.assign({},_,P)),A=p===Yi?O:C,L={top:x.top-A.top+b.top,bottom:A.bottom-x.bottom+b.bottom,left:x.left-A.left+b.left,right:A.right-x.right+b.right},U=e.modifiersData.offset;if(p===Yi&&U){var z=U[o];Object.keys(L).forEach(function(R){var I=[_a,Nr].indexOf(R)>=0?1:-1,B=[rr,Nr].indexOf(R)>=0?"y":"x";L[R]+=z[B]*I})}return L}var l0={placement:"bottom",modifiers:[],strategy:"absolute"};function c0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function QM(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?l0:o;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},l0,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,m={state:d,setOptions:function(b){var E=typeof b=="function"?b(d.options):b;y(),d.options=Object.assign({},i,d.options,E),d.scrollParents={reference:ho(l)?os(l):l.contextElement?os(l.contextElement):[],popper:os(c)};var _=FM(HM([].concat(a,d.options.modifiers)));return d.orderedModifiers=_.filter(function(g){return g.enabled}),v(),m.update()},forceUpdate:function(){if(!p){var b=d.elements,E=b.reference,_=b.popper;if(c0(E,_)){d.rects={reference:CM(E,au(_),d.options.strategy==="fixed"),popper:ob(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(L){return d.modifiersData[L.name]=Object.assign({},L.data)});for(var g=0;g<d.orderedModifiers.length;g++){if(d.reset===!0){d.reset=!1,g=-1;continue}var x=d.orderedModifiers[g],C=x.fn,P=x.options,O=P===void 0?{}:P,A=x.name;typeof C=="function"&&(d=C({state:d,options:O,name:A,instance:m})||d)}}}},update:jM(function(){return new Promise(function(w){m.forceUpdate(),w(d)})}),destroy:function(){y(),p=!0}};if(!c0(l,c))return m;m.setOptions(u).then(function(w){!p&&u.onFirstUpdate&&u.onFirstUpdate(w)});function v(){d.orderedModifiers.forEach(function(w){var b=w.name,E=w.options,_=E===void 0?{}:E,g=w.effect;if(typeof g=="function"){var x=g({state:d,name:b,instance:m,options:_}),C=function(){};f.push(x||C)}})}function y(){f.forEach(function(w){return w()}),f=[]}return m}}var bl={passive:!0};function ZM(e){var t=e.state,n=e.instance,a=e.options,o=a.scroll,i=o===void 0?!0:o,s=a.resize,l=s===void 0?!0:s,c=On(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,bl)}),l&&c.addEventListener("resize",n.update,bl),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,bl)}),l&&c.removeEventListener("resize",n.update,bl)}}var eN={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ZM,data:{}};function tN(e){var t=e.state,n=e.name;t.modifiersData[n]=cb({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var nN={name:"popperOffsets",enabled:!0,phase:"read",fn:tN,data:{}},rN={top:"auto",right:"auto",bottom:"auto",left:"auto"};function aN(e,t){var n=e.x,a=e.y,o=t.devicePixelRatio||1;return{x:mi(n*o)/o||0,y:mi(a*o)/o||0}}function u0(e){var t,n=e.popper,a=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=s.x,m=p===void 0?0:p,v=s.y,y=v===void 0?0:v,w=typeof d=="function"?d({x:m,y}):{x:m,y};m=w.x,y=w.y;var b=s.hasOwnProperty("x"),E=s.hasOwnProperty("y"),_=Hr,g=rr,x=window;if(u){var C=au(n),P="clientHeight",O="clientWidth";if(C===On(n)&&(C=La(n),Xr(C).position!=="static"&&l==="absolute"&&(P="scrollHeight",O="scrollWidth")),C=C,o===rr||(o===Hr||o===_a)&&i===_s){g=Nr;var A=f&&C===x&&x.visualViewport?x.visualViewport.height:C[P];y-=A-a.height,y*=c?1:-1}if(o===Hr||(o===rr||o===Nr)&&i===_s){_=_a;var L=f&&C===x&&x.visualViewport?x.visualViewport.width:C[O];m-=L-a.width,m*=c?1:-1}}var U=Object.assign({position:l},u&&rN),z=d===!0?aN({x:m,y},On(n)):{x:m,y};if(m=z.x,y=z.y,c){var R;return Object.assign({},U,(R={},R[g]=E?"0":"",R[_]=b?"0":"",R.transform=(x.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",R))}return Object.assign({},U,(t={},t[g]=E?y+"px":"",t[_]=b?m+"px":"",t.transform="",t))}function oN(e){var t=e.state,n=e.options,a=n.gpuAcceleration,o=a===void 0?!0:a,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:va(t.placement),variation:gi(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,u0(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,u0(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var iN={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:oN,data:{}};function sN(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!zn(i)||!Mr(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function lN(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(a){var o=t.elements[a],i=t.attributes[a]||{},s=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),l=s.reduce(function(c,u){return c[u]="",c},{});!zn(o)||!Mr(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}var cN={name:"applyStyles",enabled:!0,phase:"write",fn:sN,effect:lN,requires:["computeStyles"]},uN=[eN,nN,iN,cN],dN=QM({defaultModifiers:uN});function fN(e){return e==="x"?"y":"x"}function Ul(e,t,n){return io(e,mc(t,n))}function pN(e,t,n){var a=Ul(e,t,n);return a>n?n:a}function mN(e){var t=e.state,n=e.options,a=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,w=rm(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),b=va(t.placement),E=gi(t.placement),_=!E,g=lb(b),x=fN(g),C=t.modifiersData.popperOffsets,P=t.rects.reference,O=t.rects.popper,A=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,L=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),U=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(C){if(i){var R,I=g==="y"?rr:Hr,B=g==="y"?Nr:_a,M=g==="y"?"height":"width",$=C[g],K=$+w[I],V=$-w[B],Z=m?-O[M]/2:0,q=E===vi?P[M]:O[M],oe=E===vi?-O[M]:-P[M],j=t.elements.arrow,W=m&&j?ob(j):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ub(),H=Y[I],T=Y[B],J=Ul(0,P[M],W[M]),le=_?P[M]/2-Z-J-H-L.mainAxis:q-J-H-L.mainAxis,Oe=_?-P[M]/2+Z+J+T+L.mainAxis:oe+J+T+L.mainAxis,ee=t.elements.arrow&&au(t.elements.arrow),Te=ee?g==="y"?ee.clientTop||0:ee.clientLeft||0:0,ae=(R=U?.[g])!=null?R:0,ue=$+le-ae-Te,D=$+Oe-ae,de=Ul(m?mc(K,ue):K,$,m?io(V,D):V);C[g]=de,z[g]=de-$}if(l){var fe,ce=g==="x"?rr:Hr,Ae=g==="x"?Nr:_a,pe=C[x],Ie=x==="y"?"height":"width",xe=pe+w[ce],X=pe-w[Ae],re=[rr,Hr].indexOf(b)!==-1,ye=(fe=U?.[x])!=null?fe:0,Ze=re?xe:pe-P[Ie]-O[Ie]-ye+L.altAxis,ct=re?pe+P[Ie]+O[Ie]-ye-L.altAxis:X,Se=m&&re?pN(Ze,pe,ct):Ul(m?Ze:xe,pe,m?ct:X);C[x]=Se,z[x]=Se-pe}t.modifiersData[a]=z}}var hN={name:"preventOverflow",enabled:!0,phase:"main",fn:mN,requiresIfExists:["offset"]},vN={left:"right",right:"left",bottom:"top",top:"bottom"};function Wl(e){return e.replace(/left|right|bottom|top/g,function(t){return vN[t]})}var gN={start:"end",end:"start"};function d0(e){return e.replace(/start|end/g,function(t){return gN[t]})}function yN(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?AM:c,d=gi(a),f=d?l?i0:i0.filter(function(v){return gi(v)===d}):ou,p=f.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=f);var m=p.reduce(function(v,y){return v[y]=rm(e,{placement:y,boundary:o,rootBoundary:i,padding:s})[va(y)],v},{});return Object.keys(m).sort(function(v,y){return m[v]-m[y]})}function bN(e){if(va(e)===nm)return[];var t=Wl(e);return[d0(e),t,d0(t)]}function wN(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,v=m===void 0?!0:m,y=n.allowedAutoPlacements,w=t.options.placement,b=va(w),E=b===w,_=c||(E||!v?[Wl(w)]:bN(w)),g=[w].concat(_).reduce(function(W,Y){return W.concat(va(Y)===nm?yN(t,{placement:Y,boundary:d,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:y}):Y)},[]),x=t.rects.reference,C=t.rects.popper,P=new Map,O=!0,A=g[0],L=0;L<g.length;L++){var U=g[L],z=va(U),R=gi(U)===vi,I=[rr,Nr].indexOf(z)>=0,B=I?"width":"height",M=rm(t,{placement:U,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),$=I?R?_a:Hr:R?Nr:rr;x[B]>C[B]&&($=Wl($));var K=Wl($),V=[];if(i&&V.push(M[z]<=0),l&&V.push(M[$]<=0,M[K]<=0),V.every(function(W){return W})){A=U,O=!1;break}P.set(U,V)}if(O)for(var Z=v?3:1,q=function(Y){var H=g.find(function(T){var J=P.get(T);if(J)return J.slice(0,Y).every(function(le){return le})});if(H)return A=H,"break"},oe=Z;oe>0;oe--){var j=q(oe);if(j==="break")break}t.placement!==A&&(t.modifiersData[a]._skip=!0,t.placement=A,t.reset=!0)}}var kN={name:"flip",enabled:!0,phase:"main",fn:wN,requiresIfExists:["offset"],data:{_skip:!1}};function _N(e,t,n){const{disabled:a,appendTo:o,appendToBody:i,openDirection:s}=r.toRefs(e),l=r.getCurrentInstance().proxy,c=n.multiselect,u=n.dropdown,d=r.ref(!1),f=r.ref(null),p=r.ref(null),m=Pt(()=>o.value||i.value),v=Pt(()=>s.value==="top"&&p.value==="bottom"||s.value==="bottom"&&p.value!=="top"?"bottom":"top"),y=()=>{d.value||a.value||(d.value=!0,t.emit("open",l),m.value&&r.nextTick(()=>{b()}))},w=()=>{d.value&&(d.value=!1,t.emit("close",l))},b=()=>{if(!f.value)return;let _=parseInt(window.getComputedStyle(u.value).borderTopWidth.replace("px","")),g=parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px",""));f.value.setOptions(x=>({...x,modifiers:[...x.modifiers,{name:"offset",options:{offset:[0,(v.value==="top"?_:g)*-1]}}]})),f.value.update()},E=_=>{for(;_&&_!==document.body;){if(getComputedStyle(_).position==="fixed")return!0;_=_.parentElement}return!1};return r.onMounted(()=>{m.value&&(f.value=dN(c.value,u.value,{strategy:E(c.value)?"fixed":void 0,placement:s.value,modifiers:[hN,kN,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:_})=>{_.styles.popper.width=`${_.rects.reference.width}px`},effect:({state:_})=>{_.elements.popper.style.width=`${_.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:_}){p.value=_.placement}}]}))}),r.onBeforeUnmount(()=>{!m.value||!f.value||(f.value.destroy(),f.value=null)}),{popper:f,isOpen:d,open:y,close:w,placement:v,updatePopper:b}}function SN(e,t,n){const{searchable:a,disabled:o,clearOnBlur:i}=r.toRefs(e),s=n.input,l=n.open,c=n.close,u=n.clearSearch,d=n.isOpen,f=n.wrapper,p=n.tags,m=r.ref(!1),v=r.ref(!1),y=Pt(()=>a.value||o.value?-1:0),w=()=>{a.value&&s.value.blur(),f.value.blur()},b=()=>{a.value&&!o.value&&s.value.focus()},E=(O=!0)=>{o.value||(m.value=!0,O&&l())},_=()=>{m.value=!1,setTimeout(()=>{m.value||(c(),i.value&&u())},1)};return{tabindex:y,isActive:m,mouseClicked:v,blur:w,focus:b,activate:E,deactivate:_,handleFocusIn:O=>{O.target.closest("[data-tags]")&&O.target.nodeName!=="INPUT"||O.target.closest("[data-clear]")||E(v.value)},handleFocusOut:()=>{_()},handleCaretClick:()=>{_(),w()},handleMousedown:O=>{v.value=!0,d.value&&(O.target.isEqualNode(f.value)||O.target.isEqualNode(p.value))?setTimeout(()=>{_()},0):!d.value&&(document.activeElement.isEqualNode(f.value)||document.activeElement.isEqualNode(s.value))&&E(),setTimeout(()=>{v.value=!1},0)}}}function CN(e,t,n){const{mode:a,addTagOn:o,openDirection:i,searchable:s,showOptions:l,valueProp:c,groups:u,addOptionOn:d,createTag:f,createOption:p,reverse:m}=r.toRefs(e),v=r.getCurrentInstance().proxy,y=n.iv,w=n.update,b=n.deselect,E=n.search,_=n.setPointer,g=n.selectPointer,x=n.backwardPointer,C=n.forwardPointer,P=n.multiselect,O=n.wrapper,A=n.tags,L=n.isOpen,U=n.open,z=n.blur,R=n.fo,I=Pt(()=>f.value||p.value||!1),B=Pt(()=>o.value!==void 0?o.value:d.value!==void 0?d.value:["enter"]),M=()=>{a.value==="tags"&&!l.value&&I.value&&s.value&&!u.value&&_(R.value[R.value.map(V=>V[c.value]).indexOf(E.value)])};return{handleKeydown:V=>{t.emit("keydown",V,v);let Z,q;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(V.key)!==-1&&a.value==="tags"&&(Z=[...P.value.querySelectorAll("[data-tags] > *")].filter(oe=>oe!==A.value),q=Z.findIndex(oe=>oe===document.activeElement)),V.key){case"Backspace":if(a.value==="single"||s.value&&[null,""].indexOf(E.value)===-1||y.value.length===0)return;let oe=y.value.filter(j=>!j.disabled&&j.remove!==!1);oe.length&&b(oe[oe.length-1]);break;case"Enter":if(V.preventDefault(),V.keyCode===229)return;if(q!==-1&&q!==void 0){w([...y.value].filter((j,W)=>W!==q)),q===Z.length-1&&(Z.length-1?Z[Z.length-2].focus():s.value?A.value.querySelector("input").focus():O.value.focus());return}if(B.value.indexOf("enter")===-1&&I.value)return;M(),g();break;case" ":if(!I.value&&!s.value){V.preventDefault(),M(),g();return}if(!I.value)return!1;if(B.value.indexOf("space")===-1&&I.value)return;V.preventDefault(),M(),g();break;case"Tab":case";":case",":if(B.value.indexOf(V.key.toLowerCase())===-1||!I.value)return;M(),g(),V.preventDefault();break;case"Escape":z();break;case"ArrowUp":if(V.preventDefault(),!l.value)return;L.value||U(),x();break;case"ArrowDown":if(V.preventDefault(),!l.value)return;L.value||U(),C();break;case"ArrowLeft":if(s.value&&A.value&&A.value.querySelector("input").selectionStart||V.shiftKey||a.value!=="tags"||!y.value||!y.value.length)return;V.preventDefault(),q===-1?Z[Z.length-1].focus():q>0&&Z[q-1].focus();break;case"ArrowRight":if(q===-1||V.shiftKey||a.value!=="tags"||!y.value||!y.value.length)return;V.preventDefault(),Z.length>q+1?Z[q+1].focus():s.value?A.value.querySelector("input").focus():s.value||O.value.focus();break}},handleKeyup:V=>{t.emit("keyup",V,v)},preparePointer:M}}function xN(e,t,n){const{classes:a,disabled:o,showOptions:i,breakTags:s}=r.toRefs(e),l=n.isOpen,c=n.isPointed,u=n.isSelected,d=n.isDisabled,f=n.isActive,p=n.canPointGroups,m=n.resolving,v=n.fo,y=n.placement,w=Pt(()=>({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",...a.value})),b=Pt(()=>!!(l.value&&i.value&&(!m.value||m.value&&v.value.length)));return{classList:r.computed(()=>{const _=w.value;return{container:[_.container].concat(o.value?_.containerDisabled:[]).concat(b.value&&y.value==="top"?_.containerOpenTop:[]).concat(b.value&&y.value!=="top"?_.containerOpen:[]).concat(f.value?_.containerActive:[]),wrapper:_.wrapper,spacer:_.spacer,singleLabel:_.singleLabel,singleLabelText:_.singleLabelText,multipleLabel:_.multipleLabel,search:_.search,tags:_.tags,tag:[_.tag].concat(o.value?_.tagDisabled:[]),tagWrapper:[_.tagWrapper,s.value?_.tagWrapperBreak:null],tagDisabled:_.tagDisabled,tagRemove:_.tagRemove,tagRemoveIcon:_.tagRemoveIcon,tagsSearchWrapper:_.tagsSearchWrapper,tagsSearch:_.tagsSearch,tagsSearchCopy:_.tagsSearchCopy,placeholder:_.placeholder,caret:[_.caret].concat(l.value?_.caretOpen:[]),clear:_.clear,clearIcon:_.clearIcon,spinner:_.spinner,inifinite:_.inifinite,inifiniteSpinner:_.inifiniteSpinner,dropdown:[_.dropdown].concat(y.value==="top"?_.dropdownTop:[]).concat(!l.value||!i.value||!b.value?_.dropdownHidden:[]),options:[_.options].concat(y.value==="top"?_.optionsTop:[]),group:_.group,groupLabel:g=>{let x=[_.groupLabel];return c(g)?x.push(u(g)?_.groupLabelSelectedPointed:_.groupLabelPointed):u(g)&&p.value?x.push(d(g)?_.groupLabelSelectedDisabled:_.groupLabelSelected):d(g)&&x.push(_.groupLabelDisabled),p.value&&x.push(_.groupLabelPointable),x},groupOptions:_.groupOptions,option:(g,x)=>{let C=[_.option];return c(g)?C.push(u(g)?_.optionSelectedPointed:_.optionPointed):u(g)?C.push(d(g)?_.optionSelectedDisabled:_.optionSelected):(d(g)||x&&d(x))&&C.push(_.optionDisabled),C},noOptions:_.noOptions,noResults:_.noResults,assist:_.assist,fakeInput:_.fakeInput}}),showDropdown:b}}function EN(e,t,n){const{limit:a,infinite:o}=r.toRefs(e),i=n.isOpen,s=n.offset,l=n.search,c=n.pfo,u=n.eo,d=r.ref(null),f=r.shallowRef(null),p=Pt(()=>s.value<c.value.length),m=y=>{const{isIntersecting:w,target:b}=y[0];if(w){const E=b.offsetParent,_=E.scrollTop;s.value+=a.value==-1?10:a.value,r.nextTick(()=>{E.scrollTop=_})}},v=()=>{i.value&&s.value<c.value.length?d.value.observe(f.value):!i.value&&d.value&&d.value.disconnect()};return r.watch(i,()=>{o.value&&v()}),r.watch(l,()=>{o.value&&(s.value=a.value,v())},{flush:"post"}),r.watch(u,()=>{o.value&&v()},{immediate:!1,flush:"post"}),r.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(m))}),{hasMore:p,infiniteLoader:f}}function TN(e,t,n){const{placeholder:a,id:o,valueProp:i,label:s,mode:l,groupLabel:c,aria:u,searchable:d}=r.toRefs(e),f=n.pointer,p=n.iv,m=n.hasSelected,v=n.multipleLabelText,y=r.ref(null),w=Pt(()=>`${o.value?o.value+"-":""}assist`),b=Pt(()=>`${o.value?o.value+"-":""}multiselect-options`),E=Pt(()=>{if(f.value){let z=o.value?`${o.value}-`:"";return z+=`${f.value.group?"multiselect-group":"multiselect-option"}-`,z+=f.value.group?f.value.index:f.value[i.value],z}}),_=Pt(()=>a.value),g=Pt(()=>l.value!=="single"),x=r.computed(()=>l.value==="single"&&m.value?p.value[s.value]:l.value==="multiple"&&m.value?v.value:l.value==="tags"&&m.value?p.value.map(z=>z[s.value]).join(", "):""),C=r.computed(()=>{let z={...u.value};return d.value&&(z["aria-labelledby"]=z["aria-labelledby"]?`${w.value} ${z["aria-labelledby"]}`:w.value,x.value&&z["aria-label"]&&(z["aria-label"]=`${x.value}, ${z["aria-label"]}`)),z}),P=z=>`${o.value?o.value+"-":""}multiselect-option-${z[i.value]}`,O=z=>`${o.value?o.value+"-":""}multiselect-group-${z.index}`,A=z=>`${z}`,L=z=>`${z}`,U=z=>`${z} ❎`;return r.onMounted(()=>{if(o.value&&document&&document.querySelector){let z=document.querySelector(`[for="${o.value}"]`);y.value=z?z.innerText:null}}),{arias:C,ariaLabel:x,ariaAssist:w,ariaControls:b,ariaPlaceholder:_,ariaMultiselectable:g,ariaActiveDescendant:E,ariaOptionId:P,ariaOptionLabel:A,ariaGroupId:O,ariaGroupLabel:L,ariaTagLabel:U}}function PN(e,t,n){const{locale:a,fallbackLocale:o}=r.toRefs(e);return{localize:s=>!s||typeof s!="object"?s:s&&s[a.value]?s[a.value]:s&&a.value&&s[a.value.toUpperCase()]?s[a.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 AN(e,t,n){const a=r.shallowRef(null),o=r.shallowRef(null),i=r.shallowRef(null),s=r.shallowRef(null),l=r.shallowRef(null);return{multiselect:a,wrapper:o,tags:i,input:s,dropdown:l}}function IN(e,t,n,a={}){return n.forEach(o=>{a={...a,...o(e,t,a)}}),a}var am={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1,default:void 0},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1,default:void 0},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1,default:void 0},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function,default:void 0},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String,default:void 0}},setup(e,t){return IN(e,t,[AN,PN,mM,vM,_N,hM,pM,SN,bM,EN,wM,CN,xN,TN])},beforeMount(){(this.$root.constructor&&this.$root.constructor.version&&this.$root.constructor.version.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const MN=["id","dir"],NN=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],ON=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],BN=["onKeyup","aria-label"],LN=["onClick"],DN=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],RN=["innerHTML"],$N=["id"],zN=["id"],VN=["id","aria-label","aria-selected"],FN=["data-pointed","onMouseenter","onClick"],jN=["innerHTML"],HN=["aria-label"],UN=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],WN=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],qN=["innerHTML"],YN=["innerHTML"],GN=["value"],KN=["name","value"],XN=["name","value"],JN=["id"];function QN(e,t,n,a,o,i){return r.openBlock(),r.createElementBlock("div",{ref:"multiselect",class:r.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))},[r.createElementVNode("div",r.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),[r.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(r.openBlock(),r.createElementBlock("input",r.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]=r.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,ON)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(e.classList.tags),"data-tags":""},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.iv,(s,l,c)=>r.renderSlot(e.$slots,"tag",{option:s,handleTagRemove:e.handleTagRemove,disabled:n.disabled},()=>[(r.openBlock(),r.createElementBlock("span",{class:r.normalizeClass([e.classList.tag,s.disabled?e.classList.tagDisabled:null]),tabindex:"-1",onKeyup:r.withKeys(u=>e.handleTagRemove(s,u),["enter"]),key:c,"aria-label":e.ariaTagLabel(e.localize(s[n.label]))},[r.createElementVNode("span",{class:r.normalizeClass(e.classList.tagWrapper)},r.toDisplayString(e.localize(s[n.label])),3),!n.disabled&&!s.disabled?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(e.classList.tagRemove),onClick:r.withModifiers(u=>e.handleTagRemove(s,u),["stop"])},[r.createElementVNode("span",{class:r.normalizeClass(e.classList.tagRemoveIcon)},null,2)],10,LN)):r.createCommentVNode("v-if",!0)],42,BN))])),256)),r.createElementVNode("div",{class:r.normalizeClass(e.classList.tagsSearchWrapper),ref:"tags"},[r.createCommentVNode(" Used for measuring search width "),r.createElementVNode("span",{class:r.normalizeClass(e.classList.tagsSearchCopy)},r.toDisplayString(e.search),3),r.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(r.openBlock(),r.createElementBlock("input",r.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]=r.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,DN)):r.createCommentVNode("v-if",!0)],2)],2)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Single label "),n.mode=="single"&&e.hasSelected&&!e.search&&e.iv?r.renderSlot(e.$slots,"singlelabel",{key:2,value:e.iv},()=>[r.createElementVNode("div",{class:r.normalizeClass(e.classList.singleLabel)},[r.createElementVNode("span",{class:r.normalizeClass(e.classList.singleLabelText)},r.toDisplayString(e.localize(e.iv[n.label])),3)],2)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Multiple label "),n.mode=="multiple"&&e.hasSelected&&!e.search?r.renderSlot(e.$slots,"multiplelabel",{key:3,values:e.iv},()=>[r.createElementVNode("div",{class:r.normalizeClass(e.classList.multipleLabel),innerHTML:e.multipleLabelText},null,10,RN)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Placeholder "),n.placeholder&&!e.hasSelected&&!e.search?r.renderSlot(e.$slots,"placeholder",{key:4},()=>[r.createElementVNode("div",{class:r.normalizeClass(e.classList.placeholder),"aria-hidden":"true"},r.toDisplayString(n.placeholder),3)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Spinner "),n.loading||e.resolving?r.renderSlot(e.$slots,"spinner",{key:5},()=>[r.createElementVNode("span",{class:r.normalizeClass(e.classList.spinner),"aria-hidden":"true"},null,2)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Clear "),e.hasSelected&&!n.disabled&&n.canClear&&!e.busy?r.renderSlot(e.$slots,"clear",{key:6,clear:e.clear},()=>[r.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:r.normalizeClass(e.classList.clear),onClick:t[6]||(t[6]=(...s)=>e.clear&&e.clear(...s)),onKeyup:t[7]||(t[7]=r.withKeys((...s)=>e.clear&&e.clear(...s),["enter"]))},[r.createElementVNode("span",{class:r.normalizeClass(e.classList.clearIcon)},null,2)],34)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Caret "),n.caret&&n.showOptions?r.renderSlot(e.$slots,"caret",{key:7,handleCaretClick:e.handleCaretClick,isOpen:e.isOpen},()=>[r.createElementVNode("span",{class:r.normalizeClass(e.classList.caret),onClick:t[8]||(t[8]=(...s)=>e.handleCaretClick&&e.handleCaretClick(...s)),"aria-hidden":"true"},null,2)]):r.createCommentVNode("v-if",!0)],16,NN),r.createCommentVNode(" Options "),(r.openBlock(),r.createBlock(r.Teleport,{to:n.appendTo||"body",disabled:!n.appendToBody&&!n.appendTo},[r.createElementVNode("div",{id:n.id?`${n.id}-dropdown`:void 0,class:r.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))},[r.renderSlot(e.$slots,"beforelist",{options:e.fo}),r.createElementVNode("ul",{class:r.normalizeClass(e.classList.options),id:e.ariaControls,role:"listbox"},[n.groups?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(e.fg,(s,l,c)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(e.classList.group),key:c,id:e.ariaGroupId(s),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),"aria-selected":e.isSelected(s),role:"option"},[s.__CREATE__?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.classList.groupLabel(s)),"data-pointed":e.isPointed(s),onMouseenter:u=>e.setPointer(s,l),onClick:u=>e.handleGroupClick(s)},[r.renderSlot(e.$slots,"grouplabel",{group:s,isSelected:e.isSelected,isPointed:e.isPointed},()=>[r.createElementVNode("span",{innerHTML:e.localize(s[n.groupLabel])},null,8,jN)])],42,FN)),r.createElementVNode("ul",{class:r.normalizeClass(e.classList.groupOptions),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),role:"group"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.__VISIBLE__,(u,d,f)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(e.classList.option(u,s)),"data-pointed":e.isPointed(u),"data-selected":e.isSelected(u)||void 0,key:f,onMouseenter:p=>e.setPointer(u),onClick:p=>e.handleOptionClick(u),id:e.ariaOptionId(u),"aria-selected":e.isSelected(u),"aria-label":e.ariaOptionLabel(e.localize(u[n.label])),role:"option"},[r.renderSlot(e.$slots,"option",{option:u,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[r.createElementVNode("span",null,r.toDisplayString(e.localize(u[n.label])),1)])],42,UN))),128))],10,HN)],10,VN))),128)):(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(e.fo,(s,l,c)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(e.classList.option(s)),"data-pointed":e.isPointed(s),"data-selected":e.isSelected(s)||void 0,key:c,onMouseenter:u=>e.setPointer(s),onClick:u=>e.handleOptionClick(s),id:e.ariaOptionId(s),"aria-selected":e.isSelected(s),"aria-label":e.ariaOptionLabel(e.localize(s[n.label])),role:"option"},[r.renderSlot(e.$slots,"option",{option:s,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[r.createElementVNode("span",null,r.toDisplayString(e.localize(s[n.label])),1)])],42,WN))),128))],10,zN),e.noOptions?r.renderSlot(e.$slots,"nooptions",{key:0},()=>[r.createElementVNode("div",{class:r.normalizeClass(e.classList.noOptions),innerHTML:e.localize(n.noOptionsText)},null,10,qN)]):r.createCommentVNode("v-if",!0),e.noResults?r.renderSlot(e.$slots,"noresults",{key:1},()=>[r.createElementVNode("div",{class:r.normalizeClass(e.classList.noResults),innerHTML:e.localize(n.noResultsText)},null,10,YN)]):r.createCommentVNode("v-if",!0),n.infinite&&e.hasMore?(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(e.classList.inifinite),ref:"infiniteLoader"},[r.renderSlot(e.$slots,"infinite",{},()=>[r.createElementVNode("span",{class:r.normalizeClass(e.classList.inifiniteSpinner)},null,2)])],2)):r.createCommentVNode("v-if",!0),r.renderSlot(e.$slots,"afterlist",{options:e.fo})],42,$N)],8,["to","disabled"])),r.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(r.openBlock(),r.createElementBlock("input",{key:0,class:r.normalizeClass(e.classList.fakeInput),tabindex:"-1",value:e.textValue,required:""},null,10,GN)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Native input support "),n.nativeSupport?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[n.mode=="single"?(r.openBlock(),r.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:e.plainValue!==void 0?e.plainValue:""},null,8,KN)):(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(e.plainValue,(s,l)=>(r.openBlock(),r.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:s,key:l},null,8,XN))),128))],64)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Screen reader assistive text "),n.searchable&&e.hasSelected?(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(e.classList.assist),id:e.ariaAssist,"aria-hidden":"true"},r.toDisplayString(e.ariaLabel),11,JN)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Create height for empty input "),r.createElementVNode("div",{class:r.normalizeClass(e.classList.spacer)},null,2)],42,MN)}am.render=QN;am.__file="src/Multiselect.vue";const Tt={container:"app-select scrollbar-primary relative mx-auto w-full flex items-center justify-end box-border cursor-pointer border border-zinc-300 rounded-lg bg-white text-base leading-snug outline-hidden 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 pr-16 box-border rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3",singleLabelText:"text-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 rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3",search:"h-full w-full absolute inset-0 outline-hidden focus:ring-0 appearance-none box-border border-0 text-base font-sans bg-white rounded-lg pl-3 rtl:pl-0 rtl:pr-3",tags:"min-w-0 grow shrink flex flex-wrap items-center mt-1 px-2",tag:"max-w-full bg-zinc-200 text-sm font-semibold py-1 pl-2 rounded-lg h-7 mr-1 mb-1 flex items-center whitespace-nowrap rtl:pl-0 rtl:pr-2 rtl:mr-0 rtl:ml-1",tagDisabled:"pr-2 opacity-50 rtl:pl-2",tagRemove:"flex items-center justify-center p-1 mx-0.5 rounded-lg group",tagRemoveIcon:"bg-multiselect-remove bg-center bg-no-repeat inline-block w-3 h-3 text-zinc-700",tagText:"overflow-hidden text-ellipsis whitespace-nowrap",tagsSearchWrapper:"inline-block relative mx-1 mb-1 grow shrink h-full",tagsSearch:"absolute inset-0 border-0 outline-hidden focus:ring-0 appearance-none p-0 text-base font-sans box-border w-full bg-transparent",tagsSearchCopy:"invisible whitespace-pre-wrap inline-block h-px",placeholder:"flex text-base items-center h-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3 text-zinc-400 rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3",caret:"bg-multiselect-caret bg-center bg-no-repeat w-5 h-8 py-px box-content mr-3 relative z-10 stroke-2 shrink-0 grow-0 transition-transform transform pointer-events-none rtl:mr-0 rtl:ml-3",caretOpen:"rotate-180 pointer-events-auto",clear:"pr-3 relative z-10 text-zinc-700 transition duration-300 shrink-0 grow-0 flex rtl:pr-0 rtl:pl-3",clearIcon:"bg-multiselect-remove bg-center bg-no-repeat w-2.5 h-4 py-px box-content inline-block",spinner:"bg-multiselect-spinner bg-center bg-no-repeat w-4 h-4 z-10 mr-3 animate-spin shrink-0 grow-0 rtl:mr-0 rtl:ml-3",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 shrink-0 grow-0 m-3",dropdown:"max-h-60 absolute -left-[2px] -right-[2px] bottom-0 transform translate-y-full border-2 border-zinc-300 -mt-px overflow-y-auto z-50 bg-white flex flex-col rounded-b-lg",dropdownTop:"-translate-y-full! top-px bottom-auto rounded-b-none rounded-t-lg",dropdownHidden:"hidden",options:"flex flex-col p-0 m-0 list-none",optionsTop:"",group:"p-0 m-0",groupLabel:"flex text-sm box-border items-center justify-start text-left py-1 px-3 font-semibold bg-zinc-200 cursor-default leading-normal",groupLabelPointable:"cursor-pointer",groupLabelPointed:"bg-zinc-300 text-zinc-700",groupLabelSelected:"bg-primary-active text-white",groupLabelDisabled:"bg-zinc-100 text-zinc-300 cursor-not-allowed",groupLabelSelectedPointed:"bg-primary-active text-white opacity-90",groupLabelSelectedDisabled:"text-white bg-primary-active bg-opacity-50 cursor-not-allowed",groupOptions:"p-0 m-0",option:"flex items-center justify-start box-border text-left cursor-pointer text-base leading-snug py-2 px-3",optionPointed:"text-zinc-800 bg-zinc-100",optionSelected:"text-white bg-primary",optionDisabled:"text-zinc-300 cursor-not-allowed",optionSelectedPointed:"text-white bg-primary opacity-90",optionSelectedDisabled:"text-green-100 bg-primary bg-opacity-50 cursor-not-allowed",noOptions:"py-2 px-3 text-zinc-600 bg-white text-left",noResults:"py-2 px-3 text-zinc-600 bg-white text-left",fakeInput:"bg-transparent absolute left-0 right-0 -bottom-px w-full h-px border-0 p-0 appearance-none outline-hidden text-transparent",spacer:"h-9 py-px box-content"};function ZN(e){return e in Tt}function eO(e){const t=Object.keys(Tt).find(n=>n.toLowerCase()===e);if(t&&ZN(t))return Tt[t]}const tO=["onClick"],nO={key:1,class:"order-2 mt-1.5 flex items-center gap-x-1 text-xs italic text-error","data-test-error-message":""},iu=r.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},searchable:{type:Boolean,default:!1},cacheable:{type:Boolean,default:!1},onChange:{}},setup(e){const t=e,n=r.useSlots(),a=r.useTemplateRef("select"),o=Zt.useStorage("app-select",[],sessionStorage),i=r.computed(()=>Object.keys(n).filter(u=>u!=="tag")),s=r.computed(()=>{const u={...Tt};return t.openDirection==="up"&&(u.dropdown=`${Tt.dropdown} ${Tt.dropdownTop}`,u.containerOpen=`${Tt.containerOpenTop}`),t.dropdownClasses&&(u.dropdown=`${u.dropdown} ${t.dropdownClasses}`),t.hasError&&(u.container=`${u.container} border-error! focus:ring-error focus:border-error`),Object.entries(t.additionalClasses??{}).forEach(([d,f])=>{d in u&&(u[d]=`${u[d]} ${f}`)}),u});r.onMounted(()=>{if(t.cacheable){const u=Object.values(a.value?.modelValue??{}),d=a.value?.valueProp??"value";o.value.filter(f=>u.includes(f[d])||u.includes(`${f[d]}`))?.forEach(f=>{a.value?.select(f)})}});function l(u){return u?r.isRef(u)?Array.isArray(u.value)?u.value:[u.value]:Array.isArray(u)?u:[u]:[]}function c(u,d){t.onChange?.(u),o.value=l(r.unref(d.iv))}return(u,d)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(u.wrapperClasses)},[u.label||u.$slots.label?(r.openBlock(),r.createBlock(r.unref(om),{key:0,"has-error":u.hasError,class:r.normalizeClass(u.labelClasses)},{default:r.withCtx(()=>[r.renderSlot(u.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(u.label),1)])]),_:3},8,["has-error","class"])):r.createCommentVNode("",!0),r.createVNode(r.unref(am),r.mergeProps({native:!1,classes:s.value,searchable:t.searchable},{...u.$attrs,ref:"select",label:t.optionLabel,onChange:t.onChange},{onOpen:d[0]||(d[0]=f=>{u.fetchOnOpen&&f?.noOptions&&f?.resolveOptions?.()}),onChange:c}),r.createSlots({tag:r.withCtx(f=>[r.createElementVNode("div",{class:r.normalizeClass(r.unref(Tt).tag)},[r.renderSlot(u.$slots,"tag",r.normalizeProps(r.guardReactiveProps(f)),()=>[r.createElementVNode("span",{class:r.normalizeClass(r.unref(Tt).tagText)},r.toDisplayString(f.option?.[u.optionLabel]),3)]),f.disabled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(r.unref(Tt).tagRemove),onClick:p=>f.handleTagRemove(f.option,p)},[r.createElementVNode("span",{class:r.normalizeClass(r.unref(Tt).tagRemoveIcon)},null,2)],10,tO))],2)]),_:2},[r.renderList(i.value,(f,p)=>({name:f,fn:r.withCtx(m=>[r.renderSlot(u.$slots,f,r.normalizeProps(r.guardReactiveProps({...m||{},classes:r.unref(eO)(f)})))])}))]),1040,["classes","searchable"]),u.hasError&&u.errorMessage?(r.openBlock(),r.createElementBlock("p",nO,r.toDisplayString(u.errorMessage),1)):r.createCommentVNode("",!0)],2))}}),rO=["data-error"],om=r.defineComponent({__name:"AppInputLabel",props:{disabled:{type:Boolean},hasError:{type:Boolean}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("label",{class:r.normalizeClass([{"text-error":t.hasError,"select-none text-zinc-300":t.disabled},"mb-2 block text-base font-semibold text-zinc-900"]),"data-error":t.hasError?"label":void 0},[r.renderSlot(t.$slots,"default")],10,rO))}}),Sf={mapId:"161a92b3666d9228",disableDefaultUI:!0,zoom:15},aO={scrollwheel:!1,clickableIcons:!1,keyboardShortcuts:!1,isFractionalZoomEnabled:!1,maxZoom:Sf.zoom,minZoom:Sf.zoom,disableDoubleClickZoom:!0,fullscreenControl:!1,streetViewControl:!1,gestureHandling:"none",rotateControl:!1,panControl:!1},oO=["inline-flex","justify-center","items-center","rounded-full","bg-primary","text-white","h-12","w-12"];function iO(){const e=document.createElement("div");return e.classList.add(...oO),r.render(r.h(i$),e),e}const sO=r.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=r.ref(null),a=r.computed(()=>t.mapCenterLatitude&&t.mapCenterLongitude?{lat:t.mapCenterLatitude,lng:t.mapCenterLongitude}:t.mapOptions?.center??null),o=r.computed(()=>t.markerLatitude&&t.markerLongitude?{lat:t.markerLatitude,lng:t.markerLongitude}:a.value);r.watch(t,async()=>{await i()}),r.onMounted(async()=>{if(!window?.google){console.error("Google not defined. use composable useGoogleApi at setup");return}await i()});async function i(){const{Map:c}=await google.maps.importLibrary("maps");if(n.value instanceof HTMLElement){const u=new c(n.value,{...s(),center:a.value});t.withMarker&&await l(u)}}function s(){let c={...Sf};return t.disableUserInteraction&&(c={...c,...aO}),{...c,...t.mapOptions??{}}}async function l(c){const{AdvancedMarkerElement:u}=await google.maps.importLibrary("marker"),d=new u({map:c,position:o.value,content:iO()});t.disableMarkerClick&&!t.disableUserInteraction&&(d.element.classList.add("cursor-default!"),google.maps.event.addListener(d,"click",()=>{}))}return(c,u)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"mapElement",ref:n,class:"h-80 w-full"},null,512))}}),Cf=r.defineComponent({__name:"NavigationItem",props:{item:{},linkClasses:{}},setup(e){const t=e,{navigationComponent:n,closeMobileMenu:a,expanded:o}=ko(),i=ei.useRouter(),s=r.ref(!1),l=r.computed(()=>s.value||typeof t.item.icon!="string"),c=r.computed(()=>s.value?Na:t.item.icon),u=r.computed(()=>t.item.href??i.resolve(t.item.to)?.href??"");async function d(f){a(),t.item?.onClick&&(f.preventDefault(),s.value=!0,await Promise.resolve(t.item?.onClick?.()),s.value=!1)}return(f,p)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(n)),{to:f.item.to,href:u.value,class:r.normalizeClass([[{"md:bg-primary md:text-white!":f.item.active??!1,"rounded-full!":f.item.rounded??!1,"mb-3":!f.item.bottom,"mt-3":f.item.bottom,"md:w-10 md:justify-center":!r.unref(o),"md:px-6":r.unref(o)},f.linkClasses],"group/item flex h-10 w-full cursor-pointer rounded-lg transition-colors hover:bg-primary md:items-center md:text-center md:text-zinc-400 md:hover:text-white"]),onClick:d},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l.value?c.value:"span"),{class:r.normalizeClass([{"h-6!":!l.value,"md:text-white!":f.item.active},"app-navigation-item size-5 stroke-2 text-black md:size-4 md:text-zinc-400 md:group-hover/item:text-white"]),size:s.value?"extra-small":void 0,"data-test-icon":""},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(l.value?"":f.item.icon),1)]),_:1},8,["class","size"])),r.createElementVNode("span",{class:r.normalizeClass([{"md:w-0 md:p-0":!r.unref(o)},"overflow-hidden whitespace-nowrap pl-7 text-lg font-semibold md:text-base md:font-normal"]),"data-test-name":""},r.toDisplayString(f.item.name),3)]),_:1},8,["to","href","class"]))}}),xf=r.defineComponent({__name:"SupportItem",setup(e){const{contactRoute:t,contactIcon:n,navigationComponent:a,closeMobileMenu:o}=ko();return(i,s)=>r.unref(t)?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(a)),{key:0,to:r.unref(a)!=="a"?r.unref(t):void 0,href:r.unref(a)?r.unref(t):void 0,class:"app-support-item fixed bottom-5 right-5 z-50 mt-2 flex size-10 justify-center rounded-full bg-primary py-2 text-white transition-colors hover:bg-primary-active focus-visible:outline-hidden","data-test-help-icon":"",onClick:r.unref(o)},{default:r.withCtx(()=>[typeof r.unref(n)=="string"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(r.unref(n)),1)],64)):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(n)),{key:1,class:"size-full"}))]),_:1},8,["to","href","onClick"])):r.createCommentVNode("",!0)}}),lO={class:"app-mobile-menu flex h-18 items-center justify-between bg-zinc-50 px-4 text-black md:hidden"},cO=["innerHTML"],uO={class:"flex w-10 grow-0 justify-end","data-test-avatar-wrapper":""},dO={class:"relative flex size-full flex-1 flex-col bg-white focus:outline-hidden","data-test-navigation-wrapper":""},fO={class:"h-0 flex-1 overflow-y-auto p-4","data-test-navigation-links-wrapper":""},pO={"aria-label":"MainMenu",class:"mt-5"},mO={class:"mb-auto"},hO=r.defineComponent({__name:"Mobile",setup(e){const{logo:t,avatar:n,navigationItems:a,mobileMenuOpen:o,mobileMenuOpenTransition:i,openMobileMenu:s,closeMobileMenu:l}=ko(),c=r.computed(()=>o.value?km:s$);function u(){l(),setTimeout(()=>{i.value=!1},100)}function d(){i.value||(s(),i.value=!0)}return(f,p)=>(r.openBlock(),r.createElementBlock("header",lO,[r.createElementVNode("div",{class:"inline-flex w-10 grow-0 cursor-pointer items-center justify-start rounded-sm !py-2 hover:text-primary focus:outline-hidden","data-test-menu-icon-wrapper":"",onClick:r.withModifiers(d,["stop"])},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(c.value),{class:"block size-6 text-black","aria-hidden":"true"}))]),r.createElementVNode("div",{class:"flex h-full max-w-[70%] grow justify-center py-4","data-test-logo-wrapper":"",innerHTML:r.unref(t)},null,8,cO),r.createElementVNode("div",uO,[r.unref(n)?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(n)),{key:0})):r.createCommentVNode("",!0)]),r.createVNode(r.unref(nt.TransitionRoot),{show:r.unref(o),as:"template"},{default:r.withCtx(()=>[r.createVNode(r.unref(nt.Dialog),{as:"div",class:"app-mobile-menu-dialog fixed inset-0 top-18 z-50 flex lg:hidden",onClose:u},{default:r.withCtx(()=>[r.createVNode(r.unref(nt.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:r.withCtx(()=>[r.createElementVNode("div",dO,[r.createElementVNode("div",fO,[r.createElementVNode("nav",pO,[r.createElementVNode("ul",mO,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(a).filter(m=>m.visible!==!1),m=>(r.openBlock(),r.createElementBlock("li",{key:m.name,"data-test-navigation-item":""},[r.createVNode(Cf,{item:m},null,8,["item"])]))),128))])]),r.createVNode(xf)])])]),_:1})]),_:1})]),_:1},8,["show"]),r.createVNode(xf)]))}}),vO={class:"relative before:absolute before:-right-4 before:top-0 before:z-[-1] before:size-4 before:bg-secondary after:absolute after:-right-4 after:bottom-0 after:z-[-1] after:size-4 after:bg-secondary"},gO=["aria-expanded"],yO={key:0},bO=r.defineComponent({__name:"AppNavigationMenu",setup(e){const{navigationItems:t,mainMenuOpen:n,expanded:a,toggleExpand:o,contactIcon:i}=ko();return(s,l)=>(r.openBlock(),r.createElementBlock("div",vO,[r.createElementVNode("aside",{class:r.normalizeClass([{"flex-col px-3 md:w-20!":r.unref(n),"md:w-72!":r.unref(a)},"app-navigation-menu group sticky top-0 hidden h-screen w-0 justify-center py-5 transition-all duration-500 before:absolute before:-right-8 before:top-0 before:size-8 before:bg-zinc-100 after:absolute after:-right-8 after:bottom-0 after:size-8 after:bg-zinc-100 md:flex md:bg-secondary"]),"aria-expanded":r.unref(a),"data-test-main-menu":""},[r.createElementVNode("ul",{class:r.normalizeClass([{"mx-auto":!r.unref(a)},"mb-auto transition-all duration-500 z-10"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(t).filter(c=>c.bottom!==!0&&c.visible!==!1),c=>(r.openBlock(),r.createElementBlock("li",{key:c.name,"data-test-top-navigation-item":""},[r.createVNode(Cf,{item:c,"link-classes":c.linkClasses},null,8,["item","link-classes"])]))),128))],2),r.createElementVNode("ul",{class:r.normalizeClass([{"mx-auto":!r.unref(a)},"mt-auto pb-10 transition-all duration-500"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(t).filter(c=>c.bottom&&c.visible!==!1),c=>(r.openBlock(),r.createElementBlock("li",{key:c.name,"data-test-bottom-navigation-item":""},[r.createVNode(Cf,{item:c,"link-classes":c.linkClasses},null,8,["item","link-classes"])]))),128)),r.unref(i)?(r.openBlock(),r.createElementBlock("li",yO,[r.createVNode(xf,{class:"static!"})])):r.createCommentVNode("",!0)],2),r.createElementVNode("div",{class:"absolute bottom-2 right-5 hidden size-10 cursor-pointer items-center justify-center overflow-hidden rounded-full bg-secondary transition-all duration-200 md:flex",onClick:l[0]||(l[0]=(...c)=>r.unref(o)&&r.unref(o)(...c))},[r.createElementVNode("div",{class:r.normalizeClass([{"-translate-x-4!":!r.unref(a)},"flex translate-x-4 space-x-4 transition-transform duration-700"])},[r.createVNode(r.unref(wm),{class:"size-5 text-zinc-400 hover:text-white"}),r.createVNode(r.unref(Jb),{class:"size-5 text-zinc-400 hover:text-white"})],2)])],10,gO),r.createVNode(hO)]))}}),su=Dn(bO,[["__scopeId","data-v-d443a433"]]),wO={class:"flex text-sm font-bold"},kO={class:"flex items-center rounded-l-lg bg-indigo-900 px-2 py-[0.188rem] text-white","data-test-country-code":""},db=r.defineComponent({__name:"AppLicensePlate",props:{license:{default:void 0},country:{default:"NL"},licensePlateClasses:{default:void 0}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",wO,[r.createElementVNode("span",kO,r.toDisplayString(t.country),1),r.createElementVNode("span",{class:r.normalizeClass([t.licensePlateClasses,"w-full rounded-r-lg bg-yellow-400 px-2 py-[0.188rem] uppercase"]),"data-test-license-plate":""},[r.renderSlot(t.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(t.license),1)])],2)]))}}),fb=r.defineComponent({__name:"AppTimelineItemIcon",props:{icon:{}},setup(e){const t=e,n=r.computed(()=>t.icon??l$),a=r.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=r.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)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(o.value)},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.value),{class:r.normalizeClass([a.value,"relative"])},null,8,["class"]))],2))}}),_O={plain:[],default:["text-zinc-600"],success:["text-green-600"],warning:["text-yellow-600"],error:["text-red-600"],info:["text-sky-600"],inactive:["text-orange-500"]},SO={class:"flex"},CO={class:"ml-4"},pb=r.defineComponent({__name:"AppTimelineItem",props:{item:{},itemType:{default:"default"}},setup(e){const t=e,n=r.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:[]),a=r.computed(()=>t.item?.badge??"default");return(o,i)=>(r.openBlock(),r.createElementBlock("article",{class:r.normalizeClass([{"after:hidden":o.item.last},"relative flex w-full before:absolute before:-top-5 before:left-4.5 before:h-5 before:w-0.5 before:bg-primary after:absolute after:left-4.5 after:h-full after:w-0.5 after:bg-primary after:[min-height:60px] first-of-type:before:hidden last-of-type:from-primary last-of-type:to-white last-of-type:after:bg-transparent last-of-type:after:bg-linear-to-b"])},[r.createElementVNode("div",SO,[r.renderSlot(o.$slots,"icon",{value:o.item.icon},()=>[r.createVNode(fb,{icon:o.item.icon},null,8,["icon"])])]),r.createElementVNode("div",CO,[r.createElementVNode("header",{class:r.normalizeClass({"flex items-center gap-3":o.itemType==="inline","mb-0!":o.item.last})},[r.createVNode(r.unref(sc),{class:r.normalizeClass({"mb-2":o.itemType==="default"}),type:a.value},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"date",{value:n.value},()=>[r.createElementVNode("time",null,r.toDisplayString(n.value)+" uur",1)])]),_:3},8,["class","type"]),r.createElementVNode("h3",{class:r.normalizeClass([{domClassesPerType:a.value},"font-semibold"]),"data-test-timeline-title":""},[r.renderSlot(o.$slots,"title",{value:o.item.title},()=>[r.createElementVNode("span",{class:r.normalizeClass(r.unref(_O)[a.value])},r.toDisplayString(o.item.title),3)])],2)],2),r.createElementVNode("p",{class:r.normalizeClass([{"mt-4":o.itemType==="inline"},"text-base empty:mt-0"]),"data-test-timeline-description":""},[r.renderSlot(o.$slots,"default",{value:o.item.description},()=>[r.createTextVNode(r.toDisplayString(o.item.description),1)])],2)])],2))}}),xO={class:"space-y-4"},EO=r.defineComponent({__name:"AppTimeline",props:{items:{},type:{default:"default"}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",xO,[r.renderSlot(t.$slots,"default",{},()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.items,a=>(r.openBlock(),r.createBlock(pb,{key:a.title,item:a,"item-type":t.type},null,8,["item","item-type"]))),128))])]))}}),TO={},PO={class:"flow-root"},AO={class:"overflow-x-auto"},IO={class:"inline-block min-w-full"},MO={class:"overflow-hidden"},NO={class:"w-full"};function OO(e,t){return r.openBlock(),r.createElementBlock("div",PO,[r.createElementVNode("div",AO,[r.createElementVNode("div",IO,[r.createElementVNode("div",MO,[r.createElementVNode("table",NO,[r.renderSlot(e.$slots,"default",{},void 0,!0)])])])])])}const BO=Dn(TO,[["render",OO],["__scopeId","data-v-1edf1593"]]);var LO=Object.defineProperty,DO=Object.defineProperties,RO=Object.getOwnPropertyDescriptors,f0=Object.getOwnPropertySymbols,$O=Object.prototype.hasOwnProperty,zO=Object.prototype.propertyIsEnumerable,p0=(e,t,n)=>t in e?LO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wr=(e,t)=>{for(var n in t||(t={}))$O.call(t,n)&&p0(e,n,t[n]);if(f0)for(var n of f0(t))zO.call(t,n)&&p0(e,n,t[n]);return e},ql=(e,t)=>DO(e,RO(t)),Da=(e,t)=>{const n=e.__vccOpts||e;for(const[a,o]of t)n[a]=o;return n};const VO=e=>(r.pushScopeId("data-v-e0a0b7f0"),e=e(),r.popScopeId(),e),FO=["onClick"],jO=["checked"],HO=VO(()=>r.createElementVNode("label",{for:"checbox"},null,-1)),UO=r.defineComponent({__name:"MultipleSelectCheckBox",props:{status:{type:String,required:!0}},emits:["change"],setup(e,{emit:t}){const n=e;r.useCssVars(s=>({"51ab8a49":r.unref(i)}));const a=r.computed(()=>n.status==="allSelected"),o=()=>{t("change",!a.value)},i=r.inject("themeColor");return(s,l)=>(r.openBlock(),r.createElementBlock("div",{class:"easy-checkbox",onClick:r.withModifiers(o,["stop","prevent"])},[r.createElementVNode("input",{type:"checkbox",checked:r.unref(a),class:r.normalizeClass(e.status)},null,10,jO),HO],8,FO))}});var WO=Da(UO,[["__scopeId","data-v-e0a0b7f0"]]);const qO=e=>(r.pushScopeId("data-v-7e69a276"),e=e(),r.popScopeId(),e),YO=["checked"],GO=qO(()=>r.createElementVNode("label",{for:"checbox"},null,-1)),KO=r.defineComponent({__name:"SingleSelectCheckBox",props:{checked:{type:Boolean,required:!0}},emits:["change"],setup(e,{emit:t}){r.useCssVars(a=>({fdaf7e9e:r.unref(n)}));const n=r.inject("themeColor");return(a,o)=>(r.openBlock(),r.createElementBlock("div",{class:"easy-checkbox",onClick:o[0]||(o[0]=r.withModifiers(i=>t("change"),["stop","prevent"]))},[r.createElementVNode("input",{type:"checkbox",checked:e.checked},null,8,YO),GO]))}});var XO=Da(KO,[["__scopeId","data-v-7e69a276"]]);const JO=e=>(r.pushScopeId("data-v-4ca5de3a"),e=e(),r.popScopeId(),e),QO={class:"easy-data-table__rows-selector"},ZO={class:"rows-input"},eB=JO(()=>r.createElementVNode("div",{class:"triangle"},null,-1)),tB=["onClick"],nB=r.defineComponent({__name:"RowsSelector",props:{modelValue:{type:Number,required:!0},rowsItems:{type:Array,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;r.useCssVars(f=>({"1b889342":r.unref(d)}));const a=r.ref(!1),o=r.ref(!1),i=r.inject("dataTable");r.watch(a,f=>{if(f&&i){const p=window.innerHeight,m=i.value.getBoundingClientRect().height,v=i.value.getBoundingClientRect().top;p-(m+v)<=100?o.value=!0:o.value=!1}});const s=r.computed({get:()=>n.modelValue,set:f=>{t("update:modelValue",f)}}),l=f=>{s.value=f,a.value=!1},c=(f,p)=>{let m=f.parentNode;for(;m!=null;){if(m.classList&&m.classList.contains(p))return!0;m=m.parentNode}return!1},u=f=>{c(f.target,"easy-data-table__rows-selector")||(a.value=!1)};r.onMounted(()=>{document.addEventListener("click",u)}),r.onBeforeUnmount(()=>{document.removeEventListener("click",u)});const d=r.inject("themeColor");return(f,p)=>(r.openBlock(),r.createElementBlock("div",QO,[r.createElementVNode("div",{class:"rows-input__wrapper",onClick:p[0]||(p[0]=m=>a.value=!a.value)},[r.createElementVNode("div",ZO,r.toDisplayString(r.unref(s)),1),eB]),r.createElementVNode("ul",{class:r.normalizeClass(["select-items",{show:a.value,inside:o.value}])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rowsItems,m=>(r.openBlock(),r.createElementBlock("li",{key:m,class:r.normalizeClass({selected:m===r.unref(s)}),onClick:v=>l(m)},r.toDisplayString(m),11,tB))),128))],2)]))}});var rB=Da(nB,[["__scopeId","data-v-4ca5de3a"]]);const lu=e=>(r.pushScopeId("data-v-1fa3a520"),e=e(),r.popScopeId(),e),aB={class:"lds-ring"},oB=lu(()=>r.createElementVNode("div",null,null,-1)),iB=lu(()=>r.createElementVNode("div",null,null,-1)),sB=lu(()=>r.createElementVNode("div",null,null,-1)),lB=lu(()=>r.createElementVNode("div",null,null,-1)),cB=[oB,iB,sB,lB],uB=r.defineComponent({__name:"Loading",setup(e){r.useCssVars(n=>({26774109:r.unref(t)}));const t=r.inject("themeColor");return(n,a)=>(r.openBlock(),r.createElementBlock("div",aB,cB))}});var dB=Da(uB,[["__scopeId","data-v-1fa3a520"]]);const fB={class:"loader-line"},pB=r.defineComponent({__name:"LoadingLine",setup(e){r.useCssVars(n=>({"0d327f57":r.unref(t)}));const t=r.inject("themeColor");return(n,a)=>(r.openBlock(),r.createElementBlock("div",fB))}});var mB=Da(pB,[["__scopeId","data-v-7d281cac"]]);const hB={class:"buttons-pagination"},vB=["onClick"],gB=r.defineComponent({__name:"ButtonsPagination",props:{maxPaginationNumber:{type:Number,required:!0},currentPaginationNumber:{type:Number,required:!0}},emits:["updatePage"],setup(e,{emit:t}){const n=e;r.useCssVars(l=>({"40dd4f07":r.unref(s)}));const a=7,o=l=>{l.type==="button"&&!l.active&&t("updatePage",l.page)},i=r.computed(()=>{const l=[];if(n.maxPaginationNumber<=a)for(let c=1;c<=n.maxPaginationNumber;c+=1)l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else if([1,2,n.maxPaginationNumber,n.maxPaginationNumber-1].includes(n.currentPaginationNumber))for(let c=1;c<=a;c+=1)if(c<=3)l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else if(c===4)l.push({type:"omission"});else{const u=n.maxPaginationNumber-(a-c);l.push({type:"button",page:u,active:u===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber})}else if([3,4].includes(n.currentPaginationNumber))for(let c=1;c<=a;c+=1)c<=5?l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber}):c===6?l.push({type:"omission"}):l.push({type:"button",page:n.maxPaginationNumber,active:n.maxPaginationNumber===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else if([n.maxPaginationNumber-2,n.maxPaginationNumber-3].includes(n.currentPaginationNumber))for(let c=1;c<=a;c+=1)if(c===1)l.push({type:"button",page:1,active:n.currentPaginationNumber===1,activePrev:c+1===n.currentPaginationNumber});else if(c===2)l.push({type:"omission"});else{const u=n.maxPaginationNumber-(a-c);l.push({type:"button",page:u,active:u===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber})}else for(let c=1;c<=a;c+=1)if(c===1)l.push({type:"button",page:1,active:n.currentPaginationNumber===1,activePrev:c+1===n.currentPaginationNumber});else if(c===2||c===6)l.push({type:"omission"});else if(c===7)l.push({type:"button",page:n.maxPaginationNumber,active:n.maxPaginationNumber===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else{const u=4-c,d=n.currentPaginationNumber-u;l.push({type:"button",page:d,active:d===n.currentPaginationNumber,activePrev:d+1===n.currentPaginationNumber})}return l}),s=r.inject("themeColor");return(l,c)=>(r.openBlock(),r.createElementBlock("div",hB,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i),(u,d)=>(r.openBlock(),r.createElementBlock("div",{key:d,class:r.normalizeClass(["item",{button:u.type==="button",active:u.type==="button"&&u.active,"active-prev":u.type==="button"&&u.activePrev,omission:u.type==="omission"}]),onClick:f=>o(u)},r.toDisplayString(u.type==="button"?u.page:"..."),11,vB))),128))]))}});var yB=Da(gB,[["__scopeId","data-v-4c681fa2"]]);const mb=e=>(r.pushScopeId("data-v-c9da5286"),e=e(),r.popScopeId(),e),bB=mb(()=>r.createElementVNode("span",{class:"arrow arrow-right"},null,-1)),wB=[bB],kB=mb(()=>r.createElementVNode("span",{class:"arrow arrow-left"},null,-1)),_B=[kB],SB=r.defineComponent({__name:"PaginationArrows",props:{isFirstPage:{type:Boolean,required:!1},isLastPage:{type:Boolean,required:!1}},emits:["clickPrevPage","clickNextPage"],setup(e,{emit:t}){const n=r.useSlots();return(a,o)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",{class:r.normalizeClass(["previous-page__click-button",{"first-page":e.isFirstPage}]),onClick:o[0]||(o[0]=i=>t("clickPrevPage"))},wB,2),r.unref(n).buttonsPagination?r.renderSlot(a.$slots,"buttonsPagination",{key:0},void 0,!0):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["next-page__click-button",{"last-page":e.isLastPage}]),onClick:o[1]||(o[1]=i=>t("clickNextPage"))},_B,2)],64))}});var CB=Da(SB,[["__scopeId","data-v-c9da5286"]]);function xB(e,t,n,a){return{clickRow:(i,s,l)=>{if(e.value!==s)return;const c=wr({},i);if(t.value){const{checkbox:u}=i;delete c.checkbox,c.isSelected=u}if(n.value){const{index:u}=i;delete c.index,c.indexInCurrentPage=u}a("clickRow",c,l)}}}function EB(e,t,n){const a=r.ref([]);return{expandingItemIndexList:a,updateExpandingItemIndexList:(s,l,c)=>{c.stopPropagation();const u=a.value.indexOf(s);if(u!==-1)a.value.splice(u,1);else{const d=e.value.findIndex(f=>JSON.stringify(f)===JSON.stringify(l));n("expandRow",t.value+d,l),a.value.push(t.value+d)}},clearExpandingItemIndexList:()=>{a.value=[]}}}function TB(e){const t=r.computed(()=>e.value.filter(o=>o.fixed)),n=r.computed(()=>t.value.length?t.value[t.value.length-1].value:""),a=r.computed(()=>{if(!t.value.length)return[];const o=t.value.map(i=>{var s;return(s=i.width)!=null?s:100});return t.value.map((i,s)=>{var l,c;return{value:i.value,fixed:(l=i.fixed)!=null?l:!0,width:(c=i.width)!=null?c:100,distance:s===0?0:o.reduce((u,d,f)=>{let p=u;return f<s&&(p+=d),p})}})});return{fixedHeaders:t,lastFixedColumn:n,fixedColumnsInfos:a}}function PB(e,t,n,a,o,i,s,l,c,u,d,f,p,m,v,y,w,b,E){const _=r.computed(()=>s.value.findIndex(R=>R.fixed)!==-1),g=r.computed(()=>_.value?s.value.filter(R=>R.fixed):[]),x=r.computed(()=>s.value.filter(R=>!R.fixed)),C=(R,I)=>Array.isArray(R)&&Array.isArray(I)?{sortBy:R,sortDesc:I.map(B=>B==="desc")}:R!==""?{sortBy:v.value,sortDesc:y.value==="desc"}:null,P=r.ref(C(v.value,y.value)),O=r.computed(()=>{var R;const B=[...g.value,...x.value].map(V=>{const Z=Object.assign(V);if(Z.sortable&&(Z.sortType="none"),p.value)if(Array.isArray(p.value.sortBy)&&Array.isArray(p.value.sortType)&&p.value.sortBy.includes(Z.value)){const q=p.value.sortBy.indexOf(Z.value);Z.sortType=p.value.sortType[q]}else Z.value===p.value.sortBy&&p.value.sortType&&(Z.sortType=p.value.sortType);if(P.value&&Array.isArray(P.value.sortBy)&&Array.isArray(P.value.sortDesc)&&P.value.sortBy.includes(Z.value)){const q=P.value.sortBy.indexOf(Z.value);Z.sortType=P.value.sortDesc[q]?"desc":"asc"}else P.value&&Z.value===P.value.sortBy&&(Z.sortType=P.value.sortDesc?"desc":"asc");return Z});let M=[];l.value?M=[o.value||_.value?{text:"",value:"expand",fixed:!0,width:n.value}:{text:"",value:"expand"},...B]:M=B;let $=[];m.value?$=[i.value||_.value?{text:e.value,value:"index",fixed:!0,width:c.value}:{text:e.value,value:"index"},...M]:$=M;let K=[];return u.value?K=[a.value||_.value?{text:"checkbox",value:"checkbox",fixed:!0,width:(R=t.value)!=null?R:36}:{text:"checkbox",value:"checkbox"},...$]:K=$,K}),A=r.computed(()=>O.value.map(R=>R.value));return{clientSortOptions:P,headerColumns:A,headersForRender:O,updateSortField:(R,I)=>{let B=null;if(I==="none"?B="asc":I==="asc"?B="desc":B=f.value?"asc":null,d.value&&b(R,B),P.value&&Array.isArray(P.value.sortBy)&&Array.isArray(P.value.sortDesc)){const M=P.value.sortBy.indexOf(R);M===-1?B!==null&&(P.value.sortBy.push(R),P.value.sortDesc.push(B==="desc")):B===null?(P.value.sortDesc.splice(M,1),P.value.sortBy.splice(M,1)):P.value.sortDesc[M]=B==="desc"}else B===null?P.value=null:P.value={sortBy:R,sortDesc:B==="desc"};E("updateSort",{sortType:B,sortBy:R})},isMultiSorting:R=>p.value&&Array.isArray(p.value.sortBy)?p.value.sortBy.includes(R):P.value&&Array.isArray(P.value.sortBy)?P.value.sortBy.includes(R):!1,getMultiSortNumber:R=>p.value&&Array.isArray(p.value.sortBy)?p.value.sortBy.indexOf(R)+1:P.value&&Array.isArray(P.value.sortBy)?P.value.sortBy.indexOf(R)+1:!1}}function AB(e,t,n,a,o,i,s,l,c){const u=r.computed(()=>(e.value-1)*o.value+1),d=r.computed(()=>n.value?Math.min(c.value,e.value*o.value):Math.min(l.value.length,e.value*o.value)),f=r.computed(()=>n.value?a.value:l.value.slice(u.value-1,d.value)),p=r.computed(()=>s.value?f.value.map((y,w)=>wr({index:u.value+w},y)):f.value),m=r.computed(()=>i.value.length===0||i.value.every(w=>l.value.findIndex(b=>JSON.stringify(w)===JSON.stringify(b))===-1)?"noneSelected":i.value.length===l.value.length&&i.value.every(b=>l.value.findIndex(E=>JSON.stringify(b)===JSON.stringify(E))!==-1)?"allSelected":"partSelected"),v=r.computed(()=>t.value?m.value==="allSelected"?p.value.map(y=>wr({checkbox:!0},y)):m.value==="noneSelected"?p.value.map(y=>wr({checkbox:!1},y)):p.value.map(y=>{const w=i.value.findIndex(b=>{const E=wr({},y);return delete E.index,JSON.stringify(b)===JSON.stringify(E)})!==-1;return wr({checkbox:w},y)}):p.value);return{currentPageFirstIndex:u,currentPageLastIndex:d,multipleSelectStatus:m,pageItems:v}}function IB(e,t,n,a,o,i,s){const l=r.ref(i.value?i.value.page:e.value),c=r.computed(()=>Math.ceil(a.value/o.value)),u=r.computed(()=>c.value===0||l.value===c.value),d=r.computed(()=>l.value===1);return{currentPaginationNumber:l,maxPaginationNumber:c,isLastPage:u,isFirstPage:d,nextPage:()=>{if(a.value!==0&&!u.value&&!n.value)if(t.value){const y=l.value+1;s(y)}else l.value+=1},prevPage:()=>{if(a.value!==0&&!d.value&&!n.value)if(t.value){const y=l.value-1;s(y)}else l.value-=1},updatePage:y=>{n.value||(t.value?s(y):l.value=y)},updateCurrentPaginationNumber:y=>{l.value=y}}}function MB(e,t,n,a){const o=r.computed(()=>!e.value&&t.value.findIndex(l=>l===a.value)===-1?[a.value,...t.value]:t.value),i=r.ref(n.value?n.value.rowsPerPage:a.value);return{rowsItemsComputed:o,rowsPerPageRef:i,updateRowsPerPage:l=>{i.value=l}}}function NB(e,t,n){const a=r.computed({get:()=>{if(e.value){const{page:l,rowsPerPage:c,sortBy:u,sortType:d}=e.value;return{page:l,rowsPerPage:c,sortBy:u??null,sortType:d??null}}return null},set:l=>{n("update:serverOptions",l)}});return{serverOptionsComputed:a,updateServerOptionsPage:l=>{a.value&&(a.value=ql(wr({},a.value),{page:l}))},updateServerOptionsSort:(l,c)=>{if(a.value)if(t.value&&Array.isArray(a.value.sortBy)&&Array.isArray(a.value.sortType)){const u=a.value.sortBy.findIndex(d=>d===l);u===-1&&c!==null&&(a.value.sortBy.push(l),a.value.sortType.push(c)),c===null?(a.value.sortBy.splice(u,1),a.value.sortType.splice(u,1)):a.value.sortType[u]=c}else a.value=ql(wr({},a.value),{sortBy:c!==null?l:null,sortType:c})},updateServerOptionsRowsPerPage:l=>{a.value&&(a.value=ql(wr({},a.value),{page:1,rowsPerPage:l}))}}}function dn(e,t){var n;if(e.includes(".")){const a=e.split("."),{length:o}=a;let i,s=0;for(;s<o;){if(s===0)i=t[a[0]];else if(i&&typeof i=="object")i=i[a[s]];else{i="";break}s+=1}return i??""}return(n=t[e])!=null?n:""}function OB(e,t){const n=dn(e,t);return Array.isArray(n)?n.join(","):n}function BB(e,t,n,a,o,i,s,l,c,u){const d=_=>{if(typeof i.value=="string"&&i.value!=="")return dn(i.value,_);if(Array.isArray(i.value)){let g="";return i.value.forEach(x=>{g+=dn(x,_)}),g}return Object.values(_).join(" ")},f=r.computed(()=>{if(!n.value&&s.value!==""){const _=new RegExp(s.value,"i");return a.value.filter(g=>_.test(d(g)))}return a.value}),p=r.computed(()=>{let _=[...f.value];return t.value?(t.value.forEach(g=>{_=_.filter(x=>{const{field:C,comparison:P,criteria:O}=g;if(typeof P=="function")return P(dn(C,x),O);const A=dn(C,x);switch(P){case"=":return A===O;case"!=":return A!==O;case">":return A>O;case"<":return A<O;case"<=":return A<=O;case">=":return A>=O;case"between":return A>=Math.min(...O)&&A<=Math.max(...O);case"in":return O.includes(A);default:return A===O}})}),_):f.value});r.watch(p,_=>{t.value&&u("updateFilter",_)},{immediate:!0,deep:!0});function m(_,g,x,C){const P=_[C],O=g[C];return(C===0?x:m(_,g,x,C-1)).sort((L,U)=>{let z=!0;for(let R=0;R<C;R+=1)if(dn(_[R],L)!==dn(_[R],U)){z=!1;break}return z?dn(P,L)<dn(P,U)?O?1:-1:dn(P,L)>dn(P,U)?O?-1:1:0:0})}const v=r.computed(()=>{if(n.value)return a.value;if(e.value===null)return p.value;const{sortBy:_,sortDesc:g}=e.value,x=[...p.value];return c&&Array.isArray(_)&&Array.isArray(g)?_.length===0?x:m(_,g,x,_.length-1):x.sort((C,P)=>dn(_,C)<dn(_,P)?g?1:-1:dn(_,C)>dn(_,P)?g?-1:1:0)}),y=r.computed(()=>n.value?l.value:v.value.length),w=r.computed({get:()=>{var _;return(_=o.value)!=null?_:[]},set:_=>{u("update:itemsSelected",_)}});return{totalItems:v,selectItemsComputed:w,totalItemsLength:y,toggleSelectAll:_=>{w.value=_?v.value:[],_&&u("selectAll")},toggleSelectItem:_=>{const g=_.checkbox;if(delete _.checkbox,delete _.index,g)w.value=w.value.filter(x=>JSON.stringify(x)!==JSON.stringify(_)),u("deselectRow",_);else{const x=w.value;x.unshift(_),w.value=x,u("selectRow",_)}}}}var LB={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 DB=e=>(r.pushScopeId("data-v-32683533"),e=e(),r.popScopeId(),e),RB=["id"],$B=["onClick"],zB={key:3,class:"header-text"},VB={key:5,class:"multi-sort__number"},FB=["onClick","onDblclick","onContextmenu"],jB=["onClick"],HB=["colspan"],UB={key:0,class:"vue3-easy-data-table__loading"},WB=DB(()=>r.createElementVNode("div",{class:"vue3-easy-data-table__loading-mask"},null,-1)),qB={class:"loading-entity"},YB={key:1,class:"vue3-easy-data-table__message"},GB={key:0,class:"vue3-easy-data-table__footer"},KB={key:0,class:"pagination__rows-per-page"},XB={class:"pagination__items-index"},JB=r.defineComponent({__name:"DataTable",props:ql(wr({},LB),{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 a=e;r.useCssVars(Pe=>({da0d4328:r.unref(j),"3037e504":r.unref(oe)}));const{tableNodeId:o,clickEventType:i,bodyTextDirection:s,checkboxColumnWidth:l,currentPage:c,expandColumnWidth:u,filterOptions:d,fixedCheckbox:f,fixedExpand:p,fixedHeader:m,fixedIndex:v,headers:y,headerTextDirection:w,indexColumnWidth:b,items:E,itemsSelected:_,loading:g,mustSort:x,multiSort:C,rowsItems:P,rowsPerPage:O,searchField:A,searchValue:L,serverItemsLength:U,serverOptions:z,showIndex:R,sortBy:I,sortType:B,tableHeight:M,tableMinHeight:$,themeColor:K,rowsOfPageSeparatorMessage:V,showIndexSymbol:Z,preventContextMenuRow:q}=r.toRefs(a),oe=r.computed(()=>M.value?`${M.value}px`:null),j=r.computed(()=>`${$.value}px`);r.provide("themeColor",K.value);const W=r.useSlots(),Y=r.computed(()=>!!W.pagination),H=r.computed(()=>!!W.loading),T=r.computed(()=>!!W.expand),J=r.computed(()=>!!W.body),le=r.ref(),Oe=r.ref();r.provide("dataTable",le);const ee=r.ref(!1);r.onMounted(()=>{Oe.value.addEventListener("scroll",()=>{ee.value=Oe.value.scrollLeft>0})});const Te=r.computed(()=>_.value!==null),ae=r.computed(()=>z.value!==null),{serverOptionsComputed:ue,updateServerOptionsPage:D,updateServerOptionsSort:de,updateServerOptionsRowsPerPage:fe}=NB(z,C,n),{clientSortOptions:ce,headerColumns:Ae,headersForRender:pe,updateSortField:Ie,isMultiSorting:xe,getMultiSortNumber:X}=PB(Z,l,u,f,p,v,y,T,b,Te,ae,x,ue,R,I,B,C,de,n),{rowsItemsComputed:re,rowsPerPageRef:ye,updateRowsPerPage:Ze}=MB(ae,P,z,O),{totalItems:ct,selectItemsComputed:Se,totalItemsLength:ut,toggleSelectAll:$t,toggleSelectItem:xn}=BB(ce,d,ae,E,_,A,L,U,C,n),{currentPaginationNumber:zt,maxPaginationNumber:Kt,isLastPage:te,isFirstPage:_e,nextPage:Ee,prevPage:He,updatePage:G,updateCurrentPaginationNumber:se}=IB(c,ae,g,ut,ye,z,D),{currentPageFirstIndex:be,currentPageLastIndex:Re,multipleSelectStatus:ne,pageItems:he}=AB(zt,Te,ae,E,ye,Se,R,ct,ut),Ce=r.computed(()=>zt.value===0?0:(zt.value-1)*ye.value),{expandingItemIndexList:st,updateExpandingItemIndexList:vt,clearExpandingItemIndexList:Ut}=EB(he,Ce,n),{fixedHeaders:Vt,lastFixedColumn:nn,fixedColumnsInfos:za}=TB(pe),{clickRow:Wn}=xB(i,Te,R,n),Vi=(Pe,rn)=>{q.value&&rn.preventDefault(),n("contextmenuRow",Pe,rn)},Ao=Pe=>{var rn;const Me=(rn=Pe.width)!=null?rn:Vt.value.length?100:null;if(Me)return`width: ${Me}px; min-width: ${Me}px;`},Io=(Pe,rn="th")=>{if(!Vt.value.length)return;const Me=za.value.find(Ot=>Ot.value===Pe);if(Me)return`left: ${Me.distance}px;z-index: ${rn==="th"?3:1};position: sticky;`};return r.watch(g,(Pe,rn)=>{ue.value&&Pe===!1&&rn===!0&&(se(ue.value.page),Ut())}),r.watch(ye,Pe=>{ae.value?fe(Pe):G(1)}),r.watch([L,d],()=>{ae.value||G(1)}),r.watch([zt,ce,A,L,d],()=>{Ut()},{deep:!0}),r.watch(he,Pe=>{n("updatePageItems",Pe)},{deep:!0}),r.watch(ct,Pe=>{n("updateTotalItems",Pe)},{deep:!0}),t({currentPageFirstIndex:be,currentPageLastIndex:Re,clientItemsLength:ut,maxPaginationNumber:Kt,currentPaginationNumber:zt,isLastPage:te,isFirstPage:_e,nextPage:Ee,prevPage:He,updatePage:G,rowsPerPageOptions:re,rowsPerPageActiveOption:ye,updateRowsPerPageActiveOption:Ze}),(Pe,rn)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"dataTable",ref:le,class:r.normalizeClass(["vue3-easy-data-table",[Pe.tableClassName]])},[r.createElementVNode("div",{ref_key:"tableBody",ref:Oe,class:r.normalizeClass(["vue3-easy-data-table__main",{"fixed-header":r.unref(m),"fixed-height":r.unref(M),"show-shadow":ee.value,"table-fixed":r.unref(Vt).length,hoverable:!Pe.noHover,"border-cell":Pe.borderCell}])},[r.createElementVNode("table",{id:r.unref(o)},[r.createElementVNode("colgroup",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(pe),(Me,Ot)=>(r.openBlock(),r.createElementBlock("col",{key:Ot,style:r.normalizeStyle(Ao(Me))},null,4))),128))]),r.unref(W)["customize-headers"]?r.renderSlot(Pe.$slots,"customize-headers",{key:0},void 0,!0):r.unref(pe).length&&!Pe.hideHeader?(r.openBlock(),r.createElementBlock("thead",{key:1,class:r.normalizeClass(["vue3-easy-data-table__header",[Pe.headerClassName]])},[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(pe),(Me,Ot)=>(r.openBlock(),r.createElementBlock("th",{key:Ot,class:r.normalizeClass([{sortable:Me.sortable,none:Me.sortable&&Me.sortType==="none",desc:Me.sortable&&Me.sortType==="desc",asc:Me.sortable&&Me.sortType==="asc",shadow:Me.value===r.unref(nn)},typeof Pe.headerItemClassName=="string"?Pe.headerItemClassName:Pe.headerItemClassName(Me,Ot+1)]),style:r.normalizeStyle(Io(Me.value)),onClick:r.withModifiers(gt=>Me.sortable&&Me.sortType?r.unref(Ie)(Me.value,Me.sortType):null,["stop"])},[Me.text==="checkbox"?(r.openBlock(),r.createBlock(WO,{key:r.unref(ne),status:r.unref(ne),onChange:r.unref($t)},null,8,["status","onChange"])):(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["header",`direction-${r.unref(w)}`])},[r.unref(W)[`header-${Me.value}`]?r.renderSlot(Pe.$slots,`header-${Me.value}`,r.normalizeProps(r.mergeProps({key:0},Me)),void 0,!0):r.unref(W)[`header-${Me.value.toLowerCase()}`]?r.renderSlot(Pe.$slots,`header-${Me.value.toLowerCase()}`,r.normalizeProps(r.mergeProps({key:1},Me)),void 0,!0):r.unref(W).header?r.renderSlot(Pe.$slots,"header",r.normalizeProps(r.mergeProps({key:2},Me)),void 0,!0):(r.openBlock(),r.createElementBlock("span",zB,r.toDisplayString(Me.text),1)),Me.sortable?(r.openBlock(),r.createElementBlock("i",{key:Me.sortType?Me.sortType:"none",class:r.normalizeClass(["sortType-icon",{desc:Me.sortType==="desc"}])},null,2)):r.createCommentVNode("",!0),r.unref(C)&&r.unref(xe)(Me.value)?(r.openBlock(),r.createElementBlock("span",VB,r.toDisplayString(r.unref(X)(Me.value)),1)):r.createCommentVNode("",!0)],2))],14,$B))),128))])],2)):r.createCommentVNode("",!0),r.unref(J)?r.renderSlot(Pe.$slots,"body",r.normalizeProps(r.mergeProps({key:2},r.unref(he))),void 0,!0):r.unref(Ae).length?(r.openBlock(),r.createElementBlock("tbody",{key:3,class:r.normalizeClass(["vue3-easy-data-table__body",{"row-alternation":Pe.alternating}])},[r.renderSlot(Pe.$slots,"body-prepend",r.normalizeProps(r.guardReactiveProps({items:r.unref(he),pagination:{isFirstPage:r.unref(_e),isLastPage:r.unref(te),currentPaginationNumber:r.unref(zt),maxPaginationNumber:r.unref(Kt),nextPage:r.unref(Ee),prevPage:r.unref(He)},headers:r.unref(pe)})),void 0,!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(he),(Me,Ot)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:Ot},[r.createElementVNode("tr",{class:r.normalizeClass([{"even-row":(Ot+1)%2===0},typeof Pe.bodyRowClassName=="string"?Pe.bodyRowClassName:Pe.bodyRowClassName(Me,Ot+1)]),onClick:gt=>{r.unref(Wn)(Me,"single",gt),Pe.clickRowToExpand&&r.unref(vt)(Ot+r.unref(Ce),Me,gt)},onDblclick:gt=>{r.unref(Wn)(Me,"double",gt)},onContextmenu:gt=>{Vi(Me,gt)}},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Ae),(gt,sa)=>(r.openBlock(),r.createElementBlock("td",{key:sa,style:r.normalizeStyle(Io(gt,"td")),class:r.normalizeClass([{shadow:gt===r.unref(nn),"can-expand":gt==="expand"},typeof Pe.bodyItemClassName=="string"?Pe.bodyItemClassName:Pe.bodyItemClassName(gt,Ot+1),`direction-${r.unref(s)}`]),onClick:vn=>gt==="expand"?r.unref(vt)(Ot+r.unref(Ce),Me,vn):null},[r.unref(W)[`item-${gt}`]?r.renderSlot(Pe.$slots,`item-${gt}`,r.normalizeProps(r.mergeProps({key:0},Me)),void 0,!0):r.unref(W)[`item-${gt.toLowerCase()}`]?r.renderSlot(Pe.$slots,`item-${gt.toLowerCase()}`,r.normalizeProps(r.mergeProps({key:1},Me)),void 0,!0):gt==="expand"?(r.openBlock(),r.createElementBlock("i",{key:2,class:r.normalizeClass(["expand-icon",{expanding:r.unref(st).includes(r.unref(Ce)+Ot)}])},null,2)):gt==="checkbox"?(r.openBlock(),r.createBlock(XO,{key:3,checked:Me[gt],onChange:vn=>r.unref(xn)(Me)},null,8,["checked","onChange"])):r.unref(W).item?r.renderSlot(Pe.$slots,"item",r.normalizeProps(r.mergeProps({key:4},{column:gt,item:Me})),void 0,!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:5},[r.createTextVNode(r.toDisplayString(r.unref(OB)(gt,Me)),1)],64))],14,jB))),128))],42,FB),r.unref(T)&&r.unref(st).includes(Ot+r.unref(Ce))?(r.openBlock(),r.createElementBlock("tr",{key:0,class:r.normalizeClass([{"even-row":(Ot+1)%2===0},typeof Pe.bodyExpandRowClassName=="string"?Pe.bodyExpandRowClassName:Pe.bodyExpandRowClassName(Me,Ot+1)])},[r.createElementVNode("td",{colspan:r.unref(pe).length,class:"expand"},[Me.expandLoading?(r.openBlock(),r.createBlock(mB,{key:0,class:"expand-loading"})):r.createCommentVNode("",!0),r.renderSlot(Pe.$slots,"expand",r.normalizeProps(r.guardReactiveProps(Me)),void 0,!0)],8,HB)],2)):r.createCommentVNode("",!0)],64))),128)),r.renderSlot(Pe.$slots,"body-append",r.normalizeProps(r.guardReactiveProps({items:r.unref(he),pagination:{isFirstPage:r.unref(_e),isLastPage:r.unref(te),currentPaginationNumber:r.unref(zt),maxPaginationNumber:r.unref(Kt),nextPage:r.unref(Ee),prevPage:r.unref(He),updatePage:r.unref(G)},headers:r.unref(pe)})),void 0,!0)],2)):r.createCommentVNode("",!0)],8,RB),r.unref(g)?(r.openBlock(),r.createElementBlock("div",UB,[WB,r.createElementVNode("div",qB,[r.unref(H)?r.renderSlot(Pe.$slots,"loading",{key:0},void 0,!0):(r.openBlock(),r.createBlock(dB,{key:1}))])])):r.createCommentVNode("",!0),!r.unref(he).length&&!r.unref(g)?(r.openBlock(),r.createElementBlock("div",YB,[r.renderSlot(Pe.$slots,"empty-message",{},()=>[r.createTextVNode(r.toDisplayString(Pe.emptyMessage),1)],!0)])):r.createCommentVNode("",!0)],2),Pe.hideFooter?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",GB,[Pe.hideRowsPerPage?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",KB,[r.createTextVNode(r.toDisplayString(Pe.rowsPerPageMessage)+" ",1),r.createVNode(rB,{modelValue:r.unref(ye),"onUpdate:modelValue":rn[0]||(rn[0]=Me=>r.isRef(ye)?ye.value=Me:null),"rows-items":r.unref(re)},null,8,["modelValue","rows-items"])])),r.createElementVNode("div",XB,r.toDisplayString(`${r.unref(be)}–${r.unref(Re)}`)+" "+r.toDisplayString(r.unref(V))+" "+r.toDisplayString(r.unref(ut)),1),r.unref(Y)?r.renderSlot(Pe.$slots,"pagination",r.normalizeProps(r.mergeProps({key:1},{isFirstPage:r.unref(_e),isLastPage:r.unref(te),currentPaginationNumber:r.unref(zt),maxPaginationNumber:r.unref(Kt),nextPage:r.unref(Ee),prevPage:r.unref(He)})),void 0,!0):(r.openBlock(),r.createBlock(CB,{key:2,"is-first-page":r.unref(_e),"is-last-page":r.unref(te),onClickNextPage:r.unref(Ee),onClickPrevPage:r.unref(He)},r.createSlots({_:2},[Pe.buttonsPagination?{name:"buttonsPagination",fn:r.withCtx(()=>[r.createVNode(yB,{"current-pagination-number":r.unref(zt),"max-pagination-number":r.unref(Kt),onUpdatePage:r.unref(G)},null,8,["current-pagination-number","max-pagination-number","onUpdatePage"])]),key:"0"}:void 0]),1032,["is-first-page","is-last-page","onClickNextPage","onClickPrevPage"]))]))],2))}});var hb=Da(JB,[["__scopeId","data-v-32683533"]]);typeof window<"u"&&window.Vue&&window.Vue.createApp({}).component("Vue3EasyDataTable",hb);const QB={class:"relative z-50 w-full rounded-2xl bg-white px-4 py-3 shadow-2xs"},ZB={class:"my-[3px] flex w-full flex-col justify-between space-y-2 md:flex-row"},eL={class:"items-center sm:flex","data-test-results":""},tL={key:0,class:"flex w-full items-center md:mr-4 md:space-x-2"},nL={class:"hidden whitespace-nowrap md:flex","data-test-results-count":""},rL=r.defineComponent({__name:"AppDataTableFooter",props:{dataTable:{},currentPage:{}},emits:["nextPage","previousPage","updatePage"],setup(e,{emit:t}){const n=e,a=t,o=r.computed(()=>n.dataTable),i=r.computed(()=>o.value?.clientItemsLength??0),s=r.computed(()=>o.value?.maxPaginationNumber),l=r.computed(()=>n.currentPage??o.value?.currentPaginationNumber);function c(){a("nextPage")}function u(){a("previousPage")}function d(p){a("updatePage",p)}function f(){a("updatePage",1)}return(p,m)=>(r.openBlock(),r.createElementBlock("div",QB,[r.createElementVNode("div",ZB,[r.createElementVNode("div",eL,[o.value?(r.openBlock(),r.createElementBlock("div",tL,[m[1]||(m[1]=r.createElementVNode("div",{class:"hidden md:block"}," Tonen ",-1)),r.createVNode(r.unref(iu),{modelValue:o.value.rowsPerPageActiveOption,"onUpdate:modelValue":m[0]||(m[0]=v=>o.value.rowsPerPageActiveOption=v),"can-clear":!1,"can-deselect":!1,options:o.value.rowsPerPageOptions,"additional-classes":{singleLabel:"p-3!",caret:"mr-2!"},"open-direction":"up","wrapper-classes":"w-full",class:"h-10 w-full md:w-20",onChange:f},null,8,["modelValue","options"])])):r.createCommentVNode("",!0),r.createElementVNode("div",nL,[r.renderSlot(p.$slots,"results",{results:i.value},()=>[r.createTextVNode(r.toDisplayString(i.value)+" results ",1)])])]),i.value>0?(r.openBlock(),r.createBlock(r.unref(Ib),{key:0,"current-page":l.value,"last-page":s.value,onPaginate:d,onNextPage:c,onPreviousPage:u},null,8,["current-page","last-page"])):r.createCommentVNode("",!0)])]))}}),aL={key:0,class:"w-full -mt-24 -translate-y-0.5"},oL=r.defineComponent({inheritAttrs:!1,__name:"AppDataTable",props:r.mergeModels({headers:{},items:{},modelValue:{},currentPage:{},rowItems:{default:()=>[20,50,100,200,500]},rowsPerPage:{default:50},actionBarSelection:{type:Boolean,default:!0},actionBarSelectionKey:{default:"id"},hideFooter:{type:Boolean,default:!1}},{sort:{},sortModifiers:{}}),emits:r.mergeModels(["update:modelValue","updatePage","clickItem","contextMenuOpen","clickContextItem","sortClient"],["update:sort"]),setup(e,{expose:t,emit:n}){const a=e,o=n,i=r.useSlots(),s=Mi(),l=fu(),c=r.useModel(e,"sort"),u=Zt.useKeyModifier("Alt"),d=r.ref(),f=r.ref(a?.modelValue??void 0),p=r.computed(()=>d.value);r.watch(()=>f.value,g=>{f.value&&a.actionBarSelection!==!1&&o("update:modelValue",[...g.map(x=>x?.[a.actionBarSelectionKey])])}),r.onMounted(()=>{a?.modelValue&&r.watch(a.modelValue,g=>{f.value=g})});function m(g){if(f.value&&s.setTableSelection(f.value),!g&&a.actionBarSelection){s.setSelection(f.value.map(x=>x?.[a.actionBarSelectionKey]));return}g&&a.actionBarSelection&&s.setSelection(g.map(x=>x?.[a.actionBarSelectionKey])),a.actionBarSelection===!1&&o("update:modelValue",[...g.map(x=>x?.[a.actionBarSelectionKey])])}function v(g){p.value?.updatePage(g),o("updatePage",g)}function y(){p.value?.prevPage(),o("updatePage",(p.value?.currentPaginationNumber??2)-1)}function w(){p.value?.nextPage(),o("updatePage",(p.value?.currentPaginationNumber??0)+1)}function b(g){if(u.value&&f.value!==void 0){const x=f.value.findIndex(C=>C.id===g.id);if(x>-1){f.value.splice(x,1),m();return}f.value.push({...g,isSelected:void 0}),m();return}o("clickItem",g)}function E(g){if(g.sortBy){c.value=`${g.sortType==="desc"?"-":""}${g.sortBy}`;return}c.value=void 0}function _(g){o("sortClient",g)}return t({dataTableInstance:p}),s.onResetSelection.value=g=>{a?.modelValue!==void 0&&(f.value=g)},(g,x)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"app-table-without-selection":a?.modelValue===void 0},"app-data-table-wrapper"])},[r.createVNode(r.unref(hb),r.mergeProps({ref_key:"dataTable",ref:d},{...g.$props,...g.$attrs},{"items-selected":f.value,"onUpdate:itemsSelected":[x[0]||(x[0]=C=>f.value=C),m],"hide-footer":!0,class:{"app-hide-footer":g.hideFooter},headers:g.headers,"checkbox-column-width":30,"rows-items":g.rowItems,"rows-per-page":g.rowsPerPage,"body-row-class-name":"drop-shadow-xs rounded-xl",onClickRow:b,onContextmenuRow:r.unref(l).open,"onUpdate:serverOptions":E,onUpdateSort:_}),r.createSlots({loading:r.withCtx(()=>[r.createVNode(r.unref(Na),{size:"medium"})]),_:2},[r.renderList(Object.keys(r.unref(i)),(C,P)=>({name:C,fn:r.withCtx(O=>[r.renderSlot(g.$slots,C,r.normalizeProps(r.guardReactiveProps(O)))])}))]),1040,["items-selected","class","headers","rows-items","rows-per-page","onContextmenuRow"]),p.value&&!g.hideFooter?(r.openBlock(),r.createElementBlock("div",aL,[r.createVNode(rL,{"data-table":p.value,"current-page":g.currentPage,onNextPage:w,onPreviousPage:y,onUpdatePage:v},{results:r.withCtx(({results:C})=>[r.renderSlot(g.$slots,"footer-results",{results:C})]),_:3},8,["data-table","current-page"])])):r.createCommentVNode("",!0)],2))}}),iL=(e,t,n)=>{const a=e[t];return a?typeof a=="function"?a():Promise.resolve(a):new Promise((o,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},Sa=Math.min,Tn=Math.max,hc=Math.round,wl=Math.floor,Pr=e=>({x:e,y:e}),sL={left:"right",right:"left",bottom:"top",top:"bottom"},lL={start:"end",end:"start"};function Ef(e,t,n){return Tn(e,Sa(t,n))}function Ca(e,t){return typeof e=="function"?e(t):e}function Jr(e){return e.split("-")[0]}function Ii(e){return e.split("-")[1]}function im(e){return e==="x"?"y":"x"}function sm(e){return e==="y"?"height":"width"}const cL=new Set(["top","bottom"]);function Sr(e){return cL.has(Jr(e))?"y":"x"}function lm(e){return im(Sr(e))}function uL(e,t,n){n===void 0&&(n=!1);const a=Ii(e),o=lm(e),i=sm(o);let s=o==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=vc(s)),[s,vc(s)]}function dL(e){const t=vc(e);return[Tf(e),t,Tf(t)]}function Tf(e){return e.replace(/start|end/g,t=>lL[t])}const m0=["left","right"],h0=["right","left"],fL=["top","bottom"],pL=["bottom","top"];function mL(e,t,n){switch(e){case"top":case"bottom":return n?t?h0:m0:t?m0:h0;case"left":case"right":return t?fL:pL;default:return[]}}function hL(e,t,n,a){const o=Ii(e);let i=mL(Jr(e),n==="start",a);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Tf)))),i}function vc(e){return e.replace(/left|right|bottom|top/g,t=>sL[t])}function vL(e){return{top:0,right:0,bottom:0,left:0,...e}}function vb(e){return typeof e!="number"?vL(e):{top:e,right:e,bottom:e,left:e}}function gc(e){const{x:t,y:n,width:a,height:o}=e;return{width:a,height:o,top:n,left:t,right:t+a,bottom:n+o,x:t,y:n}}function v0(e,t,n){let{reference:a,floating:o}=e;const i=Sr(t),s=lm(t),l=sm(s),c=Jr(t),u=i==="y",d=a.x+a.width/2-o.width/2,f=a.y+a.height/2-o.height/2,p=a[l]/2-o[l]/2;let m;switch(c){case"top":m={x:d,y:a.y-o.height};break;case"bottom":m={x:d,y:a.y+a.height};break;case"right":m={x:a.x+a.width,y:f};break;case"left":m={x:a.x-o.width,y:f};break;default:m={x:a.x,y:a.y}}switch(Ii(t)){case"start":m[s]-=p*(n&&u?-1:1);break;case"end":m[s]+=p*(n&&u?-1:1);break}return m}const gL=async(e,t,n)=>{const{placement:a="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=v0(u,a,c),p=a,m={},v=0;for(let y=0;y<l.length;y++){const{name:w,fn:b}=l[y],{x:E,y:_,data:g,reset:x}=await b({x:d,y:f,initialPlacement:a,placement:p,strategy:o,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});d=E??d,f=_??f,m={...m,[w]:{...m[w],...g}},x&&v<=50&&(v++,typeof x=="object"&&(x.placement&&(p=x.placement),x.rects&&(u=x.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:d,y:f}=v0(u,p,c)),y=-1)}return{x:d,y:f,placement:p,strategy:o,middlewareData:m}};async function cm(e,t){var n;t===void 0&&(t={});const{x:a,y:o,platform:i,rects:s,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=Ca(t,e),v=vb(m),w=l[p?f==="floating"?"reference":"floating":f],b=gc(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),E=f==="floating"?{x:a,y:o,width:s.floating.width,height:s.floating.height}:s.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),g=await(i.isElement==null?void 0:i.isElement(_))?await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1}:{x:1,y:1},x=gc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:E,offsetParent:_,strategy:c}):E);return{top:(b.top-x.top+v.top)/g.y,bottom:(x.bottom-b.bottom+v.bottom)/g.y,left:(b.left-x.left+v.left)/g.x,right:(x.right-b.right+v.right)/g.x}}const yL=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:o,rects:i,platform:s,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=Ca(e,t)||{};if(u==null)return{};const f=vb(d),p={x:n,y:a},m=lm(o),v=sm(m),y=await s.getDimensions(u),w=m==="y",b=w?"top":"left",E=w?"bottom":"right",_=w?"clientHeight":"clientWidth",g=i.reference[v]+i.reference[m]-p[m]-i.floating[v],x=p[m]-i.reference[m],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let P=C?C[_]:0;(!P||!await(s.isElement==null?void 0:s.isElement(C)))&&(P=l.floating[_]||i.floating[v]);const O=g/2-x/2,A=P/2-y[v]/2-1,L=Sa(f[b],A),U=Sa(f[E],A),z=L,R=P-y[v]-U,I=P/2-y[v]/2+O,B=Ef(z,I,R),M=!c.arrow&&Ii(o)!=null&&I!==B&&i.reference[v]/2-(I<z?L:U)-y[v]/2<0,$=M?I<z?I-z:I-R:0;return{[m]:p[m]+$,data:{[m]:B,centerOffset:I-B-$,...M&&{alignmentOffset:$}},reset:M}}}),bL=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...w}=Ca(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=Jr(o),E=Sr(l),_=Jr(l)===l,g=await(c.isRTL==null?void 0:c.isRTL(u.floating)),x=p||(_||!y?[vc(l)]:dL(l)),C=v!=="none";!p&&C&&x.push(...hL(l,y,v,g));const P=[l,...x],O=await cm(t,w),A=[];let L=((a=i.flip)==null?void 0:a.overflows)||[];if(d&&A.push(O[b]),f){const I=uL(o,s,g);A.push(O[I[0]],O[I[1]])}if(L=[...L,{placement:o,overflows:A}],!A.every(I=>I<=0)){var U,z;const I=(((U=i.flip)==null?void 0:U.index)||0)+1,B=P[I];if(B&&(!(f==="alignment"?E!==Sr(B):!1)||L.every(K=>Sr(K.placement)===E?K.overflows[0]>0:!0)))return{data:{index:I,overflows:L},reset:{placement:B}};let M=(z=L.filter($=>$.overflows[0]<=0).sort(($,K)=>$.overflows[1]-K.overflows[1])[0])==null?void 0:z.placement;if(!M)switch(m){case"bestFit":{var R;const $=(R=L.filter(K=>{if(C){const V=Sr(K.placement);return V===E||V==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(V=>V>0).reduce((V,Z)=>V+Z,0)]).sort((K,V)=>K[1]-V[1])[0])==null?void 0:R[0];$&&(M=$);break}case"initialPlacement":M=l;break}if(o!==M)return{reset:{placement:M}}}return{}}}},gb=new Set(["left","top"]);async function wL(e,t){const{placement:n,platform:a,elements:o}=e,i=await(a.isRTL==null?void 0:a.isRTL(o.floating)),s=Jr(n),l=Ii(n),c=Sr(n)==="y",u=gb.has(s)?-1:1,d=i&&c?-1:1,f=Ca(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof v=="number"&&(m=l==="end"?v*-1:v),c?{x:m*d,y:p*u}:{x:p*u,y:m*d}}const kL=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:o,y:i,placement:s,middlewareData:l}=t,c=await wL(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(a=l.arrow)!=null&&a.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},_L=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:b,y:E}=w;return{x:b,y:E}}},...c}=Ca(e,t),u={x:n,y:a},d=await cm(t,c),f=Sr(Jr(o)),p=im(f);let m=u[p],v=u[f];if(i){const w=p==="y"?"top":"left",b=p==="y"?"bottom":"right",E=m+d[w],_=m-d[b];m=Ef(E,m,_)}if(s){const w=f==="y"?"top":"left",b=f==="y"?"bottom":"right",E=v+d[w],_=v-d[b];v=Ef(E,v,_)}const y=l.fn({...t,[p]:m,[f]:v});return{...y,data:{x:y.x-n,y:y.y-a,enabled:{[p]:i,[f]:s}}}}}},SL=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:a,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=Ca(e,t),d={x:n,y:a},f=Sr(o),p=im(f);let m=d[p],v=d[f];const y=Ca(l,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const _=p==="y"?"height":"width",g=i.reference[p]-i.floating[_]+w.mainAxis,x=i.reference[p]+i.reference[_]-w.mainAxis;m<g?m=g:m>x&&(m=x)}if(u){var b,E;const _=p==="y"?"width":"height",g=gb.has(Jr(o)),x=i.reference[f]-i.floating[_]+(g&&((b=s.offset)==null?void 0:b[f])||0)+(g?0:w.crossAxis),C=i.reference[f]+i.reference[_]+(g?0:((E=s.offset)==null?void 0:E[f])||0)-(g?w.crossAxis:0);v<x?v=x:v>C&&(v=C)}return{[p]:m,[f]:v}}}},CL=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,a;const{placement:o,rects:i,platform:s,elements:l}=t,{apply:c=()=>{},...u}=Ca(e,t),d=await cm(t,u),f=Jr(o),p=Ii(o),m=Sr(o)==="y",{width:v,height:y}=i.floating;let w,b;f==="top"||f==="bottom"?(w=f,b=p===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(b=f,w=p==="end"?"top":"bottom");const E=y-d.top-d.bottom,_=v-d.left-d.right,g=Sa(y-d[w],E),x=Sa(v-d[b],_),C=!t.middlewareData.shift;let P=g,O=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=_),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(P=E),C&&!p){const L=Tn(d.left,0),U=Tn(d.right,0),z=Tn(d.top,0),R=Tn(d.bottom,0);m?O=v-2*(L!==0||U!==0?L+U:Tn(d.left,d.right)):P=y-2*(z!==0||R!==0?z+R:Tn(d.top,d.bottom))}await c({...t,availableWidth:O,availableHeight:P});const A=await s.getDimensions(l.floating);return v!==A.width||y!==A.height?{reset:{rects:!0}}:{}}}};function cu(){return typeof window<"u"}function So(e){return um(e)?(e.nodeName||"").toLowerCase():"#document"}function Mn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Lr(e){var t;return(t=(um(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function um(e){return cu()?e instanceof Node||e instanceof Mn(e).Node:!1}function sr(e){return cu()?e instanceof Element||e instanceof Mn(e).Element:!1}function Or(e){return cu()?e instanceof HTMLElement||e instanceof Mn(e).HTMLElement:!1}function g0(e){return!cu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Mn(e).ShadowRoot}const xL=new Set(["inline","contents"]);function js(e){const{overflow:t,overflowX:n,overflowY:a,display:o}=lr(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&!xL.has(o)}const EL=new Set(["table","td","th"]);function TL(e){return EL.has(So(e))}const PL=[":popover-open",":modal"];function uu(e){return PL.some(t=>{try{return e.matches(t)}catch{return!1}})}const AL=["transform","translate","scale","rotate","perspective"],IL=["transform","translate","scale","rotate","perspective","filter"],ML=["paint","layout","strict","content"];function dm(e){const t=fm(),n=sr(e)?lr(e):e;return AL.some(a=>n[a]?n[a]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||IL.some(a=>(n.willChange||"").includes(a))||ML.some(a=>(n.contain||"").includes(a))}function NL(e){let t=xa(e);for(;Or(t)&&!yi(t);){if(dm(t))return t;if(uu(t))return null;t=xa(t)}return null}function fm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const OL=new Set(["html","body","#document"]);function yi(e){return OL.has(So(e))}function lr(e){return Mn(e).getComputedStyle(e)}function du(e){return sr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xa(e){if(So(e)==="html")return e;const t=e.assignedSlot||e.parentNode||g0(e)&&e.host||Lr(e);return g0(t)?t.host:t}function yb(e){const t=xa(e);return yi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Or(t)&&js(t)?t:yb(t)}function Ss(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=yb(e),i=o===((a=e.ownerDocument)==null?void 0:a.body),s=Mn(o);if(i){const l=Pf(s);return t.concat(s,s.visualViewport||[],js(o)?o:[],l&&n?Ss(l):[])}return t.concat(o,Ss(o,[],n))}function Pf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bb(e){const t=lr(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const o=Or(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:a,l=hc(n)!==i||hc(a)!==s;return l&&(n=i,a=s),{width:n,height:a,$:l}}function pm(e){return sr(e)?e:e.contextElement}function Zo(e){const t=pm(e);if(!Or(t))return Pr(1);const n=t.getBoundingClientRect(),{width:a,height:o,$:i}=bb(t);let s=(i?hc(n.width):n.width)/a,l=(i?hc(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const BL=Pr(0);function wb(e){const t=Mn(e);return!fm()||!t.visualViewport?BL:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function LL(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Mn(e)?!1:t}function vo(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=pm(e);let s=Pr(1);t&&(a?sr(a)&&(s=Zo(a)):s=Zo(e));const l=LL(i,n,a)?wb(i):Pr(0);let c=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i){const p=Mn(i),m=a&&sr(a)?Mn(a):a;let v=p,y=Pf(v);for(;y&&a&&m!==v;){const w=Zo(y),b=y.getBoundingClientRect(),E=lr(y),_=b.left+(y.clientLeft+parseFloat(E.paddingLeft))*w.x,g=b.top+(y.clientTop+parseFloat(E.paddingTop))*w.y;c*=w.x,u*=w.y,d*=w.x,f*=w.y,c+=_,u+=g,v=Mn(y),y=Pf(v)}}return gc({width:d,height:f,x:c,y:u})}function mm(e,t){const n=du(e).scrollLeft;return t?t.left+n:vo(Lr(e)).left+n}function kb(e,t,n){n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=a.left+t.scrollLeft-(n?0:mm(e,a)),i=a.top+t.scrollTop;return{x:o,y:i}}function DL(e){let{elements:t,rect:n,offsetParent:a,strategy:o}=e;const i=o==="fixed",s=Lr(a),l=t?uu(t.floating):!1;if(a===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},u=Pr(1);const d=Pr(0),f=Or(a);if((f||!f&&!i)&&((So(a)!=="body"||js(s))&&(c=du(a)),Or(a))){const m=vo(a);u=Zo(a),d.x=m.x+a.clientLeft,d.y=m.y+a.clientTop}const p=s&&!f&&!i?kb(s,c,!0):Pr(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-c.scrollTop*u.y+d.y+p.y}}function RL(e){return Array.from(e.getClientRects())}function $L(e){const t=Lr(e),n=du(e),a=e.ownerDocument.body,o=Tn(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),i=Tn(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let s=-n.scrollLeft+mm(e);const l=-n.scrollTop;return lr(a).direction==="rtl"&&(s+=Tn(t.clientWidth,a.clientWidth)-o),{width:o,height:i,x:s,y:l}}function zL(e,t){const n=Mn(e),a=Lr(e),o=n.visualViewport;let i=a.clientWidth,s=a.clientHeight,l=0,c=0;if(o){i=o.width,s=o.height;const u=fm();(!u||u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:l,y:c}}const VL=new Set(["absolute","fixed"]);function FL(e,t){const n=vo(e,!0,t==="fixed"),a=n.top+e.clientTop,o=n.left+e.clientLeft,i=Or(e)?Zo(e):Pr(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,c=o*i.x,u=a*i.y;return{width:s,height:l,x:c,y:u}}function y0(e,t,n){let a;if(t==="viewport")a=zL(e,n);else if(t==="document")a=$L(Lr(e));else if(sr(t))a=FL(t,n);else{const o=wb(e);a={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return gc(a)}function _b(e,t){const n=xa(e);return n===t||!sr(n)||yi(n)?!1:lr(n).position==="fixed"||_b(n,t)}function jL(e,t){const n=t.get(e);if(n)return n;let a=Ss(e,[],!1).filter(l=>sr(l)&&So(l)!=="body"),o=null;const i=lr(e).position==="fixed";let s=i?xa(e):e;for(;sr(s)&&!yi(s);){const l=lr(s),c=dm(s);!c&&l.position==="fixed"&&(o=null),(i?!c&&!o:!c&&l.position==="static"&&!!o&&VL.has(o.position)||js(s)&&!c&&_b(e,s))?a=a.filter(d=>d!==s):o=l,s=xa(s)}return t.set(e,a),a}function HL(e){let{element:t,boundary:n,rootBoundary:a,strategy:o}=e;const s=[...n==="clippingAncestors"?uu(t)?[]:jL(t,this._c):[].concat(n),a],l=s[0],c=s.reduce((u,d)=>{const f=y0(t,d,o);return u.top=Tn(f.top,u.top),u.right=Sa(f.right,u.right),u.bottom=Sa(f.bottom,u.bottom),u.left=Tn(f.left,u.left),u},y0(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function UL(e){const{width:t,height:n}=bb(e);return{width:t,height:n}}function WL(e,t,n){const a=Or(t),o=Lr(t),i=n==="fixed",s=vo(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=Pr(0);function u(){c.x=mm(o)}if(a||!a&&!i)if((So(t)!=="body"||js(o))&&(l=du(t)),a){const m=vo(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&u();i&&!a&&o&&u();const d=o&&!a&&!i?kb(o,l):Pr(0),f=s.left+l.scrollLeft-c.x-d.x,p=s.top+l.scrollTop-c.y-d.y;return{x:f,y:p,width:s.width,height:s.height}}function hd(e){return lr(e).position==="static"}function b0(e,t){if(!Or(e)||lr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Lr(e)===n&&(n=n.ownerDocument.body),n}function Sb(e,t){const n=Mn(e);if(uu(e))return n;if(!Or(e)){let o=xa(e);for(;o&&!yi(o);){if(sr(o)&&!hd(o))return o;o=xa(o)}return n}let a=b0(e,t);for(;a&&TL(a)&&hd(a);)a=b0(a,t);return a&&yi(a)&&hd(a)&&!dm(a)?n:a||NL(e)||n}const qL=async function(e){const t=this.getOffsetParent||Sb,n=this.getDimensions,a=await n(e.floating);return{reference:WL(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function YL(e){return lr(e).direction==="rtl"}const GL={convertOffsetParentRelativeRectToViewportRelativeRect:DL,getDocumentElement:Lr,getClippingRect:HL,getOffsetParent:Sb,getElementRects:qL,getClientRects:RL,getDimensions:UL,getScale:Zo,isElement:sr,isRTL:YL};function Cb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function KL(e,t){let n=null,a;const o=Lr(e);function i(){var l;clearTimeout(a),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=u;if(l||t(),!p||!m)return;const v=wl(f),y=wl(o.clientWidth-(d+p)),w=wl(o.clientHeight-(f+m)),b=wl(d),_={rootMargin:-v+"px "+-y+"px "+-w+"px "+-b+"px",threshold:Tn(0,Sa(1,c))||1};let g=!0;function x(C){const P=C[0].intersectionRatio;if(P!==c){if(!g)return s();P?s(!1,P):a=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!Cb(u,e.getBoundingClientRect())&&s(),g=!1}try{n=new IntersectionObserver(x,{..._,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,_)}n.observe(e)}return s(!0),i}function XL(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=a,u=pm(e),d=o||i?[...u?Ss(u):[],...Ss(t)]:[];d.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const f=u&&l?KL(u,n):null;let p=-1,m=null;s&&(m=new ResizeObserver(b=>{let[E]=b;E&&E.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var _;(_=m)==null||_.observe(t)})),n()}),u&&!c&&m.observe(u),m.observe(t));let v,y=c?vo(e):null;c&&w();function w(){const b=vo(e);y&&!Cb(y,b)&&n(),y=b,v=requestAnimationFrame(w)}return n(),()=>{var b;d.forEach(E=>{o&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),f?.(),(b=m)==null||b.disconnect(),m=null,c&&cancelAnimationFrame(v)}}const xb=kL,JL=_L,Eb=bL,QL=CL,ZL=yL,eD=SL,tD=(e,t,n)=>{const a=new Map,o={platform:GL,...n},i={...o.platform,_c:a};return gL(e,t,{...o,platform:i})};function nD(e){return e!=null&&typeof e=="object"&&"$el"in e}function rD(e){if(nD(e)){const t=e.$el;return um(t)&&So(t)==="#comment"?null:t}return e}function aD(e){return typeof e=="function"?e():r.unref(e)}function oD(e){return{name:"arrow",options:e,fn(t){const n=rD(aD(e.element));return n==null?{}:ZL({element:n,padding:e.padding}).fn(t)}}}const Tb=r.defineComponent({__name:"Loading",setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",null,[r.createVNode(r.unref(Na))]))}}),iD=Object.freeze(Object.defineProperty({__proto__:null,default:Tb},Symbol.toStringTag,{value:"Module"})),Pb=r.defineComponent({__name:"Error",setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(ey),{type:"error",title:"Onbekend type",description:"Type wordt niet ondersteund."}))}}),sD=Object.freeze(Object.defineProperty({__proto__:null,default:Pb},Symbol.toStringTag,{value:"Module"})),lD={default:["text-white"],danger:["text-red-500"]},cD={contextMenu:["focus:bg-zinc-600","px-2","py-1"],actionBar:["hover:bg-black-100/20"]},uD={actionBar:"before:-top-4 before:left-1/2 before:border-x-10 before:border-b-10 before:border-x-transparent before:border-b-secondary",contextMenu:""},dD=r.defineComponent({__name:"AppActionBarSubMenu",props:{action:{},context:{type:Boolean,default:!1},confirmed:{type:Boolean},item:{default:void 0}},emits:["close"],setup(e,{emit:t}){const n=e,a=t,o=Zt.useParentElement(),i=r.useTemplateRef("subMenu"),s=r.useTemplateRef("submenuArrow"),{position:l}=Hs(o,i,{placement:n.context?"right-start":"bottom",middleware:[xb({mainAxis:n.context?25:20,crossAxis:0}),JL({padding:n.context?25:20,limiter:eD()}),Eb({mainAxis:!0,crossAxis:!0}),oD({element:s})]}),c=r.defineAsyncComponent({loader:async()=>typeof n.action.component=="string"?iL(Object.assign({"./Components/Error.vue":()=>Promise.resolve().then(()=>sD),"./Components/Loading.vue":()=>Promise.resolve().then(()=>iD),"./Components/MultiSelect.vue":()=>Promise.resolve().then(()=>TJ)}),`./Components/${cg.pascal(n.action.component)}.vue`,3):n.action.component,errorComponent:Pb,loadingComponent:Tb}),u=r.computed(()=>`${l.value?.placement}`.startsWith("left")?"left":"right"),d=r.computed(()=>l.value?.middlewareData?.arrow?.x??null);return(f,p)=>(r.openBlock(),r.createElementBlock("div",{ref:"subMenu",class:r.normalizeClass([{"-top-full left-full":n.context},"absolute w-fit rounded-lg bg-secondary p-2"])},[r.createElementVNode("div",{ref:"submenuArrow",class:r.normalizeClass([{"-translate-x-6 -ml-px":u.value==="right","translate-x-4":u.value==="left",hidden:!n.context},"absolute text-secondary size-8"]),style:r.normalizeStyle({left:d.value!==null&&u.value==="right"?`${d.value}px`:"",right:u.value==="left"?`${d.value??0}px`:"",top:r.unref(l)?.middlewareData?.arrow?.y!==null?`${r.unref(l)?.middlewareData?.arrow?.y}px`:""})},[r.createVNode(r.unref(yn),{icon:r.unref(bn).fas["caret-left"],class:r.normalizeClass([{"rotate-180":u.value==="left"},"size-full!"])},null,8,["icon","class"])],6),r.createElementVNode("div",{class:r.normalizeClass([r.unref(uD)[n.context?"contextMenu":"actionBar"],"relative w-fit before:absolute before:-translate-x-3"])},[r.createVNode(r.unref(c),r.mergeProps({...n,...f.action.componentProperties},{"data-test-action-menu":"",onClose:p[0]||(p[0]=()=>a("close"))}),null,16)],2)],2))}}),Ab=r.defineComponent({__name:"AppActionBarItem",props:{action:{},context:{type:Boolean,default:!1},confirmed:{type:Boolean,default:!1},item:{default:void 0}},emits:["close","confirm","confirmed"],setup(e,{emit:t}){const n=e,a=t,o=Mi(),i=fu(),s=r.useTemplateRef("submenuElement"),{activate:l,deactivate:c,onEscape:u,onBack:d}=bm(s),f=r.ref(!1),p=r.ref(!1),m=r.ref([]),v=r.computed(()=>p.value?Na:f.value&&n.action.confirm?Ap:n.action.icon),y=r.computed(()=>n.action.type??"default"),w=r.computed(()=>typeof n.action.hidden=="function"?n.context&&i.item?n.action.hidden([r.toValue(i.item)],!0):n.action.hidden(o.tableSelection.value,!1):n.action.hidden);r.onMounted(()=>{n.confirmed&&(f.value=!0)});async function b(){if((n.action.confirm||n.action.component)&&!f.value){f.value=!0,n.action.component&&(await r.nextTick(),a("confirm"),await r.nextTick(),n.action.focusTrap!==!1&&setTimeout(l,300));return}p.value=!0,f.value=!1;const g=await n.action.onClick?.(n.item??o.tableSelection.value);p.value=!1,(n.action?.resetSelection??!0)&&o.resetSelection(),g&&a("close")}function E(){c(),f.value=!1,a("confirmed")}function _(){E(),a("close")}return u(_),d(E),(g,x)=>{const C=r.resolveDirective("tippy");return w.value!==!0?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass([[...r.unref(lD)[y.value],...r.unref(cD)[n.context?"contextMenu":"actionBar"],n.action.component?"has-submenu":""],"relative cursor-pointer rounded-md transition-colors duration-200"])},[r.withDirectives((r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"px-2.5 py-4":!g.context},"app-action-bar-item flex size-full items-center space-x-2 whitespace-nowrap"]),"data-test-action-bar-icon":"",onClick:b},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(v.value),{class:r.normalizeClass({"text-yellow-600":f.value&&g.action.confirm,"size-4":g.context,"size-5":!g.context,"size-5!":p.value})},null,8,["class"])),r.renderSlot(g.$slots,"default"),g.action.suffixIcon&&g.context?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(g.action.suffixIcon),{key:0,class:"size-5 ml-auto"})):r.createCommentVNode("",!0)],2)),[[C,g.context?void 0:g.action.name]]),n.action.component&&f.value?(r.openBlock(),r.createBlock(dD,r.mergeProps({key:0,ref_key:"submenuElement",ref:s,modelValue:m.value,"onUpdate:modelValue":x[0]||(x[0]=P=>m.value=P)},n,{onClose:E}),null,16,["modelValue"])):r.createCommentVNode("",!0)],2)):r.createCommentVNode("",!0)}}}),fD={class:"flex py-4.5"},pD={class:"w-28 whitespace-nowrap pl-2","data-test-selection-text":""},mD={class:"flex"},hm=r.defineComponent({__name:"AppActionBar",setup(e){const t=r.useTemplateRef("actionBar"),{selection:n,actions:a,isOpen:o,close:i,resetSelection:s,selectionText:l}=Mi(),{setComputedPosition:c}=Hs(()=>document.getElementById("sidebar-left-wrapper"),t,{active:!0,placement:"left-start",mainAxis:0,sizeElement:"#sidebar-wrapper"}),u=r.ref([1]),d=r.computed(()=>l.value.replace(":selection",String(n.value.length)));r.watch(o,()=>c()),r.watch(n,()=>{n.value.length===0&&i()});function f(){u.value=[1],s()}function p(){s(),i()}return Zt.onKeyStroke(["Escape"],m=>{m.preventDefault(),p()}),(m,v)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createElementVNode("div",{ref_key:"actionBar",ref:t,class:r.normalizeClass([{"translate-y-0! max-md:mt-0!":r.unref(n).length>0&&r.unref(o)},"fixed inset-x-0 top-0 z-100 flex h-14 md:-mt-1 -translate-y-24 items-center justify-between bg-secondary px-4 text-white transition-[translate] ease-in-out max-md:transform-none! max-md:translate-none! max-md:-mt-10"]),"data-test-action-bar-wrapper":""},[r.createElementVNode("div",fD,[r.createVNode(nb,{modelValue:u.value,"onUpdate:modelValue":v[0]||(v[0]=y=>u.value=y),value:1,type:"checkbox",onChange:f},null,8,["modelValue"]),r.createElementVNode("div",pD,r.toDisplayString(d.value),1)]),r.createElementVNode("div",mD,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(a),(y,w)=>(r.openBlock(),r.createBlock(Ab,{key:`action-item-${w}`,action:y,onClose:p},null,8,["action"]))),128))]),r.createElementVNode("div",null,[r.createVNode(r.unref(km),{class:"size-5 cursor-pointer",onClick:p})])],2)]))}}),vd=r.defineComponent({__name:"AppPaginationItem",props:{as:{default:"a"},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.as),{class:r.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:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},8,["class"]))}}),hD={class:"my-0! flex items-center justify-between border-zinc-200 sm:px-6"},Ib=r.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,a=t,o=r.ref(2),i=r.computed(()=>n.meta?.meta?.currentPage??n.currentPage??1),s=r.computed(()=>n.meta?.meta?.lastPage??n.lastPage??1),l=r.computed(()=>{const m=i.value-o.value;return m>0?m:1}),c=r.computed(()=>{const m=i.value+o.value;return m<s.value?m:s.value}),u=r.computed(()=>{const m=i.value-1;return m>0?m:null}),d=r.computed(()=>{const m=i.value+1;return m<=s.value?m:null}),f=r.computed(()=>{const m=[];l.value>1&&(m.push(1),l.value>2&&m.push(0));for(let v=l.value;v<=c.value;v+=1)m.push(v);return c.value<s.value&&(c.value+1!==s.value&&m.push(0),m.push(s.value)),m});function p(m){m&&a("paginate",m)}return(m,v)=>(r.openBlock(),r.createElementBlock("div",hD,[r.createElementVNode("div",null,[r.createElementVNode("nav",{class:r.normalizeClass([{"pointer-events-none opacity-50":!m.loaded},"flex rounded-lg border border-zinc-300"]),"aria-label":"Pagination"},[r.createVNode(vd,{disabled:u.value===null,href:"#",class:"rounded-l-lg",onClick:v[0]||(v[0]=r.withModifiers(()=>a("previousPage"),["prevent"]))},{default:r.withCtx(()=>[v[2]||(v[2]=r.createElementVNode("span",{class:"sr-only"},"previous",-1)),r.createVNode(r.unref(wm),{class:"-mx-1.5 size-5 stroke-2","aria-hidden":"true"})]),_:1,__:[2]},8,["disabled"]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(f.value,y=>(r.openBlock(),r.createBlock(vd,{key:`pagination-${y}`,as:y?"a":"span",active:y===i.value,href:"#",onClick:r.withModifiers(()=>p(y),["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(y||"..."),1)]),_:2},1032,["as","active","onClick"]))),128)),r.createVNode(vd,{class:r.normalizeClass([{"cursor-not-allowed":d.value===null},"rounded-r-lg"]),disabled:d.value===null,href:"#",onClick:v[1]||(v[1]=r.withModifiers(()=>a("nextPage"),["prevent"]))},{default:r.withCtx(()=>[v[3]||(v[3]=r.createElementVNode("span",{class:"sr-only"},"next",-1)),r.createVNode(r.unref(Jb),{class:"-mx-1.5 size-5 stroke-2","aria-hidden":"true"})]),_:1,__:[3]},8,["class","disabled"])],2)])]))}}),vD=["aria-checked","disabled"],Mb=r.defineComponent({__name:"AppToggle",props:r.mergeModels({disabled:{type:Boolean,default:!1}},{modelValue:{type:Boolean,required:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=r.useModel(e,"modelValue");function a(){t.disabled||(n.value=!n.value)}return(o,i)=>(r.openBlock(),r.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:a},i[0]||(i[0]=[r.createElementVNode("span",{"aria-hidden":"true",class:"pointer-events-none inline-block size-5 translate-x-0 rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out group-aria-checked:!translate-x-6","data-test-handle":""},null,-1)]),8,vD))}}),gD={class:"flex justify-between"},yD={"data-test-title":""},bD={key:0,"data-test-default-slot":""},wD=r.defineComponent({__name:"AppToggleCard",props:r.mergeModels({title:{},disabled:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=r.useModel(e,"modelValue"),n=r.useSlots();return(a,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([a.disabled?"bg-zinc-50":"bg-white","rounded-xl p-4 shadow-[0px_2px_4px_0px_rgba(32,32,32,0.08)]"])},[r.createElementVNode("div",gD,[r.createElementVNode("span",yD,[r.renderSlot(a.$slots,"title",{},()=>[r.createTextVNode(r.toDisplayString(a.title),1)])]),r.createVNode(r.unref(Mb),{ref:a.title,modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=i=>t.value=i),disabled:a.disabled,"data-test-toggle":""},null,8,["modelValue","disabled"])]),r.unref(n).default?r.withDirectives((r.openBlock(),r.createElementBlock("div",bD,[r.renderSlot(a.$slots,"default")],512)),[[r.vShow,t.value]]):r.createCommentVNode("",!0)],2))}}),kD=["href","onClick"],_D={class:"text-base font-bold","data-test-text":""},SD=r.defineComponent({__name:"AppMenuItem",props:{name:{},icon:{},to:{},visible:{type:Boolean,default:!0},replace:{type:Boolean,default:!1}},setup(e){return(t,n)=>{const a=r.resolveComponent("RouterLink");return t.visible?(r.openBlock(),r.createBlock(a,{key:0,to:t.to,replace:t.replace,custom:""},{default:r.withCtx(({href:o,isActive:i,navigate:s})=>[r.renderSlot(t.$slots,"default",{},()=>[r.createElementVNode("a",{href:o,class:r.normalizeClass([{"bg-zinc-100 hover:bg-zinc-100!":i},"flex cursor-pointer items-center space-x-2 rounded-lg px-4 py-3 hover:bg-zinc-100"]),onClick:s},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.icon),{class:"size-4 stroke-2","data-test-icon":""})),r.createElementVNode("span",_D,r.toDisplayString(t.name),1)],10,kD)])]),_:3},8,["to","replace"])):r.createCommentVNode("",!0)}}}),CD={class:"space-y-4"},xD={class:"flex w-full px-2"},ED={class:"text-base"},TD={class:"text-base"},PD=r.defineComponent({__name:"AppMenu",props:{responsive:{type:Boolean,default:!0},items:{}},setup(e){const t=ei.useRoute(),n=r.ref(t),a=ei.useRouter();async function o(i){await a.push(i)}return(i,s)=>(r.openBlock(),r.createElementBlock("div",CD,[i.responsive?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass([{"md:hidden":i.responsive},"block"])},[r.createVNode(r.unref(iu),{modelValue:n.value,"onUpdate:modelValue":s[0]||(s[0]=l=>n.value=l),options:i.items,"can-clear":!1,"append-to-body":!0,"open-direction":"down","dropdown-classes":"max-h-48!","wrapper-classes":"w-full","value-prop":"to",onSelect:o},{singlelabel:r.withCtx(l=>[r.createElementVNode("div",xD,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l.value.icon),{class:"mr-2 size-6","data-test-icon":""})),r.createElementVNode("span",ED,r.toDisplayString(l.value.name),1)])]),option:r.withCtx(l=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l.option.icon),{class:"mr-2 size-5","data-test-icon":""})),r.createElementVNode("span",TD,r.toDisplayString(l.option.name),1)]),_:1},8,["modelValue","options"])],2)):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass([{hidden:i.responsive},"mt-0! md:block md:space-y-2"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.items,l=>(r.openBlock(),r.createBlock(SD,r.mergeProps({ref_for:!0},l,{key:l.name}),null,16))),128))],2)]))}}),AD={class:"flex flex-col space-y-4 border-b border-zinc-200 py-8 lg:flex-row lg:space-x-10 lg:space-y-0"},ID={class:"flex shrink-0 flex-col lg:w-80 lg:space-y-1"},MD={key:0,class:"text-xl font-bold text-zinc-900","data-test-title":""},ND={key:0,class:"text-zinc-700","data-test-description":""},OD={class:"w-full min-w-0"},BD=r.defineComponent({__name:"AppSection",props:{title:{},description:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("section",AD,[r.createElementVNode("div",ID,[r.renderSlot(t.$slots,"titleDescription",{},()=>[r.renderSlot(t.$slots,"title",{},()=>[t.title?(r.openBlock(),r.createElementBlock("h3",MD,r.toDisplayString(t.title),1)):r.createCommentVNode("",!0)]),r.renderSlot(t.$slots,"description",{},()=>[t.description?(r.openBlock(),r.createElementBlock("p",ND,r.toDisplayString(t.description),1)):r.createCommentVNode("",!0)])])]),r.createElementVNode("div",OD,[r.renderSlot(t.$slots,"default")])]))}}),LD=r.defineComponent({__name:"ShortcutItem",props:{shortcut:{},item:{}},emits:["close"],setup(e,{emit:t}){const n=e,a=t,o=r.ref(n.shortcut.name);async function i(s){const l=await n.shortcut.click(n.shortcut,n.item,s);n.shortcut.copied&&(o.value="Gekopieërd",setTimeout(()=>{o.value=n.shortcut.name},1500)),l===!0&&a("close")}return(s,l)=>(r.openBlock(),r.createElementBlock("button",{type:"button",tabindex:"-1",class:"w-full p-1.5 text-xxs text-white cursor-pointer hover:bg-zinc-600 focus:outline-0",onClick:i},r.toDisplayString(s.shortcut.copied?o.value:s.shortcut.name),1))}}),DD={class:"text-base"},Nb=r.defineComponent({__name:"AppContextMenu",props:{item:{},event:{},actions:{},confirmed:{}},emits:["actionClicked","close","open","cancel"],setup(e,{expose:t,emit:n}){const a=e,o=n,i=r.ref(!0),s=r.ref(!1),l=Mi(),c=fu(),u=r.ref(),d=Hb(u),{activate:f,deactivate:p,onEscape:m}=bm(u),v=r.computed(()=>a.actions??l.actions.value);r.onUnmounted(p);async function y(){i.value=!0,o("open"),document.querySelector("#app")?.classList.add("context-menu-open"),d.setPosition(a.event.x,a.event.y),await r.nextTick(),f()}async function w(){i.value=!1,p(),o("close"),document.querySelector("#app")?.classList.remove("context-menu-open")}async function b(E){o("actionClicked",E),i.value=!1,setTimeout(()=>{s.value=!1},300)}return t({isOpen:i,open:y,close:w,submit:b}),Zt.onClickOutside(u,w),m(w),(E,_)=>i.value&&(v.value.length>0||r.unref(c).shortcuts.value.length>0)?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"contextMenuElement",ref:u,style:r.normalizeStyle(`left: ${E.event.x}px; top: ${E.event.y}px;`),class:"app-context-menu fixed z-50 flex w-64 flex-col rounded-lg bg-secondary p-2 drop-shadow-card empty:hidden","data-test-context-menu":""},[r.unref(c).shortcuts.value.length>0?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass([{"mb-2":v.value.length>0},"flex justify-between divide-x divide-zinc-600 rounded-md border border-zinc-600"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(c).shortcuts.value,g=>(r.openBlock(),r.createBlock(LD,{key:g.name,shortcut:g,item:E.item,onClose:w},null,8,["shortcut","item"]))),128))],2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(v.value,(g,x)=>(r.openBlock(),r.createBlock(Ab,{key:`action-item-${x}`,action:g,context:!0,item:E.item,confirmed:E.confirmed&&E.confirmed===g.key,tabindex:`100${x}`,class:"flex h-10 items-center space-x-2 first:rounded-t-lg last:rounded-b-lg focus:outline-none",onConfirm:r.unref(p),onConfirmed:r.unref(f),onClose:w,onMouseover:_[0]||(_[0]=C=>C.target?.focus())},{default:r.withCtx(()=>[r.createElementVNode("span",DD,r.toDisplayString(g.name),1)]),_:2},1032,["action","item","confirmed","tabindex","onConfirm","onConfirmed"]))),128))],4)):r.createCommentVNode("",!0)}}),RD={class:"mt-6"},$D={class:"overflow-hidden rounded-full bg-zinc-200"},zD=r.defineComponent({__name:"AppProgressBar",props:{steps:{},percentage:{},activeIndex:{},unmount:{type:Boolean,default:!0}},setup(e){const t=e,n=r.useSlots(),a=["grid-cols-1","grid-cols-2","grid-cols-3","grid-cols-4","grid-cols-5","grid-cols-6","grid-cols-7","grid-cols-8"],o=r.computed(()=>n.default!==void 0),i=r.computed(()=>t.steps?t.steps:n.default?.().map((c,u)=>({name:c?.props?.name??c?.type?.props?.name,completed:s.value>=u,active:s.value===u,component:c}))??[]),s=r.computed(()=>t.activeIndex!==void 0&&t.activeIndex>-1?t.activeIndex:i.value?.findIndex(c=>c.active)),l=r.computed(()=>t.percentage?t.percentage:i.value?i.value.filter(u=>u.completed).length/i.value.length*100:0);return(c,u)=>(r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("div",RD,[r.createElementVNode("div",$D,[r.createElementVNode("div",{style:r.normalizeStyle(`width: ${l.value}%`),class:"h-2.5 rounded-full bg-primary transition-all","data-test-progress-bar":""},null,4)]),r.createElementVNode("div",{class:r.normalizeClass([a[i.value.length-1],"mt-3 hidden w-full text-sm font-medium text-zinc-600 sm:grid"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,(d,f)=>(r.openBlock(),r.createElementBlock("div",{key:`step-${f}`,class:r.normalizeClass([{"font-bold":d.completed},"text-base text-zinc-900"]),"data-test-step-title":""},[r.renderSlot(c.$slots,`step-${f+1}`,{step:d},()=>[r.createTextVNode(r.toDisplayString(d.name),1)])],2))),128))],2),o.value?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(i.value,(d,f)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[c.unmount&&(d?.active??!0)||!c.unmount?r.withDirectives((r.openBlock(),r.createBlock(r.resolveDynamicComponent(d.component),{key:f})),[[r.vShow,!c.unmount&&(d?.active??!0)||c.unmount]]):r.createCommentVNode("",!0)],64))),256)):r.createCommentVNode("",!0)])]))}}),VD={},FD={class:"mt-8"};function jD(e,t){return r.openBlock(),r.createElementBlock("div",FD,[r.renderSlot(e.$slots,"default")])}const HD=Dn(VD,[["render",jD]]);class w0{color="";constructor(t){this.color=t}parseAlphaColor(){return/^rgba\((\d{1,3}%?\s*,\s*){3}(\d*(?:\.\d+)?)\)$/.test(this.color)?this.parseRgba():/^hsla\(\d+\s*,\s*([\d.]+%\s*,\s*){2}(\d*(?:\.\d+)?)\)$/.test(this.color)?this.parseHsla():/^#([\dA-Fa-f]{4}|[\dA-Fa-f]{8})$/.test(this.color)?this.parseAlphaHex():/^transparent$/.test(this.color)?this.parseTransparent():{color:this.color,opacity:"1"}}parseRgba(){return{color:this.color.replace(/,(?!.*,).*(?=\))|a/g,""),opacity:this.color.match(/\.\d+|[01](?=\))/)?.[0]}}parseHsla(){return{color:this.color.replace(/,(?!.*,).*(?=\))|a/g,""),opacity:this.color.match(/\.\d+|[01](?=\))/)?.[0]}}parseAlphaHex(){return{color:this.color.length===5?this.color.slice(0,4):this.color.slice(0,7),opacity:this.color.length===5?(parseInt(this.color.slice(4,5)+this.color.slice(4,5),16)/255).toFixed(2):(parseInt(this.color.slice(7,9),16)/255).toFixed(2)}}parseTransparent(){return{color:"#fff",opacity:0}}}const UD=["height","width","viewBox"],WD=["id"],qD=["offset","stop-color","stop-opacity"],YD=["offset","stop-color","stop-opacity"],GD=["id"],KD=["stdDeviation"],XD=["points","fill","stroke","filter","stroke-width"],JD=["points","fill","stroke","stroke-width","stroke-linejoin"],QD=["points","fill"],ZD=r.defineComponent({__name:"Star",props:{fill:{default:0},points:{default:()=>[]},size:{default:50},starId:{},activeColor:{},inactiveColor:{},borderColor:{default:"#000"},activeBorderColor:{default:"#000"},borderWidth:{default:0},roundedCorners:{type:Boolean,default:!1},glow:{default:0},glowColor:{default:void 0},animate:{type:Boolean,default:!1}},emits:["starMouseMove","starSelected"],setup(e,{emit:t}){const n=e,a=t,o=r.ref([19.8,2.2,6.6,43.56,39.6,17.16,0,17.16,33,43.56]),i=r.ref(""),s=r.ref(""),l=r.ref(!0),c=r.computed(()=>o.value.join(",")),u=r.computed(()=>`url(#${i.value})`),d=r.computed(()=>n.roundedCorners&&n.borderWidth<=0?6:n.borderWidth),f=r.computed(()=>{const U=n.roundedCorners&&n.borderWidth<=0?parseInt(`${n.size}`,10)-parseInt(`${d.value}`,10):n.size;return parseInt(`${U}`,10)+parseInt(`${d.value}`,10)}),p=r.computed(()=>`${n.fill}%`),m=r.computed(()=>n.roundedCorners&&n.borderWidth<=0?n.fill<=0?n.inactiveColor:n.activeColor:n.fill<=0?n.borderColor:n.activeBorderColor),v=r.computed(()=>[...o.value].reduce((U,z)=>Math.max(U,z))),y=r.computed(()=>`0 0 ${v.value} ${v.value}`),w=r.computed(()=>n.animate&&l.value),b=r.computed(()=>n.roundedCorners?"round":"miter");r.onBeforeMount(()=>{o.value=n.points.length>0?n.points:o.value,O(),i.value=P(),s.value=P()});function E(U){U.touchAction!=="undefined"&&a("starMouseMove",{position:x(U),id:n.starId})}function _(){r.nextTick(()=>{l.value=!0})}function g(){r.nextTick(()=>{l.value=!1})}function x(U){const z=.92*n.size,R=Math.max(U.offsetX,1),I=Math.round(100/z*R);return Math.min(I,100)}function C(U){a("starSelected",{id:n.starId,position:x(U)})}function P(){return Math.random().toString(36).slice(7)}function O(){o.value=o.value.map((U,z)=>{const R=z%2===0?d.value*1.5:0;return n.size/v.value*U+R})}function A(U){return new w0(U).parseAlphaColor().color}function L(U){return new w0(U).parseAlphaColor().opacity}return(U,z)=>(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass([{"transition-all hover:rotate-12":w.value},"overflow-visible"]),height:f.value,width:f.value,viewBox:y.value,onMousemove:E,onClick:C,onTouchstart:_,onTouchend:g},[r.createElementVNode("linearGradient",{id:i.value,x1:"0",x2:"100%",y1:"0",y2:"0"},[r.createElementVNode("stop",{offset:p.value,"stop-color":A(U.activeColor),"stop-opacity":L(U.activeColor)},null,8,qD),r.createElementVNode("stop",{offset:p.value,"stop-color":A(U.inactiveColor),"stop-opacity":L(U.inactiveColor)},null,8,YD)],8,WD),r.createElementVNode("filter",{id:s.value,height:"130%",width:"130%",filterUnits:"userSpaceOnUse"},[r.createElementVNode("feGaussianBlur",{stdDeviation:U.glow,result:"coloredBlur"},null,8,KD),z[0]||(z[0]=r.createElementVNode("feMerge",null,[r.createElementVNode("feMergeNode",{in:"coloredBlur"}),r.createElementVNode("feMergeNode",{in:"SourceGraphic"})],-1))],8,GD),r.withDirectives(r.createElementVNode("polygon",{points:c.value,fill:u.value,stroke:U.glowColor,filter:`url(#${s.value})`,"stroke-width":d.value},null,8,XD),[[r.vShow,U.glowColor&&U.glow>0&&U.fill>0]]),r.createElementVNode("polygon",{points:c.value,fill:u.value,stroke:m.value,"stroke-width":d.value,"stroke-linejoin":b.value},null,8,JD),r.createElementVNode("polygon",{points:c.value,fill:u.value},null,8,QD)],42,UD))}}),eR={class:"sr-only"},tR=r.defineComponent({__name:"StarRating",props:{rating:{default:0},increment:{default:1},roundStartRating:{type:Boolean,default:!0},activeColor:{default:"#ffd055"},inactiveColor:{default:"#d8d8d8"},maxRating:{default:5},starPoints:{default:()=>[]},starSize:{default:50},showRating:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},textClass:{default:""},inline:{type:Boolean,default:!1},borderColor:{default:"#999"},activeBorderColor:{default:null},borderWidth:{default:0},roundedCorners:{type:Boolean,default:!1},padding:{default:0},rtl:{type:Boolean,default:!1},fixedPoints:{default:null},glow:{default:0},glowColor:{default:"#fff"},clearable:{type:Boolean,default:!1},activeOnClick:{type:Boolean,default:!1},animate:{type:Boolean,default:!1}},emits:["update:rating","hover:rating"],setup(e,{emit:t}){const n=e,a=t,o=r.ref(0),i=r.ref([]),s=r.ref(0),l=r.ref(0),c=r.ref(!1),u=r.computed(()=>n.fixedPoints===null?s.value:s.value.toFixed(n.fixedPoints)),d=r.computed(()=>c.value||n.roundStartRating),f=r.computed(()=>n.padding+n.borderWidth),p=r.computed(()=>Array.isArray(n.activeColor)?g(n.activeColor,n.maxRating,n.activeColor.slice(-1)[0]):Array.from({length:n.maxRating}).fill(n.activeColor)),m=r.computed(()=>n.activeOnClick?`${l.value>0?p.value[Math.ceil(l.value)-1]:n.inactiveColor}`:`${s.value>0?p.value[Math.ceil(s.value)-1]:n.inactiveColor}`),v=r.computed(()=>{if(Array.isArray(n.activeBorderColor))return g(n.activeBorderColor,n.maxRating,n.activeBorderColor.slice(-1)[0]);const x=n.activeBorderColor?n.activeBorderColor:n.borderColor;return Array.from({length:n.maxRating}).fill(x)}),y=r.computed(()=>n.activeOnClick?`${l.value>0?v.value[Math.ceil(l.value)-1]:n.borderColor}`:`${s.value>0?v.value[Math.ceil(s.value)-1]:n.borderColor}`),w=r.computed(()=>{const x=1/n.increment;return Math.min(n.maxRating,Math.ceil(s.value*x)/x)});r.watch(()=>n.rating,x=>{s.value=x,l.value=x,_(d.value)}),r.onBeforeMount(()=>{o.value=n.increment*100,s.value=n.rating,l.value=s.value,_(n.roundStartRating)});function b(x,C=!1){if(n.readOnly)return;const P=n.rtl?(100-x.position)/100:x.position/100;if(s.value=(x.id+P-1).toFixed(2),s.value=s.value>n.maxRating?n.maxRating:s.value,C){_(!0,!0),l.value=n.clearable&&s.value===l.value?0:s.value,a("update:rating",l.value),c.value=!0;return}_(!0,!n.activeOnClick),a("hover:rating",s.value)}function E(){n.readOnly||(s.value=l.value,_(d.value))}function _(x=!0,C=!0){s.value=x?w.value:s.value;for(let P=0;P<n.maxRating;P++){let O=0;P<s.value&&(O=s.value-P>1?100:(s.value-P)*100),C&&(i.value[P]=Math.round(O))}}function g(x,C,P){return Object.assign([C].fill(P),x)}return(x,C)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"inline-flex":x.inline},"flex items-center"])},[r.createElementVNode("div",eR,[r.renderSlot(x.$slots,"screen-reader",{rating:l.value,stars:x.maxRating},()=>[r.createElementVNode("span",null,"Rated "+r.toDisplayString(l.value)+" stars out of "+r.toDisplayString(x.maxRating),1)])]),r.createElementVNode("div",{class:"flex items-center",onMouseleave:E},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(x.maxRating,P=>(r.openBlock(),r.createElementBlock("span",{key:P,class:r.normalizeClass([{"cursor-pointer":!x.readOnly},"inline-block"]),style:r.normalizeStyle(`margin-right: ${f.value}px`)},[r.createVNode(ZD,{fill:i.value[P-1],size:x.starSize,points:x.starPoints,"star-id":P,step:o.value,"active-color":m.value,"inactive-color":x.inactiveColor,"border-color":x.borderColor,"active-border-color":y.value,"border-width":x.borderWidth,"rounded-corners":x.roundedCorners,rtl:x.rtl,glow:x.glow,"glow-color":x.glowColor,animate:x.animate,onStarSelected:C[0]||(C[0]=O=>b(O,!0)),onStarMouseMove:b},null,8,["fill","size","points","star-id","step","active-color","inactive-color","border-color","active-border-color","border-width","rounded-corners","rtl","glow","glow-color","animate"])],6))),128)),x.showRating?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass([x.textClass,"ml-2"])},r.toDisplayString(u.value),3)):r.createCommentVNode("",!0)],32)],2))}}),nR=r.defineComponent({__name:"AppRating",props:r.mergeModels({title:{default:""},stars:{default:5},showRating:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=r.useModel(e,"modelValue");return(n,a)=>(r.openBlock(),r.createBlock(r.unref(Mp),{"content-classes":"flex items-center gap-8 select-none",class:"p-4!"},{default:r.withCtx(()=>[r.createElementVNode("div",null,[r.renderSlot(n.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(n.title),1)])]),r.createVNode(tR,{rating:t.value,"onUpdate:rating":a[0]||(a[0]=o=>t.value=o),"rounded-corners":!1,"max-rating":n.stars,"show-rating":n.showRating,increment:.5,padding:.5,"star-size":25,"border-width":0,inline:!0,"read-only":n.readonly,"active-color":"#FACC15","inactive-color":"#D4D4D8",class:"-mt-1 ml-auto"},null,8,["rating","max-rating","show-rating","read-only"])]),_:3}))}});var rR=function(){function e(t){var n=t.rootElement,a=t.durationSlide,o=a===void 0?1e3:a,i=t.durationFade,s=i===void 0?200:i,l=t.initialNumber,c=t.animateInitialNumber,u=c===void 0?!0:c,d=t.numberFormatter,f=d===void 0?function(g){return g.toString()}:d,p=t.decimalSeparator,m=p===void 0?".":p,v=t.thousandSeparator,y=v===void 0?",":v,w=t.wrapperClassname,b=w===void 0?"numberflip-digit-container":w,E=t.digitClassname,_=E===void 0?"numberflip-digit-container-value":E;this.rootElement=n,this.durationSlide=o,this.durationFade=s,this.numberFormatter=f,this.decimalSeparator=m,this.thousandSeparator=y,this.wrapperClassname=b,this.digitClassname=_,this.rootElement.style.display="flex",l!==void 0&&this.setNumber(l,u)}return e.prototype.setNumber=function(t,n){n===void 0&&(n=!0),this.adjustAmountOfDigitContainers(t),this.setDigitInContainers(t,n)},e.prototype.adjustAmountOfDigitContainers=function(t){for(var n=this.getDigitsOfNumber(t).length,a=this.rootElement.getElementsByClassName(this.wrapperClassname).length;a<n;)this.rootElement.insertAdjacentHTML("beforeend",'<div class="'.concat(this.wrapperClassname,'">')+`<span style="visibility: hidden;">0</span>
611
+ disabled:cursor-not-allowed disabled:border-zinc-100 disabled:!bg-zinc-50`;function oM(e,t,n,a,o,i,s,l,c){if(Qc(e))return rT(e,o);const u=(c?.class??"").includes("text-center"),d=pc("leading",e,a,s,t,n,l),f=pc("trailing",e,a,s,t,n,l);return{"border-zinc-300":!o,"border-zinc-100! bg-zinc-50!":t,"px-10":u&&(d||f),"pl-10 pr-5 group-aria-expanded:pl-7":d&&!u,"pr-10 pl-3":f&&!u,"px-3":!d&&!f,"pr-0!":Qa(e),"pl-0!":!d&&Qa(e),[aM]:!s,"block w-full appearance-none bg-transparent focus:outline-hidden focus-visible:outline-hidden":s,"py-3":!Qa(e),"h-[42px]":e!=="textarea","h-24":e==="textarea","border-error text-error placeholder-error focus:ring-error focus:border-error":o,"text-center bg-transparent text-lg uppercase":wf(e),"border bg-white focus:ring-1 focus:ring-zinc-300 hover:bg-zinc-100!":!wf(e)&&!s,"border ring-1 ring-zinc-300":i&&!s,"read-only:cursor-default read-only:border-zinc-300 read-only:bg-zinc-50":!Qa(e)}}const iM=["type","tabindex"],sM=["value","tabindex"],lM=r.defineComponent({__name:"Input",props:{modelValue:{},tabindex:{},type:{},custom:{type:Boolean},native:{type:Boolean}},emits:["update:modelValue","open"],setup(e,{emit:t}){const n=e,a=t,o=r.computed({get:()=>n.modelValue,set:l=>a("update:modelValue",l)}),i=r.computed(()=>nM(n.type,n.native));function s(l){o.value=l.target.value}return(l,c)=>i.value==="input"?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:0,"onUpdate:modelValue":c[0]||(c[0]=u=>o.value=u),type:l.type,tabindex:l.tabindex,"data-test-input":""},null,8,iM)),[[r.vShow,!l.custom],[r.vModelDynamic,o.value]]):i.value==="textarea"?(r.openBlock(),r.createElementBlock("textarea",{key:1,value:l.modelValue,tabindex:l.tabindex,"data-test-textarea":"",onInput:s},null,40,sM)):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.value),{key:2,modelValue:o.value,"onUpdate:modelValue":c[1]||(c[1]=u=>o.value=u),tabindex:l.tabindex,onOpen:c[2]||(c[2]=()=>a("open"))},{default:r.withCtx(()=>[r.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3},40,["modelValue","tabindex"]))}}),cM=Dn(lM,[["__scopeId","data-v-ed50e679"]]),uM=["aria-expanded"],dM=["data-error"],fM=["data-error"],nb=r.defineComponent({inheritAttrs:!1,__name:"AppInput",props:r.mergeDefaults({type:{},modelValue:{},modelModifiers:{},readonly:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean},custom:{type:Boolean},required:{type:Boolean},hasError:{type:Boolean},native:{type:Boolean},plain:{type:Boolean},errorMessage:{},label:{},tabindex:{},wrapperClasses:{},errorWrapperClasses:{},inputWrapperClasses:{},iconClasses:{},labelClasses:{},init:{}},tM),emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,i=`input-${B7()}`,s=r.ref(!1),l=r.ref(!1),c=r.useAttrs(),u=r.computed({get:()=>{if(n.modelModifiers.dotToComma){const A=String(n.modelValue).replace(/,/g,".");return!l.value&&parseFloat(A)?String(parseFloat(A).toFixed(2)).replace(/\./g,","):String(n.modelValue).replace(/\./g,",")}return n.modelValue},set:A=>{n.modelModifiers.dotToComma?a("update:modelValue",String(A).replace(/,/g,".")):a("update:modelValue",A)}}),d=r.computed(()=>Qa(n.type)),f=r.computed(()=>fy(n.type)),p=r.computed(()=>Qc(n.type)),m=r.computed(()=>cc(n.type)),g=r.computed(()=>{if(d.value){const A=n.type;return r.h(yn,{icon:bn.far?.[G9[A]],size:"xs",class:"size-4"})}if(m.value)return r.h(yn,{icon:bn.far?.["location-dot"],size:"xs"});if(n.type==="search")return r.h(yn,{icon:bn.far?.["magnifying-glass"],size:"xs",class:"size-4"})}),y=r.computed(()=>{const A=n.type;return d.value?X9(A,i):void 0}),w=r.computed(()=>{const A=n.type,L=Q9(A);return f.value?{...L,init:{...L.init,...n.init}}:void 0}),b=r.computed(()=>n.type==="license"?"text":n.type),E=r.computed(()=>({id:i,type:b.value,required:n.required,multiple:n.multiple,disabled:n.disabled,readonly:n.readonly})),_=r.computed(()=>n.type==="license"?r.h(db,{licensePlateClasses:"p-0!"}):r.h("div")),v=r.computed(()=>{const A=n.inputWrapperClasses,L=n.type==="license"?"items-stretch":"relative w-full items-center justify-center";return`${A} ${L}`});function x(){u.value=c.value}function C(A){if(n.modelModifiers.dotToComma){const L=A.key;/[\d,.]/.test(L)||A.preventDefault()}}function P(){l.value=!1,n.modelModifiers.dotToComma&&parseFloat(String(u.value))&&(u.value=String(parseFloat(String(u.value).replace(/,/g,".")).toFixed(2)).replace(/\./g,","))}function O(){l.value=!0}return(A,L)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([A.wrapperClasses,"group"]),"aria-expanded":A.plain},[(A.label||A.$slots.label)&&!p.value?(r.openBlock(),r.createBlock(r.unref(om),{key:0,type:A.type,"has-error":A.hasError,disabled:A.disabled,for:d.value?`dp-input-${i}`:i,class:r.normalizeClass(A.labelClasses)},{default:r.withCtx(()=>[r.renderSlot(A.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(A.label),1)])]),_:3},8,["type","has-error","disabled","for","class"])):r.createCommentVNode("",!0),(r.openBlock(),r.createBlock(r.resolveDynamicComponent(_.value),{class:r.normalizeClass([v.value,"flex"])},{default:r.withCtx(()=>[r.unref(pc)("leading",A.type,A.loading,A.plain,A.disabled,A.readonly,A.$slots)?(r.openBlock(),r.createBlock(Bv,{key:0,loading:A.loading,class:r.normalizeClass([A.iconClasses,"left-3.5 top-2.5"]),"data-test-leading-icon":""},{default:r.withCtx(()=>[r.renderSlot(A.$slots,"leadingIcon")]),_:3},8,["loading","class"])):r.createCommentVNode("",!0),r.createVNode(cM,r.mergeProps({modelValue:u.value,"onUpdate:modelValue":L[0]||(L[0]=U=>u.value=U)},{...E.value,...y.value,...w.value,...A.$attrs},{custom:n.custom,tabindex:n.tabindex,class:r.unref(oM)(A.type,A.disabled,A.readonly,A.loading,A.hasError,s.value,A.plain,A.$slots,A.$attrs),"data-error":A.hasError?"input":void 0,native:A.native,onOpen:L[1]||(L[1]=()=>s.value=!0),onBlur:P,onFocus:O,onClosed:L[2]||(L[2]=()=>s.value=!1),onKeypress:C}),{default:r.withCtx(()=>[r.renderSlot(A.$slots,"default")]),_:3},16,["modelValue","custom","tabindex","class","data-error","native"]),A.custom?r.renderSlot(A.$slots,"input",r.normalizeProps(r.mergeProps({key:1},{check:x,checked:r.unref(c).value===u.value}))):r.createCommentVNode("",!0),!A.custom&&A.type==="checkbox"?(r.openBlock(),r.createBlock(r.unref(yn),{key:2,icon:r.unref(bn).far?.check,class:"pointer-events-none -ml-4 size-4 -translate-x-0.5 text-white"},null,8,["icon"])):r.createCommentVNode("",!0),r.unref(rM)(A.type,A.$slots,A.label)?(r.openBlock(),r.createElementBlock("label",{key:3,for:i,class:r.normalizeClass([`{ 'text-error!': hasError, ${A.labelClasses}}`,"cursor-pointer select-none pl-2 text-base peer-disabled:cursor-not-allowed peer-disabled:text-zinc-300"]),"data-error":A.hasError?A.type:void 0,"data-test-choice-label":""},[r.renderSlot(A.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(A.label),1)])],10,dM)):r.createCommentVNode("",!0),r.unref(pc)("trailing",A.type,A.loading,A.plain,A.disabled,A.readonly,A.$slots)?(r.openBlock(),r.createBlock(Bv,{key:4,loading:A.loading,class:r.normalizeClass([A.iconClasses,"right-3.5 top-2.5"]),"data-test-trailing-icon":""},{default:r.withCtx(()=>[r.renderSlot(A.$slots,"trailingIcon",{},()=>[g.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(g.value),{key:0})):r.createCommentVNode("",!0)])]),_:3},8,["loading","class"])):r.createCommentVNode("",!0)]),_:3},8,["class"])),A.hasError&&A.errorMessage?(r.openBlock(),r.createElementBlock("p",{key:1,class:r.normalizeClass([A.errorWrapperClasses,"order-2 mt-1.5 flex items-center gap-x-1 text-xs italic text-error"]),"data-error":A.hasError?"message":void 0,"data-test-error-message":""},r.toDisplayString(A.errorMessage),11,fM)):r.createCommentVNode("",!0)],10,uM))}});function mr(e){return e==null}function pM(e,t,n){const{object:a,valueProp:o,mode:i}=r.toRefs(e),s=r.getCurrentInstance().proxy,l=n.iv,c=(f,p=!0)=>{l.value=d(f);const m=u(f);t.emit("change",m,s),p&&(t.emit("input",m),t.emit("update:modelValue",m))},u=f=>a.value||mr(f)?f:Array.isArray(f)?f.map(p=>p[o.value]):f[o.value],d=f=>mr(f)?i.value==="single"?{}:[]:f;return{update:c}}function Pt(e){return r.customRef(()=>({get:e,set:()=>{}}))}function mM(e,t){const{value:n,modelValue:a,mode:o,valueProp:i}=r.toRefs(e),s=r.ref(o.value!=="single"?[]:{}),l=Pt(()=>a.value!==void 0?a.value:n.value),c=r.computed(()=>o.value==="single"?s.value[i.value]:s.value.map(d=>d[i.value])),u=Pt(()=>o.value!=="single"?s.value.map(d=>d[i.value]).join(","):s.value[i.value]);return{iv:s,internalValue:s,ev:l,externalValue:l,textValue:u,plainValue:c}}function hM(e,t,n){const{regex:a}=r.toRefs(e),o=r.getCurrentInstance().proxy,i=n.isOpen,s=n.open,l=r.ref(null),c=()=>{l.value=""},u=p=>{l.value=p.target.value},d=p=>{if(a.value){let m=a.value;typeof m=="string"&&(m=new RegExp(m)),p.key.match(m)||p.preventDefault()}},f=p=>{if(a.value){let g=(p.clipboardData||window.clipboardData).getData("Text"),y=a.value;typeof y=="string"&&(y=new RegExp(y)),g.split("").every(w=>!!w.match(y))||p.preventDefault()}t.emit("paste",p,o)};return r.watch(l,p=>{!i.value&&p&&s(),t.emit("search-change",p,o)}),{search:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:f}}function vM(e,t,n){const{groupSelect:a,mode:o,groups:i,disabledProp:s}=r.toRefs(e),l=r.ref(null),c=d=>{d===void 0||d!==null&&d[s.value]||i.value&&d&&d.group&&(o.value==="single"||!a.value)||(l.value=d)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function md(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(/æ/g,"ae").replace(/œ/g,"oe").replace(/ø/g,"o").replace(new RegExp("\\p{Diacritic}","gu"),"")}function gM(e){return Object.prototype.toString.call(e)==="[object Object]"}function yM(e,t){if(e.length!==t.length)return!1;const n=t.slice().sort();return e.slice().sort().every(function(a,o){return a===n[o]})}const rb=(e,t)=>{if(e===t)return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(let o of n)if(!a.includes(o)||!rb(e[o],t[o]))return!1;return!0};function bM(e,t,n){const{options:a,mode:o,trackBy:i,limit:s,hideSelected:l,createTag:c,createOption:u,label:d,appendNewTag:f,appendNewOption:p,multipleLabel:m,object:g,loading:y,delay:w,resolveOnLoad:b,minChars:E,filterResults:_,clearOnSearch:v,clearOnSelect:x,valueProp:C,allowAbsent:P,groupLabel:O,canDeselect:A,max:L,strict:U,closeOnSelect:z,closeOnDeselect:R,groups:I,reverse:B,infinite:M,groupOptions:$,groupHideEmpty:K,groupSelect:V,onCreate:Z,disabledProp:q,searchStart:oe,searchFilter:j}=r.toRefs(e),W=r.getCurrentInstance().proxy,Y=n.iv,H=n.ev,T=n.search,J=n.clearSearch,le=n.update,Oe=n.pointer,ee=n.setPointer,Te=n.clearPointer,ae=n.focus,ue=n.deactivate,D=n.close,de=n.localize,fe=r.ref([]),ce=r.ref([]),Ae=r.ref(!1),pe=r.ref(null),Ie=r.ref(M.value&&s.value===-1?10:s.value),xe=r.computed({get:()=>ce.value,set:Q=>ce.value=Q}),X=Pt(()=>c.value||u.value||!1),re=Pt(()=>f.value!==void 0?f.value:p.value!==void 0?p.value:!0),ye=r.computed(()=>{if(I.value){let Q=Se.value||[],ve=[];return Q.forEach(Ge=>{vn(Ge[$.value]).forEach(wt=>{ve.push(Object.assign({},wt,Ge[q.value]?{[q.value]:!0}:{}))})}),ve}else{let Q=vn(ce.value||[]);return fe.value.length&&(Q=Q.concat(fe.value)),Q}}),Ze=r.computed(()=>{let Q=ye.value;return B.value&&(Q=Q.reverse()),_e.value.length&&(Q=_e.value.concat(Q)),sa(Q)}),ct=r.computed(()=>{let Q=Ze.value;return Ie.value>0&&(Q=Q.slice(0,Ie.value)),Q}),Se=r.computed(()=>{if(!I.value)return[];let Q=[],ve=ce.value||[];return fe.value.length&&Q.push({[O.value]:" ",[$.value]:[...fe.value],__CREATE__:!0}),Q.concat(ve)}),ut=r.computed(()=>{let Q=[...Se.value].map(ve=>({...ve}));return _e.value.length&&(Q[0]&&Q[0].__CREATE__?Q[0][$.value]=[..._e.value,...Q[0][$.value]]:Q=[{[O.value]:" ",[$.value]:[..._e.value],__CREATE__:!0}].concat(Q)),Q}),$t=r.computed(()=>{if(!I.value)return[];let Q=ut.value;return gt((Q||[]).map((ve,Ge)=>{const wt=vn(ve[$.value]);return{...ve,index:Ge,group:!0,[$.value]:sa(wt,!1).map(Rr=>Object.assign({},Rr,ve[q.value]?{[q.value]:!0}:{})),__VISIBLE__:sa(wt).map(Rr=>Object.assign({},Rr,ve[q.value]?{[q.value]:!0}:{}))}}))}),xn=r.computed(()=>{switch(o.value){case"single":return!mr(Y.value[C.value]);case"multiple":case"tags":return!mr(Y.value)&&Y.value.length>0}}),zt=r.computed(()=>m.value!==void 0?m.value(Y.value,W):Y.value&&Y.value.length>1?`${Y.value.length} options selected`:"1 option selected"),Kt=Pt(()=>!ye.value.length&&!Ae.value&&!_e.value.length),te=Pt(()=>ye.value.length>0&&ct.value.length==0&&(T.value&&I.value||!I.value)),_e=r.computed(()=>X.value===!1||!T.value?[]:rn(T.value)!==-1?[]:[{[C.value]:T.value,[Ee.value[0]]:T.value,[d.value]:T.value,__CREATE__:!0}]),Ee=r.computed(()=>i.value?Array.isArray(i.value)?i.value:[i.value]:[d.value]),He=Pt(()=>{switch(o.value){case"single":return null;case"multiple":case"tags":return[]}}),G=Pt(()=>y.value||Ae.value),se=Q=>{switch(typeof Q!="object"&&(Q=Pe(Q)),o.value){case"single":le(Q);break;case"multiple":case"tags":le(Y.value.concat(Q));break}t.emit("select",Re(Q),Q,W)},be=Q=>{switch(typeof Q!="object"&&(Q=Pe(Q)),o.value){case"single":Ce();break;case"tags":case"multiple":le(Array.isArray(Q)?Y.value.filter(ve=>Q.map(Ge=>Ge[C.value]).indexOf(ve[C.value])===-1):Y.value.filter(ve=>ve[C.value]!=Q[C.value]));break}t.emit("deselect",Re(Q),Q,W)},Re=Q=>g.value?Q:Q[C.value],ne=Q=>{be(Q)},he=(Q,ve)=>{if(ve.button!==0){ve.preventDefault();return}ne(Q)},Ce=()=>{le(He.value),t.emit("clear",W)},st=Q=>{if(Q.group!==void 0)return o.value==="single"?!1:Io(Q[$.value])&&Q[$.value].length;switch(o.value){case"single":return!mr(Y.value)&&(Y.value[C.value]==Q[C.value]||typeof Y.value[C.value]=="object"&&typeof Q[C.value]=="object"&&rb(Y.value[C.value],Q[C.value]));case"tags":case"multiple":return!mr(Y.value)&&Y.value.map(ve=>ve[C.value]).indexOf(Q[C.value])!==-1}},vt=Q=>Q[q.value]===!0,Ut=()=>L===void 0||L.value===-1||!xn.value&&L.value>0?!1:Y.value.length>=L.value,Vt=Q=>{if(!vt(Q)){if(Z.value&&!st(Q)&&Q.__CREATE__&&(Q={...Q},delete Q.__CREATE__,Q=Z.value(Q,W),Q instanceof Promise)){Ae.value=!0,Q.then(ve=>{Ae.value=!1,nn(ve)});return}nn(Q)}},nn=Q=>{switch(Q.__CREATE__&&(Q={...Q},delete Q.__CREATE__),o.value){case"single":if(Q&&st(Q)){A.value&&be(Q),R.value&&(Te(),D());return}Q&&Wn(Q),x.value&&J(),z.value&&(Te(),D()),Q&&se(Q);break;case"multiple":if(Q&&st(Q)){be(Q),R.value&&(Te(),D());return}if(Ut()){t.emit("max",W);return}Q&&(Wn(Q),se(Q)),x.value&&J(),l.value&&Te(),z.value&&D();break;case"tags":if(Q&&st(Q)){be(Q),R.value&&(Te(),D());return}if(Ut()){t.emit("max",W);return}Q&&Wn(Q),x.value&&J(),Q&&se(Q),l.value&&Te(),z.value&&D();break}z.value||ae()},za=Q=>{if(!(vt(Q)||o.value==="single"||!V.value)){switch(o.value){case"multiple":case"tags":Ao(Q[$.value])?be(Q[$.value]):se(Q[$.value].filter(ve=>Y.value.map(Ge=>Ge[C.value]).indexOf(ve[C.value])===-1).filter(ve=>!ve[q.value]).filter((ve,Ge)=>Y.value.length+1+Ge<=L.value||L.value===-1)),l.value&&Oe.value&&ee($t.value.filter(ve=>!ve[q.value])[Oe.value.index]);break}z.value&&ue()}},Wn=Q=>{Pe(Q[C.value])===void 0&&X.value&&(t.emit("tag",Q[C.value],W),t.emit("option",Q[C.value],W),t.emit("create",Q[C.value],W),re.value&&Ot(Q),J())},Vi=()=>{o.value!=="single"&&se(ct.value.filter(Q=>!Q.disabled&&!st(Q)))},Ao=Q=>Q.find(ve=>!st(ve)&&!ve[q.value])===void 0,Io=Q=>Q.find(ve=>!st(ve))===void 0,Pe=Q=>ye.value[ye.value.map(ve=>String(ve[C.value])).indexOf(String(Q))],rn=Q=>ye.value.findIndex(ve=>Ee.value.some(Ge=>(parseInt(ve[Ge])==ve[Ge]?parseInt(ve[Ge]):ve[Ge])===(parseInt(Q)==Q?parseInt(Q):Q))),Me=Q=>["tags","multiple"].indexOf(o.value)!==-1&&l.value&&st(Q),Ot=Q=>{fe.value.push(Q)},gt=Q=>K.value?Q.filter(ve=>T.value?ve.__VISIBLE__.length:ve[$.value].length):Q.filter(ve=>T.value?ve.__VISIBLE__.length:!0),sa=(Q,ve=!0)=>{let Ge=Q;if(T.value&&_.value){let wt=j.value;wt||(wt=(Rr,il,fh)=>Ee.value.some(Mu=>{let sl=md(de(Rr[Mu]),U.value);return oe.value?sl.startsWith(md(il,U.value)):sl.indexOf(md(il,U.value))!==-1})),Ge=Ge.filter(Rr=>wt(Rr,T.value,W))}return l.value&&ve&&(Ge=Ge.filter(wt=>!Me(wt))),Ge},vn=Q=>{let ve=Q;return gM(ve)&&(ve=Object.keys(ve).map(Ge=>{let wt=ve[Ge];return{[C.value]:Ge,[Ee.value[0]]:wt,[d.value]:wt}})),ve&&Array.isArray(ve)?ve=ve.map(Ge=>typeof Ge=="object"?Ge:{[C.value]:Ge,[Ee.value[0]]:Ge,[d.value]:Ge}):ve=[],ve},Mo=()=>{mr(H.value)||(Y.value=la(H.value))},No=Q=>(Ae.value=!0,new Promise((ve,Ge)=>{a.value(T.value,W).then(wt=>{ce.value=wt||[],typeof Q=="function"&&Q(wt),Ae.value=!1}).catch(wt=>{console.error(wt),ce.value=[],Ae.value=!1}).finally(()=>{ve()})})),Fi=()=>{if(xn.value)if(o.value==="single"){let Q=Pe(Y.value[C.value]);if(Q!==void 0){let ve=Q[d.value];Y.value[d.value]=ve,g.value&&(H.value[d.value]=ve)}}else Y.value.forEach((Q,ve)=>{let Ge=Pe(Y.value[ve][C.value]);if(Ge!==void 0){let wt=Ge[d.value];Y.value[ve][d.value]=wt,g.value&&(H.value[ve][d.value]=wt)}})},ji=Q=>{No(Q)},la=Q=>mr(Q)?o.value==="single"?{}:[]:g.value?Q:o.value==="single"?Pe(Q)||(P.value?{[d.value]:Q,[C.value]:Q,[Ee.value[0]]:Q}:{}):Q.filter(ve=>!!Pe(ve)||P.value).map(ve=>Pe(ve)||{[d.value]:ve,[C.value]:ve,[Ee.value[0]]:ve}),ol=()=>{pe.value=r.watch(T,Q=>{Q.length<E.value||!Q&&E.value!==0||(Ae.value=!0,v.value&&(ce.value=[]),setTimeout(()=>{Q==T.value&&a.value(T.value,W).then(ve=>{(Q==T.value||!T.value)&&(ce.value=ve,Oe.value=ct.value.filter(Ge=>Ge[q.value]!==!0)[0]||null,Ae.value=!1)}).catch(ve=>{console.error(ve)})},w.value))},{flush:"sync"})};if(o.value!=="single"&&!mr(H.value)&&!Array.isArray(H.value))throw new Error(`v-model must be an array when using "${o.value}" mode`);return a&&typeof a.value=="function"?b.value?No(Mo):g.value==!0&&Mo():(ce.value=a.value,Mo()),w.value>-1&&ol(),r.watch(w,(Q,ve)=>{pe.value&&pe.value(),Q>=0&&ol()}),r.watch(H,Q=>{if(mr(Q)){le(la(Q),!1);return}switch(o.value){case"single":(g.value?Q[C.value]!=Y.value[C.value]:Q!=Y.value[C.value])&&le(la(Q),!1);break;case"multiple":case"tags":yM(g.value?Q.map(ve=>ve[C.value]):Q,Y.value.map(ve=>ve[C.value]))||le(la(Q),!1);break}},{deep:!0}),r.watch(a,(Q,ve)=>{typeof e.options=="function"?b.value&&(!ve||Q&&Q.toString()!==ve.toString())&&No():(ce.value=e.options,Object.keys(Y.value).length||Mo(),Fi())}),r.watch(d,Fi),r.watch(s,(Q,ve)=>{Ie.value=M.value&&Q===-1?10:Q}),{resolvedOptions:xe,pfo:Ze,fo:ct,filteredOptions:ct,hasSelected:xn,multipleLabelText:zt,eo:ye,extendedOptions:ye,eg:Se,extendedGroups:Se,fg:$t,filteredGroups:$t,noOptions:Kt,noResults:te,resolving:Ae,busy:G,offset:Ie,select:se,deselect:be,remove:ne,selectAll:Vi,clear:Ce,isSelected:st,isDisabled:vt,isMax:Ut,getOption:Pe,handleOptionClick:Vt,handleGroupClick:za,handleTagRemove:he,refreshOptions:ji,resolveOptions:No,refreshLabels:Fi}}function wM(e,t,n){const{valueProp:a,showOptions:o,searchable:i,groupLabel:s,groups:l,mode:c,groupSelect:u,disabledProp:d,groupOptions:f}=r.toRefs(e),p=n.fo,m=n.fg,g=n.handleOptionClick,y=n.handleGroupClick,w=n.search,b=n.pointer,E=n.setPointer,_=n.clearPointer,v=n.multiselect,x=n.isOpen,C=r.computed(()=>p.value.filter(H=>!H[d.value])),P=r.computed(()=>m.value.filter(H=>!H[d.value])),O=Pt(()=>c.value!=="single"&&u.value),A=Pt(()=>b.value&&b.value.group),L=r.computed(()=>W(b.value)),U=r.computed(()=>{const H=A.value?b.value:W(b.value),T=P.value.map(le=>le[s.value]).indexOf(H[s.value]);let J=P.value[T-1];return J===void 0&&(J=R.value),J}),z=r.computed(()=>{let H=P.value.map(T=>T.label).indexOf(A.value?b.value[s.value]:W(b.value)[s.value])+1;return P.value.length<=H&&(H=0),P.value[H]}),R=r.computed(()=>[...P.value].slice(-1)[0]),I=r.computed(()=>b.value.__VISIBLE__.filter(H=>!H[d.value])[0]),B=r.computed(()=>{const H=L.value.__VISIBLE__.filter(T=>!T[d.value]);return H[H.map(T=>T[a.value]).indexOf(b.value[a.value])-1]}),M=r.computed(()=>{const H=W(b.value).__VISIBLE__.filter(T=>!T[d.value]);return H[H.map(T=>T[a.value]).indexOf(b.value[a.value])+1]}),$=r.computed(()=>[...U.value.__VISIBLE__.filter(H=>!H[d.value])].slice(-1)[0]),K=r.computed(()=>[...R.value.__VISIBLE__.filter(H=>!H[d.value])].slice(-1)[0]),V=H=>b.value&&(!H.group&&b.value[a.value]===H[a.value]||H.group!==void 0&&b.value[s.value]===H[s.value])?!0:void 0,Z=()=>{E(C.value[0]||null)},q=()=>{!b.value||b.value[d.value]===!0||(A.value?y(b.value):g(b.value))},oe=()=>{if(b.value===null)E((l.value&&O.value?P.value[0].__CREATE__?C.value[0]:P.value[0]:C.value[0])||null);else if(l.value&&O.value){let H=A.value?I.value:M.value;H===void 0&&(H=z.value,H.__CREATE__&&(H=H[f.value][0])),E(H||null)}else{let H=C.value.map(T=>T[a.value]).indexOf(b.value[a.value])+1;C.value.length<=H&&(H=0),E(C.value[H]||null)}r.nextTick(()=>{Y()})},j=()=>{if(b.value===null){let H=C.value[C.value.length-1];l.value&&O.value&&(H=K.value,H===void 0&&(H=R.value)),E(H||null)}else if(l.value&&O.value){let H=A.value?$.value:B.value;H===void 0&&(H=A.value?U.value:L.value,H.__CREATE__&&(H=$.value,H===void 0&&(H=U.value))),E(H||null)}else{let H=C.value.map(T=>T[a.value]).indexOf(b.value[a.value])-1;H<0&&(H=C.value.length-1),E(C.value[H]||null)}r.nextTick(()=>{Y()})},W=H=>P.value.find(T=>T.__VISIBLE__.map(J=>J[a.value]).indexOf(H[a.value])!==-1),Y=()=>{let H=v.value.querySelector("[data-pointed]");if(!H)return;let T=H.parentElement.parentElement;l.value&&(T=A.value?H.parentElement.parentElement.parentElement:H.parentElement.parentElement.parentElement.parentElement),H.offsetTop+H.offsetHeight>T.clientHeight+T.scrollTop&&(T.scrollTop=H.offsetTop+H.offsetHeight-T.clientHeight),H.offsetTop<T.scrollTop&&(T.scrollTop=H.offsetTop)};return r.watch(w,H=>{i.value&&(H.length&&o.value?Z():_())}),r.watch(x,H=>{if(H&&v&&v.value){let T=v.value.querySelectorAll("[data-selected]")[0];if(!T)return;let J=T.parentElement.parentElement;r.nextTick(()=>{J.scrollTop=T.offsetTop})}}),{pointer:b,canPointGroups:O,isPointed:V,setPointerFirst:Z,selectPointer:q,forwardPointer:oe,backwardPointer:j}}function On(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ho(e){var t=On(e).Element;return e instanceof t||e instanceof Element}function zn(e){var t=On(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Qp(e){if(typeof ShadowRoot>"u")return!1;var t=On(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var io=Math.max,mc=Math.min,mi=Math.round;function kf(){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 ab(){return!/^((?!chrome|android).)*safari/i.test(kf())}function hi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),o=1,i=1;t&&zn(e)&&(o=e.offsetWidth>0&&mi(a.width)/e.offsetWidth||1,i=e.offsetHeight>0&&mi(a.height)/e.offsetHeight||1);var s=ho(e)?On(e):window,l=s.visualViewport,c=!ab()&&n,u=(a.left+(c&&l?l.offsetLeft:0))/o,d=(a.top+(c&&l?l.offsetTop:0))/i,f=a.width/o,p=a.height/i;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function Zp(e){var t=On(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function kM(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function _M(e){return e===On(e)||!zn(e)?Zp(e):kM(e)}function Mr(e){return e?(e.nodeName||"").toLowerCase():null}function La(e){return((ho(e)?e.ownerDocument:e.document)||window.document).documentElement}function em(e){return hi(La(e)).left+Zp(e).scrollLeft}function Xr(e){return On(e).getComputedStyle(e)}function tm(e){var t=Xr(e),n=t.overflow,a=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+a)}function SM(e){var t=e.getBoundingClientRect(),n=mi(t.width)/e.offsetWidth||1,a=mi(t.height)/e.offsetHeight||1;return n!==1||a!==1}function CM(e,t,n){n===void 0&&(n=!1);var a=zn(t),o=zn(t)&&SM(t),i=La(t),s=hi(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&((Mr(t)!=="body"||tm(i))&&(l=_M(t)),zn(t)?(c=hi(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=em(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function ob(e){var t=hi(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function ru(e){return Mr(e)==="html"?e:e.assignedSlot||e.parentNode||(Qp(e)?e.host:null)||La(e)}function ib(e){return["html","body","#document"].indexOf(Mr(e))>=0?e.ownerDocument.body:zn(e)&&tm(e)?e:ib(ru(e))}function os(e,t){var n;t===void 0&&(t=[]);var a=ib(e),o=a===((n=e.ownerDocument)==null?void 0:n.body),i=On(a),s=o?[i].concat(i.visualViewport||[],tm(a)?a:[]):a,l=t.concat(s);return o?l:l.concat(os(ru(s)))}function xM(e){return["table","td","th"].indexOf(Mr(e))>=0}function o0(e){return!zn(e)||Xr(e).position==="fixed"?null:e.offsetParent}function EM(e){var t=/firefox/i.test(kf()),n=/Trident/i.test(kf());if(n&&zn(e)){var a=Xr(e);if(a.position==="fixed")return null}var o=ru(e);for(Qp(o)&&(o=o.host);zn(o)&&["html","body"].indexOf(Mr(o))<0;){var i=Xr(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 au(e){for(var t=On(e),n=o0(e);n&&xM(n)&&Xr(n).position==="static";)n=o0(n);return n&&(Mr(n)==="html"||Mr(n)==="body"&&Xr(n).position==="static")?t:n||EM(e)||t}var rr="top",Nr="bottom",_a="right",Hr="left",nm="auto",ou=[rr,Nr,_a,Hr],vi="start",_s="end",TM="clippingParents",sb="viewport",Yi="popper",PM="reference",i0=ou.reduce(function(e,t){return e.concat([t+"-"+vi,t+"-"+_s])},[]),AM=[].concat(ou,[nm]).reduce(function(e,t){return e.concat([t,t+"-"+vi,t+"-"+_s])},[]),IM="beforeRead",MM="read",NM="afterRead",OM="beforeMain",BM="main",LM="afterMain",DM="beforeWrite",RM="write",$M="afterWrite",zM=[IM,MM,NM,OM,BM,LM,DM,RM,$M];function VM(e){var t=new Map,n=new Set,a=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),a.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),a}function FM(e){var t=VM(e);return zM.reduce(function(n,a){return n.concat(t.filter(function(o){return o.phase===a}))},[])}function jM(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function HM(e){var t=e.reduce(function(n,a){var o=n[a.name];return n[a.name]=o?Object.assign({},o,a,{options:Object.assign({},o.options,a.options),data:Object.assign({},o.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}function UM(e,t){var n=On(e),a=La(e),o=n.visualViewport,i=a.clientWidth,s=a.clientHeight,l=0,c=0;if(o){i=o.width,s=o.height;var u=ab();(u||!u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:l+em(e),y:c}}function WM(e){var t,n=La(e),a=Zp(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=io(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=io(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-a.scrollLeft+em(e),c=-a.scrollTop;return Xr(o||n).direction==="rtl"&&(l+=io(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function qM(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Qp(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function _f(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function YM(e,t){var n=hi(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 s0(e,t,n){return t===sb?_f(UM(e,n)):ho(t)?YM(t,n):_f(WM(La(e)))}function GM(e){var t=os(ru(e)),n=["absolute","fixed"].indexOf(Xr(e).position)>=0,a=n&&zn(e)?au(e):e;return ho(a)?t.filter(function(o){return ho(o)&&qM(o,a)&&Mr(o)!=="body"}):[]}function KM(e,t,n,a){var o=t==="clippingParents"?GM(e):[].concat(t),i=[].concat(o,[n]),s=i[0],l=i.reduce(function(c,u){var d=s0(e,u,a);return c.top=io(d.top,c.top),c.right=mc(d.right,c.right),c.bottom=mc(d.bottom,c.bottom),c.left=io(d.left,c.left),c},s0(e,s,a));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function va(e){return e.split("-")[0]}function gi(e){return e.split("-")[1]}function lb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function cb(e){var t=e.reference,n=e.element,a=e.placement,o=a?va(a):null,i=a?gi(a):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case rr:c={x:s,y:t.y-n.height};break;case Nr:c={x:s,y:t.y+t.height};break;case _a:c={x:t.x+t.width,y:l};break;case Hr:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=o?lb(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case vi:c[u]=c[u]-(t[d]/2-n[d]/2);break;case _s:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function ub(){return{top:0,right:0,bottom:0,left:0}}function XM(e){return Object.assign({},ub(),e)}function JM(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}function rm(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=a===void 0?e.placement:a,i=n.strategy,s=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?TM:l,u=n.rootBoundary,d=u===void 0?sb:u,f=n.elementContext,p=f===void 0?Yi:f,m=n.altBoundary,g=m===void 0?!1:m,y=n.padding,w=y===void 0?0:y,b=XM(typeof w!="number"?w:JM(w,ou)),E=p===Yi?PM:Yi,_=e.rects.popper,v=e.elements[g?E:p],x=KM(ho(v)?v:v.contextElement||La(e.elements.popper),c,d,s),C=hi(e.elements.reference),P=cb({reference:C,element:_,placement:o}),O=_f(Object.assign({},_,P)),A=p===Yi?O:C,L={top:x.top-A.top+b.top,bottom:A.bottom-x.bottom+b.bottom,left:x.left-A.left+b.left,right:A.right-x.right+b.right},U=e.modifiersData.offset;if(p===Yi&&U){var z=U[o];Object.keys(L).forEach(function(R){var I=[_a,Nr].indexOf(R)>=0?1:-1,B=[rr,Nr].indexOf(R)>=0?"y":"x";L[R]+=z[B]*I})}return L}var l0={placement:"bottom",modifiers:[],strategy:"absolute"};function c0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function QM(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?l0:o;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},l0,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,m={state:d,setOptions:function(b){var E=typeof b=="function"?b(d.options):b;y(),d.options=Object.assign({},i,d.options,E),d.scrollParents={reference:ho(l)?os(l):l.contextElement?os(l.contextElement):[],popper:os(c)};var _=FM(HM([].concat(a,d.options.modifiers)));return d.orderedModifiers=_.filter(function(v){return v.enabled}),g(),m.update()},forceUpdate:function(){if(!p){var b=d.elements,E=b.reference,_=b.popper;if(c0(E,_)){d.rects={reference:CM(E,au(_),d.options.strategy==="fixed"),popper:ob(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(L){return d.modifiersData[L.name]=Object.assign({},L.data)});for(var v=0;v<d.orderedModifiers.length;v++){if(d.reset===!0){d.reset=!1,v=-1;continue}var x=d.orderedModifiers[v],C=x.fn,P=x.options,O=P===void 0?{}:P,A=x.name;typeof C=="function"&&(d=C({state:d,options:O,name:A,instance:m})||d)}}}},update:jM(function(){return new Promise(function(w){m.forceUpdate(),w(d)})}),destroy:function(){y(),p=!0}};if(!c0(l,c))return m;m.setOptions(u).then(function(w){!p&&u.onFirstUpdate&&u.onFirstUpdate(w)});function g(){d.orderedModifiers.forEach(function(w){var b=w.name,E=w.options,_=E===void 0?{}:E,v=w.effect;if(typeof v=="function"){var x=v({state:d,name:b,instance:m,options:_}),C=function(){};f.push(x||C)}})}function y(){f.forEach(function(w){return w()}),f=[]}return m}}var bl={passive:!0};function ZM(e){var t=e.state,n=e.instance,a=e.options,o=a.scroll,i=o===void 0?!0:o,s=a.resize,l=s===void 0?!0:s,c=On(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,bl)}),l&&c.addEventListener("resize",n.update,bl),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,bl)}),l&&c.removeEventListener("resize",n.update,bl)}}var eN={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ZM,data:{}};function tN(e){var t=e.state,n=e.name;t.modifiersData[n]=cb({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var nN={name:"popperOffsets",enabled:!0,phase:"read",fn:tN,data:{}},rN={top:"auto",right:"auto",bottom:"auto",left:"auto"};function aN(e,t){var n=e.x,a=e.y,o=t.devicePixelRatio||1;return{x:mi(n*o)/o||0,y:mi(a*o)/o||0}}function u0(e){var t,n=e.popper,a=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=s.x,m=p===void 0?0:p,g=s.y,y=g===void 0?0:g,w=typeof d=="function"?d({x:m,y}):{x:m,y};m=w.x,y=w.y;var b=s.hasOwnProperty("x"),E=s.hasOwnProperty("y"),_=Hr,v=rr,x=window;if(u){var C=au(n),P="clientHeight",O="clientWidth";if(C===On(n)&&(C=La(n),Xr(C).position!=="static"&&l==="absolute"&&(P="scrollHeight",O="scrollWidth")),C=C,o===rr||(o===Hr||o===_a)&&i===_s){v=Nr;var A=f&&C===x&&x.visualViewport?x.visualViewport.height:C[P];y-=A-a.height,y*=c?1:-1}if(o===Hr||(o===rr||o===Nr)&&i===_s){_=_a;var L=f&&C===x&&x.visualViewport?x.visualViewport.width:C[O];m-=L-a.width,m*=c?1:-1}}var U=Object.assign({position:l},u&&rN),z=d===!0?aN({x:m,y},On(n)):{x:m,y};if(m=z.x,y=z.y,c){var R;return Object.assign({},U,(R={},R[v]=E?"0":"",R[_]=b?"0":"",R.transform=(x.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",R))}return Object.assign({},U,(t={},t[v]=E?y+"px":"",t[_]=b?m+"px":"",t.transform="",t))}function oN(e){var t=e.state,n=e.options,a=n.gpuAcceleration,o=a===void 0?!0:a,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:va(t.placement),variation:gi(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,u0(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,u0(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var iN={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:oN,data:{}};function sN(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!zn(i)||!Mr(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function lN(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(a){var o=t.elements[a],i=t.attributes[a]||{},s=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),l=s.reduce(function(c,u){return c[u]="",c},{});!zn(o)||!Mr(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}var cN={name:"applyStyles",enabled:!0,phase:"write",fn:sN,effect:lN,requires:["computeStyles"]},uN=[eN,nN,iN,cN],dN=QM({defaultModifiers:uN});function fN(e){return e==="x"?"y":"x"}function Ul(e,t,n){return io(e,mc(t,n))}function pN(e,t,n){var a=Ul(e,t,n);return a>n?n:a}function mN(e){var t=e.state,n=e.options,a=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,g=n.tetherOffset,y=g===void 0?0:g,w=rm(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),b=va(t.placement),E=gi(t.placement),_=!E,v=lb(b),x=fN(v),C=t.modifiersData.popperOffsets,P=t.rects.reference,O=t.rects.popper,A=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,L=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),U=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(C){if(i){var R,I=v==="y"?rr:Hr,B=v==="y"?Nr:_a,M=v==="y"?"height":"width",$=C[v],K=$+w[I],V=$-w[B],Z=m?-O[M]/2:0,q=E===vi?P[M]:O[M],oe=E===vi?-O[M]:-P[M],j=t.elements.arrow,W=m&&j?ob(j):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ub(),H=Y[I],T=Y[B],J=Ul(0,P[M],W[M]),le=_?P[M]/2-Z-J-H-L.mainAxis:q-J-H-L.mainAxis,Oe=_?-P[M]/2+Z+J+T+L.mainAxis:oe+J+T+L.mainAxis,ee=t.elements.arrow&&au(t.elements.arrow),Te=ee?v==="y"?ee.clientTop||0:ee.clientLeft||0:0,ae=(R=U?.[v])!=null?R:0,ue=$+le-ae-Te,D=$+Oe-ae,de=Ul(m?mc(K,ue):K,$,m?io(V,D):V);C[v]=de,z[v]=de-$}if(l){var fe,ce=v==="x"?rr:Hr,Ae=v==="x"?Nr:_a,pe=C[x],Ie=x==="y"?"height":"width",xe=pe+w[ce],X=pe-w[Ae],re=[rr,Hr].indexOf(b)!==-1,ye=(fe=U?.[x])!=null?fe:0,Ze=re?xe:pe-P[Ie]-O[Ie]-ye+L.altAxis,ct=re?pe+P[Ie]+O[Ie]-ye-L.altAxis:X,Se=m&&re?pN(Ze,pe,ct):Ul(m?Ze:xe,pe,m?ct:X);C[x]=Se,z[x]=Se-pe}t.modifiersData[a]=z}}var hN={name:"preventOverflow",enabled:!0,phase:"main",fn:mN,requiresIfExists:["offset"]},vN={left:"right",right:"left",bottom:"top",top:"bottom"};function Wl(e){return e.replace(/left|right|bottom|top/g,function(t){return vN[t]})}var gN={start:"end",end:"start"};function d0(e){return e.replace(/start|end/g,function(t){return gN[t]})}function yN(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?AM:c,d=gi(a),f=d?l?i0:i0.filter(function(g){return gi(g)===d}):ou,p=f.filter(function(g){return u.indexOf(g)>=0});p.length===0&&(p=f);var m=p.reduce(function(g,y){return g[y]=rm(e,{placement:y,boundary:o,rootBoundary:i,padding:s})[va(y)],g},{});return Object.keys(m).sort(function(g,y){return m[g]-m[y]})}function bN(e){if(va(e)===nm)return[];var t=Wl(e);return[d0(e),t,d0(t)]}function wN(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,g=m===void 0?!0:m,y=n.allowedAutoPlacements,w=t.options.placement,b=va(w),E=b===w,_=c||(E||!g?[Wl(w)]:bN(w)),v=[w].concat(_).reduce(function(W,Y){return W.concat(va(Y)===nm?yN(t,{placement:Y,boundary:d,rootBoundary:f,padding:u,flipVariations:g,allowedAutoPlacements:y}):Y)},[]),x=t.rects.reference,C=t.rects.popper,P=new Map,O=!0,A=v[0],L=0;L<v.length;L++){var U=v[L],z=va(U),R=gi(U)===vi,I=[rr,Nr].indexOf(z)>=0,B=I?"width":"height",M=rm(t,{placement:U,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),$=I?R?_a:Hr:R?Nr:rr;x[B]>C[B]&&($=Wl($));var K=Wl($),V=[];if(i&&V.push(M[z]<=0),l&&V.push(M[$]<=0,M[K]<=0),V.every(function(W){return W})){A=U,O=!1;break}P.set(U,V)}if(O)for(var Z=g?3:1,q=function(Y){var H=v.find(function(T){var J=P.get(T);if(J)return J.slice(0,Y).every(function(le){return le})});if(H)return A=H,"break"},oe=Z;oe>0;oe--){var j=q(oe);if(j==="break")break}t.placement!==A&&(t.modifiersData[a]._skip=!0,t.placement=A,t.reset=!0)}}var kN={name:"flip",enabled:!0,phase:"main",fn:wN,requiresIfExists:["offset"],data:{_skip:!1}};function _N(e,t,n){const{disabled:a,appendTo:o,appendToBody:i,openDirection:s}=r.toRefs(e),l=r.getCurrentInstance().proxy,c=n.multiselect,u=n.dropdown,d=r.ref(!1),f=r.ref(null),p=r.ref(null),m=Pt(()=>o.value||i.value),g=Pt(()=>s.value==="top"&&p.value==="bottom"||s.value==="bottom"&&p.value!=="top"?"bottom":"top"),y=()=>{d.value||a.value||(d.value=!0,t.emit("open",l),m.value&&r.nextTick(()=>{b()}))},w=()=>{d.value&&(d.value=!1,t.emit("close",l))},b=()=>{if(!f.value)return;let _=parseInt(window.getComputedStyle(u.value).borderTopWidth.replace("px","")),v=parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px",""));f.value.setOptions(x=>({...x,modifiers:[...x.modifiers,{name:"offset",options:{offset:[0,(g.value==="top"?_:v)*-1]}}]})),f.value.update()},E=_=>{for(;_&&_!==document.body;){if(getComputedStyle(_).position==="fixed")return!0;_=_.parentElement}return!1};return r.onMounted(()=>{m.value&&(f.value=dN(c.value,u.value,{strategy:E(c.value)?"fixed":void 0,placement:s.value,modifiers:[hN,kN,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:_})=>{_.styles.popper.width=`${_.rects.reference.width}px`},effect:({state:_})=>{_.elements.popper.style.width=`${_.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:_}){p.value=_.placement}}]}))}),r.onBeforeUnmount(()=>{!m.value||!f.value||(f.value.destroy(),f.value=null)}),{popper:f,isOpen:d,open:y,close:w,placement:g,updatePopper:b}}function SN(e,t,n){const{searchable:a,disabled:o,clearOnBlur:i}=r.toRefs(e),s=n.input,l=n.open,c=n.close,u=n.clearSearch,d=n.isOpen,f=n.wrapper,p=n.tags,m=r.ref(!1),g=r.ref(!1),y=Pt(()=>a.value||o.value?-1:0),w=()=>{a.value&&s.value.blur(),f.value.blur()},b=()=>{a.value&&!o.value&&s.value.focus()},E=(O=!0)=>{o.value||(m.value=!0,O&&l())},_=()=>{m.value=!1,setTimeout(()=>{m.value||(c(),i.value&&u())},1)};return{tabindex:y,isActive:m,mouseClicked:g,blur:w,focus:b,activate:E,deactivate:_,handleFocusIn:O=>{O.target.closest("[data-tags]")&&O.target.nodeName!=="INPUT"||O.target.closest("[data-clear]")||E(g.value)},handleFocusOut:()=>{_()},handleCaretClick:()=>{_(),w()},handleMousedown:O=>{g.value=!0,d.value&&(O.target.isEqualNode(f.value)||O.target.isEqualNode(p.value))?setTimeout(()=>{_()},0):!d.value&&(document.activeElement.isEqualNode(f.value)||document.activeElement.isEqualNode(s.value))&&E(),setTimeout(()=>{g.value=!1},0)}}}function CN(e,t,n){const{mode:a,addTagOn:o,openDirection:i,searchable:s,showOptions:l,valueProp:c,groups:u,addOptionOn:d,createTag:f,createOption:p,reverse:m}=r.toRefs(e),g=r.getCurrentInstance().proxy,y=n.iv,w=n.update,b=n.deselect,E=n.search,_=n.setPointer,v=n.selectPointer,x=n.backwardPointer,C=n.forwardPointer,P=n.multiselect,O=n.wrapper,A=n.tags,L=n.isOpen,U=n.open,z=n.blur,R=n.fo,I=Pt(()=>f.value||p.value||!1),B=Pt(()=>o.value!==void 0?o.value:d.value!==void 0?d.value:["enter"]),M=()=>{a.value==="tags"&&!l.value&&I.value&&s.value&&!u.value&&_(R.value[R.value.map(V=>V[c.value]).indexOf(E.value)])};return{handleKeydown:V=>{t.emit("keydown",V,g);let Z,q;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(V.key)!==-1&&a.value==="tags"&&(Z=[...P.value.querySelectorAll("[data-tags] > *")].filter(oe=>oe!==A.value),q=Z.findIndex(oe=>oe===document.activeElement)),V.key){case"Backspace":if(a.value==="single"||s.value&&[null,""].indexOf(E.value)===-1||y.value.length===0)return;let oe=y.value.filter(j=>!j.disabled&&j.remove!==!1);oe.length&&b(oe[oe.length-1]);break;case"Enter":if(V.preventDefault(),V.keyCode===229)return;if(q!==-1&&q!==void 0){w([...y.value].filter((j,W)=>W!==q)),q===Z.length-1&&(Z.length-1?Z[Z.length-2].focus():s.value?A.value.querySelector("input").focus():O.value.focus());return}if(B.value.indexOf("enter")===-1&&I.value)return;M(),v();break;case" ":if(!I.value&&!s.value){V.preventDefault(),M(),v();return}if(!I.value)return!1;if(B.value.indexOf("space")===-1&&I.value)return;V.preventDefault(),M(),v();break;case"Tab":case";":case",":if(B.value.indexOf(V.key.toLowerCase())===-1||!I.value)return;M(),v(),V.preventDefault();break;case"Escape":z();break;case"ArrowUp":if(V.preventDefault(),!l.value)return;L.value||U(),x();break;case"ArrowDown":if(V.preventDefault(),!l.value)return;L.value||U(),C();break;case"ArrowLeft":if(s.value&&A.value&&A.value.querySelector("input").selectionStart||V.shiftKey||a.value!=="tags"||!y.value||!y.value.length)return;V.preventDefault(),q===-1?Z[Z.length-1].focus():q>0&&Z[q-1].focus();break;case"ArrowRight":if(q===-1||V.shiftKey||a.value!=="tags"||!y.value||!y.value.length)return;V.preventDefault(),Z.length>q+1?Z[q+1].focus():s.value?A.value.querySelector("input").focus():s.value||O.value.focus();break}},handleKeyup:V=>{t.emit("keyup",V,g)},preparePointer:M}}function xN(e,t,n){const{classes:a,disabled:o,showOptions:i,breakTags:s}=r.toRefs(e),l=n.isOpen,c=n.isPointed,u=n.isSelected,d=n.isDisabled,f=n.isActive,p=n.canPointGroups,m=n.resolving,g=n.fo,y=n.placement,w=Pt(()=>({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",...a.value})),b=Pt(()=>!!(l.value&&i.value&&(!m.value||m.value&&g.value.length)));return{classList:r.computed(()=>{const _=w.value;return{container:[_.container].concat(o.value?_.containerDisabled:[]).concat(b.value&&y.value==="top"?_.containerOpenTop:[]).concat(b.value&&y.value!=="top"?_.containerOpen:[]).concat(f.value?_.containerActive:[]),wrapper:_.wrapper,spacer:_.spacer,singleLabel:_.singleLabel,singleLabelText:_.singleLabelText,multipleLabel:_.multipleLabel,search:_.search,tags:_.tags,tag:[_.tag].concat(o.value?_.tagDisabled:[]),tagWrapper:[_.tagWrapper,s.value?_.tagWrapperBreak:null],tagDisabled:_.tagDisabled,tagRemove:_.tagRemove,tagRemoveIcon:_.tagRemoveIcon,tagsSearchWrapper:_.tagsSearchWrapper,tagsSearch:_.tagsSearch,tagsSearchCopy:_.tagsSearchCopy,placeholder:_.placeholder,caret:[_.caret].concat(l.value?_.caretOpen:[]),clear:_.clear,clearIcon:_.clearIcon,spinner:_.spinner,inifinite:_.inifinite,inifiniteSpinner:_.inifiniteSpinner,dropdown:[_.dropdown].concat(y.value==="top"?_.dropdownTop:[]).concat(!l.value||!i.value||!b.value?_.dropdownHidden:[]),options:[_.options].concat(y.value==="top"?_.optionsTop:[]),group:_.group,groupLabel:v=>{let x=[_.groupLabel];return c(v)?x.push(u(v)?_.groupLabelSelectedPointed:_.groupLabelPointed):u(v)&&p.value?x.push(d(v)?_.groupLabelSelectedDisabled:_.groupLabelSelected):d(v)&&x.push(_.groupLabelDisabled),p.value&&x.push(_.groupLabelPointable),x},groupOptions:_.groupOptions,option:(v,x)=>{let C=[_.option];return c(v)?C.push(u(v)?_.optionSelectedPointed:_.optionPointed):u(v)?C.push(d(v)?_.optionSelectedDisabled:_.optionSelected):(d(v)||x&&d(x))&&C.push(_.optionDisabled),C},noOptions:_.noOptions,noResults:_.noResults,assist:_.assist,fakeInput:_.fakeInput}}),showDropdown:b}}function EN(e,t,n){const{limit:a,infinite:o}=r.toRefs(e),i=n.isOpen,s=n.offset,l=n.search,c=n.pfo,u=n.eo,d=r.ref(null),f=r.shallowRef(null),p=Pt(()=>s.value<c.value.length),m=y=>{const{isIntersecting:w,target:b}=y[0];if(w){const E=b.offsetParent,_=E.scrollTop;s.value+=a.value==-1?10:a.value,r.nextTick(()=>{E.scrollTop=_})}},g=()=>{i.value&&s.value<c.value.length?d.value.observe(f.value):!i.value&&d.value&&d.value.disconnect()};return r.watch(i,()=>{o.value&&g()}),r.watch(l,()=>{o.value&&(s.value=a.value,g())},{flush:"post"}),r.watch(u,()=>{o.value&&g()},{immediate:!1,flush:"post"}),r.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(m))}),{hasMore:p,infiniteLoader:f}}function TN(e,t,n){const{placeholder:a,id:o,valueProp:i,label:s,mode:l,groupLabel:c,aria:u,searchable:d}=r.toRefs(e),f=n.pointer,p=n.iv,m=n.hasSelected,g=n.multipleLabelText,y=r.ref(null),w=Pt(()=>`${o.value?o.value+"-":""}assist`),b=Pt(()=>`${o.value?o.value+"-":""}multiselect-options`),E=Pt(()=>{if(f.value){let z=o.value?`${o.value}-`:"";return z+=`${f.value.group?"multiselect-group":"multiselect-option"}-`,z+=f.value.group?f.value.index:f.value[i.value],z}}),_=Pt(()=>a.value),v=Pt(()=>l.value!=="single"),x=r.computed(()=>l.value==="single"&&m.value?p.value[s.value]:l.value==="multiple"&&m.value?g.value:l.value==="tags"&&m.value?p.value.map(z=>z[s.value]).join(", "):""),C=r.computed(()=>{let z={...u.value};return d.value&&(z["aria-labelledby"]=z["aria-labelledby"]?`${w.value} ${z["aria-labelledby"]}`:w.value,x.value&&z["aria-label"]&&(z["aria-label"]=`${x.value}, ${z["aria-label"]}`)),z}),P=z=>`${o.value?o.value+"-":""}multiselect-option-${z[i.value]}`,O=z=>`${o.value?o.value+"-":""}multiselect-group-${z.index}`,A=z=>`${z}`,L=z=>`${z}`,U=z=>`${z} ❎`;return r.onMounted(()=>{if(o.value&&document&&document.querySelector){let z=document.querySelector(`[for="${o.value}"]`);y.value=z?z.innerText:null}}),{arias:C,ariaLabel:x,ariaAssist:w,ariaControls:b,ariaPlaceholder:_,ariaMultiselectable:v,ariaActiveDescendant:E,ariaOptionId:P,ariaOptionLabel:A,ariaGroupId:O,ariaGroupLabel:L,ariaTagLabel:U}}function PN(e,t,n){const{locale:a,fallbackLocale:o}=r.toRefs(e);return{localize:s=>!s||typeof s!="object"?s:s&&s[a.value]?s[a.value]:s&&a.value&&s[a.value.toUpperCase()]?s[a.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 AN(e,t,n){const a=r.shallowRef(null),o=r.shallowRef(null),i=r.shallowRef(null),s=r.shallowRef(null),l=r.shallowRef(null);return{multiselect:a,wrapper:o,tags:i,input:s,dropdown:l}}function IN(e,t,n,a={}){return n.forEach(o=>{a={...a,...o(e,t,a)}}),a}var am={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1,default:void 0},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1,default:void 0},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1,default:void 0},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function,default:void 0},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String,default:void 0}},setup(e,t){return IN(e,t,[AN,PN,mM,vM,_N,hM,pM,SN,bM,EN,wM,CN,xN,TN])},beforeMount(){(this.$root.constructor&&this.$root.constructor.version&&this.$root.constructor.version.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const MN=["id","dir"],NN=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],ON=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],BN=["onKeyup","aria-label"],LN=["onClick"],DN=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],RN=["innerHTML"],$N=["id"],zN=["id"],VN=["id","aria-label","aria-selected"],FN=["data-pointed","onMouseenter","onClick"],jN=["innerHTML"],HN=["aria-label"],UN=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],WN=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],qN=["innerHTML"],YN=["innerHTML"],GN=["value"],KN=["name","value"],XN=["name","value"],JN=["id"];function QN(e,t,n,a,o,i){return r.openBlock(),r.createElementBlock("div",{ref:"multiselect",class:r.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))},[r.createElementVNode("div",r.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),[r.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(r.openBlock(),r.createElementBlock("input",r.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]=r.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,ON)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(e.classList.tags),"data-tags":""},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.iv,(s,l,c)=>r.renderSlot(e.$slots,"tag",{option:s,handleTagRemove:e.handleTagRemove,disabled:n.disabled},()=>[(r.openBlock(),r.createElementBlock("span",{class:r.normalizeClass([e.classList.tag,s.disabled?e.classList.tagDisabled:null]),tabindex:"-1",onKeyup:r.withKeys(u=>e.handleTagRemove(s,u),["enter"]),key:c,"aria-label":e.ariaTagLabel(e.localize(s[n.label]))},[r.createElementVNode("span",{class:r.normalizeClass(e.classList.tagWrapper)},r.toDisplayString(e.localize(s[n.label])),3),!n.disabled&&!s.disabled?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(e.classList.tagRemove),onClick:r.withModifiers(u=>e.handleTagRemove(s,u),["stop"])},[r.createElementVNode("span",{class:r.normalizeClass(e.classList.tagRemoveIcon)},null,2)],10,LN)):r.createCommentVNode("v-if",!0)],42,BN))])),256)),r.createElementVNode("div",{class:r.normalizeClass(e.classList.tagsSearchWrapper),ref:"tags"},[r.createCommentVNode(" Used for measuring search width "),r.createElementVNode("span",{class:r.normalizeClass(e.classList.tagsSearchCopy)},r.toDisplayString(e.search),3),r.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(r.openBlock(),r.createElementBlock("input",r.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]=r.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,DN)):r.createCommentVNode("v-if",!0)],2)],2)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Single label "),n.mode=="single"&&e.hasSelected&&!e.search&&e.iv?r.renderSlot(e.$slots,"singlelabel",{key:2,value:e.iv},()=>[r.createElementVNode("div",{class:r.normalizeClass(e.classList.singleLabel)},[r.createElementVNode("span",{class:r.normalizeClass(e.classList.singleLabelText)},r.toDisplayString(e.localize(e.iv[n.label])),3)],2)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Multiple label "),n.mode=="multiple"&&e.hasSelected&&!e.search?r.renderSlot(e.$slots,"multiplelabel",{key:3,values:e.iv},()=>[r.createElementVNode("div",{class:r.normalizeClass(e.classList.multipleLabel),innerHTML:e.multipleLabelText},null,10,RN)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Placeholder "),n.placeholder&&!e.hasSelected&&!e.search?r.renderSlot(e.$slots,"placeholder",{key:4},()=>[r.createElementVNode("div",{class:r.normalizeClass(e.classList.placeholder),"aria-hidden":"true"},r.toDisplayString(n.placeholder),3)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Spinner "),n.loading||e.resolving?r.renderSlot(e.$slots,"spinner",{key:5},()=>[r.createElementVNode("span",{class:r.normalizeClass(e.classList.spinner),"aria-hidden":"true"},null,2)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Clear "),e.hasSelected&&!n.disabled&&n.canClear&&!e.busy?r.renderSlot(e.$slots,"clear",{key:6,clear:e.clear},()=>[r.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:r.normalizeClass(e.classList.clear),onClick:t[6]||(t[6]=(...s)=>e.clear&&e.clear(...s)),onKeyup:t[7]||(t[7]=r.withKeys((...s)=>e.clear&&e.clear(...s),["enter"]))},[r.createElementVNode("span",{class:r.normalizeClass(e.classList.clearIcon)},null,2)],34)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Caret "),n.caret&&n.showOptions?r.renderSlot(e.$slots,"caret",{key:7,handleCaretClick:e.handleCaretClick,isOpen:e.isOpen},()=>[r.createElementVNode("span",{class:r.normalizeClass(e.classList.caret),onClick:t[8]||(t[8]=(...s)=>e.handleCaretClick&&e.handleCaretClick(...s)),"aria-hidden":"true"},null,2)]):r.createCommentVNode("v-if",!0)],16,NN),r.createCommentVNode(" Options "),(r.openBlock(),r.createBlock(r.Teleport,{to:n.appendTo||"body",disabled:!n.appendToBody&&!n.appendTo},[r.createElementVNode("div",{id:n.id?`${n.id}-dropdown`:void 0,class:r.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))},[r.renderSlot(e.$slots,"beforelist",{options:e.fo}),r.createElementVNode("ul",{class:r.normalizeClass(e.classList.options),id:e.ariaControls,role:"listbox"},[n.groups?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(e.fg,(s,l,c)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(e.classList.group),key:c,id:e.ariaGroupId(s),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),"aria-selected":e.isSelected(s),role:"option"},[s.__CREATE__?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.classList.groupLabel(s)),"data-pointed":e.isPointed(s),onMouseenter:u=>e.setPointer(s,l),onClick:u=>e.handleGroupClick(s)},[r.renderSlot(e.$slots,"grouplabel",{group:s,isSelected:e.isSelected,isPointed:e.isPointed},()=>[r.createElementVNode("span",{innerHTML:e.localize(s[n.groupLabel])},null,8,jN)])],42,FN)),r.createElementVNode("ul",{class:r.normalizeClass(e.classList.groupOptions),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),role:"group"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.__VISIBLE__,(u,d,f)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(e.classList.option(u,s)),"data-pointed":e.isPointed(u),"data-selected":e.isSelected(u)||void 0,key:f,onMouseenter:p=>e.setPointer(u),onClick:p=>e.handleOptionClick(u),id:e.ariaOptionId(u),"aria-selected":e.isSelected(u),"aria-label":e.ariaOptionLabel(e.localize(u[n.label])),role:"option"},[r.renderSlot(e.$slots,"option",{option:u,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[r.createElementVNode("span",null,r.toDisplayString(e.localize(u[n.label])),1)])],42,UN))),128))],10,HN)],10,VN))),128)):(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(e.fo,(s,l,c)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(e.classList.option(s)),"data-pointed":e.isPointed(s),"data-selected":e.isSelected(s)||void 0,key:c,onMouseenter:u=>e.setPointer(s),onClick:u=>e.handleOptionClick(s),id:e.ariaOptionId(s),"aria-selected":e.isSelected(s),"aria-label":e.ariaOptionLabel(e.localize(s[n.label])),role:"option"},[r.renderSlot(e.$slots,"option",{option:s,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[r.createElementVNode("span",null,r.toDisplayString(e.localize(s[n.label])),1)])],42,WN))),128))],10,zN),e.noOptions?r.renderSlot(e.$slots,"nooptions",{key:0},()=>[r.createElementVNode("div",{class:r.normalizeClass(e.classList.noOptions),innerHTML:e.localize(n.noOptionsText)},null,10,qN)]):r.createCommentVNode("v-if",!0),e.noResults?r.renderSlot(e.$slots,"noresults",{key:1},()=>[r.createElementVNode("div",{class:r.normalizeClass(e.classList.noResults),innerHTML:e.localize(n.noResultsText)},null,10,YN)]):r.createCommentVNode("v-if",!0),n.infinite&&e.hasMore?(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(e.classList.inifinite),ref:"infiniteLoader"},[r.renderSlot(e.$slots,"infinite",{},()=>[r.createElementVNode("span",{class:r.normalizeClass(e.classList.inifiniteSpinner)},null,2)])],2)):r.createCommentVNode("v-if",!0),r.renderSlot(e.$slots,"afterlist",{options:e.fo})],42,$N)],8,["to","disabled"])),r.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(r.openBlock(),r.createElementBlock("input",{key:0,class:r.normalizeClass(e.classList.fakeInput),tabindex:"-1",value:e.textValue,required:""},null,10,GN)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Native input support "),n.nativeSupport?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[n.mode=="single"?(r.openBlock(),r.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:e.plainValue!==void 0?e.plainValue:""},null,8,KN)):(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(e.plainValue,(s,l)=>(r.openBlock(),r.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:s,key:l},null,8,XN))),128))],64)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Screen reader assistive text "),n.searchable&&e.hasSelected?(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(e.classList.assist),id:e.ariaAssist,"aria-hidden":"true"},r.toDisplayString(e.ariaLabel),11,JN)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Create height for empty input "),r.createElementVNode("div",{class:r.normalizeClass(e.classList.spacer)},null,2)],42,MN)}am.render=QN;am.__file="src/Multiselect.vue";const Tt={container:"app-select scrollbar-primary relative mx-auto w-full flex items-center justify-end box-border cursor-pointer border border-zinc-300 rounded-lg bg-white text-base leading-snug outline-hidden 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 pr-16 box-border rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3",singleLabelText:"text-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 rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3",search:"h-full w-full absolute inset-0 outline-hidden focus:ring-0 appearance-none box-border border-0 text-base font-sans bg-white rounded-lg pl-3 rtl:pl-0 rtl:pr-3",tags:"min-w-0 grow shrink flex flex-wrap items-center mt-1 px-2",tag:"max-w-full bg-zinc-200 text-sm font-semibold py-1 pl-2 rounded-lg h-7 mr-1 mb-1 flex items-center whitespace-nowrap rtl:pl-0 rtl:pr-2 rtl:mr-0 rtl:ml-1",tagDisabled:"pr-2 opacity-50 rtl:pl-2",tagRemove:"flex items-center justify-center p-1 mx-0.5 rounded-lg group",tagRemoveIcon:"bg-multiselect-remove bg-center bg-no-repeat inline-block w-3 h-3 text-zinc-700",tagText:"overflow-hidden text-ellipsis whitespace-nowrap",tagsSearchWrapper:"inline-block relative mx-1 mb-1 grow shrink h-full",tagsSearch:"absolute inset-0 border-0 outline-hidden focus:ring-0 appearance-none p-0 text-base font-sans box-border w-full bg-transparent",tagsSearchCopy:"invisible whitespace-pre-wrap inline-block h-px",placeholder:"flex text-base items-center h-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3 text-zinc-400 rtl:left-auto rtl:right-0 rtl:pl-0 rtl:pr-3",caret:"bg-multiselect-caret bg-center bg-no-repeat w-5 h-8 py-px box-content mr-3 relative z-10 stroke-2 shrink-0 grow-0 transition-transform transform pointer-events-none rtl:mr-0 rtl:ml-3",caretOpen:"rotate-180 pointer-events-auto",clear:"pr-3 relative z-10 text-zinc-700 transition duration-300 shrink-0 grow-0 flex rtl:pr-0 rtl:pl-3",clearIcon:"bg-multiselect-remove bg-center bg-no-repeat w-2.5 h-4 py-px box-content inline-block",spinner:"bg-multiselect-spinner bg-center bg-no-repeat w-4 h-4 z-10 mr-3 animate-spin shrink-0 grow-0 rtl:mr-0 rtl:ml-3",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 shrink-0 grow-0 m-3",dropdown:"max-h-60 absolute -left-[2px] -right-[2px] bottom-0 transform translate-y-full border-2 border-zinc-300 -mt-px overflow-y-auto z-50 bg-white flex flex-col rounded-b-lg",dropdownTop:"-translate-y-full! top-px bottom-auto rounded-b-none rounded-t-lg",dropdownHidden:"hidden",options:"flex flex-col p-0 m-0 list-none",optionsTop:"",group:"p-0 m-0",groupLabel:"flex text-sm box-border items-center justify-start text-left py-1 px-3 font-semibold bg-zinc-200 cursor-default leading-normal",groupLabelPointable:"cursor-pointer",groupLabelPointed:"bg-zinc-300 text-zinc-700",groupLabelSelected:"bg-primary-active text-white",groupLabelDisabled:"bg-zinc-100 text-zinc-300 cursor-not-allowed",groupLabelSelectedPointed:"bg-primary-active text-white opacity-90",groupLabelSelectedDisabled:"text-white bg-primary-active bg-opacity-50 cursor-not-allowed",groupOptions:"p-0 m-0",option:"flex items-center justify-start box-border text-left cursor-pointer text-base leading-snug py-2 px-3",optionPointed:"text-zinc-800 bg-zinc-100",optionSelected:"text-white bg-primary",optionDisabled:"text-zinc-300 cursor-not-allowed",optionSelectedPointed:"text-white bg-primary opacity-90",optionSelectedDisabled:"text-green-100 bg-primary bg-opacity-50 cursor-not-allowed",noOptions:"py-2 px-3 text-zinc-600 bg-white text-left",noResults:"py-2 px-3 text-zinc-600 bg-white text-left",fakeInput:"bg-transparent absolute left-0 right-0 -bottom-px w-full h-px border-0 p-0 appearance-none outline-hidden text-transparent",spacer:"h-9 py-px box-content"};function ZN(e){return e in Tt}function eO(e){const t=Object.keys(Tt).find(n=>n.toLowerCase()===e);if(t&&ZN(t))return Tt[t]}const tO=["onClick"],nO={key:1,class:"order-2 mt-1.5 flex items-center gap-x-1 text-xs italic text-error","data-test-error-message":""},iu=r.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},searchable:{type:Boolean,default:!1},cacheable:{type:Boolean,default:!1},onChange:{}},setup(e){const t=e,n=r.useSlots(),a=r.useTemplateRef("select"),o=Zt.useStorage("app-select",[],sessionStorage),i=r.computed(()=>Object.keys(n).filter(u=>u!=="tag")),s=r.computed(()=>{const u={...Tt};return t.openDirection==="up"&&(u.dropdown=`${Tt.dropdown} ${Tt.dropdownTop}`,u.containerOpen=`${Tt.containerOpenTop}`),t.dropdownClasses&&(u.dropdown=`${u.dropdown} ${t.dropdownClasses}`),t.hasError&&(u.container=`${u.container} border-error! focus:ring-error focus:border-error`),Object.entries(t.additionalClasses??{}).forEach(([d,f])=>{d in u&&(u[d]=`${u[d]} ${f}`)}),u});r.onMounted(()=>{if(t.cacheable){const u=Object.values(a.value?.modelValue??{}),d=a.value?.valueProp??"value";o.value.filter(f=>u.includes(f[d])||u.includes(`${f[d]}`))?.forEach(f=>{a.value?.select(f)})}});function l(u){return u?r.isRef(u)?Array.isArray(u.value)?u.value:[u.value]:Array.isArray(u)?u:[u]:[]}function c(u,d){t.onChange?.(u),o.value=l(r.unref(d.iv))}return(u,d)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(u.wrapperClasses)},[u.label||u.$slots.label?(r.openBlock(),r.createBlock(r.unref(om),{key:0,"has-error":u.hasError,class:r.normalizeClass(u.labelClasses)},{default:r.withCtx(()=>[r.renderSlot(u.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(u.label),1)])]),_:3},8,["has-error","class"])):r.createCommentVNode("",!0),r.createVNode(r.unref(am),r.mergeProps({native:!1,classes:s.value,searchable:t.searchable},{...u.$attrs,ref:"select",label:t.optionLabel,onChange:t.onChange},{onOpen:d[0]||(d[0]=f=>{u.fetchOnOpen&&f?.noOptions&&f?.resolveOptions?.()}),onChange:c}),r.createSlots({tag:r.withCtx(f=>[r.createElementVNode("div",{class:r.normalizeClass(r.unref(Tt).tag)},[r.renderSlot(u.$slots,"tag",r.normalizeProps(r.guardReactiveProps(f)),()=>[r.createElementVNode("span",{class:r.normalizeClass(r.unref(Tt).tagText)},r.toDisplayString(f.option?.[u.optionLabel]),3)]),f.disabled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(r.unref(Tt).tagRemove),onClick:p=>f.handleTagRemove(f.option,p)},[r.createElementVNode("span",{class:r.normalizeClass(r.unref(Tt).tagRemoveIcon)},null,2)],10,tO))],2)]),_:2},[r.renderList(i.value,(f,p)=>({name:f,fn:r.withCtx(m=>[r.renderSlot(u.$slots,f,r.normalizeProps(r.guardReactiveProps({...m||{},classes:r.unref(eO)(f)})))])}))]),1040,["classes","searchable"]),u.hasError&&u.errorMessage?(r.openBlock(),r.createElementBlock("p",nO,r.toDisplayString(u.errorMessage),1)):r.createCommentVNode("",!0)],2))}}),rO=["data-error"],om=r.defineComponent({__name:"AppInputLabel",props:{disabled:{type:Boolean},hasError:{type:Boolean}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("label",{class:r.normalizeClass([{"text-error":t.hasError,"select-none text-zinc-300":t.disabled},"mb-2 block text-base font-semibold text-zinc-900"]),"data-error":t.hasError?"label":void 0},[r.renderSlot(t.$slots,"default")],10,rO))}}),Sf={mapId:"161a92b3666d9228",disableDefaultUI:!0,zoom:15},aO={scrollwheel:!1,clickableIcons:!1,keyboardShortcuts:!1,isFractionalZoomEnabled:!1,maxZoom:Sf.zoom,minZoom:Sf.zoom,disableDoubleClickZoom:!0,fullscreenControl:!1,streetViewControl:!1,gestureHandling:"none",rotateControl:!1,panControl:!1},oO=["inline-flex","justify-center","items-center","rounded-full","bg-primary","text-white","h-12","w-12"];function iO(){const e=document.createElement("div");return e.classList.add(...oO),r.render(r.h(i$),e),e}const sO=r.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=r.ref(null),a=r.computed(()=>t.mapCenterLatitude&&t.mapCenterLongitude?{lat:t.mapCenterLatitude,lng:t.mapCenterLongitude}:t.mapOptions?.center??null),o=r.computed(()=>t.markerLatitude&&t.markerLongitude?{lat:t.markerLatitude,lng:t.markerLongitude}:a.value);r.watch(t,async()=>{await i()}),r.onMounted(async()=>{if(!window?.google){console.error("Google not defined. use composable useGoogleApi at setup");return}await i()});async function i(){const{Map:c}=await google.maps.importLibrary("maps");if(n.value instanceof HTMLElement){const u=new c(n.value,{...s(),center:a.value});t.withMarker&&await l(u)}}function s(){let c={...Sf};return t.disableUserInteraction&&(c={...c,...aO}),{...c,...t.mapOptions??{}}}async function l(c){const{AdvancedMarkerElement:u}=await google.maps.importLibrary("marker"),d=new u({map:c,position:o.value,content:iO()});t.disableMarkerClick&&!t.disableUserInteraction&&(d.element.classList.add("cursor-default!"),google.maps.event.addListener(d,"click",()=>{}))}return(c,u)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"mapElement",ref:n,class:"h-80 w-full"},null,512))}}),Cf=r.defineComponent({__name:"NavigationItem",props:{item:{},linkClasses:{}},setup(e){const t=e,{navigationComponent:n,closeMobileMenu:a,expanded:o}=ko(),i=ei.useRouter(),s=r.ref(!1),l=r.computed(()=>s.value||typeof t.item.icon!="string"),c=r.computed(()=>s.value?Na:t.item.icon),u=r.computed(()=>t.item.href??i.resolve(t.item.to)?.href??"");async function d(f){a(),t.item?.onClick&&(f.preventDefault(),s.value=!0,await Promise.resolve(t.item?.onClick?.()),s.value=!1)}return(f,p)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(n)),{to:f.item.to,href:u.value,class:r.normalizeClass([[{"md:bg-primary md:text-white!":f.item.active??!1,"rounded-full!":f.item.rounded??!1,"mb-3":!f.item.bottom,"mt-3":f.item.bottom,"md:w-10 md:justify-center":!r.unref(o),"md:px-6":r.unref(o)},f.linkClasses],"group/item flex h-10 w-full cursor-pointer rounded-lg transition-colors hover:bg-primary md:items-center md:text-center md:text-zinc-400 md:hover:text-white"]),onClick:d},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l.value?c.value:"span"),{class:r.normalizeClass([{"h-6!":!l.value,"md:text-white!":f.item.active},"app-navigation-item size-5 stroke-2 text-black md:size-4 md:text-zinc-400 md:group-hover/item:text-white"]),size:s.value?"extra-small":void 0,"data-test-icon":""},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(l.value?"":f.item.icon),1)]),_:1},8,["class","size"])),r.createElementVNode("span",{class:r.normalizeClass([{"md:w-0 md:p-0":!r.unref(o)},"overflow-hidden whitespace-nowrap pl-7 text-lg font-semibold md:text-base md:font-normal"]),"data-test-name":""},r.toDisplayString(f.item.name),3)]),_:1},8,["to","href","class"]))}}),xf=r.defineComponent({__name:"SupportItem",setup(e){const{contactRoute:t,contactIcon:n,navigationComponent:a,closeMobileMenu:o}=ko();return(i,s)=>r.unref(t)?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(a)),{key:0,to:r.unref(a)!=="a"?r.unref(t):void 0,href:r.unref(a)?r.unref(t):void 0,class:"app-support-item fixed bottom-5 right-5 z-50 mt-2 flex size-10 justify-center rounded-full bg-primary py-2 text-white transition-colors hover:bg-primary-active focus-visible:outline-hidden","data-test-help-icon":"",onClick:r.unref(o)},{default:r.withCtx(()=>[typeof r.unref(n)=="string"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(r.unref(n)),1)],64)):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(n)),{key:1,class:"size-full"}))]),_:1},8,["to","href","onClick"])):r.createCommentVNode("",!0)}}),lO={class:"app-mobile-menu flex h-18 items-center justify-between bg-zinc-50 px-4 text-black md:hidden"},cO=["innerHTML"],uO={class:"flex w-10 grow-0 justify-end","data-test-avatar-wrapper":""},dO={class:"relative flex size-full flex-1 flex-col bg-white focus:outline-hidden","data-test-navigation-wrapper":""},fO={class:"h-0 flex-1 overflow-y-auto p-4","data-test-navigation-links-wrapper":""},pO={"aria-label":"MainMenu",class:"mt-5"},mO={class:"mb-auto"},hO=r.defineComponent({__name:"Mobile",setup(e){const{logo:t,avatar:n,navigationItems:a,mobileMenuOpen:o,mobileMenuOpenTransition:i,openMobileMenu:s,closeMobileMenu:l}=ko(),c=r.computed(()=>o.value?km:s$);function u(){l(),setTimeout(()=>{i.value=!1},100)}function d(){i.value||(s(),i.value=!0)}return(f,p)=>(r.openBlock(),r.createElementBlock("header",lO,[r.createElementVNode("div",{class:"inline-flex w-10 grow-0 cursor-pointer items-center justify-start rounded-sm !py-2 hover:text-primary focus:outline-hidden","data-test-menu-icon-wrapper":"",onClick:r.withModifiers(d,["stop"])},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(c.value),{class:"block size-6 text-black","aria-hidden":"true"}))]),r.createElementVNode("div",{class:"flex h-full max-w-[70%] grow justify-center py-4","data-test-logo-wrapper":"",innerHTML:r.unref(t)},null,8,cO),r.createElementVNode("div",uO,[r.unref(n)?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(n)),{key:0})):r.createCommentVNode("",!0)]),r.createVNode(r.unref(nt.TransitionRoot),{show:r.unref(o),as:"template"},{default:r.withCtx(()=>[r.createVNode(r.unref(nt.Dialog),{as:"div",class:"app-mobile-menu-dialog fixed inset-0 top-18 z-50 flex lg:hidden",onClose:u},{default:r.withCtx(()=>[r.createVNode(r.unref(nt.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:r.withCtx(()=>[r.createElementVNode("div",dO,[r.createElementVNode("div",fO,[r.createElementVNode("nav",pO,[r.createElementVNode("ul",mO,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(a).filter(m=>m.visible!==!1),m=>(r.openBlock(),r.createElementBlock("li",{key:m.name,"data-test-navigation-item":""},[r.createVNode(Cf,{item:m},null,8,["item"])]))),128))])]),r.createVNode(xf)])])]),_:1})]),_:1})]),_:1},8,["show"]),r.createVNode(xf)]))}}),vO={class:"relative before:absolute before:-right-4 before:top-0 before:z-[-1] before:size-4 before:bg-secondary after:absolute after:-right-4 after:bottom-0 after:z-[-1] after:size-4 after:bg-secondary"},gO=["aria-expanded"],yO={key:0},bO=r.defineComponent({__name:"AppNavigationMenu",setup(e){const{navigationItems:t,mainMenuOpen:n,expanded:a,toggleExpand:o,contactIcon:i}=ko();return(s,l)=>(r.openBlock(),r.createElementBlock("div",vO,[r.createElementVNode("aside",{class:r.normalizeClass([{"flex-col px-3 md:w-20!":r.unref(n),"md:w-72!":r.unref(a)},"app-navigation-menu group sticky top-0 hidden h-screen w-0 justify-center py-5 transition-all duration-500 before:absolute before:-right-8 before:top-0 before:size-8 before:bg-zinc-100 after:absolute after:-right-8 after:bottom-0 after:size-8 after:bg-zinc-100 md:flex md:bg-secondary"]),"aria-expanded":r.unref(a),"data-test-main-menu":""},[r.createElementVNode("ul",{class:r.normalizeClass([{"mx-auto":!r.unref(a)},"mb-auto transition-all duration-500 z-10"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(t).filter(c=>c.bottom!==!0&&c.visible!==!1),c=>(r.openBlock(),r.createElementBlock("li",{key:c.name,"data-test-top-navigation-item":""},[r.createVNode(Cf,{item:c,"link-classes":c.linkClasses},null,8,["item","link-classes"])]))),128))],2),r.createElementVNode("ul",{class:r.normalizeClass([{"mx-auto":!r.unref(a)},"mt-auto pb-10 transition-all duration-500"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(t).filter(c=>c.bottom&&c.visible!==!1),c=>(r.openBlock(),r.createElementBlock("li",{key:c.name,"data-test-bottom-navigation-item":""},[r.createVNode(Cf,{item:c,"link-classes":c.linkClasses},null,8,["item","link-classes"])]))),128)),r.unref(i)?(r.openBlock(),r.createElementBlock("li",yO,[r.createVNode(xf,{class:"static!"})])):r.createCommentVNode("",!0)],2),r.createElementVNode("div",{class:"absolute bottom-2 right-5 hidden size-10 cursor-pointer items-center justify-center overflow-hidden rounded-full bg-secondary transition-all duration-200 md:flex",onClick:l[0]||(l[0]=(...c)=>r.unref(o)&&r.unref(o)(...c))},[r.createElementVNode("div",{class:r.normalizeClass([{"-translate-x-4!":!r.unref(a)},"flex translate-x-4 space-x-4 transition-transform duration-700"])},[r.createVNode(r.unref(wm),{class:"size-5 text-zinc-400 hover:text-white"}),r.createVNode(r.unref(Jb),{class:"size-5 text-zinc-400 hover:text-white"})],2)])],10,gO),r.createVNode(hO)]))}}),su=Dn(bO,[["__scopeId","data-v-d443a433"]]),wO={class:"flex text-sm font-bold"},kO={class:"flex items-center rounded-l-lg bg-indigo-900 px-2 py-[0.188rem] text-white","data-test-country-code":""},db=r.defineComponent({__name:"AppLicensePlate",props:{license:{default:void 0},country:{default:"NL"},licensePlateClasses:{default:void 0}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",wO,[r.createElementVNode("span",kO,r.toDisplayString(t.country),1),r.createElementVNode("span",{class:r.normalizeClass([t.licensePlateClasses,"w-full rounded-r-lg bg-yellow-400 px-2 py-[0.188rem] uppercase"]),"data-test-license-plate":""},[r.renderSlot(t.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(t.license),1)])],2)]))}}),fb=r.defineComponent({__name:"AppTimelineItemIcon",props:{icon:{}},setup(e){const t=e,n=r.computed(()=>t.icon??l$),a=r.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=r.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)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(o.value)},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.value),{class:r.normalizeClass([a.value,"relative"])},null,8,["class"]))],2))}}),_O={plain:[],default:["text-zinc-600"],success:["text-green-600"],warning:["text-yellow-600"],error:["text-red-600"],info:["text-sky-600"],inactive:["text-orange-500"]},SO={class:"flex"},CO={class:"ml-4"},pb=r.defineComponent({__name:"AppTimelineItem",props:{item:{},itemType:{default:"default"}},setup(e){const t=e,n=r.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:[]),a=r.computed(()=>t.item?.badge??"default");return(o,i)=>(r.openBlock(),r.createElementBlock("article",{class:r.normalizeClass([{"after:hidden":o.item.last},"relative flex w-full before:absolute before:-top-5 before:left-4.5 before:h-5 before:w-0.5 before:bg-primary after:absolute after:left-4.5 after:h-full after:w-0.5 after:bg-primary after:[min-height:60px] first-of-type:before:hidden last-of-type:from-primary last-of-type:to-white last-of-type:after:bg-transparent last-of-type:after:bg-linear-to-b"])},[r.createElementVNode("div",SO,[r.renderSlot(o.$slots,"icon",{value:o.item.icon},()=>[r.createVNode(fb,{icon:o.item.icon},null,8,["icon"])])]),r.createElementVNode("div",CO,[r.createElementVNode("header",{class:r.normalizeClass({"flex items-center gap-3":o.itemType==="inline","mb-0!":o.item.last})},[r.createVNode(r.unref(sc),{class:r.normalizeClass({"mb-2":o.itemType==="default"}),type:a.value},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"date",{value:n.value},()=>[r.createElementVNode("time",null,r.toDisplayString(n.value)+" uur",1)])]),_:3},8,["class","type"]),r.createElementVNode("h3",{class:r.normalizeClass([{domClassesPerType:a.value},"font-semibold"]),"data-test-timeline-title":""},[r.renderSlot(o.$slots,"title",{value:o.item.title},()=>[r.createElementVNode("span",{class:r.normalizeClass(r.unref(_O)[a.value])},r.toDisplayString(o.item.title),3)])],2)],2),r.createElementVNode("p",{class:r.normalizeClass([{"mt-4":o.itemType==="inline"},"text-base empty:mt-0"]),"data-test-timeline-description":""},[r.renderSlot(o.$slots,"default",{value:o.item.description},()=>[r.createTextVNode(r.toDisplayString(o.item.description),1)])],2)])],2))}}),xO={class:"space-y-4"},EO=r.defineComponent({__name:"AppTimeline",props:{items:{},type:{default:"default"}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",xO,[r.renderSlot(t.$slots,"default",{},()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.items,a=>(r.openBlock(),r.createBlock(pb,{key:a.title,item:a,"item-type":t.type},null,8,["item","item-type"]))),128))])]))}}),TO={},PO={class:"flow-root"},AO={class:"overflow-x-auto"},IO={class:"inline-block min-w-full"},MO={class:"overflow-hidden"},NO={class:"w-full"};function OO(e,t){return r.openBlock(),r.createElementBlock("div",PO,[r.createElementVNode("div",AO,[r.createElementVNode("div",IO,[r.createElementVNode("div",MO,[r.createElementVNode("table",NO,[r.renderSlot(e.$slots,"default",{},void 0,!0)])])])])])}const BO=Dn(TO,[["render",OO],["__scopeId","data-v-1edf1593"]]);var LO=Object.defineProperty,DO=Object.defineProperties,RO=Object.getOwnPropertyDescriptors,f0=Object.getOwnPropertySymbols,$O=Object.prototype.hasOwnProperty,zO=Object.prototype.propertyIsEnumerable,p0=(e,t,n)=>t in e?LO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wr=(e,t)=>{for(var n in t||(t={}))$O.call(t,n)&&p0(e,n,t[n]);if(f0)for(var n of f0(t))zO.call(t,n)&&p0(e,n,t[n]);return e},ql=(e,t)=>DO(e,RO(t)),Da=(e,t)=>{const n=e.__vccOpts||e;for(const[a,o]of t)n[a]=o;return n};const VO=e=>(r.pushScopeId("data-v-e0a0b7f0"),e=e(),r.popScopeId(),e),FO=["onClick"],jO=["checked"],HO=VO(()=>r.createElementVNode("label",{for:"checbox"},null,-1)),UO=r.defineComponent({__name:"MultipleSelectCheckBox",props:{status:{type:String,required:!0}},emits:["change"],setup(e,{emit:t}){const n=e;r.useCssVars(s=>({"51ab8a49":r.unref(i)}));const a=r.computed(()=>n.status==="allSelected"),o=()=>{t("change",!a.value)},i=r.inject("themeColor");return(s,l)=>(r.openBlock(),r.createElementBlock("div",{class:"easy-checkbox",onClick:r.withModifiers(o,["stop","prevent"])},[r.createElementVNode("input",{type:"checkbox",checked:r.unref(a),class:r.normalizeClass(e.status)},null,10,jO),HO],8,FO))}});var WO=Da(UO,[["__scopeId","data-v-e0a0b7f0"]]);const qO=e=>(r.pushScopeId("data-v-7e69a276"),e=e(),r.popScopeId(),e),YO=["checked"],GO=qO(()=>r.createElementVNode("label",{for:"checbox"},null,-1)),KO=r.defineComponent({__name:"SingleSelectCheckBox",props:{checked:{type:Boolean,required:!0}},emits:["change"],setup(e,{emit:t}){r.useCssVars(a=>({fdaf7e9e:r.unref(n)}));const n=r.inject("themeColor");return(a,o)=>(r.openBlock(),r.createElementBlock("div",{class:"easy-checkbox",onClick:o[0]||(o[0]=r.withModifiers(i=>t("change"),["stop","prevent"]))},[r.createElementVNode("input",{type:"checkbox",checked:e.checked},null,8,YO),GO]))}});var XO=Da(KO,[["__scopeId","data-v-7e69a276"]]);const JO=e=>(r.pushScopeId("data-v-4ca5de3a"),e=e(),r.popScopeId(),e),QO={class:"easy-data-table__rows-selector"},ZO={class:"rows-input"},eB=JO(()=>r.createElementVNode("div",{class:"triangle"},null,-1)),tB=["onClick"],nB=r.defineComponent({__name:"RowsSelector",props:{modelValue:{type:Number,required:!0},rowsItems:{type:Array,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;r.useCssVars(f=>({"1b889342":r.unref(d)}));const a=r.ref(!1),o=r.ref(!1),i=r.inject("dataTable");r.watch(a,f=>{if(f&&i){const p=window.innerHeight,m=i.value.getBoundingClientRect().height,g=i.value.getBoundingClientRect().top;p-(m+g)<=100?o.value=!0:o.value=!1}});const s=r.computed({get:()=>n.modelValue,set:f=>{t("update:modelValue",f)}}),l=f=>{s.value=f,a.value=!1},c=(f,p)=>{let m=f.parentNode;for(;m!=null;){if(m.classList&&m.classList.contains(p))return!0;m=m.parentNode}return!1},u=f=>{c(f.target,"easy-data-table__rows-selector")||(a.value=!1)};r.onMounted(()=>{document.addEventListener("click",u)}),r.onBeforeUnmount(()=>{document.removeEventListener("click",u)});const d=r.inject("themeColor");return(f,p)=>(r.openBlock(),r.createElementBlock("div",QO,[r.createElementVNode("div",{class:"rows-input__wrapper",onClick:p[0]||(p[0]=m=>a.value=!a.value)},[r.createElementVNode("div",ZO,r.toDisplayString(r.unref(s)),1),eB]),r.createElementVNode("ul",{class:r.normalizeClass(["select-items",{show:a.value,inside:o.value}])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rowsItems,m=>(r.openBlock(),r.createElementBlock("li",{key:m,class:r.normalizeClass({selected:m===r.unref(s)}),onClick:g=>l(m)},r.toDisplayString(m),11,tB))),128))],2)]))}});var rB=Da(nB,[["__scopeId","data-v-4ca5de3a"]]);const lu=e=>(r.pushScopeId("data-v-1fa3a520"),e=e(),r.popScopeId(),e),aB={class:"lds-ring"},oB=lu(()=>r.createElementVNode("div",null,null,-1)),iB=lu(()=>r.createElementVNode("div",null,null,-1)),sB=lu(()=>r.createElementVNode("div",null,null,-1)),lB=lu(()=>r.createElementVNode("div",null,null,-1)),cB=[oB,iB,sB,lB],uB=r.defineComponent({__name:"Loading",setup(e){r.useCssVars(n=>({26774109:r.unref(t)}));const t=r.inject("themeColor");return(n,a)=>(r.openBlock(),r.createElementBlock("div",aB,cB))}});var dB=Da(uB,[["__scopeId","data-v-1fa3a520"]]);const fB={class:"loader-line"},pB=r.defineComponent({__name:"LoadingLine",setup(e){r.useCssVars(n=>({"0d327f57":r.unref(t)}));const t=r.inject("themeColor");return(n,a)=>(r.openBlock(),r.createElementBlock("div",fB))}});var mB=Da(pB,[["__scopeId","data-v-7d281cac"]]);const hB={class:"buttons-pagination"},vB=["onClick"],gB=r.defineComponent({__name:"ButtonsPagination",props:{maxPaginationNumber:{type:Number,required:!0},currentPaginationNumber:{type:Number,required:!0}},emits:["updatePage"],setup(e,{emit:t}){const n=e;r.useCssVars(l=>({"40dd4f07":r.unref(s)}));const a=7,o=l=>{l.type==="button"&&!l.active&&t("updatePage",l.page)},i=r.computed(()=>{const l=[];if(n.maxPaginationNumber<=a)for(let c=1;c<=n.maxPaginationNumber;c+=1)l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else if([1,2,n.maxPaginationNumber,n.maxPaginationNumber-1].includes(n.currentPaginationNumber))for(let c=1;c<=a;c+=1)if(c<=3)l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else if(c===4)l.push({type:"omission"});else{const u=n.maxPaginationNumber-(a-c);l.push({type:"button",page:u,active:u===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber})}else if([3,4].includes(n.currentPaginationNumber))for(let c=1;c<=a;c+=1)c<=5?l.push({type:"button",page:c,active:c===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber}):c===6?l.push({type:"omission"}):l.push({type:"button",page:n.maxPaginationNumber,active:n.maxPaginationNumber===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else if([n.maxPaginationNumber-2,n.maxPaginationNumber-3].includes(n.currentPaginationNumber))for(let c=1;c<=a;c+=1)if(c===1)l.push({type:"button",page:1,active:n.currentPaginationNumber===1,activePrev:c+1===n.currentPaginationNumber});else if(c===2)l.push({type:"omission"});else{const u=n.maxPaginationNumber-(a-c);l.push({type:"button",page:u,active:u===n.currentPaginationNumber,activePrev:u+1===n.currentPaginationNumber})}else for(let c=1;c<=a;c+=1)if(c===1)l.push({type:"button",page:1,active:n.currentPaginationNumber===1,activePrev:c+1===n.currentPaginationNumber});else if(c===2||c===6)l.push({type:"omission"});else if(c===7)l.push({type:"button",page:n.maxPaginationNumber,active:n.maxPaginationNumber===n.currentPaginationNumber,activePrev:c+1===n.currentPaginationNumber});else{const u=4-c,d=n.currentPaginationNumber-u;l.push({type:"button",page:d,active:d===n.currentPaginationNumber,activePrev:d+1===n.currentPaginationNumber})}return l}),s=r.inject("themeColor");return(l,c)=>(r.openBlock(),r.createElementBlock("div",hB,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i),(u,d)=>(r.openBlock(),r.createElementBlock("div",{key:d,class:r.normalizeClass(["item",{button:u.type==="button",active:u.type==="button"&&u.active,"active-prev":u.type==="button"&&u.activePrev,omission:u.type==="omission"}]),onClick:f=>o(u)},r.toDisplayString(u.type==="button"?u.page:"..."),11,vB))),128))]))}});var yB=Da(gB,[["__scopeId","data-v-4c681fa2"]]);const mb=e=>(r.pushScopeId("data-v-c9da5286"),e=e(),r.popScopeId(),e),bB=mb(()=>r.createElementVNode("span",{class:"arrow arrow-right"},null,-1)),wB=[bB],kB=mb(()=>r.createElementVNode("span",{class:"arrow arrow-left"},null,-1)),_B=[kB],SB=r.defineComponent({__name:"PaginationArrows",props:{isFirstPage:{type:Boolean,required:!1},isLastPage:{type:Boolean,required:!1}},emits:["clickPrevPage","clickNextPage"],setup(e,{emit:t}){const n=r.useSlots();return(a,o)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",{class:r.normalizeClass(["previous-page__click-button",{"first-page":e.isFirstPage}]),onClick:o[0]||(o[0]=i=>t("clickPrevPage"))},wB,2),r.unref(n).buttonsPagination?r.renderSlot(a.$slots,"buttonsPagination",{key:0},void 0,!0):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["next-page__click-button",{"last-page":e.isLastPage}]),onClick:o[1]||(o[1]=i=>t("clickNextPage"))},_B,2)],64))}});var CB=Da(SB,[["__scopeId","data-v-c9da5286"]]);function xB(e,t,n,a){return{clickRow:(i,s,l)=>{if(e.value!==s)return;const c=wr({},i);if(t.value){const{checkbox:u}=i;delete c.checkbox,c.isSelected=u}if(n.value){const{index:u}=i;delete c.index,c.indexInCurrentPage=u}a("clickRow",c,l)}}}function EB(e,t,n){const a=r.ref([]);return{expandingItemIndexList:a,updateExpandingItemIndexList:(s,l,c)=>{c.stopPropagation();const u=a.value.indexOf(s);if(u!==-1)a.value.splice(u,1);else{const d=e.value.findIndex(f=>JSON.stringify(f)===JSON.stringify(l));n("expandRow",t.value+d,l),a.value.push(t.value+d)}},clearExpandingItemIndexList:()=>{a.value=[]}}}function TB(e){const t=r.computed(()=>e.value.filter(o=>o.fixed)),n=r.computed(()=>t.value.length?t.value[t.value.length-1].value:""),a=r.computed(()=>{if(!t.value.length)return[];const o=t.value.map(i=>{var s;return(s=i.width)!=null?s:100});return t.value.map((i,s)=>{var l,c;return{value:i.value,fixed:(l=i.fixed)!=null?l:!0,width:(c=i.width)!=null?c:100,distance:s===0?0:o.reduce((u,d,f)=>{let p=u;return f<s&&(p+=d),p})}})});return{fixedHeaders:t,lastFixedColumn:n,fixedColumnsInfos:a}}function PB(e,t,n,a,o,i,s,l,c,u,d,f,p,m,g,y,w,b,E){const _=r.computed(()=>s.value.findIndex(R=>R.fixed)!==-1),v=r.computed(()=>_.value?s.value.filter(R=>R.fixed):[]),x=r.computed(()=>s.value.filter(R=>!R.fixed)),C=(R,I)=>Array.isArray(R)&&Array.isArray(I)?{sortBy:R,sortDesc:I.map(B=>B==="desc")}:R!==""?{sortBy:g.value,sortDesc:y.value==="desc"}:null,P=r.ref(C(g.value,y.value)),O=r.computed(()=>{var R;const B=[...v.value,...x.value].map(V=>{const Z=Object.assign(V);if(Z.sortable&&(Z.sortType="none"),p.value)if(Array.isArray(p.value.sortBy)&&Array.isArray(p.value.sortType)&&p.value.sortBy.includes(Z.value)){const q=p.value.sortBy.indexOf(Z.value);Z.sortType=p.value.sortType[q]}else Z.value===p.value.sortBy&&p.value.sortType&&(Z.sortType=p.value.sortType);if(P.value&&Array.isArray(P.value.sortBy)&&Array.isArray(P.value.sortDesc)&&P.value.sortBy.includes(Z.value)){const q=P.value.sortBy.indexOf(Z.value);Z.sortType=P.value.sortDesc[q]?"desc":"asc"}else P.value&&Z.value===P.value.sortBy&&(Z.sortType=P.value.sortDesc?"desc":"asc");return Z});let M=[];l.value?M=[o.value||_.value?{text:"",value:"expand",fixed:!0,width:n.value}:{text:"",value:"expand"},...B]:M=B;let $=[];m.value?$=[i.value||_.value?{text:e.value,value:"index",fixed:!0,width:c.value}:{text:e.value,value:"index"},...M]:$=M;let K=[];return u.value?K=[a.value||_.value?{text:"checkbox",value:"checkbox",fixed:!0,width:(R=t.value)!=null?R:36}:{text:"checkbox",value:"checkbox"},...$]:K=$,K}),A=r.computed(()=>O.value.map(R=>R.value));return{clientSortOptions:P,headerColumns:A,headersForRender:O,updateSortField:(R,I)=>{let B=null;if(I==="none"?B="asc":I==="asc"?B="desc":B=f.value?"asc":null,d.value&&b(R,B),P.value&&Array.isArray(P.value.sortBy)&&Array.isArray(P.value.sortDesc)){const M=P.value.sortBy.indexOf(R);M===-1?B!==null&&(P.value.sortBy.push(R),P.value.sortDesc.push(B==="desc")):B===null?(P.value.sortDesc.splice(M,1),P.value.sortBy.splice(M,1)):P.value.sortDesc[M]=B==="desc"}else B===null?P.value=null:P.value={sortBy:R,sortDesc:B==="desc"};E("updateSort",{sortType:B,sortBy:R})},isMultiSorting:R=>p.value&&Array.isArray(p.value.sortBy)?p.value.sortBy.includes(R):P.value&&Array.isArray(P.value.sortBy)?P.value.sortBy.includes(R):!1,getMultiSortNumber:R=>p.value&&Array.isArray(p.value.sortBy)?p.value.sortBy.indexOf(R)+1:P.value&&Array.isArray(P.value.sortBy)?P.value.sortBy.indexOf(R)+1:!1}}function AB(e,t,n,a,o,i,s,l,c){const u=r.computed(()=>(e.value-1)*o.value+1),d=r.computed(()=>n.value?Math.min(c.value,e.value*o.value):Math.min(l.value.length,e.value*o.value)),f=r.computed(()=>n.value?a.value:l.value.slice(u.value-1,d.value)),p=r.computed(()=>s.value?f.value.map((y,w)=>wr({index:u.value+w},y)):f.value),m=r.computed(()=>i.value.length===0||i.value.every(w=>l.value.findIndex(b=>JSON.stringify(w)===JSON.stringify(b))===-1)?"noneSelected":i.value.length===l.value.length&&i.value.every(b=>l.value.findIndex(E=>JSON.stringify(b)===JSON.stringify(E))!==-1)?"allSelected":"partSelected"),g=r.computed(()=>t.value?m.value==="allSelected"?p.value.map(y=>wr({checkbox:!0},y)):m.value==="noneSelected"?p.value.map(y=>wr({checkbox:!1},y)):p.value.map(y=>{const w=i.value.findIndex(b=>{const E=wr({},y);return delete E.index,JSON.stringify(b)===JSON.stringify(E)})!==-1;return wr({checkbox:w},y)}):p.value);return{currentPageFirstIndex:u,currentPageLastIndex:d,multipleSelectStatus:m,pageItems:g}}function IB(e,t,n,a,o,i,s){const l=r.ref(i.value?i.value.page:e.value),c=r.computed(()=>Math.ceil(a.value/o.value)),u=r.computed(()=>c.value===0||l.value===c.value),d=r.computed(()=>l.value===1);return{currentPaginationNumber:l,maxPaginationNumber:c,isLastPage:u,isFirstPage:d,nextPage:()=>{if(a.value!==0&&!u.value&&!n.value)if(t.value){const y=l.value+1;s(y)}else l.value+=1},prevPage:()=>{if(a.value!==0&&!d.value&&!n.value)if(t.value){const y=l.value-1;s(y)}else l.value-=1},updatePage:y=>{n.value||(t.value?s(y):l.value=y)},updateCurrentPaginationNumber:y=>{l.value=y}}}function MB(e,t,n,a){const o=r.computed(()=>!e.value&&t.value.findIndex(l=>l===a.value)===-1?[a.value,...t.value]:t.value),i=r.ref(n.value?n.value.rowsPerPage:a.value);return{rowsItemsComputed:o,rowsPerPageRef:i,updateRowsPerPage:l=>{i.value=l}}}function NB(e,t,n){const a=r.computed({get:()=>{if(e.value){const{page:l,rowsPerPage:c,sortBy:u,sortType:d}=e.value;return{page:l,rowsPerPage:c,sortBy:u??null,sortType:d??null}}return null},set:l=>{n("update:serverOptions",l)}});return{serverOptionsComputed:a,updateServerOptionsPage:l=>{a.value&&(a.value=ql(wr({},a.value),{page:l}))},updateServerOptionsSort:(l,c)=>{if(a.value)if(t.value&&Array.isArray(a.value.sortBy)&&Array.isArray(a.value.sortType)){const u=a.value.sortBy.findIndex(d=>d===l);u===-1&&c!==null&&(a.value.sortBy.push(l),a.value.sortType.push(c)),c===null?(a.value.sortBy.splice(u,1),a.value.sortType.splice(u,1)):a.value.sortType[u]=c}else a.value=ql(wr({},a.value),{sortBy:c!==null?l:null,sortType:c})},updateServerOptionsRowsPerPage:l=>{a.value&&(a.value=ql(wr({},a.value),{page:1,rowsPerPage:l}))}}}function dn(e,t){var n;if(e.includes(".")){const a=e.split("."),{length:o}=a;let i,s=0;for(;s<o;){if(s===0)i=t[a[0]];else if(i&&typeof i=="object")i=i[a[s]];else{i="";break}s+=1}return i??""}return(n=t[e])!=null?n:""}function OB(e,t){const n=dn(e,t);return Array.isArray(n)?n.join(","):n}function BB(e,t,n,a,o,i,s,l,c,u){const d=_=>{if(typeof i.value=="string"&&i.value!=="")return dn(i.value,_);if(Array.isArray(i.value)){let v="";return i.value.forEach(x=>{v+=dn(x,_)}),v}return Object.values(_).join(" ")},f=r.computed(()=>{if(!n.value&&s.value!==""){const _=new RegExp(s.value,"i");return a.value.filter(v=>_.test(d(v)))}return a.value}),p=r.computed(()=>{let _=[...f.value];return t.value?(t.value.forEach(v=>{_=_.filter(x=>{const{field:C,comparison:P,criteria:O}=v;if(typeof P=="function")return P(dn(C,x),O);const A=dn(C,x);switch(P){case"=":return A===O;case"!=":return A!==O;case">":return A>O;case"<":return A<O;case"<=":return A<=O;case">=":return A>=O;case"between":return A>=Math.min(...O)&&A<=Math.max(...O);case"in":return O.includes(A);default:return A===O}})}),_):f.value});r.watch(p,_=>{t.value&&u("updateFilter",_)},{immediate:!0,deep:!0});function m(_,v,x,C){const P=_[C],O=v[C];return(C===0?x:m(_,v,x,C-1)).sort((L,U)=>{let z=!0;for(let R=0;R<C;R+=1)if(dn(_[R],L)!==dn(_[R],U)){z=!1;break}return z?dn(P,L)<dn(P,U)?O?1:-1:dn(P,L)>dn(P,U)?O?-1:1:0:0})}const g=r.computed(()=>{if(n.value)return a.value;if(e.value===null)return p.value;const{sortBy:_,sortDesc:v}=e.value,x=[...p.value];return c&&Array.isArray(_)&&Array.isArray(v)?_.length===0?x:m(_,v,x,_.length-1):x.sort((C,P)=>dn(_,C)<dn(_,P)?v?1:-1:dn(_,C)>dn(_,P)?v?-1:1:0)}),y=r.computed(()=>n.value?l.value:g.value.length),w=r.computed({get:()=>{var _;return(_=o.value)!=null?_:[]},set:_=>{u("update:itemsSelected",_)}});return{totalItems:g,selectItemsComputed:w,totalItemsLength:y,toggleSelectAll:_=>{w.value=_?g.value:[],_&&u("selectAll")},toggleSelectItem:_=>{const v=_.checkbox;if(delete _.checkbox,delete _.index,v)w.value=w.value.filter(x=>JSON.stringify(x)!==JSON.stringify(_)),u("deselectRow",_);else{const x=w.value;x.unshift(_),w.value=x,u("selectRow",_)}}}}var LB={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 DB=e=>(r.pushScopeId("data-v-32683533"),e=e(),r.popScopeId(),e),RB=["id"],$B=["onClick"],zB={key:3,class:"header-text"},VB={key:5,class:"multi-sort__number"},FB=["onClick","onDblclick","onContextmenu"],jB=["onClick"],HB=["colspan"],UB={key:0,class:"vue3-easy-data-table__loading"},WB=DB(()=>r.createElementVNode("div",{class:"vue3-easy-data-table__loading-mask"},null,-1)),qB={class:"loading-entity"},YB={key:1,class:"vue3-easy-data-table__message"},GB={key:0,class:"vue3-easy-data-table__footer"},KB={key:0,class:"pagination__rows-per-page"},XB={class:"pagination__items-index"},JB=r.defineComponent({__name:"DataTable",props:ql(wr({},LB),{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 a=e;r.useCssVars(Pe=>({da0d4328:r.unref(j),"3037e504":r.unref(oe)}));const{tableNodeId:o,clickEventType:i,bodyTextDirection:s,checkboxColumnWidth:l,currentPage:c,expandColumnWidth:u,filterOptions:d,fixedCheckbox:f,fixedExpand:p,fixedHeader:m,fixedIndex:g,headers:y,headerTextDirection:w,indexColumnWidth:b,items:E,itemsSelected:_,loading:v,mustSort:x,multiSort:C,rowsItems:P,rowsPerPage:O,searchField:A,searchValue:L,serverItemsLength:U,serverOptions:z,showIndex:R,sortBy:I,sortType:B,tableHeight:M,tableMinHeight:$,themeColor:K,rowsOfPageSeparatorMessage:V,showIndexSymbol:Z,preventContextMenuRow:q}=r.toRefs(a),oe=r.computed(()=>M.value?`${M.value}px`:null),j=r.computed(()=>`${$.value}px`);r.provide("themeColor",K.value);const W=r.useSlots(),Y=r.computed(()=>!!W.pagination),H=r.computed(()=>!!W.loading),T=r.computed(()=>!!W.expand),J=r.computed(()=>!!W.body),le=r.ref(),Oe=r.ref();r.provide("dataTable",le);const ee=r.ref(!1);r.onMounted(()=>{Oe.value.addEventListener("scroll",()=>{ee.value=Oe.value.scrollLeft>0})});const Te=r.computed(()=>_.value!==null),ae=r.computed(()=>z.value!==null),{serverOptionsComputed:ue,updateServerOptionsPage:D,updateServerOptionsSort:de,updateServerOptionsRowsPerPage:fe}=NB(z,C,n),{clientSortOptions:ce,headerColumns:Ae,headersForRender:pe,updateSortField:Ie,isMultiSorting:xe,getMultiSortNumber:X}=PB(Z,l,u,f,p,g,y,T,b,Te,ae,x,ue,R,I,B,C,de,n),{rowsItemsComputed:re,rowsPerPageRef:ye,updateRowsPerPage:Ze}=MB(ae,P,z,O),{totalItems:ct,selectItemsComputed:Se,totalItemsLength:ut,toggleSelectAll:$t,toggleSelectItem:xn}=BB(ce,d,ae,E,_,A,L,U,C,n),{currentPaginationNumber:zt,maxPaginationNumber:Kt,isLastPage:te,isFirstPage:_e,nextPage:Ee,prevPage:He,updatePage:G,updateCurrentPaginationNumber:se}=IB(c,ae,v,ut,ye,z,D),{currentPageFirstIndex:be,currentPageLastIndex:Re,multipleSelectStatus:ne,pageItems:he}=AB(zt,Te,ae,E,ye,Se,R,ct,ut),Ce=r.computed(()=>zt.value===0?0:(zt.value-1)*ye.value),{expandingItemIndexList:st,updateExpandingItemIndexList:vt,clearExpandingItemIndexList:Ut}=EB(he,Ce,n),{fixedHeaders:Vt,lastFixedColumn:nn,fixedColumnsInfos:za}=TB(pe),{clickRow:Wn}=xB(i,Te,R,n),Vi=(Pe,rn)=>{q.value&&rn.preventDefault(),n("contextmenuRow",Pe,rn)},Ao=Pe=>{var rn;const Me=(rn=Pe.width)!=null?rn:Vt.value.length?100:null;if(Me)return`width: ${Me}px; min-width: ${Me}px;`},Io=(Pe,rn="th")=>{if(!Vt.value.length)return;const Me=za.value.find(Ot=>Ot.value===Pe);if(Me)return`left: ${Me.distance}px;z-index: ${rn==="th"?3:1};position: sticky;`};return r.watch(v,(Pe,rn)=>{ue.value&&Pe===!1&&rn===!0&&(se(ue.value.page),Ut())}),r.watch(ye,Pe=>{ae.value?fe(Pe):G(1)}),r.watch([L,d],()=>{ae.value||G(1)}),r.watch([zt,ce,A,L,d],()=>{Ut()},{deep:!0}),r.watch(he,Pe=>{n("updatePageItems",Pe)},{deep:!0}),r.watch(ct,Pe=>{n("updateTotalItems",Pe)},{deep:!0}),t({currentPageFirstIndex:be,currentPageLastIndex:Re,clientItemsLength:ut,maxPaginationNumber:Kt,currentPaginationNumber:zt,isLastPage:te,isFirstPage:_e,nextPage:Ee,prevPage:He,updatePage:G,rowsPerPageOptions:re,rowsPerPageActiveOption:ye,updateRowsPerPageActiveOption:Ze}),(Pe,rn)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"dataTable",ref:le,class:r.normalizeClass(["vue3-easy-data-table",[Pe.tableClassName]])},[r.createElementVNode("div",{ref_key:"tableBody",ref:Oe,class:r.normalizeClass(["vue3-easy-data-table__main",{"fixed-header":r.unref(m),"fixed-height":r.unref(M),"show-shadow":ee.value,"table-fixed":r.unref(Vt).length,hoverable:!Pe.noHover,"border-cell":Pe.borderCell}])},[r.createElementVNode("table",{id:r.unref(o)},[r.createElementVNode("colgroup",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(pe),(Me,Ot)=>(r.openBlock(),r.createElementBlock("col",{key:Ot,style:r.normalizeStyle(Ao(Me))},null,4))),128))]),r.unref(W)["customize-headers"]?r.renderSlot(Pe.$slots,"customize-headers",{key:0},void 0,!0):r.unref(pe).length&&!Pe.hideHeader?(r.openBlock(),r.createElementBlock("thead",{key:1,class:r.normalizeClass(["vue3-easy-data-table__header",[Pe.headerClassName]])},[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(pe),(Me,Ot)=>(r.openBlock(),r.createElementBlock("th",{key:Ot,class:r.normalizeClass([{sortable:Me.sortable,none:Me.sortable&&Me.sortType==="none",desc:Me.sortable&&Me.sortType==="desc",asc:Me.sortable&&Me.sortType==="asc",shadow:Me.value===r.unref(nn)},typeof Pe.headerItemClassName=="string"?Pe.headerItemClassName:Pe.headerItemClassName(Me,Ot+1)]),style:r.normalizeStyle(Io(Me.value)),onClick:r.withModifiers(gt=>Me.sortable&&Me.sortType?r.unref(Ie)(Me.value,Me.sortType):null,["stop"])},[Me.text==="checkbox"?(r.openBlock(),r.createBlock(WO,{key:r.unref(ne),status:r.unref(ne),onChange:r.unref($t)},null,8,["status","onChange"])):(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["header",`direction-${r.unref(w)}`])},[r.unref(W)[`header-${Me.value}`]?r.renderSlot(Pe.$slots,`header-${Me.value}`,r.normalizeProps(r.mergeProps({key:0},Me)),void 0,!0):r.unref(W)[`header-${Me.value.toLowerCase()}`]?r.renderSlot(Pe.$slots,`header-${Me.value.toLowerCase()}`,r.normalizeProps(r.mergeProps({key:1},Me)),void 0,!0):r.unref(W).header?r.renderSlot(Pe.$slots,"header",r.normalizeProps(r.mergeProps({key:2},Me)),void 0,!0):(r.openBlock(),r.createElementBlock("span",zB,r.toDisplayString(Me.text),1)),Me.sortable?(r.openBlock(),r.createElementBlock("i",{key:Me.sortType?Me.sortType:"none",class:r.normalizeClass(["sortType-icon",{desc:Me.sortType==="desc"}])},null,2)):r.createCommentVNode("",!0),r.unref(C)&&r.unref(xe)(Me.value)?(r.openBlock(),r.createElementBlock("span",VB,r.toDisplayString(r.unref(X)(Me.value)),1)):r.createCommentVNode("",!0)],2))],14,$B))),128))])],2)):r.createCommentVNode("",!0),r.unref(J)?r.renderSlot(Pe.$slots,"body",r.normalizeProps(r.mergeProps({key:2},r.unref(he))),void 0,!0):r.unref(Ae).length?(r.openBlock(),r.createElementBlock("tbody",{key:3,class:r.normalizeClass(["vue3-easy-data-table__body",{"row-alternation":Pe.alternating}])},[r.renderSlot(Pe.$slots,"body-prepend",r.normalizeProps(r.guardReactiveProps({items:r.unref(he),pagination:{isFirstPage:r.unref(_e),isLastPage:r.unref(te),currentPaginationNumber:r.unref(zt),maxPaginationNumber:r.unref(Kt),nextPage:r.unref(Ee),prevPage:r.unref(He)},headers:r.unref(pe)})),void 0,!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(he),(Me,Ot)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:Ot},[r.createElementVNode("tr",{class:r.normalizeClass([{"even-row":(Ot+1)%2===0},typeof Pe.bodyRowClassName=="string"?Pe.bodyRowClassName:Pe.bodyRowClassName(Me,Ot+1)]),onClick:gt=>{r.unref(Wn)(Me,"single",gt),Pe.clickRowToExpand&&r.unref(vt)(Ot+r.unref(Ce),Me,gt)},onDblclick:gt=>{r.unref(Wn)(Me,"double",gt)},onContextmenu:gt=>{Vi(Me,gt)}},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Ae),(gt,sa)=>(r.openBlock(),r.createElementBlock("td",{key:sa,style:r.normalizeStyle(Io(gt,"td")),class:r.normalizeClass([{shadow:gt===r.unref(nn),"can-expand":gt==="expand"},typeof Pe.bodyItemClassName=="string"?Pe.bodyItemClassName:Pe.bodyItemClassName(gt,Ot+1),`direction-${r.unref(s)}`]),onClick:vn=>gt==="expand"?r.unref(vt)(Ot+r.unref(Ce),Me,vn):null},[r.unref(W)[`item-${gt}`]?r.renderSlot(Pe.$slots,`item-${gt}`,r.normalizeProps(r.mergeProps({key:0},Me)),void 0,!0):r.unref(W)[`item-${gt.toLowerCase()}`]?r.renderSlot(Pe.$slots,`item-${gt.toLowerCase()}`,r.normalizeProps(r.mergeProps({key:1},Me)),void 0,!0):gt==="expand"?(r.openBlock(),r.createElementBlock("i",{key:2,class:r.normalizeClass(["expand-icon",{expanding:r.unref(st).includes(r.unref(Ce)+Ot)}])},null,2)):gt==="checkbox"?(r.openBlock(),r.createBlock(XO,{key:3,checked:Me[gt],onChange:vn=>r.unref(xn)(Me)},null,8,["checked","onChange"])):r.unref(W).item?r.renderSlot(Pe.$slots,"item",r.normalizeProps(r.mergeProps({key:4},{column:gt,item:Me})),void 0,!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:5},[r.createTextVNode(r.toDisplayString(r.unref(OB)(gt,Me)),1)],64))],14,jB))),128))],42,FB),r.unref(T)&&r.unref(st).includes(Ot+r.unref(Ce))?(r.openBlock(),r.createElementBlock("tr",{key:0,class:r.normalizeClass([{"even-row":(Ot+1)%2===0},typeof Pe.bodyExpandRowClassName=="string"?Pe.bodyExpandRowClassName:Pe.bodyExpandRowClassName(Me,Ot+1)])},[r.createElementVNode("td",{colspan:r.unref(pe).length,class:"expand"},[Me.expandLoading?(r.openBlock(),r.createBlock(mB,{key:0,class:"expand-loading"})):r.createCommentVNode("",!0),r.renderSlot(Pe.$slots,"expand",r.normalizeProps(r.guardReactiveProps(Me)),void 0,!0)],8,HB)],2)):r.createCommentVNode("",!0)],64))),128)),r.renderSlot(Pe.$slots,"body-append",r.normalizeProps(r.guardReactiveProps({items:r.unref(he),pagination:{isFirstPage:r.unref(_e),isLastPage:r.unref(te),currentPaginationNumber:r.unref(zt),maxPaginationNumber:r.unref(Kt),nextPage:r.unref(Ee),prevPage:r.unref(He),updatePage:r.unref(G)},headers:r.unref(pe)})),void 0,!0)],2)):r.createCommentVNode("",!0)],8,RB),r.unref(v)?(r.openBlock(),r.createElementBlock("div",UB,[WB,r.createElementVNode("div",qB,[r.unref(H)?r.renderSlot(Pe.$slots,"loading",{key:0},void 0,!0):(r.openBlock(),r.createBlock(dB,{key:1}))])])):r.createCommentVNode("",!0),!r.unref(he).length&&!r.unref(v)?(r.openBlock(),r.createElementBlock("div",YB,[r.renderSlot(Pe.$slots,"empty-message",{},()=>[r.createTextVNode(r.toDisplayString(Pe.emptyMessage),1)],!0)])):r.createCommentVNode("",!0)],2),Pe.hideFooter?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",GB,[Pe.hideRowsPerPage?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",KB,[r.createTextVNode(r.toDisplayString(Pe.rowsPerPageMessage)+" ",1),r.createVNode(rB,{modelValue:r.unref(ye),"onUpdate:modelValue":rn[0]||(rn[0]=Me=>r.isRef(ye)?ye.value=Me:null),"rows-items":r.unref(re)},null,8,["modelValue","rows-items"])])),r.createElementVNode("div",XB,r.toDisplayString(`${r.unref(be)}–${r.unref(Re)}`)+" "+r.toDisplayString(r.unref(V))+" "+r.toDisplayString(r.unref(ut)),1),r.unref(Y)?r.renderSlot(Pe.$slots,"pagination",r.normalizeProps(r.mergeProps({key:1},{isFirstPage:r.unref(_e),isLastPage:r.unref(te),currentPaginationNumber:r.unref(zt),maxPaginationNumber:r.unref(Kt),nextPage:r.unref(Ee),prevPage:r.unref(He)})),void 0,!0):(r.openBlock(),r.createBlock(CB,{key:2,"is-first-page":r.unref(_e),"is-last-page":r.unref(te),onClickNextPage:r.unref(Ee),onClickPrevPage:r.unref(He)},r.createSlots({_:2},[Pe.buttonsPagination?{name:"buttonsPagination",fn:r.withCtx(()=>[r.createVNode(yB,{"current-pagination-number":r.unref(zt),"max-pagination-number":r.unref(Kt),onUpdatePage:r.unref(G)},null,8,["current-pagination-number","max-pagination-number","onUpdatePage"])]),key:"0"}:void 0]),1032,["is-first-page","is-last-page","onClickNextPage","onClickPrevPage"]))]))],2))}});var hb=Da(JB,[["__scopeId","data-v-32683533"]]);typeof window<"u"&&window.Vue&&window.Vue.createApp({}).component("Vue3EasyDataTable",hb);const QB={class:"relative z-50 w-full rounded-2xl bg-white px-4 py-3 shadow-2xs"},ZB={class:"my-[3px] flex w-full flex-col justify-between space-y-2 md:flex-row"},eL={class:"items-center sm:flex","data-test-results":""},tL={key:0,class:"flex w-full items-center md:mr-4 md:space-x-2"},nL={class:"hidden whitespace-nowrap md:flex","data-test-results-count":""},rL=r.defineComponent({__name:"AppDataTableFooter",props:{dataTable:{},currentPage:{}},emits:["nextPage","previousPage","updatePage"],setup(e,{emit:t}){const n=e,a=t,o=r.computed(()=>n.dataTable),i=r.computed(()=>o.value?.clientItemsLength??0),s=r.computed(()=>o.value?.maxPaginationNumber),l=r.computed(()=>n.currentPage??o.value?.currentPaginationNumber);function c(){a("nextPage")}function u(){a("previousPage")}function d(p){a("updatePage",p)}function f(){a("updatePage",1)}return(p,m)=>(r.openBlock(),r.createElementBlock("div",QB,[r.createElementVNode("div",ZB,[r.createElementVNode("div",eL,[o.value?(r.openBlock(),r.createElementBlock("div",tL,[m[1]||(m[1]=r.createElementVNode("div",{class:"hidden md:block"}," Tonen ",-1)),r.createVNode(r.unref(iu),{modelValue:o.value.rowsPerPageActiveOption,"onUpdate:modelValue":m[0]||(m[0]=g=>o.value.rowsPerPageActiveOption=g),"can-clear":!1,"can-deselect":!1,options:o.value.rowsPerPageOptions,"additional-classes":{singleLabel:"p-3!",caret:"mr-2!"},"open-direction":"up","wrapper-classes":"w-full",class:"h-10 w-full md:w-20",onChange:f},null,8,["modelValue","options"])])):r.createCommentVNode("",!0),r.createElementVNode("div",nL,[r.renderSlot(p.$slots,"results",{results:i.value},()=>[r.createTextVNode(r.toDisplayString(i.value)+" results ",1)])])]),i.value>0?(r.openBlock(),r.createBlock(r.unref(Ib),{key:0,"current-page":l.value,"last-page":s.value,onPaginate:d,onNextPage:c,onPreviousPage:u},null,8,["current-page","last-page"])):r.createCommentVNode("",!0)])]))}}),aL={key:0,class:"w-full -mt-24 -translate-y-0.5"},oL=r.defineComponent({inheritAttrs:!1,__name:"AppDataTable",props:r.mergeModels({headers:{},items:{},modelValue:{},currentPage:{},rowItems:{default:()=>[20,50,100,200,500]},rowsPerPage:{default:50},actionBarSelection:{type:Boolean,default:!0},actionBarSelectionKey:{default:"id"},hideFooter:{type:Boolean,default:!1}},{sort:{},sortModifiers:{}}),emits:r.mergeModels(["update:modelValue","updatePage","clickItem","contextMenuOpen","clickContextItem","sortClient"],["update:sort"]),setup(e,{expose:t,emit:n}){const a=e,o=n,i=r.useSlots(),s=Mi(),l=fu(),c=r.useModel(e,"sort"),u=Zt.useKeyModifier("Alt"),d=r.ref(),f=r.ref(a?.modelValue??void 0),p=r.computed(()=>d.value);r.watch(()=>f.value,v=>{f.value&&a.actionBarSelection!==!1&&o("update:modelValue",[...v.map(x=>x?.[a.actionBarSelectionKey])])}),r.onMounted(()=>{a?.modelValue&&r.watch(a.modelValue,v=>{f.value=v})});function m(v){if(f.value&&s.setTableSelection(f.value),!v&&a.actionBarSelection){s.setSelection(f.value.map(x=>x?.[a.actionBarSelectionKey]));return}v&&a.actionBarSelection&&s.setSelection(v.map(x=>x?.[a.actionBarSelectionKey])),a.actionBarSelection===!1&&o("update:modelValue",[...v.map(x=>x?.[a.actionBarSelectionKey])])}function g(v){p.value?.updatePage(v),o("updatePage",v)}function y(){p.value?.prevPage(),o("updatePage",(p.value?.currentPaginationNumber??2)-1)}function w(){p.value?.nextPage(),o("updatePage",(p.value?.currentPaginationNumber??0)+1)}function b(v){if(u.value&&f.value!==void 0){const x=f.value.findIndex(C=>C.id===v.id);if(x>-1){f.value.splice(x,1),m();return}f.value.push({...v,isSelected:void 0}),m();return}o("clickItem",v)}function E(v){if(v.sortBy){c.value=`${v.sortType==="desc"?"-":""}${v.sortBy}`;return}c.value=void 0}function _(v){o("sortClient",v)}return t({dataTableInstance:p}),s.onResetSelection.value=v=>{a?.modelValue!==void 0&&(f.value=v)},(v,x)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"app-table-without-selection":a?.modelValue===void 0},"app-data-table-wrapper"])},[r.createVNode(r.unref(hb),r.mergeProps({ref_key:"dataTable",ref:d},{...v.$props,...v.$attrs},{"items-selected":f.value,"onUpdate:itemsSelected":[x[0]||(x[0]=C=>f.value=C),m],"hide-footer":!0,class:{"app-hide-footer":v.hideFooter},headers:v.headers,"checkbox-column-width":30,"rows-items":v.rowItems,"rows-per-page":v.rowsPerPage,"body-row-class-name":"drop-shadow-xs rounded-xl",onClickRow:b,onContextmenuRow:r.unref(l).open,"onUpdate:serverOptions":E,onUpdateSort:_}),r.createSlots({loading:r.withCtx(()=>[r.createVNode(r.unref(Na),{size:"medium"})]),_:2},[r.renderList(Object.keys(r.unref(i)),(C,P)=>({name:C,fn:r.withCtx(O=>[r.renderSlot(v.$slots,C,r.normalizeProps(r.guardReactiveProps(O)))])}))]),1040,["items-selected","class","headers","rows-items","rows-per-page","onContextmenuRow"]),p.value&&!v.hideFooter?(r.openBlock(),r.createElementBlock("div",aL,[r.createVNode(rL,{"data-table":p.value,"current-page":v.currentPage,onNextPage:w,onPreviousPage:y,onUpdatePage:g},{results:r.withCtx(({results:C})=>[r.renderSlot(v.$slots,"footer-results",{results:C})]),_:3},8,["data-table","current-page"])])):r.createCommentVNode("",!0)],2))}}),iL=(e,t,n)=>{const a=e[t];return a?typeof a=="function"?a():Promise.resolve(a):new Promise((o,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},Sa=Math.min,Tn=Math.max,hc=Math.round,wl=Math.floor,Pr=e=>({x:e,y:e}),sL={left:"right",right:"left",bottom:"top",top:"bottom"},lL={start:"end",end:"start"};function Ef(e,t,n){return Tn(e,Sa(t,n))}function Ca(e,t){return typeof e=="function"?e(t):e}function Jr(e){return e.split("-")[0]}function Ii(e){return e.split("-")[1]}function im(e){return e==="x"?"y":"x"}function sm(e){return e==="y"?"height":"width"}const cL=new Set(["top","bottom"]);function Sr(e){return cL.has(Jr(e))?"y":"x"}function lm(e){return im(Sr(e))}function uL(e,t,n){n===void 0&&(n=!1);const a=Ii(e),o=lm(e),i=sm(o);let s=o==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=vc(s)),[s,vc(s)]}function dL(e){const t=vc(e);return[Tf(e),t,Tf(t)]}function Tf(e){return e.replace(/start|end/g,t=>lL[t])}const m0=["left","right"],h0=["right","left"],fL=["top","bottom"],pL=["bottom","top"];function mL(e,t,n){switch(e){case"top":case"bottom":return n?t?h0:m0:t?m0:h0;case"left":case"right":return t?fL:pL;default:return[]}}function hL(e,t,n,a){const o=Ii(e);let i=mL(Jr(e),n==="start",a);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Tf)))),i}function vc(e){return e.replace(/left|right|bottom|top/g,t=>sL[t])}function vL(e){return{top:0,right:0,bottom:0,left:0,...e}}function vb(e){return typeof e!="number"?vL(e):{top:e,right:e,bottom:e,left:e}}function gc(e){const{x:t,y:n,width:a,height:o}=e;return{width:a,height:o,top:n,left:t,right:t+a,bottom:n+o,x:t,y:n}}function v0(e,t,n){let{reference:a,floating:o}=e;const i=Sr(t),s=lm(t),l=sm(s),c=Jr(t),u=i==="y",d=a.x+a.width/2-o.width/2,f=a.y+a.height/2-o.height/2,p=a[l]/2-o[l]/2;let m;switch(c){case"top":m={x:d,y:a.y-o.height};break;case"bottom":m={x:d,y:a.y+a.height};break;case"right":m={x:a.x+a.width,y:f};break;case"left":m={x:a.x-o.width,y:f};break;default:m={x:a.x,y:a.y}}switch(Ii(t)){case"start":m[s]-=p*(n&&u?-1:1);break;case"end":m[s]+=p*(n&&u?-1:1);break}return m}const gL=async(e,t,n)=>{const{placement:a="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=v0(u,a,c),p=a,m={},g=0;for(let y=0;y<l.length;y++){const{name:w,fn:b}=l[y],{x:E,y:_,data:v,reset:x}=await b({x:d,y:f,initialPlacement:a,placement:p,strategy:o,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});d=E??d,f=_??f,m={...m,[w]:{...m[w],...v}},x&&g<=50&&(g++,typeof x=="object"&&(x.placement&&(p=x.placement),x.rects&&(u=x.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:d,y:f}=v0(u,p,c)),y=-1)}return{x:d,y:f,placement:p,strategy:o,middlewareData:m}};async function cm(e,t){var n;t===void 0&&(t={});const{x:a,y:o,platform:i,rects:s,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=Ca(t,e),g=vb(m),w=l[p?f==="floating"?"reference":"floating":f],b=gc(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),E=f==="floating"?{x:a,y:o,width:s.floating.width,height:s.floating.height}:s.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),v=await(i.isElement==null?void 0:i.isElement(_))?await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1}:{x:1,y:1},x=gc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:E,offsetParent:_,strategy:c}):E);return{top:(b.top-x.top+g.top)/v.y,bottom:(x.bottom-b.bottom+g.bottom)/v.y,left:(b.left-x.left+g.left)/v.x,right:(x.right-b.right+g.right)/v.x}}const yL=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:o,rects:i,platform:s,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=Ca(e,t)||{};if(u==null)return{};const f=vb(d),p={x:n,y:a},m=lm(o),g=sm(m),y=await s.getDimensions(u),w=m==="y",b=w?"top":"left",E=w?"bottom":"right",_=w?"clientHeight":"clientWidth",v=i.reference[g]+i.reference[m]-p[m]-i.floating[g],x=p[m]-i.reference[m],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let P=C?C[_]:0;(!P||!await(s.isElement==null?void 0:s.isElement(C)))&&(P=l.floating[_]||i.floating[g]);const O=v/2-x/2,A=P/2-y[g]/2-1,L=Sa(f[b],A),U=Sa(f[E],A),z=L,R=P-y[g]-U,I=P/2-y[g]/2+O,B=Ef(z,I,R),M=!c.arrow&&Ii(o)!=null&&I!==B&&i.reference[g]/2-(I<z?L:U)-y[g]/2<0,$=M?I<z?I-z:I-R:0;return{[m]:p[m]+$,data:{[m]:B,centerOffset:I-B-$,...M&&{alignmentOffset:$}},reset:M}}}),bL=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...w}=Ca(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=Jr(o),E=Sr(l),_=Jr(l)===l,v=await(c.isRTL==null?void 0:c.isRTL(u.floating)),x=p||(_||!y?[vc(l)]:dL(l)),C=g!=="none";!p&&C&&x.push(...hL(l,y,g,v));const P=[l,...x],O=await cm(t,w),A=[];let L=((a=i.flip)==null?void 0:a.overflows)||[];if(d&&A.push(O[b]),f){const I=uL(o,s,v);A.push(O[I[0]],O[I[1]])}if(L=[...L,{placement:o,overflows:A}],!A.every(I=>I<=0)){var U,z;const I=(((U=i.flip)==null?void 0:U.index)||0)+1,B=P[I];if(B&&(!(f==="alignment"?E!==Sr(B):!1)||L.every(K=>Sr(K.placement)===E?K.overflows[0]>0:!0)))return{data:{index:I,overflows:L},reset:{placement:B}};let M=(z=L.filter($=>$.overflows[0]<=0).sort(($,K)=>$.overflows[1]-K.overflows[1])[0])==null?void 0:z.placement;if(!M)switch(m){case"bestFit":{var R;const $=(R=L.filter(K=>{if(C){const V=Sr(K.placement);return V===E||V==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(V=>V>0).reduce((V,Z)=>V+Z,0)]).sort((K,V)=>K[1]-V[1])[0])==null?void 0:R[0];$&&(M=$);break}case"initialPlacement":M=l;break}if(o!==M)return{reset:{placement:M}}}return{}}}},gb=new Set(["left","top"]);async function wL(e,t){const{placement:n,platform:a,elements:o}=e,i=await(a.isRTL==null?void 0:a.isRTL(o.floating)),s=Jr(n),l=Ii(n),c=Sr(n)==="y",u=gb.has(s)?-1:1,d=i&&c?-1:1,f=Ca(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof g=="number"&&(m=l==="end"?g*-1:g),c?{x:m*d,y:p*u}:{x:p*u,y:m*d}}const kL=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:o,y:i,placement:s,middlewareData:l}=t,c=await wL(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(a=l.arrow)!=null&&a.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},_L=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:b,y:E}=w;return{x:b,y:E}}},...c}=Ca(e,t),u={x:n,y:a},d=await cm(t,c),f=Sr(Jr(o)),p=im(f);let m=u[p],g=u[f];if(i){const w=p==="y"?"top":"left",b=p==="y"?"bottom":"right",E=m+d[w],_=m-d[b];m=Ef(E,m,_)}if(s){const w=f==="y"?"top":"left",b=f==="y"?"bottom":"right",E=g+d[w],_=g-d[b];g=Ef(E,g,_)}const y=l.fn({...t,[p]:m,[f]:g});return{...y,data:{x:y.x-n,y:y.y-a,enabled:{[p]:i,[f]:s}}}}}},SL=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:a,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=Ca(e,t),d={x:n,y:a},f=Sr(o),p=im(f);let m=d[p],g=d[f];const y=Ca(l,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const _=p==="y"?"height":"width",v=i.reference[p]-i.floating[_]+w.mainAxis,x=i.reference[p]+i.reference[_]-w.mainAxis;m<v?m=v:m>x&&(m=x)}if(u){var b,E;const _=p==="y"?"width":"height",v=gb.has(Jr(o)),x=i.reference[f]-i.floating[_]+(v&&((b=s.offset)==null?void 0:b[f])||0)+(v?0:w.crossAxis),C=i.reference[f]+i.reference[_]+(v?0:((E=s.offset)==null?void 0:E[f])||0)-(v?w.crossAxis:0);g<x?g=x:g>C&&(g=C)}return{[p]:m,[f]:g}}}},CL=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,a;const{placement:o,rects:i,platform:s,elements:l}=t,{apply:c=()=>{},...u}=Ca(e,t),d=await cm(t,u),f=Jr(o),p=Ii(o),m=Sr(o)==="y",{width:g,height:y}=i.floating;let w,b;f==="top"||f==="bottom"?(w=f,b=p===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(b=f,w=p==="end"?"top":"bottom");const E=y-d.top-d.bottom,_=g-d.left-d.right,v=Sa(y-d[w],E),x=Sa(g-d[b],_),C=!t.middlewareData.shift;let P=v,O=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=_),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(P=E),C&&!p){const L=Tn(d.left,0),U=Tn(d.right,0),z=Tn(d.top,0),R=Tn(d.bottom,0);m?O=g-2*(L!==0||U!==0?L+U:Tn(d.left,d.right)):P=y-2*(z!==0||R!==0?z+R:Tn(d.top,d.bottom))}await c({...t,availableWidth:O,availableHeight:P});const A=await s.getDimensions(l.floating);return g!==A.width||y!==A.height?{reset:{rects:!0}}:{}}}};function cu(){return typeof window<"u"}function So(e){return um(e)?(e.nodeName||"").toLowerCase():"#document"}function Mn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Lr(e){var t;return(t=(um(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function um(e){return cu()?e instanceof Node||e instanceof Mn(e).Node:!1}function sr(e){return cu()?e instanceof Element||e instanceof Mn(e).Element:!1}function Or(e){return cu()?e instanceof HTMLElement||e instanceof Mn(e).HTMLElement:!1}function g0(e){return!cu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Mn(e).ShadowRoot}const xL=new Set(["inline","contents"]);function js(e){const{overflow:t,overflowX:n,overflowY:a,display:o}=lr(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&!xL.has(o)}const EL=new Set(["table","td","th"]);function TL(e){return EL.has(So(e))}const PL=[":popover-open",":modal"];function uu(e){return PL.some(t=>{try{return e.matches(t)}catch{return!1}})}const AL=["transform","translate","scale","rotate","perspective"],IL=["transform","translate","scale","rotate","perspective","filter"],ML=["paint","layout","strict","content"];function dm(e){const t=fm(),n=sr(e)?lr(e):e;return AL.some(a=>n[a]?n[a]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||IL.some(a=>(n.willChange||"").includes(a))||ML.some(a=>(n.contain||"").includes(a))}function NL(e){let t=xa(e);for(;Or(t)&&!yi(t);){if(dm(t))return t;if(uu(t))return null;t=xa(t)}return null}function fm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const OL=new Set(["html","body","#document"]);function yi(e){return OL.has(So(e))}function lr(e){return Mn(e).getComputedStyle(e)}function du(e){return sr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xa(e){if(So(e)==="html")return e;const t=e.assignedSlot||e.parentNode||g0(e)&&e.host||Lr(e);return g0(t)?t.host:t}function yb(e){const t=xa(e);return yi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Or(t)&&js(t)?t:yb(t)}function Ss(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=yb(e),i=o===((a=e.ownerDocument)==null?void 0:a.body),s=Mn(o);if(i){const l=Pf(s);return t.concat(s,s.visualViewport||[],js(o)?o:[],l&&n?Ss(l):[])}return t.concat(o,Ss(o,[],n))}function Pf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bb(e){const t=lr(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const o=Or(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:a,l=hc(n)!==i||hc(a)!==s;return l&&(n=i,a=s),{width:n,height:a,$:l}}function pm(e){return sr(e)?e:e.contextElement}function Zo(e){const t=pm(e);if(!Or(t))return Pr(1);const n=t.getBoundingClientRect(),{width:a,height:o,$:i}=bb(t);let s=(i?hc(n.width):n.width)/a,l=(i?hc(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const BL=Pr(0);function wb(e){const t=Mn(e);return!fm()||!t.visualViewport?BL:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function LL(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Mn(e)?!1:t}function vo(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=pm(e);let s=Pr(1);t&&(a?sr(a)&&(s=Zo(a)):s=Zo(e));const l=LL(i,n,a)?wb(i):Pr(0);let c=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i){const p=Mn(i),m=a&&sr(a)?Mn(a):a;let g=p,y=Pf(g);for(;y&&a&&m!==g;){const w=Zo(y),b=y.getBoundingClientRect(),E=lr(y),_=b.left+(y.clientLeft+parseFloat(E.paddingLeft))*w.x,v=b.top+(y.clientTop+parseFloat(E.paddingTop))*w.y;c*=w.x,u*=w.y,d*=w.x,f*=w.y,c+=_,u+=v,g=Mn(y),y=Pf(g)}}return gc({width:d,height:f,x:c,y:u})}function mm(e,t){const n=du(e).scrollLeft;return t?t.left+n:vo(Lr(e)).left+n}function kb(e,t,n){n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=a.left+t.scrollLeft-(n?0:mm(e,a)),i=a.top+t.scrollTop;return{x:o,y:i}}function DL(e){let{elements:t,rect:n,offsetParent:a,strategy:o}=e;const i=o==="fixed",s=Lr(a),l=t?uu(t.floating):!1;if(a===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},u=Pr(1);const d=Pr(0),f=Or(a);if((f||!f&&!i)&&((So(a)!=="body"||js(s))&&(c=du(a)),Or(a))){const m=vo(a);u=Zo(a),d.x=m.x+a.clientLeft,d.y=m.y+a.clientTop}const p=s&&!f&&!i?kb(s,c,!0):Pr(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-c.scrollTop*u.y+d.y+p.y}}function RL(e){return Array.from(e.getClientRects())}function $L(e){const t=Lr(e),n=du(e),a=e.ownerDocument.body,o=Tn(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),i=Tn(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let s=-n.scrollLeft+mm(e);const l=-n.scrollTop;return lr(a).direction==="rtl"&&(s+=Tn(t.clientWidth,a.clientWidth)-o),{width:o,height:i,x:s,y:l}}function zL(e,t){const n=Mn(e),a=Lr(e),o=n.visualViewport;let i=a.clientWidth,s=a.clientHeight,l=0,c=0;if(o){i=o.width,s=o.height;const u=fm();(!u||u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:l,y:c}}const VL=new Set(["absolute","fixed"]);function FL(e,t){const n=vo(e,!0,t==="fixed"),a=n.top+e.clientTop,o=n.left+e.clientLeft,i=Or(e)?Zo(e):Pr(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,c=o*i.x,u=a*i.y;return{width:s,height:l,x:c,y:u}}function y0(e,t,n){let a;if(t==="viewport")a=zL(e,n);else if(t==="document")a=$L(Lr(e));else if(sr(t))a=FL(t,n);else{const o=wb(e);a={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return gc(a)}function _b(e,t){const n=xa(e);return n===t||!sr(n)||yi(n)?!1:lr(n).position==="fixed"||_b(n,t)}function jL(e,t){const n=t.get(e);if(n)return n;let a=Ss(e,[],!1).filter(l=>sr(l)&&So(l)!=="body"),o=null;const i=lr(e).position==="fixed";let s=i?xa(e):e;for(;sr(s)&&!yi(s);){const l=lr(s),c=dm(s);!c&&l.position==="fixed"&&(o=null),(i?!c&&!o:!c&&l.position==="static"&&!!o&&VL.has(o.position)||js(s)&&!c&&_b(e,s))?a=a.filter(d=>d!==s):o=l,s=xa(s)}return t.set(e,a),a}function HL(e){let{element:t,boundary:n,rootBoundary:a,strategy:o}=e;const s=[...n==="clippingAncestors"?uu(t)?[]:jL(t,this._c):[].concat(n),a],l=s[0],c=s.reduce((u,d)=>{const f=y0(t,d,o);return u.top=Tn(f.top,u.top),u.right=Sa(f.right,u.right),u.bottom=Sa(f.bottom,u.bottom),u.left=Tn(f.left,u.left),u},y0(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function UL(e){const{width:t,height:n}=bb(e);return{width:t,height:n}}function WL(e,t,n){const a=Or(t),o=Lr(t),i=n==="fixed",s=vo(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=Pr(0);function u(){c.x=mm(o)}if(a||!a&&!i)if((So(t)!=="body"||js(o))&&(l=du(t)),a){const m=vo(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&u();i&&!a&&o&&u();const d=o&&!a&&!i?kb(o,l):Pr(0),f=s.left+l.scrollLeft-c.x-d.x,p=s.top+l.scrollTop-c.y-d.y;return{x:f,y:p,width:s.width,height:s.height}}function hd(e){return lr(e).position==="static"}function b0(e,t){if(!Or(e)||lr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Lr(e)===n&&(n=n.ownerDocument.body),n}function Sb(e,t){const n=Mn(e);if(uu(e))return n;if(!Or(e)){let o=xa(e);for(;o&&!yi(o);){if(sr(o)&&!hd(o))return o;o=xa(o)}return n}let a=b0(e,t);for(;a&&TL(a)&&hd(a);)a=b0(a,t);return a&&yi(a)&&hd(a)&&!dm(a)?n:a||NL(e)||n}const qL=async function(e){const t=this.getOffsetParent||Sb,n=this.getDimensions,a=await n(e.floating);return{reference:WL(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function YL(e){return lr(e).direction==="rtl"}const GL={convertOffsetParentRelativeRectToViewportRelativeRect:DL,getDocumentElement:Lr,getClippingRect:HL,getOffsetParent:Sb,getElementRects:qL,getClientRects:RL,getDimensions:UL,getScale:Zo,isElement:sr,isRTL:YL};function Cb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function KL(e,t){let n=null,a;const o=Lr(e);function i(){var l;clearTimeout(a),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=u;if(l||t(),!p||!m)return;const g=wl(f),y=wl(o.clientWidth-(d+p)),w=wl(o.clientHeight-(f+m)),b=wl(d),_={rootMargin:-g+"px "+-y+"px "+-w+"px "+-b+"px",threshold:Tn(0,Sa(1,c))||1};let v=!0;function x(C){const P=C[0].intersectionRatio;if(P!==c){if(!v)return s();P?s(!1,P):a=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!Cb(u,e.getBoundingClientRect())&&s(),v=!1}try{n=new IntersectionObserver(x,{..._,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,_)}n.observe(e)}return s(!0),i}function XL(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=a,u=pm(e),d=o||i?[...u?Ss(u):[],...Ss(t)]:[];d.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const f=u&&l?KL(u,n):null;let p=-1,m=null;s&&(m=new ResizeObserver(b=>{let[E]=b;E&&E.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var _;(_=m)==null||_.observe(t)})),n()}),u&&!c&&m.observe(u),m.observe(t));let g,y=c?vo(e):null;c&&w();function w(){const b=vo(e);y&&!Cb(y,b)&&n(),y=b,g=requestAnimationFrame(w)}return n(),()=>{var b;d.forEach(E=>{o&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),f?.(),(b=m)==null||b.disconnect(),m=null,c&&cancelAnimationFrame(g)}}const xb=kL,JL=_L,Eb=bL,QL=CL,ZL=yL,eD=SL,tD=(e,t,n)=>{const a=new Map,o={platform:GL,...n},i={...o.platform,_c:a};return gL(e,t,{...o,platform:i})};function nD(e){return e!=null&&typeof e=="object"&&"$el"in e}function rD(e){if(nD(e)){const t=e.$el;return um(t)&&So(t)==="#comment"?null:t}return e}function aD(e){return typeof e=="function"?e():r.unref(e)}function oD(e){return{name:"arrow",options:e,fn(t){const n=rD(aD(e.element));return n==null?{}:ZL({element:n,padding:e.padding}).fn(t)}}}const Tb=r.defineComponent({__name:"Loading",setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",null,[r.createVNode(r.unref(Na))]))}}),iD=Object.freeze(Object.defineProperty({__proto__:null,default:Tb},Symbol.toStringTag,{value:"Module"})),Pb=r.defineComponent({__name:"Error",setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(ey),{type:"error",title:"Onbekend type",description:"Type wordt niet ondersteund."}))}}),sD=Object.freeze(Object.defineProperty({__proto__:null,default:Pb},Symbol.toStringTag,{value:"Module"})),lD={default:["text-white"],danger:["text-red-500"]},cD={contextMenu:["focus:bg-zinc-600","px-2","py-1"],actionBar:["hover:bg-black-100/20"]},uD={actionBar:"before:-top-4 before:left-1/2 before:border-x-10 before:border-b-10 before:border-x-transparent before:border-b-secondary",contextMenu:""},dD=r.defineComponent({__name:"AppActionBarSubMenu",props:{action:{},context:{type:Boolean,default:!1},confirmed:{type:Boolean},item:{default:void 0},isOpen:{type:Boolean}},emits:["close"],setup(e,{emit:t}){const n=e,a=t,o=Zt.useParentElement(),i=r.useTemplateRef("subMenu"),s=r.useTemplateRef("submenuArrow"),{position:l}=Hs(o,i,{placement:n.context?"right-start":"bottom",middleware:[xb({mainAxis:n.context?25:20,crossAxis:0}),JL({padding:n.context?25:20,limiter:eD()}),Eb({mainAxis:!0,crossAxis:!0}),oD({element:s})]}),c=r.defineAsyncComponent({loader:async()=>typeof n.action.component=="string"?iL(Object.assign({"./Components/Error.vue":()=>Promise.resolve().then(()=>sD),"./Components/Loading.vue":()=>Promise.resolve().then(()=>iD),"./Components/MultiSelect.vue":()=>Promise.resolve().then(()=>TJ)}),`./Components/${cg.pascal(n.action.component)}.vue`,3):n.action.component,errorComponent:Pb,loadingComponent:Tb}),u=r.computed(()=>`${l.value?.placement}`.startsWith("left")?"left":"right"),d=r.computed(()=>l.value?.middlewareData?.arrow?.x??null);return(f,p)=>(r.openBlock(),r.createElementBlock("div",{ref:"subMenu",class:r.normalizeClass([{"-top-full left-full":n.context},"absolute w-fit rounded-lg bg-secondary p-2"])},[r.createElementVNode("div",{ref:"submenuArrow",class:r.normalizeClass([{"-translate-x-6 -ml-px":u.value==="right","translate-x-4":u.value==="left",hidden:!n.context},"absolute text-secondary size-8"]),style:r.normalizeStyle({left:d.value!==null&&u.value==="right"?`${d.value}px`:"",right:u.value==="left"?`${d.value??0}px`:"",top:r.unref(l)?.middlewareData?.arrow?.y!==null?`${r.unref(l)?.middlewareData?.arrow?.y}px`:""})},[r.createVNode(r.unref(yn),{icon:r.unref(bn).fas["caret-left"],class:r.normalizeClass([{"rotate-180":u.value==="left"},"size-full!"])},null,8,["icon","class"])],6),r.createElementVNode("div",{class:r.normalizeClass([r.unref(uD)[n.context?"contextMenu":"actionBar"],"relative w-fit before:absolute before:-translate-x-3"])},[r.createVNode(r.unref(c),r.mergeProps({...n,...f.action.componentProperties},{"data-test-action-menu":"",onClose:p[0]||(p[0]=()=>a("close"))}),null,16)],2)],2))}}),Ab=r.defineComponent({__name:"AppActionBarItem",props:{action:{},context:{type:Boolean,default:!1},confirmed:{type:Boolean,default:!1},item:{default:void 0},isOpen:{type:Boolean}},emits:["close","confirm","confirmed","open"],setup(e,{emit:t}){const n=e,a=t,o=Mi(),i=fu(),s=r.useTemplateRef("submenuElement"),{activate:l,deactivate:c,onEscape:u,onBack:d}=bm(s),f=r.ref(!1),p=r.ref(!1),m=r.ref([]),g=r.computed(()=>p.value?Na:f.value&&n.action.confirm?Ap:n.action.icon),y=r.computed(()=>n.action.type??"default"),w=r.computed(()=>typeof n.action.hidden=="function"?n.context&&i.item?n.action.hidden([r.toValue(i.item)],!0):n.action.hidden(o.tableSelection.value,!1):n.action.hidden);r.watch(()=>n.isOpen,v=>{v||E()}),r.onMounted(()=>{n.confirmed&&(f.value=!0)});async function b(){if((n.action.confirm||n.action.component)&&!f.value){f.value=!0,n.action.component&&(await r.nextTick(),a("confirm"),await r.nextTick(),n.action.focusTrap!==!1&&setTimeout(l,300)),a("open");return}p.value=!0,f.value=!1;const v=await n.action.onClick?.(n.item??o.tableSelection.value);p.value=!1,(n.action?.resetSelection??!0)&&o.resetSelection(),v&&a("close")}function E(){c(),f.value=!1,a("confirmed")}function _(){E(),a("close")}return u(_),d(E),(v,x)=>{const C=r.resolveDirective("tippy");return w.value!==!0?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass([[...r.unref(lD)[y.value],...r.unref(cD)[n.context?"contextMenu":"actionBar"],n.action.component?"has-submenu":""],"relative cursor-pointer rounded-md transition-colors duration-200"])},[r.withDirectives((r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"px-2.5 py-4":!v.context},"app-action-bar-item flex size-full items-center space-x-2 whitespace-nowrap"]),"data-test-action-bar-icon":"",onClick:b},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(g.value),{class:r.normalizeClass({"text-yellow-600":f.value&&v.action.confirm,"size-4":v.context,"size-5":!v.context,"size-5!":p.value})},null,8,["class"])),r.renderSlot(v.$slots,"default"),v.action.suffixIcon&&v.context?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(v.action.suffixIcon),{key:0,class:"size-5 ml-auto",onClose:E},null,32)):r.createCommentVNode("",!0)],2)),[[C,v.context?void 0:v.action.name]]),n.action.component&&f.value?(r.openBlock(),r.createBlock(dD,r.mergeProps({key:0,ref_key:"submenuElement",ref:s,modelValue:m.value,"onUpdate:modelValue":x[0]||(x[0]=P=>m.value=P)},n,{onClose:E}),null,16,["modelValue"])):r.createCommentVNode("",!0)],2)):r.createCommentVNode("",!0)}}}),fD={class:"flex py-4.5"},pD={class:"w-28 whitespace-nowrap pl-2","data-test-selection-text":""},mD={class:"flex"},hm=r.defineComponent({__name:"AppActionBar",setup(e){const t=r.useTemplateRef("actionBar"),{selection:n,actions:a,isOpen:o,close:i,resetSelection:s,selectionText:l}=Mi(),{setComputedPosition:c}=Hs(()=>document.getElementById("sidebar-left-wrapper"),t,{active:!0,placement:"left-start",mainAxis:0,sizeElement:"#sidebar-wrapper"}),u=r.ref([1]),d=r.ref(null),f=r.computed(()=>l.value.replace(":selection",String(n.value.length)));r.watch(o,()=>c()),r.watch(n,()=>{n.value.length===0&&i()});function p(){u.value=[1],s()}function m(){d.value=null,s(),i()}function g(y){d.value=y}return Zt.onKeyStroke(["Escape"],y=>{y.preventDefault(),m()}),(y,w)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createElementVNode("div",{ref_key:"actionBar",ref:t,class:r.normalizeClass([{"translate-y-0! max-md:mt-0!":r.unref(n).length>0&&r.unref(o)},"fixed inset-x-0 top-0 z-100 flex h-14 md:-mt-1 -translate-y-24 items-center justify-between bg-secondary px-4 text-white transition-[translate] ease-in-out max-md:transform-none! max-md:translate-none! max-md:-mt-10"]),"data-test-action-bar-wrapper":""},[r.createElementVNode("div",fD,[r.createVNode(nb,{modelValue:u.value,"onUpdate:modelValue":w[0]||(w[0]=b=>u.value=b),value:1,type:"checkbox",onChange:p},null,8,["modelValue"]),r.createElementVNode("div",pD,r.toDisplayString(f.value),1)]),r.createElementVNode("div",mD,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(a),(b,E)=>(r.openBlock(),r.createBlock(Ab,{key:`action-item-${E}`,action:b,"is-open":d.value===E,onOpen:()=>g(E),onClose:m},null,8,["action","is-open","onOpen"]))),128))]),r.createElementVNode("div",null,[r.createVNode(r.unref(km),{class:"size-5 cursor-pointer",onClick:m})])],2)]))}}),vd=r.defineComponent({__name:"AppPaginationItem",props:{as:{default:"a"},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.as),{class:r.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:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},8,["class"]))}}),hD={class:"my-0! flex items-center justify-between border-zinc-200 sm:px-6"},Ib=r.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,a=t,o=r.ref(2),i=r.computed(()=>n.meta?.meta?.currentPage??n.currentPage??1),s=r.computed(()=>n.meta?.meta?.lastPage??n.lastPage??1),l=r.computed(()=>{const m=i.value-o.value;return m>0?m:1}),c=r.computed(()=>{const m=i.value+o.value;return m<s.value?m:s.value}),u=r.computed(()=>{const m=i.value-1;return m>0?m:null}),d=r.computed(()=>{const m=i.value+1;return m<=s.value?m:null}),f=r.computed(()=>{const m=[];l.value>1&&(m.push(1),l.value>2&&m.push(0));for(let g=l.value;g<=c.value;g+=1)m.push(g);return c.value<s.value&&(c.value+1!==s.value&&m.push(0),m.push(s.value)),m});function p(m){m&&a("paginate",m)}return(m,g)=>(r.openBlock(),r.createElementBlock("div",hD,[r.createElementVNode("div",null,[r.createElementVNode("nav",{class:r.normalizeClass([{"pointer-events-none opacity-50":!m.loaded},"flex rounded-lg border border-zinc-300"]),"aria-label":"Pagination"},[r.createVNode(vd,{disabled:u.value===null,href:"#",class:"rounded-l-lg",onClick:g[0]||(g[0]=r.withModifiers(()=>a("previousPage"),["prevent"]))},{default:r.withCtx(()=>[g[2]||(g[2]=r.createElementVNode("span",{class:"sr-only"},"previous",-1)),r.createVNode(r.unref(wm),{class:"-mx-1.5 size-5 stroke-2","aria-hidden":"true"})]),_:1,__:[2]},8,["disabled"]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(f.value,y=>(r.openBlock(),r.createBlock(vd,{key:`pagination-${y}`,as:y?"a":"span",active:y===i.value,href:"#",onClick:r.withModifiers(()=>p(y),["prevent"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(y||"..."),1)]),_:2},1032,["as","active","onClick"]))),128)),r.createVNode(vd,{class:r.normalizeClass([{"cursor-not-allowed":d.value===null},"rounded-r-lg"]),disabled:d.value===null,href:"#",onClick:g[1]||(g[1]=r.withModifiers(()=>a("nextPage"),["prevent"]))},{default:r.withCtx(()=>[g[3]||(g[3]=r.createElementVNode("span",{class:"sr-only"},"next",-1)),r.createVNode(r.unref(Jb),{class:"-mx-1.5 size-5 stroke-2","aria-hidden":"true"})]),_:1,__:[3]},8,["class","disabled"])],2)])]))}}),vD=["aria-checked","disabled"],Mb=r.defineComponent({__name:"AppToggle",props:r.mergeModels({disabled:{type:Boolean,default:!1}},{modelValue:{type:Boolean,required:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=r.useModel(e,"modelValue");function a(){t.disabled||(n.value=!n.value)}return(o,i)=>(r.openBlock(),r.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:a},i[0]||(i[0]=[r.createElementVNode("span",{"aria-hidden":"true",class:"pointer-events-none inline-block size-5 translate-x-0 rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out group-aria-checked:!translate-x-6","data-test-handle":""},null,-1)]),8,vD))}}),gD={class:"flex justify-between"},yD={"data-test-title":""},bD={key:0,"data-test-default-slot":""},wD=r.defineComponent({__name:"AppToggleCard",props:r.mergeModels({title:{},disabled:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=r.useModel(e,"modelValue"),n=r.useSlots();return(a,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([a.disabled?"bg-zinc-50":"bg-white","rounded-xl p-4 shadow-[0px_2px_4px_0px_rgba(32,32,32,0.08)]"])},[r.createElementVNode("div",gD,[r.createElementVNode("span",yD,[r.renderSlot(a.$slots,"title",{},()=>[r.createTextVNode(r.toDisplayString(a.title),1)])]),r.createVNode(r.unref(Mb),{ref:a.title,modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=i=>t.value=i),disabled:a.disabled,"data-test-toggle":""},null,8,["modelValue","disabled"])]),r.unref(n).default?r.withDirectives((r.openBlock(),r.createElementBlock("div",bD,[r.renderSlot(a.$slots,"default")],512)),[[r.vShow,t.value]]):r.createCommentVNode("",!0)],2))}}),kD=["href","onClick"],_D={class:"text-base font-bold","data-test-text":""},SD=r.defineComponent({__name:"AppMenuItem",props:{name:{},icon:{},to:{},visible:{type:Boolean,default:!0},replace:{type:Boolean,default:!1}},setup(e){return(t,n)=>{const a=r.resolveComponent("RouterLink");return t.visible?(r.openBlock(),r.createBlock(a,{key:0,to:t.to,replace:t.replace,custom:""},{default:r.withCtx(({href:o,isActive:i,navigate:s})=>[r.renderSlot(t.$slots,"default",{},()=>[r.createElementVNode("a",{href:o,class:r.normalizeClass([{"bg-zinc-100 hover:bg-zinc-100!":i},"flex cursor-pointer items-center space-x-2 rounded-lg px-4 py-3 hover:bg-zinc-100"]),onClick:s},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.icon),{class:"size-4 stroke-2","data-test-icon":""})),r.createElementVNode("span",_D,r.toDisplayString(t.name),1)],10,kD)])]),_:3},8,["to","replace"])):r.createCommentVNode("",!0)}}}),CD={class:"space-y-4"},xD={class:"flex w-full px-2"},ED={class:"text-base"},TD={class:"text-base"},PD=r.defineComponent({__name:"AppMenu",props:{responsive:{type:Boolean,default:!0},items:{}},setup(e){const t=ei.useRoute(),n=r.ref(t),a=ei.useRouter();async function o(i){await a.push(i)}return(i,s)=>(r.openBlock(),r.createElementBlock("div",CD,[i.responsive?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass([{"md:hidden":i.responsive},"block"])},[r.createVNode(r.unref(iu),{modelValue:n.value,"onUpdate:modelValue":s[0]||(s[0]=l=>n.value=l),options:i.items,"can-clear":!1,"append-to-body":!0,"open-direction":"down","dropdown-classes":"max-h-48!","wrapper-classes":"w-full","value-prop":"to",onSelect:o},{singlelabel:r.withCtx(l=>[r.createElementVNode("div",xD,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l.value.icon),{class:"mr-2 size-6","data-test-icon":""})),r.createElementVNode("span",ED,r.toDisplayString(l.value.name),1)])]),option:r.withCtx(l=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l.option.icon),{class:"mr-2 size-5","data-test-icon":""})),r.createElementVNode("span",TD,r.toDisplayString(l.option.name),1)]),_:1},8,["modelValue","options"])],2)):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass([{hidden:i.responsive},"mt-0! md:block md:space-y-2"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.items,l=>(r.openBlock(),r.createBlock(SD,r.mergeProps({ref_for:!0},l,{key:l.name}),null,16))),128))],2)]))}}),AD={class:"flex flex-col space-y-4 border-b border-zinc-200 py-8 lg:flex-row lg:space-x-10 lg:space-y-0"},ID={class:"flex shrink-0 flex-col lg:w-80 lg:space-y-1"},MD={key:0,class:"text-xl font-bold text-zinc-900","data-test-title":""},ND={key:0,class:"text-zinc-700","data-test-description":""},OD={class:"w-full min-w-0"},BD=r.defineComponent({__name:"AppSection",props:{title:{},description:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("section",AD,[r.createElementVNode("div",ID,[r.renderSlot(t.$slots,"titleDescription",{},()=>[r.renderSlot(t.$slots,"title",{},()=>[t.title?(r.openBlock(),r.createElementBlock("h3",MD,r.toDisplayString(t.title),1)):r.createCommentVNode("",!0)]),r.renderSlot(t.$slots,"description",{},()=>[t.description?(r.openBlock(),r.createElementBlock("p",ND,r.toDisplayString(t.description),1)):r.createCommentVNode("",!0)])])]),r.createElementVNode("div",OD,[r.renderSlot(t.$slots,"default")])]))}}),LD=r.defineComponent({__name:"ShortcutItem",props:{shortcut:{},item:{}},emits:["close"],setup(e,{emit:t}){const n=e,a=t,o=r.ref(n.shortcut.name);async function i(s){const l=await n.shortcut.click(n.shortcut,n.item,s);n.shortcut.copied&&(o.value="Gekopieërd",setTimeout(()=>{o.value=n.shortcut.name},1500)),l===!0&&a("close")}return(s,l)=>(r.openBlock(),r.createElementBlock("button",{type:"button",tabindex:"-1",class:"w-full p-1.5 text-xxs text-white cursor-pointer hover:bg-zinc-600 focus:outline-0",onClick:i},r.toDisplayString(s.shortcut.copied?o.value:s.shortcut.name),1))}}),DD={class:"text-base"},Nb=r.defineComponent({__name:"AppContextMenu",props:{item:{},event:{},actions:{},confirmed:{}},emits:["actionClicked","close","open","cancel"],setup(e,{expose:t,emit:n}){const a=e,o=n,i=r.ref(!0),s=r.ref(!1),l=r.ref(null),c=Mi(),u=fu(),d=r.ref(),f=Hb(d),{activate:p,deactivate:m,onEscape:g}=bm(d),y=r.computed(()=>a.actions??c.actions.value);r.onUnmounted(m);async function w(){i.value=!0,o("open"),document.querySelector("#app")?.classList.add("context-menu-open"),f.setPosition(a.event.x,a.event.y),await r.nextTick(),p()}async function b(){i.value=!1,m(),o("close"),document.querySelector("#app")?.classList.remove("context-menu-open")}async function E(v){o("actionClicked",v),i.value=!1,setTimeout(()=>{s.value=!1},300)}function _(v){l.value=v}return t({isOpen:i,open:w,close:b,submit:E}),Zt.onClickOutside(d,b),g(b),(v,x)=>i.value&&(y.value.length>0||r.unref(u).shortcuts.value.length>0)?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"contextMenuElement",ref:d,style:r.normalizeStyle(`left: ${v.event.x}px; top: ${v.event.y}px;`),class:"app-context-menu fixed z-50 flex w-64 flex-col rounded-lg bg-secondary p-2 drop-shadow-card empty:hidden","data-test-context-menu":""},[r.unref(u).shortcuts.value.length>0?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass([{"mb-2":y.value.length>0},"flex justify-between divide-x divide-zinc-600 rounded-md border border-zinc-600"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(u).shortcuts.value,C=>(r.openBlock(),r.createBlock(LD,{key:C.name,shortcut:C,item:v.item,onClose:b},null,8,["shortcut","item"]))),128))],2)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.value,(C,P)=>(r.openBlock(),r.createBlock(Ab,{key:`action-item-${P}`,action:C,context:!0,"is-open":l.value===P,item:v.item,confirmed:v.confirmed&&v.confirmed===C.key,tabindex:`100${P}`,class:"flex h-10 items-center space-x-2 first:rounded-t-lg last:rounded-b-lg focus:outline-none",onConfirm:r.unref(m),onConfirmed:r.unref(p),onClose:b,onMouseover:x[0]||(x[0]=O=>O.target?.focus()),onOpen:()=>_(P)},{default:r.withCtx(()=>[r.createElementVNode("span",DD,r.toDisplayString(C.name),1)]),_:2},1032,["action","is-open","item","confirmed","tabindex","onConfirm","onConfirmed","onOpen"]))),128))],4)):r.createCommentVNode("",!0)}}),RD={class:"mt-6"},$D={class:"overflow-hidden rounded-full bg-zinc-200"},zD=r.defineComponent({__name:"AppProgressBar",props:{steps:{},percentage:{},activeIndex:{},unmount:{type:Boolean,default:!0}},setup(e){const t=e,n=r.useSlots(),a=["grid-cols-1","grid-cols-2","grid-cols-3","grid-cols-4","grid-cols-5","grid-cols-6","grid-cols-7","grid-cols-8"],o=r.computed(()=>n.default!==void 0),i=r.computed(()=>t.steps?t.steps:n.default?.().map((c,u)=>({name:c?.props?.name??c?.type?.props?.name,completed:s.value>=u,active:s.value===u,component:c}))??[]),s=r.computed(()=>t.activeIndex!==void 0&&t.activeIndex>-1?t.activeIndex:i.value?.findIndex(c=>c.active)),l=r.computed(()=>t.percentage?t.percentage:i.value?i.value.filter(u=>u.completed).length/i.value.length*100:0);return(c,u)=>(r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("div",RD,[r.createElementVNode("div",$D,[r.createElementVNode("div",{style:r.normalizeStyle(`width: ${l.value}%`),class:"h-2.5 rounded-full bg-primary transition-all","data-test-progress-bar":""},null,4)]),r.createElementVNode("div",{class:r.normalizeClass([a[i.value.length-1],"mt-3 hidden w-full text-sm font-medium text-zinc-600 sm:grid"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,(d,f)=>(r.openBlock(),r.createElementBlock("div",{key:`step-${f}`,class:r.normalizeClass([{"font-bold":d.completed},"text-base text-zinc-900"]),"data-test-step-title":""},[r.renderSlot(c.$slots,`step-${f+1}`,{step:d},()=>[r.createTextVNode(r.toDisplayString(d.name),1)])],2))),128))],2),o.value?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(i.value,(d,f)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[c.unmount&&(d?.active??!0)||!c.unmount?r.withDirectives((r.openBlock(),r.createBlock(r.resolveDynamicComponent(d.component),{key:f})),[[r.vShow,!c.unmount&&(d?.active??!0)||c.unmount]]):r.createCommentVNode("",!0)],64))),256)):r.createCommentVNode("",!0)])]))}}),VD={},FD={class:"mt-8"};function jD(e,t){return r.openBlock(),r.createElementBlock("div",FD,[r.renderSlot(e.$slots,"default")])}const HD=Dn(VD,[["render",jD]]);class w0{color="";constructor(t){this.color=t}parseAlphaColor(){return/^rgba\((\d{1,3}%?\s*,\s*){3}(\d*(?:\.\d+)?)\)$/.test(this.color)?this.parseRgba():/^hsla\(\d+\s*,\s*([\d.]+%\s*,\s*){2}(\d*(?:\.\d+)?)\)$/.test(this.color)?this.parseHsla():/^#([\dA-Fa-f]{4}|[\dA-Fa-f]{8})$/.test(this.color)?this.parseAlphaHex():/^transparent$/.test(this.color)?this.parseTransparent():{color:this.color,opacity:"1"}}parseRgba(){return{color:this.color.replace(/,(?!.*,).*(?=\))|a/g,""),opacity:this.color.match(/\.\d+|[01](?=\))/)?.[0]}}parseHsla(){return{color:this.color.replace(/,(?!.*,).*(?=\))|a/g,""),opacity:this.color.match(/\.\d+|[01](?=\))/)?.[0]}}parseAlphaHex(){return{color:this.color.length===5?this.color.slice(0,4):this.color.slice(0,7),opacity:this.color.length===5?(parseInt(this.color.slice(4,5)+this.color.slice(4,5),16)/255).toFixed(2):(parseInt(this.color.slice(7,9),16)/255).toFixed(2)}}parseTransparent(){return{color:"#fff",opacity:0}}}const UD=["height","width","viewBox"],WD=["id"],qD=["offset","stop-color","stop-opacity"],YD=["offset","stop-color","stop-opacity"],GD=["id"],KD=["stdDeviation"],XD=["points","fill","stroke","filter","stroke-width"],JD=["points","fill","stroke","stroke-width","stroke-linejoin"],QD=["points","fill"],ZD=r.defineComponent({__name:"Star",props:{fill:{default:0},points:{default:()=>[]},size:{default:50},starId:{},activeColor:{},inactiveColor:{},borderColor:{default:"#000"},activeBorderColor:{default:"#000"},borderWidth:{default:0},roundedCorners:{type:Boolean,default:!1},glow:{default:0},glowColor:{default:void 0},animate:{type:Boolean,default:!1}},emits:["starMouseMove","starSelected"],setup(e,{emit:t}){const n=e,a=t,o=r.ref([19.8,2.2,6.6,43.56,39.6,17.16,0,17.16,33,43.56]),i=r.ref(""),s=r.ref(""),l=r.ref(!0),c=r.computed(()=>o.value.join(",")),u=r.computed(()=>`url(#${i.value})`),d=r.computed(()=>n.roundedCorners&&n.borderWidth<=0?6:n.borderWidth),f=r.computed(()=>{const U=n.roundedCorners&&n.borderWidth<=0?parseInt(`${n.size}`,10)-parseInt(`${d.value}`,10):n.size;return parseInt(`${U}`,10)+parseInt(`${d.value}`,10)}),p=r.computed(()=>`${n.fill}%`),m=r.computed(()=>n.roundedCorners&&n.borderWidth<=0?n.fill<=0?n.inactiveColor:n.activeColor:n.fill<=0?n.borderColor:n.activeBorderColor),g=r.computed(()=>[...o.value].reduce((U,z)=>Math.max(U,z))),y=r.computed(()=>`0 0 ${g.value} ${g.value}`),w=r.computed(()=>n.animate&&l.value),b=r.computed(()=>n.roundedCorners?"round":"miter");r.onBeforeMount(()=>{o.value=n.points.length>0?n.points:o.value,O(),i.value=P(),s.value=P()});function E(U){U.touchAction!=="undefined"&&a("starMouseMove",{position:x(U),id:n.starId})}function _(){r.nextTick(()=>{l.value=!0})}function v(){r.nextTick(()=>{l.value=!1})}function x(U){const z=.92*n.size,R=Math.max(U.offsetX,1),I=Math.round(100/z*R);return Math.min(I,100)}function C(U){a("starSelected",{id:n.starId,position:x(U)})}function P(){return Math.random().toString(36).slice(7)}function O(){o.value=o.value.map((U,z)=>{const R=z%2===0?d.value*1.5:0;return n.size/g.value*U+R})}function A(U){return new w0(U).parseAlphaColor().color}function L(U){return new w0(U).parseAlphaColor().opacity}return(U,z)=>(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass([{"transition-all hover:rotate-12":w.value},"overflow-visible"]),height:f.value,width:f.value,viewBox:y.value,onMousemove:E,onClick:C,onTouchstart:_,onTouchend:v},[r.createElementVNode("linearGradient",{id:i.value,x1:"0",x2:"100%",y1:"0",y2:"0"},[r.createElementVNode("stop",{offset:p.value,"stop-color":A(U.activeColor),"stop-opacity":L(U.activeColor)},null,8,qD),r.createElementVNode("stop",{offset:p.value,"stop-color":A(U.inactiveColor),"stop-opacity":L(U.inactiveColor)},null,8,YD)],8,WD),r.createElementVNode("filter",{id:s.value,height:"130%",width:"130%",filterUnits:"userSpaceOnUse"},[r.createElementVNode("feGaussianBlur",{stdDeviation:U.glow,result:"coloredBlur"},null,8,KD),z[0]||(z[0]=r.createElementVNode("feMerge",null,[r.createElementVNode("feMergeNode",{in:"coloredBlur"}),r.createElementVNode("feMergeNode",{in:"SourceGraphic"})],-1))],8,GD),r.withDirectives(r.createElementVNode("polygon",{points:c.value,fill:u.value,stroke:U.glowColor,filter:`url(#${s.value})`,"stroke-width":d.value},null,8,XD),[[r.vShow,U.glowColor&&U.glow>0&&U.fill>0]]),r.createElementVNode("polygon",{points:c.value,fill:u.value,stroke:m.value,"stroke-width":d.value,"stroke-linejoin":b.value},null,8,JD),r.createElementVNode("polygon",{points:c.value,fill:u.value},null,8,QD)],42,UD))}}),eR={class:"sr-only"},tR=r.defineComponent({__name:"StarRating",props:{rating:{default:0},increment:{default:1},roundStartRating:{type:Boolean,default:!0},activeColor:{default:"#ffd055"},inactiveColor:{default:"#d8d8d8"},maxRating:{default:5},starPoints:{default:()=>[]},starSize:{default:50},showRating:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},textClass:{default:""},inline:{type:Boolean,default:!1},borderColor:{default:"#999"},activeBorderColor:{default:null},borderWidth:{default:0},roundedCorners:{type:Boolean,default:!1},padding:{default:0},rtl:{type:Boolean,default:!1},fixedPoints:{default:null},glow:{default:0},glowColor:{default:"#fff"},clearable:{type:Boolean,default:!1},activeOnClick:{type:Boolean,default:!1},animate:{type:Boolean,default:!1}},emits:["update:rating","hover:rating"],setup(e,{emit:t}){const n=e,a=t,o=r.ref(0),i=r.ref([]),s=r.ref(0),l=r.ref(0),c=r.ref(!1),u=r.computed(()=>n.fixedPoints===null?s.value:s.value.toFixed(n.fixedPoints)),d=r.computed(()=>c.value||n.roundStartRating),f=r.computed(()=>n.padding+n.borderWidth),p=r.computed(()=>Array.isArray(n.activeColor)?v(n.activeColor,n.maxRating,n.activeColor.slice(-1)[0]):Array.from({length:n.maxRating}).fill(n.activeColor)),m=r.computed(()=>n.activeOnClick?`${l.value>0?p.value[Math.ceil(l.value)-1]:n.inactiveColor}`:`${s.value>0?p.value[Math.ceil(s.value)-1]:n.inactiveColor}`),g=r.computed(()=>{if(Array.isArray(n.activeBorderColor))return v(n.activeBorderColor,n.maxRating,n.activeBorderColor.slice(-1)[0]);const x=n.activeBorderColor?n.activeBorderColor:n.borderColor;return Array.from({length:n.maxRating}).fill(x)}),y=r.computed(()=>n.activeOnClick?`${l.value>0?g.value[Math.ceil(l.value)-1]:n.borderColor}`:`${s.value>0?g.value[Math.ceil(s.value)-1]:n.borderColor}`),w=r.computed(()=>{const x=1/n.increment;return Math.min(n.maxRating,Math.ceil(s.value*x)/x)});r.watch(()=>n.rating,x=>{s.value=x,l.value=x,_(d.value)}),r.onBeforeMount(()=>{o.value=n.increment*100,s.value=n.rating,l.value=s.value,_(n.roundStartRating)});function b(x,C=!1){if(n.readOnly)return;const P=n.rtl?(100-x.position)/100:x.position/100;if(s.value=(x.id+P-1).toFixed(2),s.value=s.value>n.maxRating?n.maxRating:s.value,C){_(!0,!0),l.value=n.clearable&&s.value===l.value?0:s.value,a("update:rating",l.value),c.value=!0;return}_(!0,!n.activeOnClick),a("hover:rating",s.value)}function E(){n.readOnly||(s.value=l.value,_(d.value))}function _(x=!0,C=!0){s.value=x?w.value:s.value;for(let P=0;P<n.maxRating;P++){let O=0;P<s.value&&(O=s.value-P>1?100:(s.value-P)*100),C&&(i.value[P]=Math.round(O))}}function v(x,C,P){return Object.assign([C].fill(P),x)}return(x,C)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"inline-flex":x.inline},"flex items-center"])},[r.createElementVNode("div",eR,[r.renderSlot(x.$slots,"screen-reader",{rating:l.value,stars:x.maxRating},()=>[r.createElementVNode("span",null,"Rated "+r.toDisplayString(l.value)+" stars out of "+r.toDisplayString(x.maxRating),1)])]),r.createElementVNode("div",{class:"flex items-center",onMouseleave:E},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(x.maxRating,P=>(r.openBlock(),r.createElementBlock("span",{key:P,class:r.normalizeClass([{"cursor-pointer":!x.readOnly},"inline-block"]),style:r.normalizeStyle(`margin-right: ${f.value}px`)},[r.createVNode(ZD,{fill:i.value[P-1],size:x.starSize,points:x.starPoints,"star-id":P,step:o.value,"active-color":m.value,"inactive-color":x.inactiveColor,"border-color":x.borderColor,"active-border-color":y.value,"border-width":x.borderWidth,"rounded-corners":x.roundedCorners,rtl:x.rtl,glow:x.glow,"glow-color":x.glowColor,animate:x.animate,onStarSelected:C[0]||(C[0]=O=>b(O,!0)),onStarMouseMove:b},null,8,["fill","size","points","star-id","step","active-color","inactive-color","border-color","active-border-color","border-width","rounded-corners","rtl","glow","glow-color","animate"])],6))),128)),x.showRating?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass([x.textClass,"ml-2"])},r.toDisplayString(u.value),3)):r.createCommentVNode("",!0)],32)],2))}}),nR=r.defineComponent({__name:"AppRating",props:r.mergeModels({title:{default:""},stars:{default:5},showRating:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=r.useModel(e,"modelValue");return(n,a)=>(r.openBlock(),r.createBlock(r.unref(Mp),{"content-classes":"flex items-center gap-8 select-none",class:"p-4!"},{default:r.withCtx(()=>[r.createElementVNode("div",null,[r.renderSlot(n.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(n.title),1)])]),r.createVNode(tR,{rating:t.value,"onUpdate:rating":a[0]||(a[0]=o=>t.value=o),"rounded-corners":!1,"max-rating":n.stars,"show-rating":n.showRating,increment:.5,padding:.5,"star-size":25,"border-width":0,inline:!0,"read-only":n.readonly,"active-color":"#FACC15","inactive-color":"#D4D4D8",class:"-mt-1 ml-auto"},null,8,["rating","max-rating","show-rating","read-only"])]),_:3}))}});var rR=function(){function e(t){var n=t.rootElement,a=t.durationSlide,o=a===void 0?1e3:a,i=t.durationFade,s=i===void 0?200:i,l=t.initialNumber,c=t.animateInitialNumber,u=c===void 0?!0:c,d=t.numberFormatter,f=d===void 0?function(v){return v.toString()}:d,p=t.decimalSeparator,m=p===void 0?".":p,g=t.thousandSeparator,y=g===void 0?",":g,w=t.wrapperClassname,b=w===void 0?"numberflip-digit-container":w,E=t.digitClassname,_=E===void 0?"numberflip-digit-container-value":E;this.rootElement=n,this.durationSlide=o,this.durationFade=s,this.numberFormatter=f,this.decimalSeparator=m,this.thousandSeparator=y,this.wrapperClassname=b,this.digitClassname=_,this.rootElement.style.display="flex",l!==void 0&&this.setNumber(l,u)}return e.prototype.setNumber=function(t,n){n===void 0&&(n=!0),this.adjustAmountOfDigitContainers(t),this.setDigitInContainers(t,n)},e.prototype.adjustAmountOfDigitContainers=function(t){for(var n=this.getDigitsOfNumber(t).length,a=this.rootElement.getElementsByClassName(this.wrapperClassname).length;a<n;)this.rootElement.insertAdjacentHTML("beforeend",'<div class="'.concat(this.wrapperClassname,'">')+`<span style="visibility: hidden;">0</span>
612
612
  <div class="`.concat(this.digitClassname,`" style="transform: translateY(-100%);">
613
613
  <span>9</span>
614
614
  <span>8</span>
@@ -629,15 +629,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
629
629
  *
630
630
  * Copyright 2020, Pusher
631
631
  * Released under the MIT licence.
632
- */var T0;function wR(){return T0||(T0=1,function(e,t){(function(a,o){e.exports=o()})(window,function(){return function(n){var a={};function o(i){if(a[i])return a[i].exports;var s=a[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=a,o.d=function(i,s,l){o.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:l})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,s){if(s&1&&(i=o(i)),s&8||s&4&&typeof i=="object"&&i&&i.__esModule)return i;var l=Object.create(null);if(o.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:i}),s&2&&typeof i!="string")for(var c in i)o.d(l,c,(function(u){return i[u]}).bind(null,c));return l},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=2)}([function(n,a,o){var i=this&&this.__extends||function(){var y=function(w,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,_){E.__proto__=_}||function(E,_){for(var g in _)_.hasOwnProperty(g)&&(E[g]=_[g])},y(w,b)};return function(w,b){y(w,b);function E(){this.constructor=w}w.prototype=b===null?Object.create(b):(E.prototype=b.prototype,new E)}}();Object.defineProperty(a,"__esModule",{value:!0});var s=256,l=function(){function y(w){w===void 0&&(w="="),this._paddingCharacter=w}return y.prototype.encodedLength=function(w){return this._paddingCharacter?(w+2)/3*4|0:(w*8+5)/6|0},y.prototype.encode=function(w){for(var b="",E=0;E<w.length-2;E+=3){var _=w[E]<<16|w[E+1]<<8|w[E+2];b+=this._encodeByte(_>>>18&63),b+=this._encodeByte(_>>>12&63),b+=this._encodeByte(_>>>6&63),b+=this._encodeByte(_>>>0&63)}var g=w.length-E;if(g>0){var _=w[E]<<16|(g===2?w[E+1]<<8:0);b+=this._encodeByte(_>>>18&63),b+=this._encodeByte(_>>>12&63),g===2?b+=this._encodeByte(_>>>6&63):b+=this._paddingCharacter||"",b+=this._paddingCharacter||""}return b},y.prototype.maxDecodedLength=function(w){return this._paddingCharacter?w/4*3|0:(w*6+7)/8|0},y.prototype.decodedLength=function(w){return this.maxDecodedLength(w.length-this._getPaddingLength(w))},y.prototype.decode=function(w){if(w.length===0)return new Uint8Array(0);for(var b=this._getPaddingLength(w),E=w.length-b,_=new Uint8Array(this.maxDecodedLength(E)),g=0,x=0,C=0,P=0,O=0,A=0,L=0;x<E-4;x+=4)P=this._decodeChar(w.charCodeAt(x+0)),O=this._decodeChar(w.charCodeAt(x+1)),A=this._decodeChar(w.charCodeAt(x+2)),L=this._decodeChar(w.charCodeAt(x+3)),_[g++]=P<<2|O>>>4,_[g++]=O<<4|A>>>2,_[g++]=A<<6|L,C|=P&s,C|=O&s,C|=A&s,C|=L&s;if(x<E-1&&(P=this._decodeChar(w.charCodeAt(x)),O=this._decodeChar(w.charCodeAt(x+1)),_[g++]=P<<2|O>>>4,C|=P&s,C|=O&s),x<E-2&&(A=this._decodeChar(w.charCodeAt(x+2)),_[g++]=O<<4|A>>>2,C|=A&s),x<E-3&&(L=this._decodeChar(w.charCodeAt(x+3)),_[g++]=A<<6|L,C|=L&s),C!==0)throw new Error("Base64Coder: incorrect characters for decoding");return _},y.prototype._encodeByte=function(w){var b=w;return b+=65,b+=25-w>>>8&6,b+=51-w>>>8&-75,b+=61-w>>>8&-15,b+=62-w>>>8&3,String.fromCharCode(b)},y.prototype._decodeChar=function(w){var b=s;return b+=(42-w&w-44)>>>8&-s+w-43+62,b+=(46-w&w-48)>>>8&-s+w-47+63,b+=(47-w&w-58)>>>8&-s+w-48+52,b+=(64-w&w-91)>>>8&-s+w-65+0,b+=(96-w&w-123)>>>8&-s+w-97+26,b},y.prototype._getPaddingLength=function(w){var b=0;if(this._paddingCharacter){for(var E=w.length-1;E>=0&&w[E]===this._paddingCharacter;E--)b++;if(w.length<4||b>2)throw new Error("Base64Coder: incorrect padding")}return b},y}();a.Coder=l;var c=new l;function u(y){return c.encode(y)}a.encode=u;function d(y){return c.decode(y)}a.decode=d;var f=function(y){i(w,y);function w(){return y!==null&&y.apply(this,arguments)||this}return w.prototype._encodeByte=function(b){var E=b;return E+=65,E+=25-b>>>8&6,E+=51-b>>>8&-75,E+=61-b>>>8&-13,E+=62-b>>>8&49,String.fromCharCode(E)},w.prototype._decodeChar=function(b){var E=s;return E+=(44-b&b-46)>>>8&-s+b-45+62,E+=(94-b&b-96)>>>8&-s+b-95+63,E+=(47-b&b-58)>>>8&-s+b-48+52,E+=(64-b&b-91)>>>8&-s+b-65+0,E+=(96-b&b-123)>>>8&-s+b-97+26,E},w}(l);a.URLSafeCoder=f;var p=new f;function m(y){return p.encode(y)}a.encodeURLSafe=m;function v(y){return p.decode(y)}a.decodeURLSafe=v,a.encodedLength=function(y){return c.encodedLength(y)},a.maxDecodedLength=function(y){return c.maxDecodedLength(y)},a.decodedLength=function(y){return c.decodedLength(y)}},function(n,a,o){Object.defineProperty(a,"__esModule",{value:!0});var i="utf8: invalid string",s="utf8: invalid source encoding";function l(d){for(var f=new Uint8Array(c(d)),p=0,m=0;m<d.length;m++){var v=d.charCodeAt(m);v<128?f[p++]=v:v<2048?(f[p++]=192|v>>6,f[p++]=128|v&63):v<55296?(f[p++]=224|v>>12,f[p++]=128|v>>6&63,f[p++]=128|v&63):(m++,v=(v&1023)<<10,v|=d.charCodeAt(m)&1023,v+=65536,f[p++]=240|v>>18,f[p++]=128|v>>12&63,f[p++]=128|v>>6&63,f[p++]=128|v&63)}return f}a.encode=l;function c(d){for(var f=0,p=0;p<d.length;p++){var m=d.charCodeAt(p);if(m<128)f+=1;else if(m<2048)f+=2;else if(m<55296)f+=3;else if(m<=57343){if(p>=d.length-1)throw new Error(i);p++,f+=4}else throw new Error(i)}return f}a.encodedLength=c;function u(d){for(var f=[],p=0;p<d.length;p++){var m=d[p];if(m&128){var v=void 0;if(m<224){if(p>=d.length)throw new Error(s);var y=d[++p];if((y&192)!==128)throw new Error(s);m=(m&31)<<6|y&63,v=128}else if(m<240){if(p>=d.length-1)throw new Error(s);var y=d[++p],w=d[++p];if((y&192)!==128||(w&192)!==128)throw new Error(s);m=(m&15)<<12|(y&63)<<6|w&63,v=2048}else if(m<248){if(p>=d.length-2)throw new Error(s);var y=d[++p],w=d[++p],b=d[++p];if((y&192)!==128||(w&192)!==128||(b&192)!==128)throw new Error(s);m=(m&15)<<18|(y&63)<<12|(w&63)<<6|b&63,v=65536}else throw new Error(s);if(m<v||m>=55296&&m<=57343)throw new Error(s);if(m>=65536){if(m>1114111)throw new Error(s);m-=65536,f.push(String.fromCharCode(55296|m>>10)),m=56320|m&1023}}f.push(String.fromCharCode(m))}return f.join("")}a.decode=u},function(n,a,o){n.exports=o(3).default},function(n,a,o){o.r(a);class i{constructor(h,k){this.lastId=0,this.prefix=h,this.name=k}create(h){this.lastId++;var k=this.lastId,N=this.prefix+k,F=this.name+"["+k+"]",ie=!1,we=function(){ie||(h.apply(null,arguments),ie=!0)};return this[k]=we,{number:k,id:N,name:F,callback:we}}remove(h){delete this[h.number]}}var s=new i("_pusher_script_","Pusher.ScriptReceivers"),l={VERSION:"8.4.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},c=l;class u{constructor(h){this.options=h,this.receivers=h.receivers||s,this.loading={}}load(h,k,N){var F=this;if(F.loading[h]&&F.loading[h].length>0)F.loading[h].push(N);else{F.loading[h]=[N];var ie=We.createScriptRequest(F.getPath(h,k)),we=F.receivers.create(function(Ne){if(F.receivers.remove(we),F.loading[h]){var Ue=F.loading[h];delete F.loading[h];for(var ot=function(Ft){Ft||ie.cleanup()},dt=0;dt<Ue.length;dt++)Ue[dt](Ne,ot)}});ie.send(we)}}getRoot(h){var k,N=We.getDocument().location.protocol;return h&&h.useTLS||N==="https:"?k=this.options.cdn_https:k=this.options.cdn_http,k.replace(/\/*$/,"")+"/"+this.options.version}getPath(h,k){return this.getRoot(k)+"/"+h+this.options.suffix+".js"}}var d=new i("_pusher_dependencies","Pusher.DependenciesReceivers"),f=new u({cdn_http:c.cdn_http,cdn_https:c.cdn_https,version:c.VERSION,suffix:c.dependency_suffix,receivers:d});const p={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}};var v={buildLogSuffix:function(S){const h="See:",k=p.urls[S];if(!k)return"";let N;return k.fullUrl?N=k.fullUrl:k.path&&(N=p.baseUrl+k.path),N?`${h} ${N}`:""}},y;(function(S){S.UserAuthentication="user-authentication",S.ChannelAuthorization="channel-authorization"})(y||(y={}));class w extends Error{constructor(h){super(h),Object.setPrototypeOf(this,new.target.prototype)}}class b extends Error{constructor(h){super(h),Object.setPrototypeOf(this,new.target.prototype)}}class E extends Error{constructor(h){super(h),Object.setPrototypeOf(this,new.target.prototype)}}class _ extends Error{constructor(h){super(h),Object.setPrototypeOf(this,new.target.prototype)}}class g extends Error{constructor(h){super(h),Object.setPrototypeOf(this,new.target.prototype)}}class x extends Error{constructor(h){super(h),Object.setPrototypeOf(this,new.target.prototype)}}class C extends Error{constructor(h){super(h),Object.setPrototypeOf(this,new.target.prototype)}}class P extends Error{constructor(h){super(h),Object.setPrototypeOf(this,new.target.prototype)}}class O extends Error{constructor(h,k){super(k),this.status=h,Object.setPrototypeOf(this,new.target.prototype)}}var L=function(S,h,k,N,F){const ie=We.createXHR();ie.open("POST",k.endpoint,!0),ie.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var we in k.headers)ie.setRequestHeader(we,k.headers[we]);if(k.headersProvider!=null){let Ne=k.headersProvider();for(var we in Ne)ie.setRequestHeader(we,Ne[we])}return ie.onreadystatechange=function(){if(ie.readyState===4)if(ie.status===200){let Ne,Ue=!1;try{Ne=JSON.parse(ie.responseText),Ue=!0}catch{F(new O(200,`JSON returned from ${N.toString()} endpoint was invalid, yet status code was 200. Data was: ${ie.responseText}`),null)}Ue&&F(null,Ne)}else{let Ne="";switch(N){case y.UserAuthentication:Ne=v.buildLogSuffix("authenticationEndpoint");break;case y.ChannelAuthorization:Ne=`Clients must be authorized to join private or presence channels. ${v.buildLogSuffix("authorizationEndpoint")}`;break}F(new O(ie.status,`Unable to retrieve auth string from ${N.toString()} endpoint - received status: ${ie.status} from ${k.endpoint}. ${Ne}`),null)}},ie.send(h),ie};function U(S){return $(B(S))}var z=String.fromCharCode,R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",I=function(S){var h=S.charCodeAt(0);return h<128?S:h<2048?z(192|h>>>6)+z(128|h&63):z(224|h>>>12&15)+z(128|h>>>6&63)+z(128|h&63)},B=function(S){return S.replace(/[^\x00-\x7F]/g,I)},M=function(S){var h=[0,2,1][S.length%3],k=S.charCodeAt(0)<<16|(S.length>1?S.charCodeAt(1):0)<<8|(S.length>2?S.charCodeAt(2):0),N=[R.charAt(k>>>18),R.charAt(k>>>12&63),h>=2?"=":R.charAt(k>>>6&63),h>=1?"=":R.charAt(k&63)];return N.join("")},$=window.btoa||function(S){return S.replace(/[\s\S]{1,3}/g,M)};class K{constructor(h,k,N,F){this.clear=k,this.timer=h(()=>{this.timer&&(this.timer=F(this.timer))},N)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}var V=K;function Z(S){window.clearTimeout(S)}function q(S){window.clearInterval(S)}class oe extends V{constructor(h,k){super(setTimeout,Z,h,function(N){return k(),null})}}class j extends V{constructor(h,k){super(setInterval,q,h,function(N){return k(),N})}}var W={now(){return Date.now?Date.now():new Date().valueOf()},defer(S){return new oe(0,S)},method(S,...h){var k=Array.prototype.slice.call(arguments,1);return function(N){return N[S].apply(N,k.concat(arguments))}}},Y=W;function H(S,...h){for(var k=0;k<h.length;k++){var N=h[k];for(var F in N)N[F]&&N[F].constructor&&N[F].constructor===Object?S[F]=H(S[F]||{},N[F]):S[F]=N[F]}return S}function T(){for(var S=["Pusher"],h=0;h<arguments.length;h++)typeof arguments[h]=="string"?S.push(arguments[h]):S.push(X(arguments[h]));return S.join(" : ")}function J(S,h){var k=Array.prototype.indexOf;if(S===null)return-1;if(k&&S.indexOf===k)return S.indexOf(h);for(var N=0,F=S.length;N<F;N++)if(S[N]===h)return N;return-1}function le(S,h){for(var k in S)Object.prototype.hasOwnProperty.call(S,k)&&h(S[k],k,S)}function Oe(S){var h=[];return le(S,function(k,N){h.push(N)}),h}function ee(S){var h=[];return le(S,function(k){h.push(k)}),h}function Te(S,h,k){for(var N=0;N<S.length;N++)h.call(k||window,S[N],N,S)}function ae(S,h){for(var k=[],N=0;N<S.length;N++)k.push(h(S[N],N,S,k));return k}function ue(S,h){var k={};return le(S,function(N,F){k[F]=h(N)}),k}function D(S,h){h=h||function(F){return!!F};for(var k=[],N=0;N<S.length;N++)h(S[N],N,S,k)&&k.push(S[N]);return k}function de(S,h){var k={};return le(S,function(N,F){(h&&h(N,F,S,k)||N)&&(k[F]=N)}),k}function fe(S){var h=[];return le(S,function(k,N){h.push([N,k])}),h}function ce(S,h){for(var k=0;k<S.length;k++)if(h(S[k],k,S))return!0;return!1}function Ae(S,h){for(var k=0;k<S.length;k++)if(!h(S[k],k,S))return!1;return!0}function pe(S){return ue(S,function(h){return typeof h=="object"&&(h=X(h)),encodeURIComponent(U(h.toString()))})}function Ie(S){var h=de(S,function(N){return N!==void 0}),k=ae(fe(pe(h)),Y.method("join","=")).join("&");return k}function xe(S){var h=[],k=[];return function N(F,ie){var we,Ne,Ue;switch(typeof F){case"object":if(!F)return null;for(we=0;we<h.length;we+=1)if(h[we]===F)return{$ref:k[we]};if(h.push(F),k.push(ie),Object.prototype.toString.apply(F)==="[object Array]")for(Ue=[],we=0;we<F.length;we+=1)Ue[we]=N(F[we],ie+"["+we+"]");else{Ue={};for(Ne in F)Object.prototype.hasOwnProperty.call(F,Ne)&&(Ue[Ne]=N(F[Ne],ie+"["+JSON.stringify(Ne)+"]"))}return Ue;case"number":case"string":case"boolean":return F}}(S,"$")}function X(S){try{return JSON.stringify(S)}catch{return JSON.stringify(xe(S))}}class re{constructor(){this.globalLog=h=>{window.console&&window.console.log&&window.console.log(h)}}debug(...h){this.log(this.globalLog,h)}warn(...h){this.log(this.globalLogWarn,h)}error(...h){this.log(this.globalLogError,h)}globalLogWarn(h){window.console&&window.console.warn?window.console.warn(h):this.globalLog(h)}globalLogError(h){window.console&&window.console.error?window.console.error(h):this.globalLogWarn(h)}log(h,...k){var N=T.apply(this,arguments);Du.log?Du.log(N):Du.logToConsole&&h.bind(this)(N)}}var ye=new re,Ze=function(S,h,k,N,F){(k.headers!==void 0||k.headersProvider!=null)&&ye.warn(`To send headers with the ${N.toString()} request, you must use AJAX, rather than JSONP.`);var ie=S.nextAuthCallbackID.toString();S.nextAuthCallbackID++;var we=S.getDocument(),Ne=we.createElement("script");S.auth_callbacks[ie]=function(dt){F(null,dt)};var Ue="Pusher.auth_callbacks['"+ie+"']";Ne.src=k.endpoint+"?callback="+encodeURIComponent(Ue)+"&"+h;var ot=we.getElementsByTagName("head")[0]||we.documentElement;ot.insertBefore(Ne,ot.firstChild)},ct=Ze;class Se{constructor(h){this.src=h}send(h){var k=this,N="Error loading "+k.src;k.script=document.createElement("script"),k.script.id=h.id,k.script.src=k.src,k.script.type="text/javascript",k.script.charset="UTF-8",k.script.addEventListener?(k.script.onerror=function(){h.callback(N)},k.script.onload=function(){h.callback(null)}):k.script.onreadystatechange=function(){(k.script.readyState==="loaded"||k.script.readyState==="complete")&&h.callback(null)},k.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(k.errorScript=document.createElement("script"),k.errorScript.id=h.id+"_error",k.errorScript.text=h.name+"('"+N+"');",k.script.async=k.errorScript.async=!1):k.script.async=!0;var F=document.getElementsByTagName("head")[0];F.insertBefore(k.script,F.firstChild),k.errorScript&&F.insertBefore(k.errorScript,k.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 ut{constructor(h,k){this.url=h,this.data=k}send(h){if(!this.request){var k=Ie(this.data),N=this.url+"/"+h.number+"?"+k;this.request=We.createScriptRequest(N),this.request.send(h)}}cleanup(){this.request&&this.request.cleanup()}}var $t=function(S,h){return function(k,N){var F="http"+(h?"s":"")+"://",ie=F+(S.host||S.options.host)+S.options.path,we=We.createJSONPRequest(ie,k),Ne=We.ScriptReceivers.create(function(Ue,ot){s.remove(Ne),we.cleanup(),ot&&ot.host&&(S.host=ot.host),N&&N(Ue,ot)});we.send(Ne)}},xn={name:"jsonp",getAgent:$t},zt=xn;function Kt(S,h,k){var N=S+(h.useTLS?"s":""),F=h.useTLS?h.hostTLS:h.hostNonTLS;return N+"://"+F+k}function te(S,h){var k="/app/"+S,N="?protocol="+c.PROTOCOL+"&client=js&version="+c.VERSION+(h?"&"+h:"");return k+N}var _e={getInitial:function(S,h){var k=(h.httpPath||"")+te(S,"flash=false");return Kt("ws",h,k)}},Ee={getInitial:function(S,h){var k=(h.httpPath||"/pusher")+te(S);return Kt("http",h,k)}},He={getInitial:function(S,h){return Kt("http",h,h.httpPath||"/pusher")},getPath:function(S,h){return te(S)}};class G{constructor(){this._callbacks={}}get(h){return this._callbacks[se(h)]}add(h,k,N){var F=se(h);this._callbacks[F]=this._callbacks[F]||[],this._callbacks[F].push({fn:k,context:N})}remove(h,k,N){if(!h&&!k&&!N){this._callbacks={};return}var F=h?[se(h)]:Oe(this._callbacks);k||N?this.removeCallback(F,k,N):this.removeAllCallbacks(F)}removeCallback(h,k,N){Te(h,function(F){this._callbacks[F]=D(this._callbacks[F]||[],function(ie){return k&&k!==ie.fn||N&&N!==ie.context}),this._callbacks[F].length===0&&delete this._callbacks[F]},this)}removeAllCallbacks(h){Te(h,function(k){delete this._callbacks[k]},this)}}function se(S){return"_"+S}class be{constructor(h){this.callbacks=new G,this.global_callbacks=[],this.failThrough=h}bind(h,k,N){return this.callbacks.add(h,k,N),this}bind_global(h){return this.global_callbacks.push(h),this}unbind(h,k,N){return this.callbacks.remove(h,k,N),this}unbind_global(h){return h?(this.global_callbacks=D(this.global_callbacks||[],k=>k!==h),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(h,k,N){for(var F=0;F<this.global_callbacks.length;F++)this.global_callbacks[F](h,k);var ie=this.callbacks.get(h),we=[];if(N?we.push(k,N):k&&we.push(k),ie&&ie.length>0)for(var F=0;F<ie.length;F++)ie[F].fn.apply(ie[F].context||window,we);else this.failThrough&&this.failThrough(h,k);return this}}class Re extends be{constructor(h,k,N,F,ie){super(),this.initialize=We.transportConnectionInitializer,this.hooks=h,this.name=k,this.priority=N,this.key=F,this.options=ie,this.state="new",this.timeline=ie.timeline,this.activityTimeout=ie.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 h=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(h,this.options)}catch(k){return Y.defer(()=>{this.onError(k),this.changeState("closed")}),!1}return this.bindListeners(),ye.debug("Connecting",{transport:this.name,url:h}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(h){return this.state==="open"?(Y.defer(()=>{this.socket&&this.socket.send(h)}),!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(h){this.emit("error",{type:"WebSocketError",error:h}),this.timeline.error(this.buildTimelineMessage({error:h.toString()}))}onClose(h){h?this.changeState("closed",{code:h.code,reason:h.reason,wasClean:h.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(h){this.emit("message",h)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=h=>{this.onError(h)},this.socket.onclose=h=>{this.onClose(h)},this.socket.onmessage=h=>{this.onMessage(h)},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(h,k){this.state=h,this.timeline.info(this.buildTimelineMessage({state:h,params:k})),this.emit(h,k)}buildTimelineMessage(h){return H({cid:this.id},h)}}class ne{constructor(h){this.hooks=h}isSupported(h){return this.hooks.isSupported(h)}createConnection(h,k,N,F){return new Re(this.hooks,h,k,N,F)}}var he=new ne({urls:_e,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!We.getWebSocketAPI()},isSupported:function(){return!!We.getWebSocketAPI()},getSocket:function(S){return We.createWebSocket(S)}}),Ce={urls:Ee,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},st=H({getSocket:function(S){return We.HTTPFactory.createStreamingSocket(S)}},Ce),vt=H({getSocket:function(S){return We.HTTPFactory.createPollingSocket(S)}},Ce),Ut={isSupported:function(){return We.isXHRSupported()}},Vt=new ne(H({},st,Ut)),nn=new ne(H({},vt,Ut)),za={ws:he,xhr_streaming:Vt,xhr_polling:nn},Wn=za,Vi=new ne({file:"sockjs",urls:He,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(S,h){return new window.SockJS(S,null,{js_path:f.getPath("sockjs",{useTLS:h.useTLS}),ignore_null_origin:h.ignoreNullOrigin})},beforeOpen:function(S,h){S.send(JSON.stringify({path:h}))}}),Ao={isSupported:function(S){var h=We.isXDRSupported(S.useTLS);return h}},Io=new ne(H({},st,Ao)),Pe=new ne(H({},vt,Ao));Wn.xdr_streaming=Io,Wn.xdr_polling=Pe,Wn.sockjs=Vi;var rn=Wn;class Me extends be{constructor(){super();var h=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){h.emit("online")},!1),window.addEventListener("offline",function(){h.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var Ot=new Me;class gt{constructor(h,k,N){this.manager=h,this.transport=k,this.minPingDelay=N.minPingDelay,this.maxPingDelay=N.maxPingDelay,this.pingDelay=void 0}createConnection(h,k,N,F){F=H({},F,{activityTimeout:this.pingDelay});var ie=this.transport.createConnection(h,k,N,F),we=null,Ne=function(){ie.unbind("open",Ne),ie.bind("closed",Ue),we=Y.now()},Ue=ot=>{if(ie.unbind("closed",Ue),ot.code===1002||ot.code===1003)this.manager.reportDeath();else if(!ot.wasClean&&we){var dt=Y.now()-we;dt<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(dt/2,this.minPingDelay))}};return ie.bind("open",Ne),ie}isSupported(h){return this.manager.isAlive()&&this.transport.isSupported(h)}}const sa={decodeMessage:function(S){try{var h=JSON.parse(S.data),k=h.data;if(typeof k=="string")try{k=JSON.parse(h.data)}catch{}var N={event:h.event,channel:h.channel,data:k};return h.user_id&&(N.user_id=h.user_id),N}catch(F){throw{type:"MessageParseError",error:F,data:S.data}}},encodeMessage:function(S){return JSON.stringify(S)},processHandshake:function(S){var h=sa.decodeMessage(S);if(h.event==="pusher:connection_established"){if(!h.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:h.data.socket_id,activityTimeout:h.data.activity_timeout*1e3}}else{if(h.event==="pusher:error")return{action:this.getCloseAction(h.data),error:this.getCloseError(h.data)};throw"Invalid handshake"}},getCloseAction:function(S){return S.code<4e3?S.code>=1002&&S.code<=1004?"backoff":null:S.code===4e3?"tls_only":S.code<4100?"refused":S.code<4200?"backoff":S.code<4300?"retry":"refused"},getCloseError:function(S){return S.code!==1e3&&S.code!==1001?{type:"PusherError",data:{code:S.code,message:S.reason||S.message}}:null}};var vn=sa;class Mo extends be{constructor(h,k){super(),this.id=h,this.transport=k,this.activityTimeout=k.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(h){return this.transport.send(h)}send_event(h,k,N){var F={event:h,data:k};return N&&(F.channel=N),ye.debug("Event sent",F),this.send(vn.encodeMessage(F))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var h={message:N=>{var F;try{F=vn.decodeMessage(N)}catch(ie){this.emit("error",{type:"MessageParseError",error:ie,data:N.data})}if(F!==void 0){switch(ye.debug("Event recd",F),F.event){case"pusher:error":this.emit("error",{type:"PusherError",data:F.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",F)}},activity:()=>{this.emit("activity")},error:N=>{this.emit("error",N)},closed:N=>{k(),N&&N.code&&this.handleCloseEvent(N),this.transport=null,this.emit("closed")}},k=()=>{le(h,(N,F)=>{this.transport.unbind(F,N)})};le(h,(N,F)=>{this.transport.bind(F,N)})}handleCloseEvent(h){var k=vn.getCloseAction(h),N=vn.getCloseError(h);N&&this.emit("error",N),k&&this.emit(k,{action:k,error:N})}}class No{constructor(h,k){this.transport=h,this.callback=k,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=h=>{this.unbindListeners();var k;try{k=vn.processHandshake(h)}catch(N){this.finish("error",{error:N}),this.transport.close();return}k.action==="connected"?this.finish("connected",{connection:new Mo(k.id,this.transport),activityTimeout:k.activityTimeout}):(this.finish(k.action,{error:k.error}),this.transport.close())},this.onClosed=h=>{this.unbindListeners();var k=vn.getCloseAction(h)||"backoff",N=vn.getCloseError(h);this.finish(k,{error:N})},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(h,k){this.callback(H({transport:this.transport,action:h},k))}}class Fi{constructor(h,k){this.timeline=h,this.options=k||{}}send(h,k){this.timeline.isEmpty()||this.timeline.send(We.TimelineTransport.getAgent(this,h),k)}}class ji extends be{constructor(h,k){super(function(N,F){ye.debug("No callbacks on "+h+" for "+N)}),this.name=h,this.pusher=k,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(h,k){return k(null,{auth:""})}trigger(h,k){if(h.indexOf("client-")!==0)throw new w("Event '"+h+"' does not start with 'client-'");if(!this.subscribed){var N=v.buildLogSuffix("triggeringClientEvents");ye.warn(`Client event triggered before channel 'subscription_succeeded' event . ${N}`)}return this.pusher.send_event(h,k,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(h){var k=h.event,N=h.data;if(k==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(h);else if(k==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(h);else if(k.indexOf("pusher_internal:")!==0){var F={};this.emit(k,N,F)}}handleSubscriptionSucceededEvent(h){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",h.data)}handleSubscriptionCountEvent(h){h.data.subscription_count&&(this.subscriptionCount=h.data.subscription_count),this.emit("pusher:subscription_count",h.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(h,k)=>{h?(this.subscriptionPending=!1,ye.error(h.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:h.message},h instanceof O?{status:h.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:k.auth,channel_data:k.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 la extends ji{authorize(h,k){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:h},k)}}class ol{constructor(){this.reset()}get(h){return Object.prototype.hasOwnProperty.call(this.members,h)?{id:h,info:this.members[h]}:null}each(h){le(this.members,(k,N)=>{h(this.get(N))})}setMyID(h){this.myID=h}onSubscription(h){this.members=h.presence.hash,this.count=h.presence.count,this.me=this.get(this.myID)}addMember(h){return this.get(h.user_id)===null&&this.count++,this.members[h.user_id]=h.user_info,this.get(h.user_id)}removeMember(h){var k=this.get(h.user_id);return k&&(delete this.members[h.user_id],this.count--),k}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var Q=function(S,h,k,N){function F(ie){return ie instanceof k?ie:new k(function(we){we(ie)})}return new(k||(k=Promise))(function(ie,we){function Ne(dt){try{ot(N.next(dt))}catch(Ft){we(Ft)}}function Ue(dt){try{ot(N.throw(dt))}catch(Ft){we(Ft)}}function ot(dt){dt.done?ie(dt.value):F(dt.value).then(Ne,Ue)}ot((N=N.apply(S,h||[])).next())})};class ve extends la{constructor(h,k){super(h,k),this.members=new ol}authorize(h,k){super.authorize(h,(N,F)=>Q(this,void 0,void 0,function*(){if(!N)if(F=F,F.channel_data!=null){var ie=JSON.parse(F.channel_data);this.members.setMyID(ie.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 we=v.buildLogSuffix("authorizationEndpoint");ye.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${we}, or the user should be signed in.`),k("Invalid auth response");return}k(N,F)}))}handleEvent(h){var k=h.event;if(k.indexOf("pusher_internal:")===0)this.handleInternalEvent(h);else{var N=h.data,F={};h.user_id&&(F.user_id=h.user_id),this.emit(k,N,F)}}handleInternalEvent(h){var k=h.event,N=h.data;switch(k){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(h);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(h);break;case"pusher_internal:member_added":var F=this.members.addMember(N);this.emit("pusher:member_added",F);break;case"pusher_internal:member_removed":var ie=this.members.removeMember(N);ie&&this.emit("pusher:member_removed",ie);break}}handleSubscriptionSucceededEvent(h){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(h.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var Ge=o(1),wt=o(0);class Rr extends la{constructor(h,k,N){super(h,k),this.key=null,this.nacl=N}authorize(h,k){super.authorize(h,(N,F)=>{if(N){k(N,F);return}let ie=F.shared_secret;if(!ie){k(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=Object(wt.decode)(ie),delete F.shared_secret,k(null,F)})}trigger(h,k){throw new x("Client events are not currently supported for encrypted channels")}handleEvent(h){var k=h.event,N=h.data;if(k.indexOf("pusher_internal:")===0||k.indexOf("pusher:")===0){super.handleEvent(h);return}this.handleEncryptedEvent(k,N)}handleEncryptedEvent(h,k){if(!this.key){ye.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!k.ciphertext||!k.nonce){ye.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+k);return}let N=Object(wt.decode)(k.ciphertext);if(N.length<this.nacl.secretbox.overheadLength){ye.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${N.length}`);return}let F=Object(wt.decode)(k.nonce);if(F.length<this.nacl.secretbox.nonceLength){ye.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${F.length}`);return}let ie=this.nacl.secretbox.open(N,F,this.key);if(ie===null){ye.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,(we,Ne)=>{if(we){ye.error(`Failed to make a request to the authEndpoint: ${Ne}. Unable to fetch new key, so dropping encrypted event`);return}if(ie=this.nacl.secretbox.open(N,F,this.key),ie===null){ye.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(h,this.getDataToEmit(ie))});return}this.emit(h,this.getDataToEmit(ie))}getDataToEmit(h){let k=Object(Ge.decode)(h);try{return JSON.parse(k)}catch{return k}}}class il extends be{constructor(h,k){super(),this.state="initialized",this.connection=null,this.key=h,this.options=k,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 N=We.getNetwork();N.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),N.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}connect(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(h){return this.connection?this.connection.send(h):!1}send_event(h,k,N){return this.connection?this.connection.send_event(h,k,N):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var h=(k,N)=>{k?this.runner=this.strategy.connect(0,h):N.action==="error"?(this.emit("error",{type:"HandshakeError",error:N.error}),this.timeline.error({handshakeError:N.error})):(this.abortConnecting(),this.handshakeCallbacks[N.action](N))};this.runner=this.strategy.connect(0,h)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var h=this.abandonConnection();h.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(h){this.timeline.info({action:"retry",delay:h}),h>0&&this.emit("connecting_in",Math.round(h/1e3)),this.retryTimer=new oe(h||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new oe(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new oe(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 oe(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(h){return H({},h,{message:k=>{this.resetActivityCheck(),this.emit("message",k)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:k=>{this.emit("error",k)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(h){return H({},h,{connected:k=>{this.activityTimeout=Math.min(this.options.activityTimeout,k.activityTimeout,k.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(k.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let h=k=>N=>{N.error&&this.emit("error",{type:"WebSocketError",error:N.error}),k(N)};return{tls_only:h(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:h(()=>{this.disconnect()}),backoff:h(()=>{this.retryIn(1e3)}),retry:h(()=>{this.retryIn(0)})}}setConnection(h){this.connection=h;for(var k in this.connectionCallbacks)this.connection.bind(k,this.connectionCallbacks[k]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var h in this.connectionCallbacks)this.connection.unbind(h,this.connectionCallbacks[h]);var k=this.connection;return this.connection=null,k}}updateState(h,k){var N=this.state;if(this.state=h,N!==h){var F=h;F==="connected"&&(F+=" with new socket ID "+k.socket_id),ye.debug("State changed",N+" -> "+F),this.timeline.info({state:h,params:k}),this.emit("state_change",{previous:N,current:h}),this.emit(h,k)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class fh{constructor(){this.channels={}}add(h,k){return this.channels[h]||(this.channels[h]=Mu(h,k)),this.channels[h]}all(){return ee(this.channels)}find(h){return this.channels[h]}remove(h){var k=this.channels[h];return delete this.channels[h],k}disconnect(){le(this.channels,function(h){h.disconnect()})}}function Mu(S,h){if(S.indexOf("private-encrypted-")===0){if(h.config.nacl)return $r.createEncryptedChannel(S,h,h.config.nacl);let k="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",N=v.buildLogSuffix("encryptedChannelSupport");throw new x(`${k}. ${N}`)}else{if(S.indexOf("private-")===0)return $r.createPrivateChannel(S,h);if(S.indexOf("presence-")===0)return $r.createPresenceChannel(S,h);if(S.indexOf("#")===0)throw new b('Cannot create a channel with name "'+S+'".');return $r.createChannel(S,h)}}var sl={createChannels(){return new fh},createConnectionManager(S,h){return new il(S,h)},createChannel(S,h){return new ji(S,h)},createPrivateChannel(S,h){return new la(S,h)},createPresenceChannel(S,h){return new ve(S,h)},createEncryptedChannel(S,h,k){return new Rr(S,h,k)},createTimelineSender(S,h){return new Fi(S,h)},createHandshake(S,h){return new No(S,h)},createAssistantToTheTransportManager(S,h,k){return new gt(S,h,k)}},$r=sl;class ph{constructor(h){this.options=h||{},this.livesLeft=this.options.lives||1/0}getAssistant(h){return $r.createAssistantToTheTransportManager(this,h,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class Va{constructor(h,k){this.strategies=h,this.loop=!!k.loop,this.failFast=!!k.failFast,this.timeout=k.timeout,this.timeoutLimit=k.timeoutLimit}isSupported(){return ce(this.strategies,Y.method("isSupported"))}connect(h,k){var N=this.strategies,F=0,ie=this.timeout,we=null,Ne=(Ue,ot)=>{ot?k(null,ot):(F=F+1,this.loop&&(F=F%N.length),F<N.length?(ie&&(ie=ie*2,this.timeoutLimit&&(ie=Math.min(ie,this.timeoutLimit))),we=this.tryStrategy(N[F],h,{timeout:ie,failFast:this.failFast},Ne)):k(!0))};return we=this.tryStrategy(N[F],h,{timeout:ie,failFast:this.failFast},Ne),{abort:function(){we.abort()},forceMinPriority:function(Ue){h=Ue,we&&we.forceMinPriority(Ue)}}}tryStrategy(h,k,N,F){var ie=null,we=null;return N.timeout>0&&(ie=new oe(N.timeout,function(){we.abort(),F(!0)})),we=h.connect(k,function(Ne,Ue){Ne&&ie&&ie.isRunning()&&!N.failFast||(ie&&ie.ensureAborted(),F(Ne,Ue))}),{abort:function(){ie&&ie.ensureAborted(),we.abort()},forceMinPriority:function(Ne){we.forceMinPriority(Ne)}}}}class Nu{constructor(h){this.strategies=h}isSupported(){return ce(this.strategies,Y.method("isSupported"))}connect(h,k){return v6(this.strategies,h,function(N,F){return function(ie,we){if(F[N].error=ie,ie){g6(F)&&k(!0);return}Te(F,function(Ne){Ne.forceMinPriority(we.transport.priority)}),k(null,we)}})}}function v6(S,h,k){var N=ae(S,function(F,ie,we,Ne){return F.connect(h,k(ie,Ne))});return{abort:function(){Te(N,y6)},forceMinPriority:function(F){Te(N,function(ie){ie.forceMinPriority(F)})}}}function g6(S){return Ae(S,function(h){return!!h.error})}function y6(S){!S.error&&!S.aborted&&(S.abort(),S.aborted=!0)}class b6{constructor(h,k,N){this.strategy=h,this.transports=k,this.ttl=N.ttl||1800*1e3,this.usingTLS=N.useTLS,this.timeline=N.timeline}isSupported(){return this.strategy.isSupported()}connect(h,k){var N=this.usingTLS,F=w6(N),ie=F&&F.cacheSkipCount?F.cacheSkipCount:0,we=[this.strategy];if(F&&F.timestamp+this.ttl>=Y.now()){var Ne=this.transports[F.transport];Ne&&(["ws","wss"].includes(F.transport)||ie>3?(this.timeline.info({cached:!0,transport:F.transport,latency:F.latency}),we.push(new Va([Ne],{timeout:F.latency*2+1e3,failFast:!0}))):ie++)}var Ue=Y.now(),ot=we.pop().connect(h,function dt(Ft,ul){Ft?(mh(N),we.length>0?(Ue=Y.now(),ot=we.pop().connect(h,dt)):k(Ft)):(k6(N,ul.transport.name,Y.now()-Ue,ie),k(null,ul))});return{abort:function(){ot.abort()},forceMinPriority:function(dt){h=dt,ot&&ot.forceMinPriority(dt)}}}}function Ou(S){return"pusherTransport"+(S?"TLS":"NonTLS")}function w6(S){var h=We.getLocalStorage();if(h)try{var k=h[Ou(S)];if(k)return JSON.parse(k)}catch{mh(S)}return null}function k6(S,h,k,N){var F=We.getLocalStorage();if(F)try{F[Ou(S)]=X({timestamp:Y.now(),transport:h,latency:k,cacheSkipCount:N})}catch{}}function mh(S){var h=We.getLocalStorage();if(h)try{delete h[Ou(S)]}catch{}}class ll{constructor(h,{delay:k}){this.strategy=h,this.options={delay:k}}isSupported(){return this.strategy.isSupported()}connect(h,k){var N=this.strategy,F,ie=new oe(this.options.delay,function(){F=N.connect(h,k)});return{abort:function(){ie.ensureAborted(),F&&F.abort()},forceMinPriority:function(we){h=we,F&&F.forceMinPriority(we)}}}}class Hi{constructor(h,k,N){this.test=h,this.trueBranch=k,this.falseBranch=N}isSupported(){var h=this.test()?this.trueBranch:this.falseBranch;return h.isSupported()}connect(h,k){var N=this.test()?this.trueBranch:this.falseBranch;return N.connect(h,k)}}class _6{constructor(h){this.strategy=h}isSupported(){return this.strategy.isSupported()}connect(h,k){var N=this.strategy.connect(h,function(F,ie){ie&&N.abort(),k(F,ie)});return N}}function Ui(S){return function(){return S.isSupported()}}var S6=function(S,h,k){var N={};function F(xh,_k,Sk,Ck,xk){var Eh=k(S,xh,_k,Sk,Ck,xk);return N[xh]=Eh,Eh}var ie=Object.assign({},h,{hostNonTLS:S.wsHost+":"+S.wsPort,hostTLS:S.wsHost+":"+S.wssPort,httpPath:S.wsPath}),we=Object.assign({},ie,{useTLS:!0}),Ne=Object.assign({},h,{hostNonTLS:S.httpHost+":"+S.httpPort,hostTLS:S.httpHost+":"+S.httpsPort,httpPath:S.httpPath}),Ue={loop:!0,timeout:15e3,timeoutLimit:6e4},ot=new ph({minPingDelay:1e4,maxPingDelay:S.activityTimeout}),dt=new ph({lives:2,minPingDelay:1e4,maxPingDelay:S.activityTimeout}),Ft=F("ws","ws",3,ie,ot),ul=F("wss","ws",3,we,ot),gk=F("sockjs","sockjs",1,Ne),bh=F("xhr_streaming","xhr_streaming",1,Ne,dt),yk=F("xdr_streaming","xdr_streaming",1,Ne,dt),wh=F("xhr_polling","xhr_polling",1,Ne),bk=F("xdr_polling","xdr_polling",1,Ne),kh=new Va([Ft],Ue),wk=new Va([ul],Ue),kk=new Va([gk],Ue),_h=new Va([new Hi(Ui(bh),bh,yk)],Ue),Sh=new Va([new Hi(Ui(wh),wh,bk)],Ue),Ch=new Va([new Hi(Ui(_h),new Nu([_h,new ll(Sh,{delay:4e3})]),Sh)],Ue),Ru=new Hi(Ui(Ch),Ch,kk),$u;return h.useTLS?$u=new Nu([kh,new ll(Ru,{delay:2e3})]):$u=new Nu([kh,new ll(wk,{delay:2e3}),new ll(Ru,{delay:5e3})]),new b6(new _6(new Hi(Ui(Ft),$u,Ru)),N,{ttl:18e5,timeline:h.timeline,useTLS:h.useTLS})},C6=S6,x6=function(){var S=this;S.timeline.info(S.buildTimelineMessage({transport:S.name+(S.options.useTLS?"s":"")})),S.hooks.isInitialized()?S.changeState("initialized"):S.hooks.file?(S.changeState("initializing"),f.load(S.hooks.file,{useTLS:S.options.useTLS},function(h,k){S.hooks.isInitialized()?(S.changeState("initialized"),k(!0)):(h&&S.onError(h),S.onClose(),k(!1))})):S.onClose()},E6={getRequest:function(S){var h=new window.XDomainRequest;return h.ontimeout=function(){S.emit("error",new E),S.close()},h.onerror=function(k){S.emit("error",k),S.close()},h.onprogress=function(){h.responseText&&h.responseText.length>0&&S.onChunk(200,h.responseText)},h.onload=function(){h.responseText&&h.responseText.length>0&&S.onChunk(200,h.responseText),S.emit("finished",200),S.close()},h},abortRequest:function(S){S.ontimeout=S.onerror=S.onprogress=S.onload=null,S.abort()}},T6=E6;const P6=256*1024;class A6 extends be{constructor(h,k,N){super(),this.hooks=h,this.method=k,this.url=N}start(h){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},We.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(h)}close(){this.unloader&&(We.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(h,k){for(;;){var N=this.advanceBuffer(k);if(N)this.emit("chunk",{status:h,data:N});else break}this.isBufferTooLong(k)&&this.emit("buffer_too_long")}advanceBuffer(h){var k=h.slice(this.position),N=k.indexOf(`
633
- `);return N!==-1?(this.position+=N+1,k.slice(0,N)):null}isBufferTooLong(h){return this.position===h.length&&h.length>P6}}var Bu;(function(S){S[S.CONNECTING=0]="CONNECTING",S[S.OPEN=1]="OPEN",S[S.CLOSED=3]="CLOSED"})(Bu||(Bu={}));var Fa=Bu,I6=1;class M6{constructor(h,k){this.hooks=h,this.session=vh(1e3)+"/"+L6(8),this.location=N6(k),this.readyState=Fa.CONNECTING,this.openStream()}send(h){return this.sendRaw(JSON.stringify([h]))}ping(){this.hooks.sendHeartbeat(this)}close(h,k){this.onClose(h,k,!0)}sendRaw(h){if(this.readyState===Fa.OPEN)try{return We.createSocketRequest("POST",hh(O6(this.location,this.session))).start(h),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(h,k,N){this.closeStream(),this.readyState=Fa.CLOSED,this.onclose&&this.onclose({code:h,reason:k,wasClean:N})}onChunk(h){if(h.status===200){this.readyState===Fa.OPEN&&this.onActivity();var k,N=h.data.slice(0,1);switch(N){case"o":k=JSON.parse(h.data.slice(1)||"{}"),this.onOpen(k);break;case"a":k=JSON.parse(h.data.slice(1)||"[]");for(var F=0;F<k.length;F++)this.onEvent(k[F]);break;case"m":k=JSON.parse(h.data.slice(1)||"null"),this.onEvent(k);break;case"h":this.hooks.onHeartbeat(this);break;case"c":k=JSON.parse(h.data.slice(1)||"[]"),this.onClose(k[0],k[1],!0);break}}}onOpen(h){this.readyState===Fa.CONNECTING?(h&&h.hostname&&(this.location.base=B6(this.location.base,h.hostname)),this.readyState=Fa.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(h){this.readyState===Fa.OPEN&&this.onmessage&&this.onmessage({data:h})}onActivity(){this.onactivity&&this.onactivity()}onError(h){this.onerror&&this.onerror(h)}openStream(){this.stream=We.createSocketRequest("POST",hh(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",h=>{this.onChunk(h)}),this.stream.bind("finished",h=>{this.hooks.onFinished(this,h)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(h){Y.defer(()=>{this.onError(h),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function N6(S){var h=/([^\?]*)\/*(\??.*)/.exec(S);return{base:h[1],queryString:h[2]}}function O6(S,h){return S.base+"/"+h+"/xhr_send"}function hh(S){var h=S.indexOf("?")===-1?"?":"&";return S+h+"t="+ +new Date+"&n="+I6++}function B6(S,h){var k=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(S);return k[1]+h+k[3]}function vh(S){return We.randomInt(S)}function L6(S){for(var h=[],k=0;k<S;k++)h.push(vh(32).toString(32));return h.join("")}var D6=M6,R6={getReceiveURL:function(S,h){return S.base+"/"+h+"/xhr_streaming"+S.queryString},onHeartbeat:function(S){S.sendRaw("[]")},sendHeartbeat:function(S){S.sendRaw("[]")},onFinished:function(S,h){S.onClose(1006,"Connection interrupted ("+h+")",!1)}},$6=R6,z6={getReceiveURL:function(S,h){return S.base+"/"+h+"/xhr"+S.queryString},onHeartbeat:function(){},sendHeartbeat:function(S){S.sendRaw("[]")},onFinished:function(S,h){h===200?S.reconnect():S.onClose(1006,"Connection interrupted ("+h+")",!1)}},V6=z6,F6={getRequest:function(S){var h=We.getXHRAPI(),k=new h;return k.onreadystatechange=k.onprogress=function(){switch(k.readyState){case 3:k.responseText&&k.responseText.length>0&&S.onChunk(k.status,k.responseText);break;case 4:k.responseText&&k.responseText.length>0&&S.onChunk(k.status,k.responseText),S.emit("finished",k.status),S.close();break}},k},abortRequest:function(S){S.onreadystatechange=null,S.abort()}},j6=F6,H6={createStreamingSocket(S){return this.createSocket($6,S)},createPollingSocket(S){return this.createSocket(V6,S)},createSocket(S,h){return new D6(S,h)},createXHR(S,h){return this.createRequest(j6,S,h)},createRequest(S,h,k){return new A6(S,h,k)}},gh=H6;gh.createXDR=function(S,h){return this.createRequest(T6,S,h)};var U6=gh,W6={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:s,DependenciesReceivers:d,getDefaultStrategy:C6,Transports:rn,transportConnectionInitializer:x6,HTTPFactory:U6,TimelineTransport:zt,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(S){window.Pusher=S;var h=()=>{this.onDocumentBody(S.ready)};window.JSON?h():f.load("json2",{},h)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:L,jsonp:ct}},onDocumentBody(S){document.body?S():setTimeout(()=>{this.onDocumentBody(S)},0)},createJSONPRequest(S,h){return new ut(S,h)},createScriptRequest(S){return new Se(S)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var S=this.getXHRAPI();return new S},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return Ot},createWebSocket(S){var h=this.getWebSocketAPI();return new h(S)},createSocketRequest(S,h){if(this.isXHRSupported())return this.HTTPFactory.createXHR(S,h);if(this.isXDRSupported(h.indexOf("https:")===0))return this.HTTPFactory.createXDR(S,h);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var S=this.getXHRAPI();return!!S&&new S().withCredentials!==void 0},isXDRSupported(S){var h=S?"https:":"http:",k=this.getProtocol();return!!window.XDomainRequest&&k===h},addUnloadListener(S){window.addEventListener!==void 0?window.addEventListener("unload",S,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",S)},removeUnloadListener(S){window.addEventListener!==void 0?window.removeEventListener("unload",S,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",S)},randomInt(S){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*S)}},We=W6,Lu;(function(S){S[S.ERROR=3]="ERROR",S[S.INFO=6]="INFO",S[S.DEBUG=7]="DEBUG"})(Lu||(Lu={}));var cl=Lu;class q6{constructor(h,k,N){this.key=h,this.session=k,this.events=[],this.options=N||{},this.sent=0,this.uniqueID=0}log(h,k){h<=this.options.level&&(this.events.push(H({},k,{timestamp:Y.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(h){this.log(cl.ERROR,h)}info(h){this.log(cl.INFO,h)}debug(h){this.log(cl.DEBUG,h)}isEmpty(){return this.events.length===0}send(h,k){var N=H({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=[],h(N,(F,ie)=>{F||this.sent++,k&&k(F,ie)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class Y6{constructor(h,k,N,F){this.name=h,this.priority=k,this.transport=N,this.options=F||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(h,k){if(this.isSupported()){if(this.priority<h)return yh(new _,k)}else return yh(new P,k);var N=!1,F=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),ie=null,we=function(){F.unbind("initialized",we),F.connect()},Ne=function(){ie=$r.createHandshake(F,function(Ft){N=!0,dt(),k(null,Ft)})},Ue=function(Ft){dt(),k(Ft)},ot=function(){dt();var Ft;Ft=X(F),k(new g(Ft))},dt=function(){F.unbind("initialized",we),F.unbind("open",Ne),F.unbind("error",Ue),F.unbind("closed",ot)};return F.bind("initialized",we),F.bind("open",Ne),F.bind("error",Ue),F.bind("closed",ot),F.initialize(),{abort:()=>{N||(dt(),ie?ie.close():F.close())},forceMinPriority:Ft=>{N||this.priority<Ft&&(ie?ie.close():F.close())}}}}function yh(S,h){return Y.defer(function(){h(S)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:G6}=We;var K6=function(S,h,k,N,F,ie){var we=G6[k];if(!we)throw new C(k);var Ne=(!S.enabledTransports||J(S.enabledTransports,h)!==-1)&&(!S.disabledTransports||J(S.disabledTransports,h)===-1),Ue;return Ne?(F=Object.assign({ignoreNullOrigin:S.ignoreNullOrigin},F),Ue=new Y6(h,N,ie?ie.getAssistant(we):we,F)):Ue=X6,Ue},X6={isSupported:function(){return!1},connect:function(S,h){var k=Y.defer(function(){h(new P)});return{abort:function(){k.ensureAborted()},forceMinPriority:function(){}}}};function J6(S){if(S==null)throw"You must pass an options object";if(S.cluster==null)throw"Options object must provide a cluster";"disableStats"in S&&ye.warn("The disableStats option is deprecated in favor of enableStats")}const Q6=(S,h)=>{var k="socket_id="+encodeURIComponent(S.socketId);for(var N in h.params)k+="&"+encodeURIComponent(N)+"="+encodeURIComponent(h.params[N]);if(h.paramsProvider!=null){let F=h.paramsProvider();for(var N in F)k+="&"+encodeURIComponent(N)+"="+encodeURIComponent(F[N])}return k};var Z6=S=>{if(typeof We.getAuthorizers()[S.transport]>"u")throw`'${S.transport}' is not a recognized auth transport`;return(h,k)=>{const N=Q6(h,S);We.getAuthorizers()[S.transport](We,N,S,y.UserAuthentication,k)}};const ek=(S,h)=>{var k="socket_id="+encodeURIComponent(S.socketId);k+="&channel_name="+encodeURIComponent(S.channelName);for(var N in h.params)k+="&"+encodeURIComponent(N)+"="+encodeURIComponent(h.params[N]);if(h.paramsProvider!=null){let F=h.paramsProvider();for(var N in F)k+="&"+encodeURIComponent(N)+"="+encodeURIComponent(F[N])}return k};var tk=S=>{if(typeof We.getAuthorizers()[S.transport]>"u")throw`'${S.transport}' is not a recognized auth transport`;return(h,k)=>{const N=ek(h,S);We.getAuthorizers()[S.transport](We,N,S,y.ChannelAuthorization,k)}};const nk=(S,h,k)=>{const N={authTransport:h.transport,authEndpoint:h.endpoint,auth:{params:h.params,headers:h.headers}};return(F,ie)=>{const we=S.channel(F.channelName);k(we,N).authorize(F.socketId,ie)}};function rk(S,h){let k={activityTimeout:S.activityTimeout||c.activityTimeout,cluster:S.cluster,httpPath:S.httpPath||c.httpPath,httpPort:S.httpPort||c.httpPort,httpsPort:S.httpsPort||c.httpsPort,pongTimeout:S.pongTimeout||c.pongTimeout,statsHost:S.statsHost||c.stats_host,unavailableTimeout:S.unavailableTimeout||c.unavailableTimeout,wsPath:S.wsPath||c.wsPath,wsPort:S.wsPort||c.wsPort,wssPort:S.wssPort||c.wssPort,enableStats:lk(S),httpHost:ak(S),useTLS:sk(S),wsHost:ok(S),userAuthenticator:ck(S),channelAuthorizer:dk(S,h)};return"disabledTransports"in S&&(k.disabledTransports=S.disabledTransports),"enabledTransports"in S&&(k.enabledTransports=S.enabledTransports),"ignoreNullOrigin"in S&&(k.ignoreNullOrigin=S.ignoreNullOrigin),"timelineParams"in S&&(k.timelineParams=S.timelineParams),"nacl"in S&&(k.nacl=S.nacl),k}function ak(S){return S.httpHost?S.httpHost:S.cluster?`sockjs-${S.cluster}.pusher.com`:c.httpHost}function ok(S){return S.wsHost?S.wsHost:ik(S.cluster)}function ik(S){return`ws-${S}.pusher.com`}function sk(S){return We.getProtocol()==="https:"?!0:S.forceTLS!==!1}function lk(S){return"enableStats"in S?S.enableStats:"disableStats"in S?!S.disableStats:!1}function ck(S){const h=Object.assign(Object.assign({},c.userAuthentication),S.userAuthentication);return"customHandler"in h&&h.customHandler!=null?h.customHandler:Z6(h)}function uk(S,h){let k;return"channelAuthorization"in S?k=Object.assign(Object.assign({},c.channelAuthorization),S.channelAuthorization):(k={transport:S.authTransport||c.authTransport,endpoint:S.authEndpoint||c.authEndpoint},"auth"in S&&("params"in S.auth&&(k.params=S.auth.params),"headers"in S.auth&&(k.headers=S.auth.headers)),"authorizer"in S&&(k.customHandler=nk(h,k,S.authorizer))),k}function dk(S,h){const k=uk(S,h);return"customHandler"in k&&k.customHandler!=null?k.customHandler:tk(k)}class fk extends be{constructor(h){super(function(k,N){ye.debug(`No callbacks on watchlist events for ${k}`)}),this.pusher=h,this.bindWatchlistInternalEvent()}handleEvent(h){h.data.events.forEach(k=>{this.emit(k.name,k)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",h=>{var k=h.event;k==="pusher_internal:watchlist_events"&&this.handleEvent(h)})}}function pk(){let S,h;return{promise:new Promise((N,F)=>{S=N,h=F}),resolve:S,reject:h}}var mk=pk;class hk extends be{constructor(h){super(function(k,N){ye.debug("No callbacks on user for "+k)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(k,N)=>{if(k){ye.warn(`Error during signin: ${k}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:N.auth,user_data:N.user_data})},this.pusher=h,this.pusher.connection.bind("state_change",({previous:k,current:N})=>{k!=="connected"&&N==="connected"&&this._signin(),k==="connected"&&N!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new fk(h),this.pusher.connection.bind("message",k=>{var N=k.event;N==="pusher:signin_success"&&this._onSigninSuccess(k.data),this.serverToUserChannel&&this.serverToUserChannel.name===k.channel&&this.serverToUserChannel.handleEvent(k)})}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(h){try{this.user_data=JSON.parse(h.user_data)}catch{ye.error(`Failed parsing user data after signin: ${h.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){ye.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const h=k=>{k.subscriptionPending&&k.subscriptionCancelled?k.reinstateSubscription():!k.subscriptionPending&&this.pusher.connection.state==="connected"&&k.subscribe()};this.serverToUserChannel=new ji(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((k,N)=>{k.indexOf("pusher_internal:")===0||k.indexOf("pusher:")===0||this.emit(k,N)}),h(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:h,resolve:k}=mk();h.done=!1;const N=()=>{h.done=!0};h.then(N).catch(N),this.signinDonePromise=h,this._signinDoneResolve=k}}class Xt{static ready(){Xt.isReady=!0;for(var h=0,k=Xt.instances.length;h<k;h++)Xt.instances[h].connect()}static getClientFeatures(){return Oe(de({ws:We.Transports.ws},function(h){return h.isSupported({})}))}constructor(h,k){vk(h),J6(k),this.key=h,this.config=rk(k,this),this.channels=$r.createChannels(),this.global_emitter=new be,this.sessionID=We.randomInt(1e9),this.timeline=new q6(this.key,this.sessionID,{cluster:this.config.cluster,features:Xt.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:cl.INFO,version:c.VERSION}),this.config.enableStats&&(this.timelineSender=$r.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+We.TimelineTransport.name}));var N=F=>We.getDefaultStrategy(this.config,F,K6);this.connection=$r.createConnectionManager(this.key,{getStrategy:N,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",F=>{var ie=F.event,we=ie.indexOf("pusher_internal:")===0;if(F.channel){var Ne=this.channel(F.channel);Ne&&Ne.handleEvent(F)}we||this.global_emitter.emit(F.event,F.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",F=>{ye.warn(F)}),Xt.instances.push(this),this.timeline.info({instances:Xt.instances.length}),this.user=new hk(this),Xt.isReady&&this.connect()}channel(h){return this.channels.find(h)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var h=this.connection.isUsingTLS(),k=this.timelineSender;this.timelineSenderTimer=new j(6e4,function(){k.send(h)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(h,k,N){return this.global_emitter.bind(h,k,N),this}unbind(h,k,N){return this.global_emitter.unbind(h,k,N),this}bind_global(h){return this.global_emitter.bind_global(h),this}unbind_global(h){return this.global_emitter.unbind_global(h),this}unbind_all(h){return this.global_emitter.unbind_all(),this}subscribeAll(){var h;for(h in this.channels.channels)this.channels.channels.hasOwnProperty(h)&&this.subscribe(h)}subscribe(h){var k=this.channels.add(h,this);return k.subscriptionPending&&k.subscriptionCancelled?k.reinstateSubscription():!k.subscriptionPending&&this.connection.state==="connected"&&k.subscribe(),k}unsubscribe(h){var k=this.channels.find(h);k&&k.subscriptionPending?k.cancelSubscription():(k=this.channels.remove(h),k&&k.subscribed&&k.unsubscribe())}send_event(h,k,N){return this.connection.send_event(h,k,N)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}Xt.instances=[],Xt.isReady=!1,Xt.logToConsole=!1,Xt.Runtime=We,Xt.ScriptReceivers=We.ScriptReceivers,Xt.DependenciesReceivers=We.DependenciesReceivers,Xt.auth_callbacks=We.auth_callbacks;var Du=a.default=Xt;function vk(S){if(S==null)throw"You must pass your app key when you instantiate Pusher."}We.setup(Xt)}])})}(bd)),bd.exports}var kR=wR();function _R(e){return{all:e=e||new Map,on:function(t,n){var a=e.get(t);a?a.push(n):e.set(t,[n])},off:function(t,n){var a=e.get(t);a&&(n?a.splice(a.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var a=e.get(t);a&&a.slice().map(function(o){o(n)}),(a=e.get("*"))&&a.slice().map(function(o){o(t,n)})}}}const ft={listeners:r.ref([]),echo:null,key:null,authorizer:null,emitter:_R(),casters:r.ref([])};function Fb(e="unique"){return ft.listeners.value.some(t=>t.name===e)||ft.listeners.value?.push({name:e,isListening:r.ref(!1)}),ft.listeners.value.find(t=>t.name===e)}function jb(e,t){ft.echo=new bR({broadcaster:"pusher",client:kR.ConnectionManager,key:e,authorizer:t,cluster:"eu",forceTLS:!0,encrypted:!0})}function SR(e=null){const t=Fb(e??void 0);function n(c){if(ft.echo===null)throw new Error("Echo is not initialized");return ft.casters[c]=ft.echo.join(c),ft.casters[c]}function a(c,u,d){if(ft.echo===null)throw new Error("Echo is not initialized");const f=d??Object.keys(ft.casters)[0];ft.casters[f]?.whisper?.(c,u)}function o(c,u,d){if(ft.echo===null)throw new Error("Echo is not initialized");const f=d??Object.keys(ft.casters)[0];if(typeof ft.casters[f]?.listenForWhisper=="function"){ft.casters[f]?.listenForWhisper?.(c,u);return}throw new Error(`Nothing to whisper to on this channel ${c}-${f}`)}function i(c){if(ft.echo===null)throw new Error("Echo is not initialized");ft.echo.leave(c),delete ft.casters[c]}function s(c,u,d,f=!0,p=!1){if(ft.echo===null)throw new Error("Echo is not initialized");const m=`${c}.${u}`,v=ft.emitter.all.has(m);t&&(t.isListening=!0),!(v&&p)&&(v||(f?ft.echo.private(c):ft.echo.channel(c)).listen(`.${u}`,w=>{ft.emitter.emit(m,w)}),ft.emitter.on(m,async y=>{const w=await d(y)??!1;t&&(t.isListening=!1),w&&l(c,u)}))}function l(c,u){if(ft.echo===null)throw new Error("Echo is not initialized");ft.emitter.off(`${c}.${u}`),ft.emitter.all.delete(`${c}.${u}`),ft.echo.leave(c),t.isListening=!1}return{on:s,off:l,join:n,leave:i,whisper:a,listen:o,listener:t,state:ft}}const Ro={instances:r.ref([]),shortcuts:r.ref([]),item:r.ref()};function _l(e){e?.instance?.unmount(),e?.element?.remove()}function fu(){const e=r.ref(),t=r.inject("plugins",cg.get(window.UILibraryOptions,"plugins"));function n(s){Ro.shortcuts.value=s}async function a(s,l,c){Ro.instances.value.forEach(_l);const u=document.createElement("div");document.body.append(u);let d=null,f=null;return Ro.item.value=s,new Promise(p=>{d=r.createApp(Nb,{item:s,confirmed:c,event:l,onClose:m=>{p(m)}}),t?.forEach(m=>{d?.use(m)}),f=d.mount(u),f.open(),e.value={ref:f,instance:d,element:u},Ro.instances.value.push(e.value)}).finally(()=>{d&&setTimeout(()=>{_l({instance:d,element:u})},500)})}async function o(){return e.value?.ref.close(),setTimeout(()=>{e.value&&_l(e.value)},300),Promise.resolve()}function i(){Ro.instances.value.forEach(s=>{s?.ref.close(),setTimeout(()=>{s&&_l(s)},300)})}return{...Ro,instance:e,open:a,close:o,closeAll:i,setShortcuts:n}}function Hb(e,t){const n=r.ref({x:0,y:0}),a=document.createElement("div");a.style.position="absolute",a.style.left=`${n.value.x}px`,a.style.top=`${n.value.y}px`,r.onMounted(()=>{document.body.append(a)}),r.onUnmounted(()=>{a.remove()});function o(i,s){n.value={x:i,y:s},a.style.left=`${i}px`,a.style.top=`${s}px`,Hs(a,e,t)}return{clientPoint:n,setPosition:o}}function Hs(e,t,n){const a="aria-expanded",o=r.ref(n?.active??!1),i=r.ref(),s=r.ref(),l=r.ref(),c=r.ref(),u=r.ref(),d=n?.placement??"bottom-start",f="clippingAncestors",p=n?.center??!1,m=n?.mainAxis??0,v=n?.crossAxis??2,y=r.ref();function w(g,x){i.value=g,s.value=x,l.value=new MutationObserver(P=>{const O=P[0].target.getAttribute(a);o.value=O==="true"}),c.value=new MutationObserver(async()=>{E(),await new Promise(P=>{setTimeout(P,500)}),E()}),i.value&&s.value&&(l.value.observe(i.value,{attributes:!0,attributeFilter:[a]}),E());const C=typeof n?.sizeElement=="string"?document.querySelector(n.sizeElement):n?.sizeElement;C&&c.value.observe(C,{childList:!0,subtree:!0})}function b(g){const x=r.unref(g);return typeof x=="function"?x():x}function E(){if(!i.value||!s.value){console.error("Reference en/or floating element not found");return}u.value=XL(i.value,s.value,async()=>{if(!i.value||!s.value){console.error("reference and/or floating element not found");return}y.value=await tD(i.value,s.value,{placement:d,middleware:[Eb({boundary:f}),xb(({rects:x})=>{const C=-x.floating.width/2+x.reference.width/2;return{mainAxis:m,crossAxis:p?C:v}}),...n?.sizeElement?[QL({apply({elements:x}){const C=x.reference.getBoundingClientRect(),P=C.x+C.width,L=(typeof n?.sizeElement=="string"?document.querySelector(n.sizeElement):n?.sizeElement)?.getBoundingClientRect()?.x;P&&L&&Object.assign(x.floating.style,{width:`${Math.max(0,L-P)}px`})}})]:[],...n?.middleware??[]]});const g={left:"0",top:"0",transform:`translate(${Math.round(y.value.x)}px,${Math.round(y.value.y)}px)`};Object.assign(s.value.style,g),s.value.dataset.position=y.value.placement})}function _(){delete s.value?.dataset.position,u.value?.()}return r.watch(o,()=>{E()}),Zt.tryOnMounted(()=>{const g=b(e),x=b(t);if(g&&x){w(g,x);return}console.error("Reference or floating element not found",g,x)}),r.onUnmounted(()=>{_(),l.value?.disconnect()}),{position:y,isActive:o,setComputedPosition:E}}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const CR=e=>e!=null;/*!
632
+ */var T0;function wR(){return T0||(T0=1,function(e,t){(function(a,o){e.exports=o()})(window,function(){return function(n){var a={};function o(i){if(a[i])return a[i].exports;var s=a[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=a,o.d=function(i,s,l){o.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:l})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,s){if(s&1&&(i=o(i)),s&8||s&4&&typeof i=="object"&&i&&i.__esModule)return i;var l=Object.create(null);if(o.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:i}),s&2&&typeof i!="string")for(var c in i)o.d(l,c,(function(u){return i[u]}).bind(null,c));return l},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=2)}([function(n,a,o){var i=this&&this.__extends||function(){var y=function(w,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,_){E.__proto__=_}||function(E,_){for(var v in _)_.hasOwnProperty(v)&&(E[v]=_[v])},y(w,b)};return function(w,b){y(w,b);function E(){this.constructor=w}w.prototype=b===null?Object.create(b):(E.prototype=b.prototype,new E)}}();Object.defineProperty(a,"__esModule",{value:!0});var s=256,l=function(){function y(w){w===void 0&&(w="="),this._paddingCharacter=w}return y.prototype.encodedLength=function(w){return this._paddingCharacter?(w+2)/3*4|0:(w*8+5)/6|0},y.prototype.encode=function(w){for(var b="",E=0;E<w.length-2;E+=3){var _=w[E]<<16|w[E+1]<<8|w[E+2];b+=this._encodeByte(_>>>18&63),b+=this._encodeByte(_>>>12&63),b+=this._encodeByte(_>>>6&63),b+=this._encodeByte(_>>>0&63)}var v=w.length-E;if(v>0){var _=w[E]<<16|(v===2?w[E+1]<<8:0);b+=this._encodeByte(_>>>18&63),b+=this._encodeByte(_>>>12&63),v===2?b+=this._encodeByte(_>>>6&63):b+=this._paddingCharacter||"",b+=this._paddingCharacter||""}return b},y.prototype.maxDecodedLength=function(w){return this._paddingCharacter?w/4*3|0:(w*6+7)/8|0},y.prototype.decodedLength=function(w){return this.maxDecodedLength(w.length-this._getPaddingLength(w))},y.prototype.decode=function(w){if(w.length===0)return new Uint8Array(0);for(var b=this._getPaddingLength(w),E=w.length-b,_=new Uint8Array(this.maxDecodedLength(E)),v=0,x=0,C=0,P=0,O=0,A=0,L=0;x<E-4;x+=4)P=this._decodeChar(w.charCodeAt(x+0)),O=this._decodeChar(w.charCodeAt(x+1)),A=this._decodeChar(w.charCodeAt(x+2)),L=this._decodeChar(w.charCodeAt(x+3)),_[v++]=P<<2|O>>>4,_[v++]=O<<4|A>>>2,_[v++]=A<<6|L,C|=P&s,C|=O&s,C|=A&s,C|=L&s;if(x<E-1&&(P=this._decodeChar(w.charCodeAt(x)),O=this._decodeChar(w.charCodeAt(x+1)),_[v++]=P<<2|O>>>4,C|=P&s,C|=O&s),x<E-2&&(A=this._decodeChar(w.charCodeAt(x+2)),_[v++]=O<<4|A>>>2,C|=A&s),x<E-3&&(L=this._decodeChar(w.charCodeAt(x+3)),_[v++]=A<<6|L,C|=L&s),C!==0)throw new Error("Base64Coder: incorrect characters for decoding");return _},y.prototype._encodeByte=function(w){var b=w;return b+=65,b+=25-w>>>8&6,b+=51-w>>>8&-75,b+=61-w>>>8&-15,b+=62-w>>>8&3,String.fromCharCode(b)},y.prototype._decodeChar=function(w){var b=s;return b+=(42-w&w-44)>>>8&-s+w-43+62,b+=(46-w&w-48)>>>8&-s+w-47+63,b+=(47-w&w-58)>>>8&-s+w-48+52,b+=(64-w&w-91)>>>8&-s+w-65+0,b+=(96-w&w-123)>>>8&-s+w-97+26,b},y.prototype._getPaddingLength=function(w){var b=0;if(this._paddingCharacter){for(var E=w.length-1;E>=0&&w[E]===this._paddingCharacter;E--)b++;if(w.length<4||b>2)throw new Error("Base64Coder: incorrect padding")}return b},y}();a.Coder=l;var c=new l;function u(y){return c.encode(y)}a.encode=u;function d(y){return c.decode(y)}a.decode=d;var f=function(y){i(w,y);function w(){return y!==null&&y.apply(this,arguments)||this}return w.prototype._encodeByte=function(b){var E=b;return E+=65,E+=25-b>>>8&6,E+=51-b>>>8&-75,E+=61-b>>>8&-13,E+=62-b>>>8&49,String.fromCharCode(E)},w.prototype._decodeChar=function(b){var E=s;return E+=(44-b&b-46)>>>8&-s+b-45+62,E+=(94-b&b-96)>>>8&-s+b-95+63,E+=(47-b&b-58)>>>8&-s+b-48+52,E+=(64-b&b-91)>>>8&-s+b-65+0,E+=(96-b&b-123)>>>8&-s+b-97+26,E},w}(l);a.URLSafeCoder=f;var p=new f;function m(y){return p.encode(y)}a.encodeURLSafe=m;function g(y){return p.decode(y)}a.decodeURLSafe=g,a.encodedLength=function(y){return c.encodedLength(y)},a.maxDecodedLength=function(y){return c.maxDecodedLength(y)},a.decodedLength=function(y){return c.decodedLength(y)}},function(n,a,o){Object.defineProperty(a,"__esModule",{value:!0});var i="utf8: invalid string",s="utf8: invalid source encoding";function l(d){for(var f=new Uint8Array(c(d)),p=0,m=0;m<d.length;m++){var g=d.charCodeAt(m);g<128?f[p++]=g:g<2048?(f[p++]=192|g>>6,f[p++]=128|g&63):g<55296?(f[p++]=224|g>>12,f[p++]=128|g>>6&63,f[p++]=128|g&63):(m++,g=(g&1023)<<10,g|=d.charCodeAt(m)&1023,g+=65536,f[p++]=240|g>>18,f[p++]=128|g>>12&63,f[p++]=128|g>>6&63,f[p++]=128|g&63)}return f}a.encode=l;function c(d){for(var f=0,p=0;p<d.length;p++){var m=d.charCodeAt(p);if(m<128)f+=1;else if(m<2048)f+=2;else if(m<55296)f+=3;else if(m<=57343){if(p>=d.length-1)throw new Error(i);p++,f+=4}else throw new Error(i)}return f}a.encodedLength=c;function u(d){for(var f=[],p=0;p<d.length;p++){var m=d[p];if(m&128){var g=void 0;if(m<224){if(p>=d.length)throw new Error(s);var y=d[++p];if((y&192)!==128)throw new Error(s);m=(m&31)<<6|y&63,g=128}else if(m<240){if(p>=d.length-1)throw new Error(s);var y=d[++p],w=d[++p];if((y&192)!==128||(w&192)!==128)throw new Error(s);m=(m&15)<<12|(y&63)<<6|w&63,g=2048}else if(m<248){if(p>=d.length-2)throw new Error(s);var y=d[++p],w=d[++p],b=d[++p];if((y&192)!==128||(w&192)!==128||(b&192)!==128)throw new Error(s);m=(m&15)<<18|(y&63)<<12|(w&63)<<6|b&63,g=65536}else throw new Error(s);if(m<g||m>=55296&&m<=57343)throw new Error(s);if(m>=65536){if(m>1114111)throw new Error(s);m-=65536,f.push(String.fromCharCode(55296|m>>10)),m=56320|m&1023}}f.push(String.fromCharCode(m))}return f.join("")}a.decode=u},function(n,a,o){n.exports=o(3).default},function(n,a,o){o.r(a);class i{constructor(h,k){this.lastId=0,this.prefix=h,this.name=k}create(h){this.lastId++;var k=this.lastId,N=this.prefix+k,F=this.name+"["+k+"]",ie=!1,we=function(){ie||(h.apply(null,arguments),ie=!0)};return this[k]=we,{number:k,id:N,name:F,callback:we}}remove(h){delete this[h.number]}}var s=new i("_pusher_script_","Pusher.ScriptReceivers"),l={VERSION:"8.4.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},c=l;class u{constructor(h){this.options=h,this.receivers=h.receivers||s,this.loading={}}load(h,k,N){var F=this;if(F.loading[h]&&F.loading[h].length>0)F.loading[h].push(N);else{F.loading[h]=[N];var ie=We.createScriptRequest(F.getPath(h,k)),we=F.receivers.create(function(Ne){if(F.receivers.remove(we),F.loading[h]){var Ue=F.loading[h];delete F.loading[h];for(var ot=function(Ft){Ft||ie.cleanup()},dt=0;dt<Ue.length;dt++)Ue[dt](Ne,ot)}});ie.send(we)}}getRoot(h){var k,N=We.getDocument().location.protocol;return h&&h.useTLS||N==="https:"?k=this.options.cdn_https:k=this.options.cdn_http,k.replace(/\/*$/,"")+"/"+this.options.version}getPath(h,k){return this.getRoot(k)+"/"+h+this.options.suffix+".js"}}var d=new i("_pusher_dependencies","Pusher.DependenciesReceivers"),f=new u({cdn_http:c.cdn_http,cdn_https:c.cdn_https,version:c.VERSION,suffix:c.dependency_suffix,receivers:d});const p={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}};var g={buildLogSuffix:function(S){const h="See:",k=p.urls[S];if(!k)return"";let N;return k.fullUrl?N=k.fullUrl:k.path&&(N=p.baseUrl+k.path),N?`${h} ${N}`:""}},y;(function(S){S.UserAuthentication="user-authentication",S.ChannelAuthorization="channel-authorization"})(y||(y={}));class w extends Error{constructor(h){super(h),Object.setPrototypeOf(this,new.target.prototype)}}class b extends Error{constructor(h){super(h),Object.setPrototypeOf(this,new.target.prototype)}}class E extends Error{constructor(h){super(h),Object.setPrototypeOf(this,new.target.prototype)}}class _ extends Error{constructor(h){super(h),Object.setPrototypeOf(this,new.target.prototype)}}class v extends Error{constructor(h){super(h),Object.setPrototypeOf(this,new.target.prototype)}}class x extends Error{constructor(h){super(h),Object.setPrototypeOf(this,new.target.prototype)}}class C extends Error{constructor(h){super(h),Object.setPrototypeOf(this,new.target.prototype)}}class P extends Error{constructor(h){super(h),Object.setPrototypeOf(this,new.target.prototype)}}class O extends Error{constructor(h,k){super(k),this.status=h,Object.setPrototypeOf(this,new.target.prototype)}}var L=function(S,h,k,N,F){const ie=We.createXHR();ie.open("POST",k.endpoint,!0),ie.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var we in k.headers)ie.setRequestHeader(we,k.headers[we]);if(k.headersProvider!=null){let Ne=k.headersProvider();for(var we in Ne)ie.setRequestHeader(we,Ne[we])}return ie.onreadystatechange=function(){if(ie.readyState===4)if(ie.status===200){let Ne,Ue=!1;try{Ne=JSON.parse(ie.responseText),Ue=!0}catch{F(new O(200,`JSON returned from ${N.toString()} endpoint was invalid, yet status code was 200. Data was: ${ie.responseText}`),null)}Ue&&F(null,Ne)}else{let Ne="";switch(N){case y.UserAuthentication:Ne=g.buildLogSuffix("authenticationEndpoint");break;case y.ChannelAuthorization:Ne=`Clients must be authorized to join private or presence channels. ${g.buildLogSuffix("authorizationEndpoint")}`;break}F(new O(ie.status,`Unable to retrieve auth string from ${N.toString()} endpoint - received status: ${ie.status} from ${k.endpoint}. ${Ne}`),null)}},ie.send(h),ie};function U(S){return $(B(S))}var z=String.fromCharCode,R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",I=function(S){var h=S.charCodeAt(0);return h<128?S:h<2048?z(192|h>>>6)+z(128|h&63):z(224|h>>>12&15)+z(128|h>>>6&63)+z(128|h&63)},B=function(S){return S.replace(/[^\x00-\x7F]/g,I)},M=function(S){var h=[0,2,1][S.length%3],k=S.charCodeAt(0)<<16|(S.length>1?S.charCodeAt(1):0)<<8|(S.length>2?S.charCodeAt(2):0),N=[R.charAt(k>>>18),R.charAt(k>>>12&63),h>=2?"=":R.charAt(k>>>6&63),h>=1?"=":R.charAt(k&63)];return N.join("")},$=window.btoa||function(S){return S.replace(/[\s\S]{1,3}/g,M)};class K{constructor(h,k,N,F){this.clear=k,this.timer=h(()=>{this.timer&&(this.timer=F(this.timer))},N)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}var V=K;function Z(S){window.clearTimeout(S)}function q(S){window.clearInterval(S)}class oe extends V{constructor(h,k){super(setTimeout,Z,h,function(N){return k(),null})}}class j extends V{constructor(h,k){super(setInterval,q,h,function(N){return k(),N})}}var W={now(){return Date.now?Date.now():new Date().valueOf()},defer(S){return new oe(0,S)},method(S,...h){var k=Array.prototype.slice.call(arguments,1);return function(N){return N[S].apply(N,k.concat(arguments))}}},Y=W;function H(S,...h){for(var k=0;k<h.length;k++){var N=h[k];for(var F in N)N[F]&&N[F].constructor&&N[F].constructor===Object?S[F]=H(S[F]||{},N[F]):S[F]=N[F]}return S}function T(){for(var S=["Pusher"],h=0;h<arguments.length;h++)typeof arguments[h]=="string"?S.push(arguments[h]):S.push(X(arguments[h]));return S.join(" : ")}function J(S,h){var k=Array.prototype.indexOf;if(S===null)return-1;if(k&&S.indexOf===k)return S.indexOf(h);for(var N=0,F=S.length;N<F;N++)if(S[N]===h)return N;return-1}function le(S,h){for(var k in S)Object.prototype.hasOwnProperty.call(S,k)&&h(S[k],k,S)}function Oe(S){var h=[];return le(S,function(k,N){h.push(N)}),h}function ee(S){var h=[];return le(S,function(k){h.push(k)}),h}function Te(S,h,k){for(var N=0;N<S.length;N++)h.call(k||window,S[N],N,S)}function ae(S,h){for(var k=[],N=0;N<S.length;N++)k.push(h(S[N],N,S,k));return k}function ue(S,h){var k={};return le(S,function(N,F){k[F]=h(N)}),k}function D(S,h){h=h||function(F){return!!F};for(var k=[],N=0;N<S.length;N++)h(S[N],N,S,k)&&k.push(S[N]);return k}function de(S,h){var k={};return le(S,function(N,F){(h&&h(N,F,S,k)||N)&&(k[F]=N)}),k}function fe(S){var h=[];return le(S,function(k,N){h.push([N,k])}),h}function ce(S,h){for(var k=0;k<S.length;k++)if(h(S[k],k,S))return!0;return!1}function Ae(S,h){for(var k=0;k<S.length;k++)if(!h(S[k],k,S))return!1;return!0}function pe(S){return ue(S,function(h){return typeof h=="object"&&(h=X(h)),encodeURIComponent(U(h.toString()))})}function Ie(S){var h=de(S,function(N){return N!==void 0}),k=ae(fe(pe(h)),Y.method("join","=")).join("&");return k}function xe(S){var h=[],k=[];return function N(F,ie){var we,Ne,Ue;switch(typeof F){case"object":if(!F)return null;for(we=0;we<h.length;we+=1)if(h[we]===F)return{$ref:k[we]};if(h.push(F),k.push(ie),Object.prototype.toString.apply(F)==="[object Array]")for(Ue=[],we=0;we<F.length;we+=1)Ue[we]=N(F[we],ie+"["+we+"]");else{Ue={};for(Ne in F)Object.prototype.hasOwnProperty.call(F,Ne)&&(Ue[Ne]=N(F[Ne],ie+"["+JSON.stringify(Ne)+"]"))}return Ue;case"number":case"string":case"boolean":return F}}(S,"$")}function X(S){try{return JSON.stringify(S)}catch{return JSON.stringify(xe(S))}}class re{constructor(){this.globalLog=h=>{window.console&&window.console.log&&window.console.log(h)}}debug(...h){this.log(this.globalLog,h)}warn(...h){this.log(this.globalLogWarn,h)}error(...h){this.log(this.globalLogError,h)}globalLogWarn(h){window.console&&window.console.warn?window.console.warn(h):this.globalLog(h)}globalLogError(h){window.console&&window.console.error?window.console.error(h):this.globalLogWarn(h)}log(h,...k){var N=T.apply(this,arguments);Du.log?Du.log(N):Du.logToConsole&&h.bind(this)(N)}}var ye=new re,Ze=function(S,h,k,N,F){(k.headers!==void 0||k.headersProvider!=null)&&ye.warn(`To send headers with the ${N.toString()} request, you must use AJAX, rather than JSONP.`);var ie=S.nextAuthCallbackID.toString();S.nextAuthCallbackID++;var we=S.getDocument(),Ne=we.createElement("script");S.auth_callbacks[ie]=function(dt){F(null,dt)};var Ue="Pusher.auth_callbacks['"+ie+"']";Ne.src=k.endpoint+"?callback="+encodeURIComponent(Ue)+"&"+h;var ot=we.getElementsByTagName("head")[0]||we.documentElement;ot.insertBefore(Ne,ot.firstChild)},ct=Ze;class Se{constructor(h){this.src=h}send(h){var k=this,N="Error loading "+k.src;k.script=document.createElement("script"),k.script.id=h.id,k.script.src=k.src,k.script.type="text/javascript",k.script.charset="UTF-8",k.script.addEventListener?(k.script.onerror=function(){h.callback(N)},k.script.onload=function(){h.callback(null)}):k.script.onreadystatechange=function(){(k.script.readyState==="loaded"||k.script.readyState==="complete")&&h.callback(null)},k.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(k.errorScript=document.createElement("script"),k.errorScript.id=h.id+"_error",k.errorScript.text=h.name+"('"+N+"');",k.script.async=k.errorScript.async=!1):k.script.async=!0;var F=document.getElementsByTagName("head")[0];F.insertBefore(k.script,F.firstChild),k.errorScript&&F.insertBefore(k.errorScript,k.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 ut{constructor(h,k){this.url=h,this.data=k}send(h){if(!this.request){var k=Ie(this.data),N=this.url+"/"+h.number+"?"+k;this.request=We.createScriptRequest(N),this.request.send(h)}}cleanup(){this.request&&this.request.cleanup()}}var $t=function(S,h){return function(k,N){var F="http"+(h?"s":"")+"://",ie=F+(S.host||S.options.host)+S.options.path,we=We.createJSONPRequest(ie,k),Ne=We.ScriptReceivers.create(function(Ue,ot){s.remove(Ne),we.cleanup(),ot&&ot.host&&(S.host=ot.host),N&&N(Ue,ot)});we.send(Ne)}},xn={name:"jsonp",getAgent:$t},zt=xn;function Kt(S,h,k){var N=S+(h.useTLS?"s":""),F=h.useTLS?h.hostTLS:h.hostNonTLS;return N+"://"+F+k}function te(S,h){var k="/app/"+S,N="?protocol="+c.PROTOCOL+"&client=js&version="+c.VERSION+(h?"&"+h:"");return k+N}var _e={getInitial:function(S,h){var k=(h.httpPath||"")+te(S,"flash=false");return Kt("ws",h,k)}},Ee={getInitial:function(S,h){var k=(h.httpPath||"/pusher")+te(S);return Kt("http",h,k)}},He={getInitial:function(S,h){return Kt("http",h,h.httpPath||"/pusher")},getPath:function(S,h){return te(S)}};class G{constructor(){this._callbacks={}}get(h){return this._callbacks[se(h)]}add(h,k,N){var F=se(h);this._callbacks[F]=this._callbacks[F]||[],this._callbacks[F].push({fn:k,context:N})}remove(h,k,N){if(!h&&!k&&!N){this._callbacks={};return}var F=h?[se(h)]:Oe(this._callbacks);k||N?this.removeCallback(F,k,N):this.removeAllCallbacks(F)}removeCallback(h,k,N){Te(h,function(F){this._callbacks[F]=D(this._callbacks[F]||[],function(ie){return k&&k!==ie.fn||N&&N!==ie.context}),this._callbacks[F].length===0&&delete this._callbacks[F]},this)}removeAllCallbacks(h){Te(h,function(k){delete this._callbacks[k]},this)}}function se(S){return"_"+S}class be{constructor(h){this.callbacks=new G,this.global_callbacks=[],this.failThrough=h}bind(h,k,N){return this.callbacks.add(h,k,N),this}bind_global(h){return this.global_callbacks.push(h),this}unbind(h,k,N){return this.callbacks.remove(h,k,N),this}unbind_global(h){return h?(this.global_callbacks=D(this.global_callbacks||[],k=>k!==h),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(h,k,N){for(var F=0;F<this.global_callbacks.length;F++)this.global_callbacks[F](h,k);var ie=this.callbacks.get(h),we=[];if(N?we.push(k,N):k&&we.push(k),ie&&ie.length>0)for(var F=0;F<ie.length;F++)ie[F].fn.apply(ie[F].context||window,we);else this.failThrough&&this.failThrough(h,k);return this}}class Re extends be{constructor(h,k,N,F,ie){super(),this.initialize=We.transportConnectionInitializer,this.hooks=h,this.name=k,this.priority=N,this.key=F,this.options=ie,this.state="new",this.timeline=ie.timeline,this.activityTimeout=ie.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 h=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(h,this.options)}catch(k){return Y.defer(()=>{this.onError(k),this.changeState("closed")}),!1}return this.bindListeners(),ye.debug("Connecting",{transport:this.name,url:h}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(h){return this.state==="open"?(Y.defer(()=>{this.socket&&this.socket.send(h)}),!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(h){this.emit("error",{type:"WebSocketError",error:h}),this.timeline.error(this.buildTimelineMessage({error:h.toString()}))}onClose(h){h?this.changeState("closed",{code:h.code,reason:h.reason,wasClean:h.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(h){this.emit("message",h)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=h=>{this.onError(h)},this.socket.onclose=h=>{this.onClose(h)},this.socket.onmessage=h=>{this.onMessage(h)},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(h,k){this.state=h,this.timeline.info(this.buildTimelineMessage({state:h,params:k})),this.emit(h,k)}buildTimelineMessage(h){return H({cid:this.id},h)}}class ne{constructor(h){this.hooks=h}isSupported(h){return this.hooks.isSupported(h)}createConnection(h,k,N,F){return new Re(this.hooks,h,k,N,F)}}var he=new ne({urls:_e,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!We.getWebSocketAPI()},isSupported:function(){return!!We.getWebSocketAPI()},getSocket:function(S){return We.createWebSocket(S)}}),Ce={urls:Ee,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},st=H({getSocket:function(S){return We.HTTPFactory.createStreamingSocket(S)}},Ce),vt=H({getSocket:function(S){return We.HTTPFactory.createPollingSocket(S)}},Ce),Ut={isSupported:function(){return We.isXHRSupported()}},Vt=new ne(H({},st,Ut)),nn=new ne(H({},vt,Ut)),za={ws:he,xhr_streaming:Vt,xhr_polling:nn},Wn=za,Vi=new ne({file:"sockjs",urls:He,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(S,h){return new window.SockJS(S,null,{js_path:f.getPath("sockjs",{useTLS:h.useTLS}),ignore_null_origin:h.ignoreNullOrigin})},beforeOpen:function(S,h){S.send(JSON.stringify({path:h}))}}),Ao={isSupported:function(S){var h=We.isXDRSupported(S.useTLS);return h}},Io=new ne(H({},st,Ao)),Pe=new ne(H({},vt,Ao));Wn.xdr_streaming=Io,Wn.xdr_polling=Pe,Wn.sockjs=Vi;var rn=Wn;class Me extends be{constructor(){super();var h=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){h.emit("online")},!1),window.addEventListener("offline",function(){h.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var Ot=new Me;class gt{constructor(h,k,N){this.manager=h,this.transport=k,this.minPingDelay=N.minPingDelay,this.maxPingDelay=N.maxPingDelay,this.pingDelay=void 0}createConnection(h,k,N,F){F=H({},F,{activityTimeout:this.pingDelay});var ie=this.transport.createConnection(h,k,N,F),we=null,Ne=function(){ie.unbind("open",Ne),ie.bind("closed",Ue),we=Y.now()},Ue=ot=>{if(ie.unbind("closed",Ue),ot.code===1002||ot.code===1003)this.manager.reportDeath();else if(!ot.wasClean&&we){var dt=Y.now()-we;dt<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(dt/2,this.minPingDelay))}};return ie.bind("open",Ne),ie}isSupported(h){return this.manager.isAlive()&&this.transport.isSupported(h)}}const sa={decodeMessage:function(S){try{var h=JSON.parse(S.data),k=h.data;if(typeof k=="string")try{k=JSON.parse(h.data)}catch{}var N={event:h.event,channel:h.channel,data:k};return h.user_id&&(N.user_id=h.user_id),N}catch(F){throw{type:"MessageParseError",error:F,data:S.data}}},encodeMessage:function(S){return JSON.stringify(S)},processHandshake:function(S){var h=sa.decodeMessage(S);if(h.event==="pusher:connection_established"){if(!h.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:h.data.socket_id,activityTimeout:h.data.activity_timeout*1e3}}else{if(h.event==="pusher:error")return{action:this.getCloseAction(h.data),error:this.getCloseError(h.data)};throw"Invalid handshake"}},getCloseAction:function(S){return S.code<4e3?S.code>=1002&&S.code<=1004?"backoff":null:S.code===4e3?"tls_only":S.code<4100?"refused":S.code<4200?"backoff":S.code<4300?"retry":"refused"},getCloseError:function(S){return S.code!==1e3&&S.code!==1001?{type:"PusherError",data:{code:S.code,message:S.reason||S.message}}:null}};var vn=sa;class Mo extends be{constructor(h,k){super(),this.id=h,this.transport=k,this.activityTimeout=k.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(h){return this.transport.send(h)}send_event(h,k,N){var F={event:h,data:k};return N&&(F.channel=N),ye.debug("Event sent",F),this.send(vn.encodeMessage(F))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var h={message:N=>{var F;try{F=vn.decodeMessage(N)}catch(ie){this.emit("error",{type:"MessageParseError",error:ie,data:N.data})}if(F!==void 0){switch(ye.debug("Event recd",F),F.event){case"pusher:error":this.emit("error",{type:"PusherError",data:F.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",F)}},activity:()=>{this.emit("activity")},error:N=>{this.emit("error",N)},closed:N=>{k(),N&&N.code&&this.handleCloseEvent(N),this.transport=null,this.emit("closed")}},k=()=>{le(h,(N,F)=>{this.transport.unbind(F,N)})};le(h,(N,F)=>{this.transport.bind(F,N)})}handleCloseEvent(h){var k=vn.getCloseAction(h),N=vn.getCloseError(h);N&&this.emit("error",N),k&&this.emit(k,{action:k,error:N})}}class No{constructor(h,k){this.transport=h,this.callback=k,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=h=>{this.unbindListeners();var k;try{k=vn.processHandshake(h)}catch(N){this.finish("error",{error:N}),this.transport.close();return}k.action==="connected"?this.finish("connected",{connection:new Mo(k.id,this.transport),activityTimeout:k.activityTimeout}):(this.finish(k.action,{error:k.error}),this.transport.close())},this.onClosed=h=>{this.unbindListeners();var k=vn.getCloseAction(h)||"backoff",N=vn.getCloseError(h);this.finish(k,{error:N})},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(h,k){this.callback(H({transport:this.transport,action:h},k))}}class Fi{constructor(h,k){this.timeline=h,this.options=k||{}}send(h,k){this.timeline.isEmpty()||this.timeline.send(We.TimelineTransport.getAgent(this,h),k)}}class ji extends be{constructor(h,k){super(function(N,F){ye.debug("No callbacks on "+h+" for "+N)}),this.name=h,this.pusher=k,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(h,k){return k(null,{auth:""})}trigger(h,k){if(h.indexOf("client-")!==0)throw new w("Event '"+h+"' does not start with 'client-'");if(!this.subscribed){var N=g.buildLogSuffix("triggeringClientEvents");ye.warn(`Client event triggered before channel 'subscription_succeeded' event . ${N}`)}return this.pusher.send_event(h,k,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(h){var k=h.event,N=h.data;if(k==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(h);else if(k==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(h);else if(k.indexOf("pusher_internal:")!==0){var F={};this.emit(k,N,F)}}handleSubscriptionSucceededEvent(h){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",h.data)}handleSubscriptionCountEvent(h){h.data.subscription_count&&(this.subscriptionCount=h.data.subscription_count),this.emit("pusher:subscription_count",h.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(h,k)=>{h?(this.subscriptionPending=!1,ye.error(h.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:h.message},h instanceof O?{status:h.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:k.auth,channel_data:k.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 la extends ji{authorize(h,k){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:h},k)}}class ol{constructor(){this.reset()}get(h){return Object.prototype.hasOwnProperty.call(this.members,h)?{id:h,info:this.members[h]}:null}each(h){le(this.members,(k,N)=>{h(this.get(N))})}setMyID(h){this.myID=h}onSubscription(h){this.members=h.presence.hash,this.count=h.presence.count,this.me=this.get(this.myID)}addMember(h){return this.get(h.user_id)===null&&this.count++,this.members[h.user_id]=h.user_info,this.get(h.user_id)}removeMember(h){var k=this.get(h.user_id);return k&&(delete this.members[h.user_id],this.count--),k}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var Q=function(S,h,k,N){function F(ie){return ie instanceof k?ie:new k(function(we){we(ie)})}return new(k||(k=Promise))(function(ie,we){function Ne(dt){try{ot(N.next(dt))}catch(Ft){we(Ft)}}function Ue(dt){try{ot(N.throw(dt))}catch(Ft){we(Ft)}}function ot(dt){dt.done?ie(dt.value):F(dt.value).then(Ne,Ue)}ot((N=N.apply(S,h||[])).next())})};class ve extends la{constructor(h,k){super(h,k),this.members=new ol}authorize(h,k){super.authorize(h,(N,F)=>Q(this,void 0,void 0,function*(){if(!N)if(F=F,F.channel_data!=null){var ie=JSON.parse(F.channel_data);this.members.setMyID(ie.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 we=g.buildLogSuffix("authorizationEndpoint");ye.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${we}, or the user should be signed in.`),k("Invalid auth response");return}k(N,F)}))}handleEvent(h){var k=h.event;if(k.indexOf("pusher_internal:")===0)this.handleInternalEvent(h);else{var N=h.data,F={};h.user_id&&(F.user_id=h.user_id),this.emit(k,N,F)}}handleInternalEvent(h){var k=h.event,N=h.data;switch(k){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(h);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(h);break;case"pusher_internal:member_added":var F=this.members.addMember(N);this.emit("pusher:member_added",F);break;case"pusher_internal:member_removed":var ie=this.members.removeMember(N);ie&&this.emit("pusher:member_removed",ie);break}}handleSubscriptionSucceededEvent(h){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(h.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var Ge=o(1),wt=o(0);class Rr extends la{constructor(h,k,N){super(h,k),this.key=null,this.nacl=N}authorize(h,k){super.authorize(h,(N,F)=>{if(N){k(N,F);return}let ie=F.shared_secret;if(!ie){k(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=Object(wt.decode)(ie),delete F.shared_secret,k(null,F)})}trigger(h,k){throw new x("Client events are not currently supported for encrypted channels")}handleEvent(h){var k=h.event,N=h.data;if(k.indexOf("pusher_internal:")===0||k.indexOf("pusher:")===0){super.handleEvent(h);return}this.handleEncryptedEvent(k,N)}handleEncryptedEvent(h,k){if(!this.key){ye.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!k.ciphertext||!k.nonce){ye.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+k);return}let N=Object(wt.decode)(k.ciphertext);if(N.length<this.nacl.secretbox.overheadLength){ye.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${N.length}`);return}let F=Object(wt.decode)(k.nonce);if(F.length<this.nacl.secretbox.nonceLength){ye.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${F.length}`);return}let ie=this.nacl.secretbox.open(N,F,this.key);if(ie===null){ye.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,(we,Ne)=>{if(we){ye.error(`Failed to make a request to the authEndpoint: ${Ne}. Unable to fetch new key, so dropping encrypted event`);return}if(ie=this.nacl.secretbox.open(N,F,this.key),ie===null){ye.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(h,this.getDataToEmit(ie))});return}this.emit(h,this.getDataToEmit(ie))}getDataToEmit(h){let k=Object(Ge.decode)(h);try{return JSON.parse(k)}catch{return k}}}class il extends be{constructor(h,k){super(),this.state="initialized",this.connection=null,this.key=h,this.options=k,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 N=We.getNetwork();N.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),N.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}connect(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(h){return this.connection?this.connection.send(h):!1}send_event(h,k,N){return this.connection?this.connection.send_event(h,k,N):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var h=(k,N)=>{k?this.runner=this.strategy.connect(0,h):N.action==="error"?(this.emit("error",{type:"HandshakeError",error:N.error}),this.timeline.error({handshakeError:N.error})):(this.abortConnecting(),this.handshakeCallbacks[N.action](N))};this.runner=this.strategy.connect(0,h)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var h=this.abandonConnection();h.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(h){this.timeline.info({action:"retry",delay:h}),h>0&&this.emit("connecting_in",Math.round(h/1e3)),this.retryTimer=new oe(h||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new oe(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new oe(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 oe(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(h){return H({},h,{message:k=>{this.resetActivityCheck(),this.emit("message",k)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:k=>{this.emit("error",k)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(h){return H({},h,{connected:k=>{this.activityTimeout=Math.min(this.options.activityTimeout,k.activityTimeout,k.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(k.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let h=k=>N=>{N.error&&this.emit("error",{type:"WebSocketError",error:N.error}),k(N)};return{tls_only:h(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:h(()=>{this.disconnect()}),backoff:h(()=>{this.retryIn(1e3)}),retry:h(()=>{this.retryIn(0)})}}setConnection(h){this.connection=h;for(var k in this.connectionCallbacks)this.connection.bind(k,this.connectionCallbacks[k]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var h in this.connectionCallbacks)this.connection.unbind(h,this.connectionCallbacks[h]);var k=this.connection;return this.connection=null,k}}updateState(h,k){var N=this.state;if(this.state=h,N!==h){var F=h;F==="connected"&&(F+=" with new socket ID "+k.socket_id),ye.debug("State changed",N+" -> "+F),this.timeline.info({state:h,params:k}),this.emit("state_change",{previous:N,current:h}),this.emit(h,k)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class fh{constructor(){this.channels={}}add(h,k){return this.channels[h]||(this.channels[h]=Mu(h,k)),this.channels[h]}all(){return ee(this.channels)}find(h){return this.channels[h]}remove(h){var k=this.channels[h];return delete this.channels[h],k}disconnect(){le(this.channels,function(h){h.disconnect()})}}function Mu(S,h){if(S.indexOf("private-encrypted-")===0){if(h.config.nacl)return $r.createEncryptedChannel(S,h,h.config.nacl);let k="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",N=g.buildLogSuffix("encryptedChannelSupport");throw new x(`${k}. ${N}`)}else{if(S.indexOf("private-")===0)return $r.createPrivateChannel(S,h);if(S.indexOf("presence-")===0)return $r.createPresenceChannel(S,h);if(S.indexOf("#")===0)throw new b('Cannot create a channel with name "'+S+'".');return $r.createChannel(S,h)}}var sl={createChannels(){return new fh},createConnectionManager(S,h){return new il(S,h)},createChannel(S,h){return new ji(S,h)},createPrivateChannel(S,h){return new la(S,h)},createPresenceChannel(S,h){return new ve(S,h)},createEncryptedChannel(S,h,k){return new Rr(S,h,k)},createTimelineSender(S,h){return new Fi(S,h)},createHandshake(S,h){return new No(S,h)},createAssistantToTheTransportManager(S,h,k){return new gt(S,h,k)}},$r=sl;class ph{constructor(h){this.options=h||{},this.livesLeft=this.options.lives||1/0}getAssistant(h){return $r.createAssistantToTheTransportManager(this,h,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class Va{constructor(h,k){this.strategies=h,this.loop=!!k.loop,this.failFast=!!k.failFast,this.timeout=k.timeout,this.timeoutLimit=k.timeoutLimit}isSupported(){return ce(this.strategies,Y.method("isSupported"))}connect(h,k){var N=this.strategies,F=0,ie=this.timeout,we=null,Ne=(Ue,ot)=>{ot?k(null,ot):(F=F+1,this.loop&&(F=F%N.length),F<N.length?(ie&&(ie=ie*2,this.timeoutLimit&&(ie=Math.min(ie,this.timeoutLimit))),we=this.tryStrategy(N[F],h,{timeout:ie,failFast:this.failFast},Ne)):k(!0))};return we=this.tryStrategy(N[F],h,{timeout:ie,failFast:this.failFast},Ne),{abort:function(){we.abort()},forceMinPriority:function(Ue){h=Ue,we&&we.forceMinPriority(Ue)}}}tryStrategy(h,k,N,F){var ie=null,we=null;return N.timeout>0&&(ie=new oe(N.timeout,function(){we.abort(),F(!0)})),we=h.connect(k,function(Ne,Ue){Ne&&ie&&ie.isRunning()&&!N.failFast||(ie&&ie.ensureAborted(),F(Ne,Ue))}),{abort:function(){ie&&ie.ensureAborted(),we.abort()},forceMinPriority:function(Ne){we.forceMinPriority(Ne)}}}}class Nu{constructor(h){this.strategies=h}isSupported(){return ce(this.strategies,Y.method("isSupported"))}connect(h,k){return v6(this.strategies,h,function(N,F){return function(ie,we){if(F[N].error=ie,ie){g6(F)&&k(!0);return}Te(F,function(Ne){Ne.forceMinPriority(we.transport.priority)}),k(null,we)}})}}function v6(S,h,k){var N=ae(S,function(F,ie,we,Ne){return F.connect(h,k(ie,Ne))});return{abort:function(){Te(N,y6)},forceMinPriority:function(F){Te(N,function(ie){ie.forceMinPriority(F)})}}}function g6(S){return Ae(S,function(h){return!!h.error})}function y6(S){!S.error&&!S.aborted&&(S.abort(),S.aborted=!0)}class b6{constructor(h,k,N){this.strategy=h,this.transports=k,this.ttl=N.ttl||1800*1e3,this.usingTLS=N.useTLS,this.timeline=N.timeline}isSupported(){return this.strategy.isSupported()}connect(h,k){var N=this.usingTLS,F=w6(N),ie=F&&F.cacheSkipCount?F.cacheSkipCount:0,we=[this.strategy];if(F&&F.timestamp+this.ttl>=Y.now()){var Ne=this.transports[F.transport];Ne&&(["ws","wss"].includes(F.transport)||ie>3?(this.timeline.info({cached:!0,transport:F.transport,latency:F.latency}),we.push(new Va([Ne],{timeout:F.latency*2+1e3,failFast:!0}))):ie++)}var Ue=Y.now(),ot=we.pop().connect(h,function dt(Ft,ul){Ft?(mh(N),we.length>0?(Ue=Y.now(),ot=we.pop().connect(h,dt)):k(Ft)):(k6(N,ul.transport.name,Y.now()-Ue,ie),k(null,ul))});return{abort:function(){ot.abort()},forceMinPriority:function(dt){h=dt,ot&&ot.forceMinPriority(dt)}}}}function Ou(S){return"pusherTransport"+(S?"TLS":"NonTLS")}function w6(S){var h=We.getLocalStorage();if(h)try{var k=h[Ou(S)];if(k)return JSON.parse(k)}catch{mh(S)}return null}function k6(S,h,k,N){var F=We.getLocalStorage();if(F)try{F[Ou(S)]=X({timestamp:Y.now(),transport:h,latency:k,cacheSkipCount:N})}catch{}}function mh(S){var h=We.getLocalStorage();if(h)try{delete h[Ou(S)]}catch{}}class ll{constructor(h,{delay:k}){this.strategy=h,this.options={delay:k}}isSupported(){return this.strategy.isSupported()}connect(h,k){var N=this.strategy,F,ie=new oe(this.options.delay,function(){F=N.connect(h,k)});return{abort:function(){ie.ensureAborted(),F&&F.abort()},forceMinPriority:function(we){h=we,F&&F.forceMinPriority(we)}}}}class Hi{constructor(h,k,N){this.test=h,this.trueBranch=k,this.falseBranch=N}isSupported(){var h=this.test()?this.trueBranch:this.falseBranch;return h.isSupported()}connect(h,k){var N=this.test()?this.trueBranch:this.falseBranch;return N.connect(h,k)}}class _6{constructor(h){this.strategy=h}isSupported(){return this.strategy.isSupported()}connect(h,k){var N=this.strategy.connect(h,function(F,ie){ie&&N.abort(),k(F,ie)});return N}}function Ui(S){return function(){return S.isSupported()}}var S6=function(S,h,k){var N={};function F(xh,_k,Sk,Ck,xk){var Eh=k(S,xh,_k,Sk,Ck,xk);return N[xh]=Eh,Eh}var ie=Object.assign({},h,{hostNonTLS:S.wsHost+":"+S.wsPort,hostTLS:S.wsHost+":"+S.wssPort,httpPath:S.wsPath}),we=Object.assign({},ie,{useTLS:!0}),Ne=Object.assign({},h,{hostNonTLS:S.httpHost+":"+S.httpPort,hostTLS:S.httpHost+":"+S.httpsPort,httpPath:S.httpPath}),Ue={loop:!0,timeout:15e3,timeoutLimit:6e4},ot=new ph({minPingDelay:1e4,maxPingDelay:S.activityTimeout}),dt=new ph({lives:2,minPingDelay:1e4,maxPingDelay:S.activityTimeout}),Ft=F("ws","ws",3,ie,ot),ul=F("wss","ws",3,we,ot),gk=F("sockjs","sockjs",1,Ne),bh=F("xhr_streaming","xhr_streaming",1,Ne,dt),yk=F("xdr_streaming","xdr_streaming",1,Ne,dt),wh=F("xhr_polling","xhr_polling",1,Ne),bk=F("xdr_polling","xdr_polling",1,Ne),kh=new Va([Ft],Ue),wk=new Va([ul],Ue),kk=new Va([gk],Ue),_h=new Va([new Hi(Ui(bh),bh,yk)],Ue),Sh=new Va([new Hi(Ui(wh),wh,bk)],Ue),Ch=new Va([new Hi(Ui(_h),new Nu([_h,new ll(Sh,{delay:4e3})]),Sh)],Ue),Ru=new Hi(Ui(Ch),Ch,kk),$u;return h.useTLS?$u=new Nu([kh,new ll(Ru,{delay:2e3})]):$u=new Nu([kh,new ll(wk,{delay:2e3}),new ll(Ru,{delay:5e3})]),new b6(new _6(new Hi(Ui(Ft),$u,Ru)),N,{ttl:18e5,timeline:h.timeline,useTLS:h.useTLS})},C6=S6,x6=function(){var S=this;S.timeline.info(S.buildTimelineMessage({transport:S.name+(S.options.useTLS?"s":"")})),S.hooks.isInitialized()?S.changeState("initialized"):S.hooks.file?(S.changeState("initializing"),f.load(S.hooks.file,{useTLS:S.options.useTLS},function(h,k){S.hooks.isInitialized()?(S.changeState("initialized"),k(!0)):(h&&S.onError(h),S.onClose(),k(!1))})):S.onClose()},E6={getRequest:function(S){var h=new window.XDomainRequest;return h.ontimeout=function(){S.emit("error",new E),S.close()},h.onerror=function(k){S.emit("error",k),S.close()},h.onprogress=function(){h.responseText&&h.responseText.length>0&&S.onChunk(200,h.responseText)},h.onload=function(){h.responseText&&h.responseText.length>0&&S.onChunk(200,h.responseText),S.emit("finished",200),S.close()},h},abortRequest:function(S){S.ontimeout=S.onerror=S.onprogress=S.onload=null,S.abort()}},T6=E6;const P6=256*1024;class A6 extends be{constructor(h,k,N){super(),this.hooks=h,this.method=k,this.url=N}start(h){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},We.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(h)}close(){this.unloader&&(We.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(h,k){for(;;){var N=this.advanceBuffer(k);if(N)this.emit("chunk",{status:h,data:N});else break}this.isBufferTooLong(k)&&this.emit("buffer_too_long")}advanceBuffer(h){var k=h.slice(this.position),N=k.indexOf(`
633
+ `);return N!==-1?(this.position+=N+1,k.slice(0,N)):null}isBufferTooLong(h){return this.position===h.length&&h.length>P6}}var Bu;(function(S){S[S.CONNECTING=0]="CONNECTING",S[S.OPEN=1]="OPEN",S[S.CLOSED=3]="CLOSED"})(Bu||(Bu={}));var Fa=Bu,I6=1;class M6{constructor(h,k){this.hooks=h,this.session=vh(1e3)+"/"+L6(8),this.location=N6(k),this.readyState=Fa.CONNECTING,this.openStream()}send(h){return this.sendRaw(JSON.stringify([h]))}ping(){this.hooks.sendHeartbeat(this)}close(h,k){this.onClose(h,k,!0)}sendRaw(h){if(this.readyState===Fa.OPEN)try{return We.createSocketRequest("POST",hh(O6(this.location,this.session))).start(h),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(h,k,N){this.closeStream(),this.readyState=Fa.CLOSED,this.onclose&&this.onclose({code:h,reason:k,wasClean:N})}onChunk(h){if(h.status===200){this.readyState===Fa.OPEN&&this.onActivity();var k,N=h.data.slice(0,1);switch(N){case"o":k=JSON.parse(h.data.slice(1)||"{}"),this.onOpen(k);break;case"a":k=JSON.parse(h.data.slice(1)||"[]");for(var F=0;F<k.length;F++)this.onEvent(k[F]);break;case"m":k=JSON.parse(h.data.slice(1)||"null"),this.onEvent(k);break;case"h":this.hooks.onHeartbeat(this);break;case"c":k=JSON.parse(h.data.slice(1)||"[]"),this.onClose(k[0],k[1],!0);break}}}onOpen(h){this.readyState===Fa.CONNECTING?(h&&h.hostname&&(this.location.base=B6(this.location.base,h.hostname)),this.readyState=Fa.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(h){this.readyState===Fa.OPEN&&this.onmessage&&this.onmessage({data:h})}onActivity(){this.onactivity&&this.onactivity()}onError(h){this.onerror&&this.onerror(h)}openStream(){this.stream=We.createSocketRequest("POST",hh(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",h=>{this.onChunk(h)}),this.stream.bind("finished",h=>{this.hooks.onFinished(this,h)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(h){Y.defer(()=>{this.onError(h),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function N6(S){var h=/([^\?]*)\/*(\??.*)/.exec(S);return{base:h[1],queryString:h[2]}}function O6(S,h){return S.base+"/"+h+"/xhr_send"}function hh(S){var h=S.indexOf("?")===-1?"?":"&";return S+h+"t="+ +new Date+"&n="+I6++}function B6(S,h){var k=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(S);return k[1]+h+k[3]}function vh(S){return We.randomInt(S)}function L6(S){for(var h=[],k=0;k<S;k++)h.push(vh(32).toString(32));return h.join("")}var D6=M6,R6={getReceiveURL:function(S,h){return S.base+"/"+h+"/xhr_streaming"+S.queryString},onHeartbeat:function(S){S.sendRaw("[]")},sendHeartbeat:function(S){S.sendRaw("[]")},onFinished:function(S,h){S.onClose(1006,"Connection interrupted ("+h+")",!1)}},$6=R6,z6={getReceiveURL:function(S,h){return S.base+"/"+h+"/xhr"+S.queryString},onHeartbeat:function(){},sendHeartbeat:function(S){S.sendRaw("[]")},onFinished:function(S,h){h===200?S.reconnect():S.onClose(1006,"Connection interrupted ("+h+")",!1)}},V6=z6,F6={getRequest:function(S){var h=We.getXHRAPI(),k=new h;return k.onreadystatechange=k.onprogress=function(){switch(k.readyState){case 3:k.responseText&&k.responseText.length>0&&S.onChunk(k.status,k.responseText);break;case 4:k.responseText&&k.responseText.length>0&&S.onChunk(k.status,k.responseText),S.emit("finished",k.status),S.close();break}},k},abortRequest:function(S){S.onreadystatechange=null,S.abort()}},j6=F6,H6={createStreamingSocket(S){return this.createSocket($6,S)},createPollingSocket(S){return this.createSocket(V6,S)},createSocket(S,h){return new D6(S,h)},createXHR(S,h){return this.createRequest(j6,S,h)},createRequest(S,h,k){return new A6(S,h,k)}},gh=H6;gh.createXDR=function(S,h){return this.createRequest(T6,S,h)};var U6=gh,W6={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:s,DependenciesReceivers:d,getDefaultStrategy:C6,Transports:rn,transportConnectionInitializer:x6,HTTPFactory:U6,TimelineTransport:zt,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(S){window.Pusher=S;var h=()=>{this.onDocumentBody(S.ready)};window.JSON?h():f.load("json2",{},h)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:L,jsonp:ct}},onDocumentBody(S){document.body?S():setTimeout(()=>{this.onDocumentBody(S)},0)},createJSONPRequest(S,h){return new ut(S,h)},createScriptRequest(S){return new Se(S)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var S=this.getXHRAPI();return new S},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return Ot},createWebSocket(S){var h=this.getWebSocketAPI();return new h(S)},createSocketRequest(S,h){if(this.isXHRSupported())return this.HTTPFactory.createXHR(S,h);if(this.isXDRSupported(h.indexOf("https:")===0))return this.HTTPFactory.createXDR(S,h);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var S=this.getXHRAPI();return!!S&&new S().withCredentials!==void 0},isXDRSupported(S){var h=S?"https:":"http:",k=this.getProtocol();return!!window.XDomainRequest&&k===h},addUnloadListener(S){window.addEventListener!==void 0?window.addEventListener("unload",S,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",S)},removeUnloadListener(S){window.addEventListener!==void 0?window.removeEventListener("unload",S,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",S)},randomInt(S){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*S)}},We=W6,Lu;(function(S){S[S.ERROR=3]="ERROR",S[S.INFO=6]="INFO",S[S.DEBUG=7]="DEBUG"})(Lu||(Lu={}));var cl=Lu;class q6{constructor(h,k,N){this.key=h,this.session=k,this.events=[],this.options=N||{},this.sent=0,this.uniqueID=0}log(h,k){h<=this.options.level&&(this.events.push(H({},k,{timestamp:Y.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(h){this.log(cl.ERROR,h)}info(h){this.log(cl.INFO,h)}debug(h){this.log(cl.DEBUG,h)}isEmpty(){return this.events.length===0}send(h,k){var N=H({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=[],h(N,(F,ie)=>{F||this.sent++,k&&k(F,ie)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class Y6{constructor(h,k,N,F){this.name=h,this.priority=k,this.transport=N,this.options=F||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(h,k){if(this.isSupported()){if(this.priority<h)return yh(new _,k)}else return yh(new P,k);var N=!1,F=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),ie=null,we=function(){F.unbind("initialized",we),F.connect()},Ne=function(){ie=$r.createHandshake(F,function(Ft){N=!0,dt(),k(null,Ft)})},Ue=function(Ft){dt(),k(Ft)},ot=function(){dt();var Ft;Ft=X(F),k(new v(Ft))},dt=function(){F.unbind("initialized",we),F.unbind("open",Ne),F.unbind("error",Ue),F.unbind("closed",ot)};return F.bind("initialized",we),F.bind("open",Ne),F.bind("error",Ue),F.bind("closed",ot),F.initialize(),{abort:()=>{N||(dt(),ie?ie.close():F.close())},forceMinPriority:Ft=>{N||this.priority<Ft&&(ie?ie.close():F.close())}}}}function yh(S,h){return Y.defer(function(){h(S)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:G6}=We;var K6=function(S,h,k,N,F,ie){var we=G6[k];if(!we)throw new C(k);var Ne=(!S.enabledTransports||J(S.enabledTransports,h)!==-1)&&(!S.disabledTransports||J(S.disabledTransports,h)===-1),Ue;return Ne?(F=Object.assign({ignoreNullOrigin:S.ignoreNullOrigin},F),Ue=new Y6(h,N,ie?ie.getAssistant(we):we,F)):Ue=X6,Ue},X6={isSupported:function(){return!1},connect:function(S,h){var k=Y.defer(function(){h(new P)});return{abort:function(){k.ensureAborted()},forceMinPriority:function(){}}}};function J6(S){if(S==null)throw"You must pass an options object";if(S.cluster==null)throw"Options object must provide a cluster";"disableStats"in S&&ye.warn("The disableStats option is deprecated in favor of enableStats")}const Q6=(S,h)=>{var k="socket_id="+encodeURIComponent(S.socketId);for(var N in h.params)k+="&"+encodeURIComponent(N)+"="+encodeURIComponent(h.params[N]);if(h.paramsProvider!=null){let F=h.paramsProvider();for(var N in F)k+="&"+encodeURIComponent(N)+"="+encodeURIComponent(F[N])}return k};var Z6=S=>{if(typeof We.getAuthorizers()[S.transport]>"u")throw`'${S.transport}' is not a recognized auth transport`;return(h,k)=>{const N=Q6(h,S);We.getAuthorizers()[S.transport](We,N,S,y.UserAuthentication,k)}};const ek=(S,h)=>{var k="socket_id="+encodeURIComponent(S.socketId);k+="&channel_name="+encodeURIComponent(S.channelName);for(var N in h.params)k+="&"+encodeURIComponent(N)+"="+encodeURIComponent(h.params[N]);if(h.paramsProvider!=null){let F=h.paramsProvider();for(var N in F)k+="&"+encodeURIComponent(N)+"="+encodeURIComponent(F[N])}return k};var tk=S=>{if(typeof We.getAuthorizers()[S.transport]>"u")throw`'${S.transport}' is not a recognized auth transport`;return(h,k)=>{const N=ek(h,S);We.getAuthorizers()[S.transport](We,N,S,y.ChannelAuthorization,k)}};const nk=(S,h,k)=>{const N={authTransport:h.transport,authEndpoint:h.endpoint,auth:{params:h.params,headers:h.headers}};return(F,ie)=>{const we=S.channel(F.channelName);k(we,N).authorize(F.socketId,ie)}};function rk(S,h){let k={activityTimeout:S.activityTimeout||c.activityTimeout,cluster:S.cluster,httpPath:S.httpPath||c.httpPath,httpPort:S.httpPort||c.httpPort,httpsPort:S.httpsPort||c.httpsPort,pongTimeout:S.pongTimeout||c.pongTimeout,statsHost:S.statsHost||c.stats_host,unavailableTimeout:S.unavailableTimeout||c.unavailableTimeout,wsPath:S.wsPath||c.wsPath,wsPort:S.wsPort||c.wsPort,wssPort:S.wssPort||c.wssPort,enableStats:lk(S),httpHost:ak(S),useTLS:sk(S),wsHost:ok(S),userAuthenticator:ck(S),channelAuthorizer:dk(S,h)};return"disabledTransports"in S&&(k.disabledTransports=S.disabledTransports),"enabledTransports"in S&&(k.enabledTransports=S.enabledTransports),"ignoreNullOrigin"in S&&(k.ignoreNullOrigin=S.ignoreNullOrigin),"timelineParams"in S&&(k.timelineParams=S.timelineParams),"nacl"in S&&(k.nacl=S.nacl),k}function ak(S){return S.httpHost?S.httpHost:S.cluster?`sockjs-${S.cluster}.pusher.com`:c.httpHost}function ok(S){return S.wsHost?S.wsHost:ik(S.cluster)}function ik(S){return`ws-${S}.pusher.com`}function sk(S){return We.getProtocol()==="https:"?!0:S.forceTLS!==!1}function lk(S){return"enableStats"in S?S.enableStats:"disableStats"in S?!S.disableStats:!1}function ck(S){const h=Object.assign(Object.assign({},c.userAuthentication),S.userAuthentication);return"customHandler"in h&&h.customHandler!=null?h.customHandler:Z6(h)}function uk(S,h){let k;return"channelAuthorization"in S?k=Object.assign(Object.assign({},c.channelAuthorization),S.channelAuthorization):(k={transport:S.authTransport||c.authTransport,endpoint:S.authEndpoint||c.authEndpoint},"auth"in S&&("params"in S.auth&&(k.params=S.auth.params),"headers"in S.auth&&(k.headers=S.auth.headers)),"authorizer"in S&&(k.customHandler=nk(h,k,S.authorizer))),k}function dk(S,h){const k=uk(S,h);return"customHandler"in k&&k.customHandler!=null?k.customHandler:tk(k)}class fk extends be{constructor(h){super(function(k,N){ye.debug(`No callbacks on watchlist events for ${k}`)}),this.pusher=h,this.bindWatchlistInternalEvent()}handleEvent(h){h.data.events.forEach(k=>{this.emit(k.name,k)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",h=>{var k=h.event;k==="pusher_internal:watchlist_events"&&this.handleEvent(h)})}}function pk(){let S,h;return{promise:new Promise((N,F)=>{S=N,h=F}),resolve:S,reject:h}}var mk=pk;class hk extends be{constructor(h){super(function(k,N){ye.debug("No callbacks on user for "+k)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(k,N)=>{if(k){ye.warn(`Error during signin: ${k}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:N.auth,user_data:N.user_data})},this.pusher=h,this.pusher.connection.bind("state_change",({previous:k,current:N})=>{k!=="connected"&&N==="connected"&&this._signin(),k==="connected"&&N!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new fk(h),this.pusher.connection.bind("message",k=>{var N=k.event;N==="pusher:signin_success"&&this._onSigninSuccess(k.data),this.serverToUserChannel&&this.serverToUserChannel.name===k.channel&&this.serverToUserChannel.handleEvent(k)})}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(h){try{this.user_data=JSON.parse(h.user_data)}catch{ye.error(`Failed parsing user data after signin: ${h.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){ye.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const h=k=>{k.subscriptionPending&&k.subscriptionCancelled?k.reinstateSubscription():!k.subscriptionPending&&this.pusher.connection.state==="connected"&&k.subscribe()};this.serverToUserChannel=new ji(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((k,N)=>{k.indexOf("pusher_internal:")===0||k.indexOf("pusher:")===0||this.emit(k,N)}),h(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:h,resolve:k}=mk();h.done=!1;const N=()=>{h.done=!0};h.then(N).catch(N),this.signinDonePromise=h,this._signinDoneResolve=k}}class Xt{static ready(){Xt.isReady=!0;for(var h=0,k=Xt.instances.length;h<k;h++)Xt.instances[h].connect()}static getClientFeatures(){return Oe(de({ws:We.Transports.ws},function(h){return h.isSupported({})}))}constructor(h,k){vk(h),J6(k),this.key=h,this.config=rk(k,this),this.channels=$r.createChannels(),this.global_emitter=new be,this.sessionID=We.randomInt(1e9),this.timeline=new q6(this.key,this.sessionID,{cluster:this.config.cluster,features:Xt.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:cl.INFO,version:c.VERSION}),this.config.enableStats&&(this.timelineSender=$r.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+We.TimelineTransport.name}));var N=F=>We.getDefaultStrategy(this.config,F,K6);this.connection=$r.createConnectionManager(this.key,{getStrategy:N,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",F=>{var ie=F.event,we=ie.indexOf("pusher_internal:")===0;if(F.channel){var Ne=this.channel(F.channel);Ne&&Ne.handleEvent(F)}we||this.global_emitter.emit(F.event,F.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",F=>{ye.warn(F)}),Xt.instances.push(this),this.timeline.info({instances:Xt.instances.length}),this.user=new hk(this),Xt.isReady&&this.connect()}channel(h){return this.channels.find(h)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var h=this.connection.isUsingTLS(),k=this.timelineSender;this.timelineSenderTimer=new j(6e4,function(){k.send(h)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(h,k,N){return this.global_emitter.bind(h,k,N),this}unbind(h,k,N){return this.global_emitter.unbind(h,k,N),this}bind_global(h){return this.global_emitter.bind_global(h),this}unbind_global(h){return this.global_emitter.unbind_global(h),this}unbind_all(h){return this.global_emitter.unbind_all(),this}subscribeAll(){var h;for(h in this.channels.channels)this.channels.channels.hasOwnProperty(h)&&this.subscribe(h)}subscribe(h){var k=this.channels.add(h,this);return k.subscriptionPending&&k.subscriptionCancelled?k.reinstateSubscription():!k.subscriptionPending&&this.connection.state==="connected"&&k.subscribe(),k}unsubscribe(h){var k=this.channels.find(h);k&&k.subscriptionPending?k.cancelSubscription():(k=this.channels.remove(h),k&&k.subscribed&&k.unsubscribe())}send_event(h,k,N){return this.connection.send_event(h,k,N)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}Xt.instances=[],Xt.isReady=!1,Xt.logToConsole=!1,Xt.Runtime=We,Xt.ScriptReceivers=We.ScriptReceivers,Xt.DependenciesReceivers=We.DependenciesReceivers,Xt.auth_callbacks=We.auth_callbacks;var Du=a.default=Xt;function vk(S){if(S==null)throw"You must pass your app key when you instantiate Pusher."}We.setup(Xt)}])})}(bd)),bd.exports}var kR=wR();function _R(e){return{all:e=e||new Map,on:function(t,n){var a=e.get(t);a?a.push(n):e.set(t,[n])},off:function(t,n){var a=e.get(t);a&&(n?a.splice(a.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var a=e.get(t);a&&a.slice().map(function(o){o(n)}),(a=e.get("*"))&&a.slice().map(function(o){o(t,n)})}}}const ft={listeners:r.ref([]),echo:null,key:null,authorizer:null,emitter:_R(),casters:r.ref([])};function Fb(e="unique"){return ft.listeners.value.some(t=>t.name===e)||ft.listeners.value?.push({name:e,isListening:r.ref(!1)}),ft.listeners.value.find(t=>t.name===e)}function jb(e,t){ft.echo=new bR({broadcaster:"pusher",client:kR.ConnectionManager,key:e,authorizer:t,cluster:"eu",forceTLS:!0,encrypted:!0})}function SR(e=null){const t=Fb(e??void 0);function n(c){if(ft.echo===null)throw new Error("Echo is not initialized");return ft.casters[c]=ft.echo.join(c),ft.casters[c]}function a(c,u,d){if(ft.echo===null)throw new Error("Echo is not initialized");const f=d??Object.keys(ft.casters)[0];ft.casters[f]?.whisper?.(c,u)}function o(c,u,d){if(ft.echo===null)throw new Error("Echo is not initialized");const f=d??Object.keys(ft.casters)[0];if(typeof ft.casters[f]?.listenForWhisper=="function"){ft.casters[f]?.listenForWhisper?.(c,u);return}throw new Error(`Nothing to whisper to on this channel ${c}-${f}`)}function i(c){if(ft.echo===null)throw new Error("Echo is not initialized");ft.echo.leave(c),delete ft.casters[c]}function s(c,u,d,f=!0,p=!1){if(ft.echo===null)throw new Error("Echo is not initialized");const m=`${c}.${u}`,g=ft.emitter.all.has(m);t&&(t.isListening=!0),!(g&&p)&&(g||(f?ft.echo.private(c):ft.echo.channel(c)).listen(`.${u}`,w=>{ft.emitter.emit(m,w)}),ft.emitter.on(m,async y=>{const w=await d(y)??!1;t&&(t.isListening=!1),w&&l(c,u)}))}function l(c,u){if(ft.echo===null)throw new Error("Echo is not initialized");ft.emitter.off(`${c}.${u}`),ft.emitter.all.delete(`${c}.${u}`),ft.echo.leave(c),t.isListening=!1}return{on:s,off:l,join:n,leave:i,whisper:a,listen:o,listener:t,state:ft}}const Ro={instances:r.ref([]),shortcuts:r.ref([]),item:r.ref()};function _l(e){e?.instance?.unmount(),e?.element?.remove()}function fu(){const e=r.ref(),t=r.inject("plugins",cg.get(window.UILibraryOptions,"plugins"));function n(s){Ro.shortcuts.value=s}async function a(s,l,c){Ro.instances.value.forEach(_l);const u=document.createElement("div");document.body.append(u);let d=null,f=null;return Ro.item.value=s,new Promise(p=>{d=r.createApp(Nb,{item:s,confirmed:c,event:l,onClose:m=>{p(m)}}),t?.forEach(m=>{d?.use(m)}),f=d.mount(u),f.open(),e.value={ref:f,instance:d,element:u},Ro.instances.value.push(e.value)}).finally(()=>{d&&setTimeout(()=>{_l({instance:d,element:u})},500)})}async function o(){return e.value?.ref.close(),setTimeout(()=>{e.value&&_l(e.value)},300),Promise.resolve()}function i(){Ro.instances.value.forEach(s=>{s?.ref.close(),setTimeout(()=>{s&&_l(s)},300)})}return{...Ro,instance:e,open:a,close:o,closeAll:i,setShortcuts:n}}function Hb(e,t){const n=r.ref({x:0,y:0}),a=document.createElement("div");a.style.position="absolute",a.style.left=`${n.value.x}px`,a.style.top=`${n.value.y}px`,r.onMounted(()=>{document.body.append(a)}),r.onUnmounted(()=>{a.remove()});function o(i,s){n.value={x:i,y:s},a.style.left=`${i}px`,a.style.top=`${s}px`,Hs(a,e,t)}return{clientPoint:n,setPosition:o}}function Hs(e,t,n){const a="aria-expanded",o=r.ref(n?.active??!1),i=r.ref(),s=r.ref(),l=r.ref(),c=r.ref(),u=r.ref(),d=n?.placement??"bottom-start",f="clippingAncestors",p=n?.center??!1,m=n?.mainAxis??0,g=n?.crossAxis??2,y=r.ref();function w(v,x){i.value=v,s.value=x,l.value=new MutationObserver(P=>{const O=P[0].target.getAttribute(a);o.value=O==="true"}),c.value=new MutationObserver(async()=>{E(),await new Promise(P=>{setTimeout(P,500)}),E()}),i.value&&s.value&&(l.value.observe(i.value,{attributes:!0,attributeFilter:[a]}),E());const C=typeof n?.sizeElement=="string"?document.querySelector(n.sizeElement):n?.sizeElement;C&&c.value.observe(C,{childList:!0,subtree:!0})}function b(v){const x=r.unref(v);return typeof x=="function"?x():x}function E(){if(!i.value||!s.value){console.error("Reference en/or floating element not found");return}u.value=XL(i.value,s.value,async()=>{if(!i.value||!s.value){console.error("reference and/or floating element not found");return}y.value=await tD(i.value,s.value,{placement:d,middleware:[Eb({boundary:f}),xb(({rects:x})=>{const C=-x.floating.width/2+x.reference.width/2;return{mainAxis:m,crossAxis:p?C:g}}),...n?.sizeElement?[QL({apply({elements:x}){const C=x.reference.getBoundingClientRect(),P=C.x+C.width,L=(typeof n?.sizeElement=="string"?document.querySelector(n.sizeElement):n?.sizeElement)?.getBoundingClientRect()?.x;P&&L&&Object.assign(x.floating.style,{width:`${Math.max(0,L-P)}px`})}})]:[],...n?.middleware??[]]});const v={left:"0",top:"0",transform:`translate(${Math.round(y.value.x)}px,${Math.round(y.value.y)}px)`};Object.assign(s.value.style,v),s.value.dataset.position=y.value.placement})}function _(){delete s.value?.dataset.position,u.value?.()}return r.watch(o,()=>{E()}),Zt.tryOnMounted(()=>{const v=b(e),x=b(t);if(v&&x){w(v,x);return}console.error("Reference or floating element not found",v,x)}),r.onUnmounted(()=>{_(),l.value?.disconnect()}),{position:y,isActive:o,setComputedPosition:E}}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const CR=e=>e!=null;/*!
634
634
  * tabbable 6.2.0
635
635
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
636
636
  */var Ub=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],bc=Ub.join(","),Wb=typeof Element>"u",go=Wb?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,wc=!Wb&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},kc=function e(t,n){var a;n===void 0&&(n=!0);var o=t==null||(a=t.getAttribute)===null||a===void 0?void 0:a.call(t,"inert"),i=o===""||o==="true",s=i||n&&t&&e(t.parentNode);return s},xR=function(t){var n,a=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return a===""||a==="true"},qb=function(t,n,a){if(kc(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(bc));return n&&go.call(t,bc)&&o.unshift(t),o=o.filter(a),o},Yb=function e(t,n,a){for(var o=[],i=Array.from(t);i.length;){var s=i.shift();if(!kc(s,!1))if(s.tagName==="SLOT"){var l=s.assignedElements(),c=l.length?l:s.children,u=e(c,!0,a);a.flatten?o.push.apply(o,u):o.push({scopeParent:s,candidates:u})}else{var d=go.call(s,bc);d&&a.filter(s)&&(n||!t.includes(s))&&o.push(s);var f=s.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(s),p=!kc(f,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(s));if(f&&p){var m=e(f===!0?s.children:f.children,!0,a);a.flatten?o.push.apply(o,m):o.push({scopeParent:s,candidates:m})}else i.unshift.apply(i,s.children)}}return o},Gb=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Ga=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||xR(t))&&!Gb(t)?0:t.tabIndex},ER=function(t,n){var a=Ga(t);return a<0&&n&&!Gb(t)?0:a},TR=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Kb=function(t){return t.tagName==="INPUT"},PR=function(t){return Kb(t)&&t.type==="hidden"},AR=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(a){return a.tagName==="SUMMARY"});return n},IR=function(t,n){for(var a=0;a<t.length;a++)if(t[a].checked&&t[a].form===n)return t[a]},MR=function(t){if(!t.name)return!0;var n=t.form||wc(t),a=function(l){return n.querySelectorAll('input[type="radio"][name="'+l+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=a(window.CSS.escape(t.name));else try{o=a(t.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=IR(o,t.form);return!i||i===t},NR=function(t){return Kb(t)&&t.type==="radio"},OR=function(t){return NR(t)&&!MR(t)},BR=function(t){var n,a=t&&wc(t),o=(n=a)===null||n===void 0?void 0:n.host,i=!1;if(a&&a!==t){var s,l,c;for(i=!!((s=o)!==null&&s!==void 0&&(l=s.ownerDocument)!==null&&l!==void 0&&l.contains(o)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!i&&o;){var u,d,f;a=wc(o),o=(u=a)===null||u===void 0?void 0:u.host,i=!!((d=o)!==null&&d!==void 0&&(f=d.ownerDocument)!==null&&f!==void 0&&f.contains(o))}}return i},P0=function(t){var n=t.getBoundingClientRect(),a=n.width,o=n.height;return a===0&&o===0},LR=function(t,n){var a=n.displayCheck,o=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var i=go.call(t,"details>summary:first-of-type"),s=i?t.parentElement:t;if(go.call(s,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="legacy-full"){if(typeof o=="function"){for(var l=t;t;){var c=t.parentElement,u=wc(t);if(c&&!c.shadowRoot&&o(c)===!0)return P0(t);t.assignedSlot?t=t.assignedSlot:!c&&u!==t.ownerDocument?t=u.host:t=c}t=l}if(BR(t))return!t.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return P0(t);return!1},DR=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var a=0;a<n.children.length;a++){var o=n.children.item(a);if(o.tagName==="LEGEND")return go.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},_c=function(t,n){return!(n.disabled||kc(n)||PR(n)||LR(n,t)||AR(n)||DR(n))},Af=function(t,n){return!(OR(n)||Ga(n)<0||!_c(t,n))},RR=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},$R=function e(t){var n=[],a=[];return t.forEach(function(o,i){var s=!!o.scopeParent,l=s?o.scopeParent:o,c=ER(l,s),u=s?e(o.candidates):l;c===0?s?n.push.apply(n,u):n.push(l):a.push({documentOrder:i,tabIndex:c,item:o,isScope:s,content:u})}),a.sort(TR).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},zR=function(t,n){n=n||{};var a;return n.getShadowRoot?a=Yb([t],n.includeContainer,{filter:Af.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:RR}):a=qb(t,n.includeContainer,Af.bind(null,n)),$R(a)},VR=function(t,n){n=n||{};var a;return n.getShadowRoot?a=Yb([t],n.includeContainer,{filter:_c.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):a=qb(t,n.includeContainer,_c.bind(null,n)),a},$o=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return go.call(t,bc)===!1?!1:Af(n,t)},FR=Ub.concat("iframe").join(","),wd=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return go.call(t,FR)===!1?!1:_c(n,t)};/*!
637
637
  * focus-trap 7.6.5
638
638
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
639
639
  */function If(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function jR(e){if(Array.isArray(e))return If(e)}function HR(e,t,n){return(t=GR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
640
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,a)}return n}function I0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A0(Object(n),!0).forEach(function(a){HR(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A0(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function qR(e){return jR(e)||UR(e)||KR(e)||WR()}function YR(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GR(e){var t=YR(e,"string");return typeof t=="symbol"?t:t+""}function KR(e,t){if(e){if(typeof e=="string")return If(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?If(e,t):void 0}}var M0={activateTrap:function(t,n){if(t.length>0){var a=t[t.length-1];a!==n&&a._setPausedState(!0)}var o=t.indexOf(n);o===-1||t.splice(o,1),t.push(n)},deactivateTrap:function(t,n){var a=t.indexOf(n);a!==-1&&t.splice(a,1),t.length>0&&!t[t.length-1]._isManuallyPaused()&&t[t.length-1]._setPausedState(!1)}},XR=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},JR=function(t){return t?.key==="Escape"||t?.key==="Esc"||t?.keyCode===27},is=function(t){return t?.key==="Tab"||t?.keyCode===9},QR=function(t){return is(t)&&!t.shiftKey},ZR=function(t){return is(t)&&t.shiftKey},N0=function(t){return setTimeout(t,0)},Gi=function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];return typeof t=="function"?t.apply(void 0,a):t},Sl=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},e$=[],t$=function(t,n){var a=n?.document||document,o=n?.trapStack||e$,i=I0({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:QR,isKeyBackward:ZR},n),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},l,c=function(R,I,B){return R&&R[I]!==void 0?R[I]:i[B||I]},u=function(R,I){var B=typeof I?.composedPath=="function"?I.composedPath():void 0;return s.containerGroups.findIndex(function(M){var $=M.container,K=M.tabbableNodes;return $.contains(R)||B?.includes($)||K.find(function(V){return V===R})})},d=function(R){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=I.hasFallback,M=B===void 0?!1:B,$=I.params,K=$===void 0?[]:$,V=i[R];if(typeof V=="function"&&(V=V.apply(void 0,qR(K))),V===!0&&(V=void 0),!V){if(V===void 0||V===!1)return V;throw new Error("`".concat(R,"` was specified but was not a node, or did not return a node"))}var Z=V;if(typeof V=="string"){try{Z=a.querySelector(V)}catch(q){throw new Error("`".concat(R,'` appears to be an invalid selector; error="').concat(q.message,'"'))}if(!Z&&!M)throw new Error("`".concat(R,"` as selector refers to no known node"))}return Z},f=function(){var R=d("initialFocus",{hasFallback:!0});if(R===!1)return!1;if(R===void 0||R&&!wd(R,i.tabbableOptions))if(u(a.activeElement)>=0)R=a.activeElement;else{var I=s.tabbableGroups[0],B=I&&I.firstTabbableNode;R=B||d("fallbackFocus")}else R===null&&(R=d("fallbackFocus"));if(!R)throw new Error("Your focus-trap needs to have at least one focusable element");return R},p=function(){if(s.containerGroups=s.containers.map(function(R){var I=zR(R,i.tabbableOptions),B=VR(R,i.tabbableOptions),M=I.length>0?I[0]:void 0,$=I.length>0?I[I.length-1]:void 0,K=B.find(function(q){return $o(q)}),V=B.slice().reverse().find(function(q){return $o(q)}),Z=!!I.find(function(q){return Ga(q)>0});return{container:R,tabbableNodes:I,focusableNodes:B,posTabIndexesFound:Z,firstTabbableNode:M,lastTabbableNode:$,firstDomTabbableNode:K,lastDomTabbableNode:V,nextTabbableNode:function(oe){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,W=I.indexOf(oe);return W<0?j?B.slice(B.indexOf(oe)+1).find(function(Y){return $o(Y)}):B.slice(0,B.indexOf(oe)).reverse().find(function(Y){return $o(Y)}):I[W+(j?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(R){return R.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!d("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find(function(R){return R.posTabIndexesFound})&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},m=function(R){var I=R.activeElement;if(I)return I.shadowRoot&&I.shadowRoot.activeElement!==null?m(I.shadowRoot):I},v=function(R){if(R!==!1&&R!==m(document)){if(!R||!R.focus){v(f());return}R.focus({preventScroll:!!i.preventScroll}),s.mostRecentlyFocusedNode=R,XR(R)&&R.select()}},y=function(R){var I=d("setReturnFocus",{params:[R]});return I||(I===!1?!1:R)},w=function(R){var I=R.target,B=R.event,M=R.isBackward,$=M===void 0?!1:M;I=I||Sl(B),p();var K=null;if(s.tabbableGroups.length>0){var V=u(I,B),Z=V>=0?s.containerGroups[V]:void 0;if(V<0)$?K=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:K=s.tabbableGroups[0].firstTabbableNode;else if($){var q=s.tabbableGroups.findIndex(function(T){var J=T.firstTabbableNode;return I===J});if(q<0&&(Z.container===I||wd(I,i.tabbableOptions)&&!$o(I,i.tabbableOptions)&&!Z.nextTabbableNode(I,!1))&&(q=V),q>=0){var oe=q===0?s.tabbableGroups.length-1:q-1,j=s.tabbableGroups[oe];K=Ga(I)>=0?j.lastTabbableNode:j.lastDomTabbableNode}else is(B)||(K=Z.nextTabbableNode(I,!1))}else{var W=s.tabbableGroups.findIndex(function(T){var J=T.lastTabbableNode;return I===J});if(W<0&&(Z.container===I||wd(I,i.tabbableOptions)&&!$o(I,i.tabbableOptions)&&!Z.nextTabbableNode(I))&&(W=V),W>=0){var Y=W===s.tabbableGroups.length-1?0:W+1,H=s.tabbableGroups[Y];K=Ga(I)>=0?H.firstTabbableNode:H.firstDomTabbableNode}else is(B)||(K=Z.nextTabbableNode(I))}}else K=d("fallbackFocus");return K},b=function(R){var I=Sl(R);if(!(u(I,R)>=0)){if(Gi(i.clickOutsideDeactivates,R)){l.deactivate({returnFocus:i.returnFocusOnDeactivate});return}Gi(i.allowOutsideClick,R)||R.preventDefault()}},E=function(R){var I=Sl(R),B=u(I,R)>=0;if(B||I instanceof Document)B&&(s.mostRecentlyFocusedNode=I);else{R.stopImmediatePropagation();var M,$=!0;if(s.mostRecentlyFocusedNode)if(Ga(s.mostRecentlyFocusedNode)>0){var K=u(s.mostRecentlyFocusedNode),V=s.containerGroups[K].tabbableNodes;if(V.length>0){var Z=V.findIndex(function(q){return q===s.mostRecentlyFocusedNode});Z>=0&&(i.isKeyForward(s.recentNavEvent)?Z+1<V.length&&(M=V[Z+1],$=!1):Z-1>=0&&(M=V[Z-1],$=!1))}}else s.containerGroups.some(function(q){return q.tabbableNodes.some(function(oe){return Ga(oe)>0})})||($=!1);else $=!1;$&&(M=w({target:s.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(s.recentNavEvent)})),v(M||s.mostRecentlyFocusedNode||f())}s.recentNavEvent=void 0},_=function(R){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=R;var B=w({event:R,isBackward:I});B&&(is(R)&&R.preventDefault(),v(B))},g=function(R){(i.isKeyForward(R)||i.isKeyBackward(R))&&_(R,i.isKeyBackward(R))},x=function(R){JR(R)&&Gi(i.escapeDeactivates,R)!==!1&&(R.preventDefault(),l.deactivate())},C=function(R){var I=Sl(R);u(I,R)>=0||Gi(i.clickOutsideDeactivates,R)||Gi(i.allowOutsideClick,R)||(R.preventDefault(),R.stopImmediatePropagation())},P=function(){if(s.active)return M0.activateTrap(o,l),s.delayInitialFocusTimer=i.delayInitialFocus?N0(function(){v(f())}):v(f()),a.addEventListener("focusin",E,!0),a.addEventListener("mousedown",b,{capture:!0,passive:!1}),a.addEventListener("touchstart",b,{capture:!0,passive:!1}),a.addEventListener("click",C,{capture:!0,passive:!1}),a.addEventListener("keydown",g,{capture:!0,passive:!1}),a.addEventListener("keydown",x),l},O=function(){if(s.active)return a.removeEventListener("focusin",E,!0),a.removeEventListener("mousedown",b,!0),a.removeEventListener("touchstart",b,!0),a.removeEventListener("click",C,!0),a.removeEventListener("keydown",g,!0),a.removeEventListener("keydown",x),l},A=function(R){var I=R.some(function(B){var M=Array.from(B.removedNodes);return M.some(function($){return $===s.mostRecentlyFocusedNode})});I&&v(f())},L=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(A):void 0,U=function(){L&&(L.disconnect(),s.active&&!s.paused&&s.containers.map(function(R){L.observe(R,{subtree:!0,childList:!0})}))};return l={get active(){return s.active},get paused(){return s.paused},activate:function(R){if(s.active)return this;var I=c(R,"onActivate"),B=c(R,"onPostActivate"),M=c(R,"checkCanFocusTrap");M||p(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=m(a),I?.();var $=function(){M&&p(),P(),U(),B?.()};return M?(M(s.containers.concat()).then($,$),this):($(),this)},deactivate:function(R){if(!s.active)return this;var I=I0({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},R);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,O(),s.active=!1,s.paused=!1,U(),M0.deactivateTrap(o,l);var B=c(I,"onDeactivate"),M=c(I,"onPostDeactivate"),$=c(I,"checkCanReturnFocus"),K=c(I,"returnFocus","returnFocusOnDeactivate");B?.();var V=function(){N0(function(){K&&v(y(s.nodeFocusedBeforeActivation)),M?.()})};return K&&$?($(y(s.nodeFocusedBeforeActivation)).then(V,V),this):(V(),this)},pause:function(R){return s.active?(s.manuallyPaused=!0,this._setPausedState(!0,R)):this},unpause:function(R){return s.active?(s.manuallyPaused=!1,o[o.length-1]!==this?this:this._setPausedState(!1,R)):this},updateContainerElements:function(R){var I=[].concat(R).filter(Boolean);return s.containers=I.map(function(B){return typeof B=="string"?a.querySelector(B):B}),s.active&&p(),U(),this}},Object.defineProperties(l,{_isManuallyPaused:{value:function(){return s.manuallyPaused}},_setPausedState:{value:function(R,I){if(s.paused===R)return this;if(s.paused=R,R){var B=c(I,"onPause"),M=c(I,"onPostPause");B?.(),O(),U(),M?.()}else{var $=c(I,"onUnpause"),K=c(I,"onPostUnpause");$?.(),p(),P(),U(),K?.()}return this}}}),l.updateContainerElements(t),l};function n$(e,t={}){let n;const{immediate:a,...o}=t,i=r.shallowRef(!1),s=r.shallowRef(!1),l=p=>n&&n.activate(p),c=p=>n&&n.deactivate(p),u=()=>{n&&(n.pause(),s.value=!0)},d=()=>{n&&(n.unpause(),s.value=!1)},f=r.computed(()=>{const p=r.toValue(e);return Zt.toArray(p).map(m=>{const v=r.toValue(m);return typeof v=="string"?v:Zt.unrefElement(v)}).filter(CR)});return r.watch(f,p=>{if(p.length)if(!n)n=t$(p,{...o,onActivate(){i.value=!0,t.onActivate&&t.onActivate()},onDeactivate(){i.value=!1,t.onDeactivate&&t.onDeactivate()}}),a&&l();else{const m=n?.active;n?.updateContainerElements(p),!m&&a&&l()}},{flush:"post"}),Zt.tryOnScopeDispose(()=>c()),{hasFocus:i,isPaused:s,activate:l,deactivate:c,pause:u,unpause:d}}function bm(e,t={}){const n=r.ref(!1),{activate:a,deactivate:o}=n$(e),i=Zt.useActiveElement(),s=r.ref(),l=r.ref();function c(p){s.value=p}function u(p){l.value=p}function d(){n.value=!0;try{a()}catch(p){console.warn(p)}}function f(){n.value=!1,o()}return Zt.onKeyStroke(["Escape"],p=>{n.value&&(p.preventDefault(),s.value?.())}),Zt.onKeyStroke(["Enter","ArrowRight"],p=>{if(n.value&&(p.preventDefault(),p.key==="Enter"||p.key==="ArrowRight"&&i.value?.classList.contains("has-submenu"))){if(t.childTargetClass){i.value?.querySelector(t?.childTargetClass??".app-action-bar-item")?.click();return}i.value?.firstElementChild?.click()}}),Zt.onKeyStroke(["ArrowLeft"],()=>{n.value&&l.value?.()}),Zt.onKeyStroke(["ArrowDown","ArrowUp"],p=>{if(n.value){if(p.preventDefault(),p.key==="ArrowUp"){i.value?.previousElementSibling?.focus();return}i.value?.nextElementSibling?.focus()}}),{isActive:n,activate:d,deactivate:f,onEscape:c,onBack:u}}const r$={},a$={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function o$(e,t){return r.openBlock(),r.createElementBlock("svg",a$,t[0]||(t[0]=[r.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
640
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,a)}return n}function I0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A0(Object(n),!0).forEach(function(a){HR(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A0(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function qR(e){return jR(e)||UR(e)||KR(e)||WR()}function YR(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GR(e){var t=YR(e,"string");return typeof t=="symbol"?t:t+""}function KR(e,t){if(e){if(typeof e=="string")return If(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?If(e,t):void 0}}var M0={activateTrap:function(t,n){if(t.length>0){var a=t[t.length-1];a!==n&&a._setPausedState(!0)}var o=t.indexOf(n);o===-1||t.splice(o,1),t.push(n)},deactivateTrap:function(t,n){var a=t.indexOf(n);a!==-1&&t.splice(a,1),t.length>0&&!t[t.length-1]._isManuallyPaused()&&t[t.length-1]._setPausedState(!1)}},XR=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},JR=function(t){return t?.key==="Escape"||t?.key==="Esc"||t?.keyCode===27},is=function(t){return t?.key==="Tab"||t?.keyCode===9},QR=function(t){return is(t)&&!t.shiftKey},ZR=function(t){return is(t)&&t.shiftKey},N0=function(t){return setTimeout(t,0)},Gi=function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];return typeof t=="function"?t.apply(void 0,a):t},Sl=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},e$=[],t$=function(t,n){var a=n?.document||document,o=n?.trapStack||e$,i=I0({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:QR,isKeyBackward:ZR},n),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},l,c=function(R,I,B){return R&&R[I]!==void 0?R[I]:i[B||I]},u=function(R,I){var B=typeof I?.composedPath=="function"?I.composedPath():void 0;return s.containerGroups.findIndex(function(M){var $=M.container,K=M.tabbableNodes;return $.contains(R)||B?.includes($)||K.find(function(V){return V===R})})},d=function(R){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=I.hasFallback,M=B===void 0?!1:B,$=I.params,K=$===void 0?[]:$,V=i[R];if(typeof V=="function"&&(V=V.apply(void 0,qR(K))),V===!0&&(V=void 0),!V){if(V===void 0||V===!1)return V;throw new Error("`".concat(R,"` was specified but was not a node, or did not return a node"))}var Z=V;if(typeof V=="string"){try{Z=a.querySelector(V)}catch(q){throw new Error("`".concat(R,'` appears to be an invalid selector; error="').concat(q.message,'"'))}if(!Z&&!M)throw new Error("`".concat(R,"` as selector refers to no known node"))}return Z},f=function(){var R=d("initialFocus",{hasFallback:!0});if(R===!1)return!1;if(R===void 0||R&&!wd(R,i.tabbableOptions))if(u(a.activeElement)>=0)R=a.activeElement;else{var I=s.tabbableGroups[0],B=I&&I.firstTabbableNode;R=B||d("fallbackFocus")}else R===null&&(R=d("fallbackFocus"));if(!R)throw new Error("Your focus-trap needs to have at least one focusable element");return R},p=function(){if(s.containerGroups=s.containers.map(function(R){var I=zR(R,i.tabbableOptions),B=VR(R,i.tabbableOptions),M=I.length>0?I[0]:void 0,$=I.length>0?I[I.length-1]:void 0,K=B.find(function(q){return $o(q)}),V=B.slice().reverse().find(function(q){return $o(q)}),Z=!!I.find(function(q){return Ga(q)>0});return{container:R,tabbableNodes:I,focusableNodes:B,posTabIndexesFound:Z,firstTabbableNode:M,lastTabbableNode:$,firstDomTabbableNode:K,lastDomTabbableNode:V,nextTabbableNode:function(oe){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,W=I.indexOf(oe);return W<0?j?B.slice(B.indexOf(oe)+1).find(function(Y){return $o(Y)}):B.slice(0,B.indexOf(oe)).reverse().find(function(Y){return $o(Y)}):I[W+(j?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(R){return R.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!d("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find(function(R){return R.posTabIndexesFound})&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},m=function(R){var I=R.activeElement;if(I)return I.shadowRoot&&I.shadowRoot.activeElement!==null?m(I.shadowRoot):I},g=function(R){if(R!==!1&&R!==m(document)){if(!R||!R.focus){g(f());return}R.focus({preventScroll:!!i.preventScroll}),s.mostRecentlyFocusedNode=R,XR(R)&&R.select()}},y=function(R){var I=d("setReturnFocus",{params:[R]});return I||(I===!1?!1:R)},w=function(R){var I=R.target,B=R.event,M=R.isBackward,$=M===void 0?!1:M;I=I||Sl(B),p();var K=null;if(s.tabbableGroups.length>0){var V=u(I,B),Z=V>=0?s.containerGroups[V]:void 0;if(V<0)$?K=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:K=s.tabbableGroups[0].firstTabbableNode;else if($){var q=s.tabbableGroups.findIndex(function(T){var J=T.firstTabbableNode;return I===J});if(q<0&&(Z.container===I||wd(I,i.tabbableOptions)&&!$o(I,i.tabbableOptions)&&!Z.nextTabbableNode(I,!1))&&(q=V),q>=0){var oe=q===0?s.tabbableGroups.length-1:q-1,j=s.tabbableGroups[oe];K=Ga(I)>=0?j.lastTabbableNode:j.lastDomTabbableNode}else is(B)||(K=Z.nextTabbableNode(I,!1))}else{var W=s.tabbableGroups.findIndex(function(T){var J=T.lastTabbableNode;return I===J});if(W<0&&(Z.container===I||wd(I,i.tabbableOptions)&&!$o(I,i.tabbableOptions)&&!Z.nextTabbableNode(I))&&(W=V),W>=0){var Y=W===s.tabbableGroups.length-1?0:W+1,H=s.tabbableGroups[Y];K=Ga(I)>=0?H.firstTabbableNode:H.firstDomTabbableNode}else is(B)||(K=Z.nextTabbableNode(I))}}else K=d("fallbackFocus");return K},b=function(R){var I=Sl(R);if(!(u(I,R)>=0)){if(Gi(i.clickOutsideDeactivates,R)){l.deactivate({returnFocus:i.returnFocusOnDeactivate});return}Gi(i.allowOutsideClick,R)||R.preventDefault()}},E=function(R){var I=Sl(R),B=u(I,R)>=0;if(B||I instanceof Document)B&&(s.mostRecentlyFocusedNode=I);else{R.stopImmediatePropagation();var M,$=!0;if(s.mostRecentlyFocusedNode)if(Ga(s.mostRecentlyFocusedNode)>0){var K=u(s.mostRecentlyFocusedNode),V=s.containerGroups[K].tabbableNodes;if(V.length>0){var Z=V.findIndex(function(q){return q===s.mostRecentlyFocusedNode});Z>=0&&(i.isKeyForward(s.recentNavEvent)?Z+1<V.length&&(M=V[Z+1],$=!1):Z-1>=0&&(M=V[Z-1],$=!1))}}else s.containerGroups.some(function(q){return q.tabbableNodes.some(function(oe){return Ga(oe)>0})})||($=!1);else $=!1;$&&(M=w({target:s.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(s.recentNavEvent)})),g(M||s.mostRecentlyFocusedNode||f())}s.recentNavEvent=void 0},_=function(R){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=R;var B=w({event:R,isBackward:I});B&&(is(R)&&R.preventDefault(),g(B))},v=function(R){(i.isKeyForward(R)||i.isKeyBackward(R))&&_(R,i.isKeyBackward(R))},x=function(R){JR(R)&&Gi(i.escapeDeactivates,R)!==!1&&(R.preventDefault(),l.deactivate())},C=function(R){var I=Sl(R);u(I,R)>=0||Gi(i.clickOutsideDeactivates,R)||Gi(i.allowOutsideClick,R)||(R.preventDefault(),R.stopImmediatePropagation())},P=function(){if(s.active)return M0.activateTrap(o,l),s.delayInitialFocusTimer=i.delayInitialFocus?N0(function(){g(f())}):g(f()),a.addEventListener("focusin",E,!0),a.addEventListener("mousedown",b,{capture:!0,passive:!1}),a.addEventListener("touchstart",b,{capture:!0,passive:!1}),a.addEventListener("click",C,{capture:!0,passive:!1}),a.addEventListener("keydown",v,{capture:!0,passive:!1}),a.addEventListener("keydown",x),l},O=function(){if(s.active)return a.removeEventListener("focusin",E,!0),a.removeEventListener("mousedown",b,!0),a.removeEventListener("touchstart",b,!0),a.removeEventListener("click",C,!0),a.removeEventListener("keydown",v,!0),a.removeEventListener("keydown",x),l},A=function(R){var I=R.some(function(B){var M=Array.from(B.removedNodes);return M.some(function($){return $===s.mostRecentlyFocusedNode})});I&&g(f())},L=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(A):void 0,U=function(){L&&(L.disconnect(),s.active&&!s.paused&&s.containers.map(function(R){L.observe(R,{subtree:!0,childList:!0})}))};return l={get active(){return s.active},get paused(){return s.paused},activate:function(R){if(s.active)return this;var I=c(R,"onActivate"),B=c(R,"onPostActivate"),M=c(R,"checkCanFocusTrap");M||p(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=m(a),I?.();var $=function(){M&&p(),P(),U(),B?.()};return M?(M(s.containers.concat()).then($,$),this):($(),this)},deactivate:function(R){if(!s.active)return this;var I=I0({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},R);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,O(),s.active=!1,s.paused=!1,U(),M0.deactivateTrap(o,l);var B=c(I,"onDeactivate"),M=c(I,"onPostDeactivate"),$=c(I,"checkCanReturnFocus"),K=c(I,"returnFocus","returnFocusOnDeactivate");B?.();var V=function(){N0(function(){K&&g(y(s.nodeFocusedBeforeActivation)),M?.()})};return K&&$?($(y(s.nodeFocusedBeforeActivation)).then(V,V),this):(V(),this)},pause:function(R){return s.active?(s.manuallyPaused=!0,this._setPausedState(!0,R)):this},unpause:function(R){return s.active?(s.manuallyPaused=!1,o[o.length-1]!==this?this:this._setPausedState(!1,R)):this},updateContainerElements:function(R){var I=[].concat(R).filter(Boolean);return s.containers=I.map(function(B){return typeof B=="string"?a.querySelector(B):B}),s.active&&p(),U(),this}},Object.defineProperties(l,{_isManuallyPaused:{value:function(){return s.manuallyPaused}},_setPausedState:{value:function(R,I){if(s.paused===R)return this;if(s.paused=R,R){var B=c(I,"onPause"),M=c(I,"onPostPause");B?.(),O(),U(),M?.()}else{var $=c(I,"onUnpause"),K=c(I,"onPostUnpause");$?.(),p(),P(),U(),K?.()}return this}}}),l.updateContainerElements(t),l};function n$(e,t={}){let n;const{immediate:a,...o}=t,i=r.shallowRef(!1),s=r.shallowRef(!1),l=p=>n&&n.activate(p),c=p=>n&&n.deactivate(p),u=()=>{n&&(n.pause(),s.value=!0)},d=()=>{n&&(n.unpause(),s.value=!1)},f=r.computed(()=>{const p=r.toValue(e);return Zt.toArray(p).map(m=>{const g=r.toValue(m);return typeof g=="string"?g:Zt.unrefElement(g)}).filter(CR)});return r.watch(f,p=>{if(p.length)if(!n)n=t$(p,{...o,onActivate(){i.value=!0,t.onActivate&&t.onActivate()},onDeactivate(){i.value=!1,t.onDeactivate&&t.onDeactivate()}}),a&&l();else{const m=n?.active;n?.updateContainerElements(p),!m&&a&&l()}},{flush:"post"}),Zt.tryOnScopeDispose(()=>c()),{hasFocus:i,isPaused:s,activate:l,deactivate:c,pause:u,unpause:d}}function bm(e,t={}){const n=r.ref(!1),{activate:a,deactivate:o}=n$(e),i=Zt.useActiveElement(),s=r.ref(),l=r.ref();function c(p){s.value=p}function u(p){l.value=p}function d(){n.value=!0;try{a()}catch(p){console.warn(p)}}function f(){n.value=!1,o()}return Zt.onKeyStroke(["Escape"],p=>{n.value&&(p.preventDefault(),s.value?.())}),Zt.onKeyStroke(["Enter","ArrowRight"],p=>{if(n.value&&(p.preventDefault(),p.key==="Enter"||p.key==="ArrowRight"&&i.value?.classList.contains("has-submenu"))){if(t.childTargetClass){i.value?.querySelector(t?.childTargetClass??".app-action-bar-item")?.click();return}i.value?.firstElementChild?.click()}}),Zt.onKeyStroke(["ArrowLeft"],()=>{n.value&&l.value?.()}),Zt.onKeyStroke(["ArrowDown","ArrowUp"],p=>{if(n.value){if(p.preventDefault(),p.key==="ArrowUp"){i.value?.previousElementSibling?.focus();return}i.value?.nextElementSibling?.focus()}}),{isActive:n,activate:d,deactivate:f,onEscape:c,onBack:u}}const r$={},a$={width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function o$(e,t){return r.openBlock(),r.createElementBlock("svg",a$,t[0]||(t[0]=[r.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
641
641
  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
642
642
  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
643
643
  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
@@ -649,11 +649,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
649
649
  `);for(let l=a;l<s.length;l++){const c=s[l];if(c.length>1024)continue;const u=O0.test(c)?c.replace(O0,"$1"):c;if(!u.match(/\S*Error: /)){for(const d of t){const f=d(u);if(f){i.push(f);break}}if(i.length>=F4+o)break}}return YV(i.slice(o))}}function qV(e){return Array.isArray(e)?j4(...e):e}function YV(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Cl(t).function||"")&&t.pop(),t.reverse(),B0.test(Cl(t).function||"")&&(t.pop(),B0.test(Cl(t).function||"")&&t.pop()),t.slice(0,F4).map(n=>({...n,filename:n.filename||Cl(t).filename,function:n.function||yo}))}function Cl(e){return e[e.length-1]||{}}const kd="<anonymous>";function Qr(e){try{return!e||typeof e!="function"?kd:e.name||kd}catch{return kd}}function L0(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(a=>{a.stacktrace.frames&&n.push(...a.stacktrace.frames)}),n}catch{return}}}const Yl={},D0={};function Ra(e,t){Yl[e]=Yl[e]||[],Yl[e].push(t)}function $a(e,t){if(!D0[e]){D0[e]=!0;try{t()}catch(n){Le&&ke.error(`Error while instrumenting ${e}`,n)}}}function Vn(e,t){const n=e&&Yl[e];if(n)for(const a of n)try{a(t)}catch(o){Le&&ke.error(`Error while triggering instrumentation handler.
650
650
  Type: ${e}
651
651
  Name: ${Qr(a)}
652
- Error:`,o)}}let _d=null;function H4(e){const t="error";Ra(t,e),$a(t,GV)}function GV(){_d=rt.onerror,rt.onerror=function(e,t,n,a,o){return Vn("error",{column:a,error:o,line:n,msg:e,url:t}),_d?_d.apply(this,arguments):!1},rt.onerror.__SENTRY_INSTRUMENTED__=!0}let Sd=null;function U4(e){const t="unhandledrejection";Ra(t,e),$a(t,KV)}function KV(){Sd=rt.onunhandledrejection,rt.onunhandledrejection=function(e){return Vn("unhandledrejection",e),Sd?Sd.apply(this,arguments):!0},rt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const W4=Object.prototype.toString;function Im(e){switch(W4.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Zr(e,Error)}}function Ni(e,t){return W4.call(e)===`[object ${t}]`}function q4(e){return Ni(e,"ErrorEvent")}function R0(e){return Ni(e,"DOMError")}function XV(e){return Ni(e,"DOMException")}function Ur(e){return Ni(e,"String")}function Mm(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Cs(e){return e===null||Mm(e)||typeof e!="object"&&typeof e!="function"}function xs(e){return Ni(e,"Object")}function vu(e){return typeof Event<"u"&&Zr(e,Event)}function JV(e){return typeof Element<"u"&&Zr(e,Element)}function QV(e){return Ni(e,"RegExp")}function Ys(e){return!!(e?.then&&typeof e.then=="function")}function ZV(e){return xs(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Zr(e,t){try{return e instanceof t}catch{return!1}}function Y4(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function G4(e){return typeof Request<"u"&&Zr(e,Request)}const Nm=rt,eF=80;function Hn(e,t={}){if(!e)return"<unknown>";try{let n=e;const a=5,o=[];let i=0,s=0;const l=" > ",c=l.length;let u;const d=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||eF;for(;n&&i++<a&&(u=tF(n,d),!(u==="html"||i>1&&s+o.length*c+u.length>=f));)o.push(u),s+=u.length,n=n.parentNode;return o.reverse().join(l)}catch{return"<unknown>"}}function tF(e,t){const n=e,a=[];if(!n?.tagName)return"";if(Nm.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}a.push(n.tagName.toLowerCase());const o=t?.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(o?.length)o.forEach(s=>{a.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&a.push(`#${n.id}`);const s=n.className;if(s&&Ur(s)){const l=s.split(/\s+/);for(const c of l)a.push(`.${c}`)}}const i=["aria-label","type","name","title","alt"];for(const s of i){const l=n.getAttribute(s);l&&a.push(`[${s}="${l}"]`)}return a.join("")}function Oi(){try{return Nm.document.location.href}catch{return""}}function K4(e){if(!Nm.HTMLElement)return null;let t=e;const n=5;for(let a=0;a<n;a++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Cc(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function $0(e,t){if(!Array.isArray(e))return"";const n=[];for(let a=0;a<e.length;a++){const o=e[a];try{Y4(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function nF(e,t,n=!1){return Ur(e)?QV(t)?t.test(e):Ur(t)?n?e===t:e.includes(t):!1:!1}function Wr(e,t=[],n=!1){return t.some(a=>nF(e,a,n))}function wn(e,t,n){if(!(t in e))return;const a=e[t];if(typeof a!="function")return;const o=n(a);typeof o=="function"&&X4(o,a);try{e[t]=o}catch{Le&&ke.log(`Failed to replace method "${t}" in object`,e)}}function Bn(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Le&&ke.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function X4(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Bn(e,"__sentry_original__",t)}catch{}}function Om(e){return e.__sentry_original__}function J4(e){if(Im(e))return{message:e.message,name:e.name,stack:e.stack,...V0(e)};if(vu(e)){const t={type:e.type,target:z0(e.target),currentTarget:z0(e.currentTarget),...V0(e)};return typeof CustomEvent<"u"&&Zr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function z0(e){try{return JV(e)?Hn(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function V0(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 rF(e,t=40){const n=Object.keys(J4(e));n.sort();const a=n[0];if(!a)return"[object has no keys]";if(a.length>=t)return Cc(a,t);for(let o=n.length;o>0;o--){const i=n.slice(0,o).join(", ");if(!(i.length>t))return o===n.length?i:Cc(i,t)}return""}function aF(){const e=rt;return e.crypto||e.msCrypto}function Nn(e=aF()){let t=()=>Math.random()*16;try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(t()&15)>>n/4).toString(16))}function Q4(e){return e.exception?.values?.[0]}function Ka(e){const{message:t,event_id:n}=e;if(t)return t;const a=Q4(e);return a?a.type&&a.value?`${a.type}: ${a.value}`:a.type||a.value||n||"<unknown>":n||"<unknown>"}function Mf(e,t,n){const a=e.exception=e.exception||{},o=a.values=a.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function bi(e,t){const n=Q4(e);if(!n)return;const a={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...a,...o,...t},t&&"data"in t){const i={...o?.data,...t.data};n.mechanism.data=i}}function F0(e){if(oF(e))return!0;try{Bn(e,"__sentry_captured__",!0)}catch{}return!1}function oF(e){try{return e.__sentry_captured__}catch{}}const Z4=1e3;function xo(){return Date.now()/Z4}function iF(){const{performance:e}=rt;if(!e?.now||!e.timeOrigin)return xo;const t=e.timeOrigin;return()=>(t+e.now())/Z4}let j0;function Ht(){return(j0??(j0=iF()))()}let Cd;function sF(){const{performance:e}=rt;if(!e?.now)return[void 0,"none"];const t=3600*1e3,n=e.now(),a=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-a):t,i=o<t,s=e.timing?.navigationStart,c=typeof s=="number"?Math.abs(s+n-a):t,u=c<t;return i||u?o<=c?[e.timeOrigin,"timeOrigin"]:[s,"navigationStart"]:[a,"dateNow"]}function hn(){return Cd||(Cd=sF()),Cd[0]}function lF(e){const t=Ht(),n={sid:Nn(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>uF(n)};return e&&wi(n,e),n}function wi(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Ht(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Nn()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function cF(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),wi(e,n)}function uF(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function Gs(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const a={...e};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(a[o]=Gs(a[o],t[o],n-1));return a}function Ea(){return Nn()}function Ks(){return Nn().substring(16)}const Nf="_sentrySpan";function ki(e,t){t?Bn(e,Nf,t):delete e[Nf]}function xc(e){return e[Nf]}const dF=100;class Br{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Ea(),sampleRand:Math.random()}}clone(){const t=new Br;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,ki(t,xc(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&wi(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,a=n instanceof Br?n.getScopeData():xs(n)?t:void 0,{tags:o,extra:i,user:s,contexts:l,level:c,fingerprint:u=[],propagationContext:d}=a||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...l},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),u.length&&(this._fingerprint=u),d&&(this._propagationContext=d),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._session=void 0,ki(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ea(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const a=typeof n=="number"?n:dF;if(a<=0)return this;const o={timestamp:xo(),...t,message:t.message?Cc(t.message,2048):t.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>a&&(this._breadcrumbs=this._breadcrumbs.slice(-a),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:xc(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Gs(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const a=n?.event_id||Nn();if(!this._client)return Le&&ke.warn("No client configured on scope - will not capture exception!"),a;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:a},this),a}captureMessage(t,n,a){const o=a?.event_id||Nn();if(!this._client)return Le&&ke.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,...a,event_id:o},this),o}captureEvent(t,n){const a=n?.event_id||Nn();return this._client?(this._client.captureEvent(t,{...n,event_id:a},this),a):(Le&&ke.warn("No client configured on scope - will not capture event!"),a)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function fF(){return qs("defaultCurrentScope",()=>new Br)}function pF(){return qs("defaultIsolationScope",()=>new Br)}class mF{constructor(t,n){let a;t?a=t:a=new Br;let o;n?o=n:o=new Br,this._stack=[{scope:a}],this._isolationScope=o}withScope(t){const n=this._pushScope();let a;try{a=t(n)}catch(o){throw this._popScope(),o}return Ys(a)?a.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),a)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function _i(){const e=Co(),t=hu(e);return t.stack=t.stack||new mF(fF(),pF())}function hF(e){return _i().withScope(e)}function vF(e,t){const n=_i();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function H0(e){return _i().withScope(()=>e(_i().getIsolationScope()))}function gF(){return{withIsolationScope:H0,withScope:hF,withSetScope:vF,withSetIsolationScope:(e,t)=>H0(t),getCurrentScope:()=>_i().getScope(),getIsolationScope:()=>_i().getIsolationScope()}}function Bi(e){const t=hu(e);return t.acs?t.acs:gF()}function lt(){const e=Co();return Bi(e).getCurrentScope()}function Dr(){const e=Co();return Bi(e).getIsolationScope()}function yF(){return qs("globalScope",()=>new Br)}function gu(...e){const t=Co(),n=Bi(t);if(e.length===2){const[a,o]=e;return a?n.withSetScope(a,o):n.withScope(o)}return n.withScope(e[0])}function Qe(){return lt().getClient()}function bF(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:a,propagationSpanId:o}=t,i={trace_id:n,span_id:o||Ks()};return a&&(i.parent_span_id=a),i}const kn="sentry.source",Bm="sentry.sample_rate",e3="sentry.previous_trace_sample_rate",ea="sentry.op",xt="sentry.origin",Ec="sentry.idle_span_finish_reason",Xs="sentry.measurement_unit",Js="sentry.measurement_value",U0="sentry.custom_span_name",Lm="sentry.profile_id",Li="sentry.exclusive_time",wF="sentry.link.type",kF=0,t3=1,Wt=2;function _F(e){if(e<400&&e>=100)return{code:t3};if(e>=400&&e<500)switch(e){case 401:return{code:Wt,message:"unauthenticated"};case 403:return{code:Wt,message:"permission_denied"};case 404:return{code:Wt,message:"not_found"};case 409:return{code:Wt,message:"already_exists"};case 413:return{code:Wt,message:"failed_precondition"};case 429:return{code:Wt,message:"resource_exhausted"};case 499:return{code:Wt,message:"cancelled"};default:return{code:Wt,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:Wt,message:"unimplemented"};case 503:return{code:Wt,message:"unavailable"};case 504:return{code:Wt,message:"deadline_exceeded"};default:return{code:Wt,message:"internal_error"}}return{code:Wt,message:"unknown_error"}}function n3(e,t){e.setAttribute("http.response.status_code",t);const n=_F(t);n.message!=="unknown_error"&&e.setStatus(n)}const r3="_sentryScope",a3="_sentryIsolationScope";function SF(e,t,n){e&&(Bn(e,a3,n),Bn(e,r3,t))}function Tc(e){return{scope:e[r3],isolationScope:e[a3]}}const Dm="sentry-",CF=/^sentry-/,xF=8192;function o3(e){const t=TF(e);if(!t)return;const n=Object.entries(t).reduce((a,[o,i])=>{if(o.match(CF)){const s=o.slice(Dm.length);a[s]=i}return a},{});if(Object.keys(n).length>0)return n}function EF(e){if(!e)return;const t=Object.entries(e).reduce((n,[a,o])=>(o&&(n[`${Dm}${a}`]=o),n),{});return PF(t)}function TF(e){if(!(!e||!Ur(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const a=W0(n);return Object.entries(a).forEach(([o,i])=>{t[o]=i}),t},{}):W0(e)}function W0(e){return e.split(",").map(t=>t.split("=").map(n=>{try{return decodeURIComponent(n.trim())}catch{return}})).reduce((t,[n,a])=>(n&&a&&(t[n]=a),t),{})}function PF(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,a],o)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(a)}`,s=o===0?i:`${t},${i}`;return s.length>xF?(Le&&ke.warn(`Not adding key: ${n} with val: ${a} to baggage header due to exceeding baggage size limits.`),t):s},"")}function bo(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const i3=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function AF(e){if(!e)return;const t=e.match(i3);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 IF(e,t){const n=AF(e),a=o3(t);if(!n?.traceId)return{traceId:Ea(),sampleRand:Math.random()};const o=MF(n,a);a&&(a.sample_rand=o.toString());const{traceId:i,parentSpanId:s,parentSampled:l}=n;return{traceId:i,parentSpanId:s,sampled:l,dsc:a||{},sampleRand:o}}function s3(e=Ea(),t=Ks(),n){let a="";return n!==void 0&&(a=n?"-1":"-0"),`${e}-${t}${a}`}function MF(e,t){const n=bo(t?.sample_rand);if(n!==void 0)return n;const a=bo(t?.sample_rate);return a&&e?.parentSampled!==void 0?e.parentSampled?Math.random()*a:a+Math.random()*(1-a):Math.random()}const l3=0,Rm=1;let q0=!1;function NF(e){const{spanId:t,traceId:n}=e.spanContext(),{data:a,op:o,parent_span_id:i,status:s,origin:l,links:c}=tt(e);return{parent_span_id:i,span_id:t,trace_id:n,data:a,op:o,status:s,origin:l,links:c}}function OF(e){const{spanId:t,traceId:n,isRemote:a}=e.spanContext(),o=a?t:tt(e).parent_span_id,i=Tc(e).scope,s=a?i?.getPropagationContext().propagationSpanId||Ks():t;return{parent_span_id:o,span_id:s,trace_id:n}}function BF(e){const{traceId:t,spanId:n}=e.spanContext(),a=Eo(e);return s3(t,n,a)}function c3(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:a,...o},attributes:i})=>({span_id:t,trace_id:n,sampled:a===Rm,attributes:i,...o}))}function lo(e){return typeof e=="number"?Y0(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Y0(e.getTime()):Ht()}function Y0(e){return e>9999999999?e/1e3:e}function tt(e){if(DF(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(LF(e)){const{attributes:a,startTime:o,name:i,endTime:s,status:l,links:c}=e,u="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0;return{span_id:t,trace_id:n,data:a,description:i,parent_span_id:u,start_timestamp:lo(o),timestamp:lo(s)||void 0,status:u3(l),op:a[ea],origin:a[xt],links:c3(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function LF(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function DF(e){return typeof e.getSpanJSON=="function"}function Eo(e){const{traceFlags:t}=e.spanContext();return t===Rm}function u3(e){if(!(!e||e.code===kF))return e.code===t3?"ok":e.message||"unknown_error"}const co="_sentryChildSpans",Of="_sentryRootSpan";function d3(e,t){const n=e[Of]||e;Bn(t,Of,n),e[co]?e[co].add(t):Bn(e,co,new Set([t]))}function RF(e,t){e[co]&&e[co].delete(t)}function Gl(e){const t=new Set;function n(a){if(!t.has(a)&&Eo(a)){t.add(a);const o=a[co]?Array.from(a[co]):[];for(const i of o)n(i)}}return n(e),Array.from(t)}function en(e){return e[Of]||e}function tn(){const e=Co(),t=Bi(e);return t.getActiveSpan?t.getActiveSpan():xc(lt())}function Bf(){q0||(ia(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),q0=!0)}let G0=!1;function $F(){if(G0)return;function e(){const t=tn(),n=t&&en(t);if(n){const a="internal_error";Le&&ke.log(`[Tracing] Root span: ${a} -> Global error occurred`),n.setStatus({code:Wt,message:a})}}e.tag="sentry_tracingErrorCallback",G0=!0,H4(e),U4(e)}function ta(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||Qe()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}const $m="production",zF=/^o(\d+)\./,VF=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function FF(e){return e==="http"||e==="https"}function Qs(e,t=!1){const{host:n,path:a,pass:o,port:i,projectId:s,protocol:l,publicKey:c}=e;return`${l}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${a&&`${a}/`}${s}`}function jF(e){const t=VF.exec(e);if(!t){ia(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,a,o="",i="",s="",l=""]=t.slice(1);let c="",u=l;const d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){const f=u.match(/^\d+/);f&&(u=f[0])}return f3({host:i,pass:o,path:c,projectId:u,port:s,protocol:n,publicKey:a})}function f3(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function HF(e){if(!Le)return!0;const{port:t,projectId:n,protocol:a}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(ke.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?FF(a)?t&&isNaN(parseInt(t,10))?(ke.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(ke.error(`Invalid Sentry Dsn: Invalid protocol ${a}`),!1):(ke.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function UF(e){return e.match(zF)?.[1]}function WF(e){const t=typeof e=="string"?jF(e):f3(e);if(!(!t||!HF(t)))return t}const p3="_frozenDsc";function Kl(e,t){Bn(e,p3,t)}function m3(e,t){const n=t.getOptions(),{publicKey:a,host:o}=t.getDsn()||{};let i;n.orgId?i=String(n.orgId):o&&(i=UF(o));const s={environment:n.environment||$m,release:n.release,public_key:a,trace_id:e,org_id:i};return t.emit("createDsc",s),s}function h3(e,t){const n=t.getPropagationContext();return n.dsc||m3(n.traceId,e)}function na(e){const t=Qe();if(!t)return{};const n=en(e),a=tt(n),o=a.data,i=n.spanContext().traceState,s=i?.get("sentry.sample_rate")??o[Bm]??o[e3];function l(v){return(typeof s=="number"||typeof s=="string")&&(v.sample_rate=`${s}`),v}const c=n[p3];if(c)return l(c);const u=i?.get("sentry.dsc"),d=u&&o3(u);if(d)return l(d);const f=m3(e.spanContext().traceId,t),p=o[kn],m=a.description;return p!=="url"&&m&&(f.transaction=m),ta()&&(f.sampled=String(Eo(n)),f.sample_rand=i?.get("sentry.sample_rand")??Tc(n).scope?.getPropagationContext().sampleRand.toString()),l(f),t.emit("createDsc",f,n),f}class Ta{constructor(t={}){this._traceId=t.traceId||Ea(),this._spanId=t.spanId||Ks()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:l3}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,a){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function Kn(e,t=100,n=1/0){try{return Lf("",e,t,n)}catch(a){return{ERROR:`**non-serializable** (${a})`}}}function v3(e,t=3,n=100*1024){const a=Kn(e,t);return KF(a)>n?v3(e,t-1,n):a}function Lf(e,t,n=1/0,a=1/0,o=XF()){const[i,s]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const l=qF(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return l.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const m=u.toJSON();return Lf("",m,c-1,a,o)}catch{}const d=Array.isArray(t)?[]:{};let f=0;const p=J4(t);for(const m in p){if(!Object.prototype.hasOwnProperty.call(p,m))continue;if(f>=a){d[m]="[MaxProperties ~]";break}const v=p[m];d[m]=Lf(m,v,c-1,a,o),f++}return s(t),d}function qF(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(Y4(t))return"[VueViewModel]";if(ZV(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Qr(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=YF(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function YF(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function GF(e){return~-encodeURI(e).split(/%..|./).length}function KF(e){return GF(JSON.stringify(e))}function XF(){const e=new WeakSet;function t(a){return e.has(a)?!0:(e.add(a),!1)}function n(a){e.delete(a)}return[t,n]}function To(e,t=[]){return[e,t]}function JF(e,t){const[n,a]=e;return[n,[...a,t]]}function K0(e,t){const n=e[1];for(const a of n){const o=a[0].type;if(t(a,o))return!0}return!1}function Df(e){const t=hu(rt);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function QF(e){const[t,n]=e;let a=JSON.stringify(t);function o(i){typeof a=="string"?a=typeof i=="string"?a+i:[Df(a),i]:a.push(typeof i=="string"?Df(i):i)}for(const i of n){const[s,l]=i;if(o(`
652
+ Error:`,o)}}let _d=null;function H4(e){const t="error";Ra(t,e),$a(t,GV)}function GV(){_d=rt.onerror,rt.onerror=function(e,t,n,a,o){return Vn("error",{column:a,error:o,line:n,msg:e,url:t}),_d?_d.apply(this,arguments):!1},rt.onerror.__SENTRY_INSTRUMENTED__=!0}let Sd=null;function U4(e){const t="unhandledrejection";Ra(t,e),$a(t,KV)}function KV(){Sd=rt.onunhandledrejection,rt.onunhandledrejection=function(e){return Vn("unhandledrejection",e),Sd?Sd.apply(this,arguments):!0},rt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const W4=Object.prototype.toString;function Im(e){switch(W4.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Zr(e,Error)}}function Ni(e,t){return W4.call(e)===`[object ${t}]`}function q4(e){return Ni(e,"ErrorEvent")}function R0(e){return Ni(e,"DOMError")}function XV(e){return Ni(e,"DOMException")}function Ur(e){return Ni(e,"String")}function Mm(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Cs(e){return e===null||Mm(e)||typeof e!="object"&&typeof e!="function"}function xs(e){return Ni(e,"Object")}function vu(e){return typeof Event<"u"&&Zr(e,Event)}function JV(e){return typeof Element<"u"&&Zr(e,Element)}function QV(e){return Ni(e,"RegExp")}function Ys(e){return!!(e?.then&&typeof e.then=="function")}function ZV(e){return xs(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Zr(e,t){try{return e instanceof t}catch{return!1}}function Y4(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function G4(e){return typeof Request<"u"&&Zr(e,Request)}const Nm=rt,eF=80;function Hn(e,t={}){if(!e)return"<unknown>";try{let n=e;const a=5,o=[];let i=0,s=0;const l=" > ",c=l.length;let u;const d=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||eF;for(;n&&i++<a&&(u=tF(n,d),!(u==="html"||i>1&&s+o.length*c+u.length>=f));)o.push(u),s+=u.length,n=n.parentNode;return o.reverse().join(l)}catch{return"<unknown>"}}function tF(e,t){const n=e,a=[];if(!n?.tagName)return"";if(Nm.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}a.push(n.tagName.toLowerCase());const o=t?.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(o?.length)o.forEach(s=>{a.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&a.push(`#${n.id}`);const s=n.className;if(s&&Ur(s)){const l=s.split(/\s+/);for(const c of l)a.push(`.${c}`)}}const i=["aria-label","type","name","title","alt"];for(const s of i){const l=n.getAttribute(s);l&&a.push(`[${s}="${l}"]`)}return a.join("")}function Oi(){try{return Nm.document.location.href}catch{return""}}function K4(e){if(!Nm.HTMLElement)return null;let t=e;const n=5;for(let a=0;a<n;a++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Cc(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function $0(e,t){if(!Array.isArray(e))return"";const n=[];for(let a=0;a<e.length;a++){const o=e[a];try{Y4(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function nF(e,t,n=!1){return Ur(e)?QV(t)?t.test(e):Ur(t)?n?e===t:e.includes(t):!1:!1}function Wr(e,t=[],n=!1){return t.some(a=>nF(e,a,n))}function wn(e,t,n){if(!(t in e))return;const a=e[t];if(typeof a!="function")return;const o=n(a);typeof o=="function"&&X4(o,a);try{e[t]=o}catch{Le&&ke.log(`Failed to replace method "${t}" in object`,e)}}function Bn(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Le&&ke.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function X4(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Bn(e,"__sentry_original__",t)}catch{}}function Om(e){return e.__sentry_original__}function J4(e){if(Im(e))return{message:e.message,name:e.name,stack:e.stack,...V0(e)};if(vu(e)){const t={type:e.type,target:z0(e.target),currentTarget:z0(e.currentTarget),...V0(e)};return typeof CustomEvent<"u"&&Zr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function z0(e){try{return JV(e)?Hn(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function V0(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 rF(e,t=40){const n=Object.keys(J4(e));n.sort();const a=n[0];if(!a)return"[object has no keys]";if(a.length>=t)return Cc(a,t);for(let o=n.length;o>0;o--){const i=n.slice(0,o).join(", ");if(!(i.length>t))return o===n.length?i:Cc(i,t)}return""}function aF(){const e=rt;return e.crypto||e.msCrypto}function Nn(e=aF()){let t=()=>Math.random()*16;try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(t()&15)>>n/4).toString(16))}function Q4(e){return e.exception?.values?.[0]}function Ka(e){const{message:t,event_id:n}=e;if(t)return t;const a=Q4(e);return a?a.type&&a.value?`${a.type}: ${a.value}`:a.type||a.value||n||"<unknown>":n||"<unknown>"}function Mf(e,t,n){const a=e.exception=e.exception||{},o=a.values=a.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function bi(e,t){const n=Q4(e);if(!n)return;const a={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...a,...o,...t},t&&"data"in t){const i={...o?.data,...t.data};n.mechanism.data=i}}function F0(e){if(oF(e))return!0;try{Bn(e,"__sentry_captured__",!0)}catch{}return!1}function oF(e){try{return e.__sentry_captured__}catch{}}const Z4=1e3;function xo(){return Date.now()/Z4}function iF(){const{performance:e}=rt;if(!e?.now||!e.timeOrigin)return xo;const t=e.timeOrigin;return()=>(t+e.now())/Z4}let j0;function Ht(){return(j0??(j0=iF()))()}let Cd;function sF(){const{performance:e}=rt;if(!e?.now)return[void 0,"none"];const t=3600*1e3,n=e.now(),a=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-a):t,i=o<t,s=e.timing?.navigationStart,c=typeof s=="number"?Math.abs(s+n-a):t,u=c<t;return i||u?o<=c?[e.timeOrigin,"timeOrigin"]:[s,"navigationStart"]:[a,"dateNow"]}function hn(){return Cd||(Cd=sF()),Cd[0]}function lF(e){const t=Ht(),n={sid:Nn(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>uF(n)};return e&&wi(n,e),n}function wi(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Ht(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Nn()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function cF(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),wi(e,n)}function uF(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function Gs(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const a={...e};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(a[o]=Gs(a[o],t[o],n-1));return a}function Ea(){return Nn()}function Ks(){return Nn().substring(16)}const Nf="_sentrySpan";function ki(e,t){t?Bn(e,Nf,t):delete e[Nf]}function xc(e){return e[Nf]}const dF=100;class Br{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Ea(),sampleRand:Math.random()}}clone(){const t=new Br;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,ki(t,xc(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&wi(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,a=n instanceof Br?n.getScopeData():xs(n)?t:void 0,{tags:o,extra:i,user:s,contexts:l,level:c,fingerprint:u=[],propagationContext:d}=a||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...l},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),u.length&&(this._fingerprint=u),d&&(this._propagationContext=d),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._session=void 0,ki(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ea(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const a=typeof n=="number"?n:dF;if(a<=0)return this;const o={timestamp:xo(),...t,message:t.message?Cc(t.message,2048):t.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>a&&(this._breadcrumbs=this._breadcrumbs.slice(-a),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:xc(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Gs(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const a=n?.event_id||Nn();if(!this._client)return Le&&ke.warn("No client configured on scope - will not capture exception!"),a;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:a},this),a}captureMessage(t,n,a){const o=a?.event_id||Nn();if(!this._client)return Le&&ke.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,...a,event_id:o},this),o}captureEvent(t,n){const a=n?.event_id||Nn();return this._client?(this._client.captureEvent(t,{...n,event_id:a},this),a):(Le&&ke.warn("No client configured on scope - will not capture event!"),a)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function fF(){return qs("defaultCurrentScope",()=>new Br)}function pF(){return qs("defaultIsolationScope",()=>new Br)}class mF{constructor(t,n){let a;t?a=t:a=new Br;let o;n?o=n:o=new Br,this._stack=[{scope:a}],this._isolationScope=o}withScope(t){const n=this._pushScope();let a;try{a=t(n)}catch(o){throw this._popScope(),o}return Ys(a)?a.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),a)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function _i(){const e=Co(),t=hu(e);return t.stack=t.stack||new mF(fF(),pF())}function hF(e){return _i().withScope(e)}function vF(e,t){const n=_i();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function H0(e){return _i().withScope(()=>e(_i().getIsolationScope()))}function gF(){return{withIsolationScope:H0,withScope:hF,withSetScope:vF,withSetIsolationScope:(e,t)=>H0(t),getCurrentScope:()=>_i().getScope(),getIsolationScope:()=>_i().getIsolationScope()}}function Bi(e){const t=hu(e);return t.acs?t.acs:gF()}function lt(){const e=Co();return Bi(e).getCurrentScope()}function Dr(){const e=Co();return Bi(e).getIsolationScope()}function yF(){return qs("globalScope",()=>new Br)}function gu(...e){const t=Co(),n=Bi(t);if(e.length===2){const[a,o]=e;return a?n.withSetScope(a,o):n.withScope(o)}return n.withScope(e[0])}function Qe(){return lt().getClient()}function bF(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:a,propagationSpanId:o}=t,i={trace_id:n,span_id:o||Ks()};return a&&(i.parent_span_id=a),i}const kn="sentry.source",Bm="sentry.sample_rate",e3="sentry.previous_trace_sample_rate",ea="sentry.op",xt="sentry.origin",Ec="sentry.idle_span_finish_reason",Xs="sentry.measurement_unit",Js="sentry.measurement_value",U0="sentry.custom_span_name",Lm="sentry.profile_id",Li="sentry.exclusive_time",wF="sentry.link.type",kF=0,t3=1,Wt=2;function _F(e){if(e<400&&e>=100)return{code:t3};if(e>=400&&e<500)switch(e){case 401:return{code:Wt,message:"unauthenticated"};case 403:return{code:Wt,message:"permission_denied"};case 404:return{code:Wt,message:"not_found"};case 409:return{code:Wt,message:"already_exists"};case 413:return{code:Wt,message:"failed_precondition"};case 429:return{code:Wt,message:"resource_exhausted"};case 499:return{code:Wt,message:"cancelled"};default:return{code:Wt,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:Wt,message:"unimplemented"};case 503:return{code:Wt,message:"unavailable"};case 504:return{code:Wt,message:"deadline_exceeded"};default:return{code:Wt,message:"internal_error"}}return{code:Wt,message:"unknown_error"}}function n3(e,t){e.setAttribute("http.response.status_code",t);const n=_F(t);n.message!=="unknown_error"&&e.setStatus(n)}const r3="_sentryScope",a3="_sentryIsolationScope";function SF(e,t,n){e&&(Bn(e,a3,n),Bn(e,r3,t))}function Tc(e){return{scope:e[r3],isolationScope:e[a3]}}const Dm="sentry-",CF=/^sentry-/,xF=8192;function o3(e){const t=TF(e);if(!t)return;const n=Object.entries(t).reduce((a,[o,i])=>{if(o.match(CF)){const s=o.slice(Dm.length);a[s]=i}return a},{});if(Object.keys(n).length>0)return n}function EF(e){if(!e)return;const t=Object.entries(e).reduce((n,[a,o])=>(o&&(n[`${Dm}${a}`]=o),n),{});return PF(t)}function TF(e){if(!(!e||!Ur(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const a=W0(n);return Object.entries(a).forEach(([o,i])=>{t[o]=i}),t},{}):W0(e)}function W0(e){return e.split(",").map(t=>t.split("=").map(n=>{try{return decodeURIComponent(n.trim())}catch{return}})).reduce((t,[n,a])=>(n&&a&&(t[n]=a),t),{})}function PF(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,a],o)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(a)}`,s=o===0?i:`${t},${i}`;return s.length>xF?(Le&&ke.warn(`Not adding key: ${n} with val: ${a} to baggage header due to exceeding baggage size limits.`),t):s},"")}function bo(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const i3=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function AF(e){if(!e)return;const t=e.match(i3);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 IF(e,t){const n=AF(e),a=o3(t);if(!n?.traceId)return{traceId:Ea(),sampleRand:Math.random()};const o=MF(n,a);a&&(a.sample_rand=o.toString());const{traceId:i,parentSpanId:s,parentSampled:l}=n;return{traceId:i,parentSpanId:s,sampled:l,dsc:a||{},sampleRand:o}}function s3(e=Ea(),t=Ks(),n){let a="";return n!==void 0&&(a=n?"-1":"-0"),`${e}-${t}${a}`}function MF(e,t){const n=bo(t?.sample_rand);if(n!==void 0)return n;const a=bo(t?.sample_rate);return a&&e?.parentSampled!==void 0?e.parentSampled?Math.random()*a:a+Math.random()*(1-a):Math.random()}const l3=0,Rm=1;let q0=!1;function NF(e){const{spanId:t,traceId:n}=e.spanContext(),{data:a,op:o,parent_span_id:i,status:s,origin:l,links:c}=tt(e);return{parent_span_id:i,span_id:t,trace_id:n,data:a,op:o,status:s,origin:l,links:c}}function OF(e){const{spanId:t,traceId:n,isRemote:a}=e.spanContext(),o=a?t:tt(e).parent_span_id,i=Tc(e).scope,s=a?i?.getPropagationContext().propagationSpanId||Ks():t;return{parent_span_id:o,span_id:s,trace_id:n}}function BF(e){const{traceId:t,spanId:n}=e.spanContext(),a=Eo(e);return s3(t,n,a)}function c3(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:a,...o},attributes:i})=>({span_id:t,trace_id:n,sampled:a===Rm,attributes:i,...o}))}function lo(e){return typeof e=="number"?Y0(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Y0(e.getTime()):Ht()}function Y0(e){return e>9999999999?e/1e3:e}function tt(e){if(DF(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(LF(e)){const{attributes:a,startTime:o,name:i,endTime:s,status:l,links:c}=e,u="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0;return{span_id:t,trace_id:n,data:a,description:i,parent_span_id:u,start_timestamp:lo(o),timestamp:lo(s)||void 0,status:u3(l),op:a[ea],origin:a[xt],links:c3(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function LF(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function DF(e){return typeof e.getSpanJSON=="function"}function Eo(e){const{traceFlags:t}=e.spanContext();return t===Rm}function u3(e){if(!(!e||e.code===kF))return e.code===t3?"ok":e.message||"unknown_error"}const co="_sentryChildSpans",Of="_sentryRootSpan";function d3(e,t){const n=e[Of]||e;Bn(t,Of,n),e[co]?e[co].add(t):Bn(e,co,new Set([t]))}function RF(e,t){e[co]&&e[co].delete(t)}function Gl(e){const t=new Set;function n(a){if(!t.has(a)&&Eo(a)){t.add(a);const o=a[co]?Array.from(a[co]):[];for(const i of o)n(i)}}return n(e),Array.from(t)}function en(e){return e[Of]||e}function tn(){const e=Co(),t=Bi(e);return t.getActiveSpan?t.getActiveSpan():xc(lt())}function Bf(){q0||(ia(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),q0=!0)}let G0=!1;function $F(){if(G0)return;function e(){const t=tn(),n=t&&en(t);if(n){const a="internal_error";Le&&ke.log(`[Tracing] Root span: ${a} -> Global error occurred`),n.setStatus({code:Wt,message:a})}}e.tag="sentry_tracingErrorCallback",G0=!0,H4(e),U4(e)}function ta(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||Qe()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}const $m="production",zF=/^o(\d+)\./,VF=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function FF(e){return e==="http"||e==="https"}function Qs(e,t=!1){const{host:n,path:a,pass:o,port:i,projectId:s,protocol:l,publicKey:c}=e;return`${l}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${a&&`${a}/`}${s}`}function jF(e){const t=VF.exec(e);if(!t){ia(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,a,o="",i="",s="",l=""]=t.slice(1);let c="",u=l;const d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){const f=u.match(/^\d+/);f&&(u=f[0])}return f3({host:i,pass:o,path:c,projectId:u,port:s,protocol:n,publicKey:a})}function f3(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function HF(e){if(!Le)return!0;const{port:t,projectId:n,protocol:a}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(ke.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?FF(a)?t&&isNaN(parseInt(t,10))?(ke.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(ke.error(`Invalid Sentry Dsn: Invalid protocol ${a}`),!1):(ke.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function UF(e){return e.match(zF)?.[1]}function WF(e){const t=typeof e=="string"?jF(e):f3(e);if(!(!t||!HF(t)))return t}const p3="_frozenDsc";function Kl(e,t){Bn(e,p3,t)}function m3(e,t){const n=t.getOptions(),{publicKey:a,host:o}=t.getDsn()||{};let i;n.orgId?i=String(n.orgId):o&&(i=UF(o));const s={environment:n.environment||$m,release:n.release,public_key:a,trace_id:e,org_id:i};return t.emit("createDsc",s),s}function h3(e,t){const n=t.getPropagationContext();return n.dsc||m3(n.traceId,e)}function na(e){const t=Qe();if(!t)return{};const n=en(e),a=tt(n),o=a.data,i=n.spanContext().traceState,s=i?.get("sentry.sample_rate")??o[Bm]??o[e3];function l(g){return(typeof s=="number"||typeof s=="string")&&(g.sample_rate=`${s}`),g}const c=n[p3];if(c)return l(c);const u=i?.get("sentry.dsc"),d=u&&o3(u);if(d)return l(d);const f=m3(e.spanContext().traceId,t),p=o[kn],m=a.description;return p!=="url"&&m&&(f.transaction=m),ta()&&(f.sampled=String(Eo(n)),f.sample_rand=i?.get("sentry.sample_rand")??Tc(n).scope?.getPropagationContext().sampleRand.toString()),l(f),t.emit("createDsc",f,n),f}class Ta{constructor(t={}){this._traceId=t.traceId||Ea(),this._spanId=t.spanId||Ks()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:l3}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,a){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function Kn(e,t=100,n=1/0){try{return Lf("",e,t,n)}catch(a){return{ERROR:`**non-serializable** (${a})`}}}function v3(e,t=3,n=100*1024){const a=Kn(e,t);return KF(a)>n?v3(e,t-1,n):a}function Lf(e,t,n=1/0,a=1/0,o=XF()){const[i,s]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const l=qF(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return l.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const m=u.toJSON();return Lf("",m,c-1,a,o)}catch{}const d=Array.isArray(t)?[]:{};let f=0;const p=J4(t);for(const m in p){if(!Object.prototype.hasOwnProperty.call(p,m))continue;if(f>=a){d[m]="[MaxProperties ~]";break}const g=p[m];d[m]=Lf(m,g,c-1,a,o),f++}return s(t),d}function qF(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(Y4(t))return"[VueViewModel]";if(ZV(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Qr(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=YF(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function YF(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function GF(e){return~-encodeURI(e).split(/%..|./).length}function KF(e){return GF(JSON.stringify(e))}function XF(){const e=new WeakSet;function t(a){return e.has(a)?!0:(e.add(a),!1)}function n(a){e.delete(a)}return[t,n]}function To(e,t=[]){return[e,t]}function JF(e,t){const[n,a]=e;return[n,[...a,t]]}function K0(e,t){const n=e[1];for(const a of n){const o=a[0].type;if(t(a,o))return!0}return!1}function Df(e){const t=hu(rt);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function QF(e){const[t,n]=e;let a=JSON.stringify(t);function o(i){typeof a=="string"?a=typeof i=="string"?a+i:[Df(a),i]:a.push(typeof i=="string"?Df(i):i)}for(const i of n){const[s,l]=i;if(o(`
653
653
  ${JSON.stringify(s)}
654
654
  `),typeof l=="string"||l instanceof Uint8Array)o(l);else{let c;try{c=JSON.stringify(l)}catch{c=JSON.stringify(Kn(l))}o(c)}}return typeof a=="string"?a:ZF(a)}function ZF(e){const t=e.reduce((o,i)=>o+i.length,0),n=new Uint8Array(t);let a=0;for(const o of e)n.set(o,a),a+=o.length;return n}function ej(e){return[{type:"span"},e]}function tj(e){const t=typeof e.data=="string"?Df(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const nj={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item"};function X0(e){return nj[e]}function zm(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function g3(e,t,n,a){const o=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&a&&{dsn:Qs(a)},...o&&{trace:o}}}function rj(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 aj(e,t,n,a){const o=zm(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!a&&t&&{dsn:Qs(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return To(i,[s])}function oj(e,t,n,a){const o=zm(n),i=e.type&&e.type!=="replay_event"?e.type:"event";rj(e,n?.sdk);const s=g3(e,o,a,t);return delete e.sdkProcessingMetadata,To(s,[[{type:i},e]])}function ij(e,t){function n(d){return!!d.trace_id&&!!d.public_key}const a=na(e[0]),o=t?.getDsn(),i=t?.getOptions().tunnel,s={sent_at:new Date().toISOString(),...n(a)&&{trace:a},...!!i&&o&&{dsn:Qs(o)}},l=t?.getOptions().beforeSendSpan,c=l?d=>{const f=tt(d),p=l(f);return p||(Bf(),f)}:tt,u=[];for(const d of e){const f=c(d);f&&u.push(ej(f))}return To(s,u)}function sj(e){if(!Le)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:a}=tt(e),{spanId:o}=e.spanContext(),i=Eo(e),s=en(e),l=s===e,c=`[Tracing] Starting ${i?"sampled":"unsampled"} ${l?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(a&&u.push(`parent ID: ${a}`),!l){const{op:d,description:f}=tt(s);u.push(`root ID: ${s.spanContext().spanId}`),d&&u.push(`root op: ${d}`),f&&u.push(`root description: ${f}`)}ke.log(`${c}
655
655
  ${u.join(`
656
- `)}`)}function lj(e){if(!Le)return;const{description:t="< unknown name >",op:n="< unknown op >"}=tt(e),{spanId:a}=e.spanContext(),i=en(e)===e,s=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${a}`;ke.log(s)}function cj(e,t,n,a=tn()){const o=a&&en(a);o&&(Le&&ke.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),o.addEvent(e,{[Js]:t,[Xs]:n}))}function J0(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const a=n.attributes||{},o=a[Xs],i=a[Js];typeof o=="string"&&typeof i=="number"&&(t[n.name]={value:i,unit:o})}),t}const Q0=1e3;class yu{constructor(t={}){this._traceId=t.traceId||Ea(),this._spanId=t.spanId||Ks(),this._startTime=t.startTimestamp||Ht(),this._links=t.links,this._attributes={},this.setAttributes({[xt]:"manual",[ea]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:a}=this;return{spanId:t,traceId:n,traceFlags:a?Rm:l3}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=lo(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(kn,"custom"),this}end(t){this._endTime||(this._endTime=lo(t),lj(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[ea],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:u3(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[xt],profile_id:this._attributes[Lm],exclusive_time:this._attributes[Li],measurements:J0(this._events),is_segment:this._isStandaloneSpan&&en(this)===this||void 0,segment_id:this._isStandaloneSpan?en(this).spanContext().spanId:void 0,links:c3(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,a){Le&&ke.log("[Tracing] Adding an event to span:",t);const o=Z0(n)?n:a||Ht(),i=Z0(n)?{}:n||{},s={name:t,time:lo(o),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Qe();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===en(this)))return;if(this._isStandaloneSpan){this._sampled?dj(ij([this],t)):(Le&&ke.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const a=this._convertSpanToTransaction();a&&(Tc(this).scope||lt()).captureEvent(a)}_convertSpanToTransaction(){if(!e1(tt(this)))return;this._name||(Le&&ke.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=Tc(this),a=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const i=Gl(this).filter(d=>d!==this&&!uj(d)).map(d=>tt(d)).filter(e1),s=this._attributes[kn];delete this._attributes[U0],i.forEach(d=>{delete d.data[U0]});const l={contexts:{trace:NF(this)},spans:i.length>Q0?i.sort((d,f)=>d.start_timestamp-f.start_timestamp).slice(0,Q0):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:na(this)},request:a,...s&&{transaction_info:{source:s}}},c=J0(this._events);return c&&Object.keys(c).length&&(Le&&ke.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),l.measurements=c),l}}function Z0(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function e1(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function uj(e){return e instanceof yu&&e.isStandaloneSpan()}function dj(e){const t=Qe();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function fj(e,t,n=()=>{}){let a;try{a=e()}catch(o){throw t(o),n(),o}return pj(a,t,n)}function pj(e,t,n){return Ys(e)?e.then(a=>(n(),a),a=>{throw t(a),n(),a}):(n(),e)}function mj(e,t,n){if(!ta(e))return[!1];let a,o;typeof e.tracesSampler=="function"?(o=e.tracesSampler({...t,inheritOrSampleWith:l=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):l}),a=!0):t.parentSampled!==void 0?o=t.parentSampled:typeof e.tracesSampleRate<"u"&&(o=e.tracesSampleRate,a=!0);const i=bo(o);if(i===void 0)return Le&&ke.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),[!1];if(!i)return Le&&ke.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,i,a];const s=n<i;return s||Le&&ke.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),[s,i,a]}const y3="__SENTRY_SUPPRESS_TRACING__";function hj(e,t){const n=Fm();if(n.startSpan)return n.startSpan(e,t);const a=w3(e),{forceTransaction:o,parentSpan:i,scope:s}=e,l=s?.clone();return gu(l,()=>gj(i)(()=>{const u=lt(),d=k3(u,i),p=e.onlyIfParent&&!d?new Ta:b3({parentSpan:d,spanArguments:a,forceTransaction:o,scope:u});return ki(u,p),fj(()=>t(p),()=>{const{status:m}=tt(p);p.isRecording()&&(!m||m==="ok")&&p.setStatus({code:Wt,message:"internal_error"})},()=>{p.end()})}))}function Pa(e){const t=Fm();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=w3(e),{forceTransaction:a,parentSpan:o}=e;return(e.scope?s=>gu(e.scope,s):o!==void 0?s=>Vm(o,s):s=>s())(()=>{const s=lt(),l=k3(s,o);return e.onlyIfParent&&!l?new Ta:b3({parentSpan:l,spanArguments:n,forceTransaction:a,scope:s})})}function Vm(e,t){const n=Fm();return n.withActiveSpan?n.withActiveSpan(e,t):gu(a=>(ki(a,e||void 0),t(a)))}function b3({parentSpan:e,spanArguments:t,forceTransaction:n,scope:a}){if(!ta()){const s=new Ta;if(n||!e){const l={sampled:"false",sample_rate:"0",transaction:t.name,...na(s)};Kl(s,l)}return s}const o=Dr();let i;if(e&&!n)i=vj(e,a,t),d3(e,i);else if(e){const s=na(e),{traceId:l,spanId:c}=e.spanContext(),u=Eo(e);i=t1({traceId:l,parentSpanId:c,...t},a,u),Kl(i,s)}else{const{traceId:s,dsc:l,parentSpanId:c,sampled:u}={...o.getPropagationContext(),...a.getPropagationContext()};i=t1({traceId:s,parentSpanId:c,...t},a,u),l&&Kl(i,l)}return sj(i),SF(i,a,o),i}function w3(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const a={...n};return a.startTimestamp=lo(e.startTime),delete a.startTime,a}return n}function Fm(){const e=Co();return Bi(e)}function t1(e,t,n){const a=Qe(),o=a?.getOptions()||{},{name:i=""}=e,s={spanAttributes:{...e.attributes},spanName:i,parentSampled:n};a?.emit("beforeSampling",s,{decision:!1});const l=s.parentSampled??n,c=s.spanAttributes,u=t.getPropagationContext(),[d,f,p]=t.getScopeData().sdkProcessingMetadata[y3]?[!1]:mj(o,{name:i,parentSampled:l,attributes:c,parentSampleRate:bo(u.dsc?.sample_rate)},u.sampleRand),m=new yu({...e,attributes:{[kn]:"custom",[Bm]:f!==void 0&&p?f:void 0,...c},sampled:d});return!d&&a&&(Le&&ke.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),a.recordDroppedEvent("sample_rate","transaction")),a&&a.emit("spanStart",m),m}function vj(e,t,n){const{spanId:a,traceId:o}=e.spanContext(),i=t.getScopeData().sdkProcessingMetadata[y3]?!1:Eo(e),s=i?new yu({...n,parentSpanId:a,traceId:o,sampled:i}):new Ta({traceId:o});d3(e,s);const l=Qe();return l&&(l.emit("spanStart",s),n.endTimestamp&&l.emit("spanEnd",s)),s}function k3(e,t){if(t)return t;if(t===null)return;const n=xc(e);if(!n)return;const a=Qe();return(a?a.getOptions():{}).parentSpanIsAlwaysRootSpan?en(n):n}function gj(e){return e!==void 0?t=>Vm(e,t):t=>t()}const Xl={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},yj="heartbeatFailed",bj="idleTimeout",wj="finalTimeout",kj="externalFinish";function _3(e,t={}){const n=new Map;let a=!1,o,i=kj,s=!t.disableAutoFinish;const l=[],{idleTimeout:c=Xl.idleTimeout,finalTimeout:u=Xl.finalTimeout,childSpanTimeout:d=Xl.childSpanTimeout,beforeSpanEnd:f}=t,p=Qe();if(!p||!ta()){const C=new Ta,P={sample_rate:"0",sampled:"false",...na(C)};return Kl(C,P),C}const m=lt(),v=tn(),y=_j(e);y.end=new Proxy(y.end,{apply(C,P,O){if(f&&f(y),P instanceof Ta)return;const[A,...L]=O,U=A||Ht(),z=lo(U),R=Gl(y).filter(K=>K!==y);if(!R.length)return x(z),Reflect.apply(C,P,[z,...L]);const I=R.map(K=>tt(K).timestamp).filter(K=>!!K),B=I.length?Math.max(...I):void 0,M=tt(y).start_timestamp,$=Math.min(M?M+u/1e3:1/0,Math.max(M||-1/0,Math.min(z,B||1/0)));return x($),Reflect.apply(C,P,[$,...L])}});function w(){o&&(clearTimeout(o),o=void 0)}function b(C){w(),o=setTimeout(()=>{!a&&n.size===0&&s&&(i=bj,y.end(C))},c)}function E(C){o=setTimeout(()=>{!a&&s&&(i=yj,y.end(C))},d)}function _(C){w(),n.set(C,!0);const P=Ht();E(P+d/1e3)}function g(C){if(n.has(C)&&n.delete(C),n.size===0){const P=Ht();b(P+c/1e3)}}function x(C){a=!0,n.clear(),l.forEach(z=>z()),ki(m,v);const P=tt(y),{start_timestamp:O}=P;if(!O)return;P.data[Ec]||y.setAttribute(Ec,i),ke.log(`[Tracing] Idle span "${P.op}" finished`);const L=Gl(y).filter(z=>z!==y);let U=0;L.forEach(z=>{z.isRecording()&&(z.setStatus({code:Wt,message:"cancelled"}),z.end(C),Le&&ke.log("[Tracing] Cancelling span since span ended early",JSON.stringify(z,void 0,2)));const R=tt(z),{timestamp:I=0,start_timestamp:B=0}=R,M=B<=C,$=(u+c)/1e3,K=I-B<=$;if(Le){const V=JSON.stringify(z,void 0,2);M?K||ke.log("[Tracing] Discarding span since it finished after idle span final timeout",V):ke.log("[Tracing] Discarding span since it happened after idle span was finished",V)}(!K||!M)&&(RF(y,z),U++)}),U>0&&y.setAttribute("sentry.idle_span_discarded_spans",U)}return l.push(p.on("spanStart",C=>{if(a||C===y||tt(C).timestamp||C instanceof yu&&C.isStandaloneSpan())return;Gl(y).includes(C)&&_(C.spanContext().spanId)})),l.push(p.on("spanEnd",C=>{a||g(C.spanContext().spanId)})),l.push(p.on("idleSpanEnableAutoFinish",C=>{C===y&&(s=!0,b(),n.size&&E())})),t.disableAutoFinish||b(),setTimeout(()=>{a||(y.setStatus({code:Wt,message:"deadline_exceeded"}),i=wj,y.end())},u),y}function _j(e){const t=Pa(e);return ki(lt(),t),Le&&ke.log("[Tracing] Started span is an idle span"),t}const xd=0,n1=1,r1=2;function ra(e){return new Aa(t=>{t(e)})}function Pc(e){return new Aa((t,n)=>{n(e)})}class Aa{constructor(t){this._state=xd,this._handlers=[],this._runExecutor(t)}then(t,n){return new Aa((a,o)=>{this._handlers.push([!1,i=>{if(!t)a(i);else try{a(t(i))}catch(s){o(s)}},i=>{if(!n)o(i);else try{a(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Aa((n,a)=>{let o,i;return this.then(s=>{i=!1,o=s,t&&t()},s=>{i=!0,o=s,t&&t()}).then(()=>{if(i){a(o);return}n(o)})})}_executeHandlers(){if(this._state===xd)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===n1&&n[1](this._value),this._state===r1&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(i,s)=>{if(this._state===xd){if(Ys(s)){s.then(a,o);return}this._state=i,this._value=s,this._executeHandlers()}},a=i=>{n(n1,i)},o=i=>{n(r1,i)};try{t(a,o)}catch(i){o(i)}}}function Rf(e,t,n,a=0){return new Aa((o,i)=>{const s=e[a];if(t===null||typeof s!="function")o(t);else{const l=s({...t},n);Le&&s.id&&l===null&&ke.log(`Event processor "${s.id}" dropped event`),Ys(l)?l.then(c=>Rf(e,c,n,a+1).then(o)).then(null,i):Rf(e,l,n,a+1).then(o).then(null,i)}})}function Sj(e,t){const{fingerprint:n,span:a,breadcrumbs:o,sdkProcessingMetadata:i}=t;Cj(e,t),a&&Tj(e,a),Pj(e,n),xj(e,o),Ej(e,i)}function a1(e,t){const{extra:n,tags:a,user:o,contexts:i,level:s,sdkProcessingMetadata:l,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m,span:v}=t;xl(e,"extra",n),xl(e,"tags",a),xl(e,"user",o),xl(e,"contexts",i),e.sdkProcessingMetadata=Gs(e.sdkProcessingMetadata,l,2),s&&(e.level=s),m&&(e.transactionName=m),v&&(e.span=v),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function xl(e,t,n){e[t]=Gs(e[t],n,1)}function Cj(e,t){const{extra:n,tags:a,user:o,contexts:i,level:s,transactionName:l}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(a).length&&(e.tags={...a,...e.tags}),Object.keys(o).length&&(e.user={...o,...e.user}),Object.keys(i).length&&(e.contexts={...i,...e.contexts}),s&&(e.level=s),l&&e.type!=="transaction"&&(e.transaction=l)}function xj(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Ej(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Tj(e,t){e.contexts={trace:OF(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:na(t),...e.sdkProcessingMetadata};const n=en(t),a=tt(n).description;a&&!e.transaction&&e.type==="transaction"&&(e.transaction=a)}function Pj(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}let El,o1,Tl;function Aj(e){const t=rt._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Tl&&n.length===o1||(o1=n.length,Tl=n.reduce((a,o)=>{El||(El={});const i=El[o];if(i)a[i[0]]=i[1];else{const s=e(o);for(let l=s.length-1;l>=0;l--){const u=s[l]?.filename,d=t[o];if(u&&d){a[u]=d,El[o]=[u,d];break}}}return a},{})),Tl}function S3(e,t,n,a,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:l=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Nn(),timestamp:t.timestamp||xo()},u=n.integrations||e.integrations.map(w=>w.name);Ij(c,e),Oj(c,u),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&Mj(c,e.stackParser);const d=Lj(a,n.captureContext);n.mechanism&&bi(c,n.mechanism);const f=o?o.getEventProcessors():[],p=yF().getScopeData();if(i){const w=i.getScopeData();a1(p,w)}if(d){const w=d.getScopeData();a1(p,w)}const m=[...n.attachments||[],...p.attachments];m.length&&(n.attachments=m),Sj(c,p);const v=[...f,...p.eventProcessors];return Rf(v,c,n).then(w=>(w&&Nj(w),typeof s=="number"&&s>0?Bj(w,s,l):w))}function Ij(e,t){const{environment:n,release:a,dist:o,maxValueLength:i=250}=t;e.environment=e.environment||n||$m,!e.release&&a&&(e.release=a),!e.dist&&o&&(e.dist=o);const s=e.request;s?.url&&(s.url=Cc(s.url,i))}function Mj(e,t){const n=Aj(t);e.exception?.values?.forEach(a=>{a.stacktrace?.frames?.forEach(o=>{o.filename&&(o.debug_id=n[o.filename])})})}function Nj(e){const t={};if(e.exception?.values?.forEach(a=>{a.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)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([a,o])=>{n.push({type:"sourcemap",code_file:a,debug_id:o})})}function Oj(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Bj(e,t,n){if(!e)return null;const a={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:Kn(o.data,t,n)}}))},...e.user&&{user:Kn(e.user,t,n)},...e.contexts&&{contexts:Kn(e.contexts,t,n)},...e.extra&&{extra:Kn(e.extra,t,n)}};return e.contexts?.trace&&a.contexts&&(a.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(a.contexts.trace.data=Kn(e.contexts.trace.data,t,n))),e.spans&&(a.spans=e.spans.map(o=>({...o,...o.data&&{data:Kn(o.data,t,n)}}))),e.contexts?.flags&&a.contexts&&(a.contexts.flags=Kn(e.contexts.flags,3,n)),a}function Lj(e,t){if(!t)return e;const n=e?e.clone():new Br;return n.update(t),n}function Dj(e){if(e)return Rj(e)?{captureContext:e}:zj(e)?{captureContext:e}:e}function Rj(e){return e instanceof Br||typeof e=="function"}const $j=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function zj(e){return Object.keys(e).some(t=>$j.includes(t))}function bu(e,t){return lt().captureException(e,Dj(t))}function C3(e,t){return lt().captureEvent(e,t)}function Vj(e,t){Dr().setContext(e,t)}function Fj(){const e=Qe();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function jj(e){Dr().addEventProcessor(e)}function i1(e){const t=Dr(),n=lt(),{userAgent:a}=rt.navigator||{},o=lF({user:n.getUser()||t.getUser(),...a&&{userAgent:a},...e}),i=t.getSession();return i?.status==="ok"&&wi(i,{status:"exited"}),x3(),t.setSession(o),o}function x3(){const e=Dr(),n=lt().getSession()||e.getSession();n&&cF(n),E3(),e.setSession()}function E3(){const e=Dr(),t=Qe(),n=e.getSession();n&&t&&t.captureSession(n)}function s1(e=!1){if(e){x3();return}E3()}const Hj="7";function Uj(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Wj(e){return`${Uj(e)}${e.projectId}/envelope/`}function qj(e,t){const n={sentry_version:Hj};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Yj(e,t,n){return t||`${Wj(e)}?${qj(e,n)}`}const l1=[];function Gj(e){const t={};return e.forEach(n=>{const{name:a}=n,o=t[a];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[a]=n)}),Object.values(t)}function Kj(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let a;if(Array.isArray(n))a=[...t,...n];else if(typeof n=="function"){const o=n(t);a=Array.isArray(o)?o:[o]}else a=t;return Gj(a)}function Xj(e,t){const n={};return t.forEach(a=>{a&&T3(e,a,n)}),n}function c1(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function T3(e,t,n){if(n[t.name]){Le&&ke.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,l1.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),l1.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const a=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>a(o,i,e))}if(typeof t.processEvent=="function"){const a=t.processEvent.bind(t),o=Object.assign((i,s)=>a(i,s,e),{id:t.name});e.addEventProcessor(o)}Le&&ke.log(`Integration installed: ${t.name}`)}function Jj(e,t,n){const a=[{type:"client_report"},{timestamp:xo(),discarded_events:e}];return To(t?{dsn:t}:{},[a])}function P3(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function Qj(e){const{trace_id:t,parent_span_id:n,span_id:a,status:o,origin:i,data:s,op:l}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:l,parent_span_id:n,span_id:a??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:s?.[Lm],exclusive_time:s?.[Li],measurements:e.measurements,is_segment:!0}}function Zj(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[Lm]:e.profile_id},...e.exclusive_time&&{[Li]:e.exclusive_time}}}},measurements:e.measurements}}const u1="Not capturing exception because it's already been captured.",d1="Discarded session because of missing or non-string release",A3=Symbol.for("SentryInternalError"),I3=Symbol.for("SentryDoNotSendEventError");function Jl(e){return{message:e,[A3]:!0}}function Ed(e){return{message:e,[I3]:!0}}function f1(e){return!!e&&typeof e=="object"&&A3 in e}function p1(e){return!!e&&typeof e=="object"&&I3 in e}class eH{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=WF(t.dsn):Le&&ke.warn("No DSN provided, client will not send events."),this._dsn){const n=Yj(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,a){const o=Nn();if(F0(t))return Le&&ke.log(u1),o;const i={event_id:o,...n};return this._process(this.eventFromException(t,i).then(s=>this._captureEvent(s,i,a))),i.event_id}captureMessage(t,n,a,o){const i={event_id:Nn(),...a},s=Mm(t)?t:String(t),l=Cs(t)?this.eventFromMessage(s,n,i):this.eventFromException(t,i);return this._process(l.then(c=>this._captureEvent(c,i,o))),i.event_id}captureEvent(t,n,a){const o=Nn();if(n?.originalException&&F0(n.originalException))return Le&&ke.log(u1),o;const i={event_id:o,...n},s=t.sdkProcessingMetadata||{},l=s.capturedSpanScope,c=s.capturedSpanIsolationScope;return this._process(this._captureEvent(t,i,l||a,c)),i.event_id}captureSession(t){this.sendSession(t),wi(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(a=>n.flush(t).then(o=>a&&o))):ra(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];T3(this,t,this._integrations),n||c1(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let a=oj(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])a=JF(a,tj(i));const o=this.sendEnvelope(a);o&&o.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){const{release:n,environment:a=$m}=this._options;if("aggregates"in t){const i=t.attrs||{};if(!i.release&&!n){Le&&ke.warn(d1);return}i.release=i.release||n,i.environment=i.environment||a,t.attrs=i}else{if(!t.release&&!n){Le&&ke.warn(d1);return}t.release=t.release||n,t.environment=t.environment||a}this.emit("beforeSendSession",t);const o=aj(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(t,n,a=1){if(this._options.sendClientReports){const o=`${t}:${n}`;Le&&ke.log(`Recording outcome: "${o}"${a>1?` (${a} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+a}}on(t,n){const a=this._hooks[t]=this._hooks[t]||[];return a.push(n),()=>{const o=a.indexOf(n);o>-1&&a.splice(o,1)}}emit(t,...n){const a=this._hooks[t];a&&a.forEach(o=>o(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(Le&&ke.error("Error while sending envelope:",n),n)):(Le&&ke.error("Transport disabled"),ra({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Xj(this,t),c1(this,t)}_updateSessionFromEvent(t,n){let a=n.level==="fatal",o=!1;const i=n.exception?.values;if(i){o=!0;for(const c of i)if(c.mechanism?.handled===!1){a=!0;break}}const s=t.status==="ok";(s&&t.errors===0||s&&a)&&(wi(t,{...a&&{status:"crashed"},errors:t.errors||Number(o||a)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Aa(n=>{let a=0;const o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(a+=o,t&&a>=t&&(clearInterval(i),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,a,o){const i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s?.length&&(n.integrations=s),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),S3(i,t,n,a,this,o).then(l=>{if(l===null)return l;this.emit("postprocessEvent",l,n),l.contexts={trace:bF(a),...l.contexts};const c=h3(this,a);return l.sdkProcessingMetadata={dynamicSamplingContext:c,...l.sdkProcessingMetadata},l})}_captureEvent(t,n={},a=lt(),o=Dr()){return Le&&$f(t)&&ke.log(`Captured error event \`${P3(t)[0]||"<unknown>"}\``),this._processEvent(t,n,a,o).then(i=>i.event_id,i=>{Le&&(p1(i)?ke.log(i.message):f1(i)?ke.warn(i.message):ke.warn(i))})}_processEvent(t,n,a,o){const i=this.getOptions(),{sampleRate:s}=i,l=M3(t),c=$f(t),u=t.type||"error",d=`before send for type \`${u}\``,f=typeof s>"u"?void 0:bo(s);if(c&&typeof f=="number"&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error"),Pc(Ed(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));const p=u==="replay_event"?"replay":u;return this._prepareEvent(t,n,a,o).then(m=>{if(m===null)throw this.recordDroppedEvent("event_processor",p),Ed("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return m;const y=nH(this,i,m,n);return tH(y,d)}).then(m=>{if(m===null){if(this.recordDroppedEvent("before_send",p),l){const b=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",b)}throw Ed(`${d} returned \`null\`, will not send event.`)}const v=a.getSession()||o.getSession();if(c&&v&&this._updateSessionFromEvent(v,m),l){const w=m.sdkProcessingMetadata?.spanCountBeforeProcessing||0,b=m.spans?m.spans.length:0,E=w-b;E>0&&this.recordDroppedEvent("before_send","span",E)}const y=m.transaction_info;if(l&&y&&m.transaction!==t.transaction){const w="custom";m.transaction_info={...y,source:w}}return this.sendEvent(m,n),m}).then(null,m=>{throw p1(m)||f1(m)?m:(this.captureException(m,{data:{__sentry__:!0},originalException:m}),Jl(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
656
+ `)}`)}function lj(e){if(!Le)return;const{description:t="< unknown name >",op:n="< unknown op >"}=tt(e),{spanId:a}=e.spanContext(),i=en(e)===e,s=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${a}`;ke.log(s)}function cj(e,t,n,a=tn()){const o=a&&en(a);o&&(Le&&ke.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),o.addEvent(e,{[Js]:t,[Xs]:n}))}function J0(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const a=n.attributes||{},o=a[Xs],i=a[Js];typeof o=="string"&&typeof i=="number"&&(t[n.name]={value:i,unit:o})}),t}const Q0=1e3;class yu{constructor(t={}){this._traceId=t.traceId||Ea(),this._spanId=t.spanId||Ks(),this._startTime=t.startTimestamp||Ht(),this._links=t.links,this._attributes={},this.setAttributes({[xt]:"manual",[ea]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:a}=this;return{spanId:t,traceId:n,traceFlags:a?Rm:l3}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=lo(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(kn,"custom"),this}end(t){this._endTime||(this._endTime=lo(t),lj(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[ea],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:u3(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[xt],profile_id:this._attributes[Lm],exclusive_time:this._attributes[Li],measurements:J0(this._events),is_segment:this._isStandaloneSpan&&en(this)===this||void 0,segment_id:this._isStandaloneSpan?en(this).spanContext().spanId:void 0,links:c3(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,a){Le&&ke.log("[Tracing] Adding an event to span:",t);const o=Z0(n)?n:a||Ht(),i=Z0(n)?{}:n||{},s={name:t,time:lo(o),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Qe();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===en(this)))return;if(this._isStandaloneSpan){this._sampled?dj(ij([this],t)):(Le&&ke.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const a=this._convertSpanToTransaction();a&&(Tc(this).scope||lt()).captureEvent(a)}_convertSpanToTransaction(){if(!e1(tt(this)))return;this._name||(Le&&ke.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=Tc(this),a=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const i=Gl(this).filter(d=>d!==this&&!uj(d)).map(d=>tt(d)).filter(e1),s=this._attributes[kn];delete this._attributes[U0],i.forEach(d=>{delete d.data[U0]});const l={contexts:{trace:NF(this)},spans:i.length>Q0?i.sort((d,f)=>d.start_timestamp-f.start_timestamp).slice(0,Q0):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:na(this)},request:a,...s&&{transaction_info:{source:s}}},c=J0(this._events);return c&&Object.keys(c).length&&(Le&&ke.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),l.measurements=c),l}}function Z0(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function e1(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function uj(e){return e instanceof yu&&e.isStandaloneSpan()}function dj(e){const t=Qe();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function fj(e,t,n=()=>{}){let a;try{a=e()}catch(o){throw t(o),n(),o}return pj(a,t,n)}function pj(e,t,n){return Ys(e)?e.then(a=>(n(),a),a=>{throw t(a),n(),a}):(n(),e)}function mj(e,t,n){if(!ta(e))return[!1];let a,o;typeof e.tracesSampler=="function"?(o=e.tracesSampler({...t,inheritOrSampleWith:l=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):l}),a=!0):t.parentSampled!==void 0?o=t.parentSampled:typeof e.tracesSampleRate<"u"&&(o=e.tracesSampleRate,a=!0);const i=bo(o);if(i===void 0)return Le&&ke.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),[!1];if(!i)return Le&&ke.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,i,a];const s=n<i;return s||Le&&ke.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),[s,i,a]}const y3="__SENTRY_SUPPRESS_TRACING__";function hj(e,t){const n=Fm();if(n.startSpan)return n.startSpan(e,t);const a=w3(e),{forceTransaction:o,parentSpan:i,scope:s}=e,l=s?.clone();return gu(l,()=>gj(i)(()=>{const u=lt(),d=k3(u,i),p=e.onlyIfParent&&!d?new Ta:b3({parentSpan:d,spanArguments:a,forceTransaction:o,scope:u});return ki(u,p),fj(()=>t(p),()=>{const{status:m}=tt(p);p.isRecording()&&(!m||m==="ok")&&p.setStatus({code:Wt,message:"internal_error"})},()=>{p.end()})}))}function Pa(e){const t=Fm();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=w3(e),{forceTransaction:a,parentSpan:o}=e;return(e.scope?s=>gu(e.scope,s):o!==void 0?s=>Vm(o,s):s=>s())(()=>{const s=lt(),l=k3(s,o);return e.onlyIfParent&&!l?new Ta:b3({parentSpan:l,spanArguments:n,forceTransaction:a,scope:s})})}function Vm(e,t){const n=Fm();return n.withActiveSpan?n.withActiveSpan(e,t):gu(a=>(ki(a,e||void 0),t(a)))}function b3({parentSpan:e,spanArguments:t,forceTransaction:n,scope:a}){if(!ta()){const s=new Ta;if(n||!e){const l={sampled:"false",sample_rate:"0",transaction:t.name,...na(s)};Kl(s,l)}return s}const o=Dr();let i;if(e&&!n)i=vj(e,a,t),d3(e,i);else if(e){const s=na(e),{traceId:l,spanId:c}=e.spanContext(),u=Eo(e);i=t1({traceId:l,parentSpanId:c,...t},a,u),Kl(i,s)}else{const{traceId:s,dsc:l,parentSpanId:c,sampled:u}={...o.getPropagationContext(),...a.getPropagationContext()};i=t1({traceId:s,parentSpanId:c,...t},a,u),l&&Kl(i,l)}return sj(i),SF(i,a,o),i}function w3(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const a={...n};return a.startTimestamp=lo(e.startTime),delete a.startTime,a}return n}function Fm(){const e=Co();return Bi(e)}function t1(e,t,n){const a=Qe(),o=a?.getOptions()||{},{name:i=""}=e,s={spanAttributes:{...e.attributes},spanName:i,parentSampled:n};a?.emit("beforeSampling",s,{decision:!1});const l=s.parentSampled??n,c=s.spanAttributes,u=t.getPropagationContext(),[d,f,p]=t.getScopeData().sdkProcessingMetadata[y3]?[!1]:mj(o,{name:i,parentSampled:l,attributes:c,parentSampleRate:bo(u.dsc?.sample_rate)},u.sampleRand),m=new yu({...e,attributes:{[kn]:"custom",[Bm]:f!==void 0&&p?f:void 0,...c},sampled:d});return!d&&a&&(Le&&ke.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),a.recordDroppedEvent("sample_rate","transaction")),a&&a.emit("spanStart",m),m}function vj(e,t,n){const{spanId:a,traceId:o}=e.spanContext(),i=t.getScopeData().sdkProcessingMetadata[y3]?!1:Eo(e),s=i?new yu({...n,parentSpanId:a,traceId:o,sampled:i}):new Ta({traceId:o});d3(e,s);const l=Qe();return l&&(l.emit("spanStart",s),n.endTimestamp&&l.emit("spanEnd",s)),s}function k3(e,t){if(t)return t;if(t===null)return;const n=xc(e);if(!n)return;const a=Qe();return(a?a.getOptions():{}).parentSpanIsAlwaysRootSpan?en(n):n}function gj(e){return e!==void 0?t=>Vm(e,t):t=>t()}const Xl={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},yj="heartbeatFailed",bj="idleTimeout",wj="finalTimeout",kj="externalFinish";function _3(e,t={}){const n=new Map;let a=!1,o,i=kj,s=!t.disableAutoFinish;const l=[],{idleTimeout:c=Xl.idleTimeout,finalTimeout:u=Xl.finalTimeout,childSpanTimeout:d=Xl.childSpanTimeout,beforeSpanEnd:f}=t,p=Qe();if(!p||!ta()){const C=new Ta,P={sample_rate:"0",sampled:"false",...na(C)};return Kl(C,P),C}const m=lt(),g=tn(),y=_j(e);y.end=new Proxy(y.end,{apply(C,P,O){if(f&&f(y),P instanceof Ta)return;const[A,...L]=O,U=A||Ht(),z=lo(U),R=Gl(y).filter(K=>K!==y);if(!R.length)return x(z),Reflect.apply(C,P,[z,...L]);const I=R.map(K=>tt(K).timestamp).filter(K=>!!K),B=I.length?Math.max(...I):void 0,M=tt(y).start_timestamp,$=Math.min(M?M+u/1e3:1/0,Math.max(M||-1/0,Math.min(z,B||1/0)));return x($),Reflect.apply(C,P,[$,...L])}});function w(){o&&(clearTimeout(o),o=void 0)}function b(C){w(),o=setTimeout(()=>{!a&&n.size===0&&s&&(i=bj,y.end(C))},c)}function E(C){o=setTimeout(()=>{!a&&s&&(i=yj,y.end(C))},d)}function _(C){w(),n.set(C,!0);const P=Ht();E(P+d/1e3)}function v(C){if(n.has(C)&&n.delete(C),n.size===0){const P=Ht();b(P+c/1e3)}}function x(C){a=!0,n.clear(),l.forEach(z=>z()),ki(m,g);const P=tt(y),{start_timestamp:O}=P;if(!O)return;P.data[Ec]||y.setAttribute(Ec,i),ke.log(`[Tracing] Idle span "${P.op}" finished`);const L=Gl(y).filter(z=>z!==y);let U=0;L.forEach(z=>{z.isRecording()&&(z.setStatus({code:Wt,message:"cancelled"}),z.end(C),Le&&ke.log("[Tracing] Cancelling span since span ended early",JSON.stringify(z,void 0,2)));const R=tt(z),{timestamp:I=0,start_timestamp:B=0}=R,M=B<=C,$=(u+c)/1e3,K=I-B<=$;if(Le){const V=JSON.stringify(z,void 0,2);M?K||ke.log("[Tracing] Discarding span since it finished after idle span final timeout",V):ke.log("[Tracing] Discarding span since it happened after idle span was finished",V)}(!K||!M)&&(RF(y,z),U++)}),U>0&&y.setAttribute("sentry.idle_span_discarded_spans",U)}return l.push(p.on("spanStart",C=>{if(a||C===y||tt(C).timestamp||C instanceof yu&&C.isStandaloneSpan())return;Gl(y).includes(C)&&_(C.spanContext().spanId)})),l.push(p.on("spanEnd",C=>{a||v(C.spanContext().spanId)})),l.push(p.on("idleSpanEnableAutoFinish",C=>{C===y&&(s=!0,b(),n.size&&E())})),t.disableAutoFinish||b(),setTimeout(()=>{a||(y.setStatus({code:Wt,message:"deadline_exceeded"}),i=wj,y.end())},u),y}function _j(e){const t=Pa(e);return ki(lt(),t),Le&&ke.log("[Tracing] Started span is an idle span"),t}const xd=0,n1=1,r1=2;function ra(e){return new Aa(t=>{t(e)})}function Pc(e){return new Aa((t,n)=>{n(e)})}class Aa{constructor(t){this._state=xd,this._handlers=[],this._runExecutor(t)}then(t,n){return new Aa((a,o)=>{this._handlers.push([!1,i=>{if(!t)a(i);else try{a(t(i))}catch(s){o(s)}},i=>{if(!n)o(i);else try{a(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Aa((n,a)=>{let o,i;return this.then(s=>{i=!1,o=s,t&&t()},s=>{i=!0,o=s,t&&t()}).then(()=>{if(i){a(o);return}n(o)})})}_executeHandlers(){if(this._state===xd)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===n1&&n[1](this._value),this._state===r1&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(i,s)=>{if(this._state===xd){if(Ys(s)){s.then(a,o);return}this._state=i,this._value=s,this._executeHandlers()}},a=i=>{n(n1,i)},o=i=>{n(r1,i)};try{t(a,o)}catch(i){o(i)}}}function Rf(e,t,n,a=0){return new Aa((o,i)=>{const s=e[a];if(t===null||typeof s!="function")o(t);else{const l=s({...t},n);Le&&s.id&&l===null&&ke.log(`Event processor "${s.id}" dropped event`),Ys(l)?l.then(c=>Rf(e,c,n,a+1).then(o)).then(null,i):Rf(e,l,n,a+1).then(o).then(null,i)}})}function Sj(e,t){const{fingerprint:n,span:a,breadcrumbs:o,sdkProcessingMetadata:i}=t;Cj(e,t),a&&Tj(e,a),Pj(e,n),xj(e,o),Ej(e,i)}function a1(e,t){const{extra:n,tags:a,user:o,contexts:i,level:s,sdkProcessingMetadata:l,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m,span:g}=t;xl(e,"extra",n),xl(e,"tags",a),xl(e,"user",o),xl(e,"contexts",i),e.sdkProcessingMetadata=Gs(e.sdkProcessingMetadata,l,2),s&&(e.level=s),m&&(e.transactionName=m),g&&(e.span=g),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function xl(e,t,n){e[t]=Gs(e[t],n,1)}function Cj(e,t){const{extra:n,tags:a,user:o,contexts:i,level:s,transactionName:l}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(a).length&&(e.tags={...a,...e.tags}),Object.keys(o).length&&(e.user={...o,...e.user}),Object.keys(i).length&&(e.contexts={...i,...e.contexts}),s&&(e.level=s),l&&e.type!=="transaction"&&(e.transaction=l)}function xj(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Ej(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Tj(e,t){e.contexts={trace:OF(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:na(t),...e.sdkProcessingMetadata};const n=en(t),a=tt(n).description;a&&!e.transaction&&e.type==="transaction"&&(e.transaction=a)}function Pj(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}let El,o1,Tl;function Aj(e){const t=rt._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Tl&&n.length===o1||(o1=n.length,Tl=n.reduce((a,o)=>{El||(El={});const i=El[o];if(i)a[i[0]]=i[1];else{const s=e(o);for(let l=s.length-1;l>=0;l--){const u=s[l]?.filename,d=t[o];if(u&&d){a[u]=d,El[o]=[u,d];break}}}return a},{})),Tl}function S3(e,t,n,a,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:l=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Nn(),timestamp:t.timestamp||xo()},u=n.integrations||e.integrations.map(w=>w.name);Ij(c,e),Oj(c,u),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&Mj(c,e.stackParser);const d=Lj(a,n.captureContext);n.mechanism&&bi(c,n.mechanism);const f=o?o.getEventProcessors():[],p=yF().getScopeData();if(i){const w=i.getScopeData();a1(p,w)}if(d){const w=d.getScopeData();a1(p,w)}const m=[...n.attachments||[],...p.attachments];m.length&&(n.attachments=m),Sj(c,p);const g=[...f,...p.eventProcessors];return Rf(g,c,n).then(w=>(w&&Nj(w),typeof s=="number"&&s>0?Bj(w,s,l):w))}function Ij(e,t){const{environment:n,release:a,dist:o,maxValueLength:i=250}=t;e.environment=e.environment||n||$m,!e.release&&a&&(e.release=a),!e.dist&&o&&(e.dist=o);const s=e.request;s?.url&&(s.url=Cc(s.url,i))}function Mj(e,t){const n=Aj(t);e.exception?.values?.forEach(a=>{a.stacktrace?.frames?.forEach(o=>{o.filename&&(o.debug_id=n[o.filename])})})}function Nj(e){const t={};if(e.exception?.values?.forEach(a=>{a.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)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([a,o])=>{n.push({type:"sourcemap",code_file:a,debug_id:o})})}function Oj(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Bj(e,t,n){if(!e)return null;const a={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:Kn(o.data,t,n)}}))},...e.user&&{user:Kn(e.user,t,n)},...e.contexts&&{contexts:Kn(e.contexts,t,n)},...e.extra&&{extra:Kn(e.extra,t,n)}};return e.contexts?.trace&&a.contexts&&(a.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(a.contexts.trace.data=Kn(e.contexts.trace.data,t,n))),e.spans&&(a.spans=e.spans.map(o=>({...o,...o.data&&{data:Kn(o.data,t,n)}}))),e.contexts?.flags&&a.contexts&&(a.contexts.flags=Kn(e.contexts.flags,3,n)),a}function Lj(e,t){if(!t)return e;const n=e?e.clone():new Br;return n.update(t),n}function Dj(e){if(e)return Rj(e)?{captureContext:e}:zj(e)?{captureContext:e}:e}function Rj(e){return e instanceof Br||typeof e=="function"}const $j=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function zj(e){return Object.keys(e).some(t=>$j.includes(t))}function bu(e,t){return lt().captureException(e,Dj(t))}function C3(e,t){return lt().captureEvent(e,t)}function Vj(e,t){Dr().setContext(e,t)}function Fj(){const e=Qe();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function jj(e){Dr().addEventProcessor(e)}function i1(e){const t=Dr(),n=lt(),{userAgent:a}=rt.navigator||{},o=lF({user:n.getUser()||t.getUser(),...a&&{userAgent:a},...e}),i=t.getSession();return i?.status==="ok"&&wi(i,{status:"exited"}),x3(),t.setSession(o),o}function x3(){const e=Dr(),n=lt().getSession()||e.getSession();n&&cF(n),E3(),e.setSession()}function E3(){const e=Dr(),t=Qe(),n=e.getSession();n&&t&&t.captureSession(n)}function s1(e=!1){if(e){x3();return}E3()}const Hj="7";function Uj(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Wj(e){return`${Uj(e)}${e.projectId}/envelope/`}function qj(e,t){const n={sentry_version:Hj};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Yj(e,t,n){return t||`${Wj(e)}?${qj(e,n)}`}const l1=[];function Gj(e){const t={};return e.forEach(n=>{const{name:a}=n,o=t[a];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[a]=n)}),Object.values(t)}function Kj(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let a;if(Array.isArray(n))a=[...t,...n];else if(typeof n=="function"){const o=n(t);a=Array.isArray(o)?o:[o]}else a=t;return Gj(a)}function Xj(e,t){const n={};return t.forEach(a=>{a&&T3(e,a,n)}),n}function c1(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function T3(e,t,n){if(n[t.name]){Le&&ke.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,l1.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),l1.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const a=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>a(o,i,e))}if(typeof t.processEvent=="function"){const a=t.processEvent.bind(t),o=Object.assign((i,s)=>a(i,s,e),{id:t.name});e.addEventProcessor(o)}Le&&ke.log(`Integration installed: ${t.name}`)}function Jj(e,t,n){const a=[{type:"client_report"},{timestamp:xo(),discarded_events:e}];return To(t?{dsn:t}:{},[a])}function P3(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function Qj(e){const{trace_id:t,parent_span_id:n,span_id:a,status:o,origin:i,data:s,op:l}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:l,parent_span_id:n,span_id:a??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:s?.[Lm],exclusive_time:s?.[Li],measurements:e.measurements,is_segment:!0}}function Zj(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[Lm]:e.profile_id},...e.exclusive_time&&{[Li]:e.exclusive_time}}}},measurements:e.measurements}}const u1="Not capturing exception because it's already been captured.",d1="Discarded session because of missing or non-string release",A3=Symbol.for("SentryInternalError"),I3=Symbol.for("SentryDoNotSendEventError");function Jl(e){return{message:e,[A3]:!0}}function Ed(e){return{message:e,[I3]:!0}}function f1(e){return!!e&&typeof e=="object"&&A3 in e}function p1(e){return!!e&&typeof e=="object"&&I3 in e}class eH{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=WF(t.dsn):Le&&ke.warn("No DSN provided, client will not send events."),this._dsn){const n=Yj(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,a){const o=Nn();if(F0(t))return Le&&ke.log(u1),o;const i={event_id:o,...n};return this._process(this.eventFromException(t,i).then(s=>this._captureEvent(s,i,a))),i.event_id}captureMessage(t,n,a,o){const i={event_id:Nn(),...a},s=Mm(t)?t:String(t),l=Cs(t)?this.eventFromMessage(s,n,i):this.eventFromException(t,i);return this._process(l.then(c=>this._captureEvent(c,i,o))),i.event_id}captureEvent(t,n,a){const o=Nn();if(n?.originalException&&F0(n.originalException))return Le&&ke.log(u1),o;const i={event_id:o,...n},s=t.sdkProcessingMetadata||{},l=s.capturedSpanScope,c=s.capturedSpanIsolationScope;return this._process(this._captureEvent(t,i,l||a,c)),i.event_id}captureSession(t){this.sendSession(t),wi(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(a=>n.flush(t).then(o=>a&&o))):ra(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];T3(this,t,this._integrations),n||c1(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let a=oj(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])a=JF(a,tj(i));const o=this.sendEnvelope(a);o&&o.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){const{release:n,environment:a=$m}=this._options;if("aggregates"in t){const i=t.attrs||{};if(!i.release&&!n){Le&&ke.warn(d1);return}i.release=i.release||n,i.environment=i.environment||a,t.attrs=i}else{if(!t.release&&!n){Le&&ke.warn(d1);return}t.release=t.release||n,t.environment=t.environment||a}this.emit("beforeSendSession",t);const o=aj(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(t,n,a=1){if(this._options.sendClientReports){const o=`${t}:${n}`;Le&&ke.log(`Recording outcome: "${o}"${a>1?` (${a} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+a}}on(t,n){const a=this._hooks[t]=this._hooks[t]||[];return a.push(n),()=>{const o=a.indexOf(n);o>-1&&a.splice(o,1)}}emit(t,...n){const a=this._hooks[t];a&&a.forEach(o=>o(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(Le&&ke.error("Error while sending envelope:",n),n)):(Le&&ke.error("Transport disabled"),ra({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Xj(this,t),c1(this,t)}_updateSessionFromEvent(t,n){let a=n.level==="fatal",o=!1;const i=n.exception?.values;if(i){o=!0;for(const c of i)if(c.mechanism?.handled===!1){a=!0;break}}const s=t.status==="ok";(s&&t.errors===0||s&&a)&&(wi(t,{...a&&{status:"crashed"},errors:t.errors||Number(o||a)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Aa(n=>{let a=0;const o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(a+=o,t&&a>=t&&(clearInterval(i),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,a,o){const i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s?.length&&(n.integrations=s),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),S3(i,t,n,a,this,o).then(l=>{if(l===null)return l;this.emit("postprocessEvent",l,n),l.contexts={trace:bF(a),...l.contexts};const c=h3(this,a);return l.sdkProcessingMetadata={dynamicSamplingContext:c,...l.sdkProcessingMetadata},l})}_captureEvent(t,n={},a=lt(),o=Dr()){return Le&&$f(t)&&ke.log(`Captured error event \`${P3(t)[0]||"<unknown>"}\``),this._processEvent(t,n,a,o).then(i=>i.event_id,i=>{Le&&(p1(i)?ke.log(i.message):f1(i)?ke.warn(i.message):ke.warn(i))})}_processEvent(t,n,a,o){const i=this.getOptions(),{sampleRate:s}=i,l=M3(t),c=$f(t),u=t.type||"error",d=`before send for type \`${u}\``,f=typeof s>"u"?void 0:bo(s);if(c&&typeof f=="number"&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error"),Pc(Ed(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));const p=u==="replay_event"?"replay":u;return this._prepareEvent(t,n,a,o).then(m=>{if(m===null)throw this.recordDroppedEvent("event_processor",p),Ed("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return m;const y=nH(this,i,m,n);return tH(y,d)}).then(m=>{if(m===null){if(this.recordDroppedEvent("before_send",p),l){const b=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",b)}throw Ed(`${d} returned \`null\`, will not send event.`)}const g=a.getSession()||o.getSession();if(c&&g&&this._updateSessionFromEvent(g,m),l){const w=m.sdkProcessingMetadata?.spanCountBeforeProcessing||0,b=m.spans?m.spans.length:0,E=w-b;E>0&&this.recordDroppedEvent("before_send","span",E)}const y=m.transaction_info;if(l&&y&&m.transaction!==t.transaction){const w="custom";m.transaction_info={...y,source:w}}return this.sendEvent(m,n),m}).then(null,m=>{throw p1(m)||f1(m)?m:(this.captureException(m,{data:{__sentry__:!0},originalException:m}),Jl(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
657
657
  Reason: ${m}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,a])=>{const[o,i]=n.split(":");return{reason:o,category:i,quantity:a}})}_flushOutcomes(){Le&&ke.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){Le&&ke.log("No outcomes to send");return}if(!this._dsn){Le&&ke.log("No dsn provided, will not send outcomes");return}Le&&ke.log("Sending outcomes:",t);const n=Jj(t,this._options.tunnel&&Qs(this._dsn));this.sendEnvelope(n)}}function tH(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Ys(e))return e.then(a=>{if(!xs(a)&&a!==null)throw Jl(n);return a},a=>{throw Jl(`${t} rejected with ${a}`)});if(!xs(e)&&e!==null)throw Jl(n);return e}function nH(e,t,n,a){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=t;let l=n;if($f(l)&&o)return o(l,a);if(M3(l)){if(s){const c=s(Qj(l));if(c?l=Gs(n,Zj(c)):Bf(),l.spans){const u=[];for(const d of l.spans){const f=s(d);f?u.push(f):(Bf(),u.push(d))}l.spans=u}}if(i){if(l.spans){const c=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:c}}return i(l,a)}}return l}function $f(e){return e.type===void 0}function M3(e){return e.type==="transaction"}function rH(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function aH(e,t,n,a){const o={};return t?.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&a&&(o.dsn=Qs(a)),To(o,[rH(e)])}function Td(e,t){const n=oH(e)??[];if(n.length===0)return;const a=e.getOptions(),o=aH(n,a._metadata,a.tunnel,e.getDsn());N3().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function oH(e){return N3().get(e)}function N3(){return qs("clientToLogBufferMap",()=>new WeakMap)}function iH(e,t){t.debug===!0&&(Le?ke.enable():ia(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),lt().update(t.initialScope);const a=new e(t);return sH(a),a.init(),a}function sH(e){lt().setClient(e)}const O3=Symbol.for("SentryBufferFullError");function lH(e){const t=[];function n(){return e===void 0||t.length<e}function a(s){return t.splice(t.indexOf(s),1)[0]||Promise.resolve(void 0)}function o(s){if(!n())return Pc(O3);const l=s();return t.indexOf(l)===-1&&t.push(l),l.then(()=>a(l)).then(null,()=>a(l).then(null,()=>{})),l}function i(s){return new Aa((l,c)=>{let u=t.length;if(!u)return l(!0);const d=setTimeout(()=>{s&&s>0&&l(!1)},s);t.forEach(f=>{ra(f).then(()=>{--u||(clearTimeout(d),l(!0))},c)})})}return{$:t,add:o,drain:i}}const cH=60*1e3;function uH(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const a=Date.parse(`${e}`);return isNaN(a)?cH:a-t}function dH(e,t){return e[t]||e.all||0}function B3(e,t,n=Date.now()){return dH(e,t)>n}function L3(e,{statusCode:t,headers:n},a=Date.now()){const o={...e},i=n?.["x-sentry-rate-limits"],s=n?.["retry-after"];if(i)for(const l of i.trim().split(",")){const[c,u,,,d]=l.split(":",5),f=parseInt(c,10),p=(isNaN(f)?60:f)*1e3;if(!u)o.all=a+p;else for(const m of u.split(";"))m==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(o[m]=a+p):o[m]=a+p}else s?o.all=a+uH(s,a):t===429&&(o.all=a+60*1e3);return o}const fH=64;function pH(e,t,n=lH(e.bufferSize||fH)){let a={};const o=s=>n.drain(s);function i(s){const l=[];if(K0(s,(f,p)=>{const m=X0(p);B3(a,m)?e.recordDroppedEvent("ratelimit_backoff",m):l.push(f)}),l.length===0)return ra({});const c=To(s[0],l),u=f=>{K0(c,(p,m)=>{e.recordDroppedEvent(f,X0(m))})},d=()=>t({body:QF(c)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&Le&&ke.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),a=L3(a,f),f),f=>{throw u("network_error"),Le&&ke.error("Encountered error running transport request:",f),f});return n.add(d).then(f=>f,f=>{if(f===O3)return Le&&ke.error("Skipped sending event because buffer is full."),u("queue_overflow"),ra({});throw f})}return{send:i,flush:o}}function mH(e,t){const n=t?.getDsn(),a=t?.getOptions().tunnel;return vH(e,n)||hH(e,a)}function hH(e,t){return t?m1(e)===m1(t):!1}function vH(e,t){return t?e.includes(t.host):!1}function m1(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function gH(e){e.user?.ip_address===void 0&&(e.user={...e.user,ip_address:"{{auto}}"})}function yH(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function D3(e,t,n=[t],a="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(i=>({name:`${a}:@sentry/${i}`,version:so})),version:so}),e._metadata=o}function R3(e={}){const t=e.client||Qe();if(!Fj()||!t)return{};const n=Co(),a=Bi(n);if(a.getTraceData)return a.getTraceData(e);const o=e.scope||lt(),i=e.span||tn(),s=i?BF(i):bH(o),l=i?na(i):h3(t,o),c=EF(l);return i3.test(s)?{"sentry-trace":s,baggage:c}:(ke.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function bH(e){const{traceId:t,sampled:n,propagationSpanId:a}=e.getPropagationContext();return s3(t,a,n)}function wH(e,t,n){let a,o,i;const s=n?.maxWait?Math.max(n.maxWait,t):0,l=n?.setTimeoutImpl||setTimeout;function c(){return u(),a=e(),a}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?c():a}function f(){return o&&clearTimeout(o),o=l(c,t),s&&i===void 0&&(i=l(c,s)),a}return f.cancel=u,f.flush=d,f}const kH=100;function Ia(e,t){const n=Qe(),a=Dr();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=kH}=n.getOptions();if(i<=0)return;const l={timestamp:xo(),...e},c=o?ia(()=>o(l,t)):l;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),a.addBreadcrumb(c,i))}let h1;const _H="FunctionToString",v1=new WeakMap,SH=()=>({name:_H,setupOnce(){h1=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Om(this),n=v1.has(Qe())&&t!==void 0?t:this;return h1.apply(n,e)}}catch{}},setup(e){v1.set(e,!0)}}),CH=SH,xH=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],EH="EventFilters",TH=(e={})=>{let t;return{name:EH,setup(n){const a=n.getOptions();t=g1(e,a)},processEvent(n,a,o){if(!t){const i=o.getOptions();t=g1(e,i)}return AH(n,t)?null:n}}},PH=(e={})=>({...TH(e),name:"InboundFilters"});function g1(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:xH],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function AH(e,t){if(e.type){if(e.type==="transaction"&&MH(e,t.ignoreTransactions))return Le&&ke.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
658
658
  Event: ${Ka(e)}`),!0}else{if(IH(e,t.ignoreErrors))return Le&&ke.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
659
659
  Event: ${Ka(e)}`),!0;if(LH(e))return Le&&ke.warn(`Event dropped due to not having an error message, error type or stacktrace.
@@ -664,11 +664,11 @@ Event: ${Ka(e)}.
664
664
  Url: ${Ac(e)}`),!0}return!1}function IH(e,t){return t?.length?P3(e).some(n=>Wr(n,t)):!1}function MH(e,t){if(!t?.length)return!1;const n=e.transaction;return n?Wr(n,t):!1}function NH(e,t){if(!t?.length)return!1;const n=Ac(e);return n?Wr(n,t):!1}function OH(e,t){if(!t?.length)return!0;const n=Ac(e);return n?Wr(n,t):!0}function BH(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 Ac(e){try{const n=[...e.exception?.values??[]].reverse().find(a=>a.mechanism?.parent_id===void 0&&a.stacktrace?.frames?.length)?.stacktrace?.frames;return n?BH(n):null}catch{return Le&&ke.error(`Cannot extract url for event ${Ka(e)}`),null}}function LH(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function DH(e,t,n,a,o,i){if(!o.exception?.values||!i||!Zr(i.originalException,Error))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=zf(e,t,a,i.originalException,n,o.exception.values,s,0))}function zf(e,t,n,a,o,i,s,l){if(i.length>=n+1)return i;let c=[...i];if(Zr(a[o],Error)){y1(s,l);const u=e(t,a[o]),d=c.length;b1(u,o,d,l),c=zf(e,t,n,a[o],o,[u,...c],u,d)}return Array.isArray(a.errors)&&a.errors.forEach((u,d)=>{if(Zr(u,Error)){y1(s,l);const f=e(t,u),p=c.length;b1(f,`errors[${d}]`,p,l),c=zf(e,t,n,u,o,[f,...c],f,p)}}),c}function y1(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 b1(e,t,n,a){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:a}}function RH(e){const t="console";Ra(t,e),$a(t,$H)}function $H(){"console"in rt&&zV.forEach(function(e){e in rt.console&&wn(rt.console,e,function(t){return Sc[e]=t,function(...n){Vn("console",{args:n,level:e}),Sc[e]?.apply(rt.console,n)}})})}function $3(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const zH="Dedupe",VH=()=>{let e;return{name:zH,processEvent(t){if(t.type)return t;try{if(jH(t,e))return Le&&ke.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},FH=VH;function jH(e,t){return t?!!(HH(e,t)||UH(e,t)):!1}function HH(e,t){const n=e.message,a=t.message;return!(!n&&!a||n&&!a||!n&&a||n!==a||!V3(e,t)||!z3(e,t))}function UH(e,t){const n=w1(t),a=w1(e);return!(!n||!a||n.type!==a.type||n.value!==a.value||!V3(e,t)||!z3(e,t))}function z3(e,t){let n=L0(e),a=L0(t);if(!n&&!a)return!0;if(n&&!a||!n&&a||(n=n,a=a,a.length!==n.length))return!1;for(let o=0;o<a.length;o++){const i=a[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 V3(e,t){let n=e.fingerprint,a=t.fingerprint;if(!n&&!a)return!0;if(n&&!a||!n&&a)return!1;n=n,a=a;try{return n.join("")===a.join("")}catch{return!1}}function w1(e){return e.exception?.values?.[0]}const WH="thismessage:/";function F3(e){return"isRelative"in e}function j3(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,a=n?WH:void 0;try{if("canParse"in URL&&!URL.canParse(e,a))return;const o=new URL(e,a);return n?{isRelative:n,pathname:o.pathname,search:o.search,hash:o.hash}:o}catch{}}function qH(e){if(F3(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function uo(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",a=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:a,relative:t[5]+n+a}}function YH(e){return e.split(/[?#]/,1)[0]}function GH(e,t,n,a,o="auto.http.browser"){if(!e.fetchData)return;const{method:i,url:s}=e.fetchData,l=ta()&&t(s);if(e.endTimestamp&&l){const f=e.fetchData.__span;if(!f)return;const p=a[f];p&&(XH(p,e),delete a[f]);return}const c=!!tn(),u=l&&c?Pa(QH(s,i,o)):new Ta;if(e.fetchData.__span=u.spanContext().spanId,a[u.spanContext().spanId]=u,n(e.fetchData.url)){const f=e.args[0],p=e.args[1]||{},m=KH(f,p,ta()&&c?u:void 0);m&&(e.args[1]=p,p.headers=m)}const d=Qe();if(d){const f={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};d.emit("beforeOutgoingRequestSpan",u,f)}return u}function KH(e,t,n){const a=R3({span:n}),o=a["sentry-trace"],i=a.baggage;if(!o)return;const s=t.headers||(G4(e)?e.headers:void 0);if(s)if(JH(s)){const l=new Headers(s);if(l.get("sentry-trace")||l.set("sentry-trace",o),i){const c=l.get("baggage");c?Pl(c)||l.set("baggage",`${c},${i}`):l.set("baggage",i)}return l}else if(Array.isArray(s)){const l=[...s];s.find(u=>u[0]==="sentry-trace")||l.push(["sentry-trace",o]);const c=s.find(u=>u[0]==="baggage"&&Pl(u[1]));return i&&!c&&l.push(["baggage",i]),l}else{const l="sentry-trace"in s?s["sentry-trace"]:void 0,c="baggage"in s?s.baggage:void 0,u=c?Array.isArray(c)?[...c]:[c]:[],d=c&&(Array.isArray(c)?c.find(f=>Pl(f)):Pl(c));return i&&!d&&u.push(i),{...s,"sentry-trace":l??o,baggage:u.length>0?u.join(","):void 0}}else return{...a}}function XH(e,t){if(t.response){n3(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const a=parseInt(n);a>0&&e.setAttribute("http.response_content_length",a)}}else t.error&&e.setStatus({code:Wt,message:"internal_error"});e.end()}function Pl(e){return e.split(",").some(t=>t.trim().startsWith(Dm))}function JH(e){return typeof Headers<"u"&&Zr(e,Headers)}function QH(e,t,n){const a=j3(e);return{name:a?`${t} ${qH(a)}`:t,attributes:ZH(e,a,t,n)}}function ZH(e,t,n,a){const o={url:e,type:"fetch","http.method":n,[xt]:a,[ea]:"http.client"};return t&&(F3(t)||(o["http.url"]=t.href,o["server.address"]=t.host),t.search&&(o["http.query"]=t.search),t.hash&&(o["http.fragment"]=t.hash)),o}function H3(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Es=rt;function eU(){return"history"in Es&&!!Es.history}function tU(){if(!("fetch"in Es))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Vf(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function nU(){if(typeof EdgeRuntime=="string")return!0;if(!tU())return!1;if(Vf(Es.fetch))return!0;let e=!1;const t=Es.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Vf(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Le&&ke.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function U3(e,t){const n="fetch";Ra(n,e),$a(n,()=>W3(void 0,t))}function rU(e){const t="fetch-body-resolved";Ra(t,e),$a(t,()=>W3(oU))}function W3(e,t=!1){t&&!nU()||wn(rt,"fetch",function(n){return function(...a){const o=new Error,{method:i,url:s}=iU(a),l={args:a,fetchData:{method:i,url:s},startTimestamp:Ht()*1e3,virtualError:o,headers:sU(a)};return e||Vn("fetch",{...l}),n.apply(rt,a).then(async c=>(e?e(c):Vn("fetch",{...l,endTimestamp:Ht()*1e3,response:c}),c),c=>{if(Vn("fetch",{...l,endTimestamp:Ht()*1e3,error:c}),Im(c)&&c.stack===void 0&&(c.stack=o.stack,Bn(c,"framesToPop",1)),c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const u=new URL(l.fetchData.url);c.message=`${c.message} (${u.host})`}catch{}throw c})}})}async function aU(e,t){if(e?.body){const n=e.body,a=n.getReader(),o=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let i=!0;for(;i;){let s;try{s=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:l}=await a.read();clearTimeout(s),l&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(s)}}clearTimeout(o),a.releaseLock(),n.cancel().then(null,()=>{})}}function oU(e){let t;try{t=e.clone()}catch{return}aU(t,()=>{Vn("fetch-body-resolved",{endTimestamp:Ht()*1e3,response:e})})}function Ff(e,t){return!!e&&typeof e=="object"&&!!e[t]}function k1(e){return typeof e=="string"?e:e?Ff(e,"url")?e.url:e.toString?e.toString():"":""}function iU(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,a]=e;return{url:k1(n),method:Ff(a,"method")?String(a.method).toUpperCase():"GET"}}const t=e[0];return{url:k1(t),method:Ff(t,"method")?String(t.method).toUpperCase():"GET"}}function sU(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(G4(t))return new Headers(t.headers)}catch{}}function lU(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function cU(){return"npm"}function uU(){return!lU()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function _1(){return typeof window<"u"&&(!uU()||dU())}function dU(){return rt.process?.type==="renderer"}const at=rt;let jf=0;function q3(){return jf>0}function fU(){jf++,setTimeout(()=>{jf--})}function Si(e,t={}){function n(o){return typeof o=="function"}if(!n(e))return e;try{const o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(Om(e))return e}catch{return e}const a=function(...o){try{const i=o.map(s=>Si(s,t));return e.apply(this,i)}catch(i){throw fU(),gu(s=>{s.addEventProcessor(l=>(t.mechanism&&(Mf(l,void 0),bi(l,t.mechanism)),l.extra={...l.extra,arguments:o},l)),bu(i)}),i}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(a[o]=e[o])}catch{}X4(a,e),Bn(e,"__sentry_wrapped__",a);try{Object.getOwnPropertyDescriptor(a,"name").configurable&&Object.defineProperty(a,"name",{get(){return e.name}})}catch{}return a}function jm(){const e=Oi(),{referrer:t}=at.document||{},{userAgent:n}=at.navigator||{},a={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:a}}function Hm(e,t){const n=Um(e,t),a={type:gU(t),value:yU(t)};return n.length&&(a.stacktrace={frames:n}),a.type===void 0&&a.value===""&&(a.value="Unrecoverable error caught"),a}function pU(e,t,n,a){const i=Qe()?.getOptions().normalizeDepth,s=SU(t),l={__serialized__:v3(t,i)};if(s)return{exception:{values:[Hm(e,s)]},extra:l};const c={exception:{values:[{type:vu(t)?t.constructor.name:a?"UnhandledRejection":"Error",value:kU(t,{isUnhandledRejection:a})}]},extra:l};if(n){const u=Um(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function Pd(e,t){return{exception:{values:[Hm(e,t)]}}}function Um(e,t){const n=t.stacktrace||t.stack||"",a=hU(t),o=vU(t);try{return e(n,a,o)}catch{}return[]}const mU=/Minified React error #\d+;/i;function hU(e){return e&&mU.test(e.message)?1:0}function vU(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Y3(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function gU(e){const t=e?.name;return!t&&Y3(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function yU(e){const t=e?.message;return Y3(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function bU(e,t,n,a){const o=n?.syntheticException||void 0,i=Wm(e,t,o,a);return bi(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),ra(i)}function wU(e,t,n="info",a,o){const i=a?.syntheticException||void 0,s=Hf(e,t,i,o);return s.level=n,a?.event_id&&(s.event_id=a.event_id),ra(s)}function Wm(e,t,n,a,o){let i;if(q4(t)&&t.error)return Pd(e,t.error);if(R0(t)||XV(t)){const s=t;if("stack"in t)i=Pd(e,t);else{const l=s.name||(R0(s)?"DOMError":"DOMException"),c=s.message?`${l}: ${s.message}`:l;i=Hf(e,c,n,a),Mf(i,c)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return Im(t)?Pd(e,t):xs(t)||vu(t)?(i=pU(e,t,n,o),bi(i,{synthetic:!0}),i):(i=Hf(e,t,n,a),Mf(i,`${t}`),bi(i,{synthetic:!0}),i)}function Hf(e,t,n,a){const o={};if(a&&n){const i=Um(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]}),bi(o,{synthetic:!0})}if(Mm(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 kU(e,{isUnhandledRejection:t}){const n=rF(e),a=t?"promise rejection":"exception";return q4(e)?`Event \`ErrorEvent\` captured as ${a} with message \`${e.message}\``:vu(e)?`Event \`${_U(e)}\` (type=${e.type}) captured as ${a}`:`Object captured as ${a} with keys: ${n}`}function _U(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function SU(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const CU=5e3;class xU extends eH{constructor(t){const n=EU(t),a=at.SENTRY_SDK_SOURCE||cU();D3(n,"browser",["browser"],a),super(n);const{sendDefaultPii:o,sendClientReports:i,enableLogs:s,_experiments:l}=this._options,c=s??l?.enableLogs;at.document&&(i||c)&&at.document.addEventListener("visibilitychange",()=>{at.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),c&&Td(this))}),c&&(this.on("flush",()=>{Td(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{Td(this)},CU)})),o&&(this.on("postprocessEvent",gH),this.on("beforeSendSession",yH))}eventFromException(t,n){return bU(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",a){return wU(this._options.stackParser,t,n,a,this._options.attachStacktrace)}_prepareEvent(t,n,a,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,a,o)}}function EU(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:at.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const Ci=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,qe=rt,TU=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Di=(e,t,n,a)=>{let o,i;return s=>{t.value>=0&&(s||a)&&(i=t.value-(o??0),(i||o===void 0)&&(o=t.value,t.delta=i,t.rating=TU(t.value,n),e(t)))}},PU=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Zs=(e=!0)=>{const t=qe.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Ri=()=>Zs()?.activationStart??0,$i=(e,t=-1)=>{const n=Zs();let a="navigate";return n&&(qe.document?.prerendering||Ri()>0?a="prerender":qe.document?.wasDiscarded?a="restore":n.type&&(a=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:PU(),navigationType:a}},Ad=new WeakMap;function qm(e,t){return Ad.get(e)||Ad.set(e,new t),Ad.get(e)}class Ic{constructor(){Ic.prototype.__init.call(this),Ic.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],a=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&a&&t.startTime-a.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const Po=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const a=new PerformanceObserver(o=>{Promise.resolve().then(()=>{t(o.getEntries())})});return a.observe({type:e,buffered:!0,...n}),a}}catch{}},wu=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let ss=-1;const AU=()=>qe.document?.visibilityState==="hidden"&&!qe.document?.prerendering?0:1/0,Mc=e=>{qe.document.visibilityState==="hidden"&&ss>-1&&(ss=e.type==="visibilitychange"?e.timeStamp:0,MU())},IU=()=>{addEventListener("visibilitychange",Mc,!0),addEventListener("prerenderingchange",Mc,!0)},MU=()=>{removeEventListener("visibilitychange",Mc,!0),removeEventListener("prerenderingchange",Mc,!0)},ku=()=>{if(qe.document&&ss<0){const e=Ri();ss=(qe.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??AU(),IU()}return{get firstHiddenTime(){return ss}}},el=e=>{qe.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},NU=[1800,3e3],OU=(e,t={})=>{el(()=>{const n=ku(),a=$i("FCP");let o;const s=Po("paint",l=>{for(const c of l)c.name==="first-contentful-paint"&&(s.disconnect(),c.startTime<n.firstHiddenTime&&(a.value=Math.max(c.startTime-Ri(),0),a.entries.push(c),o(!0)))});s&&(o=Di(e,a,NU,t.reportAllChanges))})},BU=[.1,.25],LU=(e,t={})=>{OU(wu(()=>{const n=$i("CLS",0);let a;const o=qm(t,Ic),i=l=>{for(const c of l)o._processEntry(c);o._sessionValue>n.value&&(n.value=o._sessionValue,n.entries=o._sessionEntries,a())},s=Po("layout-shift",i);s&&(a=Di(e,n,BU,t.reportAllChanges),qe.document?.addEventListener("visibilitychange",()=>{qe.document?.visibilityState==="hidden"&&(i(s.takeRecords()),a(!0))}),qe?.setTimeout?.(a))}))},_u=e=>{const t=n=>{(n.type==="pagehide"||qe.document?.visibilityState==="hidden")&&e(n)};qe.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},DU=[100,300],RU=(e,t={})=>{el(()=>{const n=ku(),a=$i("FID");let o;const i=c=>{c.startTime<n.firstHiddenTime&&(a.value=c.processingStart-c.startTime,a.entries.push(c),o(!0))},s=c=>{c.forEach(i)},l=Po("first-input",s);o=Di(e,a,DU,t.reportAllChanges),l&&_u(wu(()=>{s(l.takeRecords()),l.disconnect()}))})};let G3=0,Id=1/0,Al=0;const $U=e=>{e.forEach(t=>{t.interactionId&&(Id=Math.min(Id,t.interactionId),Al=Math.max(Al,t.interactionId),G3=Al?(Al-Id)/7+1:0)})};let Uf;const K3=()=>Uf?G3:performance.interactionCount||0,zU=()=>{"interactionCount"in performance||Uf||(Uf=Po("event",$U,{type:"event",buffered:!0,durationThreshold:0}))},Md=10;let X3=0;const VU=()=>K3()-X3;class Nc{constructor(){Nc.prototype.__init.call(this),Nc.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){X3=K3(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(VU()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let a=this._longestInteractionMap.get(t.interactionId);if(a||this._longestInteractionList.length<Md||t.duration>n._latency){if(a?t.duration>a._latency?(a.entries=[t],a._latency=t.duration):t.duration===a._latency&&t.startTime===a.entries[0].startTime&&a.entries.push(t):(a={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(a.id,a),this._longestInteractionList.push(a)),this._longestInteractionList.sort((o,i)=>i._latency-o._latency),this._longestInteractionList.length>Md){const o=this._longestInteractionList.splice(Md);for(const i of o)this._longestInteractionMap.delete(i.id)}this._onAfterProcessingINPCandidate?.(a)}}}const J3=e=>{const t=qe.requestIdleCallback||qe.setTimeout;qe.document?.visibilityState==="hidden"?e():(e=wu(e),t(e),_u(e))},FU=[200,500],jU=40,HU=(e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&el(()=>{zU();const n=$i("INP");let a;const o=qm(t,Nc),i=l=>{J3(()=>{for(const u of l)o._processEntry(u);const c=o._estimateP98LongestInteraction();c&&c._latency!==n.value&&(n.value=c._latency,n.entries=c.entries,a())})},s=Po("event",i,{durationThreshold:t.durationThreshold??jU});a=Di(e,n,FU,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),_u(()=>{i(s.takeRecords()),a(!0)}))})};class UU{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const WU=[2500,4e3],qU=(e,t={})=>{el(()=>{const n=ku(),a=$i("LCP");let o;const i=qm(t,UU),s=c=>{t.reportAllChanges||(c=c.slice(-1));for(const u of c)i._processEntry(u),u.startTime<n.firstHiddenTime&&(a.value=Math.max(u.startTime-Ri(),0),a.entries=[u],o())},l=Po("largest-contentful-paint",s);if(l){o=Di(e,a,WU,t.reportAllChanges);const c=wu(()=>{s(l.takeRecords()),l.disconnect(),o(!0)});for(const u of["keydown","click","visibilitychange"])qe.document&&addEventListener(u,()=>J3(c),{capture:!0,once:!0})}})},YU=[800,1800],Wf=e=>{qe.document?.prerendering?el(()=>Wf(e)):qe.document?.readyState!=="complete"?addEventListener("load",()=>Wf(e),!0):setTimeout(e)},GU=(e,t={})=>{const n=$i("TTFB"),a=Di(e,n,YU,t.reportAllChanges);Wf(()=>{const o=Zs();o&&(n.value=Math.max(o.responseStart-Ri(),0),n.entries=[o],a(!0))})},ls={},Oc={};let Q3,Z3,ew,tw,nw;function Ym(e,t=!1){return tl("cls",e,XU,Q3,t)}function Gm(e,t=!1){return tl("lcp",e,QU,ew,t)}function rw(e){return tl("fid",e,JU,Z3)}function KU(e){return tl("ttfb",e,ZU,tw)}function aw(e){return tl("inp",e,eW,nw)}function wo(e,t){return ow(e,t),Oc[e]||(tW(e),Oc[e]=!0),iw(e,t)}function zi(e,t){const n=ls[e];if(n?.length)for(const a of n)try{a(t)}catch(o){Ci&&ke.error(`Error while triggering instrumentation handler.
665
665
  Type: ${e}
666
666
  Name: ${Qr(a)}
667
- Error:`,o)}}function XU(){return LU(e=>{zi("cls",{metric:e}),Q3=e},{reportAllChanges:!0})}function JU(){return RU(e=>{zi("fid",{metric:e}),Z3=e})}function QU(){return qU(e=>{zi("lcp",{metric:e}),ew=e},{reportAllChanges:!0})}function ZU(){return GU(e=>{zi("ttfb",{metric:e}),tw=e})}function eW(){return HU(e=>{zi("inp",{metric:e}),nw=e})}function tl(e,t,n,a,o=!1){ow(e,t);let i;return Oc[e]||(i=n(),Oc[e]=!0),a&&t({metric:a}),iw(e,t,o?i:void 0)}function tW(e){const t={};e==="event"&&(t.durationThreshold=0),Po(e,n=>{zi(e,{entries:n})},t)}function ow(e,t){ls[e]=ls[e]||[],ls[e].push(t)}function iw(e,t,n){return()=>{n&&n();const a=ls[e];if(!a)return;const o=a.indexOf(t);o!==-1&&a.splice(o,1)}}function nW(e){return"duration"in e}function Nd(e){return typeof e=="number"&&isFinite(e)}function aa(e,t,n,{...a}){const o=tt(e).start_timestamp;return o&&o>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Vm(e,()=>{const i=Pa({startTime:t,...a});return i&&i.end(n),i})}function Km(e){const t=Qe();if(!t)return;const{name:n,transaction:a,attributes:o,startTime:i}=e,{release:s,environment:l,sendDefaultPii:c}=t.getOptions(),d=t.getIntegrationByName("Replay")?.getReplayId(),f=lt(),p=f.getUser(),m=p!==void 0?p.email||p.id||p.ip_address:void 0;let v;try{v=f.getScopeData().contexts.profile.profile_id}catch{}const y={release:s,environment:l,user:m||void 0,profile_id:v||void 0,replay_id:d||void 0,transaction:a,"user_agent.original":qe.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...o};return Pa({name:n,attributes:y,startTime:i,experimental:{standalone:!0}})}function Su(){return qe.addEventListener&&qe.performance}function Ct(e){return e/1e3}function sw(e){let t="unknown",n="unknown",a="";for(const o of e){if(o==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t=a==="h"?"http":a,n=e.split(a)[1];break}a+=o}return a===e&&(t=a),{name:t,version:n}}function lw(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function cw(e,t){let n,a=!1;function o(l){!a&&n&&t(l,n),a=!0}_u(()=>{o("pagehide")});const i=e.on("beforeStartNavigationSpan",(l,c)=>{c?.isRedirect||(o("navigation"),i?.(),s?.())}),s=e.on("afterStartPageLoadSpan",l=>{n=l.spanContext().spanId,s?.()})}function rW(e){let t=0,n;if(!lw("layout-shift"))return;const a=Ym(({metric:o})=>{const i=o.entries[o.entries.length-1];i&&(t=o.value,n=i)},!0);cw(e,(o,i)=>{aW(t,n,i,o),a()})}function aW(e,t,n,a){Ci&&ke.log(`Sending CLS span (${e})`);const o=Ct((hn()||0)+(t?.startTime||0)),i=lt().getScopeData().transactionName,s=t?Hn(t.sources[0]?.node):"Layout shift",l={[xt]:"auto.http.browser.cls",[ea]:"ui.webvital.cls",[Li]:t?.duration||0,"sentry.pageload.span_id":n,"sentry.report_event":a};t?.sources&&t.sources.forEach((u,d)=>{l[`cls.source.${d+1}`]=Hn(u.node)});const c=Km({name:s,transaction:i,attributes:l,startTime:o});c&&(c.addEvent("cls",{[Xs]:"",[Js]:e}),c.end(o))}function oW(e){let t=0,n;if(!lw("largest-contentful-paint"))return;const a=Gm(({metric:o})=>{const i=o.entries[o.entries.length-1];i&&(t=o.value,n=i)},!0);cw(e,(o,i)=>{iW(t,n,i,o),a()})}function iW(e,t,n,a){Ci&&ke.log(`Sending LCP span (${e})`);const o=Ct((hn()||0)+(t?.startTime||0)),i=lt().getScopeData().transactionName,s=t?Hn(t.element):"Largest contentful paint",l={[xt]:"auto.http.browser.lcp",[ea]:"ui.webvital.lcp",[Li]:0,"sentry.pageload.span_id":n,"sentry.report_event":a};t&&(t.element&&(l["lcp.element"]=Hn(t.element)),t.id&&(l["lcp.id"]=t.id),t.url&&(l["lcp.url"]=t.url.trim().slice(0,200)),t.loadTime!=null&&(l["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(l["lcp.renderTime"]=t.renderTime),t.size!=null&&(l["lcp.size"]=t.size));const c=Km({name:s,transaction:i,attributes:l,startTime:o});c&&(c.addEvent("lcp",{[Xs]:"millisecond",[Js]:e}),c.end(o))}const sW=2147483647;let S1=0,Qt={},gn,Bc;function lW({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const a=Su();if(a&&hn()){a.mark&&qe.performance.mark("sentry-tracing-init");const o=mW(),i=t?oW(n):pW(),s=hW(),l=e?rW(n):fW();return()=>{o(),i?.(),s(),l?.()}}return()=>{}}function cW(){wo("longtask",({entries:e})=>{const t=tn();if(!t)return;const{op:n,start_timestamp:a}=tt(t);for(const o of e){const i=Ct(hn()+o.startTime),s=Ct(o.duration);n==="navigation"&&a&&i<a||aa(t,i,i+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[xt]:"auto.ui.browser.metrics"}})}})}function uW(){new PerformanceObserver(t=>{const n=tn();if(n)for(const a of t.getEntries()){if(!a.scripts[0])continue;const o=Ct(hn()+a.startTime),{start_timestamp:i,op:s}=tt(n);if(s==="navigation"&&i&&o<i)continue;const l=Ct(a.duration),c={[xt]:"auto.ui.browser.metrics"},u=a.scripts[0],{invoker:d,invokerType:f,sourceURL:p,sourceFunctionName:m,sourceCharPosition:v}=u;c["browser.script.invoker"]=d,c["browser.script.invoker_type"]=f,p&&(c["code.filepath"]=p),m&&(c["code.function"]=m),v!==-1&&(c["browser.script.source_char_position"]=v),aa(n,o,o+l,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function dW(){wo("event",({entries:e})=>{const t=tn();if(t){for(const n of e)if(n.name==="click"){const a=Ct(hn()+n.startTime),o=Ct(n.duration),i={name:Hn(n.target),op:`ui.interaction.${n.name}`,startTime:a,attributes:{[xt]:"auto.ui.browser.metrics"}},s=K4(n.target);s&&(i.attributes["ui.component_name"]=s),aa(t,a,a+o,i)}}})}function fW(){return Ym(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Qt.cls={value:e.value,unit:""},Bc=t)},!0)}function pW(){return Gm(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Qt.lcp={value:e.value,unit:"millisecond"},gn=t)},!0)}function mW(){return rw(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Ct(hn()),a=Ct(t.startTime);Qt.fid={value:e.value,unit:"millisecond"},Qt["mark.fid"]={value:n+a,unit:"second"}})}function hW(){return KU(({metric:e})=>{e.entries[e.entries.length-1]&&(Qt.ttfb={value:e.value,unit:"millisecond"})})}function vW(e,t){const n=Su(),a=hn();if(!n?.getEntries||!a)return;const o=Ct(a),i=n.getEntries(),{op:s,start_timestamp:l}=tt(e);if(i.slice(S1).forEach(c=>{const u=Ct(c.startTime),d=Ct(Math.max(0,c.duration));if(!(s==="navigation"&&l&&o+u<l))switch(c.entryType){case"navigation":{bW(e,c,o);break}case"mark":case"paint":case"measure":{gW(e,c,u,d,o,t.ignorePerformanceApiSpans);const f=ku(),p=c.startTime<f.firstHiddenTime;c.name==="first-paint"&&p&&(Qt.fp={value:c.startTime,unit:"millisecond"}),c.name==="first-contentful-paint"&&p&&(Qt.fcp={value:c.startTime,unit:"millisecond"});break}case"resource":{_W(e,c,c.name,u,d,o,t.ignoreResourceSpans);break}}}),S1=Math.max(i.length-1,0),SW(e),s==="pageload"){xW(Qt);const c=Qt["mark.fid"];c&&Qt.fid&&(aa(e,c.value,c.value+Ct(Qt.fid.value),{name:"first input delay",op:"ui.action",attributes:{[xt]:"auto.ui.browser.metrics"}}),delete Qt["mark.fid"]),t.recordClsOnPageloadSpan||delete Qt.cls,t.recordLcpOnPageloadSpan||delete Qt.lcp,Object.entries(Qt).forEach(([u,d])=>{cj(u,d.value,d.unit)}),e.setAttribute("performance.timeOrigin",o),e.setAttribute("performance.activationStart",Ri()),CW(e,t)}gn=void 0,Bc=void 0,Qt={}}function gW(e,t,n,a,o,i){if(["mark","measure"].includes(t.entryType)&&Wr(t.name,i))return;const s=Zs(!1),l=Ct(s?s.requestStart:0),c=o+Math.max(n,l),u=o+n,d=u+a,f={[xt]:"auto.resource.browser.metrics"};c!==u&&(f["sentry.browser.measure_happened_before_request"]=!0,f["sentry.browser.measure_start_time"]=c),yW(f,t),c<=d&&aa(e,c,d,{name:t.name,op:t.entryType,attributes:f})}function yW(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[a,o]of Object.entries(n))if(o&&Cs(o))e[`sentry.browser.measure.detail.${a}`]=o;else if(o!==void 0)try{e[`sentry.browser.measure.detail.${a}`]=JSON.stringify(o)}catch{}return}if(Cs(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function bW(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(a=>{Il(e,t,a,n)}),Il(e,t,"secureConnection",n,"TLS/SSL"),Il(e,t,"fetch",n,"cache"),Il(e,t,"domainLookup",n,"DNS"),kW(e,t,n)}function Il(e,t,n,a,o=n){const i=wW(n),s=t[i],l=t[`${n}Start`];!l||!s||aa(e,a+Ct(l),a+Ct(s),{op:`browser.${o}`,name:t.name,attributes:{[xt]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function wW(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function kW(e,t,n){const a=n+Ct(t.requestStart),o=n+Ct(t.responseEnd),i=n+Ct(t.responseStart);t.responseEnd&&(aa(e,a,o,{op:"browser.request",name:t.name,attributes:{[xt]:"auto.ui.browser.metrics"}}),aa(e,i,o,{op:"browser.response",name:t.name,attributes:{[xt]:"auto.ui.browser.metrics"}}))}function _W(e,t,n,a,o,i,s){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const l=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(l))return;const c=uo(n),u={[xt]:"auto.resource.browser.metrics"};Od(u,t,"transferSize","http.response_transfer_size"),Od(u,t,"encodedBodySize","http.response_content_length"),Od(u,t,"decodedBodySize","http.decoded_response_content_length");const d=t.deliveryType;d!=null&&(u["http.response_delivery_type"]=d);const f=t.renderBlockingStatus;if(f&&(u["resource.render_blocking_status"]=f),c.protocol&&(u["url.scheme"]=c.protocol.split(":").pop()),c.host&&(u["server.address"]=c.host),u["url.same_origin"]=n.includes(qe.location.origin),t.nextHopProtocol!=null){const{name:v,version:y}=sw(t.nextHopProtocol);u["network.protocol.name"]=v,u["network.protocol.version"]=y}const p=i+a,m=p+o;aa(e,p,m,{name:n.replace(qe.location.origin,""),op:l,attributes:u})}function SW(e){const t=qe.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Nd(n.rtt)&&(Qt["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Nd(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Nd(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function CW(e,t){gn&&t.recordLcpOnPageloadSpan&&(gn.element&&e.setAttribute("lcp.element",Hn(gn.element)),gn.id&&e.setAttribute("lcp.id",gn.id),gn.url&&e.setAttribute("lcp.url",gn.url.trim().slice(0,200)),gn.loadTime!=null&&e.setAttribute("lcp.loadTime",gn.loadTime),gn.renderTime!=null&&e.setAttribute("lcp.renderTime",gn.renderTime),e.setAttribute("lcp.size",gn.size)),Bc?.sources&&t.recordClsOnPageloadSpan&&Bc.sources.forEach((n,a)=>e.setAttribute(`cls.source.${a+1}`,Hn(n.node)))}function Od(e,t,n,a){const o=t[n];o!=null&&o<sW&&(e[a]=o)}function xW(e){const t=Zs(!1);if(!t)return;const{responseStart:n,requestStart:a}=t;a<=n&&(e["ttfb.requestTime"]={value:n-a,unit:"millisecond"})}function EW(){return Su()&&hn()?wo("element",TW):()=>{}}const TW=({entries:e})=>{const t=tn(),n=t?en(t):void 0,a=n?tt(n).description:lt().getScopeData().transactionName;e.forEach(o=>{const i=o;if(!i.identifier)return;const s=i.name,l=i.renderTime,c=i.loadTime,[u,d]=c?[Ct(c),"load-time"]:l?[Ct(l),"render-time"]:[Ht(),"entry-emission"],f=s==="image-paint"?Ct(Math.max(0,(l??0)-(c??0))):0,p={[xt]:"auto.ui.browser.elementtiming",[ea]:"ui.elementtiming",[kn]:"component","sentry.span_start_time_source":d,"sentry.transaction_name":a,"element.id":i.id,"element.type":i.element?.tagName?.toLowerCase()||"unknown","element.size":i.naturalWidth&&i.naturalHeight?`${i.naturalWidth}x${i.naturalHeight}`:void 0,"element.render_time":l,"element.load_time":c,"element.url":i.url||void 0,"element.identifier":i.identifier,"element.paint_type":s};hj({name:`element[${i.identifier}]`,attributes:p,startTime:u,onlyIfParent:!0},m=>{m.end(u+f)})})},PW=1e3;let C1,qf,Yf;function uw(e){Ra("dom",e),$a("dom",AW)}function AW(){if(!qe.document)return;const e=Vn.bind(null,"dom"),t=x1(e,!0);qe.document.addEventListener("click",t,!1),qe.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const o=qe[n]?.prototype;o?.hasOwnProperty?.("addEventListener")&&(wn(o,"addEventListener",function(i){return function(s,l,c){if(s==="click"||s=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=u[s]=u[s]||{refCount:0};if(!d.handler){const f=x1(e);d.handler=f,i.call(this,s,f,c)}d.refCount++}catch{}return i.call(this,s,l,c)}}),wn(o,"removeEventListener",function(i){return function(s,l,c){if(s==="click"||s=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},d=u[s];d&&(d.refCount--,d.refCount<=0&&(i.call(this,s,d.handler,c),d.handler=void 0,delete u[s]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,s,l,c)}}))})}function IW(e){if(e.type!==qf)return!1;try{if(!e.target||e.target._sentryId!==Yf)return!1}catch{}return!0}function MW(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function x1(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const a=NW(n);if(MW(n.type,a))return;Bn(n,"_sentryCaptured",!0),a&&!a._sentryId&&Bn(a,"_sentryId",Nn());const o=n.type==="keypress"?"input":n.type;IW(n)||(e({event:n,name:o,global:t}),qf=n.type,Yf=a?a._sentryId:void 0),clearTimeout(C1),C1=qe.setTimeout(()=>{Yf=void 0,qf=void 0},PW)}}function NW(e){try{return e.target}catch{return null}}let Ml;function Cu(e){const t="history";Ra(t,e),$a(t,OW)}function OW(){if(qe.addEventListener("popstate",()=>{const t=qe.location.href,n=Ml;if(Ml=t,n===t)return;Vn("history",{from:n,to:t})}),!eU())return;function e(t){return function(...n){const a=n.length>2?n[2]:void 0;if(a){const o=Ml,i=BW(String(a));if(Ml=i,o===i)return t.apply(this,n);Vn("history",{from:o,to:i})}return t.apply(this,n)}}wn(qe.history,"pushState",e),wn(qe.history,"replaceState",e)}function BW(e){try{return new URL(e,qe.location.origin).toString()}catch{return e}}const Ql={};function dw(e){const t=Ql[e];if(t)return t;let n=qe[e];if(Vf(n))return Ql[e]=n.bind(qe);const a=qe.document;if(a&&typeof a.createElement=="function")try{const o=a.createElement("iframe");o.hidden=!0,a.head.appendChild(o);const i=o.contentWindow;i?.[e]&&(n=i[e]),a.head.removeChild(o)}catch(o){Ci&&ke.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(Ql[e]=n.bind(qe))}function E1(e){Ql[e]=void 0}function nl(...e){return dw("setTimeout")(...e)}const eo="__sentry_xhr_v3__";function fw(e){Ra("xhr",e),$a("xhr",LW)}function LW(){if(!qe.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,a){const o=new Error,i=Ht()*1e3,s=Ur(a[0])?a[0].toUpperCase():void 0,l=DW(a[1]);if(!s||!l)return t.apply(n,a);n[eo]={method:s,url:l,request_headers:{}},s==="POST"&&l.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[eo];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const d={endTimestamp:Ht()*1e3,startTimestamp:i,xhr:n,virtualError:o};Vn("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,d,f){return c(),u.apply(d,f)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,d,f){const[p,m]=f,v=d[eo];return v&&Ur(p)&&Ur(m)&&(v.request_headers[p.toLowerCase()]=m),u.apply(d,f)}}),t.apply(n,a)}}),e.send=new Proxy(e.send,{apply(t,n,a){const o=n[eo];if(!o)return t.apply(n,a);a[0]!==void 0&&(o.body=a[0]);const i={startTimestamp:Ht()*1e3,xhr:n};return Vn("xhr",i),t.apply(n,a)}})}function DW(e){if(Ur(e))return e;try{return e.toString()}catch{}}function pw(e){return new URLSearchParams(e).toString()}function mw(e,t=ke){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[pw(e)];if(!e)return[void 0]}catch(n){return Ci&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Ci&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function hw(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}const Bd=[],Zl=new Map,RW=60;function $W(){if(Su()&&hn()){const t=zW();return()=>{t()}}return()=>{}}const T1={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 zW(){return aw(VW)}const VW=({metric:e})=>{if(e.value==null)return;const t=Ct(e.value);if(t>RW)return;const n=e.entries.find(v=>v.duration===e.value&&T1[v.name]);if(!n)return;const{interactionId:a}=n,o=T1[n.name],i=Ct(hn()+n.startTime),s=tn(),l=s?en(s):void 0,u=(a!=null?Zl.get(a):void 0)||l,d=u?tt(u).description:lt().getScopeData().transactionName,f=Hn(n.target),p={[xt]:"auto.http.browser.inp",[ea]:`ui.interaction.${o}`,[Li]:n.duration},m=Km({name:f,transaction:d,attributes:p,startTime:i});m&&(m.addEvent("inp",{[Xs]:"millisecond",[Js]:e.value}),m.end(i+t))};function FW(){const e=({entries:t})=>{const n=tn(),a=n&&en(n);t.forEach(o=>{if(!nW(o)||!a)return;const i=o.interactionId;if(i!=null&&!Zl.has(i)){if(Bd.length>10){const s=Bd.shift();Zl.delete(s)}Bd.push(i),Zl.set(i,a)}})};wo("event",e),wo("first-input",e)}function jW(e,t=dw("fetch")){let n=0,a=0;function o(i){const s=i.body.length;n+=s,a++;const l={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&a<15,...e.fetchOptions};if(!t)return E1("fetch"),Pc("No fetch implementation available");try{return t(e.url,l).then(c=>(n-=s,a--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return E1("fetch"),n-=s,a--,Pc(c)}}return pH(e,o)}const HW=30,UW=50;function Gf(e,t,n,a){const o={filename:e,function:t==="<anonymous>"?yo:t,in_app:!0};return n!==void 0&&(o.lineno=n),a!==void 0&&(o.colno=a),o}const WW=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,qW=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,YW=/\((\S*)(?::(\d+))(?::(\d+))\)/,GW=e=>{const t=WW.exec(e);if(t){const[,a,o,i]=t;return Gf(a,yo,+o,+i)}const n=qW.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const s=YW.exec(n[2]);s&&(n[2]=s[1],n[3]=s[2],n[4]=s[3])}const[o,i]=vw(n[1]||yo,n[2]);return Gf(i,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},KW=[HW,GW],XW=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,JW=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,QW=e=>{const t=XW.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=JW.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let a=t[3],o=t[1]||yo;return[o,a]=vw(o,a),Gf(a,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},ZW=[UW,QW],eq=[KW,ZW],tq=j4(...eq),vw=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,a=e.indexOf("safari-web-extension")!==-1;return n||a?[e.indexOf("@")!==-1?e.split("@")[0]:yo,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Un=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Nl=1024,nq="Breadcrumbs",rq=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:nq,setup(n){t.console&&RH(sq(n)),t.dom&&uw(iq(n,t.dom)),t.xhr&&fw(lq(n)),t.fetch&&U3(cq(n)),t.history&&Cu(uq(n)),t.sentry&&n.on("beforeSendEvent",oq(n))}}},aq=rq;function oq(e){return function(n){Qe()===e&&Ia({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Ka(n)},{event:n})}}function iq(e,t){return function(a){if(Qe()!==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>Nl&&(Un&&ke.warn(`\`dom.maxStringLength\` cannot exceed ${Nl}, but a value of ${l} was configured. Sentry will use ${Nl} instead.`),l=Nl),typeof s=="string"&&(s=[s]);try{const u=a.event,d=dq(u)?u.target:u;o=Hn(d,{keyAttrs:s,maxStringLength:l}),i=K4(d)}catch{o="<unknown>"}if(o.length===0)return;const c={category:`ui.${a.name}`,message:o};i&&(c.data={"ui.component_name":i}),Ia(c,{event:a.event,name:a.name,global:a.global})}}function sq(e){return function(n){if(Qe()!==e)return;const a={category:"console",data:{arguments:n.args,logger:"console"},level:$3(n.level),message:$0(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)a.message=`Assertion failed: ${$0(n.args.slice(1)," ")||"console.assert"}`,a.data.arguments=n.args.slice(1);else return;Ia(a,{input:n.args,level:n.level})}}function lq(e){return function(n){if(Qe()!==e)return;const{startTimestamp:a,endTimestamp:o}=n,i=n.xhr[eo];if(!a||!o||!i)return;const{method:s,url:l,status_code:c,body:u}=i,d={method:s,url:l,status_code:c},f={xhr:n.xhr,input:u,startTimestamp:a,endTimestamp:o},p={category:"xhr",data:d,type:"http",level:H3(c)};e.emit("beforeOutgoingRequestBreadcrumb",p,f),Ia(p,f)}}function cq(e){return function(n){if(Qe()!==e)return;const{startTimestamp:a,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const i=n.fetchData,s={data:n.error,input:n.args,startTimestamp:a,endTimestamp:o},l={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",l,s),Ia(l,s)}else{const i=n.response,s={...n.fetchData,status_code:i?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,i?.status;const l={input:n.args,response:i,startTimestamp:a,endTimestamp:o},c={category:"fetch",data:s,type:"http",level:H3(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,l),Ia(c,l)}}}function uq(e){return function(n){if(Qe()!==e)return;let a=n.from,o=n.to;const i=uo(at.location.href);let s=a?uo(a):void 0;const l=uo(o);s?.path||(s=i),i.protocol===l.protocol&&i.host===l.host&&(o=l.relative),i.protocol===s.protocol&&i.host===s.host&&(a=s.relative),Ia({category:"navigation",data:{from:a,to:o}})}}function dq(e){return!!e&&!!e.target}const fq=["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"],pq="BrowserApiErrors",mq=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:pq,setupOnce(){t.setTimeout&&wn(at,"setTimeout",P1),t.setInterval&&wn(at,"setInterval",P1),t.requestAnimationFrame&&wn(at,"requestAnimationFrame",vq),t.XMLHttpRequest&&"XMLHttpRequest"in at&&wn(XMLHttpRequest.prototype,"send",gq);const n=t.eventTarget;n&&(Array.isArray(n)?n:fq).forEach(o=>yq(o,t))}}},hq=mq;function P1(e){return function(...t){const n=t[0];return t[0]=Si(n,{mechanism:{data:{function:Qr(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function vq(e){return function(t){return e.apply(this,[Si(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Qr(e)},handled:!1,type:"instrument"}})])}}function gq(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&wn(n,o,function(i){const s={mechanism:{data:{function:o,handler:Qr(i)},handled:!1,type:"instrument"}},l=Om(i);return l&&(s.mechanism.data.handler=Qr(l)),Si(i,s)})}),e.apply(this,t)}}function yq(e,t){const a=at[e]?.prototype;a?.hasOwnProperty?.("addEventListener")&&(wn(a,"addEventListener",function(o){return function(i,s,l){try{bq(s)&&(s.handleEvent=Si(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Qr(s),target:e},handled:!1,type:"instrument"}}))}catch{}return t.unregisterOriginalCallbacks&&wq(this,i,s),o.apply(this,[i,Si(s,{mechanism:{data:{function:"addEventListener",handler:Qr(s),target:e},handled:!1,type:"instrument"}}),l])}}),wn(a,"removeEventListener",function(o){return function(i,s,l){try{const c=s.__sentry_wrapped__;c&&o.call(this,i,c,l)}catch{}return o.call(this,i,s,l)}}))}function bq(e){return typeof e.handleEvent=="function"}function wq(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const kq=()=>({name:"BrowserSession",setupOnce(){if(typeof at.document>"u"){Un&&ke.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}i1({ignoreDuration:!0}),s1(),Cu(({from:e,to:t})=>{e!==void 0&&e!==t&&(i1({ignoreDuration:!0}),s1())})}}),_q="GlobalHandlers",Sq=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:_q,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(xq(n),A1("onerror")),t.onunhandledrejection&&(Eq(n),A1("onunhandledrejection"))}}},Cq=Sq;function xq(e){H4(t=>{const{stackParser:n,attachStacktrace:a}=gw();if(Qe()!==e||q3())return;const{msg:o,url:i,line:s,column:l,error:c}=t,u=Aq(Wm(n,c||o,void 0,a,!1),i,s,l);u.level="error",C3(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function Eq(e){U4(t=>{const{stackParser:n,attachStacktrace:a}=gw();if(Qe()!==e||q3())return;const o=Tq(t),i=Cs(o)?Pq(o):Wm(n,o,void 0,a,!0);i.level="error",C3(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Tq(e){if(Cs(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Pq(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Aq(e,t,n,a){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},l=s.stacktrace=s.stacktrace||{},c=l.frames=l.frames||[],u=a,d=n,f=Ur(t)&&t.length>0?t:Oi();return c.length===0&&c.push({colno:u,filename:f,function:yo,in_app:!0,lineno:d}),e}function A1(e){Un&&ke.log(`Global Handler attached: ${e}`)}function gw(){return Qe()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Iq=()=>({name:"HttpContext",preprocessEvent(e){if(!at.navigator&&!at.location&&!at.document)return;const t=jm(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),Mq="cause",Nq=5,Oq="LinkedErrors",Bq=(e={})=>{const t=e.limit||Nq,n=e.key||Mq;return{name:Oq,preprocessEvent(a,o,i){const s=i.getOptions();DH(Hm,s.stackParser,n,t,a,o)}}},Lq=Bq;function Dq(){return Rq()?(Un&&ia(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function Rq(){if(typeof at.window>"u")return!1;const e=at;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=Oi(),a=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(at===at.top&&a.some(i=>n.startsWith(`${i}://`)))}function yw(e){return[PH(),CH(),hq(),aq(),Cq(),Lq(),FH(),Iq(),kq()]}function $q(e={}){const t=!e.skipBrowserExtensionCheck&&Dq(),n={...e,enabled:t?!1:e.enabled,stackParser:qV(e.stackParser||tq),integrations:Kj({integrations:e.integrations,defaultIntegrations:e.defaultIntegrations==null?yw():e.defaultIntegrations}),transport:e.transport||jW};return iH(xU,n)}const bt=rt,Xm="sentryReplaySession",zq="replay_event",Jm="Unable to send Replay",Vq=3e5,Fq=9e5,jq=5e3,Hq=5500,Uq=6e4,Wq=5e3,qq=3,I1=15e4,Ol=5e3,Yq=3e3,Gq=300,Qm=2e7,Kq=4999,Xq=15e3,M1=36e5;var Jq=Object.defineProperty,Qq=(e,t,n)=>t in e?Jq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N1=(e,t,n)=>Qq(e,typeof t!="symbol"?t+"":t,n),Yt=(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",e))(Yt||{});function Zq(e){return e.nodeType===e.ELEMENT_NODE}function cs(e){return e?.host?.shadowRoot===e}function us(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function eY(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function tY(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 Lc(e){try{const t=e.rules||e.cssRules;return t?eY(Array.from(t,bw).join("")):null}catch{return null}}function nY(e){let t="";for(let n=0;n<e.style.length;n++){const a=e.style,o=a[n],i=a.getPropertyPriority(o);t+=`${o}:${a.getPropertyValue(o)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}function bw(e){let t;if(aY(e))try{t=Lc(e.styleSheet)||tY(e)}catch{}else if(oY(e)){let n=e.cssText;const a=e.selectorText.includes(":"),o=typeof e.style.all=="string"&&e.style.all;if(o&&(n=nY(e)),a&&(n=rY(n)),a||o)return n}return t||e.cssText}function rY(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function aY(e){return"styleSheet"in e}function oY(e){return"selectorText"in e}class ww{constructor(){N1(this,"idNodeMap",new Map),N1(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-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(a=>this.removeNodeFromMap(a))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const a=n.id;this.idNodeMap.set(a,t),this.nodeMetaMap.set(t,n)}replace(t,n){const a=this.getNode(t);if(a){const o=this.nodeMetaMap.get(a);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function iY(){return new ww}function xu({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 Ts({isMasked:e,element:t,value:n,maskInputFn:a}){let o=n||"";return e?(a&&(o=a(o,t)),"*".repeat(o.length)):o}function xi(e){return e.toLowerCase()}function Kf(e){return e.toUpperCase()}const O1="__rrweb_original__";function sY(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let a=0;a<e.width;a+=n)for(let o=0;o<e.height;o+=n){const i=t.getImageData,s=O1 in i?i[O1]:i;if(new Uint32Array(s.call(t,a,o,Math.min(n,e.width-a),Math.min(n,e.height-o)).data.buffer).some(c=>c!==0))return!1}return!0}function Zm(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?xi(t):null}function Dc(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function kw(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const a=/\.([0-9a-z]+)(?:$)/i;return n.pathname.match(a)?.[1]??null}const B1={};function _w(e){const t=B1[e];if(t)return t;const n=window.document;let a=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const i=o.contentWindow;i&&i[e]&&(a=i[e]),n.head.removeChild(o)}catch{}return B1[e]=a.bind(window)}function Xf(...e){return _w("setTimeout")(...e)}function Sw(...e){return _w("clearTimeout")(...e)}function Cw(e){try{return e.contentDocument}catch{}}let lY=1;const cY=new RegExp("[^a-z0-9-_:]"),Ps=-2;function eh(){return lY++}function uY(e){if(e instanceof HTMLFormElement)return"form";const t=xi(e.tagName);return cY.test(t)?"div":t}function dY(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let zo,L1;const fY=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,pY=/^(?:[a-z+]+:)?\/\//i,mY=/^www\..*/i,hY=/^(data:)([^,]*),(.*)/i;function Rc(e,t){return(e||"").replace(fY,(n,a,o,i,s,l)=>{const c=o||s||l,u=a||i||"";if(!c)return n;if(pY.test(c)||mY.test(c))return`url(${u}${c}${u})`;if(hY.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${dY(t)+c}${u})`;const d=t.split("/"),f=c.split("/");d.pop();for(const p of f)p!=="."&&(p===".."?d.pop():d.push(p));return`url(${u}${d.join("/")}${u})`})}const vY=/^[^ \t\n\r\u000c]+/,gY=/^[, \t\n\r\u000c]+/;function yY(e,t){if(t.trim()==="")return t;let n=0;function a(i){let s;const l=i.exec(t.substring(n));return l?(s=l[0],n+=s.length,s):""}const o=[];for(;a(gY),!(n>=t.length);){let i=a(vY);if(i.slice(-1)===",")i=qo(e,i.substring(0,i.length-1)),o.push(i);else{let s="";i=qo(e,i);let l=!1;for(;;){const c=t.charAt(n);if(c===""){o.push((i+s).trim());break}else if(l)c===")"&&(l=!1);else if(c===","){n+=1,o.push((i+s).trim());break}else c==="("&&(l=!0);s+=c,n+=1}}}return o.join(", ")}const D1=new WeakMap;function qo(e,t){return!t||t.trim()===""?t:Eu(e,t)}function bY(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Eu(e,t){let n=D1.get(e);if(n||(n=e.createElement("a"),D1.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function xw(e,t,n,a,o,i){return a&&(n==="src"||n==="href"&&!(t==="use"&&a[0]==="#")||n==="xlink:href"&&a[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?qo(e,a):n==="srcset"?yY(e,a):n==="style"?Rc(a,Eu(e)):t==="object"&&n==="data"?qo(e,a):typeof i=="function"?i(n,a,o):a)}function Ew(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function Tw(e,t,n,a){try{if(a&&e.matches(a))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 wY(e,t){for(let n=e.classList.length;n--;){const a=e.classList[n];if(t.test(a))return!0}return!1}function to(e,t,n=1/0,a=0){return!e||e.nodeType!==e.ELEMENT_NODE||a>n?-1:t(e)?a:to(e.parentNode,t,n,a+1)}function Yo(e,t){return n=>{const a=n;if(a===null)return!1;try{if(e){if(typeof e=="string"){if(a.matches(`.${e}`))return!0}else if(wY(a,e))return!0}return!!(t&&a.matches(t))}catch{return!1}}}function Ei(e,t,n,a,o,i){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(s===null)return!1;if(s.tagName==="INPUT"){const u=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let l=-1,c=-1;if(i){if(c=to(s,Yo(a,o)),c<0)return!0;l=to(s,Yo(t,n),c>=0?c:1/0)}else{if(l=to(s,Yo(t,n)),l<0)return!1;c=to(s,Yo(a,o),l>=0?l:1/0)}return l>=0?c>=0?l<=c:!0:c>=0?!1:!!i}catch{}return!!i}function kY(e,t,n){const a=e.contentWindow;if(!a)return;let o=!1,i;try{i=a.document.readyState}catch{return}if(i!=="complete"){const l=Xf(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{Sw(l),o=!0,t()});return}const s="about:blank";if(a.location.href!==s||e.src===s||e.src==="")return Xf(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function _Y(e,t,n){let a=!1,o;try{o=e.sheet}catch{return}if(o)return;const i=Xf(()=>{a||(t(),a=!0)},n);e.addEventListener("load",()=>{Sw(i),a=!0,t()})}function SY(e,t){const{doc:n,mirror:a,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:v={},maskTextFn:y,maskInputFn:w,dataURLOptions:b={},inlineImages:E,recordCanvas:_,keepIframeSrcFn:g,newlyAddedElement:x=!1}=t,C=CY(n,a);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Yt.Document,childNodes:[],compatMode:e.compatMode}:{type:Yt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Yt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return EY(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:m,maskAttributeFn:c,maskInputOptions:v,maskInputFn:w,dataURLOptions:b,inlineImages:E,recordCanvas:_,keepIframeSrcFn:g,newlyAddedElement:x,rootId:C,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p});case e.TEXT_NODE:return xY(e,{doc:n,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskTextFn:y,maskInputOptions:v,maskInputFn:w,rootId:C});case e.CDATA_SECTION_NODE:return{type:Yt.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:Yt.Comment,textContent:e.textContent||"",rootId:C};default:return!1}}function CY(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function xY(e,t){const{maskAllText:n,maskTextClass:a,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:l,maskInputOptions:c,maskInputFn:u,rootId:d}=t,f=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const m=f==="STYLE"?!0:void 0,v=f==="SCRIPT"?!0:void 0,y=f==="TEXTAREA"?!0:void 0;if(m&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=Lc(e.parentNode.sheet))}catch(b){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${b}`,e)}p=Rc(p,Eu(t.doc))}v&&(p="SCRIPT_PLACEHOLDER");const w=Ei(e,a,i,o,s,n);if(!m&&!v&&!y&&p&&w&&(p=l?l(p,e.parentElement):p.replace(/[\S]/g,"*")),y&&p&&(c.textarea||w)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),f==="OPTION"&&p){const b=xu({type:null,tagName:f,maskInputOptions:c});p=Ts({isMasked:Ei(e,a,i,o,s,b),element:e,value:p,maskInputFn:u})}return{type:Yt.Text,textContent:p||"",isStyle:m,rootId:d}}function EY(e,t){const{doc:n,blockClass:a,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:l={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:f,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:v=!1,rootId:y,maskTextClass:w,unmaskTextClass:b,maskTextSelector:E,unmaskTextSelector:_}=t,g=Tw(e,a,o,i),x=uY(e);let C={};const P=e.attributes.length;for(let A=0;A<P;A++){const L=e.attributes[A];L.name&&!Ew(x,L.name,L.value)&&(C[L.name]=xw(n,x,xi(L.name),L.value,e,c))}if(x==="link"&&s){const A=Array.from(n.styleSheets).find(U=>U.href===e.href);let L=null;A&&(L=Lc(A)),L&&(C.rel=null,C.href=null,C.crossorigin=null,C._cssText=Rc(L,A.href))}if(x==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const A=Lc(e.sheet);A&&(C._cssText=Rc(A,Eu(n)))}if(x==="input"||x==="textarea"||x==="select"||x==="option"){const A=e,L=Zm(A),U=Dc(A,Kf(x),L),z=A.checked;if(L!=="submit"&&L!=="button"&&U){const R=Ei(A,w,E,b,_,xu({type:L,tagName:Kf(x),maskInputOptions:l}));C.value=Ts({isMasked:R,element:A,value:U,maskInputFn:u})}z&&(C.checked=z)}if(x==="option"&&(e.selected&&!l.select?C.selected=!0:delete C.selected),x==="canvas"&&p){if(e.__context==="2d")sY(e)||(C.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){const A=e.toDataURL(d.type,d.quality),L=n.createElement("canvas");L.width=e.width,L.height=e.height;const U=L.toDataURL(d.type,d.quality);A!==U&&(C.rr_dataURL=A)}}if(x==="img"&&f){zo||(zo=n.createElement("canvas"),L1=zo.getContext("2d"));const A=e,L=A.currentSrc||A.getAttribute("src")||"<unknown-src>",U=A.crossOrigin,z=()=>{A.removeEventListener("load",z);try{zo.width=A.naturalWidth,zo.height=A.naturalHeight,L1.drawImage(A,0,0),C.rr_dataURL=zo.toDataURL(d.type,d.quality)}catch(R){if(A.crossOrigin!=="anonymous"){A.crossOrigin="anonymous",A.complete&&A.naturalWidth!==0?z():A.addEventListener("load",z);return}else console.warn(`Cannot inline img src=${L}! Error: ${R}`)}A.crossOrigin==="anonymous"&&(U?C.crossOrigin=U:A.removeAttribute("crossorigin"))};A.complete&&A.naturalWidth!==0?z():A.addEventListener("load",z)}if((x==="audio"||x==="video")&&(C.rr_mediaState=e.paused?"paused":"played",C.rr_mediaCurrentTime=e.currentTime),v||(e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop)),g){const{width:A,height:L}=e.getBoundingClientRect();C={class:C.class,rr_width:`${A}px`,rr_height:`${L}px`}}x==="iframe"&&!m(C.src)&&(!g&&!Cw(e)&&(C.rr_src=C.src),delete C.src);let O;try{customElements.get(x)&&(O=!0)}catch{}return{type:Yt.Element,tagName:x,attributes:C,childNodes:[],isSVG:bY(e)||void 0,needBlock:g,rootId:y,isCustom:O}}function yt(e){return e==null?"":e.toLowerCase()}function TY(e,t){if(t.comment&&e.type===Yt.Comment)return!0;if(e.type===Yt.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&kw(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(yt(e.attributes.name).match(/^msapplication-tile(image|color)$/)||yt(e.attributes.name)==="application-name"||yt(e.attributes.rel)==="icon"||yt(e.attributes.rel)==="apple-touch-icon"||yt(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&yt(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(yt(e.attributes.property).match(/^(og|twitter|fb):/)||yt(e.attributes.name).match(/^(og|twitter):/)||yt(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(yt(e.attributes.name)==="robots"||yt(e.attributes.name)==="googlebot"||yt(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(yt(e.attributes.name)==="author"||yt(e.attributes.name)==="generator"||yt(e.attributes.name)==="framework"||yt(e.attributes.name)==="publisher"||yt(e.attributes.name)==="progid"||yt(e.attributes.property).match(/^article:/)||yt(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(yt(e.attributes.name)==="google-site-verification"||yt(e.attributes.name)==="yandex-verification"||yt(e.attributes.name)==="csrf-token"||yt(e.attributes.name)==="p:domain_verify"||yt(e.attributes.name)==="verify-v1"||yt(e.attributes.name)==="verification"||yt(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Go(e,t){const{doc:n,mirror:a,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,skipChild:p=!1,inlineStylesheet:m=!0,maskInputOptions:v={},maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:E,dataURLOptions:_={},inlineImages:g=!1,recordCanvas:x=!1,onSerialize:C,onIframeLoad:P,iframeLoadTimeout:O=5e3,onStylesheetLoad:A,stylesheetLoadTimeout:L=5e3,keepIframeSrcFn:U=()=>!1,newlyAddedElement:z=!1}=t;let{preserveWhiteSpace:R=!0}=t;const I=SY(e,{doc:n,mirror:a,blockClass:o,blockSelector:i,maskAllText:l,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:v,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,dataURLOptions:_,inlineImages:g,recordCanvas:x,keepIframeSrcFn:U,newlyAddedElement:z});if(!I)return console.warn(e,"not serialized"),null;let B;a.hasNode(e)?B=a.getId(e):TY(I,E)||!R&&I.type===Yt.Text&&!I.isStyle&&!I.textContent.replace(/^\s+|\s+$/gm,"").length?B=Ps:B=eh();const M=Object.assign(I,{id:B});if(a.add(e,M),B===Ps)return null;C&&C(e);let $=!p;if(M.type===Yt.Element){$=$&&!M.needBlock,delete M.needBlock;const K=e.shadowRoot;K&&us(K)&&(M.isShadowHost=!0)}if((M.type===Yt.Document||M.type===Yt.Element)&&$){E.headWhitespace&&M.type===Yt.Element&&M.tagName==="head"&&(R=!1);const K={doc:n,mirror:a,blockClass:o,blockSelector:i,maskAllText:l,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,skipChild:p,inlineStylesheet:m,maskInputOptions:v,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:E,dataURLOptions:_,inlineImages:g,recordCanvas:x,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:P,iframeLoadTimeout:O,onStylesheetLoad:A,stylesheetLoadTimeout:L,keepIframeSrcFn:U};for(const V of Array.from(e.childNodes)){const Z=Go(V,K);Z&&M.childNodes.push(Z)}if(Zq(e)&&e.shadowRoot)for(const V of Array.from(e.shadowRoot.childNodes)){const Z=Go(V,K);Z&&(us(e.shadowRoot)&&(Z.isShadow=!0),M.childNodes.push(Z))}}return e.parentNode&&cs(e.parentNode)&&us(e.parentNode)&&(M.isShadow=!0),M.type===Yt.Element&&M.tagName==="iframe"&&!Tw(e,o,i,s)&&kY(e,()=>{const K=Cw(e);if(K&&P){const V=Go(K,{doc:K,mirror:a,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:m,maskInputOptions:v,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:E,dataURLOptions:_,inlineImages:g,recordCanvas:x,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:P,iframeLoadTimeout:O,onStylesheetLoad:A,stylesheetLoadTimeout:L,keepIframeSrcFn:U});V&&P(e,V)}},O),M.type===Yt.Element&&M.tagName==="link"&&typeof M.attributes.rel=="string"&&(M.attributes.rel==="stylesheet"||M.attributes.rel==="preload"&&typeof M.attributes.href=="string"&&kw(M.attributes.href)==="css")&&_Y(e,()=>{if(A){const K=Go(e,{doc:n,mirror:a,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:m,maskInputOptions:v,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:E,dataURLOptions:_,inlineImages:g,recordCanvas:x,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:P,iframeLoadTimeout:O,onStylesheetLoad:A,stylesheetLoadTimeout:L,keepIframeSrcFn:U});K&&A(e,K)}},L),M}function PY(e,t){const{mirror:n=new ww,blockClass:a="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:l="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:d=null,inlineStylesheet:f=!0,inlineImages:p=!1,recordCanvas:m=!1,maskAllInputs:v=!1,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOM:E=!1,dataURLOptions:_,preserveWhiteSpace:g,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:P,onStylesheetLoad:O,stylesheetLoadTimeout:A,keepIframeSrcFn:L=()=>!1}=t||{};return Go(e,{doc:e,mirror:n,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:v===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:v===!1?{}:v,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:E===!0||E==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:E==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:E===!1?{}:E,dataURLOptions:_,inlineImages:p,recordCanvas:m,preserveWhiteSpace:g,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:P,onStylesheetLoad:O,stylesheetLoadTimeout:A,keepIframeSrcFn:L,newlyAddedElement:!1})}function pn(e,t,n=document){const a={capture:!0,passive:!0};return n.addEventListener(e,t,a),()=>n.removeEventListener(e,t,a)}const Fo=`Please stop import mirror directly. Instead of that,\r
667
+ Error:`,o)}}function XU(){return LU(e=>{zi("cls",{metric:e}),Q3=e},{reportAllChanges:!0})}function JU(){return RU(e=>{zi("fid",{metric:e}),Z3=e})}function QU(){return qU(e=>{zi("lcp",{metric:e}),ew=e},{reportAllChanges:!0})}function ZU(){return GU(e=>{zi("ttfb",{metric:e}),tw=e})}function eW(){return HU(e=>{zi("inp",{metric:e}),nw=e})}function tl(e,t,n,a,o=!1){ow(e,t);let i;return Oc[e]||(i=n(),Oc[e]=!0),a&&t({metric:a}),iw(e,t,o?i:void 0)}function tW(e){const t={};e==="event"&&(t.durationThreshold=0),Po(e,n=>{zi(e,{entries:n})},t)}function ow(e,t){ls[e]=ls[e]||[],ls[e].push(t)}function iw(e,t,n){return()=>{n&&n();const a=ls[e];if(!a)return;const o=a.indexOf(t);o!==-1&&a.splice(o,1)}}function nW(e){return"duration"in e}function Nd(e){return typeof e=="number"&&isFinite(e)}function aa(e,t,n,{...a}){const o=tt(e).start_timestamp;return o&&o>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Vm(e,()=>{const i=Pa({startTime:t,...a});return i&&i.end(n),i})}function Km(e){const t=Qe();if(!t)return;const{name:n,transaction:a,attributes:o,startTime:i}=e,{release:s,environment:l,sendDefaultPii:c}=t.getOptions(),d=t.getIntegrationByName("Replay")?.getReplayId(),f=lt(),p=f.getUser(),m=p!==void 0?p.email||p.id||p.ip_address:void 0;let g;try{g=f.getScopeData().contexts.profile.profile_id}catch{}const y={release:s,environment:l,user:m||void 0,profile_id:g||void 0,replay_id:d||void 0,transaction:a,"user_agent.original":qe.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...o};return Pa({name:n,attributes:y,startTime:i,experimental:{standalone:!0}})}function Su(){return qe.addEventListener&&qe.performance}function Ct(e){return e/1e3}function sw(e){let t="unknown",n="unknown",a="";for(const o of e){if(o==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t=a==="h"?"http":a,n=e.split(a)[1];break}a+=o}return a===e&&(t=a),{name:t,version:n}}function lw(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function cw(e,t){let n,a=!1;function o(l){!a&&n&&t(l,n),a=!0}_u(()=>{o("pagehide")});const i=e.on("beforeStartNavigationSpan",(l,c)=>{c?.isRedirect||(o("navigation"),i?.(),s?.())}),s=e.on("afterStartPageLoadSpan",l=>{n=l.spanContext().spanId,s?.()})}function rW(e){let t=0,n;if(!lw("layout-shift"))return;const a=Ym(({metric:o})=>{const i=o.entries[o.entries.length-1];i&&(t=o.value,n=i)},!0);cw(e,(o,i)=>{aW(t,n,i,o),a()})}function aW(e,t,n,a){Ci&&ke.log(`Sending CLS span (${e})`);const o=Ct((hn()||0)+(t?.startTime||0)),i=lt().getScopeData().transactionName,s=t?Hn(t.sources[0]?.node):"Layout shift",l={[xt]:"auto.http.browser.cls",[ea]:"ui.webvital.cls",[Li]:t?.duration||0,"sentry.pageload.span_id":n,"sentry.report_event":a};t?.sources&&t.sources.forEach((u,d)=>{l[`cls.source.${d+1}`]=Hn(u.node)});const c=Km({name:s,transaction:i,attributes:l,startTime:o});c&&(c.addEvent("cls",{[Xs]:"",[Js]:e}),c.end(o))}function oW(e){let t=0,n;if(!lw("largest-contentful-paint"))return;const a=Gm(({metric:o})=>{const i=o.entries[o.entries.length-1];i&&(t=o.value,n=i)},!0);cw(e,(o,i)=>{iW(t,n,i,o),a()})}function iW(e,t,n,a){Ci&&ke.log(`Sending LCP span (${e})`);const o=Ct((hn()||0)+(t?.startTime||0)),i=lt().getScopeData().transactionName,s=t?Hn(t.element):"Largest contentful paint",l={[xt]:"auto.http.browser.lcp",[ea]:"ui.webvital.lcp",[Li]:0,"sentry.pageload.span_id":n,"sentry.report_event":a};t&&(t.element&&(l["lcp.element"]=Hn(t.element)),t.id&&(l["lcp.id"]=t.id),t.url&&(l["lcp.url"]=t.url.trim().slice(0,200)),t.loadTime!=null&&(l["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(l["lcp.renderTime"]=t.renderTime),t.size!=null&&(l["lcp.size"]=t.size));const c=Km({name:s,transaction:i,attributes:l,startTime:o});c&&(c.addEvent("lcp",{[Xs]:"millisecond",[Js]:e}),c.end(o))}const sW=2147483647;let S1=0,Qt={},gn,Bc;function lW({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const a=Su();if(a&&hn()){a.mark&&qe.performance.mark("sentry-tracing-init");const o=mW(),i=t?oW(n):pW(),s=hW(),l=e?rW(n):fW();return()=>{o(),i?.(),s(),l?.()}}return()=>{}}function cW(){wo("longtask",({entries:e})=>{const t=tn();if(!t)return;const{op:n,start_timestamp:a}=tt(t);for(const o of e){const i=Ct(hn()+o.startTime),s=Ct(o.duration);n==="navigation"&&a&&i<a||aa(t,i,i+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[xt]:"auto.ui.browser.metrics"}})}})}function uW(){new PerformanceObserver(t=>{const n=tn();if(n)for(const a of t.getEntries()){if(!a.scripts[0])continue;const o=Ct(hn()+a.startTime),{start_timestamp:i,op:s}=tt(n);if(s==="navigation"&&i&&o<i)continue;const l=Ct(a.duration),c={[xt]:"auto.ui.browser.metrics"},u=a.scripts[0],{invoker:d,invokerType:f,sourceURL:p,sourceFunctionName:m,sourceCharPosition:g}=u;c["browser.script.invoker"]=d,c["browser.script.invoker_type"]=f,p&&(c["code.filepath"]=p),m&&(c["code.function"]=m),g!==-1&&(c["browser.script.source_char_position"]=g),aa(n,o,o+l,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function dW(){wo("event",({entries:e})=>{const t=tn();if(t){for(const n of e)if(n.name==="click"){const a=Ct(hn()+n.startTime),o=Ct(n.duration),i={name:Hn(n.target),op:`ui.interaction.${n.name}`,startTime:a,attributes:{[xt]:"auto.ui.browser.metrics"}},s=K4(n.target);s&&(i.attributes["ui.component_name"]=s),aa(t,a,a+o,i)}}})}function fW(){return Ym(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Qt.cls={value:e.value,unit:""},Bc=t)},!0)}function pW(){return Gm(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Qt.lcp={value:e.value,unit:"millisecond"},gn=t)},!0)}function mW(){return rw(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Ct(hn()),a=Ct(t.startTime);Qt.fid={value:e.value,unit:"millisecond"},Qt["mark.fid"]={value:n+a,unit:"second"}})}function hW(){return KU(({metric:e})=>{e.entries[e.entries.length-1]&&(Qt.ttfb={value:e.value,unit:"millisecond"})})}function vW(e,t){const n=Su(),a=hn();if(!n?.getEntries||!a)return;const o=Ct(a),i=n.getEntries(),{op:s,start_timestamp:l}=tt(e);if(i.slice(S1).forEach(c=>{const u=Ct(c.startTime),d=Ct(Math.max(0,c.duration));if(!(s==="navigation"&&l&&o+u<l))switch(c.entryType){case"navigation":{bW(e,c,o);break}case"mark":case"paint":case"measure":{gW(e,c,u,d,o,t.ignorePerformanceApiSpans);const f=ku(),p=c.startTime<f.firstHiddenTime;c.name==="first-paint"&&p&&(Qt.fp={value:c.startTime,unit:"millisecond"}),c.name==="first-contentful-paint"&&p&&(Qt.fcp={value:c.startTime,unit:"millisecond"});break}case"resource":{_W(e,c,c.name,u,d,o,t.ignoreResourceSpans);break}}}),S1=Math.max(i.length-1,0),SW(e),s==="pageload"){xW(Qt);const c=Qt["mark.fid"];c&&Qt.fid&&(aa(e,c.value,c.value+Ct(Qt.fid.value),{name:"first input delay",op:"ui.action",attributes:{[xt]:"auto.ui.browser.metrics"}}),delete Qt["mark.fid"]),t.recordClsOnPageloadSpan||delete Qt.cls,t.recordLcpOnPageloadSpan||delete Qt.lcp,Object.entries(Qt).forEach(([u,d])=>{cj(u,d.value,d.unit)}),e.setAttribute("performance.timeOrigin",o),e.setAttribute("performance.activationStart",Ri()),CW(e,t)}gn=void 0,Bc=void 0,Qt={}}function gW(e,t,n,a,o,i){if(["mark","measure"].includes(t.entryType)&&Wr(t.name,i))return;const s=Zs(!1),l=Ct(s?s.requestStart:0),c=o+Math.max(n,l),u=o+n,d=u+a,f={[xt]:"auto.resource.browser.metrics"};c!==u&&(f["sentry.browser.measure_happened_before_request"]=!0,f["sentry.browser.measure_start_time"]=c),yW(f,t),c<=d&&aa(e,c,d,{name:t.name,op:t.entryType,attributes:f})}function yW(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[a,o]of Object.entries(n))if(o&&Cs(o))e[`sentry.browser.measure.detail.${a}`]=o;else if(o!==void 0)try{e[`sentry.browser.measure.detail.${a}`]=JSON.stringify(o)}catch{}return}if(Cs(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function bW(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(a=>{Il(e,t,a,n)}),Il(e,t,"secureConnection",n,"TLS/SSL"),Il(e,t,"fetch",n,"cache"),Il(e,t,"domainLookup",n,"DNS"),kW(e,t,n)}function Il(e,t,n,a,o=n){const i=wW(n),s=t[i],l=t[`${n}Start`];!l||!s||aa(e,a+Ct(l),a+Ct(s),{op:`browser.${o}`,name:t.name,attributes:{[xt]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function wW(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function kW(e,t,n){const a=n+Ct(t.requestStart),o=n+Ct(t.responseEnd),i=n+Ct(t.responseStart);t.responseEnd&&(aa(e,a,o,{op:"browser.request",name:t.name,attributes:{[xt]:"auto.ui.browser.metrics"}}),aa(e,i,o,{op:"browser.response",name:t.name,attributes:{[xt]:"auto.ui.browser.metrics"}}))}function _W(e,t,n,a,o,i,s){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const l=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(l))return;const c=uo(n),u={[xt]:"auto.resource.browser.metrics"};Od(u,t,"transferSize","http.response_transfer_size"),Od(u,t,"encodedBodySize","http.response_content_length"),Od(u,t,"decodedBodySize","http.decoded_response_content_length");const d=t.deliveryType;d!=null&&(u["http.response_delivery_type"]=d);const f=t.renderBlockingStatus;if(f&&(u["resource.render_blocking_status"]=f),c.protocol&&(u["url.scheme"]=c.protocol.split(":").pop()),c.host&&(u["server.address"]=c.host),u["url.same_origin"]=n.includes(qe.location.origin),t.nextHopProtocol!=null){const{name:g,version:y}=sw(t.nextHopProtocol);u["network.protocol.name"]=g,u["network.protocol.version"]=y}const p=i+a,m=p+o;aa(e,p,m,{name:n.replace(qe.location.origin,""),op:l,attributes:u})}function SW(e){const t=qe.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Nd(n.rtt)&&(Qt["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Nd(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Nd(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function CW(e,t){gn&&t.recordLcpOnPageloadSpan&&(gn.element&&e.setAttribute("lcp.element",Hn(gn.element)),gn.id&&e.setAttribute("lcp.id",gn.id),gn.url&&e.setAttribute("lcp.url",gn.url.trim().slice(0,200)),gn.loadTime!=null&&e.setAttribute("lcp.loadTime",gn.loadTime),gn.renderTime!=null&&e.setAttribute("lcp.renderTime",gn.renderTime),e.setAttribute("lcp.size",gn.size)),Bc?.sources&&t.recordClsOnPageloadSpan&&Bc.sources.forEach((n,a)=>e.setAttribute(`cls.source.${a+1}`,Hn(n.node)))}function Od(e,t,n,a){const o=t[n];o!=null&&o<sW&&(e[a]=o)}function xW(e){const t=Zs(!1);if(!t)return;const{responseStart:n,requestStart:a}=t;a<=n&&(e["ttfb.requestTime"]={value:n-a,unit:"millisecond"})}function EW(){return Su()&&hn()?wo("element",TW):()=>{}}const TW=({entries:e})=>{const t=tn(),n=t?en(t):void 0,a=n?tt(n).description:lt().getScopeData().transactionName;e.forEach(o=>{const i=o;if(!i.identifier)return;const s=i.name,l=i.renderTime,c=i.loadTime,[u,d]=c?[Ct(c),"load-time"]:l?[Ct(l),"render-time"]:[Ht(),"entry-emission"],f=s==="image-paint"?Ct(Math.max(0,(l??0)-(c??0))):0,p={[xt]:"auto.ui.browser.elementtiming",[ea]:"ui.elementtiming",[kn]:"component","sentry.span_start_time_source":d,"sentry.transaction_name":a,"element.id":i.id,"element.type":i.element?.tagName?.toLowerCase()||"unknown","element.size":i.naturalWidth&&i.naturalHeight?`${i.naturalWidth}x${i.naturalHeight}`:void 0,"element.render_time":l,"element.load_time":c,"element.url":i.url||void 0,"element.identifier":i.identifier,"element.paint_type":s};hj({name:`element[${i.identifier}]`,attributes:p,startTime:u,onlyIfParent:!0},m=>{m.end(u+f)})})},PW=1e3;let C1,qf,Yf;function uw(e){Ra("dom",e),$a("dom",AW)}function AW(){if(!qe.document)return;const e=Vn.bind(null,"dom"),t=x1(e,!0);qe.document.addEventListener("click",t,!1),qe.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const o=qe[n]?.prototype;o?.hasOwnProperty?.("addEventListener")&&(wn(o,"addEventListener",function(i){return function(s,l,c){if(s==="click"||s=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=u[s]=u[s]||{refCount:0};if(!d.handler){const f=x1(e);d.handler=f,i.call(this,s,f,c)}d.refCount++}catch{}return i.call(this,s,l,c)}}),wn(o,"removeEventListener",function(i){return function(s,l,c){if(s==="click"||s=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},d=u[s];d&&(d.refCount--,d.refCount<=0&&(i.call(this,s,d.handler,c),d.handler=void 0,delete u[s]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,s,l,c)}}))})}function IW(e){if(e.type!==qf)return!1;try{if(!e.target||e.target._sentryId!==Yf)return!1}catch{}return!0}function MW(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function x1(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const a=NW(n);if(MW(n.type,a))return;Bn(n,"_sentryCaptured",!0),a&&!a._sentryId&&Bn(a,"_sentryId",Nn());const o=n.type==="keypress"?"input":n.type;IW(n)||(e({event:n,name:o,global:t}),qf=n.type,Yf=a?a._sentryId:void 0),clearTimeout(C1),C1=qe.setTimeout(()=>{Yf=void 0,qf=void 0},PW)}}function NW(e){try{return e.target}catch{return null}}let Ml;function Cu(e){const t="history";Ra(t,e),$a(t,OW)}function OW(){if(qe.addEventListener("popstate",()=>{const t=qe.location.href,n=Ml;if(Ml=t,n===t)return;Vn("history",{from:n,to:t})}),!eU())return;function e(t){return function(...n){const a=n.length>2?n[2]:void 0;if(a){const o=Ml,i=BW(String(a));if(Ml=i,o===i)return t.apply(this,n);Vn("history",{from:o,to:i})}return t.apply(this,n)}}wn(qe.history,"pushState",e),wn(qe.history,"replaceState",e)}function BW(e){try{return new URL(e,qe.location.origin).toString()}catch{return e}}const Ql={};function dw(e){const t=Ql[e];if(t)return t;let n=qe[e];if(Vf(n))return Ql[e]=n.bind(qe);const a=qe.document;if(a&&typeof a.createElement=="function")try{const o=a.createElement("iframe");o.hidden=!0,a.head.appendChild(o);const i=o.contentWindow;i?.[e]&&(n=i[e]),a.head.removeChild(o)}catch(o){Ci&&ke.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(Ql[e]=n.bind(qe))}function E1(e){Ql[e]=void 0}function nl(...e){return dw("setTimeout")(...e)}const eo="__sentry_xhr_v3__";function fw(e){Ra("xhr",e),$a("xhr",LW)}function LW(){if(!qe.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,a){const o=new Error,i=Ht()*1e3,s=Ur(a[0])?a[0].toUpperCase():void 0,l=DW(a[1]);if(!s||!l)return t.apply(n,a);n[eo]={method:s,url:l,request_headers:{}},s==="POST"&&l.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[eo];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const d={endTimestamp:Ht()*1e3,startTimestamp:i,xhr:n,virtualError:o};Vn("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,d,f){return c(),u.apply(d,f)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,d,f){const[p,m]=f,g=d[eo];return g&&Ur(p)&&Ur(m)&&(g.request_headers[p.toLowerCase()]=m),u.apply(d,f)}}),t.apply(n,a)}}),e.send=new Proxy(e.send,{apply(t,n,a){const o=n[eo];if(!o)return t.apply(n,a);a[0]!==void 0&&(o.body=a[0]);const i={startTimestamp:Ht()*1e3,xhr:n};return Vn("xhr",i),t.apply(n,a)}})}function DW(e){if(Ur(e))return e;try{return e.toString()}catch{}}function pw(e){return new URLSearchParams(e).toString()}function mw(e,t=ke){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[pw(e)];if(!e)return[void 0]}catch(n){return Ci&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Ci&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function hw(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}const Bd=[],Zl=new Map,RW=60;function $W(){if(Su()&&hn()){const t=zW();return()=>{t()}}return()=>{}}const T1={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 zW(){return aw(VW)}const VW=({metric:e})=>{if(e.value==null)return;const t=Ct(e.value);if(t>RW)return;const n=e.entries.find(g=>g.duration===e.value&&T1[g.name]);if(!n)return;const{interactionId:a}=n,o=T1[n.name],i=Ct(hn()+n.startTime),s=tn(),l=s?en(s):void 0,u=(a!=null?Zl.get(a):void 0)||l,d=u?tt(u).description:lt().getScopeData().transactionName,f=Hn(n.target),p={[xt]:"auto.http.browser.inp",[ea]:`ui.interaction.${o}`,[Li]:n.duration},m=Km({name:f,transaction:d,attributes:p,startTime:i});m&&(m.addEvent("inp",{[Xs]:"millisecond",[Js]:e.value}),m.end(i+t))};function FW(){const e=({entries:t})=>{const n=tn(),a=n&&en(n);t.forEach(o=>{if(!nW(o)||!a)return;const i=o.interactionId;if(i!=null&&!Zl.has(i)){if(Bd.length>10){const s=Bd.shift();Zl.delete(s)}Bd.push(i),Zl.set(i,a)}})};wo("event",e),wo("first-input",e)}function jW(e,t=dw("fetch")){let n=0,a=0;function o(i){const s=i.body.length;n+=s,a++;const l={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&a<15,...e.fetchOptions};if(!t)return E1("fetch"),Pc("No fetch implementation available");try{return t(e.url,l).then(c=>(n-=s,a--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return E1("fetch"),n-=s,a--,Pc(c)}}return pH(e,o)}const HW=30,UW=50;function Gf(e,t,n,a){const o={filename:e,function:t==="<anonymous>"?yo:t,in_app:!0};return n!==void 0&&(o.lineno=n),a!==void 0&&(o.colno=a),o}const WW=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,qW=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,YW=/\((\S*)(?::(\d+))(?::(\d+))\)/,GW=e=>{const t=WW.exec(e);if(t){const[,a,o,i]=t;return Gf(a,yo,+o,+i)}const n=qW.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const s=YW.exec(n[2]);s&&(n[2]=s[1],n[3]=s[2],n[4]=s[3])}const[o,i]=vw(n[1]||yo,n[2]);return Gf(i,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},KW=[HW,GW],XW=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,JW=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,QW=e=>{const t=XW.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=JW.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let a=t[3],o=t[1]||yo;return[o,a]=vw(o,a),Gf(a,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},ZW=[UW,QW],eq=[KW,ZW],tq=j4(...eq),vw=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,a=e.indexOf("safari-web-extension")!==-1;return n||a?[e.indexOf("@")!==-1?e.split("@")[0]:yo,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Un=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Nl=1024,nq="Breadcrumbs",rq=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:nq,setup(n){t.console&&RH(sq(n)),t.dom&&uw(iq(n,t.dom)),t.xhr&&fw(lq(n)),t.fetch&&U3(cq(n)),t.history&&Cu(uq(n)),t.sentry&&n.on("beforeSendEvent",oq(n))}}},aq=rq;function oq(e){return function(n){Qe()===e&&Ia({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Ka(n)},{event:n})}}function iq(e,t){return function(a){if(Qe()!==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>Nl&&(Un&&ke.warn(`\`dom.maxStringLength\` cannot exceed ${Nl}, but a value of ${l} was configured. Sentry will use ${Nl} instead.`),l=Nl),typeof s=="string"&&(s=[s]);try{const u=a.event,d=dq(u)?u.target:u;o=Hn(d,{keyAttrs:s,maxStringLength:l}),i=K4(d)}catch{o="<unknown>"}if(o.length===0)return;const c={category:`ui.${a.name}`,message:o};i&&(c.data={"ui.component_name":i}),Ia(c,{event:a.event,name:a.name,global:a.global})}}function sq(e){return function(n){if(Qe()!==e)return;const a={category:"console",data:{arguments:n.args,logger:"console"},level:$3(n.level),message:$0(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)a.message=`Assertion failed: ${$0(n.args.slice(1)," ")||"console.assert"}`,a.data.arguments=n.args.slice(1);else return;Ia(a,{input:n.args,level:n.level})}}function lq(e){return function(n){if(Qe()!==e)return;const{startTimestamp:a,endTimestamp:o}=n,i=n.xhr[eo];if(!a||!o||!i)return;const{method:s,url:l,status_code:c,body:u}=i,d={method:s,url:l,status_code:c},f={xhr:n.xhr,input:u,startTimestamp:a,endTimestamp:o},p={category:"xhr",data:d,type:"http",level:H3(c)};e.emit("beforeOutgoingRequestBreadcrumb",p,f),Ia(p,f)}}function cq(e){return function(n){if(Qe()!==e)return;const{startTimestamp:a,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const i=n.fetchData,s={data:n.error,input:n.args,startTimestamp:a,endTimestamp:o},l={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",l,s),Ia(l,s)}else{const i=n.response,s={...n.fetchData,status_code:i?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,i?.status;const l={input:n.args,response:i,startTimestamp:a,endTimestamp:o},c={category:"fetch",data:s,type:"http",level:H3(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,l),Ia(c,l)}}}function uq(e){return function(n){if(Qe()!==e)return;let a=n.from,o=n.to;const i=uo(at.location.href);let s=a?uo(a):void 0;const l=uo(o);s?.path||(s=i),i.protocol===l.protocol&&i.host===l.host&&(o=l.relative),i.protocol===s.protocol&&i.host===s.host&&(a=s.relative),Ia({category:"navigation",data:{from:a,to:o}})}}function dq(e){return!!e&&!!e.target}const fq=["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"],pq="BrowserApiErrors",mq=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:pq,setupOnce(){t.setTimeout&&wn(at,"setTimeout",P1),t.setInterval&&wn(at,"setInterval",P1),t.requestAnimationFrame&&wn(at,"requestAnimationFrame",vq),t.XMLHttpRequest&&"XMLHttpRequest"in at&&wn(XMLHttpRequest.prototype,"send",gq);const n=t.eventTarget;n&&(Array.isArray(n)?n:fq).forEach(o=>yq(o,t))}}},hq=mq;function P1(e){return function(...t){const n=t[0];return t[0]=Si(n,{mechanism:{data:{function:Qr(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function vq(e){return function(t){return e.apply(this,[Si(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Qr(e)},handled:!1,type:"instrument"}})])}}function gq(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&wn(n,o,function(i){const s={mechanism:{data:{function:o,handler:Qr(i)},handled:!1,type:"instrument"}},l=Om(i);return l&&(s.mechanism.data.handler=Qr(l)),Si(i,s)})}),e.apply(this,t)}}function yq(e,t){const a=at[e]?.prototype;a?.hasOwnProperty?.("addEventListener")&&(wn(a,"addEventListener",function(o){return function(i,s,l){try{bq(s)&&(s.handleEvent=Si(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Qr(s),target:e},handled:!1,type:"instrument"}}))}catch{}return t.unregisterOriginalCallbacks&&wq(this,i,s),o.apply(this,[i,Si(s,{mechanism:{data:{function:"addEventListener",handler:Qr(s),target:e},handled:!1,type:"instrument"}}),l])}}),wn(a,"removeEventListener",function(o){return function(i,s,l){try{const c=s.__sentry_wrapped__;c&&o.call(this,i,c,l)}catch{}return o.call(this,i,s,l)}}))}function bq(e){return typeof e.handleEvent=="function"}function wq(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const kq=()=>({name:"BrowserSession",setupOnce(){if(typeof at.document>"u"){Un&&ke.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}i1({ignoreDuration:!0}),s1(),Cu(({from:e,to:t})=>{e!==void 0&&e!==t&&(i1({ignoreDuration:!0}),s1())})}}),_q="GlobalHandlers",Sq=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:_q,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(xq(n),A1("onerror")),t.onunhandledrejection&&(Eq(n),A1("onunhandledrejection"))}}},Cq=Sq;function xq(e){H4(t=>{const{stackParser:n,attachStacktrace:a}=gw();if(Qe()!==e||q3())return;const{msg:o,url:i,line:s,column:l,error:c}=t,u=Aq(Wm(n,c||o,void 0,a,!1),i,s,l);u.level="error",C3(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function Eq(e){U4(t=>{const{stackParser:n,attachStacktrace:a}=gw();if(Qe()!==e||q3())return;const o=Tq(t),i=Cs(o)?Pq(o):Wm(n,o,void 0,a,!0);i.level="error",C3(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Tq(e){if(Cs(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Pq(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Aq(e,t,n,a){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},l=s.stacktrace=s.stacktrace||{},c=l.frames=l.frames||[],u=a,d=n,f=Ur(t)&&t.length>0?t:Oi();return c.length===0&&c.push({colno:u,filename:f,function:yo,in_app:!0,lineno:d}),e}function A1(e){Un&&ke.log(`Global Handler attached: ${e}`)}function gw(){return Qe()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Iq=()=>({name:"HttpContext",preprocessEvent(e){if(!at.navigator&&!at.location&&!at.document)return;const t=jm(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),Mq="cause",Nq=5,Oq="LinkedErrors",Bq=(e={})=>{const t=e.limit||Nq,n=e.key||Mq;return{name:Oq,preprocessEvent(a,o,i){const s=i.getOptions();DH(Hm,s.stackParser,n,t,a,o)}}},Lq=Bq;function Dq(){return Rq()?(Un&&ia(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function Rq(){if(typeof at.window>"u")return!1;const e=at;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=Oi(),a=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(at===at.top&&a.some(i=>n.startsWith(`${i}://`)))}function yw(e){return[PH(),CH(),hq(),aq(),Cq(),Lq(),FH(),Iq(),kq()]}function $q(e={}){const t=!e.skipBrowserExtensionCheck&&Dq(),n={...e,enabled:t?!1:e.enabled,stackParser:qV(e.stackParser||tq),integrations:Kj({integrations:e.integrations,defaultIntegrations:e.defaultIntegrations==null?yw():e.defaultIntegrations}),transport:e.transport||jW};return iH(xU,n)}const bt=rt,Xm="sentryReplaySession",zq="replay_event",Jm="Unable to send Replay",Vq=3e5,Fq=9e5,jq=5e3,Hq=5500,Uq=6e4,Wq=5e3,qq=3,I1=15e4,Ol=5e3,Yq=3e3,Gq=300,Qm=2e7,Kq=4999,Xq=15e3,M1=36e5;var Jq=Object.defineProperty,Qq=(e,t,n)=>t in e?Jq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N1=(e,t,n)=>Qq(e,typeof t!="symbol"?t+"":t,n),Yt=(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",e))(Yt||{});function Zq(e){return e.nodeType===e.ELEMENT_NODE}function cs(e){return e?.host?.shadowRoot===e}function us(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function eY(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function tY(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 Lc(e){try{const t=e.rules||e.cssRules;return t?eY(Array.from(t,bw).join("")):null}catch{return null}}function nY(e){let t="";for(let n=0;n<e.style.length;n++){const a=e.style,o=a[n],i=a.getPropertyPriority(o);t+=`${o}:${a.getPropertyValue(o)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}function bw(e){let t;if(aY(e))try{t=Lc(e.styleSheet)||tY(e)}catch{}else if(oY(e)){let n=e.cssText;const a=e.selectorText.includes(":"),o=typeof e.style.all=="string"&&e.style.all;if(o&&(n=nY(e)),a&&(n=rY(n)),a||o)return n}return t||e.cssText}function rY(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function aY(e){return"styleSheet"in e}function oY(e){return"selectorText"in e}class ww{constructor(){N1(this,"idNodeMap",new Map),N1(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-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(a=>this.removeNodeFromMap(a))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const a=n.id;this.idNodeMap.set(a,t),this.nodeMetaMap.set(t,n)}replace(t,n){const a=this.getNode(t);if(a){const o=this.nodeMetaMap.get(a);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function iY(){return new ww}function xu({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 Ts({isMasked:e,element:t,value:n,maskInputFn:a}){let o=n||"";return e?(a&&(o=a(o,t)),"*".repeat(o.length)):o}function xi(e){return e.toLowerCase()}function Kf(e){return e.toUpperCase()}const O1="__rrweb_original__";function sY(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let a=0;a<e.width;a+=n)for(let o=0;o<e.height;o+=n){const i=t.getImageData,s=O1 in i?i[O1]:i;if(new Uint32Array(s.call(t,a,o,Math.min(n,e.width-a),Math.min(n,e.height-o)).data.buffer).some(c=>c!==0))return!1}return!0}function Zm(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?xi(t):null}function Dc(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function kw(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const a=/\.([0-9a-z]+)(?:$)/i;return n.pathname.match(a)?.[1]??null}const B1={};function _w(e){const t=B1[e];if(t)return t;const n=window.document;let a=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const i=o.contentWindow;i&&i[e]&&(a=i[e]),n.head.removeChild(o)}catch{}return B1[e]=a.bind(window)}function Xf(...e){return _w("setTimeout")(...e)}function Sw(...e){return _w("clearTimeout")(...e)}function Cw(e){try{return e.contentDocument}catch{}}let lY=1;const cY=new RegExp("[^a-z0-9-_:]"),Ps=-2;function eh(){return lY++}function uY(e){if(e instanceof HTMLFormElement)return"form";const t=xi(e.tagName);return cY.test(t)?"div":t}function dY(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let zo,L1;const fY=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,pY=/^(?:[a-z+]+:)?\/\//i,mY=/^www\..*/i,hY=/^(data:)([^,]*),(.*)/i;function Rc(e,t){return(e||"").replace(fY,(n,a,o,i,s,l)=>{const c=o||s||l,u=a||i||"";if(!c)return n;if(pY.test(c)||mY.test(c))return`url(${u}${c}${u})`;if(hY.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${dY(t)+c}${u})`;const d=t.split("/"),f=c.split("/");d.pop();for(const p of f)p!=="."&&(p===".."?d.pop():d.push(p));return`url(${u}${d.join("/")}${u})`})}const vY=/^[^ \t\n\r\u000c]+/,gY=/^[, \t\n\r\u000c]+/;function yY(e,t){if(t.trim()==="")return t;let n=0;function a(i){let s;const l=i.exec(t.substring(n));return l?(s=l[0],n+=s.length,s):""}const o=[];for(;a(gY),!(n>=t.length);){let i=a(vY);if(i.slice(-1)===",")i=qo(e,i.substring(0,i.length-1)),o.push(i);else{let s="";i=qo(e,i);let l=!1;for(;;){const c=t.charAt(n);if(c===""){o.push((i+s).trim());break}else if(l)c===")"&&(l=!1);else if(c===","){n+=1,o.push((i+s).trim());break}else c==="("&&(l=!0);s+=c,n+=1}}}return o.join(", ")}const D1=new WeakMap;function qo(e,t){return!t||t.trim()===""?t:Eu(e,t)}function bY(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Eu(e,t){let n=D1.get(e);if(n||(n=e.createElement("a"),D1.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function xw(e,t,n,a,o,i){return a&&(n==="src"||n==="href"&&!(t==="use"&&a[0]==="#")||n==="xlink:href"&&a[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?qo(e,a):n==="srcset"?yY(e,a):n==="style"?Rc(a,Eu(e)):t==="object"&&n==="data"?qo(e,a):typeof i=="function"?i(n,a,o):a)}function Ew(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function Tw(e,t,n,a){try{if(a&&e.matches(a))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 wY(e,t){for(let n=e.classList.length;n--;){const a=e.classList[n];if(t.test(a))return!0}return!1}function to(e,t,n=1/0,a=0){return!e||e.nodeType!==e.ELEMENT_NODE||a>n?-1:t(e)?a:to(e.parentNode,t,n,a+1)}function Yo(e,t){return n=>{const a=n;if(a===null)return!1;try{if(e){if(typeof e=="string"){if(a.matches(`.${e}`))return!0}else if(wY(a,e))return!0}return!!(t&&a.matches(t))}catch{return!1}}}function Ei(e,t,n,a,o,i){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(s===null)return!1;if(s.tagName==="INPUT"){const u=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let l=-1,c=-1;if(i){if(c=to(s,Yo(a,o)),c<0)return!0;l=to(s,Yo(t,n),c>=0?c:1/0)}else{if(l=to(s,Yo(t,n)),l<0)return!1;c=to(s,Yo(a,o),l>=0?l:1/0)}return l>=0?c>=0?l<=c:!0:c>=0?!1:!!i}catch{}return!!i}function kY(e,t,n){const a=e.contentWindow;if(!a)return;let o=!1,i;try{i=a.document.readyState}catch{return}if(i!=="complete"){const l=Xf(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{Sw(l),o=!0,t()});return}const s="about:blank";if(a.location.href!==s||e.src===s||e.src==="")return Xf(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function _Y(e,t,n){let a=!1,o;try{o=e.sheet}catch{return}if(o)return;const i=Xf(()=>{a||(t(),a=!0)},n);e.addEventListener("load",()=>{Sw(i),a=!0,t()})}function SY(e,t){const{doc:n,mirror:a,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:g={},maskTextFn:y,maskInputFn:w,dataURLOptions:b={},inlineImages:E,recordCanvas:_,keepIframeSrcFn:v,newlyAddedElement:x=!1}=t,C=CY(n,a);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Yt.Document,childNodes:[],compatMode:e.compatMode}:{type:Yt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Yt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return EY(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:m,maskAttributeFn:c,maskInputOptions:g,maskInputFn:w,dataURLOptions:b,inlineImages:E,recordCanvas:_,keepIframeSrcFn:v,newlyAddedElement:x,rootId:C,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p});case e.TEXT_NODE:return xY(e,{doc:n,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskTextFn:y,maskInputOptions:g,maskInputFn:w,rootId:C});case e.CDATA_SECTION_NODE:return{type:Yt.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:Yt.Comment,textContent:e.textContent||"",rootId:C};default:return!1}}function CY(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function xY(e,t){const{maskAllText:n,maskTextClass:a,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:l,maskInputOptions:c,maskInputFn:u,rootId:d}=t,f=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const m=f==="STYLE"?!0:void 0,g=f==="SCRIPT"?!0:void 0,y=f==="TEXTAREA"?!0:void 0;if(m&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=Lc(e.parentNode.sheet))}catch(b){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${b}`,e)}p=Rc(p,Eu(t.doc))}g&&(p="SCRIPT_PLACEHOLDER");const w=Ei(e,a,i,o,s,n);if(!m&&!g&&!y&&p&&w&&(p=l?l(p,e.parentElement):p.replace(/[\S]/g,"*")),y&&p&&(c.textarea||w)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),f==="OPTION"&&p){const b=xu({type:null,tagName:f,maskInputOptions:c});p=Ts({isMasked:Ei(e,a,i,o,s,b),element:e,value:p,maskInputFn:u})}return{type:Yt.Text,textContent:p||"",isStyle:m,rootId:d}}function EY(e,t){const{doc:n,blockClass:a,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:l={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:f,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:g=!1,rootId:y,maskTextClass:w,unmaskTextClass:b,maskTextSelector:E,unmaskTextSelector:_}=t,v=Tw(e,a,o,i),x=uY(e);let C={};const P=e.attributes.length;for(let A=0;A<P;A++){const L=e.attributes[A];L.name&&!Ew(x,L.name,L.value)&&(C[L.name]=xw(n,x,xi(L.name),L.value,e,c))}if(x==="link"&&s){const A=Array.from(n.styleSheets).find(U=>U.href===e.href);let L=null;A&&(L=Lc(A)),L&&(C.rel=null,C.href=null,C.crossorigin=null,C._cssText=Rc(L,A.href))}if(x==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const A=Lc(e.sheet);A&&(C._cssText=Rc(A,Eu(n)))}if(x==="input"||x==="textarea"||x==="select"||x==="option"){const A=e,L=Zm(A),U=Dc(A,Kf(x),L),z=A.checked;if(L!=="submit"&&L!=="button"&&U){const R=Ei(A,w,E,b,_,xu({type:L,tagName:Kf(x),maskInputOptions:l}));C.value=Ts({isMasked:R,element:A,value:U,maskInputFn:u})}z&&(C.checked=z)}if(x==="option"&&(e.selected&&!l.select?C.selected=!0:delete C.selected),x==="canvas"&&p){if(e.__context==="2d")sY(e)||(C.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){const A=e.toDataURL(d.type,d.quality),L=n.createElement("canvas");L.width=e.width,L.height=e.height;const U=L.toDataURL(d.type,d.quality);A!==U&&(C.rr_dataURL=A)}}if(x==="img"&&f){zo||(zo=n.createElement("canvas"),L1=zo.getContext("2d"));const A=e,L=A.currentSrc||A.getAttribute("src")||"<unknown-src>",U=A.crossOrigin,z=()=>{A.removeEventListener("load",z);try{zo.width=A.naturalWidth,zo.height=A.naturalHeight,L1.drawImage(A,0,0),C.rr_dataURL=zo.toDataURL(d.type,d.quality)}catch(R){if(A.crossOrigin!=="anonymous"){A.crossOrigin="anonymous",A.complete&&A.naturalWidth!==0?z():A.addEventListener("load",z);return}else console.warn(`Cannot inline img src=${L}! Error: ${R}`)}A.crossOrigin==="anonymous"&&(U?C.crossOrigin=U:A.removeAttribute("crossorigin"))};A.complete&&A.naturalWidth!==0?z():A.addEventListener("load",z)}if((x==="audio"||x==="video")&&(C.rr_mediaState=e.paused?"paused":"played",C.rr_mediaCurrentTime=e.currentTime),g||(e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop)),v){const{width:A,height:L}=e.getBoundingClientRect();C={class:C.class,rr_width:`${A}px`,rr_height:`${L}px`}}x==="iframe"&&!m(C.src)&&(!v&&!Cw(e)&&(C.rr_src=C.src),delete C.src);let O;try{customElements.get(x)&&(O=!0)}catch{}return{type:Yt.Element,tagName:x,attributes:C,childNodes:[],isSVG:bY(e)||void 0,needBlock:v,rootId:y,isCustom:O}}function yt(e){return e==null?"":e.toLowerCase()}function TY(e,t){if(t.comment&&e.type===Yt.Comment)return!0;if(e.type===Yt.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&kw(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(yt(e.attributes.name).match(/^msapplication-tile(image|color)$/)||yt(e.attributes.name)==="application-name"||yt(e.attributes.rel)==="icon"||yt(e.attributes.rel)==="apple-touch-icon"||yt(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&yt(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(yt(e.attributes.property).match(/^(og|twitter|fb):/)||yt(e.attributes.name).match(/^(og|twitter):/)||yt(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(yt(e.attributes.name)==="robots"||yt(e.attributes.name)==="googlebot"||yt(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(yt(e.attributes.name)==="author"||yt(e.attributes.name)==="generator"||yt(e.attributes.name)==="framework"||yt(e.attributes.name)==="publisher"||yt(e.attributes.name)==="progid"||yt(e.attributes.property).match(/^article:/)||yt(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(yt(e.attributes.name)==="google-site-verification"||yt(e.attributes.name)==="yandex-verification"||yt(e.attributes.name)==="csrf-token"||yt(e.attributes.name)==="p:domain_verify"||yt(e.attributes.name)==="verify-v1"||yt(e.attributes.name)==="verification"||yt(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Go(e,t){const{doc:n,mirror:a,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,skipChild:p=!1,inlineStylesheet:m=!0,maskInputOptions:g={},maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:E,dataURLOptions:_={},inlineImages:v=!1,recordCanvas:x=!1,onSerialize:C,onIframeLoad:P,iframeLoadTimeout:O=5e3,onStylesheetLoad:A,stylesheetLoadTimeout:L=5e3,keepIframeSrcFn:U=()=>!1,newlyAddedElement:z=!1}=t;let{preserveWhiteSpace:R=!0}=t;const I=SY(e,{doc:n,mirror:a,blockClass:o,blockSelector:i,maskAllText:l,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:g,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,dataURLOptions:_,inlineImages:v,recordCanvas:x,keepIframeSrcFn:U,newlyAddedElement:z});if(!I)return console.warn(e,"not serialized"),null;let B;a.hasNode(e)?B=a.getId(e):TY(I,E)||!R&&I.type===Yt.Text&&!I.isStyle&&!I.textContent.replace(/^\s+|\s+$/gm,"").length?B=Ps:B=eh();const M=Object.assign(I,{id:B});if(a.add(e,M),B===Ps)return null;C&&C(e);let $=!p;if(M.type===Yt.Element){$=$&&!M.needBlock,delete M.needBlock;const K=e.shadowRoot;K&&us(K)&&(M.isShadowHost=!0)}if((M.type===Yt.Document||M.type===Yt.Element)&&$){E.headWhitespace&&M.type===Yt.Element&&M.tagName==="head"&&(R=!1);const K={doc:n,mirror:a,blockClass:o,blockSelector:i,maskAllText:l,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,skipChild:p,inlineStylesheet:m,maskInputOptions:g,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:E,dataURLOptions:_,inlineImages:v,recordCanvas:x,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:P,iframeLoadTimeout:O,onStylesheetLoad:A,stylesheetLoadTimeout:L,keepIframeSrcFn:U};for(const V of Array.from(e.childNodes)){const Z=Go(V,K);Z&&M.childNodes.push(Z)}if(Zq(e)&&e.shadowRoot)for(const V of Array.from(e.shadowRoot.childNodes)){const Z=Go(V,K);Z&&(us(e.shadowRoot)&&(Z.isShadow=!0),M.childNodes.push(Z))}}return e.parentNode&&cs(e.parentNode)&&us(e.parentNode)&&(M.isShadow=!0),M.type===Yt.Element&&M.tagName==="iframe"&&!Tw(e,o,i,s)&&kY(e,()=>{const K=Cw(e);if(K&&P){const V=Go(K,{doc:K,mirror:a,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:m,maskInputOptions:g,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:E,dataURLOptions:_,inlineImages:v,recordCanvas:x,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:P,iframeLoadTimeout:O,onStylesheetLoad:A,stylesheetLoadTimeout:L,keepIframeSrcFn:U});V&&P(e,V)}},O),M.type===Yt.Element&&M.tagName==="link"&&typeof M.attributes.rel=="string"&&(M.attributes.rel==="stylesheet"||M.attributes.rel==="preload"&&typeof M.attributes.href=="string"&&kw(M.attributes.href)==="css")&&_Y(e,()=>{if(A){const K=Go(e,{doc:n,mirror:a,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:m,maskInputOptions:g,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:E,dataURLOptions:_,inlineImages:v,recordCanvas:x,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:P,iframeLoadTimeout:O,onStylesheetLoad:A,stylesheetLoadTimeout:L,keepIframeSrcFn:U});K&&A(e,K)}},L),M}function PY(e,t){const{mirror:n=new ww,blockClass:a="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:l="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:d=null,inlineStylesheet:f=!0,inlineImages:p=!1,recordCanvas:m=!1,maskAllInputs:g=!1,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOM:E=!1,dataURLOptions:_,preserveWhiteSpace:v,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:P,onStylesheetLoad:O,stylesheetLoadTimeout:A,keepIframeSrcFn:L=()=>!1}=t||{};return Go(e,{doc:e,mirror:n,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:g===!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}:g===!1?{}:g,maskAttributeFn:y,maskTextFn:w,maskInputFn:b,slimDOMOptions:E===!0||E==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:E==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:E===!1?{}:E,dataURLOptions:_,inlineImages:p,recordCanvas:m,preserveWhiteSpace:v,onSerialize:x,onIframeLoad:C,iframeLoadTimeout:P,onStylesheetLoad:O,stylesheetLoadTimeout:A,keepIframeSrcFn:L,newlyAddedElement:!1})}function pn(e,t,n=document){const a={capture:!0,passive:!0};return n.addEventListener(e,t,a),()=>n.removeEventListener(e,t,a)}const Fo=`Please stop import mirror directly. Instead of that,\r
668
668
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
669
- or you can use record.mirror to access the mirror instance during recording.`;let R1={map:{},getId(){return console.error(Fo),-1},getNode(){return console.error(Fo),null},removeNodeFromMap(){console.error(Fo)},has(){return console.error(Fo),!1},reset(){console.error(Fo)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(R1=new Proxy(R1,{get(e,t,n){return t==="map"&&console.error(Fo),Reflect.get(e,t,n)}}));function As(e,t,n={}){let a=null,o=0;return function(...i){const s=Date.now();!o&&n.leading===!1&&(o=s);const l=t-(s-o),c=this;l<=0||l>t?(a&&(LY(a),a=null),o=s,e.apply(c,i)):!a&&n.trailing!==!1&&(a=Tu(()=>{o=n.leading===!1?0:Date.now(),a=null,e.apply(c,i)},l))}}function Pw(e,t,n,a,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,a?n:{set(s){Tu(()=>{n.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>Pw(e,t,i||{},!0)}function th(e,t,n){try{if(!(t in e))return()=>{};const a=e[t],o=n(a);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:a}})),e[t]=o,()=>{e[t]=a}}catch{return()=>{}}}let $c=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||($c=()=>new Date().getTime());function Aw(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function Iw(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Mw(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Nw(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function En(e,t,n,a,o){if(!e)return!1;const i=Nw(e);if(!i)return!1;const s=Yo(t,n);if(!o){const u=a&&i.matches(a);return s(i)&&!u}const l=to(i,s);let c=-1;return l<0?!1:(a&&(c=to(i,Yo(null,a))),l>-1&&c<0?!0:l<c)}function AY(e,t){return t.getId(e)!==-1}function Ld(e,t){return t.getId(e)===Ps}function Ow(e,t){if(cs(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Ow(e.parentNode,t):!0:!0}function Jf(e){return!!e.changedTouches}function IY(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 Bw(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Lw(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Qf(e){return!!e?.shadowRoot}class MY{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let a;return n===void 0?a=this.id++:a=n,this.styleIDMap.set(t,a),this.idStyleMap.set(a,t),a}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 Dw(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function NY(e){let t=e,n;for(;n=Dw(t);)t=n;return t}function OY(e){const t=e.ownerDocument;if(!t)return!1;const n=NY(e);return t.contains(n)}function Rw(e){const t=e.ownerDocument;return t?t.contains(e)||OY(e):!1}const $1={};function nh(e){const t=$1[e];if(t)return t;const n=window.document;let a=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const i=o.contentWindow;i&&i[e]&&(a=i[e]),n.head.removeChild(o)}catch{}return $1[e]=a.bind(window)}function BY(...e){return nh("requestAnimationFrame")(...e)}function Tu(...e){return nh("setTimeout")(...e)}function LY(...e){return nh("clearTimeout")(...e)}var Ye=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Ye||{}),je=(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))(je||{}),fn=(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))(fn||{}),zr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(zr||{}),jo=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(jo||{});function rh(e){try{return e.contentDocument}catch{}}function DY(e){try{return e.contentWindow}catch{}}function z1(e){return"__ln"in e}class RY{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 a=0;a<t;a++)n=n?.next||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&z1(t.previousSibling)){const a=t.previousSibling.__ln.next;n.next=a,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,a&&(a.previous=n)}else if(t.nextSibling&&z1(t.nextSibling)&&t.nextSibling.__ln.previous){const a=t.nextSibling.__ln.previous;n.previous=a,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,a&&(a.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 V1=(e,t)=>`${e}@${t}`;class $Y{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,a=new RY,o=c=>{let u=c,d=Ps;for(;d===Ps;)u=u&&u.nextSibling,d=u&&this.mirror.getId(u);return d},i=c=>{if(!c.parentNode||!Rw(c))return;const u=cs(c.parentNode)?this.mirror.getId(Dw(c)):this.mirror.getId(c.parentNode),d=o(c);if(u===-1||d===-1)return a.addNode(c);const f=Go(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:p=>{Bw(p,this.mirror)&&!En(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(p),Lw(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),Qf(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(p,m)=>{En(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(p,m),p.contentWindow&&this.canvasManager.addWindow(p.contentWindow),this.shadowDomManager.observeAttachShadow(p))},onStylesheetLoad:(p,m)=>{this.stylesheetManager.attachLinkElement(p,m)}});f&&(t.push({parentId:u,nextId:d,node:f}),n.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)F1(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||i(c);for(const c of this.addedSet)!j1(this.droppedSet,c)&&!F1(this.removes,c,this.mirror)||j1(this.movedSet,c)?i(c):this.droppedSet.add(c);let s=null;for(;a.length;){let c=null;if(s){const u=this.mirror.getId(s.value.parentNode),d=o(s.value);u!==-1&&d!==-1&&(c=s)}if(!c){let u=a.tail;for(;u;){const d=u;if(u=u.previous,d){const f=this.mirror.getId(d.value.parentNode);if(o(d.value)===-1)continue;if(f!==-1){c=d;break}else{const m=d.value;if(m.parentNode&&m.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const v=m.parentNode.host;if(this.mirror.getId(v)!==-1){c=d;break}}}}}}if(!c){for(;a.head;)a.removeNode(a.head.value);break}s=c.previous,a.removeNode(c.value),i(c.value)}const l={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:u}=c;if(typeof u.style=="string"){const d=JSON.stringify(c.styleDiff),f=JSON.stringify(c._unchangedStyles);d.length<u.style.length&&(d+f).split("var(").length===u.style.split("var(").length&&(u.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:u}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(l))},this.processMutation=t=>{if(!Ld(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!En(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Ei(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,Nw(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let a=t.attributeName,o=t.target.getAttribute(a);if(a==="value"){const s=Zm(n),l=n.tagName;o=Dc(n,l,s);const c=xu({maskInputOptions:this.maskInputOptions,tagName:l,type:s}),u=Ei(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);o=Ts({isMasked:u,element:n,value:o,maskInputFn:this.maskInputFn})}if(En(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===t.oldValue)return;let i=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&a==="src"&&!this.keepIframeSrcFn(o))if(!rh(n))a="rr_src";else return;if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(t.target,i)),a==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!Ew(n.tagName,a)&&(i.attributes[a]=xw(this.doc,xi(n.tagName),xi(a),o,n,this.maskAttributeFn),a==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const s=this.unattachedDoc.createElement("span");t.oldValue&&s.setAttribute("style",t.oldValue);for(const l of Array.from(n.style)){const c=n.style.getPropertyValue(l),u=n.style.getPropertyPriority(l);c!==s.style.getPropertyValue(l)||u!==s.style.getPropertyPriority(l)?u===""?i.styleDiff[l]=c:i.styleDiff[l]=[c,u]:i._unchangedStyles[l]=[c,u]}for(const l of Array.from(s.style))n.style.getPropertyValue(l)===""&&(i.styleDiff[l]=!1)}break}case"childList":{if(En(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const a=this.mirror.getId(n),o=cs(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);En(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Ld(n,this.mirror)||!AY(n,this.mirror)||(this.addedSet.has(n)?(Zf(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&a===-1||Ow(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[V1(a,o)]?Zf(this.movedSet,n):this.removes.push({parentId:o,id:a,isShadow:cs(t.target)&&us(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Ld(t,this.mirror))return;this.movedSet.add(t);let a=null;n&&this.mirror.hasNode(n)&&(a=this.mirror.getId(n)),a&&a!==-1&&(this.movedMap[V1(this.mirror.getId(t),a)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);En(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(a=>this.genAdds(a)),Qf(t)&&t.shadowRoot.childNodes.forEach(a=>{this.processedNodeManager.add(a,this),this.genAdds(a,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 Zf(e,t){e.delete(t),t.childNodes.forEach(n=>Zf(e,n))}function F1(e,t,n){return e.length===0?!1:zY(e,t,n)}function zY(e,t,n){let a=t.parentNode;for(;a;){const o=n.getId(a);if(e.some(i=>i.id===o))return!0;a=a.parentNode}return!1}function j1(e,t){return e.size===0?!1:$w(e,t)}function $w(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:$w(e,n):!1}let ds;function VY(e){ds=e}function FY(){ds=void 0}const et=e=>ds?(...n)=>{try{return e(...n)}catch(a){if(ds&&ds(a)===!0)return()=>{};throw a}}:e,Ko=[];function rl(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 zw(e,t){const n=new $Y;Ko.push(n),n.init(e);let a=window.MutationObserver||window.__rrMutationObserver;const o=window?.Zone?.__symbol__?.("MutationObserver");o&&window[o]&&(a=window[o]);const i=new a(et(s=>{e.onMutation&&e.onMutation(s)===!1||n.processMutations.bind(n)(s)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function jY({mousemoveCb:e,sampling:t,doc:n,mirror:a}){if(t.mousemove===!1)return()=>{};const o=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let s=[],l;const c=As(et(f=>{const p=Date.now()-l;e(s.map(m=>(m.timeOffset-=p,m)),f),s=[],l=null}),i),u=et(As(et(f=>{const p=rl(f),{clientX:m,clientY:v}=Jf(f)?f.changedTouches[0]:f;l||(l=$c()),s.push({x:m,y:v,id:a.getId(p),timeOffset:$c()-l}),c(typeof DragEvent<"u"&&f instanceof DragEvent?je.Drag:f instanceof MouseEvent?je.MouseMove:je.TouchMove)}),o,{trailing:!1})),d=[pn("mousemove",u,n),pn("touchmove",u,n),pn("drag",u,n)];return et(()=>{d.forEach(f=>f())})}function HY({mouseInteractionCb:e,doc:t,mirror:n,blockClass:a,blockSelector:o,unblockSelector:i,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const l=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,c=[];let u=null;const d=f=>p=>{const m=rl(p);if(En(m,a,o,i,!0))return;let v=null,y=f;if("pointerType"in p){switch(p.pointerType){case"mouse":v=zr.Mouse;break;case"touch":v=zr.Touch;break;case"pen":v=zr.Pen;break}v===zr.Touch?fn[f]===fn.MouseDown?y="TouchStart":fn[f]===fn.MouseUp&&(y="TouchEnd"):zr.Pen}else Jf(p)&&(v=zr.Touch);v!==null?(u=v,(y.startsWith("Touch")&&v===zr.Touch||y.startsWith("Mouse")&&v===zr.Mouse)&&(v=null)):fn[f]===fn.Click&&(v=u,u=null);const w=Jf(p)?p.changedTouches[0]:p;if(!w)return;const b=n.getId(m),{clientX:E,clientY:_}=w;et(e)({type:fn[y],id:b,x:E,y:_,...v!==null&&{pointerType:v}})};return Object.keys(fn).filter(f=>Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&l[f]!==!1).forEach(f=>{let p=xi(f);const m=d(f);if(window.PointerEvent)switch(fn[f]){case fn.MouseDown:case fn.MouseUp:p=p.replace("mouse","pointer");break;case fn.TouchStart:case fn.TouchEnd:return}c.push(pn(p,m,t))}),et(()=>{c.forEach(f=>f())})}function Vw({scrollCb:e,doc:t,mirror:n,blockClass:a,blockSelector:o,unblockSelector:i,sampling:s}){const l=et(As(et(c=>{const u=rl(c);if(!u||En(u,a,o,i,!0))return;const d=n.getId(u);if(u===t&&t.defaultView){const f=Aw(t.defaultView);e({id:d,x:f.left,y:f.top})}else e({id:d,x:u.scrollLeft,y:u.scrollTop})}),s.scroll||100));return pn("scroll",l,t)}function UY({viewportResizeCb:e},{win:t}){let n=-1,a=-1;const o=et(As(et(()=>{const i=Iw(),s=Mw();(n!==i||a!==s)&&(e({width:Number(s),height:Number(i)}),n=i,a=s)}),200));return pn("resize",o,t)}const WY=["INPUT","TEXTAREA","SELECT"],H1=new WeakMap;function qY({inputCb:e,doc:t,mirror:n,blockClass:a,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:l,maskInputOptions:c,maskInputFn:u,sampling:d,userTriggeredOnInput:f,maskTextClass:p,unmaskTextClass:m,maskTextSelector:v,unmaskTextSelector:y}){function w(P){let O=rl(P);const A=P.isTrusted,L=O&&Kf(O.tagName);if(L==="OPTION"&&(O=O.parentElement),!O||!L||WY.indexOf(L)<0||En(O,a,o,i,!0))return;const U=O;if(U.classList.contains(s)||l&&U.matches(l))return;const z=Zm(O);let R=Dc(U,L,z),I=!1;const B=xu({maskInputOptions:c,tagName:L,type:z}),M=Ei(O,p,v,m,y,B);(z==="radio"||z==="checkbox")&&(I=O.checked),R=Ts({isMasked:M,element:O,value:R,maskInputFn:u}),b(O,f?{text:R,isChecked:I,userTriggered:A}:{text:R,isChecked:I});const $=O.name;z==="radio"&&$&&I&&t.querySelectorAll(`input[type="radio"][name="${$}"]`).forEach(K=>{if(K!==O){const V=Ts({isMasked:M,element:K,value:Dc(K,L,z),maskInputFn:u});b(K,f?{text:V,isChecked:!I,userTriggered:!1}:{text:V,isChecked:!I})}})}function b(P,O){const A=H1.get(P);if(!A||A.text!==O.text||A.isChecked!==O.isChecked){H1.set(P,O);const L=n.getId(P);et(e)({...O,id:L})}}const _=(d.input==="last"?["change"]:["input","change"]).map(P=>pn(P,et(w),t)),g=t.defaultView;if(!g)return()=>{_.forEach(P=>P())};const x=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),C=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];return x&&x.set&&_.push(...C.map(P=>Pw(P[0],P[1],{set(){et(w)({target:this,isTrusted:!1})}},!1,g))),et(()=>{_.forEach(P=>P())})}function zc(e){const t=[];function n(a,o){if(Bl("CSSGroupingRule")&&a.parentRule instanceof CSSGroupingRule||Bl("CSSMediaRule")&&a.parentRule instanceof CSSMediaRule||Bl("CSSSupportsRule")&&a.parentRule instanceof CSSSupportsRule||Bl("CSSConditionRule")&&a.parentRule instanceof CSSConditionRule){const s=Array.from(a.parentRule.cssRules).indexOf(a);o.unshift(s)}else if(a.parentStyleSheet){const s=Array.from(a.parentStyleSheet.cssRules).indexOf(a);o.unshift(s)}return o}return n(e,t)}function da(e,t,n){let a,o;return e?(e.ownerNode?a=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:a}):{}}function YY({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:a}){if(!a.CSSStyleSheet||!a.CSSStyleSheet.prototype)return()=>{};const o=a.CSSStyleSheet.prototype.insertRule;a.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:et((d,f,p)=>{const[m,v]=p,{id:y,styleId:w}=da(f,t,n.styleMirror);return(y&&y!==-1||w&&w!==-1)&&e({id:y,styleId:w,adds:[{rule:m,index:v}]}),d.apply(f,p)})});const i=a.CSSStyleSheet.prototype.deleteRule;a.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:et((d,f,p)=>{const[m]=p,{id:v,styleId:y}=da(f,t,n.styleMirror);return(v&&v!==-1||y&&y!==-1)&&e({id:v,styleId:y,removes:[{index:m}]}),d.apply(f,p)})});let s;a.CSSStyleSheet.prototype.replace&&(s=a.CSSStyleSheet.prototype.replace,a.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:et((d,f,p)=>{const[m]=p,{id:v,styleId:y}=da(f,t,n.styleMirror);return(v&&v!==-1||y&&y!==-1)&&e({id:v,styleId:y,replace:m}),d.apply(f,p)})}));let l;a.CSSStyleSheet.prototype.replaceSync&&(l=a.CSSStyleSheet.prototype.replaceSync,a.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:et((d,f,p)=>{const[m]=p,{id:v,styleId:y}=da(f,t,n.styleMirror);return(v&&v!==-1||y&&y!==-1)&&e({id:v,styleId:y,replaceSync:m}),d.apply(f,p)})}));const c={};Ll("CSSGroupingRule")?c.CSSGroupingRule=a.CSSGroupingRule:(Ll("CSSMediaRule")&&(c.CSSMediaRule=a.CSSMediaRule),Ll("CSSConditionRule")&&(c.CSSConditionRule=a.CSSConditionRule),Ll("CSSSupportsRule")&&(c.CSSSupportsRule=a.CSSSupportsRule));const u={};return Object.entries(c).forEach(([d,f])=>{u[d]={insertRule:f.prototype.insertRule,deleteRule:f.prototype.deleteRule},f.prototype.insertRule=new Proxy(u[d].insertRule,{apply:et((p,m,v)=>{const[y,w]=v,{id:b,styleId:E}=da(m.parentStyleSheet,t,n.styleMirror);return(b&&b!==-1||E&&E!==-1)&&e({id:b,styleId:E,adds:[{rule:y,index:[...zc(m),w||0]}]}),p.apply(m,v)})}),f.prototype.deleteRule=new Proxy(u[d].deleteRule,{apply:et((p,m,v)=>{const[y]=v,{id:w,styleId:b}=da(m.parentStyleSheet,t,n.styleMirror);return(w&&w!==-1||b&&b!==-1)&&e({id:w,styleId:b,removes:[{index:[...zc(m),y]}]}),p.apply(m,v)})})}),et(()=>{a.CSSStyleSheet.prototype.insertRule=o,a.CSSStyleSheet.prototype.deleteRule=i,s&&(a.CSSStyleSheet.prototype.replace=s),l&&(a.CSSStyleSheet.prototype.replaceSync=l),Object.entries(c).forEach(([d,f])=>{f.prototype.insertRule=u[d].insertRule,f.prototype.deleteRule=u[d].deleteRule})})}function Fw({mirror:e,stylesheetManager:t},n){let a=null;n.nodeName==="#document"?a=e.getId(n):a=e.getId(n.host);const o=n.nodeName==="#document"?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,i=o?.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!o||!i?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(s){const l=i.set?.call(this,s);if(a!==null&&a!==-1)try{t.adoptStyleSheets(s,a)}catch{}return l}}),et(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function GY({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:a},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:et((l,c,u)=>{const[d,f,p]=u;if(n.has(d))return i.apply(c,[d,f,p]);const{id:m,styleId:v}=da(c.parentRule?.parentStyleSheet,t,a.styleMirror);return(m&&m!==-1||v&&v!==-1)&&e({id:m,styleId:v,set:{property:d,value:f,priority:p},index:zc(c.parentRule)}),l.apply(c,u)})});const s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:et((l,c,u)=>{const[d]=u;if(n.has(d))return s.apply(c,[d]);const{id:f,styleId:p}=da(c.parentRule?.parentStyleSheet,t,a.styleMirror);return(f&&f!==-1||p&&p!==-1)&&e({id:f,styleId:p,remove:{property:d},index:zc(c.parentRule)}),l.apply(c,u)})}),et(()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s})}function KY({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:a,mirror:o,sampling:i,doc:s}){const l=et(u=>As(et(d=>{const f=rl(d);if(!f||En(f,t,n,a,!0))return;const{currentTime:p,volume:m,muted:v,playbackRate:y}=f;e({type:u,id:o.getId(f),currentTime:p,volume:m,muted:v,playbackRate:y})}),i.media||500)),c=[pn("play",l(jo.Play),s),pn("pause",l(jo.Pause),s),pn("seeked",l(jo.Seeked),s),pn("volumechange",l(jo.VolumeChange),s),pn("ratechange",l(jo.RateChange),s)];return et(()=>{c.forEach(u=>u())})}function XY({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const a=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(c,u,d){const f=new i(c,u,d);return o.set(f,{family:c,buffer:typeof u!="string",descriptors:d,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),f};const s=th(t.fonts,"add",function(l){return function(c){return Tu(et(()=>{const u=o.get(c);u&&(e(u),o.delete(c))}),0),l.apply(this,[c])}});return a.push(()=>{n.FontFace=i}),a.push(s),et(()=>{a.forEach(l=>l())})}function JY(e){const{doc:t,mirror:n,blockClass:a,blockSelector:o,unblockSelector:i,selectionCb:s}=e;let l=!0;const c=et(()=>{const u=t.getSelection();if(!u||l&&u?.isCollapsed)return;l=u.isCollapsed||!1;const d=[],f=u.rangeCount||0;for(let p=0;p<f;p++){const m=u.getRangeAt(p),{startContainer:v,startOffset:y,endContainer:w,endOffset:b}=m;En(v,a,o,i,!0)||En(w,a,o,i,!0)||d.push({start:n.getId(v),startOffset:y,end:n.getId(w),endOffset:b})}s({ranges:d})});return c(),pn("selectionchange",c)}function QY({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:th(n.customElements,"define",function(o){return function(i,s,l){try{t({define:{name:i}})}catch{}return o.apply(this,[i,s,l])}})}function ZY(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let a;e.recordDOM&&(a=zw(e,e.doc));const o=jY(e),i=HY(e),s=Vw(e),l=UY(e,{win:n}),c=qY(e),u=KY(e);let d=()=>{},f=()=>{},p=()=>{},m=()=>{};e.recordDOM&&(d=YY(e,{win:n}),f=Fw(e,e.doc),p=GY(e,{win:n}),e.collectFonts&&(m=XY(e)));const v=JY(e),y=QY(e),w=[];for(const b of e.plugins)w.push(b.observer(b.callback,n,b.options));return et(()=>{Ko.forEach(b=>b.reset()),a?.disconnect(),o(),i(),s(),l(),c(),u(),d(),f(),p(),m(),v(),y(),w.forEach(b=>b())})}function Bl(e){return typeof window[e]<"u"}function Ll(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class ep{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,a,o){const i=a||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 a=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return n.map(i=>this.getId(t,i,a,o))}getRemoteId(t,n,a){const o=a||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const i=o.get(n);return i||-1}getRemoteIds(t,n){const a=this.getRemoteIdToIdMap(t);return n.map(o=>this.getRemoteId(t,o,a))}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 eG{constructor(){this.crossOriginIframeMirror=new ep(eh),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class tG{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new ep(eh),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ep(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}),this.recordCrossOriginIframes&&t.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(t);const a=rh(t);a&&a.adoptedStyleSheets&&a.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(a.adoptedStyleSheets,this.mirror.getId(a))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const o=this.crossOriginIframeMap.get(t.source);if(!o)return;const i=this.transformCrossOriginEvent(o,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case Ye.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const a=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,a),this.patchRootIdOnNode(n.data.node,a),{timestamp:n.timestamp,type:Ye.IncrementalSnapshot,data:{source:je.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ye.Meta:case Ye.Load:case Ye.DomContentLoaded:return!1;case Ye.Plugin:return n;case Ye.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Ye.IncrementalSnapshot:switch(n.data.source){case je.Mutation:return n.data.adds.forEach(a=>{this.replaceIds(a,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(a.node,t);const o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(a.node,o)}),n.data.removes.forEach(a=>{this.replaceIds(a,t,["parentId","id"])}),n.data.attributes.forEach(a=>{this.replaceIds(a,t,["id"])}),n.data.texts.forEach(a=>{this.replaceIds(a,t,["id"])}),n;case je.Drag:case je.TouchMove:case je.MouseMove:return n.data.positions.forEach(a=>{this.replaceIds(a,t,["id"])}),n;case je.ViewportResize:return!1;case je.MediaInteraction:case je.MouseInteraction:case je.Scroll:case je.CanvasMutation:case je.Input:return this.replaceIds(n.data,t,["id"]),n;case je.StyleSheetRule:case je.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case je.Font:return n;case je.Selection:return n.data.ranges.forEach(a=>{this.replaceIds(a,t,["start","end"])}),n;case je.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),n.data.styles?.forEach(a=>{this.replaceStyleIds(a,t,["styleId"])}),n}}return!1}replace(t,n,a,o){for(const i of o)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=t.getIds(a,n[i]):n[i]=t.getId(a,n[i]));return n}replaceIds(t,n,a){return this.replace(this.crossOriginIframeMirror,t,n,a)}replaceStyleIds(t,n,a){return this.replace(this.crossOriginIframeStyleMirror,t,n,a)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(a=>{this.replaceIdOnNode(a,n)})}patchRootIdOnNode(t,n){t.type!==Yt.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(a=>{this.patchRootIdOnNode(a,n)})}}class nG{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class rG{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(!us(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const a=zw({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>a.disconnect()),this.restoreHandlers.push(Vw({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),Tu(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(Fw({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=rh(t),a=DY(t);!n||!a||this.patchAttachShadow(a.Element,n)}patchAttachShadow(t,n){const a=this;this.restoreHandlers.push(th(t.prototype,"attachShadow",function(o){return function(i){const s=o.call(this,i);return this.shadowRoot&&Rw(this)&&a.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var U1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",aG=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Dl=0;Dl<U1.length;Dl++)aG[U1.charCodeAt(Dl)]=Dl;class W1{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class oG{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new MY,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 a={id:n,styleIds:[]},o=[];for(const i of t){let s;this.styleMirror.has(i)?s=this.styleMirror.getId(i):(s=this.styleMirror.add(i),o.push({styleId:s,rules:Array.from(i.rules||CSSRule,(l,c)=>({rule:bw(l),index:c}))})),a.styleIds.push(s)}o.length>0&&(a.styles=o),this.adoptedStyleSheetCb(a)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class iG{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const a=this.nodeMap.get(t);return a&&Array.from(a).some(o=>o!==n)}add(t,n){this.active||(this.active=!0,BY(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let It,Vc;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Gn=iY();function qr(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:a,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:l="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:f=null,maskTextSelector:p=null,unmaskTextSelector:m=null,inlineStylesheet:v=!0,maskAllInputs:y,maskInputOptions:w,slimDOMOptions:b,maskAttributeFn:E,maskInputFn:_,maskTextFn:g,maxCanvasSize:x=null,packFn:C,sampling:P={},dataURLOptions:O={},mousemoveWait:A,recordDOM:L=!0,recordCanvas:U=!1,recordCrossOriginIframes:z=!1,recordAfter:R=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:I=!1,collectFonts:B=!1,inlineImages:M=!1,plugins:$,keepIframeSrcFn:K=()=>!1,ignoreCSSAttributes:V=new Set([]),errorHandler:Z,onMutation:q,getCanvasManager:oe}=e;VY(Z);const j=z?window.parent===window:!0;let W=!1;if(!j)try{window.parent.document&&(W=!1)}catch{W=!0}if(j&&!t)throw new Error("emit function is required");if(!j&&!W)return()=>{};A!==void 0&&P.mousemove===void 0&&(P.mousemove=A),Gn.reset();const Y=y===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:w!==void 0?w:{},H=b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:b==="all",headMetaDescKeywords:b==="all"}:b||{};IY();let T,J=0;const le=pe=>{for(const Ie of $||[])Ie.eventProcessor&&(pe=Ie.eventProcessor(pe));return C&&!W&&(pe=C(pe)),pe};It=(pe,Ie)=>{const xe=pe;if(xe.timestamp=$c(),Ko[0]?.isFrozen()&&xe.type!==Ye.FullSnapshot&&!(xe.type===Ye.IncrementalSnapshot&&xe.data.source===je.Mutation)&&Ko.forEach(X=>X.unfreeze()),j)t?.(le(xe),Ie);else if(W){const X={type:"rrweb",event:le(xe),origin:window.location.origin,isCheckout:Ie};window.parent.postMessage(X,"*")}if(xe.type===Ye.FullSnapshot)T=xe,J=0;else if(xe.type===Ye.IncrementalSnapshot){if(xe.data.source===je.Mutation&&xe.data.isAttachIframe)return;J++;const X=a&&J>=a,re=n&&T&&xe.timestamp-T.timestamp>n;(X||re)&&Ae(!0)}};const Oe=pe=>{It({type:Ye.IncrementalSnapshot,data:{source:je.Mutation,...pe}})},ee=pe=>It({type:Ye.IncrementalSnapshot,data:{source:je.Scroll,...pe}}),Te=pe=>It({type:Ye.IncrementalSnapshot,data:{source:je.CanvasMutation,...pe}}),ae=pe=>It({type:Ye.IncrementalSnapshot,data:{source:je.AdoptedStyleSheet,...pe}}),ue=new oG({mutationCb:Oe,adoptedStyleSheetCb:ae}),D=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new eG:new tG({mirror:Gn,mutationCb:Oe,stylesheetManager:ue,recordCrossOriginIframes:z,wrappedEmit:It});for(const pe of $||[])pe.getMirror&&pe.getMirror({nodeMirror:Gn,crossOriginIframeMirror:D.crossOriginIframeMirror,crossOriginIframeStyleMirror:D.crossOriginIframeStyleMirror});const de=new iG,fe=lG(oe,{mirror:Gn,win:window,mutationCb:pe=>It({type:Ye.IncrementalSnapshot,data:{source:je.CanvasMutation,...pe}}),recordCanvas:U,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:x,sampling:P.canvas,dataURLOptions:O,errorHandler:Z}),ce=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new nG:new rG({mutationCb:Oe,scrollCb:ee,bypassOptions:{onMutation:q,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:v,maskInputOptions:Y,dataURLOptions:O,maskAttributeFn:E,maskTextFn:g,maskInputFn:_,recordCanvas:U,inlineImages:M,sampling:P,slimDOMOptions:H,iframeManager:D,stylesheetManager:ue,canvasManager:fe,keepIframeSrcFn:K,processedNodeManager:de},mirror:Gn}),Ae=(pe=!1)=>{if(!L)return;It({type:Ye.Meta,data:{href:window.location.href,width:Mw(),height:Iw()}},pe),ue.reset(),ce.init(),Ko.forEach(xe=>xe.lock());const Ie=PY(document,{mirror:Gn,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:v,maskAllInputs:Y,maskAttributeFn:E,maskInputFn:_,maskTextFn:g,slimDOM:H,dataURLOptions:O,recordCanvas:U,inlineImages:M,onSerialize:xe=>{Bw(xe,Gn)&&D.addIframe(xe),Lw(xe,Gn)&&ue.trackLinkElement(xe),Qf(xe)&&ce.addShadowRoot(xe.shadowRoot,document)},onIframeLoad:(xe,X)=>{D.attachIframe(xe,X),xe.contentWindow&&fe.addWindow(xe.contentWindow),ce.observeAttachShadow(xe)},onStylesheetLoad:(xe,X)=>{ue.attachLinkElement(xe,X)},keepIframeSrcFn:K});if(!Ie)return console.warn("Failed to snapshot the document");It({type:Ye.FullSnapshot,data:{node:Ie,initialOffset:Aw(window)}}),Ko.forEach(xe=>xe.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ue.adoptStyleSheets(document.adoptedStyleSheets,Gn.getId(document))};Vc=Ae;try{const pe=[],Ie=X=>et(ZY)({onMutation:q,mutationCb:Oe,mousemoveCb:(re,ye)=>It({type:Ye.IncrementalSnapshot,data:{source:ye,positions:re}}),mouseInteractionCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.MouseInteraction,...re}}),scrollCb:ee,viewportResizeCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.ViewportResize,...re}}),inputCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.Input,...re}}),mediaInteractionCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.MediaInteraction,...re}}),styleSheetRuleCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.StyleSheetRule,...re}}),styleDeclarationCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.StyleDeclaration,...re}}),canvasMutationCb:Te,fontCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.Font,...re}}),selectionCb:re=>{It({type:Ye.IncrementalSnapshot,data:{source:je.Selection,...re}})},customElementCb:re=>{It({type:Ye.IncrementalSnapshot,data:{source:je.CustomElement,...re}})},blockClass:o,ignoreClass:l,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:m,maskInputOptions:Y,inlineStylesheet:v,sampling:P,recordDOM:L,recordCanvas:U,inlineImages:M,userTriggeredOnInput:I,collectFonts:B,doc:X,maskAttributeFn:E,maskInputFn:_,maskTextFn:g,keepIframeSrcFn:K,blockSelector:i,unblockSelector:s,slimDOMOptions:H,dataURLOptions:O,mirror:Gn,iframeManager:D,stylesheetManager:ue,shadowDomManager:ce,processedNodeManager:de,canvasManager:fe,ignoreCSSAttributes:V,plugins:$?.filter(re=>re.observer)?.map(re=>({observer:re.observer,options:re.options,callback:ye=>It({type:Ye.Plugin,data:{plugin:re.name,payload:ye}})}))||[]},{});D.addLoadListener(X=>{try{pe.push(Ie(X.contentDocument))}catch(re){console.warn(re)}});const xe=()=>{Ae(),pe.push(Ie(document))};return document.readyState==="interactive"||document.readyState==="complete"?xe():(pe.push(pn("DOMContentLoaded",()=>{It({type:Ye.DomContentLoaded,data:{}}),R==="DOMContentLoaded"&&xe()})),pe.push(pn("load",()=>{It({type:Ye.Load,data:{}}),R==="load"&&xe()},window))),()=>{pe.forEach(X=>X()),de.destroy(),Vc=void 0,FY()}}catch(pe){console.warn(pe)}}function sG(e){if(!Vc)throw new Error("please take full snapshot after start recording");Vc(e)}qr.mirror=Gn;qr.takeFullSnapshot=sG;function lG(e,t){try{return e?e(t):new W1}catch{return console.warn("Unable to initialize CanvasManager"),new W1}}var q1;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(q1||(q1={}));const cG=3,uG=5;function ah(e){return e>9999999999?e:e*1e3}function Dd(e){return e>9999999999?e/1e3:e}function al(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Ye.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Kn(t,10,1e3)}}),t.category==="console")))}const dG="button,a";function jw(e){return e.closest(dG)||e}function Hw(e){const t=Uw(e);return!t||!(t instanceof Element)?t:jw(t)}function Uw(e){return fG(e)?e.target:e}function fG(e){return typeof e=="object"&&!!e&&"target"in e}let fa;function pG(e){return fa||(fa=[],mG()),fa.push(e),()=>{const t=fa?fa.indexOf(e):-1;t>-1&&fa.splice(t,1)}}function mG(){wn(bt,"open",function(e){return function(...t){if(fa)try{fa.forEach(n=>n())}catch{}return e.apply(bt,t)}})}const hG=new Set([je.Mutation,je.StyleSheetRule,je.StyleDeclaration,je.AdoptedStyleSheet,je.CanvasMutation,je.Selection,je.MediaInteraction]);function vG(e,t,n){e.handleClick(t,n)}class gG{constructor(t,n,a=al){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=a}addListeners(){const t=pG(()=>{this._lastMutation=Y1()});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(bG(n,this._ignoreSelector)||!wG(t))return;const a={timestamp:Dd(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(o=>o.node===a.node&&Math.abs(o.timestamp-a.timestamp)<1)||(this._clicks.push(a),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Dd(t)}registerScroll(t=Date.now()){this._lastScroll=Dd(t)}registerClick(t){const n=jw(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=Y1();this._clicks.forEach(a=>{!a.mutationAfter&&this._lastMutation&&(a.mutationAfter=a.timestamp<=this._lastMutation?this._lastMutation-a.timestamp:void 0),!a.scrollAfter&&this._lastScroll&&(a.scrollAfter=a.timestamp<=this._lastScroll?this._lastScroll-a.timestamp:void 0),a.timestamp+this._timeout<=n&&t.push(a)});for(const a of t){const o=this._clicks.indexOf(a);o>-1&&(this._generateBreadcrumbs(a),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,a=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!a&&!o,{clickCount:s,clickBreadcrumb:l}=t;if(i){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=c<this._timeout*1e3?"mutation":"timeout",d={type:"default",message:l.message,timestamp:l.timestamp,category:"ui.slowClickDetected",data:{...l.data,url:bt.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:u,clickCount:s||1}};this._addBreadcrumbEvent(n,d);return}if(s>1){const c={type:"default",message:l.message,timestamp:l.timestamp,category:"ui.multiClick",data:{...l.data,url:bt.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=nl(()=>this._checkClicks(),1e3)}}const yG=["A","BUTTON","INPUT"];function bG(e,t){return!!(!yG.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 wG(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Y1(){return Date.now()/1e3}function kG(e,t){try{if(!_G(t))return;const{source:n}=t.data;if(hG.has(n)&&e.registerMutation(t.timestamp),n===je.Scroll&&e.registerScroll(t.timestamp),SG(t)){const{type:a,id:o}=t.data,i=qr.mirror.getNode(o);i instanceof HTMLElement&&a===fn.Click&&e.registerClick(i)}}catch{}}function _G(e){return e.type===cG}function SG(e){return e.data.source===je.MouseInteraction}function Cr(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var oh=(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",e))(oh||{});const CG=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function xG(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(CG.has(n)){let a=n;(n==="data-testid"||n==="data-test-id")&&(a="testId"),t[a]=e[n]}return t}const EG=e=>t=>{if(!e.isEnabled())return;const n=TG(t);if(!n)return;const a=t.name==="click",o=a?t.event:void 0;a&&e.clickDetector&&o?.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&vG(e.clickDetector,n,Hw(t.event)),al(e,n)};function Ww(e,t){const n=qr.mirror.getId(e),a=n&&qr.mirror.getNode(n),o=a&&qr.mirror.getMeta(a),i=o&&AG(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===oh.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:xG(i.attributes)}}:{}}}function TG(e){const{target:t,message:n}=PG(e);return Cr({category:`ui.${e.name}`,...Ww(t,n)})}function PG(e){const t=e.name==="click";let n,a=null;try{a=t?Hw(e.event):Uw(e.event),n=Hn(a,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:a,message:n}}function AG(e){return e.type===oh.Element}function IG(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=MG(t);n&&al(e,n)}function MG(e){const{metaKey:t,shiftKey:n,ctrlKey:a,altKey:o,key:i,target:s}=e;if(!s||NG(s)||!i)return null;const l=t||a||o,c=i.length===1;if(!l&&c)return null;const u=Hn(s,{maxStringLength:200})||"<unknown>",d=Ww(s,u);return Cr({category:"ui.keyDown",message:u,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:a,altKey:o,key:i}})}function NG(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const OG={resource:$G,paint:DG,navigation:RG};function Rl(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function BG(e){return e.map(LG).filter(Boolean)}function LG(e){const t=OG[e.entryType];return t?t(e):null}function Ti(e){return((hn()||bt.performance.timeOrigin)+e)/1e3}function DG(e){const{duration:t,entryType:n,name:a,startTime:o}=e,i=Ti(o);return{type:n,name:a,start:i,end:i+t,data:void 0}}function RG(e){const{entryType:t,name:n,decodedBodySize:a,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:l,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:d,loadEventEnd:f,redirectCount:p,startTime:m,transferSize:v,type:y}=e;return o===0?null:{type:`${t}.${y}`,start:Ti(m),end:Ti(i),name:n,data:{size:v,decodedBodySize:a,encodedBodySize:s,duration:o,domInteractive:u,domContentLoadedEventStart:l,domContentLoadedEventEnd:c,loadEventStart:d,loadEventEnd:f,domComplete:i,redirectCount:p}}}function $G(e){const{entryType:t,initiatorType:n,name:a,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:l,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Ti(i),end:Ti(o),name:a,data:{size:u,statusCode:c,decodedBodySize:s,encodedBodySize:l}}}function zG(e){const t=e.entries[e.entries.length-1],n=t?.element?[t.element]:void 0;return Pu(e,"largest-contentful-paint",n)}function VG(e){return e.sources!==void 0}function FG(e){const t=[],n=[];for(const a of e.entries)if(VG(a)){const o=[];for(const i of a.sources)if(i.node){n.push(i.node);const s=qr.mirror.getId(i.node);s&&o.push(s)}t.push({value:a.value,nodeIds:o.length?o:void 0})}return Pu(e,"cumulative-layout-shift",n,t)}function jG(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return Pu(e,"first-input-delay",n)}function HG(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return Pu(e,"interaction-to-next-paint",n)}function Pu(e,t,n,a){const o=e.value,i=e.rating,s=Ti(o);return{type:"web-vital",name:t,start:s,end:s,data:{value:o,size:o,rating:i,nodeIds:n?n.map(l=>qr.mirror.getId(l)):void 0,attributions:a}}}function UG(e){function t(o){e.performanceEntries.includes(o)||e.performanceEntries.push(o)}function n({entries:o}){o.forEach(t)}const a=[];return["navigation","paint","resource"].forEach(o=>{a.push(wo(o,n))}),a.push(Gm(Rl(zG,e)),Ym(Rl(FG,e)),rw(Rl(jG,e)),aw(Rl(HG,e))),()=>{a.forEach(o=>o())}}const ze=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,WG='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]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(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,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=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:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}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 s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[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=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];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(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),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(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,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 s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),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(s),32768),this.s.z=n.length-s+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.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!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,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.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)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}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.prototype.flush=function(){j.prototype.flush.call(this)},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(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}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(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new 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 qG(){const e=new Blob([WG]);return URL.createObjectURL(e)}const G1=["log","warn","error"],ec="[Replay] ";function Rd(e,t="info"){Ia({category:"console",data:{logger:"replay"},level:t,message:`${ec}${e}`},{level:t})}function YG(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:a=>{e=!!a.captureExceptions,t=!!a.traceInternals}};return ze?(G1.forEach(a=>{n[a]=(...o)=>{ke[a](ec,...o),t&&Rd(o.join(""),$3(a))}}),n.exception=(a,...o)=>{o.length&&n.error&&n.error(...o),ke.error(ec,a),e?bu(a):t&&Rd(a,"error")},n.infoTick=(...a)=>{ke.log(ec,...a),t&&setTimeout(()=>Rd(a[0]),0)}):G1.forEach(a=>{n[a]=()=>{}}),n}const Ve=YG();class ih extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Qm}.`)}}class qw{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>Qm)throw new ih;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?ah(t):null}}class GG{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:a})=>{a.success?t():n()},{once:!0}),this._worker.addEventListener("error",a=>{n(a)},{once:!0})}),this._ensureReadyPromise)}destroy(){ze&&Ve.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const a=this._getAndIncrementId();return new Promise((o,i)=>{const s=({data:l})=>{const c=l;if(c.method===t&&c.id===a){if(this._worker.removeEventListener("message",s),!c.success){ze&&Ve.error("Error in compression worker: ",c.response),i(new Error("Error in compression worker"));return}o(c.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:a,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class KG{constructor(t){this._worker=new GG(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=ah(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const a=JSON.stringify(t);return this._totalSize+=a.length,this._totalSize>Qm?Promise.reject(new ih):this._sendEventToWorker(a)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{ze&&Ve.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class XG{constructor(t){this._fallback=new qw,this._compression=new KG(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){ze&&Ve.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:a}=this._fallback,o=[];for(const i of t)o.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._compression.waitForCheckout=a,this._used=this._compression;try{await Promise.all(o),this._fallback.clear()}catch(i){ze&&Ve.exception(i,"Failed to add events when switching buffers.")}}}function JG({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=QG(t);if(n)return n}return ze&&Ve.log("Using simple buffer"),new qw}function QG(e){try{const t=e||ZG();if(!t)return;ze&&Ve.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new XG(n)}catch(t){ze&&Ve.exception(t,"Failed to create compression worker")}}function ZG(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?qG():""}function sh(){try{return"sessionStorage"in bt&&!!bt.sessionStorage}catch{return!1}}function eK(e){tK(),e.session=void 0}function tK(){if(sh())try{bt.sessionStorage.removeItem(Xm)}catch{}}function Yw(e){return e===void 0?!1:Math.random()<e}function lh(e){if(sh())try{bt.sessionStorage.setItem(Xm,JSON.stringify(e))}catch{}}function Gw(e){const t=Date.now(),n=e.id||Nn(),a=e.started||t,o=e.lastActivity||t,i=e.segmentId||0,s=e.sampled,l=e.previousSessionId;return{id:n,started:a,lastActivity:o,segmentId:i,sampled:s,previousSessionId:l}}function nK(e,t){return Yw(e)?"session":t?"buffer":!1}function K1({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:a}={}){const o=nK(e,t),i=Gw({sampled:o,previousSessionId:a});return n&&lh(i),i}function rK(){if(!sh())return null;try{const e=bt.sessionStorage.getItem(Xm);if(!e)return null;const t=JSON.parse(e);return ze&&Ve.infoTick("Loading existing session"),Gw(t)}catch{return null}}function tp(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function Kw(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:a=Date.now()}){return tp(e.started,t,a)||tp(e.lastActivity,n,a)}function Xw(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Kw(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function $d({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},a){const o=a.stickySession&&rK();return o?Xw(o,{sessionIdleExpire:e,maxReplayDuration:t})?(ze&&Ve.infoTick("Session in sessionStorage is expired, creating new one..."),K1(a,{previousSessionId:o.id})):o:(ze&&Ve.infoTick("Creating new session"),K1(a,{previousSessionId:n}))}function aK(e){return e.type===Ye.Custom}function ch(e,t,n){return Qw(e,t)?(Jw(e,t,n),!0):!1}function oK(e,t,n){return Qw(e,t)?Jw(e,t,n):Promise.resolve(null)}async function Jw(e,t,n){const{eventBuffer:a}=e;if(!a||a.waitForCheckout&&!n)return null;const o=e.recordingMode==="buffer";try{n&&o&&a.clear(),n&&(a.hasCheckout=!0,a.waitForCheckout=!1);const i=e.getOptions(),s=iK(t,i.beforeAddRecordingEvent);return s?await a.addEvent(s):void 0}catch(i){const s=i&&i instanceof ih,l=s?"addEventSizeExceeded":"addEvent";if(s&&o)return a.clear(),a.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:l});const c=Qe();c&&c.recordDroppedEvent("internal_sdk_error","replay")}}function Qw(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=ah(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(ze&&Ve.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function iK(e,t){try{if(typeof t=="function"&&aK(e))return t(e)}catch(n){return ze&&Ve.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function uh(e){return!e.type}function np(e){return e.type==="transaction"}function sK(e){return e.type==="replay_event"}function X1(e){return e.type==="feedback"}function lK(e){return(t,n)=>{if(!e.isEnabled()||!uh(t)&&!np(t))return;const a=n?.statusCode;if(!(!a||a<200||a>=300)){if(np(t)){cK(e,t);return}uK(e,t)}}}function cK(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function uK(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:a}=e.getOptions();typeof a=="function"&&!a(t)||nl(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(o){e.handleException(o)}})}function dK(e){return t=>{!e.isEnabled()||!uh(t)||fK(e,t)}}function fK(e,t){const n=t.exception?.values?.[0]?.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const a=Cr({category:"replay.hydrate-error",data:{url:Oi()}});al(e,a)}}function pK(e){const t=Qe();t&&t.on("beforeAddBreadcrumb",n=>mK(e,n))}function mK(e,t){if(!e.isEnabled()||!Zw(t))return;const n=hK(t);n&&al(e,n)}function hK(e){return!Zw(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?vK(e):Cr(e)}function vK(e){const t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return Cr(e);let n=!1;const a=t.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>Ol?(n=!0,`${o.slice(0,Ol)}…`):o;if(typeof o=="object")try{const i=Kn(o,7);return JSON.stringify(i).length>Ol?(n=!0,`${JSON.stringify(i,null,2).slice(0,Ol)}…`):i}catch{}return o});return Cr({...e,data:{...e.data,arguments:a,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Zw(e){return!!e.category}function gK(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function e6(){const e=lt().getPropagationContext().dsc;e&&delete e.replay_id;const t=tn();if(t){const n=na(t);delete n.replay_id}}function yK(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:Ye.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function bK(e,t){return e.recordingMode!=="buffer"||t.message===Jm||!t.exception||t.type?!1:Yw(e.getOptions().errorSampleRate)}function wK(e){return Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:sK(t)?(delete t.breadcrumbs,t):!uh(t)&&!np(t)&&!X1(t)?t:e.checkAndHandleExpiredSession()?X1(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),yK(e,t),t):gK(t,n)&&!e.getOptions()._experiments.captureExceptions?(ze&&Ve.log("Ignoring error from rrweb internals",t),null):((bK(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(e6(),t),{id:"Replay"})}function Au(e,t){return t.map(({type:n,start:a,end:o,name:i,data:s})=>{const l=e.throttledAddEvent({type:Ye.Custom,timestamp:a,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:a,endTimestamp:o,data:s}}});return typeof l=="string"?Promise.resolve(null):l})}function kK(e){const{from:t,to:n}=e,a=Date.now()/1e3;return{type:"navigation.push",start:a,end:a,name:n,data:{previous:t}}}function _K(e){return t=>{if(!e.isEnabled())return;const n=kK(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Au(e,[n]),!1)))}}function SK(e,t){return ze&&e.getOptions()._experiments.traceInternals?!1:mH(t,Qe())}function t6(e,t){e.isEnabled()&&t!==null&&(SK(e,t.name)||e.addUpdate(()=>(Au(e,[t]),!0)))}function Iu(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=pw(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function n6(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Fc(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},a=n.warnings||[];return n.warnings=[...a,t],e._meta=n,e}function r6(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:a,url:o,method:i,statusCode:s,request:l,response:c}=t;return{type:e,start:n/1e3,end:a/1e3,name:o,data:{method:i,statusCode:s,request:l,response:c}}}function Is(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function ga(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const a={headers:e,size:t},{body:o,warnings:i}=CK(n);return a.body=o,i?.length&&(a._meta={warnings:i}),a}function rp(e,t){return Object.entries(e).reduce((n,[a,o])=>{const i=a.toLowerCase();return t.includes(i)&&e[a]&&(n[i]=o),n},{})}function CK(e){if(!e||typeof e!="string")return{body:e};const t=e.length>I1,n=xK(e);if(t){const a=e.slice(0,I1);return n?{body:a,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${a}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function xK(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function jc(e,t){const n=EK(e);return Wr(n,t)}function EK(e,t=bt.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(bt.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const a=n.href;return!e.endsWith("/")&&a.endsWith("/")?a.slice(0,-1):a}async function TK(e,t,n){try{const a=await AK(e,t,n),o=r6("resource.fetch",a);t6(n.replay,o)}catch(a){ze&&Ve.exception(a,"Failed to capture fetch breadcrumb")}}function PK(e,t){const{input:n,response:a}=t,o=n?hw(n):void 0,i=Iu(o),s=a?n6(a.headers.get("content-length")):void 0;i!==void 0&&(e.data.request_body_size=i),s!==void 0&&(e.data.response_body_size=s)}async function AK(e,t,n){const a=Date.now(),{startTimestamp:o=a,endTimestamp:i=a}=t,{url:s,method:l,status_code:c=0,request_body_size:u,response_body_size:d}=e.data,f=jc(s,n.networkDetailAllowUrls)&&!jc(s,n.networkDetailDenyUrls),p=f?IK(n,t.input,u):Is(u),m=await MK(f,n,t.response,d);return{startTimestamp:o,endTimestamp:i,url:s,method:l,statusCode:c,request:p,response:m}}function IK({networkCaptureBodies:e,networkRequestHeaders:t},n,a){const o=n?BK(n,t):{};if(!e)return ga(o,a,void 0);const i=hw(n),[s,l]=mw(i,Ve),c=ga(o,a,s);return l?Fc(c,l):c}async function MK(e,{networkCaptureBodies:t,networkResponseHeaders:n},a,o){if(!e&&o!==void 0)return Is(o);const i=a?a6(a.headers,n):{};if(!a||!t&&o!==void 0)return ga(i,o,void 0);const[s,l]=await OK(a),c=NK(s,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:i});return l?Fc(c,l):c}function NK(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:a,headers:o}){try{const i=e?.length&&n===void 0?Iu(e):n;return a?t?ga(o,i,e):ga(o,i,void 0):Is(i)}catch(i){return ze&&Ve.exception(i,"Failed to serialize response body"),ga(o,n,void 0)}}async function OK(e){const t=LK(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await DK(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(ze&&Ve.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(ze&&Ve.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function a6(e,t){const n={};return t.forEach(a=>{e.get(a)&&(n[a]=e.get(a))}),n}function BK(e,t){return e.length===1&&typeof e[0]!="string"?J1(e[0],t):e.length===2?J1(e[1],t):{}}function J1(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?a6(n,t):Array.isArray(n)?{}:rp(n,t):{}}function LK(e){try{return e.clone()}catch(t){ze&&Ve.exception(t,"Failed to clone response body")}}function DK(e){return new Promise((t,n)=>{const a=nl(()=>n(new Error("Timeout while trying to read response body")),500);RK(e).then(o=>t(o),o=>n(o)).finally(()=>clearTimeout(a))})}async function RK(e){return await e.text()}async function $K(e,t,n){try{const a=VK(e,t,n),o=r6("resource.xhr",a);t6(n.replay,o)}catch(a){ze&&Ve.exception(a,"Failed to capture xhr breadcrumb")}}function zK(e,t){const{xhr:n,input:a}=t;if(!n)return;const o=Iu(a),i=n.getResponseHeader("content-length")?n6(n.getResponseHeader("content-length")):UK(n.response,n.responseType);o!==void 0&&(e.data.request_body_size=o),i!==void 0&&(e.data.response_body_size=i)}function VK(e,t,n){const a=Date.now(),{startTimestamp:o=a,endTimestamp:i=a,input:s,xhr:l}=t,{url:c,method:u,status_code:d=0,request_body_size:f,response_body_size:p}=e.data;if(!c)return null;if(!l||!jc(c,n.networkDetailAllowUrls)||jc(c,n.networkDetailDenyUrls)){const C=Is(f),P=Is(p);return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:d,request:C,response:P}}const m=l[eo],v=m?rp(m.request_headers,n.networkRequestHeaders):{},y=rp(FK(l),n.networkResponseHeaders),[w,b]=n.networkCaptureBodies?mw(s,Ve):[void 0],[E,_]=n.networkCaptureBodies?jK(l):[void 0],g=ga(v,f,w),x=ga(y,p,E);return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:d,request:b?Fc(g,b):g,response:_?Fc(x,_):x}}function FK(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
669
+ or you can use record.mirror to access the mirror instance during recording.`;let R1={map:{},getId(){return console.error(Fo),-1},getNode(){return console.error(Fo),null},removeNodeFromMap(){console.error(Fo)},has(){return console.error(Fo),!1},reset(){console.error(Fo)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(R1=new Proxy(R1,{get(e,t,n){return t==="map"&&console.error(Fo),Reflect.get(e,t,n)}}));function As(e,t,n={}){let a=null,o=0;return function(...i){const s=Date.now();!o&&n.leading===!1&&(o=s);const l=t-(s-o),c=this;l<=0||l>t?(a&&(LY(a),a=null),o=s,e.apply(c,i)):!a&&n.trailing!==!1&&(a=Tu(()=>{o=n.leading===!1?0:Date.now(),a=null,e.apply(c,i)},l))}}function Pw(e,t,n,a,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,a?n:{set(s){Tu(()=>{n.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>Pw(e,t,i||{},!0)}function th(e,t,n){try{if(!(t in e))return()=>{};const a=e[t],o=n(a);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:a}})),e[t]=o,()=>{e[t]=a}}catch{return()=>{}}}let $c=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||($c=()=>new Date().getTime());function Aw(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function Iw(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Mw(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Nw(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function En(e,t,n,a,o){if(!e)return!1;const i=Nw(e);if(!i)return!1;const s=Yo(t,n);if(!o){const u=a&&i.matches(a);return s(i)&&!u}const l=to(i,s);let c=-1;return l<0?!1:(a&&(c=to(i,Yo(null,a))),l>-1&&c<0?!0:l<c)}function AY(e,t){return t.getId(e)!==-1}function Ld(e,t){return t.getId(e)===Ps}function Ow(e,t){if(cs(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Ow(e.parentNode,t):!0:!0}function Jf(e){return!!e.changedTouches}function IY(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 Bw(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Lw(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Qf(e){return!!e?.shadowRoot}class MY{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let a;return n===void 0?a=this.id++:a=n,this.styleIDMap.set(t,a),this.idStyleMap.set(a,t),a}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 Dw(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function NY(e){let t=e,n;for(;n=Dw(t);)t=n;return t}function OY(e){const t=e.ownerDocument;if(!t)return!1;const n=NY(e);return t.contains(n)}function Rw(e){const t=e.ownerDocument;return t?t.contains(e)||OY(e):!1}const $1={};function nh(e){const t=$1[e];if(t)return t;const n=window.document;let a=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const i=o.contentWindow;i&&i[e]&&(a=i[e]),n.head.removeChild(o)}catch{}return $1[e]=a.bind(window)}function BY(...e){return nh("requestAnimationFrame")(...e)}function Tu(...e){return nh("setTimeout")(...e)}function LY(...e){return nh("clearTimeout")(...e)}var Ye=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Ye||{}),je=(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))(je||{}),fn=(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))(fn||{}),zr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(zr||{}),jo=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(jo||{});function rh(e){try{return e.contentDocument}catch{}}function DY(e){try{return e.contentWindow}catch{}}function z1(e){return"__ln"in e}class RY{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 a=0;a<t;a++)n=n?.next||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&z1(t.previousSibling)){const a=t.previousSibling.__ln.next;n.next=a,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,a&&(a.previous=n)}else if(t.nextSibling&&z1(t.nextSibling)&&t.nextSibling.__ln.previous){const a=t.nextSibling.__ln.previous;n.previous=a,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,a&&(a.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 V1=(e,t)=>`${e}@${t}`;class $Y{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,a=new RY,o=c=>{let u=c,d=Ps;for(;d===Ps;)u=u&&u.nextSibling,d=u&&this.mirror.getId(u);return d},i=c=>{if(!c.parentNode||!Rw(c))return;const u=cs(c.parentNode)?this.mirror.getId(Dw(c)):this.mirror.getId(c.parentNode),d=o(c);if(u===-1||d===-1)return a.addNode(c);const f=Go(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:p=>{Bw(p,this.mirror)&&!En(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(p),Lw(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),Qf(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(p,m)=>{En(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(p,m),p.contentWindow&&this.canvasManager.addWindow(p.contentWindow),this.shadowDomManager.observeAttachShadow(p))},onStylesheetLoad:(p,m)=>{this.stylesheetManager.attachLinkElement(p,m)}});f&&(t.push({parentId:u,nextId:d,node:f}),n.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)F1(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||i(c);for(const c of this.addedSet)!j1(this.droppedSet,c)&&!F1(this.removes,c,this.mirror)||j1(this.movedSet,c)?i(c):this.droppedSet.add(c);let s=null;for(;a.length;){let c=null;if(s){const u=this.mirror.getId(s.value.parentNode),d=o(s.value);u!==-1&&d!==-1&&(c=s)}if(!c){let u=a.tail;for(;u;){const d=u;if(u=u.previous,d){const f=this.mirror.getId(d.value.parentNode);if(o(d.value)===-1)continue;if(f!==-1){c=d;break}else{const m=d.value;if(m.parentNode&&m.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const g=m.parentNode.host;if(this.mirror.getId(g)!==-1){c=d;break}}}}}}if(!c){for(;a.head;)a.removeNode(a.head.value);break}s=c.previous,a.removeNode(c.value),i(c.value)}const l={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:u}=c;if(typeof u.style=="string"){const d=JSON.stringify(c.styleDiff),f=JSON.stringify(c._unchangedStyles);d.length<u.style.length&&(d+f).split("var(").length===u.style.split("var(").length&&(u.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:u}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(l))},this.processMutation=t=>{if(!Ld(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!En(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Ei(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,Nw(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let a=t.attributeName,o=t.target.getAttribute(a);if(a==="value"){const s=Zm(n),l=n.tagName;o=Dc(n,l,s);const c=xu({maskInputOptions:this.maskInputOptions,tagName:l,type:s}),u=Ei(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);o=Ts({isMasked:u,element:n,value:o,maskInputFn:this.maskInputFn})}if(En(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===t.oldValue)return;let i=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&a==="src"&&!this.keepIframeSrcFn(o))if(!rh(n))a="rr_src";else return;if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(t.target,i)),a==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!Ew(n.tagName,a)&&(i.attributes[a]=xw(this.doc,xi(n.tagName),xi(a),o,n,this.maskAttributeFn),a==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const s=this.unattachedDoc.createElement("span");t.oldValue&&s.setAttribute("style",t.oldValue);for(const l of Array.from(n.style)){const c=n.style.getPropertyValue(l),u=n.style.getPropertyPriority(l);c!==s.style.getPropertyValue(l)||u!==s.style.getPropertyPriority(l)?u===""?i.styleDiff[l]=c:i.styleDiff[l]=[c,u]:i._unchangedStyles[l]=[c,u]}for(const l of Array.from(s.style))n.style.getPropertyValue(l)===""&&(i.styleDiff[l]=!1)}break}case"childList":{if(En(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const a=this.mirror.getId(n),o=cs(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);En(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Ld(n,this.mirror)||!AY(n,this.mirror)||(this.addedSet.has(n)?(Zf(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&a===-1||Ow(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[V1(a,o)]?Zf(this.movedSet,n):this.removes.push({parentId:o,id:a,isShadow:cs(t.target)&&us(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Ld(t,this.mirror))return;this.movedSet.add(t);let a=null;n&&this.mirror.hasNode(n)&&(a=this.mirror.getId(n)),a&&a!==-1&&(this.movedMap[V1(this.mirror.getId(t),a)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);En(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(a=>this.genAdds(a)),Qf(t)&&t.shadowRoot.childNodes.forEach(a=>{this.processedNodeManager.add(a,this),this.genAdds(a,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 Zf(e,t){e.delete(t),t.childNodes.forEach(n=>Zf(e,n))}function F1(e,t,n){return e.length===0?!1:zY(e,t,n)}function zY(e,t,n){let a=t.parentNode;for(;a;){const o=n.getId(a);if(e.some(i=>i.id===o))return!0;a=a.parentNode}return!1}function j1(e,t){return e.size===0?!1:$w(e,t)}function $w(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:$w(e,n):!1}let ds;function VY(e){ds=e}function FY(){ds=void 0}const et=e=>ds?(...n)=>{try{return e(...n)}catch(a){if(ds&&ds(a)===!0)return()=>{};throw a}}:e,Ko=[];function rl(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 zw(e,t){const n=new $Y;Ko.push(n),n.init(e);let a=window.MutationObserver||window.__rrMutationObserver;const o=window?.Zone?.__symbol__?.("MutationObserver");o&&window[o]&&(a=window[o]);const i=new a(et(s=>{e.onMutation&&e.onMutation(s)===!1||n.processMutations.bind(n)(s)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function jY({mousemoveCb:e,sampling:t,doc:n,mirror:a}){if(t.mousemove===!1)return()=>{};const o=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let s=[],l;const c=As(et(f=>{const p=Date.now()-l;e(s.map(m=>(m.timeOffset-=p,m)),f),s=[],l=null}),i),u=et(As(et(f=>{const p=rl(f),{clientX:m,clientY:g}=Jf(f)?f.changedTouches[0]:f;l||(l=$c()),s.push({x:m,y:g,id:a.getId(p),timeOffset:$c()-l}),c(typeof DragEvent<"u"&&f instanceof DragEvent?je.Drag:f instanceof MouseEvent?je.MouseMove:je.TouchMove)}),o,{trailing:!1})),d=[pn("mousemove",u,n),pn("touchmove",u,n),pn("drag",u,n)];return et(()=>{d.forEach(f=>f())})}function HY({mouseInteractionCb:e,doc:t,mirror:n,blockClass:a,blockSelector:o,unblockSelector:i,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const l=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,c=[];let u=null;const d=f=>p=>{const m=rl(p);if(En(m,a,o,i,!0))return;let g=null,y=f;if("pointerType"in p){switch(p.pointerType){case"mouse":g=zr.Mouse;break;case"touch":g=zr.Touch;break;case"pen":g=zr.Pen;break}g===zr.Touch?fn[f]===fn.MouseDown?y="TouchStart":fn[f]===fn.MouseUp&&(y="TouchEnd"):zr.Pen}else Jf(p)&&(g=zr.Touch);g!==null?(u=g,(y.startsWith("Touch")&&g===zr.Touch||y.startsWith("Mouse")&&g===zr.Mouse)&&(g=null)):fn[f]===fn.Click&&(g=u,u=null);const w=Jf(p)?p.changedTouches[0]:p;if(!w)return;const b=n.getId(m),{clientX:E,clientY:_}=w;et(e)({type:fn[y],id:b,x:E,y:_,...g!==null&&{pointerType:g}})};return Object.keys(fn).filter(f=>Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&l[f]!==!1).forEach(f=>{let p=xi(f);const m=d(f);if(window.PointerEvent)switch(fn[f]){case fn.MouseDown:case fn.MouseUp:p=p.replace("mouse","pointer");break;case fn.TouchStart:case fn.TouchEnd:return}c.push(pn(p,m,t))}),et(()=>{c.forEach(f=>f())})}function Vw({scrollCb:e,doc:t,mirror:n,blockClass:a,blockSelector:o,unblockSelector:i,sampling:s}){const l=et(As(et(c=>{const u=rl(c);if(!u||En(u,a,o,i,!0))return;const d=n.getId(u);if(u===t&&t.defaultView){const f=Aw(t.defaultView);e({id:d,x:f.left,y:f.top})}else e({id:d,x:u.scrollLeft,y:u.scrollTop})}),s.scroll||100));return pn("scroll",l,t)}function UY({viewportResizeCb:e},{win:t}){let n=-1,a=-1;const o=et(As(et(()=>{const i=Iw(),s=Mw();(n!==i||a!==s)&&(e({width:Number(s),height:Number(i)}),n=i,a=s)}),200));return pn("resize",o,t)}const WY=["INPUT","TEXTAREA","SELECT"],H1=new WeakMap;function qY({inputCb:e,doc:t,mirror:n,blockClass:a,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:l,maskInputOptions:c,maskInputFn:u,sampling:d,userTriggeredOnInput:f,maskTextClass:p,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:y}){function w(P){let O=rl(P);const A=P.isTrusted,L=O&&Kf(O.tagName);if(L==="OPTION"&&(O=O.parentElement),!O||!L||WY.indexOf(L)<0||En(O,a,o,i,!0))return;const U=O;if(U.classList.contains(s)||l&&U.matches(l))return;const z=Zm(O);let R=Dc(U,L,z),I=!1;const B=xu({maskInputOptions:c,tagName:L,type:z}),M=Ei(O,p,g,m,y,B);(z==="radio"||z==="checkbox")&&(I=O.checked),R=Ts({isMasked:M,element:O,value:R,maskInputFn:u}),b(O,f?{text:R,isChecked:I,userTriggered:A}:{text:R,isChecked:I});const $=O.name;z==="radio"&&$&&I&&t.querySelectorAll(`input[type="radio"][name="${$}"]`).forEach(K=>{if(K!==O){const V=Ts({isMasked:M,element:K,value:Dc(K,L,z),maskInputFn:u});b(K,f?{text:V,isChecked:!I,userTriggered:!1}:{text:V,isChecked:!I})}})}function b(P,O){const A=H1.get(P);if(!A||A.text!==O.text||A.isChecked!==O.isChecked){H1.set(P,O);const L=n.getId(P);et(e)({...O,id:L})}}const _=(d.input==="last"?["change"]:["input","change"]).map(P=>pn(P,et(w),t)),v=t.defaultView;if(!v)return()=>{_.forEach(P=>P())};const x=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),C=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return x&&x.set&&_.push(...C.map(P=>Pw(P[0],P[1],{set(){et(w)({target:this,isTrusted:!1})}},!1,v))),et(()=>{_.forEach(P=>P())})}function zc(e){const t=[];function n(a,o){if(Bl("CSSGroupingRule")&&a.parentRule instanceof CSSGroupingRule||Bl("CSSMediaRule")&&a.parentRule instanceof CSSMediaRule||Bl("CSSSupportsRule")&&a.parentRule instanceof CSSSupportsRule||Bl("CSSConditionRule")&&a.parentRule instanceof CSSConditionRule){const s=Array.from(a.parentRule.cssRules).indexOf(a);o.unshift(s)}else if(a.parentStyleSheet){const s=Array.from(a.parentStyleSheet.cssRules).indexOf(a);o.unshift(s)}return o}return n(e,t)}function da(e,t,n){let a,o;return e?(e.ownerNode?a=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:a}):{}}function YY({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:a}){if(!a.CSSStyleSheet||!a.CSSStyleSheet.prototype)return()=>{};const o=a.CSSStyleSheet.prototype.insertRule;a.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:et((d,f,p)=>{const[m,g]=p,{id:y,styleId:w}=da(f,t,n.styleMirror);return(y&&y!==-1||w&&w!==-1)&&e({id:y,styleId:w,adds:[{rule:m,index:g}]}),d.apply(f,p)})});const i=a.CSSStyleSheet.prototype.deleteRule;a.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:et((d,f,p)=>{const[m]=p,{id:g,styleId:y}=da(f,t,n.styleMirror);return(g&&g!==-1||y&&y!==-1)&&e({id:g,styleId:y,removes:[{index:m}]}),d.apply(f,p)})});let s;a.CSSStyleSheet.prototype.replace&&(s=a.CSSStyleSheet.prototype.replace,a.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:et((d,f,p)=>{const[m]=p,{id:g,styleId:y}=da(f,t,n.styleMirror);return(g&&g!==-1||y&&y!==-1)&&e({id:g,styleId:y,replace:m}),d.apply(f,p)})}));let l;a.CSSStyleSheet.prototype.replaceSync&&(l=a.CSSStyleSheet.prototype.replaceSync,a.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:et((d,f,p)=>{const[m]=p,{id:g,styleId:y}=da(f,t,n.styleMirror);return(g&&g!==-1||y&&y!==-1)&&e({id:g,styleId:y,replaceSync:m}),d.apply(f,p)})}));const c={};Ll("CSSGroupingRule")?c.CSSGroupingRule=a.CSSGroupingRule:(Ll("CSSMediaRule")&&(c.CSSMediaRule=a.CSSMediaRule),Ll("CSSConditionRule")&&(c.CSSConditionRule=a.CSSConditionRule),Ll("CSSSupportsRule")&&(c.CSSSupportsRule=a.CSSSupportsRule));const u={};return Object.entries(c).forEach(([d,f])=>{u[d]={insertRule:f.prototype.insertRule,deleteRule:f.prototype.deleteRule},f.prototype.insertRule=new Proxy(u[d].insertRule,{apply:et((p,m,g)=>{const[y,w]=g,{id:b,styleId:E}=da(m.parentStyleSheet,t,n.styleMirror);return(b&&b!==-1||E&&E!==-1)&&e({id:b,styleId:E,adds:[{rule:y,index:[...zc(m),w||0]}]}),p.apply(m,g)})}),f.prototype.deleteRule=new Proxy(u[d].deleteRule,{apply:et((p,m,g)=>{const[y]=g,{id:w,styleId:b}=da(m.parentStyleSheet,t,n.styleMirror);return(w&&w!==-1||b&&b!==-1)&&e({id:w,styleId:b,removes:[{index:[...zc(m),y]}]}),p.apply(m,g)})})}),et(()=>{a.CSSStyleSheet.prototype.insertRule=o,a.CSSStyleSheet.prototype.deleteRule=i,s&&(a.CSSStyleSheet.prototype.replace=s),l&&(a.CSSStyleSheet.prototype.replaceSync=l),Object.entries(c).forEach(([d,f])=>{f.prototype.insertRule=u[d].insertRule,f.prototype.deleteRule=u[d].deleteRule})})}function Fw({mirror:e,stylesheetManager:t},n){let a=null;n.nodeName==="#document"?a=e.getId(n):a=e.getId(n.host);const o=n.nodeName==="#document"?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,i=o?.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!o||!i?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(s){const l=i.set?.call(this,s);if(a!==null&&a!==-1)try{t.adoptStyleSheets(s,a)}catch{}return l}}),et(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function GY({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:a},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:et((l,c,u)=>{const[d,f,p]=u;if(n.has(d))return i.apply(c,[d,f,p]);const{id:m,styleId:g}=da(c.parentRule?.parentStyleSheet,t,a.styleMirror);return(m&&m!==-1||g&&g!==-1)&&e({id:m,styleId:g,set:{property:d,value:f,priority:p},index:zc(c.parentRule)}),l.apply(c,u)})});const s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:et((l,c,u)=>{const[d]=u;if(n.has(d))return s.apply(c,[d]);const{id:f,styleId:p}=da(c.parentRule?.parentStyleSheet,t,a.styleMirror);return(f&&f!==-1||p&&p!==-1)&&e({id:f,styleId:p,remove:{property:d},index:zc(c.parentRule)}),l.apply(c,u)})}),et(()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s})}function KY({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:a,mirror:o,sampling:i,doc:s}){const l=et(u=>As(et(d=>{const f=rl(d);if(!f||En(f,t,n,a,!0))return;const{currentTime:p,volume:m,muted:g,playbackRate:y}=f;e({type:u,id:o.getId(f),currentTime:p,volume:m,muted:g,playbackRate:y})}),i.media||500)),c=[pn("play",l(jo.Play),s),pn("pause",l(jo.Pause),s),pn("seeked",l(jo.Seeked),s),pn("volumechange",l(jo.VolumeChange),s),pn("ratechange",l(jo.RateChange),s)];return et(()=>{c.forEach(u=>u())})}function XY({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const a=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(c,u,d){const f=new i(c,u,d);return o.set(f,{family:c,buffer:typeof u!="string",descriptors:d,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),f};const s=th(t.fonts,"add",function(l){return function(c){return Tu(et(()=>{const u=o.get(c);u&&(e(u),o.delete(c))}),0),l.apply(this,[c])}});return a.push(()=>{n.FontFace=i}),a.push(s),et(()=>{a.forEach(l=>l())})}function JY(e){const{doc:t,mirror:n,blockClass:a,blockSelector:o,unblockSelector:i,selectionCb:s}=e;let l=!0;const c=et(()=>{const u=t.getSelection();if(!u||l&&u?.isCollapsed)return;l=u.isCollapsed||!1;const d=[],f=u.rangeCount||0;for(let p=0;p<f;p++){const m=u.getRangeAt(p),{startContainer:g,startOffset:y,endContainer:w,endOffset:b}=m;En(g,a,o,i,!0)||En(w,a,o,i,!0)||d.push({start:n.getId(g),startOffset:y,end:n.getId(w),endOffset:b})}s({ranges:d})});return c(),pn("selectionchange",c)}function QY({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:th(n.customElements,"define",function(o){return function(i,s,l){try{t({define:{name:i}})}catch{}return o.apply(this,[i,s,l])}})}function ZY(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let a;e.recordDOM&&(a=zw(e,e.doc));const o=jY(e),i=HY(e),s=Vw(e),l=UY(e,{win:n}),c=qY(e),u=KY(e);let d=()=>{},f=()=>{},p=()=>{},m=()=>{};e.recordDOM&&(d=YY(e,{win:n}),f=Fw(e,e.doc),p=GY(e,{win:n}),e.collectFonts&&(m=XY(e)));const g=JY(e),y=QY(e),w=[];for(const b of e.plugins)w.push(b.observer(b.callback,n,b.options));return et(()=>{Ko.forEach(b=>b.reset()),a?.disconnect(),o(),i(),s(),l(),c(),u(),d(),f(),p(),m(),g(),y(),w.forEach(b=>b())})}function Bl(e){return typeof window[e]<"u"}function Ll(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class ep{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,a,o){const i=a||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 a=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return n.map(i=>this.getId(t,i,a,o))}getRemoteId(t,n,a){const o=a||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const i=o.get(n);return i||-1}getRemoteIds(t,n){const a=this.getRemoteIdToIdMap(t);return n.map(o=>this.getRemoteId(t,o,a))}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 eG{constructor(){this.crossOriginIframeMirror=new ep(eh),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class tG{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new ep(eh),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ep(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}),this.recordCrossOriginIframes&&t.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(t);const a=rh(t);a&&a.adoptedStyleSheets&&a.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(a.adoptedStyleSheets,this.mirror.getId(a))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const o=this.crossOriginIframeMap.get(t.source);if(!o)return;const i=this.transformCrossOriginEvent(o,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case Ye.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const a=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,a),this.patchRootIdOnNode(n.data.node,a),{timestamp:n.timestamp,type:Ye.IncrementalSnapshot,data:{source:je.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ye.Meta:case Ye.Load:case Ye.DomContentLoaded:return!1;case Ye.Plugin:return n;case Ye.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Ye.IncrementalSnapshot:switch(n.data.source){case je.Mutation:return n.data.adds.forEach(a=>{this.replaceIds(a,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(a.node,t);const o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(a.node,o)}),n.data.removes.forEach(a=>{this.replaceIds(a,t,["parentId","id"])}),n.data.attributes.forEach(a=>{this.replaceIds(a,t,["id"])}),n.data.texts.forEach(a=>{this.replaceIds(a,t,["id"])}),n;case je.Drag:case je.TouchMove:case je.MouseMove:return n.data.positions.forEach(a=>{this.replaceIds(a,t,["id"])}),n;case je.ViewportResize:return!1;case je.MediaInteraction:case je.MouseInteraction:case je.Scroll:case je.CanvasMutation:case je.Input:return this.replaceIds(n.data,t,["id"]),n;case je.StyleSheetRule:case je.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case je.Font:return n;case je.Selection:return n.data.ranges.forEach(a=>{this.replaceIds(a,t,["start","end"])}),n;case je.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),n.data.styles?.forEach(a=>{this.replaceStyleIds(a,t,["styleId"])}),n}}return!1}replace(t,n,a,o){for(const i of o)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=t.getIds(a,n[i]):n[i]=t.getId(a,n[i]));return n}replaceIds(t,n,a){return this.replace(this.crossOriginIframeMirror,t,n,a)}replaceStyleIds(t,n,a){return this.replace(this.crossOriginIframeStyleMirror,t,n,a)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(a=>{this.replaceIdOnNode(a,n)})}patchRootIdOnNode(t,n){t.type!==Yt.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(a=>{this.patchRootIdOnNode(a,n)})}}class nG{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class rG{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(!us(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const a=zw({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>a.disconnect()),this.restoreHandlers.push(Vw({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),Tu(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(Fw({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=rh(t),a=DY(t);!n||!a||this.patchAttachShadow(a.Element,n)}patchAttachShadow(t,n){const a=this;this.restoreHandlers.push(th(t.prototype,"attachShadow",function(o){return function(i){const s=o.call(this,i);return this.shadowRoot&&Rw(this)&&a.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var U1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",aG=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Dl=0;Dl<U1.length;Dl++)aG[U1.charCodeAt(Dl)]=Dl;class W1{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class oG{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new MY,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 a={id:n,styleIds:[]},o=[];for(const i of t){let s;this.styleMirror.has(i)?s=this.styleMirror.getId(i):(s=this.styleMirror.add(i),o.push({styleId:s,rules:Array.from(i.rules||CSSRule,(l,c)=>({rule:bw(l),index:c}))})),a.styleIds.push(s)}o.length>0&&(a.styles=o),this.adoptedStyleSheetCb(a)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class iG{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const a=this.nodeMap.get(t);return a&&Array.from(a).some(o=>o!==n)}add(t,n){this.active||(this.active=!0,BY(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let It,Vc;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Gn=iY();function qr(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:a,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:l="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:f=null,maskTextSelector:p=null,unmaskTextSelector:m=null,inlineStylesheet:g=!0,maskAllInputs:y,maskInputOptions:w,slimDOMOptions:b,maskAttributeFn:E,maskInputFn:_,maskTextFn:v,maxCanvasSize:x=null,packFn:C,sampling:P={},dataURLOptions:O={},mousemoveWait:A,recordDOM:L=!0,recordCanvas:U=!1,recordCrossOriginIframes:z=!1,recordAfter:R=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:I=!1,collectFonts:B=!1,inlineImages:M=!1,plugins:$,keepIframeSrcFn:K=()=>!1,ignoreCSSAttributes:V=new Set([]),errorHandler:Z,onMutation:q,getCanvasManager:oe}=e;VY(Z);const j=z?window.parent===window:!0;let W=!1;if(!j)try{window.parent.document&&(W=!1)}catch{W=!0}if(j&&!t)throw new Error("emit function is required");if(!j&&!W)return()=>{};A!==void 0&&P.mousemove===void 0&&(P.mousemove=A),Gn.reset();const Y=y===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:w!==void 0?w:{},H=b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:b==="all",headMetaDescKeywords:b==="all"}:b||{};IY();let T,J=0;const le=pe=>{for(const Ie of $||[])Ie.eventProcessor&&(pe=Ie.eventProcessor(pe));return C&&!W&&(pe=C(pe)),pe};It=(pe,Ie)=>{const xe=pe;if(xe.timestamp=$c(),Ko[0]?.isFrozen()&&xe.type!==Ye.FullSnapshot&&!(xe.type===Ye.IncrementalSnapshot&&xe.data.source===je.Mutation)&&Ko.forEach(X=>X.unfreeze()),j)t?.(le(xe),Ie);else if(W){const X={type:"rrweb",event:le(xe),origin:window.location.origin,isCheckout:Ie};window.parent.postMessage(X,"*")}if(xe.type===Ye.FullSnapshot)T=xe,J=0;else if(xe.type===Ye.IncrementalSnapshot){if(xe.data.source===je.Mutation&&xe.data.isAttachIframe)return;J++;const X=a&&J>=a,re=n&&T&&xe.timestamp-T.timestamp>n;(X||re)&&Ae(!0)}};const Oe=pe=>{It({type:Ye.IncrementalSnapshot,data:{source:je.Mutation,...pe}})},ee=pe=>It({type:Ye.IncrementalSnapshot,data:{source:je.Scroll,...pe}}),Te=pe=>It({type:Ye.IncrementalSnapshot,data:{source:je.CanvasMutation,...pe}}),ae=pe=>It({type:Ye.IncrementalSnapshot,data:{source:je.AdoptedStyleSheet,...pe}}),ue=new oG({mutationCb:Oe,adoptedStyleSheetCb:ae}),D=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new eG:new tG({mirror:Gn,mutationCb:Oe,stylesheetManager:ue,recordCrossOriginIframes:z,wrappedEmit:It});for(const pe of $||[])pe.getMirror&&pe.getMirror({nodeMirror:Gn,crossOriginIframeMirror:D.crossOriginIframeMirror,crossOriginIframeStyleMirror:D.crossOriginIframeStyleMirror});const de=new iG,fe=lG(oe,{mirror:Gn,win:window,mutationCb:pe=>It({type:Ye.IncrementalSnapshot,data:{source:je.CanvasMutation,...pe}}),recordCanvas:U,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:x,sampling:P.canvas,dataURLOptions:O,errorHandler:Z}),ce=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new nG:new rG({mutationCb:Oe,scrollCb:ee,bypassOptions:{onMutation:q,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:g,maskInputOptions:Y,dataURLOptions:O,maskAttributeFn:E,maskTextFn:v,maskInputFn:_,recordCanvas:U,inlineImages:M,sampling:P,slimDOMOptions:H,iframeManager:D,stylesheetManager:ue,canvasManager:fe,keepIframeSrcFn:K,processedNodeManager:de},mirror:Gn}),Ae=(pe=!1)=>{if(!L)return;It({type:Ye.Meta,data:{href:window.location.href,width:Mw(),height:Iw()}},pe),ue.reset(),ce.init(),Ko.forEach(xe=>xe.lock());const Ie=PY(document,{mirror:Gn,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:g,maskAllInputs:Y,maskAttributeFn:E,maskInputFn:_,maskTextFn:v,slimDOM:H,dataURLOptions:O,recordCanvas:U,inlineImages:M,onSerialize:xe=>{Bw(xe,Gn)&&D.addIframe(xe),Lw(xe,Gn)&&ue.trackLinkElement(xe),Qf(xe)&&ce.addShadowRoot(xe.shadowRoot,document)},onIframeLoad:(xe,X)=>{D.attachIframe(xe,X),xe.contentWindow&&fe.addWindow(xe.contentWindow),ce.observeAttachShadow(xe)},onStylesheetLoad:(xe,X)=>{ue.attachLinkElement(xe,X)},keepIframeSrcFn:K});if(!Ie)return console.warn("Failed to snapshot the document");It({type:Ye.FullSnapshot,data:{node:Ie,initialOffset:Aw(window)}}),Ko.forEach(xe=>xe.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ue.adoptStyleSheets(document.adoptedStyleSheets,Gn.getId(document))};Vc=Ae;try{const pe=[],Ie=X=>et(ZY)({onMutation:q,mutationCb:Oe,mousemoveCb:(re,ye)=>It({type:Ye.IncrementalSnapshot,data:{source:ye,positions:re}}),mouseInteractionCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.MouseInteraction,...re}}),scrollCb:ee,viewportResizeCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.ViewportResize,...re}}),inputCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.Input,...re}}),mediaInteractionCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.MediaInteraction,...re}}),styleSheetRuleCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.StyleSheetRule,...re}}),styleDeclarationCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.StyleDeclaration,...re}}),canvasMutationCb:Te,fontCb:re=>It({type:Ye.IncrementalSnapshot,data:{source:je.Font,...re}}),selectionCb:re=>{It({type:Ye.IncrementalSnapshot,data:{source:je.Selection,...re}})},customElementCb:re=>{It({type:Ye.IncrementalSnapshot,data:{source:je.CustomElement,...re}})},blockClass:o,ignoreClass:l,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:m,maskInputOptions:Y,inlineStylesheet:g,sampling:P,recordDOM:L,recordCanvas:U,inlineImages:M,userTriggeredOnInput:I,collectFonts:B,doc:X,maskAttributeFn:E,maskInputFn:_,maskTextFn:v,keepIframeSrcFn:K,blockSelector:i,unblockSelector:s,slimDOMOptions:H,dataURLOptions:O,mirror:Gn,iframeManager:D,stylesheetManager:ue,shadowDomManager:ce,processedNodeManager:de,canvasManager:fe,ignoreCSSAttributes:V,plugins:$?.filter(re=>re.observer)?.map(re=>({observer:re.observer,options:re.options,callback:ye=>It({type:Ye.Plugin,data:{plugin:re.name,payload:ye}})}))||[]},{});D.addLoadListener(X=>{try{pe.push(Ie(X.contentDocument))}catch(re){console.warn(re)}});const xe=()=>{Ae(),pe.push(Ie(document))};return document.readyState==="interactive"||document.readyState==="complete"?xe():(pe.push(pn("DOMContentLoaded",()=>{It({type:Ye.DomContentLoaded,data:{}}),R==="DOMContentLoaded"&&xe()})),pe.push(pn("load",()=>{It({type:Ye.Load,data:{}}),R==="load"&&xe()},window))),()=>{pe.forEach(X=>X()),de.destroy(),Vc=void 0,FY()}}catch(pe){console.warn(pe)}}function sG(e){if(!Vc)throw new Error("please take full snapshot after start recording");Vc(e)}qr.mirror=Gn;qr.takeFullSnapshot=sG;function lG(e,t){try{return e?e(t):new W1}catch{return console.warn("Unable to initialize CanvasManager"),new W1}}var q1;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(q1||(q1={}));const cG=3,uG=5;function ah(e){return e>9999999999?e:e*1e3}function Dd(e){return e>9999999999?e/1e3:e}function al(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Ye.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Kn(t,10,1e3)}}),t.category==="console")))}const dG="button,a";function jw(e){return e.closest(dG)||e}function Hw(e){const t=Uw(e);return!t||!(t instanceof Element)?t:jw(t)}function Uw(e){return fG(e)?e.target:e}function fG(e){return typeof e=="object"&&!!e&&"target"in e}let fa;function pG(e){return fa||(fa=[],mG()),fa.push(e),()=>{const t=fa?fa.indexOf(e):-1;t>-1&&fa.splice(t,1)}}function mG(){wn(bt,"open",function(e){return function(...t){if(fa)try{fa.forEach(n=>n())}catch{}return e.apply(bt,t)}})}const hG=new Set([je.Mutation,je.StyleSheetRule,je.StyleDeclaration,je.AdoptedStyleSheet,je.CanvasMutation,je.Selection,je.MediaInteraction]);function vG(e,t,n){e.handleClick(t,n)}class gG{constructor(t,n,a=al){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=a}addListeners(){const t=pG(()=>{this._lastMutation=Y1()});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(bG(n,this._ignoreSelector)||!wG(t))return;const a={timestamp:Dd(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(o=>o.node===a.node&&Math.abs(o.timestamp-a.timestamp)<1)||(this._clicks.push(a),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Dd(t)}registerScroll(t=Date.now()){this._lastScroll=Dd(t)}registerClick(t){const n=jw(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=Y1();this._clicks.forEach(a=>{!a.mutationAfter&&this._lastMutation&&(a.mutationAfter=a.timestamp<=this._lastMutation?this._lastMutation-a.timestamp:void 0),!a.scrollAfter&&this._lastScroll&&(a.scrollAfter=a.timestamp<=this._lastScroll?this._lastScroll-a.timestamp:void 0),a.timestamp+this._timeout<=n&&t.push(a)});for(const a of t){const o=this._clicks.indexOf(a);o>-1&&(this._generateBreadcrumbs(a),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,a=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!a&&!o,{clickCount:s,clickBreadcrumb:l}=t;if(i){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=c<this._timeout*1e3?"mutation":"timeout",d={type:"default",message:l.message,timestamp:l.timestamp,category:"ui.slowClickDetected",data:{...l.data,url:bt.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:u,clickCount:s||1}};this._addBreadcrumbEvent(n,d);return}if(s>1){const c={type:"default",message:l.message,timestamp:l.timestamp,category:"ui.multiClick",data:{...l.data,url:bt.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=nl(()=>this._checkClicks(),1e3)}}const yG=["A","BUTTON","INPUT"];function bG(e,t){return!!(!yG.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 wG(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Y1(){return Date.now()/1e3}function kG(e,t){try{if(!_G(t))return;const{source:n}=t.data;if(hG.has(n)&&e.registerMutation(t.timestamp),n===je.Scroll&&e.registerScroll(t.timestamp),SG(t)){const{type:a,id:o}=t.data,i=qr.mirror.getNode(o);i instanceof HTMLElement&&a===fn.Click&&e.registerClick(i)}}catch{}}function _G(e){return e.type===cG}function SG(e){return e.data.source===je.MouseInteraction}function Cr(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var oh=(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",e))(oh||{});const CG=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function xG(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(CG.has(n)){let a=n;(n==="data-testid"||n==="data-test-id")&&(a="testId"),t[a]=e[n]}return t}const EG=e=>t=>{if(!e.isEnabled())return;const n=TG(t);if(!n)return;const a=t.name==="click",o=a?t.event:void 0;a&&e.clickDetector&&o?.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&vG(e.clickDetector,n,Hw(t.event)),al(e,n)};function Ww(e,t){const n=qr.mirror.getId(e),a=n&&qr.mirror.getNode(n),o=a&&qr.mirror.getMeta(a),i=o&&AG(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===oh.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:xG(i.attributes)}}:{}}}function TG(e){const{target:t,message:n}=PG(e);return Cr({category:`ui.${e.name}`,...Ww(t,n)})}function PG(e){const t=e.name==="click";let n,a=null;try{a=t?Hw(e.event):Uw(e.event),n=Hn(a,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:a,message:n}}function AG(e){return e.type===oh.Element}function IG(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=MG(t);n&&al(e,n)}function MG(e){const{metaKey:t,shiftKey:n,ctrlKey:a,altKey:o,key:i,target:s}=e;if(!s||NG(s)||!i)return null;const l=t||a||o,c=i.length===1;if(!l&&c)return null;const u=Hn(s,{maxStringLength:200})||"<unknown>",d=Ww(s,u);return Cr({category:"ui.keyDown",message:u,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:a,altKey:o,key:i}})}function NG(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const OG={resource:$G,paint:DG,navigation:RG};function Rl(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function BG(e){return e.map(LG).filter(Boolean)}function LG(e){const t=OG[e.entryType];return t?t(e):null}function Ti(e){return((hn()||bt.performance.timeOrigin)+e)/1e3}function DG(e){const{duration:t,entryType:n,name:a,startTime:o}=e,i=Ti(o);return{type:n,name:a,start:i,end:i+t,data:void 0}}function RG(e){const{entryType:t,name:n,decodedBodySize:a,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:l,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:d,loadEventEnd:f,redirectCount:p,startTime:m,transferSize:g,type:y}=e;return o===0?null:{type:`${t}.${y}`,start:Ti(m),end:Ti(i),name:n,data:{size:g,decodedBodySize:a,encodedBodySize:s,duration:o,domInteractive:u,domContentLoadedEventStart:l,domContentLoadedEventEnd:c,loadEventStart:d,loadEventEnd:f,domComplete:i,redirectCount:p}}}function $G(e){const{entryType:t,initiatorType:n,name:a,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:l,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Ti(i),end:Ti(o),name:a,data:{size:u,statusCode:c,decodedBodySize:s,encodedBodySize:l}}}function zG(e){const t=e.entries[e.entries.length-1],n=t?.element?[t.element]:void 0;return Pu(e,"largest-contentful-paint",n)}function VG(e){return e.sources!==void 0}function FG(e){const t=[],n=[];for(const a of e.entries)if(VG(a)){const o=[];for(const i of a.sources)if(i.node){n.push(i.node);const s=qr.mirror.getId(i.node);s&&o.push(s)}t.push({value:a.value,nodeIds:o.length?o:void 0})}return Pu(e,"cumulative-layout-shift",n,t)}function jG(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return Pu(e,"first-input-delay",n)}function HG(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return Pu(e,"interaction-to-next-paint",n)}function Pu(e,t,n,a){const o=e.value,i=e.rating,s=Ti(o);return{type:"web-vital",name:t,start:s,end:s,data:{value:o,size:o,rating:i,nodeIds:n?n.map(l=>qr.mirror.getId(l)):void 0,attributions:a}}}function UG(e){function t(o){e.performanceEntries.includes(o)||e.performanceEntries.push(o)}function n({entries:o}){o.forEach(t)}const a=[];return["navigation","paint","resource"].forEach(o=>{a.push(wo(o,n))}),a.push(Gm(Rl(zG,e)),Ym(Rl(FG,e)),rw(Rl(jG,e)),aw(Rl(HG,e))),()=>{a.forEach(o=>o())}}const ze=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,WG='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]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(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,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=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:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}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 s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[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=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];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(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),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(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,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 s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),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(s),32768),this.s.z=n.length-s+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.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!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,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.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)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}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.prototype.flush=function(){j.prototype.flush.call(this)},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(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}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(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new 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 qG(){const e=new Blob([WG]);return URL.createObjectURL(e)}const G1=["log","warn","error"],ec="[Replay] ";function Rd(e,t="info"){Ia({category:"console",data:{logger:"replay"},level:t,message:`${ec}${e}`},{level:t})}function YG(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:a=>{e=!!a.captureExceptions,t=!!a.traceInternals}};return ze?(G1.forEach(a=>{n[a]=(...o)=>{ke[a](ec,...o),t&&Rd(o.join(""),$3(a))}}),n.exception=(a,...o)=>{o.length&&n.error&&n.error(...o),ke.error(ec,a),e?bu(a):t&&Rd(a,"error")},n.infoTick=(...a)=>{ke.log(ec,...a),t&&setTimeout(()=>Rd(a[0]),0)}):G1.forEach(a=>{n[a]=()=>{}}),n}const Ve=YG();class ih extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Qm}.`)}}class qw{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>Qm)throw new ih;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?ah(t):null}}class GG{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:a})=>{a.success?t():n()},{once:!0}),this._worker.addEventListener("error",a=>{n(a)},{once:!0})}),this._ensureReadyPromise)}destroy(){ze&&Ve.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const a=this._getAndIncrementId();return new Promise((o,i)=>{const s=({data:l})=>{const c=l;if(c.method===t&&c.id===a){if(this._worker.removeEventListener("message",s),!c.success){ze&&Ve.error("Error in compression worker: ",c.response),i(new Error("Error in compression worker"));return}o(c.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:a,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class KG{constructor(t){this._worker=new GG(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=ah(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const a=JSON.stringify(t);return this._totalSize+=a.length,this._totalSize>Qm?Promise.reject(new ih):this._sendEventToWorker(a)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{ze&&Ve.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class XG{constructor(t){this._fallback=new qw,this._compression=new KG(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){ze&&Ve.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:a}=this._fallback,o=[];for(const i of t)o.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._compression.waitForCheckout=a,this._used=this._compression;try{await Promise.all(o),this._fallback.clear()}catch(i){ze&&Ve.exception(i,"Failed to add events when switching buffers.")}}}function JG({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=QG(t);if(n)return n}return ze&&Ve.log("Using simple buffer"),new qw}function QG(e){try{const t=e||ZG();if(!t)return;ze&&Ve.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new XG(n)}catch(t){ze&&Ve.exception(t,"Failed to create compression worker")}}function ZG(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?qG():""}function sh(){try{return"sessionStorage"in bt&&!!bt.sessionStorage}catch{return!1}}function eK(e){tK(),e.session=void 0}function tK(){if(sh())try{bt.sessionStorage.removeItem(Xm)}catch{}}function Yw(e){return e===void 0?!1:Math.random()<e}function lh(e){if(sh())try{bt.sessionStorage.setItem(Xm,JSON.stringify(e))}catch{}}function Gw(e){const t=Date.now(),n=e.id||Nn(),a=e.started||t,o=e.lastActivity||t,i=e.segmentId||0,s=e.sampled,l=e.previousSessionId;return{id:n,started:a,lastActivity:o,segmentId:i,sampled:s,previousSessionId:l}}function nK(e,t){return Yw(e)?"session":t?"buffer":!1}function K1({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:a}={}){const o=nK(e,t),i=Gw({sampled:o,previousSessionId:a});return n&&lh(i),i}function rK(){if(!sh())return null;try{const e=bt.sessionStorage.getItem(Xm);if(!e)return null;const t=JSON.parse(e);return ze&&Ve.infoTick("Loading existing session"),Gw(t)}catch{return null}}function tp(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function Kw(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:a=Date.now()}){return tp(e.started,t,a)||tp(e.lastActivity,n,a)}function Xw(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Kw(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function $d({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},a){const o=a.stickySession&&rK();return o?Xw(o,{sessionIdleExpire:e,maxReplayDuration:t})?(ze&&Ve.infoTick("Session in sessionStorage is expired, creating new one..."),K1(a,{previousSessionId:o.id})):o:(ze&&Ve.infoTick("Creating new session"),K1(a,{previousSessionId:n}))}function aK(e){return e.type===Ye.Custom}function ch(e,t,n){return Qw(e,t)?(Jw(e,t,n),!0):!1}function oK(e,t,n){return Qw(e,t)?Jw(e,t,n):Promise.resolve(null)}async function Jw(e,t,n){const{eventBuffer:a}=e;if(!a||a.waitForCheckout&&!n)return null;const o=e.recordingMode==="buffer";try{n&&o&&a.clear(),n&&(a.hasCheckout=!0,a.waitForCheckout=!1);const i=e.getOptions(),s=iK(t,i.beforeAddRecordingEvent);return s?await a.addEvent(s):void 0}catch(i){const s=i&&i instanceof ih,l=s?"addEventSizeExceeded":"addEvent";if(s&&o)return a.clear(),a.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:l});const c=Qe();c&&c.recordDroppedEvent("internal_sdk_error","replay")}}function Qw(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=ah(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(ze&&Ve.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function iK(e,t){try{if(typeof t=="function"&&aK(e))return t(e)}catch(n){return ze&&Ve.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function uh(e){return!e.type}function np(e){return e.type==="transaction"}function sK(e){return e.type==="replay_event"}function X1(e){return e.type==="feedback"}function lK(e){return(t,n)=>{if(!e.isEnabled()||!uh(t)&&!np(t))return;const a=n?.statusCode;if(!(!a||a<200||a>=300)){if(np(t)){cK(e,t);return}uK(e,t)}}}function cK(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function uK(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:a}=e.getOptions();typeof a=="function"&&!a(t)||nl(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(o){e.handleException(o)}})}function dK(e){return t=>{!e.isEnabled()||!uh(t)||fK(e,t)}}function fK(e,t){const n=t.exception?.values?.[0]?.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const a=Cr({category:"replay.hydrate-error",data:{url:Oi()}});al(e,a)}}function pK(e){const t=Qe();t&&t.on("beforeAddBreadcrumb",n=>mK(e,n))}function mK(e,t){if(!e.isEnabled()||!Zw(t))return;const n=hK(t);n&&al(e,n)}function hK(e){return!Zw(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?vK(e):Cr(e)}function vK(e){const t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return Cr(e);let n=!1;const a=t.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>Ol?(n=!0,`${o.slice(0,Ol)}…`):o;if(typeof o=="object")try{const i=Kn(o,7);return JSON.stringify(i).length>Ol?(n=!0,`${JSON.stringify(i,null,2).slice(0,Ol)}…`):i}catch{}return o});return Cr({...e,data:{...e.data,arguments:a,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Zw(e){return!!e.category}function gK(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function e6(){const e=lt().getPropagationContext().dsc;e&&delete e.replay_id;const t=tn();if(t){const n=na(t);delete n.replay_id}}function yK(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:Ye.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function bK(e,t){return e.recordingMode!=="buffer"||t.message===Jm||!t.exception||t.type?!1:Yw(e.getOptions().errorSampleRate)}function wK(e){return Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:sK(t)?(delete t.breadcrumbs,t):!uh(t)&&!np(t)&&!X1(t)?t:e.checkAndHandleExpiredSession()?X1(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),yK(e,t),t):gK(t,n)&&!e.getOptions()._experiments.captureExceptions?(ze&&Ve.log("Ignoring error from rrweb internals",t),null):((bK(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(e6(),t),{id:"Replay"})}function Au(e,t){return t.map(({type:n,start:a,end:o,name:i,data:s})=>{const l=e.throttledAddEvent({type:Ye.Custom,timestamp:a,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:a,endTimestamp:o,data:s}}});return typeof l=="string"?Promise.resolve(null):l})}function kK(e){const{from:t,to:n}=e,a=Date.now()/1e3;return{type:"navigation.push",start:a,end:a,name:n,data:{previous:t}}}function _K(e){return t=>{if(!e.isEnabled())return;const n=kK(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Au(e,[n]),!1)))}}function SK(e,t){return ze&&e.getOptions()._experiments.traceInternals?!1:mH(t,Qe())}function t6(e,t){e.isEnabled()&&t!==null&&(SK(e,t.name)||e.addUpdate(()=>(Au(e,[t]),!0)))}function Iu(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=pw(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function n6(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Fc(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},a=n.warnings||[];return n.warnings=[...a,t],e._meta=n,e}function r6(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:a,url:o,method:i,statusCode:s,request:l,response:c}=t;return{type:e,start:n/1e3,end:a/1e3,name:o,data:{method:i,statusCode:s,request:l,response:c}}}function Is(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function ga(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const a={headers:e,size:t},{body:o,warnings:i}=CK(n);return a.body=o,i?.length&&(a._meta={warnings:i}),a}function rp(e,t){return Object.entries(e).reduce((n,[a,o])=>{const i=a.toLowerCase();return t.includes(i)&&e[a]&&(n[i]=o),n},{})}function CK(e){if(!e||typeof e!="string")return{body:e};const t=e.length>I1,n=xK(e);if(t){const a=e.slice(0,I1);return n?{body:a,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${a}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function xK(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function jc(e,t){const n=EK(e);return Wr(n,t)}function EK(e,t=bt.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(bt.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const a=n.href;return!e.endsWith("/")&&a.endsWith("/")?a.slice(0,-1):a}async function TK(e,t,n){try{const a=await AK(e,t,n),o=r6("resource.fetch",a);t6(n.replay,o)}catch(a){ze&&Ve.exception(a,"Failed to capture fetch breadcrumb")}}function PK(e,t){const{input:n,response:a}=t,o=n?hw(n):void 0,i=Iu(o),s=a?n6(a.headers.get("content-length")):void 0;i!==void 0&&(e.data.request_body_size=i),s!==void 0&&(e.data.response_body_size=s)}async function AK(e,t,n){const a=Date.now(),{startTimestamp:o=a,endTimestamp:i=a}=t,{url:s,method:l,status_code:c=0,request_body_size:u,response_body_size:d}=e.data,f=jc(s,n.networkDetailAllowUrls)&&!jc(s,n.networkDetailDenyUrls),p=f?IK(n,t.input,u):Is(u),m=await MK(f,n,t.response,d);return{startTimestamp:o,endTimestamp:i,url:s,method:l,statusCode:c,request:p,response:m}}function IK({networkCaptureBodies:e,networkRequestHeaders:t},n,a){const o=n?BK(n,t):{};if(!e)return ga(o,a,void 0);const i=hw(n),[s,l]=mw(i,Ve),c=ga(o,a,s);return l?Fc(c,l):c}async function MK(e,{networkCaptureBodies:t,networkResponseHeaders:n},a,o){if(!e&&o!==void 0)return Is(o);const i=a?a6(a.headers,n):{};if(!a||!t&&o!==void 0)return ga(i,o,void 0);const[s,l]=await OK(a),c=NK(s,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:i});return l?Fc(c,l):c}function NK(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:a,headers:o}){try{const i=e?.length&&n===void 0?Iu(e):n;return a?t?ga(o,i,e):ga(o,i,void 0):Is(i)}catch(i){return ze&&Ve.exception(i,"Failed to serialize response body"),ga(o,n,void 0)}}async function OK(e){const t=LK(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await DK(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(ze&&Ve.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(ze&&Ve.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function a6(e,t){const n={};return t.forEach(a=>{e.get(a)&&(n[a]=e.get(a))}),n}function BK(e,t){return e.length===1&&typeof e[0]!="string"?J1(e[0],t):e.length===2?J1(e[1],t):{}}function J1(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?a6(n,t):Array.isArray(n)?{}:rp(n,t):{}}function LK(e){try{return e.clone()}catch(t){ze&&Ve.exception(t,"Failed to clone response body")}}function DK(e){return new Promise((t,n)=>{const a=nl(()=>n(new Error("Timeout while trying to read response body")),500);RK(e).then(o=>t(o),o=>n(o)).finally(()=>clearTimeout(a))})}async function RK(e){return await e.text()}async function $K(e,t,n){try{const a=VK(e,t,n),o=r6("resource.xhr",a);t6(n.replay,o)}catch(a){ze&&Ve.exception(a,"Failed to capture xhr breadcrumb")}}function zK(e,t){const{xhr:n,input:a}=t;if(!n)return;const o=Iu(a),i=n.getResponseHeader("content-length")?n6(n.getResponseHeader("content-length")):UK(n.response,n.responseType);o!==void 0&&(e.data.request_body_size=o),i!==void 0&&(e.data.response_body_size=i)}function VK(e,t,n){const a=Date.now(),{startTimestamp:o=a,endTimestamp:i=a,input:s,xhr:l}=t,{url:c,method:u,status_code:d=0,request_body_size:f,response_body_size:p}=e.data;if(!c)return null;if(!l||!jc(c,n.networkDetailAllowUrls)||jc(c,n.networkDetailDenyUrls)){const C=Is(f),P=Is(p);return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:d,request:C,response:P}}const m=l[eo],g=m?rp(m.request_headers,n.networkRequestHeaders):{},y=rp(FK(l),n.networkResponseHeaders),[w,b]=n.networkCaptureBodies?mw(s,Ve):[void 0],[E,_]=n.networkCaptureBodies?jK(l):[void 0],v=ga(g,f,w),x=ga(y,p,E);return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:d,request:b?Fc(v,b):v,response:_?Fc(x,_):x}}function FK(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
670
670
  `).reduce((n,a)=>{const[o,i]=a.split(": ");return i&&(n[o.toLowerCase()]=i),n},{}):{}}function jK(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return HK(e.response,e.responseType)}catch(n){t.push(n)}return ze&&Ve.warn("Failed to get xhr response body",...t),[void 0]}function HK(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return ze&&Ve.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ze&&Ve.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function UK(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Iu(n)}catch{return}}function WK(e){const t=Qe();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:a,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s}=e.getOptions(),l={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:a,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(c,u)=>qK(l,c,u))}catch{}}function qK(e,t,n){if(t.data)try{YK(t)&&KK(n)&&(zK(t,n),$K(t,n,e)),GK(t)&&XK(n)&&(PK(t,n),TK(t,n,e))}catch(a){ze&&Ve.exception(a,"Error when enriching network breadcrumb")}}function YK(e){return e.category==="xhr"}function GK(e){return e.category==="fetch"}function KK(e){return e?.xhr}function XK(e){return e?.response}function JK(e,{autoFlushOnFeedback:t}){const n=Qe();uw(EG(e)),Cu(_K(e)),pK(e),WK(e);const a=wK(e);jj(a),n&&(n.on("beforeSendEvent",dK(e)),n.on("afterSendEvent",lK(e)),n.on("createDsc",o=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(o.replay_id=i)}),n.on("spanStart",o=>{e.lastActiveSpan=o}),n.on("spanEnd",o=>{e.lastActiveSpan=o}),n.on("beforeSendFeedback",async(o,i)=>{const s=e.getSessionId();i?.includeReplay&&e.isEnabled()&&s&&o.contexts?.feedback&&(o.contexts.feedback.source==="api"&&t&&await e.flush(),o.contexts.feedback.replay_id=s)}),t&&n.on("openFeedbackWidget",async()=>{await e.flush()}))}async function QK(e){try{return Promise.all(Au(e,[ZK(bt.performance.memory)]))}catch{return[]}}function ZK(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:a}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:a}}}}function eX(e,t,n){return wH(e,t,{...n,setTimeoutImpl:nl})}const $l=rt.navigator;function tX(){return/iPhone|iPad|iPod/i.test($l?.userAgent??"")||/Macintosh/i.test($l?.userAgent??"")&&$l?.maxTouchPoints&&$l?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function nX(e){let t=!1;return(n,a)=>{if(!e.checkAndHandleExpiredSession()){ze&&Ve.warn("Received replay event after session expired.");return}const o=a||!t;t=!0,e.clickDetector&&kG(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&o&&e.setInitialState(),!ch(e,n,o))return!0;if(!o)return!1;const i=e.session;if(aX(e,o),e.recordingMode==="buffer"&&i&&e.eventBuffer){const s=e.eventBuffer.getEarliestTimestamp();s&&(ze&&Ve.log(`Updating session start time to earliest event in buffer to ${new Date(s)}`),i.started=s,e.getOptions().stickySession&&lh(i))}return i?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function rX(e){const t=e.getOptions();return{type:Ye.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function aX(e,t){!t||!e.session||e.session.segmentId!==0||ch(e,rX(e),!1)}function oX(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function iX(e,t,n,a){return To(g3(e,zm(e),a,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function sX({recordingData:e,headers:t}){let n;const a=`${JSON.stringify(t)}
671
- `;if(typeof e=="string")n=`${a}${e}`;else{const i=new TextEncoder().encode(a);n=new Uint8Array(i.length+e.length),n.set(i),n.set(e,i.length)}return n}async function lX({client:e,scope:t,replayId:n,event:a}){const o=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:n,integrations:o};e.emit("preprocessEvent",a,i);const s=await S3(e.getOptions(),a,i,t,e,Dr());if(!s)return null;e.emit("postprocessEvent",s,i),s.platform=s.platform||"javascript";const l=e.getSdkMetadata(),{name:c,version:u}=l?.sdk||{};return s.sdk={...s.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},s}async function cX({recordingData:e,replayId:t,segmentId:n,eventContext:a,timestamp:o,session:i}){const s=sX({recordingData:e,headers:{segment_id:n}}),{urls:l,errorIds:c,traceIds:u,initialTimestamp:d}=a,f=Qe(),p=lt(),m=f?.getTransport(),v=f?.getDsn();if(!f||!m||!v||!i.sampled)return ra({});const y={type:zq,replay_start_timestamp:d/1e3,timestamp:o/1e3,error_ids:c,trace_ids:u,urls:l,replay_id:t,segment_id:n,replay_type:i.sampled},w=await lX({scope:p,client:f,replayId:t,event:y});if(!w)return f.recordDroppedEvent("event_processor","replay"),ze&&Ve.log("An event processor returned `null`, will not send event."),ra({});delete w.sdkProcessingMetadata;const b=iX(w,s,v,f.getOptions().tunnel);let E;try{E=await m.send(b)}catch(g){const x=new Error(Jm);try{x.cause=g}catch{}throw x}if(typeof E.statusCode=="number"&&(E.statusCode<200||E.statusCode>=300))throw new o6(E.statusCode);const _=L3({},E);if(B3(_,"replay"))throw new dh(_);return E}class o6 extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class dh extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function i6(e,t={count:0,interval:Wq}){const{recordingData:n,onError:a}=e;if(n.length)try{return await cX(e),!0}catch(o){if(o instanceof o6||o instanceof dh)throw o;if(Vj("Replays",{_retryCount:t.count}),a&&a(o),t.count>=qq){const i=new Error(`${Jm} - max retries exceeded`);try{i.cause=o}catch{}throw i}return t.interval*=++t.count,new Promise((i,s)=>{nl(async()=>{try{await i6(e,t),i(!0)}catch(l){s(l)}},t.interval)})}}const s6="__THROTTLED",uX="__SKIPPED";function dX(e,t,n){const a=new Map,o=l=>{const c=l-n;a.forEach((u,d)=>{d<c&&a.delete(d)})},i=()=>[...a.values()].reduce((l,c)=>l+c,0);let s=!1;return(...l)=>{const c=Math.floor(Date.now()/1e3);if(o(c),i()>=t){const d=s;return s=!0,d?uX:s6}s=!1;const u=a.get(c)||0;return a.set(c,u+1),e(...l)}}class fX{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:Vq,sessionIdleExpire:Fq},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=eX(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=dX((s,l)=>oK(this,s,l),300,5);const{slowClickTimeout:a,slowClickIgnoreSelectors:o}=this.getOptions(),i=a?{threshold:Math.min(Yq,a),timeout:a,scrollTimeout:Gq,ignoreSelector:o?o.join(","):""}:void 0;if(i&&(this.clickDetector=new gG(this,i)),ze){const s=t._experiments;Ve.setConfig({captureExceptions:!!s.captureExceptions,traceInternals:!!s.traceInternals})}this._handleVisibilityChange=()=>{bt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const s=Cr({category:"ui.blur"});this._doChangeToBackgroundTasks(s)},this._handleWindowFocus=()=>{const s=Cr({category:"ui.focus"});this._doChangeToForegroundTasks(s)},this._handleKeyboardEvent=s=>{IG(this,s)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){ze&&Ve.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:a}=this._options,o=n<=0&&a<=0;if(this._requiresManualStart=o,!o){if(this._initializeSessionForSampling(t),!this.session){ze&&Ve.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",ze&&Ve.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){ze&&Ve.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){ze&&Ve.log("Buffering is in progress, call `flush()` to save the replay");return}ze&&Ve.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=$d({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){ze&&Ve.log("Buffering is in progress, call `flush()` to save the replay");return}ze&&Ve.infoTick("Starting replay in buffer mode");const t=$d({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=qr({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:Uq}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:nX(this),...tX(),onMutation:this._onMutationHandler.bind(this),...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,this.recordingMode="buffer";try{ze&&Ve.log(`Stopping Replay${n?` triggered by ${n}`:""}`),e6(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,eK(this)}catch(a){this.handleException(a)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),ze&&Ve.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),ze&&Ve.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();ze&&Ve.log("Converting buffer to session"),await this.flushImmediate();const a=this.stopRecording();!t||!a||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"||!this._isEnabled||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?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&tp(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${bt.location.pathname}${bt.location.hash}${bt.location.search}`,n=`${bt.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 a=this._throttledAddEvent(t,n);if(a===s6){const o=Cr({category:"replay.throttled"});this.addUpdate(()=>!ch(this,{type:uG,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return a}getCurrentRoute(){const t=this.lastActiveSpan||tn(),n=t&&en(t),o=(n&&tt(n).data||{})[kn];if(!(!n||!o||!["route","custom"].includes(o)))return tt(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=JG({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,a=$d({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=a}_checkSession(){if(!this.session)return!1;const t=this.session;return Xw(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{bt.document.addEventListener("visibilitychange",this._handleVisibilityChange),bt.addEventListener("blur",this._handleWindowBlur),bt.addEventListener("focus",this._handleWindowFocus),bt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(JK(this,{autoFlushOnFeedback:this._options._experiments.autoFlushOnFeedback}),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=UG(this)}_removeListeners(){try{bt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),bt.removeEventListener("blur",this._handleWindowBlur),bt.removeEventListener("focus",this._handleWindowFocus),bt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||Kw(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()){ze&&Ve.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:Ye.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=BG(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(a=>a.start>=n)}return Promise.all(Au(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const a=n.getEarliestTimestamp();a&&a<this._context.initialTimestamp&&(this._context.initialTimestamp=a)}_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){ze&&Ve.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await QK(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 a=this._popEventContext(),o=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await i6({replayId:t,recordingData:i,segmentId:o,eventContext:a,session:this.session,timestamp:n,onError:s=>this.handleException(s)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const a=Qe();if(a){const o=n instanceof dh?"ratelimit_backoff":"send_error";a.recordDroppedEvent(o,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){ze&&Ve.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,o=Date.now()-n;this._debouncedFlush.cancel();const i=o<this._options.minReplayDuration,s=o>this._options.maxReplayDuration+5e3;if(i||s){ze&&Ve.log(`Session duration (${Math.floor(o/1e3)}s) is too ${i?"short":"long"}, not sending replay.`),i&&this._debouncedFlush();return}const l=this.eventBuffer;l&&this.session.segmentId===0&&!l.hasCheckout&&ze&&Ve.log("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&lh(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(l=>{const c=oX(l.target),u=n.join(",");return c?.matches(u)}))return!1;const a=t.length,o=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,s=o&&a>o;if(a>i||s){const l=Cr({category:"replay.mutations",data:{count:a,limit:s}});this._createCustomBreadcrumb(l)}return s?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function Ki(e,t){return[...e,...t].join(",")}function pX({mask:e,unmask:t,block:n,unblock:a,ignore:o}){const i=["base","iframe[srcdoc]:not([src])"],s=Ki(e,[".sentry-mask","[data-sentry-mask]"]),l=Ki(t,[]);return{maskTextSelector:s,unmaskTextSelector:l,blockSelector:Ki(n,[".sentry-block","[data-sentry-block]",...i]),unblockSelector:Ki(a,[]),ignoreSelector:Ki(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function mX({el:e,key:t,maskAttributes:n,maskAllText:a,privacyOptions:o,value:i}){return!a||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 Q1='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',hX=["content-length","content-type","accept"];let Z1=!1;const vX=e=>new gX(e);class gX{constructor({flushMinDelay:t=jq,flushMaxDelay:n=Hq,minReplayDuration:a=Kq,maxReplayDuration:o=M1,stickySession:i=!0,useCompression:s=!0,workerUrl:l,_experiments:c={},maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:f=!0,mutationBreadcrumbLimit:p=750,mutationLimit:m=1e4,slowClickTimeout:v=7e3,slowClickIgnoreSelectors:y=[],networkDetailAllowUrls:w=[],networkDetailDenyUrls:b=[],networkCaptureBodies:E=!0,networkRequestHeaders:_=[],networkResponseHeaders:g=[],mask:x=[],maskAttributes:C=["title","placeholder","aria-label"],unmask:P=[],block:O=[],unblock:A=[],ignore:L=[],maskFn:U,beforeAddRecordingEvent:z,beforeErrorSampling:R,onError:I}={}){this.name="Replay";const B=pX({mask:x,unmask:P,block:O,unblock:A,ignore:L});if(this._recordingOptions={maskAllInputs:d,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:U,maskInputFn:U,maskAttributeFn:(M,$,K)=>mX({maskAttributes:C,maskAllText:u,privacyOptions:B,key:M,value:$,el:K}),...B,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:M=>{try{M.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(a,Xq),maxReplayDuration:Math.min(o,M1),stickySession:i,useCompression:s,workerUrl:l,blockAllMedia:f,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:p,mutationLimit:m,slowClickTimeout:v,slowClickIgnoreSelectors:y,networkDetailAllowUrls:w,networkDetailDenyUrls:b,networkCaptureBodies:E,networkRequestHeaders:eg(_),networkResponseHeaders:eg(g),beforeAddRecordingEvent:z,beforeErrorSampling:R,onError:I,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Q1}`:Q1),this._isInitialized&&_1())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Z1}set _isInitialized(t){Z1=t}afterAllSetup(t){!_1()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay?.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=yX(this._initialOptions,t);this._replay=new fX({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function yX(e,t){const n=t.getOptions(),a={sessionSampleRate:0,errorSampleRate:0,...e},o=bo(n.replaysSessionSampleRate),i=bo(n.replaysOnErrorSampleRate);return o==null&&i==null&&ia(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),o!=null&&(a.sessionSampleRate=o),i!=null&&(a.errorSampleRate=i),a}function eg(e){return[...hX,...e.map(t=>t.toLowerCase())]}function fr(e=0){return((hn()||performance.timeOrigin)+e)/1e3}function bX(e){const t=[];if(e.nextHopProtocol!=null){const{name:n,version:a}=sw(e.nextHopProtocol);t.push(["network.protocol.version",a],["network.protocol.name",n])}return hn()?[...t,["http.request.redirect_start",fr(e.redirectStart)],["http.request.fetch_start",fr(e.fetchStart)],["http.request.domain_lookup_start",fr(e.domainLookupStart)],["http.request.domain_lookup_end",fr(e.domainLookupEnd)],["http.request.connect_start",fr(e.connectStart)],["http.request.secure_connection_start",fr(e.secureConnectionStart)],["http.request.connection_end",fr(e.connectEnd)],["http.request.request_start",fr(e.requestStart)],["http.request.response_start",fr(e.responseStart)],["http.request.response_end",fr(e.responseEnd)]]:t}const tg=new WeakMap,zd=new Map,l6={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function wX(e,t){const{traceFetch:n,traceXHR:a,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:l,onRequestSpanStart:c}={...l6,...t},u=typeof i=="function"?i:p=>!0,d=p=>_X(p,l),f={};n&&(e.addEventProcessor(p=>(p.type==="transaction"&&p.spans&&p.spans.forEach(m=>{if(m.op==="http.client"){const v=zd.get(m.span_id);v&&(m.timestamp=v/1e3,zd.delete(m.span_id))}}),p)),o&&rU(p=>{if(p.response){const m=tg.get(p.response);m&&p.endTimestamp&&zd.set(m,p.endTimestamp)}}),U3(p=>{const m=GH(p,u,d,f);if(p.response&&p.fetchData.__span&&tg.set(p.response,p.fetchData.__span),m){const v=c6(p.fetchData.url),y=v?uo(v).host:void 0;m.setAttributes({"http.url":v,"server.address":y}),s&&ng(m),c?.(m,{headers:p.headers})}})),a&&fw(p=>{const m=SX(p,u,d,f);if(m){s&&ng(m);let v;try{v=new Headers(p.xhr.__sentry_xhr_v3__?.request_headers)}catch{}c?.(m,{headers:v})}})}function kX(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function ng(e){const{url:t}=tt(e).data;if(!t||typeof t!="string")return;const n=wo("resource",({entries:a})=>{a.forEach(o=>{kX(o)&&o.name.endsWith(t)&&(bX(o).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function _X(e,t){const n=Oi();if(n){let a,o;try{a=new URL(e,n),o=new URL(n).origin}catch{return!1}const i=a.origin===o;return t?Wr(a.toString(),t)||i&&Wr(a.pathname,t):i}else{const a=!!e.match(/^\/(?!\/)/);return t?Wr(e,t):a}}function SX(e,t,n,a){const o=e.xhr,i=o?.[eo];if(!o||o.__sentry_own_request__||!i)return;const{url:s,method:l}=i,c=ta()&&t(s);if(e.endTimestamp&&c){const y=o.__sentry_xhr_span_id__;if(!y)return;const w=a[y];w&&i.status_code!==void 0&&(n3(w,i.status_code),w.end(),delete a[y]);return}const u=c6(s),d=uo(u||s),f=YH(s),p=!!tn(),m=c&&p?Pa({name:`${l} ${f}`,attributes:{url:s,type:"xhr","http.method":l,"http.url":u,"server.address":d?.host,[xt]:"auto.http.browser",[ea]:"http.client",...d?.search&&{"http.query":d?.search},...d?.hash&&{"http.fragment":d?.hash}}}):new Ta;o.__sentry_xhr_span_id__=m.spanContext().spanId,a[o.__sentry_xhr_span_id__]=m,n(s)&&CX(o,ta()&&p?m:void 0);const v=Qe();return v&&v.emit("beforeOutgoingRequestSpan",m,e),m}function CX(e,t){const{"sentry-trace":n,baggage:a}=R3({span:t});n&&xX(e,n,a)}function xX(e,t,n){const a=e.__sentry_xhr_v3__?.request_headers;if(!a?.["sentry-trace"])try{if(e.setRequestHeader("sentry-trace",t),n){const o=a?.baggage;(!o||!EX(o))&&e.setRequestHeader("baggage",n)}}catch{}}function EX(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function c6(e){try{return new URL(e,at.location.origin).href}catch{return}}function TX(){at.document?at.document.addEventListener("visibilitychange",()=>{const e=tn();if(!e)return;const t=en(e);if(at.document.hidden&&t){const n="cancelled",{op:a,status:o}=tt(t);Un&&ke.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${a}`),o||t.setStatus({code:Wt,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Un&&ke.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const PX=3600,u6="sentry_previous_trace",AX="sentry.previous_trace";function IX(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const a=t==="session-storage";let o=a?OX():void 0;e.on("spanStart",s=>{if(en(s)!==s)return;const l=lt().getPropagationContext();o=MX(o,s,l),a&&NX(o)});let i=!0;n&&e.on("beforeSampling",s=>{if(!o)return;const l=lt(),c=l.getPropagationContext();if(i&&c.parentSpanId){i=!1;return}l.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(o.sampleRate),sampled:String(ap(o.spanContext))},sampleRand:o.sampleRand}),s.parentSampled=ap(o.spanContext),s.parentSampleRate=o.sampleRate,s.spanAttributes={...s.spanAttributes,[e3]:o.sampleRate}})}function MX(e,t,n){const a=tt(t);function o(){try{return Number(n.dsc?.sample_rate)??Number(a.data?.[Bm])}catch{return 0}}const i={spanContext:t.spanContext(),startTimestamp:a.start_timestamp,sampleRate:o(),sampleRand:n.sampleRand};if(!e)return i;const s=e.spanContext;return s.traceId===a.trace_id?e:(Date.now()/1e3-e.startTimestamp<=PX&&(Un&&ke.log(`Adding previous_trace ${s} link to span ${{op:a.op,...t.spanContext()}}`),t.addLink({context:s,attributes:{[wF]:"previous_trace"}}),t.setAttribute(AX,`${s.traceId}-${s.spanId}-${ap(s)?1:0}`)),i)}function NX(e){try{at.sessionStorage.setItem(u6,JSON.stringify(e))}catch(t){Un&&ke.warn("Could not store previous trace in sessionStorage",t)}}function OX(){try{const e=at.sessionStorage?.getItem(u6);return JSON.parse(e)}catch{return}}function ap(e){return e.traceFlags===1}const BX="BrowserTracing",LX={...Xl,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...l6},rg=(e={})=>{const t={name:void 0,source:void 0},n=at.document,{enableInp:a,enableElementTiming:o,enableLongTask:i,enableLongAnimationFrame:s,_experiments:{enableInteractions:l,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:d,idleTimeout:f,finalTimeout:p,childSpanTimeout:m,markBackgroundSpan:v,traceFetch:y,traceXHR:w,trackFetchStreamPerformance:b,shouldCreateSpanForRequest:E,enableHTTPTimings:_,ignoreResourceSpans:g,ignorePerformanceApiSpans:x,instrumentPageLoad:C,instrumentNavigation:P,detectRedirects:O,linkPreviousTrace:A,consistentTraceSampling:L,onRequestSpanStart:U}={...LX,...e};let z,R;function I(B,M,$=!0){const K=M.op==="pageload",V=d?d(M):M,Z=V.attributes||{};if(M.name!==V.name&&(Z[kn]="custom",V.attributes=Z),!$){const j=xo();Pa({...V,startTime:j}).end(j);return}t.name=V.name,t.source=Z[kn];const q=_3(V,{idleTimeout:f,finalTimeout:p,childSpanTimeout:m,disableAutoFinish:K,beforeSpanEnd:j=>{z?.(),vW(j,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:g,ignorePerformanceApiSpans:x}),og(B,void 0);const W=lt(),Y=W.getPropagationContext();W.setPropagationContext({...Y,traceId:q.spanContext().traceId,sampled:Eo(q),dsc:na(j)})}});og(B,q);function oe(){n&&["interactive","complete"].includes(n.readyState)&&B.emit("idleSpanEnableAutoFinish",q)}K&&n&&(n.addEventListener("readystatechange",()=>{oe()}),oe())}return{name:BX,setup(B){if($F(),z=lW({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:u||!1,client:B}),a&&$W(),o&&EW(),s&&rt.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?uW():i&&cW(),l&&dW(),O&&n){const $=()=>{R=Ht()};addEventListener("click",$,{capture:!0}),addEventListener("keydown",$,{capture:!0,passive:!0})}function M(){const $=Ms(B);$&&!tt($).timestamp&&(Un&&ke.log(`[Tracing] Finishing current active span with op: ${tt($).op}`),$.setAttribute(Ec,"cancelled"),$.end())}B.on("startNavigationSpan",($,K)=>{if(Qe()!==B)return;if(K?.isRedirect){Un&&ke.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),I(B,{op:"navigation.redirect",...$},!1);return}M(),Dr().setPropagationContext({traceId:Ea(),sampleRand:Math.random()});const V=lt();V.setPropagationContext({traceId:Ea(),sampleRand:Math.random()}),V.setSDKProcessingMetadata({normalizedRequest:void 0}),I(B,{op:"navigation",...$})}),B.on("startPageLoadSpan",($,K={})=>{if(Qe()!==B)return;M();const V=K.sentryTrace||ag("sentry-trace"),Z=K.baggage||ag("baggage"),q=IF(V,Z),oe=lt();oe.setPropagationContext(q),oe.setSDKProcessingMetadata({normalizedRequest:jm()}),I(B,{op:"pageload",...$})})},afterAllSetup(B){let M=Oi();if(A!=="off"&&IX(B,{linkPreviousTrace:A,consistentTraceSampling:L}),at.location){if(C){const $=hn();DX(B,{name:at.location.pathname,startTime:$?$/1e3:void 0,attributes:{[kn]:"url",[xt]:"auto.pageload.browser"}})}P&&Cu(({to:$,from:K})=>{if(K===void 0&&M?.indexOf($)!==-1){M=void 0;return}M=void 0;const V=j3($),Z=Ms(B),q=Z&&O&&$X(Z,R);d6(B,{name:V?.pathname||at.location.pathname,attributes:{[kn]:"url",[xt]:"auto.navigation.browser"}},{url:$,isRedirect:q})})}v&&TX(),l&&RX(B,f,p,m,t),a&&FW(),wX(B,{traceFetch:y,traceXHR:w,trackFetchStreamPerformance:b,tracePropagationTargets:B.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:E,enableHTTPTimings:_,onRequestSpanStart:U})}}};function DX(e,t,n){e.emit("startPageLoadSpan",t,n),lt().setTransactionName(t.name);const a=Ms(e);return a&&e.emit("afterStartPageLoadSpan",a),a}function d6(e,t,n){const{url:a,isRedirect:o}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});const i=lt();return i.setTransactionName(t.name),a&&!o&&i.setSDKProcessingMetadata({normalizedRequest:{...jm(),url:a}}),Ms(e)}function ag(e){return at.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function RX(e,t,n,a,o){const i=at.document;let s;const l=()=>{const c="ui.action.click",u=Ms(e);if(u){const d=tt(u).op;if(["navigation","pageload"].includes(d)){Un&&ke.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(Ec,"interactionInterrupted"),s.end(),s=void 0),!o.name){Un&&ke.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}s=_3({name:o.name,op:c,attributes:{[kn]:o.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:a})};i&&addEventListener("click",l,{capture:!0})}const f6="_sentry_idleSpan";function Ms(e){return e[f6]}function og(e,t){Bn(e,f6,t)}const ig=.3;function $X(e,t){const n=tt(e),a=xo(),o=n.start_timestamp;return!(a-o>ig||t&&a-t<=ig)}const p6=["activate","mount"],m6=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,zX=/(?:^|[-_])(\w)/g,VX=e=>e.replace(zX,t=>t.toUpperCase()).replace(/[-_]/g,""),FX="<Root>",Vd="<Anonymous>",jX=(e,t)=>e.repeat(t),fs=(e,t)=>{if(!e)return Vd;if(e.$root===e)return FX;if(!e.$options)return Vd;const n=e.$options;let a=n.name||n._componentTag||n.__name;const o=n.__file;if(!a&&o){const i=o.match(/([^/\\]+)\.vue$/);i&&(a=i[1])}return(a?`<${VX(a)}>`:Vd)+(o&&t!==!1?` at ${o}`:"")},HX=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`
671
+ `;if(typeof e=="string")n=`${a}${e}`;else{const i=new TextEncoder().encode(a);n=new Uint8Array(i.length+e.length),n.set(i),n.set(e,i.length)}return n}async function lX({client:e,scope:t,replayId:n,event:a}){const o=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:n,integrations:o};e.emit("preprocessEvent",a,i);const s=await S3(e.getOptions(),a,i,t,e,Dr());if(!s)return null;e.emit("postprocessEvent",s,i),s.platform=s.platform||"javascript";const l=e.getSdkMetadata(),{name:c,version:u}=l?.sdk||{};return s.sdk={...s.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},s}async function cX({recordingData:e,replayId:t,segmentId:n,eventContext:a,timestamp:o,session:i}){const s=sX({recordingData:e,headers:{segment_id:n}}),{urls:l,errorIds:c,traceIds:u,initialTimestamp:d}=a,f=Qe(),p=lt(),m=f?.getTransport(),g=f?.getDsn();if(!f||!m||!g||!i.sampled)return ra({});const y={type:zq,replay_start_timestamp:d/1e3,timestamp:o/1e3,error_ids:c,trace_ids:u,urls:l,replay_id:t,segment_id:n,replay_type:i.sampled},w=await lX({scope:p,client:f,replayId:t,event:y});if(!w)return f.recordDroppedEvent("event_processor","replay"),ze&&Ve.log("An event processor returned `null`, will not send event."),ra({});delete w.sdkProcessingMetadata;const b=iX(w,s,g,f.getOptions().tunnel);let E;try{E=await m.send(b)}catch(v){const x=new Error(Jm);try{x.cause=v}catch{}throw x}if(typeof E.statusCode=="number"&&(E.statusCode<200||E.statusCode>=300))throw new o6(E.statusCode);const _=L3({},E);if(B3(_,"replay"))throw new dh(_);return E}class o6 extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class dh extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function i6(e,t={count:0,interval:Wq}){const{recordingData:n,onError:a}=e;if(n.length)try{return await cX(e),!0}catch(o){if(o instanceof o6||o instanceof dh)throw o;if(Vj("Replays",{_retryCount:t.count}),a&&a(o),t.count>=qq){const i=new Error(`${Jm} - max retries exceeded`);try{i.cause=o}catch{}throw i}return t.interval*=++t.count,new Promise((i,s)=>{nl(async()=>{try{await i6(e,t),i(!0)}catch(l){s(l)}},t.interval)})}}const s6="__THROTTLED",uX="__SKIPPED";function dX(e,t,n){const a=new Map,o=l=>{const c=l-n;a.forEach((u,d)=>{d<c&&a.delete(d)})},i=()=>[...a.values()].reduce((l,c)=>l+c,0);let s=!1;return(...l)=>{const c=Math.floor(Date.now()/1e3);if(o(c),i()>=t){const d=s;return s=!0,d?uX:s6}s=!1;const u=a.get(c)||0;return a.set(c,u+1),e(...l)}}class fX{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:Vq,sessionIdleExpire:Fq},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=eX(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=dX((s,l)=>oK(this,s,l),300,5);const{slowClickTimeout:a,slowClickIgnoreSelectors:o}=this.getOptions(),i=a?{threshold:Math.min(Yq,a),timeout:a,scrollTimeout:Gq,ignoreSelector:o?o.join(","):""}:void 0;if(i&&(this.clickDetector=new gG(this,i)),ze){const s=t._experiments;Ve.setConfig({captureExceptions:!!s.captureExceptions,traceInternals:!!s.traceInternals})}this._handleVisibilityChange=()=>{bt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const s=Cr({category:"ui.blur"});this._doChangeToBackgroundTasks(s)},this._handleWindowFocus=()=>{const s=Cr({category:"ui.focus"});this._doChangeToForegroundTasks(s)},this._handleKeyboardEvent=s=>{IG(this,s)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){ze&&Ve.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:a}=this._options,o=n<=0&&a<=0;if(this._requiresManualStart=o,!o){if(this._initializeSessionForSampling(t),!this.session){ze&&Ve.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",ze&&Ve.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){ze&&Ve.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){ze&&Ve.log("Buffering is in progress, call `flush()` to save the replay");return}ze&&Ve.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=$d({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){ze&&Ve.log("Buffering is in progress, call `flush()` to save the replay");return}ze&&Ve.infoTick("Starting replay in buffer mode");const t=$d({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=qr({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:Uq}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:nX(this),...tX(),onMutation:this._onMutationHandler.bind(this),...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,this.recordingMode="buffer";try{ze&&Ve.log(`Stopping Replay${n?` triggered by ${n}`:""}`),e6(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,eK(this)}catch(a){this.handleException(a)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),ze&&Ve.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),ze&&Ve.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();ze&&Ve.log("Converting buffer to session"),await this.flushImmediate();const a=this.stopRecording();!t||!a||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"||!this._isEnabled||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?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&tp(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${bt.location.pathname}${bt.location.hash}${bt.location.search}`,n=`${bt.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 a=this._throttledAddEvent(t,n);if(a===s6){const o=Cr({category:"replay.throttled"});this.addUpdate(()=>!ch(this,{type:uG,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return a}getCurrentRoute(){const t=this.lastActiveSpan||tn(),n=t&&en(t),o=(n&&tt(n).data||{})[kn];if(!(!n||!o||!["route","custom"].includes(o)))return tt(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=JG({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,a=$d({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=a}_checkSession(){if(!this.session)return!1;const t=this.session;return Xw(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{bt.document.addEventListener("visibilitychange",this._handleVisibilityChange),bt.addEventListener("blur",this._handleWindowBlur),bt.addEventListener("focus",this._handleWindowFocus),bt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(JK(this,{autoFlushOnFeedback:this._options._experiments.autoFlushOnFeedback}),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=UG(this)}_removeListeners(){try{bt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),bt.removeEventListener("blur",this._handleWindowBlur),bt.removeEventListener("focus",this._handleWindowFocus),bt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||Kw(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()){ze&&Ve.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:Ye.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=BG(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(a=>a.start>=n)}return Promise.all(Au(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const a=n.getEarliestTimestamp();a&&a<this._context.initialTimestamp&&(this._context.initialTimestamp=a)}_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){ze&&Ve.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await QK(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 a=this._popEventContext(),o=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await i6({replayId:t,recordingData:i,segmentId:o,eventContext:a,session:this.session,timestamp:n,onError:s=>this.handleException(s)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const a=Qe();if(a){const o=n instanceof dh?"ratelimit_backoff":"send_error";a.recordDroppedEvent(o,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){ze&&Ve.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,o=Date.now()-n;this._debouncedFlush.cancel();const i=o<this._options.minReplayDuration,s=o>this._options.maxReplayDuration+5e3;if(i||s){ze&&Ve.log(`Session duration (${Math.floor(o/1e3)}s) is too ${i?"short":"long"}, not sending replay.`),i&&this._debouncedFlush();return}const l=this.eventBuffer;l&&this.session.segmentId===0&&!l.hasCheckout&&ze&&Ve.log("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&lh(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(l=>{const c=oX(l.target),u=n.join(",");return c?.matches(u)}))return!1;const a=t.length,o=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,s=o&&a>o;if(a>i||s){const l=Cr({category:"replay.mutations",data:{count:a,limit:s}});this._createCustomBreadcrumb(l)}return s?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function Ki(e,t){return[...e,...t].join(",")}function pX({mask:e,unmask:t,block:n,unblock:a,ignore:o}){const i=["base","iframe[srcdoc]:not([src])"],s=Ki(e,[".sentry-mask","[data-sentry-mask]"]),l=Ki(t,[]);return{maskTextSelector:s,unmaskTextSelector:l,blockSelector:Ki(n,[".sentry-block","[data-sentry-block]",...i]),unblockSelector:Ki(a,[]),ignoreSelector:Ki(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function mX({el:e,key:t,maskAttributes:n,maskAllText:a,privacyOptions:o,value:i}){return!a||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 Q1='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',hX=["content-length","content-type","accept"];let Z1=!1;const vX=e=>new gX(e);class gX{constructor({flushMinDelay:t=jq,flushMaxDelay:n=Hq,minReplayDuration:a=Kq,maxReplayDuration:o=M1,stickySession:i=!0,useCompression:s=!0,workerUrl:l,_experiments:c={},maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:f=!0,mutationBreadcrumbLimit:p=750,mutationLimit:m=1e4,slowClickTimeout:g=7e3,slowClickIgnoreSelectors:y=[],networkDetailAllowUrls:w=[],networkDetailDenyUrls:b=[],networkCaptureBodies:E=!0,networkRequestHeaders:_=[],networkResponseHeaders:v=[],mask:x=[],maskAttributes:C=["title","placeholder","aria-label"],unmask:P=[],block:O=[],unblock:A=[],ignore:L=[],maskFn:U,beforeAddRecordingEvent:z,beforeErrorSampling:R,onError:I}={}){this.name="Replay";const B=pX({mask:x,unmask:P,block:O,unblock:A,ignore:L});if(this._recordingOptions={maskAllInputs:d,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:U,maskInputFn:U,maskAttributeFn:(M,$,K)=>mX({maskAttributes:C,maskAllText:u,privacyOptions:B,key:M,value:$,el:K}),...B,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:M=>{try{M.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(a,Xq),maxReplayDuration:Math.min(o,M1),stickySession:i,useCompression:s,workerUrl:l,blockAllMedia:f,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:p,mutationLimit:m,slowClickTimeout:g,slowClickIgnoreSelectors:y,networkDetailAllowUrls:w,networkDetailDenyUrls:b,networkCaptureBodies:E,networkRequestHeaders:eg(_),networkResponseHeaders:eg(v),beforeAddRecordingEvent:z,beforeErrorSampling:R,onError:I,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Q1}`:Q1),this._isInitialized&&_1())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Z1}set _isInitialized(t){Z1=t}afterAllSetup(t){!_1()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay?.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=yX(this._initialOptions,t);this._replay=new fX({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function yX(e,t){const n=t.getOptions(),a={sessionSampleRate:0,errorSampleRate:0,...e},o=bo(n.replaysSessionSampleRate),i=bo(n.replaysOnErrorSampleRate);return o==null&&i==null&&ia(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),o!=null&&(a.sessionSampleRate=o),i!=null&&(a.errorSampleRate=i),a}function eg(e){return[...hX,...e.map(t=>t.toLowerCase())]}function fr(e=0){return((hn()||performance.timeOrigin)+e)/1e3}function bX(e){const t=[];if(e.nextHopProtocol!=null){const{name:n,version:a}=sw(e.nextHopProtocol);t.push(["network.protocol.version",a],["network.protocol.name",n])}return hn()?[...t,["http.request.redirect_start",fr(e.redirectStart)],["http.request.fetch_start",fr(e.fetchStart)],["http.request.domain_lookup_start",fr(e.domainLookupStart)],["http.request.domain_lookup_end",fr(e.domainLookupEnd)],["http.request.connect_start",fr(e.connectStart)],["http.request.secure_connection_start",fr(e.secureConnectionStart)],["http.request.connection_end",fr(e.connectEnd)],["http.request.request_start",fr(e.requestStart)],["http.request.response_start",fr(e.responseStart)],["http.request.response_end",fr(e.responseEnd)]]:t}const tg=new WeakMap,zd=new Map,l6={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function wX(e,t){const{traceFetch:n,traceXHR:a,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:l,onRequestSpanStart:c}={...l6,...t},u=typeof i=="function"?i:p=>!0,d=p=>_X(p,l),f={};n&&(e.addEventProcessor(p=>(p.type==="transaction"&&p.spans&&p.spans.forEach(m=>{if(m.op==="http.client"){const g=zd.get(m.span_id);g&&(m.timestamp=g/1e3,zd.delete(m.span_id))}}),p)),o&&rU(p=>{if(p.response){const m=tg.get(p.response);m&&p.endTimestamp&&zd.set(m,p.endTimestamp)}}),U3(p=>{const m=GH(p,u,d,f);if(p.response&&p.fetchData.__span&&tg.set(p.response,p.fetchData.__span),m){const g=c6(p.fetchData.url),y=g?uo(g).host:void 0;m.setAttributes({"http.url":g,"server.address":y}),s&&ng(m),c?.(m,{headers:p.headers})}})),a&&fw(p=>{const m=SX(p,u,d,f);if(m){s&&ng(m);let g;try{g=new Headers(p.xhr.__sentry_xhr_v3__?.request_headers)}catch{}c?.(m,{headers:g})}})}function kX(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function ng(e){const{url:t}=tt(e).data;if(!t||typeof t!="string")return;const n=wo("resource",({entries:a})=>{a.forEach(o=>{kX(o)&&o.name.endsWith(t)&&(bX(o).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function _X(e,t){const n=Oi();if(n){let a,o;try{a=new URL(e,n),o=new URL(n).origin}catch{return!1}const i=a.origin===o;return t?Wr(a.toString(),t)||i&&Wr(a.pathname,t):i}else{const a=!!e.match(/^\/(?!\/)/);return t?Wr(e,t):a}}function SX(e,t,n,a){const o=e.xhr,i=o?.[eo];if(!o||o.__sentry_own_request__||!i)return;const{url:s,method:l}=i,c=ta()&&t(s);if(e.endTimestamp&&c){const y=o.__sentry_xhr_span_id__;if(!y)return;const w=a[y];w&&i.status_code!==void 0&&(n3(w,i.status_code),w.end(),delete a[y]);return}const u=c6(s),d=uo(u||s),f=YH(s),p=!!tn(),m=c&&p?Pa({name:`${l} ${f}`,attributes:{url:s,type:"xhr","http.method":l,"http.url":u,"server.address":d?.host,[xt]:"auto.http.browser",[ea]:"http.client",...d?.search&&{"http.query":d?.search},...d?.hash&&{"http.fragment":d?.hash}}}):new Ta;o.__sentry_xhr_span_id__=m.spanContext().spanId,a[o.__sentry_xhr_span_id__]=m,n(s)&&CX(o,ta()&&p?m:void 0);const g=Qe();return g&&g.emit("beforeOutgoingRequestSpan",m,e),m}function CX(e,t){const{"sentry-trace":n,baggage:a}=R3({span:t});n&&xX(e,n,a)}function xX(e,t,n){const a=e.__sentry_xhr_v3__?.request_headers;if(!a?.["sentry-trace"])try{if(e.setRequestHeader("sentry-trace",t),n){const o=a?.baggage;(!o||!EX(o))&&e.setRequestHeader("baggage",n)}}catch{}}function EX(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function c6(e){try{return new URL(e,at.location.origin).href}catch{return}}function TX(){at.document?at.document.addEventListener("visibilitychange",()=>{const e=tn();if(!e)return;const t=en(e);if(at.document.hidden&&t){const n="cancelled",{op:a,status:o}=tt(t);Un&&ke.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${a}`),o||t.setStatus({code:Wt,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Un&&ke.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const PX=3600,u6="sentry_previous_trace",AX="sentry.previous_trace";function IX(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const a=t==="session-storage";let o=a?OX():void 0;e.on("spanStart",s=>{if(en(s)!==s)return;const l=lt().getPropagationContext();o=MX(o,s,l),a&&NX(o)});let i=!0;n&&e.on("beforeSampling",s=>{if(!o)return;const l=lt(),c=l.getPropagationContext();if(i&&c.parentSpanId){i=!1;return}l.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(o.sampleRate),sampled:String(ap(o.spanContext))},sampleRand:o.sampleRand}),s.parentSampled=ap(o.spanContext),s.parentSampleRate=o.sampleRate,s.spanAttributes={...s.spanAttributes,[e3]:o.sampleRate}})}function MX(e,t,n){const a=tt(t);function o(){try{return Number(n.dsc?.sample_rate)??Number(a.data?.[Bm])}catch{return 0}}const i={spanContext:t.spanContext(),startTimestamp:a.start_timestamp,sampleRate:o(),sampleRand:n.sampleRand};if(!e)return i;const s=e.spanContext;return s.traceId===a.trace_id?e:(Date.now()/1e3-e.startTimestamp<=PX&&(Un&&ke.log(`Adding previous_trace ${s} link to span ${{op:a.op,...t.spanContext()}}`),t.addLink({context:s,attributes:{[wF]:"previous_trace"}}),t.setAttribute(AX,`${s.traceId}-${s.spanId}-${ap(s)?1:0}`)),i)}function NX(e){try{at.sessionStorage.setItem(u6,JSON.stringify(e))}catch(t){Un&&ke.warn("Could not store previous trace in sessionStorage",t)}}function OX(){try{const e=at.sessionStorage?.getItem(u6);return JSON.parse(e)}catch{return}}function ap(e){return e.traceFlags===1}const BX="BrowserTracing",LX={...Xl,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...l6},rg=(e={})=>{const t={name:void 0,source:void 0},n=at.document,{enableInp:a,enableElementTiming:o,enableLongTask:i,enableLongAnimationFrame:s,_experiments:{enableInteractions:l,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:d,idleTimeout:f,finalTimeout:p,childSpanTimeout:m,markBackgroundSpan:g,traceFetch:y,traceXHR:w,trackFetchStreamPerformance:b,shouldCreateSpanForRequest:E,enableHTTPTimings:_,ignoreResourceSpans:v,ignorePerformanceApiSpans:x,instrumentPageLoad:C,instrumentNavigation:P,detectRedirects:O,linkPreviousTrace:A,consistentTraceSampling:L,onRequestSpanStart:U}={...LX,...e};let z,R;function I(B,M,$=!0){const K=M.op==="pageload",V=d?d(M):M,Z=V.attributes||{};if(M.name!==V.name&&(Z[kn]="custom",V.attributes=Z),!$){const j=xo();Pa({...V,startTime:j}).end(j);return}t.name=V.name,t.source=Z[kn];const q=_3(V,{idleTimeout:f,finalTimeout:p,childSpanTimeout:m,disableAutoFinish:K,beforeSpanEnd:j=>{z?.(),vW(j,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:v,ignorePerformanceApiSpans:x}),og(B,void 0);const W=lt(),Y=W.getPropagationContext();W.setPropagationContext({...Y,traceId:q.spanContext().traceId,sampled:Eo(q),dsc:na(j)})}});og(B,q);function oe(){n&&["interactive","complete"].includes(n.readyState)&&B.emit("idleSpanEnableAutoFinish",q)}K&&n&&(n.addEventListener("readystatechange",()=>{oe()}),oe())}return{name:BX,setup(B){if($F(),z=lW({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:u||!1,client:B}),a&&$W(),o&&EW(),s&&rt.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?uW():i&&cW(),l&&dW(),O&&n){const $=()=>{R=Ht()};addEventListener("click",$,{capture:!0}),addEventListener("keydown",$,{capture:!0,passive:!0})}function M(){const $=Ms(B);$&&!tt($).timestamp&&(Un&&ke.log(`[Tracing] Finishing current active span with op: ${tt($).op}`),$.setAttribute(Ec,"cancelled"),$.end())}B.on("startNavigationSpan",($,K)=>{if(Qe()!==B)return;if(K?.isRedirect){Un&&ke.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),I(B,{op:"navigation.redirect",...$},!1);return}M(),Dr().setPropagationContext({traceId:Ea(),sampleRand:Math.random()});const V=lt();V.setPropagationContext({traceId:Ea(),sampleRand:Math.random()}),V.setSDKProcessingMetadata({normalizedRequest:void 0}),I(B,{op:"navigation",...$})}),B.on("startPageLoadSpan",($,K={})=>{if(Qe()!==B)return;M();const V=K.sentryTrace||ag("sentry-trace"),Z=K.baggage||ag("baggage"),q=IF(V,Z),oe=lt();oe.setPropagationContext(q),oe.setSDKProcessingMetadata({normalizedRequest:jm()}),I(B,{op:"pageload",...$})})},afterAllSetup(B){let M=Oi();if(A!=="off"&&IX(B,{linkPreviousTrace:A,consistentTraceSampling:L}),at.location){if(C){const $=hn();DX(B,{name:at.location.pathname,startTime:$?$/1e3:void 0,attributes:{[kn]:"url",[xt]:"auto.pageload.browser"}})}P&&Cu(({to:$,from:K})=>{if(K===void 0&&M?.indexOf($)!==-1){M=void 0;return}M=void 0;const V=j3($),Z=Ms(B),q=Z&&O&&$X(Z,R);d6(B,{name:V?.pathname||at.location.pathname,attributes:{[kn]:"url",[xt]:"auto.navigation.browser"}},{url:$,isRedirect:q})})}g&&TX(),l&&RX(B,f,p,m,t),a&&FW(),wX(B,{traceFetch:y,traceXHR:w,trackFetchStreamPerformance:b,tracePropagationTargets:B.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:E,enableHTTPTimings:_,onRequestSpanStart:U})}}};function DX(e,t,n){e.emit("startPageLoadSpan",t,n),lt().setTransactionName(t.name);const a=Ms(e);return a&&e.emit("afterStartPageLoadSpan",a),a}function d6(e,t,n){const{url:a,isRedirect:o}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});const i=lt();return i.setTransactionName(t.name),a&&!o&&i.setSDKProcessingMetadata({normalizedRequest:{...jm(),url:a}}),Ms(e)}function ag(e){return at.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function RX(e,t,n,a,o){const i=at.document;let s;const l=()=>{const c="ui.action.click",u=Ms(e);if(u){const d=tt(u).op;if(["navigation","pageload"].includes(d)){Un&&ke.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(Ec,"interactionInterrupted"),s.end(),s=void 0),!o.name){Un&&ke.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}s=_3({name:o.name,op:c,attributes:{[kn]:o.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:a})};i&&addEventListener("click",l,{capture:!0})}const f6="_sentry_idleSpan";function Ms(e){return e[f6]}function og(e,t){Bn(e,f6,t)}const ig=.3;function $X(e,t){const n=tt(e),a=xo(),o=n.start_timestamp;return!(a-o>ig||t&&a-t<=ig)}const p6=["activate","mount"],m6=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,zX=/(?:^|[-_])(\w)/g,VX=e=>e.replace(zX,t=>t.toUpperCase()).replace(/[-_]/g,""),FX="<Root>",Vd="<Anonymous>",jX=(e,t)=>e.repeat(t),fs=(e,t)=>{if(!e)return Vd;if(e.$root===e)return FX;if(!e.$options)return Vd;const n=e.$options;let a=n.name||n._componentTag||n.__name;const o=n.__file;if(!a&&o){const i=o.match(/([^/\\]+)\.vue$/);i&&(a=i[1])}return(a?`<${VX(a)}>`:Vd)+(o&&t!==!1?` at ${o}`:"")},HX=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`
672
672
 
673
673
  found in
674
674