Raffales-LMS/public/newtemplate/js/bundle.js
2024-04-16 15:43:24 +05:45

29 lines
1.1 MiB
Vendored
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Popper={})}(this,(function(t){"use strict";function e(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function n(t){return t instanceof e(t).Element||t instanceof Element}function i(t){return t instanceof e(t).HTMLElement||t instanceof HTMLElement}function r(t){return"undefined"!=typeof ShadowRoot&&(t instanceof e(t).ShadowRoot||t instanceof ShadowRoot)}var o=Math.max,l=Math.min,s=Math.round;function a(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function c(){return!/^((?!chrome|android).)*safari/i.test(a())}function u(t,r,o){void 0===r&&(r=!1),void 0===o&&(o=!1);var l=t.getBoundingClientRect(),a=1,u=1;r&&i(t)&&(a=t.offsetWidth>0&&s(l.width)/t.offsetWidth||1,u=t.offsetHeight>0&&s(l.height)/t.offsetHeight||1);var d=(n(t)?e(t):window).visualViewport,h=!c()&&o,p=(l.left+(h&&d?d.offsetLeft:0))/a,f=(l.top+(h&&d?d.offsetTop:0))/u,g=l.width/a,m=l.height/u;return{width:g,height:m,top:f,right:p+g,bottom:f+m,left:p,x:p,y:f}}function d(t){var n=e(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function h(t){return t?(t.nodeName||"").toLowerCase():null}function p(t){return((n(t)?t.ownerDocument:t.document)||window.document).documentElement}function f(t){return u(p(t)).left+d(t).scrollLeft}function g(t){return e(t).getComputedStyle(t)}function m(t){var e=g(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function v(t,n,r){void 0===r&&(r=!1);var o,l,a=i(n),c=i(n)&&function(t){var e=t.getBoundingClientRect(),n=s(e.width)/t.offsetWidth||1,i=s(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(n),g=p(n),v=u(t,c,r),y={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(a||!a&&!r)&&(("body"!==h(n)||m(g))&&(y=(o=n)!==e(o)&&i(o)?{scrollLeft:(l=o).scrollLeft,scrollTop:l.scrollTop}:d(o)),i(n)?((b=u(n,!0)).x+=n.clientLeft,b.y+=n.clientTop):g&&(b.x=f(g))),{x:v.left+y.scrollLeft-b.x,y:v.top+y.scrollTop-b.y,width:v.width,height:v.height}}function y(t){var e=u(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function b(t){return"html"===h(t)?t:t.assignedSlot||t.parentNode||(r(t)?t.host:null)||p(t)}function _(t){return["html","body","#document"].indexOf(h(t))>=0?t.ownerDocument.body:i(t)&&m(t)?t:_(b(t))}function w(t,n){var i;void 0===n&&(n=[]);var r=_(t),o=r===(null==(i=t.ownerDocument)?void 0:i.body),l=e(r),s=o?[l].concat(l.visualViewport||[],m(r)?r:[]):r,a=n.concat(s);return o?a:a.concat(w(b(s)))}function x(t){return["table","td","th"].indexOf(h(t))>=0}function E(t){return i(t)&&"fixed"!==g(t).position?t.offsetParent:null}function S(t){for(var n=e(t),o=E(t);o&&x(o)&&"static"===g(o).position;)o=E(o);return o&&("html"===h(o)||"body"===h(o)&&"static"===g(o).position)?n:o||function(t){var e=/firefox/i.test(a());if(/Trident/i.test(a())&&i(t)&&"fixed"===g(t).position)return null;var n=b(t);for(r(n)&&(n=n.host);i(n)&&["html","body"].indexOf(h(n))<0;){var o=g(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(t)||n}var C="top",M="bottom",k="right",D="left",T="auto",L=[C,M,k,D],A="start",P="end",O="viewport",I="popper",R=L.reduce((function(t,e){return t.concat([e+"-"+A,e+"-"+P])}),[]),N=[].concat(L,[T]).reduce((function(t,e){return t.concat([e,e+"-"+A,e+"-"+P])}),[]),z=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function F(t){var e=new Map,n=new Set,i=[];return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||function t(r){n.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach((function(i){if(!n.has(i)){var r=e.get(i);r&&t(r)}})),i.push(r)}(t)})),i}function H(t){return t.split("-")[0]}function B(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&r(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function j(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function V(t,i,r){return i===O?j(function(t,n){var i=e(t),r=p(t),o=i.visualViewport,l=r.clientWidth,s=r.clientHeight,a=0,u=0;if(o){l=o.width,s=o.height;var d=c();(d||!d&&"fixed"===n)&&(a=o.offsetLeft,u=o.offsetTop)}return{width:l,height:s,x:a+f(t),y:u}}(t,r)):n(i)?function(t,e){var n=u(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(i,r):j(function(t){var e,n=p(t),i=d(t),r=null==(e=t.ownerDocument)?void 0:e.body,l=o(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=o(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+f(t),c=-i.scrollTop;return"rtl"===g(r||n).direction&&(a+=o(n.clientWidth,r?r.clientWidth:0)-l),{width:l,height:s,x:a,y:c}}(p(t)))}function W(t,e,r,s){var a="clippingParents"===e?function(t){var e=w(b(t)),r=["absolute","fixed"].indexOf(g(t).position)>=0&&i(t)?S(t):t;return n(r)?e.filter((function(t){return n(t)&&B(t,r)&&"body"!==h(t)})):[]}(t):[].concat(e),c=[].concat(a,[r]),u=c[0],d=c.reduce((function(e,n){var i=V(t,n,s);return e.top=o(i.top,e.top),e.right=l(i.right,e.right),e.bottom=l(i.bottom,e.bottom),e.left=o(i.left,e.left),e}),V(t,u,s));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function U(t){return t.split("-")[1]}function Y(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function $(t){var e,n=t.reference,i=t.element,r=t.placement,o=r?H(r):null,l=r?U(r):null,s=n.x+n.width/2-i.width/2,a=n.y+n.height/2-i.height/2;switch(o){case C:e={x:s,y:n.y-i.height};break;case M:e={x:s,y:n.y+n.height};break;case k:e={x:n.x+n.width,y:a};break;case D:e={x:n.x-i.width,y:a};break;default:e={x:n.x,y:n.y}}var c=o?Y(o):null;if(null!=c){var u="y"===c?"height":"width";switch(l){case A:e[c]=e[c]-(n[u]/2-i[u]/2);break;case P:e[c]=e[c]+(n[u]/2-i[u]/2)}}return e}function q(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function G(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function Z(t,e){void 0===e&&(e={});var i=e,r=i.placement,o=void 0===r?t.placement:r,l=i.strategy,s=void 0===l?t.strategy:l,a=i.boundary,c=void 0===a?"clippingParents":a,d=i.rootBoundary,h=void 0===d?O:d,f=i.elementContext,g=void 0===f?I:f,m=i.altBoundary,v=void 0!==m&&m,y=i.padding,b=void 0===y?0:y,_=q("number"!=typeof b?b:G(b,L)),w=g===I?"reference":I,x=t.rects.popper,E=t.elements[v?w:g],S=W(n(E)?E:E.contextElement||p(t.elements.popper),c,h,s),D=u(t.elements.reference),T=$({reference:D,element:x,strategy:"absolute",placement:o}),A=j(Object.assign({},x,T)),P=g===I?A:D,R={top:S.top-P.top+_.top,bottom:P.bottom-S.bottom+_.bottom,left:S.left-P.left+_.left,right:P.right-S.right+_.right},N=t.modifiersData.offset;if(g===I&&N){var z=N[o];Object.keys(R).forEach((function(t){var e=[k,M].indexOf(t)>=0?1:-1,n=[C,M].indexOf(t)>=0?"y":"x";R[t]+=z[n]*e}))}return R}var K={placement:"bottom",modifiers:[],strategy:"absolute"};function X(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Q(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,r=void 0===i?[]:i,o=e.defaultOptions,l=void 0===o?K:o;return function(t,e,i){void 0===i&&(i=l);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},K,l),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],u=!1,d={state:a,setOptions:function(i){var o="function"==typeof i?i(a.options):i;h(),a.options=Object.assign({},l,a.options,o),a.scrollParents={reference:n(t)?w(t):t.contextElement?w(t.contextElement):[],popper:w(e)};var s,u,p=function(t){var e=F(t);return z.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((s=[].concat(r,a.options.modifiers),u=s.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{}),Object.keys(u).map((function(t){return u[t]}))));return a.orderedModifiers=p.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,r=t.effect;if("function"==typeof r){var o=r({state:a,name:e,instance:d,options:i});c.push(o||function(){})}})),d.update()},forceUpdate:function(){if(!u){var t=a.elements,e=t.reference,n=t.popper;if(X(e,n)){a.rects={reference:v(e,S(n),"fixed"===a.options.strategy),popper:y(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var r=a.orderedModifiers[i],o=r.fn,l=r.options,s=void 0===l?{}:l,c=r.name;"function"==typeof o&&(a=o({state:a,options:s,name:c,instance:d})||a)}else a.reset=!1,i=-1}}},update:(o=function(){return new Promise((function(t){d.forceUpdate(),t(a)}))},function(){return s||(s=new Promise((function(t){Promise.resolve().then((function(){s=void 0,t(o())}))}))),s}),destroy:function(){h(),u=!0}};if(!X(t,e))return d;function h(){c.forEach((function(t){return t()})),c=[]}return d.setOptions(i).then((function(t){!u&&i.onFirstUpdate&&i.onFirstUpdate(t)})),d}}var J={passive:!0},tt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var n=t.state,i=t.instance,r=t.options,o=r.scroll,l=void 0===o||o,s=r.resize,a=void 0===s||s,c=e(n.elements.popper),u=[].concat(n.scrollParents.reference,n.scrollParents.popper);return l&&u.forEach((function(t){t.addEventListener("scroll",i.update,J)})),a&&c.addEventListener("resize",i.update,J),function(){l&&u.forEach((function(t){t.removeEventListener("scroll",i.update,J)})),a&&c.removeEventListener("resize",i.update,J)}},data:{}},et={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=$({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},nt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function it(t){var n,i=t.popper,r=t.popperRect,o=t.placement,l=t.variation,a=t.offsets,c=t.position,u=t.gpuAcceleration,d=t.adaptive,h=t.roundOffsets,f=t.isFixed,m=a.x,v=void 0===m?0:m,y=a.y,b=void 0===y?0:y,_="function"==typeof h?h({x:v,y:b}):{x:v,y:b};v=_.x,b=_.y;var w=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),E=D,T=C,L=window;if(d){var A=S(i),O="clientHeight",I="clientWidth";A===e(i)&&"static"!==g(A=p(i)).position&&"absolute"===c&&(O="scrollHeight",I="scrollWidth"),A=A,(o===C||(o===D||o===k)&&l===P)&&(T=M,b-=(f&&A===L&&L.visualViewport?L.visualViewport.height:A[O])-r.height,b*=u?1:-1),o!==D&&(o!==C&&o!==M||l!==P)||(E=k,v-=(f&&A===L&&L.visualViewport?L.visualViewport.width:A[I])-r.width,v*=u?1:-1)}var R,N=Object.assign({position:c},d&&nt),z=!0===h?function(t){var e=t.x,n=t.y,i=window.devicePixelRatio||1;return{x:s(e*i)/i||0,y:s(n*i)/i||0}}({x:v,y:b}):{x:v,y:b};return v=z.x,b=z.y,u?Object.assign({},N,((R={})[T]=x?"0":"",R[E]=w?"0":"",R.transform=(L.devicePixelRatio||1)<=1?"translate("+v+"px, "+b+"px)":"translate3d("+v+"px, "+b+"px, 0)",R)):Object.assign({},N,((n={})[T]=x?b+"px":"",n[E]=w?v+"px":"",n.transform="",n))}var rt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,l=void 0===o||o,s=n.roundOffsets,a=void 0===s||s,c={placement:H(e.placement),variation:U(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,it(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:a})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,it(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},ot={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},o=e.elements[t];i(o)&&h(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(t){var e=r[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var r=e.elements[t],o=e.attributes[t]||{},l=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});i(r)&&h(r)&&(Object.assign(r.style,l),Object.keys(o).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]},lt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.offset,o=void 0===r?[0,0]:r,l=N.reduce((function(t,n){return t[n]=function(t,e,n){var i=H(t),r=[D,C].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,l=o[0],s=o[1];return l=l||0,s=(s||0)*r,[D,k].indexOf(i)>=0?{x:s,y:l}:{x:l,y:s}}(n,e.rects,o),t}),{}),s=l[e.placement],a=s.x,c=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=l}},st={left:"right",right:"left",bottom:"top",top:"bottom"};function at(t){return t.replace(/left|right|bottom|top/g,(function(t){return st[t]}))}var ct={start:"end",end:"start"};function ut(t){return t.replace(/start|end/g,(function(t){return ct[t]}))}function dt(t,e){void 0===e&&(e={});var n=e,i=n.placement,r=n.boundary,o=n.rootBoundary,l=n.padding,s=n.flipVariations,a=n.allowedAutoPlacements,c=void 0===a?N:a,u=U(i),d=u?s?R:R.filter((function(t){return U(t)===u})):L,h=d.filter((function(t){return c.indexOf(t)>=0}));0===h.length&&(h=d);var p=h.reduce((function(e,n){return e[n]=Z(t,{placement:n,boundary:r,rootBoundary:o,padding:l})[H(n)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}var ht={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,l=n.altAxis,s=void 0===l||l,a=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,g=n.allowedAutoPlacements,m=e.options.placement,v=H(m),y=a||(v!==m&&f?function(t){if(H(t)===T)return[];var e=at(t);return[ut(t),e,ut(e)]}(m):[at(m)]),b=[m].concat(y).reduce((function(t,n){return t.concat(H(n)===T?dt(e,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):n)}),[]),_=e.rects.reference,w=e.rects.popper,x=new Map,E=!0,S=b[0],L=0;L<b.length;L++){var P=b[L],O=H(P),I=U(P)===A,R=[C,M].indexOf(O)>=0,N=R?"width":"height",z=Z(e,{placement:P,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),F=R?I?k:D:I?M:C;_[N]>w[N]&&(F=at(F));var B=at(F),j=[];if(o&&j.push(z[O]<=0),s&&j.push(z[F]<=0,z[B]<=0),j.every((function(t){return t}))){S=P,E=!1;break}x.set(P,j)}if(E)for(var V=function(t){var e=b.find((function(e){var n=x.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return S=e,"break"},W=f?3:1;W>0&&"break"!==V(W);W--);e.placement!==S&&(e.modifiersData[i]._skip=!0,e.placement=S,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function pt(t,e,n){return o(t,l(e,n))}var ft={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.mainAxis,s=void 0===r||r,a=n.altAxis,c=void 0!==a&&a,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.padding,f=n.tether,g=void 0===f||f,m=n.tetherOffset,v=void 0===m?0:m,b=Z(e,{boundary:u,rootBoundary:d,padding:p,altBoundary:h}),_=H(e.placement),w=U(e.placement),x=!w,E=Y(_),T="x"===E?"y":"x",L=e.modifiersData.popperOffsets,P=e.rects.reference,O=e.rects.popper,I="function"==typeof v?v(Object.assign({},e.rects,{placement:e.placement})):v,R="number"==typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),N=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,z={x:0,y:0};if(L){if(s){var F,B="y"===E?C:D,j="y"===E?M:k,V="y"===E?"height":"width",W=L[E],$=W+b[B],q=W-b[j],G=g?-O[V]/2:0,K=w===A?P[V]:O[V],X=w===A?-O[V]:-P[V],Q=e.elements.arrow,J=g&&Q?y(Q):{width:0,height:0},tt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},et=tt[B],nt=tt[j],it=pt(0,P[V],J[V]),rt=x?P[V]/2-G-it-et-R.mainAxis:K-it-et-R.mainAxis,ot=x?-P[V]/2+G+it+nt+R.mainAxis:X+it+nt+R.mainAxis,lt=e.elements.arrow&&S(e.elements.arrow),st=lt?"y"===E?lt.clientTop||0:lt.clientLeft||0:0,at=null!=(F=null==N?void 0:N[E])?F:0,ct=W+ot-at,ut=pt(g?l($,W+rt-at-st):$,W,g?o(q,ct):q);L[E]=ut,z[E]=ut-W}if(c){var dt,ht="x"===E?C:D,ft="x"===E?M:k,gt=L[T],mt="y"===T?"height":"width",vt=gt+b[ht],yt=gt-b[ft],bt=-1!==[C,D].indexOf(_),_t=null!=(dt=null==N?void 0:N[T])?dt:0,wt=bt?vt:gt-P[mt]-O[mt]-_t+R.altAxis,xt=bt?gt+P[mt]+O[mt]-_t-R.altAxis:yt,Et=g&&bt?function(t,e,n){var i=pt(t,e,n);return i>n?n:i}(wt,gt,xt):pt(g?wt:vt,gt,g?xt:yt);L[T]=Et,z[T]=Et-gt}e.modifiersData[i]=z}},requiresIfExists:["offset"]},gt={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,r=t.options,o=n.elements.arrow,l=n.modifiersData.popperOffsets,s=H(n.placement),a=Y(s),c=[D,k].indexOf(s)>=0?"height":"width";if(o&&l){var u=function(t,e){return q("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:G(t,L))}(r.padding,n),d=y(o),h="y"===a?C:D,p="y"===a?M:k,f=n.rects.reference[c]+n.rects.reference[a]-l[a]-n.rects.popper[c],g=l[a]-n.rects.reference[a],m=S(o),v=m?"y"===a?m.clientHeight||0:m.clientWidth||0:0,b=f/2-g/2,_=u[h],w=v-d[c]-u[p],x=v/2-d[c]/2+b,E=pt(_,x,w),T=a;n.modifiersData[i]=((e={})[T]=E,e.centerOffset=E-x,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&B(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function mt(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function vt(t){return[C,k,M,D].some((function(e){return t[e]>=0}))}var yt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,l=Z(e,{elementContext:"reference"}),s=Z(e,{altBoundary:!0}),a=mt(l,i),c=mt(s,r,o),u=vt(a),d=vt(c);e.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},bt=Q({defaultModifiers:[tt,et,rt,ot]}),_t=[tt,et,rt,ot,lt,ht,ft,gt,yt],wt=Q({defaultModifiers:_t});t.applyStyles=ot,t.arrow=gt,t.computeStyles=rt,t.createPopper=wt,t.createPopperLite=bt,t.defaultModifiers=_t,t.detectOverflow=Z,t.eventListeners=tt,t.flip=ht,t.hide=yt,t.offset=lt,t.popperGenerator=Q,t.popperOffsets=et,t.preventOverflow=ft,Object.defineProperty(t,"__esModule",{value:!0})})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e(t.Popper)}(this,(function(t){"use strict";const e=function(t){if(t&&t.__esModule)return t;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t)for(const n in t)if("default"!==n){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}return e.default=t,Object.freeze(e)}(t),n="transitionend",i=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#"+n.split("#")[1]),e=n&&"#"!==n?n.trim():null}return e},r=t=>{const e=i(t);return e&&document.querySelector(e)?e:null},o=t=>{const e=i(t);return e?document.querySelector(e):null},l=t=>{t.dispatchEvent(new Event(n))},s=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),a=t=>s(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,c=t=>{if(!s(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const e=t.closest("summary");if(e&&e.parentNode!==n)return!1;if(null===e)return!1}return e},u=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),d=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?d(t.parentNode):null},h=()=>{},p=t=>{t.offsetHeight},f=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,g=[],m=()=>"rtl"===document.documentElement.dir,v=t=>{var e;e=()=>{const e=f();if(e){const n=t.NAME,i=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=i,t.jQueryInterface)}},"loading"===document.readyState?(g.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of g)t()}),g.push(e)):e()},y=t=>{"function"==typeof t&&t()},b=(t,e,i=!0)=>{if(!i)return void y(t);const r=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const i=Number.parseFloat(e),r=Number.parseFloat(n);return i||r?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0})(e)+5;let o=!1;const s=({target:i})=>{i===e&&(o=!0,e.removeEventListener(n,s),y(t))};e.addEventListener(n,s),setTimeout(()=>{o||l(e)},r)},_=(t,e,n,i)=>{const r=t.length;let o=t.indexOf(e);return-1===o?!n&&i?t[r-1]:t[0]:(o+=n?1:-1,i&&(o=(o+r)%r),t[Math.max(0,Math.min(o,r-1))])},w=/[^.]*(?=\..*)\.|.*/,x=/\..*/,E=/::\d+$/,S={};let C=1;const M={mouseenter:"mouseover",mouseleave:"mouseout"},k=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 D(t,e){return e&&`${e}::${C++}`||t.uidEvent||C++}function T(t){const e=D(t);return t.uidEvent=e,S[e]=S[e]||{},S[e]}function L(t,e,n=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===n)}function A(t,e,n){const i="string"==typeof e,r=i?n:e||n;let o=R(t);return k.has(o)||(o=t),[i,r,o]}function P(t,e,n,i,r){if("string"!=typeof e||!t)return;let[o,l,s]=A(e,n,i);if(e in M){l=(t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)})(l)}const a=T(t),c=a[s]||(a[s]={}),u=L(c,l,o?n:null);if(u)return void(u.oneOff=u.oneOff&&r);const d=D(l,e.replace(w,"")),h=o?function(t,e,n){return function i(r){const o=t.querySelectorAll(e);for(let{target:l}=r;l&&l!==this;l=l.parentNode)for(const s of o)if(s===l)return z(r,{delegateTarget:l}),i.oneOff&&N.off(t,r.type,e,n),n.apply(l,[r])}}(t,n,l):function(t,e){return function n(i){return z(i,{delegateTarget:t}),n.oneOff&&N.off(t,i.type,e),e.apply(t,[i])}}(t,l);h.delegationSelector=o?n:null,h.callable=l,h.oneOff=r,h.uidEvent=d,c[d]=h,t.addEventListener(s,h,o)}function O(t,e,n,i,r){const o=L(e[n],i,r);o&&(t.removeEventListener(n,o,Boolean(r)),delete e[n][o.uidEvent])}function I(t,e,n,i){const r=e[n]||{};for(const o of Object.keys(r))if(o.includes(i)){const i=r[o];O(t,e,n,i.callable,i.delegationSelector)}}function R(t){return t=t.replace(x,""),M[t]||t}const N={on(t,e,n,i){P(t,e,n,i,!1)},one(t,e,n,i){P(t,e,n,i,!0)},off(t,e,n,i){if("string"!=typeof e||!t)return;const[r,o,l]=A(e,n,i),s=l!==e,a=T(t),c=a[l]||{},u=e.startsWith(".");if(void 0===o){if(u)for(const n of Object.keys(a))I(t,a,n,e.slice(1));for(const n of Object.keys(c)){const i=n.replace(E,"");if(!s||e.includes(i)){const e=c[n];O(t,a,l,e.callable,e.delegationSelector)}}}else{if(!Object.keys(c).length)return;O(t,a,l,o,r?n:null)}},trigger(t,e,n){if("string"!=typeof e||!t)return null;const i=f();let r=null,o=!0,l=!0,s=!1;e!==R(e)&&i&&(r=i.Event(e,n),i(t).trigger(r),o=!r.isPropagationStopped(),l=!r.isImmediatePropagationStopped(),s=r.isDefaultPrevented());let a=new Event(e,{bubbles:o,cancelable:!0});return a=z(a,n),s&&a.preventDefault(),l&&t.dispatchEvent(a),a.defaultPrevented&&r&&r.preventDefault(),a}};function z(t,e){for(const[n,i]of Object.entries(e||{}))try{t[n]=i}catch(e){Object.defineProperty(t,n,{configurable:!0,get:()=>i})}return t}const F=new Map,H={set(t,e,n){F.has(t)||F.set(t,new Map);const i=F.get(t);i.has(e)||0===i.size?i.set(e,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(t,e)=>F.has(t)&&F.get(t).get(e)||null,remove(t,e){if(!F.has(t))return;const n=F.get(t);n.delete(e),0===n.size&&F.delete(t)}};function B(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function j(t){return t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}const V={setDataAttribute(t,e,n){t.setAttribute("data-bs-"+j(e),n)},removeDataAttribute(t,e){t.removeAttribute("data-bs-"+j(e))},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),e[n]=B(t.dataset[i])}return e},getDataAttribute:(t,e)=>B(t.getAttribute("data-bs-"+j(e)))};class W{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,e){const n=s(e)?V.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...s(e)?V.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const i of Object.keys(e)){const r=e[i],o=t[i],l=s(o)?"element":null==(n=o)?""+n:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(l))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${l}" but expected type "${r}".`)}var n}}class U extends W{constructor(t,e){super(),(t=a(t))&&(this._element=t,this._config=this._getConfig(e),H.set(this._element,this.constructor.DATA_KEY,this))}dispose(){H.remove(this._element,this.constructor.DATA_KEY),N.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,n=!0){b(t,e,n)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return H.get(a(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.2.3"}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 Y=(t,e="hide")=>{const n="click.dismiss"+t.EVENT_KEY,i=t.NAME;N.on(document,n,`[data-bs-dismiss="${i}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),u(this))return;const r=o(this)||this.closest("."+i);t.getOrCreateInstance(r)[e]()}))};class $ extends U{static get NAME(){return"alert"}close(){if(N.trigger(this._element,"close.bs.alert").defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),N.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=$.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}Y($,"close"),v($);const q='[data-bs-toggle="button"]';class G extends U{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=G.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}N.on(document,"click.bs.button.data-api",q,t=>{t.preventDefault();const e=t.target.closest(q);G.getOrCreateInstance(e).toggle()}),v(G);const Z={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const n=[];let i=t.parentNode.closest(e);for(;i;)n.push(i),i=i.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>t+':not([tabindex^="-"])').join(",");return this.find(e,t).filter(t=>!u(t)&&c(t))}},K={endCallback:null,leftCallback:null,rightCallback:null},X={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Q extends W{constructor(t,e){super(),this._element=t,t&&Q.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return K}static get DefaultType(){return X}static get NAME(){return"swipe"}dispose(){N.off(this._element,".bs.swipe")}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),y(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<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&y(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(N.on(this._element,"pointerdown.bs.swipe",t=>this._start(t)),N.on(this._element,"pointerup.bs.swipe",t=>this._end(t)),this._element.classList.add("pointer-event")):(N.on(this._element,"touchstart.bs.swipe",t=>this._start(t)),N.on(this._element,"touchmove.bs.swipe",t=>this._move(t)),N.on(this._element,"touchend.bs.swipe",t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const J="next",tt="prev",et="left",nt="right",it="slid.bs.carousel",rt="carousel",ot="active",lt={ArrowLeft:nt,ArrowRight:et},st={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},at={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ct extends U{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Z.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===rt&&this.cycle()}static get Default(){return st}static get DefaultType(){return at}static get NAME(){return"carousel"}next(){this._slide(J)}nextWhenVisible(){!document.hidden&&c(this._element)&&this.next()}prev(){this._slide(tt)}pause(){this._isSliding&&l(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?N.one(this._element,it,()=>this.cycle()):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void N.one(this._element,it,()=>this.to(t));const n=this._getItemIndex(this._getActive());if(n===t)return;const i=t>n?J:tt;this._slide(i,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&N.on(this._element,"keydown.bs.carousel",t=>this._keydown(t)),"hover"===this._config.pause&&(N.on(this._element,"mouseenter.bs.carousel",()=>this.pause()),N.on(this._element,"mouseleave.bs.carousel",()=>this._maybeEnableCycle())),this._config.touch&&Q.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of Z.find(".carousel-item img",this._element))N.on(t,"dragstart.bs.carousel",t=>t.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(et)),rightCallback:()=>this._slide(this._directionToOrder(nt)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new Q(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=lt[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=Z.findOne(".active",this._indicatorsElement);e.classList.remove(ot),e.removeAttribute("aria-current");const n=Z.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);n&&(n.classList.add(ot),n.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const n=this._getActive(),i=t===J,r=e||_(this._getItems(),n,i,this._config.wrap);if(r===n)return;const o=this._getItemIndex(r),l=e=>N.trigger(this._element,e,{relatedTarget:r,direction:this._orderToDirection(t),from:this._getItemIndex(n),to:o});if(l("slide.bs.carousel").defaultPrevented)return;if(!n||!r)return;const s=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=r;const a=i?"carousel-item-start":"carousel-item-end",c=i?"carousel-item-next":"carousel-item-prev";r.classList.add(c),p(r),n.classList.add(a),r.classList.add(a),this._queueCallback(()=>{r.classList.remove(a,c),r.classList.add(ot),n.classList.remove(ot,c,a),this._isSliding=!1,l(it)},n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return Z.findOne(".active.carousel-item",this._element)}_getItems(){return Z.find(".carousel-item",this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return m()?t===et?tt:J:t===et?J:tt}_orderToDirection(t){return m()?t===tt?et:nt:t===tt?nt:et}static jQueryInterface(t){return this.each((function(){const e=ct.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)}))}}N.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",(function(t){const e=o(this);if(!e||!e.classList.contains(rt))return;t.preventDefault();const n=ct.getOrCreateInstance(e),i=this.getAttribute("data-bs-slide-to");return i?(n.to(i),void n._maybeEnableCycle()):"next"===V.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())})),N.on(window,"load.bs.carousel.data-api",()=>{const t=Z.find('[data-bs-ride="carousel"]');for(const e of t)ct.getOrCreateInstance(e)}),v(ct);const ut="show",dt="collapse",ht="collapsing",pt='[data-bs-toggle="collapse"]',ft={parent:null,toggle:!0},gt={parent:"(null|element)",toggle:"boolean"};class mt extends U{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=Z.find(pt);for(const t of n){const e=r(t),n=Z.find(e).filter(t=>t===this._element);null!==e&&n.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ft}static get DefaultType(){return gt}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(t=>t!==this._element).map(t=>mt.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning)return;if(N.trigger(this._element,"show.bs.collapse").defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(dt),this._element.classList.add(ht),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n="scroll"+(e[0].toUpperCase()+e.slice(1));this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ht),this._element.classList.add(dt,ut),this._element.style[e]="",N.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[e]=this._element[n]+"px"}hide(){if(this._isTransitioning||!this._isShown())return;if(N.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const t=this._getDimension();this._element.style[t]=this._element.getBoundingClientRect()[t]+"px",p(this._element),this._element.classList.add(ht),this._element.classList.remove(dt,ut);for(const t of this._triggerArray){const e=o(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ht),this._element.classList.add(dt),N.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}_isShown(t=this._element){return t.classList.contains(ut)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=a(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(pt);for(const e of t){const t=o(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=Z.find(":scope .collapse .collapse",this._config.parent);return Z.find(t,this._config.parent).filter(t=>!e.includes(t))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const n of t)n.classList.toggle("collapsed",!e),n.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const n=mt.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}))}}N.on(document,"click.bs.collapse.data-api",pt,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=r(this),n=Z.find(e);for(const t of n)mt.getOrCreateInstance(t,{toggle:!1}).toggle()})),v(mt);const vt="dropdown",yt="ArrowUp",bt="ArrowDown",_t="click.bs.dropdown.data-api",wt="keydown.bs.dropdown.data-api",xt="show",Et='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',St=".dropdown-menu",Ct=m()?"top-end":"top-start",Mt=m()?"top-start":"top-end",kt=m()?"bottom-end":"bottom-start",Dt=m()?"bottom-start":"bottom-end",Tt=m()?"left-start":"right-start",Lt=m()?"right-start":"left-start",At={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Pt={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ot extends U{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=Z.next(this._element,St)[0]||Z.prev(this._element,St)[0]||Z.findOne(St,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return At}static get DefaultType(){return Pt}static get NAME(){return vt}toggle(){return this._isShown()?this.hide():this.show()}show(){if(u(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!N.trigger(this._element,"show.bs.dropdown",t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))N.on(t,"mouseover",h);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(xt),this._element.classList.add(xt),N.trigger(this._element,"shown.bs.dropdown",t)}}hide(){if(u(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(!N.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))N.off(t,"mouseover",h);this._popper&&this._popper.destroy(),this._menu.classList.remove(xt),this._element.classList.remove(xt),this._element.setAttribute("aria-expanded","false"),V.removeDataAttribute(this._menu,"popper"),N.trigger(this._element,"hidden.bs.dropdown",t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!s(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(vt.toUpperCase()+': Option "reference" provided type "object" without a required "getBoundingClientRect" method.');return t}_createPopper(){if(void 0===e)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:s(this._config.reference)?t=a(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const n=this._getPopperConfig();this._popper=e.createPopper(t,this._menu,n)}_isShown(){return this._menu.classList.contains(xt)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Tt;if(t.classList.contains("dropstart"))return Lt;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Mt:Ct:e?Dt:kt}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,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||"static"===this._config.display)&&(V.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){const n=Z.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(t=>c(t));n.length&&_(n,e,t===bt,!n.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=Ot.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=Z.find('[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled).show');for(const n of e){const e=Ot.getInstance(n);if(!e||!1===e._config.autoClose)continue;const i=t.composedPath(),r=i.includes(e._menu);if(i.includes(e._element)||"inside"===e._config.autoClose&&!r||"outside"===e._config.autoClose&&r)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),n="Escape"===t.key,i=[yt,bt].includes(t.key);if(!i&&!n)return;if(e&&!n)return;t.preventDefault();const r=this.matches(Et)?this:Z.prev(this,Et)[0]||Z.next(this,Et)[0]||Z.findOne(Et,t.delegateTarget.parentNode),o=Ot.getOrCreateInstance(r);if(i)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),r.focus())}}N.on(document,wt,Et,Ot.dataApiKeydownHandler),N.on(document,wt,St,Ot.dataApiKeydownHandler),N.on(document,_t,Ot.clearMenus),N.on(document,"keyup.bs.dropdown.data-api",Ot.clearMenus),N.on(document,_t,Et,(function(t){t.preventDefault(),Ot.getOrCreateInstance(this).toggle()})),v(Ot);const It=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Rt=".sticky-top",Nt="padding-right",zt="margin-right";class Ft{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,Nt,e=>e+t),this._setElementAttributes(It,Nt,e=>e+t),this._setElementAttributes(Rt,zt,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Nt),this._resetElementAttributes(It,Nt),this._resetElementAttributes(Rt,zt)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,n){const i=this.getWidth();this._applyManipulationCallback(t,t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+i)return;this._saveInitialAttribute(t,e);const r=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,n(Number.parseFloat(r))+"px")})}_saveInitialAttribute(t,e){const n=t.style.getPropertyValue(e);n&&V.setDataAttribute(t,e,n)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,t=>{const n=V.getDataAttribute(t,e);null!==n?(V.removeDataAttribute(t,e),t.style.setProperty(e,n)):t.style.removeProperty(e)})}_applyManipulationCallback(t,e){if(s(t))e(t);else for(const n of Z.find(t,this._element))e(n)}}const Ht="mousedown.bs.backdrop",Bt={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},jt={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Vt extends W{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Bt}static get DefaultType(){return jt}static get NAME(){return"backdrop"}show(t){if(!this._config.isVisible)return void y(t);this._append();const e=this._getElement();this._config.isAnimated&&p(e),e.classList.add("show"),this._emulateAnimation(()=>{y(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),y(t)})):y(t)}dispose(){this._isAppended&&(N.off(this._element,Ht),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("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=a(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),N.on(t,Ht,()=>{y(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){b(t,this._getElement(),this._config.isAnimated)}}const Wt=".bs.focustrap",Ut="backward",Yt={autofocus:!0,trapElement:null},$t={autofocus:"boolean",trapElement:"element"};class qt extends W{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Yt}static get DefaultType(){return $t}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),N.off(document,Wt),N.on(document,"focusin.bs.focustrap",t=>this._handleFocusin(t)),N.on(document,"keydown.tab.bs.focustrap",t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,N.off(document,Wt))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const n=Z.focusableChildren(e);0===n.length?e.focus():this._lastTabNavDirection===Ut?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?Ut:"forward")}}const Gt="hidden.bs.modal",Zt="show.bs.modal",Kt="modal-open",Xt="modal-static",Qt={backdrop:!0,focus:!0,keyboard:!0},Jt={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class te extends U{constructor(t,e){super(t,e),this._dialog=Z.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ft,this._addEventListeners()}static get Default(){return Qt}static get DefaultType(){return Jt}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||N.trigger(this._element,Zt,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Kt),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){this._isShown&&!this._isTransitioning&&(N.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove("show"),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){for(const t of[window,this._dialog])N.off(t,".bs.modal");this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Vt({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new qt({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 e=Z.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),p(this._element),this._element.classList.add("show"),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,N.trigger(this._element,"shown.bs.modal",{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){N.on(this._element,"keydown.dismiss.bs.modal",t=>{if("Escape"===t.key)return this._config.keyboard?(t.preventDefault(),void this.hide()):void this._triggerBackdropTransition()}),N.on(window,"resize.bs.modal",()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),N.on(this._element,"mousedown.dismiss.bs.modal",t=>{N.one(this._element,"click.dismiss.bs.modal",e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_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(Kt),this._resetAdjustments(),this._scrollBar.reset(),N.trigger(this._element,Gt)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(N.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(Xt)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Xt),this._queueCallback(()=>{this._element.classList.remove(Xt),this._queueCallback(()=>{this._element.style.overflowY=e},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),n=e>0;if(n&&!t){const t=m()?"paddingLeft":"paddingRight";this._element.style[t]=e+"px"}if(!n&&t){const t=m()?"paddingRight":"paddingLeft";this._element.style[t]=e+"px"}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const n=te.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t](e)}}))}}N.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(t){const e=o(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),N.one(e,Zt,t=>{t.defaultPrevented||N.one(e,Gt,()=>{c(this)&&this.focus()})});const n=Z.findOne(".modal.show");n&&te.getInstance(n).hide(),te.getOrCreateInstance(e).toggle(this)})),Y(te),v(te);const ee="showing",ne=".offcanvas.show",ie="hidePrevented.bs.offcanvas",re="hidden.bs.offcanvas",oe={backdrop:!0,keyboard:!0,scroll:!1},le={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class se extends U{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return oe}static get DefaultType(){return le}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||N.trigger(this._element,"show.bs.offcanvas",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Ft).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ee),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add("show"),this._element.classList.remove(ee),N.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(N.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add("hiding"),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove("show","hiding"),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Ft).reset(),N.trigger(this._element,re)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new Vt({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():N.trigger(this._element,ie)}:null})}_initializeFocusTrap(){return new qt({trapElement:this._element})}_addEventListeners(){N.on(this._element,"keydown.dismiss.bs.offcanvas",t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():N.trigger(this._element,ie))})}static jQueryInterface(t){return this.each((function(){const e=se.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}N.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(t){const e=o(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),u(this))return;N.one(e,re,()=>{c(this)&&this.focus()});const n=Z.findOne(ne);n&&n!==e&&se.getInstance(n).hide(),se.getOrCreateInstance(e).toggle(this)})),N.on(window,"load.bs.offcanvas.data-api",()=>{for(const t of Z.find(ne))se.getOrCreateInstance(t).show()}),N.on(window,"resize.bs.offcanvas",()=>{for(const t of Z.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&se.getOrCreateInstance(t).hide()}),Y(se),v(se);const ae=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),ce=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,ue=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,de=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?!ae.has(n)||Boolean(ce.test(t.nodeValue)||ue.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(n))},he={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],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:[]},pe={allowList:he,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},fe={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},ge={entry:"(string|element|function|null)",selector:"(string|element)"};class me extends W{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return pe}static get DefaultType(){return fe}static get NAME(){return"TemplateFactory"}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[e,n]of Object.entries(this._config.content))this._setContent(t,n,e);const e=t.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&e.classList.add(...n.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,n]of Object.entries(t))super._typeCheckConfig({selector:e,entry:n},ge)}_setContent(t,e,n){const i=Z.findOne(n,t);i&&((e=this._resolvePossibleFunction(e))?s(e)?this._putElementInTemplate(a(e),i):this._config.html?i.innerHTML=this._maybeSanitize(e):i.textContent=e:i.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,n){if(!t.length)return t;if(n&&"function"==typeof n)return n(t);const i=(new window.DOMParser).parseFromString(t,"text/html"),r=[].concat(...i.body.querySelectorAll("*"));for(const t of r){const n=t.nodeName.toLowerCase();if(!Object.keys(e).includes(n)){t.remove();continue}const i=[].concat(...t.attributes),r=[].concat(e["*"]||[],e[n]||[]);for(const e of i)de(e,r)||t.removeAttribute(e.nodeName)}return i.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return"function"==typeof t?t(this):t}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const ve=new Set(["sanitize","allowList","sanitizeFn"]),ye="fade",be="show",_e="hide.bs.modal",we="hover",xe={AUTO:"auto",TOP:"top",RIGHT:m()?"left":"right",BOTTOM:"bottom",LEFT:m()?"right":"left"},Ee={allowList:he,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],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"},Se={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 Ce extends U{constructor(t,n){if(void 0===e)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,n),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 Ee}static get DefaultType(){return Se}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),N.off(this._element.closest(".modal"),_e,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("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=N.trigger(this._element,this.constructor.eventName("show")),e=(d(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),N.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(be),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))N.on(t,"mouseover",h);this._queueCallback(()=>{N.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!N.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(be),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))N.off(t,"mouseover",h);this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),N.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(ye,be),e.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",n),this._isAnimated()&&e.classList.add(ye),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new me({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":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(ye)}_isShown(){return this.tip&&this.tip.classList.contains(be)}_createPopper(t){const n="function"==typeof this._config.placement?this._config.placement.call(this,t,this._element):this._config.placement,i=xe[n.toUpperCase()];return e.createPopper(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return"function"==typeof t?t.call(this._element):t}_getPopperConfig(t){const e={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:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)N.on(this._element,this.constructor.eventName("click"),this._config.selector,t=>{this._initializeOnDelegatedTarget(t).toggle()});else if("manual"!==e){const t=e===we?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=e===we?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");N.on(this._element,t,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?"focus":we]=!0,e._enter()}),N.on(this._element,n,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?"focus":we]=e._element.contains(t.relatedTarget),e._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},N.on(this._element.closest(".modal"),_e,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(){this._isShown()||this._isHovered?this._isHovered=!0:(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,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=V.getDataAttributes(this._element);for(const t of Object.keys(e))ve.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:a(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);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 e=Ce.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}v(Ce);const Me={...Ce.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"},ke={...Ce.DefaultType,content:"(null|string|element|function)"};class De extends Ce{static get Default(){return Me}static get DefaultType(){return ke}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=De.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}v(De);const Te="click.bs.scrollspy",Le="active",Ae={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Pe={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Oe extends U{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Ae}static get DefaultType(){return Pe}static get NAME(){return"scrollspy"}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=a(t.target)||document.body,t.rootMargin=t.offset?t.offset+"px 0px -30%":t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map(t=>Number.parseFloat(t))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(N.off(this._config.target,Te),N.on(this._config.target,Te,"[href]",t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const n=this._rootElement||window,i=e.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:i,behavior:"smooth"});n.scrollTop=i}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),t)}_observerCallback(t){const e=t=>this._targetLinks.get("#"+t.target.id),n=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},i=(this._rootElement||document.documentElement).scrollTop,r=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&t){if(n(o),!i)return}else r||t||n(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=Z.find("[href]",this._config.target);for(const e of t){if(!e.hash||u(e))continue;const t=Z.findOne(e.hash,this._element);c(t)&&(this._targetLinks.set(e.hash,e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Le),this._activateParents(t),N.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))Z.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(Le);else for(const e of Z.parents(t,".nav, .list-group"))for(const t of Z.prev(e,".nav-link, .nav-item > .nav-link, .list-group-item"))t.classList.add(Le)}_clearActiveClass(t){t.classList.remove(Le);const e=Z.find("[href].active",t);for(const t of e)t.classList.remove(Le)}static jQueryInterface(t){return this.each((function(){const e=Oe.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}N.on(window,"load.bs.scrollspy.data-api",()=>{for(const t of Z.find('[data-bs-spy="scroll"]'))Oe.getOrCreateInstance(t)}),v(Oe);const Ie="ArrowLeft",Re="ArrowRight",Ne="ArrowUp",ze="ArrowDown",Fe="active",He="show",Be='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',je='.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), '+Be;class Ve extends U{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),N.on(this._element,"keydown.bs.tab",t=>this._keydown(t)))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),n=e?N.trigger(e,"hide.bs.tab",{relatedTarget:t}):null;N.trigger(t,"show.bs.tab",{relatedTarget:e}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(Fe),this._activate(o(t)),this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),N.trigger(t,"shown.bs.tab",{relatedTarget:e})):t.classList.add(He)},t,t.classList.contains("fade")))}_deactivate(t,e){t&&(t.classList.remove(Fe),t.blur(),this._deactivate(o(t)),this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),N.trigger(t,"hidden.bs.tab",{relatedTarget:e})):t.classList.remove(He)},t,t.classList.contains("fade")))}_keydown(t){if(![Ie,Re,Ne,ze].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=[Re,ze].includes(t.key),n=_(this._getChildren().filter(t=>!u(t)),t.target,e,!0);n&&(n.focus({preventScroll:!0}),Ve.getOrCreateInstance(n).show())}_getChildren(){return Z.find(je,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),n=this._getOuterElement(t);t.setAttribute("aria-selected",e),n!==t&&this._setAttributeIfNotExists(n,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=o(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby","#"+t.id))}_toggleDropDown(t,e){const n=this._getOuterElement(t);if(!n.classList.contains("dropdown"))return;const i=(t,i)=>{const r=Z.findOne(t,n);r&&r.classList.toggle(i,e)};i(".dropdown-toggle",Fe),i(".dropdown-menu",He),n.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,n){t.hasAttribute(e)||t.setAttribute(e,n)}_elemIsActive(t){return t.classList.contains(Fe)}_getInnerElement(t){return t.matches(je)?t:Z.findOne(je,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=Ve.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}N.on(document,"click.bs.tab",Be,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),u(this)||Ve.getOrCreateInstance(this).show()})),N.on(window,"load.bs.tab",()=>{for(const t of Z.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))Ve.getOrCreateInstance(t)}),v(Ve);const We="show",Ue="showing",Ye={animation:"boolean",autohide:"boolean",delay:"number"},$e={animation:!0,autohide:!0,delay:5e3};class qe extends U{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return $e}static get DefaultType(){return Ye}static get NAME(){return"toast"}show(){N.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),p(this._element),this._element.classList.add(We,Ue),this._queueCallback(()=>{this._element.classList.remove(Ue),N.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(N.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(Ue),this._queueCallback(()=>{this._element.classList.add("hide"),this._element.classList.remove(Ue,We),N.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(We),super.dispose()}isShown(){return this._element.classList.contains(We)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const n=t.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){N.on(this._element,"mouseover.bs.toast",t=>this._onInteraction(t,!0)),N.on(this._element,"mouseout.bs.toast",t=>this._onInteraction(t,!1)),N.on(this._element,"focusin.bs.toast",t=>this._onInteraction(t,!0)),N.on(this._element,"focusout.bs.toast",t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=qe.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}return Y(qe),v(qe),{Alert:$,Button:G,Carousel:ct,Collapse:mt,Dropdown:Ot,Modal:te,Offcanvas:se,Popover:De,ScrollSpy:Oe,Tab:Ve,Toast:qe,Tooltip:Ce}})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).SimpleBar=e()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n,i,r=function(t){return t&&t.Math==Math&&t},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||function(){return this}()||Function("return this")(),l=Object.defineProperty,s=function(t,e){try{l(o,t,{value:e,configurable:!0,writable:!0})}catch(n){o[t]=e}return e},a=o["__core-js_shared__"]||s("__core-js_shared__",{}),c=e((function(t){(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.22.6",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.6/LICENSE",source:"https://github.com/zloirock/core-js"})})),u=function(t){try{return!!t()}catch(t){return!0}},d=!u((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),h=Function.prototype,p=h.bind,f=h.call,g=d&&p.bind(f,f),m=d?function(t){return t&&g(t)}:function(t){return t&&function(){return f.apply(t,arguments)}},v=o.TypeError,y=function(t){if(null==t)throw v("Can't call method on "+t);return t},b=o.Object,_=function(t){return b(y(t))},w=m({}.hasOwnProperty),x=Object.hasOwn||function(t,e){return w(_(t),e)},E=0,S=Math.random(),C=m(1..toString),M=function(t){return"Symbol("+(void 0===t?"":t)+")_"+C(++E+S,36)},k=function(t){return"function"==typeof t},D=function(t){return k(t)?t:void 0},T=function(t,e){return arguments.length<2?D(o[t]):o[t]&&o[t][e]},L=T("navigator","userAgent")||"",A=o.process,P=o.Deno,O=A&&A.versions||P&&P.version,I=O&&O.v8;I&&(i=(n=I.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&L&&(!(n=L.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=L.match(/Chrome\/(\d+)/))&&(i=+n[1]);var R=i,N=!!Object.getOwnPropertySymbols&&!u((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&R&&R<41})),z=N&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,F=c("wks"),H=o.Symbol,B=H&&H.for,j=z?H:H&&H.withoutSetter||M,V=function(t){if(!x(F,t)||!N&&"string"!=typeof F[t]){var e="Symbol."+t;N&&x(H,t)?F[t]=H[t]:F[t]=z&&B?B(e):j(e)}return F[t]},W={};W[V("toStringTag")]="z";var U="[object z]"===String(W),Y=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),$=function(t){return"object"==typeof t?null!==t:k(t)},q=o.document,G=$(q)&&$(q.createElement),Z=function(t){return G?q.createElement(t):{}},K=!Y&&!u((function(){return 7!=Object.defineProperty(Z("div"),"a",{get:function(){return 7}}).a})),X=Y&&u((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Q=o.String,J=o.TypeError,tt=function(t){if($(t))return t;throw J(Q(t)+" is not an object")},et=Function.prototype.call,nt=d?et.bind(et):function(){return et.apply(et,arguments)},it=m({}.isPrototypeOf),rt=o.Object,ot=z?function(t){return"symbol"==typeof t}:function(t){var e=T("Symbol");return k(e)&&it(e.prototype,rt(t))},lt=o.String,st=function(t){try{return lt(t)}catch(t){return"Object"}},at=o.TypeError,ct=function(t){if(k(t))return t;throw at(st(t)+" is not a function")},ut=function(t,e){var n=t[e];return null==n?void 0:ct(n)},dt=o.TypeError,ht=o.TypeError,pt=V("toPrimitive"),ft=function(t){var e=function(t,e){if(!$(t)||ot(t))return t;var n,i=ut(t,pt);if(i){if(void 0===e&&(e="default"),n=nt(i,t,e),!$(n)||ot(n))return n;throw ht("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,i;if("string"===e&&k(n=t.toString)&&!$(i=nt(n,t)))return i;if(k(n=t.valueOf)&&!$(i=nt(n,t)))return i;if("string"!==e&&k(n=t.toString)&&!$(i=nt(n,t)))return i;throw dt("Can't convert object to primitive value")}(t,e)}(t,"string");return ot(e)?e:e+""},gt=o.TypeError,mt=Object.defineProperty,vt=Object.getOwnPropertyDescriptor,yt={f:Y?X?function(t,e,n){if(tt(t),e=ft(e),tt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var i=vt(t,e);i&&i.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:i.configurable,enumerable:"enumerable"in n?n.enumerable:i.enumerable,writable:!1})}return mt(t,e,n)}:mt:function(t,e,n){if(tt(t),e=ft(e),tt(n),K)try{return mt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw gt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},bt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},_t=Y?function(t,e,n){return yt.f(t,e,bt(1,n))}:function(t,e,n){return t[e]=n,t},wt=Function.prototype,xt=Y&&Object.getOwnPropertyDescriptor,Et=x(wt,"name"),St={EXISTS:Et,PROPER:Et&&"something"===function(){}.name,CONFIGURABLE:Et&&(!Y||Y&&xt(wt,"name").configurable)},Ct=m(Function.toString);k(a.inspectSource)||(a.inspectSource=function(t){return Ct(t)});var Mt,kt,Dt,Tt=a.inspectSource,Lt=o.WeakMap,At=k(Lt)&&/native code/.test(Tt(Lt)),Pt=c("keys"),Ot=function(t){return Pt[t]||(Pt[t]=M(t))},It={},Rt=o.TypeError,Nt=o.WeakMap;if(At||a.state){var zt=a.state||(a.state=new Nt),Ft=m(zt.get),Ht=m(zt.has),Bt=m(zt.set);Mt=function(t,e){if(Ht(zt,t))throw new Rt("Object already initialized");return e.facade=t,Bt(zt,t,e),e},kt=function(t){return Ft(zt,t)||{}},Dt=function(t){return Ht(zt,t)}}else{var jt=Ot("state");It[jt]=!0,Mt=function(t,e){if(x(t,jt))throw new Rt("Object already initialized");return e.facade=t,_t(t,jt,e),e},kt=function(t){return x(t,jt)?t[jt]:{}},Dt=function(t){return x(t,jt)}}var Vt={set:Mt,get:kt,has:Dt,enforce:function(t){return Dt(t)?kt(t):Mt(t,{})},getterFor:function(t){return function(e){var n;if(!$(e)||(n=kt(e)).type!==t)throw Rt("Incompatible receiver, "+t+" required");return n}}},Wt=e((function(t){var e=St.CONFIGURABLE,n=Vt.enforce,i=Vt.get,r=Object.defineProperty,o=Y&&!u((function(){return 8!==r((function(){}),"length",{value:8}).length})),l=String(String).split("String"),s=t.exports=function(t,i,s){if("Symbol("===String(i).slice(0,7)&&(i="["+String(i).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(i="get "+i),s&&s.setter&&(i="set "+i),(!x(t,"name")||e&&t.name!==i)&&r(t,"name",{value:i,configurable:!0}),o&&s&&x(s,"arity")&&t.length!==s.arity&&r(t,"length",{value:s.arity}),s&&x(s,"constructor")&&s.constructor){if(Y)try{r(t,"prototype",{writable:!1})}catch(t){}}else t.prototype=void 0;var a=n(t);return x(a,"source")||(a.source=l.join("string"==typeof i?i:"")),t};Function.prototype.toString=s((function(){return k(this)&&i(this).source||Tt(this)}),"toString")})),Ut=function(t,e,n,i){i||(i={});var r=i.enumerable,o=void 0!==i.name?i.name:e;return k(n)&&Wt(n,o,i),i.global?r?t[e]=n:s(e,n):(i.unsafe?t[e]&&(r=!0):delete t[e],r?t[e]=n:_t(t,e,n)),t},Yt=m({}.toString),$t=m("".slice),qt=function(t){return $t(Yt(t),8,-1)},Gt=V("toStringTag"),Zt=o.Object,Kt="Arguments"==qt(function(){return arguments}()),Xt=U?qt:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Zt(t),Gt))?n:Kt?qt(e):"Object"==(i=qt(e))&&k(e.callee)?"Arguments":i},Qt=U?{}.toString:function(){return"[object "+Xt(this)+"]"};U||Ut(Object.prototype,"toString",Qt,{unsafe:!0});var Jt={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},te=Z("span").classList,ee=te&&te.constructor&&te.constructor.prototype,ne=ee===Object.prototype?void 0:ee,ie=m(m.bind),re=function(t,e){return ct(t),void 0===e?t:d?ie(t,e):function(){return t.apply(e,arguments)}},oe=o.Object,le=m("".split),se=u((function(){return!oe("z").propertyIsEnumerable(0)}))?function(t){return"String"==qt(t)?le(t,""):oe(t)}:oe,ae=Math.ceil,ce=Math.floor,ue=Math.trunc||function(t){var e=+t;return(e>0?ce:ae)(e)},de=function(t){var e=+t;return e!=e||0===e?0:ue(e)},he=Math.min,pe=function(t){return t>0?he(de(t),9007199254740991):0},fe=function(t){return pe(t.length)},ge=Array.isArray||function(t){return"Array"==qt(t)},me=function(){},ve=[],ye=T("Reflect","construct"),be=/^\s*(?:class|function)\b/,_e=m(be.exec),we=!be.exec(me),xe=function(t){if(!k(t))return!1;try{return ye(me,ve,t),!0}catch(t){return!1}},Ee=function(t){if(!k(t))return!1;switch(Xt(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return we||!!_e(be,Tt(t))}catch(t){return!0}};Ee.sham=!0;var Se=!ye||u((function(){var t;return xe(xe.call)||!xe(Object)||!xe((function(){t=!0}))||t}))?Ee:xe,Ce=V("species"),Me=o.Array,ke=function(t,e){return new(function(t){var e;return ge(t)&&(e=t.constructor,(Se(e)&&(e===Me||ge(e.prototype))||$(e)&&null===(e=e[Ce]))&&(e=void 0)),void 0===e?Me:e}(t))(0===e?0:e)},De=m([].push),Te=function(t){var e=1==t,n=2==t,i=3==t,r=4==t,o=6==t,l=7==t,s=5==t||o;return function(a,c,u,d){for(var h,p,f=_(a),g=se(f),m=re(c,u),v=fe(g),y=0,b=d||ke,w=e?b(a,v):n||l?b(a,0):void 0;v>y;y++)if((s||y in g)&&(p=m(h=g[y],y,f),t))if(e)w[y]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return y;case 2:De(w,h)}else switch(t){case 4:return!1;case 7:De(w,h)}return o?-1:i||r?r:w}},Le={forEach:Te(0),map:Te(1),filter:Te(2),some:Te(3),every:Te(4),find:Te(5),findIndex:Te(6),filterReject:Te(7)},Ae=function(t,e){var n=[][t];return!!n&&u((function(){n.call(null,e||function(){return 1},1)}))},Pe=Le.forEach,Oe=Ae("forEach")?[].forEach:function(t){return Pe(this,t,arguments.length>1?arguments[1]:void 0)},Ie=function(t){if(t&&t.forEach!==Oe)try{_t(t,"forEach",Oe)}catch(e){t.forEach=Oe}};for(var Re in Jt)Jt[Re]&&Ie(o[Re]&&o[Re].prototype);Ie(ne);var Ne=!("undefined"==typeof window||!window.document||!window.document.createElement),ze={}.propertyIsEnumerable,Fe=Object.getOwnPropertyDescriptor,He={f:Fe&&!ze.call({1:2},1)?function(t){var e=Fe(this,t);return!!e&&e.enumerable}:ze},Be=function(t){return se(y(t))},je=Object.getOwnPropertyDescriptor,Ve={f:Y?je:function(t,e){if(t=Be(t),e=ft(e),K)try{return je(t,e)}catch(t){}if(x(t,e))return bt(!nt(He.f,t,e),t[e])}},We=Math.max,Ue=Math.min,Ye=function(t,e){var n=de(t);return n<0?We(n+e,0):Ue(n,e)},$e=function(t){return function(e,n,i){var r,o=Be(e),l=fe(o),s=Ye(i,l);if(t&&n!=n){for(;l>s;)if((r=o[s++])!=r)return!0}else for(;l>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},qe=($e(!0),$e(!1)),Ge=m([].push),Ze=function(t,e){var n,i=Be(t),r=0,o=[];for(n in i)!x(It,n)&&x(i,n)&&Ge(o,n);for(;e.length>r;)x(i,n=e[r++])&&(~qe(o,n)||Ge(o,n));return o},Ke=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xe=Ke.concat("length","prototype"),Qe={f:Object.getOwnPropertyNames||function(t){return Ze(t,Xe)}},Je={f:Object.getOwnPropertySymbols},tn=m([].concat),en=T("Reflect","ownKeys")||function(t){var e=Qe.f(tt(t)),n=Je.f;return n?tn(e,n(t)):e},nn=function(t,e,n){for(var i=en(e),r=yt.f,o=Ve.f,l=0;l<i.length;l++){var s=i[l];x(t,s)||n&&x(n,s)||r(t,s,o(e,s))}},rn=/#|\.prototype\./,on=function(t,e){var n=sn[ln(t)];return n==cn||n!=an&&(k(e)?u(e):!!e)},ln=on.normalize=function(t){return String(t).replace(rn,".").toLowerCase()},sn=on.data={},an=on.NATIVE="N",cn=on.POLYFILL="P",un=on,dn=Ve.f,hn=function(t,e){var n,i,r,l,a,c=t.target,u=t.global,d=t.stat;if(n=u?o:d?o[c]||s(c,{}):(o[c]||{}).prototype)for(i in e){if(l=e[i],r=t.dontCallGetSet?(a=dn(n,i))&&a.value:n[i],!un(u?i:c+(d?".":"#")+i,t.forced)&&void 0!==r){if(typeof l==typeof r)continue;nn(l,r)}(t.sham||r&&r.sham)&&_t(l,"sham",!0),Ut(n,i,l,t)}},pn=o.String,fn=function(t){if("Symbol"===Xt(t))throw TypeError("Cannot convert a Symbol value to a string");return pn(t)},gn="\t\n\v\f\r    \u2028\u2029\ufeff",mn=m("".replace),vn="["+gn+"]",yn=RegExp("^"+vn+vn+"*"),bn=RegExp(vn+vn+"*$"),_n=function(t){return function(e){var n=fn(y(e));return 1&t&&(n=mn(n,yn,"")),2&t&&(n=mn(n,bn,"")),n}},wn=(_n(1),_n(2),_n(3)),xn=o.parseInt,En=o.Symbol,Sn=En&&En.iterator,Cn=/^[+-]?0x/i,Mn=m(Cn.exec),kn=8!==xn(gn+"08")||22!==xn(gn+"0x16")||Sn&&!u((function(){xn(Object(Sn))}))?function(t,e){var n=wn(fn(t));return xn(n,e>>>0||(Mn(Cn,n)?16:10))}:xn;hn({global:!0,forced:parseInt!=kn},{parseInt:kn});var Dn=Object.keys||function(t){return Ze(t,Ke)},Tn=Object.assign,Ln=Object.defineProperty,An=m([].concat),Pn=!Tn||u((function(){if(Y&&1!==Tn({b:1},Tn(Ln({},"a",{enumerable:!0,get:function(){Ln(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=Tn({},t)[n]||"abcdefghijklmnopqrst"!=Dn(Tn({},e)).join("")}))?function(t,e){for(var n=_(t),i=arguments.length,r=1,o=Je.f,l=He.f;i>r;)for(var s,a=se(arguments[r++]),c=o?An(Dn(a),o(a)):Dn(a),u=c.length,d=0;u>d;)s=c[d++],Y&&!nt(l,a,s)||(n[s]=a[s]);return n}:Tn;hn({target:"Object",stat:!0,arity:2,forced:Object.assign!==Pn},{assign:Pn});var On=V("species"),In=Le.filter,Rn=("filter",R>=51||!u((function(){var t=[];return(t.constructor={})[On]=function(){return{foo:1}},1!==t.filter(Boolean).foo})));hn({target:"Array",proto:!0,forced:!Rn},{filter:function(t){return In(this,t,arguments.length>1?arguments[1]:void 0)}});var Nn,zn={f:Y&&!X?Object.defineProperties:function(t,e){tt(t);for(var n,i=Be(e),r=Dn(e),o=r.length,l=0;o>l;)yt.f(t,n=r[l++],i[n]);return t}},Fn=T("document","documentElement"),Hn=Ot("IE_PROTO"),Bn=function(){},jn=function(t){return"<script>"+t+"<\/script>"},Vn=function(t){t.write(jn("")),t.close();var e=t.parentWindow.Object;return t=null,e},Wn=function(){try{Nn=new ActiveXObject("htmlfile")}catch(t){}var t,e;Wn="undefined"!=typeof document?document.domain&&Nn?Vn(Nn):((e=Z("iframe")).style.display="none",Fn.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(jn("document.F=Object")),t.close(),t.F):Vn(Nn);for(var n=Ke.length;n--;)delete Wn.prototype[Ke[n]];return Wn()};It[Hn]=!0;var Un=Object.create||function(t,e){var n;return null!==t?(Bn.prototype=tt(t),n=new Bn,Bn.prototype=null,n[Hn]=t):n=Wn(),void 0===e?n:zn.f(n,e)},Yn=yt.f,$n=V("unscopables"),qn=Array.prototype;null==qn[$n]&&Yn(qn,$n,{configurable:!0,value:Un(null)});var Gn,Zn,Kn,Xn=function(t){qn[$n][t]=!0},Qn={},Jn=!u((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ti=Ot("IE_PROTO"),ei=o.Object,ni=ei.prototype,ii=Jn?ei.getPrototypeOf:function(t){var e=_(t);if(x(e,ti))return e[ti];var n=e.constructor;return k(n)&&e instanceof n?n.prototype:e instanceof ei?ni:null},ri=V("iterator"),oi=!1;[].keys&&("next"in(Kn=[].keys())?(Zn=ii(ii(Kn)))!==Object.prototype&&(Gn=Zn):oi=!0),(null==Gn||u((function(){var t={};return Gn[ri].call(t)!==t})))&&(Gn={}),k(Gn[ri])||Ut(Gn,ri,(function(){return this}));var li={IteratorPrototype:Gn,BUGGY_SAFARI_ITERATORS:oi},si=yt.f,ai=V("toStringTag"),ci=function(t,e,n){t&&!n&&(t=t.prototype),t&&!x(t,ai)&&si(t,ai,{configurable:!0,value:e})},ui=li.IteratorPrototype,di=function(){return this},hi=o.String,pi=o.TypeError,fi=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=m(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return tt(n),function(t){if("object"==typeof t||k(t))return t;throw pi("Can't set "+hi(t)+" as a prototype")}(i),e?t(n,i):n.__proto__=i,n}}():void 0),gi=St.PROPER,mi=St.CONFIGURABLE,vi=li.IteratorPrototype,yi=li.BUGGY_SAFARI_ITERATORS,bi=V("iterator"),_i=function(){return this},wi=function(t,e,n,i,r,o,l){!function(t,e,n,i){var r=e+" Iterator";t.prototype=Un(ui,{next:bt(1,n)}),ci(t,r,!1),Qn[r]=di}(n,e,i);var s,a,c,u=function(t){if(t===r&&g)return g;if(!yi&&t in p)return p[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},d=e+" Iterator",h=!1,p=t.prototype,f=p[bi]||p["@@iterator"]||r&&p[r],g=!yi&&f||u(r),m="Array"==e&&p.entries||f;if(m&&(s=ii(m.call(new t)))!==Object.prototype&&s.next&&(ii(s)!==vi&&(fi?fi(s,vi):k(s[bi])||Ut(s,bi,_i)),ci(s,d,!0)),gi&&"values"==r&&f&&"values"!==f.name&&(mi?_t(p,"name","values"):(h=!0,g=function(){return nt(f,this)})),r)if(a={values:u("values"),keys:o?g:u("keys"),entries:u("entries")},l)for(c in a)(yi||h||!(c in p))&&Ut(p,c,a[c]);else hn({target:e,proto:!0,forced:yi||h},a);return p[bi]!==g&&Ut(p,bi,g,{name:r}),Qn[e]=g,a},xi=yt.f,Ei=Vt.set,Si=Vt.getterFor("Array Iterator"),Ci=wi(Array,"Array",(function(t,e){Ei(this,{type:"Array Iterator",target:Be(t),index:0,kind:e})}),(function(){var t=Si(this),e=t.target,n=t.kind,i=t.index++;return!e||i>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:e[i],done:!1}:{value:[i,e[i]],done:!1}}),"values"),Mi=Qn.Arguments=Qn.Array;if(Xn("keys"),Xn("values"),Xn("entries"),Y&&"values"!==Mi.name)try{xi(Mi,"name",{value:"values"})}catch(t){}var ki=m("".charAt),Di=m("".charCodeAt),Ti=m("".slice),Li=function(t){return function(e,n){var i,r,o=fn(y(e)),l=de(n),s=o.length;return l<0||l>=s?t?"":void 0:(i=Di(o,l))<55296||i>56319||l+1===s||(r=Di(o,l+1))<56320||r>57343?t?ki(o,l):i:t?Ti(o,l,l+2):r-56320+(i-55296<<10)+65536}},Ai={codeAt:Li(!1),charAt:Li(!0)},Pi=Ai.charAt,Oi=Vt.set,Ii=Vt.getterFor("String Iterator");wi(String,"String",(function(t){Oi(this,{type:"String Iterator",string:fn(t),index:0})}),(function(){var t,e=Ii(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=Pi(n,i),e.index+=t.length,{value:t,done:!1})}));var Ri=function(t,e,n){for(var i in e)Ut(t,i,e[i],n);return t},Ni=o.Array,zi=Math.max,Fi=Qe.f,Hi="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Bi={f:function(t){return Hi&&"Window"==qt(t)?function(t){try{return Fi(t)}catch(t){return function(t,e,n){for(var i,r,o,l,s=fe(t),a=Ye(void 0,s),c=Ye(s,s),u=Ni(zi(c-a,0)),d=0;a<c;a++,d++)i=u,r=d,o=t[a],void 0,(l=ft(r))in i?yt.f(i,l,bt(0,o)):i[l]=o;return u.length=d,u}(Hi)}}(t):Fi(Be(t))}},ji=u((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Vi=Object.isExtensible,Wi=u((function(){Vi(1)}))||ji?function(t){return!!$(t)&&(!ji||"ArrayBuffer"!=qt(t))&&(!Vi||Vi(t))}:Vi,Ui=!u((function(){return Object.isExtensible(Object.preventExtensions({}))})),Yi=e((function(t){var e=yt.f,n=!1,i=M("meta"),r=0,o=function(t){e(t,i,{value:{objectID:"O"+r++,weakData:{}}})},l=t.exports={enable:function(){l.enable=function(){},n=!0;var t=Qe.f,e=m([].splice),r={};r[i]=1,t(r).length&&(Qe.f=function(n){for(var r=t(n),o=0,l=r.length;o<l;o++)if(r[o]===i){e(r,o,1);break}return r},hn({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Bi.f}))},fastKey:function(t,e){if(!$(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!x(t,i)){if(!Wi(t))return"F";if(!e)return"E";o(t)}return t[i].objectID},getWeakData:function(t,e){if(!x(t,i)){if(!Wi(t))return!0;if(!e)return!1;o(t)}return t[i].weakData},onFreeze:function(t){return Ui&&n&&Wi(t)&&!x(t,i)&&o(t),t}};It[i]=!0})),$i=(Yi.enable,Yi.fastKey,Yi.getWeakData,Yi.onFreeze,V("iterator")),qi=Array.prototype,Gi=V("iterator"),Zi=function(t){if(null!=t)return ut(t,Gi)||ut(t,"@@iterator")||Qn[Xt(t)]},Ki=o.TypeError,Xi=function(t,e,n){var i,r;tt(t);try{if(!(i=ut(t,"return"))){if("throw"===e)throw n;return n}i=nt(i,t)}catch(t){r=!0,i=t}if("throw"===e)throw n;if(r)throw i;return tt(i),n},Qi=o.TypeError,Ji=function(t,e){this.stopped=t,this.result=e},tr=Ji.prototype,er=function(t,e,n){var i,r,o,l,s,a,c,u,d=n&&n.that,h=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),g=re(e,d),m=function(t){return i&&Xi(i,"normal",t),new Ji(!0,t)},v=function(t){return h?(tt(t),f?g(t[0],t[1],m):g(t[0],t[1])):f?g(t,m):g(t)};if(p)i=t;else{if(!(r=Zi(t)))throw Qi(st(t)+" is not iterable");if(void 0!==(u=r)&&(Qn.Array===u||qi[$i]===u)){for(o=0,l=fe(t);l>o;o++)if((s=v(t[o]))&&it(tr,s))return s;return new Ji(!1)}i=function(t,e){var n=arguments.length<2?Zi(t):e;if(ct(n))return tt(nt(n,t));throw Ki(st(t)+" is not iterable")}(t,r)}for(a=i.next;!(c=nt(a,i)).done;){try{s=v(c.value)}catch(t){Xi(i,"throw",t)}if("object"==typeof s&&s&&it(tr,s))return s}return new Ji(!1)},nr=o.TypeError,ir=function(t,e){if(it(e,t))return t;throw nr("Incorrect invocation")},rr=V("iterator"),or=!1;try{var lr=0,sr={next:function(){return{done:!!lr++}},return:function(){or=!0}};sr[rr]=function(){return this},Array.from(sr,(function(){throw 2}))}catch(t){}var ar=Yi.getWeakData,cr=Vt.set,ur=Vt.getterFor,dr=Le.find,hr=Le.findIndex,pr=m([].splice),fr=0,gr=function(t){return t.frozen||(t.frozen=new mr)},mr=function(){this.entries=[]},vr=function(t,e){return dr(t.entries,(function(t){return t[0]===e}))};mr.prototype={get:function(t){var e=vr(this,t);if(e)return e[1]},has:function(t){return!!vr(this,t)},set:function(t,e){var n=vr(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=hr(this.entries,(function(e){return e[0]===t}));return~e&&pr(this.entries,e,1),!!~e}};var yr,br={getConstructor:function(t,e,n,i){var r=t((function(t,r){ir(t,o),cr(t,{type:e,id:fr++,frozen:void 0}),null!=r&&er(r,t[i],{that:t,AS_ENTRIES:n})})),o=r.prototype,l=ur(e),s=function(t,e,n){var i=l(t),r=ar(tt(e),!0);return!0===r?gr(i).set(e,n):r[i.id]=n,t};return Ri(o,{delete:function(t){var e=l(this);if(!$(t))return!1;var n=ar(t);return!0===n?gr(e).delete(t):n&&x(n,e.id)&&delete n[e.id]},has:function(t){var e=l(this);if(!$(t))return!1;var n=ar(t);return!0===n?gr(e).has(t):n&&x(n,e.id)}}),Ri(o,n?{get:function(t){var e=l(this);if($(t)){var n=ar(t);return!0===n?gr(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return s(this,t,e)}}:{add:function(t){return s(this,t,!0)}}),r}},_r=Vt.enforce,wr=!o.ActiveXObject&&"ActiveXObject"in o,xr=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Er=function(t,e,n){var i=-1!==t.indexOf("Map"),r=-1!==t.indexOf("Weak"),l=i?"set":"add",s=o[t],a=s&&s.prototype,c=s,d={},h=function(t){var e=m(a[t]);Ut(a,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(r&&!$(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return r&&!$(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(r&&!$(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(un(t,!k(s)||!(r||a.forEach&&!u((function(){(new s).entries().next()})))))c=n.getConstructor(e,t,i,l),Yi.enable();else if(un(t,!0)){var p=new c,f=p[l](r?{}:-0,1)!=p,g=u((function(){p.has(1)})),v=function(t,e){if(!or)return!1;var n=!1;try{var i={};i[rr]=function(){return{next:function(){return{done:n=!0}}}},function(t){new s(t)}(i)}catch(t){}return n}(),y=!r&&u((function(){for(var t=new s,e=5;e--;)t[l](e,e);return!t.has(-0)}));v||((c=e((function(t,e){ir(t,a);var n=function(t,e,n){var i,r;return fi&&k(i=e.constructor)&&i!==n&&$(r=i.prototype)&&r!==n.prototype&&fi(t,r),t}(new s,t,c);return null!=e&&er(e,n[l],{that:n,AS_ENTRIES:i}),n}))).prototype=a,a.constructor=c),(g||y)&&(h("delete"),h("has"),i&&h("get")),(y||f)&&h(l),r&&a.clear&&delete a.clear}return d[t]=c,hn({global:!0,constructor:!0,forced:c!=s},d),ci(c,t),r||n.setStrong(c,t,i),c}("WeakMap",xr,br);if(At&&wr){yr=br.getConstructor(xr,"WeakMap",!0),Yi.enable();var Sr=Er.prototype,Cr=m(Sr.delete),Mr=m(Sr.has),kr=m(Sr.get),Dr=m(Sr.set);Ri(Sr,{delete:function(t){if($(t)&&!Wi(t)){var e=_r(this);return e.frozen||(e.frozen=new yr),Cr(this,t)||e.frozen.delete(t)}return Cr(this,t)},has:function(t){if($(t)&&!Wi(t)){var e=_r(this);return e.frozen||(e.frozen=new yr),Mr(this,t)||e.frozen.has(t)}return Mr(this,t)},get:function(t){if($(t)&&!Wi(t)){var e=_r(this);return e.frozen||(e.frozen=new yr),Mr(this,t)?kr(this,t):e.frozen.get(t)}return kr(this,t)},set:function(t,e){if($(t)&&!Wi(t)){var n=_r(this);n.frozen||(n.frozen=new yr),Mr(this,t)?Dr(this,t,e):n.frozen.set(t,e)}else Dr(this,t,e);return this}})}var Tr=V("iterator"),Lr=V("toStringTag"),Ar=Ci.values,Pr=function(t,e){if(t){if(t[Tr]!==Ar)try{_t(t,Tr,Ar)}catch(e){t[Tr]=Ar}if(t[Lr]||_t(t,Lr,e),Jt[e])for(var n in Ci)if(t[n]!==Ci[n])try{_t(t,n,Ci[n])}catch(e){t[n]=Ci[n]}}};for(var Or in Jt)Pr(o[Or]&&o[Or].prototype,Or);Pr(ne,"DOMTokenList");var Ir=/^\s+|\s+$/g,Rr=/^[-+]0x[0-9a-f]+$/i,Nr=/^0b[01]+$/i,zr=/^0o[0-7]+$/i,Fr=parseInt,Hr="object"==typeof t&&t&&t.Object===Object&&t,Br="object"==typeof self&&self&&self.Object===Object&&self,jr=Hr||Br||Function("return this")(),Vr=Object.prototype.toString,Wr=Math.max,Ur=Math.min,Yr=function(){return jr.Date.now()};function $r(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function qr(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==Vr.call(t)}(t))return NaN;if($r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=$r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Ir,"");var n=Nr.test(t);return n||zr.test(t)?Fr(t.slice(2),n?2:8):Rr.test(t)?NaN:+t}var Gr=function(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return $r(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),function(t,e,n){var i,r,o,l,s,a,c=0,u=!1,d=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var n=i,o=r;return i=r=void 0,c=e,l=t.apply(o,n)}function f(t){return c=t,s=setTimeout(m,e),u?p(t):l}function g(t){var n=t-a;return void 0===a||n>=e||n<0||d&&t-c>=o}function m(){var t=Yr();if(g(t))return v(t);s=setTimeout(m,function(t){var n=e-(t-a);return d?Ur(n,o-(t-c)):n}(t))}function v(t){return s=void 0,h&&i?p(t):(i=r=void 0,l)}function y(){var t=Yr(),n=g(t);if(i=arguments,r=this,a=t,n){if(void 0===s)return f(a);if(d)return s=setTimeout(m,e),p(a)}return void 0===s&&(s=setTimeout(m,e)),l}return e=qr(e)||0,$r(n)&&(u=!!n.leading,o=(d="maxWait"in n)?Wr(qr(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,i=a=r=s=void 0},y.flush=function(){return void 0===s?l:v(Yr())},y}(t,e,{leading:i,maxWait:e,trailing:r})},Zr=/^\s+|\s+$/g,Kr=/^[-+]0x[0-9a-f]+$/i,Xr=/^0b[01]+$/i,Qr=/^0o[0-7]+$/i,Jr=parseInt,to="object"==typeof t&&t&&t.Object===Object&&t,eo="object"==typeof self&&self&&self.Object===Object&&self,no=to||eo||Function("return this")(),io=Object.prototype.toString,ro=Math.max,oo=Math.min,lo=function(){return no.Date.now()};function so(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ao(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==io.call(t)}(t))return NaN;if(so(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=so(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Zr,"");var n=Xr.test(t);return n||Qr.test(t)?Jr(t.slice(2),n?2:8):Kr.test(t)?NaN:+t}var co=function(t,e,n){var i,r,o,l,s,a,c=0,u=!1,d=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var n=i,o=r;return i=r=void 0,c=e,l=t.apply(o,n)}function f(t){return c=t,s=setTimeout(m,e),u?p(t):l}function g(t){var n=t-a;return void 0===a||n>=e||n<0||d&&t-c>=o}function m(){var t=lo();if(g(t))return v(t);s=setTimeout(m,function(t){var n=e-(t-a);return d?oo(n,o-(t-c)):n}(t))}function v(t){return s=void 0,h&&i?p(t):(i=r=void 0,l)}function y(){var t=lo(),n=g(t);if(i=arguments,r=this,a=t,n){if(void 0===s)return f(a);if(d)return s=setTimeout(m,e),p(a)}return void 0===s&&(s=setTimeout(m,e)),l}return e=ao(e)||0,so(n)&&(u=!!n.leading,o=(d="maxWait"in n)?ro(ao(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,i=a=r=s=void 0},y.flush=function(){return void 0===s?l:v(lo())},y},uo=/^\[object .+?Constructor\]$/,ho="object"==typeof t&&t&&t.Object===Object&&t,po="object"==typeof self&&self&&self.Object===Object&&self,fo=ho||po||Function("return this")(),go=Array.prototype,mo=Function.prototype,vo=Object.prototype,yo=fo["__core-js_shared__"],bo=function(){var t=/[^.]+$/.exec(yo&&yo.keys&&yo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),_o=mo.toString,wo=vo.hasOwnProperty,xo=vo.toString,Eo=RegExp("^"+_o.call(wo).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),So=go.splice,Co=Po(fo,"Map"),Mo=Po(Object,"create");function ko(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Do(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function To(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Lo(t,e){for(var n,i,r=t.length;r--;)if((n=t[r][0])===(i=e)||n!=n&&i!=i)return r;return-1}function Ao(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function Po(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!Io(t)||(e=t,bo&&bo in e))&&(function(t){var e=Io(t)?xo.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?Eo:uo).test(function(t){if(null!=t){try{return _o.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}(n)?n:void 0}function Oo(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var l=t.apply(this,i);return n.cache=o.set(r,l),l};return n.cache=new(Oo.Cache||To),n}function Io(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}ko.prototype.clear=function(){this.__data__=Mo?Mo(null):{}},ko.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},ko.prototype.get=function(t){var e=this.__data__;if(Mo){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return wo.call(e,t)?e[t]:void 0},ko.prototype.has=function(t){var e=this.__data__;return Mo?void 0!==e[t]:wo.call(e,t)},ko.prototype.set=function(t,e){return this.__data__[t]=Mo&&void 0===e?"__lodash_hash_undefined__":e,this},Do.prototype.clear=function(){this.__data__=[]},Do.prototype.delete=function(t){var e=this.__data__,n=Lo(e,t);return!(n<0||(n==e.length-1?e.pop():So.call(e,n,1),0))},Do.prototype.get=function(t){var e=this.__data__,n=Lo(e,t);return n<0?void 0:e[n][1]},Do.prototype.has=function(t){return Lo(this.__data__,t)>-1},Do.prototype.set=function(t,e){var n=this.__data__,i=Lo(n,t);return i<0?n.push([t,e]):n[i][1]=e,this},To.prototype.clear=function(){this.__data__={hash:new ko,map:new(Co||Do),string:new ko}},To.prototype.delete=function(t){return Ao(this,t).delete(t)},To.prototype.get=function(t){return Ao(this,t).get(t)},To.prototype.has=function(t){return Ao(this,t).has(t)},To.prototype.set=function(t,e){return Ao(this,t).set(t,e),this},Oo.Cache=To;var Ro,No=Oo,zo=[],Fo="ResizeObserver loop completed with undelivered notifications.";!function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(Ro||(Ro={}));var Ho,Bo=function(t){return Object.freeze(t)},jo=function(t,e){this.inlineSize=t,this.blockSize=e,Bo(this)},Vo=function(){function t(t,e,n,i){return this.x=t,this.y=e,this.width=n,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Bo(this)}return t.prototype.toJSON=function(){var t=this;return{x:t.x,y:t.y,top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),Wo=function(t){return t instanceof SVGElement&&"getBBox"in t},Uo=function(t){if(Wo(t)){var e=t.getBBox(),n=e.width,i=e.height;return!n&&!i}var r=t,o=r.offsetWidth,l=r.offsetHeight;return!(o||l||t.getClientRects().length)},Yo=function(t){var e,n;if(t instanceof Element)return!0;var i=null===(n=null===(e=t)||void 0===e?void 0:e.ownerDocument)||void 0===n?void 0:n.defaultView;return!!(i&&t instanceof i.Element)},$o="undefined"!=typeof window?window:{},qo=new WeakMap,Go=/auto|scroll/,Zo=/^tb|vertical/,Ko=/msie|trident/i.test($o.navigator&&$o.navigator.userAgent),Xo=function(t){return parseFloat(t||"0")},Qo=function(t,e,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=!1),new jo((n?e:t)||0,(n?t:e)||0)},Jo=Bo({devicePixelContentBoxSize:Qo(),borderBoxSize:Qo(),contentBoxSize:Qo(),contentRect:new Vo(0,0,0,0)}),tl=function(t,e){if(void 0===e&&(e=!1),qo.has(t)&&!e)return qo.get(t);if(Uo(t))return qo.set(t,Jo),Jo;var n=getComputedStyle(t),i=Wo(t)&&t.ownerSVGElement&&t.getBBox(),r=!Ko&&"border-box"===n.boxSizing,o=Zo.test(n.writingMode||""),l=!i&&Go.test(n.overflowY||""),s=!i&&Go.test(n.overflowX||""),a=i?0:Xo(n.paddingTop),c=i?0:Xo(n.paddingRight),u=i?0:Xo(n.paddingBottom),d=i?0:Xo(n.paddingLeft),h=i?0:Xo(n.borderTopWidth),p=i?0:Xo(n.borderRightWidth),f=i?0:Xo(n.borderBottomWidth),g=d+c,m=a+u,v=(i?0:Xo(n.borderLeftWidth))+p,y=h+f,b=s?t.offsetHeight-y-t.clientHeight:0,_=l?t.offsetWidth-v-t.clientWidth:0,w=r?g+v:0,x=r?m+y:0,E=i?i.width:Xo(n.width)-w-_,S=i?i.height:Xo(n.height)-x-b,C=E+g+_+v,M=S+m+b+y,k=Bo({devicePixelContentBoxSize:Qo(Math.round(E*devicePixelRatio),Math.round(S*devicePixelRatio),o),borderBoxSize:Qo(C,M,o),contentBoxSize:Qo(E,S,o),contentRect:new Vo(d,a,E,S)});return qo.set(t,k),k},el=function(t,e,n){var i=tl(t,n),r=i.borderBoxSize,o=i.contentBoxSize,l=i.devicePixelContentBoxSize;switch(e){case Ro.DEVICE_PIXEL_CONTENT_BOX:return l;case Ro.BORDER_BOX:return r;default:return o}},nl=function(t){var e=tl(t);this.target=t,this.contentRect=e.contentRect,this.borderBoxSize=Bo([e.borderBoxSize]),this.contentBoxSize=Bo([e.contentBoxSize]),this.devicePixelContentBoxSize=Bo([e.devicePixelContentBoxSize])},il=function(t){if(Uo(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},rl=function(){var t=1/0,e=[];zo.forEach((function(n){if(0!==n.activeTargets.length){var i=[];n.activeTargets.forEach((function(e){var n=new nl(e.target),r=il(e.target);i.push(n),e.lastReportedSize=el(e.target,e.observedBox),r<t&&(t=r)})),e.push((function(){n.callback.call(n.observer,i,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,i=e;n<i.length;n++)(0,i[n])();return t},ol=function(t){zo.forEach((function(e){e.activeTargets.splice(0,e.activeTargets.length),e.skippedTargets.splice(0,e.skippedTargets.length),e.observationTargets.forEach((function(n){n.isActive()&&(il(n.target)>t?e.activeTargets.push(n):e.skippedTargets.push(n))}))}))},ll=[],sl=0,al={attributes:!0,characterData:!0,childList:!0,subtree:!0},cl=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],ul=function(t){return void 0===t&&(t=0),Date.now()+t},dl=!1,hl=new(function(){function t(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return t.prototype.run=function(t){var e=this;if(void 0===t&&(t=250),!dl){dl=!0;var n,i=ul(t);n=function(){var n=!1;try{n=function(){var t,e=0;for(ol(e);zo.some((function(t){return t.activeTargets.length>0}));)e=rl(),ol(e);return zo.some((function(t){return t.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?t=new ErrorEvent("error",{message:Fo}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=Fo),window.dispatchEvent(t)),e>0}()}finally{if(dl=!1,t=i-ul(),!sl)return;n?e.run(1e3):t>0?e.run(t):e.start()}},function(t){if(!Ho){var e=0,n=document.createTextNode("");new MutationObserver((function(){return ll.splice(0).forEach((function(t){return t()}))})).observe(n,{characterData:!0}),Ho=function(){n.textContent=""+(e?e--:e++)}}ll.push(t),Ho()}((function(){requestAnimationFrame(n)}))}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var t=this,e=function(){return t.observer&&t.observer.observe(document.body,al)};document.body?e():$o.addEventListener("DOMContentLoaded",e)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),cl.forEach((function(e){return $o.addEventListener(e,t.listener,!0)})))},t.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),cl.forEach((function(e){return $o.removeEventListener(e,t.listener,!0)})),this.stopped=!0)},t}()),pl=function(t){!sl&&t>0&&hl.start(),!(sl+=t)&&hl.stop()},fl=function(){function t(t,e){this.target=t,this.observedBox=e||Ro.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t,e=el(this.target,this.observedBox,!0);return t=this.target,Wo(t)||function(t){switch(t.tagName){case"INPUT":if("image"!==t.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(t)||"inline"!==getComputedStyle(t).display||(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),gl=function(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e},ml=new WeakMap,vl=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},yl=function(){function t(){}return t.connect=function(t,e){var n=new gl(t,e);ml.set(t,n)},t.observe=function(t,e,n){var i=ml.get(t),r=0===i.observationTargets.length;vl(i.observationTargets,e)<0&&(r&&zo.push(i),i.observationTargets.push(new fl(e,n&&n.box)),pl(1),hl.schedule())},t.unobserve=function(t,e){var n=ml.get(t),i=vl(n.observationTargets,e),r=1===n.observationTargets.length;i>=0&&(r&&zo.splice(zo.indexOf(n),1),n.observationTargets.splice(i,1),pl(-1))},t.disconnect=function(t){var e=this,n=ml.get(t);n.observationTargets.slice().forEach((function(n){return e.unobserve(t,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},t}(),bl=function(){function t(t){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof t)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");yl.connect(this,t)}return t.prototype.observe=function(t,e){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Yo(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");yl.observe(this,t,e)},t.prototype.unobserve=function(t){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Yo(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");yl.unobserve(this,t)},t.prototype.disconnect=function(){yl.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}(),_l=o.TypeError,wl=function(t){return function(e,n,i,r){ct(n);var o=_(e),l=se(o),s=fe(o),a=t?s-1:0,c=t?-1:1;if(i<2)for(;;){if(a in l){r=l[a],a+=c;break}if(a+=c,t?a<0:s<=a)throw _l("Reduce of empty array with no initial value")}for(;t?a>=0:s>a;a+=c)a in l&&(r=n(r,l[a],a,o));return r}},xl={left:wl(!1),right:wl(!0)},El="process"==qt(o.process),Sl=xl.left,Cl=Ae("reduce");hn({target:"Array",proto:!0,forced:!Cl||!El&&R>79&&R<83},{reduce:function(t){var e=arguments.length;return Sl(this,t,e,e>1?arguments[1]:void 0)}});var Ml,kl,Dl=function(){var t=tt(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Tl=o.RegExp,Ll=u((function(){var t=Tl("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Al=Ll||u((function(){return!Tl("a","y").sticky})),Pl={BROKEN_CARET:Ll||u((function(){var t=Tl("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Al,UNSUPPORTED_Y:Ll},Ol=o.RegExp,Il=u((function(){var t=Ol(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Rl=o.RegExp,Nl=u((function(){var t=Rl("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),zl=Vt.get,Fl=c("native-string-replace",String.prototype.replace),Hl=RegExp.prototype.exec,Bl=Hl,jl=m("".charAt),Vl=m("".indexOf),Wl=m("".replace),Ul=m("".slice),Yl=(kl=/b*/g,nt(Hl,Ml=/a/,"a"),nt(Hl,kl,"a"),0!==Ml.lastIndex||0!==kl.lastIndex),$l=Pl.BROKEN_CARET,ql=void 0!==/()??/.exec("")[1];(Yl||ql||$l||Il||Nl)&&(Bl=function(t){var e,n,i,r,o,l,s,a=this,c=zl(a),u=fn(t),d=c.raw;if(d)return d.lastIndex=a.lastIndex,e=nt(Bl,d,u),a.lastIndex=d.lastIndex,e;var h=c.groups,p=$l&&a.sticky,f=nt(Dl,a),g=a.source,m=0,v=u;if(p&&(f=Wl(f,"y",""),-1===Vl(f,"g")&&(f+="g"),v=Ul(u,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==jl(u,a.lastIndex-1))&&(g="(?: "+g+")",v=" "+v,m++),n=new RegExp("^(?:"+g+")",f)),ql&&(n=new RegExp("^"+g+"$(?!\\s)",f)),Yl&&(i=a.lastIndex),r=nt(Hl,p?n:a,v),p?r?(r.input=Ul(r.input,m),r[0]=Ul(r[0],m),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:Yl&&r&&(a.lastIndex=a.global?r.index+r[0].length:i),ql&&r&&r.length>1&&nt(Fl,r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r&&h)for(r.groups=l=Un(null),o=0;o<h.length;o++)l[(s=h[o])[0]]=r[s[1]];return r});var Gl=Bl;hn({target:"RegExp",proto:!0,forced:/./.exec!==Gl},{exec:Gl});var Zl=V("species"),Kl=RegExp.prototype,Xl=function(t,e,n,i){var r=V(t),o=!u((function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})),l=o&&!u((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Zl]=function(){return n},n.flags="",n[r]=/./[r]),n.exec=function(){return e=!0,null},n[r](""),!e}));if(!o||!l||n){var s=m(/./[r]),a=e(r,""[t],(function(t,e,n,i,r){var l=m(t),a=e.exec;return a===Gl||a===Kl.exec?o&&!r?{done:!0,value:s(e,n,i)}:{done:!0,value:l(n,e,i)}:{done:!1}}));Ut(String.prototype,t,a[0]),Ut(Kl,r,a[1])}i&&_t(Kl[r],"sham",!0)},Ql=Ai.charAt,Jl=function(t,e,n){return e+(n?Ql(t,e).length:1)},ts=o.TypeError,es=function(t,e){var n=t.exec;if(k(n)){var i=nt(n,t,e);return null!==i&&tt(i),i}if("RegExp"===qt(t))return nt(Gl,t,e);throw ts("RegExp#exec called on incompatible receiver")};Xl("match",(function(t,e,n){return[function(e){var n=y(this),i=null==e?void 0:ut(e,t);return i?nt(i,e,n):new RegExp(e)[t](fn(n))},function(t){var i=tt(this),r=fn(t),o=n(e,i,r);if(o.done)return o.value;if(!i.global)return es(i,r);var l=i.unicode;i.lastIndex=0;for(var s,a=[],c=0;null!==(s=es(i,r));){var u=fn(s[0]);a[c]=u,""===u&&(i.lastIndex=Jl(r,pe(i.lastIndex),l)),c++}return 0===c?null:a}]}));var ns=St.EXISTS,is=yt.f,rs=Function.prototype,os=m(rs.toString),ls=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ss=m(ls.exec);Y&&!ns&&is(rs,"name",{configurable:!0,get:function(){try{return ss(ls,os(this))[1]}catch(t){return""}}});var as=Function.prototype,cs=as.apply,us=as.call,ds="object"==typeof Reflect&&Reflect.apply||(d?us.bind(cs):function(){return us.apply(cs,arguments)}),hs=Math.floor,ps=m("".charAt),fs=m("".replace),gs=m("".slice),ms=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,vs=/\$([$&'`]|\d{1,2})/g,ys=function(t,e,n,i,r,o){var l=n+t.length,s=i.length,a=vs;return void 0!==r&&(r=_(r),a=ms),fs(o,a,(function(o,a){var c;switch(ps(a,0)){case"$":return"$";case"&":return t;case"`":return gs(e,0,n);case"'":return gs(e,l);case"<":c=r[gs(a,1,-1)];break;default:var u=+a;if(0===u)return o;if(u>s){var d=hs(u/10);return 0===d?o:d<=s?void 0===i[d-1]?ps(a,1):i[d-1]+ps(a,1):o}c=i[u-1]}return void 0===c?"":c}))},bs=V("replace"),_s=Math.max,ws=Math.min,xs=m([].concat),Es=m([].push),Ss=m("".indexOf),Cs=m("".slice),Ms="$0"==="a".replace(/./,"$0"),ks=!!/./[bs]&&""===/./[bs]("a","$0");Xl("replace",(function(t,e,n){var i=ks?"$":"$0";return[function(t,n){var i=y(this),r=null==t?void 0:ut(t,bs);return r?nt(r,t,i,n):nt(e,fn(i),t,n)},function(t,r){var o=tt(this),l=fn(t);if("string"==typeof r&&-1===Ss(r,i)&&-1===Ss(r,"$<")){var s=n(e,o,l,r);if(s.done)return s.value}var a=k(r);a||(r=fn(r));var c=o.global;if(c){var u=o.unicode;o.lastIndex=0}for(var d=[];;){var h=es(o,l);if(null===h)break;if(Es(d,h),!c)break;""===fn(h[0])&&(o.lastIndex=Jl(l,pe(o.lastIndex),u))}for(var p,f="",g=0,m=0;m<d.length;m++){for(var v=fn((h=d[m])[0]),y=_s(ws(de(h.index),l.length),0),b=[],_=1;_<h.length;_++)Es(b,void 0===(p=h[_])?p:String(p));var w=h.groups;if(a){var x=xs([v],b,y,l);void 0!==w&&Es(x,w);var E=fn(ds(r,void 0,x))}else E=ys(v,l,y,b,w,r);y>=g&&(f+=Cs(l,g,y)+E,g=y+v.length)}return f+Cs(l,g)}]}),!!u((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Ms||ks);var Ds=function(t){return Array.prototype.reduce.call(t,(function(t,e){var n=e.name.match(/data-simplebar-(.+)/);if(n){var i=n[1].replace(/\W+(.)/g,(function(t,e){return e.toUpperCase()}));switch(e.value){case"true":t[i]=!0;break;case"false":t[i]=!1;break;case void 0:t[i]=!0;break;default:t[i]=e.value}}return t}),{})};function Ts(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window}function Ls(t){return t&&t.ownerDocument?t.ownerDocument:document}var As=null,Ps=null;function Os(t){if(null===As){var e=Ls(t);if(void 0===e)return As=0;var n=e.body,i=e.createElement("div");i.classList.add("simplebar-hide-scrollbar"),n.appendChild(i);var r=i.getBoundingClientRect().right;n.removeChild(i),As=r}return As}Ne&&window.addEventListener("resize",(function(){Ps!==window.devicePixelRatio&&(Ps=window.devicePixelRatio,As=null)}));var Is=function(){function t(e,n){var i=this;this.onScroll=function(){var t=Ts(i.el);i.scrollXTicking||(t.requestAnimationFrame(i.scrollX),i.scrollXTicking=!0),i.scrollYTicking||(t.requestAnimationFrame(i.scrollY),i.scrollYTicking=!0)},this.scrollX=function(){i.axis.x.isOverflowing&&(i.showScrollbar("x"),i.positionScrollbar("x")),i.scrollXTicking=!1},this.scrollY=function(){i.axis.y.isOverflowing&&(i.showScrollbar("y"),i.positionScrollbar("y")),i.scrollYTicking=!1},this.onMouseEnter=function(){i.showScrollbar("x"),i.showScrollbar("y")},this.onMouseMove=function(t){i.mouseX=t.clientX,i.mouseY=t.clientY,(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseMoveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseMoveForAxis("y")},this.onMouseLeave=function(){i.onMouseMove.cancel(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseLeaveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseLeaveForAxis("y"),i.mouseX=-1,i.mouseY=-1},this.onWindowResize=function(){i.scrollbarWidth=i.getScrollbarWidth(),i.hideNativeScrollbar()},this.hideScrollbars=function(){i.axis.x.track.rect=i.axis.x.track.el.getBoundingClientRect(),i.axis.y.track.rect=i.axis.y.track.el.getBoundingClientRect(),i.isWithinBounds(i.axis.y.track.rect)||(i.axis.y.scrollbar.el.classList.remove(i.classNames.visible),i.axis.y.isVisible=!1),i.isWithinBounds(i.axis.x.track.rect)||(i.axis.x.scrollbar.el.classList.remove(i.classNames.visible),i.axis.x.isVisible=!1)},this.onPointerEvent=function(t){var e,n;i.axis.x.track.rect=i.axis.x.track.el.getBoundingClientRect(),i.axis.y.track.rect=i.axis.y.track.el.getBoundingClientRect(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&(e=i.isWithinBounds(i.axis.x.track.rect)),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&(n=i.isWithinBounds(i.axis.y.track.rect)),(e||n)&&(t.preventDefault(),t.stopPropagation(),"mousedown"===t.type&&(e&&(i.axis.x.scrollbar.rect=i.axis.x.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.x.scrollbar.rect)?i.onDragStart(t,"x"):i.onTrackClick(t,"x")),n&&(i.axis.y.scrollbar.rect=i.axis.y.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.y.scrollbar.rect)?i.onDragStart(t,"y"):i.onTrackClick(t,"y"))))},this.drag=function(e){var n=i.axis[i.draggedAxis].track,r=n.rect[i.axis[i.draggedAxis].sizeAttr],o=i.axis[i.draggedAxis].scrollbar,l=i.contentWrapperEl[i.axis[i.draggedAxis].scrollSizeAttr],s=parseInt(i.elStyles[i.axis[i.draggedAxis].sizeAttr],10);e.preventDefault(),e.stopPropagation();var a=(("y"===i.draggedAxis?e.pageY:e.pageX)-n.rect[i.axis[i.draggedAxis].offsetAttr]-i.axis[i.draggedAxis].dragOffset)/(r-o.size)*(l-s);"x"===i.draggedAxis&&(a=i.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?a-(r+o.size):a,a=i.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-a:a),i.contentWrapperEl[i.axis[i.draggedAxis].scrollOffsetAttr]=a},this.onEndDrag=function(t){var e=Ls(i.el),n=Ts(i.el);t.preventDefault(),t.stopPropagation(),i.el.classList.remove(i.classNames.dragging),e.removeEventListener("mousemove",i.drag,!0),e.removeEventListener("mouseup",i.onEndDrag,!0),i.removePreventClickId=n.setTimeout((function(){e.removeEventListener("click",i.preventClick,!0),e.removeEventListener("dblclick",i.preventClick,!0),i.removePreventClickId=null}))},this.preventClick=function(t){t.preventDefault(),t.stopPropagation()},this.el=e,this.minScrollbarWidth=20,this.options=Object.assign({},t.defaultOptions,n),this.classNames=Object.assign({},t.defaultOptions.classNames,this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,t.instances.has(this.el)||(this.recalculate=Gr(this.recalculate.bind(this),64),this.onMouseMove=Gr(this.onMouseMove.bind(this),64),this.hideScrollbars=co(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=co(this.onWindowResize.bind(this),64,{leading:!0}),t.getRtlHelpers=No(t.getRtlHelpers),this.init())}t.getRtlHelpers=function(){var e=document.createElement("div");e.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var n=e.firstElementChild;document.body.appendChild(n);var i=n.firstElementChild;n.scrollLeft=0;var r=t.getOffset(n),o=t.getOffset(i);n.scrollLeft=999;var l=t.getOffset(i);return{isRtlScrollingInverted:r.left!==o.left&&o.left-l.left!=0,isRtlScrollbarInverted:r.left!==o.left}},t.getOffset=function(t){var e=t.getBoundingClientRect(),n=Ls(t),i=Ts(t);return{top:e.top+(i.pageYOffset||n.documentElement.scrollTop),left:e.left+(i.pageXOffset||n.documentElement.scrollLeft)}};var e=t.prototype;return e.init=function(){t.instances.set(this.el,this),Ne&&(this.initDOM(),this.setAccessibilityAttributes(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.initDOM=function(){var t=this;if(Array.prototype.filter.call(this.el.children,(function(e){return e.classList.contains(t.classNames.wrapper)})).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var e=document.createElement("div"),n=document.createElement("div");e.classList.add(this.classNames.track),n.classList.add(this.classNames.scrollbar),e.appendChild(n),this.axis.x.track.el=e.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=e.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")},e.setAccessibilityAttributes=function(){var t=this.options.ariaLabel||"scrollable content";this.contentWrapperEl.setAttribute("tabindex","0"),this.contentWrapperEl.setAttribute("role","region"),this.contentWrapperEl.setAttribute("aria-label",t)},e.initListeners=function(){var t=this,e=Ts(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(e){t.el.addEventListener(e,t.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(e){t.el.addEventListener(e,t.onPointerEvent,{capture:!0,passive:!0})})),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),e.addEventListener("resize",this.onWindowResize);var n=!1,i=null,r=e.ResizeObserver||bl;this.resizeObserver=new r((function(){n&&null===i&&(i=e.requestAnimationFrame((function(){t.recalculate(),i=null})))})),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),e.requestAnimationFrame((function(){n=!0})),this.mutationObserver=new e.MutationObserver(this.recalculate),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},e.recalculate=function(){var t=Ts(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var e=this.heightAutoObserverEl.offsetHeight<=1,n=this.heightAutoObserverEl.offsetWidth<=1,i=this.contentEl.offsetWidth,r=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,l=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft,this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var s=this.contentEl.scrollHeight,a=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=e?"auto":"100%",this.placeholderEl.style.width=n?i+"px":"auto",this.placeholderEl.style.height=s+"px";var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=a>i,this.axis.y.isOverflowing=s>c,this.axis.x.isOverflowing="hidden"!==o&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==l&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var u=this.axis.x.isOverflowing?this.scrollbarWidth:0,d=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&a>r-d,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&s>c-u,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px",this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px",this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")},e.getScrollbarSize=function(t){if(void 0===t&&(t="y"),!this.axis[t].isOverflowing)return 0;var e,n=this.contentEl[this.axis[t].scrollSizeAttr],i=this.axis[t].track.el[this.axis[t].offsetSizeAttr],r=i/n;return e=Math.max(~~(r*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(e=Math.min(e,this.options.scrollbarMaxSize)),e},e.positionScrollbar=function(e){if(void 0===e&&(e="y"),this.axis[e].isOverflowing){var n=this.contentWrapperEl[this.axis[e].scrollSizeAttr],i=this.axis[e].track.el[this.axis[e].offsetSizeAttr],r=parseInt(this.elStyles[this.axis[e].sizeAttr],10),o=this.axis[e].scrollbar,l=this.contentWrapperEl[this.axis[e].scrollOffsetAttr],s=(l="x"===e&&this.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-l:l)/(n-r),a=~~((i-o.size)*s);a="x"===e&&this.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?a+(i-o.size):a,o.el.style.transform="x"===e?"translate3d("+a+"px, 0, 0)":"translate3d(0, "+a+"px, 0)"}},e.toggleTrackVisibility=function(t){void 0===t&&(t="y");var e=this.axis[t].track.el,n=this.axis[t].scrollbar.el;this.axis[t].isOverflowing||this.axis[t].forceVisible?(e.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll"):(e.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden"),this.axis[t].isOverflowing?n.style.display="block":n.style.display="none"},e.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},e.onMouseMoveForAxis=function(t){void 0===t&&(t="y"),this.axis[t].track.rect=this.axis[t].track.el.getBoundingClientRect(),this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[t].scrollbar.rect)?this.axis[t].scrollbar.el.classList.add(this.classNames.hover):this.axis[t].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[t].track.rect)?(this.showScrollbar(t),this.axis[t].track.el.classList.add(this.classNames.hover)):this.axis[t].track.el.classList.remove(this.classNames.hover)},e.onMouseLeaveForAxis=function(t){void 0===t&&(t="y"),this.axis[t].track.el.classList.remove(this.classNames.hover),this.axis[t].scrollbar.el.classList.remove(this.classNames.hover)},e.showScrollbar=function(t){void 0===t&&(t="y");var e=this.axis[t].scrollbar.el;this.axis[t].isVisible||(e.classList.add(this.classNames.visible),this.axis[t].isVisible=!0),this.options.autoHide&&this.hideScrollbars()},e.onDragStart=function(t,e){void 0===e&&(e="y");var n=Ls(this.el),i=Ts(this.el),r=this.axis[e].scrollbar,o="y"===e?t.pageY:t.pageX;this.axis[e].dragOffset=o-r.rect[this.axis[e].offsetAttr],this.draggedAxis=e,this.el.classList.add(this.classNames.dragging),n.addEventListener("mousemove",this.drag,!0),n.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(n.addEventListener("click",this.preventClick,!0),n.addEventListener("dblclick",this.preventClick,!0)):(i.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.onTrackClick=function(t,e){var n=this;if(void 0===e&&(e="y"),this.options.clickOnTrack){var i=Ts(this.el);this.axis[e].scrollbar.rect=this.axis[e].scrollbar.el.getBoundingClientRect();var r=this.axis[e].scrollbar.rect[this.axis[e].offsetAttr],o=parseInt(this.elStyles[this.axis[e].sizeAttr],10),l=this.contentWrapperEl[this.axis[e].scrollOffsetAttr],s=("y"===e?this.mouseY-r:this.mouseX-r)<0?-1:1,a=-1===s?l-o:l+o;!function t(){var r,o;-1===s?l>a&&(l-=n.options.clickOnTrackSpeed,n.contentWrapperEl.scrollTo(((r={})[n.axis[e].offsetAttr]=l,r)),i.requestAnimationFrame(t)):l<a&&(l+=n.options.clickOnTrackSpeed,n.contentWrapperEl.scrollTo(((o={})[n.axis[e].offsetAttr]=l,o)),i.requestAnimationFrame(t))}()}},e.getContentElement=function(){return this.contentEl},e.getScrollElement=function(){return this.contentWrapperEl},e.getScrollbarWidth=function(){try{return"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Os(this.el)}catch(t){return Os(this.el)}},e.removeListeners=function(){var t=this,e=Ts(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(e){t.el.removeEventListener(e,t.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(e){t.el.removeEventListener(e,t.onPointerEvent,{capture:!0,passive:!0})})),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()},e.unMount=function(){this.removeListeners(),t.instances.delete(this.el)},e.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.findChild=function(t,e){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,(function(t){return n.call(t,e)}))[0]},t}();return Is.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},Is.instances=new WeakMap,Is.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),(function(t){"init"===t.getAttribute("data-simplebar")||Is.instances.has(t)||new Is(t,Ds(t.attributes))}))},Is.removeObserver=function(){this.globalObserver.disconnect()},Is.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(Is.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))},Is.handleMutations=function(t){t.forEach((function(t){Array.prototype.forEach.call(t.addedNodes,(function(t){1===t.nodeType&&(t.hasAttribute("data-simplebar")?!Is.instances.has(t)&&document.documentElement.contains(t)&&new Is(t,Ds(t.attributes)):Array.prototype.forEach.call(t.querySelectorAll("[data-simplebar]"),(function(t){"init"!==t.getAttribute("data-simplebar")&&!Is.instances.has(t)&&document.documentElement.contains(t)&&new Is(t,Ds(t.attributes))})))})),Array.prototype.forEach.call(t.removedNodes,(function(t){1===t.nodeType&&("init"===t.getAttribute("data-simplebar")?Is.instances.has(t)&&!document.documentElement.contains(t)&&Is.instances.get(t).unMount():Array.prototype.forEach.call(t.querySelectorAll('[data-simplebar="init"]'),(function(t){Is.instances.has(t)&&!document.documentElement.contains(t)&&Is.instances.get(t).unMount()})))}))}))},Is.getOptions=Ds,Ne&&Is.initHtmlApi(),Is}));var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(t){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,i={},r={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof o?new o(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++n}),t.__id},clone:function t(e,n){var i,o;switch(n=n||{},r.util.type(e)){case"Object":if(o=r.util.objId(e),n[o])return n[o];for(var l in i={},n[o]=i,e)e.hasOwnProperty(l)&&(i[l]=t(e[l],n));return i;case"Array":return o=r.util.objId(e),n[o]?n[o]:(i=[],n[o]=i,e.forEach((function(e,r){i[r]=t(e,n)})),i);default:return e}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(i){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(i.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var n in e)if(e[n].src==t)return e[n]}return null}},isActive:function(t,e,n){for(var i="no-"+e;t;){var r=t.classList;if(r.contains(e))return!0;if(r.contains(i))return!1;t=t.parentElement}return!!n}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(t,e){var n=r.util.clone(r.languages[t]);for(var i in e)n[i]=e[i];return n},insertBefore:function(t,e,n,i){var o=(i=i||r.languages)[t],l={};for(var s in o)if(o.hasOwnProperty(s)){if(s==e)for(var a in n)n.hasOwnProperty(a)&&(l[a]=n[a]);n.hasOwnProperty(s)||(l[s]=o[s])}var c=i[t];return i[t]=l,r.languages.DFS(r.languages,(function(e,n){n===c&&e!=t&&(this[e]=l)})),l},DFS:function t(e,n,i,o){o=o||{};var l=r.util.objId;for(var s in e)if(e.hasOwnProperty(s)){n.call(e,s,e[s],i||s);var a=e[s],c=r.util.type(a);"Object"!==c||o[l(a)]?"Array"!==c||o[l(a)]||(o[l(a)]=!0,t(a,n,s,o)):(o[l(a)]=!0,t(a,n,null,o))}}},plugins:{},highlightAll:function(t,e){r.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,n){var i={callback:n,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",i),i.elements=Array.prototype.slice.apply(i.container.querySelectorAll(i.selector)),r.hooks.run("before-all-elements-highlight",i);for(var o,l=0;o=i.elements[l++];)r.highlightElement(o,!0===e,i.callback)},highlightElement:function(e,n,i){var o=r.util.getLanguage(e),l=r.languages[o];r.util.setLanguage(e,o);var s=e.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&r.util.setLanguage(s,o);var a={element:e,language:o,grammar:l,code:e.textContent};function c(t){a.highlightedCode=t,r.hooks.run("before-insert",a),a.element.innerHTML=a.highlightedCode,r.hooks.run("after-highlight",a),r.hooks.run("complete",a),i&&i.call(a.element)}if(r.hooks.run("before-sanity-check",a),(s=a.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!a.code)return r.hooks.run("complete",a),void(i&&i.call(a.element));if(r.hooks.run("before-highlight",a),a.grammar)if(n&&t.Worker){var u=new Worker(r.filename);u.onmessage=function(t){c(t.data)},u.postMessage(JSON.stringify({language:a.language,code:a.code,immediateClose:!0}))}else c(r.highlight(a.code,a.grammar,a.language));else c(r.util.encode(a.code))},highlight:function(t,e,n){var i={code:t,grammar:e,language:n};if(r.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(t,e){var n=e.rest;if(n){for(var i in n)e[i]=n[i];delete e.rest}var u=new s;return a(u,u.head,t),function t(e,n,i,s,u,d){for(var h in i)if(i.hasOwnProperty(h)&&i[h]){var p=i[h];p=Array.isArray(p)?p:[p];for(var f=0;f<p.length;++f){if(d&&d.cause==h+","+f)return;var g=p[f],m=g.inside,v=!!g.lookbehind,y=!!g.greedy,b=g.alias;if(y&&!g.pattern.global){var _=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,_+"g")}for(var w=g.pattern||g,x=s.next,E=u;x!==n.tail&&!(d&&E>=d.reach);E+=x.value.length,x=x.next){var S=x.value;if(n.length>e.length)return;if(!(S instanceof o)){var C,M=1;if(y){if(!(C=l(w,E,e,v))||C.index>=e.length)break;var k=C.index,D=C.index+C[0].length,T=E;for(T+=x.value.length;k>=T;)x=x.next,T+=x.value.length;if(T-=x.value.length,E=T,x.value instanceof o)continue;for(var L=x;L!==n.tail&&(T<D||"string"==typeof L.value);L=L.next)M++,T+=L.value.length;M--,S=e.slice(E,T),C.index-=E}else if(!(C=l(w,0,S,v)))continue;k=C.index;var A=C[0],P=S.slice(0,k),O=S.slice(k+A.length),I=E+S.length;d&&I>d.reach&&(d.reach=I);var R=x.prev;P&&(R=a(n,R,P),E+=P.length),c(n,R,M);var N=new o(h,m?r.tokenize(A,m):A,b,A);if(x=a(n,R,N),O&&a(n,x,O),M>1){var z={cause:h+","+f,reach:I};t(e,n,i,x.prev,E,z),d&&z.reach>d.reach&&(d.reach=z.reach)}}}}}}(t,u,e,u.head,0),function(t){var e=[],n=t.head.next;for(;n!==t.tail;)e.push(n.value),n=n.next;return e}(u)},hooks:{all:{},add:function(t,e){var n=r.hooks.all;n[t]=n[t]||[],n[t].push(e)},run:function(t,e){var n=r.hooks.all[t];if(n&&n.length)for(var i,o=0;i=n[o++];)i(e)}},Token:o};function o(t,e,n,i){this.type=t,this.content=e,this.alias=n,this.length=0|(i||"").length}function l(t,e,n,i){t.lastIndex=e;var r=t.exec(n);if(r&&i&&r[1]){var o=r[1].length;r.index+=o,r[0]=r[0].slice(o)}return r}function s(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function a(t,e,n){var i=e.next,r={value:n,prev:e,next:i};return e.next=r,i.prev=r,t.length++,r}function c(t,e,n){for(var i=e.next,r=0;r<n&&i!==t.tail;r++)i=i.next;e.next=i,i.prev=e,t.length-=r}if(t.Prism=r,o.stringify=function t(e,n){if("string"==typeof e)return e;if(Array.isArray(e)){var i="";return e.forEach((function(e){i+=t(e,n)})),i}var o={type:e.type,content:t(e.content,n),tag:"span",classes:["token",e.type],attributes:{},language:n},l=e.alias;l&&(Array.isArray(l)?Array.prototype.push.apply(o.classes,l):o.classes.push(l)),r.hooks.run("wrap",o);var s="";for(var a in o.attributes)s+=" "+a+'="'+(o.attributes[a]||"").replace(/"/g,"&quot;")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},!t.document)return t.addEventListener?(r.disableWorkerMessageHandler||t.addEventListener("message",(function(e){var n=JSON.parse(e.data),i=n.language,o=n.code,l=n.immediateClose;t.postMessage(r.highlight(o,r.languages[i],i)),l&&t.close()}),!1),r):r;var u=r.util.currentScript();function d(){r.manual||r.highlightAll()}if(u&&(r.filename=u.src,u.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){var h=document.readyState;"loading"===h||"interactive"===h&&u&&u.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return r}(_self);
/**
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var n={};n["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};i["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var r={};r[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",r)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,function(){if(void 0!==Prism&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var t={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},e='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])';Prism.hooks.add("before-highlightall",(function(t){t.selector+=", "+e})),Prism.hooks.add("before-sanity-check",(function(n){var i=n.element;if(i.matches(e)){n.code="",i.setAttribute("data-src-status","loading");var r=i.appendChild(document.createElement("CODE"));r.textContent="Loading…";var o=i.getAttribute("data-src"),l=n.language;if("none"===l){var s=(/\.(\w+)$/.exec(o)||[,"none"])[1];l=t[s]||s}Prism.util.setLanguage(r,l),Prism.util.setLanguage(i,l);var a=Prism.plugins.autoloader;a&&a.loadLanguages(l),function(t,e,n){var i=new XMLHttpRequest;i.open("GET",t,!0),i.onreadystatechange=function(){var t,r;4==i.readyState&&(i.status<400&&i.responseText?e(i.responseText):i.status>=400?n((t=i.status,r=i.statusText,"✖ Error "+t+" while fetching file: "+r)):n("✖ Error: File does not exist or is empty"))},i.send(null)}(o,(function(t){i.setAttribute("data-src-status","loaded");var e=function(t){var e=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(t||"");if(e){var n=Number(e[1]),i=e[2],r=e[3];return i?r?[n,Number(r)]:[n,void 0]:[n,n]}}(i.getAttribute("data-range"));if(e){var n=t.split(/\r\n?|\n/g),o=e[0],l=null==e[1]?n.length:e[1];o<0&&(o+=n.length),o=Math.max(0,Math.min(o-1,n.length)),l<0&&(l+=n.length),l=Math.max(0,Math.min(l,n.length)),t=n.slice(o,l).join("\n"),i.hasAttribute("data-start")||i.setAttribute("data-start",String(o+1))}r.textContent=t,Prism.highlightElement(r)}),(function(t){i.setAttribute("data-src-status","failed"),r.textContent=t}))}})),Prism.plugins.fileHighlight={highlight:function(t){for(var n,i=(t||document).querySelectorAll(e),r=0;n=i[r++];)Prism.highlightElement(n)}};var n=!1;Prism.fileHighlight=function(){n||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),n=!0),Prism.plugins.fileHighlight.highlight.apply(this,arguments)}}}(),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,(function(){return e={686:function(t,e,n){"use strict";n.d(e,{default:function(){return m}});e=n(279);var i=n.n(e),r=(e=n(370),n.n(e)),o=(e=n(817),n.n(e));function l(t){try{return document.execCommand(t)}catch(t){return}}var s=function(t){return t=o()(t),l("cut"),t};function a(t,e){var n,i;n=t,i="rtl"===document.documentElement.getAttribute("dir"),(t=document.createElement("textarea")).style.fontSize="12pt",t.style.border="0",t.style.padding="0",t.style.margin="0",t.style.position="absolute",t.style[i?"right":"left"]="-9999px",i=window.pageYOffset||document.documentElement.scrollTop,t.style.top="".concat(i,"px"),t.setAttribute("readonly",""),t.value=n,t=t;return e.container.appendChild(t),e=o()(t),l("copy"),t.remove(),e}var c=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof t?n=a(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==t?void 0:t.type)?n=a(t.value,e):(n=o()(t),l("copy")),n};function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function g(t,e){if(t="data-clipboard-".concat(t),e.hasAttribute(t))return e.getAttribute(t)}var m=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(l,i());var t,e,n,o=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);return n=e?(n=f(this).constructor,Reflect.construct(i,arguments,n)):i.apply(this,arguments),i=this,!(n=n)||"object"!==d(n)&&"function"!=typeof n?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(i):n}}(l);function l(t,e){var n;return function(t){if(!(t instanceof l))throw new TypeError("Cannot call a class as a function")}(this),(n=o.call(this)).resolveOptions(e),n.listenClick(t),n}return t=l,n=[{key:"copy",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body};return c(t,e)}},{key:"cut",value:function(t){return s(t)}},{key:"isSupported",value:function(){var t="string"==typeof(t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"])?[t]:t,e=!!document.queryCommandSupported;return t.forEach((function(t){e=e&&!!document.queryCommandSupported(t)})),e}}],(e=[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===d(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=r()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy";t=function(){var t=void 0===(n=(i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).action)?"copy":n,e=i.container,n=i.target,i=i.text;if("copy"!==t&&"cut"!==t)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==n){if(!n||"object"!==u(n)||1!==n.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===t&&n.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===t&&(n.hasAttribute("readonly")||n.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return i?c(i,{container:e}):n?"cut"===t?s(n):c(n,{container:e}):void 0}({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(t?"success":"error",{action:n,text:t,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return g("action",t)}},{key:"defaultTarget",value:function(t){if(t=g("target",t))return document.querySelector(t)}},{key:"defaultText",value:function(t){return g("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&h(t.prototype,e),n&&h(t,n),l}()},828:function(t){var e;"undefined"==typeof Element||Element.prototype.matches||((e=Element.prototype).matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector),t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,n){var i=n(828);function r(t,e,n,r,o){var l=function(t,e,n,r){return function(n){n.delegateTarget=i(n.target,e),n.delegateTarget&&r.call(t,n)}}.apply(this,arguments);return t.addEventListener(n,l,o),{destroy:function(){t.removeEventListener(n,l,o)}}}t.exports=function(t,e,n,i,o){return"function"==typeof t.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return r(t,e,n,i,o)})))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var i=n(879),r=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!i.string(e))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(t))return c=e,u=n,(a=t).addEventListener(c,u),{destroy:function(){a.removeEventListener(c,u)}};if(i.nodeList(t))return o=t,l=e,s=n,Array.prototype.forEach.call(o,(function(t){t.addEventListener(l,s)})),{destroy:function(){Array.prototype.forEach.call(o,(function(t){t.removeEventListener(l,s)}))}};if(i.string(t))return t=t,e=e,n=n,r(document.body,t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,l,s,a,c,u}},817:function(t){t.exports=function(t){var e,n="SELECT"===t.nodeName?(t.focus(),t.value):"INPUT"===t.nodeName||"TEXTAREA"===t.nodeName?((e=t.hasAttribute("readonly"))||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),e||t.removeAttribute("readonly"),t.value):(t.hasAttribute("contenteditable")&&t.focus(),n=window.getSelection(),(e=document.createRange()).selectNodeContents(t),n.removeAllRanges(),n.addRange(e),n.toString());return n}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var i=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var i=this;function r(){i.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),i=0,r=n.length;i<r;i++)n[i].fn.apply(n[i].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),i=n[t],r=[];if(i&&e)for(var o=0,l=i.length;o<l;o++)i[o].fn!==e&&i[o].fn._!==e&&r.push(i[o]);return r.length?n[t]=r:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},n={},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t(686).default;function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{}};return e[i](r,r.exports,t),r.exports}var e,n})),function(){"use strict";var t={282:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.clearChoices=e.activateChoices=e.filterChoices=e.addChoice=void 0;var i=n(883);e.addChoice=function(t){var e=t.value,n=t.label,r=t.id,o=t.groupId,l=t.disabled,s=t.elementId,a=t.customProperties,c=t.placeholder,u=t.keyCode;return{type:i.ACTION_TYPES.ADD_CHOICE,value:e,label:n,id:r,groupId:o,disabled:l,elementId:s,customProperties:a,placeholder:c,keyCode:u}},e.filterChoices=function(t){return{type:i.ACTION_TYPES.FILTER_CHOICES,results:t}},e.activateChoices=function(t){return void 0===t&&(t=!0),{type:i.ACTION_TYPES.ACTIVATE_CHOICES,active:t}},e.clearChoices=function(){return{type:i.ACTION_TYPES.CLEAR_CHOICES}}},783:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.addGroup=void 0;var i=n(883);e.addGroup=function(t){var e=t.value,n=t.id,r=t.active,o=t.disabled;return{type:i.ACTION_TYPES.ADD_GROUP,value:e,id:n,active:r,disabled:o}}},464:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.highlightItem=e.removeItem=e.addItem=void 0;var i=n(883);e.addItem=function(t){var e=t.value,n=t.label,r=t.id,o=t.choiceId,l=t.groupId,s=t.customProperties,a=t.placeholder,c=t.keyCode;return{type:i.ACTION_TYPES.ADD_ITEM,value:e,label:n,id:r,choiceId:o,groupId:l,customProperties:s,placeholder:a,keyCode:c}},e.removeItem=function(t,e){return{type:i.ACTION_TYPES.REMOVE_ITEM,id:t,choiceId:e}},e.highlightItem=function(t,e){return{type:i.ACTION_TYPES.HIGHLIGHT_ITEM,id:t,highlighted:e}}},137:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.setIsLoading=e.resetTo=e.clearAll=void 0;var i=n(883);e.clearAll=function(){return{type:i.ACTION_TYPES.CLEAR_ALL}},e.resetTo=function(t){return{type:i.ACTION_TYPES.RESET_TO,state:t}},e.setIsLoading=function(t){return{type:i.ACTION_TYPES.SET_IS_LOADING,isLoading:t}}},373:function(t,e,n){var i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))},r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(n(996)),l=r(n(221)),s=n(282),a=n(783),c=n(464),u=n(137),d=n(520),h=n(883),p=n(789),f=n(799),g=n(655),m=r(n(744)),v=r(n(686)),y="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,b={},_=function(){function t(e,n){var r=this;void 0===e&&(e="[data-choice]"),void 0===n&&(n={}),void 0===n.allowHTML&&console.warn("Deprecation warning: allowHTML will default to false in a future release. To render HTML in Choices, you will need to set it to true. Setting allowHTML will suppress this message."),this.config=o.default.all([p.DEFAULT_CONFIG,t.defaults.options,n],{arrayMerge:function(t,e){return i([],e,!0)}});var l=(0,f.diff)(this.config,p.DEFAULT_CONFIG);l.length&&console.warn("Unknown config option(s) passed",l.join(", "));var s="string"==typeof e?document.querySelector(e):e;if(!(s instanceof HTMLInputElement||s instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");if(this._isTextElement=s.type===h.TEXT_TYPE,this._isSelectOneElement=s.type===h.SELECT_ONE_TYPE,this._isSelectMultipleElement=s.type===h.SELECT_MULTIPLE_TYPE,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes("".concat(this.config.renderSelectedChoices))||(this.config.renderSelectedChoices="auto"),n.addItemFilter&&"function"!=typeof n.addItemFilter){var a=n.addItemFilter instanceof RegExp?n.addItemFilter:new RegExp(n.addItemFilter);this.config.addItemFilter=a.test.bind(a)}if(this._isTextElement?this.passedElement=new d.WrappedInput({element:s,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new d.WrappedSelect({element:s,classNames:this.config.classNames,template:function(t){return r._templates.option(t)}}),this.initialised=!1,this._store=new m.default,this._initialState=g.defaultState,this._currentState=g.defaultState,this._prevState=g.defaultState,this._currentValue="",this._canSearch=!!this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=(0,f.generateId)(this.passedElement.element,"choices-"),this._direction=this.passedElement.dir,!this._direction){var c=window.getComputedStyle(this.passedElement.element).direction;c!==window.getComputedStyle(document.documentElement).direction&&(this._direction=c)}if(this._idNames={itemChoice:"item-choice"},this._isSelectElement&&(this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options),this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&this._isTextElement){var u=this.passedElement.value.split(this.config.delimiter);this._presetItems=this._presetItems.concat(u)}if(this.passedElement.options&&this.passedElement.options.forEach((function(t){r._presetChoices.push({value:t.value,label:t.innerHTML,selected:!!t.selected,disabled:t.disabled||t.parentNode.disabled,placeholder:""===t.value||t.hasAttribute("placeholder"),customProperties:t.dataset["custom-properties"]})})),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive)return this.config.silent||console.warn("Trying to initialise Choices on element already initialised",{element:e}),void(this.initialised=!0);this.init()}return Object.defineProperty(t,"defaults",{get:function(){return Object.preventExtensions({get options(){return b},get templates(){return v.default}})},enumerable:!1,configurable:!0}),t.prototype.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._store.subscribe(this._render),this._render(),this._addEventListeners(),(!this.config.addItems||this.passedElement.element.hasAttribute("disabled"))&&this.disable(),this.initialised=!0;var t=this.config.callbackOnInit;t&&"function"==typeof t&&t.call(this)}},t.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=v.default,this.initialised=!1)},t.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},t.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},t.prototype.highlightItem=function(t,e){if(void 0===e&&(e=!0),!t||!t.id)return this;var n=t.id,i=t.groupId,r=void 0===i?-1:i,o=t.value,l=void 0===o?"":o,s=t.label,a=void 0===s?"":s,u=r>=0?this._store.getGroupById(r):null;return this._store.dispatch((0,c.highlightItem)(n,!0)),e&&this.passedElement.triggerEvent(h.EVENTS.highlightItem,{id:n,value:l,label:a,groupValue:u&&u.value?u.value:null}),this},t.prototype.unhighlightItem=function(t){if(!t||!t.id)return this;var e=t.id,n=t.groupId,i=void 0===n?-1:n,r=t.value,o=void 0===r?"":r,l=t.label,s=void 0===l?"":l,a=i>=0?this._store.getGroupById(i):null;return this._store.dispatch((0,c.highlightItem)(e,!1)),this.passedElement.triggerEvent(h.EVENTS.highlightItem,{id:e,value:o,label:s,groupValue:a&&a.value?a.value:null}),this},t.prototype.highlightAll=function(){var t=this;return this._store.items.forEach((function(e){return t.highlightItem(e)})),this},t.prototype.unhighlightAll=function(){var t=this;return this._store.items.forEach((function(e){return t.unhighlightItem(e)})),this},t.prototype.removeActiveItemsByValue=function(t){var e=this;return this._store.activeItems.filter((function(e){return e.value===t})).forEach((function(t){return e._removeItem(t)})),this},t.prototype.removeActiveItems=function(t){var e=this;return this._store.activeItems.filter((function(e){return e.id!==t})).forEach((function(t){return e._removeItem(t)})),this},t.prototype.removeHighlightedItems=function(t){var e=this;return void 0===t&&(t=!1),this._store.highlightedActiveItems.forEach((function(n){e._removeItem(n),t&&e._triggerChange(n.value)})),this},t.prototype.showDropdown=function(t){var e=this;return this.dropdown.isActive||requestAnimationFrame((function(){e.dropdown.show(),e.containerOuter.open(e.dropdown.distanceFromTopWindow),!t&&e._canSearch&&e.input.focus(),e.passedElement.triggerEvent(h.EVENTS.showDropdown,{})})),this},t.prototype.hideDropdown=function(t){var e=this;return this.dropdown.isActive?(requestAnimationFrame((function(){e.dropdown.hide(),e.containerOuter.close(),!t&&e._canSearch&&(e.input.removeActiveDescendant(),e.input.blur()),e.passedElement.triggerEvent(h.EVENTS.hideDropdown,{})})),this):this},t.prototype.getValue=function(t){void 0===t&&(t=!1);var e=this._store.activeItems.reduce((function(e,n){var i=t?n.value:n;return e.push(i),e}),[]);return this._isSelectOneElement?e[0]:e},t.prototype.setValue=function(t){var e=this;return this.initialised?(t.forEach((function(t){return e._setChoiceOrItem(t)})),this):this},t.prototype.setChoiceByValue=function(t){var e=this;return!this.initialised||this._isTextElement||(Array.isArray(t)?t:[t]).forEach((function(t){return e._findAndSelectChoiceByValue(t)})),this},t.prototype.setChoices=function(t,e,n,i){var r=this;if(void 0===t&&(t=[]),void 0===e&&(e="value"),void 0===n&&(n="label"),void 0===i&&(i=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if("string"!=typeof e||!e)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(i&&this.clearChoices(),"function"==typeof t){var o=t(this);if("function"==typeof Promise&&o instanceof Promise)return new Promise((function(t){return requestAnimationFrame(t)})).then((function(){return r._handleLoadingState(!0)})).then((function(){return o})).then((function(t){return r.setChoices(t,e,n,i)})).catch((function(t){r.config.silent||console.error(t)})).then((function(){return r._handleLoadingState(!1)})).then((function(){return r}));if(!Array.isArray(o))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof o));return this.setChoices(o,e,n,!1)}if(!Array.isArray(t))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),t.forEach((function(t){if(t.choices)r._addGroup({id:t.id?parseInt("".concat(t.id),10):null,group:t,valueKey:e,labelKey:n});else{var i=t;r._addChoice({value:i[e],label:i[n],isSelected:!!i.selected,isDisabled:!!i.disabled,placeholder:!!i.placeholder,customProperties:i.customProperties})}})),this._stopLoading(),this},t.prototype.clearChoices=function(){return this._store.dispatch((0,s.clearChoices)()),this},t.prototype.clearStore=function(){return this._store.dispatch((0,u.clearAll)()),this},t.prototype.clearInput=function(){var t=!this._isSelectOneElement;return this.input.clear(t),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch((0,s.activateChoices)(!0))),this},t.prototype._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var t=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,e=this._isSelectElement,n=this._currentState.items!==this._prevState.items;t&&(e&&this._renderChoices(),n&&this._renderItems(),this._prevState=this._currentState)}},t.prototype._renderChoices=function(){var t=this,e=this._store,n=e.activeGroups,i=e.activeChoices,r=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame((function(){return t.choiceList.scrollToTop()})),n.length>=1&&!this._isSearching){var o=i.filter((function(t){return!0===t.placeholder&&-1===t.groupId}));o.length>=1&&(r=this._createChoicesFragment(o,r)),r=this._createGroupsFragment(n,i,r)}else i.length>=1&&(r=this._createChoicesFragment(i,r));if(r.childNodes&&r.childNodes.length>0){var l=this._store.activeItems,s=this._canAddItem(l,this.input.value);if(s.response)this.choiceList.append(r),this._highlightChoice();else{var a=this._getTemplate("notice",s.notice);this.choiceList.append(a)}}else{var c=void 0;a=void 0,this._isSearching?(a="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,c=this._getTemplate("notice",a,"no-results")):(a="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,c=this._getTemplate("notice",a,"no-choices")),this.choiceList.append(c)}},t.prototype._renderItems=function(){var t=this._store.activeItems||[];this.itemList.clear();var e=this._createItemsFragment(t);e.childNodes&&this.itemList.append(e)},t.prototype._createGroupsFragment=function(t,e,n){var i=this;return void 0===n&&(n=document.createDocumentFragment()),this.config.shouldSort&&t.sort(this.config.sorter),t.forEach((function(t){var r=function(t){return e.filter((function(e){return i._isSelectOneElement?e.groupId===t.id:e.groupId===t.id&&("always"===i.config.renderSelectedChoices||!e.selected)}))}(t);if(r.length>=1){var o=i._getTemplate("choiceGroup",t);n.appendChild(o),i._createChoicesFragment(r,n,!0)}})),n},t.prototype._createChoicesFragment=function(t,e,n){var r=this;void 0===e&&(e=document.createDocumentFragment()),void 0===n&&(n=!1);var o=this.config,l=o.renderSelectedChoices,s=o.searchResultLimit,a=o.renderChoiceLimit,c=this._isSearching?f.sortByScore:this.config.sorter,u=function(t){if("auto"!==l||r._isSelectOneElement||!t.selected){var n=r._getTemplate("choice",t,r.config.itemSelectText);e.appendChild(n)}},d=t;"auto"!==l||this._isSelectOneElement||(d=t.filter((function(t){return!t.selected})));var h=d.reduce((function(t,e){return e.placeholder?t.placeholderChoices.push(e):t.normalChoices.push(e),t}),{placeholderChoices:[],normalChoices:[]}),p=h.placeholderChoices,g=h.normalChoices;(this.config.shouldSort||this._isSearching)&&g.sort(c);var m=d.length,v=this._isSelectOneElement?i(i([],p,!0),g,!0):g;this._isSearching?m=s:a&&a>0&&!n&&(m=a);for(var y=0;y<m;y+=1)v[y]&&u(v[y]);return e},t.prototype._createItemsFragment=function(t,e){var n=this;void 0===e&&(e=document.createDocumentFragment());var i=this.config,r=i.shouldSortItems,o=i.sorter,l=i.removeItemButton;return r&&!this._isSelectOneElement&&t.sort(o),this._isTextElement?this.passedElement.value=t.map((function(t){return t.value})).join(this.config.delimiter):this.passedElement.options=t,t.forEach((function(t){var i=n._getTemplate("item",t,l);e.appendChild(i)})),e},t.prototype._triggerChange=function(t){null!=t&&this.passedElement.triggerEvent(h.EVENTS.change,{value:t})},t.prototype._selectPlaceholderChoice=function(t){this._addItem({value:t.value,label:t.label,choiceId:t.id,groupId:t.groupId,placeholder:t.placeholder}),this._triggerChange(t.value)},t.prototype._handleButtonAction=function(t,e){if(t&&e&&this.config.removeItems&&this.config.removeItemButton){var n=e.parentNode&&e.parentNode.dataset.id,i=n&&t.find((function(t){return t.id===parseInt(n,10)}));i&&(this._removeItem(i),this._triggerChange(i.value),this._isSelectOneElement&&this._store.placeholderChoice&&this._selectPlaceholderChoice(this._store.placeholderChoice))}},t.prototype._handleItemAction=function(t,e,n){var i=this;if(void 0===n&&(n=!1),t&&e&&this.config.removeItems&&!this._isSelectOneElement){var r=e.dataset.id;t.forEach((function(t){t.id!==parseInt("".concat(r),10)||t.highlighted?!n&&t.highlighted&&i.unhighlightItem(t):i.highlightItem(t)})),this.input.focus()}},t.prototype._handleChoiceAction=function(t,e){if(t&&e){var n=e.dataset.id,i=n&&this._store.getChoiceById(n);if(i){var r=t[0]&&t[0].keyCode?t[0].keyCode:void 0,o=this.dropdown.isActive;i.keyCode=r,this.passedElement.triggerEvent(h.EVENTS.choice,{choice:i}),i.selected||i.disabled||this._canAddItem(t,i.value).response&&(this._addItem({value:i.value,label:i.label,choiceId:i.id,groupId:i.groupId,customProperties:i.customProperties,placeholder:i.placeholder,keyCode:i.keyCode}),this._triggerChange(i.value)),this.clearInput(),o&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},t.prototype._handleBackspace=function(t){if(this.config.removeItems&&t){var e=t[t.length-1],n=t.some((function(t){return t.highlighted}));this.config.editItems&&!n&&e?(this.input.value=e.value,this.input.setWidth(),this._removeItem(e),this._triggerChange(e.value)):(n||this.highlightItem(e,!1),this.removeHighlightedItems(!0))}},t.prototype._startLoading=function(){this._store.dispatch((0,u.setIsLoading)(!0))},t.prototype._stopLoading=function(){this._store.dispatch((0,u.setIsLoading)(!1))},t.prototype._handleLoadingState=function(t){void 0===t&&(t=!0);var e=this.itemList.getChild(".".concat(this.config.classNames.placeholder));t?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?e?e.innerHTML=this.config.loadingText:(e=this._getTemplate("placeholder",this.config.loadingText))&&this.itemList.append(e):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?e&&(e.innerHTML=this._placeholderValue||""):this.input.placeholder=this._placeholderValue||"")},t.prototype._handleSearch=function(t){if(this.input.isFocussed){var e=this._store.choices,n=this.config,i=n.searchFloor,r=n.searchChoices,o=e.some((function(t){return!t.active}));if(null!=t&&t.length>=i){var l=r?this._searchChoices(t):0;this.passedElement.triggerEvent(h.EVENTS.search,{value:t,resultCount:l})}else o&&(this._isSearching=!1,this._store.dispatch((0,s.activateChoices)(!0)))}},t.prototype._canAddItem=function(t,e){var n=!0,i="function"==typeof this.config.addItemText?this.config.addItemText(e):this.config.addItemText;if(!this._isSelectOneElement){var r=(0,f.existsInArray)(t,e);this.config.maxItemCount>0&&this.config.maxItemCount<=t.length&&(n=!1,i="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&r&&n&&(n=!1,i="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(e):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&n&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(e)&&(n=!1,i="function"==typeof this.config.customAddItemText?this.config.customAddItemText(e):this.config.customAddItemText)}return{response:n,notice:i}},t.prototype._searchChoices=function(t){var e="string"==typeof t?t.trim():t,n="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(e.length<1&&e==="".concat(n," "))return 0;var r=this._store.searchableChoices,o=e,a=Object.assign(this.config.fuseOptions,{keys:i([],this.config.searchFields,!0),includeMatches:!0}),c=new l.default(r,a).search(o);return this._currentValue=e,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch((0,s.filterChoices)(c)),c.length},t.prototype._addEventListeners=function(){var t=document.documentElement;t.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),t.addEventListener("click",this._onClick,{passive:!0}),t.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},t.prototype._removeEventListeners=function(){var t=document.documentElement;t.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("click",this._onClick),t.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},t.prototype._onKeyDown=function(t){var e=t.keyCode,n=this._store.activeItems,i=this.input.isFocussed,r=this.dropdown.isActive,o=this.itemList.hasChildren(),l=String.fromCharCode(e),s=/[a-zA-Z0-9-_ ]/.test(l),a=h.KEY_CODES.BACK_KEY,c=h.KEY_CODES.DELETE_KEY,u=h.KEY_CODES.ENTER_KEY,d=h.KEY_CODES.A_KEY,p=h.KEY_CODES.ESC_KEY,f=h.KEY_CODES.UP_KEY,g=h.KEY_CODES.DOWN_KEY,m=h.KEY_CODES.PAGE_UP_KEY,v=h.KEY_CODES.PAGE_DOWN_KEY;switch(this._isTextElement||r||!s||(this.showDropdown(),this.input.isFocussed||(this.input.value+=l.toLowerCase())),e){case d:return this._onSelectKey(t,o);case u:return this._onEnterKey(t,n,r);case p:return this._onEscapeKey(r);case f:case m:case g:case v:return this._onDirectionKey(t,r);case c:case a:return this._onDeleteKey(t,n,i)}},t.prototype._onKeyUp=function(t){var e=t.target,n=t.keyCode,i=this.input.value,r=this._store.activeItems,o=this._canAddItem(r,i),l=h.KEY_CODES.BACK_KEY,a=h.KEY_CODES.DELETE_KEY;if(this._isTextElement)if(o.notice&&i){var c=this._getTemplate("notice",o.notice);this.dropdown.element.innerHTML=c.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else{var u=(n===l||n===a)&&e&&!e.value,d=!this._isTextElement&&this._isSearching,p=this._canSearch&&o.response;u&&d?(this._isSearching=!1,this._store.dispatch((0,s.activateChoices)(!0))):p&&this._handleSearch(this.input.rawValue)}this._canSearch=this.config.searchEnabled},t.prototype._onSelectKey=function(t,e){var n=t.ctrlKey,i=t.metaKey;(n||i)&&e&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},t.prototype._onEnterKey=function(t,e,n){var i=t.target,r=h.KEY_CODES.ENTER_KEY,o=i&&i.hasAttribute("data-button");if(this._isTextElement&&i&&i.value){var l=this.input.value;this._canAddItem(e,l).response&&(this.hideDropdown(!0),this._addItem({value:l}),this._triggerChange(l),this.clearInput())}if(o&&(this._handleButtonAction(e,i),t.preventDefault()),n){var s=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));s&&(e[0]&&(e[0].keyCode=r),this._handleChoiceAction(e,s)),t.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),t.preventDefault())},t.prototype._onEscapeKey=function(t){t&&(this.hideDropdown(!0),this.containerOuter.focus())},t.prototype._onDirectionKey=function(t,e){var n=t.keyCode,i=t.metaKey,r=h.KEY_CODES.DOWN_KEY,o=h.KEY_CODES.PAGE_UP_KEY,l=h.KEY_CODES.PAGE_DOWN_KEY;if(e||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var s=n===r||n===l?1:-1,a="[data-choice-selectable]",c=void 0;if(i||n===l||n===o)c=s>0?this.dropdown.element.querySelector("".concat(a,":last-of-type")):this.dropdown.element.querySelector(a);else{var u=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState));c=u?(0,f.getAdjacentEl)(u,a,s):this.dropdown.element.querySelector(a)}c&&((0,f.isScrolledIntoView)(c,this.choiceList.element,s)||this.choiceList.scrollToChildElement(c,s),this._highlightChoice(c)),t.preventDefault()}},t.prototype._onDeleteKey=function(t,e,n){var i=t.target;this._isSelectOneElement||i.value||!n||(this._handleBackspace(e),t.preventDefault())},t.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},t.prototype._onTouchEnd=function(t){var e=(t||t.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(e)&&((e===this.containerOuter.element||e===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),t.stopPropagation()),this._wasTap=!0},t.prototype._onMouseDown=function(t){var e=t.target;if(e instanceof HTMLElement){if(y&&this.choiceList.element.contains(e)){var n=this.choiceList.element.firstElementChild,i="ltr"===this._direction?t.offsetX>=n.offsetWidth:t.offsetX<n.offsetLeft;this._isScrollingOnIe=i}if(e!==this.input.element){var r=e.closest("[data-button],[data-item],[data-choice]");if(r instanceof HTMLElement){var o=t.shiftKey,l=this._store.activeItems,s=r.dataset;"button"in s?this._handleButtonAction(l,r):"item"in s?this._handleItemAction(l,r,o):"choice"in s&&this._handleChoiceAction(l,r)}t.preventDefault()}}},t.prototype._onMouseOver=function(t){var e=t.target;e instanceof HTMLElement&&"choice"in e.dataset&&this._highlightChoice(e)},t.prototype._onClick=function(t){var e=t.target;this.containerOuter.element.contains(e)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&e!==this.input.element&&!this.dropdown.element.contains(e)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(this._store.highlightedActiveItems.length>0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},t.prototype._onFocus=function(t){var e,n=this,i=t.target;i&&this.containerOuter.element.contains(i)&&((e={})[h.TEXT_TYPE]=function(){i===n.input.element&&n.containerOuter.addFocusState()},e[h.SELECT_ONE_TYPE]=function(){n.containerOuter.addFocusState(),i===n.input.element&&n.showDropdown(!0)},e[h.SELECT_MULTIPLE_TYPE]=function(){i===n.input.element&&(n.showDropdown(!0),n.containerOuter.addFocusState())},e)[this.passedElement.element.type]()},t.prototype._onBlur=function(t){var e,n=this,i=t.target;if(i&&this.containerOuter.element.contains(i)&&!this._isScrollingOnIe){var r=this._store.activeItems.some((function(t){return t.highlighted}));((e={})[h.TEXT_TYPE]=function(){i===n.input.element&&(n.containerOuter.removeFocusState(),r&&n.unhighlightAll(),n.hideDropdown(!0))},e[h.SELECT_ONE_TYPE]=function(){n.containerOuter.removeFocusState(),(i===n.input.element||i===n.containerOuter.element&&!n._canSearch)&&n.hideDropdown(!0)},e[h.SELECT_MULTIPLE_TYPE]=function(){i===n.input.element&&(n.containerOuter.removeFocusState(),n.hideDropdown(!0),r&&n.unhighlightAll())},e)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},t.prototype._onFormReset=function(){this._store.dispatch((0,u.resetTo)(this._initialState))},t.prototype._highlightChoice=function(t){var e=this;void 0===t&&(t=null);var n=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(n.length){var i=t;Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classNames.highlightedState))).forEach((function(t){t.classList.remove(e.config.classNames.highlightedState),t.setAttribute("aria-selected","false")})),i?this._highlightPosition=n.indexOf(i):(i=n.length>this._highlightPosition?n[this._highlightPosition]:n[n.length-1])||(i=n[0]),i.classList.add(this.config.classNames.highlightedState),i.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(h.EVENTS.highlightChoice,{el:i}),this.dropdown.isActive&&(this.input.setActiveDescendant(i.id),this.containerOuter.setActiveDescendant(i.id))}},t.prototype._addItem=function(t){var e=t.value,n=t.label,i=void 0===n?null:n,r=t.choiceId,o=void 0===r?-1:r,l=t.groupId,s=void 0===l?-1:l,a=t.customProperties,u=void 0===a?{}:a,d=t.placeholder,p=void 0!==d&&d,f=t.keyCode,g=void 0===f?-1:f,m="string"==typeof e?e.trim():e,v=this._store.items,y=i||m,b=o||-1,_=s>=0?this._store.getGroupById(s):null,w=v?v.length+1:1;this.config.prependValue&&(m=this.config.prependValue+m.toString()),this.config.appendValue&&(m+=this.config.appendValue.toString()),this._store.dispatch((0,c.addItem)({value:m,label:y,id:w,choiceId:b,groupId:s,customProperties:u,placeholder:p,keyCode:g})),this._isSelectOneElement&&this.removeActiveItems(w),this.passedElement.triggerEvent(h.EVENTS.addItem,{id:w,value:m,label:y,customProperties:u,groupValue:_&&_.value?_.value:null,keyCode:g})},t.prototype._removeItem=function(t){var e=t.id,n=t.value,i=t.label,r=t.customProperties,o=t.choiceId,l=t.groupId,s=l&&l>=0?this._store.getGroupById(l):null;e&&o&&(this._store.dispatch((0,c.removeItem)(e,o)),this.passedElement.triggerEvent(h.EVENTS.removeItem,{id:e,value:n,label:i,customProperties:r,groupValue:s&&s.value?s.value:null}))},t.prototype._addChoice=function(t){var e=t.value,n=t.label,i=void 0===n?null:n,r=t.isSelected,o=void 0!==r&&r,l=t.isDisabled,a=void 0!==l&&l,c=t.groupId,u=void 0===c?-1:c,d=t.customProperties,h=void 0===d?{}:d,p=t.placeholder,f=void 0!==p&&p,g=t.keyCode,m=void 0===g?-1:g;if(null!=e){var v=this._store.choices,y=i||e,b=v?v.length+1:1,_="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(b);this._store.dispatch((0,s.addChoice)({id:b,groupId:u,elementId:_,value:e,label:y,disabled:a,customProperties:h,placeholder:f,keyCode:m})),o&&this._addItem({value:e,label:y,choiceId:b,customProperties:h,placeholder:f,keyCode:m})}},t.prototype._addGroup=function(t){var e=this,n=t.group,i=t.id,r=t.valueKey,o=void 0===r?"value":r,l=t.labelKey,s=void 0===l?"label":l,c=(0,f.isType)("Object",n)?n.choices:Array.from(n.getElementsByTagName("OPTION")),u=i||Math.floor((new Date).valueOf()*Math.random()),d=!!n.disabled&&n.disabled;c?(this._store.dispatch((0,a.addGroup)({value:n.label,id:u,active:!0,disabled:d})),c.forEach((function(t){var n=t.disabled||t.parentNode&&t.parentNode.disabled;e._addChoice({value:t[o],label:(0,f.isType)("Object",t)?t[s]:t.innerHTML,isSelected:t.selected,isDisabled:n,groupId:u,customProperties:t.customProperties,placeholder:t.placeholder})}))):this._store.dispatch((0,a.addGroup)({value:n.label,id:n.id,active:!1,disabled:n.disabled}))},t.prototype._getTemplate=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return(e=this._templates[t]).call.apply(e,i([this,this.config],n,!1))},t.prototype._createTemplates=function(){var t=this.config.callbackOnCreateTemplates,e={};t&&"function"==typeof t&&(e=t.call(this,f.strToEl)),this._templates=(0,o.default)(v.default,e)},t.prototype._createElements=function(){this.containerOuter=new d.Container({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type,this.config.labelId),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new d.Container({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new d.Input({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new d.List({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new d.List({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new d.Dropdown({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},t.prototype._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},t.prototype._addPredefinedGroups=function(t){var e=this,n=this.passedElement.placeholderOption;n&&n.parentNode&&"SELECT"===n.parentNode.tagName&&this._addChoice({value:n.value,label:n.innerHTML,isSelected:n.selected,isDisabled:n.disabled,placeholder:!0}),t.forEach((function(t){return e._addGroup({group:t,id:t.id||null})}))},t.prototype._addPredefinedChoices=function(t){var e=this;this.config.shouldSort&&t.sort(this.config.sorter);var n=t.some((function(t){return t.selected})),i=t.findIndex((function(t){return void 0===t.disabled||!t.disabled}));t.forEach((function(t,r){var o=t.value,l=void 0===o?"":o,s=t.label,a=t.customProperties,c=t.placeholder;if(e._isSelectElement)if(t.choices)e._addGroup({group:t,id:t.id||null});else{var u=!(!e._isSelectOneElement||n||r!==i)||t.selected,d=t.disabled;e._addChoice({value:l,label:s,isSelected:!!u,isDisabled:!!d,placeholder:!!c,customProperties:a})}else e._addChoice({value:l,label:s,isSelected:!!t.selected,isDisabled:!!t.disabled,placeholder:!!t.placeholder,customProperties:a})}))},t.prototype._addPredefinedItems=function(t){var e=this;t.forEach((function(t){"object"==typeof t&&t.value&&e._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder}),"string"==typeof t&&e._addItem({value:t})}))},t.prototype._setChoiceOrItem=function(t){var e=this;({object:function(){t.value&&(e._isTextElement?e._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder}):e._addChoice({value:t.value,label:t.label,isSelected:!0,isDisabled:!1,customProperties:t.customProperties,placeholder:t.placeholder}))},string:function(){e._isTextElement?e._addItem({value:t}):e._addChoice({value:t,label:t,isSelected:!0,isDisabled:!1})}})[(0,f.getType)(t).toLowerCase()]()},t.prototype._findAndSelectChoiceByValue=function(t){var e=this,n=this._store.choices.find((function(n){return e.config.valueComparer(n.value,t)}));n&&!n.selected&&this._addItem({value:n.value,label:n.label,choiceId:n.id,groupId:n.groupId,customProperties:n.customProperties,placeholder:n.placeholder,keyCode:n.keyCode})},t.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){var t=this.passedElement.placeholderOption;return t?t.text:null}var e=this.config,n=e.placeholder,i=e.placeholderValue,r=this.passedElement.element.dataset;if(n){if(i)return i;if(r.placeholder)return r.placeholder}return null},t}();e.default=_},613:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(799),r=n(883),o=function(){function t(t){var e=t.element,n=t.type,i=t.classNames,r=t.position;this.element=e,this.classNames=i,this.type=n,this.position=r,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return t.prototype.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},t.prototype.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},t.prototype.shouldFlip=function(t){if("number"!=typeof t)return!1;var e=!1;return"auto"===this.position?e=!window.matchMedia("(min-height: ".concat(t+1,"px)")).matches:"top"===this.position&&(e=!0),e},t.prototype.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)},t.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},t.prototype.open=function(t){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(t)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},t.prototype.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},t.prototype.focus=function(){this.isFocussed||this.element.focus()},t.prototype.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},t.prototype.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},t.prototype.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===r.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},t.prototype.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===r.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},t.prototype.wrap=function(t){(0,i.wrap)(t,this.element)},t.prototype.unwrap=function(t){this.element.parentNode&&(this.element.parentNode.insertBefore(t,this.element),this.element.parentNode.removeChild(this.element))},t.prototype.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},t.prototype.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},t.prototype._onFocus=function(){this.isFocussed=!0},t.prototype._onBlur=function(){this.isFocussed=!1},t}();e.default=o},217:function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){var e=t.element,n=t.type,i=t.classNames;this.element=e,this.classNames=i,this.type=n,this.isActive=!1}return Object.defineProperty(t.prototype,"distanceFromTopWindow",{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:!1,configurable:!0}),t.prototype.getChild=function(t){return this.element.querySelector(t)},t.prototype.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},t.prototype.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},t}();e.default=n},520:function(t,e,n){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.WrappedSelect=e.WrappedInput=e.List=e.Input=e.Container=e.Dropdown=void 0;var r=i(n(217));e.Dropdown=r.default;var o=i(n(613));e.Container=o.default;var l=i(n(11));e.Input=l.default;var s=i(n(624));e.List=s.default;var a=i(n(541));e.WrappedInput=a.default;var c=i(n(982));e.WrappedSelect=c.default},11:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(799),r=n(883),o=function(){function t(t){var e=t.element,n=t.type,i=t.classNames,r=t.preventPaste;this.element=e,this.type=n,this.classNames=i,this.preventPaste=r,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=e.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return Object.defineProperty(t.prototype,"placeholder",{set:function(t){this.element.placeholder=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return(0,i.sanitise)(this.element.value)},set:function(t){this.element.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rawValue",{get:function(){return this.element.value},enumerable:!1,configurable:!0}),t.prototype.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},t.prototype.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},t.prototype.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},t.prototype.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},t.prototype.focus=function(){this.isFocussed||this.element.focus()},t.prototype.blur=function(){this.isFocussed&&this.element.blur()},t.prototype.clear=function(t){return void 0===t&&(t=!0),this.element.value&&(this.element.value=""),t&&this.setWidth(),this},t.prototype.setWidth=function(){var t=this.element,e=t.style,n=t.value,i=t.placeholder;e.minWidth="".concat(i.length+1,"ch"),e.width="".concat(n.length+1,"ch")},t.prototype.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)},t.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},t.prototype._onInput=function(){this.type!==r.SELECT_ONE_TYPE&&this.setWidth()},t.prototype._onPaste=function(t){this.preventPaste&&t.preventDefault()},t.prototype._onFocus=function(){this.isFocussed=!0},t.prototype._onBlur=function(){this.isFocussed=!1},t}();e.default=o},624:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(883),r=function(){function t(t){var e=t.element;this.element=e,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}return t.prototype.clear=function(){this.element.innerHTML=""},t.prototype.append=function(t){this.element.appendChild(t)},t.prototype.getChild=function(t){return this.element.querySelector(t)},t.prototype.hasChildren=function(){return this.element.hasChildNodes()},t.prototype.scrollToTop=function(){this.element.scrollTop=0},t.prototype.scrollToChildElement=function(t,e){var n=this;if(t){var i=this.element.offsetHeight,r=this.element.scrollTop+i,o=t.offsetHeight,l=t.offsetTop+o,s=e>0?this.element.scrollTop+l-r:t.offsetTop;requestAnimationFrame((function(){n._animateScroll(s,e)}))}},t.prototype._scrollDown=function(t,e,n){var i=(n-t)/e,r=i>1?i:1;this.element.scrollTop=t+r},t.prototype._scrollUp=function(t,e,n){var i=(t-n)/e,r=i>1?i:1;this.element.scrollTop=t-r},t.prototype._animateScroll=function(t,e){var n=this,r=i.SCROLLING_SPEED,o=this.element.scrollTop,l=!1;e>0?(this._scrollDown(o,r,t),o<t&&(l=!0)):(this._scrollUp(o,r,t),o>t&&(l=!0)),l&&requestAnimationFrame((function(){n._animateScroll(t,e)}))},t}();e.default=r},730:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(799),r=function(){function t(t){var e=t.element,n=t.classNames;if(this.element=e,this.classNames=n,!(e instanceof HTMLInputElement||e instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}return Object.defineProperty(t.prototype,"isActive",{get:function(){return"active"===this.element.dataset.choice},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.element.value},set:function(t){this.element.value=t},enumerable:!1,configurable:!0}),t.prototype.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var t=this.element.getAttribute("style");t&&this.element.setAttribute("data-choice-orig-style",t),this.element.setAttribute("data-choice","active")},t.prototype.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var t=this.element.getAttribute("data-choice-orig-style");t?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",t)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},t.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},t.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},t.prototype.triggerEvent=function(t,e){(0,i.dispatchEvent)(this.element,t,e)},t}();e.default=r},541:function(t,e,n){var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var l=function(t){function e(e){var n=e.element,i=e.classNames,r=e.delimiter,o=t.call(this,{element:n,classNames:i})||this;return o.delimiter=r,o}return r(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.element.value},set:function(t){this.element.setAttribute("value",t),this.element.value=t},enumerable:!1,configurable:!0}),e}(o(n(730)).default);e.default=l},982:function(t,e,n){var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var l=function(t){function e(e){var n=e.element,i=e.classNames,r=e.template,o=t.call(this,{element:n,classNames:i})||this;return o.template=r,o}return r(e,t),Object.defineProperty(e.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(t){var e=this,n=document.createDocumentFragment();t.forEach((function(t){return i=t,r=e.template(i),void n.appendChild(r);var i,r})),this.appendDocFragment(n)},enumerable:!1,configurable:!0}),e.prototype.appendDocFragment=function(t){this.element.innerHTML="",this.element.appendChild(t)},e}(o(n(730)).default);e.default=l},883:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.SCROLLING_SPEED=e.SELECT_MULTIPLE_TYPE=e.SELECT_ONE_TYPE=e.TEXT_TYPE=e.KEY_CODES=e.ACTION_TYPES=e.EVENTS=void 0,e.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"},e.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL",RESET_TO:"RESET_TO",SET_IS_LOADING:"SET_IS_LOADING"},e.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},e.TEXT_TYPE="text",e.SELECT_ONE_TYPE="select-one",e.SELECT_MULTIPLE_TYPE="select-multiple",e.SCROLLING_SPEED=4},789:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_CONFIG=e.DEFAULT_CLASSNAMES=void 0;var i=n(799);e.DEFAULT_CLASSNAMES={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"},e.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,allowHTML:!0,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:i.sortByAlpha,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(t){return'Press Enter to add <b>"'.concat((0,i.sanitise)(t),'"</b>')},maxItemText:function(t){return"Only ".concat(t," values can be added")},valueComparer:function(t,e){return t===e},fuseOptions:{includeScore:!0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:e.DEFAULT_CLASSNAMES}},18:function(t,e){Object.defineProperty(e,"__esModule",{value:!0})},978:function(t,e){Object.defineProperty(e,"__esModule",{value:!0})},948:function(t,e){Object.defineProperty(e,"__esModule",{value:!0})},359:function(t,e){Object.defineProperty(e,"__esModule",{value:!0})},285:function(t,e){Object.defineProperty(e,"__esModule",{value:!0})},533:function(t,e){Object.defineProperty(e,"__esModule",{value:!0})},187:function(t,e,n){var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(18),e),r(n(978),e),r(n(948),e),r(n(359),e),r(n(285),e),r(n(533),e),r(n(287),e),r(n(132),e),r(n(837),e),r(n(598),e),r(n(369),e),r(n(37),e),r(n(47),e),r(n(923),e),r(n(876),e)},287:function(t,e){Object.defineProperty(e,"__esModule",{value:!0})},132:function(t,e){Object.defineProperty(e,"__esModule",{value:!0})},837:function(t,e){Object.defineProperty(e,"__esModule",{value:!0})},598:function(t,e){Object.defineProperty(e,"__esModule",{value:!0})},37:function(t,e){Object.defineProperty(e,"__esModule",{value:!0})},369:function(t,e){Object.defineProperty(e,"__esModule",{value:!0})},47:function(t,e){Object.defineProperty(e,"__esModule",{value:!0})},923:function(t,e){Object.defineProperty(e,"__esModule",{value:!0})},876:function(t,e){Object.defineProperty(e,"__esModule",{value:!0})},799:function(t,e){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.diff=e.cloneObject=e.existsInArray=e.dispatchEvent=e.sortByScore=e.sortByAlpha=e.strToEl=e.sanitise=e.isScrolledIntoView=e.getAdjacentEl=e.wrap=e.isType=e.getType=e.generateId=e.generateChars=e.getRandomNumber=void 0,e.getRandomNumber=function(t,e){return Math.floor(Math.random()*(e-t)+t)},e.generateChars=function(t){return Array.from({length:t},(function(){return(0,e.getRandomNumber)(0,36).toString(36)})).join("")},e.generateId=function(t,n){var i=t.id||t.name&&"".concat(t.name,"-").concat((0,e.generateChars)(2))||(0,e.generateChars)(4);return i=i.replace(/(:|\.|\[|\]|,)/g,""),"".concat(n,"-").concat(i)},e.getType=function(t){return Object.prototype.toString.call(t).slice(8,-1)},e.isType=function(t,n){return null!=n&&(0,e.getType)(n)===t},e.wrap=function(t,e){return void 0===e&&(e=document.createElement("div")),t.parentNode&&(t.nextSibling?t.parentNode.insertBefore(e,t.nextSibling):t.parentNode.appendChild(e)),e.appendChild(t)},e.getAdjacentEl=function(t,e,n){void 0===n&&(n=1);for(var i="".concat(n>0?"next":"previous","ElementSibling"),r=t[i];r;){if(r.matches(e))return r;r=r[i]}return r},e.isScrolledIntoView=function(t,e,n){return void 0===n&&(n=1),!!t&&(n>0?e.scrollTop+e.offsetHeight>=t.offsetTop+t.offsetHeight:t.offsetTop>=e.scrollTop)},e.sanitise=function(t){return"string"!=typeof t?t:t.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")},e.strToEl=(n=document.createElement("div"),function(t){var e=t.trim();n.innerHTML=e;for(var i=n.children[0];n.firstChild;)n.removeChild(n.firstChild);return i}),e.sortByAlpha=function(t,e){var n=t.value,i=t.label,r=void 0===i?n:i,o=e.value,l=e.label,s=void 0===l?o:l;return r.localeCompare(s,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},e.sortByScore=function(t,e){var n=t.score,i=void 0===n?0:n,r=e.score;return i-(void 0===r?0:r)},e.dispatchEvent=function(t,e,n){void 0===n&&(n=null);var i=new CustomEvent(e,{detail:n,bubbles:!0,cancelable:!0});return t.dispatchEvent(i)},e.existsInArray=function(t,e,n){return void 0===n&&(n="value"),t.some((function(t){return"string"==typeof e?t[n]===e.trim():t[n]===e}))},e.cloneObject=function(t){return JSON.parse(JSON.stringify(t))},e.diff=function(t,e){var n=Object.keys(t).sort(),i=Object.keys(e).sort();return n.filter((function(t){return i.indexOf(t)<0}))}},273:function(t,e){var n=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultState=void 0,e.defaultState=[],e.default=function(t,i){switch(void 0===t&&(t=e.defaultState),void 0===i&&(i={}),i.type){case"ADD_CHOICE":var r=i,o={id:r.id,elementId:r.elementId,groupId:r.groupId,value:r.value,label:r.label||r.value,disabled:r.disabled||!1,selected:!1,active:!0,score:9999,customProperties:r.customProperties,placeholder:r.placeholder||!1};return n(n([],t,!0),[o],!1);case"ADD_ITEM":var l=i;return l.choiceId>-1?t.map((function(t){var e=t;return e.id===parseInt("".concat(l.choiceId),10)&&(e.selected=!0),e})):t;case"REMOVE_ITEM":var s=i;return s.choiceId&&s.choiceId>-1?t.map((function(t){var e=t;return e.id===parseInt("".concat(s.choiceId),10)&&(e.selected=!1),e})):t;case"FILTER_CHOICES":var a=i;return t.map((function(t){var e=t;return e.active=a.results.some((function(t){var n=t.item,i=t.score;return n.id===e.id&&(e.score=i,!0)})),e}));case"ACTIVATE_CHOICES":var c=i;return t.map((function(t){var e=t;return e.active=c.active,e}));case"CLEAR_CHOICES":return e.defaultState;default:return t}}},871:function(t,e){var n=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultState=void 0,e.defaultState=[],e.default=function(t,i){switch(void 0===t&&(t=e.defaultState),void 0===i&&(i={}),i.type){case"ADD_GROUP":var r=i;return n(n([],t,!0),[{id:r.id,value:r.value,active:r.active,disabled:r.disabled}],!1);case"CLEAR_CHOICES":return[];default:return t}}},655:function(t,e,n){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultState=void 0;var r=n(857),o=i(n(52)),l=i(n(871)),s=i(n(273)),a=i(n(502)),c=n(799);e.defaultState={groups:[],items:[],choices:[],loading:!1};var u=(0,r.combineReducers)({items:o.default,groups:l.default,choices:s.default,loading:a.default});e.default=function(t,n){var i=t;if("CLEAR_ALL"===n.type)i=e.defaultState;else if("RESET_TO"===n.type)return(0,c.cloneObject)(n.state);return u(i,n)}},52:function(t,e){var n=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultState=void 0,e.defaultState=[],e.default=function(t,i){switch(void 0===t&&(t=e.defaultState),void 0===i&&(i={}),i.type){case"ADD_ITEM":var r=i;return n(n([],t,!0),[{id:r.id,choiceId:r.choiceId,groupId:r.groupId,value:r.value,label:r.label,active:!0,highlighted:!1,customProperties:r.customProperties,placeholder:r.placeholder||!1,keyCode:null}],!1).map((function(t){var e=t;return e.highlighted=!1,e}));case"REMOVE_ITEM":return t.map((function(t){var e=t;return e.id===i.id&&(e.active=!1),e}));case"HIGHLIGHT_ITEM":var o=i;return t.map((function(t){var e=t;return e.id===o.id&&(e.highlighted=o.highlighted),e}));default:return t}}},502:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultState=void 0,e.defaultState=!1,e.default=function(t,n){return void 0===t&&(t=e.defaultState),void 0===n&&(n={}),"SET_IS_LOADING"===n.type?n.isLoading:t}},744:function(t,e,n){var i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))},r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(857),l=r(n(655)),s=function(){function t(){this._store=(0,o.createStore)(l.default,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}return t.prototype.subscribe=function(t){this._store.subscribe(t)},t.prototype.dispatch=function(t){this._store.dispatch(t)},Object.defineProperty(t.prototype,"state",{get:function(){return this._store.getState()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeItems",{get:function(){return this.items.filter((function(t){return!0===t.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"highlightedActiveItems",{get:function(){return this.items.filter((function(t){return t.active&&t.highlighted}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeChoices",{get:function(){return this.choices.filter((function(t){return!0===t.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectableChoices",{get:function(){return this.choices.filter((function(t){return!0!==t.disabled}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchableChoices",{get:function(){return this.selectableChoices.filter((function(t){return!0!==t.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderChoice",{get:function(){return i([],this.choices,!0).reverse().find((function(t){return!0===t.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"groups",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeGroups",{get:function(){var t=this.groups,e=this.choices;return t.filter((function(t){var n=!0===t.active&&!1===t.disabled,i=e.some((function(t){return!0===t.active&&!1===t.disabled}));return n&&i}),[])},enumerable:!1,configurable:!0}),t.prototype.isLoading=function(){return this.state.loading},t.prototype.getChoiceById=function(t){return this.activeChoices.find((function(e){return e.id===parseInt(t,10)}))},t.prototype.getGroupById=function(t){return this.groups.find((function(e){return e.id===t}))},t}();e.default=s},686:function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n={containerOuter:function(t,e,n,i,r,o,l){var s=t.classNames.containerOuter,a=Object.assign(document.createElement("div"),{className:s});return a.dataset.type=o,e&&(a.dir=e),i&&(a.tabIndex=0),n&&(a.setAttribute("role",r?"combobox":"listbox"),r&&a.setAttribute("aria-autocomplete","list")),a.setAttribute("aria-haspopup","true"),a.setAttribute("aria-expanded","false"),l&&a.setAttribute("aria-labeledby",l),a},containerInner:function(t){var e=t.classNames.containerInner;return Object.assign(document.createElement("div"),{className:e})},itemList:function(t,e){var n=t.classNames,i=n.list,r=n.listSingle,o=n.listItems;return Object.assign(document.createElement("div"),{className:"".concat(i," ").concat(e?r:o)})},placeholder:function(t,e){var n,i=t.allowHTML,r=t.classNames.placeholder;return Object.assign(document.createElement("div"),((n={className:r})[i?"innerHTML":"innerText"]=e,n))},item:function(t,e,n){var i,r,o=t.allowHTML,l=t.classNames,s=l.item,a=l.button,c=l.highlightedState,u=l.itemSelectable,d=l.placeholder,h=e.id,p=e.value,f=e.label,g=e.customProperties,m=e.active,v=e.disabled,y=e.highlighted,b=e.placeholder,_=Object.assign(document.createElement("div"),((i={className:s})[o?"innerHTML":"innerText"]=f,i));if(Object.assign(_.dataset,{item:"",id:h,value:p,customProperties:g}),m&&_.setAttribute("aria-selected","true"),v&&_.setAttribute("aria-disabled","true"),b&&_.classList.add(d),_.classList.add(y?c:u),n){v&&_.classList.remove(u),_.dataset.deletable="";var w="Remove item",x=Object.assign(document.createElement("button"),((r={type:"button",className:a})[o?"innerHTML":"innerText"]=w,r));x.setAttribute("aria-label","".concat(w,": '").concat(p,"'")),x.dataset.button="",_.appendChild(x)}return _},choiceList:function(t,e){var n=t.classNames.list,i=Object.assign(document.createElement("div"),{className:n});return e||i.setAttribute("aria-multiselectable","true"),i.setAttribute("role","listbox"),i},choiceGroup:function(t,e){var n,i=t.allowHTML,r=t.classNames,o=r.group,l=r.groupHeading,s=r.itemDisabled,a=e.id,c=e.value,u=e.disabled,d=Object.assign(document.createElement("div"),{className:"".concat(o," ").concat(u?s:"")});return d.setAttribute("role","group"),Object.assign(d.dataset,{group:"",id:a,value:c}),u&&d.setAttribute("aria-disabled","true"),d.appendChild(Object.assign(document.createElement("div"),((n={className:l})[i?"innerHTML":"innerText"]=c,n))),d},choice:function(t,e,n){var i,r=t.allowHTML,o=t.classNames,l=o.item,s=o.itemChoice,a=o.itemSelectable,c=o.selectedState,u=o.itemDisabled,d=o.placeholder,h=e.id,p=e.value,f=e.label,g=e.groupId,m=e.elementId,v=e.disabled,y=e.selected,b=e.placeholder,_=Object.assign(document.createElement("div"),((i={id:m})[r?"innerHTML":"innerText"]=f,i.className="".concat(l," ").concat(s),i));return y&&_.classList.add(c),b&&_.classList.add(d),_.setAttribute("role",g&&g>0?"treeitem":"option"),Object.assign(_.dataset,{choice:"",id:h,value:p,selectText:n}),v?(_.classList.add(u),_.dataset.choiceDisabled="",_.setAttribute("aria-disabled","true")):(_.classList.add(a),_.dataset.choiceSelectable=""),_},input:function(t,e){var n=t.classNames,i=n.input,r=n.inputCloned,o=Object.assign(document.createElement("input"),{type:"search",name:"search_terms",className:"".concat(i," ").concat(r),autocomplete:"off",autocapitalize:"off",spellcheck:!1});return o.setAttribute("role","textbox"),o.setAttribute("aria-autocomplete","list"),o.setAttribute("aria-label",e),o},dropdown:function(t){var e=t.classNames,n=e.list,i=e.listDropdown,r=document.createElement("div");return r.classList.add(n,i),r.setAttribute("aria-expanded","false"),r},notice:function(t,e,n){var i,r=t.allowHTML,o=t.classNames,l=o.item,s=o.itemChoice,a=o.noResults,c=o.noChoices;void 0===n&&(n="");var u=[l,s];return"no-choices"===n?u.push(c):"no-results"===n&&u.push(a),Object.assign(document.createElement("div"),((i={})[r?"innerHTML":"innerText"]=e,i.className=u.join(" "),i))},option:function(t){var e=t.label,n=t.value,i=t.customProperties,r=t.active,o=t.disabled,l=new Option(e,n,!1,r);return i&&(l.dataset.customProperties="".concat(i)),l.disabled=!!o,l}};e.default=n},996:function(t){var e=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===n}(t)}(t)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(t,e){return!1!==e.clone&&e.isMergeableObject(t)?s((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function r(t,e,n){return t.concat(e).map((function(t){return i(t,n)}))}function o(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function l(t,e){try{return e in t}catch(t){return!1}}function s(t,n,a){(a=a||{}).arrayMerge=a.arrayMerge||r,a.isMergeableObject=a.isMergeableObject||e,a.cloneUnlessOtherwiseSpecified=i;var c=Array.isArray(n);return c===Array.isArray(t)?c?a.arrayMerge(t,n,a):function(t,e,n){var r={};return n.isMergeableObject(t)&&o(t).forEach((function(e){r[e]=i(t[e],n)})),o(e).forEach((function(o){(function(t,e){return l(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,o)||(l(t,o)&&n.isMergeableObject(e[o])?r[o]=function(t,e){if(!e.customMerge)return s;var n=e.customMerge(t);return"function"==typeof n?n:s}(o,n)(t[o],e[o],n):r[o]=i(e[o],n))})),r}(t,n,a):i(n,a)}s.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return s(t,n,e)}),{})};var a=s;t.exports=a},221:function(t,e,n){function i(t){return Array.isArray?Array.isArray(t):"[object Array]"===c(t)}function r(t){return"string"==typeof t}function o(t){return"number"==typeof t}function l(t){return"object"==typeof t}function s(t){return null!=t}function a(t){return!t.trim().length}function c(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}n.r(e),n.d(e,{default:function(){return H}});const u=Object.prototype.hasOwnProperty;class d{constructor(t){this._keys=[],this._keyMap={};let e=0;t.forEach(t=>{let n=h(t);e+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,e+=n.weight}),this._keys.forEach(t=>{t.weight/=e})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function h(t){let e=null,n=null,o=null,l=1;if(r(t)||i(t))o=t,e=p(t),n=f(t);else{if(!u.call(t,"name"))throw new Error("Missing name property in key");const i=t.name;if(o=i,u.call(t,"weight")&&(l=t.weight,l<=0))throw new Error((t=>`Property 'weight' in key '${t}' must be a positive integer`)(i));e=p(i),n=f(i)}return{path:e,id:n,weight:l,src:o}}function p(t){return i(t)?t:t.split(".")}function f(t){return i(t)?t.join("."):t}var g={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(t,e){let n=[],a=!1;const u=(t,e,d)=>{if(s(t))if(e[d]){const h=t[e[d]];if(!s(h))return;if(d===e.length-1&&(r(h)||o(h)||function(t){return!0===t||!1===t||function(t){return l(t)&&null!==t}(t)&&"[object Boolean]"==c(t)}(h)))n.push(function(t){return null==t?"":function(t){if("string"==typeof t)return t;let e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(t)}(h));else if(i(h)){a=!0;for(let t=0,n=h.length;t<n;t+=1)u(h[t],e,d+1)}else e.length&&u(h,e,d+1)}else n.push(t)};return u(t,r(e)?e.split("."):e,0),a?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};const m=/[^ ]+/g;class v{constructor({getFn:t=g.getFn,fieldNormWeight:e=g.fieldNormWeight}={}){this.norm=function(t=1,e=3){const n=new Map,i=Math.pow(10,e);return{get(e){const r=e.match(m).length;if(n.has(r))return n.get(r);const o=1/Math.pow(r,.5*t),l=parseFloat(Math.round(o*i)/i);return n.set(r,l),l},clear(){n.clear()}}}(e,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((t,e)=>{this._keysMap[t.id]=e})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,r(this.docs[0])?this.docs.forEach((t,e)=>{this._addString(t,e)}):this.docs.forEach((t,e)=>{this._addObject(t,e)}),this.norm.clear())}add(t){const e=this.size();r(t)?this._addString(t,e):this._addObject(t,e)}removeAt(t){this.records.splice(t,1);for(let e=t,n=this.size();e<n;e+=1)this.records[e].i-=1}getValueForItemAtKeyId(t,e){return t[this._keysMap[e]]}size(){return this.records.length}_addString(t,e){if(!s(t)||a(t))return;let n={v:t,i:e,n:this.norm.get(t)};this.records.push(n)}_addObject(t,e){let n={i:e,$:{}};this.keys.forEach((e,o)=>{let l=this.getFn(t,e.path);if(s(l))if(i(l)){let t=[];const e=[{nestedArrIndex:-1,value:l}];for(;e.length;){const{nestedArrIndex:n,value:o}=e.pop();if(s(o))if(r(o)&&!a(o)){let e={v:o,i:n,n:this.norm.get(o)};t.push(e)}else i(o)&&o.forEach((t,n)=>{e.push({nestedArrIndex:n,value:t})})}n.$[o]=t}else if(!a(l)){let t={v:l,n:this.norm.get(l)};n.$[o]=t}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function y(t,e,{getFn:n=g.getFn,fieldNormWeight:i=g.fieldNormWeight}={}){const r=new v({getFn:n,fieldNormWeight:i});return r.setKeys(t.map(h)),r.setSources(e),r.create(),r}function b(t,{errors:e=0,currentLocation:n=0,expectedLocation:i=0,distance:r=g.distance,ignoreLocation:o=g.ignoreLocation}={}){const l=e/t.length;if(o)return l;const s=Math.abs(i-n);return r?l+s/r:s?1:l}const _=32;function w(t){let e={};for(let n=0,i=t.length;n<i;n+=1){const r=t.charAt(n);e[r]=(e[r]||0)|1<<i-n-1}return e}class x{constructor(t,{location:e=g.location,threshold:n=g.threshold,distance:i=g.distance,includeMatches:r=g.includeMatches,findAllMatches:o=g.findAllMatches,minMatchCharLength:l=g.minMatchCharLength,isCaseSensitive:s=g.isCaseSensitive,ignoreLocation:a=g.ignoreLocation}={}){if(this.options={location:e,threshold:n,distance:i,includeMatches:r,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:s,ignoreLocation:a},this.pattern=s?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const c=(t,e)=>{this.chunks.push({pattern:t,alphabet:w(t),startIndex:e})},u=this.pattern.length;if(u>_){let t=0;const e=u%_,n=u-e;for(;t<n;)c(this.pattern.substr(t,_),t),t+=_;if(e){const t=u-_;c(this.pattern.substr(t),t)}}else c(this.pattern,0)}searchIn(t){const{isCaseSensitive:e,includeMatches:n}=this.options;if(e||(t=t.toLowerCase()),this.pattern===t){let e={isMatch:!0,score:0};return n&&(e.indices=[[0,t.length-1]]),e}const{location:i,distance:r,threshold:o,findAllMatches:l,minMatchCharLength:s,ignoreLocation:a}=this.options;let c=[],u=0,d=!1;this.chunks.forEach(({pattern:e,alphabet:h,startIndex:p})=>{const{isMatch:f,score:m,indices:v}=function(t,e,n,{location:i=g.location,distance:r=g.distance,threshold:o=g.threshold,findAllMatches:l=g.findAllMatches,minMatchCharLength:s=g.minMatchCharLength,includeMatches:a=g.includeMatches,ignoreLocation:c=g.ignoreLocation}={}){if(e.length>_)throw new Error("Pattern length exceeds max of 32.");const u=e.length,d=t.length,h=Math.max(0,Math.min(i,d));let p=o,f=h;const m=s>1||a,v=m?Array(d):[];let y;for(;(y=t.indexOf(e,f))>-1;){let t=b(e,{currentLocation:y,expectedLocation:h,distance:r,ignoreLocation:c});if(p=Math.min(t,p),f=y+u,m){let t=0;for(;t<u;)v[y+t]=1,t+=1}}f=-1;let w=[],x=1,E=u+d;const S=1<<u-1;for(let i=0;i<u;i+=1){let o=0,s=E;for(;o<s;)b(e,{errors:i,currentLocation:h+s,expectedLocation:h,distance:r,ignoreLocation:c})<=p?o=s:E=s,s=Math.floor((E-o)/2+o);E=s;let a=Math.max(1,h-s+1),g=l?d:Math.min(h+s,d)+u,y=Array(g+2);y[g+1]=(1<<i)-1;for(let o=g;o>=a;o-=1){let l=o-1,s=n[t.charAt(l)];if(m&&(v[l]=+!!s),y[o]=(y[o+1]<<1|1)&s,i&&(y[o]|=(w[o+1]|w[o])<<1|1|w[o+1]),y[o]&S&&(x=b(e,{errors:i,currentLocation:l,expectedLocation:h,distance:r,ignoreLocation:c}),x<=p)){if(p=x,f=l,f<=h)break;a=Math.max(1,2*h-f)}}if(b(e,{errors:i+1,currentLocation:h,expectedLocation:h,distance:r,ignoreLocation:c})>p)break;w=y}const C={isMatch:f>=0,score:Math.max(.001,x)};if(m){const t=function(t=[],e=g.minMatchCharLength){let n=[],i=-1,r=-1,o=0;for(let l=t.length;o<l;o+=1){let l=t[o];l&&-1===i?i=o:l||-1===i||(r=o-1,r-i+1>=e&&n.push([i,r]),i=-1)}return t[o-1]&&o-i>=e&&n.push([i,o-1]),n}(v,s);t.length?a&&(C.indices=t):C.isMatch=!1}return C}(t,e,h,{location:i+p,distance:r,threshold:o,findAllMatches:l,minMatchCharLength:s,includeMatches:n,ignoreLocation:a});f&&(d=!0),u+=m,f&&v&&(c=[...c,...v])});let h={isMatch:d,score:d?u/this.chunks.length:1};return d&&n&&(h.indices=c),h}}class E{constructor(t){this.pattern=t}static isMultiMatch(t){return S(t,this.multiRegex)}static isSingleMatch(t){return S(t,this.singleRegex)}search(){}}function S(t,e){const n=t.match(e);return n?n[1]:null}class C extends E{constructor(t,{location:e=g.location,threshold:n=g.threshold,distance:i=g.distance,includeMatches:r=g.includeMatches,findAllMatches:o=g.findAllMatches,minMatchCharLength:l=g.minMatchCharLength,isCaseSensitive:s=g.isCaseSensitive,ignoreLocation:a=g.ignoreLocation}={}){super(t),this._bitapSearch=new x(t,{location:e,threshold:n,distance:i,includeMatches:r,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:s,ignoreLocation:a})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class M extends E{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let e,n=0;const i=[],r=this.pattern.length;for(;(e=t.indexOf(this.pattern,n))>-1;)n=e+r,i.push([e,n-1]);const o=!!i.length;return{isMatch:o,score:o?0:1,indices:i}}}const k=[class extends E{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},M,class extends E{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},class extends E{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends E{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends E{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}},class extends E{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const e=-1===t.indexOf(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},C],D=k.length,T=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/,L=new Set([C.type,M.type]),A=[];function P(t,e){for(let n=0,i=A.length;n<i;n+=1){let i=A[n];if(i.condition(t,e))return new i(t,e)}return new x(t,e)}const O="$and",I=t=>!(!t.$and&&!t.$or),R=t=>({[O]:Object.keys(t).map(e=>({[e]:t[e]}))});function N(t,e,{auto:n=!0}={}){const o=t=>{let s=Object.keys(t);const a=(t=>!!t.$path)(t);if(!a&&s.length>1&&!I(t))return o(R(t));if((t=>!i(t)&&l(t)&&!I(t))(t)){const i=a?t.$path:s[0],o=a?t.$val:t[i];if(!r(o))throw new Error((t=>"Invalid value for key "+t)(i));const l={keyId:f(i),pattern:o};return n&&(l.searcher=P(o,e)),l}let c={children:[],operator:s[0]};return s.forEach(e=>{const n=t[e];i(n)&&n.forEach(t=>{c.children.push(o(t))})}),c};return I(t)||(t=R(t)),o(t)}function z(t,e){const n=t.matches;e.matches=[],s(n)&&n.forEach(t=>{if(!s(t.indices)||!t.indices.length)return;const{indices:n,value:i}=t;let r={indices:n,value:i};t.key&&(r.key=t.key.src),t.idx>-1&&(r.refIndex=t.idx),e.matches.push(r)})}function F(t,e){e.score=t.score}class H{constructor(t,e={},n){this.options={...g,...e},this.options.useExtendedSearch,this._keyStore=new d(this.options.keys),this.setCollection(t,n)}setCollection(t,e){if(this._docs=t,e&&!(e instanceof v))throw new Error("Incorrect 'index' type");this._myIndex=e||y(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){s(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=(()=>!1)){const e=[];for(let n=0,i=this._docs.length;n<i;n+=1){const r=this._docs[n];t(r,n)&&(this.removeAt(n),n-=1,i-=1,e.push(r))}return e}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:e=-1}={}){const{includeMatches:n,includeScore:i,shouldSort:l,sortFn:s,ignoreFieldNorm:a}=this.options;let c=r(t)?r(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return function(t,{ignoreFieldNorm:e=g.ignoreFieldNorm}){t.forEach(t=>{let n=1;t.matches.forEach(({key:t,norm:i,score:r})=>{const o=t?t.weight:null;n*=Math.pow(0===r&&o?Number.EPSILON:r,(o||1)*(e?1:i))}),t.score=n})}(c,{ignoreFieldNorm:a}),l&&c.sort(s),o(e)&&e>-1&&(c=c.slice(0,e)),function(t,e,{includeMatches:n=g.includeMatches,includeScore:i=g.includeScore}={}){const r=[];return n&&r.push(z),i&&r.push(F),t.map(t=>{const{idx:n}=t,i={item:e[n],refIndex:n};return r.length&&r.forEach(e=>{e(t,i)}),i})}(c,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(t){const e=P(t,this.options),{records:n}=this._myIndex,i=[];return n.forEach(({v:t,i:n,n:r})=>{if(!s(t))return;const{isMatch:o,score:l,indices:a}=e.searchIn(t);o&&i.push({item:t,idx:n,matches:[{score:l,value:t,norm:r,indices:a}]})}),i}_searchLogical(t){const e=N(t,this.options),n=(t,e,i)=>{if(!t.children){const{keyId:n,searcher:r}=t,o=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(e,n),searcher:r});return o&&o.length?[{idx:i,item:e,matches:o}]:[]}const r=[];for(let o=0,l=t.children.length;o<l;o+=1){const l=t.children[o],s=n(l,e,i);if(s.length)r.push(...s);else if(t.operator===O)return[]}return r},i=this._myIndex.records,r={},o=[];return i.forEach(({$:t,i:i})=>{if(s(t)){let l=n(e,t,i);l.length&&(r[i]||(r[i]={idx:i,item:t,matches:[]},o.push(r[i])),l.forEach(({matches:t})=>{r[i].matches.push(...t)}))}}),o}_searchObjectList(t){const e=P(t,this.options),{keys:n,records:i}=this._myIndex,r=[];return i.forEach(({$:t,i:i})=>{if(!s(t))return;let o=[];n.forEach((n,i)=>{o.push(...this._findMatches({key:n,value:t[i],searcher:e}))}),o.length&&r.push({idx:i,item:t,matches:o})}),r}_findMatches({key:t,value:e,searcher:n}){if(!s(e))return[];let r=[];if(i(e))e.forEach(({v:e,i:i,n:o})=>{if(!s(e))return;const{isMatch:l,score:a,indices:c}=n.searchIn(e);l&&r.push({score:a,key:t,value:e,idx:i,norm:o,indices:c})});else{const{v:i,n:o}=e,{isMatch:l,score:s,indices:a}=n.searchIn(i);l&&r.push({score:s,key:t,value:i,norm:o,indices:a})}return r}}H.version="6.5.3",H.createIndex=y,H.parseIndex=function(t,{getFn:e=g.getFn,fieldNormWeight:n=g.fieldNormWeight}={}){const{keys:i,records:r}=t,o=new v({getFn:e,fieldNormWeight:n});return o.setKeys(i),o.setIndexRecords(r),o},H.config=g,H.parseQuery=N,function(...t){A.push(...t)}(class{constructor(t,{isCaseSensitive:e=g.isCaseSensitive,includeMatches:n=g.includeMatches,minMatchCharLength:i=g.minMatchCharLength,ignoreLocation:r=g.ignoreLocation,findAllMatches:o=g.findAllMatches,location:l=g.location,threshold:s=g.threshold,distance:a=g.distance}={}){this.query=null,this.options={isCaseSensitive:e,includeMatches:n,minMatchCharLength:i,findAllMatches:o,ignoreLocation:r,location:l,threshold:s,distance:a},this.pattern=e?t:t.toLowerCase(),this.query=function(t,e={}){return t.split("|").map(t=>{let n=t.trim().split(T).filter(t=>t&&!!t.trim()),i=[];for(let t=0,r=n.length;t<r;t+=1){const r=n[t];let o=!1,l=-1;for(;!o&&++l<D;){const t=k[l];let n=t.isMultiMatch(r);n&&(i.push(new t(n,e)),o=!0)}if(!o)for(l=-1;++l<D;){const t=k[l];let n=t.isSingleMatch(r);if(n){i.push(new t(n,e));break}}}return i})}(this.pattern,this.options)}static condition(t,e){return e.useExtendedSearch}searchIn(t){const e=this.query;if(!e)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:i}=this.options;t=i?t:t.toLowerCase();let r=0,o=[],l=0;for(let i=0,s=e.length;i<s;i+=1){const s=e[i];o.length=0,r=0;for(let e=0,i=s.length;e<i;e+=1){const i=s[e],{isMatch:a,indices:c,score:u}=i.search(t);if(!a){l=0,r=0,o.length=0;break}if(r+=1,l+=u,n){const t=i.constructor.type;L.has(t)?o=[...o,...c]:o.push(c)}}if(r){let t={isMatch:!0,score:l/r};return n&&(t.indices=o),t}}return{isMatch:!1,score:1}}})},857:function(t,e,n){function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}n.r(e),n.d(e,{__DO_NOT_USE__ActionTypes:function(){return c},applyMiddleware:function(){return m},bindActionCreators:function(){return f},combineReducers:function(){return h},compose:function(){return g},createStore:function(){return d}});var s="function"==typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},c={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function u(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function d(t,e,n){var i;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(l(0));if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error(l(1));return n(d)(t,e)}if("function"!=typeof t)throw new Error(l(2));var r=t,o=e,a=[],h=a,p=!1;function f(){h===a&&(h=a.slice())}function g(){if(p)throw new Error(l(3));return o}function m(t){if("function"!=typeof t)throw new Error(l(4));if(p)throw new Error(l(5));var e=!0;return f(),h.push(t),function(){if(e){if(p)throw new Error(l(6));e=!1,f();var n=h.indexOf(t);h.splice(n,1),a=null}}}function v(t){if(!u(t))throw new Error(l(7));if(void 0===t.type)throw new Error(l(8));if(p)throw new Error(l(9));try{p=!0,o=r(o,t)}finally{p=!1}for(var e=a=h,n=0;n<e.length;n++)(0,e[n])();return t}function y(t){if("function"!=typeof t)throw new Error(l(10));r=t,v({type:c.REPLACE})}function b(){var t,e=m;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(l(11));function n(){t.next&&t.next(g())}return n(),{unsubscribe:e(n)}}})[s]=function(){return this},t}return v({type:c.INIT}),(i={dispatch:v,subscribe:m,getState:g,replaceReducer:y})[s]=b,i}function h(t){for(var e=Object.keys(t),n={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(n[r]=t[r])}var o,s=Object.keys(n);try{!function(t){Object.keys(t).forEach((function(e){var n=t[e];if(void 0===n(void 0,{type:c.INIT}))throw new Error(l(12));if(void 0===n(void 0,{type:c.PROBE_UNKNOWN_ACTION()}))throw new Error(l(13))}))}(n)}catch(t){o=t}return function(t,e){if(void 0===t&&(t={}),o)throw o;for(var i=!1,r={},a=0;a<s.length;a++){var c=s[a],u=n[c],d=t[c],h=u(d,e);if(void 0===h)throw e&&e.type,new Error(l(14));r[c]=h,i=i||h!==d}return(i=i||s.length!==Object.keys(t).length)?r:t}}function p(t,e){return function(){return e(t.apply(this,arguments))}}function f(t,e){if("function"==typeof t)return p(t,e);if("object"!=typeof t||null===t)throw new Error(l(16));var n={};for(var i in t){var r=t[i];"function"==typeof r&&(n[i]=p(r,e))}return n}function g(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function m(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),i=function(){throw new Error(l(15))},r={getState:n.getState,dispatch:function(){return i.apply(void 0,arguments)}},s=e.map((function(t){return t(r)}));return i=g.apply(void 0,s)(n.dispatch),o(o({},n),{},{dispatch:i})}}}}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={exports:{}};return t[i].call(o.exports,o,o.exports,n),o.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i,r,o={};i=n(373),r=n.n(i),n(187),n(883),n(789),n(686),o.default=r(),window.Choices=o.default}(),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Sweetalert2=e()}(this,(function(){"use strict";var t={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const e=t=>{const e={};for(const n in t)e[t[n]]="swal2-"+t[n];return e},n=e(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),i=e(["success","warning","info","question","error"]),r=t=>t.charAt(0).toUpperCase()+t.slice(1),o=t=>{console.warn("SweetAlert2: "+("object"==typeof t?t.join(" "):t))},l=t=>{console.error("SweetAlert2: "+t)},s=[],a=t=>"function"==typeof t?t():t,c=t=>t&&"function"==typeof t.toPromise,u=t=>c(t)?t.toPromise():Promise.resolve(t),d=t=>t&&Promise.resolve(t)===t,h=()=>document.body.querySelector("."+n.container),p=t=>{const e=h();return e?e.querySelector(t):null},f=t=>p("."+t),g=()=>f(n.popup),m=()=>f(n.icon),v=()=>f(n.title),y=()=>f(n["html-container"]),b=()=>f(n.image),_=()=>f(n["progress-steps"]),w=()=>f(n["validation-message"]),x=()=>p(`.${n.actions} .${n.confirm}`),E=()=>p(`.${n.actions} .${n.deny}`),S=()=>p("."+n.loader),C=()=>p(`.${n.actions} .${n.cancel}`),M=()=>f(n.actions),k=()=>f(n.footer),D=()=>f(n["timer-progress-bar"]),T=()=>f(n.close),L=()=>{const t=Array.from(g().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((t,e)=>{const n=parseInt(t.getAttribute("tabindex")),i=parseInt(e.getAttribute("tabindex"));return n>i?1:n<i?-1:0}),e=Array.from(g().querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n')).filter(t=>"-1"!==t.getAttribute("tabindex"));return(t=>{const e=[];for(let n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e})(t.concat(e)).filter(t=>G(t))},A=()=>R(document.body,n.shown)&&!R(document.body,n["toast-shown"])&&!R(document.body,n["no-backdrop"]),P=()=>g()&&R(g(),n.toast),O={previousBodyPadding:null},I=(t,e)=>{if(t.textContent="",e){const n=(new DOMParser).parseFromString(e,"text/html");Array.from(n.querySelector("head").childNodes).forEach(e=>{t.appendChild(e)}),Array.from(n.querySelector("body").childNodes).forEach(e=>{e instanceof HTMLVideoElement||e instanceof HTMLAudioElement?t.appendChild(e.cloneNode(!0)):t.appendChild(e)})}},R=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let e=0;e<n.length;e++)if(!t.classList.contains(n[e]))return!1;return!0},N=(t,e,r)=>{if(((t,e)=>{Array.from(t.classList).forEach(r=>{Object.values(n).includes(r)||Object.values(i).includes(r)||Object.values(e.showClass).includes(r)||t.classList.remove(r)})})(t,e),e.customClass&&e.customClass[r]){if("string"!=typeof e.customClass[r]&&!e.customClass[r].forEach)return void o(`Invalid type of customClass.${r}! Expected string or iterable object, got "${typeof e.customClass[r]}"`);B(t,e.customClass[r])}},z=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${n.popup} > .${n[e]}`);case"checkbox":return t.querySelector(`.${n.popup} > .${n.checkbox} input`);case"radio":return t.querySelector(`.${n.popup} > .${n.radio} input:checked`)||t.querySelector(`.${n.popup} > .${n.radio} input:first-child`);case"range":return t.querySelector(`.${n.popup} > .${n.range} input`);default:return t.querySelector(`.${n.popup} > .${n.input}`)}},F=t=>{if(t.focus(),"file"!==t.type){const e=t.value;t.value="",t.value=e}},H=(t,e,n)=>{t&&e&&("string"==typeof e&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(e=>{Array.isArray(t)?t.forEach(t=>{n?t.classList.add(e):t.classList.remove(e)}):n?t.classList.add(e):t.classList.remove(e)}))},B=(t,e)=>{H(t,e,!0)},j=(t,e)=>{H(t,e,!1)},V=(t,e)=>{const n=Array.from(t.children);for(let t=0;t<n.length;t++){const i=n[t];if(i instanceof HTMLElement&&R(i,e))return i}},W=(t,e,n)=>{n===""+parseInt(n)&&(n=parseInt(n)),n||0===parseInt(n)?t.style[e]="number"==typeof n?n+"px":n:t.style.removeProperty(e)},U=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";t.style.display=e},Y=t=>{t.style.display="none"},$=(t,e,n,i)=>{const r=t.querySelector(e);r&&(r.style[n]=i)},q=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex";e?U(t,n):Y(t)},G=t=>!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),Z=t=>!!(t.scrollHeight>t.clientHeight),K=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),i=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||i>0},X=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=D();G(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},Q={},J=()=>"undefined"==typeof window||"undefined"==typeof document,tt=`\n <div aria-labelledby="${n.title}" aria-describedby="${n["html-container"]}" class="${n.popup}" tabindex="-1">\n <button type="button" class="${n.close}"></button>\n <ul class="${n["progress-steps"]}"></ul>\n <div class="${n.icon}"></div>\n <img class="${n.image}" />\n <h2 class="${n.title}" id="${n.title}"></h2>\n <div class="${n["html-container"]}" id="${n["html-container"]}"></div>\n <input class="${n.input}" />\n <input type="file" class="${n.file}" />\n <div class="${n.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${n.select}"></select>\n <div class="${n.radio}"></div>\n <label for="${n.checkbox}" class="${n.checkbox}">\n <input type="checkbox" />\n <span class="${n.label}"></span>\n </label>\n <textarea class="${n.textarea}"></textarea>\n <div class="${n["validation-message"]}" id="${n["validation-message"]}"></div>\n <div class="${n.actions}">\n <div class="${n.loader}"></div>\n <button type="button" class="${n.confirm}"></button>\n <button type="button" class="${n.deny}"></button>\n <button type="button" class="${n.cancel}"></button>\n </div>\n <div class="${n.footer}"></div>\n <div class="${n["timer-progress-bar-container"]}">\n <div class="${n["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),et=()=>{Q.currentInstance.resetValidationMessage()},nt=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):"object"==typeof t?it(t,e):t&&I(e,t)},it=(t,e)=>{t.jquery?rt(e,t):I(e,t.toString())},rt=(t,e)=>{if(t.textContent="",0 in e)for(let n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},ot=(()=>{if(J())return!1;const t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&void 0!==t.style[n])return e[n];return!1})();function lt(t,e,i){q(t,i[`show${r(e)}Button`],"inline-block"),I(t,i[e+"ButtonText"]),t.setAttribute("aria-label",i[e+"ButtonAriaLabel"]),t.className=n[e],N(t,i,e+"Button"),B(t,i[e+"ButtonClass"])}const st=["input","file","range","select","radio","checkbox","textarea"],at=t=>{if(!pt[t.input])return void l(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=dt(t.input),n=pt[t.input](e,t);U(e),setTimeout(()=>{F(n)})},ct=(t,e)=>{t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)},ut=(t,e,i)=>{if(i.inputLabel){t.id=n.input;const r=document.createElement("label"),o=n["input-label"];r.setAttribute("for",t.id),r.className=o,"object"==typeof i.customClass&&B(r,i.customClass.inputLabel),r.innerText=i.inputLabel,e.insertAdjacentElement("beforebegin",r)}},dt=t=>V(g(),n[t]||n.input),ht=(t,e)=>{["string","number"].includes(typeof e)?t.value=""+e:d(e)||o(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e}"`)},pt={};pt.text=pt.email=pt.password=pt.number=pt.tel=pt.url=(t,e)=>(ht(t,e.inputValue),ut(t,t,e),ct(t,e),t.type=e.input,t),pt.file=(t,e)=>(ut(t,t,e),ct(t,e),t),pt.range=(t,e)=>{const n=t.querySelector("input"),i=t.querySelector("output");return ht(n,e.inputValue),n.type=e.input,ht(i,e.inputValue),ut(n,t,e),t},pt.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");I(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return ut(t,t,e),t},pt.radio=t=>(t.textContent="",t),pt.checkbox=(t,e)=>{const i=z(g(),"checkbox");i.value="1",i.id=n.checkbox,i.checked=Boolean(e.inputValue);const r=t.querySelector("span");return I(r,e.inputPlaceholder),i},pt.textarea=(t,e)=>(ht(t,e.inputValue),ct(t,e),ut(t,t,e),setTimeout(()=>{if("MutationObserver"in window){const e=parseInt(window.getComputedStyle(g()).width);new MutationObserver(()=>{const n=t.offsetWidth+(i=t,parseInt(window.getComputedStyle(i).marginLeft)+parseInt(window.getComputedStyle(i).marginRight));var i;g().style.width=n>e?n+"px":null}).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t);const ft=(e,i)=>{const r=y();N(r,i,"htmlContainer"),i.html?(nt(i.html,r),U(r,"block")):i.text?(r.textContent=i.text,U(r,"block")):Y(r),((e,i)=>{const r=g(),o=t.innerParams.get(e),l=!o||i.input!==o.input;st.forEach(t=>{const e=V(r,n[t]);((t,e)=>{const n=z(g(),t);if(n){(t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}})(n);for(const t in e)n.setAttribute(t,e[t])}})(t,i.inputAttributes),e.className=n[t],l&&Y(e)}),i.input&&(l&&at(i),(t=>{const e=dt(t.input);"object"==typeof t.customClass&&B(e,t.customClass.input)})(i))})(e,i)},gt=(t,e)=>{for(const n in i)e.icon!==n&&j(t,i[n]);B(t,i[e.icon]),yt(t,e),mt(),N(t,e,"icon")},mt=()=>{const t=g(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let t=0;t<n.length;t++)n[t].style.backgroundColor=e},vt=(t,e)=>{let n,i=t.innerHTML;e.iconHtml?n=bt(e.iconHtml):"success"===e.icon?(n='\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n',i=i.replace(/ style=".*?"/g,"")):n="error"===e.icon?'\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n':bt({question:"?",warning:"!",info:"i"}[e.icon]),i.trim()!==n.trim()&&I(t,n)},yt=(t,e)=>{if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])$(t,n,"backgroundColor",e.iconColor);$(t,".swal2-success-ring","borderColor",e.iconColor)}},bt=t=>`<div class="${n["icon-content"]}">${t}</div>`,_t=(t,e)=>{t.className=`${n.popup} ${G(t)?e.showClass.popup:""}`,e.toast?(B([document.documentElement,document.body],n["toast-shown"]),B(t,n.toast)):B(t,n.modal),N(t,e,"popup"),"string"==typeof e.customClass&&B(t,e.customClass),e.icon&&B(t,n["icon-"+e.icon])},wt=(e,r)=>{((t,e)=>{const n=h(),i=g();e.toast?(W(n,"width",e.width),i.style.width="100%",i.insertBefore(S(),m())):W(i,"width",e.width),W(i,"padding",e.padding),e.color&&(i.style.color=e.color),e.background&&(i.style.background=e.background),Y(w()),_t(i,e)})(0,r),((t,e)=>{const i=h();i&&(function(t,e){"string"==typeof e?t.style.background=e:e||B([document.documentElement,document.body],n["no-backdrop"])}(i,e.backdrop),function(t,e){e in n?B(t,n[e]):(o('The "position" parameter is not valid, defaulting to "center"'),B(t,n.center))}(i,e.position),function(t,e){if(e&&"string"==typeof e){const i="grow-"+e;i in n&&B(t,n[i])}}(i,e.grow),N(i,e,"container"))})(0,r),((t,e)=>{const i=_();e.progressSteps&&0!==e.progressSteps.length?(U(i),i.textContent="",e.currentProgressStep>=e.progressSteps.length&&o("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((t,r)=>{const o=(t=>{const e=document.createElement("li");return B(e,n["progress-step"]),I(e,t),e})(t);if(i.appendChild(o),r===e.currentProgressStep&&B(o,n["active-progress-step"]),r!==e.progressSteps.length-1){const t=(t=>{const e=document.createElement("li");return B(e,n["progress-step-line"]),t.progressStepsDistance&&W(e,"width",t.progressStepsDistance),e})(e);i.appendChild(t)}})):Y(i)})(0,r),((e,n)=>{const r=t.innerParams.get(e),o=m();if(r&&n.icon===r.icon)return vt(o,n),void gt(o,n);if(n.icon||n.iconHtml){if(n.icon&&-1===Object.keys(i).indexOf(n.icon))return l(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${n.icon}"`),void Y(o);U(o),vt(o,n),gt(o,n),B(o,n.showClass.icon)}else Y(o)})(e,r),((t,e)=>{const i=b();e.imageUrl?(U(i,""),i.setAttribute("src",e.imageUrl),i.setAttribute("alt",e.imageAlt),W(i,"width",e.imageWidth),W(i,"height",e.imageHeight),i.className=n.image,N(i,e,"image")):Y(i)})(0,r),((t,e)=>{const n=v();q(n,e.title||e.titleText,"block"),e.title&&nt(e.title,n),e.titleText&&(n.innerText=e.titleText),N(n,e,"title")})(0,r),((t,e)=>{const n=T();I(n,e.closeButtonHtml),N(n,e,"closeButton"),q(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)})(0,r),ft(e,r),((t,e)=>{const i=M(),r=S();e.showConfirmButton||e.showDenyButton||e.showCancelButton?U(i):Y(i),N(i,e,"actions"),function(t,e,i){const r=x(),o=E(),l=C();lt(r,"confirm",i),lt(o,"deny",i),lt(l,"cancel",i),function(t,e,i,r){r.buttonsStyling?(B([t,e,i],n.styled),r.confirmButtonColor&&(t.style.backgroundColor=r.confirmButtonColor,B(t,n["default-outline"])),r.denyButtonColor&&(e.style.backgroundColor=r.denyButtonColor,B(e,n["default-outline"])),r.cancelButtonColor&&(i.style.backgroundColor=r.cancelButtonColor,B(i,n["default-outline"]))):j([t,e,i],n.styled)}(r,o,l,i),i.reverseButtons&&(i.toast?(t.insertBefore(l,r),t.insertBefore(o,r)):(t.insertBefore(l,e),t.insertBefore(o,e),t.insertBefore(r,e)))}(i,r,e),I(r,e.loaderHtml),N(r,e,"loader")})(0,r),((t,e)=>{const n=k();q(n,e.footer),e.footer&&nt(e.footer,n),N(n,e,"footer")})(0,r),"function"==typeof r.didRender&&r.didRender(g())};function xt(){const e=t.innerParams.get(this);if(!e)return;const i=t.domCache.get(this);Y(i.loader),P()?e.icon&&U(m()):Et(i),j([i.popup,i.actions],n.loading),i.popup.removeAttribute("aria-busy"),i.popup.removeAttribute("data-loading"),i.confirmButton.disabled=!1,i.denyButton.disabled=!1,i.cancelButton.disabled=!1}const Et=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?U(e[0],"inline-block"):G(x())||G(E())||G(C())||Y(t.actions)},St=()=>x()&&x().click(),Ct=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Mt=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},kt=(t,e,n)=>{const i=L();if(i.length)return(e+=n)===i.length?e=0:-1===e&&(e=i.length-1),i[e].focus();g().focus()},Dt=["ArrowRight","ArrowDown"],Tt=["ArrowLeft","ArrowUp"],Lt=(e,n,i)=>{const r=t.innerParams.get(e);r&&(n.isComposing||229===n.keyCode||(r.stopKeydownPropagation&&n.stopPropagation(),"Enter"===n.key?At(e,n,r):"Tab"===n.key?Pt(n,r):[...Dt,...Tt].includes(n.key)?Ot(n.key):"Escape"===n.key&&It(n,r,i)))},At=(t,e,n)=>{if(a(n.allowEnterKey)&&e.target&&t.getInput()&&e.target instanceof HTMLElement&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;St(),e.preventDefault()}},Pt=(t,e)=>{const n=t.target,i=L();let r=-1;for(let t=0;t<i.length;t++)if(n===i[t]){r=t;break}t.shiftKey?kt(0,r,-1):kt(0,r,1),t.stopPropagation(),t.preventDefault()},Ot=t=>{const e=x(),n=E(),i=C();if(document.activeElement instanceof HTMLElement&&![e,n,i].includes(document.activeElement))return;const r=Dt.includes(t)?"nextElementSibling":"previousElementSibling";let o=document.activeElement;for(let t=0;t<M().children.length;t++){if(o=o[r],!o)return;if(o instanceof HTMLButtonElement&&G(o))break}o instanceof HTMLButtonElement&&o.focus()},It=(t,e,n)=>{a(e.allowEscapeKey)&&(t.preventDefault(),n(Ct.esc))};var Rt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Nt=()=>{Array.from(document.body.children).forEach(t=>{t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})},zt=t=>{const e=t.target,n=h();return!(Ft(t)||Ht(t)||e!==n&&(Z(n)||!(e instanceof HTMLElement)||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||Z(y())&&y().contains(e)))},Ft=t=>t.touches&&t.touches.length&&"stylus"===t.touches[0].touchType,Ht=t=>t.touches&&t.touches.length>1;function Bt(t,e,i,r){P()?qt(t,r):((t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,i=window.scrollY;Q.restoreFocusTimeout=setTimeout(()=>{Q.previousActiveElement instanceof HTMLElement?(Q.previousActiveElement.focus(),Q.previousActiveElement=null):document.body&&document.body.focus(),e()},100),window.scrollTo(n,i)}))(i).then(()=>qt(t,r)),Mt(Q)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),A()&&(null!==O.previousBodyPadding&&(document.body.style.paddingRight=O.previousBodyPadding+"px",O.previousBodyPadding=null),(()=>{if(R(document.body,n.iosfix)){const t=parseInt(document.body.style.top,10);j(document.body,n.iosfix),document.body.style.top="",document.body.scrollTop=-1*t}})(),Nt()),j([document.documentElement,document.body],[n.shown,n["height-auto"],n["no-backdrop"],n["toast-shown"]])}function jt(t){t=Ut(t);const e=Rt.swalPromiseResolve.get(this),n=Vt(this);this.isAwaitingPromise()?t.isDismissed||(Wt(this),e(t)):n&&e(t)}const Vt=e=>{const n=g();if(!n)return!1;const i=t.innerParams.get(e);if(!i||R(n,i.hideClass.popup))return!1;j(n,i.showClass.popup),B(n,i.hideClass.popup);const r=h();return j(r,i.showClass.backdrop),B(r,i.hideClass.backdrop),Yt(e,n,i),!0},Wt=e=>{e.isAwaitingPromise()&&(t.awaitingPromise.delete(e),t.innerParams.get(e)||e._destroy())},Ut=t=>void 0===t?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Yt=(t,e,n)=>{const i=h(),r=ot&&K(e);"function"==typeof n.willClose&&n.willClose(e),r?$t(t,e,i,n.returnFocus,n.didClose):Bt(t,i,n.returnFocus,n.didClose)},$t=(t,e,n,i,r)=>{Q.swalCloseEventFinishedCallback=Bt.bind(null,t,n,i,r),e.addEventListener(ot,(function(t){t.target===e&&(Q.swalCloseEventFinishedCallback(),delete Q.swalCloseEventFinishedCallback)}))},qt=(t,e)=>{setTimeout(()=>{"function"==typeof e&&e.bind(t.params)(),t._destroy()})};function Gt(e,n,i){const r=t.domCache.get(e);n.forEach(t=>{r[t].disabled=i})}function Zt(t,e){if(t)if("radio"===t.type){const n=t.parentNode.parentNode.querySelectorAll("input");for(let t=0;t<n.length;t++)n[t].disabled=e}else t.disabled=e}const Kt={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Xt=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],Qt={},Jt=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],te=t=>Object.prototype.hasOwnProperty.call(Kt,t),ee=t=>-1!==Xt.indexOf(t),ne=t=>Qt[t],ie=t=>{te(t)||o(`Unknown parameter "${t}"`)},re=t=>{Jt.includes(t)&&o(`The parameter "${t}" is incompatible with toasts`)},oe=t=>{ne(t)&&((t,e)=>{var n;n=`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`,s.includes(n)||(s.push(n),o(n))})(t,ne(t))},le=e=>{e.isAwaitingPromise()?(se(t,e),t.awaitingPromise.set(e,!0)):(se(Rt,e),se(t,e))},se=(t,e)=>{for(const n in t)t[n].delete(e)};var ae=Object.freeze({__proto__:null,hideLoading:xt,disableLoading:xt,getInput:function(e){const n=t.innerParams.get(e||this),i=t.domCache.get(e||this);return i?z(i.popup,n.input):null},close:jt,isAwaitingPromise:function(){return!!t.awaitingPromise.get(this)},rejectPromise:function(t){const e=Rt.swalPromiseReject.get(this);Wt(this),e&&e(t)},handleAwaitingPromise:Wt,closePopup:jt,closeModal:jt,closeToast:jt,enableButtons:function(){Gt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){Gt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){Zt(this.getInput(),!1)},disableInput:function(){Zt(this.getInput(),!0)},showValidationMessage:function(e){const i=t.domCache.get(this),r=t.innerParams.get(this);I(i.validationMessage,e),i.validationMessage.className=n["validation-message"],r.customClass&&r.customClass.validationMessage&&B(i.validationMessage,r.customClass.validationMessage),U(i.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedby",n["validation-message"]),F(o),B(o,n.inputerror))},resetValidationMessage:function(){const e=t.domCache.get(this);e.validationMessage&&Y(e.validationMessage);const i=this.getInput();i&&(i.removeAttribute("aria-invalid"),i.removeAttribute("aria-describedby"),j(i,n.inputerror))},getProgressSteps:function(){return t.domCache.get(this).progressSteps},update:function(e){const n=g(),i=t.innerParams.get(this);if(!n||R(n,i.hideClass.popup))return o("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const r=(t=>{const e={};return Object.keys(t).forEach(n=>{ee(n)?e[n]=t[n]:o("Invalid parameter to update: "+n)}),e})(e),l=Object.assign({},i,r);wt(this,l),t.innerParams.set(this,l),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){const e=t.domCache.get(this),n=t.innerParams.get(this);n?(e.popup&&Q.swalCloseEventFinishedCallback&&(Q.swalCloseEventFinishedCallback(),delete Q.swalCloseEventFinishedCallback),"function"==typeof n.didDestroy&&n.didDestroy(),(t=>{le(t),delete t.params,delete Q.keydownHandler,delete Q.keydownTarget,delete Q.currentInstance})(this)):le(this)}});const ce=t=>{let e=g();e||new Ke,e=g();const n=S();P()?Y(m()):ue(e,t),U(n),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},ue=(t,e)=>{const i=M(),r=S();!e&&G(x())&&(e=x()),U(i),e&&(Y(e),r.setAttribute("data-button-to-replace",e.className)),r.parentNode.insertBefore(r,e),B([t,i],n.loading)},de=(t,e)=>{const n=g(),i=t=>{pe[e.input](n,fe(t),e)};c(e.inputOptions)||d(e.inputOptions)?(ce(x()),u(e.inputOptions).then(e=>{t.hideLoading(),i(e)})):"object"==typeof e.inputOptions?i(e.inputOptions):l("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof e.inputOptions)},he=(t,e)=>{const n=t.getInput();Y(n),u(e.inputValue).then(i=>{n.value="number"===e.input?""+(parseFloat(i)||0):""+i,U(n),n.focus(),t.hideLoading()}).catch(e=>{l("Error in inputValue promise: "+e),n.value="",U(n),n.focus(),t.hideLoading()})},pe={select:(t,e,i)=>{const r=V(t,n.select),o=(t,e,n)=>{const r=document.createElement("option");r.value=n,I(r,e),r.selected=ge(n,i.inputValue),t.appendChild(r)};e.forEach(t=>{const e=t[0],n=t[1];if(Array.isArray(n)){const t=document.createElement("optgroup");t.label=e,t.disabled=!1,r.appendChild(t),n.forEach(e=>o(t,e[1],e[0]))}else o(r,n,e)}),r.focus()},radio:(t,e,i)=>{const r=V(t,n.radio);e.forEach(t=>{const e=t[0],o=t[1],l=document.createElement("input"),s=document.createElement("label");l.type="radio",l.name=n.radio,l.value=e,ge(e,i.inputValue)&&(l.checked=!0);const a=document.createElement("span");I(a,o),a.className=n.label,s.appendChild(l),s.appendChild(a),r.appendChild(s)});const o=r.querySelectorAll("input");o.length&&o[0].focus()}},fe=t=>{const e=[];return"undefined"!=typeof Map&&t instanceof Map?t.forEach((t,n)=>{let i=t;"object"==typeof i&&(i=fe(i)),e.push([n,i])}):Object.keys(t).forEach(n=>{let i=t[n];"object"==typeof i&&(i=fe(i)),e.push([n,i])}),e},ge=(t,e)=>e&&e.toString()===t.toString(),me=(e,n)=>{const i=t.innerParams.get(e);if(!i.input)return void l('The "input" parameter is needed to be set when using returnInputValueOn'+r(n));const o=((t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return(t=>t.checked?1:0)(n);case"radio":return(t=>t.checked?t.value:null)(n);case"file":return(t=>t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null)(n);default:return e.inputAutoTrim?n.value.trim():n.value}})(e,i);i.inputValidator?ve(e,o,n):e.getInput().checkValidity()?"deny"===n?ye(e,o):we(e,o):(e.enableButtons(),e.showValidationMessage(i.validationMessage))},ve=(e,n,i)=>{const r=t.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>u(r.inputValidator(n,r.validationMessage))).then(t=>{e.enableButtons(),e.enableInput(),t?e.showValidationMessage(t):"deny"===i?ye(e,n):we(e,n)})},ye=(e,n)=>{const i=t.innerParams.get(e||void 0);i.showLoaderOnDeny&&ce(E()),i.preDeny?(t.awaitingPromise.set(e||void 0,!0),Promise.resolve().then(()=>u(i.preDeny(n,i.validationMessage))).then(t=>{!1===t?(e.hideLoading(),Wt(e)):e.close({isDenied:!0,value:void 0===t?n:t})}).catch(t=>_e(e||void 0,t))):e.close({isDenied:!0,value:n})},be=(t,e)=>{t.close({isConfirmed:!0,value:e})},_e=(t,e)=>{t.rejectPromise(e)},we=(e,n)=>{const i=t.innerParams.get(e||void 0);i.showLoaderOnConfirm&&ce(),i.preConfirm?(e.resetValidationMessage(),t.awaitingPromise.set(e||void 0,!0),Promise.resolve().then(()=>u(i.preConfirm(n,i.validationMessage))).then(t=>{G(w())||!1===t?(e.hideLoading(),Wt(e)):be(e,void 0===t?n:t)}).catch(t=>_e(e||void 0,t))):be(e,n)},xe=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let Ee=!1;const Se=t=>t instanceof Element||(t=>"object"==typeof t&&t.jquery)(t),Ce=()=>{if(Q.timeout)return(()=>{const t=D(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=e/parseInt(window.getComputedStyle(t).width)*100;t.style.removeProperty("transition"),t.style.width=n+"%"})(),Q.timeout.stop()},Me=()=>{if(Q.timeout){const t=Q.timeout.start();return X(t),t}};let ke=!1;const De={},Te=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const t in De){const n=e.getAttribute(t);if(n)return void De[t].fire({template:n})}};var Le=Object.freeze({__proto__:null,isValidParameter:te,isUpdatableParameter:ee,isDeprecatedParameter:ne,argsToParams:t=>{const e={};return"object"!=typeof t[0]||Se(t[0])?["title","html","icon"].forEach((n,i)=>{const r=t[i];"string"==typeof r||Se(r)?e[n]=r:void 0!==r&&l(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`)}):Object.assign(e,t[0]),e},getContainer:h,getPopup:g,getTitle:v,getHtmlContainer:y,getImage:b,getIcon:m,getIconContent:()=>f(n["icon-content"]),getInputLabel:()=>f(n["input-label"]),getCloseButton:T,getActions:M,getConfirmButton:x,getDenyButton:E,getCancelButton:C,getLoader:S,getFooter:k,getTimerProgressBar:D,getFocusableElements:L,getValidationMessage:w,isLoading:()=>g().hasAttribute("data-loading"),isVisible:()=>G(g()),clickConfirm:St,clickDeny:()=>E()&&E().click(),clickCancel:()=>C()&&C().click(),fire:function(){const t=this;for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return new t(...n)},mixin:function(t){return class extends(this){_main(e,n){return super._main(e,Object.assign({},t,n))}}},showLoading:ce,enableLoading:ce,getTimerLeft:()=>Q.timeout&&Q.timeout.getTimerLeft(),stopTimer:Ce,resumeTimer:Me,toggleTimer:()=>{const t=Q.timeout;return t&&(t.running?Ce():Me())},increaseTimer:t=>{if(Q.timeout){const e=Q.timeout.increase(t);return X(e,!0),e}},isTimerRunning:()=>Q.timeout&&Q.timeout.isRunning(),bindClickHandler:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template";De[t]=this,ke||(document.body.addEventListener("click",Te),ke=!0)}});class Ae{constructor(t,e){this.callback=t,this.remaining=e,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(t){const e=this.running;return e&&this.stop(),this.remaining+=t,e&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Pe=["swal-title","swal-html","swal-footer"],Oe=(t,e)=>{Array.from(t.attributes).forEach(n=>{-1===e.indexOf(n.name)&&o([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,e.length?"Allowed attributes are: "+e.join(", "):"To set the value, use HTML within the element."])})},Ie=t=>{const e=h(),i=g();"function"==typeof t.willOpen&&t.willOpen(i);const r=window.getComputedStyle(document.body).overflowY;Fe(e,i,t),setTimeout(()=>{Ne(e,i)},10),A()&&(ze(e,t.scrollbarPadding,r),Array.from(document.body.children).forEach(t=>{t===h()||t.contains(h())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))})),P()||Q.previousActiveElement||(Q.previousActiveElement=document.activeElement),"function"==typeof t.didOpen&&setTimeout(()=>t.didOpen(i)),j(e,n["no-transition"])},Re=t=>{const e=g();if(t.target!==e)return;const n=h();e.removeEventListener(ot,Re),n.style.overflowY="auto"},Ne=(t,e)=>{ot&&K(e)?(t.style.overflowY="hidden",e.addEventListener(ot,Re)):t.style.overflowY="auto"},ze=(t,e,i)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!R(document.body,n.iosfix)){const t=document.body.scrollTop;document.body.style.top=-1*t+"px",B(document.body,n.iosfix),(()=>{const t=h();let e;t.ontouchstart=t=>{e=zt(t)},t.ontouchmove=t=>{e&&(t.preventDefault(),t.stopPropagation())}})(),(()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);if(e&&n&&!t.match(/CriOS/i)){const t=44;g().scrollHeight>window.innerHeight-t&&(h().style.paddingBottom=t+"px")}})()}})(),e&&"hidden"!==i&&(null===O.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(O.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=O.previousBodyPadding+(()=>{const t=document.createElement("div");t.className=n["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e})()+"px")),setTimeout(()=>{t.scrollTop=0})},Fe=(t,e,i)=>{B(t,i.showClass.backdrop),e.style.setProperty("opacity","0","important"),U(e,"grid"),setTimeout(()=>{B(e,i.showClass.popup),e.style.removeProperty("opacity")},10),B([document.documentElement,document.body],n.shown),i.heightAuto&&i.backdrop&&!i.toast&&B([document.documentElement,document.body],n["height-auto"])};var He={email:(t,e)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function Be(t){!function(t){t.inputValidator||Object.keys(He).forEach(e=>{t.input===e&&(t.inputValidator=He[e])})}(t),t.showLoaderOnConfirm&&!t.preConfirm&&o("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(t){(!t.target||"string"==typeof t.target&&!document.querySelector(t.target)||"string"!=typeof t.target&&!t.target.appendChild)&&(o('Target parameter is not valid, defaulting to "body"'),t.target="body")}(t),"string"==typeof t.title&&(t.title=t.title.split("\n").join("<br />")),(t=>{const e=(()=>{const t=h();return!!t&&(t.remove(),j([document.documentElement,document.body],[n["no-backdrop"],n["toast-shown"],n["has-column"]]),!0)})();if(J())return void l("SweetAlert2 requires document to initialize");const i=document.createElement("div");i.className=n.container,e&&B(i,n["no-transition"]),I(i,tt);const r="string"==typeof(o=t.target)?document.querySelector(o):o;var o;r.appendChild(i),(t=>{const e=g();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")})(t),(t=>{"rtl"===window.getComputedStyle(t).direction&&B(h(),n.rtl)})(r),(()=>{const t=g(),e=V(t,n.input),i=V(t,n.file),r=t.querySelector(`.${n.range} input`),o=t.querySelector(`.${n.range} output`),l=V(t,n.select),s=t.querySelector(`.${n.checkbox} input`),a=V(t,n.textarea);e.oninput=et,i.onchange=et,l.onchange=et,s.onchange=et,a.oninput=et,r.oninput=()=>{et(),o.value=r.value},r.onchange=()=>{et(),o.value=r.value}})()})(t)}let je;class Ve{constructor(){if("undefined"==typeof window)return;je=this;for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];const r=Object.freeze(this.constructor.argsToParams(n));Object.defineProperties(this,{params:{value:r,writable:!1,enumerable:!0,configurable:!0}});const o=je._main(je.params);t.promise.set(this,o)}_main(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(t=>{!1===t.backdrop&&t.allowOutsideClick&&o('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)ie(e),t.toast&&re(e),oe(e)})(Object.assign({},n,e)),Q.currentInstance&&(Q.currentInstance._destroy(),A()&&Nt()),Q.currentInstance=je;const i=Ue(e,n);Be(i),Object.freeze(i),Q.timeout&&(Q.timeout.stop(),delete Q.timeout),clearTimeout(Q.restoreFocusTimeout);const r=Ye(je);return wt(je,i),t.innerParams.set(je,i),We(je,r,i)}then(e){return t.promise.get(this).then(e)}finally(e){return t.promise.get(this).finally(e)}}const We=(e,n,i)=>new Promise((r,o)=>{const l=t=>{e.close({isDismissed:!0,dismiss:t})};Rt.swalPromiseResolve.set(e,r),Rt.swalPromiseReject.set(e,o),n.confirmButton.onclick=()=>{(e=>{const n=t.innerParams.get(e);e.disableButtons(),n.input?me(e,"confirm"):we(e,!0)})(e)},n.denyButton.onclick=()=>{(e=>{const n=t.innerParams.get(e);e.disableButtons(),n.returnInputValueOnDeny?me(e,"deny"):ye(e,!1)})(e)},n.cancelButton.onclick=()=>{((t,e)=>{t.disableButtons(),e(Ct.cancel)})(e,l)},n.closeButton.onclick=()=>{l(Ct.close)},((e,n,i)=>{t.innerParams.get(e).toast?((e,n,i)=>{n.popup.onclick=()=>{const n=t.innerParams.get(e);n&&(xe(n)||n.timer||n.input)||i(Ct.close)}})(e,n,i):((t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Ee=!0)}}})(n),(t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Ee=!0)}}})(n),((e,n,i)=>{n.container.onclick=r=>{const o=t.innerParams.get(e);Ee?Ee=!1:r.target===n.container&&a(o.allowOutsideClick)&&i(Ct.backdrop)}})(e,n,i))})(e,n,l),((t,e,n,i)=>{Mt(e),n.toast||(e.keydownHandler=e=>Lt(t,e,i),e.keydownTarget=n.keydownListenerCapture?window:g(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)})(e,Q,i,l),((t,e)=>{"select"===e.input||"radio"===e.input?de(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(c(e.inputValue)||d(e.inputValue))&&(ce(x()),he(t,e))})(e,i),Ie(i),$e(Q,i,l),qe(n,i),setTimeout(()=>{n.container.scrollTop=0})}),Ue=(t,e)=>{const n=(t=>{const e="string"==typeof t.template?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return(t=>{const e=Pe.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(t.children).forEach(t=>{const n=t.tagName.toLowerCase();e.includes(n)||o(`Unrecognized element <${n}>`)})})(n),Object.assign((t=>{const e={};return Array.from(t.querySelectorAll("swal-param")).forEach(t=>{Oe(t,["name","value"]);const n=t.getAttribute("name"),i=t.getAttribute("value");e[n]="boolean"==typeof Kt[n]?"false"!==i:"object"==typeof Kt[n]?JSON.parse(i):i}),e})(n),(t=>{const e={};return Array.from(t.querySelectorAll("swal-function-param")).forEach(t=>{const n=t.getAttribute("name"),i=t.getAttribute("value");e[n]=new Function("return "+i)()}),e})(n),(t=>{const e={};return Array.from(t.querySelectorAll("swal-button")).forEach(t=>{Oe(t,["type","color","aria-label"]);const n=t.getAttribute("type");e[n+"ButtonText"]=t.innerHTML,e[`show${r(n)}Button`]=!0,t.hasAttribute("color")&&(e[n+"ButtonColor"]=t.getAttribute("color")),t.hasAttribute("aria-label")&&(e[n+"ButtonAriaLabel"]=t.getAttribute("aria-label"))}),e})(n),(t=>{const e={},n=t.querySelector("swal-image");return n&&(Oe(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt"))),e})(n),(t=>{const e={},n=t.querySelector("swal-icon");return n&&(Oe(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e})(n),(t=>{const e={},n=t.querySelector("swal-input");n&&(Oe(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));const i=Array.from(t.querySelectorAll("swal-input-option"));return i.length&&(e.inputOptions={},i.forEach(t=>{Oe(t,["value"]);const n=t.getAttribute("value"),i=t.innerHTML;e.inputOptions[n]=i})),e})(n),((t,e)=>{const n={};for(const i in e){const r=e[i],o=t.querySelector(r);o&&(Oe(o,[]),n[r.replace(/^swal-/,"")]=o.innerHTML.trim())}return n})(n,Pe))})(t),i=Object.assign({},Kt,e,n,t);return i.showClass=Object.assign({},Kt.showClass,i.showClass),i.hideClass=Object.assign({},Kt.hideClass,i.hideClass),i},Ye=e=>{const n={popup:g(),container:h(),actions:M(),confirmButton:x(),denyButton:E(),cancelButton:C(),loader:S(),closeButton:T(),validationMessage:w(),progressSteps:_()};return t.domCache.set(e,n),n},$e=(t,e,n)=>{const i=D();Y(i),e.timer&&(t.timeout=new Ae(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(U(i),N(i,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&X(e.timer)})))},qe=(t,e)=>{e.toast||(a(e.allowEnterKey)?Ge(t,e)||kt(0,-1,1):Ze())},Ge=(t,e)=>e.focusDeny&&G(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&G(t.cancelButton)?(t.cancelButton.focus(),!0):!(!e.focusConfirm||!G(t.confirmButton)||(t.confirmButton.focus(),0)),Ze=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};"undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)&&setTimeout(()=>{document.body.style.pointerEvents="none";const t=document.createElement("audio");t.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",t.loop=!0,document.body.appendChild(t),setTimeout(()=>{t.play().catch(()=>{})},2500)},500),Object.assign(Ve.prototype,ae),Object.assign(Ve,Le),Object.keys(ae).forEach(t=>{Ve[t]=function(){if(je)return je[t](...arguments)}}),Ve.DismissReason=Ct,Ve.version="11.6.11";const Ke=Ve;return Ke.default=Ke,Ke})),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).simpleDatatables=t()}}((function(){return function t(e,n,i){function r(l,s){if(!n[l]){if(!e[l]){var a="function"==typeof require&&require;if(!s&&a)return a(l,!0);if(o)return o(l,!0);var c=new Error("Cannot find module '"+l+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[l]={exports:{}};e[l][0].call(u.exports,(function(t){return r(e[l][1][t]||t)}),u,u.exports,t,e,n,i)}return n[l].exports}for(var o="function"==typeof require&&require,l=0;l<i.length;l++)r(i[l]);return r}({1:[function(t,e,n){(function(t){(function(){"use strict";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t||"undefined"!=typeof self&&self;var e={exports:{}}.exports=function(){var t=6e4,e=36e5,n="millisecond",i="second",r="minute",o="hour",l="day",s="week",a="month",c="quarter",u="year",d="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),r=n%60;return(e<=0?"+":"-")+m(i,2,"0")+":"+m(r,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var i=12*(n.year()-e.year())+(n.month()-e.month()),r=e.clone().add(i,a),o=n-r<0,l=e.clone().add(i+(o?-1:1),a);return+(-(i+(n-r)/(o?r-l:l-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:a,y:u,w:s,d:l,D:d,h:o,m:r,s:i,ms:n,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",b={};b[y]=g;var _=function(t){return t instanceof S},w=function t(e,n,i){var r;if(!e)return y;if("string"==typeof e){var o=e.toLowerCase();b[o]&&(r=o),n&&(b[o]=n,r=o);var l=e.split("-");if(!r&&l.length>1)return t(l[0])}else{var s=e.name;b[s]=e,r=s}return!i&&r&&(y=r),r||!i&&y},x=function(t,e){if(_(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},E=v;E.l=w,E.i=_,E.w=function(t,e){return x(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function g(t){this.$L=w(t.locale,null,!0),this.parse(t)}var m=g.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(E.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(p);if(i){var r=i[2]-1||0,o=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return E},m.isValid=function(){return!(this.$d.toString()===h)},m.isSame=function(t,e){var n=x(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return x(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<x(t)},m.$g=function(t,e,n){return E.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,c=!!E.u(e)||e,h=E.p(t),p=function(t,e){var i=E.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return c?i:i.endOf(l)},f=function(t,e){return E.w(n.toDate()[t].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},g=this.$W,m=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(h){case u:return c?p(1,0):p(31,11);case a:return c?p(1,m):p(0,m+1);case s:var b=this.$locale().weekStart||0,_=(g<b?g+7:g)-b;return p(c?v-_:v+(6-_),m);case l:case d:return f(y+"Hours",0);case o:return f(y+"Minutes",1);case r:return f(y+"Seconds",2);case i:return f(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var s,c=E.p(t),h="set"+(this.$u?"UTC":""),p=(s={},s[l]=h+"Date",s[d]=h+"Date",s[a]=h+"Month",s[u]=h+"FullYear",s[o]=h+"Hours",s[r]=h+"Minutes",s[i]=h+"Seconds",s[n]=h+"Milliseconds",s)[c],f=c===l?this.$D+(e-this.$W):e;if(c===a||c===u){var g=this.clone().set(d,1);g.$d[p](f),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[E.p(t)]()},m.add=function(n,c){var d,h=this;n=Number(n);var p=E.p(c),f=function(t){var e=x(h);return E.w(e.date(e.date()+Math.round(t*n)),h)};if(p===a)return this.set(a,this.$M+n);if(p===u)return this.set(u,this.$y+n);if(p===l)return f(1);if(p===s)return f(7);var g=(d={},d[r]=t,d[o]=e,d[i]=1e3,d)[p]||1,m=this.$d.getTime()+n*g;return E.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var i=t||"YYYY-MM-DDTHH:mm:ssZ",r=E.z(this),o=this.$H,l=this.$m,s=this.$M,a=n.weekdays,c=n.months,u=function(t,n,r,o){return t&&(t[n]||t(e,i))||r[n].slice(0,o)},d=function(t){return E.s(o%12||12,t,"0")},p=n.meridiem||function(t,e,n){var i=t<12?"AM":"PM";return n?i.toLowerCase():i},g={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:E.s(s+1,2,"0"),MMM:u(n.monthsShort,s,c,3),MMMM:u(c,s),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:u(n.weekdaysMin,this.$W,a,2),ddd:u(n.weekdaysShort,this.$W,a,3),dddd:a[this.$W],H:String(o),HH:E.s(o,2,"0"),h:d(1),hh:d(2),a:p(o,l,!0),A:p(o,l,!1),m:String(l),mm:E.s(l,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:r};return i.replace(f,(function(t,e){return e||g[t]||r.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,d,h){var p,f=E.p(d),g=x(n),m=(g.utcOffset()-this.utcOffset())*t,v=this-g,y=E.m(this,g);return y=(p={},p[u]=y/12,p[a]=y,p[c]=y/3,p[s]=(v-m)/6048e5,p[l]=(v-m)/864e5,p[o]=v/e,p[r]=v/t,p[i]=v/1e3,p)[f]||v,h?y:E.a(y)},m.daysInMonth=function(){return this.endOf(a).$D},m.$locale=function(){return b[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),i=w(t,e,!0);return i&&(n.$L=i),n},m.clone=function(){return E.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},g}(),C=S.prototype;return x.prototype=C,[["$ms",n],["$s",i],["$m",r],["$H",o],["$W",l],["$M",a],["$y",u],["$D",d]].forEach((function(t){C[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),x.extend=function(t,e){return t.$i||(t(e,S,x),t.$i=!0),x},x.locale=w,x.isDayjs=_,x.unix=function(t){return x(1e3*t)},x.en=b[y],x.Ls=b,x.p={},x}(),i={exports:{}}.exports=function(){var t={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"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,i=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,o={},l=function(t){return(t=+t)+(t>68?1900:2e3)},s=function(t){return function(e){this[t]=+e}},a=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],c=function(t){var e=o[t];return e&&(e.indexOf?e:e.s.concat(e.f))},u=function(t,e){var n,i=o.meridiem;if(i){for(var r=1;r<=24;r+=1)if(t.indexOf(i(r,0,e))>-1){n=r>12;break}}else n=t===(e?"pm":"PM");return n},d={A:[r,function(t){this.afternoon=u(t,!1)}],a:[r,function(t){this.afternoon=u(t,!0)}],S:[/\d/,function(t){this.milliseconds=100*+t}],SS:[n,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[i,s("seconds")],ss:[i,s("seconds")],m:[i,s("minutes")],mm:[i,s("minutes")],H:[i,s("hours")],h:[i,s("hours")],HH:[i,s("hours")],hh:[i,s("hours")],D:[i,s("day")],DD:[n,s("day")],Do:[r,function(t){var e=o.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var i=1;i<=31;i+=1)e(i).replace(/\[|\]/g,"")===t&&(this.day=i)}],M:[i,s("month")],MM:[n,s("month")],MMM:[r,function(t){var e=c("months"),n=(c("monthsShort")||e.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[r,function(t){var e=c("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(t){this.year=l(t)}],YYYY:[/\d{4}/,s("year")],Z:a,ZZ:a};function h(n){var i,r;i=n,r=o&&o.formats;for(var l=(n=i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,i){var o=i&&i.toUpperCase();return n||r[i]||t[i]||r[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),s=l.length,a=0;a<s;a+=1){var c=l[a],u=d[c],h=u&&u[0],p=u&&u[1];l[a]=p?{regex:h,parser:p}:c.replace(/^\[|\]$/g,"")}return function(t){for(var e={},n=0,i=0;n<s;n+=1){var r=l[n];if("string"==typeof r)i+=r.length;else{var o=r.regex,a=r.parser,c=t.slice(i),u=o.exec(c)[0];a.call(e,u),t=t.replace(u,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon}}(e),e}}return function(t,e,n){n.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(l=t.parseTwoDigitYear);var i=e.prototype,r=i.parse;i.parse=function(t){var e=t.date,i=t.utc,l=t.args;this.$u=i;var s=l[1];if("string"==typeof s){var a=!0===l[2],c=!0===l[3],u=a||c,d=l[2];c&&(d=l[2]),o=this.$locale(),!a&&d&&(o=n.Ls[d]),this.$d=function(t,e,n){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var i=h(e)(t),r=i.year,o=i.month,l=i.day,s=i.hours,a=i.minutes,c=i.seconds,u=i.milliseconds,d=i.zone,p=new Date,f=l||(r||o?1:p.getDate()),g=r||p.getFullYear(),m=0;r&&!o||(m=o>0?o-1:p.getMonth());var v=s||0,y=a||0,b=c||0,_=u||0;return d?new Date(Date.UTC(g,m,f,v,y,b,_+60*d.offset*1e3)):n?new Date(Date.UTC(g,m,f,v,y,b,_)):new Date(g,m,f,v,y,b,_)}catch(t){return new Date("")}}(e,s,i),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&e!=this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var p=s.length,f=1;f<=p;f+=1){l[1]=s[f-1];var g=n.apply(this,l);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}f===p&&(this.$d=new Date(""))}else r.call(this,t)}}}();e.extend(i),n.parseDate=(t,n)=>{let i=!1;if(n)switch(n){case"ISO_8601":i=t;break;case"RFC_2822":i=e(t.slice(5),"DD MMM YYYY HH:mm:ss ZZ").unix();break;case"MYSQL":i=e(t,"YYYY-MM-DD hh:mm:ss").unix();break;case"UNIX":i=e(t).unix();break;default:i=e(t,n,!0).valueOf()}return i}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});const i=t=>"[object Object]"===Object.prototype.toString.call(t),r=(t,e)=>{const n=document.createElement(t);if(e&&"object"==typeof e)for(const t in e)"html"===t?n.innerHTML=e[t]:n.setAttribute(t,e[t]);return n},o=t=>{t instanceof NodeList?t.forEach(t=>o(t)):t.innerHTML=""},l=(t,e,n)=>r("li",{class:t,html:`<a href="#" data-page="${e}">${n}</a>`}),s=(t,e)=>{let n,i;1===e?(n=0,i=t.length):-1===e&&(n=t.length-1,i=-1);for(let r=!0;r;){r=!1;for(let o=n;o!=i;o+=e)if(t[o+e]&&t[o].value>t[o+e].value){const n=t[o],i=t[o+e],l=n;t[o]=i,t[o+e]=l,r=!0}}return t};class a{constructor(t,e){return this.dt=t,this.rows=e,this}build(t){const e=r("tr");let n=this.dt.headings;return n.length||(n=t.map(()=>"")),n.forEach((n,i)=>{const o=r("td");t[i]&&t[i].length||(t[i]=""),o.innerHTML=t[i],o.data=t[i],e.appendChild(o)}),e}render(t){return t}add(t){if(Array.isArray(t)){const e=this.dt;Array.isArray(t[0])?t.forEach(t=>{e.data.push(this.build(t))}):e.data.push(this.build(t)),e.data.length&&(e.hasRows=!0),this.update(),e.columns().rebuild()}}remove(t){const e=this.dt;Array.isArray(t)?(t.sort((t,e)=>e-t),t.forEach(t=>{e.data.splice(t,1)})):"all"==t?e.data=[]:e.data.splice(t,1),e.data.length||(e.hasRows=!1),this.update(),e.columns().rebuild()}update(){this.dt.data.forEach((t,e)=>{t.dataIndex=e})}findRowIndex(t,e){return this.dt.data.findIndex(n=>n.children[t].innerText.toLowerCase().includes(String(e).toLowerCase()))}findRow(t,e){const n=this.findRowIndex(t,e);if(n<0)return{index:-1,row:null,cols:[]};const i=this.dt.data[n];return{index:n,row:i,cols:[...i.cells].map(t=>t.innerHTML)}}updateRow(t,e){const n=this.build(e);this.dt.data.splice(t,1,n),this.update(),this.dt.columns().rebuild()}}class c{constructor(t){return this.dt=t,this}swap(t){if(t.length&&2===t.length){const e=[];this.dt.headings.forEach((t,n)=>{e.push(n)});const n=t[0],i=t[1],r=e[i];e[i]=e[n],e[n]=r,this.order(e)}}order(t){let e,n,i,r,o,l,s;const a=[[],[],[],[]],c=this.dt;t.forEach((t,i)=>{o=c.headings[t],l="false"!==o.getAttribute("data-sortable"),e=o.cloneNode(!0),e.originalCellIndex=i,e.sortable=l,a[0].push(e),c.hiddenColumns.includes(t)||(n=o.cloneNode(!0),n.originalCellIndex=i,n.sortable=l,a[1].push(n))}),c.data.forEach((e,n)=>{i=e.cloneNode(!1),r=e.cloneNode(!1),i.dataIndex=r.dataIndex=n,null!==e.searchIndex&&void 0!==e.searchIndex&&(i.searchIndex=r.searchIndex=e.searchIndex),t.forEach(t=>{s=e.cells[t].cloneNode(!0),s.data=e.cells[t].data,i.appendChild(s),c.hiddenColumns.includes(t)||(s=e.cells[t].cloneNode(!0),s.data=e.cells[t].data,r.appendChild(s))}),a[2].push(i),a[3].push(r)}),c.headings=a[0],c.activeHeadings=a[1],c.data=a[2],c.activeRows=a[3],c.update()}hide(t){if(t.length){const e=this.dt;t.forEach(t=>{e.hiddenColumns.includes(t)||e.hiddenColumns.push(t)}),this.rebuild()}}show(t){if(t.length){let e;const n=this.dt;t.forEach(t=>{e=n.hiddenColumns.indexOf(t),e>-1&&n.hiddenColumns.splice(e,1)}),this.rebuild()}}visible(t){let e;const n=this.dt;return t=t||n.headings.map(t=>t.originalCellIndex),isNaN(t)?Array.isArray(t)&&(e=[],t.forEach(t=>{e.push(!n.hiddenColumns.includes(t))})):e=!n.hiddenColumns.includes(t),e}add(t){let e;const n=document.createElement("th");if(!this.dt.headings.length)return this.dt.insert({headings:[t.heading],data:t.data.map(t=>[t])}),void this.rebuild();this.dt.hiddenHeader?n.innerHTML="":t.heading.nodeName?n.appendChild(t.heading):n.innerHTML=t.heading,this.dt.headings.push(n),this.dt.data.forEach((n,i)=>{t.data[i]&&(e=document.createElement("td"),t.data[i].nodeName?e.appendChild(t.data[i]):e.innerHTML=t.data[i],e.data=e.innerHTML,t.render&&(e.innerHTML=t.render.call(this,e.data,e,n)),n.appendChild(e))}),t.type&&n.setAttribute("data-type",t.type),t.format&&n.setAttribute("data-format",t.format),t.hasOwnProperty("sortable")&&(n.sortable=t.sortable,n.setAttribute("data-sortable",!0===t.sortable?"true":"false")),this.rebuild(),this.dt.renderHeader()}remove(t){Array.isArray(t)?(t.sort((t,e)=>e-t),t.forEach(t=>this.remove(t))):(this.dt.headings.splice(t,1),this.dt.data.forEach(e=>{e.removeChild(e.cells[t])})),this.rebuild()}filter(t,e,n,i){const r=this.dt;if(r.filterState||(r.filterState={originalData:r.data}),!r.filterState[t]){const e=[...i,()=>!0];r.filterState[t]=function(){let t=0;return()=>e[t++%e.length]}()}const o=r.filterState[t](),l=Array.from(r.filterState.originalData).filter(e=>{const n=e.cells[t],i=n.hasAttribute("data-content")?n.getAttribute("data-content"):n.innerText;return"function"==typeof o?o(i):i===o});r.data=l,r.data.length?(this.rebuild(),r.update()):(r.clear(),r.hasRows=!1,r.setMessage(r.options.labels.noRows)),n||r.emit("datatable.sort",t,e)}sort(e,n,i){const r=this.dt;if(r.hasHeadings&&(e<0||e>r.headings.length))return!1;const o=r.options.filters&&r.options.filters[r.headings[e].textContent];if(o&&0!==o.length)return void this.filter(e,n,i,o);r.sorting=!0,i||r.emit("datatable.sorting",e,n);let l=r.data;const a=[],c=[];let u=0,d=0;const h=r.headings[e],p=[];if("date"===h.getAttribute("data-type")){let e=!1;h.hasAttribute("data-format")&&(e=h.getAttribute("data-format")),p.push(Promise.resolve().then((function(){return t("./date-7061ceee.js")})).then(({parseDate:t})=>n=>t(n,e)))}Promise.all(p).then(t=>{const o=t[0];let p,f;Array.from(l).forEach(t=>{const n=t.cells[e],i=n.hasAttribute("data-content")?n.getAttribute("data-content"):n.innerText;let r;r=o?o(i):"string"==typeof i?i.replace(/(\$|,|\s|%)/g,""):i,parseFloat(r)==r?c[d++]={value:Number(r),row:t}:a[u++]={value:"string"==typeof i?i.toLowerCase():i,row:t}}),n||(n=h.classList.contains("asc")?"desc":"asc"),"desc"==n?(p=s(a,-1),f=s(c,-1),h.classList.remove("asc"),h.classList.add("desc")):(p=s(c,1),f=s(a,1),h.classList.remove("desc"),h.classList.add("asc")),r.lastTh&&h!=r.lastTh&&(r.lastTh.classList.remove("desc"),r.lastTh.classList.remove("asc")),r.lastTh=h,l=p.concat(f),r.data=[];const g=[];l.forEach((t,e)=>{r.data.push(t.row),null!==t.row.searchIndex&&void 0!==t.row.searchIndex&&g.push(e)}),r.searchData=g,this.rebuild(),r.update(),i||r.emit("datatable.sort",e,n)})}rebuild(){let t,e,n,i;const r=this.dt,o=[];r.activeRows=[],r.activeHeadings=[],r.headings.forEach((t,e)=>{t.originalCellIndex=e,t.sortable="false"!==t.getAttribute("data-sortable"),r.hiddenColumns.includes(e)||r.activeHeadings.push(t)}),r.data.forEach((l,s)=>{t=l.cloneNode(!1),e=l.cloneNode(!1),t.dataIndex=e.dataIndex=s,null!==l.searchIndex&&void 0!==l.searchIndex&&(t.searchIndex=e.searchIndex=l.searchIndex),Array.from(l.cells).forEach(o=>{n=o.cloneNode(!0),n.data=o.data,t.appendChild(n),r.hiddenColumns.includes(n.cellIndex)||(i=n.cloneNode(!0),i.data=n.data,e.appendChild(i))}),o.push(t),r.activeRows.push(e)}),r.data=o,r.update()}}const u=function(t){let e=!1,n=!1;if((t=t||this.options.data).headings){e=r("thead");const n=r("tr");t.headings.forEach(t=>{const e=r("th",{html:t});n.appendChild(e)}),e.appendChild(n)}t.data&&t.data.length&&(n=r("tbody"),t.data.forEach(e=>{if(t.headings&&t.headings.length!==e.length)throw new Error("The number of rows do not match the number of headings.");const i=r("tr");e.forEach(t=>{const e=r("td",{html:t});i.appendChild(e)}),n.appendChild(i)})),e&&(null!==this.dom.tHead&&this.dom.removeChild(this.dom.tHead),this.dom.appendChild(e)),n&&(this.dom.tBodies.length&&this.dom.removeChild(this.dom.tBodies[0]),this.dom.appendChild(n))},d={sortable:!0,searchable:!0,paging:!0,perPage:10,perPageSelect:[5,10,15,20,25],nextPrev:!0,firstLast:!1,prevText:"&lsaquo;",nextText:"&rsaquo;",firstText:"&laquo;",lastText:"&raquo;",ellipsisText:"&hellip;",ascText:"▴",descText:"▾",truncatePager:!0,pagerDelta:2,scrollY:"",fixedColumns:!0,fixedHeight:!1,header:!0,hiddenHeader:!1,footer:!1,labels:{placeholder:"Search...",perPage:"{select} entries per page",noRows:"No entries found",noResults:"No results match your search query",info:"Showing {start} to {end} of {rows} entries"},layout:{top:"{select}{search}",bottom:"{info}{pager}"}};class h{constructor(t,e={}){const n="string"==typeof t?document.querySelector(t):t;if(this.options={...d,...e,layout:{...d.layout,...e.layout},labels:{...d.labels,...e.labels}},this.initialized=!1,this.initialLayout=n.innerHTML,this.initialSortable=this.options.sortable,this.options.header||(this.options.sortable=!1),null===n.tHead&&(!this.options.data||this.options.data&&!this.options.data.headings)&&(this.options.sortable=!1),n.tBodies.length&&!n.tBodies[0].rows.length&&this.options.data&&!this.options.data.data)throw new Error("You seem to be using the data option, but you've not defined any rows.");this.dom=n,this.table=this.dom,this.listeners={onResize:t=>this.onResize(t)},this.init()}static extend(t,e){"function"==typeof e?h.prototype[t]=e:h[t]=e}init(t){if(this.initialized||this.dom.classList.contains("dataTable-table"))return!1;Object.assign(this.options,t||{}),this.currentPage=1,this.onFirstPage=!0,this.hiddenColumns=[],this.columnRenderers=[],this.selectedColumns=[],this.render(),setTimeout(()=>{this.emit("datatable.init"),this.initialized=!0,this.options.plugins&&Object.entries(this.options.plugins).forEach(([t,e])=>{this[t]&&"function"==typeof this[t]&&(this[t]=this[t](e,{createElement:r}),e.enabled&&this[t].init&&"function"==typeof this[t].init&&this[t].init())})},10)}render(t){if(t){switch(t){case"page":this.renderPage();break;case"pager":this.renderPager();break;case"header":this.renderHeader()}return!1}const e=this.options;let n="";if(e.data&&u.call(this),this.body=this.dom.tBodies[0],this.head=this.dom.tHead,this.foot=this.dom.tFoot,this.body||(this.body=r("tbody"),this.dom.appendChild(this.body)),this.hasRows=this.body.rows.length>0,!this.head){const t=r("thead"),n=r("tr");this.hasRows&&(Array.from(this.body.rows[0].cells).forEach(()=>{n.appendChild(r("th"))}),t.appendChild(n)),this.head=t,this.dom.insertBefore(this.head,this.body),this.hiddenHeader=e.hiddenHeader}if(this.headings=[],this.hasHeadings=this.head.rows.length>0,this.hasHeadings&&(this.header=this.head.rows[0],this.headings=[].slice.call(this.header.cells)),e.header||this.head&&this.dom.removeChild(this.dom.tHead),e.footer?this.head&&!this.foot&&(this.foot=r("tfoot",{html:this.head.innerHTML}),this.dom.appendChild(this.foot)):this.foot&&this.dom.removeChild(this.dom.tFoot),this.wrapper=r("div",{class:"dataTable-wrapper dataTable-loading"}),n+="<div class='dataTable-top'>",n+=e.layout.top,n+="</div>",e.scrollY.length?n+=`<div class='dataTable-container' style='height: ${e.scrollY}; overflow-Y: auto;'></div>`:n+="<div class='dataTable-container'></div>",n+="<div class='dataTable-bottom'>",n+=e.layout.bottom,n+="</div>",n=n.replace("{info}",e.paging?"<div class='dataTable-info'></div>":""),e.paging&&e.perPageSelect){let t="<div class='dataTable-dropdown'><label>";t+=e.labels.perPage,t+="</label></div>";const i=r("select",{class:"dataTable-selector"});e.perPageSelect.forEach(t=>{const n=t===e.perPage,r=new Option(t,t,n,n);i.add(r)}),t=t.replace("{select}",i.outerHTML),n=n.replace("{select}",t)}else n=n.replace("{select}","");if(e.searchable){const t=`<div class='dataTable-search'><input class='dataTable-input' placeholder='${e.labels.placeholder}' type='text'></div>`;n=n.replace("{search}",t)}else n=n.replace("{search}","");this.hasHeadings&&this.render("header"),this.dom.classList.add("dataTable-table");const i=r("nav",{class:"dataTable-pagination"}),o=r("ul",{class:"dataTable-pagination-list"});i.appendChild(o),n=n.replace(/\{pager\}/g,i.outerHTML),this.wrapper.innerHTML=n,this.container=this.wrapper.querySelector(".dataTable-container"),this.pagers=this.wrapper.querySelectorAll(".dataTable-pagination-list"),this.label=this.wrapper.querySelector(".dataTable-info"),this.dom.parentNode.replaceChild(this.wrapper,this.dom),this.container.appendChild(this.dom),this.rect=this.dom.getBoundingClientRect(),this.data=Array.from(this.body.rows),this.activeRows=this.data.slice(),this.activeHeadings=this.headings.slice(),this.update(),this.setColumns(),this.fixHeight(),this.fixColumns(),e.header||this.wrapper.classList.add("no-header"),e.footer||this.wrapper.classList.add("no-footer"),e.sortable&&this.wrapper.classList.add("sortable"),e.searchable&&this.wrapper.classList.add("searchable"),e.fixedHeight&&this.wrapper.classList.add("fixed-height"),e.fixedColumns&&this.wrapper.classList.add("fixed-columns"),this.bindEvents()}renderPage(){if(this.hasHeadings&&(o(this.header),this.activeHeadings.forEach(t=>this.header.appendChild(t))),this.hasRows&&this.totalPages){this.currentPage>this.totalPages&&(this.currentPage=1);const t=this.currentPage-1,e=document.createDocumentFragment();this.pages[t].forEach(t=>e.appendChild(this.rows().render(t))),this.clear(e),this.onFirstPage=1===this.currentPage,this.onLastPage=this.currentPage===this.lastPage}else this.setMessage(this.options.labels.noRows);let t,e=0,n=0,i=0;if(this.totalPages&&(e=this.currentPage-1,n=e*this.options.perPage,i=n+this.pages[e].length,n+=1,t=this.searching?this.searchData.length:this.data.length),this.label&&this.options.labels.info.length){const e=this.options.labels.info.replace("{start}",n).replace("{end}",i).replace("{page}",this.currentPage).replace("{pages}",this.totalPages).replace("{rows}",t);this.label.innerHTML=t?e:""}1==this.currentPage&&this.fixHeight()}renderPager(){if(o(this.pagers),this.totalPages>1){const t="pager",e=document.createDocumentFragment(),n=this.onFirstPage?1:this.currentPage-1,i=this.onLastPage?this.totalPages:this.currentPage+1;this.options.firstLast&&e.appendChild(l(t,1,this.options.firstText)),this.options.nextPrev&&!this.onFirstPage&&e.appendChild(l(t,n,this.options.prevText));let o=this.links;this.options.truncatePager&&(o=((t,e,n,i,o)=>{let l;const s=2*(i=i||2);let a=e-i,c=e+i;const u=[],d=[];e<4-i+s?c=3+s:e>n-(3-i+s)&&(a=n-(2+s));for(let e=1;e<=n;e++)if(1==e||e==n||e>=a&&e<=c){const n=t[e-1];n.classList.remove("active"),u.push(n)}return u.forEach(e=>{const n=e.children[0].getAttribute("data-page");if(l){const e=l.children[0].getAttribute("data-page");if(n-e==2)d.push(t[e]);else if(n-e!=1){const t=r("li",{class:"ellipsis",html:`<a href="#">${o}</a>`});d.push(t)}}d.push(e),l=e}),d})(this.links,this.currentPage,this.pages.length,this.options.pagerDelta,this.options.ellipsisText)),this.links[this.currentPage-1].classList.add("active"),o.forEach(t=>{t.classList.remove("active"),e.appendChild(t)}),this.links[this.currentPage-1].classList.add("active"),this.options.nextPrev&&!this.onLastPage&&e.appendChild(l(t,i,this.options.nextText)),this.options.firstLast&&e.appendChild(l(t,this.totalPages,this.options.lastText)),this.pagers.forEach(t=>{t.appendChild(e.cloneNode(!0))})}}renderHeader(){this.labels=[],this.headings&&this.headings.length&&this.headings.forEach((t,e)=>{if(this.labels[e]=t.textContent,t.firstElementChild&&t.firstElementChild.classList.contains("dataTable-sorter")&&(t.innerHTML=t.firstElementChild.innerHTML),t.sortable="false"!==t.getAttribute("data-sortable"),t.originalCellIndex=e,this.options.sortable&&t.sortable){const e=r("a",{href:"#",class:"dataTable-sorter",html:t.innerHTML});t.innerHTML="",t.setAttribute("data-sortable",""),t.appendChild(e)}}),this.fixColumns()}bindEvents(){const t=this.options;if(t.perPageSelect){const e=this.wrapper.querySelector(".dataTable-selector");e&&e.addEventListener("change",()=>{t.perPage=parseInt(e.value,10),this.update(),this.fixHeight(),this.emit("datatable.perpage",t.perPage)},!1)}t.searchable&&(this.input=this.wrapper.querySelector(".dataTable-input"),this.input&&this.input.addEventListener("keyup",()=>this.search(this.input.value),!1)),this.wrapper.addEventListener("click",e=>{const n=e.target.closest("a");n&&"a"===n.nodeName.toLowerCase()&&(n.hasAttribute("data-page")?(this.page(n.getAttribute("data-page")),e.preventDefault()):t.sortable&&n.classList.contains("dataTable-sorter")&&"false"!=n.parentNode.getAttribute("data-sortable")&&(this.columns().sort(this.headings.indexOf(n.parentNode)),e.preventDefault()))},!1),window.addEventListener("resize",this.listeners.onResize)}onResize(){this.rect=this.container.getBoundingClientRect(),this.rect.width&&this.fixColumns()}setColumns(t){t||this.data.forEach(t=>{Array.from(t.cells).forEach(t=>{t.data=t.innerHTML})}),this.options.columns&&this.headings.length&&this.options.columns.forEach(t=>{Array.isArray(t.select)||(t.select=[t.select]),t.hasOwnProperty("render")&&"function"==typeof t.render&&(this.selectedColumns=this.selectedColumns.concat(t.select),this.columnRenderers.push({columns:t.select,renderer:t.render})),t.select.forEach(e=>{const n=this.headings[e];n&&(t.type&&n.setAttribute("data-type",t.type),t.format&&n.setAttribute("data-format",t.format),t.hasOwnProperty("sortable")&&n.setAttribute("data-sortable",t.sortable),t.hasOwnProperty("hidden")&&!1!==t.hidden&&this.columns().hide([e]),t.hasOwnProperty("sort")&&1===t.select.length&&this.columns().sort(t.select[0],t.sort,!0))})}),this.hasRows&&(this.data.forEach((t,e)=>{t.dataIndex=e,Array.from(t.cells).forEach(t=>{t.data=t.innerHTML})}),this.selectedColumns.length&&this.data.forEach(t=>{Array.from(t.cells).forEach((e,n)=>{this.selectedColumns.includes(n)&&this.columnRenderers.forEach(i=>{i.columns.includes(n)&&(e.innerHTML=i.renderer.call(this,e.data,e,t))})})}),this.columns().rebuild()),this.render("header")}destroy(){this.dom.innerHTML=this.initialLayout,this.dom.classList.remove("dataTable-table"),this.wrapper.parentNode.replaceChild(this.dom,this.wrapper),this.initialized=!1,window.removeEventListener("resize",this.listeners.onResize)}update(){this.wrapper.classList.remove("dataTable-empty"),this.paginate(this),this.render("page"),this.links=[];let t=this.pages.length;for(;t--;){const e=t+1;this.links[t]=l(0===t?"active":"",e,e)}this.sorting=!1,this.render("pager"),this.rows().update(),this.emit("datatable.update")}paginate(){const t=this.options.perPage;let e=this.activeRows;return this.searching&&(e=[],this.searchData.forEach(t=>e.push(this.activeRows[t]))),this.options.paging?this.pages=e.map((n,i)=>i%t==0?e.slice(i,i+t):null).filter(t=>t):this.pages=[e],this.totalPages=this.lastPage=this.pages.length,this.totalPages}fixColumns(){if((this.options.scrollY.length||this.options.fixedColumns)&&this.activeHeadings&&this.activeHeadings.length){let t,e=!1;if(this.columnWidths=[],this.dom.tHead){this.options.scrollY.length&&(e=r("thead"),e.appendChild(r("tr")),e.style.height="0px",this.headerTable&&(this.dom.tHead=this.headerTable.tHead)),this.activeHeadings.forEach(t=>{t.style.width=""});const t=this.activeHeadings.reduce((t,e)=>t+e.offsetWidth,0);if(this.activeHeadings.forEach((n,i)=>{const o=n.offsetWidth,l=o/t*100;if(n.style.width=l+"%",this.columnWidths[i]=o,this.options.scrollY.length){const t=r("th");e.firstElementChild.appendChild(t),t.style.width=l+"%",t.style.paddingTop="0",t.style.paddingBottom="0",t.style.border="0"}}),this.options.scrollY.length){const t=this.dom.parentElement;if(!this.headerTable){this.headerTable=r("table",{class:"dataTable-table"});const e=r("div",{class:"dataTable-headercontainer"});e.appendChild(this.headerTable),t.parentElement.insertBefore(e,t)}const n=this.dom.tHead;this.dom.replaceChild(e,n),this.headerTable.tHead=n,this.headerTable.parentElement.style.paddingRight=this.headerTable.clientWidth-this.dom.clientWidth+parseInt(this.headerTable.parentElement.style.paddingRight||"0",10)+"px",t.scrollHeight>t.clientHeight&&(t.style.overflowY="scroll")}}else{t=[],e=r("thead");const n=r("tr");Array.from(this.dom.tBodies[0].rows[0].cells).forEach(()=>{const e=r("th");n.appendChild(e),t.push(e)}),e.appendChild(n),this.dom.insertBefore(e,this.body);const i=[];t.forEach((t,e)=>{const n=t.offsetWidth,r=n/this.rect.width*100;i.push(r),this.columnWidths[e]=n}),this.data.forEach(t=>{Array.from(t.cells).forEach((t,e)=>{this.columns(t.cellIndex).visible()&&(t.style.width=i[e]+"%")})}),this.dom.removeChild(e)}}}fixHeight(){this.options.fixedHeight&&(this.container.style.height=null,this.rect=this.container.getBoundingClientRect(),this.container.style.height=this.rect.height+"px")}search(t){return!!this.hasRows&&(t=t.toLowerCase(),this.currentPage=1,this.searching=!0,this.searchData=[],t.length?(this.clear(),this.data.forEach((e,n)=>{const i=this.searchData.includes(e);t.split(" ").reduce((t,n)=>{let i=!1,r=null,o=null;for(let t=0;t<e.cells.length;t++)if(r=e.cells[t],o=r.hasAttribute("data-content")?r.getAttribute("data-content"):r.textContent,o.toLowerCase().includes(n)&&this.columns(r.cellIndex).visible()){i=!0;break}return t&&i},!0)&&!i?(e.searchIndex=n,this.searchData.push(n)):e.searchIndex=null}),this.wrapper.classList.add("search-results"),this.searchData.length?this.update():(this.wrapper.classList.remove("search-results"),this.setMessage(this.options.labels.noResults)),void this.emit("datatable.search",t,this.searchData)):(this.searching=!1,this.update(),this.emit("datatable.search",t,this.searchData),this.wrapper.classList.remove("search-results"),!1))}page(t){return t!=this.currentPage&&(isNaN(t)||(this.currentPage=parseInt(t,10)),!(t>this.pages.length||t<0)&&(this.render("page"),this.render("pager"),void this.emit("datatable.page",t)))}sortColumn(t,e){this.columns().sort(t,e)}insert(t){let e=[];if(i(t)){if(t.headings&&!this.hasHeadings&&!this.hasRows){const e=r("tr");t.headings.forEach(t=>{const n=r("th",{html:t});e.appendChild(n)}),this.head.appendChild(e),this.header=e,this.headings=[].slice.call(e.cells),this.hasHeadings=!0,this.options.sortable=this.initialSortable,this.render("header"),this.activeHeadings=this.headings.slice()}t.data&&Array.isArray(t.data)&&(e=t.data)}else Array.isArray(t)&&t.forEach(t=>{const n=[];Object.entries(t).forEach(([t,e])=>{const i=this.labels.indexOf(t);i>-1&&(n[i]=e)}),e.push(n)});e.length&&(this.rows().add(e),this.hasRows=!0),this.update(),this.setColumns(),this.fixColumns()}refresh(){this.options.searchable&&(this.input.value="",this.searching=!1),this.currentPage=1,this.onFirstPage=!0,this.update(),this.emit("datatable.refresh")}clear(t){this.body&&o(this.body);let e=this.body;this.body||(e=this.dom),t&&("string"==typeof t&&(document.createDocumentFragment().innerHTML=t),e.appendChild(t))}export(t){if(!this.hasHeadings&&!this.hasRows)return!1;const e=this.activeHeadings;let n=[];const r=[];let o,l,s,a;if(!i(t))return!1;const c={download:!0,skipColumn:[],lineDelimiter:"\n",columnDelimiter:",",tableName:"myTable",replacer:null,space:4,...t};if(c.type){if("txt"!==c.type&&"csv"!==c.type||(n[0]=this.header),c.selection)if(isNaN(c.selection)){if(Array.isArray(c.selection))for(o=0;o<c.selection.length;o++)n=n.concat(this.pages[c.selection[o]-1])}else n=n.concat(this.pages[c.selection-1]);else n=n.concat(this.activeRows);if(n.length){if("txt"===c.type||"csv"===c.type){for(s="",o=0;o<n.length;o++){for(l=0;l<n[o].cells.length;l++)if(!c.skipColumn.includes(e[l].originalCellIndex)&&this.columns(e[l].originalCellIndex).visible()){let t=n[o].cells[l].textContent;t=t.trim(),t=t.replace(/\s{2,}/g," "),t=t.replace(/\n/g," "),t=t.replace(/"/g,'""'),t=t.replace(/#/g,"%23"),t.includes(",")&&(t=`"${t}"`),s+=t+c.columnDelimiter}s=s.trim().substring(0,s.length-1),s+=c.lineDelimiter}s=s.trim().substring(0,s.length-1),c.download&&(s="data:text/csv;charset=utf-8,"+s)}else if("sql"===c.type){for(s=`INSERT INTO \`${c.tableName}\` (`,o=0;o<e.length;o++)!c.skipColumn.includes(e[o].originalCellIndex)&&this.columns(e[o].originalCellIndex).visible()&&(s+=`\`${e[o].textContent}\`,`);for(s=s.trim().substring(0,s.length-1),s+=") VALUES ",o=0;o<n.length;o++){for(s+="(",l=0;l<n[o].cells.length;l++)!c.skipColumn.includes(e[l].originalCellIndex)&&this.columns(e[l].originalCellIndex).visible()&&(s+=`"${n[o].cells[l].textContent}",`);s=s.trim().substring(0,s.length-1),s+="),"}s=s.trim().substring(0,s.length-1),s+=";",c.download&&(s="data:application/sql;charset=utf-8,"+s)}else if("json"===c.type){for(l=0;l<n.length;l++)for(r[l]=r[l]||{},o=0;o<e.length;o++)!c.skipColumn.includes(e[o].originalCellIndex)&&this.columns(e[o].originalCellIndex).visible()&&(r[l][e[o].textContent]=n[l].cells[o].textContent);s=JSON.stringify(r,c.replacer,c.space),c.download&&(s="data:application/json;charset=utf-8,"+s)}return c.download&&(c.filename=c.filename||"datatable_export",c.filename+="."+c.type,s=encodeURI(s),a=document.createElement("a"),a.href=s,a.download=c.filename,document.body.appendChild(a),a.click(),document.body.removeChild(a)),s}}return!1}import(t){let e=!1;if(!i(t))return!1;const n={lineDelimiter:"\n",columnDelimiter:",",removeDoubleQuotes:!1,...t};if(n.data.length||i(n.data)){if("csv"===n.type){e={data:[]};const t=n.data.split(n.lineDelimiter);t.length&&(n.headings&&(e.headings=t[0].split(n.columnDelimiter),n.removeDoubleQuotes&&(e.headings=e.headings.map(t=>t.trim().replace(/(^"|"$)/g,""))),t.shift()),t.forEach((t,i)=>{e.data[i]=[];const r=t.split(n.columnDelimiter);r.length&&r.forEach(t=>{n.removeDoubleQuotes&&(t=t.trim().replace(/(^"|"$)/g,"")),e.data[i].push(t)})}))}else if("json"===n.type){const t=(t=>{let e=!1;try{e=JSON.parse(t)}catch(t){return!1}return!(null===e||!Array.isArray(e)&&!i(e))&&e})(n.data);t&&(e={headings:[],data:[]},t.forEach((t,n)=>{e.data[n]=[],Object.entries(t).forEach(([t,i])=>{e.headings.includes(t)||e.headings.push(t),e.data[n].push(i)})}))}i(n.data)&&(e=n.data),e&&this.insert(e)}return!1}print(){const t=this.activeHeadings,e=this.activeRows,n=r("table"),i=r("thead"),o=r("tbody"),l=r("tr");t.forEach(t=>{l.appendChild(r("th",{html:t.textContent}))}),i.appendChild(l),e.forEach(t=>{const e=r("tr");Array.from(t.cells).forEach(t=>{e.appendChild(r("td",{html:t.textContent}))}),o.appendChild(e)}),n.appendChild(i),n.appendChild(o);const s=window.open();s.document.body.appendChild(n),s.print()}setMessage(t){let e=1;this.hasRows?e=this.data[0].cells.length:this.activeHeadings.length&&(e=this.activeHeadings.length),this.wrapper.classList.add("dataTable-empty"),this.label&&(this.label.innerHTML=""),this.totalPages=0,this.render("pager"),this.clear(r("tr",{html:`<td class="dataTables-empty" colspan="${e}">${t}</td>`}))}columns(t){return new c(this,t)}rows(t){return new a(this,t)}on(t,e){this.events=this.events||{},this.events[t]=this.events[t]||[],this.events[t].push(e)}off(t,e){this.events=this.events||{},t in this.events!=0&&this.events[t].splice(this.events[t].indexOf(e),1)}emit(t){if(this.events=this.events||{},t in this.events!=0)for(let e=0;e<this.events[t].length;e++)this.events[t][e].apply(this,Array.prototype.slice.call(arguments,1))}}n.DataTable=h},{"./date-7061ceee.js":1}]},{},[2])(2)})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Chart=e()}(this,(function(){"use strict";function t(){}const e=function(){let t=0;return function(){return t++}}();function n(t){return null==t}function i(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function r(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const o=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function l(t,e){return o(t)?t:e}function s(t,e){return void 0===t?e:t}const a=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,c=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function u(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function d(t,e,n,o){let l,s,a;if(i(t))if(s=t.length,o)for(l=s-1;l>=0;l--)e.call(n,t[l],l);else for(l=0;l<s;l++)e.call(n,t[l],l);else if(r(t))for(a=Object.keys(t),s=a.length,l=0;l<s;l++)e.call(n,t[a[l]],a[l])}function h(t,e){let n,i,r,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(r=t[n],o=e[n],r.datasetIndex!==o.datasetIndex||r.index!==o.index)return!1;return!0}function p(t){if(i(t))return t.map(p);if(r(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let r=0;for(;r<i;++r)e[n[r]]=p(t[n[r]]);return e}return t}function f(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function g(t,e,n,i){if(!f(t))return;const o=e[t],l=n[t];r(o)&&r(l)?m(o,l,i):e[t]=p(l)}function m(t,e,n){const o=i(e)?e:[e],l=o.length;if(!r(t))return t;const s=(n=n||{}).merger||g;for(let i=0;i<l;++i){if(!r(e=o[i]))continue;const l=Object.keys(e);for(let i=0,r=l.length;i<r;++i)s(l[i],t,e,n)}return t}function v(t,e){return m(t,e,{merger:y})}function y(t,e,n){if(!f(t))return;const i=e[t],o=n[t];r(i)&&r(o)?v(i,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=p(o))}const b={"":t=>t,x:t=>t.x,y:t=>t.y};function _(t,e){return(b[e]||(b[e]=function(t){const e=w(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e)))(t)}function w(t){const e=t.split("."),n=[];let i="";for(const t of e)i+=t,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function x(t){return t.charAt(0).toUpperCase()+t.slice(1)}const E=t=>void 0!==t,S=t=>"function"==typeof t,C=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function M(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const k=Math.PI,D=2*k,T=D+k,L=Number.POSITIVE_INFINITY,A=k/180,P=k/2,O=k/4,I=2*k/3,R=Math.log10,N=Math.sign;function z(t){const e=Math.round(t);t=B(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(R(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function F(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i==0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort((t,e)=>t-e).pop(),e}function H(t){return!isNaN(parseFloat(t))&&isFinite(t)}function B(t,e,n){return Math.abs(t-e)<n}function j(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function V(t,e,n){let i,r,o;for(i=0,r=t.length;i<r;i++)o=t[i][n],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function W(t){return t*(k/180)}function U(t){return t*(180/k)}function Y(t){if(!o(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function $(t,e){const n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i);let o=Math.atan2(i,n);return o<-.5*k&&(o+=D),{angle:o,distance:r}}function q(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function G(t,e){return(t-e+T)%D-k}function Z(t){return(t%D+D)%D}function K(t,e,n,i){const r=Z(t),o=Z(e),l=Z(n),s=Z(o-r),a=Z(l-r),c=Z(r-o),u=Z(r-l);return r===o||r===l||i&&o===l||s>a&&c<u}function X(t,e,n){return Math.max(e,Math.min(n,t))}function Q(t){return X(t,-32768,32767)}function J(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function tt(t,e,n){n=n||(n=>t[n]<e);let i,r=t.length-1,o=0;for(;r-o>1;)i=o+r>>1,n(i)?o=i:r=i;return{lo:o,hi:r}}const et=(t,e,n,i)=>tt(t,n,i?i=>t[i][e]<=n:i=>t[i][e]<n),nt=(t,e,n)=>tt(t,n,i=>t[i][e]>=n);function it(t,e,n){let i=0,r=t.length;for(;i<r&&t[i]<e;)i++;for(;r>i&&t[r-1]>n;)r--;return i>0||r<t.length?t.slice(i,r):t}const rt=["push","pop","shift","splice","unshift"];function ot(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),rt.forEach(e=>{const n="_onData"+x(e),i=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const r=i.apply(this,e);return t._chartjs.listeners.forEach(t=>{"function"==typeof t[n]&&t[n](...e)}),r}})}))}function lt(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(e);-1!==r&&i.splice(r,1),i.length>0||(rt.forEach(e=>{delete t[e]}),delete t._chartjs)}function st(t){const e=new Set;let n,i;for(n=0,i=t.length;n<i;++n)e.add(t[n]);return e.size===i?t:Array.from(e)}const at="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function ct(t,e,n){const i=n||(t=>Array.prototype.slice.call(t));let r=!1,o=[];return function(...n){o=i(n),r||(r=!0,at.call(window,()=>{r=!1,t.apply(e,o)}))}}function ut(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}const dt=t=>"start"===t?"left":"end"===t?"right":"center",ht=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,pt=(t,e,n,i)=>t===(i?"left":"right")?n:"center"===t?(e+n)/2:e;function ft(t,e,n){const i=e.length;let r=0,o=i;if(t._sorted){const{iScale:l,_parsed:s}=t,a=l.axis,{min:c,max:u,minDefined:d,maxDefined:h}=l.getUserBounds();d&&(r=X(Math.min(et(s,l.axis,c).lo,n?i:et(e,a,l.getPixelForValue(c)).lo),0,i-1)),o=h?X(Math.max(et(s,l.axis,u,!0).hi+1,n?0:et(e,a,l.getPixelForValue(u),!0).hi+1),r,i)-r:i-r}return{start:r,count:o}}function gt(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,r={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=r,!0;const o=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,r),o}var mt=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const r=e.listeners[i],o=e.duration;r.forEach(i=>i({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(n-e.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=at.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((n,i)=>{if(!n.running||!n.items.length)return;const r=n.items;let o,l=r.length-1,s=!1;for(;l>=0;--l)o=r[l],o._active?(o._total>n.duration&&(n.duration=o._total),o.tick(t),s=!0):(r[l]=r[r.length-1],r.pop());s&&(i.draw(),this._notify(i,n,t,"progress")),r.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=r.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};
/*!
* @kurkle/color v0.2.1
* https://github.com/kurkle/color#readme
* (c) 2022 Jukka Kurkela
* Released under the MIT License
*/function vt(t){return t+.5|0}const yt=(t,e,n)=>Math.max(Math.min(t,n),e);function bt(t){return yt(vt(2.55*t),0,255)}function _t(t){return yt(vt(255*t),0,255)}function wt(t){return yt(vt(t/2.55)/100,0,1)}function xt(t){return yt(vt(100*t),0,100)}const Et={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},St=[..."0123456789ABCDEF"],Ct=t=>St[15&t],Mt=t=>St[(240&t)>>4]+St[15&t],kt=t=>(240&t)>>4==(15&t);const Dt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Tt(t,e,n){const i=e*Math.min(n,1-n),r=(e,r=(e+t/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function Lt(t,e,n){const i=(i,r=(i+t/60)%6)=>n-n*e*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function At(t,e,n){const i=Tt(t,1,.5);let r;for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)i[r]*=1-e-n,i[r]+=e;return i}function Pt(t){const e=t.r/255,n=t.g/255,i=t.b/255,r=Math.max(e,n,i),o=Math.min(e,n,i),l=(r+o)/2;let s,a,c;return r!==o&&(c=r-o,a=l>.5?c/(2-r-o):c/(r+o),s=function(t,e,n,i,r){return t===r?(e-n)/i+(e<n?6:0):e===r?(n-t)/i+2:(t-e)/i+4}(e,n,i,c,r),s=60*s+.5),[0|s,a||0,l]}function Ot(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(_t)}function It(t,e,n){return Ot(Tt,t,e,n)}function Rt(t){return(t%360+360)%360}const Nt={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},zt={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Ft;const Ht=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,Bt=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,jt=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Vt(t,e,n){if(t){let i=Pt(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=It(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Wt(t,e){return t?Object.assign(e||{},t):t}function Ut(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=_t(t[3]))):(e=Wt(t,{r:0,g:0,b:0,a:1})).a=_t(e.a),e}function Yt(t){return"r"===t.charAt(0)?function(t){const e=Ht.exec(t);let n,i,r,o=255;if(e){if(e[7]!==n){const t=+e[7];o=e[8]?bt(t):yt(255*t,0,255)}return n=+e[1],i=+e[3],r=+e[5],n=255&(e[2]?bt(n):yt(n,0,255)),i=255&(e[4]?bt(i):yt(i,0,255)),r=255&(e[6]?bt(r):yt(r,0,255)),{r:n,g:i,b:r,a:o}}}(t):function(t){const e=Dt.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?bt(+e[5]):_t(+e[5]));const r=Rt(+e[2]),o=+e[3]/100,l=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return Ot(At,t,e,n)}(r,o,l):"hsv"===e[1]?function(t,e,n){return Ot(Lt,t,e,n)}(r,o,l):It(r,o,l),{r:n[0],g:n[1],b:n[2],a:i}}(t)}class $t{constructor(t){if(t instanceof $t)return t;const e=typeof t;let n;var i,r,o;"object"===e?n=Ut(t):"string"===e&&(o=(i=t).length,"#"===i[0]&&(4===o||5===o?r={r:255&17*Et[i[1]],g:255&17*Et[i[2]],b:255&17*Et[i[3]],a:5===o?17*Et[i[4]]:255}:7!==o&&9!==o||(r={r:Et[i[1]]<<4|Et[i[2]],g:Et[i[3]]<<4|Et[i[4]],b:Et[i[5]]<<4|Et[i[6]],a:9===o?Et[i[7]]<<4|Et[i[8]]:255})),n=r||function(t){Ft||(Ft=function(){const t={},e=Object.keys(zt),n=Object.keys(Nt);let i,r,o,l,s;for(i=0;i<e.length;i++){for(l=s=e[i],r=0;r<n.length;r++)o=n[r],s=s.replace(o,Nt[o]);o=parseInt(zt[l],16),t[s]=[o>>16&255,o>>8&255,255&o]}return t}(),Ft.transparent=[0,0,0,0]);const e=Ft[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||Yt(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Wt(this._rgb);return t&&(t.a=wt(t.a)),t}set rgb(t){this._rgb=Ut(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${wt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?function(t){var e=(t=>kt(t.r)&&kt(t.g)&&kt(t.b)&&kt(t.a))(t)?Ct:Mt;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=Pt(t),n=e[0],i=xt(e[1]),r=xt(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${r}%, ${wt(t.a)})`:`hsl(${n}, ${i}%, ${r}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let r;const o=e===r?.5:e,l=2*o-1,s=n.a-i.a,a=((l*s==-1?l:(l+s)/(1+l*s))+1)/2;r=1-a,n.r=255&a*n.r+r*i.r+.5,n.g=255&a*n.g+r*i.g+.5,n.b=255&a*n.b+r*i.b+.5,n.a=o*n.a+(1-o)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=jt(wt(t.r)),r=jt(wt(t.g)),o=jt(wt(t.b));return{r:_t(Bt(i+n*(jt(wt(e.r))-i))),g:_t(Bt(r+n*(jt(wt(e.g))-r))),b:_t(Bt(o+n*(jt(wt(e.b))-o))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new $t(this.rgb)}alpha(t){return this._rgb.a=_t(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=vt(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Vt(this._rgb,2,t),this}darken(t){return Vt(this._rgb,2,-t),this}saturate(t){return Vt(this._rgb,1,t),this}desaturate(t){return Vt(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=Pt(t);n[0]=Rt(n[0]+e),n=It(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function qt(t){return new $t(t)}function Gt(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Zt(t){return Gt(t)?t:qt(t)}function Kt(t){return Gt(t)?t:qt(t).saturate(.5).darken(.1).hexString()}const Xt=Object.create(null),Qt=Object.create(null);function Jt(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function te(t,e,n){return"string"==typeof e?m(Jt(t,e),n):m(Jt(t,""),e)}var ee=new class{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Kt(e.backgroundColor),this.hoverBorderColor=(t,e)=>Kt(e.borderColor),this.hoverColor=(t,e)=>Kt(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return te(this,t,e)}get(t){return Jt(this,t)}describe(t,e){return te(Qt,t,e)}override(t,e){return te(Xt,t,e)}route(t,e,n,i){const o=Jt(this,t),l=Jt(this,n),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=l[i];return r(t)?Object.assign({},e,t):s(t,e)},set(t){this[a]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function ne(){return"undefined"!=typeof window&&"undefined"!=typeof document}function ie(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function re(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}const oe=t=>window.getComputedStyle(t,null);function le(t,e){return oe(t).getPropertyValue(e)}const se=["top","right","bottom","left"];function ae(t,e,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const o=se[r];i[o]=parseFloat(t[e+"-"+o+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function ce(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,r=oe(n),o="border-box"===r.boxSizing,l=ae(r,"padding"),s=ae(r,"border","width"),{x:a,y:c,box:u}=function(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:r,offsetY:o}=i;let l,s,a=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(r,o,t.target))l=r,s=o;else{const t=e.getBoundingClientRect();l=i.clientX-t.left,s=i.clientY-t.top,a=!0}return{x:l,y:s,box:a}}(t,n),d=l.left+(u&&s.left),h=l.top+(u&&s.top);let{width:p,height:f}=e;return o&&(p-=l.width+s.width,f-=l.height+s.height),{x:Math.round((a-d)/p*n.width/i),y:Math.round((c-h)/f*n.height/i)}}const ue=t=>Math.round(10*t)/10;function de(t,e,n,i){const r=oe(t),o=ae(r,"margin"),l=re(r.maxWidth,t,"clientWidth")||L,s=re(r.maxHeight,t,"clientHeight")||L,a=function(t,e,n){let i,r;if(void 0===e||void 0===n){const o=ie(t);if(o){const t=o.getBoundingClientRect(),l=oe(o),s=ae(l,"border","width"),a=ae(l,"padding");e=t.width-a.width-s.width,n=t.height-a.height-s.height,i=re(l.maxWidth,o,"clientWidth"),r=re(l.maxHeight,o,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||L,maxHeight:r||L}}(t,e,n);let{width:c,height:u}=a;if("content-box"===r.boxSizing){const t=ae(r,"border","width"),e=ae(r,"padding");c-=e.width+t.width,u-=e.height+t.height}return c=Math.max(0,c-o.width),u=Math.max(0,i?Math.floor(c/i):u-o.height),c=ue(Math.min(c,l,a.maxWidth)),u=ue(Math.min(u,s,a.maxHeight)),c&&!u&&(u=ue(c/2)),{width:c,height:u}}function he(t,e,n){const i=e||1,r=Math.floor(t.height*i),o=Math.floor(t.width*i);t.height=r/i,t.width=o/i;const l=t.canvas;return l.style&&(n||!l.style.height&&!l.style.width)&&(l.style.height=t.height+"px",l.style.width=t.width+"px"),(t.currentDevicePixelRatio!==i||l.height!==r||l.width!==o)&&(t.currentDevicePixelRatio=i,l.height=r,l.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0)}const pe=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function fe(t,e){const n=le(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function ge(t){return!t||n(t.size)||n(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function me(t,e,n,i,r){let o=e[r];return o||(o=e[r]=t.measureText(r).width,n.push(r)),o>i&&(i=o),i}function ve(t,e,n,r){let o=(r=r||{}).data=r.data||{},l=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(o=r.data={},l=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let s=0;const a=n.length;let c,u,d,h,p;for(c=0;c<a;c++)if(h=n[c],null!=h&&!0!==i(h))s=me(t,o,l,s,h);else if(i(h))for(u=0,d=h.length;u<d;u++)p=h[u],null==p||i(p)||(s=me(t,o,l,s,p));t.restore();const f=l.length/2;if(f>n.length){for(c=0;c<f;c++)delete o[l[c]];l.splice(0,f)}return s}function ye(t,e,n){const i=t.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((e-r)*i)/i+r}function be(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function _e(t,e,n,i){we(t,e,n,i,null)}function we(t,e,n,i,r){let o,l,s,a,c,u;const d=e.pointStyle,h=e.rotation,p=e.radius;let f=(h||0)*A;if(d&&"object"==typeof d&&(o=d.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(n,i),t.rotate(f),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void t.restore();if(!(isNaN(p)||p<=0)){switch(t.beginPath(),d){default:r?t.ellipse(n,i,r/2,p,0,0,D):t.arc(n,i,p,0,D),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(f)*p,i-Math.cos(f)*p),f+=I,t.lineTo(n+Math.sin(f)*p,i-Math.cos(f)*p),f+=I,t.lineTo(n+Math.sin(f)*p,i-Math.cos(f)*p),t.closePath();break;case"rectRounded":c=.516*p,a=p-c,l=Math.cos(f+O)*a,s=Math.sin(f+O)*a,t.arc(n-l,i-s,c,f-k,f-P),t.arc(n+s,i-l,c,f-P,f),t.arc(n+l,i+s,c,f,f+P),t.arc(n-s,i+l,c,f+P,f+k),t.closePath();break;case"rect":if(!h){a=Math.SQRT1_2*p,u=r?r/2:a,t.rect(n-u,i-a,2*u,2*a);break}f+=O;case"rectRot":l=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-l,i-s),t.lineTo(n+s,i-l),t.lineTo(n+l,i+s),t.lineTo(n-s,i+l),t.closePath();break;case"crossRot":f+=O;case"cross":l=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-l,i-s),t.lineTo(n+l,i+s),t.moveTo(n+s,i-l),t.lineTo(n-s,i+l);break;case"star":l=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-l,i-s),t.lineTo(n+l,i+s),t.moveTo(n+s,i-l),t.lineTo(n-s,i+l),f+=O,l=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-l,i-s),t.lineTo(n+l,i+s),t.moveTo(n+s,i-l),t.lineTo(n-s,i+l);break;case"line":l=r?r/2:Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-l,i-s),t.lineTo(n+l,i+s);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(f)*p,i+Math.sin(f)*p)}t.fill(),e.borderWidth>0&&t.stroke()}}function xe(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Ee(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Se(t){t.restore()}function Ce(t,e,n,i,r){if(!e)return t.lineTo(n.x,n.y);if("middle"===r){const i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else"after"===r!=!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function Me(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function ke(t,e,r,o,l,s={}){const a=i(e)?e:[e],c=s.strokeWidth>0&&""!==s.strokeColor;let u,d;for(t.save(),t.font=l.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),n(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,s),u=0;u<a.length;++u)d=a[u],c&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),n(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(d,r,o,s.maxWidth)),t.fillText(d,r,o,s.maxWidth),De(t,r,o,d,s),o+=l.lineHeight;t.restore()}function De(t,e,n,i,r){if(r.strikethrough||r.underline){const o=t.measureText(i),l=e-o.actualBoundingBoxLeft,s=e+o.actualBoundingBoxRight,a=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,u=r.strikethrough?(a+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=r.decorationWidth||2,t.moveTo(l,u),t.lineTo(s,u),t.stroke()}}function Te(t,e){const{x:n,y:i,w:r,h:o,radius:l}=e;t.arc(n+l.topLeft,i+l.topLeft,l.topLeft,-P,k,!0),t.lineTo(n,i+o-l.bottomLeft),t.arc(n+l.bottomLeft,i+o-l.bottomLeft,l.bottomLeft,k,P,!0),t.lineTo(n+r-l.bottomRight,i+o),t.arc(n+r-l.bottomRight,i+o-l.bottomRight,l.bottomRight,P,0,!0),t.lineTo(n+r,i+l.topRight),t.arc(n+r-l.topRight,i+l.topRight,l.topRight,0,-P,!0),t.lineTo(n+l.topLeft,i)}function Le(t,e=[""],n=t,i,r=(()=>t[0])){E(i)||(i=je("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:i,_getTarget:r,override:r=>Le([r,...t],e,n,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>Re(n,i,()=>function(t,e,n,i){let r;for(const o of e)if(r=je(Oe(o,t),n),E(r))return Ie(t,r)?He(n,i,t,r):r}(i,e,t,n)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Ve(t).includes(e),ownKeys:t=>Ve(t),set(t,e,n){const i=t._storage||(t._storage=r());return t[e]=i[e]=n,delete t._keys,!0}})}function Ae(t,e,n,o){const l={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Pe(t,o),setContext:e=>Ae(t,e,n,o),override:i=>Ae(t.override(i),e,n,o)};return new Proxy(l,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Re(t,e,()=>function(t,e,n){const{_proxy:o,_context:l,_subProxy:s,_descriptors:a}=t;let c=o[e];return S(c)&&a.isScriptable(e)&&(c=function(t,e,n,i){const{_proxy:r,_context:o,_subProxy:l,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);return s.add(t),e=e(o,l||i),s.delete(t),Ie(t,e)&&(e=He(r._scopes,r,t,e)),e}(e,c,t,n)),i(c)&&c.length&&(c=function(t,e,n,i){const{_proxy:o,_context:l,_subProxy:s,_descriptors:a}=n;if(E(l.index)&&i(t))e=e[l.index%e.length];else if(r(e[0])){const n=e,i=o._scopes.filter(t=>t!==n);e=[];for(const r of n){const n=He(i,o,t,r);e.push(Ae(n,l,s&&s[t],a))}}return e}(e,c,t,a.isIndexable)),Ie(e,c)&&(c=Ae(c,l,s&&s[e],a)),c}(t,e,n)),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function Pe(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:n,indexable:i,isScriptable:S(n)?n:()=>n,isIndexable:S(i)?i:()=>i}}const Oe=(t,e)=>t?t+x(e):e,Ie=(t,e)=>r(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Re(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const i=n();return t[e]=i,i}function Ne(t,e,n){return S(t)?t(e,n):t}const ze=(t,e)=>!0===t?e:"string"==typeof t?_(e,t):void 0;function Fe(t,e,n,i,r){for(const o of e){const e=ze(n,o);if(e){t.add(e);const o=Ne(e._fallback,n,r);if(E(o)&&o!==n&&o!==i)return o}else if(!1===e&&E(i)&&n!==i)return null}return!1}function He(t,e,n,o){const l=e._rootScopes,s=Ne(e._fallback,n,o),a=[...t,...l],c=new Set;c.add(o);let u=Be(c,a,n,s||n,o);return null!==u&&(!E(s)||s===n||(u=Be(c,a,s,u,o),null!==u))&&Le(Array.from(c),[""],l,s,()=>function(t,e,n){const o=t._getTarget();e in o||(o[e]={});const l=o[e];return i(l)&&r(n)?n:l}(e,n,o))}function Be(t,e,n,i,r){for(;n;)n=Fe(t,e,n,i,r);return n}function je(t,e){for(const n of e){if(!n)continue;const e=n[t];if(E(e))return e}}function Ve(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}(t._scopes)),e}function We(t,e,n,i){const{iScale:r}=t,{key:o="r"}=this._parsing,l=new Array(i);let s,a,c,u;for(s=0,a=i;s<a;++s)c=s+n,u=e[c],l[s]={r:r.parse(_(u,o),c)};return l}const Ue=Number.EPSILON||1e-14,Ye=(t,e)=>e<t.length&&!t[e].skip&&t[e],$e=t=>"x"===t?"y":"x";function qe(t,e,n,i){const r=t.skip?e:t,o=e,l=n.skip?e:n,s=q(o,r),a=q(l,o);let c=s/(s+a),u=a/(s+a);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=i*c,h=i*u;return{previous:{x:o.x-d*(l.x-r.x),y:o.y-d*(l.y-r.y)},next:{x:o.x+h*(l.x-r.x),y:o.y+h*(l.y-r.y)}}}function Ge(t,e="x"){const n=$e(e),i=t.length,r=Array(i).fill(0),o=Array(i);let l,s,a,c=Ye(t,0);for(l=0;l<i;++l)if(s=a,a=c,c=Ye(t,l+1),a){if(c){const t=c[e]-a[e];r[l]=0!==t?(c[n]-a[n])/t:0}o[l]=s?c?N(r[l-1])!==N(r[l])?0:(r[l-1]+r[l])/2:r[l-1]:r[l]}!function(t,e,n){const i=t.length;let r,o,l,s,a,c=Ye(t,0);for(let u=0;u<i-1;++u)a=c,c=Ye(t,u+1),a&&c&&(B(e[u],0,Ue)?n[u]=n[u+1]=0:(r=n[u]/e[u],o=n[u+1]/e[u],s=Math.pow(r,2)+Math.pow(o,2),s<=9||(l=3/Math.sqrt(s),n[u]=r*l*e[u],n[u+1]=o*l*e[u])))}(t,r,o),function(t,e,n="x"){const i=$e(n),r=t.length;let o,l,s,a=Ye(t,0);for(let c=0;c<r;++c){if(l=s,s=a,a=Ye(t,c+1),!s)continue;const r=s[n],u=s[i];l&&(o=(r-l[n])/3,s["cp1"+n]=r-o,s["cp1"+i]=u-o*e[c]),a&&(o=(a[n]-r)/3,s["cp2"+n]=r+o,s["cp2"+i]=u+o*e[c])}}(t,o,e)}function Ze(t,e,n){return Math.max(Math.min(t,n),e)}function Ke(t,e,n,i,r){let o,l,s,a;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)Ge(t,r);else{let n=i?t[t.length-1]:t[0];for(o=0,l=t.length;o<l;++o)s=t[o],a=qe(n,s,t[Math.min(o+1,l-(i?0:1))%l],e.tension),s.cp1x=a.previous.x,s.cp1y=a.previous.y,s.cp2x=a.next.x,s.cp2y=a.next.y,n=s}e.capBezierPoints&&function(t,e){let n,i,r,o,l,s=xe(t[0],e);for(n=0,i=t.length;n<i;++n)l=o,o=s,s=n<i-1&&xe(t[n+1],e),o&&(r=t[n],l&&(r.cp1x=Ze(r.cp1x,e.left,e.right),r.cp1y=Ze(r.cp1y,e.top,e.bottom)),s&&(r.cp2x=Ze(r.cp2x,e.left,e.right),r.cp2y=Ze(r.cp2y,e.top,e.bottom)))}(t,n)}const Xe=t=>0===t||1===t,Qe=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*D/n),Je=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*D/n)+1,tn={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*P),easeOutSine:t=>Math.sin(t*P),easeInOutSine:t=>-.5*(Math.cos(k*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Xe(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Xe(t)?t:Qe(t,.075,.3),easeOutElastic:t=>Xe(t)?t:Je(t,.075,.3),easeInOutElastic(t){const e=.1125;return Xe(t)?t:t<.5?.5*Qe(2*t,e,.45):.5+.5*Je(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-tn.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*tn.easeInBounce(2*t):.5*tn.easeOutBounce(2*t-1)+.5};function en(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function nn(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:"middle"===i?n<.5?t.y:e.y:"after"===i?n<1?t.y:e.y:n>0?e.y:t.y}}function rn(t,e,n,i){const r={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},l=en(t,r,n),s=en(r,o,n),a=en(o,e,n),c=en(l,s,n),u=en(s,a,n);return en(c,u,n)}const on=new Map;function ln(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=on.get(n);return i||(i=new Intl.NumberFormat(t,e),on.set(n,i)),i}(e,n).format(t)}const sn=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),an=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function cn(t,e){const n=(""+t).match(sn);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}function un(t,e){const n={},i=r(e),o=i?Object.keys(e):e,l=r(t)?i?n=>s(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of o)n[t]=+l(t)||0;return n}function dn(t){return un(t,{top:"y",right:"x",bottom:"y",left:"x"})}function hn(t){return un(t,["topLeft","topRight","bottomLeft","bottomRight"])}function pn(t){const e=dn(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function fn(t,e){t=t||{},e=e||ee.font;let n=s(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=s(t.style,e.style);i&&!(""+i).match(an)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const r={family:s(t.family,e.family),lineHeight:cn(s(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:s(t.weight,e.weight),string:""};return r.string=ge(r),r}function gn(t,e,n,r){let o,l,s,a=!0;for(o=0,l=t.length;o<l;++o)if(s=t[o],void 0!==s&&(void 0!==e&&"function"==typeof s&&(s=s(e),a=!1),void 0!==n&&i(s)&&(s=s[n%s.length],a=!1),void 0!==s))return r&&!a&&(r.cacheable=!1),s}function mn(t,e,n){const{min:i,max:r}=t,o=c(e,(r-i)/2),l=(t,e)=>n&&0===t?0:t+e;return{min:l(i,-Math.abs(o)),max:l(r,o)}}function vn(t,e){return Object.assign(Object.create(t),e)}function yn(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function bn(t,e){let n,i;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function _n(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function wn(t){return"angle"===t?{between:K,compare:G,normalize:Z}:{between:J,compare:(t,e)=>t-e,normalize:t=>t}}function xn({start:t,end:e,count:n,loop:i,style:r}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n==0,style:r}}function En(t,e,n){if(!n)return[t];const{property:i,start:r,end:o}=n,l=e.length,{compare:s,between:a,normalize:c}=wn(i),{start:u,end:d,loop:h,style:p}=function(t,e,n){const{property:i,start:r,end:o}=n,{between:l,normalize:s}=wn(i),a=e.length;let c,u,{start:d,end:h,loop:p}=t;if(p){for(d+=a,h+=a,c=0,u=a;c<u&&l(s(e[d%a][i]),r,o);++c)d--,h--;d%=a,h%=a}return h<d&&(h+=a),{start:d,end:h,loop:p,style:t.style}}(t,e,n),f=[];let g,m,v,y=!1,b=null;for(let t=u,n=u;t<=d;++t)m=e[t%l],m.skip||(g=c(m[i]),g!==v&&(y=a(g,r,o),null===b&&(y||a(r,v,g)&&0!==s(r,v))&&(b=0===s(g,r)?t:n),null!==b&&(!y||0===s(o,g)||a(o,v,g))&&(f.push(xn({start:b,end:t,loop:h,count:l,style:p})),b=null),n=t,v=g));return null!==b&&f.push(xn({start:b,end:d,loop:h,count:l,style:p})),f}function Sn(t,e){const n=[],i=t.segments;for(let r=0;r<i.length;r++){const o=En(i[r],t.points,e);o.length&&n.push(...o)}return n}function Cn(t,e){const n=t.points,i=t.options.spanGaps,r=n.length;if(!r)return[];const o=!!t._loop,{start:l,end:s}=function(t,e,n,i){let r=0,o=e-1;if(n&&!i)for(;r<e&&!t[r].skip;)r++;for(;r<e&&t[r].skip;)r++;for(r%=e,n&&(o+=r);o>r&&t[o%e].skip;)o--;return o%=e,{start:r,end:o}}(n,r,o,i);return Mn(t,!0===i?[{start:l,end:s,loop:o}]:function(t,e,n,i){const r=t.length,o=[];let l,s=e,a=t[e];for(l=e+1;l<=n;++l){const n=t[l%r];n.skip||n.stop?a.skip||(i=!1,o.push({start:e%r,end:(l-1)%r,loop:i}),e=s=n.stop?l:null):(s=l,a.skip&&(e=l)),a=n}return null!==s&&o.push({start:e%r,end:s%r,loop:i}),o}(n,l,s<l?s+r:s,!!t._fullLoop&&0===l&&s===r-1),n,e)}function Mn(t,e,n,i){return i&&i.setContext&&n?function(t,e,n,i){const r=t._chart.getContext(),o=kn(t.options),{_datasetIndex:l,options:{spanGaps:s}}=t,a=n.length,c=[];let u=o,d=e[0].start,h=d;function p(t,e,i,r){const o=s?-1:1;if(t!==e){for(t+=a;n[t%a].skip;)t-=o;for(;n[e%a].skip;)e+=o;t%a!=e%a&&(c.push({start:t%a,end:e%a,loop:i,style:r}),u=r,d=e%a)}}for(const t of e){d=s?d:t.start;let e,o=n[d%a];for(h=d+1;h<=t.end;h++){const s=n[h%a];e=kn(i.setContext(vn(r,{type:"segment",p0:o,p1:s,p0DataIndex:(h-1)%a,p1DataIndex:h%a,datasetIndex:l}))),Dn(e,u)&&p(d,h-1,t.loop,u),o=s,u=e}d<h-1&&p(d,h-1,t.loop,u)}return c}(t,e,n,i):e}function kn(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Dn(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}var Tn=Object.freeze({__proto__:null,easingEffects:tn,isPatternOrGradient:Gt,color:Zt,getHoverColor:Kt,noop:t,uid:e,isNullOrUndef:n,isArray:i,isObject:r,isFinite:o,finiteOrDefault:l,valueOrDefault:s,toPercentage:a,toDimension:c,callback:u,each:d,_elementsEqual:h,clone:p,_merger:g,merge:m,mergeIf:v,_mergerIf:y,_deprecated:function(t,e,n,i){void 0!==e&&console.warn(t+': "'+n+'" is deprecated. Please use "'+i+'" instead')},resolveObjectKey:_,_splitKey:w,_capitalize:x,defined:E,isFunction:S,setsEqual:C,_isClickEvent:M,toFontString:ge,_measureText:me,_longestText:ve,_alignPixel:ye,clearCanvas:be,drawPoint:_e,drawPointLegend:we,_isPointInArea:xe,clipArea:Ee,unclipArea:Se,_steppedLineTo:Ce,_bezierCurveTo:Me,renderText:ke,addRoundedRectPath:Te,_lookup:tt,_lookupByKey:et,_rlookupByKey:nt,_filterBetween:it,listenArrayEvents:ot,unlistenArrayEvents:lt,_arrayUnique:st,_createResolver:Le,_attachContext:Ae,_descriptors:Pe,_parseObjectDataRadialScale:We,splineCurve:qe,splineCurveMonotone:Ge,_updateBezierControlPoints:Ke,_isDomSupported:ne,_getParentNode:ie,getStyle:le,getRelativePosition:ce,getMaximumSize:de,retinaScale:he,supportsEventListenerOptions:pe,readUsedSize:fe,fontString:function(t,e,n){return e+" "+t+"px "+n},requestAnimFrame:at,throttled:ct,debounce:ut,_toLeftRightCenter:dt,_alignStartEnd:ht,_textX:pt,_getStartAndCountOfVisiblePoints:ft,_scaleRangesChanged:gt,_pointInLine:en,_steppedInterpolation:nn,_bezierInterpolation:rn,formatNumber:ln,toLineHeight:cn,_readValueToProps:un,toTRBL:dn,toTRBLCorners:hn,toPadding:pn,toFont:fn,resolve:gn,_addGrace:mn,createContext:vn,PI:k,TAU:D,PITAU:T,INFINITY:L,RAD_PER_DEG:A,HALF_PI:P,QUARTER_PI:O,TWO_THIRDS_PI:I,log10:R,sign:N,niceNum:z,_factorize:F,isNumber:H,almostEquals:B,almostWhole:j,_setMinAndMaxByKey:V,toRadians:W,toDegrees:U,_decimalPlaces:Y,getAngleFromPoint:$,distanceBetweenPoints:q,_angleDiff:G,_normalizeAngle:Z,_angleBetween:K,_limitValue:X,_int16Range:Q,_isBetween:J,getRtlAdapter:yn,overrideTextDirection:bn,restoreTextDirection:_n,_boundSegment:En,_boundSegments:Sn,_computeSegments:Cn});function Ln(t,e,n,i){const{controller:r,data:o,_sorted:l}=t,s=r._cachedMeta.iScale;if(s&&e===s.axis&&"r"!==e&&l&&o.length){const t=s._reversePixels?nt:et;if(!i)return t(o,e,n);if(r._sharedOptions){const i=o[0],r="function"==typeof i.getRange&&i.getRange(e);if(r){const i=t(o,e,n-r),l=t(o,e,n+r);return{lo:i.lo,hi:l.hi}}}}return{lo:0,hi:o.length-1}}function An(t,e,n,i,r){const o=t.getSortedVisibleDatasetMetas(),l=n[e];for(let t=0,n=o.length;t<n;++t){const{index:n,data:s}=o[t],{lo:a,hi:c}=Ln(o[t],e,l,r);for(let t=a;t<=c;++t){const e=s[t];e.skip||i(e,n,t)}}}function Pn(t,e,n,i,r){const o=[];return r||t.isPointInArea(e)?(An(t,n,e,(function(n,l,s){(r||xe(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&o.push({element:n,datasetIndex:l,index:s})}),!0),o):o}function On(t,e,n,i,r,o){return o||t.isPointInArea(e)?"r"!==n||i?function(t,e,n,i,r,o){let l=[];const s=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const r=e?Math.abs(t.x-i.x):0,o=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}(n);let a=Number.POSITIVE_INFINITY;return An(t,n,e,(function(n,c,u){const d=n.inRange(e.x,e.y,r);if(i&&!d)return;const h=n.getCenterPoint(r);if(!o&&!t.isPointInArea(h)&&!d)return;const p=s(e,h);p<a?(l=[{element:n,datasetIndex:c,index:u}],a=p):p===a&&l.push({element:n,datasetIndex:c,index:u})})),l}(t,e,n,i,r,o):function(t,e,n,i){let r=[];return An(t,n,e,(function(t,n,o){const{startAngle:l,endAngle:s}=t.getProps(["startAngle","endAngle"],i),{angle:a}=$(t,{x:e.x,y:e.y});K(a,l,s)&&r.push({element:t,datasetIndex:n,index:o})})),r}(t,e,n,r):[]}function In(t,e,n,i,r){const o=[],l="x"===n?"inXRange":"inYRange";let s=!1;return An(t,n,e,(t,i,a)=>{t[l](e[n],r)&&(o.push({element:t,datasetIndex:i,index:a}),s=s||t.inRange(e.x,e.y,r))}),i&&!s?[]:o}var Rn={evaluateInteractionItems:An,modes:{index(t,e,n,i){const r=ce(e,t),o=n.axis||"x",l=n.includeInvisible||!1,s=n.intersect?Pn(t,r,o,i,l):On(t,r,o,!1,i,l),a=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=s[0].index,n=t.data[e];n&&!n.skip&&a.push({element:n,datasetIndex:t.index,index:e})}),a):[]},dataset(t,e,n,i){const r=ce(e,t),o=n.axis||"xy",l=n.includeInvisible||!1;let s=n.intersect?Pn(t,r,o,i,l):On(t,r,o,!1,i,l);if(s.length>0){const e=s[0].datasetIndex,n=t.getDatasetMeta(e).data;s=[];for(let t=0;t<n.length;++t)s.push({element:n[t],datasetIndex:e,index:t})}return s},point:(t,e,n,i)=>Pn(t,ce(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const r=ce(e,t),o=n.axis||"xy",l=n.includeInvisible||!1;return On(t,r,o,n.intersect,i,l)},x:(t,e,n,i)=>In(t,ce(e,t),"x",n.intersect,i),y:(t,e,n,i)=>In(t,ce(e,t),"y",n.intersect,i)}};const Nn=["left","top","right","bottom"];function zn(t,e){return t.filter(t=>t.pos===e)}function Fn(t,e){return t.filter(t=>-1===Nn.indexOf(t.pos)&&t.box.axis===e)}function Hn(t,e){return t.sort((t,n)=>{const i=e?n:t,r=e?t:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight})}function Bn(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function jn(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Vn(t,e,n,i){const{pos:o,box:l}=n,s=t.maxPadding;if(!r(o)){n.size&&(t[o]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?l.height:l.width),n.size=e.size/e.count,t[o]+=n.size}l.getPadding&&jn(s,l.getPadding());const a=Math.max(0,e.outerWidth-Bn(s,t,"left","right")),c=Math.max(0,e.outerHeight-Bn(s,t,"top","bottom")),u=a!==t.w,d=c!==t.h;return t.w=a,t.h=c,n.horizontal?{same:u,other:d}:{same:d,other:u}}function Wn(t,e){const n=e.maxPadding;return function(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{i[t]=Math.max(e[t],n[t])}),i}(t?["left","right"]:["top","bottom"])}function Un(t,e,n,i){const r=[];let o,l,s,a,c,u;for(o=0,l=t.length,c=0;o<l;++o){s=t[o],a=s.box,a.update(s.width||e.w,s.height||e.h,Wn(s.horizontal,e));const{same:l,other:d}=Vn(e,n,s,i);c|=l&&r.length,u=u||d,a.fullSize||r.push(s)}return c&&Un(r,e,n,i)||u}function Yn(t,e,n,i,r){t.top=n,t.left=e,t.right=e+i,t.bottom=n+r,t.width=i,t.height=r}function $n(t,e,n,i){const r=n.padding;let{x:o,y:l}=e;for(const s of t){const t=s.box,a=i[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/a.weight||1;if(s.horizontal){const i=e.w*c,o=a.size||t.height;E(a.start)&&(l=a.start),t.fullSize?Yn(t,r.left,l,n.outerWidth-r.right-r.left,o):Yn(t,e.left+a.placed,l,i,o),a.start=l,a.placed+=i,l=t.bottom}else{const i=e.h*c,l=a.size||t.width;E(a.start)&&(o=a.start),t.fullSize?Yn(t,o,r.top,l,n.outerHeight-r.bottom-r.top):Yn(t,o,e.top+a.placed,l,i),a.start=o,a.placed+=i,o=t.right}}e.x=o,e.y=l}ee.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var qn={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const r=pn(t.options.layout.padding),o=Math.max(e-r.width,0),l=Math.max(n-r.height,0),s=function(t){const e=function(t){const e=[];let n,i,r,o,l,s;for(n=0,i=(t||[]).length;n<i;++n)r=t[n],({position:o,options:{stack:l,stackWeight:s=1}}=r),e.push({index:n,box:r,pos:o,horizontal:r.isHorizontal(),weight:r.weight,stack:l&&o+l,stackWeight:s});return e}(t),n=Hn(e.filter(t=>t.box.fullSize),!0),i=Hn(zn(e,"left"),!0),r=Hn(zn(e,"right")),o=Hn(zn(e,"top"),!0),l=Hn(zn(e,"bottom")),s=Fn(e,"x"),a=Fn(e,"y");return{fullSize:n,leftAndTop:i.concat(o),rightAndBottom:r.concat(a).concat(l).concat(s),chartArea:zn(e,"chartArea"),vertical:i.concat(r).concat(a),horizontal:o.concat(l).concat(s)}}(t.boxes),a=s.vertical,c=s.horizontal;d(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});const u=a.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,h=Object.freeze({outerWidth:e,outerHeight:n,padding:r,availableWidth:o,availableHeight:l,vBoxMaxWidth:o/2/u,hBoxMaxHeight:l/2}),p=Object.assign({},r);jn(p,pn(i));const f=Object.assign({maxPadding:p,w:o,h:l,x:r.left,y:r.top},r),g=function(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:r}=n;if(!t||!Nn.includes(i))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=r}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:r}=e;let o,l,s;for(o=0,l=t.length;o<l;++o){s=t[o];const{fullSize:l}=s.box,a=n[s.stack],c=a&&s.stackWeight/a.weight;s.horizontal?(s.width=c?c*i:l&&e.availableWidth,s.height=r):(s.width=i,s.height=c?c*r:l&&e.availableHeight)}return n}(a.concat(c),h);Un(s.fullSize,f,h,g),Un(a,f,h,g),Un(c,f,h,g)&&Un(a,f,h,g),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(f),$n(s.leftAndTop,f,h,g),f.x+=f.w,f.y+=f.h,$n(s.rightAndBottom,f,h,g),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},d(s.chartArea,e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class Gn{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class Zn extends Gn{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Kn={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Xn=t=>null===t||""===t,Qn=!!pe&&{passive:!0};function Jn(t,e,n){t.canvas.removeEventListener(e,n,Qn)}function ti(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function ei(t,e,n){const i=t.canvas,r=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||ti(n.addedNodes,i),e=e&&!ti(n.removedNodes,i);e&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}function ni(t,e,n){const i=t.canvas,r=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||ti(n.removedNodes,i),e=e&&!ti(n.addedNodes,i);e&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}const ii=new Map;let ri=0;function oi(){const t=window.devicePixelRatio;t!==ri&&(ri=t,ii.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function li(t,e,n){const i=t.canvas,r=i&&ie(i);if(!r)return;const o=ct((t,e)=>{const i=r.clientWidth;n(t,e),i<r.clientWidth&&n()},window),l=new ResizeObserver(t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||o(n,i)});return l.observe(r),function(t,e){ii.size||window.addEventListener("resize",oi),ii.set(t,e)}(t,o),l}function si(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){ii.delete(t),ii.size||window.removeEventListener("resize",oi)}(t)}function ai(t,e,n){const i=t.canvas,r=ct(e=>{null!==t.ctx&&n(function(t,e){const n=Kn[t.type]||t.type,{x:i,y:r}=ce(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==r?r:null}}(e,t))},t,t=>{const e=t[0];return[e,e.offsetX,e.offsetY]});return function(t,e,n){t.addEventListener(e,n,Qn)}(i,e,r),r}class ci extends Gn{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t.$chartjs={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Xn(r)){const e=fe(t,"width");void 0!==e&&(t.width=e)}if(Xn(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=fe(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e.$chartjs)return!1;const i=e.$chartjs.initial;["height","width"].forEach(t=>{const r=i[t];n(r)?e.removeAttribute(t):e.setAttribute(t,r)});const r=i.style||{};return Object.keys(r).forEach(t=>{e.style[t]=r[t]}),e.width=e.width,delete e.$chartjs,!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),r={attach:ei,detach:ni,resize:li}[e]||ai;i[e]=r(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];i&&(({attach:si,detach:si,resize:si}[e]||Jn)(t,e,i),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return de(t,e,n,i)}isAttached(t){const e=ie(t);return!(!e||!e.isConnected)}}function ui(t){return!ne()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Zn:ci}var di=Object.freeze({__proto__:null,_detectPlatform:ui,BasePlatform:Gn,BasicPlatform:Zn,DomPlatform:ci});const hi="transparent",pi={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=Zt(t||hi),r=i.valid&&Zt(e||hi);return r&&r.valid?r.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class fi{constructor(t,e,n,i){const r=e[n];i=gn([t.to,i,r,t.from]);const o=gn([t.from,r,i]);this._active=!0,this._fn=t.fn||pi[t.type||typeof o],this._easing=tn[t.easing]||tn.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],r=n-this._start,o=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=r,this._loop=!!t.loop,this._to=gn([t.to,e,i,t.from]),this._from=gn([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,r=this._from,o=this._loop,l=this._to;let s;if(this._active=r!==l&&(o||e<n),!this._active)return this._target[i]=l,void this._notify(!0);e<0?this._target[i]=r:(s=e/n%2,s=o&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[i]=this._fn(r,l,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,n)=>{t.push({res:e,rej:n})})}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}ee.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const gi=Object.keys(ee.animation);ee.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),ee.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),ee.describe("animations",{_fallback:"animation"}),ee.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class mi{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!r(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(n=>{const o=t[n];if(!r(o))return;const l={};for(const t of gi)l[t]=o[t];(i(o.properties)&&o.properties||[n]).forEach(t=>{t!==n&&e.has(t)||e.set(t,l)})})}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}(t,n);if(!i)return[];const r=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const r=t[i[e]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}(t.options.$animations,n).then(()=>{t.options=n},()=>{}),r}_createAnimations(t,e){const n=this._properties,i=[],r=t.$animations||(t.$animations={}),o=Object.keys(e),l=Date.now();let s;for(s=o.length-1;s>=0;--s){const a=o[s];if("$"===a.charAt(0))continue;if("options"===a){i.push(...this._animateOptions(t,e));continue}const c=e[a];let u=r[a];const d=n.get(a);if(u){if(d&&u.active()){u.update(d,c,l);continue}u.cancel()}d&&d.duration?(r[a]=u=new fi(d,t,a,c),i.push(u)):t[a]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(mt.add(this._chart,n),!0):void 0}}function vi(t,e){const n=t&&t.options||{},i=n.reverse,r=void 0===n.min?e:0,o=void 0===n.max?e:0;return{start:i?o:r,end:i?r:o}}function yi(t,e){const n=[],i=t._getSortedDatasetMetas(e);let r,o;for(r=0,o=i.length;r<o;++r)n.push(i[r].index);return n}function bi(t,e,n,i={}){const r=t.keys,l="single"===i.mode;let s,a,c,u;if(null!==e){for(s=0,a=r.length;s<a;++s){if(c=+r[s],c===n){if(i.all)continue;break}u=t.values[c],o(u)&&(l||0===e||N(e)===N(u))&&(e+=u)}return e}}function _i(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function wi(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function xi(t,e,n,i){for(const r of e.getMatchingVisibleMetas(i).reverse()){const e=t[r.index];if(n&&e>0||!n&&e<0)return r.index}return null}function Ei(t,e){const{chart:n,_cachedMeta:i}=t,r=n._stacks||(n._stacks={}),{iScale:o,vScale:l,index:s}=i,a=o.axis,c=l.axis,u=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(o,l,i),d=e.length;let h;for(let t=0;t<d;++t){const n=e[t],{[a]:o,[c]:d}=n;h=(n._stacks||(n._stacks={}))[c]=wi(r,u,o),h[s]=d,h._top=xi(h,l,!0,i.type),h._bottom=xi(h,l,!1,i.type)}}function Si(t,e){const n=t.scales;return Object.keys(n).filter(t=>n[t].axis===e).shift()}function Ci(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n]}}}const Mi=t=>"reset"===t||"none"===t,ki=(t,e)=>e?t:Object.assign({},t);class Di{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=_i(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Ci(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,r=e.xAxisID=s(n.xAxisID,Si(t,"x")),o=e.yAxisID=s(n.yAxisID,Si(t,"y")),l=e.rAxisID=s(n.rAxisID,Si(t,"r")),a=e.indexAxis,c=e.iAxisID=i(a,r,o,l),u=e.vAxisID=i(a,o,r,l);e.xScale=this.getScaleForId(r),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(l),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&lt(this._data,this),t._stacked&&Ci(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(r(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let i,r,o;for(i=0,r=e.length;i<r;++i)o=e[i],n[i]={x:o,y:t[o]};return n}(e);else if(n!==e){if(n){lt(n,this);const t=this._cachedMeta;Ci(t),t._parsed=[]}e&&Object.isExtensible(e)&&ot(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const r=e._stacked;e._stacked=_i(e.vScale,e),e.stack!==n.stack&&(i=!0,Ci(e),e.stack=n.stack),this._resyncElements(t),(i||r!==e._stacked)&&Ei(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:o}=this,{iScale:l,_stacked:s}=n,a=l.axis;let c,u,d,h=0===t&&e===o.length||n._sorted,p=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=o,n._sorted=!0,d=o;else{d=i(o[t])?this.parseArrayData(n,o,t,e):r(o[t])?this.parseObjectData(n,o,t,e):this.parsePrimitiveData(n,o,t,e);const l=()=>null===u[a]||p&&u[a]<p[a];for(c=0;c<e;++c)n._parsed[c+t]=u=d[c],h&&(l()&&(h=!1),p=u);n._sorted=h}s&&Ei(this,d)}parsePrimitiveData(t,e,n,i){const{iScale:r,vScale:o}=t,l=r.axis,s=o.axis,a=r.getLabels(),c=r===o,u=new Array(i);let d,h,p;for(d=0,h=i;d<h;++d)p=d+n,u[d]={[l]:c||r.parse(a[p],p),[s]:o.parse(e[p],p)};return u}parseArrayData(t,e,n,i){const{xScale:r,yScale:o}=t,l=new Array(i);let s,a,c,u;for(s=0,a=i;s<a;++s)c=s+n,u=e[c],l[s]={x:r.parse(u[0],c),y:o.parse(u[1],c)};return l}parseObjectData(t,e,n,i){const{xScale:r,yScale:o}=t,{xAxisKey:l="x",yAxisKey:s="y"}=this._parsing,a=new Array(i);let c,u,d,h;for(c=0,u=i;c<u;++c)d=c+n,h=e[d],a[c]={x:r.parse(_(h,l),d),y:o.parse(_(h,s),d)};return a}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,r=this._cachedMeta,o=e[t.axis];return bi({keys:yi(i,!0),values:e._stacks[t.axis]},o,r.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const r=n[e.axis];let o=null===r?NaN:r;const l=i&&n._stacks[e.axis];i&&l&&(i.values=l,o=bi(i,r,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,r=n._sorted&&t===n.iScale,l=i.length,s=this._getOtherScale(t),a=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:yi(n,!0),values:null})(e,n,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=function(t){const{min:e,max:n,minDefined:i,maxDefined:r}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(s);let h,p;function f(){p=i[h];const e=p[s.axis];return!o(p[t.axis])||u>e||d<e}for(h=0;h<l&&(f()||(this.updateRangeFromParsed(c,t,p,a),!r));++h);if(r)for(h=l-1;h>=0;--h)if(!f()){this.updateRangeFromParsed(c,t,p,a);break}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,r,l;for(i=0,r=e.length;i<r;++i)l=e[i][t.axis],o(l)&&n.push(l);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,r=this.getParsed(t);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:i?""+i.getLabelForValue(r[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,o;return r(t)?(e=t.top,n=t.right,i=t.bottom,o=t.left):e=n=i=o=t,{top:e,right:n,bottom:i,left:o,disabled:!1===t}}(s(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=vi(t,n),r=vi(e,n);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],r=e.chartArea,o=[],l=this._drawStart||0,s=this._drawCount||i.length-l,a=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,r,l,s),c=l;c<l+s;++c){const e=i[c];e.hidden||(e.active&&a?o.push(e):e.draw(t,r))}for(c=0;c<o.length;++c)o[c].draw(t,r)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let r;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];r=e.$context||(e.$context=function(t,e,n){return vn(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),r.parsed=this.getParsed(t),r.raw=i.data[t],r.index=r.dataIndex=t}else r=this.$context||(this.$context=function(t,e){return vn(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!e,r.mode=n,r}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const i="active"===e,r=this._cachedDataOpts,o=t+"-"+e,l=r[o],s=this.enableOptionSharing&&E(n);if(l)return ki(l,s);const a=this.chart.config,c=a.datasetElementScopeKeys(this._type,t),u=i?[t+"Hover","hover",t,""]:[t,""],d=a.getOptionScopes(this.getDataset(),c),h=Object.keys(ee.elements[t]),p=a.resolveNamedOptions(d,h,()=>this.getContext(n,i),u);return p.$shared&&(p.$shared=s,r[o]=Object.freeze(ki(p,s))),p}_resolveAnimations(t,e,n){const i=this.chart,r=this._cachedDataOpts,o="animation-"+e,l=r[o];if(l)return l;let s;if(!1!==i.options.animation){const i=this.chart.config,r=i.datasetAnimationScopeKeys(this._type,e),o=i.getOptionScopes(this.getDataset(),r);s=i.createResolver(o,this.getContext(t,n,e))}const a=new mi(i,s&&s.animations);return s&&s._cacheable&&(r[o]=Object.freeze(a)),a}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Mi(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,r=this.getSharedOptions(n),o=this.includeOptions(e,r)||r!==i;return this.updateSharedOptions(r,e,n),{sharedOptions:r,includeOptions:o}}updateElement(t,e,n,i){Mi(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!Mi(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const r=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(r)||r})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,r=e.length,o=Math.min(r,i);o&&this.parse(0,o),r>i?this._insertElements(i,r-i,t):r<i&&this._removeElements(r,i-r)}_insertElements(t,e,n=!0){const i=this._cachedMeta,r=i.data,o=t+e;let l;const s=t=>{for(t.length+=e,l=t.length-1;l>=o;l--)t[l]=t[l-e]};for(s(r),l=t;l<o;++l)r[l]=new this.dataElementType;this._parsing&&s(i._parsed),this.parse(t,e),n&&this.updateElements(r,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&Ci(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}Di.defaults={},Di.prototype.datasetElementType=null,Di.prototype.dataElementType=null;class Ti{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return H(this.x)&&H(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach(t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]}),i}}Ti.defaults={},Ti.defaultRoutes=void 0;const Li={values:t=>i(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let r,o=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(r="scientific"),o=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}(t,n)}const l=R(Math.abs(o)),s=Math.max(Math.min(-1*Math.floor(l),20),0),a={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(a,this.options.ticks.format),ln(t,i,a)},logarithmic(t,e,n){if(0===t)return"0";const i=t/Math.pow(10,Math.floor(R(t)));return 1===i||2===i||5===i?Li.numeric.call(this,t,e,n):""}};var Ai={formatters:Li};function Pi(t,e){const i=t.options.ticks,r=i.maxTicksLimit||function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),r=t._maxLength/n;return Math.floor(Math.min(i,r))}(t),o=i.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],l=o.length,s=o[0],a=o[l-1],c=[];if(l>r)return function(t,e,n,i){let r,o=0,l=n[0];for(i=Math.ceil(i),r=0;r<t.length;r++)r===l&&(e.push(t[r]),o++,l=n[o*i])}(e,c,o,l/r),c;const u=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),r=e.length/n;if(!i)return Math.max(r,1);const o=F(i);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];if(e>r)return e}return Math.max(r,1)}(o,e,r);if(l>0){let t,i;const r=l>1?Math.round((a-s)/(l-1)):null;for(Oi(e,c,u,n(r)?0:s-r,s),t=0,i=l-1;t<i;t++)Oi(e,c,u,o[t],o[t+1]);return Oi(e,c,u,a,n(r)?e.length:a+r),c}return Oi(e,c,u),c}function Oi(t,e,n,i,r){const o=s(i,0),l=Math.min(s(r,t.length),t.length);let a,c,u,d=0;for(n=Math.ceil(n),r&&(a=r-i,n=a/Math.floor(a/n)),u=o;u<0;)d++,u=Math.round(o+d*n);for(c=Math.max(o,0);c<l;c++)c===u&&(e.push(t[c]),d++,u=Math.round(o+d*n))}ee.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ai.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),ee.route("scale.ticks","color","","color"),ee.route("scale.grid","color","","borderColor"),ee.route("scale.grid","borderColor","","borderColor"),ee.route("scale.title","color","","color"),ee.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),ee.describe("scales",{_fallback:"scale"}),ee.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const Ii=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function Ri(t,e){const n=[],i=t.length/e,r=t.length;let o=0;for(;o<r;o+=i)n.push(t[Math.floor(o)]);return n}function Ni(t,e,n){const i=t.ticks.length,r=Math.min(e,i-1),o=t._startPixel,l=t._endPixel,s=1e-6;let a,c=t.getPixelForTick(r);if(!(n&&(a=1===i?Math.max(c-o,l-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(r-1))/2,c+=r<e?a:-a,c<o-s||c>l+s)))return c}function zi(t){return t.drawTicks?t.tickLength:0}function Fi(t,e){if(!t.display)return 0;const n=fn(t.font,e),r=pn(t.padding);return(i(t.text)?t.text.length:1)*n.lineHeight+r.height}function Hi(t,e,n){let i=dt(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class Bi extends Ti{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:i}=this;return t=l(t,Number.POSITIVE_INFINITY),e=l(e,Number.NEGATIVE_INFINITY),n=l(n,Number.POSITIVE_INFINITY),i=l(i,Number.NEGATIVE_INFINITY),{min:l(t,n),max:l(e,i),minDefined:o(t),maxDefined:o(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:r,maxDefined:o}=this.getUserBounds();if(r&&o)return{min:n,max:i};const s=this.getMatchingVisibleMetas();for(let l=0,a=s.length;l<a;++l)e=s[l].controller.getMinMax(this,t),r||(n=Math.min(n,e.min)),o||(i=Math.max(i,e.max));return n=o&&n>i?i:n,i=r&&n>i?n:i,{min:l(n,l(i,n)),max:l(i,l(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){u(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:r,ticks:o}=this.options,l=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=mn(this,r,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=l<this.ticks.length;this._convertTicksToLabels(s?Ri(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=Pi(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){u(this.options.afterUpdate,[this])}beforeSetDimensions(){u(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){u(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),u(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){u(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,r;for(n=0,i=t.length;n<i;n++)r=t[n],r.label=u(e.callback,[r.value,n,t],this)}afterTickToLabelConversion(){u(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){u(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=this.ticks.length,i=e.minRotation||0,r=e.maxRotation;let o,l,s,a=i;if(!this._isVisible()||!e.display||i>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,h=X(this.chart.width-u,0,this.maxWidth);o=t.offset?this.maxWidth/n:h/(n-1),u+6>o&&(o=h/(n-(t.offset?.5:1)),l=this.maxHeight-zi(t.grid)-e.padding-Fi(t.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),a=U(Math.min(Math.asin(X((c.highest.height+6)/o,-1,1)),Math.asin(X(l/s,-1,1))-Math.asin(X(d/s,-1,1)))),a=Math.max(i,Math.min(r,a))),this.labelRotation=a}afterCalculateLabelRotation(){u(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){u(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:r}}=this,o=this._isVisible(),l=this.isHorizontal();if(o){const o=Fi(i,e.options.font);if(l?(t.width=this.maxWidth,t.height=zi(r)+o):(t.height=this.maxHeight,t.width=zi(r)+o),n.display&&this.ticks.length){const{first:e,last:i,widest:r,highest:o}=this._getLabelSizes(),s=2*n.padding,a=W(this.labelRotation),c=Math.cos(a),u=Math.sin(a);if(l){const e=n.mirror?0:u*r.width+c*o.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=n.mirror?0:c*r.width+u*o.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,i,u,c)}}this._handleMargins(),l?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,i){const{ticks:{align:r,padding:o},position:l}=this.options,s=0!==this.labelRotation,a="top"!==l&&"x"===this.axis;if(this.isHorizontal()){const l=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;s?a?(u=i*t.width,d=n*e.height):(u=n*t.height,d=i*e.width):"start"===r?d=e.width:"end"===r?u=t.width:"inner"!==r&&(u=t.width/2,d=e.width/2),this.paddingLeft=Math.max((u-l+o)*this.width/(this.width-l),0),this.paddingRight=Math.max((d-c+o)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===r?(n=0,i=t.height):"end"===r&&(n=e.height,i=0),this.paddingTop=n+o,this.paddingBottom=i+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){u(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)n(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=Ri(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length)}return t}_computeLabelSizes(t,e){const{ctx:r,_longestTextCache:o}=this,l=[],s=[];let a,c,u,h,p,f,g,m,v,y,b,_=0,w=0;for(a=0;a<e;++a){if(h=t[a].label,p=this._resolveTickFontOptions(a),r.font=f=p.string,g=o[f]=o[f]||{data:{},gc:[]},m=p.lineHeight,v=y=0,n(h)||i(h)){if(i(h))for(c=0,u=h.length;c<u;++c)b=h[c],n(b)||i(b)||(v=me(r,g.data,g.gc,v,b),y+=m)}else v=me(r,g.data,g.gc,v,h),y=m;l.push(v),s.push(y),_=Math.max(v,_),w=Math.max(y,w)}!function(t,e){d(t,t=>{const n=t.gc,i=n.length/2;let r;if(i>e){for(r=0;r<i;++r)delete t.data[n[r]];n.splice(0,i)}})}(o,e);const x=l.indexOf(_),E=s.indexOf(w),S=t=>({width:l[t]||0,height:s[t]||0});return{first:S(0),last:S(e-1),widest:S(x),highest:S(E),widths:l,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return Q(this._alignToPixels?ye(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return vn(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=vn(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=W(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),r=this._getLabelSizes(),o=t.autoSkipPadding||0,l=r?r.widest.width+o:0,s=r?r.highest.height+o:0;return this.isHorizontal()?s*n>l*i?l/n:s/i:s*i<l*n?s/n:l/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:o,position:l}=i,a=o.offset,c=this.isHorizontal(),u=this.ticks.length+(a?1:0),d=zi(o),h=[],p=o.setContext(this.getContext()),f=p.drawBorder?p.borderWidth:0,g=f/2,m=function(t){return ye(n,t,f)};let v,y,b,_,w,x,E,S,C,M,k,D;if("top"===l)v=m(this.bottom),x=this.bottom-d,S=v-g,M=m(t.top)+g,D=t.bottom;else if("bottom"===l)v=m(this.top),M=t.top,D=m(t.bottom)-g,x=v+g,S=this.top+d;else if("left"===l)v=m(this.right),w=this.right-d,E=v-g,C=m(t.left)+g,k=t.right;else if("right"===l)v=m(this.left),C=t.left,k=m(t.right)-g,w=v+g,E=this.left+d;else if("x"===e){if("center"===l)v=m((t.top+t.bottom)/2+.5);else if(r(l)){const t=Object.keys(l)[0],e=l[t];v=m(this.chart.scales[t].getPixelForValue(e))}M=t.top,D=t.bottom,x=v+g,S=x+d}else if("y"===e){if("center"===l)v=m((t.left+t.right)/2);else if(r(l)){const t=Object.keys(l)[0],e=l[t];v=m(this.chart.scales[t].getPixelForValue(e))}w=v-g,E=w-d,C=t.left,k=t.right}const T=s(i.ticks.maxTicksLimit,u),L=Math.max(1,Math.ceil(u/T));for(y=0;y<u;y+=L){const t=o.setContext(this.getContext(y)),e=t.lineWidth,i=t.color,r=t.borderDash||[],l=t.borderDashOffset,s=t.tickWidth,u=t.tickColor,d=t.tickBorderDash||[],p=t.tickBorderDashOffset;b=Ni(this,y,a),void 0!==b&&(_=ye(n,b,e),c?w=E=C=k=_:x=S=M=D=_,h.push({tx1:w,ty1:x,tx2:E,ty2:S,x1:C,y1:M,x2:k,y2:D,width:e,color:i,borderDash:r,borderDashOffset:l,tickWidth:s,tickColor:u,tickBorderDash:d,tickBorderDashOffset:p}))}return this._ticksLength=u,this._borderValue=v,h}_computeLabelItems(t){const e=this.axis,n=this.options,{position:o,ticks:l}=n,s=this.isHorizontal(),a=this.ticks,{align:c,crossAlign:u,padding:d,mirror:h}=l,p=zi(n.grid),f=p+d,g=h?-d:f,m=-W(this.labelRotation),v=[];let y,b,_,w,x,E,S,C,M,k,D,T,L="middle";if("top"===o)E=this.bottom-g,S=this._getXAxisLabelAlignment();else if("bottom"===o)E=this.top+g,S=this._getXAxisLabelAlignment();else if("left"===o){const t=this._getYAxisLabelAlignment(p);S=t.textAlign,x=t.x}else if("right"===o){const t=this._getYAxisLabelAlignment(p);S=t.textAlign,x=t.x}else if("x"===e){if("center"===o)E=(t.top+t.bottom)/2+f;else if(r(o)){const t=Object.keys(o)[0],e=o[t];E=this.chart.scales[t].getPixelForValue(e)+f}S=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===o)x=(t.left+t.right)/2-f;else if(r(o)){const t=Object.keys(o)[0],e=o[t];x=this.chart.scales[t].getPixelForValue(e)}S=this._getYAxisLabelAlignment(p).textAlign}"y"===e&&("start"===c?L="top":"end"===c&&(L="bottom"));const A=this._getLabelSizes();for(y=0,b=a.length;y<b;++y){_=a[y],w=_.label;const t=l.setContext(this.getContext(y));C=this.getPixelForTick(y)+l.labelOffset,M=this._resolveTickFontOptions(y),k=M.lineHeight,D=i(w)?w.length:1;const e=D/2,n=t.color,r=t.textStrokeColor,c=t.textStrokeWidth;let d,p=S;if(s?(x=C,"inner"===S&&(p=y===b-1?this.options.reverse?"left":"right":0===y?this.options.reverse?"right":"left":"center"),T="top"===o?"near"===u||0!==m?-D*k+k/2:"center"===u?-A.highest.height/2-e*k+k:-A.highest.height+k/2:"near"===u||0!==m?k/2:"center"===u?A.highest.height/2-e*k:A.highest.height-D*k,h&&(T*=-1)):(E=C,T=(1-D)*k/2),t.showLabelBackdrop){const e=pn(t.backdropPadding),n=A.heights[y],i=A.widths[y];let r=E+T-e.top,o=x-e.left;switch(L){case"middle":r-=n/2;break;case"bottom":r-=n}switch(S){case"center":o-=i/2;break;case"right":o-=i}d={left:o,top:r,width:i+e.width,height:n+e.height,color:t.backdropColor}}v.push({rotation:m,label:w,font:M,color:n,strokeColor:r,strokeWidth:c,textOffset:T,textAlign:p,textBaseline:L,translation:[x,E],backdrop:d})}return v}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-W(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:r}}=this.options,o=t+r,l=this._getLabelSizes().widest.width;let s,a;return"left"===e?i?(a=this.right+r,"near"===n?s="left":"center"===n?(s="center",a+=l/2):(s="right",a+=l)):(a=this.right-o,"near"===n?s="right":"center"===n?(s="center",a-=l/2):(s="left",a=this.left)):"right"===e?i?(a=this.left+r,"near"===n?s="right":"center"===n?(s="center",a-=l/2):(s="left",a-=l)):(a=this.left+o,"near"===n?s="left":"center"===n?(s="center",a+=l/2):(s="right",a=this.right)):s="right",{textAlign:s,x:a}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:r,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,r,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex(e=>e.value===t);return n>=0?e.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,o;const l=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(r=0,o=i.length;r<o;++r){const t=i[r];e.drawOnChartArea&&l({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&l({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:n}}=this,i=n.setContext(this.getContext()),r=n.drawBorder?i.borderWidth:0;if(!r)return;const o=n.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let s,a,c,u;this.isHorizontal()?(s=ye(t,this.left,r)-r/2,a=ye(t,this.right,o)+o/2,c=u=l):(c=ye(t,this.top,r)-r/2,u=ye(t,this.bottom,o)+o/2,s=a=l),e.save(),e.lineWidth=i.borderWidth,e.strokeStyle=i.borderColor,e.beginPath(),e.moveTo(s,c),e.lineTo(a,u),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&Ee(e,n);const i=this._labelItems||(this._labelItems=this._computeLabelItems(t));let r,o;for(r=0,o=i.length;r<o;++r){const t=i[r],n=t.font,o=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),ke(e,o,0,t.textOffset,n,t)}n&&Se(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:o}}=this;if(!n.display)return;const l=fn(n.font),s=pn(n.padding),a=n.align;let c=l.lineHeight/2;"bottom"===e||"center"===e||r(e)?(c+=s.bottom,i(n.text)&&(c+=l.lineHeight*(n.text.length-1))):c+=s.top;const{titleX:u,titleY:d,maxWidth:h,rotation:p}=function(t,e,n,i){const{top:o,left:l,bottom:s,right:a,chart:c}=t,{chartArea:u,scales:d}=c;let h,p,f,g=0;const m=s-o,v=a-l;if(t.isHorizontal()){if(p=ht(i,l,a),r(n)){const t=Object.keys(n)[0],i=n[t];f=d[t].getPixelForValue(i)+m-e}else f="center"===n?(u.bottom+u.top)/2+m-e:Ii(t,n,e);h=a-l}else{if(r(n)){const t=Object.keys(n)[0],i=n[t];p=d[t].getPixelForValue(i)-v+e}else p="center"===n?(u.left+u.right)/2-v+e:Ii(t,n,e);f=ht(i,s,o),g="left"===n?-P:P}return{titleX:p,titleY:f,maxWidth:h,rotation:g}}(this,c,e,a);ke(t,n.text,0,0,l,{color:n.color,maxWidth:h,rotation:p,textAlign:Hi(a,e,o),textBaseline:"middle",translation:[u,d]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=s(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===Bi.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let r,o;for(r=0,o=e.length;r<o;++r){const o=e[r];o[n]!==this.id||t&&o.type!==t||i.push(o)}return i}_resolveTickFontOptions(t){return fn(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class ji{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,r=t.id,o=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+t);return r in i||(i[r]=t,function(t,e,n){const i=m(Object.create(null),[n?ee.get(n):{},ee.get(e),t.defaults]);ee.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach(n=>{const i=n.split("."),r=i.pop(),o=[t].concat(i).join("."),l=e[n].split("."),s=l.pop(),a=l.join(".");ee.route(o,r,a,s)})}(e,t.defaultRoutes),t.descriptors&&ee.describe(e,t.descriptors)}(t,o,n),this.override&&ee.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in ee[i]&&(delete ee[i][n],this.override&&delete Xt[n])}}var Vi=new class{constructor(){this.controllers=new ji(Di,"datasets",!0),this.elements=new ji(Ti,"elements"),this.plugins=new ji(Object,"plugins"),this.scales=new ji(Bi,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach(e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):d(e,e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)})})}_exec(t,e,n){const i=x(t);u(n["before"+i],[],n),e[t](n),u(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}};class Wi{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const r=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(r,t,e,n);return"afterDestroy"===e&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,n,i){i=i||{};for(const r of t){const t=r.plugin;if(!1===u(t[n],[e,i,r.options],t)&&i.cancelable)return!1}return!0}invalidate(){n(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,i=s(n.options&&n.options.plugins,{}),r=function(t){const e={},n=[],i=Object.keys(Vi.plugins.items);for(let t=0;t<i.length;t++)n.push(Vi.getPlugin(i[t]));const r=t.plugins||[];for(let t=0;t<r.length;t++){const i=r[t];-1===n.indexOf(i)&&(n.push(i),e[i.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},i,r){const o=[],l=t.getContext();for(const s of e){const e=s.id,a=Ui(i[e],r);null!==a&&o.push({plugin:s,options:Yi(t.config,{plugin:s,local:n[e]},a,l)})}return o}(t,r,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function Ui(t,e){return e||!1!==t?!0===t?{}:t:null}function Yi(t,{plugin:e,local:n},i,r){const o=t.pluginScopeKeys(e),l=t.getOptionScopes(i,o);return n&&e.defaults&&l.push(e.defaults),t.createResolver(l,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function $i(t,e){const n=ee.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function qi(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(n=e.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.charAt(0).toLowerCase();var n}function Gi(t){const e=t.options||(t.options={});e.plugins=s(e.plugins,{}),e.scales=function(t,e){const n=Xt[t.type]||{scales:{}},i=e.scales||{},o=$i(t.type,e),l=Object.create(null),s=Object.create(null);return Object.keys(i).forEach(t=>{const e=i[t];if(!r(e))return console.error("Invalid scale configuration for scale: "+t);if(e._proxy)return console.warn("Ignoring resolver passed as options for scale: "+t);const a=qi(t,e),c=function(t,e){return t===e?"_index_":"_value_"}(a,o),u=n.scales||{};l[a]=l[a]||t,s[t]=v(Object.create(null),[{axis:a},e,u[a],u[c]])}),t.data.datasets.forEach(n=>{const r=n.type||t.type,o=n.indexAxis||$i(r,e),a=(Xt[r]||{}).scales||{};Object.keys(a).forEach(t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,o),r=n[e+"AxisID"]||l[e]||e;s[r]=s[r]||Object.create(null),v(s[r],[{axis:e},i[r],a[t]])})}),Object.keys(s).forEach(t=>{const e=s[t];v(e,[ee.scales[e.type],ee.scale])}),s}(t,e)}function Zi(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Ki=new Map,Xi=new Set;function Qi(t,e){let n=Ki.get(t);return n||(n=e(),Ki.set(t,n),Xi.add(n)),n}const Ji=(t,e,n)=>{const i=_(e,n);void 0!==i&&t.add(i)};class tr{constructor(t){this._config=function(t){return(t=t||{}).data=Zi(t.data),Gi(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Zi(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Gi(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Qi(t,()=>[["datasets."+t,""]])}datasetAnimationScopeKeys(t,e){return Qi(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,"transitions."+e],["datasets."+t,""]])}datasetElementScopeKeys(t,e){return Qi(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,"datasets."+t,"elements."+e,""]])}pluginScopeKeys(t){const e=t.id;return Qi(`${this.type}-plugin-${e}`,()=>[["plugins."+e,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:r}=this,o=this._cachedScopes(t,n),l=o.get(e);if(l)return l;const s=new Set;e.forEach(e=>{t&&(s.add(t),e.forEach(e=>Ji(s,t,e))),e.forEach(t=>Ji(s,i,t)),e.forEach(t=>Ji(s,Xt[r]||{},t)),e.forEach(t=>Ji(s,ee,t)),e.forEach(t=>Ji(s,Qt,t))});const a=Array.from(s);return 0===a.length&&a.push(Object.create(null)),Xi.has(e)&&o.set(e,a),a}chartOptionScopes(){const{options:t,type:e}=this;return[t,Xt[e]||{},ee.datasets[e]||{},{type:e},ee,Qt]}resolveNamedOptions(t,e,n,r=[""]){const o={$shared:!0},{resolver:l,subPrefixes:s}=er(this._resolverCache,t,r);let a=l;(function(t,e){const{isScriptable:n,isIndexable:r}=Pe(t);for(const o of e){const e=n(o),l=r(o),s=(l||e)&&t[o];if(e&&(S(s)||nr(s))||l&&i(s))return!0}return!1})(l,e)&&(o.$shared=!1,a=Ae(l,n=S(n)?n():n,this.createResolver(t,n,s)));for(const t of e)o[t]=a[t];return o}createResolver(t,e,n=[""],i){const{resolver:o}=er(this._resolverCache,t,n);return r(e)?Ae(o,e,void 0,i):o}}function er(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const r=n.join();let o=i.get(r);return o||(o={resolver:Le(e,n),subPrefixes:n.filter(t=>!t.toLowerCase().includes("hover"))},i.set(r,o)),o}const nr=t=>r(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||S(t[n]),!1),ir=["top","bottom","left","right","chartArea"];function rr(t,e){return"top"===t||"bottom"===t||-1===ir.indexOf(t)&&"x"===e}function or(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function lr(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),u(n&&n.onComplete,[t],e)}function sr(t){const e=t.chart,n=e.options.animation;u(n&&n.onProgress,[t],e)}function ar(t){return ne()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const cr={},ur=t=>{const e=ar(t);return Object.values(cr).filter(t=>t.canvas===e).pop()};function dr(t,e,n){const i=Object.keys(t);for(const r of i){const i=+r;if(i>=e){const o=t[r];delete t[r],(n>0||i>e)&&(t[i+n]=o)}}}class hr{constructor(t,n){const i=this.config=new tr(n),r=ar(t),o=ur(r);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const l=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||ui(r)),this.platform.updateConfig(i);const s=this.platform.acquireContext(r,l.aspectRatio),a=s&&s.canvas,c=a&&a.height,u=a&&a.width;this.id=e(),this.ctx=s,this.canvas=a,this.width=u,this.height=c,this._options=l,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Wi,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=ut(t=>this.update(t),l.resizeDelay||0),this._dataChanges=[],cr[this.id]=this,s&&a?(mt.listen(this,"complete",lr),mt.listen(this,"progress",sr),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:r,_aspectRatio:o}=this;return n(t)?e&&o?o:r?i/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():he(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return be(this.canvas,this.ctx),this}stop(){return mt.stop(this),this}resize(t,e){mt.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,e,r),l=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,he(this,l,!0)&&(this.notifyPlugins("resize",{size:o}),u(n.onResize,[this,o],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){d(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce((t,e)=>(t[e]=!1,t),{});let r=[];e&&(r=r.concat(Object.keys(e).map(t=>{const n=e[t],i=qi(t,n),r="r"===i,o="x"===i;return{options:n,dposition:r?"chartArea":o?"bottom":"left",dtype:r?"radialLinear":o?"category":"linear"}}))),d(r,e=>{const r=e.options,o=r.id,l=qi(o,r),a=s(r.type,e.dtype);void 0!==r.position&&rr(r.position,l)===rr(e.dposition)||(r.position=e.dposition),i[o]=!0;let c=null;o in n&&n[o].type===a?c=n[o]:(c=new(Vi.getScale(a))({id:o,type:a,ctx:this.ctx,chart:this}),n[c.id]=c),c.init(r,t)}),d(i,(t,e)=>{t||delete n[e]}),d(n,t=>{qn.configure(this,t,t.options),qn.addBox(this,t)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort((t,e)=>t.index-e.index),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(or("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((t,n)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let r=this.getDatasetMeta(n);const o=i.type||this.config.type;if(r.type&&r.type!==o&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=o,r.indexAxis=i.indexAxis||$i(o,this.options),r.order=i.order||0,r.index=n,r.label=""+i.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const e=Vi.getController(o),{datasetElementType:i,dataElementType:l}=ee.datasets[o];Object.assign(e.prototype,{dataElementType:Vi.getElement(l),datasetElementType:i&&Vi.getElement(i)}),r.controller=new e(this,n),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){d(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!i&&-1===r.indexOf(e);e.buildOrUpdateElements(n),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=n.layout.autoPadding?o:0,this._updateLayout(o),i||d(r,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(or("z","_idx"));const{_active:l,_lastEvent:s}=this;s?this._eventHandler(s,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){d(this.scales,t=>{qn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);C(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:r}of e)dr(t,i,"_removeElements"===n?-r:r)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),i=n(0);for(let t=1;t<e;t++)if(!C(i,n(t)))return;return Array.from(i).map(t=>t.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;qn.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],d(this.boxes,t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,S(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(mt.has(this)?this.attached&&!mt.running(this)&&mt.start(this):(this.draw(),lr({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,r;for(i=0,r=e.length;i<r;++i){const r=e[i];t&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,i=!n.disabled,r=this.chartArea,o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(i&&Ee(e,{left:!1===n.left?0:r.left-n.left,right:!1===n.right?this.width:r.right+n.right,top:!1===n.top?0:r.top-n.top,bottom:!1===n.bottom?this.height:r.bottom+n.bottom}),t.controller.draw(),i&&Se(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return xe(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const r=Rn.modes[e];return"function"==typeof r?r(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter(t=>t&&t._dataset===e).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=vn(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const i=n?"show":"hide",r=this.getDatasetMeta(t),o=r.controller._resolveAnimations(void 0,i);E(e)?(r.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),o.update(r,{visible:n}),this.update(e=>e.datasetIndex===t?i:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),mt.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),be(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete cr[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};d(this.options.events,t=>n(t,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},r=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const l=()=>{i("attach",l),this.attached=!0,this.resize(),n("resize",r),n("detach",o)};o=()=>{this.attached=!1,i("resize",r),this._stop(),this._resize(0,0),n("attach",l)},e.isAttached(this.canvas)?l():o()}unbindEvents(){d(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},d(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let r,o,l,s;for("dataset"===e&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+i+"DatasetHoverStyle"]()),l=0,s=t.length;l<s;++l){o=t[l];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map(({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}});!h(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}_updateHoverStyles(t,e,n){const i=this.options.hover,r=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),o=r(e,t),l=n?t:r(t,e);o.length&&this.updateHoverStyle(o,i.mode,!1),l.length&&i.mode&&this.updateHoverStyle(l,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const r=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(r||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:r}=this,o=e,l=this._getActiveElements(t,i,n,o),s=M(t),a=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,s);n&&(this._lastEvent=null,u(r.onHover,[t,l,this],this),s&&u(r.onClick,[t,l,this],this));const c=!h(l,i);return(c||e)&&(this._active=l,this._updateHoverStyles(l,i,e)),this._lastEvent=a,c}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,i)}}const pr=()=>d(hr.instances,t=>t._plugins.invalidate());function fr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}Object.defineProperties(hr,{defaults:{enumerable:!0,value:ee},instances:{enumerable:!0,value:cr},overrides:{enumerable:!0,value:Xt},registry:{enumerable:!0,value:Vi},version:{enumerable:!0,value:"3.9.1"},getChart:{enumerable:!0,value:ur},register:{enumerable:!0,value:(...t)=>{Vi.add(...t),pr()}},unregister:{enumerable:!0,value:(...t)=>{Vi.remove(...t),pr()}}});class gr{constructor(t){this.options=t||{}}init(t){}formats(){return fr()}parse(t,e){return fr()}format(t,e){return fr()}add(t,e,n){return fr()}diff(t,e,n){return fr()}startOf(t,e,n){return fr()}endOf(t,e){return fr()}}gr.override=function(t){Object.assign(gr.prototype,t)};var mr={_date:gr};function vr(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,r=n.length;e<r;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=st(i.sort((t,e)=>t-e))}return t._cache.$bar}(e,t.type);let i,r,o,l,s=e._length;const a=()=>{32767!==o&&-32768!==o&&(E(l)&&(s=Math.min(s,Math.abs(o-l)||s)),l=o)};for(i=0,r=n.length;i<r;++i)o=e.getPixelForValue(n[i]),a();for(l=void 0,i=0,r=e.ticks.length;i<r;++i)o=e.getPixelForTick(i),a();return s}function yr(t,e,n,r){return i(t)?function(t,e,n,i){const r=n.parse(t[0],i),o=n.parse(t[1],i),l=Math.min(r,o),s=Math.max(r,o);let a=l,c=s;Math.abs(l)>Math.abs(s)&&(a=s,c=l),e[n.axis]=c,e._custom={barStart:a,barEnd:c,start:r,end:o,min:l,max:s}}(t,e,n,r):e[n.axis]=n.parse(t,r),e}function br(t,e,n,i){const r=t.iScale,o=t.vScale,l=r.getLabels(),s=r===o,a=[];let c,u,d,h;for(c=n,u=n+i;c<u;++c)h=e[c],d={},d[r.axis]=s||r.parse(l[c],c),a.push(yr(h,d,o,c));return a}function _r(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function wr(t,e,n,i){let r=e.borderSkipped;const o={};if(!r)return void(t.borderSkipped=o);if(!0===r)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:l,end:s,reverse:a,top:c,bottom:u}=function(t){let e,n,i,r,o;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(r="end",o="start"):(r="start",o="end"),{start:n,end:i,reverse:e,top:r,bottom:o}}(t);"middle"===r&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?r=c:(n._bottom||0)===i?r=u:(o[xr(u,l,s,a)]=!0,r=c)),o[xr(r,l,s,a)]=!0,t.borderSkipped=o}function xr(t,e,n,i){var r,o,l;return i?(l=n,t=Er(t=(r=t)===(o=e)?l:r===l?o:r,n,e)):t=Er(t,e,n),t}function Er(t,e,n){return"start"===t?e:"end"===t?n:t}function Sr(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}class Cr extends Di{parsePrimitiveData(t,e,n,i){return br(t,e,n,i)}parseArrayData(t,e,n,i){return br(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:r,vScale:o}=t,{xAxisKey:l="x",yAxisKey:s="y"}=this._parsing,a="x"===r.axis?l:s,c="x"===o.axis?l:s,u=[];let d,h,p,f;for(d=n,h=n+i;d<h;++d)f=e[d],p={},p[r.axis]=r.parse(_(f,a),d),u.push(yr(_(f,c),p,o,d));return u}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const r=n._custom;r&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,r=this.getParsed(t),o=r._custom,l=_r(o)?"["+o.start+", "+o.end+"]":""+i.getLabelForValue(r[i.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,i,r){const o="reset"===r,{index:l,_cachedMeta:{vScale:s}}=this,a=s.getBasePixel(),c=s.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(e,r);for(let p=e;p<e+i;p++){const e=this.getParsed(p),i=o||n(e[s.axis])?{base:a,head:a}:this._calculateBarValuePixels(p),f=this._calculateBarIndexPixels(p,u),g=(e._stacks||{})[s.axis],m={horizontal:c,base:i.base,enableBorderRadius:!g||_r(e._custom)||l===g._top||l===g._bottom,x:c?i.head:f.center,y:c?f.center:i.head,height:c?f.size:Math.abs(i.size),width:c?Math.abs(i.size):f.size};h&&(m.options=d||this.resolveDataElementOptions(p,t[p].active?"active":r));const v=m.options||t[p].options;wr(m,v,g,l),Sr(m,v,u.ratio),this.updateElement(t[p],p,m,r)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,r=i.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),o=i.options.stacked,l=[],s=t=>{const i=t.controller.getParsed(e),r=i&&i[t.vScale.axis];if(n(r)||isNaN(r))return!0};for(const n of r)if((void 0===e||!s(n))&&((!1===o||-1===l.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&l.push(n.stack),n.index===t))break;return l.length||l.push(void 0),l}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),r=void 0!==e?i.indexOf(e):-1;return-1===r?i.length-1:r}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let r,o;for(r=0,o=e.data.length;r<o;++r)i.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const l=t.barThickness;return{min:l||vr(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:l?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i},options:{base:r,minBarLength:o}}=this,l=r||0,s=this.getParsed(t),a=s._custom,c=_r(a);let u,d,h=s[e.axis],p=0,f=i?this.applyStack(e,s,i):h;f!==h&&(p=f-h,f=h),c&&(h=a.barStart,f=a.barEnd-a.barStart,0!==h&&N(h)!==N(a.barEnd)&&(p=0),p+=h);const g=n(r)||c?p:r;let m=e.getPixelForValue(g);if(u=this.chart.getDataVisibility(t)?e.getPixelForValue(p+f):m,d=u-m,Math.abs(d)<o){d=function(t,e,n){return 0!==t?N(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(d,e,l)*o,h===l&&(m-=d/2);const t=e.getPixelForDecimal(0),n=e.getPixelForDecimal(1),i=Math.min(t,n),r=Math.max(t,n);m=Math.max(Math.min(m,r),i),u=m+d}if(m===e.getPixelForValue(l)){const t=N(d)*e.getLineWidthForValue(l)/2;m+=t,d-=t}return{size:d,base:m,head:u,center:u+d/2}}_calculateBarIndexPixels(t,e){const i=e.scale,r=this.options,o=r.skipNull,l=s(r.maxBarThickness,1/0);let a,c;if(e.grouped){const i=o?this._getStackCount(t):e.stackCount,s="flex"===r.barThickness?function(t,e,n,i){const r=e.pixels,o=r[t];let l=t>0?r[t-1]:null,s=t<r.length-1?r[t+1]:null;const a=n.categoryPercentage;null===l&&(l=o-(null===s?e.end-e.start:s-o)),null===s&&(s=o+o-l);const c=o-(o-Math.min(l,s))/2*a;return{chunk:Math.abs(s-l)/2*a/i,ratio:n.barPercentage,start:c}}(t,e,r,i):function(t,e,i,r){const o=i.barThickness;let l,s;return n(o)?(l=e.min*i.categoryPercentage,s=i.barPercentage):(l=o*r,s=1),{chunk:l/r,ratio:s,start:e.pixels[t]-l/2}}(t,e,r,i),u=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=s.start+s.chunk*u+s.chunk/2,c=Math.min(l,s.chunk*s.ratio)}else a=i.getPixelForValue(this.getParsed(t)[i.axis],t),c=Math.min(l,e.min*e.ratio);return{base:a-c/2,head:a+c/2,center:a,size:c}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let r=0;for(;r<i;++r)null!==this.getParsed(r)[e.axis]&&n[r].draw(this._ctx)}}Cr.id="bar",Cr.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Cr.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Mr extends Di{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,i){const r=super.parsePrimitiveData(t,e,n,i);for(let t=0;t<r.length;t++)r[t]._custom=this.resolveDataElementOptions(t+n).radius;return r}parseArrayData(t,e,n,i){const r=super.parseArrayData(t,e,n,i);for(let t=0;t<r.length;t++){const i=e[n+t];r[t]._custom=s(i[2],this.resolveDataElementOptions(t+n).radius)}return r}parseObjectData(t,e,n,i){const r=super.parseObjectData(t,e,n,i);for(let t=0;t<r.length;t++){const i=e[n+t];r[t]._custom=s(i&&i.r&&+i.r,this.resolveDataElementOptions(t+n).radius)}return r}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:n,yScale:i}=e,r=this.getParsed(t),o=n.getLabelForValue(r.x),l=i.getLabelForValue(r.y),s=r._custom;return{label:e.label,value:"("+o+", "+l+(s?", "+s:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,i){const r="reset"===i,{iScale:o,vScale:l}=this._cachedMeta,{sharedOptions:s,includeOptions:a}=this._getSharedOptions(e,i),c=o.axis,u=l.axis;for(let d=e;d<e+n;d++){const e=t[d],n=!r&&this.getParsed(d),h={},p=h[c]=r?o.getPixelForDecimal(.5):o.getPixelForValue(n[c]),f=h[u]=r?l.getBasePixel():l.getPixelForValue(n[u]);h.skip=isNaN(p)||isNaN(f),a&&(h.options=s||this.resolveDataElementOptions(d,e.active?"active":i),r&&(h.options.radius=0)),this.updateElement(e,d,h,i)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let i=super.resolveDataElementOptions(t,e);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const r=i.radius;return"active"!==e&&(i.radius=0),i.radius+=s(n&&n._custom,r),i}}Mr.id="bubble",Mr.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},Mr.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class kr extends Di{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let o,l,s=t=>+n[t];if(r(n[t])){const{key:t="value"}=this._parsing;s=e=>+_(n[e],t)}for(o=t,l=t+e;o<l;++o)i._parsed[o]=s(o)}}_getRotation(){return W(this.options.rotation-90)}_getCircumference(){return W(this.options.circumference)}_getRotationExtents(){let t=D,e=-D;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){const i=this.chart.getDatasetMeta(n).controller,r=i._getRotation(),o=i._getCircumference();t=Math.min(t,r),e=Math.max(e,r+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,i=this._cachedMeta,r=i.data,o=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,l=Math.max((Math.min(n.width,n.height)-o)/2,0),s=Math.min(a(this.options.cutout,l),1),u=this._getRingWeight(this.index),{circumference:d,rotation:h}=this._getRotationExtents(),{ratioX:p,ratioY:f,offsetX:g,offsetY:m}=function(t,e,n){let i=1,r=1,o=0,l=0;if(e<D){const s=t,a=s+e,c=Math.cos(s),u=Math.sin(s),d=Math.cos(a),h=Math.sin(a),p=(t,e,i)=>K(t,s,a,!0)?1:Math.max(e,e*n,i,i*n),f=(t,e,i)=>K(t,s,a,!0)?-1:Math.min(e,e*n,i,i*n),g=p(0,c,d),m=p(P,u,h),v=f(k,c,d),y=f(k+P,u,h);i=(g-v)/2,r=(m-y)/2,o=-(g+v)/2,l=-(m+y)/2}return{ratioX:i,ratioY:r,offsetX:o,offsetY:l}}(h,d,s),v=(n.width-o)/p,y=(n.height-o)/f,b=Math.max(Math.min(v,y)/2,0),_=c(this.options.radius,b),w=(_-Math.max(_*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*_,this.offsetY=m*_,i.total=this.calculateTotal(),this.outerRadius=_-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*u,0),this.updateElements(r,0,r.length,t)}_circumference(t,e){const n=this.options,i=this._cachedMeta,r=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===i._parsed[t]||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*r/D)}updateElements(t,e,n,i){const r="reset"===i,o=this.chart,l=o.chartArea,s=o.options.animation,a=(l.left+l.right)/2,c=(l.top+l.bottom)/2,u=r&&s.animateScale,d=u?0:this.innerRadius,h=u?0:this.outerRadius,{sharedOptions:p,includeOptions:f}=this._getSharedOptions(e,i);let g,m=this._getRotation();for(g=0;g<e;++g)m+=this._circumference(g,r);for(g=e;g<e+n;++g){const e=this._circumference(g,r),n=t[g],o={x:a+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:h,innerRadius:d};f&&(o.options=p||this.resolveDataElementOptions(g,n.active?"active":i)),m+=e,this.updateElement(n,g,o,i)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,i=0;for(n=0;n<e.length;n++){const r=t._parsed[n];null===r||isNaN(r)||!this.chart.getDataVisibility(n)||e[n].hidden||(i+=Math.abs(r))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?D*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],r=ln(e._parsed[t],n.options.locale);return{label:i[t]||"",value:r}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,r,o,l,s;if(!t)for(i=0,r=n.data.datasets.length;i<r;++i)if(n.isDatasetVisible(i)){o=n.getDatasetMeta(i),t=o.data,l=o.controller;break}if(!t)return 0;for(i=0,r=t.length;i<r;++i)s=l.resolveDataElementOptions(i),"inner"!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,i=t.length;n<i;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(s(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}kr.id="doughnut",kr.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},kr.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},kr.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((e,i)=>{const r=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,lineWidth:r.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const n=": "+t.formattedValue;return i(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class Dr extends Di{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:i=[],_dataset:r}=e,o=this.chart._animationsDisabled;let{start:l,count:s}=ft(e,i,o);this._drawStart=l,this._drawCount=s,gt(e)&&(l=0,s=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=i;const a=this.resolveDatasetElementOptions(t);this.options.showLine||(a.borderWidth=0),a.segment=this.options.segment,this.updateElement(n,void 0,{animated:!o,options:a},t),this.updateElements(i,l,s,t)}updateElements(t,e,i,r){const o="reset"===r,{iScale:l,vScale:s,_stacked:a,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(e,r),h=l.axis,p=s.axis,{spanGaps:f,segment:g}=this.options,m=H(f)?f:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||o||"none"===r;let y=e>0&&this.getParsed(e-1);for(let f=e;f<e+i;++f){const e=t[f],i=this.getParsed(f),b=v?e:{},_=n(i[p]),w=b[h]=l.getPixelForValue(i[h],f),x=b[p]=o||_?s.getBasePixel():s.getPixelForValue(a?this.applyStack(s,i,a):i[p],f);b.skip=isNaN(w)||isNaN(x)||_,b.stop=f>0&&Math.abs(i[h]-y[h])>m,g&&(b.parsed=i,b.raw=c.data[f]),d&&(b.options=u||this.resolveDataElementOptions(f,e.active?"active":r)),v||this.updateElement(e,f,b,r),y=i}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const r=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,r,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Dr.id="line",Dr.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Dr.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Tr extends Di{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],r=ln(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:r}}parseObjectData(t,e,n,i){return We.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((t,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<e.min&&(e.min=i),i>e.max&&(e.max=i))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),r=Math.max(i/2,0),o=(r-Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=r-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,n,i){const r="reset"===i,o=this.chart,l=o.options.animation,s=this._cachedMeta.rScale,a=s.xCenter,c=s.yCenter,u=s.getIndexAngle(0)-.5*k;let d,h=u;const p=360/this.countVisibleElements();for(d=0;d<e;++d)h+=this._computeAngle(d,i,p);for(d=e;d<e+n;d++){const e=t[d];let n=h,f=h+this._computeAngle(d,i,p),g=o.getDataVisibility(d)?s.getDistanceFromCenterForValue(this.getParsed(d).r):0;h=f,r&&(l.animateScale&&(g=0),l.animateRotate&&(n=f=u));const m={x:a,y:c,innerRadius:0,outerRadius:g,startAngle:n,endAngle:f,options:this.resolveDataElementOptions(d,e.active?"active":i)};this.updateElement(e,d,m,i)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++}),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?W(this.resolveDataElementOptions(t,e).angle||n):0}}Tr.id="polarArea",Tr.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Tr.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((e,i)=>{const r=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,lineWidth:r.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Lr extends kr{}Lr.id="pie",Lr.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Ar extends Di{getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,i){return We.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta,n=e.dataset,i=e.data||[],r=e.iScale.getLabels();if(n.points=i,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:r.length===i.length,options:e};this.updateElement(n,void 0,o,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,n,i){const r=this._cachedMeta.rScale,o="reset"===i;for(let l=e;l<e+n;l++){const e=t[l],n=this.resolveDataElementOptions(l,e.active?"active":i),s=r.getPointPositionForValue(l,this.getParsed(l).r),a=o?r.xCenter:s.x,c=o?r.yCenter:s.y,u={x:a,y:c,angle:s.angle,skip:isNaN(a)||isNaN(c),options:n};this.updateElement(e,l,u,i)}}}Ar.id="radar",Ar.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},Ar.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class Pr extends Di{update(t){const e=this._cachedMeta,{data:n=[]}=e,i=this.chart._animationsDisabled;let{start:r,count:o}=ft(e,n,i);if(this._drawStart=r,this._drawCount=o,gt(e)&&(r=0,o=n.length),this.options.showLine){const{dataset:r,_dataset:o}=e;r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=n;const l=this.resolveDatasetElementOptions(t);l.segment=this.options.segment,this.updateElement(r,void 0,{animated:!i,options:l},t)}this.updateElements(n,r,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=Vi.getElement("line")),super.addElements()}updateElements(t,e,i,r){const o="reset"===r,{iScale:l,vScale:s,_stacked:a,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(e,r),d=this.getSharedOptions(u),h=this.includeOptions(r,d),p=l.axis,f=s.axis,{spanGaps:g,segment:m}=this.options,v=H(g)?g:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||o||"none"===r;let b=e>0&&this.getParsed(e-1);for(let u=e;u<e+i;++u){const e=t[u],i=this.getParsed(u),g=y?e:{},_=n(i[f]),w=g[p]=l.getPixelForValue(i[p],u),x=g[f]=o||_?s.getBasePixel():s.getPixelForValue(a?this.applyStack(s,i,a):i[f],u);g.skip=isNaN(w)||isNaN(x)||_,g.stop=u>0&&Math.abs(i[p]-b[p])>v,m&&(g.parsed=i,g.raw=c.data[u]),h&&(g.options=d||this.resolveDataElementOptions(u,e.active?"active":r)),y||this.updateElement(e,u,g,r),b=i}this.updateSharedOptions(d,r,u)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}const n=t.dataset,i=n.options&&n.options.borderWidth||0;if(!e.length)return i;const r=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(i,r,o)/2}}Pr.id="scatter",Pr.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},Pr.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var Or=Object.freeze({__proto__:null,BarController:Cr,BubbleController:Mr,DoughnutController:kr,LineController:Dr,PolarAreaController:Tr,PieController:Lr,RadarController:Ar,ScatterController:Pr});function Ir(t,e,n){const{startAngle:i,pixelMargin:r,x:o,y:l,outerRadius:s,innerRadius:a}=e;let c=r/s;t.beginPath(),t.arc(o,l,s,i-c,n+c),a>r?(c=r/a,t.arc(o,l,a,n+c,i-c,!0)):t.arc(o,l,r,n+P,i-P),t.closePath(),t.clip()}function Rr(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function Nr(t,e,n,i,r,o){const{x:l,y:s,startAngle:a,pixelMargin:c,innerRadius:u}=e,d=Math.max(e.outerRadius+i+n-c,0),h=u>0?u+i+n+c:0;let p=0;const f=r-a;if(i){const t=((u>0?u-i:0)+(d>0?d-i:0))/2;p=(f-(0!==t?f*t/(t+i):f))/2}const g=(f-Math.max(.001,f*d-n/k)/d)/2,m=a+g+p,v=r-g-p,{outerStart:y,outerEnd:b,innerStart:_,innerEnd:w}=function(t,e,n,i){const r=un(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),o=(n-e)/2,l=Math.min(o,i*e/2),s=t=>{const e=(n-Math.min(o,t))*i/2;return X(t,0,Math.min(o,e))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:X(r.innerStart,0,l),innerEnd:X(r.innerEnd,0,l)}}(e,h,d,v-m),x=d-y,E=d-b,S=m+y/x,C=v-b/E,M=h+_,D=h+w,T=m+_/M,L=v-w/D;if(t.beginPath(),o){if(t.arc(l,s,d,S,C),b>0){const e=Rr(E,C,l,s);t.arc(e.x,e.y,b,C,v+P)}const e=Rr(D,v,l,s);if(t.lineTo(e.x,e.y),w>0){const e=Rr(D,L,l,s);t.arc(e.x,e.y,w,v+P,L+Math.PI)}if(t.arc(l,s,h,v-w/h,m+_/h,!0),_>0){const e=Rr(M,T,l,s);t.arc(e.x,e.y,_,T+Math.PI,m-P)}const n=Rr(x,m,l,s);if(t.lineTo(n.x,n.y),y>0){const e=Rr(x,S,l,s);t.arc(e.x,e.y,y,m-P,S)}}else{t.moveTo(l,s);const e=Math.cos(S)*d+l,n=Math.sin(S)*d+s;t.lineTo(e,n);const i=Math.cos(C)*d+l,r=Math.sin(C)*d+s;t.lineTo(i,r)}t.closePath()}class zr extends Ti{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.getProps(["x","y"],n),{angle:r,distance:o}=$(i,{x:t,y:e}),{startAngle:l,endAngle:a,innerRadius:c,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),h=this.options.spacing/2,p=s(d,a-l)>=D||K(r,l,a),f=J(o,c+h,u+h);return p&&f}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:r,innerRadius:o,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:s,spacing:a}=this.options,c=(i+r)/2,u=(o+l+a+s)/2;return{x:e+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,i=(e.offset||0)/2,r=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>D?Math.floor(n/D):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let l=0;if(i){l=i/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*l,Math.sin(e)*l),this.circumference>=k&&(l=i)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const s=function(t,e,n,i,r){const{fullCircles:o,startAngle:l,circumference:s}=e;let a=e.endAngle;if(o){Nr(t,e,n,i,l+D,r);for(let e=0;e<o;++e)t.fill();isNaN(s)||(a=l+s%D,s%D==0&&(a+=D))}return Nr(t,e,n,i,a,r),t.fill(),a}(t,this,l,r,o);(function(t,e,n,i,r,o){const{options:l}=e,{borderWidth:s,borderJoinStyle:a}=l,c="inner"===l.borderAlign;s&&(c?(t.lineWidth=2*s,t.lineJoin=a||"round"):(t.lineWidth=s,t.lineJoin=a||"bevel"),e.fullCircles&&function(t,e,n){const{x:i,y:r,startAngle:o,pixelMargin:l,fullCircles:s}=e,a=Math.max(e.outerRadius-l,0),c=e.innerRadius+l;let u;for(n&&Ir(t,e,o+D),t.beginPath(),t.arc(i,r,c,o+D,o,!0),u=0;u<s;++u)t.stroke();for(t.beginPath(),t.arc(i,r,a,o,o+D),u=0;u<s;++u)t.stroke()}(t,e,c),c&&Ir(t,e,r),Nr(t,e,n,i,r,o),t.stroke())})(t,this,l,r,s,o),t.restore()}}function Fr(t,e,n=e){t.lineCap=s(n.borderCapStyle,e.borderCapStyle),t.setLineDash(s(n.borderDash,e.borderDash)),t.lineDashOffset=s(n.borderDashOffset,e.borderDashOffset),t.lineJoin=s(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=s(n.borderWidth,e.borderWidth),t.strokeStyle=s(n.borderColor,e.borderColor)}function Hr(t,e,n){t.lineTo(n.x,n.y)}function Br(t,e,n={}){const i=t.length,{start:r=0,end:o=i-1}=n,{start:l,end:s}=e,a=Math.max(r,l),c=Math.min(o,s),u=r<l&&o<l||r>s&&o>s;return{count:i,start:a,loop:e.loop,ilen:c<a&&!u?i+c-a:c-a}}function jr(t,e,n,i){const{points:r,options:o}=e,{count:l,start:s,loop:a,ilen:c}=Br(r,n,i),u=function(t){return t.stepped?Ce:t.tension||"monotone"===t.cubicInterpolationMode?Me:Hr}(o);let d,h,p,{move:f=!0,reverse:g}=i||{};for(d=0;d<=c;++d)h=r[(s+(g?c-d:d))%l],h.skip||(f?(t.moveTo(h.x,h.y),f=!1):u(t,p,h,g,o.stepped),p=h);return a&&(h=r[(s+(g?c:0))%l],u(t,p,h,g,o.stepped)),!!a}function Vr(t,e,n,i){const r=e.points,{count:o,start:l,ilen:s}=Br(r,n,i),{move:a=!0,reverse:c}=i||{};let u,d,h,p,f,g,m=0,v=0;const y=t=>(l+(c?s-t:t))%o,b=()=>{p!==f&&(t.lineTo(m,f),t.lineTo(m,p),t.lineTo(m,g))};for(a&&(d=r[y(0)],t.moveTo(d.x,d.y)),u=0;u<=s;++u){if(d=r[y(u)],d.skip)continue;const e=d.x,n=d.y,i=0|e;i===h?(n<p?p=n:n>f&&(f=n),m=(v*m+e)/++v):(b(),t.lineTo(e,n),h=i,v=0,p=f=n),g=n}b()}function Wr(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n?jr:Vr}zr.id="arc",zr.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},zr.defaultRoutes={backgroundColor:"backgroundColor"};const Ur="function"==typeof Path2D;class Yr extends Ti{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;Ke(this._points,n,t,i,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Cn(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,i=t[e],r=this.points,o=Sn(this,{property:e,start:i,end:i});if(!o.length)return;const l=[],s=function(t){return t.stepped?nn:t.tension||"monotone"===t.cubicInterpolationMode?rn:en}(n);let a,c;for(a=0,c=o.length;a<c;++a){const{start:c,end:u}=o[a],d=r[c],h=r[u];if(d===h){l.push(d);continue}const p=s(d,h,Math.abs((i-d[e])/(h[e]-d[e])),n.stepped);p[e]=t[e],l.push(p)}return 1===l.length?l[0]:l}pathSegment(t,e,n){return Wr(this)(t,this,e,n)}path(t,e,n){const i=this.segments,r=Wr(this);let o=this._loop;e=e||0,n=n||this.points.length-e;for(const l of i)o&=r(t,this,l,{start:e,end:e+n-1});return!!o}draw(t,e,n,i){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(t.save(),function(t,e,n,i){Ur&&!e.options.segment?function(t,e,n,i){let r=e._path;r||(r=e._path=new Path2D,e.path(r,n,i)&&r.closePath()),Fr(t,e.options),t.stroke(r)}(t,e,n,i):function(t,e,n,i){const{segments:r,options:o}=e,l=Wr(e);for(const s of r)Fr(t,o,s.style),t.beginPath(),l(t,e,s,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}(t,e,n,i)}(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function $r(t,e,n,i){const r=t.options,{[n]:o}=t.getProps([n],i);return Math.abs(e-o)<r.radius+r.hitRadius}Yr.id="line",Yr.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Yr.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Yr.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class qr extends Ti{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.options,{x:r,y:o}=this.getProps(["x","y"],n);return Math.pow(t-r,2)+Math.pow(e-o,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return $r(this,t,"x",e)}inYRange(t,e){return $r(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}size(t){let e=(t=t||this.options||{}).radius||0;return e=Math.max(e,e&&t.hoverRadius||0),2*(e+(e&&t.borderWidth||0))}draw(t,e){const n=this.options;this.skip||n.radius<.1||!xe(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,_e(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Gr(t,e){const{x:n,y:i,base:r,width:o,height:l}=t.getProps(["x","y","base","width","height"],e);let s,a,c,u,d;return t.horizontal?(d=l/2,s=Math.min(n,r),a=Math.max(n,r),c=i-d,u=i+d):(d=o/2,s=n-d,a=n+d,c=Math.min(i,r),u=Math.max(i,r)),{left:s,top:c,right:a,bottom:u}}function Zr(t,e,n,i){return t?0:X(e,n,i)}function Kr(t){const e=Gr(t),n=e.right-e.left,i=e.bottom-e.top,o=function(t,e,n){const i=t.options.borderWidth,r=t.borderSkipped,o=dn(i);return{t:Zr(r.top,o.top,0,n),r:Zr(r.right,o.right,0,e),b:Zr(r.bottom,o.bottom,0,n),l:Zr(r.left,o.left,0,e)}}(t,n/2,i/2),l=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,l=hn(o),s=Math.min(e,n),a=t.borderSkipped,c=i||r(o);return{topLeft:Zr(!c||a.top||a.left,l.topLeft,0,s),topRight:Zr(!c||a.top||a.right,l.topRight,0,s),bottomLeft:Zr(!c||a.bottom||a.left,l.bottomLeft,0,s),bottomRight:Zr(!c||a.bottom||a.right,l.bottomRight,0,s)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:l},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:i-o.t-o.b,radius:{topLeft:Math.max(0,l.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,l.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,l.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,l.bottomRight-Math.max(o.b,o.r))}}}}function Xr(t,e,n,i){const r=null===e,o=null===n,l=t&&!(r&&o)&&Gr(t,i);return l&&(r||J(e,l.left,l.right))&&(o||J(n,l.top,l.bottom))}function Qr(t,e){t.rect(e.x,e.y,e.w,e.h)}function Jr(t,e,n={}){const i=t.x!==n.x?-e:0,r=t.y!==n.y?-e:0,o=(t.x+t.w!==n.x+n.w?e:0)-i,l=(t.y+t.h!==n.y+n.h?e:0)-r;return{x:t.x+i,y:t.y+r,w:t.w+o,h:t.h+l,radius:t.radius}}qr.id="point",qr.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},qr.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class to extends Ti{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:i}}=this,{inner:r,outer:o}=Kr(this),l=(s=o.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?Te:Qr;var s;t.save(),o.w===r.w&&o.h===r.h||(t.beginPath(),l(t,Jr(o,e,r)),t.clip(),l(t,Jr(r,-e,o)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),l(t,Jr(r,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return Xr(this,t,e,n)}inXRange(t,e){return Xr(this,t,null,e)}inYRange(t,e){return Xr(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:r}=this.getProps(["x","y","base","horizontal"],t);return{x:r?(e+i)/2:e,y:r?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}to.id="bar",to.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},to.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var eo=Object.freeze({__proto__:null,ArcElement:zr,LineElement:Yr,PointElement:qr,BarElement:to});function no(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function io(t){t.data.datasets.forEach(t=>{no(t)})}var ro={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void io(t);const r=t.width;t.data.datasets.forEach((e,o)=>{const{_data:l,indexAxis:s}=e,a=t.getDatasetMeta(o),c=l||e.data;if("y"===gn([s,t.options.indexAxis]))return;if(!a.controller.supportsDecimation)return;const u=t.scales[a.xAxisID];if("linear"!==u.type&&"time"!==u.type)return;if(t.options.parsing)return;let d,{start:h,count:p}=function(t,e){const n=e.length;let i,r=0;const{iScale:o}=t,{min:l,max:s,minDefined:a,maxDefined:c}=o.getUserBounds();return a&&(r=X(et(e,o.axis,l).lo,0,n-1)),i=c?X(et(e,o.axis,s).hi+1,r,n)-r:n-r,{start:r,count:i}}(a,c);if(p<=(i.threshold||4*r))no(e);else{switch(n(l)&&(e._data=c,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":d=function(t,e,n,i,r){const o=r.samples||i;if(o>=n)return t.slice(e,e+n);const l=[],s=(n-2)/(o-2);let a=0;const c=e+n-1;let u,d,h,p,f,g=e;for(l[a++]=t[g],u=0;u<o-2;u++){let i,r=0,o=0;const c=Math.floor((u+1)*s)+1+e,m=Math.min(Math.floor((u+2)*s)+1,n)+e,v=m-c;for(i=c;i<m;i++)r+=t[i].x,o+=t[i].y;r/=v,o/=v;const y=Math.floor(u*s)+1+e,b=Math.min(Math.floor((u+1)*s)+1,n)+e,{x:_,y:w}=t[g];for(h=p=-1,i=y;i<b;i++)p=.5*Math.abs((_-r)*(t[i].y-w)-(_-t[i].x)*(o-w)),p>h&&(h=p,d=t[i],f=i);l[a++]=d,g=f}return l[a++]=t[c],l}(c,h,p,r,i);break;case"min-max":d=function(t,e,i,r){let o,l,s,a,c,u,d,h,p,f,g=0,m=0;const v=[],y=e+i-1,b=t[e].x,_=t[y].x-b;for(o=e;o<e+i;++o){l=t[o],s=(l.x-b)/_*r,a=l.y;const e=0|s;if(e===c)a<p?(p=a,u=o):a>f&&(f=a,d=o),g=(m*g+l.x)/++m;else{const i=o-1;if(!n(u)&&!n(d)){const e=Math.min(u,d),n=Math.max(u,d);e!==h&&e!==i&&v.push({...t[e],x:g}),n!==h&&n!==i&&v.push({...t[n],x:g})}o>0&&i!==h&&v.push(t[i]),v.push(l),c=e,m=0,p=f=a,u=d=h=o}}return v}(c,h,p,r);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=d}})},destroy(t){io(t)}};function oo(t,e,n,i){if(i)return;let r=e[t],o=n[t];return"angle"===t&&(r=Z(r),o=Z(o)),{property:t,start:r,end:o}}function lo(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function so(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function ao(t,e){let n=[],r=!1;return i(t)?(r=!0,n=t):n=function(t,e){const{x:n=null,y:i=null}=t||{},r=e.points,o=[];return e.segments.forEach(({start:t,end:e})=>{e=lo(t,e,r);const l=r[t],s=r[e];null!==i?(o.push({x:l.x,y:i}),o.push({x:s.x,y:i})):null!==n&&(o.push({x:n,y:l.y}),o.push({x:n,y:s.y}))}),o}(t,e),n.length?new Yr({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function co(t){return t&&!1!==t.fill}function uo(t,e,n){let i=t[e].fill;const r=[e];let l;if(!n)return i;for(;!1!==i&&-1===r.indexOf(i);){if(!o(i))return i;if(l=t[i],!l)return!1;if(l.visible)return i;r.push(i),i=l.fill}return!1}function ho(t,e,n){const i=function(t){const e=t.options,n=e.fill;let i=s(n&&n.target,n);return void 0===i&&(i=!!e.backgroundColor),!1!==i&&null!==i&&(!0===i?"origin":i)}(t);if(r(i))return!isNaN(i.value)&&i;let l=parseFloat(i);return o(l)&&Math.floor(l)===l?function(t,e,n,i){return"-"!==t&&"+"!==t||(n=e+n),!(n===e||n<0||n>=i)&&n}(i[0],e,l,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function po(t,e,n){const i=[];for(let r=0;r<n.length;r++){const o=n[r],{first:l,last:s,point:a}=fo(o,e,"x");if(!(!a||l&&s))if(l)i.unshift(a);else if(t.push(a),!s)break}t.push(...i)}function fo(t,e,n){const i=t.interpolate(e,n);if(!i)return{};const r=i[n],o=t.segments,l=t.points;let s=!1,a=!1;for(let t=0;t<o.length;t++){const e=o[t],i=l[e.start][n],c=l[e.end][n];if(J(r,i,c)){s=r===i,a=r===c;break}}return{first:s,last:a,point:i}}class go{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const{x:i,y:r,radius:o}=this;return e=e||{start:0,end:D},t.arc(i,r,o,e.end,e.start,!0),!n.bounds}interpolate(t){const{x:e,y:n,radius:i}=this,r=t.angle;return{x:e+Math.cos(r)*i,y:n+Math.sin(r)*i,angle:r}}}function mo(t){const{chart:e,fill:n,line:i}=t;if(o(n))return function(t,e){const n=t.getDatasetMeta(e);return n&&t.isDatasetVisible(e)?n.dataset:null}(e,n);if("stack"===n)return function(t){const{scale:e,index:n,line:i}=t,r=[],o=i.segments,l=i.points,s=function(t,e){const n=[],i=t.getMatchingVisibleMetas("line");for(let t=0;t<i.length;t++){const r=i[t];if(r.index===e)break;r.hidden||n.unshift(r.dataset)}return n}(e,n);s.push(ao({x:null,y:e.bottom},i));for(let t=0;t<o.length;t++){const e=o[t];for(let t=e.start;t<=e.end;t++)po(r,l[t],s)}return new Yr({points:r,options:{}})}(t);if("shape"===n)return!0;const l=function(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:n}=t,i=e.options,o=e.getLabels().length,l=i.reverse?e.max:e.min,s=function(t,e,n){let i;return i="start"===t?n:"end"===t?e.options.reverse?e.min:e.max:r(t)?t.value:e.getBaseValue(),i}(n,e,l),a=[];if(i.grid.circular){const t=e.getPointPositionForValue(0,l);return new go({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(s)})}for(let t=0;t<o;++t)a.push(e.getPointPositionForValue(t,s));return a}(t):function(t){const{scale:e={},fill:n}=t,i=function(t,e){let n=null;return"start"===t?n=e.bottom:"end"===t?n=e.top:r(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}(n,e);if(o(i)){const t=e.isHorizontal();return{x:t?i:null,y:t?null:i}}return null}(t)}(t);return l instanceof go?l:ao(l,i)}function vo(t,e,n){const i=mo(e),{line:r,scale:o,axis:l}=e,s=r.options,a=s.fill,c=s.backgroundColor,{above:u=c,below:d=c}=a||{};i&&r.points.length&&(Ee(t,n),function(t,e){const{line:n,target:i,above:r,below:o,area:l,scale:s}=e,a=n._loop?"angle":e.axis;t.save(),"x"===a&&o!==r&&(yo(t,i,l.top),bo(t,{line:n,target:i,color:r,scale:s,property:a}),t.restore(),t.save(),yo(t,i,l.bottom)),bo(t,{line:n,target:i,color:o,scale:s,property:a}),t.restore()}(t,{line:r,target:i,above:u,below:d,area:n,scale:o,axis:l}),Se(t))}function yo(t,e,n){const{segments:i,points:r}=e;let o=!0,l=!1;t.beginPath();for(const s of i){const{start:i,end:a}=s,c=r[i],u=r[lo(i,a,r)];o?(t.moveTo(c.x,c.y),o=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),l=!!e.pathSegment(t,s,{move:l}),l?t.closePath():t.lineTo(u.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function bo(t,e){const{line:n,target:i,property:r,color:o,scale:l}=e,s=function(t,e,n){const i=t.segments,r=t.points,o=e.points,l=[];for(const t of i){let{start:i,end:s}=t;s=lo(i,s,r);const a=oo(n,r[i],r[s],t.loop);if(!e.segments){l.push({source:t,target:a,start:r[i],end:r[s]});continue}const c=Sn(e,a);for(const e of c){const i=oo(n,o[e.start],o[e.end],e.loop),s=En(t,r,i);for(const t of s)l.push({source:t,target:e,start:{[n]:so(a,i,"start",Math.max)},end:{[n]:so(a,i,"end",Math.min)}})}}return l}(n,i,r);for(const{source:e,target:a,start:c,end:u}of s){const{style:{backgroundColor:s=o}={}}=e,d=!0!==i;t.save(),t.fillStyle=s,_o(t,l,d&&oo(r,c,u)),t.beginPath();const h=!!n.pathSegment(t,e);let p;if(d){h?t.closePath():wo(t,i,u,r);const e=!!i.pathSegment(t,a,{move:h,reverse:!0});p=h&&e,p||wo(t,i,c,r)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function _o(t,e,n){const{top:i,bottom:r}=e.chart.chartArea,{property:o,start:l,end:s}=n||{};"x"===o&&(t.beginPath(),t.rect(l,i,s-l,r-i),t.clip())}function wo(t,e,n,i){const r=e.interpolate(n,i);r&&t.lineTo(r.x,r.y)}var xo={id:"filler",afterDatasetsUpdate(t,e,n){const i=(t.data.datasets||[]).length,r=[];let o,l,s,a;for(l=0;l<i;++l)o=t.getDatasetMeta(l),s=o.dataset,a=null,s&&s.options&&s instanceof Yr&&(a={visible:t.isDatasetVisible(l),index:l,fill:ho(s,l,i),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:s}),o.$filler=a,r.push(a);for(l=0;l<i;++l)a=r[l],a&&!1!==a.fill&&(a.fill=uo(r,l,n.propagate))},beforeDraw(t,e,n){const i="beforeDraw"===n.drawTime,r=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let e=r.length-1;e>=0;--e){const n=r[e].$filler;n&&(n.line.updateControlPoints(o,n.axis),i&&n.fill&&vo(t.ctx,n,o))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const i=t.getSortedVisibleDatasetMetas();for(let e=i.length-1;e>=0;--e){const n=i[e].$filler;co(n)&&vo(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;co(i)&&"beforeDatasetDraw"===n.drawTime&&vo(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Eo=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}};class So extends Ti{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=u(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,n)=>t.sort(e,n,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,i=fn(n.font),r=i.size,o=this._computeTitleHeight(),{boxWidth:l,itemHeight:s}=Eo(n,r);let a,c;e.font=i.string,this.isHorizontal()?(a=this.maxWidth,c=this._fitRows(o,r,l,s)+10):(c=this.maxHeight,a=this._fitCols(o,r,l,s)+10),this.width=Math.min(a,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,i){const{ctx:r,maxWidth:o,options:{labels:{padding:l}}}=this,s=this.legendHitBoxes=[],a=this.lineWidths=[0],c=i+l;let u=t;r.textAlign="left",r.textBaseline="middle";let d=-1,h=-c;return this.legendItems.forEach((t,p)=>{const f=n+e/2+r.measureText(t.text).width;(0===p||a[a.length-1]+f+2*l>o)&&(u+=c,a[a.length-(p>0?0:1)]=0,h+=c,d++),s[p]={left:0,top:h,row:d,width:f,height:i},a[a.length-1]+=f+l}),u}_fitCols(t,e,n,i){const{ctx:r,maxHeight:o,options:{labels:{padding:l}}}=this,s=this.legendHitBoxes=[],a=this.columnSizes=[],c=o-t;let u=l,d=0,h=0,p=0,f=0;return this.legendItems.forEach((t,o)=>{const g=n+e/2+r.measureText(t.text).width;o>0&&h+i+2*l>c&&(u+=d+l,a.push({width:d,height:h}),p+=d+l,f++,d=h=0),s[o]={left:p,top:h,col:f,width:g,height:i},d=Math.max(d,g),h+=i+l}),u+=d,a.push({width:d,height:h}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:i},rtl:r}}=this,o=yn(r,this.left,this.width);if(this.isHorizontal()){let r=0,l=ht(n,this.left+i,this.right-this.lineWidths[r]);for(const s of e)r!==s.row&&(r=s.row,l=ht(n,this.left+i,this.right-this.lineWidths[r])),s.top+=this.top+t+i,s.left=o.leftForLtr(o.x(l),s.width),l+=s.width+i}else{let r=0,l=ht(n,this.top+t+i,this.bottom-this.columnSizes[r].height);for(const s of e)s.col!==r&&(r=s.col,l=ht(n,this.top+t+i,this.bottom-this.columnSizes[r].height)),s.top=l,s.left+=this.left+i,s.left=o.leftForLtr(o.x(s.left),s.width),l+=s.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Ee(t,this),this._draw(),Se(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:i}=this,{align:r,labels:o}=t,l=ee.color,a=yn(t.rtl,this.left,this.width),c=fn(o.font),{color:u,padding:d}=o,h=c.size,p=h/2;let f;this.drawTitle(),i.textAlign=a.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:g,boxHeight:m,itemHeight:v}=Eo(o,h),y=this.isHorizontal(),b=this._computeTitleHeight();f=y?{x:ht(r,this.left+d,this.right-n[0]),y:this.top+d+b,line:0}:{x:this.left+d,y:ht(r,this.top+b+d,this.bottom-e[0].height),line:0},bn(this.ctx,t.textDirection);const _=v+d;this.legendItems.forEach((w,x)=>{i.strokeStyle=w.fontColor||u,i.fillStyle=w.fontColor||u;const E=i.measureText(w.text).width,S=a.textAlign(w.textAlign||(w.textAlign=o.textAlign)),C=g+p+E;let M=f.x,k=f.y;a.setWidth(this.width),y?x>0&&M+C+d>this.right&&(k=f.y+=_,f.line++,M=f.x=ht(r,this.left+d,this.right-n[f.line])):x>0&&k+_>this.bottom&&(M=f.x=M+e[f.line].width+d,f.line++,k=f.y=ht(r,this.top+b+d,this.bottom-e[f.line].height)),function(t,e,n){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;i.save();const r=s(n.lineWidth,1);if(i.fillStyle=s(n.fillStyle,l),i.lineCap=s(n.lineCap,"butt"),i.lineDashOffset=s(n.lineDashOffset,0),i.lineJoin=s(n.lineJoin,"miter"),i.lineWidth=r,i.strokeStyle=s(n.strokeStyle,l),i.setLineDash(s(n.lineDash,[])),o.usePointStyle){const l={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},s=a.xPlus(t,g/2);we(i,l,s,e+p,o.pointStyleWidth&&g)}else{const o=e+Math.max((h-m)/2,0),l=a.leftForLtr(t,g),s=hn(n.borderRadius);i.beginPath(),Object.values(s).some(t=>0!==t)?Te(i,{x:l,y:o,w:g,h:m,radius:s}):i.rect(l,o,g,m),i.fill(),0!==r&&i.stroke()}i.restore()}(a.x(M),k,w),M=pt(S,M+g+p,y?M+C:this.right,t.rtl),function(t,e,n){ke(i,n.text,t,e+v/2,c,{strikethrough:n.hidden,textAlign:a.textAlign(n.textAlign)})}(a.x(M),k,w),y?f.x+=C+d:f.y+=_}),_n(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=fn(e.font),i=pn(e.padding);if(!e.display)return;const r=yn(t.rtl,this.left,this.width),o=this.ctx,l=e.position,s=n.size/2,a=i.top+s;let c,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+a,u=ht(t.align,u,this.right-d);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);c=a+ht(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const h=ht(l,u,u+d);o.textAlign=r.textAlign(dt(l)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=n.string,ke(o,e.text,h,c,n)}_computeTitleHeight(){const t=this.options.title,e=fn(t.font),n=pn(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,i,r;if(J(t,this.left,this.right)&&J(e,this.top,this.bottom))for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(i=r[n],J(t,i.left,i.left+i.width)&&J(e,i.top,i.top+i.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!function(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const o=this._hoveredItem,l=(r=n,null!==(i=o)&&null!==r&&i.datasetIndex===r.datasetIndex&&i.index===r.index);o&&!l&&u(e.onLeave,[t,o,this],this),this._hoveredItem=n,n&&!l&&u(e.onHover,[t,n,this],this)}else n&&u(e.onClick,[t,n,this],this);var i,r}}var Co={id:"legend",_element:So,start(t,e,n){const i=t.legend=new So({ctx:t.ctx,options:n,chart:t});qn.configure(t,i,n),qn.addBox(t,i)},stop(t){qn.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;qn.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,r=n.chart;r.isDatasetVisible(i)?(r.hide(i),e.hidden=!0):(r.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:r,color:o}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const l=t.controller.getStyle(n?0:void 0),s=pn(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:l.borderColor,pointStyle:i||l.pointStyle,rotation:l.rotation,textAlign:r||l.textAlign,borderRadius:0,datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Mo extends Ti{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const r=i(n.text)?n.text.length:1;this._padding=pn(n.padding);const o=r*fn(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:n,bottom:i,right:r,options:o}=this,l=o.align;let s,a,c,u=0;return this.isHorizontal()?(a=ht(l,n,r),c=e+t,s=r-n):("left"===o.position?(a=n+t,c=ht(l,i,e),u=-.5*k):(a=r-t,c=ht(l,e,i),u=.5*k),s=i-e),{titleX:a,titleY:c,maxWidth:s,rotation:u}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const n=fn(e.font),i=n.lineHeight/2+this._padding.top,{titleX:r,titleY:o,maxWidth:l,rotation:s}=this._drawArgs(i);ke(t,e.text,0,0,n,{color:e.color,maxWidth:l,rotation:s,textAlign:dt(e.align),textBaseline:"middle",translation:[r,o]})}}var ko={id:"title",_element:Mo,start(t,e,n){!function(t,e){const n=new Mo({ctx:t.ctx,options:e,chart:t});qn.configure(t,n,e),qn.addBox(t,n),t.titleBlock=n}(t,n)},stop(t){const e=t.titleBlock;qn.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;qn.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Do=new WeakMap;var To={id:"subtitle",start(t,e,n){const i=new Mo({ctx:t.ctx,options:n,chart:t});qn.configure(t,i,n),qn.addBox(t,i),Do.set(t,i)},stop(t){qn.removeBox(t,Do.get(t)),Do.delete(t)},beforeUpdate(t,e,n){const i=Do.get(t);qn.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Lo={average(t){if(!t.length)return!1;let e,n,i=0,r=0,o=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();i+=t.x,r+=t.y,++o}}return{x:i/o,y:r/o}},nearest(t,e){if(!t.length)return!1;let n,i,r,o=e.x,l=e.y,s=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){const i=t[n].element;if(i&&i.hasValue()){const t=q(e,i.getCenterPoint());t<s&&(s=t,r=i)}}if(r){const t=r.tooltipPosition();o=t.x,l=t.y}return{x:o,y:l}}};function Ao(t,e){return e&&(i(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Po(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Oo(t,e){const{element:n,datasetIndex:i,index:r}=e,o=t.getDatasetMeta(i).controller,{label:l,value:s}=o.getLabelAndValue(r);return{chart:t,label:l,parsed:o.getParsed(r),raw:t.data.datasets[i].data[r],formattedValue:s,dataset:o.getDataset(),dataIndex:r,datasetIndex:i,element:n}}function Io(t,e){const n=t.chart.ctx,{body:i,footer:r,title:o}=t,{boxWidth:l,boxHeight:s}=e,a=fn(e.bodyFont),c=fn(e.titleFont),u=fn(e.footerFont),h=o.length,p=r.length,f=i.length,g=pn(e.padding);let m=g.height,v=0,y=i.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);y+=t.beforeBody.length+t.afterBody.length,h&&(m+=h*c.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),y&&(m+=f*(e.displayColors?Math.max(s,a.lineHeight):a.lineHeight)+(y-f)*a.lineHeight+(y-1)*e.bodySpacing),p&&(m+=e.footerMarginTop+p*u.lineHeight+(p-1)*e.footerSpacing);let b=0;const _=function(t){v=Math.max(v,n.measureText(t).width+b)};return n.save(),n.font=c.string,d(t.title,_),n.font=a.string,d(t.beforeBody.concat(t.afterBody),_),b=e.displayColors?l+2+e.boxPadding:0,d(i,t=>{d(t.before,_),d(t.lines,_),d(t.after,_)}),b=0,n.font=u.string,d(t.footer,_),n.restore(),v+=g.width,{width:v,height:m}}function Ro(t,e,n,i){const{x:r,width:o}=n,{width:l,chartArea:{left:s,right:a}}=t;let c="center";return"center"===i?c=r<=(s+a)/2?"left":"right":r<=o/2?c="left":r>=l-o/2&&(c="right"),function(t,e,n,i){const{x:r,width:o}=i,l=n.caretSize+n.caretPadding;return"left"===t&&r+o+l>e.width||"right"===t&&r-o-l<0||void 0}(c,t,e,n)&&(c="center"),c}function No(t,e,n){const i=n.yAlign||e.yAlign||function(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||Ro(t,e,n,i),yAlign:i}}function zo(t,e,n,i){const{caretSize:r,caretPadding:o,cornerRadius:l}=t,{xAlign:s,yAlign:a}=n,c=r+o,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:p}=hn(l);let f=function(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}(e,s);const g=function(t,e,n){let{y:i,height:r}=t;return"top"===e?i+=n:i-="bottom"===e?r+n:r/2,i}(e,a,c);return"center"===a?"left"===s?f+=c:"right"===s&&(f-=c):"left"===s?f-=Math.max(u,h)+r:"right"===s&&(f+=Math.max(d,p)+r),{x:X(f,0,i.width-e.width),y:X(g,0,i.height-e.height)}}function Fo(t,e,n){const i=pn(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function Ho(t){return Ao([],Po(t))}function Bo(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class jo extends Ti{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,r=new mi(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=(this,vn(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"})))}getTitle(t,e){const{callbacks:n}=e,i=n.beforeTitle.apply(this,[t]),r=n.title.apply(this,[t]),o=n.afterTitle.apply(this,[t]);let l=[];return l=Ao(l,Po(i)),l=Ao(l,Po(r)),l=Ao(l,Po(o)),l}getBeforeBody(t,e){return Ho(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:n}=e,i=[];return d(t,t=>{const e={before:[],lines:[],after:[]},r=Bo(n,t);Ao(e.before,Po(r.beforeLabel.call(this,t))),Ao(e.lines,r.label.call(this,t)),Ao(e.after,Po(r.afterLabel.call(this,t))),i.push(e)}),i}getAfterBody(t,e){return Ho(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:n}=e,i=n.beforeFooter.apply(this,[t]),r=n.footer.apply(this,[t]),o=n.afterFooter.apply(this,[t]);let l=[];return l=Ao(l,Po(i)),l=Ao(l,Po(r)),l=Ao(l,Po(o)),l}_createItems(t){const e=this._active,n=this.chart.data,i=[],r=[],o=[];let l,s,a=[];for(l=0,s=e.length;l<s;++l)a.push(Oo(this.chart,e[l]));return t.filter&&(a=a.filter((e,i,r)=>t.filter(e,i,r,n))),t.itemSort&&(a=a.sort((e,i)=>t.itemSort(e,i,n))),d(a,e=>{const n=Bo(t.callbacks,e);i.push(n.labelColor.call(this,e)),r.push(n.labelPointStyle.call(this,e)),o.push(n.labelTextColor.call(this,e))}),this.labelColors=i,this.labelPointStyles=r,this.labelTextColors=o,this.dataPoints=a,a}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let r,o=[];if(i.length){const t=Lo[n.position].call(this,i,this._eventPosition);o=this._createItems(n),this.title=this.getTitle(o,n),this.beforeBody=this.getBeforeBody(o,n),this.body=this.getBody(o,n),this.afterBody=this.getAfterBody(o,n),this.footer=this.getFooter(o,n);const e=this._size=Io(this,n),l=Object.assign({},t,e),s=No(this.chart,n,l),a=zo(n,l,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,r={opacity:1,x:a.x,y:a.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=o,this.$context=void 0,r&&this._resolveAnimations().update(this,r),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const r=this.getCaretPosition(t,n,i);e.lineTo(r.x1,r.y1),e.lineTo(r.x2,r.y2),e.lineTo(r.x3,r.y3)}getCaretPosition(t,e,n){const{xAlign:i,yAlign:r}=this,{caretSize:o,cornerRadius:l}=n,{topLeft:s,topRight:a,bottomLeft:c,bottomRight:u}=hn(l),{x:d,y:h}=t,{width:p,height:f}=e;let g,m,v,y,b,_;return"center"===r?(b=h+f/2,"left"===i?(g=d,m=g-o,y=b+o,_=b-o):(g=d+p,m=g+o,y=b-o,_=b+o),v=g):(m="left"===i?d+Math.max(s,c)+o:"right"===i?d+p-Math.max(a,u)-o:this.caretX,"top"===r?(y=h,b=y-o,g=m-o,v=m+o):(y=h+f,b=y+o,g=m+o,v=m-o),_=y),{x1:g,x2:m,x3:v,y1:y,y2:b,y3:_}}drawTitle(t,e,n){const i=this.title,r=i.length;let o,l,s;if(r){const a=yn(n.rtl,this.x,this.width);for(t.x=Fo(this,n.titleAlign,n),e.textAlign=a.textAlign(n.titleAlign),e.textBaseline="middle",o=fn(n.titleFont),l=n.titleSpacing,e.fillStyle=n.titleColor,e.font=o.string,s=0;s<r;++s)e.fillText(i[s],a.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+l,s+1===r&&(t.y+=n.titleMarginBottom-l)}}_drawColorBox(t,e,n,i,o){const l=this.labelColors[n],s=this.labelPointStyles[n],{boxHeight:a,boxWidth:c,boxPadding:u}=o,d=fn(o.bodyFont),h=Fo(this,"left",o),p=i.x(h),f=a<d.lineHeight?(d.lineHeight-a)/2:0,g=e.y+f;if(o.usePointStyle){const e={radius:Math.min(c,a)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},n=i.leftForLtr(p,c)+c/2,r=g+a/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,_e(t,e,n,r),t.strokeStyle=l.borderColor,t.fillStyle=l.backgroundColor,_e(t,e,n,r)}else{t.lineWidth=r(l.borderWidth)?Math.max(...Object.values(l.borderWidth)):l.borderWidth||1,t.strokeStyle=l.borderColor,t.setLineDash(l.borderDash||[]),t.lineDashOffset=l.borderDashOffset||0;const e=i.leftForLtr(p,c-u),n=i.leftForLtr(i.xPlus(p,1),c-u-2),s=hn(l.borderRadius);Object.values(s).some(t=>0!==t)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Te(t,{x:e,y:g,w:c,h:a,radius:s}),t.fill(),t.stroke(),t.fillStyle=l.backgroundColor,t.beginPath(),Te(t,{x:n,y:g+1,w:c-2,h:a-2,radius:s}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,g,c,a),t.strokeRect(e,g,c,a),t.fillStyle=l.backgroundColor,t.fillRect(n,g+1,c-2,a-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:i}=this,{bodySpacing:r,bodyAlign:o,displayColors:l,boxHeight:s,boxWidth:a,boxPadding:c}=n,u=fn(n.bodyFont);let h=u.lineHeight,p=0;const f=yn(n.rtl,this.x,this.width),g=function(n){e.fillText(n,f.x(t.x+p),t.y+h/2),t.y+=h+r},m=f.textAlign(o);let v,y,b,_,w,x,E;for(e.textAlign=o,e.textBaseline="middle",e.font=u.string,t.x=Fo(this,m,n),e.fillStyle=n.bodyColor,d(this.beforeBody,g),p=l&&"right"!==m?"center"===o?a/2+c:a+2+c:0,_=0,x=i.length;_<x;++_){for(v=i[_],y=this.labelTextColors[_],e.fillStyle=y,d(v.before,g),b=v.lines,l&&b.length&&(this._drawColorBox(e,t,_,f,n),h=Math.max(u.lineHeight,s)),w=0,E=b.length;w<E;++w)g(b[w]),h=u.lineHeight;d(v.after,g)}p=0,h=u.lineHeight,d(this.afterBody,g),t.y-=r}drawFooter(t,e,n){const i=this.footer,r=i.length;let o,l;if(r){const s=yn(n.rtl,this.x,this.width);for(t.x=Fo(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",o=fn(n.footerFont),e.fillStyle=n.footerColor,e.font=o.string,l=0;l<r;++l)e.fillText(i[l],s.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+n.footerSpacing}}drawBackground(t,e,n,i){const{xAlign:r,yAlign:o}=this,{x:l,y:s}=t,{width:a,height:c}=n,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:p}=hn(i.cornerRadius);e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(l+u,s),"top"===o&&this.drawCaret(t,e,n,i),e.lineTo(l+a-d,s),e.quadraticCurveTo(l+a,s,l+a,s+d),"center"===o&&"right"===r&&this.drawCaret(t,e,n,i),e.lineTo(l+a,s+c-p),e.quadraticCurveTo(l+a,s+c,l+a-p,s+c),"bottom"===o&&this.drawCaret(t,e,n,i),e.lineTo(l+h,s+c),e.quadraticCurveTo(l,s+c,l,s+c-h),"center"===o&&"left"===r&&this.drawCaret(t,e,n,i),e.lineTo(l,s+u),e.quadraticCurveTo(l,s,l+u,s),e.closePath(),e.fill(),i.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,r=n&&n.y;if(i||r){const n=Lo[t.position].call(this,this._active,this._eventPosition);if(!n)return;const o=this._size=Io(this,t),l=Object.assign({},n,this._size),s=No(e,t,l),a=zo(t,l,s,e);i._to===a.x&&r._to===a.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=o.width,this.height=o.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,a))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const o=pn(e.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&l&&(t.save(),t.globalAlpha=n,this.drawBackground(r,t,i,e),bn(t,e.textDirection),r.y+=o.top,this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),_n(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,i=t.map(({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}),r=!h(n,i),o=this._positionChanged(i,e);(r||o)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,r=this._active||[],o=this._getActiveElements(t,r,e,n),l=this._positionChanged(o,t),s=e||!h(o,r)||l;return s&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,n,i){const r=this.options;if("mouseout"===t.type)return[];if(!i)return e;const o=this.chart.getElementsAtEventForMode(t,r.mode,r,n);return r.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:n,caretY:i,options:r}=this,o=Lo[r.position].call(this,t,e);return!1!==o&&(n!==o.x||i!==o.y)}}jo.positioners=Lo;var Vo={id:"tooltip",_element:jo,positioners:Lo,afterInit(t,e,n){n&&(t.tooltip=new jo({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",n))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:t,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:t,beforeBody:t,beforeLabel:t,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const i=t.formattedValue;return n(i)||(e+=i),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:t,afterBody:t,beforeFooter:t,footer:t,afterFooter:t}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Wo=Object.freeze({__proto__:null,Decimation:ro,Filler:xo,Legend:Co,SubTitle:To,Title:ko,Tooltip:Vo});class Uo extends Bi{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(n(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:X(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:function(t,e,n,i){const r=t.indexOf(e);return-1===r?((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i):r!==t.lastIndexOf(e)?n:r}(i,t,s(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let r=this.getLabels();r=0===t&&e===r.length-1?r:r.slice(t,e+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Yo(t,e,{horizontal:n,minRotation:i}){const r=W(i),o=(n?Math.sin(r):Math.cos(r))||.001,l=.75*e*(""+t).length;return Math.min(e/o,l)}Uo.id="category",Uo.defaults={ticks:{callback:Uo.prototype.getLabelForValue}};class $o extends Bi{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return n(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:r}=this;const o=t=>i=e?i:t,l=t=>r=n?r:t;if(t){const t=N(i),e=N(r);t<0&&e<0?l(0):t>0&&e>0&&o(0)}if(i===r){let e=1;(r>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*r)),l(r+e),t||o(i-e)}this.min=i,this.max=r}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const r=function(t,e){const i=[],{bounds:r,step:o,min:l,max:s,precision:a,count:c,maxTicks:u,maxDigits:d,includeBounds:h}=t,p=o||1,f=u-1,{min:g,max:m}=e,v=!n(l),y=!n(s),b=!n(c),_=(m-g)/(d+1);let w,x,E,S,C=z((m-g)/f/p)*p;if(C<1e-14&&!v&&!y)return[{value:g},{value:m}];S=Math.ceil(m/C)-Math.floor(g/C),S>f&&(C=z(S*C/f/p)*p),n(a)||(w=Math.pow(10,a),C=Math.ceil(C*w)/w),"ticks"===r?(x=Math.floor(g/C)*C,E=Math.ceil(m/C)*C):(x=g,E=m),v&&y&&o&&j((s-l)/o,C/1e3)?(S=Math.round(Math.min((s-l)/C,u)),C=(s-l)/S,x=l,E=s):b?(x=v?l:x,E=y?s:E,S=c-1,C=(E-x)/S):(S=(E-x)/C,S=B(S,Math.round(S),C/1e3)?Math.round(S):Math.ceil(S));const M=Math.max(Y(C),Y(x));w=Math.pow(10,n(a)?M:a),x=Math.round(x*w)/w,E=Math.round(E*w)/w;let k=0;for(v&&(h&&x!==l?(i.push({value:l}),x<l&&k++,B(Math.round((x+k*C)*w)/w,l,Yo(l,_,t))&&k++):x<l&&k++);k<S;++k)i.push({value:Math.round((x+k*C)*w)/w});return y&&h&&E!==s?i.length&&B(i[i.length-1].value,s,Yo(s,_,t))?i[i.length-1].value=s:i.push({value:s}):y&&E!==s||i.push({value:E}),i}({maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&V(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return ln(t,this.chart.options.locale,this.options.ticks.format)}}class qo extends $o{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=o(t)?t:0,this.max=o(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=W(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,r.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function Go(t){return 1==t/Math.pow(10,Math.floor(R(t)))}qo.id="linear",qo.defaults={ticks:{callback:Ai.formatters.numeric}};class Zo extends Bi{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=$o.prototype.parse.apply(this,[t,e]);if(0!==n)return o(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=o(t)?Math.max(0,t):null,this.max=o(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,i=this.max;const r=e=>n=t?n:e,o=t=>i=e?i:t,l=(t,e)=>Math.pow(10,Math.floor(R(t))+e);n===i&&(n<=0?(r(1),o(10)):(r(l(n,-1)),o(l(i,1)))),n<=0&&r(l(i,-1)),i<=0&&o(l(n,1)),this._zero&&this.min!==this._suggestedMin&&n===l(this.min,0)&&r(l(n,-1)),this.min=n,this.max=i}buildTicks(){const t=this.options,e=function(t,e){const n=Math.floor(R(e.max)),i=Math.ceil(e.max/Math.pow(10,n)),r=[];let o=l(t.min,Math.pow(10,Math.floor(R(e.min)))),s=Math.floor(R(o)),a=Math.floor(o/Math.pow(10,s)),c=s<0?Math.pow(10,Math.abs(s)):1;do{r.push({value:o,major:Go(o)}),++a,10===a&&(a=1,++s,c=s>=0?1:c),o=Math.round(a*Math.pow(10,s)*c)/c}while(s<n||s===n&&a<i);const u=l(t.max,o);return r.push({value:u,major:Go(o)}),r}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&V(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":ln(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=R(t),this._valueRange=R(this.max)-R(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(R(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Ko(t){const e=t.ticks;if(e.display&&t.display){const t=pn(e.backdropPadding);return s(e.font&&e.font.size,ee.font.size)+t.height}return 0}function Xo(t,e,n,i,r){return t===i||t===r?{start:e-n/2,end:e+n/2}:t<i||t>r?{start:e-n,end:e}:{start:e,end:e+n}}function Qo(t,e,n,i,r){const o=Math.abs(Math.sin(n)),l=Math.abs(Math.cos(n));let s=0,a=0;i.start<e.l?(s=(e.l-i.start)/o,t.l=Math.min(t.l,e.l-s)):i.end>e.r&&(s=(i.end-e.r)/o,t.r=Math.max(t.r,e.r+s)),r.start<e.t?(a=(e.t-r.start)/l,t.t=Math.min(t.t,e.t-a)):r.end>e.b&&(a=(r.end-e.b)/l,t.b=Math.max(t.b,e.b+a))}function Jo(t){return 0===t||180===t?"center":t<180?"left":"right"}function tl(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function el(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function nl(t,e,n,i){const{ctx:r}=t;if(n)r.arc(t.xCenter,t.yCenter,e,0,D);else{let n=t.getPointPosition(0,e);r.moveTo(n.x,n.y);for(let o=1;o<i;o++)n=t.getPointPosition(o,e),r.lineTo(n.x,n.y)}}Zo.id="logarithmic",Zo.defaults={ticks:{callback:Ai.formatters.logarithmic,major:{enabled:!0}}};class il extends $o{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=pn(Ko(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=o(t)&&!isNaN(t)?t:0,this.max=o(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Ko(this.options))}generateTickLabels(t){$o.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{const n=u(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){const t=this.options;t.display&&t.pointLabels.display?function(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),r=[],o=[],l=t._pointLabels.length,s=t.options.pointLabels,a=s.centerPointLabels?k/l:0;for(let h=0;h<l;h++){const l=s.setContext(t.getPointLabelContext(h));o[h]=l.padding;const p=t.getPointPosition(h,t.drawingArea+o[h],a),f=fn(l.font),g=(c=t.ctx,u=f,d=i(d=t._pointLabels[h])?d:[d],{w:ve(c,u.string,d),h:d.length*u.lineHeight});r[h]=g;const m=Z(t.getIndexAngle(h)+a),v=Math.round(U(m));Qo(n,e,m,Xo(v,p.x,g.w,0,180),Xo(v,p.y,g.h,90,270))}var c,u,d;t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const i=[],r=t._pointLabels.length,o=t.options,l=Ko(o)/2,s=t.drawingArea,a=o.pointLabels.centerPointLabels?k/r:0;for(let o=0;o<r;o++){const r=t.getPointPosition(o,s+l+n[o],a),c=Math.round(U(Z(r.angle+P))),u=e[o],d=el(r.y,u.h,c),h=Jo(c),p=tl(r.x,u.w,h);i.push({x:r.x,y:d,textAlign:h,left:p,top:d,right:p+u.w,bottom:d+u.h})}return i}(t,r,o)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,i))}getIndexAngle(t){return Z(t*(D/(this._pointLabels.length||1))+W(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(n(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(n(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const n=e[t];return function(t,e,n){return vn(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-P+n;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:n,right:i,bottom:r}=this._pointLabelItems[t];return{left:e,top:n,right:i,bottom:r}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),nl(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:r}=e,o=this._pointLabels.length;let l,s,a;if(e.pointLabels.display&&function(t,e){const{ctx:i,options:{pointLabels:r}}=t;for(let o=e-1;o>=0;o--){const e=r.setContext(t.getPointLabelContext(o)),l=fn(e.font),{x:s,y:a,textAlign:c,left:u,top:d,right:h,bottom:p}=t._pointLabelItems[o],{backdropColor:f}=e;if(!n(f)){const t=hn(e.borderRadius),n=pn(e.backdropPadding);i.fillStyle=f;const r=u-n.left,o=d-n.top,l=h-u+n.width,s=p-d+n.height;Object.values(t).some(t=>0!==t)?(i.beginPath(),Te(i,{x:r,y:o,w:l,h:s,radius:t}),i.fill()):i.fillRect(r,o,l,s)}ke(i,t._pointLabels[o],s,a+l.lineHeight/2,l,{color:e.color,textAlign:c,textBaseline:"middle"})}}(this,o),r.display&&this.ticks.forEach((t,e)=>{0!==e&&(s=this.getDistanceFromCenterForValue(t.value),function(t,e,n,i){const r=t.ctx,o=e.circular,{color:l,lineWidth:s}=e;!o&&!i||!l||!s||n<0||(r.save(),r.strokeStyle=l,r.lineWidth=s,r.setLineDash(e.borderDash),r.lineDashOffset=e.borderDashOffset,r.beginPath(),nl(t,n,o,i),r.closePath(),r.stroke(),r.restore())}(this,r.setContext(this.getContext(e-1)),s,o))}),i.display){for(t.save(),l=o-1;l>=0;l--){const n=i.setContext(this.getPointLabelContext(l)),{color:r,lineWidth:o}=n;o&&r&&(t.lineWidth=o,t.strokeStyle=r,t.setLineDash(n.borderDash),t.lineDashOffset=n.borderDashOffset,s=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),a=this.getPointPosition(l,s),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(a.x,a.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let r,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((i,l)=>{if(0===l&&!e.reverse)return;const s=n.setContext(this.getContext(l)),a=fn(s.font);if(r=this.getDistanceFromCenterForValue(this.ticks[l].value),s.showLabelBackdrop){t.font=a.string,o=t.measureText(i.label).width,t.fillStyle=s.backdropColor;const e=pn(s.backdropPadding);t.fillRect(-o/2-e.left,-r-a.size/2-e.top,o+e.width,a.size+e.height)}ke(t,i.label,0,-r,a,{color:s.color})}),t.restore()}drawTitle(){}}il.id="radialLinear",il.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ai.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},il.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},il.descriptors={angleLines:{_fallback:"grid"}};const rl={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ol=Object.keys(rl);function ll(t,e){return t-e}function sl(t,e){if(n(e))return null;const i=t._adapter,{parser:r,round:l,isoWeekday:s}=t._parseOpts;let a=e;return"function"==typeof r&&(a=r(a)),o(a)||(a="string"==typeof r?i.parse(a,r):i.parse(a)),null===a?null:(l&&(a="week"!==l||!H(s)&&!0!==s?i.startOf(a,l):i.startOf(a,"isoWeek",s)),+a)}function al(t,e,n,i){const r=ol.length;for(let o=ol.indexOf(t);o<r-1;++o){const t=rl[ol[o]],r=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(r*t.size))<=i)return ol[o]}return ol[r-1]}function cl(t,e,n){if(n){if(n.length){const{lo:i,hi:r}=tt(n,e);t[n[i]>=e?n[i]:n[r]]=!0}}else t[e]=!0}function ul(t,e,n){const i=[],r={},o=e.length;let l,s;for(l=0;l<o;++l)s=e[l],r[s]=l,i.push({value:s,major:!1});return 0!==o&&n?function(t,e,n,i){const r=t._adapter,o=+r.startOf(e[0].value,i),l=e[e.length-1].value;let s,a;for(s=o;s<=l;s=+r.add(s,1,i))a=n[s],a>=0&&(e[a].major=!0);return e}(t,i,r,n):i}class dl extends Bi{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const n=t.time||(t.time={}),i=this._adapter=new mr._date(t.adapters.date);i.init(e),v(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:sl(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:i,max:r,minDefined:l,maxDefined:s}=this.getUserBounds();function a(t){l||isNaN(t.min)||(i=Math.min(i,t.min)),s||isNaN(t.max)||(r=Math.max(r,t.max))}l&&s||(a(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||a(this.getMinMax(!1))),i=o(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),r=o(r)&&!isNaN(r)?r:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,r-1),this.max=Math.max(i+1,r)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const r=this.min,o=it(i,r,this.max);return this._unit=e.unit||(n.autoSkip?al(e.minUnit,this.min,this.max,this._getLabelCapacity(r)):function(t,e,n,i,r){for(let o=ol.length-1;o>=ol.indexOf(n);o--){const n=ol[o];if(rl[n].common&&t._adapter.diff(r,i,n)>=e-1)return n}return ol[n?ol.indexOf(n):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=ol.indexOf(t)+1,n=ol.length;e<n;++e)if(rl[ol[e]].common)return ol[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&o.reverse(),ul(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t){let e,n,i=0,r=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),r=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;i=X(i,0,o),r=X(r,0,o),this._offsets={start:i,end:r,factor:1/(i+1+r)}}_generate(){const t=this._adapter,e=this.min,n=this.max,i=this.options,r=i.time,o=r.unit||al(r.minUnit,e,n,this._getLabelCapacity(e)),l=s(r.stepSize,1),a="week"===o&&r.isoWeekday,c=H(a)||!0===a,u={};let d,h,p=e;if(c&&(p=+t.startOf(p,"isoWeek",a)),p=+t.startOf(p,c?"day":o),t.diff(n,e,o)>1e5*l)throw new Error(e+" and "+n+" are too far apart with stepSize of "+l+" "+o);const f="data"===i.ticks.source&&this.getDataTimestamps();for(d=p,h=0;d<n;d=+t.add(d,l,o),h++)cl(u,d,f);return d!==n&&"ticks"!==i.bounds&&1!==h||cl(u,d,f),Object.keys(u).sort((t,e)=>t-e).map(t=>+t)}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}_tickFormatFunction(t,e,n,i){const r=this.options,o=r.time.displayFormats,l=this._unit,s=this._majorUnit,a=l&&o[l],c=s&&o[s],d=n[e],h=s&&c&&d&&d.major,p=this._adapter.format(t,i||(h?c:a)),f=r.ticks.callback;return f?u(f,[p,e,n],this):p}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e<n;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,i=W(this.isHorizontal()?e.maxRotation:e.minRotation),r=Math.cos(i),o=Math.sin(i),l=this._resolveTickFontOptions(0).size;return{w:n*r+l*o,h:n*o+l*r}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,r=this._tickFormatFunction(t,0,ul(this,[t],this._majorUnit),i),o=this._getLabelSize(r),l=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return l>0?l:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t<e;++t)n=n.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const i=this.getLabels();for(e=0,n=i.length;e<n;++e)t.push(sl(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return st(t.sort(ll))}}function hl(t,e,n){let i,r,o,l,s=0,a=t.length-1;n?(e>=t[s].pos&&e<=t[a].pos&&({lo:s,hi:a}=et(t,"pos",e)),({pos:i,time:o}=t[s]),({pos:r,time:l}=t[a])):(e>=t[s].time&&e<=t[a].time&&({lo:s,hi:a}=et(t,"time",e)),({time:i,pos:o}=t[s]),({time:r,pos:l}=t[a]));const c=r-i;return c?o+(l-o)*(e-i)/c:o}dl.id="time",dl.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class pl extends dl{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=hl(e,this.min),this._tableRange=hl(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],r=[];let o,l,s,a,c;for(o=0,l=t.length;o<l;++o)a=t[o],a>=e&&a<=n&&i.push(a);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(o=0,l=i.length;o<l;++o)c=i[o+1],s=i[o-1],a=i[o],Math.round((c+s)/2)!==a&&r.push({time:a,pos:o/(l-1)});return r}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(hl(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return hl(this._table,n*this._tableRange+this._minPos,!0)}}pl.id="timeseries",pl.defaults=dl.defaults;var fl=Object.freeze({__proto__:null,CategoryScale:Uo,LinearScale:qo,LogarithmicScale:Zo,RadialLinearScale:il,TimeScale:dl,TimeSeriesScale:pl});return hr.register(Or,fl,eo,Wo),hr.helpers={...Tn},hr._adapters=mr,hr.Animation=fi,hr.Animations=mi,hr.animator=mt,hr.controllers=Vi.controllers.items,hr.DatasetController=Di,hr.Element=Ti,hr.elements=eo,hr.Interaction=Rn,hr.layouts=qn,hr.platforms=di,hr.Scale=Bi,hr.Ticks=Ai,Object.assign(hr,Or,fl,eo,Wo,di),hr.Chart=hr,"undefined"!=typeof window&&(window.Chart=hr),hr}));
/*!
FullCalendar v5.11.3
Docs & License: https://fullcalendar.io/
(c) 2022 Adam Shaw
*/
var FullCalendar=function(t){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,n)};function n(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function r(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||e)}var o,l,s,a,c,u={},d=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(t,e){for(var n in e)t[n]=e[n];return t}function f(t){var e=t.parentNode;e&&e.removeChild(t)}function g(t,e,n){var i,r,o,l=arguments,s={};for(o in e)"key"==o?i=e[o]:"ref"==o?r=e[o]:s[o]=e[o];if(arguments.length>3)for(n=[n],o=3;o<arguments.length;o++)n.push(l[o]);if(null!=n&&(s.children=n),"function"==typeof t&&null!=t.defaultProps)for(o in t.defaultProps)void 0===s[o]&&(s[o]=t.defaultProps[o]);return m(t,s,i,r,null)}function m(t,e,n,i,r){var l={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++o.__v:r};return null!=o.vnode&&o.vnode(l),l}function v(t){return t.children}function y(t,e){this.props=t,this.context=e}function b(t,e){if(null==e)return t.__?b(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?b(t):null}function _(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return _(t)}}function w(t){(!t.__d&&(t.__d=!0)&&l.push(t)&&!x.__r++||a!==o.debounceRendering)&&((a=o.debounceRendering)||s)(x)}function x(){for(var t;x.__r=l.length;)t=l.sort((function(t,e){return t.__v.__b-e.__v.__b})),l=[],t.some((function(t){var e,n,i,r,o,l;t.__d&&(o=(r=(e=t).__v).__e,(l=e.__P)&&(n=[],(i=p({},r)).__v=r.__v+1,A(l,r,i,e.__n,void 0!==l.ownerSVGElement,null!=r.__h?[o]:null,n,null==o?b(r):o,r.__h),P(n,r),r.__e!=o&&_(r)))}))}function E(t,e,n,i,r,o,l,s,a,c){var h,p,f,g,y,_,w,x=i&&i.__k||d,E=x.length;for(n.__k=[],h=0;h<e.length;h++)if(null!=(g=n.__k[h]=null==(g=e[h])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?m(null,g,null,null,g):Array.isArray(g)?m(v,{children:g},null,null,null):g.__b>0?m(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(f=x[h])||f&&g.key==f.key&&g.type===f.type)x[h]=void 0;else for(p=0;p<E;p++){if((f=x[p])&&g.key==f.key&&g.type===f.type){x[p]=void 0;break}f=null}A(t,g,f=f||u,r,o,l,s,a,c),y=g.__e,(p=g.ref)&&f.ref!=p&&(w||(w=[]),f.ref&&w.push(f.ref,null,g),w.push(p,g.__c||y,g)),null!=y?(null==_&&(_=y),"function"==typeof g.type&&null!=g.__k&&g.__k===f.__k?g.__d=a=S(g,a,t):a=M(t,g,f,x,y,a),c||"option"!==n.type?"function"==typeof n.type&&(n.__d=a):t.value=""):a&&f.__e==a&&a.parentNode!=t&&(a=b(f))}for(n.__e=_,h=E;h--;)null!=x[h]&&("function"==typeof n.type&&null!=x[h].__e&&x[h].__e==n.__d&&(n.__d=b(i,h+1)),R(x[h],x[h]));if(w)for(h=0;h<w.length;h++)I(w[h],w[++h],w[++h])}function S(t,e,n){var i,r;for(i=0;i<t.__k.length;i++)(r=t.__k[i])&&(r.__=t,e="function"==typeof r.type?S(r,e,n):M(n,r,r,t.__k,r.__e,e));return e}function C(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){C(t,e)})):e.push(t)),e}function M(t,e,n,i,r,o){var l,s,a;if(void 0!==e.__d)l=e.__d,e.__d=void 0;else if(null==n||r!=o||null==r.parentNode)t:if(null==o||o.parentNode!==t)t.appendChild(r),l=null;else{for(s=o,a=0;(s=s.nextSibling)&&a<i.length;a+=2)if(s==r)break t;t.insertBefore(r,o),l=o}return void 0!==l?l:r.nextSibling}function k(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||h.test(e)?n:n+"px"}function D(t,e,n,i,r){var o;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof i&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||k(t.style,e,"");if(n)for(e in n)i&&n[e]===i[e]||k(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])o=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?i||t.addEventListener(e,o?L:T,o):t.removeEventListener(e,o?L:T,o);else if("dangerouslySetInnerHTML"!==e){if(r)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function T(t){this.l[t.type+!1](o.event?o.event(t):t)}function L(t){this.l[t.type+!0](o.event?o.event(t):t)}function A(t,e,n,i,r,l,s,a,c){var u,d,h,f,g,m,b,_,w,x,S,C=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(c=n.__h,a=e.__e=n.__e,e.__h=null,l=[a]),(u=o.__b)&&u(e);try{t:if("function"==typeof C){if(_=e.props,w=(u=C.contextType)&&i[u.__c],x=u?w?w.props.value:u.__:i,n.__c?b=(d=e.__c=n.__c).__=d.__E:("prototype"in C&&C.prototype.render?e.__c=d=new C(_,x):(e.__c=d=new y(_,x),d.constructor=C,d.render=N),w&&w.sub(d),d.props=_,d.state||(d.state={}),d.context=x,d.__n=i,h=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=C.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=p({},d.__s)),p(d.__s,C.getDerivedStateFromProps(_,d.__s))),f=d.props,g=d.state,h)null==C.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==C.getDerivedStateFromProps&&_!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(_,x),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(_,d.__s,x)||e.__v===n.__v){d.props=_,d.state=d.__s,e.__v!==n.__v&&(d.__d=!1),d.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),d.__h.length&&s.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(_,d.__s,x),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(f,g,m)}))}d.context=x,d.props=_,d.state=d.__s,(u=o.__r)&&u(e),d.__d=!1,d.__v=e,d.__P=t,u=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(i=p(p({},i),d.getChildContext())),h||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(f,g)),S=null!=u&&u.type===v&&null==u.key?u.props.children:u,E(t,Array.isArray(S)?S:[S],e,n,i,r,l,s,a,c),d.base=e.__e,e.__h=null,d.__h.length&&s.push(d),b&&(d.__E=d.__=null),d.__e=!1}else null==l&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=O(n.__e,e,n,i,r,l,s,c);(u=o.diffed)&&u(e)}catch(t){e.__v=null,(c||null!=l)&&(e.__e=a,e.__h=!!c,l[l.indexOf(a)]=null),o.__e(t,e,n)}}function P(t,e){o.__c&&o.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){o.__e(t,e.__v)}}))}function O(t,e,n,i,r,o,l,s){var a,c,h,p,g=n.props,m=e.props,v=e.type,y=0;if("svg"===v&&(r=!0),null!=o)for(;y<o.length;y++)if((a=o[y])&&(a===t||(v?a.localName==v:3==a.nodeType))){t=a,o[y]=null;break}if(null==t){if(null===v)return document.createTextNode(m);t=r?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,m.is&&m),o=null,s=!1}if(null===v)g===m||s&&t.data===m||(t.data=m);else{if(o=o&&d.slice.call(t.childNodes),c=(g=n.props||u).dangerouslySetInnerHTML,h=m.dangerouslySetInnerHTML,!s){if(null!=o)for(g={},p=0;p<t.attributes.length;p++)g[t.attributes[p].name]=t.attributes[p].value;(h||c)&&(h&&(c&&h.__html==c.__html||h.__html===t.innerHTML)||(t.innerHTML=h&&h.__html||""))}if(function(t,e,n,i,r){var o;for(o in n)"children"===o||"key"===o||o in e||D(t,o,null,n[o],i);for(o in e)r&&"function"!=typeof e[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===e[o]||D(t,o,e[o],n[o],i)}(t,m,g,r,s),h)e.__k=[];else if(y=e.props.children,E(t,Array.isArray(y)?y:[y],e,n,i,r&&"foreignObject"!==v,o,l,t.firstChild,s),null!=o)for(y=o.length;y--;)null!=o[y]&&f(o[y]);s||("value"in m&&void 0!==(y=m.value)&&(y!==t.value||"progress"===v&&!y)&&D(t,"value",y,g.value,!1),"checked"in m&&void 0!==(y=m.checked)&&y!==t.checked&&D(t,"checked",y,g.checked,!1))}return t}function I(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){o.__e(t,n)}}function R(t,e,n){var i,r,l;if(o.unmount&&o.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||I(i,null,e)),n||"function"==typeof t.type||(n=null!=(r=t.__e)),t.__e=t.__d=void 0,null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(t){o.__e(t,e)}i.base=i.__P=null}if(i=t.__k)for(l=0;l<i.length;l++)i[l]&&R(i[l],e,n);null!=r&&f(r)}function N(t,e,n){return this.constructor(t,n)}function z(t,e,n){var i,r,l;o.__&&o.__(t,e),r=(i="function"==typeof n)?null:n&&n.__k||e.__k,l=[],A(e,t=(!i&&n||e).__k=g(v,null,[t]),r||u,u,void 0!==e.ownerSVGElement,!i&&n?[n]:r?null:e.firstChild?d.slice.call(e.childNodes):null,l,!i&&n?n:r?r.__e:e.firstChild,i),P(l,t)}o={__e:function(t,e){for(var n,i,r;e=e.__;)if((n=e.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(t)),r=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),r=n.__d),r)return n.__E=n}catch(e){t=e}throw t},__v:0},y.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof t&&(t=t(p({},n),this.props)),t&&p(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),w(this))},y.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),w(this))},y.prototype.render=v,l=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,x.__r=0,c=0;var F,H=[],B=o.__b,j=o.__r,V=o.diffed,W=o.__c,U=o.unmount;function Y(){H.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(q),t.__H.__h.forEach(G),t.__H.__h=[]}catch(e){t.__H.__h=[],o.__e(e,t.__v)}})),H=[]}o.__b=function(t){B&&B(t)},o.__r=function(t){j&&j(t);var e=t.__c.__H;e&&(e.__h.forEach(q),e.__h.forEach(G),e.__h=[])},o.diffed=function(t){V&&V(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==H.push(e)&&F===o.requestAnimationFrame||((F=o.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(i),$&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);$&&(e=requestAnimationFrame(n))})(Y))},o.__c=function(t,e){e.some((function(t){try{t.__h.forEach(q),t.__h=t.__h.filter((function(t){return!t.__||G(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],o.__e(n,t.__v)}})),W&&W(t,e)},o.unmount=function(t){U&&U(t);var e=t.__c;if(e&&e.__H)try{e.__H.__.forEach(q)}catch(t){o.__e(t,e.__v)}};var $="function"==typeof requestAnimationFrame;function q(t){"function"==typeof t.__c&&t.__c()}function G(t){t.__c=t.__()}function Z(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var i in e)if("__source"!==i&&t[i]!==e[i])return!0;return!1}function K(t){this.props=t}(K.prototype=new y).isPureReactComponent=!0,K.prototype.shouldComponentUpdate=function(t,e){return Z(this.props,t)||Z(this.state,e)};var X=o.__b;o.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),X&&X(t)};var Q=o.__e;o.__e=function(t,e,n){if(t.then)for(var i,r=e;r=r.__;)if((i=r.__c)&&i.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e);Q(t,e,n)};var J=o.unmount;function tt(){this.__u=0,this.t=null,this.__b=null}function et(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function nt(){this.u=null,this.o=null}o.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),J&&J(t)},(tt.prototype=new y).__c=function(t,e){var n=e.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=et(i.__v),o=!1,l=function(){o||(o=!0,n.__R=null,r?r(s):s())};n.__R=l;var s=function(){if(!--i.__u){if(i.state.__e){var t=i.state.__e;i.__v.__k[0]=function t(e,n,i){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return t(e,n,i)})),e.__c&&e.__c.__P===n&&(e.__e&&i.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=i)),e}(t,t.__c.__P,t.__c.__O)}var e;for(i.setState({__e:i.__b=null});e=i.t.pop();)e.forceUpdate()}},a=!0===e.__h;i.__u++||a||i.setState({__e:i.__b=i.__v.__k[0]}),t.then(l,l)},tt.prototype.componentWillUnmount=function(){this.t=[]},tt.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function t(e,n,i){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),e.__c.__H=null),null!=(e=function(t,e){for(var n in e)t[n]=e[n];return t}({},e)).__c&&(e.__c.__P===i&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return t(e,n,i)}))),e}(this.__b,n,i.__O=i.__P)}this.__b=null}var r=e.__e&&g(v,null,t.fallback);return r&&(r.__h=null),[g(v,null,e.__e?null:t.children),r]};var it=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function rt(t){return this.getChildContext=function(){return t.context},t.children}function ot(t){var e=this,n=t.i;e.componentWillUnmount=function(){z(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(t){this.childNodes.push(t),e.i.appendChild(t)},insertBefore:function(t,n){this.childNodes.push(t),e.i.appendChild(t)},removeChild:function(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e.i.removeChild(t)}}),z(g(rt,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}(nt.prototype=new y).__e=function(t){var e=this,n=et(e.__v),i=e.o.get(t);return i[0]++,function(r){var o=function(){e.props.revealOrder?(i.push(r),it(e,t,i)):r()};n?n(o):o()}},nt.prototype.render=function(t){this.u=null,this.o=new Map;var e=C(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},nt.prototype.componentDidUpdate=nt.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){it(t,n,e)}))};var lt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,st=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,at=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t)};y.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(y.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var ct=o.event;function ut(){}function dt(){return this.cancelBubble}function ht(){return this.defaultPrevented}o.event=function(t){return ct&&(t=ct(t)),t.persist=ut,t.isPropagationStopped=dt,t.isDefaultPrevented=ht,t.nativeEvent=t};var pt={configurable:!0,get:function(){return this.class}},ft=o.vnode;o.vnode=function(t){var e=t.type,n=t.props,i=n;if("string"==typeof e){for(var r in i={},n){var o=n[r];"value"===r&&"defaultValue"in n&&null==o||("defaultValue"===r&&"value"in n&&null==n.value?r="value":"download"===r&&!0===o?o="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+e)&&!at(n.type)?r="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(r)?r=r.toLowerCase():st.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),i[r]=o)}"select"==e&&i.multiple&&Array.isArray(i.value)&&(i.value=C(n.children).forEach((function(t){t.props.selected=-1!=i.value.indexOf(t.props.value)}))),"select"==e&&null!=i.defaultValue&&(i.value=C(n.children).forEach((function(t){t.props.selected=i.multiple?-1!=i.defaultValue.indexOf(t.props.value):i.defaultValue==t.props.value}))),t.props=i}e&&n.class!=n.className&&(pt.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",pt)),t.$$typeof=lt,ft&&ft(t)};var gt=o.__r;o.__r=function(t){gt&&gt(t)},"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);var mt="undefined"!=typeof globalThis?globalThis:window;mt.FullCalendarVDom?console.warn("FullCalendar VDOM already loaded"):mt.FullCalendarVDom={Component:y,createElement:g,render:z,createRef:function(){return{current:null}},Fragment:v,createContext:function(t){var e=function(t,e){var n={__c:e="__cC"+c++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,i;return this.getChildContext||(n=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(w)},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}(t),n=e.Provider;return e.Provider=function(){var t=this,e=!this.getChildContext,i=n.apply(this,arguments);if(e){var r=[];this.shouldComponentUpdate=function(e){t.props.value!==e.value&&r.forEach((function(t){t.context=e.value,t.forceUpdate()}))},this.sub=function(t){r.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){r.splice(r.indexOf(t),1),e&&e.call(t)}}}return i},e},createPortal:function(t,e){return g(ot,{__v:t,i:e})},flushSync:function(t){t();var e=o.debounceRendering,n=[];for(o.debounceRendering=function(t){n.push(t)},z(g(vt,{}),document.createElement("div"));n.length;)n.shift()();o.debounceRendering=e},unmountComponentAtNode:function(t){z(null,t)}};var vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){return g("div",{})},e.prototype.componentDidMount=function(){this.setState({})},e}(y),yt=function(){function t(t,e){this.context=t,this.internalEventSource=e}return t.prototype.remove=function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},t.prototype.refetch=function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(t.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0}),t}();function bt(t){t.parentNode&&t.parentNode.removeChild(t)}function _t(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(wt(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}function wt(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function xt(t,e){for(var n=t instanceof HTMLElement?[t]:t,i=[],r=0;r<n.length;r+=1)for(var o=n[r].querySelectorAll(e),l=0;l<o.length;l+=1)i.push(o[l]);return i}var Et=/(top|left|right|bottom|width|height)$/i;function St(t,e){for(var n in e)Ct(t,n,e[n])}function Ct(t,e,n){null==n?t.style[e]="":"number"==typeof n&&Et.test(e)?t.style[e]=n+"px":t.style[e]=n}function Mt(t){var e,n;return null!==(n=null===(e=t.composedPath)||void 0===e?void 0:e.call(t)[0])&&void 0!==n?n:t.target}function kt(t){return t.getRootNode?t.getRootNode():document}var Dt=0;function Tt(){return"fc-dom-"+(Dt+=1)}function Lt(t){t.preventDefault()}function At(t,e,n,i){var r=function(t,e){return function(n){var i=_t(n.target,t);i&&e.call(i,n,i)}}(n,i);return t.addEventListener(e,r),function(){t.removeEventListener(e,r)}}var Pt=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Ot(t,e){var n=function(i){e(i),Pt.forEach((function(e){t.removeEventListener(e,n)}))};Pt.forEach((function(e){t.addEventListener(e,n)}))}function It(t){return i({onClick:t},Rt(t))}function Rt(t){return{tabIndex:0,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(t(e),e.preventDefault())}}}var Nt=0;function zt(){return String(Nt+=1)}function Ft(){document.body.classList.add("fc-not-allowed")}function Ht(){document.body.classList.remove("fc-not-allowed")}function Bt(t){t.classList.add("fc-unselectable"),t.addEventListener("selectstart",Lt)}function jt(t){t.classList.remove("fc-unselectable"),t.removeEventListener("selectstart",Lt)}function Vt(t){t.addEventListener("contextmenu",Lt)}function Wt(t){t.removeEventListener("contextmenu",Lt)}function Ut(t){var e,n,i=[],r=[];for("string"==typeof t?r=t.split(/\s*,\s*/):"function"==typeof t?r=[t]:Array.isArray(t)&&(r=t),e=0;e<r.length;e+=1)"string"==typeof(n=r[e])?i.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&i.push({func:n});return i}function Yt(t,e,n){var i,r;for(i=0;i<n.length;i+=1)if(r=$t(t,e,n[i]))return r;return 0}function $t(t,e,n){return n.func?n.func(t,e):qt(t[n.field],e[n.field])*(n.order||1)}function qt(t,e){return t||e?null==e?-1:null==t?1:"string"==typeof t||"string"==typeof e?String(t).localeCompare(String(e)):t-e:0}function Gt(t,e){var n=String(t);return"000".substr(0,e-n.length)+n}function Zt(t,e,n){return"function"==typeof t?t.apply(void 0,e):"string"==typeof t?e.reduce((function(t,e,n){return t.replace("$"+n,e||"")}),t):n}function Kt(t,e){return t-e}function Xt(t){return t%1==0}function Qt(t){var e=t.querySelector(".fc-scrollgrid-shrink-frame"),n=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+n.getBoundingClientRect().width}var Jt=["sun","mon","tue","wed","thu","fri","sat"];function te(t,e){var n=pe(t);return n[2]+=7*e,fe(n)}function ee(t,e){var n=pe(t);return n[2]+=e,fe(n)}function ne(t,e){var n=pe(t);return n[6]+=e,fe(n)}function ie(t,e){return re(t,e)/7}function re(t,e){return(e.valueOf()-t.valueOf())/864e5}function oe(t,e){var n=ae(t),i=ae(e);return{years:0,months:0,days:Math.round(re(n,i)),milliseconds:e.valueOf()-i.valueOf()-(t.valueOf()-n.valueOf())}}function le(t,e){var n=se(t,e);return null!==n&&n%7==0?n/7:null}function se(t,e){return me(t)===me(e)?Math.round(re(t,e)):null}function ae(t){return fe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function ce(t,e,n,i){var r=fe([e,0,1+ue(e,n,i)]),o=ae(t),l=Math.round(re(r,o));return Math.floor(l/7)+1}function ue(t,e,n){var i=7+e-n;return-(7+fe([t,0,i]).getUTCDay()-e)%7+i-1}function de(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function he(t){return new Date(t[0],t[1]||0,null==t[2]?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function pe(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function fe(t){return 1===t.length&&(t=t.concat([0])),new Date(Date.UTC.apply(Date,t))}function ge(t){return!isNaN(t.valueOf())}function me(t){return 1e3*t.getUTCHours()*60*60+1e3*t.getUTCMinutes()*60+1e3*t.getUTCSeconds()+t.getUTCMilliseconds()}function ve(t,e,n,i){return{instanceId:zt(),defId:t,range:e,forcedStartTzo:null==n?null:n,forcedEndTzo:null==i?null:i}}var ye=Object.prototype.hasOwnProperty;function be(t,e){var n={};if(e)for(var i in e){for(var r=[],o=t.length-1;o>=0;o-=1){var l=t[o][i];if("object"==typeof l&&l)r.unshift(l);else if(void 0!==l){n[i]=l;break}}r.length&&(n[i]=be(r))}for(o=t.length-1;o>=0;o-=1){var s=t[o];for(var a in s)a in n||(n[a]=s[a])}return n}function _e(t,e){var n={};for(var i in t)e(t[i],i)&&(n[i]=t[i]);return n}function we(t,e){var n={};for(var i in t)n[i]=e(t[i],i);return n}function xe(t){for(var e={},n=0,i=t;n<i.length;n++)e[i[n]]=!0;return e}function Ee(t){var e=[];for(var n in t)e.push(t[n]);return e}function Se(t,e){if(t===e)return!0;for(var n in t)if(ye.call(t,n)&&!(n in e))return!1;for(var n in e)if(ye.call(e,n)&&t[n]!==e[n])return!1;return!0}function Ce(t,e){var n=[];for(var i in t)ye.call(t,i)&&(i in e||n.push(i));for(var i in e)ye.call(e,i)&&t[i]!==e[i]&&n.push(i);return n}function Me(t,e,n){if(void 0===n&&(n={}),t===e)return!0;for(var i in e)if(!(i in t)||!ke(t[i],e[i],n[i]))return!1;for(var i in t)if(!(i in e))return!1;return!0}function ke(t,e,n){return t===e||!0===n||!!n&&n(t,e)}function De(t,e,n,i){void 0===e&&(e=0),void 0===i&&(i=1);var r=[];null==n&&(n=Object.keys(t).length);for(var o=e;o<n;o+=i){var l=t[o];void 0!==l&&r.push(l)}return r}function Te(t,e,n){var i=n.dateEnv,r=n.pluginHooks,o=n.options,l=t.defs,s=t.instances;for(var a in s=_e(s,(function(t){return!l[t.defId].recurringDef})),l){var c=l[a];if(c.recurringDef){var u=c.recurringDef.duration;u||(u=c.allDay?o.defaultAllDayEventDuration:o.defaultTimedEventDuration);for(var d=0,h=Le(c,u,e,i,r.recurringTypes);d<h.length;d++){var p=h[d],f=ve(a,{start:p,end:i.add(p,u)});s[f.instanceId]=f}}}return{defs:l,instances:s}}function Le(t,e,n,i,r){var o=r[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:i.subtract(n.start,e),end:n.end},i);return t.allDay&&(o=o.map(ae)),o}var Ae=["years","months","days","milliseconds"],Pe=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Oe(t,e){var n;return"string"==typeof t?function(t){var e=Pe.exec(t);if(e){var n=e[1]?-1:1;return{years:0,months:0,days:n*(e[2]?parseInt(e[2],10):0),milliseconds:n*(60*(e[3]?parseInt(e[3],10):0)*60*1e3+60*(e[4]?parseInt(e[4],10):0)*1e3+1e3*(e[5]?parseInt(e[5],10):0)+(e[6]?parseInt(e[6],10):0))}}return null}(t):"object"==typeof t&&t?Ie(t):"number"==typeof t?Ie(((n={})[e||"milliseconds"]=t,n)):null}function Ie(t){var e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:60*(t.hours||t.hour||0)*60*1e3+60*(t.minutes||t.minute||0)*1e3+1e3*(t.seconds||t.second||0)+(t.milliseconds||t.millisecond||t.ms||0)},n=t.weeks||t.week;return n&&(e.days+=7*n,e.specifiedWeeks=!0),e}function Re(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function Ne(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}function ze(t){return Fe(t)/864e5}function Fe(t){return 31536e6*t.years+2592e6*t.months+864e5*t.days+t.milliseconds}function He(t,e){for(var n=null,i=0;i<Ae.length;i+=1){var r=Ae[i];if(e[r]){var o=t[r]/e[r];if(!Xt(o)||null!==n&&n!==o)return null;n=o}else if(t[r])return null}return n}function Be(t){var e=t.milliseconds;if(e){if(e%1e3!=0)return{unit:"millisecond",value:e};if(e%6e4!=0)return{unit:"second",value:e/1e3};if(e%36e5!=0)return{unit:"minute",value:e/6e4};if(e)return{unit:"hour",value:e/36e5}}return t.days?t.specifiedWeeks&&t.days%7==0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function je(t,e,n){void 0===n&&(n=!1);var i=t.toISOString();return i=i.replace(".000",""),n&&(i=i.replace("T00:00:00Z","")),i.length>10&&(null==e?i=i.replace("Z",""):0!==e&&(i=i.replace("Z",Ue(e,!0)))),i}function Ve(t){return t.toISOString().replace(/T.*$/,"")}function We(t){return Gt(t.getUTCHours(),2)+":"+Gt(t.getUTCMinutes(),2)+":"+Gt(t.getUTCSeconds(),2)}function Ue(t,e){void 0===e&&(e=!1);var n=t<0?"-":"+",i=Math.abs(t),r=Math.floor(i/60),o=Math.round(i%60);return e?n+Gt(r,2)+":"+Gt(o,2):"GMT"+n+r+(o?":"+Gt(o,2):"")}function Ye(t,e,n){if(t===e)return!0;var i,r=t.length;if(r!==e.length)return!1;for(i=0;i<r;i+=1)if(!(n?n(t[i],e[i]):t[i]===e[i]))return!1;return!0}function $e(t,e,n){var i,r;return function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];if(i){if(!Ye(i,o)){n&&n(r);var s=t.apply(this,o);e&&e(s,r)||(r=s)}}else r=t.apply(this,o);return i=o,r}}function qe(t,e,n){var i,r,o=this;return function(l){if(i){if(!Se(i,l)){n&&n(r);var s=t.call(o,l);e&&e(s,r)||(r=s)}}else r=t.call(o,l);return i=l,r}}var Ge={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Ze={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Ke=/\s*([ap])\.?m\.?/i,Xe=/,/g,Qe=/\s+/g,Je=/\u200e/g,tn=/UTC|GMT/,en=function(){function t(t){var e={},n={},i=0;for(var r in t)r in Ge?(n[r]=t[r],i=Math.max(Ge[r],i)):(e[r]=t[r],r in Ze&&(i=Math.max(Ze[r],i)));this.standardDateProps=e,this.extendedSettings=n,this.severity=i,this.buildFormattingFunc=$e(nn)}return t.prototype.format=function(t,e){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,e)(t)},t.prototype.formatRange=function(t,e,n,i){var r=this.standardDateProps,o=this.extendedSettings,l=function(t,e,n){return n.getMarkerYear(t)!==n.getMarkerYear(e)?5:n.getMarkerMonth(t)!==n.getMarkerMonth(e)?4:n.getMarkerDay(t)!==n.getMarkerDay(e)?2:me(t)!==me(e)?1:0}(t.marker,e.marker,n.calendarSystem);if(!l)return this.format(t,n);var s=l;!(s>1)||"numeric"!==r.year&&"2-digit"!==r.year||"numeric"!==r.month&&"2-digit"!==r.month||"numeric"!==r.day&&"2-digit"!==r.day||(s=1);var a=this.format(t,n),c=this.format(e,n);if(a===c)return a;var u=nn(function(t,e){var n={};for(var i in t)(!(i in Ze)||Ze[i]<=e)&&(n[i]=t[i]);return n}(r,s),o,n),d=u(t),h=u(e),p=function(t,e,n,i){for(var r=0;r<t.length;){var o=t.indexOf(e,r);if(-1===o)break;var l=t.substr(0,o);r=o+e.length;for(var s=t.substr(r),a=0;a<n.length;){var c=n.indexOf(i,a);if(-1===c)break;var u=n.substr(0,c);a=c+i.length;var d=n.substr(a);if(l===u&&s===d)return{before:l,after:s}}}return null}(a,d,c,h),f=o.separator||i||n.defaultSeparator||"";return p?p.before+d+f+h+p.after:a+f+c},t.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}},t}();function nn(t,e,n){var r=Object.keys(t).length;return 1===r&&"short"===t.timeZoneName?function(t){return Ue(t.timeZoneOffset)}:0===r&&e.week?function(t){return function(t,e,n,i,r){var o=[];return"long"===r?o.push(n):"short"!==r&&"narrow"!==r||o.push(e),"long"!==r&&"short"!==r||o.push(" "),o.push(i.simpleNumberFormat.format(t)),"rtl"===i.options.direction&&o.reverse(),o.join("")}(n.computeWeekNumber(t.marker),n.weekText,n.weekTextLong,n.locale,e.week)}:function(t,e,n){t=i({},t),e=i({},e),function(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),"long"===t.timeZoneName&&(t.timeZoneName="short"),e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}(t,e),t.timeZone="UTC";var r,o=new Intl.DateTimeFormat(n.locale.codes,t);if(e.omitZeroMinute){var l=i({},t);delete l.minute,r=new Intl.DateTimeFormat(n.locale.codes,l)}return function(i){var l=i.marker;return function(t,e,n,i,r){return t=t.replace(Je,""),"short"===n.timeZoneName&&(t=function(t,e){var n=!1;return t=t.replace(tn,(function(){return n=!0,e})),n||(t+=" "+e),t}(t,"UTC"===r.timeZone||null==e.timeZoneOffset?"UTC":Ue(e.timeZoneOffset))),i.omitCommas&&(t=t.replace(Xe,"").trim()),i.omitZeroMinute&&(t=t.replace(":00","")),!1===i.meridiem?t=t.replace(Ke,"").trim():"narrow"===i.meridiem?t=t.replace(Ke,(function(t,e){return e.toLocaleLowerCase()})):"short"===i.meridiem?t=t.replace(Ke,(function(t,e){return e.toLocaleLowerCase()+"m"})):"lowercase"===i.meridiem&&(t=t.replace(Ke,(function(t){return t.toLocaleLowerCase()}))),(t=t.replace(Qe," ")).trim()}((r&&!l.getUTCMinutes()?r:o).format(l),i,t,e,n)}}(t,e,n)}function rn(t,e){var n=e.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function on(t,e,n,i){var r=rn(t,n.calendarSystem);return{date:r,start:r,end:e?rn(e,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:i||n.defaultSeparator}}var ln=function(){function t(t){this.cmdStr=t}return t.prototype.format=function(t,e,n){return e.cmdFormatter(this.cmdStr,on(t,null,e,n))},t.prototype.formatRange=function(t,e,n,i){return n.cmdFormatter(this.cmdStr,on(t,e,n,i))},t}(),sn=function(){function t(t){this.func=t}return t.prototype.format=function(t,e,n){return this.func(on(t,null,e,n))},t.prototype.formatRange=function(t,e,n,i){return this.func(on(t,e,n,i))},t}();function an(t){return"object"==typeof t&&t?new en(t):"string"==typeof t?new ln(t):"function"==typeof t?new sn(t):null}var cn={navLinkDayClick:yn,navLinkWeekClick:yn,duration:Oe,bootstrapFontAwesome:yn,buttonIcons:yn,customButtons:yn,defaultAllDayEventDuration:Oe,defaultTimedEventDuration:Oe,nextDayThreshold:Oe,scrollTime:Oe,scrollTimeReset:Boolean,slotMinTime:Oe,slotMaxTime:Oe,dayPopoverFormat:an,slotDuration:Oe,snapDuration:Oe,headerToolbar:yn,footerToolbar:yn,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:an,dayHeaderClassNames:yn,dayHeaderContent:yn,dayHeaderDidMount:yn,dayHeaderWillUnmount:yn,dayCellClassNames:yn,dayCellContent:yn,dayCellDidMount:yn,dayCellWillUnmount:yn,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:yn,weekNumbers:Boolean,weekNumberClassNames:yn,weekNumberContent:yn,weekNumberDidMount:yn,weekNumberWillUnmount:yn,editable:Boolean,viewClassNames:yn,viewDidMount:yn,viewWillUnmount:yn,nowIndicator:Boolean,nowIndicatorClassNames:yn,nowIndicatorContent:yn,nowIndicatorDidMount:yn,nowIndicatorWillUnmount:yn,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:yn,locale:yn,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:yn,eventOrder:Ut,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:yn,contentHeight:yn,direction:String,weekNumberFormat:an,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:yn,initialDate:yn,now:yn,eventDataTransform:yn,stickyHeaderDates:yn,stickyFooterScrollbar:yn,viewHeight:yn,defaultAllDay:Boolean,eventSourceFailure:yn,eventSourceSuccess:yn,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:yn,eventConstraint:yn,eventAllow:yn,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:yn,eventContent:yn,eventDidMount:yn,eventWillUnmount:yn,selectConstraint:yn,selectOverlap:yn,selectAllow:yn,droppable:Boolean,unselectCancel:String,slotLabelFormat:yn,slotLaneClassNames:yn,slotLaneContent:yn,slotLaneDidMount:yn,slotLaneWillUnmount:yn,slotLabelClassNames:yn,slotLabelContent:yn,slotLabelDidMount:yn,slotLabelWillUnmount:yn,dayMaxEvents:yn,dayMaxEventRows:yn,dayMinWidth:Number,slotLabelInterval:Oe,allDayText:String,allDayClassNames:yn,allDayContent:yn,allDayDidMount:yn,allDayWillUnmount:yn,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:an,rerenderDelay:Number,moreLinkText:yn,moreLinkHint:yn,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:yn,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Oe,hiddenDays:yn,monthMode:Boolean,fixedWeekCount:Boolean,validRange:yn,visibleRange:yn,titleFormat:yn,eventInteractive:Boolean,noEventsText:String,viewHint:yn,navLinkHint:yn,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:yn,moreLinkClassNames:yn,moreLinkContent:yn,moreLinkDidMount:yn,moreLinkWillUnmount:yn},un={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30},dn={datesSet:yn,eventsSet:yn,eventAdd:yn,eventChange:yn,eventRemove:yn,windowResize:yn,eventClick:yn,eventMouseEnter:yn,eventMouseLeave:yn,select:yn,unselect:yn,loading:yn,_unmount:yn,_beforeprint:yn,_afterprint:yn,_noEventDrop:yn,_noEventResize:yn,_resize:yn,_scrollRequest:yn},hn={buttonText:yn,buttonHints:yn,views:yn,plugins:yn,initialEvents:yn,events:yn,eventSources:yn},pn={headerToolbar:fn,footerToolbar:fn,buttonText:fn,buttonHints:fn,buttonIcons:fn,dateIncrement:fn};function fn(t,e){return"object"==typeof t&&"object"==typeof e&&t&&e?Se(t,e):t===e}var gn={type:String,component:yn,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:yn,usesMinMaxTime:Boolean,classNames:yn,content:yn,didMount:yn,willUnmount:yn};function mn(t){return be(t,pn)}function vn(t,e){var n={},i={};for(var r in e)r in t&&(n[r]=e[r](t[r]));for(var r in t)r in e||(i[r]=t[r]);return{refined:n,extra:i}}function yn(t){return t}function bn(t,e,n,i){for(var r={defs:{},instances:{}},o=Rn(n),l=0,s=t;l<s.length;l++){var a=On(s[l],e,n,i,o);a&&_n(a,r)}return r}function _n(t,e){return void 0===e&&(e={defs:{},instances:{}}),e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function wn(t,e){var n=t.instances[e];if(n){var i=t.defs[n.defId],r=En(t,(function(t){return e=i,n=t,Boolean(e.groupId&&e.groupId===n.groupId);var e,n}));return r.defs[i.defId]=i,r.instances[n.instanceId]=n,r}return{defs:{},instances:{}}}function xn(t,e){return{defs:i(i({},t.defs),e.defs),instances:i(i({},t.instances),e.instances)}}function En(t,e){var n=_e(t.defs,e),i=_e(t.instances,(function(t){return n[t.defId]}));return{defs:n,instances:i}}function Sn(t){return Array.isArray(t)?t:"string"==typeof t?t.split(/\s+/):[]}var Cn={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:yn,overlap:yn,allow:yn,className:Sn,classNames:Sn,color:String,backgroundColor:String,borderColor:String,textColor:String},Mn={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function kn(t,e){var n=function(t,e){return Array.isArray(t)?bn(t,null,e,!0):"object"==typeof t&&t?bn([t],null,e,!0):null!=t?String(t):null}(t.constraint,e);return{display:t.display||null,startEditable:null!=t.startEditable?t.startEditable:t.editable,durationEditable:null!=t.durationEditable?t.durationEditable:t.editable,constraints:null!=n?[n]:[],overlap:null!=t.overlap?t.overlap:null,allows:null!=t.allow?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function Dn(t){return t.reduce(Tn,Mn)}function Tn(t,e){return{display:null!=e.display?e.display:t.display,startEditable:null!=e.startEditable?e.startEditable:t.startEditable,durationEditable:null!=e.durationEditable?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:"boolean"==typeof e.overlap?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}var Ln={id:String,groupId:String,title:String,url:String,interactive:Boolean},An={start:yn,end:yn,date:yn,allDay:Boolean},Pn=i(i(i({},Ln),An),{extendedProps:yn});function On(t,e,n,i,r){void 0===r&&(r=Rn(n));var o=In(t,n,r),l=o.refined,s=o.extra,a=function(t,e){var n=null;return t&&(n=t.defaultAllDay),null==n&&(n=e.options.defaultAllDay),n}(e,n),c=function(t,e,n,i){for(var r=0;r<i.length;r+=1){var o=i[r].parse(t,n);if(o){var l=t.allDay;return null==l&&null==(l=e)&&null==(l=o.allDayGuess)&&(l=!1),{allDay:l,duration:o.duration,typeData:o.typeData,typeId:r}}}return null}(l,a,n.dateEnv,n.pluginHooks.recurringTypes);if(c)return(u=Nn(l,s,e?e.sourceId:"",c.allDay,Boolean(c.duration),n)).recurringDef={typeId:c.typeId,typeData:c.typeData,duration:c.duration},{def:u,instance:null};var u,d=function(t,e,n,i){var r,o,l=t.allDay,s=null,a=!1,c=null,u=null!=t.start?t.start:t.date;if(r=n.dateEnv.createMarkerMeta(u))s=r.marker;else if(!i)return null;return null!=t.end&&(o=n.dateEnv.createMarkerMeta(t.end)),null==l&&(l=null!=e?e:(!r||r.isTimeUnspecified)&&(!o||o.isTimeUnspecified)),l&&s&&(s=ae(s)),o&&(c=o.marker,l&&(c=ae(c)),s&&c<=s&&(c=null)),c?a=!0:i||(a=n.options.forceEventDuration||!1,c=n.dateEnv.add(s,l?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:l,hasEnd:a,range:{start:s,end:c},forcedStartTzo:r?r.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}(l,a,n,i);return d?{def:u=Nn(l,s,e?e.sourceId:"",d.allDay,d.hasEnd,n),instance:ve(u.defId,d.range,d.forcedStartTzo,d.forcedEndTzo)}:null}function In(t,e,n){return void 0===n&&(n=Rn(e)),vn(t,n)}function Rn(t){return i(i(i({},Cn),Pn),t.pluginHooks.eventRefiners)}function Nn(t,e,n,r,o,l){for(var s={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:zt(),sourceId:n,allDay:r,hasEnd:o,interactive:t.interactive,ui:kn(t,l),extendedProps:i(i({},t.extendedProps||{}),e)},a=0,c=l.pluginHooks.eventDefMemberAdders;a<c.length;a++){var u=c[a];i(s,u(t))}return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function zn(t){var e=Math.floor(re(t.start,t.end))||1,n=ae(t.start);return{start:n,end:ee(n,e)}}function Fn(t,e){void 0===e&&(e=Oe(0));var n=null,i=null;if(t.end){i=ae(t.end);var r=t.end.valueOf()-i.valueOf();r&&r>=Fe(e)&&(i=ee(i,1))}return t.start&&(n=ae(t.start),i&&i<=n&&(i=ee(n,1))),{start:n,end:i}}function Hn(t){var e=Fn(t);return re(e.start,e.end)>1}function Bn(t,e,n,i){return"year"===i?Oe(n.diffWholeYears(t,e),"year"):"month"===i?Oe(n.diffWholeMonths(t,e),"month"):oe(t,e)}function jn(t,e){var n,i,r=[],o=e.start;for(t.sort(Vn),n=0;n<t.length;n+=1)(i=t[n]).start>o&&r.push({start:o,end:i.start}),i.end>o&&(o=i.end);return o<e.end&&r.push({start:o,end:e.end}),r}function Vn(t,e){return t.start.valueOf()-e.start.valueOf()}function Wn(t,e){var n=t.start,i=t.end,r=null;return null!==e.start&&(n=null===n?e.start:new Date(Math.max(n.valueOf(),e.start.valueOf()))),null!=e.end&&(i=null===i?e.end:new Date(Math.min(i.valueOf(),e.end.valueOf()))),(null===n||null===i||n<i)&&(r={start:n,end:i}),r}function Un(t,e){return(null===t.start?null:t.start.valueOf())===(null===e.start?null:e.start.valueOf())&&(null===t.end?null:t.end.valueOf())===(null===e.end?null:e.end.valueOf())}function Yn(t,e){return(null===t.end||null===e.start||t.end>e.start)&&(null===t.start||null===e.end||t.start<e.end)}function $n(t,e){return(null===t.start||null!==e.start&&e.start>=t.start)&&(null===t.end||null!==e.end&&e.end<=t.end)}function qn(t,e){return(null===t.start||e>=t.start)&&(null===t.end||e<t.end)}function Gn(t,e,n,i){var r={},o={},l={},s=[],a=[],c=Qn(t.defs,e);for(var u in t.defs)"inverse-background"===(p=c[(_=t.defs[u]).defId]).display&&(_.groupId?(r[_.groupId]=[],l[_.groupId]||(l[_.groupId]=_)):o[u]=[]);for(var d in t.instances){var h=t.instances[d],p=c[(_=t.defs[h.defId]).defId],f=h.range,g=!_.allDay&&i?Fn(f,i):f,m=Wn(g,n);m&&("inverse-background"===p.display?_.groupId?r[_.groupId].push(m):o[h.defId].push(m):"none"!==p.display&&("background"===p.display?s:a).push({def:_,ui:p,instance:h,range:m,isStart:g.start&&g.start.valueOf()===m.start.valueOf(),isEnd:g.end&&g.end.valueOf()===m.end.valueOf()}))}for(var v in r)for(var y=0,b=jn(r[v],n);y<b.length;y++){var _,w=b[y];p=c[(_=l[v]).defId],s.push({def:_,ui:p,instance:null,range:w,isStart:!1,isEnd:!1})}for(var u in o)for(var x=0,E=jn(o[u],n);x<E.length;x++)w=E[x],s.push({def:t.defs[u],ui:c[u],instance:null,range:w,isStart:!1,isEnd:!1});return{bg:s,fg:a}}function Zn(t){return"background"===t.ui.display||"inverse-background"===t.ui.display}function Kn(t,e){t.fcSeg=e}function Xn(t){return t.fcSeg||t.parentNode.fcSeg||null}function Qn(t,e){return we(t,(function(t){return Jn(t,e)}))}function Jn(t,e){var n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),Dn(n)}function ti(t,e){var n=t.map(ei);return n.sort((function(t,n){return Yt(t,n,e)})),n.map((function(t){return t._seg}))}function ei(t){var e=t.eventRange,n=e.def,r=e.instance?e.instance.range:e.range,o=r.start?r.start.valueOf():0,l=r.end?r.end.valueOf():0;return i(i(i({},n.extendedProps),n),{id:n.publicId,start:o,end:l,duration:l-o,allDay:Number(n.allDay),_seg:t})}function ni(t,e){for(var n=e.pluginHooks.isDraggableTransformers,i=t.eventRange,r=i.def,o=i.ui,l=o.startEditable,s=0,a=n;s<a.length;s++)l=(0,a[s])(l,r,o,e);return l}function ii(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function ri(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function oi(t,e,n,i,r,o,l){var s=n.dateEnv,a=n.options,c=a.displayEventTime,u=a.displayEventEnd,d=t.eventRange.def,h=t.eventRange.instance;null==c&&(c=!1!==i),null==u&&(u=!1!==r);var p=h.range.start,f=h.range.end,g=o||t.start||t.eventRange.range.start,m=l||t.end||t.eventRange.range.end,v=ae(p).valueOf()===ae(g).valueOf(),y=ae(ne(f,-1)).valueOf()===ae(ne(m,-1)).valueOf();return c&&!d.allDay&&(v||y)?(g=v?p:g,m=y?f:m,u&&d.hasEnd?s.formatRange(g,m,e,{forcedStartTzo:o?null:h.forcedStartTzo,forcedEndTzo:l?null:h.forcedEndTzo}):s.format(g,e,{forcedTzo:o?null:h.forcedStartTzo})):""}function li(t,e,n){var i=t.eventRange.range;return{isPast:i.end<(n||e.start),isFuture:i.start>=(n||e.end),isToday:e&&qn(e,i.start)}}function si(t){var e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function ai(t){return t.instance?t.instance.instanceId:t.def.defId+":"+t.range.start.toISOString()}function ci(t,e){var n=t.eventRange,i=n.def,r=n.instance,o=i.url;if(o)return{href:o};var l=e.emitter,s=e.options.eventInteractive;return null==s&&null==(s=i.interactive)&&(s=Boolean(l.hasHandlers("eventClick"))),s?Rt((function(t){l.trigger("eventClick",{el:t.target,event:new Di(e,i,r),jsEvent:t,view:e.viewApi})})):{}}var ui={start:yn,end:yn,allDay:Boolean};function di(t,e,n){var r=function(t,e){var n=vn(t,ui),r=n.refined,o=n.extra,l=r.start?e.createMarkerMeta(r.start):null,s=r.end?e.createMarkerMeta(r.end):null,a=r.allDay;return null==a&&(a=l&&l.isTimeUnspecified&&(!s||s.isTimeUnspecified)),i({range:{start:l?l.marker:null,end:s?s.marker:null},allDay:a},o)}(t,e),o=r.range;if(!o.start)return null;if(!o.end){if(null==n)return null;o.end=e.add(o.start,n)}return r}function hi(t,e){return Un(t.range,e.range)&&t.allDay===e.allDay&&function(t,e){for(var n in e)if("range"!==n&&"allDay"!==n&&t[n]!==e[n])return!1;for(var n in t)if(!(n in e))return!1;return!0}(t,e)}function pi(t,e,n){return i(i({},fi(t,e,n)),{timeZone:e.timeZone})}function fi(t,e,n){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:n}),endStr:e.formatIso(t.end,{omitTime:n})}}function gi(t,e,n){var i=In({editable:!1},n),r=Nn(i.refined,i.extra,"",t.allDay,!0,n);return{def:r,ui:Jn(r,e),instance:ve(r.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function mi(t,e,n){n.emitter.trigger("select",i(i({},vi(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function vi(t,e){for(var n,r,o={},l=0,s=e.pluginHooks.dateSpanTransforms;l<s.length;l++){var a=s[l];i(o,a(t,e))}return i(o,(n=t,r=e.dateEnv,i(i({},fi(n.range,r,n.allDay)),{allDay:n.allDay}))),o}function yi(t,e,n){var i=n.dateEnv,r=n.options,o=e;return t?(o=ae(o),o=i.add(o,r.defaultAllDayEventDuration)):o=i.add(o,r.defaultTimedEventDuration),o}function bi(t,e,n,i){var r=Qn(t.defs,e),o={defs:{},instances:{}};for(var l in t.defs){var s=t.defs[l];o.defs[l]=_i(s,r[l],n,i)}for(var a in t.instances){var c=t.instances[a];s=o.defs[c.defId],o.instances[a]=wi(c,s,r[c.defId],n,i)}return o}function _i(t,e,n,r){var o=n.standardProps||{};null==o.hasEnd&&e.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);var l=i(i(i({},t),o),{ui:i(i({},t.ui),o.ui)});n.extendedProps&&(l.extendedProps=i(i({},l.extendedProps),n.extendedProps));for(var s=0,a=r.pluginHooks.eventDefMutationAppliers;s<a.length;s++)(0,a[s])(l,n,r);return!l.hasEnd&&r.options.forceEventDuration&&(l.hasEnd=!0),l}function wi(t,e,n,r,o){var l=o.dateEnv,s=r.standardProps&&!0===r.standardProps.allDay,a=r.standardProps&&!1===r.standardProps.hasEnd,c=i({},t);return s&&(c.range=zn(c.range)),r.datesDelta&&n.startEditable&&(c.range={start:l.add(c.range.start,r.datesDelta),end:l.add(c.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(c.range={start:l.add(c.range.start,r.startDelta),end:c.range.end}),r.endDelta&&n.durationEditable&&(c.range={start:c.range.start,end:l.add(c.range.end,r.endDelta)}),a&&(c.range={start:c.range.start,end:yi(e.allDay,c.range.start,o)}),e.allDay&&(c.range={start:ae(c.range.start),end:ae(c.range.end)}),c.range.end<c.range.start&&(c.range.end=yi(e.allDay,c.range.start,o)),c}var xi=function(){function t(t,e,n){this.type=t,this.getCurrentData=e,this.dateEnv=n}return Object.defineProperty(t.prototype,"calendar",{get:function(){return this.getCurrentData().calendarApi},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getCurrentData().viewTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)},enumerable:!1,configurable:!0}),t.prototype.getOption=function(t){return this.getCurrentData().options[t]},t}(),Ei={id:String,defaultAllDay:Boolean,url:String,format:String,events:yn,eventDataTransform:yn,success:yn,failure:yn};function Si(t,e,n){var i;if(void 0===n&&(n=Ci(e)),"string"==typeof t?i={url:t}:"function"==typeof t||Array.isArray(t)?i={events:t}:"object"==typeof t&&t&&(i=t),i){var r=vn(i,n),o=r.refined,l=r.extra,s=function(t,e){for(var n=e.pluginHooks.eventSourceDefs,i=n.length-1;i>=0;i-=1){var r=n[i].parseMeta(t);if(r)return{sourceDefId:i,meta:r}}return null}(o,e);if(s)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:o.defaultAllDay,eventDataTransform:o.eventDataTransform,success:o.success,failure:o.failure,publicId:o.id||"",sourceId:zt(),sourceDefId:s.sourceDefId,meta:s.meta,ui:kn(o,e),extendedProps:l}}return null}function Ci(t){return i(i(i({},Cn),Ei),t.pluginHooks.eventSourceRefiners)}function Mi(t,e){return"function"==typeof t&&(t=t()),null==t?e.createNowMarker():e.createMarker(t)}var ki=function(){function t(){}return t.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},t.prototype.dispatch=function(t){return this.currentDataManager.dispatch(t)},Object.defineProperty(t.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),t.prototype.batchRendering=function(t){t()},t.prototype.updateSize=function(){this.trigger("_resize",!0)},t.prototype.setOption=function(t,e){this.dispatch({type:"SET_OPTION",optionName:t,rawOptionValue:e})},t.prototype.getOption=function(t){return this.currentDataManager.currentCalendarOptionsInput[t]},t.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},t.prototype.on=function(t,e){var n=this.currentDataManager;n.currentCalendarOptionsRefiners[t]?n.emitter.on(t,e):console.warn("Unknown listener name '"+t+"'")},t.prototype.off=function(t,e){this.currentDataManager.emitter.off(t,e)},t.prototype.trigger=function(t){for(var e,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];(e=this.currentDataManager.emitter).trigger.apply(e,r([t],n))},t.prototype.changeView=function(t,e){var n=this;this.batchRendering((function(){if(n.unselect(),e)if(e.start&&e.end)n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t}),n.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:e});else{var i=n.getCurrentData().dateEnv;n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t,dateMarker:i.createMarker(e)})}else n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t})}))},t.prototype.zoomTo=function(t,e){var n;e=e||"day",n=this.getCurrentData().viewSpecs[e]||this.getUnitViewSpec(e),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:t}):this.dispatch({type:"CHANGE_DATE",dateMarker:t})},t.prototype.getUnitViewSpec=function(t){var e,n,i=this.getCurrentData(),r=i.viewSpecs,o=i.toolbarConfig,l=[].concat(o.header?o.header.viewsWithButtons:[],o.footer?o.footer.viewsWithButtons:[]);for(var s in r)l.push(s);for(e=0;e<l.length;e+=1)if((n=r[l[e]])&&n.singleUnit===t)return n;return null},t.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},t.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},t.prototype.prevYear=function(){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.addYears(t.currentDate,-1)})},t.prototype.nextYear=function(){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.addYears(t.currentDate,1)})},t.prototype.today=function(){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:Mi(t.calendarOptions.now,t.dateEnv)})},t.prototype.gotoDate=function(t){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.createMarker(t)})},t.prototype.incrementDate=function(t){var e=this.getCurrentData(),n=Oe(t);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.add(e.currentDate,n)}))},t.prototype.getDate=function(){var t=this.getCurrentData();return t.dateEnv.toDate(t.currentDate)},t.prototype.formatDate=function(t,e){var n=this.getCurrentData().dateEnv;return n.format(n.createMarker(t),an(e))},t.prototype.formatRange=function(t,e,n){var i=this.getCurrentData().dateEnv;return i.formatRange(i.createMarker(t),i.createMarker(e),an(n),n)},t.prototype.formatIso=function(t,e){var n=this.getCurrentData().dateEnv;return n.formatIso(n.createMarker(t),{omitTime:e})},t.prototype.select=function(t,e){var n;n=null==e?null!=t.start?t:{start:t,end:null}:{start:t,end:e};var i=this.getCurrentData(),r=di(n,i.dateEnv,Oe({days:1}));r&&(this.dispatch({type:"SELECT_DATES",selection:r}),mi(r,null,i))},t.prototype.unselect=function(t){var e=this.getCurrentData();e.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}(t,e))},t.prototype.addEvent=function(t,e){if(t instanceof Di){var n=t._def,i=t._instance;return this.getCurrentData().eventStore.defs[n.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:_n({def:n,instance:i})}),this.triggerEventAdd(t)),t}var r,o=this.getCurrentData();if(e instanceof yt)r=e.internalEventSource;else if("boolean"==typeof e)e&&(r=Ee(o.eventSources)[0]);else if(null!=e){var l=this.getEventSourceById(e);if(!l)return console.warn('Could not find an event source with ID "'+e+'"'),null;r=l.internalEventSource}var s=On(t,r,o,!1);if(s){var a=new Di(o,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:_n(s)}),this.triggerEventAdd(a),a}return null},t.prototype.triggerEventAdd=function(t){var e=this;this.getCurrentData().emitter.trigger("eventAdd",{event:t,relatedEvents:[],revert:function(){e.dispatch({type:"REMOVE_EVENTS",eventStore:Ti(t)})}})},t.prototype.getEventById=function(t){var e=this.getCurrentData(),n=e.eventStore,i=n.defs,r=n.instances;for(var o in t=String(t),i){var l=i[o];if(l.publicId===t){if(l.recurringDef)return new Di(e,l,null);for(var s in r){var a=r[s];if(a.defId===l.defId)return new Di(e,l,a)}}}return null},t.prototype.getEvents=function(){var t=this.getCurrentData();return Li(t.eventStore,t)},t.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},t.prototype.getEventSources=function(){var t=this.getCurrentData(),e=t.eventSources,n=[];for(var i in e)n.push(new yt(t,e[i]));return n},t.prototype.getEventSourceById=function(t){var e=this.getCurrentData(),n=e.eventSources;for(var i in t=String(t),n)if(n[i].publicId===t)return new yt(e,n[i]);return null},t.prototype.addEventSource=function(t){var e=this.getCurrentData();if(t instanceof yt)return e.eventSources[t.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t.internalEventSource]}),t;var n=Si(t,e);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new yt(e,n)):null},t.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},t.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})},t.prototype.scrollToTime=function(t){var e=Oe(t);e&&this.trigger("_scrollRequest",{time:e})},t}(),Di=function(){function t(t,e,n){this._context=t,this._def=e,this._instance=n||null}return t.prototype.setProp=function(t,e){var n,i;if(t in An)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===t)e=Ln[t](e),this.mutate({standardProps:{publicId:e}});else if(t in Ln)e=Ln[t](e),this.mutate({standardProps:(n={},n[t]=e,n)});else if(t in Cn){var r=Cn[t](e);"color"===t?r={backgroundColor:e,borderColor:e}:"editable"===t?r={startEditable:e,durationEditable:e}:((i={})[t]=e,r=i),this.mutate({standardProps:{ui:r}})}else console.warn("Could not set prop '"+t+"'. Use setExtendedProp instead.")},t.prototype.setExtendedProp=function(t,e){var n;this.mutate({extendedProps:(n={},n[t]=e,n)})},t.prototype.setStart=function(t,e){void 0===e&&(e={});var n=this._context.dateEnv,i=n.createMarker(t);if(i&&this._instance){var r=Bn(this._instance.range.start,i,n,e.granularity);e.maintainDuration?this.mutate({datesDelta:r}):this.mutate({startDelta:r})}},t.prototype.setEnd=function(t,e){void 0===e&&(e={});var n,i=this._context.dateEnv;if((null==t||(n=i.createMarker(t)))&&this._instance)if(n){var r=Bn(this._instance.range.end,n,i,e.granularity);this.mutate({endDelta:r})}else this.mutate({standardProps:{hasEnd:!1}})},t.prototype.setDates=function(t,e,n){void 0===n&&(n={});var i,r,o,l=this._context.dateEnv,s={allDay:n.allDay},a=l.createMarker(t);if(a&&(null==e||(i=l.createMarker(e)))&&this._instance){var c=this._instance.range;!0===n.allDay&&(c=zn(c));var u=Bn(c.start,a,l,n.granularity);if(i){var d=Bn(c.end,i,l,n.granularity);o=d,(r=u).years===o.years&&r.months===o.months&&r.days===o.days&&r.milliseconds===o.milliseconds?this.mutate({datesDelta:u,standardProps:s}):this.mutate({startDelta:u,endDelta:d,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:u,standardProps:s})}},t.prototype.moveStart=function(t){var e=Oe(t);e&&this.mutate({startDelta:e})},t.prototype.moveEnd=function(t){var e=Oe(t);e&&this.mutate({endDelta:e})},t.prototype.moveDates=function(t){var e=Oe(t);e&&this.mutate({datesDelta:e})},t.prototype.setAllDay=function(t,e){void 0===e&&(e={});var n={allDay:t},i=e.maintainDuration;null==i&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==t&&(n.hasEnd=i),this.mutate({standardProps:n})},t.prototype.formatRange=function(t){var e=this._context.dateEnv,n=this._instance,i=an(t);return this._def.hasEnd?e.formatRange(n.range.start,n.range.end,i,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):e.format(n.range.start,i,{forcedTzo:n.forcedStartTzo})},t.prototype.mutate=function(e){var n=this._instance;if(n){var i=this._def,r=this._context,o=r.getCurrentData().eventStore,l=wn(o,n.instanceId);l=bi(l,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,r);var s=new t(r,i,n);this._def=l.defs[i.defId],this._instance=l.instances[n.instanceId],r.dispatch({type:"MERGE_EVENTS",eventStore:l}),r.emitter.trigger("eventChange",{oldEvent:s,event:this,relatedEvents:Li(l,r,n),revert:function(){r.dispatch({type:"RESET_EVENTS",eventStore:o})}})}},t.prototype.remove=function(){var t=this._context,e=Ti(this);t.dispatch({type:"REMOVE_EVENTS",eventStore:e}),t.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:e})}})},Object.defineProperty(t.prototype,"source",{get:function(){var t=this._def.sourceId;return t?new yt(this._context,this._context.getCurrentData().eventSources[t]):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startStr",{get:function(){var t=this._instance;return t?this._context.dateEnv.formatIso(t.range.start,{omitTime:this._def.allDay,forcedTzo:t.forcedStartTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"endStr",{get:function(){var t=this._instance;return t&&this._def.hasEnd?this._context.dateEnv.formatIso(t.range.end,{omitTime:this._def.allDay,forcedTzo:t.forcedEndTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._def.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._def.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this._def.url},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"display",{get:function(){return this._def.ui.display||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!1,configurable:!0}),t.prototype.toPlainObject=function(t){void 0===t&&(t={});var e=this._def,n=e.ui,r=this.startStr,o=this.endStr,l={};return e.title&&(l.title=e.title),r&&(l.start=r),o&&(l.end=o),e.publicId&&(l.id=e.publicId),e.groupId&&(l.groupId=e.groupId),e.url&&(l.url=e.url),n.display&&"auto"!==n.display&&(l.display=n.display),t.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?l.color=n.backgroundColor:(n.backgroundColor&&(l.backgroundColor=n.backgroundColor),n.borderColor&&(l.borderColor=n.borderColor)),n.textColor&&(l.textColor=n.textColor),n.classNames.length&&(l.classNames=n.classNames),Object.keys(e.extendedProps).length&&(t.collapseExtendedProps?i(l,e.extendedProps):l.extendedProps=e.extendedProps),l},t.prototype.toJSON=function(){return this.toPlainObject()},t}();function Ti(t){var e,n,i=t._def,r=t._instance;return{defs:(e={},e[i.defId]=i,e),instances:r?(n={},n[r.instanceId]=r,n):{}}}function Li(t,e,n){var i=t.defs,r=t.instances,o=[],l=n?n.instanceId:"";for(var s in r){var a=r[s],c=i[a.defId];a.instanceId!==l&&o.push(new Di(e,c,a))}return o}var Ai,Pi={};Ai=function(){function t(){}return t.prototype.getMarkerYear=function(t){return t.getUTCFullYear()},t.prototype.getMarkerMonth=function(t){return t.getUTCMonth()},t.prototype.getMarkerDay=function(t){return t.getUTCDate()},t.prototype.arrayToMarker=function(t){return fe(t)},t.prototype.markerToArray=function(t){return pe(t)},t}(),Pi.gregory=Ai;var Oi=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Ii(t){var e=Oi.exec(t);if(e){var n=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?1e3*Number("0."+e[12]):0));if(ge(n)){var i=null;return e[13]&&(i=("-"===e[15]?-1:1)*(60*Number(e[16]||0)+Number(e[18]||0))),{marker:n,isTimeUnspecified:!e[6],timeZoneOffset:i}}}return null}var Ri=function(){function t(t){var e=this.timeZone=t.timeZone,n="local"!==e&&"UTC"!==e;t.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new t.namedTimeZoneImpl(e)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=function(t){return new Pi[t]}(t.calendarSystem),this.locale=t.locale,this.weekDow=t.locale.week.dow,this.weekDoy=t.locale.week.doy,"ISO"===t.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof t.firstDay&&(this.weekDow=t.firstDay),"function"==typeof t.weekNumberCalculation&&(this.weekNumberFunc=t.weekNumberCalculation),this.weekText=null!=t.weekText?t.weekText:t.locale.options.weekText,this.weekTextLong=(null!=t.weekTextLong?t.weekTextLong:t.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=t.cmdFormatter,this.defaultSeparator=t.defaultSeparator}return t.prototype.createMarker=function(t){var e=this.createMarkerMeta(t);return null===e?null:e.marker},t.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):fe(de(new Date))},t.prototype.createMarkerMeta=function(t){if("string"==typeof t)return this.parse(t);var e=null;return"number"==typeof t?e=this.timestampToMarker(t):t instanceof Date?(t=t.valueOf(),isNaN(t)||(e=this.timestampToMarker(t))):Array.isArray(t)&&(e=fe(t)),null!==e&&ge(e)?{marker:e,isTimeUnspecified:!1,forcedTzo:null}:null},t.prototype.parse=function(t){var e=Ii(t);if(null===e)return null;var n=e.marker,i=null;return null!==e.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*e.timeZoneOffset*1e3):i=e.timeZoneOffset),{marker:n,isTimeUnspecified:e.isTimeUnspecified,forcedTzo:i}},t.prototype.getYear=function(t){return this.calendarSystem.getMarkerYear(t)},t.prototype.getMonth=function(t){return this.calendarSystem.getMarkerMonth(t)},t.prototype.add=function(t,e){var n=this.calendarSystem.markerToArray(t);return n[0]+=e.years,n[1]+=e.months,n[2]+=e.days,n[6]+=e.milliseconds,this.calendarSystem.arrayToMarker(n)},t.prototype.subtract=function(t,e){var n=this.calendarSystem.markerToArray(t);return n[0]-=e.years,n[1]-=e.months,n[2]-=e.days,n[6]-=e.milliseconds,this.calendarSystem.arrayToMarker(n)},t.prototype.addYears=function(t,e){var n=this.calendarSystem.markerToArray(t);return n[0]+=e,this.calendarSystem.arrayToMarker(n)},t.prototype.addMonths=function(t,e){var n=this.calendarSystem.markerToArray(t);return n[1]+=e,this.calendarSystem.arrayToMarker(n)},t.prototype.diffWholeYears=function(t,e){var n=this.calendarSystem;return me(t)===me(e)&&n.getMarkerDay(t)===n.getMarkerDay(e)&&n.getMarkerMonth(t)===n.getMarkerMonth(e)?n.getMarkerYear(e)-n.getMarkerYear(t):null},t.prototype.diffWholeMonths=function(t,e){var n=this.calendarSystem;return me(t)===me(e)&&n.getMarkerDay(t)===n.getMarkerDay(e)?n.getMarkerMonth(e)-n.getMarkerMonth(t)+12*(n.getMarkerYear(e)-n.getMarkerYear(t)):null},t.prototype.greatestWholeUnit=function(t,e){var n=this.diffWholeYears(t,e);return null!==n?{unit:"year",value:n}:null!==(n=this.diffWholeMonths(t,e))?{unit:"month",value:n}:null!==(n=le(t,e))?{unit:"week",value:n}:null!==(n=se(t,e))?{unit:"day",value:n}:Xt(n=function(t,e){return(e.valueOf()-t.valueOf())/36e5}(t,e))?{unit:"hour",value:n}:Xt(n=function(t,e){return(e.valueOf()-t.valueOf())/6e4}(t,e))?{unit:"minute",value:n}:Xt(n=function(t,e){return(e.valueOf()-t.valueOf())/1e3}(t,e))?{unit:"second",value:n}:{unit:"millisecond",value:e.valueOf()-t.valueOf()}},t.prototype.countDurationsBetween=function(t,e,n){var i;return n.years&&null!==(i=this.diffWholeYears(t,e))?i/(ze(n)/365):n.months&&null!==(i=this.diffWholeMonths(t,e))?i/function(t){return ze(t)/30}(n):n.days&&null!==(i=se(t,e))?i/ze(n):(e.valueOf()-t.valueOf())/Fe(n)},t.prototype.startOf=function(t,e){return"year"===e?this.startOfYear(t):"month"===e?this.startOfMonth(t):"week"===e?this.startOfWeek(t):"day"===e?ae(t):"hour"===e?function(t){return fe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}(t):"minute"===e?function(t){return fe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}(t):"second"===e?function(t){return fe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}(t):null},t.prototype.startOfYear=function(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t)])},t.prototype.startOfMonth=function(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t)])},t.prototype.startOfWeek=function(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t),t.getUTCDate()-(t.getUTCDay()-this.weekDow+7)%7])},t.prototype.computeWeekNumber=function(t){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(t)):function(t,e,n){var i=t.getUTCFullYear(),r=ce(t,i,e,n);if(r<1)return ce(t,i-1,e,n);var o=ce(t,i+1,e,n);return o>=1?Math.min(r,o):r}(t,this.weekDow,this.weekDoy)},t.prototype.format=function(t,e,n){return void 0===n&&(n={}),e.format({marker:t,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(t)},this)},t.prototype.formatRange=function(t,e,n,i){return void 0===i&&(i={}),i.isEndExclusive&&(e=ne(e,-1)),n.formatRange({marker:t,timeZoneOffset:null!=i.forcedStartTzo?i.forcedStartTzo:this.offsetForMarker(t)},{marker:e,timeZoneOffset:null!=i.forcedEndTzo?i.forcedEndTzo:this.offsetForMarker(e)},this,i.defaultSeparator)},t.prototype.formatIso=function(t,e){void 0===e&&(e={});var n=null;return e.omitTimeZoneOffset||(n=null!=e.forcedTzo?e.forcedTzo:this.offsetForMarker(t)),je(t,n,e.omitTime)},t.prototype.timestampToMarker=function(t){return"local"===this.timeZone?fe(de(new Date(t))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?fe(this.namedTimeZoneImpl.timestampToArray(t)):new Date(t)},t.prototype.offsetForMarker=function(t){return"local"===this.timeZone?-he(pe(t)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(pe(t)):null},t.prototype.toDate=function(t,e){return"local"===this.timeZone?he(pe(t)):"UTC"===this.timeZone?new Date(t.valueOf()):this.namedTimeZoneImpl?new Date(t.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(pe(t))*60):new Date(t.valueOf()-(e||0))},t}(),Ni=[],zi={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},Fi=i(i({},zi),{buttonHints:{prev:"Previous $0",next:"Next $0",today:function(t,e){return"day"===e?"Today":"This "+t}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(t){return"Show "+t+" more event"+(1===t?"":"s")}});function Hi(t){for(var e=t.length>0?t[0].code:"en",n=Ni.concat(t),i={en:Fi},r=0,o=n;r<o.length;r++){var l=o[r];i[l.code]=l}return{map:i,defaultCode:e}}function Bi(t,e){return"object"!=typeof t||Array.isArray(t)?function(t,e){var n=[].concat(t||[]),i=function(t,e){for(var n=0;n<t.length;n+=1)for(var i=t[n].toLocaleLowerCase().split("-"),r=i.length;r>0;r-=1){var o=i.slice(0,r).join("-");if(e[o])return e[o]}return null}(n,e)||Fi;return ji(t,n,i)}(t,e):ji(t.code,[t.code],t)}function ji(t,e,n){var i=be([zi,n],["buttonText"]);delete i.code;var r=i.week;return delete i.week,{codeArg:t,codes:e,week:r,simpleNumberFormat:new Intl.NumberFormat(t),options:i}}function Vi(t){var e=Bi(t.locale||"en",Hi([]).map);return new Ri(i(i({timeZone:un.timeZone,calendarSystem:"gregory"},t),{locale:e}))}var Wi,Ui={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Yi(t,e){return bn(function(t){return(!0===t?[{}]:Array.isArray(t)?t.filter((function(t){return t.daysOfWeek})):"object"==typeof t&&t?[t]:[]).map((function(t){return i(i({},Ui),t)}))}(t),null,e)}function $i(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function qi(t,e){var n={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function Gi(t,e){return{left:Math.min(Math.max(t.left,e.left),e.right),top:Math.min(Math.max(t.top,e.top),e.bottom)}}function Zi(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function Ki(t,e){return{left:t.left-e.left,top:t.top-e.top}}function Xi(){return null==Wi&&(Wi=function(){if("undefined"==typeof document)return!0;var t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="<table><tr><td><div></div></td></tr></table>",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);var e=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),e}()),Wi}var Qi={defs:{},instances:{}},Ji=function(){function t(){this.getKeysForEventDefs=$e(this._getKeysForEventDefs),this.splitDateSelection=$e(this._splitDateSpan),this.splitEventStore=$e(this._splitEventStore),this.splitIndividualUi=$e(this._splitIndividualUi),this.splitEventDrag=$e(this._splitInteraction),this.splitEventResize=$e(this._splitInteraction),this.eventUiBuilders={}}return t.prototype.splitProps=function(t){var e=this,n=this.getKeyInfo(t),i=this.getKeysForEventDefs(t.eventStore),r=this.splitDateSelection(t.dateSelection),o=this.splitIndividualUi(t.eventUiBases,i),l=this.splitEventStore(t.eventStore,i),s=this.splitEventDrag(t.eventDrag),a=this.splitEventResize(t.eventResize),c={};for(var u in this.eventUiBuilders=we(n,(function(t,n){return e.eventUiBuilders[n]||$e(tr)})),n){var d=n[u],h=l[u]||Qi,p=this.eventUiBuilders[u];c[u]={businessHours:d.businessHours||t.businessHours,dateSelection:r[u]||null,eventStore:h,eventUiBases:p(t.eventUiBases[""],d.ui,o[u]),eventSelection:h.instances[t.eventSelection]?t.eventSelection:"",eventDrag:s[u]||null,eventResize:a[u]||null}}return c},t.prototype._splitDateSpan=function(t){var e={};if(t)for(var n=0,i=this.getKeysForDateSpan(t);n<i.length;n++)e[i[n]]=t;return e},t.prototype._getKeysForEventDefs=function(t){var e=this;return we(t.defs,(function(t){return e.getKeysForEventDef(t)}))},t.prototype._splitEventStore=function(t,e){var n=t.defs,i=t.instances,r={};for(var o in n)for(var l=0,s=e[o];l<s.length;l++)r[h=s[l]]||(r[h]={defs:{},instances:{}}),r[h].defs[o]=n[o];for(var a in i)for(var c=i[a],u=0,d=e[c.defId];u<d.length;u++){var h;r[h=d[u]]&&(r[h].instances[a]=c)}return r},t.prototype._splitIndividualUi=function(t,e){var n={};for(var i in t)if(i)for(var r=0,o=e[i];r<o.length;r++){var l=o[r];n[l]||(n[l]={}),n[l][i]=t[i]}return n},t.prototype._splitInteraction=function(t){var e={};if(t){var n=this._splitEventStore(t.affectedEvents,this._getKeysForEventDefs(t.affectedEvents)),i=this._getKeysForEventDefs(t.mutatedEvents),r=this._splitEventStore(t.mutatedEvents,i),o=function(i){e[i]||(e[i]={affectedEvents:n[i]||Qi,mutatedEvents:r[i]||Qi,isEvent:t.isEvent})};for(var l in n)o(l);for(var l in r)o(l)}return e},t}();function tr(t,e,n){var r=[];t&&r.push(t),e&&r.push(e);var o={"":Dn(r)};return n&&i(o,n),o}function er(t,e,n,i){return{dow:t.getUTCDay(),isDisabled:Boolean(i&&!qn(i.activeRange,t)),isOther:Boolean(i&&!qn(i.currentRange,t)),isToday:Boolean(e&&qn(e,t)),isPast:Boolean(n?t<n:!!e&&t<e.start),isFuture:Boolean(n?t>n:!!e&&t>=e.end)}}function nr(t,e){var n=["fc-day","fc-day-"+Jt[t.dow]];return t.isDisabled?n.push("fc-day-disabled"):(t.isToday&&(n.push("fc-day-today"),n.push(e.getClass("today"))),t.isPast&&n.push("fc-day-past"),t.isFuture&&n.push("fc-day-future"),t.isOther&&n.push("fc-day-other")),n}var ir=an({year:"numeric",month:"long",day:"numeric"}),rr=an({week:"long"});function or(t,e,n,r){void 0===n&&(n="day"),void 0===r&&(r=!0);var o=t.dateEnv,l=t.options,s=t.calendarApi,a=o.format(e,"week"===n?rr:ir);if(l.navLinks){var c=o.toDate(e),u=function(t){var i="day"===n?l.navLinkDayClick:"week"===n?l.navLinkWeekClick:null;"function"==typeof i?i.call(s,o.toDate(e),t):("string"==typeof i&&(n=i),s.zoomTo(e,n))};return i({title:Zt(l.navLinkHint,[a,c],a),"data-navlink":""},r?It(u):{onClick:u})}return{"aria-label":a}}var lr,sr=null;function ar(){return null===sr&&(sr=function(){var t=document.createElement("div");St(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="<div></div>",document.body.appendChild(t);var e=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return bt(t),e}()),sr}function cr(){return lr||(lr=function(){var t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);var e=ur(t);return document.body.removeChild(t),e}()),lr}function ur(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function dr(t,e){void 0===e&&(e=!1);var n=window.getComputedStyle(t),i=parseInt(n.borderLeftWidth,10)||0,r=parseInt(n.borderRightWidth,10)||0,o=parseInt(n.borderTopWidth,10)||0,l=parseInt(n.borderBottomWidth,10)||0,s=ur(t),a=s.y-i-r,c={borderLeft:i,borderRight:r,borderTop:o,borderBottom:l,scrollbarBottom:s.x-o-l,scrollbarLeft:0,scrollbarRight:0};return ar()&&"rtl"===n.direction?c.scrollbarLeft=a:c.scrollbarRight=a,e&&(c.paddingLeft=parseInt(n.paddingLeft,10)||0,c.paddingRight=parseInt(n.paddingRight,10)||0,c.paddingTop=parseInt(n.paddingTop,10)||0,c.paddingBottom=parseInt(n.paddingBottom,10)||0),c}function hr(t,e,n){void 0===e&&(e=!1);var i=n?t.getBoundingClientRect():pr(t),r=dr(t,e),o={left:i.left+r.borderLeft+r.scrollbarLeft,right:i.right-r.borderRight-r.scrollbarRight,top:i.top+r.borderTop,bottom:i.bottom-r.borderBottom-r.scrollbarBottom};return e&&(o.left+=r.paddingLeft,o.right-=r.paddingRight,o.top+=r.paddingTop,o.bottom-=r.paddingBottom),o}function pr(t){var e=t.getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,right:e.right+window.pageXOffset,bottom:e.bottom+window.pageYOffset}}function fr(t){for(var e=[];t instanceof HTMLElement;){var n=window.getComputedStyle(t);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}function gr(t,e,n){var i=!1,r=function(){i||(i=!0,e.apply(this,arguments))},o=function(){i||(i=!0,n&&n.apply(this,arguments))},l=t(r,o);l&&"function"==typeof l.then&&l.then(r,o)}var mr=function(){function t(){this.handlers={},this.thisContext=null}return t.prototype.setThisContext=function(t){this.thisContext=t},t.prototype.setOptions=function(t){this.options=t},t.prototype.on=function(t,e){!function(t,e,n){(t[e]||(t[e]=[])).push(n)}(this.handlers,t,e)},t.prototype.off=function(t,e){!function(t,e,n){n?t[e]&&(t[e]=t[e].filter((function(t){return t!==n}))):delete t[e]}(this.handlers,t,e)},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=this.handlers[t]||[],r=this.options&&this.options[t],o=[].concat(r||[],i),l=0,s=o;l<s.length;l++){var a=s[l];a.apply(this.thisContext,e)}},t.prototype.hasHandlers=function(t){return Boolean(this.handlers[t]&&this.handlers[t].length||this.options&&this.options[t])},t}(),vr=function(){function t(t,e,n,i){this.els=e;var r=this.originClientRect=t.getBoundingClientRect();n&&this.buildElHorizontals(r.left),i&&this.buildElVerticals(r.top)}return t.prototype.buildElHorizontals=function(t){for(var e=[],n=[],i=0,r=this.els;i<r.length;i++){var o=r[i].getBoundingClientRect();e.push(o.left-t),n.push(o.right-t)}this.lefts=e,this.rights=n},t.prototype.buildElVerticals=function(t){for(var e=[],n=[],i=0,r=this.els;i<r.length;i++){var o=r[i].getBoundingClientRect();e.push(o.top-t),n.push(o.bottom-t)}this.tops=e,this.bottoms=n},t.prototype.leftToIndex=function(t){var e,n=this.lefts,i=this.rights,r=n.length;for(e=0;e<r;e+=1)if(t>=n[e]&&t<i[e])return e},t.prototype.topToIndex=function(t){var e,n=this.tops,i=this.bottoms,r=n.length;for(e=0;e<r;e+=1)if(t>=n[e]&&t<i[e])return e},t.prototype.getWidth=function(t){return this.rights[t]-this.lefts[t]},t.prototype.getHeight=function(t){return this.bottoms[t]-this.tops[t]},t}(),yr=function(){function t(){}return t.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},t.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},t.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},t.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},t.prototype.canScrollUp=function(){return this.getScrollTop()>0},t.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},t.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},t.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},t}(),br=function(t){function e(e){var n=t.call(this)||this;return n.el=e,n}return n(e,t),e.prototype.getScrollTop=function(){return this.el.scrollTop},e.prototype.getScrollLeft=function(){return this.el.scrollLeft},e.prototype.setScrollTop=function(t){this.el.scrollTop=t},e.prototype.setScrollLeft=function(t){this.el.scrollLeft=t},e.prototype.getScrollWidth=function(){return this.el.scrollWidth},e.prototype.getScrollHeight=function(){return this.el.scrollHeight},e.prototype.getClientHeight=function(){return this.el.clientHeight},e.prototype.getClientWidth=function(){return this.el.clientWidth},e}(yr),_r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.getScrollTop=function(){return window.pageYOffset},e.prototype.getScrollLeft=function(){return window.pageXOffset},e.prototype.setScrollTop=function(t){window.scroll(window.pageXOffset,t)},e.prototype.setScrollLeft=function(t){window.scroll(t,window.pageYOffset)},e.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},e.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},e.prototype.getClientHeight=function(){return document.documentElement.clientHeight},e.prototype.getClientWidth=function(){return document.documentElement.clientWidth},e}(yr),wr=function(){function t(t){this.iconOverrideOption&&this.setIconOverride(t[this.iconOverrideOption])}return t.prototype.setIconOverride=function(t){var e,n;if("object"==typeof t&&t){for(n in e=i({},this.iconClasses),t)e[n]=this.applyIconOverridePrefix(t[n]);this.iconClasses=e}else!1===t&&(this.iconClasses={})},t.prototype.applyIconOverridePrefix=function(t){var e=this.iconOverridePrefix;return e&&0!==t.indexOf(e)&&(t=e+t),t},t.prototype.getClass=function(t){return this.classes[t]||""},t.prototype.getIconClass=function(t,e){var n;return(n=e&&this.rtlIconClasses&&this.rtlIconClasses[t]||this.iconClasses[t])?this.baseIconClass+" "+n:""},t.prototype.getCustomButtonIconClass=function(t){var e;return this.iconOverrideCustomButtonOption&&(e=t[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(e):""},t}();if(wr.prototype.classes={},wr.prototype.iconClasses={},wr.prototype.baseIconClass="",wr.prototype.iconOverridePrefix="","undefined"==typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var xr=FullCalendarVDom.Component,Er=FullCalendarVDom.createElement,Sr=FullCalendarVDom.render,Cr=FullCalendarVDom.createRef,Mr=FullCalendarVDom.Fragment,kr=FullCalendarVDom.createContext,Dr=FullCalendarVDom.createPortal,Tr=FullCalendarVDom.flushSync,Lr=FullCalendarVDom.unmountComponentAtNode,Ar=function(){function t(t,e,n,r){var o=this;this.execFunc=t,this.emitter=e,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=function(t){o.queuedRequest=i({},o.queuedRequest||{},t),o.drain()},e.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}return t.prototype.detach=function(){this.emitter.off("_scrollRequest",this.handleScrollRequest)},t.prototype.update=function(t){t&&this.scrollTimeReset?this.fireInitialScroll():this.drain()},t.prototype.fireInitialScroll=function(){this.handleScrollRequest({time:this.scrollTime})},t.prototype.drain=function(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)},t}(),Pr=kr({});function Or(t,e,n,i,r,o,l,s,a,c,u,d,h){return{dateEnv:r,options:n,pluginHooks:l,emitter:c,dispatch:s,getCurrentData:a,calendarApi:u,viewSpec:t,viewApi:e,dateProfileGenerator:i,theme:o,isRtl:"rtl"===n.direction,addResizeHandler:function(t){c.on("_resize",t)},removeResizeHandler:function(t){c.off("_resize",t)},createScrollResponder:function(t){return new Ar(t,c,Oe(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:d,unregisterInteractiveComponent:h}}var Ir=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.shouldComponentUpdate=function(t,e){return this.debug&&console.log(Ce(t,this.props),Ce(e,this.state)),!Me(this.props,t,this.propEquality)||!Me(this.state,e,this.stateEquality)},e.prototype.safeSetState=function(t){Me(this.state,i(i({},this.state),t),this.stateEquality)||this.setState(t)},e.addPropsEquality=Nr,e.addStateEquality=zr,e.contextType=Pr,e}(xr);Ir.prototype.propEquality={},Ir.prototype.stateEquality={};var Rr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.contextType=Pr,e}(Ir);function Nr(t){var e=Object.create(this.prototype.propEquality);i(e,t),this.prototype.propEquality=e}function zr(t){var e=Object.create(this.prototype.stateEquality);i(e,t),this.prototype.stateEquality=e}function Fr(t,e){"function"==typeof t?t(e):t&&(t.current=e)}var Hr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.uid=zt(),e}return n(e,t),e.prototype.prepareHits=function(){},e.prototype.queryHit=function(t,e,n,i){return null},e.prototype.isValidSegDownEl=function(t){return!this.props.eventDrag&&!this.props.eventResize&&!_t(t,".fc-event-mirror")},e.prototype.isValidDateDownEl=function(t){return!(_t(t,".fc-event:not(.fc-bg-event)")||_t(t,".fc-more-link")||_t(t,"a[data-navlink]")||_t(t,".fc-popover"))},e}(Rr);function Br(t){return{id:zt(),deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,contentTypeHandlers:t.contentTypeHandlers||{},listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}var jr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(wr);function Vr(t,e,n,r){if(e[t])return e[t];var o=function(t,e,n,r){var o=n[t],l=r[t],s=function(t){return o&&null!==o[t]?o[t]:l&&null!==l[t]?l[t]:null},a=s("component"),c=s("superType"),u=null;if(c){if(c===t)throw new Error("Can't have a custom view type that references itself");u=Vr(c,e,n,r)}return!a&&u&&(a=u.component),a?{type:t,component:a,defaults:i(i({},u?u.defaults:{}),o?o.rawOptions:{}),overrides:i(i({},u?u.overrides:{}),l?l.rawOptions:{})}:null}(t,e,n,r);return o&&(e[t]=o),o}jr.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},jr.prototype.baseIconClass="fc-icon",jr.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},jr.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},jr.prototype.iconOverrideOption="buttonIcons",jr.prototype.iconOverrideCustomButtonOption="icon",jr.prototype.iconOverridePrefix="fc-icon-";var Wr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.rootElRef=Cr(),e.handleRootEl=function(t){Fr(e.rootElRef,t),e.props.elRef&&Fr(e.props.elRef,t)},e}return n(e,t),e.prototype.render=function(){var t=this,e=this.props,n=e.hookProps;return Er(qr,{hookProps:n,didMount:e.didMount,willUnmount:e.willUnmount,elRef:this.handleRootEl},(function(i){return Er(Yr,{hookProps:n,content:e.content,defaultContent:e.defaultContent,backupElRef:t.rootElRef},(function(t,r){return e.children(i,Zr(e.classNames,n),t,r)}))}))},e}(Rr),Ur=kr(0);function Yr(t){return Er(Ur.Consumer,null,(function(e){return Er($r,i({renderId:e},t))}))}var $r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.innerElRef=Cr(),e}return n(e,t),e.prototype.render=function(){return this.props.children(this.innerElRef,this.renderInnerContent())},e.prototype.componentDidMount=function(){this.updateCustomContent()},e.prototype.componentDidUpdate=function(){this.updateCustomContent()},e.prototype.componentWillUnmount=function(){this.customContentInfo&&this.customContentInfo.destroy&&this.customContentInfo.destroy()},e.prototype.renderInnerContent=function(){var t=this.customContentInfo,e=this.getInnerContent(),n=this.getContentMeta(e);return t&&t.contentKey===n.contentKey?t&&(t.contentVal=e[n.contentKey]):(t&&(t.destroy&&t.destroy(),t=this.customContentInfo=null),n.contentKey&&(t=this.customContentInfo=i({contentKey:n.contentKey,contentVal:e[n.contentKey]},n.buildLifecycleFuncs()))),t?[]:e},e.prototype.getInnerContent=function(){var t=this.props,e=Kr(t.content,t.hookProps);return void 0===e&&(e=Kr(t.defaultContent,t.hookProps)),null==e?null:e},e.prototype.getContentMeta=function(t){var e=this.context.pluginHooks.contentTypeHandlers,n="",i=null;if(t)for(var r in e)if(void 0!==t[r]){n=r,i=e[r];break}return{contentKey:n,buildLifecycleFuncs:i}},e.prototype.updateCustomContent=function(){this.customContentInfo&&this.customContentInfo.render(this.innerElRef.current||this.props.backupElRef.current,this.customContentInfo.contentVal)},e}(Rr),qr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleRootEl=function(t){e.rootEl=t,e.props.elRef&&Fr(e.props.elRef,t)},e}return n(e,t),e.prototype.render=function(){return this.props.children(this.handleRootEl)},e.prototype.componentDidMount=function(){var t=this.props.didMount;t&&t(i(i({},this.props.hookProps),{el:this.rootEl}))},e.prototype.componentWillUnmount=function(){var t=this.props.willUnmount;t&&t(i(i({},this.props.hookProps),{el:this.rootEl}))},e}(Rr);function Gr(){var t,e,n=[];return function(i,r){return e&&Se(e,r)&&i===t||(t=i,e=r,n=Zr(i,r)),n}}function Zr(t,e){return"function"==typeof t&&(t=t(e)),Sn(t)}function Kr(t,e){return"function"==typeof t?t(e,Er):t}var Xr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.normalizeClassNames=Gr(),e}return n(e,t),e.prototype.render=function(){var t=this.props,e=this.context,n=e.options,i={view:e.viewApi},r=this.normalizeClassNames(n.viewClassNames,i);return Er(qr,{hookProps:i,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount,elRef:t.elRef},(function(e){return t.children(e,["fc-"+t.viewSpec.type+"-view","fc-view"].concat(r))}))},e}(Rr);function Qr(t){return we(t,Jr)}function Jr(t){var e,n="function"==typeof t?{component:t}:t,r=n.component;return n.content&&(e=n,r=function(t){return Er(Pr.Consumer,null,(function(n){return Er(Xr,{viewSpec:n.viewSpec},(function(r,o){var l=i(i({},t),{nextDayThreshold:n.options.nextDayThreshold});return Er(Wr,{hookProps:l,classNames:e.classNames,content:e.content,didMount:e.didMount,willUnmount:e.willUnmount,elRef:r},(function(t,e,n,i){return Er("div",{className:o.concat(e).join(" "),ref:t},i)}))}))}))}),{superType:n.type,component:r,rawOptions:n}}function to(t,e,n,r){var o=Qr(t),l=Qr(e.views);return we(function(t,e){var n,i={};for(n in t)Vr(n,i,t,e);for(n in e)Vr(n,i,t,e);return i}(o,l),(function(t){return function(t,e,n,r,o){var l=t.overrides.duration||t.defaults.duration||r.duration||n.duration,s=null,a="",c="",u={};if(l&&(s=function(t){var e=JSON.stringify(t),n=eo[e];return void 0===n&&(n=Oe(t),eo[e]=n),n}(l))){var d=Be(s);a=d.unit,1===d.value&&(c=a,u=e[a]?e[a].rawOptions:{})}var h=function(e){var n=e.buttonText||{},i=t.defaults.buttonTextKey;return null!=i&&null!=n[i]?n[i]:null!=n[t.type]?n[t.type]:null!=n[c]?n[c]:null},p=function(e){var n=e.buttonHints||{},i=t.defaults.buttonTextKey;return null!=i&&null!=n[i]?n[i]:null!=n[t.type]?n[t.type]:null!=n[c]?n[c]:null};return{type:t.type,component:t.component,duration:s,durationUnit:a,singleUnit:c,optionDefaults:t.defaults,optionOverrides:i(i({},u),t.overrides),buttonTextOverride:h(r)||h(n)||t.overrides.buttonText,buttonTextDefault:h(o)||t.defaults.buttonText||h(un)||t.type,buttonTitleOverride:p(r)||p(n)||t.overrides.buttonHint,buttonTitleDefault:p(o)||t.defaults.buttonHint||p(un)}}(t,l,e,n,r)}))}var eo={},no=function(){function t(t){this.props=t,this.nowDate=Mi(t.nowInput,t.dateEnv),this.initHiddenDays()}return t.prototype.buildPrev=function(t,e,n){var i=this.props.dateEnv,r=i.subtract(i.startOf(e,t.currentRangeUnit),t.dateIncrement);return this.build(r,-1,n)},t.prototype.buildNext=function(t,e,n){var i=this.props.dateEnv,r=i.add(i.startOf(e,t.currentRangeUnit),t.dateIncrement);return this.build(r,1,n)},t.prototype.build=function(t,e,n){void 0===n&&(n=!0);var i,r,o,l,s,a,c,u,d=this.props;return i=this.buildValidRange(),i=this.trimHiddenDays(i),n&&(c=t,t=null!=(u=i).start&&c<u.start?u.start:null!=u.end&&c>=u.end?new Date(u.end.valueOf()-1):c),r=this.buildCurrentRangeInfo(t,e),o=/^(year|month|week|day)$/.test(r.unit),l=this.buildRenderRange(this.trimHiddenDays(r.range),r.unit,o),s=l=this.trimHiddenDays(l),d.showNonCurrentDates||(s=Wn(s,r.range)),s=Wn(s=this.adjustActiveRange(s),i),a=Yn(r.range,i),{validRange:i,currentRange:r.range,currentRangeUnit:r.unit,isRangeAllDay:o,activeRange:s,renderRange:l,slotMinTime:d.slotMinTime,slotMaxTime:d.slotMaxTime,isValid:a,dateIncrement:this.buildDateIncrement(r.duration)}},t.prototype.buildValidRange=function(){var t=this.props.validRangeInput,e="function"==typeof t?t.call(this.props.calendarApi,this.nowDate):t;return this.refineRange(e)||{start:null,end:null}},t.prototype.buildCurrentRangeInfo=function(t,e){var n,i=this.props,r=null,o=null,l=null;return i.duration?(r=i.duration,o=i.durationUnit,l=this.buildRangeFromDuration(t,e,r,o)):(n=this.props.dayCount)?(o="day",l=this.buildRangeFromDayCount(t,e,n)):(l=this.buildCustomVisibleRange(t))?o=i.dateEnv.greatestWholeUnit(l.start,l.end).unit:(o=Be(r=this.getFallbackDuration()).unit,l=this.buildRangeFromDuration(t,e,r,o)),{duration:r,unit:o,range:l}},t.prototype.getFallbackDuration=function(){return Oe({day:1})},t.prototype.adjustActiveRange=function(t){var e=this.props,n=e.dateEnv,i=e.usesMinMaxTime,r=e.slotMinTime,o=e.slotMaxTime,l=t.start,s=t.end;return i&&(ze(r)<0&&(l=ae(l),l=n.add(l,r)),ze(o)>1&&(s=ee(s=ae(s),-1),s=n.add(s,o))),{start:l,end:s}},t.prototype.buildRangeFromDuration=function(t,e,n,i){var r,o,l,s=this.props,a=s.dateEnv,c=s.dateAlignment;if(!c){var u=this.props.dateIncrement;c=u&&Fe(u)<Fe(n)?Be(u).unit:i}function d(){r=a.startOf(t,c),o=a.add(r,n),l={start:r,end:o}}return ze(n)<=1&&this.isHiddenDay(r)&&(r=ae(r=this.skipHiddenDays(r,e))),d(),this.trimHiddenDays(l)||(t=this.skipHiddenDays(t,e),d()),l},t.prototype.buildRangeFromDayCount=function(t,e,n){var i,r=this.props,o=r.dateEnv,l=r.dateAlignment,s=0,a=t;l&&(a=o.startOf(a,l)),a=ae(a),i=a=this.skipHiddenDays(a,e);do{i=ee(i,1),this.isHiddenDay(i)||(s+=1)}while(s<n);return{start:a,end:i}},t.prototype.buildCustomVisibleRange=function(t){var e=this.props,n=e.visibleRangeInput,i="function"==typeof n?n.call(e.calendarApi,e.dateEnv.toDate(t)):n,r=this.refineRange(i);return!r||null!=r.start&&null!=r.end?r:null},t.prototype.buildRenderRange=function(t,e,n){return t},t.prototype.buildDateIncrement=function(t){var e;return this.props.dateIncrement||((e=this.props.dateAlignment)?Oe(1,e):t||Oe({days:1}))},t.prototype.refineRange=function(t){if(t){var e=(n=t,i=this.props.dateEnv,r=null,o=null,n.start&&(r=i.createMarker(n.start)),n.end&&(o=i.createMarker(n.end)),r||o?r&&o&&o<r?null:{start:r,end:o}:null);return e&&(e=Fn(e)),e}var n,i,r,o;return null},t.prototype.initHiddenDays=function(){var t,e=this.props.hiddenDays||[],n=[],i=0;for(!1===this.props.weekends&&e.push(0,6),t=0;t<7;t+=1)(n[t]=-1!==e.indexOf(t))||(i+=1);if(!i)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},t.prototype.trimHiddenDays=function(t){var e=t.start,n=t.end;return e&&(e=this.skipHiddenDays(e)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==e||null==n||e<n?{start:e,end:n}:null},t.prototype.isHiddenDay=function(t){return t instanceof Date&&(t=t.getUTCDay()),this.isHiddenDayHash[t]},t.prototype.skipHiddenDays=function(t,e,n){for(void 0===e&&(e=1),void 0===n&&(n=!1);this.isHiddenDayHash[(t.getUTCDay()+(n?e:0)+7)%7];)t=ee(t,e);return t},t}();function io(t){for(var e in t)if(t[e].isFetching)return!0;return!1}function ro(t,e,n,r){for(var o={},l=0,s=e;l<s.length;l++){var a=s[l];o[a.sourceId]=a}return n&&(o=oo(o,n,r)),i(i({},t),o)}function oo(t,e,n){return lo(t,_e(t,(function(t){return function(t,e,n){return co(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}(t,e,n)})),e,!1,n)}function lo(t,e,n,i,r){var o={};for(var l in t){var s=t[l];e[l]?o[l]=so(s,n,i,r):o[l]=s}return o}function so(t,e,n,r){var o=r.options,l=r.calendarApi,s=r.pluginHooks.eventSourceDefs[t.sourceDefId],a=zt();return s.fetch({eventSource:t,range:e,isRefetch:n,context:r},(function(n){var i=n.rawEvents;o.eventSourceSuccess&&(i=o.eventSourceSuccess.call(l,i,n.xhr)||i),t.success&&(i=t.success.call(l,i,n.xhr)||i),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:a,fetchRange:e,rawEvents:i})}),(function(n){console.warn(n.message,n),o.eventSourceFailure&&o.eventSourceFailure.call(l,n),t.failure&&t.failure(n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:a,fetchRange:e,error:n})})),i(i({},t),{isFetching:!0,latestFetchId:a})}function ao(t,e){return _e(t,(function(t){return co(t,e)}))}function co(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function uo(t,e){var n;if(e){n=[];for(var i=0,r=t;i<r.length;i++){var o=r[i],l=e(o);l?n.push(l):null==l&&n.push(o)}}else n=t;return n}function ho(t,e){return En(t,(function(t){return t.sourceId!==e}))}function po(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function fo(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function go(t,e){var n;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return{affectedEvents:(n=e.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function mo(t,e){var n;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return{affectedEvents:(n=e.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function vo(t,e,n,i,r){return{header:t.headerToolbar?yo(t.headerToolbar,t,e,n,i,r):null,footer:t.footerToolbar?yo(t.footerToolbar,t,e,n,i,r):null}}function yo(t,e,n,i,r,o){var l={},s=[],a=!1;for(var c in t){var u=bo(t[c],e,n,i,r,o);l[c]=u.widgets,s.push.apply(s,u.viewsWithButtons),a=a||u.hasTitle}return{sectionWidgets:l,viewsWithButtons:s,hasTitle:a}}function bo(t,e,n,i,r,o){var l="rtl"===e.direction,s=e.customButtons||{},a=n.buttonText||{},c=e.buttonText||{},u=n.buttonHints||{},d=e.buttonHints||{},h=t?t.split(" "):[],p=[],f=!1;return{widgets:h.map((function(t){return t.split(",").map((function(t){if("title"===t)return f=!0,{buttonName:t};var n,h,g,m,v,y;if(n=s[t])g=function(t){n.click&&n.click.call(t.target,t,t.target)},(m=i.getCustomButtonIconClass(n))||(m=i.getIconClass(t,l))||(v=n.text),y=n.hint||n.text;else if(h=r[t]){p.push(t),g=function(){o.changeView(t)},(v=h.buttonTextOverride)||(m=i.getIconClass(t,l))||(v=h.buttonTextDefault);var b=h.buttonTextOverride||h.buttonTextDefault;y=Zt(h.buttonTitleOverride||h.buttonTitleDefault||e.viewHint,[b,t],b)}else if(o[t])if(g=function(){o[t]()},(v=a[t])||(m=i.getIconClass(t,l))||(v=c[t]),"prevYear"===t||"nextYear"===t){var _="prevYear"===t?"prev":"next";y=Zt(u[_]||d[_],[c.year||"year","year"],c[t])}else y=function(e){return Zt(u[t]||d[t],[c[e]||e,e],c[t])};return{buttonName:t,buttonClick:g,buttonIcon:m,buttonText:v,buttonHint:y}}))})),viewsWithButtons:p,hasTitle:f}}function _o(t,e,n,i,r){var o=null;"GET"===(t=t.toUpperCase())?e=function(t,e){return t+(-1===t.indexOf("?")?"?":"&")+wo(e)}(e,n):o=wo(n);var l=new XMLHttpRequest;l.open(t,e,!0),"GET"!==t&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),l.onload=function(){if(l.status>=200&&l.status<400){var t=!1,e=void 0;try{e=JSON.parse(l.responseText),t=!0}catch(t){}t?i(e,l):r("Failure parsing JSON",l)}else r("Request failed",l)},l.onerror=function(){r("Request failed",l)},l.send(o)}function wo(t){var e=[];for(var n in t)e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e.join("&")}function xo(t,e){for(var n=Ee(e.getCurrentData().eventSources),i=[],r=0,o=t;r<o.length;r++){for(var l=o[r],s=!1,a=0;a<n.length;a+=1)if(n[a]._raw===l){n.splice(a,1),s=!0;break}s||i.push(l)}for(var c=0,u=n;c<u.length;c++){var d=u[c];e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:d.sourceId})}for(var h=0,p=i;h<p.length;h++){var f=p[h];e.calendarApi.addEventSource(f)}}var Eo=[Br({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(t){return Array.isArray(t.events)?t.events:null},fetch:function(t,e){e({rawEvents:t.eventSource.meta})}}]}),Br({eventSourceDefs:[{parseMeta:function(t){return"function"==typeof t.events?t.events:null},fetch:function(t,e,n){var i=t.context.dateEnv;gr(t.eventSource.meta.bind(null,pi(t.range,i)),(function(t){e({rawEvents:t})}),n)}}]}),Br({eventSourceRefiners:{method:String,extraParams:yn,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:function(t){return!t.url||"json"!==t.format&&t.format?null:{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}},fetch:function(t,e,n){var r=t.eventSource.meta,o=function(t,e,n){var r,o,l,s,a=n.dateEnv,c=n.options,u={};return null==(r=t.startParam)&&(r=c.startParam),null==(o=t.endParam)&&(o=c.endParam),null==(l=t.timeZoneParam)&&(l=c.timeZoneParam),s="function"==typeof t.extraParams?t.extraParams():t.extraParams||{},i(u,s),u[r]=a.formatIso(e.start),u[o]=a.formatIso(e.end),"local"!==a.timeZone&&(u[l]=a.timeZone),u}(r,t.range,t.context);_o(r.method,r.url,o,(function(t,n){e({rawEvents:t,xhr:n})}),(function(t,e){n({message:t,xhr:e})}))}}]}),Br({recurringTypes:[{parse:function(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){var n={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?e.createMarker(t.startRecur):null,endRecur:t.endRecur?e.createMarker(t.endRecur):null},i=void 0;return t.duration&&(i=t.duration),!i&&t.startTime&&t.endTime&&(r=t.endTime,o=t.startTime,i={years:r.years-o.years,months:r.months-o.months,days:r.days-o.days,milliseconds:r.milliseconds-o.milliseconds}),{allDayGuess:Boolean(!t.startTime&&!t.endTime),duration:i,typeData:n}}var r,o;return null},expand:function(t,e,n){var i=Wn(e,{start:t.startRecur,end:t.endRecur});return i?function(t,e,n,i){for(var r=t?xe(t):null,o=ae(n.start),l=n.end,s=[];o<l;){var a=void 0;r&&!r[o.getUTCDay()]||(a=e?i.add(o,e):o,s.push(a)),o=ee(o,1)}return s}(t.daysOfWeek,t.startTime,i,n):[]}}],eventRefiners:{daysOfWeek:yn,startTime:Oe,endTime:Oe,duration:Oe,startRecur:yn,endRecur:yn}}),Br({optionChangeHandlers:{events:function(t,e){xo([t],e)},eventSources:xo}}),Br({isLoadingFuncs:[function(t){return io(t.eventSources)}],contentTypeHandlers:{html:function(){var t=null,e="";return{render:function(n,i){n===t&&i===e||(n.innerHTML=i),t=n,e=i},destroy:function(){t.innerHTML="",t=null,e=""}}},domNodes:function(){var t=null,e=[];function n(){e.forEach(bt),e=[],t=null}return{render:function(i,r){var o=Array.prototype.slice.call(r);if(i!==t||!Ye(e,o)){for(var l=0,s=o;l<s.length;l++){var a=s[l];i.appendChild(a)}n()}t=i,e=o},destroy:n}}},propSetHandlers:{dateProfile:function(t,e){e.emitter.trigger("datesSet",i(i({},pi(t.activeRange,e.dateEnv)),{view:e.viewApi}))},eventStore:function(t,e){var n=e.emitter;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Li(t,e))}}})],So=function(){function t(t){this.drainedOption=t,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}return t.prototype.request=function(t){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==t?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),t))},t.prototype.pause=function(t){void 0===t&&(t="");var e=this.pauseDepths;e[t]=(e[t]||0)+1,this.clearTimeout()},t.prototype.resume=function(t,e){void 0===t&&(t="");var n=this.pauseDepths;t in n&&(e?delete n[t]:(n[t]-=1,n[t]<=0&&delete n[t]),this.tryDrain())},t.prototype.isPaused=function(){return Object.keys(this.pauseDepths).length},t.prototype.tryDrain=function(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}},t.prototype.clear=function(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}},t.prototype.clearTimeout=function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)},t.prototype.drained=function(){this.drainedOption&&this.drainedOption()},t}(),Co=function(){function t(t,e){this.runTaskOption=t,this.drainedOption=e,this.queue=[],this.delayedRunner=new So(this.drain.bind(this))}return t.prototype.request=function(t,e){this.queue.push(t),this.delayedRunner.request(e)},t.prototype.pause=function(t){this.delayedRunner.pause(t)},t.prototype.resume=function(t,e){this.delayedRunner.resume(t,e)},t.prototype.drain=function(){for(var t=this.queue;t.length;){for(var e=[],n=void 0;n=t.shift();)this.runTask(n),e.push(n);this.drained(e)}},t.prototype.runTask=function(t){this.runTaskOption&&this.runTaskOption(t)},t.prototype.drained=function(t){this.drainedOption&&this.drainedOption(t)},t}();function Mo(t,e,n){var i;return i=/^(year|month)$/.test(t.currentRangeUnit)?t.currentRange:t.activeRange,n.formatRange(i.start,i.end,an(e.titleFormat||function(t){var e=t.currentRangeUnit;if("year"===e)return{year:"numeric"};if("month"===e)return{year:"numeric",month:"long"};var n=se(t.currentRange.start,t.currentRange.end);return null!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}var ko=function(){function t(t){var e=this;this.computeOptionsData=$e(this._computeOptionsData),this.computeCurrentViewData=$e(this._computeCurrentViewData),this.organizeRawLocales=$e(Hi),this.buildLocale=$e(Bi),this.buildPluginHooks=function(){var t,e=[],n=[];return function(r,o){return t&&Ye(r,e)&&Ye(o,n)||(t=function(t,e){var n={},r={reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function o(t){for(var e=0,l=t;e<l.length;e++){var s=l[e];n[s.id]||(n[s.id]=!0,o(s.deps),c=s,r={reducers:(a=r).reducers.concat(c.reducers),isLoadingFuncs:a.isLoadingFuncs.concat(c.isLoadingFuncs),contextInit:a.contextInit.concat(c.contextInit),eventRefiners:i(i({},a.eventRefiners),c.eventRefiners),eventDefMemberAdders:a.eventDefMemberAdders.concat(c.eventDefMemberAdders),eventSourceRefiners:i(i({},a.eventSourceRefiners),c.eventSourceRefiners),isDraggableTransformers:a.isDraggableTransformers.concat(c.isDraggableTransformers),eventDragMutationMassagers:a.eventDragMutationMassagers.concat(c.eventDragMutationMassagers),eventDefMutationAppliers:a.eventDefMutationAppliers.concat(c.eventDefMutationAppliers),dateSelectionTransformers:a.dateSelectionTransformers.concat(c.dateSelectionTransformers),datePointTransforms:a.datePointTransforms.concat(c.datePointTransforms),dateSpanTransforms:a.dateSpanTransforms.concat(c.dateSpanTransforms),views:i(i({},a.views),c.views),viewPropsTransformers:a.viewPropsTransformers.concat(c.viewPropsTransformers),isPropsValid:c.isPropsValid||a.isPropsValid,externalDefTransforms:a.externalDefTransforms.concat(c.externalDefTransforms),viewContainerAppends:a.viewContainerAppends.concat(c.viewContainerAppends),eventDropTransformers:a.eventDropTransformers.concat(c.eventDropTransformers),calendarInteractions:a.calendarInteractions.concat(c.calendarInteractions),componentInteractions:a.componentInteractions.concat(c.componentInteractions),themeClasses:i(i({},a.themeClasses),c.themeClasses),eventSourceDefs:a.eventSourceDefs.concat(c.eventSourceDefs),cmdFormatter:c.cmdFormatter||a.cmdFormatter,recurringTypes:a.recurringTypes.concat(c.recurringTypes),namedTimeZonedImpl:c.namedTimeZonedImpl||a.namedTimeZonedImpl,initialView:a.initialView||c.initialView,elementDraggingImpl:a.elementDraggingImpl||c.elementDraggingImpl,optionChangeHandlers:i(i({},a.optionChangeHandlers),c.optionChangeHandlers),scrollGridImpl:c.scrollGridImpl||a.scrollGridImpl,contentTypeHandlers:i(i({},a.contentTypeHandlers),c.contentTypeHandlers),listenerRefiners:i(i({},a.listenerRefiners),c.listenerRefiners),optionRefiners:i(i({},a.optionRefiners),c.optionRefiners),propSetHandlers:i(i({},a.propSetHandlers),c.propSetHandlers)})}var a,c}return t&&o(t),o(e),r}(r,o)),e=r,n=o,t}}(),this.buildDateEnv=$e(Do),this.buildTheme=$e(To),this.parseToolbars=$e(vo),this.buildViewSpecs=$e(to),this.buildDateProfileGenerator=qe(Lo),this.buildViewApi=$e(Ao),this.buildViewUiProps=qe(Io),this.buildEventUiBySource=$e(Po,Se),this.buildEventUiBases=$e(Oo),this.parseContextBusinessHours=qe(No),this.buildTitle=$e(Mo),this.emitter=new mr,this.actionRunner=new Co(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.getCurrentData=function(){return e.data},this.dispatch=function(t){e.actionRunner.request(t)},this.props=t,this.actionRunner.pause();var n={},r=this.computeOptionsData(t.optionOverrides,n,t.calendarApi),o=r.calendarOptions.initialView||r.pluginHooks.initialView,l=this.computeCurrentViewData(o,r,t.optionOverrides,n);t.calendarApi.currentDataManager=this,this.emitter.setThisContext(t.calendarApi),this.emitter.setOptions(l.options);var s,a,c,u=(s=r.calendarOptions,a=r.dateEnv,null!=(c=s.initialDate)?a.createMarker(c):Mi(s.now,a)),d=l.dateProfileGenerator.build(u);qn(d.activeRange,u)||(u=d.currentRange.start);for(var h={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},p=0,f=r.pluginHooks.contextInit;p<f.length;p++)(0,f[p])(h);for(var g=function(t,e,n){var i=e?e.activeRange:null;return ro({},function(t,e){var n=Ci(e),i=[].concat(t.eventSources||[]),r=[];t.initialEvents&&i.unshift(t.initialEvents),t.events&&i.unshift(t.events);for(var o=0,l=i;o<l.length;o++){var s=Si(l[o],e,n);s&&r.push(s)}return r}(t,n),i,n)}(r.calendarOptions,d,h),m={dynamicOptionOverrides:n,currentViewType:o,currentDate:u,dateProfile:d,businessHours:this.parseContextBusinessHours(h),eventSources:g,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(h).selectionConfig},v=i(i({},h),m),y=0,b=r.pluginHooks.reducers;y<b.length;y++){var _=b[y];i(m,_(null,null,v))}Ro(m,h)&&this.emitter.trigger("loading",!0),this.state=m,this.updateData(),this.actionRunner.resume()}return t.prototype.resetOptions=function(t,e){var n=this.props;n.optionOverrides=e?i(i({},n.optionOverrides),t):t,this.actionRunner.request({type:"NOTHING"})},t.prototype._handleAction=function(t){var e=this,n=e.props,r=e.state,o=e.emitter,l=function(t,e){var n;switch(e.type){case"SET_OPTION":return i(i({},t),((n={})[e.optionName]=e.rawOptionValue,n));default:return t}}(r.dynamicOptionOverrides,t),s=this.computeOptionsData(n.optionOverrides,l,n.calendarApi),a=function(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}(r.currentViewType,t),c=this.computeCurrentViewData(a,s,n.optionOverrides,l);n.calendarApi.currentDataManager=this,o.setThisContext(n.calendarApi),o.setOptions(c.options);var u={dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:o,getCurrentData:this.getCurrentData},d=r.currentDate,h=r.dateProfile;this.data&&this.data.dateProfileGenerator!==c.dateProfileGenerator&&(h=c.dateProfileGenerator.build(d)),h=function(t,e,n,i){var r;switch(e.type){case"CHANGE_VIEW_TYPE":return i.build(e.dateMarker||n);case"CHANGE_DATE":return i.build(e.dateMarker);case"PREV":if((r=i.buildPrev(t,n)).isValid)return r;break;case"NEXT":if((r=i.buildNext(t,n)).isValid)return r}return t}(h,t,d=function(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}(d,t),c.dateProfileGenerator),"PREV"!==t.type&&"NEXT"!==t.type&&qn(h.currentRange,d)||(d=h.currentRange.start);for(var p=function(t,e,n,r){var o,l,s=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return ro(t,e.sources,s,r);case"REMOVE_EVENT_SOURCE":return o=t,l=e.sourceId,_e(o,(function(t){return t.sourceId!==l}));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?oo(t,s,r):t;case"FETCH_EVENT_SOURCES":return lo(t,e.sourceIds?xe(e.sourceIds):ao(t,r),s,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(t,e,n,r){var o,l=t[e];return l&&n===l.latestFetchId?i(i({},t),((o={})[e]=i(i({},l),{isFetching:!1,fetchRange:r}),o)):t}(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}(r.eventSources,t,h,u),f=function(t,e,n,i,r){switch(e.type){case"RECEIVE_EVENTS":return function(t,e,n,i,r,o){if(e&&n===e.latestFetchId){var l=bn(function(t,e,n){var i=n.options.eventDataTransform,r=e?e.eventDataTransform:null;return r&&(t=uo(t,r)),i&&(t=uo(t,i)),t}(r,e,o),e,o);return i&&(l=Te(l,i,o)),xn(ho(t,e.sourceId),l)}return t}(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,r);case"ADD_EVENTS":return function(t,e,n,i){return n&&(e=Te(e,n,i)),xn(t,e)}(t,e.eventStore,i?i.activeRange:null,r);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return xn(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return i?Te(t,i.activeRange,r):t;case"REMOVE_EVENTS":return function(t,e){var n=t.defs,i=t.instances,r={},o={};for(var l in n)e.defs[l]||(r[l]=n[l]);for(var s in i)!e.instances[s]&&r[i[s].defId]&&(o[s]=i[s]);return{defs:r,instances:o}}(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return ho(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return En(t,(function(t){return!t.sourceId}));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return t}}(r.eventStore,t,p,h,u),g=io(p)&&!c.options.progressiveEventRendering&&r.renderableEventStore||f,m=this.buildViewUiProps(u),v=m.eventUiSingleBase,y=m.selectionConfig,b=this.buildEventUiBySource(p),_={dynamicOptionOverrides:l,currentViewType:a,currentDate:d,dateProfile:h,eventSources:p,eventStore:f,renderableEventStore:g,selectionConfig:y,eventUiBases:this.buildEventUiBases(g.defs,v,b),businessHours:this.parseContextBusinessHours(u),dateSelection:po(r.dateSelection,t),eventSelection:fo(r.eventSelection,t),eventDrag:go(r.eventDrag,t),eventResize:mo(r.eventResize,t)},w=i(i({},u),_),x=0,E=s.pluginHooks.reducers;x<E.length;x++){var S=E[x];i(_,S(r,t,w))}var C=Ro(r,u),M=Ro(_,u);!C&&M?o.trigger("loading",!0):C&&!M&&o.trigger("loading",!1),this.state=_,n.onAction&&n.onAction(t)},t.prototype.updateData=function(){var t,e,n,r,o,l,s,a,c,u=this.props,d=this.state,h=this.data,p=this.computeOptionsData(u.optionOverrides,d.dynamicOptionOverrides,u.calendarApi),f=this.computeCurrentViewData(d.currentViewType,p,u.optionOverrides,d.dynamicOptionOverrides),g=this.data=i(i(i({viewTitle:this.buildTitle(d.dateProfile,f.options,p.dateEnv),calendarApi:u.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},p),f),d),m=p.pluginHooks.optionChangeHandlers,v=h&&h.calendarOptions,y=p.calendarOptions;if(v&&v!==y)for(var b in v.timeZone!==y.timeZone&&(d.eventSources=g.eventSources=(l=g.eventSources,a=g,c=(s=d.dateProfile)?s.activeRange:null,lo(l,ao(l,a),c,!0,a)),d.eventStore=g.eventStore=(t=g.eventStore,e=h.dateEnv,n=g.dateEnv,r=t.defs,o=we(t.instances,(function(t){var o=r[t.defId];return o.allDay||o.recurringDef?t:i(i({},t),{range:{start:n.createMarker(e.toDate(t.range.start,t.forcedStartTzo)),end:n.createMarker(e.toDate(t.range.end,t.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:t.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:t.forcedEndTzo})})),{defs:r,instances:o})),m)v[b]!==y[b]&&m[b](y[b],g);u.onData&&u.onData(g)},t.prototype._computeOptionsData=function(t,e,n){var i=this.processRawCalendarOptions(t,e),r=i.refinedOptions,o=i.pluginHooks,l=i.localeDefaults,s=i.availableLocaleData;zo(i.extra);var a=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,o,s,r.defaultRangeSeparator),c=this.buildViewSpecs(o.views,t,e,l),u=this.buildTheme(r,o);return{calendarOptions:r,pluginHooks:o,dateEnv:a,viewSpecs:c,theme:u,toolbarConfig:this.parseToolbars(r,t,u,c,n),localeDefaults:l,availableRawLocales:s.map}},t.prototype.processRawCalendarOptions=function(t,e){var n=mn([un,t,e]),r=n.locales,o=n.locale,l=this.organizeRawLocales(r),s=l.map,a=this.buildLocale(o||l.defaultCode,s).options,c=this.buildPluginHooks(t.plugins||[],Eo),u=this.currentCalendarOptionsRefiners=i(i(i(i(i({},cn),dn),hn),c.listenerRefiners),c.optionRefiners),d={},h=mn([un,a,t,e]),p={},f=this.currentCalendarOptionsInput,g=this.currentCalendarOptionsRefined,m=!1;for(var v in h)"plugins"!==v&&(h[v]===f[v]||pn[v]&&v in f&&pn[v](f[v],h[v])?p[v]=g[v]:u[v]?(p[v]=u[v](h[v]),m=!0):d[v]=f[v]);return m&&(this.currentCalendarOptionsInput=h,this.currentCalendarOptionsRefined=p),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:c,availableLocaleData:l,localeDefaults:a,extra:d}},t.prototype._computeCurrentViewData=function(t,e,n,i){var r=e.viewSpecs[t];if(!r)throw new Error('viewType "'+t+"\" is not available. Please make sure you've loaded all neccessary plugins");var o=this.processRawViewOptions(r,e.pluginHooks,e.localeDefaults,n,i),l=o.refinedOptions;return zo(o.extra),{viewSpec:r,options:l,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:r.optionDefaults.dateProfileGeneratorClass,duration:r.duration,durationUnit:r.durationUnit,usesMinMaxTime:r.optionDefaults.usesMinMaxTime,dateEnv:e.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:l.slotMinTime,slotMaxTime:l.slotMaxTime,showNonCurrentDates:l.showNonCurrentDates,dayCount:l.dayCount,dateAlignment:l.dateAlignment,dateIncrement:l.dateIncrement,hiddenDays:l.hiddenDays,weekends:l.weekends,nowInput:l.now,validRangeInput:l.validRange,visibleRangeInput:l.visibleRange,monthMode:l.monthMode,fixedWeekCount:l.fixedWeekCount}),viewApi:this.buildViewApi(t,this.getCurrentData,e.dateEnv)}},t.prototype.processRawViewOptions=function(t,e,n,r,o){var l=mn([un,t.optionDefaults,n,r,t.optionOverrides,o]),s=i(i(i(i(i(i({},cn),dn),hn),gn),e.listenerRefiners),e.optionRefiners),a={},c=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,d=!1,h={};for(var p in l)l[p]===c[p]||pn[p]&&pn[p](l[p],c[p])?a[p]=u[p]:(l[p]===this.currentCalendarOptionsInput[p]||pn[p]&&pn[p](l[p],this.currentCalendarOptionsInput[p])?p in this.currentCalendarOptionsRefined&&(a[p]=this.currentCalendarOptionsRefined[p]):s[p]?a[p]=s[p](l[p]):h[p]=l[p],d=!0);return d&&(this.currentViewOptionsInput=l,this.currentViewOptionsRefined=a),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}},t}();function Do(t,e,n,i,r,o,l,s){var a=Bi(e||l.defaultCode,l.map);return new Ri({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:o.namedTimeZonedImpl,locale:a,weekNumberCalculation:n,firstDay:i,weekText:r,cmdFormatter:o.cmdFormatter,defaultSeparator:s})}function To(t,e){return new(e.themeClasses[t.themeSystem]||jr)(t)}function Lo(t){return new(t.dateProfileGeneratorClass||no)(t)}function Ao(t,e,n){return new xi(t,e,n)}function Po(t){return we(t,(function(t){return t.ui}))}function Oo(t,e,n){var i={"":e};for(var r in t){var o=t[r];o.sourceId&&n[o.sourceId]&&(i[r]=n[o.sourceId])}return i}function Io(t){var e=t.options;return{eventUiSingleBase:kn({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:"boolean"==typeof e.eventOverlap?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},t),selectionConfig:kn({constraint:e.selectConstraint,overlap:"boolean"==typeof e.selectOverlap?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function Ro(t,e){for(var n=0,i=e.pluginHooks.isLoadingFuncs;n<i.length;n++)if((0,i[n])(t))return!0;return!1}function No(t){return Yi(t.options.businessHours,t)}function zo(t,e){for(var n in t)console.warn("Unknown option '"+n+"'"+(e?" for view '"+e+"'":""))}var Fo=function(t){function e(e){var n=t.call(this,e)||this;return n.handleData=function(t){n.dataManager?n.setState(t):n.state=t},n.dataManager=new ko({optionOverrides:e.optionOverrides,calendarApi:e.calendarApi,onData:n.handleData}),n}return n(e,t),e.prototype.render=function(){return this.props.children(this.state)},e.prototype.componentDidUpdate=function(t){var e=this.props.optionOverrides;e!==t.optionOverrides&&this.dataManager.resetOptions(e)},e}(xr),Ho=function(){function t(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}return t.prototype.addSegs=function(t){for(var e=[],n=0,i=t;n<i.length;n++){var r=i[n];this.insertEntry(r,e)}return e},t.prototype.insertEntry=function(t,e){var n=this.findInsertion(t);return this.isInsertionValid(n,t)?(this.insertEntryAt(t,n),1):this.handleInvalidInsertion(n,t,e)},t.prototype.isInsertionValid=function(t,e){return(-1===this.maxCoord||t.levelCoord+e.thickness<=this.maxCoord)&&(-1===this.maxStackCnt||t.stackCnt<this.maxStackCnt)},t.prototype.handleInvalidInsertion=function(t,e,n){return this.allowReslicing&&t.touchingEntry?this.splitEntry(e,t.touchingEntry,n):(n.push(e),0)},t.prototype.splitEntry=function(t,e,n){var i=0,o=[],l=t.span,s=e.span;return l.start<s.start&&(i+=this.insertEntry({index:t.index,thickness:t.thickness,span:{start:l.start,end:s.start}},o)),l.end>s.end&&(i+=this.insertEntry({index:t.index,thickness:t.thickness,span:{start:s.end,end:l.end}},o)),i?(n.push.apply(n,r([{index:t.index,thickness:t.thickness,span:Uo(s,l)}],o)),i):(n.push(t),0)},t.prototype.insertEntryAt=function(t,e){var n=this.entriesByLevel,i=this.levelCoords;-1===e.lateral?(Yo(i,e.level,e.levelCoord),Yo(n,e.level,[t])):Yo(n[e.level],e.lateral,t),this.stackCnts[jo(t)]=e.stackCnt},t.prototype.findInsertion=function(t){for(var e=this,n=e.levelCoords,i=e.entriesByLevel,r=e.strictOrder,o=e.stackCnts,l=n.length,s=0,a=-1,c=-1,u=null,d=0,h=0;h<l;h+=1){var p=n[h];if(!r&&p>=s+t.thickness)break;for(var f=i[h],g=void 0,m=$o(f,t.span.start,Bo),v=m[0]+m[1];(g=f[v])&&g.span.start<t.span.end;){var y=p+g.thickness;y>s&&(s=y,u=g,a=h,c=v),y===s&&(d=Math.max(d,o[jo(g)]+1)),v+=1}}var b=0;if(u)for(b=a+1;b<l&&n[b]<s;)b+=1;var _=-1;return b<l&&n[b]===s&&(_=$o(i[b],t.span.end,Bo)[0]),{touchingLevel:a,touchingLateral:c,touchingEntry:u,stackCnt:d,levelCoord:s,level:b,lateral:_}},t.prototype.toRects=function(){for(var t=this.entriesByLevel,e=this.levelCoords,n=t.length,r=[],o=0;o<n;o+=1)for(var l=t[o],s=e[o],a=0,c=l;a<c.length;a++){var u=c[a];r.push(i(i({},u),{levelCoord:s}))}return r},t}();function Bo(t){return t.span.end}function jo(t){return t.index+":"+t.span.start}function Vo(t){for(var e=[],n=0,i=t;n<i.length;n++){for(var r=i[n],o=[],l={span:r.span,entries:[r]},s=0,a=e;s<a.length;s++){var c=a[s];Uo(c.span,l.span)?l={entries:c.entries.concat(l.entries),span:Wo(c.span,l.span)}:o.push(c)}o.push(l),e=o}return e}function Wo(t,e){return{start:Math.min(t.start,e.start),end:Math.max(t.end,e.end)}}function Uo(t,e){var n=Math.max(t.start,e.start),i=Math.min(t.end,e.end);return n<i?{start:n,end:i}:null}function Yo(t,e,n){t.splice(e,0,n)}function $o(t,e,n){var i=0,r=t.length;if(!r||e<n(t[i]))return[0,0];if(e>n(t[r-1]))return[r,0];for(;i<r;){var o=Math.floor(i+(r-i)/2),l=n(t[o]);if(e<l)r=o;else{if(!(e>l))return[o,1];i=o+1}}return[i,0]}var qo=function(){function t(t){this.component=t.component,this.isHitComboAllowed=t.isHitComboAllowed||null}return t.prototype.destroy=function(){},t}();function Go(t,e){return{component:t,el:e.el,useEventCenter:null==e.useEventCenter||e.useEventCenter,isHitComboAllowed:e.isHitComboAllowed||null}}function Zo(t){var e;return(e={})[t.component.uid]=t,e}var Ko={},Xo=function(){function t(t,e){this.emitter=new mr}return t.prototype.destroy=function(){},t.prototype.setMirrorIsVisible=function(t){},t.prototype.setMirrorNeedsRevert=function(t){},t.prototype.setAutoScrollEnabled=function(t){},t}(),Qo={},Jo={startTime:Oe,duration:Oe,create:Boolean,sourceId:String};function tl(t){var e=vn(t,Jo),n=e.refined,i=e.extra;return{startTime:n.startTime||null,duration:n.duration||null,create:null==n.create||n.create,sourceId:n.sourceId,leftoverProps:i}}var el=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){var t=this,e=this.props.widgetGroups.map((function(e){return t.renderWidgetGroup(e)}));return Er.apply(void 0,r(["div",{className:"fc-toolbar-chunk"}],e))},e.prototype.renderWidgetGroup=function(t){for(var e=this.props,n=this.context.theme,i=[],o=!0,l=0,s=t;l<s.length;l++){var a=s[l],c=a.buttonName,u=a.buttonClick,d=a.buttonText,h=a.buttonIcon,p=a.buttonHint;if("title"===c)o=!1,i.push(Er("h2",{className:"fc-toolbar-title",id:e.titleId},e.title));else{var f=c===e.activeButton,g=!e.isTodayEnabled&&"today"===c||!e.isPrevEnabled&&"prev"===c||!e.isNextEnabled&&"next"===c,m=["fc-"+c+"-button",n.getClass("button")];f&&m.push(n.getClass("buttonActive")),i.push(Er("button",{type:"button",title:"function"==typeof p?p(e.navUnit):p,disabled:g,"aria-pressed":f,className:m.join(" "),onClick:u},d||(h?Er("span",{className:h}):"")))}}if(i.length>1){var v=o&&n.getClass("buttonGroup")||"";return Er.apply(void 0,r(["div",{className:v}],i))}return i[0]},e}(Rr),nl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){var t,e,n=this.props,i=n.model,r=n.extraClassName,o=!1,l=i.sectionWidgets,s=l.center;return l.left?(o=!0,t=l.left):t=l.start,l.right?(o=!0,e=l.right):e=l.end,Er("div",{className:[r||"","fc-toolbar",o?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",t||[]),this.renderSection("center",s||[]),this.renderSection("end",e||[]))},e.prototype.renderSection=function(t,e){var n=this.props;return Er(el,{key:t,widgetGroups:e,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})},e}(Rr),il=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={availableWidth:null},e.handleEl=function(t){e.el=t,Fr(e.props.elRef,t),e.updateAvailableWidth()},e.handleResize=function(){e.updateAvailableWidth()},e}return n(e,t),e.prototype.render=function(){var t=this.props,e=this.state,n=t.aspectRatio,i=["fc-view-harness",n||t.liquid||t.height?"fc-view-harness-active":"fc-view-harness-passive"],r="",o="";return n?null!==e.availableWidth?r=e.availableWidth/n:o=1/n*100+"%":r=t.height||"",Er("div",{"aria-labelledby":t.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:r,paddingBottom:o}},t.children)},e.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},e.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},e.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},e}(Rr),rl=function(t){function e(e){var n=t.call(this,e)||this;return n.handleSegClick=function(t,e){var i=n.component,r=i.context,o=Xn(e);if(o&&i.isValidSegDownEl(t.target)){var l=_t(t.target,".fc-event-forced-url"),s=l?l.querySelector("a[href]").href:"";r.emitter.trigger("eventClick",{el:e,event:new Di(i.context,o.eventRange.def,o.eventRange.instance),jsEvent:t,view:r.viewApi}),s&&!t.defaultPrevented&&(window.location.href=s)}},n.destroy=At(e.el,"click",".fc-event",n.handleSegClick),n}return n(e,t),e}(qo),ol=function(t){function e(e){var n,i,r,o,l=t.call(this,e)||this;return l.handleEventElRemove=function(t){t===l.currentSegEl&&l.handleSegLeave(null,l.currentSegEl)},l.handleSegEnter=function(t,e){Xn(e)&&(l.currentSegEl=e,l.triggerEvent("eventMouseEnter",t,e))},l.handleSegLeave=function(t,e){l.currentSegEl&&(l.currentSegEl=null,l.triggerEvent("eventMouseLeave",t,e))},l.removeHoverListeners=(n=e.el,".fc-event",i=l.handleSegEnter,r=l.handleSegLeave,At(n,"mouseover",".fc-event",(function(t,e){if(e!==o){o=e,i(t,e);var n=function(t){o=null,r(t,e),e.removeEventListener("mouseleave",n)};e.addEventListener("mouseleave",n)}}))),l}return n(e,t),e.prototype.destroy=function(){this.removeHoverListeners()},e.prototype.triggerEvent=function(t,e,n){var i=this.component,r=i.context,o=Xn(n);e&&!i.isValidSegDownEl(e.target)||r.emitter.trigger(t,{el:n,event:new Di(r,o.eventRange.def,o.eventRange.instance),jsEvent:e,view:r.viewApi})},e}(qo),ll=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buildViewContext=$e(Or),e.buildViewPropTransformers=$e(al),e.buildToolbarProps=$e(sl),e.headerRef=Cr(),e.footerRef=Cr(),e.interactionsStore={},e.state={viewLabelId:Tt()},e.registerInteractiveComponent=function(t,n){var i=Go(t,n),r=[rl,ol].concat(e.props.pluginHooks.componentInteractions).map((function(t){return new t(i)}));e.interactionsStore[t.uid]=r,Ko[t.uid]=i},e.unregisterInteractiveComponent=function(t){var n=e.interactionsStore[t.uid];if(n){for(var i=0,r=n;i<r.length;i++)r[i].destroy();delete e.interactionsStore[t.uid]}delete Ko[t.uid]},e.resizeRunner=new So((function(){e.props.emitter.trigger("_resize",!0),e.props.emitter.trigger("windowResize",{view:e.props.viewApi})})),e.handleWindowResize=function(t){var n=e.props.options;n.handleWindowResize&&t.target===window&&e.resizeRunner.request(n.windowResizeDelay)},e}return n(e,t),e.prototype.render=function(){var t,e=this.props,n=e.toolbarConfig,r=e.options,o=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,Mi(e.options.now,e.dateEnv),e.viewTitle),l=!1,s="";e.isHeightAuto||e.forPrint?s="":null!=r.height?l=!0:null!=r.contentHeight?s=r.contentHeight:t=Math.max(r.aspectRatio,.5);var a=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),c=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return Er(Pr.Provider,{value:a},n.header&&Er(nl,i({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:c},o)),Er(il,{liquid:l,height:s,aspectRatio:t,labeledById:c},this.renderView(e),this.buildAppendContent()),n.footer&&Er(nl,i({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},o)))},e.prototype.componentDidMount=function(){var t=this.props;this.calendarInteractions=t.pluginHooks.calendarInteractions.map((function(e){return new e(t)})),window.addEventListener("resize",this.handleWindowResize);var e=t.pluginHooks.propSetHandlers;for(var n in e)e[n](t[n],t)},e.prototype.componentDidUpdate=function(t){var e=this.props,n=e.pluginHooks.propSetHandlers;for(var i in n)e[i]!==t[i]&&n[i](e[i],e)},e.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(var t=0,e=this.calendarInteractions;t<e.length;t++)e[t].destroy();this.props.emitter.trigger("_unmount")},e.prototype.buildAppendContent=function(){var t=this.props,e=t.pluginHooks.viewContainerAppends.map((function(e){return e(t)}));return Er.apply(void 0,r([Mr,{}],e))},e.prototype.renderView=function(t){for(var e=t.pluginHooks,n=t.viewSpec,r={dateProfile:t.dateProfile,businessHours:t.businessHours,eventStore:t.renderableEventStore,eventUiBases:t.eventUiBases,dateSelection:t.dateSelection,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,isHeightAuto:t.isHeightAuto,forPrint:t.forPrint},o=0,l=this.buildViewPropTransformers(e.viewPropsTransformers);o<l.length;o++){var s=l[o];i(r,s.transform(r,t))}var a=n.component;return Er(a,i({},r))},e}(Ir);function sl(t,e,n,i,r,o){var l=n.build(r,void 0,!1),s=n.buildPrev(e,i,!1),a=n.buildNext(e,i,!1);return{title:o,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:l.isValid&&!qn(e.currentRange,r),isPrevEnabled:s.isValid,isNextEnabled:a.isValid}}function al(t){return t.map((function(t){return new t}))}var cl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={forPrint:!1},e.handleBeforePrint=function(){e.setState({forPrint:!0})},e.handleAfterPrint=function(){e.setState({forPrint:!1})},e}return n(e,t),e.prototype.render=function(){var t=this.props,e=t.options,n=this.state.forPrint,i=n||"auto"===e.height||"auto"===e.contentHeight,r=i||null==e.height?"":e.height,o=["fc",n?"fc-media-print":"fc-media-screen","fc-direction-"+e.direction,t.theme.getClass("root")];return Xi()||o.push("fc-liquid-hack"),t.children(o,r,i,n)},e.prototype.componentDidMount=function(){var t=this.props.emitter;t.on("_beforeprint",this.handleBeforePrint),t.on("_afterprint",this.handleAfterPrint)},e.prototype.componentWillUnmount=function(){var t=this.props.emitter;t.off("_beforeprint",this.handleBeforePrint),t.off("_afterprint",this.handleAfterPrint)},e}(Rr);function ul(t,e){return an(!t||e>10?{weekday:"short"}:e>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}var dl="fc-col-header-cell";function hl(t){return t.text}var pl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){var t=this.context,e=t.dateEnv,n=t.options,r=t.theme,o=t.viewApi,l=this.props,s=l.date,a=l.dateProfile,c=er(s,l.todayRange,null,a),u=[dl].concat(nr(c,r)),d=e.format(s,l.dayHeaderFormat),h=!c.isDisabled&&l.colCnt>1?or(this.context,s):{},p=i(i(i({date:e.toDate(s),view:o},l.extraHookProps),{text:d}),c);return Er(Wr,{hookProps:p,classNames:n.dayHeaderClassNames,content:n.dayHeaderContent,defaultContent:hl,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(function(t,e,n,r){return Er("th",i({ref:t,role:"columnheader",className:u.concat(e).join(" "),"data-date":c.isDisabled?void 0:Ve(s),colSpan:l.colSpan},l.extraDataAttrs),Er("div",{className:"fc-scrollgrid-sync-inner"},!c.isDisabled&&Er("a",i({ref:n,className:["fc-col-header-cell-cushion",l.isSticky?"fc-sticky":""].join(" ")},h),r)))}))},e}(Rr),fl=an({weekday:"long"}),gl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){var t=this.props,e=this.context,n=e.dateEnv,r=e.theme,o=e.viewApi,l=e.options,s=ee(new Date(2592e5),t.dow),a={dow:t.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},c=[dl].concat(nr(a,r),t.extraClassNames||[]),u=n.format(s,t.dayHeaderFormat),d=i(i(i(i({date:s},a),{view:o}),t.extraHookProps),{text:u});return Er(Wr,{hookProps:d,classNames:l.dayHeaderClassNames,content:l.dayHeaderContent,defaultContent:hl,didMount:l.dayHeaderDidMount,willUnmount:l.dayHeaderWillUnmount},(function(e,r,o,l){return Er("th",i({ref:e,role:"columnheader",className:c.concat(r).join(" "),colSpan:t.colSpan},t.extraDataAttrs),Er("div",{className:"fc-scrollgrid-sync-inner"},Er("a",{"aria-label":n.format(s,fl),className:["fc-col-header-cell-cushion",t.isSticky?"fc-sticky":""].join(" "),ref:o},l)))}))},e}(Rr),ml=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.initialNowDate=Mi(n.options.now,n.dateEnv),i.initialNowQueriedMs=(new Date).valueOf(),i.state=i.computeTiming().currentState,i}return n(e,t),e.prototype.render=function(){var t=this.props,e=this.state;return t.children(e.nowDate,e.todayRange)},e.prototype.componentDidMount=function(){this.setTimeout()},e.prototype.componentDidUpdate=function(t){t.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},e.prototype.componentWillUnmount=function(){this.clearTimeout()},e.prototype.computeTiming=function(){var t=this.props,e=this.context,n=ne(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),i=e.dateEnv.startOf(n,t.unit),r=e.dateEnv.add(i,Oe(1,t.unit)),o=r.valueOf()-n.valueOf();return o=Math.min(864e5,o),{currentState:{nowDate:i,todayRange:vl(i)},nextState:{nowDate:r,todayRange:vl(r)},waitMs:o}},e.prototype.setTimeout=function(){var t=this,e=this.computeTiming(),n=e.nextState,i=e.waitMs;this.timeoutId=setTimeout((function(){t.setState(n,(function(){t.setTimeout()}))}),i)},e.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},e.contextType=Pr,e}(xr);function vl(t){var e=ae(t);return{start:e,end:ee(e,1)}}var yl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.createDayHeaderFormatter=$e(bl),e}return n(e,t),e.prototype.render=function(){var t=this.context,e=this.props,n=e.dates,i=e.dateProfile,r=e.datesRepDistinctDays,o=e.renderIntro,l=this.createDayHeaderFormatter(t.options.dayHeaderFormat,r,n.length);return Er(ml,{unit:"day"},(function(t,e){return Er("tr",{role:"row"},o&&o("day"),n.map((function(t){return r?Er(pl,{key:t.toISOString(),date:t,dateProfile:i,todayRange:e,colCnt:n.length,dayHeaderFormat:l}):Er(gl,{key:t.getUTCDay(),dow:t.getUTCDay(),dayHeaderFormat:l})})))}))},e}(Rr);function bl(t,e,n){return t||ul(e,n)}var _l=function(){function t(t,e){for(var n=t.start,i=t.end,r=[],o=[],l=-1;n<i;)e.isHiddenDay(n)?r.push(l+.5):(l+=1,r.push(l),o.push(n)),n=ee(n,1);this.dates=o,this.indices=r,this.cnt=o.length}return t.prototype.sliceRange=function(t){var e=this.getDateDayIndex(t.start),n=this.getDateDayIndex(ee(t.end,-1)),i=Math.max(0,e),r=Math.min(this.cnt-1,n);return(i=Math.ceil(i))<=(r=Math.floor(r))?{firstIndex:i,lastIndex:r,isStart:e===i,isEnd:n===r}:null},t.prototype.getDateDayIndex=function(t){var e=this.indices,n=Math.floor(re(this.dates[0],t));return n<0?e[0]-1:n>=e.length?e[e.length-1]+1:e[n]},t}(),wl=function(){function t(t,e){var n,i,r,o=t.dates;if(e){for(i=o[0].getUTCDay(),n=1;n<o.length&&o[n].getUTCDay()!==i;n+=1);r=Math.ceil(o.length/n)}else r=1,n=o.length;this.rowCnt=r,this.colCnt=n,this.daySeries=t,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}return t.prototype.buildCells=function(){for(var t=[],e=0;e<this.rowCnt;e+=1){for(var n=[],i=0;i<this.colCnt;i+=1)n.push(this.buildCell(e,i));t.push(n)}return t},t.prototype.buildCell=function(t,e){var n=this.daySeries.dates[t*this.colCnt+e];return{key:n.toISOString(),date:n}},t.prototype.buildHeaderDates=function(){for(var t=[],e=0;e<this.colCnt;e+=1)t.push(this.cells[0][e].date);return t},t.prototype.sliceRange=function(t){var e=this.colCnt,n=this.daySeries.sliceRange(t),i=[];if(n)for(var r=n.firstIndex,o=n.lastIndex,l=r;l<=o;){var s=Math.floor(l/e),a=Math.min((s+1)*e,o+1);i.push({row:s,firstCol:l%e,lastCol:(a-1)%e,isStart:n.isStart&&l===r,isEnd:n.isEnd&&a-1===o}),l=a}return i},t}(),xl=function(){function t(){this.sliceBusinessHours=$e(this._sliceBusinessHours),this.sliceDateSelection=$e(this._sliceDateSpan),this.sliceEventStore=$e(this._sliceEventStore),this.sliceEventDrag=$e(this._sliceInteraction),this.sliceEventResize=$e(this._sliceInteraction),this.forceDayIfListItem=!1}return t.prototype.sliceProps=function(t,e,n,i){for(var o=[],l=4;l<arguments.length;l++)o[l-4]=arguments[l];var s=t.eventUiBases,a=this.sliceEventStore.apply(this,r([t.eventStore,s,e,n],o));return{dateSelectionSegs:this.sliceDateSelection.apply(this,r([t.dateSelection,s,i],o)),businessHourSegs:this.sliceBusinessHours.apply(this,r([t.businessHours,e,n,i],o)),fgEventSegs:a.fg,bgEventSegs:a.bg,eventDrag:this.sliceEventDrag.apply(this,r([t.eventDrag,s,e,n],o)),eventResize:this.sliceEventResize.apply(this,r([t.eventResize,s,e,n],o)),eventSelection:t.eventSelection}},t.prototype.sliceNowDate=function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this._sliceDateSpan.apply(this,r([{range:{start:t,end:ne(t,1)},allDay:!1},{},e],n))},t.prototype._sliceBusinessHours=function(t,e,n,i){for(var o=[],l=4;l<arguments.length;l++)o[l-4]=arguments[l];return t?this._sliceEventStore.apply(this,r([Te(t,El(e,Boolean(n)),i),{},e,n],o)).bg:[]},t.prototype._sliceEventStore=function(t,e,n,i){for(var r=[],o=4;o<arguments.length;o++)r[o-4]=arguments[o];if(t){var l=Gn(t,e,El(n,Boolean(i)),i);return{bg:this.sliceEventRanges(l.bg,r),fg:this.sliceEventRanges(l.fg,r)}}return{bg:[],fg:[]}},t.prototype._sliceInteraction=function(t,e,n,i){for(var r=[],o=4;o<arguments.length;o++)r[o-4]=arguments[o];if(!t)return null;var l=Gn(t.mutatedEvents,e,El(n,Boolean(i)),i);return{segs:this.sliceEventRanges(l.fg,r),affectedInstances:t.affectedEvents.instances,isEvent:t.isEvent}},t.prototype._sliceDateSpan=function(t,e,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];if(!t)return[];for(var l=gi(t,e,n),s=this.sliceRange.apply(this,r([t.range],i)),a=0,c=s;a<c.length;a++){var u=c[a];u.eventRange=l}return s},t.prototype.sliceEventRanges=function(t,e){for(var n=[],i=0,r=t;i<r.length;i++){var o=r[i];n.push.apply(n,this.sliceEventRange(o,e))}return n},t.prototype.sliceEventRange=function(t,e){var n=t.range;this.forceDayIfListItem&&"list-item"===t.ui.display&&(n={start:n.start,end:ee(n.start,1)});for(var i=this.sliceRange.apply(this,r([n],e)),o=0,l=i;o<l.length;o++){var s=l[o];s.eventRange=t,s.isStart=t.isStart&&s.isStart,s.isEnd=t.isEnd&&s.isEnd}return i},t}();function El(t,e){var n=t.activeRange;return e?n:{start:ne(n.start,t.slotMinTime.milliseconds),end:ne(n.end,t.slotMaxTime.milliseconds-864e5)}}function Sl(t,e,n){var i=t.mutatedEvents.instances;for(var r in i)if(!$n(e.validRange,i[r].range))return!1;return Ml({eventDrag:t},n)}function Cl(t,e,n){return!!$n(e.validRange,t.range)&&Ml({dateSelection:t},n)}function Ml(t,e){var n=e.getCurrentData(),r=i({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(e.pluginHooks.isPropsValid||kl)(r,e)}function kl(t,e,n,r){return void 0===n&&(n={}),!(t.eventDrag&&!function(t,e,n,r){var o=e.getCurrentData(),l=t.eventDrag,s=l.mutatedEvents,a=s.defs,c=s.instances,u=Qn(a,l.isEvent?t.eventUiBases:{"":o.selectionConfig});r&&(u=we(u,r));var d,h,p=(d=t.eventStore,h=l.affectedEvents.instances,{defs:d.defs,instances:_e(d.instances,(function(t){return!h[t.instanceId]}))}),f=p.defs,g=p.instances,m=Qn(f,t.eventUiBases);for(var v in c){var y=c[v],b=y.range,_=u[y.defId],w=a[y.defId];if(!Dl(_.constraints,b,p,t.businessHours,e))return!1;var x=e.options.eventOverlap,E="function"==typeof x?x:null;for(var S in g){var C=g[S];if(Yn(b,C.range)){if(!1===m[C.defId].overlap&&l.isEvent)return!1;if(!1===_.overlap)return!1;if(E&&!E(new Di(e,f[C.defId],C),new Di(e,w,y)))return!1}}for(var M=o.eventStore,k=0,D=_.allows;k<D.length;k++){var T,L=D[k],A=i(i({},n),{range:y.range,allDay:w.allDay}),P=M.defs[w.defId],O=M.instances[v];if(T=P?new Di(e,P,O):new Di(e,w),!L(vi(A,e),T))return!1}}return!0}(t,e,n,r)||t.dateSelection&&!function(t,e,n,r){var o=t.eventStore,l=o.defs,s=o.instances,a=t.dateSelection,c=a.range,u=e.getCurrentData().selectionConfig;if(r&&(u=r(u)),!Dl(u.constraints,c,o,t.businessHours,e))return!1;var d=e.options.selectOverlap,h="function"==typeof d?d:null;for(var p in s){var f=s[p];if(Yn(c,f.range)){if(!1===u.overlap)return!1;if(h&&!h(new Di(e,l[f.defId],f),null))return!1}}for(var g=0,m=u.allows;g<m.length;g++)if(!(0,m[g])(vi(i(i({},n),a),e),null))return!1;return!0}(t,e,n,r))}function Dl(t,e,n,i,r){for(var o=0,l=t;o<l.length;o++)if(!Al(Tl(l[o],e,n,i,r),e))return!1;return!0}function Tl(t,e,n,i,r){return"businessHours"===t?Ll(Te(i,e,r)):"string"==typeof t?Ll(En(n,(function(e){return e.groupId===t}))):"object"==typeof t&&t?Ll(Te(t,e,r)):[]}function Ll(t){var e=t.instances,n=[];for(var i in e)n.push(e[i].range);return n}function Al(t,e){for(var n=0,i=t;n<i.length;n++)if($n(i[n],e))return!0;return!1}var Pl=/^(visible|hidden)$/,Ol=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleEl=function(t){e.el=t,Fr(e.props.elRef,t)},e}return n(e,t),e.prototype.render=function(){var t=this.props,e=t.liquid,n=t.liquidIsAbsolute,i=e&&n,r=["fc-scroller"];return e&&(n?r.push("fc-scroller-liquid-absolute"):r.push("fc-scroller-liquid")),Er("div",{ref:this.handleEl,className:r.join(" "),style:{overflowX:t.overflowX,overflowY:t.overflowY,left:i&&-(t.overcomeLeft||0)||"",right:i&&-(t.overcomeRight||0)||"",bottom:i&&-(t.overcomeBottom||0)||"",marginLeft:!i&&-(t.overcomeLeft||0)||"",marginRight:!i&&-(t.overcomeRight||0)||"",marginBottom:!i&&-(t.overcomeBottom||0)||"",maxHeight:t.maxHeight||""}},t.children)},e.prototype.needsXScrolling=function(){if(Pl.test(this.props.overflowX))return!1;for(var t=this.el,e=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),n=t.children,i=0;i<n.length;i+=1)if(n[i].getBoundingClientRect().width>e)return!0;return!1},e.prototype.needsYScrolling=function(){if(Pl.test(this.props.overflowY))return!1;for(var t=this.el,e=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),n=t.children,i=0;i<n.length;i+=1)if(n[i].getBoundingClientRect().height>e)return!0;return!1},e.prototype.getXScrollbarWidth=function(){return Pl.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},e.prototype.getYScrollbarWidth=function(){return Pl.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},e}(Rr),Il=function(){function t(t){var e=this;this.masterCallback=t,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(t,n){var i=e,r=i.depths,o=i.currentMap,l=!1,s=!1;null!==t?(l=n in o,o[n]=t,r[n]=(r[n]||0)+1,s=!0):(r[n]-=1,r[n]||(delete o[n],delete e.callbackMap[n],l=!0)),e.masterCallback&&(l&&e.masterCallback(null,String(n)),s&&e.masterCallback(t,String(n)))}}return t.prototype.createRef=function(t){var e=this,n=this.callbackMap[t];return n||(n=this.callbackMap[t]=function(n){e.handleValue(n,String(t))}),n},t.prototype.collect=function(t,e,n){return De(this.currentMap,t,e,n)},t.prototype.getAll=function(){return Ee(this.currentMap)},t}();function Rl(t){for(var e=0,n=0,i=xt(t,".fc-scrollgrid-shrink");n<i.length;n++){var r=i[n];e=Math.max(e,Qt(r))}return Math.ceil(e)}function Nl(t,e){return t.liquid&&e.liquid}function zl(t,e){return null!=e.maxHeight||Nl(t,e)}function Fl(t,e,n,i){var r=n.expandRows;return"function"==typeof e.content?e.content(n):Er("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:r?n.clientHeight:""}},n.tableColGroupNode,Er(i?"thead":"tbody",{role:"presentation"},"function"==typeof e.rowContent?e.rowContent(n):e.rowContent))}function Hl(t,e){return Ye(t,e,Se)}function Bl(t,e){for(var n=[],i=0,o=t;i<o.length;i++)for(var l=o[i],s=l.span||1,a=0;a<s;a+=1)n.push(Er("col",{style:{width:"shrink"===l.width?jl(e):l.width||"",minWidth:l.minWidth||""}}));return Er.apply(void 0,r(["colgroup",{}],n))}function jl(t){return null==t?4:t}function Vl(t){for(var e=0,n=t;e<n.length;e++)if("shrink"===n[e].width)return!0;return!1}function Wl(t,e){var n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function Ul(t,e){var n=["fc-scrollgrid-section","fc-scrollgrid-section-"+t.type,t.className];return e&&t.liquid&&null==t.maxHeight&&n.push("fc-scrollgrid-section-liquid"),t.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function Yl(t){return Er("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function $l(t){var e=t.stickyHeaderDates;return null!=e&&"auto"!==e||(e="auto"===t.height||"auto"===t.viewHeight),e}function ql(t){var e=t.stickyFooterScrollbar;return null!=e&&"auto"!==e||(e="auto"===t.height||"auto"===t.viewHeight),e}var Gl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.processCols=$e((function(t){return t}),Hl),e.renderMicroColGroup=$e(Bl),e.scrollerRefs=new Il,e.scrollerElRefs=new Il(e._handleScrollerEl.bind(e)),e.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},e.handleSizing=function(){e.safeSetState(i({shrinkWidth:e.computeShrinkWidth()},e.computeScrollerDims()))},e}return n(e,t),e.prototype.render=function(){var t=this,e=t.props,n=t.state,i=t.context,o=e.sections||[],l=this.processCols(e.cols),s=this.renderMicroColGroup(l,n.shrinkWidth),a=Wl(e.liquid,i);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");for(var c,u=o.length,d=0,h=[],p=[],f=[];d<u&&"header"===(c=o[d]).type;)h.push(this.renderSection(c,s,!0)),d+=1;for(;d<u&&"body"===(c=o[d]).type;)p.push(this.renderSection(c,s,!1)),d+=1;for(;d<u&&"footer"===(c=o[d]).type;)f.push(this.renderSection(c,s,!0)),d+=1;var g=!Xi(),m={role:"rowgroup"};return Er("table",{role:"grid",className:a.join(" "),style:{height:e.height}},Boolean(!g&&h.length)&&Er.apply(void 0,r(["thead",m],h)),Boolean(!g&&p.length)&&Er.apply(void 0,r(["tbody",m],p)),Boolean(!g&&f.length)&&Er.apply(void 0,r(["tfoot",m],f)),g&&Er.apply(void 0,r(r(r(["tbody",m],h),p),f)))},e.prototype.renderSection=function(t,e,n){return"outerContent"in t?Er(Mr,{key:t.key},t.outerContent):Er("tr",{key:t.key,role:"presentation",className:Ul(t,this.props.liquid).join(" ")},this.renderChunkTd(t,e,t.chunk,n))},e.prototype.renderChunkTd=function(t,e,n,i){if("outerContent"in n)return n.outerContent;var r=this.props,o=this.state,l=o.forceYScrollbars,s=o.scrollerClientWidths,a=o.scrollerClientHeights,c=zl(r,t),u=Nl(r,t),d=r.liquid?l?"scroll":c?"auto":"hidden":"visible",h=t.key,p=Fl(t,n,{tableColGroupNode:e,tableMinWidth:"",clientWidth:r.collapsibleWidth||void 0===s[h]?null:s[h],clientHeight:void 0!==a[h]?a[h]:null,expandRows:t.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}},i);return Er(i?"th":"td",{ref:n.elRef,role:"presentation"},Er("div",{className:"fc-scroller-harness"+(u?" fc-scroller-harness-liquid":"")},Er(Ol,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:d,overflowX:r.liquid?"hidden":"visible",maxHeight:t.maxHeight,liquid:u,liquidIsAbsolute:!0},p)))},e.prototype._handleScrollerEl=function(t,e){var n=function(t,e){for(var n=0,i=t;n<i.length;n++){var r=i[n];if(r.key===e)return r}return null}(this.props.sections,e);n&&Fr(n.chunk.scrollerElRef,t)},e.prototype.componentDidMount=function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)},e.prototype.componentDidUpdate=function(){this.handleSizing()},e.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},e.prototype.computeShrinkWidth=function(){return Vl(this.props.cols)?Rl(this.scrollerElRefs.getAll()):0},e.prototype.computeScrollerDims=function(){var t=cr(),e=this.scrollerRefs,n=this.scrollerElRefs,i=!1,r={},o={};for(var l in e.currentMap){var s=e.currentMap[l];if(s&&s.needsYScrolling()){i=!0;break}}for(var a=0,c=this.props.sections;a<c.length;a++){l=c[a].key;var u=n.currentMap[l];if(u){var d=u.parentNode;r[l]=Math.floor(d.getBoundingClientRect().width-(i?t.y:0)),o[l]=Math.floor(d.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:r,scrollerClientHeights:o}},e}(Rr);Gl.addStateEquality({scrollerClientWidths:Se,scrollerClientHeights:Se});var Zl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.elRef=Cr(),e}return n(e,t),e.prototype.render=function(){var t=this.props,e=this.context,n=e.options,i=t.seg,r=i.eventRange,o=r.ui,l={event:new Di(e,r.def,r.instance),view:e.viewApi,timeText:t.timeText,textColor:o.textColor,backgroundColor:o.backgroundColor,borderColor:o.borderColor,isDraggable:!t.disableDragging&&ni(i,e),isStartResizable:!t.disableResizing&&ii(i,e),isEndResizable:!t.disableResizing&&ri(i),isMirror:Boolean(t.isDragging||t.isResizing||t.isDateSelecting),isStart:Boolean(i.isStart),isEnd:Boolean(i.isEnd),isPast:Boolean(t.isPast),isFuture:Boolean(t.isFuture),isToday:Boolean(t.isToday),isSelected:Boolean(t.isSelected),isDragging:Boolean(t.isDragging),isResizing:Boolean(t.isResizing)},s=si(l).concat(o.classNames);return Er(Wr,{hookProps:l,classNames:n.eventClassNames,content:n.eventContent,defaultContent:t.defaultContent,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount,elRef:this.elRef},(function(e,n,i,r){return t.children(e,s.concat(n),i,r,l)}))},e.prototype.componentDidMount=function(){Kn(this.elRef.current,this.props.seg)},e.prototype.componentDidUpdate=function(t){var e=this.props.seg;e!==t.seg&&Kn(this.elRef.current,e)},e}(Rr),Kl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){var t=this.props,e=this.context,n=t.seg,r=e.options.eventTimeFormat||t.defaultTimeFormat,o=oi(n,r,e,t.defaultDisplayEventTime,t.defaultDisplayEventEnd);return Er(Zl,{seg:n,timeText:o,disableDragging:t.disableDragging,disableResizing:t.disableResizing,defaultContent:t.defaultContent||Xl,isDragging:t.isDragging,isResizing:t.isResizing,isDateSelecting:t.isDateSelecting,isSelected:t.isSelected,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday},(function(r,o,l,s,a){return Er("a",i({className:t.extraClassNames.concat(o).join(" "),style:{borderColor:a.borderColor,backgroundColor:a.backgroundColor},ref:r},ci(n,e)),Er("div",{className:"fc-event-main",ref:l,style:{color:a.textColor}},s),a.isStartResizable&&Er("div",{className:"fc-event-resizer fc-event-resizer-start"}),a.isEndResizable&&Er("div",{className:"fc-event-resizer fc-event-resizer-end"}))}))},e}(Rr);function Xl(t){return Er("div",{className:"fc-event-main-frame"},t.timeText&&Er("div",{className:"fc-event-time"},t.timeText),Er("div",{className:"fc-event-title-container"},Er("div",{className:"fc-event-title fc-sticky"},t.event.title||Er(Mr,null," "))))}var Ql=function(t){return Er(Pr.Consumer,null,(function(e){var n=e.options,i={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return Er(Wr,{hookProps:i,classNames:n.nowIndicatorClassNames,content:n.nowIndicatorContent,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},t.children)}))},Jl=an({day:"numeric"}),ts=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){var t=this.props,e=this.context,n=e.options,i=es({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraProps:t.extraHookProps,viewApi:e.viewApi,dateEnv:e.dateEnv});return Er(Yr,{hookProps:i,content:n.dayCellContent,defaultContent:t.defaultContent},t.children)},e}(Rr);function es(t){var e=t.date,n=t.dateEnv,r=er(e,t.todayRange,null,t.dateProfile);return i(i(i({date:n.toDate(e),view:t.viewApi},r),{dayNumberText:t.showDayNumber?n.format(e,Jl):""}),t.extraProps)}var ns=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.refineHookProps=qe(es),e.normalizeClassNames=Gr(),e}return n(e,t),e.prototype.render=function(){var t=this.props,e=this.context,n=e.options,i=this.refineHookProps({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraProps:t.extraHookProps,viewApi:e.viewApi,dateEnv:e.dateEnv}),r=nr(i,e.theme).concat(i.isDisabled?[]:this.normalizeClassNames(n.dayCellClassNames,i)),o=i.isDisabled?{}:{"data-date":Ve(t.date)};return Er(qr,{hookProps:i,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount,elRef:t.elRef},(function(e){return t.children(e,r,o,i.isDisabled)}))},e}(Rr);function is(t){return Er("div",{className:"fc-"+t})}var rs=function(t){return Er(Zl,{defaultContent:os,seg:t.seg,timeText:"",disableDragging:!0,disableResizing:!0,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday},(function(t,e,n,i,r){return Er("div",{ref:t,className:["fc-bg-event"].concat(e).join(" "),style:{backgroundColor:r.backgroundColor}},i)}))};function os(t){return t.event.title&&Er("div",{className:"fc-event-title"},t.event.title)}var ls=function(t){return Er(Pr.Consumer,null,(function(e){var n=e.dateEnv,i=e.options,r=t.date,o=i.weekNumberFormat||t.defaultFormat,l=n.computeWeekNumber(r),s=n.format(r,o);return Er(Wr,{hookProps:{num:l,text:s,date:r},classNames:i.weekNumberClassNames,content:i.weekNumberContent,defaultContent:ss,didMount:i.weekNumberDidMount,willUnmount:i.weekNumberWillUnmount},t.children)}))};function ss(t){return t.text}var as=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={titleId:Tt()},e.handleRootEl=function(t){e.rootEl=t,e.props.elRef&&Fr(e.props.elRef,t)},e.handleDocumentMouseDown=function(t){var n=Mt(t);e.rootEl.contains(n)||e.handleCloseClick()},e.handleDocumentKeyDown=function(t){"Escape"===t.key&&e.handleCloseClick()},e.handleCloseClick=function(){var t=e.props.onClose;t&&t()},e}return n(e,t),e.prototype.render=function(){var t=this.context,e=t.theme,n=t.options,r=this.props,o=this.state,l=["fc-popover",e.getClass("popover")].concat(r.extraClassNames||[]);return Dr(Er("div",i({id:r.id,className:l.join(" "),"aria-labelledby":o.titleId},r.extraAttrs,{ref:this.handleRootEl}),Er("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},Er("span",{className:"fc-popover-title",id:o.titleId},r.title),Er("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),Er("div",{className:"fc-popover-body "+e.getClass("popoverContent")},r.children)),r.parentEl)},e.prototype.componentDidMount=function(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()},e.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)},e.prototype.updateSize=function(){var t=this.context.isRtl,e=this.props,n=e.alignmentEl,i=e.alignGridTop,r=this.rootEl,o=function(t){for(var e=fr(t),n=t.getBoundingClientRect(),i=0,r=e;i<r.length;i++){var o=qi(n,r[i].getBoundingClientRect());if(!o)return null;n=o}return n}(n);if(o){var l=r.getBoundingClientRect(),s=i?_t(n,".fc-scrollgrid").getBoundingClientRect().top:o.top,a=t?o.right-l.width:o.left;s=Math.max(s,10),a=Math.min(a,document.documentElement.clientWidth-10-l.width),a=Math.max(a,10);var c=r.offsetParent.getBoundingClientRect();St(r,{top:s-c.top,left:a-c.left})}},e}(Rr),cs=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleRootEl=function(t){e.rootEl=t,t?e.context.registerInteractiveComponent(e,{el:t,useEventCenter:!1}):e.context.unregisterInteractiveComponent(e)},e}return n(e,t),e.prototype.render=function(){var t=this.context,e=t.options,n=t.dateEnv,i=this.props,r=i.startDate,o=i.todayRange,l=i.dateProfile,s=n.format(r,e.dayPopoverFormat);return Er(ns,{date:r,dateProfile:l,todayRange:o,elRef:this.handleRootEl},(function(t,e,n){return Er(as,{elRef:t,id:i.id,title:s,extraClassNames:["fc-more-popover"].concat(e),extraAttrs:n,parentEl:i.parentEl,alignmentEl:i.alignmentEl,alignGridTop:i.alignGridTop,onClose:i.onClose},Er(ts,{date:r,dateProfile:l,todayRange:o},(function(t,e){return e&&Er("div",{className:"fc-more-popover-misc",ref:t},e)})),i.children)}))},e.prototype.queryHit=function(t,e,n,r){var o=this.rootEl,l=this.props;return t>=0&&t<n&&e>=0&&e<r?{dateProfile:l.dateProfile,dateSpan:i({allDay:!0,range:{start:l.startDate,end:l.endDate}},l.extraDateSpan),dayEl:o,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null},e}(Hr),us=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.linkElRef=Cr(),e.state={isPopoverOpen:!1,popoverId:Tt()},e.handleClick=function(t){var n=e,i=n.props,r=n.context,o=r.options.moreLinkClick,l=hs(i).start;function s(t){var e=t.eventRange,n=e.def,i=e.instance,o=e.range;return{event:new Di(r,n,i),start:r.dateEnv.toDate(o.start),end:r.dateEnv.toDate(o.end),isStart:t.isStart,isEnd:t.isEnd}}"function"==typeof o&&(o=o({date:l,allDay:Boolean(i.allDayDate),allSegs:i.allSegs.map(s),hiddenSegs:i.hiddenSegs.map(s),jsEvent:t,view:r.viewApi})),o&&"popover"!==o?"string"==typeof o&&r.calendarApi.zoomTo(l,o):e.setState({isPopoverOpen:!0})},e.handlePopoverClose=function(){e.setState({isPopoverOpen:!1})},e}return n(e,t),e.prototype.render=function(){var t=this,e=this.props,n=this.state;return Er(Pr.Consumer,null,(function(i){var r=i.viewApi,o=i.options,l=i.calendarApi,s=o.moreLinkText,a=e.moreCnt,c=hs(e),u="function"==typeof s?s.call(l,a):"+"+a+" "+s,d=Zt(o.moreLinkHint,[a],u),h={num:a,shortText:"+"+a,text:u,view:r};return Er(Mr,null,Boolean(e.moreCnt)&&Er(Wr,{elRef:t.linkElRef,hookProps:h,classNames:o.moreLinkClassNames,content:o.moreLinkContent,defaultContent:e.defaultContent||ds,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},(function(i,r,o,l){return e.children(i,["fc-more-link"].concat(r),o,l,t.handleClick,d,n.isPopoverOpen,n.isPopoverOpen?n.popoverId:"")})),n.isPopoverOpen&&Er(cs,{id:n.popoverId,startDate:c.start,endDate:c.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:t.parentEl,alignmentEl:e.alignmentElRef.current,alignGridTop:e.alignGridTop,onClose:t.handlePopoverClose},e.popoverContent()))}))},e.prototype.componentDidMount=function(){this.updateParentEl()},e.prototype.componentDidUpdate=function(){this.updateParentEl()},e.prototype.updateParentEl=function(){this.linkElRef.current&&(this.parentEl=_t(this.linkElRef.current,".fc-view-harness"))},e}(Rr);function ds(t){return t.text}function hs(t){if(t.allDayDate)return{start:t.allDayDate,end:ee(t.allDayDate,1)};var e,n=t.hiddenSegs;return{start:ps(n),end:(e=n,e.reduce(gs).eventRange.range.end)}}function ps(t){return t.reduce(fs).eventRange.range.start}function fs(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function gs(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}var ms=function(t){function e(e,n){void 0===n&&(n={});var r=t.call(this)||this;return r.isRendering=!1,r.isRendered=!1,r.currentClassNames=[],r.customContentRenderId=0,r.handleAction=function(t){switch(t.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":r.renderRunner.tryDrain()}},r.handleData=function(t){r.currentData=t,r.renderRunner.request(t.calendarOptions.rerenderDelay)},r.handleRenderRequest=function(){if(r.isRendering){r.isRendered=!0;var t=r.currentData;Tr((function(){Sr(Er(cl,{options:t.calendarOptions,theme:t.theme,emitter:t.emitter},(function(e,n,o,l){return r.setClassNames(e),r.setHeight(n),Er(Ur.Provider,{value:r.customContentRenderId},Er(ll,i({isHeightAuto:o,forPrint:l},t)))})),r.el)}))}else r.isRendered&&(r.isRendered=!1,Lr(r.el),r.setClassNames([]),r.setHeight(""))},r.el=e,r.renderRunner=new So(r.handleRenderRequest),new ko({optionOverrides:n,calendarApi:r,onAction:r.handleAction,onData:r.handleData}),r}return n(e,t),Object.defineProperty(e.prototype,"view",{get:function(){return this.currentData.viewApi},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t=this.isRendering;t?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),t&&this.updateSize()},e.prototype.destroy=function(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())},e.prototype.updateSize=function(){var e=this;Tr((function(){t.prototype.updateSize.call(e)}))},e.prototype.batchRendering=function(t){this.renderRunner.pause("batchRendering"),t(),this.renderRunner.resume("batchRendering")},e.prototype.pauseRendering=function(){this.renderRunner.pause("pauseRendering")},e.prototype.resumeRendering=function(){this.renderRunner.resume("pauseRendering",!0)},e.prototype.resetOptions=function(t,e){this.currentDataManager.resetOptions(t,e)},e.prototype.setClassNames=function(t){if(!Ye(t,this.currentClassNames)){for(var e=this.el.classList,n=0,i=this.currentClassNames;n<i.length;n++){var r=i[n];e.remove(r)}for(var o=0,l=t;o<l.length;o++)r=l[o],e.add(r);this.currentClassNames=t}},e.prototype.setHeight=function(t){Ct(this.el,"height",t)},e}(ki);Qo.touchMouseIgnoreWait=500;var vs=0,ys=0,bs=!1,_s=function(){function t(t){var e=this;this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=function(t){if(!e.shouldIgnoreMouse()&&function(t){return 0===t.button&&!t.ctrlKey}(t)&&e.tryStart(t)){var n=e.createEventFromMouse(t,!0);e.emitter.trigger("pointerdown",n),e.initScrollWatch(n),e.shouldIgnoreMove||document.addEventListener("mousemove",e.handleMouseMove),document.addEventListener("mouseup",e.handleMouseUp)}},this.handleMouseMove=function(t){var n=e.createEventFromMouse(t);e.recordCoords(n),e.emitter.trigger("pointermove",n)},this.handleMouseUp=function(t){document.removeEventListener("mousemove",e.handleMouseMove),document.removeEventListener("mouseup",e.handleMouseUp),e.emitter.trigger("pointerup",e.createEventFromMouse(t)),e.cleanup()},this.handleTouchStart=function(t){if(e.tryStart(t)){e.isTouchDragging=!0;var n=e.createEventFromTouch(t,!0);e.emitter.trigger("pointerdown",n),e.initScrollWatch(n);var i=t.target;e.shouldIgnoreMove||i.addEventListener("touchmove",e.handleTouchMove),i.addEventListener("touchend",e.handleTouchEnd),i.addEventListener("touchcancel",e.handleTouchEnd),window.addEventListener("scroll",e.handleTouchScroll,!0)}},this.handleTouchMove=function(t){var n=e.createEventFromTouch(t);e.recordCoords(n),e.emitter.trigger("pointermove",n)},this.handleTouchEnd=function(t){if(e.isDragging){var n=t.target;n.removeEventListener("touchmove",e.handleTouchMove),n.removeEventListener("touchend",e.handleTouchEnd),n.removeEventListener("touchcancel",e.handleTouchEnd),window.removeEventListener("scroll",e.handleTouchScroll,!0),e.emitter.trigger("pointerup",e.createEventFromTouch(t)),e.cleanup(),e.isTouchDragging=!1,vs+=1,setTimeout((function(){vs-=1}),Qo.touchMouseIgnoreWait)}},this.handleTouchScroll=function(){e.wasTouchScroll=!0},this.handleScroll=function(t){if(!e.shouldIgnoreMove){var n=window.pageXOffset-e.prevScrollX+e.prevPageX,i=window.pageYOffset-e.prevScrollY+e.prevPageY;e.emitter.trigger("pointermove",{origEvent:t,isTouch:e.isTouchDragging,subjectEl:e.subjectEl,pageX:n,pageY:i,deltaX:n-e.origPageX,deltaY:i-e.origPageY})}},this.containerEl=t,this.emitter=new mr,t.addEventListener("mousedown",this.handleMouseDown),t.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),1===(ys+=1)&&window.addEventListener("touchmove",ws,{passive:!1})}return t.prototype.destroy=function(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),(ys-=1)||window.removeEventListener("touchmove",ws,{passive:!1})},t.prototype.tryStart=function(t){var e=this.querySubjectEl(t),n=t.target;return!(!e||this.handleSelector&&!_t(n,this.handleSelector)||(this.subjectEl=e,this.isDragging=!0,this.wasTouchScroll=!1,0))},t.prototype.cleanup=function(){bs=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()},t.prototype.querySubjectEl=function(t){return this.selector?_t(t.target,this.selector):this.containerEl},t.prototype.shouldIgnoreMouse=function(){return vs||this.isTouchDragging},t.prototype.cancelTouchScroll=function(){this.isDragging&&(bs=!0)},t.prototype.initScrollWatch=function(t){this.shouldWatchScroll&&(this.recordCoords(t),window.addEventListener("scroll",this.handleScroll,!0))},t.prototype.recordCoords=function(t){this.shouldWatchScroll&&(this.prevPageX=t.pageX,this.prevPageY=t.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)},t.prototype.destroyScrollWatch=function(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)},t.prototype.createEventFromMouse=function(t,e){var n=0,i=0;return e?(this.origPageX=t.pageX,this.origPageY=t.pageY):(n=t.pageX-this.origPageX,i=t.pageY-this.origPageY),{origEvent:t,isTouch:!1,subjectEl:this.subjectEl,pageX:t.pageX,pageY:t.pageY,deltaX:n,deltaY:i}},t.prototype.createEventFromTouch=function(t,e){var n,i,r=t.touches,o=0,l=0;return r&&r.length?(n=r[0].pageX,i=r[0].pageY):(n=t.pageX,i=t.pageY),e?(this.origPageX=n,this.origPageY=i):(o=n-this.origPageX,l=i-this.origPageY),{origEvent:t,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:i,deltaX:o,deltaY:l}},t}();function ws(t){bs&&t.preventDefault()}var xs=function(){function t(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}return t.prototype.start=function(t,e,n){this.sourceEl=t,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=e-window.pageXOffset,this.origScreenY=n-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()},t.prototype.handleMove=function(t,e){this.deltaX=t-window.pageXOffset-this.origScreenX,this.deltaY=e-window.pageYOffset-this.origScreenY,this.updateElPosition()},t.prototype.setIsVisible=function(t){t?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=t,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=t)},t.prototype.stop=function(t,e){var n=this,i=function(){n.cleanup(),e()};t&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(i,this.revertDuration):setTimeout(i,0)},t.prototype.doRevertAnimation=function(t,e){var n=this.mirrorEl,i=this.sourceEl.getBoundingClientRect();n.style.transition="top "+e+"ms,left "+e+"ms",St(n,{left:i.left,top:i.top}),Ot(n,(function(){n.style.transition="",t()}))},t.prototype.cleanup=function(){this.mirrorEl&&(bt(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null},t.prototype.updateElPosition=function(){this.sourceEl&&this.isVisible&&St(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})},t.prototype.getMirrorEl=function(){var t=this.sourceElRect,e=this.mirrorEl;return e||((e=this.mirrorEl=this.sourceEl.cloneNode(!0)).classList.add("fc-unselectable"),e.classList.add("fc-event-dragging"),St(e,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:t.right-t.left,height:t.bottom-t.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(e)),e},t}(),Es=function(t){function e(e,n){var i=t.call(this)||this;return i.handleScroll=function(){i.scrollTop=i.scrollController.getScrollTop(),i.scrollLeft=i.scrollController.getScrollLeft(),i.handleScrollChange()},i.scrollController=e,i.doesListening=n,i.scrollTop=i.origScrollTop=e.getScrollTop(),i.scrollLeft=i.origScrollLeft=e.getScrollLeft(),i.scrollWidth=e.getScrollWidth(),i.scrollHeight=e.getScrollHeight(),i.clientWidth=e.getClientWidth(),i.clientHeight=e.getClientHeight(),i.clientRect=i.computeClientRect(),i.doesListening&&i.getEventTarget().addEventListener("scroll",i.handleScroll),i}return n(e,t),e.prototype.destroy=function(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)},e.prototype.getScrollTop=function(){return this.scrollTop},e.prototype.getScrollLeft=function(){return this.scrollLeft},e.prototype.setScrollTop=function(t){this.scrollController.setScrollTop(t),this.doesListening||(this.scrollTop=Math.max(Math.min(t,this.getMaxScrollTop()),0),this.handleScrollChange())},e.prototype.setScrollLeft=function(t){this.scrollController.setScrollLeft(t),this.doesListening||(this.scrollLeft=Math.max(Math.min(t,this.getMaxScrollLeft()),0),this.handleScrollChange())},e.prototype.getClientWidth=function(){return this.clientWidth},e.prototype.getClientHeight=function(){return this.clientHeight},e.prototype.getScrollWidth=function(){return this.scrollWidth},e.prototype.getScrollHeight=function(){return this.scrollHeight},e.prototype.handleScrollChange=function(){},e}(yr),Ss=function(t){function e(e,n){return t.call(this,new br(e),n)||this}return n(e,t),e.prototype.getEventTarget=function(){return this.scrollController.el},e.prototype.computeClientRect=function(){return hr(this.scrollController.el)},e}(Es),Cs=function(t){function e(e){return t.call(this,new _r,e)||this}return n(e,t),e.prototype.getEventTarget=function(){return window},e.prototype.computeClientRect=function(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}},e.prototype.handleScrollChange=function(){this.clientRect=this.computeClientRect()},e}(Es),Ms="function"==typeof performance?performance.now:Date.now,ks=function(){function t(){var t=this;this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=function(){if(t.isAnimating){var e=t.computeBestEdge(t.pointerScreenX+window.pageXOffset,t.pointerScreenY+window.pageYOffset);if(e){var n=Ms();t.handleSide(e,(n-t.msSinceRequest)/1e3),t.requestAnimation(n)}else t.isAnimating=!1}}}return t.prototype.start=function(t,e,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(t,e))},t.prototype.handleMove=function(t,e){if(this.isEnabled){var n=t-window.pageXOffset,i=e-window.pageYOffset,r=null===this.pointerScreenY?0:i-this.pointerScreenY,o=null===this.pointerScreenX?0:n-this.pointerScreenX;r<0?this.everMovedUp=!0:r>0&&(this.everMovedDown=!0),o<0?this.everMovedLeft=!0:o>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=i,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Ms()))}},t.prototype.stop=function(){if(this.isEnabled){this.isAnimating=!1;for(var t=0,e=this.scrollCaches;t<e.length;t++)e[t].destroy();this.scrollCaches=null}},t.prototype.requestAnimation=function(t){this.msSinceRequest=t,requestAnimationFrame(this.animate)},t.prototype.handleSide=function(t,e){var n=t.scrollCache,i=this.edgeThreshold,r=i-t.distance,o=r*r/(i*i)*this.maxVelocity*e,l=1;switch(t.name){case"left":l=-1;case"right":n.setScrollLeft(n.getScrollLeft()+o*l);break;case"top":l=-1;case"bottom":n.setScrollTop(n.getScrollTop()+o*l)}},t.prototype.computeBestEdge=function(t,e){for(var n=this.edgeThreshold,i=null,r=0,o=this.scrollCaches||[];r<o.length;r++){var l=o[r],s=l.clientRect,a=t-s.left,c=s.right-t,u=e-s.top,d=s.bottom-e;a>=0&&c>=0&&u>=0&&d>=0&&(u<=n&&this.everMovedUp&&l.canScrollUp()&&(!i||i.distance>u)&&(i={scrollCache:l,name:"top",distance:u}),d<=n&&this.everMovedDown&&l.canScrollDown()&&(!i||i.distance>d)&&(i={scrollCache:l,name:"bottom",distance:d}),a<=n&&this.everMovedLeft&&l.canScrollLeft()&&(!i||i.distance>a)&&(i={scrollCache:l,name:"left",distance:a}),c<=n&&this.everMovedRight&&l.canScrollRight()&&(!i||i.distance>c)&&(i={scrollCache:l,name:"right",distance:c}))}return i},t.prototype.buildCaches=function(t){return this.queryScrollEls(t).map((function(t){return t===window?new Cs(!1):new Ss(t,!1)}))},t.prototype.queryScrollEls=function(t){for(var e=[],n=0,i=this.scrollQuery;n<i.length;n++){var r=i[n];"object"==typeof r?e.push(r):e.push.apply(e,Array.prototype.slice.call(kt(t).querySelectorAll(r)))}return e},t}(),Ds=function(t){function e(e,n){var i=t.call(this,e)||this;i.containerEl=e,i.delay=null,i.minDistance=0,i.touchScrollAllowed=!0,i.mirrorNeedsRevert=!1,i.isInteracting=!1,i.isDragging=!1,i.isDelayEnded=!1,i.isDistanceSurpassed=!1,i.delayTimeoutId=null,i.onPointerDown=function(t){i.isDragging||(i.isInteracting=!0,i.isDelayEnded=!1,i.isDistanceSurpassed=!1,Bt(document.body),Vt(document.body),t.isTouch||t.origEvent.preventDefault(),i.emitter.trigger("pointerdown",t),i.isInteracting&&!i.pointer.shouldIgnoreMove&&(i.mirror.setIsVisible(!1),i.mirror.start(t.subjectEl,t.pageX,t.pageY),i.startDelay(t),i.minDistance||i.handleDistanceSurpassed(t)))},i.onPointerMove=function(t){if(i.isInteracting){if(i.emitter.trigger("pointermove",t),!i.isDistanceSurpassed){var e=i.minDistance,n=t.deltaX,r=t.deltaY;n*n+r*r>=e*e&&i.handleDistanceSurpassed(t)}i.isDragging&&("scroll"!==t.origEvent.type&&(i.mirror.handleMove(t.pageX,t.pageY),i.autoScroller.handleMove(t.pageX,t.pageY)),i.emitter.trigger("dragmove",t))}},i.onPointerUp=function(t){i.isInteracting&&(i.isInteracting=!1,jt(document.body),Wt(document.body),i.emitter.trigger("pointerup",t),i.isDragging&&(i.autoScroller.stop(),i.tryStopDrag(t)),i.delayTimeoutId&&(clearTimeout(i.delayTimeoutId),i.delayTimeoutId=null))};var r=i.pointer=new _s(e);return r.emitter.on("pointerdown",i.onPointerDown),r.emitter.on("pointermove",i.onPointerMove),r.emitter.on("pointerup",i.onPointerUp),n&&(r.selector=n),i.mirror=new xs,i.autoScroller=new ks,i}return n(e,t),e.prototype.destroy=function(){this.pointer.destroy(),this.onPointerUp({})},e.prototype.startDelay=function(t){var e=this;"number"==typeof this.delay?this.delayTimeoutId=setTimeout((function(){e.delayTimeoutId=null,e.handleDelayEnd(t)}),this.delay):this.handleDelayEnd(t)},e.prototype.handleDelayEnd=function(t){this.isDelayEnded=!0,this.tryStartDrag(t)},e.prototype.handleDistanceSurpassed=function(t){this.isDistanceSurpassed=!0,this.tryStartDrag(t)},e.prototype.tryStartDrag=function(t){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(t.pageX,t.pageY,this.containerEl),this.emitter.trigger("dragstart",t),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))},e.prototype.tryStopDrag=function(t){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,t))},e.prototype.stopDrag=function(t){this.isDragging=!1,this.emitter.trigger("dragend",t)},e.prototype.setIgnoreMove=function(t){this.pointer.shouldIgnoreMove=t},e.prototype.setMirrorIsVisible=function(t){this.mirror.setIsVisible(t)},e.prototype.setMirrorNeedsRevert=function(t){this.mirrorNeedsRevert=t},e.prototype.setAutoScrollEnabled=function(t){this.autoScroller.isEnabled=t},e}(Xo),Ts=function(){function t(t){this.origRect=pr(t),this.scrollCaches=fr(t).map((function(t){return new Ss(t,!0)}))}return t.prototype.destroy=function(){for(var t=0,e=this.scrollCaches;t<e.length;t++)e[t].destroy()},t.prototype.computeLeft=function(){for(var t=this.origRect.left,e=0,n=this.scrollCaches;e<n.length;e++){var i=n[e];t+=i.origScrollLeft-i.getScrollLeft()}return t},t.prototype.computeTop=function(){for(var t=this.origRect.top,e=0,n=this.scrollCaches;e<n.length;e++){var i=n[e];t+=i.origScrollTop-i.getScrollTop()}return t},t.prototype.isWithinClipping=function(t,e){for(var n,i={left:t,top:e},r=0,o=this.scrollCaches;r<o.length;r++){var l=o[r];if(void 0,"HTML"!==(n=l.getEventTarget().tagName)&&"BODY"!==n&&!$i(i,l.clientRect))return!1}return!0},t}(),Ls=function(){function t(t,e){var n=this;this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=function(t){var e=n.dragging;n.initialHit=null,n.movingHit=null,n.finalHit=null,n.prepareHits(),n.processFirstCoord(t),n.initialHit||!n.requireInitial?(e.setIgnoreMove(!1),n.emitter.trigger("pointerdown",t)):e.setIgnoreMove(!0)},this.handleDragStart=function(t){n.emitter.trigger("dragstart",t),n.handleMove(t,!0)},this.handleDragMove=function(t){n.emitter.trigger("dragmove",t),n.handleMove(t)},this.handlePointerUp=function(t){n.releaseHits(),n.emitter.trigger("pointerup",t)},this.handleDragEnd=function(t){n.movingHit&&n.emitter.trigger("hitupdate",null,!0,t),n.finalHit=n.movingHit,n.movingHit=null,n.emitter.trigger("dragend",t)},this.droppableStore=e,t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragstart",this.handleDragStart),t.emitter.on("dragmove",this.handleDragMove),t.emitter.on("pointerup",this.handlePointerUp),t.emitter.on("dragend",this.handleDragEnd),this.dragging=t,this.emitter=new mr}return t.prototype.processFirstCoord=function(t){var e,n={left:t.pageX,top:t.pageY},i=n,r=t.subjectEl;r instanceof HTMLElement&&(i=Gi(i,e=pr(r)));var o=this.initialHit=this.queryHitForOffset(i.left,i.top);if(o){if(this.useSubjectCenter&&e){var l=qi(e,o.rect);l&&(i=Zi(l))}this.coordAdjust=Ki(i,n)}else this.coordAdjust={left:0,top:0}},t.prototype.handleMove=function(t,e){var n=this.queryHitForOffset(t.pageX+this.coordAdjust.left,t.pageY+this.coordAdjust.top);!e&&As(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,t))},t.prototype.prepareHits=function(){this.offsetTrackers=we(this.droppableStore,(function(t){return t.component.prepareHits(),new Ts(t.el)}))},t.prototype.releaseHits=function(){var t=this.offsetTrackers;for(var e in t)t[e].destroy();this.offsetTrackers={}},t.prototype.queryHitForOffset=function(t,e){var n=this.droppableStore,i=this.offsetTrackers,r=null;for(var o in n){var l=n[o].component,s=i[o];if(s&&s.isWithinClipping(t,e)){var a=s.computeLeft(),c=s.computeTop(),u=t-a,d=e-c,h=s.origRect,p=h.right-h.left,f=h.bottom-h.top;if(u>=0&&u<p&&d>=0&&d<f){var g=l.queryHit(u,d,p,f);g&&$n(g.dateProfile.activeRange,g.dateSpan.range)&&(!r||g.layer>r.layer)&&(g.componentId=o,g.context=l.context,g.rect.left+=a,g.rect.right+=a,g.rect.top+=c,g.rect.bottom+=c,r=g)}}}return r},t}();function As(t,e){return!t&&!e||Boolean(t)===Boolean(e)&&hi(t.dateSpan,e.dateSpan)}function Ps(t,e){for(var n,r,o={},l=0,s=e.pluginHooks.datePointTransforms;l<s.length;l++){var a=s[l];i(o,a(t,e))}return i(o,(n=t,{date:(r=e.dateEnv).toDate(n.range.start),dateStr:r.formatIso(n.range.start,{omitTime:n.allDay}),allDay:n.allDay})),o}var Os=function(t){function e(e){var n=t.call(this,e)||this;n.handlePointerDown=function(t){var e=n.dragging,i=t.origEvent.target;e.setIgnoreMove(!n.component.isValidDateDownEl(i))},n.handleDragEnd=function(t){var e=n.component;if(!n.dragging.pointer.wasTouchScroll){var r=n.hitDragging,o=r.initialHit,l=r.finalHit;if(o&&l&&As(o,l)){var s=e.context,a=i(i({},Ps(o.dateSpan,s)),{dayEl:o.dayEl,jsEvent:t.origEvent,view:s.viewApi||s.calendarApi.view});s.emitter.trigger("dateClick",a)}}},n.dragging=new Ds(e.el),n.dragging.autoScroller.isEnabled=!1;var r=n.hitDragging=new Ls(n.dragging,Zo(e));return r.emitter.on("pointerdown",n.handlePointerDown),r.emitter.on("dragend",n.handleDragEnd),n}return n(e,t),e.prototype.destroy=function(){this.dragging.destroy()},e}(qo),Is=function(t){function e(e){var n=t.call(this,e)||this;n.dragSelection=null,n.handlePointerDown=function(t){var e=n,i=e.component,r=e.dragging,o=i.context.options.selectable&&i.isValidDateDownEl(t.origEvent.target);r.setIgnoreMove(!o),r.delay=t.isTouch?function(t){var e=t.context.options,n=e.selectLongPressDelay;return null==n&&(n=e.longPressDelay),n}(i):null},n.handleDragStart=function(t){n.component.context.calendarApi.unselect(t)},n.handleHitUpdate=function(t,e){var r=n.component.context,o=null,l=!1;if(t){var s=n.hitDragging.initialHit;t.componentId===s.componentId&&n.isHitComboAllowed&&!n.isHitComboAllowed(s,t)||(o=function(t,e,n){var r=t.dateSpan,o=e.dateSpan,l=[r.range.start,r.range.end,o.range.start,o.range.end];l.sort(Kt);for(var s={},a=0,c=n;a<c.length;a++){var u=(0,c[a])(t,e);if(!1===u)return null;u&&i(s,u)}return s.range={start:l[0],end:l[3]},s.allDay=r.allDay,s}(s,t,r.pluginHooks.dateSelectionTransformers)),o&&Cl(o,t.dateProfile,r)||(l=!0,o=null)}o?r.dispatch({type:"SELECT_DATES",selection:o}):e||r.dispatch({type:"UNSELECT_DATES"}),l?Ft():Ht(),e||(n.dragSelection=o)},n.handlePointerUp=function(t){n.dragSelection&&(mi(n.dragSelection,t,n.component.context),n.dragSelection=null)};var r=e.component.context.options,o=n.dragging=new Ds(e.el);o.touchScrollAllowed=!1,o.minDistance=r.selectMinDistance||0,o.autoScroller.isEnabled=r.dragScroll;var l=n.hitDragging=new Ls(n.dragging,Zo(e));return l.emitter.on("pointerdown",n.handlePointerDown),l.emitter.on("dragstart",n.handleDragStart),l.emitter.on("hitupdate",n.handleHitUpdate),l.emitter.on("pointerup",n.handlePointerUp),n}return n(e,t),e.prototype.destroy=function(){this.dragging.destroy()},e}(qo),Rs=function(t){function e(n){var r=t.call(this,n)||this;r.subjectEl=null,r.subjectSeg=null,r.isDragging=!1,r.eventRange=null,r.relevantEvents=null,r.receivingContext=null,r.validMutation=null,r.mutatedRelevantEvents=null,r.handlePointerDown=function(t){var e=t.origEvent.target,n=r,i=n.component,o=n.dragging,l=o.mirror,s=i.context.options,a=i.context;r.subjectEl=t.subjectEl;var c=r.subjectSeg=Xn(t.subjectEl),u=(r.eventRange=c.eventRange).instance.instanceId;r.relevantEvents=wn(a.getCurrentData().eventStore,u),o.minDistance=t.isTouch?0:s.eventDragMinDistance,o.delay=t.isTouch&&u!==i.props.eventSelection?function(t){var e=t.context.options,n=e.eventLongPressDelay;return null==n&&(n=e.longPressDelay),n}(i):null,s.fixedMirrorParent?l.parentNode=s.fixedMirrorParent:l.parentNode=_t(e,".fc"),l.revertDuration=s.dragRevertDuration;var d=i.isValidSegDownEl(e)&&!_t(e,".fc-event-resizer");o.setIgnoreMove(!d),r.isDragging=d&&t.subjectEl.classList.contains("fc-event-draggable")},r.handleDragStart=function(t){var e=r.component.context,n=r.eventRange,i=n.instance.instanceId;t.isTouch?i!==r.component.props.eventSelection&&e.dispatch({type:"SELECT_EVENT",eventInstanceId:i}):e.dispatch({type:"UNSELECT_EVENT"}),r.isDragging&&(e.calendarApi.unselect(t),e.emitter.trigger("eventDragStart",{el:r.subjectEl,event:new Di(e,n.def,n.instance),jsEvent:t.origEvent,view:e.viewApi}))},r.handleHitUpdate=function(t,e){if(r.isDragging){var n=r.relevantEvents,i=r.hitDragging.initialHit,o=r.component.context,l=null,s=null,a=null,c=!1,u={affectedEvents:n,mutatedEvents:{defs:{},instances:{}},isEvent:!0};if(t){var d=(l=t.context).options;o===l||d.editable&&d.droppable?(s=function(t,e,n){var i=t.dateSpan,r=e.dateSpan,o=i.range.start,l=r.range.start,s={};i.allDay!==r.allDay&&(s.allDay=r.allDay,s.hasEnd=e.context.options.allDayMaintainDuration,r.allDay&&(o=ae(o)));var a=Bn(o,l,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);a.milliseconds&&(s.allDay=!1);for(var c={datesDelta:a,standardProps:s},u=0,d=n;u<d.length;u++)(0,d[u])(c,t,e);return c}(i,t,l.getCurrentData().pluginHooks.eventDragMutationMassagers))&&(a=bi(n,l.getCurrentData().eventUiBases,s,l),u.mutatedEvents=a,Sl(u,t.dateProfile,l)||(c=!0,s=null,a=null,u.mutatedEvents={defs:{},instances:{}})):l=null}r.displayDrag(l,u),c?Ft():Ht(),e||(o===l&&As(i,t)&&(s=null),r.dragging.setMirrorNeedsRevert(!s),r.dragging.setMirrorIsVisible(!t||!kt(r.subjectEl).querySelector(".fc-event-mirror")),r.receivingContext=l,r.validMutation=s,r.mutatedRelevantEvents=a)}},r.handlePointerUp=function(){r.isDragging||r.cleanup()},r.handleDragEnd=function(t){if(r.isDragging){var e=r.component.context,n=e.viewApi,o=r,l=o.receivingContext,s=o.validMutation,a=r.eventRange.def,c=r.eventRange.instance,u=new Di(e,a,c),d=r.relevantEvents,h=r.mutatedRelevantEvents,p=r.hitDragging.finalHit;if(r.clearDrag(),e.emitter.trigger("eventDragStop",{el:r.subjectEl,event:u,jsEvent:t.origEvent,view:n}),s){if(l===e){var f=new Di(e,h.defs[a.defId],c?h.instances[c.instanceId]:null);e.dispatch({type:"MERGE_EVENTS",eventStore:h});for(var g={oldEvent:u,event:f,relatedEvents:Li(h,e,c),revert:function(){e.dispatch({type:"MERGE_EVENTS",eventStore:d})}},m={},v=0,y=e.getCurrentData().pluginHooks.eventDropTransformers;v<y.length;v++){var b=y[v];i(m,b(s,e))}e.emitter.trigger("eventDrop",i(i(i({},g),m),{el:t.subjectEl,delta:s.datesDelta,jsEvent:t.origEvent,view:n})),e.emitter.trigger("eventChange",g)}else if(l){var _={event:u,relatedEvents:Li(d,e,c),revert:function(){e.dispatch({type:"MERGE_EVENTS",eventStore:d})}};e.emitter.trigger("eventLeave",i(i({},_),{draggedEl:t.subjectEl,view:n})),e.dispatch({type:"REMOVE_EVENTS",eventStore:d}),e.emitter.trigger("eventRemove",_);var w=h.defs[a.defId],x=h.instances[c.instanceId],E=new Di(l,w,x);l.dispatch({type:"MERGE_EVENTS",eventStore:h});var S={event:E,relatedEvents:Li(h,l,x),revert:function(){l.dispatch({type:"REMOVE_EVENTS",eventStore:h})}};l.emitter.trigger("eventAdd",S),t.isTouch&&l.dispatch({type:"SELECT_EVENT",eventInstanceId:c.instanceId}),l.emitter.trigger("drop",i(i({},Ps(p.dateSpan,l)),{draggedEl:t.subjectEl,jsEvent:t.origEvent,view:p.context.viewApi})),l.emitter.trigger("eventReceive",i(i({},S),{draggedEl:t.subjectEl,view:p.context.viewApi}))}}else e.emitter.trigger("_noEventDrop")}r.cleanup()};var o=r.component.context.options,l=r.dragging=new Ds(n.el);l.pointer.selector=e.SELECTOR,l.touchScrollAllowed=!1,l.autoScroller.isEnabled=o.dragScroll;var s=r.hitDragging=new Ls(r.dragging,Ko);return s.useSubjectCenter=n.useEventCenter,s.emitter.on("pointerdown",r.handlePointerDown),s.emitter.on("dragstart",r.handleDragStart),s.emitter.on("hitupdate",r.handleHitUpdate),s.emitter.on("pointerup",r.handlePointerUp),s.emitter.on("dragend",r.handleDragEnd),r}return n(e,t),e.prototype.destroy=function(){this.dragging.destroy()},e.prototype.displayDrag=function(t,e){var n=this.component.context,i=this.receivingContext;i&&i!==t&&(i===n?i.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:e.affectedEvents,mutatedEvents:{defs:{},instances:{}},isEvent:!0}}):i.dispatch({type:"UNSET_EVENT_DRAG"})),t&&t.dispatch({type:"SET_EVENT_DRAG",state:e})},e.prototype.clearDrag=function(){var t=this.component.context,e=this.receivingContext;e&&e.dispatch({type:"UNSET_EVENT_DRAG"}),t!==e&&t.dispatch({type:"UNSET_EVENT_DRAG"})},e.prototype.cleanup=function(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null},e.SELECTOR=".fc-event-draggable, .fc-event-resizable",e}(qo),Ns=function(t){function e(e){var n=t.call(this,e)||this;n.draggingSegEl=null,n.draggingSeg=null,n.eventRange=null,n.relevantEvents=null,n.validMutation=null,n.mutatedRelevantEvents=null,n.handlePointerDown=function(t){var e=n.component,i=Xn(n.querySegEl(t)),r=n.eventRange=i.eventRange;n.dragging.minDistance=e.context.options.eventDragMinDistance,n.dragging.setIgnoreMove(!n.component.isValidSegDownEl(t.origEvent.target)||t.isTouch&&n.component.props.eventSelection!==r.instance.instanceId)},n.handleDragStart=function(t){var e=n.component.context,i=n.eventRange;n.relevantEvents=wn(e.getCurrentData().eventStore,n.eventRange.instance.instanceId);var r=n.querySegEl(t);n.draggingSegEl=r,n.draggingSeg=Xn(r),e.calendarApi.unselect(),e.emitter.trigger("eventResizeStart",{el:r,event:new Di(e,i.def,i.instance),jsEvent:t.origEvent,view:e.viewApi})},n.handleHitUpdate=function(t,e,i){var r=n.component.context,o=n.relevantEvents,l=n.hitDragging.initialHit,s=n.eventRange.instance,a=null,c=null,u=!1,d={affectedEvents:o,mutatedEvents:{defs:{},instances:{}},isEvent:!0};t&&(t.componentId===l.componentId&&n.isHitComboAllowed&&!n.isHitComboAllowed(l,t)||(a=function(t,e,n,i){var r=t.context.dateEnv,o=Bn(t.dateSpan.range.start,e.dateSpan.range.start,r,t.largeUnit);if(n){if(r.add(i.start,o)<i.end)return{startDelta:o}}else if(r.add(i.end,o)>i.start)return{endDelta:o};return null}(l,t,i.subjectEl.classList.contains("fc-event-resizer-start"),s.range))),a&&(c=bi(o,r.getCurrentData().eventUiBases,a,r),d.mutatedEvents=c,Sl(d,t.dateProfile,r)||(u=!0,a=null,c=null,d.mutatedEvents=null)),c?r.dispatch({type:"SET_EVENT_RESIZE",state:d}):r.dispatch({type:"UNSET_EVENT_RESIZE"}),u?Ft():Ht(),e||(a&&As(l,t)&&(a=null),n.validMutation=a,n.mutatedRelevantEvents=c)},n.handleDragEnd=function(t){var e=n.component.context,r=n.eventRange.def,o=n.eventRange.instance,l=new Di(e,r,o),s=n.relevantEvents,a=n.mutatedRelevantEvents;if(e.emitter.trigger("eventResizeStop",{el:n.draggingSegEl,event:l,jsEvent:t.origEvent,view:e.viewApi}),n.validMutation){var c=new Di(e,a.defs[r.defId],o?a.instances[o.instanceId]:null);e.dispatch({type:"MERGE_EVENTS",eventStore:a});var u={oldEvent:l,event:c,relatedEvents:Li(a,e,o),revert:function(){e.dispatch({type:"MERGE_EVENTS",eventStore:s})}};e.emitter.trigger("eventResize",i(i({},u),{el:n.draggingSegEl,startDelta:n.validMutation.startDelta||Oe(0),endDelta:n.validMutation.endDelta||Oe(0),jsEvent:t.origEvent,view:e.viewApi})),e.emitter.trigger("eventChange",u)}else e.emitter.trigger("_noEventResize");n.draggingSeg=null,n.relevantEvents=null,n.validMutation=null};var r=e.component,o=n.dragging=new Ds(e.el);o.pointer.selector=".fc-event-resizer",o.touchScrollAllowed=!1,o.autoScroller.isEnabled=r.context.options.dragScroll;var l=n.hitDragging=new Ls(n.dragging,Zo(e));return l.emitter.on("pointerdown",n.handlePointerDown),l.emitter.on("dragstart",n.handleDragStart),l.emitter.on("hitupdate",n.handleHitUpdate),l.emitter.on("dragend",n.handleDragEnd),n}return n(e,t),e.prototype.destroy=function(){this.dragging.destroy()},e.prototype.querySegEl=function(t){return _t(t.subjectEl,".fc-event")},e}(qo),zs=function(){function t(t){var e=this;this.context=t,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=function(t){t.jsEvent&&(e.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=function(t){var n=e.context.options.unselectCancel,i=Mt(t.origEvent);e.matchesCancel=!!_t(i,n),e.matchesEvent=!!_t(i,Rs.SELECTOR)},this.onDocumentPointerUp=function(t){var n=e.context,i=e.documentPointer,r=n.getCurrentData();if(!i.wasTouchScroll){if(r.dateSelection&&!e.isRecentPointerDateSelect){var o=n.options.unselectAuto;!o||o&&e.matchesCancel||n.calendarApi.unselect(t)}r.eventSelection&&!e.matchesEvent&&n.dispatch({type:"UNSELECT_EVENT"})}e.isRecentPointerDateSelect=!1};var n=this.documentPointer=new _s(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),t.emitter.on("select",this.onSelect)}return t.prototype.destroy=function(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()},t}(),Fs={fixedMirrorParent:yn},Hs={dateClick:yn,eventDragStart:yn,eventDragStop:yn,eventDrop:yn,eventResizeStart:yn,eventResizeStop:yn,eventResize:yn,drop:yn,eventReceive:yn,eventLeave:yn},Bs=function(){function t(t,e){var n=this;this.receivingContext=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=function(t){n.dragMeta=n.buildDragMeta(t.subjectEl)},this.handleHitUpdate=function(t,e,r){var o=n.hitDragging.dragging,l=null,s=null,a=!1,c={affectedEvents:{defs:{},instances:{}},mutatedEvents:{defs:{},instances:{}},isEvent:n.dragMeta.create};t&&(l=t.context,n.canDropElOnCalendar(r.subjectEl,l)&&(s=function(t,e,n){for(var r=i({},e.leftoverProps),o=0,l=n.pluginHooks.externalDefTransforms;o<l.length;o++){var s=l[o];i(r,s(t,e))}var a=In(r,n),c=Nn(a.refined,a.extra,e.sourceId,t.allDay,n.options.forceEventDuration||Boolean(e.duration),n),u=t.range.start;t.allDay&&e.startTime&&(u=n.dateEnv.add(u,e.startTime));var d=e.duration?n.dateEnv.add(u,e.duration):yi(t.allDay,u,n);return{def:c,instance:ve(c.defId,{start:u,end:d})}}(t.dateSpan,n.dragMeta,l),c.mutatedEvents=_n(s),(a=!Sl(c,t.dateProfile,l))&&(c.mutatedEvents={defs:{},instances:{}},s=null))),n.displayDrag(l,c),o.setMirrorIsVisible(e||!s||!document.querySelector(".fc-event-mirror")),a?Ft():Ht(),e||(o.setMirrorNeedsRevert(!s),n.receivingContext=l,n.droppableEvent=s)},this.handleDragEnd=function(t){var e=n,r=e.receivingContext,o=e.droppableEvent;if(n.clearDrag(),r&&o){var l=n.hitDragging.finalHit,s=l.context.viewApi,a=n.dragMeta;if(r.emitter.trigger("drop",i(i({},Ps(l.dateSpan,r)),{draggedEl:t.subjectEl,jsEvent:t.origEvent,view:s})),a.create){var c=_n(o);r.dispatch({type:"MERGE_EVENTS",eventStore:c}),t.isTouch&&r.dispatch({type:"SELECT_EVENT",eventInstanceId:o.instance.instanceId}),r.emitter.trigger("eventReceive",{event:new Di(r,o.def,o.instance),relatedEvents:[],revert:function(){r.dispatch({type:"REMOVE_EVENTS",eventStore:c})},draggedEl:t.subjectEl,view:s})}}n.receivingContext=null,n.droppableEvent=null};var r=this.hitDragging=new Ls(t,Ko);r.requireInitial=!1,r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("dragend",this.handleDragEnd),this.suppliedDragMeta=e}return t.prototype.buildDragMeta=function(t){return"object"==typeof this.suppliedDragMeta?tl(this.suppliedDragMeta):"function"==typeof this.suppliedDragMeta?tl(this.suppliedDragMeta(t)):tl((e=function(t,e){var n=Qo.dataAttrPrefix,i=(n?n+"-":"")+"event";return t.getAttribute("data-"+i)||""}(t))?JSON.parse(e):{create:!1});var e},t.prototype.displayDrag=function(t,e){var n=this.receivingContext;n&&n!==t&&n.dispatch({type:"UNSET_EVENT_DRAG"}),t&&t.dispatch({type:"SET_EVENT_DRAG",state:e})},t.prototype.clearDrag=function(){this.receivingContext&&this.receivingContext.dispatch({type:"UNSET_EVENT_DRAG"})},t.prototype.canDropElOnCalendar=function(t,e){var n=e.options.dropAccept;return"function"==typeof n?n.call(e.calendarApi,t):"string"!=typeof n||!n||Boolean(wt(t,n))},t}();Qo.dataAttrPrefix="";var js=function(){function t(t,e){var n=this;void 0===e&&(e={}),this.handlePointerDown=function(t){var e=n.dragging,i=n.settings,r=i.minDistance,o=i.longPressDelay;e.minDistance=null!=r?r:t.isTouch?0:un.eventDragMinDistance,e.delay=t.isTouch?null!=o?o:un.longPressDelay:0},this.handleDragStart=function(t){t.isTouch&&n.dragging.delay&&t.subjectEl.classList.contains("fc-event")&&n.dragging.mirror.getMirrorEl().classList.add("fc-event-selected")},this.settings=e;var i=this.dragging=new Ds(t);i.touchScrollAllowed=!1,null!=e.itemSelector&&(i.pointer.selector=e.itemSelector),null!=e.appendTo&&(i.mirror.parentNode=e.appendTo),i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),new Bs(i,e.eventData)}return t.prototype.destroy=function(){this.dragging.destroy()},t}(),Vs=function(t){function e(e){var n=t.call(this,e)||this;n.shouldIgnoreMove=!1,n.mirrorSelector="",n.currentMirrorEl=null,n.handlePointerDown=function(t){n.emitter.trigger("pointerdown",t),n.shouldIgnoreMove||n.emitter.trigger("dragstart",t)},n.handlePointerMove=function(t){n.shouldIgnoreMove||n.emitter.trigger("dragmove",t)},n.handlePointerUp=function(t){n.emitter.trigger("pointerup",t),n.shouldIgnoreMove||n.emitter.trigger("dragend",t)};var i=n.pointer=new _s(e);return i.emitter.on("pointerdown",n.handlePointerDown),i.emitter.on("pointermove",n.handlePointerMove),i.emitter.on("pointerup",n.handlePointerUp),n}return n(e,t),e.prototype.destroy=function(){this.pointer.destroy()},e.prototype.setIgnoreMove=function(t){this.shouldIgnoreMove=t},e.prototype.setMirrorIsVisible=function(t){if(t)this.currentMirrorEl&&(this.currentMirrorEl.style.visibility="",this.currentMirrorEl=null);else{var e=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;e&&(this.currentMirrorEl=e,e.style.visibility="hidden")}},e}(Xo),Ws=function(){function t(t,e){var n=document;t===document||t instanceof Element?(n=t,e=e||{}):e=t||{};var i=this.dragging=new Vs(n);"string"==typeof e.itemSelector?i.pointer.selector=e.itemSelector:n===document&&(i.pointer.selector="[data-event]"),"string"==typeof e.mirrorSelector&&(i.mirrorSelector=e.mirrorSelector),new Bs(i,e.eventData)}return t.prototype.destroy=function(){this.dragging.destroy()},t}(),Us=Br({componentInteractions:[Os,Is,Rs,Ns],calendarInteractions:[zs],elementDraggingImpl:Ds,optionRefiners:Fs,listenerRefiners:Hs}),Ys=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.headerElRef=Cr(),e}return n(e,t),e.prototype.renderSimpleLayout=function(t,e){var n=this.props,i=this.context,r=[],o=$l(i.options);return t&&r.push({type:"header",key:"header",isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),r.push({type:"body",key:"body",liquid:!0,chunk:{content:e}}),Er(Xr,{viewSpec:i.viewSpec},(function(t,e){return Er("div",{ref:t,className:["fc-daygrid"].concat(e).join(" ")},Er(Gl,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:r}))}))},e.prototype.renderHScrollLayout=function(t,e,n,i){var r=this.context.pluginHooks.scrollGridImpl;if(!r)throw new Error("No ScrollGrid implementation");var o=this.props,l=this.context,s=!o.forPrint&&$l(l.options),a=!o.forPrint&&ql(l.options),c=[];return t&&c.push({type:"header",key:"header",isSticky:s,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:e}]}),a&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:Yl}]}),Er(Xr,{viewSpec:l.viewSpec},(function(t,e){return Er("div",{ref:t,className:["fc-daygrid"].concat(e).join(" ")},Er(r,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,colGroups:[{cols:[{span:n,minWidth:i}]}],sections:c}))}))},e}(Hr);function $s(t,e){for(var n=[],i=0;i<e;i+=1)n[i]=[];for(var r=0,o=t;r<o.length;r++){var l=o[r];n[l.row].push(l)}return n}function qs(t,e){for(var n=[],i=0;i<e;i+=1)n[i]=[];for(var r=0,o=t;r<o.length;r++){var l=o[r];n[l.firstCol].push(l)}return n}function Gs(t,e){var n=[];if(t){for(l=0;l<e;l+=1)n[l]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(var i=0,r=t.segs;i<r.length;i++){var o=r[i];n[o.row].segs.push(o)}}else for(var l=0;l<e;l+=1)n[l]=null;return n}var Zs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){var t=this.props,e=or(this.context,t.date);return Er(ts,{date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraHookProps:t.extraHookProps,defaultContent:Ks},(function(n,r){return(r||t.forceDayTop)&&Er("div",{className:"fc-daygrid-day-top",ref:n},Er("a",i({id:t.dayNumberId,className:"fc-daygrid-day-number"},e),r||Er(Mr,null," ")))}))},e}(Rr);function Ks(t){return t.dayNumberText}var Xs=an({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function Qs(t){var e=t.eventRange.ui.display;return"list-item"===e||"auto"===e&&!t.eventRange.def.allDay&&t.firstCol===t.lastCol&&t.isStart&&t.isEnd}var Js=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){var t=this.props;return Er(Kl,i({},t,{extraClassNames:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Xs,defaultDisplayEventEnd:t.defaultDisplayEventEnd,disableResizing:!t.seg.eventRange.def.allDay}))},e}(Rr),ta=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){var t=this.props,e=this.context,n=e.options.eventTimeFormat||Xs,r=oi(t.seg,n,e,!0,t.defaultDisplayEventEnd);return Er(Zl,{seg:t.seg,timeText:r,defaultContent:ea,isDragging:t.isDragging,isResizing:!1,isDateSelecting:!1,isSelected:t.isSelected,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday},(function(n,r,o,l){return Er("a",i({className:["fc-daygrid-event","fc-daygrid-dot-event"].concat(r).join(" "),ref:n},ci(t.seg,e)),l)}))},e}(Rr);function ea(t){return Er(Mr,null,Er("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&Er("div",{className:"fc-event-time"},t.timeText),Er("div",{className:"fc-event-title"},t.event.title||Er(Mr,null," ")))}var na=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.compileSegs=$e(ia),e}return n(e,t),e.prototype.render=function(){var t=this.props,e=this.compileSegs(t.singlePlacements),n=e.allSegs,r=e.invisibleSegs;return Er(us,{dateProfile:t.dateProfile,todayRange:t.todayRange,allDayDate:t.allDayDate,moreCnt:t.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:t.alignmentElRef,alignGridTop:t.alignGridTop,extraDateSpan:t.extraDateSpan,popoverContent:function(){var e=(t.eventDrag?t.eventDrag.affectedInstances:null)||(t.eventResize?t.eventResize.affectedInstances:null)||{};return Er(Mr,null,n.map((function(n){var r=n.eventRange.instance.instanceId;return Er("div",{className:"fc-daygrid-event-harness",key:r,style:{visibility:e[r]?"hidden":""}},Qs(n)?Er(ta,i({seg:n,isDragging:!1,isSelected:r===t.eventSelection,defaultDisplayEventEnd:!1},li(n,t.todayRange))):Er(Js,i({seg:n,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===t.eventSelection,defaultDisplayEventEnd:!1},li(n,t.todayRange))))})))}},(function(t,e,n,r,o,l,s,a){return Er("a",i({ref:t,className:["fc-daygrid-more-link"].concat(e).join(" "),title:l,"aria-expanded":s,"aria-controls":a},It(o)),r)}))},e}(Rr);function ia(t){for(var e=[],n=[],i=0,r=t;i<r.length;i++){var o=r[i];e.push(o.seg),o.isVisible||n.push(o.seg)}return{allSegs:e,invisibleSegs:n}}var ra=an({week:"narrow"}),oa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.rootElRef=Cr(),e.state={dayNumberId:Tt()},e.handleRootEl=function(t){Fr(e.rootElRef,t),Fr(e.props.elRef,t)},e}return n(e,t),e.prototype.render=function(){var t=this,e=t.context,n=t.props,r=t.state,o=t.rootElRef,l=n.date,s=n.dateProfile,a=or(e,l,"week");return Er(ns,{date:l,dateProfile:s,todayRange:n.todayRange,showDayNumber:n.showDayNumber,extraHookProps:n.extraHookProps,elRef:this.handleRootEl},(function(t,e,c,u){return Er("td",i({ref:t,role:"gridcell",className:["fc-daygrid-day"].concat(e,n.extraClassNames||[]).join(" ")},c,n.extraDataAttrs,n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),Er("div",{className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",ref:n.innerElRef},n.showWeekNumber&&Er(ls,{date:l,defaultFormat:ra},(function(t,e,n,r){return Er("a",i({ref:t,className:["fc-daygrid-week-number"].concat(e).join(" ")},a),r)})),!u&&Er(Zs,{date:l,dateProfile:s,showDayNumber:n.showDayNumber,dayNumberId:r.dayNumberId,forceDayTop:n.forceDayTop,todayRange:n.todayRange,extraHookProps:n.extraHookProps}),Er("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,Er("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},Er(na,{allDayDate:l,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:o,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),Er("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}))},e}(Hr);function la(t,e,n,r){if(t.firstCol===e&&t.lastCol===n-1)return t;var o=t.eventRange,l=o.range,s=Wn(l,{start:r[e].date,end:ee(r[n-1].date,1)});return i(i({},t),{firstCol:e,lastCol:n-1,eventRange:{def:o.def,ui:i(i({},o.ui),{durationEditable:!1}),instance:o.instance,range:s},isStart:t.isStart&&s.start.valueOf()===l.start.valueOf(),isEnd:t.isEnd&&s.end.valueOf()===l.end.valueOf()})}var sa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hiddenConsumes=!1,e.forceHidden={},e}return n(e,t),e.prototype.addSegs=function(e){for(var n=this,i=t.prototype.addSegs.call(this,e),r=this.entriesByLevel,o=function(t){return!n.forceHidden[jo(t)]},l=0;l<r.length;l+=1)r[l]=r[l].filter(o);return i},e.prototype.handleInvalidInsertion=function(e,n,r){var o=this.entriesByLevel,l=this.forceHidden,s=e.touchingEntry,a=e.touchingLevel,c=e.touchingLateral;if(this.hiddenConsumes&&s){var u=jo(s);if(!l[u])if(this.allowReslicing){var d=i(i({},s),{span:Uo(s.span,n.span)});l[jo(d)]=!0,o[a][c]=d,this.splitEntry(s,n,r)}else l[u]=!0,r.push(s)}return t.prototype.handleInvalidInsertion.call(this,e,n,r)},e}(Ho),aa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cellElRefs=new Il,e.frameElRefs=new Il,e.fgElRefs=new Il,e.segHarnessRefs=new Il,e.rootElRef=Cr(),e.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},e}return n(e,t),e.prototype.render=function(){var t=this,e=this,n=e.props,i=e.state,r=e.context.options,o=n.cells.length,l=qs(n.businessHourSegs,o),s=qs(n.bgEventSegs,o),a=qs(this.getHighlightSegs(),o),c=qs(this.getMirrorSegs(),o),u=function(t,e,n,i,r,o,l){var s=new sa;s.allowReslicing=!0,s.strictOrder=i,!0===e||!0===n?(s.maxCoord=o,s.hiddenConsumes=!0):"number"==typeof e?s.maxStackCnt=e:"number"==typeof n&&(s.maxStackCnt=n,s.hiddenConsumes=!0);for(var a=[],c=[],u=0;u<t.length;u+=1){var d=r[(C=t[u]).eventRange.instance.instanceId];null!=d?a.push({index:u,thickness:d,span:{start:C.firstCol,end:C.lastCol+1}}):c.push(C)}for(var h=s.addSegs(a),p=function(t,e,n){for(var i=function(t,e){for(var n=[],i=0;i<e;i+=1)n.push([]);for(var r=0,o=t;r<o.length;r++){var l=o[r];for(i=l.span.start;i<l.span.end;i+=1)n[i].push(l)}return n}(t,n.length),r=[],o=[],l=[],s=0;s<n.length;s+=1){for(var a=i[s],c=[],u=0,d=0,h=0,p=a;h<p.length;h++){var f=e[(y=p[h]).index];c.push({seg:la(f,s,s+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:y.levelCoord,marginTop:y.levelCoord-u}),u=y.levelCoord+y.thickness}var g=[];u=0,d=0;for(var m=0,v=a;m<v.length;m++){f=e[(y=v[m]).index];var y,b=y.span.end-y.span.start>1,_=y.span.start===s;d+=y.levelCoord-u,u=y.levelCoord+y.thickness,b?(d+=y.thickness,_&&g.push({seg:la(f,y.span.start,y.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:y.levelCoord,marginTop:0})):_&&(g.push({seg:la(f,y.span.start,y.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:y.levelCoord,marginTop:d}),d=0)}r.push(c),o.push(g),l.push(d)}return{singleColPlacements:r,multiColPlacements:o,leftoverMargins:l}}(s.toRects(),t,l),f=p.singleColPlacements,g=p.multiColPlacements,m=p.leftoverMargins,v=[],y=[],b=0,_=c;b<_.length;b++){g[(C=_[b]).firstCol].push({seg:C,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(var w=C.firstCol;w<=C.lastCol;w+=1)f[w].push({seg:la(C,w,w+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(w=0;w<l.length;w+=1)v.push(0);for(var x=0,E=h;x<E.length;x++){var S=E[x],C=t[S.index],M=S.span;for(g[M.start].push({seg:la(C,M.start,M.end,l),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0}),w=M.start;w<M.end;w+=1)v[w]+=1,f[w].push({seg:la(C,w,w+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(w=0;w<l.length;w+=1)y.push(m[w]);return{singleColPlacements:f,multiColPlacements:g,moreCnts:v,moreMarginTops:y}}(ti(n.fgEventSegs,r.eventOrder),n.dayMaxEvents,n.dayMaxEventRows,r.eventOrderStrict,i.eventInstanceHeights,i.maxContentHeight,n.cells),d=u.singleColPlacements,h=u.multiColPlacements,p=u.moreCnts,f=u.moreMarginTops,g=n.eventDrag&&n.eventDrag.affectedInstances||n.eventResize&&n.eventResize.affectedInstances||{};return Er("tr",{ref:this.rootElRef,role:"row"},n.renderIntro&&n.renderIntro(),n.cells.map((function(e,i){var r=t.renderFgSegs(i,n.forPrint?d[i]:h[i],n.todayRange,g),o=t.renderFgSegs(i,function(t,e){if(!t.length)return[];var n=function(t){for(var e={},n=0,i=t;n<i.length;n++)for(var r=0,o=i[n];r<o.length;r++){var l=o[r];e[l.seg.eventRange.instance.instanceId]=l.absoluteTop}return e}(e);return t.map((function(t){return{seg:t,isVisible:!0,isAbsolute:!0,absoluteTop:n[t.eventRange.instance.instanceId],marginTop:0}}))}(c[i],h),n.todayRange,{},Boolean(n.eventDrag),Boolean(n.eventResize),!1);return Er(oa,{key:e.key,elRef:t.cellElRefs.createRef(e.key),innerElRef:t.frameElRefs.createRef(e.key),dateProfile:n.dateProfile,date:e.date,showDayNumber:n.showDayNumbers,showWeekNumber:n.showWeekNumbers&&0===i,forceDayTop:n.showWeekNumbers,todayRange:n.todayRange,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,extraHookProps:e.extraHookProps,extraDataAttrs:e.extraDataAttrs,extraClassNames:e.extraClassNames,extraDateSpan:e.extraDateSpan,moreCnt:p[i],moreMarginTop:f[i],singlePlacements:d[i],fgContentElRef:t.fgElRefs.createRef(e.key),fgContent:Er(Mr,null,Er(Mr,null,r),Er(Mr,null,o)),bgContent:Er(Mr,null,t.renderFillSegs(a[i],"highlight"),t.renderFillSegs(l[i],"non-business"),t.renderFillSegs(s[i],"bg-event"))})})))},e.prototype.componentDidMount=function(){this.updateSizing(!0)},e.prototype.componentDidUpdate=function(t,e){var n=this.props;this.updateSizing(!Se(t,n))},e.prototype.getHighlightSegs=function(){var t=this.props;return t.eventDrag&&t.eventDrag.segs.length?t.eventDrag.segs:t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:t.dateSelectionSegs},e.prototype.getMirrorSegs=function(){var t=this.props;return t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:[]},e.prototype.renderFgSegs=function(t,e,n,r,o,l,s){var a=this.context,c=this.props.eventSelection,u=this.state.framePositions,d=1===this.props.cells.length,h=o||l||s,p=[];if(u)for(var f=0,g=e;f<g.length;f++){var m=g[f],v=m.seg,y=v.eventRange.instance.instanceId,b=y+":"+t,_=m.isVisible&&!r[y],w=m.isAbsolute,x="",E="";w&&(a.isRtl?(E=0,x=u.lefts[v.lastCol]-u.lefts[v.firstCol]):(x=0,E=u.rights[v.firstCol]-u.rights[v.lastCol])),p.push(Er("div",{className:"fc-daygrid-event-harness"+(w?" fc-daygrid-event-harness-abs":""),key:b,ref:h?null:this.segHarnessRefs.createRef(b),style:{visibility:_?"":"hidden",marginTop:w?"":m.marginTop,top:w?m.absoluteTop:"",left:x,right:E}},Qs(v)?Er(ta,i({seg:v,isDragging:o,isSelected:y===c,defaultDisplayEventEnd:d},li(v,n))):Er(Js,i({seg:v,isDragging:o,isResizing:l,isDateSelecting:s,isSelected:y===c,defaultDisplayEventEnd:d},li(v,n)))))}return p},e.prototype.renderFillSegs=function(t,e){var n=this.context.isRtl,o=this.props.todayRange,l=this.state.framePositions,s=[];if(l)for(var a=0,c=t;a<c.length;a++){var u=c[a],d=n?{right:0,left:l.lefts[u.lastCol]-l.lefts[u.firstCol]}:{left:0,right:l.rights[u.firstCol]-l.rights[u.lastCol]};s.push(Er("div",{key:ai(u.eventRange),className:"fc-daygrid-bg-harness",style:d},"bg-event"===e?Er(rs,i({seg:u},li(u,o))):is(e)))}return Er.apply(void 0,r([Mr,{}],s))},e.prototype.updateSizing=function(t){var e=this.props,n=this.frameElRefs;if(!e.forPrint&&null!==e.clientWidth){if(t){var r=e.cells.map((function(t){return n.currentMap[t.key]}));if(r.length){var o=this.rootElRef.current;this.setState({framePositions:new vr(o,r,!0,!1)})}}var l=this.state.eventInstanceHeights,s=this.queryEventInstanceHeights(),a=!0===e.dayMaxEvents||!0===e.dayMaxEventRows;this.safeSetState({eventInstanceHeights:i(i({},l),s),maxContentHeight:a?this.computeMaxContentHeight():null})}},e.prototype.queryEventInstanceHeights=function(){var t=this.segHarnessRefs.currentMap,e={};for(var n in t){var i=Math.round(t[n].getBoundingClientRect().height),r=n.split(":")[0];e[r]=Math.max(e[r]||0,i)}return e},e.prototype.computeMaxContentHeight=function(){var t=this.props.cells[0].key,e=this.cellElRefs.currentMap[t],n=this.fgElRefs.currentMap[t];return e.getBoundingClientRect().bottom-n.getBoundingClientRect().top},e.prototype.getCellEls=function(){var t=this.cellElRefs.currentMap;return this.props.cells.map((function(e){return t[e.key]}))},e}(Hr);aa.addStateEquality({eventInstanceHeights:Se});var ca=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.splitBusinessHourSegs=$e($s),e.splitBgEventSegs=$e($s),e.splitFgEventSegs=$e($s),e.splitDateSelectionSegs=$e($s),e.splitEventDrag=$e(Gs),e.splitEventResize=$e(Gs),e.rowRefs=new Il,e.handleRootEl=function(t){e.rootEl=t,t?e.context.registerInteractiveComponent(e,{el:t,isHitComboAllowed:e.props.isHitComboAllowed}):e.context.unregisterInteractiveComponent(e)},e}return n(e,t),e.prototype.render=function(){var t=this,e=this.props,n=e.dateProfile,i=e.dayMaxEventRows,r=e.dayMaxEvents,o=e.expandRows,l=e.cells.length,s=this.splitBusinessHourSegs(e.businessHourSegs,l),a=this.splitBgEventSegs(e.bgEventSegs,l),c=this.splitFgEventSegs(e.fgEventSegs,l),u=this.splitDateSelectionSegs(e.dateSelectionSegs,l),d=this.splitEventDrag(e.eventDrag,l),h=this.splitEventResize(e.eventResize,l),p=!0===r||!0===i;return p&&!o&&(p=!1,i=null,r=null),Er("div",{className:["fc-daygrid-body",p?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",o?"":"fc-daygrid-body-natural"].join(" "),ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},Er(ml,{unit:"day"},(function(p,f){return Er(Mr,null,Er("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:o?e.clientHeight:""}},e.colGroupNode,Er("tbody",{role:"presentation"},e.cells.map((function(o,p){return Er(aa,{ref:t.rowRefs.createRef(p),key:o.length?o[0].date.toISOString():p,showDayNumbers:l>1,showWeekNumbers:e.showWeekNumbers,todayRange:f,dateProfile:n,cells:o,renderIntro:e.renderRowIntro,businessHourSegs:s[p],eventSelection:e.eventSelection,bgEventSegs:a[p].filter(ua),fgEventSegs:c[p],dateSelectionSegs:u[p],eventDrag:d[p],eventResize:h[p],dayMaxEvents:r,dayMaxEventRows:i,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint})})))))})))},e.prototype.prepareHits=function(){this.rowPositions=new vr(this.rootEl,this.rowRefs.collect().map((function(t){return t.getCellEls()[0]})),!1,!0),this.colPositions=new vr(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)},e.prototype.queryHit=function(t,e){var n=this.colPositions,r=this.rowPositions,o=n.leftToIndex(t),l=r.topToIndex(e);if(null!=l&&null!=o){var s=this.props.cells[l][o];return{dateProfile:this.props.dateProfile,dateSpan:i({range:this.getCellRange(l,o),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(l,o),rect:{left:n.lefts[o],right:n.rights[o],top:r.tops[l],bottom:r.bottoms[l]},layer:0}}return null},e.prototype.getCellEl=function(t,e){return this.rowRefs.currentMap[t].getCellEls()[e]},e.prototype.getCellRange=function(t,e){var n=this.props.cells[t][e].date;return{start:n,end:ee(n,1)}},e}(Hr);function ua(t){return t.eventRange.def.allDay}var da=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.forceDayIfListItem=!0,e}return n(e,t),e.prototype.sliceRange=function(t,e){return e.sliceRange(t)},e}(xl),ha=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.slicer=new da,e.tableRef=Cr(),e}return n(e,t),e.prototype.render=function(){var t=this.props,e=this.context;return Er(ca,i({ref:this.tableRef},this.slicer.sliceProps(t,t.dateProfile,t.nextDayThreshold,e,t.dayTableModel),{dateProfile:t.dateProfile,cells:t.dayTableModel.cells,colGroupNode:t.colGroupNode,tableMinWidth:t.tableMinWidth,renderRowIntro:t.renderRowIntro,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.showWeekNumbers,expandRows:t.expandRows,headerAlignElRef:t.headerAlignElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint}))},e}(Hr),pa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buildDayTableModel=$e(fa),e.headerRef=Cr(),e.tableRef=Cr(),e}return n(e,t),e.prototype.render=function(){var t=this,e=this.context,n=e.options,i=e.dateProfileGenerator,r=this.props,o=this.buildDayTableModel(r.dateProfile,i),l=n.dayHeaders&&Er(yl,{ref:this.headerRef,dateProfile:r.dateProfile,dates:o.headerDates,datesRepDistinctDays:1===o.rowCnt}),s=function(e){return Er(ha,{ref:t.tableRef,dateProfile:r.dateProfile,dayTableModel:o,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:n.nextDayThreshold,colGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:t.headerElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:r.forPrint})};return n.dayMinWidth?this.renderHScrollLayout(l,s,o.colCnt,n.dayMinWidth):this.renderSimpleLayout(l,s)},e}(Ys);function fa(t,e){var n=new _l(t.renderRange,e);return new wl(n,/year|month|week/.test(t.currentRangeUnit))}var ga=Br({initialView:"dayGridMonth",views:{dayGrid:{component:pa,dateProfileGeneratorClass:function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.buildRenderRange=function(e,n,i){var r,o=this.props.dateEnv,l=t.prototype.buildRenderRange.call(this,e,n,i),s=l.start,a=l.end;return/^(year|month)$/.test(n)&&(s=o.startOfWeek(s),(r=o.startOfWeek(a)).valueOf()!==a.valueOf()&&(a=te(r,1))),this.props.monthMode&&this.props.fixedWeekCount&&(a=te(a,6-Math.ceil(ie(s,a)))),{start:s,end:a}},e}(no)},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),ma=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},e.prototype.getKeysForDateSpan=function(t){return t.allDay?["allDay"]:["timed"]},e.prototype.getKeysForEventDef=function(t){return t.allDay?Zn(t)?["timed","allDay"]:["allDay"]:["timed"]},e}(Ji),va=an({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function ya(t){var e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return Er(Pr.Consumer,null,(function(n){if(!t.isLabeled)return Er("td",{className:e.join(" "),"data-time":t.isoTimeStr});var i=n.dateEnv,r=n.options,o=n.viewApi,l=null==r.slotLabelFormat?va:Array.isArray(r.slotLabelFormat)?an(r.slotLabelFormat[0]):an(r.slotLabelFormat),s={level:0,time:t.time,date:i.toDate(t.date),view:o,text:i.format(t.date,l)};return Er(Wr,{hookProps:s,classNames:r.slotLabelClassNames,content:r.slotLabelContent,defaultContent:ba,didMount:r.slotLabelDidMount,willUnmount:r.slotLabelWillUnmount},(function(n,i,r,o){return Er("td",{ref:n,className:e.concat(i).join(" "),"data-time":t.isoTimeStr},Er("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},Er("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:r},o)))}))}))}function ba(t){return t.text}var _a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){return this.props.slatMetas.map((function(t){return Er("tr",{key:t.key},Er(ya,i({},t)))}))},e}(Rr),wa=an({week:"short"}),xa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.allDaySplitter=new ma,e.headerElRef=Cr(),e.rootElRef=Cr(),e.scrollerElRef=Cr(),e.state={slatCoords:null},e.handleScrollTopRequest=function(t){var n=e.scrollerElRef.current;n&&(n.scrollTop=t)},e.renderHeadAxis=function(t,n){void 0===n&&(n="");var r=e.context.options,o=e.props.dateProfile.renderRange,l=1===re(o.start,o.end)?or(e.context,o.start,"week"):{};return r.weekNumbers&&"day"===t?Er(ls,{date:o.start,defaultFormat:wa},(function(t,e,r,o){return Er("th",{ref:t,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(e).join(" ")},Er("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:n}},Er("a",i({ref:r,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},l),o)))})):Er("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},Er("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},e.renderTableRowAxis=function(t){var n=e.context,i=n.options,r=n.viewApi,o={text:i.allDayText,view:r};return Er(Wr,{hookProps:o,classNames:i.allDayClassNames,content:i.allDayContent,defaultContent:Ea,didMount:i.allDayDidMount,willUnmount:i.allDayWillUnmount},(function(e,n,i,r){return Er("td",{ref:e,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(n).join(" ")},Er("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(null==t?" fc-timegrid-axis-frame-liquid":""),style:{height:t}},Er("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:i},r)))}))},e.handleSlatCoords=function(t){e.setState({slatCoords:t})},e}return n(e,t),e.prototype.renderSimpleLayout=function(t,e,n){var i=this.context,r=this.props,o=[],l=$l(i.options);return t&&o.push({type:"header",key:"header",isSticky:l,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),e&&(o.push({type:"body",key:"all-day",chunk:{content:e}}),o.push({type:"body",key:"all-day-divider",outerContent:Er("tr",{role:"presentation",className:"fc-scrollgrid-section"},Er("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),o.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(i.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),Er(Xr,{viewSpec:i.viewSpec,elRef:this.rootElRef},(function(t,e){return Er("div",{className:["fc-timegrid"].concat(e).join(" "),ref:t},Er(Gl,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[{width:"shrink"}],sections:o}))}))},e.prototype.renderHScrollLayout=function(t,e,n,i,r,o,l){var s=this,a=this.context.pluginHooks.scrollGridImpl;if(!a)throw new Error("No ScrollGrid implementation");var c=this.context,u=this.props,d=!u.forPrint&&$l(c.options),h=!u.forPrint&&ql(c.options),p=[];t&&p.push({type:"header",key:"header",isSticky:d,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(t){return Er("tr",{role:"presentation"},s.renderHeadAxis("day",t.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}]}),e&&(p.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(t){return Er("tr",{role:"presentation"},s.renderTableRowAxis(t.rowSyncHeights[0]))}},{key:"cols",content:e}]}),p.push({key:"all-day-divider",type:"body",outerContent:Er("tr",{role:"presentation",className:"fc-scrollgrid-section"},Er("td",{colSpan:2,className:"fc-timegrid-divider "+c.theme.getClass("tableCellShaded")}))}));var f=c.options.nowIndicator;return p.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(c.options.expandRows),chunks:[{key:"axis",content:function(t){return Er("div",{className:"fc-timegrid-axis-chunk"},Er("table",{"aria-hidden":!0,style:{height:t.expandRows?t.clientHeight:""}},t.tableColGroupNode,Er("tbody",null,Er(_a,{slatMetas:o}))),Er("div",{className:"fc-timegrid-now-indicator-container"},Er(ml,{unit:f?"minute":"day"},(function(t){var e=f&&l&&l.safeComputeTop(t);return"number"==typeof e?Er(Ql,{isAxis:!0,date:t},(function(t,n,i,r){return Er("div",{ref:t,className:["fc-timegrid-now-indicator-arrow"].concat(n).join(" "),style:{top:e}},r)})):null}))))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),h&&p.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:Yl},{key:"cols",content:Yl}]}),Er(Xr,{viewSpec:c.viewSpec,elRef:this.rootElRef},(function(t,e){return Er("div",{className:["fc-timegrid"].concat(e).join(" "),ref:t},Er(a,{liquid:!u.isHeightAuto&&!u.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:r}]}],sections:p}))}))},e.prototype.getAllDayMaxEventProps=function(){var t=this.context.options,e=t.dayMaxEvents,n=t.dayMaxEventRows;return!0!==e&&!0!==n||(e=void 0,n=5),{dayMaxEvents:e,dayMaxEventRows:n}},e}(Hr);function Ea(t){return t.text}var Sa=function(){function t(t,e,n){this.positions=t,this.dateProfile=e,this.slotDuration=n}return t.prototype.safeComputeTop=function(t){var e=this.dateProfile;if(qn(e.currentRange,t)){var n=ae(t),i=t.valueOf()-n.valueOf();if(i>=Fe(e.slotMinTime)&&i<Fe(e.slotMaxTime))return this.computeTimeTop(Oe(i))}return null},t.prototype.computeDateTop=function(t,e){return e||(e=ae(t)),this.computeTimeTop(Oe(t.valueOf()-e.valueOf()))},t.prototype.computeTimeTop=function(t){var e,n,i=this.positions,r=this.dateProfile,o=i.els.length,l=(t.milliseconds-Fe(r.slotMinTime))/Fe(this.slotDuration);return l=Math.max(0,l),l=Math.min(o,l),e=Math.floor(l),n=l-(e=Math.min(e,o-1)),i.tops[e]+i.getHeight(e)*n},t}(),Ca=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){var t=this.props,e=this.context,n=e.options,r=t.slatElRefs;return Er("tbody",null,t.slatMetas.map((function(o,l){var s={time:o.time,date:e.dateEnv.toDate(o.date),view:e.viewApi},a=["fc-timegrid-slot","fc-timegrid-slot-lane",o.isLabeled?"":"fc-timegrid-slot-minor"];return Er("tr",{key:o.key,ref:r.createRef(o.key)},t.axis&&Er(ya,i({},o)),Er(Wr,{hookProps:s,classNames:n.slotLaneClassNames,content:n.slotLaneContent,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount},(function(t,e,n,i){return Er("td",{ref:t,className:a.concat(e).join(" "),"data-time":o.isoTimeStr},i)})))})))},e}(Rr),Ma=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.rootElRef=Cr(),e.slatElRefs=new Il,e}return n(e,t),e.prototype.render=function(){var t=this.props,e=this.context;return Er("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},Er("table",{"aria-hidden":!0,className:e.theme.getClass("table"),style:{minWidth:t.tableMinWidth,width:t.clientWidth,height:t.minHeight}},t.tableColGroupNode,Er(Ca,{slatElRefs:this.slatElRefs,axis:t.axis,slatMetas:t.slatMetas})))},e.prototype.componentDidMount=function(){this.updateSizing()},e.prototype.componentDidUpdate=function(){this.updateSizing()},e.prototype.componentWillUnmount=function(){this.props.onCoords&&this.props.onCoords(null)},e.prototype.updateSizing=function(){var t,e=this.context,n=this.props;n.onCoords&&null!==n.clientWidth&&this.rootElRef.current.offsetHeight&&n.onCoords(new Sa(new vr(this.rootElRef.current,(t=this.slatElRefs.currentMap,n.slatMetas.map((function(e){return t[e.key]}))),!1,!0),this.props.dateProfile,e.options.slotDuration))},e}(Rr);function ka(t,e){var n,i=[];for(n=0;n<e;n+=1)i.push([]);if(t)for(n=0;n<t.length;n+=1)i[t[n].col].push(t[n]);return i}function Da(t,e){var n=[];if(t){for(l=0;l<e;l+=1)n[l]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(var i=0,r=t.segs;i<r.length;i++){var o=r[i];n[o.col].segs.push(o)}}else for(var l=0;l<e;l+=1)n[l]=null;return n}var Ta=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.rootElRef=Cr(),e}return n(e,t),e.prototype.render=function(){var t=this,e=this.props;return Er(us,{allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,alignmentElRef:this.rootElRef,defaultContent:La,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:function(){return ja(e.hiddenSegs,e)}},(function(n,i,r,o,l,s,a,c){return Er("a",{ref:function(e){Fr(n,e),Fr(t.rootElRef,e)},className:["fc-timegrid-more-link"].concat(i).join(" "),style:{top:e.top,bottom:e.bottom},onClick:l,title:s,"aria-expanded":a,"aria-controls":c},Er("div",{ref:r,className:"fc-timegrid-more-link-inner fc-sticky"},o))}))},e}(Rr);function La(t){return t.shortText}function Aa(t,e,n){var r=new Ho;null!=e&&(r.strictOrder=e),null!=n&&(r.maxStackCnt=n);var o,l,s=Vo(r.addSegs(t)),a=function(t){var e=t.entriesByLevel,n=Ra((function(t,e){return t+":"+e}),(function(r,o){var l=Pa(function(t,e,n){for(var i=t.levelCoords,r=t.entriesByLevel,o=r[e][n],l=i[e]+o.thickness,s=i.length,a=e;a<s&&i[a]<l;a+=1);for(;a<s;a+=1){for(var c=r[a],u=void 0,d=$o(c,o.span.start,Bo),h=d[0]+d[1],p=h;(u=c[p])&&u.span.start<o.span.end;)p+=1;if(h<p)return{level:a,lateralStart:h,lateralEnd:p}}return null}(t,r,o),n),s=e[r][o];return[i(i({},s),{nextLevelNodes:l[0]}),s.thickness+l[1]]}));return Pa(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,n)[0]}(r);return o=a,1,l=Ra((function(t,e,n){return jo(t)}),(function(t,e,n){var r,o=t.nextLevelNodes,s=t.thickness,a=s+n,c=s/a,u=[];if(o.length)for(var d=0,h=o;d<h.length;d++){var p=h[d];if(void 0===r)r=(f=l(p,e,a))[0],u.push(f[1]);else{var f=l(p,r,0);u.push(f[1])}}else r=1;var g=(r-e)*c;return[r-g,i(i({},t),{thickness:g,nextLevelNodes:u})]})),{segRects:function(t){var e=[],n=Ra((function(t,e,n){return jo(t)}),(function(t,n,o){var l=i(i({},t),{levelCoord:n,stackDepth:o,stackForward:0});return e.push(l),l.stackForward=r(t.nextLevelNodes,n+t.thickness,o+1)+1}));function r(t,e,i){for(var r=0,o=0,l=t;o<l.length;o++){var s=l[o];r=Math.max(n(s,e,i),r)}return r}return r(t,0,0),e}(a=o.map((function(t){return l(t,0,0)[1]}))),hiddenGroups:s}}function Pa(t,e){if(!t)return[[],0];for(var n=t.level,i=t.lateralStart,r=t.lateralEnd,o=i,l=[];o<r;)l.push(e(n,o)),o+=1;return l.sort(Oa),[l.map(Ia),l[0][1]]}function Oa(t,e){return e[1]-t[1]}function Ia(t){return t[0]}function Ra(t,e){var n={};return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var o=t.apply(void 0,i);return o in n?n[o]:n[o]=e.apply(void 0,i)}}function Na(t,e,n,i){void 0===n&&(n=null),void 0===i&&(i=0);var r=[];if(n)for(var o=0;o<t.length;o+=1){var l=t[o],s=n.computeDateTop(l.start,e),a=Math.max(s+(i||0),n.computeDateTop(l.end,e));r.push({start:Math.round(s),end:Math.round(a)})}return r}var za=an({hour:"numeric",minute:"2-digit",meridiem:!1}),Fa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){var t=["fc-timegrid-event","fc-v-event"];return this.props.isShort&&t.push("fc-timegrid-event-short"),Er(Kl,i({},this.props,{defaultTimeFormat:za,extraClassNames:t}))},e}(Rr),Ha=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){var t=this.props;return Er(ts,{date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraHookProps:t.extraHookProps},(function(t,e){return e&&Er("div",{className:"fc-timegrid-col-misc",ref:t},e)}))},e}(Rr),Ba=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.sortEventSegs=$e(ti),e}return n(e,t),e.prototype.render=function(){var t=this,e=this.props,n=this.context,r=n.options.selectMirror,o=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||r&&e.dateSelectionSegs||[],l=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},s=this.sortEventSegs(e.fgEventSegs,n.options.eventOrder);return Er(ns,{elRef:e.elRef,date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraHookProps:e.extraHookProps},(function(n,a,c){return Er("td",i({ref:n,role:"gridcell",className:["fc-timegrid-col"].concat(a,e.extraClassNames||[]).join(" ")},c,e.extraDataAttrs),Er("div",{className:"fc-timegrid-col-frame"},Er("div",{className:"fc-timegrid-col-bg"},t.renderFillSegs(e.businessHourSegs,"non-business"),t.renderFillSegs(e.bgEventSegs,"bg-event"),t.renderFillSegs(e.dateSelectionSegs,"highlight")),Er("div",{className:"fc-timegrid-col-events"},t.renderFgSegs(s,l,!1,!1,!1)),Er("div",{className:"fc-timegrid-col-events"},t.renderFgSegs(o,{},Boolean(e.eventDrag),Boolean(e.eventResize),Boolean(r))),Er("div",{className:"fc-timegrid-now-indicator-container"},t.renderNowIndicator(e.nowIndicatorSegs)),Er(Ha,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraHookProps:e.extraHookProps})))}))},e.prototype.renderFgSegs=function(t,e,n,i,r){var o=this.props;return o.forPrint?ja(t,o):this.renderPositionedFgSegs(t,e,n,i,r)},e.prototype.renderPositionedFgSegs=function(t,e,n,r,o){var l=this,s=this.context.options,a=s.eventMaxStack,c=s.eventShortHeight,u=s.eventOrderStrict,d=s.eventMinHeight,h=this.props,p=h.date,f=h.slatCoords,g=h.eventSelection,m=h.todayRange,v=h.nowDate,y=n||r||o,b=function(t,e,n,i){for(var r=[],o=[],l=0;l<t.length;l+=1){var s=e[l];s?r.push({index:l,thickness:1,span:s}):o.push(t[l])}for(var a=Aa(r,n,i),c=a.segRects,u=a.hiddenGroups,d=[],h=0,p=c;h<p.length;h++){var f=p[h];d.push({seg:t[f.index],rect:f})}for(var g=0,m=o;g<m.length;g++){var v=m[g];d.push({seg:v,rect:null})}return{segPlacements:d,hiddenGroups:u}}(t,Na(t,p,f,d),u,a),_=b.segPlacements,w=b.hiddenGroups;return Er(Mr,null,this.renderHiddenGroups(w,t),_.map((function(t){var s=t.seg,a=t.rect,u=s.eventRange.instance.instanceId,d=y||Boolean(!e[u]&&a),h=Va(a&&a.span),p=!y&&a?l.computeSegHStyle(a):{left:0,right:0},f=Boolean(a)&&a.stackForward>0,b=Boolean(a)&&a.span.end-a.span.start<c;return Er("div",{className:"fc-timegrid-event-harness"+(f?" fc-timegrid-event-harness-inset":""),key:u,style:i(i({visibility:d?"":"hidden"},h),p)},Er(Fa,i({seg:s,isDragging:n,isResizing:r,isDateSelecting:o,isSelected:u===g,isShort:b},li(s,m,v))))})))},e.prototype.renderHiddenGroups=function(t,e){var n=this.props,i=n.extraDateSpan,r=n.dateProfile,o=n.todayRange,l=n.nowDate,s=n.eventSelection,a=n.eventDrag,c=n.eventResize;return Er(Mr,null,t.map((function(t){var n,u,d=Va(t.span),h=(n=t.entries,u=e,n.map((function(t){return u[t.index]})));return Er(Ta,{key:je(ps(h)),hiddenSegs:h,top:d.top,bottom:d.bottom,extraDateSpan:i,dateProfile:r,todayRange:o,nowDate:l,eventSelection:s,eventDrag:a,eventResize:c})})))},e.prototype.renderFillSegs=function(t,e){var n=this.props,r=this.context,o=Na(t,n.date,n.slatCoords,r.options.eventMinHeight).map((function(r,o){var l=t[o];return Er("div",{key:ai(l.eventRange),className:"fc-timegrid-bg-harness",style:Va(r)},"bg-event"===e?Er(rs,i({seg:l},li(l,n.todayRange,n.nowDate))):is(e))}));return Er(Mr,null,o)},e.prototype.renderNowIndicator=function(t){var e=this.props,n=e.slatCoords,i=e.date;return n?t.map((function(t,e){return Er(Ql,{isAxis:!1,date:i,key:e},(function(e,r,o,l){return Er("div",{ref:e,className:["fc-timegrid-now-indicator-line"].concat(r).join(" "),style:{top:n.computeDateTop(t.start,i)}},l)}))})):null},e.prototype.computeSegHStyle=function(t){var e,n,i=this.context,r=i.isRtl,o=i.options.slotEventOverlap,l=t.levelCoord,s=t.levelCoord+t.thickness;o&&(s=Math.min(1,l+2*(s-l))),r?(e=1-s,n=l):(e=l,n=1-s);var a={zIndex:t.stackDepth+1,left:100*e+"%",right:100*n+"%"};return o&&!t.stackForward&&(a[r?"marginLeft":"marginRight"]=20),a},e}(Rr);function ja(t,e){var n=e.todayRange,r=e.nowDate,o=e.eventSelection,l=e.eventDrag,s=e.eventResize,a=(l?l.affectedInstances:null)||(s?s.affectedInstances:null)||{};return Er(Mr,null,t.map((function(t){var e=t.eventRange.instance.instanceId;return Er("div",{key:e,style:{visibility:a[e]?"hidden":""}},Er(Fa,i({seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:e===o,isShort:!1},li(t,n,r))))})))}function Va(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}var Wa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.splitFgEventSegs=$e(ka),e.splitBgEventSegs=$e(ka),e.splitBusinessHourSegs=$e(ka),e.splitNowIndicatorSegs=$e(ka),e.splitDateSelectionSegs=$e(ka),e.splitEventDrag=$e(Da),e.splitEventResize=$e(Da),e.rootElRef=Cr(),e.cellElRefs=new Il,e}return n(e,t),e.prototype.render=function(){var t=this,e=this.props,n=this.context.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),i=e.cells.length,r=this.splitFgEventSegs(e.fgEventSegs,i),o=this.splitBgEventSegs(e.bgEventSegs,i),l=this.splitBusinessHourSegs(e.businessHourSegs,i),s=this.splitNowIndicatorSegs(e.nowIndicatorSegs,i),a=this.splitDateSelectionSegs(e.dateSelectionSegs,i),c=this.splitEventDrag(e.eventDrag,i),u=this.splitEventResize(e.eventResize,i);return Er("div",{className:"fc-timegrid-cols",ref:this.rootElRef},Er("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,Er("tbody",{role:"presentation"},Er("tr",{role:"row"},e.axis&&Er("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},Er("div",{className:"fc-timegrid-col-frame"},Er("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof n&&Er(Ql,{isAxis:!0,date:e.nowDate},(function(t,e,i,r){return Er("div",{ref:t,className:["fc-timegrid-now-indicator-arrow"].concat(e).join(" "),style:{top:n}},r)}))))),e.cells.map((function(n,i){return Er(Ba,{key:n.key,elRef:t.cellElRefs.createRef(n.key),dateProfile:e.dateProfile,date:n.date,nowDate:e.nowDate,todayRange:e.todayRange,extraHookProps:n.extraHookProps,extraDataAttrs:n.extraDataAttrs,extraClassNames:n.extraClassNames,extraDateSpan:n.extraDateSpan,fgEventSegs:r[i],bgEventSegs:o[i],businessHourSegs:l[i],nowIndicatorSegs:s[i],dateSelectionSegs:a[i],eventDrag:c[i],eventResize:u[i],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint})}))))))},e.prototype.componentDidMount=function(){this.updateCoords()},e.prototype.componentDidUpdate=function(){this.updateCoords()},e.prototype.updateCoords=function(){var t,e=this.props;e.onColCoords&&null!==e.clientWidth&&e.onColCoords(new vr(this.rootElRef.current,(t=this.cellElRefs.currentMap,e.cells.map((function(e){return t[e.key]}))),!0,!1))},e}(Rr),Ua=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.processSlotOptions=$e(Ya),e.state={slatCoords:null},e.handleRootEl=function(t){t?e.context.registerInteractiveComponent(e,{el:t,isHitComboAllowed:e.props.isHitComboAllowed}):e.context.unregisterInteractiveComponent(e)},e.handleScrollRequest=function(t){var n=e.props.onScrollTopRequest,i=e.state.slatCoords;if(n&&i){if(t.time){var r=i.computeTimeTop(t.time);(r=Math.ceil(r))&&(r+=1),n(r)}return!0}return!1},e.handleColCoords=function(t){e.colCoords=t},e.handleSlatCoords=function(t){e.setState({slatCoords:t}),e.props.onSlatCoords&&e.props.onSlatCoords(t)},e}return n(e,t),e.prototype.render=function(){var t=this.props,e=this.state;return Er("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},Er(Ma,{axis:t.axis,dateProfile:t.dateProfile,slatMetas:t.slatMetas,clientWidth:t.clientWidth,minHeight:t.expandRows?t.clientHeight:"",tableMinWidth:t.tableMinWidth,tableColGroupNode:t.axis?t.tableColGroupNode:null,onCoords:this.handleSlatCoords}),Er(Wa,{cells:t.cells,axis:t.axis,dateProfile:t.dateProfile,businessHourSegs:t.businessHourSegs,bgEventSegs:t.bgEventSegs,fgEventSegs:t.fgEventSegs,dateSelectionSegs:t.dateSelectionSegs,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange,nowDate:t.nowDate,nowIndicatorSegs:t.nowIndicatorSegs,clientWidth:t.clientWidth,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,slatCoords:e.slatCoords,onColCoords:this.handleColCoords,forPrint:t.forPrint}))},e.prototype.componentDidMount=function(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},e.prototype.componentDidUpdate=function(t){this.scrollResponder.update(t.dateProfile!==this.props.dateProfile)},e.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},e.prototype.queryHit=function(t,e){var n=this.context,r=n.dateEnv,o=n.options,l=this.colCoords,s=this.props.dateProfile,a=this.state.slatCoords,c=this.processSlotOptions(this.props.slotDuration,o.snapDuration),u=c.snapDuration,d=c.snapsPerSlot,h=l.leftToIndex(t),p=a.positions.topToIndex(e);if(null!=h&&null!=p){var f=this.props.cells[h],g=a.positions.tops[p],m=a.positions.getHeight(p),v=(e-g)/m,y=p*d+Math.floor(v*d),b=this.props.cells[h].date,_=Re(s.slotMinTime,Ne(u,y)),w=r.add(b,_),x=r.add(w,u);return{dateProfile:s,dateSpan:i({range:{start:w,end:x},allDay:!1},f.extraDateSpan),dayEl:l.els[h],rect:{left:l.lefts[h],right:l.rights[h],top:g,bottom:g+m},layer:0}}return null},e}(Hr);function Ya(t,e){var n=e||t,i=He(t,n);return null===i&&(n=t,i=1),{snapDuration:n,snapsPerSlot:i}}var $a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.sliceRange=function(t,e){for(var n=[],i=0;i<e.length;i+=1){var r=Wn(t,e[i]);r&&n.push({start:r.start,end:r.end,isStart:r.start.valueOf()===t.start.valueOf(),isEnd:r.end.valueOf()===t.end.valueOf(),col:i})}return n},e}(xl),qa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buildDayRanges=$e(Ga),e.slicer=new $a,e.timeColsRef=Cr(),e}return n(e,t),e.prototype.render=function(){var t=this,e=this.props,n=this.context,r=e.dateProfile,o=e.dayTableModel,l=n.options.nowIndicator,s=this.buildDayRanges(o,r,n.dateEnv);return Er(ml,{unit:l?"minute":"day"},(function(a,c){return Er(Ua,i({ref:t.timeColsRef},t.slicer.sliceProps(e,r,null,n,s),{forPrint:e.forPrint,axis:e.axis,dateProfile:r,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:o.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:a,nowIndicatorSegs:l&&t.slicer.sliceNowDate(a,n,s),todayRange:c,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords}))}))},e}(Hr);function Ga(t,e,n){for(var i=[],r=0,o=t.headerDates;r<o.length;r++){var l=o[r];i.push({start:n.add(l,e.slotMinTime),end:n.add(l,e.slotMaxTime)})}return i}var Za=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Ka(t,e,n,i,r){for(var o=new Date(0),l=t,s=Oe(0),a=n||function(t){var e,n,i;for(e=Za.length-1;e>=0;e-=1)if(null!==(i=He(n=Oe(Za[e]),t))&&i>1)return n;return t}(i),c=[];Fe(l)<Fe(e);){var u=r.add(o,l),d=null!==He(s,a);c.push({date:u,time:l,key:u.toISOString(),isoTimeStr:We(u),isLabeled:d}),l=Re(l,i),s=Re(s,i)}return c}var Xa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buildTimeColsModel=$e(Qa),e.buildSlatMetas=$e(Ka),e}return n(e,t),e.prototype.render=function(){var t=this,e=this.context,n=e.options,r=e.dateEnv,o=e.dateProfileGenerator,l=this.props,s=l.dateProfile,a=this.buildTimeColsModel(s,o),c=this.allDaySplitter.splitProps(l),u=this.buildSlatMetas(s.slotMinTime,s.slotMaxTime,n.slotLabelInterval,n.slotDuration,r),d=n.dayMinWidth,h=!d,p=d,f=n.dayHeaders&&Er(yl,{dates:a.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:h?this.renderHeadAxis:null}),g=!1!==n.allDaySlot&&function(e){return Er(ha,i({},c.allDay,{dateProfile:s,dayTableModel:a,nextDayThreshold:n.nextDayThreshold,tableMinWidth:e.tableMinWidth,colGroupNode:e.tableColGroupNode,renderRowIntro:h?t.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:t.headerElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:l.forPrint},t.getAllDayMaxEventProps()))},m=function(e){return Er(qa,i({},c.timed,{dayTableModel:a,dateProfile:s,axis:h,slotDuration:n.slotDuration,slatMetas:u,forPrint:l.forPrint,tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,onSlatCoords:t.handleSlatCoords,expandRows:e.expandRows,onScrollTopRequest:t.handleScrollTopRequest}))};return p?this.renderHScrollLayout(f,g,m,a.colCnt,d,u,this.state.slatCoords):this.renderSimpleLayout(f,g,m)},e}(xa);function Qa(t,e){var n=new _l(t.renderRange,e);return new wl(n,!1)}var Ja=Br({initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:Xa,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}}),tc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={textId:Tt()},e}return n(e,t),e.prototype.render=function(){var t=this.context,e=t.theme,n=t.dateEnv,r=t.options,o=t.viewApi,l=this.props,s=l.cellId,a=l.dayDate,c=l.todayRange,u=this.state.textId,d=er(a,c),h=r.listDayFormat?n.format(a,r.listDayFormat):"",p=r.listDaySideFormat?n.format(a,r.listDaySideFormat):"",f=i({date:n.toDate(a),view:o,textId:u,text:h,sideText:p,navLinkAttrs:or(this.context,a),sideNavLinkAttrs:or(this.context,a,"day",!1)},d),g=["fc-list-day"].concat(nr(d,e));return Er(Wr,{hookProps:f,classNames:r.dayHeaderClassNames,content:r.dayHeaderContent,defaultContent:ec,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},(function(t,n,i,r){return Er("tr",{ref:t,className:g.concat(n).join(" "),"data-date":Ve(a)},Er("th",{scope:"colgroup",colSpan:3,id:s,"aria-labelledby":u},Er("div",{className:"fc-list-day-cushion "+e.getClass("tableCellShaded"),ref:i},r)))}))},e}(Rr);function ec(t){return Er(Mr,null,t.text&&Er("a",i({id:t.textId,className:"fc-list-day-text"},t.navLinkAttrs),t.text),t.sideText&&Er("a",i({"aria-hidden":!0,className:"fc-list-day-side-text"},t.sideNavLinkAttrs),t.sideText))}var nc=an({hour:"numeric",minute:"2-digit",meridiem:"short"}),ic=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){var t=this.props,e=this.context,n=t.seg,r=t.timeHeaderId,o=t.eventHeaderId,l=t.dateHeaderId,s=e.options.eventTimeFormat||nc;return Er(Zl,{seg:n,timeText:"",disableDragging:!0,disableResizing:!0,defaultContent:function(){return function(t,e){var n=ci(t,e);return Er("a",i({},n),t.eventRange.def.title)}(n,e)},isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday,isSelected:t.isSelected,isDragging:t.isDragging,isResizing:t.isResizing,isDateSelecting:t.isDateSelecting},(function(t,i,a,c,u){return Er("tr",{className:["fc-list-event",u.event.url?"fc-event-forced-url":""].concat(i).join(" "),ref:t},function(t,e,n,i,r){var o=n.options;if(!1!==o.displayEventTime){var l=t.eventRange.def,s=t.eventRange.instance,a=!1,c=void 0;if(l.allDay?a=!0:Hn(t.eventRange.range)?t.isStart?c=oi(t,e,n,null,null,s.range.start,t.end):t.isEnd?c=oi(t,e,n,null,null,t.start,s.range.end):a=!0:c=oi(t,e,n),a){var u={text:n.options.allDayText,view:n.viewApi};return Er(Wr,{hookProps:u,classNames:o.allDayClassNames,content:o.allDayContent,defaultContent:rc,didMount:o.allDayDidMount,willUnmount:o.allDayWillUnmount},(function(t,e,n,o){return Er("td",{ref:t,headers:i+" "+r,className:["fc-list-event-time"].concat(e).join(" ")},o)}))}return Er("td",{className:"fc-list-event-time"},c)}return null}(n,s,e,r,l),Er("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},Er("span",{className:"fc-list-event-dot",style:{borderColor:u.borderColor||u.backgroundColor}})),Er("td",{ref:a,headers:o+" "+l,className:"fc-list-event-title"},c))}))},e}(Rr);function rc(t){return t.text}var oc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.computeDateVars=$e(sc),e.eventStoreToSegs=$e(e._eventStoreToSegs),e.state={timeHeaderId:Tt(),eventHeaderId:Tt(),dateHeaderIdRoot:Tt()},e.setRootEl=function(t){t?e.context.registerInteractiveComponent(e,{el:t}):e.context.unregisterInteractiveComponent(e)},e}return n(e,t),e.prototype.render=function(){var t=this,e=this.props,n=this.context,i=["fc-list",n.theme.getClass("table"),!1!==n.options.stickyHeaderDates?"fc-list-sticky":""],r=this.computeDateVars(e.dateProfile),o=r.dayDates,l=r.dayRanges,s=this.eventStoreToSegs(e.eventStore,e.eventUiBases,l);return Er(Xr,{viewSpec:n.viewSpec,elRef:this.setRootEl},(function(n,r){return Er("div",{ref:n,className:i.concat(r).join(" ")},Er(Ol,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},s.length>0?t.renderSegList(s,o):t.renderEmptyMessage()))}))},e.prototype.renderEmptyMessage=function(){var t=this.context,e=t.options,n=t.viewApi,i={text:e.noEventsText,view:n};return Er(Wr,{hookProps:i,classNames:e.noEventsClassNames,content:e.noEventsContent,defaultContent:lc,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},(function(t,e,n,i){return Er("div",{className:["fc-list-empty"].concat(e).join(" "),ref:t},Er("div",{className:"fc-list-empty-cushion",ref:n},i))}))},e.prototype.renderSegList=function(t,e){var n=this.context,r=n.theme,o=n.options,l=this.state,s=l.timeHeaderId,a=l.eventHeaderId,c=l.dateHeaderIdRoot,u=function(t){var e,n,i=[];for(e=0;e<t.length;e+=1)(i[(n=t[e]).dayIndex]||(i[n.dayIndex]=[])).push(n);return i}(t);return Er(ml,{unit:"day"},(function(t,n){for(var l=[],d=0;d<u.length;d+=1){var h=u[d];if(h){var p=Ve(e[d]),f=c+"-"+p;l.push(Er(tc,{key:p,cellId:f,dayDate:e[d],todayRange:n}));for(var g=0,m=h=ti(h,o.eventOrder);g<m.length;g++){var v=m[g];l.push(Er(ic,i({key:p+":"+v.eventRange.instance.instanceId,seg:v,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:s,eventHeaderId:a,dateHeaderId:f},li(v,n,t))))}}}return Er("table",{className:"fc-list-table "+r.getClass("table")},Er("thead",null,Er("tr",null,Er("th",{scope:"col",id:s},o.timeHint),Er("th",{scope:"col","aria-hidden":!0}),Er("th",{scope:"col",id:a},o.eventHint))),Er("tbody",null,l))}))},e.prototype._eventStoreToSegs=function(t,e,n){return this.eventRangesToSegs(Gn(t,e,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)},e.prototype.eventRangesToSegs=function(t,e){for(var n=[],i=0,r=t;i<r.length;i++){var o=r[i];n.push.apply(n,this.eventRangeToSegs(o,e))}return n},e.prototype.eventRangeToSegs=function(t,e){var n,i,r,o=this.context.dateEnv,l=this.context.options.nextDayThreshold,s=t.range,a=t.def.allDay,c=[];for(n=0;n<e.length;n+=1)if((i=Wn(s,e[n]))&&(r={component:this,eventRange:t,start:i.start,end:i.end,isStart:t.isStart&&i.start.valueOf()===s.start.valueOf(),isEnd:t.isEnd&&i.end.valueOf()===s.end.valueOf(),dayIndex:n},c.push(r),!r.isEnd&&!a&&n+1<e.length&&s.end<o.add(e[n+1].start,l))){r.end=s.end,r.isEnd=!0;break}return c},e}(Hr);function lc(t){return t.text}function sc(t){for(var e=ae(t.renderRange.start),n=t.renderRange.end,i=[],r=[];e<n;)i.push(e),r.push({start:e,end:ee(e,1)}),e=ee(e,1);return{dayDates:i,dayRanges:r}}function ac(t){return!1===t?null:an(t)}var cc=Br({optionRefiners:{listDayFormat:ac,listDaySideFormat:ac,noEventsClassNames:yn,noEventsContent:yn,noEventsDidMount:yn,noEventsWillUnmount:yn},views:{list:{component:oc,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}}),uc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(wr);uc.prototype.classes={root:"fc-theme-bootstrap",table:"table-bordered",tableCellShaded:"table-active",buttonGroup:"btn-group",button:"btn btn-primary",buttonActive:"active",popover:"popover",popoverHeader:"popover-header",popoverContent:"popover-body"},uc.prototype.baseIconClass="fa",uc.prototype.iconClasses={close:"fa-times",prev:"fa-chevron-left",next:"fa-chevron-right",prevYear:"fa-angle-double-left",nextYear:"fa-angle-double-right"},uc.prototype.rtlIconClasses={prev:"fa-chevron-right",next:"fa-chevron-left",prevYear:"fa-angle-double-right",nextYear:"fa-angle-double-left"},uc.prototype.iconOverrideOption="bootstrapFontAwesome",uc.prototype.iconOverrideCustomButtonOption="bootstrapFontAwesome",uc.prototype.iconOverridePrefix="fa-";var dc=Br({themeClasses:{bootstrap:uc}}),hc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(wr);hc.prototype.classes={root:"fc-theme-bootstrap5",tableCellShaded:"fc-theme-bootstrap5-shaded",buttonGroup:"btn-group",button:"btn btn-primary",buttonActive:"active",popover:"popover",popoverHeader:"popover-header",popoverContent:"popover-body"},hc.prototype.baseIconClass="bi",hc.prototype.iconClasses={close:"bi-x-lg",prev:"bi-chevron-left",next:"bi-chevron-right",prevYear:"bi-chevron-double-left",nextYear:"bi-chevron-double-right"},hc.prototype.rtlIconClasses={prev:"bi-chevron-right",next:"bi-chevron-left",prevYear:"bi-chevron-double-right",nextYear:"bi-chevron-double-left"},hc.prototype.iconOverrideOption="buttonIcons",hc.prototype.iconOverrideCustomButtonOption="icon",hc.prototype.iconOverridePrefix="bi-";var pc=Br({themeClasses:{bootstrap5:hc}}),fc=Br({eventSourceDefs:[{parseMeta:function(t){var e=t.googleCalendarId;return!e&&t.url&&(e=function(t){var e;return/^[^/]+@([^/.]+\.)*(google|googlemail|gmail)\.com$/.test(t)?t:(e=/^https:\/\/www.googleapis.com\/calendar\/v3\/calendars\/([^/]*)/.exec(t))||(e=/^https?:\/\/www.google.com\/calendar\/feeds\/([^/]*)/.exec(t))?decodeURIComponent(e[1]):null}(t.url)),e?{googleCalendarId:e,googleCalendarApiKey:t.googleCalendarApiKey,googleCalendarApiBase:t.googleCalendarApiBase,extraParams:t.extraParams}:null},fetch:function(t,e,n){var r=t.context,o=r.dateEnv,l=r.options,s=t.eventSource.meta,a=s.googleCalendarApiKey||l.googleCalendarApiKey;if(a){var c=function(t){var e=t.googleCalendarApiBase;return e||(e="https://www.googleapis.com/calendar/v3/calendars"),e+"/"+encodeURIComponent(t.googleCalendarId)+"/events"}(s),u=s.extraParams,d="function"==typeof u?u():u,h=function(t,e,n,r){var o,l,s;return r.canComputeOffset?(l=r.formatIso(t.start),s=r.formatIso(t.end)):(l=ee(t.start,-1).toISOString(),s=ee(t.end,1).toISOString()),o=i(i({},n||{}),{key:e,timeMin:l,timeMax:s,singleEvents:!0,maxResults:9999}),"local"!==r.timeZone&&(o.timeZone=r.timeZone),o}(t.range,a,d,o);_o("GET",c,h,(function(t,i){var r,o;t.error?n({message:"Google Calendar API: "+t.error.message,errors:t.error.errors,xhr:i}):e({rawEvents:(r=t.items,o=h.timeZone,r.map((function(t){return function(t,e){var n=t.htmlLink||null;return n&&e&&(n=function(t,e){return t.replace(/(\?.*?)?(#|$)/,(function(t,n,i){return(n?n+"&":"?")+e+i}))}(n,"ctz="+e)),{id:t.id,title:t.summary,start:t.start.dateTime||t.start.date,end:t.end.dateTime||t.end.date,url:n,location:t.location,description:t.description,attachments:t.attachments||[],extendedProps:(t.extendedProperties||{}).shared||{}}}(t,o)}))),xhr:i})}),(function(t,e){n({message:t,xhr:e})}))}else n({message:"Specify a googleCalendarApiKey. See http://fullcalendar.io/docs/google_calendar/"})}}],optionRefiners:{googleCalendarApiKey:String},eventSourceRefiners:{googleCalendarApiKey:String,googleCalendarId:String,googleCalendarApiBase:String,extraParams:yn}});return Eo.push(Us,ga,Ja,cc,dc,pc,fc),t.BASE_OPTION_DEFAULTS=un,t.BASE_OPTION_REFINERS=cn,t.BaseComponent=Rr,t.BgEvent=rs,t.BootstrapTheme=uc,t.Calendar=ms,t.CalendarApi=ki,t.CalendarContent=ll,t.CalendarDataManager=ko,t.CalendarDataProvider=Fo,t.CalendarRoot=cl,t.Component=xr,t.ContentHook=Yr,t.CustomContentRenderContext=Ur,t.DateComponent=Hr,t.DateEnv=Ri,t.DateProfileGenerator=no,t.DayCellContent=ts,t.DayCellRoot=ns,t.DayGridView=pa,t.DayHeader=yl,t.DaySeriesModel=_l,t.DayTable=ha,t.DayTableModel=wl,t.DayTableSlicer=da,t.DayTimeCols=qa,t.DayTimeColsSlicer=$a,t.DayTimeColsView=Xa,t.DelayedRunner=So,t.Draggable=js,t.ElementDragging=Xo,t.ElementScrollController=br,t.Emitter=mr,t.EventApi=Di,t.EventRoot=Zl,t.EventSourceApi=yt,t.FeaturefulElementDragging=Ds,t.Fragment=Mr,t.Interaction=qo,t.ListView=oc,t.MoreLinkRoot=us,t.MountHook=qr,t.NamedTimeZoneImpl=function(t){this.timeZoneName=t},t.NowIndicatorRoot=Ql,t.NowTimer=ml,t.PointerDragging=_s,t.PositionCache=vr,t.RefMap=Il,t.RenderHook=Wr,t.ScrollController=yr,t.ScrollResponder=Ar,t.Scroller=Ol,t.SegHierarchy=Ho,t.SimpleScrollGrid=Gl,t.Slicer=xl,t.Splitter=Ji,t.StandardEvent=Kl,t.Table=ca,t.TableDateCell=pl,t.TableDowCell=gl,t.TableView=Ys,t.Theme=wr,t.ThirdPartyDraggable=Ws,t.TimeCols=Ua,t.TimeColsSlatsCoords=Sa,t.TimeColsView=xa,t.ViewApi=xi,t.ViewContextType=Pr,t.ViewRoot=Xr,t.WeekNumberRoot=ls,t.WindowScrollController=_r,t.addDays=ee,t.addDurations=Re,t.addMs=ne,t.addWeeks=te,t.allowContextMenu=Wt,t.allowSelection=jt,t.applyMutationToEventStore=bi,t.applyStyle=St,t.applyStyleProp=Ct,t.asCleanDays=function(t){return t.years||t.months||t.milliseconds?0:t.days},t.asRoughMinutes=function(t){return Fe(t)/6e4},t.asRoughMs=Fe,t.asRoughSeconds=function(t){return Fe(t)/1e3},t.binarySearch=$o,t.buildClassNameNormalizer=Gr,t.buildDayRanges=Ga,t.buildDayTableModel=fa,t.buildEntryKey=jo,t.buildEventApis=Li,t.buildEventRangeKey=ai,t.buildHashFromArray=function(t,e){for(var n={},i=0;i<t.length;i+=1){var r=e(t[i],i);n[r[0]]=r[1]}return n},t.buildIsoString=je,t.buildNavLinkAttrs=or,t.buildSegCompareObj=ei,t.buildSegTimeText=oi,t.buildSlatMetas=Ka,t.buildTimeColsModel=Qa,t.collectFromHash=De,t.combineEventUis=Dn,t.compareByFieldSpec=$t,t.compareByFieldSpecs=Yt,t.compareNumbers=Kt,t.compareObjs=Me,t.computeEarliestSegStart=ps,t.computeEdges=dr,t.computeFallbackHeaderFormat=ul,t.computeHeightAndMargins=function(t){return t.getBoundingClientRect().height+function(t){var e=window.getComputedStyle(t);return parseInt(e.marginTop,10)+parseInt(e.marginBottom,10)}(t)},t.computeInnerRect=hr,t.computeRect=pr,t.computeSegDraggable=ni,t.computeSegEndResizable=ri,t.computeSegStartResizable=ii,t.computeShrinkWidth=Rl,t.computeSmallestCellWidth=Qt,t.computeVisibleDayRange=Fn,t.config=Qo,t.constrainPoint=Gi,t.createAriaClickAttrs=It,t.createContext=kr,t.createDuration=Oe,t.createElement=Er,t.createEmptyEventStore=function(){return{defs:{},instances:{}}},t.createEventInstance=ve,t.createEventUi=kn,t.createFormatter=an,t.createPlugin=Br,t.createPortal=Dr,t.createRef=Cr,t.diffDates=Bn,t.diffDayAndTime=oe,t.diffDays=re,t.diffPoints=Ki,t.diffWeeks=ie,t.diffWholeDays=se,t.diffWholeWeeks=le,t.disableCursor=Ft,t.elementClosest=_t,t.elementMatches=wt,t.enableCursor=Ht,t.eventTupleToStore=_n,t.filterEventStoreDefs=En,t.filterHash=_e,t.findDirectChildren=function(t,e){for(var n=t instanceof HTMLElement?[t]:t,i=[],r=0;r<n.length;r+=1)for(var o=n[r].children,l=0;l<o.length;l+=1){var s=o[l];e&&!wt(s,e)||i.push(s)}return i},t.findElements=xt,t.flexibleCompare=qt,t.flushSync=Tr,t.formatDate=function(t,e){void 0===e&&(e={});var n=Vi(e),i=an(e),r=n.createMarkerMeta(t);return r?n.format(r.marker,i,{forcedTzo:r.forcedTzo}):""},t.formatDayString=Ve,t.formatIsoTimeString=We,t.formatRange=function(t,e,n){var i=Vi("object"==typeof n&&n?n:{}),r=an(n),o=i.createMarkerMeta(t),l=i.createMarkerMeta(e);return o&&l?i.formatRange(o.marker,l.marker,r,{forcedStartTzo:o.forcedTzo,forcedEndTzo:l.forcedTzo,isEndExclusive:n.isEndExclusive,defaultSeparator:un.defaultRangeSeparator}):""},t.getAllowYScrolling=zl,t.getCanVGrowWithinCell=Xi,t.getClippingParents=fr,t.getDateMeta=er,t.getDayClassNames=nr,t.getDefaultEventEnd=yi,t.getElRoot=kt,t.getElSeg=Xn,t.getEntrySpanEnd=Bo,t.getEventClassNames=si,t.getEventTargetViaRoot=Mt,t.getIsRtlScrollbarOnLeft=ar,t.getRectCenter=Zi,t.getRelevantEvents=wn,t.getScrollGridClassNames=Wl,t.getScrollbarWidths=cr,t.getSectionClassNames=Ul,t.getSectionHasLiquidHeight=Nl,t.getSegAnchorAttrs=ci,t.getSegMeta=li,t.getSlotClassNames=function(t,e){var n=["fc-slot","fc-slot-"+Jt[t.dow]];return t.isDisabled?n.push("fc-slot-disabled"):(t.isToday&&(n.push("fc-slot-today"),n.push(e.getClass("today"))),t.isPast&&n.push("fc-slot-past"),t.isFuture&&n.push("fc-slot-future")),n},t.getStickyFooterScrollbar=ql,t.getStickyHeaderDates=$l,t.getUnequalProps=Ce,t.getUniqueDomId=Tt,t.globalLocales=Ni,t.globalPlugins=Eo,t.greatestDurationDenominator=Be,t.groupIntersectingEntries=Vo,t.guid=zt,t.hasBgRendering=Zn,t.hasShrinkWidth=Vl,t.identity=yn,t.interactionSettingsStore=Ko,t.interactionSettingsToStore=Zo,t.intersectRanges=Wn,t.intersectRects=qi,t.intersectSpans=Uo,t.isArraysEqual=Ye,t.isColPropsEqual=Hl,t.isDateSelectionValid=Cl,t.isDateSpansEqual=hi,t.isInt=Xt,t.isInteractionValid=Sl,t.isMultiDayRange=Hn,t.isPropsEqual=Se,t.isPropsValid=kl,t.isValidDate=ge,t.joinSpans=Wo,t.listenBySelector=At,t.mapHash=we,t.memoize=$e,t.memoizeArraylike=function(t,e,n){var i=this,r=[],o=[];return function(l){for(var s=r.length,a=l.length,c=0;c<s;c+=1)if(l[c]){if(!Ye(r[c],l[c])){n&&n(o[c]);var u=t.apply(i,l[c]);e&&e(u,o[c])||(o[c]=u)}}else n&&n(o[c]);for(;c<a;c+=1)o[c]=t.apply(i,l[c]);return r=l,o.splice(a),o}},t.memoizeHashlike=function(t,e,n){var i=this,r={},o={};return function(l){var s={};for(var a in l)if(o[a])if(Ye(r[a],l[a]))s[a]=o[a];else{n&&n(o[a]);var c=t.apply(i,l[a]);s[a]=e&&e(c,o[a])?o[a]:c}else s[a]=t.apply(i,l[a]);return r=l,o=s,s}},t.memoizeObjArg=qe,t.mergeEventStores=xn,t.multiplyDuration=Ne,t.padStart=Gt,t.parseBusinessHours=Yi,t.parseClassNames=Sn,t.parseDragMeta=tl,t.parseEventDef=Nn,t.parseFieldSpecs=Ut,t.parseMarker=Ii,t.pointInsideRect=$i,t.preventContextMenu=Vt,t.preventDefault=Lt,t.preventSelection=Bt,t.rangeContainsMarker=qn,t.rangeContainsRange=$n,t.rangesEqual=Un,t.rangesIntersect=Yn,t.refineEventDef=In,t.refineProps=vn,t.removeElement=bt,t.removeExact=function(t,e){for(var n=0,i=0;i<t.length;)t[i]===e?(t.splice(i,1),n+=1):i+=1;return n},t.render=Sr,t.renderChunkContent=Fl,t.renderFill=is,t.renderMicroColGroup=Bl,t.renderScrollShim=Yl,t.requestJson=_o,t.sanitizeShrinkWidth=jl,t.setElSeg=Kn,t.setRef=Fr,t.sliceEventStore=Gn,t.sliceEvents=function(t,e){return Gn(t.eventStore,t.eventUiBases,t.dateProfile.activeRange,e?t.nextDayThreshold:null).fg},t.sortEventSegs=ti,t.startOfDay=ae,t.translateRect=function(t,e,n){return{left:t.left+e,right:t.right+e,top:t.top+n,bottom:t.bottom+n}},t.triggerDateSelect=mi,t.unmountComponentAtNode=Lr,t.unpromisify=gr,t.version="5.11.3",t.whenTransitionDone=Ot,t.wholeDivideDurations=He,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
/*! svgMap | https://github.com/StephanWagner/svgMap | MIT License | Copyright Stephan Wagner | https://stephanwagner.me */
function svgMapWrapper(t){function e(t){this.init(t)}return e.prototype.init=function(t){this.options=Object.assign({},{targetElementID:"",minZoom:1,maxZoom:25,initialZoom:1.06,initialPan:{x:0,y:0},zoomScaleSensitivity:.2,mouseWheelZoomEnabled:!0,mouseWheelZoomWithKey:!1,mouseWheelKeyMessage:"Press the [ALT] key to zoom",mouseWheelKeyMessageMac:"Press the [COMMAND] key to zoom",colorMax:"#CC0033",colorMin:"#FFE5D9",colorNoData:"#E2E2E2",manualColorAttribute:"color",flagType:"image",flagURL:"https://cdn.jsdelivr.net/gh/hjnilsson/country-flags@latest/svg/{0}.svg",hideFlag:!1,hideMissingData:!1,noDataText:"No data available",touchLink:!1,showZoomReset:!1,onGetTooltip:function(t,e,n){return null},countries:{EH:!0,Crimea:"UA"},showContinentSelector:!1},t||{}),this.options.targetElementID&&document.getElementById(this.options.targetElementID)||this.error("Target element not found"),this.options.data||this.error("No data"),this.id=this.options.targetElementID,this.wrapper=document.getElementById(this.options.targetElementID),this.wrapper.classList.add("svgMap-wrapper"),this.container=document.createElement("div"),this.container.classList.add("svgMap-container"),this.wrapper.appendChild(this.container),this.options.mouseWheelZoomEnabled&&this.options.mouseWheelZoomWithKey&&(this.addMouseWheelZoomNotice(),this.addMouseWheelZoomWithKeyEvents()),this.mapContainer=document.createElement("div"),this.mapContainer.classList.add("svgMap-map-container"),this.container.appendChild(this.mapContainer),this.createMap(),this.applyData(this.options.data)},e.prototype.countries={AF:"Afghanistan",AX:"Åland Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BA:"Bosnia and Herzegovina",BW:"Botswana",BR:"Brazil",IO:"British Indian Ocean Territory",VG:"British Virgin Islands",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",BQ:"Caribbean Netherlands",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos Islands",CO:"Colombia",KM:"Comoros",CG:"Congo",CK:"Cook Islands",CR:"Costa Rica",HR:"Croatia",CU:"Cuba",CW:"Curaçao",CY:"Cyprus",CZ:"Czech Republic",CD:"Democratic Republic of the Congo",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands",FO:"Faroe Islands",FM:"Federated States of Micronesia",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",CI:"Ivory Coast",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",XK:"Kosovo",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Laos",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macau",MK:"Macedonia",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",MD:"Moldova",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",KP:"North Korea",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn Islands",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Reunion",RO:"Romania",RU:"Russia",RW:"Rwanda",SH:"Saint Helena",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"São Tomé and Príncipe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",KR:"South Korea",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Eswatini",SE:"Sweden",CH:"Switzerland",SY:"Syria",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UM:"United States Minor Outlying Islands",VI:"United States Virgin Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VA:"Vatican City",VE:"Venezuela",VN:"Vietnam",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"},e.prototype.applyData=function(t){var e=null,n=null;Object.keys(t.values).forEach((function(i){i=parseInt(t.values[i][t.applyData],10),(e=null===e?i:e)<i&&(e=i),i<(n=null===n?i:n)&&(n=i)})),t.data[t.applyData].thresholdMax&&(e=Math.min(e,t.data[t.applyData].thresholdMax)),t.data[t.applyData].thresholdMin&&(n=Math.max(n,t.data[t.applyData].thresholdMin)),Object.keys(this.countries).forEach(function(i){var r,o=document.getElementById(this.id+"-map-country-"+i);o&&(t.values[i]?void 0===t.values[i].color?(r=Math.max(n,parseInt(t.values[i][t.applyData],10)),r=Math.max(0,Math.min(1,(r-n)/(e-n))),r=this.getColor(this.options.colorMax,this.options.colorMin,r||0===r?r:1),o.setAttribute("fill",r)):o.setAttribute("fill",t.values[i].color):o.setAttribute("fill",this.options.colorNoData))}.bind(this))},e.prototype.emojiFlags={AF:"🇦🇫",AX:"🇦🇽",AL:"🇦🇱",DZ:"🇩🇿",AS:"🇦🇸",AD:"🇦🇩",AO:"🇦🇴",AI:"🇦🇮",AQ:"🇦🇶",AG:"🇦🇬",AR:"🇦🇷",AM:"🇦🇲",AW:"🇦🇼",AU:"🇦🇺",AT:"🇦🇹",AZ:"🇦🇿",BS:"🇧🇸",BH:"🇧🇭",BD:"🇧🇩",BB:"🇧🇧",BY:"🇧🇾",BE:"🇧🇪",BZ:"🇧🇿",BJ:"🇧🇯",BM:"🇧🇲",BT:"🇧🇹",BO:"🇧🇴",BA:"🇧🇦",BW:"🇧🇼",BR:"🇧🇷",IO:"🇮🇴",VG:"🇻🇬",BN:"🇧🇳",BG:"🇧🇬",BF:"🇧🇫",BI:"🇧🇮",KH:"🇰🇭",CM:"🇨🇲",CA:"🇨🇦",CV:"🇨🇻",BQ:"🇧🇶",KY:"🇰🇾",CF:"🇨🇫",TD:"🇹🇩",CL:"🇨🇱",CN:"🇨🇳",CX:"🇨🇽",CC:"🇨🇨",CO:"🇨🇴",KM:"🇰🇲",CG:"🇨🇬",CK:"🇨🇰",CR:"🇨🇷",HR:"🇭🇷",CU:"🇨🇺",CW:"🇨🇼",CY:"🇨🇾",CZ:"🇨🇿",CD:"🇨🇩",DK:"🇩🇰",DJ:"🇩🇯",DM:"🇩🇲",DO:"🇩🇴",EC:"🇪🇨",EG:"🇪🇬",SV:"🇸🇻",GQ:"🇬🇶",ER:"🇪🇷",EE:"🇪🇪",ET:"🇪🇹",FK:"🇫🇰",FO:"🇫🇴",FM:"🇫🇲",FJ:"🇫🇯",FI:"🇫🇮",FR:"🇫🇷",GF:"🇬🇫",PF:"🇵🇫",TF:"🇹🇫",GA:"🇬🇦",GM:"🇬🇲",GE:"🇬🇪",DE:"🇩🇪",GH:"🇬🇭",GI:"🇬🇮",GR:"🇬🇷",GL:"🇬🇱",GD:"🇬🇩",GP:"🇬🇵",GU:"🇬🇺",GT:"🇬🇹",GN:"🇬🇳",GW:"🇬🇼",GY:"🇬🇾",HT:"🇭🇹",HN:"🇭🇳",HK:"🇭🇰",HU:"🇭🇺",IS:"🇮🇸",IN:"🇮🇳",ID:"🇮🇩",IR:"🇮🇷",IQ:"🇮🇶",IE:"🇮🇪",IM:"🇮🇲",IL:"🇮🇱",IT:"🇮🇹",CI:"🇨🇮",JM:"🇯🇲",JP:"🇯🇵",JE:"🇯🇪",JO:"🇯🇴",KZ:"🇰🇿",KE:"🇰🇪",KI:"🇰🇮",XK:"🇽🇰",KW:"🇰🇼",KG:"🇰🇬",LA:"🇱🇦",LV:"🇱🇻",LB:"🇱🇧",LS:"🇱🇸",LR:"🇱🇷",LY:"🇱🇾",LI:"🇱🇮",LT:"🇱🇹",LU:"🇱🇺",MO:"🇲🇴",MK:"🇲🇰",MG:"🇲🇬",MW:"🇲🇼",MY:"🇲🇾",MV:"🇲🇻",ML:"🇲🇱",MT:"🇲🇹",MH:"🇲🇭",MQ:"🇲🇶",MR:"🇲🇷",MU:"🇲🇺",YT:"🇾🇹",MX:"🇲🇽",MD:"🇲🇩",MC:"🇲🇨",MN:"🇲🇳",ME:"🇲🇪",MS:"🇲🇸",MA:"🇲🇦",MZ:"🇲🇿",MM:"🇲🇲",NA:"🇳🇦",NR:"🇳🇷",NP:"🇳🇵",NL:"🇳🇱",NC:"🇳🇨",NZ:"🇳🇿",NI:"🇳🇮",NE:"🇳🇪",NG:"🇳🇬",NU:"🇳🇺",NF:"🇳🇫",KP:"🇰🇵",MP:"🇲🇵",NO:"🇳🇴",OM:"🇴🇲",PK:"🇵🇰",PW:"🇵🇼",PS:"🇵🇸",PA:"🇵🇦",PG:"🇵🇬",PY:"🇵🇾",PE:"🇵🇪",PH:"🇵🇭",PN:"🇵🇳",PL:"🇵🇱",PT:"🇵🇹",PR:"🇵🇷",QA:"🇶🇦",RE:"🇷🇪",RO:"🇷🇴",RU:"🇷🇺",RW:"🇷🇼",SH:"🇸🇭",KN:"🇰🇳",LC:"🇱🇨",PM:"🇵🇲",VC:"🇻🇨",WS:"🇼🇸",SM:"🇸🇲",ST:"🇸🇹",SA:"🇸🇦",SN:"🇸🇳",RS:"🇷🇸",SC:"🇸🇨",SL:"🇸🇱",SG:"🇸🇬",SX:"🇸🇽",SK:"🇸🇰",SI:"🇸🇮",SB:"🇸🇧",SO:"🇸🇴",ZA:"🇿🇦",GS:"🇬🇸",KR:"🇰🇷",SS:"🇸🇸",ES:"🇪🇸",LK:"🇱🇰",SD:"🇸🇩",SR:"🇸🇷",SJ:"🇸🇯",SZ:"🇸🇿",SE:"🇸🇪",CH:"🇨🇭",SY:"🇸🇾",TW:"🇹🇼",TJ:"🇹🇯",TZ:"🇹🇿",TH:"🇹🇭",TL:"🇹🇱",TG:"🇹🇬",TK:"🇹🇰",TO:"🇹🇴",TT:"🇹🇹",TN:"🇹🇳",TR:"🇹🇷",TM:"🇹🇲",TC:"🇹🇨",TV:"🇹🇻",UG:"🇺🇬",UA:"🇺🇦",AE:"🇦🇪",GB:"🇬🇧",US:"🇺🇸",UM:"🇺🇲",VI:"🇻🇮",UY:"🇺🇾",UZ:"🇺🇿",VU:"🇻🇺",VA:"🇻🇦",VE:"🇻🇪",VN:"🇻🇳",WF:"🇼🇫",EH:"🇪🇭",YE:"🇾🇪",ZM:"🇿🇲",ZW:"🇿🇼"},e.prototype.continents={EA:{iso:"EA",name:"World"},AF:{iso:"AF",name:"Africa",pan:{x:454,y:250},zoom:1.9},AS:{iso:"AS",name:"Asia",pan:{x:904,y:80},zoom:1.8},EU:{iso:"EU",name:"Europe",pan:{x:404,y:80},zoom:5},NA:{iso:"NA",name:"North America",pan:{x:104,y:55},zoom:2.6},MA:{iso:"MA",name:"Middle America",pan:{x:104,y:200},zoom:2.6},SA:{iso:"SA",name:"South America",pan:{x:104,y:340},zoom:2.2},OC:{iso:"OC",name:"Oceania",pan:{x:954,y:350},zoom:1.9}},e.prototype.createMap=function(){this.createTooltip(),this.mapWrapper=this.createElement("div","svgMap-map-wrapper",this.mapContainer),this.mapImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.mapImage.setAttribute("viewBox","0 0 2000 1001"),this.mapImage.classList.add("svgMap-map-image"),this.mapWrapper.appendChild(this.mapImage);var n,i=this.createElement("div","svgMap-map-controls-wrapper",this.mapWrapper),r=this.createElement("div","svgMap-map-controls-zoom",i);["in","out","reset"].forEach(function(t){var e;("reset"===t&&this.options.showZoomReset||"reset"!==t)&&(this[e="zoomControl"+t.charAt(0).toUpperCase()+t.slice(1)]=this.createElement("button","svgMap-control-button svgMap-zoom-button svgMap-zoom-"+t+"-button",r),this[e].type="button",this[e].addEventListener("click",function(){this.zoomMap(t)}.bind(this),{passive:!0}))}.bind(this)),this.zoomControlIn.setAttribute("aria-label","Zoom in"),this.zoomControlOut.setAttribute("aria-label","Zoom out"),this.options.showContinentSelector&&(o=this.createElement("div","svgMap-map-continent-controls-wrapper",this.mapWrapper),this.continentSelect=this.createElement("select","svgMap-continent-select",o),n=this,Object.keys(e.prototype.continents).forEach((function(t){n.createElement("option","svgMap-continent-option svgMap-continent-iso-"+e.prototype.continents[t].iso,n.continentSelect,e.prototype.continents[t].name).value=t})),this.continentSelect.addEventListener("change",function(t){t.target.value&&this.zoomContinent(t.target.value)}.bind(n),{passive:!0}),o.setAttribute("aria-label","Select continent"));var o=Object.assign({},this.mapPaths);this.options.countries.EH||(o.MA.d=o["MA-EH"].d,delete o.EH),delete o["MA-EH"],"RU"===this.options.countries.Crimea&&(o.RU.d=o["RU-WITH-CRIMEA"].d,o.UA.d=o["UA-WITHOUT-CRIMEA"].d),delete o["RU-WITH-CRIMEA"],delete o["UA-WITHOUT-CRIMEA"],this.tooltipMoveEvent=function(t){this.moveTooltip(t)}.bind(this),Object.keys(o).forEach(function(t){var e=this.mapPaths[t];if(e.d){var n=document.createElementNS("http://www.w3.org/2000/svg","path");if(n.setAttribute("d",e.d),n.setAttribute("id",this.id+"-map-country-"+t),n.setAttribute("data-id",t),n.classList.add("svgMap-country"),this.mapImage.appendChild(n),n.addEventListener("touchstart",function(t){n.parentNode.appendChild(n),n.classList.add("svgMap-active");var e=n.getAttribute("data-id"),i=n.getAttribute("data-link");this.options.touchLink&&i?window.location.href=i:(this.setTooltipContent(this.getTooltipContent(e)),this.showTooltip(t),this.moveTooltip(t),n.addEventListener("touchmove",this.tooltipMoveEvent,{passive:!0}))}.bind(this),{passive:!0}),n.addEventListener("mouseenter",function(t){n.parentNode.appendChild(n);var e=n.getAttribute("data-id");this.setTooltipContent(this.getTooltipContent(e)),this.showTooltip(t),n.addEventListener("mousemove",this.tooltipMoveEvent,{passive:!0})}.bind(this),{passive:!0}),this.options.data.values&&this.options.data.values[t]&&this.options.data.values[t].link){n.setAttribute("data-link",this.options.data.values[t].link),this.options.data.values[t].linkTarget&&n.setAttribute("data-link-target",this.options.data.values[t].linkTarget);let e=!1;n.addEventListener("mousedown",(function(){e=!1})),n.addEventListener("touchstart",(function(){e=!1})),n.addEventListener("mousemove",(function(){e=!0})),n.addEventListener("touchmove",(function(){e=!0})),t=function(t){var i,r;e||(i=n.getAttribute("data-link"),(r=n.getAttribute("data-link-target"))?window.open(i,r):window.location.href=i)},n.addEventListener("click",t),n.addEventListener("touchend",t)}n.addEventListener("mouseleave",function(){this.hideTooltip(),n.removeEventListener("mousemove",this.tooltipMoveEvent,{passive:!0})}.bind(this),{passive:!0}),n.addEventListener("touchend",function(){this.hideTooltip(),n.classList.remove("svgMap-active"),n.removeEventListener("touchmove",this.tooltipMoveEvent,{passive:!0})}.bind(this),{passive:!0})}}.bind(this));var l=this;this.mapPanZoom=t(this.mapImage,{zoomEnabled:!0,fit:!0,center:!0,minZoom:this.options.minZoom,maxZoom:this.options.maxZoom,zoomScaleSensitivity:this.options.zoomScaleSensitivity,controlIconsEnabled:!1,mouseWheelZoomEnabled:this.options.mouseWheelZoomEnabled,preventMouseEventsDefault:!0,onZoom:function(){l.setControlStatuses()},beforePan:function(t,e){var n=.85*l.mapWrapper.offsetWidth,i=.85*l.mapWrapper.offsetHeight,r=-((s=this.getSizes()).viewBox.x+s.viewBox.width)*s.realZoom+n,o=s.width-n-s.viewBox.x*s.realZoom,s=(n=-(s.viewBox.y+s.viewBox.height)*s.realZoom+i,s.height-i-s.viewBox.y*s.realZoom);return{x:Math.max(r,Math.min(o,e.x)),y:Math.max(n,Math.min(s,e.y))}}}),0!=this.options.initialPan.x||0!=this.options.initialPan.y?this.mapPanZoom.zoomAtPointBy(this.options.initialZoom,{x:this.options.initialPan.x,y:this.options.initialPan.y}):this.mapPanZoom.zoom(this.options.initialZoom),this.setControlStatuses()},e.prototype.getTooltipContent=function(t){if(this.options.onGetTooltip){var e=this.options.onGetTooltip(this.tooltip,t,this.options.data.values[t]);if(e)return e}e=this.createElement("div","svgMap-tooltip-content-container"),!1===this.options.hideFlag&&(i=this.createElement("div","svgMap-tooltip-flag-container svgMap-tooltip-flag-container-"+this.options.flagType,e),"image"===this.options.flagType?this.createElement("img","svgMap-tooltip-flag",i).setAttribute("src",this.options.flagURL.replace("{0}",t.toLowerCase())):"emoji"===this.options.flagType&&(i.innerHTML=this.emojiFlags[t])),this.createElement("div","svgMap-tooltip-title",e).innerHTML=this.getCountryName(t);var n,i=this.createElement("div","svgMap-tooltip-content",e);return this.options.data.values[t]?(n="<table>",Object.keys(this.options.data.data).forEach(function(e){var i=this.options.data.data[e];(void 0!==(e=this.options.data.values[t][e])&&!0===this.options.hideMissingData||!1===this.options.hideMissingData)&&(i.floatingNumbers&&(e=e.toFixed(1)),i.thousandSeparator&&(e=this.numberWithCommas(e,i.thousandSeparator)),e=i.format?i.format.replace("{0}","<span>"+e+"</span>"):"<span>"+e+"</span>",n+="<tr><td>"+(i.name||"")+"</td><td>"+e+"</td></tr>")}.bind(this)),n+="</table>",i.innerHTML=n):this.createElement("div","svgMap-tooltip-no-data",i).innerHTML=this.options.noDataText,e},e.prototype.setControlStatuses=function(){this.zoomControlIn.classList.remove("svgMap-disabled"),this.zoomControlIn.setAttribute("aria-disabled","false"),this.zoomControlOut.classList.remove("svgMap-disabled"),this.zoomControlOut.setAttribute("aria-disabled","false"),this.options.showZoomReset&&(this.zoomControlReset.classList.remove("svgMap-disabled"),this.zoomControlReset.setAttribute("aria-disabled","false")),this.mapPanZoom.getZoom().toFixed(3)<=this.options.minZoom&&(this.zoomControlOut.classList.add("svgMap-disabled"),this.zoomControlOut.setAttribute("aria-disabled","true")),this.mapPanZoom.getZoom().toFixed(3)>=this.options.maxZoom&&(this.zoomControlIn.classList.add("svgMap-disabled"),this.zoomControlIn.setAttribute("aria-disabled","true")),this.options.showZoomReset&&this.mapPanZoom.getZoom().toFixed(3)==this.options.initialZoom&&(this.zoomControlReset.classList.add("svgMap-disabled"),this.zoomControlReset.setAttribute("aria-disabled","true"))},e.prototype.zoomMap=function(t){if(this["zoomControl"+t.charAt(0).toUpperCase()+t.slice(1)].classList.contains("svgMap-disabled"))return!1;"reset"===t?(this.mapPanZoom.reset(),0!=this.options.initialPan.x||0!=this.options.initialPan.y?this.mapPanZoom.zoomAtPointBy(this.options.initialZoom,{x:this.options.initialPan.x,y:this.options.initialPan.y}):this.mapPanZoom.zoom(this.options.initialZoom)):this.mapPanZoom["in"==t?"zoomIn":"zoomOut"]()},e.prototype.zoomContinent=function(t){"EA"==(t=this.continents[t]).iso?this.mapPanZoom.reset():t.pan&&(this.mapPanZoom.reset(),this.mapPanZoom.zoomAtPoint(t.zoom,t.pan))},e.prototype.addMouseWheelZoomNotice=function(){var t=document.createElement("div");t.classList.add("svgMap-block-zoom-notice");var e=document.createElement("div");e.innerHTML=-1!=navigator.appVersion.indexOf("Mac")?this.options.mouseWheelKeyMessageMac:this.options.mouseWheelKeyMessage,t.append(e),this.wrapper.append(t)},e.prototype.showMouseWheelZoomNotice=function(t){this.mouseWheelNoticeJustHidden||(this.autoHideMouseWheelNoticeTimeout&&clearTimeout(this.autoHideMouseWheelNoticeTimeout),this.autoHideMouseWheelNoticeTimeout=setTimeout(function(){this.hideMouseWheelZoomNotice()}.bind(this),t||2400),this.wrapper.classList.add("svgMap-block-zoom-notice-active"))},e.prototype.hideMouseWheelZoomNotice=function(){this.wrapper.classList.remove("svgMap-block-zoom-notice-active"),this.autoHideMouseWheelNoticeTimeout&&clearTimeout(this.autoHideMouseWheelNoticeTimeout)},e.prototype.blockMouseWheelZoomNotice=function(t){this.mouseWheelNoticeJustHidden=!0,this.mouseWheelNoticeJustHiddenTimeout&&clearTimeout(this.mouseWheelNoticeJustHiddenTimeout),this.mouseWheelNoticeJustHiddenTimeout=setTimeout(function(){this.mouseWheelNoticeJustHidden=!1}.bind(this),t||600)},e.prototype.addMouseWheelZoomWithKeyEvents=function(){if(this.wrapper.addEventListener("wheel",function(t){document.body.classList.contains("svgMap-zoom-key-pressed")?(this.hideMouseWheelZoomNotice(),this.blockMouseWheelZoomNotice()):this.showMouseWheelZoomNotice()}.bind(this),{passive:!0}),document.addEventListener("keydown",function(t){"Alt"!=t.key&&"Control"!=t.key&&"Meta"!=t.key&&"Shift"!=t.key||(document.body.classList.add("svgMap-zoom-key-pressed"),this.hideMouseWheelZoomNotice(),this.blockMouseWheelZoomNotice())}.bind(this)),this.wrapper.addEventListener("wheel",(function(t){(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)&&document.body.classList.add("svgMap-zoom-key-pressed")})),document.body.classList.contains("svgMap-key-events-added"))return!1;document.body.classList.add("svgMap-key-events-added"),document.addEventListener("keyup",(function(t){"Alt"!=t.key&&"Control"!=t.key&&"Meta"!=t.key&&"Shift"!=t.key||document.body.classList.remove("svgMap-zoom-key-pressed")}))},e.prototype.mapPaths={AF:{d:"M1369.9,333.8h-5.4l-3.8-0.5l-2.5,2.9l-2.1,0.7l-1.5,1.3l-2.6-2.1l-1-5.4l-1.6-0.3v-2l-3.2-1.5l-1.7,2.3l0.2,2.6 l-0.6,0.9l-3.2-0.1l-0.9,3l-2.1-1.3l-3.3,2.1l-1.8-0.8l-4.3-1.4h-2.9l-1.6-0.2l-2.9-1.7l-0.3,2.3l-4.1,1.2l0.1,5.2l-2.5,2l-4,0.9 l-0.4,3l-3.9,0.8l-5.9-2.4l-0.5,8l-0.5,4.7l2.5,0.9l-1.6,3.5l2.7,5.1l1.1,4l4.3,1.1l1.1,4l-3.9,5.8l9.6,3.2l5.3-0.9l3.3,0.8l0.9-1.4 l3.8,0.5l6.6-2.6l-0.8-5.4l2.3-3.6h4l0.2-1.7l4-0.9l2.1,0.6l1.7-1.8l-1.1-3.8l1.5-3.8l3-1.6l-3-4.2l5.1,0.2l0.9-2.3l-0.8-2.5l2-2.7 l-1.4-3.2l-1.9-2.8l2.4-2.8l5.3-1.3l5.8-0.8l2.4-1.2l2.8-0.7L1369.9,333.8L1369.9,333.8z"},AL:{d:"M1077.5,300.5l-2,3.1l0.5,1.9l0,0l1,1l-0.5,1.9l-0.1,4.3l0.7,3l3,2.1l0.2,1.4l1,0.4l2.1-3l0.1-2.1l1.6-0.9V312 l-2.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z M590.7,119.5l-7.1,2.4l0.9,3.4l-7.4-0.7l-1.7,1.7l5.8,3.9l0.9,2l3.4,0.5l8.4-2l5.1-4.7l-3.8-2.2l6-2.4 l0.5-1.5l-7.5,0.6L590.7,119.5L590.7,119.5z M613,124.9l5.6-1l10-4.5l-6.1-1.2l-7.8-0.2l-5.2,1.4l-4.2,2.1l-2.5,2.6l-1.8,4.5 l4.3,0.2L613,124.9z M498.3,132.1l2.6-2.3l9.1-3.6l13.8-3.6l6.4-1.3l-1.6-2.1l-1.9-1.5l-9.4-0.2l-4.1-1.1l-14,0.8l-0.3,3.1l-7.6,3.3 l-7.4,3.8l-4.3,2.2l5.9,2.7l-0.6,2.3L498.3,132.1L498.3,132.1z M622.4,113.8l0.3-1.6l-1.4-1.7l-6.9,1.3L610,114l3.2,1.3l5.1,0.4 L622.4,113.8L622.4,113.8z M613.7,105.2l-1.1,0.7l-4.8-0.3l-7.6,1.6l-3.8-0.1l-4.3,3.8l6.6-0.4l-3.4,2.9l3.2,0.8l6.8-0.5l5.8-3.7 l2.8-2.5L613.7,105.2z M574.6,107.7l1.8-2.3l-3.1-0.5l-5.7,1.7l-0.7,4.7l-6.1-0.4L558,108l-8.2-1.6l-5.4,1.4l-11.6,4.8l4.1,0.8 l17.8-0.5l-10.6,2.2l-1.5,1.6l5.9-0.1l12.2-2.2l13.8-0.8l5.1-2.3l2.3-2.4l-3.7-0.2l-4.3,0.8C573.9,109.5,574.6,107.7,574.6,107.7z M629.8,103.4l-7.1-0.3l-3.8,2l2.6,1.5l7,0.6l1.4,2.1l-2.2,2.4l-1.5,2.8l8.5,1.6l5.5,0.6l8-0.1l11.6-0.8l4.3,0.6l6.7-1l3.5-1.4l1-2 l-2.3-1.9l-5.8-0.3l-8,0.4l-7,1.1l-5.1-0.4l-4.8-0.3l-1.2-1.1l-3.1-1.1l2.8-1.9l-1.4-1.6l-7.3,0.1L629.8,103.4L629.8,103.4z M554.8,100.8l-6,0.7l-5.5-0.1l-12.1,3.1l-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2-0.9l7.9-0.8l9.3-3.5l6.8-1.1l10.3-2.5h-7.4l3.9-0.9l9-0.8l9.7-1.6l1.1-1.1l-5.2-1l-6.7-0.4 L749.6,77.8L749.6,77.8z"},CV:{d:"M841.4,477.6l0.1-0.4l-0.2-0.6l-0.3-0.1l-0.6,0.4l-0.1,0.3l0.1,0.3l0.3,0.3l0.3,0.1L841.4,477.6L841.4,477.6z M847.7,475.9l0.4-0.2V475l-0.1-0.3h-0.4l-0.2,0.4v0.1v0.4L847.7,475.9L847.7,475.9L847.7,475.9z M846.3,476.7l-0.5-0.9l-0.3-0.1 l-0.6-0.7v-0.3l-0.3-0.1v0.2v0.4l-0.2,0.5v0.5l0.4,0.8l0.4,0.2l0.7,0.1L846.3,476.7L846.3,476.7z M849.4,468.9v0.5l-0.3,0.7l0.5,0.3 l0.3,0.1l0.6-0.4l0.2-0.5l-0.1-0.3l-0.3-0.3l-0.3-0.1l-0.1,0.1L849.4,468.9L849.4,468.9z M843,466.4l-1-0.1l-0.6-0.2h-0.1v0.3 l0.4,0.8l0.2-0.5l0.2-0.1l0.8,0.2l0.4-0.1l-0.1-0.1L843,466.4L843,466.4z M849.7,466.2l-0.1-0.5V465h-0.2l-0.3,0.2l0.1,0.7l0.1,0.1 l0.2,0.5L849.7,466.2L849.7,466.2z M838.6,465.2V465l-0.3-0.5l-0.3,0.1l-0.4,0.2l-0.1,0.3l0.4,0.2h0.2L838.6,465.2L838.6,465.2z M837.1,464.3l0.8-0.6l0.2-0.3l-0.2-0.5l-0.5-0.1l-1.2,0.6l-0.1,0.2l0.1,0.3l0.1,0.5l0.2,0.1L837.1,464.3L837.1,464.3z"},KY:{d:"M527,449.1l-0.1-0.3l-0.1,0.1v0.6h0.5h0.2l0.3-0.2h0.6l-0.1-0.2l-0.8-0.1l-0.1,0.1l-0.2,0.1L527,449.1L527,449.1z M535,446.8L535,446.8l-0.1-0.1h-0.1l-0.3,0.1h-0.1h-0.1l-0.1,0.1l-0.1,0.1h0.2l0.4-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.1,1.4l0.4,2.6l-2.2,4.1 l-1,3.9l-1.9,1l1,5.8l-1.1,1.8l3.4,2.7l2.1-2.9l1.3,2.8l-2.9,4.7l0.7,2.7l-1.5,1.5l0.2,2.3l2.3-0.5l2.3,0.7l2.5,3.2l3.1-2.6l0.9-4.3 l3.3-5.5l6.7-2.5l6-6.7l1.7-4.1L553.1,573.1z"},EG:{d:"M1129.7,374.8l-5.5-1.9l-5.3-1.7l-7.1,0.2l-1.8,3l1.1,2.7l-1.2,3.9l2,5.1l1.3,22.7l1,23.4h22.1h21.4h21.8l-1-1.3 l-6.8-5.7l-0.4-4.2l1-1.1l-5.3-7l-2-3.6l-2.3-3.5l-4.8-9.9l-3.9-6.4l-2.8-6.7l0.5-0.6l4.6,9.1l2.7,2.9l2,2l1.2-1.1l1.2-3.3l0.7-4.8 l1.3-2.5l-0.7-1.7l-3.9-9.2l0,0l-2.5,1.6l-4.2-0.4l-4.4-1.5l-1.1,2.1l-1.7-3.2l-3.9-0.8l-4.7,0.6l-2.1,1.8l-3.9,2L1129.7,374.8 L1129.7,374.8z"},SV:{d:"M487.2,487l0.6-2.5l-0.7-0.7l-1.1-0.5l-2.5,0.8l-0.1-0.9l-1.6-1l-1.1-1.3l-1.5-0.5l-1.4,0.4l0.2,0.7l-1.1,0.7 l-2.1,1.6l-0.2,1l1.4,1.3l3.1,0.4l2.2,1.3l1.9,0.6l3.3,0.1L487.2,487L487.2,487z"},GQ:{d:"M 1040.1 557.8 l -9.2 -0.2 l -1.9 7.2 l 1 0.9 l 1.9 -0.3 h 8.2 V 557.8 L 1040.1 557.8 z M 1023 551 L 1023.6 550.2 L 1023.6 549.8 L 1024.6 548.25 L 1024.45 547.5 L 1023.04 547.4 L 1022.5 548.2 L 1022.55 548.55 L 1022.25 549.36 L 1021.55 549.5 L 1021.25 550.15 L 1021.5 550.7 L 1023 551 M 1003.8 580.2 L 1003.9 580.44 L 1003.82 580.62 L 1003.65 580.55 L 1003.63 580.232 L 1003.8 580.2"},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l0.1-0.3 l-0.4-0.3l-0.4-0.1l-0.9,0.1L692.3,896.9L692.3,896.9z"},FO:{d:"M947,186.9v-0.3l-0.1-0.3v-0.2h-0.1l-0.5-0.1l-0.1-0.2h-0.1v0.2l0.1,0.4l0.5,0.4L947,186.9L947,186.9L947,186.9zM947.5,184.8v-0.1l-0.2-0.2l-0.5-0.2l-0.2-0.1l-0.2,0.1v0.2l0.1,0.1l0.4,0.1l0.4,0.3h0.1L947.5,184.8L947.5,184.8z M945.1,182.9l-0.2-0.1l-0.5,0.1h-0.3l0.1,0.3l0.6,0.2h0.3h0.3l0.2-0.1l-0.1-0.2L945.1,182.9L945.1,182.9z M947.6,182.4l-0.8-0.2l-0.6-0.3l-1,0.1l0.7,1.1l0.8,0.7l0.4,0.2v-0.1v-0.2l-0.4-0.5l-0.1-0.1V183l0.1-0.1h0.2l0.3,0.2h0.2L947.6,182.4L947.6,182.4z M948.6,182.2l-0.3-0.2l-0.4-0.4v0.5v0.3v0.1h0.1l0.3,0.1L948.6,182.2L948.6,182.2z"},FJ:{d:"M1976.7,674.4l-3.7,2l-1.9,0.3l-3.1,1.3l0.2,2.4l3.9-1.3l3.9-1.6L1976.7,674.4L1976.7,674.4z M1965.7,682.5l-1.6,1 l-2.3-0.8l-2.7,2.2l-0.2,2.8l2.9,0.8l3.6-0.9l1.8-3.3L1965.7,682.5L1965.7,682.5z"},FI:{d:"M1093.4,144.4l0.8-3.8l-5.7-2.1l-5.8,1.8l-1.1,3.9l-3.4,2.4l-4.7-1.3l-5.3,0.3l-5.1-2.9l-2.1,1.4l5.9,2.7l7.2,3.7 l1.7,8.4l1.9,2.2l6.4,2.6l0.9,2.3l-2.6,1.2l-8.7,6.1l-3.3,3.6l-1.5,3.3l2.9,5.2l-0.1,5.7l4.7,1.9l3.1,3.1l7.1-1.2l7.5-2.1l8-0.5l0,0 l7.9-7.4l3.3-3.3l0.9-2.9l-7.3-3.9l0.9-3.7l-4.9-4.1l1.7-4.8l-6.4-6.3l2.8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1z M218.5,688.9l-0.4-0.5h-0.3L218.5,688.9L218.5,688.9z M196.9,687.9l-0.4-0.4 l-0.2-0.3l-0.3-0.1l0.1,0.1l0.4,0.4l0.3,0.4l0.2,0.1L196.9,687.9z M196.6,685.8l-0.1-0.1l0,0v-0.3l0.2-0.3l0.6-0.4v-0.1l0,0 l-0.2,0.1l-0.4,0.2l-0.2,0.2l-0.1,0.2l-0.1,0.3l0.1,0.2l0.1,0.1h0.2L196.6,685.8L196.6,685.8z M149.2,684.7l-0.2-0.6l-0.3-0.5 l-0.8-0.1l-0.5,0.2l-0.1,0.2l0.1,0.4l0.5,0.7l0.5,0.1l0.8-0.1l0.4,0.6l0.2,0.1l0.4,0.1l0.1-0.3l-0.2-0.5L149.2,684.7L149.2,684.7z M146.3,683.8l0.1-0.4l-0.2-0.1h-0.5v0.2l0.1,0.2l0.1,0.1l0.3,0.2L146.3,683.8L146.3,683.8z M136.6,679.5h0.2l-0.4-0.6l-0.3-0.2v0.1 v0.7l0.3,0.1L136.6,679.5z M180.5,677.9h-0.2H180h-0.1l0.5,0.1l0.4,0.2L180.5,677.9L180.5,677.9z M179.8,678l-0.3-0.1l-0.3-0.2h-0.3 l0.7,0.3H179.8L179.8,678z M136,678.1l0.1-0.2l-0.1-0.1l-0.4-0.2l0.1,0.3v0.2H136L136,678.1L136,678.1z M168.8,676.1l-0.3-0.4 l-0.2-0.3l-0.2-0.4l-0.4-0.5l0.1,0.3l0.1,0.2l0.2,0.2l0.2,0.4l0.1,0.2l0.3,0.4h0.1L168.8,676.1L168.8,676.1z M185,674.6l0.1-0.5 h-0.2L185,674.6L185,674.6L185,674.6z M170.6,673l-0.6-0.6h-0.1l0.1,0.2l0.5,0.5l0.1,0.2V673L170.6,673z M201.4,639.1l0.1-0.2v-0.2 l-0.1-0.1l-0.3-0.1l0.1,0.7L201.4,639.1L201.4,639.1z M198.7,635.4l-0.1-0.2h-0.2l-0.1,0.1v0.5L198.7,635.4L198.7,635.4z M198.8,633.8l-0.8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9.9-4.3l-3.1-4.3l3.3-4.9l2.8-5l8.6-4.7l9.8-2.4l11.3-2.4l1.3-1.5l-4.2-1.9l-6.6,0.6l-4.9,1.8 l-11.7,0.9l-10.1,3.1l-6.8,2.7l2.5,2.2l-6.6,4.4l3.9,0.7l-5.4,4.3l1.6,2.8l-3.4,1.1l1.9,2.8l7.9,1.4l2.2,2.3l13.4,0.7L1207.1,135.6 L1207.1,135.6z M1521.1,110.9l-17.9-2.6l-10.2-0.2l-3.4,0.9l3.4,3.4l12.4,3.2l4.5-1.2l14.2,0.2 C1524.1,114.6,1521.1,110.9,1521.1,110.9z M1546.3,113.2l-11.7-1.3l-8.2-0.7l1.7,1.6l10.3,2l6.8,0.4L1546.3,113.2L1546.3,113.2z M1533.8,122.7l-2.5-1.4l-8.3-1.9l-4.1,0.5l-0.8,2l1.1,0.2l8.8,0.6C1528,122.7,1533.8,122.7,1533.8,122.7z M1696.4,135l-6-3.6 l-1.4,2.2l3.5,1.6L1696.4,135z M1084,228.9l-0.6-1.5l0.2-1.7l-2.2-0.9l-5-1.1l-6.3,2l-0.7,2.6l5.9,0.7L1084,228.9z M1673.7,250.7 l-7.2-6.2l-5.1-6l-6.8-5.8l-4.9-4l-1.3,0.8l4.4,2.8l-1.9,2.8l6.8,8.3l7.8,6l6.4,8.3l2.4,4.6l5.5,6.8l3.8,6l4.6,5.2l-0.1-4.8l6.5,3.8 l-3-4.4l-9.5-6.3l-3.7-9l8.9,2L1673.7,250.7L1673.7,250.7z"},RW:{d:"M1147.6,579.4l-3.3,1.9l-1.4-0.6l-1.6,1.8l-0.2,3.8l-0.8,0.4l-0.6,3.5l3.5,0.5l1.7-3.6l3,0.4l0,0l1.6-0.8l0.4-3.7 L1147.6,579.4L1147.6,579.4z"},KN:{d:"M629.9,463.2v-0.3l-0.2-0.2h-0.3v0.5l0.2,0.2L629.9,463.2z M629.4,462.5l-0.1-0.2l-0.1-0.1l-0.2-0.4l-0.4-0.4 l-0.2,0.1l-0.1,0.2v0.1l0,0l0.3,0.3l0.4,0.1l0.2,0.4L629.4,462.5L629.4,462.5z"},LC:{d:"M637.4,484.2l0.1-1.2l-0.1-0.5l-0.2,0.1l-0.3,0.4l-0.4,0.6l-0.1,0.3v0.6l0.6,0.4L637.4,484.2L637.4,484.2z"},VC:{d:"M634.5,491.4L634.5,491.4v-0.1h0.1v-0.1l0,0v-0.1h-0.1v0.1l0,0v0.1h-0.1L634.5,491.4L634.5,491.4L634.5,491.4 L634.5,491.4z M635.2,489.5l0.1-0.2l0.1-0.1l0,0l0,0l-0.1-0.1l0,0v0.1l-0.2,0.1l0,0v0.1l0,0v0.1H635h-0.1l0,0h0.1l0,0l0.1,0.1l0,0 l0,0l0,0L635.2,489.5L635.2,489.5z M635.5,488.4l0.3-0.2l0.1-0.6l-0.1-0.4h-0.2l-0.3,0.1l-0.2,0.3l-0.1,0.5L635.5,488.4L635.5,488.4 L635.5,488.4z"},SM:{d:"M1040.3,293.5l-0.7,0.1l-0.2-0.9l0.9-0.3L1040.3,293.5z"},ST:{d:"M1014.1,571.4l0.5-0.8v-0.5l-0.3-0.5h-0.4l-0.5,0.4l-0.3,0.4v0.3l0.1,0.7l0.1,0.3l0.3,0.2L1014.1,571.4 L1014.1,571.4z M1018.4,562.2l0.2-0.4v-0.2l-0.1-0.1l-0.1-0.1l-0.2,0.1l-0.3,0.5l0.1,0.2l0.2,0.2L1018.4,562.2L1018.4,562.2z"},SA:{d:"M1228.7,387l-10.2-0.5l-16.7-12.7l-8.5-4.5l-6.7-1.7l-0.9,1l-10.4,3.1l6.1,6.4l-1.7,1l-0.7,2.2l-4,0.8l-1.1,2.3 l-2.1,2l-6.1-1l-0.5,2.5v2.2l-0.6,3.5h2.7l3.2,4.4l3.7,5.1l2.5,4.7l1.7,1.5l1.7,3.3l-0.2,1.4l2.1,3.7l3,1.3l2.8,2.5l3.6,7v3.8 l0.9,4.4l4,6.1l2.5,1l4.1,4.4l1.9,5.2l3.2,5.3l3,2.3l0.6,2.5l1.8,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.4l-1-1l1.1-1.1l-1.4-0.7 l-1.4,1.3l-3.1-1.8L1084.8,285.2L1084.8,285.2z"},SC:{d:"M1288.5,602l-0.5-0.8l-0.4,0.3l0.2,0.3l0.3,0.2l0.1,0.4l0.3,0.2V602L1288.5,602z"},SL:{d:"M919.4,518.7l-1.5,0.3v-2.3L917,515l0.2-1.8l-1.2-2.7l-1.5-2.3H910l-1.3,1.2l-1.5,0.2l-1,1.4l-0.7,1.7l-3,2.8 l0.7,4.7l0.9,2.3l2.9,3.5l4.1,2.5l1.5,0.5l1.3-2l0.3-1.9l2.6-3.4L919.4,518.7L919.4,518.7z"},SG:{d:"M1561,563.7l0.1-0.2l-0.2-0.2l-0.3-0.1l-0.5-0.2l-0.6,0.1l-0.3,0.6l0.9,0.4L1561,563.7L1561,563.7z"},SX:{d:"M627.1,457.2L627.1,457.2l0.2,0.2l0.3,0.1l0.1-0.1v-0.2H627.1z"},SK:{d:"M1087.4,260.9l-4.9-2.3l-3.4,0.8l-2.4-0.6l-2.8,1.3l-2.7-2.2l-1.9,0.9l-0.3-0.4h-1.5l-0.6,1.1l-1.1,0.3l-0.2,1.4 l-0.9,0.3l-0.1,0.6l-1.6,0.6l-2.2-0.1l-0.6,1.4l-0.3,0.8l0.7,2.1l2.6,1.6l1.9,0.7l4.1-0.8l0.3-1.2l1.9-0.2l2.3-1l0.6,0.4l2.2-0.7 l1-1.5l1.6-0.4l5.5,1.9l1-0.6l0.7-2.5L1087.4,260.9L1087.4,260.9z"},SI:{d:"M1059.4,277l-1.2-2.1l-0.8-0.1l-0.9,1.1l-4.3,0.1l-2.4,1.4l-4.2-0.4l-0.3,3l1.4,2.7l-1.1,0.5l3.5,0.2l0.8-1l1.8,1 l2,0.1l-0.2-1.7l1.7-0.6l0.3-2.5L1059.4,277L1059.4,277z"},SB:{d:"M1909.1,646.4l-0.2-0.2l-0.1-0.4h-0.3l-0.3,0.1l0.2,0.6h0.2L1909.1,646.4L1909.1,646.4z M1873.5,647.2l-0.1-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630.2 L1867.9,630.2z M1859.5,627.9l-0.1-0.2l-0.3-0.2h-0.2l-0.5,0.1l0.1,0.1l0.6,0.3l0.3,0.1L1859.5,627.9L1859.5,627.9z M1862.6,628.3 l0.3-0.2l-0.1-0.2l-0.1-0.5l-0.4,0.7l0.1,0.2H1862.6z M1862.1,627.4v-0.2V627l-0.2-0.1l0.4-0.3l-0.1-0.1l-0.6-0.2l-0.2,0.2l-0.2,0.1 l-0.1,0.1l-0.1,0.1l-0.1,0.5l0.2,0.4l0.4,0.2L1862.1,627.4L1862.1,627.4z M1858.1,627.6l-0.3-0.4l0.1-0.5l0.2-0.1l0.2-0.5l-0.1-0.4 l-0.2,0.1l-0.7,0.6l-0.1,0.3l0.6,0.8L1858.1,627.6L1858.1,627.6L1858.1,627.6z M1871.1,626.3l-0.2-0.4v-0.2l-0.3-0.2l-0.2,0.1 l-0.1,0.3l0.1,0.2l0.4,0.3L1871.1,626.3L1871.1,626.3z M1877.1,625.1h-0.2l-0.1,0.1h-0.2h-0.3l-0.1,0.2l0.6,1.1l-0.3,0.5l0.4,2.2 l0.4,1.2l0.8,0.8v0.2l0.8,0.5l0.6,1.3l0.2,0.1l0.1-0.2v-0.6l-0.5-1.1l0.1-0.8l-0.2-0.3V630l-0.2-0.8l-0.6-0.7l-0.3-0.1l-0.2-0.3 l0.2-0.6l0.2-0.2l0.1-0.3L1877.1,625.1L1877.1,625.1z M1860.5,624.6l-0.6-0.2l-0.2-0.3v-1l-0.6-0.3l-0.3,0.2l-0.6,0.7l-0.2,0.4 l-0.5,0.3l-0.1,0.3v0.4l0.4,0.1l0.3-0.4l0.9-0.1l0.3,0.1v0.4l0.1,0.7l0.3,0.3l0.5,0.2l0.4,0.6l0.1-0.3h0.2l0.2-0.4l-0.3-1.2 L1860.5,624.6L1860.5,624.6z M1854,624.2l0.1-0.5l-0.1-0.9l-0.2,0.1v0.2l-0.1,0.4L1854,624.2L1854,624.2z M1857.2,623.8l0.2-0.2 v-0.4v-0.5l-0.2-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1.9l-7.6-2l-2.9,0.1l-3.6-2.9l-3.5,1l-6.6-2.2l-0.2-1.2l-2.2-2.7l-4.7-2.1l0.9-1.3L1138.5,241L1138.5,241z"}},e.prototype.createTooltip=function(){if(this.tooltip)return!1;this.tooltip=this.createElement("div","svgMap-tooltip",document.getElementsByTagName("body")[0]),this.tooltipContent=this.createElement("div","svgMap-tooltip-content-wrapper",this.tooltip),this.tooltipPointer=this.createElement("div","svgMap-tooltip-pointer",this.tooltip)},e.prototype.setTooltipContent=function(t){this.tooltip&&(this.tooltipContent.innerHTML="",this.tooltipContent.append(t))},e.prototype.showTooltip=function(t){this.tooltip.classList.add("svgMap-active"),this.moveTooltip(t)},e.prototype.hideTooltip=function(){this.tooltip.classList.remove("svgMap-active")},e.prototype.moveTooltip=function(t){var e,n,i,r,o=t.pageX||(t.touches&&t.touches[0]?t.touches[0].pageX:null),l=t.pageY||(t.touches&&t.touches[0]?t.touches[0].pageY:null);null!==o&&null!==l&&(e=window.innerWidth,n=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,(r=o-n/2)<=6?(o=6+n/2,this.tooltipPointer.style.marginLeft=r-6+"px"):e-6<=r+n?(o=e-6-n/2,this.tooltipPointer.style.marginLeft=-1*(e-6-t.pageX-n/2)+"px"):this.tooltipPointer.style.marginLeft="0px",l-12-i<=6?(this.tooltip.classList.add("svgMap-tooltip-flipped"),l+=32):(this.tooltip.classList.remove("svgMap-tooltip-flipped"),l-=12),this.tooltip.style.left=o+"px",this.tooltip.style.top=l+"px")},e.prototype.error=function(t){(console.error||console.log)("svgMap error: "+(t||"Unknown error"))},e.prototype.createElement=function(t,e,n,i){var r=document.createElement(t);return e&&(e=e.split(" ")).forEach((function(t){r.classList.add(t)})),i&&(r.innerHTML=i),n&&n.appendChild(r),r},e.prototype.numberWithCommas=function(t,e){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e||",")},e.prototype.getColor=function(t,e,n){t=t.slice(-6),e=e.slice(-6),n=parseFloat(n).toFixed(1);var i=Math.ceil(parseInt(t.substring(0,2),16)*n+parseInt(e.substring(0,2),16)*(1-n)),r=Math.ceil(parseInt(t.substring(2,4),16)*n+parseInt(e.substring(2,4),16)*(1-n));n=Math.ceil(parseInt(t.substring(4,6),16)*n+parseInt(e.substring(4,6),16)*(1-n));return"#"+this.getHex(i)+this.getHex(r)+this.getHex(n)},e.prototype.getHex=function(t){return("0"+(t=t.toString(16))).slice(-2)},e.prototype.getCountryName=function(t){return(this.options.countryNames&&this.options.countryNames[t]?this.options.countryNames:this.countries)[t]},e}!function t(e,n,i){function r(l,s){if(!n[l]){if(!e[l]){var a="function"==typeof require&&require;if(!s&&a)return a(l,!0);if(o)return o(l,!0);var c=new Error("Cannot find module '"+l+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[l]={exports:{}};e[l][0].call(u.exports,(function(t){return r(e[l][1][t]||t)}),u,u.exports,t,e,n,i)}return n[l].exports}for(var o="function"==typeof require&&require,l=0;l<i.length;l++)r(i[l]);return r}({1:[function(t,e,n){var i=t("dragula");!function(){this.jKanban=function(){var t=this,e={enabled:!1},n={enabled:!1};this._disallowedItemProperties=["id","title","click","drag","dragend","drop","order"],this.element="",this.container="",this.boardContainer=[],this.handlers=[],this.dragula=i,this.drake="",this.drakeBoard="",this.itemAddOptions=n,this.itemHandleOptions=e;var r={element:"",gutter:"15px",widthBoard:"250px",responsive:"700",responsivePercentage:!1,boards:[],dragBoards:!0,dragItems:!0,itemAddOptions:n,itemHandleOptions:e,dragEl:function(t,e){},dragendEl:function(t){},dropEl:function(t,e,n,i){},dragBoard:function(t,e){},dragendBoard:function(t){},dropBoard:function(t,e,n,i){},click:function(t){},buttonClick:function(t,e){}};function o(e,n){e.addEventListener("click",(function(e){e.preventDefault(),t.options.click(this),"function"==typeof this.clickfn&&this.clickfn(this)}))}function l(e,n){e.addEventListener("click",(function(e){e.preventDefault(),t.options.buttonClick(this,n)}))}function s(e){var n=[];return t.options.boards.map((function(t){if(t.id===e)return n.push(t)})),n[0]}function a(e,n){for(var i in n)t._disallowedItemProperties.indexOf(i)>-1||e.setAttribute("data-"+i,n[i])}function c(e){var n=e;if(t.options.itemHandleOptions.enabled)if(void 0===(t.options.itemHandleOptions.customHandler||void 0)){var i=t.options.itemHandleOptions.customCssHandler,r=t.options.itemHandleOptions.customCssIconHandler;void 0===(i||void 0)&&(i="drag_handler"),void 0===(r||void 0)&&(r=i+"_icon"),n="<div class='item_handle "+i+"'><i class='item_handle "+r+"'></i></div><div>"+n+"</div>"}else n=t.options.itemHandleOptions.customHandler.replace("%s",n);return n}arguments[0]&&"object"==typeof arguments[0]&&(this.options=function(t,e){var n;for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(r,arguments[0])),this.__getCanMove=function(e){return t.options.itemHandleOptions.enabled?t.options.itemHandleOptions.handleClass?e.classList.contains(t.options.itemHandleOptions.handleClass):e.classList.contains("item_handle"):!!t.options.dragItems},this.init=function(){!function(){t.element=document.querySelector(t.options.element);var e=document.createElement("div");e.classList.add("kanban-container"),t.container=e,document.querySelector(t.options.element).dataset.hasOwnProperty("board")?(url=document.querySelector(t.options.element).dataset.board,window.fetch(url,{method:"GET",headers:{"Content-Type":"application/json"}}).then(e=>{e.json().then((function(e){t.options.boards=e,t.addBoards(t.options.boards,!0)}))}).catch(t=>{console.log("Error: ",t)})):t.addBoards(t.options.boards,!0),t.element.appendChild(t.container)}(),window.innerWidth>t.options.responsive&&(t.drakeBoard=t.dragula([t.container],{moves:function(e,n,i,r){return!!t.options.dragBoards&&(i.classList.contains("kanban-board-header")||i.classList.contains("kanban-title-board"))},accepts:function(t,e,n,i){return e.classList.contains("kanban-container")},revertOnSpill:!0,direction:"horizontal"}).on("drag",(function(e,n){e.classList.add("is-moving"),t.options.dragBoard(e,n),"function"==typeof e.dragfn&&e.dragfn(e,n)})).on("dragend",(function(e){!function(){for(var e=1,n=0;n<t.container.childNodes.length;n++)t.container.childNodes[n].dataset.order=e++}(),e.classList.remove("is-moving"),t.options.dragendBoard(e),"function"==typeof e.dragendfn&&e.dragendfn(e)})).on("drop",(function(e,n,i,r){e.classList.remove("is-moving"),t.options.dropBoard(e,n,i,r),"function"==typeof e.dropfn&&e.dropfn(e,n,i,r)})),t.drake=t.dragula(t.boardContainer,{moves:function(e,n,i,r){return t.__getCanMove(i)},revertOnSpill:!0}).on("cancel",(function(e,n,i){t.enableAllBoards()})).on("drag",(function(e,n){var i=e.getAttribute("class");if(""!==i&&i.indexOf("not-draggable")>-1)t.drake.cancel(!0);else{e.classList.add("is-moving"),t.options.dragEl(e,n);var r=s(n.parentNode.dataset.id);void 0!==r.dragTo&&t.options.boards.map((function(e){-1===r.dragTo.indexOf(e.id)&&e.id!==n.parentNode.dataset.id&&t.findBoard(e.id).classList.add("disabled-board")})),null!==e&&"function"==typeof e.dragfn&&e.dragfn(e,n)}})).on("dragend",(function(e){t.options.dragendEl(e),null!==e&&"function"==typeof e.dragendfn&&e.dragendfn(e)})).on("drop",(function(e,n,i,r){t.enableAllBoards();var o=s(i.parentNode.dataset.id);void 0!==o.dragTo&&-1===o.dragTo.indexOf(n.parentNode.dataset.id)&&n.parentNode.dataset.id!==i.parentNode.dataset.id&&t.drake.cancel(!0),null!==e&&(!1===t.options.dropEl(e,n,i,r)&&t.drake.cancel(!0),e.classList.remove("is-moving"),"function"==typeof e.dropfn&&e.dropfn(e,n,i,r))})))},this.enableAllBoards=function(){var t=document.querySelectorAll(".kanban-board");if(t.length>0&&void 0!==t)for(var e=0;e<t.length;e++)t[e].classList.remove("disabled-board")},this.addElement=function(e,n){var i=t.element.querySelector('[data-id="'+e+'"] .kanban-drag'),r=document.createElement("div");return r.classList.add("kanban-item"),void 0!==n.id&&""!==n.id&&r.setAttribute("data-eid",n.id),n.class&&Array.isArray(n.class)&&n.class.forEach((function(t){r.classList.add(t)})),r.innerHTML=c(n.title),r.clickfn=n.click,r.dragfn=n.drag,r.dragendfn=n.dragend,r.dropfn=n.drop,a(r,n),o(r),t.options.itemHandleOptions.enabled&&(r.style.cursor="default"),i.appendChild(r),t},this.addForm=function(e,n){var i=t.element.querySelector('[data-id="'+e+'"] .kanban-drag'),r=n.getAttribute("class");return n.setAttribute("class",r+" not-draggable"),i.appendChild(n),t},this.addBoards=function(e,n){if(t.options.responsivePercentage)if(t.container.style.width="100%",t.options.gutter="1%",window.innerWidth>t.options.responsive)var i=(100-2*e.length)/e.length;else i=100-2*e.length;else i=t.options.widthBoard;var r=t.options.itemAddOptions.enabled,s=t.options.itemAddOptions.content,u=t.options.itemAddOptions.class,d=t.options.itemAddOptions.footer;for(var h in e){var p=e[h];n||t.options.boards.push(p),t.options.responsivePercentage||(""===t.container.style.width?t.container.style.width=parseInt(i)+2*parseInt(t.options.gutter)+"px":t.container.style.width=parseInt(t.container.style.width)+parseInt(i)+2*parseInt(t.options.gutter)+"px");var f=document.createElement("div");f.dataset.id=p.id,f.dataset.order=t.container.childNodes.length+1,f.classList.add("kanban-board"),t.options.responsivePercentage?f.style.width=i+"%":f.style.width=i,f.style.marginLeft=t.options.gutter,f.style.marginRight=t.options.gutter;var g=document.createElement("header");if(""!==p.class&&void 0!==p.class)var m=p.class.split(",");else m=[];g.classList.add("kanban-board-header"),m.map((function(t){t=t.replace(/^[ ]+/g,""),g.classList.add(t)})),g.innerHTML='<div class="kanban-title-board">'+p.title+"</div>";var v=document.createElement("main");if(v.classList.add("kanban-drag"),""!==p.bodyClass&&void 0!==p.bodyClass)var y=p.bodyClass.split(",");else y=[];for(var b in y.map((function(t){v.classList.add(t)})),t.boardContainer.push(v),p.item){var _=p.item[b],w=document.createElement("div");w.classList.add("kanban-item"),_.id&&(w.dataset.eid=_.id),_.class&&Array.isArray(_.class)&&_.class.forEach((function(t){w.classList.add(t)})),w.innerHTML=c(_.title),w.clickfn=_.click,w.dragfn=_.drag,w.dragendfn=_.dragend,w.dropfn=_.drop,a(w,_),o(w),t.options.itemHandleOptions.enabled&&(w.style.cursor="default"),v.appendChild(w)}var x=document.createElement("footer");if(r){var E=document.createElement("BUTTON"),S=document.createTextNode(s||"+");E.setAttribute("class",u||"kanban-title-button btn btn-default btn-xs"),E.appendChild(S),d?x.appendChild(E):g.appendChild(E),l(E,p.id)}f.appendChild(g),f.appendChild(v),f.appendChild(x),t.container.appendChild(f)}return t},this.findBoard=function(e){return t.element.querySelector('[data-id="'+e+'"]')},this.getParentBoardID=function(e){return"string"==typeof e&&(e=t.element.querySelector('[data-eid="'+e+'"]')),null===e?null:e.parentNode.parentNode.dataset.id},this.moveElement=function(t,e,n){if(t!==this.getParentBoardID(e))return this.removeElement(e),this.addElement(t,n)},this.replaceElement=function(e,n){var i=e;return"string"==typeof i&&(i=t.element.querySelector('[data-eid="'+e+'"]')),i.innerHTML=n.title,i.clickfn=n.click,i.dragfn=n.drag,i.dragendfn=n.dragend,i.dropfn=n.drop,a(i,n),t},this.findElement=function(e){return t.element.querySelector('[data-eid="'+e+'"]')},this.getBoardElements=function(e){return t.element.querySelector('[data-id="'+e+'"] .kanban-drag').childNodes},this.removeElement=function(e){return"string"==typeof e&&(e=t.element.querySelector('[data-eid="'+e+'"]')),null!==e&&("function"==typeof e.remove?e.remove():e.parentNode.removeChild(e)),t},this.removeBoard=function(e){var n=null;"string"==typeof e&&(n=t.element.querySelector('[data-id="'+e+'"]')),null!==n&&("function"==typeof n.remove?n.remove():n.parentNode.removeChild(n));for(var i=0;i<t.options.boards.length;i++)if(t.options.boards[i].id===e){t.options.boards.splice(i,1);break}return t},this.onButtonClick=function(t){},this.init()}}()},{dragula:9}],2:[function(t,e,n){e.exports=function(t,e){return Array.prototype.slice.call(t,e)}},{}],3:[function(t,e,n){"use strict";var i=t("ticky");e.exports=function(t,e,n){t&&i((function(){t.apply(n||null,e||[])}))}},{ticky:11}],4:[function(t,e,n){"use strict";var i=t("atoa"),r=t("./debounce");e.exports=function(t,e){var n=e||{},o={};return void 0===t&&(t={}),t.on=function(e,n){return o[e]?o[e].push(n):o[e]=[n],t},t.once=function(e,n){return n._once=!0,t.on(e,n),t},t.off=function(e,n){var i=arguments.length;if(1===i)delete o[e];else if(0===i)o={};else{var r=o[e];if(!r)return t;r.splice(r.indexOf(n),1)}return t},t.emit=function(){var e=i(arguments);return t.emitterSnapshot(e.shift()).apply(this,e)},t.emitterSnapshot=function(e){var l=(o[e]||[]).slice(0);return function(){var o=i(arguments),s=this||t;if("error"===e&&!1!==n.throws&&!l.length)throw 1===o.length?o[0]:o;return l.forEach((function(i){n.async?r(i,o,s):i.apply(s,o),i._once&&t.off(e,i)})),t}},t}},{"./debounce":3,atoa:2}],5:[function(t,e,n){(function(n){(function(){"use strict";var i=t("custom-event"),r=t("./eventmap"),o=n.document,l=function(t,e,n,i){return t.addEventListener(e,n,i)},s=function(t,e,n,i){return t.removeEventListener(e,n,i)},a=[];function c(t,e,n){var i=function(t,e,n){var i,r;for(i=0;i<a.length;i++)if((r=a[i]).element===t&&r.type===e&&r.fn===n)return i}(t,e,n);if(i){var r=a[i].wrapper;return a.splice(i,1),r}}n.addEventListener||(l=function(t,e,i){return t.attachEvent("on"+e,function(t,e,i){var r=c(t,e,i)||function(t,e,i){return function(e){var r=e||n.event;r.target=r.target||r.srcElement,r.preventDefault=r.preventDefault||function(){r.returnValue=!1},r.stopPropagation=r.stopPropagation||function(){r.cancelBubble=!0},r.which=r.which||r.keyCode,i.call(t,r)}}(t,0,i);return a.push({wrapper:r,element:t,type:e,fn:i}),r}(t,e,i))},s=function(t,e,n){var i=c(t,e,n);if(i)return t.detachEvent("on"+e,i)}),e.exports={add:l,remove:s,fabricate:function(t,e,n){var l=-1===r.indexOf(e)?new i(e,{detail:n}):function(){var t;return o.createEvent?(t=o.createEvent("Event")).initEvent(e,!0,!0):o.createEventObject&&(t=o.createEventObject()),t}();t.dispatchEvent?t.dispatchEvent(l):t.fireEvent("on"+e,l)}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./eventmap":6,"custom-event":7}],6:[function(t,e,n){(function(t){(function(){"use strict";var n=[],i="",r=/^on/;for(i in t)r.test(i)&&n.push(i.slice(2));e.exports=n}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(t,e,n){(function(t){(function(){var n=t.CustomEvent;e.exports=function(){try{var t=new n("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?n:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,e){var n=document.createEvent("CustomEvent");return e?n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):n.initCustomEvent(t,!1,!1,void 0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.bubbles=Boolean(e.bubbles),n.cancelable=Boolean(e.cancelable),n.detail=e.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(t,e,n){"use strict";var i={};function r(t){var e=i[t];return e?e.lastIndex=0:i[t]=e=new RegExp("(?:^|\\s)"+t+"(?:\\s|$)","g"),e}e.exports={add:function(t,e){var n=t.className;n.length?r(e).test(n)||(t.className+=" "+e):t.className=e},rm:function(t,e){t.className=t.className.replace(r(e)," ").trim()}}},{}],9:[function(t,e,n){(function(n){(function(){"use strict";var i=t("contra/emitter"),r=t("crossvent"),o=t("./classes"),l=document,s=l.documentElement;function a(t,e,i,o){n.navigator.pointerEnabled?r[e](t,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[i],o):n.navigator.msPointerEnabled?r[e](t,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[i],o):(r[e](t,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[i],o),r[e](t,i,o))}function c(t){if(void 0!==t.touches)return t.touches.length;if(void 0!==t.which&&0!==t.which)return t.which;if(void 0!==t.buttons)return t.buttons;var e=t.button;return void 0!==e?1&e?1:2&e?3:4&e?2:0:void 0}function u(t,e){return void 0!==n[e]?n[e]:s.clientHeight?s[t]:l.body[t]}function d(t,e,n){var i,r=(t=t||{}).className||"";return t.className+=" gu-hide",i=l.elementFromPoint(e,n),t.className=r,i}function h(){return!1}function p(){return!0}function f(t){return t.width||t.right-t.left}function g(t){return t.height||t.bottom-t.top}function m(t){return t.parentNode===l?null:t.parentNode}function v(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||function t(e){return!!e&&("false"!==e.contentEditable&&("true"===e.contentEditable||t(m(e))))}(t)}function y(t){return t.nextElementSibling||function(){var e=t;do{e=e.nextSibling}while(e&&1!==e.nodeType);return e}()}function b(t,e){var n=function(t){return t.targetTouches&&t.targetTouches.length?t.targetTouches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t}(e),i={pageX:"clientX",pageY:"clientY"};return t in i&&!(t in n)&&i[t]in n&&(t=i[t]),n[t]}e.exports=function(t,e){var n,_,w,x,E,S,C,M,k,D,T;1===arguments.length&&!1===Array.isArray(t)&&(e=t,t=[]);var L,A=null,P=e||{};void 0===P.moves&&(P.moves=p),void 0===P.accepts&&(P.accepts=p),void 0===P.invalid&&(P.invalid=function(){return!1}),void 0===P.containers&&(P.containers=t||[]),void 0===P.isContainer&&(P.isContainer=h),void 0===P.copy&&(P.copy=!1),void 0===P.copySortSource&&(P.copySortSource=!1),void 0===P.revertOnSpill&&(P.revertOnSpill=!1),void 0===P.removeOnSpill&&(P.removeOnSpill=!1),void 0===P.direction&&(P.direction="vertical"),void 0===P.ignoreInputTextSelection&&(P.ignoreInputTextSelection=!0),void 0===P.mirrorContainer&&(P.mirrorContainer=l.body);var O=i({containers:P.containers,start:function(t){var e=j(t);e&&V(e)},end:W,cancel:G,remove:q,destroy:function(){R(!0),Y({})},canMove:function(t){return!!j(t)},dragging:!1});return!0===P.removeOnSpill&&O.on("over",(function(t){o.rm(t,"gu-hide")})).on("out",(function(t){O.dragging&&o.add(t,"gu-hide")})),R(),O;function I(t){return-1!==O.containers.indexOf(t)||P.isContainer(t)}function R(t){var e=t?"remove":"add";a(s,e,"mousedown",H),a(s,e,"mouseup",Y)}function N(t){a(s,t?"remove":"add","mousemove",B)}function z(t){var e=t?"remove":"add";r[e](s,"selectstart",F),r[e](s,"click",F)}function F(t){L&&t.preventDefault()}function H(t){if(S=t.clientX,C=t.clientY,1===c(t)&&!t.metaKey&&!t.ctrlKey){var e=t.target,n=j(e);n&&(L=n,N(),"mousedown"===t.type&&(v(e)?e.focus():t.preventDefault()))}}function B(t){if(L)if(0!==c(t)){if(!(void 0!==t.clientX&&Math.abs(t.clientX-S)<=(P.slideFactorX||0)&&void 0!==t.clientY&&Math.abs(t.clientY-C)<=(P.slideFactorY||0))){if(P.ignoreInputTextSelection){var e=b("clientX",t)||0,i=b("clientY",t)||0;if(v(l.elementFromPoint(e,i)))return}var r=L;N(!0),z(),W(),V(r);var d,h={left:(d=w.getBoundingClientRect()).left+u("scrollLeft","pageXOffset"),top:d.top+u("scrollTop","pageYOffset")};x=b("pageX",t)-h.left,E=b("pageY",t)-h.top,o.add(D||w,"gu-transit"),function(){if(!n){var t=w.getBoundingClientRect();(n=w.cloneNode(!0)).style.width=f(t)+"px",n.style.height=g(t)+"px",o.rm(n,"gu-transit"),o.add(n,"gu-mirror"),P.mirrorContainer.appendChild(n),a(s,"add","mousemove",Q),o.add(P.mirrorContainer,"gu-unselectable"),O.emit("cloned",n,w,"mirror")}}(),Q(t)}}else Y({})}function j(t){if(!(O.dragging&&n||I(t))){for(var e=t;m(t)&&!1===I(m(t));){if(P.invalid(t,e))return;if(!(t=m(t)))return}var i=m(t);if(i&&!P.invalid(t,e)&&P.moves(t,i,e,y(t)))return{item:t,source:i}}}function V(t){var e,n;e=t.item,n=t.source,("boolean"==typeof P.copy?P.copy:P.copy(e,n))&&(D=t.item.cloneNode(!0),O.emit("cloned",D,t.item,"copy")),_=t.source,w=t.item,M=k=y(t.item),O.dragging=!0,O.emit("drag",w,_)}function W(){if(O.dragging){var t=D||w;$(t,m(t))}}function U(){L=!1,N(!0),z(!0)}function Y(t){if(U(),O.dragging){var e=D||w,i=b("clientX",t)||0,r=b("clientY",t)||0,o=X(d(n,i,r),i,r);o&&(D&&P.copySortSource||!D||o!==_)?$(e,o):P.removeOnSpill?q():G()}}function $(t,e){var n=m(t);D&&P.copySortSource&&e===_&&n.removeChild(w),K(e)?O.emit("cancel",t,_,_):O.emit("drop",t,e,_,k),Z()}function q(){if(O.dragging){var t=D||w,e=m(t);e&&e.removeChild(t),O.emit(D?"cancel":"remove",t,e,_),Z()}}function G(t){if(O.dragging){var e=arguments.length>0?t:P.revertOnSpill,n=D||w,i=m(n),r=K(i);!1===r&&e&&(D?i&&i.removeChild(D):_.insertBefore(n,M)),r||e?O.emit("cancel",n,_,_):O.emit("drop",n,i,_,k),Z()}}function Z(){var t=D||w;U(),n&&(o.rm(P.mirrorContainer,"gu-unselectable"),a(s,"remove","mousemove",Q),m(n).removeChild(n),n=null),t&&o.rm(t,"gu-transit"),T&&clearTimeout(T),O.dragging=!1,A&&O.emit("out",t,A,_),O.emit("dragend",t),_=w=D=M=k=T=A=null}function K(t,e){var i;return i=void 0!==e?e:n?k:y(D||w),t===_&&i===M}function X(t,e,n){for(var i=t;i&&!r();)i=m(i);return i;function r(){if(!1===I(i))return!1;var r=J(i,t),o=tt(i,r,e,n);return!!K(i,o)||P.accepts(w,i,_,o)}}function Q(t){if(n){t.preventDefault();var e=b("clientX",t)||0,i=b("clientY",t)||0,r=e-x,o=i-E;n.style.left=r+"px",n.style.top=o+"px";var l=D||w,s=d(n,e,i),a=X(s,e,i),c=null!==a&&a!==A;(c||null===a)&&(A&&f("out"),A=a,c&&f("over"));var u=m(l);if(a!==_||!D||P.copySortSource){var h,p=J(a,s);if(null!==p)h=tt(a,p,e,i);else{if(!0!==P.revertOnSpill||D)return void(D&&u&&u.removeChild(l));h=M,a=_}(null===h&&c||h!==l&&h!==y(l))&&(k=h,a.insertBefore(l,h),O.emit("shadow",l,a,_))}else u&&u.removeChild(l)}function f(t){O.emit(t,l,A,_)}}function J(t,e){for(var n=e;n!==t&&m(n)!==t;)n=m(n);return n===s?null:n}function tt(t,e,n,i){var r,o="horizontal"===P.direction;return e!==t?(r=e.getBoundingClientRect(),function(t){return t?y(e):e}(o?n>r.left+f(r)/2:i>r.top+g(r)/2)):function(){var e,r,l,s=t.children.length;for(e=0;e<s;e++){if(l=(r=t.children[e]).getBoundingClientRect(),o&&l.left+l.width/2>n)return r;if(!o&&l.top+l.height/2>i)return r}return null}()}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./classes":8,"contra/emitter":4,crossvent:5}],10:[function(t,e,n){var i,r,o=e.exports={};function l(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(i===setTimeout)return setTimeout(t,0);if((i===l||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:l}catch(t){i=l}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var c,u=[],d=!1,h=-1;function p(){d&&c&&(d=!1,c.length?u=c.concat(u):h=-1,u.length&&f())}function f(){if(!d){var t=a(p);d=!0;for(var e=u.length;e;){for(c=u,u=[];++h<e;)c&&c[h].run();h=-1,e=u.length}c=null,d=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function m(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new g(t,e)),1!==u.length||d||a(f)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],11:[function(t,e,n){(function(t){(function(){var n;n="function"==typeof t?function(e){t(e)}:function(t){setTimeout(t,0)},e.exports=n}).call(this)}).call(this,t("timers").setImmediate)},{timers:12}],12:[function(t,e,n){(function(e,i){(function(){var r=t("process/browser.js").nextTick,o=Function.prototype.apply,l=Array.prototype.slice,s={},a=0;function c(t,e){this._id=t,this._clearFn=e}n.setTimeout=function(){return new c(o.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new c(o.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(t){t.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},n.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},n._unrefActive=n.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n.setImmediate="function"==typeof e?e:function(t){var e=a++,i=!(arguments.length<2)&&l.call(arguments,1);return s[e]=!0,r((function(){s[e]&&(i?t.apply(null,i):t.call(null),n.clearImmediate(e))})),e},n.clearImmediate="function"==typeof i?i:function(t){delete s[t]}}).call(this)}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":10,timers:12}]},{},[1]),function(){"use strict";function t(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function e(t){return t[t.length-1]}function n(t,...e){return e.forEach(e=>{t.includes(e)||t.push(e)}),t}function i(t,e){return t?t.split(e):[]}function r(t,e,n){return(void 0===e||t>=e)&&(void 0===n||t<=n)}function o(t,e,n){return t<e?e:t>n?n:t}function l(t,e,n={},i=0,r=""){r+=`<${Object.keys(n).reduce((t,e)=>{let r=n[e];return"function"==typeof r&&(r=r(i)),`${t} ${e}="${r}"`},t)}></${t}>`;const o=i+1;return o<e?l(t,e,n,o,r):r}function s(t){return t.replace(/>\s+/g,">").replace(/\s+</,"<")}function a(t){return new Date(t).setHours(0,0,0,0)}function c(){return(new Date).setHours(0,0,0,0)}function u(...t){switch(t.length){case 0:return c();case 1:return a(t[0])}const e=new Date(0);return e.setFullYear(...t),e.setHours(0,0,0,0)}function d(t,e){const n=new Date(t);return n.setDate(n.getDate()+e)}function h(t,e){const n=new Date(t),i=n.getMonth()+e;let r=i%12;r<0&&(r+=12);const o=n.setMonth(i);return n.getMonth()!==r?n.setDate(0):o}function p(t,e){const n=new Date(t),i=n.getMonth(),r=n.setFullYear(n.getFullYear()+e);return 1===i&&2===n.getMonth()?n.setDate(0):r}function f(t,e){return(t-e+7)%7}function g(t,e,n=0){const i=new Date(t).getDay();return d(t,f(e,n)-f(i,n))}function m(t,e){const n=new Date(t).getFullYear();return Math.floor(n/e)*e}function v(t,e,n){if(1!==e&&2!==e)return t;const i=new Date(t);return 1===e?n?i.setMonth(i.getMonth()+1,0):i.setDate(1):n?i.setFullYear(i.getFullYear()+1,0,0):i.setMonth(0,1),i.setHours(0,0,0,0)}const y=/dd?|DD?|mm?|MM?|yy?(?:yy)?/,b=/[\s!-/:-@[-`{-~年月日]+/;let _={};const w={y:(t,e)=>new Date(t).setFullYear(parseInt(e,10)),m(t,e,n){const i=new Date(t);let r=parseInt(e,10)-1;if(isNaN(r)){if(!e)return NaN;const t=e.toLowerCase(),i=e=>e.toLowerCase().startsWith(t);if(r=n.monthsShort.findIndex(i),r<0&&(r=n.months.findIndex(i)),r<0)return NaN}return i.setMonth(r),i.getMonth()!==function t(e){return e>-1?e%12:t(e+12)}(r)?i.setDate(0):i.getTime()},d:(t,e)=>new Date(t).setDate(parseInt(e,10))},x={d:t=>t.getDate(),dd:t=>E(t.getDate(),2),D:(t,e)=>e.daysShort[t.getDay()],DD:(t,e)=>e.days[t.getDay()],m:t=>t.getMonth()+1,mm:t=>E(t.getMonth()+1,2),M:(t,e)=>e.monthsShort[t.getMonth()],MM:(t,e)=>e.months[t.getMonth()],y:t=>t.getFullYear(),yy:t=>E(t.getFullYear(),2).slice(-2),yyyy:t=>E(t.getFullYear(),4)};function E(t,e){return t.toString().padStart(e,"0")}function S(t){if("string"!=typeof t)throw new Error("Invalid date format.");if(t in _)return _[t];const n=t.split(y),i=t.match(new RegExp(y,"g"));if(0===n.length||!i)throw new Error("Invalid date format.");const r=i.map(t=>x[t]),o=Object.keys(w).reduce((t,e)=>(i.find(t=>"D"!==t[0]&&t[0].toLowerCase()===e)&&t.push(e),t),[]);return _[t]={parser(t,e){const n=t.split(b).reduce((t,e,n)=>{if(e.length>0&&i[n]){const r=i[n][0];"M"===r?t.m=e:"D"!==r&&(t[r]=e)}return t},{});return o.reduce((t,i)=>{const r=w[i](t,n[i],e);return isNaN(r)?t:r},c())},formatter:(t,i)=>r.reduce((e,r,o)=>e+`${n[o]}${r(t,i)}`,"")+e(n)}}function C(t,e,n){if(t instanceof Date||"number"==typeof t){const e=a(t);return isNaN(e)?void 0:e}if(t){if("today"===t)return c();if(e&&e.toValue){const i=e.toValue(t,e,n);return isNaN(i)?void 0:a(i)}return S(e).parser(t,n)}}function M(t,e,n){if(isNaN(t)||!t&&0!==t)return"";const i="number"==typeof t?new Date(t):t;return e.toDisplay?e.toDisplay(i,e,n):S(e).formatter(i,n)}const k=document.createRange();function D(t){return k.createContextualFragment(t)}function T(t){return t.parentElement||(t.parentNode instanceof ShadowRoot?t.parentNode.host:void 0)}function L(t){return t.getRootNode().activeElement===t}function A(t){"none"!==t.style.display&&(t.style.display&&(t.dataset.styleDisplay=t.style.display),t.style.display="none")}function P(t){"none"===t.style.display&&(t.dataset.styleDisplay?(t.style.display=t.dataset.styleDisplay,delete t.dataset.styleDisplay):t.style.display="")}function O(t){t.firstChild&&(t.removeChild(t.firstChild),O(t))}const I=new WeakMap,{addEventListener:R,removeEventListener:N}=EventTarget.prototype;function z(t,e){let n=I.get(t);n||(n=[],I.set(t,n)),e.forEach(t=>{R.call(...t),n.push(t)})}function F(t){let e=I.get(t);e&&(e.forEach(t=>{N.call(...t)}),I.delete(t))}if(!Event.prototype.composedPath){const t=(e,n=[])=>{let i;return n.push(e),e.parentNode?i=e.parentNode:e.host?i=e.host:e.defaultView&&(i=e.defaultView),i?t(i,n):n};Event.prototype.composedPath=function(){return t(this.target)}}function H(t,e){const n="function"==typeof e?e:t=>t instanceof Element&&t.matches(e);return function t(e,n,i){const[r,...o]=e;return n(r)?r:r!==i&&"HTML"!==r.tagName&&0!==o.length?t(o,n,i):void 0}(t.composedPath(),n,t.currentTarget)}const B={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM y"}},j={autohide:!1,beforeShowDay:null,beforeShowDecade:null,beforeShowMonth:null,beforeShowYear:null,calendarWeeks:!1,clearBtn:!1,dateDelimiter:",",datesDisabled:[],daysOfWeekDisabled:[],daysOfWeekHighlighted:[],defaultViewDate:void 0,disableTouchKeyboard:!1,format:"mm/dd/yyyy",language:"en",maxDate:null,maxNumberOfDates:1,maxView:3,minDate:null,nextArrow:"»",orientation:"auto",pickLevel:0,prevArrow:"«",showDaysOfWeek:!0,showOnClick:!0,showOnFocus:!0,startView:0,title:"",todayBtn:!1,todayBtnMode:0,todayHighlight:!1,updateOnBlur:!0,weekStart:0},{language:V,format:W,weekStart:U}=j;function Y(t,e){return t.length<6&&e>=0&&e<7?n(t,e):t}function $(t){return(t+6)%7}function q(t,e,n,i){const r=C(t,e,n);return void 0!==r?r:i}function G(t,e,n=3){const i=parseInt(t,10);return i>=0&&i<=n?i:e}function Z(e,i){const r=Object.assign({},e),o={},l=i.constructor.locales,s=i.rangeSideIndex;let{format:a,language:c,locale:d,maxDate:h,maxView:p,minDate:f,pickLevel:g,startView:m,weekStart:b}=i.config||{};if(r.language){let t;if(r.language!==c&&(l[r.language]?t=r.language:(t=r.language.split("-")[0],void 0===l[t]&&(t=!1))),delete r.language,t){c=o.language=t;const e=d||l[V];d=Object.assign({format:W,weekStart:U},l[V]),c!==V&&Object.assign(d,l[c]),o.locale=d,a===e.format&&(a=o.format=d.format),b===e.weekStart&&(b=o.weekStart=d.weekStart,o.weekEnd=$(d.weekStart))}}if(r.format){const t="function"==typeof r.format.toDisplay,e="function"==typeof r.format.toValue,n=y.test(r.format);(t&&e||n)&&(a=o.format=r.format),delete r.format}let _=g;void 0!==r.pickLevel&&(_=G(r.pickLevel,2),delete r.pickLevel),_!==g&&(_>g&&(void 0===r.minDate&&(r.minDate=f),void 0===r.maxDate&&(r.maxDate=h)),r.datesDisabled||(r.datesDisabled=[]),g=o.pickLevel=_);let w=f,x=h;if(void 0!==r.minDate){const t=u(0,0,1);w=null===r.minDate?t:q(r.minDate,a,d,w),w!==t&&(w=v(w,g,!1)),delete r.minDate}if(void 0!==r.maxDate&&(x=null===r.maxDate?void 0:q(r.maxDate,a,d,x),void 0!==x&&(x=v(x,g,!0)),delete r.maxDate),x<w?(f=o.minDate=x,h=o.maxDate=w):(f!==w&&(f=o.minDate=w),h!==x&&(h=o.maxDate=x)),r.datesDisabled&&(o.datesDisabled=r.datesDisabled.reduce((t,e)=>{const i=C(e,a,d);return void 0!==i?n(t,v(i,g,s)):t},[]),delete r.datesDisabled),void 0!==r.defaultViewDate){const t=C(r.defaultViewDate,a,d);void 0!==t&&(o.defaultViewDate=t),delete r.defaultViewDate}if(void 0!==r.weekStart){const t=Number(r.weekStart)%7;isNaN(t)||(b=o.weekStart=t,o.weekEnd=$(t)),delete r.weekStart}if(r.daysOfWeekDisabled&&(o.daysOfWeekDisabled=r.daysOfWeekDisabled.reduce(Y,[]),delete r.daysOfWeekDisabled),r.daysOfWeekHighlighted&&(o.daysOfWeekHighlighted=r.daysOfWeekHighlighted.reduce(Y,[]),delete r.daysOfWeekHighlighted),void 0!==r.maxNumberOfDates){const t=parseInt(r.maxNumberOfDates,10);t>=0&&(o.maxNumberOfDates=t,o.multidate=1!==t),delete r.maxNumberOfDates}r.dateDelimiter&&(o.dateDelimiter=String(r.dateDelimiter),delete r.dateDelimiter);let E=p;void 0!==r.maxView&&(E=G(r.maxView,p),delete r.maxView),E=g>E?g:E,E!==p&&(p=o.maxView=E);let S=m;if(void 0!==r.startView&&(S=G(r.startView,S),delete r.startView),S<g?S=g:S>p&&(S=p),S!==m&&(o.startView=S),r.prevArrow){const t=D(r.prevArrow);t.childNodes.length>0&&(o.prevArrow=t.childNodes),delete r.prevArrow}if(r.nextArrow){const t=D(r.nextArrow);t.childNodes.length>0&&(o.nextArrow=t.childNodes),delete r.nextArrow}if(void 0!==r.disableTouchKeyboard&&(o.disableTouchKeyboard="ontouchstart"in document&&!!r.disableTouchKeyboard,delete r.disableTouchKeyboard),r.orientation){const t=r.orientation.toLowerCase().split(/\s+/g);o.orientation={x:t.find(t=>"left"===t||"right"===t)||"auto",y:t.find(t=>"top"===t||"bottom"===t)||"auto"},delete r.orientation}if(void 0!==r.todayBtnMode){switch(r.todayBtnMode){case 0:case 1:o.todayBtnMode=r.todayBtnMode}delete r.todayBtnMode}return Object.keys(r).forEach(e=>{void 0!==r[e]&&t(j,e)&&(o[e]=r[e])}),o}const K=s('<div class="datepicker">\n <div class="datepicker-picker">\n <div class="datepicker-header">\n <div class="datepicker-title"></div>\n <div class="datepicker-controls">\n <button type="button" class="%buttonClass% prev-btn"></button>\n <button type="button" class="%buttonClass% view-switch"></button>\n <button type="button" class="%buttonClass% next-btn"></button>\n </div>\n </div>\n <div class="datepicker-main"></div>\n <div class="datepicker-footer">\n <div class="datepicker-controls">\n <button type="button" class="%buttonClass% today-btn"></button>\n <button type="button" class="%buttonClass% clear-btn"></button>\n </div>\n </div>\n </div>\n</div>'),X=s(`<div class="days">\n <div class="days-of-week">${l("span",7,{class:"dow"})}</div>\n <div class="datepicker-grid">${l("span",42)}</div>\n</div>`),Q=s(`<div class="calendar-weeks">\n <div class="days-of-week"><span class="dow"></span></div>\n <div class="weeks">${l("span",6,{class:"week"})}</div>\n</div>`);class J{constructor(t,e){Object.assign(this,e,{picker:t,element:D('<div class="datepicker-view"></div>').firstChild,selected:[]}),this.init(this.picker.datepicker.config)}init(t){void 0!==t.pickLevel&&(this.isMinView=this.id===t.pickLevel),this.setOptions(t),this.updateFocus(),this.updateSelection()}performBeforeHook(t,e,i){let r=this.beforeShow(new Date(i));switch(typeof r){case"boolean":r={enabled:r};break;case"string":r={classes:r}}if(r){if(!1===r.enabled&&(t.classList.add("disabled"),n(this.disabled,e)),r.classes){const i=r.classes.split(/\s+/);t.classList.add(...i),i.includes("disabled")&&n(this.disabled,e)}r.content&&function(t,e){O(t),e instanceof DocumentFragment?t.appendChild(e):"string"==typeof e?t.appendChild(D(e)):"function"==typeof e.forEach&&e.forEach(e=>{t.appendChild(e)})}(t,r.content)}}}class tt extends J{constructor(t){super(t,{id:0,name:"days",cellClass:"day"})}init(t,e=!0){if(e){const t=D(X).firstChild;this.dow=t.firstChild,this.grid=t.lastChild,this.element.appendChild(t)}super.init(t)}setOptions(e){let n;if(t(e,"minDate")&&(this.minDate=e.minDate),t(e,"maxDate")&&(this.maxDate=e.maxDate),e.datesDisabled&&(this.datesDisabled=e.datesDisabled),e.daysOfWeekDisabled&&(this.daysOfWeekDisabled=e.daysOfWeekDisabled,n=!0),e.daysOfWeekHighlighted&&(this.daysOfWeekHighlighted=e.daysOfWeekHighlighted),void 0!==e.todayHighlight&&(this.todayHighlight=e.todayHighlight),void 0!==e.weekStart&&(this.weekStart=e.weekStart,this.weekEnd=e.weekEnd,n=!0),e.locale){const t=this.locale=e.locale;this.dayNames=t.daysMin,this.switchLabelFormat=t.titleFormat,n=!0}if(void 0!==e.beforeShowDay&&(this.beforeShow="function"==typeof e.beforeShowDay?e.beforeShowDay:void 0),void 0!==e.calendarWeeks)if(e.calendarWeeks&&!this.calendarWeeks){const t=D(Q).firstChild;this.calendarWeeks={element:t,dow:t.firstChild,weeks:t.lastChild},this.element.insertBefore(t,this.element.firstChild)}else this.calendarWeeks&&!e.calendarWeeks&&(this.element.removeChild(this.calendarWeeks.element),this.calendarWeeks=null);void 0!==e.showDaysOfWeek&&(e.showDaysOfWeek?(P(this.dow),this.calendarWeeks&&P(this.calendarWeeks.dow)):(A(this.dow),this.calendarWeeks&&A(this.calendarWeeks.dow))),n&&Array.from(this.dow.children).forEach((t,e)=>{const n=(this.weekStart+e)%7;t.textContent=this.dayNames[n],t.className=this.daysOfWeekDisabled.includes(n)?"dow disabled":"dow"})}updateFocus(){const t=new Date(this.picker.viewDate),e=t.getFullYear(),n=t.getMonth(),i=u(e,n,1),r=g(i,this.weekStart,this.weekStart);this.first=i,this.last=u(e,n+1,0),this.start=r,this.focused=this.picker.viewDate}updateSelection(){const{dates:t,rangepicker:e}=this.picker.datepicker;this.selected=t,e&&(this.range=e.dates)}render(){this.today=this.todayHighlight?c():void 0,this.disabled=[...this.datesDisabled];const t=M(this.focused,this.switchLabelFormat,this.locale);if(this.picker.setViewSwitchLabel(t),this.picker.setPrevBtnDisabled(this.first<=this.minDate),this.picker.setNextBtnDisabled(this.last>=this.maxDate),this.calendarWeeks){const t=g(this.first,1,1);Array.from(this.calendarWeeks.weeks.children).forEach((e,n)=>{e.textContent=function(t){const e=g(t,4,1),n=g(new Date(e).setMonth(0,4),4,1);return Math.round((e-n)/6048e5)+1}(d(t,7*n))})}Array.from(this.grid.children).forEach((t,e)=>{const i=t.classList,r=d(this.start,e),o=new Date(r),l=o.getDay();if(t.className="datepicker-cell "+this.cellClass,t.dataset.date=r,t.textContent=o.getDate(),r<this.first?i.add("prev"):r>this.last&&i.add("next"),this.today===r&&i.add("today"),(r<this.minDate||r>this.maxDate||this.disabled.includes(r))&&i.add("disabled"),this.daysOfWeekDisabled.includes(l)&&(i.add("disabled"),n(this.disabled,r)),this.daysOfWeekHighlighted.includes(l)&&i.add("highlighted"),this.range){const[t,e]=this.range;r>t&&r<e&&i.add("range"),r===t&&i.add("range-start"),r===e&&i.add("range-end")}this.selected.includes(r)&&i.add("selected"),r===this.focused&&i.add("focused"),this.beforeShow&&this.performBeforeHook(t,r,r)})}refresh(){const[t,e]=this.range||[];this.grid.querySelectorAll(".range, .range-start, .range-end, .selected, .focused").forEach(t=>{t.classList.remove("range","range-start","range-end","selected","focused")}),Array.from(this.grid.children).forEach(n=>{const i=Number(n.dataset.date),r=n.classList;i>t&&i<e&&r.add("range"),i===t&&r.add("range-start"),i===e&&r.add("range-end"),this.selected.includes(i)&&r.add("selected"),i===this.focused&&r.add("focused")})}refreshFocus(){const t=Math.round((this.focused-this.start)/864e5);this.grid.querySelectorAll(".focused").forEach(t=>{t.classList.remove("focused")}),this.grid.children[t].classList.add("focused")}}function et(t,e){if(!t||!t[0]||!t[1])return;const[[n,i],[r,o]]=t;return n>e||r<e?void 0:[n===e?i:-1,r===e?o:12]}class nt extends J{constructor(t){super(t,{id:1,name:"months",cellClass:"month"})}init(t,e=!0){e&&(this.grid=this.element,this.element.classList.add("months","datepicker-grid"),this.grid.appendChild(D(l("span",12,{"data-month":t=>t})))),super.init(t)}setOptions(e){if(e.locale&&(this.monthNames=e.locale.monthsShort),t(e,"minDate"))if(void 0===e.minDate)this.minYear=this.minMonth=this.minDate=void 0;else{const t=new Date(e.minDate);this.minYear=t.getFullYear(),this.minMonth=t.getMonth(),this.minDate=t.setDate(1)}if(t(e,"maxDate"))if(void 0===e.maxDate)this.maxYear=this.maxMonth=this.maxDate=void 0;else{const t=new Date(e.maxDate);this.maxYear=t.getFullYear(),this.maxMonth=t.getMonth(),this.maxDate=u(this.maxYear,this.maxMonth+1,0)}this.isMinView?e.datesDisabled&&(this.datesDisabled=e.datesDisabled):this.datesDisabled=[],void 0!==e.beforeShowMonth&&(this.beforeShow="function"==typeof e.beforeShowMonth?e.beforeShowMonth:void 0)}updateFocus(){const t=new Date(this.picker.viewDate);this.year=t.getFullYear(),this.focused=t.getMonth()}updateSelection(){const{dates:t,rangepicker:e}=this.picker.datepicker;this.selected=t.reduce((t,e)=>{const i=new Date(e),r=i.getFullYear(),o=i.getMonth();return void 0===t[r]?t[r]=[o]:n(t[r],o),t},{}),e&&e.dates&&(this.range=e.dates.map(t=>{const e=new Date(t);return isNaN(e)?void 0:[e.getFullYear(),e.getMonth()]}))}render(){this.disabled=this.datesDisabled.reduce((t,e)=>{const n=new Date(e);return this.year===n.getFullYear()&&t.push(n.getMonth()),t},[]),this.picker.setViewSwitchLabel(this.year),this.picker.setPrevBtnDisabled(this.year<=this.minYear),this.picker.setNextBtnDisabled(this.year>=this.maxYear);const t=this.selected[this.year]||[],e=this.year<this.minYear||this.year>this.maxYear,n=this.year===this.minYear,i=this.year===this.maxYear,r=et(this.range,this.year);Array.from(this.grid.children).forEach((o,l)=>{const s=o.classList,a=u(this.year,l,1);if(o.className="datepicker-cell "+this.cellClass,this.isMinView&&(o.dataset.date=a),o.textContent=this.monthNames[l],(e||n&&l<this.minMonth||i&&l>this.maxMonth||this.disabled.includes(l))&&s.add("disabled"),r){const[t,e]=r;l>t&&l<e&&s.add("range"),l===t&&s.add("range-start"),l===e&&s.add("range-end")}t.includes(l)&&s.add("selected"),l===this.focused&&s.add("focused"),this.beforeShow&&this.performBeforeHook(o,l,a)})}refresh(){const t=this.selected[this.year]||[],[e,n]=et(this.range,this.year)||[];this.grid.querySelectorAll(".range, .range-start, .range-end, .selected, .focused").forEach(t=>{t.classList.remove("range","range-start","range-end","selected","focused")}),Array.from(this.grid.children).forEach((i,r)=>{const o=i.classList;r>e&&r<n&&o.add("range"),r===e&&o.add("range-start"),r===n&&o.add("range-end"),t.includes(r)&&o.add("selected"),r===this.focused&&o.add("focused")})}refreshFocus(){this.grid.querySelectorAll(".focused").forEach(t=>{t.classList.remove("focused")}),this.grid.children[this.focused].classList.add("focused")}}class it extends J{constructor(t,e){super(t,e)}init(t,e=!0){var n;e&&(this.navStep=10*this.step,this.beforeShowOption="beforeShow"+(n=this.cellClass,[...n].reduce((t,e,n)=>t+(n?e:e.toUpperCase()),"")),this.grid=this.element,this.element.classList.add(this.name,"datepicker-grid"),this.grid.appendChild(D(l("span",12)))),super.init(t)}setOptions(e){if(t(e,"minDate")&&(void 0===e.minDate?this.minYear=this.minDate=void 0:(this.minYear=m(e.minDate,this.step),this.minDate=u(this.minYear,0,1))),t(e,"maxDate")&&(void 0===e.maxDate?this.maxYear=this.maxDate=void 0:(this.maxYear=m(e.maxDate,this.step),this.maxDate=u(this.maxYear,11,31))),this.isMinView?e.datesDisabled&&(this.datesDisabled=e.datesDisabled):this.datesDisabled=[],void 0!==e[this.beforeShowOption]){const t=e[this.beforeShowOption];this.beforeShow="function"==typeof t?t:void 0}}updateFocus(){const t=new Date(this.picker.viewDate),e=m(t,this.navStep),n=e+9*this.step;this.first=e,this.last=n,this.start=e-this.step,this.focused=m(t,this.step)}updateSelection(){const{dates:t,rangepicker:e}=this.picker.datepicker;this.selected=t.reduce((t,e)=>n(t,m(e,this.step)),[]),e&&e.dates&&(this.range=e.dates.map(t=>{if(void 0!==t)return m(t,this.step)}))}render(){this.disabled=this.datesDisabled.map(t=>new Date(t).getFullYear()),this.picker.setViewSwitchLabel(`${this.first}-${this.last}`),this.picker.setPrevBtnDisabled(this.first<=this.minYear),this.picker.setNextBtnDisabled(this.last>=this.maxYear),Array.from(this.grid.children).forEach((t,e)=>{const n=t.classList,i=this.start+e*this.step,r=u(i,0,1);if(t.className="datepicker-cell "+this.cellClass,this.isMinView&&(t.dataset.date=r),t.textContent=t.dataset.year=i,0===e?n.add("prev"):11===e&&n.add("next"),(i<this.minYear||i>this.maxYear||this.disabled.includes(i))&&n.add("disabled"),this.range){const[t,e]=this.range;i>t&&i<e&&n.add("range"),i===t&&n.add("range-start"),i===e&&n.add("range-end")}this.selected.includes(i)&&n.add("selected"),i===this.focused&&n.add("focused"),this.beforeShow&&this.performBeforeHook(t,i,r)})}refresh(){const[t,e]=this.range||[];this.grid.querySelectorAll(".range, .range-start, .range-end, .selected, .focused").forEach(t=>{t.classList.remove("range","range-start","range-end","selected","focused")}),Array.from(this.grid.children).forEach(n=>{const i=Number(n.textContent),r=n.classList;i>t&&i<e&&r.add("range"),i===t&&r.add("range-start"),i===e&&r.add("range-end"),this.selected.includes(i)&&r.add("selected"),i===this.focused&&r.add("focused")})}refreshFocus(){const t=Math.round((this.focused-this.start)/this.step);this.grid.querySelectorAll(".focused").forEach(t=>{t.classList.remove("focused")}),this.grid.children[t].classList.add("focused")}}function rt(t,e){const n={date:t.getDate(),viewDate:new Date(t.picker.viewDate),viewId:t.picker.currentView.id,datepicker:t};t.element.dispatchEvent(new CustomEvent(e,{detail:n}))}function ot(t,e){const{minDate:n,maxDate:i}=t.config,{currentView:r,viewDate:l}=t.picker;let s;switch(r.id){case 0:s=h(l,e);break;case 1:s=p(l,e);break;default:s=p(l,e*r.navStep)}s=o(s,n,i),t.picker.changeFocus(s).render()}function lt(t){const e=t.picker.currentView.id;e!==t.config.maxView&&t.picker.changeView(e+1).render()}function st(t){t.config.updateOnBlur?t.update({revert:!0}):t.refresh("input"),t.hide()}function at(t,e){const n=t.picker,i=new Date(n.viewDate),r=n.currentView.id,o=1===r?h(i,e-i.getMonth()):p(i,e-i.getFullYear());n.changeFocus(o).changeView(r-1).render()}function ct(t){const e=t.picker,n=c();if(1===t.config.todayBtnMode){if(t.config.autohide)return void t.setDate(n);t.setDate(n,{render:!1}),e.update()}e.viewDate!==n&&e.changeFocus(n),e.changeView(0).render()}function ut(t){t.setDate({clear:!0})}function dt(t){lt(t)}function ht(t){ot(t,-1)}function pt(t){ot(t,1)}function ft(t,e){const n=H(e,".datepicker-cell");if(!n||n.classList.contains("disabled"))return;const{id:i,isMinView:r}=t.picker.currentView;r?t.setDate(Number(n.dataset.date)):at(t,Number(1===i?n.dataset.month:n.dataset.year))}function gt(t){t.preventDefault()}const mt=["left","top","right","bottom"].reduce((t,e)=>(t[e]="datepicker-orient-"+e,t),{}),vt=t=>t?t+"px":t;function yt(e,n){if(void 0!==n.title&&(n.title?(e.controls.title.textContent=n.title,P(e.controls.title)):(e.controls.title.textContent="",A(e.controls.title))),n.prevArrow){const t=e.controls.prevBtn;O(t),n.prevArrow.forEach(e=>{t.appendChild(e.cloneNode(!0))})}if(n.nextArrow){const t=e.controls.nextBtn;O(t),n.nextArrow.forEach(e=>{t.appendChild(e.cloneNode(!0))})}if(n.locale&&(e.controls.todayBtn.textContent=n.locale.today,e.controls.clearBtn.textContent=n.locale.clear),void 0!==n.todayBtn&&(n.todayBtn?P(e.controls.todayBtn):A(e.controls.todayBtn)),t(n,"minDate")||t(n,"maxDate")){const{minDate:t,maxDate:n}=e.datepicker.config;e.controls.todayBtn.disabled=!r(c(),t,n)}void 0!==n.clearBtn&&(n.clearBtn?P(e.controls.clearBtn):A(e.controls.clearBtn))}function bt(t){const{dates:n,config:i}=t;return o(n.length>0?e(n):i.defaultViewDate,i.minDate,i.maxDate)}function _t(t,e){const n=new Date(t.viewDate),i=new Date(e),{id:r,year:o,first:l,last:s}=t.currentView,a=i.getFullYear();switch(t.viewDate=e,a!==n.getFullYear()&&rt(t.datepicker,"changeYear"),i.getMonth()!==n.getMonth()&&rt(t.datepicker,"changeMonth"),r){case 0:return e<l||e>s;case 1:return a!==o;default:return a<l||a>s}}function wt(t){return window.getComputedStyle(t).direction}class xt{constructor(t){const{config:e}=this.datepicker=t,n=K.replace(/%buttonClass%/g,e.buttonClass),i=this.element=D(n).firstChild,[r,o,l]=i.firstChild.children,s=r.firstElementChild,[a,c,u]=r.lastElementChild.children,[d,h]=l.firstChild.children,p={title:s,prevBtn:a,viewSwitch:c,nextBtn:u,todayBtn:d,clearBtn:h};this.main=o,this.controls=p;const f=t.inline?"inline":"dropdown";i.classList.add("datepicker-"+f),yt(this,e),this.viewDate=bt(t),z(t,[[i,"mousedown",gt],[o,"click",ft.bind(null,t)],[p.viewSwitch,"click",dt.bind(null,t)],[p.prevBtn,"click",ht.bind(null,t)],[p.nextBtn,"click",pt.bind(null,t)],[p.todayBtn,"click",ct.bind(null,t)],[p.clearBtn,"click",ut.bind(null,t)]]),this.views=[new tt(this),new nt(this),new it(this,{id:2,name:"years",cellClass:"year",step:1}),new it(this,{id:3,name:"decades",cellClass:"decade",step:10})],this.currentView=this.views[e.startView],this.currentView.render(),this.main.appendChild(this.currentView.element),e.container?e.container.appendChild(this.element):t.inputField.after(this.element)}setOptions(t){yt(this,t),this.views.forEach(e=>{e.init(t,!1)}),this.currentView.render()}detach(){this.element.remove()}show(){if(this.active)return;const{datepicker:t,element:e}=this;if(t.inline)e.classList.add("active");else{const n=wt(t.inputField);n!==wt(T(e))?e.dir=n:e.dir&&e.removeAttribute("dir"),e.style.visiblity="hidden",e.classList.add("active"),this.place(),e.style.visiblity="",t.config.disableTouchKeyboard&&t.inputField.blur()}this.active=!0,rt(t,"show")}hide(){this.active&&(this.datepicker.exitEditMode(),this.element.classList.remove("active"),this.active=!1,rt(this.datepicker,"hide"))}place(){const{classList:t,offsetParent:e,style:n}=this.element,{config:i,inputField:r}=this.datepicker,{width:o,height:l}=this.element.getBoundingClientRect(),{left:s,top:a,right:c,bottom:u,width:d,height:h}=r.getBoundingClientRect();let{x:p,y:f}=i.orientation,g=s,m=a;if(e!==document.body&&e){const t=e.getBoundingClientRect();g-=t.left-e.scrollLeft,m-=t.top-e.scrollTop}else g+=window.scrollX,m+=window.scrollY;const v=function t(e){const n=T(e);if(n!==document.body&&n)return"visible"!==window.getComputedStyle(n).overflow?n:t(n)}(r);let y=0,b=0,{clientWidth:_,clientHeight:w}=document.documentElement;if(v){const t=v.getBoundingClientRect();t.top>0&&(b=t.top),t.left>0&&(y=t.left),t.right<_&&(_=t.right),t.bottom<w&&(w=t.bottom)}let x=0;"auto"===p&&(s<y?(p="left",x=y-s):s+o>_?(p="right",_<c&&(x=_-c)):p="rtl"===wt(r)?c-o<y?"left":"right":"left"),"right"===p&&(g+=d-o),g+=x,"auto"===f&&(f=a-l>b&&u+l>w?"top":"bottom"),"top"===f?m-=l:m+=h,t.remove(...Object.values(mt)),t.add(mt[p],mt[f]),n.left=vt(g),n.top=vt(m)}setViewSwitchLabel(t){this.controls.viewSwitch.textContent=t}setPrevBtnDisabled(t){this.controls.prevBtn.disabled=t}setNextBtnDisabled(t){this.controls.nextBtn.disabled=t}changeView(t){const e=this.currentView,n=this.views[t];return n.id!==e.id&&(this.currentView=n,this._renderMethod="render",rt(this.datepicker,"changeView"),this.main.replaceChild(n.element,e.element)),this}changeFocus(t){return this._renderMethod=_t(this,t)?"render":"refreshFocus",this.views.forEach(t=>{t.updateFocus()}),this}update(){const t=bt(this.datepicker);return this._renderMethod=_t(this,t)?"render":"refresh",this.views.forEach(t=>{t.updateFocus(),t.updateSelection()}),this}render(t=!0){const e=t&&this._renderMethod||"render";delete this._renderMethod,this.currentView[e]()}}function Et(t,e,n,i){const o=t.picker,l=o.currentView,s=l.step||1;let a,c,u=o.viewDate;switch(l.id){case 0:u=i?d(u,7*n):e.ctrlKey||e.metaKey?p(u,n):d(u,n),a=d,c=t=>l.disabled.includes(t);break;case 1:u=h(u,i?4*n:n),a=h,c=t=>{const e=new Date(t),{year:n,disabled:i}=l;return e.getFullYear()===n&&i.includes(e.getMonth())};break;default:u=p(u,n*(i?4:1)*s),a=p,c=t=>l.disabled.includes(m(t,s))}u=function t(e,n,i,o,l,s){if(r(e,l,s)){if(o(e)){return t(n(e,i),n,i,o,l,s)}return e}}(u,a,n<0?-s:s,c,l.minDate,l.maxDate),void 0!==u&&o.changeFocus(u).render()}function St(t,e){const n=e.key;if("Tab"===n)return void st(t);const i=t.picker,{id:r,isMinView:o}=i.currentView;if(i.active){if(t.editMode)return void("Enter"===n?t.exitEditMode({update:!0,autohide:t.config.autohide}):"Escape"===n&&i.hide());if("ArrowLeft"===n)if(e.ctrlKey||e.metaKey)ot(t,-1);else{if(e.shiftKey)return void t.enterEditMode();Et(t,e,-1,!1)}else if("ArrowRight"===n)if(e.ctrlKey||e.metaKey)ot(t,1);else{if(e.shiftKey)return void t.enterEditMode();Et(t,e,1,!1)}else if("ArrowUp"===n)if(e.ctrlKey||e.metaKey)lt(t);else{if(e.shiftKey)return void t.enterEditMode();Et(t,e,-1,!0)}else if("ArrowDown"===n){if(e.shiftKey&&!e.ctrlKey&&!e.metaKey)return void t.enterEditMode();Et(t,e,1,!0)}else{if("Enter"!==n)return void("Escape"===n?i.hide():"Backspace"!==n&&"Delete"!==n&&(1!==n.length||e.ctrlKey||e.metaKey)||t.enterEditMode());if(o)return void t.setDate(i.viewDate);i.changeView(r-1).render()}}else{if("ArrowDown"!==n)return void("Enter"===n?t.update():"Escape"===n&&i.show());i.show()}e.preventDefault()}function Ct(t){t.config.showOnFocus&&!t._showing&&t.show()}function Mt(t,e){const n=e.target;(t.picker.active||t.config.showOnClick)&&(n._active=L(n),n._clicking=setTimeout(()=>{delete n._active,delete n._clicking},2e3))}function kt(t,e){const n=e.target;n._clicking&&(clearTimeout(n._clicking),delete n._clicking,n._active&&t.enterEditMode(),delete n._active,t.config.showOnClick&&t.show())}function Dt(t,e){e.clipboardData.types.includes("text/plain")&&t.enterEditMode()}function Tt(t,e){const{element:n,picker:i}=t;if(!i.active&&!L(n))return;const r=i.element;H(e,t=>t===n||t===r)||st(t)}function Lt(t,e){return t.map(t=>M(t,e.format,e.locale)).join(e.dateDelimiter)}function At(t,e,n=!1){const{config:i,dates:o,rangeSideIndex:l}=t;if(0===e.length)return n?[]:void 0;let s=e.reduce((t,e)=>{let n=C(e,i.format,i.locale);return void 0===n||(n=v(n,i.pickLevel,l),!r(n,i.minDate,i.maxDate)||t.includes(n)||i.datesDisabled.includes(n)||!(i.pickLevel>0)&&i.daysOfWeekDisabled.includes(new Date(n).getDay())||t.push(n)),t},[]);return 0!==s.length?(i.multidate&&!n&&(s=s.reduce((t,e)=>(o.includes(e)||t.push(e),t),o.filter(t=>!s.includes(t)))),i.maxNumberOfDates&&s.length>i.maxNumberOfDates?s.slice(-1*i.maxNumberOfDates):s):void 0}function Pt(t,e=3,n=!0){const{config:i,picker:r,inputField:o}=t;if(2&e){const t=r.active?i.pickLevel:i.startView;r.update().changeView(t).render(n)}1&e&&o&&(o.value=Lt(t.dates,i))}function Ot(t,e,n){let{clear:i,render:r,autohide:o,revert:l}=n;void 0===r&&(r=!0),r?void 0===o&&(o=t.config.autohide):o=!1;const s=At(t,e,i);(s||l)&&(s&&s.toString()!==t.dates.toString()?(t.dates=s,Pt(t,r?3:1),rt(t,"changeDate")):Pt(t,1),o&&t.hide())}class It{constructor(t,e={},n){t.datepicker=this,this.element=t;const r=this.config=Object.assign({buttonClass:e.buttonClass&&String(e.buttonClass)||"button",container:null,defaultViewDate:c(),maxDate:void 0,minDate:void 0},Z(j,this)),o=this.inline="INPUT"!==t.tagName;let l,s;if(o?r.container=t:(e.container&&(r.container=e.container instanceof HTMLElement?e.container:document.querySelector(e.container)),l=this.inputField=t,l.classList.add("datepicker-input")),n){const t=n.inputs.indexOf(l),e=n.datepickers;if(t<0||t>1||!Array.isArray(e))throw Error("Invalid rangepicker object.");e[t]=this,Object.defineProperty(this,"rangepicker",{get:()=>n}),Object.defineProperty(this,"rangeSideIndex",{get:()=>t})}this._options=e,Object.assign(r,Z(e,this)),o?(s=i(t.dataset.date,r.dateDelimiter),delete t.dataset.date):s=i(l.value,r.dateDelimiter),this.dates=[];const a=At(this,s);a&&a.length>0&&(this.dates=a),l&&(l.value=Lt(this.dates,r));const u=this.picker=new xt(this);if(o)this.show();else{const t=Tt.bind(null,this);z(this,[[l,"keydown",St.bind(null,this)],[l,"focus",Ct.bind(null,this)],[l,"mousedown",Mt.bind(null,this)],[l,"click",kt.bind(null,this)],[l,"paste",Dt.bind(null,this)],[document,"mousedown",t],[document,"touchstart",t],[window,"resize",u.place.bind(u)]])}}static formatDate(t,e,n){return M(t,e,n&&B[n]||B.en)}static parseDate(t,e,n){return C(t,e,n&&B[n]||B.en)}static get locales(){return B}get active(){return!(!this.picker||!this.picker.active)}get pickerElement(){return this.picker?this.picker.element:void 0}setOptions(t){const e=this.picker,n=Z(t,this);Object.assign(this._options,t),Object.assign(this.config,n),e.setOptions(n),Pt(this,3)}show(){if(this.inputField){if(this.inputField.disabled)return;L(this.inputField)||this.config.disableTouchKeyboard||(this._showing=!0,this.inputField.focus(),delete this._showing)}this.picker.show()}hide(){this.inline||(this.picker.hide(),this.picker.update().changeView(this.config.startView).render())}destroy(){return this.hide(),F(this),this.picker.detach(),this.inline||this.inputField.classList.remove("datepicker-input"),delete this.element.datepicker,this}getDate(t){const e=t?e=>M(e,t,this.config.locale):t=>new Date(t);return this.config.multidate?this.dates.map(e):this.dates.length>0?e(this.dates[0]):void 0}setDate(...t){const n=[...t],i={},r=e(t);"object"!=typeof r||Array.isArray(r)||r instanceof Date||!r||Object.assign(i,n.pop());Ot(this,Array.isArray(n[0])?n[0]:n,i)}update(t){if(this.inline)return;const e=Object.assign(t||{},{clear:!0,render:!0});Ot(this,i(this.inputField.value,this.config.dateDelimiter),e)}refresh(t,e=!1){let n;t&&"string"!=typeof t&&(e=t,t=void 0),n="picker"===t?2:"input"===t?1:3,Pt(this,n,!e)}enterEditMode(){this.inline||!this.picker.active||this.editMode||(this.editMode=!0,this.inputField.classList.add("in-edit"))}exitEditMode(t){if(this.inline||!this.editMode)return;const e=Object.assign({update:!1},t);delete this.editMode,this.inputField.classList.remove("in-edit"),e.update&&this.update(e)}}function Rt(t){const e=Object.assign({},t);return delete e.inputs,delete e.allowOneSidedRange,delete e.maxNumberOfDates,e}function Nt(t,e,n,i){z(t,[[n,"changeDate",e]]),new It(n,i,t)}function zt(t,e){if(t._updating)return;t._updating=!0;const n=e.target;if(void 0===n.datepicker)return;const i=t.datepickers,r={render:!1},o=t.inputs.indexOf(n),l=0===o?1:0,s=i[o].dates[0],a=i[l].dates[0];void 0!==s&&void 0!==a?0===o&&s>a?(i[0].setDate(a,r),i[1].setDate(s,r)):1===o&&s<a&&(i[0].setDate(s,r),i[1].setDate(a,r)):t.allowOneSidedRange||void 0===s&&void 0===a||(r.clear=!0,i[l].setDate(i[o].dates,r)),i[0].picker.update().render(),i[1].picker.update().render(),delete t._updating}window.Datepicker=It,window.DateRangePicker=class{constructor(t,e={}){const n=Array.isArray(e.inputs)?e.inputs:Array.from(t.querySelectorAll("input"));if(n.length<2)return;t.rangepicker=this,this.element=t,this.inputs=n.slice(0,2),this.allowOneSidedRange=!!e.allowOneSidedRange;const i=zt.bind(null,this),r=Rt(e),o=[];Object.defineProperty(this,"datepickers",{get:()=>o}),Nt(this,i,this.inputs[0],r),Nt(this,i,this.inputs[1],r),Object.freeze(o),o[0].dates.length>0?zt(this,{target:this.inputs[0]}):o[1].dates.length>0&&zt(this,{target:this.inputs[1]})}get dates(){return 2===this.datepickers.length?[this.datepickers[0].dates[0],this.datepickers[1].dates[0]]:void 0}setOptions(t){this.allowOneSidedRange=!!t.allowOneSidedRange;const e=Rt(t);this.datepickers[0].setOptions(e),this.datepickers[1].setOptions(e)}destroy(){this.datepickers[0].destroy(),this.datepickers[1].destroy(),F(this),delete this.element.rangepicker}getDates(t){const e=t?e=>M(e,t,this.datepickers[0].config.locale):t=>new Date(t);return this.dates.map(t=>void 0===t?t:e(t))}setDates(t,e){const[n,i]=this.datepickers,r=this.dates;this._updating=!0,n.setDate(t),i.setDate(e),delete this._updating,i.dates[0]!==r[1]?zt(this,{target:this.inputs[1]}):n.dates[0]!==r[0]&&zt(this,{target:this.inputs[0]})}}}(),function t(e,n,i){function r(l,s){if(!n[l]){if(!e[l]){var a="function"==typeof require&&require;if(!s&&a)return a(l,!0);if(o)return o(l,!0);var c=new Error("Cannot find module '"+l+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[l]={exports:{}};e[l][0].call(u.exports,(function(t){return r(e[l][1][t]||t)}),u,u.exports,t,e,n,i)}return n[l].exports}for(var o="function"==typeof require&&require,l=0;l<i.length;l++)r(i[l]);return r}({1:[function(t,e,n){var i=t("./svg-utilities");e.exports={enable:function(t){var e=t.svg.querySelector("defs");if(e||(e=document.createElementNS(i.svgNS,"defs"),t.svg.appendChild(e)),!e.querySelector("style#svg-pan-zoom-controls-styles")){var n=document.createElementNS(i.svgNS,"style");n.setAttribute("id","svg-pan-zoom-controls-styles"),n.setAttribute("type","text/css"),n.textContent=".svg-pan-zoom-control { cursor: pointer; fill: black; fill-opacity: 0.333; } .svg-pan-zoom-control:hover { fill-opacity: 0.8; } .svg-pan-zoom-control-background { fill: white; fill-opacity: 0.5; } .svg-pan-zoom-control-background { fill-opacity: 0.8; }",e.appendChild(n)}var r=document.createElementNS(i.svgNS,"g");r.setAttribute("id","svg-pan-zoom-controls"),r.setAttribute("transform","translate("+(t.width-70)+" "+(t.height-76)+") scale(0.75)"),r.setAttribute("class","svg-pan-zoom-control"),r.appendChild(this._createZoomIn(t)),r.appendChild(this._createZoomReset(t)),r.appendChild(this._createZoomOut(t)),t.svg.appendChild(r),t.controlIcons=r},_createZoomIn:function(t){var e=document.createElementNS(i.svgNS,"g");e.setAttribute("id","svg-pan-zoom-zoom-in"),e.setAttribute("transform","translate(30.5 5) scale(0.015)"),e.setAttribute("class","svg-pan-zoom-control"),e.addEventListener("click",(function(){t.getPublicInstance().zoomIn()}),!1),e.addEventListener("touchstart",(function(){t.getPublicInstance().zoomIn()}),!1);var n=document.createElementNS(i.svgNS,"rect");n.setAttribute("x","0"),n.setAttribute("y","0"),n.setAttribute("width","1500"),n.setAttribute("height","1400"),n.setAttribute("class","svg-pan-zoom-control-background"),e.appendChild(n);var r=document.createElementNS(i.svgNS,"path");return r.setAttribute("d","M1280 576v128q0 26 -19 45t-45 19h-320v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-320q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h320v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h320q26 0 45 19t19 45zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z"),r.setAttribute("class","svg-pan-zoom-control-element"),e.appendChild(r),e},_createZoomReset:function(t){var e=document.createElementNS(i.svgNS,"g");e.setAttribute("id","svg-pan-zoom-reset-pan-zoom"),e.setAttribute("transform","translate(5 35) scale(0.4)"),e.setAttribute("class","svg-pan-zoom-control"),e.addEventListener("click",(function(){t.getPublicInstance().reset()}),!1),e.addEventListener("touchstart",(function(){t.getPublicInstance().reset()}),!1);var n=document.createElementNS(i.svgNS,"rect");n.setAttribute("x","2"),n.setAttribute("y","2"),n.setAttribute("width","182"),n.setAttribute("height","58"),n.setAttribute("class","svg-pan-zoom-control-background"),e.appendChild(n);var r=document.createElementNS(i.svgNS,"path");r.setAttribute("d","M33.051,20.632c-0.742-0.406-1.854-0.609-3.338-0.609h-7.969v9.281h7.769c1.543,0,2.701-0.188,3.473-0.562c1.365-0.656,2.048-1.953,2.048-3.891C35.032,22.757,34.372,21.351,33.051,20.632z"),r.setAttribute("class","svg-pan-zoom-control-element"),e.appendChild(r);var o=document.createElementNS(i.svgNS,"path");return o.setAttribute("d","M170.231,0.5H15.847C7.102,0.5,0.5,5.708,0.5,11.84v38.861C0.5,56.833,7.102,61.5,15.847,61.5h154.384c8.745,0,15.269-4.667,15.269-10.798V11.84C185.5,5.708,178.976,0.5,170.231,0.5z M42.837,48.569h-7.969c-0.219-0.766-0.375-1.383-0.469-1.852c-0.188-0.969-0.289-1.961-0.305-2.977l-0.047-3.211c-0.03-2.203-0.41-3.672-1.142-4.406c-0.732-0.734-2.103-1.102-4.113-1.102h-7.05v13.547h-7.055V14.022h16.524c2.361,0.047,4.178,0.344,5.45,0.891c1.272,0.547,2.351,1.352,3.234,2.414c0.731,0.875,1.31,1.844,1.737,2.906s0.64,2.273,0.64,3.633c0,1.641-0.414,3.254-1.242,4.84s-2.195,2.707-4.102,3.363c1.594,0.641,2.723,1.551,3.387,2.73s0.996,2.98,0.996,5.402v2.32c0,1.578,0.063,2.648,0.19,3.211c0.19,0.891,0.635,1.547,1.333,1.969V48.569z M75.579,48.569h-26.18V14.022h25.336v6.117H56.454v7.336h16.781v6H56.454v8.883h19.125V48.569z M104.497,46.331c-2.44,2.086-5.887,3.129-10.34,3.129c-4.548,0-8.125-1.027-10.731-3.082s-3.909-4.879-3.909-8.473h6.891c0.224,1.578,0.662,2.758,1.316,3.539c1.196,1.422,3.246,2.133,6.15,2.133c1.739,0,3.151-0.188,4.236-0.562c2.058-0.719,3.087-2.055,3.087-4.008c0-1.141-0.504-2.023-1.512-2.648c-1.008-0.609-2.607-1.148-4.796-1.617l-3.74-0.82c-3.676-0.812-6.201-1.695-7.576-2.648c-2.328-1.594-3.492-4.086-3.492-7.477c0-3.094,1.139-5.664,3.417-7.711s5.623-3.07,10.036-3.07c3.685,0,6.829,0.965,9.431,2.895c2.602,1.93,3.966,4.73,4.093,8.402h-6.938c-0.128-2.078-1.057-3.555-2.787-4.43c-1.154-0.578-2.587-0.867-4.301-0.867c-1.907,0-3.428,0.375-4.565,1.125c-1.138,0.75-1.706,1.797-1.706,3.141c0,1.234,0.561,2.156,1.682,2.766c0.721,0.406,2.25,0.883,4.589,1.43l6.063,1.43c2.657,0.625,4.648,1.461,5.975,2.508c2.059,1.625,3.089,3.977,3.089,7.055C108.157,41.624,106.937,44.245,104.497,46.331z M139.61,48.569h-26.18V14.022h25.336v6.117h-18.281v7.336h16.781v6h-16.781v8.883h19.125V48.569z M170.337,20.14h-10.336v28.43h-7.266V20.14h-10.383v-6.117h27.984V20.14z"),o.setAttribute("class","svg-pan-zoom-control-element"),e.appendChild(o),e},_createZoomOut:function(t){var e=document.createElementNS(i.svgNS,"g");e.setAttribute("id","svg-pan-zoom-zoom-out"),e.setAttribute("transform","translate(30.5 70) scale(0.015)"),e.setAttribute("class","svg-pan-zoom-control"),e.addEventListener("click",(function(){t.getPublicInstance().zoomOut()}),!1),e.addEventListener("touchstart",(function(){t.getPublicInstance().zoomOut()}),!1);var n=document.createElementNS(i.svgNS,"rect");n.setAttribute("x","0"),n.setAttribute("y","0"),n.setAttribute("width","1500"),n.setAttribute("height","1400"),n.setAttribute("class","svg-pan-zoom-control-background"),e.appendChild(n);var r=document.createElementNS(i.svgNS,"path");return r.setAttribute("d","M1280 576v128q0 26 -19 45t-45 19h-896q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h896q26 0 45 19t19 45zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5 t84.5 -203.5z"),r.setAttribute("class","svg-pan-zoom-control-element"),e.appendChild(r),e},disable:function(t){t.controlIcons&&(t.controlIcons.parentNode.removeChild(t.controlIcons),t.controlIcons=null)}}},{"./svg-utilities":5}],2:[function(t,e,n){function i(t,e){this.init(t,e)}var r=t("./svg-utilities"),o=t("./utilities");i.prototype.init=function(t,e){this.viewport=t,this.options=e,this.originalState={zoom:1,x:0,y:0},this.activeState={zoom:1,x:0,y:0},this.updateCTMCached=o.proxy(this.updateCTM,this),this.requestAnimationFrame=o.createRequestAnimationFrame(this.options.refreshRate),this.viewBox={x:0,y:0,width:0,height:0},this.cacheViewBox();var n=this.processCTM();this.setCTM(n),this.updateCTM()},i.prototype.cacheViewBox=function(){var t=this.options.svg.getAttribute("viewBox");if(t){var e=t.split(/[\s\,]/).filter((function(t){return t})).map(parseFloat);this.viewBox.x=e[0],this.viewBox.y=e[1],this.viewBox.width=e[2],this.viewBox.height=e[3];var n=Math.min(this.options.width/this.viewBox.width,this.options.height/this.viewBox.height);this.activeState.zoom=n,this.activeState.x=(this.options.width-this.viewBox.width*n)/2,this.activeState.y=(this.options.height-this.viewBox.height*n)/2,this.updateCTMOnNextFrame(),this.options.svg.removeAttribute("viewBox")}else this.simpleViewBoxCache()},i.prototype.simpleViewBoxCache=function(){var t=this.viewport.getBBox();this.viewBox.x=t.x,this.viewBox.y=t.y,this.viewBox.width=t.width,this.viewBox.height=t.height},i.prototype.getViewBox=function(){return o.extend({},this.viewBox)},i.prototype.processCTM=function(){var t,e=this.getCTM();if((this.options.fit||this.options.contain)&&(t=this.options.fit?Math.min(this.options.width/this.viewBox.width,this.options.height/this.viewBox.height):Math.max(this.options.width/this.viewBox.width,this.options.height/this.viewBox.height),e.a=t,e.d=t,e.e=-this.viewBox.x*t,e.f=-this.viewBox.y*t),this.options.center){var n=.5*(this.options.width-(this.viewBox.width+2*this.viewBox.x)*e.a),i=.5*(this.options.height-(this.viewBox.height+2*this.viewBox.y)*e.a);e.e=n,e.f=i}return this.originalState.zoom=e.a,this.originalState.x=e.e,this.originalState.y=e.f,e},i.prototype.getOriginalState=function(){return o.extend({},this.originalState)},i.prototype.getState=function(){return o.extend({},this.activeState)},i.prototype.getZoom=function(){return this.activeState.zoom},i.prototype.getRelativeZoom=function(){return this.activeState.zoom/this.originalState.zoom},i.prototype.computeRelativeZoom=function(t){return t/this.originalState.zoom},i.prototype.getPan=function(){return{x:this.activeState.x,y:this.activeState.y}},i.prototype.getCTM=function(){var t=this.options.svg.createSVGMatrix();return t.a=this.activeState.zoom,t.b=0,t.c=0,t.d=this.activeState.zoom,t.e=this.activeState.x,t.f=this.activeState.y,t},i.prototype.setCTM=function(t){var e=this.isZoomDifferent(t),n=this.isPanDifferent(t);if(e||n){if(e&&(!1===this.options.beforeZoom(this.getRelativeZoom(),this.computeRelativeZoom(t.a))?(t.a=t.d=this.activeState.zoom,e=!1):(this.updateCache(t),this.options.onZoom(this.getRelativeZoom()))),n){var i=this.options.beforePan(this.getPan(),{x:t.e,y:t.f}),r=!1,l=!1;!1===i?(t.e=this.getPan().x,t.f=this.getPan().y,r=l=!0):o.isObject(i)&&(!1===i.x?(t.e=this.getPan().x,r=!0):o.isNumber(i.x)&&(t.e=i.x),!1===i.y?(t.f=this.getPan().y,l=!0):o.isNumber(i.y)&&(t.f=i.y)),r&&l||!this.isPanDifferent(t)?n=!1:(this.updateCache(t),this.options.onPan(this.getPan()))}(e||n)&&this.updateCTMOnNextFrame()}},i.prototype.isZoomDifferent=function(t){return this.activeState.zoom!==t.a},i.prototype.isPanDifferent=function(t){return this.activeState.x!==t.e||this.activeState.y!==t.f},i.prototype.updateCache=function(t){this.activeState.zoom=t.a,this.activeState.x=t.e,this.activeState.y=t.f},i.prototype.pendingUpdate=!1,i.prototype.updateCTMOnNextFrame=function(){this.pendingUpdate||(this.pendingUpdate=!0,this.requestAnimationFrame.call(window,this.updateCTMCached))},i.prototype.updateCTM=function(){var t=this.getCTM();r.setCTM(this.viewport,t,this.defs),this.pendingUpdate=!1,this.options.onUpdatedCTM&&this.options.onUpdatedCTM(t)},e.exports=function(t,e){return new i(t,e)}},{"./svg-utilities":5,"./utilities":7}],3:[function(t,e,n){var i,r=t("./svg-pan-zoom.js");i=window,document,"function"==typeof define&&define.amd?define("svg-pan-zoom",(function(){return r})):void 0!==e&&e.exports&&(e.exports=r,i.svgPanZoom=r)},{"./svg-pan-zoom.js":4}],4:[function(t,e,n){function i(t,e){this.init(t,e)}var r=t("./uniwheel"),o=t("./control-icons"),l=t("./utilities"),s=t("./svg-utilities"),a=t("./shadow-viewport"),c={viewportSelector:".svg-pan-zoom_viewport",panEnabled:!0,controlIconsEnabled:!1,zoomEnabled:!0,dblClickZoomEnabled:!0,mouseWheelZoomEnabled:!0,preventMouseEventsDefault:!0,zoomScaleSensitivity:.1,minZoom:.5,maxZoom:10,fit:!0,contain:!1,center:!0,refreshRate:"auto",beforeZoom:null,onZoom:null,beforePan:null,onPan:null,customEventsHandler:null,eventsListenerElement:null,onUpdatedCTM:null},u={passive:!0};i.prototype.init=function(t,e){var n=this;this.svg=t,this.defs=t.querySelector("defs"),s.setupSvgAttributes(this.svg),this.options=l.extend(l.extend({},c),e),this.state="none";var i=s.getBoundingClientRectNormalized(t);this.width=i.width,this.height=i.height,this.viewport=a(s.getOrCreateViewport(this.svg,this.options.viewportSelector),{svg:this.svg,width:this.width,height:this.height,fit:this.options.fit,contain:this.options.contain,center:this.options.center,refreshRate:this.options.refreshRate,beforeZoom:function(t,e){if(n.viewport&&n.options.beforeZoom)return n.options.beforeZoom(t,e)},onZoom:function(t){if(n.viewport&&n.options.onZoom)return n.options.onZoom(t)},beforePan:function(t,e){if(n.viewport&&n.options.beforePan)return n.options.beforePan(t,e)},onPan:function(t){if(n.viewport&&n.options.onPan)return n.options.onPan(t)},onUpdatedCTM:function(t){if(n.viewport&&n.options.onUpdatedCTM)return n.options.onUpdatedCTM(t)}});var r=this.getPublicInstance();r.setBeforeZoom(this.options.beforeZoom),r.setOnZoom(this.options.onZoom),r.setBeforePan(this.options.beforePan),r.setOnPan(this.options.onPan),r.setOnUpdatedCTM(this.options.onUpdatedCTM),this.options.controlIconsEnabled&&o.enable(this),this.lastMouseWheelEventTime=Date.now(),this.setupHandlers()},i.prototype.setupHandlers=function(){var t=this,e=null;if(this.eventListeners={mousedown:function(n){var i=t.handleMouseDown(n,e);return e=n,i},touchstart:function(n){var i=t.handleMouseDown(n,e);return e=n,i},mouseup:function(e){return t.handleMouseUp(e)},touchend:function(e){return t.handleMouseUp(e)},mousemove:function(e){return t.handleMouseMove(e)},touchmove:function(e){return t.handleMouseMove(e)},mouseleave:function(e){return t.handleMouseUp(e)},touchleave:function(e){return t.handleMouseUp(e)},touchcancel:function(e){return t.handleMouseUp(e)}},null!=this.options.customEventsHandler){this.options.customEventsHandler.init({svgElement:this.svg,eventsListenerElement:this.options.eventsListenerElement,instance:this.getPublicInstance()});var n=this.options.customEventsHandler.haltEventListeners;if(n&&n.length)for(var i=n.length-1;0<=i;i--)this.eventListeners.hasOwnProperty(n[i])&&delete this.eventListeners[n[i]]}for(var r in this.eventListeners)(this.options.eventsListenerElement||this.svg).addEventListener(r,this.eventListeners[r],!this.options.preventMouseEventsDefault&&u);this.options.mouseWheelZoomEnabled&&(this.options.mouseWheelZoomEnabled=!1,this.enableMouseWheelZoom())},i.prototype.enableMouseWheelZoom=function(){if(!this.options.mouseWheelZoomEnabled){var t=this;this.wheelListener=function(e){return t.handleMouseWheel(e)};var e=!this.options.preventMouseEventsDefault;r.on(this.options.eventsListenerElement||this.svg,this.wheelListener,e),this.options.mouseWheelZoomEnabled=!0}},i.prototype.disableMouseWheelZoom=function(){if(this.options.mouseWheelZoomEnabled){var t=!this.options.preventMouseEventsDefault;r.off(this.options.eventsListenerElement||this.svg,this.wheelListener,t),this.options.mouseWheelZoomEnabled=!1}},i.prototype.handleMouseWheel=function(t){if(this.options.zoomEnabled&&"none"===this.state){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1);var e=t.deltaY||1,n=Date.now()-this.lastMouseWheelEventTime,i=3+Math.max(0,30-n);this.lastMouseWheelEventTime=Date.now(),"deltaMode"in t&&0===t.deltaMode&&t.wheelDelta&&(e=0===t.deltaY?0:Math.abs(t.wheelDelta)/t.deltaY),e=-.3<e&&e<.3?e:(0<e?1:-1)*Math.log(Math.abs(e)+10)/i;var r=this.svg.getScreenCTM().inverse(),o=s.getEventPoint(t,this.svg).matrixTransform(r),l=Math.pow(1+this.options.zoomScaleSensitivity,-1*e);this.zoomAtPoint(l,o)}},i.prototype.zoomAtPoint=function(t,e,n){var i=this.viewport.getOriginalState();n?(t=Math.max(this.options.minZoom*i.zoom,Math.min(this.options.maxZoom*i.zoom,t)),t/=this.getZoom()):this.getZoom()*t<this.options.minZoom*i.zoom?t=this.options.minZoom*i.zoom/this.getZoom():this.getZoom()*t>this.options.maxZoom*i.zoom&&(t=this.options.maxZoom*i.zoom/this.getZoom());var r=this.viewport.getCTM(),o=e.matrixTransform(r.inverse()),l=this.svg.createSVGMatrix().translate(o.x,o.y).scale(t).translate(-o.x,-o.y),s=r.multiply(l);s.a!==r.a&&this.viewport.setCTM(s)},i.prototype.zoom=function(t,e){this.zoomAtPoint(t,s.getSvgCenterPoint(this.svg,this.width,this.height),e)},i.prototype.publicZoom=function(t,e){e&&(t=this.computeFromRelativeZoom(t)),this.zoom(t,e)},i.prototype.publicZoomAtPoint=function(t,e,n){if(n&&(t=this.computeFromRelativeZoom(t)),"SVGPoint"!==l.getType(e)){if(!("x"in e)||!("y"in e))throw new Error("Given point is invalid");e=s.createSVGPoint(this.svg,e.x,e.y)}this.zoomAtPoint(t,e,n)},i.prototype.getZoom=function(){return this.viewport.getZoom()},i.prototype.getRelativeZoom=function(){return this.viewport.getRelativeZoom()},i.prototype.computeFromRelativeZoom=function(t){return t*this.viewport.getOriginalState().zoom},i.prototype.resetZoom=function(){var t=this.viewport.getOriginalState();this.zoom(t.zoom,!0)},i.prototype.resetPan=function(){this.pan(this.viewport.getOriginalState())},i.prototype.reset=function(){this.resetZoom(),this.resetPan()},i.prototype.handleDblClick=function(t){var e;if(this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),this.options.controlIconsEnabled&&-1<(t.target.getAttribute("class")||"").indexOf("svg-pan-zoom-control"))return!1;e=t.shiftKey?1/(2*(1+this.options.zoomScaleSensitivity)):2*(1+this.options.zoomScaleSensitivity);var n=s.getEventPoint(t,this.svg).matrixTransform(this.svg.getScreenCTM().inverse());this.zoomAtPoint(e,n)},i.prototype.handleMouseDown=function(t,e){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),l.mouseAndTouchNormalize(t,this.svg),this.options.dblClickZoomEnabled&&l.isDblClick(t,e)?this.handleDblClick(t):(this.state="pan",this.firstEventCTM=this.viewport.getCTM(),this.stateOrigin=s.getEventPoint(t,this.svg).matrixTransform(this.firstEventCTM.inverse()))},i.prototype.handleMouseMove=function(t){if(this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),"pan"===this.state&&this.options.panEnabled){var e=s.getEventPoint(t,this.svg).matrixTransform(this.firstEventCTM.inverse()),n=this.firstEventCTM.translate(e.x-this.stateOrigin.x,e.y-this.stateOrigin.y);this.viewport.setCTM(n)}},i.prototype.handleMouseUp=function(t){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),"pan"===this.state&&(this.state="none")},i.prototype.fit=function(){var t=this.viewport.getViewBox(),e=Math.min(this.width/t.width,this.height/t.height);this.zoom(e,!0)},i.prototype.contain=function(){var t=this.viewport.getViewBox(),e=Math.max(this.width/t.width,this.height/t.height);this.zoom(e,!0)},i.prototype.center=function(){var t=this.viewport.getViewBox(),e=.5*(this.width-(t.width+2*t.x)*this.getZoom()),n=.5*(this.height-(t.height+2*t.y)*this.getZoom());this.getPublicInstance().pan({x:e,y:n})},i.prototype.updateBBox=function(){this.viewport.simpleViewBoxCache()},i.prototype.pan=function(t){var e=this.viewport.getCTM();e.e=t.x,e.f=t.y,this.viewport.setCTM(e)},i.prototype.panBy=function(t){var e=this.viewport.getCTM();e.e+=t.x,e.f+=t.y,this.viewport.setCTM(e)},i.prototype.getPan=function(){var t=this.viewport.getState();return{x:t.x,y:t.y}},i.prototype.resize=function(){var t=s.getBoundingClientRectNormalized(this.svg);this.width=t.width,this.height=t.height;var e=this.viewport;e.options.width=this.width,e.options.height=this.height,e.processCTM(),this.options.controlIconsEnabled&&(this.getPublicInstance().disableControlIcons(),this.getPublicInstance().enableControlIcons())},i.prototype.destroy=function(){var t=this;for(var e in this.beforeZoom=null,this.onZoom=null,this.beforePan=null,this.onPan=null,(this.onUpdatedCTM=null)!=this.options.customEventsHandler&&this.options.customEventsHandler.destroy({svgElement:this.svg,eventsListenerElement:this.options.eventsListenerElement,instance:this.getPublicInstance()}),this.eventListeners)(this.options.eventsListenerElement||this.svg).removeEventListener(e,this.eventListeners[e],!this.options.preventMouseEventsDefault&&u);this.disableMouseWheelZoom(),this.getPublicInstance().disableControlIcons(),this.reset(),d=d.filter((function(e){return e.svg!==t.svg})),delete this.options,delete this.viewport,delete this.publicInstance,delete this.pi,this.getPublicInstance=function(){return null}},i.prototype.getPublicInstance=function(){var t=this;return this.publicInstance||(this.publicInstance=this.pi={enablePan:function(){return t.options.panEnabled=!0,t.pi},disablePan:function(){return t.options.panEnabled=!1,t.pi},isPanEnabled:function(){return!!t.options.panEnabled},pan:function(e){return t.pan(e),t.pi},panBy:function(e){return t.panBy(e),t.pi},getPan:function(){return t.getPan()},setBeforePan:function(e){return t.options.beforePan=null===e?null:l.proxy(e,t.publicInstance),t.pi},setOnPan:function(e){return t.options.onPan=null===e?null:l.proxy(e,t.publicInstance),t.pi},enableZoom:function(){return t.options.zoomEnabled=!0,t.pi},disableZoom:function(){return t.options.zoomEnabled=!1,t.pi},isZoomEnabled:function(){return!!t.options.zoomEnabled},enableControlIcons:function(){return t.options.controlIconsEnabled||(t.options.controlIconsEnabled=!0,o.enable(t)),t.pi},disableControlIcons:function(){return t.options.controlIconsEnabled&&(t.options.controlIconsEnabled=!1,o.disable(t)),t.pi},isControlIconsEnabled:function(){return!!t.options.controlIconsEnabled},enableDblClickZoom:function(){return t.options.dblClickZoomEnabled=!0,t.pi},disableDblClickZoom:function(){return t.options.dblClickZoomEnabled=!1,t.pi},isDblClickZoomEnabled:function(){return!!t.options.dblClickZoomEnabled},enableMouseWheelZoom:function(){return t.enableMouseWheelZoom(),t.pi},disableMouseWheelZoom:function(){return t.disableMouseWheelZoom(),t.pi},isMouseWheelZoomEnabled:function(){return!!t.options.mouseWheelZoomEnabled},setZoomScaleSensitivity:function(e){return t.options.zoomScaleSensitivity=e,t.pi},setMinZoom:function(e){return t.options.minZoom=e,t.pi},setMaxZoom:function(e){return t.options.maxZoom=e,t.pi},setBeforeZoom:function(e){return t.options.beforeZoom=null===e?null:l.proxy(e,t.publicInstance),t.pi},setOnZoom:function(e){return t.options.onZoom=null===e?null:l.proxy(e,t.publicInstance),t.pi},zoom:function(e){return t.publicZoom(e,!0),t.pi},zoomBy:function(e){return t.publicZoom(e,!1),t.pi},zoomAtPoint:function(e,n){return t.publicZoomAtPoint(e,n,!0),t.pi},zoomAtPointBy:function(e,n){return t.publicZoomAtPoint(e,n,!1),t.pi},zoomIn:function(){return this.zoomBy(1+t.options.zoomScaleSensitivity),t.pi},zoomOut:function(){return this.zoomBy(1/(1+t.options.zoomScaleSensitivity)),t.pi},getZoom:function(){return t.getRelativeZoom()},setOnUpdatedCTM:function(e){return t.options.onUpdatedCTM=null===e?null:l.proxy(e,t.publicInstance),t.pi},resetZoom:function(){return t.resetZoom(),t.pi},resetPan:function(){return t.resetPan(),t.pi},reset:function(){return t.reset(),t.pi},fit:function(){return t.fit(),t.pi},contain:function(){return t.contain(),t.pi},center:function(){return t.center(),t.pi},updateBBox:function(){return t.updateBBox(),t.pi},resize:function(){return t.resize(),t.pi},getSizes:function(){return{width:t.width,height:t.height,realZoom:t.getZoom(),viewBox:t.viewport.getViewBox()}},destroy:function(){return t.destroy(),t.pi}}),this.publicInstance};var d=[];e.exports=function(t,e){var n=l.getSvg(t);if(null===n)return null;for(var r=d.length-1;0<=r;r--)if(d[r].svg===n)return d[r].instance.getPublicInstance();return d.push({svg:n,instance:new i(n,e)}),d[d.length-1].instance.getPublicInstance()}},{"./control-icons":1,"./shadow-viewport":2,"./svg-utilities":5,"./uniwheel":6,"./utilities":7}],5:[function(t,e,n){var i=t("./utilities"),r="unknown";document.documentMode&&(r="ie"),e.exports={svgNS:"http://www.w3.org/2000/svg",xmlNS:"http://www.w3.org/XML/1998/namespace",xmlnsNS:"http://www.w3.org/2000/xmlns/",xlinkNS:"http://www.w3.org/1999/xlink",evNS:"http://www.w3.org/2001/xml-events",getBoundingClientRectNormalized:function(t){if(t.clientWidth&&t.clientHeight)return{width:t.clientWidth,height:t.clientHeight};if(t.getBoundingClientRect())return t.getBoundingClientRect();throw new Error("Cannot get BoundingClientRect for SVG.")},getOrCreateViewport:function(t,e){var n=null;if(!(n=i.isElement(e)?e:t.querySelector(e))){var r=Array.prototype.slice.call(t.childNodes||t.children).filter((function(t){return"defs"!==t.nodeName&&"#text"!==t.nodeName}));1===r.length&&"g"===r[0].nodeName&&null===r[0].getAttribute("transform")&&(n=r[0])}if(!n){var o="viewport-"+(new Date).toISOString().replace(/\D/g,"");(n=document.createElementNS(this.svgNS,"g")).setAttribute("id",o);var l=t.childNodes||t.children;if(l&&0<l.length)for(var s=l.length;0<s;s--)"defs"!==l[l.length-s].nodeName&&n.appendChild(l[l.length-s]);t.appendChild(n)}var a=[];return n.getAttribute("class")&&(a=n.getAttribute("class").split(" ")),~a.indexOf("svg-pan-zoom_viewport")||(a.push("svg-pan-zoom_viewport"),n.setAttribute("class",a.join(" "))),n},setupSvgAttributes:function(t){if(t.setAttribute("xmlns",this.svgNS),t.setAttributeNS(this.xmlnsNS,"xmlns:xlink",this.xlinkNS),t.setAttributeNS(this.xmlnsNS,"xmlns:ev",this.evNS),null!==t.parentNode){var e=t.getAttribute("style")||"";-1===e.toLowerCase().indexOf("overflow")&&t.setAttribute("style","overflow: hidden; "+e)}},internetExplorerRedisplayInterval:300,refreshDefsGlobal:i.throttle((function(){for(var t=document.querySelectorAll("defs"),e=t.length,n=0;n<e;n++){var i=t[n];i.parentNode.insertBefore(i,i)}}),this?this.internetExplorerRedisplayInterval:null),setCTM:function(t,e,n){var i=this,o="matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")";t.setAttributeNS(null,"transform",o),"transform"in t.style?t.style.transform=o:"-ms-transform"in t.style?t.style["-ms-transform"]=o:"-webkit-transform"in t.style&&(t.style["-webkit-transform"]=o),"ie"===r&&n&&(n.parentNode.insertBefore(n,n),window.setTimeout((function(){i.refreshDefsGlobal()}),i.internetExplorerRedisplayInterval))},getEventPoint:function(t,e){var n=e.createSVGPoint();return i.mouseAndTouchNormalize(t,e),n.x=t.clientX,n.y=t.clientY,n},getSvgCenterPoint:function(t,e,n){return this.createSVGPoint(t,e/2,n/2)},createSVGPoint:function(t,e,n){var i=t.createSVGPoint();return i.x=e,i.y=n,i}}},{"./utilities":7}],6:[function(t,e,n){function i(t,e,n,i){var r;r="wheel"===s?n:function(t,e){function n(t){var n={originalEvent:t=t||window.event,target:t.target||t.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"==t.type?0:1,deltaX:0,delatZ:0,preventDefault:function(){t.preventDefault?t.preventDefault():t.returnValue=!1}};return"mousewheel"==s?(n.deltaY=-.025*t.wheelDelta,t.wheelDeltaX&&(n.deltaX=-.025*t.wheelDeltaX)):n.deltaY=t.detail,e(n)}return c.push({element:t,fn:n}),n}(t,n),t[o](a+e,r,!!i&&u)}function r(t,e,n,i){var r;r="wheel"===s?n:function(t){for(var e=0;e<c.length;e++)if(c[e].element===t)return c[e].fn;return function(){}}(t),t[l](a+e,r,!!i&&u),function(t){for(var e=0;e<c.length;e++)if(c[e].element===t)return c.splice(e,1)}(t)}var o,l,s,a,c,u;e.exports=(c=[],u={passive:!(a="")},window.addEventListener?(o="addEventListener",l="removeEventListener"):(o="attachEvent",l="detachEvent",a="on"),s="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",{on:function(t,e,n){i(t,s,e,n),"DOMMouseScroll"==s&&i(t,"MozMousePixelScroll",e,n)},off:function(t,e,n){r(t,s,e,n),"DOMMouseScroll"==s&&r(t,"MozMousePixelScroll",e,n)}})},{}],7:[function(t,e,n){function i(t){return function(e){window.setTimeout(e,t)}}e.exports={extend:function(t,e){for(var n in t=t||{},e)this.isObject(e[n])?t[n]=this.extend(t[n],e[n]):t[n]=e[n];return t},isElement:function(t){return t instanceof HTMLElement||t instanceof SVGElement||t instanceof SVGSVGElement||t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName},isObject:function(t){return"[object Object]"===Object.prototype.toString.call(t)},isNumber:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},getSvg:function(t){var e,n;if(this.isElement(t))e=t;else{if(!("string"==typeof t||t instanceof String))throw new Error("Provided selector is not an HTML object nor String");if(!(e=document.querySelector(t)))throw new Error("Provided selector did not find any elements. Selector: "+t)}if("svg"===e.tagName.toLowerCase())n=e;else if("object"===e.tagName.toLowerCase())n=e.contentDocument.documentElement;else{if("embed"!==e.tagName.toLowerCase())throw"img"===e.tagName.toLowerCase()?new Error('Cannot script an SVG in an "img" element. Please use an "object" element or an in-line SVG.'):new Error("Cannot get SVG.");n=e.getSVGDocument().documentElement}return n},proxy:function(t,e){return function(){return t.apply(e,arguments)}},getType:function(t){return Object.prototype.toString.apply(t).replace(/^\[object\s/,"").replace(/\]$/,"")},mouseAndTouchNormalize:function(t,e){if(void 0===t.clientX||null===t.clientX)if(t.clientX=0,void(t.clientY=0)!==t.touches&&t.touches.length){if(void 0!==t.touches[0].clientX)t.clientX=t.touches[0].clientX,t.clientY=t.touches[0].clientY;else if(void 0!==t.touches[0].pageX){var n=e.getBoundingClientRect();t.clientX=t.touches[0].pageX-n.left,t.clientY=t.touches[0].pageY-n.top}}else void 0!==t.originalEvent&&void 0!==t.originalEvent.clientX&&(t.clientX=t.originalEvent.clientX,t.clientY=t.originalEvent.clientY)},isDblClick:function(t,e){if(2===t.detail)return!0;if(null==e)return!1;var n=t.timeStamp-e.timeStamp,i=Math.sqrt(Math.pow(t.clientX-e.clientX,2)+Math.pow(t.clientY-e.clientY,2));return n<250&&i<10},now:Date.now||function(){return(new Date).getTime()},throttle:function(t,e,n){var i,r,o,l=this,s=null,a=0;function c(){a=!1===n.leading?0:l.now(),s=null,o=t.apply(i,r),s||(i=r=null)}return n=n||{},function(){var u=l.now();a||!1!==n.leading||(a=u);var d=e-(u-a);return i=this,r=arguments,d<=0||e<d?(clearTimeout(s),s=null,a=u,o=t.apply(i,r),s||(i=r=null)):s||!1===n.trailing||(s=setTimeout(c,d)),o}},createRequestAnimationFrame:function(t){var e=null;return"auto"!==t&&t<60&&1<t&&(e=Math.floor(1e3/t)),null===e?window.requestAnimationFrame||i(33):i(e)}}},{}]},{},[3]),function(t,e){"function"==typeof define&&define.amd?define(["svg-pan-zoom"],(function(n){return t.svgMap=e(n)})):"object"==typeof module&&module.exports?module.exports=t.svgMap=e(require("svg-pan-zoom")):t.svgMap=e(t.svgPanZoom)}(this,(function(t){return svgMapWrapper(t)})),function(){function t(t){return t&&t.__esModule?t.default:t}function e(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}function a(t,n){return!n||"object"!=((i=n)&&i.constructor===Symbol?"symbol":typeof i)&&"function"!=typeof n?e(t):n;var i}var c;function u(t){return Array.isArray(t)||"[object Object]"=={}.toString.call(t)}function d(t){return!t||"object"!=typeof t&&"function"!=typeof t}c=function t(){var e=[].slice.call(arguments),n=!1;"boolean"==typeof e[0]&&(n=e.shift());var i=e[0];if(d(i))throw new Error("extendee must be an object");for(var r=e.slice(1),o=r.length,l=0;l<o;l++){var s=r[l];for(var a in s)if(Object.prototype.hasOwnProperty.call(s,a)){var c=s[a];if(n&&u(c)){var h=Array.isArray(c)?[]:{};i[a]=t(!0,Object.prototype.hasOwnProperty.call(i,a)&&!d(i[a])?i[a]:h,c)}else i[a]=c}}return i};var h=function(){"use strict";function t(){n(this,t)}return r(t,[{key:"on",value:function(t,e){return this._callbacks=this._callbacks||{},this._callbacks[t]||(this._callbacks[t]=[]),this._callbacks[t].push(e),this}},{key:"emit",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this._callbacks=this._callbacks||{};var r=this._callbacks[t],o=!0,l=!1,s=void 0;if(r)try{for(var a,c=r[Symbol.iterator]();!(o=(a=c.next()).done);o=!0){var u=a.value;u.apply(this,n)}}catch(t){l=!0,s=t}finally{try{o||null==c.return||c.return()}finally{if(l)throw s}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+t,{args:n})),this}},{key:"makeEvent",value:function(t,e){var n={bubbles:!0,cancelable:!0,detail:e};if("function"==typeof window.CustomEvent)return new CustomEvent(t,n);var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),i}},{key:"off",value:function(t,e){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[t];if(!n)return this;if(1===arguments.length)return delete this._callbacks[t],this;for(var i=0;i<n.length;i++){var r=n[i];if(r===e){n.splice(i,1);break}}return this}}]),t}(),p={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2097152,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,defaultHeaders:!0,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(t,e,n){if(n)return{dzuuid:n.file.upload.uuid,dzchunkindex:n.index,dztotalfilesize:n.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:n.file.upload.totalChunkCount,dzchunkbyteoffset:n.index*this.options.chunkSize}},accept:function(t,e){return e()},chunksUploaded:function(t,e){e()},binaryBody:!1,fallback:function(){var t;this.element.className="".concat(this.element.className," dz-browser-not-supported");var e=!0,n=!1,i=void 0;try{for(var r,o=this.element.getElementsByTagName("div")[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var l=r.value;if(/(^| )dz-message($| )/.test(l.className)){t=l,l.className="dz-message";break}}}catch(t){n=!0,i=t}finally{try{e||null==o.return||o.return()}finally{if(n)throw i}}t||(t=f.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(t));var s=t.getElementsByTagName("span")[0];return s&&(null!=s.textContent?s.textContent=this.options.dictFallbackMessage:null!=s.innerText&&(s.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(t,e,n,i){var r={srcX:0,srcY:0,srcWidth:t.width,srcHeight:t.height},o=t.width/t.height;null==e&&null==n?(e=r.srcWidth,n=r.srcHeight):null==e?e=n*o:null==n&&(n=e/o);var l=(e=Math.min(e,r.srcWidth))/(n=Math.min(n,r.srcHeight));if(r.srcWidth>e||r.srcHeight>n)if("crop"===i)o>l?(r.srcHeight=t.height,r.srcWidth=r.srcHeight*l):(r.srcWidth=t.width,r.srcHeight=r.srcWidth/l);else{if("contain"!==i)throw new Error("Unknown resizeMethod '".concat(i,"'"));o>l?n=e/o:e=n*o}return r.srcX=(t.width-r.srcWidth)/2,r.srcY=(t.height-r.srcHeight)/2,r.trgWidth=e,r.trgHeight=n,r},transformFile:function(t,e){return(this.options.resizeWidth||this.options.resizeHeight)&&t.type.match(/image.*/)?this.resizeImage(t,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,e):e(t)},previewTemplate:t('<div class="dz-file-preview dz-preview"> <div class="dz-image"><img data-dz-thumbnail=""></div> <div class="dz-details"> <div class="dz-size"><span data-dz-size=""></span></div> <div class="dz-filename"><span data-dz-name=""></span></div> </div> <div class="dz-progress"> <span class="dz-upload" data-dz-uploadprogress=""></span> </div> <div class="dz-error-message"><span data-dz-errormessage=""></span></div> <div class="dz-success-mark"> <svg width="54" height="54" fill="#fff"><path d="m10.207 29.793 4.086-4.086a1 1 0 0 1 1.414 0l5.586 5.586a1 1 0 0 0 1.414 0l15.586-15.586a1 1 0 0 1 1.414 0l4.086 4.086a1 1 0 0 1 0 1.414L22.707 42.293a1 1 0 0 1-1.414 0L10.207 31.207a1 1 0 0 1 0-1.414Z"/></svg> </div> <div class="dz-error-mark"> <svg width="54" height="54" fill="#fff"><path d="m26.293 20.293-7.086-7.086a1 1 0 0 0-1.414 0l-4.586 4.586a1 1 0 0 0 0 1.414l7.086 7.086a1 1 0 0 1 0 1.414l-7.086 7.086a1 1 0 0 0 0 1.414l4.586 4.586a1 1 0 0 0 1.414 0l7.086-7.086a1 1 0 0 1 1.414 0l7.086 7.086a1 1 0 0 0 1.414 0l4.586-4.586a1 1 0 0 0 0-1.414l-7.086-7.086a1 1 0 0 1 0-1.414l7.086-7.086a1 1 0 0 0 0-1.414l-4.586-4.586a1 1 0 0 0-1.414 0l-7.086 7.086a1 1 0 0 1-1.414 0Z"/></svg> </div> </div>'),drop:function(t){return this.element.classList.remove("dz-drag-hover")},dragstart:function(t){},dragend:function(t){return this.element.classList.remove("dz-drag-hover")},dragenter:function(t){return this.element.classList.add("dz-drag-hover")},dragover:function(t){return this.element.classList.add("dz-drag-hover")},dragleave:function(t){return this.element.classList.remove("dz-drag-hover")},paste:function(t){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(t){if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){var e=this;t.previewElement=f.createElement(this.options.previewTemplate.trim()),t.previewTemplate=t.previewElement,this.previewsContainer.appendChild(t.previewElement);var n=!0,i=!1,r=void 0;try{for(var o,l=t.previewElement.querySelectorAll("[data-dz-name]")[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=o.value;s.textContent=t.name}}catch(t){i=!0,r=t}finally{try{n||null==l.return||l.return()}finally{if(i)throw r}}var a=!0,c=!1,u=void 0;try{for(var d,h=t.previewElement.querySelectorAll("[data-dz-size]")[Symbol.iterator]();!(a=(d=h.next()).done);a=!0)(s=d.value).innerHTML=this.filesize(t.size)}catch(t){c=!0,u=t}finally{try{a||null==h.return||h.return()}finally{if(c)throw u}}this.options.addRemoveLinks&&(t._removeLink=f.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),t.previewElement.appendChild(t._removeLink));var p=function(n){var i=e;if(n.preventDefault(),n.stopPropagation(),t.status===f.UPLOADING)return f.confirm(e.options.dictCancelUploadConfirmation,(function(){return i.removeFile(t)}));var r=e;return e.options.dictRemoveFileConfirmation?f.confirm(e.options.dictRemoveFileConfirmation,(function(){return r.removeFile(t)})):e.removeFile(t)},g=!0,m=!1,v=void 0;try{for(var y,b=t.previewElement.querySelectorAll("[data-dz-remove]")[Symbol.iterator]();!(g=(y=b.next()).done);g=!0)y.value.addEventListener("click",p)}catch(t){m=!0,v=t}finally{try{g||null==b.return||b.return()}finally{if(m)throw v}}}},removedfile:function(t){return null!=t.previewElement&&null!=t.previewElement.parentNode&&t.previewElement.parentNode.removeChild(t.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(t,e){if(t.previewElement){t.previewElement.classList.remove("dz-file-preview");var n=!0,i=!1,r=void 0;try{for(var o,l=t.previewElement.querySelectorAll("[data-dz-thumbnail]")[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=o.value;s.alt=t.name,s.src=e}}catch(t){i=!0,r=t}finally{try{n||null==l.return||l.return()}finally{if(i)throw r}}return setTimeout((function(){return t.previewElement.classList.add("dz-image-preview")}),1)}},error:function(t,e){if(t.previewElement){t.previewElement.classList.add("dz-error"),"string"!=typeof e&&e.error&&(e=e.error);var n=!0,i=!1,r=void 0;try{for(var o,l=t.previewElement.querySelectorAll("[data-dz-errormessage]")[Symbol.iterator]();!(n=(o=l.next()).done);n=!0)o.value.textContent=e}catch(t){i=!0,r=t}finally{try{n||null==l.return||l.return()}finally{if(i)throw r}}}},errormultiple:function(){},processing:function(t){if(t.previewElement&&(t.previewElement.classList.add("dz-processing"),t._removeLink))return t._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(t,e,n){var i=!0,r=!1,o=void 0;if(t.previewElement)try{for(var l,s=t.previewElement.querySelectorAll("[data-dz-uploadprogress]")[Symbol.iterator]();!(i=(l=s.next()).done);i=!0){var a=l.value;"PROGRESS"===a.nodeName?a.value=e:a.style.width="".concat(e,"%")}}catch(t){r=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(t){if(t.previewElement)return t.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(t){return this.emit("error",t,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(t){if(t._removeLink&&(t._removeLink.innerHTML=this.options.dictRemoveFile),t.previewElement)return t.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},f=function(i){"use strict";function l(i,r){var s,u,d,h;if(n(this,l),(s=a(this,(u=l,o(u)).call(this))).element=i,s.clickableElements=[],s.listeners=[],s.files=[],"string"==typeof s.element&&(s.element=document.querySelector(s.element)),!s.element||null==s.element.nodeType)throw new Error("Invalid dropzone element.");if(s.element.dropzone)throw new Error("Dropzone already attached.");l.instances.push(e(s)),s.element.dropzone=e(s);var f=null!=(h=l.optionsForElement(s.element))?h:{};if(s.options=t(c)(!0,{},p,f,null!=r?r:{}),s.options.previewTemplate=s.options.previewTemplate.replace(/\n*/g,""),s.options.forceFallback||!l.isBrowserSupported())return a(s,s.options.fallback.call(e(s)));if(null==s.options.url&&(s.options.url=s.element.getAttribute("action")),!s.options.url)throw new Error("No URL provided.");if(s.options.acceptedFiles&&s.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(s.options.uploadMultiple&&s.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");if(s.options.binaryBody&&s.options.uploadMultiple)throw new Error("You cannot set both: binaryBody and uploadMultiple.");return s.options.acceptedMimeTypes&&(s.options.acceptedFiles=s.options.acceptedMimeTypes,delete s.options.acceptedMimeTypes),null!=s.options.renameFilename&&(s.options.renameFile=function(t){return s.options.renameFilename.call(e(s),t.name,t)}),"string"==typeof s.options.method&&(s.options.method=s.options.method.toUpperCase()),(d=s.getExistingFallback())&&d.parentNode&&d.parentNode.removeChild(d),!1!==s.options.previewsContainer&&(s.options.previewsContainer?s.previewsContainer=l.getElement(s.options.previewsContainer,"previewsContainer"):s.previewsContainer=s.element),s.options.clickable&&(!0===s.options.clickable?s.clickableElements=[s.element]:s.clickableElements=l.getElements(s.options.clickable,"clickable")),s.init(),s}return s(l,i),r(l,[{key:"getAcceptedFiles",value:function(){return this.files.filter((function(t){return t.accepted})).map((function(t){return t}))}},{key:"getRejectedFiles",value:function(){return this.files.filter((function(t){return!t.accepted})).map((function(t){return t}))}},{key:"getFilesWithStatus",value:function(t){return this.files.filter((function(e){return e.status===t})).map((function(t){return t}))}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(l.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(l.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(l.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter((function(t){return t.status===l.UPLOADING||t.status===l.QUEUED})).map((function(t){return t}))}},{key:"init",value:function(){var t=this,e=this,n=this,i=this,r=this,o=this,s=this,a=this,c=this,u=this,d=this;if("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(l.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){var h=this,p=function(){var t=h;h.hiddenFileInput&&h.hiddenFileInput.parentNode.removeChild(h.hiddenFileInput),h.hiddenFileInput=document.createElement("input"),h.hiddenFileInput.setAttribute("type","file"),(null===h.options.maxFiles||h.options.maxFiles>1)&&h.hiddenFileInput.setAttribute("multiple","multiple"),h.hiddenFileInput.className="dz-hidden-input",null!==h.options.acceptedFiles&&h.hiddenFileInput.setAttribute("accept",h.options.acceptedFiles),null!==h.options.capture&&h.hiddenFileInput.setAttribute("capture",h.options.capture),h.hiddenFileInput.setAttribute("tabindex","-1"),h.hiddenFileInput.style.visibility="hidden",h.hiddenFileInput.style.position="absolute",h.hiddenFileInput.style.top="0",h.hiddenFileInput.style.left="0",h.hiddenFileInput.style.height="0",h.hiddenFileInput.style.width="0",l.getElement(h.options.hiddenInputContainer,"hiddenInputContainer").appendChild(h.hiddenFileInput),h.hiddenFileInput.addEventListener("change",(function(){var e=t.hiddenFileInput.files,n=!0,i=!1,r=void 0;if(e.length)try{for(var o,l=e[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=o.value;t.addFile(s)}}catch(t){i=!0,r=t}finally{try{n||null==l.return||l.return()}finally{if(i)throw r}}t.emit("addedfiles",e),p()}))};p()}this.URL=null!==window.URL?window.URL:window.webkitURL;var f=!0,g=!1,m=void 0;try{for(var v,y=this.events[Symbol.iterator]();!(f=(v=y.next()).done);f=!0){var b=v.value;this.on(b,this.options[b])}}catch(t){g=!0,m=t}finally{try{f||null==y.return||y.return()}finally{if(g)throw m}}this.on("uploadprogress",(function(){return t.updateTotalUploadProgress()})),this.on("removedfile",(function(){return e.updateTotalUploadProgress()})),this.on("canceled",(function(t){return n.emit("complete",t)})),this.on("complete",(function(t){var e=i;if(0===i.getAddedFiles().length&&0===i.getUploadingFiles().length&&0===i.getQueuedFiles().length)return setTimeout((function(){return e.emit("queuecomplete")}),0)}));var _=function(t){if(function(t){if(t.dataTransfer.types)for(var e=0;e<t.dataTransfer.types.length;e++)if("Files"===t.dataTransfer.types[e])return!0;return!1}(t))return t.stopPropagation(),t.preventDefault?t.preventDefault():t.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(t){return r.emit("dragstart",t)},dragenter:function(t){return _(t),o.emit("dragenter",t)},dragover:function(t){var e;try{e=t.dataTransfer.effectAllowed}catch(t){}return t.dataTransfer.dropEffect="move"===e||"linkMove"===e?"move":"copy",_(t),s.emit("dragover",t)},dragleave:function(t){return a.emit("dragleave",t)},drop:function(t){return _(t),c.drop(t)},dragend:function(t){return u.emit("dragend",t)}}}],this.clickableElements.forEach((function(t){var e=d;return d.listeners.push({element:t,events:{click:function(n){return(t!==e.element||n.target===e.element||l.elementInside(n.target,e.element.querySelector(".dz-message")))&&e.hiddenFileInput.click(),!0}}})})),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,l.instances.splice(l.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var t,e=0,n=0;if(this.getActiveFiles().length){var i=!0,r=!1,o=void 0;try{for(var l,s=this.getActiveFiles()[Symbol.iterator]();!(i=(l=s.next()).done);i=!0){var a=l.value;e+=a.upload.bytesSent,n+=a.upload.total}}catch(t){r=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}t=100*e/n}else t=100;return this.emit("totaluploadprogress",t,n,e)}},{key:"_getParamName",value:function(t){return"function"==typeof this.options.paramName?this.options.paramName(t):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(t,"]"):"")}},{key:"_renameFile",value:function(t){return"function"!=typeof this.options.renameFile?t.name:this.options.renameFile(t)}},{key:"getFallbackForm",value:function(){var t,e;if(t=this.getExistingFallback())return t;var n='<div class="dz-fallback">';this.options.dictFallbackText&&(n+="<p>".concat(this.options.dictFallbackText,"</p>")),n+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var i=l.createElement(n);return"FORM"!==this.element.tagName?(e=l.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>'))).appendChild(i):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=e?e:i}},{key:"getExistingFallback",value:function(){var t=function(t){var e=!0,n=!1,i=void 0;try{for(var r,o=t[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var l=r.value;if(/(^| )fallback($| )/.test(l.className))return l}}catch(t){n=!0,i=t}finally{try{e||null==o.return||o.return()}finally{if(n)throw i}}},e=!0,n=!1,i=void 0;try{for(var r,o=["div","form"][Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var l,s=r.value;if(l=t(this.element.getElementsByTagName(s)))return l}}catch(t){n=!0,i=t}finally{try{e||null==o.return||o.return()}finally{if(n)throw i}}}},{key:"setupEventListeners",value:function(){return this.listeners.map((function(t){return function(){var e=[];for(var n in t.events){var i=t.events[n];e.push(t.element.addEventListener(n,i,!1))}return e}()}))}},{key:"removeEventListeners",value:function(){return this.listeners.map((function(t){return function(){var e=[];for(var n in t.events){var i=t.events[n];e.push(t.element.removeEventListener(n,i,!1))}return e}()}))}},{key:"disable",value:function(){var t=this;return this.clickableElements.forEach((function(t){return t.classList.remove("dz-clickable")})),this.removeEventListeners(),this.disabled=!0,this.files.map((function(e){return t.cancelUpload(e)}))}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach((function(t){return t.classList.add("dz-clickable")})),this.setupEventListeners()}},{key:"filesize",value:function(t){var e=0,n="b";if(t>0){for(var i=["tb","gb","mb","kb","b"],r=0;r<i.length;r++){var o=i[r];if(t>=Math.pow(this.options.filesizeBase,4-r)/10){e=t/Math.pow(this.options.filesizeBase,4-r),n=o;break}}e=Math.round(10*e)/10}return"<strong>".concat(e,"</strong> ").concat(this.options.dictFileSizeUnits[n])}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(t){if(t.dataTransfer){this.emit("drop",t);for(var e=[],n=0;n<t.dataTransfer.files.length;n++)e[n]=t.dataTransfer.files[n];if(e.length){var i=t.dataTransfer.items;i&&i.length&&null!=i[0].webkitGetAsEntry?this._addFilesFromItems(i):this.handleFiles(e)}this.emit("addedfiles",e)}}},{key:"paste",value:function(t){if(null!=(null!=(e=null!=t?t.clipboardData:void 0)?function(t){return t.items}(e):void 0)){var e;this.emit("paste",t);var n=t.clipboardData.items;return n.length?this._addFilesFromItems(n):void 0}}},{key:"handleFiles",value:function(t){var e=!0,n=!1,i=void 0;try{for(var r,o=t[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var l=r.value;this.addFile(l)}}catch(t){n=!0,i=t}finally{try{e||null==o.return||o.return()}finally{if(n)throw i}}}},{key:"_addFilesFromItems",value:function(t){var e=this;return function(){var n=[],i=!0,r=!1,o=void 0;try{for(var l,s=t[Symbol.iterator]();!(i=(l=s.next()).done);i=!0){var a,c=l.value;null!=c.webkitGetAsEntry&&(a=c.webkitGetAsEntry())?a.isFile?n.push(e.addFile(c.getAsFile())):a.isDirectory?n.push(e._addFilesFromDirectory(a,a.name)):n.push(void 0):null==c.getAsFile||null!=c.kind&&"file"!==c.kind?n.push(void 0):n.push(e.addFile(c.getAsFile()))}}catch(t){r=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}()}},{key:"_addFilesFromDirectory",value:function(t,e){var n=this,i=t.createReader(),r=function(t){return"log",n=function(e){return e.log(t)},null!=(e=console)&&"function"==typeof e.log?n(e):void 0;var e,n},o=function(){var t=n;return i.readEntries((function(n){if(n.length>0){var i=!0,r=!1,l=void 0;try{for(var s,a=n[Symbol.iterator]();!(i=(s=a.next()).done);i=!0){var c=s.value,u=t;c.isFile?c.file((function(t){if(!u.options.ignoreHiddenFiles||"."!==t.name.substring(0,1))return t.fullPath="".concat(e,"/").concat(t.name),u.addFile(t)})):c.isDirectory&&t._addFilesFromDirectory(c,"".concat(e,"/").concat(c.name))}}catch(t){r=!0,l=t}finally{try{i||null==a.return||a.return()}finally{if(r)throw l}}o()}return null}),r)};return o()}},{key:"accept",value:function(t,e){this.options.maxFilesize&&t.size>1048576*this.options.maxFilesize?e(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(t.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):l.isValidFile(t,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(e(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",t)):this.options.accept.call(this,t,e):e(this.options.dictInvalidFileType)}},{key:"addFile",value:function(t){var e=this;t.upload={uuid:l.uuidv4(),progress:0,total:t.size,bytesSent:0,filename:this._renameFile(t)},this.files.push(t),t.status=l.ADDED,this.emit("addedfile",t),this._enqueueThumbnail(t),this.accept(t,(function(n){n?(t.accepted=!1,e._errorProcessing([t],n)):(t.accepted=!0,e.options.autoQueue&&e.enqueueFile(t)),e._updateMaxFilesReachedClass()}))}},{key:"enqueueFiles",value:function(t){var e=!0,n=!1,i=void 0;try{for(var r,o=t[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var l=r.value;this.enqueueFile(l)}}catch(t){n=!0,i=t}finally{try{e||null==o.return||o.return()}finally{if(n)throw i}}return null}},{key:"enqueueFile",value:function(t){if(t.status!==l.ADDED||!0!==t.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");var e=this;if(t.status=l.QUEUED,this.options.autoProcessQueue)return setTimeout((function(){return e.processQueue()}),0)}},{key:"_enqueueThumbnail",value:function(t){if(this.options.createImageThumbnails&&t.type.match(/image.*/)&&t.size<=1048576*this.options.maxThumbnailFilesize){var e=this;return this._thumbnailQueue.push(t),setTimeout((function(){return e._processThumbnailQueue()}),0)}}},{key:"_processThumbnailQueue",value:function(){var t=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var e=this._thumbnailQueue.shift();return this.createThumbnail(e,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,(function(n){return t.emit("thumbnail",e,n),t._processingThumbnail=!1,t._processThumbnailQueue()}))}}},{key:"removeFile",value:function(t){if(t.status===l.UPLOADING&&this.cancelUpload(t),this.files=g(this.files,t),this.emit("removedfile",t),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(t){null==t&&(t=!1);var e=!0,n=!1,i=void 0;try{for(var r,o=this.files.slice()[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var s=r.value;(s.status!==l.UPLOADING||t)&&this.removeFile(s)}}catch(t){n=!0,i=t}finally{try{e||null==o.return||o.return()}finally{if(n)throw i}}return null}},{key:"resizeImage",value:function(t,e,n,i,r){var o=this;return this.createThumbnail(t,e,n,i,!0,(function(e,n){if(null==n)return r(t);var i=o.options.resizeMimeType;null==i&&(i=t.type);var s=n.toDataURL(i,o.options.resizeQuality);return"image/jpeg"!==i&&"image/jpg"!==i||(s=y.restore(t.dataURL,s)),r(l.dataURItoBlob(s))}))}},{key:"createThumbnail",value:function(t,e,n,i,r,o){var l=this,s=new FileReader;s.onload=function(){t.dataURL=s.result,"image/svg+xml"!==t.type?l.createThumbnailFromUrl(t,e,n,i,r,o):null!=o&&o(s.result)},s.readAsDataURL(t)}},{key:"displayExistingFile",value:function(t,e,n,i,r){var o=void 0===r||r;if(this.emit("addedfile",t),this.emit("complete",t),o){var l=this;t.dataURL=e,this.createThumbnailFromUrl(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,(function(e){l.emit("thumbnail",t,e),n&&n()}),i)}else this.emit("thumbnail",t,e),n&&n()}},{key:"createThumbnailFromUrl",value:function(t,e,n,i,r,o,l){var s=this,a=document.createElement("img");return l&&(a.crossOrigin=l),r="from-image"!=getComputedStyle(document.body).imageOrientation&&r,a.onload=function(){var l=s,c=function(t){return t(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&r&&(c=function(t){return EXIF.getData(a,(function(){return t(EXIF.getTag(this,"Orientation"))}))}),c((function(r){t.width=a.width,t.height=a.height;var s=l.options.resize.call(l,t,e,n,i),c=document.createElement("canvas"),u=c.getContext("2d");switch(c.width=s.trgWidth,c.height=s.trgHeight,r>4&&(c.width=s.trgHeight,c.height=s.trgWidth),r){case 2:u.translate(c.width,0),u.scale(-1,1);break;case 3:u.translate(c.width,c.height),u.rotate(Math.PI);break;case 4:u.translate(0,c.height),u.scale(1,-1);break;case 5:u.rotate(.5*Math.PI),u.scale(1,-1);break;case 6:u.rotate(.5*Math.PI),u.translate(0,-c.width);break;case 7:u.rotate(.5*Math.PI),u.translate(c.height,-c.width),u.scale(-1,1);break;case 8:u.rotate(-.5*Math.PI),u.translate(-c.height,0)}v(u,a,null!=s.srcX?s.srcX:0,null!=s.srcY?s.srcY:0,s.srcWidth,s.srcHeight,null!=s.trgX?s.trgX:0,null!=s.trgY?s.trgY:0,s.trgWidth,s.trgHeight);var d=c.toDataURL("image/png");if(null!=o)return o(d,c)}))},null!=o&&(a.onerror=o),a.src=t.dataURL}},{key:"processQueue",value:function(){var t=this.options.parallelUploads,e=this.getUploadingFiles().length,n=e;if(!(e>=t)){var i=this.getQueuedFiles();if(i.length>0){if(this.options.uploadMultiple)return this.processFiles(i.slice(0,t-e));for(;n<t;){if(!i.length)return;this.processFile(i.shift()),n++}}}}},{key:"processFile",value:function(t){return this.processFiles([t])}},{key:"processFiles",value:function(t){var e=!0,n=!1,i=void 0;try{for(var r,o=t[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var s=r.value;s.processing=!0,s.status=l.UPLOADING,this.emit("processing",s)}}catch(t){n=!0,i=t}finally{try{e||null==o.return||o.return()}finally{if(n)throw i}}return this.options.uploadMultiple&&this.emit("processingmultiple",t),this.uploadFiles(t)}},{key:"_getFilesWithXhr",value:function(t){return this.files.filter((function(e){return e.xhr===t})).map((function(t){return t}))}},{key:"cancelUpload",value:function(t){if(t.status===l.UPLOADING){var e=this._getFilesWithXhr(t.xhr),n=!0,i=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)(p=o.value).status=l.CANCELED}catch(t){i=!0,r=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw r}}void 0!==t.xhr&&t.xhr.abort();var a=!0,c=!1,u=void 0;try{for(var d,h=e[Symbol.iterator]();!(a=(d=h.next()).done);a=!0){var p=d.value;this.emit("canceled",p)}}catch(t){c=!0,u=t}finally{try{a||null==h.return||h.return()}finally{if(c)throw u}}this.options.uploadMultiple&&this.emit("canceledmultiple",e)}else t.status!==l.ADDED&&t.status!==l.QUEUED||(t.status=l.CANCELED,this.emit("canceled",t),this.options.uploadMultiple&&this.emit("canceledmultiple",[t]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return"function"==typeof t?t.apply(this,n):t}},{key:"uploadFile",value:function(t){return this.uploadFiles([t])}},{key:"uploadFiles",value:function(t){var e=this;this._transformFiles(t,(function(n){if(e.options.chunking){var i=n[0];t[0].upload.chunked=e.options.chunking&&(e.options.forceChunking||i.size>e.options.chunkSize),t[0].upload.totalChunkCount=Math.ceil(i.size/e.options.chunkSize)}if(t[0].upload.chunked){var r=e,o=e,s=t[0];i=n[0],s.upload.chunks=[];var a=function(){for(var e=0;void 0!==s.upload.chunks[e];)e++;if(!(e>=s.upload.totalChunkCount)){var n=e*r.options.chunkSize,o=Math.min(n+r.options.chunkSize,i.size),a={name:r._getParamName(0),data:i.webkitSlice?i.webkitSlice(n,o):i.slice(n,o),filename:s.upload.filename,chunkIndex:e};s.upload.chunks[e]={file:s,index:e,dataBlock:a,status:l.UPLOADING,progress:0,retries:0},r._uploadData(t,[a])}};if(s.upload.finishedChunkUpload=function(e,n){var i=o,r=!0;e.status=l.SUCCESS,e.dataBlock=null,e.response=e.xhr.responseText,e.responseHeaders=e.xhr.getAllResponseHeaders(),e.xhr=null;for(var c=0;c<s.upload.totalChunkCount;c++){if(void 0===s.upload.chunks[c])return a();s.upload.chunks[c].status!==l.SUCCESS&&(r=!1)}r&&o.options.chunksUploaded(s,(function(){i._finished(t,n,null)}))},e.options.parallelChunkUploads)for(var c=0;c<s.upload.totalChunkCount;c++)a();else a()}else{var u=[];for(c=0;c<t.length;c++)u[c]={name:e._getParamName(c),data:n[c],filename:t[c].upload.filename};e._uploadData(t,u)}}))}},{key:"_getChunk",value:function(t,e){for(var n=0;n<t.upload.totalChunkCount;n++)if(void 0!==t.upload.chunks[n]&&t.upload.chunks[n].xhr===e)return t.upload.chunks[n]}},{key:"_uploadData",value:function(e,n){var i=this,r=this,o=this,l=this,s=new XMLHttpRequest,a=!0,u=!1,d=void 0;try{for(var h=e[Symbol.iterator]();!(a=(S=h.next()).done);a=!0)(y=S.value).xhr=s}catch(t){u=!0,d=t}finally{try{a||null==h.return||h.return()}finally{if(u)throw d}}e[0].upload.chunked&&(e[0].upload.chunks[n[0].chunkIndex].xhr=s);var p=this.resolveOption(this.options.method,e,n),f=this.resolveOption(this.options.url,e,n);s.open(p,f,!0),this.resolveOption(this.options.timeout,e)&&(s.timeout=this.resolveOption(this.options.timeout,e)),s.withCredentials=!!this.options.withCredentials,s.onload=function(t){i._finishedUploading(e,s,t)},s.ontimeout=function(){r._handleUploadError(e,s,"Request timedout after ".concat(r.options.timeout/1e3," seconds"))},s.onerror=function(){o._handleUploadError(e,s)},(null!=s.upload?s.upload:s).onprogress=function(t){return l._updateFilesUploadProgress(e,s,t)};var g=this.options.defaultHeaders?{Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"}:{};for(var m in this.options.binaryBody&&(g["Content-Type"]=e[0].type),this.options.headers&&t(c)(g,this.options.headers),g){var v=g[m];v&&s.setRequestHeader(m,v)}if(this.options.binaryBody){a=!0,u=!1,d=void 0;try{for(h=e[Symbol.iterator]();!(a=(S=h.next()).done);a=!0){var y=S.value;this.emit("sending",y,s)}}catch(t){u=!0,d=t}finally{try{a||null==h.return||h.return()}finally{if(u)throw d}}this.options.uploadMultiple&&this.emit("sendingmultiple",e,s),this.submitRequest(s,null,e)}else{var b=new FormData;if(this.options.params){var _=this.options.params;for(var w in"function"==typeof _&&(_=_.call(this,e,s,e[0].upload.chunked?this._getChunk(e[0],s):null)),_){var x=_[w];if(Array.isArray(x))for(var E=0;E<x.length;E++)b.append(w,x[E]);else b.append(w,x)}}a=!0,u=!1,d=void 0;try{var S;for(h=e[Symbol.iterator]();!(a=(S=h.next()).done);a=!0)y=S.value,this.emit("sending",y,s,b)}catch(t){u=!0,d=t}finally{try{a||null==h.return||h.return()}finally{if(u)throw d}}for(this.options.uploadMultiple&&this.emit("sendingmultiple",e,s,b),this._addFormElementData(b),E=0;E<n.length;E++){var C=n[E];b.append(C.name,C.data,C.filename)}this.submitRequest(s,b,e)}}},{key:"_transformFiles",value:function(t,e){for(var n=this,i=function(i){n.options.transformFile.call(n,t[i],(function(n){r[i]=n,++o===t.length&&e(r)}))},r=[],o=0,l=0;l<t.length;l++)i(l)}},{key:"_addFormElementData",value:function(t){var e=!0,n=!1,i=void 0;if("FORM"===this.element.tagName)try{for(var r=this.element.querySelectorAll("input, textarea, select, button")[Symbol.iterator]();!(e=(a=r.next()).done);e=!0){var o=a.value,l=o.getAttribute("name"),s=o.getAttribute("type");if(s&&(s=s.toLowerCase()),null!=l)if("SELECT"===o.tagName&&o.hasAttribute("multiple")){e=!0,n=!1,i=void 0;try{var a;for(r=o.options[Symbol.iterator]();!(e=(a=r.next()).done);e=!0){var c=a.value;c.selected&&t.append(l,c.value)}}catch(t){n=!0,i=t}finally{try{e||null==r.return||r.return()}finally{if(n)throw i}}}else(!s||"checkbox"!==s&&"radio"!==s||o.checked)&&t.append(l,o.value)}}catch(t){n=!0,i=t}finally{try{e||null==r.return||r.return()}finally{if(n)throw i}}}},{key:"_updateFilesUploadProgress",value:function(t,e,n){var i=!0,r=!1,o=void 0;if(t[0].upload.chunked){u=t[0];var l=this._getChunk(u,e);n?(l.progress=100*n.loaded/n.total,l.total=n.total,l.bytesSent=n.loaded):(l.progress=100,l.bytesSent=l.total),u.upload.progress=0,u.upload.total=0,u.upload.bytesSent=0;for(var s=0;s<u.upload.totalChunkCount;s++)u.upload.chunks[s]&&void 0!==u.upload.chunks[s].progress&&(u.upload.progress+=u.upload.chunks[s].progress,u.upload.total+=u.upload.chunks[s].total,u.upload.bytesSent+=u.upload.chunks[s].bytesSent);u.upload.progress=u.upload.progress/u.upload.totalChunkCount,this.emit("uploadprogress",u,u.upload.progress,u.upload.bytesSent)}else try{for(var a,c=t[Symbol.iterator]();!(i=(a=c.next()).done);i=!0){var u;(u=a.value).upload.total&&u.upload.bytesSent&&u.upload.bytesSent==u.upload.total||(n?(u.upload.progress=100*n.loaded/n.total,u.upload.total=n.total,u.upload.bytesSent=n.loaded):(u.upload.progress=100,u.upload.bytesSent=u.upload.total),this.emit("uploadprogress",u,u.upload.progress,u.upload.bytesSent))}}catch(t){r=!0,o=t}finally{try{i||null==c.return||c.return()}finally{if(r)throw o}}}},{key:"_finishedUploading",value:function(t,e,n){var i;if(t[0].status!==l.CANCELED&&4===e.readyState){if("arraybuffer"!==e.responseType&&"blob"!==e.responseType&&(i=e.responseText,e.getResponseHeader("content-type")&&~e.getResponseHeader("content-type").indexOf("application/json")))try{i=JSON.parse(i)}catch(t){n=t,i="Invalid JSON response from server."}this._updateFilesUploadProgress(t,e),200<=e.status&&e.status<300?t[0].upload.chunked?t[0].upload.finishedChunkUpload(this._getChunk(t[0],e),i):this._finished(t,i,n):this._handleUploadError(t,e,i)}}},{key:"_handleUploadError",value:function(t,e,n){if(t[0].status!==l.CANCELED){if(t[0].upload.chunked&&this.options.retryChunks){var i=this._getChunk(t[0],e);if(i.retries++<this.options.retryChunksLimit)return void this._uploadData(t,[i.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(t,n||this.options.dictResponseError.replace("{{statusCode}}",e.status),e)}}},{key:"submitRequest",value:function(t,e,n){if(1==t.readyState)if(this.options.binaryBody)if(n[0].upload.chunked){var i=this._getChunk(n[0],t);t.send(i.dataBlock.data)}else t.send(n[0]);else t.send(e);else console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.")}},{key:"_finished",value:function(t,e,n){var i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done);i=!0){var c=s.value;c.status=l.SUCCESS,this.emit("success",c,e,n),this.emit("complete",c)}}catch(t){r=!0,o=t}finally{try{i||null==a.return||a.return()}finally{if(r)throw o}}if(this.options.uploadMultiple&&(this.emit("successmultiple",t,e,n),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(t,e,n){var i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done);i=!0){var c=s.value;c.status=l.ERROR,this.emit("error",c,e,n),this.emit("complete",c)}}catch(t){r=!0,o=t}finally{try{i||null==a.return||a.return()}finally{if(r)throw o}}if(this.options.uploadMultiple&&(this.emit("errormultiple",t,e,n),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"initClass",value:function(){this.prototype.Emitter=h,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}}]),l}(h);f.initClass(),f.options={},f.optionsForElement=function(t){return t.getAttribute("id")?f.options[m(t.getAttribute("id"))]:void 0},f.instances=[],f.forElement=function(t){if("string"==typeof t&&(t=document.querySelector(t)),null==(null!=t?t.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return t.dropzone},f.discover=function(){var t;if(document.querySelectorAll)t=document.querySelectorAll(".dropzone");else{t=[];var e=function(e){return function(){var n=[],i=!0,r=!1,o=void 0;try{for(var l,s=e[Symbol.iterator]();!(i=(l=s.next()).done);i=!0){var a=l.value;/(^| )dropzone($| )/.test(a.className)?n.push(t.push(a)):n.push(void 0)}}catch(t){r=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}()};e(document.getElementsByTagName("div")),e(document.getElementsByTagName("form"))}return function(){var e=[],n=!0,i=!1,r=void 0;try{for(var o,l=t[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=o.value;!1!==f.optionsForElement(s)?e.push(new f(s)):e.push(void 0)}}catch(t){i=!0,r=t}finally{try{n||null==l.return||l.return()}finally{if(i)throw r}}return e}()},f.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],f.isBrowserSupported=function(){var t=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a")){void 0!==f.blacklistedBrowsers&&(f.blockedBrowsers=f.blacklistedBrowsers);var e=!0,n=!1,i=void 0;try{for(var r,o=f.blockedBrowsers[Symbol.iterator]();!(e=(r=o.next()).done);e=!0)r.value.test(navigator.userAgent)&&(t=!1)}catch(t){n=!0,i=t}finally{try{e||null==o.return||o.return()}finally{if(n)throw i}}}else t=!1;else t=!1;return t},f.dataURItoBlob=function(t){for(var e=atob(t.split(",")[1]),n=t.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(e.length),r=new Uint8Array(i),o=0,l=e.length,s=0<=l;s?o<=l:o>=l;s?o++:o--)r[o]=e.charCodeAt(o);return new Blob([i],{type:n})};var g=function(t,e){return t.filter((function(t){return t!==e})).map((function(t){return t}))},m=function(t){return t.replace(/[\-_](\w)/g,(function(t){return t.charAt(1).toUpperCase()}))};f.createElement=function(t){var e=document.createElement("div");return e.innerHTML=t,e.childNodes[0]},f.elementInside=function(t,e){if(t===e)return!0;for(;t=t.parentNode;)if(t===e)return!0;return!1},f.getElement=function(t,e){var n;if("string"==typeof t?n=document.querySelector(t):null!=t.nodeType&&(n=t),null==n)throw new Error("Invalid `".concat(e,"` option provided. Please provide a CSS selector or a plain HTML element."));return n},f.getElements=function(t,e){var n,i;if(t instanceof Array){i=[];try{var r=!0,o=!1,l=void 0;try{for(var s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)n=a.value,i.push(this.getElement(n,e))}catch(t){o=!0,l=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw l}}}catch(t){i=null}}else if("string"==typeof t){i=[],r=!0,o=!1,l=void 0;try{var a;for(s=document.querySelectorAll(t)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)n=a.value,i.push(n)}catch(t){o=!0,l=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw l}}}else null!=t.nodeType&&(i=[t]);if(null==i||!i.length)throw new Error("Invalid `".concat(e,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return i},f.confirm=function(t,e,n){return window.confirm(t)?e():null!=n?n():void 0},f.isValidFile=function(t,e){if(!e)return!0;e=e.split(",");var n=t.type,i=n.replace(/\/.*$/,""),r=!0,o=!1,l=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done);r=!0){var c=s.value;if("."===(c=c.trim()).charAt(0)){if(-1!==t.name.toLowerCase().indexOf(c.toLowerCase(),t.name.length-c.length))return!0}else if(/\/\*$/.test(c)){if(i===c.replace(/\/.*$/,""))return!0}else if(n===c)return!0}}catch(t){o=!0,l=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw l}}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(t){return this.each((function(){return new f(this,t)}))}),f.ADDED="added",f.QUEUED="queued",f.ACCEPTED=f.QUEUED,f.UPLOADING="uploading",f.PROCESSING=f.UPLOADING,f.CANCELED="canceled",f.ERROR="error",f.SUCCESS="success";var v=function(t,e,n,i,r,o,l,s,a,c){var u=function(t){t.naturalWidth;var e=t.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=e;var i=n.getContext("2d");i.drawImage(t,0,0);for(var r=i.getImageData(1,0,1,e).data,o=0,l=e,s=e;s>o;)0===r[4*(s-1)+3]?l=s:o=s,s=l+o>>1;var a=s/e;return 0===a?1:a}(e);return t.drawImage(e,n,i,r,o,l,s,a,c/u)},y=function(){"use strict";function t(){n(this,t)}return r(t,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(t){for(var e="",n=void 0,i=void 0,r="",o=void 0,l=void 0,s=void 0,a="",c=0;o=(n=t[c++])>>2,l=(3&n)<<4|(i=t[c++])>>4,s=(15&i)<<2|(r=t[c++])>>6,a=63&r,isNaN(i)?s=a=64:isNaN(r)&&(a=64),e=e+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(l)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(a),n=i=r="",o=l=s=a="",c<t.length;);return e}},{key:"restore",value:function(t,e){if(!t.match("data:image/jpeg;base64,"))return e;var n=this.decode64(t.replace("data:image/jpeg;base64,","")),i=this.slice2Segments(n),r=this.exifManipulation(e,i);return"data:image/jpeg;base64,".concat(this.encode64(r))}},{key:"exifManipulation",value:function(t,e){var n=this.getExifArray(e),i=this.insertExif(t,n);return new Uint8Array(i)}},{key:"getExifArray",value:function(t){for(var e=void 0,n=0;n<t.length;){if(255===(e=t[n])[0]&225===e[1])return e;n++}return[]}},{key:"insertExif",value:function(t,e){var n=t.replace("data:image/jpeg;base64,",""),i=this.decode64(n),r=i.indexOf(255,3),o=i.slice(0,r),l=i.slice(r),s=o;return(s=s.concat(e)).concat(l)}},{key:"slice2Segments",value:function(t){for(var e=0,n=[];!(255===t[e]&218===t[e+1]);){if(255===t[e]&216===t[e+1])e+=2;else{var i=e+(256*t[e+2]+t[e+3])+2,r=t.slice(e,i);n.push(r),e=i}if(e>t.length)break}return n}},{key:"decode64",value:function(t){var e=void 0,n=void 0,i="",r=void 0,o=void 0,l="",s=0,a=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(t)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");e=this.KEY_STR.indexOf(t.charAt(s++))<<2|(r=this.KEY_STR.indexOf(t.charAt(s++)))>>4,n=(15&r)<<4|(o=this.KEY_STR.indexOf(t.charAt(s++)))>>2,i=(3&o)<<6|(l=this.KEY_STR.indexOf(t.charAt(s++))),a.push(e),64!==o&&a.push(n),64!==l&&a.push(i),e=n=i="",r=o=l="",s<t.length;);return a}}]),t}();y.initClass(),window.Dropzone=f}(),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).noUiSlider={})}(this,(function(t){"use strict";function e(t){return"object"==typeof t&&"function"==typeof t.to}function n(t){t.parentElement.removeChild(t)}function i(t){return null!=t}function r(t){t.preventDefault()}function o(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function l(t,e,n){0<n&&(u(t,e),setTimeout((function(){d(t,e)}),n))}function s(t){return Math.max(Math.min(t,100),0)}function a(t){return Array.isArray(t)?t:[t]}function c(t){return 1<(t=(t=String(t)).split(".")).length?t[1].length:0}function u(t,e){t.classList&&!/\s/.test(e)?t.classList.add(e):t.className+=" "+e}function d(t,e){t.classList&&!/\s/.test(e)?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function h(t){var e=void 0!==window.pageXOffset,n="CSS1Compat"===(t.compatMode||"");return{x:e?window.pageXOffset:(n?t.documentElement:t.body).scrollLeft,y:e?window.pageYOffset:(n?t.documentElement:t.body).scrollTop}}function p(t,e){return 100/(e-t)}function f(t,e,n){return 100*e/(t[n+1]-t[n])}function g(t,e){for(var n=1;t>=e[n];)n+=1;return n}t.PipsMode=void 0,(Z=t.PipsMode||(t.PipsMode={})).Range="range",Z.Steps="steps",Z.Positions="positions",Z.Count="count",Z.Values="values",t.PipsType=void 0,(Z=t.PipsType||(t.PipsType={}))[Z.None=-1]="None",Z[Z.NoValue=0]="NoValue",Z[Z.LargeValue=1]="LargeValue",Z[Z.SmallValue=2]="SmallValue";var m=(v.prototype.getDistance=function(t){for(var e=[],n=0;n<this.xNumSteps.length-1;n++)e[n]=f(this.xVal,t,n);return e},v.prototype.getAbsoluteDistance=function(t,e,n){var i=0;if(t<this.xPct[this.xPct.length-1])for(;t>this.xPct[i+1];)i++;else t===this.xPct[this.xPct.length-1]&&(i=this.xPct.length-2);n||t!==this.xPct[i+1]||i++;for(var r,o=1,l=(e=null===e?[]:e)[i],s=0,a=0,c=0,u=n?(t-this.xPct[i])/(this.xPct[i+1]-this.xPct[i]):(this.xPct[i+1]-t)/(this.xPct[i+1]-this.xPct[i]);0<l;)r=this.xPct[i+1+c]-this.xPct[i+c],100<e[i+c]*o+100-100*u?(s=r*u,o=(l-100*u)/e[i+c],u=1):(s=e[i+c]*r/100*o,o=0),n?(a-=s,1<=this.xPct.length+c&&c--):(a+=s,1<=this.xPct.length-c&&c++),l=e[i+c]*o;return t+a},v.prototype.toStepping=function(t){return function(t,e,n){if(n>=t.slice(-1)[0])return 100;var i=t[(o=g(n,t))-1],r=t[o],o=(t=e[o-1],e[o]);return t+(n=n,f(r=[i,r],r[0]<0?n+Math.abs(r[0]):n-r[0],0)/p(t,o))}(this.xVal,this.xPct,t)},v.prototype.fromStepping=function(t){return function(t,e,n){if(100<=n)return t.slice(-1)[0];var i,r=t[(i=g(n,e))-1],o=t[i];return(n-(t=e[i-1]))*p(t,i=e[i])*((o=[r,o])[1]-o[0])/100+o[0]}(this.xVal,this.xPct,t)},v.prototype.getStep=function(t){return function(t,e,n,i){if(100===i)return i;var r=g(i,t),o=t[r-1],l=t[r];return n?(l-o)/2<i-o?l:o:e[r-1]?t[r-1]+(t=i-t[r-1],r=e[r-1],Math.round(t/r)*r):i}(this.xPct,this.xSteps,this.snap,t)},v.prototype.getDefaultStep=function(t,e,n){var i=g(t,this.xPct);return(100===t||e&&t===this.xPct[i-1])&&(i=Math.max(i-1,1)),(this.xVal[i]-this.xVal[i-1])/n},v.prototype.getNearbySteps=function(t){return t=g(t,this.xPct),{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},v.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(c);return Math.max.apply(null,t)},v.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},v.prototype.convert=function(t){return this.getStep(this.toStepping(t))},v.prototype.handleEntryPoint=function(t,e){if(!o(t="min"===t?0:"max"===t?100:parseFloat(t))||!o(e[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(t),this.xVal.push(e[0]),e=Number(e[1]),t?this.xSteps.push(!isNaN(e)&&e):isNaN(e)||(this.xSteps[0]=e),this.xHighestCompleteStep.push(0)},v.prototype.handleStepPoint=function(t,e){e&&(this.xVal[t]!==this.xVal[t+1]?(this.xSteps[t]=f([this.xVal[t],this.xVal[t+1]],e,0)/p(this.xPct[t],this.xPct[t+1]),e=(this.xVal[t+1]-this.xVal[t])/this.xNumSteps[t],e=Math.ceil(Number(e.toFixed(3))-1),e=this.xVal[t]+this.xNumSteps[t]*e,this.xHighestCompleteStep[t]=e):this.xSteps[t]=this.xHighestCompleteStep[t]=this.xVal[t])},v);function v(t,e,n){var i;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.snap=e;var r=[];for(Object.keys(t).forEach((function(e){r.push([a(t[e]),e])})),r.sort((function(t,e){return t[0][0]-e[0][0]})),i=0;i<r.length;i++)this.handleEntryPoint(r[i][1],r[i][0]);for(this.xNumSteps=this.xSteps.slice(0),i=0;i<this.xNumSteps.length;i++)this.handleStepPoint(i,this.xNumSteps[i])}var y={to:function(t){return void 0===t?"":t.toFixed(2)},from:Number},b={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},_=".__tooltips",w=".__aria";function x(t,e){if(!o(e))throw new Error("noUiSlider: 'step' is not numeric.");t.singleStep=e}function E(t,e){if(!o(e))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");t.keyboardPageMultiplier=e}function S(t,e){if(!o(e))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");t.keyboardMultiplier=e}function C(t,e){if(!o(e))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");t.keyboardDefaultStep=e}function M(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");t.spectrum=new m(e,t.snap||!1,t.singleStep)}function k(t,e){if(e=a(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider: 'start' option is incorrect.");t.handles=e.length,t.start=e}function D(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'snap' option must be a boolean.");t.snap=e}function T(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'animate' option must be a boolean.");t.animate=e}function L(t,e){if("number"!=typeof e)throw new Error("noUiSlider: 'animationDuration' option must be a number.");t.animationDuration=e}function A(t,e){var n,i=[!1];if("lower"===e?e=[!0,!1]:"upper"===e&&(e=[!1,!0]),!0===e||!1===e){for(n=1;n<t.handles;n++)i.push(e);i.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==t.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");i=e}t.connect=i}function P(t,e){switch(e){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function O(t,e){if(!o(e))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==e&&(t.margin=t.spectrum.getDistance(e))}function I(t,e){if(!o(e))throw new Error("noUiSlider: 'limit' option must be numeric.");if(t.limit=t.spectrum.getDistance(e),!t.limit||t.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function R(t,e){var n;if(!o(e)&&!Array.isArray(e))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(e)&&2!==e.length&&!o(e[0])&&!o(e[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==e){for(Array.isArray(e)||(e=[e,e]),t.padding=[t.spectrum.getDistance(e[0]),t.spectrum.getDistance(e[1])],n=0;n<t.spectrum.xNumSteps.length-1;n++)if(t.padding[0][n]<0||t.padding[1][n]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var i=e[0]+e[1];e=t.spectrum.xVal[0];if(1<i/(t.spectrum.xVal[t.spectrum.xVal.length-1]-e))throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function N(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function z(t,e){if("string"!=typeof e)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var n=0<=e.indexOf("tap"),i=0<=e.indexOf("drag"),r=0<=e.indexOf("fixed"),o=0<=e.indexOf("snap"),l=0<=e.indexOf("hover"),s=0<=e.indexOf("unconstrained"),a=0<=e.indexOf("drag-all");e=0<=e.indexOf("smooth-steps");if(r){if(2!==t.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");O(t,t.start[1]-t.start[0])}if(s&&(t.margin||t.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");t.events={tap:n||o,drag:i,dragAll:a,smoothSteps:e,fixed:r,snap:o,hover:l,unconstrained:s}}function F(t,n){if(!1!==n)if(!0===n||e(n)){t.tooltips=[];for(var i=0;i<t.handles;i++)t.tooltips.push(n)}else{if((n=a(n)).length!==t.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");n.forEach((function(t){if("boolean"!=typeof t&&!e(t))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")})),t.tooltips=n}}function H(t,e){if(e.length!==t.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");t.handleAttributes=e}function B(t,n){if(!e(n))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");t.ariaFormat=n}function j(t,n){if(!e(i=n)||"function"!=typeof i.from)throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");var i;t.format=n}function V(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");t.keyboardSupport=e}function W(t,e){t.documentElement=e}function U(t,e){if("string"!=typeof e&&!1!==e)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");t.cssPrefix=e}function Y(t,e){if("object"!=typeof e)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof t.cssPrefix?(t.cssClasses={},Object.keys(e).forEach((function(n){t.cssClasses[n]=t.cssPrefix+e[n]}))):t.cssClasses=e}function $(t){var e={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:y,format:y},n={step:{r:!1,t:x},keyboardPageMultiplier:{r:!1,t:E},keyboardMultiplier:{r:!1,t:S},keyboardDefaultStep:{r:!1,t:C},start:{r:!0,t:k},connect:{r:!0,t:A},direction:{r:!0,t:N},snap:{r:!1,t:D},animate:{r:!1,t:T},animationDuration:{r:!1,t:L},range:{r:!0,t:M},orientation:{r:!1,t:P},margin:{r:!1,t:O},limit:{r:!1,t:I},padding:{r:!1,t:R},behaviour:{r:!0,t:z},ariaFormat:{r:!1,t:B},format:{r:!1,t:j},tooltips:{r:!1,t:F},keyboardSupport:{r:!0,t:V},documentElement:{r:!1,t:W},cssPrefix:{r:!0,t:U},cssClasses:{r:!0,t:Y},handleAttributes:{r:!1,t:H}},r={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:b,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};t.format&&!t.ariaFormat&&(t.ariaFormat=t.format),Object.keys(n).forEach((function(o){if(i(t[o])||void 0!==r[o])n[o].t(e,(i(t[o])?t:r)[o]);else if(n[o].r)throw new Error("noUiSlider: '"+o+"' is required.")})),e.pips=t.pips;var o=void 0!==(l=document.createElement("div")).style.msTransform,l=void 0!==l.style.transform;return e.transformRule=l?"transform":o?"msTransform":"webkitTransform",e.style=[["left","top"],["right","bottom"]][e.dir][e.ort],e}function q(e,o,c){var p,f,g,m,v,y,b=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},x=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}(),E=e,S=o.spectrum,C=[],M=[],k=[],D=0,T={},L=e.ownerDocument,A=o.documentElement||L.documentElement,P=L.body,O="rtl"===L.dir||1===o.ort?0:100;function I(t,e){var n=L.createElement("div");return e&&u(n,e),t.appendChild(n),n}function R(t,e){t=I(t,o.cssClasses.origin);var n,i=I(t,o.cssClasses.handle);return I(i,o.cssClasses.touchArea),i.setAttribute("data-handle",String(e)),o.keyboardSupport&&(i.setAttribute("tabindex","0"),i.addEventListener("keydown",(function(t){return function(t,e){if(F()||H(e))return!1;var n=["Left","Right"],i=["Down","Up"],r=["PageDown","PageUp"],l=["Home","End"];o.dir&&!o.ort?n.reverse():o.ort&&!o.dir&&(i.reverse(),r.reverse());var s=t.key.replace("Arrow",""),a=s===r[0],c=s===r[1];r=s===i[0]||s===n[0]||a,i=s===i[1]||s===n[1]||c,n=s===l[0],l=s===l[1];if(!(r||i||n||l))return!0;if(t.preventDefault(),i||r){var u=r?0:1;if(null===(u=ht(e)[u]))return!1;!1===u&&(u=S.getDefaultStep(M[e],r,o.keyboardDefaultStep)),u*=c||a?o.keyboardPageMultiplier:o.keyboardMultiplier,u=Math.max(u,1e-7),u*=r?-1:1,u=C[e]+u}else u=l?o.spectrum.xVal[o.spectrum.xVal.length-1]:o.spectrum.xVal[0];return st(e,S.toStepping(u),!0,!0),et("slide",e),et("update",e),et("change",e),et("set",e),!1}(t,e)}))),void 0!==o.handleAttributes&&(n=o.handleAttributes[e],Object.keys(n).forEach((function(t){i.setAttribute(t,n[t])}))),i.setAttribute("role","slider"),i.setAttribute("aria-orientation",o.ort?"vertical":"horizontal"),0===e?u(i,o.cssClasses.handleLower):e===o.handles-1&&u(i,o.cssClasses.handleUpper),t}function N(t,e){return!!e&&I(t,o.cssClasses.connect)}function z(t,e){return!(!o.tooltips||!o.tooltips[e])&&I(t.firstChild,o.cssClasses.tooltip)}function F(){return E.hasAttribute("disabled")}function H(t){return f[t].hasAttribute("disabled")}function B(){v&&(tt("update"+_),v.forEach((function(t){t&&n(t)})),v=null)}function j(){B(),v=f.map(z),J("update"+_,(function(t,e,n){v&&o.tooltips&&!1!==v[e]&&(t=t[e],!0!==o.tooltips[e]&&(t=o.tooltips[e].to(n[e])),v[e].innerHTML=t)}))}function V(t,e){return t.map((function(t){return S.fromStepping(e?S.getStep(t):t)}))}function W(){m&&(n(m),m=null)}function U(e){W();var n=function(e){var n=function(e){if(e.mode===t.PipsMode.Range||e.mode===t.PipsMode.Steps)return S.xVal;if(e.mode!==t.PipsMode.Count)return e.mode===t.PipsMode.Positions?V(e.values,e.stepped):e.mode===t.PipsMode.Values?e.stepped?e.values.map((function(t){return S.fromStepping(S.getStep(S.toStepping(t)))})):e.values:[];if(e.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var n=e.values-1,i=100/n,r=[];n--;)r[n]=n*i;return r.push(100),V(r,e.stepped)}(e),i={},r=S.xVal[0],o=S.xVal[S.xVal.length-1],l=!1,s=!1,a=0;return(n=n.slice().sort((function(t,e){return t-e})).filter((function(t){return!this[t]&&(this[t]=!0)}),{}))[0]!==r&&(n.unshift(r),l=!0),n[n.length-1]!==o&&(n.push(o),s=!0),n.forEach((function(r,o){r=r;var c,u,d,h,p,f,g,m,v=n[o+1],y=e.mode===t.PipsMode.Steps,b=(b=y?S.xNumSteps[o]:b)||v-r;for(void 0===v&&(v=r),b=Math.max(b,1e-7),c=r;c<=v;c=Number((c+b).toFixed(7))){for(f=(h=(d=S.toStepping(c))-a)/(e.density||1),m=h/(g=Math.round(f)),u=1;u<=g;u+=1)i[(p=a+u*m).toFixed(5)]=[S.fromStepping(p),0];f=-1<n.indexOf(c)?t.PipsType.LargeValue:y?t.PipsType.SmallValue:t.PipsType.NoValue,!o&&l&&c!==v&&(f=0),c===v&&s||(i[d.toFixed(5)]=[c,f]),a=d}})),i}(e),i=e.filter;e=e.format||{to:function(t){return String(Math.round(t))}};return m=E.appendChild(function(e,n,i){var r,l=L.createElement("div"),s=((r={})[t.PipsType.None]="",r[t.PipsType.NoValue]=o.cssClasses.valueNormal,r[t.PipsType.LargeValue]=o.cssClasses.valueLarge,r[t.PipsType.SmallValue]=o.cssClasses.valueSub,r),a=((r={})[t.PipsType.None]="",r[t.PipsType.NoValue]=o.cssClasses.markerNormal,r[t.PipsType.LargeValue]=o.cssClasses.markerLarge,r[t.PipsType.SmallValue]=o.cssClasses.markerSub,r),c=[o.cssClasses.valueHorizontal,o.cssClasses.valueVertical],d=[o.cssClasses.markerHorizontal,o.cssClasses.markerVertical];function h(t,e){var n=e===o.cssClasses.value;return e+" "+(n?c:d)[o.ort]+" "+(n?s:a)[t]}return u(l,o.cssClasses.pips),u(l,0===o.ort?o.cssClasses.pipsHorizontal:o.cssClasses.pipsVertical),Object.keys(e).forEach((function(r){var s,a,c;a=e[s=r][0],c=e[r][1],(c=n?n(a,c):c)!==t.PipsType.None&&((r=I(l,!1)).className=h(c,o.cssClasses.marker),r.style[o.style]=s+"%",c>t.PipsType.NoValue&&((r=I(l,!1)).className=h(c,o.cssClasses.value),r.setAttribute("data-value",String(a)),r.style[o.style]=s+"%",r.innerHTML=String(i.to(a))))})),l}(n,i,e))}function Y(){var t=p.getBoundingClientRect(),e="offset"+["Width","Height"][o.ort];return 0===o.ort?t.width||p[e]:t.height||p[e]}function q(t,e,n,i){function r(r){var l,s=function(t,e,n){var i=0===t.type.indexOf("touch"),r=0===t.type.indexOf("mouse"),o=0===t.type.indexOf("pointer"),l=0,s=0;if(0===t.type.indexOf("MSPointer")&&(o=!0),"mousedown"===t.type&&!t.buttons&&!t.touches)return!1;if(i){var a=function(e){return(e=e.target)===n||n.contains(e)||t.composed&&t.composedPath().shift()===n};if("touchstart"===t.type){if(1<(i=Array.prototype.filter.call(t.touches,a)).length)return!1;l=i[0].pageX,s=i[0].pageY}else{if(!(a=Array.prototype.find.call(t.changedTouches,a)))return!1;l=a.pageX,s=a.pageY}}return e=e||h(L),(r||o)&&(l=t.clientX+e.x,s=t.clientY+e.y),t.pageOffset=e,t.points=[l,s],t.cursor=r||o,t}(r,i.pageOffset,i.target||e);return!!s&&!(F()&&!i.doNotReject)&&(l=E,r=o.cssClasses.tap,!((l.classList?l.classList.contains(r):new RegExp("\\b"+r+"\\b").test(l.className))&&!i.doNotReject)&&!(t===b.start&&void 0!==s.buttons&&1<s.buttons)&&(!i.hover||!s.buttons)&&(x||s.preventDefault(),s.calcPoint=s.points[o.ort],void n(s,i)))}var l=[];return t.split(" ").forEach((function(t){e.addEventListener(t,r,!!x&&{passive:!0}),l.push([t,r])})),l}function G(t){var e,n,i=s(i=100*(t-(i=p,e=o.ort,n=i.getBoundingClientRect(),i=(t=i.ownerDocument).documentElement,t=h(t),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(t.x=0),e?n.top+t.y-i.clientTop:n.left+t.x-i.clientLeft))/Y());return o.dir?100-i:i}function Z(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&X(t,e)}function K(t,e){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===t.buttons&&0!==e.buttonsProperty)return X(t,e);rt(0<(t=(o.dir?-1:1)*(t.calcPoint-e.startCalcPoint)),100*t/e.baseSize,e.locations,e.handleNumbers,e.connect)}function X(t,e){e.handle&&(d(e.handle,o.cssClasses.active),--D),e.listeners.forEach((function(t){A.removeEventListener(t[0],t[1])})),0===D&&(d(E,o.cssClasses.drag),lt(),t.cursor&&(P.style.cursor="",P.removeEventListener("selectstart",r))),o.events.smoothSteps&&(e.handleNumbers.forEach((function(t){st(t,M[t],!0,!0,!1,!1)})),e.handleNumbers.forEach((function(t){et("update",t)}))),e.handleNumbers.forEach((function(t){et("change",t),et("set",t),et("end",t)}))}function Q(t,e){var n,i,l,s;e.handleNumbers.some(H)||(1===e.handleNumbers.length&&(s=f[e.handleNumbers[0]].children[0],D+=1,u(s,o.cssClasses.active)),t.stopPropagation(),i=q(b.move,A,K,{target:t.target,handle:s,connect:e.connect,listeners:n=[],startCalcPoint:t.calcPoint,baseSize:Y(),pageOffset:t.pageOffset,handleNumbers:e.handleNumbers,buttonsProperty:t.buttons,locations:M.slice()}),l=q(b.end,A,X,{target:t.target,handle:s,listeners:n,doNotReject:!0,handleNumbers:e.handleNumbers}),s=q("mouseout",A,Z,{target:t.target,handle:s,listeners:n,doNotReject:!0,handleNumbers:e.handleNumbers}),n.push.apply(n,i.concat(l,s)),t.cursor&&(P.style.cursor=getComputedStyle(t.target).cursor,1<f.length&&u(E,o.cssClasses.drag),P.addEventListener("selectstart",r,!1)),e.handleNumbers.forEach((function(t){et("start",t)})))}function J(t,e){T[t]=T[t]||[],T[t].push(e),"update"===t.split(".")[0]&&f.forEach((function(t,e){et("update",e)}))}function tt(t){var e=t&&t.split(".")[0],n=e?t.substring(e.length):t;Object.keys(T).forEach((function(t){var i=t.split(".")[0],r=t.substring(i.length);e&&e!==i||n&&n!==r||((i=r)!==w&&i!==_||n===r)&&delete T[t]}))}function et(t,e,n){Object.keys(T).forEach((function(i){var r=i.split(".")[0];t===r&&T[i].forEach((function(t){t.call(pt,C.map(o.format.to),e,C.slice(),n||!1,M.slice(),pt)}))}))}function nt(t,e,n,i,r,l,a){var c;return 1<f.length&&!o.events.unconstrained&&(i&&0<e&&(c=S.getAbsoluteDistance(t[e-1],o.margin,!1),n=Math.max(n,c)),r&&e<f.length-1&&(c=S.getAbsoluteDistance(t[e+1],o.margin,!0),n=Math.min(n,c))),1<f.length&&o.limit&&(i&&0<e&&(c=S.getAbsoluteDistance(t[e-1],o.limit,!1),n=Math.min(n,c)),r&&e<f.length-1&&(c=S.getAbsoluteDistance(t[e+1],o.limit,!0),n=Math.max(n,c))),o.padding&&(0===e&&(c=S.getAbsoluteDistance(0,o.padding[0],!1),n=Math.max(n,c)),e===f.length-1&&(c=S.getAbsoluteDistance(100,o.padding[1],!0),n=Math.min(n,c))),!((n=s(n=a?n:S.getStep(n)))===t[e]&&!l)&&n}function it(t,e){var n=o.ort;return(n?e:t)+", "+(n?t:e)}function rt(t,e,n,i,r){var l=n.slice(),s=i[0],a=o.events.smoothSteps,c=[!t,t],u=[t,!t];i=i.slice(),t&&i.reverse(),1<i.length?i.forEach((function(t,n){!1===(n=nt(l,t,l[t]+e,c[n],u[n],!1,a))?e=0:(e=n-l[t],l[t]=n)})):c=u=[!0];var d=!1;i.forEach((function(t,i){d=st(t,n[t]+e,c[i],u[i],!1,a)||d})),d&&(i.forEach((function(t){et("update",t),et("slide",t)})),null!=r&&et("drag",s))}function ot(t,e){return o.dir?100-t-e:t}function lt(){k.forEach((function(t){var e=50<M[t]?-1:1;e=3+(f.length+e*t);f[t].style.zIndex=String(e)}))}function st(t,e,n,i,r,l){return!1!==(e=r?e:nt(M,t,e,n,i,!1,l))&&(e=e,M[t=t]=e,C[t]=S.fromStepping(e),e="translate("+it(ot(e,0)-O+"%","0")+")",f[t].style[o.transformRule]=e,at(t),at(t+1),!0)}function at(t){var e,n;g[t]&&(n=100,e="translate("+it(ot(e=(e=0)!==t?M[t-1]:e,n=(n=t!==g.length-1?M[t]:n)-e)+"%","0")+")",n="scale("+it(n/100,"1")+")",g[t].style[o.transformRule]=e+" "+n)}function ct(t,e){return null===t||!1===t||void 0===t?M[e]:("number"==typeof t&&(t=String(t)),!1===(t=!1!==(t=o.format.from(t))?S.toStepping(t):t)||isNaN(t)?M[e]:t)}function ut(t,e,n){var i=a(t);t=void 0===M[0];e=void 0===e||e,o.animate&&!t&&l(E,o.cssClasses.tap,o.animationDuration),k.forEach((function(t){st(t,ct(i[t],t),!0,!1,n)}));var r,s=1===k.length?0:1;for(t&&S.hasNoSize()&&(n=!0,M[0]=0,1<k.length&&(r=100/(k.length-1),k.forEach((function(t){M[t]=t*r}))));s<k.length;++s)k.forEach((function(t){st(t,M[t],!0,!0,n)}));lt(),k.forEach((function(t){et("update",t),null!==i[t]&&e&&et("set",t)}))}function dt(t){return(t=void 0!==t&&t)?1===C.length?C[0]:C.slice(0):1===(t=C.map(o.format.to)).length?t[0]:t}function ht(t){var e=M[t],n=S.getNearbySteps(e),i=C[t],r=n.thisStep.step;t=null;return o.snap?[i-n.stepBefore.startValue||null,n.stepAfter.startValue-i||null]:(!1!==r&&i+r>n.stepAfter.startValue&&(r=n.stepAfter.startValue-i),t=i>n.thisStep.startValue?n.thisStep.step:!1!==n.stepBefore.step&&i-n.stepBefore.highestStep,100===e?r=null:0===e&&(t=null),e=S.countStepDecimals(),null!==r&&!1!==r&&(r=Number(r.toFixed(e))),[t=null!==t&&!1!==t?Number(t.toFixed(e)):t,r])}u(e=E,o.cssClasses.target),0===o.dir?u(e,o.cssClasses.ltr):u(e,o.cssClasses.rtl),0===o.ort?u(e,o.cssClasses.horizontal):u(e,o.cssClasses.vertical),u(e,"rtl"===getComputedStyle(e).direction?o.cssClasses.textDirectionRtl:o.cssClasses.textDirectionLtr),p=I(e,o.cssClasses.base),function(t,e){var n=I(e,o.cssClasses.connects);f=[],(g=[]).push(N(n,t[0]));for(var i=0;i<o.handles;i++)f.push(R(e,i)),k[i]=i,g.push(N(n,t[i+1]))}(o.connect,p),(y=o.events).fixed||f.forEach((function(t,e){q(b.start,t.children[0],Q,{handleNumbers:[e]})})),y.tap&&q(b.start,p,(function(t){t.stopPropagation();var e,n,i,r=G(t.calcPoint),s=(e=r,i=!(n=100),f.forEach((function(t,r){var o,l;H(r)||(o=M[r],((l=Math.abs(o-e))<n||l<=n&&o<e||100===l&&100===n)&&(i=r,n=l))})),i);!1!==s&&(o.events.snap||l(E,o.cssClasses.tap,o.animationDuration),st(s,r,!0,!0),lt(),et("slide",s,!0),et("update",s,!0),o.events.snap?Q(t,{handleNumbers:[s]}):(et("change",s,!0),et("set",s,!0)))}),{}),y.hover&&q(b.move,p,(function(t){t=G(t.calcPoint),t=S.getStep(t);var e=S.fromStepping(t);Object.keys(T).forEach((function(t){"hover"===t.split(".")[0]&&T[t].forEach((function(t){t.call(pt,e)}))}))}),{hover:!0}),y.drag&&g.forEach((function(t,e){var n,i,r,l,s;!1!==t&&0!==e&&e!==g.length-1&&(n=f[e-1],i=f[e],r=[t],l=[n,i],s=[e-1,e],u(t,o.cssClasses.draggable),y.fixed&&(r.push(n.children[0]),r.push(i.children[0])),y.dragAll&&(l=f,s=k),r.forEach((function(e){q(b.start,e,Q,{handles:l,handleNumbers:s,connect:t})})))})),ut(o.start),o.pips&&U(o.pips),o.tooltips&&j(),tt("update"+w),J("update"+w,(function(t,e,n,i,r){k.forEach((function(t){var e=f[t],i=nt(M,t,0,!0,!0,!0),l=nt(M,t,100,!0,!0,!0),s=r[t];t=String(o.ariaFormat.to(n[t])),i=S.fromStepping(i).toFixed(1),l=S.fromStepping(l).toFixed(1),s=S.fromStepping(s).toFixed(1);e.children[0].setAttribute("aria-valuemin",i),e.children[0].setAttribute("aria-valuemax",l),e.children[0].setAttribute("aria-valuenow",s),e.children[0].setAttribute("aria-valuetext",t)}))}));var pt={destroy:function(){for(tt(w),tt(_),Object.keys(o.cssClasses).forEach((function(t){d(E,o.cssClasses[t])}));E.firstChild;)E.removeChild(E.firstChild);delete E.noUiSlider},steps:function(){return k.map(ht)},on:J,off:tt,get:dt,set:ut,setHandle:function(t,e,n,i){if(!(0<=(t=Number(t))&&t<k.length))throw new Error("noUiSlider: invalid handle number, got: "+t);st(t,ct(e,t),!0,!0,i),et("update",t),n&&et("set",t)},reset:function(t){ut(o.start,t)},__moveHandles:function(t,e,n){rt(t,e,M,n)},options:c,updateOptions:function(t,e){var n=dt(),r=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips"];r.forEach((function(e){void 0!==t[e]&&(c[e]=t[e])}));var l=$(c);r.forEach((function(e){void 0!==t[e]&&(o[e]=l[e])})),S=l.spectrum,o.margin=l.margin,o.limit=l.limit,o.padding=l.padding,o.pips?U(o.pips):W(),(o.tooltips?j:B)(),M=[],ut(i(t.start)?t.start:n,e)},target:E,removePips:W,removeTooltips:B,getPositions:function(){return M.slice()},getTooltips:function(){return v},getOrigins:function(){return f},pips:U};return pt}function G(t,e){if(!t||!t.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+t);if(t.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");return e=q(t,$(e),e),t.noUiSlider=e}var Z={__spectrum:m,cssClasses:b,create:G};t.create=G,t.cssClasses=b,t.default=Z,Object.defineProperty(t,"__esModule",{value:!0})})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Pristine=e()}(this,(function(){"use strict";var t={required:"This field is required",email:"This field requires a valid e-mail address",number:"This field requires a number",integer:"This field requires an integer value",url:"This field requires a valid website URL",tel:"This field requires a valid telephone number",maxlength:"This fields length must be < ${1}",minlength:"This fields length must be > ${1}",min:"Minimum value for this field is ${1}",max:"Maximum value for this field is ${1}",pattern:"Please match the requested format"};function e(t){var e=arguments;return this.replace(/\${([^{}]*)}/g,(function(t,n){return e[n]}))}function n(t){return t.pristine.self.form.querySelectorAll('input[name="'+t.getAttribute("name")+'"]:checked').length}var i={classTo:"form-group",errorClass:"has-danger",successClass:"has-success",errorTextParent:"form-group",errorTextTag:"div",errorTextClass:"text-help"},r=["required","min","max","minlength","maxlength","pattern"],o=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,l={},s=function(e,n){n.name=e,n.msg||(n.msg=t[e]),void 0===n.priority&&(n.priority=1),l[e]=n};function a(t,n,o){var s=this;function a(t,e,n,i){var r=l[n];if(r&&(t.push(r),i)){var o=i.split(",");o.unshift(null),e[n]=o}}function c(t){for(var n,i=[],r=!0,o=0;t.validators[o];o++){var l=t.validators[o],s=t.params[l.name]?t.params[l.name]:[];if(s[0]=t.input.value,!l.fn.apply(t.input,s)){if(r=!1,(n=l.msg)&&n.constructor&&n.call&&n.apply)i.push(l.msg(t.input.value,s));else{var a=t.messages[l.name]||l.msg;i.push(e.apply(a,s))}if(!0===l.halt)break}}return t.errors=i,r}function u(t){if(t.errorElements)return t.errorElements;var e=function(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}(t.input,s.config.classTo),n=null,i=null;return(n=s.config.classTo===s.config.errorTextParent?e:e.querySelector("."+s.config.errorTextParent))&&((i=n.querySelector(".pristine-error"))||((i=document.createElement(s.config.errorTextTag)).className="pristine-error "+s.config.errorTextClass,n.appendChild(i),i.pristineDisplay=i.style.display)),t.errorElements=[e,i]}function d(t){var e=u(t),n=e[0],i=e[1];n&&(n.classList.remove(s.config.successClass),n.classList.add(s.config.errorClass)),i&&(i.innerHTML=t.errors.join("<br/>"),i.style.display=i.pristineDisplay||"")}function h(t){var e=function(t){var e=u(t),n=e[0],i=e[1];return n&&(n.classList.remove(s.config.errorClass),n.classList.remove(s.config.successClass)),i&&(i.innerHTML="",i.style.display="none"),e}(t)[0];e&&e.classList.add(s.config.successClass)}return function(t,e,n){t.setAttribute("novalidate","true"),s.form=t,s.config=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t}(e||{},i),s.live=!(!1===n),s.fields=Array.from(t.querySelectorAll("input:not([type^=hidden]):not([type^=submit]), select, textarea")).map(function(t){var e=[],n={},i={};return[].forEach.call(t.attributes,(function(t){if(/^data-pristine-/.test(t.name)){var o=t.name.substr(14);if(o.endsWith("-message"))return void(i[o.slice(0,o.length-8)]=t.value);"type"===o&&(o=t.value),a(e,n,o,t.value)}else~r.indexOf(t.name)?a(e,n,t.name,t.value):"type"===t.name&&a(e,n,t.value)})),e.sort((function(t,e){return e.priority-t.priority})),s.live&&t.addEventListener(~["radio","checkbox"].indexOf(t.getAttribute("type"))?"change":"input",function(t){s.validate(t.target)}.bind(s)),t.pristine={input:t,validators:e,params:n,messages:i,self:s}}.bind(s))}(t,n,o),s.validate=function(t,e){e=t&&!0===e||!0===t;var n=s.fields;!0!==t&&!1!==t&&(t instanceof HTMLElement?n=[t.pristine]:(t instanceof NodeList||t instanceof(window.$||Array)||t instanceof Array)&&(n=Array.from(t).map((function(t){return t.pristine}))));for(var i=!0,r=0;n[r];r++){var o=n[r];c(o)?!e&&h(o):(i=!1,!e&&d(o))}return i},s.getErrors=function(t){if(!t){for(var e=[],n=0;n<s.fields.length;n++){var i=s.fields[n];i.errors.length&&e.push({input:i.input,errors:i.errors})}return e}return t.tagName&&"select"===t.tagName.toLowerCase()?t.pristine.errors:t.length?t[0].pristine.errors:t.pristine.errors},s.addValidator=function(t,e,n,i,r){t instanceof HTMLElement?(t.pristine.validators.push({fn:e,msg:n,priority:i,halt:r}),t.pristine.validators.sort((function(t,e){return e.priority-t.priority}))):console.warn("The parameter elem must be a dom element")},s.addError=function(t,e){(t=t.length?t[0]:t).pristine.errors.push(e),d(t.pristine)},s.reset=function(){for(var t=0;s.fields[t];t++)s.fields[t].errorElements=null;Array.from(s.form.querySelectorAll(".pristine-error")).map((function(t){t.parentNode.removeChild(t)})),Array.from(s.form.querySelectorAll("."+s.config.classTo)).map((function(t){t.classList.remove(s.config.successClass),t.classList.remove(s.config.errorClass)}))},s.destroy=function(){s.reset(),s.fields.forEach((function(t){delete t.input.pristine})),s.fields=[]},s.setGlobalConfig=function(t){i=t},s}return s("text",{fn:function(t){return!0},priority:0}),s("required",{fn:function(t){return"radio"===this.type||"checkbox"===this.type?n(this):void 0!==t&&""!==t},priority:99,halt:!0}),s("email",{fn:function(t){return!t||o.test(t)}}),s("number",{fn:function(t){return!t||!isNaN(parseFloat(t))},priority:2}),s("integer",{fn:function(t){return!t||/^\d+$/.test(t)}}),s("minlength",{fn:function(t,e){return!t||t.length>=parseInt(e)}}),s("maxlength",{fn:function(t,e){return!t||t.length<=parseInt(e)}}),s("min",{fn:function(t,e){return!t||("checkbox"===this.type?n(this)>=parseInt(e):parseFloat(t)>=parseFloat(e))}}),s("max",{fn:function(t,e){return!t||("checkbox"===this.type?n(this)<=parseInt(e):parseFloat(t)<=parseFloat(e))}}),s("pattern",{fn:function(t,e){var n=e.match(new RegExp("^/(.*?)/([gimy]*)$"));return!t||new RegExp(n[1],n[2]).test(t)}}),a.addValidator=function(t,e,n,i,r){s(t,{fn:e,msg:n,priority:i,halt:r})},a})),function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.pureknob=e()}("undefined"!=typeof self?self:this,(function(){return new function(){this.createBarGraph=function(t,e){const n=e.toString(),i=t.toString(),r=document.createElement("canvas"),o=document.createElement("div");o.style.display="inline-block",o.style.height=n+"px",o.style.position="relative",o.style.textAlign="center",o.style.width=i+"px",o.appendChild(r);const l={_canvas:r,_div:o,_height:e,_width:t,_properties:{colorBG:"#181818",colorFG:"#ff8800",colorMarkers:"#888888",markerStart:0,markerEnd:100,markerStep:20,trackWidth:.5,valMin:0,valMax:100,valPeaks:[],val:0},getPeaks:function(){const t=this._properties.valPeaks,e=t.length,n=[];for(let i=0;i<e;i++){const e=t[i];n.push(e)}return n},getProperty:function(t){return this._properties[t]},getValue:function(){return this._properties.val},node:function(){return this._div},redraw:function(){this.resize();const t=this._properties,e=t.colorBG,n=t.colorFG,i=t.colorMarkers,r=t.markerStart,o=t.markerEnd,l=t.markerStep,s=t.trackWidth,a=t.valMin,c=t.valMax,u=t.valPeaks,d=t.val,h=this._height,p=this._width,f=Math.round(s*h),g=.5*f,m=.5*h,v=m-g,y=m+g,b=p*((d-a)/(c-a)),_=u.length,w=this._canvas.getContext("2d");if(w.clearRect(0,0,p,h),null!==r&null!==o&null!==l&0!==l){w.lineCap="butt",w.lineWidth="2",w.strokeStyle=i;for(let t=r;t<=o;t+=l){const e=(t-a)/(c-a),n=Math.round(p*e);w.beginPath(),w.moveTo(n,0),w.lineTo(n,h),w.stroke()}}w.beginPath(),w.rect(0,v,p,f),w.fillStyle=e,w.fill(),w.beginPath(),w.rect(0,v,b,f),w.fillStyle=n,w.fill(),w.strokeStyle=n;for(let t=0;t<_;t++){const e=(u[t]-a)/(c-a),n=Math.round(p*e);w.beginPath(),w.moveTo(n,v),w.lineTo(n,y),w.stroke()}},resize:function(){const t=this._canvas,e=t.getContext("2d"),n=window.devicePixelRatio;t.style.height=this._height+"px",t.style.width=this._width+"px",t.height=Math.floor(this._height*n),t.width=Math.floor(this._width*n),e.scale(n,n)},setPeaks:function(t){this._properties;const e=[],n=t.length;for(let i=0;i<n;i++){const n=t[i];e.push(n)}this.setProperty("valPeaks",e)},setProperty:function(t,e){this._properties[t]=e,this.redraw()},setValue:function(t){const e=this._properties,n=e.valMin,i=e.valMax;t<n?t=n:t>i&&(t=i),t=Math.round(t),this.setProperty("val",t)}},s=function(){const t=window.devicePixelRatio;l.redraw();const e="(resolution:"+t.toString()+"dppx)";window.matchMedia(e).addEventListener("change",s,{once:!0})};return r.addEventListener("resize",(function(t){l.redraw()})),s(),l},this.createKnob=function(t,e){const n=e.toString(),i=t.toString(),r=(.2*(t<e?t:e)).toString(),o=document.createElement("canvas"),l=document.createElement("div");l.style.display="inline-block",l.style.height=n+"px",l.style.position="relative",l.style.textAlign="center",l.style.width=i+"px",l.appendChild(o);const s=document.createElement("input");s.style.appearance="textfield",s.style.backgroundColor="rgba(0, 0, 0, 0.8)",s.style.border="none",s.style.color="#ff8800",s.style.fontFamily="sans-serif",s.style.fontSize=r+"px",s.style.height=n+"px",s.style.margin="auto",s.style.padding="0px",s.style.textAlign="center",s.style.width=i+"px";const a=document.createAttribute("inputmode");a.value="numeric",s.setAttributeNode(a);const c=document.createElement("div");c.style.bottom="0px",c.style.display="none",c.style.left="0px",c.style.position="absolute",c.style.right="0px",c.style.top="0px",c.appendChild(s),l.appendChild(c);const u={_canvas:o,_div:l,_height:e,_input:s,_inputDiv:c,_listeners:[],_mousebutton:!1,_previousVal:0,_timeout:null,_timeoutDoubleTap:null,_touchCount:0,_width:t,_notifyUpdate:function(){const t=this._properties.val,e=this._listeners,n=e.length;for(let i=0;i<n;i++){const n=e[i];null!==n&&n(this,t)}},_properties:{angleEnd:2*Math.PI,angleOffset:-.5*Math.PI,angleStart:0,colorBG:"#181818",colorFG:"#ff8800",colorLabel:"#ffffff",fnStringToValue:function(t){return parseInt(t)},fnValueToString:function(t){return t.toString()},label:null,needle:!1,readonly:!1,textScale:1,trackWidth:.4,valMin:0,valMax:100,val:0},abort:function(){const t=this._previousVal;this._properties.val=t,this.redraw()},addListener:function(t){this._listeners.push(t)},commit:function(){const t=this._properties.val;this._previousVal=t,this.redraw(),this._notifyUpdate()},getProperty:function(t){return this._properties[t]},getValue:function(){return this._properties.val},node:function(){return this._div},redraw:function(){this.resize();const t=this._properties,e=t.needle,n=t.angleStart,i=t.angleOffset,r=t.angleEnd,o=n+i,l=r+i,s=t.label,a=t.val,c=(0,t.fnValueToString)(a),u=t.valMin,d=o+(a-u)/(t.valMax-u)*(r-n),h=t.colorBG,p=t.colorFG,f=t.colorLabel,g=t.textScale,m=t.trackWidth,v=this._height,y=this._width,b=y<v?y:v,_=.5*y,w=.5*v,x=.4*b,E=w+x,S=Math.round(m*x),C=Math.round(.8*S).toString(),M=(.2*b*g).toString(),k=this._canvas.getContext("2d");k.clearRect(0,0,y,v),k.beginPath(),k.arc(_,w,x,o,l),k.lineCap="butt",k.lineWidth=S,k.strokeStyle=h,k.stroke(),k.beginPath(),e?k.arc(_,w,x,d-.1,d+.1):k.arc(_,w,x,o,d),k.lineCap="butt",k.lineWidth=S,k.strokeStyle=p,k.stroke(),k.font=M+"px sans-serif",k.fillStyle=p,k.textAlign="center",k.textBaseline="middle",k.fillText(c,_,w),null!==s&&(k.font=C+"px sans-serif",k.fillStyle=f,k.textAlign="center",k.textBaseline="middle",k.fillText(s,_,E));const D=this._input;D.style.color=p,D.style.fontSize=M+"px"},resize:function(){const t=this._canvas,e=t.getContext("2d"),n=window.devicePixelRatio;t.style.height=this._height+"px",t.style.width=this._width+"px",t.height=Math.floor(this._height*n),t.width=Math.floor(this._width*n),e.scale(n,n)},setProperty:function(t,e){this._properties[t]=e,this.redraw()},setValue:function(t){this.setValueFloating(t),this.commit()},setValueFloating:function(t){const e=this._properties,n=e.valMin,i=e.valMax;t<n?t=n:t>i&&(t=i),t=Math.round(t),this.setProperty("val",t)}},d=function(t,e){const n=t.target,i=.5*n.scrollWidth,r=.5*n.scrollHeight,o=t.offsetX-i,l=t.offsetY-r,s=e.angleStart,a=e.angleEnd-s;let c=Math.atan2(o,-l)-s;const u=2*Math.PI;c<0&&(a>=u?c+=u:c=0);const d=e.valMin,h=e.valMax;let p=c/a*(h-d)+d;return p<d?p=d:p>h&&(p=h),p},h=function(t,e){const n=t.target,i=n.getBoundingClientRect(),r=i.left,o=i.top,l=.5*n.scrollWidth,s=.5*n.scrollHeight,a=t.targetTouches;let c=null;a.length>0&&(c=a.item(0));let u=0,d=0;if(null!==c){u=c.clientX-r;d=c.clientY-o}const h=u-l,p=d-s,f=e.angleStart,g=e.angleEnd-f,m=2*Math.PI;let v=Math.atan2(h,-p)-f;v<0&&(g>=m?v+=m:v=0);const y=e.valMin,b=e.valMax;let _=v/g*(b-y)+y;return _<y?_=y:_>b&&(_=b),_};const p=function(){const t=window.devicePixelRatio;u.redraw();const e="(resolution:"+t.toString()+"dppx)";window.matchMedia(e).addEventListener("change",p,{once:!0})};return o.addEventListener("dblclick",(function(t){if(!u._properties.readonly){t.preventDefault();u._inputDiv.style.display="block";u._input.focus(),u.redraw()}})),o.addEventListener("mousedown",(function(t){const e=t.buttons;if(1===e){const e=u._properties;if(!e.readonly){t.preventDefault();const n=d(t,e);u.setValueFloating(n)}u._mousebutton=!0}if(4===e){if(!u._properties.readonly){t.preventDefault();u._inputDiv.style.display="block";u._input.focus(),u.redraw()}}})),o.addEventListener("mouseleave",(function(t){u._mousebutton&&(u.abort(),u._mousebutton=!1)})),o.addEventListener("mousemove",(function(t){if(u._mousebutton){const e=u._properties;if(!e.readonly){t.preventDefault();const n=d(t,e);u.setValueFloating(n)}}})),o.addEventListener("mouseup",(function(t){if(u._mousebutton){const e=u._properties;if(!e.readonly){t.preventDefault();const n=d(t,e);u.setValue(n)}}u._mousebutton=!1})),o.addEventListener("resize",(function(t){u.redraw()})),o.addEventListener("touchstart",(function(t){const e=u._properties;if(!e.readonly){if(1===t.targetTouches.length){if(u._mousebutton=!0,0===u._touchCount){const e=function(){if(2===u._touchCount){if(!u._properties.readonly){t.preventDefault();u._inputDiv.style.display="block";u._input.focus(),u.redraw()}}u._touchCount=0};let n=u._timeoutDoubleTap;window.clearTimeout(n),n=window.setTimeout(e,500),u._timeoutDoubleTap=n}u._touchCount++;const n=h(t,e);u.setValueFloating(n)}}})),o.addEventListener("touchmove",(function(t){if(u._mousebutton){const e=u._properties;if(!e.readonly){if(1===t.targetTouches.length){t.preventDefault();const n=h(t,e);u.setValueFloating(n)}}}})),o.addEventListener("touchend",(function(t){if(u._mousebutton){if(!u._properties.readonly){0===t.targetTouches.length&&(t.preventDefault(),u._mousebutton=!1,u.commit())}}u._mousebutton=!1})),o.addEventListener("touchcancel",(function(t){if(u._mousebutton){u.abort(),u._touchCount=0;const t=u._timeoutDoubleTap;window.clearTimeout(t)}u._mousebutton=!1})),o.addEventListener("wheel",(function(t){if(!u.getProperty("readonly")){t.preventDefault();const e=t.deltaY,n=e>0?1:e<0?-1:0;let i=u.getValue();i+=n,u.setValueFloating(i);const r=function(){u.commit()};let o=u._timeout;window.clearTimeout(o),o=window.setTimeout(r,250),u._timeout=o}})),s.addEventListener("keydown",(function(t){const e=t.key;if("Enter"===e||"Escape"===e){u._inputDiv.style.display="none";const n=t.target;if("Enter"===e){const t=u._properties,e=n.value,i=(0,t.fnStringToValue)(e);isFinite(i)&&u.setValue(i)}n.value=""}})),p(),u}}}));
/*!
* NioApp v1.0.0 (https://softnio.com/)
* Developed by Softnio Team.
* Copyright by Softnio.
*/
var NioApp=function(t,e){"use strict";var n={AppInfo:{name:"NioApp",version:"1.0.0",author:"Softnio"},Package:{name:"NioBoard",version:"1.0"}};return n.docReady=function(t){document.addEventListener("DOMContentLoaded",t,!1)},n.winLoad=function(t){window.addEventListener("load",t,!1)},n.onResize=function(t,e){(e=void 0===e?window:e).addEventListener("resize",t)},n}(window,document);NioApp=function(NioApp){"use strict";return NioApp.BS={},NioApp.Addons={},NioApp.Custom={},NioApp.Toggle={},NioApp.body=document.querySelector("body"),NioApp.Win={height:window.innerHeight,width:window.innerWidth},NioApp.Break={mb:420,sm:576,md:768,lg:992,xl:1200,xxl:1400,any:1/0},NioApp.isDark=!!NioApp.body.classList.contains("dark-mode"),NioApp.monthList=["January","February","March","April","May","June","July","August","September","October","November","December"],NioApp.docStyle=getComputedStyle(document.documentElement),NioApp.Colors={blue:NioApp.docStyle.getPropertyValue("--bs-blue"),indigo:NioApp.docStyle.getPropertyValue("--bs-indigo"),purple:NioApp.docStyle.getPropertyValue("--bs-purple"),pink:NioApp.docStyle.getPropertyValue("--bs-pink"),red:NioApp.docStyle.getPropertyValue("--bs-red"),orange:NioApp.docStyle.getPropertyValue("--bs-orange"),yellow:NioApp.docStyle.getPropertyValue("--bs-yellow"),green:NioApp.docStyle.getPropertyValue("--bs-green"),teal:NioApp.docStyle.getPropertyValue("--bs-teal"),cyan:NioApp.docStyle.getPropertyValue("--bs-cyan"),black:NioApp.docStyle.getPropertyValue("--bs-black"),white:NioApp.docStyle.getPropertyValue("--bs-white"),gray:NioApp.docStyle.getPropertyValue("--bs-gray"),grayDark:NioApp.docStyle.getPropertyValue("--bs-gray-dark"),gray100:NioApp.docStyle.getPropertyValue("--bs-gray-100"),gray200:NioApp.docStyle.getPropertyValue("--bs-gray-200"),gray300:NioApp.docStyle.getPropertyValue("--bs-gray-300"),gray400:NioApp.docStyle.getPropertyValue("--bs-gray-400"),gray500:NioApp.docStyle.getPropertyValue("--bs-gray-500"),gray600:NioApp.docStyle.getPropertyValue("--bs-gray-600"),gray700:NioApp.docStyle.getPropertyValue("--bs-gray-700"),gray800:NioApp.docStyle.getPropertyValue("--bs-gray-800"),gray900:NioApp.docStyle.getPropertyValue("--bs-gray-900"),primary:NioApp.docStyle.getPropertyValue("--bs-primary"),secondary:NioApp.docStyle.getPropertyValue("--bs-secondary"),success:NioApp.docStyle.getPropertyValue("--bs-success"),info:NioApp.docStyle.getPropertyValue("--bs-info"),warning:NioApp.docStyle.getPropertyValue("--bs-warning"),danger:NioApp.docStyle.getPropertyValue("--bs-danger"),light:NioApp.docStyle.getPropertyValue("--bs-light"),dark:NioApp.docStyle.getPropertyValue("--bs-dark"),darker:NioApp.docStyle.getPropertyValue("--bs-darker"),bodyColor:NioApp.docStyle.getPropertyValue("--bs-body-color"),bodyBg:NioApp.docStyle.getPropertyValue("--bs-body-bg"),borderColor:NioApp.docStyle.getPropertyValue("--bs-border-color"),borderColorTranslucent:NioApp.docStyle.getPropertyValue("--bs-border-color-translucent"),headingColor:NioApp.docStyle.getPropertyValue("--bs-heading-color"),linkColor:NioApp.docStyle.getPropertyValue("--bs-link-color"),linkHoverColor:NioApp.docStyle.getPropertyValue("--bs-link-hover-color"),codeColor:NioApp.docStyle.getPropertyValue("--bs-code-color"),highlightBg:NioApp.docStyle.getPropertyValue("--bs-highlight-bg")},NioApp.State={isRTL:!(!NioApp.body.classList.contains("has-rtl")&&"rtl"!==NioApp.body.getAttribute("dir")),isTouch:"ontouchstart"in document.documentElement,isMobile:!!navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Windows Phone|/i),asMobile:NioApp.Win.width<NioApp.Break.md},NioApp.StateUpdate=function(){NioApp.Win={height:window.innerHeight,width:window.innerWidth},NioApp.State.asMobile=NioApp.Win.width<NioApp.Break.md},NioApp.hexRGB=function(t,e){var n,i,r=e||1;if(t=t.replace(/\s/g,""),/^#([A-Fa-f0-9]{3}){1,2}$/.test(t))return 3===(n=t.substring(1).split("")).length&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]),i=[(n="0x"+n.join(""))>>16&255,n>>8&255,255&n].join(","),r>=1?"rgba("+i+")":"rgba("+i+","+r+")";throw new Error("bad hex")},NioApp.to12=function(t){return(t=t.toString().match(/^([01]\d|2[0-3])(:)([0-5]\d)(:[0-5]\d)?$/)||[t]).length>1&&((t=t.slice(1)).pop(),t[5]=+t[0]<12?" AM":" PM",t[0]=+t[0]%12||12),t=t.join("")},NioApp.attr=function(t,e,n){const i=document.createAttribute(e);i.value=n,t.setAttributeNode(i)},NioApp.SlideUp=function(t,e=500){t.style.transitionProperty="height, margin, padding",t.style.transitionDuration=e+"ms",t.style.boxSizing="border-box",t.style.height=t.offsetHeight+"px",t.offsetHeight,t.style.overflow="hidden",t.style.height=0,t.style.paddingTop=0,t.style.paddingBottom=0,t.style.marginTop=0,t.style.marginBottom=0,window.setTimeout(()=>{t.style.display="none",t.style.removeProperty("height"),t.style.removeProperty("padding-top"),t.style.removeProperty("padding-bottom"),t.style.removeProperty("margin-top"),t.style.removeProperty("margin-bottom"),t.style.removeProperty("overflow"),t.style.removeProperty("transition-duration"),t.style.removeProperty("transition-property")},e)},NioApp.SlideDown=function(t,e=500){t.style.removeProperty("display");let n=window.getComputedStyle(t).display;"none"===n&&(n="block"),t.style.display=n;let i=t.offsetHeight;t.style.overflow="hidden",t.style.height=0,t.style.paddingTop=0,t.style.paddingBottom=0,t.style.marginTop=0,t.style.marginBottom=0,t.offsetHeight,t.style.boxSizing="border-box",t.style.transitionProperty="height, margin, padding",t.style.transitionDuration=e+"ms",t.style.height=i+"px",t.style.removeProperty("padding-top"),t.style.removeProperty("padding-bottom"),t.style.removeProperty("margin-top"),t.style.removeProperty("margin-bottom"),window.setTimeout(()=>{t.style.removeProperty("height"),t.style.removeProperty("overflow"),t.style.removeProperty("transition-duration"),t.style.removeProperty("transition-property")},e)},NioApp.SlideToggle=function(t,e=500){return"none"===window.getComputedStyle(t).display?NioApp.SlideDown(t,e):NioApp.SlideUp(t,e)},NioApp.toMin=function(t){let e=t.split(":");return 60*parseInt(e[0])+(void 0!==e[1]?parseInt(e[1]):0)},NioApp.toTime=function(t){const e=t%60;return`${Math.floor(t/60).toString().padStart(2,"0")}:${e.toString().padStart(2,"0")}`},NioApp.randomId=function(t){for(var e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=n.length,r=0;r<t;r++)e+=n.charAt(Math.floor(Math.random()*i));return e},NioApp.getParents=function(t,e,n){let i=void 0===e?document:document.querySelector(e);for(var r=[],o=t.parentNode;o!==i;){var l=o;(void 0===n||l.classList.contains(n))&&r.push(l),o=l.parentNode}return r},NioApp.extendObject=function(t,e){return Object.keys(e).forEach((function(n){t[n]=e[n]})),t},NioApp.Toggle={class:function(selector,selfActive="active",targetActive="active",parentActive="active"){let elm=document.querySelectorAll(selector),overlayClass="nk-overlay";elm.forEach(item=>{let target=item.dataset.target,parent=item.dataset.parent,targetElm=document.getElementById(target),thisBreak=targetElm.dataset.break,thisVisiable=targetElm.dataset.visiable,parentElm=document.getElementById(parent),trigger=document.querySelectorAll(`[data-target="${target}"]`);if(item.addEventListener("click",(function(e){e.preventDefault(),trigger.forEach(t=>{t.classList.contains(selfActive)?t.classList.remove(selfActive):t.classList.add(selfActive)}),targetElm.classList.contains(targetActive)?targetElm.classList.remove(targetActive):targetElm.classList.add(targetActive);let overlay=!!targetElm.dataset.overlay&&targetElm.dataset.overlay;if(overlay){let overlayTemplate=""+(parent?`<div class="${overlayClass}" data-target="${target}" data-parent="${parent}"></div>`:`<div class="${overlayClass}" data-target="${target}"></div>`);if(targetElm.classList.contains(targetActive)&&(!thisVisiable||window.innerWidth<eval("NioApp.Break."+thisVisiable)))targetElm.insertAdjacentHTML("beforebegin",overlayTemplate);else if(window.innerWidth<eval("NioApp.Break."+thisVisiable)){let t=document.querySelector(`.${overlayClass}[data-target="${target}"]`);t.remove()}}if(parent&&(parentElm.classList.contains(parentActive)?parentElm.classList.remove(parentActive):parentElm.classList.add(parentActive)),overlay&&targetElm.classList.contains(targetActive)&&(!thisVisiable||window.innerWidth<eval("NioApp.Break."+thisVisiable))){let t=document.querySelector(`.${overlayClass}[data-target="${target}"]`);t.addEventListener("click",(function(e){e.preventDefault(),trigger.forEach(t=>{t.classList.remove(selfActive)}),targetElm.classList.remove(targetActive),parent&&parentElm.classList.remove(parentActive),t.remove()}))}console.log(window.innerWidth>eval("NioApp.Break."+thisVisiable)),window.innerWidth>eval("NioApp.Break."+thisVisiable)&&(targetElm.classList.contains(targetActive)?targetElm.classList.add("toggle-visiable"):targetElm.classList.remove("toggle-visiable"))})),window.innerWidth<=eval("NioApp.Break."+thisBreak)){trigger.forEach(t=>{t.classList.remove(selfActive)});let t=document.querySelector(`.${overlayClass}[data-target="${target}"]`);t&&t.remove(),targetElm.classList.remove(targetActive),parent&&parentElm.classList.remove(parentActive),targetElm.classList.add("toggle-collapsed")}window.addEventListener("resize",(function(){if(window.innerWidth<=eval("NioApp.Break."+thisBreak)?setTimeout(()=>{targetElm.classList.add("toggle-collapsed")},500):targetElm.classList.remove("toggle-collapsed"),window.innerWidth>=eval("NioApp.Break."+thisBreak)){let t=document.querySelector(`.${overlayClass}[data-target="${target}"]`);t&&t.remove(),thisVisiable||(trigger.forEach(t=>{t.classList.remove(selfActive)}),targetElm.classList.remove(targetActive),parent&&parentElm.classList.remove(parentActive))}else if(thisVisiable&&targetElm.classList.contains("toggle-visiable")&&!targetElm.classList.contains("toggle-collapsed")){trigger.forEach(t=>{t.classList.remove(selfActive)});let t=document.querySelector(`.${overlayClass}[data-target="${target}"]`);t&&t.remove(),targetElm.classList.remove(targetActive),parent&&parentElm.classList.remove(parentActive)}}))})}},NioApp.Custom.timePicker=function(t,e){let n={format:e.format?e.format:24,interval:e.interval?e.interval:30,start:e.start?e.start:"00:00",end:e.end?e.end:"23:59",class:{dropdown:"nk-timepicker-dropdown",dropdownItem:"nk-timepicker-time"}},i=n.interval,r=n.format,o=n.start,l=n.end,s=NioApp.toMin(l)-NioApp.toMin(o),a=Math.floor(s/i),c=[],u=NioApp.toMin(o);for(let t=0;t<a+1;t++){let t=u,e=function(){return 12==r?NioApp.to12(NioApp.toTime(t)):NioApp.toTime(t)};c.push(`<li><button class="dropdown-item ${n.class.dropdownItem}" data-picker-text="${e()}" type="button">\n ${e()}\n </button></li>`),u=t+i}let d=c.join("");NioApp.attr(t,"data-bs-toggle","dropdown"),NioApp.attr(t,"data-bs-offset","0,5");let h=t.id?t.id:NioApp.randomId(8);t.id||NioApp.attr(t,"id",h);let p=`\n <ul class="dropdown-menu ${n.class.dropdown}" data-picker-id="${h}" style="max-height:320px;overflow:auto">\n ${d}\n </ul>\n `;t.insertAdjacentHTML("afterend",p),document.querySelectorAll("."+n.class.dropdownItem).forEach(t=>{t.addEventListener("click",(function(e){e.preventDefault();let i=t.dataset.pickerText;document.getElementById(t.closest("."+n.class.dropdown).dataset.pickerId).value=i,t.closest("."+n.class.dropdown).querySelectorAll("."+n.class.dropdownItem).forEach(t=>{t.classList.remove("active")}),t.classList.add("active")}))})},NioApp.BS.tooltip=function(t){let e=document.querySelectorAll(t);[].slice.call(e).map((function(t){return new bootstrap.Tooltip(t)}))},NioApp.BS.popover=function(t){const e=[].slice.call(document.querySelectorAll(t));if(null!==e){e.map((function(t){return new bootstrap.Popover(t)}))}},NioApp.BS.toast=function(t){const e=document.querySelectorAll(t);e.length>0&&e.forEach(t=>{let e=t.dataset.bsTarget;const n=document.getElementById(e);t.addEventListener("click",(function(){new bootstrap.Toast(n).show()}))})},NioApp.BS.alertTemplate=function(t,e,n){const i=document.getElementById(t),r=document.createElement("div");r.innerHTML=`<div class="alert alert-${n||"primary"} alert-dismissible" role="alert">\n <div>${e}</div>\n <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>\n </div>`,i.append(r)},NioApp.BS.alert=function(t,e){const n=document.querySelectorAll(t);n.length>0&&n.forEach(t=>{const n=t.dataset.bsTarget?t.dataset.bsTarget:e.target,i=t.dataset.bsVariant?t.dataset.bsVariant:e.variant,r=t.dataset.bsContent?t.dataset.bsContent:e.content;t.addEventListener("click",(function(){NioApp.BS.alertTemplate(n,r,i)}))})},NioApp.BS.validate=function(t){const e=document.querySelectorAll(t);Array.from(e).forEach(t=>{t.addEventListener("submit",e=>{t.checkValidity()||(e.preventDefault(),e.stopPropagation()),t.classList.add("was-validated")},!1)})},NioApp.onResize(NioApp.StateUpdate),NioApp}(NioApp);