@riskdefy/chargebacks 1.0.5 → 1.0.6

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.
@@ -0,0 +1,1284 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("vue");var Dt="top",er="bottom",tr="right",Nt="left",Yl="auto",Ea=[Dt,er,tr,Nt],si="start",oa="end",r_="clippingParents",Sh="viewport",Ui="popper",n_="reference",ku=Ea.reduce(function(e,t){return e.concat([t+"-"+si,t+"-"+oa])},[]),kh=[].concat(Ea,[Yl]).reduce(function(e,t){return e.concat([t,t+"-"+si,t+"-"+oa])},[]),i_="beforeRead",a_="read",s_="afterRead",o_="beforeMain",l_="main",d_="afterMain",c_="beforeWrite",u_="write",h_="afterWrite",f_=[i_,a_,s_,o_,l_,d_,c_,u_,h_];function Fr(e){return e?(e.nodeName||"").toLowerCase():null}function rr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function oi(e){var t=rr(e).Element;return e instanceof t||e instanceof Element}function lr(e){var t=rr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function xh(e){if(typeof ShadowRoot>"u")return!1;var t=rr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function fT(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var a=t.styles[r]||{},n=t.attributes[r]||{},s=t.elements[r];!lr(s)||!Fr(s)||(Object.assign(s.style,a),Object.keys(n).forEach(function(o){var l=n[o];l===!1?s.removeAttribute(o):s.setAttribute(o,l===!0?"":l)}))})}function pT(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(a){var n=t.elements[a],s=t.attributes[a]||{},o=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:r[a]),l=o.reduce(function(d,c){return d[c]="",d},{});!lr(n)||!Fr(n)||(Object.assign(n.style,l),Object.keys(s).forEach(function(d){n.removeAttribute(d)}))})}}const Th={name:"applyStyles",enabled:!0,phase:"write",fn:fT,effect:pT,requires:["computeStyles"]};function Rr(e){return e.split("-")[0]}var Jn=Math.max,hl=Math.min,la=Math.round;function xu(){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 p_(){return!/^((?!chrome|android).)*safari/i.test(xu())}function da(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var a=e.getBoundingClientRect(),n=1,s=1;t&&lr(e)&&(n=e.offsetWidth>0&&la(a.width)/e.offsetWidth||1,s=e.offsetHeight>0&&la(a.height)/e.offsetHeight||1);var o=oi(e)?rr(e):window,l=o.visualViewport,d=!p_()&&r,c=(a.left+(d&&l?l.offsetLeft:0))/n,f=(a.top+(d&&l?l.offsetTop:0))/s,v=a.width/n,m=a.height/s;return{width:v,height:m,top:f,right:c+v,bottom:f+m,left:c,x:c,y:f}}function $h(e){var t=da(e),r=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:a}}function v_(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&xh(r)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function rn(e){return rr(e).getComputedStyle(e)}function vT(e){return["table","td","th"].indexOf(Fr(e))>=0}function On(e){return((oi(e)?e.ownerDocument:e.document)||window.document).documentElement}function jl(e){return Fr(e)==="html"?e:e.assignedSlot||e.parentNode||(xh(e)?e.host:null)||On(e)}function Rp(e){return!lr(e)||rn(e).position==="fixed"?null:e.offsetParent}function mT(e){var t=/firefox/i.test(xu()),r=/Trident/i.test(xu());if(r&&lr(e)){var a=rn(e);if(a.position==="fixed")return null}var n=jl(e);for(xh(n)&&(n=n.host);lr(n)&&["html","body"].indexOf(Fr(n))<0;){var s=rn(n);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return n;n=n.parentNode}return null}function $s(e){for(var t=rr(e),r=Rp(e);r&&vT(r)&&rn(r).position==="static";)r=Rp(r);return r&&(Fr(r)==="html"||Fr(r)==="body"&&rn(r).position==="static")?t:r||mT(e)||t}function Dh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function as(e,t,r){return Jn(e,hl(t,r))}function gT(e,t,r){var a=as(e,t,r);return a>r?r:a}function m_(){return{top:0,right:0,bottom:0,left:0}}function g_(e){return Object.assign({},m_(),e)}function y_(e,t){return t.reduce(function(r,a){return r[a]=e,r},{})}var yT=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,g_(typeof t!="number"?t:y_(t,Ea))};function _T(e){var t,r=e.state,a=e.name,n=e.options,s=r.elements.arrow,o=r.modifiersData.popperOffsets,l=Rr(r.placement),d=Dh(l),c=[Nt,tr].indexOf(l)>=0,f=c?"height":"width";if(!(!s||!o)){var v=yT(n.padding,r),m=$h(s),g=d==="y"?Dt:Nt,b=d==="y"?er:tr,S=r.rects.reference[f]+r.rects.reference[d]-o[d]-r.rects.popper[f],w=o[d]-r.rects.reference[d],k=$s(s),T=k?d==="y"?k.clientHeight||0:k.clientWidth||0:0,D=S/2-w/2,N=v[g],L=T-m[f]-v[b],A=T/2-m[f]/2+D,R=as(N,A,L),C=d;r.modifiersData[a]=(t={},t[C]=R,t.centerOffset=R-A,t)}}function bT(e){var t=e.state,r=e.options,a=r.element,n=a===void 0?"[data-popper-arrow]":a;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||v_(t.elements.popper,n)&&(t.elements.arrow=n))}const __={name:"arrow",enabled:!0,phase:"main",fn:_T,effect:bT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ca(e){return e.split("-")[1]}var wT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ET(e,t){var r=e.x,a=e.y,n=t.devicePixelRatio||1;return{x:la(r*n)/n||0,y:la(a*n)/n||0}}function Lp(e){var t,r=e.popper,a=e.popperRect,n=e.placement,s=e.variation,o=e.offsets,l=e.position,d=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,v=e.isFixed,m=o.x,g=m===void 0?0:m,b=o.y,S=b===void 0?0:b,w=typeof f=="function"?f({x:g,y:S}):{x:g,y:S};g=w.x,S=w.y;var k=o.hasOwnProperty("x"),T=o.hasOwnProperty("y"),D=Nt,N=Dt,L=window;if(c){var A=$s(r),R="clientHeight",C="clientWidth";if(A===rr(r)&&(A=On(r),rn(A).position!=="static"&&l==="absolute"&&(R="scrollHeight",C="scrollWidth")),A=A,n===Dt||(n===Nt||n===tr)&&s===oa){N=er;var j=v&&A===L&&L.visualViewport?L.visualViewport.height:A[R];S-=j-a.height,S*=d?1:-1}if(n===Nt||(n===Dt||n===er)&&s===oa){D=tr;var O=v&&A===L&&L.visualViewport?L.visualViewport.width:A[C];g-=O-a.width,g*=d?1:-1}}var M=Object.assign({position:l},c&&wT),H=f===!0?ET({x:g,y:S},rr(r)):{x:g,y:S};if(g=H.x,S=H.y,d){var z;return Object.assign({},M,(z={},z[N]=T?"0":"",z[D]=k?"0":"",z.transform=(L.devicePixelRatio||1)<=1?"translate("+g+"px, "+S+"px)":"translate3d("+g+"px, "+S+"px, 0)",z))}return Object.assign({},M,(t={},t[N]=T?S+"px":"",t[D]=k?g+"px":"",t.transform="",t))}function ST(e){var t=e.state,r=e.options,a=r.gpuAcceleration,n=a===void 0?!0:a,s=r.adaptive,o=s===void 0?!0:s,l=r.roundOffsets,d=l===void 0?!0:l,c={placement:Rr(t.placement),variation:ca(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Lp(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Lp(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Nh={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ST,data:{}};var xo={passive:!0};function kT(e){var t=e.state,r=e.instance,a=e.options,n=a.scroll,s=n===void 0?!0:n,o=a.resize,l=o===void 0?!0:o,d=rr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(f){f.addEventListener("scroll",r.update,xo)}),l&&d.addEventListener("resize",r.update,xo),function(){s&&c.forEach(function(f){f.removeEventListener("scroll",r.update,xo)}),l&&d.removeEventListener("resize",r.update,xo)}}const Ch={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:kT,data:{}};var xT={left:"right",right:"left",bottom:"top",top:"bottom"};function rl(e){return e.replace(/left|right|bottom|top/g,function(t){return xT[t]})}var TT={start:"end",end:"start"};function Vp(e){return e.replace(/start|end/g,function(t){return TT[t]})}function Oh(e){var t=rr(e),r=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:r,scrollTop:a}}function Ah(e){return da(On(e)).left+Oh(e).scrollLeft}function $T(e,t){var r=rr(e),a=On(e),n=r.visualViewport,s=a.clientWidth,o=a.clientHeight,l=0,d=0;if(n){s=n.width,o=n.height;var c=p_();(c||!c&&t==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:s,height:o,x:l+Ah(e),y:d}}function DT(e){var t,r=On(e),a=Oh(e),n=(t=e.ownerDocument)==null?void 0:t.body,s=Jn(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),o=Jn(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),l=-a.scrollLeft+Ah(e),d=-a.scrollTop;return rn(n||r).direction==="rtl"&&(l+=Jn(r.clientWidth,n?n.clientWidth:0)-s),{width:s,height:o,x:l,y:d}}function Ih(e){var t=rn(e),r=t.overflow,a=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+a)}function b_(e){return["html","body","#document"].indexOf(Fr(e))>=0?e.ownerDocument.body:lr(e)&&Ih(e)?e:b_(jl(e))}function ss(e,t){var r;t===void 0&&(t=[]);var a=b_(e),n=a===((r=e.ownerDocument)==null?void 0:r.body),s=rr(a),o=n?[s].concat(s.visualViewport||[],Ih(a)?a:[]):a,l=t.concat(o);return n?l:l.concat(ss(jl(o)))}function Tu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function NT(e,t){var r=da(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Fp(e,t,r){return t===Sh?Tu($T(e,r)):oi(t)?NT(t,r):Tu(DT(On(e)))}function CT(e){var t=ss(jl(e)),r=["absolute","fixed"].indexOf(rn(e).position)>=0,a=r&&lr(e)?$s(e):e;return oi(a)?t.filter(function(n){return oi(n)&&v_(n,a)&&Fr(n)!=="body"}):[]}function OT(e,t,r,a){var n=t==="clippingParents"?CT(e):[].concat(t),s=[].concat(n,[r]),o=s[0],l=s.reduce(function(d,c){var f=Fp(e,c,a);return d.top=Jn(f.top,d.top),d.right=hl(f.right,d.right),d.bottom=hl(f.bottom,d.bottom),d.left=Jn(f.left,d.left),d},Fp(e,o,a));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function w_(e){var t=e.reference,r=e.element,a=e.placement,n=a?Rr(a):null,s=a?ca(a):null,o=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,d;switch(n){case Dt:d={x:o,y:t.y-r.height};break;case er:d={x:o,y:t.y+t.height};break;case tr:d={x:t.x+t.width,y:l};break;case Nt:d={x:t.x-r.width,y:l};break;default:d={x:t.x,y:t.y}}var c=n?Dh(n):null;if(c!=null){var f=c==="y"?"height":"width";switch(s){case si:d[c]=d[c]-(t[f]/2-r[f]/2);break;case oa:d[c]=d[c]+(t[f]/2-r[f]/2);break}}return d}function ua(e,t){t===void 0&&(t={});var r=t,a=r.placement,n=a===void 0?e.placement:a,s=r.strategy,o=s===void 0?e.strategy:s,l=r.boundary,d=l===void 0?r_:l,c=r.rootBoundary,f=c===void 0?Sh:c,v=r.elementContext,m=v===void 0?Ui:v,g=r.altBoundary,b=g===void 0?!1:g,S=r.padding,w=S===void 0?0:S,k=g_(typeof w!="number"?w:y_(w,Ea)),T=m===Ui?n_:Ui,D=e.rects.popper,N=e.elements[b?T:m],L=OT(oi(N)?N:N.contextElement||On(e.elements.popper),d,f,o),A=da(e.elements.reference),R=w_({reference:A,element:D,placement:n}),C=Tu(Object.assign({},D,R)),j=m===Ui?C:A,O={top:L.top-j.top+k.top,bottom:j.bottom-L.bottom+k.bottom,left:L.left-j.left+k.left,right:j.right-L.right+k.right},M=e.modifiersData.offset;if(m===Ui&&M){var H=M[n];Object.keys(O).forEach(function(z){var se=[tr,er].indexOf(z)>=0?1:-1,_e=[Dt,er].indexOf(z)>=0?"y":"x";O[z]+=H[_e]*se})}return O}function AT(e,t){t===void 0&&(t={});var r=t,a=r.placement,n=r.boundary,s=r.rootBoundary,o=r.padding,l=r.flipVariations,d=r.allowedAutoPlacements,c=d===void 0?kh:d,f=ca(a),v=f?l?ku:ku.filter(function(b){return ca(b)===f}):Ea,m=v.filter(function(b){return c.indexOf(b)>=0});m.length===0&&(m=v);var g=m.reduce(function(b,S){return b[S]=ua(e,{placement:S,boundary:n,rootBoundary:s,padding:o})[Rr(S)],b},{});return Object.keys(g).sort(function(b,S){return g[b]-g[S]})}function IT(e){if(Rr(e)===Yl)return[];var t=rl(e);return[Vp(e),t,Vp(t)]}function PT(e){var t=e.state,r=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var n=r.mainAxis,s=n===void 0?!0:n,o=r.altAxis,l=o===void 0?!0:o,d=r.fallbackPlacements,c=r.padding,f=r.boundary,v=r.rootBoundary,m=r.altBoundary,g=r.flipVariations,b=g===void 0?!0:g,S=r.allowedAutoPlacements,w=t.options.placement,k=Rr(w),T=k===w,D=d||(T||!b?[rl(w)]:IT(w)),N=[w].concat(D).reduce(function(vt,q){return vt.concat(Rr(q)===Yl?AT(t,{placement:q,boundary:f,rootBoundary:v,padding:c,flipVariations:b,allowedAutoPlacements:S}):q)},[]),L=t.rects.reference,A=t.rects.popper,R=new Map,C=!0,j=N[0],O=0;O<N.length;O++){var M=N[O],H=Rr(M),z=ca(M)===si,se=[Dt,er].indexOf(H)>=0,_e=se?"width":"height",be=ua(t,{placement:M,boundary:f,rootBoundary:v,altBoundary:m,padding:c}),he=se?z?tr:Nt:z?er:Dt;L[_e]>A[_e]&&(he=rl(he));var rt=rl(he),ut=[];if(s&&ut.push(be[H]<=0),l&&ut.push(be[he]<=0,be[rt]<=0),ut.every(function(vt){return vt})){j=M,C=!1;break}R.set(M,ut)}if(C)for(var Ie=b?3:1,Mt=function(q){var vr=N.find(function(Or){var mt=R.get(Or);if(mt)return mt.slice(0,q).every(function(W){return W})});if(vr)return j=vr,"break"},ht=Ie;ht>0;ht--){var Cr=Mt(ht);if(Cr==="break")break}t.placement!==j&&(t.modifiersData[a]._skip=!0,t.placement=j,t.reset=!0)}}const E_={name:"flip",enabled:!0,phase:"main",fn:PT,requiresIfExists:["offset"],data:{_skip:!1}};function Yp(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function jp(e){return[Dt,tr,er,Nt].some(function(t){return e[t]>=0})}function MT(e){var t=e.state,r=e.name,a=t.rects.reference,n=t.rects.popper,s=t.modifiersData.preventOverflow,o=ua(t,{elementContext:"reference"}),l=ua(t,{altBoundary:!0}),d=Yp(o,a),c=Yp(l,n,s),f=jp(d),v=jp(c);t.modifiersData[r]={referenceClippingOffsets:d,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":v})}const S_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:MT};function RT(e,t,r){var a=Rr(e),n=[Nt,Dt].indexOf(a)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=s[0],l=s[1];return o=o||0,l=(l||0)*n,[Nt,tr].indexOf(a)>=0?{x:l,y:o}:{x:o,y:l}}function LT(e){var t=e.state,r=e.options,a=e.name,n=r.offset,s=n===void 0?[0,0]:n,o=kh.reduce(function(f,v){return f[v]=RT(v,t.rects,s),f},{}),l=o[t.placement],d=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=c),t.modifiersData[a]=o}const k_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:LT};function VT(e){var t=e.state,r=e.name;t.modifiersData[r]=w_({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Ph={name:"popperOffsets",enabled:!0,phase:"read",fn:VT,data:{}};function FT(e){return e==="x"?"y":"x"}function YT(e){var t=e.state,r=e.options,a=e.name,n=r.mainAxis,s=n===void 0?!0:n,o=r.altAxis,l=o===void 0?!1:o,d=r.boundary,c=r.rootBoundary,f=r.altBoundary,v=r.padding,m=r.tether,g=m===void 0?!0:m,b=r.tetherOffset,S=b===void 0?0:b,w=ua(t,{boundary:d,rootBoundary:c,padding:v,altBoundary:f}),k=Rr(t.placement),T=ca(t.placement),D=!T,N=Dh(k),L=FT(N),A=t.modifiersData.popperOffsets,R=t.rects.reference,C=t.rects.popper,j=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,O=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(A){if(s){var z,se=N==="y"?Dt:Nt,_e=N==="y"?er:tr,be=N==="y"?"height":"width",he=A[N],rt=he+w[se],ut=he-w[_e],Ie=g?-C[be]/2:0,Mt=T===si?R[be]:C[be],ht=T===si?-C[be]:-R[be],Cr=t.elements.arrow,vt=g&&Cr?$h(Cr):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:m_(),vr=q[se],Or=q[_e],mt=as(0,R[be],vt[be]),W=D?R[be]/2-Ie-mt-vr-O.mainAxis:Mt-mt-vr-O.mainAxis,F=D?-R[be]/2+Ie+mt+Or+O.mainAxis:ht+mt+Or+O.mainAxis,B=t.elements.arrow&&$s(t.elements.arrow),Q=B?N==="y"?B.clientTop||0:B.clientLeft||0:0,ie=(z=M==null?void 0:M[N])!=null?z:0,re=he+W-ie-Q,Re=he+F-ie,Je=as(g?hl(rt,re):rt,he,g?Jn(ut,Re):ut);A[N]=Je,H[N]=Je-he}if(l){var nt,mr=N==="x"?Dt:Nt,ar=N==="x"?er:tr,Ke=A[L],qe=L==="y"?"height":"width",wt=Ke+w[mr],Ti=Ke-w[ar],$i=[Dt,Nt].indexOf(k)!==-1,it=(nt=M==null?void 0:M[L])!=null?nt:0,io=$i?wt:Ke-R[qe]-C[qe]-it+O.altAxis,jn=$i?Ke+R[qe]+C[qe]-it-O.altAxis:Ti,Et=g&&$i?gT(io,Ke,jn):as(g?io:wt,Ke,g?jn:Ti);A[L]=Et,H[L]=Et-Ke}t.modifiersData[a]=H}}const x_={name:"preventOverflow",enabled:!0,phase:"main",fn:YT,requiresIfExists:["offset"]};function jT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function BT(e){return e===rr(e)||!lr(e)?Oh(e):jT(e)}function HT(e){var t=e.getBoundingClientRect(),r=la(t.width)/e.offsetWidth||1,a=la(t.height)/e.offsetHeight||1;return r!==1||a!==1}function WT(e,t,r){r===void 0&&(r=!1);var a=lr(t),n=lr(t)&&HT(t),s=On(t),o=da(e,n,r),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(a||!a&&!r)&&((Fr(t)!=="body"||Ih(s))&&(l=BT(t)),lr(t)?(d=da(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=Ah(s))),{x:o.left+l.scrollLeft-d.x,y:o.top+l.scrollTop-d.y,width:o.width,height:o.height}}function GT(e){var t=new Map,r=new Set,a=[];e.forEach(function(s){t.set(s.name,s)});function n(s){r.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(l){if(!r.has(l)){var d=t.get(l);d&&n(d)}}),a.push(s)}return e.forEach(function(s){r.has(s.name)||n(s)}),a}function zT(e){var t=GT(e);return f_.reduce(function(r,a){return r.concat(t.filter(function(n){return n.phase===a}))},[])}function UT(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function KT(e){var t=e.reduce(function(r,a){var n=r[a.name];return r[a.name]=n?Object.assign({},n,a,{options:Object.assign({},n.options,a.options),data:Object.assign({},n.data,a.data)}):a,r},{});return Object.keys(t).map(function(r){return t[r]})}var Bp={placement:"bottom",modifiers:[],strategy:"absolute"};function Hp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function Bl(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,a=r===void 0?[]:r,n=t.defaultOptions,s=n===void 0?Bp:n;return function(l,d,c){c===void 0&&(c=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Bp,s),modifiersData:{},elements:{reference:l,popper:d},attributes:{},styles:{}},v=[],m=!1,g={state:f,setOptions:function(k){var T=typeof k=="function"?k(f.options):k;S(),f.options=Object.assign({},s,f.options,T),f.scrollParents={reference:oi(l)?ss(l):l.contextElement?ss(l.contextElement):[],popper:ss(d)};var D=zT(KT([].concat(a,f.options.modifiers)));return f.orderedModifiers=D.filter(function(N){return N.enabled}),b(),g.update()},forceUpdate:function(){if(!m){var k=f.elements,T=k.reference,D=k.popper;if(Hp(T,D)){f.rects={reference:WT(T,$s(D),f.options.strategy==="fixed"),popper:$h(D)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(O){return f.modifiersData[O.name]=Object.assign({},O.data)});for(var N=0;N<f.orderedModifiers.length;N++){if(f.reset===!0){f.reset=!1,N=-1;continue}var L=f.orderedModifiers[N],A=L.fn,R=L.options,C=R===void 0?{}:R,j=L.name;typeof A=="function"&&(f=A({state:f,options:C,name:j,instance:g})||f)}}}},update:UT(function(){return new Promise(function(w){g.forceUpdate(),w(f)})}),destroy:function(){S(),m=!0}};if(!Hp(l,d))return g;g.setOptions(c).then(function(w){!m&&c.onFirstUpdate&&c.onFirstUpdate(w)});function b(){f.orderedModifiers.forEach(function(w){var k=w.name,T=w.options,D=T===void 0?{}:T,N=w.effect;if(typeof N=="function"){var L=N({state:f,name:k,instance:g,options:D}),A=function(){};v.push(L||A)}})}function S(){v.forEach(function(w){return w()}),v=[]}return g}}var qT=Bl(),XT=[Ch,Ph,Nh,Th],QT=Bl({defaultModifiers:XT}),ZT=[Ch,Ph,Nh,Th,k_,E_,x_,__,S_],Mh=Bl({defaultModifiers:ZT});const T_=Object.freeze(Object.defineProperty({__proto__:null,afterMain:d_,afterRead:s_,afterWrite:h_,applyStyles:Th,arrow:__,auto:Yl,basePlacements:Ea,beforeMain:o_,beforeRead:i_,beforeWrite:c_,bottom:er,clippingParents:r_,computeStyles:Nh,createPopper:Mh,createPopperBase:qT,createPopperLite:QT,detectOverflow:ua,end:oa,eventListeners:Ch,flip:E_,hide:S_,left:Nt,main:l_,modifierPhases:f_,offset:k_,placements:kh,popper:Ui,popperGenerator:Bl,popperOffsets:Ph,preventOverflow:x_,read:a_,reference:n_,right:tr,start:si,top:Dt,variationPlacements:ku,viewport:Sh,write:u_},Symbol.toStringTag,{value:"Module"}));/*!
2
+ * Bootstrap v5.3.3 (https://getbootstrap.com/)
3
+ * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
+ */const yn=new Map,jd={set(e,t,r){yn.has(e)||yn.set(e,new Map);const a=yn.get(e);if(!a.has(t)&&a.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(a.keys())[0]}.`);return}a.set(t,r)},get(e,t){return yn.has(e)&&yn.get(e).get(t)||null},remove(e,t){if(!yn.has(e))return;const r=yn.get(e);r.delete(t),r.size===0&&yn.delete(e)}},JT=1e6,e$=1e3,$u="transitionend",$_=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(t,r)=>`#${CSS.escape(r)}`)),e),t$=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),r$=e=>{do e+=Math.floor(Math.random()*JT);while(document.getElementById(e));return e},n$=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:r}=window.getComputedStyle(e);const a=Number.parseFloat(t),n=Number.parseFloat(r);return!a&&!n?0:(t=t.split(",")[0],r=r.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(r))*e$)},D_=e=>{e.dispatchEvent(new Event($u))},Xr=e=>!e||typeof e!="object"?!1:(typeof e.jquery<"u"&&(e=e[0]),typeof e.nodeType<"u"),Tn=e=>Xr(e)?e.jquery?e[0]:e:typeof e=="string"&&e.length>0?document.querySelector($_(e)):null,Sa=e=>{if(!Xr(e)||e.getClientRects().length===0)return!1;const t=getComputedStyle(e).getPropertyValue("visibility")==="visible",r=e.closest("details:not([open])");if(!r)return t;if(r!==e){const a=e.closest("summary");if(a&&a.parentNode!==r||a===null)return!1}return t},$n=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains("disabled")?!0:typeof e.disabled<"u"?e.disabled:e.hasAttribute("disabled")&&e.getAttribute("disabled")!=="false",N_=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode=="function"){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?N_(e.parentNode):null},fl=()=>{},Ds=e=>{e.offsetHeight},C_=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Bd=[],i$=e=>{document.readyState==="loading"?(Bd.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of Bd)t()}),Bd.push(e)):e()},cr=()=>document.documentElement.dir==="rtl",hr=e=>{i$(()=>{const t=C_();if(t){const r=e.NAME,a=t.fn[r];t.fn[r]=e.jQueryInterface,t.fn[r].Constructor=e,t.fn[r].noConflict=()=>(t.fn[r]=a,e.jQueryInterface)}})},Yt=(e,t=[],r=e)=>typeof e=="function"?e(...t):r,O_=(e,t,r=!0)=>{if(!r){Yt(e);return}const n=n$(t)+5;let s=!1;const o=({target:l})=>{l===t&&(s=!0,t.removeEventListener($u,o),Yt(e))};t.addEventListener($u,o),setTimeout(()=>{s||D_(t)},n)},Rh=(e,t,r,a)=>{const n=e.length;let s=e.indexOf(t);return s===-1?!r&&a?e[n-1]:e[0]:(s+=r?1:-1,a&&(s=(s+n)%n),e[Math.max(0,Math.min(s,n-1))])},a$=/[^.]*(?=\..*)\.|.*/,s$=/\..*/,o$=/::\d+$/,Hd={};let Wp=1;const A_={mouseenter:"mouseover",mouseleave:"mouseout"},l$=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function I_(e,t){return t&&`${t}::${Wp++}`||e.uidEvent||Wp++}function P_(e){const t=I_(e);return e.uidEvent=t,Hd[t]=Hd[t]||{},Hd[t]}function d$(e,t){return function r(a){return Lh(a,{delegateTarget:e}),r.oneOff&&V.off(e,a.type,t),t.apply(e,[a])}}function c$(e,t,r){return function a(n){const s=e.querySelectorAll(t);for(let{target:o}=n;o&&o!==this;o=o.parentNode)for(const l of s)if(l===o)return Lh(n,{delegateTarget:o}),a.oneOff&&V.off(e,n.type,t,r),r.apply(o,[n])}}function M_(e,t,r=null){return Object.values(e).find(a=>a.callable===t&&a.delegationSelector===r)}function R_(e,t,r){const a=typeof t=="string",n=a?r:t||r;let s=L_(e);return l$.has(s)||(s=e),[a,n,s]}function Gp(e,t,r,a,n){if(typeof t!="string"||!e)return;let[s,o,l]=R_(t,r,a);t in A_&&(o=(b=>function(S){if(!S.relatedTarget||S.relatedTarget!==S.delegateTarget&&!S.delegateTarget.contains(S.relatedTarget))return b.call(this,S)})(o));const d=P_(e),c=d[l]||(d[l]={}),f=M_(c,o,s?r:null);if(f){f.oneOff=f.oneOff&&n;return}const v=I_(o,t.replace(a$,"")),m=s?c$(e,r,o):d$(e,o);m.delegationSelector=s?r:null,m.callable=o,m.oneOff=n,m.uidEvent=v,c[v]=m,e.addEventListener(l,m,s)}function Du(e,t,r,a,n){const s=M_(t[r],a,n);s&&(e.removeEventListener(r,s,!!n),delete t[r][s.uidEvent])}function u$(e,t,r,a){const n=t[r]||{};for(const[s,o]of Object.entries(n))s.includes(a)&&Du(e,t,r,o.callable,o.delegationSelector)}function L_(e){return e=e.replace(s$,""),A_[e]||e}const V={on(e,t,r,a){Gp(e,t,r,a,!1)},one(e,t,r,a){Gp(e,t,r,a,!0)},off(e,t,r,a){if(typeof t!="string"||!e)return;const[n,s,o]=R_(t,r,a),l=o!==t,d=P_(e),c=d[o]||{},f=t.startsWith(".");if(typeof s<"u"){if(!Object.keys(c).length)return;Du(e,d,o,s,n?r:null);return}if(f)for(const v of Object.keys(d))u$(e,d,v,t.slice(1));for(const[v,m]of Object.entries(c)){const g=v.replace(o$,"");(!l||t.includes(g))&&Du(e,d,o,m.callable,m.delegationSelector)}},trigger(e,t,r){if(typeof t!="string"||!e)return null;const a=C_(),n=L_(t),s=t!==n;let o=null,l=!0,d=!0,c=!1;s&&a&&(o=a.Event(t,r),a(e).trigger(o),l=!o.isPropagationStopped(),d=!o.isImmediatePropagationStopped(),c=o.isDefaultPrevented());const f=Lh(new Event(t,{bubbles:l,cancelable:!0}),r);return c&&f.preventDefault(),d&&e.dispatchEvent(f),f.defaultPrevented&&o&&o.preventDefault(),f}};function Lh(e,t={}){for(const[r,a]of Object.entries(t))try{e[r]=a}catch{Object.defineProperty(e,r,{configurable:!0,get(){return a}})}return e}function zp(e){if(e==="true")return!0;if(e==="false")return!1;if(e===Number(e).toString())return Number(e);if(e===""||e==="null")return null;if(typeof e!="string")return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function Wd(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const Qr={setDataAttribute(e,t,r){e.setAttribute(`data-bs-${Wd(t)}`,r)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${Wd(t)}`)},getDataAttributes(e){if(!e)return{};const t={},r=Object.keys(e.dataset).filter(a=>a.startsWith("bs")&&!a.startsWith("bsConfig"));for(const a of r){let n=a.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=zp(e.dataset[a])}return t},getDataAttribute(e,t){return zp(e.getAttribute(`data-bs-${Wd(t)}`))}};class Ns{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,r){const a=Xr(r)?Qr.getDataAttribute(r,"config"):{};return{...this.constructor.Default,...typeof a=="object"?a:{},...Xr(r)?Qr.getDataAttributes(r):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,r=this.constructor.DefaultType){for(const[a,n]of Object.entries(r)){const s=t[a],o=Xr(s)?"element":t$(s);if(!new RegExp(n).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${a}" provided type "${o}" but expected type "${n}".`)}}}const h$="5.3.3";class Tr extends Ns{constructor(t,r){super(),t=Tn(t),t&&(this._element=t,this._config=this._getConfig(r),jd.set(this._element,this.constructor.DATA_KEY,this))}dispose(){jd.remove(this._element,this.constructor.DATA_KEY),V.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,r,a=!0){O_(t,r,a)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return jd.get(Tn(t),this.DATA_KEY)}static getOrCreateInstance(t,r={}){return this.getInstance(t)||new this(t,typeof r=="object"?r:null)}static get VERSION(){return h$}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Gd=e=>{let t=e.getAttribute("data-bs-target");if(!t||t==="#"){let r=e.getAttribute("href");if(!r||!r.includes("#")&&!r.startsWith("."))return null;r.includes("#")&&!r.startsWith("#")&&(r=`#${r.split("#")[1]}`),t=r&&r!=="#"?r.trim():null}return t?t.split(",").map(r=>$_(r)).join(","):null},ee={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(r=>r.matches(t))},parents(e,t){const r=[];let a=e.parentNode.closest(t);for(;a;)r.push(a),a=a.parentNode.closest(t);return r},prev(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return[r];r=r.previousElementSibling}return[]},next(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return[r];r=r.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(r=>`${r}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(r=>!$n(r)&&Sa(r))},getSelectorFromElement(e){const t=Gd(e);return t&&ee.findOne(t)?t:null},getElementFromSelector(e){const t=Gd(e);return t?ee.findOne(t):null},getMultipleElementsFromSelector(e){const t=Gd(e);return t?ee.find(t):[]}},Hl=(e,t="hide")=>{const r=`click.dismiss${e.EVENT_KEY}`,a=e.NAME;V.on(document,r,`[data-bs-dismiss="${a}"]`,function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),$n(this))return;const s=ee.getElementFromSelector(this)||this.closest(`.${a}`);e.getOrCreateInstance(s)[t]()})},f$="alert",p$="bs.alert",V_=`.${p$}`,v$=`close${V_}`,m$=`closed${V_}`,g$="fade",y$="show";class Wl extends Tr{static get NAME(){return f$}close(){if(V.trigger(this._element,v$).defaultPrevented)return;this._element.classList.remove(y$);const r=this._element.classList.contains(g$);this._queueCallback(()=>this._destroyElement(),this._element,r)}_destroyElement(){this._element.remove(),V.trigger(this._element,m$),this.dispose()}static jQueryInterface(t){return this.each(function(){const r=Wl.getOrCreateInstance(this);if(typeof t=="string"){if(r[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);r[t](this)}})}}Hl(Wl,"close");hr(Wl);const _$="button",b$="bs.button",w$=`.${b$}`,E$=".data-api",S$="active",Up='[data-bs-toggle="button"]',k$=`click${w$}${E$}`;class Gl extends Tr{static get NAME(){return _$}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(S$))}static jQueryInterface(t){return this.each(function(){const r=Gl.getOrCreateInstance(this);t==="toggle"&&r[t]()})}}V.on(document,k$,Up,e=>{e.preventDefault();const t=e.target.closest(Up);Gl.getOrCreateInstance(t).toggle()});hr(Gl);const x$="swipe",ka=".bs.swipe",T$=`touchstart${ka}`,$$=`touchmove${ka}`,D$=`touchend${ka}`,N$=`pointerdown${ka}`,C$=`pointerup${ka}`,O$="touch",A$="pen",I$="pointer-event",P$=40,M$={endCallback:null,leftCallback:null,rightCallback:null},R$={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class pl extends Ns{constructor(t,r){super(),this._element=t,!(!t||!pl.isSupported())&&(this._config=this._getConfig(r),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return M$}static get DefaultType(){return R$}static get NAME(){return x$}dispose(){V.off(this._element,ka)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),Yt(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=P$)return;const r=t/this._deltaX;this._deltaX=0,r&&Yt(r>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(V.on(this._element,N$,t=>this._start(t)),V.on(this._element,C$,t=>this._end(t)),this._element.classList.add(I$)):(V.on(this._element,T$,t=>this._start(t)),V.on(this._element,$$,t=>this._move(t)),V.on(this._element,D$,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===A$||t.pointerType===O$)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const L$="carousel",V$="bs.carousel",An=`.${V$}`,F_=".data-api",F$="ArrowLeft",Y$="ArrowRight",j$=500,Xa="next",Mi="prev",Ki="left",nl="right",B$=`slide${An}`,zd=`slid${An}`,H$=`keydown${An}`,W$=`mouseenter${An}`,G$=`mouseleave${An}`,z$=`dragstart${An}`,U$=`load${An}${F_}`,K$=`click${An}${F_}`,Y_="carousel",To="active",q$="slide",X$="carousel-item-end",Q$="carousel-item-start",Z$="carousel-item-next",J$="carousel-item-prev",j_=".active",B_=".carousel-item",eD=j_+B_,tD=".carousel-item img",rD=".carousel-indicators",nD="[data-bs-slide], [data-bs-slide-to]",iD='[data-bs-ride="carousel"]',aD={[F$]:nl,[Y$]:Ki},sD={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},oD={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Cs extends Tr{constructor(t,r){super(t,r),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=ee.findOne(rD,this._element),this._addEventListeners(),this._config.ride===Y_&&this.cycle()}static get Default(){return sD}static get DefaultType(){return oD}static get NAME(){return L$}next(){this._slide(Xa)}nextWhenVisible(){!document.hidden&&Sa(this._element)&&this.next()}prev(){this._slide(Mi)}pause(){this._isSliding&&D_(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){V.one(this._element,zd,()=>this.cycle());return}this.cycle()}}to(t){const r=this._getItems();if(t>r.length-1||t<0)return;if(this._isSliding){V.one(this._element,zd,()=>this.to(t));return}const a=this._getItemIndex(this._getActive());if(a===t)return;const n=t>a?Xa:Mi;this._slide(n,r[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&V.on(this._element,H$,t=>this._keydown(t)),this._config.pause==="hover"&&(V.on(this._element,W$,()=>this.pause()),V.on(this._element,G$,()=>this._maybeEnableCycle())),this._config.touch&&pl.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const a of ee.find(tD,this._element))V.on(a,z$,n=>n.preventDefault());const r={leftCallback:()=>this._slide(this._directionToOrder(Ki)),rightCallback:()=>this._slide(this._directionToOrder(nl)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),j$+this._config.interval))}};this._swipeHelper=new pl(this._element,r)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const r=aD[t.key];r&&(t.preventDefault(),this._slide(this._directionToOrder(r)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const r=ee.findOne(j_,this._indicatorsElement);r.classList.remove(To),r.removeAttribute("aria-current");const a=ee.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);a&&(a.classList.add(To),a.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const r=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=r||this._config.defaultInterval}_slide(t,r=null){if(this._isSliding)return;const a=this._getActive(),n=t===Xa,s=r||Rh(this._getItems(),a,n,this._config.wrap);if(s===a)return;const o=this._getItemIndex(s),l=g=>V.trigger(this._element,g,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(a),to:o});if(l(B$).defaultPrevented||!a||!s)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const f=n?Q$:X$,v=n?Z$:J$;s.classList.add(v),Ds(s),a.classList.add(f),s.classList.add(f);const m=()=>{s.classList.remove(f,v),s.classList.add(To),a.classList.remove(To,v,f),this._isSliding=!1,l(zd)};this._queueCallback(m,a,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(q$)}_getActive(){return ee.findOne(eD,this._element)}_getItems(){return ee.find(B_,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return cr()?t===Ki?Mi:Xa:t===Ki?Xa:Mi}_orderToDirection(t){return cr()?t===Mi?Ki:nl:t===Mi?nl:Ki}static jQueryInterface(t){return this.each(function(){const r=Cs.getOrCreateInstance(this,t);if(typeof t=="number"){r.to(t);return}if(typeof t=="string"){if(r[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);r[t]()}})}}V.on(document,K$,nD,function(e){const t=ee.getElementFromSelector(this);if(!t||!t.classList.contains(Y_))return;e.preventDefault();const r=Cs.getOrCreateInstance(t),a=this.getAttribute("data-bs-slide-to");if(a){r.to(a),r._maybeEnableCycle();return}if(Qr.getDataAttribute(this,"slide")==="next"){r.next(),r._maybeEnableCycle();return}r.prev(),r._maybeEnableCycle()});V.on(window,U$,()=>{const e=ee.find(iD);for(const t of e)Cs.getOrCreateInstance(t)});hr(Cs);const lD="collapse",dD="bs.collapse",Os=`.${dD}`,cD=".data-api",uD=`show${Os}`,hD=`shown${Os}`,fD=`hide${Os}`,pD=`hidden${Os}`,vD=`click${Os}${cD}`,Ud="show",Qi="collapse",$o="collapsing",mD="collapsed",gD=`:scope .${Qi} .${Qi}`,yD="collapse-horizontal",_D="width",bD="height",wD=".collapse.show, .collapse.collapsing",Nu='[data-bs-toggle="collapse"]',ED={parent:null,toggle:!0},SD={parent:"(null|element)",toggle:"boolean"};class vs extends Tr{constructor(t,r){super(t,r),this._isTransitioning=!1,this._triggerArray=[];const a=ee.find(Nu);for(const n of a){const s=ee.getSelectorFromElement(n),o=ee.find(s).filter(l=>l===this._element);s!==null&&o.length&&this._triggerArray.push(n)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ED}static get DefaultType(){return SD}static get NAME(){return lD}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(wD).filter(l=>l!==this._element).map(l=>vs.getOrCreateInstance(l,{toggle:!1}))),t.length&&t[0]._isTransitioning||V.trigger(this._element,uD).defaultPrevented)return;for(const l of t)l.hide();const a=this._getDimension();this._element.classList.remove(Qi),this._element.classList.add($o),this._element.style[a]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove($o),this._element.classList.add(Qi,Ud),this._element.style[a]="",V.trigger(this._element,hD)},o=`scroll${a[0].toUpperCase()+a.slice(1)}`;this._queueCallback(n,this._element,!0),this._element.style[a]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown()||V.trigger(this._element,fD).defaultPrevented)return;const r=this._getDimension();this._element.style[r]=`${this._element.getBoundingClientRect()[r]}px`,Ds(this._element),this._element.classList.add($o),this._element.classList.remove(Qi,Ud);for(const n of this._triggerArray){const s=ee.getElementFromSelector(n);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([n],!1)}this._isTransitioning=!0;const a=()=>{this._isTransitioning=!1,this._element.classList.remove($o),this._element.classList.add(Qi),V.trigger(this._element,pD)};this._element.style[r]="",this._queueCallback(a,this._element,!0)}_isShown(t=this._element){return t.classList.contains(Ud)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=Tn(t.parent),t}_getDimension(){return this._element.classList.contains(yD)?_D:bD}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Nu);for(const r of t){const a=ee.getElementFromSelector(r);a&&this._addAriaAndCollapsedClass([r],this._isShown(a))}}_getFirstLevelChildren(t){const r=ee.find(gD,this._config.parent);return ee.find(t,this._config.parent).filter(a=>!r.includes(a))}_addAriaAndCollapsedClass(t,r){if(t.length)for(const a of t)a.classList.toggle(mD,!r),a.setAttribute("aria-expanded",r)}static jQueryInterface(t){const r={};return typeof t=="string"&&/show|hide/.test(t)&&(r.toggle=!1),this.each(function(){const a=vs.getOrCreateInstance(this,r);if(typeof t=="string"){if(typeof a[t]>"u")throw new TypeError(`No method named "${t}"`);a[t]()}})}}V.on(document,vD,Nu,function(e){(e.target.tagName==="A"||e.delegateTarget&&e.delegateTarget.tagName==="A")&&e.preventDefault();for(const t of ee.getMultipleElementsFromSelector(this))vs.getOrCreateInstance(t,{toggle:!1}).toggle()});hr(vs);const Kp="dropdown",kD="bs.dropdown",mi=`.${kD}`,Vh=".data-api",xD="Escape",qp="Tab",TD="ArrowUp",Xp="ArrowDown",$D=2,DD=`hide${mi}`,ND=`hidden${mi}`,CD=`show${mi}`,OD=`shown${mi}`,H_=`click${mi}${Vh}`,W_=`keydown${mi}${Vh}`,AD=`keyup${mi}${Vh}`,qi="show",ID="dropup",PD="dropend",MD="dropstart",RD="dropup-center",LD="dropdown-center",Xn='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',VD=`${Xn}.${qi}`,il=".dropdown-menu",FD=".navbar",YD=".navbar-nav",jD=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",BD=cr()?"top-end":"top-start",HD=cr()?"top-start":"top-end",WD=cr()?"bottom-end":"bottom-start",GD=cr()?"bottom-start":"bottom-end",zD=cr()?"left-start":"right-start",UD=cr()?"right-start":"left-start",KD="top",qD="bottom",XD={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},QD={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Lr extends Tr{constructor(t,r){super(t,r),this._popper=null,this._parent=this._element.parentNode,this._menu=ee.next(this._element,il)[0]||ee.prev(this._element,il)[0]||ee.findOne(il,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return XD}static get DefaultType(){return QD}static get NAME(){return Kp}toggle(){return this._isShown()?this.hide():this.show()}show(){if($n(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!V.trigger(this._element,CD,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(YD))for(const a of[].concat(...document.body.children))V.on(a,"mouseover",fl);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(qi),this._element.classList.add(qi),V.trigger(this._element,OD,t)}}hide(){if($n(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!V.trigger(this._element,DD,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))V.off(a,"mouseover",fl);this._popper&&this._popper.destroy(),this._menu.classList.remove(qi),this._element.classList.remove(qi),this._element.setAttribute("aria-expanded","false"),Qr.removeDataAttribute(this._menu,"popper"),V.trigger(this._element,ND,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!Xr(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Kp.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof T_>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:Xr(this._config.reference)?t=Tn(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const r=this._getPopperConfig();this._popper=Mh(t,this._menu,r)}_isShown(){return this._menu.classList.contains(qi)}_getPlacement(){const t=this._parent;if(t.classList.contains(PD))return zD;if(t.classList.contains(MD))return UD;if(t.classList.contains(RD))return KD;if(t.classList.contains(LD))return qD;const r=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(ID)?r?HD:BD:r?GD:WD}_detectNavbar(){return this._element.closest(FD)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(r=>Number.parseInt(r,10)):typeof t=="function"?r=>t(r,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Qr.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Yt(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:r}){const a=ee.find(jD,this._menu).filter(n=>Sa(n));a.length&&Rh(a,r,t===Xp,!a.includes(r)).focus()}static jQueryInterface(t){return this.each(function(){const r=Lr.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t]()}})}static clearMenus(t){if(t.button===$D||t.type==="keyup"&&t.key!==qp)return;const r=ee.find(VD);for(const a of r){const n=Lr.getInstance(a);if(!n||n._config.autoClose===!1)continue;const s=t.composedPath(),o=s.includes(n._menu);if(s.includes(n._element)||n._config.autoClose==="inside"&&!o||n._config.autoClose==="outside"&&o||n._menu.contains(t.target)&&(t.type==="keyup"&&t.key===qp||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const l={relatedTarget:n._element};t.type==="click"&&(l.clickEvent=t),n._completeHide(l)}}static dataApiKeydownHandler(t){const r=/input|textarea/i.test(t.target.tagName),a=t.key===xD,n=[TD,Xp].includes(t.key);if(!n&&!a||r&&!a)return;t.preventDefault();const s=this.matches(Xn)?this:ee.prev(this,Xn)[0]||ee.next(this,Xn)[0]||ee.findOne(Xn,t.delegateTarget.parentNode),o=Lr.getOrCreateInstance(s);if(n){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),s.focus())}}V.on(document,W_,Xn,Lr.dataApiKeydownHandler);V.on(document,W_,il,Lr.dataApiKeydownHandler);V.on(document,H_,Lr.clearMenus);V.on(document,AD,Lr.clearMenus);V.on(document,H_,Xn,function(e){e.preventDefault(),Lr.getOrCreateInstance(this).toggle()});hr(Lr);const G_="backdrop",ZD="fade",Qp="show",Zp=`mousedown.bs.${G_}`,JD={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},eN={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class z_ extends Ns{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return JD}static get DefaultType(){return eN}static get NAME(){return G_}show(t){if(!this._config.isVisible){Yt(t);return}this._append();const r=this._getElement();this._config.isAnimated&&Ds(r),r.classList.add(Qp),this._emulateAnimation(()=>{Yt(t)})}hide(t){if(!this._config.isVisible){Yt(t);return}this._getElement().classList.remove(Qp),this._emulateAnimation(()=>{this.dispose(),Yt(t)})}dispose(){this._isAppended&&(V.off(this._element,Zp),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(ZD),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=Tn(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),V.on(t,Zp,()=>{Yt(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){O_(t,this._getElement(),this._config.isAnimated)}}const tN="focustrap",rN="bs.focustrap",vl=`.${rN}`,nN=`focusin${vl}`,iN=`keydown.tab${vl}`,aN="Tab",sN="forward",Jp="backward",oN={autofocus:!0,trapElement:null},lN={autofocus:"boolean",trapElement:"element"};class U_ extends Ns{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return oN}static get DefaultType(){return lN}static get NAME(){return tN}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),V.off(document,vl),V.on(document,nN,t=>this._handleFocusin(t)),V.on(document,iN,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,V.off(document,vl))}_handleFocusin(t){const{trapElement:r}=this._config;if(t.target===document||t.target===r||r.contains(t.target))return;const a=ee.focusableChildren(r);a.length===0?r.focus():this._lastTabNavDirection===Jp?a[a.length-1].focus():a[0].focus()}_handleKeydown(t){t.key===aN&&(this._lastTabNavDirection=t.shiftKey?Jp:sN)}}const ev=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",tv=".sticky-top",Do="padding-right",rv="margin-right";class Cu{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Do,r=>r+t),this._setElementAttributes(ev,Do,r=>r+t),this._setElementAttributes(tv,rv,r=>r-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Do),this._resetElementAttributes(ev,Do),this._resetElementAttributes(tv,rv)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,r,a){const n=this.getWidth(),s=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+n)return;this._saveInitialAttribute(o,r);const l=window.getComputedStyle(o).getPropertyValue(r);o.style.setProperty(r,`${a(Number.parseFloat(l))}px`)};this._applyManipulationCallback(t,s)}_saveInitialAttribute(t,r){const a=t.style.getPropertyValue(r);a&&Qr.setDataAttribute(t,r,a)}_resetElementAttributes(t,r){const a=n=>{const s=Qr.getDataAttribute(n,r);if(s===null){n.style.removeProperty(r);return}Qr.removeDataAttribute(n,r),n.style.setProperty(r,s)};this._applyManipulationCallback(t,a)}_applyManipulationCallback(t,r){if(Xr(t)){r(t);return}for(const a of ee.find(t,this._element))r(a)}}const dN="modal",cN="bs.modal",ur=`.${cN}`,uN=".data-api",hN="Escape",fN=`hide${ur}`,pN=`hidePrevented${ur}`,K_=`hidden${ur}`,q_=`show${ur}`,vN=`shown${ur}`,mN=`resize${ur}`,gN=`click.dismiss${ur}`,yN=`mousedown.dismiss${ur}`,_N=`keydown.dismiss${ur}`,bN=`click${ur}${uN}`,nv="modal-open",wN="fade",iv="show",Kd="modal-static",EN=".modal.show",SN=".modal-dialog",kN=".modal-body",xN='[data-bs-toggle="modal"]',TN={backdrop:!0,focus:!0,keyboard:!0},$N={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class li extends Tr{constructor(t,r){super(t,r),this._dialog=ee.findOne(SN,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Cu,this._addEventListeners()}static get Default(){return TN}static get DefaultType(){return $N}static get NAME(){return dN}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||V.trigger(this._element,q_,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(nv),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||V.trigger(this._element,fN).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(iv),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){V.off(window,ur),V.off(this._dialog,ur),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new z_({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new U_({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const r=ee.findOne(kN,this._dialog);r&&(r.scrollTop=0),Ds(this._element),this._element.classList.add(iv);const a=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,V.trigger(this._element,vN,{relatedTarget:t})};this._queueCallback(a,this._dialog,this._isAnimated())}_addEventListeners(){V.on(this._element,_N,t=>{if(t.key===hN){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),V.on(window,mN,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),V.on(this._element,yN,t=>{V.one(this._element,gN,r=>{if(!(this._element!==t.target||this._element!==r.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(nv),this._resetAdjustments(),this._scrollBar.reset(),V.trigger(this._element,K_)})}_isAnimated(){return this._element.classList.contains(wN)}_triggerBackdropTransition(){if(V.trigger(this._element,pN).defaultPrevented)return;const r=this._element.scrollHeight>document.documentElement.clientHeight,a=this._element.style.overflowY;a==="hidden"||this._element.classList.contains(Kd)||(r||(this._element.style.overflowY="hidden"),this._element.classList.add(Kd),this._queueCallback(()=>{this._element.classList.remove(Kd),this._queueCallback(()=>{this._element.style.overflowY=a},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,r=this._scrollBar.getWidth(),a=r>0;if(a&&!t){const n=cr()?"paddingLeft":"paddingRight";this._element.style[n]=`${r}px`}if(!a&&t){const n=cr()?"paddingRight":"paddingLeft";this._element.style[n]=`${r}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,r){return this.each(function(){const a=li.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof a[t]>"u")throw new TypeError(`No method named "${t}"`);a[t](r)}})}}V.on(document,bN,xN,function(e){const t=ee.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),V.one(t,q_,n=>{n.defaultPrevented||V.one(t,K_,()=>{Sa(this)&&this.focus()})});const r=ee.findOne(EN);r&&li.getInstance(r).hide(),li.getOrCreateInstance(t).toggle(this)});Hl(li);hr(li);const DN="offcanvas",NN="bs.offcanvas",ln=`.${NN}`,X_=".data-api",CN=`load${ln}${X_}`,ON="Escape",av="show",sv="showing",ov="hiding",AN="offcanvas-backdrop",Q_=".offcanvas.show",IN=`show${ln}`,PN=`shown${ln}`,MN=`hide${ln}`,lv=`hidePrevented${ln}`,Z_=`hidden${ln}`,RN=`resize${ln}`,LN=`click${ln}${X_}`,VN=`keydown.dismiss${ln}`,FN='[data-bs-toggle="offcanvas"]',YN={backdrop:!0,keyboard:!0,scroll:!1},jN={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Dn extends Tr{constructor(t,r){super(t,r),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return YN}static get DefaultType(){return jN}static get NAME(){return DN}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||V.trigger(this._element,IN,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Cu().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(sv);const a=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(av),this._element.classList.remove(sv),V.trigger(this._element,PN,{relatedTarget:t})};this._queueCallback(a,this._element,!0)}hide(){if(!this._isShown||V.trigger(this._element,MN).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(ov),this._backdrop.hide();const r=()=>{this._element.classList.remove(av,ov),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Cu().reset(),V.trigger(this._element,Z_)};this._queueCallback(r,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){V.trigger(this._element,lv);return}this.hide()},r=!!this._config.backdrop;return new z_({className:AN,isVisible:r,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:r?t:null})}_initializeFocusTrap(){return new U_({trapElement:this._element})}_addEventListeners(){V.on(this._element,VN,t=>{if(t.key===ON){if(this._config.keyboard){this.hide();return}V.trigger(this._element,lv)}})}static jQueryInterface(t){return this.each(function(){const r=Dn.getOrCreateInstance(this,t);if(typeof t=="string"){if(r[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);r[t](this)}})}}V.on(document,LN,FN,function(e){const t=ee.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),$n(this))return;V.one(t,Z_,()=>{Sa(this)&&this.focus()});const r=ee.findOne(Q_);r&&r!==t&&Dn.getInstance(r).hide(),Dn.getOrCreateInstance(t).toggle(this)});V.on(window,CN,()=>{for(const e of ee.find(Q_))Dn.getOrCreateInstance(e).show()});V.on(window,RN,()=>{for(const e of ee.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(e).position!=="fixed"&&Dn.getOrCreateInstance(e).hide()});Hl(Dn);hr(Dn);const BN=/^aria-[\w-]*$/i,J_={"*":["class","dir","id","lang","role",BN],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},HN=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),WN=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,GN=(e,t)=>{const r=e.nodeName.toLowerCase();return t.includes(r)?HN.has(r)?!!WN.test(e.nodeValue):!0:t.filter(a=>a instanceof RegExp).some(a=>a.test(r))};function zN(e,t,r){if(!e.length)return e;if(r&&typeof r=="function")return r(e);const n=new window.DOMParser().parseFromString(e,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(const o of s){const l=o.nodeName.toLowerCase();if(!Object.keys(t).includes(l)){o.remove();continue}const d=[].concat(...o.attributes),c=[].concat(t["*"]||[],t[l]||[]);for(const f of d)GN(f,c)||o.removeAttribute(f.nodeName)}return n.body.innerHTML}const UN="TemplateFactory",KN={allowList:J_,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},qN={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},XN={entry:"(string|element|function|null)",selector:"(string|element)"};class QN extends Ns{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return KN}static get DefaultType(){return qN}static get NAME(){return UN}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[n,s]of Object.entries(this._config.content))this._setContent(t,s,n);const r=t.children[0],a=this._resolvePossibleFunction(this._config.extraClass);return a&&r.classList.add(...a.split(" ")),r}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[r,a]of Object.entries(t))super._typeCheckConfig({selector:r,entry:a},XN)}_setContent(t,r,a){const n=ee.findOne(a,t);if(n){if(r=this._resolvePossibleFunction(r),!r){n.remove();return}if(Xr(r)){this._putElementInTemplate(Tn(r),n);return}if(this._config.html){n.innerHTML=this._maybeSanitize(r);return}n.textContent=r}}_maybeSanitize(t){return this._config.sanitize?zN(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Yt(t,[this])}_putElementInTemplate(t,r){if(this._config.html){r.innerHTML="",r.append(t);return}r.textContent=t.textContent}}const ZN="tooltip",JN=new Set(["sanitize","allowList","sanitizeFn"]),qd="fade",eC="modal",No="show",tC=".tooltip-inner",dv=`.${eC}`,cv="hide.bs.modal",Qa="hover",Xd="focus",rC="click",nC="manual",iC="hide",aC="hidden",sC="show",oC="shown",lC="inserted",dC="click",cC="focusin",uC="focusout",hC="mouseenter",fC="mouseleave",pC={AUTO:"auto",TOP:"top",RIGHT:cr()?"left":"right",BOTTOM:"bottom",LEFT:cr()?"right":"left"},vC={allowList:J_,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},mC={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class xa extends Tr{constructor(t,r){if(typeof T_>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,r),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return vC}static get DefaultType(){return mC}static get NAME(){return ZN}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),V.off(this._element.closest(dv),cv,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const t=V.trigger(this._element,this.constructor.eventName(sC)),a=(N_(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!a)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(n),V.trigger(this._element,this.constructor.eventName(lC))),this._popper=this._createPopper(n),n.classList.add(No),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))V.on(l,"mouseover",fl);const o=()=>{V.trigger(this._element,this.constructor.eventName(oC)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown()||V.trigger(this._element,this.constructor.eventName(iC)).defaultPrevented)return;if(this._getTipElement().classList.remove(No),"ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))V.off(n,"mouseover",fl);this._activeTrigger[rC]=!1,this._activeTrigger[Xd]=!1,this._activeTrigger[Qa]=!1,this._isHovered=null;const a=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),V.trigger(this._element,this.constructor.eventName(aC)))};this._queueCallback(a,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const r=this._getTemplateFactory(t).toHtml();if(!r)return null;r.classList.remove(qd,No),r.classList.add(`bs-${this.constructor.NAME}-auto`);const a=r$(this.constructor.NAME).toString();return r.setAttribute("id",a),this._isAnimated()&&r.classList.add(qd),r}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new QN({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[tC]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(qd)}_isShown(){return this.tip&&this.tip.classList.contains(No)}_createPopper(t){const r=Yt(this._config.placement,[this,t,this._element]),a=pC[r.toUpperCase()];return Mh(this._element,t,this._getPopperConfig(a))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(r=>Number.parseInt(r,10)):typeof t=="function"?r=>t(r,this._element):t}_resolvePossibleFunction(t){return Yt(t,[this._element])}_getPopperConfig(t){const r={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:a=>{this._getTipElement().setAttribute("data-popper-placement",a.state.placement)}}]};return{...r,...Yt(this._config.popperConfig,[r])}}_setListeners(){const t=this._config.trigger.split(" ");for(const r of t)if(r==="click")V.on(this._element,this.constructor.eventName(dC),this._config.selector,a=>{this._initializeOnDelegatedTarget(a).toggle()});else if(r!==nC){const a=r===Qa?this.constructor.eventName(hC):this.constructor.eventName(cC),n=r===Qa?this.constructor.eventName(fC):this.constructor.eventName(uC);V.on(this._element,a,this._config.selector,s=>{const o=this._initializeOnDelegatedTarget(s);o._activeTrigger[s.type==="focusin"?Xd:Qa]=!0,o._enter()}),V.on(this._element,n,this._config.selector,s=>{const o=this._initializeOnDelegatedTarget(s);o._activeTrigger[s.type==="focusout"?Xd:Qa]=o._element.contains(s.relatedTarget),o._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},V.on(this._element.closest(dv),cv,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,r){clearTimeout(this._timeout),this._timeout=setTimeout(t,r)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const r=Qr.getDataAttributes(this._element);for(const a of Object.keys(r))JN.has(a)&&delete r[a];return t={...r,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:Tn(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[r,a]of Object.entries(this._config))this.constructor.Default[r]!==a&&(t[r]=a);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const r=xa.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t]()}})}}hr(xa);const gC="popover",yC=".popover-header",_C=".popover-body",bC={...xa.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},wC={...xa.DefaultType,content:"(null|string|element|function)"};class Fh extends xa{static get Default(){return bC}static get DefaultType(){return wC}static get NAME(){return gC}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[yC]:this._getTitle(),[_C]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const r=Fh.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t]()}})}}hr(Fh);const EC="scrollspy",SC="bs.scrollspy",Yh=`.${SC}`,kC=".data-api",xC=`activate${Yh}`,uv=`click${Yh}`,TC=`load${Yh}${kC}`,$C="dropdown-item",Ri="active",DC='[data-bs-spy="scroll"]',Qd="[href]",NC=".nav, .list-group",hv=".nav-link",CC=".nav-item",OC=".list-group-item",AC=`${hv}, ${CC} > ${hv}, ${OC}`,IC=".dropdown",PC=".dropdown-toggle",MC={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},RC={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class zl extends Tr{constructor(t,r){super(t,r),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return MC}static get DefaultType(){return RC}static get NAME(){return EC}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=Tn(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(r=>Number.parseFloat(r))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(V.off(this._config.target,uv),V.on(this._config.target,uv,Qd,t=>{const r=this._observableSections.get(t.target.hash);if(r){t.preventDefault();const a=this._rootElement||window,n=r.offsetTop-this._element.offsetTop;if(a.scrollTo){a.scrollTo({top:n,behavior:"smooth"});return}a.scrollTop=n}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(r=>this._observerCallback(r),t)}_observerCallback(t){const r=o=>this._targetLinks.get(`#${o.target.id}`),a=o=>{this._previousScrollData.visibleEntryTop=o.target.offsetTop,this._process(r(o))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(r(o));continue}const l=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&l){if(a(o),!n)return;continue}!s&&!l&&a(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=ee.find(Qd,this._config.target);for(const r of t){if(!r.hash||$n(r))continue;const a=ee.findOne(decodeURI(r.hash),this._element);Sa(a)&&(this._targetLinks.set(decodeURI(r.hash),r),this._observableSections.set(r.hash,a))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Ri),this._activateParents(t),V.trigger(this._element,xC,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains($C)){ee.findOne(PC,t.closest(IC)).classList.add(Ri);return}for(const r of ee.parents(t,NC))for(const a of ee.prev(r,AC))a.classList.add(Ri)}_clearActiveClass(t){t.classList.remove(Ri);const r=ee.find(`${Qd}.${Ri}`,t);for(const a of r)a.classList.remove(Ri)}static jQueryInterface(t){return this.each(function(){const r=zl.getOrCreateInstance(this,t);if(typeof t=="string"){if(r[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);r[t]()}})}}V.on(window,TC,()=>{for(const e of ee.find(DC))zl.getOrCreateInstance(e)});hr(zl);const LC="tab",VC="bs.tab",gi=`.${VC}`,FC=`hide${gi}`,YC=`hidden${gi}`,jC=`show${gi}`,BC=`shown${gi}`,HC=`click${gi}`,WC=`keydown${gi}`,GC=`load${gi}`,zC="ArrowLeft",fv="ArrowRight",UC="ArrowUp",pv="ArrowDown",Zd="Home",vv="End",Qn="active",mv="fade",Jd="show",KC="dropdown",eb=".dropdown-toggle",qC=".dropdown-menu",ec=`:not(${eb})`,XC='.list-group, .nav, [role="tablist"]',QC=".nav-item, .list-group-item",ZC=`.nav-link${ec}, .list-group-item${ec}, [role="tab"]${ec}`,tb='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',tc=`${ZC}, ${tb}`,JC=`.${Qn}[data-bs-toggle="tab"], .${Qn}[data-bs-toggle="pill"], .${Qn}[data-bs-toggle="list"]`;class ha extends Tr{constructor(t){super(t),this._parent=this._element.closest(XC),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),V.on(this._element,WC,r=>this._keydown(r)))}static get NAME(){return LC}show(){const t=this._element;if(this._elemIsActive(t))return;const r=this._getActiveElem(),a=r?V.trigger(r,FC,{relatedTarget:t}):null;V.trigger(t,jC,{relatedTarget:r}).defaultPrevented||a&&a.defaultPrevented||(this._deactivate(r,t),this._activate(t,r))}_activate(t,r){if(!t)return;t.classList.add(Qn),this._activate(ee.getElementFromSelector(t));const a=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(Jd);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),V.trigger(t,BC,{relatedTarget:r})};this._queueCallback(a,t,t.classList.contains(mv))}_deactivate(t,r){if(!t)return;t.classList.remove(Qn),t.blur(),this._deactivate(ee.getElementFromSelector(t));const a=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(Jd);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),V.trigger(t,YC,{relatedTarget:r})};this._queueCallback(a,t,t.classList.contains(mv))}_keydown(t){if(![zC,fv,UC,pv,Zd,vv].includes(t.key))return;t.stopPropagation(),t.preventDefault();const r=this._getChildren().filter(n=>!$n(n));let a;if([Zd,vv].includes(t.key))a=r[t.key===Zd?0:r.length-1];else{const n=[fv,pv].includes(t.key);a=Rh(r,t.target,n,!0)}a&&(a.focus({preventScroll:!0}),ha.getOrCreateInstance(a).show())}_getChildren(){return ee.find(tc,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,r){this._setAttributeIfNotExists(t,"role","tablist");for(const a of r)this._setInitialAttributesOnChild(a)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const r=this._elemIsActive(t),a=this._getOuterElement(t);t.setAttribute("aria-selected",r),a!==t&&this._setAttributeIfNotExists(a,"role","presentation"),r||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const r=ee.getElementFromSelector(t);r&&(this._setAttributeIfNotExists(r,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(r,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,r){const a=this._getOuterElement(t);if(!a.classList.contains(KC))return;const n=(s,o)=>{const l=ee.findOne(s,a);l&&l.classList.toggle(o,r)};n(eb,Qn),n(qC,Jd),a.setAttribute("aria-expanded",r)}_setAttributeIfNotExists(t,r,a){t.hasAttribute(r)||t.setAttribute(r,a)}_elemIsActive(t){return t.classList.contains(Qn)}_getInnerElement(t){return t.matches(tc)?t:ee.findOne(tc,t)}_getOuterElement(t){return t.closest(QC)||t}static jQueryInterface(t){return this.each(function(){const r=ha.getOrCreateInstance(this);if(typeof t=="string"){if(r[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);r[t]()}})}}V.on(document,HC,tb,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),!$n(this)&&ha.getOrCreateInstance(this).show()});V.on(window,GC,()=>{for(const e of ee.find(JC))ha.getOrCreateInstance(e)});hr(ha);const eO="toast",tO="bs.toast",In=`.${tO}`,rO=`mouseover${In}`,nO=`mouseout${In}`,iO=`focusin${In}`,aO=`focusout${In}`,sO=`hide${In}`,oO=`hidden${In}`,lO=`show${In}`,dO=`shown${In}`,cO="fade",gv="hide",Co="show",Oo="showing",uO={animation:"boolean",autohide:"boolean",delay:"number"},hO={animation:!0,autohide:!0,delay:5e3};class Ul extends Tr{constructor(t,r){super(t,r),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return hO}static get DefaultType(){return uO}static get NAME(){return eO}show(){if(V.trigger(this._element,lO).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(cO);const r=()=>{this._element.classList.remove(Oo),V.trigger(this._element,dO),this._maybeScheduleHide()};this._element.classList.remove(gv),Ds(this._element),this._element.classList.add(Co,Oo),this._queueCallback(r,this._element,this._config.animation)}hide(){if(!this.isShown()||V.trigger(this._element,sO).defaultPrevented)return;const r=()=>{this._element.classList.add(gv),this._element.classList.remove(Oo,Co),V.trigger(this._element,oO)};this._element.classList.add(Oo),this._queueCallback(r,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Co),super.dispose()}isShown(){return this._element.classList.contains(Co)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,r){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=r;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=r;break}}if(r){this._clearTimeout();return}const a=t.relatedTarget;this._element===a||this._element.contains(a)||this._maybeScheduleHide()}_setListeners(){V.on(this._element,rO,t=>this._onInteraction(t,!0)),V.on(this._element,nO,t=>this._onInteraction(t,!1)),V.on(this._element,iO,t=>this._onInteraction(t,!0)),V.on(this._element,aO,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const r=Ul.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t](this)}})}}Hl(Ul);hr(Ul);/**
6
+ * vis-timeline and vis-graph2d
7
+ * https://visjs.github.io/vis-timeline/
8
+ *
9
+ * Create a fully customizable, interactive timeline with items and ranges.
10
+ *
11
+ * @version 7.7.3
12
+ * @date 2023-10-27T17:57:57.604Z
13
+ *
14
+ * @copyright (c) 2011-2017 Almende B.V, http://almende.com
15
+ * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
16
+ *
17
+ * @license
18
+ * vis.js is dual licensed under both
19
+ *
20
+ * 1. The Apache 2.0 License
21
+ * http://www.apache.org/licenses/LICENSE-2.0
22
+ *
23
+ * and
24
+ *
25
+ * 2. The MIT License
26
+ * http://opensource.org/licenses/MIT
27
+ *
28
+ * vis.js may be distributed under either license.
29
+ */var Jt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function K(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yr(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var rc={exports:{}},yv;function $r(){return yv||(yv=1,function(e,t){(function(r,a){e.exports=a()})(Jt,function(){var r;function a(){return r.apply(null,arguments)}function n(u){r=u}function s(u){return u instanceof Array||Object.prototype.toString.call(u)==="[object Array]"}function o(u){return u!=null&&Object.prototype.toString.call(u)==="[object Object]"}function l(u,p){return Object.prototype.hasOwnProperty.call(u,p)}function d(u){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(u).length===0;var p;for(p in u)if(l(u,p))return!1;return!0}function c(u){return u===void 0}function f(u){return typeof u=="number"||Object.prototype.toString.call(u)==="[object Number]"}function v(u){return u instanceof Date||Object.prototype.toString.call(u)==="[object Date]"}function m(u,p){var y=[],_,E=u.length;for(_=0;_<E;++_)y.push(p(u[_],_));return y}function g(u,p){for(var y in p)l(p,y)&&(u[y]=p[y]);return l(p,"toString")&&(u.toString=p.toString),l(p,"valueOf")&&(u.valueOf=p.valueOf),u}function b(u,p,y,_){return pp(u,p,y,_,!0).utc()}function S(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function w(u){return u._pf==null&&(u._pf=S()),u._pf}var k;Array.prototype.some?k=Array.prototype.some:k=function(u){var p=Object(this),y=p.length>>>0,_;for(_=0;_<y;_++)if(_ in p&&u.call(this,p[_],_,p))return!0;return!1};function T(u){if(u._isValid==null){var p=w(u),y=k.call(p.parsedDateParts,function(E){return E!=null}),_=!isNaN(u._d.getTime())&&p.overflow<0&&!p.empty&&!p.invalidEra&&!p.invalidMonth&&!p.invalidWeekday&&!p.weekdayMismatch&&!p.nullInput&&!p.invalidFormat&&!p.userInvalidated&&(!p.meridiem||p.meridiem&&y);if(u._strict&&(_=_&&p.charsLeftOver===0&&p.unusedTokens.length===0&&p.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(u))u._isValid=_;else return _}return u._isValid}function D(u){var p=b(NaN);return u!=null?g(w(p),u):w(p).userInvalidated=!0,p}var N=a.momentProperties=[],L=!1;function A(u,p){var y,_,E,$=N.length;if(c(p._isAMomentObject)||(u._isAMomentObject=p._isAMomentObject),c(p._i)||(u._i=p._i),c(p._f)||(u._f=p._f),c(p._l)||(u._l=p._l),c(p._strict)||(u._strict=p._strict),c(p._tzm)||(u._tzm=p._tzm),c(p._isUTC)||(u._isUTC=p._isUTC),c(p._offset)||(u._offset=p._offset),c(p._pf)||(u._pf=w(p)),c(p._locale)||(u._locale=p._locale),$>0)for(y=0;y<$;y++)_=N[y],E=p[_],c(E)||(u[_]=E);return u}function R(u){A(this,u),this._d=new Date(u._d!=null?u._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),L===!1&&(L=!0,a.updateOffset(this),L=!1)}function C(u){return u instanceof R||u!=null&&u._isAMomentObject!=null}function j(u){a.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+u)}function O(u,p){var y=!0;return g(function(){if(a.deprecationHandler!=null&&a.deprecationHandler(null,u),y){var _=[],E,$,I,J=arguments.length;for($=0;$<J;$++){if(E="",typeof arguments[$]=="object"){E+=`
30
+ [`+$+"] ";for(I in arguments[0])l(arguments[0],I)&&(E+=I+": "+arguments[0][I]+", ");E=E.slice(0,-2)}else E=arguments[$];_.push(E)}j(u+`
31
+ Arguments: `+Array.prototype.slice.call(_).join("")+`
32
+ `+new Error().stack),y=!1}return p.apply(this,arguments)},p)}var M={};function H(u,p){a.deprecationHandler!=null&&a.deprecationHandler(u,p),M[u]||(j(p),M[u]=!0)}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null;function z(u){return typeof Function<"u"&&u instanceof Function||Object.prototype.toString.call(u)==="[object Function]"}function se(u){var p,y;for(y in u)l(u,y)&&(p=u[y],z(p)?this[y]=p:this["_"+y]=p);this._config=u,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function _e(u,p){var y=g({},u),_;for(_ in p)l(p,_)&&(o(u[_])&&o(p[_])?(y[_]={},g(y[_],u[_]),g(y[_],p[_])):p[_]!=null?y[_]=p[_]:delete y[_]);for(_ in u)l(u,_)&&!l(p,_)&&o(u[_])&&(y[_]=g({},y[_]));return y}function be(u){u!=null&&this.set(u)}var he;Object.keys?he=Object.keys:he=function(u){var p,y=[];for(p in u)l(u,p)&&y.push(p);return y};var rt={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ut(u,p,y){var _=this._calendar[u]||this._calendar.sameElse;return z(_)?_.call(p,y):_}function Ie(u,p,y){var _=""+Math.abs(u),E=p-_.length,$=u>=0;return($?y?"+":"":"-")+Math.pow(10,Math.max(0,E)).toString().substr(1)+_}var Mt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ht=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Cr={},vt={};function q(u,p,y,_){var E=_;typeof _=="string"&&(E=function(){return this[_]()}),u&&(vt[u]=E),p&&(vt[p[0]]=function(){return Ie(E.apply(this,arguments),p[1],p[2])}),y&&(vt[y]=function(){return this.localeData().ordinal(E.apply(this,arguments),u)})}function vr(u){return u.match(/\[[\s\S]/)?u.replace(/^\[|\]$/g,""):u.replace(/\\/g,"")}function Or(u){var p=u.match(Mt),y,_;for(y=0,_=p.length;y<_;y++)vt[p[y]]?p[y]=vt[p[y]]:p[y]=vr(p[y]);return function(E){var $="",I;for(I=0;I<_;I++)$+=z(p[I])?p[I].call(E,u):p[I];return $}}function mt(u,p){return u.isValid()?(p=W(p,u.localeData()),Cr[p]=Cr[p]||Or(p),Cr[p](u)):u.localeData().invalidDate()}function W(u,p){var y=5;function _(E){return p.longDateFormat(E)||E}for(ht.lastIndex=0;y>=0&&ht.test(u);)u=u.replace(ht,_),ht.lastIndex=0,y-=1;return u}var F={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function B(u){var p=this._longDateFormat[u],y=this._longDateFormat[u.toUpperCase()];return p||!y?p:(this._longDateFormat[u]=y.match(Mt).map(function(_){return _==="MMMM"||_==="MM"||_==="DD"||_==="dddd"?_.slice(1):_}).join(""),this._longDateFormat[u])}var Q="Invalid date";function ie(){return this._invalidDate}var re="%d",Re=/\d{1,2}/;function Je(u){return this._ordinal.replace("%d",u)}var nt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function mr(u,p,y,_){var E=this._relativeTime[y];return z(E)?E(u,p,y,_):E.replace(/%d/i,u)}function ar(u,p){var y=this._relativeTime[u>0?"future":"past"];return z(y)?y(p):y.replace(/%s/i,p)}var Ke={};function qe(u,p){var y=u.toLowerCase();Ke[y]=Ke[y+"s"]=Ke[p]=u}function wt(u){return typeof u=="string"?Ke[u]||Ke[u.toLowerCase()]:void 0}function Ti(u){var p={},y,_;for(_ in u)l(u,_)&&(y=wt(_),y&&(p[y]=u[_]));return p}var $i={};function it(u,p){$i[u]=p}function io(u){var p=[],y;for(y in u)l(u,y)&&p.push({unit:y,priority:$i[y]});return p.sort(function(_,E){return _.priority-E.priority}),p}function jn(u){return u%4===0&&u%100!==0||u%400===0}function Et(u){return u<0?Math.ceil(u)||0:Math.floor(u)}function ue(u){var p=+u,y=0;return p!==0&&isFinite(p)&&(y=Et(p)),y}function Di(u,p){return function(y){return y!=null?(Kf(this,u,y),a.updateOffset(this,p),this):ao(this,u)}}function ao(u,p){return u.isValid()?u._d["get"+(u._isUTC?"UTC":"")+p]():NaN}function Kf(u,p,y){u.isValid()&&!isNaN(y)&&(p==="FullYear"&&jn(u.year())&&u.month()===1&&u.date()===29?(y=ue(y),u._d["set"+(u._isUTC?"UTC":"")+p](y,u.month(),fo(y,u.month()))):u._d["set"+(u._isUTC?"UTC":"")+p](y))}function O1(u){return u=wt(u),z(this[u])?this[u]():this}function A1(u,p){if(typeof u=="object"){u=Ti(u);var y=io(u),_,E=y.length;for(_=0;_<E;_++)this[y[_].unit](u[y[_].unit])}else if(u=wt(u),z(this[u]))return this[u](p);return this}var qf=/\d/,zt=/\d\d/,Xf=/\d{3}/,wd=/\d{4}/,so=/[+-]?\d{6}/,Le=/\d\d?/,Qf=/\d\d\d\d?/,Zf=/\d\d\d\d\d\d?/,oo=/\d{1,3}/,Ed=/\d{1,4}/,lo=/[+-]?\d{1,6}/,Ni=/\d+/,co=/[+-]?\d+/,I1=/Z|[+-]\d\d:?\d\d/gi,uo=/Z|[+-]\d\d(?::?\d\d)?/gi,P1=/[+-]?\d+(\.\d{1,3})?/,Ba=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ho;ho={};function U(u,p,y){ho[u]=z(p)?p:function(_,E){return _&&y?y:p}}function M1(u,p){return l(ho,u)?ho[u](p._strict,p._locale):new RegExp(R1(u))}function R1(u){return Ut(u.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(p,y,_,E,$){return y||_||E||$}))}function Ut(u){return u.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Sd={};function Te(u,p){var y,_=p,E;for(typeof u=="string"&&(u=[u]),f(p)&&(_=function($,I){I[p]=ue($)}),E=u.length,y=0;y<E;y++)Sd[u[y]]=_}function Ha(u,p){Te(u,function(y,_,E,$){E._w=E._w||{},p(y,E._w,E,$)})}function L1(u,p,y){p!=null&&l(Sd,u)&&Sd[u](p,y._a,y,u)}var gt=0,Br=1,Ar=2,at=3,gr=4,Hr=5,Bn=6,V1=7,F1=8;function Y1(u,p){return(u%p+p)%p}var Xe;Array.prototype.indexOf?Xe=Array.prototype.indexOf:Xe=function(u){var p;for(p=0;p<this.length;++p)if(this[p]===u)return p;return-1};function fo(u,p){if(isNaN(u)||isNaN(p))return NaN;var y=Y1(p,12);return u+=(p-y)/12,y===1?jn(u)?29:28:31-y%7%2}q("M",["MM",2],"Mo",function(){return this.month()+1}),q("MMM",0,0,function(u){return this.localeData().monthsShort(this,u)}),q("MMMM",0,0,function(u){return this.localeData().months(this,u)}),qe("month","M"),it("month",8),U("M",Le),U("MM",Le,zt),U("MMM",function(u,p){return p.monthsShortRegex(u)}),U("MMMM",function(u,p){return p.monthsRegex(u)}),Te(["M","MM"],function(u,p){p[Br]=ue(u)-1}),Te(["MMM","MMMM"],function(u,p,y,_){var E=y._locale.monthsParse(u,_,y._strict);E!=null?p[Br]=E:w(y).invalidMonth=u});var j1="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Jf="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ep=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,B1=Ba,H1=Ba;function W1(u,p){return u?s(this._months)?this._months[u.month()]:this._months[(this._months.isFormat||ep).test(p)?"format":"standalone"][u.month()]:s(this._months)?this._months:this._months.standalone}function G1(u,p){return u?s(this._monthsShort)?this._monthsShort[u.month()]:this._monthsShort[ep.test(p)?"format":"standalone"][u.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function z1(u,p,y){var _,E,$,I=u.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],_=0;_<12;++_)$=b([2e3,_]),this._shortMonthsParse[_]=this.monthsShort($,"").toLocaleLowerCase(),this._longMonthsParse[_]=this.months($,"").toLocaleLowerCase();return y?p==="MMM"?(E=Xe.call(this._shortMonthsParse,I),E!==-1?E:null):(E=Xe.call(this._longMonthsParse,I),E!==-1?E:null):p==="MMM"?(E=Xe.call(this._shortMonthsParse,I),E!==-1?E:(E=Xe.call(this._longMonthsParse,I),E!==-1?E:null)):(E=Xe.call(this._longMonthsParse,I),E!==-1?E:(E=Xe.call(this._shortMonthsParse,I),E!==-1?E:null))}function U1(u,p,y){var _,E,$;if(this._monthsParseExact)return z1.call(this,u,p,y);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),_=0;_<12;_++){if(E=b([2e3,_]),y&&!this._longMonthsParse[_]&&(this._longMonthsParse[_]=new RegExp("^"+this.months(E,"").replace(".","")+"$","i"),this._shortMonthsParse[_]=new RegExp("^"+this.monthsShort(E,"").replace(".","")+"$","i")),!y&&!this._monthsParse[_]&&($="^"+this.months(E,"")+"|^"+this.monthsShort(E,""),this._monthsParse[_]=new RegExp($.replace(".",""),"i")),y&&p==="MMMM"&&this._longMonthsParse[_].test(u))return _;if(y&&p==="MMM"&&this._shortMonthsParse[_].test(u))return _;if(!y&&this._monthsParse[_].test(u))return _}}function tp(u,p){var y;if(!u.isValid())return u;if(typeof p=="string"){if(/^\d+$/.test(p))p=ue(p);else if(p=u.localeData().monthsParse(p),!f(p))return u}return y=Math.min(u.date(),fo(u.year(),p)),u._d["set"+(u._isUTC?"UTC":"")+"Month"](p,y),u}function rp(u){return u!=null?(tp(this,u),a.updateOffset(this,!0),this):ao(this,"Month")}function K1(){return fo(this.year(),this.month())}function q1(u){return this._monthsParseExact?(l(this,"_monthsRegex")||np.call(this),u?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=B1),this._monthsShortStrictRegex&&u?this._monthsShortStrictRegex:this._monthsShortRegex)}function X1(u){return this._monthsParseExact?(l(this,"_monthsRegex")||np.call(this),u?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=H1),this._monthsStrictRegex&&u?this._monthsStrictRegex:this._monthsRegex)}function np(){function u(I,J){return J.length-I.length}var p=[],y=[],_=[],E,$;for(E=0;E<12;E++)$=b([2e3,E]),p.push(this.monthsShort($,"")),y.push(this.months($,"")),_.push(this.months($,"")),_.push(this.monthsShort($,""));for(p.sort(u),y.sort(u),_.sort(u),E=0;E<12;E++)p[E]=Ut(p[E]),y[E]=Ut(y[E]);for(E=0;E<24;E++)_[E]=Ut(_[E]);this._monthsRegex=new RegExp("^("+_.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+y.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+p.join("|")+")","i")}q("Y",0,0,function(){var u=this.year();return u<=9999?Ie(u,4):"+"+u}),q(0,["YY",2],0,function(){return this.year()%100}),q(0,["YYYY",4],0,"year"),q(0,["YYYYY",5],0,"year"),q(0,["YYYYYY",6,!0],0,"year"),qe("year","y"),it("year",1),U("Y",co),U("YY",Le,zt),U("YYYY",Ed,wd),U("YYYYY",lo,so),U("YYYYYY",lo,so),Te(["YYYYY","YYYYYY"],gt),Te("YYYY",function(u,p){p[gt]=u.length===2?a.parseTwoDigitYear(u):ue(u)}),Te("YY",function(u,p){p[gt]=a.parseTwoDigitYear(u)}),Te("Y",function(u,p){p[gt]=parseInt(u,10)});function Wa(u){return jn(u)?366:365}a.parseTwoDigitYear=function(u){return ue(u)+(ue(u)>68?1900:2e3)};var ip=Di("FullYear",!0);function Q1(){return jn(this.year())}function Z1(u,p,y,_,E,$,I){var J;return u<100&&u>=0?(J=new Date(u+400,p,y,_,E,$,I),isFinite(J.getFullYear())&&J.setFullYear(u)):J=new Date(u,p,y,_,E,$,I),J}function Ga(u){var p,y;return u<100&&u>=0?(y=Array.prototype.slice.call(arguments),y[0]=u+400,p=new Date(Date.UTC.apply(null,y)),isFinite(p.getUTCFullYear())&&p.setUTCFullYear(u)):p=new Date(Date.UTC.apply(null,arguments)),p}function po(u,p,y){var _=7+p-y,E=(7+Ga(u,0,_).getUTCDay()-p)%7;return-E+_-1}function ap(u,p,y,_,E){var $=(7+y-_)%7,I=po(u,_,E),J=1+7*(p-1)+$+I,ce,$e;return J<=0?(ce=u-1,$e=Wa(ce)+J):J>Wa(u)?(ce=u+1,$e=J-Wa(u)):(ce=u,$e=J),{year:ce,dayOfYear:$e}}function za(u,p,y){var _=po(u.year(),p,y),E=Math.floor((u.dayOfYear()-_-1)/7)+1,$,I;return E<1?(I=u.year()-1,$=E+Wr(I,p,y)):E>Wr(u.year(),p,y)?($=E-Wr(u.year(),p,y),I=u.year()+1):(I=u.year(),$=E),{week:$,year:I}}function Wr(u,p,y){var _=po(u,p,y),E=po(u+1,p,y);return(Wa(u)-_+E)/7}q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),qe("week","w"),qe("isoWeek","W"),it("week",5),it("isoWeek",5),U("w",Le),U("ww",Le,zt),U("W",Le),U("WW",Le,zt),Ha(["w","ww","W","WW"],function(u,p,y,_){p[_.substr(0,1)]=ue(u)});function J1(u){return za(u,this._week.dow,this._week.doy).week}var eS={dow:0,doy:6};function tS(){return this._week.dow}function rS(){return this._week.doy}function nS(u){var p=this.localeData().week(this);return u==null?p:this.add((u-p)*7,"d")}function iS(u){var p=za(this,1,4).week;return u==null?p:this.add((u-p)*7,"d")}q("d",0,"do","day"),q("dd",0,0,function(u){return this.localeData().weekdaysMin(this,u)}),q("ddd",0,0,function(u){return this.localeData().weekdaysShort(this,u)}),q("dddd",0,0,function(u){return this.localeData().weekdays(this,u)}),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),qe("day","d"),qe("weekday","e"),qe("isoWeekday","E"),it("day",11),it("weekday",11),it("isoWeekday",11),U("d",Le),U("e",Le),U("E",Le),U("dd",function(u,p){return p.weekdaysMinRegex(u)}),U("ddd",function(u,p){return p.weekdaysShortRegex(u)}),U("dddd",function(u,p){return p.weekdaysRegex(u)}),Ha(["dd","ddd","dddd"],function(u,p,y,_){var E=y._locale.weekdaysParse(u,_,y._strict);E!=null?p.d=E:w(y).invalidWeekday=u}),Ha(["d","e","E"],function(u,p,y,_){p[_]=ue(u)});function aS(u,p){return typeof u!="string"?u:isNaN(u)?(u=p.weekdaysParse(u),typeof u=="number"?u:null):parseInt(u,10)}function sS(u,p){return typeof u=="string"?p.weekdaysParse(u)%7||7:isNaN(u)?null:u}function kd(u,p){return u.slice(p,7).concat(u.slice(0,p))}var oS="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),sp="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),lS="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),dS=Ba,cS=Ba,uS=Ba;function hS(u,p){var y=s(this._weekdays)?this._weekdays:this._weekdays[u&&u!==!0&&this._weekdays.isFormat.test(p)?"format":"standalone"];return u===!0?kd(y,this._week.dow):u?y[u.day()]:y}function fS(u){return u===!0?kd(this._weekdaysShort,this._week.dow):u?this._weekdaysShort[u.day()]:this._weekdaysShort}function pS(u){return u===!0?kd(this._weekdaysMin,this._week.dow):u?this._weekdaysMin[u.day()]:this._weekdaysMin}function vS(u,p,y){var _,E,$,I=u.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],_=0;_<7;++_)$=b([2e3,1]).day(_),this._minWeekdaysParse[_]=this.weekdaysMin($,"").toLocaleLowerCase(),this._shortWeekdaysParse[_]=this.weekdaysShort($,"").toLocaleLowerCase(),this._weekdaysParse[_]=this.weekdays($,"").toLocaleLowerCase();return y?p==="dddd"?(E=Xe.call(this._weekdaysParse,I),E!==-1?E:null):p==="ddd"?(E=Xe.call(this._shortWeekdaysParse,I),E!==-1?E:null):(E=Xe.call(this._minWeekdaysParse,I),E!==-1?E:null):p==="dddd"?(E=Xe.call(this._weekdaysParse,I),E!==-1||(E=Xe.call(this._shortWeekdaysParse,I),E!==-1)?E:(E=Xe.call(this._minWeekdaysParse,I),E!==-1?E:null)):p==="ddd"?(E=Xe.call(this._shortWeekdaysParse,I),E!==-1||(E=Xe.call(this._weekdaysParse,I),E!==-1)?E:(E=Xe.call(this._minWeekdaysParse,I),E!==-1?E:null)):(E=Xe.call(this._minWeekdaysParse,I),E!==-1||(E=Xe.call(this._weekdaysParse,I),E!==-1)?E:(E=Xe.call(this._shortWeekdaysParse,I),E!==-1?E:null))}function mS(u,p,y){var _,E,$;if(this._weekdaysParseExact)return vS.call(this,u,p,y);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),_=0;_<7;_++){if(E=b([2e3,1]).day(_),y&&!this._fullWeekdaysParse[_]&&(this._fullWeekdaysParse[_]=new RegExp("^"+this.weekdays(E,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[_]=new RegExp("^"+this.weekdaysShort(E,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[_]=new RegExp("^"+this.weekdaysMin(E,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[_]||($="^"+this.weekdays(E,"")+"|^"+this.weekdaysShort(E,"")+"|^"+this.weekdaysMin(E,""),this._weekdaysParse[_]=new RegExp($.replace(".",""),"i")),y&&p==="dddd"&&this._fullWeekdaysParse[_].test(u))return _;if(y&&p==="ddd"&&this._shortWeekdaysParse[_].test(u))return _;if(y&&p==="dd"&&this._minWeekdaysParse[_].test(u))return _;if(!y&&this._weekdaysParse[_].test(u))return _}}function gS(u){if(!this.isValid())return u!=null?this:NaN;var p=this._isUTC?this._d.getUTCDay():this._d.getDay();return u!=null?(u=aS(u,this.localeData()),this.add(u-p,"d")):p}function yS(u){if(!this.isValid())return u!=null?this:NaN;var p=(this.day()+7-this.localeData()._week.dow)%7;return u==null?p:this.add(u-p,"d")}function _S(u){if(!this.isValid())return u!=null?this:NaN;if(u!=null){var p=sS(u,this.localeData());return this.day(this.day()%7?p:p-7)}else return this.day()||7}function bS(u){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||xd.call(this),u?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=dS),this._weekdaysStrictRegex&&u?this._weekdaysStrictRegex:this._weekdaysRegex)}function wS(u){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||xd.call(this),u?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=cS),this._weekdaysShortStrictRegex&&u?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ES(u){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||xd.call(this),u?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=uS),this._weekdaysMinStrictRegex&&u?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function xd(){function u(St,qr){return qr.length-St.length}var p=[],y=[],_=[],E=[],$,I,J,ce,$e;for($=0;$<7;$++)I=b([2e3,1]).day($),J=Ut(this.weekdaysMin(I,"")),ce=Ut(this.weekdaysShort(I,"")),$e=Ut(this.weekdays(I,"")),p.push(J),y.push(ce),_.push($e),E.push(J),E.push(ce),E.push($e);p.sort(u),y.sort(u),_.sort(u),E.sort(u),this._weekdaysRegex=new RegExp("^("+E.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+y.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+p.join("|")+")","i")}function Td(){return this.hours()%12||12}function SS(){return this.hours()||24}q("H",["HH",2],0,"hour"),q("h",["hh",2],0,Td),q("k",["kk",2],0,SS),q("hmm",0,0,function(){return""+Td.apply(this)+Ie(this.minutes(),2)}),q("hmmss",0,0,function(){return""+Td.apply(this)+Ie(this.minutes(),2)+Ie(this.seconds(),2)}),q("Hmm",0,0,function(){return""+this.hours()+Ie(this.minutes(),2)}),q("Hmmss",0,0,function(){return""+this.hours()+Ie(this.minutes(),2)+Ie(this.seconds(),2)});function op(u,p){q(u,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),p)})}op("a",!0),op("A",!1),qe("hour","h"),it("hour",13);function lp(u,p){return p._meridiemParse}U("a",lp),U("A",lp),U("H",Le),U("h",Le),U("k",Le),U("HH",Le,zt),U("hh",Le,zt),U("kk",Le,zt),U("hmm",Qf),U("hmmss",Zf),U("Hmm",Qf),U("Hmmss",Zf),Te(["H","HH"],at),Te(["k","kk"],function(u,p,y){var _=ue(u);p[at]=_===24?0:_}),Te(["a","A"],function(u,p,y){y._isPm=y._locale.isPM(u),y._meridiem=u}),Te(["h","hh"],function(u,p,y){p[at]=ue(u),w(y).bigHour=!0}),Te("hmm",function(u,p,y){var _=u.length-2;p[at]=ue(u.substr(0,_)),p[gr]=ue(u.substr(_)),w(y).bigHour=!0}),Te("hmmss",function(u,p,y){var _=u.length-4,E=u.length-2;p[at]=ue(u.substr(0,_)),p[gr]=ue(u.substr(_,2)),p[Hr]=ue(u.substr(E)),w(y).bigHour=!0}),Te("Hmm",function(u,p,y){var _=u.length-2;p[at]=ue(u.substr(0,_)),p[gr]=ue(u.substr(_))}),Te("Hmmss",function(u,p,y){var _=u.length-4,E=u.length-2;p[at]=ue(u.substr(0,_)),p[gr]=ue(u.substr(_,2)),p[Hr]=ue(u.substr(E))});function kS(u){return(u+"").toLowerCase().charAt(0)==="p"}var xS=/[ap]\.?m?\.?/i,TS=Di("Hours",!0);function $S(u,p,y){return u>11?y?"pm":"PM":y?"am":"AM"}var dp={calendar:rt,longDateFormat:F,invalidDate:Q,ordinal:re,dayOfMonthOrdinalParse:Re,relativeTime:nt,months:j1,monthsShort:Jf,week:eS,weekdays:oS,weekdaysMin:lS,weekdaysShort:sp,meridiemParse:xS},Be={},Ua={},Ka;function DS(u,p){var y,_=Math.min(u.length,p.length);for(y=0;y<_;y+=1)if(u[y]!==p[y])return y;return _}function cp(u){return u&&u.toLowerCase().replace("_","-")}function NS(u){for(var p=0,y,_,E,$;p<u.length;){for($=cp(u[p]).split("-"),y=$.length,_=cp(u[p+1]),_=_?_.split("-"):null;y>0;){if(E=vo($.slice(0,y).join("-")),E)return E;if(_&&_.length>=y&&DS($,_)>=y-1)break;y--}p++}return Ka}function CS(u){return u.match("^[^/\\\\]*$")!=null}function vo(u){var p=null,y;if(Be[u]===void 0&&e&&e.exports&&CS(u))try{p=Ka._abbr,y=Yr,y("./locale/"+u),vn(p)}catch{Be[u]=null}return Be[u]}function vn(u,p){var y;return u&&(c(p)?y=Gr(u):y=$d(u,p),y?Ka=y:typeof console<"u"&&console.warn&&console.warn("Locale "+u+" not found. Did you forget to load it?")),Ka._abbr}function $d(u,p){if(p!==null){var y,_=dp;if(p.abbr=u,Be[u]!=null)H("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),_=Be[u]._config;else if(p.parentLocale!=null)if(Be[p.parentLocale]!=null)_=Be[p.parentLocale]._config;else if(y=vo(p.parentLocale),y!=null)_=y._config;else return Ua[p.parentLocale]||(Ua[p.parentLocale]=[]),Ua[p.parentLocale].push({name:u,config:p}),null;return Be[u]=new be(_e(_,p)),Ua[u]&&Ua[u].forEach(function(E){$d(E.name,E.config)}),vn(u),Be[u]}else return delete Be[u],null}function OS(u,p){if(p!=null){var y,_,E=dp;Be[u]!=null&&Be[u].parentLocale!=null?Be[u].set(_e(Be[u]._config,p)):(_=vo(u),_!=null&&(E=_._config),p=_e(E,p),_==null&&(p.abbr=u),y=new be(p),y.parentLocale=Be[u],Be[u]=y),vn(u)}else Be[u]!=null&&(Be[u].parentLocale!=null?(Be[u]=Be[u].parentLocale,u===vn()&&vn(u)):Be[u]!=null&&delete Be[u]);return Be[u]}function Gr(u){var p;if(u&&u._locale&&u._locale._abbr&&(u=u._locale._abbr),!u)return Ka;if(!s(u)){if(p=vo(u),p)return p;u=[u]}return NS(u)}function AS(){return he(Be)}function Dd(u){var p,y=u._a;return y&&w(u).overflow===-2&&(p=y[Br]<0||y[Br]>11?Br:y[Ar]<1||y[Ar]>fo(y[gt],y[Br])?Ar:y[at]<0||y[at]>24||y[at]===24&&(y[gr]!==0||y[Hr]!==0||y[Bn]!==0)?at:y[gr]<0||y[gr]>59?gr:y[Hr]<0||y[Hr]>59?Hr:y[Bn]<0||y[Bn]>999?Bn:-1,w(u)._overflowDayOfYear&&(p<gt||p>Ar)&&(p=Ar),w(u)._overflowWeeks&&p===-1&&(p=V1),w(u)._overflowWeekday&&p===-1&&(p=F1),w(u).overflow=p),u}var IS=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,PS=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,MS=/Z|[+-]\d\d(?::?\d\d)?/,mo=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Nd=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],RS=/^\/?Date\((-?\d+)/i,LS=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,VS={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function up(u){var p,y,_=u._i,E=IS.exec(_)||PS.exec(_),$,I,J,ce,$e=mo.length,St=Nd.length;if(E){for(w(u).iso=!0,p=0,y=$e;p<y;p++)if(mo[p][1].exec(E[1])){I=mo[p][0],$=mo[p][2]!==!1;break}if(I==null){u._isValid=!1;return}if(E[3]){for(p=0,y=St;p<y;p++)if(Nd[p][1].exec(E[3])){J=(E[2]||" ")+Nd[p][0];break}if(J==null){u._isValid=!1;return}}if(!$&&J!=null){u._isValid=!1;return}if(E[4])if(MS.exec(E[4]))ce="Z";else{u._isValid=!1;return}u._f=I+(J||"")+(ce||""),Od(u)}else u._isValid=!1}function FS(u,p,y,_,E,$){var I=[YS(u),Jf.indexOf(p),parseInt(y,10),parseInt(_,10),parseInt(E,10)];return $&&I.push(parseInt($,10)),I}function YS(u){var p=parseInt(u,10);return p<=49?2e3+p:p<=999?1900+p:p}function jS(u){return u.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function BS(u,p,y){if(u){var _=sp.indexOf(u),E=new Date(p[0],p[1],p[2]).getDay();if(_!==E)return w(y).weekdayMismatch=!0,y._isValid=!1,!1}return!0}function HS(u,p,y){if(u)return VS[u];if(p)return 0;var _=parseInt(y,10),E=_%100,$=(_-E)/100;return $*60+E}function hp(u){var p=LS.exec(jS(u._i)),y;if(p){if(y=FS(p[4],p[3],p[2],p[5],p[6],p[7]),!BS(p[1],y,u))return;u._a=y,u._tzm=HS(p[8],p[9],p[10]),u._d=Ga.apply(null,u._a),u._d.setUTCMinutes(u._d.getUTCMinutes()-u._tzm),w(u).rfc2822=!0}else u._isValid=!1}function WS(u){var p=RS.exec(u._i);if(p!==null){u._d=new Date(+p[1]);return}if(up(u),u._isValid===!1)delete u._isValid;else return;if(hp(u),u._isValid===!1)delete u._isValid;else return;u._strict?u._isValid=!1:a.createFromInputFallback(u)}a.createFromInputFallback=O("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(u){u._d=new Date(u._i+(u._useUTC?" UTC":""))});function Ci(u,p,y){return u??p??y}function GS(u){var p=new Date(a.now());return u._useUTC?[p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()]:[p.getFullYear(),p.getMonth(),p.getDate()]}function Cd(u){var p,y,_=[],E,$,I;if(!u._d){for(E=GS(u),u._w&&u._a[Ar]==null&&u._a[Br]==null&&zS(u),u._dayOfYear!=null&&(I=Ci(u._a[gt],E[gt]),(u._dayOfYear>Wa(I)||u._dayOfYear===0)&&(w(u)._overflowDayOfYear=!0),y=Ga(I,0,u._dayOfYear),u._a[Br]=y.getUTCMonth(),u._a[Ar]=y.getUTCDate()),p=0;p<3&&u._a[p]==null;++p)u._a[p]=_[p]=E[p];for(;p<7;p++)u._a[p]=_[p]=u._a[p]==null?p===2?1:0:u._a[p];u._a[at]===24&&u._a[gr]===0&&u._a[Hr]===0&&u._a[Bn]===0&&(u._nextDay=!0,u._a[at]=0),u._d=(u._useUTC?Ga:Z1).apply(null,_),$=u._useUTC?u._d.getUTCDay():u._d.getDay(),u._tzm!=null&&u._d.setUTCMinutes(u._d.getUTCMinutes()-u._tzm),u._nextDay&&(u._a[at]=24),u._w&&typeof u._w.d<"u"&&u._w.d!==$&&(w(u).weekdayMismatch=!0)}}function zS(u){var p,y,_,E,$,I,J,ce,$e;p=u._w,p.GG!=null||p.W!=null||p.E!=null?($=1,I=4,y=Ci(p.GG,u._a[gt],za(Ve(),1,4).year),_=Ci(p.W,1),E=Ci(p.E,1),(E<1||E>7)&&(ce=!0)):($=u._locale._week.dow,I=u._locale._week.doy,$e=za(Ve(),$,I),y=Ci(p.gg,u._a[gt],$e.year),_=Ci(p.w,$e.week),p.d!=null?(E=p.d,(E<0||E>6)&&(ce=!0)):p.e!=null?(E=p.e+$,(p.e<0||p.e>6)&&(ce=!0)):E=$),_<1||_>Wr(y,$,I)?w(u)._overflowWeeks=!0:ce!=null?w(u)._overflowWeekday=!0:(J=ap(y,_,E,$,I),u._a[gt]=J.year,u._dayOfYear=J.dayOfYear)}a.ISO_8601=function(){},a.RFC_2822=function(){};function Od(u){if(u._f===a.ISO_8601){up(u);return}if(u._f===a.RFC_2822){hp(u);return}u._a=[],w(u).empty=!0;var p=""+u._i,y,_,E,$,I,J=p.length,ce=0,$e,St;for(E=W(u._f,u._locale).match(Mt)||[],St=E.length,y=0;y<St;y++)$=E[y],_=(p.match(M1($,u))||[])[0],_&&(I=p.substr(0,p.indexOf(_)),I.length>0&&w(u).unusedInput.push(I),p=p.slice(p.indexOf(_)+_.length),ce+=_.length),vt[$]?(_?w(u).empty=!1:w(u).unusedTokens.push($),L1($,_,u)):u._strict&&!_&&w(u).unusedTokens.push($);w(u).charsLeftOver=J-ce,p.length>0&&w(u).unusedInput.push(p),u._a[at]<=12&&w(u).bigHour===!0&&u._a[at]>0&&(w(u).bigHour=void 0),w(u).parsedDateParts=u._a.slice(0),w(u).meridiem=u._meridiem,u._a[at]=US(u._locale,u._a[at],u._meridiem),$e=w(u).era,$e!==null&&(u._a[gt]=u._locale.erasConvertYear($e,u._a[gt])),Cd(u),Dd(u)}function US(u,p,y){var _;return y==null?p:u.meridiemHour!=null?u.meridiemHour(p,y):(u.isPM!=null&&(_=u.isPM(y),_&&p<12&&(p+=12),!_&&p===12&&(p=0)),p)}function KS(u){var p,y,_,E,$,I,J=!1,ce=u._f.length;if(ce===0){w(u).invalidFormat=!0,u._d=new Date(NaN);return}for(E=0;E<ce;E++)$=0,I=!1,p=A({},u),u._useUTC!=null&&(p._useUTC=u._useUTC),p._f=u._f[E],Od(p),T(p)&&(I=!0),$+=w(p).charsLeftOver,$+=w(p).unusedTokens.length*10,w(p).score=$,J?$<_&&(_=$,y=p):(_==null||$<_||I)&&(_=$,y=p,I&&(J=!0));g(u,y||p)}function qS(u){if(!u._d){var p=Ti(u._i),y=p.day===void 0?p.date:p.day;u._a=m([p.year,p.month,y,p.hour,p.minute,p.second,p.millisecond],function(_){return _&&parseInt(_,10)}),Cd(u)}}function XS(u){var p=new R(Dd(fp(u)));return p._nextDay&&(p.add(1,"d"),p._nextDay=void 0),p}function fp(u){var p=u._i,y=u._f;return u._locale=u._locale||Gr(u._l),p===null||y===void 0&&p===""?D({nullInput:!0}):(typeof p=="string"&&(u._i=p=u._locale.preparse(p)),C(p)?new R(Dd(p)):(v(p)?u._d=p:s(y)?KS(u):y?Od(u):QS(u),T(u)||(u._d=null),u))}function QS(u){var p=u._i;c(p)?u._d=new Date(a.now()):v(p)?u._d=new Date(p.valueOf()):typeof p=="string"?WS(u):s(p)?(u._a=m(p.slice(0),function(y){return parseInt(y,10)}),Cd(u)):o(p)?qS(u):f(p)?u._d=new Date(p):a.createFromInputFallback(u)}function pp(u,p,y,_,E){var $={};return(p===!0||p===!1)&&(_=p,p=void 0),(y===!0||y===!1)&&(_=y,y=void 0),(o(u)&&d(u)||s(u)&&u.length===0)&&(u=void 0),$._isAMomentObject=!0,$._useUTC=$._isUTC=E,$._l=y,$._i=u,$._f=p,$._strict=_,XS($)}function Ve(u,p,y,_){return pp(u,p,y,_,!1)}var ZS=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var u=Ve.apply(null,arguments);return this.isValid()&&u.isValid()?u<this?this:u:D()}),JS=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var u=Ve.apply(null,arguments);return this.isValid()&&u.isValid()?u>this?this:u:D()});function vp(u,p){var y,_;if(p.length===1&&s(p[0])&&(p=p[0]),!p.length)return Ve();for(y=p[0],_=1;_<p.length;++_)(!p[_].isValid()||p[_][u](y))&&(y=p[_]);return y}function ek(){var u=[].slice.call(arguments,0);return vp("isBefore",u)}function tk(){var u=[].slice.call(arguments,0);return vp("isAfter",u)}var rk=function(){return Date.now?Date.now():+new Date},qa=["year","quarter","month","week","day","hour","minute","second","millisecond"];function nk(u){var p,y=!1,_,E=qa.length;for(p in u)if(l(u,p)&&!(Xe.call(qa,p)!==-1&&(u[p]==null||!isNaN(u[p]))))return!1;for(_=0;_<E;++_)if(u[qa[_]]){if(y)return!1;parseFloat(u[qa[_]])!==ue(u[qa[_]])&&(y=!0)}return!0}function ik(){return this._isValid}function ak(){return yr(NaN)}function go(u){var p=Ti(u),y=p.year||0,_=p.quarter||0,E=p.month||0,$=p.week||p.isoWeek||0,I=p.day||0,J=p.hour||0,ce=p.minute||0,$e=p.second||0,St=p.millisecond||0;this._isValid=nk(p),this._milliseconds=+St+$e*1e3+ce*6e4+J*1e3*60*60,this._days=+I+$*7,this._months=+E+_*3+y*12,this._data={},this._locale=Gr(),this._bubble()}function yo(u){return u instanceof go}function Ad(u){return u<0?Math.round(-1*u)*-1:Math.round(u)}function sk(u,p,y){var _=Math.min(u.length,p.length),E=Math.abs(u.length-p.length),$=0,I;for(I=0;I<_;I++)ue(u[I])!==ue(p[I])&&$++;return $+E}function mp(u,p){q(u,0,0,function(){var y=this.utcOffset(),_="+";return y<0&&(y=-y,_="-"),_+Ie(~~(y/60),2)+p+Ie(~~y%60,2)})}mp("Z",":"),mp("ZZ",""),U("Z",uo),U("ZZ",uo),Te(["Z","ZZ"],function(u,p,y){y._useUTC=!0,y._tzm=Id(uo,u)});var ok=/([\+\-]|\d\d)/gi;function Id(u,p){var y=(p||"").match(u),_,E,$;return y===null?null:(_=y[y.length-1]||[],E=(_+"").match(ok)||["-",0,0],$=+(E[1]*60)+ue(E[2]),$===0?0:E[0]==="+"?$:-$)}function Pd(u,p){var y,_;return p._isUTC?(y=p.clone(),_=(C(u)||v(u)?u.valueOf():Ve(u).valueOf())-y.valueOf(),y._d.setTime(y._d.valueOf()+_),a.updateOffset(y,!1),y):Ve(u).local()}function Md(u){return-Math.round(u._d.getTimezoneOffset())}a.updateOffset=function(){};function lk(u,p,y){var _=this._offset||0,E;if(!this.isValid())return u!=null?this:NaN;if(u!=null){if(typeof u=="string"){if(u=Id(uo,u),u===null)return this}else Math.abs(u)<16&&!y&&(u=u*60);return!this._isUTC&&p&&(E=Md(this)),this._offset=u,this._isUTC=!0,E!=null&&this.add(E,"m"),_!==u&&(!p||this._changeInProgress?bp(this,yr(u-_,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?_:Md(this)}function dk(u,p){return u!=null?(typeof u!="string"&&(u=-u),this.utcOffset(u,p),this):-this.utcOffset()}function ck(u){return this.utcOffset(0,u)}function uk(u){return this._isUTC&&(this.utcOffset(0,u),this._isUTC=!1,u&&this.subtract(Md(this),"m")),this}function hk(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var u=Id(I1,this._i);u!=null?this.utcOffset(u):this.utcOffset(0,!0)}return this}function fk(u){return this.isValid()?(u=u?Ve(u).utcOffset():0,(this.utcOffset()-u)%60===0):!1}function pk(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function vk(){if(!c(this._isDSTShifted))return this._isDSTShifted;var u={},p;return A(u,this),u=fp(u),u._a?(p=u._isUTC?b(u._a):Ve(u._a),this._isDSTShifted=this.isValid()&&sk(u._a,p.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function mk(){return this.isValid()?!this._isUTC:!1}function gk(){return this.isValid()?this._isUTC:!1}function gp(){return this.isValid()?this._isUTC&&this._offset===0:!1}var yk=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,_k=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function yr(u,p){var y=u,_=null,E,$,I;return yo(u)?y={ms:u._milliseconds,d:u._days,M:u._months}:f(u)||!isNaN(+u)?(y={},p?y[p]=+u:y.milliseconds=+u):(_=yk.exec(u))?(E=_[1]==="-"?-1:1,y={y:0,d:ue(_[Ar])*E,h:ue(_[at])*E,m:ue(_[gr])*E,s:ue(_[Hr])*E,ms:ue(Ad(_[Bn]*1e3))*E}):(_=_k.exec(u))?(E=_[1]==="-"?-1:1,y={y:Hn(_[2],E),M:Hn(_[3],E),w:Hn(_[4],E),d:Hn(_[5],E),h:Hn(_[6],E),m:Hn(_[7],E),s:Hn(_[8],E)}):y==null?y={}:typeof y=="object"&&("from"in y||"to"in y)&&(I=bk(Ve(y.from),Ve(y.to)),y={},y.ms=I.milliseconds,y.M=I.months),$=new go(y),yo(u)&&l(u,"_locale")&&($._locale=u._locale),yo(u)&&l(u,"_isValid")&&($._isValid=u._isValid),$}yr.fn=go.prototype,yr.invalid=ak;function Hn(u,p){var y=u&&parseFloat(u.replace(",","."));return(isNaN(y)?0:y)*p}function yp(u,p){var y={};return y.months=p.month()-u.month()+(p.year()-u.year())*12,u.clone().add(y.months,"M").isAfter(p)&&--y.months,y.milliseconds=+p-+u.clone().add(y.months,"M"),y}function bk(u,p){var y;return u.isValid()&&p.isValid()?(p=Pd(p,u),u.isBefore(p)?y=yp(u,p):(y=yp(p,u),y.milliseconds=-y.milliseconds,y.months=-y.months),y):{milliseconds:0,months:0}}function _p(u,p){return function(y,_){var E,$;return _!==null&&!isNaN(+_)&&(H(p,"moment()."+p+"(period, number) is deprecated. Please use moment()."+p+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),$=y,y=_,_=$),E=yr(y,_),bp(this,E,u),this}}function bp(u,p,y,_){var E=p._milliseconds,$=Ad(p._days),I=Ad(p._months);u.isValid()&&(_=_??!0,I&&tp(u,ao(u,"Month")+I*y),$&&Kf(u,"Date",ao(u,"Date")+$*y),E&&u._d.setTime(u._d.valueOf()+E*y),_&&a.updateOffset(u,$||I))}var wk=_p(1,"add"),Ek=_p(-1,"subtract");function wp(u){return typeof u=="string"||u instanceof String}function Sk(u){return C(u)||v(u)||wp(u)||f(u)||xk(u)||kk(u)||u===null||u===void 0}function kk(u){var p=o(u)&&!d(u),y=!1,_=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],E,$,I=_.length;for(E=0;E<I;E+=1)$=_[E],y=y||l(u,$);return p&&y}function xk(u){var p=s(u),y=!1;return p&&(y=u.filter(function(_){return!f(_)&&wp(u)}).length===0),p&&y}function Tk(u){var p=o(u)&&!d(u),y=!1,_=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],E,$;for(E=0;E<_.length;E+=1)$=_[E],y=y||l(u,$);return p&&y}function $k(u,p){var y=u.diff(p,"days",!0);return y<-6?"sameElse":y<-1?"lastWeek":y<0?"lastDay":y<1?"sameDay":y<2?"nextDay":y<7?"nextWeek":"sameElse"}function Dk(u,p){arguments.length===1&&(arguments[0]?Sk(arguments[0])?(u=arguments[0],p=void 0):Tk(arguments[0])&&(p=arguments[0],u=void 0):(u=void 0,p=void 0));var y=u||Ve(),_=Pd(y,this).startOf("day"),E=a.calendarFormat(this,_)||"sameElse",$=p&&(z(p[E])?p[E].call(this,y):p[E]);return this.format($||this.localeData().calendar(E,this,Ve(y)))}function Nk(){return new R(this)}function Ck(u,p){var y=C(u)?u:Ve(u);return this.isValid()&&y.isValid()?(p=wt(p)||"millisecond",p==="millisecond"?this.valueOf()>y.valueOf():y.valueOf()<this.clone().startOf(p).valueOf()):!1}function Ok(u,p){var y=C(u)?u:Ve(u);return this.isValid()&&y.isValid()?(p=wt(p)||"millisecond",p==="millisecond"?this.valueOf()<y.valueOf():this.clone().endOf(p).valueOf()<y.valueOf()):!1}function Ak(u,p,y,_){var E=C(u)?u:Ve(u),$=C(p)?p:Ve(p);return this.isValid()&&E.isValid()&&$.isValid()?(_=_||"()",(_[0]==="("?this.isAfter(E,y):!this.isBefore(E,y))&&(_[1]===")"?this.isBefore($,y):!this.isAfter($,y))):!1}function Ik(u,p){var y=C(u)?u:Ve(u),_;return this.isValid()&&y.isValid()?(p=wt(p)||"millisecond",p==="millisecond"?this.valueOf()===y.valueOf():(_=y.valueOf(),this.clone().startOf(p).valueOf()<=_&&_<=this.clone().endOf(p).valueOf())):!1}function Pk(u,p){return this.isSame(u,p)||this.isAfter(u,p)}function Mk(u,p){return this.isSame(u,p)||this.isBefore(u,p)}function Rk(u,p,y){var _,E,$;if(!this.isValid())return NaN;if(_=Pd(u,this),!_.isValid())return NaN;switch(E=(_.utcOffset()-this.utcOffset())*6e4,p=wt(p),p){case"year":$=_o(this,_)/12;break;case"month":$=_o(this,_);break;case"quarter":$=_o(this,_)/3;break;case"second":$=(this-_)/1e3;break;case"minute":$=(this-_)/6e4;break;case"hour":$=(this-_)/36e5;break;case"day":$=(this-_-E)/864e5;break;case"week":$=(this-_-E)/6048e5;break;default:$=this-_}return y?$:Et($)}function _o(u,p){if(u.date()<p.date())return-_o(p,u);var y=(p.year()-u.year())*12+(p.month()-u.month()),_=u.clone().add(y,"months"),E,$;return p-_<0?(E=u.clone().add(y-1,"months"),$=(p-_)/(_-E)):(E=u.clone().add(y+1,"months"),$=(p-_)/(E-_)),-(y+$)||0}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Lk(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Vk(u){if(!this.isValid())return null;var p=u!==!0,y=p?this.clone().utc():this;return y.year()<0||y.year()>9999?mt(y,p?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?p?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",mt(y,"Z")):mt(y,p?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Fk(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var u="moment",p="",y,_,E,$;return this.isLocal()||(u=this.utcOffset()===0?"moment.utc":"moment.parseZone",p="Z"),y="["+u+'("]',_=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",E="-MM-DD[T]HH:mm:ss.SSS",$=p+'[")]',this.format(y+_+E+$)}function Yk(u){u||(u=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var p=mt(this,u);return this.localeData().postformat(p)}function jk(u,p){return this.isValid()&&(C(u)&&u.isValid()||Ve(u).isValid())?yr({to:this,from:u}).locale(this.locale()).humanize(!p):this.localeData().invalidDate()}function Bk(u){return this.from(Ve(),u)}function Hk(u,p){return this.isValid()&&(C(u)&&u.isValid()||Ve(u).isValid())?yr({from:this,to:u}).locale(this.locale()).humanize(!p):this.localeData().invalidDate()}function Wk(u){return this.to(Ve(),u)}function Ep(u){var p;return u===void 0?this._locale._abbr:(p=Gr(u),p!=null&&(this._locale=p),this)}var Sp=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(u){return u===void 0?this.localeData():this.locale(u)});function kp(){return this._locale}var bo=1e3,Oi=60*bo,wo=60*Oi,xp=(365*400+97)*24*wo;function Ai(u,p){return(u%p+p)%p}function Tp(u,p,y){return u<100&&u>=0?new Date(u+400,p,y)-xp:new Date(u,p,y).valueOf()}function $p(u,p,y){return u<100&&u>=0?Date.UTC(u+400,p,y)-xp:Date.UTC(u,p,y)}function Gk(u){var p,y;if(u=wt(u),u===void 0||u==="millisecond"||!this.isValid())return this;switch(y=this._isUTC?$p:Tp,u){case"year":p=y(this.year(),0,1);break;case"quarter":p=y(this.year(),this.month()-this.month()%3,1);break;case"month":p=y(this.year(),this.month(),1);break;case"week":p=y(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":p=y(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":p=y(this.year(),this.month(),this.date());break;case"hour":p=this._d.valueOf(),p-=Ai(p+(this._isUTC?0:this.utcOffset()*Oi),wo);break;case"minute":p=this._d.valueOf(),p-=Ai(p,Oi);break;case"second":p=this._d.valueOf(),p-=Ai(p,bo);break}return this._d.setTime(p),a.updateOffset(this,!0),this}function zk(u){var p,y;if(u=wt(u),u===void 0||u==="millisecond"||!this.isValid())return this;switch(y=this._isUTC?$p:Tp,u){case"year":p=y(this.year()+1,0,1)-1;break;case"quarter":p=y(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":p=y(this.year(),this.month()+1,1)-1;break;case"week":p=y(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":p=y(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":p=y(this.year(),this.month(),this.date()+1)-1;break;case"hour":p=this._d.valueOf(),p+=wo-Ai(p+(this._isUTC?0:this.utcOffset()*Oi),wo)-1;break;case"minute":p=this._d.valueOf(),p+=Oi-Ai(p,Oi)-1;break;case"second":p=this._d.valueOf(),p+=bo-Ai(p,bo)-1;break}return this._d.setTime(p),a.updateOffset(this,!0),this}function Uk(){return this._d.valueOf()-(this._offset||0)*6e4}function Kk(){return Math.floor(this.valueOf()/1e3)}function qk(){return new Date(this.valueOf())}function Xk(){var u=this;return[u.year(),u.month(),u.date(),u.hour(),u.minute(),u.second(),u.millisecond()]}function Qk(){var u=this;return{years:u.year(),months:u.month(),date:u.date(),hours:u.hours(),minutes:u.minutes(),seconds:u.seconds(),milliseconds:u.milliseconds()}}function Zk(){return this.isValid()?this.toISOString():null}function Jk(){return T(this)}function ex(){return g({},w(this))}function tx(){return w(this).overflow}function rx(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}q("N",0,0,"eraAbbr"),q("NN",0,0,"eraAbbr"),q("NNN",0,0,"eraAbbr"),q("NNNN",0,0,"eraName"),q("NNNNN",0,0,"eraNarrow"),q("y",["y",1],"yo","eraYear"),q("y",["yy",2],0,"eraYear"),q("y",["yyy",3],0,"eraYear"),q("y",["yyyy",4],0,"eraYear"),U("N",Rd),U("NN",Rd),U("NNN",Rd),U("NNNN",fx),U("NNNNN",px),Te(["N","NN","NNN","NNNN","NNNNN"],function(u,p,y,_){var E=y._locale.erasParse(u,_,y._strict);E?w(y).era=E:w(y).invalidEra=u}),U("y",Ni),U("yy",Ni),U("yyy",Ni),U("yyyy",Ni),U("yo",vx),Te(["y","yy","yyy","yyyy"],gt),Te(["yo"],function(u,p,y,_){var E;y._locale._eraYearOrdinalRegex&&(E=u.match(y._locale._eraYearOrdinalRegex)),y._locale.eraYearOrdinalParse?p[gt]=y._locale.eraYearOrdinalParse(u,E):p[gt]=parseInt(u,10)});function nx(u,p){var y,_,E,$=this._eras||Gr("en")._eras;for(y=0,_=$.length;y<_;++y){switch(typeof $[y].since){case"string":E=a($[y].since).startOf("day"),$[y].since=E.valueOf();break}switch(typeof $[y].until){case"undefined":$[y].until=1/0;break;case"string":E=a($[y].until).startOf("day").valueOf(),$[y].until=E.valueOf();break}}return $}function ix(u,p,y){var _,E,$=this.eras(),I,J,ce;for(u=u.toUpperCase(),_=0,E=$.length;_<E;++_)if(I=$[_].name.toUpperCase(),J=$[_].abbr.toUpperCase(),ce=$[_].narrow.toUpperCase(),y)switch(p){case"N":case"NN":case"NNN":if(J===u)return $[_];break;case"NNNN":if(I===u)return $[_];break;case"NNNNN":if(ce===u)return $[_];break}else if([I,J,ce].indexOf(u)>=0)return $[_]}function ax(u,p){var y=u.since<=u.until?1:-1;return p===void 0?a(u.since).year():a(u.since).year()+(p-u.offset)*y}function sx(){var u,p,y,_=this.localeData().eras();for(u=0,p=_.length;u<p;++u)if(y=this.clone().startOf("day").valueOf(),_[u].since<=y&&y<=_[u].until||_[u].until<=y&&y<=_[u].since)return _[u].name;return""}function ox(){var u,p,y,_=this.localeData().eras();for(u=0,p=_.length;u<p;++u)if(y=this.clone().startOf("day").valueOf(),_[u].since<=y&&y<=_[u].until||_[u].until<=y&&y<=_[u].since)return _[u].narrow;return""}function lx(){var u,p,y,_=this.localeData().eras();for(u=0,p=_.length;u<p;++u)if(y=this.clone().startOf("day").valueOf(),_[u].since<=y&&y<=_[u].until||_[u].until<=y&&y<=_[u].since)return _[u].abbr;return""}function dx(){var u,p,y,_,E=this.localeData().eras();for(u=0,p=E.length;u<p;++u)if(y=E[u].since<=E[u].until?1:-1,_=this.clone().startOf("day").valueOf(),E[u].since<=_&&_<=E[u].until||E[u].until<=_&&_<=E[u].since)return(this.year()-a(E[u].since).year())*y+E[u].offset;return this.year()}function cx(u){return l(this,"_erasNameRegex")||Ld.call(this),u?this._erasNameRegex:this._erasRegex}function ux(u){return l(this,"_erasAbbrRegex")||Ld.call(this),u?this._erasAbbrRegex:this._erasRegex}function hx(u){return l(this,"_erasNarrowRegex")||Ld.call(this),u?this._erasNarrowRegex:this._erasRegex}function Rd(u,p){return p.erasAbbrRegex(u)}function fx(u,p){return p.erasNameRegex(u)}function px(u,p){return p.erasNarrowRegex(u)}function vx(u,p){return p._eraYearOrdinalRegex||Ni}function Ld(){var u=[],p=[],y=[],_=[],E,$,I=this.eras();for(E=0,$=I.length;E<$;++E)p.push(Ut(I[E].name)),u.push(Ut(I[E].abbr)),y.push(Ut(I[E].narrow)),_.push(Ut(I[E].name)),_.push(Ut(I[E].abbr)),_.push(Ut(I[E].narrow));this._erasRegex=new RegExp("^("+_.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+p.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+u.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+y.join("|")+")","i")}q(0,["gg",2],0,function(){return this.weekYear()%100}),q(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Eo(u,p){q(0,[u,u.length],0,p)}Eo("gggg","weekYear"),Eo("ggggg","weekYear"),Eo("GGGG","isoWeekYear"),Eo("GGGGG","isoWeekYear"),qe("weekYear","gg"),qe("isoWeekYear","GG"),it("weekYear",1),it("isoWeekYear",1),U("G",co),U("g",co),U("GG",Le,zt),U("gg",Le,zt),U("GGGG",Ed,wd),U("gggg",Ed,wd),U("GGGGG",lo,so),U("ggggg",lo,so),Ha(["gggg","ggggg","GGGG","GGGGG"],function(u,p,y,_){p[_.substr(0,2)]=ue(u)}),Ha(["gg","GG"],function(u,p,y,_){p[_]=a.parseTwoDigitYear(u)});function mx(u){return Dp.call(this,u,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function gx(u){return Dp.call(this,u,this.isoWeek(),this.isoWeekday(),1,4)}function yx(){return Wr(this.year(),1,4)}function _x(){return Wr(this.isoWeekYear(),1,4)}function bx(){var u=this.localeData()._week;return Wr(this.year(),u.dow,u.doy)}function wx(){var u=this.localeData()._week;return Wr(this.weekYear(),u.dow,u.doy)}function Dp(u,p,y,_,E){var $;return u==null?za(this,_,E).year:($=Wr(u,_,E),p>$&&(p=$),Ex.call(this,u,p,y,_,E))}function Ex(u,p,y,_,E){var $=ap(u,p,y,_,E),I=Ga($.year,0,$.dayOfYear);return this.year(I.getUTCFullYear()),this.month(I.getUTCMonth()),this.date(I.getUTCDate()),this}q("Q",0,"Qo","quarter"),qe("quarter","Q"),it("quarter",7),U("Q",qf),Te("Q",function(u,p){p[Br]=(ue(u)-1)*3});function Sx(u){return u==null?Math.ceil((this.month()+1)/3):this.month((u-1)*3+this.month()%3)}q("D",["DD",2],"Do","date"),qe("date","D"),it("date",9),U("D",Le),U("DD",Le,zt),U("Do",function(u,p){return u?p._dayOfMonthOrdinalParse||p._ordinalParse:p._dayOfMonthOrdinalParseLenient}),Te(["D","DD"],Ar),Te("Do",function(u,p){p[Ar]=ue(u.match(Le)[0])});var Np=Di("Date",!0);q("DDD",["DDDD",3],"DDDo","dayOfYear"),qe("dayOfYear","DDD"),it("dayOfYear",4),U("DDD",oo),U("DDDD",Xf),Te(["DDD","DDDD"],function(u,p,y){y._dayOfYear=ue(u)});function kx(u){var p=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return u==null?p:this.add(u-p,"d")}q("m",["mm",2],0,"minute"),qe("minute","m"),it("minute",14),U("m",Le),U("mm",Le,zt),Te(["m","mm"],gr);var xx=Di("Minutes",!1);q("s",["ss",2],0,"second"),qe("second","s"),it("second",15),U("s",Le),U("ss",Le,zt),Te(["s","ss"],Hr);var Tx=Di("Seconds",!1);q("S",0,0,function(){return~~(this.millisecond()/100)}),q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),q(0,["SSS",3],0,"millisecond"),q(0,["SSSS",4],0,function(){return this.millisecond()*10}),q(0,["SSSSS",5],0,function(){return this.millisecond()*100}),q(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),q(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),q(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),q(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),qe("millisecond","ms"),it("millisecond",16),U("S",oo,qf),U("SS",oo,zt),U("SSS",oo,Xf);var mn,Cp;for(mn="SSSS";mn.length<=9;mn+="S")U(mn,Ni);function $x(u,p){p[Bn]=ue(("0."+u)*1e3)}for(mn="S";mn.length<=9;mn+="S")Te(mn,$x);Cp=Di("Milliseconds",!1),q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");function Dx(){return this._isUTC?"UTC":""}function Nx(){return this._isUTC?"Coordinated Universal Time":""}var Y=R.prototype;Y.add=wk,Y.calendar=Dk,Y.clone=Nk,Y.diff=Rk,Y.endOf=zk,Y.format=Yk,Y.from=jk,Y.fromNow=Bk,Y.to=Hk,Y.toNow=Wk,Y.get=O1,Y.invalidAt=tx,Y.isAfter=Ck,Y.isBefore=Ok,Y.isBetween=Ak,Y.isSame=Ik,Y.isSameOrAfter=Pk,Y.isSameOrBefore=Mk,Y.isValid=Jk,Y.lang=Sp,Y.locale=Ep,Y.localeData=kp,Y.max=JS,Y.min=ZS,Y.parsingFlags=ex,Y.set=A1,Y.startOf=Gk,Y.subtract=Ek,Y.toArray=Xk,Y.toObject=Qk,Y.toDate=qk,Y.toISOString=Vk,Y.inspect=Fk,typeof Symbol<"u"&&Symbol.for!=null&&(Y[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Y.toJSON=Zk,Y.toString=Lk,Y.unix=Kk,Y.valueOf=Uk,Y.creationData=rx,Y.eraName=sx,Y.eraNarrow=ox,Y.eraAbbr=lx,Y.eraYear=dx,Y.year=ip,Y.isLeapYear=Q1,Y.weekYear=mx,Y.isoWeekYear=gx,Y.quarter=Y.quarters=Sx,Y.month=rp,Y.daysInMonth=K1,Y.week=Y.weeks=nS,Y.isoWeek=Y.isoWeeks=iS,Y.weeksInYear=bx,Y.weeksInWeekYear=wx,Y.isoWeeksInYear=yx,Y.isoWeeksInISOWeekYear=_x,Y.date=Np,Y.day=Y.days=gS,Y.weekday=yS,Y.isoWeekday=_S,Y.dayOfYear=kx,Y.hour=Y.hours=TS,Y.minute=Y.minutes=xx,Y.second=Y.seconds=Tx,Y.millisecond=Y.milliseconds=Cp,Y.utcOffset=lk,Y.utc=ck,Y.local=uk,Y.parseZone=hk,Y.hasAlignedHourOffset=fk,Y.isDST=pk,Y.isLocal=mk,Y.isUtcOffset=gk,Y.isUtc=gp,Y.isUTC=gp,Y.zoneAbbr=Dx,Y.zoneName=Nx,Y.dates=O("dates accessor is deprecated. Use date instead.",Np),Y.months=O("months accessor is deprecated. Use month instead",rp),Y.years=O("years accessor is deprecated. Use year instead",ip),Y.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",dk),Y.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",vk);function Cx(u){return Ve(u*1e3)}function Ox(){return Ve.apply(null,arguments).parseZone()}function Op(u){return u}var we=be.prototype;we.calendar=ut,we.longDateFormat=B,we.invalidDate=ie,we.ordinal=Je,we.preparse=Op,we.postformat=Op,we.relativeTime=mr,we.pastFuture=ar,we.set=se,we.eras=nx,we.erasParse=ix,we.erasConvertYear=ax,we.erasAbbrRegex=ux,we.erasNameRegex=cx,we.erasNarrowRegex=hx,we.months=W1,we.monthsShort=G1,we.monthsParse=U1,we.monthsRegex=X1,we.monthsShortRegex=q1,we.week=J1,we.firstDayOfYear=rS,we.firstDayOfWeek=tS,we.weekdays=hS,we.weekdaysMin=pS,we.weekdaysShort=fS,we.weekdaysParse=mS,we.weekdaysRegex=bS,we.weekdaysShortRegex=wS,we.weekdaysMinRegex=ES,we.isPM=kS,we.meridiem=$S;function So(u,p,y,_){var E=Gr(),$=b().set(_,p);return E[y]($,u)}function Ap(u,p,y){if(f(u)&&(p=u,u=void 0),u=u||"",p!=null)return So(u,p,y,"month");var _,E=[];for(_=0;_<12;_++)E[_]=So(u,_,y,"month");return E}function Vd(u,p,y,_){typeof u=="boolean"?(f(p)&&(y=p,p=void 0),p=p||""):(p=u,y=p,u=!1,f(p)&&(y=p,p=void 0),p=p||"");var E=Gr(),$=u?E._week.dow:0,I,J=[];if(y!=null)return So(p,(y+$)%7,_,"day");for(I=0;I<7;I++)J[I]=So(p,(I+$)%7,_,"day");return J}function Ax(u,p){return Ap(u,p,"months")}function Ix(u,p){return Ap(u,p,"monthsShort")}function Px(u,p,y){return Vd(u,p,y,"weekdays")}function Mx(u,p,y){return Vd(u,p,y,"weekdaysShort")}function Rx(u,p,y){return Vd(u,p,y,"weekdaysMin")}vn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(u){var p=u%10,y=ue(u%100/10)===1?"th":p===1?"st":p===2?"nd":p===3?"rd":"th";return u+y}}),a.lang=O("moment.lang is deprecated. Use moment.locale instead.",vn),a.langData=O("moment.langData is deprecated. Use moment.localeData instead.",Gr);var zr=Math.abs;function Lx(){var u=this._data;return this._milliseconds=zr(this._milliseconds),this._days=zr(this._days),this._months=zr(this._months),u.milliseconds=zr(u.milliseconds),u.seconds=zr(u.seconds),u.minutes=zr(u.minutes),u.hours=zr(u.hours),u.months=zr(u.months),u.years=zr(u.years),this}function Ip(u,p,y,_){var E=yr(p,y);return u._milliseconds+=_*E._milliseconds,u._days+=_*E._days,u._months+=_*E._months,u._bubble()}function Vx(u,p){return Ip(this,u,p,1)}function Fx(u,p){return Ip(this,u,p,-1)}function Pp(u){return u<0?Math.floor(u):Math.ceil(u)}function Yx(){var u=this._milliseconds,p=this._days,y=this._months,_=this._data,E,$,I,J,ce;return u>=0&&p>=0&&y>=0||u<=0&&p<=0&&y<=0||(u+=Pp(Fd(y)+p)*864e5,p=0,y=0),_.milliseconds=u%1e3,E=Et(u/1e3),_.seconds=E%60,$=Et(E/60),_.minutes=$%60,I=Et($/60),_.hours=I%24,p+=Et(I/24),ce=Et(Mp(p)),y+=ce,p-=Pp(Fd(ce)),J=Et(y/12),y%=12,_.days=p,_.months=y,_.years=J,this}function Mp(u){return u*4800/146097}function Fd(u){return u*146097/4800}function jx(u){if(!this.isValid())return NaN;var p,y,_=this._milliseconds;if(u=wt(u),u==="month"||u==="quarter"||u==="year")switch(p=this._days+_/864e5,y=this._months+Mp(p),u){case"month":return y;case"quarter":return y/3;case"year":return y/12}else switch(p=this._days+Math.round(Fd(this._months)),u){case"week":return p/7+_/6048e5;case"day":return p+_/864e5;case"hour":return p*24+_/36e5;case"minute":return p*1440+_/6e4;case"second":return p*86400+_/1e3;case"millisecond":return Math.floor(p*864e5)+_;default:throw new Error("Unknown unit "+u)}}function Bx(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ue(this._months/12)*31536e6:NaN}function Ur(u){return function(){return this.as(u)}}var Hx=Ur("ms"),Wx=Ur("s"),Gx=Ur("m"),zx=Ur("h"),Ux=Ur("d"),Kx=Ur("w"),qx=Ur("M"),Xx=Ur("Q"),Qx=Ur("y");function Zx(){return yr(this)}function Jx(u){return u=wt(u),this.isValid()?this[u+"s"]():NaN}function Wn(u){return function(){return this.isValid()?this._data[u]:NaN}}var eT=Wn("milliseconds"),tT=Wn("seconds"),rT=Wn("minutes"),nT=Wn("hours"),iT=Wn("days"),aT=Wn("months"),sT=Wn("years");function oT(){return Et(this.days()/7)}var Kr=Math.round,Ii={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function lT(u,p,y,_,E){return E.relativeTime(p||1,!!y,u,_)}function dT(u,p,y,_){var E=yr(u).abs(),$=Kr(E.as("s")),I=Kr(E.as("m")),J=Kr(E.as("h")),ce=Kr(E.as("d")),$e=Kr(E.as("M")),St=Kr(E.as("w")),qr=Kr(E.as("y")),gn=$<=y.ss&&["s",$]||$<y.s&&["ss",$]||I<=1&&["m"]||I<y.m&&["mm",I]||J<=1&&["h"]||J<y.h&&["hh",J]||ce<=1&&["d"]||ce<y.d&&["dd",ce];return y.w!=null&&(gn=gn||St<=1&&["w"]||St<y.w&&["ww",St]),gn=gn||$e<=1&&["M"]||$e<y.M&&["MM",$e]||qr<=1&&["y"]||["yy",qr],gn[2]=p,gn[3]=+u>0,gn[4]=_,lT.apply(null,gn)}function cT(u){return u===void 0?Kr:typeof u=="function"?(Kr=u,!0):!1}function uT(u,p){return Ii[u]===void 0?!1:p===void 0?Ii[u]:(Ii[u]=p,u==="s"&&(Ii.ss=p-1),!0)}function hT(u,p){if(!this.isValid())return this.localeData().invalidDate();var y=!1,_=Ii,E,$;return typeof u=="object"&&(p=u,u=!1),typeof u=="boolean"&&(y=u),typeof p=="object"&&(_=Object.assign({},Ii,p),p.s!=null&&p.ss==null&&(_.ss=p.s-1)),E=this.localeData(),$=dT(this,!y,_,E),y&&($=E.pastFuture(+this,$)),E.postformat($)}var Yd=Math.abs;function Pi(u){return(u>0)-(u<0)||+u}function ko(){if(!this.isValid())return this.localeData().invalidDate();var u=Yd(this._milliseconds)/1e3,p=Yd(this._days),y=Yd(this._months),_,E,$,I,J=this.asSeconds(),ce,$e,St,qr;return J?(_=Et(u/60),E=Et(_/60),u%=60,_%=60,$=Et(y/12),y%=12,I=u?u.toFixed(3).replace(/\.?0+$/,""):"",ce=J<0?"-":"",$e=Pi(this._months)!==Pi(J)?"-":"",St=Pi(this._days)!==Pi(J)?"-":"",qr=Pi(this._milliseconds)!==Pi(J)?"-":"",ce+"P"+($?$e+$+"Y":"")+(y?$e+y+"M":"")+(p?St+p+"D":"")+(E||_||u?"T":"")+(E?qr+E+"H":"")+(_?qr+_+"M":"")+(u?qr+I+"S":"")):"P0D"}var ve=go.prototype;ve.isValid=ik,ve.abs=Lx,ve.add=Vx,ve.subtract=Fx,ve.as=jx,ve.asMilliseconds=Hx,ve.asSeconds=Wx,ve.asMinutes=Gx,ve.asHours=zx,ve.asDays=Ux,ve.asWeeks=Kx,ve.asMonths=qx,ve.asQuarters=Xx,ve.asYears=Qx,ve.valueOf=Bx,ve._bubble=Yx,ve.clone=Zx,ve.get=Jx,ve.milliseconds=eT,ve.seconds=tT,ve.minutes=rT,ve.hours=nT,ve.days=iT,ve.weeks=oT,ve.months=aT,ve.years=sT,ve.humanize=hT,ve.toISOString=ko,ve.toString=ko,ve.toJSON=ko,ve.locale=Ep,ve.localeData=kp,ve.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ko),ve.lang=Sp,q("X",0,0,"unix"),q("x",0,0,"valueOf"),U("x",co),U("X",P1),Te("X",function(u,p,y){y._d=new Date(parseFloat(u)*1e3)}),Te("x",function(u,p,y){y._d=new Date(ue(u))});//! moment.js
33
+ return a.version="2.29.4",n(Ve),a.fn=Y,a.min=ek,a.max=tk,a.now=rk,a.utc=b,a.unix=Cx,a.months=Ax,a.isDate=v,a.locale=vn,a.invalid=D,a.duration=yr,a.isMoment=C,a.weekdays=Px,a.parseZone=Ox,a.localeData=Gr,a.isDuration=yo,a.monthsShort=Ix,a.weekdaysMin=Rx,a.defineLocale=$d,a.updateLocale=OS,a.locales=AS,a.weekdaysShort=Mx,a.normalizeUnits=wt,a.relativeTimeRounding=cT,a.relativeTimeThreshold=uT,a.calendarFormat=$k,a.prototype=Y,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a})}(rc)),rc.exports}(function(e,t){(function(r,a){a(typeof Yr=="function"?$r():r.moment)})(Jt,function(r){//! moment.js locale configuration
34
+ function a(s,o,l,d){var c={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[s+" Tage",s+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[s+" Monate",s+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[s+" Jahre",s+" Jahren"]};return o?c[l][0]:c[l][1]}var n=r.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,w:a,ww:"%d Wochen",M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n})})();(function(e,t){(function(r,a){a(typeof Yr=="function"?$r():r.moment)})(Jt,function(r){//! moment.js locale configuration
35
+ var a="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,l=r.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(d,c){return d?/-MMM-/.test(c)?n[d.month()]:a[d.month()]:a},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"});return l})})();(function(e,t){(function(r,a){a(typeof Yr=="function"?$r():r.moment)})(Jt,function(r){//! moment.js locale configuration
36
+ var a=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,s=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,o=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],l=r.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:a,monthsShortStrictRegex:n,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(d,c){switch(c){case"D":return d+(d===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return d+(d===1?"er":"e");case"w":case"W":return d+(d===1?"re":"e")}},week:{dow:1,doy:4}});return l})})();(function(e,t){(function(r,a){a(typeof Yr=="function"?$r():r.moment)})(Jt,function(r){//! moment.js locale configuration
37
+ var a=r.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return a})})();(function(e,t){(function(r,a){a(typeof Yr=="function"?$r():r.moment)})(Jt,function(r){//! moment.js locale configuration
38
+ var a=r.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(n,s){return s[1]==="元"?1:parseInt(s[1]||n,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(n){return n==="午後"},meridiem:function(n,s,o){return n<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(n){return n.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(n){return this.week()!==n.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(n,s){switch(s){case"y":return n===1?"元年":n+"年";case"d":case"D":case"DDD":return n+"日";default:return n}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}});return a})})();(function(e,t){(function(r,a){a(typeof Yr=="function"?$r():r.moment)})(Jt,function(r){//! moment.js locale configuration
39
+ var a="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),s=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,l=r.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(d,c){return d?/-MMM-/.test(c)?n[d.month()]:a[d.month()]:a},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(d){return d+(d===1||d===8||d>=20?"ste":"de")},week:{dow:1,doy:4}});return l})})();(function(e,t){(function(r,a){a(typeof Yr=="function"?$r():r.moment)})(Jt,function(r){//! moment.js locale configuration
40
+ var a="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),s=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function o(c){return c%10<5&&c%10>1&&~~(c/10)%10!==1}function l(c,f,v){var m=c+" ";switch(v){case"ss":return m+(o(c)?"sekundy":"sekund");case"m":return f?"minuta":"minutę";case"mm":return m+(o(c)?"minuty":"minut");case"h":return f?"godzina":"godzinę";case"hh":return m+(o(c)?"godziny":"godzin");case"ww":return m+(o(c)?"tygodnie":"tygodni");case"MM":return m+(o(c)?"miesiące":"miesięcy");case"yy":return m+(o(c)?"lata":"lat")}}var d=r.defineLocale("pl",{months:function(c,f){return c?/D MMMM/.test(f)?n[c.month()]:a[c.month()]:a},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:l,m:l,mm:l,h:l,hh:l,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:l,M:"miesiąc",MM:l,y:"rok",yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return d})})();(function(e,t){(function(r,a){a(typeof Yr=="function"?$r():r.moment)})(Jt,function(r){//! moment.js locale configuration
41
+ function a(l,d){var c=l.split("_");return d%10===1&&d%100!==11?c[0]:d%10>=2&&d%10<=4&&(d%100<10||d%100>=20)?c[1]:c[2]}function n(l,d,c){var f={ss:d?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:d?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return c==="m"?d?"минута":"минуту":l+" "+a(f[c],+l)}var s=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],o=r.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:s,longMonthsParse:s,shortMonthsParse:s,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(l){if(l.week()!==this.week())switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}else return this.day()===2?"[Во] dddd, [в] LT":"[В] dddd, [в] LT"},lastWeek:function(l){if(l.week()!==this.week())switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}else return this.day()===2?"[Во] dddd, [в] LT":"[В] dddd, [в] LT"},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,w:"неделя",ww:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(l){return/^(дня|вечера)$/.test(l)},meridiem:function(l,d,c){return l<4?"ночи":l<12?"утра":l<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(l,d){switch(d){case"M":case"d":case"DDD":return l+"-й";case"D":return l+"-го";case"w":case"W":return l+"-я";default:return l}},week:{dow:1,doy:4}});return o})})();(function(e,t){(function(r,a){a(typeof Yr=="function"?$r():r.moment)})(Jt,function(r){//! moment.js locale configuration
42
+ function a(d,c){var f=d.split("_");return c%10===1&&c%100!==11?f[0]:c%10>=2&&c%10<=4&&(c%100<10||c%100>=20)?f[1]:f[2]}function n(d,c,f){var v={ss:c?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:c?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:c?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return f==="m"?c?"хвилина":"хвилину":f==="h"?c?"година":"годину":d+" "+a(v[f],+d)}function s(d,c){var f={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},v;return d===!0?f.nominative.slice(1,7).concat(f.nominative.slice(0,1)):d?(v=/(\[[ВвУу]\]) ?dddd/.test(c)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(c)?"genitive":"nominative",f[v][d.day()]):f.nominative}function o(d){return function(){return d+"о"+(this.hours()===11?"б":"")+"] LT"}}var l=r.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:s,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:o("[Сьогодні "),nextDay:o("[Завтра "),lastDay:o("[Вчора "),nextWeek:o("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return o("[Минулої] dddd [").call(this);case 1:case 2:case 4:return o("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(d){return/^(дня|вечора)$/.test(d)},meridiem:function(d,c,f){return d<4?"ночі":d<12?"ранку":d<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(d,c){switch(c){case"M":case"d":case"DDD":case"w":case"W":return d+"-й";case"D":return d+"-го";default:return d}},week:{dow:1,doy:7}});return l})})();var ge=function(e){try{return!!e()}catch{return!0}},fO=ge,As=!fO(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),rb=As,nb=Function.prototype,Ou=nb.call,pO=rb&&nb.bind.bind(Ou,Ou),Ee=rb?pO:function(e){return function(){return Ou.apply(e,arguments)}},vO=Math.ceil,mO=Math.floor,gO=Math.trunc||function(t){var r=+t;return(r>0?mO:vO)(r)},yO=gO,Is=function(e){var t=+e;return t!==t||t===0?0:yO(t)},Ao=function(e){return e&&e.Math===Math&&e},Ye=Ao(typeof globalThis=="object"&&globalThis)||Ao(typeof window=="object"&&window)||Ao(typeof self=="object"&&self)||Ao(typeof Jt=="object"&&Jt)||function(){return this}()||Jt||Function("return this")(),ib={exports:{}},_O=!0,_v=Ye,bO=Object.defineProperty,wO=function(e,t){try{bO(_v,e,{value:t,configurable:!0,writable:!0})}catch{_v[e]=t}return t},EO=Ye,SO=wO,bv="__core-js_shared__",kO=EO[bv]||SO(bv,{}),jh=kO,wv=jh;(ib.exports=function(e,t){return wv[e]||(wv[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ta=ib.exports,$a=function(e){return e==null},xO=$a,TO=TypeError,Da=function(e){if(xO(e))throw new TO("Can't call method on "+e);return e},$O=Da,DO=Object,Ot=function(e){return DO($O(e))},NO=Ee,CO=Ot,OO=NO({}.hasOwnProperty),tt=Object.hasOwn||function(t,r){return OO(CO(t),r)},AO=Ee,IO=0,PO=Math.random(),MO=AO(1 .toString),Kl=function(e){return"Symbol("+(e===void 0?"":e)+")_"+MO(++IO+PO,36)},Pn=typeof navigator<"u"&&String(navigator.userAgent)||"",ab=Ye,nc=Pn,Ev=ab.process,Sv=ab.Deno,kv=Ev&&Ev.versions||Sv&&Sv.version,xv=kv&&kv.v8,Er,ml;xv&&(Er=xv.split("."),ml=Er[0]>0&&Er[0]<4?1:+(Er[0]+Er[1]));!ml&&nc&&(Er=nc.match(/Edge\/(\d+)/),(!Er||Er[1]>=74)&&(Er=nc.match(/Chrome\/(\d+)/),Er&&(ml=+Er[1])));var Na=ml,Tv=Na,RO=ge,LO=Ye,VO=LO.String,Ca=!!Object.getOwnPropertySymbols&&!RO(function(){var e=Symbol("symbol detection");return!VO(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Tv&&Tv<41}),FO=Ca,sb=FO&&!Symbol.sham&&typeof Symbol.iterator=="symbol",YO=Ye,jO=Ta,$v=tt,BO=Kl,HO=Ca,WO=sb,Zi=YO.Symbol,ic=jO("wks"),GO=WO?Zi.for||Zi:Zi&&Zi.withoutSetter||BO,je=function(e){return $v(ic,e)||(ic[e]=HO&&$v(Zi,e)?Zi[e]:GO("Symbol."+e)),ic[e]},zO=je,UO=zO("toStringTag"),ob={};ob[UO]="z";var Bh=String(ob)==="[object z]",Au=typeof document=="object"&&document.all,KO=typeof Au>"u"&&Au!==void 0,lb={all:Au,IS_HTMLDDA:KO},db=lb,qO=db.all,ze=db.IS_HTMLDDA?function(e){return typeof e=="function"||e===qO}:function(e){return typeof e=="function"},cb=Ee,XO=cb({}.toString),QO=cb("".slice),dn=function(e){return QO(XO(e),8,-1)},ZO=Bh,JO=ze,al=dn,eA=je,tA=eA("toStringTag"),rA=Object,nA=al(function(){return arguments}())==="Arguments",iA=function(e,t){try{return e[t]}catch{}},cn=ZO?al:function(e){var t,r,a;return e===void 0?"Undefined":e===null?"Null":typeof(r=iA(t=rA(e),tA))=="string"?r:nA?al(t):(a=al(t))==="Object"&&JO(t.callee)?"Arguments":a},aA=cn,sA=String,fr=function(e){if(aA(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return sA(e)},Hh=Ee,oA=Is,lA=fr,dA=Da,cA=Hh("".charAt),Dv=Hh("".charCodeAt),uA=Hh("".slice),hA=function(e){return function(t,r){var a=lA(dA(t)),n=oA(r),s=a.length,o,l;return n<0||n>=s?e?"":void 0:(o=Dv(a,n),o<55296||o>56319||n+1===s||(l=Dv(a,n+1))<56320||l>57343?e?cA(a,n):o:e?uA(a,n,n+2):(o-55296<<10)+(l-56320)+65536)}},fA={charAt:hA(!0)},pA=Ye,vA=ze,Nv=pA.WeakMap,mA=vA(Nv)&&/native code/.test(String(Nv)),Cv=ze,ub=lb,gA=ub.all,dt=ub.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:Cv(e)||e===gA}:function(e){return typeof e=="object"?e!==null:Cv(e)},yA=ge,ot=!yA(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Bt={},_A=Ye,Ov=dt,Iu=_A.document,bA=Ov(Iu)&&Ov(Iu.createElement),Wh=function(e){return bA?Iu.createElement(e):{}},wA=ot,EA=ge,SA=Wh,hb=!wA&&!EA(function(){return Object.defineProperty(SA("div"),"a",{get:function(){return 7}}).a!==7}),kA=ot,xA=ge,fb=kA&&xA(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),TA=dt,$A=String,DA=TypeError,ir=function(e){if(TA(e))return e;throw new DA($A(e)+" is not an object")},NA=As,Io=Function.prototype.call,ct=NA?Io.bind(Io):function(){return Io.apply(Io,arguments)},xe={},ac=xe,sc=Ye,CA=ze,Av=function(e){return CA(e)?e:void 0},At=function(e,t){return arguments.length<2?Av(ac[e])||Av(sc[e]):ac[e]&&ac[e][t]||sc[e]&&sc[e][t]},OA=Ee,Oe=OA({}.isPrototypeOf),AA=At,IA=ze,PA=Oe,MA=sb,RA=Object,Ps=MA?function(e){return typeof e=="symbol"}:function(e){var t=AA("Symbol");return IA(t)&&PA(t.prototype,RA(e))},LA=String,Oa=function(e){try{return LA(e)}catch{return"Object"}},VA=ze,FA=Oa,YA=TypeError,Ht=function(e){if(VA(e))return e;throw new YA(FA(e)+" is not a function")},jA=Ht,BA=$a,Gh=function(e,t){var r=e[t];return BA(r)?void 0:jA(r)},oc=ct,lc=ze,dc=dt,HA=TypeError,WA=function(e,t){var r,a;if(t==="string"&&lc(r=e.toString)&&!dc(a=oc(r,e))||lc(r=e.valueOf)&&!dc(a=oc(r,e))||t!=="string"&&lc(r=e.toString)&&!dc(a=oc(r,e)))return a;throw new HA("Can't convert object to primitive value")},GA=ct,Iv=dt,Pv=Ps,zA=Gh,UA=WA,KA=je,qA=TypeError,XA=KA("toPrimitive"),QA=function(e,t){if(!Iv(e)||Pv(e))return e;var r=zA(e,XA),a;if(r){if(t===void 0&&(t="default"),a=GA(r,e,t),!Iv(a)||Pv(a))return a;throw new qA("Can't convert object to primitive value")}return t===void 0&&(t="number"),UA(e,t)},ZA=QA,JA=Ps,ql=function(e){var t=ZA(e,"string");return JA(t)?t:t+""},eI=ot,tI=hb,rI=fb,Po=ir,Mv=ql,nI=TypeError,cc=Object.defineProperty,iI=Object.getOwnPropertyDescriptor,uc="enumerable",hc="configurable",fc="writable";Bt.f=eI?rI?function(t,r,a){if(Po(t),r=Mv(r),Po(a),typeof t=="function"&&r==="prototype"&&"value"in a&&fc in a&&!a[fc]){var n=iI(t,r);n&&n[fc]&&(t[r]=a.value,a={configurable:hc in a?a[hc]:n[hc],enumerable:uc in a?a[uc]:n[uc],writable:!1})}return cc(t,r,a)}:cc:function(t,r,a){if(Po(t),r=Mv(r),Po(a),tI)try{return cc(t,r,a)}catch{}if("get"in a||"set"in a)throw new nI("Accessors not supported");return"value"in a&&(t[r]=a.value),t};var yi=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},aI=ot,sI=Bt,oI=yi,un=aI?function(e,t,r){return sI.f(e,t,oI(1,r))}:function(e,t,r){return e[t]=r,e},lI=Ta,dI=Kl,Rv=lI("keys"),Xl=function(e){return Rv[e]||(Rv[e]=dI(e))},Ms={},cI=mA,pb=Ye,uI=dt,hI=un,pc=tt,vc=jh,fI=Xl,pI=Ms,Lv="Object already initialized",Pu=pb.TypeError,vI=pb.WeakMap,gl,ms,yl,mI=function(e){return yl(e)?ms(e):gl(e,{})},gI=function(e){return function(t){var r;if(!uI(t)||(r=ms(t)).type!==e)throw new Pu("Incompatible receiver, "+e+" required");return r}};if(cI||vc.state){var Ir=vc.state||(vc.state=new vI);Ir.get=Ir.get,Ir.has=Ir.has,Ir.set=Ir.set,gl=function(e,t){if(Ir.has(e))throw new Pu(Lv);return t.facade=e,Ir.set(e,t),t},ms=function(e){return Ir.get(e)||{}},yl=function(e){return Ir.has(e)}}else{var Li=fI("state");pI[Li]=!0,gl=function(e,t){if(pc(e,Li))throw new Pu(Lv);return t.facade=e,hI(e,Li,t),t},ms=function(e){return pc(e,Li)?e[Li]:{}},yl=function(e){return pc(e,Li)}}var Aa={set:gl,get:ms,has:yl,enforce:mI,getterFor:gI},yI=As,vb=Function.prototype,Vv=vb.apply,Fv=vb.call,Ia=typeof Reflect=="object"&&Reflect.apply||(yI?Fv.bind(Vv):function(){return Fv.apply(Vv,arguments)}),_I=dn,bI=Ee,zh=function(e){if(_I(e)==="Function")return bI(e)},_i={},Rs={},mb={}.propertyIsEnumerable,gb=Object.getOwnPropertyDescriptor,wI=gb&&!mb.call({1:2},1);Rs.f=wI?function(t){var r=gb(this,t);return!!r&&r.enumerable}:mb;var EI=Ee,SI=ge,kI=dn,mc=Object,xI=EI("".split),Ql=SI(function(){return!mc("z").propertyIsEnumerable(0)})?function(e){return kI(e)==="String"?xI(e,""):mc(e)}:mc,TI=Ql,$I=Da,Dr=function(e){return TI($I(e))},DI=ot,NI=ct,CI=Rs,OI=yi,AI=Dr,II=ql,PI=tt,MI=hb,Yv=Object.getOwnPropertyDescriptor;_i.f=DI?Yv:function(t,r){if(t=AI(t),r=II(r),MI)try{return Yv(t,r)}catch{}if(PI(t,r))return OI(!NI(CI.f,t,r),t[r])};var RI=ge,LI=ze,VI=/#|\.prototype\./,Ls=function(e,t){var r=YI[FI(e)];return r===BI?!0:r===jI?!1:LI(t)?RI(t):!!t},FI=Ls.normalize=function(e){return String(e).replace(VI,".").toLowerCase()},YI=Ls.data={},jI=Ls.NATIVE="N",BI=Ls.POLYFILL="P",yb=Ls,jv=zh,HI=Ht,WI=As,GI=jv(jv.bind),Mn=function(e,t){return HI(e),t===void 0?e:WI?GI(e,t):function(){return e.apply(t,arguments)}},Mo=Ye,zI=Ia,UI=zh,KI=ze,qI=_i.f,XI=yb,Vi=xe,QI=Mn,Fi=un,Bv=tt,ZI=function(e){var t=function(r,a,n){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,a)}return new e(r,a,n)}return zI(e,this,arguments)};return t.prototype=e.prototype,t},X=function(e,t){var r=e.target,a=e.global,n=e.stat,s=e.proto,o=a?Mo:n?Mo[r]:(Mo[r]||{}).prototype,l=a?Vi:Vi[r]||Fi(Vi,r,{})[r],d=l.prototype,c,f,v,m,g,b,S,w,k;for(m in t)c=XI(a?m:r+(n?".":"#")+m,e.forced),f=!c&&o&&Bv(o,m),b=l[m],f&&(e.dontCallGetSet?(k=qI(o,m),S=k&&k.value):S=o[m]),g=f&&S?S:t[m],!(f&&typeof b==typeof g)&&(e.bind&&f?w=QI(g,Mo):e.wrap&&f?w=ZI(g):s&&KI(g)?w=UI(g):w=g,(e.sham||g&&g.sham||b&&b.sham)&&Fi(w,"sham",!0),Fi(l,m,w),s&&(v=r+"Prototype",Bv(Vi,v)||Fi(Vi,v,{}),Fi(Vi[v],m,g),e.real&&d&&(c||!d[m])&&Fi(d,m,g)))},Mu=ot,JI=tt,_b=Function.prototype,eP=Mu&&Object.getOwnPropertyDescriptor,bb=JI(_b,"name"),tP=bb&&(function(){}).name==="something";bb&&(!Mu||Mu&&eP(_b,"name").configurable);var rP={PROPER:tP},Zl={},nP=Is,iP=Math.max,aP=Math.min,Vs=function(e,t){var r=nP(e);return r<0?iP(r+t,0):aP(r,t)},sP=Is,oP=Math.min,lP=function(e){return e>0?oP(sP(e),9007199254740991):0},dP=lP,Wt=function(e){return dP(e.length)},cP=Dr,uP=Vs,hP=Wt,Hv=function(e){return function(t,r,a){var n=cP(t),s=hP(n),o=uP(a,s),l;if(e&&r!==r){for(;s>o;)if(l=n[o++],l!==l)return!0}else for(;s>o;o++)if((e||o in n)&&n[o]===r)return e||o||0;return!e&&-1}},Uh={includes:Hv(!0),indexOf:Hv(!1)},fP=Ee,gc=tt,pP=Dr,vP=Uh.indexOf,mP=Ms,Wv=fP([].push),wb=function(e,t){var r=pP(e),a=0,n=[],s;for(s in r)!gc(mP,s)&&gc(r,s)&&Wv(n,s);for(;t.length>a;)gc(r,s=t[a++])&&(~vP(n,s)||Wv(n,s));return n},Kh=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gP=wb,yP=Kh,Fs=Object.keys||function(t){return gP(t,yP)},_P=ot,bP=fb,wP=Bt,EP=ir,SP=Dr,kP=Fs;Zl.f=_P&&!bP?Object.defineProperties:function(t,r){EP(t);for(var a=SP(r),n=kP(r),s=n.length,o=0,l;s>o;)wP.f(t,l=n[o++],a[l]);return t};var xP=At,Eb=xP("document","documentElement"),TP=ir,$P=Zl,Gv=Kh,DP=Ms,NP=Eb,CP=Wh,OP=Xl,zv=">",Uv="<",Ru="prototype",Lu="script",Sb=OP("IE_PROTO"),yc=function(){},kb=function(e){return Uv+Lu+zv+e+Uv+"/"+Lu+zv},Kv=function(e){e.write(kb("")),e.close();var t=e.parentWindow.Object;return e=null,t},AP=function(){var e=CP("iframe"),t="java"+Lu+":",r;return e.style.display="none",NP.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(kb("document.F=Object")),r.close(),r.F},Ro,sl=function(){try{Ro=new ActiveXObject("htmlfile")}catch{}sl=typeof document<"u"?document.domain&&Ro?Kv(Ro):AP():Kv(Ro);for(var e=Gv.length;e--;)delete sl[Ru][Gv[e]];return sl()};DP[Sb]=!0;var bi=Object.create||function(t,r){var a;return t!==null?(yc[Ru]=TP(t),a=new yc,yc[Ru]=null,a[Sb]=t):a=sl(),r===void 0?a:$P.f(a,r)},IP=ge,xb=!IP(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),PP=tt,MP=ze,RP=Ot,LP=Xl,VP=xb,qv=LP("IE_PROTO"),Vu=Object,FP=Vu.prototype,Ys=VP?Vu.getPrototypeOf:function(e){var t=RP(e);if(PP(t,qv))return t[qv];var r=t.constructor;return MP(r)&&t instanceof r?r.prototype:t instanceof Vu?FP:null},YP=un,Pa=function(e,t,r,a){return a&&a.enumerable?e[t]=r:YP(e,t,r),e},jP=ge,BP=ze,HP=dt,WP=bi,Xv=Ys,GP=Pa,zP=je,Fu=zP("iterator"),Tb=!1,Zr,_c,bc;[].keys&&(bc=[].keys(),"next"in bc?(_c=Xv(Xv(bc)),_c!==Object.prototype&&(Zr=_c)):Tb=!0);var UP=!HP(Zr)||jP(function(){var e={};return Zr[Fu].call(e)!==e});UP?Zr={}:Zr=WP(Zr);BP(Zr[Fu])||GP(Zr,Fu,function(){return this});var $b={IteratorPrototype:Zr,BUGGY_SAFARI_ITERATORS:Tb},KP=Bh,qP=cn,XP=KP?{}.toString:function(){return"[object "+qP(this)+"]"},QP=Bh,ZP=Bt.f,JP=un,eM=tt,tM=XP,rM=je,Qv=rM("toStringTag"),wi=function(e,t,r,a){if(e){var n=r?e:e.prototype;eM(n,Qv)||ZP(n,Qv,{configurable:!0,value:t}),a&&!QP&&JP(n,"toString",tM)}},Ma={},nM=$b.IteratorPrototype,iM=bi,aM=yi,sM=wi,oM=Ma,lM=function(){return this},dM=function(e,t,r,a){var n=t+" Iterator";return e.prototype=iM(nM,{next:aM(+!a,r)}),sM(e,n,!1,!0),oM[n]=lM,e},cM=Ee,uM=Ht,hM=function(e,t,r){try{return cM(uM(Object.getOwnPropertyDescriptor(e,t)[r]))}catch{}},fM=ze,pM=String,vM=TypeError,mM=function(e){if(typeof e=="object"||fM(e))return e;throw new vM("Can't set "+pM(e)+" as a prototype")},gM=hM,yM=ir,_M=mM,Db=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=gM(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch{}return function(n,s){return yM(n),_M(s),e?r(n,s):n.__proto__=s,n}}():void 0),bM=X,wM=ct,EM=rP,SM=dM,kM=Ys,xM=wi,Zv=Pa,TM=je,Jv=Ma,$M=$b,DM=EM.PROPER,Lo=$M.BUGGY_SAFARI_ITERATORS,wc=TM("iterator"),em="keys",Vo="values",tm="entries",NM=function(){return this},qh=function(e,t,r,a,n,s,o){SM(r,t,a);var l=function(k){if(k===n&&m)return m;if(!Lo&&k&&k in f)return f[k];switch(k){case em:return function(){return new r(this,k)};case Vo:return function(){return new r(this,k)};case tm:return function(){return new r(this,k)}}return function(){return new r(this)}},d=t+" Iterator",c=!1,f=e.prototype,v=f[wc]||f["@@iterator"]||n&&f[n],m=!Lo&&v||l(n),g=t==="Array"&&f.entries||v,b,S,w;if(g&&(b=kM(g.call(new e)),b!==Object.prototype&&b.next&&(xM(b,d,!0,!0),Jv[d]=NM)),DM&&n===Vo&&v&&v.name!==Vo&&(c=!0,m=function(){return wM(v,this)}),n)if(S={values:l(Vo),keys:s?m:l(em),entries:l(tm)},o)for(w in S)(Lo||c||!(w in f))&&Zv(f,w,S[w]);else bM({target:t,proto:!0,forced:Lo||c},S);return o&&f[wc]!==m&&Zv(f,wc,m,{}),Jv[t]=m,S},Xh=function(e,t){return{value:e,done:t}},CM=fA.charAt,OM=fr,Nb=Aa,AM=qh,rm=Xh,Cb="String Iterator",IM=Nb.set,PM=Nb.getterFor(Cb);AM(String,"String",function(e){IM(this,{type:Cb,string:OM(e),index:0})},function(){var t=PM(this),r=t.string,a=t.index,n;return a>=r.length?rm(void 0,!0):(n=CM(r,a),t.index+=n.length,rm(n,!1))});var MM=ct,nm=ir,RM=Gh,Ob=function(e,t,r){var a,n;nm(e);try{if(a=RM(e,"return"),!a){if(t==="throw")throw r;return r}a=MM(a,e)}catch(s){n=!0,a=s}if(t==="throw")throw r;if(n)throw a;return nm(a),r},LM=ir,VM=Ob,FM=function(e,t,r,a){try{return a?t(LM(r)[0],r[1]):t(r)}catch(n){VM(e,"throw",n)}},YM=je,jM=Ma,BM=YM("iterator"),HM=Array.prototype,Ab=function(e){return e!==void 0&&(jM.Array===e||HM[BM]===e)},WM=Ee,GM=ze,Yu=jh,zM=WM(Function.toString);GM(Yu.inspectSource)||(Yu.inspectSource=function(e){return zM(e)});var Ib=Yu.inspectSource,UM=Ee,KM=ge,Pb=ze,qM=cn,XM=At,QM=Ib,Mb=function(){},ZM=[],Rb=XM("Reflect","construct"),Qh=/^\s*(?:class|function)\b/,JM=UM(Qh.exec),e2=!Qh.test(Mb),Za=function(t){if(!Pb(t))return!1;try{return Rb(Mb,ZM,t),!0}catch{return!1}},Lb=function(t){if(!Pb(t))return!1;switch(qM(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return e2||!!JM(Qh,QM(t))}catch{return!0}};Lb.sham=!0;var Jl=!Rb||KM(function(){var e;return Za(Za.call)||!Za(Object)||!Za(function(){e=!0})||e})?Lb:Za,t2=ql,r2=Bt,n2=yi,Ra=function(e,t,r){var a=t2(t);a in e?r2.f(e,a,n2(0,r)):e[a]=r},i2=cn,im=Gh,a2=$a,s2=Ma,o2=je,l2=o2("iterator"),ed=function(e){if(!a2(e))return im(e,l2)||im(e,"@@iterator")||s2[i2(e)]},d2=ct,c2=Ht,u2=ir,h2=Oa,f2=ed,p2=TypeError,Zh=function(e,t){var r=arguments.length<2?f2(e):t;if(c2(r))return u2(d2(r,e));throw new p2(h2(e)+" is not iterable")},v2=Mn,m2=ct,g2=Ot,y2=FM,_2=Ab,b2=Jl,w2=Wt,am=Ra,E2=Zh,S2=ed,sm=Array,k2=function(t){var r=g2(t),a=b2(this),n=arguments.length,s=n>1?arguments[1]:void 0,o=s!==void 0;o&&(s=v2(s,n>2?arguments[2]:void 0));var l=S2(r),d=0,c,f,v,m,g,b;if(l&&!(this===sm&&_2(l)))for(m=E2(r,l),g=m.next,f=a?new this:[];!(v=m2(g,m)).done;d++)b=o?y2(m,s,[v.value,d],!0):v.value,am(f,d,b);else for(c=w2(r),f=a?new this(c):sm(c);c>d;d++)b=o?s(r[d],d):r[d],am(f,d,b);return f.length=d,f},x2=je,Vb=x2("iterator"),Fb=!1;try{var T2=0,om={next:function(){return{done:!!T2++}},return:function(){Fb=!0}};om[Vb]=function(){return this},Array.from(om,function(){throw 2})}catch{}var Yb=function(e,t){try{if(!t&&!Fb)return!1}catch{return!1}var r=!1;try{var a={};a[Vb]=function(){return{next:function(){return{done:r=!0}}}},e(a)}catch{}return r},$2=X,D2=k2,N2=Yb,C2=!N2(function(e){Array.from(e)});$2({target:"Array",stat:!0,forced:C2},{from:D2});var O2=xe,A2=O2.Array.from,I2=A2,jb=I2,P2=jb,Rn=K(P2),M2=Dr,lm=Ma,Bb=Aa;Bt.f;var R2=qh,Fo=Xh,Hb="Array Iterator",L2=Bb.set,V2=Bb.getterFor(Hb);R2(Array,"Array",function(e,t){L2(this,{type:Hb,target:M2(e),index:0,kind:t})},function(){var e=V2(this),t=e.target,r=e.kind,a=e.index++;if(!t||a>=t.length)return e.target=void 0,Fo(void 0,!0);switch(r){case"keys":return Fo(a,!1);case"values":return Fo(t[a],!1)}return Fo([a,t[a]],!1)},"values");lm.Arguments=lm.Array;var F2=ed,Y2=F2,j2={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},B2=j2,H2=Ye,W2=cn,G2=un,dm=Ma,z2=je,cm=z2("toStringTag");for(var Ec in B2){var um=H2[Ec],Sc=um&&um.prototype;Sc&&W2(Sc)!==cm&&G2(Sc,cm,Ec),dm[Ec]=dm.Array}var U2=Y2,K2=U2,q2=K2,X2=q2,Q2=X2,Z2=Q2,Wb=Z2,Gb=K(Wb),J2=Wb,Ln=K(J2);function fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var zb={exports:{}},eR=X,tR=ot,hm=Bt.f;eR({target:"Object",stat:!0,forced:Object.defineProperty!==hm,sham:!tR},{defineProperty:hm});var rR=xe,Ub=rR.Object,nR=zb.exports=function(t,r,a){return Ub.defineProperty(t,r,a)};Ub.defineProperty.sham&&(nR.sham=!0);var iR=zb.exports,aR=iR,Kb=aR,sR=Kb,oR=sR,lR=oR,dR=lR,qb=dR,td=K(qb),cR=dn,Vn=Array.isArray||function(t){return cR(t)==="Array"},uR=TypeError,hR=9007199254740991,rd=function(e){if(e>hR)throw uR("Maximum allowed index exceeded");return e},fm=Vn,fR=Jl,pR=dt,vR=je,mR=vR("species"),pm=Array,gR=function(e){var t;return fm(e)&&(t=e.constructor,fR(t)&&(t===pm||fm(t.prototype))?t=void 0:pR(t)&&(t=t[mR],t===null&&(t=void 0))),t===void 0?pm:t},yR=gR,nd=function(e,t){return new(yR(e))(t===0?0:t)},_R=ge,bR=je,wR=Na,ER=bR("species"),js=function(e){return wR>=51||!_R(function(){var t=[],r=t.constructor={};return r[ER]=function(){return{foo:1}},t[e](Boolean).foo!==1})},SR=X,kR=ge,xR=Vn,TR=dt,$R=Ot,DR=Wt,vm=rd,mm=Ra,NR=nd,CR=js,OR=je,AR=Na,Xb=OR("isConcatSpreadable"),IR=AR>=51||!kR(function(){var e=[];return e[Xb]=!1,e.concat()[0]!==e}),PR=function(e){if(!TR(e))return!1;var t=e[Xb];return t!==void 0?!!t:xR(e)},MR=!IR||!CR("concat");SR({target:"Array",proto:!0,forced:MR},{concat:function(t){var r=$R(this),a=NR(r,0),n=0,s,o,l,d,c;for(s=-1,l=arguments.length;s<l;s++)if(c=s===-1?r:arguments[s],PR(c))for(d=DR(c),vm(n+d),o=0;o<d;o++,n++)o in c&&mm(a,n,c[o]);else vm(n+1),mm(a,n++,c);return a.length=n,a}});var Bs={},RR=wb,LR=Kh,VR=LR.concat("length","prototype");Bs.f=Object.getOwnPropertyNames||function(t){return RR(t,VR)};var Jh={},gm=Vs,FR=Wt,YR=Ra,jR=Array,BR=Math.max,Qb=function(e,t,r){for(var a=FR(e),n=gm(t,a),s=gm(r===void 0?a:r,a),o=jR(BR(s-n,0)),l=0;n<s;n++,l++)YR(o,l,e[n]);return o.length=l,o},HR=dn,WR=Dr,Zb=Bs.f,GR=Qb,Jb=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],zR=function(e){try{return Zb(e)}catch{return GR(Jb)}};Jh.f=function(t){return Jb&&HR(t)==="Window"?zR(t):Zb(WR(t))};var Hs={};Hs.f=Object.getOwnPropertySymbols;var UR=Bt,ef=function(e,t,r){return UR.f(e,t,r)},Ws={},KR=je;Ws.f=KR;var ym=xe,qR=tt,XR=Ws,QR=Bt.f,Ue=function(e){var t=ym.Symbol||(ym.Symbol={});qR(t,e)||QR(t,e,{value:XR.f(e)})},ZR=ct,JR=At,eL=je,tL=Pa,e0=function(){var e=JR("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,a=eL("toPrimitive");t&&!t[a]&&tL(t,a,function(n){return ZR(r,this)},{})},rL=Mn,nL=Ee,iL=Ql,aL=Ot,sL=Wt,oL=nd,_m=nL([].push),Gn=function(e){var t=e===1,r=e===2,a=e===3,n=e===4,s=e===6,o=e===7,l=e===5||s;return function(d,c,f,v){for(var m=aL(d),g=iL(m),b=rL(c,f),S=sL(g),w=0,k=v||oL,T=t?k(d,S):r||o?k(d,0):void 0,D,N;S>w;w++)if((l||w in g)&&(D=g[w],N=b(D,w,m),e))if(t)T[w]=N;else if(N)switch(e){case 3:return!0;case 5:return D;case 6:return w;case 2:_m(T,D)}else switch(e){case 4:return!1;case 7:_m(T,D)}return s?-1:a||n?n:T}},hn={forEach:Gn(0),map:Gn(1),filter:Gn(2),some:Gn(3),every:Gn(4),find:Gn(5),findIndex:Gn(6)},id=X,ad=Ye,tf=ct,lL=Ee,fa=ot,pa=Ca,dL=ge,lt=tt,cL=Oe,ju=ir,sd=Dr,rf=ql,uL=fr,Bu=yi,gs=bi,t0=Fs,hL=Bs,r0=Jh,fL=Hs,n0=_i,i0=Bt,pL=Zl,a0=Rs,bm=Pa,vL=ef,nf=Ta,mL=Xl,s0=Ms,wm=Kl,gL=je,yL=Ws,_L=Ue,bL=e0,wL=wi,o0=Aa,od=hn.forEach,Vt=mL("hidden"),ld="Symbol",ys="prototype",EL=o0.set,Em=o0.getterFor(ld),Sr=Object[ys],ei=ad.Symbol,ns=ei&&ei[ys],SL=ad.RangeError,kL=ad.TypeError,kc=ad.QObject,l0=n0.f,ti=i0.f,d0=r0.f,xL=a0.f,c0=lL([].push),nn=nf("symbols"),Gs=nf("op-symbols"),TL=nf("wks"),Hu=!kc||!kc[ys]||!kc[ys].findChild,u0=function(e,t,r){var a=l0(Sr,t);a&&delete Sr[t],ti(e,t,r),a&&e!==Sr&&ti(Sr,t,a)},Wu=fa&&dL(function(){return gs(ti({},"a",{get:function(){return ti(this,"a",{value:7}).a}})).a!==7})?u0:ti,xc=function(e,t){var r=nn[e]=gs(ns);return EL(r,{type:ld,tag:e,description:t}),fa||(r.description=t),r},dd=function(t,r,a){t===Sr&&dd(Gs,r,a),ju(t);var n=rf(r);return ju(a),lt(nn,n)?(a.enumerable?(lt(t,Vt)&&t[Vt][n]&&(t[Vt][n]=!1),a=gs(a,{enumerable:Bu(0,!1)})):(lt(t,Vt)||ti(t,Vt,Bu(1,{})),t[Vt][n]=!0),Wu(t,n,a)):ti(t,n,a)},af=function(t,r){ju(t);var a=sd(r),n=t0(a).concat(v0(a));return od(n,function(s){(!fa||tf(h0,a,s))&&dd(t,s,a[s])}),t},$L=function(t,r){return r===void 0?gs(t):af(gs(t),r)},h0=function(t){var r=rf(t),a=tf(xL,this,r);return this===Sr&&lt(nn,r)&&!lt(Gs,r)?!1:a||!lt(this,r)||!lt(nn,r)||lt(this,Vt)&&this[Vt][r]?a:!0},f0=function(t,r){var a=sd(t),n=rf(r);if(!(a===Sr&&lt(nn,n)&&!lt(Gs,n))){var s=l0(a,n);return s&&lt(nn,n)&&!(lt(a,Vt)&&a[Vt][n])&&(s.enumerable=!0),s}},p0=function(t){var r=d0(sd(t)),a=[];return od(r,function(n){!lt(nn,n)&&!lt(s0,n)&&c0(a,n)}),a},v0=function(e){var t=e===Sr,r=d0(t?Gs:sd(e)),a=[];return od(r,function(n){lt(nn,n)&&(!t||lt(Sr,n))&&c0(a,nn[n])}),a};pa||(ei=function(){if(cL(ns,this))throw new kL("Symbol is not a constructor");var t=!arguments.length||arguments[0]===void 0?void 0:uL(arguments[0]),r=wm(t),a=function(n){this===Sr&&tf(a,Gs,n),lt(this,Vt)&&lt(this[Vt],r)&&(this[Vt][r]=!1);var s=Bu(1,n);try{Wu(this,r,s)}catch(o){if(!(o instanceof SL))throw o;u0(this,r,s)}};return fa&&Hu&&Wu(Sr,r,{configurable:!0,set:a}),xc(r,t)},ns=ei[ys],bm(ns,"toString",function(){return Em(this).tag}),bm(ei,"withoutSetter",function(e){return xc(wm(e),e)}),a0.f=h0,i0.f=dd,pL.f=af,n0.f=f0,hL.f=r0.f=p0,fL.f=v0,yL.f=function(e){return xc(gL(e),e)},fa&&vL(ns,"description",{configurable:!0,get:function(){return Em(this).description}}));id({global:!0,wrap:!0,forced:!pa,sham:!pa},{Symbol:ei});od(t0(TL),function(e){_L(e)});id({target:ld,stat:!0,forced:!pa},{useSetter:function(){Hu=!0},useSimple:function(){Hu=!1}});id({target:"Object",stat:!0,forced:!pa,sham:!fa},{create:$L,defineProperty:dd,defineProperties:af,getOwnPropertyDescriptor:f0});id({target:"Object",stat:!0,forced:!pa},{getOwnPropertyNames:p0});bL();wL(ei,ld);s0[Vt]=!0;var DL=Ca,m0=DL&&!!Symbol.for&&!!Symbol.keyFor,NL=X,CL=At,OL=tt,AL=fr,g0=Ta,IL=m0,Tc=g0("string-to-symbol-registry"),PL=g0("symbol-to-string-registry");NL({target:"Symbol",stat:!0,forced:!IL},{for:function(e){var t=AL(e);if(OL(Tc,t))return Tc[t];var r=CL("Symbol")(t);return Tc[t]=r,PL[r]=t,r}});var ML=X,RL=tt,LL=Ps,VL=Oa,FL=Ta,YL=m0,Sm=FL("symbol-to-string-registry");ML({target:"Symbol",stat:!0,forced:!YL},{keyFor:function(t){if(!LL(t))throw new TypeError(VL(t)+" is not a symbol");if(RL(Sm,t))return Sm[t]}});var jL=Ee,zs=jL([].slice),BL=Ee,km=Vn,HL=ze,xm=dn,WL=fr,Tm=BL([].push),GL=function(e){if(HL(e))return e;if(km(e)){for(var t=e.length,r=[],a=0;a<t;a++){var n=e[a];typeof n=="string"?Tm(r,n):(typeof n=="number"||xm(n)==="Number"||xm(n)==="String")&&Tm(r,WL(n))}var s=r.length,o=!0;return function(l,d){if(o)return o=!1,d;if(km(this))return d;for(var c=0;c<s;c++)if(r[c]===l)return d}}},zL=X,y0=At,_0=Ia,UL=ct,Us=Ee,b0=ge,$m=ze,Dm=Ps,w0=zs,KL=GL,qL=Ca,XL=String,Sn=y0("JSON","stringify"),Yo=Us(/./.exec),Nm=Us("".charAt),QL=Us("".charCodeAt),ZL=Us("".replace),JL=Us(1 .toString),eV=/[\uD800-\uDFFF]/g,Cm=/^[\uD800-\uDBFF]$/,Om=/^[\uDC00-\uDFFF]$/,Am=!qL||b0(function(){var e=y0("Symbol")("stringify detection");return Sn([e])!=="[null]"||Sn({a:e})!=="{}"||Sn(Object(e))!=="{}"}),Im=b0(function(){return Sn("\uDF06\uD834")!=='"\\udf06\\ud834"'||Sn("\uDEAD")!=='"\\udead"'}),tV=function(e,t){var r=w0(arguments),a=KL(t);if(!(!$m(a)&&(e===void 0||Dm(e))))return r[1]=function(n,s){if($m(a)&&(s=UL(a,this,XL(n),s)),!Dm(s))return s},_0(Sn,null,r)},rV=function(e,t,r){var a=Nm(r,t-1),n=Nm(r,t+1);return Yo(Cm,e)&&!Yo(Om,n)||Yo(Om,e)&&!Yo(Cm,a)?"\\u"+JL(QL(e,0),16):e};Sn&&zL({target:"JSON",stat:!0,forced:Am||Im},{stringify:function(t,r,a){var n=w0(arguments),s=_0(Am?tV:Sn,null,n);return Im&&typeof s=="string"?ZL(s,eV,rV):s}});var nV=X,iV=Ca,aV=ge,E0=Hs,sV=Ot,oV=!iV||aV(function(){E0.f(1)});nV({target:"Object",stat:!0,forced:oV},{getOwnPropertySymbols:function(t){var r=E0.f;return r?r(sV(t)):[]}});var lV=Ue;lV("asyncIterator");var dV=Ue;dV("hasInstance");var cV=Ue;cV("isConcatSpreadable");var uV=Ue;uV("iterator");var hV=Ue;hV("match");var fV=Ue;fV("matchAll");var pV=Ue;pV("replace");var vV=Ue;vV("search");var mV=Ue;mV("species");var gV=Ue;gV("split");var yV=Ue,_V=e0;yV("toPrimitive");_V();var bV=At,wV=Ue,EV=wi;wV("toStringTag");EV(bV("Symbol"),"Symbol");var SV=Ue;SV("unscopables");var kV=Ye,xV=wi;xV(kV.JSON,"JSON",!0);var TV=xe,$V=TV.Symbol,DV=$V,S0=DV,NV=je,CV=Bt.f,Pm=NV("metadata"),Mm=Function.prototype;Mm[Pm]===void 0&&CV(Mm,Pm,{value:null});var OV=Ue;OV("asyncDispose");var AV=Ue;AV("dispose");var IV=Ue;IV("metadata");var PV=S0,MV=PV,RV=At,LV=Ee,sf=RV("Symbol"),VV=sf.keyFor,FV=LV(sf.prototype.valueOf),k0=sf.isRegisteredSymbol||function(t){try{return VV(FV(t))!==void 0}catch{return!1}},YV=X,jV=k0;YV({target:"Symbol",stat:!0},{isRegisteredSymbol:jV});var BV=Ta,x0=At,HV=Ee,WV=Ps,GV=je,_l=x0("Symbol"),Rm=_l.isWellKnownSymbol,T0=x0("Object","getOwnPropertyNames"),zV=HV(_l.prototype.valueOf),Lm=BV("wks");for(var $c=0,Vm=T0(_l),UV=Vm.length;$c<UV;$c++)try{var Fm=Vm[$c];WV(_l[Fm])&&GV(Fm)}catch{}var $0=function(t){if(Rm&&Rm(t))return!0;try{for(var r=zV(t),a=0,n=T0(Lm),s=n.length;a<s;a++)if(Lm[n[a]]==r)return!0}catch{}return!1},KV=X,qV=$0;KV({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:qV});var XV=Ue;XV("matcher");var QV=Ue;QV("observable");var ZV=X,JV=k0;ZV({target:"Symbol",stat:!0},{isRegistered:JV});var eF=X,tF=$0;eF({target:"Symbol",stat:!0,forced:!0},{isWellKnown:tF});var rF=Ue;rF("metadataKey");var nF=Ue;nF("patternMatch");var iF=Ue;iF("replaceAll");var aF=MV,sF=aF,of=sF,Ji=K(of),oF=Ws,lF=oF.f("iterator"),dF=lF,D0=dF,cF=D0,uF=cF,hF=uF,fF=hF,N0=fF,pF=K(N0);function ne(e){"@babel/helpers - typeof";return ne=typeof Ji=="function"&&typeof pF=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Ji=="function"&&t.constructor===Ji&&t!==Ji.prototype?"symbol":typeof t},ne(e)}var vF=Ws,mF=vF.f("toPrimitive"),gF=mF,yF=gF,_F=yF,bF=_F,wF=bF,EF=wF,SF=EF,kF=K(SF);function xF(e,t){if(ne(e)!=="object"||e===null)return e;var r=e[kF];if(r!==void 0){var a=r.call(e,t);if(ne(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function C0(e){var t=xF(e,"string");return ne(t)==="symbol"?t:String(t)}function Ym(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),td(e,C0(a.key),a)}}function pe(e,t,r){return t&&Ym(e.prototype,t),r&&Ym(e,r),td(e,"prototype",{writable:!1}),e}var TF=X,$F=Vn;TF({target:"Array",stat:!0},{isArray:$F});var DF=xe,NF=DF.Array.isArray,CF=NF,O0=CF,OF=O0,AF=OF,IF=AF,PF=IF,MF=PF,A0=K(MF);function RF(e){if(A0(e))return e}var LF=ot,VF=Vn,FF=TypeError,YF=Object.getOwnPropertyDescriptor,jF=LF&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),I0=jF?function(e,t){if(VF(e)&&!YF(e,"length").writable)throw new FF("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},BF=X,HF=Ot,WF=Wt,GF=I0,zF=rd,UF=ge,KF=UF(function(){return[].push.call({length:4294967296},1)!==4294967297}),qF=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},XF=KF||!qF();BF({target:"Array",proto:!0,forced:XF},{push:function(t){var r=HF(this),a=WF(r),n=arguments.length;zF(a+n);for(var s=0;s<n;s++)r[a]=arguments[s],a++;return GF(r,a),a}});var QF=xe,We=function(e){return QF[e+"Prototype"]},ZF=We,JF=ZF("Array").push,e5=Oe,t5=JF,Dc=Array.prototype,r5=function(e){var t=e.push;return e===Dc||e5(Dc,e)&&t===Dc.push?t5:t},n5=r5,i5=n5,a5=i5,s5=a5,o5=s5,l5=o5,P0=l5,d5=K(P0);function c5(e,t){var r=e==null?null:typeof Ji<"u"&&Gb(e)||e["@@iterator"];if(r!=null){var a,n,s,o,l=[],d=!0,c=!1;try{if(s=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;d=!1}else for(;!(d=(a=s.call(r)).done)&&(d5(l).call(l,a.value),l.length!==t);d=!0);}catch(f){c=!0,n=f}finally{try{if(!d&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return l}}var u5=X,jm=Vn,h5=Jl,f5=dt,Bm=Vs,p5=Wt,v5=Dr,m5=Ra,g5=je,y5=js,_5=zs,b5=y5("slice"),w5=g5("species"),Nc=Array,E5=Math.max;u5({target:"Array",proto:!0,forced:!b5},{slice:function(t,r){var a=v5(this),n=p5(a),s=Bm(t,n),o=Bm(r===void 0?n:r,n),l,d,c;if(jm(a)&&(l=a.constructor,h5(l)&&(l===Nc||jm(l.prototype))?l=void 0:f5(l)&&(l=l[w5],l===null&&(l=void 0)),l===Nc||l===void 0))return _5(a,s,o);for(d=new(l===void 0?Nc:l)(E5(o-s,0)),c=0;s<o;s++,c++)s in a&&m5(d,c,a[s]);return d.length=c,d}});var S5=We,k5=S5("Array").slice,x5=Oe,T5=k5,Cc=Array.prototype,$5=function(e){var t=e.slice;return e===Cc||x5(Cc,e)&&t===Cc.slice?T5:t},D5=$5,M0=D5,N5=M0,C5=N5,O5=C5,A5=O5,R0=A5,I5=K(R0),P5=jb,M5=P5,R5=M5,L5=R5,V5=L5,L0=K(V5);function Gu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function V0(e,t){var r;if(e){if(typeof e=="string")return Gu(e,t);var a=I5(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return L0(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Gu(e,t)}}function F5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
43
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yt(e,t){return RF(e)||c5(e,t)||V0(e,t)||F5()}function Y5(e){if(A0(e))return Gu(e)}function j5(e){if(typeof Ji<"u"&&Gb(e)!=null||e["@@iterator"]!=null)return L0(e)}function B5(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
44
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fe(e){return Y5(e)||j5(e)||V0(e)||B5()}var H5=S0,fn=K(H5),W5=We,G5=W5("Array").concat,z5=Oe,U5=G5,Oc=Array.prototype,K5=function(e){var t=e.concat;return e===Oc||z5(Oc,e)&&t===Oc.concat?U5:t},q5=K5,X5=q5,Q5=X5,Me=K(Q5),Z5=M0,bt=K(Z5),J5=At,eY=Ee,tY=Bs,rY=Hs,nY=ir,iY=eY([].concat),lf=J5("Reflect","ownKeys")||function(t){var r=tY.f(nY(t)),a=rY.f;return a?iY(r,a(t)):r},aY=X,sY=lf;aY({target:"Reflect",stat:!0},{ownKeys:sY});var oY=xe,lY=oY.Reflect.ownKeys,dY=lY,cY=dY,uY=cY,F0=K(uY),hY=O0,ae=K(hY),fY=X,pY=hn.map,vY=js,mY=vY("map");fY({target:"Array",proto:!0,forced:!mY},{map:function(t){return pY(this,t,arguments.length>1?arguments[1]:void 0)}});var gY=We,yY=gY("Array").map,_Y=Oe,bY=yY,Ac=Array.prototype,wY=function(e){var t=e.map;return e===Ac||_Y(Ac,e)&&t===Ac.map?bY:t},EY=wY,SY=EY,kY=SY,Se=K(kY),xY=X,TY=Ot,Y0=Fs,$Y=ge,DY=$Y(function(){Y0(1)});xY({target:"Object",stat:!0,forced:DY},{keys:function(t){return Y0(TY(t))}});var NY=xe,CY=NY.Object.keys,OY=CY,AY=OY,IY=AY,st=K(IY),PY=X,MY=Ee,j0=Date,RY=MY(j0.prototype.getTime);PY({target:"Date",stat:!0},{now:function(){return RY(new j0)}});var LY=xe,VY=LY.Date.now,FY=VY,YY=FY,jY=YY,qt=K(jY),B0=Ee,BY=Ht,HY=dt,WY=tt,Hm=zs,GY=As,H0=Function,zY=B0([].concat),UY=B0([].join),Ic={},KY=function(e,t,r){if(!WY(Ic,t)){for(var a=[],n=0;n<t;n++)a[n]="a["+n+"]";Ic[t]=H0("C,a","return new C("+UY(a,",")+")")}return Ic[t](e,r)},W0=GY?H0.bind:function(t){var r=BY(this),a=r.prototype,n=Hm(arguments,1),s=function(){var l=zY(n,Hm(arguments));return this instanceof s?KY(r,l.length,l):r.apply(t,l)};return HY(a)&&(s.prototype=a),s},qY=X,Wm=W0;qY({target:"Function",proto:!0,forced:Function.bind!==Wm},{bind:Wm});var XY=We,QY=XY("Function").bind,ZY=Oe,JY=QY,Pc=Function.prototype,e3=function(e){var t=e.bind;return e===Pc||ZY(Pc,e)&&t===Pc.bind?JY:t},t3=e3,G0=t3,r3=G0,P=K(r3),n3=ge,La=function(e,t){var r=[][e];return!!r&&n3(function(){r.call(null,t||function(){return 1},1)})},i3=hn.forEach,a3=La,s3=a3("forEach"),o3=s3?[].forEach:function(t){return i3(this,t,arguments.length>1?arguments[1]:void 0)},l3=X,Gm=o3;l3({target:"Array",proto:!0,forced:[].forEach!==Gm},{forEach:Gm});var d3=We,c3=d3("Array").forEach,u3=c3,h3=u3,f3=cn,p3=tt,v3=Oe,m3=h3,Mc=Array.prototype,g3={DOMTokenList:!0,NodeList:!0},z0=function(e){var t=e.forEach;return e===Mc||v3(Mc,e)&&t===Mc.forEach||p3(g3,f3(e))?m3:t},y3=z0,G=K(y3),_3=X,b3=Ee,w3=Vn,E3=b3([].reverse),zm=[1,2];_3({target:"Array",proto:!0,forced:String(zm)===String(zm.reverse())},{reverse:function(){return w3(this)&&(this.length=this.length),E3(this)}});var S3=We,k3=S3("Array").reverse,x3=Oe,T3=k3,Rc=Array.prototype,$3=function(e){var t=e.reverse;return e===Rc||x3(Rc,e)&&t===Rc.reverse?T3:t},D3=$3,U0=D3,N3=U0,C3=K(N3),Um=Oa,O3=TypeError,K0=function(e,t){if(!delete e[t])throw new O3("Cannot delete property "+Um(t)+" of "+Um(e))},A3=X,I3=Ot,P3=Vs,M3=Is,R3=Wt,L3=I0,V3=rd,F3=nd,Y3=Ra,Lc=K0,j3=js,B3=j3("splice"),H3=Math.max,W3=Math.min;A3({target:"Array",proto:!0,forced:!B3},{splice:function(t,r){var a=I3(this),n=R3(a),s=P3(t,n),o=arguments.length,l,d,c,f,v,m;for(o===0?l=d=0:o===1?(l=0,d=n-s):(l=o-2,d=W3(H3(M3(r),0),n-s)),V3(n+l-d),c=F3(a,d),f=0;f<d;f++)v=s+f,v in a&&Y3(c,f,a[v]);if(c.length=d,l<d){for(f=s;f<n-d;f++)v=f+d,m=f+l,v in a?a[m]=a[v]:Lc(a,m);for(f=n;f>n-d+l;f--)Lc(a,f-1)}else if(l>d)for(f=n-d;f>s;f--)v=f+d-1,m=f+l-1,v in a?a[m]=a[v]:Lc(a,m);for(f=0;f<l;f++)a[f+s]=arguments[f+2];return L3(a,n-d+l),c}});var G3=We,z3=G3("Array").splice,U3=Oe,K3=z3,Vc=Array.prototype,q3=function(e){var t=e.splice;return e===Vc||U3(Vc,e)&&t===Vc.splice?K3:t},X3=q3,Q3=X3,Z3=Q3,xt=K(Z3),Km=ot,J3=Ee,e4=ct,t4=ge,Fc=Fs,r4=Hs,n4=Rs,i4=Ot,a4=Ql,Yi=Object.assign,qm=Object.defineProperty,s4=J3([].concat),o4=!Yi||t4(function(){if(Km&&Yi({b:1},Yi(qm({},"a",{enumerable:!0,get:function(){qm(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol("assign detection"),a="abcdefghijklmnopqrst";return e[r]=7,a.split("").forEach(function(n){t[n]=n}),Yi({},e)[r]!==7||Fc(Yi({},t)).join("")!==a})?function(t,r){for(var a=i4(t),n=arguments.length,s=1,o=r4.f,l=n4.f;n>s;)for(var d=a4(arguments[s++]),c=o?s4(Fc(d),o(d)):Fc(d),f=c.length,v=0,m;f>v;)m=c[v++],(!Km||e4(l,d,m))&&(a[m]=d[m]);return a}:Yi,l4=X,Xm=o4;l4({target:"Object",stat:!0,forced:Object.assign!==Xm},{assign:Xm});var d4=xe,c4=d4.Object.assign,u4=c4,h4=u4,f4=h4,an=K(f4),p4=X,v4=Uh.includes,m4=ge,g4=m4(function(){return!Array(1).includes()});p4({target:"Array",proto:!0,forced:g4},{includes:function(t){return v4(this,t,arguments.length>1?arguments[1]:void 0)}});var y4=We,_4=y4("Array").includes,b4=dt,w4=dn,E4=je,S4=E4("match"),k4=function(e){var t;return b4(e)&&((t=e[S4])!==void 0?!!t:w4(e)==="RegExp")},x4=k4,T4=TypeError,$4=function(e){if(x4(e))throw new T4("The method doesn't accept regular expressions");return e},D4=je,N4=D4("match"),C4=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[N4]=!1,"/./"[e](t)}catch{}}return!1},O4=X,A4=Ee,I4=$4,P4=Da,Qm=fr,M4=C4,R4=A4("".indexOf);O4({target:"String",proto:!0,forced:!M4("includes")},{includes:function(t){return!!~R4(Qm(P4(this)),Qm(I4(t)),arguments.length>1?arguments[1]:void 0)}});var L4=We,V4=L4("String").includes,Zm=Oe,F4=_4,Y4=V4,Yc=Array.prototype,jc=String.prototype,j4=function(e){var t=e.includes;return e===Yc||Zm(Yc,e)&&t===Yc.includes?F4:typeof e=="string"||e===jc||Zm(jc,e)&&t===jc.includes?Y4:t},B4=j4,H4=B4,W4=H4,Nn=K(W4),G4=X,z4=ge,U4=Ot,q0=Ys,K4=xb,q4=z4(function(){q0(1)});G4({target:"Object",stat:!0,forced:q4,sham:!K4},{getPrototypeOf:function(t){return q0(U4(t))}});var X4=xe,Q4=X4.Object.getPrototypeOf,Z4=Q4,X0=Z4,J4=X0,Jm=K(J4),ej=X,tj=hn.filter,rj=js,nj=rj("filter");ej({target:"Array",proto:!0,forced:!nj},{filter:function(t){return tj(this,t,arguments.length>1?arguments[1]:void 0)}});var ij=We,aj=ij("Array").filter,sj=Oe,oj=aj,Bc=Array.prototype,lj=function(e){var t=e.filter;return e===Bc||sj(Bc,e)&&t===Bc.filter?oj:t},dj=lj,cj=dj,uj=cj,te=K(uj),Q0=ot,hj=ge,Z0=Ee,fj=Ys,pj=Fs,vj=Dr,mj=Rs.f,J0=Z0(mj),gj=Z0([].push),yj=Q0&&hj(function(){var e=Object.create(null);return e[2]=2,!J0(e,2)}),eg=function(e){return function(t){for(var r=vj(t),a=pj(r),n=yj&&fj(r)===null,s=a.length,o=0,l=[],d;s>o;)d=a[o++],(!Q0||(n?d in r:J0(r,d)))&&gj(l,e?[d,r[d]]:r[d]);return l}},ew={entries:eg(!0),values:eg(!1)},_j=X,bj=ew.values;_j({target:"Object",stat:!0},{values:function(t){return bj(t)}});var wj=xe,Ej=wj.Object.values,Sj=Ej,kj=Sj,xj=kj,df=K(xj),cf=`
45
+ \v\f\r                 \u2028\u2029\uFEFF`,Tj=Ee,$j=Da,Dj=fr,zu=cf,tg=Tj("".replace),Nj=RegExp("^["+zu+"]+"),Cj=RegExp("(^|[^"+zu+"])["+zu+"]+$"),Oj=function(e){return function(t){var r=Dj($j(t));return e&1&&(r=tg(r,Nj,"")),e&2&&(r=tg(r,Cj,"$1")),r}},tw={trim:Oj(3)},rw=Ye,Aj=ge,Ij=Ee,Pj=fr,Mj=tw.trim,rg=cf,os=rw.parseInt,ng=rw.Symbol,ig=ng&&ng.iterator,nw=/^[+-]?0x/i,Rj=Ij(nw.exec),Lj=os(rg+"08")!==8||os(rg+"0x16")!==22||ig&&!Aj(function(){os(Object(ig))}),Vj=Lj?function(t,r){var a=Mj(Pj(t));return os(a,r>>>0||(Rj(nw,a)?16:10))}:os,Fj=X,ag=Vj;Fj({global:!0,forced:parseInt!==ag},{parseInt:ag});var Yj=xe,jj=Yj.parseInt,Bj=jj,Hj=Bj,Wj=Hj,Xt=K(Wj),Gj=X,zj=zh,Uj=Uh.indexOf,Kj=La,Uu=zj([].indexOf),iw=!!Uu&&1/Uu([1],1,-0)<0,qj=iw||!Kj("indexOf");Gj({target:"Array",proto:!0,forced:qj},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return iw?Uu(this,t,r)||0:Uj(this,t,r)}});var Xj=We,Qj=Xj("Array").indexOf,Zj=Oe,Jj=Qj,Hc=Array.prototype,eB=function(e){var t=e.indexOf;return e===Hc||Zj(Hc,e)&&t===Hc.indexOf?Jj:t},tB=eB,rB=tB,nB=rB,Ce=K(nB),iB=X,aB=ew.entries;iB({target:"Object",stat:!0},{entries:function(t){return aB(t)}});var sB=xe,oB=sB.Object.entries,lB=oB,dB=lB,cB=dB,uB=K(cB),hB=X,fB=ot,pB=bi;hB({target:"Object",stat:!0,sham:!fB},{create:pB});var vB=xe,mB=vB.Object,gB=function(t,r){return mB.create(t,r)},yB=gB,aw=yB,_B=aw,Ks=K(_B),Ku=xe,bB=Ia;Ku.JSON||(Ku.JSON={stringify:JSON.stringify});var wB=function(t,r,a){return bB(Ku.JSON.stringify,null,arguments)},EB=wB,SB=EB,kB=SB,Ft=K(kB),xB=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",TB=TypeError,sw=function(e,t){if(e<t)throw new TB("Not enough arguments");return e},ow=Ye,$B=Ia,DB=ze,NB=xB,CB=Pn,OB=zs,AB=sw,IB=ow.Function,PB=/MSIE .\./.test(CB)||NB&&function(){var e=ow.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}(),lw=function(e,t){var r=t?2:1;return PB?function(a,n){var s=AB(arguments.length,1)>r,o=DB(a)?a:IB(a),l=s?OB(arguments,r):[],d=s?function(){$B(o,this,l)}:o;return t?e(d,n):e(d)}:e},MB=X,dw=Ye,RB=lw,sg=RB(dw.setInterval,!0);MB({global:!0,bind:!0,forced:dw.setInterval!==sg},{setInterval:sg});var LB=X,cw=Ye,VB=lw,og=VB(cw.setTimeout,!0);LB({global:!0,bind:!0,forced:cw.setTimeout!==og},{setTimeout:og});var FB=xe,YB=FB.setTimeout,jB=YB,_t=K(jB),BB=Ot,lg=Vs,HB=Wt,WB=function(t){for(var r=BB(this),a=HB(r),n=arguments.length,s=lg(n>1?arguments[1]:void 0,a),o=n>2?arguments[2]:void 0,l=o===void 0?a:lg(o,a);l>s;)r[s++]=t;return r},GB=X,zB=WB;GB({target:"Array",proto:!0},{fill:zB});var UB=We,KB=UB("Array").fill,qB=Oe,XB=KB,Wc=Array.prototype,QB=function(e){var t=e.fill;return e===Wc||qB(Wc,e)&&t===Wc.fill?XB:t},ZB=QB,JB=ZB,e8=JB,uw=K(e8),hw={exports:{}};(function(e){e.exports=t;function t(a){if(a)return r(a)}function r(a){for(var n in t.prototype)a[n]=t.prototype[n];return a}t.prototype.on=t.prototype.addEventListener=function(a,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+a]=this._callbacks["$"+a]||[]).push(n),this},t.prototype.once=function(a,n){function s(){this.off(a,s),n.apply(this,arguments)}return s.fn=n,this.on(a,s),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(a,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var s=this._callbacks["$"+a];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+a],this;for(var o,l=0;l<s.length;l++)if(o=s[l],o===n||o.fn===n){s.splice(l,1);break}return s.length===0&&delete this._callbacks["$"+a],this},t.prototype.emit=function(a){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),s=this._callbacks["$"+a],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(s){s=s.slice(0);for(var o=0,l=s.length;o<l;++o)s[o].apply(this,n)}return this},t.prototype.listeners=function(a){return this._callbacks=this._callbacks||{},this._callbacks["$"+a]||[]},t.prototype.hasListeners=function(a){return!!this.listeners(a).length}})(hw);var t8=hw.exports,uf=K(t8);/*! Hammer.JS - v2.0.17-rc - 2019-12-16
46
+ * http://naver.github.io/egjs
47
+ *
48
+ * Forked By Naver egjs
49
+ * Copyright (c) hammerjs
50
+ * Licensed under the MIT license */function xr(){return xr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},xr.apply(this,arguments)}function pr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function jo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var qu;typeof Object.assign!="function"?qu=function(t){if(t==null)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),a=1;a<arguments.length;a++){var n=arguments[a];if(n!=null)for(var s in n)n.hasOwnProperty(s)&&(r[s]=n[s])}return r}:qu=Object.assign;var di=qu,dg=["","webkit","Moz","MS","ms","o"],r8=typeof document>"u"?{style:{}}:document.createElement("div"),n8="function",ea=Math.round,ci=Math.abs,hf=Date.now;function cd(e,t){for(var r,a,n=t[0].toUpperCase()+t.slice(1),s=0;s<dg.length;){if(r=dg[s],a=r?r+n:t,a in e)return a;s++}}var Jr;typeof window>"u"?Jr={}:Jr=window;var fw=cd(r8.style,"touchAction"),pw=fw!==void 0;function i8(){if(!pw)return!1;var e={},t=Jr.CSS&&Jr.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(r){return e[r]=t?Jr.CSS.supports("touch-action",r):!0}),e}var vw="compute",mw="auto",Xu="manipulation",ri="none",_s="pan-x",bs="pan-y",Bo=i8(),a8=/mobile|tablet|ip(ad|hone|od)|android/i,gw="ontouchstart"in Jr,s8=cd(Jr,"PointerEvent")!==void 0,o8=gw&&a8.test(navigator.userAgent),qs="touch",l8="pen",ff="mouse",d8="kinect",c8=25,Ct=1,Ei=2,et=4,jt=8,bl=1,Xs=2,Qs=4,Zs=8,va=16,Vr=Xs|Qs,ni=Zs|va,yw=Vr|ni,_w=["x","y"],wl=["clientX","clientY"];function en(e,t,r){var a;if(e)if(e.forEach)e.forEach(t,r);else if(e.length!==void 0)for(a=0;a<e.length;)t.call(r,e[a],a,e),a++;else for(a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function ud(e,t){return typeof e===n8?e.apply(t&&t[0]||void 0,t):e}function Zn(e,t){return e.indexOf(t)>-1}function u8(e){if(Zn(e,ri))return ri;var t=Zn(e,_s),r=Zn(e,bs);return t&&r?ri:t||r?t?_s:bs:Zn(e,Xu)?Xu:mw}var bw=function(){function e(r,a){this.manager=r,this.set(a)}var t=e.prototype;return t.set=function(a){a===vw&&(a=this.compute()),pw&&this.manager.element.style&&Bo[a]&&(this.manager.element.style[fw]=a),this.actions=a.toLowerCase().trim()},t.update=function(){this.set(this.manager.options.touchAction)},t.compute=function(){var a=[];return en(this.manager.recognizers,function(n){ud(n.options.enable,[n])&&(a=a.concat(n.getTouchAction()))}),u8(a.join(" "))},t.preventDefaults=function(a){var n=a.srcEvent,s=a.offsetDirection;if(this.manager.session.prevented){n.preventDefault();return}var o=this.actions,l=Zn(o,ri)&&!Bo[ri],d=Zn(o,bs)&&!Bo[bs],c=Zn(o,_s)&&!Bo[_s];if(l){var f=a.pointers.length===1,v=a.distance<2,m=a.deltaTime<250;if(f&&v&&m)return}if(!(c&&d)&&(l||d&&s&Vr||c&&s&ni))return this.preventSrc(n)},t.preventSrc=function(a){this.manager.session.prevented=!0,a.preventDefault()},e}();function pf(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function ww(e){var t=e.length;if(t===1)return{x:ea(e[0].clientX),y:ea(e[0].clientY)};for(var r=0,a=0,n=0;n<t;)r+=e[n].clientX,a+=e[n].clientY,n++;return{x:ea(r/t),y:ea(a/t)}}function cg(e){for(var t=[],r=0;r<e.pointers.length;)t[r]={clientX:ea(e.pointers[r].clientX),clientY:ea(e.pointers[r].clientY)},r++;return{timeStamp:hf(),pointers:t,center:ww(t),deltaX:e.deltaX,deltaY:e.deltaY}}function El(e,t,r){r||(r=_w);var a=t[r[0]]-e[r[0]],n=t[r[1]]-e[r[1]];return Math.sqrt(a*a+n*n)}function Qu(e,t,r){r||(r=_w);var a=t[r[0]]-e[r[0]],n=t[r[1]]-e[r[1]];return Math.atan2(n,a)*180/Math.PI}function Ew(e,t){return e===t?bl:ci(e)>=ci(t)?e<0?Xs:Qs:t<0?Zs:va}function h8(e,t){var r=t.center,a=e.offsetDelta||{},n=e.prevDelta||{},s=e.prevInput||{};(t.eventType===Ct||s.eventType===et)&&(n=e.prevDelta={x:s.deltaX||0,y:s.deltaY||0},a=e.offsetDelta={x:r.x,y:r.y}),t.deltaX=n.x+(r.x-a.x),t.deltaY=n.y+(r.y-a.y)}function Sw(e,t,r){return{x:t/e||0,y:r/e||0}}function f8(e,t){return El(t[0],t[1],wl)/El(e[0],e[1],wl)}function p8(e,t){return Qu(t[1],t[0],wl)+Qu(e[1],e[0],wl)}function v8(e,t){var r=e.lastInterval||t,a=t.timeStamp-r.timeStamp,n,s,o,l;if(t.eventType!==jt&&(a>c8||r.velocity===void 0)){var d=t.deltaX-r.deltaX,c=t.deltaY-r.deltaY,f=Sw(a,d,c);s=f.x,o=f.y,n=ci(f.x)>ci(f.y)?f.x:f.y,l=Ew(d,c),e.lastInterval=t}else n=r.velocity,s=r.velocityX,o=r.velocityY,l=r.direction;t.velocity=n,t.velocityX=s,t.velocityY=o,t.direction=l}function m8(e,t){var r=e.session,a=t.pointers,n=a.length;r.firstInput||(r.firstInput=cg(t)),n>1&&!r.firstMultiple?r.firstMultiple=cg(t):n===1&&(r.firstMultiple=!1);var s=r.firstInput,o=r.firstMultiple,l=o?o.center:s.center,d=t.center=ww(a);t.timeStamp=hf(),t.deltaTime=t.timeStamp-s.timeStamp,t.angle=Qu(l,d),t.distance=El(l,d),h8(r,t),t.offsetDirection=Ew(t.deltaX,t.deltaY);var c=Sw(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=c.x,t.overallVelocityY=c.y,t.overallVelocity=ci(c.x)>ci(c.y)?c.x:c.y,t.scale=o?f8(o.pointers,a):1,t.rotation=o?p8(o.pointers,a):0,t.maxPointers=r.prevInput?t.pointers.length>r.prevInput.maxPointers?t.pointers.length:r.prevInput.maxPointers:t.pointers.length,v8(r,t);var f=e.element,v=t.srcEvent,m;v.composedPath?m=v.composedPath()[0]:v.path?m=v.path[0]:m=v.target,pf(m,f)&&(f=m),t.target=f}function g8(e,t,r){var a=r.pointers.length,n=r.changedPointers.length,s=t&Ct&&a-n===0,o=t&(et|jt)&&a-n===0;r.isFirst=!!s,r.isFinal=!!o,s&&(e.session={}),r.eventType=t,m8(e,r),e.emit("hammer.input",r),e.recognize(r),e.session.prevInput=r}function ws(e){return e.trim().split(/\s+/g)}function ls(e,t,r){en(ws(t),function(a){e.addEventListener(a,r,!1)})}function ds(e,t,r){en(ws(t),function(a){e.removeEventListener(a,r,!1)})}function ug(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||window}var Va=function(){function e(r,a){var n=this;this.manager=r,this.callback=a,this.element=r.element,this.target=r.options.inputTarget,this.domHandler=function(s){ud(r.options.enable,[r])&&n.handler(s)},this.init()}var t=e.prototype;return t.handler=function(){},t.init=function(){this.evEl&&ls(this.element,this.evEl,this.domHandler),this.evTarget&&ls(this.target,this.evTarget,this.domHandler),this.evWin&&ls(ug(this.element),this.evWin,this.domHandler)},t.destroy=function(){this.evEl&&ds(this.element,this.evEl,this.domHandler),this.evTarget&&ds(this.target,this.evTarget,this.domHandler),this.evWin&&ds(ug(this.element),this.evWin,this.domHandler)},e}();function ui(e,t,r){if(e.indexOf&&!r)return e.indexOf(t);for(var a=0;a<e.length;){if(r&&e[a][r]==t||!r&&e[a]===t)return a;a++}return-1}var y8={pointerdown:Ct,pointermove:Ei,pointerup:et,pointercancel:jt,pointerout:jt},_8={2:qs,3:l8,4:ff,5:d8},kw="pointerdown",xw="pointermove pointerup pointercancel";Jr.MSPointerEvent&&!Jr.PointerEvent&&(kw="MSPointerDown",xw="MSPointerMove MSPointerUp MSPointerCancel");var Tw=function(e){pr(t,e);function t(){var a,n=t.prototype;return n.evEl=kw,n.evWin=xw,a=e.apply(this,arguments)||this,a.store=a.manager.session.pointerEvents=[],a}var r=t.prototype;return r.handler=function(n){var s=this.store,o=!1,l=n.type.toLowerCase().replace("ms",""),d=y8[l],c=_8[n.pointerType]||n.pointerType,f=c===qs,v=ui(s,n.pointerId,"pointerId");d&Ct&&(n.button===0||f)?v<0&&(s.push(n),v=s.length-1):d&(et|jt)&&(o=!0),!(v<0)&&(s[v]=n,this.callback(this.manager,d,{pointers:s,changedPointers:[n],pointerType:c,srcEvent:n}),o&&s.splice(v,1))},t}(Va);function Es(e){return Array.prototype.slice.call(e,0)}function vf(e,t,r){for(var a=[],n=[],s=0;s<e.length;){var o=t?e[s][t]:e[s];ui(n,o)<0&&a.push(e[s]),n[s]=o,s++}return r&&(t?a=a.sort(function(l,d){return l[t]>d[t]}):a=a.sort()),a}var b8={touchstart:Ct,touchmove:Ei,touchend:et,touchcancel:jt},w8="touchstart touchmove touchend touchcancel",mf=function(e){pr(t,e);function t(){var a;return t.prototype.evTarget=w8,a=e.apply(this,arguments)||this,a.targetIds={},a}var r=t.prototype;return r.handler=function(n){var s=b8[n.type],o=E8.call(this,n,s);o&&this.callback(this.manager,s,{pointers:o[0],changedPointers:o[1],pointerType:qs,srcEvent:n})},t}(Va);function E8(e,t){var r=Es(e.touches),a=this.targetIds;if(t&(Ct|Ei)&&r.length===1)return a[r[0].identifier]=!0,[r,r];var n,s,o=Es(e.changedTouches),l=[],d=this.target;if(s=r.filter(function(c){return pf(c.target,d)}),t===Ct)for(n=0;n<s.length;)a[s[n].identifier]=!0,n++;for(n=0;n<o.length;)a[o[n].identifier]&&l.push(o[n]),t&(et|jt)&&delete a[o[n].identifier],n++;if(l.length)return[vf(s.concat(l),"identifier",!0),l]}var S8={mousedown:Ct,mousemove:Ei,mouseup:et},k8="mousedown",x8="mousemove mouseup",gf=function(e){pr(t,e);function t(){var a,n=t.prototype;return n.evEl=k8,n.evWin=x8,a=e.apply(this,arguments)||this,a.pressed=!1,a}var r=t.prototype;return r.handler=function(n){var s=S8[n.type];s&Ct&&n.button===0&&(this.pressed=!0),s&Ei&&n.which!==1&&(s=et),this.pressed&&(s&et&&(this.pressed=!1),this.callback(this.manager,s,{pointers:[n],changedPointers:[n],pointerType:ff,srcEvent:n}))},t}(Va),T8=2500,hg=25;function fg(e){var t=e.changedPointers,r=t[0];if(r.identifier===this.primaryTouch){var a={x:r.clientX,y:r.clientY},n=this.lastTouches;this.lastTouches.push(a);var s=function(){var l=n.indexOf(a);l>-1&&n.splice(l,1)};setTimeout(s,T8)}}function $8(e,t){e&Ct?(this.primaryTouch=t.changedPointers[0].identifier,fg.call(this,t)):e&(et|jt)&&fg.call(this,t)}function D8(e){for(var t=e.srcEvent.clientX,r=e.srcEvent.clientY,a=0;a<this.lastTouches.length;a++){var n=this.lastTouches[a],s=Math.abs(t-n.x),o=Math.abs(r-n.y);if(s<=hg&&o<=hg)return!0}return!1}var $w=function(){var e=function(t){pr(r,t);function r(n,s){var o;return o=t.call(this,n,s)||this,o.handler=function(l,d,c){var f=c.pointerType===qs,v=c.pointerType===ff;if(!(v&&c.sourceCapabilities&&c.sourceCapabilities.firesTouchEvents)){if(f)$8.call(jo(jo(o)),d,c);else if(v&&D8.call(jo(jo(o)),c))return;o.callback(l,d,c)}},o.touch=new mf(o.manager,o.handler),o.mouse=new gf(o.manager,o.handler),o.primaryTouch=null,o.lastTouches=[],o}var a=r.prototype;return a.destroy=function(){this.touch.destroy(),this.mouse.destroy()},r}(Va);return e}();function N8(e){var t,r=e.options.inputClass;return r?t=r:s8?t=Tw:o8?t=mf:gw?t=$w:t=gf,new t(e,g8)}function ta(e,t,r){return Array.isArray(e)?(en(e,r[t],r),!0):!1}var ol=1,dr=2,ma=4,kn=8,tn=kn,Ss=16,Pr=32,C8=1;function O8(){return C8++}function Ho(e,t){var r=t.manager;return r?r.get(e):e}function pg(e){return e&Ss?"cancel":e&kn?"end":e&ma?"move":e&dr?"start":""}var Js=function(){function e(r){r===void 0&&(r={}),this.options=xr({enable:!0},r),this.id=O8(),this.manager=null,this.state=ol,this.simultaneous={},this.requireFail=[]}var t=e.prototype;return t.set=function(a){return di(this.options,a),this.manager&&this.manager.touchAction.update(),this},t.recognizeWith=function(a){if(ta(a,"recognizeWith",this))return this;var n=this.simultaneous;return a=Ho(a,this),n[a.id]||(n[a.id]=a,a.recognizeWith(this)),this},t.dropRecognizeWith=function(a){return ta(a,"dropRecognizeWith",this)?this:(a=Ho(a,this),delete this.simultaneous[a.id],this)},t.requireFailure=function(a){if(ta(a,"requireFailure",this))return this;var n=this.requireFail;return a=Ho(a,this),ui(n,a)===-1&&(n.push(a),a.requireFailure(this)),this},t.dropRequireFailure=function(a){if(ta(a,"dropRequireFailure",this))return this;a=Ho(a,this);var n=ui(this.requireFail,a);return n>-1&&this.requireFail.splice(n,1),this},t.hasRequireFailures=function(){return this.requireFail.length>0},t.canRecognizeWith=function(a){return!!this.simultaneous[a.id]},t.emit=function(a){var n=this,s=this.state;function o(l){n.manager.emit(l,a)}s<kn&&o(n.options.event+pg(s)),o(n.options.event),a.additionalEvent&&o(a.additionalEvent),s>=kn&&o(n.options.event+pg(s))},t.tryEmit=function(a){if(this.canEmit())return this.emit(a);this.state=Pr},t.canEmit=function(){for(var a=0;a<this.requireFail.length;){if(!(this.requireFail[a].state&(Pr|ol)))return!1;a++}return!0},t.recognize=function(a){var n=di({},a);if(!ud(this.options.enable,[this,n])){this.reset(),this.state=Pr;return}this.state&(tn|Ss|Pr)&&(this.state=ol),this.state=this.process(n),this.state&(dr|ma|kn|Ss)&&this.tryEmit(n)},t.process=function(a){},t.getTouchAction=function(){},t.reset=function(){},e}(),Zu=function(e){pr(t,e);function t(a){var n;return a===void 0&&(a={}),n=e.call(this,xr({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},a))||this,n.pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}var r=t.prototype;return r.getTouchAction=function(){return[Xu]},r.process=function(n){var s=this,o=this.options,l=n.pointers.length===o.pointers,d=n.distance<o.threshold,c=n.deltaTime<o.time;if(this.reset(),n.eventType&Ct&&this.count===0)return this.failTimeout();if(d&&c&&l){if(n.eventType!==et)return this.failTimeout();var f=this.pTime?n.timeStamp-this.pTime<o.interval:!0,v=!this.pCenter||El(this.pCenter,n.center)<o.posThreshold;this.pTime=n.timeStamp,this.pCenter=n.center,!v||!f?this.count=1:this.count+=1,this._input=n;var m=this.count%o.taps;if(m===0)return this.hasRequireFailures()?(this._timer=setTimeout(function(){s.state=tn,s.tryEmit()},o.interval),dr):tn}return Pr},r.failTimeout=function(){var n=this;return this._timer=setTimeout(function(){n.state=Pr},this.options.interval),Pr},r.reset=function(){clearTimeout(this._timer)},r.emit=function(){this.state===tn&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},t}(Js),ga=function(e){pr(t,e);function t(a){return a===void 0&&(a={}),e.call(this,xr({pointers:1},a))||this}var r=t.prototype;return r.attrTest=function(n){var s=this.options.pointers;return s===0||n.pointers.length===s},r.process=function(n){var s=this.state,o=n.eventType,l=s&(dr|ma),d=this.attrTest(n);return l&&(o&jt||!d)?s|Ss:l||d?o&et?s|kn:s&dr?s|ma:dr:Pr},t}(Js);function Dw(e){return e===va?"down":e===Zs?"up":e===Xs?"left":e===Qs?"right":""}var yf=function(e){pr(t,e);function t(a){var n;return a===void 0&&(a={}),n=e.call(this,xr({event:"pan",threshold:10,pointers:1,direction:yw},a))||this,n.pX=null,n.pY=null,n}var r=t.prototype;return r.getTouchAction=function(){var n=this.options.direction,s=[];return n&Vr&&s.push(bs),n&ni&&s.push(_s),s},r.directionTest=function(n){var s=this.options,o=!0,l=n.distance,d=n.direction,c=n.deltaX,f=n.deltaY;return d&s.direction||(s.direction&Vr?(d=c===0?bl:c<0?Xs:Qs,o=c!==this.pX,l=Math.abs(n.deltaX)):(d=f===0?bl:f<0?Zs:va,o=f!==this.pY,l=Math.abs(n.deltaY))),n.direction=d,o&&l>s.threshold&&d&s.direction},r.attrTest=function(n){return ga.prototype.attrTest.call(this,n)&&(this.state&dr||!(this.state&dr)&&this.directionTest(n))},r.emit=function(n){this.pX=n.deltaX,this.pY=n.deltaY;var s=Dw(n.direction);s&&(n.additionalEvent=this.options.event+s),e.prototype.emit.call(this,n)},t}(ga),Nw=function(e){pr(t,e);function t(a){return a===void 0&&(a={}),e.call(this,xr({event:"swipe",threshold:10,velocity:.3,direction:Vr|ni,pointers:1},a))||this}var r=t.prototype;return r.getTouchAction=function(){return yf.prototype.getTouchAction.call(this)},r.attrTest=function(n){var s=this.options.direction,o;return s&(Vr|ni)?o=n.overallVelocity:s&Vr?o=n.overallVelocityX:s&ni&&(o=n.overallVelocityY),e.prototype.attrTest.call(this,n)&&s&n.offsetDirection&&n.distance>this.options.threshold&&n.maxPointers===this.options.pointers&&ci(o)>this.options.velocity&&n.eventType&et},r.emit=function(n){var s=Dw(n.offsetDirection);s&&this.manager.emit(this.options.event+s,n),this.manager.emit(this.options.event,n)},t}(ga),Cw=function(e){pr(t,e);function t(a){return a===void 0&&(a={}),e.call(this,xr({event:"pinch",threshold:0,pointers:2},a))||this}var r=t.prototype;return r.getTouchAction=function(){return[ri]},r.attrTest=function(n){return e.prototype.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&dr)},r.emit=function(n){if(n.scale!==1){var s=n.scale<1?"in":"out";n.additionalEvent=this.options.event+s}e.prototype.emit.call(this,n)},t}(ga),Ow=function(e){pr(t,e);function t(a){return a===void 0&&(a={}),e.call(this,xr({event:"rotate",threshold:0,pointers:2},a))||this}var r=t.prototype;return r.getTouchAction=function(){return[ri]},r.attrTest=function(n){return e.prototype.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&dr)},t}(ga),Aw=function(e){pr(t,e);function t(a){var n;return a===void 0&&(a={}),n=e.call(this,xr({event:"press",pointers:1,time:251,threshold:9},a))||this,n._timer=null,n._input=null,n}var r=t.prototype;return r.getTouchAction=function(){return[mw]},r.process=function(n){var s=this,o=this.options,l=n.pointers.length===o.pointers,d=n.distance<o.threshold,c=n.deltaTime>o.time;if(this._input=n,!d||!l||n.eventType&(et|jt)&&!c)this.reset();else if(n.eventType&Ct)this.reset(),this._timer=setTimeout(function(){s.state=tn,s.tryEmit()},o.time);else if(n.eventType&et)return tn;return Pr},r.reset=function(){clearTimeout(this._timer)},r.emit=function(n){this.state===tn&&(n&&n.eventType&et?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=hf(),this.manager.emit(this.options.event,this._input)))},t}(Js),Iw={domEvents:!1,touchAction:vw,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},vg=[[Ow,{enable:!1}],[Cw,{enable:!1},["rotate"]],[Nw,{direction:Vr}],[yf,{direction:Vr},["swipe"]],[Zu],[Zu,{event:"doubletap",taps:2},["tap"]],[Aw]],A8=1,mg=2;function gg(e,t){var r=e.element;if(r.style){var a;en(e.options.cssProps,function(n,s){a=cd(r.style,s),t?(e.oldCssProps[a]=r.style[a],r.style[a]=n):r.style[a]=e.oldCssProps[a]||""}),t||(e.oldCssProps={})}}function I8(e,t){var r=document.createEvent("Event");r.initEvent(e,!0,!0),r.gesture=t,t.target.dispatchEvent(r)}var yg=function(){function e(r,a){var n=this;this.options=di({},Iw,a||{}),this.options.inputTarget=this.options.inputTarget||r,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=r,this.input=N8(this),this.touchAction=new bw(this,this.options.touchAction),gg(this,!0),en(this.options.recognizers,function(s){var o=n.add(new s[0](s[1]));s[2]&&o.recognizeWith(s[2]),s[3]&&o.requireFailure(s[3])},this)}var t=e.prototype;return t.set=function(a){return di(this.options,a),a.touchAction&&this.touchAction.update(),a.inputTarget&&(this.input.destroy(),this.input.target=a.inputTarget,this.input.init()),this},t.stop=function(a){this.session.stopped=a?mg:A8},t.recognize=function(a){var n=this.session;if(!n.stopped){this.touchAction.preventDefaults(a);var s,o=this.recognizers,l=n.curRecognizer;(!l||l&&l.state&tn)&&(n.curRecognizer=null,l=null);for(var d=0;d<o.length;)s=o[d],n.stopped!==mg&&(!l||s===l||s.canRecognizeWith(l))?s.recognize(a):s.reset(),!l&&s.state&(dr|ma|kn)&&(n.curRecognizer=s,l=s),d++}},t.get=function(a){if(a instanceof Js)return a;for(var n=this.recognizers,s=0;s<n.length;s++)if(n[s].options.event===a)return n[s];return null},t.add=function(a){if(ta(a,"add",this))return this;var n=this.get(a.options.event);return n&&this.remove(n),this.recognizers.push(a),a.manager=this,this.touchAction.update(),a},t.remove=function(a){if(ta(a,"remove",this))return this;var n=this.get(a);if(a){var s=this.recognizers,o=ui(s,n);o!==-1&&(s.splice(o,1),this.touchAction.update())}return this},t.on=function(a,n){if(a===void 0||n===void 0)return this;var s=this.handlers;return en(ws(a),function(o){s[o]=s[o]||[],s[o].push(n)}),this},t.off=function(a,n){if(a===void 0)return this;var s=this.handlers;return en(ws(a),function(o){n?s[o]&&s[o].splice(ui(s[o],n),1):delete s[o]}),this},t.emit=function(a,n){this.options.domEvents&&I8(a,n);var s=this.handlers[a]&&this.handlers[a].slice();if(!(!s||!s.length)){n.type=a,n.preventDefault=function(){n.srcEvent.preventDefault()};for(var o=0;o<s.length;)s[o](n),o++}},t.destroy=function(){this.element&&gg(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},e}(),P8={touchstart:Ct,touchmove:Ei,touchend:et,touchcancel:jt},M8="touchstart",R8="touchstart touchmove touchend touchcancel",L8=function(e){pr(t,e);function t(){var a,n=t.prototype;return n.evTarget=M8,n.evWin=R8,a=e.apply(this,arguments)||this,a.started=!1,a}var r=t.prototype;return r.handler=function(n){var s=P8[n.type];if(s===Ct&&(this.started=!0),!!this.started){var o=V8.call(this,n,s);s&(et|jt)&&o[0].length-o[1].length===0&&(this.started=!1),this.callback(this.manager,s,{pointers:o[0],changedPointers:o[1],pointerType:qs,srcEvent:n})}},t}(Va);function V8(e,t){var r=Es(e.touches),a=Es(e.changedTouches);return t&(et|jt)&&(r=vf(r.concat(a),"identifier",!0)),[r,a]}function Pw(e,t,r){var a="DEPRECATED METHOD: "+t+`
51
+ `+r+` AT
52
+ `;return function(){var n=new Error("get-stack-trace"),s=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,a,s),e.apply(this,arguments)}}var Mw=Pw(function(e,t,r){for(var a=Object.keys(t),n=0;n<a.length;)(!r||r&&e[a[n]]===void 0)&&(e[a[n]]=t[a[n]]),n++;return e},"extend","Use `assign`."),F8=Pw(function(e,t){return Mw(e,t,!0)},"merge","Use `assign`.");function Y8(e,t,r){var a=t.prototype,n;n=e.prototype=Object.create(a),n.constructor=e,n._super=a,r&&di(n,r)}function _g(e,t){return function(){return e.apply(t,arguments)}}var Rw=function(){var e=function(r,a){return a===void 0&&(a={}),new yg(r,xr({recognizers:vg.concat()},a))};return e.VERSION="2.0.17-rc",e.DIRECTION_ALL=yw,e.DIRECTION_DOWN=va,e.DIRECTION_LEFT=Xs,e.DIRECTION_RIGHT=Qs,e.DIRECTION_UP=Zs,e.DIRECTION_HORIZONTAL=Vr,e.DIRECTION_VERTICAL=ni,e.DIRECTION_NONE=bl,e.DIRECTION_DOWN=va,e.INPUT_START=Ct,e.INPUT_MOVE=Ei,e.INPUT_END=et,e.INPUT_CANCEL=jt,e.STATE_POSSIBLE=ol,e.STATE_BEGAN=dr,e.STATE_CHANGED=ma,e.STATE_ENDED=kn,e.STATE_RECOGNIZED=tn,e.STATE_CANCELLED=Ss,e.STATE_FAILED=Pr,e.Manager=yg,e.Input=Va,e.TouchAction=bw,e.TouchInput=mf,e.MouseInput=gf,e.PointerEventInput=Tw,e.TouchMouseInput=$w,e.SingleTouchInput=L8,e.Recognizer=Js,e.AttrRecognizer=ga,e.Tap=Zu,e.Pan=yf,e.Swipe=Nw,e.Pinch=Cw,e.Rotate=Ow,e.Press=Aw,e.on=ls,e.off=ds,e.each=en,e.merge=F8,e.extend=Mw,e.bindFn=_g,e.assign=di,e.inherit=Y8,e.bindFn=_g,e.prefixed=cd,e.toArray=Es,e.inArray=ui,e.uniqueArray=vf,e.splitStr=ws,e.boolOrFn=ud,e.hasParent=pf,e.addEventListeners=ls,e.removeEventListeners=ds,e.defaults=di({},Iw,{preset:vg}),e}();Rw.defaults;var Lw=Rw;function _f(e,t){var r=typeof fn<"u"&&Ln(e)||e["@@iterator"];if(!r){if(ae(e)||(r=j8(e))||t){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(c){throw c},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
53
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(o)throw l}}}}function j8(e,t){var r;if(e){if(typeof e=="string")return bg(e,t);var a=bt(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Rn(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return bg(e,t)}}function bg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var bf=fn("DELETE");function Vw(e){for(var t,r=arguments.length,a=new Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];return wf.apply(void 0,Me(t=[{},e]).call(t,a))}function wf(){var e=Sl.apply(void 0,arguments);return Yw(e),e}function Sl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length<2)return t[0];if(t.length>2){var a;return Sl.apply(void 0,Me(a=[wf(t[0],t[1])]).call(a,Fe(bt(t).call(t,2))))}var n=t[0],s=t[1];if(n instanceof Date&&s instanceof Date)return n.setTime(s.getTime()),n;var o=_f(F0(s)),l;try{for(o.s();!(l=o.n()).done;){var d=l.value;Object.prototype.propertyIsEnumerable.call(s,d)&&(s[d]===bf?delete n[d]:n[d]!==null&&s[d]!==null&&ne(n[d])==="object"&&ne(s[d])==="object"&&!ae(n[d])&&!ae(s[d])?n[d]=Sl(n[d],s[d]):n[d]=Fw(s[d]))}}catch(c){o.e(c)}finally{o.f()}return n}function Fw(e){return ae(e)?Se(e).call(e,function(t){return Fw(t)}):ne(e)==="object"&&e!==null?e instanceof Date?new Date(e.getTime()):Sl({},e):e}function Yw(e){for(var t=0,r=st(e);t<r.length;t++){var a=r[t];e[a]===bf?delete e[a]:ne(e[a])==="object"&&e[a]!==null&&Yw(e[a])}}function B8(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return H8(t.length?t:[qt()])}function H8(e){var t=W8(e),r=yt(t,3),a=r[0],n=r[1],s=r[2],o=1,l=function(){var c=2091639*a+o*23283064365386963e-26;return a=n,n=s,s=c-(o=c|0)};return l.uint32=function(){return l()*4294967296},l.fract53=function(){return l()+(l()*2097152|0)*11102230246251565e-32},l.algorithm="Alea",l.seed=e,l.version="0.9",l}function W8(){for(var e=G8(),t=e(" "),r=e(" "),a=e(" "),n=0;n<arguments.length;n++)t-=e(n<0||arguments.length<=n?void 0:arguments[n]),t<0&&(t+=1),r-=e(n<0||arguments.length<=n?void 0:arguments[n]),r<0&&(r+=1),a-=e(n<0||arguments.length<=n?void 0:arguments[n]),a<0&&(a+=1);return[t,r,a]}function G8(){var e=4022871197;return function(t){for(var r=t.toString(),a=0;a<r.length;a++){e+=r.charCodeAt(a);var n=.02519603282416938*e;e=n>>>0,n-=e,n*=e,e=n>>>0,n-=e,e+=n*4294967296}return(e>>>0)*23283064365386963e-26}}function z8(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get:function(){return{set:e}}}}var Ef=typeof window<"u"?window.Hammer||Lw:function(){return z8()};function Mr(e){var t=this,r;this._cleanupQueue=[],this.active=!1,this._dom={container:e,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){t._dom.overlay.parentNode.removeChild(t._dom.overlay)});var a=Ef(this._dom.overlay);a.on("tap",P(r=this._onTapOverlay).call(r,this)),this._cleanupQueue.push(function(){a.destroy()});var n=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];G(n).call(n,function(s){a.on(s,function(o){o.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(s){U8(s.target,e)||t.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",t._onClick)})),this._escListener=function(s){("key"in s?s.key==="Escape":s.keyCode===27)&&t.deactivate()}}uf(Mr.prototype);Mr.current=null;Mr.prototype.destroy=function(){var e,t;this.deactivate();var r=_f(C3(e=xt(t=this._cleanupQueue).call(t,0)).call(e)),a;try{for(r.s();!(a=r.n()).done;){var n=a.value;n()}}catch(s){r.e(s)}finally{r.f()}};Mr.prototype.activate=function(){Mr.current&&Mr.current.deactivate(),Mr.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)};Mr.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")};Mr.prototype._onTapOverlay=function(e){this.activate(),e.srcEvent.stopPropagation()};function U8(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}var K8=/^\/?Date\((-?\d+)/i,q8=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,X8=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Q8=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,Z8=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function cs(e){return e instanceof Number||typeof e=="number"}function jw(e){if(e)for(;e.hasChildNodes()===!0;){var t=e.firstChild;t&&(jw(t),e.removeChild(t))}}function Qt(e){return e instanceof String||typeof e=="string"}function Ju(e){return ne(e)==="object"&&e!==null}function J8(e){if(e instanceof Date)return!0;if(Qt(e)){var t=K8.exec(e);if(t)return!0;if(!isNaN(Date.parse(e)))return!0}return!1}function hi(e,t,r,a){var n=!1;a===!0&&(n=t[r]===null&&e[r]!==void 0),n?delete e[r]:e[r]=t[r]}function Bw(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;for(var a in e)if(t[a]!==void 0)if(t[a]===null||ne(t[a])!=="object")hi(e,t,a,r);else{var n=e[a],s=t[a];Ju(n)&&Ju(s)&&Bw(n,s,r)}}var eH=an;function tH(e,t){if(!ae(e))throw new Error("Array with property names expected as first argument");for(var r=arguments.length,a=new Array(r>2?r-2:0),n=2;n<r;n++)a[n-2]=arguments[n];for(var s=0,o=a;s<o.length;s++)for(var l=o[s],d=0;d<e.length;d++){var c=e[d];l&&Object.prototype.hasOwnProperty.call(l,c)&&(t[c]=l[c])}return t}function rH(e,t,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(ae(r))throw new TypeError("Arrays are not supported by deepExtend");for(var n=0;n<e.length;n++){var s=e[n];if(Object.prototype.hasOwnProperty.call(r,s))if(r[s]&&r[s].constructor===Object)t[s]===void 0&&(t[s]={}),t[s].constructor===Object?ks(t[s],r[s],!1,a):hi(t,r,s,a);else{if(ae(r[s]))throw new TypeError("Arrays are not supported by deepExtend");hi(t,r,s,a)}}return t}function nH(e,t,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(ae(r))throw new TypeError("Arrays are not supported by deepExtend");for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&!Nn(e).call(e,n))if(r[n]&&r[n].constructor===Object)t[n]===void 0&&(t[n]={}),t[n].constructor===Object?ks(t[n],r[n]):hi(t,r,n,a);else if(ae(r[n])){t[n]=[];for(var s=0;s<r[n].length;s++)t[n].push(r[n][s])}else hi(t,r,n,a);return t}function ks(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)||r===!0)if(ne(t[n])==="object"&&t[n]!==null&&Jm(t[n])===Object.prototype)e[n]===void 0?e[n]=ks({},t[n],r):ne(e[n])==="object"&&e[n]!==null&&Jm(e[n])===Object.prototype?ks(e[n],t[n],r):hi(e,t,n,a);else if(ae(t[n])){var s;e[n]=bt(s=t[n]).call(s)}else hi(e,t,n,a);return e}function iH(e,t){if(e.length!==t.length)return!1;for(var r=0,a=e.length;r<a;r++)if(e[r]!=t[r])return!1;return!0}function is(e){var t=ne(e);return t==="object"?e===null?"null":e instanceof Boolean?"Boolean":e instanceof Number?"Number":e instanceof String?"String":ae(e)?"Array":e instanceof Date?"Date":"Object":t==="number"?"Number":t==="boolean"?"Boolean":t==="string"?"String":t===void 0?"undefined":t}function xs(e,t){var r;return Me(r=[]).call(r,Fe(e),[t])}function Hw(e){return bt(e).call(e)}function aH(e){return e.getBoundingClientRect().left}function sH(e){return e.getBoundingClientRect().right}function oH(e){return e.getBoundingClientRect().top}function lH(e,t){var r=e.className.split(" "),a=t.split(" ");r=Me(r).call(r,te(a).call(a,function(n){return!Nn(r).call(r,n)})),e.className=r.join(" ")}function dH(e,t){var r=e.className.split(" "),a=t.split(" ");r=te(r).call(r,function(n){return!Nn(a).call(a,n)}),e.className=r.join(" ")}function cH(e,t){if(ae(e))for(var r=e.length,a=0;a<r;a++)t(e[a],a,e);else for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(e[n],n,e)}var uH=df;function hH(e,t,r){return e[t]!==r?(e[t]=r,!0):!1}function fH(e){var t=!1;return function(){t||(t=!0,requestAnimationFrame(function(){t=!1,e()}))}}function pH(e,t,r,a){if(e.addEventListener){var n;a===void 0&&(a=!1),t==="mousewheel"&&Nn(n=navigator.userAgent).call(n,"Firefox")&&(t="DOMMouseScroll"),e.addEventListener(t,r,a)}else e.attachEvent("on"+t,r)}function vH(e,t,r,a){if(e.removeEventListener){var n;a===void 0&&(a=!1),t==="mousewheel"&&Nn(n=navigator.userAgent).call(n,"Firefox")&&(t="DOMMouseScroll"),e.removeEventListener(t,r,a)}else e.detachEvent("on"+t,r)}function mH(e){e||(e=window.event),e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}function gH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event,t=null;return e&&(e.target?t=e.target:e.srcElement&&(t=e.srcElement)),!(t instanceof Element)||t.nodeType!=null&&t.nodeType==3&&(t=t.parentNode,!(t instanceof Element))?null:t}function yH(e,t){for(var r=e;r;){if(r===t)return!0;if(r.parentNode)r=r.parentNode;else return!1}return!1}var _H={asBoolean:function(t,r){return typeof t=="function"&&(t=t()),t!=null?t!=!1:r||null},asNumber:function(t,r){return typeof t=="function"&&(t=t()),t!=null?Number(t)||r||null:r||null},asString:function(t,r){return typeof t=="function"&&(t=t()),t!=null?String(t):r||null},asSize:function(t,r){return typeof t=="function"&&(t=t()),Qt(t)?t:cs(t)?t+"px":r||null},asElement:function(t,r){return typeof t=="function"&&(t=t()),t||r||null}};function hd(e){var t;switch(e.length){case 3:case 4:return t=X8.exec(e),t?{r:Xt(t[1]+t[1],16),g:Xt(t[2]+t[2],16),b:Xt(t[3]+t[3],16)}:null;case 6:case 7:return t=q8.exec(e),t?{r:Xt(t[1],16),g:Xt(t[2],16),b:Xt(t[3],16)}:null;default:return null}}function bH(e,t){if(Nn(e).call(e,"rgba"))return e;if(Nn(e).call(e,"rgb")){var r=e.substr(Ce(e).call(e,"(")+1).replace(")","").split(",");return"rgba("+r[0]+","+r[1]+","+r[2]+","+t+")"}else{var a=hd(e);return a==null?e:"rgba("+a.r+","+a.g+","+a.b+","+t+")"}}function Sf(e,t,r){var a;return"#"+bt(a=((1<<24)+(e<<16)+(t<<8)+r).toString(16)).call(a,1)}function wH(e,t){if(Qt(e)){var r=e;if(xf(r)){var a,n=Se(a=r.substr(4).substr(0,r.length-5).split(",")).call(a,function(m){return Xt(m)});r=Sf(n[0],n[1],n[2])}if(kf(r)===!0){var s=Gw(r),o={h:s.h,s:s.s*.8,v:Math.min(1,s.v*1.02)},l={h:s.h,s:Math.min(1,s.s*1.25),v:s.v*.8},d=eh(l.h,l.s,l.v),c=eh(o.h,o.s,o.v);return{background:r,border:d,highlight:{background:c,border:d},hover:{background:c,border:d}}}else return{background:r,border:r,highlight:{background:r,border:r},hover:{background:r,border:r}}}else if(t){var f={background:e.background||t.background,border:e.border||t.border,highlight:Qt(e.highlight)?{border:e.highlight,background:e.highlight}:{background:e.highlight&&e.highlight.background||t.highlight.background,border:e.highlight&&e.highlight.border||t.highlight.border},hover:Qt(e.hover)?{border:e.hover,background:e.hover}:{border:e.hover&&e.hover.border||t.hover.border,background:e.hover&&e.hover.background||t.hover.background}};return f}else{var v={background:e.background||void 0,border:e.border||void 0,highlight:Qt(e.highlight)?{border:e.highlight,background:e.highlight}:{background:e.highlight&&e.highlight.background||void 0,border:e.highlight&&e.highlight.border||void 0},hover:Qt(e.hover)?{border:e.hover,background:e.hover}:{border:e.hover&&e.hover.border||void 0,background:e.hover&&e.hover.background||void 0}};return v}}function ra(e,t,r){e=e/255,t=t/255,r=r/255;var a=Math.min(e,Math.min(t,r)),n=Math.max(e,Math.max(t,r));if(a===n)return{h:0,s:0,v:a};var s=e===a?t-r:r===a?e-t:r-e,o=e===a?3:r===a?1:5,l=60*(o-s/(n-a))/360,d=(n-a)/n,c=n;return{h:l,s:d,v:c}}function Ww(e){var t=document.createElement("div"),r={};t.style.cssText=e;for(var a=0;a<t.style.length;++a)r[t.style[a]]=t.style.getPropertyValue(t.style[a]);return r}function EH(e,t){for(var r=Ww(t),a=0,n=uB(r);a<n.length;a++){var s=yt(n[a],2),o=s[0],l=s[1];e.style.setProperty(o,l)}}function SH(e,t){for(var r=Ww(t),a=0,n=st(r);a<n.length;a++){var s=n[a];e.style.removeProperty(s)}}function us(e,t,r){var a,n,s,o=Math.floor(e*6),l=e*6-o,d=r*(1-t),c=r*(1-l*t),f=r*(1-(1-l)*t);switch(o%6){case 0:a=r,n=f,s=d;break;case 1:a=c,n=r,s=d;break;case 2:a=d,n=r,s=f;break;case 3:a=d,n=c,s=r;break;case 4:a=f,n=d,s=r;break;case 5:a=r,n=d,s=c;break}return{r:Math.floor(a*255),g:Math.floor(n*255),b:Math.floor(s*255)}}function eh(e,t,r){var a=us(e,t,r);return Sf(a.r,a.g,a.b)}function Gw(e){var t=hd(e);if(!t)throw new TypeError("'".concat(e,"' is not a valid color."));return ra(t.r,t.g,t.b)}function kf(e){var t=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e);return t}function xf(e){return Q8.test(e)}function zw(e){return Z8.test(e)}function kH(e,t){if(t!==null&&ne(t)==="object"){for(var r=Ks(t),a=0;a<e.length;a++)Object.prototype.hasOwnProperty.call(t,e[a])&&ne(t[e[a]])=="object"&&(r[e[a]]=Tf(t[e[a]]));return r}else return null}function Tf(e){if(e===null||ne(e)!=="object")return null;if(e instanceof Element)return e;var t=Ks(e);for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&ne(e[r])=="object"&&(t[r]=Tf(e[r]));return t}function xH(e,t){for(var r=0;r<e.length;r++){var a=e[r],n=void 0;for(n=r;n>0&&t(a,e[n-1])<0;n--)e[n]=e[n-1];e[n]=a}return e}function TH(e,t,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=function(b){return b!=null},s=function(b){return b!==null&&ne(b)==="object"},o=function(b){for(var S in b)if(Object.prototype.hasOwnProperty.call(b,S))return!1;return!0};if(!s(e))throw new Error("Parameter mergeTarget must be an object");if(!s(t))throw new Error("Parameter options must be an object");if(!n(r))throw new Error("Parameter option must have a value");if(!s(a))throw new Error("Parameter globalOptions must be an object");var l=function(b,S,w){s(b[w])||(b[w]={});var k=S[w],T=b[w];for(var D in k)Object.prototype.hasOwnProperty.call(k,D)&&(T[D]=k[D])},d=t[r],c=s(a)&&!o(a),f=c?a[r]:void 0,v=f?f.enabled:void 0;if(d!==void 0){if(typeof d=="boolean"){s(e[r])||(e[r]={}),e[r].enabled=d;return}if(d===null&&!s(e[r]))if(n(f))e[r]=Ks(f);else return;if(s(d)){var m=!0;d.enabled!==void 0?m=d.enabled:v!==void 0&&(m=f.enabled),l(e,t,r),e[r].enabled=m}}}function $H(e,t,r,a){for(var n=1e4,s=0,o=0,l=e.length-1;o<=l&&s<n;){var d=Math.floor((o+l)/2),c=e[d],f=a===void 0?c[r]:c[r][a],v=t(f);if(v==0)return d;v==-1?o=d+1:l=d-1,s++}return-1}function DH(e,t,r,a,n){var s=1e4,o=0,l=0,d=e.length-1,c,f,v,m;for(n=n??function(g,b){return g==b?0:g<b?-1:1};l<=d&&o<s;){if(m=Math.floor(.5*(d+l)),c=e[Math.max(0,m-1)][r],f=e[m][r],v=e[Math.min(e.length-1,m+1)][r],n(f,t)==0)return m;if(n(c,t)<0&&n(f,t)>0)return a=="before"?Math.max(0,m-1):m;if(n(f,t)<0&&n(v,t)>0)return a=="before"?m:Math.min(e.length-1,m+1);n(f,t)<0?l=m+1:d=m-1,o++}return-1}var NH={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:-1+(4-2*t)*t},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};function CH(){var e=document.createElement("p");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.appendChild(e),document.body.appendChild(t);var r=e.offsetWidth;t.style.overflow="scroll";var a=e.offsetWidth;return r==a&&(a=t.clientWidth),document.body.removeChild(t),r-a}function OH(e,t){var r;ae(t)||(t=[t]);var a=_f(e),n;try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s){r=s[t[0]];for(var o=1;o<t.length;o++)r&&(r=r[t[o]]);if(typeof r<"u")break}}}catch(l){a.e(l)}finally{a.f()}return r}var AH={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},Uw=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;fe(this,e),this.pixelRatio=t,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return pe(e,[{key:"insertTo",value:function(r){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=r,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(r){if(typeof r=="function")this.updateCallback=r;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(r){if(typeof r=="function")this.closeCallback=r;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(r){if(typeof r=="string")return AH[r]}},{key:"setColor",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(r!=="none"){var n,s=this._isColorString(r);if(s!==void 0&&(r=s),Qt(r)===!0){if(xf(r)===!0){var o=r.substr(4).substr(0,r.length-5).split(",");n={r:o[0],g:o[1],b:o[2],a:1}}else if(zw(r)===!0){var l=r.substr(5).substr(0,r.length-6).split(",");n={r:l[0],g:l[1],b:l[2],a:l[3]}}else if(kf(r)===!0){var d=hd(r);n={r:d.r,g:d.g,b:d.b,a:1}}}else if(r instanceof Object&&r.r!==void 0&&r.g!==void 0&&r.b!==void 0){var c=r.a!==void 0?r.a:"1.0";n={r:r.r,g:r.g,b:r.b,a:c}}if(n===void 0)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Ft(r));this._setColor(n,a)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var r=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;a===!0&&(this.previousColor=an({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",_t(function(){r.closeCallback!==void 0&&(r.closeCallback(),r.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;a===!0&&(this.initialColor=an({},r)),this.color=r;var n=ra(r.r,r.g,r.b),s=2*Math.PI,o=this.r*n.s,l=this.centerCoordinates.x+o*Math.sin(s*n.h),d=this.centerCoordinates.y+o*Math.cos(s*n.h);this.colorPickerSelector.style.left=l-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=d-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(r)}},{key:"_setOpacity",value:function(r){this.color.a=r/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(r){var a=ra(this.color.r,this.color.g,this.color.b);a.v=r/100;var n=us(a.h,a.s,a.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,a=ra(r.r,r.g,r.b),n=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var s=this.colorPickerCanvas.clientWidth,o=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,s,o),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-a.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),uw(n).call(n),this.brightnessRange.value=100*a.v,this.opacityRange.value=100*r.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var r,a,n,s;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var l=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(l.webkitBackingStorePixelRatio||l.mozBackingStorePixelRatio||l.msBackingStorePixelRatio||l.oBackingStorePixelRatio||l.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch{}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch{}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var d=this;this.opacityRange.onchange=function(){d._setOpacity(this.value)},this.opacityRange.oninput=function(){d._setOpacity(this.value)},this.brightnessRange.onchange=function(){d._setBrightness(this.value)},this.brightnessRange.oninput=function(){d._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=P(r=this._hide).call(r,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=P(a=this._apply).call(a,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=P(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=P(s=this._loadLast).call(s,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var r=this;this.drag={},this.pinch={},this.hammer=new Ef(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",function(a){a.isFirst&&r._moveSelector(a)}),this.hammer.on("tap",function(a){r._moveSelector(a)}),this.hammer.on("panstart",function(a){r._moveSelector(a)}),this.hammer.on("panmove",function(a){r._moveSelector(a)}),this.hammer.on("panend",function(a){r._moveSelector(a)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var r=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1)),r.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var a=this.colorPickerCanvas.clientWidth,n=this.colorPickerCanvas.clientHeight;r.clearRect(0,0,a,n);var s,o,l,d;this.centerCoordinates={x:a*.5,y:n*.5},this.r=.49*a;var c=2*Math.PI/360,f=1/360,v=1/this.r,m;for(l=0;l<360;l++)for(d=0;d<this.r;d++)s=this.centerCoordinates.x+d*Math.sin(c*l),o=this.centerCoordinates.y+d*Math.cos(c*l),m=us(l*f,d*v,1),r.fillStyle="rgb("+m.r+","+m.g+","+m.b+")",r.fillRect(s-.5,o-.5,2,2);r.strokeStyle="rgba(0,0,0,1)",r.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),r.stroke(),this.hueCircle=r.getImageData(0,0,a,n)}this.generated=!0}},{key:"_moveSelector",value:function(r){var a=this.colorPickerDiv.getBoundingClientRect(),n=r.center.x-a.left,s=r.center.y-a.top,o=.5*this.colorPickerDiv.clientHeight,l=.5*this.colorPickerDiv.clientWidth,d=n-l,c=s-o,f=Math.atan2(d,c),v=.98*Math.min(Math.sqrt(d*d+c*c),l),m=Math.cos(f)*v+o,g=Math.sin(f)*v+l;this.colorPickerSelector.style.top=m-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=g-.5*this.colorPickerSelector.clientWidth+"px";var b=f/(2*Math.PI);b=b<0?b+1:b;var S=v/this.r,w=ra(this.color.r,this.color.g,this.color.b);w.h=b,w.s=S;var k=us(w.h,w.s,w.v);k.a=this.color.a,this.color=k,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),e}();function th(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length<1)throw new TypeError("Invalid arguments.");if(t.length===1)return document.createTextNode(t[0]);var a=document.createElement(t[0]);return a.appendChild(th.apply(void 0,Fe(bt(t).call(t,1)))),a}var IH=function(){function e(t,r,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!1};fe(this,e),this.parent=t,this.changedOptions=[],this.container=r,this.allowCreation=!1,this.hideOption=s,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},an(this.options,this.defaultOptions),this.configureOptions=a,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Uw(n),this.wrapper=void 0}return pe(e,[{key:"setOptions",value:function(r){if(r!==void 0){this.popupHistory={},this._removePopup();var a=!0;if(typeof r=="string")this.options.filter=r;else if(ae(r))this.options.filter=r.join();else if(ne(r)==="object"){if(r==null)throw new TypeError("options cannot be null");r.container!==void 0&&(this.options.container=r.container),te(r)!==void 0&&(this.options.filter=te(r)),r.showButton!==void 0&&(this.options.showButton=r.showButton),r.enabled!==void 0&&(a=r.enabled)}else typeof r=="boolean"?(this.options.filter=!0,a=r):typeof r=="function"&&(this.options.filter=r,a=!0);te(this.options)===!1&&(a=!1),this.options.enabled=a}this._clean()}},{key:"setModuleOptions",value:function(r){this.moduleOptions=r,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var r=te(this.options),a=0,n=!1;for(var s in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,s)&&(this.allowCreation=!1,n=!1,typeof r=="function"?(n=r(s,[]),n=n||this._handleObject(this.configureOptions[s],[s],!0)):(r===!0||Ce(r).call(r,s)!==-1)&&(n=!0),n!==!1&&(this.allowCreation=!0,a>0&&this._makeItem([]),this._makeHeader(s),this._handleObject(this.configureOptions[s],[s])),a++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var r=0;r<this.domElements.length;r++)this.wrapper.appendChild(this.domElements[r]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var r=0;r<this.domElements.length;r++)this.wrapper.removeChild(this.domElements[r]);this.wrapper!==void 0&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(r){for(var a=this.moduleOptions,n=0;n<r.length;n++)if(a[r[n]]!==void 0)a=a[r[n]];else{a=void 0;break}return a}},{key:"_makeItem",value:function(r){if(this.allowCreation===!0){var a=document.createElement("div");a.className="vis-configuration vis-config-item vis-config-s"+r.length;for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return G(s).call(s,function(l){a.appendChild(l)}),this.domElements.push(a),this.domElements.length}return 0}},{key:"_makeHeader",value:function(r){var a=document.createElement("div");a.className="vis-configuration vis-config-header",a.innerText=r,this._makeItem([],a)}},{key:"_makeLabel",value:function(r,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=document.createElement("div");if(s.className="vis-configuration vis-config-label vis-config-s"+a.length,n===!0){for(;s.firstChild;)s.removeChild(s.firstChild);s.appendChild(th("i","b",r))}else s.innerText=r+":";return s}},{key:"_makeDropdown",value:function(r,a,n){var s=document.createElement("select");s.className="vis-configuration vis-config-select";var o=0;a!==void 0&&Ce(r).call(r,a)!==-1&&(o=Ce(r).call(r,a));for(var l=0;l<r.length;l++){var d=document.createElement("option");d.value=r[l],l===o&&(d.selected="selected"),d.innerText=r[l],s.appendChild(d)}var c=this;s.onchange=function(){c._update(this.value,n)};var f=this._makeLabel(n[n.length-1],n);this._makeItem(n,f,s)}},{key:"_makeRange",value:function(r,a,n){var s=r[0],o=r[1],l=r[2],d=r[3],c=document.createElement("input");c.className="vis-configuration vis-config-range";try{c.type="range",c.min=o,c.max=l}catch{}c.step=d;var f="",v=0;if(a!==void 0){var m=1.2;a<0&&a*m<o?(c.min=Math.ceil(a*m),v=c.min,f="range increased"):a/m<o&&(c.min=Math.ceil(a/m),v=c.min,f="range increased"),a*m>l&&l!==1&&(c.max=Math.ceil(a*m),v=c.max,f="range increased"),c.value=a}else c.value=s;var g=document.createElement("input");g.className="vis-configuration vis-config-rangeinput",g.value=c.value;var b=this;c.onchange=function(){g.value=this.value,b._update(Number(this.value),n)},c.oninput=function(){g.value=this.value};var S=this._makeLabel(n[n.length-1],n),w=this._makeItem(n,S,c,g);f!==""&&this.popupHistory[w]!==v&&(this.popupHistory[w]=v,this._setupPopup(f,w))}},{key:"_makeButton",value:function(){var r=this;if(this.options.showButton===!0){var a=document.createElement("div");a.className="vis-configuration vis-config-button",a.innerText="generate options",a.onclick=function(){r._printOptions()},a.onmouseover=function(){a.className="vis-configuration vis-config-button hover"},a.onmouseout=function(){a.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(a)}}},{key:"_setupPopup",value:function(r,a){var n=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter<this.popupLimit){var s=document.createElement("div");s.id="vis-configuration-popup",s.className="vis-configuration-popup",s.innerText=r,s.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:s,index:a}}}},{key:"_removePopup",value:function(){this.popupDiv.html!==void 0&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var r=this;if(this.popupDiv.html!==void 0){var a=this.domElements[this.popupDiv.index],n=a.getBoundingClientRect();this.popupDiv.html.style.left=n.left+"px",this.popupDiv.html.style.top=n.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=_t(function(){r.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=_t(function(){r._removePopup()},1800)}}},{key:"_makeCheckbox",value:function(r,a,n){var s=document.createElement("input");s.type="checkbox",s.className="vis-configuration vis-config-checkbox",s.checked=r,a!==void 0&&(s.checked=a,a!==r&&(ne(r)==="object"?a!==r.enabled&&this.changedOptions.push({path:n,value:a}):this.changedOptions.push({path:n,value:a})));var o=this;s.onchange=function(){o._update(this.checked,n)};var l=this._makeLabel(n[n.length-1],n);this._makeItem(n,l,s)}},{key:"_makeTextInput",value:function(r,a,n){var s=document.createElement("input");s.type="text",s.className="vis-configuration vis-config-text",s.value=a,a!==r&&this.changedOptions.push({path:n,value:a});var o=this;s.onchange=function(){o._update(this.value,n)};var l=this._makeLabel(n[n.length-1],n);this._makeItem(n,l,s)}},{key:"_makeColorField",value:function(r,a,n){var s=this,o=r[1],l=document.createElement("div");a=a===void 0?o:a,a!=="none"?(l.className="vis-configuration vis-config-colorBlock",l.style.backgroundColor=a):l.className="vis-configuration vis-config-colorBlock none",a=a===void 0?o:a,l.onclick=function(){s._showColorPicker(a,l,n)};var d=this._makeLabel(n[n.length-1],n);this._makeItem(n,d,l)}},{key:"_showColorPicker",value:function(r,a,n){var s=this;a.onclick=function(){},this.colorPicker.insertTo(a),this.colorPicker.show(),this.colorPicker.setColor(r),this.colorPicker.setUpdateCallback(function(o){var l="rgba("+o.r+","+o.g+","+o.b+","+o.a+")";a.style.backgroundColor=l,s._update(l,n)}),this.colorPicker.setCloseCallback(function(){a.onclick=function(){s._showColorPicker(r,a,n)}})}},{key:"_handleObject",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=!1,o=te(this.options),l=!1;for(var d in r)if(Object.prototype.hasOwnProperty.call(r,d)){s=!0;var c=r[d],f=xs(a,d);if(typeof o=="function"&&(s=o(d,a),s===!1&&!ae(c)&&typeof c!="string"&&typeof c!="boolean"&&c instanceof Object&&(this.allowCreation=!1,s=this._handleObject(c,f,!0),this.allowCreation=n===!1)),s!==!1){l=!0;var v=this._getValue(f);if(ae(c))this._handleArray(c,v,f);else if(typeof c=="string")this._makeTextInput(c,v,f);else if(typeof c=="boolean")this._makeCheckbox(c,v,f);else if(c instanceof Object){if(!this.hideOption(a,d,this.moduleOptions))if(c.enabled!==void 0){var m=xs(f,"enabled"),g=this._getValue(m);if(g===!0){var b=this._makeLabel(d,f,!0);this._makeItem(f,b),l=this._handleObject(c,f)||l}else this._makeCheckbox(c,g,f)}else{var S=this._makeLabel(d,f,!0);this._makeItem(f,S),l=this._handleObject(c,f)||l}}else console.error("dont know how to handle",c,d,f)}}return l}},{key:"_handleArray",value:function(r,a,n){typeof r[0]=="string"&&r[0]==="color"?(this._makeColorField(r,a,n),r[1]!==a&&this.changedOptions.push({path:n,value:a})):typeof r[0]=="string"?(this._makeDropdown(r,a,n),r[0]!==a&&this.changedOptions.push({path:n,value:a})):typeof r[0]=="number"&&(this._makeRange(r,a,n),r[0]!==a&&this.changedOptions.push({path:n,value:Number(a)}))}},{key:"_update",value:function(r,a){var n=this._constructOptions(r,a);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(r,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=n;r=r==="true"?!0:r,r=r==="false"?!1:r;for(var o=0;o<a.length;o++)a[o]!=="global"&&(s[a[o]]===void 0&&(s[a[o]]={}),o!==a.length-1?s=s[a[o]]:s[a[o]]=r);return n}},{key:"_printOptions",value:function(){for(var r=this.getOptions();this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(th("pre","const options = "+Ft(r,null,2)))}},{key:"getOptions",value:function(){for(var r={},a=0;a<this.changedOptions.length;a++)this._constructOptions(this.changedOptions[a].value,this.changedOptions[a].path,r);return r}}]),e}(),PH=function(){function e(t,r){fe(this,e),this.container=t,this.overflowMethod=r||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return pe(e,[{key:"setPosition",value:function(r,a){this.x=Xt(r),this.y=Xt(a)}},{key:"setText",value:function(r){if(r instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(r)}else this.frame.innerText=r}},{key:"show",value:function(r){if(r===void 0&&(r=!0),r===!0){var a=this.frame.clientHeight,n=this.frame.clientWidth,s=this.frame.parentNode.clientHeight,o=this.frame.parentNode.clientWidth,l=0,d=0;if(this.overflowMethod=="flip"){var c=!1,f=!0;this.y-a<this.padding&&(f=!1),this.x+n>o-this.padding&&(c=!0),c?l=this.x-n:l=this.x,f?d=this.y-a:d=this.y}else d=this.y-a,d+a+this.padding>s&&(d=s-a-this.padding),d<this.padding&&(d=this.padding),l=this.x,l+n+this.padding>o&&(l=o-n-this.padding),l<this.padding&&(l=this.padding);this.frame.style.left=l+"px",this.frame.style.top=d+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),e}(),Ja=!1,wg,rh="background: #FFeeee; color: #dd0000",MH=function(){function e(){fe(this,e)}return pe(e,null,[{key:"validate",value:function(r,a,n){Ja=!1,wg=a;var s=a;return n!==void 0&&(s=a[n]),e.parse(r,s,[]),Ja}},{key:"parse",value:function(r,a,n){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.check(s,r,a,n)}},{key:"check",value:function(r,a,n,s){if(n[r]===void 0&&n.__any__===void 0){e.getSuggestion(r,n,s);return}var o=r,l=!0;n[r]===void 0&&n.__any__!==void 0&&(o="__any__",l=e.getType(a[r])==="object");var d=n[o];l&&d.__type__!==void 0&&(d=d.__type__),e.checkFields(r,a,n,o,d,s)}},{key:"checkFields",value:function(r,a,n,s,o,l){var d=function(m){console.error("%c"+m+e.printLocation(l,r),rh)},c=e.getType(a[r]),f=o[c];f!==void 0?e.getType(f)==="array"&&Ce(f).call(f,a[r])===-1?(d('Invalid option detected in "'+r+'". Allowed values are:'+e.print(f)+' not "'+a[r]+'". '),Ja=!0):c==="object"&&s!=="__any__"&&(l=xs(l,r),e.parse(a[r],n[s],l)):o.any===void 0&&(d('Invalid type received for "'+r+'". Expected: '+e.print(st(o))+". Received ["+c+'] "'+a[r]+'"'),Ja=!0)}},{key:"getType",value:function(r){var a=ne(r);return a==="object"?r===null?"null":r instanceof Boolean?"boolean":r instanceof Number?"number":r instanceof String?"string":ae(r)?"array":r instanceof Date?"date":r.nodeType!==void 0?"dom":r._isAMomentObject===!0?"moment":"object":a==="number"?"number":a==="boolean"?"boolean":a==="string"?"string":a===void 0?"undefined":a}},{key:"getSuggestion",value:function(r,a,n){var s=e.findInOptions(r,a,n,!1),o=e.findInOptions(r,wg,[],!0),l=8,d=4,c;s.indexMatch!==void 0?c=" in "+e.printLocation(s.path,r,"")+'Perhaps it was incomplete? Did you mean: "'+s.indexMatch+`"?
54
+
55
+ `:o.distance<=d&&s.distance>o.distance?c=" in "+e.printLocation(s.path,r,"")+"Perhaps it was misplaced? Matching option found at: "+e.printLocation(o.path,o.closestMatch,""):s.distance<=l?c='. Did you mean "'+s.closestMatch+'"?'+e.printLocation(s.path,r):c=". Did you mean one of these: "+e.print(st(a))+e.printLocation(n,r),console.error('%cUnknown option detected: "'+r+'"'+c,rh),Ja=!0}},{key:"findInOptions",value:function(r,a,n){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=1e9,l="",d=[],c=r.toLowerCase(),f=void 0;for(var v in a){var m=void 0;if(a[v].__type__!==void 0&&s===!0){var g=e.findInOptions(r,a[v],xs(n,v));o>g.distance&&(l=g.closestMatch,d=g.path,o=g.distance,f=g.indexMatch)}else{var b;Ce(b=v.toLowerCase()).call(b,c)!==-1&&(f=v),m=e.levenshteinDistance(r,v),o>m&&(l=v,d=Hw(n),o=m)}}return{closestMatch:l,path:d,distance:o,indexMatch:f}}},{key:"printLocation",value:function(r,a){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at:
56
+ `,s=`
57
+
58
+ `+n+`options = {
59
+ `,o=0;o<r.length;o++){for(var l=0;l<o+1;l++)s+=" ";s+=r[o]+`: {
60
+ `}for(var d=0;d<r.length+1;d++)s+=" ";s+=a+`
61
+ `;for(var c=0;c<r.length+1;c++){for(var f=0;f<r.length-c;f++)s+=" ";s+=`}
62
+ `}return s+`
63
+
64
+ `}},{key:"print",value:function(r){return Ft(r).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}},{key:"levenshteinDistance",value:function(r,a){if(r.length===0)return a.length;if(a.length===0)return r.length;var n=[],s;for(s=0;s<=a.length;s++)n[s]=[s];var o;for(o=0;o<=r.length;o++)n[0][o]=o;for(s=1;s<=a.length;s++)for(o=1;o<=r.length;o++)a.charAt(s-1)==r.charAt(o-1)?n[s][o]=n[s-1][o-1]:n[s][o]=Math.min(n[s-1][o-1]+1,Math.min(n[s][o-1]+1,n[s-1][o]+1));return n[a.length][r.length]}}]),e}(),RH=Mr,LH=Uw,VH=IH,FH=Ef,YH=PH,jH=rh,BH=MH,HH=Object.freeze({__proto__:null,Activator:RH,Alea:B8,ColorPicker:LH,Configurator:VH,DELETE:bf,HSVToHex:eh,HSVToRGB:us,Hammer:FH,Popup:YH,RGBToHSV:ra,RGBToHex:Sf,VALIDATOR_PRINT_STYLE:jH,Validator:BH,addClassName:lH,addCssText:EH,addEventListener:pH,binarySearchCustom:$H,binarySearchValue:DH,bridgeObject:Tf,copyAndExtendArray:xs,copyArray:Hw,deepExtend:ks,deepObjectAssign:wf,easingFunctions:NH,equalArray:iH,extend:eH,fillIfDefined:Bw,forEach:cH,getAbsoluteLeft:aH,getAbsoluteRight:sH,getAbsoluteTop:oH,getScrollBarWidth:CH,getTarget:gH,getType:is,hasParent:yH,hexToHSV:Gw,hexToRGB:hd,insertSort:xH,isDate:J8,isNumber:cs,isObject:Ju,isString:Qt,isValidHex:kf,isValidRGB:xf,isValidRGBA:zw,mergeOptions:TH,option:_H,overrideOpacity:bH,parseColor:wH,preventDefault:mH,pureDeepObjectAssign:Vw,recursiveDOMDelete:jw,removeClassName:dH,removeCssText:SH,removeEventListener:vH,selectiveBridgeObject:kH,selectiveDeepExtend:rH,selectiveExtend:tH,selectiveNotDeepExtend:nH,throttle:fH,toArray:uH,topMost:OH,updateProperty:hH});function wn(e){for(var t in e)e.hasOwnProperty(t)&&(e[t].redundant=e[t].used,e[t].used=[])}function sr(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t].redundant){for(var r=0;r<e[t].redundant.length;r++)e[t].redundant[r].parentNode.removeChild(e[t].redundant[r]);e[t].redundant=[]}}function WH(e){wn(e),sr(e),wn(e)}function kr(e,t,r){var a;return t.hasOwnProperty(e)?t[e].redundant.length>0?(a=t[e].redundant[0],t[e].redundant.shift()):(a=document.createElementNS("http://www.w3.org/2000/svg",e),r.appendChild(a)):(a=document.createElementNS("http://www.w3.org/2000/svg",e),t[e]={used:[],redundant:[]},r.appendChild(a)),t[e].used.push(a),a}function Gc(e,t,r,a){var n;return t.hasOwnProperty(e)?t[e].redundant.length>0?(n=t[e].redundant[0],t[e].redundant.shift()):(n=document.createElement(e),a!==void 0?r.insertBefore(n,a):r.appendChild(n)):(n=document.createElement(e),t[e]={used:[],redundant:[]},a!==void 0?r.insertBefore(n,a):r.appendChild(n)),t[e].used.push(n),n}function ya(e,t,r,a,n,s){var o;if(r.style=="circle"?(o=kr("circle",a,n),o.setAttributeNS(null,"cx",e),o.setAttributeNS(null,"cy",t),o.setAttributeNS(null,"r",.5*r.size)):(o=kr("rect",a,n),o.setAttributeNS(null,"x",e-.5*r.size),o.setAttributeNS(null,"y",t-.5*r.size),o.setAttributeNS(null,"width",r.size),o.setAttributeNS(null,"height",r.size)),r.styles!==void 0&&o.setAttributeNS(null,"style",r.styles),o.setAttributeNS(null,"class",r.className+" vis-point"),s){var l=kr("text",a,n);s.xOffset&&(e=e+s.xOffset),s.yOffset&&(t=t+s.yOffset),s.content&&(l.textContent=s.content),s.className&&l.setAttributeNS(null,"class",s.className+" vis-label"),l.setAttributeNS(null,"x",e),l.setAttributeNS(null,"y",t)}return o}function nh(e,t,r,a,n,s,o,l){if(a!=0){a<0&&(a*=-1,t-=a);var d=kr("rect",s,o);d.setAttributeNS(null,"x",e-.5*r),d.setAttributeNS(null,"y",t),d.setAttributeNS(null,"width",r),d.setAttributeNS(null,"height",a),d.setAttributeNS(null,"class",n),l&&d.setAttributeNS(null,"style",l)}}function GH(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en":"en"}catch{return"en"}}function Ne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var zH=aw,UH=zH,KH=UH,qH=KH,Kw=qH,XH=K(Kw),QH=X,ZH=Db;QH({target:"Object",stat:!0},{setPrototypeOf:ZH});var JH=xe,eW=JH.Object.setPrototypeOf,tW=eW,rW=tW,nW=rW,iW=nW,aW=iW,sW=aW,qw=sW,ih=K(qw),oW=G0,lW=oW,dW=lW,cW=dW,uW=cW,Xw=K(uW);function ah(e,t){var r;return ah=ih?Xw(r=ih).call(r):function(n,s){return n.__proto__=s,n},ah(e,t)}function It(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=XH(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),td(e,"prototype",{writable:!1}),t&&ah(e,t)}function Gt(e,t){if(t&&(ne(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ne(e)}var hW=X0,fW=hW,pW=fW,vW=pW,Qw=vW,Eg=K(Qw);function ke(e){var t;return ke=ih?Xw(t=Eg).call(t):function(a){return a.__proto__||Eg(a)},ke(e)}function me(e,t,r){return t=C0(t),t in e?td(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Zw={exports:{}},Jw={exports:{}};(function(e){var t=of,r=N0;function a(n){"@babel/helpers - typeof";return e.exports=a=typeof t=="function"&&typeof r=="symbol"?function(s){return typeof s}:function(s){return s&&typeof t=="function"&&s.constructor===t&&s!==t.prototype?"symbol":typeof s},e.exports.__esModule=!0,e.exports.default=e.exports,a(n)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(Jw);var mW=Jw.exports,gW=z0,yW=gW,_W=yW,bW=_W,wW=bW,Sg=tt,EW=lf,SW=_i,kW=Bt,xW=function(e,t,r){for(var a=EW(t),n=kW.f,s=SW.f,o=0;o<a.length;o++){var l=a[o];!Sg(e,l)&&!(r&&Sg(r,l))&&n(e,l,s(t,l))}},TW=dt,$W=un,DW=function(e,t){TW(t)&&"cause"in t&&$W(e,"cause",t.cause)},NW=Ee,eE=Error,CW=NW("".replace),OW=function(e){return String(new eE(e).stack)}("zxcasd"),tE=/\n\s*at [^:]*:[^\n]*/,AW=tE.test(OW),IW=function(e,t){if(AW&&typeof e=="string"&&!eE.prepareStackTrace)for(;t--;)e=CW(e,tE,"");return e},PW=ge,MW=yi,RW=!PW(function(){var e=new Error("a");return"stack"in e?(Object.defineProperty(e,"stack",MW(1,7)),e.stack!==7):!0}),LW=un,VW=IW,FW=RW,kg=Error.captureStackTrace,YW=function(e,t,r,a){FW&&(kg?kg(e,t):LW(e,"stack",VW(r,a)))},jW=Mn,BW=ct,HW=ir,WW=Oa,GW=Ab,zW=Wt,xg=Oe,UW=Zh,KW=ed,Tg=Ob,qW=TypeError,ll=function(e,t){this.stopped=e,this.result=t},$g=ll.prototype,Si=function(e,t,r){var a=r&&r.that,n=!!(r&&r.AS_ENTRIES),s=!!(r&&r.IS_RECORD),o=!!(r&&r.IS_ITERATOR),l=!!(r&&r.INTERRUPTED),d=jW(t,a),c,f,v,m,g,b,S,w=function(T){return c&&Tg(c,"normal",T),new ll(!0,T)},k=function(T){return n?(HW(T),l?d(T[0],T[1],w):d(T[0],T[1])):l?d(T,w):d(T)};if(s)c=e.iterator;else if(o)c=e;else{if(f=KW(e),!f)throw new qW(WW(e)+" is not iterable");if(GW(f)){for(v=0,m=zW(e);m>v;v++)if(g=k(e[v]),g&&xg($g,g))return g;return new ll(!1)}c=UW(e,f)}for(b=s?e.next:c.next;!(S=BW(b,c)).done;){try{g=k(S.value)}catch(T){Tg(c,"throw",T)}if(typeof g=="object"&&g&&xg($g,g))return g}return new ll(!1)},XW=fr,QW=function(e,t){return e===void 0?arguments.length<2?"":t:XW(e)},ZW=X,JW=Oe,e6=Ys,kl=Db,t6=xW,rE=bi,zc=un,Uc=yi,r6=DW,n6=YW,i6=Si,a6=QW,s6=je,o6=s6("toStringTag"),xl=Error,l6=[].push,_a=function(t,r){var a=JW(Kc,this),n;kl?n=kl(new xl,a?e6(this):Kc):(n=a?this:rE(Kc),zc(n,o6,"Error")),r!==void 0&&zc(n,"message",a6(r)),n6(n,_a,n.stack,1),arguments.length>2&&r6(n,arguments[2]);var s=[];return i6(t,l6,{that:s}),zc(n,"errors",s),n};kl?kl(_a,xl):t6(_a,xl,{name:!0});var Kc=_a.prototype=rE(xl.prototype,{constructor:Uc(1,_a),message:Uc(1,""),name:Uc(1,"AggregateError")});ZW({global:!0},{AggregateError:_a});var d6=Ye,c6=dn,eo=c6(d6.process)==="process",u6=At,h6=ef,f6=je,p6=ot,Dg=f6("species"),nE=function(e){var t=u6(e);p6&&t&&!t[Dg]&&h6(t,Dg,{configurable:!0,get:function(){return this}})},v6=Oe,m6=TypeError,$f=function(e,t){if(v6(t,e))return e;throw new m6("Incorrect invocation")},g6=Jl,y6=Oa,_6=TypeError,iE=function(e){if(g6(e))return e;throw new _6(y6(e)+" is not a constructor")},Ng=ir,b6=iE,w6=$a,E6=je,S6=E6("species"),aE=function(e,t){var r=Ng(e).constructor,a;return r===void 0||w6(a=Ng(r)[S6])?t:b6(a)},k6=Pn,sE=/(?:ipad|iphone|ipod).*applewebkit/i.test(k6),Zt=Ye,x6=Ia,T6=Mn,Cg=ze,$6=tt,oE=ge,Og=Eb,D6=zs,Ag=Wh,N6=sw,C6=sE,O6=eo,sh=Zt.setImmediate,Ig=Zt.clearImmediate,A6=Zt.process,qc=Zt.Dispatch,I6=Zt.Function,Pg=Zt.MessageChannel,P6=Zt.String,Xc=0,hs={},Mg="onreadystatechange",Ts,zn,Qc,Zc;oE(function(){Ts=Zt.location});var Df=function(e){if($6(hs,e)){var t=hs[e];delete hs[e],t()}},Jc=function(e){return function(){Df(e)}},Rg=function(e){Df(e.data)},Lg=function(e){Zt.postMessage(P6(e),Ts.protocol+"//"+Ts.host)};(!sh||!Ig)&&(sh=function(t){N6(arguments.length,1);var r=Cg(t)?t:I6(t),a=D6(arguments,1);return hs[++Xc]=function(){x6(r,void 0,a)},zn(Xc),Xc},Ig=function(t){delete hs[t]},O6?zn=function(e){A6.nextTick(Jc(e))}:qc&&qc.now?zn=function(e){qc.now(Jc(e))}:Pg&&!C6?(Qc=new Pg,Zc=Qc.port2,Qc.port1.onmessage=Rg,zn=T6(Zc.postMessage,Zc)):Zt.addEventListener&&Cg(Zt.postMessage)&&!Zt.importScripts&&Ts&&Ts.protocol!=="file:"&&!oE(Lg)?(zn=Lg,Zt.addEventListener("message",Rg,!1)):Mg in Ag("script")?zn=function(e){Og.appendChild(Ag("script"))[Mg]=function(){Og.removeChild(this),Df(e)}}:zn=function(e){setTimeout(Jc(e),0)});var lE={set:sh},dE=function(){this.head=null,this.tail=null};dE.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;return t===null&&(this.tail=null),e.item}}};var cE=dE,M6=Pn,R6=/ipad|iphone|ipod/i.test(M6)&&typeof Pebble<"u",L6=Pn,V6=/web0s(?!.*chrome)/i.test(L6),fi=Ye,Vg=Mn,F6=_i.f,eu=lE.set,Y6=cE,j6=sE,B6=R6,H6=V6,tu=eo,Fg=fi.MutationObserver||fi.WebKitMutationObserver,Yg=fi.document,jg=fi.process,Wo=fi.Promise,Bg=F6(fi,"queueMicrotask"),oh=Bg&&Bg.value,ji,ru,nu,Go,Hg;if(!oh){var zo=new Y6,Uo=function(){var e,t;for(tu&&(e=jg.domain)&&e.exit();t=zo.get();)try{t()}catch(r){throw zo.head&&ji(),r}e&&e.enter()};!j6&&!tu&&!H6&&Fg&&Yg?(ru=!0,nu=Yg.createTextNode(""),new Fg(Uo).observe(nu,{characterData:!0}),ji=function(){nu.data=ru=!ru}):!B6&&Wo&&Wo.resolve?(Go=Wo.resolve(void 0),Go.constructor=Wo,Hg=Vg(Go.then,Go),ji=function(){Hg(Uo)}):tu?ji=function(){jg.nextTick(Uo)}:(eu=Vg(eu,fi),ji=function(){eu(Uo)}),oh=function(e){zo.head||ji(),zo.add(e)}}var W6=oh,G6=function(e,t){try{arguments.length===1?console.error(e):console.error(e,t)}catch{}},Fa=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},z6=Ye,Ya=z6.Promise,uE=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",U6=uE,K6=eo,q6=!U6&&!K6&&typeof window=="object"&&typeof document=="object",X6=Ye,fs=Ya,Q6=ze,Z6=yb,J6=Ib,eG=je,tG=q6,rG=uE,iu=Na,Wg=fs&&fs.prototype,nG=eG("species"),Gg=!1,hE=Q6(X6.PromiseRejectionEvent),iG=Z6("Promise",function(){var e=J6(fs),t=e!==String(fs);if(!t&&iu===66||!(Wg.catch&&Wg.finally))return!0;if(!iu||iu<51||!/native code/.test(e)){var r=new fs(function(s){s(1)}),a=function(s){s(function(){},function(){})},n=r.constructor={};if(n[nG]=a,Gg=r.then(function(){})instanceof a,!Gg)return!0}return!t&&(tG||rG)&&!hE}),to={CONSTRUCTOR:iG,REJECTION_EVENT:hE},jr={},zg=Ht,aG=TypeError,sG=function(e){var t,r;this.promise=new e(function(a,n){if(t!==void 0||r!==void 0)throw new aG("Bad Promise constructor");t=a,r=n}),this.resolve=zg(t),this.reject=zg(r)};jr.f=function(e){return new sG(e)};var oG=X,Tl=eo,Cn=Ye,ro=ct,lG=Pa,dG=wi,cG=nE,uG=Ht,lh=ze,hG=dt,fG=$f,pG=aE,fE=lE.set,Nf=W6,vG=G6,mG=Fa,gG=cE,pE=Aa,dh=Ya,vE=to,mE=jr,fd="Promise",gE=vE.CONSTRUCTOR,yG=vE.REJECTION_EVENT,au=pE.getterFor(fd),_G=pE.set,bG=dh&&dh.prototype,na=dh,su=bG,yE=Cn.TypeError,ch=Cn.document,Cf=Cn.process,uh=mE.f,wG=uh,EG=!!(ch&&ch.createEvent&&Cn.dispatchEvent),_E="unhandledrejection",SG="rejectionhandled",Ug=0,bE=1,kG=2,Of=1,wE=2,Ko,Kg,xG,EE=function(e){var t;return hG(e)&&lh(t=e.then)?t:!1},SE=function(e,t){var r=t.value,a=t.state===bE,n=a?e.ok:e.fail,s=e.resolve,o=e.reject,l=e.domain,d,c,f;try{n?(a||(t.rejection===wE&&$G(t),t.rejection=Of),n===!0?d=r:(l&&l.enter(),d=n(r),l&&(l.exit(),f=!0)),d===e.promise?o(new yE("Promise-chain cycle")):(c=EE(d))?ro(c,d,s,o):s(d)):o(r)}catch(v){l&&!f&&l.exit(),o(v)}},kE=function(e,t){e.notified||(e.notified=!0,Nf(function(){for(var r=e.reactions,a;a=r.get();)SE(a,e);e.notified=!1,t&&!e.rejection&&TG(e)}))},xE=function(e,t,r){var a,n;EG?(a=ch.createEvent("Event"),a.promise=t,a.reason=r,a.initEvent(e,!1,!0),Cn.dispatchEvent(a)):a={promise:t,reason:r},!yG&&(n=Cn["on"+e])?n(a):e===_E&&vG("Unhandled promise rejection",r)},TG=function(e){ro(fE,Cn,function(){var t=e.facade,r=e.value,a=qg(e),n;if(a&&(n=mG(function(){Tl?Cf.emit("unhandledRejection",r,t):xE(_E,t,r)}),e.rejection=Tl||qg(e)?wE:Of,n.error))throw n.value})},qg=function(e){return e.rejection!==Of&&!e.parent},$G=function(e){ro(fE,Cn,function(){var t=e.facade;Tl?Cf.emit("rejectionHandled",t):xE(SG,t,e.value)})},ia=function(e,t,r){return function(a){e(t,a,r)}},aa=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=kG,kE(e,!0))},hh=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new yE("Promise can't be resolved itself");var a=EE(t);a?Nf(function(){var n={done:!1};try{ro(a,t,ia(hh,n,e),ia(aa,n,e))}catch(s){aa(n,s,e)}}):(e.value=t,e.state=bE,kE(e,!1))}catch(n){aa({done:!1},n,e)}}};gE&&(na=function(t){fG(this,su),uG(t),ro(Ko,this);var r=au(this);try{t(ia(hh,r),ia(aa,r))}catch(a){aa(r,a)}},su=na.prototype,Ko=function(t){_G(this,{type:fd,done:!1,notified:!1,parent:!1,reactions:new gG,rejection:!1,state:Ug,value:void 0})},Ko.prototype=lG(su,"then",function(t,r){var a=au(this),n=uh(pG(this,na));return a.parent=!0,n.ok=lh(t)?t:!0,n.fail=lh(r)&&r,n.domain=Tl?Cf.domain:void 0,a.state===Ug?a.reactions.add(n):Nf(function(){SE(n,a)}),n.promise}),Kg=function(){var e=new Ko,t=au(e);this.promise=e,this.resolve=ia(hh,t),this.reject=ia(aa,t)},mE.f=uh=function(e){return e===na||e===xG?new Kg(e):wG(e)});oG({global:!0,wrap:!0,forced:gE},{Promise:na});dG(na,fd,!1,!0);cG(fd);var DG=Ya,NG=Yb,CG=to.CONSTRUCTOR,pd=CG||!NG(function(e){DG.all(e).then(void 0,function(){})}),OG=X,AG=ct,IG=Ht,PG=jr,MG=Fa,RG=Si,LG=pd;OG({target:"Promise",stat:!0,forced:LG},{all:function(t){var r=this,a=PG.f(r),n=a.resolve,s=a.reject,o=MG(function(){var l=IG(r.resolve),d=[],c=0,f=1;RG(t,function(v){var m=c++,g=!1;f++,AG(l,r,v).then(function(b){g||(g=!0,d[m]=b,--f||n(d))},s)}),--f||n(d)});return o.error&&s(o.value),a.promise}});var VG=X,FG=to.CONSTRUCTOR,Xg=Ya;Xg&&Xg.prototype;VG({target:"Promise",proto:!0,forced:FG,real:!0},{catch:function(e){return this.then(void 0,e)}});var YG=X,jG=ct,BG=Ht,HG=jr,WG=Fa,GG=Si,zG=pd;YG({target:"Promise",stat:!0,forced:zG},{race:function(t){var r=this,a=HG.f(r),n=a.reject,s=WG(function(){var o=BG(r.resolve);GG(t,function(l){jG(o,r,l).then(a.resolve,n)})});return s.error&&n(s.value),a.promise}});var UG=X,KG=ct,qG=jr,XG=to.CONSTRUCTOR;UG({target:"Promise",stat:!0,forced:XG},{reject:function(t){var r=qG.f(this);return KG(r.reject,void 0,t),r.promise}});var QG=ir,ZG=dt,JG=jr,TE=function(e,t){if(QG(e),ZG(t)&&t.constructor===e)return t;var r=JG.f(e),a=r.resolve;return a(t),r.promise},ez=X,tz=At,rz=_O,nz=Ya,iz=to.CONSTRUCTOR,az=TE,sz=tz("Promise"),oz=!iz;ez({target:"Promise",stat:!0,forced:rz},{resolve:function(t){return az(oz&&this===sz?nz:this,t)}});var lz=X,dz=ct,cz=Ht,uz=jr,hz=Fa,fz=Si,pz=pd;lz({target:"Promise",stat:!0,forced:pz},{allSettled:function(t){var r=this,a=uz.f(r),n=a.resolve,s=a.reject,o=hz(function(){var l=cz(r.resolve),d=[],c=0,f=1;fz(t,function(v){var m=c++,g=!1;f++,dz(l,r,v).then(function(b){g||(g=!0,d[m]={status:"fulfilled",value:b},--f||n(d))},function(b){g||(g=!0,d[m]={status:"rejected",reason:b},--f||n(d))})}),--f||n(d)});return o.error&&s(o.value),a.promise}});var vz=X,mz=ct,gz=Ht,yz=At,_z=jr,bz=Fa,wz=Si,Ez=pd,Qg="No one promise resolved";vz({target:"Promise",stat:!0,forced:Ez},{any:function(t){var r=this,a=yz("AggregateError"),n=_z.f(r),s=n.resolve,o=n.reject,l=bz(function(){var d=gz(r.resolve),c=[],f=0,v=1,m=!1;wz(t,function(g){var b=f++,S=!1;v++,mz(d,r,g).then(function(w){S||m||(m=!0,s(w))},function(w){S||m||(S=!0,c[b]=w,--v||o(new a(c,Qg)))})}),--v||o(new a(c,Qg))});return l.error&&o(l.value),n.promise}});var Sz=X,fh=Ya,kz=ge,xz=At,Tz=ze,$z=aE,Zg=TE,Dz=fh&&fh.prototype,Nz=!!fh&&kz(function(){Dz.finally.call({then:function(){}},function(){})});Sz({target:"Promise",proto:!0,real:!0,forced:Nz},{finally:function(e){var t=$z(this,xz("Promise")),r=Tz(e);return this.then(r?function(a){return Zg(t,e()).then(function(){return a})}:e,r?function(a){return Zg(t,e()).then(function(){throw a})}:e)}});var Cz=xe,Oz=Cz.Promise,Az=Oz,Iz=Az,Pz=X,Mz=jr;Pz({target:"Promise",stat:!0},{withResolvers:function(){var t=Mz.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var Rz=Iz,Lz=Rz,Vz=X,Fz=jr,Yz=Fa;Vz({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Fz.f(this),r=Yz(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var jz=Lz,Bz=jz,Hz=Bz,Wz=U0,Gz=Wz,zz=Gz,Uz=zz,Kz=Uz;(function(e){var t=mW.default,r=qb,a=of,n=Kw,s=Qw,o=wW,l=P0,d=qw,c=Hz,f=Kz,v=R0;function m(){e.exports=m=function(){return b},e.exports.__esModule=!0,e.exports.default=e.exports;var g,b={},S=Object.prototype,w=S.hasOwnProperty,k=r||function(W,F,B){W[F]=B.value},T=typeof a=="function"?a:{},D=T.iterator||"@@iterator",N=T.asyncIterator||"@@asyncIterator",L=T.toStringTag||"@@toStringTag";function A(W,F,B){return r(W,F,{value:B,enumerable:!0,configurable:!0,writable:!0}),W[F]}try{A({},"")}catch{A=function(B,Q,ie){return B[Q]=ie}}function R(W,F,B,Q){var ie=F&&F.prototype instanceof se?F:se,re=n(ie.prototype),Re=new Or(Q||[]);return k(re,"_invoke",{value:Cr(W,B,Re)}),re}function C(W,F,B){try{return{type:"normal",arg:W.call(F,B)}}catch(Q){return{type:"throw",arg:Q}}}b.wrap=R;var j="suspendedStart",O="suspendedYield",M="executing",H="completed",z={};function se(){}function _e(){}function be(){}var he={};A(he,D,function(){return this});var rt=s,ut=rt&&rt(rt(mt([])));ut&&ut!==S&&w.call(ut,D)&&(he=ut);var Ie=be.prototype=se.prototype=n(he);function Mt(W){var F;o(F=["next","throw","return"]).call(F,function(B){A(W,B,function(Q){return this._invoke(B,Q)})})}function ht(W,F){function B(ie,re,Re,Je){var nt=C(W[ie],W,re);if(nt.type!=="throw"){var mr=nt.arg,ar=mr.value;return ar&&t(ar)=="object"&&w.call(ar,"__await")?F.resolve(ar.__await).then(function(Ke){B("next",Ke,Re,Je)},function(Ke){B("throw",Ke,Re,Je)}):F.resolve(ar).then(function(Ke){mr.value=Ke,Re(mr)},function(Ke){return B("throw",Ke,Re,Je)})}Je(nt.arg)}var Q;k(this,"_invoke",{value:function(re,Re){function Je(){return new F(function(nt,mr){B(re,Re,nt,mr)})}return Q=Q?Q.then(Je,Je):Je()}})}function Cr(W,F,B){var Q=j;return function(ie,re){if(Q===M)throw new Error("Generator is already running");if(Q===H){if(ie==="throw")throw re;return{value:g,done:!0}}for(B.method=ie,B.arg=re;;){var Re=B.delegate;if(Re){var Je=vt(Re,B);if(Je){if(Je===z)continue;return Je}}if(B.method==="next")B.sent=B._sent=B.arg;else if(B.method==="throw"){if(Q===j)throw Q=H,B.arg;B.dispatchException(B.arg)}else B.method==="return"&&B.abrupt("return",B.arg);Q=M;var nt=C(W,F,B);if(nt.type==="normal"){if(Q=B.done?H:O,nt.arg===z)continue;return{value:nt.arg,done:B.done}}nt.type==="throw"&&(Q=H,B.method="throw",B.arg=nt.arg)}}}function vt(W,F){var B=F.method,Q=W.iterator[B];if(Q===g)return F.delegate=null,B==="throw"&&W.iterator.return&&(F.method="return",F.arg=g,vt(W,F),F.method==="throw")||B!=="return"&&(F.method="throw",F.arg=new TypeError("The iterator does not provide a '"+B+"' method")),z;var ie=C(Q,W.iterator,F.arg);if(ie.type==="throw")return F.method="throw",F.arg=ie.arg,F.delegate=null,z;var re=ie.arg;return re?re.done?(F[W.resultName]=re.value,F.next=W.nextLoc,F.method!=="return"&&(F.method="next",F.arg=g),F.delegate=null,z):re:(F.method="throw",F.arg=new TypeError("iterator result is not an object"),F.delegate=null,z)}function q(W){var F,B={tryLoc:W[0]};1 in W&&(B.catchLoc=W[1]),2 in W&&(B.finallyLoc=W[2],B.afterLoc=W[3]),l(F=this.tryEntries).call(F,B)}function vr(W){var F=W.completion||{};F.type="normal",delete F.arg,W.completion=F}function Or(W){this.tryEntries=[{tryLoc:"root"}],o(W).call(W,q,this),this.reset(!0)}function mt(W){if(W||W===""){var F=W[D];if(F)return F.call(W);if(typeof W.next=="function")return W;if(!isNaN(W.length)){var B=-1,Q=function ie(){for(;++B<W.length;)if(w.call(W,B))return ie.value=W[B],ie.done=!1,ie;return ie.value=g,ie.done=!0,ie};return Q.next=Q}}throw new TypeError(t(W)+" is not iterable")}return _e.prototype=be,k(Ie,"constructor",{value:be,configurable:!0}),k(be,"constructor",{value:_e,configurable:!0}),_e.displayName=A(be,L,"GeneratorFunction"),b.isGeneratorFunction=function(W){var F=typeof W=="function"&&W.constructor;return!!F&&(F===_e||(F.displayName||F.name)==="GeneratorFunction")},b.mark=function(W){return d?d(W,be):(W.__proto__=be,A(W,L,"GeneratorFunction")),W.prototype=n(Ie),W},b.awrap=function(W){return{__await:W}},Mt(ht.prototype),A(ht.prototype,N,function(){return this}),b.AsyncIterator=ht,b.async=function(W,F,B,Q,ie){ie===void 0&&(ie=c);var re=new ht(R(W,F,B,Q),ie);return b.isGeneratorFunction(F)?re:re.next().then(function(Re){return Re.done?Re.value:re.next()})},Mt(Ie),A(Ie,L,"Generator"),A(Ie,D,function(){return this}),A(Ie,"toString",function(){return"[object Generator]"}),b.keys=function(W){var F=Object(W),B=[];for(var Q in F)l(B).call(B,Q);return f(B).call(B),function ie(){for(;B.length;){var re=B.pop();if(re in F)return ie.value=re,ie.done=!1,ie}return ie.done=!0,ie}},b.values=mt,Or.prototype={constructor:Or,reset:function(F){var B;if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.method="next",this.arg=g,o(B=this.tryEntries).call(B,vr),!F)for(var Q in this)Q.charAt(0)==="t"&&w.call(this,Q)&&!isNaN(+v(Q).call(Q,1))&&(this[Q]=g)},stop:function(){this.done=!0;var F=this.tryEntries[0].completion;if(F.type==="throw")throw F.arg;return this.rval},dispatchException:function(F){if(this.done)throw F;var B=this;function Q(mr,ar){return Re.type="throw",Re.arg=F,B.next=mr,ar&&(B.method="next",B.arg=g),!!ar}for(var ie=this.tryEntries.length-1;ie>=0;--ie){var re=this.tryEntries[ie],Re=re.completion;if(re.tryLoc==="root")return Q("end");if(re.tryLoc<=this.prev){var Je=w.call(re,"catchLoc"),nt=w.call(re,"finallyLoc");if(Je&&nt){if(this.prev<re.catchLoc)return Q(re.catchLoc,!0);if(this.prev<re.finallyLoc)return Q(re.finallyLoc)}else if(Je){if(this.prev<re.catchLoc)return Q(re.catchLoc,!0)}else{if(!nt)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return Q(re.finallyLoc)}}}},abrupt:function(F,B){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var ie=this.tryEntries[Q];if(ie.tryLoc<=this.prev&&w.call(ie,"finallyLoc")&&this.prev<ie.finallyLoc){var re=ie;break}}re&&(F==="break"||F==="continue")&&re.tryLoc<=B&&B<=re.finallyLoc&&(re=null);var Re=re?re.completion:{};return Re.type=F,Re.arg=B,re?(this.method="next",this.next=re.finallyLoc,z):this.complete(Re)},complete:function(F,B){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&B&&(this.next=B),z},finish:function(F){for(var B=this.tryEntries.length-1;B>=0;--B){var Q=this.tryEntries[B];if(Q.finallyLoc===F)return this.complete(Q.completion,Q.afterLoc),vr(Q),z}},catch:function(F){for(var B=this.tryEntries.length-1;B>=0;--B){var Q=this.tryEntries[B];if(Q.tryLoc===F){var ie=Q.completion;if(ie.type==="throw"){var re=ie.arg;vr(Q)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(F,B,Q){return this.delegate={iterator:mt(F),resultName:B,nextLoc:Q},this.method==="next"&&(this.arg=g),z}},b}e.exports=m,e.exports.__esModule=!0,e.exports.default=e.exports})(Zw);var qz=Zw.exports,dl=qz(),Xz=dl;try{regeneratorRuntime=dl}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=dl:Function("r","regeneratorRuntime = r")(dl)}var Rt=K(Xz),Qz=Ht,Zz=Ot,Jz=Ql,eU=Wt,tU=TypeError,rU=function(e){return function(t,r,a,n){Qz(r);var s=Zz(t),o=Jz(s),l=eU(s),d=e?l-1:0,c=e?-1:1;if(a<2)for(;;){if(d in o){n=o[d],d+=c;break}if(d+=c,e?d<0:l<=d)throw new tU("Reduce of empty array with no initial value")}for(;e?d>=0:l>d;d+=c)d in o&&(n=r(n,o[d],d,s));return n}},nU={left:rU(!1)},iU=X,aU=nU.left,sU=La,Jg=Na,oU=eo,lU=!oU&&Jg>79&&Jg<83,dU=lU||!sU("reduce");iU({target:"Array",proto:!0,forced:dU},{reduce:function(t){var r=arguments.length;return aU(this,t,r,r>1?arguments[1]:void 0)}});var cU=We,uU=cU("Array").reduce,hU=Oe,fU=uU,ou=Array.prototype,pU=function(e){var t=e.reduce;return e===ou||hU(ou,e)&&t===ou.reduce?fU:t},vU=pU,mU=vU,gU=mU,vd=K(gU),yU=Vn,_U=Wt,bU=rd,wU=Mn,$E=function(e,t,r,a,n,s,o,l){for(var d=n,c=0,f=o?wU(o,l):!1,v,m;c<a;)c in r&&(v=f?f(r[c],c,t):r[c],s>0&&yU(v)?(m=_U(v),d=$E(e,t,v,m,d,s-1)-1):(bU(d+1),e[d]=v),d++),c++;return d},EU=$E,SU=X,kU=EU,xU=Ht,TU=Ot,$U=Wt,DU=nd;SU({target:"Array",proto:!0},{flatMap:function(t){var r=TU(this),a=$U(r),n;return xU(t),n=DU(r,0),n.length=kU(n,r,r,a,0,1,t,arguments.length>1?arguments[1]:void 0),n}});var NU=We,CU=NU("Array").flatMap,OU=Oe,AU=CU,lu=Array.prototype,IU=function(e){var t=e.flatMap;return e===lu||OU(lu,e)&&t===lu.flatMap?AU:t},PU=IU,MU=PU,RU=MU,LU=K(RU),DE={exports:{}},VU=ge,FU=VU(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),YU=ge,jU=dt,BU=dn,ey=FU,cl=Object.isExtensible,HU=YU(function(){cl(1)}),WU=HU||ey?function(t){return!jU(t)||ey&&BU(t)==="ArrayBuffer"?!1:cl?cl(t):!0}:cl,GU=ge,zU=!GU(function(){return Object.isExtensible(Object.preventExtensions({}))}),UU=X,KU=Ee,qU=Ms,XU=dt,Af=tt,QU=Bt.f,ty=Bs,ZU=Jh,If=WU,JU=Kl,e9=zU,NE=!1,sn=JU("meta"),t9=0,Pf=function(e){QU(e,sn,{value:{objectID:"O"+t9++,weakData:{}}})},r9=function(e,t){if(!XU(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Af(e,sn)){if(!If(e))return"F";if(!t)return"E";Pf(e)}return e[sn].objectID},n9=function(e,t){if(!Af(e,sn)){if(!If(e))return!0;if(!t)return!1;Pf(e)}return e[sn].weakData},i9=function(e){return e9&&NE&&If(e)&&!Af(e,sn)&&Pf(e),e},a9=function(){s9.enable=function(){},NE=!0;var e=ty.f,t=KU([].splice),r={};r[sn]=1,e(r).length&&(ty.f=function(a){for(var n=e(a),s=0,o=n.length;s<o;s++)if(n[s]===sn){t(n,s,1);break}return n},UU({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ZU.f}))},s9=DE.exports={enable:a9,fastKey:r9,getWeakData:n9,onFreeze:i9};qU[sn]=!0;var CE=DE.exports,o9=X,l9=Ye,d9=CE,c9=ge,u9=un,h9=Si,f9=$f,p9=ze,v9=dt,m9=$a,g9=wi,y9=Bt.f,_9=hn.forEach,b9=ot,OE=Aa,w9=OE.set,E9=OE.getterFor,AE=function(e,t,r){var a=e.indexOf("Map")!==-1,n=e.indexOf("Weak")!==-1,s=a?"set":"add",o=l9[e],l=o&&o.prototype,d={},c;if(!b9||!p9(o)||!(n||l.forEach&&!c9(function(){new o().entries().next()})))c=r.getConstructor(t,e,a,s),d9.enable();else{c=t(function(m,g){w9(f9(m,f),{type:e,collection:new o}),m9(g)||h9(g,m[s],{that:m,AS_ENTRIES:a})});var f=c.prototype,v=E9(e);_9(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(m){var g=m==="add"||m==="set";m in l&&!(n&&m==="clear")&&u9(f,m,function(b,S){var w=v(this).collection;if(!g&&n&&!v9(b))return m==="get"?void 0:!1;var k=w[m](b===0?0:b,S);return g?this:k})}),n||y9(f,"size",{configurable:!0,get:function(){return v(this).collection.size}})}return g9(c,e,!1,!0),d[e]=c,o9({global:!0,forced:!0},d),n||r.setStrong(c,e,a),c},S9=Pa,k9=function(e,t,r){for(var a in t)r&&r.unsafe&&e[a]?e[a]=t[a]:S9(e,a,t[a],r);return e},x9=bi,T9=ef,ry=k9,$9=Mn,D9=$f,N9=$a,C9=Si,O9=qh,qo=Xh,A9=nE,es=ot,ny=CE.fastKey,IE=Aa,iy=IE.set,du=IE.getterFor,PE={getConstructor:function(e,t,r,a){var n=e(function(c,f){D9(c,s),iy(c,{type:t,index:x9(null),first:void 0,last:void 0,size:0}),es||(c.size=0),N9(f)||C9(f,c[a],{that:c,AS_ENTRIES:r})}),s=n.prototype,o=du(t),l=function(c,f,v){var m=o(c),g=d(c,f),b,S;return g?g.value=v:(m.last=g={index:S=ny(f,!0),key:f,value:v,previous:b=m.last,next:void 0,removed:!1},m.first||(m.first=g),b&&(b.next=g),es?m.size++:c.size++,S!=="F"&&(m.index[S]=g)),c},d=function(c,f){var v=o(c),m=ny(f),g;if(m!=="F")return v.index[m];for(g=v.first;g;g=g.next)if(g.key===f)return g};return ry(s,{clear:function(){for(var f=this,v=o(f),m=v.index,g=v.first;g;)g.removed=!0,g.previous&&(g.previous=g.previous.next=void 0),delete m[g.index],g=g.next;v.first=v.last=void 0,es?v.size=0:f.size=0},delete:function(c){var f=this,v=o(f),m=d(f,c);if(m){var g=m.next,b=m.previous;delete v.index[m.index],m.removed=!0,b&&(b.next=g),g&&(g.previous=b),v.first===m&&(v.first=g),v.last===m&&(v.last=b),es?v.size--:f.size--}return!!m},forEach:function(f){for(var v=o(this),m=$9(f,arguments.length>1?arguments[1]:void 0),g;g=g?g.next:v.first;)for(m(g.value,g.key,this);g&&g.removed;)g=g.previous},has:function(f){return!!d(this,f)}}),ry(s,r?{get:function(f){var v=d(this,f);return v&&v.value},set:function(f,v){return l(this,f===0?0:f,v)}}:{add:function(f){return l(this,f=f===0?0:f,f)}}),es&&T9(s,"size",{configurable:!0,get:function(){return o(this).size}}),n},setStrong:function(e,t,r){var a=t+" Iterator",n=du(t),s=du(a);O9(e,t,function(o,l){iy(this,{type:a,target:o,state:n(o),kind:l,last:void 0})},function(){for(var o=s(this),l=o.kind,d=o.last;d&&d.removed;)d=d.previous;return!o.target||!(o.last=d=d?d.next:o.state.first)?(o.target=void 0,qo(void 0,!0)):qo(l==="keys"?d.key:l==="values"?d.value:[d.key,d.value],!1)},r?"entries":"values",!r,!0),A9(t)}},I9=AE,P9=PE;I9("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},P9);var M9=xe,R9=M9.Map,L9=R9,V9=L9,F9=V9,ME=K(F9),Y9=AE,j9=PE;Y9("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},j9);var B9=xe,H9=B9.Set,W9=H9,G9=W9,z9=G9,xn=K(z9),U9=D0,ii=K(U9),K9=Zh,q9=K9,X9=q9,Q9=X9,Z9=Q9,J9=Z9,e7=J9,t7=e7,r7=t7,n7=r7,cu=K(n7),ay=Qb,i7=Math.floor,ph=function(e,t){var r=e.length,a=i7(r/2);return r<8?a7(e,t):s7(e,ph(ay(e,0,a),t),ph(ay(e,a),t),t)},a7=function(e,t){for(var r=e.length,a=1,n,s;a<r;){for(s=a,n=e[a];s&&t(e[s-1],n)>0;)e[s]=e[--s];s!==a++&&(e[s]=n)}return e},s7=function(e,t,r,a){for(var n=t.length,s=r.length,o=0,l=0;o<n||l<s;)e[o+l]=o<n&&l<s?a(t[o],r[l])<=0?t[o++]:r[l++]:o<n?t[o++]:r[l++];return e},o7=ph,l7=Pn,sy=l7.match(/firefox\/(\d+)/i),d7=!!sy&&+sy[1],c7=Pn,u7=/MSIE|Trident/.test(c7),h7=Pn,oy=h7.match(/AppleWebKit\/(\d+)\./),f7=!!oy&&+oy[1],p7=X,RE=Ee,v7=Ht,m7=Ot,ly=Wt,g7=K0,dy=fr,Mf=ge,y7=o7,_7=La,cy=d7,b7=u7,uy=Na,hy=f7,En=[],fy=RE(En.sort),w7=RE(En.push),E7=Mf(function(){En.sort(void 0)}),S7=Mf(function(){En.sort(null)}),k7=_7("sort"),LE=!Mf(function(){if(uy)return uy<70;if(!(cy&&cy>3)){if(b7)return!0;if(hy)return hy<603;var e="",t,r,a,n;for(t=65;t<76;t++){switch(r=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:a=3;break;case 68:case 71:a=4;break;default:a=2}for(n=0;n<47;n++)En.push({k:r+n,v:a})}for(En.sort(function(s,o){return o.v-s.v}),n=0;n<En.length;n++)r=En[n].k.charAt(0),e.charAt(e.length-1)!==r&&(e+=r);return e!=="DGBEFHACIJK"}}),x7=E7||!S7||!k7||!LE,T7=function(e){return function(t,r){return r===void 0?-1:t===void 0?1:e!==void 0?+e(t,r)||0:dy(t)>dy(r)?1:-1}};p7({target:"Array",proto:!0,forced:x7},{sort:function(t){t!==void 0&&v7(t);var r=m7(this);if(LE)return t===void 0?fy(r):fy(r,t);var a=[],n=ly(r),s,o;for(o=0;o<n;o++)o in r&&w7(a,r[o]);for(y7(a,T7(t)),s=ly(a),o=0;o<s;)r[o]=a[o++];for(;o<n;)g7(r,o++);return r}});var $7=We,D7=$7("Array").sort,N7=Oe,C7=D7,uu=Array.prototype,O7=function(e){var t=e.sort;return e===uu||N7(uu,e)&&t===uu.sort?C7:t},A7=O7,I7=A7,P7=I7,Ze=K(P7),M7=X,R7=hn.some,L7=La,V7=L7("some");M7({target:"Array",proto:!0,forced:!V7},{some:function(t){return R7(this,t,arguments.length>1?arguments[1]:void 0)}});var F7=We,Y7=F7("Array").some,j7=Oe,B7=Y7,hu=Array.prototype,H7=function(e){var t=e.some;return e===hu||j7(hu,e)&&t===hu.some?B7:t},W7=H7,G7=W7,z7=G7,Rf=K(z7),U7=We,K7=U7("Array").keys,q7=K7,X7=q7,Q7=cn,Z7=tt,J7=Oe,eK=X7,fu=Array.prototype,tK={DOMTokenList:!0,NodeList:!0},rK=function(e){var t=e.keys;return e===fu||J7(fu,e)&&t===fu.keys||Z7(tK,Q7(e))?eK:t},nK=rK,Kn=K(nK),iK=We,aK=iK("Array").values,sK=aK,oK=sK,lK=cn,dK=tt,cK=Oe,uK=oK,pu=Array.prototype,hK={DOMTokenList:!0,NodeList:!0},fK=function(e){var t=e.values;return e===pu||cK(pu,e)&&t===pu.values||dK(hK,lK(e))?uK:t},pK=fK,py=K(pK),vK=We,mK=vK("Array").entries,gK=mK,yK=gK,_K=cn,bK=tt,wK=Oe,EK=yK,vu=Array.prototype,SK={DOMTokenList:!0,NodeList:!0},kK=function(e){var t=e.entries;return e===vu||wK(vu,e)&&t===vu.entries||bK(SK,_K(e))?EK:t},xK=kK,TK=K(xK),$K=Kb,md=K($K),DK=X,NK=At,mu=Ia,CK=W0,vy=iE,OK=ir,my=dt,AK=bi,VE=ge,Lf=NK("Reflect","construct"),IK=Object.prototype,PK=[].push,FE=VE(function(){function e(){}return!(Lf(function(){},[],e)instanceof e)}),YE=!VE(function(){Lf(function(){})}),gy=FE||YE;DK({target:"Reflect",stat:!0,forced:gy,sham:gy},{construct:function(t,r){vy(t),OK(r);var a=arguments.length<3?t:vy(arguments[2]);if(YE&&!FE)return Lf(t,r,a);if(t===a){switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3])}var n=[null];return mu(PK,n,r),new(mu(CK,t,n))}var s=a.prototype,o=AK(my(s)?s:IK),l=mu(t,o,r);return my(l)?l:o}});var MK=xe,RK=MK.Reflect.construct,LK=RK,VK=LK,FK=VK,Z=K(FK),YK=xe,jK=YK.Object.getOwnPropertySymbols,BK=jK,HK=BK,WK=HK,$l=K(WK),jE={exports:{}},GK=X,zK=ge,UK=Dr,BE=_i.f,HE=ot,KK=!HE||zK(function(){BE(1)});GK({target:"Object",stat:!0,forced:KK,sham:!HE},{getOwnPropertyDescriptor:function(t,r){return BE(UK(t),r)}});var qK=xe,WE=qK.Object,XK=jE.exports=function(t,r){return WE.getOwnPropertyDescriptor(t,r)};WE.getOwnPropertyDescriptor.sham&&(XK.sham=!0);var QK=jE.exports,ZK=QK,JK=ZK,eq=JK,gd=K(eq),tq=X,rq=ot,nq=lf,iq=Dr,aq=_i,sq=Ra;tq({target:"Object",stat:!0,sham:!rq},{getOwnPropertyDescriptors:function(t){for(var r=iq(t),a=aq.f,n=nq(r),s={},o=0,l,d;n.length>o;)d=a(r,l=n[o++]),d!==void 0&&sq(s,l,d);return s}});var oq=xe,lq=oq.Object.getOwnPropertyDescriptors,dq=lq,cq=dq,uq=cq,Dl=K(uq),GE={exports:{}},hq=X,fq=ot,yy=Zl.f;hq({target:"Object",stat:!0,forced:Object.defineProperties!==yy,sham:!fq},{defineProperties:yy});var pq=xe,zE=pq.Object,vq=GE.exports=function(t,r){return zE.defineProperties(t,r)};zE.defineProperties.sham&&(vq.sham=!0);var mq=GE.exports,gq=mq,yq=gq,_q=yq,UE=K(_q);let Xo;const bq=new Uint8Array(16);function wq(){if(!Xo&&(Xo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Xo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Xo(bq)}const ft=[];for(let e=0;e<256;++e)ft.push((e+256).toString(16).slice(1));function Eq(e,t=0){return ft[e[t+0]]+ft[e[t+1]]+ft[e[t+2]]+ft[e[t+3]]+"-"+ft[e[t+4]]+ft[e[t+5]]+"-"+ft[e[t+6]]+ft[e[t+7]]+"-"+ft[e[t+8]]+ft[e[t+9]]+"-"+ft[e[t+10]]+ft[e[t+11]]+ft[e[t+12]]+ft[e[t+13]]+ft[e[t+14]]+ft[e[t+15]]}const Sq=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var _y={randomUUID:Sq};function ai(e,t,r){if(_y.randomUUID&&!e)return _y.randomUUID();e=e||{};const a=e.random||(e.rng||wq)();return a[6]=a[6]&15|64,a[8]=a[8]&63|128,Eq(a)}var KE;function by(e,t){var r=st(e);if($l){var a=$l(e);t&&(a=te(a).call(a,function(n){return gd(e,n).enumerable})),r.push.apply(r,a)}return r}function wy(e){for(var t=1;t<arguments.length;t++){var r,a,n=arguments[t]!=null?arguments[t]:{};t%2?G(r=by(Object(n),!0)).call(r,function(s){me(e,s,n[s])}):Dl?UE(e,Dl(n)):G(a=by(Object(n))).call(a,function(s){md(e,s,gd(n,s))})}return e}function qE(e){var t=kq();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function kq(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}function Lt(e,t){var r=typeof fn<"u"&&Ln(e)||e["@@iterator"];if(!r){if(ae(e)||(r=xq(e))||t){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(c){throw c},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
65
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(o)throw l}}}}function xq(e,t){var r;if(e){if(typeof e=="string")return Ey(e,t);var a=bt(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Rn(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Ey(e,t)}}function Ey(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function Tq(e){return new Dq(e)}var $q=function(){function e(t,r,a){var n,s,o;fe(this,e),me(this,"_source",void 0),me(this,"_transformers",void 0),me(this,"_target",void 0),me(this,"_listeners",{add:P(n=this._add).call(n,this),remove:P(s=this._remove).call(s,this),update:P(o=this._update).call(o,this)}),this._source=t,this._transformers=r,this._target=a}return pe(e,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(r){var a;return vd(a=this._transformers).call(a,function(n,s){return s(n)},r)}},{key:"_add",value:function(r,a){a!=null&&this._target.add(this._transformItems(this._source.get(a.items)))}},{key:"_update",value:function(r,a){a!=null&&this._target.update(this._transformItems(this._source.get(a.items)))}},{key:"_remove",value:function(r,a){a!=null&&this._target.remove(this._transformItems(a.oldData))}}]),e}(),Dq=function(){function e(t){fe(this,e),me(this,"_source",void 0),me(this,"_transformers",[]),this._source=t}return pe(e,[{key:"filter",value:function(r){return this._transformers.push(function(a){return te(a).call(a,r)}),this}},{key:"map",value:function(r){return this._transformers.push(function(a){return Se(a).call(a,r)}),this}},{key:"flatMap",value:function(r){return this._transformers.push(function(a){return LU(a).call(a,r)}),this}},{key:"to",value:function(r){return new $q(this._source,this._transformers,r)}}]),e}();function vh(e){return typeof e=="string"||typeof e=="number"}var Nq=function(){function e(t){fe(this,e),me(this,"delay",void 0),me(this,"max",void 0),me(this,"_queue",[]),me(this,"_timeout",null),me(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(t)}return pe(e,[{key:"setOptions",value:function(r){r&&typeof r.delay<"u"&&(this.delay=r.delay),r&&typeof r.max<"u"&&(this.max=r.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var r=this._extended.object,a=this._extended.methods,n=0;n<a.length;n++){var s=a[n];s.original?r[s.name]=s.original:delete r[s.name]}this._extended=null}}},{key:"replace",value:function(r,a){var n=this,s=r[a];if(!s)throw new Error("Method "+a+" undefined");r[a]=function(){for(var o=arguments.length,l=new Array(o),d=0;d<o;d++)l[d]=arguments[d];n.queue({args:l,fn:s,context:this})}}},{key:"queue",value:function(r){typeof r=="function"?this._queue.push({fn:r}):this._queue.push(r),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var r=this;this._queue.length>this.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=_t(function(){r.flush()},this.delay))}},{key:"flush",value:function(){var r,a;G(r=xt(a=this._queue).call(a,0)).call(r,function(n){n.fn.apply(n.context||n.fn,n.args||[])})}}],[{key:"extend",value:function(r,a){var n=new e(a);if(r.flush!==void 0)throw new Error("Target object already has a property flush");r.flush=function(){n.flush()};var s=[{name:"flush",original:void 0}];if(a&&a.replace)for(var o=0;o<a.replace.length;o++){var l=a.replace[o];s.push({name:l,original:r[l]}),n.replace(r,l)}return n._extended={object:r,methods:s},n}}]),e}(),XE=function(){function e(){fe(this,e),me(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),me(this,"subscribe",e.prototype.on),me(this,"unsubscribe",e.prototype.off)}return pe(e,[{key:"_trigger",value:function(r,a,n){var s,o;if(r==="*")throw new Error("Cannot trigger event *");G(s=Me(o=[]).call(o,Fe(this._subscribers[r]),Fe(this._subscribers["*"]))).call(s,function(l){l(r,a,n??null)})}},{key:"on",value:function(r,a){typeof a=="function"&&this._subscribers[r].push(a)}},{key:"off",value:function(r,a){var n;this._subscribers[r]=te(n=this._subscribers[r]).call(n,function(s){return s!==a})}}]),e}();KE=ii;var Sy=function(){function e(t){fe(this,e),me(this,"_pairs",void 0),this._pairs=t}return pe(e,[{key:KE,value:Rt.mark(function t(){var r,a,n,s,o;return Rt.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:r=Lt(this._pairs),d.prev=1,r.s();case 3:if((a=r.n()).done){d.next=9;break}return n=yt(a.value,2),s=n[0],o=n[1],d.next=7,[s,o];case 7:d.next=3;break;case 9:d.next=14;break;case 11:d.prev=11,d.t0=d.catch(1),r.e(d.t0);case 14:return d.prev=14,r.f(),d.finish(14);case 17:case"end":return d.stop()}},t,this,[[1,11,14,17]])})},{key:"entries",value:Rt.mark(function t(){var r,a,n,s,o;return Rt.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:r=Lt(this._pairs),d.prev=1,r.s();case 3:if((a=r.n()).done){d.next=9;break}return n=yt(a.value,2),s=n[0],o=n[1],d.next=7,[s,o];case 7:d.next=3;break;case 9:d.next=14;break;case 11:d.prev=11,d.t0=d.catch(1),r.e(d.t0);case 14:return d.prev=14,r.f(),d.finish(14);case 17:case"end":return d.stop()}},t,this,[[1,11,14,17]])})},{key:"keys",value:Rt.mark(function t(){var r,a,n,s;return Rt.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:r=Lt(this._pairs),l.prev=1,r.s();case 3:if((a=r.n()).done){l.next=9;break}return n=yt(a.value,1),s=n[0],l.next=7,s;case 7:l.next=3;break;case 9:l.next=14;break;case 11:l.prev=11,l.t0=l.catch(1),r.e(l.t0);case 14:return l.prev=14,r.f(),l.finish(14);case 17:case"end":return l.stop()}},t,this,[[1,11,14,17]])})},{key:"values",value:Rt.mark(function t(){var r,a,n,s;return Rt.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:r=Lt(this._pairs),l.prev=1,r.s();case 3:if((a=r.n()).done){l.next=9;break}return n=yt(a.value,2),s=n[1],l.next=7,s;case 7:l.next=3;break;case 9:l.next=14;break;case 11:l.prev=11,l.t0=l.catch(1),r.e(l.t0);case 14:return l.prev=14,r.f(),l.finish(14);case 17:case"end":return l.stop()}},t,this,[[1,11,14,17]])})},{key:"toIdArray",value:function(){var r;return Se(r=Fe(this._pairs)).call(r,function(a){return a[0]})}},{key:"toItemArray",value:function(){var r;return Se(r=Fe(this._pairs)).call(r,function(a){return a[1]})}},{key:"toEntryArray",value:function(){return Fe(this._pairs)}},{key:"toObjectMap",value:function(){var r=Ks(null),a=Lt(this._pairs),n;try{for(a.s();!(n=a.n()).done;){var s=yt(n.value,2),o=s[0],l=s[1];r[o]=l}}catch(d){a.e(d)}finally{a.f()}return r}},{key:"toMap",value:function(){return new ME(this._pairs)}},{key:"toIdSet",value:function(){return new xn(this.toIdArray())}},{key:"toItemSet",value:function(){return new xn(this.toItemArray())}},{key:"cache",value:function(){return new e(Fe(this._pairs))}},{key:"distinct",value:function(r){var a=new xn,n=Lt(this._pairs),s;try{for(n.s();!(s=n.n()).done;){var o=yt(s.value,2),l=o[0],d=o[1];a.add(r(d,l))}}catch(c){n.e(c)}finally{n.f()}return a}},{key:"filter",value:function(r){var a=this._pairs;return new e(me({},ii,Rt.mark(function n(){var s,o,l,d,c;return Rt.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:s=Lt(a),v.prev=1,s.s();case 3:if((o=s.n()).done){v.next=10;break}if(l=yt(o.value,2),d=l[0],c=l[1],!r(c,d)){v.next=8;break}return v.next=8,[d,c];case 8:v.next=3;break;case 10:v.next=15;break;case 12:v.prev=12,v.t0=v.catch(1),s.e(v.t0);case 15:return v.prev=15,s.f(),v.finish(15);case 18:case"end":return v.stop()}},n,null,[[1,12,15,18]])})))}},{key:"forEach",value:function(r){var a=Lt(this._pairs),n;try{for(a.s();!(n=a.n()).done;){var s=yt(n.value,2),o=s[0],l=s[1];r(l,o)}}catch(d){a.e(d)}finally{a.f()}}},{key:"map",value:function(r){var a=this._pairs;return new e(me({},ii,Rt.mark(function n(){var s,o,l,d,c;return Rt.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:s=Lt(a),v.prev=1,s.s();case 3:if((o=s.n()).done){v.next=9;break}return l=yt(o.value,2),d=l[0],c=l[1],v.next=7,[d,r(c,d)];case 7:v.next=3;break;case 9:v.next=14;break;case 11:v.prev=11,v.t0=v.catch(1),s.e(v.t0);case 14:return v.prev=14,s.f(),v.finish(14);case 17:case"end":return v.stop()}},n,null,[[1,11,14,17]])})))}},{key:"max",value:function(r){var a=cu(this._pairs),n=a.next();if(n.done)return null;for(var s=n.value[1],o=r(n.value[1],n.value[0]);!(n=a.next()).done;){var l=yt(n.value,2),d=l[0],c=l[1],f=r(c,d);f>o&&(o=f,s=c)}return s}},{key:"min",value:function(r){var a=cu(this._pairs),n=a.next();if(n.done)return null;for(var s=n.value[1],o=r(n.value[1],n.value[0]);!(n=a.next()).done;){var l=yt(n.value,2),d=l[0],c=l[1],f=r(c,d);f<o&&(o=f,s=c)}return s}},{key:"reduce",value:function(r,a){var n=Lt(this._pairs),s;try{for(n.s();!(s=n.n()).done;){var o=yt(s.value,2),l=o[0],d=o[1];a=r(a,d,l)}}catch(c){n.e(c)}finally{n.f()}return a}},{key:"sort",value:function(r){var a=this;return new e(me({},ii,function(){var n;return cu(Ze(n=Fe(a._pairs)).call(n,function(s,o){var l=yt(s,2),d=l[0],c=l[1],f=yt(o,2),v=f[0],m=f[1];return r(c,m,d,v)}))}))}}]),e}();function Cq(e,t){return e[t]==null&&(e[t]=ai()),e}var pi=function(e){It(r,e);var t=qE(r);function r(a,n){var s;return fe(this,r),s=t.call(this),me(Ne(s),"flush",void 0),me(Ne(s),"length",void 0),me(Ne(s),"_options",void 0),me(Ne(s),"_data",void 0),me(Ne(s),"_idProp",void 0),me(Ne(s),"_queue",null),a&&!ae(a)&&(n=a,a=[]),s._options=n||{},s._data=new ME,s.length=0,s._idProp=s._options.fieldId||"id",a&&a.length&&s.add(a),s.setOptions(n),s}return pe(r,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(n){n&&n.queue!==void 0&&(n.queue===!1?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=Nq.extend(this,{replace:["add","update","remove"]})),n.queue&&ne(n.queue)==="object"&&this._queue.setOptions(n.queue)))}},{key:"add",value:function(n,s){var o=this,l=[],d;if(ae(n)){var c=Se(n).call(n,function(m){return m[o._idProp]});if(Rf(c).call(c,function(m){return o._data.has(m)}))throw new Error("A duplicate id was found in the parameter array.");for(var f=0,v=n.length;f<v;f++)d=this._addItem(n[f]),l.push(d)}else if(n&&ne(n)==="object")d=this._addItem(n),l.push(d);else throw new Error("Unknown dataType");return l.length&&this._trigger("add",{items:l},s),l}},{key:"update",value:function(n,s){var o=this,l=[],d=[],c=[],f=[],v=this._idProp,m=function(k){var T=k[v];if(T!=null&&o._data.has(T)){var D=k,N=an({},o._data.get(T)),L=o._updateItem(D);d.push(L),f.push(D),c.push(N)}else{var A=o._addItem(k);l.push(A)}};if(ae(n))for(var g=0,b=n.length;g<b;g++)n[g]&&ne(n[g])==="object"?m(n[g]):console.warn("Ignoring input item, which is not an object at index "+g);else if(n&&ne(n)==="object")m(n);else throw new Error("Unknown dataType");if(l.length&&this._trigger("add",{items:l},s),d.length){var S={items:d,oldData:c,data:f};this._trigger("update",S,s)}return Me(l).call(l,d)}},{key:"updateOnly",value:function(n,s){var o,l=this;ae(n)||(n=[n]);var d=Se(o=Se(n).call(n,function(f){var v=l._data.get(f[l._idProp]);if(v==null)throw new Error("Updating non-existent items is not allowed.");return{oldData:v,update:f}})).call(o,function(f){var v=f.oldData,m=f.update,g=v[l._idProp],b=Vw(v,m);return l._data.set(g,b),{id:g,oldData:v,updatedData:b}});if(d.length){var c={items:Se(d).call(d,function(f){return f.id}),oldData:Se(d).call(d,function(f){return f.oldData}),data:Se(d).call(d,function(f){return f.updatedData})};return this._trigger("update",c,s),c.items}else return[]}},{key:"get",value:function(n,s){var o=void 0,l=void 0,d=void 0;vh(n)?(o=n,d=s):ae(n)?(l=n,d=s):d=n;var c=d&&d.returnType==="Object"?"Object":"Array",f=d&&te(d),v=[],m=void 0,g=void 0,b=void 0;if(o!=null)m=this._data.get(o),m&&f&&!f(m)&&(m=void 0);else if(l!=null)for(var S=0,w=l.length;S<w;S++)m=this._data.get(l[S]),m!=null&&(!f||f(m))&&v.push(m);else{var k;g=Fe(Kn(k=this._data).call(k));for(var T=0,D=g.length;T<D;T++)b=g[T],m=this._data.get(b),m!=null&&(!f||f(m))&&v.push(m)}if(d&&d.order&&o==null&&this._sort(v,d.order),d&&d.fields){var N=d.fields;if(o!=null&&m!=null)m=this._filterFields(m,N);else for(var L=0,A=v.length;L<A;L++)v[L]=this._filterFields(v[L],N)}if(c=="Object"){for(var R={},C=0,j=v.length;C<j;C++){var O=v[C],M=O[this._idProp];R[M]=O}return R}else if(o!=null){var H;return(H=m)!==null&&H!==void 0?H:null}else return v}},{key:"getIds",value:function(n){var s=this._data,o=n&&te(n),l=n&&n.order,d=Fe(Kn(s).call(s)),c=[];if(o)if(l){for(var f=[],v=0,m=d.length;v<m;v++){var g=d[v],b=this._data.get(g);b!=null&&o(b)&&f.push(b)}this._sort(f,l);for(var S=0,w=f.length;S<w;S++)c.push(f[S][this._idProp])}else for(var k=0,T=d.length;k<T;k++){var D=d[k],N=this._data.get(D);N!=null&&o(N)&&c.push(N[this._idProp])}else if(l){for(var L=[],A=0,R=d.length;A<R;A++){var C=d[A];L.push(s.get(C))}this._sort(L,l);for(var j=0,O=L.length;j<O;j++)c.push(L[j][this._idProp])}else for(var M=0,H=d.length;M<H;M++){var z=d[M],se=s.get(z);se!=null&&c.push(se[this._idProp])}return c}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(n,s){var o=s&&te(s),l=this._data,d=Fe(Kn(l).call(l));if(s&&s.order)for(var c=this.get(s),f=0,v=c.length;f<v;f++){var m=c[f],g=m[this._idProp];n(m,g)}else for(var b=0,S=d.length;b<S;b++){var w=d[b],k=this._data.get(w);k!=null&&(!o||o(k))&&n(k,w)}}},{key:"map",value:function(n,s){for(var o=s&&te(s),l=[],d=this._data,c=Fe(Kn(d).call(d)),f=0,v=c.length;f<v;f++){var m=c[f],g=this._data.get(m);g!=null&&(!o||o(g))&&l.push(n(g,m))}return s&&s.order&&this._sort(l,s.order),l}},{key:"_filterFields",value:function(n,s){var o;return n&&vd(o=ae(s)?s:st(s)).call(o,function(l,d){return l[d]=n[d],l},{})}},{key:"_sort",value:function(n,s){if(typeof s=="string"){var o=s;Ze(n).call(n,function(l,d){var c=l[o],f=d[o];return c>f?1:c<f?-1:0})}else if(typeof s=="function")Ze(n).call(n,s);else throw new TypeError("Order must be a function or a string")}},{key:"remove",value:function(n,s){for(var o=[],l=[],d=ae(n)?n:[n],c=0,f=d.length;c<f;c++){var v=this._remove(d[c]);if(v){var m=v[this._idProp];m!=null&&(o.push(m),l.push(v))}}return o.length&&this._trigger("remove",{items:o,oldData:l},s),o}},{key:"_remove",value:function(n){var s;if(vh(n)?s=n:n&&ne(n)==="object"&&(s=n[this._idProp]),s!=null&&this._data.has(s)){var o=this._data.get(s)||null;return this._data.delete(s),--this.length,o}return null}},{key:"clear",value:function(n){for(var s,o=Fe(Kn(s=this._data).call(s)),l=[],d=0,c=o.length;d<c;d++)l.push(this._data.get(o[d]));return this._data.clear(),this.length=0,this._trigger("remove",{items:o,oldData:l},n),o}},{key:"max",value:function(n){var s,o=null,l=null,d=Lt(py(s=this._data).call(s)),c;try{for(d.s();!(c=d.n()).done;){var f=c.value,v=f[n];typeof v=="number"&&(l==null||v>l)&&(o=f,l=v)}}catch(m){d.e(m)}finally{d.f()}return o||null}},{key:"min",value:function(n){var s,o=null,l=null,d=Lt(py(s=this._data).call(s)),c;try{for(d.s();!(c=d.n()).done;){var f=c.value,v=f[n];typeof v=="number"&&(l==null||v<l)&&(o=f,l=v)}}catch(m){d.e(m)}finally{d.f()}return o||null}},{key:"distinct",value:function(n){for(var s=this._data,o=Fe(Kn(s).call(s)),l=[],d=0,c=0,f=o.length;c<f;c++){for(var v=o[c],m=s.get(v),g=m[n],b=!1,S=0;S<d;S++)if(l[S]==g){b=!0;break}!b&&g!==void 0&&(l[d]=g,d++)}return l}},{key:"_addItem",value:function(n){var s=Cq(n,this._idProp),o=s[this._idProp];if(this._data.has(o))throw new Error("Cannot add item: item with id "+o+" already exists");return this._data.set(o,s),++this.length,o}},{key:"_updateItem",value:function(n){var s=n[this._idProp];if(s==null)throw new Error("Cannot update item: item has no id (item: "+Ft(n)+")");var o=this._data.get(s);if(!o)throw new Error("Cannot update item: no item with id "+s+" found");return this._data.set(s,wy(wy({},o),n)),s}},{key:"stream",value:function(n){if(n){var s=this._data;return new Sy(me({},ii,Rt.mark(function l(){var d,c,f,v;return Rt.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:d=Lt(n),g.prev=1,d.s();case 3:if((c=d.n()).done){g.next=11;break}if(f=c.value,v=s.get(f),v==null){g.next=9;break}return g.next=9,[f,v];case 9:g.next=3;break;case 11:g.next=16;break;case 13:g.prev=13,g.t0=g.catch(1),d.e(g.t0);case 16:return g.prev=16,d.f(),g.finish(16);case 19:case"end":return g.stop()}},l,null,[[1,13,16,19]])})))}else{var o;return new Sy(me({},ii,P(o=TK(this._data)).call(o,this._data)))}}}]),r}(XE),Oq=function(e){It(r,e);var t=qE(r);function r(a,n){var s,o;return fe(this,r),o=t.call(this),me(Ne(o),"length",0),me(Ne(o),"_listener",void 0),me(Ne(o),"_data",void 0),me(Ne(o),"_ids",new xn),me(Ne(o),"_options",void 0),o._options=n||{},o._listener=P(s=o._onEvent).call(s,Ne(o)),o.setData(a),o}return pe(r,[{key:"idProp",get:function(){return this.getDataSet().idProp}},{key:"setData",value:function(n){if(this._data){this._data.off&&this._data.off("*",this._listener);var s=this._data.getIds({filter:te(this._options)}),o=this._data.get(s);this._ids.clear(),this.length=0,this._trigger("remove",{items:s,oldData:o})}if(n!=null){this._data=n;for(var l=this._data.getIds({filter:te(this._options)}),d=0,c=l.length;d<c;d++){var f=l[d];this._ids.add(f)}this.length=l.length,this._trigger("add",{items:l})}else this._data=new pi;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var n=this._data.getIds({filter:te(this._options)}),s=Fe(this._ids),o={},l=[],d=[],c=[],f=0,v=n.length;f<v;f++){var m=n[f];o[m]=!0,this._ids.has(m)||(l.push(m),this._ids.add(m))}for(var g=0,b=s.length;g<b;g++){var S=s[g],w=this._data.get(S);w==null?console.error("If you see this, report it please."):o[S]||(d.push(S),c.push(w),this._ids.delete(S))}this.length+=l.length-d.length,l.length&&this._trigger("add",{items:l}),d.length&&this._trigger("remove",{items:d,oldData:c})}},{key:"get",value:function(n,s){if(this._data==null)return null;var o=null,l;vh(n)||ae(n)?(o=n,l=s):l=n;var d=an({},this._options,l),c=te(this._options),f=l&&te(l);return c&&f&&(d.filter=function(v){return c(v)&&f(v)}),o==null?this._data.get(d):this._data.get(o,d)}},{key:"getIds",value:function(n){if(this._data.length){var s=te(this._options),o=n!=null?te(n):null,l;return o?s?l=function(c){return s(c)&&o(c)}:l=o:l=s,this._data.getIds({filter:l,order:n&&n.order})}else return[]}},{key:"forEach",value:function(n,s){if(this._data){var o,l=te(this._options),d=s&&te(s),c;d?l?c=function(v){return l(v)&&d(v)}:c=d:c=l,G(o=this._data).call(o,n,{filter:c,order:s&&s.order})}}},{key:"map",value:function(n,s){if(this._data){var o,l=te(this._options),d=s&&te(s),c;return d?l?c=function(v){return l(v)&&d(v)}:c=d:c=l,Se(o=this._data).call(o,n,{filter:c,order:s&&s.order})}else return[]}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(n){var s;return this._data.stream(n||me({},ii,P(s=Kn(this._ids)).call(s,this._ids)))}},{key:"dispose",value:function(){var n;(n=this._data)!==null&&n!==void 0&&n.off&&this._data.off("*",this._listener);var s="This data view has already been disposed of.",o={get:function(){throw new Error(s)},set:function(){throw new Error(s)},configurable:!1},l=Lt(F0(r.prototype)),d;try{for(l.s();!(d=l.n()).done;){var c=d.value;md(this,c,o)}}catch(f){l.e(f)}finally{l.f()}}},{key:"_onEvent",value:function(n,s,o){if(!(!s||!s.items||!this._data)){var l=s.items,d=[],c=[],f=[],v=[],m=[],g=[];switch(n){case"add":for(var b=0,S=l.length;b<S;b++){var w=l[b],k=this.get(w);k&&(this._ids.add(w),d.push(w))}break;case"update":for(var T=0,D=l.length;T<D;T++){var N=l[T],L=this.get(N);L?this._ids.has(N)?(c.push(N),m.push(s.data[T]),v.push(s.oldData[T])):(this._ids.add(N),d.push(N)):this._ids.has(N)&&(this._ids.delete(N),f.push(N),g.push(s.oldData[T]))}break;case"remove":for(var A=0,R=l.length;A<R;A++){var C=l[A];this._ids.has(C)&&(this._ids.delete(C),f.push(C),g.push(s.oldData[A]))}break}this.length+=d.length-f.length,d.length&&this._trigger("add",{items:d},o),c.length&&this._trigger("update",{items:c,oldData:v,data:m},o),f.length&&this._trigger("remove",{items:f,oldData:g},o)}}}]),r}(XE);function Aq(e,t){return ne(t)==="object"&&t!==null&&e===t.idProp&&typeof t.add=="function"&&typeof t.clear=="function"&&typeof t.distinct=="function"&&typeof G(t)=="function"&&typeof t.get=="function"&&typeof t.getDataSet=="function"&&typeof t.getIds=="function"&&typeof t.length=="number"&&typeof Se(t)=="function"&&typeof t.max=="function"&&typeof t.min=="function"&&typeof t.off=="function"&&typeof t.on=="function"&&typeof t.remove=="function"&&typeof t.setOptions=="function"&&typeof t.stream=="function"&&typeof t.update=="function"&&typeof t.updateOnly=="function"}function Iq(e,t){return ne(t)==="object"&&t!==null&&e===t.idProp&&typeof G(t)=="function"&&typeof t.get=="function"&&typeof t.getDataSet=="function"&&typeof t.getIds=="function"&&typeof t.length=="number"&&typeof Se(t)=="function"&&typeof t.off=="function"&&typeof t.on=="function"&&typeof t.stream=="function"&&Aq(e,t.getDataSet())}var Pq=typeof window<"u"&&window.moment||$r(),Tt=K(Pq),Mq=$r(),_r=K(Mq),mh={exports:{}},Ge={},gh={exports:{}},ki={};function QE(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function Rq(e,t,r){}function Lq(e,t,r){}var Vq=/javascript\s*\:/img;function Fq(e,t){return Vq.test(t)?"":t}ki.whiteList=QE();ki.getDefaultWhiteList=QE;ki.onAttr=Rq;ki.onIgnoreAttr=Lq;ki.safeAttrValue=Fq;var Yq={indexOf:function(e,t){var r,a;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,a=e.length;r<a;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var a,n;if(Array.prototype.forEach)return e.forEach(t,r);for(a=0,n=e.length;a<n;a++)t.call(r,e[a],a,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},ts=Yq;function jq(e,t){e=ts.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,a=!1,n=0,s=0,o="";function l(){if(!a){var f=ts.trim(e.slice(n,s)),v=f.indexOf(":");if(v!==-1){var m=ts.trim(f.slice(0,v)),g=ts.trim(f.slice(v+1));if(m){var b=t(n,o.length,m,g,f);b&&(o+=b+"; ")}}}n=s+1}for(;s<r;s++){var d=e[s];if(d==="/"&&e[s+1]==="*"){var c=e.indexOf("*/",s+2);if(c===-1)break;s=c+1,n=s+1,a=!1}else d==="("?a=!0:d===")"?a=!1:d===";"?a||l():d===`
66
+ `&&l()}return ts.trim(o)}var Bq=jq,Qo=ki,Hq=Bq;function ky(e){return e==null}function Wq(e){var t={};for(var r in e)t[r]=e[r];return t}function ZE(e){e=Wq(e||{}),e.whiteList=e.whiteList||Qo.whiteList,e.onAttr=e.onAttr||Qo.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Qo.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Qo.safeAttrValue,this.options=e}ZE.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,a=r.whiteList,n=r.onAttr,s=r.onIgnoreAttr,o=r.safeAttrValue,l=Hq(e,function(d,c,f,v,m){var g=a[f],b=!1;if(g===!0?b=g:typeof g=="function"?b=g(v):g instanceof RegExp&&(b=g.test(v)),b!==!0&&(b=!1),v=o(f,v),!!v){var S={position:c,sourcePosition:d,source:m,isWhite:b};if(b){var w=n(f,v,S);return ky(w)?f+":"+v:w}else{var w=s(f,v,S);if(!ky(w))return w}}});return l};var Gq=ZE;(function(e,t){var r=ki,a=Gq;function n(o,l){var d=new a(l);return d.process(o)}t=e.exports=n,t.FilterCSS=a;for(var s in r)t[s]=r[s];typeof window<"u"&&(window.filterCSS=e.exports)})(gh,gh.exports);var Vf=gh.exports,Ff={indexOf:function(e,t){var r,a;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,a=e.length;r<a;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var a,n;if(Array.prototype.forEach)return e.forEach(t,r);for(a=0,n=e.length;a<n;a++)t.call(r,e[a],a,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,r=t.exec(e);return r?r.index:-1}},zq=Vf.FilterCSS,Uq=Vf.getDefaultWhiteList,Nl=Ff;function JE(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var e1=new zq;function Kq(e,t,r){}function qq(e,t,r){}function Xq(e,t,r){}function Qq(e,t,r){}function t1(e){return e.replace(Jq,"&lt;").replace(eX,"&gt;")}function Zq(e,t,r,a){if(r=o1(r),t==="href"||t==="src"){if(r=Nl.trim(r),r==="#")return"#";if(!(r.substr(0,7)==="http://"||r.substr(0,8)==="https://"||r.substr(0,7)==="mailto:"||r.substr(0,4)==="tel:"||r.substr(0,11)==="data:image/"||r.substr(0,6)==="ftp://"||r.substr(0,2)==="./"||r.substr(0,3)==="../"||r[0]==="#"||r[0]==="/"))return""}else if(t==="background"){if(Zo.lastIndex=0,Zo.test(r))return""}else if(t==="style"){if(xy.lastIndex=0,xy.test(r)||(Ty.lastIndex=0,Ty.test(r)&&(Zo.lastIndex=0,Zo.test(r))))return"";a!==!1&&(a=a||e1,r=a.process(r))}return r=l1(r),r}var Jq=/</g,eX=/>/g,tX=/"/g,rX=/&quot;/g,nX=/&#([a-zA-Z0-9]*);?/gim,iX=/&colon;?/gim,aX=/&newline;?/gim,Zo=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,xy=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Ty=/u\s*r\s*l\s*\(.*/gi;function r1(e){return e.replace(tX,"&quot;")}function n1(e){return e.replace(rX,'"')}function i1(e){return e.replace(nX,function(r,a){return a[0]==="x"||a[0]==="X"?String.fromCharCode(parseInt(a.substr(1),16)):String.fromCharCode(parseInt(a,10))})}function a1(e){return e.replace(iX,":").replace(aX," ")}function s1(e){for(var t="",r=0,a=e.length;r<a;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return Nl.trim(t)}function o1(e){return e=n1(e),e=i1(e),e=a1(e),e=s1(e),e}function l1(e){return e=r1(e),e=t1(e),e}function sX(){return""}function oX(e,t){typeof t!="function"&&(t=function(){});var r=!Array.isArray(e);function a(o){return r?!0:Nl.indexOf(e,o)!==-1}var n=[],s=!1;return{onIgnoreTag:function(o,l,d){if(a(o))if(d.isClosing){var c="[/removed]",f=d.position+c.length;return n.push([s!==!1?s:d.position,f]),s=!1,c}else return s||(s=d.position),"[removed]";else return t(o,l,d)},remove:function(o){var l="",d=0;return Nl.forEach(n,function(c){l+=o.slice(d,c[0]),d=c[1]}),l+=o.slice(d),l}}}function lX(e){for(var t="",r=0;r<e.length;){var a=e.indexOf("<!--",r);if(a===-1){t+=e.slice(r);break}t+=e.slice(r,a);var n=e.indexOf("-->",a);if(n===-1)break;r=n+3}return t}function dX(e){var t=e.split("");return t=t.filter(function(r){var a=r.charCodeAt(0);return a===127?!1:a<=31?a===10||a===13:!0}),t.join("")}Ge.whiteList=JE();Ge.getDefaultWhiteList=JE;Ge.onTag=Kq;Ge.onIgnoreTag=qq;Ge.onTagAttr=Xq;Ge.onIgnoreTagAttr=Qq;Ge.safeAttrValue=Zq;Ge.escapeHtml=t1;Ge.escapeQuote=r1;Ge.unescapeQuote=n1;Ge.escapeHtmlEntities=i1;Ge.escapeDangerHtml5Entities=a1;Ge.clearNonPrintableCharacter=s1;Ge.friendlyAttrValue=o1;Ge.escapeAttrValue=l1;Ge.onIgnoreTagStripAll=sX;Ge.StripTagBody=oX;Ge.stripCommentTag=lX;Ge.stripBlankChar=dX;Ge.cssFilter=e1;Ge.getDefaultCSSWhiteList=Uq;var yd={},bn=Ff;function cX(e){var t=bn.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=bn.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function uX(e){return e.slice(0,2)==="</"}function hX(e,t,r){var a="",n=0,s=!1,o=!1,l=0,d=e.length,c="",f="";e:for(l=0;l<d;l++){var v=e.charAt(l);if(s===!1){if(v==="<"){s=l;continue}}else if(o===!1){if(v==="<"){a+=r(e.slice(n,l)),s=l,n=l;continue}if(v===">"||l===d-1){a+=r(e.slice(n,s)),f=e.slice(s,l+1),c=cX(f),a+=t(s,a.length,c,f,uX(f)),n=l+1,s=!1;continue}if(v==='"'||v==="'")for(var m=1,g=e.charAt(l-m);g.trim()===""||g==="=";){if(g==="="){o=v;continue e}g=e.charAt(l-++m)}}else if(v===o){o=!1;continue}}return n<d&&(a+=r(e.substr(n))),a}var fX=/[^a-zA-Z0-9\\_:.-]/gim;function pX(e,t){var r=0,a=0,n=[],s=!1,o=e.length;function l(m,g){if(m=bn.trim(m),m=m.replace(fX,"").toLowerCase(),!(m.length<1)){var b=t(m,g||"");b&&n.push(b)}}for(var d=0;d<o;d++){var c=e.charAt(d),f,v;if(s===!1&&c==="="){s=e.slice(r,d),r=d+1,a=e.charAt(r)==='"'||e.charAt(r)==="'"?r:mX(e,d+1);continue}if(s!==!1&&d===a){if(v=e.indexOf(c,d+1),v===-1)break;f=bn.trim(e.slice(a+1,v)),l(s,f),s=!1,d=v,r=d+1;continue}if(/\s|\n|\t/.test(c))if(e=e.replace(/\s|\n|\t/g," "),s===!1)if(v=vX(e,d),v===-1){f=bn.trim(e.slice(r,d)),l(f),s=!1,r=d+1;continue}else{d=v-1;continue}else if(v=gX(e,d-1),v===-1){f=bn.trim(e.slice(r,d)),f=$y(f),l(s,f),s=!1,r=d+1;continue}else continue}return r<e.length&&(s===!1?l(e.slice(r)):l(s,$y(bn.trim(e.slice(r))))),bn.trim(n.join(" "))}function vX(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="="?t:-1}}function mX(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="'"||r==='"'?t:-1}}function gX(e,t){for(;t>0;t--){var r=e[t];if(r!==" ")return r==="="?t:-1}}function yX(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function $y(e){return yX(e)?e.substr(1,e.length-2):e}yd.parseTag=hX;yd.parseAttr=pX;var _X=Vf.FilterCSS,wr=Ge,d1=yd,bX=d1.parseTag,wX=d1.parseAttr,ul=Ff;function Jo(e){return e==null}function EX(e){var t=ul.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=ul.trim(e.slice(t+1,-1));var r=e[e.length-1]==="/";return r&&(e=ul.trim(e.slice(0,-1))),{html:e,closing:r}}function SX(e){var t={};for(var r in e)t[r]=e[r];return t}function kX(e){var t={};for(var r in e)Array.isArray(e[r])?t[r.toLowerCase()]=e[r].map(function(a){return a.toLowerCase()}):t[r.toLowerCase()]=e[r];return t}function c1(e){e=SX(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=wr.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=kX(e.whiteList||e.allowList):e.whiteList=wr.whiteList,e.onTag=e.onTag||wr.onTag,e.onTagAttr=e.onTagAttr||wr.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||wr.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||wr.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||wr.safeAttrValue,e.escapeHtml=e.escapeHtml||wr.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new _X(e.css))}c1.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,a=r.whiteList,n=r.onTag,s=r.onIgnoreTag,o=r.onTagAttr,l=r.onIgnoreTagAttr,d=r.safeAttrValue,c=r.escapeHtml,f=t.cssFilter;r.stripBlankChar&&(e=wr.stripBlankChar(e)),r.allowCommentTag||(e=wr.stripCommentTag(e));var v=!1;r.stripIgnoreTagBody&&(v=wr.StripTagBody(r.stripIgnoreTagBody,s),s=v.onIgnoreTag);var m=bX(e,function(g,b,S,w,k){var T={sourcePosition:g,position:b,isClosing:k,isWhite:Object.prototype.hasOwnProperty.call(a,S)},D=n(S,w,T);if(!Jo(D))return D;if(T.isWhite){if(T.isClosing)return"</"+S+">";var N=EX(w),L=a[S],A=wX(N.html,function(R,C){var j=ul.indexOf(L,R)!==-1,O=o(S,R,C,j);return Jo(O)?j?(C=d(S,R,C,f),C?R+'="'+C+'"':R):(O=l(S,R,C,j),Jo(O)?void 0:O):O});return w="<"+S,A&&(w+=" "+A),N.closing&&(w+=" /"),w+=">",w}else return D=s(S,w,T),Jo(D)?c(w):D},c);return v&&(m=v.remove(m)),m};var xX=c1;(function(e,t){var r=Ge,a=yd,n=xX;function s(l,d){var c=new n(d);return c.process(l)}t=e.exports=s,t.filterXSS=s,t.FilterXSS=n,function(){for(var l in r)t[l]=r[l];for(var d in a)t[d]=a[d]}(),typeof window<"u"&&(window.filterXSS=e.exports);function o(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}o()&&(self.filterXSS=e.exports)})(mh,mh.exports);var TX=mh.exports,$X=K(TX);function Dy(e,t){var r=st(e);if($l){var a=$l(e);t&&(a=te(a).call(a,function(n){return gd(e,n).enumerable})),r.push.apply(r,a)}return r}function Ny(e){for(var t=1;t<arguments.length;t++){var r,a,n=arguments[t]!=null?arguments[t]:{};t%2?G(r=Dy(Object(n),!0)).call(r,function(s){me(e,s,n[s])}):Dl?UE(e,Dl(n)):G(a=Dy(Object(n))).call(a,function(s){md(e,s,gd(n,s))})}return e}function on(e){var t;if(!e)return!1;var r=(t=e.idProp)!==null&&t!==void 0?t:e._idProp;return r?Iq(r,e):!1}var gu=/^\/?Date\((-?\d+)/i,DX=/^\d+$/;function Yf(e,t){var r;if(e!==void 0){if(e===null)return null;if(!t)return e;if(typeof t!="string"&&!(t instanceof String))throw new Error("Type must be a string");switch(t){case"boolean":case"Boolean":return!!e;case"number":case"Number":return Qt(e)&&!isNaN(Date.parse(e))?_r(e).valueOf():Number(e.valueOf());case"string":case"String":return String(e);case"Date":try{return Yf(e,"Moment").toDate()}catch(n){throw n instanceof TypeError?new TypeError("Cannot convert object of type "+is(e)+" to type "+t):n}case"Moment":if(cs(e))return _r(e);if(e instanceof Date)return _r(e.valueOf());if(_r.isMoment(e))return _r(e);if(Qt(e))return r=gu.exec(e),r?_r(Number(r[1])):(r=DX.exec(e),_r(r?Number(e):e));throw new TypeError("Cannot convert object of type "+is(e)+" to type "+t);case"ISODate":if(cs(e))return new Date(e);if(e instanceof Date)return e.toISOString();if(_r.isMoment(e))return e.toDate().toISOString();if(Qt(e))return r=gu.exec(e),r?new Date(Number(r[1])).toISOString():_r(e).format();throw new Error("Cannot convert object of type "+is(e)+" to type ISODate");case"ASPDate":if(cs(e))return"/Date("+e+")/";if(e instanceof Date||_r.isMoment(e))return"/Date("+e.valueOf()+")/";if(Qt(e)){r=gu.exec(e);var a;return r?a=new Date(Number(r[1])).valueOf():a=new Date(e).valueOf(),"/Date("+a+")/"}else throw new Error("Cannot convert object of type "+is(e)+" to type ASPDate");default:throw new Error("Unknown type ".concat(t))}}}function ba(e){var t,r,a,n,s,o,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{start:"Date",end:"Date"},d=e._idProp,c=new pi({fieldId:d}),f=Se(t=Tq(e)).call(t,function(v){var m;return vd(m=st(v)).call(m,function(g,b){return g[b]=Yf(v[b],l[b]),g},{})}).to(c);return f.all().start(),{add:function(){var m;return(m=e.getDataSet()).add.apply(m,arguments)},remove:function(){var m;return(m=e.getDataSet()).remove.apply(m,arguments)},update:function(){var m;return(m=e.getDataSet()).update.apply(m,arguments)},updateOnly:function(){var m;return(m=e.getDataSet()).updateOnly.apply(m,arguments)},clear:function(){var m;return(m=e.getDataSet()).clear.apply(m,arguments)},forEach:P(r=G(c)).call(r,c),get:P(a=c.get).call(a,c),getIds:P(n=c.getIds).call(n,c),off:P(s=c.off).call(s,c),on:P(o=c.on).call(o,c),get length(){return c.length},idProp:d,type:l,rawDS:e,coercedDS:c,dispose:function(){return f.stop()}}}var u1=function(t){var r=new $X.FilterXSS(t);return function(a){return r.process(a)}},NX=function(t){return t},yh=u1(),CX=function(t){t&&(t.disabled===!0?(yh=NX,console.warn("You disabled XSS protection for vis-Timeline. I sure hope you know what you're doing!")):t.filterOptions&&(yh=u1(t.filterOptions)))},x=Ny(Ny({},HH),{},{convert:Yf,setupXSSProtection:CX});md(x,"xss",{get:function(){return yh}});var h1=Ye,OX=ge,AX=Ee,IX=fr,PX=tw.trim,MX=cf,RX=AX("".charAt),Cl=h1.parseFloat,Cy=h1.Symbol,Oy=Cy&&Cy.iterator,LX=1/Cl(MX+"-0")!==-1/0||Oy&&!OX(function(){Cl(Object(Oy))}),VX=LX?function(t){var r=PX(IX(t)),a=Cl(r);return a===0&&RX(r,0)==="-"?-0:a}:Cl,FX=X,Ay=VX;FX({global:!0,forced:parseFloat!==Ay},{parseFloat:Ay});var YX=xe,jX=YX.parseFloat,BX=jX,HX=BX,WX=HX,Ol=K(WX),Fn=function(){function e(t,r){fe(this,e),this.options=null,this.props=null}return pe(e,[{key:"setOptions",value:function(r){r&&x.extend(this.options,r)}},{key:"redraw",value:function(){return!1}},{key:"destroy",value:function(){}},{key:"_isResized",value:function(){var r=this.props._previousWidth!==this.props.width||this.props._previousHeight!==this.props.height;return this.props._previousWidth=this.props.width,this.props._previousHeight=this.props.height,r}}]),e}(),GX=Is,zX=fr,UX=Da,KX=RangeError,qX=function(t){var r=zX(UX(this)),a="",n=GX(t);if(n<0||n===1/0)throw new KX("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(r+=r))n&1&&(a+=r);return a},XX=X,QX=qX;XX({target:"String",proto:!0},{repeat:QX});var ZX=We,JX=ZX("String").repeat,eQ=Oe,tQ=JX,yu=String.prototype,rQ=function(e){var t=e.repeat;return typeof e=="string"||e===yu||eQ(yu,e)&&t===yu.repeat?tQ:t},nQ=rQ,iQ=nQ,aQ=iQ,Xi=K(aQ);function jf(e,t,r){if(r&&!ae(r))return jf(e,t,[r]);if(t.hiddenDates=[],r&&ae(r)==!0){for(var a,n=0;n<r.length;n++)if(Xi(r[n])===void 0){var s={};s.start=e(r[n].start).toDate().valueOf(),s.end=e(r[n].end).toDate().valueOf(),t.hiddenDates.push(s)}Ze(a=t.hiddenDates).call(a,function(o,l){return o.start-l.start})}}function Al(e,t,r){if(r&&!ae(r))return Al(e,t,[r]);if(r&&t.domProps.centerContainer.width!==void 0){jf(e,t,r);for(var a=e(t.range.start),n=e(t.range.end),s=t.range.end-t.range.start,o=s/t.domProps.centerContainer.width,l=0;l<r.length;l++)if(Xi(r[l])!==void 0){var d=e(r[l].start),c=e(r[l].end);if(d._d=="Invalid Date")throw new Error("Supplied start date is not valid: ".concat(r[l].start));if(c._d=="Invalid Date")throw new Error("Supplied end date is not valid: ".concat(r[l].end));var f=c-d;if(f>=4*o){var v=0,m=n.clone();switch(Xi(r[l])){case"daily":d.day()!=c.day()&&(v=1),d.dayOfYear(a.dayOfYear()),d.year(a.year()),d.subtract(7,"days"),c.dayOfYear(a.dayOfYear()),c.year(a.year()),c.subtract(7-v,"days"),m.add(1,"weeks");break;case"weekly":{var g=c.diff(d,"days"),b=d.day();d.date(a.date()),d.month(a.month()),d.year(a.year()),c=d.clone(),d.day(b),c.day(b),c.add(g,"days"),d.subtract(1,"weeks"),c.subtract(1,"weeks"),m.add(1,"weeks");break}case"monthly":d.month()!=c.month()&&(v=1),d.month(a.month()),d.year(a.year()),d.subtract(1,"months"),c.month(a.month()),c.year(a.year()),c.subtract(1,"months"),c.add(v,"months"),m.add(1,"months");break;case"yearly":d.year()!=c.year()&&(v=1),d.year(a.year()),d.subtract(1,"years"),c.year(a.year()),c.subtract(1,"years"),c.add(v,"years"),m.add(1,"years");break;default:console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",Xi(r[l]));return}for(;d<m;)switch(t.hiddenDates.push({start:d.valueOf(),end:c.valueOf()}),Xi(r[l])){case"daily":d.add(1,"days"),c.add(1,"days");break;case"weekly":d.add(1,"weeks"),c.add(1,"weeks");break;case"monthly":d.add(1,"months"),c.add(1,"months");break;case"yearly":d.add(1,"y"),c.add(1,"y");break;default:console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",Xi(r[l]));return}t.hiddenDates.push({start:d.valueOf(),end:c.valueOf()})}}sQ(t);var S=Pl(t.range.start,t.hiddenDates),w=Pl(t.range.end,t.hiddenDates),k=t.range.start,T=t.range.end;S.hidden==!0&&(k=t.range.startToFront==!0?S.startDate-1:S.endDate+1),w.hidden==!0&&(T=t.range.endToFront==!0?w.startDate-1:w.endDate+1),(S.hidden==!0||w.hidden==!0)&&t.range._applyRange(k,T)}}function sQ(e){for(var t,r=e.hiddenDates,a=[],n=0;n<r.length;n++)for(var s=0;s<r.length;s++)n!=s&&r[s].remove!=!0&&r[n].remove!=!0&&(r[s].start>=r[n].start&&r[s].end<=r[n].end?r[s].remove=!0:r[s].start>=r[n].start&&r[s].start<=r[n].end?(r[n].end=r[s].end,r[s].remove=!0):r[s].end>=r[n].start&&r[s].end<=r[n].end&&(r[n].start=r[s].start,r[s].remove=!0));for(n=0;n<r.length;n++)r[n].remove!==!0&&a.push(r[n]);e.hiddenDates=a,Ze(t=e.hiddenDates).call(t,function(o,l){return o.start-l.start})}function oQ(e,t,r){for(var a=!1,n=t.current.valueOf(),s=0;s<t.hiddenDates.length;s++){var o=t.hiddenDates[s].start,l=t.hiddenDates[s].end;if(n>=o&&n<l){a=!0;break}}if(a==!0&&n<t._end.valueOf()&&n!=r){var d=e(r),c=e(l);d.year()!=c.year()?t.switchedYear=!0:d.month()!=c.month()?t.switchedMonth=!0:d.dayOfYear()!=c.dayOfYear()&&(t.switchedDay=!0),t.current=c}}function Iy(e,t,r){var a;if(e.body.hiddenDates.length==0)return a=e.range.conversion(r),(t.valueOf()-a.offset)*a.scale;var n=Pl(t,e.body.hiddenDates);n.hidden==!0&&(t=n.startDate);var s=ps(e.body.hiddenDates,e.range.start,e.range.end);if(t<e.range.start){a=e.range.conversion(r,s);var o=lQ(e.body.hiddenDates,t,a.offset);return t=e.options.moment(t).toDate().valueOf(),t=t+o,-(a.offset-t.valueOf())*a.scale}else if(t>e.range.end){var l={start:e.range.start,end:t};return t=My(e.options.moment,e.body.hiddenDates,l,t),a=e.range.conversion(r,s),(t.valueOf()-a.offset)*a.scale}else return t=My(e.options.moment,e.body.hiddenDates,e.range,t),a=e.range.conversion(r,s),(t.valueOf()-a.offset)*a.scale}function Py(e,t,r){if(e.body.hiddenDates.length==0){var a=e.range.conversion(r);return new Date(t/a.scale+a.offset)}else{var n=ps(e.body.hiddenDates,e.range.start,e.range.end),s=e.range.end-e.range.start-n,o=s*t/r,l=dQ(e.body.hiddenDates,e.range,o);return new Date(l+o+e.range.start)}}function ps(e,t,r){for(var a=0,n=0;n<e.length;n++){var s=e[n].start,o=e[n].end;s>=t&&o<r&&(a+=o-s)}return a}function lQ(e,t,r){for(var a=0,n=0;n<e.length;n++){var s=e[n].start,o=e[n].end;s>=t&&o<=r&&(a+=o-s)}return a}function My(e,t,r,a){return a=e(a).toDate().valueOf(),a-=Il(e,t,r,a),a}function Il(e,t,r,a){var n=0;a=e(a).toDate().valueOf();for(var s=0;s<t.length;s++){var o=t[s].start,l=t[s].end;o>=r.start&&l<r.end&&a>=l&&(n+=l-o)}return n}function dQ(e,t,r){for(var a=0,n=0,s=t.start,o=0;o<e.length;o++){var l=e[o].start,d=e[o].end;if(l>=t.start&&d<t.end){if(n+=l-s,s=d,n>=r)break;a+=d-l}}return a}function qn(e,t,r,a){var n=Pl(t,e);return n.hidden==!0?r<0?a==!0?n.startDate-(n.endDate-t)-1:n.startDate-1:a==!0?n.endDate+(t-n.startDate)+1:n.endDate+1:t}function Pl(e,t){for(var r=0;r<t.length;r++){var a=t[r].start,n=t[r].end;if(e>=a&&e<n)return{hidden:!0,startDate:a,endDate:n}}return{hidden:!1,startDate:a,endDate:n}}function cQ(e){var t=uQ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function uQ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var f1=function(e){It(r,e);var t=cQ(r);function r(a,n){var s,o,l,d,c,f,v,m;fe(this,r),m=t.call(this);var g=Tt().hours(0).minutes(0).seconds(0).milliseconds(0),b=g.clone().add(-3,"days").valueOf(),S=g.clone().add(3,"days").valueOf();return m.millisecondsPerPixelCache=void 0,n===void 0?(m.start=b,m.end=S):(m.start=n.start||b,m.end=n.end||S),m.rolling=!1,m.body=a,m.deltaDifference=0,m.scaleOffset=0,m.startToFront=!1,m.endToFront=!0,m.defaultOptions={rtl:!1,start:null,end:null,moment:Tt,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:1e3*60*60*24*365*1e4,rollingMode:{follow:!1,offset:.5}},m.options=x.extend({},m.defaultOptions),m.props={touch:{}},m.animationTimer=null,m.body.emitter.on("panstart",P(s=m._onDragStart).call(s,Ne(m))),m.body.emitter.on("panmove",P(o=m._onDrag).call(o,Ne(m))),m.body.emitter.on("panend",P(l=m._onDragEnd).call(l,Ne(m))),m.body.emitter.on("mousewheel",P(d=m._onMouseWheel).call(d,Ne(m))),m.body.emitter.on("touch",P(c=m._onTouch).call(c,Ne(m))),m.body.emitter.on("pinch",P(f=m._onPinch).call(f,Ne(m))),m.body.dom.rollingModeBtn.addEventListener("click",P(v=m.startRolling).call(v,Ne(m))),m.setOptions(n),m}return pe(r,[{key:"setOptions",value:function(n){if(n){var s=["animation","direction","min","max","zoomMin","zoomMax","moveable","zoomable","moment","activate","hiddenDates","zoomKey","zoomFriction","rtl","showCurrentTime","rollingMode","horizontalScroll"];x.selectiveExtend(s,this.options,n),n.rollingMode&&n.rollingMode.follow&&this.startRolling(),("start"in n||"end"in n)&&this.setRange(n.start,n.end)}}},{key:"startRolling",value:function(){var n=this;function s(){n.stopRolling(),n.rolling=!0;var o=n.end-n.start,l=x.convert(new Date,"Date").valueOf(),d=n.options.rollingMode&&n.options.rollingMode.offset||.5,c=l-o*d,f=l+o*(1-d),v={animation:!1};n.setRange(c,f,v);var m=n.conversion(n.body.domProps.center.width).scale;o=1/m/10,o<30&&(o=30),o>1e3&&(o=1e3),n.body.dom.rollingModeBtn.style.visibility="hidden",n.currentTimeTimer=_t(s,o)}s()}},{key:"stopRolling",value:function(){this.currentTimeTimer!==void 0&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")}},{key:"setRange",value:function(n,s,o,l,d){o||(o={}),o.byUser!==!0&&(o.byUser=!1);var c=this,f=n!=null?x.convert(n,"Date").valueOf():null,v=s!=null?x.convert(s,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,o.animation){var m=this.start,g=this.end,b=ne(o.animation)==="object"&&"duration"in o.animation?o.animation.duration:500,S=ne(o.animation)==="object"&&"easingFunction"in o.animation?o.animation.easingFunction:"easeInOutQuad",w=x.easingFunctions[S];if(!w){var k;throw new Error(Me(k="Unknown easing function ".concat(Ft(S),". Choose from: ")).call(k,st(x.easingFunctions).join(", ")))}var T=qt(),D=!1,N=function R(){if(!c.props.touch.dragging){var C=qt(),j=C-T,O=w(j/b),M=j>b,H=M||f===null?f:m+(f-m)*O,z=M||v===null?v:g+(v-g)*O;L=c._applyRange(H,z),Al(c.options.moment,c.body,c.options.hiddenDates),D=D||L;var se={start:new Date(c.start),end:new Date(c.end),byUser:o.byUser,event:o.event};if(d&&d(O,L,M),L&&c.body.emitter.emit("rangechange",se),M){if(D&&(c.body.emitter.emit("rangechanged",se),l))return l()}else c.animationTimer=_t(R,20)}};return N()}else{var L=this._applyRange(f,v);if(Al(this.options.moment,this.body,this.options.hiddenDates),L){var A={start:new Date(this.start),end:new Date(this.end),byUser:o.byUser,event:o.event};if(this.body.emitter.emit("rangechange",A),clearTimeout(c.timeoutID),c.timeoutID=_t(function(){c.body.emitter.emit("rangechanged",A)},200),l)return l()}}}},{key:"getMillisecondsPerPixel",value:function(){return this.millisecondsPerPixelCache===void 0&&(this.millisecondsPerPixelCache=(this.end-this.start)/this.body.dom.center.clientWidth),this.millisecondsPerPixelCache}},{key:"_cancelAnimation",value:function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)}},{key:"_applyRange",value:function(n,s){var o=n!=null?x.convert(n,"Date").valueOf():this.start,l=s!=null?x.convert(s,"Date").valueOf():this.end,d=this.options.max!=null?x.convert(this.options.max,"Date").valueOf():null,c=this.options.min!=null?x.convert(this.options.min,"Date").valueOf():null,f;if(isNaN(o)||o===null)throw new Error('Invalid start "'.concat(n,'"'));if(isNaN(l)||l===null)throw new Error('Invalid end "'.concat(s,'"'));if(l<o&&(l=o),c!==null&&o<c&&(f=c-o,o+=f,l+=f,d!=null&&l>d&&(l=d)),d!==null&&l>d&&(f=l-d,o-=f,l-=f,c!=null&&o<c&&(o=c)),this.options.zoomMin!==null){var v=Ol(this.options.zoomMin);if(v<0&&(v=0),l-o<v){var m=.5;this.end-this.start===v&&o>=this.start-m&&l<=this.end?(o=this.start,l=this.end):(f=v-(l-o),o-=f/2,l+=f/2)}}if(this.options.zoomMax!==null){var g=Ol(this.options.zoomMax);g<0&&(g=0),l-o>g&&(this.end-this.start===g&&o<this.start&&l>this.end?(o=this.start,l=this.end):(f=l-o-g,o+=f/2,l-=f/2))}var b=this.start!=o||this.end!=l;return!(o>=this.start&&o<=this.end||l>=this.start&&l<=this.end)&&!(this.start>=o&&this.start<=l||this.end>=o&&this.end<=l)&&this.body.emitter.emit("checkRangedItems"),this.start=o,this.end=l,b}},{key:"getRange",value:function(){return{start:this.start,end:this.end}}},{key:"conversion",value:function(n,s){return r.conversion(this.start,this.end,n,s)}},{key:"_onDragStart",value:function(n){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(n)&&this.props.touch.allowDragging&&(this.stopRolling(),this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.dragging=!0,this.body.dom.root&&(this.body.dom.root.style.cursor="move"))}},{key:"_onDrag",value:function(n){if(n&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var s=this.options.direction;Ry(s);var o=s=="horizontal"?n.deltaX:n.deltaY;o-=this.deltaDifference;var l=this.props.touch.end-this.props.touch.start,d=ps(this.body.hiddenDates,this.start,this.end);l-=d;var c=s=="horizontal"?this.body.domProps.center.width:this.body.domProps.center.height,f;this.options.rtl?f=o/c*l:f=-o/c*l;var v=this.props.touch.start+f,m=this.props.touch.end+f,g=qn(this.body.hiddenDates,v,this.previousDelta-o,!0),b=qn(this.body.hiddenDates,m,this.previousDelta-o,!0);if(g!=v||b!=m){this.deltaDifference+=o,this.props.touch.start=g,this.props.touch.end=b,this._onDrag(n);return}this.previousDelta=o,this._applyRange(v,m);var S=new Date(this.start),w=new Date(this.end);this.body.emitter.emit("rangechange",{start:S,end:w,byUser:!0,event:n}),this.body.emitter.emit("panmove")}}},{key:"_onDragEnd",value:function(n){this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging&&(this.props.touch.dragging=!1,this.body.dom.root&&(this.body.dom.root.style.cursor="auto"),this.body.emitter.emit("rangechanged",{start:new Date(this.start),end:new Date(this.end),byUser:!0,event:n}))}},{key:"_onMouseWheel",value:function(n){var s=0;if(n.wheelDelta?s=n.wheelDelta/120:n.detail?s=-n.detail/3:n.deltaY&&(s=-n.deltaY/3),!(this.options.zoomKey&&!n[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(n)&&s){var o=this.options.zoomFriction||5,l;s<0?l=1-s/o:l=1/(1+s/o);var d;if(this.rolling){var c=this.options.rollingMode&&this.options.rollingMode.offset||.5;d=this.start+(this.end-this.start)*c}else{var f=this.getPointer({x:n.clientX,y:n.clientY},this.body.dom.center);d=this._pointerToDate(f)}this.zoom(l,d,s,n),n.preventDefault()}}},{key:"_onTouch",value:function(n){this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.allowDragging=!0,this.props.touch.center=null,this.props.touch.centerDate=null,this.scaleOffset=0,this.deltaDifference=0,x.preventDefault(n)}},{key:"_onPinch",value:function(n){if(this.options.zoomable&&this.options.moveable){x.preventDefault(n),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(n.center,this.body.dom.center),this.props.touch.centerDate=this._pointerToDate(this.props.touch.center)),this.stopRolling();var s=1/(n.scale+this.scaleOffset),o=this.props.touch.centerDate,l=ps(this.body.hiddenDates,this.start,this.end),d=Il(this.options.moment,this.body.hiddenDates,this,o),c=l-d,f=o-d+(this.props.touch.start-(o-d))*s,v=o+c+(this.props.touch.end-(o+c))*s;this.startToFront=1-s<=0,this.endToFront=s-1<=0;var m=qn(this.body.hiddenDates,f,1-s,!0),g=qn(this.body.hiddenDates,v,s-1,!0);(m!=f||g!=v)&&(this.props.touch.start=m,this.props.touch.end=g,this.scaleOffset=1-n.scale,f=m,v=g);var b={animation:!1,byUser:!0,event:n};this.setRange(f,v,b),this.startToFront=!1,this.endToFront=!0}}},{key:"_isInsideRange",value:function(n){var s=n.center?n.center.x:n.clientX,o=this.body.dom.centerContainer.getBoundingClientRect(),l=this.options.rtl?s-o.left:o.right-s,d=this.body.util.toTime(l);return d>=this.start&&d<=this.end}},{key:"_pointerToDate",value:function(n){var s,o=this.options.direction;if(Ry(o),o=="horizontal")return this.body.util.toTime(n.x).valueOf();var l=this.body.domProps.center.height;return s=this.conversion(l),n.y/s.scale+s.offset}},{key:"getPointer",value:function(n,s){var o=s.getBoundingClientRect();return this.options.rtl?{x:o.right-n.x,y:n.y-o.top}:{x:n.x-o.left,y:n.y-o.top}}},{key:"zoom",value:function(n,s,o,l){s==null&&(s=(this.start+this.end)/2);var d=ps(this.body.hiddenDates,this.start,this.end),c=Il(this.options.moment,this.body.hiddenDates,this,s),f=d-c,v=s-c+(this.start-(s-c))*n,m=s+f+(this.end-(s+f))*n;this.startToFront=!(o>0),this.endToFront=!(-o>0);var g=qn(this.body.hiddenDates,v,o,!0),b=qn(this.body.hiddenDates,m,-o,!0);(g!=v||b!=m)&&(v=g,m=b);var S={animation:!1,byUser:!0,event:l};this.setRange(v,m,S),this.startToFront=!1,this.endToFront=!0}},{key:"move",value:function(n){var s=this.end-this.start,o=this.start+s*n,l=this.end+s*n;this.start=o,this.end=l}},{key:"moveTo",value:function(n){var s=(this.start+this.end)/2,o=s-n,l=this.start-o,d=this.end-o,c={animation:!1,byUser:!0,event:null};this.setRange(l,d,c)}},{key:"destroy",value:function(){this.stopRolling()}}],[{key:"conversion",value:function(n,s,o,l){return l===void 0&&(l=0),o!=0&&s-n!=0?{offset:n,scale:o/(s-n-l)}:{offset:0,scale:1}}}]),r}(Fn);function Ry(e){if(e!="horizontal"&&e!="vertical")throw new TypeError('Unknown direction "'.concat(e,'". Choose "horizontal" or "vertical".'))}var hQ=xe,fQ=hQ.setInterval,pQ=fQ,vQ=K(pQ),el=null;function _h(e,t){var r=t||{preventDefault:!1};if(e.Manager){var a=e,n=function(c,f){var v=Object.create(r);return f&&a.assign(v,f),_h(new a(c,v),v)};return a.assign(n,a),n.Manager=function(c,f){var v=Object.create(r);return f&&a.assign(v,f),_h(new a.Manager(c,v),v)},n}var s=Object.create(e),o=e.element;o.hammer||(o.hammer=[]),o.hammer.push(s),e.on("hammer.input",function(c){(r.preventDefault===!0||r.preventDefault===c.pointerType)&&c.preventDefault(),c.isFirst&&(el=c.target)}),s._handlers={},s.on=function(c,f){return l(c).forEach(function(v){var m=s._handlers[v];m||(s._handlers[v]=m=[],e.on(v,d)),m.push(f)}),s},s.off=function(c,f){return l(c).forEach(function(v){var m=s._handlers[v];m&&(m=f?m.filter(function(g){return g!==f}):[],m.length>0?s._handlers[v]=m:(e.off(v,d),delete s._handlers[v]))}),s},s.emit=function(c,f){el=f.target,e.emit(c,f)},s.destroy=function(){var c=e.element.hammer,f=c.indexOf(s);f!==-1&&c.splice(f,1),c.length||delete e.element.hammer,s._handlers={},e.destroy()};function l(c){return c.match(/[^ ]+/g)}function d(c){if(c.type!=="hammer.input"){if(c.srcEvent._handled||(c.srcEvent._handled={}),c.srcEvent._handled[c.type])return;c.srcEvent._handled[c.type]=!0}var f=!1;c.stopPropagation=function(){f=!0};var v=c.srcEvent.stopPropagation.bind(c.srcEvent);typeof v=="function"&&(c.srcEvent.stopPropagation=function(){v(),c.stopPropagation()}),c.firstTarget=el;for(var m=el;m&&!f;){var g=m.hammer;if(g){for(var b,S=0;S<g.length;S++)if(b=g[S]._handlers[c.type],b)for(var w=0;w<b.length&&!f;w++)b[w](c)}m=m.parentNode}}return s}function mQ(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get:function(r){return{set:e}}}}var bh;if(typeof window<"u"){var gQ=window.Hammer||Lw;bh=_h(gQ,{preventDefault:"mouse"})}else bh=function(){return mQ()};var kt=bh;function p1(e,t){t.inputHandler=function(r){r.isFirst&&t(r)},e.on("hammer.input",t.inputHandler)}function yQ(e,t){return t.inputHandler=function(r){r.isFinal&&t(r)},e.on("hammer.input",t.inputHandler)}function _Q(e){var t="pan-y";return e.getTouchAction=function(){return[t]},e}var Ml=function(){function e(t,r,a,n,s){fe(this,e),this.moment=s&&s.moment||Tt,this.options=s||{},this.current=this.moment(),this._start=this.moment(),this._end=this.moment(),this.autoScale=!0,this.scale="day",this.step=1,this.setRange(t,r,a),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,ae(n)?this.hiddenDates=n:n!=null?this.hiddenDates=[n]:this.hiddenDates=[],this.format=e.FORMAT}return pe(e,[{key:"setMoment",value:function(r){this.moment=r,this.current=this.moment(this.current.valueOf()),this._start=this.moment(this._start.valueOf()),this._end=this.moment(this._end.valueOf())}},{key:"setFormat",value:function(r){var a=x.deepExtend({},e.FORMAT);this.format=x.deepExtend(a,r)}},{key:"setRange",value:function(r,a,n){if(!(r instanceof Date)||!(a instanceof Date))throw"No legal start or end date in method setRange";this._start=r!=null?this.moment(r.valueOf()):qt(),this._end=a!=null?this.moment(a.valueOf()):qt(),this.autoScale&&this.setMinimumStep(n)}},{key:"start",value:function(){this.current=this._start.clone(),this.roundToMinor()}},{key:"roundToMinor",value:function(){switch(this.scale=="week"&&this.current.weekday(0),this.scale){case"year":this.current.year(this.step*Math.floor(this.current.year()/this.step)),this.current.month(0);case"month":this.current.date(1);case"week":case"day":case"weekday":this.current.hours(0);case"hour":this.current.minutes(0);case"minute":this.current.seconds(0);case"second":this.current.milliseconds(0)}if(this.step!=1){var r=this.current.clone();switch(this.scale){case"millisecond":this.current.subtract(this.current.milliseconds()%this.step,"milliseconds");break;case"second":this.current.subtract(this.current.seconds()%this.step,"seconds");break;case"minute":this.current.subtract(this.current.minutes()%this.step,"minutes");break;case"hour":this.current.subtract(this.current.hours()%this.step,"hours");break;case"weekday":case"day":this.current.subtract((this.current.date()-1)%this.step,"day");break;case"week":this.current.subtract(this.current.week()%this.step,"week");break;case"month":this.current.subtract(this.current.month()%this.step,"month");break;case"year":this.current.subtract(this.current.year()%this.step,"year");break}r.isSame(this.current)||(this.current=this.moment(qn(this.hiddenDates,this.current.valueOf(),-1,!0)))}}},{key:"hasNext",value:function(){return this.current.valueOf()<=this._end.valueOf()}},{key:"next",value:function(){var r=this.current.valueOf();switch(this.scale){case"millisecond":this.current.add(this.step,"millisecond");break;case"second":this.current.add(this.step,"second");break;case"minute":this.current.add(this.step,"minute");break;case"hour":this.current.add(this.step,"hour"),this.current.month()<6?this.current.subtract(this.current.hours()%this.step,"hour"):this.current.hours()%this.step!==0&&this.current.add(this.step-this.current.hours()%this.step,"hour");break;case"weekday":case"day":this.current.add(this.step,"day");break;case"week":if(this.current.weekday()!==0)this.current.weekday(0),this.current.add(this.step,"week");else if(this.options.showMajorLabels===!1)this.current.add(this.step,"week");else{var a=this.current.clone();a.add(1,"week"),a.isSame(this.current,"month")?this.current.add(this.step,"week"):(this.current.add(this.step,"week"),this.current.date(1))}break;case"month":this.current.add(this.step,"month");break;case"year":this.current.add(this.step,"year");break}if(this.step!=1)switch(this.scale){case"millisecond":this.current.milliseconds()>0&&this.current.milliseconds()<this.step&&this.current.milliseconds(0);break;case"second":this.current.seconds()>0&&this.current.seconds()<this.step&&this.current.seconds(0);break;case"minute":this.current.minutes()>0&&this.current.minutes()<this.step&&this.current.minutes(0);break;case"hour":this.current.hours()>0&&this.current.hours()<this.step&&this.current.hours(0);break;case"weekday":case"day":this.current.date()<this.step+1&&this.current.date(1);break;case"week":this.current.week()<this.step&&this.current.week(1);break;case"month":this.current.month()<this.step&&this.current.month(0);break}this.current.valueOf()==r&&(this.current=this._end.clone()),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,oQ(this.moment,this,r)}},{key:"getCurrent",value:function(){return this.current.clone()}},{key:"setScale",value:function(r){r&&typeof r.scale=="string"&&(this.scale=r.scale,this.step=r.step>0?r.step:1,this.autoScale=!1)}},{key:"setAutoScale",value:function(r){this.autoScale=r}},{key:"setMinimumStep",value:function(r){if(r!=null){var a=1e3*60*60*24*30*12,n=1e3*60*60*24*30,s=1e3*60*60*24,o=1e3*60*60,l=1e3*60,d=1e3,c=1;a*1e3>r&&(this.scale="year",this.step=1e3),a*500>r&&(this.scale="year",this.step=500),a*100>r&&(this.scale="year",this.step=100),a*50>r&&(this.scale="year",this.step=50),a*10>r&&(this.scale="year",this.step=10),a*5>r&&(this.scale="year",this.step=5),a>r&&(this.scale="year",this.step=1),n*3>r&&(this.scale="month",this.step=3),n>r&&(this.scale="month",this.step=1),s*7>r&&this.options.showWeekScale&&(this.scale="week",this.step=1),s*2>r&&(this.scale="day",this.step=2),s>r&&(this.scale="day",this.step=1),s/2>r&&(this.scale="weekday",this.step=1),o*4>r&&(this.scale="hour",this.step=4),o>r&&(this.scale="hour",this.step=1),l*15>r&&(this.scale="minute",this.step=15),l*10>r&&(this.scale="minute",this.step=10),l*5>r&&(this.scale="minute",this.step=5),l>r&&(this.scale="minute",this.step=1),d*15>r&&(this.scale="second",this.step=15),d*10>r&&(this.scale="second",this.step=10),d*5>r&&(this.scale="second",this.step=5),d>r&&(this.scale="second",this.step=1),c*200>r&&(this.scale="millisecond",this.step=200),c*100>r&&(this.scale="millisecond",this.step=100),c*50>r&&(this.scale="millisecond",this.step=50),c*10>r&&(this.scale="millisecond",this.step=10),c*5>r&&(this.scale="millisecond",this.step=5),c>r&&(this.scale="millisecond",this.step=1)}}},{key:"isMajor",value:function(){if(this.switchedYear==!0)switch(this.scale){case"year":case"month":case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(this.switchedMonth==!0)switch(this.scale){case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(this.switchedDay==!0)switch(this.scale){case"millisecond":case"second":case"minute":case"hour":return!0;default:return!1}var r=this.moment(this.current);switch(this.scale){case"millisecond":return r.milliseconds()==0;case"second":return r.seconds()==0;case"minute":return r.hours()==0&&r.minutes()==0;case"hour":return r.hours()==0;case"weekday":case"day":return this.options.showWeekScale?r.isoWeekday()==1:r.date()==1;case"week":return r.date()==1;case"month":return r.month()==0;case"year":return!1;default:return!1}}},{key:"getLabelMinor",value:function(r){if(r==null&&(r=this.current),r instanceof Date&&(r=this.moment(r)),typeof this.format.minorLabels=="function")return this.format.minorLabels(r,this.scale,this.step);var a=this.format.minorLabels[this.scale];switch(this.scale){case"week":if(r.date()===1&&r.weekday()!==0)return"";default:return a&&a.length>0?this.moment(r).format(a):""}}},{key:"getLabelMajor",value:function(r){if(r==null&&(r=this.current),r instanceof Date&&(r=this.moment(r)),typeof this.format.majorLabels=="function")return this.format.majorLabels(r,this.scale,this.step);var a=this.format.majorLabels[this.scale];return a&&a.length>0?this.moment(r).format(a):""}},{key:"getClassName",value:function(){var r,a=this.moment,n=this.moment(this.current),s=n.locale?n.locale("en"):n.lang("en"),o=this.step,l=[];function d(g){return g/o%2==0?" vis-even":" vis-odd"}function c(g){return g.isSame(qt(),"day")?" vis-today":g.isSame(a().add(1,"day"),"day")?" vis-tomorrow":g.isSame(a().add(-1,"day"),"day")?" vis-yesterday":""}function f(g){return g.isSame(qt(),"week")?" vis-current-week":""}function v(g){return g.isSame(qt(),"month")?" vis-current-month":""}function m(g){return g.isSame(qt(),"year")?" vis-current-year":""}switch(this.scale){case"millisecond":l.push(c(s)),l.push(d(s.milliseconds()));break;case"second":l.push(c(s)),l.push(d(s.seconds()));break;case"minute":l.push(c(s)),l.push(d(s.minutes()));break;case"hour":l.push(Me(r="vis-h".concat(s.hours())).call(r,this.step==4?"-h"+(s.hours()+4):"")),l.push(c(s)),l.push(d(s.hours()));break;case"weekday":l.push("vis-".concat(s.format("dddd").toLowerCase())),l.push(c(s)),l.push(f(s)),l.push(d(s.date()));break;case"day":l.push("vis-day".concat(s.date())),l.push("vis-".concat(s.format("MMMM").toLowerCase())),l.push(c(s)),l.push(v(s)),l.push(this.step<=2?c(s):""),l.push(this.step<=2?"vis-".concat(s.format("dddd").toLowerCase()):""),l.push(d(s.date()-1));break;case"week":l.push("vis-week".concat(s.format("w"))),l.push(f(s)),l.push(d(s.week()));break;case"month":l.push("vis-".concat(s.format("MMMM").toLowerCase())),l.push(v(s)),l.push(d(s.month()));break;case"year":l.push("vis-year".concat(s.year())),l.push(m(s)),l.push(d(s.year()));break}return te(l).call(l,String).join(" ")}}],[{key:"snap",value:function(r,a,n){var s=Tt(r);if(a=="year"){var o=s.year()+Math.round(s.month()/12);s.year(Math.round(o/n)*n),s.month(0),s.date(0),s.hours(0),s.minutes(0),s.seconds(0),s.milliseconds(0)}else if(a=="month")s.date()>15?(s.date(1),s.add(1,"month")):s.date(1),s.hours(0),s.minutes(0),s.seconds(0),s.milliseconds(0);else if(a=="week")s.weekday()>2?(s.weekday(0),s.add(1,"week")):s.weekday(0),s.hours(0),s.minutes(0),s.seconds(0),s.milliseconds(0);else if(a=="day"){switch(n){case 5:case 2:s.hours(Math.round(s.hours()/24)*24);break;default:s.hours(Math.round(s.hours()/12)*12);break}s.minutes(0),s.seconds(0),s.milliseconds(0)}else if(a=="weekday"){switch(n){case 5:case 2:s.hours(Math.round(s.hours()/12)*12);break;default:s.hours(Math.round(s.hours()/6)*6);break}s.minutes(0),s.seconds(0),s.milliseconds(0)}else if(a=="hour"){switch(n){case 4:s.minutes(Math.round(s.minutes()/60)*60);break;default:s.minutes(Math.round(s.minutes()/30)*30);break}s.seconds(0),s.milliseconds(0)}else if(a=="minute"){switch(n){case 15:case 10:s.minutes(Math.round(s.minutes()/5)*5),s.seconds(0);break;case 5:s.seconds(Math.round(s.seconds()/60)*60);break;default:s.seconds(Math.round(s.seconds()/30)*30);break}s.milliseconds(0)}else if(a=="second")switch(n){case 15:case 10:s.seconds(Math.round(s.seconds()/5)*5),s.milliseconds(0);break;case 5:s.milliseconds(Math.round(s.milliseconds()/1e3)*1e3);break;default:s.milliseconds(Math.round(s.milliseconds()/500)*500);break}else if(a=="millisecond"){var l=n>5?n/2:1;s.milliseconds(Math.round(s.milliseconds()/l)*l)}return s}}]),e}();Ml.FORMAT={minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",year:""}};function Pt(e,t){t===void 0&&(t={});var r=t.insertAt;if(!(!e||typeof document>"u")){var a=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",r==="top"&&a.firstChild?a.insertBefore(n,a.firstChild):a.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}var bQ=`.vis-time-axis {
67
+ position: relative;
68
+ overflow: hidden;
69
+ }
70
+
71
+ .vis-time-axis.vis-foreground {
72
+ top: 0;
73
+ left: 0;
74
+ width: 100%;
75
+ }
76
+
77
+ .vis-time-axis.vis-background {
78
+ position: absolute;
79
+ top: 0;
80
+ left: 0;
81
+ width: 100%;
82
+ height: 100%;
83
+ }
84
+
85
+ .vis-time-axis .vis-text {
86
+ position: absolute;
87
+ color: #4d4d4d;
88
+ padding: 3px;
89
+ overflow: hidden;
90
+ box-sizing: border-box;
91
+
92
+ white-space: nowrap;
93
+ }
94
+
95
+ .vis-time-axis .vis-text.vis-measure {
96
+ position: absolute;
97
+ padding-left: 0;
98
+ padding-right: 0;
99
+ margin-left: 0;
100
+ margin-right: 0;
101
+ visibility: hidden;
102
+ }
103
+
104
+ .vis-time-axis .vis-grid.vis-vertical {
105
+ position: absolute;
106
+ border-left: 1px solid;
107
+ }
108
+
109
+ .vis-time-axis .vis-grid.vis-vertical-rtl {
110
+ position: absolute;
111
+ border-right: 1px solid;
112
+ }
113
+
114
+ .vis-time-axis .vis-grid.vis-minor {
115
+ border-color: #e5e5e5;
116
+ }
117
+
118
+ .vis-time-axis .vis-grid.vis-major {
119
+ border-color: #bfbfbf;
120
+ }
121
+ `;Pt(bQ);function wQ(e){var t=EQ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function EQ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var Rl=function(e){It(r,e);var t=wQ(r);function r(a,n){var s;return fe(this,r),s=t.call(this),s.dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},s.props={range:{start:0,end:0,minimumStep:0},lineTop:0},s.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,maxMinorChars:7,format:x.extend({},Ml.FORMAT),moment:Tt,timeAxis:null},s.options=x.extend({},s.defaultOptions),s.body=a,s._create(),s.setOptions(n),s}return pe(r,[{key:"setOptions",value:function(n){n&&(x.selectiveExtend(["showMinorLabels","showMajorLabels","showWeekScale","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,n),x.selectiveDeepExtend(["format"],this.options,n),"orientation"in n&&(typeof n.orientation=="string"?this.options.orientation.axis=n.orientation:ne(n.orientation)==="object"&&"axis"in n.orientation&&(this.options.orientation.axis=n.orientation.axis)),"locale"in n&&(typeof Tt.locale=="function"?Tt.locale(n.locale):Tt.lang(n.locale)))}},{key:"_create",value:function(){this.dom.foreground=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.foreground.className="vis-time-axis vis-foreground",this.dom.background.className="vis-time-axis vis-background"}},{key:"destroy",value:function(){this.dom.foreground.parentNode&&this.dom.foreground.parentNode.removeChild(this.dom.foreground),this.dom.background.parentNode&&this.dom.background.parentNode.removeChild(this.dom.background),this.body=null}},{key:"redraw",value:function(){var n=this.props,s=this.dom.foreground,o=this.dom.background,l=this.options.orientation.axis=="top"?this.body.dom.top:this.body.dom.bottom,d=s.parentNode!==l;this._calculateCharSize();var c=this.options.showMinorLabels&&this.options.orientation.axis!=="none",f=this.options.showMajorLabels&&this.options.orientation.axis!=="none";n.minorLabelHeight=c?n.minorCharHeight:0,n.majorLabelHeight=f?n.majorCharHeight:0,n.height=n.minorLabelHeight+n.majorLabelHeight,n.width=s.offsetWidth,n.minorLineHeight=this.body.domProps.root.height-n.majorLabelHeight-(this.options.orientation.axis=="top"?this.body.domProps.bottom.height:this.body.domProps.top.height),n.minorLineWidth=1,n.majorLineHeight=n.minorLineHeight+n.majorLabelHeight,n.majorLineWidth=1;var v=s.nextSibling,m=o.nextSibling;return s.parentNode&&s.parentNode.removeChild(s),o.parentNode&&o.parentNode.removeChild(o),s.style.height="".concat(this.props.height,"px"),this._repaintLabels(),v?l.insertBefore(s,v):l.appendChild(s),m?this.body.dom.backgroundVertical.insertBefore(o,m):this.body.dom.backgroundVertical.appendChild(o),this._isResized()||d}},{key:"_repaintLabels",value:function(){var n=this.options.orientation.axis,s=x.convert(this.body.range.start,"Number"),o=x.convert(this.body.range.end,"Number"),l=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),d=l-Il(this.options.moment,this.body.hiddenDates,this.body.range,l);d-=this.body.util.toTime(0).valueOf();var c=new Ml(new Date(s),new Date(o),d,this.body.hiddenDates,this.options);c.setMoment(this.options.moment),this.options.format&&c.setFormat(this.options.format),this.options.timeAxis&&c.setScale(this.options.timeAxis),this.step=c;var f=this.dom;f.redundant.lines=f.lines,f.redundant.majorTexts=f.majorTexts,f.redundant.minorTexts=f.minorTexts,f.lines=[],f.majorTexts=[],f.minorTexts=[];var v,m,g,b,S,w,k=0,T,D,N=void 0,L=0,A=1e3,R;for(c.start(),m=c.getCurrent(),b=this.body.util.toScreen(m);c.hasNext()&&L<A;){switch(L++,S=c.isMajor(),R=c.getClassName(),v=m,g=b,c.next(),m=c.getCurrent(),b=this.body.util.toScreen(m),T=k,k=b-g,c.scale){case"week":w=!0;break;default:w=k>=T*.4;break}if(this.options.showMinorLabels&&w){var C=this._repaintMinorText(g,c.getLabelMinor(v),n,R);C.style.width="".concat(k,"px")}S&&this.options.showMajorLabels?(g>0&&(N==null&&(N=g),C=this._repaintMajorText(g,c.getLabelMajor(v),n,R)),D=this._repaintMajorLine(g,k,n,R)):w?D=this._repaintMinorLine(g,k,n,R):D&&(D.style.width="".concat(Xt(D.style.width)+k,"px"))}if(L===A&&!Ly&&(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(A," lines.")),Ly=!0),this.options.showMajorLabels){var j=this.body.util.toTime(0),O=c.getLabelMajor(j),M=O.length*(this.props.majorCharWidth||10)+10;(N==null||M<N)&&this._repaintMajorText(0,O,n,R)}G(x).call(x,this.dom.redundant,function(H){for(;H.length;){var z=H.pop();z&&z.parentNode&&z.parentNode.removeChild(z)}})}},{key:"_repaintMinorText",value:function(n,s,o,l){var d=this.dom.redundant.minorTexts.shift();if(!d){var c=document.createTextNode("");d=document.createElement("div"),d.appendChild(c),this.dom.foreground.appendChild(d)}this.dom.minorTexts.push(d),d.innerHTML=x.xss(s);var f=o=="top"?this.props.majorLabelHeight:0;return this._setXY(d,n,f),d.className="vis-text vis-minor ".concat(l),d}},{key:"_repaintMajorText",value:function(n,s,o,l){var d=this.dom.redundant.majorTexts.shift();if(!d){var c=document.createElement("div");d=document.createElement("div"),d.appendChild(c),this.dom.foreground.appendChild(d)}d.childNodes[0].innerHTML=x.xss(s),d.className="vis-text vis-major ".concat(l);var f=o=="top"?0:this.props.minorLabelHeight;return this._setXY(d,n,f),this.dom.majorTexts.push(d),d}},{key:"_setXY",value:function(n,s,o){var l,d=this.options.rtl?s*-1:s;n.style.transform=Me(l="translate(".concat(d,"px, ")).call(l,o,"px)")}},{key:"_repaintMinorLine",value:function(n,s,o,l){var d,c=this.dom.redundant.lines.shift();c||(c=document.createElement("div"),this.dom.background.appendChild(c)),this.dom.lines.push(c);var f=this.props;c.style.width="".concat(s,"px"),c.style.height="".concat(f.minorLineHeight,"px");var v=o=="top"?f.majorLabelHeight:this.body.domProps.top.height,m=n-f.minorLineWidth/2;return this._setXY(c,m,v),c.className=Me(d="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-minor ")).call(d,l),c}},{key:"_repaintMajorLine",value:function(n,s,o,l){var d,c=this.dom.redundant.lines.shift();c||(c=document.createElement("div"),this.dom.background.appendChild(c)),this.dom.lines.push(c);var f=this.props;c.style.width="".concat(s,"px"),c.style.height="".concat(f.majorLineHeight,"px");var v=o=="top"?0:this.body.domProps.top.height,m=n-f.majorLineWidth/2;return this._setXY(c,m,v),c.className=Me(d="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-major ")).call(d,l),c}},{key:"_calculateCharSize",value:function(){this.dom.measureCharMinor||(this.dom.measureCharMinor=document.createElement("DIV"),this.dom.measureCharMinor.className="vis-text vis-minor vis-measure",this.dom.measureCharMinor.style.position="absolute",this.dom.measureCharMinor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMinor)),this.props.minorCharHeight=this.dom.measureCharMinor.clientHeight,this.props.minorCharWidth=this.dom.measureCharMinor.clientWidth,this.dom.measureCharMajor||(this.dom.measureCharMajor=document.createElement("DIV"),this.dom.measureCharMajor.className="vis-text vis-major vis-measure",this.dom.measureCharMajor.style.position="absolute",this.dom.measureCharMajor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMajor)),this.props.majorCharHeight=this.dom.measureCharMajor.clientHeight,this.props.majorCharWidth=this.dom.measureCharMajor.clientWidth}}]),r}(Fn),Ly=!1;function SQ(e){var t=window,r={},a={keydown:{},keyup:{}},n={},s;for(s=97;s<=122;s++)n[String.fromCharCode(s)]={code:65+(s-97),shift:!1};for(s=65;s<=90;s++)n[String.fromCharCode(s)]={code:s,shift:!0};for(s=0;s<=9;s++)n[""+s]={code:48+s,shift:!1};for(s=1;s<=12;s++)n["F"+s]={code:111+s,shift:!1};for(s=0;s<=9;s++)n["num"+s]={code:96+s,shift:!1};n["num*"]={code:106,shift:!1},n["num+"]={code:107,shift:!1},n["num-"]={code:109,shift:!1},n["num/"]={code:111,shift:!1},n["num."]={code:110,shift:!1},n.left={code:37,shift:!1},n.up={code:38,shift:!1},n.right={code:39,shift:!1},n.down={code:40,shift:!1},n.space={code:32,shift:!1},n.enter={code:13,shift:!1},n.shift={code:16,shift:void 0},n.esc={code:27,shift:!1},n.backspace={code:8,shift:!1},n.tab={code:9,shift:!1},n.ctrl={code:17,shift:!1},n.alt={code:18,shift:!1},n.delete={code:46,shift:!1},n.pageup={code:33,shift:!1},n.pagedown={code:34,shift:!1},n["="]={code:187,shift:!1},n["-"]={code:189,shift:!1},n["]"]={code:221,shift:!1},n["["]={code:219,shift:!1};var o=function(c){d(c,"keydown")},l=function(c){d(c,"keyup")},d=function(c,f){if(a[f][c.keyCode]!==void 0)for(var v=a[f][c.keyCode],m=0;m<v.length;m++)(v[m].shift===void 0||v[m].shift==!0&&c.shiftKey==!0||v[m].shift==!1&&c.shiftKey==!1)&&v[m].fn(c)};return r.bind=function(c,f,v){if(v===void 0&&(v="keydown"),n[c]===void 0)throw new Error("unsupported key: "+c);a[v][n[c].code]===void 0&&(a[v][n[c].code]=[]),a[v][n[c].code].push({fn:f,shift:n[c].shift})},r.bindAll=function(c,f){f===void 0&&(f="keydown");for(var v in n)n.hasOwnProperty(v)&&r.bind(v,c,f)},r.getKey=function(c){for(var f in n)if(n.hasOwnProperty(f)){if(c.shiftKey==!0&&n[f].shift==!0&&c.keyCode==n[f].code)return f;if(c.shiftKey==!1&&n[f].shift==!1&&c.keyCode==n[f].code)return f;if(c.keyCode==n[f].code&&f=="shift")return f}return"unknown key, currently not supported"},r.unbind=function(c,f,v){if(v===void 0&&(v="keydown"),n[c]===void 0)throw new Error("unsupported key: "+c);if(f!==void 0){var m=[],g=a[v][n[c].code];if(g!==void 0)for(var b=0;b<g.length;b++)g[b].fn==f&&g[b].shift==n[c].shift||m.push(a[v][n[c].code][b]);a[v][n[c].code]=m}else a[v][n[c].code]=[]},r.reset=function(){a={keydown:{},keyup:{}}},r.destroy=function(){a={keydown:{},keyup:{}},t.removeEventListener("keydown",o,!0),t.removeEventListener("keyup",l,!0)},t.addEventListener("keydown",o,!0),t.addEventListener("keyup",l,!0),r}var kQ=`.vis .overlay {
122
+ position: absolute;
123
+ top: 0;
124
+ left: 0;
125
+ width: 100%;
126
+ height: 100%;
127
+
128
+ /* Must be displayed above for example selected Timeline items */
129
+ z-index: 10;
130
+ }
131
+
132
+ .vis-active {
133
+ box-shadow: 0 0 10px #86d5f8;
134
+ }
135
+ `;Pt(kQ);function or(e){var t,r;this.active=!1,this.dom={container:e},this.dom.overlay=document.createElement("div"),this.dom.overlay.className="vis-overlay",this.dom.container.appendChild(this.dom.overlay),this.hammer=kt(this.dom.overlay),this.hammer.on("tap",P(t=this._onTapOverlay).call(t,this));var a=this,n=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];G(n).call(n,function(s){a.hammer.on(s,function(o){o.stopPropagation()})}),document&&document.body&&(this.onClick=function(s){xQ(s.target,e)||a.deactivate()},document.body.addEventListener("click",this.onClick)),this.keycharm!==void 0&&this.keycharm.destroy(),this.keycharm=SQ(),this.escListener=P(r=this.deactivate).call(r,this)}uf(or.prototype);or.current=null;or.prototype.destroy=function(){this.deactivate(),this.dom.overlay.parentNode.removeChild(this.dom.overlay),this.onClick&&document.body.removeEventListener("click",this.onClick),this.keycharm!==void 0&&this.keycharm.destroy(),this.keycharm=null,this.hammer.destroy(),this.hammer=null};or.prototype.activate=function(){var e;or.current&&or.current.deactivate(),or.current=this,this.active=!0,this.dom.overlay.style.display="none",x.addClassName(this.dom.container,"vis-active"),this.emit("change"),this.emit("activate"),P(e=this.keycharm).call(e,"esc",this.escListener)};or.prototype.deactivate=function(){or.current===this&&(or.current=null),this.active=!1,this.dom.overlay.style.display="",x.removeClassName(this.dom.container,"vis-active"),this.keycharm.unbind("esc",this.escListener),this.emit("change"),this.emit("deactivate")};or.prototype._onTapOverlay=function(e){this.activate(),e.stopPropagation()};function xQ(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}var Bf={current:"current",time:"time",deleteSelected:"Delete selected"},TQ=Bf,$Q=Bf,Hf={current:"attuale",time:"tempo",deleteSelected:"Cancella la selezione"},DQ=Hf,NQ=Hf,Wf={current:"huidige",time:"tijd",deleteSelected:"Selectie verwijderen"},CQ=Wf,OQ=Wf,v1={current:"Aktuelle",time:"Zeit",deleteSelected:"Lösche Auswahl"},AQ=v1,_d={current:"actuel",time:"heure",deleteSelected:"Effacer la selection"},IQ=_d,PQ=_d,MQ=_d,m1={current:"corriente",time:"hora",deleteSelected:"Eliminar selección"},RQ=m1,g1={current:"поточний",time:"час",deleteSelected:"Видалити обране"},LQ=g1,y1={current:"текущее",time:"время",deleteSelected:"Удалить выбранное"},VQ=y1,_1={current:"aktualny",time:"czas",deleteSelected:"Usuń wybrane"},FQ=_1,Gf={current:"atual",time:"data",deleteSelected:"Apagar selecionado"},YQ=Gf,jQ=Gf,b1={current:"現在",time:"時刻",deleteSelected:"選択されたものを削除"},BQ=b1,w1={current:"nuvarande",time:"tid",deleteSelected:"Radera valda"},HQ=w1,bd={current:"nåværende",time:"tid",deleteSelected:"Slett valgte"},WQ=bd,GQ=bd,zQ=bd,E1={current:"einamas",time:"laikas",deleteSelected:"Pašalinti pasirinktą"},UQ=E1,wa={en:Bf,en_EN:TQ,en_US:$Q,it:Hf,it_IT:DQ,it_CH:NQ,nl:Wf,nl_NL:CQ,nl_BE:OQ,de:v1,de_DE:AQ,fr:_d,fr_FR:IQ,fr_CA:PQ,fr_BE:MQ,es:m1,es_ES:RQ,uk:g1,uk_UA:LQ,ru:y1,ru_RU:VQ,pl:_1,pl_PL:FQ,pt:Gf,pt_BR:YQ,pt_PT:jQ,ja:b1,ja_JP:BQ,lt:E1,lt_LT:UQ,sv:w1,sv_SE:HQ,nb:bd,nn:GQ,nb_NO:WQ,nn_NO:zQ},KQ=`.vis-custom-time {
136
+ background-color: #6E94FF;
137
+ width: 2px;
138
+ cursor: move;
139
+ z-index: 1;
140
+ }
141
+
142
+ .vis-custom-time > .vis-custom-time-marker {
143
+ background-color: inherit;
144
+ color: white;
145
+ font-size: 12px;
146
+ white-space: nowrap;
147
+ padding: 3px 5px;
148
+ top: 0px;
149
+ cursor: initial;
150
+ z-index: inherit;
151
+ }`;Pt(KQ);function qQ(e){var t=XQ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function XQ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var zf=function(e){It(r,e);var t=qQ(r);function r(a,n){var s,o;fe(this,r),o=t.call(this),o.body=a,o.defaultOptions={moment:Tt,locales:wa,locale:"en",id:void 0,title:void 0},o.options=x.extend({},o.defaultOptions),o.setOptions(n),o.options.locales=x.extend({},wa,o.options.locales);var l=o.defaultOptions.locales[o.defaultOptions.locale];return G(s=st(o.options.locales)).call(s,function(d){o.options.locales[d]=x.extend({},l,o.options.locales[d])}),n&&n.time!=null?o.customTime=n.time:o.customTime=new Date,o.eventParams={},o._create(),o}return pe(r,[{key:"setOptions",value:function(n){n&&x.selectiveExtend(["moment","locale","locales","id","title","rtl","snap"],this.options,n)}},{key:"_create",value:function(){var n,s,o,l=document.createElement("div");l["custom-time"]=this,l.className="vis-custom-time ".concat(this.options.id||""),l.style.position="absolute",l.style.top="0px",l.style.height="100%",this.bar=l;var d=document.createElement("div");d.style.position="relative",d.style.top="0px",this.options.rtl?d.style.right="-10px":d.style.left="-10px",d.style.height="100%",d.style.width="20px";function c(f){this.body.range._onMouseWheel(f)}d.addEventListener?(d.addEventListener("mousewheel",P(c).call(c,this),!1),d.addEventListener("DOMMouseScroll",P(c).call(c,this),!1)):d.attachEvent("onmousewheel",P(c).call(c,this)),l.appendChild(d),this.hammer=new kt(d),this.hammer.on("panstart",P(n=this._onDragStart).call(n,this)),this.hammer.on("panmove",P(s=this._onDrag).call(s,this)),this.hammer.on("panend",P(o=this._onDragEnd).call(o,this)),this.hammer.get("pan").set({threshold:5,direction:kt.DIRECTION_ALL}),this.hammer.get("press").set({time:1e4})}},{key:"destroy",value:function(){this.hide(),this.hammer.destroy(),this.hammer=null,this.body=null}},{key:"redraw",value:function(){var n=this.body.dom.backgroundVertical;this.bar.parentNode!=n&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),n.appendChild(this.bar));var s=this.body.util.toScreen(this.customTime),o=this.options.locales[this.options.locale];o||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),o=this.options.locales.en);var l=this.options.title;if(l===void 0){var d;l=Me(d="".concat(o.time,": ")).call(d,this.options.moment(this.customTime).format("dddd, MMMM Do YYYY, H:mm:ss")),l=l.charAt(0).toUpperCase()+l.substring(1)}else typeof l=="function"&&(l=l.call(this,this.customTime));return this.options.rtl?this.bar.style.right="".concat(s,"px"):this.bar.style.left="".concat(s,"px"),this.bar.title=l,!1}},{key:"hide",value:function(){this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"setCustomTime",value:function(n){this.customTime=x.convert(n,"Date"),this.redraw()}},{key:"getCustomTime",value:function(){return new Date(this.customTime.valueOf())}},{key:"setCustomMarker",value:function(n,s){if(this.marker&&this.bar.removeChild(this.marker),this.marker=document.createElement("div"),this.marker.className="vis-custom-time-marker",this.marker.innerHTML=x.xss(n),this.marker.style.position="absolute",s){var o,l;this.marker.setAttribute("contenteditable","true"),this.marker.addEventListener("pointerdown",function(){this.marker.focus()}),this.marker.addEventListener("input",P(o=this._onMarkerChange).call(o,this)),this.marker.title=n,this.marker.addEventListener("blur",P(l=function(c){this.title!=c.target.innerHTML&&(this._onMarkerChanged(c),this.title=c.target.innerHTML)}).call(l,this))}this.bar.appendChild(this.marker)}},{key:"setCustomTitle",value:function(n){this.options.title=n}},{key:"_onDragStart",value:function(n){this.eventParams.dragging=!0,this.eventParams.customTime=this.customTime,n.stopPropagation()}},{key:"_onDrag",value:function(n){if(this.eventParams.dragging){var s=this.options.rtl?-1*n.deltaX:n.deltaX,o=this.body.util.toScreen(this.eventParams.customTime)+s,l=this.body.util.toTime(o),d=this.body.util.getScale(),c=this.body.util.getStep(),f=this.options.snap,v=f?f(l,d,c):l;this.setCustomTime(v),this.body.emitter.emit("timechange",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:n}),n.stopPropagation()}}},{key:"_onDragEnd",value:function(n){this.eventParams.dragging&&(this.body.emitter.emit("timechanged",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:n}),n.stopPropagation())}},{key:"_onMarkerChange",value:function(n){this.body.emitter.emit("markerchange",{id:this.options.id,title:n.target.innerHTML,event:n}),n.stopPropagation()}},{key:"_onMarkerChanged",value:function(n){this.body.emitter.emit("markerchanged",{id:this.options.id,title:n.target.innerHTML,event:n}),n.stopPropagation()}}],[{key:"customTimeFromTarget",value:function(n){for(var s=n.target;s;){if(s.hasOwnProperty("custom-time"))return s["custom-time"];s=s.parentNode}return null}}]),r}(Fn),QQ=`.vis-timeline {
152
+ /*
153
+ -webkit-transition: height .4s ease-in-out;
154
+ transition: height .4s ease-in-out;
155
+ */
156
+ }
157
+
158
+ .vis-panel {
159
+ /*
160
+ -webkit-transition: height .4s ease-in-out, top .4s ease-in-out;
161
+ transition: height .4s ease-in-out, top .4s ease-in-out;
162
+ */
163
+ }
164
+
165
+ .vis-axis {
166
+ /*
167
+ -webkit-transition: top .4s ease-in-out;
168
+ transition: top .4s ease-in-out;
169
+ */
170
+ }
171
+
172
+ /* TODO: get animation working nicely
173
+
174
+ .vis-item {
175
+ -webkit-transition: top .4s ease-in-out;
176
+ transition: top .4s ease-in-out;
177
+ }
178
+
179
+ .vis-item.line {
180
+ -webkit-transition: height .4s ease-in-out, top .4s ease-in-out;
181
+ transition: height .4s ease-in-out, top .4s ease-in-out;
182
+ }
183
+ /**/`;Pt(QQ);var ZQ=`.vis-current-time {
184
+ background-color: #FF7F6E;
185
+ width: 2px;
186
+ z-index: 1;
187
+ pointer-events: none;
188
+ }
189
+
190
+ .vis-rolling-mode-btn {
191
+ height: 40px;
192
+ width: 40px;
193
+ position: absolute;
194
+ top: 7px;
195
+ right: 20px;
196
+ border-radius: 50%;
197
+ font-size: 28px;
198
+ cursor: pointer;
199
+ opacity: 0.8;
200
+ color: white;
201
+ font-weight: bold;
202
+ text-align: center;
203
+ background: #3876c2;
204
+ }
205
+ .vis-rolling-mode-btn:before {
206
+ content: "\\26F6";
207
+ }
208
+
209
+ .vis-rolling-mode-btn:hover {
210
+ opacity: 1;
211
+ }`;Pt(ZQ);var JQ=`.vis-panel {
212
+ position: absolute;
213
+
214
+ padding: 0;
215
+ margin: 0;
216
+
217
+ box-sizing: border-box;
218
+ }
219
+
220
+ .vis-panel.vis-center,
221
+ .vis-panel.vis-left,
222
+ .vis-panel.vis-right,
223
+ .vis-panel.vis-top,
224
+ .vis-panel.vis-bottom {
225
+ border: 1px #bfbfbf;
226
+ }
227
+
228
+ .vis-panel.vis-center,
229
+ .vis-panel.vis-left,
230
+ .vis-panel.vis-right {
231
+ border-top-style: solid;
232
+ border-bottom-style: solid;
233
+ overflow: hidden;
234
+ }
235
+
236
+ .vis-left.vis-panel.vis-vertical-scroll, .vis-right.vis-panel.vis-vertical-scroll {
237
+ height: 100%;
238
+ overflow-x: hidden;
239
+ overflow-y: scroll;
240
+ }
241
+
242
+ .vis-left.vis-panel.vis-vertical-scroll {
243
+ direction: rtl;
244
+ }
245
+
246
+ .vis-left.vis-panel.vis-vertical-scroll .vis-content {
247
+ direction: ltr;
248
+ }
249
+
250
+ .vis-right.vis-panel.vis-vertical-scroll {
251
+ direction: ltr;
252
+ }
253
+
254
+ .vis-right.vis-panel.vis-vertical-scroll .vis-content {
255
+ direction: rtl;
256
+ }
257
+
258
+ .vis-panel.vis-center,
259
+ .vis-panel.vis-top,
260
+ .vis-panel.vis-bottom {
261
+ border-left-style: solid;
262
+ border-right-style: solid;
263
+ }
264
+
265
+ .vis-background {
266
+ overflow: hidden;
267
+ }
268
+
269
+ .vis-panel > .vis-content {
270
+ position: relative;
271
+ }
272
+
273
+ .vis-panel .vis-shadow {
274
+ position: absolute;
275
+ width: 100%;
276
+ height: 1px;
277
+ box-shadow: 0 0 10px rgba(0,0,0,0.8);
278
+ /* TODO: find a nice way to ensure vis-shadows are drawn on top of items
279
+ z-index: 1;
280
+ */
281
+ }
282
+
283
+ .vis-panel .vis-shadow.vis-top {
284
+ top: -1px;
285
+ left: 0;
286
+ }
287
+
288
+ .vis-panel .vis-shadow.vis-bottom {
289
+ bottom: -1px;
290
+ left: 0;
291
+ }`;Pt(JQ);var eZ=`.vis-graph-group0 {
292
+ fill:#4f81bd;
293
+ fill-opacity:0;
294
+ stroke-width:2px;
295
+ stroke: #4f81bd;
296
+ }
297
+
298
+ .vis-graph-group1 {
299
+ fill:#f79646;
300
+ fill-opacity:0;
301
+ stroke-width:2px;
302
+ stroke: #f79646;
303
+ }
304
+
305
+ .vis-graph-group2 {
306
+ fill: #8c51cf;
307
+ fill-opacity:0;
308
+ stroke-width:2px;
309
+ stroke: #8c51cf;
310
+ }
311
+
312
+ .vis-graph-group3 {
313
+ fill: #75c841;
314
+ fill-opacity:0;
315
+ stroke-width:2px;
316
+ stroke: #75c841;
317
+ }
318
+
319
+ .vis-graph-group4 {
320
+ fill: #ff0100;
321
+ fill-opacity:0;
322
+ stroke-width:2px;
323
+ stroke: #ff0100;
324
+ }
325
+
326
+ .vis-graph-group5 {
327
+ fill: #37d8e6;
328
+ fill-opacity:0;
329
+ stroke-width:2px;
330
+ stroke: #37d8e6;
331
+ }
332
+
333
+ .vis-graph-group6 {
334
+ fill: #042662;
335
+ fill-opacity:0;
336
+ stroke-width:2px;
337
+ stroke: #042662;
338
+ }
339
+
340
+ .vis-graph-group7 {
341
+ fill:#00ff26;
342
+ fill-opacity:0;
343
+ stroke-width:2px;
344
+ stroke: #00ff26;
345
+ }
346
+
347
+ .vis-graph-group8 {
348
+ fill:#ff00ff;
349
+ fill-opacity:0;
350
+ stroke-width:2px;
351
+ stroke: #ff00ff;
352
+ }
353
+
354
+ .vis-graph-group9 {
355
+ fill: #8f3938;
356
+ fill-opacity:0;
357
+ stroke-width:2px;
358
+ stroke: #8f3938;
359
+ }
360
+
361
+ .vis-timeline .vis-fill {
362
+ fill-opacity:0.1;
363
+ stroke: none;
364
+ }
365
+
366
+
367
+ .vis-timeline .vis-bar {
368
+ fill-opacity:0.5;
369
+ stroke-width:1px;
370
+ }
371
+
372
+ .vis-timeline .vis-point {
373
+ stroke-width:2px;
374
+ fill-opacity:1.0;
375
+ }
376
+
377
+
378
+ .vis-timeline .vis-legend-background {
379
+ stroke-width:1px;
380
+ fill-opacity:0.9;
381
+ fill: #ffffff;
382
+ stroke: #c2c2c2;
383
+ }
384
+
385
+
386
+ .vis-timeline .vis-outline {
387
+ stroke-width:1px;
388
+ fill-opacity:1;
389
+ fill: #ffffff;
390
+ stroke: #e5e5e5;
391
+ }
392
+
393
+ .vis-timeline .vis-icon-fill {
394
+ fill-opacity:0.3;
395
+ stroke: none;
396
+ }
397
+ `;Pt(eZ);var tZ=`
398
+ .vis-timeline {
399
+ position: relative;
400
+ border: 1px solid #bfbfbf;
401
+ overflow: hidden;
402
+ padding: 0;
403
+ margin: 0;
404
+ box-sizing: border-box;
405
+ }
406
+
407
+ .vis-loading-screen {
408
+ width: 100%;
409
+ height: 100%;
410
+ position: absolute;
411
+ top: 0;
412
+ left: 0;
413
+ }`;Pt(tZ);var rZ=`/* override some bootstrap styles screwing up the timelines css */
414
+
415
+ .vis [class*="span"] {
416
+ min-height: 0;
417
+ width: auto;
418
+ }
419
+ `;Pt(rZ);var sa=function(){function e(){fe(this,e)}return pe(e,[{key:"_create",value:function(r){var a=this,n,s,o;this.dom={},this.dom.container=r,this.dom.container.style.position="relative",this.dom.root=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.backgroundVertical=document.createElement("div"),this.dom.backgroundHorizontal=document.createElement("div"),this.dom.centerContainer=document.createElement("div"),this.dom.leftContainer=document.createElement("div"),this.dom.rightContainer=document.createElement("div"),this.dom.center=document.createElement("div"),this.dom.left=document.createElement("div"),this.dom.right=document.createElement("div"),this.dom.top=document.createElement("div"),this.dom.bottom=document.createElement("div"),this.dom.shadowTop=document.createElement("div"),this.dom.shadowBottom=document.createElement("div"),this.dom.shadowTopLeft=document.createElement("div"),this.dom.shadowBottomLeft=document.createElement("div"),this.dom.shadowTopRight=document.createElement("div"),this.dom.shadowBottomRight=document.createElement("div"),this.dom.rollingModeBtn=document.createElement("div"),this.dom.loadingScreen=document.createElement("div"),this.dom.root.className="vis-timeline",this.dom.background.className="vis-panel vis-background",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical",this.dom.backgroundHorizontal.className="vis-panel vis-background vis-horizontal",this.dom.centerContainer.className="vis-panel vis-center",this.dom.leftContainer.className="vis-panel vis-left",this.dom.rightContainer.className="vis-panel vis-right",this.dom.top.className="vis-panel vis-top",this.dom.bottom.className="vis-panel vis-bottom",this.dom.left.className="vis-content",this.dom.center.className="vis-content",this.dom.right.className="vis-content",this.dom.shadowTop.className="vis-shadow vis-top",this.dom.shadowBottom.className="vis-shadow vis-bottom",this.dom.shadowTopLeft.className="vis-shadow vis-top",this.dom.shadowBottomLeft.className="vis-shadow vis-bottom",this.dom.shadowTopRight.className="vis-shadow vis-top",this.dom.shadowBottomRight.className="vis-shadow vis-bottom",this.dom.rollingModeBtn.className="vis-rolling-mode-btn",this.dom.loadingScreen.className="vis-loading-screen",this.dom.root.appendChild(this.dom.background),this.dom.root.appendChild(this.dom.backgroundVertical),this.dom.root.appendChild(this.dom.backgroundHorizontal),this.dom.root.appendChild(this.dom.centerContainer),this.dom.root.appendChild(this.dom.leftContainer),this.dom.root.appendChild(this.dom.rightContainer),this.dom.root.appendChild(this.dom.top),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.rollingModeBtn),this.dom.centerContainer.appendChild(this.dom.center),this.dom.leftContainer.appendChild(this.dom.left),this.dom.rightContainer.appendChild(this.dom.right),this.dom.centerContainer.appendChild(this.dom.shadowTop),this.dom.centerContainer.appendChild(this.dom.shadowBottom),this.dom.leftContainer.appendChild(this.dom.shadowTopLeft),this.dom.leftContainer.appendChild(this.dom.shadowBottomLeft),this.dom.rightContainer.appendChild(this.dom.shadowTopRight),this.dom.rightContainer.appendChild(this.dom.shadowBottomRight),this.props={root:{},background:{},centerContainer:{},leftContainer:{},rightContainer:{},center:{},left:{},right:{},top:{},bottom:{},border:{},scrollTop:0,scrollTopMin:0},this.on("rangechange",function(){a.initialDrawDone===!0&&a._redraw()}),this.on("rangechanged",function(){a.initialRangeChangeDone||(a.initialRangeChangeDone=!0)}),this.on("touch",P(n=this._onTouch).call(n,this)),this.on("panmove",P(s=this._onDrag).call(s,this));var l=this;this._origRedraw=P(o=this._redraw).call(o,this),this._redraw=x.throttle(this._origRedraw),this.on("_change",function(w){l.itemSet&&l.itemSet.initialItemSetDrawn&&w&&w.queue==!0?l._redraw():l._origRedraw()}),this.hammer=new kt(this.dom.root);var d=this.hammer.get("pinch").set({enable:!0});d&&_Q(d),this.hammer.get("pan").set({threshold:5,direction:kt.DIRECTION_ALL}),this.timelineListeners={};var c=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];G(c).call(c,function(w){var k=function(D){l.isActive()&&l.emit(w,D)};l.hammer.on(w,k),l.timelineListeners[w]=k}),p1(this.hammer,function(w){l.emit("touch",w)}),yQ(this.hammer,function(w){l.emit("release",w)});function f(w){var k=40,T=800;this.isActive()&&this.emit("mousewheel",w);var D=0,N=0;if("detail"in w&&(N=w.detail*-1),"wheelDelta"in w&&(N=w.wheelDelta),"wheelDeltaY"in w&&(N=w.wheelDeltaY),"wheelDeltaX"in w&&(D=w.wheelDeltaX*-1),"axis"in w&&w.axis===w.HORIZONTAL_AXIS&&(D=N*-1,N=0),"deltaY"in w&&(N=w.deltaY*-1),"deltaX"in w&&(D=w.deltaX),w.deltaMode&&(w.deltaMode===1?(D*=k,N*=k):(D*=k,N*=T)),this.options.preferZoom){if(!this.options.zoomKey||w[this.options.zoomKey])return}else if(this.options.zoomKey&&w[this.options.zoomKey])return;if(!(!this.options.verticalScroll&&!this.options.horizontalScroll)){if(this.options.verticalScroll&&Math.abs(N)>=Math.abs(D)){var L=this.props.scrollTop,A=L+N;if(this.isActive()){var R=this._setScrollTop(A);R!==L&&(this._redraw(),this.emit("scroll",w),w.preventDefault())}}else if(this.options.horizontalScroll){var C=Math.abs(D)>=Math.abs(N)?D:N,j=C/120*(this.range.end-this.range.start)/20,O=this.range.start+j,M=this.range.end+j,H={animation:!1,byUser:!0,event:w};this.range.setRange(O,M,H),w.preventDefault()}}}var v="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":this.dom.centerContainer.addEventListener?"DOMMouseScroll":"onmousewheel";this.dom.top.addEventListener,this.dom.bottom.addEventListener,this.dom.centerContainer.addEventListener(v,P(f).call(f,this),!1),this.dom.top.addEventListener(v,P(f).call(f,this),!1),this.dom.bottom.addEventListener(v,P(f).call(f,this),!1);function m(w){if(l.options.verticalScroll&&(w.preventDefault(),l.isActive())){var k=-w.target.scrollTop;l._setScrollTop(k),l._redraw(),l.emit("scrollSide",w)}}this.dom.left.parentNode.addEventListener("scroll",P(m).call(m,this)),this.dom.right.parentNode.addEventListener("scroll",P(m).call(m,this));var g=!1;function b(w){var k;if(w.preventDefault&&(l.emit("dragover",l.getEventProperties(w)),w.preventDefault()),Ce(k=w.target.className).call(k,"timeline")>-1&&!g)return w.dataTransfer.dropEffect="move",g=!0,!1}function S(w){w.preventDefault&&w.preventDefault(),w.stopPropagation&&w.stopPropagation();try{var k=JSON.parse(w.dataTransfer.getData("text"));if(!k||!k.content)return}catch{return!1}return g=!1,w.center={x:w.clientX,y:w.clientY},k.target!=="item"?l.itemSet._onAddItem(w):l.itemSet._onDropObjectOnItem(w),l.emit("drop",l.getEventProperties(w)),!1}if(this.dom.center.addEventListener("dragover",P(b).call(b,this),!1),this.dom.center.addEventListener("drop",P(S).call(S,this),!1),this.customTimes=[],this.touch={},this.redrawCount=0,this.initialDrawDone=!1,this.initialRangeChangeDone=!1,!r)throw new Error("No container provided");r.appendChild(this.dom.root),r.appendChild(this.dom.loadingScreen)}},{key:"setOptions",value:function(r){var a;if(r){var n=["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","preferZoom","rtl","zoomKey","horizontalScroll","verticalScroll","longSelectPressTime","snap"];if(x.selectiveExtend(n,this.options,r),this.dom.rollingModeBtn.style.visibility="hidden",this.options.rtl&&(this.dom.container.style.direction="rtl",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical-rtl"),this.options.verticalScroll&&(this.options.rtl?this.dom.rightContainer.className="vis-panel vis-right vis-vertical-scroll":this.dom.leftContainer.className="vis-panel vis-left vis-vertical-scroll"),ne(this.options.orientation)!=="object"&&(this.options.orientation={item:void 0,axis:void 0}),"orientation"in r&&(typeof r.orientation=="string"?this.options.orientation={item:r.orientation,axis:r.orientation}:ne(r.orientation)==="object"&&("item"in r.orientation&&(this.options.orientation.item=r.orientation.item),"axis"in r.orientation&&(this.options.orientation.axis=r.orientation.axis))),this.options.orientation.axis==="both"){if(!this.timeAxis2){var s=this.timeAxis2=new Rl(this.body,this.options);s.setOptions=function(v){var m=v?x.extend({},v):{};m.orientation="top",Rl.prototype.setOptions.call(s,m)},this.components.push(s)}}else if(this.timeAxis2){var o,l=Ce(o=this.components).call(o,this.timeAxis2);if(l!==-1){var d;xt(d=this.components).call(d,l,1)}this.timeAxis2.destroy(),this.timeAxis2=null}typeof r.drawPoints=="function"&&(r.drawPoints={onRender:r.drawPoints}),"hiddenDates"in this.options&&jf(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in r&&(r.clickToUse?this.activator||(this.activator=new or(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(G(a=this.components).call(a,function(v){return v.setOptions(r)}),"configure"in r){var c;this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(r.configure);var f=x.deepExtend({},this.options);G(c=this.components).call(c,function(v){x.deepExtend(f,v.options)}),this.configurator.setModuleOptions({global:f})}this._redraw()}},{key:"isActive",value:function(){return!this.activator||this.activator.active}},{key:"destroy",value:function(){var r;this.setItems(null),this.setGroups(null),this.off(),this._stopAutoResize(),this.dom.root.parentNode&&this.dom.root.parentNode.removeChild(this.dom.root),this.dom=null,this.activator&&(this.activator.destroy(),delete this.activator);for(var a in this.timelineListeners)this.timelineListeners.hasOwnProperty(a)&&delete this.timelineListeners[a];this.timelineListeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,G(r=this.components).call(r,function(n){return n.destroy()}),this.body=null}},{key:"setCustomTime",value:function(r,a){var n,s=te(n=this.customTimes).call(n,function(o){return a===o.options.id});if(s.length===0)throw new Error("No custom time bar found with id ".concat(Ft(a)));s.length>0&&s[0].setCustomTime(r)}},{key:"getCustomTime",value:function(r){var a,n=te(a=this.customTimes).call(a,function(s){return s.options.id===r});if(n.length===0)throw new Error("No custom time bar found with id ".concat(Ft(r)));return n[0].getCustomTime()}},{key:"setCustomTimeMarker",value:function(r,a,n){var s,o=te(s=this.customTimes).call(s,function(l){return l.options.id===a});if(o.length===0)throw new Error("No custom time bar found with id ".concat(Ft(a)));o.length>0&&o[0].setCustomMarker(r,n)}},{key:"setCustomTimeTitle",value:function(r,a){var n,s=te(n=this.customTimes).call(n,function(o){return o.options.id===a});if(s.length===0)throw new Error("No custom time bar found with id ".concat(Ft(a)));if(s.length>0)return s[0].setCustomTitle(r)}},{key:"getEventProperties",value:function(r){return{event:r}}},{key:"addCustomTime",value:function(r,a){var n,s=r!==void 0?x.convert(r,"Date"):new Date,o=Rf(n=this.customTimes).call(n,function(d){return d.options.id===a});if(o)throw new Error("A custom time with id ".concat(Ft(a)," already exists"));var l=new zf(this.body,x.extend({},this.options,{time:s,id:a,snap:this.itemSet?this.itemSet.options.snap:this.options.snap}));return this.customTimes.push(l),this.components.push(l),this._redraw(),a}},{key:"removeCustomTime",value:function(r){var a,n=this,s=te(a=this.customTimes).call(a,function(o){return o.options.id===r});if(s.length===0)throw new Error("No custom time bar found with id ".concat(Ft(r)));G(s).call(s,function(o){var l,d,c,f;xt(l=n.customTimes).call(l,Ce(d=n.customTimes).call(d,o),1),xt(c=n.components).call(c,Ce(f=n.components).call(f,o),1),o.destroy()})}},{key:"getVisibleItems",value:function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]}},{key:"getItemsAtCurrentTime",value:function(r){return this.time=r,this.itemSet&&this.itemSet.getItemsAtCurrentTime(this.time)||[]}},{key:"getVisibleGroups",value:function(){return this.itemSet&&this.itemSet.getVisibleGroups()||[]}},{key:"fit",value:function(r,a){var n=this.getDataRange();if(!(n.min===null&&n.max===null)){var s=n.max-n.min,o=new Date(n.min.valueOf()-s*.01),l=new Date(n.max.valueOf()+s*.01),d=r&&r.animation!==void 0?r.animation:!0;this.range.setRange(o,l,{animation:d},a)}}},{key:"getDataRange",value:function(){throw new Error("Cannot invoke abstract method getDataRange")}},{key:"setWindow",value:function(r,a,n,s){typeof arguments[2]=="function"&&(s=arguments[2],n={});var o,l;arguments.length==1?(l=arguments[0],o=l.animation!==void 0?l.animation:!0,this.range.setRange(l.start,l.end,{animation:o})):arguments.length==2&&typeof arguments[1]=="function"?(l=arguments[0],s=arguments[1],o=l.animation!==void 0?l.animation:!0,this.range.setRange(l.start,l.end,{animation:o},s)):(o=n&&n.animation!==void 0?n.animation:!0,this.range.setRange(r,a,{animation:o},s))}},{key:"moveTo",value:function(r,a,n){typeof arguments[1]=="function"&&(n=arguments[1],a={});var s=this.range.end-this.range.start,o=x.convert(r,"Date").valueOf(),l=o-s/2,d=o+s/2,c=a&&a.animation!==void 0?a.animation:!0;this.range.setRange(l,d,{animation:c},n)}},{key:"getWindow",value:function(){var r=this.range.getRange();return{start:new Date(r.start),end:new Date(r.end)}}},{key:"zoomIn",value:function(r,a,n){if(!(!r||r<0||r>1)){typeof arguments[1]=="function"&&(n=arguments[1],a={});var s=this.getWindow(),o=s.start.valueOf(),l=s.end.valueOf(),d=l-o,c=d/(1+r),f=(d-c)/2,v=o+f,m=l-f;this.setWindow(v,m,a,n)}}},{key:"zoomOut",value:function(r,a,n){if(!(!r||r<0||r>1)){typeof arguments[1]=="function"&&(n=arguments[1],a={});var s=this.getWindow(),o=s.start.valueOf(),l=s.end.valueOf(),d=l-o,c=o-d*r/2,f=l+d*r/2;this.setWindow(c,f,a,n)}}},{key:"redraw",value:function(){this._redraw()}},{key:"_redraw",value:function(){var r;this.redrawCount++;var a=this.dom;if(!(!a||!a.container||a.root.offsetWidth==0)){var n=!1,s=this.options,o=this.props;Al(this.options.moment,this.body,this.options.hiddenDates),s.orientation=="top"?(x.addClassName(a.root,"vis-top"),x.removeClassName(a.root,"vis-bottom")):(x.removeClassName(a.root,"vis-top"),x.addClassName(a.root,"vis-bottom")),s.rtl?(x.addClassName(a.root,"vis-rtl"),x.removeClassName(a.root,"vis-ltr")):(x.addClassName(a.root,"vis-ltr"),x.removeClassName(a.root,"vis-rtl")),a.root.style.maxHeight=x.option.asSize(s.maxHeight,""),a.root.style.minHeight=x.option.asSize(s.minHeight,""),a.root.style.width=x.option.asSize(s.width,"");var l=a.root.offsetWidth;o.border.left=1,o.border.right=1,o.border.top=1,o.border.bottom=1,o.center.height=a.center.offsetHeight,o.left.height=a.left.offsetHeight,o.right.height=a.right.offsetHeight,o.top.height=a.top.clientHeight||-o.border.top,o.bottom.height=Math.round(a.bottom.getBoundingClientRect().height)||a.bottom.clientHeight||-o.border.bottom;var d=Math.max(o.left.height,o.center.height,o.right.height),c=o.top.height+d+o.bottom.height+o.border.top+o.border.bottom;a.root.style.height=x.option.asSize(s.height,"".concat(c,"px")),o.root.height=a.root.offsetHeight,o.background.height=o.root.height;var f=o.root.height-o.top.height-o.bottom.height;o.centerContainer.height=f,o.leftContainer.height=f,o.rightContainer.height=o.leftContainer.height,o.root.width=l,o.background.width=o.root.width,this.initialDrawDone||(o.scrollbarWidth=x.getScrollBarWidth());var v=a.leftContainer.clientWidth,m=a.rightContainer.clientWidth;s.verticalScroll?s.rtl?(o.left.width=v||-o.border.left,o.right.width=m+o.scrollbarWidth||-o.border.right):(o.left.width=v+o.scrollbarWidth||-o.border.left,o.right.width=m||-o.border.right):(o.left.width=v||-o.border.left,o.right.width=m||-o.border.right),this._setDOM();var g=this._updateScrollTop();s.orientation.item!="top"&&(g+=Math.max(o.centerContainer.height-o.center.height-o.border.top-o.border.bottom,0)),a.center.style.transform="translateY(".concat(g,"px)");var b=o.scrollTop==0?"hidden":"",S=o.scrollTop==o.scrollTopMin?"hidden":"";a.shadowTop.style.visibility=b,a.shadowBottom.style.visibility=S,a.shadowTopLeft.style.visibility=b,a.shadowBottomLeft.style.visibility=S,a.shadowTopRight.style.visibility=b,a.shadowBottomRight.style.visibility=S,s.verticalScroll&&(a.rightContainer.className="vis-panel vis-right vis-vertical-scroll",a.leftContainer.className="vis-panel vis-left vis-vertical-scroll",a.shadowTopRight.style.visibility="hidden",a.shadowBottomRight.style.visibility="hidden",a.shadowTopLeft.style.visibility="hidden",a.shadowBottomLeft.style.visibility="hidden",a.left.style.top="0px",a.right.style.top="0px"),(!s.verticalScroll||o.center.height<o.centerContainer.height)&&(a.left.style.top="".concat(g,"px"),a.right.style.top="".concat(g,"px"),a.rightContainer.className=a.rightContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),a.leftContainer.className=a.leftContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),o.left.width=v||-o.border.left,o.right.width=m||-o.border.right,this._setDOM());var w=o.center.height>o.centerContainer.height;this.hammer.get("pan").set({direction:w?kt.DIRECTION_ALL:kt.DIRECTION_HORIZONTAL}),this.hammer.get("press").set({time:this.options.longSelectPressTime}),G(r=this.components).call(r,function(T){n=T.redraw()||n});var k=5;if(n)if(this.redrawCount<k){this.body.emitter.emit("_change");return}else console.log("WARNING: infinite loop in redraw?");else this.redrawCount=0;this.body.emitter.emit("changed")}}},{key:"_setDOM",value:function(){var r=this.props,a=this.dom;r.leftContainer.width=r.left.width,r.rightContainer.width=r.right.width;var n=r.root.width-r.left.width-r.right.width;r.center.width=n,r.centerContainer.width=n,r.top.width=n,r.bottom.width=n,a.background.style.height="".concat(r.background.height,"px"),a.backgroundVertical.style.height="".concat(r.background.height,"px"),a.backgroundHorizontal.style.height="".concat(r.centerContainer.height,"px"),a.centerContainer.style.height="".concat(r.centerContainer.height,"px"),a.leftContainer.style.height="".concat(r.leftContainer.height,"px"),a.rightContainer.style.height="".concat(r.rightContainer.height,"px"),a.background.style.width="".concat(r.background.width,"px"),a.backgroundVertical.style.width="".concat(r.centerContainer.width,"px"),a.backgroundHorizontal.style.width="".concat(r.background.width,"px"),a.centerContainer.style.width="".concat(r.center.width,"px"),a.top.style.width="".concat(r.top.width,"px"),a.bottom.style.width="".concat(r.bottom.width,"px"),a.background.style.left="0",a.background.style.top="0",a.backgroundVertical.style.left="".concat(r.left.width+r.border.left,"px"),a.backgroundVertical.style.top="0",a.backgroundHorizontal.style.left="0",a.backgroundHorizontal.style.top="".concat(r.top.height,"px"),a.centerContainer.style.left="".concat(r.left.width,"px"),a.centerContainer.style.top="".concat(r.top.height,"px"),a.leftContainer.style.left="0",a.leftContainer.style.top="".concat(r.top.height,"px"),a.rightContainer.style.left="".concat(r.left.width+r.center.width,"px"),a.rightContainer.style.top="".concat(r.top.height,"px"),a.top.style.left="".concat(r.left.width,"px"),a.top.style.top="0",a.bottom.style.left="".concat(r.left.width,"px"),a.bottom.style.top="".concat(r.top.height+r.centerContainer.height,"px"),a.center.style.left="0",a.left.style.left="0",a.right.style.left="0"}},{key:"setCurrentTime",value:function(r){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");this.currentTime.setCurrentTime(r)}},{key:"getCurrentTime",value:function(){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");return this.currentTime.getCurrentTime()}},{key:"_toTime",value:function(r){return Py(this,r,this.props.center.width)}},{key:"_toGlobalTime",value:function(r){return Py(this,r,this.props.root.width)}},{key:"_toScreen",value:function(r){return Iy(this,r,this.props.center.width)}},{key:"_toGlobalScreen",value:function(r){return Iy(this,r,this.props.root.width)}},{key:"_initAutoResize",value:function(){this.options.autoResize==!0?this._startAutoResize():this._stopAutoResize()}},{key:"_startAutoResize",value:function(){var r=this;this._stopAutoResize(),this._onResize=function(){if(r.options.autoResize!=!0){r._stopAutoResize();return}if(r.dom.root){var a=r.dom.root.offsetHeight,n=r.dom.root.offsetWidth;(n!=r.props.lastWidth||a!=r.props.lastHeight)&&(r.props.lastWidth=n,r.props.lastHeight=a,r.props.scrollbarWidth=x.getScrollBarWidth(),r.body.emitter.emit("_change"))}},window.addEventListener("resize",this._onResize),r.dom.root&&(r.props.lastWidth=r.dom.root.offsetWidth,r.props.lastHeight=r.dom.root.offsetHeight),this.watchTimer=vQ(this._onResize,1e3)}},{key:"_stopAutoResize",value:function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(window.removeEventListener("resize",this._onResize),this._onResize=null)}},{key:"_onTouch",value:function(r){this.touch.allowDragging=!0,this.touch.initialScrollTop=this.props.scrollTop}},{key:"_onPinch",value:function(r){this.touch.allowDragging=!1}},{key:"_onDrag",value:function(r){if(r&&this.touch.allowDragging){var a=r.deltaY,n=this._getScrollTop(),s=this._setScrollTop(this.touch.initialScrollTop+a);this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),s!=n&&this.emit("verticalDrag")}}},{key:"_setScrollTop",value:function(r){return this.props.scrollTop=r,this._updateScrollTop(),this.props.scrollTop}},{key:"_updateScrollTop",value:function(){var r=Math.min(this.props.centerContainer.height-this.props.border.top-this.props.border.bottom-this.props.center.height,0);return r!=this.props.scrollTopMin&&(this.options.orientation.item!="top"&&(this.props.scrollTop+=r-this.props.scrollTopMin),this.props.scrollTopMin=r),this.props.scrollTop>0&&(this.props.scrollTop=0),this.props.scrollTop<r&&(this.props.scrollTop=r),this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),this.props.scrollTop}},{key:"_getScrollTop",value:function(){return this.props.scrollTop}},{key:"_createConfigurator",value:function(){throw new Error("Cannot invoke abstract method _createConfigurator")}}]),e}();uf(sa.prototype);function nZ(e){var t=iZ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function iZ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var S1=function(e){It(r,e);var t=nZ(r);function r(a,n){var s,o;fe(this,r),o=t.call(this),o.body=a,o.defaultOptions={rtl:!1,showCurrentTime:!0,alignCurrentTime:void 0,moment:Tt,locales:wa,locale:"en"},o.options=x.extend({},o.defaultOptions),o.setOptions(n),o.options.locales=x.extend({},wa,o.options.locales);var l=o.defaultOptions.locales[o.defaultOptions.locale];return G(s=st(o.options.locales)).call(s,function(d){o.options.locales[d]=x.extend({},l,o.options.locales[d])}),o.offset=0,o._create(),o}return pe(r,[{key:"_create",value:function(){var n=document.createElement("div");n.className="vis-current-time",n.style.position="absolute",n.style.top="0px",n.style.height="100%",this.bar=n}},{key:"destroy",value:function(){this.options.showCurrentTime=!1,this.redraw(),this.body=null}},{key:"setOptions",value:function(n){n&&x.selectiveExtend(["rtl","showCurrentTime","alignCurrentTime","moment","locale","locales"],this.options,n)}},{key:"redraw",value:function(){if(this.options.showCurrentTime){var n,s,o=this.body.dom.backgroundVertical;this.bar.parentNode!=o&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),o.appendChild(this.bar),this.start());var l=this.options.moment(qt()+this.offset);this.options.alignCurrentTime&&(l=l.startOf(this.options.alignCurrentTime));var d=this.body.util.toScreen(l),c=this.options.locales[this.options.locale];c||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),c=this.options.locales.en);var f=Me(n=Me(s="".concat(c.current," ")).call(s,c.time,": ")).call(n,l.format("dddd, MMMM Do YYYY, H:mm:ss"));f=f.charAt(0).toUpperCase()+f.substring(1),this.options.rtl?this.bar.style.transform="translateX(".concat(d*-1,"px)"):this.bar.style.transform="translateX(".concat(d,"px)"),this.bar.title=f}else this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),this.stop();return!1}},{key:"start",value:function(){var n=this;function s(){n.stop();var o=n.body.range.conversion(n.body.domProps.center.width).scale,l=1/o/10;l<30&&(l=30),l>1e3&&(l=1e3),n.redraw(),n.body.emitter.emit("currentTimeTick"),n.currentTimeTimer=_t(s,l)}s()}},{key:"stop",value:function(){this.currentTimeTimer!==void 0&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}},{key:"setCurrentTime",value:function(n){var s=x.convert(n,"Date").valueOf(),o=qt();this.offset=s-o,this.redraw()}},{key:"getCurrentTime",value:function(){return new Date(qt()+this.offset)}}]),r}(Fn),aZ=X,sZ=hn.find,Vy="find",k1=!0;Vy in[]&&Array(1)[Vy](function(){k1=!1});aZ({target:"Array",proto:!0,forced:k1},{find:function(t){return sZ(this,t,arguments.length>1?arguments[1]:void 0)}});var oZ=We,lZ=oZ("Array").find,dZ=Oe,cZ=lZ,_u=Array.prototype,uZ=function(e){var t=e.find;return e===_u||dZ(_u,e)&&t===_u.find?cZ:t},hZ=uZ,fZ=hZ,pZ=fZ,vZ=K(pZ),mZ=X,gZ=hn.findIndex,Fy="findIndex",x1=!0;Fy in[]&&Array(1)[Fy](function(){x1=!1});mZ({target:"Array",proto:!0,forced:x1},{findIndex:function(t){return gZ(this,t,arguments.length>1?arguments[1]:void 0)}});var yZ=We,_Z=yZ("Array").findIndex,bZ=Oe,wZ=_Z,bu=Array.prototype,EZ=function(e){var t=e.findIndex;return e===bu||bZ(bu,e)&&t===bu.findIndex?wZ:t},SZ=EZ,kZ=SZ,xZ=kZ,TZ=K(xZ);function $Z(e,t){var r=typeof fn<"u"&&Ln(e)||e["@@iterator"];if(!r){if(ae(e)||(r=DZ(e))||t){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(c){throw c},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
420
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(o)throw l}}}}function DZ(e,t){var r;if(e){if(typeof e=="string")return Yy(e,t);var a=bt(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Rn(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Yy(e,t)}}function Yy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var Kt=.001;function NZ(e){Ze(e).call(e,function(t,r){return t.data.start-r.data.start})}function CZ(e){Ze(e).call(e,function(t,r){var a="end"in t.data?t.data.end:t.data.start,n="end"in r.data?r.data.end:r.data.start;return a-n})}function jy(e,t,r,a){var n=Uf(e,t.item,!1,function(s){return s.stack&&(r||s.top===null)},function(s){return s.stack},function(s){return t.axis},a);return n===null}function OZ(e,t,r){var a=Uf(e,t.item,!1,function(n){return n.stack},function(n){return!0},function(n){return n.baseTop});r.height=a-r.top+.5*t.item.vertical}function AZ(e,t,r,a){for(var n=0;n<e.length;n++)if(e[n].data.subgroup==null)e[n].top=t.item.vertical;else if(e[n].data.subgroup!==void 0&&a){var s=0;for(var o in r)r.hasOwnProperty(o)&&r[o].visible==!0&&r[o].index<r[e[n].data.subgroup].index&&(s+=r[o].height,r[e[n].data.subgroup].top=s);e[n].top=s+.5*t.item.vertical}a||IZ(e,t,r)}function IZ(e,t,r){var a;Uf(Ze(a=df(r)).call(a,function(s,o){return s.index>o.index?1:s.index<o.index?-1:0}),{vertical:0},!0,function(s){return!0},function(s){return!0},function(s){return 0});for(var n=0;n<e.length;n++)e[n].data.subgroup!==void 0&&(e[n].top=r[e[n].data.subgroup].top+.5*t.item.vertical)}function By(e,t,r){var a=!1,n=[];for(var s in r)r[s].hasOwnProperty("index")?n[r[s].index]=s:n.push(s);for(var o=0;o<n.length;o++)if(s=n[o],r.hasOwnProperty(s)){a=a||r[s].stack,r[s].top=0;for(var l in r)r[l].visible&&r[s].index>r[l].index&&(r[s].top+=r[l].height);for(var d=e[s],c=0;c<d.length;c++)d[c].data.subgroup!==void 0&&(d[c].top=r[d[c].data.subgroup].top+.5*t.item.vertical,r[s].stack&&(d[c].baseTop=d[c].top));a&&r[s].stack&&OZ(e[s],t,r[s])}}function Uf(e,t,r,a,n,s,o){var l=function(C){return C.start},d=function(C){return C.end};if(!r){var c=!!(e[0]&&e[0].options.rtl);c?l=function(C){return C.right}:l=function(C){return C.left},d=function(C){return l(C)+C.width+t.horizontal}}var f=[],v=[],m=null,g=0,b=$Z(e),S;try{var w=function(){var C=S.value;if(a(C))f.push(C);else if(n(C)){var j=l(C);m!==null&&j<m-Kt&&(g=0),m=j,g=tl(v,function(O){return l(O)-Kt>j},g),xt(v).call(v,g,0,C),g++}};for(b.s();!(S=b.n()).done;)w()}catch(R){b.e(R)}finally{b.f()}m=null;var k=null;g=0;for(var T=0,D=0,N=0,L=function(){var C,j,O=f.shift();O.top=s(O);var M=l(O),H=d(O);m!==null&&M<m-Kt&&(T=0,D=0,g=0,k=null),m=M,T=tl(v,function(he){return M<d(he)-Kt},T),(k===null||k<H-Kt)&&(D=tl(v,function(he){return H<l(he)-Kt},Math.max(T,D))),k!==null&&k-Kt>H&&(D=MZ(v,function(he){return H+Kt>=l(he)},T,D)+1);for(var z=Ze(C=te(j=bt(v).call(v,T,D)).call(j,function(he){return M<d(he)-Kt&&H-Kt>l(he)})).call(C,function(he,rt){return he.top-rt.top}),se=0;se<z.length;se++){var _e=z[se];PZ(O,_e,t)&&(O.top=_e.top+_e.height+t.vertical)}n(O)&&(g=tl(v,function(he){return l(he)-Kt>M},g),xt(v).call(v,g,0,O),g++);var be=O.top+O.height;if(be>N&&(N=be),o&&o())return{v:null}},A;f.length>0;)if(A=L(),A)return A.v;return N}function PZ(e,t,r){return e.top-r.vertical+Kt<t.top+t.height&&e.top+e.height+r.vertical-Kt>t.top}function tl(e,t,r){var a;r||(r=0);var n=TZ(a=bt(e).call(e,r)).call(a,t);return n===-1?e.length:n+r}function MZ(e,t,r,a){for(r||(r=0),a||(a=e.length),i=a-1;i>=r;i--)if(t(e[i]))return i;return r-1}var RZ="__background__",Hy={BACKGROUND:RZ},wh=function(){function e(t,r,a){var n=this;if(fe(this,e),this.groupId=t,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.subgroupVisibility={},this.doInnerStack=!1,this.shouldBailStackItems=!1,this.subgroupIndex=0,this.subgroupOrderer=r&&r.subgroupOrder,this.itemSet=a,this.isVisible=null,this.stackDirty=!0,this._disposeCallbacks=[],r&&r.nestedGroups&&(this.nestedGroups=r.nestedGroups,r.showNested==!1?this.showNested=!1:this.showNested=!0),r&&r.subgroupStack)if(typeof r.subgroupStack=="boolean")this.doInnerStack=r.subgroupStack,this.subgroupStackAll=r.subgroupStack;else for(var s in r.subgroupStack)this.subgroupStack[s]=r.subgroupStack[s],this.doInnerStack=this.doInnerStack||r.subgroupStack[s];r&&r.heightMode?this.heightMode=r.heightMode:this.heightMode=a.options.groupHeightMode,this.nestedInGroup=null,this.dom={},this.props={label:{width:0,height:0}},this.className=null,this.items={},this.visibleItems=[],this.itemsInRange=[],this.orderedItems={byStart:[],byEnd:[]},this.checkRangedItems=!1;var o=function(){n.checkRangedItems=!0};this.itemSet.body.emitter.on("checkRangedItems",o),this._disposeCallbacks.push(function(){n.itemSet.body.emitter.off("checkRangedItems",o)}),this._create(),this.setData(r)}return pe(e,[{key:"_create",value:function(){var r=document.createElement("div");this.itemSet.options.groupEditable.order?r.className="vis-label draggable":r.className="vis-label",this.dom.label=r;var a=document.createElement("div");a.className="vis-inner",r.appendChild(a),this.dom.inner=a;var n=document.createElement("div");n.className="vis-group",n["vis-group"]=this,this.dom.foreground=n,this.dom.background=document.createElement("div"),this.dom.background.className="vis-group",this.dom.axis=document.createElement("div"),this.dom.axis.className="vis-group",this.dom.marker=document.createElement("div"),this.dom.marker.style.visibility="hidden",this.dom.marker.style.position="absolute",this.dom.marker.innerHTML="",this.dom.background.appendChild(this.dom.marker)}},{key:"setData",value:function(r){if(!this.itemSet.groupTouchParams.isDragging){var a,n;if(r&&r.subgroupVisibility)for(var s in r.subgroupVisibility)this.subgroupVisibility[s]=r.subgroupVisibility[s];if(this.itemSet.options&&this.itemSet.options.groupTemplate){var o;n=P(o=this.itemSet.options.groupTemplate).call(o,this),a=n(r,this.dom.inner)}else a=r&&r.content;if(a instanceof Element){for(;this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(a)}else a instanceof Object&&a.isReactComponent||(a instanceof Object?n(r,this.dom.inner):a!=null?this.dom.inner.innerHTML=x.xss(a):this.dom.inner.innerHTML=x.xss(this.groupId||""));this.dom.label.title=r&&r.title||"",this.dom.inner.firstChild?x.removeClassName(this.dom.inner,"vis-hidden"):x.addClassName(this.dom.inner,"vis-hidden"),r&&r.nestedGroups?((!this.nestedGroups||this.nestedGroups!=r.nestedGroups)&&(this.nestedGroups=r.nestedGroups),(r.showNested!==void 0||this.showNested===void 0)&&(r.showNested==!1?this.showNested=!1:this.showNested=!0),x.addClassName(this.dom.label,"vis-nesting-group"),this.showNested?(x.removeClassName(this.dom.label,"collapsed"),x.addClassName(this.dom.label,"expanded")):(x.removeClassName(this.dom.label,"expanded"),x.addClassName(this.dom.label,"collapsed"))):this.nestedGroups&&(this.nestedGroups=null,x.removeClassName(this.dom.label,"collapsed"),x.removeClassName(this.dom.label,"expanded"),x.removeClassName(this.dom.label,"vis-nesting-group")),r&&(r.treeLevel||r.nestedInGroup)?(x.addClassName(this.dom.label,"vis-nested-group"),r.treeLevel?x.addClassName(this.dom.label,"vis-group-level-"+r.treeLevel):x.addClassName(this.dom.label,"vis-group-level-unknown-but-gte1")):x.addClassName(this.dom.label,"vis-group-level-0");var l=r&&r.className||null;l!=this.className&&(this.className&&(x.removeClassName(this.dom.label,this.className),x.removeClassName(this.dom.foreground,this.className),x.removeClassName(this.dom.background,this.className),x.removeClassName(this.dom.axis,this.className)),x.addClassName(this.dom.label,l),x.addClassName(this.dom.foreground,l),x.addClassName(this.dom.background,l),x.addClassName(this.dom.axis,l),this.className=l),this.style&&(x.removeCssText(this.dom.label,this.style),this.style=null),r&&r.style&&(x.addCssText(this.dom.label,r.style),this.style=r.style)}}},{key:"getLabelWidth",value:function(){return this.props.label.width}},{key:"_didMarkerHeightChange",value:function(){var r=this.dom.marker.clientHeight;if(r!=this.lastMarkerHeight){this.lastMarkerHeight=r;var a={},n=0;G(x).call(x,this.items,function(d,c){if(d.dirty=!0,d.displayed){var f=!0;a[c]=d.redraw(f),n=a[c].length}});var s=n>0;if(s)for(var o=function(c){G(x).call(x,a,function(f){f[c]()})},l=0;l<n;l++)o(l);return!0}else return!1}},{key:"_calculateGroupSizeAndPosition",value:function(){var r=this.dom.foreground,a=r.offsetTop,n=r.offsetLeft,s=r.offsetWidth;this.top=a,this.right=n,this.width=s}},{key:"_shouldBailItemsRedraw",value:function(){var r=this,a=this.itemSet.options.onTimeout,n={relativeBailingTime:this.itemSet.itemsSettingTime,bailTimeMs:a&&a.timeoutMs,userBailFunction:a&&a.callback,shouldBailStackItems:this.shouldBailStackItems},s=null;if(!this.itemSet.initialDrawDone){if(n.shouldBailStackItems)return!0;Math.abs(qt()-new Date(n.relativeBailingTime))>n.bailTimeMs&&(n.userBailFunction&&this.itemSet.userContinueNotBail==null?n.userBailFunction(function(o){r.itemSet.userContinueNotBail=o,s=!o}):r.itemSet.userContinueNotBail==!1?s=!0:s=!1)}return s}},{key:"_redrawItems",value:function(r,a,n,s){var o=this,l=r||this.stackDirty||this.isVisible&&!a;if(l){var d,c,f,v,m,g,b={byEnd:te(d=this.orderedItems.byEnd).call(d,function(H){return!H.isCluster}),byStart:te(c=this.orderedItems.byStart).call(c,function(H){return!H.isCluster})},S={byEnd:Fe(new xn(te(f=Se(v=this.orderedItems.byEnd).call(v,function(H){return H.cluster})).call(f,function(H){return!!H}))),byStart:Fe(new xn(te(m=Se(g=this.orderedItems.byStart).call(g,function(H){return H.cluster})).call(m,function(H){return!!H})))},w=function(){var z,se,_e,be=o._updateItemsInRange(b,te(z=o.visibleItems).call(z,function(rt){return!rt.isCluster}),s),he=o._updateClustersInRange(S,te(se=o.visibleItems).call(se,function(rt){return rt.isCluster}),s);return Me(_e=[]).call(_e,Fe(be),Fe(he))},k=function(z){var se={},_e=function(rt){var ut,Ie=te(ut=o.visibleItems).call(ut,function(Mt){return Mt.data.subgroup===rt});se[rt]=z?Ze(Ie).call(Ie,function(Mt,ht){return z(Mt.data,ht.data)}):Ie};for(var be in o.subgroups)_e(be);return se};if(typeof this.itemSet.options.order=="function"){var T=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups){var D=k(this.itemSet.options.order);By(D,n,this.subgroups),this.visibleItems=w(),this._updateSubGroupHeights(n)}else{var N,L,A,R;this.visibleItems=w(),this._updateSubGroupHeights(n);var C=Ze(N=te(L=bt(A=this.visibleItems).call(A)).call(L,function(H){return H.isCluster||!H.isCluster&&!H.cluster})).call(N,function(H,z){return T.itemSet.options.order(H.data,z.data)});this.shouldBailStackItems=jy(C,n,!0,P(R=this._shouldBailItemsRedraw).call(R,this))}}else if(this.visibleItems=w(),this._updateSubGroupHeights(n),this.itemSet.options.stack)if(this.doInnerStack&&this.itemSet.options.stackSubgroups){var j=k();By(j,n,this.subgroups)}else{var O;this.shouldBailStackItems=jy(this.visibleItems,n,!0,P(O=this._shouldBailItemsRedraw).call(O,this))}else AZ(this.visibleItems,n,this.subgroups,this.itemSet.options.stackSubgroups);for(var M=0;M<this.visibleItems.length;M++)this.visibleItems[M].repositionX(),this.subgroupVisibility[this.visibleItems[M].data.subgroup]!==void 0&&(this.subgroupVisibility[this.visibleItems[M].data.subgroup]||this.visibleItems[M].hide());this.itemSet.options.cluster&&G(x).call(x,this.items,function(H){H.cluster&&H.displayed&&H.hide()}),this.shouldBailStackItems&&this.itemSet.body.emitter.emit("destroyTimeline"),this.stackDirty=!1}}},{key:"_didResize",value:function(r,a){r=x.updateProperty(this,"height",a)||r;var n=this.dom.inner.clientWidth,s=this.dom.inner.clientHeight;return r=x.updateProperty(this.props.label,"width",n)||r,r=x.updateProperty(this.props.label,"height",s)||r,r}},{key:"_applyGroupHeight",value:function(r){this.dom.background.style.height="".concat(r,"px"),this.dom.foreground.style.height="".concat(r,"px"),this.dom.label.style.height="".concat(r,"px")}},{key:"_updateItemsVerticalPosition",value:function(r){for(var a=0,n=this.visibleItems.length;a<n;a++){var s=this.visibleItems[a];s.repositionY(r),!this.isVisible&&this.groupId!=Hy.BACKGROUND&&s.displayed&&s.hide()}}},{key:"redraw",value:function(r,a,n,s){var o=this,l,d,c,f,v,m=!1,g=this.isVisible,b,S=[function(){n=o._didMarkerHeightChange.call(o)||n},P(l=this._updateSubGroupHeights).call(l,this,a),P(d=this._calculateGroupSizeAndPosition).call(d,this),function(){var k;o.isVisible=P(k=o._isGroupVisible).call(k,o)(r,a)},function(){var k;P(k=o._redrawItems).call(k,o)(n,g,a,r)},P(c=this._updateSubgroupsSizes).call(c,this),function(){var k;b=P(k=o._calculateHeight).call(k,o)(a)},P(f=this._calculateGroupSizeAndPosition).call(f,this),function(){var k;m=P(k=o._didResize).call(k,o)(m,b)},function(){var k;P(k=o._applyGroupHeight).call(k,o)(b)},function(){var k;P(k=o._updateItemsVerticalPosition).call(k,o)(a)},P(v=function(){return!o.isVisible&&o.height&&(m=!1),m}).call(v,this)];if(s)return S;var w;return G(S).call(S,function(k){w=k()}),w}},{key:"_updateSubGroupHeights",value:function(r){var a=this;if(st(this.subgroups).length>0){var n=this;this._resetSubgroups(),G(x).call(x,this.visibleItems,function(s){s.data.subgroup!==void 0&&(n.subgroups[s.data.subgroup].height=Math.max(n.subgroups[s.data.subgroup].height,s.height+r.item.vertical),n.subgroups[s.data.subgroup].visible=typeof a.subgroupVisibility[s.data.subgroup]>"u"?!0:!!a.subgroupVisibility[s.data.subgroup])})}}},{key:"_isGroupVisible",value:function(r,a){return this.top<=r.body.domProps.centerContainer.height-r.body.domProps.scrollTop+a.axis&&this.top+this.height+a.axis>=-r.body.domProps.scrollTop}},{key:"_calculateHeight",value:function(r){var a,n;if(this.heightMode==="fixed"?n=x.toArray(this.items):n=this.visibleItems,n.length>0){var s=n[0].top,o=n[0].top+n[0].height;if(G(x).call(x,n,function(d){s=Math.min(s,d.top),o=Math.max(o,d.top+d.height)}),s>r.axis){var l=s-r.axis;o-=l,G(x).call(x,n,function(d){d.top-=l})}a=Math.ceil(o+r.item.vertical/2),this.heightMode!=="fitItems"&&(a=Math.max(a,this.props.label.height))}else a=this.props.label.height;return a}},{key:"show",value:function(){this.dom.label.parentNode||this.itemSet.dom.labelSet.appendChild(this.dom.label),this.dom.foreground.parentNode||this.itemSet.dom.foreground.appendChild(this.dom.foreground),this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background),this.dom.axis.parentNode||this.itemSet.dom.axis.appendChild(this.dom.axis)}},{key:"hide",value:function(){var r=this.dom.label;r.parentNode&&r.parentNode.removeChild(r);var a=this.dom.foreground;a.parentNode&&a.parentNode.removeChild(a);var n=this.dom.background;n.parentNode&&n.parentNode.removeChild(n);var s=this.dom.axis;s.parentNode&&s.parentNode.removeChild(s)}},{key:"add",value:function(r){var a;if(this.items[r.id]=r,r.setParent(this),this.stackDirty=!0,r.data.subgroup!==void 0&&(this._addToSubgroup(r),this.orderSubgroups()),!Nn(a=this.visibleItems).call(a,r)){var n=this.itemSet.body.range;this._checkIfVisible(r,this.visibleItems,n)}}},{key:"_addToSubgroup",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.data.subgroup;a!=null&&this.subgroups[a]===void 0&&(this.subgroups[a]={height:0,top:0,start:r.data.start,end:r.data.end||r.data.start,visible:!1,index:this.subgroupIndex,items:[],stack:this.subgroupStackAll||this.subgroupStack[a]||!1},this.subgroupIndex++),new Date(r.data.start)<new Date(this.subgroups[a].start)&&(this.subgroups[a].start=r.data.start);var n=r.data.end||r.data.start;new Date(n)>new Date(this.subgroups[a].end)&&(this.subgroups[a].end=n),this.subgroups[a].items.push(r)}},{key:"_updateSubgroupsSizes",value:function(){var r=this;if(r.subgroups){var a=function(){var o,l=r.subgroups[n].items[0].data.end||r.subgroups[n].items[0].data.start,d=r.subgroups[n].items[0].data.start,c=l-1;G(o=r.subgroups[n].items).call(o,function(f){new Date(f.data.start)<new Date(d)&&(d=f.data.start);var v=f.data.end||f.data.start;new Date(v)>new Date(c)&&(c=v)}),r.subgroups[n].start=d,r.subgroups[n].end=new Date(c-1)};for(var n in r.subgroups)a()}}},{key:"orderSubgroups",value:function(){if(this.subgroupOrderer!==void 0){var r=[];if(typeof this.subgroupOrderer=="string"){for(var a in this.subgroups)r.push({subgroup:a,sortField:this.subgroups[a].items[0].data[this.subgroupOrderer]});Ze(r).call(r,function(o,l){return o.sortField-l.sortField})}else if(typeof this.subgroupOrderer=="function"){for(var n in this.subgroups)r.push(this.subgroups[n].items[0].data);Ze(r).call(r,this.subgroupOrderer)}if(r.length>0)for(var s=0;s<r.length;s++)this.subgroups[r[s].subgroup].index=s}}},{key:"_resetSubgroups",value:function(){for(var r in this.subgroups)this.subgroups.hasOwnProperty(r)&&(this.subgroups[r].visible=!1,this.subgroups[r].height=0)}},{key:"remove",value:function(r){var a,n;delete this.items[r.id],r.setParent(null),this.stackDirty=!0;var s=Ce(a=this.visibleItems).call(a,r);s!=-1&&xt(n=this.visibleItems).call(n,s,1),r.data.subgroup!==void 0&&(this._removeFromSubgroup(r),this.orderSubgroups())}},{key:"_removeFromSubgroup",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.data.subgroup;if(a!=null){var n=this.subgroups[a];if(n){var s,o=Ce(s=n.items).call(s,r);if(o>=0){var l;xt(l=n.items).call(l,o,1),n.items.length?this._updateSubgroupsSizes():delete this.subgroups[a]}}}}},{key:"removeFromDataSet",value:function(r){this.itemSet.removeItem(r.id)}},{key:"order",value:function(){for(var r=x.toArray(this.items),a=[],n=[],s=0;s<r.length;s++)r[s].data.end!==void 0&&n.push(r[s]),a.push(r[s]);this.orderedItems={byStart:a,byEnd:n},NZ(this.orderedItems.byStart),CZ(this.orderedItems.byEnd)}},{key:"_updateItemsInRange",value:function(r,a,n){var s=[],o={};if(!this.isVisible&&this.height!==void 0&&this.groupId!=Hy.BACKGROUND){for(var l=0;l<a.length;l++){var d=a[l];d.displayed&&d.hide()}return s}var c=(n.end-n.start)/4,f=n.start-c,v=n.end+c,m=function(H){return H<f?-1:H<=v?0:1},g=function(H){var z=H.start,se=H.end;return se<f?-1:z<=v?0:1};if(a.length>0)for(var b=0;b<a.length;b++)this._checkIfVisibleWithReference(a[b],s,o,n);var S=x.binarySearchCustom(r.byStart,m,"data","start");if(this._traceVisible(S,r.byStart,s,o,function(M){return M.data.start<f||M.data.start>v}),this.checkRangedItems==!0){this.checkRangedItems=!1;for(var w=0;w<r.byEnd.length;w++)this._checkIfVisibleWithReference(r.byEnd[w],s,o,n)}else{var k=x.binarySearchCustom(r.byEnd,g,"data");this._traceVisible(k,r.byEnd,s,o,function(M){return M.data.end<f||M.data.start>v})}for(var T={},D=0,N=0;N<s.length;N++){var L=s[N];if(!L.displayed){var A=!0;T[N]=L.redraw(A),D=T[N].length}}var R=D>0;if(R)for(var C=function(H){G(x).call(x,T,function(z){z[H]()})},j=0;j<D;j++)C(j);for(var O=0;O<s.length;O++)s[O].repositionX();return s}},{key:"_traceVisible",value:function(r,a,n,s,o){if(r!=-1){for(var l=r;l>=0;l--){var d=a[l];if(o(d))break;!(d.isCluster&&!d.hasItems())&&!d.cluster&&s[d.id]===void 0&&(s[d.id]=!0,n.push(d))}for(var c=r+1;c<a.length;c++){var f=a[c];if(o(f))break;!(f.isCluster&&!f.hasItems())&&!f.cluster&&s[f.id]===void 0&&(s[f.id]=!0,n.push(f))}}}},{key:"_checkIfVisible",value:function(r,a,n){r.isVisible(n)?(r.displayed||r.show(),r.repositionX(),a.push(r)):r.displayed&&r.hide()}},{key:"_checkIfVisibleWithReference",value:function(r,a,n,s){r.isVisible(s)?n[r.id]===void 0&&(n[r.id]=!0,a.push(r)):r.displayed&&r.hide()}},{key:"_updateClustersInRange",value:function(r,a,n){var s=[],o={};if(a.length>0)for(var l=0;l<a.length;l++)this._checkIfVisibleWithReference(a[l],s,o,n);for(var d=0;d<r.byStart.length;d++)this._checkIfVisibleWithReference(r.byStart[d],s,o,n);for(var c=0;c<r.byEnd.length;c++)this._checkIfVisibleWithReference(r.byEnd[c],s,o,n);for(var f={},v=0,m=0;m<s.length;m++){var g=s[m];if(!g.displayed){var b=!0;f[m]=g.redraw(b),v=f[m].length}}var S=v>0;if(S)for(var w=0;w<v;w++)G(x).call(x,f,function(T){T[w]()});for(var k=0;k<s.length;k++)s[k].repositionX();return s}},{key:"changeSubgroup",value:function(r,a,n){this._removeFromSubgroup(r,a),this._addToSubgroup(r,n),this.orderSubgroups()}},{key:"dispose",value:function(){this.hide();for(var r;r=this._disposeCallbacks.pop();)r()}}]),e}();function LZ(e){var t=VZ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function VZ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var T1=function(e){It(r,e);var t=LZ(r);function r(a,n,s){var o;return fe(this,r),o=t.call(this,a,n,s),o.width=0,o.height=0,o.top=0,o.left=0,o}return pe(r,[{key:"redraw",value:function(n,s,o){var l=!1;this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,n),this.width=this.dom.background.offsetWidth,this.dom.background.style.height="0";for(var d=0,c=this.visibleItems.length;d<c;d++){var f=this.visibleItems[d];f.repositionY(s)}return l}},{key:"show",value:function(){this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background)}}]),r}(wh),FZ=`
421
+ .vis-item {
422
+ position: absolute;
423
+ color: #1A1A1A;
424
+ border-color: #97B0F8;
425
+ border-width: 1px;
426
+ background-color: #D5DDF6;
427
+ display: inline-block;
428
+ z-index: 1;
429
+ /*overflow: hidden;*/
430
+ }
431
+
432
+ .vis-item.vis-selected {
433
+ border-color: #FFC200;
434
+ background-color: #FFF785;
435
+
436
+ /* z-index must be higher than the z-index of custom time bar and current time bar */
437
+ z-index: 2;
438
+ }
439
+
440
+ .vis-editable.vis-selected {
441
+ cursor: move;
442
+ }
443
+
444
+ .vis-item.vis-point.vis-selected {
445
+ background-color: #FFF785;
446
+ }
447
+
448
+ .vis-item.vis-box {
449
+ text-align: center;
450
+ border-style: solid;
451
+ border-radius: 2px;
452
+ }
453
+
454
+ .vis-item.vis-point {
455
+ background: none;
456
+ }
457
+
458
+ .vis-item.vis-dot {
459
+ position: absolute;
460
+ padding: 0;
461
+ border-width: 4px;
462
+ border-style: solid;
463
+ border-radius: 4px;
464
+ }
465
+
466
+ .vis-item.vis-range {
467
+ border-style: solid;
468
+ border-radius: 2px;
469
+ box-sizing: border-box;
470
+ }
471
+
472
+ .vis-item.vis-background {
473
+ border: none;
474
+ background-color: rgba(213, 221, 246, 0.4);
475
+ box-sizing: border-box;
476
+ padding: 0;
477
+ margin: 0;
478
+ }
479
+
480
+ .vis-item .vis-item-overflow {
481
+ position: relative;
482
+ width: 100%;
483
+ height: 100%;
484
+ padding: 0;
485
+ margin: 0;
486
+ overflow: hidden;
487
+ }
488
+
489
+ .vis-item-visible-frame {
490
+ white-space: nowrap;
491
+ }
492
+
493
+ .vis-item.vis-range .vis-item-content {
494
+ position: relative;
495
+ display: inline-block;
496
+ }
497
+
498
+ .vis-item.vis-background .vis-item-content {
499
+ position: absolute;
500
+ display: inline-block;
501
+ }
502
+
503
+ .vis-item.vis-line {
504
+ padding: 0;
505
+ position: absolute;
506
+ width: 0;
507
+ border-left-width: 1px;
508
+ border-left-style: solid;
509
+ }
510
+
511
+ .vis-item .vis-item-content {
512
+ white-space: nowrap;
513
+ box-sizing: border-box;
514
+ padding: 5px;
515
+ }
516
+
517
+ .vis-item .vis-onUpdateTime-tooltip {
518
+ position: absolute;
519
+ background: #4f81bd;
520
+ color: white;
521
+ width: 200px;
522
+ text-align: center;
523
+ white-space: nowrap;
524
+ padding: 5px;
525
+ border-radius: 1px;
526
+ transition: 0.4s;
527
+ -o-transition: 0.4s;
528
+ -moz-transition: 0.4s;
529
+ -webkit-transition: 0.4s;
530
+ }
531
+
532
+ .vis-item .vis-delete, .vis-item .vis-delete-rtl {
533
+ position: absolute;
534
+ top: 0px;
535
+ width: 24px;
536
+ height: 24px;
537
+ box-sizing: border-box;
538
+ padding: 0px 5px;
539
+ cursor: pointer;
540
+
541
+ -webkit-transition: background 0.2s linear;
542
+ -moz-transition: background 0.2s linear;
543
+ -ms-transition: background 0.2s linear;
544
+ -o-transition: background 0.2s linear;
545
+ transition: background 0.2s linear;
546
+ }
547
+
548
+ .vis-item .vis-delete {
549
+ right: -24px;
550
+ }
551
+
552
+ .vis-item .vis-delete-rtl {
553
+ left: -24px;
554
+ }
555
+
556
+ .vis-item .vis-delete:after, .vis-item .vis-delete-rtl:after {
557
+ content: "\\00D7"; /* MULTIPLICATION SIGN */
558
+ color: red;
559
+ font-family: arial, sans-serif;
560
+ font-size: 22px;
561
+ font-weight: bold;
562
+
563
+ -webkit-transition: color 0.2s linear;
564
+ -moz-transition: color 0.2s linear;
565
+ -ms-transition: color 0.2s linear;
566
+ -o-transition: color 0.2s linear;
567
+ transition: color 0.2s linear;
568
+ }
569
+
570
+ .vis-item .vis-delete:hover, .vis-item .vis-delete-rtl:hover {
571
+ background: red;
572
+ }
573
+
574
+ .vis-item .vis-delete:hover:after, .vis-item .vis-delete-rtl:hover:after {
575
+ color: white;
576
+ }
577
+
578
+ .vis-item .vis-drag-center {
579
+ position: absolute;
580
+ width: 100%;
581
+ height: 100%;
582
+ top: 0;
583
+ left: 0px;
584
+ cursor: move;
585
+ }
586
+
587
+ .vis-item.vis-range .vis-drag-left {
588
+ position: absolute;
589
+ width: 24px;
590
+ max-width: 20%;
591
+ min-width: 2px;
592
+ height: 100%;
593
+ top: 0;
594
+ left: -4px;
595
+
596
+ cursor: w-resize;
597
+ }
598
+
599
+ .vis-item.vis-range .vis-drag-right {
600
+ position: absolute;
601
+ width: 24px;
602
+ max-width: 20%;
603
+ min-width: 2px;
604
+ height: 100%;
605
+ top: 0;
606
+ right: -4px;
607
+
608
+ cursor: e-resize;
609
+ }
610
+
611
+ .vis-range.vis-item.vis-readonly .vis-drag-left,
612
+ .vis-range.vis-item.vis-readonly .vis-drag-right {
613
+ cursor: auto;
614
+ }
615
+
616
+ .vis-item.vis-cluster {
617
+ vertical-align: center;
618
+ text-align: center;
619
+ border-style: solid;
620
+ border-radius: 2px;
621
+ }
622
+
623
+ .vis-item.vis-cluster-line {
624
+ padding: 0;
625
+ position: absolute;
626
+ width: 0;
627
+ border-left-width: 1px;
628
+ border-left-style: solid;
629
+ }
630
+
631
+ .vis-item.vis-cluster-dot {
632
+ position: absolute;
633
+ padding: 0;
634
+ border-width: 4px;
635
+ border-style: solid;
636
+ border-radius: 4px;
637
+ }`;Pt(FZ);function YZ(e,t){var r=typeof fn<"u"&&Ln(e)||e["@@iterator"];if(!r){if(ae(e)||(r=jZ(e))||t){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(c){throw c},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
638
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(o)throw l}}}}function jZ(e,t){var r;if(e){if(typeof e=="string")return Wy(e,t);var a=bt(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Rn(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Wy(e,t)}}function Wy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var ja=function(){function e(t,r,a){var n,s=this;fe(this,e),this.id=null,this.parent=null,this.data=t,this.dom=null,this.conversion=r||{},this.defaultOptions={locales:wa,locale:"en"},this.options=x.extend({},this.defaultOptions,a),this.options.locales=x.extend({},wa,this.options.locales);var o=this.defaultOptions.locales[this.defaultOptions.locale];G(n=st(this.options.locales)).call(n,function(l){s.options.locales[l]=x.extend({},o,s.options.locales[l])}),this.selected=!1,this.displayed=!1,this.groupShowing=!0,this.selectable=a&&a.selectable||!1,this.dirty=!0,this.top=null,this.right=null,this.left=null,this.width=null,this.height=null,this.setSelectability(t),this.editable=null,this._updateEditStatus()}return pe(e,[{key:"select",value:function(){this.selectable&&(this.selected=!0,this.dirty=!0,this.displayed&&this.redraw())}},{key:"unselect",value:function(){this.selected=!1,this.dirty=!0,this.displayed&&this.redraw()}},{key:"setData",value:function(r){var a=r.group!=null&&this.data.group!=r.group;a&&this.parent!=null&&this.parent.itemSet._moveToGroup(this,r.group),this.setSelectability(r),this.parent&&(this.parent.stackDirty=!0);var n=r.subgroup!=null&&this.data.subgroup!=r.subgroup;n&&this.parent!=null&&this.parent.changeSubgroup(this,this.data.subgroup,r.subgroup),this.data=r,this._updateEditStatus(),this.dirty=!0,this.displayed&&this.redraw()}},{key:"setSelectability",value:function(r){r&&(this.selectable=typeof r.selectable>"u"?!0:!!r.selectable)}},{key:"setParent",value:function(r){this.displayed?(this.hide(),this.parent=r,this.parent&&this.show()):this.parent=r}},{key:"isVisible",value:function(r){return!1}},{key:"show",value:function(){return!1}},{key:"hide",value:function(){return!1}},{key:"redraw",value:function(){}},{key:"repositionX",value:function(){}},{key:"repositionY",value:function(){}},{key:"_repaintDragCenter",value:function(){if(this.selected&&this.editable.updateTime&&!this.dom.dragCenter){var r,a,n=this,s=document.createElement("div");s.className="vis-drag-center",s.dragCenterItem=this,this.hammerDragCenter=new kt(s),this.hammerDragCenter.on("tap",function(o){n.parent.itemSet.body.emitter.emit("click",{event:o,item:n.id})}),this.hammerDragCenter.on("doubletap",function(o){o.stopPropagation(),n.parent.itemSet._onUpdateItem(n),n.parent.itemSet.body.emitter.emit("doubleClick",{event:o,item:n.id})}),this.hammerDragCenter.on("panstart",function(o){o.stopPropagation(),n.parent.itemSet._onDragStart(o)}),this.hammerDragCenter.on("panmove",P(r=n.parent.itemSet._onDrag).call(r,n.parent.itemSet)),this.hammerDragCenter.on("panend",P(a=n.parent.itemSet._onDragEnd).call(a,n.parent.itemSet)),this.hammerDragCenter.get("press").set({time:1e4}),this.dom.box?this.dom.dragLeft?this.dom.box.insertBefore(s,this.dom.dragLeft):this.dom.box.appendChild(s):this.dom.point&&this.dom.point.appendChild(s),this.dom.dragCenter=s}else!this.selected&&this.dom.dragCenter&&(this.dom.dragCenter.parentNode&&this.dom.dragCenter.parentNode.removeChild(this.dom.dragCenter),this.dom.dragCenter=null,this.hammerDragCenter&&(this.hammerDragCenter.destroy(),this.hammerDragCenter=null))}},{key:"_repaintDeleteButton",value:function(r){var a=(this.options.editable.overrideItems||this.editable==null)&&this.options.editable.remove||!this.options.editable.overrideItems&&this.editable!=null&&this.editable.remove;if(this.selected&&a&&!this.dom.deleteButton){var n=this,s=document.createElement("div");this.options.rtl?s.className="vis-delete-rtl":s.className="vis-delete";var o=this.options.locales[this.options.locale];o||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),o=this.options.locales.en),s.title=o.deleteSelected,this.hammerDeleteButton=new kt(s).on("tap",function(l){l.stopPropagation(),n.parent.removeFromDataSet(n)}),r.appendChild(s),this.dom.deleteButton=s}else(!this.selected||!a)&&this.dom.deleteButton&&(this.dom.deleteButton.parentNode&&this.dom.deleteButton.parentNode.removeChild(this.dom.deleteButton),this.dom.deleteButton=null,this.hammerDeleteButton&&(this.hammerDeleteButton.destroy(),this.hammerDeleteButton=null))}},{key:"_repaintOnItemUpdateTimeTooltip",value:function(r){if(this.options.tooltipOnItemUpdateTime){var a=(this.options.editable.updateTime||this.data.editable===!0)&&this.data.editable!==!1;if(this.selected&&a&&!this.dom.onItemUpdateTimeTooltip){var n=document.createElement("div");n.className="vis-onUpdateTime-tooltip",r.appendChild(n),this.dom.onItemUpdateTimeTooltip=n}else!this.selected&&this.dom.onItemUpdateTimeTooltip&&(this.dom.onItemUpdateTimeTooltip.parentNode&&this.dom.onItemUpdateTimeTooltip.parentNode.removeChild(this.dom.onItemUpdateTimeTooltip),this.dom.onItemUpdateTimeTooltip=null);if(this.dom.onItemUpdateTimeTooltip){this.dom.onItemUpdateTimeTooltip.style.visibility=this.parent.itemSet.touchParams.itemIsDragging?"visible":"hidden",this.dom.onItemUpdateTimeTooltip.style.transform="translateX(-50%)",this.dom.onItemUpdateTimeTooltip.style.left="50%";var s=50,o=this.parent.itemSet.body.domProps.scrollTop,l;this.options.orientation.item=="top"?l=this.top:l=this.parent.height-this.top-this.height;var d=l+this.parent.top-s<-o;d?(this.dom.onItemUpdateTimeTooltip.style.bottom="",this.dom.onItemUpdateTimeTooltip.style.top="".concat(this.height+2,"px")):(this.dom.onItemUpdateTimeTooltip.style.top="",this.dom.onItemUpdateTimeTooltip.style.bottom="".concat(this.height+2,"px"));var c,f;if(this.options.tooltipOnItemUpdateTime&&this.options.tooltipOnItemUpdateTime.template){var v;f=P(v=this.options.tooltipOnItemUpdateTime.template).call(v,this),c=f(this.data)}else c="start: ".concat(Tt(this.data.start).format("MM/DD/YYYY hh:mm")),this.data.end&&(c+="<br> end: ".concat(Tt(this.data.end).format("MM/DD/YYYY hh:mm")));this.dom.onItemUpdateTimeTooltip.innerHTML=x.xss(c)}}}},{key:"_getItemData",value:function(){return this.parent.itemSet.itemsData.get(this.id)}},{key:"_updateContents",value:function(r){var a,n,s,o,l,d=this._getItemData(),c=this.dom.box||this.dom.point,f=c.getElementsByClassName("vis-item-visible-frame")[0];if(this.options.visibleFrameTemplate){var v;l=P(v=this.options.visibleFrameTemplate).call(v,this),o=x.xss(l(d,f))}else o="";if(f){if(o instanceof Object&&!(o instanceof Element))l(d,f);else if(n=this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(o),n){if(o instanceof Element)f.innerHTML="",f.appendChild(o);else if(o!=null)f.innerHTML=x.xss(o);else if(!(this.data.type=="background"&&this.data.content===void 0))throw new Error('Property "content" missing in item '.concat(this.id));this.itemVisibleFrameContent=o}}if(this.options.template){var m;s=P(m=this.options.template).call(m,this),a=s(d,r,this.data)}else a=this.data.content;if(a instanceof Object&&!(a instanceof Element))s(d,r);else if(n=this._contentToString(this.content)!==this._contentToString(a),n){if(a instanceof Element)r.innerHTML="",r.appendChild(a);else if(a!=null)r.innerHTML=x.xss(a);else if(!(this.data.type=="background"&&this.data.content===void 0))throw new Error('Property "content" missing in item '.concat(this.id));this.content=a}}},{key:"_updateDataAttributes",value:function(r){if(this.options.dataAttributes&&this.options.dataAttributes.length>0){var a=[];if(ae(this.options.dataAttributes))a=this.options.dataAttributes;else if(this.options.dataAttributes=="all")a=st(this.data);else return;var n=YZ(a),s;try{for(n.s();!(s=n.n()).done;){var o=s.value,l=this.data[o];l!=null?r.setAttribute("data-".concat(o),l):r.removeAttribute("data-".concat(o))}}catch(d){n.e(d)}finally{n.f()}}}},{key:"_updateStyle",value:function(r){this.style&&(x.removeCssText(r,this.style),this.style=null),this.data.style&&(x.addCssText(r,this.data.style),this.style=this.data.style)}},{key:"_contentToString",value:function(r){return typeof r=="string"?r:r&&"outerHTML"in r?r.outerHTML:r}},{key:"_updateEditStatus",value:function(){this.options&&(typeof this.options.editable=="boolean"?this.editable={updateTime:this.options.editable,updateGroup:this.options.editable,remove:this.options.editable}:ne(this.options.editable)==="object"&&(this.editable={},x.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.options.editable))),(!this.options||!this.options.editable||this.options.editable.overrideItems!==!0)&&this.data&&(typeof this.data.editable=="boolean"?this.editable={updateTime:this.data.editable,updateGroup:this.data.editable,remove:this.data.editable}:ne(this.data.editable)==="object"&&(this.editable={},x.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.data.editable)))}},{key:"getWidthLeft",value:function(){return 0}},{key:"getWidthRight",value:function(){return 0}},{key:"getTitle",value:function(){if(this.options.tooltip&&this.options.tooltip.template){var r,a=P(r=this.options.tooltip.template).call(r,this);return a(this._getItemData(),this.data)}return this.data.title}}]),e}();ja.prototype.stack=!0;function BZ(e){var t=HZ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function HZ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var WZ=function(e){It(r,e);var t=BZ(r);function r(a,n,s){var o;if(fe(this,r),o=t.call(this,a,n,s),o.props={dot:{width:0,height:0},line:{width:0,height:0}},a&&a.start==null)throw new Error('Property "start" missing in item '.concat(a));return o}return pe(r,[{key:"isVisible",value:function(n){if(this.cluster)return!1;var s,o=this.data.align||this.options.align,l=this.width*n.getMillisecondsPerPixel();return o=="right"?s=this.data.start.getTime()>n.start&&this.data.start.getTime()-l<n.end:o=="left"?s=this.data.start.getTime()+l>n.start&&this.data.start.getTime()<n.end:s=this.data.start.getTime()+l/2>n.start&&this.data.start.getTime()-l/2<n.end,s}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="vis-item-content",this.dom.box.appendChild(this.dom.content),this.dom.line=document.createElement("DIV"),this.dom.line.className="vis-line",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="vis-dot",this.dom.box["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var n=this.parent.dom.foreground;if(!n)throw new Error("Cannot redraw item: parent has no foreground container element");n.appendChild(this.dom.box)}if(!this.dom.line.parentNode){var s=this.parent.dom.background;if(!s)throw new Error("Cannot redraw item: parent has no background container element");s.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var o=this.parent.dom.axis;if(!s)throw new Error("Cannot redraw item: parent has no axis container element");o.appendChild(this.dom.dot)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var n=this.editable.updateTime||this.editable.updateGroup,s=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(n?" vis-editable":" vis-readonly");this.dom.box.className="vis-item vis-box".concat(s),this.dom.line.className="vis-item vis-line".concat(s),this.dom.dot.className="vis-item vis-dot".concat(s)}}},{key:"_getDomComponentsSizes",value:function(){return{previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},dot:{height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},line:{width:this.dom.line.offsetWidth},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(n){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.props.dot.height=n.dot.height,this.props.dot.width=n.dot.width,this.props.line.width=n.line.width,this.width=n.box.width,this.height=n.box.height,this.options.rtl?this.dom.box.style.right=n.previous.right:this.dom.box.style.left=n.previous.left,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.box)}},{key:"redraw",value:function(n){var s,o,l,d=this,c,f,v=[P(s=this._createDomElement).call(s,this),P(o=this._appendDomElement).call(o,this),P(l=this._updateDirtyDomComponents).call(l,this),function(){d.dirty&&(f=d._getDomComponentsSizes())},function(){if(d.dirty){var g;P(g=d._updateDomComponentsSizes).call(g,d)(f)}},P(c=this._repaintDomAdditionals).call(c,this)];if(n)return v;var m;return G(v).call(v,function(g){m=g()}),m}},{key:"show",value:function(n){if(!this.displayed)return this.redraw(n)}},{key:"hide",value:function(){if(this.displayed){var n=this.dom;n.box.remove?n.box.remove():n.box.parentNode&&n.box.parentNode.removeChild(n.box),n.line.remove?n.line.remove():n.line.parentNode&&n.line.parentNode.removeChild(n.line),n.dot.remove?n.dot.remove():n.dot.parentNode&&n.dot.parentNode.removeChild(n.dot),this.displayed=!1}}},{key:"repositionXY",value:function(){var n=this.options.rtl,s=function(l,d,c){var f,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!(d===void 0&&c===void 0)){var m=v?d*-1:d;if(c===void 0){l.style.transform="translateX(".concat(m,"px)");return}if(d===void 0){l.style.transform="translateY(".concat(c,"px)");return}l.style.transform=Me(f="translate(".concat(m,"px, ")).call(f,c,"px)")}};s(this.dom.box,this.boxX,this.boxY,n),s(this.dom.dot,this.dotX,this.dotY,n),s(this.dom.line,this.lineX,this.lineY,n)}},{key:"repositionX",value:function(){var n=this.conversion.toScreen(this.data.start),s=this.data.align===void 0?this.options.align:this.data.align,o=this.props.line.width,l=this.props.dot.width;s=="right"?(this.boxX=n-this.width,this.lineX=n-o,this.dotX=n-o/2-l/2):s=="left"?(this.boxX=n,this.lineX=n,this.dotX=n+o/2-l/2):(this.boxX=n-this.width/2,this.lineX=this.options.rtl?n-o:n-o/2,this.dotX=n-l/2),this.options.rtl?this.right=this.boxX:this.left=this.boxX,this.repositionXY()}},{key:"repositionY",value:function(){var n=this.options.orientation.item,s=this.dom.line.style;if(n=="top"){var o=this.parent.top+this.top+1;this.boxY=this.top||0,s.height="".concat(o,"px"),s.bottom="",s.top="0"}else{var l=this.parent.itemSet.props.height,d=l-this.parent.top-this.parent.height+this.top;this.boxY=this.parent.height-this.top-(this.height||0),s.height="".concat(d,"px"),s.top="",s.bottom="0"}this.dotY=-this.props.dot.height/2,this.repositionXY()}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}}]),r}(ja);function GZ(e){var t=zZ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function zZ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var UZ=function(e){It(r,e);var t=GZ(r);function r(a,n,s){var o;if(fe(this,r),o=t.call(this,a,n,s),o.props={dot:{top:0,width:0,height:0},content:{height:0,marginLeft:0,marginRight:0}},a&&a.start==null)throw new Error('Property "start" missing in item '.concat(a));return o}return pe(r,[{key:"isVisible",value:function(n){if(this.cluster)return!1;var s=this.width*n.getMillisecondsPerPixel();return this.data.start.getTime()+s>n.start&&this.data.start<n.end}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.point=document.createElement("div"),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.point.appendChild(this.dom.content),this.dom.dot=document.createElement("div"),this.dom.point.appendChild(this.dom.dot),this.dom.point["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.point.parentNode){var n=this.parent.dom.foreground;if(!n)throw new Error("Cannot redraw item: parent has no foreground container element");n.appendChild(this.dom.point)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.point),this._updateStyle(this.dom.point);var n=this.editable.updateTime||this.editable.updateGroup,s=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(n?" vis-editable":" vis-readonly");this.dom.point.className="vis-item vis-point".concat(s),this.dom.dot.className="vis-item vis-dot".concat(s)}}},{key:"_getDomComponentsSizes",value:function(){return{dot:{width:this.dom.dot.offsetWidth,height:this.dom.dot.offsetHeight},content:{width:this.dom.content.offsetWidth,height:this.dom.content.offsetHeight},point:{width:this.dom.point.offsetWidth,height:this.dom.point.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(n){this.props.dot.width=n.dot.width,this.props.dot.height=n.dot.height,this.props.content.height=n.content.height,this.options.rtl?this.dom.content.style.marginRight="".concat(this.props.dot.width/2,"px"):this.dom.content.style.marginLeft="".concat(this.props.dot.width/2,"px"),this.width=n.point.width,this.height=n.point.height,this.dom.dot.style.top="".concat((this.height-this.props.dot.height)/2,"px");var s=this.props.dot.width,o=this.options.rtl?s/2:s/2*-1;this.dom.dot.style.transform="translateX(".concat(o,"px"),this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.point),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.point)}},{key:"redraw",value:function(n){var s,o,l,d=this,c,f,v=[P(s=this._createDomElement).call(s,this),P(o=this._appendDomElement).call(o,this),P(l=this._updateDirtyDomComponents).call(l,this),function(){d.dirty&&(f=d._getDomComponentsSizes())},function(){if(d.dirty){var g;P(g=d._updateDomComponentsSizes).call(g,d)(f)}},P(c=this._repaintDomAdditionals).call(c,this)];if(n)return v;var m;return G(v).call(v,function(g){m=g()}),m}},{key:"repositionXY",value:function(){var n=this.options.rtl,s=function(l,d,c){var f,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!(d===void 0&&c===void 0)){var m=v?d*-1:d;if(c===void 0){l.style.transform="translateX(".concat(m,"px)");return}if(d===void 0){l.style.transform="translateY(".concat(c,"px)");return}l.style.transform=Me(f="translate(".concat(m,"px, ")).call(f,c,"px)")}};s(this.dom.point,this.pointX,this.pointY,n)}},{key:"show",value:function(n){if(!this.displayed)return this.redraw(n)}},{key:"hide",value:function(){this.displayed&&(this.dom.point.parentNode&&this.dom.point.parentNode.removeChild(this.dom.point),this.displayed=!1)}},{key:"repositionX",value:function(){var n=this.conversion.toScreen(this.data.start);this.pointX=n,this.options.rtl?this.right=n-this.props.dot.width:this.left=n-this.props.dot.width,this.repositionXY()}},{key:"repositionY",value:function(){var n=this.options.orientation.item;n=="top"?this.pointY=this.top:this.pointY=this.parent.height-this.top-this.height,this.repositionXY()}},{key:"getWidthLeft",value:function(){return this.props.dot.width}},{key:"getWidthRight",value:function(){return this.props.dot.width}}]),r}(ja);function KZ(e){var t=qZ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function qZ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var vi=function(e){It(r,e);var t=KZ(r);function r(a,n,s){var o;if(fe(this,r),o=t.call(this,a,n,s),o.props={content:{width:0}},o.overflow=!1,a){if(a.start==null)throw new Error('Property "start" missing in item '.concat(a.id));if(a.end==null)throw new Error('Property "end" missing in item '.concat(a.id))}return o}return pe(r,[{key:"isVisible",value:function(n){return this.cluster?!1:this.data.start<n.end&&this.data.end>n.start}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.visibleFrame=document.createElement("div"),this.dom.visibleFrame.className="vis-item-visible-frame",this.dom.box.appendChild(this.dom.visibleFrame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dom.box["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var n=this.parent.dom.foreground;if(!n)throw new Error("Cannot redraw item: parent has no foreground container element");n.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var n=this.editable.updateTime||this.editable.updateGroup,s=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(n?" vis-editable":" vis-readonly");this.dom.box.className=this.baseClassName+s,this.dom.content.style.maxWidth="none"}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow=window.getComputedStyle(this.dom.frame).overflow!=="hidden",this.whiteSpace=window.getComputedStyle(this.dom.content).whiteSpace!=="nowrap",{content:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(n){this.props.content.width=n.content.width,this.height=n.box.height,this.dom.content.style.maxWidth="",this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDeleteButton(this.dom.box),this._repaintDragCenter(),this._repaintDragLeft(),this._repaintDragRight()}},{key:"redraw",value:function(n){var s,o,l,d=this,c,f,v=[P(s=this._createDomElement).call(s,this),P(o=this._appendDomElement).call(o,this),P(l=this._updateDirtyDomComponents).call(l,this),function(){if(d.dirty){var g;f=P(g=d._getDomComponentsSizes).call(g,d)()}},function(){if(d.dirty){var g;P(g=d._updateDomComponentsSizes).call(g,d)(f)}},P(c=this._repaintDomAdditionals).call(c,this)];if(n)return v;var m;return G(v).call(v,function(g){m=g()}),m}},{key:"show",value:function(n){if(!this.displayed)return this.redraw(n)}},{key:"hide",value:function(){if(this.displayed){var n=this.dom.box;n.parentNode&&n.parentNode.removeChild(n),this.displayed=!1}}},{key:"repositionX",value:function(n){var s=this.parent.width,o=this.conversion.toScreen(this.data.start),l=this.conversion.toScreen(this.data.end),d=this.data.align===void 0?this.options.align:this.data.align,c,f;this.data.limitSize!==!1&&(n===void 0||n===!0)&&(o<-s&&(o=-s),l>2*s&&(l=2*s));var v=Math.max(Math.round((l-o)*1e3)/1e3,1);switch(this.overflow?(this.options.rtl?this.right=o:this.left=o,this.width=v+this.props.content.width,f=this.props.content.width):(this.options.rtl?this.right=o:this.left=o,this.width=v,f=Math.min(l-o,this.props.content.width)),this.options.rtl?this.dom.box.style.transform="translateX(".concat(this.right*-1,"px)"):this.dom.box.style.transform="translateX(".concat(this.left,"px)"),this.dom.box.style.width="".concat(v,"px"),this.whiteSpace&&(this.height=this.dom.box.offsetHeight),d){case"left":this.dom.content.style.transform="translateX(0)";break;case"right":if(this.options.rtl){var m=Math.max(v-f,0)*-1;this.dom.content.style.transform="translateX(".concat(m,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max(v-f,0),"px)");break;case"center":if(this.options.rtl){var g=Math.max((v-f)/2,0)*-1;this.dom.content.style.transform="translateX(".concat(g,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max((v-f)/2,0),"px)");break;default:if(this.overflow?l>0?c=Math.max(-o,0):c=-f:o<0?c=-o:c=0,this.options.rtl){var b=c*-1;this.dom.content.style.transform="translateX(".concat(b,"px)")}else this.dom.content.style.transform="translateX(".concat(c,"px)")}}},{key:"repositionY",value:function(){var n=this.options.orientation.item,s=this.dom.box;n=="top"?s.style.top="".concat(this.top,"px"):s.style.top="".concat(this.parent.height-this.top-this.height,"px")}},{key:"_repaintDragLeft",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragLeft){var n=document.createElement("div");n.className="vis-drag-left",n.dragLeftItem=this,this.dom.box.appendChild(n),this.dom.dragLeft=n}else!this.selected&&!this.options.itemsAlwaysDraggable.range&&this.dom.dragLeft&&(this.dom.dragLeft.parentNode&&this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft),this.dom.dragLeft=null)}},{key:"_repaintDragRight",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragRight){var n=document.createElement("div");n.className="vis-drag-right",n.dragRightItem=this,this.dom.box.appendChild(n),this.dom.dragRight=n}else!this.selected&&!this.options.itemsAlwaysDraggable.range&&this.dom.dragRight&&(this.dom.dragRight.parentNode&&this.dom.dragRight.parentNode.removeChild(this.dom.dragRight),this.dom.dragRight=null)}}]),r}(ja);vi.prototype.baseClassName="vis-item vis-range";function XZ(e){var t=QZ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function QZ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var xi=function(e){It(r,e);var t=XZ(r);function r(a,n,s){var o;if(fe(this,r),o=t.call(this,a,n,s),o.props={content:{width:0}},o.overflow=!1,a){if(a.start==null)throw new Error('Property "start" missing in item '.concat(a.id));if(a.end==null)throw new Error('Property "end" missing in item '.concat(a.id))}return o}return pe(r,[{key:"isVisible",value:function(n){return this.data.start<n.end&&this.data.end>n.start}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var n=this.parent.dom.background;if(!n)throw new Error("Cannot redraw item: parent has no background container element");n.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.content),this._updateStyle(this.dom.box);var n=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"");this.dom.box.className=this.baseClassName+n}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow=window.getComputedStyle(this.dom.content).overflow!=="hidden",{content:{width:this.dom.content.offsetWidth}}}},{key:"_updateDomComponentsSizes",value:function(n){this.props.content.width=n.content.width,this.height=0,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){}},{key:"redraw",value:function(n){var s,o,l,d=this,c,f,v=[P(s=this._createDomElement).call(s,this),P(o=this._appendDomElement).call(o,this),P(l=this._updateDirtyDomComponents).call(l,this),function(){if(d.dirty){var g;f=P(g=d._getDomComponentsSizes).call(g,d)()}},function(){if(d.dirty){var g;P(g=d._updateDomComponentsSizes).call(g,d)(f)}},P(c=this._repaintDomAdditionals).call(c,this)];if(n)return v;var m;return G(v).call(v,function(g){m=g()}),m}},{key:"repositionY",value:function(n){var s,o=this.options.orientation.item;if(this.data.subgroup!==void 0){var l=this.data.subgroup;this.dom.box.style.height="".concat(this.parent.subgroups[l].height,"px"),o=="top"?this.dom.box.style.top="".concat(this.parent.top+this.parent.subgroups[l].top,"px"):this.dom.box.style.top="".concat(this.parent.top+this.parent.height-this.parent.subgroups[l].top-this.parent.subgroups[l].height,"px"),this.dom.box.style.bottom=""}else this.parent instanceof T1?(s=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom=o=="bottom"?"0":"",this.dom.box.style.top=o=="top"?"0":""):(s=this.parent.height,this.dom.box.style.top="".concat(this.parent.top,"px"),this.dom.box.style.bottom="");this.dom.box.style.height="".concat(s,"px")}}]),r}(ja);xi.prototype.baseClassName="vis-item vis-background";xi.prototype.stack=!1;xi.prototype.show=vi.prototype.show;xi.prototype.hide=vi.prototype.hide;xi.prototype.repositionX=vi.prototype.repositionX;var ZZ=`div.vis-tooltip {
639
+ position: absolute;
640
+ visibility: hidden;
641
+ padding: 5px;
642
+ white-space: nowrap;
643
+
644
+ font-family: verdana;
645
+ font-size:14px;
646
+ color:#000000;
647
+ background-color: #f5f4ed;
648
+
649
+ -moz-border-radius: 3px;
650
+ -webkit-border-radius: 3px;
651
+ border-radius: 3px;
652
+ border: 1px solid #808074;
653
+
654
+ box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
655
+ pointer-events: none;
656
+
657
+ z-index: 5;
658
+ }
659
+ `;Pt(ZZ);var JZ=function(){function e(t,r){fe(this,e),this.container=t,this.overflowMethod=r||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return pe(e,[{key:"setPosition",value:function(r,a){this.x=Xt(r),this.y=Xt(a)}},{key:"setText",value:function(r){r instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(r)):this.frame.innerHTML=x.xss(r)}},{key:"show",value:function(r){if(r===void 0&&(r=!0),r===!0){var a=this.frame.clientHeight,n=this.frame.clientWidth,s=this.frame.parentNode.clientHeight,o=this.frame.parentNode.clientWidth,l=0,d=0;if(this.overflowMethod=="flip"||this.overflowMethod=="none"){var c=!1,f=!0;this.overflowMethod=="flip"&&(this.y-a<this.padding&&(f=!1),this.x+n>o-this.padding&&(c=!0)),c?l=this.x-n:l=this.x,f?d=this.y-a:d=this.y}else d=this.y-a,d+a+this.padding>s&&(d=s-a-this.padding),d<this.padding&&(d=this.padding),l=this.x,l+n+this.padding>o&&(l=o-n-this.padding),l<this.padding&&(l=this.padding);this.frame.style.left=l+"px",this.frame.style.top=d+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),e}(),eJ=X,tJ=hn.every,rJ=La,nJ=rJ("every");eJ({target:"Array",proto:!0,forced:!nJ},{every:function(t){return tJ(this,t,arguments.length>1?arguments[1]:void 0)}});var iJ=We,aJ=iJ("Array").every,sJ=Oe,oJ=aJ,wu=Array.prototype,lJ=function(e){var t=e.every;return e===wu||sJ(wu,e)&&t===wu.every?oJ:t},dJ=lJ,cJ=dJ,uJ=cJ,hJ=K(uJ);function Gy(e,t){var r=typeof fn<"u"&&Ln(e)||e["@@iterator"];if(!r){if(ae(e)||(r=fJ(e))||t){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(c){throw c},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
660
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(o)throw l}}}}function fJ(e,t){var r;if(e){if(typeof e=="string")return zy(e,t);var a=bt(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Rn(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return zy(e,t)}}function zy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function pJ(e){var t=vJ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function vJ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var $1=function(e){It(r,e);var t=pJ(r);function r(a,n,s){var o;fe(this,r);var l=an({},{fitOnDoubleClick:!0},s,{editable:!1});if(o=t.call(this,a,n,l),o.props={content:{width:0,height:0}},!a||a.uiItems==null)throw new Error('Property "uiItems" missing in item '+a.id);return o.id=ai(),o.group=a.group,o._setupRange(),o.emitter=o.data.eventEmitter,o.range=o.data.range,o.attached=!1,o.isCluster=!0,o.data.isCluster=!0,o}return pe(r,[{key:"hasItems",value:function(){return this.data.uiItems&&this.data.uiItems.length&&this.attached}},{key:"setUiItems",value:function(n){this.detach(),this.data.uiItems=n,this._setupRange(),this.attach()}},{key:"isVisible",value:function(n){var s=this.data.end?this.data.end-this.data.start:0,o=this.width*n.getMillisecondsPerPixel(),l=Math.max(this.data.start.getTime()+s,this.data.start.getTime()+o);return this.data.start<n.end&&l>n.start&&this.hasItems()}},{key:"getData",value:function(){return{isCluster:!0,id:this.id,items:this.data.items||[],data:this.data}}},{key:"redraw",value:function(n){var s,o,l,d,c,f,v,m=[P(s=this._createDomElement).call(s,this),P(o=this._appendDomElement).call(o,this),P(l=this._updateDirtyDomComponents).call(l,this),P(d=function(){this.dirty&&(v=this._getDomComponentsSizes())}).call(d,this),P(c=function(){if(this.dirty){var S;P(S=this._updateDomComponentsSizes).call(S,this)(v)}}).call(c,this),P(f=this._repaintDomAdditionals).call(f,this)];if(n)return m;var g;return G(m).call(m,function(b){g=b()}),g}},{key:"show",value:function(){this.displayed||this.redraw()}},{key:"hide",value:function(){if(this.displayed){var n=this.dom;n.box.parentNode&&n.box.parentNode.removeChild(n.box),this.options.showStipes&&(n.line.parentNode&&n.line.parentNode.removeChild(n.line),n.dot.parentNode&&n.dot.parentNode.removeChild(n.dot)),this.displayed=!1}}},{key:"repositionX",value:function(){var n=this.conversion.toScreen(this.data.start),s=this.data.end?this.conversion.toScreen(this.data.end):0;if(s)this.repositionXWithRanges(n,s);else{var o=this.data.align===void 0?this.options.align:this.data.align;this.repositionXWithoutRanges(n,o)}this.options.showStipes&&(this.dom.line.style.display=this._isStipeVisible()?"block":"none",this.dom.dot.style.display=this._isStipeVisible()?"block":"none",this._isStipeVisible()&&this.repositionStype(n,s))}},{key:"repositionStype",value:function(n,s){this.dom.line.style.display="block",this.dom.dot.style.display="block";var o=this.dom.line.offsetWidth,l=this.dom.dot.offsetWidth;if(s){var d=o+n+(s-n)/2,c=d-l/2,f=this.options.rtl?d*-1:d,v=this.options.rtl?c*-1:c;this.dom.line.style.transform="translateX(".concat(f,"px)"),this.dom.dot.style.transform="translateX(".concat(v,"px)")}else{var m=this.options.rtl?n*-1:n,g=this.options.rtl?(n-l/2)*-1:n-l/2;this.dom.line.style.transform="translateX(".concat(m,"px)"),this.dom.dot.style.transform="translateX(".concat(g,"px)")}}},{key:"repositionXWithoutRanges",value:function(n,s){s=="right"?this.options.rtl?(this.right=n-this.width,this.dom.box.style.right=this.right+"px"):(this.left=n-this.width,this.dom.box.style.left=this.left+"px"):s=="left"?this.options.rtl?(this.right=n,this.dom.box.style.right=this.right+"px"):(this.left=n,this.dom.box.style.left=this.left+"px"):this.options.rtl?(this.right=n-this.width/2,this.dom.box.style.right=this.right+"px"):(this.left=n-this.width/2,this.dom.box.style.left=this.left+"px")}},{key:"repositionXWithRanges",value:function(n,s){var o=Math.round(Math.max(s-n+.5,1));this.options.rtl?this.right=n:this.left=n,this.width=Math.max(o,this.minWidth||0),this.options.rtl?this.dom.box.style.right=this.right+"px":this.dom.box.style.left=this.left+"px",this.dom.box.style.width=o+"px"}},{key:"repositionY",value:function(){var n=this.options.orientation.item,s=this.dom.box;if(n=="top"?s.style.top=(this.top||0)+"px":s.style.top=(this.parent.height-this.top-this.height||0)+"px",this.options.showStipes){if(n=="top")this.dom.line.style.top="0",this.dom.line.style.height=this.parent.top+this.top+1+"px",this.dom.line.style.bottom="";else{var o=this.parent.itemSet.props.height,l=o-this.parent.top-this.parent.height+this.top;this.dom.line.style.top=o-l+"px",this.dom.line.style.bottom="0"}this.dom.dot.style.top=-this.dom.dot.offsetHeight/2+"px"}}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}},{key:"move",value:function(){this.repositionX(),this.repositionY()}},{key:"attach",value:function(){var n,s=Gy(this.data.uiItems),o;try{for(s.s();!(o=s.n()).done;){var l=o.value;l.cluster=this}}catch(d){s.e(d)}finally{s.f()}this.data.items=Se(n=this.data.uiItems).call(n,function(d){return d.data}),this.attached=!0,this.dirty=!0}},{key:"detach",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.hasItems()){var s=Gy(this.data.uiItems),o;try{for(s.s();!(o=s.n()).done;){var l=o.value;delete l.cluster}}catch(d){s.e(d)}finally{s.f()}this.attached=!1,n&&this.group&&(this.group.remove(this),this.group=null),this.data.items=[],this.dirty=!0}}},{key:"_onDoubleClick",value:function(){this._fit()}},{key:"_setupRange",value:function(){var n,s,o,l=Se(n=this.data.uiItems).call(n,function(f){return{start:f.data.start.valueOf(),end:f.data.end?f.data.end.valueOf():f.data.start.valueOf()}});this.data.min=Math.min.apply(Math,Fe(Se(l).call(l,function(f){return Math.min(f.start,f.end||f.start)}))),this.data.max=Math.max.apply(Math,Fe(Se(l).call(l,function(f){return Math.max(f.start,f.end||f.start)})));var d=Se(s=this.data.uiItems).call(s,function(f){return f.center}),c=vd(d).call(d,function(f,v){return f+v},0)/this.data.uiItems.length;Rf(o=this.data.uiItems).call(o,function(f){return f.data.end})?(this.data.start=new Date(this.data.min),this.data.end=new Date(this.data.max)):(this.data.start=new Date(c),this.data.end=null)}},{key:"_getUiItems",value:function(){var n=this;if(this.data.uiItems&&this.data.uiItems.length){var s;return te(s=this.data.uiItems).call(s,function(o){return o.cluster===n})}return[]}},{key:"_createDomElement",value:function(){if(!this.dom){if(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="vis-item-content",this.dom.box.appendChild(this.dom.content),this.options.showStipes&&(this.dom.line=document.createElement("DIV"),this.dom.line.className="vis-cluster-line",this.dom.line.style.display="none",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="vis-cluster-dot",this.dom.dot.style.display="none"),this.options.fitOnDoubleClick){var n;this.dom.box.ondblclick=P(n=r.prototype._onDoubleClick).call(n,this)}this.dom.box["vis-item"]=this,this.dirty=!0}}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var n=this.parent.dom.foreground;if(!n)throw new Error("Cannot redraw item: parent has no foreground container element");n.appendChild(this.dom.box)}var s=this.parent.dom.background;if(this.options.showStipes){if(!this.dom.line.parentNode){if(!s)throw new Error("Cannot redraw item: parent has no background container element");s.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var o=this.parent.dom.axis;if(!s)throw new Error("Cannot redraw item: parent has no axis container element");o.appendChild(this.dom.dot)}}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var n=this.baseClassName+" "+(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+" vis-readonly";this.dom.box.className="vis-item "+n,this.options.showStipes&&(this.dom.line.className="vis-item vis-cluster-line "+(this.selected?" vis-selected":""),this.dom.dot.className="vis-item vis-cluster-dot "+(this.selected?" vis-selected":"")),this.data.end&&(this.dom.content.style.maxWidth="none")}}},{key:"_getDomComponentsSizes",value:function(){var n={previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}};return this.options.showStipes&&(n.dot={height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},n.line={width:this.dom.line.offsetWidth}),n}},{key:"_updateDomComponentsSizes",value:function(n){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.data.end?this.minWidth=n.box.width:this.width=n.box.width,this.height=n.box.height,this.options.rtl?this.dom.box.style.right=n.previous.right:this.dom.box.style.left=n.previous.left,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box)}},{key:"_isStipeVisible",value:function(){return this.minWidth>=this.width||!this.data.end}},{key:"_getFitRange",value:function(){var n=.05*(this.data.max-this.data.min)/2;return{fitStart:this.data.min-n,fitEnd:this.data.max+n}}},{key:"_fit",value:function(){if(this.emitter){var n=this._getFitRange(),s=n.fitStart,o=n.fitEnd,l={start:new Date(s),end:new Date(o),animation:!0};this.emitter.emit("fit",l)}}},{key:"_getItemData",value:function(){return this.data}}]),r}(ja);$1.prototype.baseClassName="vis-item vis-range vis-cluster";function mJ(e,t){var r=typeof fn<"u"&&Ln(e)||e["@@iterator"];if(!r){if(ae(e)||(r=gJ(e))||t){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(c){throw c},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
661
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(o)throw l}}}}function gJ(e,t){var r;if(e){if(typeof e=="string")return Uy(e,t);var a=bt(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Rn(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Uy(e,t)}}function Uy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var yJ="__ungrouped__",_J={UNGROUPED:yJ},bJ=function(){function e(t){fe(this,e),this.itemSet=t,this.groups={},this.cache={},this.cache[-1]=[]}return pe(e,[{key:"createClusterItem",value:function(r,a,n){var s=new $1(r,a,n);return s}},{key:"setItems",value:function(r,a){this.items=r||[],this.dataChanged=!0,this.applyOnChangedLevel=!1,a&&a.applyOnChangedLevel&&(this.applyOnChangedLevel=a.applyOnChangedLevel)}},{key:"updateData",value:function(){this.dataChanged=!0,this.applyOnChangedLevel=!1}},{key:"getClusters",value:function(r,a,n){var s=typeof n=="boolean"?{}:n,o=s.maxItems,l=s.clusterCriteria;l||(l=function(){return!0}),o=o||1;var d=-1,c=2,f=0;if(a>0){if(a>=1)return[];d=Math.abs(Math.round(Math.log(100/a)/Math.log(c))),f=Math.abs(Math.pow(c,d))}if(this.dataChanged){var v=d!=this.cacheLevel,m=this.applyOnChangedLevel?v:!0;m&&(this._dropLevelsCache(),this._filterData())}this.cacheLevel=d;var g=this.cache[d];if(!g){g=[];for(var b in this.groups)if(this.groups.hasOwnProperty(b))for(var S=this.groups[b],w=S.length,k=0;k<w;){for(var T=S[k],D=1,N=k-1;N>=0&&T.center-S[N].center<f/2;)!S[N].cluster&&l(T.data,S[N].data)&&D++,N--;for(var L=k+1;L<S.length&&S[L].center-T.center<f/2;)l(T.data,S[L].data)&&D++,L++;for(var A=g.length-1;A>=0&&T.center-g[A].center<f;)T.group==g[A].group&&l(T.data,g[A].data)&&D++,A--;if(D>o){for(var R=D-o+1,C=[],j=k;C.length<R&&j<S.length;)l(S[k].data,S[j].data)&&C.push(S[j]),j++;var O=this.itemSet.getGroupId(T.data),M=this.itemSet.groups[O]||this.itemSet.groups[_J.UNGROUPED],H=this._getClusterForItems(C,M,r,n);g.push(H),k+=R}else delete T.cluster,k+=1}this.cache[d]=g}return g}},{key:"_filterData",value:function(){var r={};this.groups=r;for(var a=0,n=df(this.items);a<n.length;a++){var s=n[a],o=s.parent?s.parent.groupId:"",l=r[o];l||(l=[],r[o]=l),l.push(s),s.data.start&&(s.data.end?s.center=(s.data.start.valueOf()+s.data.end.valueOf())/2:s.center=s.data.start.valueOf())}for(var d in r)if(r.hasOwnProperty(d)){var c;Ze(c=r[d]).call(c,function(f,v){return f.center-v.center})}this.dataChanged=!1}},{key:"_getClusterForItems",value:function(r,a,n,s){var o,l=Se(o=n||[]).call(o,function(T){var D;return{cluster:T,itemsIds:new xn(Se(D=T.data.uiItems).call(D,function(N){return N.id}))}}),d;if(l.length){var c=mJ(l),f;try{var v=function(){var D=f.value;if(D.itemsIds.size===r.length&&hJ(r).call(r,function(N){return D.itemsIds.has(N.id)}))return d=D.cluster,1};for(c.s();!(f=c.n()).done&&!v(););}catch(T){c.e(T)}finally{c.f()}}if(d)return d.setUiItems(r),d.group!==a&&(d.group&&d.group.remove(d),a&&(a.add(d),d.group=a)),d;var m=s.titleTemplate||"",g={toScreen:this.itemSet.body.util.toScreen,toTime:this.itemSet.body.util.toTime},b=m.replace(/{count}/,r.length),S='<div title="'+b+'">'+r.length+"</div>",w=an({},s,this.itemSet.options),k={content:S,title:b,group:a,uiItems:r,eventEmitter:this.itemSet.body.emitter,range:this.itemSet.body.range};return d=this.createClusterItem(k,g,w),a&&(a.add(d),d.group=a),d.attach(),d}},{key:"_dropLevelsCache",value:function(){this.cache={},this.cacheLevel=-1,this.cache[this.cacheLevel]=[]}}]),e}(),wJ=`
662
+ .vis-itemset {
663
+ position: relative;
664
+ padding: 0;
665
+ margin: 0;
666
+
667
+ box-sizing: border-box;
668
+ }
669
+
670
+ .vis-itemset .vis-background,
671
+ .vis-itemset .vis-foreground {
672
+ position: absolute;
673
+ width: 100%;
674
+ height: 100%;
675
+ overflow: visible;
676
+ }
677
+
678
+ .vis-axis {
679
+ position: absolute;
680
+ width: 100%;
681
+ height: 0;
682
+ left: 0;
683
+ z-index: 1;
684
+ }
685
+
686
+ .vis-foreground .vis-group {
687
+ position: relative;
688
+ box-sizing: border-box;
689
+ border-bottom: 1px solid #bfbfbf;
690
+ }
691
+
692
+ .vis-foreground .vis-group:last-child {
693
+ border-bottom: none;
694
+ }
695
+
696
+ .vis-nesting-group {
697
+ cursor: pointer;
698
+ }
699
+
700
+ .vis-label.vis-nested-group.vis-group-level-unknown-but-gte1 {
701
+ background: #f5f5f5;
702
+ }
703
+ .vis-label.vis-nested-group.vis-group-level-0 {
704
+ background-color: #ffffff;
705
+ }
706
+ .vis-ltr .vis-label.vis-nested-group.vis-group-level-0 .vis-inner {
707
+ padding-left: 0;
708
+ }
709
+ .vis-rtl .vis-label.vis-nested-group.vis-group-level-0 .vis-inner {
710
+ padding-right: 0;
711
+ }
712
+ .vis-label.vis-nested-group.vis-group-level-1 {
713
+ background-color: rgba(0, 0, 0, 0.05);
714
+ }
715
+ .vis-ltr .vis-label.vis-nested-group.vis-group-level-1 .vis-inner {
716
+ padding-left: 15px;
717
+ }
718
+ .vis-rtl .vis-label.vis-nested-group.vis-group-level-1 .vis-inner {
719
+ padding-right: 15px;
720
+ }
721
+ .vis-label.vis-nested-group.vis-group-level-2 {
722
+ background-color: rgba(0, 0, 0, 0.1);
723
+ }
724
+ .vis-ltr .vis-label.vis-nested-group.vis-group-level-2 .vis-inner {
725
+ padding-left: 30px;
726
+ }
727
+ .vis-rtl .vis-label.vis-nested-group.vis-group-level-2 .vis-inner {
728
+ padding-right: 30px;
729
+ }
730
+ .vis-label.vis-nested-group.vis-group-level-3 {
731
+ background-color: rgba(0, 0, 0, 0.15);
732
+ }
733
+ .vis-ltr .vis-label.vis-nested-group.vis-group-level-3 .vis-inner {
734
+ padding-left: 45px;
735
+ }
736
+ .vis-rtl .vis-label.vis-nested-group.vis-group-level-3 .vis-inner {
737
+ padding-right: 45px;
738
+ }
739
+ .vis-label.vis-nested-group.vis-group-level-4 {
740
+ background-color: rgba(0, 0, 0, 0.2);
741
+ }
742
+ .vis-ltr .vis-label.vis-nested-group.vis-group-level-4 .vis-inner {
743
+ padding-left: 60px;
744
+ }
745
+ .vis-rtl .vis-label.vis-nested-group.vis-group-level-4 .vis-inner {
746
+ padding-right: 60px;
747
+ }
748
+ .vis-label.vis-nested-group.vis-group-level-5 {
749
+ background-color: rgba(0, 0, 0, 0.25);
750
+ }
751
+ .vis-ltr .vis-label.vis-nested-group.vis-group-level-5 .vis-inner {
752
+ padding-left: 75px;
753
+ }
754
+ .vis-rtl .vis-label.vis-nested-group.vis-group-level-5 .vis-inner {
755
+ padding-right: 75px;
756
+ }
757
+ .vis-label.vis-nested-group.vis-group-level-6 {
758
+ background-color: rgba(0, 0, 0, 0.3);
759
+ }
760
+ .vis-ltr .vis-label.vis-nested-group.vis-group-level-6 .vis-inner {
761
+ padding-left: 90px;
762
+ }
763
+ .vis-rtl .vis-label.vis-nested-group.vis-group-level-6 .vis-inner {
764
+ padding-right: 90px;
765
+ }
766
+ .vis-label.vis-nested-group.vis-group-level-7 {
767
+ background-color: rgba(0, 0, 0, 0.35);
768
+ }
769
+ .vis-ltr .vis-label.vis-nested-group.vis-group-level-7 .vis-inner {
770
+ padding-left: 105px;
771
+ }
772
+ .vis-rtl .vis-label.vis-nested-group.vis-group-level-7 .vis-inner {
773
+ padding-right: 105px;
774
+ }
775
+ .vis-label.vis-nested-group.vis-group-level-8 {
776
+ background-color: rgba(0, 0, 0, 0.4);
777
+ }
778
+ .vis-ltr .vis-label.vis-nested-group.vis-group-level-8 .vis-inner {
779
+ padding-left: 120px;
780
+ }
781
+ .vis-rtl .vis-label.vis-nested-group.vis-group-level-8 .vis-inner {
782
+ padding-right: 120px;
783
+ }
784
+ .vis-label.vis-nested-group.vis-group-level-9 {
785
+ background-color: rgba(0, 0, 0, 0.45);
786
+ }
787
+ .vis-ltr .vis-label.vis-nested-group.vis-group-level-9 .vis-inner {
788
+ padding-left: 135px;
789
+ }
790
+ .vis-rtl .vis-label.vis-nested-group.vis-group-level-9 .vis-inner {
791
+ padding-right: 135px;
792
+ }
793
+ /* default takes over beginning with level-10 (thats why we add .vis-nested-group
794
+ to the selectors above, to have higher specifity than these rules for the defaults) */
795
+ .vis-label.vis-nested-group {
796
+ background-color: rgba(0, 0, 0, 0.5);
797
+ }
798
+ .vis-ltr .vis-label.vis-nested-group .vis-inner {
799
+ padding-left: 150px;
800
+ }
801
+ .vis-rtl .vis-label.vis-nested-group .vis-inner {
802
+ padding-right: 150px;
803
+ }
804
+
805
+ .vis-group-level-unknown-but-gte1 {
806
+ border: 1px solid red;
807
+ }
808
+
809
+ /* expanded/collapsed indicators */
810
+ .vis-label.vis-nesting-group:before,
811
+ .vis-label.vis-nesting-group:before {
812
+ display: inline-block;
813
+ width: 15px;
814
+ }
815
+ .vis-label.vis-nesting-group.expanded:before {
816
+ content: "\\25BC";
817
+ }
818
+ .vis-label.vis-nesting-group.collapsed:before {
819
+ content: "\\25B6";
820
+ }
821
+ .vis-rtl .vis-label.vis-nesting-group.collapsed:before {
822
+ content: "\\25C0";
823
+ }
824
+ /* compensate missing expanded/collapsed indicator, but only at levels > 0 */
825
+ .vis-ltr .vis-label:not(.vis-nesting-group):not(.vis-group-level-0) {
826
+ padding-left: 15px;
827
+ }
828
+ .vis-rtl .vis-label:not(.vis-nesting-group):not(.vis-group-level-0) {
829
+ padding-right: 15px;
830
+ }
831
+
832
+ .vis-overlay {
833
+ position: absolute;
834
+ top: 0;
835
+ left: 0;
836
+ width: 100%;
837
+ height: 100%;
838
+ z-index: 10;
839
+ }`;Pt(wJ);var EJ=`
840
+ .vis-labelset {
841
+ position: relative;
842
+
843
+ overflow: hidden;
844
+
845
+ box-sizing: border-box;
846
+ }
847
+
848
+ .vis-labelset .vis-label {
849
+ position: relative;
850
+ left: 0;
851
+ top: 0;
852
+ width: 100%;
853
+ color: #4d4d4d;
854
+
855
+ box-sizing: border-box;
856
+ }
857
+
858
+ .vis-labelset .vis-label {
859
+ border-bottom: 1px solid #bfbfbf;
860
+ }
861
+
862
+ .vis-labelset .vis-label.draggable {
863
+ cursor: pointer;
864
+ }
865
+
866
+ .vis-group-is-dragging {
867
+ background: rgba(0, 0, 0, .1);
868
+ }
869
+
870
+ .vis-labelset .vis-label:last-child {
871
+ border-bottom: none;
872
+ }
873
+
874
+ .vis-labelset .vis-label .vis-inner {
875
+ display: inline-block;
876
+ padding: 5px;
877
+ }
878
+
879
+ .vis-labelset .vis-label .vis-inner.vis-hidden {
880
+ padding: 0;
881
+ }
882
+ `;Pt(EJ);function Un(e,t){var r=typeof fn<"u"&&Ln(e)||e["@@iterator"];if(!r){if(ae(e)||(r=SJ(e))||t){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(c){throw c},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
883
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(o)throw l}}}}function SJ(e,t){var r;if(e){if(typeof e=="string")return Ky(e,t);var a=bt(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Rn(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Ky(e,t)}}function Ky(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function kJ(e){var t=xJ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function xJ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var Bi="__ungrouped__",_n="__background__",Ll=function(e){It(r,e);var t=kJ(r);function r(a,n){var s;fe(this,r),s=t.call(this),s.body=a,s.defaultOptions={type:null,orientation:{item:"bottom"},align:"auto",stack:!0,stackSubgroups:!0,groupOrderSwap:function(d,c,f){var v=c.order;c.order=d.order,d.order=v},groupOrder:"order",selectable:!0,multiselect:!1,longSelectPressTime:251,itemsAlwaysDraggable:{item:!1,range:!1},editable:{updateTime:!1,updateGroup:!1,add:!1,remove:!1,overrideItems:!1},groupEditable:{order:!1,add:!1,remove:!1},snap:Ml.snap,onDropObjectOnItem:function(d,c,f){f(c)},onAdd:function(d,c){c(d)},onUpdate:function(d,c){c(d)},onMove:function(d,c){c(d)},onRemove:function(d,c){c(d)},onMoving:function(d,c){c(d)},onAddGroup:function(d,c){c(d)},onMoveGroup:function(d,c){c(d)},onRemoveGroup:function(d,c){c(d)},margin:{item:{horizontal:10,vertical:10},axis:20},showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:500},tooltipOnItemUpdateTime:!1},s.options=x.extend({},s.defaultOptions),s.options.rtl=n.rtl,s.options.onTimeout=n.onTimeout,s.conversion={toScreen:a.util.toScreen,toTime:a.util.toTime},s.dom={},s.props={},s.hammer=null;var o=Ne(s);return s.itemsData=null,s.groupsData=null,s.itemsSettingTime=null,s.initialItemSetDrawn=!1,s.userContinueNotBail=null,s.sequentialSelection=!1,s.itemListeners={add:function(d,c,f){o._onAdd(c.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()},update:function(d,c,f){o._onUpdate(c.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()},remove:function(d,c,f){o._onRemove(c.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()}},s.groupListeners={add:function(d,c,f){if(o._onAddGroups(c.items),o.groupsData&&o.groupsData.length>0){var v,m=o.groupsData.getDataSet();G(v=m.get()).call(v,function(g){if(g.nestedGroups){var b;g.showNested!=!1&&(g.showNested=!0);var S=[];G(b=g.nestedGroups).call(b,function(w){var k=m.get(w);k&&(k.nestedInGroup=g.id,g.showNested==!1&&(k.visible=!1),S=Me(S).call(S,k))}),m.update(S,f)}})}},update:function(d,c,f){o._onUpdateGroups(c.items)},remove:function(d,c,f){o._onRemoveGroups(c.items)}},s.items={},s.groups={},s.groupIds=[],s.selection=[],s.popup=null,s.popupTimer=null,s.touchParams={},s.groupTouchParams={group:null,isDragging:!1},s._create(),s.setOptions(n),s.clusters=[],s}return pe(r,[{key:"_create",value:function(){var n=this,s,o,l,d,c,f,v,m,g,b,S,w,k,T,D,N=document.createElement("div");N.className="vis-itemset",N["vis-itemset"]=this,this.dom.frame=N;var L=document.createElement("div");L.className="vis-background",N.appendChild(L),this.dom.background=L;var A=document.createElement("div");A.className="vis-foreground",N.appendChild(A),this.dom.foreground=A;var R=document.createElement("div");R.className="vis-axis",this.dom.axis=R;var C=document.createElement("div");C.className="vis-labelset",this.dom.labelSet=C,this._updateUngrouped();var j=new T1(_n,null,this);j.show(),this.groups[_n]=j,this.hammer=new kt(this.body.dom.centerContainer),this.hammer.on("hammer.input",function(O){O.isFirst&&n._onTouch(O)}),this.hammer.on("panstart",P(s=this._onDragStart).call(s,this)),this.hammer.on("panmove",P(o=this._onDrag).call(o,this)),this.hammer.on("panend",P(l=this._onDragEnd).call(l,this)),this.hammer.get("pan").set({threshold:5,direction:kt.ALL}),this.hammer.get("press").set({time:1e4}),this.hammer.on("tap",P(d=this._onSelectItem).call(d,this)),this.hammer.on("press",P(c=this._onMultiSelectItem).call(c,this)),this.hammer.get("press").set({time:1e4}),this.hammer.on("doubletap",P(f=this._onAddItem).call(f,this)),this.options.rtl?this.groupHammer=new kt(this.body.dom.rightContainer):this.groupHammer=new kt(this.body.dom.leftContainer),this.groupHammer.on("tap",P(v=this._onGroupClick).call(v,this)),this.groupHammer.on("panstart",P(m=this._onGroupDragStart).call(m,this)),this.groupHammer.on("panmove",P(g=this._onGroupDrag).call(g,this)),this.groupHammer.on("panend",P(b=this._onGroupDragEnd).call(b,this)),this.groupHammer.get("pan").set({threshold:5,direction:kt.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",P(S=this._onMouseOver).call(S,this)),this.body.dom.centerContainer.addEventListener("mouseout",P(w=this._onMouseOut).call(w,this)),this.body.dom.centerContainer.addEventListener("mousemove",P(k=this._onMouseMove).call(k,this)),this.body.dom.centerContainer.addEventListener("contextmenu",P(T=this._onDragEnd).call(T,this)),this.body.dom.centerContainer.addEventListener("mousewheel",P(D=this._onMouseWheel).call(D,this)),this.show()}},{key:"setOptions",value:function(n){var s=this;if(n){var o,l,d=["type","rtl","align","order","stack","stackSubgroups","selectable","multiselect","sequentialSelection","multiselectPerGroup","longSelectPressTime","groupOrder","dataAttributes","template","groupTemplate","visibleFrameTemplate","hide","snap","groupOrderSwap","showTooltips","tooltip","tooltipOnItemUpdateTime","groupHeightMode","onTimeout"];x.selectiveExtend(d,this.options,n),"itemsAlwaysDraggable"in n&&(typeof n.itemsAlwaysDraggable=="boolean"?(this.options.itemsAlwaysDraggable.item=n.itemsAlwaysDraggable,this.options.itemsAlwaysDraggable.range=!1):ne(n.itemsAlwaysDraggable)==="object"&&(x.selectiveExtend(["item","range"],this.options.itemsAlwaysDraggable,n.itemsAlwaysDraggable),this.options.itemsAlwaysDraggable.item||(this.options.itemsAlwaysDraggable.range=!1))),"sequentialSelection"in n&&typeof n.sequentialSelection=="boolean"&&(this.options.sequentialSelection=n.sequentialSelection),"orientation"in n&&(typeof n.orientation=="string"?this.options.orientation.item=n.orientation==="top"?"top":"bottom":ne(n.orientation)==="object"&&"item"in n.orientation&&(this.options.orientation.item=n.orientation.item)),"margin"in n&&(typeof n.margin=="number"?(this.options.margin.axis=n.margin,this.options.margin.item.horizontal=n.margin,this.options.margin.item.vertical=n.margin):ne(n.margin)==="object"&&(x.selectiveExtend(["axis"],this.options.margin,n.margin),"item"in n.margin&&(typeof n.margin.item=="number"?(this.options.margin.item.horizontal=n.margin.item,this.options.margin.item.vertical=n.margin.item):ne(n.margin.item)==="object"&&x.selectiveExtend(["horizontal","vertical"],this.options.margin.item,n.margin.item)))),G(o=["locale","locales"]).call(o,function(f){f in n&&(s.options[f]=n[f])}),"editable"in n&&(typeof n.editable=="boolean"?(this.options.editable.updateTime=n.editable,this.options.editable.updateGroup=n.editable,this.options.editable.add=n.editable,this.options.editable.remove=n.editable,this.options.editable.overrideItems=!1):ne(n.editable)==="object"&&x.selectiveExtend(["updateTime","updateGroup","add","remove","overrideItems"],this.options.editable,n.editable)),"groupEditable"in n&&(typeof n.groupEditable=="boolean"?(this.options.groupEditable.order=n.groupEditable,this.options.groupEditable.add=n.groupEditable,this.options.groupEditable.remove=n.groupEditable):ne(n.groupEditable)==="object"&&x.selectiveExtend(["order","add","remove"],this.options.groupEditable,n.groupEditable));var c=function(v){var m=n[v];if(m){if(typeof m!="function"){var g;throw new Error(Me(g="option ".concat(v," must be a function ")).call(g,v,"(item, callback)"))}s.options[v]=m}};G(l=["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"]).call(l,c),n.cluster?(an(this.options,{cluster:n.cluster}),this.clusterGenerator||(this.clusterGenerator=new bJ(this)),this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.clusterGenerator?(this._detachAllClusters(),this.clusters=[],this.clusterGenerator=null,this.options.cluster=void 0,this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.markDirty()}}},{key:"markDirty",value:function(n){this.groupIds=[],n&&(n.refreshItems&&G(x).call(x,this.items,function(s){s.dirty=!0,s.displayed&&s.redraw()}),n.restackGroups&&G(x).call(x,this.groups,function(s,o){o!==_n&&(s.stackDirty=!0)}))}},{key:"destroy",value:function(){this.clearPopupTimer(),this.hide(),this.setItems(null),this.setGroups(null),this.hammer&&this.hammer.destroy(),this.groupHammer&&this.groupHammer.destroy(),this.hammer=null,this.body=null,this.conversion=null}},{key:"hide",value:function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.axis.parentNode&&this.dom.axis.parentNode.removeChild(this.dom.axis),this.dom.labelSet.parentNode&&this.dom.labelSet.parentNode.removeChild(this.dom.labelSet)}},{key:"show",value:function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame),this.dom.axis.parentNode||this.body.dom.backgroundVertical.appendChild(this.dom.axis),this.dom.labelSet.parentNode||(this.options.rtl?this.body.dom.right.appendChild(this.dom.labelSet):this.body.dom.left.appendChild(this.dom.labelSet))}},{key:"setPopupTimer",value:function(n){if(this.clearPopupTimer(),n){var s=this.options.tooltip.delay||typeof this.options.tooltip.delay=="number"?this.options.tooltip.delay:500;this.popupTimer=_t(function(){n.show()},s)}}},{key:"clearPopupTimer",value:function(){this.popupTimer!=null&&(clearTimeout(this.popupTimer),this.popupTimer=null)}},{key:"setSelection",value:function(n){var s;n==null&&(n=[]),ae(n)||(n=[n]);var o=te(s=this.selection).call(s,function(S){return Ce(n).call(n,S)===-1}),l=Un(o),d;try{for(l.s();!(d=l.n()).done;){var c=d.value,f=this.getItemById(c);f&&f.unselect()}}catch(S){l.e(S)}finally{l.f()}this.selection=Fe(n);var v=Un(n),m;try{for(v.s();!(m=v.n()).done;){var g=m.value,b=this.getItemById(g);b&&b.select()}}catch(S){v.e(S)}finally{v.f()}}},{key:"getSelection",value:function(){var n;return Me(n=this.selection).call(n,[])}},{key:"getVisibleItems",value:function(){var n=this.body.range.getRange(),s,o;this.options.rtl?(s=this.body.util.toScreen(n.start),o=this.body.util.toScreen(n.end)):(o=this.body.util.toScreen(n.start),s=this.body.util.toScreen(n.end));var l=[];for(var d in this.groups)if(this.groups.hasOwnProperty(d)){var c=this.groups[d],f=c.isVisible?c.visibleItems:[],v=Un(f),m;try{for(v.s();!(m=v.n()).done;){var g=m.value;this.options.rtl?g.right<o&&g.right+g.width>s&&l.push(g.id):g.left<s&&g.left+g.width>o&&l.push(g.id)}}catch(b){v.e(b)}finally{v.f()}}return l}},{key:"getItemsAtCurrentTime",value:function(n){var s,o;this.options.rtl?(s=this.body.util.toScreen(n),o=this.body.util.toScreen(n)):(o=this.body.util.toScreen(n),s=this.body.util.toScreen(n));var l=[];for(var d in this.groups)if(this.groups.hasOwnProperty(d)){var c=this.groups[d],f=c.isVisible?c.visibleItems:[],v=Un(f),m;try{for(v.s();!(m=v.n()).done;){var g=m.value;this.options.rtl?g.right<o&&g.right+g.width>s&&l.push(g.id):g.left<s&&g.left+g.width>o&&l.push(g.id)}}catch(b){v.e(b)}finally{v.f()}}return l}},{key:"getVisibleGroups",value:function(){var n=[];for(var s in this.groups)if(this.groups.hasOwnProperty(s)){var o=this.groups[s];o.isVisible&&n.push(s)}return n}},{key:"getItemById",value:function(n){var s;return this.items[n]||vZ(s=this.clusters).call(s,function(o){return o.id===n})}},{key:"_deselect",value:function(n){for(var s=this.selection,o=0,l=s.length;o<l;o++)if(s[o]==n){xt(s).call(s,o,1);break}}},{key:"redraw",value:function(){var n=this.options.margin,s=this.body.range,o=x.option.asSize,l=this.options,d=l.orientation.item,c=!1,f=this.dom.frame;this.props.top=this.body.domProps.top.height+this.body.domProps.border.top,this.options.rtl?this.props.right=this.body.domProps.right.width+this.body.domProps.border.right:this.props.left=this.body.domProps.left.width+this.body.domProps.border.left,f.className="vis-itemset",this.options.cluster&&this._clusterItems(),c=this._orderGroups()||c;var v=s.end-s.start,m=v!=this.lastVisibleInterval||this.props.width!=this.props.lastWidth,g=s.start!=this.lastRangeStart,b=l.stack!=this.lastStack,S=l.stackSubgroups!=this.lastStackSubgroups,w=m||g||b||S;this.lastVisibleInterval=v,this.lastRangeStart=s.start,this.lastStack=l.stack,this.lastStackSubgroups=l.stackSubgroups,this.props.lastWidth=this.props.width;var k=this._firstGroup(),T={item:n.item,axis:n.axis},D={item:n.item,axis:n.item.vertical/2},N=0,L=n.axis+n.item.vertical;this.groups[_n].redraw(s,D,w);var A={},R=0;G(x).call(x,this.groups,function(H,z){if(z!==_n){var se=H==k?T:D,_e=!0;A[z]=H.redraw(s,se,w,_e),R=A[z].length}});var C=R>0;if(C){for(var j={},O=function(z){G(x).call(x,A,function(se,_e){j[_e]=se[z]()})},M=0;M<R;M++)O(M);G(x).call(x,this.groups,function(H,z){if(z!==_n){var se=j[z];c=se||c,N+=H.height}}),N=Math.max(N,L)}return N=Math.max(N,L),f.style.height=o(N),this.props.width=f.offsetWidth,this.props.height=N,this.dom.axis.style.top=o(d=="top"?this.body.domProps.top.height+this.body.domProps.border.top:this.body.domProps.top.height+this.body.domProps.centerContainer.height),this.options.rtl?this.dom.axis.style.right="0":this.dom.axis.style.left="0",this.hammer.get("press").set({time:this.options.longSelectPressTime}),this.initialItemSetDrawn=!0,c=this._isResized()||c,c}},{key:"_firstGroup",value:function(){var n=this.options.orientation.item=="top"?0:this.groupIds.length-1,s=this.groupIds[n],o=this.groups[s]||this.groups[Bi];return o||null}},{key:"_updateUngrouped",value:function(){var n=this.groups[Bi],s,o;if(this.groupsData){if(n){n.dispose(),delete this.groups[Bi];for(o in this.items)if(this.items.hasOwnProperty(o)){s=this.items[o],s.parent&&s.parent.remove(s);var l=this.getGroupId(s.data),d=this.groups[l];d&&d.add(s)||s.hide()}}}else if(!n){var c=null,f=null;n=new wh(c,f,this),this.groups[Bi]=n;for(o in this.items)this.items.hasOwnProperty(o)&&(s=this.items[o],n.add(s));n.show()}}},{key:"getLabelSet",value:function(){return this.dom.labelSet}},{key:"setItems",value:function(n){this.itemsSettingTime=new Date;var s=this,o,l=this.itemsData;if(!n)this.itemsData=null;else if(on(n))this.itemsData=ba(n);else throw new TypeError("Data must implement the interface of DataSet or DataView");if(l&&(G(x).call(x,this.itemListeners,function(c,f){l.off(f,c)}),l.dispose(),o=l.getIds(),this._onRemove(o)),this.itemsData){var d=this.id;G(x).call(x,this.itemListeners,function(c,f){s.itemsData.on(f,c,d)}),o=this.itemsData.getIds(),this._onAdd(o),this._updateUngrouped()}this.body.emitter.emit("_change",{queue:!0})}},{key:"getItems",value:function(){return this.itemsData!=null?this.itemsData.rawDS:null}},{key:"setGroups",value:function(n){var s=this,o;if(this.groupsData&&(G(x).call(x,this.groupListeners,function(f,v){s.groupsData.off(v,f)}),o=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(o)),!n)this.groupsData=null;else if(on(n))this.groupsData=n;else throw new TypeError("Data must implement the interface of DataSet or DataView");if(this.groupsData){var l,d=this.groupsData.getDataSet();G(l=d.get()).call(l,function(f){if(f.nestedGroups){var v;G(v=f.nestedGroups).call(v,function(m){var g=d.get(m);g.nestedInGroup=f.id,f.showNested==!1&&(g.visible=!1),d.update(g)})}});var c=this.id;G(x).call(x,this.groupListeners,function(f,v){s.groupsData.on(v,f,c)}),o=this.groupsData.getIds(),this._onAddGroups(o)}this._updateUngrouped(),this._order(),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems(),this.markDirty({refreshItems:!0,restackGroups:!0})),this.body.emitter.emit("_change",{queue:!0})}},{key:"getGroups",value:function(){return this.groupsData}},{key:"removeItem",value:function(n){var s=this,o=this.itemsData.get(n);o&&this.options.onRemove(o,function(l){l&&s.itemsData.remove(n)})}},{key:"_getType",value:function(n){return n.type||this.options.type||(n.end?"range":"box")}},{key:"getGroupId",value:function(n){var s=this._getType(n);return s=="background"&&n.group==null?_n:this.groupsData?n.group:Bi}},{key:"_onUpdate",value:function(n){var s=this,o=this;G(n).call(n,function(l){var d=o.itemsData.get(l),c=o.items[l],f=d?o._getType(d):null,v=r.types[f],m;if(c&&(!v||!(c instanceof v)?(m=c.selected,o._removeItem(c),c=null):o._updateItem(c,d)),!c&&d)if(v)c=new v(d,o.conversion,o.options),c.id=l,o._addItem(c),m&&(s.selection.push(l),c.select());else throw new TypeError('Unknown item type "'.concat(f,'"'))}),this._order(),this.options.cluster&&(this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this._clusterItems()),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemove",value:function(n){var s=0,o=this;G(n).call(n,function(l){var d=o.items[l];d&&(s++,o._removeItem(d))}),s&&(this._order(),this.body.emitter.emit("_change",{queue:!0}))}},{key:"_order",value:function(){G(x).call(x,this.groups,function(n){n.order()})}},{key:"_onUpdateGroups",value:function(n){this._onAddGroups(n)}},{key:"_onAddGroups",value:function(n){var s=this;G(n).call(n,function(o){var l=s.groupsData.get(o),d=s.groups[o];if(d)d.setData(l);else{if(o==Bi||o==_n)throw new Error("Illegal group id. ".concat(o," is a reserved id."));var c=Ks(s.options);x.extend(c,{height:null}),d=new wh(o,l,s),s.groups[o]=d;for(var f in s.items)if(s.items.hasOwnProperty(f)){var v=s.items[f];v.data.group==o&&d.add(v)}d.order(),d.show()}}),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemoveGroups",value:function(n){var s=this;G(n).call(n,function(o){var l=s.groups[o];l&&(l.dispose(),delete s.groups[o])}),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems()),this.markDirty({restackGroups:!!this.options.cluster}),this.body.emitter.emit("_change",{queue:!0})}},{key:"_orderGroups",value:function(){if(this.groupsData){var n=this.groupsData.getIds({order:this.options.groupOrder});n=this._orderNestedGroups(n);var s=!x.equalArray(n,this.groupIds);if(s){var o=this.groups;G(n).call(n,function(l){o[l].hide()}),G(n).call(n,function(l){o[l].show()}),this.groupIds=n}return s}else return!1}},{key:"_orderNestedGroups",value:function(n){var s=this;function o(d,c){var f=[];return G(c).call(c,function(v){f.push(v);var m=d.groupsData.get(v);if(m.nestedGroups){var g,b=Se(g=d.groupsData.get({filter:function(w){return w.nestedInGroup==v},order:d.options.groupOrder})).call(g,function(S){return S.id});f=Me(f).call(f,o(d,b))}}),f}var l=te(n).call(n,function(d){return!s.groupsData.get(d).nestedInGroup});return o(this,l)}},{key:"_addItem",value:function(n){this.items[n.id]=n;var s=this.getGroupId(n.data),o=this.groups[s];o?o&&o.data&&o.data.showNested&&(n.groupShowing=!0):n.groupShowing=!1,o&&o.add(n)}},{key:"_updateItem",value:function(n,s){n.setData(s);var o=this.getGroupId(n.data),l=this.groups[o];l?l&&l.data&&l.data.showNested&&(n.groupShowing=!0):n.groupShowing=!1}},{key:"_removeItem",value:function(n){var s,o;n.hide(),delete this.items[n.id];var l=Ce(s=this.selection).call(s,n.id);l!=-1&&xt(o=this.selection).call(o,l,1),n.parent&&n.parent.remove(n),this.popup!=null&&this.popup.hide()}},{key:"_constructByEndArray",value:function(n){for(var s=[],o=0;o<n.length;o++)n[o]instanceof vi&&s.push(n[o]);return s}},{key:"_onTouch",value:function(n){this.touchParams.item=this.itemFromTarget(n),this.touchParams.dragLeftItem=n.target.dragLeftItem||!1,this.touchParams.dragRightItem=n.target.dragRightItem||!1,this.touchParams.itemProps=null}},{key:"_getGroupIndex",value:function(n){for(var s=0;s<this.groupIds.length;s++)if(n==this.groupIds[s])return s}},{key:"_onDragStart",value:function(n){var s=this;if(!this.touchParams.itemIsDragging){var o=this.touchParams.item||null,l=this,d;if(o&&(o.selected||this.options.itemsAlwaysDraggable.item)){if(this.options.editable.overrideItems&&!this.options.editable.updateTime&&!this.options.editable.updateGroup||o.editable!=null&&!o.editable.updateTime&&!o.editable.updateGroup&&!this.options.editable.overrideItems)return;var c=this.touchParams.dragLeftItem,f=this.touchParams.dragRightItem;if(this.touchParams.itemIsDragging=!0,this.touchParams.selectedItem=o,c)d={item:c,initialX:n.center.x,dragLeft:!0,data:this._cloneItemData(o.data)},this.touchParams.itemProps=[d];else if(f)d={item:f,initialX:n.center.x,dragRight:!0,data:this._cloneItemData(o.data)},this.touchParams.itemProps=[d];else if(this.options.editable.add&&(n.srcEvent.ctrlKey||n.srcEvent.metaKey))this._onDragStartAddItem(n);else{this.groupIds.length<1&&this.redraw();var v=this._getGroupIndex(o.data.group),m=this.options.itemsAlwaysDraggable.item&&!o.selected?[o.id]:this.getSelection();this.touchParams.itemProps=Se(m).call(m,function(g){var b=l.items[g],S=l._getGroupIndex(b.data.group);return{item:b,initialX:n.center.x,groupOffset:v-S,data:s._cloneItemData(b.data)}})}n.stopPropagation()}else this.options.editable.add&&(n.srcEvent.ctrlKey||n.srcEvent.metaKey)&&this._onDragStartAddItem(n)}}},{key:"_onDragStartAddItem",value:function(n){var s=this.options.snap||null,o=this.dom.frame.getBoundingClientRect(),l=this.options.rtl?o.right-n.center.x+10:n.center.x-o.left-10,d=this.body.util.toTime(l),c=this.body.util.getScale(),f=this.body.util.getStep(),v=s?s(d,c,f):d,m=v,g={type:"range",start:v,end:m,content:"new item"},b=ai();g[this.itemsData.idProp]=b;var S=this.groupFromTarget(n);S&&(g.group=S.groupId);var w=new vi(g,this.conversion,this.options);w.id=b,w.data=this._cloneItemData(g),this._addItem(w),this.touchParams.selectedItem=w;var k={item:w,initialX:n.center.x,data:w.data};this.options.rtl?k.dragLeft=!0:k.dragRight=!0,this.touchParams.itemProps=[k],n.stopPropagation()}},{key:"_onDrag",value:function(n){var s=this;if(this.popup!=null&&this.options.showTooltips&&!this.popup.hidden){var o=this.body.dom.centerContainer,l=o.getBoundingClientRect();this.popup.setPosition(n.center.x-l.left+o.offsetLeft,n.center.y-l.top+o.offsetTop),this.popup.show()}if(this.touchParams.itemProps){var d;n.stopPropagation();var c=this,f=this.options.snap||null,v=this.body.dom.root.offsetLeft,m=this.options.rtl?v+this.body.domProps.right.width:v+this.body.domProps.left.width,g=this.body.util.getScale(),b=this.body.util.getStep(),S=this.touchParams.selectedItem,w=(this.options.editable.overrideItems||S.editable==null)&&this.options.editable.updateGroup||!this.options.editable.overrideItems&&S.editable!=null&&S.editable.updateGroup,k=null;if(w&&S&&S.data.group!=null){var T=c.groupFromTarget(n);T&&(k=this._getGroupIndex(T.groupId))}G(d=this.touchParams.itemProps).call(d,function(D){var N=c.body.util.toTime(n.center.x-m),L=c.body.util.toTime(D.initialX-m),A,R,C,j,O;s.options.rtl?A=-(N-L):A=N-L;var M=s._cloneItemData(D.item.data);if(!(D.item.editable!=null&&!D.item.editable.updateTime&&!D.item.editable.updateGroup&&!c.options.editable.overrideItems)){var H=(s.options.editable.overrideItems||S.editable==null)&&s.options.editable.updateTime||!s.options.editable.overrideItems&&S.editable!=null&&S.editable.updateTime;if(H){if(D.dragLeft)s.options.rtl?M.end!=null&&(C=x.convert(D.data.end,"Date"),O=new Date(C.valueOf()+A),M.end=f?f(O,g,b):O):M.start!=null&&(R=x.convert(D.data.start,"Date"),j=new Date(R.valueOf()+A),M.start=f?f(j,g,b):j);else if(D.dragRight)s.options.rtl?M.start!=null&&(R=x.convert(D.data.start,"Date"),j=new Date(R.valueOf()+A),M.start=f?f(j,g,b):j):M.end!=null&&(C=x.convert(D.data.end,"Date"),O=new Date(C.valueOf()+A),M.end=f?f(O,g,b):O);else if(M.start!=null)if(R=x.convert(D.data.start,"Date").valueOf(),j=new Date(R+A),M.end!=null){C=x.convert(D.data.end,"Date");var z=C.valueOf()-R.valueOf();M.start=f?f(j,g,b):j,M.end=new Date(M.start.valueOf()+z)}else M.start=f?f(j,g,b):j}if(w&&!D.dragLeft&&!D.dragRight&&k!=null&&M.group!=null){var se=k-D.groupOffset;se=Math.max(0,se),se=Math.min(c.groupIds.length-1,se),M.group=c.groupIds[se]}M=s._cloneItemData(M),c.options.onMoving(M,function(_e){_e&&D.item.setData(s._cloneItemData(_e,"Date"))})}}),this.body.emitter.emit("_change")}}},{key:"_moveToGroup",value:function(n,s){var o=this.groups[s];if(o&&o.groupId!=n.data.group){var l=n.parent;l.remove(n),l.order(),n.data.group=o.groupId,o.add(n),o.order()}}},{key:"_onDragEnd",value:function(n){var s=this;if(this.touchParams.itemIsDragging=!1,this.touchParams.itemProps){n.stopPropagation();var o=this,l=this.touchParams.itemProps;this.touchParams.itemProps=null,G(l).call(l,function(d){var c=d.item.id,f=o.itemsData.get(c)!=null;if(!f)o.options.onAdd(d.item.data,function(m){o._removeItem(d.item),m&&o.itemsData.add(m),o.body.emitter.emit("_change")});else{var v=s._cloneItemData(d.item.data);o.options.onMove(v,function(m){m?(m[s.itemsData.idProp]=c,s.itemsData.update(m)):(d.item.setData(d.data),o.body.emitter.emit("_change"))})}})}}},{key:"_onGroupClick",value:function(n){var s=this,o=this.groupFromTarget(n);_t(function(){s.toggleGroupShowNested(o)},1)}},{key:"toggleGroupShowNested",value:function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;if(!(!n||!n.nestedGroups)){var o=this.groupsData.getDataSet();s!=null?n.showNested=!!s:n.showNested=!n.showNested;var l=o.get(n.groupId);l.showNested=n.showNested;for(var d=n.nestedGroups,c=d;c.length>0;){var f=c;c=[];for(var v=0;v<f.length;v++){var m=o.get(f[v]);m.nestedGroups&&(c=Me(c).call(c,m.nestedGroups))}c.length>0&&(d=Me(d).call(d,c))}var g;if(l.showNested){for(var b=o.get(l.nestedGroups),S=0;S<b.length;S++){var w=b[S];w.nestedGroups&&w.nestedGroups.length>0&&(w.showNested==null||w.showNested==!0)&&b.push.apply(b,Fe(o.get(w.nestedGroups)))}g=Se(b).call(b,function(T){return T.visible==null&&(T.visible=!0),T.visible=!!l.showNested,T})}else{var k;g=Se(k=o.get(d)).call(k,function(T){return T.visible==null&&(T.visible=!0),T.visible=!!l.showNested,T})}o.update(Me(g).call(g,l)),l.showNested?(x.removeClassName(n.dom.label,"collapsed"),x.addClassName(n.dom.label,"expanded")):(x.removeClassName(n.dom.label,"expanded"),x.addClassName(n.dom.label,"collapsed"))}}},{key:"toggleGroupDragClassName",value:function(n){n.dom.label.classList.toggle("vis-group-is-dragging"),n.dom.foreground.classList.toggle("vis-group-is-dragging")}},{key:"_onGroupDragStart",value:function(n){this.groupTouchParams.isDragging||this.options.groupEditable.order&&(this.groupTouchParams.group=this.groupFromTarget(n),this.groupTouchParams.group&&(n.stopPropagation(),this.groupTouchParams.isDragging=!0,this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.originalOrder=this.groupsData.getIds({order:this.options.groupOrder})))}},{key:"_onGroupDrag",value:function(n){if(this.options.groupEditable.order&&this.groupTouchParams.group){n.stopPropagation();var s=this.groupsData.getDataSet(),o=this.groupFromTarget(n);if(o&&o.height!=this.groupTouchParams.group.height){var l=o.top<this.groupTouchParams.group.top,d=n.center?n.center.y:n.clientY,c=o.dom.foreground.getBoundingClientRect(),f=this.groupTouchParams.group.height;if(l){if(c.top+f<d)return}else{var v=o.height;if(c.top+v-f>d)return}}if(o&&o!=this.groupTouchParams.group){var m=s.get(o.groupId),g=s.get(this.groupTouchParams.group.groupId);g&&m&&(this.options.groupOrderSwap(g,m,s),s.update(g),s.update(m));var b=s.getIds({order:this.options.groupOrder});if(!x.equalArray(b,this.groupTouchParams.originalOrder))for(var S=this.groupTouchParams.originalOrder,w=this.groupTouchParams.group.groupId,k=Math.min(S.length,b.length),T=0,D=0,N=0;T<k;){for(;T+D<k&&T+N<k&&b[T+D]==S[T+N];)T++;if(T+D>=k)break;if(b[T+D]==w)D=1;else if(S[T+N]==w)N=1;else{var L=Ce(b).call(b,S[T+N]),A=s.get(b[T+D]),R=s.get(S[T+N]);this.options.groupOrderSwap(A,R,s),s.update(A),s.update(R);var C=b[T+D];b[T+D]=S[T+N],b[L]=C,T++}}}}}},{key:"_onGroupDragEnd",value:function(n){if(this.groupTouchParams.isDragging=!1,this.options.groupEditable.order&&this.groupTouchParams.group){n.stopPropagation();var s=this,o=s.groupTouchParams.group.groupId,l=s.groupsData.getDataSet(),d=x.extend({},l.get(o));s.options.onMoveGroup(d,function(c){if(c)c[l._idProp]=o,l.update(c);else{var f=l.getIds({order:s.options.groupOrder});if(!x.equalArray(f,s.groupTouchParams.originalOrder))for(var v=s.groupTouchParams.originalOrder,m=Math.min(v.length,f.length),g=0;g<m;){for(;g<m&&f[g]==v[g];)g++;if(g>=m)break;var b=Ce(f).call(f,v[g]),S=l.get(f[g]),w=l.get(v[g]);s.options.groupOrderSwap(S,w,l),l.update(S),l.update(w);var k=f[g];f[g]=v[g],f[b]=k,g++}}}),s.body.emitter.emit("groupDragged",{groupId:o}),this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.group=null}}},{key:"_onSelectItem",value:function(n){if(this.options.selectable){var s=n.srcEvent&&(n.srcEvent.ctrlKey||n.srcEvent.metaKey),o=n.srcEvent&&n.srcEvent.shiftKey;if(s||o){this._onMultiSelectItem(n);return}var l=this.getSelection(),d=this.itemFromTarget(n),c=d&&d.selectable?[d.id]:[];this.setSelection(c);var f=this.getSelection();(f.length>0||l.length>0)&&this.body.emitter.emit("select",{items:f,event:n})}}},{key:"_onMouseOver",value:function(n){var s=this.itemFromTarget(n);if(s){var o=this.itemFromRelatedTarget(n);if(s!==o){var l=s.getTitle();if(this.options.showTooltips&&l){this.popup==null&&(this.popup=new JZ(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(l);var d=this.body.dom.centerContainer,c=d.getBoundingClientRect();this.popup.setPosition(n.clientX-c.left+d.offsetLeft,n.clientY-c.top+d.offsetTop),this.setPopupTimer(this.popup)}else this.clearPopupTimer(),this.popup!=null&&this.popup.hide();this.body.emitter.emit("itemover",{item:s.id,event:n})}}}},{key:"_onMouseOut",value:function(n){var s=this.itemFromTarget(n);if(s){var o=this.itemFromRelatedTarget(n);s!==o&&(this.clearPopupTimer(),this.popup!=null&&this.popup.hide(),this.body.emitter.emit("itemout",{item:s.id,event:n}))}}},{key:"_onMouseMove",value:function(n){var s=this.itemFromTarget(n);if(s&&(this.popupTimer!=null&&this.setPopupTimer(this.popup),this.options.showTooltips&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden)){var o=this.body.dom.centerContainer,l=o.getBoundingClientRect();this.popup.setPosition(n.clientX-l.left+o.offsetLeft,n.clientY-l.top+o.offsetTop),this.popup.show()}}},{key:"_onMouseWheel",value:function(n){this.touchParams.itemIsDragging&&this._onDragEnd(n)}},{key:"_onUpdateItem",value:function(n){if(this.options.selectable&&!(!this.options.editable.updateTime&&!this.options.editable.updateGroup)){var s=this;if(n){var o=s.itemsData.get(n.id);this.options.onUpdate(o,function(l){l&&s.itemsData.update(l)})}}}},{key:"_onDropObjectOnItem",value:function(n){var s=this.itemFromTarget(n),o=JSON.parse(n.dataTransfer.getData("text"));this.options.onDropObjectOnItem(o,s)}},{key:"_onAddItem",value:function(n){if(this.options.selectable&&this.options.editable.add){var s=this,o=this.options.snap||null,l=this.dom.frame.getBoundingClientRect(),d=this.options.rtl?l.right-n.center.x:n.center.x-l.left,c=this.body.util.toTime(d),f=this.body.util.getScale(),v=this.body.util.getStep(),m,g;n.type=="drop"?(g=JSON.parse(n.dataTransfer.getData("text")),g.content=g.content?g.content:"new item",g.start=g.start?g.start:o?o(c,f,v):c,g.type=g.type||"box",g[this.itemsData.idProp]=g.id||ai(),g.type=="range"&&!g.end&&(m=this.body.util.toTime(d+this.props.width/5),g.end=o?o(m,f,v):m)):(g={start:o?o(c,f,v):c,content:"new item"},g[this.itemsData.idProp]=ai(),this.options.type==="range"&&(m=this.body.util.toTime(d+this.props.width/5),g.end=o?o(m,f,v):m));var b=this.groupFromTarget(n);b&&(g.group=b.groupId),g=this._cloneItemData(g),this.options.onAdd(g,function(S){S&&(s.itemsData.add(S),n.type=="drop"&&s.setSelection([S.id]))})}}},{key:"_onMultiSelectItem",value:function(n){var s=this;if(this.options.selectable){var o=this.itemFromTarget(n);if(o){var l=this.options.multiselect?this.getSelection():[],d=n.srcEvent&&n.srcEvent.shiftKey||!1;if((d||this.options.sequentialSelection)&&this.options.multiselect){var c=this.itemsData.get(o.id).group,f=void 0;this.options.multiselectPerGroup&&l.length>0&&(f=this.itemsData.get(l[0]).group),(!this.options.multiselectPerGroup||f==null||f==c)&&l.push(o.id);var v=r._getItemRange(this.itemsData.get(l));if(!this.options.multiselectPerGroup||f==c){l=[];for(var m in this.items)if(this.items.hasOwnProperty(m)){var g=this.items[m],b=g.data.start,S=g.data.end!==void 0?g.data.end:b;b>=v.min&&S<=v.max&&(!this.options.multiselectPerGroup||f==this.itemsData.get(g.id).group)&&!(g instanceof xi)&&l.push(g.id)}}}else{var w=Ce(l).call(l,o.id);w==-1?l.push(o.id):xt(l).call(l,w,1)}var k=te(l).call(l,function(T){return s.getItemById(T).selectable});this.setSelection(k),this.body.emitter.emit("select",{items:this.getSelection(),event:n})}}}},{key:"itemFromElement",value:function(n){for(var s=n;s;){if(s.hasOwnProperty("vis-item"))return s["vis-item"];s=s.parentNode}return null}},{key:"itemFromTarget",value:function(n){return this.itemFromElement(n.target)}},{key:"itemFromRelatedTarget",value:function(n){return this.itemFromElement(n.relatedTarget)}},{key:"groupFromTarget",value:function(n){var s=n.center?n.center.y:n.clientY,o=this.groupIds;o.length<=0&&this.groupsData&&(o=this.groupsData.getIds({order:this.options.groupOrder}));for(var l=0;l<o.length;l++){var d=o[l],c=this.groups[d],f=c.dom.foreground,v=f.getBoundingClientRect();if(s>=v.top&&s<v.top+f.offsetHeight)return c;if(this.options.orientation.item==="top"){if(l===this.groupIds.length-1&&s>v.top)return c}else if(l===0&&s<v.top+f.offset)return c}return null}},{key:"_cloneItemData",value:function(n,s){var o=x.extend({},n);return s||(s=this.itemsData.type),o.start!=null&&(o.start=x.convert(o.start,s&&s.start||"Date")),o.end!=null&&(o.end=x.convert(o.end,s&&s.end||"Date")),o}},{key:"_clusterItems",value:function(){if(this.options.cluster){var n=this.body.range.conversion(this.body.domProps.center.width),s=n.scale,o=this.clusterGenerator.getClusters(this.clusters,s,this.options.cluster);if(this.clusters!=o){if(this._detachAllClusters(),o){var l=Un(o),d;try{for(l.s();!(d=l.n()).done;){var c=d.value;c.attach()}}catch(f){l.e(f)}finally{l.f()}this.clusters=o}this._updateClusters(o)}}}},{key:"_detachAllClusters",value:function(){if(this.options.cluster&&this.clusters&&this.clusters.length){var n=Un(this.clusters),s;try{for(n.s();!(s=n.n()).done;){var o=s.value;o.detach()}}catch(l){n.e(l)}finally{n.f()}}}},{key:"_updateClusters",value:function(n){if(this.clusters&&this.clusters.length){var s,o=new xn(Se(n).call(n,function(w){return w.id})),l=te(s=this.clusters).call(s,function(w){return!o.has(w.id)}),d=!1,c=Un(l),f;try{for(c.s();!(f=c.n()).done;){var v,m=f.value,g=Ce(v=this.selection).call(v,m.id);if(g!==-1){var b;m.unselect(),xt(b=this.selection).call(b,g,1),d=!0}}}catch(w){c.e(w)}finally{c.f()}if(d){var S=this.getSelection();this.body.emitter.emit("select",{items:S,event})}}this.clusters=n||[]}}],[{key:"_getItemRange",value:function(n){var s=null,o=null;return G(n).call(n,function(l){(o==null||l.start<o)&&(o=l.start),l.end!=null?(s==null||l.end>s)&&(s=l.end):(s==null||l.start>s)&&(s=l.start)}),{min:o,max:s}}},{key:"itemSetFromTarget",value:function(n){for(var s=n.target;s;){if(s.hasOwnProperty("vis-itemset"))return s["vis-itemset"];s=s.parentNode}return null}}]),r}(Fn);Ll.types={background:xi,box:WZ,range:vi,point:UZ};Ll.prototype._onAdd=Ll.prototype._onUpdate;var rs=!1,qy,Vl="background: #FFeeee; color: #dd0000",D1=function(){function e(){fe(this,e)}return pe(e,null,[{key:"validate",value:function(r,a,n){rs=!1,qy=a;var s=a;return n!==void 0&&(s=a[n]),e.parse(r,s,[]),rs}},{key:"parse",value:function(r,a,n){for(var s in r)r.hasOwnProperty(s)&&e.check(s,r,a,n)}},{key:"check",value:function(r,a,n,s){if(n[r]===void 0&&n.__any__===void 0){e.getSuggestion(r,n,s);return}var o=r,l=!0;n[r]===void 0&&n.__any__!==void 0&&(o="__any__",l=e.getType(a[r])==="object");var d=n[o];l&&d.__type__!==void 0&&(d=d.__type__),e.checkFields(r,a,n,o,d,s)}},{key:"checkFields",value:function(r,a,n,s,o,l){var d=function(m){console.log("%c"+m+e.printLocation(l,r),Vl)},c=e.getType(a[r]),f=o[c];f!==void 0?e.getType(f)==="array"&&Ce(f).call(f,a[r])===-1?(d('Invalid option detected in "'+r+'". Allowed values are:'+e.print(f)+' not "'+a[r]+'". '),rs=!0):c==="object"&&s!=="__any__"&&(l=x.copyAndExtendArray(l,r),e.parse(a[r],n[s],l)):o.any===void 0&&(d('Invalid type received for "'+r+'". Expected: '+e.print(st(o))+". Received ["+c+'] "'+a[r]+'"'),rs=!0)}},{key:"getType",value:function(r){var a=ne(r);return a==="object"?r===null?"null":r instanceof Boolean?"boolean":r instanceof Number?"number":r instanceof String?"string":ae(r)?"array":r instanceof Date?"date":r.nodeType!==void 0?"dom":r._isAMomentObject===!0?"moment":"object":a==="number"?"number":a==="boolean"?"boolean":a==="string"?"string":a===void 0?"undefined":a}},{key:"getSuggestion",value:function(r,a,n){var s=e.findInOptions(r,a,n,!1),o=e.findInOptions(r,qy,[],!0),l=8,d=4,c;s.indexMatch!==void 0?c=" in "+e.printLocation(s.path,r,"")+'Perhaps it was incomplete? Did you mean: "'+s.indexMatch+`"?
884
+
885
+ `:o.distance<=d&&s.distance>o.distance?c=" in "+e.printLocation(s.path,r,"")+"Perhaps it was misplaced? Matching option found at: "+e.printLocation(o.path,o.closestMatch,""):s.distance<=l?c='. Did you mean "'+s.closestMatch+'"?'+e.printLocation(s.path,r):c=". Did you mean one of these: "+e.print(st(a))+e.printLocation(n,r),console.log('%cUnknown option detected: "'+r+'"'+c,Vl),rs=!0}},{key:"findInOptions",value:function(r,a,n){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=1e9,l="",d=[],c=r.toLowerCase(),f=void 0;for(var v in a){var m=void 0;if(a[v].__type__!==void 0&&s===!0){var g=e.findInOptions(r,a[v],x.copyAndExtendArray(n,v));o>g.distance&&(l=g.closestMatch,d=g.path,o=g.distance,f=g.indexMatch)}else{var b;Ce(b=v.toLowerCase()).call(b,c)!==-1&&(f=v),m=e.levenshteinDistance(r,v),o>m&&(l=v,d=x.copyArray(n),o=m)}}return{closestMatch:l,path:d,distance:o,indexMatch:f}}},{key:"printLocation",value:function(r,a){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at:
886
+ `,s=`
887
+
888
+ `+n+`options = {
889
+ `,o=0;o<r.length;o++){for(var l=0;l<o+1;l++)s+=" ";s+=r[o]+`: {
890
+ `}for(var d=0;d<r.length+1;d++)s+=" ";s+=a+`
891
+ `;for(var c=0;c<r.length+1;c++){for(var f=0;f<r.length-c;f++)s+=" ";s+=`}
892
+ `}return s+`
893
+
894
+ `}},{key:"print",value:function(r){return Ft(r).replace(/(\")|(\[)|(\])|(,"__type__")/g,"").replace(/(\,)/g,", ")}},{key:"levenshteinDistance",value:function(r,a){if(r.length===0)return a.length;if(a.length===0)return r.length;var n=[],s;for(s=0;s<=a.length;s++)n[s]=[s];var o;for(o=0;o<=r.length;o++)n[0][o]=o;for(s=1;s<=a.length;s++)for(o=1;o<=r.length;o++)a.charAt(s-1)==r.charAt(o-1)?n[s][o]=n[s-1][o-1]:n[s][o]=Math.min(n[s-1][o-1]+1,Math.min(n[s][o-1]+1,n[s-1][o]+1));return n[a.length][r.length]}}]),e}(),le="string",oe="boolean",Pe="number",Xy="array",Hi="date",Qe="object",TJ="dom",Wi="moment",Qy="any",$J={configure:{enabled:{boolean:oe},filter:{boolean:oe,function:"function"},container:{dom:TJ},__type__:{object:Qe,boolean:oe,function:"function"}},align:{string:le},alignCurrentTime:{string:le,undefined:"undefined"},rtl:{boolean:oe,undefined:"undefined"},rollingMode:{follow:{boolean:oe},offset:{number:Pe,undefined:"undefined"},__type__:{object:Qe}},onTimeout:{timeoutMs:{number:Pe},callback:{function:"function"},__type__:{object:Qe}},verticalScroll:{boolean:oe,undefined:"undefined"},horizontalScroll:{boolean:oe,undefined:"undefined"},autoResize:{boolean:oe},throttleRedraw:{number:Pe},clickToUse:{boolean:oe},dataAttributes:{string:le,array:Xy},editable:{add:{boolean:oe,undefined:"undefined"},remove:{boolean:oe,undefined:"undefined"},updateGroup:{boolean:oe,undefined:"undefined"},updateTime:{boolean:oe,undefined:"undefined"},overrideItems:{boolean:oe,undefined:"undefined"},__type__:{boolean:oe,object:Qe}},end:{number:Pe,date:Hi,string:le,moment:Wi},format:{minorLabels:{millisecond:{string:le,undefined:"undefined"},second:{string:le,undefined:"undefined"},minute:{string:le,undefined:"undefined"},hour:{string:le,undefined:"undefined"},weekday:{string:le,undefined:"undefined"},day:{string:le,undefined:"undefined"},week:{string:le,undefined:"undefined"},month:{string:le,undefined:"undefined"},year:{string:le,undefined:"undefined"},__type__:{object:Qe,function:"function"}},majorLabels:{millisecond:{string:le,undefined:"undefined"},second:{string:le,undefined:"undefined"},minute:{string:le,undefined:"undefined"},hour:{string:le,undefined:"undefined"},weekday:{string:le,undefined:"undefined"},day:{string:le,undefined:"undefined"},week:{string:le,undefined:"undefined"},month:{string:le,undefined:"undefined"},year:{string:le,undefined:"undefined"},__type__:{object:Qe,function:"function"}},__type__:{object:Qe}},moment:{function:"function"},groupHeightMode:{string:le},groupOrder:{string:le,function:"function"},groupEditable:{add:{boolean:oe,undefined:"undefined"},remove:{boolean:oe,undefined:"undefined"},order:{boolean:oe,undefined:"undefined"},__type__:{boolean:oe,object:Qe}},groupOrderSwap:{function:"function"},height:{string:le,number:Pe},hiddenDates:{start:{date:Hi,number:Pe,string:le,moment:Wi},end:{date:Hi,number:Pe,string:le,moment:Wi},repeat:{string:le},__type__:{object:Qe,array:Xy}},itemsAlwaysDraggable:{item:{boolean:oe,undefined:"undefined"},range:{boolean:oe,undefined:"undefined"},__type__:{boolean:oe,object:Qe}},limitSize:{boolean:oe},locale:{string:le},locales:{__any__:{any:Qy},__type__:{object:Qe}},longSelectPressTime:{number:Pe},margin:{axis:{number:Pe},item:{horizontal:{number:Pe,undefined:"undefined"},vertical:{number:Pe,undefined:"undefined"},__type__:{object:Qe,number:Pe}},__type__:{object:Qe,number:Pe}},max:{date:Hi,number:Pe,string:le,moment:Wi},maxHeight:{number:Pe,string:le},maxMinorChars:{number:Pe},min:{date:Hi,number:Pe,string:le,moment:Wi},minHeight:{number:Pe,string:le},moveable:{boolean:oe},multiselect:{boolean:oe},multiselectPerGroup:{boolean:oe},onAdd:{function:"function"},onDropObjectOnItem:{function:"function"},onUpdate:{function:"function"},onMove:{function:"function"},onMoving:{function:"function"},onRemove:{function:"function"},onAddGroup:{function:"function"},onMoveGroup:{function:"function"},onRemoveGroup:{function:"function"},onInitialDrawComplete:{function:"function"},order:{function:"function"},orientation:{axis:{string:le,undefined:"undefined"},item:{string:le,undefined:"undefined"},__type__:{string:le,object:Qe}},selectable:{boolean:oe},sequentialSelection:{boolean:oe},showCurrentTime:{boolean:oe},showMajorLabels:{boolean:oe},showMinorLabels:{boolean:oe},showWeekScale:{boolean:oe},stack:{boolean:oe},stackSubgroups:{boolean:oe},cluster:{maxItems:{number:Pe,undefined:"undefined"},titleTemplate:{string:le,undefined:"undefined"},clusterCriteria:{function:"function",undefined:"undefined"},showStipes:{boolean:oe,undefined:"undefined"},fitOnDoubleClick:{boolean:oe,undefined:"undefined"},__type__:{boolean:oe,object:Qe}},snap:{function:"function",null:"null"},start:{date:Hi,number:Pe,string:le,moment:Wi},template:{function:"function"},loadingScreenTemplate:{function:"function"},groupTemplate:{function:"function"},visibleFrameTemplate:{string:le,function:"function"},showTooltips:{boolean:oe},tooltip:{followMouse:{boolean:oe},overflowMethod:{string:["cap","flip","none"]},delay:{number:Pe},template:{function:"function"},__type__:{object:Qe}},tooltipOnItemUpdateTime:{template:{function:"function"},__type__:{boolean:oe,object:Qe}},timeAxis:{scale:{string:le,undefined:"undefined"},step:{number:Pe,undefined:"undefined"},__type__:{object:Qe}},type:{string:le},width:{string:le,number:Pe},preferZoom:{boolean:oe},zoomable:{boolean:oe},zoomKey:{string:["ctrlKey","altKey","shiftKey","metaKey",""]},zoomFriction:{number:Pe},zoomMax:{number:Pe},zoomMin:{number:Pe},xss:{disabled:{boolean:oe},filterOptions:{__any__:{any:Qy},__type__:{object:Qe}},__type__:{object:Qe}},__type__:{object:Qe}},DJ={global:{align:["center","left","right"],alignCurrentTime:["none","year","month","quarter","week","isoWeek","day","date","hour","minute","second"],direction:!1,autoResize:!0,clickToUse:!1,editable:{add:!1,remove:!1,updateGroup:!1,updateTime:!1},end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",year:""}},groupHeightMode:["auto","fixed","fitItems"],groupsDraggable:!1,height:"",locale:"",longSelectPressTime:251,margin:{axis:[20,0,100,1],item:{horizontal:[10,0,100,1],vertical:[10,0,100,1]}},max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!1,multiselect:!1,multiselectPerGroup:!1,orientation:{axis:["both","bottom","top"],item:["bottom","top"]},preferZoom:!1,selectable:!0,showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,stack:!0,stackSubgroups:!0,cluster:!1,start:"",showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:[500,0,99999,100]},tooltipOnItemUpdateTime:!1,type:["box","point","range","background"],width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","shiftKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],xss:{disabled:!1}}},NJ={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},CJ=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;fe(this,e),this.pixelRatio=t,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return pe(e,[{key:"insertTo",value:function(r){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=r,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(r){if(typeof r=="function")this.updateCallback=r;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(r){if(typeof r=="function")this.closeCallback=r;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(r){if(typeof r=="string")return NJ[r]}},{key:"setColor",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(r!=="none"){var n,s=this._isColorString(r);if(s!==void 0&&(r=s),x.isString(r)===!0){if(x.isValidRGB(r)===!0){var o=r.substr(4).substr(0,r.length-5).split(",");n={r:o[0],g:o[1],b:o[2],a:1}}else if(x.isValidRGBA(r)===!0){var l=r.substr(5).substr(0,r.length-6).split(",");n={r:l[0],g:l[1],b:l[2],a:l[3]}}else if(x.isValidHex(r)===!0){var d=x.hexToRGB(r);n={r:d.r,g:d.g,b:d.b,a:1}}}else if(r instanceof Object&&r.r!==void 0&&r.g!==void 0&&r.b!==void 0){var c=r.a!==void 0?r.a:"1.0";n={r:r.r,g:r.g,b:r.b,a:c}}if(n===void 0)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Ft(r));this._setColor(n,a)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var r=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;a===!0&&(this.previousColor=x.extend({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",_t(function(){r.closeCallback!==void 0&&(r.closeCallback(),r.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;a===!0&&(this.initialColor=x.extend({},r)),this.color=r;var n=x.RGBToHSV(r.r,r.g,r.b),s=2*Math.PI,o=this.r*n.s,l=this.centerCoordinates.x+o*Math.sin(s*n.h),d=this.centerCoordinates.y+o*Math.cos(s*n.h);this.colorPickerSelector.style.left=l-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=d-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(r)}},{key:"_setOpacity",value:function(r){this.color.a=r/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(r){var a=x.RGBToHSV(this.color.r,this.color.g,this.color.b);a.v=r/100;var n=x.HSVToRGB(a.h,a.s,a.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,a=x.RGBToHSV(r.r,r.g,r.b),n=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var s=this.colorPickerCanvas.clientWidth,o=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,s,o),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-a.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),uw(n).call(n),this.brightnessRange.value=100*a.v,this.opacityRange.value=100*r.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var r,a,n,s;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var l=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(l.webkitBackingStorePixelRatio||l.mozBackingStorePixelRatio||l.msBackingStorePixelRatio||l.oBackingStorePixelRatio||l.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch{}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch{}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var d=this;this.opacityRange.onchange=function(){d._setOpacity(this.value)},this.opacityRange.oninput=function(){d._setOpacity(this.value)},this.brightnessRange.onchange=function(){d._setBrightness(this.value)},this.brightnessRange.oninput=function(){d._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerHTML="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerHTML="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerHTML="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerHTML="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerHTML="cancel",this.cancelButton.onclick=P(r=this._hide).call(r,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=P(a=this._apply).call(a,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=P(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=P(s=this._loadLast).call(s,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var r=this;this.drag={},this.pinch={},this.hammer=new kt(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),p1(this.hammer,function(a){r._moveSelector(a)}),this.hammer.on("tap",function(a){r._moveSelector(a)}),this.hammer.on("panstart",function(a){r._moveSelector(a)}),this.hammer.on("panmove",function(a){r._moveSelector(a)}),this.hammer.on("panend",function(a){r._moveSelector(a)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var r=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1)),r.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var a=this.colorPickerCanvas.clientWidth,n=this.colorPickerCanvas.clientHeight;r.clearRect(0,0,a,n);var s,o,l,d;this.centerCoordinates={x:a*.5,y:n*.5},this.r=.49*a;var c=2*Math.PI/360,f=1/360,v=1/this.r,m;for(l=0;l<360;l++)for(d=0;d<this.r;d++)s=this.centerCoordinates.x+d*Math.sin(c*l),o=this.centerCoordinates.y+d*Math.cos(c*l),m=x.HSVToRGB(l*f,d*v,1),r.fillStyle="rgb("+m.r+","+m.g+","+m.b+")",r.fillRect(s-.5,o-.5,2,2);r.strokeStyle="rgba(0,0,0,1)",r.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),r.stroke(),this.hueCircle=r.getImageData(0,0,a,n)}this.generated=!0}},{key:"_moveSelector",value:function(r){var a=this.colorPickerDiv.getBoundingClientRect(),n=r.center.x-a.left,s=r.center.y-a.top,o=.5*this.colorPickerDiv.clientHeight,l=.5*this.colorPickerDiv.clientWidth,d=n-l,c=s-o,f=Math.atan2(d,c),v=.98*Math.min(Math.sqrt(d*d+c*c),l),m=Math.cos(f)*v+o,g=Math.sin(f)*v+l;this.colorPickerSelector.style.top=m-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=g-.5*this.colorPickerSelector.clientWidth+"px";var b=f/(2*Math.PI);b=b<0?b+1:b;var S=v/this.r,w=x.RGBToHSV(this.color.r,this.color.g,this.color.b);w.h=b,w.s=S;var k=x.HSVToRGB(w.h,w.s,w.v);k.a=this.color.a,this.color=k,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),e}(),OJ=`div.vis-configuration {
895
+ position:relative;
896
+ display:block;
897
+ float:left;
898
+ font-size:12px;
899
+ }
900
+
901
+ div.vis-configuration-wrapper {
902
+ display:block;
903
+ width:700px;
904
+ }
905
+
906
+ div.vis-configuration-wrapper::after {
907
+ clear: both;
908
+ content: "";
909
+ display: block;
910
+ }
911
+
912
+ div.vis-configuration.vis-config-option-container{
913
+ display:block;
914
+ width:495px;
915
+ background-color: #ffffff;
916
+ border:2px solid #f7f8fa;
917
+ border-radius:4px;
918
+ margin-top:20px;
919
+ left:10px;
920
+ padding-left:5px;
921
+ }
922
+
923
+ div.vis-configuration.vis-config-button{
924
+ display:block;
925
+ width:495px;
926
+ height:25px;
927
+ vertical-align: middle;
928
+ line-height:25px;
929
+ background-color: #f7f8fa;
930
+ border:2px solid #ceced0;
931
+ border-radius:4px;
932
+ margin-top:20px;
933
+ left:10px;
934
+ padding-left:5px;
935
+ cursor: pointer;
936
+ margin-bottom:30px;
937
+ }
938
+
939
+ div.vis-configuration.vis-config-button.hover{
940
+ background-color: #4588e6;
941
+ border:2px solid #214373;
942
+ color:#ffffff;
943
+ }
944
+
945
+ div.vis-configuration.vis-config-item{
946
+ display:block;
947
+ float:left;
948
+ width:495px;
949
+ height:25px;
950
+ vertical-align: middle;
951
+ line-height:25px;
952
+ }
953
+
954
+
955
+ div.vis-configuration.vis-config-item.vis-config-s2{
956
+ left:10px;
957
+ background-color: #f7f8fa;
958
+ padding-left:5px;
959
+ border-radius:3px;
960
+ }
961
+ div.vis-configuration.vis-config-item.vis-config-s3{
962
+ left:20px;
963
+ background-color: #e4e9f0;
964
+ padding-left:5px;
965
+ border-radius:3px;
966
+ }
967
+ div.vis-configuration.vis-config-item.vis-config-s4{
968
+ left:30px;
969
+ background-color: #cfd8e6;
970
+ padding-left:5px;
971
+ border-radius:3px;
972
+ }
973
+
974
+ div.vis-configuration.vis-config-header{
975
+ font-size:18px;
976
+ font-weight: bold;
977
+ }
978
+
979
+ div.vis-configuration.vis-config-label{
980
+ width:120px;
981
+ height:25px;
982
+ line-height: 25px;
983
+ }
984
+
985
+ div.vis-configuration.vis-config-label.vis-config-s3{
986
+ width:110px;
987
+ }
988
+ div.vis-configuration.vis-config-label.vis-config-s4{
989
+ width:100px;
990
+ }
991
+
992
+ div.vis-configuration.vis-config-colorBlock{
993
+ top:1px;
994
+ width:30px;
995
+ height:19px;
996
+ border:1px solid #444444;
997
+ border-radius:2px;
998
+ padding:0px;
999
+ margin:0px;
1000
+ cursor:pointer;
1001
+ }
1002
+
1003
+ input.vis-configuration.vis-config-checkbox {
1004
+ left:-5px;
1005
+ }
1006
+
1007
+
1008
+ input.vis-configuration.vis-config-rangeinput{
1009
+ position:relative;
1010
+ top:-5px;
1011
+ width:60px;
1012
+ /*height:13px;*/
1013
+ padding:1px;
1014
+ margin:0;
1015
+ pointer-events:none;
1016
+ }
1017
+
1018
+ input.vis-configuration.vis-config-range{
1019
+ /*removes default webkit styles*/
1020
+ -webkit-appearance: none;
1021
+
1022
+ /*fix for FF unable to apply focus style bug */
1023
+ border: 0px solid white;
1024
+ background-color:rgba(0,0,0,0);
1025
+
1026
+ /*required for proper track sizing in FF*/
1027
+ width: 300px;
1028
+ height:20px;
1029
+ }
1030
+ input.vis-configuration.vis-config-range::-webkit-slider-runnable-track {
1031
+ width: 300px;
1032
+ height: 5px;
1033
+ background: #dedede; /* Old browsers */
1034
+ background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */
1035
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dedede), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */
1036
+ background: -webkit-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */
1037
+ background: -o-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Opera 11.10+ */
1038
+ background: -ms-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* IE10+ */
1039
+ background: linear-gradient(to bottom, #dedede 0%,#c8c8c8 99%); /* W3C */
1040
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */
1041
+
1042
+ border: 1px solid #999999;
1043
+ box-shadow: #aaaaaa 0px 0px 3px 0px;
1044
+ border-radius: 3px;
1045
+ }
1046
+ input.vis-configuration.vis-config-range::-webkit-slider-thumb {
1047
+ -webkit-appearance: none;
1048
+ border: 1px solid #14334b;
1049
+ height: 17px;
1050
+ width: 17px;
1051
+ border-radius: 50%;
1052
+ background: #3876c2; /* Old browsers */
1053
+ background: -moz-linear-gradient(top, #3876c2 0%, #385380 100%); /* FF3.6+ */
1054
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#3876c2), color-stop(100%,#385380)); /* Chrome,Safari4+ */
1055
+ background: -webkit-linear-gradient(top, #3876c2 0%,#385380 100%); /* Chrome10+,Safari5.1+ */
1056
+ background: -o-linear-gradient(top, #3876c2 0%,#385380 100%); /* Opera 11.10+ */
1057
+ background: -ms-linear-gradient(top, #3876c2 0%,#385380 100%); /* IE10+ */
1058
+ background: linear-gradient(to bottom, #3876c2 0%,#385380 100%); /* W3C */
1059
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3876c2', endColorstr='#385380',GradientType=0 ); /* IE6-9 */
1060
+ box-shadow: #111927 0px 0px 1px 0px;
1061
+ margin-top: -7px;
1062
+ }
1063
+ input.vis-configuration.vis-config-range:focus {
1064
+ outline: none;
1065
+ }
1066
+ input.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track {
1067
+ background: #9d9d9d; /* Old browsers */
1068
+ background: -moz-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* FF3.6+ */
1069
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#9d9d9d), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */
1070
+ background: -webkit-linear-gradient(top, #9d9d9d 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */
1071
+ background: -o-linear-gradient(top, #9d9d9d 0%,#c8c8c8 99%); /* Opera 11.10+ */
1072
+ background: -ms-linear-gradient(top, #9d9d9d 0%,#c8c8c8 99%); /* IE10+ */
1073
+ background: linear-gradient(to bottom, #9d9d9d 0%,#c8c8c8 99%); /* W3C */
1074
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9d9d9d', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */
1075
+ }
1076
+
1077
+ input.vis-configuration.vis-config-range::-moz-range-track {
1078
+ width: 300px;
1079
+ height: 10px;
1080
+ background: #dedede; /* Old browsers */
1081
+ background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */
1082
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dedede), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */
1083
+ background: -webkit-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */
1084
+ background: -o-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Opera 11.10+ */
1085
+ background: -ms-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* IE10+ */
1086
+ background: linear-gradient(to bottom, #dedede 0%,#c8c8c8 99%); /* W3C */
1087
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */
1088
+
1089
+ border: 1px solid #999999;
1090
+ box-shadow: #aaaaaa 0px 0px 3px 0px;
1091
+ border-radius: 3px;
1092
+ }
1093
+ input.vis-configuration.vis-config-range::-moz-range-thumb {
1094
+ border: none;
1095
+ height: 16px;
1096
+ width: 16px;
1097
+
1098
+ border-radius: 50%;
1099
+ background: #385380;
1100
+ }
1101
+
1102
+ /*hide the outline behind the border*/
1103
+ input.vis-configuration.vis-config-range:-moz-focusring{
1104
+ outline: 1px solid white;
1105
+ outline-offset: -1px;
1106
+ }
1107
+
1108
+ input.vis-configuration.vis-config-range::-ms-track {
1109
+ width: 300px;
1110
+ height: 5px;
1111
+
1112
+ /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
1113
+ background: transparent;
1114
+
1115
+ /*leave room for the larger thumb to overflow with a transparent border */
1116
+ border-color: transparent;
1117
+ border-width: 6px 0;
1118
+
1119
+ /*remove default tick marks*/
1120
+ color: transparent;
1121
+ }
1122
+ input.vis-configuration.vis-config-range::-ms-fill-lower {
1123
+ background: #777;
1124
+ border-radius: 10px;
1125
+ }
1126
+ input.vis-configuration.vis-config-range::-ms-fill-upper {
1127
+ background: #ddd;
1128
+ border-radius: 10px;
1129
+ }
1130
+ input.vis-configuration.vis-config-range::-ms-thumb {
1131
+ border: none;
1132
+ height: 16px;
1133
+ width: 16px;
1134
+ border-radius: 50%;
1135
+ background: #385380;
1136
+ }
1137
+ input.vis-configuration.vis-config-range:focus::-ms-fill-lower {
1138
+ background: #888;
1139
+ }
1140
+ input.vis-configuration.vis-config-range:focus::-ms-fill-upper {
1141
+ background: #ccc;
1142
+ }
1143
+
1144
+ .vis-configuration-popup {
1145
+ position: absolute;
1146
+ background: rgba(57, 76, 89, 0.85);
1147
+ border: 2px solid #f2faff;
1148
+ line-height:30px;
1149
+ height:30px;
1150
+ width:150px;
1151
+ text-align:center;
1152
+ color: #ffffff;
1153
+ font-size:14px;
1154
+ border-radius:4px;
1155
+ -webkit-transition: opacity 0.3s ease-in-out;
1156
+ -moz-transition: opacity 0.3s ease-in-out;
1157
+ transition: opacity 0.3s ease-in-out;
1158
+ }
1159
+ .vis-configuration-popup:after, .vis-configuration-popup:before {
1160
+ left: 100%;
1161
+ top: 50%;
1162
+ border: solid transparent;
1163
+ content: " ";
1164
+ height: 0;
1165
+ width: 0;
1166
+ position: absolute;
1167
+ pointer-events: none;
1168
+ }
1169
+
1170
+ .vis-configuration-popup:after {
1171
+ border-color: rgba(136, 183, 213, 0);
1172
+ border-left-color: rgba(57, 76, 89, 0.85);
1173
+ border-width: 8px;
1174
+ margin-top: -8px;
1175
+ }
1176
+ .vis-configuration-popup:before {
1177
+ border-color: rgba(194, 225, 245, 0);
1178
+ border-left-color: #f2faff;
1179
+ border-width: 12px;
1180
+ margin-top: -12px;
1181
+ }`;Pt(OJ);var N1=function(){function e(t,r,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;fe(this,e),this.parent=t,this.changedOptions=[],this.container=r,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},x.extend(this.options,this.defaultOptions),this.configureOptions=a,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new CJ(n),this.wrapper=void 0}return pe(e,[{key:"setOptions",value:function(r){if(r!==void 0){this.popupHistory={},this._removePopup();var a=!0;if(typeof r=="string")this.options.filter=r;else if(ae(r))this.options.filter=r.join();else if(ne(r)==="object"){if(r==null)throw new TypeError("options cannot be null");r.container!==void 0&&(this.options.container=r.container),te(r)!==void 0&&(this.options.filter=te(r)),r.showButton!==void 0&&(this.options.showButton=r.showButton),r.enabled!==void 0&&(a=r.enabled)}else typeof r=="boolean"?(this.options.filter=!0,a=r):typeof r=="function"&&(this.options.filter=r,a=!0);te(this.options)===!1&&(a=!1),this.options.enabled=a}this._clean()}},{key:"setModuleOptions",value:function(r){this.moduleOptions=r,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var r=te(this.options),a=0,n=!1;for(var s in this.configureOptions)this.configureOptions.hasOwnProperty(s)&&(this.allowCreation=!1,n=!1,typeof r=="function"?(n=r(s,[]),n=n||this._handleObject(this.configureOptions[s],[s],!0)):(r===!0||Ce(r).call(r,s)!==-1)&&(n=!0),n!==!1&&(this.allowCreation=!0,a>0&&this._makeItem([]),this._makeHeader(s),this._handleObject(this.configureOptions[s],[s])),a++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var r=0;r<this.domElements.length;r++)this.wrapper.appendChild(this.domElements[r]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var r=0;r<this.domElements.length;r++)this.wrapper.removeChild(this.domElements[r]);this.wrapper!==void 0&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(r){for(var a=this.moduleOptions,n=0;n<r.length;n++)if(a[r[n]]!==void 0)a=a[r[n]];else{a=void 0;break}return a}},{key:"_makeItem",value:function(r){if(this.allowCreation===!0){var a=document.createElement("div");a.className="vis-configuration vis-config-item vis-config-s"+r.length;for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return G(s).call(s,function(l){a.appendChild(l)}),this.domElements.push(a),this.domElements.length}return 0}},{key:"_makeHeader",value:function(r){var a=document.createElement("div");a.className="vis-configuration vis-config-header",a.innerHTML=x.xss(r),this._makeItem([],a)}},{key:"_makeLabel",value:function(r,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=document.createElement("div");return s.className="vis-configuration vis-config-label vis-config-s"+a.length,n===!0?s.innerHTML=x.xss("<i><b>"+r+":</b></i>"):s.innerHTML=x.xss(r+":"),s}},{key:"_makeDropdown",value:function(r,a,n){var s=document.createElement("select");s.className="vis-configuration vis-config-select";var o=0;a!==void 0&&Ce(r).call(r,a)!==-1&&(o=Ce(r).call(r,a));for(var l=0;l<r.length;l++){var d=document.createElement("option");d.value=r[l],l===o&&(d.selected="selected"),d.innerHTML=r[l],s.appendChild(d)}var c=this;s.onchange=function(){c._update(this.value,n)};var f=this._makeLabel(n[n.length-1],n);this._makeItem(n,f,s)}},{key:"_makeRange",value:function(r,a,n){var s=r[0],o=r[1],l=r[2],d=r[3],c=document.createElement("input");c.className="vis-configuration vis-config-range";try{c.type="range",c.min=o,c.max=l}catch{}c.step=d;var f="",v=0;if(a!==void 0){var m=1.2;a<0&&a*m<o?(c.min=Math.ceil(a*m),v=c.min,f="range increased"):a/m<o&&(c.min=Math.ceil(a/m),v=c.min,f="range increased"),a*m>l&&l!==1&&(c.max=Math.ceil(a*m),v=c.max,f="range increased"),c.value=a}else c.value=s;var g=document.createElement("input");g.className="vis-configuration vis-config-rangeinput",g.value=Number(c.value);var b=this;c.onchange=function(){g.value=this.value,b._update(Number(this.value),n)},c.oninput=function(){g.value=this.value};var S=this._makeLabel(n[n.length-1],n),w=this._makeItem(n,S,c,g);f!==""&&this.popupHistory[w]!==v&&(this.popupHistory[w]=v,this._setupPopup(f,w))}},{key:"_makeButton",value:function(){var r=this;if(this.options.showButton===!0){var a=document.createElement("div");a.className="vis-configuration vis-config-button",a.innerHTML="generate options",a.onclick=function(){r._printOptions()},a.onmouseover=function(){a.className="vis-configuration vis-config-button hover"},a.onmouseout=function(){a.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(a)}}},{key:"_setupPopup",value:function(r,a){var n=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter<this.popupLimit){var s=document.createElement("div");s.id="vis-configuration-popup",s.className="vis-configuration-popup",s.innerHTML=x.xss(r),s.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:s,index:a}}}},{key:"_removePopup",value:function(){this.popupDiv.html!==void 0&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var r=this;if(this.popupDiv.html!==void 0){var a=this.domElements[this.popupDiv.index],n=a.getBoundingClientRect();this.popupDiv.html.style.left=n.left+"px",this.popupDiv.html.style.top=n.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=_t(function(){r.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=_t(function(){r._removePopup()},1800)}}},{key:"_makeCheckbox",value:function(r,a,n){var s=document.createElement("input");s.type="checkbox",s.className="vis-configuration vis-config-checkbox",s.checked=r,a!==void 0&&(s.checked=a,a!==r&&(ne(r)==="object"?a!==r.enabled&&this.changedOptions.push({path:n,value:a}):this.changedOptions.push({path:n,value:a})));var o=this;s.onchange=function(){o._update(this.checked,n)};var l=this._makeLabel(n[n.length-1],n);this._makeItem(n,l,s)}},{key:"_makeTextInput",value:function(r,a,n){var s=document.createElement("input");s.type="text",s.className="vis-configuration vis-config-text",s.value=a,a!==r&&this.changedOptions.push({path:n,value:a});var o=this;s.onchange=function(){o._update(this.value,n)};var l=this._makeLabel(n[n.length-1],n);this._makeItem(n,l,s)}},{key:"_makeColorField",value:function(r,a,n){var s=this,o=r[1],l=document.createElement("div");a=a===void 0?o:a,a!=="none"?(l.className="vis-configuration vis-config-colorBlock",l.style.backgroundColor=a):l.className="vis-configuration vis-config-colorBlock none",a=a===void 0?o:a,l.onclick=function(){s._showColorPicker(a,l,n)};var d=this._makeLabel(n[n.length-1],n);this._makeItem(n,d,l)}},{key:"_showColorPicker",value:function(r,a,n){var s=this;a.onclick=function(){},this.colorPicker.insertTo(a),this.colorPicker.show(),this.colorPicker.setColor(r),this.colorPicker.setUpdateCallback(function(o){var l="rgba("+o.r+","+o.g+","+o.b+","+o.a+")";a.style.backgroundColor=l,s._update(l,n)}),this.colorPicker.setCloseCallback(function(){a.onclick=function(){s._showColorPicker(r,a,n)}})}},{key:"_handleObject",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=!1,o=te(this.options),l=!1;for(var d in r)if(r.hasOwnProperty(d)){s=!0;var c=r[d],f=x.copyAndExtendArray(a,d);if(typeof o=="function"&&(s=o(d,a),s===!1&&!ae(c)&&typeof c!="string"&&typeof c!="boolean"&&c instanceof Object&&(this.allowCreation=!1,s=this._handleObject(c,f,!0),this.allowCreation=n===!1)),s!==!1){l=!0;var v=this._getValue(f);if(ae(c))this._handleArray(c,v,f);else if(typeof c=="string")this._makeTextInput(c,v,f);else if(typeof c=="boolean")this._makeCheckbox(c,v,f);else if(c instanceof Object){var m=!0;if(Ce(a).call(a,"physics")!==-1&&this.moduleOptions.physics.solver!==d&&(m=!1),m===!0)if(c.enabled!==void 0){var g=x.copyAndExtendArray(f,"enabled"),b=this._getValue(g);if(b===!0){var S=this._makeLabel(d,f,!0);this._makeItem(f,S),l=this._handleObject(c,f)||l}else this._makeCheckbox(c,b,f)}else{var w=this._makeLabel(d,f,!0);this._makeItem(f,w),l=this._handleObject(c,f)||l}}else console.error("dont know how to handle",c,d,f)}}return l}},{key:"_handleArray",value:function(r,a,n){typeof r[0]=="string"&&r[0]==="color"?(this._makeColorField(r,a,n),r[1]!==a&&this.changedOptions.push({path:n,value:a})):typeof r[0]=="string"?(this._makeDropdown(r,a,n),r[0]!==a&&this.changedOptions.push({path:n,value:a})):typeof r[0]=="number"&&(this._makeRange(r,a,n),r[0]!==a&&this.changedOptions.push({path:n,value:Number(a)}))}},{key:"_update",value:function(r,a){var n=this._constructOptions(r,a);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(r,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=n;r=r==="true"?!0:r,r=r==="false"?!1:r;for(var o=0;o<a.length;o++)a[o]!=="global"&&(s[a[o]]===void 0&&(s[a[o]]={}),o!==a.length-1?s=s[a[o]]:s[a[o]]=r);return n}},{key:"_printOptions",value:function(){var r=this.getOptions();this.optionsContainer.innerHTML="<pre>var options = "+Ft(r,null,2)+"</pre>"}},{key:"getOptions",value:function(){for(var r={},a=0;a<this.changedOptions.length;a++)this._constructOptions(this.changedOptions[a].value,this.changedOptions[a].path,r);return r}}]),e}();function AJ(e){var t=IJ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function IJ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var PJ=function(e){It(r,e);var t=AJ(r);function r(a,n,s,o){var l,d,c,f,v,m,g,b;if(fe(this,r),b=t.call(this),b.initTime=new Date,b.itemsDone=!1,!(Ne(b)instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(!(ae(s)||on(s))&&s instanceof Object){var S=o;o=s,s=S}o&&o.throttleRedraw&&console.warn('Timeline option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var w=Ne(b);if(b.defaultOptions={autoResize:!0,longSelectPressTime:251,orientation:{axis:"bottom",item:"bottom"},moment:Tt},b.options=x.deepExtend({},b.defaultOptions),o&&x.setupXSSProtection(o.xss),b._create(a),!o||o&&typeof o.rtl>"u"){b.dom.root.style.visibility="hidden";for(var k,T=b.dom.root;!k&&T;)k=window.getComputedStyle(T,null).direction,T=T.parentElement;b.options.rtl=k&&k.toLowerCase()=="rtl"}else b.options.rtl=o.rtl;o&&(o.rollingMode&&(b.options.rollingMode=o.rollingMode),o.onInitialDrawComplete&&(b.options.onInitialDrawComplete=o.onInitialDrawComplete),o.onTimeout&&(b.options.onTimeout=o.onTimeout),o.loadingScreenTemplate&&(b.options.loadingScreenTemplate=o.loadingScreenTemplate));var D=document.createElement("div");if(b.options.loadingScreenTemplate){var N,L=P(N=b.options.loadingScreenTemplate).call(N,Ne(b)),A=L(b.dom.loadingScreen);A instanceof Object&&!(A instanceof Element)?L(D):A instanceof Element?(D.innerHTML="",D.appendChild(A)):A!=null&&(D.innerHTML=x.xss(A))}b.dom.loadingScreen.appendChild(D),b.components=[],b.body={dom:b.dom,domProps:b.props,emitter:{on:P(l=b.on).call(l,Ne(b)),off:P(d=b.off).call(d,Ne(b)),emit:P(c=b.emit).call(c,Ne(b))},hiddenDates:[],util:{getScale:function(){return w.timeAxis.step.scale},getStep:function(){return w.timeAxis.step.step},toScreen:P(f=w._toScreen).call(f,w),toGlobalScreen:P(v=w._toGlobalScreen).call(v,w),toTime:P(m=w._toTime).call(m,w),toGlobalTime:P(g=w._toGlobalTime).call(g,w)}},b.range=new f1(b.body,b.options),b.components.push(b.range),b.body.range=b.range,b.timeAxis=new Rl(b.body,b.options),b.timeAxis2=null,b.components.push(b.timeAxis),b.currentTime=new S1(b.body,b.options),b.components.push(b.currentTime),b.itemSet=new Ll(b.body,b.options),b.components.push(b.itemSet),b.itemsData=null,b.groupsData=null;function R(C,j){w.hasListeners(C)&&w.emit(C,w.getEventProperties(j))}return b.dom.root.onclick=function(C){R("click",C)},b.dom.root.ondblclick=function(C){R("doubleClick",C)},b.dom.root.oncontextmenu=function(C){R("contextmenu",C)},b.dom.root.onmouseover=function(C){R("mouseOver",C)},window.PointerEvent?(b.dom.root.onpointerdown=function(C){R("mouseDown",C)},b.dom.root.onpointermove=function(C){R("mouseMove",C)},b.dom.root.onpointerup=function(C){R("mouseUp",C)}):(b.dom.root.onmousemove=function(C){R("mouseMove",C)},b.dom.root.onmousedown=function(C){R("mouseDown",C)},b.dom.root.onmouseup=function(C){R("mouseUp",C)}),b.initialFitDone=!1,b.on("changed",function(){if(w.itemsData!=null){if(!w.initialFitDone&&!w.options.rollingMode)if(w.initialFitDone=!0,w.options.start!=null||w.options.end!=null){if(w.options.start==null||w.options.end==null)var C=w.getItemRange();var j=w.options.start!=null?w.options.start:C.min,O=w.options.end!=null?w.options.end:C.max;w.setWindow(j,O,{animation:!1})}else w.fit({animation:!1});!w.initialDrawDone&&(w.initialRangeChangeDone||!w.options.start&&!w.options.end||w.options.rollingMode)&&(w.initialDrawDone=!0,w.itemSet.initialDrawDone=!0,w.dom.root.style.visibility="visible",w.dom.loadingScreen.parentNode.removeChild(w.dom.loadingScreen),w.options.onInitialDrawComplete&&_t(function(){return w.options.onInitialDrawComplete()},0))}}),b.on("destroyTimeline",function(){w.destroy()}),o&&b.setOptions(o),b.body.emitter.on("fit",function(C){b._onFit(C),b.redraw()}),s&&b.setGroups(s),n&&b.setItems(n),b._redraw(),b}return pe(r,[{key:"_createConfigurator",value:function(){return new N1(this,this.dom.container,DJ)}},{key:"redraw",value:function(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()}},{key:"setOptions",value:function(n){var s=D1.validate(n,$J);if(s===!0&&console.log("%cErrors have been found in the supplied options object.",Vl),sa.prototype.setOptions.call(this,n),"type"in n&&n.type!==this.options.type){this.options.type=n.type;var o=this.itemsData;if(o){var l=this.getSelection();this.setItems(null),this.setItems(o.rawDS),this.setSelection(l)}}}},{key:"setItems",value:function(n){this.itemsDone=!1;var s;n?on(n)?s=ba(n):s=ba(new pi(n)):s=null,this.itemsData&&this.itemsData.dispose(),this.itemsData=s,this.itemSet&&this.itemSet.setItems(s!=null?s.rawDS:null)}},{key:"setGroups",value:function(n){var s,o=function(d){return d.visible!==!1};n?(ae(n)&&(n=new pi(n)),s=new Oq(n,{filter:o})):s=null,this.groupsData!=null&&typeof this.groupsData.setData=="function"&&this.groupsData.setData(null),this.groupsData=s,this.itemSet.setGroups(s)}},{key:"setData",value:function(n){n&&n.groups&&this.setGroups(n.groups),n&&n.items&&this.setItems(n.items)}},{key:"setSelection",value:function(n,s){this.itemSet&&this.itemSet.setSelection(n),s&&s.focus&&this.focus(n,s)}},{key:"getSelection",value:function(){return this.itemSet&&this.itemSet.getSelection()||[]}},{key:"focus",value:function(n,s){if(!(!this.itemsData||n==null)){var o=ae(n)?n:[n],l=this.itemsData.get(o),d=null,c=null;if(G(l).call(l,function(L){var A=L.start.valueOf(),R="end"in L?L.end.valueOf():L.start.valueOf();(d===null||A<d)&&(d=A),(c===null||R>c)&&(c=R)}),d!==null&&c!==null){var f=this,v=this.itemSet.items[o[0]],m=this._getScrollTop()*-1,g=null,b=function(A,R,C){var j=Zy(f,v);if(j!==!1&&(g||(g=j),!(g.itemTop==j.itemTop&&!g.shouldScroll))){g.itemTop!=j.itemTop&&j.shouldScroll&&(g=j,m=f._getScrollTop()*-1);var O=m,M=g.scrollOffset,H=C?M:O+(M-O)*A;f._setScrollTop(-H),R||f._redraw()}},S=function(){var A=Zy(f,v);A.shouldScroll&&A.itemTop!=g.itemTop&&(f._setScrollTop(-A.scrollOffset),f._redraw())},w=function(){S(),_t(S,100)},k=s&&s.zoom!==void 0?s.zoom:!0,T=(d+c)/2,D=k?(c-d)*1.1:Math.max(this.range.end-this.range.start,(c-d)*1.1),N=s&&s.animation!==void 0?s.animation:!0;N||(g={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(T-D/2,T+D/2,{animation:N},w,b)}}}},{key:"fit",value:function(n,s){var o=n&&n.animation!==void 0?n.animation:!0,l;this.itemsData.length===1&&this.itemsData.get()[0].end===void 0?(l=this.getDataRange(),this.moveTo(l.min.valueOf(),{animation:o},s)):(l=this.getItemRange(),this.range.setRange(l.min,l.max,{animation:o},s))}},{key:"getItemRange",value:function(){var n=this,s=this.getDataRange(),o=s.min!==null?s.min.valueOf():null,l=s.max!==null?s.max.valueOf():null,d=null,c=null;if(o!=null&&l!=null){var f=l-o;f<=0&&(f=10);var v=f/this.props.center.width,m={},g=0;G(x).call(x,this.itemSet.items,function(N,L){if(N.groupShowing){var A=!0;m[L]=N.redraw(A),g=m[L].length}});var b=g>0;if(b)for(var S=function(L){G(x).call(x,m,function(A){A[L]()})},w=0;w<g;w++)S(w);if(G(x).call(x,this.itemSet.items,function(N){var L=Eu(N),A=Su(N),R,C;n.options.rtl?(R=L-(N.getWidthRight()+10)*v,C=A+(N.getWidthLeft()+10)*v):(R=L-(N.getWidthLeft()+10)*v,C=A+(N.getWidthRight()+10)*v),R<o&&(o=R,d=N),C>l&&(l=C,c=N)}),d&&c){var k=d.getWidthLeft()+10,T=c.getWidthRight()+10,D=this.props.center.width-k-T;D>0&&(this.options.rtl?(o=Eu(d)-T*f/D,l=Su(c)+k*f/D):(o=Eu(d)-k*f/D,l=Su(c)+T*f/D))}}return{min:o!=null?new Date(o):null,max:l!=null?new Date(l):null}}},{key:"getDataRange",value:function(){var n=null,s=null;if(this.itemsData){var o;G(o=this.itemsData).call(o,function(l){var d=x.convert(l.start,"Date").valueOf(),c=x.convert(l.end!=null?l.end:l.start,"Date").valueOf();(n===null||d<n)&&(n=d),(s===null||c>s)&&(s=c)})}return{min:n!=null?new Date(n):null,max:s!=null?new Date(s):null}}},{key:"getEventProperties",value:function(n){var s=n.center?n.center.x:n.clientX,o=n.center?n.center.y:n.clientY,l=this.dom.centerContainer.getBoundingClientRect(),d=this.options.rtl?l.right-s:s-l.left,c=o-l.top,f=this.itemSet.itemFromTarget(n),v=this.itemSet.groupFromTarget(n),m=zf.customTimeFromTarget(n),g=this.itemSet.options.snap||null,b=this.body.util.getScale(),S=this.body.util.getStep(),w=this._toTime(d),k=g?g(w,b,S):w,T=x.getTarget(n),D=null;return f!=null?D="item":m!=null?D="custom-time":x.hasParent(T,this.timeAxis.dom.foreground)||this.timeAxis2&&x.hasParent(T,this.timeAxis2.dom.foreground)?D="axis":x.hasParent(T,this.itemSet.dom.labelSet)?D="group-label":x.hasParent(T,this.currentTime.bar)?D="current-time":x.hasParent(T,this.dom.center)&&(D="background"),{event:n,item:f?f.id:null,isCluster:f?!!f.isCluster:!1,items:f?f.items||[]:null,group:v?v.groupId:null,customTime:m?m.options.id:null,what:D,pageX:n.srcEvent?n.srcEvent.pageX:n.pageX,pageY:n.srcEvent?n.srcEvent.pageY:n.pageY,x:d,y:c,time:w,snappedTime:k}}},{key:"toggleRollingMode",value:function(){this.range.rolling?this.range.stopRolling():(this.options.rollingMode==null&&this.setOptions(this.options),this.range.startRolling())}},{key:"_redraw",value:function(){sa.prototype._redraw.call(this)}},{key:"_onFit",value:function(n){var s=n.start,o=n.end,l=n.animation;o?this.range.setRange(s,o,{animation:l}):this.moveTo(s.valueOf(),{animation:l})}}]),r}(sa);function Eu(e){return x.convert(e.data.start,"Date").valueOf()}function Su(e){var t=e.data.end!=null?e.data.end:e.data.start;return x.convert(t,"Date").valueOf()}function Zy(e,t){if(!t.parent)return!1;var r=e.options.rtl?e.props.rightContainer.height:e.props.leftContainer.height,a=e.props.center.height,n=t.parent,s=n.top,o=!0,l=e.timeAxis.options.orientation.axis,d=function(){return l=="bottom"?n.height-t.top-t.height:t.top},c=e._getScrollTop()*-1,f=s+d(),v=t.height;return f<c?s+r<=s+d()+v&&(s+=d()-e.itemSet.options.margin.item.vertical):f+v>c+r?s+=d()+v-r+e.itemSet.options.margin.item.vertical:o=!1,s=Math.min(s,a-r),{shouldScroll:o,scrollOffset:s,itemTop:f}}var MJ=function(){function e(t,r,a,n,s,o){var l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,d=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1;if(fe(this,e),this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=s,this.majorCharHeight=o,this._start=t,this._end=r,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=l,this.autoScaleStart=a,this.autoScaleEnd=n,this.formattingFunction=d,a||n){var c=this,f=function(m){var g=m-m%(c.magnitudefactor*c.minorSteps[c.minorStepIdx]);return m%(c.magnitudefactor*c.minorSteps[c.minorStepIdx])>.5*(c.magnitudefactor*c.minorSteps[c.minorStepIdx])?g+c.magnitudefactor*c.minorSteps[c.minorStepIdx]:g};a&&(this._start-=this.magnitudefactor*2*this.minorSteps[this.minorStepIdx],this._start=f(this._start)),n&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=f(this._end)),this.determineScale()}}return pe(e,[{key:"setCharHeight",value:function(r){this.majorCharHeight=r}},{key:"setHeight",value:function(r){this.containerHeight=r}},{key:"determineScale",value:function(){var r=this._end-this._start;this.scale=this.containerHeight/r;var a=this.majorCharHeight/this.scale,n=r>0?Math.round(Math.log(r)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,n);var s=0;n<0&&(s=n);for(var o=!1,l=s;Math.abs(l)<=Math.abs(n);l++){this.magnitudefactor=Math.pow(10,l);for(var d=0;d<this.minorSteps.length;d++){var c=this.magnitudefactor*this.minorSteps[d];if(c>=a){o=!0,this.minorStepIdx=d;break}}if(o===!0)break}}},{key:"is_major",value:function(r){return r%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])===0}},{key:"getStep",value:function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]}},{key:"getFirstMajor",value:function(){var r=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(r-this._start%r)%r)}},{key:"formatValue",value:function(r){var a=r.toPrecision(5);return typeof this.formattingFunction=="function"&&(a=this.formattingFunction(r)),typeof a=="number"?"".concat(a):typeof a=="string"?a:r.toPrecision(5)}},{key:"getLines",value:function(){for(var r=[],a=this.getStep(),n=(a-this._start%a)%a,s=this._start+n;this._end-s>1e-5;s+=a)s!=this._start&&r.push({major:this.is_major(s),y:this.convertValue(s),val:this.formatValue(s)});return r}},{key:"followScale",value:function(r){var a=this.minorStepIdx,n=this._start,s=this._end,o=this,l=function(){o.magnitudefactor*=2},d=function(){o.magnitudefactor/=2};r.minorStepIdx<=1&&this.minorStepIdx<=1||r.minorStepIdx>1&&this.minorStepIdx>1||(r.minorStepIdx<this.minorStepIdx?(this.minorStepIdx=1,a==2||l(),l()):(this.minorStepIdx=2,a==1||d(),d()));for(var c=r.convertValue(0),f=r.getStep()*r.scale,v=!1,m=0;!v&&m++<5;){this.scale=f/(this.minorSteps[this.minorStepIdx]*this.magnitudefactor);var g=this.containerHeight/this.scale;this._start=n,this._end=this._start+g;var b=this._end*this.scale,S=this.magnitudefactor*this.majorSteps[this.minorStepIdx],w=this.getFirstMajor()-r.getFirstMajor();if(this.zeroAlign){var k=c-b;this._end+=k/this.scale,this._start=this._end-g}else this.autoScaleStart?(this._start-=w/this.scale,this._end=this._start+g):(this._start+=S-w/this.scale,this._end=this._start+g);if(!this.autoScaleEnd&&this._end>s+1e-5){d(),v=!1;continue}if(!this.autoScaleStart&&this._start<n-1e-5)if(this.zeroAlign&&n>=0)console.warn("Can't adhere to given 'min' range, due to zeroalign");else{d(),v=!1;continue}if(this.autoScaleStart&&this.autoScaleEnd&&g<s-n){l(),v=!1;continue}v=!0}}},{key:"convertValue",value:function(r){return this.containerHeight-(r-this._start)*this.scale}},{key:"screenToValue",value:function(r){return(this.containerHeight-r)/this.scale+this._start}}]),e}(),RJ=`
1182
+ .vis-panel.vis-background.vis-horizontal .vis-grid.vis-horizontal {
1183
+ position: absolute;
1184
+ width: 100%;
1185
+ height: 0;
1186
+ border-bottom: 1px solid;
1187
+ }
1188
+
1189
+ .vis-panel.vis-background.vis-horizontal .vis-grid.vis-minor {
1190
+ border-color: #e5e5e5;
1191
+ }
1192
+
1193
+ .vis-panel.vis-background.vis-horizontal .vis-grid.vis-major {
1194
+ border-color: #bfbfbf;
1195
+ }
1196
+
1197
+
1198
+ .vis-data-axis .vis-y-axis.vis-major {
1199
+ width: 100%;
1200
+ position: absolute;
1201
+ color: #4d4d4d;
1202
+ white-space: nowrap;
1203
+ }
1204
+
1205
+ .vis-data-axis .vis-y-axis.vis-major.vis-measure {
1206
+ padding: 0;
1207
+ margin: 0;
1208
+ border: 0;
1209
+ visibility: hidden;
1210
+ width: auto;
1211
+ }
1212
+
1213
+
1214
+ .vis-data-axis .vis-y-axis.vis-minor {
1215
+ position: absolute;
1216
+ width: 100%;
1217
+ color: #bebebe;
1218
+ white-space: nowrap;
1219
+ }
1220
+
1221
+ .vis-data-axis .vis-y-axis.vis-minor.vis-measure {
1222
+ padding: 0;
1223
+ margin: 0;
1224
+ border: 0;
1225
+ visibility: hidden;
1226
+ width: auto;
1227
+ }
1228
+
1229
+ .vis-data-axis .vis-y-axis.vis-title {
1230
+ position: absolute;
1231
+ color: #4d4d4d;
1232
+ white-space: nowrap;
1233
+ bottom: 20px;
1234
+ text-align: center;
1235
+ }
1236
+
1237
+ .vis-data-axis .vis-y-axis.vis-title.vis-measure {
1238
+ padding: 0;
1239
+ margin: 0;
1240
+ visibility: hidden;
1241
+ width: auto;
1242
+ }
1243
+
1244
+ .vis-data-axis .vis-y-axis.vis-title.vis-left {
1245
+ bottom: 0;
1246
+ -webkit-transform-origin: left top;
1247
+ -moz-transform-origin: left top;
1248
+ -ms-transform-origin: left top;
1249
+ -o-transform-origin: left top;
1250
+ transform-origin: left bottom;
1251
+ -webkit-transform: rotate(-90deg);
1252
+ -moz-transform: rotate(-90deg);
1253
+ -ms-transform: rotate(-90deg);
1254
+ -o-transform: rotate(-90deg);
1255
+ transform: rotate(-90deg);
1256
+ }
1257
+
1258
+ .vis-data-axis .vis-y-axis.vis-title.vis-right {
1259
+ bottom: 0;
1260
+ -webkit-transform-origin: right bottom;
1261
+ -moz-transform-origin: right bottom;
1262
+ -ms-transform-origin: right bottom;
1263
+ -o-transform-origin: right bottom;
1264
+ transform-origin: right bottom;
1265
+ -webkit-transform: rotate(90deg);
1266
+ -moz-transform: rotate(90deg);
1267
+ -ms-transform: rotate(90deg);
1268
+ -o-transform: rotate(90deg);
1269
+ transform: rotate(90deg);
1270
+ }
1271
+
1272
+ .vis-legend {
1273
+ background-color: rgba(247, 252, 255, 0.65);
1274
+ padding: 5px;
1275
+ border: 1px solid #b3b3b3;
1276
+ box-shadow: 2px 2px 10px rgba(154, 154, 154, 0.55);
1277
+ }
1278
+
1279
+ .vis-legend-text {
1280
+ /*font-size: 10px;*/
1281
+ white-space: nowrap;
1282
+ display: inline-block
1283
+ }`;Pt(RJ);function LJ(e,t){var r=typeof fn<"u"&&Ln(e)||e["@@iterator"];if(!r){if(ae(e)||(r=VJ(e))||t){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(c){throw c},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1284
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(o)throw l}}}}function VJ(e,t){var r;if(e){if(typeof e=="string")return Jy(e,t);var a=bt(r=Object.prototype.toString.call(e)).call(r,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Rn(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Jy(e,t)}}function Jy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function FJ(e){var t=YJ();return function(){var a=ke(e),n;if(t){var s=ke(this).constructor;n=Z(a,arguments,s)}else n=a.apply(this,arguments);return Gt(this,n)}}function YJ(){if(typeof Reflect>"u"||!Z||Z.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Z(Boolean,[],function(){})),!0}catch{return!1}}var e_=function(e){It(r,e);var t=FJ(r);function r(a,n,s,o){var l;fe(this,r),l=t.call(this),l.id=ai(),l.body=a,l.defaultOptions={orientation:"left",showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,majorLinesOffset:7,minorLinesOffset:4,labelOffsetX:10,labelOffsetY:2,iconWidth:20,width:"40px",visible:!0,alignZeros:!0,left:{range:{min:void 0,max:void 0},format:function(f){return"".concat(Ol(f.toPrecision(3)))},title:{text:void 0,style:void 0}},right:{range:{min:void 0,max:void 0},format:function(f){return"".concat(Ol(f.toPrecision(3)))},title:{text:void 0,style:void 0}}},l.linegraphOptions=o,l.linegraphSVG=s,l.props={},l.DOMelements={lines:{},labels:{},title:{}},l.dom={},l.scale=void 0,l.range={start:0,end:0},l.options=x.extend({},l.defaultOptions),l.conversionFactor=1,l.setOptions(n),l.width=Number("".concat(l.options.width).replace("px","")),l.minWidth=l.width,l.height=l.linegraphSVG.getBoundingClientRect().height,l.hidden=!1,l.stepPixels=25,l.zeroCrossing=-1,l.amountOfSteps=-1,l.lineOffset=0,l.master=!0,l.masterAxis=null,l.svgElements={},l.iconsRemoved=!1,l.groups={},l.amountOfGroups=0,l._create(),l.scale==null&&l._redrawLabels(),l.framework={svg:l.svg,svgElements:l.svgElements,options:l.options,groups:l.groups};var d=Ne(l);return l.body.emitter.on("verticalDrag",function(){d.dom.lineContainer.style.top="".concat(d.body.domProps.scrollTop,"px")}),l}return pe(r,[{key:"addGroup",value:function(n,s){this.groups.hasOwnProperty(n)||(this.groups[n]=s),this.amountOfGroups+=1}},{key:"updateGroup",value:function(n,s){this.groups.hasOwnProperty(n)||(this.amountOfGroups+=1),this.groups[n]=s}},{key:"removeGroup",value:function(n){this.groups.hasOwnProperty(n)&&(delete this.groups[n],this.amountOfGroups-=1)}},{key:"setOptions",value:function(n){if(n){var s=!1;this.options.orientation!=n.orientation&&n.orientation!==void 0&&(s=!0);var o=["orientation","showMinorLabels","showMajorLabels","icons","majorLinesOffset","minorLinesOffset","labelOffsetX","labelOffsetY","iconWidth","width","visible","left","right","alignZeros"];x.selectiveDeepExtend(o,this.options,n),this.minWidth=Number("".concat(this.options.width).replace("px","")),s===!0&&this.dom.frame&&(this.hide(),this.show())}}},{key:"_create",value:function(){this.dom.frame=document.createElement("div"),this.dom.frame.style.width=this.options.width,this.dom.frame.style.height=this.height,this.dom.lineContainer=document.createElement("div"),this.dom.lineContainer.style.width="100%",this.dom.lineContainer.style.height=this.height,this.dom.lineContainer.style.position="relative",this.dom.lineContainer.style.visibility="visible",this.dom.lineContainer.style.display="block",this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="absolute",this.svg.style.top="0px",this.svg.style.height="100%",this.svg.style.width="100%",this.svg.style.display="block",this.dom.frame.appendChild(this.svg)}},{key:"_redrawGroupIcons",value:function(){wn(this.svgElements);var n,s=this.options.iconWidth,o=15,l=4,d=l+.5*o;this.options.orientation==="left"?n=l:n=this.width-s-l;var c=st(this.groups);Ze(c).call(c,function(g,b){return g<b?-1:1});var f=LJ(c),v;try{for(f.s();!(v=f.n()).done;){var m=v.value;this.groups[m].visible===!0&&(this.linegraphOptions.visibility[m]===void 0||this.linegraphOptions.visibility[m]===!0)&&(this.groups[m].getLegend(s,o,this.framework,n,d),d+=o+l)}}catch(g){f.e(g)}finally{f.f()}sr(this.svgElements),this.iconsRemoved=!1}},{key:"_cleanupIcons",value:function(){this.iconsRemoved===!1&&(wn(this.svgElements),sr(this.svgElements),this.iconsRemoved=!0)}},{key:"show",value:function(){this.hidden=!1,this.dom.frame.parentNode||(this.options.orientation==="left"?this.body.dom.left.appendChild(this.dom.frame):this.body.dom.right.appendChild(this.dom.frame)),this.dom.lineContainer.parentNode||this.body.dom.backgroundHorizontal.appendChild(this.dom.lineContainer),this.dom.lineContainer.style.display="block"}},{key:"hide",value:function(){this.hidden=!0,this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.lineContainer.style.display="none"}},{key:"setRange",value:function(n,s){this.range.start=n,this.range.end=s}},{key:"redraw",value:function(){var n=!1,s=0;this.dom.lineContainer.style.top="".concat(this.body.domProps.scrollTop,"px");for(var o in this.groups)this.groups.hasOwnProperty(o)&&this.groups[o].visible===!0&&(this.linegraphOptions.visibility[o]===void 0||this.linegraphOptions.visibility[o]===!0)&&s++;if(this.amountOfGroups===0||s===0)this.hide();else{this.show(),this.height=Number(this.linegraphSVG.style.height.replace("px","")),this.dom.lineContainer.style.height="".concat(this.height,"px"),this.width=this.options.visible===!0?Number("".concat(this.options.width).replace("px","")):0;var l=this.props,d=this.dom.frame;d.className="vis-data-axis",this._calculateCharSize();var c=this.options.orientation,f=this.options.showMinorLabels,v=this.options.showMajorLabels,m=this.body.dom.backgroundHorizontal.offsetWidth;l.minorLabelHeight=f?l.minorCharHeight:0,l.majorLabelHeight=v?l.majorCharHeight:0,l.minorLineWidth=m-this.lineOffset-this.width+2*this.options.minorLinesOffset,l.minorLineHeight=1,l.majorLineWidth=m-this.lineOffset-this.width+2*this.options.majorLinesOffset,l.majorLineHeight=1,c==="left"?(d.style.top="0",d.style.left="0",d.style.bottom="",d.style.width="".concat(this.width,"px"),d.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.left.width,this.props.height=this.body.domProps.left.height):(d.style.top="",d.style.bottom="0",d.style.left="0",d.style.width="".concat(this.width,"px"),d.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.right.width,this.props.height=this.body.domProps.right.height),n=this._redrawLabels(),n=this._isResized()||n,this.options.icons===!0?this._redrawGroupIcons():this._cleanupIcons(),this._redrawTitle(c)}return n}},{key:"_redrawLabels",value:function(){var n=this,s=!1;wn(this.DOMelements.lines),wn(this.DOMelements.labels);var o=this.options.orientation,l=this.options[o].range!=null?this.options[o].range:{},d=!0;l.max!=null&&(this.range.end=l.max,d=!1);var c=!0;l.min!=null&&(this.range.start=l.min,c=!1),this.scale=new MJ(this.range.start,this.range.end,c,d,this.dom.frame.offsetHeight,this.props.majorCharHeight,this.options.alignZeros,this.options[o].format),this.master===!1&&this.masterAxis!=null?(this.scale.followScale(this.masterAxis.scale),this.dom.lineContainer.style.display="none"):this.dom.lineContainer.style.display="block",this.maxLabelSize=0;var f=this.scale.getLines();G(f).call(f,function(g){var b=g.y,S=g.major;n.options.showMinorLabels&&S===!1&&n._redrawLabel(b-2,g.val,o,"vis-y-axis vis-minor",n.props.minorCharHeight),S&&b>=0&&n._redrawLabel(b-2,g.val,o,"vis-y-axis vis-major",n.props.majorCharHeight),n.master===!0&&(S?n._redrawLine(b,o,"vis-grid vis-horizontal vis-major",n.options.majorLinesOffset,n.props.majorLineWidth):n._redrawLine(b,o,"vis-grid vis-horizontal vis-minor",n.options.minorLinesOffset,n.props.minorLineWidth))});var v=0;this.options[o].title!==void 0&&this.options[o].title.text!==void 0&&(v=this.props.titleCharHeight);var m=this.options.icons===!0?Math.max(this.options.iconWidth,v)+this.options.labelOffsetX+15:v+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-m&&this.options.visible===!0?(this.width=this.maxLabelSize+m,this.options.width="".concat(this.width,"px"),sr(this.DOMelements.lines),sr(this.DOMelements.labels),this.redraw(),s=!0):this.maxLabelSize<this.width-m&&this.options.visible===!0&&this.width>this.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+m),this.options.width="".concat(this.width,"px"),sr(this.DOMelements.lines),sr(this.DOMelements.labels),this.redraw(),s=!0):(sr(this.DOMelements.lines),sr(this.DOMelements.labels),s=!1),s}},{key:"convertValue",value:function(n){return this.scale.convertValue(n)}},{key:"screenToValue",value:function(n){return this.scale.screenToValue(n)}},{key:"_redrawLabel",value:function(n,s,o,l,d){var c=Gc("div",this.DOMelements.labels,this.dom.frame);c.className=l,c.innerHTML=x.xss(s),o==="left"?(c.style.left="-".concat(this.options.labelOffsetX,"px"),c.style.textAlign="right"):(c.style.right="-".concat(this.options.labelOffsetX,"px"),c.style.textAlign="left"),c.style.top="".concat(n-.5*d+this.options.labelOffsetY,"px"),s+="";var f=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize<s.length*f&&(this.maxLabelSize=s.length*f)}},{key:"_redrawLine",value:function(n,s,o,l,d){if(this.master===!0){var c=Gc("div",this.DOMelements.lines,this.dom.lineContainer);c.className=o,c.innerHTML="",s==="left"?c.style.left="".concat(this.width-l,"px"):c.style.right="".concat(this.width-l,"px"),c.style.width="".concat(d,"px"),c.style.top="".concat(n,"px")}}},{key:"_redrawTitle",value:function(n){if(wn(this.DOMelements.title),this.options[n].title!==void 0&&this.options[n].title.text!==void 0){var s=Gc("div",this.DOMelements.title,this.dom.frame);s.className="vis-y-axis vis-title vis-".concat(n),s.innerHTML=x.xss(this.options[n].title.text),this.options[n].title.style!==void 0&&x.addCssText(s,this.options[n].title.style),n==="left"?s.style.left="".concat(this.props.titleCharHeight,"px"):s.style.right="".concat(this.props.titleCharHeight,"px"),s.style.width="".concat(this.height,"px")}sr(this.DOMelements.title)}},{key:"_calculateCharSize",value:function(){if(!("minorCharHeight"in this.props)){var n=document.createTextNode("0"),s=document.createElement("div");s.className="vis-y-axis vis-minor vis-measure",s.appendChild(n),this.dom.frame.appendChild(s),this.props.minorCharHeight=s.clientHeight,this.props.minorCharWidth=s.clientWidth,this.dom.frame.removeChild(s)}if(!("majorCharHeight"in this.props)){var o=document.createTextNode("0"),l=document.createElement("div");l.className="vis-y-axis vis-major vis-measure",l.appendChild(o),this.dom.frame.appendChild(l),this.props.majorCharHeight=l.clientHeight,this.props.majorCharWidth=l.clientWidth,this.dom.frame.removeChild(l)}if(!("titleCharHeight"in this.props)){var d=document.createTextNode("0"),c=document.createElement("div");c.className="vis-y-axis vis-title vis-measure",c.appendChild(d),this.dom.frame.appendChild(c),this.props.titleCharHeight=c.clientHeight,this.props.titleCharWidth=c.clientWidth,this.dom.frame.removeChild(c)}}}]),r}(Fn);function no(e,t){}no.draw=function(e,t,r,a){a=a||0;for(var n=jJ(r,t),s=0;s<e.length;s++)if(!n)ya(e[s].screen_x+a,e[s].screen_y,Eh(t),r.svgElements,r.svg,e[s].label);else{var o=n(e[s],t);(o===!0||ne(o)==="object")&&ya(e[s].screen_x+a,e[s].screen_y,Eh(t,o),r.svgElements,r.svg,e[s].label)}};no.drawIcon=function(e,t,r,a,n,s){var o=n*.5,l=kr("rect",s.svgElements,s.svg);l.setAttributeNS(null,"x",t),l.setAttributeNS(null,"y",r-o),l.setAttributeNS(null,"width",a),l.setAttributeNS(null,"height",2*o),l.setAttributeNS(null,"class","vis-outline"),ya(t+.5*a,r,Eh(e),s.svgElements,s.svg)};function Eh(e,t){return t=typeof t>"u"?{}:t,{style:t.style||e.options.drawPoints.style,styles:t.styles||e.options.drawPoints.styles,size:t.size||e.options.drawPoints.size,className:t.className||e.className}}function jJ(e,t){var r=void 0;return e.options&&e.options.drawPoints&&e.options.drawPoints.onRender&&typeof e.options.drawPoints.onRender=="function"&&(r=e.options.drawPoints.onRender),t.group.options&&t.group.options.drawPoints&&t.group.options.drawPoints.onRender&&typeof t.group.options.drawPoints.onRender=="function"&&(r=t.group.options.drawPoints.onRender),r}function $t(e,t){}$t.drawIcon=function(e,t,r,a,n,s){var o=n*.5,l=kr("rect",s.svgElements,s.svg);l.setAttributeNS(null,"x",t),l.setAttributeNS(null,"y",r-o),l.setAttributeNS(null,"width",a),l.setAttributeNS(null,"height",2*o),l.setAttributeNS(null,"class","vis-outline");var d=Math.round(.3*a),c=e.options.barChart.width,f=c/d,v=Math.round(.4*n),m=Math.round(.75*n),g=Math.round((a-2*d)/3);if(nh(t+.5*d+g,r+o-v-1,d,v,e.className+" vis-bar",s.svgElements,s.svg,e.style),nh(t+1.5*d+g+2,r+o-m-1,d,m,e.className+" vis-bar",s.svgElements,s.svg,e.style),e.options.drawPoints.enabled==!0){var b={style:e.options.drawPoints.style,styles:e.options.drawPoints.styles,size:e.options.drawPoints.size/f,className:e.className};ya(t+.5*d+g,r+o-v-1,b,s.svgElements,s.svg),ya(t+1.5*d+g+2,r+o-m-1,b,s.svgElements,s.svg)}};$t.draw=function(e,t,r){var a=[],n={},s,o,l,d,c,f,v=0;for(c=0;c<e.length;c++)if(d=r.groups[e[c]],d.options.style==="bar"&&d.visible===!0&&(r.options.groups.visibility[e[c]]===void 0||r.options.groups.visibility[e[c]]===!0))for(f=0;f<t[e[c]].length;f++)a.push({screen_x:t[e[c]][f].screen_x,screen_end:t[e[c]][f].screen_end,screen_y:t[e[c]][f].screen_y,x:t[e[c]][f].x,end:t[e[c]][f].end,y:t[e[c]][f].y,groupId:e[c],label:t[e[c]][f].label}),v+=1;if(v!==0)for(Ze(a).call(a,function(T,D){return T.screen_x===D.screen_x?T.groupId<D.groupId?-1:1:T.screen_x-D.screen_x}),$t._getDataIntersections(n,a),c=0;c<a.length;c++){d=r.groups[a[c].groupId];var m=d.options.barChart.minWidth!=null?d.options.barChart.minWidth:.1*d.options.barChart.width;o=a[c].screen_x;var g=0;if(n[o]===void 0)c+1<a.length&&(s=Math.abs(a[c+1].screen_x-o)),l=$t._getSafeDrawData(s,d,m);else{var b=c+(n[o].amount-n[o].resolved);b<a.length&&(s=Math.abs(a[b].screen_x-o)),l=$t._getSafeDrawData(s,d,m),n[o].resolved+=1,d.options.stack===!0&&d.options.excludeFromStacking!==!0?a[c].screen_y<d.zeroPosition?(g=n[o].accumulatedNegative,n[o].accumulatedNegative+=d.zeroPosition-a[c].screen_y):(g=n[o].accumulatedPositive,n[o].accumulatedPositive+=d.zeroPosition-a[c].screen_y):d.options.barChart.sideBySide===!0&&(l.width=l.width/n[o].amount,l.offset+=n[o].resolved*l.width-.5*l.width*(n[o].amount+1))}var S=l.width,w=a[c].screen_x;if(a[c].screen_end!=null?(S=a[c].screen_end-a[c].screen_x,w+=S*.5):w+=l.offset,nh(w,a[c].screen_y-g,S,d.zeroPosition-a[c].screen_y,d.className+" vis-bar",r.svgElements,r.svg,d.style),d.options.drawPoints.enabled===!0){var k={screen_x:a[c].screen_x,screen_y:a[c].screen_y-g,x:a[c].x,y:a[c].y,groupId:a[c].groupId,label:a[c].label};no.draw([k],d,r,l.offset)}}};$t._getDataIntersections=function(e,t){for(var r,a=0;a<t.length;a++)a+1<t.length&&(r=Math.abs(t[a+1].screen_x-t[a].screen_x)),a>0&&(r=Math.min(r,Math.abs(t[a-1].screen_x-t[a].screen_x))),r===0&&(e[t[a].screen_x]===void 0&&(e[t[a].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),e[t[a].screen_x].amount+=1)};$t._getSafeDrawData=function(e,t,r){var a,n;return e<t.options.barChart.width&&e>0?(a=e<r?r:e,n=0,t.options.barChart.align==="left"?n-=.5*e:t.options.barChart.align==="right"&&(n+=.5*e)):(a=t.options.barChart.width,n=0,t.options.barChart.align==="left"?n-=.5*t.options.barChart.width:t.options.barChart.align==="right"&&(n+=.5*t.options.barChart.width)),{width:a,offset:n}};$t.getStackedYRange=function(e,t,r,a,n){if(e.length>0){Ze(e).call(e,function(o,l){return o.screen_x===l.screen_x?o.groupId<l.groupId?-1:1:o.screen_x-l.screen_x});var s={};$t._getDataIntersections(s,e),t[a]=$t._getStackedYRange(s,e),t[a].yAxisOrientation=n,r.push(a)}};$t._getStackedYRange=function(e,t){for(var r,a=t[0].screen_y,n=t[0].screen_y,s=0;s<t.length;s++)r=t[s].screen_x,e[r]===void 0?(a=a>t[s].screen_y?t[s].screen_y:a,n=n<t[s].screen_y?t[s].screen_y:n):t[s].screen_y<0?e[r].accumulatedNegative+=t[s].screen_y:e[r].accumulatedPositive+=t[s].screen_y;for(var o in e)e.hasOwnProperty(o)&&(a=a>e[o].accumulatedNegative?e[o].accumulatedNegative:a,a=a>e[o].accumulatedPositive?e[o].accumulatedPositive:a,n=n<e[o].accumulatedNegative?e[o].accumulatedNegative:n,n=n<e[o].accumulatedPositive?e[o].accumulatedPositive:n);return{min:a,max:n}};function pt(e,t){}pt.calcPath=function(e,t){if(e!=null&&e.length>0){var r=[];return t.options.interpolation.enabled==!0?r=pt._catmullRom(e,t):r=pt._linear(e),r}};pt.drawIcon=function(e,t,r,a,n,s){var o=n*.5,l,d,c=kr("rect",s.svgElements,s.svg);if(c.setAttributeNS(null,"x",t),c.setAttributeNS(null,"y",r-o),c.setAttributeNS(null,"width",a),c.setAttributeNS(null,"height",2*o),c.setAttributeNS(null,"class","vis-outline"),l=kr("path",s.svgElements,s.svg),l.setAttributeNS(null,"class",e.className),e.style!==void 0&&l.setAttributeNS(null,"style",e.style),l.setAttributeNS(null,"d","M"+t+","+r+" L"+(t+a)+","+r),e.options.shaded.enabled==!0&&(d=kr("path",s.svgElements,s.svg),e.options.shaded.orientation=="top"?d.setAttributeNS(null,"d","M"+t+", "+(r-o)+"L"+t+","+r+" L"+(t+a)+","+r+" L"+(t+a)+","+(r-o)):d.setAttributeNS(null,"d","M"+t+","+r+" L"+t+","+(r+o)+" L"+(t+a)+","+(r+o)+"L"+(t+a)+","+r),d.setAttributeNS(null,"class",e.className+" vis-icon-fill"),e.options.shaded.style!==void 0&&e.options.shaded.style!==""&&d.setAttributeNS(null,"style",e.options.shaded.style)),e.options.drawPoints.enabled==!0){var f={style:e.options.drawPoints.style,styles:e.options.drawPoints.styles,size:e.options.drawPoints.size,className:e.className};ya(t+.5*a,r,f,s.svgElements,s.svg)}};pt.drawShading=function(e,t,r,a){if(t.options.shaded.enabled==!0){var n=Number(a.svg.style.height.replace("px","")),s=kr("path",a.svgElements,a.svg),o="L";t.options.interpolation.enabled==!0&&(o="C");var l,d=0;t.options.shaded.orientation=="top"?d=0:t.options.shaded.orientation=="bottom"?d=n:d=Math.min(Math.max(0,t.zeroPosition),n),t.options.shaded.orientation=="group"&&r!=null&&r!=null?l="M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,o,!1)+" L"+r[r.length-1][0]+","+r[r.length-1][1]+" "+this.serializePath(r,o,!0)+r[0][0]+","+r[0][1]+" Z":l="M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,o,!1)+" V"+d+" H"+e[0][0]+" Z",s.setAttributeNS(null,"class",t.className+" vis-fill"),t.options.shaded.style!==void 0&&s.setAttributeNS(null,"style",t.options.shaded.style),s.setAttributeNS(null,"d",l)}};pt.draw=function(e,t,r){if(e!=null&&e!=null){var a=kr("path",r.svgElements,r.svg);a.setAttributeNS(null,"class",t.className),t.style!==void 0&&a.setAttributeNS(null,"style",t.style);var n="L";t.options.interpolation.enabled==!0&&(n="C"),a.setAttributeNS(null,"d","M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,n,!1))}};pt.serializePath=function(e,t,r){if(e.length<2)return"";var a=t,n;if(r)for(n=e.length-2;n>0;n--)a+=e[n][0]+","+e[n][1]+" ";else for(n=1;n<e.length;n++)a+=e[n][0]+","+e[n][1]+" ";return a};pt._catmullRomUniform=function(e){var t,r,a,n,s,o,l=[];l.push([Math.round(e[0].screen_x),Math.round(e[0].screen_y)]);for(var d=1/6,c=e.length,f=0;f<c-1;f++)t=f==0?e[0]:e[f-1],r=e[f],a=e[f+1],n=f+2<c?e[f+2]:a,s={screen_x:(-t.screen_x+6*r.screen_x+a.screen_x)*d,screen_y:(-t.screen_y+6*r.screen_y+a.screen_y)*d},o={screen_x:(r.screen_x+6*a.screen_x-n.screen_x)*d,screen_y:(r.screen_y+6*a.screen_y-n.screen_y)*d},l.push([s.screen_x,s.screen_y]),l.push([o.screen_x,o.screen_y]),l.push([a.screen_x,a.screen_y]);return l};pt._catmullRom=function(e,t){var r=t.options.interpolation.alpha;if(r==0||r===void 0)return this._catmullRomUniform(e);var a,n,s,o,l,d,c,f,v,m,g,b,S,w,k,T,D,N,L,A=[];A.push([Math.round(e[0].screen_x),Math.round(e[0].screen_y)]);for(var R=e.length,C=0;C<R-1;C++)a=C==0?e[0]:e[C-1],n=e[C],s=e[C+1],o=C+2<R?e[C+2]:s,c=Math.sqrt(Math.pow(a.screen_x-n.screen_x,2)+Math.pow(a.screen_y-n.screen_y,2)),f=Math.sqrt(Math.pow(n.screen_x-s.screen_x,2)+Math.pow(n.screen_y-s.screen_y,2)),v=Math.sqrt(Math.pow(s.screen_x-o.screen_x,2)+Math.pow(s.screen_y-o.screen_y,2)),w=Math.pow(v,r),T=Math.pow(v,2*r),k=Math.pow(f,r),D=Math.pow(f,2*r),L=Math.pow(c,r),N=Math.pow(c,2*r),m=2*N+3*L*k+D,g=2*T+3*w*k+D,b=3*L*(L+k),b>0&&(b=1/b),S=3*w*(w+k),S>0&&(S=1/S),l={screen_x:(-D*a.screen_x+m*n.screen_x+N*s.screen_x)*b,screen_y:(-D*a.screen_y+m*n.screen_y+N*s.screen_y)*b},d={screen_x:(T*n.screen_x+g*s.screen_x-D*o.screen_x)*S,screen_y:(T*n.screen_y+g*s.screen_y-D*o.screen_y)*S},l.screen_x==0&&l.screen_y==0&&(l=n),d.screen_x==0&&d.screen_y==0&&(d=s),A.push([l.screen_x,l.screen_y]),A.push([d.screen_x,d.screen_y]),A.push([s.screen_x,s.screen_y]);return A};pt._linear=function(e){for(var t=[],r=0;r<e.length;r++)t.push([e[r].screen_x,e[r].screen_y]);return t};function Yn(e,t,r,a){this.id=t;var n=["sampling","style","sort","yAxisOrientation","barChart","drawPoints","shaded","interpolation","zIndex","excludeFromStacking","excludeFromLegend"];this.options=x.selectiveBridgeObject(n,r),this.usingDefaultStyle=e.className===void 0,this.groupsUsingDefaultStyles=a,this.zeroPosition=0,this.update(e),this.usingDefaultStyle==!0&&(this.groupsUsingDefaultStyles[0]+=1),this.itemsData=[],this.visible=e.visible===void 0?!0:e.visible}Yn.prototype.setItems=function(e){e!=null?(this.itemsData=e,Ze(this.options)==!0&&x.insertSort(this.itemsData,function(t,r){return t.x>r.x?1:-1})):this.itemsData=[]};Yn.prototype.getItems=function(){return this.itemsData};Yn.prototype.setZeroPosition=function(e){this.zeroPosition=e};Yn.prototype.setOptions=function(e){if(e!==void 0){var t=["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"];x.selectiveDeepExtend(t,this.options,e),typeof e.drawPoints=="function"&&(e.drawPoints={onRender:e.drawPoints}),x.mergeOptions(this.options,e,"interpolation"),x.mergeOptions(this.options,e,"drawPoints"),x.mergeOptions(this.options,e,"shaded"),e.interpolation&&ne(e.interpolation)=="object"&&e.interpolation.parametrization&&(e.interpolation.parametrization=="uniform"?this.options.interpolation.alpha=0:e.interpolation.parametrization=="chordal"?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5))}};Yn.prototype.update=function(e){this.group=e,this.content=e.content||"graph",this.className=e.className||this.className||"vis-graph-group"+this.groupsUsingDefaultStyles[0]%10,this.visible=e.visible===void 0?!0:e.visible,this.style=e.style,this.setOptions(e.options)};Yn.prototype.getLegend=function(e,t,r,a,n){if(r==null||r==null){var s=document.createElementNS("http://www.w3.org/2000/svg","svg");r={svg:s,svgElements:{},options:this.options,groups:[this]}}switch((a==null||a==null)&&(a=0),(n==null||n==null)&&(n=.5*t),this.options.style){case"line":pt.drawIcon(this,a,n,e,t,r);break;case"points":case"point":no.drawIcon(this,a,n,e,t,r);break;case"bar":$t.drawIcon(this,a,n,e,t,r);break}return{icon:r.svg,label:this.content,orientation:this.options.yAxisOrientation}};Yn.prototype.getYRange=function(e){for(var t=e[0].y,r=e[0].y,a=0;a<e.length;a++)t=t>e[a].y?e[a].y:t,r=r<e[a].y?e[a].y:r;return{min:t,max:r,yAxisOrientation:this.options.yAxisOrientation}};function nr(e,t,r,a){this.body=e,this.defaultOptions={enabled:!1,icons:!0,iconSize:20,iconSpacing:6,left:{visible:!0,position:"top-left"},right:{visible:!0,position:"top-right"}},this.side=r,this.options=x.extend({},this.defaultOptions),this.linegraphOptions=a,this.svgElements={},this.dom={},this.groups={},this.amountOfGroups=0,this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups},this.setOptions(t)}nr.prototype=new Fn;nr.prototype.clear=function(){this.groups={},this.amountOfGroups=0};nr.prototype.addGroup=function(e,t){t.options.excludeFromLegend!=!0&&(this.groups.hasOwnProperty(e)||(this.groups[e]=t),this.amountOfGroups+=1)};nr.prototype.updateGroup=function(e,t){this.groups[e]=t};nr.prototype.removeGroup=function(e){this.groups.hasOwnProperty(e)&&(delete this.groups[e],this.amountOfGroups-=1)};nr.prototype._create=function(){this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-legend",this.dom.frame.style.position="absolute",this.dom.frame.style.top="10px",this.dom.frame.style.display="block",this.dom.textArea=document.createElement("div"),this.dom.textArea.className="vis-legend-text",this.dom.textArea.style.position="relative",this.dom.textArea.style.top="0px",this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="absolute",this.svg.style.top="0px",this.svg.style.width=this.options.iconSize+5+"px",this.svg.style.height="100%",this.dom.frame.appendChild(this.svg),this.dom.frame.appendChild(this.dom.textArea)};nr.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)};nr.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)};nr.prototype.setOptions=function(e){var t=["enabled","orientation","icons","left","right"];x.selectiveDeepExtend(t,this.options,e)};nr.prototype.redraw=function(){var e=0,t=st(this.groups);Ze(t).call(t,function(o,l){return o<l?-1:1});for(var r=0;r<t.length;r++){var a=t[r];this.groups[a].visible==!0&&(this.linegraphOptions.visibility[a]===void 0||this.linegraphOptions.visibility[a]==!0)&&e++}if(this.options[this.side].visible==!1||this.amountOfGroups==0||this.options.enabled==!1||e==0)this.hide();else{if(this.show(),this.options[this.side].position=="top-left"||this.options[this.side].position=="bottom-left"?(this.dom.frame.style.left="4px",this.dom.frame.style.textAlign="left",this.dom.textArea.style.textAlign="left",this.dom.textArea.style.left=this.options.iconSize+15+"px",this.dom.textArea.style.right="",this.svg.style.left="0px",this.svg.style.right=""):(this.dom.frame.style.right="4px",this.dom.frame.style.textAlign="right",this.dom.textArea.style.textAlign="right",this.dom.textArea.style.right=this.options.iconSize+15+"px",this.dom.textArea.style.left="",this.svg.style.right="0px",this.svg.style.left=""),this.options[this.side].position=="top-left"||this.options[this.side].position=="top-right")this.dom.frame.style.top=4-Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.bottom="";else{var n=this.body.domProps.center.height-this.body.domProps.centerContainer.height;this.dom.frame.style.bottom=4+n+Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.top=""}this.options.icons==!1?(this.dom.frame.style.width=this.dom.textArea.offsetWidth+10+"px",this.dom.textArea.style.right="",this.dom.textArea.style.left="",this.svg.style.width="0px"):(this.dom.frame.style.width=this.options.iconSize+15+this.dom.textArea.offsetWidth+10+"px",this.drawLegendIcons());var s="";for(r=0;r<t.length;r++)a=t[r],this.groups[a].visible==!0&&(this.linegraphOptions.visibility[a]===void 0||this.linegraphOptions.visibility[a]==!0)&&(s+=this.groups[a].content+"<br />");this.dom.textArea.innerHTML=x.xss(s),this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}};nr.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var e=st(this.groups);Ze(e).call(e,function(c,f){return c<f?-1:1}),WH(this.svgElements);var t=window.getComputedStyle(this.dom.frame).paddingTop,r=Number(t.replace("px","")),a=r,n=this.options.iconSize,s=.75*this.options.iconSize,o=r+.5*s+3;this.svg.style.width=n+5+r+"px";for(var l=0;l<e.length;l++){var d=e[l];this.groups[d].visible==!0&&(this.linegraphOptions.visibility[d]===void 0||this.linegraphOptions.visibility[d]==!0)&&(this.groups[d].getLegend(n,s,this.framework,a,o),o+=s+this.options.iconSpacing)}}};var Fl="__ungrouped__";function Ae(e,t){this.id=ai(),this.body=e,this.defaultOptions={yAxisOrientation:"left",defaultGroup:"default",sort:!0,sampling:!0,stack:!1,graphHeight:"400px",shaded:{enabled:!1,orientation:"bottom"},style:"line",barChart:{width:50,sideBySide:!1,align:"center"},interpolation:{enabled:!0,parametrization:"centripetal",alpha:.5},drawPoints:{enabled:!0,size:6,style:"square"},dataAxis:{},legend:{},groups:{visibility:{}}},this.options=x.extend({},this.defaultOptions),this.dom={},this.props={},this.hammer=null,this.groups={},this.abortedGraphUpdate=!1,this.updateSVGheight=!1,this.updateSVGheightOnResize=!1,this.forceGraphUpdate=!0;var r=this;this.itemsData=null,this.groupsData=null,this.itemListeners={add:function(n,s,o){r._onAdd(s.items)},update:function(n,s,o){r._onUpdate(s.items)},remove:function(n,s,o){r._onRemove(s.items)}},this.groupListeners={add:function(n,s,o){r._onAddGroups(s.items)},update:function(n,s,o){r._onUpdateGroups(s.items)},remove:function(n,s,o){r._onRemoveGroups(s.items)}},this.items={},this.selection=[],this.lastStart=this.body.range.start,this.touchParams={},this.svgElements={},this.setOptions(t),this.groupsUsingDefaultStyles=[0],this.body.emitter.on("rangechanged",function(){r.svg.style.left=x.option.asSize(-r.props.width),r.forceGraphUpdate=!0,r.redraw.call(r)}),this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups}}Ae.prototype=new Fn;Ae.prototype._create=function(){var e=document.createElement("div");e.className="vis-line-graph",this.dom.frame=e,this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="relative",this.svg.style.height=(""+this.options.graphHeight).replace("px","")+"px",this.svg.style.display="block",e.appendChild(this.svg),this.options.dataAxis.orientation="left",this.yAxisLeft=new e_(this.body,this.options.dataAxis,this.svg,this.options.groups),this.options.dataAxis.orientation="right",this.yAxisRight=new e_(this.body,this.options.dataAxis,this.svg,this.options.groups),delete this.options.dataAxis.orientation,this.legendLeft=new nr(this.body,this.options.legend,"left",this.options.groups),this.legendRight=new nr(this.body,this.options.legend,"right",this.options.groups),this.show()};Ae.prototype.setOptions=function(e){if(e){var t=["sampling","defaultGroup","stack","height","graphHeight","yAxisOrientation","style","barChart","dataAxis","sort","groups"];e.graphHeight===void 0&&e.height!==void 0?(this.updateSVGheight=!0,this.updateSVGheightOnResize=!0):this.body.domProps.centerContainer.height!==void 0&&e.graphHeight!==void 0&&Xt((e.graphHeight+"").replace("px",""))<this.body.domProps.centerContainer.height&&(this.updateSVGheight=!0),x.selectiveDeepExtend(t,this.options,e),x.mergeOptions(this.options,e,"interpolation"),x.mergeOptions(this.options,e,"drawPoints"),x.mergeOptions(this.options,e,"shaded"),x.mergeOptions(this.options,e,"legend"),e.interpolation&&ne(e.interpolation)=="object"&&e.interpolation.parametrization&&(e.interpolation.parametrization=="uniform"?this.options.interpolation.alpha=0:e.interpolation.parametrization=="chordal"?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5)),this.yAxisLeft&&e.dataAxis!==void 0&&(this.yAxisLeft.setOptions(this.options.dataAxis),this.yAxisRight.setOptions(this.options.dataAxis)),this.legendLeft&&e.legend!==void 0&&(this.legendLeft.setOptions(this.options.legend),this.legendRight.setOptions(this.options.legend)),this.groups.hasOwnProperty(Fl)&&this.groups[Fl].setOptions(e)}this.dom.frame&&(this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0}))};Ae.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)};Ae.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)};Ae.prototype.setItems=function(e){var t=this,r,a=this.itemsData;if(!e)this.itemsData=null;else if(on(e))this.itemsData=ba(e);else throw new TypeError("Data must implement the interface of DataSet or DataView");if(a&&(G(x).call(x,this.itemListeners,function(s,o){a.off(o,s)}),a.dispose(),r=a.getIds(),this._onRemove(r)),this.itemsData){var n=this.id;G(x).call(x,this.itemListeners,function(s,o){t.itemsData.on(o,s,n)}),r=this.itemsData.getIds(),this._onAdd(r)}};Ae.prototype.setGroups=function(e){var t=this,r;if(this.groupsData){G(x).call(x,this.groupListeners,function(s,o){t.groupsData.off(o,s)}),r=this.groupsData.getIds(),this.groupsData=null;for(var a=0;a<r.length;a++)this._removeGroup(r[a])}if(!e)this.groupsData=null;else if(on(e))this.groupsData=e;else throw new TypeError("Data must implement the interface of DataSet or DataView");if(this.groupsData){var n=this.id;G(x).call(x,this.groupListeners,function(s,o){t.groupsData.on(o,s,n)}),r=this.groupsData.getIds(),this._onAddGroups(r)}};Ae.prototype._onUpdate=function(e){this._updateAllGroupData(e)};Ae.prototype._onAdd=function(e){this._onUpdate(e)};Ae.prototype._onRemove=function(e){this._onUpdate(e)};Ae.prototype._onUpdateGroups=function(e){this._updateAllGroupData(null,e)};Ae.prototype._onAddGroups=function(e){this._onUpdateGroups(e)};Ae.prototype._onRemoveGroups=function(e){for(var t=0;t<e.length;t++)this._removeGroup(e[t]);this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})};Ae.prototype._removeGroup=function(e){this.groups.hasOwnProperty(e)&&(this.groups[e].options.yAxisOrientation=="right"?(this.yAxisRight.removeGroup(e),this.legendRight.removeGroup(e),this.legendRight.redraw()):(this.yAxisLeft.removeGroup(e),this.legendLeft.removeGroup(e),this.legendLeft.redraw()),delete this.groups[e])};Ae.prototype._updateGroup=function(e,t){this.groups.hasOwnProperty(t)?(this.groups[t].update(e),this.groups[t].options.yAxisOrientation=="right"?(this.yAxisRight.updateGroup(t,this.groups[t]),this.legendRight.updateGroup(t,this.groups[t]),this.yAxisLeft.removeGroup(t),this.legendLeft.removeGroup(t)):(this.yAxisLeft.updateGroup(t,this.groups[t]),this.legendLeft.updateGroup(t,this.groups[t]),this.yAxisRight.removeGroup(t),this.legendRight.removeGroup(t))):(this.groups[t]=new Yn(e,t,this.options,this.groupsUsingDefaultStyles),this.groups[t].options.yAxisOrientation=="right"?(this.yAxisRight.addGroup(t,this.groups[t]),this.legendRight.addGroup(t,this.groups[t])):(this.yAxisLeft.addGroup(t,this.groups[t]),this.legendLeft.addGroup(t,this.groups[t]))),this.legendLeft.redraw(),this.legendRight.redraw()};Ae.prototype._updateAllGroupData=function(e,t){if(this.itemsData!=null){var r={},a=this.itemsData.get(),n=this.itemsData.idProp,s={};e&&Se(e).call(e,function(w){s[w]=w});for(var o={},l=0;l<a.length;l++){var d=a[l],c=d.group;c==null&&(c=Fl),o.hasOwnProperty(c)?o[c]++:o[c]=1}var f={};if(!t&&e){for(c in this.groups)if(this.groups.hasOwnProperty(c)){S=this.groups[c];var v=S.getItems();r[c]=te(v).call(v,function(w){return f[w[n]]=w[n],w[n]!==s[w[n]]});var m=o[c];o[c]-=r[c].length,r[c].length<m&&(r[c][m-1]={})}}for(l=0;l<a.length;l++)if(d=a[l],c=d.group,c==null&&(c=Fl),!(!t&&e&&d[n]!==s[d[n]]&&f.hasOwnProperty(d[n]))){r.hasOwnProperty(c)||(r[c]=new Array(o[c]));var g=x.bridgeObject(d);g.x=x.convert(d.x,"Date"),g.end=x.convert(d.end,"Date"),g.orginalY=d.y,g.y=Number(d.y),g[n]=d[n];var b=r[c].length-o[c]--;r[c][b]=g}for(c in this.groups)this.groups.hasOwnProperty(c)&&(r.hasOwnProperty(c)||(r[c]=new Array(0)));for(c in r)if(r.hasOwnProperty(c))if(r[c].length==0)this.groups.hasOwnProperty(c)&&this._removeGroup(c);else{var S=void 0;this.groupsData!=null&&(S=this.groupsData.get(c)),S==null&&(S={id:c,content:this.options.defaultGroup+c}),this._updateGroup(S,c),this.groups[c].setItems(r[c])}this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})}};Ae.prototype.redraw=function(){var e=!1;this.props.width=this.dom.frame.offsetWidth,this.props.height=this.body.domProps.centerContainer.height-this.body.domProps.border.top-this.body.domProps.border.bottom,e=this._isResized()||e;var t=this.body.range.end-this.body.range.start,r=t!=this.lastVisibleInterval;if(this.lastVisibleInterval=t,e==!0){var a;this.svg.style.width=x.option.asSize(3*this.props.width),this.svg.style.left=x.option.asSize(-this.props.width),(Ce(a=this.options.height+"").call(a,"%")!=-1||this.updateSVGheightOnResize==!0)&&(this.updateSVGheight=!0)}if(this.updateSVGheight==!0?(this.options.graphHeight!=this.props.height+"px"&&(this.options.graphHeight=this.props.height+"px",this.svg.style.height=this.props.height+"px"),this.updateSVGheight=!1):this.svg.style.height=(""+this.options.graphHeight).replace("px","")+"px",e==!0||r==!0||this.abortedGraphUpdate==!0||this.forceGraphUpdate==!0)e=this._updateGraph()||e,this.forceGraphUpdate=!1,this.lastStart=this.body.range.start,this.svg.style.left=-this.props.width+"px";else if(this.lastStart!=0){var n=this.body.range.start-this.lastStart,s=this.body.range.end-this.body.range.start;if(this.props.width!=0){var o=this.props.width/s,l=n*o;this.svg.style.left=-this.props.width-l+"px"}}return this.legendLeft.redraw(),this.legendRight.redraw(),e};Ae.prototype._getSortedGroupIds=function(){var e=[];for(var t in this.groups)if(this.groups.hasOwnProperty(t)){var r=this.groups[t];r.visible==!0&&(this.options.groups.visibility[t]===void 0||this.options.groups.visibility[t]==!0)&&e.push({id:t,zIndex:r.options.zIndex})}x.insertSort(e,function(s,o){var l=s.zIndex,d=o.zIndex;return l===void 0&&(l=0),d===void 0&&(d=0),l==d?0:l<d?-1:1});for(var a=new Array(e.length),n=0;n<e.length;n++)a[n]=e[n].id;return a};Ae.prototype._updateGraph=function(){if(wn(this.svgElements),this.props.width!=0&&this.itemsData!=null){var e,t,r={},a=!1,n=this.body.util.toGlobalTime(-this.body.domProps.root.width),s=this.body.util.toGlobalTime(2*this.body.domProps.root.width),o=this._getSortedGroupIds();if(o.length>0){var l={};for(this._getRelevantData(o,l,n,s),this._applySampling(o,l),t=0;t<o.length;t++)this._convertXcoordinates(l[o[t]]);if(this._getYRanges(o,l,r),a=this._updateYAxis(o,r),a==!0)return sr(this.svgElements),this.abortedGraphUpdate=!0,!0;this.abortedGraphUpdate=!1;var d=void 0;for(t=0;t<o.length;t++)e=this.groups[o[t]],this.options.stack===!0&&this.options.style==="line"&&(e.options.excludeFromStacking==null||!e.options.excludeFromStacking)&&(d!=null&&(this._stack(l[e.id],l[d.id]),e.options.shaded.enabled==!0&&e.options.shaded.orientation!=="group"&&(e.options.shaded.orientation=="top"&&d.options.shaded.orientation!=="group"?(d.options.shaded.orientation="group",d.options.shaded.groupId=e.id):(e.options.shaded.orientation="group",e.options.shaded.groupId=d.id))),d=e),this._convertYcoordinates(l[o[t]],e);var c={};for(t=0;t<o.length;t++)if(e=this.groups[o[t]],e.options.style==="line"&&e.options.shaded.enabled==!0){var f=l[o[t]];if(f==null||f.length==0)continue;if(c.hasOwnProperty(o[t])||(c[o[t]]=pt.calcPath(f,e)),e.options.shaded.orientation==="group"){var v=e.options.shaded.groupId;if(Ce(o).call(o,v)===-1){console.log(e.id+": Unknown shading group target given:"+v);continue}c.hasOwnProperty(v)||(c[v]=pt.calcPath(l[v],this.groups[v])),pt.drawShading(c[o[t]],e,c[v],this.framework)}else pt.drawShading(c[o[t]],e,void 0,this.framework)}for($t.draw(o,l,this.framework),t=0;t<o.length;t++)if(e=this.groups[o[t]],l[o[t]].length>0)switch(e.options.style){case"line":c.hasOwnProperty(o[t])||(c[o[t]]=pt.calcPath(l[o[t]],e)),pt.draw(c[o[t]],e,this.framework);case"point":case"points":(e.options.style=="point"||e.options.style=="points"||e.options.drawPoints.enabled==!0)&&no.draw(l[o[t]],e,this.framework);break}}}return sr(this.svgElements),!1};Ae.prototype._stack=function(e,t){var r,a,n,s,o;r=0;for(var l=0;l<e.length;l++){s=void 0,o=void 0;for(var d=r;d<t.length;d++)if(t[d].x===e[l].x){s=t[d],o=t[d],r=d;break}else if(t[d].x>e[l].x){o=t[d],d==0?s=o:s=t[d-1],r=d;break}o===void 0&&(s=t[t.length-1],o=t[t.length-1]),a=o.x-s.x,n=o.y-s.y,a==0?e[l].y=e[l].orginalY+o.y:e[l].y=e[l].orginalY+n/a*(e[l].x-s.x)+s.y}};Ae.prototype._getRelevantData=function(e,t,r,a){var n,s,o,l;if(e.length>0)for(s=0;s<e.length;s++){n=this.groups[e[s]];var d=n.getItems();if(Ze(n.options)==!0){var c=function(b,S){return b.getTime()==S.getTime()?0:b<S?-1:1},f=Math.max(0,x.binarySearchValue(d,r,"x","before",c)),v=Math.min(d.length,x.binarySearchValue(d,a,"x","after",c)+1);v<=0&&(v=d.length);var m=new Array(v-f);for(o=f;o<v;o++)l=n.itemsData[o],m[o-f]=l;t[e[s]]=m}else t[e[s]]=n.itemsData}};Ae.prototype._applySampling=function(e,t){var r;if(e.length>0){for(var a=0;a<e.length;a++)if(r=this.groups[e[a]],r.options.sampling==!0){var n=t[e[a]];if(n.length>0){var s=1,o=n.length,l=this.body.util.toGlobalScreen(n[n.length-1].x)-this.body.util.toGlobalScreen(n[0].x),d=o/l;s=Math.min(Math.ceil(.2*o),Math.max(1,Math.round(d)));for(var c=new Array(o),f=0;f<o;f+=s){var v=Math.round(f/s);c[v]=n[f]}t[e[a]]=xt(c).call(c,0,Math.round(o/s))}}}};Ae.prototype._getYRanges=function(e,t,r){var a,n,s,o=[],l=[],d;if(e.length>0){for(s=0;s<e.length;s++)a=t[e[s]],d=this.groups[e[s]].options,a.length>0&&(n=this.groups[e[s]],d.stack===!0&&d.style==="bar"?d.yAxisOrientation==="left"?o=Me(o).call(o,a):l=Me(l).call(l,a):r[e[s]]=n.getYRange(a,e[s]));$t.getStackedYRange(o,r,e,"__barStackLeft","left"),$t.getStackedYRange(l,r,e,"__barStackRight","right")}};Ae.prototype._updateYAxis=function(e,t){var r=!1,a=!1,n=!1,s=1e9,o=1e9,l=-1e9,d=-1e9,c,f;if(e.length>0){for(var v=0;v<e.length;v++){var m=this.groups[e[v]];m&&m.options.yAxisOrientation!="right"?(a=!0,s=1e9,l=-1e9):m&&m.options.yAxisOrientation&&(n=!0,o=1e9,d=-1e9)}for(v=0;v<e.length;v++)t.hasOwnProperty(e[v])&&t[e[v]].ignore!==!0&&(c=t[e[v]].min,f=t[e[v]].max,t[e[v]].yAxisOrientation!="right"?(a=!0,s=s>c?c:s,l=l<f?f:l):(n=!0,o=o>c?c:o,d=d<f?f:d));a==!0&&this.yAxisLeft.setRange(s,l),n==!0&&this.yAxisRight.setRange(o,d)}r=this._toggleAxisVisiblity(a,this.yAxisLeft)||r,r=this._toggleAxisVisiblity(n,this.yAxisRight)||r,n==!0&&a==!0?(this.yAxisLeft.drawIcons=!0,this.yAxisRight.drawIcons=!0):(this.yAxisLeft.drawIcons=!1,this.yAxisRight.drawIcons=!1),this.yAxisRight.master=!a,this.yAxisRight.masterAxis=this.yAxisLeft,this.yAxisRight.master==!1?(n==!0?this.yAxisLeft.lineOffset=this.yAxisRight.width:this.yAxisLeft.lineOffset=0,r=this.yAxisLeft.redraw()||r,r=this.yAxisRight.redraw()||r):r=this.yAxisRight.redraw()||r;var g=["__barStackLeft","__barStackRight","__lineStackLeft","__lineStackRight"];for(v=0;v<g.length;v++)Ce(e).call(e,g[v])!=-1&&xt(e).call(e,Ce(e).call(e,g[v]),1);return r};Ae.prototype._toggleAxisVisiblity=function(e,t){var r=!1;return e==!1?t.dom.frame.parentNode&&t.hidden==!1&&(t.hide(),r=!0):!t.dom.frame.parentNode&&t.hidden==!0&&(t.show(),r=!0),r};Ae.prototype._convertXcoordinates=function(e){for(var t=this.body.util.toScreen,r=0;r<e.length;r++)e[r].screen_x=t(e[r].x)+this.props.width,e[r].screen_y=e[r].y,e[r].end!=null?e[r].screen_end=t(e[r].end)+this.props.width:e[r].screen_end=void 0};Ae.prototype._convertYcoordinates=function(e,t){var r=this.yAxisLeft,a=Number(this.svg.style.height.replace("px",""));t.options.yAxisOrientation=="right"&&(r=this.yAxisRight);for(var n=0;n<e.length;n++)e[n].screen_y=Math.round(r.convertValue(e[n].y));t.setZeroPosition(Math.min(a,r.convertValue(0)))};var de="string",ye="boolean",De="number",BJ="array",Gi="date",He="object",HJ="dom",zi="moment",t_="any",WJ={configure:{enabled:{boolean:ye},filter:{boolean:ye,function:"function"},container:{dom:HJ},__type__:{object:He,boolean:ye,function:"function"}},alignCurrentTime:{string:de,undefined:"undefined"},yAxisOrientation:{string:["left","right"]},defaultGroup:{string:de},sort:{boolean:ye},sampling:{boolean:ye},stack:{boolean:ye},graphHeight:{string:de,number:De},shaded:{enabled:{boolean:ye},orientation:{string:["bottom","top","zero","group"]},groupId:{object:He},__type__:{boolean:ye,object:He}},style:{string:["line","bar","points"]},barChart:{width:{number:De},minWidth:{number:De},sideBySide:{boolean:ye},align:{string:["left","center","right"]},__type__:{object:He}},interpolation:{enabled:{boolean:ye},parametrization:{string:["centripetal","chordal","uniform"]},alpha:{number:De},__type__:{object:He,boolean:ye}},drawPoints:{enabled:{boolean:ye},onRender:{function:"function"},size:{number:De},style:{string:["square","circle"]},__type__:{object:He,boolean:ye,function:"function"}},dataAxis:{showMinorLabels:{boolean:ye},showMajorLabels:{boolean:ye},showWeekScale:{boolean:ye},icons:{boolean:ye},width:{string:de,number:De},visible:{boolean:ye},alignZeros:{boolean:ye},left:{range:{min:{number:De,undefined:"undefined"},max:{number:De,undefined:"undefined"},__type__:{object:He}},format:{function:"function"},title:{text:{string:de,number:De,undefined:"undefined"},style:{string:de,undefined:"undefined"},__type__:{object:He}},__type__:{object:He}},right:{range:{min:{number:De,undefined:"undefined"},max:{number:De,undefined:"undefined"},__type__:{object:He}},format:{function:"function"},title:{text:{string:de,number:De,undefined:"undefined"},style:{string:de,undefined:"undefined"},__type__:{object:He}},__type__:{object:He}},__type__:{object:He}},legend:{enabled:{boolean:ye},icons:{boolean:ye},left:{visible:{boolean:ye},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:He}},right:{visible:{boolean:ye},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:He}},__type__:{object:He,boolean:ye}},groups:{visibility:{any:t_},__type__:{object:He}},autoResize:{boolean:ye},throttleRedraw:{number:De},clickToUse:{boolean:ye},end:{number:De,date:Gi,string:de,moment:zi},format:{minorLabels:{millisecond:{string:de,undefined:"undefined"},second:{string:de,undefined:"undefined"},minute:{string:de,undefined:"undefined"},hour:{string:de,undefined:"undefined"},weekday:{string:de,undefined:"undefined"},day:{string:de,undefined:"undefined"},week:{string:de,undefined:"undefined"},month:{string:de,undefined:"undefined"},quarter:{string:de,undefined:"undefined"},year:{string:de,undefined:"undefined"},__type__:{object:He}},majorLabels:{millisecond:{string:de,undefined:"undefined"},second:{string:de,undefined:"undefined"},minute:{string:de,undefined:"undefined"},hour:{string:de,undefined:"undefined"},weekday:{string:de,undefined:"undefined"},day:{string:de,undefined:"undefined"},week:{string:de,undefined:"undefined"},month:{string:de,undefined:"undefined"},quarter:{string:de,undefined:"undefined"},year:{string:de,undefined:"undefined"},__type__:{object:He}},__type__:{object:He}},moment:{function:"function"},height:{string:de,number:De},hiddenDates:{start:{date:Gi,number:De,string:de,moment:zi},end:{date:Gi,number:De,string:de,moment:zi},repeat:{string:de},__type__:{object:He,array:BJ}},locale:{string:de},locales:{__any__:{any:t_},__type__:{object:He}},max:{date:Gi,number:De,string:de,moment:zi},maxHeight:{number:De,string:de},maxMinorChars:{number:De},min:{date:Gi,number:De,string:de,moment:zi},minHeight:{number:De,string:de},moveable:{boolean:ye},multiselect:{boolean:ye},orientation:{string:de},showCurrentTime:{boolean:ye},showMajorLabels:{boolean:ye},showMinorLabels:{boolean:ye},showWeekScale:{boolean:ye},snap:{function:"function",null:"null"},start:{date:Gi,number:De,string:de,moment:zi},timeAxis:{scale:{string:de,undefined:"undefined"},step:{number:De,undefined:"undefined"},__type__:{object:He}},width:{string:de,number:De},zoomable:{boolean:ye},zoomKey:{string:["ctrlKey","altKey","metaKey",""]},zoomMax:{number:De},zoomMin:{number:De},zIndex:{number:De},__type__:{object:He}},GJ={global:{alignCurrentTime:["none","year","month","quarter","week","isoWeek","day","date","hour","minute","second"],sort:!0,sampling:!0,stack:!1,shaded:{enabled:!1,orientation:["zero","top","bottom","group"]},style:["line","bar","points"],barChart:{width:[50,5,100,5],minWidth:[50,5,100,5],sideBySide:!1,align:["left","center","right"]},interpolation:{enabled:!0,parametrization:["centripetal","chordal","uniform"]},drawPoints:{enabled:!0,size:[6,2,30,1],style:["square","circle"]},dataAxis:{showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,width:[40,0,200,1],visible:!0,alignZeros:!0,left:{title:{text:"",style:""}},right:{title:{text:"",style:""}}},legend:{enabled:!1,icons:!0,left:{visible:!0,position:["top-right","bottom-right","top-left","bottom-left"]},right:{visible:!0,position:["top-right","bottom-right","top-left","bottom-left"]}},autoResize:!0,clickToUse:!1,end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",quarter:"[Q]Q",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",quarter:"YYYY",year:""}},height:"",locale:"",max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!0,orientation:["both","bottom","top"],showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,showWeekScale:!1,start:"",width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],zIndex:0}};function pn(e,t,r,a){var n,s,o,l,d,c,f;if(!(ae(r)||on(r))&&r instanceof Object){var v=a;a=r,r=v}a&&a.throttleRedraw&&console.warn('Graph2d option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var m=this;this.defaultOptions={start:null,end:null,autoResize:!0,orientation:{axis:"bottom",item:"bottom"},moment:Tt,width:null,height:null,maxHeight:null,minHeight:null},this.options=x.deepExtend({},this.defaultOptions),this._create(e),this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:P(n=this.on).call(n,this),off:P(s=this.off).call(s,this),emit:P(o=this.emit).call(o,this)},hiddenDates:[],util:{getScale:function(){return m.timeAxis.step.scale},getStep:function(){return m.timeAxis.step.step},toScreen:P(l=m._toScreen).call(l,m),toGlobalScreen:P(d=m._toGlobalScreen).call(d,m),toTime:P(c=m._toTime).call(c,m),toGlobalTime:P(f=m._toGlobalTime).call(f,m)}},this.range=new f1(this.body),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new Rl(this.body),this.components.push(this.timeAxis),this.currentTime=new S1(this.body),this.components.push(this.currentTime),this.linegraph=new Ae(this.body),this.components.push(this.linegraph),this.itemsData=null,this.groupsData=null,this.on("tap",function(g){m.emit("click",m.getEventProperties(g))}),this.on("doubletap",function(g){m.emit("doubleClick",m.getEventProperties(g))}),this.dom.root.oncontextmenu=function(g){m.emit("contextmenu",m.getEventProperties(g))},this.initialFitDone=!1,this.on("changed",function(){if(m.itemsData!=null){if(!m.initialFitDone&&!m.options.rollingMode)if(m.initialFitDone=!0,m.options.start!=null||m.options.end!=null){if(m.options.start==null||m.options.end==null)var g=m.getItemRange();var b=m.options.start!=null?m.options.start:g.min,S=m.options.end!=null?m.options.end:g.max;m.setWindow(b,S,{animation:!1})}else m.fit({animation:!1});!m.initialDrawDone&&(m.initialRangeChangeDone||!m.options.start&&!m.options.end||m.options.rollingMode)&&(m.initialDrawDone=!0,m.dom.root.style.visibility="visible",m.dom.loadingScreen.parentNode.removeChild(m.dom.loadingScreen),m.options.onInitialDrawComplete&&_t(function(){return m.options.onInitialDrawComplete()},0))}}),a&&this.setOptions(a),r&&this.setGroups(r),t&&this.setItems(t),this._redraw()}pn.prototype=new sa;pn.prototype.setOptions=function(e){var t=D1.validate(e,WJ);t===!0&&console.log("%cErrors have been found in the supplied options object.",Vl),sa.prototype.setOptions.call(this,e)};pn.prototype.setItems=function(e){var t=this.itemsData==null,r;if(e?on(e)?r=ba(e):r=ba(new pi(e)):r=null,this.itemsData&&this.itemsData.dispose(),this.itemsData=r,this.linegraph&&this.linegraph.setItems(r!=null?r.rawDS:null),t)if(this.options.start!=null||this.options.end!=null){var a=this.options.start!=null?this.options.start:null,n=this.options.end!=null?this.options.end:null;this.setWindow(a,n,{animation:!1})}else this.fit({animation:!1})};pn.prototype.setGroups=function(e){var t;e?on(e)?t=e:t=new pi(e):t=null,this.groupsData=t,this.linegraph.setGroups(t)};pn.prototype.getLegend=function(e,t,r){return t===void 0&&(t=15),r===void 0&&(r=15),this.linegraph.groups[e]!==void 0?this.linegraph.groups[e].getLegend(t,r):"cannot find group:'"+e+"'"};pn.prototype.isGroupVisible=function(e){return this.linegraph.groups[e]!==void 0?this.linegraph.groups[e].visible&&(this.linegraph.options.groups.visibility[e]===void 0||this.linegraph.options.groups.visibility[e]==!0):!1};pn.prototype.getDataRange=function(){var e=null,t=null;for(var r in this.linegraph.groups)if(this.linegraph.groups.hasOwnProperty(r)&&this.linegraph.groups[r].visible==!0)for(var a=0;a<this.linegraph.groups[r].itemsData.length;a++){var n=this.linegraph.groups[r].itemsData[a],s=x.convert(n.x,"Date").valueOf();e=e==null||e>s?s:e,t=t==null||t<s?s:t}return{min:e!=null?new Date(e):null,max:t!=null?new Date(t):null}};pn.prototype.getEventProperties=function(e){var t=e.center?e.center.x:e.clientX,r=e.center?e.center.y:e.clientY,a=t-x.getAbsoluteLeft(this.dom.centerContainer),n=r-x.getAbsoluteTop(this.dom.centerContainer),s=this._toTime(a),o=zf.customTimeFromTarget(e),l=x.getTarget(e),d=null;x.hasParent(l,this.timeAxis.dom.foreground)||this.timeAxis2&&x.hasParent(l,this.timeAxis2.dom.foreground)?d="axis":x.hasParent(l,this.linegraph.yAxisLeft.dom.frame)||x.hasParent(l,this.linegraph.yAxisRight.dom.frame)?d="data-axis":x.hasParent(l,this.linegraph.legendLeft.dom.frame)||x.hasParent(l,this.linegraph.legendRight.dom.frame)?d="legend":o!=null?d="custom-time":x.hasParent(l,this.currentTime.bar)?d="current-time":x.hasParent(l,this.dom.center)&&(d="background");var c=[],f=this.linegraph.yAxisLeft,v=this.linegraph.yAxisRight;return!f.hidden&&this.itemsData.length>0&&c.push(f.screenToValue(n)),!v.hidden&&this.itemsData.length>0&&c.push(v.screenToValue(n)),{event:e,customTime:o?o.options.id:null,what:d,pageX:e.srcEvent?e.srcEvent.pageX:e.pageX,pageY:e.srcEvent?e.srcEvent.pageY:e.pageY,x:a,y:n,time:s,value:c}};pn.prototype._createConfigurator=function(){return new N1(this,this.dom.container,GJ)};var zJ=GH();Tt.locale(zJ);const UJ=h.defineComponent({name:"reason-explained-modal",components:{},props:{reason_explained:Object,reason:Object},setup(){return{}}}),Nr=(e,t)=>{const r=e.__vccOpts||e;for(const[a,n]of t)r[a]=n;return r},KJ={class:"modal fade",id:"chargeback_reason_explained",tabindex:"1","aria-hidden":"true"},qJ={class:"modal-dialog mw-650px"},XJ={class:"card card-body"},QJ={class:"card-title fs-5 fw-bolder"},ZJ={key:0,src:"https://app.riskdefy.io/media/svg/card-logos/visa.svg",alt:"",class:"h-25px pe-5"},JJ={key:1,src:"https://app.riskdefy.io/media/svg/card-logos/american-express.svg",alt:"",class:"h-25px pe-5"},eee={key:2,src:"https://app.riskdefy.io/media/svg/card-logos/mastercard.svg",alt:"",class:"h-25px pe-5"},tee={key:3,src:"https://app.riskdefy.io/media/svg/card-logos/discovercard.svg",alt:"",class:"h-25px pe-5"},ree={class:"mh-300px scroll-y m-5 py-5"},nee={class:"d-flex align-items-center"},iee={class:"ms-5"},aee={class:"fw-bold text-gray-800"};function see(e,t,r,a,n,s){return h.openBlock(),h.createElementBlock("div",KJ,[h.createElementVNode("div",qJ,[h.createElementVNode("div",XJ,[h.createElementVNode("div",QJ,[e.reason.card_brand==="Visa"?(h.openBlock(),h.createElementBlock("img",ZJ)):h.createCommentVNode("",!0),e.reason.card_brand==="American Express"?(h.openBlock(),h.createElementBlock("img",JJ)):h.createCommentVNode("",!0),e.reason.card_brand==="Mastercard"?(h.openBlock(),h.createElementBlock("img",eee)):h.createCommentVNode("",!0),e.reason.card_brand==="Discover"?(h.openBlock(),h.createElementBlock("img",tee)):h.createCommentVNode("",!0),h.createTextVNode(" "+h.toDisplayString(e.reason.code),1)]),h.createElementVNode("div",null,h.toDisplayString(e.reason.message),1),h.createElementVNode("div",ree,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.reason_explained.message.explanations,(o,l)=>(h.openBlock(),h.createElementBlock("div",{key:l,class:"d-flex flex-stack py-4 border-bottom border-gray-300 border-bottom-dashed"},[h.createElementVNode("div",nee,[h.createElementVNode("div",iee,[h.createElementVNode("div",aee,h.toDisplayString(o),1)])])]))),128))])])])])}const oee=Nr(UJ,[["render",see]]),lee=h.defineComponent({name:"nmi-details",props:{incoming:{type:Object,required:!0}},setup(e){const t=h.toRef(e,"incoming"),r=h.computed(()=>{var c;return(c=e.incoming)==null?void 0:c.card_holder}),a=h.computed(()=>{var c;return(c=e.incoming)==null?void 0:c.card}),n=h.computed(()=>{var c,f;return((f=(c=e.incoming)==null?void 0:c.transaction)==null?void 0:f.action)||[]}),s=h.computed(()=>{var c,f;return((f=(c=e.incoming)==null?void 0:c.order_details)==null?void 0:f.items)||[]}),o=h.computed(()=>e.incoming.transaction),l=h.computed(()=>{const c=n.value;return c.length>0?c[c.length-1].response_text:null}),d=h.computed(()=>{const c=r.value.phone||"";return c.length===10?`1 (${c.slice(0,3)}) ${c.slice(3,6)}-${c.slice(6)}`:c});return{lastAction:l,formattedPhone:d,card:a,incomingData:t,transaction:o,actions:n,orders:s,cardholder:r}}}),dee={class:"accordion-item"},cee={id:"kt_accordion_4_body_4",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_4_body_4","data-bs-parent":"#kt_accordion_1"},uee={class:"accordion-body pb-1"},hee={class:"d-flex flex-wrap py-2 fs-7"},fee={class:"flex-equal ms-2 me-5"},pee={class:"table table-flush fw-bold gy-1"},vee={class:"text-gray-800"},mee={class:"text-gray-800"},gee={class:"text-gray-800"},yee={class:"text-gray-800"},_ee={class:"text-gray-800"},bee={class:"flex-equal"},wee={class:"table table-flush fw-bold gy-1"},Eee={class:"text-gray-800 text-hover-primary"},See={class:"text-gray-800 text-hover-primary"},kee={class:"text-gray-800 text-hover-primary"},xee={class:"text-gray-800 text-hover-primary"},Tee={class:"text-gray-800 text-hover-primary"};function $ee(e,t,r,a,n,s){return h.openBlock(),h.createElementBlock("div",dee,[t[10]||(t[10]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_4_header_4"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-normal collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_4_body_4","aria-expanded":"false","aria-controls":"kt_accordion_4_body_4"}," Transaction Details ")],-1)),h.createElementVNode("div",cee,[h.createElementVNode("div",uee,[h.createElementVNode("div",hee,[h.createElementVNode("div",fee,[h.createElementVNode("table",pee,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[0]||(t[0]=h.createElementVNode("td",{class:"text-muted w-auto"},"Transaction Id:",-1)),h.createElementVNode("td",vee,h.toDisplayString(e.transaction.transaction_id),1)]),h.createElementVNode("tr",null,[t[1]||(t[1]=h.createElementVNode("td",{class:"text-muted w-auto"},"Auth Code:",-1)),h.createElementVNode("td",mee,h.toDisplayString(e.transaction.authorization_code),1)]),h.createElementVNode("tr",null,[t[2]||(t[2]=h.createElementVNode("td",{class:"text-muted w-auto"},"CAVV:",-1)),h.createElementVNode("td",gee,h.toDisplayString(e.transaction.cavv),1)]),h.createElementVNode("tr",null,[t[3]||(t[3]=h.createElementVNode("td",{class:"text-muted w-auto"},"ECI:",-1)),h.createElementVNode("td",yee,h.toDisplayString(e.transaction.eci),1)]),h.createElementVNode("tr",null,[t[4]||(t[4]=h.createElementVNode("td",{class:"text-muted w-auto"},"Trans Date:",-1)),h.createElementVNode("td",_ee,h.toDisplayString(Array.isArray(e.transaction.action)?e.transaction.action[0].date:e.transaction.action.date),1)])])])]),h.createElementVNode("div",bee,[h.createElementVNode("table",wee,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[5]||(t[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Amount:",-1)),h.createElementVNode("td",Eee," $"+h.toDisplayString(Array.isArray(e.transaction.action)?e.transaction.action[0].amount:e.transaction.action.amount),1)]),h.createElementVNode("tr",null,[t[6]||(t[6]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"AVS:",-1)),h.createElementVNode("td",See,h.toDisplayString(e.transaction.avs_response),1)]),h.createElementVNode("tr",null,[t[7]||(t[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CSC:",-1)),h.createElementVNode("td",kee,h.toDisplayString(e.transaction.csc_response),1)]),h.createElementVNode("tr",null,[t[8]||(t[8]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CC Bin:",-1)),h.createElementVNode("td",xee,h.toDisplayString(e.transaction.cc_bin),1)]),h.createElementVNode("tr",null,[t[9]||(t[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CC Number:",-1)),h.createElementVNode("td",Tee,h.toDisplayString(e.transaction.cc_number),1)])])])])])])])])}const Dee=Nr(lee,[["render",$ee],["__scopeId","data-v-5d7c95ae"]]),Nee=h.defineComponent({name:"usaepay-details",props:{incoming:Object},setup(){return{}}}),Cee={class:"rounded border pt-0 mb-5"},Oee={class:"accordion",id:"kt_accordion_1"},Aee={class:"accordion-item"},Iee={id:"kt_accordion_1_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_1_header_1","data-bs-parent":"#kt_accordion_1",style:{}},Pee={class:"accordion-body"},Mee={class:"mb-0"},Ree={class:"table table-flush fw-bold gy-1"},Lee={class:"text-gray-800"},Vee={class:"text-gray-800"},Fee={class:"text-gray-800"},Yee={class:"text-gray-800"},jee={class:"text-gray-800"},Bee={class:"text-gray-800"},Hee={class:"text-gray-800"},Wee={class:"text-gray-800"},Gee={class:"text-gray-800"},zee={class:"text-gray-800"},Uee={class:"accordion-item"},Kee={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},qee={class:"accordion-body"},Xee={class:"mb-0"},Qee={class:"accordion-item"},Zee={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},Jee={class:"accordion-body"},ete={class:"mb-0"};function tte(e,t,r,a,n,s){var o,l,d,c,f,v,m,g,b,S,w,k;return h.openBlock(),h.createElementBlock("div",Cee,[h.createElementVNode("div",Oee,[h.createElementVNode("div",Aee,[t[14]||(t[14]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_1","aria-expanded":"true","aria-controls":"kt_accordion_1_body_1"}," Location Member Details ")],-1)),h.createElementVNode("div",Iee,[h.createElementVNode("div",Pee,[h.createElementVNode("div",Mee,[h.createElementVNode("table",Ree,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[0]||(t[0]=h.createElementVNode("td",{class:"ps-5 text-muted min-w-125px w-125px"}," Account Holder: ",-1)),h.createElementVNode("td",Lee,h.toDisplayString((o=e.incoming)==null?void 0:o.transaction.AccountHolder),1),t[1]||(t[1]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Transaction Id: ",-1)),h.createElementVNode("td",Vee,h.toDisplayString((l=e.incoming)==null?void 0:l.transaction.Response.RefNum),1)]),t[10]||(t[10]=h.createElementVNode("tr",null,[h.createElementVNode("td"),h.createElementVNode("td")],-1)),h.createElementVNode("tr",null,[t[2]||(t[2]=h.createElementVNode("td",{class:"ps-5 text-muted min-w-125px w-125px"}," Batch Number: ",-1)),h.createElementVNode("td",Fee,h.toDisplayString((d=e.incoming)==null?void 0:d.transaction.Response.BatchNum),1),t[3]||(t[3]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Batch RefNumber: ",-1)),h.createElementVNode("td",Yee,h.toDisplayString((c=e.incoming)==null?void 0:c.transaction.Response.BatchRefNum),1)]),t[11]||(t[11]=h.createElementVNode("tr",null,[h.createElementVNode("td"),h.createElementVNode("td")],-1)),h.createElementVNode("tr",null,[t[4]||(t[4]=h.createElementVNode("td",{class:"ps-5 text-muted min-w-125px w-125px"},"Result:",-1)),h.createElementVNode("td",jee,h.toDisplayString((f=e.incoming)==null?void 0:f.transaction.Response.Result),1),t[5]||(t[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Result Code:",-1)),h.createElementVNode("td",Bee,h.toDisplayString((v=e.incoming)==null?void 0:v.transaction.Response.ResultCode),1)]),t[12]||(t[12]=h.createElementVNode("tr",null,[h.createElementVNode("td"),h.createElementVNode("td")],-1)),h.createElementVNode("tr",null,[t[6]||(t[6]=h.createElementVNode("td",{class:"ps-5 text-muted min-w-125px w-125px"},"Status:",-1)),h.createElementVNode("td",Hee,h.toDisplayString((m=e.incoming)==null?void 0:m.transaction.Response.Status),1),t[7]||(t[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Status Code:",-1)),h.createElementVNode("td",Wee,h.toDisplayString((g=e.incoming)==null?void 0:g.transaction.Response.StatusCode),1)]),t[13]||(t[13]=h.createElementVNode("tr",null,[h.createElementVNode("td"),h.createElementVNode("td")],-1)),h.createElementVNode("tr",null,[t[8]||(t[8]=h.createElementVNode("td",{class:"ps-5 text-muted min-w-125px w-125px"}," CardPresent: ",-1)),h.createElementVNode("td",Gee,h.toDisplayString((b=e.incoming)==null?void 0:b.transaction.CreditCardData.CardPresent),1),t[9]||(t[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Product:",-1)),h.createElementVNode("td",zee,h.toDisplayString((S=e.incoming)==null?void 0:S.order_details.items[0].name),1)])])])])])])]),h.createElementVNode("div",Uee,[t[15]||(t[15]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_2","aria-expanded":"false","aria-controls":"kt_accordion_1_body_2"}," Transaction Details ")],-1)),h.createElementVNode("div",Kee,[h.createElementVNode("div",qee,[h.createElementVNode("div",Xee,[h.createElementVNode("h6",null,"parsing relax to parse "+h.toDisplayString((w=e.incoming)==null?void 0:w.connection_id),1)])])])]),h.createElementVNode("div",Qee,[t[16]||(t[16]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_3","aria-expanded":"false","aria-controls":"kt_accordion_1_body_3"}," Cardholder Details ")],-1)),h.createElementVNode("div",Zee,[h.createElementVNode("div",Jee,[h.createElementVNode("div",ete,[h.createElementVNode("h6",null,"parsing relax to parse "+h.toDisplayString((k=e.incoming)==null?void 0:k.connection_id),1)])])])])])])}const rte=Nr(Nee,[["render",tte]]),nte=h.defineComponent({name:"squareup-details",props:{incoming:Object},setup(){return{}}}),ite={class:"rounded border pt-0 mb-5"},ate={class:"accordion fs-7",id:"kt_accordion_1"},ste={class:"accordion-item"},ote={id:"kt_accordion_1_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_1_header_1","data-bs-parent":"#kt_accordion_1",style:{}},lte={class:"accordion-body"},dte={class:"mb-0"},cte={class:"table-responsive"},ute={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},hte={class:"fw-bold text-gray-800"},fte={class:"w-50px"},pte={class:"w-50px"},vte={class:"w-50px text-end pe-5"},mte={class:"accordion-item"},gte={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},yte={class:"accordion-body"},_te={class:"mb-0"},bte={class:"d-flex flex-wrap py-2"},wte={class:"flex-equal ms-2 me-2"},Ete={class:"table table-flush fw-bold gy-1 mb-0"},Ste={class:"text-gray-800"},kte={class:"text-gray-800"},xte={class:"text-gray-800"},Tte={class:"text-gray-800"},$te={class:"text-gray-800"},Dte={class:"flex-equal ms-2 me-2"},Nte={class:"table table-flush fw-bold gy-1"},Cte={class:"text-gray-800"},Ote={class:"text-gray-800"},Ate={class:"text-gray-800"},Ite={class:"text-gray-800"},Pte={class:"text-gray-800"},Mte={class:"accordion-item"},Rte={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},Lte={class:"accordion-body"},Vte={class:"mb-0"},Fte={class:"d-flex flex-wrap py-5"},Yte={class:"flex-equal ms-2 me-5"},jte={class:"table table-flush fw-bold gy-1"},Bte={class:"text-gray-800 text-hover-primary"},Hte={class:"text-gray-800 text-hover-primary"},Wte={class:"text-gray-800 text-hover-primary"},Gte={class:"text-gray-800 text-hover-primary"},zte={class:"flex-equal"},Ute={class:"table table-flush fw-bold gy-1"},Kte={class:"text-gray-800"},qte={class:"text-gray-800"},Xte={class:"text-gray-800"},Qte={class:"text-gray-800 pt-4"};function Zte(e,t,r,a,n,s){return h.openBlock(),h.createElementBlock("div",ite,[h.createElementVNode("div",ate,[h.createElementVNode("div",ste,[t[1]||(t[1]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_1","aria-expanded":"true","aria-controls":"kt_accordion_1_body_1"}," Order Details ")],-1)),h.createElementVNode("div",ote,[h.createElementVNode("div",lte,[h.createElementVNode("div",dte,[h.createElementVNode("div",cte,[h.createElementVNode("table",ute,[t[0]||(t[0]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-bolder fs-7 text-uppercase gs-0"},[h.createElementVNode("th",{class:"min-w-150px"},"Line Item Id"),h.createElementVNode("th",{class:"min-w-100px"},"Item Type"),h.createElementVNode("th",{class:"min-w-50px"},"Qty"),h.createElementVNode("th",{class:"text-end min-w-100px pe-5"},"Price")])],-1)),h.createElementVNode("tbody",hte,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.incoming.order_details.order.line_items,(o,l)=>(h.openBlock(),h.createElementBlock("tr",{key:l},[h.createElementVNode("td",null,[h.createElementVNode("div",fte,h.toDisplayString(o.uid),1)]),h.createElementVNode("td",null,h.toDisplayString(o.item_type),1),h.createElementVNode("td",pte,h.toDisplayString(o.quantity),1),h.createElementVNode("td",vte,h.toDisplayString(o.base_price_money.amount),1)]))),128))])])])])])])]),h.createElementVNode("div",mte,[t[12]||(t[12]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_2","aria-expanded":"false","aria-controls":"kt_accordion_1_body_2"}," Transaction Details ")],-1)),h.createElementVNode("div",gte,[h.createElementVNode("div",yte,[h.createElementVNode("div",_te,[h.createElementVNode("div",bte,[h.createElementVNode("div",wte,[h.createElementVNode("table",Ete,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[2]||(t[2]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Transaction Id: ",-1)),h.createElementVNode("td",Ste,h.toDisplayString(e.incoming.transaction.payment.id),1)]),h.createElementVNode("tr",null,[t[3]||(t[3]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Auth Code: ",-1)),h.createElementVNode("td",kte,h.toDisplayString(e.incoming.transaction.payment.delay_duration),1)]),h.createElementVNode("tr",null,[t[4]||(t[4]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"AVS:",-1)),h.createElementVNode("td",xte,h.toDisplayString(e.incoming.transaction.payment.card_details.avs_status),1)]),h.createElementVNode("tr",null,[t[5]||(t[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CVV:",-1)),h.createElementVNode("td",Tte,h.toDisplayString(e.incoming.transaction.payment.card_details.cvv_status),1)]),h.createElementVNode("tr",null,[t[6]||(t[6]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Created Date: ",-1)),h.createElementVNode("td",$te,h.toDisplayString(e.incoming.transaction.payment.created_at),1)])])])]),h.createElementVNode("div",Dte,[h.createElementVNode("table",Nte,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[7]||(t[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Order Id: ",-1)),h.createElementVNode("td",Cte,h.toDisplayString(e.incoming.transaction.payment.order_id),1)]),h.createElementVNode("tr",null,[t[8]||(t[8]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Status:",-1)),h.createElementVNode("td",Ote,h.toDisplayString(e.incoming.transaction.payment.status),1)]),h.createElementVNode("tr",null,[t[9]||(t[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Type:",-1)),h.createElementVNode("td",Ate,h.toDisplayString(e.incoming.transaction.payment.card_details.status),1)]),h.createElementVNode("tr",null,[t[10]||(t[10]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Receipt Number: ",-1)),h.createElementVNode("td",Ite,h.toDisplayString(e.incoming.transaction.payment.receipt_number),1)]),h.createElementVNode("tr",null,[t[11]||(t[11]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Descriptor: ",-1)),h.createElementVNode("td",Pte,h.toDisplayString(e.incoming.transaction.payment.card_details.statement_description),1)])])])])])])])])]),h.createElementVNode("div",Mte,[t[22]||(t[22]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_3","aria-expanded":"false","aria-controls":"kt_accordion_1_body_3"}," Cardholder Details ")],-1)),h.createElementVNode("div",Rte,[h.createElementVNode("div",Lte,[h.createElementVNode("div",Vte,[h.createElementVNode("div",Fte,[h.createElementVNode("div",Yte,[h.createElementVNode("table",jte,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[13]||(t[13]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," First Name ",-1)),h.createElementVNode("td",Bte,h.toDisplayString(e.incoming.card_holder.first_name),1)]),h.createElementVNode("tr",null,[t[14]||(t[14]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Last Name ",-1)),h.createElementVNode("td",Hte,h.toDisplayString(e.incoming.card_holder.last_name),1)]),h.createElementVNode("tr",null,[t[15]||(t[15]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Email",-1)),h.createElementVNode("td",Wte,h.toDisplayString(e.incoming.card_holder.email),1)]),h.createElementVNode("tr",null,[t[17]||(t[17]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Address:",-1)),h.createElementVNode("td",Gte,[h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_address),1),t[16]||(t[16]=h.createElementVNode("br",null,null,-1)),h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_zip),1)])])])])]),h.createElementVNode("div",zte,[h.createElementVNode("table",Ute,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[18]||(t[18]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Customer Id: ",-1)),h.createElementVNode("td",Kte,h.toDisplayString(e.incoming.card_holder.customer_id),1)]),h.createElementVNode("tr",null,[t[19]||(t[19]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Source:",-1)),h.createElementVNode("td",qte,h.toDisplayString(e.incoming.card_holder.source),1)]),h.createElementVNode("tr",null,[t[20]||(t[20]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Phone:",-1)),h.createElementVNode("td",Xte,h.toDisplayString(e.incoming.card_holder.phone),1)]),h.createElementVNode("tr",null,[t[21]||(t[21]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},[h.createTextVNode(" Email "),h.createElementVNode("br"),h.createTextVNode(" Subscription: ")],-1)),h.createElementVNode("td",Qte,h.toDisplayString(e.incoming.card_holder.preferences),1)])])])])])])])])])])])}const Jte=Nr(nte,[["render",Zte]]),ere=h.defineComponent({name:"nmi-details",props:{incoming:Object},setup(){return{}}}),tre={class:"rounded border pt-0 mb-5"},rre={class:"accordion fs-7",id:"kt_accordion_1"},nre={class:"accordion-item"},ire={id:"kt_accordion_1_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_1_header_1","data-bs-parent":"#kt_accordion_1",style:{}},are={class:"accordion-body"},sre={class:"mb-0"},ore={key:0,class:"d-flex flex-wrap py-5"},lre={key:1,class:"table-responsive"},dre={class:"table align-middle table-row-dashed gy-4 mb-0 fs-7"},cre={class:"fw-bold text-gray-800"},ure={class:"w-50px"},hre={class:"w-50px"},fre={class:"w-50px text-end pe-5"},pre={class:"accordion-item"},vre={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},mre={class:"accordion-body"},gre={class:"mb-0"},yre={class:"d-flex flex-wrap py-2"},_re={class:"flex-equal ms-2 me-2"},bre={class:"table table-flush fw-bold gy-1 mb-0"},wre={class:"text-gray-800"},Ere={class:"text-gray-800"},Sre={class:"text-gray-800"},kre={class:"text-gray-800"},xre={class:"text-gray-800"},Tre={class:"flex-equal ms-2 me-2"},$re={class:"table table-flush fw-bold gy-1"},Dre={class:"text-gray-800"},Nre={class:"text-gray-800"},Cre={class:"text-gray-800"},Ore={class:"text-gray-800"},Are={class:"text-gray-800"},Ire={class:"accordion-item"},Pre={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},Mre={class:"accordion-body"},Rre={class:"mb-0"},Lre={class:"d-flex flex-wrap py-5"},Vre={class:"flex-equal ms-2 me-5"},Fre={class:"table table-flush fw-bold gy-1"},Yre={class:"text-gray-800 text-hover-primary"},jre={class:"text-gray-800 text-hover-primary"},Bre={class:"text-gray-800 text-hover-primary"},Hre={class:"text-gray-800 text-hover-primary"},Wre={class:"flex-equal"},Gre={class:"table table-flush fw-bold gy-1"},zre={class:"text-gray-800"},Ure={class:"text-gray-800"},Kre={class:"text-gray-800"},qre={class:"text-gray-800"};function Xre(e,t,r,a,n,s){return h.openBlock(),h.createElementBlock("div",tre,[h.createElementVNode("div",rre,[h.createElementVNode("div",nre,[t[2]||(t[2]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_1","aria-expanded":"true","aria-controls":"kt_accordion_1_body_1"}," Order Details ")],-1)),h.createElementVNode("div",ire,[h.createElementVNode("div",are,[h.createElementVNode("div",sre,[e.incoming.order_details==""?(h.openBlock(),h.createElementBlock("div",ore,t[0]||(t[0]=[h.createElementVNode("div",{class:"mb-0"},[h.createElementVNode("span",{class:"fs-7 text-gray-500"},"No Data Available")],-1)]))):(h.openBlock(),h.createElementBlock("div",lre,[h.createElementVNode("table",dre,[t[1]||(t[1]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-bolder fs-7 text-uppercase gs-0"},[h.createElementVNode("th",{class:"min-w-150px"},"Item Id"),h.createElementVNode("th",{class:"min-w-100px"},"Item Name"),h.createElementVNode("th",{class:"min-w-50px"},"Qty"),h.createElementVNode("th",{class:"text-end min-w-100px pe-5"},"Price")])],-1)),h.createElementVNode("tbody",cre,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.incoming.order_details.items,(o,l)=>(h.openBlock(),h.createElementBlock("tr",{key:l},[h.createElementVNode("td",null,[h.createElementVNode("div",ure,h.toDisplayString(o.id),1)]),h.createElementVNode("td",null,h.toDisplayString(o.name),1),h.createElementVNode("td",hre,h.toDisplayString(o.quantity),1),h.createElementVNode("td",fre,h.toDisplayString(o.unit_price),1)]))),128))])])]))])])])]),h.createElementVNode("div",pre,[t[13]||(t[13]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_2","aria-expanded":"false","aria-controls":"kt_accordion_1_body_2"}," Transaction Details ")],-1)),h.createElementVNode("div",vre,[h.createElementVNode("div",mre,[h.createElementVNode("div",gre,[h.createElementVNode("div",yre,[h.createElementVNode("div",_re,[h.createElementVNode("table",bre,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[3]||(t[3]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Transaction Id: ",-1)),h.createElementVNode("td",wre,h.toDisplayString(e.incoming.transaction.id),1)]),h.createElementVNode("tr",null,[t[4]||(t[4]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Auth Code: ",-1)),h.createElementVNode("td",Ere,h.toDisplayString(e.incoming.transaction.response.card.auth_code),1)]),h.createElementVNode("tr",null,[t[5]||(t[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"AVS:",-1)),h.createElementVNode("td",Sre,h.toDisplayString(e.incoming.transaction.response.card.avs_response_code),1)]),h.createElementVNode("tr",null,[t[6]||(t[6]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CVV:",-1)),h.createElementVNode("td",kre,h.toDisplayString(e.incoming.transaction.response.card.cvv_response_code),1)]),h.createElementVNode("tr",null,[t[7]||(t[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Created:",-1)),h.createElementVNode("td",xre,h.toDisplayString(e.incoming.transaction.created_at),1)])])])]),h.createElementVNode("div",Tre,[h.createElementVNode("table",$re,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[8]||(t[8]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Order Id: ",-1)),h.createElementVNode("td",Dre,h.toDisplayString(e.incoming.transaction.order_id),1)]),h.createElementVNode("tr",null,[t[9]||(t[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Status:",-1)),h.createElementVNode("td",Nre,h.toDisplayString(e.incoming.transaction.response.card.status),1)]),h.createElementVNode("tr",null,[t[10]||(t[10]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Type:",-1)),h.createElementVNode("td",Cre,h.toDisplayString(e.incoming.transaction.type),1)]),h.createElementVNode("tr",null,[t[11]||(t[11]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Descriptor: ",-1)),h.createElementVNode("td",Ore,h.toDisplayString(e.incoming.transaction.description),1)]),h.createElementVNode("tr",null,[t[12]||(t[12]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Receipt Emailed: ",-1)),h.createElementVNode("td",Are,h.toDisplayString(e.incoming.transaction.email_receipt),1)])])])])])])])])]),h.createElementVNode("div",Ire,[t[23]||(t[23]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_3","aria-expanded":"false","aria-controls":"kt_accordion_1_body_3"}," Cardholder Details ")],-1)),h.createElementVNode("div",Pre,[h.createElementVNode("div",Mre,[h.createElementVNode("div",Rre,[h.createElementVNode("div",Lre,[h.createElementVNode("div",Vre,[h.createElementVNode("table",Fre,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[14]||(t[14]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," First Name ",-1)),h.createElementVNode("td",Yre,h.toDisplayString(e.incoming.card_holder.first_name),1)]),h.createElementVNode("tr",null,[t[15]||(t[15]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Last Name ",-1)),h.createElementVNode("td",jre,h.toDisplayString(e.incoming.card_holder.last_name),1)]),h.createElementVNode("tr",null,[t[16]||(t[16]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Email",-1)),h.createElementVNode("td",Bre,h.toDisplayString(e.incoming.card_holder.email),1)]),h.createElementVNode("tr",null,[t[18]||(t[18]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Address:",-1)),h.createElementVNode("td",Hre,[h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_address),1),t[17]||(t[17]=h.createElementVNode("br",null,null,-1)),h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_zip),1)])])])])]),h.createElementVNode("div",Wre,[h.createElementVNode("table",Gre,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[19]||(t[19]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Customer Id: ",-1)),h.createElementVNode("td",zre,h.toDisplayString(e.incoming.card_holder.customer_id),1)]),h.createElementVNode("tr",null,[t[20]||(t[20]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Source:",-1)),h.createElementVNode("td",Ure,h.toDisplayString(e.incoming.card_holder.source),1)]),h.createElementVNode("tr",null,[t[21]||(t[21]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Phone:",-1)),h.createElementVNode("td",Kre,h.toDisplayString(e.incoming.card_holder.phone),1)]),h.createElementVNode("tr",null,[t[22]||(t[22]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," IP Address: ",-1)),h.createElementVNode("td",qre,h.toDisplayString(e.incoming.card_holder.ip_address),1)])])])])])])])])])])])}const Qre=Nr(ere,[["render",Xre]]),Zre=h.defineComponent({name:"nmi-details",props:{incoming:Object},setup(){return{}}}),Jre={class:"rounded border pt-0 mb-5"},ene={class:"accordion fs-7",id:"kt_accordion_1"},tne={class:"accordion-item"},rne={id:"kt_accordion_1_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_1_header_1","data-bs-parent":"#kt_accordion_1",style:{}},nne={class:"accordion-body"},ine={class:"mb-0"},ane={key:0,class:"d-flex flex-wrap py-5"},sne={key:1,class:"table-responsive"},one={class:"table align-middle table-row-dashed gy-4 mb-0 fs-7"},lne={class:"fw-bold text-gray-800"},dne={class:"w-50px"},cne={class:"w-50px"},une={class:"w-50px text-end pe-5"},hne={class:"accordion-item"},fne={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},pne={class:"accordion-body"},vne={class:"mb-0"},mne={class:"d-flex flex-wrap py-2"},gne={class:"flex-equal ms-2 me-2"},yne={class:"table table-flush fw-bold gy-1 mb-0"},_ne={class:"text-gray-800"},bne={class:"text-gray-800"},wne={class:"text-gray-800"},Ene={class:"text-gray-800"},Sne={class:"text-gray-800"},kne={class:"flex-equal ms-2 me-2"},xne={class:"table table-flush fw-bold gy-1"},Tne={class:"text-gray-800"},$ne={class:"text-gray-800"},Dne={class:"text-gray-800"},Nne={class:"text-gray-800"},Cne={class:"text-gray-800"},One={class:"accordion-item"},Ane={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},Ine={class:"accordion-body"},Pne={class:"mb-0"},Mne={class:"d-flex flex-wrap py-5"},Rne={class:"flex-equal ms-2 me-5"},Lne={class:"table table-flush fw-bold gy-1"},Vne={class:"text-gray-800 text-hover-primary"},Fne={class:"text-gray-800 text-hover-primary"},Yne={class:"text-gray-800 text-hover-primary"},jne={class:"text-gray-800 text-hover-primary"},Bne={class:"flex-equal"},Hne={class:"table table-flush fw-bold gy-1"},Wne={class:"text-gray-800"},Gne={class:"text-gray-800"},zne={key:0,class:"text-gray-800"},Une={key:1,class:"text-gray-800"},Kne={class:"text-gray-800"};function qne(e,t,r,a,n,s){return h.openBlock(),h.createElementBlock("div",Jre,[h.createElementVNode("div",ene,[h.createElementVNode("div",tne,[t[2]||(t[2]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_1","aria-expanded":"true","aria-controls":"kt_accordion_1_body_1"}," Order Details ")],-1)),h.createElementVNode("div",rne,[h.createElementVNode("div",nne,[h.createElementVNode("div",ine,[e.incoming.order_details==""?(h.openBlock(),h.createElementBlock("div",ane,t[0]||(t[0]=[h.createElementVNode("div",{class:"mb-0"},[h.createElementVNode("span",{class:"fs-7 text-gray-500"},"No Data Available")],-1)]))):(h.openBlock(),h.createElementBlock("div",sne,[h.createElementVNode("table",one,[t[1]||(t[1]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-bolder fs-7 text-uppercase gs-0"},[h.createElementVNode("th",{class:"min-w-150px"},"Item Id"),h.createElementVNode("th",{class:"min-w-100px"},"Item Name"),h.createElementVNode("th",{class:"min-w-50px"},"Qty"),h.createElementVNode("th",{class:"text-end min-w-100px pe-5"},"Price")])],-1)),h.createElementVNode("tbody",lne,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.incoming.order_details.items,(o,l)=>(h.openBlock(),h.createElementBlock("tr",{key:l},[h.createElementVNode("td",null,[h.createElementVNode("div",dne,h.toDisplayString(o.purchaseId),1)]),h.createElementVNode("td",null,h.toDisplayString(o.name),1),h.createElementVNode("td",cne,h.toDisplayString(o.qty),1),h.createElementVNode("td",une,h.toDisplayString(o.price),1)]))),128))])])]))])])])]),h.createElementVNode("div",hne,[t[13]||(t[13]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_2","aria-expanded":"false","aria-controls":"kt_accordion_1_body_2"}," Transaction Details ")],-1)),h.createElementVNode("div",fne,[h.createElementVNode("div",pne,[h.createElementVNode("div",vne,[h.createElementVNode("div",mne,[h.createElementVNode("div",gne,[h.createElementVNode("table",yne,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[3]||(t[3]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Transaction Id: ",-1)),h.createElementVNode("td",_ne,h.toDisplayString(e.incoming.transaction["Transaction ID"]),1)]),h.createElementVNode("tr",null,[t[4]||(t[4]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Auth Code: ",-1)),h.createElementVNode("td",bne,h.toDisplayString(e.incoming.transaction["Auth Code"]),1)]),h.createElementVNode("tr",null,[t[5]||(t[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"AVS:",-1)),h.createElementVNode("td",wne,h.toDisplayString(e.incoming.transaction.AVS),1)]),h.createElementVNode("tr",null,[t[6]||(t[6]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CVV:",-1)),h.createElementVNode("td",Ene,h.toDisplayString(e.incoming.transaction.CVV),1)]),h.createElementVNode("tr",null,[t[7]||(t[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Created:",-1)),h.createElementVNode("td",Sne,h.toDisplayString(e.incoming.transaction.Date),1)])])])]),h.createElementVNode("div",kne,[h.createElementVNode("table",xne,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[8]||(t[8]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Order Id: ",-1)),h.createElementVNode("td",Tne,h.toDisplayString(e.incoming.transaction["PPP Order ID"]),1)]),h.createElementVNode("tr",null,[t[9]||(t[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Status:",-1)),h.createElementVNode("td",$ne,h.toDisplayString(e.incoming.transaction["Transaction Result"]),1)]),h.createElementVNode("tr",null,[t[10]||(t[10]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Type:",-1)),h.createElementVNode("td",Dne,h.toDisplayString(e.incoming.transaction["Transaction Type"]),1)]),h.createElementVNode("tr",null,[t[11]||(t[11]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Descriptor: ",-1)),h.createElementVNode("td",Nne,h.toDisplayString(e.incoming.transaction.URL),1)]),h.createElementVNode("tr",null,[t[12]||(t[12]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Scheme Identifier: ",-1)),h.createElementVNode("td",Cne,h.toDisplayString(e.incoming.transaction["External Scheme Identifier"]),1)])])])])])])])])]),h.createElementVNode("div",One,[t[23]||(t[23]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_3","aria-expanded":"false","aria-controls":"kt_accordion_1_body_3"}," Cardholder Details ")],-1)),h.createElementVNode("div",Ane,[h.createElementVNode("div",Ine,[h.createElementVNode("div",Pne,[h.createElementVNode("div",Mne,[h.createElementVNode("div",Rne,[h.createElementVNode("table",Lne,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[14]||(t[14]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," First Name ",-1)),h.createElementVNode("td",Vne,h.toDisplayString(e.incoming.card_holder.first_name),1)]),h.createElementVNode("tr",null,[t[15]||(t[15]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Last Name ",-1)),h.createElementVNode("td",Fne,h.toDisplayString(e.incoming.card_holder.last_name),1)]),h.createElementVNode("tr",null,[t[16]||(t[16]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Email",-1)),h.createElementVNode("td",Yne,h.toDisplayString(e.incoming.card_holder.email),1)]),h.createElementVNode("tr",null,[t[18]||(t[18]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Address:",-1)),h.createElementVNode("td",jne,[h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_address),1),t[17]||(t[17]=h.createElementVNode("br",null,null,-1)),h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_zip),1)])])])])]),h.createElementVNode("div",Bne,[h.createElementVNode("table",Hne,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[19]||(t[19]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Customer Id: ",-1)),h.createElementVNode("td",Wne,h.toDisplayString(e.incoming.card_holder.customer_id),1)]),h.createElementVNode("tr",null,[t[20]||(t[20]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Lifecycle ID: ",-1)),h.createElementVNode("td",Gne,h.toDisplayString(e.incoming.transaction["Lifecycle ID"]),1)]),h.createElementVNode("tr",null,[t[21]||(t[21]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Phone:",-1)),e.incoming.card_holder.phone==""?(h.openBlock(),h.createElementBlock("td",zne," Not Provided ")):(h.openBlock(),h.createElementBlock("td",Une,h.toDisplayString(e.incoming.card_holder.phone),1))]),h.createElementVNode("tr",null,[t[22]||(t[22]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," IP Address: ",-1)),h.createElementVNode("td",Kne,h.toDisplayString(e.incoming.card_holder.ip_address),1)])])])])])])])])])])])}const Xne=Nr(Zre,[["render",qne]]),Qne=h.defineComponent({name:"nmi-details",props:{incoming:Object},setup(){return{}}}),Zne={class:"rounded border pt-0 mb-5"},Jne={class:"accordion fs-7",id:"kt_accordion_1"},eie={class:"accordion-item"},tie={id:"kt_accordion_1_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_1_header_1","data-bs-parent":"#kt_accordion_1",style:{}},rie={class:"accordion-body"},nie={class:"mb-0"},iie={key:0,class:"d-flex flex-wrap py-5"},aie={key:1,class:"table-responsive"},sie={class:"table align-middle table-row-dashed gy-4 mb-0 fs-7"},oie={class:"fw-bold text-gray-800"},lie={class:"w-50px"},die={class:"w-50px"},cie={class:"w-50px text-end pe-5"},uie={class:"accordion-item"},hie={id:"kt_accordion_1_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_2","data-bs-parent":"#kt_accordion_1",style:{}},fie={class:"accordion-body"},pie={class:"mb-0"},vie={class:"d-flex flex-wrap py-2"},mie={class:"flex-equal ms-2 me-2"},gie={class:"table table-flush fw-bold gy-1 mb-0"},yie={class:"text-gray-800"},_ie={class:"text-gray-800"},bie={class:"text-gray-800"},wie={class:"text-gray-800"},Eie={class:"text-gray-800"},Sie={class:"flex-equal ms-2 me-2"},kie={class:"table table-flush fw-bold gy-1"},xie={class:"text-gray-800"},Tie={class:"text-gray-800"},$ie={class:"text-gray-800"},Die={class:"text-gray-800"},Nie={class:"text-gray-800"},Cie={class:"accordion-item"},Oie={id:"kt_accordion_1_body_3",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_1_header_3","data-bs-parent":"#kt_accordion_1",style:{}},Aie={class:"accordion-body"},Iie={class:"mb-0"},Pie={class:"d-flex flex-wrap py-5"},Mie={class:"flex-equal ms-2 me-5"},Rie={class:"table table-flush fw-bold gy-1"},Lie={class:"text-gray-800 text-hover-primary"},Vie={class:"text-gray-800 text-hover-primary"},Fie={class:"text-gray-800 text-hover-primary"},Yie={class:"text-gray-800 text-hover-primary"},jie={class:"flex-equal"},Bie={class:"table table-flush fw-bold gy-1"},Hie={class:"text-gray-800"},Wie={class:"text-gray-800"},Gie={key:0,class:"text-gray-800"},zie={key:1,class:"text-gray-800"},Uie={class:"text-gray-800"};function Kie(e,t,r,a,n,s){return h.openBlock(),h.createElementBlock("div",Zne,[h.createElementVNode("div",Jne,[h.createElementVNode("div",eie,[t[2]||(t[2]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_1","aria-expanded":"true","aria-controls":"kt_accordion_1_body_1"}," Order Details ")],-1)),h.createElementVNode("div",tie,[h.createElementVNode("div",rie,[h.createElementVNode("div",nie,[e.incoming.order_details==""?(h.openBlock(),h.createElementBlock("div",iie,t[0]||(t[0]=[h.createElementVNode("div",{class:"mb-0"},[h.createElementVNode("span",{class:"fs-7 text-gray-500"},"No Data Available")],-1)]))):(h.openBlock(),h.createElementBlock("div",aie,[h.createElementVNode("table",sie,[t[1]||(t[1]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-bolder fs-7 text-uppercase gs-0"},[h.createElementVNode("th",{class:"min-w-150px"},"Item Id"),h.createElementVNode("th",{class:"min-w-100px"},"Item Name"),h.createElementVNode("th",{class:"min-w-50px"},"Qty"),h.createElementVNode("th",{class:"text-end min-w-100px pe-5"},"Price")])],-1)),h.createElementVNode("tbody",oie,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.incoming.order_details.items,(o,l)=>(h.openBlock(),h.createElementBlock("tr",{key:l},[h.createElementVNode("td",null,[h.createElementVNode("div",lie,h.toDisplayString(o.purchaseId),1)]),h.createElementVNode("td",null,h.toDisplayString(o.name),1),h.createElementVNode("td",die,h.toDisplayString(o.qty),1),h.createElementVNode("td",cie,h.toDisplayString(o.price),1)]))),128))])])]))])])])]),h.createElementVNode("div",uie,[t[13]||(t[13]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_2","aria-expanded":"false","aria-controls":"kt_accordion_1_body_2"}," Transaction Details ")],-1)),h.createElementVNode("div",hie,[h.createElementVNode("div",fie,[h.createElementVNode("div",pie,[h.createElementVNode("div",vie,[h.createElementVNode("div",mie,[h.createElementVNode("table",gie,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[3]||(t[3]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Transaction Id: ",-1)),h.createElementVNode("td",yie,h.toDisplayString(e.incoming.transaction.TRANS_ID),1)]),h.createElementVNode("tr",null,[t[4]||(t[4]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Auth Code: ",-1)),h.createElementVNode("td",_ie,h.toDisplayString(e.incoming.transaction.PROC_AUTH_CODE),1)]),h.createElementVNode("tr",null,[t[5]||(t[5]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"AVS:",-1)),h.createElementVNode("td",bie,h.toDisplayString(e.incoming.transaction.AVS_CODE),1)]),h.createElementVNode("tr",null,[t[6]||(t[6]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"CVV:",-1)),h.createElementVNode("td",wie,h.toDisplayString(e.incoming.transaction.CVV_CODE),1)]),h.createElementVNode("tr",null,[t[7]||(t[7]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Created:",-1)),h.createElementVNode("td",Eie,h.toDisplayString(e.incoming.transaction.TRANS_SETTLE_UTC_TS),1)])])])]),h.createElementVNode("div",Sie,[h.createElementVNode("table",kie,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[8]||(t[8]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Order Id: ",-1)),h.createElementVNode("td",xie,h.toDisplayString(e.incoming.transaction.PO_ID),1)]),h.createElementVNode("tr",null,[t[9]||(t[9]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Status:",-1)),h.createElementVNode("td",Tie,h.toDisplayString(e.incoming.transaction.TRANS_STATUS),1)]),h.createElementVNode("tr",null,[t[10]||(t[10]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Type:",-1)),h.createElementVNode("td",$ie,h.toDisplayString(e.incoming.transaction.SERVICE_ACTION),1)]),h.createElementVNode("tr",null,[t[11]||(t[11]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Descriptor: ",-1)),h.createElementVNode("td",Die,h.toDisplayString(e.incoming.transaction.DESCRIPTOR),1)]),h.createElementVNode("tr",null,[t[12]||(t[12]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Card Bank: ",-1)),h.createElementVNode("td",Nie,h.toDisplayString(e.incoming.transaction.CARD_BANK),1)])])])])])])])])]),h.createElementVNode("div",Cie,[t[23]||(t[23]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_1_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-bold collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_1_body_3","aria-expanded":"false","aria-controls":"kt_accordion_1_body_3"}," Cardholder Details ")],-1)),h.createElementVNode("div",Oie,[h.createElementVNode("div",Aie,[h.createElementVNode("div",Iie,[h.createElementVNode("div",Pie,[h.createElementVNode("div",Mie,[h.createElementVNode("table",Rie,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[14]||(t[14]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," First Name ",-1)),h.createElementVNode("td",Lie,h.toDisplayString(e.incoming.card_holder.first_name),1)]),h.createElementVNode("tr",null,[t[15]||(t[15]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Last Name ",-1)),h.createElementVNode("td",Vie,h.toDisplayString(e.incoming.card_holder.last_name),1)]),h.createElementVNode("tr",null,[t[16]||(t[16]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Email",-1)),h.createElementVNode("td",Fie,h.toDisplayString(e.incoming.card_holder.email),1)]),h.createElementVNode("tr",null,[t[18]||(t[18]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Address:",-1)),h.createElementVNode("td",Yie,[h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_address),1),t[17]||(t[17]=h.createElementVNode("br",null,null,-1)),h.createTextVNode(h.toDisplayString(e.incoming.card_holder.billing_zip),1)])])])])]),h.createElementVNode("div",jie,[h.createElementVNode("table",Bie,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[19]||(t[19]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," Customer Id: ",-1)),h.createElementVNode("td",Hie,h.toDisplayString(e.incoming.card_holder.customer_id),1)]),h.createElementVNode("tr",null,[t[20]||(t[20]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Rebill:",-1)),h.createElementVNode("td",Wie,h.toDisplayString(e.incoming.transaction.REBILL),1)]),h.createElementVNode("tr",null,[t[21]||(t[21]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"},"Phone:",-1)),e.incoming.card_holder.phone==""?(h.openBlock(),h.createElementBlock("td",Gie," Not Provided ")):(h.openBlock(),h.createElementBlock("td",zie,h.toDisplayString(e.incoming.card_holder.phone),1))]),h.createElementVNode("tr",null,[t[22]||(t[22]=h.createElementVNode("td",{class:"text-muted min-w-125px w-125px"}," IP Address: ",-1)),h.createElementVNode("td",Uie,h.toDisplayString(e.incoming.card_holder.ip_address),1)])])])])])])])])])])])}const qie=Nr(Qne,[["render",Kie]]),Xie=h.defineComponent({name:"chargeback-details",components:{ReasonExplained:oee,NmiDetails:Dee,USAEPayDetails:rte,SquareUp:Jte,FluidPayDetails:Qre,NuveiDetails:Xne,InovioPayDetails:qie},props:{reason:Object,reason_explained:Object,incoming:{type:Object,required:!0},merchant:{type:Object,required:!0}},setup(e){const t=h.toRef(e,"incoming"),r=h.ref(null),a=h.ref({height:"265px"}),n=h.ref(null),s=h.computed(()=>{var k;return((k=e.incoming)==null?void 0:k.card_holder)||{}}),o=h.computed(()=>{var k,T;return((T=(k=e.incoming)==null?void 0:k.transaction)==null?void 0:T.action)||[]}),l=h.computed(()=>{var k;return((k=e.incoming)==null?void 0:k.card)??{}}),d=h.computed(()=>{var k,T;return((T=(k=e.incoming)==null?void 0:k.order_details)==null?void 0:T.items)??[]}),c=h.computed(()=>{var k;return((k=e.incoming.order2_details)==null?void 0:k.items)??[]}),f=h.computed(()=>{var k;try{return e.incoming.crm_details?typeof e.incoming.crm_details=="string"?JSON.parse((k=e.incoming)==null?void 0:k.crm_details):e.incoming.crm_details:{}}catch{return{}}}),v=h.computed(()=>{var k;try{return e.incoming.crm2_details?typeof e.incoming.crm2_details=="string"?JSON.parse((k=e.incoming)==null?void 0:k.crm2_details):e.incoming.crm2_details:{}}catch{return{}}}),m=h.computed(()=>{var k,T,D,N,L,A,R,C;return(N=(D=(T=(k=e.incoming)==null?void 0:k.transaction)==null?void 0:T.action)==null?void 0:D[0])!=null&&N.amount||(R=(A=(L=e.incoming)==null?void 0:L.transaction)==null?void 0:A.action)!=null&&R.amount?(C=e.incoming)==null?void 0:C.transaction:null}),g=h.computed(()=>{const k=[];let T=1;return t.value.dispute_date!==void 0&&new Date(t.value.dispute_date).getTime()>0&&(k.push({id:T,content:"First Chargeback",start:t.value.dispute_date}),T=T+1),t.value.dispute_cycle.dispute_sent_status!==void 0&&t.value.dispute_cycle.dispute_date_sent!==void 0?new Date(t.value.dispute_cycle.dispute_date_sent).getTime()>0&&(k.push({id:T,content:t.value.dispute_cycle.dispute_sent_status,start:t.value.dispute_cycle.dispute_date_sent}),T=T+1):t.value.dispute_cycle.response_status!==void 0&&t.value.dispute_cycle.response_date!==void 0&&new Date(t.value.dispute_cycle.response_date).getTime()>0&&(k.push({id:T,content:t.value.dispute_cycle.response_status,start:t.value.dispute_cycle.response_date}),T=T+1),t.value.dispute_cycle.retrieval_status!==void 0&&t.value.dispute_cycle.retrieval_date!==void 0&&new Date(t.value.dispute_cycle.retrieval_date).getTime()>0&&(k.push({id:T,content:t.value.dispute_cycle.retrieval_status,start:t.value.dispute_cycle.retrieval_date}),T=T+1),t.value.dispute_cycle.dispute_receieved_status!==void 0&&t.value.dispute_cycle.dispute_received_date!==void 0&&new Date(t.value.dispute_cycle.dispute_received_date).getTime()>0&&(k.push({id:T,content:t.value.dispute_cycle.dispute_receieved_status,start:t.value.dispute_cycle.dispute_received_date}),T=T+1),t.value.dispute_cycle.pre_arbitration_status!==void 0&&t.value.dispute_cycle.pre_arbitration_date!==void 0&&new Date(t.value.dispute_cycle.pre_arbitration_date).getTime()>0&&(k.push({id:T,content:t.value.dispute_cycle.pre_arbitration_status,start:t.value.dispute_cycle.pre_arbitration_date}),T=T+1),t.value.dispute_cycle.pre_arb_sent_status!==void 0&&t.value.dispute_cycle.pre_arb_date_sent!==void 0&&new Date(t.value.dispute_cycle.pre_arb_date_sent).getTime()>0&&(k.push({id:T,content:t.value.dispute_cycle.pre_arb_sent_status,start:t.value.dispute_cycle.pre_arb_date_sent}),T=T+1),t.value.dispute_cycle.resolved_status!==void 0&&t.value.dispute_cycle.resolved_date!==void 0&&new Date(t.value.dispute_cycle.resolved_date).getTime()&&(k.push({id:T,content:t.value.dispute_cycle.resolved_status,start:t.value.dispute_cycle.resolved_date}),T=T+1),new pi(k)});h.watch(()=>g.value,()=>{w()});const b=h.computed(()=>{const k=o.value;return k.length>0?k[k.length-1].response_text:null}),S=h.computed(()=>{const k=s.value.phone||"";return k.length===10?`1 (${k.slice(0,3)}) ${k.slice(3,6)}-${k.slice(6)}`:k}),w=()=>{r.value!==null&&(n.value===null?n.value=new PJ(r.value,g.value,a.value):n.value.setItems(g.value))};return{timelineRef:r,incomingData:t,formattedPhone:S,lastAction:b,transaction:m,cardholder:s,actions:o,card:l,orders:d,orders2:c,crm_details:f,crm2_details:v}}}),Qie={class:"card card-flush mb-5"},Zie={class:"px-9 mb-7"},Jie={class:"d-flex flex-wrap"},eae={class:"flex-equal"},tae={class:"table fw-bold gs-0 gy-1 gx-1 m-0"},rae={class:"text-gray-800"},nae={class:"text-gray-800"},iae={class:"text-gray-800"},aae={class:"text-boldest"},sae={class:"text-gray-800"},oae={class:"flex-equal"},lae={class:"table fw-bold gs-0 gy-1 gx-1 m-0"},dae={class:"text-gray-800 badge badge-sm badge-light-warning p-2"},cae={class:"text-gray-800"},uae={class:"text-dark p-0",href:"#chargeback_reason_explained","data-bs-toggle":"modal"},hae={class:"text-gray-800"},fae={class:"ms-n3"},pae={key:0,src:"https://app.riskdefy.io/media/svg/card-logos/visa.png",alt:"",class:"h-20px"},vae={key:1,src:"https://app.riskdefy.io/media/svg/card-logos/mastercard.png",alt:"",class:"h-20px"},mae={key:2,src:"https://app.riskdefy.io/media/svg/card-logos/american-express.png",alt:"",class:"h-20px"},gae={key:3,src:"https://app.riskdefy.io/media/svg/card-logos/discovercard.png",alt:"",class:"h-20px"},yae={class:"text-gray-800"},_ae={key:0,class:"card card-flush mb-5"},bae={class:"px-9 mb-7"},wae={class:"d-flex flex-wrap"},Eae={class:"flex-equal"},Sae={class:"table table-flush fw-bold gy-1"},kae={class:"text-gray-800"},xae={class:"text-gray-800"},Tae={class:"text-gray-800"},$ae={class:"text-gray-800"},Dae={class:"flex-equal"},Nae={class:"table table-flush fw-bold gy-1"},Cae={class:"text-gray-800"},Oae={class:"text-gray-800"},Aae={class:"text-gray-800"},Iae={class:"rounded border pt-0 mb-5"},Pae={class:"accordion fs-7",id:"kt_accordion"},Mae={key:0,class:"accordion-item"},Rae={id:"kt_accordion_body_1",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_header_1","data-bs-parent":"#kt_accordion"},Lae={class:"accordion-body mt-0 p-1 px-5"},Vae={class:"table-responsive"},Fae={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},Yae={class:"fw-bold text-gray-800 fs-8"},jae={class:"text-end"},Bae={key:1,class:"accordion-item"},Hae={id:"kt_accordion_body_6",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_header_6","data-bs-parent":"#kt_accordion"},Wae={class:"accordion-body mt-0 p-1 px-5"},Gae={class:"table-responsive"},zae={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},Uae={class:"fw-bold text-gray-800 fs-8"},Kae={key:2,class:"accordion-item"},qae={id:"kt_accordion_body_2",class:"accordion-collapse collapse","aria-labelledby":"kt_accordion_header_2","data-bs-parent":"#kt_accordion"},Xae={class:"accordion-body mt-0 p-1 px-5"},Qae={class:"table-responsive"},Zae={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},Jae={class:"fw-bold text-gray-800 fs-8"},ese={class:"text-end"},tse={key:3,class:"accordion-item"},rse={id:"kt_accordion_body_3",class:"accordion-collapse collapse show","aria-labelledby":"kt_accordion_header_3","data-bs-parent":"#kt_accordion"},nse={class:"accordion-body mt-0 p-1 px-5"},ise={class:"table-responsive"},ase={class:"table align-middle table-row-dashed fs-7 gy-4 mb-0"},sse={class:"fw-bold text-gray-800 fs-8"},ose={class:"rounded border pt-0 mb-5"},lse={class:"accordion fs-7",id:"kt_accordion_5"},dse={class:"card card-body"},cse={class:"card-flush h-auto pt-1"},use={class:"mb-0"},hse={ref:"timelineRef"};function fse(e,t,r,a,n,s){const o=h.resolveComponent("NmiDetails"),l=h.resolveComponent("USAEPayDetails"),d=h.resolveComponent("SquareUp"),c=h.resolveComponent("FluidPayDetails"),f=h.resolveComponent("NuveiDetails"),v=h.resolveComponent("InovioPayDetails"),m=h.resolveComponent("ReasonExplained");return h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createElementVNode("div",Qie,[t[8]||(t[8]=h.createElementVNode("div",{class:"card card-body pb-2"},[h.createElementVNode("div",{class:"card-title"},[h.createElementVNode("h4",{class:"fw-normal fs-6"},"Chargeback Details")])],-1)),h.createElementVNode("div",Zie,[h.createElementVNode("div",Jie,[h.createElementVNode("div",eae,[h.createElementVNode("table",tae,[h.createElementVNode("tr",null,[t[0]||(t[0]=h.createElementVNode("td",{class:"text-muted w-auto"},"ID:",-1)),h.createElementVNode("td",rae,h.toDisplayString(e.incoming.id),1)]),h.createElementVNode("tr",null,[t[1]||(t[1]=h.createElementVNode("td",{class:"text-muted w-auto"},"Case Number:",-1)),h.createElementVNode("td",nae,h.toDisplayString(e.incoming.case_number),1)]),h.createElementVNode("tr",null,[t[2]||(t[2]=h.createElementVNode("td",{class:"text-muted w-auto"},"Amount:",-1)),h.createElementVNode("td",iae,[h.createTextVNode(" $"+h.toDisplayString(e.incoming.dispute_amount),1),h.createElementVNode("span",aae,h.toDisplayString(e.incoming.currency),1)])]),h.createElementVNode("tr",null,[t[3]||(t[3]=h.createElementVNode("td",{class:"text-muted w-auto"},"Dispute Date:",-1)),h.createElementVNode("td",sae,h.toDisplayString(e.incoming.dispute_date),1)])])]),h.createElementVNode("div",oae,[h.createElementVNode("table",lae,[h.createElementVNode("tr",null,[t[4]||(t[4]=h.createElementVNode("td",{class:"text-muted w-auto"},"Due Date:",-1)),h.createElementVNode("td",dae,h.toDisplayString(e.incoming.expire_date),1)]),h.createElementVNode("tr",null,[t[5]||(t[5]=h.createElementVNode("td",{class:"text-muted w-auto w-auto"},"Reason Code:",-1)),h.createElementVNode("td",cae,[h.createElementVNode("a",uae,h.toDisplayString(e.incoming.reason),1)])]),h.createElementVNode("tr",null,[t[6]||(t[6]=h.createElementVNode("td",{class:"text-muted w-auto"},"Card Brand:",-1)),h.createElementVNode("td",hae,[h.createElementVNode("span",fae,[e.incoming.card&&e.incoming.card!=="null"&&e.incoming.card.brand=="Visa"?(h.openBlock(),h.createElementBlock("img",pae)):h.createCommentVNode("",!0),e.incoming.card&&e.incoming.card!=="null"&&(e.incoming.card.brand=="Mastercard"||e.incoming.card.brand=="MasterCard")?(h.openBlock(),h.createElementBlock("img",vae)):h.createCommentVNode("",!0),e.incoming.card&&e.incoming.card!=="null"&&(e.incoming.card.brand=="Amex"||e.incoming.card.brand=="AmericanExpress"||e.incoming.card.brand=="American Express")?(h.openBlock(),h.createElementBlock("img",mae)):h.createCommentVNode("",!0),e.incoming.card&&e.incoming.card!=="null"&&e.incoming.card.brand=="Discover"?(h.openBlock(),h.createElementBlock("img",gae)):h.createCommentVNode("",!0)])])]),h.createElementVNode("tr",null,[t[7]||(t[7]=h.createElementVNode("td",{class:"text-muted w-auto"},"Transaction Date:",-1)),h.createElementVNode("td",yae,h.toDisplayString(e.incoming.transaction_date),1)])])])])])]),e.cardholder&&Object.keys(e.cardholder).length>0?(h.openBlock(),h.createElementBlock("div",_ae,[t[16]||(t[16]=h.createElementVNode("div",{class:"card card-body pb-2"},[h.createElementVNode("div",{class:"card-title"},[h.createElementVNode("h4",{class:"fw-normal fs-6"},"Cardholder Details")])],-1)),h.createElementVNode("div",bae,[h.createElementVNode("div",wae,[h.createElementVNode("div",Eae,[h.createElementVNode("table",Sae,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[9]||(t[9]=h.createElementVNode("td",{class:"text-muted w-auto"},"First Name",-1)),h.createElementVNode("td",kae,h.toDisplayString(e.cardholder.first_name),1)]),h.createElementVNode("tr",null,[t[10]||(t[10]=h.createElementVNode("td",{class:"text-muted w-auto"},"Last Name",-1)),h.createElementVNode("td",xae,h.toDisplayString(e.cardholder.last_name),1)]),h.createElementVNode("tr",null,[t[11]||(t[11]=h.createElementVNode("td",{class:"text-muted w-auto"},"Email",-1)),h.createElementVNode("td",Tae,h.toDisplayString(e.cardholder.email),1)]),h.createElementVNode("tr",null,[t[12]||(t[12]=h.createElementVNode("td",{class:"text-muted w-auto"},"Billing:",-1)),h.createElementVNode("td",$ae,h.toDisplayString(e.cardholder.billing_address),1)])])])]),h.createElementVNode("div",Dae,[h.createElementVNode("table",Nae,[h.createElementVNode("tbody",null,[h.createElementVNode("tr",null,[t[13]||(t[13]=h.createElementVNode("td",{class:"text-muted w-auto"},"I.P Address",-1)),h.createElementVNode("td",Cae,h.toDisplayString(e.cardholder.ip_address),1)]),h.createElementVNode("tr",null,[t[14]||(t[14]=h.createElementVNode("td",{class:"text-muted w-auto"},"Phone",-1)),h.createElementVNode("td",Oae,h.toDisplayString(e.formattedPhone),1)]),h.createElementVNode("tr",null,[t[15]||(t[15]=h.createElementVNode("td",{class:"text-muted w-auto"},"Shipping:",-1)),h.createElementVNode("td",Aae,h.toDisplayString(e.cardholder.shipping_address),1)])])])])])])])):h.createCommentVNode("",!0),h.createElementVNode("div",Iae,[h.createElementVNode("div",Pae,[e.orders&&Object.keys(e.orders).length>0?(h.openBlock(),h.createElementBlock("div",Mae,[t[18]||(t[18]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_header_1"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-normal",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_body_1","aria-expanded":"true","aria-controls":"kt_accordion_body_1"}," Konnektive Order ")],-1)),h.createElementVNode("div",Rae,[h.createElementVNode("div",Lae,[h.createElementVNode("div",Vae,[h.createElementVNode("table",Fae,[t[17]||(t[17]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-normal fs-8 text-uppercase gs-0"},[h.createElementVNode("th",{class:"w-1/6"},"Item Id"),h.createElementVNode("th",{class:"w-1/6"},"Product ID"),h.createElementVNode("th",{class:"w-1/6"},"Product"),h.createElementVNode("th",{class:"w-1/6"},"Qty"),h.createElementVNode("th",{class:"w-1/6 text-end"},"Price")])],-1)),h.createElementVNode("tbody",Yae,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.orders,(g,b)=>(h.openBlock(),h.createElementBlock("tr",{key:b},[h.createElementVNode("td",null,h.toDisplayString(g.orderItemId),1),h.createElementVNode("td",null,h.toDisplayString(g.productId),1),h.createElementVNode("td",null,h.toDisplayString(g.name),1),h.createElementVNode("td",null,h.toDisplayString(g.qty),1),h.createElementVNode("td",jae,h.toDisplayString(g.price),1)]))),128))])])])])])])):h.createCommentVNode("",!0),e.crm_details&&Object.keys(e.crm_details).length>0?(h.openBlock(),h.createElementBlock("div",Bae,[t[20]||(t[20]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_header_6"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-normal",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_body_6","aria-expanded":"true","aria-controls":"kt_accordion_body_6"}," Konnektive Details ")],-1)),h.createElementVNode("div",Hae,[h.createElementVNode("div",Wae,[h.createElementVNode("div",Gae,[h.createElementVNode("table",zae,[t[19]||(t[19]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-normal fs-8 text-uppercase gs-0"},[h.createElementVNode("th",{class:"w-1/6"},"Trans ID"),h.createElementVNode("th",{class:"w-1/6"},"Order ID"),h.createElementVNode("th",{class:"w-1/6"},"IP"),h.createElementVNode("th",{class:"w-1/6"},"A ID"),h.createElementVNode("th",{class:"w-1/6"},"Gateway ID"),h.createElementVNode("th",{class:"w-1/6"},"Customer ID")])],-1)),h.createElementVNode("tbody",Uae,[h.createElementVNode("tr",null,[h.createElementVNode("td",null,h.toDisplayString(e.crm_details.transactionId),1),h.createElementVNode("td",null,h.toDisplayString(e.crm_details.orderId),1),h.createElementVNode("td",null,h.toDisplayString(e.crm_details.ipAddress),1),h.createElementVNode("td",null,h.toDisplayString(e.crm_details.actualOrderId),1),h.createElementVNode("td",null,h.toDisplayString(e.crm_details.merchantTxnId),1),h.createElementVNode("td",null,h.toDisplayString(e.crm_details.customerId),1)])])])])])])])):h.createCommentVNode("",!0),e.orders2&&Object.keys(e.orders2).length>0?(h.openBlock(),h.createElementBlock("div",Kae,[t[22]||(t[22]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_header_2"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-normal collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_body_2","aria-expanded":"false","aria-controls":"kt_accordion_body_2"}," Sticky Order ")],-1)),h.createElementVNode("div",qae,[h.createElementVNode("div",Xae,[h.createElementVNode("div",Qae,[h.createElementVNode("table",Zae,[t[21]||(t[21]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-normal fs-8 text-uppercase gs-0"},[h.createElementVNode("th",{class:"w-1/6"},"Item Id"),h.createElementVNode("th",{class:"w-1/6"},"ID"),h.createElementVNode("th",{class:"w-1/6"},"URL"),h.createElementVNode("th",{class:"w-1/6"},"Name"),h.createElementVNode("th",{class:"w-1/6"},"Qty"),h.createElementVNode("th",{class:"w-1/6 text-end"},"Price")])],-1)),h.createElementVNode("tbody",Jae,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.orders2,(g,b)=>(h.openBlock(),h.createElementBlock("tr",{key:b},[h.createElementVNode("td",null,h.toDisplayString(g.item_id),1),h.createElementVNode("td",null,h.toDisplayString(g.product_id),1),h.createElementVNode("td",null,h.toDisplayString(g.product_url),1),h.createElementVNode("td",null,h.toDisplayString(g.name),1),h.createElementVNode("td",null,h.toDisplayString(g.qty),1),h.createElementVNode("td",ese,h.toDisplayString(g.price),1)]))),128))])])])])])])):h.createCommentVNode("",!0),e.crm2_details&&Object.keys(e.crm2_details).length>0?(h.openBlock(),h.createElementBlock("div",tse,[t[24]||(t[24]=h.createElementVNode("h2",{class:"accordion-header",id:"kt_accordion_header_3"},[h.createElementVNode("button",{class:"accordion-button fs-6 fw-normal",type:"button","data-bs-toggle":"collapse","data-bs-target":"#kt_accordion_body_3","aria-expanded":"true","aria-controls":"kt_accordion_body_3"}," Sticky Details ")],-1)),h.createElementVNode("div",rse,[h.createElementVNode("div",nse,[h.createElementVNode("div",ise,[h.createElementVNode("table",ase,[t[23]||(t[23]=h.createElementVNode("thead",null,[h.createElementVNode("tr",{class:"border-bottom border-gray-200 text-start text-gray-400 fw-normal fs-8 text-uppercase gs-0"},[h.createElementVNode("th",{class:"w-1/6"},"Ancestor ID"),h.createElementVNode("th",{class:"w-1/6"},"Order ID"),h.createElementVNode("th",{class:"w-1/6"},"IP"),h.createElementVNode("th",{class:"w-1/6"},"Trans ID"),h.createElementVNode("th",{class:"w-1/6"},"Gateway ID"),h.createElementVNode("th",{class:"w-1/6"},"Customer ID")])],-1)),h.createElementVNode("tbody",sse,[h.createElementVNode("tr",null,[h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.ancestor_id),1),h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.order_id),1),h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.ip_address),1),h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.transaction_id),1),h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.gateway_id),1),h.createElementVNode("td",null,h.toDisplayString(e.crm2_details.customer_id),1)])])])])])])])):h.createCommentVNode("",!0),e.transaction?(h.openBlock(),h.createBlock(o,{key:4,class:"p-0 m-0",incoming:e.incoming},null,8,["incoming"])):h.createCommentVNode("",!0)])]),e.incoming.connection_id=="51"?(h.openBlock(),h.createBlock(l,{key:1,incoming:e.incoming},null,8,["incoming"])):e.incoming.connection_id=="52"?(h.openBlock(),h.createBlock(d,{key:2,incoming:e.incoming},null,8,["incoming"])):e.incoming.connection_id=="45"?(h.openBlock(),h.createBlock(c,{key:3,incoming:e.incoming},null,8,["incoming"])):e.incoming.connection_id=="56"?(h.openBlock(),h.createBlock(f,{key:4,incoming:e.incoming},null,8,["incoming"])):e.incoming.connection_id=="6"?(h.openBlock(),h.createBlock(v,{key:5,incoming:e.incoming},null,8,["incoming"])):h.createCommentVNode("",!0),h.createElementVNode("div",ose,[h.createElementVNode("div",lse,[h.createElementVNode("div",dse,[t[25]||(t[25]=h.createElementVNode("div",{class:"card-body py-2"},[h.createElementVNode("div",{class:"card-title"},[h.createElementVNode("h4",{class:"fw-normal ms-n6 fs-7"},"Chargeback Cycle")])],-1)),h.createElementVNode("div",cse,[h.createElementVNode("div",use,[h.createElementVNode("div",hse,null,512)])])])])]),h.createVNode(m,{reason_explained:e.reason_explained,reason:e.reason},null,8,["reason_explained","reason"])],64)}const pse=Nr(Xie,[["render",fse]]),vse=h.defineComponent({name:"incoming-summary",emits:["reset"],props:{incoming:{type:Object,required:!0},merchant:{type:Object,required:!0},processor:{type:Object,required:!0},reason:{type:Object,required:!0}}}),mse={class:"card card-flush mb-0","data-kt-sticky":"false","data-kt-sticky-name":"merchants-summary"},gse={class:"card-body px-5 pe-8 pt-0 fs-7"},yse={class:"mb-4"},_se={class:"row pb-4 align-items-center"},bse={class:"col text-end"},wse={class:"card-flush p-0"},Ese={class:"fw-bold text-gray-800"},Sse={class:"d-block"},kse={class:"row pb-4 align-items-center"},xse={class:"col text-end"},Tse={class:"card-flush p-0"},$se={class:"fw-bold text-gray-800"},Dse={class:"d-block"},Nse={class:"row pb-4 align-items-center"},Cse={class:"col text-end"},Ose={class:"card-flush p-0"},Ase={class:"fw-bold text-gray-800"},Ise={class:"d-block"},Pse={class:"row pb-4 align-items-center"},Mse={class:"col text-end"},Rse={class:"card-flush p-0"},Lse={class:"fw-bold text-gray-800"},Vse={class:"d-block"},Fse={class:"row pb-4 align-items-center"},Yse={class:"col text-end"},jse={class:"card-flush p-0"},Bse={class:"fw-bold text-gray-800"},Hse={class:"d-block"},Wse={class:"row pb-4 align-items-center"},Gse={class:"col text-end"},zse={class:"card-flush p-0"},Use={class:"fw-bold text-gray-800"},Kse={key:0,class:"d-block"},qse={key:1,class:"d-block"},Xse={class:"row pb-4 align-items-center"},Qse={class:"col text-end"},Zse={class:"card-flush p-0"},Jse={class:"fw-bold text-gray-800"},eoe={class:"d-block"},toe={class:"row pb-4 align-items-center"},roe={class:"col text-end"},noe={class:"card-flush p-0"},ioe={class:"fw-bold text-gray-800"},aoe={class:"d-block"};function soe(e,t,r,a,n,s){return h.openBlock(),h.createElementBlock("div",mse,[t[8]||(t[8]=h.createElementVNode("div",{class:"card card-body ps-5 pb-2"},[h.createElementVNode("h5",{class:"mb-4 fs-6 ps-0 fw-normal"},"Summary Details")],-1)),h.createElementVNode("div",gse,[h.createElementVNode("div",yse,[h.createElementVNode("div",_se,[t[0]||(t[0]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"}," Status ")])])],-1)),h.createElementVNode("div",bse,[h.createElementVNode("div",wse,[h.createElementVNode("div",Ese,[h.createElementVNode("span",Sse,h.toDisplayString(e.incoming.chargeback_status),1)])])])]),h.createElementVNode("div",kse,[t[1]||(t[1]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"}," Merchant ")])])],-1)),h.createElementVNode("div",xse,[h.createElementVNode("div",Tse,[h.createElementVNode("div",$se,[h.createElementVNode("span",Dse,h.toDisplayString(e.merchant.dba_name),1)])])])]),h.createElementVNode("div",Nse,[t[2]||(t[2]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"}," MID Number: ")])])],-1)),h.createElementVNode("div",Cse,[h.createElementVNode("div",Ose,[h.createElementVNode("div",Ase,[h.createElementVNode("span",Ise,h.toDisplayString(e.merchant.mid_number),1)])])])]),h.createElementVNode("div",Pse,[t[3]||(t[3]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"}," Merchant ID: ")])])],-1)),h.createElementVNode("div",Mse,[h.createElementVNode("div",Rse,[h.createElementVNode("div",Lse,[h.createElementVNode("span",Vse,h.toDisplayString(e.merchant.merchant_id),1)])])])]),h.createElementVNode("div",Fse,[t[4]||(t[4]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"},"Processor")])])],-1)),h.createElementVNode("div",Yse,[h.createElementVNode("div",jse,[h.createElementVNode("div",Bse,[h.createElementVNode("span",Hse,h.toDisplayString(e.processor.name),1)])])])]),h.createElementVNode("div",Wse,[t[5]||(t[5]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"},"Response Status")])])],-1)),h.createElementVNode("div",Gse,[h.createElementVNode("div",zse,[h.createElementVNode("div",Use,[e.incoming.sent_date=="0000-00-00 00:00:00"?(h.openBlock(),h.createElementBlock("span",Kse," Not Sent ")):(h.openBlock(),h.createElementBlock("span",qse," Sent "))])])])]),h.createElementVNode("div",Xse,[t[6]||(t[6]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"},"Reason Category")])])],-1)),h.createElementVNode("div",Qse,[h.createElementVNode("div",Zse,[h.createElementVNode("div",Jse,[h.createElementVNode("span",eoe,h.toDisplayString(e.reason.category),1)])])])]),h.createElementVNode("div",toe,[t[7]||(t[7]=h.createElementVNode("div",{class:"col-auto"},[h.createElementVNode("div",{class:"card-flush p-0"},[h.createElementVNode("div",{class:"fw-bold text-muted"},[h.createElementVNode("span",{class:"d-block"},"Reason Condition")])])],-1)),h.createElementVNode("div",roe,[h.createElementVNode("div",noe,[h.createElementVNode("div",ioe,[h.createElementVNode("span",aoe,h.toDisplayString(e.incoming.reason_condition),1)])])])])])])])}const ooe=Nr(vse,[["render",soe]]),br={apiKey:"",setApiKey(e){this.apiKey=e},async get(e){return await(await fetch(`https://api.riskdefy.io/v3/${e}`,{method:"GET",headers:{Authorization:`Bearer ${this.apiKey}`,"Content-Type":"application/json"}})).json()}},loe=h.defineComponent({name:"incoming-details",components:{Details:pse,Summary:ooe},setup(e){const t=h.computed(()=>e.incomingId),r=h.ref({id:"",transaction_found:"0",details_populated:"0",dispute_url:"",is_responded:"",card_holder:{},card:{},transaction:{action:{}},order_details:{items:[]},order2_details:{items:[]},order3_details:{items:[]},crm2_details:{},crm3_details:{},product_details:{},merchant_id:"",reason:"",dispute_cycle:{},connection_id:"",found_date:"0000-00-00 00:00:00",populated_date:"0000-00-00 00:00:00",sent_date:"0000-00-00 00:00:00",reason_condition:""}),a=h.ref({dba_name:"",processor_id:"",merchantDetails:{}}),n=h.ref({}),s=h.ref({message:{},instructions:{}}),o=h.ref({}),l=h.ref({}),d=h.ref([]);h.onMounted(async()=>{setCurrentPageTitle("Incoming Chargeback Details"),br.setApiKey(e.apiKey),setTimeout(async()=>{await D(),await f(),DrawerComponent.reinitialization()},500)});const c=h.ref([]),f=async()=>{const{data:O}=await fetch("apis/connections?limit=100");O.success&&(c.value=[...O.data])},v=h.computed(()=>{const O=r.value.transaction;return O&&Object.keys(O).length>0&&O.transaction_id&&O.transaction_id!==""}),m=h.computed(()=>{const M=r.value.found_date.split(" ")[1].split(":");return`${M[0]}:${M[1]}`}),g=h.computed(()=>{const M=r.value.found_date.split(" ")[0].split("-");return`${M[1]}-${M[2]}`}),b=h.computed(()=>{const M=r.value.populated_date.split(" ")[1].split(":");return`${M[0]}:${M[1]}`}),S=h.computed(()=>{const M=r.value.populated_date.split(" ")[0].split("-");return`${M[1]}-${M[2]}`}),w=h.computed(()=>{const M=r.value.sent_date.split(" ")[1].split(":");return`${M[0]}:${M[1]}`}),k=h.computed(()=>{const M=r.value.sent_date.split(" ")[0].split("-");return`${M[1]}-${M[2]}`}),T=h.ref([]),D=async()=>{try{const{data:O}=await br.get(`chargebacks/incoming?id=${t.value}`);r.value=O.data[0];try{r.value.card_holder=JSON.parse(r.value.card_holder)}catch{r.value.card_holder={}}try{r.value.card=JSON.parse(r.value.card)}catch{r.value.card={}}try{r.value.transaction=JSON.parse(r.value.transaction)}catch{r.value.transaction={action:{}}}try{r.value.dispute_cycle=JSON.parse(r.value.dispute_cycle)}catch{r.value.dispute_cycle={}}try{r.value.order_details=JSON.parse(r.value.order_details)}catch{r.value.order_details={items:[]}}try{r.value.order2_details=JSON.parse(r.value.order2_details)}catch{r.value.order2_details={items:[]}}try{r.value.product_details=JSON.parse(r.value.product_details)}catch{r.value.product_details={}}}catch{r.value={id:"",transaction_found:"0",details_populated:"0",dispute_url:"",is_responded:"",card_holder:{},card:{},transaction:{action:{}},order_details:{items:[]},order2_details:{items:[]},order3_details:{items:[]},crm2_details:{},crm3_details:{},product_details:{},merchant_id:"",reason:"",dispute_cycle:{},connection_id:"",found_date:"0000-00-00 00:00:00",populated_date:"0000-00-00 00:00:00",sent_date:"0000-00-00 00:00:00",reason_condition:""}}try{const{data:O}=await br.get(`merchants/accounts?merchant_id=${r.value.merchant_id}`);a.value=O.data[0];try{a.value.merchantDetails=JSON.parse(a.value.merchantDetails)}catch{a.value.merchantDetails={}}}catch{a.value={dba_name:"",processor_id:"",merchantDetails:{}}}try{const{data:O}=await br.get(`chargebacks/reasons?code=${r.value.reason}`);n.value=O.data[0]}catch{n.value={}}try{const{data:O}=await br.get(`chargebacks/reasons_explained?code=${r.value.reason}`);s.value=O.data[0],s.value.message=JSON.parse(O.data[0].message),s.value.instructions=JSON.parse(O.data[0].instructions)}catch{s.value={message:{},instructions:{}}}try{const{data:O}=await br.get(`processors/isos/${a.value.processor_id}`);o.value=O.data[0]}catch{o.value={}}try{const{data:O}=await br.get(`apis/merchants?fields=id,alias_name,connection_id,endpoint_name&category=Gateway&merchant_id=${r.value.merchant_id}`);T.value=O.data}catch{T.value=[]}},N=()=>{D()},L=async()=>{var O;(O=DrawerComponent==null?void 0:DrawerComponent.getInstance("view_incoming_details_drawer"))==null||O.show()},A=async()=>{var O;try{let M=await br.get(`chargebacks/incoming/${r.value.id}?action=evidence_images`);M.data.success&&(M.data.data[0]===null?d.value=[]:d.value=M.data.data[0]),M=await br.get(`chargebacks/incoming/${r.value.id}?action=response_packet`),M.data.success&&(M.data.data[0]===null?l.value={}:l.value=M.data.data[0],(O=DrawerComponent==null?void 0:DrawerComponent.getInstance("add_response_drawer"))==null||O.show())}catch{l.value={},d.value=[]}},R=async()=>{try{let O=await br.get(`chargebacks/incoming/${r.value.id}?action=evidence_images`);O.data.success&&(O.data.data[0]===null?d.value=[]:d.value=O.data.data[0]),O=await br.get(`chargebacks/incoming/${r.value.id}?action=response_packet`),O.data.success&&(O.data.data[0]===null?l.value={}:l.value=O.data.data[0])}catch{l.value={},d.value=[]}},C=()=>{new li(document.getElementById("modal_pdf_view")).show()},j=h.computed(()=>{const{transaction:O,card_holder:M,...H}=r.value;return H});return{incoming:r,isTransactionAvailable:v,incomingWithoutTransaction:j,merchant:a,reason:n,reason_explained:s,processor:o,getFoundTime:m,getPopulatedTime:b,resetIncoming:N,getSentTime:w,getSentDate:k,getFoundDate:g,getPopulatedDate:S,connections:c,onOpenResponseDrawer:A,onFormEntry:L,submitTemplate:R,templates:l,templateImages:d,onViewDispute:C,apiSyncItems:T}}}),doe={class:"row g-5 g-xl-10"},coe={class:"col-xl-8"},uoe={class:"col-xl-4 mb-10"},hoe={class:"card"},foe={class:"card"},poe={class:"card card-body d-flex align-items-start mt-5 pt-5"},voe={class:"mb-auto"},moe={class:"card-body pt-5"},goe={class:"timeline-label"},yoe={key:0,class:"timeline-item"},_oe={class:"timeline-label text-gray-800 fs-8"},boe={class:"text-gray-800 ps-3 fs-8"},woe={key:1,class:"timeline-item"},Eoe={key:2,class:"timeline-item"},Soe={class:"timeline-label text-gray-800 fs-8"},koe={class:"text-gray-800 ps-3 fs-8"},xoe={key:3,class:"timeline-item"},Toe={key:4,class:"timeline-item"},$oe={class:"timeline-label text-gray-800 fs-8"},Doe={class:"timeline-content d-flex"},Noe={class:"text-gray-800 ps-3 fs-8"},Coe={key:5,class:"timeline-item"};function Ooe(e,t,r,a,n,s){const o=h.resolveComponent("Details"),l=h.resolveComponent("Summary");return h.openBlock(),h.createElementBlock("div",doe,[h.createElementVNode("div",coe,[h.createVNode(o,{reason_explained:e.reason_explained,reason:e.reason,merchant:e.merchant,incoming:e.incoming},null,8,["reason_explained","reason","merchant","incoming"])]),h.createElementVNode("div",uoe,[h.createElementVNode("div",hoe,[h.createElementVNode("div",foe,[h.createVNode(l,{reason:e.reason,processor:e.processor,merchant:e.merchant,incoming:e.incoming},null,8,["reason","processor","merchant","incoming"])])]),h.createElementVNode("div",poe,[h.createElementVNode("div",voe,[t[6]||(t[6]=h.createElementVNode("div",{class:"align-items-center border-0"},[h.createElementVNode("h3",{class:"align-items-start flex-column"},[h.createElementVNode("span",{class:"fw-normal fs-7 text-dark ps-5"},"Response Timeline")])],-1)),h.createElementVNode("div",moe,[h.createElementVNode("div",goe,[e.incoming.found_date!="0000-00-00 00:00:00"?(h.openBlock(),h.createElementBlock("div",yoe,[h.createElementVNode("div",_oe,h.toDisplayString(e.getFoundTime),1),t[0]||(t[0]=h.createElementVNode("div",{class:"timeline-badge"},[h.createElementVNode("i",{class:"fa fa-genderless text-success fs-1"})],-1)),h.createElementVNode("div",boe," Transaction Found ("+h.toDisplayString(e.getFoundDate)+") ",1)])):(h.openBlock(),h.createElementBlock("div",woe,t[1]||(t[1]=[h.createElementVNode("div",{class:"timeline-label text-gray-400 fs-8"},"00:00",-1),h.createElementVNode("div",{class:"timeline-badge"},[h.createElementVNode("i",{class:"fa fa-genderless text-gray-400 fs-1"})],-1),h.createElementVNode("div",{class:"text-gray-400 ps-3 fs-8"},"Transaction Not Found",-1)]))),e.incoming.found_date!="0000-00-00 00:00:00"?(h.openBlock(),h.createElementBlock("div",Eoe,[h.createElementVNode("div",Soe,h.toDisplayString(e.getPopulatedTime),1),t[2]||(t[2]=h.createElementVNode("div",{class:"timeline-badge"},[h.createElementVNode("i",{class:"fa fa-genderless text-success fs-1"})],-1)),h.createElementVNode("div",koe," Details Populated ("+h.toDisplayString(e.getPopulatedDate)+") ",1)])):(h.openBlock(),h.createElementBlock("div",xoe,t[3]||(t[3]=[h.createElementVNode("div",{class:"timeline-label text-gray-400 fs-8"},"00:00",-1),h.createElementVNode("div",{class:"timeline-badge"},[h.createElementVNode("i",{class:"fa fa-genderless text-gray-400 fs-1"})],-1),h.createElementVNode("div",{class:"text-gray-400 ps-3 fs-8"},"Details Not Populated",-1)]))),e.incoming.sent_date!="0000-00-00 00:00:00"?(h.openBlock(),h.createElementBlock("div",Toe,[h.createElementVNode("div",$oe,h.toDisplayString(e.getSentTime),1),t[4]||(t[4]=h.createElementVNode("div",{class:"timeline-badge"},[h.createElementVNode("i",{class:"fa fa-genderless text-success fs-1"})],-1)),h.createElementVNode("div",Doe,[h.createElementVNode("span",Noe,"Response Sent ("+h.toDisplayString(e.getSentDate)+")",1)])])):(h.openBlock(),h.createElementBlock("div",Coe,t[5]||(t[5]=[h.createStaticVNode('<div class="timeline-label text-gray-400 fs-8">00:00</div><div class="timeline-badge"><i class="fa fa-genderless text-gray-400 fs-1"></i></div><div class="timeline-content d-flex"><span class="text-gray-400 ps-3 fs-8">Response Not Sent</span></div>',3)])))])])])])])])}const Aoe=Nr(loe,[["render",Ooe]]),Ioe={props:{apiKey:{type:String,required:!0},incomingId:{type:String,required:!0}},data(){return{data:null}},components:{IncomingDetails:Aoe}};function Poe(e,t,r,a,n,s){const o=h.resolveComponent("IncomingDetails");return h.openBlock(),h.createElementBlock("div",null,[h.createVNode(o,{apiKey:r.apiKey,incomingId:r.incomingId},null,8,["apiKey","incomingId"])])}const C1=Nr(Ioe,[["render",Poe]]),Moe={install(e){e.component("Chargebacks",C1)}};exports.Chargebacks=C1;exports.default=Moe;