mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-25 02:18:20 +03:00
3 lines
No EOL
1.4 MiB
3 lines
No EOL
1.4 MiB
/*! For license information please see main.cd567d8f.js.LICENSE.txt */
|
|
!function(){var e={7757:function(e,t,n){e.exports=n(4596)},6176:function(e,t,n){"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){return e instanceof r(e).Element||e instanceof Element}function o(e){return e instanceof r(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!==typeof ShadowRoot&&(e instanceof r(e).ShadowRoot||e instanceof ShadowRoot)}n.d(t,{fi:function(){return he}});var s=Math.max,l=Math.min,u=Math.round;function c(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(o(e)&&t){var a=e.offsetHeight,s=e.offsetWidth;s>0&&(r=u(n.width)/s||1),a>0&&(i=u(n.height)/a||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function f(e){var t=r(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function d(e){return e?(e.nodeName||"").toLowerCase():null}function h(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function p(e){return c(h(e)).left+f(e).scrollLeft}function v(e){return r(e).getComputedStyle(e)}function m(e){var t=v(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function g(e,t,n){void 0===n&&(n=!1);var i=o(t),a=o(t)&&function(e){var t=e.getBoundingClientRect(),n=u(t.width)/e.offsetWidth||1,r=u(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=h(t),l=c(e,a),v={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(i||!i&&!n)&&(("body"!==d(t)||m(s))&&(v=function(e){return e!==r(e)&&o(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:f(e);var t}(t)),o(t)?((g=c(t,!0)).x+=t.clientLeft,g.y+=t.clientTop):s&&(g.x=p(s))),{x:l.left+v.scrollLeft-g.x,y:l.top+v.scrollTop-g.y,width:l.width,height:l.height}}function y(e){var t=c(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function b(e){return"html"===d(e)?e:e.assignedSlot||e.parentNode||(a(e)?e.host:null)||h(e)}function _(e){return["html","body","#document"].indexOf(d(e))>=0?e.ownerDocument.body:o(e)&&m(e)?e:_(b(e))}function x(e,t){var n;void 0===t&&(t=[]);var i=_(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),a=r(i),s=o?[a].concat(a.visualViewport||[],m(i)?i:[]):i,l=t.concat(s);return o?l:l.concat(x(b(s)))}function w(e){return["table","td","th"].indexOf(d(e))>=0}function k(e){return o(e)&&"fixed"!==v(e).position?e.offsetParent:null}function C(e){for(var t=r(e),n=k(e);n&&w(n)&&"static"===v(n).position;)n=k(n);return n&&("html"===d(n)||"body"===d(n)&&"static"===v(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&o(e)&&"fixed"===v(e).position)return null;for(var n=b(e);o(n)&&["html","body"].indexOf(d(n))<0;){var r=v(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var S="top",E="bottom",T="right",M="left",O="auto",j=[S,E,T,M],P="start",N="end",D="viewport",L="popper",R=j.reduce((function(e,t){return e.concat([t+"-"+P,t+"-"+N])}),[]),A=[].concat(j,[O]).reduce((function(e,t){return e.concat([t,t+"-"+P,t+"-"+N])}),[]),I=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function F(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function z(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var B={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function V(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?B:o;return function(e,t,n){void 0===n&&(n=a);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},B,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,u={state:o,setOptions:function(n){var l="function"===typeof n?n(o.options):n;c(),o.options=Object.assign({},a,o.options,l),o.scrollParents={reference:i(e)?x(e):e.contextElement?x(e.contextElement):[],popper:x(t)};var f=function(e){var t=F(e);return I.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=f.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var a=i({state:o,name:t,instance:u,options:r}),l=function(){};s.push(a||l)}})),u.update()},forceUpdate:function(){if(!l){var e=o.elements,t=e.reference,n=e.popper;if(U(t,n)){o.rects={reference:g(t,C(n),"fixed"===o.options.strategy),popper:y(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,s=i.options,c=void 0===s?{}:s,f=i.name;"function"===typeof a&&(o=a({state:o,options:c,name:f,instance:u})||o)}else o.reset=!1,r=-1}}},update:z((function(){return new Promise((function(e){u.forceUpdate(),e(o)}))})),destroy:function(){c(),l=!0}};if(!U(e,t))return u;function c(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var H={passive:!0};function W(e){return e.split("-")[0]}function Z(e){return e.split("-")[1]}function Y(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function q(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?W(i):null,a=i?Z(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case S:t={x:s,y:n.y-r.height};break;case E:t={x:s,y:n.y+n.height};break;case T:t={x:n.x+n.width,y:l};break;case M:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?Y(o):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case P:t[u]=t[u]-(n[c]/2-r[c]/2);break;case N:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var G={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K(e){var t,n=e.popper,i=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,f=e.adaptive,d=e.roundOffsets,p=e.isFixed,m=s.x,g=void 0===m?0:m,y=s.y,b=void 0===y?0:y,_="function"===typeof d?d({x:g,y:b}):{x:g,y:b};g=_.x,b=_.y;var x=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),k=M,O=S,j=window;if(f){var P=C(n),D="clientHeight",L="clientWidth";if(P===r(n)&&"static"!==v(P=h(n)).position&&"absolute"===l&&(D="scrollHeight",L="scrollWidth"),o===S||(o===M||o===T)&&a===N)O=E,b-=(p&&j.visualViewport?j.visualViewport.height:P[D])-i.height,b*=c?1:-1;if(o===M||(o===S||o===E)&&a===N)k=T,g-=(p&&j.visualViewport?j.visualViewport.width:P[L])-i.width,g*=c?1:-1}var R,A=Object.assign({position:l},f&&G),I=!0===d?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:u(t*r)/r||0,y:u(n*r)/r||0}}({x:g,y:b}):{x:g,y:b};return g=I.x,b=I.y,c?Object.assign({},A,((R={})[O]=w?"0":"",R[k]=x?"0":"",R.transform=(j.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",R)):Object.assign({},A,((t={})[O]=w?b+"px":"",t[k]=x?g+"px":"",t.transform="",t))}var Q={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=A.reduce((function(e,n){return e[n]=function(e,t,n){var r=W(e),i=[M,S].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[M,T].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},$={left:"right",right:"left",bottom:"top",top:"bottom"};function X(e){return e.replace(/left|right|bottom|top/g,(function(e){return $[e]}))}var J={start:"end",end:"start"};function ee(e){return e.replace(/start|end/g,(function(e){return J[e]}))}function te(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ne(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function re(e,t){return t===D?ne(function(e){var t=r(e),n=h(e),i=t.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;return i&&(o=i.width,a=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,l=i.offsetTop)),{width:o,height:a,x:s+p(e),y:l}}(e)):i(t)?function(e){var t=c(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ne(function(e){var t,n=h(e),r=f(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=s(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=s(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+p(e),u=-r.scrollTop;return"rtl"===v(i||n).direction&&(l+=s(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:l,y:u}}(h(e)))}function ie(e,t,n){var r="clippingParents"===t?function(e){var t=x(b(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&o(e)?C(e):e;return i(n)?t.filter((function(e){return i(e)&&te(e,n)&&"body"!==d(e)})):[]}(e):[].concat(t),a=[].concat(r,[n]),u=a[0],c=a.reduce((function(t,n){var r=re(e,n);return t.top=s(r.top,t.top),t.right=l(r.right,t.right),t.bottom=l(r.bottom,t.bottom),t.left=s(r.left,t.left),t}),re(e,u));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function oe(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ae(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function se(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.boundary,s=void 0===a?"clippingParents":a,l=n.rootBoundary,u=void 0===l?D:l,f=n.elementContext,d=void 0===f?L:f,p=n.altBoundary,v=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,y=oe("number"!==typeof g?g:ae(g,j)),b=d===L?"reference":L,_=e.rects.popper,x=e.elements[v?b:d],w=ie(i(x)?x:x.contextElement||h(e.elements.popper),s,u),k=c(e.elements.reference),C=q({reference:k,element:_,strategy:"absolute",placement:o}),M=ne(Object.assign({},_,C)),O=d===L?M:k,P={top:w.top-O.top+y.top,bottom:O.bottom-w.bottom+y.bottom,left:w.left-O.left+y.left,right:O.right-w.right+y.right},N=e.modifiersData.offset;if(d===L&&N){var R=N[o];Object.keys(P).forEach((function(e){var t=[T,E].indexOf(e)>=0?1:-1,n=[S,E].indexOf(e)>=0?"y":"x";P[e]+=R[n]*t}))}return P}function le(e,t,n){return s(e,l(t,n))}var ue={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,u=void 0!==a&&a,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.padding,p=n.tether,v=void 0===p||p,m=n.tetherOffset,g=void 0===m?0:m,b=se(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:d}),_=W(t.placement),x=Z(t.placement),w=!x,k=Y(_),O="x"===k?"y":"x",j=t.modifiersData.popperOffsets,N=t.rects.reference,D=t.rects.popper,L="function"===typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,R="number"===typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(j){if(o){var F,z="y"===k?S:M,B="y"===k?E:T,U="y"===k?"height":"width",V=j[k],H=V+b[z],q=V-b[B],G=v?-D[U]/2:0,K=x===P?N[U]:D[U],Q=x===P?-D[U]:-N[U],$=t.elements.arrow,X=v&&$?y($):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=J[z],te=J[B],ne=le(0,N[U],X[U]),re=w?N[U]/2-G-ne-ee-R.mainAxis:K-ne-ee-R.mainAxis,ie=w?-N[U]/2+G+ne+te+R.mainAxis:Q+ne+te+R.mainAxis,oe=t.elements.arrow&&C(t.elements.arrow),ae=oe?"y"===k?oe.clientTop||0:oe.clientLeft||0:0,ue=null!=(F=null==A?void 0:A[k])?F:0,ce=V+ie-ue,fe=le(v?l(H,V+re-ue-ae):H,V,v?s(q,ce):q);j[k]=fe,I[k]=fe-V}if(u){var de,he="x"===k?S:M,pe="x"===k?E:T,ve=j[O],me="y"===O?"height":"width",ge=ve+b[he],ye=ve-b[pe],be=-1!==[S,M].indexOf(_),_e=null!=(de=null==A?void 0:A[O])?de:0,xe=be?ge:ve-N[me]-D[me]-_e+R.altAxis,we=be?ve+N[me]+D[me]-_e-R.altAxis:ye,ke=v&&be?function(e,t,n){var r=le(e,t,n);return r>n?n:r}(xe,ve,we):le(v?xe:ge,ve,v?we:ye);j[O]=ke,I[O]=ke-ve}t.modifiersData[r]=I}},requiresIfExists:["offset"]};var ce={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=W(n.placement),l=Y(s),u=[M,T].indexOf(s)>=0?"height":"width";if(o&&a){var c=function(e,t){return oe("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ae(e,j))}(i.padding,n),f=y(o),d="y"===l?S:M,h="y"===l?E:T,p=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],v=a[l]-n.rects.reference[l],m=C(o),g=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=p/2-v/2,_=c[d],x=g-f[u]-c[h],w=g/2-f[u]/2+b,k=le(_,w,x),O=l;n.modifiersData[r]=((t={})[O]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&te(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fe(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function de(e){return[S,T,E,M].some((function(t){return e[t]>=0}))}var he=V({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,a=void 0===o||o,s=i.resize,l=void 0===s||s,u=r(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,H)})),l&&u.addEventListener("resize",n.update,H),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,H)})),l&&u.removeEventListener("resize",n.update,H)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=q({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,u={placement:W(t.placement),variation:Z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,K(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,K(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];o(i)&&d(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});o(r)&&d(r)&&(Object.assign(r.style,a),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},Q,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=void 0===h||h,v=n.allowedAutoPlacements,m=t.options.placement,g=W(m),y=l||(g===m||!p?[X(m)]:function(e){if(W(e)===O)return[];var t=X(e);return[ee(e),t,ee(t)]}(m)),b=[m].concat(y).reduce((function(e,n){return e.concat(W(n)===O?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?A:l,c=Z(r),f=c?s?R:R.filter((function(e){return Z(e)===c})):j,d=f.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=f);var h=d.reduce((function(t,n){return t[n]=se(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[W(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:c,rootBoundary:f,padding:u,flipVariations:p,allowedAutoPlacements:v}):n)}),[]),_=t.rects.reference,x=t.rects.popper,w=new Map,k=!0,C=b[0],N=0;N<b.length;N++){var D=b[N],L=W(D),I=Z(D)===P,F=[S,E].indexOf(L)>=0,z=F?"width":"height",B=se(t,{placement:D,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),U=F?I?T:M:I?E:S;_[z]>x[z]&&(U=X(U));var V=X(U),H=[];if(o&&H.push(B[L]<=0),s&&H.push(B[U]<=0,B[V]<=0),H.every((function(e){return e}))){C=D,k=!1;break}w.set(D,H)}if(k)for(var Y=function(e){var t=b.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},q=p?3:1;q>0;q--){if("break"===Y(q))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ue,ce,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=se(t,{elementContext:"reference"}),s=se(t,{altBoundary:!0}),l=fe(a,r),u=fe(s,i,o),c=de(l),f=de(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]})},8025:function(e,t,n){e.exports=n(9244)},9505:function(e,t,n){"use strict";var r=n(4271),i=n(1126),o=n(6223),a=n(2070),s=n(102),l=n(5074),u=n(7134),c=n(3926),f=n(728),d=n(5426);e.exports=function(e){return new Promise((function(t,n){var h,p=e.data,v=e.headers,m=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(p)&&delete v["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+_)}var x=s(e.baseURL,e.url);function w(){if(y){var r="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,o={data:m&&"text"!==m&&"json"!==m?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:e,request:y};i((function(e){t(e),g()}),(function(e){n(e),g()}),o),y=null}}if(y.open(e.method.toUpperCase(),a(x,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=w:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(w)},y.onabort=function(){y&&(n(c("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){n(c("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||f.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||u(x))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(v[e.xsrfHeaderName]=k)}"setRequestHeader"in y&&r.forEach(v,(function(e,t){"undefined"===typeof p&&"content-type"===t.toLowerCase()?delete v[t]:y.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),m&&"json"!==m&&(y.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){y&&(n(!e||e&&e.type?new d("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),p||(p=null),y.send(p)}))}},9244:function(e,t,n){"use strict";var r=n(4271),i=n(3981),o=n(1985),a=n(5322);var s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(728));s.Axios=o,s.Cancel=n(5426),s.CancelToken=n(2025),s.isCancel=n(6544),s.VERSION=n(846).version,s.all=function(e){return Promise.all(e)},s.spread=n(587),s.isAxiosError=n(5),e.exports=s,e.exports.default=s},5426:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},2025:function(e,t,n){"use strict";var r=n(5426);function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},6544:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},1985:function(e,t,n){"use strict";var r=n(4271),i=n(2070),o=n(8723),a=n(878),s=n(5322),l=n(6535),u=l.validators;function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&l.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,c=[];if(this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)})),!i){var f=[a,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(c),o=Promise.resolve(t);f.length;)o=o.then(f.shift(),f.shift());return o}for(var d=t;r.length;){var h=r.shift(),p=r.shift();try{d=h(d)}catch(v){p(v);break}}try{o=a(d)}catch(v){return Promise.reject(v)}for(;c.length;)o=o.then(c.shift(),c.shift());return o},c.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=c},8723:function(e,t,n){"use strict";var r=n(4271);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},102:function(e,t,n){"use strict";var r=n(7230),i=n(5930);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},3926:function(e,t,n){"use strict";var r=n(9020);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},878:function(e,t,n){"use strict";var r=n(4271),i=n(6996),o=n(6544),a=n(728),s=n(5426);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},9020:function(e){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},5322:function(e,t,n){"use strict";var r=n(4271);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function l(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,i=t(e);r.isUndefined(i)&&t!==l||(n[e]=i)})),n}},1126:function(e,t,n){"use strict";var r=n(3926);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},6996:function(e,t,n){"use strict";var r=n(4271),i=n(728);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},728:function(e,t,n){"use strict";var r=n(4271),i=n(8147),o=n(9020),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(9505)),e}(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||l.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw o(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(a)})),e.exports=l},846:function(e){e.exports={version:"0.26.0"}},3981:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},2070:function(e,t,n){"use strict";var r=n(4271);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},5930:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},6223:function(e,t,n){"use strict";var r=n(4271);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},7230:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5:function(e,t,n){"use strict";var r=n(4271);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},7134:function(e,t,n){"use strict";var r=n(4271);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},8147:function(e,t,n){"use strict";var r=n(4271);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},5074:function(e,t,n){"use strict";var r=n(4271),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},587:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},6535:function(e,t,n){"use strict";var r=n(846).version,i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(i(r," has been removed"+(t?" in "+t:"")));return t&&!o[r]&&(o[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],a=t[o];if(a){var s=e[o],l=void 0===s||a(s,o,e);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},4271:function(e,t,n){"use strict";var r=n(3981),i=Object.prototype.toString;function o(e){return Array.isArray(e)}function a(e){return"undefined"===typeof e}function s(e){return"[object ArrayBuffer]"===i.call(e)}function l(e){return null!==e&&"object"===typeof e}function u(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===i.call(e)}function f(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:s,isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===i.call(e)},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&s(e.buffer)},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:l,isPlainObject:u,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return l(e)&&c(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===i.call(e)},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:f,merge:function e(){var t={};function n(n,r){u(t[r])&&u(n)?t[r]=e(t[r],n):u(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)f(arguments[r],n);return t},extend:function(e,t,n){return f(t,(function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},449:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(n),a=Math.max(i,o),s=0,l=e.map([t,n],(function(t){var n=a-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===s)return 0;a-=1}else if(l[0][a]<l[1][a])return-1}},e.map=function(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return r},e.find=function(e,t){var n,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,r=e.length;n<r;n+=1){var i=e[n];if(t(i,n))return i}},e.assign=function(e){for(var t,n,r=e,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(o));var s=function(){var e=o[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){r[t]=e[t]}))};for(t=0,n=o.length;t<n;t+=1)s();return e},e.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,n){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(91))&&r.__esModule?r:{default:r},o=n(18);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(){}var t,n,r;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},t=e,r=[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}],(n=null)&&a(t.prototype,n),r&&a(t,r),e}();t.default=s,e.exports=t.default},91:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=l(n(92)),i=l(n(93)),o=l(n(94)),a=l(n(95)),s=l(n(17));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(r.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,n={},r=0,i={},o=0;if(Object.keys(e).forEach((function(t){var a=e[t];"string"==typeof a?(i[t]=a,o+=1):"object"==typeof a&&(n[t]=a,r+=1)})),r>0){var a=Object.keys(n),l=s.default.find(a,(function(e){return t.isOS(e)}));if(l){var u=this.satisfies(n[l]);if(void 0!==u)return u}var c=s.default.find(a,(function(e){return t.isPlatform(e)}));if(c){var f=this.satisfies(n[c]);if(void 0!==f)return f}}if(o>0){var d=Object.keys(i),h=s.default.find(d,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(i[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(i,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=u,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(t),r={name:o.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:o.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:o.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=a,e.exports=t.default}})},4758:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=i.apply(null,n);a&&e.push(a)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},5240:function(e,t,n){"use strict";var r=n(3147),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,l,u,c=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),s.selectNodeContents(u),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return c}},9995:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=32)}([function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(6),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var o=n(5);o.inherits=n(2);var a=n(23),s=n(14);o.inherits(f,a);for(var l=i(s.prototype),u=0;u<l.length;u++){var c=l[u];f.prototype[c]||(f.prototype[c]=s.prototype[c])}function f(e){if(!(this instanceof f))return new f(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";(function(e){var r=n(38),i=n(39),o=n(40);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),i=(e=s(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|h(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?s(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return d(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(c(t),e=s(e,t<0?0:0|h(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|h(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var f=!0,d=0;d<l;d++)if(u(e,o+d)!==u(t,d)){f=!1;break}if(f)return o}return-1}function y(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function b(e,t,n,r){return V(B(t,e.length-n),e,n,r)}function _(e,t,n,r){return V(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function x(e,t,n,r){return _(e,t,n,r)}function w(e,t,n,r){return V(U(t),e,n,r)}function k(e,t,n,r){return V(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,u=e[i],c=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=E));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return u(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return f(null,e)},l.allocUnsafeSlow=function(e){return f(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),f=0;f<s;++f)if(u[f]!==c[f]){o=u[f],a=c[f];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function M(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function O(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=z(e[o]);return i}function j(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function D(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function R(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function A(e,t,n,r,o){return o||R(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function I(e,t,n,r,o){return o||R(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||N(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||N(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);N(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);N(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return A(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return A(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=l.isBuffer(e)?e:B(new l(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,u=[],c=!1,f=-1;function d(){c&&l&&(c=!1,l.length?u=l.concat(u):f=-1,u.length&&h())}function h(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(l=u,u=[];++f<t;)l&&l[f].run();f=-1,t=u.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||c||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(e){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(3).Buffer)},function(e,t,n){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return t.nextTick((function(){e.apply(null,o)}))}}}:e.exports=t}).call(this,n(4))},function(e,t,n){var r=n(3),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){var r=n(17)(Object,"create");e.exports=r},function(e,t,n){var r=n(31);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(96);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(35),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(0))},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!function(e){return"number"==typeof e}(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,l,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(o(n=this._events[e]))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),a=(u=n.slice()).length,l=0;l<a;l++)u[l].apply(this,s);return!0},n.prototype.addListener=function(e,t){var a;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(a=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},n.prototype.removeListener=function(e,t){var n,o,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){(t=e.exports=n(23)).Stream=t,t.Readable=t,t.Writable=n(14),t.Duplex=n(1),t.Transform=n(27),t.PassThrough=n(45)},function(e,t,n){"use strict";(function(t,r,i){var o=n(6);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(void 0),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=y;var s,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:o.nextTick;y.WritableState=g;var u=n(5);u.inherits=n(2);var c,f={deprecate:n(44)},d=n(24),h=n(7).Buffer,p=i.Uint8Array||function(){},v=n(25);function m(){}function g(e,t){s=s||n(1),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,u=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(u||0===u)?u:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(o.nextTick(i,r),o.nextTick(C,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),C(e,t))}(e,n,r,t,i);else{var a=w(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||x(e,n),r?l(_,e,n,a,i):_(e,n,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function y(e){if(s=s||n(1),!(c.call(y,this)||this instanceof s))return new y(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),d.call(this)}function b(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function _(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),C(e,t)}function x(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,l=!0;n;)i[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;i.allBuffers=l,b(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,f=n.callback;if(b(e,t,!1,t.objectMode?1:u.length,u,c,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function w(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),C(e,t)}))}function C(e,t){var n=w(t);return n&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(k,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}u.inherits(y,d),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:f.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===y&&e&&e._writableState instanceof g}})):c=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&function(e){return h.isBuffer(e)||e instanceof p}(e);return a&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=m),r.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}(this,n):(a||function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(r,a),i=!1),i}(this,r,e,n))&&(r.pendingcb++,i=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,n)),t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,s,r,i,o);return l}(this,r,a,e,t,n)),i},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||x(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,C(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=v.destroy,y.prototype._undestroy=v.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(t,n,r){e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof _dereq_&&_dereq_;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){return i(t[a][1][e]||e)}),c,c.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof _dereq_&&_dereq_,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){"use strict";t.exports=function(e){var t=e._SomePromiseArray;function n(e){var n=new t(e),r=n.promise();return n.setHowMany(1),n.setUnwrap(),n.init(),r}e.any=function(e){return n(e)},e.prototype.any=function(){return n(this)}}},{}],2:[function(e,n,r){"use strict";var i;try{throw new Error}catch(e){i=e}var o=e("./schedule"),a=e("./queue"),s=e("./util");function l(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new a(16),this._normalQueue=new a(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var e=this;this.drainQueues=function(){e._drainQueues()},this._schedule=o}function u(e,t,n){this._lateQueue.push(e,t,n),this._queueTick()}function c(e,t,n){this._normalQueue.push(e,t,n),this._queueTick()}function f(e){this._normalQueue._pushOne(e),this._queueTick()}l.prototype.setScheduler=function(e){var t=this._schedule;return this._schedule=e,this._customScheduler=!0,t},l.prototype.hasCustomScheduler=function(){return this._customScheduler},l.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},l.prototype.disableTrampolineIfNecessary=function(){s.hasDevTools&&(this._trampolineEnabled=!1)},l.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},l.prototype.fatalError=function(e,n){n?(t.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+"\n"),t.exit(2)):this.throwLater(e)},l.prototype.throwLater=function(e,t){if(1===arguments.length&&(t=e,e=function(){throw t}),"undefined"!=typeof setTimeout)setTimeout((function(){e(t)}),0);else try{this._schedule((function(){e(t)}))}catch(e){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},s.hasDevTools?(l.prototype.invokeLater=function(e,t,n){this._trampolineEnabled?u.call(this,e,t,n):this._schedule((function(){setTimeout((function(){e.call(t,n)}),100)}))},l.prototype.invoke=function(e,t,n){this._trampolineEnabled?c.call(this,e,t,n):this._schedule((function(){e.call(t,n)}))},l.prototype.settlePromises=function(e){this._trampolineEnabled?f.call(this,e):this._schedule((function(){e._settlePromises()}))}):(l.prototype.invokeLater=u,l.prototype.invoke=c,l.prototype.settlePromises=f),l.prototype._drainQueue=function(e){for(;e.length()>0;){var t=e.shift();if("function"==typeof t){var n=e.shift(),r=e.shift();t.call(n,r)}else t._settlePromises()}},l.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},l.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},l.prototype._reset=function(){this._isTickUsed=!1},n.exports=l,n.exports.firstLineError=i},{"./queue":26,"./schedule":29,"./util":36}],3:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){var i=!1,o=function(e,t){this._reject(t)},a=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(o,o,null,this,e)},s=function(e,t){0==(50397184&this._bitField)&&this._resolveCallback(t.target)},l=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(o){i||(i=!0,e.prototype._propagateFrom=r.propagateFromFunction(),e.prototype._boundValue=r.boundValueFunction());var u=n(o),c=new e(t);c._propagateFrom(this,1);var f=this._target();if(c._setBoundTo(u),u instanceof e){var d={promiseRejectionQueued:!1,promise:c,target:f,bindingPromise:u};f._then(t,a,void 0,c,d),u._then(s,l,void 0,c,d),c._setOnCancel(u)}else c._resolveCallback(f);return c},e.prototype._setBoundTo=function(e){void 0!==e?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=-2097153&this._bitField},e.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},e.bind=function(t,n){return e.resolve(n).bind(t)}}},{}],4:[function(e,t,n){"use strict";var r;"undefined"!=typeof Promise&&(r=Promise);var i=e("./promise")();i.noConflict=function(){try{Promise===i&&(Promise=r)}catch(e){}return i},t.exports=i},{"./promise":22}],5:[function(e,t,n){"use strict";var r=Object.create;if(r){var i=r(null),o=r(null);i[" size"]=o[" size"]=0}t.exports=function(t){var n=e("./util"),r=n.canEvaluate;function i(e){return function(e,r){var i;if(null!=e&&(i=e[r]),"function"!=typeof i){var o="Object "+n.classString(e)+" has no method '"+n.toString(r)+"'";throw new t.TypeError(o)}return i}(e,this.pop()).apply(e,this)}function o(e){return e[this]}function a(e){var t=+this;return t<0&&(t=Math.max(0,t+e.length)),e[t]}n.isIdentifier,t.prototype.call=function(e){var t=[].slice.call(arguments,1);return t.push(e),this._then(i,void 0,void 0,t,void 0)},t.prototype.get=function(e){var t;if("number"==typeof e)t=a;else if(r){var n=(void 0)(e);t=null!==n?n:o}else t=o;return this._then(t,void 0,void 0,e,void 0)}}},{"./util":36}],6:[function(e,t,n){"use strict";t.exports=function(t,n,r,i){var o=e("./util"),a=o.tryCatch,s=o.errorObj,l=t._async;t.prototype.break=t.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var e=this,t=e;e._isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var n=e._cancellationParent;if(null==n||!n._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=n}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),l.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(e,t){if(o.isArray(e))for(var n=0;n<e.length;++n)this._doInvokeOnCancel(e[n],t);else if(void 0!==e)if("function"==typeof e){if(!t){var r=a(e).call(this._boundValue());r===s&&(this._attachExtraTrace(r.e),l.throwLater(r.e))}}else e._resultCancelled(this)},t.prototype._invokeOnCancel=function(){var e=this._onCancel();this._unsetOnCancel(),l.invoke(this._doInvokeOnCancel,this,e)},t.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},t.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(e,t,n){"use strict";t.exports=function(t){var n=e("./util"),r=e("./es5").keys,i=n.tryCatch,o=n.errorObj;return function(e,a,s){return function(l){var u=s._boundValue();e:for(var c=0;c<e.length;++c){var f=e[c];if(f===Error||null!=f&&f.prototype instanceof Error){if(l instanceof f)return i(a).call(u,l)}else if("function"==typeof f){var d=i(f).call(u,l);if(d===o)return d;if(d)return i(a).call(u,l)}else if(n.isObject(l)){for(var h=r(f),p=0;p<h.length;++p){var v=h[p];if(f[v]!=l[v])continue e}return i(a).call(u,l)}}return t}}}},{"./es5":13,"./util":36}],8:[function(e,t,n){"use strict";t.exports=function(e){var t=!1,n=[];function r(){this._trace=new r.CapturedTrace(i())}function i(){var e=n.length-1;if(e>=0)return n[e]}return e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){},r.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,n.push(this._trace))},r.prototype._popContext=function(){if(void 0!==this._trace){var e=n.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null},r.CapturedTrace=null,r.create=function(){if(t)return new r},r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var n=e.prototype._pushContext,o=e.prototype._popContext,a=e._peekContext,s=e.prototype._peekContext,l=e.prototype._promiseCreated;r.deactivateLongStackTraces=function(){e.prototype._pushContext=n,e.prototype._popContext=o,e._peekContext=a,e.prototype._peekContext=s,e.prototype._promiseCreated=l,t=!1},t=!0,e.prototype._pushContext=r.prototype._pushContext,e.prototype._popContext=r.prototype._popContext,e._peekContext=e.prototype._peekContext=i,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},r}},{}],9:[function(e,n,r){"use strict";n.exports=function(n,r){var i,o,a,s=n._getDomain,l=n._async,u=e("./errors").Warning,c=e("./util"),f=c.canAttachTrace,d=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,h=/\((?:timers\.js):\d+:\d+\)/,p=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,v=null,m=null,g=!1,y=!(0==c.env("BLUEBIRD_DEBUG")),b=!(0==c.env("BLUEBIRD_WARNINGS")||!y&&!c.env("BLUEBIRD_WARNINGS")),_=!(0==c.env("BLUEBIRD_LONG_STACK_TRACES")||!y&&!c.env("BLUEBIRD_LONG_STACK_TRACES")),x=0!=c.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(b||!!c.env("BLUEBIRD_W_FORGOTTEN_RETURN"));n.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=-1048577&e._bitField|524288},n.prototype._ensurePossibleRejectionHandled=function(){if(0==(524288&this._bitField)){this._setRejectionIsUnhandled();var e=this;setTimeout((function(){e._notifyUnhandledRejection()}),1)}},n.prototype._notifyUnhandledRejectionIsHandled=function(){H("rejectionHandled",i,void 0,this)},n.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},n.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},n.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),H("unhandledRejection",o,e,this)}},n.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},n.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},n.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},n.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},n.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},n.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},n.prototype._warn=function(e,t,n){return z(e,t,n||this)},n.onPossiblyUnhandledRejection=function(e){var t=s();o="function"==typeof e?null===t?e:c.domainBind(t,e):void 0},n.onUnhandledRejectionHandled=function(e){var t=s();i="function"==typeof e?null===t?e:c.domainBind(t,e):void 0};var w=function(){};n.longStackTraces=function(){if(l.haveItemsQueued()&&!$.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!$.longStackTraces&&Z()){var e=n.prototype._captureStackTrace,t=n.prototype._attachExtraTrace;$.longStackTraces=!0,w=function(){if(l.haveItemsQueued()&&!$.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");n.prototype._captureStackTrace=e,n.prototype._attachExtraTrace=t,r.deactivateLongStackTraces(),l.enableTrampoline(),$.longStackTraces=!1},n.prototype._captureStackTrace=I,n.prototype._attachExtraTrace=F,r.activateLongStackTraces(),l.disableTrampolineIfNecessary()}},n.hasLongStackTraces=function(){return $.longStackTraces&&Z()};var k=function(){try{if("function"==typeof CustomEvent){var e=new CustomEvent("CustomEvent");return c.global.dispatchEvent(e),function(e,t){var n=new CustomEvent(e.toLowerCase(),{detail:t,cancelable:!0});return!c.global.dispatchEvent(n)}}return"function"==typeof Event?(e=new Event("CustomEvent"),c.global.dispatchEvent(e),function(e,t){var n=new Event(e.toLowerCase(),{cancelable:!0});return n.detail=t,!c.global.dispatchEvent(n)}):((e=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),c.global.dispatchEvent(e),function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e.toLowerCase(),!1,!0,t),!c.global.dispatchEvent(n)})}catch(e){}return function(){return!1}}(),C=c.isNode?function(){return t.emit.apply(t,arguments)}:c.global?function(e){var t="on"+e.toLowerCase(),n=c.global[t];return!!n&&(n.apply(c.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function S(e,t){return{promise:t}}var E={promiseCreated:S,promiseFulfilled:S,promiseRejected:S,promiseResolved:S,promiseCancelled:S,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:S},T=function(e){var t=!1;try{t=C.apply(null,arguments)}catch(e){l.throwLater(e),t=!0}var n=!1;try{n=k(e,E[e].apply(null,arguments))}catch(e){l.throwLater(e),n=!0}return n||t};function M(){return!1}function O(e,t,n){var r=this;try{e(t,n,(function(e){if("function"!=typeof e)throw new TypeError("onCancel must be a function, got: "+c.toString(e));r._attachCancellationCallback(e)}))}catch(e){return e}}function j(e){if(!this._isCancellable())return this;var t=this._onCancel();void 0!==t?c.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function P(){return this._onCancelField}function N(e){this._onCancelField=e}function D(){this._cancellationParent=void 0,this._onCancelField=void 0}function L(e,t){if(0!=(1&t)){this._cancellationParent=e;var n=e._branchesRemainingToCancel;void 0===n&&(n=0),e._branchesRemainingToCancel=n+1}0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}n.config=function(e){if("longStackTraces"in(e=Object(e))&&(e.longStackTraces?n.longStackTraces():!e.longStackTraces&&n.hasLongStackTraces()&&w()),"warnings"in e){var t=e.warnings;$.warnings=!!t,x=$.warnings,c.isObject(t)&&"wForgottenReturn"in t&&(x=!!t.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!$.cancellation){if(l.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");n.prototype._clearCancellationData=D,n.prototype._propagateFrom=L,n.prototype._onCancel=P,n.prototype._setOnCancel=N,n.prototype._attachCancellationCallback=j,n.prototype._execute=O,R=L,$.cancellation=!0}return"monitoring"in e&&(e.monitoring&&!$.monitoring?($.monitoring=!0,n.prototype._fireEvent=T):!e.monitoring&&$.monitoring&&($.monitoring=!1,n.prototype._fireEvent=M)),n},n.prototype._fireEvent=M,n.prototype._execute=function(e,t,n){try{e(t,n)}catch(e){return e}},n.prototype._onCancel=function(){},n.prototype._setOnCancel=function(e){},n.prototype._attachCancellationCallback=function(e){},n.prototype._captureStackTrace=function(){},n.prototype._attachExtraTrace=function(){},n.prototype._clearCancellationData=function(){},n.prototype._propagateFrom=function(e,t){};var R=function(e,t){0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)};function A(){var e=this._boundTo;return void 0!==e&&e instanceof n?e.isFulfilled()?e.value():void 0:e}function I(){this._trace=new K(this._peekContext())}function F(e,t){if(f(e)){var n=this._trace;if(void 0!==n&&t&&(n=n._parent),void 0!==n)n.attachExtraTrace(e);else if(!e.__stackCleaned__){var r=U(e);c.notEnumerableProp(e,"stack",r.message+"\n"+r.stack.join("\n")),c.notEnumerableProp(e,"__stackCleaned__",!0)}}}function z(e,t,r){if($.warnings){var i,o=new u(e);if(t)r._attachExtraTrace(o);else if($.longStackTraces&&(i=n._peekContext()))i.attachExtraTrace(o);else{var a=U(o);o.stack=a.message+"\n"+a.stack.join("\n")}T("warning",o)||V(o,"",!0)}}function B(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],i=" (No stack trace)"===r||v.test(r),o=i&&Y(r);i&&!o&&(g&&" "!==r.charAt(0)&&(r=" "+r),t.push(r))}return t}function U(e){var t=e.stack,n=e.toString();return t="string"==typeof t&&t.length>0?function(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),n=0;n<t.length;++n){var r=t[n];if(" (No stack trace)"===r||v.test(r))break}return n>0&&"SyntaxError"!=e.name&&(t=t.slice(n)),t}(e):[" (No stack trace)"],{message:n,stack:"SyntaxError"==e.name?t:B(t)}}function V(e,t,n){if("undefined"!=typeof console){var r;if(c.isObject(e)){var i=e.stack;r=t+m(i,e)}else r=t+String(e);"function"==typeof a?a(r,n):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(r)}}function H(e,t,n,r){var i=!1;try{"function"==typeof t&&(i=!0,"rejectionHandled"===e?t(r):t(n,r))}catch(e){l.throwLater(e)}"unhandledRejection"===e?T(e,n,r)||i||V(n,"Unhandled rejection "):T(e,r)}function W(e){var t;if("function"==typeof e)t="[function "+(e.name||"anonymous")+"]";else{if(t=e&&"function"==typeof e.toString?e.toString():c.toString(e),/\[object [a-zA-Z0-9$_]+\]/.test(t))try{t=JSON.stringify(e)}catch(e){}0===t.length&&(t="(empty array)")}return"(<"+function(e){return e.length<41?e:e.substr(0,38)+"..."}(t)+">, no stack trace)"}function Z(){return"function"==typeof Q}var Y=function(){return!1},q=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function G(e){var t=e.match(q);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function K(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(void 0===e?0:e._length);Q(this,K),t>32&&this.uncycle()}c.inherits(K,Error),r.CapturedTrace=K,K.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],n={},r=0,i=this;void 0!==i;++r)t.push(i),i=i._parent;for(r=(e=this._length=r)-1;r>=0;--r){var o=t[r].stack;void 0===n[o]&&(n[o]=r)}for(r=0;r<e;++r){var a=n[t[r].stack];if(void 0!==a&&a!==r){a>0&&(t[a-1]._parent=void 0,t[a-1]._length=1),t[r]._parent=void 0,t[r]._length=1;var s=r>0?t[r-1]:this;a<e-1?(s._parent=t[a+1],s._parent.uncycle(),s._length=s._parent._length+1):(s._parent=void 0,s._length=1);for(var l=s._length+1,u=r-2;u>=0;--u)t[u]._length=l,l++;return}}}},K.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=U(e),n=t.message,r=[t.stack],i=this;void 0!==i;)r.push(B(i.stack.split("\n"))),i=i._parent;!function(e){for(var t=e[0],n=1;n<e.length;++n){for(var r=e[n],i=t.length-1,o=t[i],a=-1,s=r.length-1;s>=0;--s)if(r[s]===o){a=s;break}for(s=a;s>=0;--s){var l=r[s];if(t[i]!==l)break;t.pop(),i--}t=r}}(r),function(e){for(var t=0;t<e.length;++t)(0===e[t].length||t+1<e.length&&e[t][0]===e[t+1][0])&&(e.splice(t,1),t--)}(r),c.notEnumerableProp(e,"stack",function(e,t){for(var n=0;n<t.length-1;++n)t[n].push("From previous event:"),t[n]=t[n].join("\n");return n<t.length&&(t[n]=t[n].join("\n")),e+"\n"+t.join("\n")}(n,r)),c.notEnumerableProp(e,"__stackCleaned__",!0)}};var Q=function(){var e=/^\s*at\s*/,t=function(e,t){return"string"==typeof e?e:void 0!==t.name&&void 0!==t.message?t.toString():W(t)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,v=e,m=t;var n=Error.captureStackTrace;return Y=function(e){return d.test(e)},function(e,t){Error.stackTraceLimit+=6,n(e,t),Error.stackTraceLimit-=6}}var r,i=new Error;if("string"==typeof i.stack&&i.stack.split("\n")[0].indexOf("stackDetection@")>=0)return v=/@/,m=t,g=!0,function(e){e.stack=(new Error).stack};try{throw new Error}catch(e){r="stack"in e}return"stack"in i||!r||"number"!=typeof Error.stackTraceLimit?(m=function(e,t){return"string"==typeof e?e:"object"!=typeof t&&"function"!=typeof t||void 0===t.name||void 0===t.message?W(t):t.toString()},null):(v=e,m=t,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6})}();"undefined"!=typeof console&&void 0!==console.warn&&(a=function(e){console.warn(e)},c.isNode&&t.stderr.isTTY?a=function(e,t){var n=t?"\x1b[33m":"\x1b[31m";console.warn(n+e+"\x1b[0m\n")}:c.isNode||"string"!=typeof(new Error).stack||(a=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var $={warnings:b,longStackTraces:!1,cancellation:!1,monitoring:!1};return _&&n.longStackTraces(),{longStackTraces:function(){return $.longStackTraces},warnings:function(){return $.warnings},cancellation:function(){return $.cancellation},monitoring:function(){return $.monitoring},propagateFromFunction:function(){return R},boundValueFunction:function(){return A},checkForgottenReturns:function(e,t,n,r,i){if(void 0===e&&null!==t&&x){if(void 0!==i&&i._returnedNonUndefined())return;if(0==(65535&r._bitField))return;n&&(n+=" ");var o="",a="";if(t._trace){for(var s=t._trace.stack.split("\n"),l=B(s),u=l.length-1;u>=0;--u){var c=l[u];if(!h.test(c)){var f=c.match(p);f&&(o="at "+f[1]+":"+f[2]+":"+f[3]+" ");break}}if(l.length>0){var d=l[0];for(u=0;u<s.length;++u)if(s[u]===d){u>0&&(a="\n"+s[u-1]);break}}}var v="a promise was created in a "+n+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+a;r._warn(v,!0,t)}},setBounds:function(e,t){if(Z()){for(var n,r,i=e.stack.split("\n"),o=t.stack.split("\n"),a=-1,s=-1,l=0;l<i.length;++l)if(u=G(i[l])){n=u.fileName,a=u.line;break}for(l=0;l<o.length;++l){var u;if(u=G(o[l])){r=u.fileName,s=u.line;break}}a<0||s<0||!n||!r||n!==r||a>=s||(Y=function(e){if(d.test(e))return!0;var t=G(e);return!!(t&&t.fileName===n&&a<=t.line&&t.line<=s)})}},warn:z,deprecated:function(e,t){var n=e+" is deprecated and will be removed in a future version.";return t&&(n+=" Use "+t+" instead."),z(n)},CapturedTrace:K,fireDomEvent:k,fireGlobalEvent:C}}},{"./errors":12,"./util":36}],10:[function(e,t,n){"use strict";t.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(n){return n instanceof e&&n.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:n},void 0)},e.prototype.throw=e.prototype.thenThrow=function(e){return this._then(n,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:e},void 0);var t=arguments[1];return this.caught(e,(function(){throw t}))},e.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof e&&n.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:n},void 0);var r=arguments[1];return r instanceof e&&r.suppressUnhandledRejections(),this.caught(n,(function(){return r}))}}},{}],11:[function(e,t,n){"use strict";t.exports=function(e,t){var n=e.reduce,r=e.all;function i(){return r(this)}e.prototype.each=function(e){return n(this,e,t,0)._then(i,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return n(this,e,t,t)},e.each=function(e,r){return n(e,r,t,0)._then(i,void 0,void 0,e,void 0)},e.mapSeries=function(e,r){return n(e,r,t,t)}}},{}],12:[function(e,t,n){"use strict";var r,i,o=e("./es5"),a=o.freeze,s=e("./util"),l=s.inherits,u=s.notEnumerableProp;function c(e,t){function n(r){if(!(this instanceof n))return new n(r);u(this,"message","string"==typeof r?r:t),u(this,"name",e),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return l(n,Error),n}var f=c("Warning","warning"),d=c("CancellationError","cancellation error"),h=c("TimeoutError","timeout error"),p=c("AggregateError","aggregate error");try{r=TypeError,i=RangeError}catch(e){r=c("TypeError","type error"),i=c("RangeError","range error")}for(var v="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),m=0;m<v.length;++m)"function"==typeof Array.prototype[v[m]]&&(p.prototype[v[m]]=Array.prototype[v[m]]);o.defineProperty(p.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),p.prototype.isOperational=!0;var g=0;function y(e){if(!(this instanceof y))return new y(e);u(this,"name","OperationalError"),u(this,"message",e),this.cause=e,this.isOperational=!0,e instanceof Error?(u(this,"message",e.message),u(this,"stack",e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}p.prototype.toString=function(){var e=Array(4*g+1).join(" "),t="\n"+e+"AggregateError of:\n";g++,e=Array(4*g+1).join(" ");for(var n=0;n<this.length;++n){for(var r=this[n]===this?"[Circular AggregateError]":this[n]+"",i=r.split("\n"),o=0;o<i.length;++o)i[o]=e+i[o];t+=(r=i.join("\n"))+"\n"}return g--,t},l(y,Error);var b=Error.__BluebirdErrorTypes__;b||(b=a({CancellationError:d,TimeoutError:h,OperationalError:y,RejectionError:y,AggregateError:p}),o.defineProperty(Error,"__BluebirdErrorTypes__",{value:b,writable:!1,enumerable:!1,configurable:!1})),t.exports={Error:Error,TypeError:r,RangeError:i,CancellationError:b.CancellationError,OperationalError:b.OperationalError,TimeoutError:b.TimeoutError,AggregateError:b.AggregateError,Warning:f}},{"./es5":13,"./util":36}],13:[function(e,t,n){var r=function(){"use strict";return void 0===this}();if(r)t.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:r,propertyIsWritable:function(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!(n&&!n.writable&&!n.set)}};else{var i={}.hasOwnProperty,o={}.toString,a={}.constructor.prototype,s=function(e){var t=[];for(var n in e)i.call(e,n)&&t.push(n);return t};t.exports={isArray:function(e){try{return"[object Array]"===o.call(e)}catch(e){return!1}},keys:s,names:s,defineProperty:function(e,t,n){return e[t]=n.value,e},getDescriptor:function(e,t){return{value:e[t]}},freeze:function(e){return e},getPrototypeOf:function(e){try{return Object(e).constructor.prototype}catch(e){return a}},isES5:r,propertyIsWritable:function(){return!0}}}},{}],14:[function(e,t,n){"use strict";t.exports=function(e,t){var n=e.map;e.prototype.filter=function(e,r){return n(this,e,r,t)},e.filter=function(e,r,i){return n(e,r,i,t)}}},{}],15:[function(e,t,n){"use strict";t.exports=function(t,n,r){var i=e("./util"),o=t.CancellationError,a=i.errorObj,s=e("./catch_filter")(r);function l(e,t,n){this.promise=e,this.type=t,this.handler=n,this.called=!1,this.cancelPromise=null}function u(e){this.finallyHandler=e}function c(e,t){return null!=e.cancelPromise&&(arguments.length>1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function f(){return h.call(this,this.promise._target()._settledValue())}function d(e){if(!c(this,e))return a.e=e,a}function h(e){var i=this.promise,s=this.handler;if(!this.called){this.called=!0;var l=this.isFinallyHandler()?s.call(i._boundValue()):s.call(i._boundValue(),e);if(l===r)return l;if(void 0!==l){i._setReturnedNonUndefined();var h=n(l,i);if(h instanceof t){if(null!=this.cancelPromise){if(h._isCancelled()){var p=new o("late cancellation observer");return i._attachExtraTrace(p),a.e=p,a}h.isPending()&&h._attachCancellationCallback(new u(this))}return h._then(f,d,void 0,this,void 0)}}}return i.isRejected()?(c(this),a.e=e,a):(c(this),e)}return l.prototype.isFinallyHandler=function(){return 0===this.type},u.prototype._resultCancelled=function(){c(this.finallyHandler)},t.prototype._passThrough=function(e,t,n,r){return"function"!=typeof e?this.then():this._then(n,r,void 0,new l(this,t,e),void 0)},t.prototype.lastly=t.prototype.finally=function(e){return this._passThrough(e,0,h,h)},t.prototype.tap=function(e){return this._passThrough(e,1,h)},t.prototype.tapCatch=function(e){var n=arguments.length;if(1===n)return this._passThrough(e,1,void 0,h);var r,o=new Array(n-1),a=0;for(r=0;r<n-1;++r){var l=arguments[r];if(!i.isObject(l))return t.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+i.classString(l)));o[a++]=l}o.length=a;var u=arguments[r];return this._passThrough(s(o,u,this),1,void 0,h)},l}},{"./catch_filter":7,"./util":36}],16:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s=e("./errors").TypeError,l=e("./util"),u=l.errorObj,c=l.tryCatch,f=[];function d(e,n,i,o){if(a.cancellation()){var s=new t(r),l=this._finallyPromise=new t(r);this._promise=s.lastly((function(){return l})),s._captureStackTrace(),s._setOnCancel(this)}else(this._promise=new t(r))._captureStackTrace();this._stack=o,this._generatorFunction=e,this._receiver=n,this._generator=void 0,this._yieldHandlers="function"==typeof i?[i].concat(f):f,this._yieldedPromise=null,this._cancellationPhase=!1}l.inherits(d,o),d.prototype._isResolved=function(){return null===this._promise},d.prototype._cleanup=function(){this._promise=this._generator=null,a.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},d.prototype._promiseCancelled=function(){if(!this._isResolved()){var e;if(void 0!==this._generator.return)this._promise._pushContext(),e=c(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var n=new t.CancellationError("generator .return() sentinel");t.coroutine.returnSentinel=n,this._promise._attachExtraTrace(n),this._promise._pushContext(),e=c(this._generator.throw).call(this._generator,n),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(e)}},d.prototype._promiseFulfilled=function(e){this._yieldedPromise=null,this._promise._pushContext();var t=c(this._generator.next).call(this._generator,e);this._promise._popContext(),this._continue(t)},d.prototype._promiseRejected=function(e){this._yieldedPromise=null,this._promise._attachExtraTrace(e),this._promise._pushContext();var t=c(this._generator.throw).call(this._generator,e);this._promise._popContext(),this._continue(t)},d.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof t){var e=this._yieldedPromise;this._yieldedPromise=null,e.cancel()}},d.prototype.promise=function(){return this._promise},d.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},d.prototype._continue=function(e){var n=this._promise;if(e===u)return this._cleanup(),this._cancellationPhase?n.cancel():n._rejectCallback(e.e,!1);var r=e.value;if(!0===e.done)return this._cleanup(),this._cancellationPhase?n.cancel():n._resolveCallback(r);var o=i(r,this._promise);if(o instanceof t||null!==(o=function(e,n,r){for(var o=0;o<n.length;++o){r._pushContext();var a=c(n[o])(e);if(r._popContext(),a===u){r._pushContext();var s=t.reject(u.e);return r._popContext(),s}var l=i(a,r);if(l instanceof t)return l}return null}(o,this._yieldHandlers,this._promise))){var a=(o=o._target())._bitField;0==(50397184&a)?(this._yieldedPromise=o,o._proxy(this,null)):0!=(33554432&a)?t._async.invoke(this._promiseFulfilled,this,o._value()):0!=(16777216&a)?t._async.invoke(this._promiseRejected,this,o._reason()):this._promiseCancelled()}else this._promiseRejected(new s("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",String(r))+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")))},t.coroutine=function(e,t){if("function"!=typeof e)throw new s("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var n=Object(t).yieldHandler,r=d,i=(new Error).stack;return function(){var t=e.apply(this,arguments),o=new r(void 0,void 0,n,i),a=o.promise();return o._generator=t,o._promiseFulfilled(void 0),a}},t.coroutine.addYieldHandler=function(e){if("function"!=typeof e)throw new s("expecting a function but got "+l.classString(e));f.push(e)},t.spawn=function(e){if(a.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof e)return n("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var r=new d(e,this),i=r.promise();return r._run(t.spawn),i}}},{"./errors":12,"./util":36}],17:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s=e("./util");s.canEvaluate,s.tryCatch,s.errorObj,t.join=function(){var e,t=arguments.length-1;t>0&&"function"==typeof arguments[t]&&(e=arguments[t]);var r=[].slice.call(arguments);e&&r.pop();var i=new n(r).promise();return void 0!==e?i.spread(e):i}}},{"./util":36}],18:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s=t._getDomain,l=e("./util"),u=l.tryCatch,c=l.errorObj,f=t._async;function d(e,t,n,r){this.constructor$(e),this._promise._captureStackTrace();var i=s();this._callback=null===i?t:l.domainBind(i,t),this._preservedValues=r===o?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=[],f.invoke(this._asyncInit,this,void 0)}function h(e,n,i,o){if("function"!=typeof n)return r("expecting a function but got "+l.classString(n));var a=0;if(void 0!==i){if("object"!=typeof i||null===i)return t.reject(new TypeError("options argument must be an object but it is "+l.classString(i)));if("number"!=typeof i.concurrency)return t.reject(new TypeError("'concurrency' must be a number but it is "+l.classString(i.concurrency)));a=i.concurrency}return new d(e,n,a="number"==typeof a&&isFinite(a)&&a>=1?a:0,o).promise()}l.inherits(d,n),d.prototype._asyncInit=function(){this._init$(void 0,-2)},d.prototype._init=function(){},d.prototype._promiseFulfilled=function(e,n){var r=this._values,o=this.length(),s=this._preservedValues,l=this._limit;if(n<0){if(r[n=-1*n-1]=e,l>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(l>=1&&this._inFlight>=l)return r[n]=e,this._queue.push(n),!1;null!==s&&(s[n]=e);var f=this._promise,d=this._callback,h=f._boundValue();f._pushContext();var p=u(d).call(h,e,n,o),v=f._popContext();if(a.checkForgottenReturns(p,v,null!==s?"Promise.filter":"Promise.map",f),p===c)return this._reject(p.e),!0;var m=i(p,this._promise);if(m instanceof t){var g=(m=m._target())._bitField;if(0==(50397184&g))return l>=1&&this._inFlight++,r[n]=m,m._proxy(this,-1*(n+1)),!1;if(0==(33554432&g))return 0!=(16777216&g)?(this._reject(m._reason()),!0):(this._cancel(),!0);p=m._value()}r[n]=p}return++this._totalResolved>=o&&(null!==s?this._filter(r,s):this._resolve(r),!0)},d.prototype._drainQueue=function(){for(var e=this._queue,t=this._limit,n=this._values;e.length>0&&this._inFlight<t;){if(this._isResolved())return;var r=e.pop();this._promiseFulfilled(n[r],r)}},d.prototype._filter=function(e,t){for(var n=t.length,r=new Array(n),i=0,o=0;o<n;++o)e[o]&&(r[i++]=t[o]);r.length=i,this._resolve(r)},d.prototype.preservedValues=function(){return this._preservedValues},t.prototype.map=function(e,t){return h(this,e,t,null)},t.map=function(e,t,n,r){return h(e,t,n,r)}}},{"./util":36}],19:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o){var a=e("./util"),s=a.tryCatch;t.method=function(e){if("function"!=typeof e)throw new t.TypeError("expecting a function but got "+a.classString(e));return function(){var r=new t(n);r._captureStackTrace(),r._pushContext();var i=s(e).apply(this,arguments),a=r._popContext();return o.checkForgottenReturns(i,a,"Promise.method",r),r._resolveFromSyncValue(i),r}},t.attempt=t.try=function(e){if("function"!=typeof e)return i("expecting a function but got "+a.classString(e));var r,l=new t(n);if(l._captureStackTrace(),l._pushContext(),arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1],c=arguments[2];r=a.isArray(u)?s(e).apply(c,u):s(e).call(c,u)}else r=s(e)();var f=l._popContext();return o.checkForgottenReturns(r,f,"Promise.try",l),l._resolveFromSyncValue(r),l},t.prototype._resolveFromSyncValue=function(e){e===a.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},{"./util":36}],20:[function(e,t,n){"use strict";var r=e("./util"),i=r.maybeWrapAsError,o=e("./errors").OperationalError,a=e("./es5"),s=/^(?:name|message|stack|cause)$/;function l(e){var t;if(function(e){return e instanceof Error&&a.getPrototypeOf(e)===Error.prototype}(e)){(t=new o(e)).name=e.name,t.message=e.message,t.stack=e.stack;for(var n=a.keys(e),i=0;i<n.length;++i){var l=n[i];s.test(l)||(t[l]=e[l])}return t}return r.markAsOriginatingFromRejection(e),e}t.exports=function(e,t){return function(n,r){if(null!==e){if(n){var o=l(i(n));e._attachExtraTrace(o),e._reject(o)}else if(t){var a=[].slice.call(arguments,1);e._fulfill(a)}else e._fulfill(r);e=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(e,t,n){"use strict";t.exports=function(t){var n=e("./util"),r=t._async,i=n.tryCatch,o=n.errorObj;function a(e,t){if(!n.isArray(e))return s.call(this,e,t);var a=i(t).apply(this._boundValue(),[null].concat(e));a===o&&r.throwLater(a.e)}function s(e,t){var n=this._boundValue(),a=void 0===e?i(t).call(n,null):i(t).call(n,null,e);a===o&&r.throwLater(a.e)}function l(e,t){if(!e){var n=new Error(e+"");n.cause=e,e=n}var a=i(t).call(this._boundValue(),e);a===o&&r.throwLater(a.e)}t.prototype.asCallback=t.prototype.nodeify=function(e,t){if("function"==typeof e){var n=s;void 0!==t&&Object(t).spread&&(n=a),this._then(n,l,void 0,this,e)}return this}}},{"./util":36}],22:[function(e,n,r){"use strict";n.exports=function(){var r=function(){return new p("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},i=function(){return new O.PromiseInspection(this._target())},o=function(e){return O.reject(new p(e))};function a(){}var s,l={},u=e("./util");s=u.isNode?function(){var e=t.domain;return void 0===e&&(e=null),e}:function(){return null},u.notEnumerableProp(O,"_getDomain",s);var c=e("./es5"),f=e("./async"),d=new f;c.defineProperty(O,"_async",{value:d});var h=e("./errors"),p=O.TypeError=h.TypeError;O.RangeError=h.RangeError;var v=O.CancellationError=h.CancellationError;O.TimeoutError=h.TimeoutError,O.OperationalError=h.OperationalError,O.RejectionError=h.OperationalError,O.AggregateError=h.AggregateError;var m=function(){},g={},y={},b=e("./thenables")(O,m),_=e("./promise_array")(O,m,b,o,a),x=e("./context")(O),w=x.create,k=e("./debuggability")(O,x),C=(k.CapturedTrace,e("./finally")(O,b,y)),S=e("./catch_filter")(y),E=e("./nodeback"),T=u.errorObj,M=u.tryCatch;function O(e){e!==m&&function(e,t){if(null==e||e.constructor!==O)throw new p("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n");if("function"!=typeof t)throw new p("expecting a function but got "+u.classString(t))}(this,e),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(e),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function j(e){this.promise._resolveCallback(e)}function P(e){this.promise._rejectCallback(e,!1)}function N(e){var t=new O(m);t._fulfillmentHandler0=e,t._rejectionHandler0=e,t._promise0=e,t._receiver0=e}return O.prototype.toString=function(){return"[object Promise]"},O.prototype.caught=O.prototype.catch=function(e){var t=arguments.length;if(t>1){var n,r=new Array(t-1),i=0;for(n=0;n<t-1;++n){var a=arguments[n];if(!u.isObject(a))return o("Catch statement predicate: expecting an object but got "+u.classString(a));r[i++]=a}return r.length=i,e=arguments[n],this.then(void 0,S(r,e,this))}return this.then(void 0,e)},O.prototype.reflect=function(){return this._then(i,i,void 0,this,void 0)},O.prototype.then=function(e,t){if(k.warnings()&&arguments.length>0&&"function"!=typeof e&&"function"!=typeof t){var n=".then() only accepts functions but was passed: "+u.classString(e);arguments.length>1&&(n+=", "+u.classString(t)),this._warn(n)}return this._then(e,t,void 0,void 0,void 0)},O.prototype.done=function(e,t){this._then(e,t,void 0,void 0,void 0)._setIsFinal()},O.prototype.spread=function(e){return"function"!=typeof e?o("expecting a function but got "+u.classString(e)):this.all()._then(e,void 0,void 0,g,void 0)},O.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},O.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new _(this).promise()},O.prototype.error=function(e){return this.caught(u.originatesFromRejection,e)},O.getNewLibraryCopy=n.exports,O.is=function(e){return e instanceof O},O.fromNode=O.fromCallback=function(e){var t=new O(m);t._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=M(e)(E(t,n));return r===T&&t._rejectCallback(r.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},O.all=function(e){return new _(e).promise()},O.cast=function(e){var t=b(e);return t instanceof O||((t=new O(m))._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},O.resolve=O.fulfilled=O.cast,O.reject=O.rejected=function(e){var t=new O(m);return t._captureStackTrace(),t._rejectCallback(e,!0),t},O.setScheduler=function(e){if("function"!=typeof e)throw new p("expecting a function but got "+u.classString(e));return d.setScheduler(e)},O.prototype._then=function(e,t,n,r,i){var o=void 0!==i,a=o?i:new O(m),l=this._target(),c=l._bitField;o||(a._propagateFrom(this,3),a._captureStackTrace(),void 0===r&&0!=(2097152&this._bitField)&&(r=0!=(50397184&c)?this._boundValue():l===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,a));var f=s();if(0!=(50397184&c)){var h,p,g=l._settlePromiseCtx;0!=(33554432&c)?(p=l._rejectionHandler0,h=e):0!=(16777216&c)?(p=l._fulfillmentHandler0,h=t,l._unsetRejectionIsUnhandled()):(g=l._settlePromiseLateCancellationObserver,p=new v("late cancellation observer"),l._attachExtraTrace(p),h=t),d.invoke(g,l,{handler:null===f?h:"function"==typeof h&&u.domainBind(f,h),promise:a,receiver:r,value:p})}else l._addCallbacks(e,t,a,r,f);return a},O.prototype._length=function(){return 65535&this._bitField},O.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},O.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},O.prototype._setLength=function(e){this._bitField=-65536&this._bitField|65535&e},O.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},O.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},O.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},O.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},O.prototype._isFinal=function(){return(4194304&this._bitField)>0},O.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},O.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},O.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},O.prototype._setAsyncGuaranteed=function(){d.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},O.prototype._receiverAt=function(e){var t=0===e?this._receiver0:this[4*e-4+3];if(t!==l)return void 0===t&&this._isBound()?this._boundValue():t},O.prototype._promiseAt=function(e){return this[4*e-4+2]},O.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},O.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},O.prototype._boundValue=function(){},O.prototype._migrateCallback0=function(e){e._bitField;var t=e._fulfillmentHandler0,n=e._rejectionHandler0,r=e._promise0,i=e._receiverAt(0);void 0===i&&(i=l),this._addCallbacks(t,n,r,i,null)},O.prototype._migrateCallbackAt=function(e,t){var n=e._fulfillmentHandlerAt(t),r=e._rejectionHandlerAt(t),i=e._promiseAt(t),o=e._receiverAt(t);void 0===o&&(o=l),this._addCallbacks(n,r,i,o,null)},O.prototype._addCallbacks=function(e,t,n,r,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=r,"function"==typeof e&&(this._fulfillmentHandler0=null===i?e:u.domainBind(i,e)),"function"==typeof t&&(this._rejectionHandler0=null===i?t:u.domainBind(i,t));else{var a=4*o-4;this[a+2]=n,this[a+3]=r,"function"==typeof e&&(this[a+0]=null===i?e:u.domainBind(i,e)),"function"==typeof t&&(this[a+1]=null===i?t:u.domainBind(i,t))}return this._setLength(o+1),o},O.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},O.prototype._resolveCallback=function(e,t){if(0==(117506048&this._bitField)){if(e===this)return this._rejectCallback(r(),!1);var n=b(e,this);if(!(n instanceof O))return this._fulfill(e);t&&this._propagateFrom(n,2);var i=n._target();if(i!==this){var o=i._bitField;if(0==(50397184&o)){var a=this._length();a>0&&i._migrateCallback0(this);for(var s=1;s<a;++s)i._migrateCallbackAt(this,s);this._setFollowing(),this._setLength(0),this._setFollowee(i)}else if(0!=(33554432&o))this._fulfill(i._value());else if(0!=(16777216&o))this._reject(i._reason());else{var l=new v("late cancellation observer");i._attachExtraTrace(l),this._reject(l)}}else this._reject(r())}},O.prototype._rejectCallback=function(e,t,n){var r=u.ensureErrorObject(e),i=r===e;if(!i&&!n&&k.warnings()){var o="a promise was rejected with a non-error: "+u.classString(e);this._warn(o,!0)}this._attachExtraTrace(r,!!t&&i),this._reject(e)},O.prototype._resolveFromExecutor=function(e){if(e!==m){var t=this;this._captureStackTrace(),this._pushContext();var n=!0,r=this._execute(e,(function(e){t._resolveCallback(e)}),(function(e){t._rejectCallback(e,n)}));n=!1,this._popContext(),void 0!==r&&t._rejectCallback(r,!0)}},O.prototype._settlePromiseFromHandler=function(e,t,n,r){var i=r._bitField;if(0==(65536&i)){var o;r._pushContext(),t===g?n&&"number"==typeof n.length?o=M(e).apply(this._boundValue(),n):(o=T).e=new p("cannot .spread() a non-array: "+u.classString(n)):o=M(e).call(t,n);var a=r._popContext();0==(65536&(i=r._bitField))&&(o===y?r._reject(n):o===T?r._rejectCallback(o.e,!1):(k.checkForgottenReturns(o,a,"",r,this),r._resolveCallback(o)))}},O.prototype._target=function(){for(var e=this;e._isFollowing();)e=e._followee();return e},O.prototype._followee=function(){return this._rejectionHandler0},O.prototype._setFollowee=function(e){this._rejectionHandler0=e},O.prototype._settlePromise=function(e,t,n,r){var o=e instanceof O,s=this._bitField,l=0!=(134217728&s);0!=(65536&s)?(o&&e._invokeInternalOnCancel(),n instanceof C&&n.isFinallyHandler()?(n.cancelPromise=e,M(t).call(n,r)===T&&e._reject(T.e)):t===i?e._fulfill(i.call(n)):n instanceof a?n._promiseCancelled(e):o||e instanceof _?e._cancel():n.cancel()):"function"==typeof t?o?(l&&e._setAsyncGuaranteed(),this._settlePromiseFromHandler(t,n,r,e)):t.call(n,r,e):n instanceof a?n._isResolved()||(0!=(33554432&s)?n._promiseFulfilled(r,e):n._promiseRejected(r,e)):o&&(l&&e._setAsyncGuaranteed(),0!=(33554432&s)?e._fulfill(r):e._reject(r))},O.prototype._settlePromiseLateCancellationObserver=function(e){var t=e.handler,n=e.promise,r=e.receiver,i=e.value;"function"==typeof t?n instanceof O?this._settlePromiseFromHandler(t,r,i,n):t.call(r,i,n):n instanceof O&&n._reject(i)},O.prototype._settlePromiseCtx=function(e){this._settlePromise(e.promise,e.handler,e.receiver,e.value)},O.prototype._settlePromise0=function(e,t,n){var r=this._promise0,i=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(r,e,i,t)},O.prototype._clearCallbackDataAtIndex=function(e){var t=4*e-4;this[t+2]=this[t+3]=this[t+0]=this[t+1]=void 0},O.prototype._fulfill=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(e===this){var n=r();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=e,(65535&t)>0&&(0!=(134217728&t)?this._settlePromises():d.settlePromises(this))}},O.prototype._reject=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal())return d.fatalError(e,u.isNode);(65535&t)>0?d.settlePromises(this):this._ensurePossibleRejectionHandled()}},O.prototype._fulfillPromises=function(e,t){for(var n=1;n<e;n++){var r=this._fulfillmentHandlerAt(n),i=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,o,t)}},O.prototype._rejectPromises=function(e,t){for(var n=1;n<e;n++){var r=this._rejectionHandlerAt(n),i=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,o,t)}},O.prototype._settlePromises=function(){var e=this._bitField,t=65535&e;if(t>0){if(0!=(16842752&e)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,e),this._rejectPromises(t,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,e),this._fulfillPromises(t,r)}this._setLength(0)}this._clearCancellationData()},O.prototype._settledValue=function(){var e=this._bitField;return 0!=(33554432&e)?this._rejectionHandler0:0!=(16777216&e)?this._fulfillmentHandler0:void 0},O.defer=O.pending=function(){return k.deprecated("Promise.defer","new Promise"),{promise:new O(m),resolve:j,reject:P}},u.notEnumerableProp(O,"_makeSelfResolutionError",r),e("./method")(O,m,b,o,k),e("./bind")(O,m,b,k),e("./cancel")(O,_,o,k),e("./direct_resolve")(O),e("./synchronous_inspection")(O),e("./join")(O,_,b,m,d,s),O.Promise=O,O.version="3.5.1",e("./map.js")(O,_,o,b,m,k),e("./call_get.js")(O),e("./using.js")(O,o,b,w,m,k),e("./timers.js")(O,m,k),e("./generators.js")(O,o,m,b,a,k),e("./nodeify.js")(O),e("./promisify.js")(O,m),e("./props.js")(O,_,b,o),e("./race.js")(O,m,b,o),e("./reduce.js")(O,_,o,b,m,k),e("./settle.js")(O,_,k),e("./some.js")(O,_,o),e("./filter.js")(O,m),e("./each.js")(O,m),e("./any.js")(O),u.toFastProperties(O),u.toFastProperties(O.prototype),N({a:1}),N({b:2}),N({c:3}),N(1),N((function(){})),N(void 0),N(!1),N(new O(m)),k.setBounds(f.firstLineError,u.lastLineError),O}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o){var a=e("./util");function s(e){var r=this._promise=new t(n);e instanceof t&&r._propagateFrom(e,3),r._setOnCancel(this),this._values=e,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return a.isArray,a.inherits(s,o),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function e(n,o){var s=r(this._values,this._promise);if(s instanceof t){var l=(s=s._target())._bitField;if(this._values=s,0==(50397184&l))return this._promise._setAsyncGuaranteed(),s._then(e,this._reject,void 0,this,o);if(0==(33554432&l))return 0!=(16777216&l)?this._reject(s._reason()):this._cancel();s=s._value()}if(null!==(s=a.asArray(s)))0!==s.length?this._iterate(s):-5===o?this._resolveEmptyArray():this._resolve(function(e){switch(o){case-2:return[];case-3:return{};case-6:return new Map}}());else{var u=i("expecting an array or an iterable object but got "+a.classString(s)).reason();this._promise._rejectCallback(u,!1)}},s.prototype._iterate=function(e){var n=this.getActualLength(e.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var i=this._promise,o=!1,a=null,s=0;s<n;++s){var l=r(e[s],i);a=l instanceof t?(l=l._target())._bitField:null,o?null!==a&&l.suppressUnhandledRejections():null!==a?0==(50397184&a)?(l._proxy(this,s),this._values[s]=l):o=0!=(33554432&a)?this._promiseFulfilled(l._value(),s):0!=(16777216&a)?this._promiseRejected(l._reason(),s):this._promiseCancelled(s):o=this._promiseFulfilled(l,s)}o||i._setAsyncGuaranteed()},s.prototype._isResolved=function(){return null===this._values},s.prototype._resolve=function(e){this._values=null,this._promise._fulfill(e)},s.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},s.prototype._reject=function(e){this._values=null,this._promise._rejectCallback(e,!1)},s.prototype._promiseFulfilled=function(e,t){return this._values[t]=e,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var e=this._values;if(this._cancel(),e instanceof t)e.cancel();else for(var n=0;n<e.length;++n)e[n]instanceof t&&e[n].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(e){return e},s}},{"./util":36}],24:[function(e,t,n){"use strict";t.exports=function(t,n){var r={},i=e("./util"),o=e("./nodeback"),a=i.withAppended,s=i.maybeWrapAsError,l=i.canEvaluate,u=e("./errors").TypeError,c={__isPromisified__:!0},f=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),d=function(e){return i.isIdentifier(e)&&"_"!==e.charAt(0)&&"constructor"!==e};function h(e){return!f.test(e)}function p(e){try{return!0===e.__isPromisified__}catch(e){return!1}}function v(e,t,n){var r=i.getDataPropertyOrDefault(e,t+n,c);return!!r&&p(r)}function m(e,t,n,r){for(var o=i.inheritedDataKeys(e),a=[],s=0;s<o.length;++s){var l=o[s],c=e[l],f=r===d||d(l);"function"!=typeof c||p(c)||v(e,l,t)||!r(l,c,e,f)||a.push(l,c)}return function(e,t,n){for(var r=0;r<e.length;r+=2){var i=e[r];if(n.test(i))for(var o=i.replace(n,""),a=0;a<e.length;a+=2)if(e[a]===o)throw new u("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",t))}}(a,t,n),a}var g=l?void 0:function(e,l,u,c,f,d){var h=function(){return this}(),p=e;function v(){var i=l;l===r&&(i=this);var u=new t(n);u._captureStackTrace();var c="string"==typeof p&&this!==h?this[p]:e,f=o(u,d);try{c.apply(i,a(arguments,f))}catch(e){u._rejectCallback(s(e),!0,!0)}return u._isFateSealed()||u._setAsyncGuaranteed(),u}return"string"==typeof p&&(e=c),i.notEnumerableProp(v,"__isPromisified__",!0),v};function y(e,t,n,o,a){for(var s=new RegExp(function(e){return e.replace(/([$])/,"\\$")}(t)+"$"),l=m(e,t,s,n),u=0,c=l.length;u<c;u+=2){var f=l[u],d=l[u+1],h=f+t;if(o===g)e[h]=g(f,r,f,d,t,a);else{var p=o(d,(function(){return g(f,r,f,d,t,a)}));i.notEnumerableProp(p,"__isPromisified__",!0),e[h]=p}}return i.toFastProperties(e),e}t.promisify=function(e,t){if("function"!=typeof e)throw new u("expecting a function but got "+i.classString(e));if(p(e))return e;var n=void 0===(t=Object(t)).context?r:t.context,o=!!t.multiArgs,a=function(e,t,n){return g(e,t,void 0,e,null,o)}(e,n);return i.copyDescriptors(e,a,h),a},t.promisifyAll=function(e,t){if("function"!=typeof e&&"object"!=typeof e)throw new u("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");var n=!!(t=Object(t)).multiArgs,r=t.suffix;"string"!=typeof r&&(r="Async");var o=t.filter;"function"!=typeof o&&(o=d);var a=t.promisifier;if("function"!=typeof a&&(a=g),!i.isIdentifier(r))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var s=i.inheritedDataKeys(e),l=0;l<s.length;++l){var c=e[s[l]];"constructor"!==s[l]&&i.isClass(c)&&(y(c.prototype,r,o,a,n),y(c,r,o,a,n))}return y(e,r,o,a,n)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(e,t,n){"use strict";t.exports=function(t,n,r,i){var o,a=e("./util"),s=a.isObject,l=e("./es5");"function"==typeof Map&&(o=Map);var u=function(){var e=0,t=0;function n(n,r){this[e]=n,this[e+t]=r,e++}return function(r){t=r.size,e=0;var i=new Array(2*r.size);return r.forEach(n,i),i}}();function c(e){var t,n=!1;if(void 0!==o&&e instanceof o)t=u(e),n=!0;else{var r=l.keys(e),i=r.length;t=new Array(2*i);for(var a=0;a<i;++a){var s=r[a];t[a]=e[s],t[a+i]=s}}this.constructor$(t),this._isMap=n,this._init$(void 0,n?-6:-3)}function f(e){var n,o=r(e);return s(o)?(n=o instanceof t?o._then(t.props,void 0,void 0,void 0,void 0):new c(o).promise(),o instanceof t&&n._propagateFrom(o,2),n):i("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}a.inherits(c,n),c.prototype._init=function(){},c.prototype._promiseFulfilled=function(e,t){if(this._values[t]=e,++this._totalResolved>=this._length){var n;if(this._isMap)n=function(e){for(var t=new o,n=e.length/2|0,r=0;r<n;++r){var i=e[n+r],a=e[r];t.set(i,a)}return t}(this._values);else{n={};for(var r=this.length(),i=0,a=this.length();i<a;++i)n[this._values[i+r]]=this._values[i]}return this._resolve(n),!0}return!1},c.prototype.shouldCopyValues=function(){return!1},c.prototype.getActualLength=function(e){return e>>1},t.prototype.props=function(){return f(this)},t.props=function(e){return f(e)}}},{"./es5":13,"./util":36}],26:[function(e,t,n){"use strict";function r(e){this._capacity=e,this._length=0,this._front=0}r.prototype._willBeOverCapacity=function(e){return this._capacity<e},r.prototype._pushOne=function(e){var t=this.length();this._checkCapacity(t+1),this[this._front+t&this._capacity-1]=e,this._length=t+1},r.prototype.push=function(e,t,n){var r=this.length()+3;if(this._willBeOverCapacity(r))return this._pushOne(e),this._pushOne(t),void this._pushOne(n);var i=this._front+r-3;this._checkCapacity(r);var o=this._capacity-1;this[i+0&o]=e,this[i+1&o]=t,this[i+2&o]=n,this._length=r},r.prototype.shift=function(){var e=this._front,t=this[e];return this[e]=void 0,this._front=e+1&this._capacity-1,this._length--,t},r.prototype.length=function(){return this._length},r.prototype._checkCapacity=function(e){this._capacity<e&&this._resizeTo(this._capacity<<1)},r.prototype._resizeTo=function(e){var t=this._capacity;this._capacity=e,function(e,t,n,r,i){for(var o=0;o<i;++o)n[o+r]=e[o+0],e[o+0]=void 0}(this,0,this,t,this._front+this._length&t-1)},t.exports=r},{}],27:[function(e,t,n){"use strict";t.exports=function(t,n,r,i){var o=e("./util"),a=function(e){return e.then((function(t){return s(t,e)}))};function s(e,s){var l=r(e);if(l instanceof t)return a(l);if(null===(e=o.asArray(e)))return i("expecting an array or an iterable object but got "+o.classString(e));var u=new t(n);void 0!==s&&u._propagateFrom(s,3);for(var c=u._fulfill,f=u._reject,d=0,h=e.length;d<h;++d){var p=e[d];(void 0!==p||d in e)&&t.cast(p)._then(c,f,void 0,u,null)}return u}t.race=function(e){return s(e,void 0)},t.prototype.race=function(){return s(this,void 0)}}},{"./util":36}],28:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s=t._getDomain,l=e("./util"),u=l.tryCatch;function c(e,n,r,i){this.constructor$(e);var a=s();this._fn=null===a?n:l.domainBind(a,n),void 0!==r&&(r=t.resolve(r))._attachCancellationCallback(this),this._initialValue=r,this._currentCancellable=null,this._eachValues=i===o?Array(this._length):0===i?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function f(e,t){this.isFulfilled()?t._resolve(e):t._reject(e)}function d(e,t,n,i){return"function"!=typeof t?r("expecting a function but got "+l.classString(t)):new c(e,t,n,i).promise()}function h(e){this.accum=e,this.array._gotAccum(e);var n=i(this.value,this.array._promise);return n instanceof t?(this.array._currentCancellable=n,n._then(p,void 0,void 0,this,void 0)):p.call(this,n)}function p(e){var n,r=this.array,i=r._promise,o=u(r._fn);i._pushContext(),(n=void 0!==r._eachValues?o.call(i._boundValue(),e,this.index,this.length):o.call(i._boundValue(),this.accum,e,this.index,this.length))instanceof t&&(r._currentCancellable=n);var s=i._popContext();return a.checkForgottenReturns(n,s,void 0!==r._eachValues?"Promise.each":"Promise.reduce",i),n}l.inherits(c,n),c.prototype._gotAccum=function(e){void 0!==this._eachValues&&null!==this._eachValues&&e!==o&&this._eachValues.push(e)},c.prototype._eachComplete=function(e){return null!==this._eachValues&&this._eachValues.push(e),this._eachValues},c.prototype._init=function(){},c.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},c.prototype.shouldCopyValues=function(){return!1},c.prototype._resolve=function(e){this._promise._resolveCallback(e),this._values=null},c.prototype._resultCancelled=function(e){if(e===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof t&&this._currentCancellable.cancel(),this._initialValue instanceof t&&this._initialValue.cancel())},c.prototype._iterate=function(e){var n,r;this._values=e;var i=e.length;if(void 0!==this._initialValue?(n=this._initialValue,r=0):(n=t.resolve(e[0]),r=1),this._currentCancellable=n,!n.isRejected())for(;r<i;++r){var o={accum:null,value:e[r],index:r,length:i,array:this};n=n._then(h,void 0,void 0,o,void 0)}void 0!==this._eachValues&&(n=n._then(this._eachComplete,void 0,void 0,this,void 0)),n._then(f,f,void 0,n,this)},t.prototype.reduce=function(e,t){return d(this,e,t,null)},t.reduce=function(e,t,n,r){return d(e,t,n,r)}}},{"./util":36}],29:[function(e,i,o){"use strict";var a,s=e("./util"),l=s.getNativePromise();if(s.isNode&&"undefined"==typeof MutationObserver){var u=n.setImmediate,c=t.nextTick;a=s.isRecentNode?function(e){u.call(n,e)}:function(e){c.call(t,e)}}else if("function"==typeof l&&"function"==typeof l.resolve){var f=l.resolve();a=function(e){f.then(e)}}else a="undefined"==typeof MutationObserver||"undefined"!=typeof window&&window.navigator&&(window.navigator.standalone||window.cordova)?void 0!==r?function(e){r(e)}:"undefined"!=typeof setTimeout?function(e){setTimeout(e,0)}:function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}:function(){var e=document.createElement("div"),t={attributes:!0},n=!1,r=document.createElement("div");return new MutationObserver((function(){e.classList.toggle("foo"),n=!1})).observe(r,t),function(i){var o=new MutationObserver((function(){o.disconnect(),i()}));o.observe(e,t),n||(n=!0,r.classList.toggle("foo"))}}();i.exports=a},{"./util":36}],30:[function(e,t,n){"use strict";t.exports=function(t,n,r){var i=t.PromiseInspection;function o(e){this.constructor$(e)}e("./util").inherits(o,n),o.prototype._promiseResolved=function(e,t){return this._values[e]=t,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},o.prototype._promiseFulfilled=function(e,t){var n=new i;return n._bitField=33554432,n._settledValueField=e,this._promiseResolved(t,n)},o.prototype._promiseRejected=function(e,t){var n=new i;return n._bitField=16777216,n._settledValueField=e,this._promiseResolved(t,n)},t.settle=function(e){return r.deprecated(".settle()",".reflect()"),new o(e).promise()},t.prototype.settle=function(){return t.settle(this)}}},{"./util":36}],31:[function(e,t,n){"use strict";t.exports=function(t,n,r){var i=e("./util"),o=e("./errors").RangeError,a=e("./errors").AggregateError,s=i.isArray,l={};function u(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function c(e,t){if((0|t)!==t||t<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new u(e),i=n.promise();return n.setHowMany(t),n.init(),i}i.inherits(u,n),u.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var e=s(this._values);!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},u.prototype.init=function(){this._initialized=!0,this._init()},u.prototype.setUnwrap=function(){this._unwrap=!0},u.prototype.howMany=function(){return this._howMany},u.prototype.setHowMany=function(e){this._howMany=e},u.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},u.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},u.prototype._promiseCancelled=function(){return this._values instanceof t||null==this._values?this._cancel():(this._addRejected(l),this._checkOutcome())},u.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new a,t=this.length();t<this._values.length;++t)this._values[t]!==l&&e.push(this._values[t]);return e.length>0?this._reject(e):this._cancel(),!0}return!1},u.prototype._fulfilled=function(){return this._totalResolved},u.prototype._rejected=function(){return this._values.length-this.length()},u.prototype._addRejected=function(e){this._values.push(e)},u.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},u.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},u.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new o(t)},u.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},t.some=function(e,t){return c(e,t)},t.prototype.some=function(e){return c(this,e)},t._SomePromiseArray=u}},{"./errors":12,"./util":36}],32:[function(e,t,n){"use strict";t.exports=function(e){function t(e){void 0!==e?(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=t.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},o=t.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},a=t.prototype.isPending=function(){return 0==(50397184&this._bitField)},s=t.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};t.prototype.isCancelled=function(){return 0!=(8454144&this._bitField)},e.prototype.__isCancelled=function(){return 65536==(65536&this._bitField)},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return 0!=(8454144&this._target()._bitField)},e.prototype.isPending=function(){return a.call(this._target())},e.prototype.isRejected=function(){return o.call(this._target())},e.prototype.isFulfilled=function(){return i.call(this._target())},e.prototype.isResolved=function(){return s.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),r.call(e)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}},{}],33:[function(e,t,n){"use strict";t.exports=function(t,n){var r=e("./util"),i=r.errorObj,o=r.isObject,a={}.hasOwnProperty;return function(e,s){if(o(e)){if(e instanceof t)return e;var l=function(e){try{return function(e){return e.then}(e)}catch(e){return i.e=e,i}}(e);if(l===i){s&&s._pushContext();var u=t.reject(l.e);return s&&s._popContext(),u}if("function"==typeof l)return function(e){try{return a.call(e,"_promise0")}catch(e){return!1}}(e)?(u=new t(n),e._then(u._fulfill,u._reject,void 0,u,null),u):function(e,o,a){var s=new t(n),l=s;a&&a._pushContext(),s._captureStackTrace(),a&&a._popContext();var u=!0,c=r.tryCatch(o).call(e,(function(e){s&&(s._resolveCallback(e),s=null)}),(function(e){s&&(s._rejectCallback(e,u,!0),s=null)}));return u=!1,s&&c===i&&(s._rejectCallback(c.e,!0,!0),s=null),l}(e,l,s)}return e}}},{"./util":36}],34:[function(e,t,n){"use strict";t.exports=function(t,n,r){var i=e("./util"),o=t.TimeoutError;function a(e){this.handle=e}a.prototype._resultCancelled=function(){clearTimeout(this.handle)};var s=function(e){return l(+this).thenReturn(e)},l=t.delay=function(e,i){var o,l;return void 0!==i?(o=t.resolve(i)._then(s,null,null,e,void 0),r.cancellation()&&i instanceof t&&o._setOnCancel(i)):(o=new t(n),l=setTimeout((function(){o._fulfill()}),+e),r.cancellation()&&o._setOnCancel(new a(l)),o._captureStackTrace()),o._setAsyncGuaranteed(),o};function u(e){return clearTimeout(this.handle),e}function c(e){throw clearTimeout(this.handle),e}t.prototype.delay=function(e){return l(e,this)},t.prototype.timeout=function(e,t){var n,s;e=+e;var l=new a(setTimeout((function(){n.isPending()&&function(e,t,n){var r;r="string"!=typeof t?t instanceof Error?t:new o("operation timed out"):new o(t),i.markAsOriginatingFromRejection(r),e._attachExtraTrace(r),e._reject(r),null!=n&&n.cancel()}(n,t,s)}),e));return r.cancellation()?(s=this.then(),(n=s._then(u,c,void 0,l,void 0))._setOnCancel(l)):n=this._then(u,c,void 0,l,void 0),n}}},{"./util":36}],35:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s=e("./util"),l=e("./errors").TypeError,u=e("./util").inherits,c=s.errorObj,f=s.tryCatch,d={};function h(e){setTimeout((function(){throw e}),0)}function p(e,n){var i=0,a=e.length,s=new t(o);return function o(){if(i>=a)return s._fulfill();var l=function(e){var t=r(e);return t!==e&&"function"==typeof e._isDisposable&&"function"==typeof e._getDisposer&&e._isDisposable()&&t._setDisposable(e._getDisposer()),t}(e[i++]);if(l instanceof t&&l._isDisposable()){try{l=r(l._getDisposer().tryDispose(n),e.promise)}catch(e){return h(e)}if(l instanceof t)return l._then(o,h,null,null,null)}o()}(),s}function v(e,t,n){this._data=e,this._promise=t,this._context=n}function m(e,t,n){this.constructor$(e,t,n)}function g(e){return v.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function y(e){this.length=e,this.promise=null,this[e-1]=null}v.prototype.data=function(){return this._data},v.prototype.promise=function(){return this._promise},v.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():d},v.prototype.tryDispose=function(e){var t=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=t!==d?this.doDispose(t,e):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},v.isDisposer=function(e){return null!=e&&"function"==typeof e.resource&&"function"==typeof e.tryDispose},u(m,v),m.prototype.doDispose=function(e,t){return this.data().call(e,e,t)},y.prototype._resultCancelled=function(){for(var e=this.length,n=0;n<e;++n){var r=this[n];r instanceof t&&r.cancel()}},t.using=function(){var e=arguments.length;if(e<2)return n("you must pass at least 2 arguments to Promise.using");var i,o=arguments[e-1];if("function"!=typeof o)return n("expecting a function but got "+s.classString(o));var l=!0;2===e&&Array.isArray(arguments[0])?(e=(i=arguments[0]).length,l=!1):(i=arguments,e--);for(var u=new y(e),d=0;d<e;++d){var h=i[d];if(v.isDisposer(h)){var m=h;(h=h.promise())._setDisposable(m)}else{var b=r(h);b instanceof t&&(h=b._then(g,null,null,{resources:u,index:d},void 0))}u[d]=h}var _=new Array(u.length);for(d=0;d<_.length;++d)_[d]=t.resolve(u[d]).reflect();var x=t.all(_).then((function(e){for(var t=0;t<e.length;++t){var n=e[t];if(n.isRejected())return c.e=n.error(),c;if(!n.isFulfilled())return void x.cancel();e[t]=n.value()}w._pushContext(),o=f(o);var r=l?o.apply(void 0,e):o(e),i=w._popContext();return a.checkForgottenReturns(r,i,"Promise.using",w),r})),w=x.lastly((function(){var e=new t.PromiseInspection(x);return p(u,e)}));return u.promise=w,w._setOnCancel(u),w},t.prototype._setDisposable=function(e){this._bitField=131072|this._bitField,this._disposer=e},t.prototype._isDisposable=function(){return(131072&this._bitField)>0},t.prototype._getDisposer=function(){return this._disposer},t.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},t.prototype.disposer=function(e){if("function"==typeof e)return new m(e,this,i());throw new l}}},{"./errors":12,"./util":36}],36:[function(e,r,i){"use strict";var o,a=e("./es5"),s="undefined"==typeof navigator,l={e:{}},u="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:void 0!==this?this:null;function c(){try{var e=o;return o=null,e.apply(this,arguments)}catch(e){return l.e=e,l}}function f(e){return null==e||!0===e||!1===e||"string"==typeof e||"number"==typeof e}function d(e,t,n){if(f(e))return e;var r={value:n,configurable:!0,enumerable:!1,writable:!0};return a.defineProperty(e,t,r),e}var h=function(){var e=[Array.prototype,Object.prototype,Function.prototype],t=function(t){for(var n=0;n<e.length;++n)if(e[n]===t)return!0;return!1};if(a.isES5){var n=Object.getOwnPropertyNames;return function(e){for(var r=[],i=Object.create(null);null!=e&&!t(e);){var o;try{o=n(e)}catch(e){return r}for(var s=0;s<o.length;++s){var l=o[s];if(!i[l]){i[l]=!0;var u=Object.getOwnPropertyDescriptor(e,l);null!=u&&null==u.get&&null==u.set&&r.push(l)}}e=a.getPrototypeOf(e)}return r}}var r={}.hasOwnProperty;return function(n){if(t(n))return[];var i=[];e:for(var o in n)if(r.call(n,o))i.push(o);else{for(var a=0;a<e.length;++a)if(r.call(e[a],o))continue e;i.push(o)}return i}}(),p=/this\s*\.\s*\S+\s*=/,v=/^[a-z$_][a-z$_0-9]*$/i;function m(e){try{return e+""}catch(e){return"[no string representation]"}}function g(e){return e instanceof Error||null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name}function y(e){return g(e)&&a.propertyIsWritable(e,"stack")}var b="stack"in new Error?function(e){return y(e)?e:new Error(m(e))}:function(e){if(y(e))return e;try{throw new Error(m(e))}catch(e){return e}};function _(e){return{}.toString.call(e)}var x=function(e){return a.isArray(e)?e:null};if("undefined"!=typeof Symbol&&Symbol.iterator){var w="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){for(var t,n=[],r=e[Symbol.iterator]();!(t=r.next()).done;)n.push(t.value);return n};x=function(e){return a.isArray(e)?e:null!=e&&"function"==typeof e[Symbol.iterator]?w(e):null}}var k=void 0!==t&&"[object process]"===_(t).toLowerCase(),C=void 0!==t&&void 0!==t.env,S={isClass:function(e){try{if("function"==typeof e){var t=a.names(e.prototype),n=a.isES5&&t.length>1,r=t.length>0&&!(1===t.length&&"constructor"===t[0]),i=p.test(e+"")&&a.names(e).length>0;if(n||r||i)return!0}return!1}catch(e){return!1}},isIdentifier:function(e){return v.test(e)},inheritedDataKeys:h,getDataPropertyOrDefault:function(e,t,n){if(!a.isES5)return{}.hasOwnProperty.call(e,t)?e[t]:void 0;var r=Object.getOwnPropertyDescriptor(e,t);return null!=r?null==r.get&&null==r.set?r.value:n:void 0},thrower:function(e){throw e},isArray:a.isArray,asArray:x,notEnumerableProp:d,isPrimitive:f,isObject:function(e){return"function"==typeof e||"object"==typeof e&&null!==e},isError:g,canEvaluate:s,errorObj:l,tryCatch:function(e){return o=e,c},inherits:function(e,t){var n={}.hasOwnProperty;function r(){for(var r in this.constructor=e,this.constructor$=t,t.prototype)n.call(t.prototype,r)&&"$"!==r.charAt(r.length-1)&&(this[r+"$"]=t.prototype[r])}return r.prototype=t.prototype,e.prototype=new r,e.prototype},withAppended:function(e,t){var n,r=e.length,i=new Array(r+1);for(n=0;n<r;++n)i[n]=e[n];return i[n]=t,i},maybeWrapAsError:function(e){return f(e)?new Error(m(e)):e},toFastProperties:function(e){function t(){}t.prototype=e;for(var n=8;n--;)new t;return e},filledRange:function(e,t,n){for(var r=new Array(e),i=0;i<e;++i)r[i]=t+i+n;return r},toString:m,canAttachTrace:y,ensureErrorObject:b,originatesFromRejection:function(e){return null!=e&&(e instanceof Error.__BluebirdErrorTypes__.OperationalError||!0===e.isOperational)},markAsOriginatingFromRejection:function(e){try{d(e,"isOperational",!0)}catch(e){}},classString:_,copyDescriptors:function(e,t,n){for(var r=a.names(e),i=0;i<r.length;++i){var o=r[i];if(n(o))try{a.defineProperty(t,o,a.getDescriptor(e,o))}catch(e){}}},hasDevTools:"undefined"!=typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:k,hasEnvVariables:C,env:function(e){return C?t.env[e]:void 0},global:u,getNativePromise:function(){if("function"==typeof Promise)try{var e=new Promise((function(){}));if("[object Promise]"==={}.toString.call(e))return Promise}catch(e){}},domainBind:function(e,t){return e.bind(t)}};S.isRecentNode=S.isNode&&function(){var e=t.versions.node.split(".").map(Number);return 0===e[0]&&e[1]>10||e[0]>0}(),S.isNode&&S.toFastProperties(t);try{throw new Error}catch(e){S.lastLineError=e}r.exports=S},{"./es5":13}]},{},[4])(4),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise)}).call(this,n(4),n(0),n(11).setImmediate)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!t.eol&&e)for(var n=0,r=e.length;n<r;n++)if("\r"===e[n]){if("\n"===e[n+1]){t.eol="\r\n";break}if(e[n+1]){t.eol="\r";break}}else if("\n"===e[n]){t.eol="\n";break}return t.eol||"\n"}},function(e,t,n){var r=n(65),i=n(73);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(19).Symbol;e.exports=r},function(e,t,n){var r=n(67),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(30),i=n(76);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},function(e,t,n){"use strict";(function(t,r){var i=n(6);e.exports=b;var o,a=n(37);b.ReadableState=y,n(12).EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n(24),u=n(7).Buffer,c=t.Uint8Array||function(){},f=n(5);f.inherits=n(2);var d=n(41),h=void 0;h=d&&d.debuglog?d.debuglog("stream"):function(){};var p,v=n(42),m=n(25);f.inherits(b,l);var g=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var r=t instanceof(o=o||n(1));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=n(26).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function b(e){if(o=o||n(1),!(this instanceof b))return new b(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function _(e,t,n,r,i){var o,a=e._readableState;return null===t?(a.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,C(e)}}(e,a)):(i||(o=function(e,t){var n;return function(e){return u.isBuffer(e)||e instanceof c}(t)||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):x(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?x(e,a,t,!1):E(e,a)):x(e,a,t,!1))):r||(a.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function x(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&C(e)),E(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=u.from(e,t),t=""),n=!0),_(this,e,t,!1,n)},b.prototype.unshift=function(e){return _(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return p||(p=n(26).StringDecoder),this._readableState.decoder=new p(e),this._readableState.encoding=e,this};var w=8388608;function k(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=w?e=w:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(S,e):S(e))}function S(e){h("emit readable"),e.emit("readable"),j(e)}function E(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(T,e,t))}function T(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function M(e){h("readable nexttick read 0"),e.read(0)}function O(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),j(e),t.flowing&&!t.reading&&e.read(0)}function j(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function P(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0==(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=u.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0==(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function N(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(D,t,e))}function D(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function L(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}b.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?N(this):C(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&N(this),null;var r,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",i=!0),t.ended||t.reading?h("reading or ended",i=!1):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(n,t))),null===(r=e>0?P(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&N(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,h("pipe count=%d opts=%j",o.pipesCount,t);var l=t&&!1===t.end||e===r.stdout||e===r.stderr?y:u;function u(){h("onend"),e.end()}o.endEmitted?i.nextTick(l):n.once("end",l),e.on("unpipe",(function t(r,i){h("onunpipe"),r===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,h("cleanup"),e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",c),e.removeListener("error",v),e.removeListener("unpipe",t),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",p),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}));var c=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,j(e))}}(n);e.on("drain",c);var f=!1,d=!1;function p(t){h("ondata"),d=!1,!1!==e.write(t)||d||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==L(o.pipes,e))&&!f&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,d=!0),n.pause())}function v(t){h("onerror",t),y(),e.removeListener("error",v),0===s(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",g),y()}function g(){h("onfinish"),e.removeListener("close",m),y()}function y(){h("unpipe"),n.unpipe(e)}return n.on("data",p),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",v),e.once("close",m),e.once("finish",g),e.emit("pipe",n),o.flowing||(h("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var a=L(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},b.prototype.on=function(e,t){var n=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&C(this):i.nextTick(M,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(O,e,t))}(this,e)),this},b.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){h("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<g.length;o++)e.on(g[o],this.emit.bind(this,g[o]));return this._read=function(t){h("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=P}).call(this,n(0),n(4))},function(e,t,n){e.exports=n(12).EventEmitter},function(e,t,n){"use strict";var r=n(6);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";var r=n(7).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\ufffd":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=a(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=o;var r=n(1),i=n(5);function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),this._transformState={afterTransform:function(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){s(e,t,n)})):s(this,null,null)}function s(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=n(2),i.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.bufFromString=function(t){var n=e.byteLength(t),r=e.allocUnsafe?e.allocUnsafe(n):new e(n);return r.write(t),r},t.emptyBuffer=function(){return e.allocUnsafe?e.allocUnsafe(0):new e(0)},t.filterArray=function(e,t){for(var n=[],r=0;r<e.length;r++)t.indexOf(r)>-1&&n.push(e[r]);return n},t.trimLeft=String.prototype.trimLeft?function(e){return e.trimLeft()}:function(e){return e.replace(/^\s+/,"")},t.trimRight=String.prototype.trimRight?function(e){return e.trimRight()}:function(e){return e.replace(/\s+$/,"")}}).call(this,n(3).Buffer)},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n,r){var i=e.call(this,"Error: "+t+". JSON Line number: "+n+(r?" near: "+r:""))||this;return i.err=t,i.line=n,i.extra=r,i.name="CSV Parse Error",i}return r(t,e),t.column_mismatched=function(e,n){return new t("column_mismatched",e,n)},t.unclosed_quote=function(e,n){return new t("unclosed_quote",e,n)},t.fromJSON=function(e){return new t(e.err,e.line,e.extra)},t.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},t}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),o=n(69),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){e.exports=n(33)},function(e,t,n){"use strict";var r=n(34),i=function(e,t){return new r.Converter(e,t)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){"use strict";(function(e){var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(36),a=n(50),s=n(51),l=i(n(15)),u=n(52),c=n(105),f=function(t){function i(n,r){void 0===r&&(r={});var i=t.call(this,r)||this;return i.options=r,i.params=a.mergeParams(n),i.runtime=s.initParseRuntime(i),i.result=new c.Result(i),i.processor=new u.ProcessorLocal(i),i.once("error",(function(t){e((function(){i.result.processError(t),i.emit("done",t)}))})),i.once("done",(function(){i.processor.destroy()})),i}return r(i,t),i.prototype.preRawData=function(e){return this.runtime.preRawDataHook=e,this},i.prototype.preFileLine=function(e){return this.runtime.preFileLineHook=e,this},i.prototype.subscribe=function(e,t,n){return this.parseRuntime.subscribe={onNext:e,onError:t,onCompleted:n},this},i.prototype.fromFile=function(e,t){var r=this,i=n(!function(){var e=new Error("Cannot find module 'fs'");throw e.code="MODULE_NOT_FOUND",e}());return i.exists(e,(function(n){n?i.createReadStream(e,t).pipe(r):r.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))})),this},i.prototype.fromStream=function(e){return e.pipe(this),this},i.prototype.fromString=function(e){e.toString();var t=new o.Readable,n=0;return t._read=function(t){if(n>=e.length)this.push(null);else{var r=e.substr(n,t);this.push(r),n+=t}},this.fromStream(t)},i.prototype.then=function(e,t){var n=this;return new l.default((function(r,i){n.parseRuntime.then={onfulfilled:function(t){r(e?e(t):t)},onrejected:function(e){t?r(t(e)):i(e)}}}))},Object.defineProperty(i.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),i.prototype._transform=function(e,t,n){var r=this;this.processor.process(e).then((function(e){if(e.length>0)return r.runtime.started=!0,r.result.processResult(e)})).then((function(){r.emit("drained"),n()}),(function(e){r.runtime.hasError=!0,r.runtime.error=e,r.emit("error",e),n()}))},i.prototype._flush=function(e){var t=this;this.processor.flush().then((function(e){if(e.length>0)return t.result.processResult(e)})).then((function(){t.processEnd(e)}),(function(n){t.emit("error",n),e()}))},i.prototype.processEnd=function(e){this.result.endProcess(),this.emit("done"),e()},Object.defineProperty(i.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),i}(o.Transform);t.Converter=f}).call(this,n(11).setImmediate)},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i=1,o={},a=!1,s=e.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(e);l=l&&l.setTimeout?l:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){c(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&c(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),r=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){c(e.data)},r=function(t){e.port2.postMessage(t)}}():s&&"onreadystatechange"in s.createElement("script")?function(){var e=s.documentElement;r=function(t){var n=s.createElement("script");n.onreadystatechange=function(){c(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():r=function(e){setTimeout(c,0,e)},l.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var a={callback:e,args:t};return o[i]=a,r(i),i++},l.clearImmediate=u}function u(e){delete o[e]}function c(e){if(a)setTimeout(c,0,e);else{var t=o[e];if(t){a=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(undefined,n)}}(t)}finally{u(e),a=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(0),n(4))},function(e,t,n){e.exports=i;var r=n(12).EventEmitter;function i(){r.call(this)}n(2)(i,r),i.Readable=n(13),i.Writable=n(46),i.Duplex=n(47),i.Transform=n(48),i.PassThrough=n(49),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",u),e.on("error",u),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){for(var t,n=u(e),r=n[0],a=n[1],s=new o(3*(r+a)/4-a),l=0,c=a>0?r-4:r,f=0;f<c;f+=4)t=i[e.charCodeAt(f)]<<18|i[e.charCodeAt(f+1)]<<12|i[e.charCodeAt(f+2)]<<6|i[e.charCodeAt(f+3)],s[l++]=t>>16&255,s[l++]=t>>8&255,s[l++]=255&t;return 2===a&&(t=i[e.charCodeAt(f)]<<2|i[e.charCodeAt(f+1)]>>4,s[l++]=255&t),1===a&&(t=i[e.charCodeAt(f)]<<10|i[e.charCodeAt(f+1)]<<4|i[e.charCodeAt(f+2)]>>2,s[l++]=t>>8&255,s[l++]=255&t),s},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(f(e,a,a+16383>s?s:a+16383));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function f(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(c(r));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*v}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){},function(e,t,n){"use strict";var r=n(7).Buffer,i=n(43);function o(e,t,n){e.copy(t,n)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t=r.allocUnsafe(e>>>0),n=this.head,i=0;n;)o(n.data,t,i),i+=n.data.length,n=n.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){"use strict";e.exports=o;var r=n(27),i=n(5);function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){e.exports=n(14)},function(e,t,n){e.exports=n(1)},function(e,t,n){e.exports=n(13).Transform},function(e,t,n){e.exports=n(13).PassThrough},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeParams=function(e){var t={delimiter:",",ignoreColumns:void 0,includeColumns:void 0,quote:'"',trim:!0,checkType:!1,ignoreEmpty:!1,noheader:!1,headers:void 0,flatKeys:!1,maxRowLength:0,checkColumn:!1,escape:'"',colParser:{},eol:void 0,alwaysSplitAtEOL:!1,output:"json",nullObject:!1,downstreamFormat:"line",needEmitAll:!0};for(var n in e||(e={}),e)e.hasOwnProperty(n)&&(Array.isArray(e[n])?t[n]=[].concat(e[n]):t[n]=e[n]);return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(e){var t=e.parseParam,n={needProcessIgnoreColumn:!1,needProcessIncludeColumn:!1,selectedColumns:void 0,ended:!1,hasError:!1,error:void 0,delimiter:e.parseParam.delimiter,eol:e.parseParam.eol,columnConv:[],headerType:[],headerTitle:[],headerFlag:[],headers:void 0,started:!1,parsedLineNumber:0,columnValueSetter:[]};return t.ignoreColumns&&(n.needProcessIgnoreColumn=!0),t.includeColumns&&(n.needProcessIncludeColumn=!0),n}},function(e,t,n){"use strict";(function(e){var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(53),a=i(n(15)),s=n(54),l=i(n(16)),u=n(57),c=n(28),f=n(58),d=i(n(59)),h=i(n(29)),p=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.rowSplit=new f.RowSplit(e.converter),e.eolEmitted=!1,e._needEmitEol=void 0,e.headEmitted=!1,e._needEmitHead=void 0,e}return r(n,t),n.prototype.flush=function(){var e=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var t=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(t,!0).then((function(t){return e.runtime.csvLineBuffer&&e.runtime.csvLineBuffer.length>0?a.default.reject(h.default.unclosed_quote(e.runtime.parsedLineNumber,e.runtime.csvLineBuffer.toString())):a.default.resolve(t)}))}return a.default.resolve([])},n.prototype.destroy=function(){return a.default.resolve()},Object.defineProperty(n.prototype,"needEmitEol",{get:function(){return void 0===this._needEmitEol&&(this._needEmitEol=this.converter.listeners("eol").length>0),this._needEmitEol},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"needEmitHead",{get:function(){return void 0===this._needEmitHead&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),n.prototype.process=function(e,t){var n,r=this;return void 0===t&&(t=!1),n=t?e.toString():s.prepareData(e,this.converter.parseRuntime),a.default.resolve().then((function(){return r.runtime.preRawDataHook?r.runtime.preRawDataHook(n):n})).then((function(e){return e&&e.length>0?r.processCSV(e,t):a.default.resolve([])}))},n.prototype.processCSV=function(e,t){var n=this,r=this.params,i=this.runtime;i.eol||l.default(e,i),this.needEmitEol&&!this.eolEmitted&&i.eol&&(this.converter.emit("eol",i.eol),this.eolEmitted=!0),r.ignoreEmpty&&!i.started&&(e=c.trimLeft(e));var o=u.stringToLines(e,i);return t?(o.lines.push(o.partial),o.partial=""):this.prependLeftBuf(c.bufFromString(o.partial)),o.lines.length>0?(i.preFileLineHook?this.runPreLineHook(o.lines):a.default.resolve(o.lines)).then((function(e){return i.started||n.runtime.headers?n.processCSVBody(e):n.processDataWithHead(e)})):a.default.resolve([])},n.prototype.processDataWithHead=function(e){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var t="",n=[];e.length;){var r=t+e.shift(),i=this.rowSplit.parse(r);if(i.closed){n=i.cells,t="";break}t=r+l.default(r,this.runtime)}if(this.prependLeftBuf(c.bufFromString(t)),0===n.length)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=n}return(this.runtime.needProcessIgnoreColumn||this.runtime.needProcessIncludeColumn)&&this.filterHeader(),this.needEmitHead&&!this.headEmitted&&(this.converter.emit("header",this.runtime.headers),this.headEmitted=!0),this.processCSVBody(e)},n.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var e=this.runtime.headers,t=0;t<e.length;t++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(e[t])){if(!this.params.includeColumns||!this.params.includeColumns.test(e[t]))continue;this.runtime.selectedColumns.push(t)}else this.runtime.selectedColumns.push(t);else this.params.includeColumns?this.params.includeColumns.test(e[t])&&this.runtime.selectedColumns.push(t):this.runtime.selectedColumns.push(t);this.runtime.headers=c.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},n.prototype.processCSVBody=function(e){if("line"===this.params.output)return e;var t=this.rowSplit.parseMultiLines(e);return this.prependLeftBuf(c.bufFromString(t.partial)),"csv"===this.params.output?t.rowsCells:d.default(t.rowsCells,this.converter)},n.prototype.prependLeftBuf=function(t){t&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=e.concat([t,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=t)},n.prototype.runPreLineHook=function(e){var t=this;return new a.default((function(n,r){!function e(t,n,r,i){if(r>=t.length)i();else if(n.preFileLineHook){var o=t[r],a=n.preFileLineHook(o,n.parsedLineNumber+r);if(r++,a&&a.then)a.then((function(o){t[r-1]=o,e(t,n,r,i)}));else{for(t[r-1]=a;r<t.length;)t[r]=n.preFileLineHook(t[r],n.parsedLineNumber+r),r++;i()}}else i()}(e,t.runtime,0,(function(t){t?r(t):n(e)}))}))},n}(o.Processor);t.ProcessorLocal=p}).call(this,n(3).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Processor=function(e){this.converter=e,this.params=e.parseParam,this.runtime=e.parseRuntime}},function(e,t,n){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(55));t.prepareData=function(t,n){var r=function(t,n){return n.csvLineBuffer&&n.csvLineBuffer.length>0?e.concat([n.csvLineBuffer,t]):t}(t,n);n.csvLineBuffer=void 0;var o=function(e,t){var n=e.length-1;if(0!=(128&e[n])){for(;128==(192&e[n]);)n--;n--}return n!=e.length-1?(t.csvLineBuffer=e.slice(n+1),e.slice(0,n+1)):e}(r,n).toString("utf8");return!1===n.started?i.default(o):o}}).call(this,n(3).Buffer)},function(e,t,n){"use strict";(function(t){var r=n(56);e.exports=function(e){return"string"==typeof e&&65279===e.charCodeAt(0)?e.slice(1):t.isBuffer(e)&&r(e)&&239===e[0]&&187===e[1]&&191===e[2]?e.slice(3):e}}).call(this,n(3).Buffer)},function(e,t){e.exports=function(e){for(var t=0;t<e.length;)if(9==e[t]||10==e[t]||13==e[t]||32<=e[t]&&e[t]<=126)t+=1;else if(194<=e[t]&&e[t]<=223&&128<=e[t+1]&&e[t+1]<=191)t+=2;else if(224==e[t]&&160<=e[t+1]&&e[t+1]<=191&&128<=e[t+2]&&e[t+2]<=191||(225<=e[t]&&e[t]<=236||238==e[t]||239==e[t])&&128<=e[t+1]&&e[t+1]<=191&&128<=e[t+2]&&e[t+2]<=191||237==e[t]&&128<=e[t+1]&&e[t+1]<=159&&128<=e[t+2]&&e[t+2]<=191)t+=3;else{if(!(240==e[t]&&144<=e[t+1]&&e[t+1]<=191&&128<=e[t+2]&&e[t+2]<=191&&128<=e[t+3]&&e[t+3]<=191||241<=e[t]&&e[t]<=243&&128<=e[t+1]&&e[t+1]<=191&&128<=e[t+2]&&e[t+2]<=191&&128<=e[t+3]&&e[t+3]<=191||244==e[t]&&128<=e[t+1]&&e[t+1]<=143&&128<=e[t+2]&&e[t+2]<=191&&128<=e[t+3]&&e[t+3]<=191))return!1;t+=4}return!0}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16));t.stringToLines=function(e,t){var n=i.default(e,t),r=e.split(n);return{lines:r,partial:r.pop()||""}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16)),o=n(28),a=[",","|","\t",";",":"],s=function(){function e(e){this.conv=e,this.cachedRegExp={},this.delimiterEmitted=!1,this._needEmitDelimiter=void 0,this.quote=e.parseParam.quote,this.trim=e.parseParam.trim,this.escape=e.parseParam.escape}return Object.defineProperty(e.prototype,"needEmitDelimiter",{get:function(){return void 0===this._needEmitDelimiter&&(this._needEmitDelimiter=this.conv.listeners("delimiter").length>0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),e.prototype.parse=function(e){if(0===e.length||this.conv.parseParam.ignoreEmpty&&0===e.trim().length)return{cells:[],closed:!0};var t=this.quote,n=this.trim;this.escape,(this.conv.parseRuntime.delimiter instanceof Array||"auto"===this.conv.parseRuntime.delimiter.toLowerCase())&&(this.conv.parseRuntime.delimiter=this.getDelimiter(e)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var r=this.conv.parseRuntime.delimiter,i=e.split(r);if("off"===t){if(n)for(var o=0;o<i.length;o++)i[o]=i[o].trim();return{cells:i,closed:!0}}return this.toCSVRow(i,n,t,r)},e.prototype.toCSVRow=function(e,t,n,r){for(var i=[],a=!1,s="",l=0,u=e.length;l<u;l++){var c=e[l];!a&&t&&(c=o.trimLeft(c));var f=c.length;if(a)this.isQuoteClose(c)?(a=!1,s+=r+(c=c.substr(0,f-1)),s=this.escapeQuote(s),t&&(s=o.trimRight(s)),i.push(s),s=""):s+=r+c;else{if(2===f&&c===this.quote+this.quote){i.push("");continue}if(this.isQuoteOpen(c)){if(c=c.substr(1),this.isQuoteClose(c)){c=c.substring(0,c.lastIndexOf(n)),c=this.escapeQuote(c),i.push(c);continue}if(-1!==c.indexOf(n)){for(var d=0,h="",p=0,v=c;p<v.length;p++){var m=v[p];m===n&&h!==this.escape?(d++,h=""):h=m}if(d%2==1){t&&(c=o.trimRight(c)),i.push(n+c);continue}a=!0,s+=c;continue}a=!0,s+=c;continue}t&&(c=o.trimRight(c)),i.push(c)}}return{cells:i,closed:!a}},e.prototype.getDelimiter=function(e){var t;if("auto"===this.conv.parseParam.delimiter)t=a;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;t=this.conv.parseParam.delimiter}var n=0,r=",";return t.forEach((function(t){var i=e.split(t).length;i>n&&(r=t,n=i)})),r},e.prototype.isQuoteOpen=function(e){var t=this.quote,n=this.escape;return e[0]===t&&(e[1]!==t||e[1]===n&&(e[2]===t||2===e.length))},e.prototype.isQuoteClose=function(e){var t=this.quote,n=this.escape;this.conv.parseParam.trim&&(e=o.trimRight(e));for(var r=0,i=e.length-1;e[i]===t||e[i]===n;)i--,r++;return r%2!=0},e.prototype.escapeQuote=function(e){var t="es|"+this.quote+"|"+this.escape;void 0===this.cachedRegExp[t]&&(this.cachedRegExp[t]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var n=this.cachedRegExp[t];return e.replace(n,this.quote)},e.prototype.parseMultiLines=function(e){for(var t=[],n="";e.length;){var r=n+e.shift(),a=this.parse(r);0===a.cells.length&&this.conv.parseParam.ignoreEmpty||(a.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?t.push(o.filterArray(a.cells,this.conv.parseRuntime.selectedColumns)):t.push(a.cells),n=""):n=r+(i.default(r,this.conv.parseRuntime)||"\n"))}return{rowsCells:t,partial:n}},e}();t.RowSplit=s},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(29)),o=r(n(60)),a=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function s(e,t,n){if(t.parseParam.checkColumn&&t.parseRuntime.headers&&e.length!==t.parseRuntime.headers.length)throw i.default.column_mismatched(t.parseRuntime.parsedLineNumber+n);return function(e,t,n){for(var r=!1,i={},o=0,a=e.length;o<a;o++){var s=e[o];if(!n.parseParam.ignoreEmpty||""!==s){r=!0;var l=t[o];l&&""!==l||(l=t[o]="field"+(o+1));var f=u(l,o,n);if(f){var d=f(s,l,i,e,o);void 0!==d&&c(i,l,d,n,o)}else n.parseParam.checkType&&(s=h(s,l,o,n)(s)),void 0!==s&&c(i,l,s,n,o)}}return r?i:null}(e,t.parseRuntime.headers||[],t)||null}t.default=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=s(e[r],t,r);o&&n.push(o)}return n};var l={string:v,number:p,omit:function(){}};function u(e,t,n){if(void 0!==n.parseRuntime.columnConv[t])return n.parseRuntime.columnConv[t];var r=n.parseParam.colParser[e];if(void 0===r)return n.parseRuntime.columnConv[t]=null;if("object"==typeof r&&(r=r.cellParser||"string"),"string"==typeof r){r=r.trim().toLowerCase();var i=l[r];return n.parseRuntime.columnConv[t]=i||null}return n.parseRuntime.columnConv[t]="function"==typeof r?r:null}function c(e,t,n,r,i){if(!r.parseRuntime.columnValueSetter[i])if(r.parseParam.flatKeys)r.parseRuntime.columnValueSetter[i]=f;else if(t.indexOf(".")>-1){for(var o=t.split("."),a=!0;o.length>0;)if(0===o.shift().length){a=!1;break}!a||r.parseParam.colParser[t]&&r.parseParam.colParser[t].flat?r.parseRuntime.columnValueSetter[i]=f:r.parseRuntime.columnValueSetter[i]=d}else r.parseRuntime.columnValueSetter[i]=f;!0===r.parseParam.nullObject&&"null"===n&&(n=null),r.parseRuntime.columnValueSetter[i](e,t,n)}function f(e,t,n){e[t]=n}function d(e,t,n){o.default(e,t,n)}function h(e,t,n,r){return r.parseRuntime.headerType[n]?r.parseRuntime.headerType[n]:t.indexOf("number#!")>-1?r.parseRuntime.headerType[n]=p:t.indexOf("string#!")>-1?r.parseRuntime.headerType[n]=v:r.parseParam.checkType?r.parseRuntime.headerType[n]=m:r.parseRuntime.headerType[n]=v}function p(e){var t=parseFloat(e);return isNaN(t)?e:t}function v(e){return e.toString()}function m(e){var t=e.trim();return""===t?v(e):a.test(t)?p(e):5===t.length&&"false"===t.toLowerCase()||4===t.length&&"true"===t.toLowerCase()?function(e){var t=e.trim();return 5!==t.length||"false"!==t.toLowerCase()}(e):"{"===t[0]&&"}"===t[t.length-1]||"["===t[0]&&"]"===t[t.length-1]?function(e){try{return JSON.parse(e)}catch(t){return e}}(e):v(e)}},function(e,t,n){var r=n(61);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},function(e,t,n){var r=n(62),i=n(74),o=n(103),a=n(20),s=n(104);e.exports=function(e,t,n,l){if(!a(e))return e;for(var u=-1,c=(t=i(t,e)).length,f=c-1,d=e;null!=d&&++u<c;){var h=s(t[u]),p=n;if(u!=f){var v=d[h];void 0===(p=l?l(v,h,d):void 0)&&(p=a(v)?v:o(t[u+1])?[]:{})}r(d,h,p),d=d[h]}return e}},function(e,t,n){var r=n(63),i=n(31),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(64);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(17),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){var r=n(66),i=n(70),o=n(20),a=n(72),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,f=u.hasOwnProperty,d=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?d:s).test(a(e))}},function(e,t,n){var r=n(30),i=n(20);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(0))},function(e,t,n){var r=n(18),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(71),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(19)["__core-js_shared__"];e.exports=r},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(21),i=n(75),o=n(77),a=n(100);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t,n){var r=n(21),i=n(22),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=n(78)((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=o},function(e,t,n){var r=n(79);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(80);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(81),i=n(95),o=n(97),a=n(98),s=n(99);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(82),i=n(88),o=n(94);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(83),i=n(84),o=n(85),a=n(86),s=n(87);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(8);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(8);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(89),i=n(90),o=n(91),a=n(92),s=n(93);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(9),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},function(e,t,n){var r=n(9);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(9);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(9);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(17)(n(19),"Map");e.exports=r},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(10);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(10);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t,n){var r=n(101);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(18),i=n(102),o=n(21),a=n(22),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(22);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(15)),o=n(106),a=function(){function e(e){this.converter=e,this.finalResult=[]}return Object.defineProperty(e.prototype,"needEmitLine",{get:function(){return!!this.converter.parseRuntime.subscribe&&!!this.converter.parseRuntime.subscribe.onNext||this.needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"needPushDownstream",{get:function(){return void 0===this._needPushDownstream&&(this._needPushDownstream=this.converter.listeners("data").length>0||this.converter.listeners("readable").length>0),this._needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),e.prototype.processResult=function(e){var t=this,n=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&"array"===this.converter.parseParam.downstreamFormat&&0===n&&s(this.converter,"["+o.EOL),new i.default((function(n,r){t.needEmitLine?function e(t,n,r,i,o){if(r>=t.length)o();else if(n.parseRuntime.subscribe&&n.parseRuntime.subscribe.onNext){var a=n.parseRuntime.subscribe.onNext,l=t[r],u=a(l,n.parseRuntime.parsedLineNumber+r);if(r++,u&&u.then)u.then((function(){!function(t,n,r,i,o,a,l){o&&s(r,l),e(t,r,i,o,a)}(t,0,n,r,i,o,l)}),o);else{for(i&&s(n,l);r<t.length;){var c=t[r];a(c,n.parseRuntime.parsedLineNumber+r),r++,i&&s(n,c)}o()}}else{if(i)for(;r<t.length;)c=t[r++],s(n,c);o()}}(e,t.converter,0,t.needPushDownstream,(function(i){i?r(i):(t.appendFinalResult(e),n())})):(t.appendFinalResult(e),n())}))},e.prototype.appendFinalResult=function(e){this.needEmitAll&&(this.finalResult=this.finalResult.concat(e)),this.converter.parseRuntime.parsedLineNumber+=e.length},e.prototype.processError=function(e){this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onError&&this.converter.parseRuntime.subscribe.onError(e),this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onrejected&&this.converter.parseRuntime.then.onrejected(e)},e.prototype.endProcess=function(){this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onfulfilled&&(this.needEmitAll?this.converter.parseRuntime.then.onfulfilled(this.finalResult):this.converter.parseRuntime.then.onfulfilled([])),this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onCompleted&&this.converter.parseRuntime.subscribe.onCompleted(),this.needPushDownstream&&"array"===this.converter.parseParam.downstreamFormat&&s(this.converter,"]"+o.EOL)},e}();function s(e,t){if("object"!=typeof t||e.options.objectMode)e.push(t);else{var n=JSON.stringify(t);e.push(n+("array"===e.parseParam.downstreamFormat?","+o.EOL:o.EOL),"utf8")}}t.Result=a},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return"undefined"!=typeof location?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL="\n",t.homedir=function(){return"/"}}])},949:function(e,t,n){"use strict";function r(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}n.d(t,{Z:function(){return r}})},4557:function(e,t,n){"use strict";function r(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}n.d(t,{Z:function(){return r}})},2099:function(e,t){"use strict";function n(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function r(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var i={p:r,P:function(e,t){var i,o=e.match(/(P+)(p+)?/)||[],a=o[1],s=o[2];if(!s)return n(e,t);switch(a){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",n(a,t)).replace("{{time}}",r(s,t))}};t.Z=i},3878:function(e,t,n){"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{Z:function(){return r}})},611:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2952),i=n(1545),o=n(366),a=n(825);function s(e){(0,a.Z)(1,arguments);var t=(0,o.Z)(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=(0,i.Z)(n);return r}var l=6048e5;function u(e){(0,a.Z)(1,arguments);var t=(0,r.default)(e),n=(0,i.Z)(t).getTime()-s(t).getTime();return Math.round(n/l)+1}},366:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(2952),i=n(825),o=n(1545);function a(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var s=(0,o.Z)(a),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var u=(0,o.Z)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}},1809:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2952),i=n(3932),o=n(2076),a=n(825),s=n(6634);function l(e,t){(0,a.Z)(1,arguments);var n=t||{},r=n.locale,l=r&&r.options&&r.options.firstWeekContainsDate,u=null==l?1:(0,s.Z)(l),c=null==n.firstWeekContainsDate?u:(0,s.Z)(n.firstWeekContainsDate),f=(0,o.Z)(e,t),d=new Date(0);d.setUTCFullYear(f,0,c),d.setUTCHours(0,0,0,0);var h=(0,i.Z)(d,t);return h}var u=6048e5;function c(e,t){(0,a.Z)(1,arguments);var n=(0,r.default)(e),o=(0,i.Z)(n,t).getTime()-l(n,t).getTime();return Math.round(o/u)+1}},2076:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2952),i=n(825),o=n(3932),a=n(6634);function s(e,t){(0,i.Z)(1,arguments);var n=(0,r.default)(e),s=n.getUTCFullYear(),l=t||{},u=l.locale,c=u&&u.options&&u.options.firstWeekContainsDate,f=null==c?1:(0,a.Z)(c),d=null==l.firstWeekContainsDate?f:(0,a.Z)(l.firstWeekContainsDate);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(s+1,0,d),h.setUTCHours(0,0,0,0);var p=(0,o.Z)(h,t),v=new Date(0);v.setUTCFullYear(s,0,d),v.setUTCHours(0,0,0,0);var m=(0,o.Z)(v,t);return n.getTime()>=p.getTime()?s+1:n.getTime()>=m.getTime()?s:s-1}},7019:function(e,t,n){"use strict";n.d(t,{Do:function(){return a},Iu:function(){return o},qp:function(){return s}});var r=["D","DD"],i=["YY","YYYY"];function o(e){return-1!==r.indexOf(e)}function a(e){return-1!==i.indexOf(e)}function s(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}},825:function(e,t,n){"use strict";function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},1545:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=1,n=(0,r.default)(e),o=n.getUTCDay(),a=(o<t?7:0)+o-t;return n.setUTCDate(n.getUTCDate()-a),n.setUTCHours(0,0,0,0),n}},3932:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(2952),i=n(825),o=n(6634);function a(e,t){(0,i.Z)(1,arguments);var n=t||{},a=n.locale,s=a&&a.options&&a.options.weekStartsOn,l=null==s?0:(0,o.Z)(s),u=null==n.weekStartsOn?l:(0,o.Z)(n.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,r.default)(e),f=c.getUTCDay(),d=(f<u?7:0)+f-u;return c.setUTCDate(c.getUTCDate()-d),c.setUTCHours(0,0,0,0),c}},6634:function(e,t,n){"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{Z:function(){return r}})},9996:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(2952),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);return isNaN(a)?new Date(NaN):a?(n.setDate(n.getDate()+a),n):n}},6869:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(6634),i=n(483),o=n(825),a=36e5;function s(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.Z)(e,n*a)}},483:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(6634),i=n(2952),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e).getTime(),a=(0,r.Z)(t);return new Date(n+a)}},1489:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(483),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.Z)(e,6e4*n)}},1437:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(2952),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);if(isNaN(a))return new Date(NaN);if(!a)return n;var s=n.getDate(),l=new Date(n.getTime());l.setMonth(n.getMonth()+a+1,0);var u=l.getDate();return s>=u?l:(n.setFullYear(l.getFullYear(),l.getMonth(),s),n)}},3923:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(9996),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t),a=7*n;return(0,i.default)(e,a)}},3159:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(1437),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,12*n)}},1089:function(e,t,n){"use strict";n.d(t,{vh:function(){return i},yJ:function(){return r}});Math.pow(10,8);var r=6e4,i=36e5},3514:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(3878),i=n(121),o=n(825),a=864e5;function s(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),s=(0,i.default)(t),l=n.getTime()-(0,r.Z)(n),u=s.getTime()-(0,r.Z)(s);return Math.round((l-u)/a)}},2228:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t),a=n.getFullYear()-o.getFullYear(),s=n.getMonth()-o.getMonth();return 12*a+s}},6312:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(9279),i=n(3878),o=n(825),a=6048e5;function s(e,t,n){(0,o.Z)(2,arguments);var s=(0,r.default)(e,n),l=(0,r.default)(t,n),u=s.getTime()-(0,i.Z)(s),c=l.getTime()-(0,i.Z)(l);return Math.round((u-c)/a)}},7308:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getFullYear()-o.getFullYear()}},3358:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e);return t.setHours(23,59,59,999),t}},4829:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},3712:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(6634),o=n(825);function a(e,t){(0,o.Z)(1,arguments);var n=t||{},a=n.locale,s=a&&a.options&&a.options.weekStartsOn,l=null==s?0:(0,i.Z)(s),u=null==n.weekStartsOn?l:(0,i.Z)(n.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,r.default)(e),f=c.getDay(),d=6+(f<u?-7:0)-(f-u);return c.setDate(c.getDate()+d),c.setHours(23,59,59,999),c}},2612:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return R}});var r=n(6663),i=n(5235),o=n(6047),a=n(2952),s=n(825),l=864e5;var u=n(611),c=n(366),f=n(1809),d=n(2076),h=n(949),p={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return(0,h.Z)("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):(0,h.Z)(n+1,2)},d:function(e,t){return(0,h.Z)(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return(0,h.Z)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,h.Z)(e.getUTCHours(),t.length)},m:function(e,t){return(0,h.Z)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,h.Z)(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return(0,h.Z)(i,t.length)}},v="midnight",m="noon",g="morning",y="afternoon",b="evening",_="night",x={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return p.y(e,t)},Y:function(e,t,n,r){var i=(0,d.Z)(e,r),o=i>0?i:1-i;if("YY"===t){var a=o%100;return(0,h.Z)(a,2)}return"Yo"===t?n.ordinalNumber(o,{unit:"year"}):(0,h.Z)(o,t.length)},R:function(e,t){var n=(0,c.Z)(e);return(0,h.Z)(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return(0,h.Z)(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,h.Z)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,h.Z)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return p.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return(0,h.Z)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=(0,f.Z)(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):(0,h.Z)(i,t.length)},I:function(e,t,n){var r=(0,u.Z)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,h.Z)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):p.d(e,t)},D:function(e,t,n){var r=function(e){(0,s.Z)(1,arguments);var t=(0,a.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/l)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,h.Z)(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return(0,h.Z)(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return(0,h.Z)(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return(0,h.Z)(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?m:0===i?v:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?b:i>=12?y:i>=4?g:_,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return p.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):p.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,h.Z)(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,h.Z)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):p.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):p.s(e,t)},S:function(e,t){return p.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return k(i);case"XXXX":case"XX":return C(i);default:return C(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return k(i);case"xxxx":case"xx":return C(i);default:return C(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+w(i,":");default:return"GMT"+C(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+w(i,":");default:return"GMT"+C(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e,o=Math.floor(i.getTime()/1e3);return(0,h.Z)(o,t.length)},T:function(e,t,n,r){var i=(r._originalDate||e).getTime();return(0,h.Z)(i,t.length)}};function w(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+(0,h.Z)(o,2)}function k(e,t){return e%60===0?(e>0?"-":"+")+(0,h.Z)(Math.abs(e)/60,2):C(e,t)}function C(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+(0,h.Z)(Math.floor(i/60),2)+n+(0,h.Z)(i%60,2)}var S=x,E=n(2099),T=n(3878),M=n(7019),O=n(6634),j=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,P=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,N=/^'([^]*?)'?$/,D=/''/g,L=/[a-zA-Z]/;function R(e,t,n){(0,s.Z)(2,arguments);var l=String(t),u=n||{},c=u.locale||i.Z,f=c.options&&c.options.firstWeekContainsDate,d=null==f?1:(0,O.Z)(f),h=null==u.firstWeekContainsDate?d:(0,O.Z)(u.firstWeekContainsDate);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=c.options&&c.options.weekStartsOn,v=null==p?0:(0,O.Z)(p),m=null==u.weekStartsOn?v:(0,O.Z)(u.weekStartsOn);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!c.localize)throw new RangeError("locale must contain localize property");if(!c.formatLong)throw new RangeError("locale must contain formatLong property");var g=(0,a.default)(e);if(!(0,r.default)(g))throw new RangeError("Invalid time value");var y=(0,T.Z)(g),b=(0,o.Z)(g,y),_={firstWeekContainsDate:h,weekStartsOn:m,locale:c,_originalDate:g},x=l.match(P).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,E.Z[t])(e,c.formatLong,_):e})).join("").match(j).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return A(n);var i=S[r];if(i)return!u.useAdditionalWeekYearTokens&&(0,M.Do)(n)&&(0,M.qp)(n,t,e),!u.useAdditionalDayOfYearTokens&&(0,M.Iu)(n)&&(0,M.qp)(n,t,e),i(b,n,c.localize,_);if(r.match(L))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("");return x}function A(e){return e.match(N)[1].replace(D,"'")}},1477:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getDate();return n}},5955:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getDay();return n}},7518:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getHours();return n}},4073:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(2952),i=n(4552),o=n(825);function a(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear(),a=new Date(0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);var s=(0,i.Z)(a),l=new Date(0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);var u=(0,i.Z)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}function s(e){(0,o.Z)(1,arguments);var t=a(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=(0,i.Z)(n);return r}var l=6048e5;function u(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=(0,i.Z)(t).getTime()-s(t).getTime();return Math.round(n/l)+1}},6038:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMinutes();return n}},1523:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMonth();return n}},2620:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=Math.floor(t.getMonth()/3)+1;return n}},1002:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getSeconds();return n}},3558:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getTime();return n}},8603:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){return(0,i.Z)(1,arguments),(0,r.default)(e).getFullYear()}},8601:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()>o.getTime()}},1328:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()<o.getTime()}},6238:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(825);function i(e){return(0,r.Z)(1,arguments),e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e)}},5560:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()===o.getTime()}},6776:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(121),i=n(825);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()===o.getTime()}},2201:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}},171:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(356),i=n(825);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()===o.getTime()}},3138:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getFullYear()===o.getFullYear()}},6663:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6238),i=n(2952),o=n(825);function a(e){if((0,o.Z)(1,arguments),!(0,r.default)(e)&&"number"!==typeof e)return!1;var t=(0,i.default)(e);return!isNaN(Number(t))}},4773:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e).getTime(),o=(0,r.default)(t.start).getTime(),a=(0,r.default)(t.end).getTime();if(!(o<=a))throw new RangeError("Invalid interval");return n>=o&&n<=a}},5235:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i=function(e,t,n){var i,o=r[e];return i="string"===typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function o(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var a={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},l=function(e,t,n,r){return s[e]};function u(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var c={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:u({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:u({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:u({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:u({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:u({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function f(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?h(l,(function(e){return e.test(s)})):d(l,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(u):u,a=n.valueCallback?n.valueCallback(a):a;var c=t.slice(s.length);return{value:a,rest:c}}}function d(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function h(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var p,v={ordinalNumber:(p={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(p.matchPattern);if(!n)return null;var r=n[0],i=e.match(p.parsePattern);if(!i)return null;var o=p.valueCallback?p.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var a=e.slice(r.length);return{value:o,rest:a}}),era:f({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:f({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:f({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:f({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:f({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},m={code:"en-US",formatDistance:i,formatLong:a,formatRelative:l,localize:c,match:v,options:{weekStartsOn:0,firstWeekContainsDate:1}}},3:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){var t,n;if((0,i.Z)(1,arguments),e&&"function"===typeof e.forEach)t=e;else{if("object"!==typeof e||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=(0,r.default)(e);(void 0===n||n<t||isNaN(Number(t)))&&(n=t)})),n||new Date(NaN)}},471:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){var t,n;if((0,i.Z)(1,arguments),e&&"function"===typeof e.forEach)t=e;else{if("object"!==typeof e||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=(0,r.default)(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}},1648:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ae}});var r=n(5235),i=n(6047),o=n(2952),a=n(4557),s=n(2099),l=n(3878),u=n(7019),c=n(6634),f=n(2076),d=n(825);function h(e,t,n){(0,d.Z)(2,arguments);var r=n||{},i=r.locale,a=i&&i.options&&i.options.weekStartsOn,s=null==a?0:(0,c.Z)(a),l=null==r.weekStartsOn?s:(0,c.Z)(r.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=(0,o.default)(e),f=(0,c.Z)(t),h=u.getUTCDay(),p=f%7,v=(p+7)%7,m=(v<l?7:0)+f-h;return u.setUTCDate(u.getUTCDate()+m),u}var p=n(611);var v=n(1809);var m=n(1545),g=n(3932),y=/^(1[0-2]|0?\d)/,b=/^(3[0-1]|[0-2]?\d)/,_=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,x=/^(5[0-3]|[0-4]?\d)/,w=/^(2[0-3]|[0-1]?\d)/,k=/^(2[0-4]|[0-1]?\d)/,C=/^(1[0-1]|0?\d)/,S=/^(1[0-2]|0?\d)/,E=/^[0-5]?\d/,T=/^[0-5]?\d/,M=/^\d/,O=/^\d{1,2}/,j=/^\d{1,3}/,P=/^\d{1,4}/,N=/^-?\d+/,D=/^-?\d/,L=/^-?\d{1,2}/,R=/^-?\d{1,3}/,A=/^-?\d{1,4}/,I=/^([+-])(\d{2})(\d{2})?|Z/,F=/^([+-])(\d{2})(\d{2})|Z/,z=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,B=/^([+-])(\d{2}):(\d{2})|Z/,U=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function V(e,t,n){var r=t.match(e);if(!r)return null;var i=parseInt(r[0],10);return{value:n?n(i):i,rest:t.slice(r[0].length)}}function H(e,t){var n=t.match(e);return n?"Z"===n[0]?{value:0,rest:t.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:t.slice(n[0].length)}:null}function W(e,t){return V(N,e,t)}function Z(e,t,n){switch(e){case 1:return V(M,t,n);case 2:return V(O,t,n);case 3:return V(j,t,n);case 4:return V(P,t,n);default:return V(new RegExp("^\\d{1,"+e+"}"),t,n)}}function Y(e,t,n){switch(e){case 1:return V(D,t,n);case 2:return V(L,t,n);case 3:return V(R,t,n);case 4:return V(A,t,n);default:return V(new RegExp("^-?\\d{1,"+e+"}"),t,n)}}function q(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function G(e,t){var n,r=t>0,i=r?t:1-t;if(i<=50)n=e||100;else{var o=i+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return r?n:1-n}var K=[31,28,31,30,31,30,31,31,30,31,30,31],Q=[31,29,31,30,31,30,31,31,30,31,30,31];function $(e){return e%400===0||e%4===0&&e%100!==0}var X={G:{priority:140,parse:function(e,t,n,r){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,r){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,r){var i=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return Z(4,e,i);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:i});default:return Z(t.length,e,i)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var i=e.getUTCFullYear();if(n.isTwoDigitYear){var o=G(n.year,i);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,r){var i=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return Z(4,e,i);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:i});default:return Z(t.length,e,i)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var i=(0,f.Z)(e,r);if(n.isTwoDigitYear){var o=G(n.year,i);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,g.Z)(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,g.Z)(e,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,r){return Y("R"===t?4:t.length,e)},set:function(e,t,n,r){var i=new Date(0);return i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0),(0,m.Z)(i)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,r){return Y("u"===t?4:t.length,e)},set:function(e,t,n,r){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,r){switch(t){case"Q":case"QQ":return Z(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,r){switch(t){case"q":case"qq":return Z(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,r){var i=function(e){return e-1};switch(t){case"M":return V(y,e,i);case"MM":return Z(2,e,i);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:i});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,r){var i=function(e){return e-1};switch(t){case"L":return V(y,e,i);case"LL":return Z(2,e,i);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:i});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,r){switch(t){case"w":return V(x,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return(0,g.Z)(function(e,t,n){(0,d.Z)(2,arguments);var r=(0,o.default)(e),i=(0,c.Z)(t),a=(0,v.Z)(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*a),r}(e,n,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,r){switch(t){case"I":return V(x,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return(0,m.Z)(function(e,t){(0,d.Z)(2,arguments);var n=(0,o.default)(e),r=(0,c.Z)(t),i=(0,p.Z)(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,n,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"d":return V(b,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Z(t.length,e)}},validate:function(e,t,n){var r=$(e.getUTCFullYear()),i=e.getUTCMonth();return r?t>=1&&t<=Q[i]:t>=1&&t<=K[i]},set:function(e,t,n,r){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"D":case"DD":return V(_,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Z(t.length,e)}},validate:function(e,t,n){return $(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,r){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,r){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=h(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Z(t.length,e,i);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:i});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=h(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Z(t.length,e,i);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:i});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=h(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,r){var i=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return Z(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i});default:return n.day(e,{width:"wide",context:"formatting",valueCallback:i})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,r){return e=function(e,t){(0,d.Z)(2,arguments);var n=(0,c.Z)(t);n%7===0&&(n-=7);var r=1,i=(0,o.default)(e),a=i.getUTCDay(),s=((n%7+7)%7<r?7:0)+n-a;return i.setUTCDate(i.getUTCDate()+s),i}(e,n,r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,n,r){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(q(n),0,0,0),e},incompatibleTokens:["b","B","H","k","t","T"]},b:{priority:80,parse:function(e,t,n,r){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(q(n),0,0,0),e},incompatibleTokens:["a","B","H","k","t","T"]},B:{priority:80,parse:function(e,t,n,r){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(q(n),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,n,r){switch(t){case"h":return V(S,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n,r){var i=e.getUTCHours()>=12;return i&&n<12?e.setUTCHours(n+12,0,0,0):i||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,r){switch(t){case"H":return V(w,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,r){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,r){switch(t){case"K":return V(C,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,r){switch(t){case"k":return V(k,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,r){var i=n<=24?n%24:n;return e.setUTCHours(i,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,r){switch(t){case"m":return V(E,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,r){switch(t){case"s":return V(T,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Z(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,r){return Z(t.length,e,(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))},set:function(e,t,n,r){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,r){switch(t){case"X":return H(I,e);case"XX":return H(F,e);case"XXXX":return H(z,e);case"XXXXX":return H(U,e);default:return H(B,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,r){switch(t){case"x":return H(I,e);case"xx":return H(F,e);case"xxxx":return H(z,e);case"xxxxx":return H(U,e);default:return H(B,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,r){return W(e)},set:function(e,t,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,r){return W(e)},set:function(e,t,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}},J=X,ee=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,te=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ne=/^'([^]*?)'?$/,re=/''/g,ie=/\S/,oe=/[a-zA-Z]/;function ae(e,t,n,f){(0,d.Z)(3,arguments);var h=String(e),p=String(t),v=f||{},m=v.locale||r.Z;if(!m.match)throw new RangeError("locale must contain match property");var g=m.options&&m.options.firstWeekContainsDate,y=null==g?1:(0,c.Z)(g),b=null==v.firstWeekContainsDate?y:(0,c.Z)(v.firstWeekContainsDate);if(!(b>=1&&b<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=m.options&&m.options.weekStartsOn,x=null==_?0:(0,c.Z)(_),w=null==v.weekStartsOn?x:(0,c.Z)(v.weekStartsOn);if(!(w>=0&&w<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===p)return""===h?(0,o.default)(n):new Date(NaN);var k,C={firstWeekContainsDate:b,weekStartsOn:w,locale:m},S=[{priority:10,subPriority:-1,set:se,index:0}],E=p.match(te).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,s.Z[t])(e,m.formatLong,C):e})).join("").match(ee),T=[];for(k=0;k<E.length;k++){var M=E[k];!v.useAdditionalWeekYearTokens&&(0,u.Do)(M)&&(0,u.qp)(M,p,e),!v.useAdditionalDayOfYearTokens&&(0,u.Iu)(M)&&(0,u.qp)(M,p,e);var O=M[0],j=J[O];if(j){var P=j.incompatibleTokens;if(Array.isArray(P)){for(var N=void 0,D=0;D<T.length;D++){var L=T[D].token;if(-1!==P.indexOf(L)||L===O){N=T[D];break}}if(N)throw new RangeError("The format string mustn't contain `".concat(N.fullToken,"` and `").concat(M,"` at the same time"))}else if("*"===j.incompatibleTokens&&T.length)throw new RangeError("The format string mustn't contain `".concat(M,"` and any other token at the same time"));T.push({token:O,fullToken:M});var R=j.parse(h,M,m.match,C);if(!R)return new Date(NaN);S.push({priority:j.priority,subPriority:j.subPriority||0,set:j.set,validate:j.validate,value:R.value,index:S.length}),h=R.rest}else{if(O.match(oe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+O+"`");if("''"===M?M="'":"'"===O&&(M=le(M)),0!==h.indexOf(M))return new Date(NaN);h=h.slice(M.length)}}if(h.length>0&&ie.test(h))return new Date(NaN);var A=S.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return S.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),I=(0,o.default)(n);if(isNaN(I))return new Date(NaN);var F=(0,i.Z)(I,(0,l.Z)(I)),z={};for(k=0;k<A.length;k++){var B=A[k];if(B.validate&&!B.validate(F,B.value,C))return new Date(NaN);var U=B.set(F,z,B.value,C);U[0]?(F=U[0],(0,a.Z)(z,U[1])):F=U}return F}function se(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}function le(e){return e.match(ne)[1].replace(re,"'")}},4892:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(1089),i=n(825),o=n(6634);function a(e,t){(0,i.Z)(1,arguments);var n=t||{},r=null==n.additionalDigits?2:(0,o.Z)(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var a,s=f(e);if(s.date){var l=d(s.date,r);a=h(l.restDateString,l.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var u,c=a.getTime(),p=0;if(s.time&&(p=v(s.time),isNaN(p)))return new Date(NaN);if(!s.timezone){var m=new Date(c+p),y=new Date(0);return y.setFullYear(m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate()),y.setHours(m.getUTCHours(),m.getUTCMinutes(),m.getUTCSeconds(),m.getUTCMilliseconds()),y}return u=g(s.timezone),isNaN(u)?new Date(NaN):new Date(c+p+u)}var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,u=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,c=/^([+-])(\d{2})(?::?(\d{2}))?$/;function f(e){var t,n={},r=e.split(s.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],s.timeZoneDelimiter.test(n.date)&&(n.date=e.split(s.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var i=s.timezone.exec(t);i?(n.time=t.replace(i[1],""),n.timezone=i[1]):n.time=t}return n}function d(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}function h(e,t){if(null===t)return new Date(NaN);var n=e.match(l);if(!n)return new Date(NaN);var r=!!n[4],i=p(n[1]),o=p(n[2])-1,a=p(n[3]),s=p(n[4]),u=p(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,u)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=7*(t-1)+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}(t,s,u):new Date(NaN);var c=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(y[t]||(b(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(b(e)?366:365)}(t,i)?(c.setUTCFullYear(t,o,Math.max(i,a)),c):new Date(NaN)}function p(e){return e?parseInt(e):1}function v(e){var t=e.match(u);if(!t)return NaN;var n=m(t[1]),i=m(t[2]),o=m(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,i,o)?n*r.vh+i*r.yJ+1e3*o:NaN}function m(e){return e&&parseFloat(e.replace(",","."))||0}function g(e){if("Z"===e)return 0;var t=e.match(c);if(!t)return 0;var n="+"===t[1]?-1:1,i=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?n*(i*r.vh+o*r.yJ):NaN}var y=[31,null,31,30,31,30,31,31,30,31,30,31];function b(e){return e%400===0||e%4===0&&e%100!==0}},9462:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(2952),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);return n.setHours(a),n}},7436:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(2952),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);return n.setMinutes(a),n}},9374:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(6634),i=n(2952),o=n(825);function a(e){(0,o.Z)(1,arguments);var t=(0,i.default)(e),n=t.getFullYear(),r=t.getMonth(),a=new Date(0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}function s(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),s=(0,r.Z)(t),l=n.getFullYear(),u=n.getDate(),c=new Date(0);c.setFullYear(l,s,15),c.setHours(0,0,0,0);var f=a(c);return n.setMonth(s,Math.min(u,f)),n}},3197:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(6634),i=n(2952),o=n(9374),a=n(825);function s(e,t){(0,a.Z)(2,arguments);var n=(0,i.default)(e),s=(0,r.Z)(t),l=Math.floor(n.getMonth()/3)+1,u=s-l;return(0,o.default)(n,n.getMonth()+3*u)}},9964:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(2952),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);return n.setSeconds(a),n}},4548:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(2952),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(a),n)}},121:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e);return t.setHours(0,0,0,0),t}},4552:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9279),i=n(825);function o(e){return(0,i.Z)(1,arguments),(0,r.default)(e,{weekStartsOn:1})}},93:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},356:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMonth(),o=n-n%3;return t.setMonth(o,1),t.setHours(0,0,0,0),t}},9279:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(2952),i=n(6634),o=n(825);function a(e,t){(0,o.Z)(1,arguments);var n=t||{},a=n.locale,s=a&&a.options&&a.options.weekStartsOn,l=null==s?0:(0,i.Z)(s),u=null==n.weekStartsOn?l:(0,i.Z)(n.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,r.default)(e),f=c.getDay(),d=(f<u?7:0)+f-u;return c.setDate(c.getDate()-d),c.setHours(0,0,0,0),c}},410:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2952),i=n(825);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}},1776:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(9996),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},9316:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(6869),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},6047:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(6634),i=n(483),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.Z)(e,-n)}},6515:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(1489),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},1454:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(1437),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},3824:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(3923),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},1461:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(6634),i=n(3159),o=n(825);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},2952:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(825);function i(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}},1919:function(e,t){var n,r,i;!function(o){"use strict";var a=o.setTimeout,s=o.clearTimeout,l=o.XMLHttpRequest,u=o.XDomainRequest,c=o.ActiveXObject,f=o.EventSource,d=o.document,h=o.Promise,p=o.fetch,v=o.Response,m=o.TextDecoder,g=o.TextEncoder,y=o.AbortController;if("undefined"===typeof window||"undefined"===typeof d||"readyState"in d||null!=d.body||(d.readyState="loading",window.addEventListener("load",(function(e){d.readyState="complete"}),!1)),null==l&&null!=c&&(l=function(){return new c("Microsoft.XMLHTTP")}),void 0==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),void 0==y){var b=p;p=function(e,t){var n=t.signal;return b(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then((function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}}))},y=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function _(){this.bitsNeeded=0,this.codePoint=0}_.prototype.decode=function(e){function t(e,t,n){if(1===n)return e>=128>>t&&e<<t<=2047;if(2===n)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535;if(3===n)return e>=65536>>t&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return t>>6>15?3:t>31?2:1;if(12===e)return t>15?3:2;if(18===e)return 3;throw new Error}for(var r=65533,i="",o=this.bitsNeeded,a=this.codePoint,s=0;s<e.length;s+=1){var l=e[s];0!==o&&(l<128||l>191||!t(a<<6|63&l,o-6,n(o,a)))&&(o=0,a=r,i+=String.fromCharCode(a)),0===o?(l>=0&&l<=127?(o=0,a=l):l>=192&&l<=223?(o=6,a=31&l):l>=224&&l<=239?(o=12,a=15&l):l>=240&&l<=247?(o=18,a=7&l):(o=0,a=r),0===o||t(a,o,n(o,a))||(o=0,a=r)):(o-=6,a=a<<6|63&l),0===o&&(a<=65535?i+=String.fromCharCode(a):(i+=String.fromCharCode(55296+(a-65535-1>>10)),i+=String.fromCharCode(56320+(a-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=a,i};void 0!=m&&void 0!=g&&function(){try{return"test"===(new m).decode((new g).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1}()||(m=_);var x=function(){};function w(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=x,this.onload=x,this.onerror=x,this.onreadystatechange=x,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=x}function k(e){return e.replace(/[A-Z]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)+32)}))}function C(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var i=n[r].split(": "),o=i.shift(),a=i.join(": ");t[k(o)]=a}this._map=t}function S(){}function E(e){this._headers=e}function T(){}function M(){this._listeners=Object.create(null)}function O(e){a((function(){throw e}),0)}function j(e){this.type=e,this.target=void 0}function P(e,t){j.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function N(e,t){j.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function D(e,t){j.call(this,e),this.error=t.error}w.prototype.open=function(e,t){this._abort(!0);var n=this,r=this._xhr,i=1,o=0;this._abort=function(e){0!==n._sendTimeout&&(s(n._sendTimeout),n._sendTimeout=0),1!==i&&2!==i&&3!==i||(i=4,r.onload=x,r.onerror=x,r.onabort=x,r.onprogress=x,r.onreadystatechange=x,r.abort(),0!==o&&(s(o),o=0),e||(n.readyState=4,n.onabort(null),n.onreadystatechange())),i=0};var u=function(){if(1===i){var e=0,t="",o=void 0;if("contentType"in r)e=200,t="OK",o=r.contentType;else try{e=r.status,t=r.statusText,o=r.getResponseHeader("Content-Type")}catch(a){e=0,t="",o=void 0}0!==e&&(i=2,n.readyState=2,n.status=e,n.statusText=t,n._contentType=o,n.onreadystatechange())}},c=function(){if(u(),2===i||3===i){i=3;var e="";try{e=r.responseText}catch(t){}n.readyState=3,n.responseText=e,n.onprogress()}},f=function(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:x}),c(),1===i||2===i||3===i){if(i=4,0!==o&&(s(o),o=0),n.readyState=4,"load"===e)n.onload(t);else if("error"===e)n.onerror(t);else{if("abort"!==e)throw new TypeError;n.onabort(t)}n.onreadystatechange()}},d=function e(){o=a((function(){e()}),500),3===r.readyState&&c()};"onload"in r&&(r.onload=function(e){f("load",e)}),"onerror"in r&&(r.onerror=function(e){f("error",e)}),"onabort"in r&&(r.onabort=function(e){f("abort",e)}),"onprogress"in r&&(r.onprogress=c),"onreadystatechange"in r&&(r.onreadystatechange=function(e){!function(e){void 0!=r&&(4===r.readyState?"onload"in r&&"onerror"in r&&"onabort"in r||f(""===r.responseText?"error":"load",e):3===r.readyState?"onprogress"in r||c():2===r.readyState&&u())}(e)}),!("contentType"in r)&&"ontimeout"in l.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),r.open(e,t,!0),"readyState"in r&&(o=a((function(){d()}),0))},w.prototype.abort=function(){this._abort(!1)},w.prototype.getResponseHeader=function(e){return this._contentType},w.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},w.prototype.getAllResponseHeaders=function(){return void 0!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},w.prototype.send=function(){if("ontimeout"in l.prototype&&("sendAsBinary"in l.prototype||"mozAnon"in l.prototype)||void 0==d||void 0==d.readyState||"complete"===d.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(n){throw n}}else{var t=this;t._sendTimeout=a((function(){t._sendTimeout=0,t.send()}),4)}},C.prototype.get=function(e){return this._map[k(e)]},null!=l&&null==l.HEADERS_RECEIVED&&(l.HEADERS_RECEIVED=2),S.prototype.open=function(e,t,n,r,i,o,a){e.open("GET",i);var s=0;for(var u in e.onprogress=function(){var t=e.responseText.slice(s);s+=t.length,n(t)},e.onerror=function(e){e.preventDefault(),r(new Error("NetworkError"))},e.onload=function(){r(null)},e.onabort=function(){r(null)},e.onreadystatechange=function(){if(e.readyState===l.HEADERS_RECEIVED){var n=e.status,r=e.statusText,i=e.getResponseHeader("Content-Type"),o=e.getAllResponseHeaders();t(n,r,i,new C(o))}},e.withCredentials=o,a)Object.prototype.hasOwnProperty.call(a,u)&&e.setRequestHeader(u,a[u]);return e.send(),e},E.prototype.get=function(e){return this._headers.get(e)},T.prototype.open=function(e,t,n,r,i,o,a){var s=null,l=new y,u=l.signal,c=new m;return p(i,{headers:a,credentials:o?"include":"same-origin",signal:u,cache:"no-store"}).then((function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new E(e.headers)),new h((function(e,t){!function r(){s.read().then((function(t){if(t.done)e(void 0);else{var i=c.decode(t.value,{stream:!0});n(i),r()}})).catch((function(e){t(e)}))}()}))})).catch((function(e){return"AbortError"===e.name?void 0:e})).then((function(e){r(e)})),{abort:function(){null!=s&&s.cancel(),l.abort()}}},M.prototype.dispatchEvent=function(e){e.target=this;var t=this._listeners[e.type];if(void 0!=t)for(var n=t.length,r=0;r<n;r+=1){var i=t[r];try{"function"===typeof i.handleEvent?i.handleEvent(e):i.call(this,e)}catch(o){O(o)}}},M.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];void 0==r&&(r=[],n[e]=r);for(var i=!1,o=0;o<r.length;o+=1)r[o]===t&&(i=!0);i||r.push(t)},M.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(void 0!=r){for(var i=[],o=0;o<r.length;o+=1)r[o]!==t&&i.push(r[o]);0===i.length?delete n[e]:n[e]=i}},P.prototype=Object.create(j.prototype),N.prototype=Object.create(j.prototype),D.prototype=Object.create(j.prototype);var L=-1,R=-1,A=/^text\/event\-stream(;.*)?$/i,I=function(e,t){var n=null==e?t:parseInt(e,10);return n!==n&&(n=t),F(n)},F=function(e){return Math.min(Math.max(e,1e3),18e6)},z=function(e,t,n){try{"function"===typeof t&&t.call(e,n)}catch(r){O(r)}};function B(e,t){M.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(e,t,n){t=String(t);var r=Boolean(n.withCredentials),i=n.lastEventIdQueryParameterName||"lastEventId",o=F(1e3),c=I(n.heartbeatTimeout,45e3),f="",d=o,h=!1,p=0,v=n.headers||{},m=n.Transport,g=U&&void 0==m?void 0:new w(void 0!=m?new m:void 0!=l&&"withCredentials"in l.prototype||void 0==u?new l:new u),y=null!=m&&"string"!==typeof m?new m:void 0==g?new T:new S,b=void 0,_=0,x=L,k="",C="",E="",M="",O=0,j=0,B=0,V=function(t,n,r,i){if(0===x)if(200===t&&void 0!=r&&A.test(r)){x=1,h=Date.now(),d=o,e.readyState=1;var a=new N("open",{status:t,statusText:n,headers:i});e.dispatchEvent(a),z(e,e.onopen,a)}else{var s="";200!==t?(n&&(n=n.replace(/\s+/g," ")),s="EventSource's response has a status "+t+" "+n+" that is not 200. Aborting the connection."):s="EventSource's response has a Content-Type specifying an unsupported type: "+(void 0==r?"-":r.replace(/\s+/g," "))+". Aborting the connection.",Z();a=new N("error",{status:t,statusText:n,headers:i});e.dispatchEvent(a),z(e,e.onerror,a),console.error(s)}},H=function(t){if(1===x){for(var n=-1,r=0;r<t.length;r+=1){(u=t.charCodeAt(r))!=="\n".charCodeAt(0)&&u!=="\r".charCodeAt(0)||(n=r)}var i=(-1!==n?M:"")+t.slice(0,n+1);M=(-1===n?M:"")+t.slice(n+1),""!==t&&(h=Date.now(),p+=t.length);for(var l=0;l<i.length;l+=1){var u=i.charCodeAt(l);if(O===R&&u==="\n".charCodeAt(0))O=0;else if(O===R&&(O=0),u==="\r".charCodeAt(0)||u==="\n".charCodeAt(0)){if(0!==O){1===O&&(B=l+1);var v=i.slice(j,B-1),m=i.slice(B+(B<l&&i.charCodeAt(B)===" ".charCodeAt(0)?1:0),l);"data"===v?(k+="\n",k+=m):"id"===v?C=m:"event"===v?E=m:"retry"===v?(o=I(m,o),d=o):"heartbeatTimeout"===v&&(c=I(m,c),0!==_&&(s(_),_=a((function(){Y()}),c)))}if(0===O){if(""!==k){f=C,""===E&&(E="message");var g=new P(E,{data:k.slice(1),lastEventId:C});if(e.dispatchEvent(g),"open"===E?z(e,e.onopen,g):"message"===E?z(e,e.onmessage,g):"error"===E&&z(e,e.onerror,g),2===x)return}k="",E=""}O=u==="\r".charCodeAt(0)?R:0}else 0===O&&(j=l,O=1),1===O?u===":".charCodeAt(0)&&(B=l+1,O=2):2===O&&(O=3)}}},W=function(t){if(1===x||0===x){x=L,0!==_&&(s(_),_=0),_=a((function(){Y()}),d),d=F(Math.min(16*o,2*d)),e.readyState=0;var n=new D("error",{error:t});e.dispatchEvent(n),z(e,e.onerror,n),void 0!=t&&console.error(t)}},Z=function(){x=2,void 0!=b&&(b.abort(),b=void 0),0!==_&&(s(_),_=0),e.readyState=2},Y=function n(){if(_=0,x===L){h=!1,p=0,_=a((function(){n()}),c),x=0,k="",E="",C=f,M="",j=0,B=0,O=0;var r=t;if("data:"!==t.slice(0,5)&&"blob:"!==t.slice(0,5)&&""!==f){var o=t.indexOf("?");r=-1===o?t:t.slice(0,o+1)+t.slice(o+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(e,t){return t===i?"":e})),r+=(-1===t.indexOf("?")?"?":"&")+i+"="+encodeURIComponent(f)}var s=e.withCredentials,l={Accept:"text/event-stream"},u=e.headers;if(void 0!=u)for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d]);try{b=y.open(g,V,H,W,r,s,l)}catch(m){throw Z(),m}}else if(h||void 0==b){var v=Math.max((h||Date.now())+c-Date.now(),1);h=!1,_=a((function(){n()}),v)}else W(new Error("No activity within "+c+" milliseconds. "+(0===x?"No response received.":p+" chars received.")+" Reconnecting.")),void 0!=b&&(b.abort(),b=void 0)};e.url=t,e.readyState=0,e.withCredentials=r,e.headers=v,e._close=Z,Y()}(this,e,t)}var U=void 0!=p&&void 0!=v&&"body"in v.prototype;B.prototype=Object.create(M.prototype),B.prototype.CONNECTING=0,B.prototype.OPEN=1,B.prototype.CLOSED=2,B.prototype.close=function(){this._close()},B.CONNECTING=0,B.OPEN=1,B.CLOSED=2,B.prototype.withCredentials=void 0;var V=f;void 0==l||void 0!=f&&"withCredentials"in f.prototype||(V=B),function(o){if("object"===typeof e.exports){var a=o(t);void 0!==a&&(e.exports=a)}else r=[t],void 0===(i="function"===typeof(n=o)?n.apply(t,r):n)||(e.exports=i)}((function(e){e.EventSourcePolyfill=B,e.NativeEventSource=f,e.EventSource=V}))}("undefined"===typeof globalThis?"undefined"!==typeof window?window:"undefined"!==typeof self?self:this:globalThis)},9053:function(e,t,n){"use strict";var r=n(91),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=l(t),v=l(n),m=0;m<a.length;++m){var g=a[m];if(!o[g]&&(!r||!r[g])&&(!v||!v[g])&&(!s||!s[g])){var y=d(n,g);try{u(t,g,y)}catch(b){}}}}return t}},1565:function(e,t,n){!function(e){"use strict";var t;function r(){}function i(){i.init.call(this)}function o(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function a(e,t,n){if(t)e.call(n);else for(var r=e.length,i=m(e,r),o=0;o<r;++o)i[o].call(n)}function s(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,o=m(e,i),a=0;a<i;++a)o[a].call(n,r)}function l(e,t,n,r,i){if(t)e.call(n,r,i);else for(var o=e.length,a=m(e,o),s=0;s<o;++s)a[s].call(n,r,i)}function u(e,t,n,r,i,o){if(t)e.call(n,r,i,o);else for(var a=e.length,s=m(e,a),l=0;l<a;++l)s[l].call(n,r,i,o)}function c(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,o=m(e,i),a=0;a<i;++a)o[a].apply(n,r)}function f(e,t,n,i){var a,s,l;if("function"!==typeof n)throw new TypeError('"listener" argument must be a function');if((s=e._events)?(s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),l=s[t]):(s=e._events=new r,e._eventsCount=0),l){if("function"===typeof l?l=s[t]=i?[n,l]:[l,n]:i?l.unshift(n):l.push(n),!l.warned&&(a=o(e))&&a>0&&l.length>a){l.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=l.length,d(u)}}else l=s[t]=n,++e._eventsCount;return e}function d(e){"function"===typeof console.warn?console.warn(e):console.log(e)}function h(e,t,n){var r=!1;function i(){e.removeListener(t,i),r||(r=!0,n.apply(e,arguments))}return i.listener=n,i}function p(e){var t=this._events;if(t){var n=t[e];if("function"===typeof n)return 1;if(n)return n.length}return 0}function v(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}function m(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}function g(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}r.prototype=Object.create(null),i.EventEmitter=i,i.usingDomains=!1,i.prototype.domain=void 0,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.init=function(){this.domain=null,i.usingDomains&&t.active&&t.Domain,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new r,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return o(this)},i.prototype.emit=function(e){var t,n,r,i,o,f,d,h="error"===e;if(f=this._events)h=h&&null==f.error;else if(!h)return!1;if(d=this.domain,h){if(t=arguments[1],!d){if(t instanceof Error)throw t;var p=new Error('Uncaught, unspecified "error" event. ('+t+")");throw p.context=t,p}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=d,t.domainThrown=!1,d.emit("error",t),!1}if(!(n=f[e]))return!1;var v="function"===typeof n;switch(r=arguments.length){case 1:a(n,v,this);break;case 2:s(n,v,this,arguments[1]);break;case 3:l(n,v,this,arguments[1],arguments[2]);break;case 4:u(n,v,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];c(n,v,this,i)}return!0},i.prototype.addListener=function(e,t){return f(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return f(this,e,t,!0)},i.prototype.once=function(e,t){if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,h(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,h(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,i,o,a,s;if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');if(!(i=this._events))return this;if(!(n=i[e]))return this;if(n===t||n.listener&&n.listener===t)0===--this._eventsCount?this._events=new r:(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(o=-1,a=n.length;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){s=n[a].listener,o=a;break}if(o<0)return this;if(1===n.length){if(n[0]=void 0,0===--this._eventsCount)return this._events=new r,this;delete i[e]}else v(n,o);i.removeListener&&this.emit("removeListener",e,s||t)}return this},i.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new r,this._eventsCount=0):n[e]&&(0===--this._eventsCount?this._events=new r:delete n[e]),this;if(0===arguments.length){for(var i,o=Object.keys(n),a=0;a<o.length;++a)"removeListener"!==(i=o[a])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=new r,this._eventsCount=0,this}if("function"===typeof(t=n[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},i.prototype.listeners=function(e){var t,n=this._events;return n&&(t=n[e])?"function"===typeof t?[t.listener||t]:g(t):[]},i.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var y="undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},b=[],_=[],x="undefined"!==typeof Uint8Array?Uint8Array:Array,w=!1;function k(){w=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)b[t]=e[t],_[e.charCodeAt(t)]=t;_["-".charCodeAt(0)]=62,_["_".charCodeAt(0)]=63}function C(e){var t,n,r,i,o,a;w||k();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new x(3*s/4-o),r=o>0?s-4:s;var l=0;for(t=0,n=0;t<r;t+=4,n+=3)i=_[e.charCodeAt(t)]<<18|_[e.charCodeAt(t+1)]<<12|_[e.charCodeAt(t+2)]<<6|_[e.charCodeAt(t+3)],a[l++]=i>>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=_[e.charCodeAt(t)]<<2|_[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=_[e.charCodeAt(t)]<<10|_[e.charCodeAt(t+1)]<<4|_[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a}function S(e){return b[e>>18&63]+b[e>>12&63]+b[e>>6&63]+b[63&e]}function E(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16)+(e[o+1]<<8)+e[o+2],i.push(S(r));return i.join("")}function T(e){var t;w||k();for(var n=e.length,r=n%3,i="",o=[],a=16383,s=0,l=n-r;s<l;s+=a)o.push(E(e,s,s+a>l?l:s+a));return 1===r?(t=e[n-1],i+=b[t>>2],i+=b[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=b[t>>10],i+=b[t>>4&63],i+=b[t<<2&63],i+="="),o.push(i),o.join("")}function M(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)}function O(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*v}var j={}.toString,P=Array.isArray||function(e){return"[object Array]"==j.call(e)},N=50;function D(){return R.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function L(e,t){if(D()<t)throw new RangeError("Invalid typed array length");return R.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=R.prototype:(null===e&&(e=new R(t)),e.length=t),e}function R(e,t,n){if(!R.TYPED_ARRAY_SUPPORT&&!(this instanceof R))return new R(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return z(this,e)}return A(this,e,t,n)}function A(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?V(e,t,n,r):"string"===typeof t?B(e,t,n):H(e,t)}function I(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function F(e,t,n,r){return I(t),t<=0?L(e,t):void 0!==n?"string"===typeof r?L(e,t).fill(n,r):L(e,t).fill(n):L(e,t)}function z(e,t){if(I(t),e=L(e,t<0?0:0|W(t)),!R.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function B(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!R.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|Y(t,n),i=(e=L(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}function U(e,t){var n=t.length<0?0:0|W(t.length);e=L(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function V(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),R.TYPED_ARRAY_SUPPORT?(e=t).__proto__=R.prototype:e=U(e,t),e}function H(e,t){if(Z(t)){var n=0|W(t.length);return 0===(e=L(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||Te(t.length)?L(e,0):U(e,t);if("Buffer"===t.type&&P(t.data))return U(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function W(e){if(e>=D())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+D().toString(16)+" bytes");return 0|e}function Z(e){return!(null==e||!e._isBuffer)}function Y(e,t){if(Z(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return we(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Se(e).length;default:if(r)return we(e).length;t=(""+t).toLowerCase(),r=!0}}function q(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return ue(this,t,n);case"utf8":case"utf-8":return ie(this,t,n);case"ascii":return se(this,t,n);case"latin1":case"binary":return le(this,t,n);case"base64":return re(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function G(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function K(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=R.from(t,r)),Z(t))return 0===t.length?-1:Q(e,t,n,r,i);if("number"===typeof t)return t&=255,R.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Q(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Q(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var f=!0,d=0;d<l;d++)if(u(e,o+d)!==u(t,d)){f=!1;break}if(f)return o}return-1}function $(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function X(e,t,n,r){return Ee(we(t,e.length-n),e,n,r)}function J(e,t,n,r){return Ee(ke(t),e,n,r)}function ee(e,t,n,r){return J(e,t,n,r)}function te(e,t,n,r){return Ee(Se(t),e,n,r)}function ne(e,t,n,r){return Ee(Ce(t,e.length-n),e,n,r)}function re(e,t,n){return 0===t&&n===e.length?T(e):T(e.slice(t,n))}function ie(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,u=e[i],c=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128===(192&(o=e[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return ae(r)}R.TYPED_ARRAY_SUPPORT=void 0===y.TYPED_ARRAY_SUPPORT||y.TYPED_ARRAY_SUPPORT,R.poolSize=8192,R._augment=function(e){return e.__proto__=R.prototype,e},R.from=function(e,t,n){return A(null,e,t,n)},R.TYPED_ARRAY_SUPPORT&&(R.prototype.__proto__=Uint8Array.prototype,R.__proto__=Uint8Array),R.alloc=function(e,t,n){return F(null,e,t,n)},R.allocUnsafe=function(e){return z(null,e)},R.allocUnsafeSlow=function(e){return z(null,e)},R.isBuffer=Me,R.compare=function(e,t){if(!Z(e)||!Z(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},R.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},R.concat=function(e,t){if(!P(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return R.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=R.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!Z(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},R.byteLength=Y,R.prototype._isBuffer=!0,R.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)G(this,t,t+1);return this},R.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)G(this,t,t+3),G(this,t+1,t+2);return this},R.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)G(this,t,t+7),G(this,t+1,t+6),G(this,t+2,t+5),G(this,t+3,t+4);return this},R.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?ie(this,0,e):q.apply(this,arguments)},R.prototype.equals=function(e){if(!Z(e))throw new TypeError("Argument must be a Buffer");return this===e||0===R.compare(this,e)},R.prototype.inspect=function(){var e="",t=N;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},R.prototype.compare=function(e,t,n,r,i){if(!Z(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),u=e.slice(t,n),c=0;c<s;++c)if(l[c]!==u[c]){o=l[c],a=u[c];break}return o<a?-1:a<o?1:0},R.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},R.prototype.indexOf=function(e,t,n){return K(this,e,t,n,!0)},R.prototype.lastIndexOf=function(e,t,n){return K(this,e,t,n,!1)},R.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return $(this,e,t,n);case"utf8":case"utf-8":return X(this,e,t,n);case"ascii":return J(this,e,t,n);case"latin1":case"binary":return ee(this,e,t,n);case"base64":return te(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ne(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},R.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var oe=4096;function ae(e){var t=e.length;if(t<=oe)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=oe));return n}function se(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function le(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function ue(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=xe(e[o]);return i}function ce(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function fe(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function de(e,t,n,r,i,o){if(!Z(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function he(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function pe(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function ve(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function me(e,t,n,r,i){return i||ve(e,t,n,4),O(e,t,n,r,23,4),n+4}function ge(e,t,n,r,i){return i||ve(e,t,n,8),O(e,t,n,r,52,8),n+8}R.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),R.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=R.prototype;else{var i=t-e;n=new R(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},R.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||fe(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},R.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||fe(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},R.prototype.readUInt8=function(e,t){return t||fe(e,1,this.length),this[e]},R.prototype.readUInt16LE=function(e,t){return t||fe(e,2,this.length),this[e]|this[e+1]<<8},R.prototype.readUInt16BE=function(e,t){return t||fe(e,2,this.length),this[e]<<8|this[e+1]},R.prototype.readUInt32LE=function(e,t){return t||fe(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},R.prototype.readUInt32BE=function(e,t){return t||fe(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},R.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||fe(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},R.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||fe(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},R.prototype.readInt8=function(e,t){return t||fe(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},R.prototype.readInt16LE=function(e,t){t||fe(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},R.prototype.readInt16BE=function(e,t){t||fe(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},R.prototype.readInt32LE=function(e,t){return t||fe(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},R.prototype.readInt32BE=function(e,t){return t||fe(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},R.prototype.readFloatLE=function(e,t){return t||fe(e,4,this.length),M(this,e,!0,23,4)},R.prototype.readFloatBE=function(e,t){return t||fe(e,4,this.length),M(this,e,!1,23,4)},R.prototype.readDoubleLE=function(e,t){return t||fe(e,8,this.length),M(this,e,!0,52,8)},R.prototype.readDoubleBE=function(e,t){return t||fe(e,8,this.length),M(this,e,!1,52,8)},R.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||de(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},R.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||de(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},R.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||de(this,e,t,1,255,0),R.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},R.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||de(this,e,t,2,65535,0),R.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):he(this,e,t,!0),t+2},R.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||de(this,e,t,2,65535,0),R.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):he(this,e,t,!1),t+2},R.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||de(this,e,t,4,4294967295,0),R.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):pe(this,e,t,!0),t+4},R.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||de(this,e,t,4,4294967295,0),R.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):pe(this,e,t,!1),t+4},R.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);de(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},R.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);de(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},R.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||de(this,e,t,1,127,-128),R.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},R.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||de(this,e,t,2,32767,-32768),R.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):he(this,e,t,!0),t+2},R.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||de(this,e,t,2,32767,-32768),R.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):he(this,e,t,!1),t+2},R.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||de(this,e,t,4,2147483647,-2147483648),R.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):pe(this,e,t,!0),t+4},R.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||de(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),R.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):pe(this,e,t,!1),t+4},R.prototype.writeFloatLE=function(e,t,n){return me(this,e,t,!0,n)},R.prototype.writeFloatBE=function(e,t,n){return me(this,e,t,!1,n)},R.prototype.writeDoubleLE=function(e,t,n){return ge(this,e,t,!0,n)},R.prototype.writeDoubleBE=function(e,t,n){return ge(this,e,t,!1,n)},R.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!R.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},R.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!R.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=Z(e)?e:we(new R(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var ye=/[^+\/0-9A-Za-z-_]/g;function be(e){if((e=_e(e).replace(ye,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}function _e(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function xe(e){return e<16?"0"+e.toString(16):e.toString(16)}function we(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function ke(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Ce(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}function Se(e){return C(be(e))}function Ee(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Te(e){return e!==e}function Me(e){return null!=e&&(!!e._isBuffer||Oe(e)||je(e))}function Oe(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function je(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&Oe(e.slice(0,0))}function Pe(){throw new Error("setTimeout has not been defined")}function Ne(){throw new Error("clearTimeout has not been defined")}var De=Pe,Le=Ne;function Re(e){if(De===setTimeout)return setTimeout(e,0);if((De===Pe||!De)&&setTimeout)return De=setTimeout,setTimeout(e,0);try{return De(e,0)}catch(t){try{return De.call(null,e,0)}catch(t){return De.call(this,e,0)}}}function Ae(e){if(Le===clearTimeout)return clearTimeout(e);if((Le===Ne||!Le)&&clearTimeout)return Le=clearTimeout,clearTimeout(e);try{return Le(e)}catch(t){try{return Le.call(null,e)}catch(t){return Le.call(this,e)}}}"function"===typeof y.setTimeout&&(De=setTimeout),"function"===typeof y.clearTimeout&&(Le=clearTimeout);var Ie,Fe=[],ze=!1,Be=-1;function Ue(){ze&&Ie&&(ze=!1,Ie.length?Fe=Ie.concat(Fe):Be=-1,Fe.length&&Ve())}function Ve(){if(!ze){var e=Re(Ue);ze=!0;for(var t=Fe.length;t;){for(Ie=Fe,Fe=[];++Be<t;)Ie&&Ie[Be].run();Be=-1,t=Fe.length}Ie=null,ze=!1,Ae(e)}}function He(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Fe.push(new We(e,t)),1!==Fe.length||ze||Re(Ve)}function We(e,t){this.fun=e,this.array=t}We.prototype.run=function(){this.fun.apply(null,this.array)};var Ze=y.performance||{};Ze.now||Ze.mozNow||Ze.msNow||Ze.oNow||Ze.webkitNow;var Ye="function"===typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},qe=/%[sdj%]/g;function Ge(e){if(!ht(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(Je(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,o=String(e).replace(qe,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),a=r[n];n<i;a=r[++n])ft(a)||!mt(a)?o+=" "+a:o+=" "+Je(a);return o}function Ke(e,t){if(pt(y.process))return function(){return Ke(e,t).apply(this,arguments)};var n=!1;function r(){return n||(console.error(t),n=!0),e.apply(this,arguments)}return r}var Qe,$e={};function Xe(e){if(pt(Qe)&&(Qe=""),e=e.toUpperCase(),!$e[e])if(new RegExp("\\b"+e+"\\b","i").test(Qe)){var t=0;$e[e]=function(){var n=Ge.apply(null,arguments);console.error("%s %d: %s",e,t,n)}}else $e[e]=function(){};return $e[e]}function Je(e,t){var n={seen:[],stylize:tt};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),ct(t)?n.showHidden=t:t&&xt(n,t),pt(n.showHidden)&&(n.showHidden=!1),pt(n.depth)&&(n.depth=2),pt(n.colors)&&(n.colors=!1),pt(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=et),rt(n,e,n.depth)}function et(e,t){var n=Je.styles[t];return n?"\x1b["+Je.colors[n][0]+"m"+e+"\x1b["+Je.colors[n][1]+"m":e}function tt(e,t){return e}function nt(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}function rt(e,t,n){if(e.customInspect&&t&&bt(t.inspect)&&t.inspect!==Je&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return ht(r)||(r=rt(e,r,n)),r}var i=it(e,t);if(i)return i;var o=Object.keys(t),a=nt(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),yt(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return ot(t);if(0===o.length){if(bt(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(vt(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(gt(t))return e.stylize(Date.prototype.toString.call(t),"date");if(yt(t))return ot(t)}var l,u="",c=!1,f=["{","}"];return ut(t)&&(c=!0,f=["[","]"]),bt(t)&&(u=" [Function"+(t.name?": "+t.name:"")+"]"),vt(t)&&(u=" "+RegExp.prototype.toString.call(t)),gt(t)&&(u=" "+Date.prototype.toUTCString.call(t)),yt(t)&&(u=" "+ot(t)),0!==o.length||c&&0!=t.length?n<0?vt(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=c?at(e,t,n,a,o):o.map((function(r){return st(e,t,n,a,r,c)})),e.seen.pop(),lt(l,u,f)):f[0]+u+f[1]}function it(e,t){if(pt(t))return e.stylize("undefined","undefined");if(ht(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return dt(t)?e.stylize(""+t,"number"):ct(t)?e.stylize(""+t,"boolean"):ft(t)?e.stylize("null","null"):void 0}function ot(e){return"["+Error.prototype.toString.call(e)+"]"}function at(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)wt(t,String(a))?o.push(st(e,t,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(st(e,t,n,r,i,!0))})),o}function st(e,t,n,r,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),wt(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=ft(n)?rt(e,l.value,null):rt(e,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),pt(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function lt(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function ut(e){return Array.isArray(e)}function ct(e){return"boolean"===typeof e}function ft(e){return null===e}function dt(e){return"number"===typeof e}function ht(e){return"string"===typeof e}function pt(e){return void 0===e}function vt(e){return mt(e)&&"[object RegExp]"===_t(e)}function mt(e){return"object"===typeof e&&null!==e}function gt(e){return mt(e)&&"[object Date]"===_t(e)}function yt(e){return mt(e)&&("[object Error]"===_t(e)||e instanceof Error)}function bt(e){return"function"===typeof e}function _t(e){return Object.prototype.toString.call(e)}function xt(e,t){if(!t||!mt(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function wt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function kt(){this.head=null,this.tail=null,this.length=0}Je.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Je.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},kt.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},kt.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},kt.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},kt.prototype.clear=function(){this.head=this.tail=null,this.length=0},kt.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},kt.prototype.concat=function(e){if(0===this.length)return R.alloc(0);if(1===this.length)return this.head.data;for(var t=R.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t};var Ct=R.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function St(e){if(e&&!Ct(e))throw new Error("Unknown encoding: "+e)}function Et(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),St(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=Mt;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Ot;break;default:return void(this.write=Tt)}this.charBuffer=new R(6),this.charReceived=0,this.charLength=0}function Tt(e){return e.toString(this.encoding)}function Mt(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function Ot(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}Et.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(e=e.slice(n,e.length),!((r=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(r=t.charCodeAt(i))>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},Et.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},Et.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t},Lt.ReadableState=Dt;var jt=Xe("stream");function Pt(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function Nt(e,t){return e.listeners(t).length}function Dt(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof jn&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new kt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new Et(e.encoding),this.encoding=e.encoding)}function Lt(e){if(!(this instanceof Lt))return new Lt(e);this._readableState=new Dt(e,this),this.readable=!0,e&&"function"===typeof e.read&&(this._read=e.read),i.call(this)}function Rt(e,t,n,r,i){var o=Bt(t,n);if(o)e.emit("error",o);else if(null===n)t.reading=!1,Ut(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!i){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&i){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else{var l;!t.decoder||i||r||(n=t.decoder.write(n),l=!t.objectMode&&0===n.length),i||(t.reading=!1),l||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&Vt(e))),Wt(e,t)}else i||(t.reading=!1);return At(t)}function At(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}Ye(Lt,i),Lt.prototype.push=function(e,t){var n=this._readableState;return n.objectMode||"string"!==typeof e||(t=t||n.defaultEncoding)!==n.encoding&&(e=R.from(e,t),t=""),Rt(this,n,e,t,!1)},Lt.prototype.unshift=function(e){return Rt(this,this._readableState,e,"",!0)},Lt.prototype.isPaused=function(){return!1===this._readableState.flowing},Lt.prototype.setEncoding=function(e){return this._readableState.decoder=new Et(e),this._readableState.encoding=e,this};var It=8388608;function Ft(e){return e>=It?e=It:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function zt(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=Ft(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function Bt(e,t){var n=null;return Me(t)||"string"===typeof t||null===t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function Ut(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,Vt(e)}}function Vt(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(jt("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?He(Ht,e):Ht(e))}function Ht(e){jt("emit readable"),e.emit("readable"),Qt(e)}function Wt(e,t){t.readingMore||(t.readingMore=!0,He(Zt,e,t))}function Zt(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(jt("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function Yt(e){return function(){var t=e._readableState;jt("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,Qt(e))}}function qt(e){jt("readable nexttick read 0"),e.read(0)}function Gt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,He(Kt,e,t))}function Kt(e,t){t.reading||(jt("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Qt(e),t.flowing&&!t.reading&&e.read(0)}function Qt(e){var t=e._readableState;for(jt("flow",t.flowing);t.flowing&&null!==e.read(););}function $t(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=Xt(e,t.buffer,t.decoder),n);var n}function Xt(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?Jt(e,t):en(e,t),r}function Jt(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}function en(e,t){var n=R.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}function tn(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,He(nn,t,e))}function nn(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function rn(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}function on(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function an(){}function sn(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}function ln(e,t){Object.defineProperty(this,"buffer",{get:Ke((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),e=e||{},this.objectMode=!!e.objectMode,t instanceof jn&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){gn(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Sn(this)}function un(e){if(!(this instanceof un)&&!(this instanceof jn))return new un(e);this._writableState=new ln(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev)),i.call(this)}function cn(e,t){var n=new Error("write after end");e.emit("error",n),He(t,n)}function fn(e,t,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):R.isBuffer(n)||"string"===typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),He(r,o),i=!1),i}function dn(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=R.from(t,n)),t}function hn(e,t,n,r,i){n=dn(t,n,r),R.isBuffer(n)&&(r="buffer");var o=t.objectMode?1:n.length;t.length+=o;var a=t.length<t.highWaterMark;if(a||(t.needDrain=!0),t.writing||t.corked){var s=t.lastBufferedRequest;t.lastBufferedRequest=new sn(n,r,i),s?s.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else pn(e,t,!1,o,n,r,i);return a}function pn(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function vn(e,t,n,r,i){--t.pendingcb,n?He(i,r):i(r),e._writableState.errorEmitted=!0,e.emit("error",r)}function mn(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function gn(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(mn(n),t)vn(e,n,r,t,i);else{var o=xn(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||_n(e,n),r?He(yn,e,n,o,i):yn(e,n,o,i)}}function yn(e,t,n,r){n||bn(e,t),t.pendingcb--,r(),kn(e,t)}function bn(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function _n(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var a=0;n;)i[a]=n,n=n.next,a+=1;pn(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new Sn(t)}else{for(;n;){var s=n.chunk,l=n.encoding,u=n.callback;if(pn(e,t,!1,t.objectMode?1:s.length,s,l,u),n=n.next,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function xn(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function wn(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function kn(e,t){var n=xn(t);return n&&(0===t.pendingcb?(wn(e,t),t.finished=!0,e.emit("finish")):wn(e,t)),n}function Cn(e,t,n){t.ending=!0,kn(e,t),n&&(t.finished?He(n):e.once("finish",n)),t.ended=!0,e.writable=!1}function Sn(e){var t=this;this.next=null,this.entry=null,this.finish=function(n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}Lt.prototype.read=function(e){jt("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return jt("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?tn(this):Vt(this),null;if(0===(e=zt(e,t))&&t.ended)return 0===t.length&&tn(this),null;var r,i=t.needReadable;return jt("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&jt("length less than watermark",i=!0),t.ended||t.reading?jt("reading or ended",i=!1):i&&(jt("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=zt(n,t))),null===(r=e>0?$t(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&tn(this)),null!==r&&this.emit("data",r),r},Lt.prototype._read=function(e){this.emit("error",new Error("not implemented"))},Lt.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,jt("pipe count=%d opts=%j",r.pipesCount,t);var i=t&&!1===t.end?u:a;function o(e){jt("onunpipe"),e===n&&u()}function a(){jt("onend"),e.end()}r.endEmitted?He(i):n.once("end",i),e.on("unpipe",o);var s=Yt(n);e.on("drain",s);var l=!1;function u(){jt("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",d),e.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",u),n.removeListener("data",f),l=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||s()}var c=!1;function f(t){jt("ondata"),c=!1,!1!==e.write(t)||c||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==on(r.pipes,e))&&!l&&(jt("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,c=!0),n.pause())}function d(t){jt("onerror",t),v(),e.removeListener("error",d),0===Nt(e,"error")&&e.emit("error",t)}function h(){e.removeListener("finish",p),v()}function p(){jt("onfinish"),e.removeListener("close",h),v()}function v(){jt("unpipe"),n.unpipe(e)}return n.on("data",f),Pt(e,"error",d),e.once("close",h),e.once("finish",p),e.emit("pipe",n),r.flowing||(jt("pipe resume"),n.resume()),e},Lt.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}var o=on(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},Lt.prototype.on=function(e,t){var n=i.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&Vt(this):He(qt,this))}return n},Lt.prototype.addListener=Lt.prototype.on,Lt.prototype.resume=function(){var e=this._readableState;return e.flowing||(jt("resume"),e.flowing=!0,Gt(this,e)),this},Lt.prototype.pause=function(){return jt("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(jt("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Lt.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",(function(){if(jt("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)})),e.on("data",(function(i){jt("wrapped data"),t.decoder&&(i=t.decoder.write(i)),(!t.objectMode||null!==i&&void 0!==i)&&(t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return rn(["error","close","destroy","pause","resume"],(function(t){e.on(t,r.emit.bind(r,t))})),r._read=function(t){jt("wrapped _read",t),n&&(n=!1,e.resume())},r},Lt._fromList=$t,un.WritableState=ln,Ye(un,i),ln.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},un.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},un.prototype.write=function(e,t,n){var r=this._writableState,i=!1;return"function"===typeof t&&(n=t,t=null),R.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),"function"!==typeof n&&(n=an),r.ended?cn(this,n):fn(this,r,e,n)&&(r.pendingcb++,i=hn(this,r,e,t,n)),i},un.prototype.cork=function(){this._writableState.corked++},un.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_n(this,e))},un.prototype.setDefaultEncoding=function(e){if("string"===typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},un.prototype._write=function(e,t,n){n(new Error("not implemented"))},un.prototype._writev=null,un.prototype.end=function(e,t,n){var r=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||Cn(this,r,n)},Ye(jn,Lt);for(var En,Tn=Object.keys(un.prototype),Mn=0;Mn<Tn.length;Mn++){var On=Tn[Mn];jn.prototype[On]||(jn.prototype[On]=un.prototype[On])}function jn(e){if(!(this instanceof jn))return new jn(e);Lt.call(this,e),un.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",Pn)}function Pn(){this.allowHalfOpen||this._writableState.ended||He(Nn,this)}function Nn(e){e.end()}function Dn(e){this.afterTransform=function(t,n){return Ln(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Ln(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!==n&&void 0!==n&&e.push(n),i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}function Rn(e){if(!(this instanceof Rn))return new Rn(e);jn.call(this,e),this._transformState=new Dn(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"===typeof e.transform&&(this._transform=e.transform),"function"===typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",(function(){"function"===typeof this._flush?this._flush((function(e){An(t,e)})):An(t)}))}function An(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=e._transformState;if(n.length)throw new Error("Calling transform done when ws.length != 0");if(r.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}function In(e){if(!(this instanceof In))return new In(e);Rn.call(this,e)}function Fn(){i.call(this)}function zn(e){return zn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zn(e)}function Bn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vn(e,t,n){return t&&Un(e.prototype,t),n&&Un(e,n),e}function Hn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Hn(e,t,n[t])}))}return e}function Zn(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qn(e,t)}function Yn(e){return Yn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yn(e)}function qn(e,t){return qn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qn(e,t)}function Gn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kn(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?Gn(e):t}function Qn(e){return Jn(e)||er(e)||nr()}function $n(e){return Xn(e)||er(e)||tr()}function Xn(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function Jn(e){if(Array.isArray(e))return e}function er(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function tr(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function nr(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function rr(){if("undefined"===typeof En){var e=new ArrayBuffer(2),t=new Uint8Array(e),n=new Uint16Array(e);if(t[0]=1,t[1]=2,258===n[0])En="BE";else{if(513!==n[0])throw new Error("unable to figure out endianess");En="LE"}}return En}function ir(){return"undefined"!==typeof y.location?y.location.hostname:""}function or(){return[]}function ar(){return 0}function sr(){return Number.MAX_VALUE}function lr(){return Number.MAX_VALUE}function ur(){return[]}function cr(){return"Browser"}function fr(){return"undefined"!==typeof y.navigator?y.navigator.appVersion:""}function dr(){}function hr(){}function pr(){return"/tmp"}Ye(Rn,jn),Rn.prototype.push=function(e,t){return this._transformState.needTransform=!1,jn.prototype.push.call(this,e,t)},Rn.prototype._transform=function(e,t,n){throw new Error("Not implemented")},Rn.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},Rn.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},Ye(In,Rn),In.prototype._transform=function(e,t,n){n(null,e)},Ye(Fn,i),Fn.Readable=Lt,Fn.Writable=un,Fn.Duplex=jn,Fn.Transform=Rn,Fn.PassThrough=In,Fn.Stream=Fn,Fn.prototype.pipe=function(e,t){var n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"===typeof e.destroy&&e.destroy())}function u(e){if(c(),0===i.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",r),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",u),e.on("error",u),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e};var vr={EOL:"\n",tmpdir:pr,tmpDir:pr,networkInterfaces:dr,getNetworkInterfaces:hr,release:fr,type:cr,cpus:ur,totalmem:lr,freemem:sr,uptime:ar,loadavg:or,hostname:ir,endianness:rr},mr="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},gr="Expected a function",yr="__lodash_hash_undefined__",br=1/0,_r="[object Function]",xr="[object GeneratorFunction]",wr="[object Symbol]",kr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cr=/^\w*$/,Sr=/^\./,Er=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tr=/[\\^$.*+?()[\]{}|]/g,Mr=/\\(\\)?/g,Or=/^\[object .+?Constructor\]$/,jr="object"==typeof mr&&mr&&mr.Object===Object&&mr,Pr="object"==typeof self&&self&&self.Object===Object&&self,Nr=jr||Pr||Function("return this")();function Dr(e,t){return null==e?void 0:e[t]}function Lr(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}var Rr=Array.prototype,Ar=Function.prototype,Ir=Object.prototype,Fr=Nr["__core-js_shared__"],zr=function(){var e=/[^.]+$/.exec(Fr&&Fr.keys&&Fr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Br=Ar.toString,Ur=Ir.hasOwnProperty,Vr=Ir.toString,Hr=RegExp("^"+Br.call(Ur).replace(Tr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wr=Nr.Symbol,Zr=Rr.splice,Yr=_i(Nr,"Map"),qr=_i(Object,"create"),Gr=Wr?Wr.prototype:void 0,Kr=Gr?Gr.toString:void 0;function Qr(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $r(){this.__data__=qr?qr(null):{}}function Xr(e){return this.has(e)&&delete this.__data__[e]}function Jr(e){var t=this.__data__;if(qr){var n=t[e];return n===yr?void 0:n}return Ur.call(t,e)?t[e]:void 0}function ei(e){var t=this.__data__;return qr?void 0!==t[e]:Ur.call(t,e)}function ti(e,t){return this.__data__[e]=qr&&void 0===t?yr:t,this}function ni(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ri(){this.__data__=[]}function ii(e){var t=this.__data__,n=pi(t,e);return!(n<0)&&(n==t.length-1?t.pop():Zr.call(t,n,1),!0)}function oi(e){var t=this.__data__,n=pi(t,e);return n<0?void 0:t[n][1]}function ai(e){return pi(this.__data__,e)>-1}function si(e,t){var n=this.__data__,r=pi(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function li(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ui(){this.__data__={hash:new Qr,map:new(Yr||ni),string:new Qr}}function ci(e){return bi(this,e).delete(e)}function fi(e){return bi(this,e).get(e)}function di(e){return bi(this,e).has(e)}function hi(e,t){return bi(this,e).set(e,t),this}function pi(e,t){for(var n=e.length;n--;)if(Mi(e[n][0],t))return n;return-1}function vi(e,t){for(var n=0,r=(t=xi(t,e)?[t]:yi(t)).length;null!=e&&n<r;)e=e[Si(t[n++])];return n&&n==r?e:void 0}function mi(e){return!(!Pi(e)||ki(e))&&(ji(e)||Lr(e)?Hr:Or).test(Ei(e))}function gi(e){if("string"==typeof e)return e;if(Di(e))return Kr?Kr.call(e):"";var t=e+"";return"0"==t&&1/e==-br?"-0":t}function yi(e){return Oi(e)?e:Ci(e)}function bi(e,t){var n=e.__data__;return wi(t)?n["string"==typeof t?"string":"hash"]:n.map}function _i(e,t){var n=Dr(e,t);return mi(n)?n:void 0}function xi(e,t){if(Oi(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Di(e))||Cr.test(e)||!kr.test(e)||null!=t&&e in Object(t)}function wi(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function ki(e){return!!zr&&zr in e}Qr.prototype.clear=$r,Qr.prototype.delete=Xr,Qr.prototype.get=Jr,Qr.prototype.has=ei,Qr.prototype.set=ti,ni.prototype.clear=ri,ni.prototype.delete=ii,ni.prototype.get=oi,ni.prototype.has=ai,ni.prototype.set=si,li.prototype.clear=ui,li.prototype.delete=ci,li.prototype.get=fi,li.prototype.has=di,li.prototype.set=hi;var Ci=Ti((function(e){e=Li(e);var t=[];return Sr.test(e)&&t.push(""),e.replace(Er,(function(e,n,r,i){t.push(r?i.replace(Mr,"$1"):n||e)})),t}));function Si(e){if("string"==typeof e||Di(e))return e;var t=e+"";return"0"==t&&1/e==-br?"-0":t}function Ei(e){if(null!=e){try{return Br.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ti(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(gr);var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(Ti.Cache||li),n}function Mi(e,t){return e===t||e!==e&&t!==t}Ti.Cache=li;var Oi=Array.isArray;function ji(e){var t=Pi(e)?Vr.call(e):"";return t==_r||t==xr}function Pi(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ni(e){return!!e&&"object"==typeof e}function Di(e){return"symbol"==typeof e||Ni(e)&&Vr.call(e)==wr}function Li(e){return null==e?"":gi(e)}function Ri(e,t,n){var r=null==e?void 0:vi(e,t);return void 0===r?n:r}var Ai=Ri;function Ii(e,t,n){return void 0===e[t]?n:e[t]}function Fi(e,t,n){var r=Array.isArray(t)?t:t.split("."),i=Qn(r),o=i[0],a=i.slice(1);return Wn({},e,Hn({},o,r.length>1?Fi(e[o]||{},a,n):n))}function zi(e,t){var n=Array.isArray(t)?t:t.split("."),r=Qn(n),i=r[0],o=r.slice(1);return"object"!==zn(e[i])?e:1===n.length?Object.keys(e).filter((function(e){return e!==i})).reduce((function(t,n){return Object.assign(t,Hn({},n,e[n]))}),{}):Object.keys(e).reduce((function(t,n){return Wn({},t,Hn({},n,n!==i?e[n]:zi(e[i],o)))}),{})}function Bi(e,t){try{return e.push.apply(e,$n(t)),e}catch(n){return e.concat(t)}}function Ui(e,t){var n=!0;return e.reduce((function(e,r){return null!==r&&void 0!==r||(r=""),n?(n=!1,"".concat(r)):"".concat(e).concat(t).concat(r)}),"")}var Vi={getProp:Ii,setProp:Fi,unsetProp:zi,fastJoin:Ui,flattenReducer:Bi},Hi=Vi.getProp,Wi=Vi.fastJoin,Zi=Vi.flattenReducer,Yi=function(){function e(t){Bn(this,e),this.opts=this.preprocessOpts(t)}return Vn(e,[{key:"preprocessOpts",value:function(e){var t=Object.assign({},e);return t.transforms=Array.isArray(t.transforms)?t.transforms:t.transforms?[t.transforms]:[],t.delimiter=t.delimiter||",",t.eol=t.eol||vr.EOL,t.quote="string"===typeof t.quote?t.quote:'"',t.escapedQuote="string"===typeof t.escapedQuote?t.escapedQuote:"".concat(t.quote).concat(t.quote),t.header=!1!==t.header,t.includeEmptyRows=t.includeEmptyRows||!1,t.withBOM=t.withBOM||!1,t}},{key:"preprocessFieldsInfo",value:function(e){var t=this;return e.map((function(e){if("string"===typeof e)return{label:e,value:e.includes(".")||e.includes("[")?function(n){return Ai(n,e,t.opts.defaultValue)}:function(n){return Hi(n,e,t.opts.defaultValue)}};if("object"===zn(e)){var n="default"in e?e.default:t.opts.defaultValue;if("string"===typeof e.value)return{label:e.label||e.value,value:e.value.includes(".")||e.value.includes("[")?function(t){return Ai(t,e.value,n)}:function(t){return Hi(t,e.value,n)}};if("function"===typeof e.value){var r=e.label||e.value.name||"",i={label:r,default:n};return{label:r,value:function(t){var r=e.value(t,i);return null===r||void 0===r?n:r}}}}throw new Error("Invalid field info option. "+JSON.stringify(e))}))}},{key:"getHeader",value:function(){var e=this;return Wi(this.opts.fields.map((function(t){return e.processValue(t.label)})),this.opts.delimiter)}},{key:"preprocessRow",value:function(e){return this.opts.transforms.reduce((function(e,t){return e.map((function(e){return t(e)})).reduce(Zi,[])}),[e])}},{key:"processRow",value:function(e){var t=this;if(e){var n=this.opts.fields.map((function(n){return t.processCell(e,n)}));if(this.opts.includeEmptyRows||!n.every((function(e){return void 0===e})))return Wi(n,this.opts.delimiter)}}},{key:"processCell",value:function(e,t){return this.processValue(t.value(e))}},{key:"processValue",value:function(e){if(null!==e&&void 0!==e){var t=zn(e);if("boolean"!==t&&"number"!==t&&"string"!==t){if(void 0===(e=JSON.stringify(e)))return;'"'===e[0]&&(e=e.replace(/^"(.+)"$/,"$1"))}return"string"===typeof e&&(this.opts.excelStrings?(e.includes(this.opts.quote)&&(e=e.replace(new RegExp(this.opts.quote,"g"),"".concat(this.opts.escapedQuote).concat(this.opts.escapedQuote))),e='"=""'.concat(e,'"""')):(e.includes(this.opts.quote)&&(e=e.replace(new RegExp(this.opts.quote,"g"),this.opts.escapedQuote)),e="".concat(this.opts.quote).concat(e).concat(this.opts.quote))),e}}}]),e}(),qi=Vi.fastJoin,Gi=Vi.flattenReducer,Ki=function(e){function t(e){var n;return Bn(this,t),(n=Kn(this,Yn(t).call(this,e))).opts.fields&&(n.opts.fields=n.preprocessFieldsInfo(n.opts.fields)),n}return Zn(t,e),Vn(t,[{key:"parse",value:function(e){var t=this.preprocessData(e);this.opts.fields||(this.opts.fields=t.reduce((function(e,t){return Object.keys(t).forEach((function(t){e.includes(t)||e.push(t)})),e}),[]),this.opts.fields=this.preprocessFieldsInfo(this.opts.fields));var n=this.opts.header?this.getHeader():"",r=this.processData(t);return(this.opts.withBOM?"\ufeff":"")+n+(n&&r?this.opts.eol:"")+r}},{key:"preprocessData",value:function(e){var t=this,n=Array.isArray(e)?e:[e];if(!this.opts.fields&&(0===n.length||"object"!==zn(n[0])))throw new Error('Data should not be empty or the "fields" option should be included');return 0===this.opts.transforms.length?n:n.map((function(e){return t.preprocessRow(e)})).reduce(Gi,[])}},{key:"processData",value:function(e){var t=this;return qi(e.map((function(e){return t.processRow(e)})).filter((function(e){return e})),this.opts.eol)}}]),t}(Yi),Qi={},$i=Qi.LEFT_BRACE=1,Xi=Qi.RIGHT_BRACE=2,Ji=Qi.LEFT_BRACKET=3,eo=Qi.RIGHT_BRACKET=4,to=Qi.COLON=5,no=Qi.COMMA=6,ro=Qi.TRUE=7,io=Qi.FALSE=8,oo=Qi.NULL=9,ao=Qi.STRING=10,so=Qi.NUMBER=11,lo=Qi.START=17,uo=Qi.STOP=18,co=Qi.TRUE1=33,fo=Qi.TRUE2=34,ho=Qi.TRUE3=35,po=Qi.FALSE1=49,vo=Qi.FALSE2=50,mo=Qi.FALSE3=51,go=Qi.FALSE4=52,yo=Qi.NULL1=65,bo=Qi.NULL2=66,_o=Qi.NULL3=67,xo=Qi.NUMBER1=81,wo=Qi.NUMBER3=83,ko=Qi.STRING1=97,Co=Qi.STRING2=98,So=Qi.STRING3=99,Eo=Qi.STRING4=100,To=Qi.STRING5=101,Mo=Qi.STRING6=102,Oo=Qi.VALUE=113,jo=Qi.KEY=114,Po=Qi.OBJECT=129,No=Qi.ARRAY=130,Do="\\".charCodeAt(0),Lo="/".charCodeAt(0),Ro="\b".charCodeAt(0),Ao="\f".charCodeAt(0),Io="\n".charCodeAt(0),Fo="\r".charCodeAt(0),zo="\t".charCodeAt(0),Bo=65536;function Uo(){this.tState=lo,this.value=void 0,this.string=void 0,this.stringBuffer=R.alloc?R.alloc(Bo):new R(Bo),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=Oo,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:new R(2),3:new R(3),4:new R(4)},this.offset=-1}Uo.toknam=function(e){for(var t=Object.keys(Qi),n=0,r=t.length;n<r;n++){var i=t[n];if(Qi[i]===e)return i}return e&&"0x"+e.toString(16)};var Vo=Uo.prototype;Vo.onError=function(e){throw e},Vo.charError=function(e,t){this.tState=uo,this.onError(new Error("Unexpected "+JSON.stringify(String.fromCharCode(e[t]))+" at position "+t+" in state "+Uo.toknam(this.tState)))},Vo.appendStringChar=function(e){this.stringBufferOffset>=Bo&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=e},Vo.appendStringBuf=function(e,t,n){var r=e.length;"number"===typeof t&&(r="number"===typeof n?n<0?e.length-t+n:n-t:e.length-t),r<0&&(r=0),this.stringBufferOffset+r>Bo&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),e.copy(this.stringBuffer,this.stringBufferOffset,t,n),this.stringBufferOffset+=r},Vo.write=function(e){var t;"string"===typeof e&&(e=new R(e));for(var n=0,r=e.length;n<r;n++)if(this.tState===lo){if(t=e[n],this.offset++,123===t)this.onToken($i,"{");else if(125===t)this.onToken(Xi,"}");else if(91===t)this.onToken(Ji,"[");else if(93===t)this.onToken(eo,"]");else if(58===t)this.onToken(to,":");else if(44===t)this.onToken(no,",");else if(116===t)this.tState=co;else if(102===t)this.tState=po;else if(110===t)this.tState=yo;else if(34===t)this.string="",this.stringBufferOffset=0,this.tState=ko;else if(45===t)this.string="-",this.tState=xo;else if(t>=48&&t<64)this.string=String.fromCharCode(t),this.tState=wo;else if(32!==t&&9!==t&&10!==t&&13!==t)return this.charError(e,n)}else if(this.tState===ko)if(t=e[n],this.bytes_remaining>0){for(var i=0;i<this.bytes_remaining;i++)this.temp_buffs[this.bytes_in_sequence][this.bytes_in_sequence-this.bytes_remaining+i]=e[i];this.appendStringBuf(this.temp_buffs[this.bytes_in_sequence]),this.bytes_in_sequence=this.bytes_remaining=0,n=n+i-1}else if(0===this.bytes_remaining&&t>=128){if(t<=193||t>244)return this.onError(new Error("Invalid UTF-8 character at position "+n+" in state "+Uo.toknam(this.tState)));if(t>=194&&t<=223&&(this.bytes_in_sequence=2),t>=224&&t<=239&&(this.bytes_in_sequence=3),t>=240&&t<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+n>e.length){for(var o=0;o<=e.length-1-n;o++)this.temp_buffs[this.bytes_in_sequence][o]=e[n+o];this.bytes_remaining=n+this.bytes_in_sequence-e.length,n=e.length-1}else this.appendStringBuf(e,n,n+this.bytes_in_sequence),n=n+this.bytes_in_sequence-1}else if(34===t)this.tState=lo,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(ao,this.string),this.offset+=R.byteLength(this.string,"utf8")+1,this.string=void 0;else if(92===t)this.tState=Co;else{if(!(t>=32))return this.charError(e,n);this.appendStringChar(t)}else if(this.tState===Co)if(34===(t=e[n]))this.appendStringChar(t),this.tState=ko;else if(92===t)this.appendStringChar(Do),this.tState=ko;else if(47===t)this.appendStringChar(Lo),this.tState=ko;else if(98===t)this.appendStringChar(Ro),this.tState=ko;else if(102===t)this.appendStringChar(Ao),this.tState=ko;else if(110===t)this.appendStringChar(Io),this.tState=ko;else if(114===t)this.appendStringChar(Fo),this.tState=ko;else if(116===t)this.appendStringChar(zo),this.tState=ko;else{if(117!==t)return this.charError(e,n);this.unicode="",this.tState=So}else if(this.tState===So||this.tState===Eo||this.tState===To||this.tState===Mo){if(!((t=e[n])>=48&&t<64||t>64&&t<=70||t>96&&t<=102))return this.charError(e,n);if(this.unicode+=String.fromCharCode(t),this.tState++===Mo){var a=parseInt(this.unicode,16);this.unicode=void 0,void 0!==this.highSurrogate&&a>=56320&&a<57344?(this.appendStringBuf(new R(String.fromCharCode(this.highSurrogate,a))),this.highSurrogate=void 0):void 0===this.highSurrogate&&a>=55296&&a<56320?this.highSurrogate=a:(void 0!==this.highSurrogate&&(this.appendStringBuf(new R(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new R(String.fromCharCode(a)))),this.tState=ko}}else if(this.tState===xo||this.tState===wo)switch(t=e[n]){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(t),this.tState=wo;break;default:this.tState=lo;var s=Number(this.string);if(isNaN(s))return this.charError(e,n);this.string.match(/[0-9]+/)==this.string&&s.toString()!=this.string?this.onToken(ao,this.string):this.onToken(so,s),this.offset+=this.string.length-1,this.string=void 0,n--}else if(this.tState===co){if(114!==e[n])return this.charError(e,n);this.tState=fo}else if(this.tState===fo){if(117!==e[n])return this.charError(e,n);this.tState=ho}else if(this.tState===ho){if(101!==e[n])return this.charError(e,n);this.tState=lo,this.onToken(ro,!0),this.offset+=3}else if(this.tState===po){if(97!==e[n])return this.charError(e,n);this.tState=vo}else if(this.tState===vo){if(108!==e[n])return this.charError(e,n);this.tState=mo}else if(this.tState===mo){if(115!==e[n])return this.charError(e,n);this.tState=go}else if(this.tState===go){if(101!==e[n])return this.charError(e,n);this.tState=lo,this.onToken(io,!1),this.offset+=4}else if(this.tState===yo){if(117!==e[n])return this.charError(e,n);this.tState=bo}else if(this.tState===bo){if(108!==e[n])return this.charError(e,n);this.tState=_o}else if(this.tState===_o){if(108!==e[n])return this.charError(e,n);this.tState=lo,this.onToken(oo,null),this.offset+=3}},Vo.onToken=function(e,t){},Vo.parseError=function(e,t){this.tState=uo,this.onError(new Error("Unexpected "+Uo.toknam(e)+(t?"("+JSON.stringify(t)+")":"")+" in state "+Uo.toknam(this.state)))},Vo.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})},Vo.pop=function(){var e=this.value,t=this.stack.pop();this.value=t.value,this.key=t.key,this.mode=t.mode,this.emit(e),this.mode||(this.state=Oo)},Vo.emit=function(e){this.mode&&(this.state=no),this.onValue(e)},Vo.onValue=function(e){},Vo.onToken=function(e,t){if(this.state===Oo)if(e===ao||e===so||e===ro||e===io||e===oo)this.value&&(this.value[this.key]=t),this.emit(t);else if(e===$i)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=jo,this.mode=Po;else if(e===Ji)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=No,this.state=Oo;else if(e===Xi){if(this.mode!==Po)return this.parseError(e,t);this.pop()}else{if(e!==eo)return this.parseError(e,t);if(this.mode!==No)return this.parseError(e,t);this.pop()}else if(this.state===jo)if(e===ao)this.key=t,this.state=to;else{if(e!==Xi)return this.parseError(e,t);this.pop()}else if(this.state===to){if(e!==to)return this.parseError(e,t);this.state=Oo}else{if(this.state!==no)return this.parseError(e,t);if(e===no)this.mode===No?(this.key++,this.state=Oo):this.mode===Po&&(this.state=jo);else{if(!(e===eo&&this.mode===No||e===Xi&&this.mode===Po))return this.parseError(e,t);this.pop()}}},Uo.C=Qi;var Ho=Uo,Wo=function(e){function t(e,n){var r;return Bn(this,t),r=Kn(this,Yn(t).call(this,n)),Object.getOwnPropertyNames(Yi.prototype).forEach((function(e){return r[e]=Yi.prototype[e]})),r.opts=r.preprocessOpts(e),r._data="",r._hasWritten=!1,r._readableState.objectMode?r.initObjectModeParse():r.opts.ndjson?r.initNDJSONParse():r.initJSONParser(),r.opts.withBOM&&r.push("\ufeff"),r.opts.fields&&(r.opts.fields=r.preprocessFieldsInfo(r.opts.fields),r.pushHeader()),r}return Zn(t,e),Vn(t,[{key:"initObjectModeParse",value:function(){var e=this;this.parser={write:function(t){e.pushLine(t)},getPendingData:function(){}}}},{key:"initNDJSONParse",value:function(){var e=this;this.parser={_data:"",write:function(t){this._data+=t.toString();var n=this._data.split("\n").map((function(e){return e.trim()})).filter((function(e){return""!==e})),r=!1;n.forEach((function(t,i){try{e.pushLine(JSON.parse(t))}catch(o){i===n.length-1?r=!0:(o.message="Invalid JSON (".concat(t,")"),e.emit("error",o))}})),this._data=r?this._data.slice(this._data.lastIndexOf("\n")):""},getPendingData:function(){return this._data}}}},{key:"initJSONParser",value:function(){var e=this;this.parser=new Ho,this.parser.onValue=function(t){this.stack.length===this.depthToEmit&&e.pushLine(t)},this.parser._onToken=this.parser.onToken,this.parser.onToken=function(t,n){e.parser._onToken(t,n),0!==this.stack.length||e.opts.fields||this.mode===Ho.C.ARRAY||this.mode===Ho.C.OBJECT||this.onError(new Error('Data should not be empty or the "fields" option should be included')),1===this.stack.length&&(void 0===this.depthToEmit&&(this.depthToEmit=this.mode===Ho.C.ARRAY?1:0),0!==this.depthToEmit&&1===this.stack.length&&(this.value=void 0))},this.parser.getPendingData=function(){return this.value},this.parser.onError=function(t){t.message.includes("Unexpected")&&(t.message="Invalid JSON (".concat(t.message,")")),e.emit("error",t)}}},{key:"_transform",value:function(e,t,n){this.parser.write(e),n()}},{key:"_flush",value:function(e){this.parser.getPendingData()&&e(new Error("Invalid data received from stdin",this.parser.getPendingData())),e()}},{key:"pushHeader",value:function(){if(this.opts.header){var e=this.getHeader();this.emit("header",e),this.push(e),this._hasWritten=!0}}},{key:"pushLine",value:function(e){var t=this,n=this.preprocessRow(e);this._hasWritten||(this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(Object.keys(n[0])),this.pushHeader()),n.forEach((function(e){var n=t.processRow(e,t.opts);void 0!==n&&(t.emit("line",n),t.push(t._hasWritten?t.opts.eol+n:n),t._hasWritten=!0)}))}}]),t}(Fn.Transform),Zo=Wo,Yo=Fn.Transform,qo=Vi.fastJoin,Go=function(){function e(t,n){Bn(this,e),this.input=new Yo(n),this.input._read=function(){},this.transform=new Zo(t,n),this.processor=this.input.pipe(this.transform)}return Vn(e,[{key:"fromInput",value:function(e){if(this._input)throw new Error("Async parser already has an input.");return this._input=e,this.input=this._input.pipe(this.processor),this}},{key:"throughTransform",value:function(e){if(this._output)throw new Error("Can't add transforms once an output has been added.");return this.processor=this.processor.pipe(e),this}},{key:"toOutput",value:function(e){if(this._output)throw new Error("Async parser already has an output.");return this._output=e,this.processor=this.processor.pipe(e),this}},{key:"promise",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return new Promise((function(n,r){if(t){var i=[];e.processor.on("data",(function(e){return i.push(e.toString())})).on("finish",(function(){return n(qo(i,""))})).on("error",(function(e){return r(e)}))}else e.processor.on("finish",(function(){return n()})).on("error",(function(e){return r(e)}))}))}}]),e}(),Ko=Go;function Qo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.objects,n=void 0===t||t,r=e.arrays,i=void 0!==r&&r,o=e.separator,a=void 0===o?".":o;function s(e,t,r){return Object.keys(e).forEach((function(o){var l=r?"".concat(r).concat(a).concat(o):o,u=e[o];n&&"object"===zn(u)&&null!==u&&!Array.isArray(u)&&"[object Function]"!==Object.prototype.toString.call(u.toJSON)&&Object.keys(u).length||i&&Array.isArray(u)?s(u,t,l):t[l]=u})),t}return function(e){return s(e,{})}}var $o=Qo,Xo=Vi.setProp,Jo=Vi.unsetProp,ea=Vi.flattenReducer;function ta(e,t){return Object.keys(e).reduce((function(n,r){var i=t?"".concat(t,".").concat(r):r,o=e[r];return"object"===zn(o)&&null!==o&&!Array.isArray(o)&&"[object Function]"!==Object.prototype.toString.call(o.toJSON)&&Object.keys(o).length?n=n.concat(ta(o,i)):Array.isArray(o)&&(n.push(i),n=n.concat(o.map((function(e){return ta(e,i)})).reduce(ea,[]).filter((function(e,t,n){return n.indexOf(e)!==t})))),n}),[])}function na(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.paths,n=void 0===t?void 0:t,r=e.blankOut,i=void 0!==r&&r;function o(e,t){return e.map((function(e){var n=Ai(e,t);return Array.isArray(n)?n.length?n.map((function(n,r){return Xo(i&&r>0?{}:e,t,n)})):Jo(e,t):e})).reduce(ea,[])}return n=Array.isArray(n)?n:n?[n]:void 0,function(e){return(n||ta(e)).reduce(o,[e])}}var ra=na,ia=Fn.Readable,oa=Ki,aa=Ko,sa=Zo,la=function(e,t){return new Ki(t).parse(e)},ua=function(e,t,n){try{e instanceof ia||(n=Object.assign({},n,{objectMode:!0}));var r=new Ko(t,n),i=r.promise();return Array.isArray(e)?(e.forEach((function(e){return r.input.push(e)})),r.input.push(null)):e instanceof ia?r.fromInput(e):(r.input.push(e),r.input.push(null)),i}catch(o){return Promise.reject(o)}},ca={flatten:$o,unwind:ra},fa={Parser:oa,AsyncParser:aa,Transform:sa,parse:la,parseAsync:ua,transforms:ca};e.AsyncParser=aa,e.Parser=oa,e.Transform=sa,e.default=fa,e.parse=la,e.parseAsync=ua,e.transforms=ca,Object.defineProperty(e,"__esModule",{value:!0})}(t)},470:function(e,t){!function(e){"use strict";var t="1.8.0";function n(e){var t,n,r,i;for(n=1,r=arguments.length;n<r;n++)for(t in i=arguments[n])e[t]=i[t];return e}var r=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}();function i(e,t){var n=Array.prototype.slice;if(e.bind)return e.bind.apply(e,n.call(arguments,1));var r=n.call(arguments,2);return function(){return e.apply(t,r.length?r.concat(n.call(arguments)):arguments)}}var o=0;function a(e){return"_leaflet_id"in e||(e._leaflet_id=++o),e._leaflet_id}function s(e,t,n){var r,i,o,a;return a=function(){r=!1,i&&(o.apply(n,i),i=!1)},o=function(){r?i=arguments:(e.apply(n,arguments),setTimeout(a,t),r=!0)},o}function l(e,t,n){var r=t[1],i=t[0],o=r-i;return e===r&&n?e:((e-i)%o+o)%o+i}function u(){return!1}function c(e,t){if(!1===t)return e;var n=Math.pow(10,void 0===t?6:t);return Math.round(e*n)/n}function f(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function d(e){return f(e).split(/\s+/)}function h(e,t){for(var n in Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?r(e.options):{}),t)e.options[n]=t[n];return e.options}function p(e,t,n){var r=[];for(var i in e)r.push(encodeURIComponent(n?i.toUpperCase():i)+"="+encodeURIComponent(e[i]));return(t&&-1!==t.indexOf("?")?"&":"?")+r.join("&")}var v=/\{ *([\w_ -]+) *\}/g;function m(e,t){return e.replace(v,(function(e,n){var r=t[n];if(void 0===r)throw new Error("No value provided for variable "+e);return"function"===typeof r&&(r=r(t)),r}))}var g=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function y(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}var b="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function _(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var x=0;function w(e){var t=+new Date,n=Math.max(0,16-(t-x));return x=t+n,window.setTimeout(e,n)}var k=window.requestAnimationFrame||_("RequestAnimationFrame")||w,C=window.cancelAnimationFrame||_("CancelAnimationFrame")||_("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};function S(e,t,n){if(!n||k!==w)return k.call(window,i(e,t));e.call(t)}function E(e){e&&C.call(window,e)}var T={__proto__:null,extend:n,create:r,bind:i,get lastId(){return o},stamp:a,throttle:s,wrapNum:l,falseFn:u,formatNum:c,trim:f,splitWords:d,setOptions:h,getParamString:p,template:m,isArray:g,indexOf:y,emptyImageUrl:b,requestFn:k,cancelFn:C,requestAnimFrame:S,cancelAnimFrame:E};function M(){}function O(e){if("undefined"!==typeof L&&L&&L.Mixin){e=g(e)?e:[e];for(var t=0;t<e.length;t++)e[t]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}M.extend=function(e){var t=function(){h(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},i=t.__super__=this.prototype,o=r(i);for(var a in o.constructor=t,t.prototype=o,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(t[a]=this[a]);return e.statics&&n(t,e.statics),e.includes&&(O(e.includes),n.apply(null,[o].concat(e.includes))),n(o,e),delete o.statics,delete o.includes,o.options&&(o.options=i.options?r(i.options):{},n(o.options,e.options)),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=o._initHooks.length;e<t;e++)o._initHooks[e].call(this)}},t},M.include=function(e){var t=this.prototype.options;return n(this.prototype,e),e.options&&(this.prototype.options=t,this.mergeOptions(e.options)),this},M.mergeOptions=function(e){return n(this.prototype.options,e),this},M.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1),n="function"===typeof e?e:function(){this[e].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var j={on:function(e,t,n){if("object"===typeof e)for(var r in e)this._on(r,e[r],t);else for(var i=0,o=(e=d(e)).length;i<o;i++)this._on(e[i],t,n);return this},off:function(e,t,n){if(arguments.length)if("object"===typeof e)for(var r in e)this._off(r,e[r],t);else{e=d(e);for(var i=1===arguments.length,o=0,a=e.length;o<a;o++)i?this._off(e[o]):this._off(e[o],t,n)}else delete this._events;return this},_on:function(e,t,n){if("function"===typeof t){this._events=this._events||{};var r=this._events[e];r||(r=[],this._events[e]=r),n===this&&(n=void 0);for(var i={fn:t,ctx:n},o=r,a=0,s=o.length;a<s;a++)if(o[a].fn===t&&o[a].ctx===n)return;o.push(i)}else console.warn("wrong listener type: "+typeof t)},_off:function(e,t,n){var r,i,o;if(this._events&&(r=this._events[e]))if(1!==arguments.length)if(n===this&&(n=void 0),"function"===typeof t){for(i=0,o=r.length;i<o;i++){var a=r[i];if(a.ctx===n&&a.fn===t)return this._firingCount&&(a.fn=u,this._events[e]=r=r.slice()),void r.splice(i,1)}console.warn("listener not found")}else console.warn("wrong listener type: "+typeof t);else{if(this._firingCount)for(i=0,o=r.length;i<o;i++)r[i].fn=u;delete this._events[e]}},fire:function(e,t,r){if(!this.listens(e,r))return this;var i=n({},t,{type:e,target:this,sourceTarget:t&&t.sourceTarget||this});if(this._events){var o=this._events[e];if(o){this._firingCount=this._firingCount+1||1;for(var a=0,s=o.length;a<s;a++){var l=o[a];l.fn.call(l.ctx||this,i)}this._firingCount--}}return r&&this._propagateEvent(i),this},listens:function(e,t){"string"!==typeof e&&console.warn('"string" type argument expected');var n=this._events&&this._events[e];if(n&&n.length)return!0;if(t)for(var r in this._eventParents)if(this._eventParents[r].listens(e,t))return!0;return!1},once:function(e,t,n){if("object"===typeof e){for(var r in e)this.once(r,e[r],t);return this}var o=i((function(){this.off(e,t,n).off(e,o,n)}),this);return this.on(e,t,n).on(e,o,n)},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[a(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[a(e)],this},_propagateEvent:function(e){for(var t in this._eventParents)this._eventParents[t].fire(e.type,n({layer:e.target,propagatedFrom:e.target},e),!0)}};j.addEventListener=j.on,j.removeEventListener=j.clearAllEventListeners=j.off,j.addOneTimeEventListener=j.once,j.fireEvent=j.fire,j.hasEventListeners=j.listens;var P=M.extend(j);function N(e,t,n){this.x=n?Math.round(e):e,this.y=n?Math.round(t):t}var D=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};function R(e,t,n){return e instanceof N?e:g(e)?new N(e[0],e[1]):void 0===e||null===e?e:"object"===typeof e&&"x"in e&&"y"in e?new N(e.x,e.y):new N(e,t,n)}function A(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}function I(e,t){return!e||e instanceof A?e:new A(e,t)}function F(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}function z(e,t){return e instanceof F?e:new F(e,t)}function B(e,t,n){if(isNaN(e)||isNaN(t))throw new Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=+e,this.lng=+t,void 0!==n&&(this.alt=+n)}function U(e,t,n){return e instanceof B?e:g(e)&&"object"!==typeof e[0]?3===e.length?new B(e[0],e[1],e[2]):2===e.length?new B(e[0],e[1]):null:void 0===e||null===e?e:"object"===typeof e&&"lat"in e?new B(e.lat,"lng"in e?e.lng:e.lon,e.alt):void 0===t?null:new B(e,t,n)}N.prototype={clone:function(){return new N(this.x,this.y)},add:function(e){return this.clone()._add(R(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(R(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new N(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new N(this.x/e.x,this.y/e.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=D(this.x),this.y=D(this.y),this},distanceTo:function(e){var t=(e=R(e)).x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return(e=R(e)).x===this.x&&e.y===this.y},contains:function(e){return e=R(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+c(this.x)+", "+c(this.y)+")"}},A.prototype={extend:function(e){return e=R(e),this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(e.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(e.y,this.max.y)):(this.min=e.clone(),this.max=e.clone()),this},getCenter:function(e){return new N((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return new N(this.min.x,this.max.y)},getTopRight:function(){return new N(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(e){var t,n;return(e="number"===typeof e[0]||e instanceof N?R(e):I(e))instanceof A?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=I(e);var t=this.min,n=this.max,r=e.min,i=e.max,o=i.x>=t.x&&r.x<=n.x,a=i.y>=t.y&&r.y<=n.y;return o&&a},overlaps:function(e){e=I(e);var t=this.min,n=this.max,r=e.min,i=e.max,o=i.x>t.x&&r.x<n.x,a=i.y>t.y&&r.y<n.y;return o&&a},isValid:function(){return!(!this.min||!this.max)}},F.prototype={extend:function(e){var t,n,r=this._southWest,i=this._northEast;if(e instanceof B)t=e,n=e;else{if(!(e instanceof F))return e?this.extend(U(e)||z(e)):this;if(t=e._southWest,n=e._northEast,!t||!n)return this}return r||i?(r.lat=Math.min(t.lat,r.lat),r.lng=Math.min(t.lng,r.lng),i.lat=Math.max(n.lat,i.lat),i.lng=Math.max(n.lng,i.lng)):(this._southWest=new B(t.lat,t.lng),this._northEast=new B(n.lat,n.lng)),this},pad:function(e){var t=this._southWest,n=this._northEast,r=Math.abs(t.lat-n.lat)*e,i=Math.abs(t.lng-n.lng)*e;return new F(new B(t.lat-r,t.lng-i),new B(n.lat+r,n.lng+i))},getCenter:function(){return new B((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new B(this.getNorth(),this.getWest())},getSouthEast:function(){return new B(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(e){e="number"===typeof e[0]||e instanceof B||"lat"in e?U(e):z(e);var t,n,r=this._southWest,i=this._northEast;return e instanceof F?(t=e.getSouthWest(),n=e.getNorthEast()):t=n=e,t.lat>=r.lat&&n.lat<=i.lat&&t.lng>=r.lng&&n.lng<=i.lng},intersects:function(e){e=z(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),o=i.lat>=t.lat&&r.lat<=n.lat,a=i.lng>=t.lng&&r.lng<=n.lng;return o&&a},overlaps:function(e){e=z(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),o=i.lat>t.lat&&r.lat<n.lat,a=i.lng>t.lng&&r.lng<n.lng;return o&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,t){return!!e&&(e=z(e),this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t))},isValid:function(){return!(!this._southWest||!this._northEast)}},B.prototype={equals:function(e,t){return!!e&&(e=U(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(void 0===t?1e-9:t))},toString:function(e){return"LatLng("+c(this.lat,e)+", "+c(this.lng,e)+")"},distanceTo:function(e){return H.distance(this,U(e))},wrap:function(){return H.wrapLatLng(this)},toBounds:function(e){var t=180*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return z([this.lat-t,this.lng-n],[this.lat+t,this.lng+n])},clone:function(){return new B(this.lat,this.lng,this.alt)}};var V={latLngToPoint:function(e,t){var n=this.projection.project(e),r=this.scale(t);return this.transformation._transform(n,r)},pointToLatLng:function(e,t){var n=this.scale(t),r=this.transformation.untransform(e,n);return this.projection.unproject(r)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*Math.pow(2,e)},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){if(this.infinite)return null;var t=this.projection.bounds,n=this.scale(e);return new A(this.transformation.transform(t.min,n),this.transformation.transform(t.max,n))},infinite:!1,wrapLatLng:function(e){var t=this.wrapLng?l(e.lng,this.wrapLng,!0):e.lng;return new B(this.wrapLat?l(e.lat,this.wrapLat,!0):e.lat,t,e.alt)},wrapLatLngBounds:function(e){var t=e.getCenter(),n=this.wrapLatLng(t),r=t.lat-n.lat,i=t.lng-n.lng;if(0===r&&0===i)return e;var o=e.getSouthWest(),a=e.getNorthEast();return new F(new B(o.lat-r,o.lng-i),new B(a.lat-r,a.lng-i))}},H=n({},V,{wrapLng:[-180,180],R:6371e3,distance:function(e,t){var n=Math.PI/180,r=e.lat*n,i=t.lat*n,o=Math.sin((t.lat-e.lat)*n/2),a=Math.sin((t.lng-e.lng)*n/2),s=o*o+Math.cos(r)*Math.cos(i)*a*a,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),W=6378137,Z={R:W,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,n=this.MAX_LATITUDE,r=Math.max(Math.min(n,e.lat),-n),i=Math.sin(r*t);return new N(this.R*e.lng*t,this.R*Math.log((1+i)/(1-i))/2)},unproject:function(e){var t=180/Math.PI;return new B((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:function(){var e=W*Math.PI;return new A([-e,-e],[e,e])}()};function Y(e,t,n,r){if(g(e))return this._a=e[0],this._b=e[1],this._c=e[2],void(this._d=e[3]);this._a=e,this._b=t,this._c=n,this._d=r}function q(e,t,n,r){return new Y(e,t,n,r)}Y.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return t=t||1,e.x=t*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return t=t||1,new N((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}};var G=n({},H,{code:"EPSG:3857",projection:Z,transformation:function(){var e=.5/(Math.PI*Z.R);return q(e,.5,-e,.5)}()}),K=n({},G,{code:"EPSG:900913"});function Q(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function $(e,t){var n,r,i,o,a,s,l="";for(n=0,i=e.length;n<i;n++){for(r=0,o=(a=e[n]).length;r<o;r++)l+=(r?"L":"M")+(s=a[r]).x+" "+s.y;l+=t?Le.svg?"z":"x":""}return l||"M0 0"}var X=document.documentElement.style,J="ActiveXObject"in window,ee=J&&!document.addEventListener,te="msLaunchUri"in navigator&&!("documentMode"in document),ne=De("webkit"),re=De("android"),ie=De("android 2")||De("android 3"),oe=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ae=re&&De("Google")&&oe<537&&!("AudioNode"in window),se=!!window.opera,le=!te&&De("chrome"),ue=De("gecko")&&!ne&&!se&&!J,ce=!le&&De("safari"),fe=De("phantom"),de="OTransition"in X,he=0===navigator.platform.indexOf("Win"),pe=J&&"transition"in X,ve="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ie,me="MozPerspective"in X,ge=!window.L_DISABLE_3D&&(pe||ve||me)&&!de&&!fe,ye="undefined"!==typeof orientation||De("mobile"),be=ye&&ne,_e=ye&&ve,xe=!window.PointerEvent&&window.MSPointerEvent,we=!(!window.PointerEvent&&!xe),ke="ontouchstart"in window||!!window.TouchEvent,Ce=!window.L_NO_TOUCH&&(ke||we),Se=ye&&se,Ee=ye&&ue,Te=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Me=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",u,t),window.removeEventListener("testPassiveEventSupport",u,t)}catch(n){}return e}(),Oe=!!document.createElement("canvas").getContext,je=!(!document.createElementNS||!Q("svg").createSVGRect),Pe=!!je&&function(){var e=document.createElement("div");return e.innerHTML="<svg/>","http://www.w3.org/2000/svg"===(e.firstChild&&e.firstChild.namespaceURI)}(),Ne=!je&&function(){try{var e=document.createElement("div");e.innerHTML='<v:shape adj="1"/>';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"===typeof t.adj}catch(n){return!1}}();function De(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var Le={ie:J,ielt9:ee,edge:te,webkit:ne,android:re,android23:ie,androidStock:ae,opera:se,chrome:le,gecko:ue,safari:ce,phantom:fe,opera12:de,win:he,ie3d:pe,webkit3d:ve,gecko3d:me,any3d:ge,mobile:ye,mobileWebkit:be,mobileWebkit3d:_e,msPointer:xe,pointer:we,touch:Ce,touchNative:ke,mobileOpera:Se,mobileGecko:Ee,retina:Te,passiveEvents:Me,canvas:Oe,svg:je,vml:Ne,inlineSvg:Pe},Re=Le.msPointer?"MSPointerDown":"pointerdown",Ae=Le.msPointer?"MSPointerMove":"pointermove",Ie=Le.msPointer?"MSPointerUp":"pointerup",Fe=Le.msPointer?"MSPointerCancel":"pointercancel",ze={touchstart:Re,touchmove:Ae,touchend:Ie,touchcancel:Fe},Be={touchstart:Qe,touchmove:Ke,touchend:Ke,touchcancel:Ke},Ue={},Ve=!1;function He(e,t,n){return"touchstart"===t&&Ge(),Be[t]?(n=Be[t].bind(this,n),e.addEventListener(ze[t],n,!1),n):(console.warn("wrong event specified:",t),L.Util.falseFn)}function We(e,t,n){ze[t]?e.removeEventListener(ze[t],n,!1):console.warn("wrong event specified:",t)}function Ze(e){Ue[e.pointerId]=e}function Ye(e){Ue[e.pointerId]&&(Ue[e.pointerId]=e)}function qe(e){delete Ue[e.pointerId]}function Ge(){Ve||(document.addEventListener(Re,Ze,!0),document.addEventListener(Ae,Ye,!0),document.addEventListener(Ie,qe,!0),document.addEventListener(Fe,qe,!0),Ve=!0)}function Ke(e,t){if(t.pointerType!==(t.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in t.touches=[],Ue)t.touches.push(Ue[n]);t.changedTouches=[t],e(t)}}function Qe(e,t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Zt(t),Ke(e,t)}function $e(e){var t,n,r={};for(n in e)t=e[n],r[n]=t&&t.bind?t.bind(e):t;return e=r,r.type="dblclick",r.detail=2,r.isTrusted=!1,r._simulated=!0,r}var Xe=200;function Je(e,t){e.addEventListener("dblclick",t);var n,r=0;function i(e){if(1===e.detail){if("mouse"!==e.pointerType&&(!e.sourceCapabilities||e.sourceCapabilities.firesTouchEvents)){var i=Date.now();i-r<=Xe?2===++n&&t($e(e)):n=1,r=i}}else n=e.detail}return e.addEventListener("click",i),{dblclick:t,simDblclick:i}}function et(e,t){e.removeEventListener("dblclick",t.dblclick),e.removeEventListener("click",t.simDblclick)}var tt,nt,rt,it,ot,at=kt(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),st=kt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),lt="webkitTransition"===st||"OTransition"===st?st+"End":"transitionend";function ut(e){return"string"===typeof e?document.getElementById(e):e}function ct(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return"auto"===n?null:n}function ft(e,t,n){var r=document.createElement(e);return r.className=t||"",n&&n.appendChild(r),r}function dt(e){var t=e.parentNode;t&&t.removeChild(e)}function ht(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function pt(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function vt(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function mt(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=_t(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}function gt(e,t){if(void 0!==e.classList)for(var n=d(t),r=0,i=n.length;r<i;r++)e.classList.add(n[r]);else if(!mt(e,t)){var o=_t(e);bt(e,(o?o+" ":"")+t)}}function yt(e,t){void 0!==e.classList?e.classList.remove(t):bt(e,f((" "+_t(e)+" ").replace(" "+t+" "," ")))}function bt(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}function _t(e){return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}function xt(e,t){"opacity"in e.style?e.style.opacity=t:"filter"in e.style&&wt(e,t)}function wt(e,t){var n=!1,r="DXImageTransform.Microsoft.Alpha";try{n=e.filters.item(r)}catch(i){if(1===t)return}t=Math.round(100*t),n?(n.Enabled=100!==t,n.Opacity=t):e.style.filter+=" progid:"+r+"(opacity="+t+")"}function kt(e){for(var t=document.documentElement.style,n=0;n<e.length;n++)if(e[n]in t)return e[n];return!1}function Ct(e,t,n){var r=t||new N(0,0);e.style[at]=(Le.ie3d?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(n?" scale("+n+")":"")}function St(e,t){e._leaflet_pos=t,Le.any3d?Ct(e,t):(e.style.left=t.x+"px",e.style.top=t.y+"px")}function Et(e){return e._leaflet_pos||new N(0,0)}if("onselectstart"in document)tt=function(){Rt(window,"selectstart",Zt)},nt=function(){It(window,"selectstart",Zt)};else{var Tt=kt(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);tt=function(){if(Tt){var e=document.documentElement.style;rt=e[Tt],e[Tt]="none"}},nt=function(){Tt&&(document.documentElement.style[Tt]=rt,rt=void 0)}}function Mt(){Rt(window,"dragstart",Zt)}function Ot(){It(window,"dragstart",Zt)}function jt(e){for(;-1===e.tabIndex;)e=e.parentNode;e.style&&(Pt(),it=e,ot=e.style.outline,e.style.outline="none",Rt(window,"keydown",Pt))}function Pt(){it&&(it.style.outline=ot,it=void 0,ot=void 0,It(window,"keydown",Pt))}function Nt(e){do{e=e.parentNode}while((!e.offsetWidth||!e.offsetHeight)&&e!==document.body);return e}function Dt(e){var t=e.getBoundingClientRect();return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}var Lt={__proto__:null,TRANSFORM:at,TRANSITION:st,TRANSITION_END:lt,get:ut,getStyle:ct,create:ft,remove:dt,empty:ht,toFront:pt,toBack:vt,hasClass:mt,addClass:gt,removeClass:yt,setClass:bt,getClass:_t,setOpacity:xt,testProp:kt,setTransform:Ct,setPosition:St,getPosition:Et,get disableTextSelection(){return tt},get enableTextSelection(){return nt},disableImageDrag:Mt,enableImageDrag:Ot,preventOutline:jt,restoreOutline:Pt,getSizedParentNode:Nt,getScale:Dt};function Rt(e,t,n,r){if(t&&"object"===typeof t)for(var i in t)Bt(e,i,t[i],n);else for(var o=0,a=(t=d(t)).length;o<a;o++)Bt(e,t[o],n,r);return this}var At="_leaflet_events";function It(e,t,n,r){if(1===arguments.length)Ft(e),delete e[At];else if(t&&"object"===typeof t)for(var i in t)Ut(e,i,t[i],n);else if(t=d(t),2===arguments.length)Ft(e,(function(e){return-1!==y(t,e)}));else for(var o=0,a=t.length;o<a;o++)Ut(e,t[o],n,r);return this}function Ft(e,t){for(var n in e[At]){var r=n.split(/\d/)[0];t&&!t(r)||Ut(e,r,null,null,n)}}var zt={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Bt(e,t,n,r){var i=t+a(n)+(r?"_"+a(r):"");if(e[At]&&e[At][i])return this;var o=function(t){return n.call(r||e,t||window.event)},s=o;!Le.touchNative&&Le.pointer&&0===t.indexOf("touch")?o=He(e,t,o):Le.touch&&"dblclick"===t?o=Je(e,o):"addEventListener"in e?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?e.addEventListener(zt[t]||t,o,!!Le.passiveEvents&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?(o=function(t){t=t||window.event,Qt(e,t)&&s(t)},e.addEventListener(zt[t],o,!1)):e.addEventListener(t,s,!1):e.attachEvent("on"+t,o),e[At]=e[At]||{},e[At][i]=o}function Ut(e,t,n,r,i){i=i||t+a(n)+(r?"_"+a(r):"");var o=e[At]&&e[At][i];if(!o)return this;!Le.touchNative&&Le.pointer&&0===t.indexOf("touch")?We(e,t,o):Le.touch&&"dblclick"===t?et(e,o):"removeEventListener"in e?e.removeEventListener(zt[t]||t,o,!1):e.detachEvent("on"+t,o),e[At][i]=null}function Vt(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,this}function Ht(e){return Bt(e,"wheel",Vt),this}function Wt(e){return Rt(e,"mousedown touchstart dblclick contextmenu",Vt),e._leaflet_disable_click=!0,this}function Zt(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function Yt(e){return Zt(e),Vt(e),this}function qt(e,t){if(!t)return new N(e.clientX,e.clientY);var n=Dt(t),r=n.boundingClientRect;return new N((e.clientX-r.left)/n.x-t.clientLeft,(e.clientY-r.top)/n.y-t.clientTop)}var Gt=Le.win&&Le.chrome?2*window.devicePixelRatio:Le.gecko?window.devicePixelRatio:1;function Kt(e){return Le.edge?e.wheelDeltaY/2:e.deltaY&&0===e.deltaMode?-e.deltaY/Gt:e.deltaY&&1===e.deltaMode?20*-e.deltaY:e.deltaY&&2===e.deltaMode?60*-e.deltaY:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?20*-e.detail:e.detail?e.detail/-32765*60:0}function Qt(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(r){return!1}return n!==e}var $t={__proto__:null,on:Rt,off:It,stopPropagation:Vt,disableScrollPropagation:Ht,disableClickPropagation:Wt,preventDefault:Zt,stop:Yt,getMousePosition:qt,getWheelDelta:Kt,isExternalTarget:Qt,addListener:Rt,removeListener:It},Xt=P.extend({run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=Et(e),this._offset=t.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=S(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=1e3*this._duration;t<n?this._runFrame(this._easeOut(t/n),e):(this._runFrame(1),this._complete())},_runFrame:function(e,t){var n=this._startPos.add(this._offset.multiplyBy(e));t&&n._round(),St(this._el,n),this.fire("step")},_complete:function(){E(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),Jt=P.extend({options:{crs:G,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(e,t){t=h(this,t),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=i(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),void 0!==t.zoom&&(this._zoom=this._limitZoom(t.zoom)),t.center&&void 0!==t.zoom&&this.setView(U(t.center),t.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=st&&Le.any3d&&!Le.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Rt(this._proxy,lt,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(e,t,r){return t=void 0===t?this._zoom:this._limitZoom(t),e=this._limitCenter(U(e),t,this.options.maxBounds),r=r||{},this._stop(),this._loaded&&!r.reset&&!0!==r&&(void 0!==r.animate&&(r.zoom=n({animate:r.animate},r.zoom),r.pan=n({animate:r.animate,duration:r.duration},r.pan)),this._zoom!==t?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,t,r.zoom):this._tryAnimatedPan(e,r.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(e,t),this)},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=e,this)},zoomIn:function(e,t){return e=e||(Le.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+e,t)},zoomOut:function(e,t){return e=e||(Le.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-e,t)},setZoomAround:function(e,t,n){var r=this.getZoomScale(t),i=this.getSize().divideBy(2),o=(e instanceof N?e:this.latLngToContainerPoint(e)).subtract(i).multiplyBy(1-1/r),a=this.containerPointToLatLng(i.add(o));return this.setView(a,t,{zoom:n})},_getBoundsCenterZoom:function(e,t){t=t||{},e=e.getBounds?e.getBounds():z(e);var n=R(t.paddingTopLeft||t.padding||[0,0]),r=R(t.paddingBottomRight||t.padding||[0,0]),i=this.getBoundsZoom(e,!1,n.add(r));if((i="number"===typeof t.maxZoom?Math.min(t.maxZoom,i):i)===1/0)return{center:e.getCenter(),zoom:i};var o=r.subtract(n).divideBy(2),a=this.project(e.getSouthWest(),i),s=this.project(e.getNorthEast(),i);return{center:this.unproject(a.add(s).divideBy(2).add(o),i),zoom:i}},fitBounds:function(e,t){if(!(e=z(e)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(e,t);return this.setView(n.center,n.zoom,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e,t){if(t=t||{},!(e=R(e).round()).x&&!e.y)return this.fire("moveend");if(!0!==t.animate&&!this.getSize().contains(e))return this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Xt,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire("movestart"),!1!==t.animate){gt(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,n,t.duration||.25,t.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},flyTo:function(e,t,n){if(!1===(n=n||{}).animate||!Le.any3d)return this.setView(e,t,n);this._stop();var r=this.project(this.getCenter()),i=this.project(e),o=this.getSize(),a=this._zoom;e=U(e),t=void 0===t?a:t;var s=Math.max(o.x,o.y),l=s*this.getZoomScale(a,t),u=i.distanceTo(r)||1,c=1.42,f=c*c;function d(e){var t=(l*l-s*s+(e?-1:1)*f*f*u*u)/(2*(e?l:s)*f*u),n=Math.sqrt(t*t+1)-t;return n<1e-9?-18:Math.log(n)}function h(e){return(Math.exp(e)-Math.exp(-e))/2}function p(e){return(Math.exp(e)+Math.exp(-e))/2}function v(e){return h(e)/p(e)}var m=d(0);function g(e){return s*(p(m)/p(m+c*e))}function y(e){return s*(p(m)*v(m+c*e)-h(m))/f}function b(e){return 1-Math.pow(1-e,1.5)}var _=Date.now(),x=(d(1)-m)/c,w=n.duration?1e3*n.duration:1e3*x*.8;function k(){var n=(Date.now()-_)/w,o=b(n)*x;n<=1?(this._flyToFrame=S(k,this),this._move(this.unproject(r.add(i.subtract(r).multiplyBy(y(o)/u)),a),this.getScaleZoom(s/g(o),a),{flyTo:!0})):this._move(e,t)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),k.call(this),this},flyToBounds:function(e,t){var n=this._getBoundsCenterZoom(e,t);return this.flyTo(n.center,n.zoom,t)},setMaxBounds:function(e){return(e=z(e)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(e){var t=this.options.minZoom;return this.options.minZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},setMaxZoom:function(e){var t=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,z(e));return n.equals(r)||this.panTo(r,t),this._enforcingBounds=!1,this},panInside:function(e,t){var n=R((t=t||{}).paddingTopLeft||t.padding||[0,0]),r=R(t.paddingBottomRight||t.padding||[0,0]),i=this.project(this.getCenter()),o=this.project(e),a=this.getPixelBounds(),s=I([a.min.add(n),a.max.subtract(r)]),l=s.getSize();if(!s.contains(o)){this._enforcingBounds=!0;var u=o.subtract(s.getCenter()),c=s.extend(o).getSize().subtract(l);i.x+=u.x<0?-c.x:c.x,i.y+=u.y<0?-c.y:c.y,this.panTo(this.unproject(i),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=n({animate:!1,pan:!0},!0===e?{animate:!0}:e);var t=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),o=t.divideBy(2).round(),a=r.divideBy(2).round(),s=o.subtract(a);return s.x||s.y?(e.animate&&e.pan?this.panBy(s):(e.pan&&this._rawPanBy(s),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:t,newSize:r})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=n({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var t=i(this._handleGeolocationResponse,this),r=i(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,r,e):navigator.geolocation.getCurrentPosition(t,r,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t=new B(e.coords.latitude,e.coords.longitude),n=t.toBounds(2*e.coords.accuracy),r=this._locateOptions;if(r.setView){var i=this.getBoundsZoom(n);this.setView(t,r.maxZoom?Math.min(i,r.maxZoom):i)}var o={latlng:t,bounds:n,timestamp:e.timestamp};for(var a in e.coords)"number"===typeof e.coords[a]&&(o[a]=e.coords[a]);this.fire("locationfound",o)}},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var e;for(e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),dt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(E(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)dt(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n=ft("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane);return e&&(this._panes[e]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new F(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=z(e),n=R(n||[0,0]);var r=this.getZoom()||0,i=this.getMinZoom(),o=this.getMaxZoom(),a=e.getNorthWest(),s=e.getSouthEast(),l=this.getSize().subtract(n),u=I(this.project(s,r),this.project(a,r)).getSize(),c=Le.any3d?this.options.zoomSnap:1,f=l.x/u.x,d=l.y/u.y,h=t?Math.max(f,d):Math.min(f,d);return r=this.getScaleZoom(h,r),c&&(r=Math.round(r/(c/100))*(c/100),r=t?Math.ceil(r/c)*c:Math.floor(r/c)*c),Math.max(i,Math.min(o,r))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new N(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){var n=this._getTopLeftPoint(e,t);return new A(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},getPane:function(e){return"string"===typeof e?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=void 0===t?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=void 0===t?this._zoom:t;var r=n.zoom(e*n.scale(t));return isNaN(r)?1/0:r},project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(U(e),t)},unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(R(e),t)},layerPointToLatLng:function(e){var t=R(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(U(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(U(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(z(e))},distance:function(e,t){return this.options.crs.distance(U(e),U(t))},containerPointToLayerPoint:function(e){return R(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return R(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(R(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(U(e)))},mouseEventToContainerPoint:function(e){return qt(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=ut(e);if(!t)throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");Rt(t,"scroll",this._onScroll,this),this._containerId=a(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&Le.any3d,gt(e,"leaflet-container"+(Le.touch?" leaflet-touch":"")+(Le.retina?" leaflet-retina":"")+(Le.ielt9?" leaflet-oldie":"")+(Le.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=ct(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),St(this._mapPane,new N(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(gt(e.markerPane,"leaflet-zoom-hide"),gt(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,t){St(this._mapPane,new N(0,0));var n=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset");var r=this._zoom!==t;this._moveStart(r,!1)._move(e,t)._moveEnd(r),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(e,t){return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,n,r){void 0===t&&(t=this._zoom);var i=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),r?n&&n.pinch&&this.fire("zoom",n):((i||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return E(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){St(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(e){this._targets={},this._targets[a(this._container)]=this;var t=e?It:Rt;t(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),Le.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=S((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n,r=[],i="mouseout"===t||"mouseover"===t,o=e.target||e.srcElement,s=!1;o;){if((n=this._targets[a(o)])&&("click"===t||"preclick"===t)&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(t,!0)){if(i&&!Qt(o,e))break;if(r.push(n),i)break}if(o===this._container)break;o=o.parentNode}return r.length||s||i||!this.listens(t,!0)||(r=[this]),r},_isClickDisabled:function(e){for(;e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var t=e.target||e.srcElement;if(!(!this._loaded||t._leaflet_disable_events||"click"===e.type&&this._isClickDisabled(t))){var n=e.type;"mousedown"===n&&jt(t),this._fireDOMEvent(e,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,t,r){if("click"===e.type){var i=n({},e);i.type="preclick",this._fireDOMEvent(i,i.type,r)}var o=this._findEventTargets(e,t);if(r){for(var a=[],s=0;s<r.length;s++)r[s].listens(t,!0)&&a.push(r[s]);o=a.concat(o)}if(o.length){"contextmenu"===t&&Zt(e);var l=o[0],u={originalEvent:e};if("keypress"!==e.type&&"keydown"!==e.type&&"keyup"!==e.type){var c=l.getLatLng&&(!l._radius||l._radius<=10);u.containerPoint=c?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(e),u.layerPoint=this.containerPointToLayerPoint(u.containerPoint),u.latlng=c?l.getLatLng():this.layerPointToLatLng(u.layerPoint)}for(s=0;s<o.length;s++)if(o[s].fire(t,u,!0),u.originalEvent._stopped||!1===o[s].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,t))return}},_draggableMoved:function(e){return(e=e.dragging&&e.dragging.enabled()?e:this).dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,{target:this}):this.on("load",e,t),this},_getMapPanePos:function(){return Et(this._mapPane)||new N(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){return(e&&void 0!==t?this._getNewPixelOrigin(e,t):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var n=this.getSize()._divideBy(2);return this.project(e,t)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return this.project(e,t)._subtract(r)},_latLngBoundsToNewLayerBounds:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return I([this.project(e.getSouthWest(),t)._subtract(r),this.project(e.getNorthWest(),t)._subtract(r),this.project(e.getSouthEast(),t)._subtract(r),this.project(e.getNorthEast(),t)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,n){if(!n)return e;var r=this.project(e,t),i=this.getSize().divideBy(2),o=new A(r.subtract(i),r.add(i)),a=this._getBoundsOffset(o,n,t);return a.round().equals([0,0])?e:this.unproject(r.add(a),t)},_limitOffset:function(e,t){if(!t)return e;var n=this.getPixelBounds(),r=new A(n.min.add(e),n.max.add(e));return e.add(this._getBoundsOffset(r,t))},_getBoundsOffset:function(e,t,n){var r=I(this.project(t.getNorthEast(),n),this.project(t.getSouthWest(),n)),i=r.min.subtract(e.min),o=r.max.subtract(e.max);return new N(this._rebound(i.x,-o.x),this._rebound(i.y,-o.y))},_rebound:function(e,t){return e+t>0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),r=Le.any3d?this.options.zoomSnap:1;return r&&(e=Math.round(e/r)*r),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){yt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return!(!0!==(t&&t.animate)&&!this.getSize().contains(n))&&(this.panBy(n,t),!0)},_createAnimProxy:function(){var e=this._proxy=ft("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",(function(e){var t=at,n=this._proxy.style[t];Ct(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){dt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();Ct(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t),i=this._getCenterOffset(e)._divideBy(1-1/r);return!(!0!==n.animate&&!this.getSize().contains(i))&&(S((function(){this._moveStart(!0,!1)._animateZoom(e,t,!0)}),this),!0)},_animateZoom:function(e,t,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,gt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:t,noUpdate:r}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&yt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function en(e,t){return new Jt(e,t)}var tn=M.extend({options:{position:"topright"},initialize:function(e){h(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return gt(t,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(t,r.firstChild):r.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(dt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),nn=function(e){return new tn(e)};Jt.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t="leaflet-",n=this._controlContainer=ft("div",t+"control-container",this._container);function r(r,i){var o=t+r+" "+t+i;e[r+i]=ft("div",o,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)dt(this._controlCorners[e]);dt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var rn=tn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,r){return n<r?-1:r<n?1:0}},initialize:function(e,t,n){for(var r in h(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,e)this._addLayer(e[r],r);for(r in t)this._addLayer(t[r],r,!0)},onAdd:function(e){this._initLayout(),this._update(),this._map=e,e.on("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){return tn.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._map?this._update():this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._map?this._update():this},removeLayer:function(e){e.off("add remove",this._onLayerChange,this);var t=this._getLayer(a(e));return t&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){gt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(gt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):yt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return yt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=ft("div",e),n=this.options.collapsed;t.setAttribute("aria-haspopup",!0),Wt(t),Ht(t);var r=this._section=ft("section",e+"-list");n&&(this._map.on("click",this.collapse,this),Rt(t,{mouseenter:function(){Rt(r,"click",Zt),this.expand(),setTimeout((function(){It(r,"click",Zt)}))},mouseleave:this.collapse},this));var i=this._layersLink=ft("a",e+"-toggle",t);i.href="#",i.title="Layers",i.setAttribute("role","button"),Rt(i,"click",Zt),Rt(i,"focus",this.expand,this),n||this.expand(),this._baseLayersList=ft("div",e+"-base",r),this._separator=ft("div",e+"-separator",r),this._overlaysList=ft("div",e+"-overlays",r),t.appendChild(r)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&a(this._layers[t].layer)===e)return this._layers[t]},_addLayer:function(e,t,n){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:t,overlay:n}),this.options.sortLayers&&this._layers.sort(i((function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)}),this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ht(this._baseLayersList),ht(this._overlaysList),this._layerControlInputs=[];var e,t,n,r,i=0;for(n=0;n<this._layers.length;n++)r=this._layers[n],this._addItem(r),t=t||r.overlay,e=e||!r.overlay,i+=r.overlay?0:1;return this.options.hideSingleBase&&(e=e&&i>1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(a(e.target)),n=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(t?' checked="checked"':"")+"/>",r=document.createElement("div");return r.innerHTML=n,r.firstChild},_addItem:function(e){var t,n=document.createElement("label"),r=this._map.hasLayer(e.layer);e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=r):t=this._createRadioElement("leaflet-base-layers_"+a(this),r),this._layerControlInputs.push(t),t.layerId=a(e.layer),Rt(t,"click",this._onInputClick,this);var i=document.createElement("span");i.innerHTML=" "+e.name;var o=document.createElement("span");return n.appendChild(o),o.appendChild(t),o.appendChild(i),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var e,t,n=this._layerControlInputs,r=[],i=[];this._handlingClick=!0;for(var o=n.length-1;o>=0;o--)e=n[o],t=this._getLayer(e.layerId).layer,e.checked?r.push(t):e.checked||i.push(t);for(o=0;o<i.length;o++)this._map.hasLayer(i[o])&&this._map.removeLayer(i[o]);for(o=0;o<r.length;o++)this._map.hasLayer(r[o])||this._map.addLayer(r[o]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var e,t,n=this._layerControlInputs,r=this._map.getZoom(),i=n.length-1;i>=0;i--)e=n[i],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&r<t.options.minZoom||void 0!==t.options.maxZoom&&r>t.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this}}),on=function(e,t,n){return new rn(e,t,n)},an=tn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=ft("div",t+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,t+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,t+"-out",n,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,r,i){var o=ft("a",n,r);return o.innerHTML=e,o.href="#",o.title=t,o.setAttribute("role","button"),o.setAttribute("aria-label",t),Wt(o),Rt(o,"click",Yt),Rt(o,"click",i,this),Rt(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";yt(this._zoomInButton,t),yt(this._zoomOutButton,t),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||e._zoom===e.getMinZoom())&&(gt(this._zoomOutButton,t),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||e._zoom===e.getMaxZoom())&&(gt(this._zoomInButton,t),this._zoomInButton.setAttribute("aria-disabled","true"))}});Jt.mergeOptions({zoomControl:!0}),Jt.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new an,this.addControl(this.zoomControl))}));var sn=function(e){return new an(e)},ln=tn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t="leaflet-control-scale",n=ft("div",t),r=this.options;return this._addScales(r,t+"-line",n),e.on(r.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=ft("div",t,n)),e.imperial&&(this._iScale=ft("div",t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),n=t<1e3?t+" m":t/1e3+" km";this._updateScale(this._mScale,n,t/e)},_updateImperial:function(e){var t,n,r,i=3.2808399*e;i>5280?(t=i/5280,n=this._getRoundNum(t),this._updateScale(this._iScale,n+" mi",n/t)):(r=this._getRoundNum(i),this._updateScale(this._iScale,r+" ft",r/i))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return t*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),un=function(e){return new ln(e)},cn='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',fn=tn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Le.inlineSvg?cn+" ":"")+"Leaflet</a>"},initialize:function(e){h(this,e),this._attributions={}},onAdd:function(e){for(var t in e.attributionControl=this,this._container=ft("div","leaflet-control-attribution"),Wt(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",(function(){this.removeAttribution(e.layer.getAttribution())}),this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});Jt.mergeOptions({attributionControl:!0}),Jt.addInitHook((function(){this.options.attributionControl&&(new fn).addTo(this)}));var dn=function(e){return new fn(e)};tn.Layers=rn,tn.Zoom=an,tn.Scale=ln,tn.Attribution=fn,nn.layers=on,nn.zoom=sn,nn.scale=un,nn.attribution=dn;var hn=M.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});hn.addTo=function(e,t){return e.addHandler(t,this),this};var pn,vn={Events:j},mn=Le.touch?"touchstart mousedown":"mousedown",gn=P.extend({options:{clickTolerance:3},initialize:function(e,t,n,r){h(this,r),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},enable:function(){this._enabled||(Rt(this._dragStartTarget,mn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(gn._dragging===this&&this.finishDrag(!0),It(this._dragStartTarget,mn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(this._enabled&&(this._moved=!1,!mt(this._element,"leaflet-zoom-anim")))if(e.touches&&1!==e.touches.length)gn._dragging===this&&this.finishDrag();else if(!(gn._dragging||e.shiftKey||1!==e.which&&1!==e.button&&!e.touches)&&(gn._dragging=this,this._preventOutline&&jt(this._element),Mt(),tt(),!this._moving)){this.fire("down");var t=e.touches?e.touches[0]:e,n=Nt(this._element);this._startPoint=new N(t.clientX,t.clientY),this._startPos=Et(this._element),this._parentScale=Dt(n);var r="mousedown"===e.type;Rt(document,r?"mousemove":"touchmove",this._onMove,this),Rt(document,r?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(e){if(this._enabled)if(e.touches&&e.touches.length>1)this._moved=!0;else{var t=e.touches&&1===e.touches.length?e.touches[0]:e,n=new N(t.clientX,t.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Zt(e),this._moved||(this.fire("dragstart"),this._moved=!0,gt(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),gt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=e,this._updatePosition()))}},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e),St(this._element,this._newPos),this.fire("drag",e)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(e){yt(document.body,"leaflet-dragging"),this._lastTarget&&(yt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),It(document,"mousemove touchmove",this._onMove,this),It(document,"mouseup touchend touchcancel",this._onUp,this),Ot(),nt(),this._moved&&this._moving&&this.fire("dragend",{noInertia:e,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,gn._dragging=!1}});function yn(e,t){if(!t||!e.length)return e.slice();var n=t*t;return e=xn(e=kn(e,n),n)}function bn(e,t,n){return Math.sqrt(Mn(e,t,n,!0))}function _n(e,t,n){return Mn(e,t,n)}function xn(e,t){var n=e.length,r=new(typeof Uint8Array!==void 0+""?Uint8Array:Array)(n);r[0]=r[n-1]=1,wn(e,r,t,0,n-1);var i,o=[];for(i=0;i<n;i++)r[i]&&o.push(e[i]);return o}function wn(e,t,n,r,i){var o,a,s,l=0;for(a=r+1;a<=i-1;a++)(s=Mn(e[a],e[r],e[i],!0))>l&&(o=a,l=s);l>n&&(t[o]=1,wn(e,t,n,r,o),wn(e,t,n,o,i))}function kn(e,t){for(var n=[e[0]],r=1,i=0,o=e.length;r<o;r++)Tn(e[r],e[i])>t&&(n.push(e[r]),i=r);return i<o-1&&n.push(e[o-1]),n}function Cn(e,t,n,r,i){var o,a,s,l=r?pn:En(e,n),u=En(t,n);for(pn=u;;){if(!(l|u))return[e,t];if(l&u)return!1;s=En(a=Sn(e,t,o=l||u,n,i),n),o===l?(e=a,l=s):(t=a,u=s)}}function Sn(e,t,n,r,i){var o,a,s=t.x-e.x,l=t.y-e.y,u=r.min,c=r.max;return 8&n?(o=e.x+s*(c.y-e.y)/l,a=c.y):4&n?(o=e.x+s*(u.y-e.y)/l,a=u.y):2&n?(o=c.x,a=e.y+l*(c.x-e.x)/s):1&n&&(o=u.x,a=e.y+l*(u.x-e.x)/s),new N(o,a,i)}function En(e,t){var n=0;return e.x<t.min.x?n|=1:e.x>t.max.x&&(n|=2),e.y<t.min.y?n|=4:e.y>t.max.y&&(n|=8),n}function Tn(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r}function Mn(e,t,n,r){var i,o=t.x,a=t.y,s=n.x-o,l=n.y-a,u=s*s+l*l;return u>0&&((i=((e.x-o)*s+(e.y-a)*l)/u)>1?(o=n.x,a=n.y):i>0&&(o+=s*i,a+=l*i)),s=e.x-o,l=e.y-a,r?s*s+l*l:new N(o,a)}function On(e){return!g(e[0])||"object"!==typeof e[0][0]&&"undefined"!==typeof e[0][0]}function jn(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),On(e)}var Pn={__proto__:null,simplify:yn,pointToSegmentDistance:bn,closestPointOnSegment:_n,clipSegment:Cn,_getEdgeIntersection:Sn,_getBitCode:En,_sqClosestPointOnSegment:Mn,isFlat:On,_flat:jn};function Nn(e,t,n){var r,i,o,a,s,l,u,c,f,d=[1,4,2,8];for(i=0,u=e.length;i<u;i++)e[i]._code=En(e[i],t);for(a=0;a<4;a++){for(c=d[a],r=[],i=0,o=(u=e.length)-1;i<u;o=i++)s=e[i],l=e[o],s._code&c?l._code&c||((f=Sn(l,s,c,t,n))._code=En(f,t),r.push(f)):(l._code&c&&((f=Sn(l,s,c,t,n))._code=En(f,t),r.push(f)),r.push(s));e=r}return e}var Dn={__proto__:null,clipPolygon:Nn},Ln={project:function(e){return new N(e.lng,e.lat)},unproject:function(e){return new B(e.y,e.x)},bounds:new A([-180,-90],[180,90])},Rn={R:6378137,R_MINOR:6356752.314245179,bounds:new A([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,r=e.lat*t,i=this.R_MINOR/n,o=Math.sqrt(1-i*i),a=o*Math.sin(r),s=Math.tan(Math.PI/4-r/2)/Math.pow((1-a)/(1+a),o/2);return r=-n*Math.log(Math.max(s,1e-10)),new N(e.lng*t*n,r)},unproject:function(e){for(var t,n=180/Math.PI,r=this.R,i=this.R_MINOR/r,o=Math.sqrt(1-i*i),a=Math.exp(-e.y/r),s=Math.PI/2-2*Math.atan(a),l=0,u=.1;l<15&&Math.abs(u)>1e-7;l++)t=o*Math.sin(s),t=Math.pow((1-t)/(1+t),o/2),s+=u=Math.PI/2-2*Math.atan(a*t)-s;return new B(s*n,e.x*n/r)}},An={__proto__:null,LonLat:Ln,Mercator:Rn,SphericalMercator:Z},In=n({},H,{code:"EPSG:3395",projection:Rn,transformation:function(){var e=.5/(Math.PI*Rn.R);return q(e,.5,-e,.5)}()}),Fn=n({},H,{code:"EPSG:4326",projection:Ln,transformation:q(1/180,1,-1/180,.5)}),zn=n({},V,{projection:Ln,transformation:q(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,r=t.lat-e.lat;return Math.sqrt(n*n+r*r)},infinite:!0});V.Earth=H,V.EPSG3395=In,V.EPSG3857=G,V.EPSG900913=K,V.EPSG4326=Fn,V.Simple=zn;var Bn=P.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[a(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[a(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once("remove",(function(){t.off(n,this)}),this)}this.onAdd(t),this.fire("add"),t.fire("layeradd",{layer:this})}}});Jt.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var t=a(e);return this._layers[t]||(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},removeLayer:function(e){var t=a(e);return this._layers[t]?(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return a(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){for(var t=0,n=(e=e?g(e)?e:[e]:[]).length;t<n;t++)this.addLayer(e[t])},_addZoomLimit:function(e){isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[a(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){var t=a(e);this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var e=1/0,t=-1/0,n=this._getZoomSpan();for(var r in this._zoomBoundLayers){var i=this._zoomBoundLayers[r].options;e=void 0===i.minZoom?e:Math.min(e,i.minZoom),t=void 0===i.maxZoom?t:Math.max(t,i.maxZoom)}this._layersMaxZoom=t===-1/0?void 0:t,this._layersMinZoom=e===1/0?void 0:e,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Un=Bn.extend({initialize:function(e,t){var n,r;if(h(this,t),this._layers={},e)for(n=0,r=e.length;n<r;n++)this.addLayer(e[n])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(e){return("number"===typeof e?e:this.getLayerId(e))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var t,n,r=Array.prototype.slice.call(arguments,1);for(t in this._layers)(n=this._layers[t])[e]&&n[e].apply(n,r);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:function(e){return a(e)}}),Vn=function(e,t){return new Un(e,t)},Hn=Un.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),Un.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),e.removeEventParent(this),Un.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new F;for(var t in this._layers){var n=this._layers[t];e.extend(n.getBounds?n.getBounds():n.getLatLng())}return e}}),Wn=function(e,t){return new Hn(e,t)},Zn=M.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(e){h(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var n=this._getIconUrl(e);if(!n){if("icon"===e)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var r=this._createImg(n,t&&"IMG"===t.tagName?t:null);return this._setIconStyles(r,e),(this.options.crossOrigin||""===this.options.crossOrigin)&&(r.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),r},_setIconStyles:function(e,t){var n=this.options,r=n[t+"Size"];"number"===typeof r&&(r=[r,r]);var i=R(r),o=R("shadow"===t&&n.shadowAnchor||n.iconAnchor||i&&i.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(n.className||""),o&&(e.style.marginLeft=-o.x+"px",e.style.marginTop=-o.y+"px"),i&&(e.style.width=i.x+"px",e.style.height=i.y+"px")},_createImg:function(e,t){return(t=t||document.createElement("img")).src=e,t},_getIconUrl:function(e){return Le.retina&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}});function Yn(e){return new Zn(e)}var qn=Zn.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(e){return"string"!==typeof qn.imagePath&&(qn.imagePath=this._detectIconPath()),(this.options.imagePath||qn.imagePath)+Zn.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){var t=function(e,t,n){var r=t.exec(e);return r&&r[n]};return(e=t(e,/^url\((['"])?(.+)\1\)$/,2))&&t(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=ft("div","leaflet-default-icon-path",document.body),t=ct(e,"background-image")||ct(e,"backgroundImage");if(document.body.removeChild(e),t=this._stripUrl(t))return t;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-"leaflet.css".length-1):""}}),Gn=hn.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new gn(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),gt(e,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&yt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var t=this._marker,n=t._map,r=this._marker.options.autoPanSpeed,i=this._marker.options.autoPanPadding,o=Et(t._icon),a=n.getPixelBounds(),s=n.getPixelOrigin(),l=I(a.min._subtract(s).add(i),a.max._subtract(s).subtract(i));if(!l.contains(o)){var u=R((Math.max(l.max.x,o.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,o.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,o.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,o.y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(r);n.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),St(t._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=S(this._adjustPan.bind(this,e))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(E(this._panRequest),this._panRequest=S(this._adjustPan.bind(this,e)))},_onDrag:function(e){var t=this._marker,n=t._shadow,r=Et(t._icon),i=t._map.layerPointToLatLng(r);n&&St(n,r),t._latlng=i,e.latlng=i,e.oldLatLng=this._oldLatLng,t.fire("move",e).fire("drag",e)},_onDragEnd:function(e){E(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),Kn=Bn.extend({options:{icon:new qn,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(e,t){h(this,t),this._latlng=U(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(e){var t=this._latlng;return this._latlng=U(e),this.update(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){return this.options.icon=e,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var e=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(e)}return this},_initIcon:function(){var e=this.options,t="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=e.icon.createIcon(this._icon),r=!1;n!==this._icon&&(this._icon&&this._removeIcon(),r=!0,e.title&&(n.title=e.title),"IMG"===n.tagName&&(n.alt=e.alt||"")),gt(n,t),e.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Rt(n,"focus",this._panOnFocus,this);var i=e.icon.createShadow(this._shadow),o=!1;i!==this._shadow&&(this._removeShadow(),o=!0),i&&(gt(i,t),i.alt=""),this._shadow=i,e.opacity<1&&this._updateOpacity(),r&&this.getPane().appendChild(this._icon),this._initInteraction(),i&&o&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&It(this._icon,"focus",this._panOnFocus,this),dt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&dt(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&St(this._icon,e),this._shadow&&St(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.interactive&&(gt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Gn)){var e=this.options.draggable;this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Gn(this),e&&this.dragging.enable()}},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&xt(this._icon,e),this._shadow&&xt(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var e=this._map;if(e){var t=this.options.icon.options,n=t.iconSize?R(t.iconSize):R(0,0),r=t.iconAnchor?R(t.iconAnchor):R(0,0);e.panInside(this._latlng,{paddingTopLeft:r,paddingBottomRight:n.subtract(r)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Qn(e,t){return new Kn(e,t)}var $n=Bn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(e){this._renderer=e.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(e){return h(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Xn=$n.extend({options:{fill:!0,radius:10},initialize:function(e,t){h(this,t),this._latlng=U(e),this._radius=this.options.radius},setLatLng:function(e){var t=this._latlng;return this._latlng=U(e),this.redraw(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;return $n.prototype.setStyle.call(this,e),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,n=this._clickTolerance(),r=[e+n,t+n];this._pxBounds=new A(this._point.subtract(r),this._point.add(r))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Jn(e,t){return new Xn(e,t)}var er=Xn.extend({initialize:function(e,t,r){if("number"===typeof t&&(t=n({},r,{radius:t})),h(this,t),this._latlng=U(e),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new F(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:$n.prototype.setStyle,_project:function(){var e=this._latlng.lng,t=this._latlng.lat,n=this._map,r=n.options.crs;if(r.distance===H.distance){var i=Math.PI/180,o=this._mRadius/H.R/i,a=n.project([t+o,e]),s=n.project([t-o,e]),l=a.add(s).divideBy(2),u=n.unproject(l).lat,c=Math.acos((Math.cos(o*i)-Math.sin(t*i)*Math.sin(u*i))/(Math.cos(t*i)*Math.cos(u*i)))/i;(isNaN(c)||0===c)&&(c=o/Math.cos(Math.PI/180*t)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(c)?0:l.x-n.project([u,e-c]).x,this._radiusY=l.y-a.y}else{var f=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(f).x}this._updateBounds()}});function tr(e,t,n){return new er(e,t,n)}var nr=$n.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,t){h(this,t),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var t,n,r=1/0,i=null,o=Mn,a=0,s=this._parts.length;a<s;a++)for(var l=this._parts[a],u=1,c=l.length;u<c;u++){var f=o(e,t=l[u-1],n=l[u],!0);f<r&&(r=f,i=o(e,t,n))}return i&&(i.distance=Math.sqrt(r)),i},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var e,t,n,r,i,o,a,s=this._rings[0],l=s.length;if(!l)return null;for(e=0,t=0;e<l-1;e++)t+=s[e].distanceTo(s[e+1])/2;if(0===t)return this._map.layerPointToLatLng(s[0]);for(e=0,r=0;e<l-1;e++)if(i=s[e],o=s[e+1],(r+=n=i.distanceTo(o))>t)return a=(r-t)/n,this._map.layerPointToLatLng([o.x-a*(o.x-i.x),o.y-a*(o.y-i.y)])},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t=t||this._defaultShape(),e=U(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new F,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return On(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],n=On(e),r=0,i=e.length;r<i;r++)n?(t[r]=U(e[r]),this._bounds.extend(t[r])):t[r]=this._convertLatLngs(e[r]);return t},_project:function(){var e=new A;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=this._clickTolerance(),t=new N(e,e);this._rawPxBounds&&(this._pxBounds=new A([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs:function(e,t,n){var r,i,o=e[0]instanceof B,a=e.length;if(o){for(i=[],r=0;r<a;r++)i[r]=this._map.latLngToLayerPoint(e[r]),n.extend(i[r]);t.push(i)}else for(r=0;r<a;r++)this._projectLatlngs(e[r],t,n)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else{var t,n,r,i,o,a,s,l=this._parts;for(t=0,r=0,i=this._rings.length;t<i;t++)for(n=0,o=(s=this._rings[t]).length;n<o-1;n++)(a=Cn(s[n],s[n+1],e,n,!0))&&(l[r]=l[r]||[],l[r].push(a[0]),a[1]===s[n+1]&&n!==o-2||(l[r].push(a[1]),r++))}},_simplifyPoints:function(){for(var e=this._parts,t=this.options.smoothFactor,n=0,r=e.length;n<r;n++)e[n]=yn(e[n],t)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,t){var n,r,i,o,a,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(n=0,o=this._parts.length;n<o;n++)for(r=0,i=(a=(s=this._parts[n]).length)-1;r<a;i=r++)if((t||0!==r)&&bn(e,s[i],s[r])<=l)return!0;return!1}});function rr(e,t){return new nr(e,t)}nr._flat=jn;var ir=nr.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var e,t,n,r,i,o,a,s,l,u=this._rings[0],c=u.length;if(!c)return null;for(o=a=s=0,e=0,t=c-1;e<c;t=e++)n=u[e],r=u[t],i=n.y*r.x-r.y*n.x,a+=(n.x+r.x)*i,s+=(n.y+r.y)*i,o+=3*i;return l=0===o?u[0]:[a/o,s/o],this._map.layerPointToLatLng(l)},_convertLatLngs:function(e){var t=nr.prototype._convertLatLngs.call(this,e),n=t.length;return n>=2&&t[0]instanceof B&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){nr.prototype._setLatLngs.call(this,e),On(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return On(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new N(t,t);if(e=new A(e.min.subtract(n),e.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var r,i=0,o=this._rings.length;i<o;i++)(r=Nn(this._rings[i],e,!0)).length&&this._parts.push(r)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var t,n,r,i,o,a,s,l,u=!1;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(i=0,s=this._parts.length;i<s;i++)for(o=0,a=(l=(t=this._parts[i]).length)-1;o<l;a=o++)n=t[o],r=t[a],n.y>e.y!==r.y>e.y&&e.x<(r.x-n.x)*(e.y-n.y)/(r.y-n.y)+n.x&&(u=!u);return u||nr.prototype._containsPoint.call(this,e,!0)}});function or(e,t){return new ir(e,t)}var ar=Hn.extend({initialize:function(e,t){h(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,n,r,i=g(e)?e:e.features;if(i){for(t=0,n=i.length;t<n;t++)((r=i[t]).geometries||r.geometry||r.features||r.coordinates)&&this.addData(r);return this}var o=this.options;if(o.filter&&!o.filter(e))return this;var a=sr(e,o);return a?(a.feature=pr(e),a.defaultOptions=a.options,this.resetStyle(a),o.onEachFeature&&o.onEachFeature(e,a),this.addLayer(a)):this},resetStyle:function(e){return void 0===e?this.eachLayer(this.resetStyle,this):(e.options=n({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(e){return this.eachLayer((function(t){this._setLayerStyle(t,e)}),this)},_setLayerStyle:function(e,t){e.setStyle&&("function"===typeof t&&(t=t(e.feature)),e.setStyle(t))}});function sr(e,t){var n,r,i,o,a="Feature"===e.type?e.geometry:e,s=a?a.coordinates:null,l=[],u=t&&t.pointToLayer,c=t&&t.coordsToLatLng||ur;if(!s&&!a)return null;switch(a.type){case"Point":return lr(u,e,n=c(s),t);case"MultiPoint":for(i=0,o=s.length;i<o;i++)n=c(s[i]),l.push(lr(u,e,n,t));return new Hn(l);case"LineString":case"MultiLineString":return r=cr(s,"LineString"===a.type?0:1,c),new nr(r,t);case"Polygon":case"MultiPolygon":return r=cr(s,"Polygon"===a.type?1:2,c),new ir(r,t);case"GeometryCollection":for(i=0,o=a.geometries.length;i<o;i++){var f=sr({geometry:a.geometries[i],type:"Feature",properties:e.properties},t);f&&l.push(f)}return new Hn(l);default:throw new Error("Invalid GeoJSON object.")}}function lr(e,t,n,r){return e?e(t,n):new Kn(n,r&&r.markersInheritOptions&&r)}function ur(e){return new B(e[1],e[0],e[2])}function cr(e,t,n){for(var r,i=[],o=0,a=e.length;o<a;o++)r=t?cr(e[o],t-1,n):(n||ur)(e[o]),i.push(r);return i}function fr(e,t){return void 0!==(e=U(e)).alt?[c(e.lng,t),c(e.lat,t),c(e.alt,t)]:[c(e.lng,t),c(e.lat,t)]}function dr(e,t,n,r){for(var i=[],o=0,a=e.length;o<a;o++)i.push(t?dr(e[o],t-1,n,r):fr(e[o],r));return!t&&n&&i.push(i[0]),i}function hr(e,t){return e.feature?n({},e.feature,{geometry:t}):pr(t)}function pr(e){return"Feature"===e.type||"FeatureCollection"===e.type?e:{type:"Feature",properties:{},geometry:e}}var vr={toGeoJSON:function(e){return hr(this,{type:"Point",coordinates:fr(this.getLatLng(),e)})}};function mr(e,t){return new ar(e,t)}Kn.include(vr),er.include(vr),Xn.include(vr),nr.include({toGeoJSON:function(e){var t=!On(this._latlngs);return hr(this,{type:(t?"Multi":"")+"LineString",coordinates:dr(this._latlngs,t?1:0,!1,e)})}}),ir.include({toGeoJSON:function(e){var t=!On(this._latlngs),n=t&&!On(this._latlngs[0]),r=dr(this._latlngs,n?2:t?1:0,!0,e);return t||(r=[r]),hr(this,{type:(n?"Multi":"")+"Polygon",coordinates:r})}}),Un.include({toMultiPoint:function(e){var t=[];return this.eachLayer((function(n){t.push(n.toGeoJSON(e).geometry.coordinates)})),hr(this,{type:"MultiPoint",coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===t)return this.toMultiPoint(e);var n="GeometryCollection"===t,r=[];return this.eachLayer((function(t){if(t.toGeoJSON){var i=t.toGeoJSON(e);if(n)r.push(i.geometry);else{var o=pr(i);"FeatureCollection"===o.type?r.push.apply(r,o.features):r.push(o)}}})),n?hr(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}});var gr=mr,yr=Bn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,t,n){this._url=e,this._bounds=z(t),h(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(gt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){dt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&pt(this._image),this},bringToBack:function(){return this._map&&vt(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=z(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e="IMG"===this._url.tagName,t=this._image=e?this._url:ft("img");gt(t,"leaflet-image-layer"),this._zoomAnimated&>(t,"leaflet-zoom-animated"),this.options.className&>(t,this.options.className),t.onselectstart=u,t.onmousemove=u,t.onload=i(this.fire,this,"load"),t.onerror=i(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(t.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e?this._url=t.src:(t.src=this._url,t.alt=this.options.alt)},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;Ct(this._image,n,t)},_reset:function(){var e=this._image,t=new A(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();St(e,t.min),e.style.width=n.x+"px",e.style.height=n.y+"px"},_updateOpacity:function(){xt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),br=function(e,t,n){return new yr(e,t,n)},_r=yr.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e="VIDEO"===this._url.tagName,t=this._image=e?this._url:ft("video");if(gt(t,"leaflet-image-layer"),this._zoomAnimated&>(t,"leaflet-zoom-animated"),this.options.className&>(t,this.options.className),t.onselectstart=u,t.onmousemove=u,t.onloadeddata=i(this.fire,this,"load"),e){for(var n=t.getElementsByTagName("source"),r=[],o=0;o<n.length;o++)r.push(n[o].src);this._url=n.length>0?r:[t.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,"objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted,t.playsInline=!!this.options.playsInline;for(var a=0;a<this._url.length;a++){var s=ft("source");s.src=this._url[a],t.appendChild(s)}}}});function xr(e,t,n){return new _r(e,t,n)}var wr=yr.extend({_initImage:function(){var e=this._image=this._url;gt(e,"leaflet-image-layer"),this._zoomAnimated&>(e,"leaflet-zoom-animated"),this.options.className&>(e,this.options.className),e.onselectstart=u,e.onmousemove=u}});function kr(e,t,n){return new wr(e,t,n)}var Cr=Bn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0},initialize:function(e,t){h(this,e),this._source=t},openOn:function(e){return(e=arguments.length?e:this._source._map).hasLayer(this)||e.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(e){return this._map?this.close():(arguments.length?this._source=e:e=this._source,this._prepareOpen(),this.openOn(e._map)),this},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&xt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&xt(this._container,1),this.bringToFront(),this.options.interactive&&(gt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(e){e._fadeAnimated?(xt(this._container,0),this._removeTimeout=setTimeout(i(dt,void 0,this._container),200)):dt(this._container),this.options.interactive&&(yt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=U(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&pt(this._container),this},bringToBack:function(){return this._map&&vt(this._container),this},_prepareOpen:function(e){var t=this._source;if(!t._map)return!1;if(t instanceof Hn){t=null;var n=this._source._layers;for(var r in n)if(n[r]._map){t=n[r];break}if(!t)return!1;this._source=t}if(!e)if(t.getCenter)e=t.getCenter();else if(t.getLatLng)e=t.getLatLng();else{if(!t.getBounds)throw new Error("Unable to get source layer LatLng.");e=t.getBounds().getCenter()}return this.setLatLng(e),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var e=this._contentNode,t="function"===typeof this._content?this._content(this._source||this):this._content;if("string"===typeof t)e.innerHTML=t;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(t)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),t=R(this.options.offset),n=this._getAnchor();this._zoomAnimated?St(this._container,e.add(n)):t=t.add(e).add(n);var r=this._containerBottom=-t.y,i=this._containerLeft=-Math.round(this._containerWidth/2)+t.x;this._container.style.bottom=r+"px",this._container.style.left=i+"px"}},_getAnchor:function(){return[0,0]}});Jt.include({_initOverlay:function(e,t,n,r){var i=t;return i instanceof e||(i=new e(r).setContent(t)),n&&i.setLatLng(n),i}}),Bn.include({_initOverlay:function(e,t,n,r){var i=n;return i instanceof e?(h(i,r),i._source=this):(i=t&&!r?t:new e(r,this)).setContent(n),i}});var Sr=Cr.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(e){return!(e=arguments.length?e:this._source._map).hasLayer(this)&&e._popup&&e._popup.options.autoClose&&e.removeLayer(e._popup),e._popup=this,Cr.prototype.openOn.call(this,e)},onAdd:function(e){Cr.prototype.onAdd.call(this,e),e.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof $n||this._source.on("preclick",Vt))},onRemove:function(e){Cr.prototype.onRemove.call(this,e),e.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof $n||this._source.off("preclick",Vt))},getEvents:function(){var e=Cr.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this.close),this.options.keepInView&&(e.moveend=this._adjustPan),e},_initLayout:function(){var e="leaflet-popup",t=this._container=ft("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=ft("div",e+"-content-wrapper",t);if(this._contentNode=ft("div",e+"-content",n),Wt(t),Ht(this._contentNode),Rt(t,"contextmenu",Vt),this._tipContainer=ft("div",e+"-tip-container",t),this._tip=ft("div",e+"-tip",this._tipContainer),this.options.closeButton){var r=this._closeButton=ft("a",e+"-close-button",t);r.setAttribute("role","button"),r.setAttribute("aria-label","Close popup"),r.href="#close",r.innerHTML='<span aria-hidden="true">×</span>',Rt(r,"click",this.close,this)}},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width="",t.whiteSpace="nowrap";var n=e.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),t.width=n+1+"px",t.whiteSpace="",t.height="";var r=e.offsetHeight,i=this.options.maxHeight,o="leaflet-popup-scrolled";i&&r>i?(t.height=i+"px",gt(e,o)):yt(e,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),n=this._getAnchor();St(this._container,t.add(n))},_adjustPan:function(e){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,n=parseInt(ct(this._container,"marginBottom"),10)||0,r=this._container.offsetHeight+n,i=this._containerWidth,o=new N(this._containerLeft,-r-this._containerBottom);o._add(Et(this._container));var a=t.layerPointToContainerPoint(o),s=R(this.options.autoPanPadding),l=R(this.options.autoPanPaddingTopLeft||s),u=R(this.options.autoPanPaddingBottomRight||s),c=t.getSize(),f=0,d=0;a.x+i+u.x>c.x&&(f=a.x+i-c.x+u.x),a.x-f-l.x<0&&(f=a.x-l.x),a.y+r+u.y>c.y&&(d=a.y+r-c.y+u.y),a.y-d-l.y<0&&(d=a.y-l.y),(f||d)&&t.fire("autopanstart").panBy([f,d],{animate:e&&"moveend"===e.type})}},_getAnchor:function(){return R(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Er=function(e,t){return new Sr(e,t)};Jt.mergeOptions({closePopupOnClick:!0}),Jt.include({openPopup:function(e,t,n){return this._initOverlay(Sr,e,t,n).openOn(this),this},closePopup:function(e){return(e=arguments.length?e:this._popup)&&e.close(),this}}),Bn.include({bindPopup:function(e,t){return this._popup=this._initOverlay(Sr,this._popup,e,t),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(e){return this._popup&&this._popup._prepareOpen(e)&&this._popup.openOn(this._map),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){if(this._popup&&this._map){Yt(e);var t=e.layer||e.target;this._popup._source!==t||t instanceof $n?(this._popup._source=t,this.openPopup(e.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}});var Tr=Cr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){Cr.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){Cr.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=Cr.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ft("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,n,r=this._map,i=this._container,o=r.latLngToContainerPoint(r.getCenter()),a=r.layerPointToContainerPoint(e),s=this.options.direction,l=i.offsetWidth,u=i.offsetHeight,c=R(this.options.offset),f=this._getAnchor();"top"===s?(t=l/2,n=u):"bottom"===s?(t=l/2,n=0):"center"===s?(t=l/2,n=u/2):"right"===s?(t=0,n=u/2):"left"===s?(t=l,n=u/2):a.x<o.x?(s="right",t=0,n=u/2):(s="left",t=l+2*(c.x+f.x),n=u/2),e=e.subtract(R(t,n,!0)).add(c).add(f),yt(i,"leaflet-tooltip-right"),yt(i,"leaflet-tooltip-left"),yt(i,"leaflet-tooltip-top"),yt(i,"leaflet-tooltip-bottom"),gt(i,"leaflet-tooltip-"+s),St(i,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&xt(this._container,e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(t)},_getAnchor:function(){return R(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Mr=function(e,t){return new Tr(e,t)};Jt.include({openTooltip:function(e,t,n){return this._initOverlay(Tr,e,t,n).openOn(this),this},closeTooltip:function(e){return e.close(),this}}),Bn.include({bindTooltip:function(e,t){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Tr,this._tooltip,e,t),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(e){if(e||!this._tooltipHandlersAdded){var t=e?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[t](n),this._tooltipHandlersAdded=!e}},openTooltip:function(e){return this._tooltip&&this._tooltip._prepareOpen(e)&&this._tooltip.openOn(this._map),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_openTooltip:function(e){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(this._tooltip._source=e.layer||e.target,this.openTooltip(this._tooltip.options.sticky?e.latlng:void 0))},_moveTooltip:function(e){var t,n,r=e.latlng;this._tooltip.options.sticky&&e.originalEvent&&(t=this._map.mouseEventToContainerPoint(e.originalEvent),n=this._map.containerPointToLayerPoint(t),r=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(r)}});var Or=Zn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){var t=e&&"DIV"===e.tagName?e:document.createElement("div"),n=this.options;if(n.html instanceof Element?(ht(t),t.appendChild(n.html)):t.innerHTML=!1!==n.html?n.html:"",n.bgPos){var r=R(n.bgPos);t.style.backgroundPosition=-r.x+"px "+-r.y+"px"}return this._setIconStyles(t,"icon"),t},createShadow:function(){return null}});function jr(e){return new Or(e)}Zn.Default=qn;var Pr=Bn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Le.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(e){h(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),dt(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(pt(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(vt(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var e=this._clampZoom(this._map.getZoom());e!==this._tileZoom&&(this._tileZoom=e,this._updateLevels()),this._update()}return this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement("div")},getTileSize:function(){var e=this.options.tileSize;return e instanceof N?e:new N(e,e)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var t,n=this.getPane().children,r=-e(-1/0,1/0),i=0,o=n.length;i<o;i++)t=n[i].style.zIndex,n[i]!==this._container&&t&&(r=e(r,+t));isFinite(r)&&(this.options.zIndex=r+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Le.ielt9){xt(this._container,this.options.opacity);var e=+new Date,t=!1,n=!1;for(var r in this._tiles){var i=this._tiles[r];if(i.current&&i.loaded){var o=Math.min(1,(e-i.loaded)/200);xt(i.el,o),o<1?t=!0:(i.active?n=!0:this._onOpaqueTile(i),i.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),t&&(E(this._fadeFrame),this._fadeFrame=S(this._updateOpacity,this))}},_onOpaqueTile:u,_initContainer:function(){this._container||(this._container=ft("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(void 0!==e){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===e?(this._levels[n].el.style.zIndex=t-Math.abs(e-n),this._onUpdateLevel(n)):(dt(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var r=this._levels[e],i=this._map;return r||((r=this._levels[e]={}).el=ft("div","leaflet-tile-container leaflet-zoom-animated",this._container),r.el.style.zIndex=t,r.origin=i.project(i.unproject(i.getPixelOrigin()),e).round(),r.zoom=e,this._setZoomTransform(r,i.getCenter(),i.getZoom()),u(r.el.offsetWidth),this._onCreateLevel(r)),this._level=r,r}},_onUpdateLevel:u,_onRemoveLevel:u,_onCreateLevel:u,_pruneTiles:function(){if(this._map){var e,t,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(e in this._tiles)(t=this._tiles[e]).retain=t.current;for(e in this._tiles)if((t=this._tiles[e]).current&&!t.active){var r=t.coords;this._retainParent(r.x,r.y,r.z,r.z-5)||this._retainChildren(r.x,r.y,r.z,r.z+2)}for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}}},_removeTilesAtZoom:function(e){for(var t in this._tiles)this._tiles[t].coords.z===e&&this._removeTile(t)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)dt(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,t,n,r){var i=Math.floor(e/2),o=Math.floor(t/2),a=n-1,s=new N(+i,+o);s.z=+a;var l=this._tileCoordsToKey(s),u=this._tiles[l];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),a>r&&this._retainParent(i,o,a,r))},_retainChildren:function(e,t,n,r){for(var i=2*e;i<2*e+2;i++)for(var o=2*t;o<2*t+2;o++){var a=new N(i,o);a.z=n+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<r&&this._retainChildren(i,o,n+1,r))}},_resetView:function(e){var t=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var t=this.options;return void 0!==t.minNativeZoom&&e<t.minNativeZoom?t.minNativeZoom:void 0!==t.maxNativeZoom&&t.maxNativeZoom<e?t.maxNativeZoom:e},_setView:function(e,t,n,r){var i=Math.round(t);i=void 0!==this.options.maxZoom&&i>this.options.maxZoom||void 0!==this.options.minZoom&&i<this.options.minZoom?void 0:this._clampZoom(i);var o=this.options.updateWhenZooming&&i!==this._tileZoom;r&&!o||(this._tileZoom=i,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==i&&this._update(e),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var n in this._levels)this._setZoomTransform(this._levels[n],e,t)},_setZoomTransform:function(e,t,n){var r=this._map.getZoomScale(n,e.zoom),i=e.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(t,n)).round();Le.any3d?Ct(e.el,i,r):St(e.el,i)},_resetGrid:function(){var e=this._map,t=e.options.crs,n=this._tileSize=this.getTileSize(),r=this._tileZoom,i=this._map.getPixelWorldBounds(this._tileZoom);i&&(this._globalTileRange=this._pxBoundsToTileRange(i)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],r).x/n.x),Math.ceil(e.project([0,t.wrapLng[1]],r).x/n.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],r).y/n.x),Math.ceil(e.project([t.wrapLat[1],0],r).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(e){var t=this._map,n=t._animatingZoom?Math.max(t._animateToZoom,t.getZoom()):t.getZoom(),r=t.getZoomScale(n,this._tileZoom),i=t.project(e,this._tileZoom).floor(),o=t.getSize().divideBy(2*r);return new A(i.subtract(o),i.add(o))},_update:function(e){var t=this._map;if(t){var n=this._clampZoom(t.getZoom());if(void 0===e&&(e=t.getCenter()),void 0!==this._tileZoom){var r=this._getTiledPixelBounds(e),i=this._pxBoundsToTileRange(r),o=i.getCenter(),a=[],s=this.options.keepBuffer,l=new A(i.getBottomLeft().subtract([s,-s]),i.getTopRight().add([s,-s]));if(!(isFinite(i.min.x)&&isFinite(i.min.y)&&isFinite(i.max.x)&&isFinite(i.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var c=this._tiles[u].coords;c.z===this._tileZoom&&l.contains(new N(c.x,c.y))||(this._tiles[u].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(e,n);else{for(var f=i.min.y;f<=i.max.y;f++)for(var d=i.min.x;d<=i.max.x;d++){var h=new N(d,f);if(h.z=this._tileZoom,this._isValidTile(h)){var p=this._tiles[this._tileCoordsToKey(h)];p?p.current=!0:a.push(h)}}if(a.sort((function(e,t){return e.distanceTo(o)-t.distanceTo(o)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var v=document.createDocumentFragment();for(d=0;d<a.length;d++)this._addTile(a[d],v);this._level.el.appendChild(v)}}}}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){var n=this._globalTileRange;if(!t.wrapLng&&(e.x<n.min.x||e.x>n.max.x)||!t.wrapLat&&(e.y<n.min.y||e.y>n.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(e);return z(this.options.bounds).overlaps(r)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),r=e.scaleBy(n),i=r.add(n);return[t.unproject(r,e.z),t.unproject(i,e.z)]},_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),n=new F(t[0],t[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=e.split(":"),n=new N(+t[0],+t[1]);return n.z=+t[2],n},_removeTile:function(e){var t=this._tiles[e];t&&(dt(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){gt(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=u,e.onmousemove=u,Le.ielt9&&this.options.opacity<1&&xt(e,this.options.opacity)},_addTile:function(e,t){var n=this._getTilePos(e),r=this._tileCoordsToKey(e),o=this.createTile(this._wrapCoords(e),i(this._tileReady,this,e));this._initTile(o),this.createTile.length<2&&S(i(this._tileReady,this,e,null,o)),St(o,n),this._tiles[r]={el:o,coords:e,current:!0},t.appendChild(o),this.fire("tileloadstart",{tile:o,coords:e})},_tileReady:function(e,t,n){t&&this.fire("tileerror",{error:t,tile:n,coords:e});var r=this._tileCoordsToKey(e);(n=this._tiles[r])&&(n.loaded=+new Date,this._map._fadeAnimated?(xt(n.el,0),E(this._fadeFrame),this._fadeFrame=S(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),t||(gt(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Le.ielt9||!this._map._fadeAnimated?S(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new N(this._wrapX?l(e.x,this._wrapX):e.x,this._wrapY?l(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new A(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});function Nr(e){return new Pr(e)}var Dr=Pr.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,t){this._url=e,(t=h(this,t)).detectRetina&&Le.retina&&t.maxZoom>0&&(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom++):(t.zoomOffset++,t.maxZoom--),t.minZoom=Math.max(0,t.minZoom)),"string"===typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var n=document.createElement("img");return Rt(n,"load",i(this._tileOnLoad,this,t,n)),Rt(n,"error",i(this._tileOnError,this,t,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"===typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(e),n},getTileUrl:function(e){var t={r:Le.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-e.y;this.options.tms&&(t.y=r),t["-y"]=r}return m(this._url,n(t,this.options))},_tileOnLoad:function(e,t){Le.ielt9?setTimeout(i(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var r=this.options.errorTileUrl;r&&t.getAttribute("src")!==r&&(t.src=r),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom;return this.options.zoomReverse&&(e=t-e),e+this.options.zoomOffset},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var e,t;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&((t=this._tiles[e].el).onload=u,t.onerror=u,!t.complete)){t.src=b;var n=this._tiles[e].coords;dt(t),delete this._tiles[e],this.fire("tileabort",{tile:t,coords:n})}},_removeTile:function(e){var t=this._tiles[e];if(t)return t.el.setAttribute("src",b),Pr.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(this._map&&(!n||n.getAttribute("src")!==b))return Pr.prototype._tileReady.call(this,e,t,n)}});function Lr(e,t){return new Dr(e,t)}var Rr=Dr.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,t){this._url=e;var r=n({},this.defaultWmsParams);for(var i in t)i in this.options||(r[i]=t[i]);var o=(t=h(this,t)).detectRetina&&Le.retina?2:1,a=this.getTileSize();r.width=a.x*o,r.height=a.y*o,this.wmsParams=r},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,Dr.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=this._crs,r=I(n.project(t[0]),n.project(t[1])),i=r.min,o=r.max,a=(this._wmsVersion>=1.3&&this._crs===Fn?[i.y,i.x,o.y,o.x]:[i.x,i.y,o.x,o.y]).join(","),s=Dr.prototype.getTileUrl.call(this,e);return s+p(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(e,t){return n(this.wmsParams,e),t||this.redraw(),this}});function Ar(e,t){return new Rr(e,t)}Dr.WMS=Rr,Lr.wms=Ar;var Ir=Bn.extend({options:{padding:.1},initialize:function(e){h(this,e),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&>(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var n=this._map.getZoomScale(t,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),i=this._map.project(this._center,t),o=r.multiplyBy(-n).add(i).subtract(this._map._getNewPixelOrigin(e,t));Le.any3d?Ct(this._container,o,n):St(this._container,o)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new A(n,n.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Fr=Ir.extend({options:{tolerance:0},getEvents:function(){var e=Ir.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Ir.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");Rt(e,"mousemove",this._onMouseMove,this),Rt(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Rt(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){E(this._redrawRequest),delete this._ctx,dt(this._container),It(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Ir.prototype._update.call(this);var e=this._bounds,t=this._container,n=e.getSize(),r=Le.retina?2:1;St(t,e.min),t.width=r*n.x,t.height=r*n.y,t.style.width=n.x+"px",t.style.height=n.y+"px",Le.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){Ir.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[a(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,n=t.next,r=t.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete e._order,delete this._layers[a(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if("string"===typeof e.options.dashArray){var t,n,r=e.options.dashArray.split(/[, ]+/),i=[];for(n=0;n<r.length;n++){if(t=Number(r[n]),isNaN(t))return;i.push(t)}e.options._dashArray=i}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||S(this._redraw,this))},_extendRedrawBounds:function(e){if(e._pxBounds){var t=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new A,this._redrawBounds.extend(e._pxBounds.min.subtract([t,t])),this._redrawBounds.extend(e._pxBounds.max.add([t,t]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var e=this._redrawBounds;if(e){var t=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var e,t=this._redrawBounds;if(this._ctx.save(),t){var n=t.getSize();this._ctx.beginPath(),this._ctx.rect(t.min.x,t.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var r=this._drawFirst;r;r=r.next)e=r.layer,(!t||e._pxBounds&&e._pxBounds.intersects(t))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,t){if(this._drawing){var n,r,i,o,a=e._parts,s=a.length,l=this._ctx;if(s){for(l.beginPath(),n=0;n<s;n++){for(r=0,i=a[n].length;r<i;r++)o=a[n][r],l[r?"lineTo":"moveTo"](o.x,o.y);t&&l.closePath()}this._fillStroke(l,e)}}},_updateCircle:function(e){if(this._drawing&&!e._empty()){var t=e._point,n=this._ctx,r=Math.max(Math.round(e._radius),1),i=(Math.max(Math.round(e._radiusY),1)||r)/r;1!==i&&(n.save(),n.scale(1,i)),n.beginPath(),n.arc(t.x,t.y/i,r,0,2*Math.PI,!1),1!==i&&n.restore(),this._fillStroke(n,e)}},_fillStroke:function(e,t){var n=t.options;n.fill&&(e.globalAlpha=n.fillOpacity,e.fillStyle=n.fillColor||n.color,e.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(e.setLineDash&&e.setLineDash(t.options&&t.options._dashArray||[]),e.globalAlpha=n.opacity,e.lineWidth=n.weight,e.strokeStyle=n.color,e.lineCap=n.lineCap,e.lineJoin=n.lineJoin,e.stroke())},_onClick:function(e){for(var t,n,r=this._map.mouseEventToLayerPoint(e),i=this._drawFirst;i;i=i.next)(t=i.layer).options.interactive&&t._containsPoint(r)&&("click"!==e.type&&"preclick"!==e.type||!this._map._draggableMoved(t))&&(n=t);this._fireEvent(!!n&&[n],e)},_onMouseMove:function(e){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var t=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,t)}},_handleMouseOut:function(e){var t=this._hoveredLayer;t&&(yt(this._container,"leaflet-interactive"),this._fireEvent([t],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,t){if(!this._mouseHoverThrottled){for(var n,r,o=this._drawFirst;o;o=o.next)(n=o.layer).options.interactive&&n._containsPoint(t)&&(r=n);r!==this._hoveredLayer&&(this._handleMouseOut(e),r&&(gt(this._container,"leaflet-interactive"),this._fireEvent([r],e,"mouseover"),this._hoveredLayer=r)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],e),this._mouseHoverThrottled=!0,setTimeout(i((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(e,t,n){this._map._fireDOMEvent(t,n||t.type,e)},_bringToFront:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;n&&(n.prev=r,r?r.next=n:n&&(this._drawFirst=n),t.prev=this._drawLast,this._drawLast.next=t,t.next=null,this._drawLast=t,this._requestRedraw(e))}},_bringToBack:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;r&&(r.next=n,n?n.prev=r:r&&(this._drawLast=r),t.prev=null,t.next=this._drawFirst,this._drawFirst.prev=t,this._drawFirst=t,this._requestRedraw(e))}}});function zr(e){return Le.canvas?new Fr(e):null}var Br=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch(e){}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Ur={_initContainer:function(){this._container=ft("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Ir.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=Br("shape");gt(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=Br("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[a(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;dt(t),e.removeInteractiveTarget(t),delete this._layers[a(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,r=e.options,i=e._container;i.stroked=!!r.stroke,i.filled=!!r.fill,r.stroke?(t||(t=e._stroke=Br("stroke")),i.appendChild(t),t.weight=r.weight+"px",t.color=r.color,t.opacity=r.opacity,r.dashArray?t.dashStyle=g(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=r.lineCap.replace("butt","flat"),t.joinstyle=r.lineJoin):t&&(i.removeChild(t),e._stroke=null),r.fill?(n||(n=e._fill=Br("fill")),i.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(i.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),r=Math.round(e._radiusY||n);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+n+","+r+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){pt(e._container)},_bringToBack:function(e){vt(e._container)}},Vr=Le.vml?Br:Q,Hr=Ir.extend({_initContainer:function(){this._container=Vr("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Vr("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){dt(this._container),It(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Ir.prototype._update.call(this);var e=this._bounds,t=e.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,n.setAttribute("width",t.x),n.setAttribute("height",t.y)),St(n,e.min),n.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update")}},_initPath:function(e){var t=e._path=Vr("path");e.options.className&>(t,e.options.className),e.options.interactive&>(t,"leaflet-interactive"),this._updateStyle(e),this._layers[a(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){dt(e._path),e.removeInteractiveTarget(e._path),delete this._layers[a(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,n=e.options;t&&(n.stroke?(t.setAttribute("stroke",n.color),t.setAttribute("stroke-opacity",n.opacity),t.setAttribute("stroke-width",n.weight),t.setAttribute("stroke-linecap",n.lineCap),t.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?t.setAttribute("stroke-dasharray",n.dashArray):t.removeAttribute("stroke-dasharray"),n.dashOffset?t.setAttribute("stroke-dashoffset",n.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),n.fill?(t.setAttribute("fill",n.fillColor||n.color),t.setAttribute("fill-opacity",n.fillOpacity),t.setAttribute("fill-rule",n.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,$(e._parts,t))},_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),r="a"+n+","+(Math.max(Math.round(e._radiusY),1)||n)+" 0 1,0 ",i=e._empty()?"M0 0":"M"+(t.x-n)+","+t.y+r+2*n+",0 "+r+2*-n+",0 ";this._setPath(e,i)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){pt(e._path)},_bringToBack:function(e){vt(e._path)}});function Wr(e){return Le.svg||Le.vml?new Hr(e):null}Le.vml&&Hr.include(Ur),Jt.include({getRenderer:function(e){var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||(t=this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){return this.options.preferCanvas&&zr(e)||Wr(e)}});var Zr=ir.extend({initialize:function(e,t){ir.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return[(e=z(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});function Yr(e,t){return new Zr(e,t)}Hr.create=Vr,Hr.pointsToPath=$,ar.geometryToLayer=sr,ar.coordsToLatLng=ur,ar.coordsToLatLngs=cr,ar.latLngToCoords=fr,ar.latLngsToCoords=dr,ar.getFeature=hr,ar.asFeature=pr,Jt.mergeOptions({boxZoom:!0});var qr=hn.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){Rt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){It(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){dt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;this._clearDeferredResetState(),this._resetState(),tt(),Mt(),this._startPoint=this._map.mouseEventToContainerPoint(e),Rt(document,{contextmenu:Yt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=ft("div","leaflet-zoom-box",this._container),gt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=new A(this._point,this._startPoint),n=t.getSize();St(this._box,t.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(dt(this._box),yt(this._container,"leaflet-crosshair")),nt(),Ot(),It(document,{contextmenu:Yt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if((1===e.which||1===e.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0);var t=new F(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})}},_onKeyDown:function(e){27===e.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Jt.addInitHook("addHandler","boxZoom",qr),Jt.mergeOptions({doubleClickZoom:!0});var Gr=hn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),r=t.options.zoomDelta,i=e.originalEvent.shiftKey?n-r:n+r;"center"===t.options.doubleClickZoom?t.setZoom(i):t.setZoomAround(e.containerPoint,i)}});Jt.addInitHook("addHandler","doubleClickZoom",Gr),Jt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Kr=hn.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new gn(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}gt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){yt(this._map._container,"leaflet-grab"),yt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=z(this._map.options.maxBounds);this._offsetLimit=I(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(t),this._prunePositions(t)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.x<t.min.x&&(e.x=this._viscousLimit(e.x,t.min.x)),e.y<t.min.y&&(e.y=this._viscousLimit(e.y,t.min.y)),e.x>t.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,i=(r-t+n)%e+t-n,o=(r+t+n)%e-t-n,a=Math.abs(i+n)<Math.abs(o+n)?i:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(e){var t=this._map,n=t.options,r=!n.inertia||e.noInertia||this._times.length<2;if(t.fire("dragend",e),r)t.fire("moveend");else{this._prunePositions(+new Date);var i=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,a=n.easeLinearity,s=i.multiplyBy(a/o),l=s.distanceTo([0,0]),u=Math.min(n.inertiaMaxSpeed,l),c=s.multiplyBy(u/l),f=u/(n.inertiaDeceleration*a),d=c.multiplyBy(-f/2).round();d.x||d.y?(d=t._limitOffset(d,t.options.maxBounds),S((function(){t.panBy(d,{duration:f,easeLinearity:a,noMoveStart:!0,animate:!0})}))):t.fire("moveend")}}});Jt.addInitHook("addHandler","dragging",Kr),Jt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Qr=hn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex="0"),Rt(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),It(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var e=document.body,t=document.documentElement,n=e.scrollTop||t.scrollTop,r=e.scrollLeft||t.scrollLeft;this._map._container.focus(),window.scrollTo(r,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){var t,n,r=this._panKeys={},i=this.keyCodes;for(t=0,n=i.left.length;t<n;t++)r[i.left[t]]=[-1*e,0];for(t=0,n=i.right.length;t<n;t++)r[i.right[t]]=[e,0];for(t=0,n=i.down.length;t<n;t++)r[i.down[t]]=[0,e];for(t=0,n=i.up.length;t<n;t++)r[i.up[t]]=[0,-1*e]},_setZoomDelta:function(e){var t,n,r=this._zoomKeys={},i=this.keyCodes;for(t=0,n=i.zoomIn.length;t<n;t++)r[i.zoomIn[t]]=e;for(t=0,n=i.zoomOut.length;t<n;t++)r[i.zoomOut[t]]=-e},_addHooks:function(){Rt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){It(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var t,n=e.keyCode,r=this._map;if(n in this._panKeys)r._panAnim&&r._panAnim._inProgress||(t=this._panKeys[n],e.shiftKey&&(t=R(t).multiplyBy(3)),r.panBy(t),r.options.maxBounds&&r.panInsideBounds(r.options.maxBounds));else if(n in this._zoomKeys)r.setZoom(r.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!r._popup||!r._popup.options.closeOnEscapeKey)return;r.closePopup()}Yt(e)}}});Jt.addInitHook("addHandler","keyboard",Qr),Jt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var $r=hn.extend({addHooks:function(){Rt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){It(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var t=Kt(e),n=this._map.options.wheelDebounceTime;this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date);var r=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(i(this._performZoom,this),r),Yt(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),n=this._map.options.zoomSnap||0;e._stop();var r=this._delta/(4*this._map.options.wheelPxPerZoomLevel),i=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,o=n?Math.ceil(i/n)*n:i,a=e._limitZoom(t+(this._delta>0?o:-o))-t;this._delta=0,this._startTime=null,a&&("center"===e.options.scrollWheelZoom?e.setZoom(t+a):e.setZoomAround(this._lastMousePos,t+a))}});Jt.addInitHook("addHandler","scrollWheelZoom",$r);var Xr=600;Jt.mergeOptions({tapHold:Le.touchNative&&Le.safari&&Le.mobile,tapTolerance:15});var Jr=hn.extend({addHooks:function(){Rt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){It(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),1===e.touches.length){var t=e.touches[0];this._startPos=this._newPos=new N(t.clientX,t.clientY),this._holdTimeout=setTimeout(i((function(){this._cancel(),this._isTapValid()&&(Rt(document,"touchend",Zt),Rt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",t))}),this),Xr),Rt(document,"touchend touchcancel contextmenu",this._cancel,this),Rt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function e(){It(document,"touchend",Zt),It(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),It(document,"touchend touchcancel contextmenu",this._cancel,this),It(document,"touchmove",this._onMove,this)},_onMove:function(e){var t=e.touches[0];this._newPos=new N(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,t){var n=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY});n._simulated=!0,t.target.dispatchEvent(n)}});Jt.addInitHook("addHandler","tapHold",Jr),Jt.mergeOptions({touchZoom:Le.touch,bounceAtZoomLimits:!0});var ei=hn.extend({addHooks:function(){gt(this._map._container,"leaflet-touch-zoom"),Rt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){yt(this._map._container,"leaflet-touch-zoom"),It(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming){var n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),"center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),Rt(document,"touchmove",this._onTouchMove,this),Rt(document,"touchend touchcancel",this._onTouchEnd,this),Zt(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]),o=n.distanceTo(r)/this._startDist;if(this._zoom=t.getScaleZoom(o,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&o<1||this._zoom>t.getMaxZoom()&&o>1)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var a=n._add(r)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===a.x&&0===a.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),E(this._animRequest);var s=i(t._move,t,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=S(s,this,!0),Zt(e)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,E(this._animRequest),It(document,"touchmove",this._onTouchMove,this),It(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Jt.addInitHook("addHandler","touchZoom",ei),Jt.BoxZoom=qr,Jt.DoubleClickZoom=Gr,Jt.Drag=Kr,Jt.Keyboard=Qr,Jt.ScrollWheelZoom=$r,Jt.TapHold=Jr,Jt.TouchZoom=ei,e.Bounds=A,e.Browser=Le,e.CRS=V,e.Canvas=Fr,e.Circle=er,e.CircleMarker=Xn,e.Class=M,e.Control=tn,e.DivIcon=Or,e.DivOverlay=Cr,e.DomEvent=$t,e.DomUtil=Lt,e.Draggable=gn,e.Evented=P,e.FeatureGroup=Hn,e.GeoJSON=ar,e.GridLayer=Pr,e.Handler=hn,e.Icon=Zn,e.ImageOverlay=yr,e.LatLng=B,e.LatLngBounds=F,e.Layer=Bn,e.LayerGroup=Un,e.LineUtil=Pn,e.Map=Jt,e.Marker=Kn,e.Mixin=vn,e.Path=$n,e.Point=N,e.PolyUtil=Dn,e.Polygon=ir,e.Polyline=nr,e.Popup=Sr,e.PosAnimation=Xt,e.Projection=An,e.Rectangle=Zr,e.Renderer=Ir,e.SVG=Hr,e.SVGOverlay=wr,e.TileLayer=Dr,e.Tooltip=Tr,e.Transformation=Y,e.Util=T,e.VideoOverlay=_r,e.bind=i,e.bounds=I,e.canvas=zr,e.circle=tr,e.circleMarker=Jn,e.control=nn,e.divIcon=jr,e.extend=n,e.featureGroup=Wn,e.geoJSON=mr,e.geoJson=gr,e.gridLayer=Nr,e.icon=Yn,e.imageOverlay=br,e.latLng=U,e.latLngBounds=z,e.layerGroup=Vn,e.map=en,e.marker=Qn,e.point=R,e.polygon=or,e.polyline=rr,e.popup=Er,e.rectangle=Yr,e.setOptions=h,e.stamp=a,e.svg=Wr,e.svgOverlay=kr,e.tileLayer=Lr,e.tooltip=Mr,e.transformation=q,e.version=t,e.videoOverlay=xr;var ti=window.L;e.noConflict=function(){return window.L=ti,this},window.L=e}(t)},2393:function(e,t){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.apply(void 0,e)}function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l(!0===e[0],!1,e)}function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l(!0===e[0],!0,e)}function o(e){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;++n)t.push(o(e[n]));return t}if(a(e)){t={};for(var n in e)t[n]=o(e[n]);return t}return e}function a(e){return e&&"object"===typeof e&&!Array.isArray(e)}function s(e,t){if(!a(e))return t;for(var n in t)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=a(e[n])&&a(t[n])?s(e[n],t[n]):t[n]);return e}function l(e,t,n){var r;!e&&a(r=n.shift())||(r={});for(var i=0;i<n.length;++i){var l=n[i];if(a(l))for(var u in l)if("__proto__"!==u&&"constructor"!==u&&"prototype"!==u){var c=e?o(l[u]):l[u];r[u]=t?s(r[u],c):c}}return r}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=t.clone=t.recursive=t.merge=t.main=void 0,e.exports=t=n,t.default=n,t.main=n,n.clone=o,n.isPlainObject=a,n.recursive=i,t.merge=r,t.recursive=i,t.clone=o,t.isPlainObject=a},3422:function(e,t,n){"use strict";var r=n(9452);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},8731:function(e,t,n){e.exports=n(3422)()},9452:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7418:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:i}},8663:function(e,t,n){"use strict";var r=n(5398),i=n(54),o=n(7418);e.exports={formats:o,parse:i,stringify:r}},54:function(e,t,n){"use strict";var r=n(9116),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),u=s?o.slice(0,s.index):o,c=[];if(u){if(!n.plainObjects&&i.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var f=0;n.depth>0&&null!==(s=a.exec(o))&&f<n.depth;){if(f+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+o.slice(s.index)+"]"),function(e,t,n,r){for(var i=r?t:l(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(u,10);n.parseArrays||""!==u?!isNaN(c)&&s!==u&&String(c)===u&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=i:a[u]=i:a={0:i}}i=a}return i}(c,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var c="string"===typeof e?function(e,t){var n,u={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,f),h=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?p="utf-8":"utf8=%26%2310003%3B"===d[n]&&(p="iso-8859-1"),h=n,n=d.length);for(n=0;n<d.length;++n)if(n!==h){var v,m,g=d[n],y=g.indexOf("]="),b=-1===y?g.indexOf("="):y+1;-1===b?(v=t.decoder(g,a.decoder,p,"key"),m=t.strictNullHandling?null:""):(v=t.decoder(g.slice(0,b),a.decoder,p,"key"),m=r.maybeMap(l(g.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,p,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===p&&(m=s(m)),g.indexOf("[]=")>-1&&(m=o(m)?[m]:m),i.call(u,v)?u[v]=r.combine(u[v],m):u[v]=m}return u}(e,n):e,f=n.plainObjects?Object.create(null):{},d=Object.keys(c),h=0;h<d.length;++h){var p=d[h],v=u(p,c[p],n,"string"===typeof e);f=r.merge(f,v,n)}return r.compact(f)}},5398:function(e,t,n){"use strict";var r=n(9116),i=n(7418),o=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=Array.prototype.push,u=function(e,t){l.apply(e,s(t)?t:[t])},c=Date.prototype.toISOString,f=i.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},h=function e(t,n,i,o,a,l,c,f,h,p,v,m,g,y){var b,_=t;if("function"===typeof c?_=c(n,_):_ instanceof Date?_=p(_):"comma"===i&&s(_)&&(_=r.maybeMap(_,(function(e){return e instanceof Date?p(e):e}))),null===_){if(o)return l&&!g?l(n,d.encoder,y,"key",v):n;_=""}if("string"===typeof(b=_)||"number"===typeof b||"boolean"===typeof b||"symbol"===typeof b||"bigint"===typeof b||r.isBuffer(_))return l?[m(g?n:l(n,d.encoder,y,"key",v))+"="+m(l(_,d.encoder,y,"value",v))]:[m(n)+"="+m(String(_))];var x,w=[];if("undefined"===typeof _)return w;if("comma"===i&&s(_))x=[{value:_.length>0?_.join(",")||null:void 0}];else if(s(c))x=c;else{var k=Object.keys(_);x=f?k.sort(f):k}for(var C=0;C<x.length;++C){var S=x[C],E="object"===typeof S&&void 0!==S.value?S.value:_[S];if(!a||null!==E){var T=s(_)?"function"===typeof i?i(n,S):n:n+(h?"."+S:"["+S+"]");u(w,e(E,T,i,o,a,l,c,f,h,p,v,m,g,y))}}return w};e.exports=function(e,t){var n,r=e,l=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if("undefined"!==typeof e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],a=d.filter;return("function"===typeof e.filter||s(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?d.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:d.encode,encoder:"function"===typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:a,format:n,formatter:r,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"===typeof l.filter?r=(0,l.filter)("",r):s(l.filter)&&(n=l.filter);var c,f=[];if("object"!==typeof r||null===r)return"";c=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=a[c];n||(n=Object.keys(r)),l.sort&&n.sort(l.sort);for(var v=0;v<n.length;++v){var m=n[v];l.skipNulls&&null===r[m]||u(f,h(r[m],m,p,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset))}var g=f.join(l.delimiter),y=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),g.length>0?y+g:""}},9116:function(e,t,n){"use strict";var r=n(7418),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),l=0;l<s.length;++l){var u=s[l],c=a[u];"object"===typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:u}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)"undefined"!==typeof n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<s.length;++u){var c=s.charCodeAt(u);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===r.RFC1738&&(40===c||41===c)?l+=s.charAt(u):c<128?l+=a[c]:c<2048?l+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?l+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(u)),l+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return l},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(o(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"===typeof a&&n&&"object"===typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)}}},6328:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var i=s(n(9867)),o=s(n(5240)),a=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(l,e);var t,n,r,s=p(l);function l(){var e;f(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y(m(e=s.call.apply(s,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,a=n.onCopy,s=n.children,l=n.options,u=i.default.Children.only(s),c=(0,o.default)(r,l);a&&a(r,c),u&&u.props&&"function"===typeof u.props.onClick&&u.props.onClick(t)})),e}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=c(e,a),r=i.default.Children.only(t);return i.default.cloneElement(r,u(u({},n),{},{onClick:this.onClick}))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(i.default.PureComponent);t.CopyToClipboard=b,y(b,"defaultProps",{onCopy:void 0,options:void 0})},5176:function(e,t,n){"use strict";var r=n(6328).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},577:function(e,t,n){!function(e,t,n,r,i,o,a,s,l,u,c,f,d,h,p,v,m,g,y,b,_,x,w,k,C,S,E,T,M,O,j,P,N,D,L,R,A,I,F,z,B,U,V,H,W,Z,Y,q,G,K,Q,$,X,J,ee,te,ne,re,ie,oe,ae,se,le){"use strict";function ue(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var ce=ue(t),fe=ue(r),de=ue(i),he=ue(o),pe=ue(a),ve=ue(s),me=ue(l),ge=ue(u),ye=ue(c),be=ue(f),_e=ue(d),xe=ue(v),we=ue(m),ke=ue(g),Ce=ue(y),Se=ue(b),Ee=ue(_),Te=ue(x),Me=ue(w),Oe=ue(k),je=ue(C),Pe=ue(S),Ne=ue(E),De=ue(T),Le=ue(M),Re=ue(O),Ae=ue(j),Ie=ue(P),Fe=ue(N),ze=ue(D),Be=ue(L),Ue=ue(R),Ve=ue(A),He=ue(I),We=ue(F),Ze=ue(B),Ye=ue(U),qe=ue(V),Ge=ue(H),Ke=ue(W),Qe=ue(Z),$e=ue(Y),Xe=ue(K),Je=ue(Q),et=ue($),tt=ue(X),nt=ue(J),rt=ue(ee),it=ue(te),ot=ue(ne),at=ue(re),st=ue(ie),lt=ue(oe),ut=ue(ae),ct=ue(se);function ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(n),!0).forEach((function(t){gt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ht(e){return(ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mt(e,t,n){return t&&vt(e.prototype,t),n&&vt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yt(){return(yt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function bt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&xt(e,t)}function _t(e){return(_t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xt(e,t){return(xt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kt(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return wt(e)}function Ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_t(e);if(t){var i=_t(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return kt(this,n)}}function St(e){return function(e){if(Array.isArray(e))return Et(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Et(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Et(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tt(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function Mt(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var Ot={p:Mt,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Tt(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Tt(i,t)).replace("{{time}}",Mt(o,t))}},jt=12,Pt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function Nt(e){var t=e?"string"==typeof e||e instanceof String?lt.default(e):at.default(e):new Date;return Lt(t)?t:null}function Dt(e,t,n,r,i){var o=null,a=Xt(n)||Xt($t()),s=!0;return Array.isArray(t)?(t.forEach((function(t){var l=st.default(e,t,new Date,{locale:a});r&&(s=Lt(l,i)&&e===Rt(l,t,n)),Lt(l,i)&&s&&(o=l)})),o):(o=st.default(e,t,new Date,{locale:a}),r?s=Lt(o)&&e===Rt(o,t,n):Lt(o)||(t=t.match(Pt).map((function(e){var t=e[0];return"p"===t||"P"===t?a?(0,Ot[t])(e,a.formatLong):t:e})).join(""),e.length>0&&(o=st.default(e,t.slice(0,e.length),new Date)),Lt(o)||(o=new Date(e))),Lt(o)&&s?o:null)}function Lt(e,t){return t=t||new Date("1/1/1000"),he.default(e)&&!it.default(e,t)}function Rt(e,t,n){if("en"===n)return pe.default(e,t,{awareOfUnicodeTokens:!0});var r=Xt(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&$t()&&Xt($t())&&(r=Xt($t())),pe.default(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function At(e,t){var n=t.dateFormat,r=t.locale;return e&&Rt(e,Array.isArray(n)?n[0]:n,r)||""}function It(e,t){var n=t.hour,r=void 0===n?0:n,i=t.minute,o=void 0===i?0:i,a=t.second,s=void 0===a?0:a;return Ie.default(Ae.default(Re.default(e,s),o),r)}function Ft(e,t){var n=t&&Xt(t)||$t()&&Xt($t());return je.default(e,n?{locale:n}:null)}function zt(e,t){return Rt(e,"ddd",t)}function Bt(e){return Ye.default(e)}function Ut(e,t,n){var r=Xt(t||$t());return qe.default(e,{locale:r,weekStartsOn:n})}function Vt(e){return Ge.default(e)}function Ht(e){return Qe.default(e)}function Wt(e){return Ke.default(e)}function Zt(e,t){return e&&t?tt.default(e,t):!e&&!t}function Yt(e,t){return e&&t?et.default(e,t):!e&&!t}function qt(e,t){return e&&t?nt.default(e,t):!e&&!t}function Gt(e,t){return e&&t?Je.default(e,t):!e&&!t}function Kt(e,t){return e&&t?Xe.default(e,t):!e&&!t}function Qt(e,t,n){var r,i=Ye.default(t),o=$e.default(n);try{r=ot.default(e,{start:i,end:o})}catch(e){r=!1}return r}function $t(){return("undefined"!=typeof window?window:globalThis).__localeId__}function Xt(e){if("string"==typeof e){var t="undefined"!=typeof window?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function Jt(e,t){return Rt(Fe.default(Nt(),e),"LLLL",t)}function en(e,t){return Rt(Fe.default(Nt(),e),"LLL",t)}function tn(e,t){return Rt(ze.default(Nt(),e),"QQQ",t)}function nn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.excludeDateIntervals,a=t.includeDates,s=t.includeDateIntervals,l=t.filterDate;return cn(e,{minDate:n,maxDate:r})||i&&i.some((function(t){return Gt(e,t)}))||o&&o.some((function(t){var n=t.start,r=t.end;return ot.default(e,{start:n,end:r})}))||a&&!a.some((function(t){return Gt(e,t)}))||s&&!s.some((function(t){var n=t.start,r=t.end;return ot.default(e,{start:n,end:r})}))||l&&!l(Nt(e))||!1}function rn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some((function(t){var n=t.start,r=t.end;return ot.default(e,{start:n,end:r})})):n&&n.some((function(t){return Gt(e,t)}))||!1}function on(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return cn(e,{minDate:n,maxDate:r})||i&&i.some((function(t){return Yt(e,t)}))||o&&!o.some((function(t){return Yt(e,t)}))||a&&!a(Nt(e))||!1}function an(e,t,n,r){var i=De.default(e),o=Pe.default(e),a=De.default(t),s=Pe.default(t),l=De.default(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:void 0}function sn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return cn(e,{minDate:n,maxDate:r})||i&&i.some((function(t){return qt(e,t)}))||o&&!o.some((function(t){return qt(e,t)}))||a&&!a(Nt(e))||!1}function ln(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return cn(new Date(e,0,1),{minDate:n,maxDate:r})||!1}function un(e,t,n,r){var i=De.default(e),o=Ne.default(e),a=De.default(t),s=Ne.default(t),l=De.default(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:void 0}function cn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&He.default(e,n)<0||r&&He.default(e,r)>0}function fn(e,t){return t.some((function(t){return Te.default(t)===Te.default(e)&&Ee.default(t)===Ee.default(e)}))}function dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&fn(e,n)||r&&!fn(e,r)||i&&!i(e)||!1}function hn(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=Nt(),a=Ie.default(Ae.default(o,Ee.default(e)),Te.default(e)),s=Ie.default(Ae.default(o,Ee.default(n)),Te.default(n)),l=Ie.default(Ae.default(o,Ee.default(r)),Te.default(r));try{i=!ot.default(a,{start:s,end:l})}catch(e){i=!1}return i}function pn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,i=ke.default(e,1);return n&&We.default(n,i)>0||r&&r.every((function(e){return We.default(e,i)>0}))||!1}function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=be.default(e,1);return n&&We.default(i,n)>0||r&&r.every((function(e){return We.default(i,e)>0}))||!1}function mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Ce.default(e,1);return n&&Ze.default(n,i)>0||r&&r.every((function(e){return Ze.default(e,i)>0}))||!1}function gn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=_e.default(e,1);return n&&Ze.default(i,n)>0||r&&r.every((function(e){return Ze.default(i,e)>0}))||!1}function yn(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return He.default(e,t)>=0}));return Ue.default(r)}return n?Ue.default(n):t}function bn(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return He.default(e,t)<=0}));return Ve.default(r)}return n?Ve.default(n):t}function _n(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=e.length;r<i;r++){var o=e[r];if(de.default(o)){var a=Rt(o,"MM.dd.yyyy"),s=n.get(a)||[];s.includes(t)||(s.push(t),n.set(a,s))}else if("object"===ht(o)){var l=Object.keys(o),u=l[0],c=o[l[0]];if("string"==typeof u&&c.constructor===Array)for(var f=0,d=c.length;f<d;f++){var h=Rt(c[f],"MM.dd.yyyy"),p=n.get(h)||[];p.includes(u)||(p.push(u),n.set(h,p))}}}return n}function xn(e,t,n,r,i){for(var o=i.length,a=[],s=0;s<o;s++){var l=ve.default(me.default(e,Te.default(i[s])),Ee.default(i[s])),u=ve.default(e,(n+1)*r);rt.default(l,t)&&it.default(l,u)&&a.push(i[s])}return a}function wn(e){return e<10?"0".concat(e):"".concat(e)}function kn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jt,n=Math.ceil(De.default(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function Cn(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var a=e+t-o,s=!0;n&&(s=De.default(n)<=a),r&&s&&(s=De.default(r)>=a),s&&i.push(a)}return i}var Sn=function(e){bt(r,e);var n=Ct(r);function r(e){var i;pt(this,r),gt(wt(i=n.call(this,e)),"renderOptions",(function(){var e=i.props.year,t=i.state.yearsList.map((function(t){return ce.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:i.onChange.bind(wt(i),t),"aria-selected":e===t?"true":void 0},e===t?ce.default.createElement("span",{className:"react-datepicker__year-option--selected"},"\u2713"):"",t)})),n=i.props.minDate?De.default(i.props.minDate):null,r=i.props.maxDate?De.default(i.props.maxDate):null;return r&&i.state.yearsList.find((function(e){return e===r}))||t.unshift(ce.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},ce.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&i.state.yearsList.find((function(e){return e===n}))||t.push(ce.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},ce.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t})),gt(wt(i),"onChange",(function(e){i.props.onChange(e)})),gt(wt(i),"handleClickOutside",(function(){i.props.onCancel()})),gt(wt(i),"shiftYears",(function(e){var t=i.state.yearsList.map((function(t){return t+e}));i.setState({yearsList:t})})),gt(wt(i),"incrementYears",(function(){return i.shiftYears(1)})),gt(wt(i),"decrementYears",(function(){return i.shiftYears(-1)}));var o=e.yearDropdownItemNumber,a=e.scrollableYearDropdown,s=o||(a?10:5);return i.state={yearsList:Cn(i.props.year,s,i.props.minDate,i.props.maxDate)},i.dropdownRef=t.createRef(),i}return mt(r,[{key:"componentDidMount",value:function(){var e=this.dropdownRef.current;e&&(e.scrollTop=e.scrollHeight/2-e.clientHeight/2)}},{key:"render",value:function(){var e=fe.default({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return ce.default.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())}}]),r}(ce.default.Component),En=ut.default(Sn),Tn=function(e){bt(n,e);var t=Ct(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return gt(wt(e=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),gt(wt(e),"renderSelectOptions",(function(){for(var t=e.props.minDate?De.default(e.props.minDate):1900,n=e.props.maxDate?De.default(e.props.maxDate):2100,r=[],i=t;i<=n;i++)r.push(ce.default.createElement("option",{key:i,value:i},i));return r})),gt(wt(e),"onSelectChange",(function(t){e.onChange(t.target.value)})),gt(wt(e),"renderSelectMode",(function(){return ce.default.createElement("select",{value:e.props.year,className:"react-datepicker__year-select",onChange:e.onSelectChange},e.renderSelectOptions())})),gt(wt(e),"renderReadView",(function(t){return ce.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(t){return e.toggleDropdown(t)}},ce.default.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),ce.default.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},e.props.year))})),gt(wt(e),"renderDropdown",(function(){return ce.default.createElement(En,{key:"dropdown",year:e.props.year,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableYearDropdown:e.props.scrollableYearDropdown,yearDropdownItemNumber:e.props.yearDropdownItemNumber})})),gt(wt(e),"renderScrollMode",(function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n})),gt(wt(e),"onChange",(function(t){e.toggleDropdown(),t!==e.props.year&&e.props.onChange(t)})),gt(wt(e),"toggleDropdown",(function(t){e.setState({dropdownVisible:!e.state.dropdownVisible},(function(){e.props.adjustDateOnChange&&e.handleYearChange(e.props.date,t)}))})),gt(wt(e),"handleYearChange",(function(t,n){e.onSelect(t,n),e.setOpen()})),gt(wt(e),"onSelect",(function(t,n){e.props.onSelect&&e.props.onSelect(t,n)})),gt(wt(e),"setOpen",(function(){e.props.setOpen&&e.props.setOpen(!0)})),e}return mt(n,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return ce.default.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(ce.default.Component),Mn=function(e){bt(n,e);var t=Ct(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return gt(wt(e=t.call.apply(t,[this].concat(i))),"isSelectedMonth",(function(t){return e.props.month===t})),gt(wt(e),"renderOptions",(function(){return e.props.monthNames.map((function(t,n){return ce.default.createElement("div",{className:e.isSelectedMonth(n)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:t,onClick:e.onChange.bind(wt(e),n),"aria-selected":e.isSelectedMonth(n)?"true":void 0},e.isSelectedMonth(n)?ce.default.createElement("span",{className:"react-datepicker__month-option--selected"},"\u2713"):"",t)}))})),gt(wt(e),"onChange",(function(t){return e.props.onChange(t)})),gt(wt(e),"handleClickOutside",(function(){return e.props.onCancel()})),e}return mt(n,[{key:"render",value:function(){return ce.default.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n}(ce.default.Component),On=ut.default(Mn),jn=function(e){bt(n,e);var t=Ct(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return gt(wt(e=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),gt(wt(e),"renderSelectOptions",(function(e){return e.map((function(e,t){return ce.default.createElement("option",{key:t,value:t},e)}))})),gt(wt(e),"renderSelectMode",(function(t){return ce.default.createElement("select",{value:e.props.month,className:"react-datepicker__month-select",onChange:function(t){return e.onChange(t.target.value)}},e.renderSelectOptions(t))})),gt(wt(e),"renderReadView",(function(t,n){return ce.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:e.toggleDropdown},ce.default.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),ce.default.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},n[e.props.month]))})),gt(wt(e),"renderDropdown",(function(t){return ce.default.createElement(On,{key:"dropdown",month:e.props.month,monthNames:t,onChange:e.onChange,onCancel:e.toggleDropdown})})),gt(wt(e),"renderScrollMode",(function(t){var n=e.state.dropdownVisible,r=[e.renderReadView(!n,t)];return n&&r.unshift(e.renderDropdown(t)),r})),gt(wt(e),"onChange",(function(t){e.toggleDropdown(),t!==e.props.month&&e.props.onChange(t)})),gt(wt(e),"toggleDropdown",(function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})})),e}return mt(n,[{key:"render",value:function(){var e,t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(e){return en(e,t.props.locale)}:function(e){return Jt(e,t.props.locale)});switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode(n);break;case"select":e=this.renderSelectMode(n)}return ce.default.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(ce.default.Component);function Pn(e,t){for(var n=[],r=Vt(e),i=Vt(t);!rt.default(r,i);)n.push(Nt(r)),r=be.default(r,1);return n}var Nn=function(e){bt(n,e);var t=Ct(n);function n(e){var r;return pt(this,n),gt(wt(r=t.call(this,e)),"renderOptions",(function(){return r.state.monthYearsList.map((function(e){var t=Le.default(e),n=Zt(r.props.date,e)&&Yt(r.props.date,e);return ce.default.createElement("div",{className:n?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:t,onClick:r.onChange.bind(wt(r),t),"aria-selected":n?"true":void 0},n?ce.default.createElement("span",{className:"react-datepicker__month-year-option--selected"},"\u2713"):"",Rt(e,r.props.dateFormat,r.props.locale))}))})),gt(wt(r),"onChange",(function(e){return r.props.onChange(e)})),gt(wt(r),"handleClickOutside",(function(){r.props.onCancel()})),r.state={monthYearsList:Pn(r.props.minDate,r.props.maxDate)},r}return mt(n,[{key:"render",value:function(){var e=fe.default({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return ce.default.createElement("div",{className:e},this.renderOptions())}}]),n}(ce.default.Component),Dn=ut.default(Nn),Ln=function(e){bt(n,e);var t=Ct(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return gt(wt(e=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),gt(wt(e),"renderSelectOptions",(function(){for(var t=Vt(e.props.minDate),n=Vt(e.props.maxDate),r=[];!rt.default(t,n);){var i=Le.default(t);r.push(ce.default.createElement("option",{key:i,value:i},Rt(t,e.props.dateFormat,e.props.locale))),t=be.default(t,1)}return r})),gt(wt(e),"onSelectChange",(function(t){e.onChange(t.target.value)})),gt(wt(e),"renderSelectMode",(function(){return ce.default.createElement("select",{value:Le.default(Vt(e.props.date)),className:"react-datepicker__month-year-select",onChange:e.onSelectChange},e.renderSelectOptions())})),gt(wt(e),"renderReadView",(function(t){var n=Rt(e.props.date,e.props.dateFormat,e.props.locale);return ce.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(t){return e.toggleDropdown(t)}},ce.default.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),ce.default.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},n))})),gt(wt(e),"renderDropdown",(function(){return ce.default.createElement(Dn,{key:"dropdown",date:e.props.date,dateFormat:e.props.dateFormat,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableMonthYearDropdown:e.props.scrollableMonthYearDropdown,locale:e.props.locale})})),gt(wt(e),"renderScrollMode",(function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n})),gt(wt(e),"onChange",(function(t){e.toggleDropdown();var n=Nt(parseInt(t));Zt(e.props.date,n)&&Yt(e.props.date,n)||e.props.onChange(n)})),gt(wt(e),"toggleDropdown",(function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})})),e}return mt(n,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return ce.default.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(ce.default.Component),Rn=function(e){bt(n,e);var t=Ct(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return gt(wt(e=t.call.apply(t,[this].concat(i))),"dayEl",ce.default.createRef()),gt(wt(e),"handleClick",(function(t){!e.isDisabled()&&e.props.onClick&&e.props.onClick(t)})),gt(wt(e),"handleMouseEnter",(function(t){!e.isDisabled()&&e.props.onMouseEnter&&e.props.onMouseEnter(t)})),gt(wt(e),"handleOnKeyDown",(function(t){" "===t.key&&(t.preventDefault(),t.key="Enter"),e.props.handleOnKeyDown(t)})),gt(wt(e),"isSameDay",(function(t){return Gt(e.props.day,t)})),gt(wt(e),"isKeyboardSelected",(function(){return!e.props.disabledKeyboardNavigation&&!e.isSameDay(e.props.selected)&&e.isSameDay(e.props.preSelection)})),gt(wt(e),"isDisabled",(function(){return nn(e.props.day,e.props)})),gt(wt(e),"isExcluded",(function(){return rn(e.props.day,e.props)})),gt(wt(e),"getHighLightedClass",(function(t){var n=e.props,r=n.day,i=n.highlightDates;if(!i)return!1;var o=Rt(r,"MM.dd.yyyy");return i.get(o)})),gt(wt(e),"isInRange",(function(){var t=e.props,n=t.day,r=t.startDate,i=t.endDate;return!(!r||!i)&&Qt(n,r,i)})),gt(wt(e),"isInSelectingRange",(function(){var t,n=e.props,r=n.day,i=n.selectsStart,o=n.selectsEnd,a=n.selectsRange,s=n.selectsDisabledDaysInRange,l=n.startDate,u=n.endDate,c=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return!(!(i||o||a)||!c||!s&&e.isDisabled())&&(i&&u&&(it.default(c,u)||Kt(c,u))?Qt(r,c,u):(o&&l&&(rt.default(c,l)||Kt(c,l))||!(!a||!l||u||!rt.default(c,l)&&!Kt(c,l)))&&Qt(r,l,c))})),gt(wt(e),"isSelectingRangeStart",(function(){var t;if(!e.isInSelectingRange())return!1;var n=e.props,r=n.day,i=n.startDate,o=n.selectsStart,a=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return Gt(r,o?a:i)})),gt(wt(e),"isSelectingRangeEnd",(function(){var t;if(!e.isInSelectingRange())return!1;var n=e.props,r=n.day,i=n.endDate,o=n.selectsEnd,a=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return Gt(r,o?a:i)})),gt(wt(e),"isRangeStart",(function(){var t=e.props,n=t.day,r=t.startDate,i=t.endDate;return!(!r||!i)&&Gt(r,n)})),gt(wt(e),"isRangeEnd",(function(){var t=e.props,n=t.day,r=t.startDate,i=t.endDate;return!(!r||!i)&&Gt(i,n)})),gt(wt(e),"isWeekend",(function(){var t=Me.default(e.props.day);return 0===t||6===t})),gt(wt(e),"isAfterMonth",(function(){return void 0!==e.props.month&&(e.props.month+1)%12===Pe.default(e.props.day)})),gt(wt(e),"isBeforeMonth",(function(){return void 0!==e.props.month&&(Pe.default(e.props.day)+1)%12===e.props.month})),gt(wt(e),"isCurrentDay",(function(){return e.isSameDay(Nt())})),gt(wt(e),"isSelected",(function(){return e.isSameDay(e.props.selected)})),gt(wt(e),"getClassNames",(function(t){var n=e.props.dayClassName?e.props.dayClassName(t):void 0;return fe.default("react-datepicker__day",n,"react-datepicker__day--"+zt(e.props.day),{"react-datepicker__day--disabled":e.isDisabled(),"react-datepicker__day--excluded":e.isExcluded(),"react-datepicker__day--selected":e.isSelected(),"react-datepicker__day--keyboard-selected":e.isKeyboardSelected(),"react-datepicker__day--range-start":e.isRangeStart(),"react-datepicker__day--range-end":e.isRangeEnd(),"react-datepicker__day--in-range":e.isInRange(),"react-datepicker__day--in-selecting-range":e.isInSelectingRange(),"react-datepicker__day--selecting-range-start":e.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":e.isSelectingRangeEnd(),"react-datepicker__day--today":e.isCurrentDay(),"react-datepicker__day--weekend":e.isWeekend(),"react-datepicker__day--outside-month":e.isAfterMonth()||e.isBeforeMonth()},e.getHighLightedClass("react-datepicker__day--highlighted"))})),gt(wt(e),"getAriaLabel",(function(){var t=e.props,n=t.day,r=t.ariaLabelPrefixWhenEnabled,i=void 0===r?"Choose":r,o=t.ariaLabelPrefixWhenDisabled,a=void 0===o?"Not available":o,s=e.isDisabled()||e.isExcluded()?a:i;return"".concat(s," ").concat(Rt(n,"PPPP",e.props.locale))})),gt(wt(e),"getTabIndex",(function(t,n){var r=t||e.props.selected,i=n||e.props.preSelection;return e.isKeyboardSelected()||e.isSameDay(r)&&Gt(i,r)?0:-1})),gt(wt(e),"handleFocusDay",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1;0===e.getTabIndex()&&!t.isInputFocused&&e.isSameDay(e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(n=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(n=!0)),n&&e.dayEl.current.focus({preventScroll:!0})})),gt(wt(e),"renderDayContents",(function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(Oe.default(e.props.day),e.props.day):Oe.default(e.props.day)})),gt(wt(e),"render",(function(){return ce.default.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option","aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()},e.renderDayContents())})),e}return mt(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(e){this.handleFocusDay(e)}}]),n}(ce.default.Component),An=function(e){bt(n,e);var t=Ct(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return gt(wt(e=t.call.apply(t,[this].concat(i))),"handleClick",(function(t){e.props.onClick&&e.props.onClick(t)})),e}return mt(n,[{key:"render",value:function(){var e=this.props,t=e.weekNumber,n=e.ariaLabelPrefix,r=void 0===n?"week ":n,i={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!e.onClick};return ce.default.createElement("div",{className:fe.default(i),"aria-label":"".concat(r," ").concat(this.props.weekNumber),onClick:this.handleClick},t)}}]),n}(ce.default.Component),In=function(e){bt(n,e);var t=Ct(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return gt(wt(e=t.call.apply(t,[this].concat(i))),"handleDayClick",(function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n)})),gt(wt(e),"handleDayMouseEnter",(function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)})),gt(wt(e),"handleWeekClick",(function(t,n,r){"function"==typeof e.props.onWeekSelect&&e.props.onWeekSelect(t,n,r),e.props.shouldCloseOnSelect&&e.props.setOpen(!1)})),gt(wt(e),"formatWeekNumber",(function(t){return e.props.formatWeekNumber?e.props.formatWeekNumber(t):Ft(t)})),gt(wt(e),"renderDays",(function(){var t=Ut(e.props.day,e.props.locale,e.props.calendarStartDay),n=[],r=e.formatWeekNumber(t);if(e.props.showWeekNumber){var i=e.props.onWeekSelect?e.handleWeekClick.bind(wt(e),t,r):void 0;n.push(ce.default.createElement(An,{key:"W",weekNumber:r,onClick:i,ariaLabelPrefix:e.props.ariaLabelPrefix}))}return n.concat([0,1,2,3,4,5,6].map((function(n){var r=ge.default(t,n);return ce.default.createElement(Rn,{ariaLabelPrefixWhenEnabled:e.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:e.props.disabledDayAriaLabelPrefix,key:r.valueOf(),day:r,month:e.props.month,onClick:e.handleDayClick.bind(wt(e),r),onMouseEnter:e.handleDayMouseEnter.bind(wt(e),r),minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,highlightDates:e.props.highlightDates,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,renderDayContents:e.props.renderDayContents,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart,locale:e.props.locale})})))})),e}return mt(n,[{key:"render",value:function(){return ce.default.createElement("div",{className:"react-datepicker__week"},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(ce.default.Component),Fn=function(e){bt(n,e);var t=Ct(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return gt(wt(e=t.call.apply(t,[this].concat(i))),"MONTH_REFS",St(Array(12)).map((function(){return ce.default.createRef()}))),gt(wt(e),"isDisabled",(function(t){return nn(t,e.props)})),gt(wt(e),"isExcluded",(function(t){return rn(t,e.props)})),gt(wt(e),"handleDayClick",(function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n,e.props.orderInDisplay)})),gt(wt(e),"handleDayMouseEnter",(function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)})),gt(wt(e),"handleMouseLeave",(function(){e.props.onMouseLeave&&e.props.onMouseLeave()})),gt(wt(e),"isRangeStartMonth",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&Yt(Fe.default(r,t),i)})),gt(wt(e),"isRangeStartQuarter",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&qt(ze.default(r,t),i)})),gt(wt(e),"isRangeEndMonth",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&Yt(Fe.default(r,t),o)})),gt(wt(e),"isRangeEndQuarter",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate;return!(!i||!o)&&qt(ze.default(r,t),o)})),gt(wt(e),"isWeekInMonth",(function(t){var n=e.props.day,r=ge.default(t,6);return Yt(t,n)||Yt(r,n)})),gt(wt(e),"isCurrentMonth",(function(e,t){return De.default(e)===De.default(Nt())&&t===Pe.default(Nt())})),gt(wt(e),"isSelectedMonth",(function(e,t,n){return Pe.default(e)===t&&De.default(e)===De.default(n)})),gt(wt(e),"isSelectedQuarter",(function(e,t,n){return Ne.default(e)===t&&De.default(e)===De.default(n)})),gt(wt(e),"renderWeeks",(function(){for(var t=[],n=e.props.fixedHeight,r=0,i=!1,o=Ut(Vt(e.props.day),e.props.locale,e.props.calendarStartDay);t.push(ce.default.createElement(In,{ariaLabelPrefix:e.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:e.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:e.props.disabledDayAriaLabelPrefix,key:r,day:o,month:Pe.default(e.props.day),onDayClick:e.handleDayClick,onDayMouseEnter:e.handleDayMouseEnter,onWeekSelect:e.props.onWeekSelect,formatWeekNumber:e.props.formatWeekNumber,locale:e.props.locale,minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,highlightDates:e.props.highlightDates,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,showWeekNumber:e.props.showWeekNumbers,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,setOpen:e.props.setOpen,shouldCloseOnSelect:e.props.shouldCloseOnSelect,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,renderDayContents:e.props.renderDayContents,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,calendarStartDay:e.props.calendarStartDay,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart})),!i;){r++,o=ye.default(o,1);var a=n&&r>=6,s=!n&&!e.isWeekInMonth(o);if(a||s){if(!e.props.peekNextMonth)break;i=!0}}return t})),gt(wt(e),"onMonthClick",(function(t,n){e.handleDayClick(Vt(Fe.default(e.props.day,n)),t)})),gt(wt(e),"handleMonthNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.MONTH_REFS[t].current&&e.MONTH_REFS[t].current.focus())})),gt(wt(e),"onMonthKeyDown",(function(t,n){var r=t.key;if(!e.props.disabledKeyboardNavigation)switch(r){case"Enter":e.onMonthClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleMonthNavigation(11===n?0:n+1,be.default(e.props.preSelection,1));break;case"ArrowLeft":e.handleMonthNavigation(0===n?11:n-1,ke.default(e.props.preSelection,1))}})),gt(wt(e),"onQuarterClick",(function(t,n){e.handleDayClick(Wt(ze.default(e.props.day,n)),t)})),gt(wt(e),"getMonthClassNames",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate,a=n.selected,s=n.minDate,l=n.maxDate,u=n.preSelection,c=n.monthClassName,f=c?c(r):void 0;return fe.default("react-datepicker__month-text","react-datepicker__month-".concat(t),f,{"react-datepicker__month--disabled":(s||l)&&on(Fe.default(r,t),e.props),"react-datepicker__month--selected":e.isSelectedMonth(r,t,a),"react-datepicker__month-text--keyboard-selected":Pe.default(u)===t,"react-datepicker__month--in-range":an(i,o,t,r),"react-datepicker__month--range-start":e.isRangeStartMonth(t),"react-datepicker__month--range-end":e.isRangeEndMonth(t),"react-datepicker__month-text--today":e.isCurrentMonth(r,t)})})),gt(wt(e),"getTabIndex",(function(t){var n=Pe.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),gt(wt(e),"getAriaLabel",(function(t){var n=e.props,r=n.chooseDayAriaLabelPrefix,i=void 0===r?"Choose":r,o=n.disabledDayAriaLabelPrefix,a=void 0===o?"Not available":o,s=n.day,l=Fe.default(s,t),u=e.isDisabled(l)||e.isExcluded(l)?a:i;return"".concat(u," ").concat(Rt(l,"MMMM yyyy"))})),gt(wt(e),"getQuarterClassNames",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate,a=n.selected,s=n.minDate,l=n.maxDate;return fe.default("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter--disabled":(s||l)&&sn(ze.default(r,t),e.props),"react-datepicker__quarter--selected":e.isSelectedQuarter(r,t,a),"react-datepicker__quarter--in-range":un(i,o,t,r),"react-datepicker__quarter--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter--range-end":e.isRangeEndQuarter(t)})})),gt(wt(e),"renderMonths",(function(){var t=e.props,n=t.showFullMonthYearPicker,r=t.showTwoColumnMonthYearPicker,i=t.showFourColumnMonthYearPicker,o=t.locale,a=t.day,s=t.selected;return(i?[[0,1,2,3],[4,5,6,7],[8,9,10,11]]:r?[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]]:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]]).map((function(t,r){return ce.default.createElement("div",{className:"react-datepicker__month-wrapper",key:r},t.map((function(t,r){return ce.default.createElement("div",{ref:e.MONTH_REFS[t],key:r,onClick:function(n){e.onMonthClick(n,t)},onKeyDown:function(n){e.onMonthKeyDown(n,t)},tabIndex:e.getTabIndex(t),className:e.getMonthClassNames(t),role:"option","aria-label":e.getAriaLabel(t),"aria-current":e.isCurrentMonth(a,t)?"date":void 0,"aria-selected":e.isSelectedMonth(a,t,s)},n?Jt(t,o):en(t,o))})))}))})),gt(wt(e),"renderQuarters",(function(){var t=e.props,n=t.day,r=t.selected;return ce.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(t,i){return ce.default.createElement("div",{key:i,role:"option",onClick:function(n){e.onQuarterClick(n,t)},className:e.getQuarterClassNames(t),"aria-selected":e.isSelectedQuarter(n,t,r)},tn(t,e.props.locale))})))})),gt(wt(e),"getClassNames",(function(){var t=e.props;t.day;var n=t.selectingDate,r=t.selectsStart,i=t.selectsEnd,o=t.showMonthYearPicker,a=t.showQuarterYearPicker;return fe.default("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(r||i)},{"react-datepicker__monthPicker":o},{"react-datepicker__quarterPicker":a})})),e}return mt(n,[{key:"render",value:function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,i=e.ariaLabelPrefix,o=void 0===i?"month ":i;return ce.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(o," ").concat(Rt(r,"yyyy-MM")),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())}}]),n}(ce.default.Component),zn=function(e){bt(n,e);var t=Ct(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return gt(wt(e=t.call.apply(t,[this].concat(i))),"state",{height:null}),gt(wt(e),"handleClick",(function(t){(e.props.minTime||e.props.maxTime)&&hn(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&dn(t,e.props)||e.props.onChange(t)})),gt(wt(e),"isSelectedTime",(function(t,n,r){return e.props.selected&&n===Te.default(t)&&r===Ee.default(t)})),gt(wt(e),"liClasses",(function(t,n,r){var i=["react-datepicker__time-list-item",e.props.timeClassName?e.props.timeClassName(t,n,r):void 0];return e.isSelectedTime(t,n,r)&&i.push("react-datepicker__time-list-item--selected"),((e.props.minTime||e.props.maxTime)&&hn(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&dn(t,e.props))&&i.push("react-datepicker__time-list-item--disabled"),e.props.injectTimes&&(60*Te.default(t)+Ee.default(t))%e.props.intervals!=0&&i.push("react-datepicker__time-list-item--injected"),i.join(" ")})),gt(wt(e),"handleOnKeyDown",(function(t,n){" "===t.key&&(t.preventDefault(),t.key="Enter"),"Enter"===t.key&&e.handleClick(n),e.props.handleOnKeyDown(t)})),gt(wt(e),"renderTimes",(function(){for(var t=[],n=e.props.format?e.props.format:"p",r=e.props.intervals,i=Bt(Nt(e.props.selected)),o=1440/r,a=e.props.injectTimes&&e.props.injectTimes.sort((function(e,t){return e-t})),s=e.props.selected||e.props.openToDate||Nt(),l=Te.default(s),u=Ee.default(s),c=Ie.default(Ae.default(i,u),l),f=0;f<o;f++){var d=ve.default(i,f*r);if(t.push(d),a){var h=xn(i,d,f,r,a);t=t.concat(h)}}return t.map((function(t,r){return ce.default.createElement("li",{key:r,onClick:e.handleClick.bind(wt(e),t),className:e.liClasses(t,l,u),ref:function(n){(it.default(t,c)||Kt(t,c))&&(e.centerLi=n)},onKeyDown:function(n){e.handleOnKeyDown(n,t)},tabIndex:"0","aria-selected":e.isSelectedTime(t,l,u)?"true":void 0},Rt(t,n,e.props.locale))}))})),e}return mt(n,[{key:"componentDidMount",value:function(){this.list.scrollTop=n.calcCenterPosition(this.props.monthRef?this.props.monthRef.clientHeight-this.header.clientHeight:this.list.clientHeight,this.centerLi),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var e=this,t=this.state.height;return ce.default.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},ce.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(t){e.header=t}},ce.default.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),ce.default.createElement("div",{className:"react-datepicker__time"},ce.default.createElement("div",{className:"react-datepicker__time-box"},ce.default.createElement("ul",{className:"react-datepicker__time-list",ref:function(t){e.list=t},style:t?{height:t}:{},tabIndex:"0"},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n}(ce.default.Component);gt(zn,"calcCenterPosition",(function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)}));var Bn=function(e){bt(n,e);var t=Ct(n);function n(e){var r;return pt(this,n),gt(wt(r=t.call(this,e)),"YEAR_REFS",St(Array(r.props.yearItemNumber)).map((function(){return ce.default.createRef()}))),gt(wt(r),"isDisabled",(function(e){return nn(e,r.props)})),gt(wt(r),"isExcluded",(function(e){return rn(e,r.props)})),gt(wt(r),"updateFocusOnPaginate",(function(e){var t=function(){this.YEAR_REFS[e].current.focus()}.bind(wt(r));window.requestAnimationFrame(t)})),gt(wt(r),"handleYearClick",(function(e,t){r.props.onDayClick&&r.props.onDayClick(e,t)})),gt(wt(r),"handleYearNavigation",(function(e,t){var n=r.props,i=n.date,o=n.yearItemNumber,a=kn(i,o).startPeriod;r.isDisabled(t)||r.isExcluded(t)||(r.props.setPreSelection(t),e-a==-1?r.updateFocusOnPaginate(o-1):e-a===o?r.updateFocusOnPaginate(0):r.YEAR_REFS[e-a].current.focus())})),gt(wt(r),"isSameDay",(function(e,t){return Gt(e,t)})),gt(wt(r),"isCurrentYear",(function(e){return e===De.default(Nt())})),gt(wt(r),"isKeyboardSelected",(function(e){var t=Ht(Be.default(r.props.date,e));return!r.props.disabledKeyboardNavigation&&!r.props.inline&&!Gt(t,Ht(r.props.selected))&&Gt(t,Ht(r.props.preSelection))})),gt(wt(r),"onYearClick",(function(e,t){var n=r.props.date;r.handleYearClick(Ht(Be.default(n,t)),e)})),gt(wt(r),"onYearKeyDown",(function(e,t){var n=e.key;if(!r.props.disabledKeyboardNavigation)switch(n){case"Enter":r.onYearClick(e,t),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleYearNavigation(t+1,_e.default(r.props.preSelection,1));break;case"ArrowLeft":r.handleYearNavigation(t-1,Ce.default(r.props.preSelection,1))}})),gt(wt(r),"getYearClassNames",(function(e){var t=r.props,n=t.minDate,i=t.maxDate,o=t.selected;return fe.default("react-datepicker__year-text",{"react-datepicker__year-text--selected":e===De.default(o),"react-datepicker__year-text--disabled":(n||i)&&ln(e,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(e),"react-datepicker__year-text--today":r.isCurrentYear(e)})})),gt(wt(r),"getYearTabIndex",(function(e){return r.props.disabledKeyboardNavigation?"-1":e===De.default(r.props.preSelection)?"0":"-1"})),r}return mt(n,[{key:"render",value:function(){for(var e=this,t=[],n=this.props,r=kn(n.date,n.yearItemNumber),i=r.startPeriod,o=r.endPeriod,a=function(n){t.push(ce.default.createElement("div",{ref:e.YEAR_REFS[n-i],onClick:function(t){e.onYearClick(t,n)},onKeyDown:function(t){e.onYearKeyDown(t,n)},tabIndex:e.getYearTabIndex(n),className:e.getYearClassNames(n),key:n,"aria-current":e.isCurrentYear(n)?"date":void 0},n))},s=i;s<=o;s++)a(s);return ce.default.createElement("div",{className:"react-datepicker__year"},ce.default.createElement("div",{className:"react-datepicker__year-wrapper"},t))}}]),n}(ce.default.Component),Un=function(e){bt(n,e);var t=Ct(n);function n(e){var r;return pt(this,n),gt(wt(r=t.call(this,e)),"onTimeChange",(function(e){r.setState({time:e});var t=new Date;t.setHours(e.split(":")[0]),t.setMinutes(e.split(":")[1]),r.props.onChange(t)})),gt(wt(r),"renderTimeInput",(function(){var e=r.state.time,t=r.props,n=t.date,i=t.timeString,o=t.customTimeInput;return o?ce.default.cloneElement(o,{date:n,value:e,onChange:r.onTimeChange}):ce.default.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:e,onChange:function(e){r.onTimeChange(e.target.value||i)}})})),r.state={time:r.props.timeString},r}return mt(n,[{key:"render",value:function(){return ce.default.createElement("div",{className:"react-datepicker__input-time-container"},ce.default.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),ce.default.createElement("div",{className:"react-datepicker-time__input-container"},ce.default.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.timeString!==t.time?{time:e.timeString}:null}}]),n}(ce.default.Component);function Vn(e){var t=e.className,n=e.children,r=e.showPopperArrow,i=e.arrowProps,o=void 0===i?{}:i;return ce.default.createElement("div",{className:t},r&&ce.default.createElement("div",yt({className:"react-datepicker__triangle"},o)),n)}var Hn=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],Wn=function(e){bt(n,e);var t=Ct(n);function n(e){var r;return pt(this,n),gt(wt(r=t.call(this,e)),"handleClickOutside",(function(e){r.props.onClickOutside(e)})),gt(wt(r),"setClickOutsideRef",(function(){return r.containerRef.current})),gt(wt(r),"handleDropdownFocus",(function(e){(function(){var e=((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).className||"").split(/\s+/);return Hn.some((function(t){return e.indexOf(t)>=0}))})(e.target)&&r.props.onDropdownFocus()})),gt(wt(r),"getDateInView",(function(){var e=r.props,t=e.preSelection,n=e.selected,i=e.openToDate,o=yn(r.props),a=bn(r.props),s=Nt();return i||n||t||(o&&it.default(s,o)?o:a&&rt.default(s,a)?a:s)})),gt(wt(r),"increaseMonth",(function(){r.setState((function(e){var t=e.date;return{date:be.default(t,1)}}),(function(){return r.handleMonthChange(r.state.date)}))})),gt(wt(r),"decreaseMonth",(function(){r.setState((function(e){var t=e.date;return{date:ke.default(t,1)}}),(function(){return r.handleMonthChange(r.state.date)}))})),gt(wt(r),"handleDayClick",(function(e,t,n){r.props.onSelect(e,t,n),r.props.setPreSelection&&r.props.setPreSelection(e)})),gt(wt(r),"handleDayMouseEnter",(function(e){r.setState({selectingDate:e}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)})),gt(wt(r),"handleMonthMouseLeave",(function(){r.setState({selectingDate:null}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()})),gt(wt(r),"handleYearChange",(function(e){r.props.onYearChange&&r.props.onYearChange(e),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)})),gt(wt(r),"handleMonthChange",(function(e){r.props.onMonthChange&&r.props.onMonthChange(e),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)})),gt(wt(r),"handleMonthYearChange",(function(e){r.handleYearChange(e),r.handleMonthChange(e)})),gt(wt(r),"changeYear",(function(e){r.setState((function(t){var n=t.date;return{date:Be.default(n,e)}}),(function(){return r.handleYearChange(r.state.date)}))})),gt(wt(r),"changeMonth",(function(e){r.setState((function(t){var n=t.date;return{date:Fe.default(n,e)}}),(function(){return r.handleMonthChange(r.state.date)}))})),gt(wt(r),"changeMonthYear",(function(e){r.setState((function(t){var n=t.date;return{date:Be.default(Fe.default(n,Pe.default(e)),De.default(e))}}),(function(){return r.handleMonthYearChange(r.state.date)}))})),gt(wt(r),"header",(function(){var e=Ut(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,r.props.locale,r.props.calendarStartDay),t=[];return r.props.showWeekNumbers&&t.push(ce.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),t.concat([0,1,2,3,4,5,6].map((function(t){var n=ge.default(e,t),i=r.formatWeekday(n,r.props.locale),o=r.props.weekDayClassName?r.props.weekDayClassName(n):void 0;return ce.default.createElement("div",{key:t,className:fe.default("react-datepicker__day-name",o)},i)})))})),gt(wt(r),"formatWeekday",(function(e,t){return r.props.formatWeekDay?function(e,t,n){return t(Rt(e,"EEEE",n))}(e,r.props.formatWeekDay,t):r.props.useWeekdaysShort?function(e,t){return Rt(e,"EEE",t)}(e,t):function(e,t){return Rt(e,"EEEEEE",t)}(e,t)})),gt(wt(r),"decreaseYear",(function(){r.setState((function(e){var t=e.date;return{date:Ce.default(t,r.props.showYearPicker?r.props.yearItemNumber:1)}}),(function(){return r.handleYearChange(r.state.date)}))})),gt(wt(r),"renderPreviousButton",(function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=mn(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.yearItemNumber,i=void 0===r?jt:r,o=kn(Ht(Ce.default(e,i)),i).endPeriod,a=n&&De.default(n);return a&&a>o||!1}(r.state.date,r.props);break;default:e=pn(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],n=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.decreaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),n=null);var i=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,o=r.props,a=o.previousMonthButtonLabel,s=o.previousYearButtonLabel,l=r.props,u=l.previousMonthAriaLabel,c=void 0===u?"string"==typeof a?a:"Previous Month":u,f=l.previousYearAriaLabel,d=void 0===f?"string"==typeof s?s:"Previous Year":f;return ce.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:r.props.handleOnKeyDown,"aria-label":i?d:c},ce.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},i?r.props.previousYearButtonLabel:r.props.previousMonthButtonLabel))}}})),gt(wt(r),"increaseYear",(function(){r.setState((function(e){var t=e.date;return{date:_e.default(t,r.props.showYearPicker?r.props.yearItemNumber:1)}}),(function(){return r.handleYearChange(r.state.date)}))})),gt(wt(r),"renderNextButton",(function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=gn(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.yearItemNumber,i=void 0===r?jt:r,o=kn(_e.default(e,i),i).startPeriod,a=n&&De.default(n);return a&&a<o||!1}(r.state.date,r.props);break;default:e=vn(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--next"];r.props.showTimeSelect&&t.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&t.push("react-datepicker__navigation--next--with-today-button");var n=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.increaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--next--disabled"),n=null);var i=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,o=r.props,a=o.nextMonthButtonLabel,s=o.nextYearButtonLabel,l=r.props,u=l.nextMonthAriaLabel,c=void 0===u?"string"==typeof a?a:"Next Month":u,f=l.nextYearAriaLabel,d=void 0===f?"string"==typeof s?s:"Next Year":f;return ce.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:r.props.handleOnKeyDown,"aria-label":i?d:c},ce.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},i?r.props.nextYearButtonLabel:r.props.nextMonthButtonLabel))}}})),gt(wt(r),"renderCurrentMonth",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=["react-datepicker__current-month"];return r.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),ce.default.createElement("div",{className:t.join(" ")},Rt(e,r.props.dateFormat,r.props.locale))})),gt(wt(r),"renderYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showYearDropdown&&!e)return ce.default.createElement(Tn,{adjustDateOnChange:r.props.adjustDateOnChange,date:r.state.date,onSelect:r.props.onSelect,setOpen:r.props.setOpen,dropdownMode:r.props.dropdownMode,onChange:r.changeYear,minDate:r.props.minDate,maxDate:r.props.maxDate,year:De.default(r.state.date),scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})})),gt(wt(r),"renderMonthDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthDropdown&&!e)return ce.default.createElement(jn,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,onChange:r.changeMonth,month:Pe.default(r.state.date),useShortMonthInDropdown:r.props.useShortMonthInDropdown})})),gt(wt(r),"renderMonthYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthYearDropdown&&!e)return ce.default.createElement(Ln,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,dateFormat:r.props.dateFormat,onChange:r.changeMonthYear,minDate:r.props.minDate,maxDate:r.props.maxDate,date:r.state.date,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})})),gt(wt(r),"renderTodayButton",(function(){if(r.props.todayButton&&!r.props.showTimeSelectOnly)return ce.default.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return r.props.onSelect(Ye.default(Nt()),e)}},r.props.todayButton)})),gt(wt(r),"renderDefaultHeader",(function(e){var t=e.monthDate,n=e.i;return ce.default.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(t),ce.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(0!==n),r.renderMonthYearDropdown(0!==n),r.renderYearDropdown(0!==n)),ce.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))})),gt(wt(r),"renderCustomHeader",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.monthDate,n=e.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var i=pn(r.state.date,r.props),o=vn(r.state.date,r.props),a=mn(r.state.date,r.props),s=gn(r.state.date,r.props),l=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return ce.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},r.props.renderCustomHeader(dt(dt({},r.state),{},{customHeaderCount:n,monthDate:t,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:i,nextMonthButtonDisabled:o,prevYearButtonDisabled:a,nextYearButtonDisabled:s})),l&&ce.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))})),gt(wt(r),"renderYearHeader",(function(){var e=r.state.date,t=r.props,n=t.showYearPicker,i=kn(e,t.yearItemNumber),o=i.startPeriod,a=i.endPeriod;return ce.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},n?"".concat(o," - ").concat(a):De.default(e))})),gt(wt(r),"renderHeader",(function(e){switch(!0){case void 0!==r.props.renderCustomHeader:return r.renderCustomHeader(e);case r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker:return r.renderYearHeader(e);default:return r.renderDefaultHeader(e)}})),gt(wt(r),"renderMonths",(function(){if(!r.props.showTimeSelectOnly&&!r.props.showYearPicker){for(var e=[],t=r.props.showPreviousMonths?r.props.monthsShown-1:0,n=ke.default(r.state.date,t),i=0;i<r.props.monthsShown;++i){var o=i-r.props.monthSelectedIn,a=be.default(n,o),s="month-".concat(i),l=i<r.props.monthsShown-1,u=i>0;e.push(ce.default.createElement("div",{key:s,ref:function(e){r.monthContainer=e},className:"react-datepicker__month-container"},r.renderHeader({monthDate:a,i:i}),ce.default.createElement(Fn,{chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,ariaLabelPrefix:r.props.monthAriaLabelPrefix,onChange:r.changeMonthYear,day:a,dayClassName:r.props.dayClassName,calendarStartDay:r.props.calendarStartDay,monthClassName:r.props.monthClassName,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,onWeekSelect:r.props.onWeekSelect,orderInDisplay:i,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,highlightDates:r.props.highlightDates,selectingDate:r.state.selectingDate,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,fixedHeight:r.props.fixedHeight,filterDate:r.props.filterDate,preSelection:r.props.preSelection,setPreSelection:r.props.setPreSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumbers:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,peekNextMonth:r.props.peekNextMonth,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,isInputFocused:r.props.isInputFocused,containerRef:r.containerRef,monthShowsDuplicateDaysEnd:l,monthShowsDuplicateDaysStart:u})))}return e}})),gt(wt(r),"renderYears",(function(){if(!r.props.showTimeSelectOnly)return r.props.showYearPicker?ce.default.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader(),ce.default.createElement(Bn,yt({onDayClick:r.handleDayClick,date:r.state.date},r.props))):void 0})),gt(wt(r),"renderTimeSection",(function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return ce.default.createElement(zn,{selected:r.props.selected,openToDate:r.props.openToDate,onChange:r.props.onTimeChange,timeClassName:r.props.timeClassName,format:r.props.timeFormat,includeTimes:r.props.includeTimes,intervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,todayButton:r.props.todayButton,showMonthDropdown:r.props.showMonthDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,monthRef:r.state.monthContainer,injectTimes:r.props.injectTimes,locale:r.props.locale,handleOnKeyDown:r.props.handleOnKeyDown,showTimeSelectOnly:r.props.showTimeSelectOnly})})),gt(wt(r),"renderInputTimeSection",(function(){var e=new Date(r.props.selected),t=Lt(e)&&Boolean(r.props.selected)?"".concat(wn(e.getHours()),":").concat(wn(e.getMinutes())):"";if(r.props.showTimeInput)return ce.default.createElement(Un,{date:e,timeString:t,timeInputLabel:r.props.timeInputLabel,onChange:r.props.onTimeChange,customTimeInput:r.props.customTimeInput})})),r.containerRef=ce.default.createRef(),r.state={date:r.getDateInView(),selectingDate:null,monthContainer:null},r}return mt(n,[{key:"componentDidMount",value:function(){var e=this;this.props.showTimeSelect&&(this.assignMonthContainer=void e.setState({monthContainer:e.monthContainer}))}},{key:"componentDidUpdate",value:function(e){this.props.preSelection&&!Gt(this.props.preSelection,e.preSelection)?this.setState({date:this.props.preSelection}):this.props.openToDate&&!Gt(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate})}},{key:"render",value:function(){var e=this.props.container||Vn;return ce.default.createElement("div",{ref:this.containerRef},ce.default.createElement(e,{className:fe.default("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.props.children))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:jt}}}]),n}(ce.default.Component),Zn=function(e){bt(n,e);var t=Ct(n);function n(e){var r;return pt(this,n),(r=t.call(this,e)).el=document.createElement("div"),r}return mt(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return ct.default.createPortal(this.props.children,this.el)}}]),n}(ce.default.Component),Yn=function(e){return!e.disabled&&-1!==e.tabIndex},qn=function(e){bt(n,e);var t=Ct(n);function n(e){var r;return pt(this,n),gt(wt(r=t.call(this,e)),"getTabChildren",(function(){return Array.prototype.slice.call(r.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(Yn)})),gt(wt(r),"handleFocusStart",(function(e){var t=r.getTabChildren();t&&t.length>1&&t[t.length-1].focus()})),gt(wt(r),"handleFocusEnd",(function(e){var t=r.getTabChildren();t&&t.length>1&&t[0].focus()})),r.tabLoopRef=ce.default.createRef(),r}return mt(n,[{key:"render",value:function(){return this.props.enableTabLoop?ce.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},ce.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,ce.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(ce.default.Component),Gn=function(e){bt(n,e);var t=Ct(n);function n(){return pt(this,n),t.apply(this,arguments)}return mt(n,[{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.wrapperClassName,i=t.hidePopper,o=t.popperComponent,a=t.popperModifiers,s=t.popperPlacement,l=t.popperProps,u=t.targetComponent,c=t.enableTabLoop,f=t.popperOnKeyDown,d=t.portalId,h=t.portalHost;if(!i){var p=fe.default("react-datepicker-popper",n);e=ce.default.createElement(le.Popper,yt({modifiers:a,placement:s},l),(function(e){var t=e.ref,n=e.style,r=e.placement,i=e.arrowProps;return ce.default.createElement(qn,{enableTabLoop:c},ce.default.createElement("div",{ref:t,style:n,className:p,"data-placement":r,onKeyDown:f},ce.default.cloneElement(o,{arrowProps:i})))}))}this.props.popperContainer&&(e=ce.default.createElement(this.props.popperContainer,{},e)),d&&!i&&(e=ce.default.createElement(Zn,{portalId:d,portalHost:h},e));var v=fe.default("react-datepicker-wrapper",r);return ce.default.createElement(le.Manager,{className:"react-datepicker-manager"},ce.default.createElement(le.Reference,null,(function(e){var t=e.ref;return ce.default.createElement("div",{ref:t,className:v},u)})),e)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(ce.default.Component),Kn="react-datepicker-ignore-onclickoutside",Qn=ut.default(Wn),$n="Date input not valid.",Xn=function(e){bt(n,e);var t=Ct(n);function n(e){var r;return pt(this,n),gt(wt(r=t.call(this,e)),"getPreSelection",(function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:Nt()})),gt(wt(r),"calcInitialState",(function(){var e,t=r.getPreSelection(),n=yn(r.props),i=bn(r.props),o=n&&it.default(t,Ye.default(n))?n:i&&rt.default(t,$e.default(i))?i:t;return{open:r.props.startOpen||!1,preventFocus:!1,preSelection:null!==(e=r.props.selectsRange?r.props.startDate:r.props.selected)&&void 0!==e?e:o,highlightDates:_n(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1}})),gt(wt(r),"clearPreventFocusTimeout",(function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)})),gt(wt(r),"setFocus",(function(){r.input&&r.input.focus&&r.input.focus({preventScroll:!0})})),gt(wt(r),"setBlur",(function(){r.input&&r.input.blur&&r.input.blur(),r.cancelFocusInput()})),gt(wt(r),"setOpen",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.setState({open:e,preSelection:e&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:er},(function(){e||r.setState((function(e){return{focused:!!t&&e.focused}}),(function(){!t&&r.setBlur(),r.setState({inputValue:null})}))}))})),gt(wt(r),"inputOk",(function(){return de.default(r.state.preSelection)})),gt(wt(r),"isCalendarOpen",(function(){return void 0===r.props.open?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open})),gt(wt(r),"handleFocus",(function(e){r.state.preventFocus||(r.props.onFocus(e),r.props.preventOpenOnFocus||r.props.readOnly||r.setOpen(!0)),r.setState({focused:!0})})),gt(wt(r),"cancelFocusInput",(function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=null})),gt(wt(r),"deferFocusInput",(function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout((function(){return r.setFocus()}),1)})),gt(wt(r),"handleDropdownFocus",(function(){r.cancelFocusInput()})),gt(wt(r),"handleBlur",(function(e){(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&r.props.onBlur(e),r.setState({focused:!1})})),gt(wt(r),"handleCalendarClickOutside",(function(e){r.props.inline||r.setOpen(!1),r.props.onClickOutside(e),r.props.withPortal&&e.preventDefault()})),gt(wt(r),"handleChange",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[0];if(!r.props.onChangeRaw||(r.props.onChangeRaw.apply(wt(r),t),"function"==typeof i.isDefaultPrevented&&!i.isDefaultPrevented())){r.setState({inputValue:i.target.value,lastPreSelectChange:Jn});var o=Dt(i.target.value,r.props.dateFormat,r.props.locale,r.props.strictParsing,r.props.minDate);!o&&i.target.value||r.setSelected(o,i,!0)}})),gt(wt(r),"handleSelect",(function(e,t,n){if(r.setState({preventFocus:!0},(function(){return r.preventFocusTimeout=setTimeout((function(){return r.setState({preventFocus:!1})}),50),r.preventFocusTimeout})),r.props.onChangeRaw&&r.props.onChangeRaw(t),r.setSelected(e,t,!1,n),!r.props.shouldCloseOnSelect||r.props.showTimeSelect)r.setPreSelection(e);else if(!r.props.inline){r.props.selectsRange||r.setOpen(!1);var i=r.props,o=i.startDate,a=i.endDate;!o||a||it.default(e,o)||r.setOpen(!1)}})),gt(wt(r),"setSelected",(function(e,t,n,i){var o=e;if(null===o||!nn(o,r.props)){var a=r.props,s=a.onChange,l=a.selectsRange,u=a.startDate,c=a.endDate;if(!Kt(r.props.selected,o)||r.props.allowSameDay||l)if(null!==o&&(!r.props.selected||n&&(r.props.showTimeSelect||r.props.showTimeSelectOnly||r.props.showTimeInput)||(o=It(o,{hour:Te.default(r.props.selected),minute:Ee.default(r.props.selected),second:Se.default(r.props.selected)})),r.props.inline||r.setState({preSelection:o}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:i})),l){var f=u&&c;u||c?u&&!c&&(it.default(o,u)?s([o,null],t):s([u,o],t)):s([o,null],t),f&&s([o,null],t)}else s(o,t);n||(r.props.onSelect(o,t),r.setState({inputValue:null}))}})),gt(wt(r),"setPreSelection",(function(e){var t=void 0!==r.props.minDate,n=void 0!==r.props.maxDate,i=!0;if(e){var o=Ye.default(e);if(t&&n)i=Qt(e,r.props.minDate,r.props.maxDate);else if(t){var a=Ye.default(r.props.minDate);i=rt.default(e,a)||Kt(o,a)}else if(n){var s=$e.default(r.props.maxDate);i=it.default(e,s)||Kt(o,s)}}i&&r.setState({preSelection:e})})),gt(wt(r),"handleTimeChange",(function(e){var t=It(r.props.selected?r.props.selected:r.getPreSelection(),{hour:Te.default(e),minute:Ee.default(e)});r.setState({preSelection:t}),r.props.onChange(t),r.props.shouldCloseOnSelect&&r.setOpen(!1),r.props.showTimeInput&&r.setOpen(!0),r.setState({inputValue:null})})),gt(wt(r),"onInputClick",(function(){r.props.disabled||r.props.readOnly||r.setOpen(!0),r.props.onInputClick()})),gt(wt(r),"onInputKeyDown",(function(e){r.props.onKeyDown(e);var t=e.key;if(r.state.open||r.props.inline||r.props.preventOpenOnFocus){if(r.state.open){if("ArrowDown"===t||"ArrowUp"===t){e.preventDefault();var n=r.calendar.componentNode&&r.calendar.componentNode.querySelector('.react-datepicker__day[tabindex="0"]');return void(n&&n.focus({preventScroll:!0}))}var i=Nt(r.state.preSelection);"Enter"===t?(e.preventDefault(),r.inputOk()&&r.state.lastPreSelectChange===er?(r.handleSelect(i,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(i)):r.setOpen(!1)):"Escape"===t&&(e.preventDefault(),r.setOpen(!1)),r.inputOk()||r.props.onInputError({code:1,msg:$n})}}else"ArrowDown"!==t&&"ArrowUp"!==t&&"Enter"!==t||r.onInputClick()})),gt(wt(r),"onDayKeyDown",(function(e){r.props.onKeyDown(e);var t=e.key,n=Nt(r.state.preSelection);if("Enter"===t)e.preventDefault(),r.handleSelect(n,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(n);else if("Escape"===t)e.preventDefault(),r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:$n});else if(!r.props.disabledKeyboardNavigation){var i;switch(t){case"ArrowLeft":i=xe.default(n,1);break;case"ArrowRight":i=ge.default(n,1);break;case"ArrowUp":i=we.default(n,1);break;case"ArrowDown":i=ye.default(n,1);break;case"PageUp":i=ke.default(n,1);break;case"PageDown":i=be.default(n,1);break;case"Home":i=Ce.default(n,1);break;case"End":i=_e.default(n,1)}if(!i)return void(r.props.onInputError&&r.props.onInputError({code:1,msg:$n}));if(e.preventDefault(),r.setState({lastPreSelectChange:er}),r.props.adjustDateOnChange&&r.setSelected(i),r.setPreSelection(i),r.props.inline){var o=Pe.default(n),a=Pe.default(i),s=De.default(n),l=De.default(i);o!==a||s!==l?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}})),gt(wt(r),"onPopperKeyDown",(function(e){"Escape"===e.key&&(e.preventDefault(),r.setState({preventFocus:!0},(function(){r.setOpen(!1),setTimeout((function(){r.setFocus(),r.setState({preventFocus:!1})}))})))})),gt(wt(r),"onClearClick",(function(e){e&&e.preventDefault&&e.preventDefault(),r.props.selectsRange?r.props.onChange([null,null],e):r.props.onChange(null,e),r.setState({inputValue:null})})),gt(wt(r),"clear",(function(){r.onClearClick()})),gt(wt(r),"onScroll",(function(e){"boolean"==typeof r.props.closeOnScroll&&r.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||r.setOpen(!1):"function"==typeof r.props.closeOnScroll&&r.props.closeOnScroll(e)&&r.setOpen(!1)})),gt(wt(r),"renderCalendar",(function(){return r.props.inline||r.isCalendarOpen()?ce.default.createElement(Qn,{ref:function(e){r.calendar=e},locale:r.props.locale,calendarStartDay:r.props.calendarStartDay,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,monthAriaLabelPrefix:r.props.monthAriaLabelPrefix,adjustDateOnChange:r.props.adjustDateOnChange,setOpen:r.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,dateFormat:r.props.dateFormatCalendar,useWeekdaysShort:r.props.useWeekdaysShort,formatWeekDay:r.props.formatWeekDay,dropdownMode:r.props.dropdownMode,selected:r.props.selected,preSelection:r.state.preSelection,onSelect:r.handleSelect,onWeekSelect:r.props.onWeekSelect,openToDate:r.props.openToDate,minDate:r.props.minDate,maxDate:r.props.maxDate,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,startDate:r.props.startDate,endDate:r.props.endDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,filterDate:r.props.filterDate,onClickOutside:r.handleCalendarClickOutside,formatWeekNumber:r.props.formatWeekNumber,highlightDates:r.state.highlightDates,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,includeTimes:r.props.includeTimes,injectTimes:r.props.injectTimes,inline:r.props.inline,shouldFocusDayInline:r.state.shouldFocusDayInline,peekNextMonth:r.props.peekNextMonth,showMonthDropdown:r.props.showMonthDropdown,showPreviousMonths:r.props.showPreviousMonths,useShortMonthInDropdown:r.props.useShortMonthInDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showWeekNumbers:r.props.showWeekNumbers,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,forceShowMonthNavigation:r.props.forceShowMonthNavigation,showDisabledMonthNavigation:r.props.showDisabledMonthNavigation,scrollableYearDropdown:r.props.scrollableYearDropdown,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,todayButton:r.props.todayButton,weekLabel:r.props.weekLabel,outsideClickIgnoreClass:Kn,fixedHeight:r.props.fixedHeight,monthsShown:r.props.monthsShown,monthSelectedIn:r.state.monthSelectedIn,onDropdownFocus:r.handleDropdownFocus,onMonthChange:r.props.onMonthChange,onYearChange:r.props.onYearChange,dayClassName:r.props.dayClassName,weekDayClassName:r.props.weekDayClassName,monthClassName:r.props.monthClassName,timeClassName:r.props.timeClassName,showTimeSelect:r.props.showTimeSelect,showTimeSelectOnly:r.props.showTimeSelectOnly,onTimeChange:r.handleTimeChange,timeFormat:r.props.timeFormat,timeIntervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,className:r.props.calendarClassName,container:r.props.calendarContainer,yearItemNumber:r.props.yearItemNumber,yearDropdownItemNumber:r.props.yearDropdownItemNumber,previousMonthAriaLabel:r.props.previousMonthAriaLabel,previousMonthButtonLabel:r.props.previousMonthButtonLabel,nextMonthAriaLabel:r.props.nextMonthAriaLabel,nextMonthButtonLabel:r.props.nextMonthButtonLabel,previousYearAriaLabel:r.props.previousYearAriaLabel,previousYearButtonLabel:r.props.previousYearButtonLabel,nextYearAriaLabel:r.props.nextYearAriaLabel,nextYearButtonLabel:r.props.nextYearButtonLabel,timeInputLabel:r.props.timeInputLabel,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderCustomHeader:r.props.renderCustomHeader,popperProps:r.props.popperProps,renderDayContents:r.props.renderDayContents,onDayMouseEnter:r.props.onDayMouseEnter,onMonthMouseLeave:r.props.onMonthMouseLeave,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showTimeInput:r.props.showTimeInput,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,showPopperArrow:r.props.showPopperArrow,excludeScrollbar:r.props.excludeScrollbar,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,isInputFocused:r.state.focused,customTimeInput:r.props.customTimeInput,setPreSelection:r.setPreSelection},r.props.children):null})),gt(wt(r),"renderDateInput",(function(){var e,t=fe.default(r.props.className,gt({},Kn,r.state.open)),n=r.props.customInput||ce.default.createElement("input",{type:"text"}),i=r.props.customInputRef||"ref",o="string"==typeof r.props.value?r.props.value:"string"==typeof r.state.inputValue?r.state.inputValue:r.props.selectsRange?function(e,t,n){if(!e)return"";var r=At(e,n),i=t?At(t,n):"";return"".concat(r," - ").concat(i)}(r.props.startDate,r.props.endDate,r.props):At(r.props.selected,r.props);return ce.default.cloneElement(n,(gt(e={},i,(function(e){r.input=e})),gt(e,"value",o),gt(e,"onBlur",r.handleBlur),gt(e,"onChange",r.handleChange),gt(e,"onClick",r.onInputClick),gt(e,"onFocus",r.handleFocus),gt(e,"onKeyDown",r.onInputKeyDown),gt(e,"id",r.props.id),gt(e,"name",r.props.name),gt(e,"autoFocus",r.props.autoFocus),gt(e,"placeholder",r.props.placeholderText),gt(e,"disabled",r.props.disabled),gt(e,"autoComplete",r.props.autoComplete),gt(e,"className",fe.default(n.props.className,t)),gt(e,"title",r.props.title),gt(e,"readOnly",r.props.readOnly),gt(e,"required",r.props.required),gt(e,"tabIndex",r.props.tabIndex),gt(e,"aria-describedby",r.props.ariaDescribedBy),gt(e,"aria-invalid",r.props.ariaInvalid),gt(e,"aria-labelledby",r.props.ariaLabelledBy),gt(e,"aria-required",r.props.ariaRequired),e))})),gt(wt(r),"renderClearButton",(function(){var e=r.props,t=e.isClearable,n=e.selected,i=e.startDate,o=e.endDate,a=e.clearButtonTitle,s=e.clearButtonClassName,l=void 0===s?"":s,u=e.ariaLabelClose,c=void 0===u?"Close":u;return!t||null==n&&null==i&&null==o?null:ce.default.createElement("button",{type:"button",className:"react-datepicker__close-icon ".concat(l).trim(),"aria-label":c,onClick:r.onClearClick,title:a,tabIndex:-1})})),r.state=r.calcInitialState(),r}return mt(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(e,t){var n,r;e.inline&&(n=e.selected,r=this.props.selected,n&&r?Pe.default(n)!==Pe.default(r)||De.default(n)!==De.default(r):n!==r)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:_n(this.props.highlightDates)}),t.focused||Kt(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&this.props.onCalendarOpen(),!0===t.open&&!1===this.state.open&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){return ce.default.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?ce.default.createElement("div",{className:"react-datepicker__portal"},e):null;return this.state.open&&this.props.portalId&&(t=ce.default.createElement(Zn,{portalId:this.props.portalId,portalHost:this.props.portalHost},t)),ce.default.createElement("div",null,this.renderInputContainer(),t)}return ce.default.createElement(Gn,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:e,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:jt,renderDayContents:function(e){return e},focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0}}}]),n}(ce.default.Component),Jn="input",er="navigate";e.CalendarContainer=Vn,e.default=Xn,e.getDefaultLocale=$t,e.registerLocale=function(e,t){var n="undefined"!=typeof window?window:globalThis;n.__localeData__||(n.__localeData__={}),n.__localeData__[e]=t},e.setDefaultLocale=function(e){("undefined"!=typeof window?window:globalThis).__localeId__=e},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(9867),n(8731),n(4758),n(6238),n(6663),n(2612),n(1489),n(6869),n(9996),n(3923),n(1437),n(3159),n(6515),n(9316),n(1776),n(3824),n(1454),n(1461),n(1002),n(6038),n(7518),n(5955),n(1477),n(4073),n(1523),n(2620),n(8603),n(3558),n(9964),n(7436),n(9462),n(9374),n(3197),n(4548),n(471),n(3),n(3514),n(2228),n(6312),n(7308),n(121),n(9279),n(93),n(356),n(410),n(3358),n(3712),n(4829),n(5560),n(6776),n(2201),n(3138),n(171),n(8601),n(1328),n(4773),n(2952),n(1648),n(4892),n(2735),n(8544),n(9171))},2735:function(e,t,n){"use strict";n.r(t),n.d(t,{IGNORE_CLASS_NAME:function(){return p}});var r=n(9867),i=n(8544);function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var l,u,c=(void 0===l&&(l=0),function(){return++l}),f={},d={},h=["touchstart","touchmove"],p="ignore-react-onclickoutside";function v(e,t){var n=null;return-1!==h.indexOf(t)&&u&&(n={passive:!e.props.preventDefault}),n}t.default=function(e,t){var n,l,h=e.displayName||e.name||"Component";return l=n=function(n){var l,p;function m(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!==typeof r.__clickOutsideHandlerProp){var t=r.getInstance();if("function"!==typeof t.props.handleClickOutside){if("function"!==typeof t.handleClickOutside)throw new Error("WrappedComponent: "+h+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else r.__clickOutsideHandlerProp(e)},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"===typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"===typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,i.findDOMNode)(e)},r.enableOnClickOutside=function(){if("undefined"!==typeof document&&!d[r._uid]){"undefined"===typeof u&&(u=function(){if("undefined"!==typeof window&&"function"===typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),d[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),f[r._uid]=function(e){var t;null!==r.componentNode&&(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),r.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&s(e,t,n))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,f[r._uid],v(a(r),e))}))}},r.disableOnClickOutside=function(){delete d[r._uid];var e=f[r._uid];if(e&&"undefined"!==typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,v(a(r),t))})),delete f[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=c(),r}p=n,(l=m).prototype=Object.create(p.prototype),l.prototype.constructor=l,o(l,p);var g=m.prototype;return g.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},g.componentDidMount=function(){if("undefined"!==typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"===typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!==typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+h+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},g.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},g.componentWillUnmount=function(){this.disableOnClickOutside()},g.render=function(){var t=this.props;t.excludeScrollbar;var n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,(0,r.createElement)(e,n)},m}(r.Component),n.displayName="OnClickOutside("+h+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:p,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},l}},9171:function(e,t,n){"use strict";n.r(t),n.d(t,{Manager:function(){return a},Popper:function(){return _},Reference:function(){return k},usePopper:function(){return m}});var r=n(9867),i=r.createContext(),o=r.createContext();function a(e){var t=e.children,n=r.useState(null),a=n[0],s=n[1],l=r.useRef(!1);r.useEffect((function(){return function(){l.current=!0}}),[]);var u=r.useCallback((function(e){l.current||s(e)}),[]);return r.createElement(i.Provider,{value:a},r.createElement(o.Provider,{value:u},t))}var s=function(e){return Array.isArray(e)?e[0]:e},l=function(e){if("function"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},u=function(e,t){if("function"===typeof e)return l(e,t);null!=e&&(e.current=t)},c=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},f="undefined"!==typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,d=n(6176),h=n(6847),p=n.n(h),v=[],m=function(e,t,n){void 0===n&&(n={});var i=r.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||v},a=r.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],l=a[1],u=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);l({styles:c(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:c(n.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),h=r.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[u,{name:"applyStyles",enabled:!1}])};return p()(i.current,e)?i.current||e:(i.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,u]),m=r.useRef();return f((function(){m.current&&m.current.setOptions(h)}),[h]),f((function(){if(null!=e&&null!=t){var r=(n.createPopper||d.fi)(e,t,h);return m.current=r,function(){r.destroy(),m.current=null}}}),[e,t,n.createPopper]),{state:m.current?m.current.state:null,styles:s.styles,attributes:s.attributes,update:m.current?m.current.update:null,forceUpdate:m.current?m.current.forceUpdate:null}},g=function(){},y=function(){return Promise.resolve(null)},b=[];function _(e){var t=e.placement,n=void 0===t?"bottom":t,o=e.strategy,a=void 0===o?"absolute":o,l=e.modifiers,c=void 0===l?b:l,f=e.referenceElement,d=e.onFirstUpdate,h=e.innerRef,p=e.children,v=r.useContext(i),_=r.useState(null),x=_[0],w=_[1],k=r.useState(null),C=k[0],S=k[1];r.useEffect((function(){u(h,x)}),[h,x]);var E=r.useMemo((function(){return{placement:n,strategy:a,onFirstUpdate:d,modifiers:[].concat(c,[{name:"arrow",enabled:null!=C,options:{element:C}}])}}),[n,a,d,c,C]),T=m(f||v,x,E),M=T.state,O=T.styles,j=T.forceUpdate,P=T.update,N=r.useMemo((function(){return{ref:w,style:O.popper,placement:M?M.placement:n,hasPopperEscaped:M&&M.modifiersData.hide?M.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:M&&M.modifiersData.hide?M.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:O.arrow,ref:S},forceUpdate:j||g,update:P||y}}),[w,S,n,M,O,P,j]);return s(p)(N)}var x=n(944),w=n.n(x);function k(e){var t=e.children,n=e.innerRef,i=r.useContext(o),a=r.useCallback((function(e){u(n,e),l(i,e)}),[n,i]);return r.useEffect((function(){return function(){return u(n,null)}})),r.useEffect((function(){w()(Boolean(i),"`Reference` should not be used outside of a `Manager` component.")}),[i]),s(t)({ref:a})}},9772:function(e,t,n){"use strict";var r=n(9867),i=n(9419);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function v(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=m.hasOwnProperty(t)?m[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!f.call(p,e)||!f.call(h,e)&&(d.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,y);m[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,y);m[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,y);m[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),w=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),T=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function R(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=L&&e[L]||e["@@iterator"])?e:null}var A,I=Object.assign;function F(e){if(void 0===A)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);A=t&&t[1]||""}return"\n"+A+e}var z=!1;function B(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function U(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case k:return"Fragment";case w:return"Portal";case S:return"Profiler";case C:return"StrictMode";case O:return"Suspense";case j:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case M:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return V(e(t))}catch(n){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Z(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=Z(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Z(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function $(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){$(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return I({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function oe(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var de={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function pe(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||de.hasOwnProperty(e)&&de[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=pe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(de).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]}))}));var me=I({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ge(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var be=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,we=null,ke=null;function Ce(e){if(e=vi(e)){if("function"!==typeof xe)throw Error(o(280));var t=e.stateNode;t&&(t=gi(t),xe(e.stateNode,e.type,t))}}function Se(e){we?ke?ke.push(e):ke=[e]:we=e}function Ee(){if(we){var e=we,t=ke;if(ke=we=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Te(e,t){return e(t)}function Me(){}var Oe=!1;function je(e,t,n){if(Oe)return e(t,n);Oe=!0;try{return Te(e,t,n)}finally{Oe=!1,(null!==we||null!==ke)&&(Me(),Ee())}}function Pe(e,t){var n=e.stateNode;if(null===n)return null;var r=gi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Ne=!1;if(c)try{var De={};Object.defineProperty(De,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ec){Ne=!1}function Le(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Re=!1,Ae=null,Ie=!1,Fe=null,ze={onError:function(e){Re=!0,Ae=e}};function Be(e,t,n,r,i,o,a,s,l){Re=!1,Ae=null,Le.apply(ze,arguments)}function Ue(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(Ue(e)!==e)throw Error(o(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ue(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return He(i),e;if(a===r)return He(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ze(e):null}function Ze(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ze(e);if(null!==t)return t;e=e.sibling}return null}var Ye=i.unstable_scheduleCallback,qe=i.unstable_cancelCallback,Ge=i.unstable_shouldYield,Ke=i.unstable_requestPaint,Qe=i.unstable_now,$e=i.unstable_getCurrentPriorityLevel,Xe=i.unstable_ImmediatePriority,Je=i.unstable_UserBlockingPriority,et=i.unstable_NormalPriority,tt=i.unstable_LowPriority,nt=i.unstable_IdlePriority,rt=null,it=null;var ot=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(at(e)/st|0)|0},at=Math.log,st=Math.LN2;var lt=64,ut=4194304;function ct(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=ct(s):0!==(o&=a)&&(r=ct(o))}else 0!==(a=n&~i)?r=ct(a):0!==o&&(r=ct(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-ot(t)),r|=e[n],t&=~i;return r}function dt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function pt(){var e=lt;return 0===(4194240&(lt<<=1))&&(lt=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var yt=0;function bt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var _t,xt,wt,kt,Ct,St=!1,Et=[],Tt=null,Mt=null,Ot=null,jt=new Map,Pt=new Map,Nt=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Mt=null;break;case"mouseover":case"mouseout":Ot=null;break;case"pointerover":case"pointerout":jt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function Rt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=vi(t))&&xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function At(e){var t=pi(e.target);if(null!==t){var n=Ue(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void Ct(e.priority,(function(){wt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function It(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=vi(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);be=r,n.target.dispatchEvent(r),be=null,t.shift()}return!0}function Ft(e,t,n){It(e)&&n.delete(t)}function zt(){St=!1,null!==Tt&&It(Tt)&&(Tt=null),null!==Mt&&It(Mt)&&(Mt=null),null!==Ot&&It(Ot)&&(Ot=null),jt.forEach(Ft),Pt.forEach(Ft)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,St||(St=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,zt)))}function Ut(e){function t(t){return Bt(t,e)}if(0<Et.length){Bt(Et[0],e);for(var n=1;n<Et.length;n++){var r=Et[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Bt(Tt,e),null!==Mt&&Bt(Mt,e),null!==Ot&&Bt(Ot,e),jt.forEach(t),Pt.forEach(t),n=0;n<Nt.length;n++)(r=Nt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&null===(n=Nt[0]).blockedOn;)At(n),null===n.blockedOn&&Nt.shift()}var Vt=_.ReactCurrentBatchConfig,Ht=!0;function Wt(e,t,n,r){var i=yt,o=Vt.transition;Vt.transition=null;try{yt=1,Yt(e,t,n,r)}finally{yt=i,Vt.transition=o}}function Zt(e,t,n,r){var i=yt,o=Vt.transition;Vt.transition=null;try{yt=4,Yt(e,t,n,r)}finally{yt=i,Vt.transition=o}}function Yt(e,t,n,r){if(Ht){var i=Gt(e,t,n,r);if(null===i)Br(e,t,r,qt,n),Lt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Tt=Rt(Tt,e,t,n,r,i),!0;case"dragenter":return Mt=Rt(Mt,e,t,n,r,i),!0;case"mouseover":return Ot=Rt(Ot,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return jt.set(o,Rt(jt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Pt.set(o,Rt(Pt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Lt(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==i;){var o=vi(i);if(null!==o&&_t(o),null===(o=Gt(e,t,n,r))&&Br(e,t,r,qt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Br(e,t,r,null,n)}}var qt=null;function Gt(e,t,n,r){if(qt=null,null!==(e=pi(e=_e(r))))if(null===(t=Ue(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return qt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($e()){case Xe:return 1;case Je:return 4;case et:case tt:return 16;case nt:return 536870912;default:return 16}default:return 16}}var Qt=null,$t=null,Xt=null;function Jt(){if(Xt)return Xt;var e,t,n=$t,r=n.length,i="value"in Qt?Qt.value:Qt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Xt=i.slice(e,1<t?1-t:void 0)}function en(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function tn(){return!0}function nn(){return!1}function rn(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?tn:nn,this.isPropagationStopped=nn,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=tn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=tn)},persist:function(){},isPersistent:tn}),t}var on,an,sn,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=rn(ln),cn=I({},ln,{view:0,detail:0}),fn=rn(cn),dn=I({},cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(on=e.screenX-sn.screenX,an=e.screenY-sn.screenY):an=on=0,sn=e),on)},movementY:function(e){return"movementY"in e?e.movementY:an}}),hn=rn(dn),pn=rn(I({},dn,{dataTransfer:0})),vn=rn(I({},cn,{relatedTarget:0})),mn=rn(I({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=rn(I({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),yn=rn(I({},ln,{data:0})),bn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function kn(){return wn}var Cn=rn(I({},cn,{key:function(e){if(e.key){var t=bn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=en(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?en(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?en(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Sn=rn(I({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),En=rn(I({},cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),Tn=rn(I({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=rn(I({},dn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),On=[9,13,27,32],jn=c&&"CompositionEvent"in window,Pn=null;c&&"documentMode"in document&&(Pn=document.documentMode);var Nn=c&&"TextEvent"in window&&!Pn,Dn=c&&(!jn||Pn&&8<Pn&&11>=Pn),Ln=String.fromCharCode(32),Rn=!1;function An(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function In(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Fn=!1;var zn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Bn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zn[e.type]:"textarea"===t}function Un(e,t,n,r){Se(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Hn=null;function Wn(e){Lr(e,0)}function Zn(e){if(q(mi(e)))return e}function Yn(e,t){if("change"===e)return t}var qn=!1;if(c){var Gn;if(c){var Kn="oninput"in document;if(!Kn){var Qn=document.createElement("div");Qn.setAttribute("oninput","return;"),Kn="function"===typeof Qn.oninput}Gn=Kn}else Gn=!1;qn=Gn&&(!document.documentMode||9<document.documentMode)}function $n(){Vn&&(Vn.detachEvent("onpropertychange",Xn),Hn=Vn=null)}function Xn(e){if("value"===e.propertyName&&Zn(Hn)){var t=[];Un(t,Hn,e,_e(e)),je(Wn,t)}}function Jn(e,t,n){"focusin"===e?($n(),Hn=n,(Vn=t).attachEvent("onpropertychange",Xn)):"focusout"===e&&$n()}function er(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zn(Hn)}function tr(e,t){if("click"===e)return Zn(t)}function nr(e,t){if("input"===e||"change"===e)return Zn(t)}var rr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function ir(e,t){if(rr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!f.call(t,i)||!rr(e[i],t[i]))return!1}return!0}function or(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ar(e,t){var n,r=or(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=or(r)}}function sr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?sr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function lr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function ur(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function cr(e){var t=lr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&sr(n.ownerDocument.documentElement,n)){if(null!==r&&ur(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ar(n,o);var a=ar(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fr=c&&"documentMode"in document&&11>=document.documentMode,dr=null,hr=null,pr=null,vr=!1;function mr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==dr||dr!==G(r)||("selectionStart"in(r=dr)&&ur(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},pr&&ir(pr,r)||(pr=r,0<(r=Vr(hr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=dr)))}function gr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var yr={animationend:gr("Animation","AnimationEnd"),animationiteration:gr("Animation","AnimationIteration"),animationstart:gr("Animation","AnimationStart"),transitionend:gr("Transition","TransitionEnd")},br={},_r={};function xr(e){if(br[e])return br[e];if(!yr[e])return e;var t,n=yr[e];for(t in n)if(n.hasOwnProperty(t)&&t in _r)return br[e]=n[t];return e}c&&(_r=document.createElement("div").style,"AnimationEvent"in window||(delete yr.animationend.animation,delete yr.animationiteration.animation,delete yr.animationstart.animation),"TransitionEvent"in window||delete yr.transitionend.transition);var wr=xr("animationend"),kr=xr("animationiteration"),Cr=xr("animationstart"),Sr=xr("transitionend"),Er=new Map,Tr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mr(e,t){Er.set(e,t),l(t,[e])}for(var Or=0;Or<Tr.length;Or++){var jr=Tr[Or];Mr(jr.toLowerCase(),"on"+(jr[0].toUpperCase()+jr.slice(1)))}Mr(wr,"onAnimationEnd"),Mr(kr,"onAnimationIteration"),Mr(Cr,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(Sr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Nr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Pr));function Dr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,u){if(Be.apply(this,arguments),Re){if(!Re)throw Error(o(198));var c=Ae;Re=!1,Ae=null,Ie||(Ie=!0,Fe=c)}}(r,t,void 0,e),e.currentTarget=null}function Lr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Dr(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Dr(i,s,u),o=l}}}if(Ie)throw e=Fe,Ie=!1,Fe=null,e}function Rr(e,t){var n=t[fi];void 0===n&&(n=t[fi]=new Set);var r=e+"__bubble";n.has(r)||(zr(t,e,2,!1),n.add(r))}function Ar(e,t,n){var r=0;t&&(r|=4),zr(n,e,r,t)}var Ir="_reactListening"+Math.random().toString(36).slice(2);function Fr(e){if(!e[Ir]){e[Ir]=!0,a.forEach((function(t){"selectionchange"!==t&&(Nr.has(t)||Ar(t,!1,e),Ar(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ir]||(t[Ir]=!0,Ar("selectionchange",!1,t))}}function zr(e,t,n,r){switch(Kt(t)){case 1:var i=Wt;break;case 4:i=Zt;break;default:i=Yt}n=i.bind(null,t,n,e),i=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Br(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=pi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}je((function(){var r=o,i=_e(n),a=[];e:{var s=Er.get(e);if(void 0!==s){var l=un,u=e;switch(e){case"keypress":if(0===en(n))break e;case"keydown":case"keyup":l=Cn;break;case"focusin":u="focus",l=vn;break;case"focusout":u="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=pn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=En;break;case wr:case kr:case Cr:l=mn;break;case Sr:l=Tn;break;case"scroll":l=fn;break;case"wheel":l=Mn;break;case"copy":case"cut":case"paste":l=gn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Sn}var c=0!==(4&t),f=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var v=(h=p).stateNode;if(5===h.tag&&null!==v&&(h=v,null!==d&&(null!=(v=Pe(p,d))&&c.push(Ur(p,v,h)))),f)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===be||!(u=n.relatedTarget||n.fromElement)||!pi(u)&&!u[ci])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?pi(u):null)&&(u!==(f=Ue(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=hn,v="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Sn,v="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==l?s:mi(l),h=null==u?s:mi(u),(s=new c(v,p+"leave",l,n,i)).target=f,s.relatedTarget=h,v=null,pi(i)===r&&((c=new c(d,p+"enter",u,n,i)).target=h,c.relatedTarget=f,v=c),f=v,l&&u)e:{for(d=u,p=0,h=c=l;h;h=Hr(h))p++;for(h=0,v=d;v;v=Hr(v))h++;for(;0<p-h;)c=Hr(c),p--;for(;0<h-p;)d=Hr(d),h--;for(;p--;){if(c===d||null!==d&&c===d.alternate)break e;c=Hr(c),d=Hr(d)}c=null}else c=null;null!==l&&Wr(a,s,l,c,!1),null!==u&&null!==f&&Wr(a,f,u,c,!0)}if("select"===(l=(s=r?mi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Yn;else if(Bn(s))if(qn)m=nr;else{m=er;var g=Jn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=tr);switch(m&&(m=m(e,r))?Un(a,m,n,i):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ee(s,"number",s.value)),g=r?mi(r):window,e){case"focusin":(Bn(g)||"true"===g.contentEditable)&&(dr=g,hr=r,pr=null);break;case"focusout":pr=hr=dr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,mr(a,n,i);break;case"selectionchange":if(fr)break;case"keydown":case"keyup":mr(a,n,i)}var y;if(jn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Fn?An(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&(Fn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Fn&&(y=Jt()):($t="value"in(Qt=i)?Qt.value:Qt.textContent,Fn=!0)),0<(g=Vr(r,b)).length&&(b=new yn(b,e,null,n,i),a.push({event:b,listeners:g}),y?b.data=y:null!==(y=In(n))&&(b.data=y))),(y=Nn?function(e,t){switch(e){case"compositionend":return In(t);case"keypress":return 32!==t.which?null:(Rn=!0,Ln);case"textInput":return(e=t.data)===Ln&&Rn?null:e;default:return null}}(e,n):function(e,t){if(Fn)return"compositionend"===e||!jn&&An(e,t)?(e=Jt(),Xt=$t=Qt=null,Fn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(i=new yn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}Lr(a,t)}))}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Pe(e,n))&&r.unshift(Ur(e,o,i)),null!=(o=Pe(e,t))&&r.push(Ur(e,o,i))),e=e.return}return r}function Hr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Pe(n,o))&&a.unshift(Ur(n,l,s)):i||null!=(l=Pe(n,o))&&a.push(Ur(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Zr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function qr(e){return("string"===typeof e?e:""+e).replace(Zr,"\n").replace(Yr,"")}function Gr(e,t,n){if(t=qr(t),qr(e)!==t&&n)throw Error(o(425))}function Kr(){}var Qr=null,$r=null;function Xr(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Jr="function"===typeof setTimeout?setTimeout:void 0,ei="function"===typeof clearTimeout?clearTimeout:void 0,ti="function"===typeof Promise?Promise:void 0,ni="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ti?function(e){return ti.resolve(null).then(e).catch(ri)}:Jr;function ri(e){setTimeout((function(){throw e}))}function ii(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ut(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ut(t)}function oi(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ai(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var si=Math.random().toString(36).slice(2),li="__reactFiber$"+si,ui="__reactProps$"+si,ci="__reactContainer$"+si,fi="__reactEvents$"+si,di="__reactListeners$"+si,hi="__reactHandles$"+si;function pi(e){var t=e[li];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ci]||n[li]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ai(e);null!==e;){if(n=e[li])return n;e=ai(e)}return t}n=(e=n).parentNode}return null}function vi(e){return!(e=e[li]||e[ci])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function mi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function gi(e){return e[ui]||null}var yi=[],bi=-1;function _i(e){return{current:e}}function xi(e){0>bi||(e.current=yi[bi],yi[bi]=null,bi--)}function wi(e,t){bi++,yi[bi]=e.current,e.current=t}var ki={},Ci=_i(ki),Si=_i(!1),Ei=ki;function Ti(e,t){var n=e.type.contextTypes;if(!n)return ki;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Mi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Oi(){xi(Si),xi(Ci)}function ji(e,t,n){if(Ci.current!==ki)throw Error(o(168));wi(Ci,t),wi(Si,n)}function Pi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,H(e)||"Unknown",i));return I({},n,r)}function Ni(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ki,Ei=Ci.current,wi(Ci,e),wi(Si,Si.current),!0}function Di(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Pi(e,t,Ei),r.__reactInternalMemoizedMergedChildContext=e,xi(Si),xi(Ci),wi(Ci,e)):xi(Si),wi(Si,n)}var Li=null,Ri=!1,Ai=!1;function Ii(e){null===Li?Li=[e]:Li.push(e)}function Fi(){if(!Ai&&null!==Li){Ai=!0;var e=0,t=yt;try{var n=Li;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Li=null,Ri=!1}catch(i){throw null!==Li&&(Li=Li.slice(e+1)),Ye(Xe,Fi),i}finally{yt=t,Ai=!1}}return null}var zi=_.ReactCurrentBatchConfig;function Bi(e,t){if(e&&e.defaultProps){for(var n in t=I({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ui=_i(null),Vi=null,Hi=null,Wi=null;function Zi(){Wi=Hi=Vi=null}function Yi(e){var t=Ui.current;xi(Ui),e._currentValue=t}function qi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Gi(e,t){Vi=e,Wi=Hi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(gs=!0),e.firstContext=null)}function Ki(e){var t=e._currentValue;if(Wi!==e)if(e={context:e,memoizedValue:t,next:null},null===Hi){if(null===Vi)throw Error(o(308));Hi=e,Vi.dependencies={lanes:0,firstContext:e}}else Hi=Hi.next=e;return t}var Qi=null,$i=!1;function Xi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ji(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function eo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function to(e,t){var n=e.updateQueue;null!==n&&(n=n.shared,$l(e)?(null===(e=n.interleaved)?(t.next=t,null===Qi?Qi=[n]:Qi.push(n)):(t.next=e.next,e.next=t),n.interleaved=t):(null===(e=n.pending)?t.next=t:(t.next=e.next,e.next=t),n.pending=t))}function no(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function ro(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function io(e,t,n,r){var i=e.updateQueue;$i=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==o){var f=i.baseState;for(a=0,c=u=l=null,s=o;;){var d=s.lane,h=s.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,v=s;switch(d=t,h=n,v.tag){case 1:if("function"===typeof(p=v.payload)){f=p.call(h,f,d);break e}f=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(d="function"===typeof(p=v.payload)?p.call(h,f,d):p)||void 0===d)break e;f=I({},f,d);break e;case 2:$i=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(d=i.effects)?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=f):c=c.next=h,a|=d;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(d=s).next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}if(null===c&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Ol|=a,e.lanes=a,e.memoizedState=f}}function oo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var ao=(new r.Component).refs;function so(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:I({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var lo={isMounted:function(e){return!!(e=e._reactInternals)&&Ue(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ql(),i=Gl(e),o=eo(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),to(e,o),null!==(t=Kl(e,i,r))&&no(t,e,i)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ql(),i=Gl(e),o=eo(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),to(e,o),null!==(t=Kl(e,i,r))&&no(t,e,i)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ql(),r=Gl(e),i=eo(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),to(e,i),null!==(t=Kl(e,r,n))&&no(t,e,r)}};function uo(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!ir(n,r)||!ir(i,o))}function co(e,t,n){var r=!1,i=ki,o=t.contextType;return"object"===typeof o&&null!==o?o=Ki(o):(i=Mi(t)?Ei:Ci.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ti(e,i):ki),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=lo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function fo(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&lo.enqueueReplaceState(t,t.state,null)}function ho(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ao,Xi(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=Ki(o):(o=Mi(t)?Ei:Ci.current,i.context=Ti(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(so(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&lo.enqueueReplaceState(i,i.state,null),io(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}var po=[],vo=0,mo=null,go=0,yo=[],bo=0,_o=null,xo=1,wo="";function ko(e,t){po[vo++]=go,po[vo++]=mo,mo=e,go=t}function Co(e,t,n){yo[bo++]=xo,yo[bo++]=wo,yo[bo++]=_o,_o=e;var r=xo;e=wo;var i=32-ot(r)-1;r&=~(1<<i),n+=1;var o=32-ot(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,xo=1<<32-ot(t)+i|n<<i|r,wo=o+e}else xo=1<<o|n<<i|r,wo=e}function So(e){null!==e.return&&(ko(e,1),Co(e,1,0))}function Eo(e){for(;e===mo;)mo=po[--vo],po[vo]=null,go=po[--vo],po[vo]=null;for(;e===_o;)_o=yo[--bo],yo[bo]=null,wo=yo[--bo],yo[bo]=null,xo=yo[--bo],yo[bo]=null}var To=null,Mo=null,Oo=!1,jo=null;function Po(e,t){var n=Eu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function No(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,To=e,Mo=oi(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,To=e,Mo=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==_o?{id:xo,overflow:wo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Eu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,To=e,Mo=null,!0);default:return!1}}function Do(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function Lo(e){if(Oo){var t=Mo;if(t){var n=t;if(!No(e,t)){if(Do(e))throw Error(o(418));t=oi(n.nextSibling);var r=To;t&&No(e,t)?Po(r,n):(e.flags=-4097&e.flags|2,Oo=!1,To=e)}}else{if(Do(e))throw Error(o(418));e.flags=-4097&e.flags|2,Oo=!1,To=e}}}function Ro(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;To=e}function Ao(e){if(e!==To)return!1;if(!Oo)return Ro(e),Oo=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Xr(e.type,e.memoizedProps)),t&&(t=Mo)){if(Do(e)){for(e=Mo;e;)e=oi(e.nextSibling);throw Error(o(418))}for(;t;)Po(e,t),t=oi(t.nextSibling)}if(Ro(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Mo=oi(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Mo=null}}else Mo=To?oi(e.stateNode.nextSibling):null;return!0}function Io(){Mo=To=null,Oo=!1}function Fo(e){null===jo?jo=[e]:jo.push(e)}function zo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;t===ao&&(t=i.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Bo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Uo(e){return(0,e._init)(e._payload)}function Vo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Mu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Nu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===k?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===N&&Uo(o)===t.type)?((r=i(t,n.props)).ref=zo(e,t,n),r.return=e,r):((r=Ou(n.type,n.key,n.props,null,e.mode,r)).ref=zo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Du(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=ju(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Nu(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Ou(t.type,t.key,t.props,null,e.mode,n)).ref=zo(e,null,t),n.return=e,n;case w:return(t=Du(t,e.mode,n)).return=e,t;case N:return d(e,(0,t._init)(t._payload),n)}if(te(t)||R(t))return(t=ju(t,e.mode,n,null)).return=e,t;Bo(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===i?u(e,t,n,r):null;case w:return n.key===i?c(e,t,n,r):null;case N:return h(e,t,(i=n._init)(n._payload),r)}if(te(n)||R(n))return null!==i?null:f(e,t,n,r,null);Bo(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case N:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||R(r))return f(t,e=e.get(n)||null,r,i,null);Bo(t,r)}return null}function v(i,o,s,l){for(var u=null,c=null,f=o,v=o=0,m=null;null!==f&&v<s.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var g=h(i,f,s[v],l);if(null===g){null===f&&(f=m);break}e&&f&&null===g.alternate&&t(i,f),o=a(g,o,v),null===c?u=g:c.sibling=g,c=g,f=m}if(v===s.length)return n(i,f),Oo&&ko(i,v),u;if(null===f){for(;v<s.length;v++)null!==(f=d(i,s[v],l))&&(o=a(f,o,v),null===c?u=f:c.sibling=f,c=f);return Oo&&ko(i,v),u}for(f=r(i,f);v<s.length;v++)null!==(m=p(f,i,v,s[v],l))&&(e&&null!==m.alternate&&f.delete(null===m.key?v:m.key),o=a(m,o,v),null===c?u=m:c.sibling=m,c=m);return e&&f.forEach((function(e){return t(i,e)})),Oo&&ko(i,v),u}function m(i,s,l,u){var c=R(l);if("function"!==typeof c)throw Error(o(150));if(null==(l=c.call(l)))throw Error(o(151));for(var f=c=null,v=s,m=s=0,g=null,y=l.next();null!==v&&!y.done;m++,y=l.next()){v.index>m?(g=v,v=null):g=v.sibling;var b=h(i,v,y.value,u);if(null===b){null===v&&(v=g);break}e&&v&&null===b.alternate&&t(i,v),s=a(b,s,m),null===f?c=b:f.sibling=b,f=b,v=g}if(y.done)return n(i,v),Oo&&ko(i,m),c;if(null===v){for(;!y.done;m++,y=l.next())null!==(y=d(i,y.value,u))&&(s=a(y,s,m),null===f?c=y:f.sibling=y,f=y);return Oo&&ko(i,m),c}for(v=r(i,v);!y.done;m++,y=l.next())null!==(y=p(v,i,m,y.value,u))&&(e&&null!==y.alternate&&v.delete(null===y.key?m:y.key),s=a(y,s,m),null===f?c=y:f.sibling=y,f=y);return e&&v.forEach((function(e){return t(i,e)})),Oo&&ko(i,m),c}return function e(r,o,a,l){if("object"===typeof a&&null!==a&&a.type===k&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===k){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===N&&Uo(u)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=zo(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===k?((o=ju(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Ou(a.type,a.key,a.props,null,r.mode,l)).ref=zo(r,o,a),l.return=r,r=l)}return s(r);case w:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Du(a,r.mode,l)).return=r,r=o}return s(r);case N:return e(r,o,(c=a._init)(a._payload),l)}if(te(a))return v(r,o,a,l);if(R(a))return m(r,o,a,l);Bo(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Nu(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var Ho=Vo(!0),Wo=Vo(!1),Zo={},Yo=_i(Zo),qo=_i(Zo),Go=_i(Zo);function Ko(e){if(e===Zo)throw Error(o(174));return e}function Qo(e,t){switch(wi(Go,t),wi(qo,e),wi(Yo,Zo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}xi(Yo),wi(Yo,t)}function $o(){xi(Yo),xi(qo),xi(Go)}function Xo(e){Ko(Go.current);var t=Ko(Yo.current),n=le(t,e.type);t!==n&&(wi(qo,e),wi(Yo,n))}function Jo(e){qo.current===e&&(xi(Yo),xi(qo))}var ea=_i(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ia=_.ReactCurrentDispatcher,oa=_.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,fa=!1,da=0,ha=0;function pa(){throw Error(o(321))}function va(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!rr(e[n],t[n]))return!1;return!0}function ma(e,t,n,r,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?Ja:es,e=n(r,i),fa){a=0;do{if(fa=!1,da=0,25<=a)throw Error(o(301));a+=1,ua=la=null,t.updateQueue=null,ia.current=ts,e=n(r,i)}while(fa)}if(ia.current=Xa,t=null!==la&&null!==la.next,aa=0,ua=la=sa=null,ca=!1,t)throw Error(o(300));return e}function ga(){var e=0!==da;return da=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?sa.memoizedState=ua=e:ua=ua.next=e,ua}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ua?sa.memoizedState:ua.next;if(null!==t)ua=t,la=e;else{if(null===e)throw Error(o(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ua?sa.memoizedState=ua=e:ua=ua.next=e}return ua}function _a(e,t){return"function"===typeof t?t(e):t}function xa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=la,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,u=null,c=a;do{var f=c.lane;if((aa&f)===f)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=d,s=r):u=u.next=d,sa.lanes|=f,Ol|=f}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,rr(r,t.memoizedState)||(gs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Ol|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function wa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);rr(a,t.memoizedState)||(gs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ka(){}function Ca(e,t){var n=sa,r=ba(),i=t(),a=!rr(r.memoizedState,i);if(a&&(r.memoizedState=i,gs=!0),r=r.queue,Ra(Ta.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(n.flags|=2048,ja(9,Ea.bind(null,n,r,i,t),void 0,null),null===wl)throw Error(o(349));0!==(30&aa)||Sa(n,t,i)}return i}function Sa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ea(e,t,n,r){t.value=n,t.getSnapshot=r,Ma(t)&&Kl(e,1,-1)}function Ta(e,t,n){return n((function(){Ma(t)&&Kl(e,1,-1)}))}function Ma(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!rr(e,n)}catch(r){return!0}}function Oa(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:e},t.queue=e,e=e.dispatch=qa.bind(null,sa,e),[t.memoizedState,e]}function ja(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Pa(){return ba().memoizedState}function Na(e,t,n,r){var i=ya();sa.flags|=e,i.memoizedState=ja(1|t,n,void 0,void 0===r?null:r)}function Da(e,t,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==la){var a=la.memoizedState;if(o=a.destroy,null!==r&&va(r,a.deps))return void(i.memoizedState=ja(t,n,o,r))}sa.flags|=e,i.memoizedState=ja(1|t,n,o,r)}function La(e,t){return Na(8390656,8,e,t)}function Ra(e,t){return Da(2048,8,e,t)}function Aa(e,t){return Da(4,2,e,t)}function Ia(e,t){return Da(4,4,e,t)}function Fa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function za(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Da(4,4,Fa.bind(null,t,e),n)}function Ba(){}function Ua(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&va(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Va(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&va(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ha(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,gs=!0),e.memoizedState=n):(rr(n,t)||(n=pt(),sa.lanes|=n,Ol|=n,e.baseState=!0),t)}function Wa(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=oa.transition;oa.transition={};try{e(!1),t()}finally{yt=n,oa.transition=r}}function Za(){return ba().memoizedState}function Ya(e,t,n){var r=Gl(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ga(e)?Ka(t,n):(Qa(e,t,n),null!==(e=Kl(e,r,n=ql()))&&$a(e,t,r))}function qa(e,t,n){var r=Gl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ga(e))Ka(t,i);else{Qa(e,t,i);var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,rr(s,a))return}catch(l){}null!==(e=Kl(e,r,n=ql()))&&$a(e,t,r)}}function Ga(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ka(e,t){fa=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){$l(e)?(null===(e=t.interleaved)?(n.next=n,null===Qi?Qi=[t]:Qi.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(null===(e=t.pending)?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function $a(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var Xa={readContext:Ki,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Ja={readContext:Ki,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Ki,useEffect:La,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Na(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Na(4194308,4,e,t)},useInsertionEffect:function(e,t){return Na(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ya.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Oa,useDebugValue:Ba,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Oa(!1),t=e[0];return e=Wa.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=ya();if(Oo){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===wl)throw Error(o(349));0!==(30&aa)||Sa(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,La(Ta.bind(null,r,a,e),[e]),r.flags|=2048,ja(9,Ea.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=wl.identifierPrefix;if(Oo){var n=wo;t=":"+t+"R"+(n=(xo&~(1<<32-ot(xo)-1)).toString(32)+n),0<(n=da++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Ki,useCallback:Ua,useContext:Ki,useEffect:Ra,useImperativeHandle:za,useInsertionEffect:Aa,useLayoutEffect:Ia,useMemo:Va,useReducer:xa,useRef:Pa,useState:function(){return xa(_a)},useDebugValue:Ba,useDeferredValue:function(e){return Ha(ba(),la.memoizedState,e)},useTransition:function(){return[xa(_a)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Ca,useId:Za,unstable_isNewReconciler:!1},ts={readContext:Ki,useCallback:Ua,useContext:Ki,useEffect:Ra,useImperativeHandle:za,useInsertionEffect:Aa,useLayoutEffect:Ia,useMemo:Va,useReducer:wa,useRef:Pa,useState:function(){return wa(_a)},useDebugValue:Ba,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Ha(t,la.memoizedState,e)},useTransition:function(){return[wa(_a)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Ca,useId:Za,unstable_isNewReconciler:!1};function ns(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i}}function rs(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var is,os,as,ss="function"===typeof WeakMap?WeakMap:Map;function ls(e,t,n){(n=eo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Il||(Il=!0,Fl=r),rs(0,t)},n}function us(e,t,n){(n=eo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){rs(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){rs(0,t),"function"!==typeof r&&(null===zl?zl=new Set([this]):zl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function cs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ss;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=_u.bind(null,e,t,n),t.then(e,e))}function fs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ds(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=eo(-1,1)).tag=2,to(n,t))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}function hs(e,t){if(!Oo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ps(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function vs(e,t,n){var r=t.pendingProps;switch(Eo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ps(t),null;case 1:case 17:return Mi(t.type)&&Oi(),ps(t),null;case 3:return r=t.stateNode,$o(),xi(Si),xi(Ci),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ao(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==jo&&(tu(jo),jo=null))),ps(t),null;case 5:Jo(t);var i=Ko(Go.current);if(n=t.type,null!==e&&null!=t.stateNode)os(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return ps(t),null}if(e=Ko(Yo.current),Ao(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[li]=t,r[ui]=a,e=0!==(1&t.mode),n){case"dialog":Rr("cancel",r),Rr("close",r);break;case"iframe":case"object":case"embed":Rr("load",r);break;case"video":case"audio":for(i=0;i<Pr.length;i++)Rr(Pr[i],r);break;case"source":Rr("error",r);break;case"img":case"image":case"link":Rr("error",r),Rr("load",r);break;case"details":Rr("toggle",r);break;case"input":Q(r,a),Rr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Rr("invalid",r);break;case"textarea":ie(r,a),Rr("invalid",r)}for(var l in ge(n,a),i=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"===typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Gr(r.textContent,u,e),i=["children",u]):"number"===typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Gr(r.textContent,u,e),i=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Rr("scroll",r)}switch(n){case"input":Y(r),J(r,a,!0);break;case"textarea":Y(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Kr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[li]=t,e[ui]=r,is(e,t),t.stateNode=e;e:{switch(l=ye(n,r),n){case"dialog":Rr("cancel",e),Rr("close",e),i=r;break;case"iframe":case"object":case"embed":Rr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Pr.length;i++)Rr(Pr[i],e);i=r;break;case"source":Rr("error",e),i=r;break;case"img":case"image":case"link":Rr("error",e),Rr("load",e),i=r;break;case"details":Rr("toggle",e),i=r;break;case"input":Q(e,r),i=K(e,r),Rr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=I({},r,{value:void 0}),Rr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Rr("invalid",e)}for(a in ge(n,i),u=i)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ve(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&ce(e,c):"children"===a?"string"===typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"===typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Rr("scroll",e):null!=c&&b(e,a,c,l))}switch(n){case"input":Y(e),J(e,r,!1);break;case"textarea":Y(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Kr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return ps(t),null;case 6:if(e&&null!=t.stateNode)as(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=Ko(Go.current),Ko(Yo.current),Ao(t)){if(r=t.stateNode,n=t.memoizedProps,r[li]=t,(a=r.nodeValue!==n)&&null!==(e=To))switch(e.tag){case 3:Gr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Gr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[li]=t,t.stateNode=r}return ps(t),null;case 13:if(xi(ea),r=t.memoizedState,Oo&&null!==Mo&&0!==(1&t.mode)&&0===(128&t.flags)){for(r=Mo;r;)r=oi(r.nextSibling);return Io(),t.flags|=98560,t}if(null!==r&&null!==r.dehydrated){if(r=Ao(t),null===e){if(!r)throw Error(o(318));if(!(r=null!==(r=t.memoizedState)?r.dehydrated:null))throw Error(o(317));r[li]=t}else Io(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;return ps(t),null}return null!==jo&&(tu(jo),jo=null),0!==(128&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?Ao(t):n=null!==e.memoizedState,r!==n&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Tl&&(Tl=3):cu())),null!==t.updateQueue&&(t.flags|=4),ps(t),null);case 4:return $o(),null===e&&Fr(t.stateNode.containerInfo),ps(t),null;case 10:return Yi(t.type._context),ps(t),null;case 19:if(xi(ea),null===(a=t.memoizedState))return ps(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)hs(a,!1);else{if(0!==Tl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,hs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return wi(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Rl&&(t.flags|=128,r=!0,hs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),hs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!Oo)return ps(t),null}else 2*Qe()-a.renderingStartTime>Rl&&1073741824!==n&&(t.flags|=128,r=!0,hs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,wi(ea,r?1&n|2:1&n),t):(ps(t),null);case 22:case 23:return au(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Sl)&&(ps(t),6&t.subtreeFlags&&(t.flags|=8192)):ps(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},os=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ko(Yo.current);var o,a=null;switch(n){case"input":i=K(e,i),r=K(e,r),a=[];break;case"select":i=I({},i,{value:void 0}),r=I({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Kr)}for(c in ge(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Rr("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},as=function(e,t,n,r){n!==r&&(t.flags|=4)};var ms=_.ReactCurrentOwner,gs=!1;function ys(e,t,n,r){t.child=null===e?Wo(t,null,n,r):Ho(t,e.child,n,r)}function bs(e,t,n,r,i){n=n.render;var o=t.ref;return Gi(t,i),r=ma(e,t,n,r,o,i),n=ga(),null===e||gs?(Oo&&n&&So(t),t.flags|=1,ys(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bs(e,t,i))}function _s(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||Tu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ou(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,xs(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:ir)(a,r)&&e.ref===t.ref)return Bs(e,t,i)}return t.flags|=1,(e=Mu(o,r)).ref=t.ref,e.return=t,t.child=e}function xs(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(ir(o,r)&&e.ref===t.ref){if(gs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Bs(e,t,i);0!==(131072&e.flags)&&(gs=!0)}}return Cs(e,t,n,r,i)}function ws(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},wi(El,Sl),Sl|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,wi(El,Sl),Sl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,wi(El,Sl),Sl|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,wi(El,Sl),Sl|=r;return ys(e,t,i,n),t.child}function ks(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,r,i){var o=Mi(n)?Ei:Ci.current;return o=Ti(t,o),Gi(t,i),n=ma(e,t,n,r,o,i),r=ga(),null===e||gs?(Oo&&r&&So(t),t.flags|=1,ys(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bs(e,t,i))}function Ss(e,t,n,r,i){if(Mi(n)){var o=!0;Ni(t)}else o=!1;if(Gi(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),co(t,n,r),ho(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"===typeof u&&null!==u?u=Ki(u):u=Ti(t,u=Mi(n)?Ei:Ci.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==u)&&fo(t,a,r,u),$i=!1;var d=t.memoizedState;a.state=d,io(t,r,a,i),l=t.memoizedState,s!==r||d!==l||Si.current||$i?("function"===typeof c&&(so(t,n,c,r),l=t.memoizedState),(s=$i||uo(t,n,s,r,d,l,u))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ji(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Bi(t.type,s),a.props=u,f=t.pendingProps,d=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Ki(l):l=Ti(t,l=Mi(n)?Ei:Ci.current);var h=n.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==f||d!==l)&&fo(t,a,r,l),$i=!1,d=t.memoizedState,a.state=d,io(t,r,a,i);var p=t.memoizedState;s!==f||d!==p||Si.current||$i?("function"===typeof h&&(so(t,n,h,r),p=t.memoizedState),(u=$i||uo(t,n,u,r,d,p,l)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Es(e,t,n,r,o,i)}function Es(e,t,n,r,i,o){ks(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&Di(t,n,!1),Bs(e,t,o);r=t.stateNode,ms.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ho(t,e.child,null,o),t.child=Ho(t,null,s,o)):ys(e,t,s,o),t.memoizedState=r.state,i&&Di(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?ji(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ji(0,t.context,!1),Qo(e,t.containerInfo)}function Ms(e,t,n,r,i){return Io(),Fo(i),t.flags|=256,ys(e,t,n,r),t.child}var Os={dehydrated:null,treeContext:null,retryLane:0};function js(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ps(e,t){return{baseLanes:e.baseLanes|t,cachePool:null,transitions:e.transitions}}function Ns(e,t,n){var r,i=t.pendingProps,a=ea.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),wi(ea,1&a),null===e)return Lo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(a=i.children,e=i.fallback,s?(i=t.mode,s=t.child,a={mode:"hidden",children:a},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=a):s=Pu(a,i,0,null),e=ju(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=js(n),t.memoizedState=Os,e):Ds(t,a));if(null!==(a=e.memoizedState)){if(null!==(r=a.dehydrated)){if(l)return 256&t.flags?(t.flags&=-257,As(e,t,n,Error(o(422)))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=i.fallback,a=t.mode,i=Pu({mode:"visible",children:i.children},a,0,null),(s=ju(s,a,n,null)).flags|=2,i.return=t,s.return=t,i.sibling=s,t.child=i,0!==(1&t.mode)&&Ho(t,e.child,null,n),t.child.memoizedState=js(n),t.memoizedState=Os,s);if(0===(1&t.mode))t=As(e,t,n,null);else if("$!"===r.data)t=As(e,t,n,Error(o(419)));else if(i=0!==(n&e.childLanes),gs||i){if(null!==(i=wl)){switch(n&-n){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}0!==(i=0!==(s&(i.suspendedLanes|n))?0:s)&&i!==a.retryLane&&(a.retryLane=i,Kl(e,i,-1))}cu(),t=As(e,t,n,Error(o(421)))}else"$?"===r.data?(t.flags|=128,t.child=e.child,t=wu.bind(null,e),r._reactRetry=t,t=null):(n=a.treeContext,Mo=oi(r.nextSibling),To=t,Oo=!0,jo=null,null!==n&&(yo[bo++]=xo,yo[bo++]=wo,yo[bo++]=_o,xo=n.id,wo=n.overflow,_o=t),(t=Ds(t,t.pendingProps.children)).flags|=4096);return t}return s?(i=Rs(e,t,i.children,i.fallback,n),s=t.child,a=e.child.memoizedState,s.memoizedState=null===a?js(n):Ps(a,n),s.childLanes=e.childLanes&~n,t.memoizedState=Os,i):(n=Ls(e,t,i.children,n),t.memoizedState=null,n)}return s?(i=Rs(e,t,i.children,i.fallback,n),s=t.child,a=e.child.memoizedState,s.memoizedState=null===a?js(n):Ps(a,n),s.childLanes=e.childLanes&~n,t.memoizedState=Os,i):(n=Ls(e,t,i.children,n),t.memoizedState=null,n)}function Ds(e,t){return(t=Pu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ls(e,t,n,r){var i=e.child;return e=i.sibling,n=Mu(i,{mode:"visible",children:n}),0===(1&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function Rs(e,t,n,r,i){var o=t.mode,a=(e=e.child).sibling,s={mode:"hidden",children:n};return 0===(1&o)&&t.child!==e?((n=t.child).childLanes=0,n.pendingProps=s,t.deletions=null):(n=Mu(e,s)).subtreeFlags=14680064&e.subtreeFlags,null!==a?r=Mu(a,r):(r=ju(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function As(e,t,n,r){return null!==r&&Fo(r),Ho(t,e.child,null,n),(e=Ds(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Is(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),qi(e.return,t,n)}function Fs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function zs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ys(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Is(e,n,t);else if(19===e.tag)Is(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(wi(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Fs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Fs(t,!0,n,null,o);break;case"together":Fs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ol|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Mu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Mu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Us(e,t){switch(Eo(t),t.tag){case 1:return Mi(t.type)&&Oi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return $o(),xi(Si),xi(Ci),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Jo(t),null;case 13:if(xi(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));Io()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return xi(ea),null;case 4:return $o(),null;case 10:return Yi(t.type._context),null;case 22:case 23:return au(),null;default:return null}}var Vs=!1,Hs=!1,Ws="function"===typeof WeakSet?WeakSet:Set,Zs=null;function Ys(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){bu(e,t,r)}else n.current=null}function qs(e,t,n){try{n()}catch(r){bu(e,t,r)}}var Gs=!1;function Ks(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&qs(t,n,o)}i=i.next}while(i!==r)}}function Qs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function $s(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function Xs(e){var t=e.alternate;null!==t&&(e.alternate=null,Xs(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[li],delete t[ui],delete t[fi],delete t[di],delete t[hi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Js(e){return 5===e.tag||3===e.tag||4===e.tag}function el(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Js(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function tl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Kr));else if(4!==r&&null!==(e=e.child))for(tl(e,t,n),e=e.sibling;null!==e;)tl(e,t,n),e=e.sibling}function nl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(nl(e,t,n),e=e.sibling;null!==e;)nl(e,t,n),e=e.sibling}var rl=null,il=!1;function ol(e,t,n){for(n=n.child;null!==n;)al(e,t,n),n=n.sibling}function al(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(rt,n)}catch(s){}switch(n.tag){case 5:Hs||Ys(n,t);case 6:var r=rl,i=il;rl=null,ol(e,t,n),il=i,null!==(rl=r)&&(il?(e=rl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):rl.removeChild(n.stateNode));break;case 18:null!==rl&&(il?(e=rl,n=n.stateNode,8===e.nodeType?ii(e.parentNode,n):1===e.nodeType&&ii(e,n),Ut(e)):ii(rl,n.stateNode));break;case 4:r=rl,i=il,rl=n.stateNode.containerInfo,il=!0,ol(e,t,n),rl=r,il=i;break;case 0:case 11:case 14:case 15:if(!Hs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&qs(n,t,a),i=i.next}while(i!==r)}ol(e,t,n);break;case 1:if(!Hs&&(Ys(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){bu(n,t,s)}ol(e,t,n);break;case 21:ol(e,t,n);break;case 22:1&n.mode?(Hs=(r=Hs)||null!==n.memoizedState,ol(e,t,n),Hs=r):ol(e,t,n);break;default:ol(e,t,n)}}function sl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ws),t.forEach((function(t){var r=ku.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ll(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:rl=l.stateNode,il=!1;break e;case 3:case 4:rl=l.stateNode.containerInfo,il=!0;break e}l=l.return}if(null===rl)throw Error(o(160));al(a,s,i),rl=null,il=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(c){bu(i,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ul(t,e),t=t.sibling}function ul(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ll(t,e),cl(e),4&r){try{Ks(3,e,e.return),Qs(3,e)}catch(v){bu(e,e.return,v)}try{Ks(5,e,e.return)}catch(v){bu(e,e.return,v)}}break;case 1:ll(t,e),cl(e),512&r&&null!==n&&Ys(n,n.return);break;case 5:if(ll(t,e),cl(e),512&r&&null!==n&&Ys(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(v){bu(e,e.return,v)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&$(i,a),ye(l,s);var c=ye(l,a);for(s=0;s<u.length;s+=2){var f=u[s],d=u[s+1];"style"===f?ve(i,d):"dangerouslySetInnerHTML"===f?ce(i,d):"children"===f?fe(i,d):b(i,f,d,c)}switch(l){case"input":X(i,a);break;case"textarea":oe(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(i,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[ui]=a}catch(v){bu(e,e.return,v)}}break;case 6:if(ll(t,e),cl(e),4&r){if(null===e.stateNode)throw Error(o(162));c=e.stateNode,f=e.memoizedProps;try{c.nodeValue=f}catch(v){bu(e,e.return,v)}}break;case 3:if(ll(t,e),cl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ut(t.containerInfo)}catch(v){bu(e,e.return,v)}break;case 4:default:ll(t,e),cl(e);break;case 13:ll(t,e),cl(e),8192&(c=e.child).flags&&null!==c.memoizedState&&(null===c.alternate||null===c.alternate.memoizedState)&&(Ll=Qe()),4&r&&sl(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(Hs=(f=Hs)||c,ll(t,e),Hs=f):ll(t,e),cl(e),8192&r){f=null!==e.memoizedState;e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{i=h.stateNode,f?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=h.stateNode,s=void 0!==(u=h.memoizedProps.style)&&null!==u&&u.hasOwnProperty("display")?u.display:null,l.style.display=pe("display",s))}catch(v){bu(e,e.return,v)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=f?"":h.memoizedProps}catch(v){bu(e,e.return,v)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}if(f&&!c&&0!==(1&e.mode))for(Zs=e,e=e.child;null!==e;){for(c=Zs=e;null!==Zs;){switch(d=(f=Zs).child,f.tag){case 0:case 11:case 14:case 15:Ks(4,f,f.return);break;case 1:if(Ys(f,f.return),"function"===typeof(a=f.stateNode).componentWillUnmount){h=f,p=f.return;try{i=h,a.props=i.memoizedProps,a.state=i.memoizedState,a.componentWillUnmount()}catch(v){bu(h,p,v)}}break;case 5:Ys(f,f.return);break;case 22:if(null!==f.memoizedState){pl(c);continue}}null!==d?(d.return=f,Zs=d):pl(c)}e=e.sibling}}break;case 19:ll(t,e),cl(e),4&r&&sl(e);case 21:}}function cl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Js(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),nl(e,el(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;tl(e,el(e),a);break;default:throw Error(o(161))}}catch(s){bu(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function fl(e,t,n){Zs=e,dl(e,t,n)}function dl(e,t,n){for(var r=0!==(1&e.mode);null!==Zs;){var i=Zs,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Vs;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Hs;s=Vs;var u=Hs;if(Vs=a,(Hs=l)&&!u)for(Zs=i;null!==Zs;)l=(a=Zs).child,22===a.tag&&null!==a.memoizedState?vl(i):null!==l?(l.return=a,Zs=l):vl(i);for(;null!==o;)Zs=o,dl(o,t,n),o=o.sibling;Zs=i,Vs=s,Hs=u}hl(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,Zs=o):hl(e)}}function hl(e){for(;null!==Zs;){var t=Zs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Hs||Qs(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Hs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Bi(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&oo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}oo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Ut(d)}}}break;default:throw Error(o(163))}Hs||512&t.flags&&$s(t)}catch(h){bu(t,t.return,h)}}if(t===e){Zs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zs=n;break}Zs=t.return}}function pl(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function vl(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Qs(4,t)}catch(l){bu(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){bu(t,i,l)}}var o=t.return;try{$s(t)}catch(l){bu(t,o,l)}break;case 5:var a=t.return;try{$s(t)}catch(l){bu(t,a,l)}}}catch(l){bu(t,t.return,l)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var ml,gl=Math.ceil,yl=_.ReactCurrentDispatcher,bl=_.ReactCurrentOwner,_l=_.ReactCurrentBatchConfig,xl=0,wl=null,kl=null,Cl=0,Sl=0,El=_i(0),Tl=0,Ml=null,Ol=0,jl=0,Pl=0,Nl=null,Dl=null,Ll=0,Rl=1/0,Al=null,Il=!1,Fl=null,zl=null,Bl=!1,Ul=null,Vl=0,Hl=0,Wl=null,Zl=-1,Yl=0;function ql(){return 0!==(6&xl)?Qe():-1!==Zl?Zl:Zl=Qe()}function Gl(e){return 0===(1&e.mode)?1:0!==(2&xl)&&0!==Cl?Cl&-Cl:null!==zi.transition?(0===Yl&&(Yl=pt()),Yl):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Kt(e.type)}function Kl(e,t,n){if(50<Hl)throw Hl=0,Wl=null,Error(o(185));var r=Ql(e,t);return null===r?null:(mt(r,t,n),0!==(2&xl)&&r===wl||(r===wl&&(0===(2&xl)&&(jl|=t),4===Tl&&nu(r,Cl)),Xl(r,n),1===t&&0===xl&&0===(1&e.mode)&&(Rl=Qe()+500,Ri&&Fi())),r)}function Ql(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function $l(e){return(null!==wl||null!==Qi)&&0!==(1&e.mode)&&0===(2&xl)}function Xl(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-ot(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=dt(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ft(e,e===wl?Cl:0);if(0===r)null!==n&&qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&qe(n),1===t)0===e.tag?function(e){Ri=!0,Ii(e)}(ru.bind(null,e)):Ii(ru.bind(null,e)),ni((function(){0===xl&&Fi()})),n=null;else{switch(bt(r)){case 1:n=Xe;break;case 4:n=Je;break;case 16:default:n=et;break;case 536870912:n=nt}n=Cu(n,Jl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Jl(e,t){if(Zl=-1,Yl=0,0!==(6&xl))throw Error(o(327));var n=e.callbackNode;if(gu()&&e.callbackNode!==n)return null;var r=ft(e,e===wl?Cl:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=fu(e,r);else{t=r;var i=xl;xl|=2;var a=uu();for(wl===e&&Cl===t||(Al=null,Rl=Qe()+500,su(e,t));;)try{hu();break}catch(l){lu(e,l)}Zi(),yl.current=a,xl=i,null!==kl?t=0:(wl=null,Cl=0,t=Tl)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(r=i,t=eu(e,i))),1===t)throw n=Ml,su(e,0),nu(e,r),Xl(e,Qe()),n;if(6===t)nu(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!rr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=fu(e,r))&&(0!==(a=ht(e))&&(r=a,t=eu(e,a))),1===t))throw n=Ml,su(e,0),nu(e,r),Xl(e,Qe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:mu(e,Dl,Al);break;case 3:if(nu(e,r),(130023424&r)===r&&10<(t=Ll+500-Qe())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){ql(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Jr(mu.bind(null,e,Dl,Al),t);break}mu(e,Dl,Al);break;case 4:if(nu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-ot(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*gl(r/1960))-r)){e.timeoutHandle=Jr(mu.bind(null,e,Dl,Al),r);break}mu(e,Dl,Al);break;default:throw Error(o(329))}}}return Xl(e,Qe()),e.callbackNode===n?Jl.bind(null,e):null}function eu(e,t){var n=Nl;return e.current.memoizedState.isDehydrated&&(su(e,t).flags|=256),2!==(e=fu(e,t))&&(t=Dl,Dl=n,null!==t&&tu(t)),e}function tu(e){null===Dl?Dl=e:Dl.push.apply(Dl,e)}function nu(e,t){for(t&=~Pl,t&=~jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function ru(e){if(0!==(6&xl))throw Error(o(327));gu();var t=ft(e,0);if(0===(1&t))return Xl(e,Qe()),null;var n=fu(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=eu(e,r))}if(1===n)throw n=Ml,su(e,0),nu(e,t),Xl(e,Qe()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,mu(e,Dl,Al),Xl(e,Qe()),null}function iu(e,t){var n=xl;xl|=1;try{return e(t)}finally{0===(xl=n)&&(Rl=Qe()+500,Ri&&Fi())}}function ou(e){null!==Ul&&0===Ul.tag&&0===(6&xl)&&gu();var t=xl;xl|=1;var n=_l.transition,r=yt;try{if(_l.transition=null,yt=1,e)return e()}finally{yt=r,_l.transition=n,0===(6&(xl=t))&&Fi()}}function au(){Sl=El.current,xi(El)}function su(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ei(n)),null!==kl)for(n=kl.return;null!==n;){var r=n;switch(Eo(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Oi();break;case 3:$o(),xi(Si),xi(Ci),ra();break;case 5:Jo(r);break;case 4:$o();break;case 13:case 19:xi(ea);break;case 10:Yi(r.type._context);break;case 22:case 23:au()}n=n.return}if(wl=e,kl=e=Mu(e.current,null),Cl=Sl=t,Tl=0,Ml=null,Pl=jl=Ol=0,Dl=Nl=null,null!==Qi){for(t=0;t<Qi.length;t++)if(null!==(r=(n=Qi[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Qi=null}return e}function lu(e,t){for(;;){var n=kl;try{if(Zi(),ia.current=Xa,ca){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ca=!1}if(aa=0,ua=la=sa=null,fa=!1,da=0,bl.current=null,null===n||null===n.return){Tl=1,Ml=t,kl=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=Cl,l.flags|=32768,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,f=l,d=f.tag;if(0===(1&f.mode)&&(0===d||11===d||15===d)){var h=f.alternate;h?(f.updateQueue=h.updateQueue,f.memoizedState=h.memoizedState,f.lanes=h.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=fs(s);if(null!==p){p.flags&=-257,ds(p,s,l,0,t),1&p.mode&&cs(a,c,t),u=c;var v=(t=p).updateQueue;if(null===v){var m=new Set;m.add(u),t.updateQueue=m}else v.add(u);break e}if(0===(1&t)){cs(a,c,t),cu();break e}u=Error(o(426))}else if(Oo&&1&l.mode){var g=fs(s);if(null!==g){0===(65536&g.flags)&&(g.flags|=256),ds(g,s,l,0,t),Fo(u);break e}}a=u,4!==Tl&&(Tl=2),null===Nl?Nl=[a]:Nl.push(a),u=ns(u,l),l=s;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t,ro(l,ls(0,u,t));break e;case 1:a=u;var y=l.type,b=l.stateNode;if(0===(128&l.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===zl||!zl.has(b)))){l.flags|=65536,t&=-t,l.lanes|=t,ro(l,us(l,a,t));break e}}l=l.return}while(null!==l)}vu(n)}catch(_){t=_,kl===n&&null!==n&&(kl=n=n.return);continue}break}}function uu(){var e=yl.current;return yl.current=Xa,null===e?Xa:e}function cu(){0!==Tl&&3!==Tl&&2!==Tl||(Tl=4),null===wl||0===(268435455&Ol)&&0===(268435455&jl)||nu(wl,Cl)}function fu(e,t){var n=xl;xl|=2;var r=uu();for(wl===e&&Cl===t||(Al=null,su(e,t));;)try{du();break}catch(i){lu(e,i)}if(Zi(),xl=n,yl.current=r,null!==kl)throw Error(o(261));return wl=null,Cl=0,Tl}function du(){for(;null!==kl;)pu(kl)}function hu(){for(;null!==kl&&!Ge();)pu(kl)}function pu(e){var t=ml(e.alternate,e,Sl);e.memoizedProps=e.pendingProps,null===t?vu(e):kl=t,bl.current=null}function vu(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=vs(n,t,Sl)))return void(kl=n)}else{if(null!==(n=Us(n,t)))return n.flags&=32767,void(kl=n);if(null===e)return Tl=6,void(kl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(kl=t);kl=t=e}while(null!==t);0===Tl&&(Tl=5)}function mu(e,t,n){var r=yt,i=_l.transition;try{_l.transition=null,yt=1,function(e,t,n,r){do{gu()}while(null!==Ul);if(0!==(6&xl))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-ot(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===wl&&(kl=wl=null,Cl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Bl||(Bl=!0,Cu(et,(function(){return gu(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=_l.transition,_l.transition=null;var s=yt;yt=1;var l=xl;xl|=4,bl.current=null,function(e,t){if(Qr=Ht,ur(e=lr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(w){n=null;break e}var s=0,l=-1,u=-1,c=0,f=0,d=e,h=null;t:for(;;){for(var p;d!==n||0!==i&&3!==d.nodeType||(l=s+i),d!==a||0!==r&&3!==d.nodeType||(u=s+r),3===d.nodeType&&(s+=d.nodeValue.length),null!==(p=d.firstChild);)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++c===i&&(l=s),h===a&&++f===r&&(u=s),null!==(p=d.nextSibling))break;h=(d=h).parentNode}d=p}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for($r={focusedElem:e,selectionRange:n},Ht=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var v=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==v){var m=v.memoizedProps,g=v.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:Bi(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;if(1===_.nodeType)_.textContent="";else if(9===_.nodeType){var x=_.body;null!=x&&(x.textContent="")}break;default:throw Error(o(163))}}catch(w){bu(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}v=Gs,Gs=!1}(e,n),ul(n,e),cr($r),Ht=!!Qr,$r=Qr=null,e.current=n,fl(n,e,i),Ke(),xl=l,yt=s,_l.transition=a}else e.current=n;if(Bl&&(Bl=!1,Ul=e,Vl=i),0===(a=e.pendingLanes)&&(zl=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(rt,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),Xl(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r(t[n]);if(Il)throw Il=!1,e=Fl,Fl=null,e;0!==(1&Vl)&&0!==e.tag&&gu(),0!==(1&(a=e.pendingLanes))?e===Wl?Hl++:(Hl=0,Wl=e):Hl=0,Fi()}(e,t,n,r)}finally{_l.transition=i,yt=r}return null}function gu(){if(null!==Ul){var e=bt(Vl),t=_l.transition,n=yt;try{if(_l.transition=null,yt=16>e?16:e,null===Ul)var r=!1;else{if(e=Ul,Ul=null,Vl=0,0!==(6&xl))throw Error(o(331));var i=xl;for(xl|=4,Zs=e.current;null!==Zs;){var a=Zs,s=a.child;if(0!==(16&Zs.flags)){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Zs=c;null!==Zs;){var f=Zs;switch(f.tag){case 0:case 11:case 15:Ks(8,f,a)}var d=f.child;if(null!==d)d.return=f,Zs=d;else for(;null!==Zs;){var h=(f=Zs).sibling,p=f.return;if(Xs(f),f===c){Zs=null;break}if(null!==h){h.return=p,Zs=h;break}Zs=p}}}var v=a.alternate;if(null!==v){var m=v.child;if(null!==m){v.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}Zs=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Zs=s;else e:for(;null!==Zs;){if(0!==(2048&(a=Zs).flags))switch(a.tag){case 0:case 11:case 15:Ks(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Zs=y;break e}Zs=a.return}}var b=e.current;for(Zs=b;null!==Zs;){var _=(s=Zs).child;if(0!==(2064&s.subtreeFlags)&&null!==_)_.return=s,Zs=_;else e:for(s=b;null!==Zs;){if(0!==(2048&(l=Zs).flags))try{switch(l.tag){case 0:case 11:case 15:Qs(9,l)}}catch(w){bu(l,l.return,w)}if(l===s){Zs=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Zs=x;break e}Zs=l.return}}if(xl=i,Fi(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(rt,e)}catch(w){}r=!0}return r}finally{yt=n,_l.transition=t}}return!1}function yu(e,t,n){to(e,t=ls(0,t=ns(n,t),1)),t=ql(),null!==(e=Ql(e,1))&&(mt(e,1,t),Xl(e,t))}function bu(e,t,n){if(3===e.tag)yu(e,e,n);else for(;null!==t;){if(3===t.tag){yu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===zl||!zl.has(r))){to(t,e=us(t,e=ns(n,e),1)),e=ql(),null!==(t=Ql(t,1))&&(mt(t,1,e),Xl(t,e));break}}t=t.return}}function _u(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ql(),e.pingedLanes|=e.suspendedLanes&n,wl===e&&(Cl&n)===n&&(4===Tl||3===Tl&&(130023424&Cl)===Cl&&500>Qe()-Ll?su(e,0):Pl|=n),Xl(e,t)}function xu(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ql();null!==(e=Ql(e,t))&&(mt(e,t,n),Xl(e,n))}function wu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),xu(e,n)}function ku(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),xu(e,n)}function Cu(e,t){return Ye(e,t)}function Su(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Eu(e,t,n,r){return new Su(e,t,n,r)}function Tu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mu(e,t){var n=e.alternate;return null===n?((n=Eu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ou(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Tu(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case k:return ju(n.children,i,a,t);case C:s=8,i|=8;break;case S:return(e=Eu(12,n,t,2|i)).elementType=S,e.lanes=a,e;case O:return(e=Eu(13,n,t,i)).elementType=O,e.lanes=a,e;case j:return(e=Eu(19,n,t,i)).elementType=j,e.lanes=a,e;case D:return Pu(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:s=10;break e;case T:s=9;break e;case M:s=11;break e;case P:s=14;break e;case N:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Eu(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function ju(e,t,n,r){return(e=Eu(7,e,r,t)).lanes=n,e}function Pu(e,t,n,r){return(e=Eu(22,e,r,t)).elementType=D,e.lanes=n,e.stateNode={},e}function Nu(e,t,n){return(e=Eu(6,e,null,t)).lanes=n,e}function Du(e,t,n){return(t=Eu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Lu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ru(e,t,n,r,i,o,a,s,l){return e=new Lu(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Eu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xi(o),e}function Au(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:w,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Iu(e){if(!e)return ki;e:{if(Ue(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Mi(n))return Pi(e,n,t)}return t}function Fu(e,t,n,r,i,o,a,s,l){return(e=Ru(n,r,!0,e,0,o,0,s,l)).context=Iu(null),n=e.current,(o=eo(r=ql(),i=Gl(n))).callback=void 0!==t&&null!==t?t:null,to(n,o),e.current.lanes=i,mt(e,i,r),Xl(e,r),e}function zu(e,t,n,r){var i=t.current,o=ql(),a=Gl(i);return n=Iu(n),null===t.context?t.context=n:t.pendingContext=n,(t=eo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),to(i,t),null!==(e=Kl(i,a,o))&&no(e,i,a),a}function Bu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Uu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vu(e,t){Uu(e,t),(e=e.alternate)&&Uu(e,t)}ml=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Si.current)gs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return gs=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),Io();break;case 5:Xo(t);break;case 1:Mi(t.type)&&Ni(t);break;case 4:Qo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;wi(Ui,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(wi(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ns(e,t,n):(wi(ea,1&ea.current),null!==(e=Bs(e,t,n))?e.sibling:null);wi(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return zs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),wi(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,ws(e,t,n)}return Bs(e,t,n)}(e,t,n);gs=0!==(131072&e.flags)}else gs=!1,Oo&&0!==(1048576&t.flags)&&Co(t,go,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var i=Ti(t,Ci.current);Gi(t,n),i=ma(null,t,r,e,i,n);var a=ga();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mi(r)?(a=!0,Ni(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Xi(t),i.updater=lo,t.stateNode=i,i._reactInternals=t,ho(t,r,e,n),t=Es(null,t,r,!0,a,n)):(t.tag=0,Oo&&a&&So(t),ys(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Tu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===M)return 11;if(e===P)return 14}return 2}(r),e=Bi(r,e),i){case 0:t=Cs(null,t,r,e,n);break e;case 1:t=Ss(null,t,r,e,n);break e;case 11:t=bs(null,t,r,e,n);break e;case 14:t=_s(null,t,r,Bi(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Cs(e,t,r,i=t.elementType===r?i:Bi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ss(e,t,r,i=t.elementType===r?i:Bi(r,i),n);case 3:e:{if(Ts(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Ji(e,t),io(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ms(e,t,r,n,i=Error(o(423)));break e}if(r!==i){t=Ms(e,t,r,n,i=Error(o(424)));break e}for(Mo=oi(t.stateNode.containerInfo.firstChild),To=t,Oo=!0,jo=null,n=Wo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Io(),r===i){t=Bs(e,t,n);break e}ys(e,t,r,n)}t=t.child}return t;case 5:return Xo(t),null===e&&Lo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,Xr(r,i)?s=null:null!==a&&Xr(r,a)&&(t.flags|=32),ks(e,t),ys(e,t,s,n),t.child;case 6:return null===e&&Lo(t),null;case 13:return Ns(e,t,n);case 4:return Qo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ho(t,null,r,n):ys(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,bs(e,t,r,i=t.elementType===r?i:Bi(r,i),n);case 7:return ys(e,t,t.pendingProps,n),t.child;case 8:case 12:return ys(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,wi(Ui,r._currentValue),r._currentValue=s,null!==a)if(rr(a.value,s)){if(a.children===i.children&&!Si.current){t=Bs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=eo(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),qi(a.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),qi(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ys(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Gi(t,n),r=r(i=Ki(i)),t.flags|=1,ys(e,t,r,n),t.child;case 14:return i=Bi(r=t.type,t.pendingProps),_s(e,t,r,i=Bi(r.type,i),n);case 15:return xs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Bi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Mi(r)?(e=!0,Ni(t)):e=!1,Gi(t,n),co(t,r,i),ho(t,r,i,n),Es(null,t,r,!0,e,n);case 19:return zs(e,t,n);case 22:return ws(e,t,n)}throw Error(o(156,t.tag))};var Hu="function"===typeof reportError?reportError:function(e){console.error(e)};function Wu(e){this._internalRoot=e}function Zu(e){this._internalRoot=e}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Gu(){}function Ku(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=Bu(a);s.call(e)}}zu(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"===typeof r){var o=r;r=function(){var e=Bu(a);o.call(e)}}var a=Fu(t,r,e,0,null,!1,0,"",Gu);return e._reactRootContainer=a,e[ci]=a.current,Fr(8===e.nodeType?e.parentNode:e),ou(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=Bu(l);s.call(e)}}var l=Ru(e,0,!1,null,0,!1,0,"",Gu);return e._reactRootContainer=l,e[ci]=l.current,Fr(8===e.nodeType?e.parentNode:e),ou((function(){zu(t,l,n,r)})),l}(n,t,e,i,r);return Bu(a)}Zu.prototype.render=Wu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));zu(e,t,null,null)},Zu.prototype.unmount=Wu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ou((function(){zu(null,e,null,null)})),t[ci]=null}},Zu.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&0!==t&&t<Nt[n].priority;n++);Nt.splice(n,0,e),0===n&&At(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ct(t.pendingLanes);0!==n&&(gt(t,1|n),Xl(t,Qe()),0===(6&xl)&&(Rl=Qe()+500,Fi()))}break;case 13:var r=ql();ou((function(){return Kl(e,1,r)})),Vu(e,1)}},xt=function(e){13===e.tag&&(Kl(e,134217728,ql()),Vu(e,134217728))},wt=function(e){if(13===e.tag){var t=ql(),n=Gl(e);Kl(e,n,t),Vu(e,n)}},kt=function(){return yt},Ct=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},xe=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=gi(r);if(!i)throw Error(o(90));q(r),X(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=iu,Me=ou;var Qu={usingClientEntryPoint:!1,Events:[vi,mi,gi,Se,Ee,iu]},$u={findFiberByHostInstance:pi,bundleType:0,version:"18.1.0",rendererPackageName:"react-dom"},Xu={bundleType:$u.bundleType,version:$u.version,rendererPackageName:$u.rendererPackageName,rendererConfig:$u.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:$u.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.1.0-next-22edb9f77-20220426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Ju=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ju.isDisabled&&Ju.supportsFiber)try{rt=Ju.inject(Xu),it=Ju}catch(ec){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yu(t))throw Error(o(200));return Au(e,t,null,n)},t.createRoot=function(e,t){if(!Yu(e))throw Error(o(299));var n=!1,r="",i=Hu;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Ru(e,1,!1,null,0,n,0,r,i),e[ci]=t.current,Fr(8===e.nodeType?e.parentNode:e),new Wu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return ou(e)},t.hydrate=function(e,t,n){if(!qu(t))throw Error(o(200));return Ku(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yu(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Hu;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Fu(t,null,e,1,null!=n?n:null,i,0,a,s),e[ci]=t.current,Fr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Zu(t)},t.render=function(e,t,n){if(!qu(t))throw Error(o(200));return Ku(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!qu(e))throw Error(o(40));return!!e._reactRootContainer&&(ou((function(){Ku(null,null,e,!1,(function(){e._reactRootContainer=null,e[ci]=null}))})),!0)},t.unstable_batchedUpdates=iu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!qu(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Ku(e,t,n,!1,r)},t.version="18.1.0-next-22edb9f77-20220426"},8192:function(e,t,n){"use strict";var r=n(8544);t.s=r.createRoot,r.hydrateRoot},8544:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(9772)},2779:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],f=1,d=null,h=3,p=!1,v=!1,m=!1,g="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function _(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function x(e){if(m=!1,_(e),!v)if(null!==r(u))v=!0,D(w);else{var t=r(c);null!==t&&L(x,t.startTime-e)}}function w(e,n){v=!1,m&&(m=!1,y(E),E=-1),p=!0;var o=h;try{for(_(n),d=r(u);null!==d&&(!(d.expirationTime>n)||e&&!O());){var a=d.callback;if("function"===typeof a){d.callback=null,h=d.priorityLevel;var s=a(d.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?d.callback=s:d===r(u)&&i(u),_(n)}else i(u);d=r(u)}if(null!==d)var l=!0;else{var f=r(c);null!==f&&L(x,f.startTime-n),l=!1}return l}finally{d=null,h=o,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,C=!1,S=null,E=-1,T=5,M=-1;function O(){return!(t.unstable_now()-M<T)}function j(){if(null!==S){var e=t.unstable_now();M=e;var n=!0;try{n=S(!0,e)}finally{n?k():(C=!1,S=null)}}else C=!1}if("function"===typeof b)k=function(){b(j)};else if("undefined"!==typeof MessageChannel){var P=new MessageChannel,N=P.port2;P.port1.onmessage=j,k=function(){N.postMessage(null)}}else k=function(){g(j,0)};function D(e){S=e,C||(C=!0,k())}function L(e,n){E=g((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){v||p||(v=!0,D(w))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:f++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(m?(y(E),E=-1):m=!0,L(x,o-a))):(e.sortIndex=s,n(u,e),v||p||(v=!0,D(w))),e},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},9419:function(e,t,n){"use strict";e.exports=n(2779)},6847:function(e){var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,u,c;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!o(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=e.entries();!(l=c.next()).done;)if(!o(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((s=(u=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,u[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!e.$$typeof)&&!o(e[u[l]],a[u[l]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},1424:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case d:case m:case v:case l:return e;default:return t}}case i:return t}}}function w(e){return x(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=m,t.Memo=v,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return w(e)||x(e)===c},t.isConcurrentMode=w,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===v},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===f||e===s||e===a||e===h||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_||e.$$typeof===g)},t.typeOf=x},91:function(e,t,n){"use strict";e.exports=n(1424)},4631:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),m=Symbol.for("react.module.reference");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case f:case d:return e;default:switch(e=e&&e.$$typeof){case u:case l:case c:case p:case h:case s:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return g(e)===l}},1686:function(e,t,n){"use strict";e.exports=n(4631)},4581:function(e,t,n){e.exports=function(e,t){"use strict";function n(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var r=n(e),i=n(t);function o(e){return r.default.createElement("button",{type:"button",className:e.classNames.selectedTag,title:e.removeButtonText,onClick:e.onDelete},r.default.createElement("span",{className:e.classNames.selectedTagName},e.tag.name))}var a={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},s=["fontSize","fontFamily","fontWeight","fontStyle","letterSpacing","textTransform"],l=function(e){function t(t){e.call(this,t),this.state={inputWidth:null},this.input=r.default.createRef(),this.sizer=r.default.createRef()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){this.props.autoresize&&(this.copyInputStyles(),this.updateInputWidth())},t.prototype.componentDidUpdate=function(e){var t=e.query,n=e.placeholderText;t===this.props.query&&n===this.props.placeholderText||this.updateInputWidth()},t.prototype.copyInputStyles=function(){var e=this,t=window.getComputedStyle(this.input.current);s.forEach((function(n){e.sizer.current.style[n]=t[n]}))},t.prototype.updateInputWidth=function(){var e;this.props.autoresize&&(e=Math.ceil(this.sizer.current.scrollWidth)+2),e!==this.state.inputWidth&&this.setState({inputWidth:e})},t.prototype.render=function(){var e=this.props,t=e.id,n=e.query,i=e.ariaLabelText,o=e.placeholderText,s=e.expanded,l=e.classNames,u=e.inputAttributes,c=e.inputEventHandlers,f=e.index;return r.default.createElement("div",{className:l.searchWrapper},r.default.createElement("input",Object.assign({},u,c,{ref:this.input,value:n,placeholder:o,className:l.searchInput,role:"combobox","aria-autocomplete":"list","aria-label":i||o,"aria-owns":t,"aria-activedescendant":f>-1?t+"-"+f:null,"aria-expanded":s,style:{width:this.state.inputWidth}})),r.default.createElement("div",{ref:this.sizer,style:a},n||o))},t}(r.default.Component);function u(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function c(e){return new RegExp(u(e),"gi")}function f(e){return new RegExp("(?:^|\\s)"+u(e),"i")}function d(e){return new RegExp("^"+u(e)+"$","i")}function h(e,t){var n=c(t);return e.replace(n,"<mark>$&</mark>")}function p(e){var t=e.item,n=e.query;return r.default.createElement("span",{dangerouslySetInnerHTML:{__html:h(t.name,n)}})}function v(e){var t=e.suggestionComponent||p,n=e.options.map((function(n,i){var o=e.id+"-"+i,a=[];return e.index===i&&a.push(e.classNames.suggestionActive),n.disabled&&a.push(e.classNames.suggestionDisabled),r.default.createElement("li",{id:o,key:o,role:"option",className:a.join(" "),"aria-disabled":Boolean(n.disabled),onMouseDown:function(e){return e.preventDefault()},onClick:function(){return e.addTag(n)}},n.prefix?r.default.createElement("span",{className:e.classNames.suggestionPrefix},n.prefix," "):null,n.disableMarkIt?n.name:r.default.createElement(t,{item:n,query:e.query}))}));return r.default.createElement("div",{className:e.classNames.suggestions},r.default.createElement("ul",{role:"listbox",id:e.id},n))}function m(e,t){var n=e.querySelectorAll("a,button,input"),r=Array.prototype.findIndex.call(n,(function(e){return e===t})),i=n[r-1]||n[r+1];i&&i.focus()}var g={ENTER:"Enter",TAB:"Tab",BACKSPACE:"Backspace",UP_ARROW:"ArrowUp",UP_ARROW_COMPAT:"Up",DOWN_ARROW:"ArrowDown",DOWN_ARROW_COMPAT:"Down"},y={root:"react-tags",rootFocused:"is-focused",selected:"react-tags__selected",selectedTag:"react-tags__selected-tag",selectedTagName:"react-tags__selected-tag-name",search:"react-tags__search",searchWrapper:"react-tags__search-wrapper",searchInput:"react-tags__search-input",suggestions:"react-tags__suggestions",suggestionActive:"is-active",suggestionDisabled:"is-disabled",suggestionPrefix:"react-tags__suggestion-prefix"};function b(e,t){return e.findIndex((function(e){return d(t).test(e.name)}))}function _(){if(this.state.query.length>=this.props.minQueryLength){var e=b(this.state.options,this.state.query),t=-1===this.state.index?e:this.state.index,n=t>-1?this.state.options[t]:null;n?this.addTag(n):this.props.allowNew&&this.addTag({name:this.state.query})}}function x(e){e.preventDefault();var t=this.state.options.length-1;this.setState({index:this.state.index<=0?t:this.state.index-1})}function w(e){e.preventDefault();var t=this.state.options.length-1;this.setState({index:this.state.index>=t?0:this.state.index+1})}function k(){this.state.query.length||this.deleteTag(this.props.tags.length-1)}function C(e,t){return f(t).test(e.name)}function S(e,t){var n;return n=(n=e.suggestionsTransform?e.suggestionsTransform(t.query,e.suggestions):e.suggestions.filter((function(n){return e.suggestionsFilter(n,t.query)}))).slice(0,e.maxSuggestionsLength),e.allowNew&&e.newTagText&&-1===b(n,t.query)?n.push({id:0,name:t.query,prefix:e.newTagText,disableMarkIt:!0}):e.noSuggestionsText&&0===n.length&&n.push({id:0,name:e.noSuggestionsText,disabled:!0,disableMarkIt:!0}),n}var E=function(e){function t(t){e.call(this,t),this.state={query:"",focused:!1,index:-1},this.inputEventHandlers={onChange:function(){},onBlur:this.onBlur.bind(this),onFocus:this.onFocus.bind(this),onInput:this.onInput.bind(this),onKeyDown:this.onKeyDown.bind(this)},this.container=r.default.createRef(),this.input=r.default.createRef()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.onInput=function(e){var t=e.target.value;this.props.onInput&&this.props.onInput(t),t.length===this.state.query.length+1&&this.props.delimiters.indexOf(t.slice(-1))>-1?_.call(this):t!==this.state.query&&this.setState({query:t})},t.prototype.onKeyDown=function(e){this.props.delimiters.indexOf(e.key)>-1&&((this.state.query||this.state.index>-1)&&e.preventDefault(),_.call(this)),e.key===g.BACKSPACE&&this.props.allowBackspace&&k.call(this,e),e.key!==g.UP_ARROW&&e.key!==g.UP_ARROW_COMPAT||x.call(this,e),e.key!==g.DOWN_ARROW&&e.key!==g.DOWN_ARROW_COMPAT||w.call(this,e)},t.prototype.onClick=function(e){document.activeElement!==e.target&&this.focusInput()},t.prototype.onBlur=function(){this.setState({focused:!1,index:-1}),this.props.onBlur&&this.props.onBlur(),this.props.addOnBlur&&_.call(this)},t.prototype.onFocus=function(){this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus()},t.prototype.onDeleteTag=function(e,t){this.container.current&&m(this.container.current,t.currentTarget),this.deleteTag(e)},t.prototype.addTag=function(e){e.disabled||("function"!==typeof this.props.onValidate||this.props.onValidate(e))&&(this.props.onAddition({id:e.id,name:e.name}),this.clearInput())},t.prototype.deleteTag=function(e){this.props.onDelete(e)},t.prototype.clearInput=function(){this.setState({query:"",index:-1})},t.prototype.clearSelectedIndex=function(){this.setState({index:-1})},t.prototype.focusInput=function(){this.input.current&&this.input.current.input.current&&this.input.current.input.current.focus()},t.prototype.render=function(){var e=this,t=this.props.tagComponent||o,n=this.state.focused&&this.state.query.length>=this.props.minQueryLength,i=Object.assign({},y,this.props.classNames),a=[i.root];return this.state.focused&&a.push(i.rootFocused),r.default.createElement("div",{ref:this.container,className:a.join(" "),onClick:this.onClick.bind(this)},r.default.createElement("div",{className:i.selected,"aria-relevant":"additions removals","aria-live":"polite"},this.props.tags.map((function(n,o){return r.default.createElement(t,{key:o,tag:n,removeButtonText:e.props.removeButtonText,classNames:i,onDelete:e.onDeleteTag.bind(e,o)})}))),r.default.createElement("div",{className:i.search},r.default.createElement(l,Object.assign({},this.state,{id:this.props.id,ref:this.input,classNames:i,inputAttributes:this.props.inputAttributes,inputEventHandlers:this.inputEventHandlers,autoresize:this.props.autoresize,expanded:n,placeholderText:this.props.placeholderText,ariaLabelText:this.props.ariaLabelText})),n&&this.state.options.length?r.default.createElement(v,Object.assign({},this.state,{id:this.props.id,classNames:i,expanded:n,addTag:this.addTag.bind(this),suggestionComponent:this.props.suggestionComponent})):null))},t.getDerivedStateFromProps=function(e,t){return t.prevQuery!==t.query||t.prevSuggestions!==e.suggestions?{prevQuery:t.query,prevSuggestions:e.suggestions,options:S(e,t)}:null},t}(r.default.Component);return E.defaultProps={id:"ReactTags",tags:[],placeholderText:"Add new tag",removeButtonText:"Click to remove tag",noSuggestionsText:null,newTagText:null,suggestions:[],suggestionsFilter:C,suggestionsTransform:null,autoresize:!0,classNames:y,delimiters:[g.TAB,g.ENTER],minQueryLength:2,maxSuggestionsLength:6,allowNew:!1,allowBackspace:!0,addOnBlur:!1,tagComponent:null,suggestionComponent:null,inputAttributes:{}},E.propTypes={id:i.default.string,tags:i.default.arrayOf(i.default.object),placeholderText:i.default.string,ariaLabelText:i.default.string,removeButtonText:i.default.string,noSuggestionsText:i.default.string,newTagText:i.default.string,suggestions:i.default.arrayOf(i.default.object),suggestionsFilter:i.default.func,suggestionsTransform:i.default.func,autoresize:i.default.bool,delimiters:i.default.arrayOf(i.default.string),onDelete:i.default.func.isRequired,onAddition:i.default.func.isRequired,onInput:i.default.func,onFocus:i.default.func,onBlur:i.default.func,onValidate:i.default.func,minQueryLength:i.default.number,maxSuggestionsLength:i.default.number,classNames:i.default.object,allowNew:i.default.bool,allowBackspace:i.default.bool,addOnBlur:i.default.bool,tagComponent:i.default.oneOfType([i.default.func,i.default.element]),suggestionComponent:i.default.oneOfType([i.default.func,i.default.element]),inputAttributes:i.default.object},E}(n(9867),n(8731))},6482:function(e,t,n){"use strict";var r=n(9867),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,o={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:o,_owner:s.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},3285:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var _=b.prototype=new y;_.constructor=b,v(_,g.prototype),_.isPureReactComponent=!0;var x=Array.isArray,w=Object.prototype.hasOwnProperty,k={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,i)&&!C.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:k.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function M(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+M(l,0):o,x(a)?(i="",null!=e&&(i=e.replace(T,"$&/")+"/"),O(a,t,i,"",(function(e){return e}))):null!=a&&(E(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",x(e))for(var u=0;u<e.length;u++){var c=o+M(s=e[u],u);l+=O(s,t,i,c,a)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=O(s=s.value,t,i,c=o+M(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function j(e,t,n){if(null==e)return e;var r=[],i=0;return O(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var N={current:null},D={transition:null},L={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:D,ReactCurrentOwner:k};t.Children={map:j,forEach:function(e,t,n){j(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return j(e,(function(){t++})),t},toArray:function(e){return j(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=v({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=k.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)w.call(t,u)&&!C.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return N.current.useCallback(e,t)},t.useContext=function(e){return N.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return N.current.useDeferredValue(e)},t.useEffect=function(e,t){return N.current.useEffect(e,t)},t.useId=function(){return N.current.useId()},t.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.current.useMemo(e,t)},t.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},t.useRef=function(e){return N.current.useRef(e)},t.useState=function(e){return N.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return N.current.useTransition()},t.version="18.1.0"},9867:function(e,t,n){"use strict";e.exports=n(3285)},2834:function(e,t,n){"use strict";e.exports=n(6482)},7045:function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}}(n(2393));function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a1=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.states,n=void 0===t?f:t,r=e.ignoreStates,i=void 0===r?d:r,o=e.namespace,a=void 0===o?u:o,s=e.namespaceSeparator,v=void 0===s?c:s,m=e.debounce,b=void 0===m?0:m,C=e.disableWarnings,E=void 0===C?h:C;return function(e){return function(t){return function(r){function o(){0===n.length?C.setItem(a,s):n.forEach((function(e){var t=a+v+e,n=function(e,t){return 1<e.split(".").length?y(e.split("."),t):y([e],t)}(e,s);n?C.setItem(t,n):C.removeItem(t)}))}var s,h=g(E),m=t(r);x(n)||(console.error(l,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),n=f),x(i)||(console.error(l,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),i=d),0<i.length&&(i=i.filter((function(e){return w(e)?e:void console.error(l,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")}))),w(a)||(console.error(l,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),a=u),w(v)||(console.error(l,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),v=c),k(b)||(console.error(l,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),b=0),s=0<i.length?S(i,e.getState()):e.getState();var C=new _(h);return b?(p&&clearTimeout(p),p=setTimeout((function(){o()}),b)):o(),m}}}},t.zD=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.states,n=void 0===t?f:t,i=e.immutablejs,o=void 0!==i&&i,a=e.namespace,s=void 0===a?u:a,d=e.namespaceSeparator,p=void 0===d?c:d,v=e.preloadedState,m=void 0===v?{}:v,y=e.disableWarnings,k=void 0===y?h:y,C=g(k);x(n)||(console.error(l,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),n=f),w(s)||(console.error(l,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),s=u),w(p)||(console.error(l,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),p=c),!0===o&&C("Support for Immutable.js data structures has been deprecated as of version 2.0.0. Please use version 1.4.0 if you require this functionality.");var S=new _(C),E=m;if(0===n.length){var T=S.getItem(s);T&&(E=T)}else n.forEach((function(e){var t=s+p+e,n=S.getItem(t);n?E=r.default.recursive(E,b(e,n)):C("Invalid load '"+t+"' provided. Check your 'states' in 'load()'. If this is your first time running this app you may see this message. To disable it in future use the 'disableWarnings' flag, see documentation.")}));return E};var l="[Redux-LocalStorage-Simple]",u="redux_localstorage_simple",c="_",f=[],d=[],h=!1,p=null;function v(e){console.warn(l,e)}function m(){}var g=function(e){return e?m:v};function y(e,t){return void 0===t?null:1===e.length?t[e[0]]:y(e.slice(1),t[e[0]])}function b(e){function t(e,n){return 0===e.length?n:t(e.slice(1),s({},e[0],n))}var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return t(e.split(".").reverse(),n)}function _(e){this.warnFn=e||v}function x(e){return"[object Array]"===Object.prototype.toString.call(e)}function w(e){return"string"==typeof e}function k(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function C(e){return null!==e&&"object"===a(e)}function S(e,t){return Object.entries(t).reduce((function(n,r){var o=i(r,2),a=o[0];o[1];return-1===e.indexOf(a)&&(n[a]=t[a]),n}),{})}Object.defineProperty(_.prototype,"length",{get:function(){try{return localStorage.length}catch(e){this.warnFn(e)}return 0},configurable:!0,enumerable:!0}),_.prototype.key=function(e){try{return localStorage.key(e)}catch(e){this.warnFn(e)}return null},_.prototype.setItem=function(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(e){this.warnFn(e)}},_.prototype.getItem=function(e){try{return JSON.parse(localStorage.getItem(e))}catch(e){this.warnFn(e)}return null},_.prototype.removeItem=function(e){try{localStorage.removeItem(e)}catch(e){this.warnFn(e)}}},4596:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(P){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),a=new M(r||[]);return o._invoke=function(e,t,n){var r=f;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return j()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?p:d,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(P){return{type:"throw",arg:P}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",v={};function m(){}function g(){}function y(){}var b={};l(b,o,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(O([])));x&&x!==n&&r.call(x,o)&&(b=x);var w=y.prototype=m.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,o,a,s){var l=c(e[i],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=c(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var n=e[o];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:j}}function j(){return{value:t,done:!0}}return g.prototype=y,l(w,"constructor",y),l(y,"constructor",g),g.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},k(C.prototype),l(C.prototype,a,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(w),l(w,s,"Generator"),l(w,o,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=O,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"===typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},3147:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},771:function(e,t,n){"use strict";var r=n(9867);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(r){return!0}}var c="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s((function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})}),[e,n,t]),a((function(){return u(i)&&c({inst:i}),e((function(){u(i)&&c({inst:i})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},1439:function(e,t,n){"use strict";var r=n(9867),i=n(6853);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var f=s(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=u((function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(a=e,s=n)}var a,s,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,i]);var h=a(e,f[0],f[1]);return l((function(){d.hasValue=!0,d.value=h}),[h]),c(h),h}},6853:function(e,t,n){"use strict";e.exports=n(771)},6599:function(e,t,n){"use strict";e.exports=n(1439)},944:function(e){"use strict";var t=function(){};e.exports=t},6431:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg=="},7093:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII="},8858:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC"}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e={};n.r(e),n.d(e,{normalizeVisits:function(){return BP},processStatsFromVisits:function(){return zP}});var t=n(8192),r=n(6853),i=n(6599),o=n(8544);var a=function(e){e()},s=function(){return a},l=n(9867),u=l.createContext(null);var c=function(){throw new Error("uSES not initialized!")};function f(e){if(Array.isArray(e))return e}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){if(e){if("string"===typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(e,t){return f(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||h(e,t)||p()}function m(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function g(e){return function(e){if(Array.isArray(e))return d(e)}(e)||m(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}function b(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var _=n(9053),x=n.n(_),w=n(1686),k=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function C(e,t,n,r,i){var o,a,s,l,u,c=i.areStatesEqual,f=i.areOwnPropsEqual,d=i.areStatePropsEqual,h=!1;function p(i,h){var p=!f(h,a),v=!c(i,o);return o=i,a=h,p&&v?(s=e(o,a),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a)):p?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a)):v?function(){var t=e(o,a),r=!d(t,s);return s=t,r&&(u=n(s,l,a)),u}():u}return function(i,c){return h?p(i,c):(s=e(o=i,a=c),l=t(r,a),u=n(s,l,a),h=!0,u)}}function S(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=b(t,k);return C(n(e,o),r(e,o),i(e,o),e,o)}function E(e){return function(t){var n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function T(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function M(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=T(e);var i=r(t,n);return"function"===typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=T(i),i=r(t,n)),i},r}}function O(e,t){return function(n,r){throw new Error("Invalid value of type ".concat(typeof e," for ").concat(t," argument when connecting component ").concat(r.wrappedComponentName,"."))}}function j(e){return e&&"object"===typeof e?E((function(t){return function(e,t){var n={},r=function(r){var i=e[r];"function"===typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)r(i);return n}(e,t)})):e?"function"===typeof e?M(e):O(e,"mapDispatchToProps"):E((function(e){return{dispatch:e}}))}function P(e){return e?"function"===typeof e?M(e):O(e,"mapStateToProps"):E((function(){return{}}))}function N(e,t,n){return y({},n,e,t)}function D(e){return e?"function"===typeof e?function(e){return function(t,n){n.displayName;var r,i=n.areMergedPropsEqual,o=!1;return function(t,n,a){var s=e(t,n,a);return o?i(s,r)||(r=s):(o=!0,r=s),r}}}(e):O(e,"mergeProps"):function(){return N}}var L={notify:function(){},get:function(){return[]}};function R(e,t){var n,r=L;function i(){a.onStateChange&&a.onStateChange()}function o(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){var e=s(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var a={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=L)},getListeners:function(){return r}};return a}var A=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement)?l.useLayoutEffect:l.useEffect;function I(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function F(e,t){if(I(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!I(e[n[i]],t[n[i]]))return!1;return!0}var z=["reactReduxForwardedRef"],B=c,U=[null,null];function V(e,t,n){A((function(){return e.apply(void 0,g(t))}),n)}function H(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function W(e,t,n,r,i,o,a,s,l,u,c){if(!e)return function(){};var f=!1,d=null,h=function(){if(!f&&s.current){var e,n,h=t.getState();try{e=r(h,i.current)}catch(p){n=p,d=p}n||(d=null),e===o.current?a.current||u():(o.current=e,l.current=e,a.current=!0,c())}};n.onStateChange=h,n.trySubscribe(),h();return function(){if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}function Z(e,t){return e===t}var Y=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=(r.pure,r.areStatesEqual),o=void 0===i?Z:i,a=r.areOwnPropsEqual,s=void 0===a?F:a,c=r.areStatePropsEqual,f=void 0===c?F:c,d=r.areMergedPropsEqual,h=void 0===d?F:d,p=r.forwardRef,m=void 0!==p&&p,g=r.context,_=void 0===g?u:g,k=_,C=P(e),E=j(t),T=D(n),M=Boolean(e),O=function(e){var t=e.displayName||e.name||"Component",n="Connect(".concat(t,")"),r={shouldHandleStateChanges:M,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:C,initMapDispatchToProps:E,initMergeProps:T,areStatesEqual:o,areStatePropsEqual:f,areOwnPropsEqual:s,areMergedPropsEqual:h};function i(t){var n=(0,l.useMemo)((function(){var e=t.reactReduxForwardedRef,n=b(t,z);return[t.context,e,n]}),[t]),i=v(n,3),o=i[0],a=i[1],s=i[2],u=(0,l.useMemo)((function(){return o&&o.Consumer&&(0,w.isContextConsumer)(l.createElement(o.Consumer,null))?o:k}),[o,k]),c=(0,l.useContext)(u),f=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),d=Boolean(c)&&Boolean(c.store);var h=f?t.store:c.store,p=d?c.getServerState:h.getState,m=(0,l.useMemo)((function(){return S(h.dispatch,r)}),[h]),g=(0,l.useMemo)((function(){if(!M)return U;var e=R(h,f?void 0:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[h,f,c]),_=v(g,2),x=_[0],C=_[1],E=(0,l.useMemo)((function(){return f?c:y({},c,{subscription:x})}),[f,c,x]),T=(0,l.useRef)(),O=(0,l.useRef)(s),j=(0,l.useRef)(),P=(0,l.useRef)(!1),N=((0,l.useRef)(!1),(0,l.useRef)(!1)),D=(0,l.useRef)();A((function(){return N.current=!0,function(){N.current=!1}}),[]);var L,I=(0,l.useMemo)((function(){return function(){return j.current&&s===O.current?j.current:m(h.getState(),s)}}),[h,s]),F=(0,l.useMemo)((function(){return function(e){return x?W(M,h,x,m,O,T,P,N,j,C,e):function(){}}}),[x]);V(H,[O,T,P,s,j,C]);try{L=B(F,I,p?function(){return m(p(),s)}:I)}catch(Y){throw D.current&&(Y.message+="\nThe error may be correlated with this previous error:\n".concat(D.current.stack,"\n\n")),Y}A((function(){D.current=void 0,j.current=void 0,T.current=L}));var Z=(0,l.useMemo)((function(){return l.createElement(e,y({},L,{ref:a}))}),[a,e,L]);return(0,l.useMemo)((function(){return M?l.createElement(u.Provider,{value:E},Z):Z}),[u,Z,E])}var a=l.memo(i);if(a.WrappedComponent=e,a.displayName=i.displayName=n,m){var u=l.forwardRef((function(e,t){return l.createElement(a,y({},e,{reactReduxForwardedRef:t}))}));return u.displayName=n,u.WrappedComponent=e,x()(u,e)}return x()(a,e)};return O};var q=function(e){var t=e.store,n=e.context,r=e.children,i=e.serverState,o=(0,l.useMemo)((function(){var e=R(t);return{store:t,subscription:e,getServerState:i?function(){return i}:void 0}}),[t,i]),a=(0,l.useMemo)((function(){return t.getState()}),[t]);A((function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=void 0}}),[o,a]);var s=n||u;return l.createElement(s.Provider,{value:o},r)};var G,K,Q;G=i.useSyncExternalStoreWithSelector,function(e){B=e}(r.useSyncExternalStore),K=o.unstable_batchedUpdates,a=K,function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(Q||(Q={}));var $=function(e){return e};var X="beforeunload",J="popstate";function ee(e){e.preventDefault(),e.returnValue=""}function te(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function ne(){return Math.random().toString(36).substr(2,8)}function re(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,i=void 0===r?"":r,o=e.hash,a=void 0===o?"":o;return i&&"?"!==i&&(n+="?"===i.charAt(0)?i:"?"+i),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function ie(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var oe=(0,l.createContext)(null);var ae=(0,l.createContext)(null);var se=(0,l.createContext)({outlet:null,matches:[]});function le(e,t){if(!e)throw new Error(t)}function ue(e,t,n){void 0===n&&(n="/");var r=ge(("string"===typeof t?ie(t):t).pathname||"/",n);if(null==r)return null;var i=ce(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(i);for(var o=null,a=0;null==o&&a<i.length;++a)o=pe(i[a],r);return o}function ce(e,t,n,r){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r=""),e.forEach((function(e,i){var o={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};o.relativePath.startsWith("/")&&(o.relativePath.startsWith(r)||le(!1),o.relativePath=o.relativePath.slice(r.length));var a=ye([r,o.relativePath]),s=n.concat(o);e.children&&e.children.length>0&&(!0===e.index&&le(!1),ce(e.children,t,s,a)),(null!=e.path||e.index)&&t.push({path:a,score:he(a,e.index),routesMeta:s})})),t}var fe=/^:\w+$/,de=function(e){return"*"===e};function he(e,t){var n=e.split("/"),r=n.length;return n.some(de)&&(r+=-2),t&&(r+=2),n.filter((function(e){return!de(e)})).reduce((function(e,t){return e+(fe.test(t)?3:""===t?1:10)}),r)}function pe(e,t){for(var n=e.routesMeta,r={},i="/",o=[],a=0;a<n.length;++a){var s=n[a],l=a===n.length-1,u="/"===i?t:t.slice(i.length)||"/",c=ve({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u);if(!c)return null;Object.assign(r,c.params);var f=s.route;o.push({params:r,pathname:ye([i,c.pathname]),pathnameBase:be(ye([i,c.pathnameBase])),route:f}),"/"!==c.pathnameBase&&(i=ye([i,c.pathnameBase]))}return o}function ve(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});var n=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);var r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(function(e,t){return r.push(t),"([^\\/]+)"}));e.endsWith("*")?(r.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):i+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)";return[new RegExp(i,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),r=v(n,2),i=r[0],o=r[1],a=t.match(i);if(!a)return null;var s=a[0],l=s.replace(/(.)\/+$/,"$1"),u=a.slice(1),c=o.reduce((function(e,t,n){if("*"===t){var r=u[n]||"";l=s.slice(0,s.length-r.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return e}}(u[n]||""),e}),{});return{params:c,pathname:s,pathnameBase:l,pattern:e}}function me(e,t,n){var r,i="string"===typeof e?ie(e):e,o=""===e||""===i.pathname?"/":i.pathname;if(null==o)r=n;else{var a=t.length-1;if(o.startsWith("..")){for(var s=o.split("/");".."===s[0];)s.shift(),a-=1;i.pathname=s.join("/")}r=a>=0?t[a]:"/"}var l=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?ie(e):e,r=n.pathname,i=n.search,o=void 0===i?"":i,a=n.hash,s=void 0===a?"":a,l=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:l,search:_e(o),hash:xe(s)}}(i,r);return o&&"/"!==o&&o.endsWith("/")&&!l.pathname.endsWith("/")&&(l.pathname+="/"),l}function ge(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=e.charAt(t.length);return n&&"/"!==n?null:e.slice(t.length)||"/"}var ye=function(e){return e.join("/").replace(/\/\/+/g,"/")},be=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},_e=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},xe=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""};function we(e){ke()||le(!1);var t=(0,l.useContext)(oe),n=t.basename,r=t.navigator,i=Te(e),o=i.hash,a=i.pathname,s=i.search,u=a;if("/"!==n){var c=function(e){return""===e||""===e.pathname?"/":"string"===typeof e?ie(e).pathname:e.pathname}(e),f=null!=c&&c.endsWith("/");u="/"===a?n+(f?"/":""):ye([n,a])}return r.createHref({pathname:u,search:s,hash:o})}function ke(){return null!=(0,l.useContext)(ae)}function Ce(){return ke()||le(!1),(0,l.useContext)(ae).location}function Se(){ke()||le(!1);var e=(0,l.useContext)(oe),t=e.basename,n=e.navigator,r=(0,l.useContext)(se).matches,i=Ce().pathname,o=JSON.stringify(r.map((function(e){return e.pathnameBase}))),a=(0,l.useRef)(!1);(0,l.useEffect)((function(){a.current=!0}));var s=(0,l.useCallback)((function(e,r){if(void 0===r&&(r={}),a.current)if("number"!==typeof e){var s=me(e,JSON.parse(o),i);"/"!==t&&(s.pathname=ye([t,s.pathname])),(r.replace?n.replace:n.push)(s,r.state)}else n.go(e)}),[t,n,o,i]);return s}function Ee(){var e=(0,l.useContext)(se).matches,t=e[e.length-1];return t?t.params:{}}function Te(e){var t=(0,l.useContext)(se).matches,n=Ce().pathname,r=JSON.stringify(t.map((function(e){return e.pathnameBase})));return(0,l.useMemo)((function(){return me(e,JSON.parse(r),n)}),[e,r,n])}function Me(e,t){return void 0===t&&(t=[]),null==e?null:e.reduceRight((function(n,r,i){return(0,l.createElement)(se.Provider,{children:void 0!==r.route.element?r.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,i+1))}})}),null)}function Oe(e){var t=e.to,n=e.replace,r=e.state;ke()||le(!1);var i=Se();return(0,l.useEffect)((function(){i(t,{replace:n,state:r})})),null}function je(e){le(!1)}function Pe(e){var t=e.basename,n=void 0===t?"/":t,r=e.children,i=void 0===r?null:r,o=e.location,a=e.navigationType,s=void 0===a?Q.Pop:a,u=e.navigator,c=e.static,f=void 0!==c&&c;ke()&&le(!1);var d=be(n),h=(0,l.useMemo)((function(){return{basename:d,navigator:u,static:f}}),[d,u,f]);"string"===typeof o&&(o=ie(o));var p=o,v=p.pathname,m=void 0===v?"/":v,g=p.search,y=void 0===g?"":g,b=p.hash,_=void 0===b?"":b,x=p.state,w=void 0===x?null:x,k=p.key,C=void 0===k?"default":k,S=(0,l.useMemo)((function(){var e=ge(m,d);return null==e?null:{pathname:e,search:y,hash:_,state:w,key:C}}),[d,m,y,_,w,C]);return null==S?null:(0,l.createElement)(oe.Provider,{value:h},(0,l.createElement)(ae.Provider,{children:i,value:{location:S,navigationType:s}}))}function Ne(e){var t=e.children,n=e.location;return function(e,t){ke()||le(!1);var n,r=(0,l.useContext)(se).matches,i=r[r.length-1],o=i?i.params:{},a=(i&&i.pathname,i?i.pathnameBase:"/"),s=(i&&i.route,Ce());if(t){var u,c="string"===typeof t?ie(t):t;"/"===a||(null==(u=c.pathname)?void 0:u.startsWith(a))||le(!1),n=c}else n=s;var f=n.pathname||"/",d=ue(e,{pathname:"/"===a?f:f.slice(a.length)||"/"});return Me(d&&d.map((function(e){return Object.assign({},e,{params:Object.assign({},o,e.params),pathname:ye([a,e.pathname]),pathnameBase:"/"===e.pathnameBase?a:ye([a,e.pathnameBase])})})),r)}(De(t),n)}function De(e){var t=[];return l.Children.forEach(e,(function(e){if((0,l.isValidElement)(e))if(e.type!==l.Fragment){e.type!==je&&le(!1);var n={caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path};e.props.children&&(n.children=De(e.props.children)),t.push(n)}else t.push.apply(t,De(e.props.children))})),t}function Le(){return Le=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Le.apply(this,arguments)}function Re(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var Ae=["onClick","reloadDocument","replace","state","target","to"],Ie=["aria-current","caseSensitive","className","end","style","to","children"];function Fe(e){var t=e.basename,n=e.children,r=e.window,i=(0,l.useRef)();null==i.current&&(i.current=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function i(){var e=n.location,t=e.pathname,i=e.search,o=e.hash,a=r.state||{};return[a.idx,$({pathname:t,search:i,hash:o,state:a.usr||null,key:a.key||"default"})]}var o=null;n.addEventListener(J,(function(){if(o)f.call(o),o=null;else{var e=Q.Pop,t=i(),n=t[0],r=t[1];if(f.length){if(null!=n){var a=l-n;a&&(o={action:e,location:r,retry:function(){g(-1*a)}},g(a))}}else m(e)}}));var a=Q.Pop,s=i(),l=s[0],u=s[1],c=te(),f=te();function d(e){return"string"===typeof e?e:re(e)}function h(e,t){return void 0===t&&(t=null),$(y({pathname:u.pathname,hash:"",search:""},"string"===typeof e?ie(e):e,{state:t,key:ne()}))}function p(e,t){return[{usr:e.state,key:e.key,idx:t},d(e)]}function v(e,t,n){return!f.length||(f.call({action:e,location:t,retry:n}),!1)}function m(e){a=e;var t=i();l=t[0],u=t[1],c.call({action:a,location:u})}function g(e){r.go(e)}null==l&&(l=0,r.replaceState(y({},r.state,{idx:l}),""));var b={get action(){return a},get location(){return u},createHref:d,push:function e(t,i){var o=Q.Push,a=h(t,i);if(v(o,a,(function(){e(t,i)}))){var s=p(a,l+1),u=s[0],c=s[1];try{r.pushState(u,"",c)}catch(f){n.location.assign(c)}m(o)}},replace:function e(t,n){var i=Q.Replace,o=h(t,n);if(v(i,o,(function(){e(t,n)}))){var a=p(o,l),s=a[0],u=a[1];r.replaceState(s,"",u),m(i)}},go:g,back:function(){g(-1)},forward:function(){g(1)},listen:function(e){return c.push(e)},block:function(e){var t=f.push(e);return 1===f.length&&n.addEventListener(X,ee),function(){t(),f.length||n.removeEventListener(X,ee)}}};return b}({window:r}));var o=i.current,a=v((0,l.useState)({action:o.action,location:o.location}),2),s=a[0],u=a[1];return(0,l.useLayoutEffect)((function(){return o.listen(u)}),[o]),(0,l.createElement)(Pe,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o})}var ze=(0,l.forwardRef)((function(e,t){var n=e.onClick,r=e.reloadDocument,i=e.replace,o=void 0!==i&&i,a=e.state,s=e.target,u=e.to,c=Re(e,Ae),f=we(u),d=function(e,t){var n=void 0===t?{}:t,r=n.target,i=n.replace,o=n.state,a=Se(),s=Ce(),u=Te(e);return(0,l.useCallback)((function(t){if(0===t.button&&(!r||"_self"===r)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t)){t.preventDefault();var n=!!i||re(s)===re(u);a(e,{replace:n,state:o})}}),[s,a,u,i,o,r,e])}(u,{replace:o,state:a,target:s});return(0,l.createElement)("a",Le({},c,{href:f,onClick:function(e){n&&n(e),e.defaultPrevented||r||d(e)},ref:t,target:s}))}));var Be=(0,l.forwardRef)((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.caseSensitive,o=void 0!==i&&i,a=e.className,s=void 0===a?"":a,u=e.end,c=void 0!==u&&u,f=e.style,d=e.to,h=e.children,p=Re(e,Ie),v=Ce(),m=Te(d),g=v.pathname,y=m.pathname;o||(g=g.toLowerCase(),y=y.toLowerCase());var b,_=g===y||!c&&g.startsWith(y)&&"/"===g.charAt(y.length),x=_?r:void 0;b="function"===typeof s?s({isActive:_}):[s,_?"active":null].filter(Boolean).join(" ");var w="function"===typeof f?f({isActive:_}):f;return(0,l.createElement)(ze,Le({},p,{"aria-current":x,className:b,ref:t,style:w,to:d}),"function"===typeof h?h({isActive:_}):h)}));var Ue,Ve=JSON.parse('{"Xh":"/shlink-web-client/feature/multi-segment-slugs"}');function He(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?We(Object(n),!0).forEach((function(t){He(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ye=".",qe="function",Ge="string",Ke="__global__",Qe="Provider",$e=0,Xe=Array.prototype.slice,Je=function(e,t){var n=e[t];if(void 0===n&&Ue.config.strict)throw new Error("Bottle was unable to resolve a service. `"+t+"` is undefined.");return n},et=function(e){var t;return this.nested[e]||(t=Ue.pop(),this.nested[e]=t,this.factory(e,(function(){return t.container}))),this.nested[e]},tt=function(e){return e.split(Ye).reduce(Je,this)},nt=function(e,t){return t(e)},rt=function(e,t){return(e[t]||[]).concat(e.__global__||[])},it=function(e,t){var n,r,i,o,a;return this.id,i=this.container,o=this.decorators,a=this.middlewares,n=e+Qe,(r=Object.create(null))[n]={configurable:!0,enumerable:!0,get:function(){var e=new t;return delete i[n],i[n]=e,e}},r[e]={configurable:!0,enumerable:!0,get:function(){var t,r=i[n];return r&&(t=rt(o,e).reduce(nt,r.$get(i)),delete i[n],delete i[e]),void 0===t?t:function(e,t,n,r){var i={configurable:!0,enumerable:!0};return e.length?i.get=function(){var t=0,r=function(i){if(i)throw i;e[t]&&e[t++](n,r)};return r(),n}:(i.value=n,i.writable=!0),Object.defineProperty(r,t,i),r[t]}(rt(a,e),e,t,i)}},Object.defineProperties(i,r),this},ot=function(e,t){var n,r;return n=e.split(Ye),this.providerMap[e]&&1===n.length&&!this.container[e+Qe]?console.error(e+" provider already instantiated."):(this.originalProviders[e]=t,this.providerMap[e]=!0,r=n.shift(),n.length?(et.call(this,r).provider(n.join(Ye),t),this):it.call(this,r,t))},at=function(e,t){return ot.call(this,e,(function(){this.$get=t}))},st=function(e,t,n){var r=arguments.length>3?Xe.call(arguments,3):[],i=this;return at.call(this,e,(function(){var e=t,o=r.map(tt,i.container);return n?new(t.bind.apply(t,[null].concat(o))):e.apply(null,o)}))},lt=function(e,t){Object.defineProperty(this,e,{configurable:!0,enumerable:!0,value:t,writable:!0})},ut=function(e,t){var n=e[t];return n||lt.call(e,t,n={}),n},ct=function(e,t){Object.defineProperty(this,e,{configurable:!1,enumerable:!0,value:t,writable:!1})},ft=function(e,t){var n,r;return typeof e===qe&&(t=e,e=Ke),r=(n=e.split(Ye)).shift(),n.length?et.call(this,r).decorator(n.join(Ye),t):(this.decorators[r]||(this.decorators[r]=[]),this.decorators[r].push(t)),this},dt=function(e){return!/^\$(?:decorator|register|list)$|Provider$/.test(e)},ht=function(e){return Object.keys(e||this.container||{}).filter(dt)},pt={},vt=function(e){var t=void 0===e.$value?e:e.$value;return this[e.$type||"service"].apply(this,[e.$name,t].concat(e.$inject||[]))},mt=function(e){delete this.providerMap[e],delete this.container[e],delete this.container[e+Qe]};(Ue=function e(t){if(!(this instanceof e))return e.pop(t);this.id=$e++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:ft.bind(this),$register:vt.bind(this),$list:ht.bind(this)}}).prototype={constant:function(e,t){var n=e.split(Ye);return e=n.pop(),ct.call(n.reduce(ut,this.container),e,t),this},decorator:ft,defer:function(e){return this.deferred.push(e),this},digest:function(e){return(e||[]).map(tt,this.container)},factory:at,instanceFactory:function(e,t){return at.call(this,e,(function(e){return{instance:t.bind(t,e)}}))},list:ht,middleware:function(e,t){var n,r;return typeof e===qe&&(t=e,e=Ke),r=(n=e.split(Ye)).shift(),n.length?et.call(this,r).middleware(n.join(Ye),t):(this.middlewares[r]||(this.middlewares[r]=[]),this.middlewares[r].push(t)),this},provider:ot,resetProviders:function(e){var t=this.originalProviders,n=Array.isArray(e);Object.keys(this.originalProviders).forEach((function(r){if(!n||-1!==e.indexOf(r)){var i=r.split(Ye);i.length>1&&i.forEach(mt,et.call(this,i[0])),mt.call(this,r),this.provider(r,t[r])}}),this)},register:vt,resolve:function(e){return this.deferred.forEach((function(t){t(e)})),this},service:function(e,t){return st.apply(this,[e,t,!0].concat(Xe.call(arguments,2)))},serviceFactory:function(e,t){return st.apply(this,[e,t,!1].concat(Xe.call(arguments,2)))},value:function(e,t){var n;return n=e.split(Ye),e=n.pop(),lt.call(n.reduce(ut,this.container),e,t),this}},Ue.pop=function(e){var t;return typeof e===Ge?((t=pt[e])||(pt[e]=t=new Ue,t.constant("BOTTLE_NAME",e)),t):new Ue},Ue.clear=function(e){typeof e===Ge?delete pt[e]:pt={}},Ue.list=ht,Ue.config={strict:!1};var gt=Ue;function yt(e){return null!=e&&"object"===typeof e&&!0===e["@@functional/placeholder"]}function bt(e){return function t(n){return 0===arguments.length||yt(n)?t:e.apply(this,arguments)}}function _t(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return yt(n)?t:bt((function(t){return e(n,t)}));default:return yt(n)&&yt(r)?t:yt(n)?bt((function(t){return e(t,r)})):yt(r)?bt((function(t){return e(n,t)})):e(n,r)}}}var xt=_t((function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n})),wt=xt,kt=Number.isInteger||function(e){return e<<0===e};function Ct(e){return"[object String]"===Object.prototype.toString.call(e)}var St=_t((function(e,t){var n=e<0?t.length+e:e;return Ct(t)?t.charAt(n):t[n]})),Et=St,Tt=_t((function(e,t){return e.map((function(e){for(var n,r=t,i=0;i<e.length;){if(null==r)return;n=e[i],r=kt(n)?Et(n,r):r[n],i+=1}return r}))})),Mt=Tt,Ot=_t((function(e,t){return Mt([e],t)[0]})),jt=_t((function(e,t){return Ot([e],t)})),Pt=jt,Nt=_t((function(e,t){for(var n={},r={},i=0,o=e.length;i<o;)r[e[i]]=1,i+=1;for(var a in t)r.hasOwnProperty(a)||(n[a]=t[a]);return n})),Dt=Nt,Lt=function(e){return!(null===e||void 0===e||!e.url)&&!(null===e||void 0===e||!e.apiKey)},Rt=function(e){return!(null===e||void 0===e||!e.id)},At=function(e){return!(null===e||void 0===e||!e.version)},It=function(e){return Rt(e)?e.id:""},Ft=function(e){return Dt(["id","autoConnect"],e)};function zt(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Bt(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){zt(o,r,i,a,s,"next",e)}function s(e){zt(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Ut(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vt(e,t,n){return t&&Ut(e.prototype,t),n&&Ut(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wt(e,t){if(null==e)return{};var n,r,i=b(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Zt=n(7757),Yt=n.n(Zt);var qt=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function Gt(e){return null!=e&&"function"===typeof e["@@transducer/step"]}function Kt(e,t,n){return function(){if(0===arguments.length)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!qt(i)){for(var o=0;o<e.length;){if("function"===typeof i[e[o]])return i[e[o]].apply(i,r);o+=1}if(Gt(i)){var a=t.apply(null,r);return a(i)}}return n.apply(this,arguments)}}function Qt(e){return"[object Object]"===Object.prototype.toString.call(e)}var $t=bt((function(e){return!!qt(e)||!!e&&("object"===typeof e&&(!Ct(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})),Xt=$t,Jt=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function en(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,i){return t.apply(this,arguments)};case 5:return function(e,n,r,i,o){return t.apply(this,arguments)};case 6:return function(e,n,r,i,o,a){return t.apply(this,arguments)};case 7:return function(e,n,r,i,o,a,s){return t.apply(this,arguments)};case 8:return function(e,n,r,i,o,a,s,l){return t.apply(this,arguments)};case 9:return function(e,n,r,i,o,a,s,l,u){return t.apply(this,arguments)};case 10:return function(e,n,r,i,o,a,s,l,u,c){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}var tn=_t((function(e,t){return en(e.length,(function(){return e.apply(t,arguments)}))})),nn=tn;function rn(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function on(e,t,n,r){return e["@@transducer/result"](n[r](nn(e["@@transducer/step"],e),t))}var an="undefined"!==typeof Symbol?Symbol.iterator:"@@iterator";function sn(e,t,n){if("function"===typeof e&&(e=function(e){return new Jt(e)}(e)),Xt(n))return function(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(e,t,n);if("function"===typeof n["fantasy-land/reduce"])return on(e,t,n,"fantasy-land/reduce");if(null!=n[an])return rn(e,t,n[an]());if("function"===typeof n.next)return rn(e,t,n);if("function"===typeof n.reduce)return on(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}var ln=function(){return this.xf["@@transducer/init"]()},un=function(e){return this.xf["@@transducer/result"](e)},cn=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=ln,e.prototype["@@transducer/result"]=un,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}(),fn=_t((function(e,t){return new cn(e,t)})),dn=fn;function hn(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var pn=Object.prototype.toString,vn=function(){return"[object Arguments]"===pn.call(arguments)?function(e){return"[object Arguments]"===pn.call(e)}:function(e){return hn("callee",e)}}(),mn=vn,gn=!{toString:null}.propertyIsEnumerable("toString"),yn=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],bn=function(){return arguments.propertyIsEnumerable("length")}(),_n=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},xn="function"!==typeof Object.keys||bn?bt((function(e){if(Object(e)!==e)return[];var t,n,r=[],i=bn&&mn(e);for(t in e)!hn(t,e)||i&&"length"===t||(r[r.length]=t);if(gn)for(n=yn.length-1;n>=0;)hn(t=yn[n],e)&&!_n(r,t)&&(r[r.length]=t),n-=1;return r})):bt((function(e){return Object(e)!==e?[]:Object.keys(e)})),wn=xn,kn=_t(Kt(["filter"],dn,(function(e,t){return Qt(t)?sn((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},wn(t)):function(e,t){for(var n=0,r=t.length,i=[];n<r;)e(t[n])&&(i[i.length]=t[n]),n+=1;return i}(e,t)}))),Cn=kn,Sn=_t((function(e,t){return Cn(function(e){return function(){return!e.apply(this,arguments)}}(e),t)})),En=Sn,Tn=bt((function(e){return null==e})),Mn=Tn,On=bt((function(e){return null!=e&&"function"===typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"===typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"===typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"===typeof e.constructor.empty?e.constructor.empty():qt(e)?[]:Ct(e)?"":Qt(e)?{}:mn(e)?function(){return arguments}():void 0})),jn=On;function Pn(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Nn(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}var Dn="function"===typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t},Ln=bt((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Rn(e,t,n,r){var i=Pn(e);function o(e,t){return An(e,t,n.slice(),r.slice())}return!Nn((function(e,t){return!Nn(o,t,e)}),Pn(t),i)}function An(e,t,n,r){if(Dn(e,t))return!0;var i=Ln(e);if(i!==Ln(t))return!1;if(null==e||null==t)return!1;if("function"===typeof e["fantasy-land/equals"]||"function"===typeof t["fantasy-land/equals"])return"function"===typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"===typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"===typeof e.equals||"function"===typeof t.equals)return"function"===typeof e.equals&&e.equals(t)&&"function"===typeof t.equals&&t.equals(e);switch(i){case"Arguments":case"Array":case"Object":if("function"===typeof e.constructor&&"Promise"===function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!==typeof t||!Dn(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Dn(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var o=n.length-1;o>=0;){if(n[o]===e)return r[o]===t;o-=1}switch(i){case"Map":return e.size===t.size&&Rn(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&Rn(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=wn(e);if(a.length!==wn(t).length)return!1;var s=n.concat([e]),l=r.concat([t]);for(o=a.length-1;o>=0;){var u=a[o];if(!hn(u,t)||!An(t[u],e[u],s,l))return!1;o-=1}return!0}var In=_t((function(e,t){return An(e,t,[],[])})),Fn=In,zn=bt((function(e){return null!=e&&Fn(e,jn(e))})),Bn=zn,Un=n(8663),Vn=n.n(Un),Hn=function(e){return Vn().parse(e,{ignoreQueryPrefix:!0})},Wn=function(e){return Vn().stringify(e,{arrayFormat:"brackets"})},Zn=function(e,t,n){return e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC"},Yn=function(e,t){var n=t.field,r=t.dir;return n&&r?e.sort((function(e,t){var i="ASC"===r?1:-1,o="ASC"===r?-1:1;return e[n]>t[n]?i:o})):e},qn=function(e){return e.dir?"".concat(e.field,"-").concat(e.dir):void 0},Gn=["orderBy"],Kn=function(e){return e?"".concat(e,"/rest/v2"):""},Qn=En(Mn),$n=function(e){var t=e.orderBy,n=void 0===t?{}:t;return Ze(Ze({},Wt(e,Gn)),{},{orderBy:qn(n)})},Xn=Vt((function e(t,n,r){var i=this;Ht(this,e),this.axios=t,this.baseUrl=n,this.apiKey=r,this.listShortUrls=Bt(Yt().mark((function e(){var t,n=arguments;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.abrupt("return",i.performRequest("/short-urls","GET",$n(t)).then((function(e){return e.data.shortUrls})));case 2:case"end":return e.stop()}}),e)}))),this.createShortUrl=function(){var e=Bt(Yt().mark((function e(t){var n;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=En((function(e){return Bn(e)||Mn(e)}),t),e.abrupt("return",i.performRequest("/short-urls","POST",{},n).then((function(e){return e.data})));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.getShortUrlVisits=function(){var e=Bt(Yt().mark((function e(t,n){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/short-urls/".concat(t,"/visits"),"GET",n).then((function(e){return e.data.visits})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.getTagVisits=function(){var e=Bt(Yt().mark((function e(t,n){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/tags/".concat(t,"/visits"),"GET",n).then((function(e){return e.data.visits})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.getDomainVisits=function(){var e=Bt(Yt().mark((function e(t,n){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/domains/".concat(t,"/visits"),"GET",n).then((function(e){return e.data.visits})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.getOrphanVisits=function(){var e=Bt(Yt().mark((function e(t){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/visits/orphan","GET",t).then((function(e){return e.data.visits})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.getNonOrphanVisits=function(){var e=Bt(Yt().mark((function e(t){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/visits/non-orphan","GET",t).then((function(e){return e.data.visits})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.getVisitsOverview=Bt(Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/visits","GET").then((function(e){return e.data.visits})));case 1:case"end":return e.stop()}}),e)}))),this.getShortUrl=function(){var e=Bt(Yt().mark((function e(t,n){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/short-urls/".concat(t),"GET",{domain:n}).then((function(e){return e.data})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.deleteShortUrl=function(){var e=Bt(Yt().mark((function e(t,n){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/short-urls/".concat(t),"DELETE",{domain:n}).then((function(){})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.updateShortUrl=function(){var e=Bt(Yt().mark((function e(t,n,r){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/short-urls/".concat(t),"PATCH",{domain:n},r).then((function(e){return e.data})));case 1:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),this.listTags=Bt(Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/tags","GET",{withStats:"true"}).then((function(e){return e.data.tags})).then((function(e){return{tags:e.data,stats:e.stats}})));case 1:case"end":return e.stop()}}),e)}))),this.deleteTags=function(){var e=Bt(Yt().mark((function e(t){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/tags","DELETE",{tags:t}).then((function(){return{tags:t}})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.editTag=function(){var e=Bt(Yt().mark((function e(t,n){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/tags","PUT",{},{oldName:t,newName:n}).then((function(){return{oldName:t,newName:n}})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.health=Bt(Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/health","GET").then((function(e){return e.data})));case 1:case"end":return e.stop()}}),e)}))),this.mercureInfo=Bt(Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/mercure-info","GET").then((function(e){return e.data})));case 1:case"end":return e.stop()}}),e)}))),this.listDomains=Bt(Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/domains","GET").then((function(e){return e.data.domains})));case 1:case"end":return e.stop()}}),e)}))),this.editDomainRedirects=function(){var e=Bt(Yt().mark((function e(t){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.performRequest("/domains/redirects","PATCH",{},t).then((function(e){return e.data})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.performRequest=function(){var e=Bt(Yt().mark((function e(t){var n,r,o,a=arguments;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:"GET",r=a.length>2&&void 0!==a[2]?a[2]:{},o=a.length>3&&void 0!==a[3]?a[3]:{},e.abrupt("return",i.axios({method:n,url:"".concat(Kn(i.baseUrl)).concat(t),headers:{"X-Api-Key":i.apiKey},params:Qn(r),data:o,paramsSerializer:Wn}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})),Jn={},er=function(e){return function(t){var n=function(e){return"function"===typeof e}(t)?Pt("selectedServer",t()):t;if(!Lt(n))throw new Error("There's no selected server or it is not found");var r=n.url,i=n.apiKey,o="".concat(r,"_").concat(i);return Jn[o]||(Jn[o]=new Xn(e,r,i)),Jn[o]}},tr=function(e){e.serviceFactory("buildShlinkApiClient",er,"axios")},nr=n(8025),rr=n.n(nr),ir=n(2834),or=function(e){var t=e.children,n=Ce();return(0,l.useEffect)((function(){scrollTo(0,0)}),[n]),(0,ir.jsx)(ir.Fragment,{children:t})},ar={prefix:"fas",iconName:"arrow-down-wide-short",icon:[576,512,["sort-amount-asc","sort-amount-down"],"f160","M416 288h-95.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H416c17.67 0 32-14.33 32-32S433.7 288 416 288zM544 32h-223.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H544c17.67 0 32-14.33 32-32S561.7 32 544 32zM352 416h-32c-17.67 0-32 14.33-32 32s14.33 32 32 32h32c17.67 0 31.1-14.33 31.1-32S369.7 416 352 416zM480 160h-159.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H480c17.67 0 32-14.33 32-32S497.7 160 480 160zM192.4 330.7L160 366.1V64.03C160 46.33 145.7 32 128 32S96 46.33 96 64.03v302L63.6 330.7c-6.312-6.883-14.94-10.38-23.61-10.38c-7.719 0-15.47 2.781-21.61 8.414c-13.03 11.95-13.9 32.22-1.969 45.27l87.1 96.09c12.12 13.26 35.06 13.26 47.19 0l87.1-96.09c11.94-13.05 11.06-33.31-1.969-45.27C224.6 316.8 204.4 317.7 192.4 330.7z"]},sr=ar,lr={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M447.1 256C447.1 273.7 433.7 288 416 288H109.3l105.4 105.4c12.5 12.5 12.5 32.75 0 45.25C208.4 444.9 200.2 448 192 448s-16.38-3.125-22.62-9.375l-160-160c-12.5-12.5-12.5-32.75 0-45.25l160-160c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L109.3 224H416C433.7 224 447.1 238.3 447.1 256z"]},ur={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M480 256c0 123.4-100.5 223.9-223.9 223.9c-48.86 0-95.19-15.58-134.2-44.86c-14.14-10.59-17-30.66-6.391-44.81c10.61-14.09 30.69-16.97 44.8-6.375c27.84 20.91 61 31.94 95.89 31.94C344.3 415.8 416 344.1 416 256s-71.67-159.8-159.8-159.8C205.9 96.22 158.6 120.3 128.6 160H192c17.67 0 32 14.31 32 32S209.7 224 192 224H48c-17.67 0-32-14.31-32-32V48c0-17.69 14.33-32 32-32s32 14.31 32 32v70.23C122.1 64.58 186.1 32.11 256.1 32.11C379.5 32.11 480 132.6 480 256z"]},cr=ur,fr={prefix:"fas",iconName:"arrow-up-wide-short",icon:[576,512,["sort-amount-up"],"f161","M416 288h-95.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H416c17.67 0 32-14.33 32-32S433.7 288 416 288zM352 416h-32c-17.67 0-32 14.33-32 32s14.33 32 32 32h32c17.67 0 31.1-14.33 31.1-32S369.7 416 352 416zM480 160h-159.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H480c17.67 0 32-14.33 32-32S497.7 160 480 160zM544 32h-223.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H544c17.67 0 32-14.33 32-32S561.7 32 544 32zM151.6 41.95c-12.12-13.26-35.06-13.26-47.19 0l-87.1 96.09C4.475 151.1 5.35 171.4 18.38 183.3c6.141 5.629 13.89 8.414 21.61 8.414c8.672 0 17.3-3.504 23.61-10.39L96 145.9v302C96 465.7 110.3 480 128 480s32-14.33 32-32.03V145.9L192.4 181.3C204.4 194.3 224.6 195.3 237.6 183.3c13.03-11.95 13.9-32.22 1.969-45.27L151.6 41.95z"]},dr=fr,hr={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM99.5 144.8C77.15 176.1 64 214.5 64 256C64 362 149.1 448 256 448C297.5 448 335.9 434.9 367.2 412.5L99.5 144.8zM448 256C448 149.1 362 64 256 64C214.5 64 176.1 77.15 144.8 99.5L412.5 367.2C434.9 335.9 448 297.5 448 256V256z"]},pr={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.33 14.33 64 32 64H416C433.7 64 448 78.33 448 96C448 113.7 433.7 128 416 128H32C14.33 128 0 113.7 0 96zM0 256C0 238.3 14.33 224 32 224H416C433.7 224 448 238.3 448 256C448 273.7 433.7 288 416 288H32C14.33 288 0 273.7 0 256zM416 448H32C14.33 448 0 433.7 0 416C0 398.3 14.33 384 32 384H416C433.7 384 448 398.3 448 416C448 433.7 433.7 448 416 448z"]},vr={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M160 32V64H288V32C288 14.33 302.3 0 320 0C337.7 0 352 14.33 352 32V64H400C426.5 64 448 85.49 448 112V160H0V112C0 85.49 21.49 64 48 64H96V32C96 14.33 110.3 0 128 0C145.7 0 160 14.33 160 32zM0 192H448V464C448 490.5 426.5 512 400 512H48C21.49 512 0 490.5 0 464V192zM64 304C64 312.8 71.16 320 80 320H112C120.8 320 128 312.8 128 304V272C128 263.2 120.8 256 112 256H80C71.16 256 64 263.2 64 272V304zM192 304C192 312.8 199.2 320 208 320H240C248.8 320 256 312.8 256 304V272C256 263.2 248.8 256 240 256H208C199.2 256 192 263.2 192 272V304zM336 256C327.2 256 320 263.2 320 272V304C320 312.8 327.2 320 336 320H368C376.8 320 384 312.8 384 304V272C384 263.2 376.8 256 368 256H336zM64 432C64 440.8 71.16 448 80 448H112C120.8 448 128 440.8 128 432V400C128 391.2 120.8 384 112 384H80C71.16 384 64 391.2 64 400V432zM208 384C199.2 384 192 391.2 192 400V432C192 440.8 199.2 448 208 448H240C248.8 448 256 440.8 256 432V400C256 391.2 248.8 384 240 384H208zM320 432C320 440.8 327.2 448 336 448H368C376.8 448 384 440.8 384 432V400C384 391.2 376.8 384 368 384H336C327.2 384 320 391.2 320 400V432z"]},mr=vr,gr={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M310.6 246.6l-127.1 128C176.4 380.9 168.2 384 160 384s-16.38-3.125-22.63-9.375l-127.1-128C.2244 237.5-2.516 223.7 2.438 211.8S19.07 192 32 192h255.1c12.94 0 24.62 7.781 29.58 19.75S319.8 237.5 310.6 246.6z"]},yr={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M9.39 265.4l127.1-128C143.6 131.1 151.8 128 160 128s16.38 3.125 22.63 9.375l127.1 128c9.156 9.156 11.9 22.91 6.943 34.88S300.9 320 287.1 320H32.01c-12.94 0-24.62-7.781-29.58-19.75S.2333 274.5 9.39 265.4z"]},br={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 16.58C304 7.555 310.1 0 320 0C443.7 0 544 100.3 544 224C544 233 536.4 240 527.4 240H304V16.58zM32 272C32 150.7 122.1 50.34 238.1 34.25C248.2 32.99 256 40.36 256 49.61V288L412.5 444.5C419.2 451.2 418.7 462.2 411 467.7C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zM558.4 288C567.6 288 575 295.8 573.8 305C566.1 360.9 539.1 410.6 499.9 447.3C493.9 452.1 484.5 452.5 478.7 446.7L320 288H558.4z"]},_r={prefix:"fas",iconName:"check",icon:[448,512,[10004,10003],"f00c","M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z"]},xr={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"]},wr={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"]},kr={prefix:"fas",iconName:"circle-dot",icon:[512,512,[128280,"dot-circle"],"f192","M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 352C309 352 352 309 352 256C352 202.1 309 160 256 160C202.1 160 160 202.1 160 256C160 309 202.1 352 256 352z"]},Cr=kr,Sr={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 128c17.67 0 32 14.33 32 32c0 17.67-14.33 32-32 32S224 177.7 224 160C224 142.3 238.3 128 256 128zM296 384h-80C202.8 384 192 373.3 192 360s10.75-24 24-24h16v-64H224c-13.25 0-24-10.75-24-24S210.8 224 224 224h32c13.25 0 24 10.75 24 24v88h16c13.25 0 24 10.75 24 24S309.3 384 296 384z"]},Er=Sr,Tr={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM168 232C154.7 232 144 242.7 144 256C144 269.3 154.7 280 168 280H344C357.3 280 368 269.3 368 256C368 242.7 357.3 232 344 232H168z"]},Mr=Tr,Or={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.15C227.7 49.08 218.1 66.9 201.1 71.94C121.8 95.55 64 169.1 64 255.1C64 362 149.1 447.1 256 447.1C362 447.1 448 362 448 255.1C448 169.1 390.2 95.55 310.9 71.94C293.9 66.9 284.3 49.08 289.3 32.15C294.4 15.21 312.2 5.562 329.1 10.6C434.9 42.07 512 139.1 512 255.1C512 397.4 397.4 511.1 256 511.1C114.6 511.1 0 397.4 0 255.1C0 139.1 77.15 42.07 182.9 10.6C199.8 5.562 217.6 15.21 222.7 32.15V32.15z"]},jr={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360C94.93 360 120 385.1 120 416C120 446.9 94.93 472 64 472C33.07 472 8 446.9 8 416C8 385.1 33.07 360 64 360zM64 200C94.93 200 120 225.1 120 256C120 286.9 94.93 312 64 312C33.07 312 8 286.9 8 256C8 225.1 33.07 200 64 200zM64 152C33.07 152 8 126.9 8 96C8 65.07 33.07 40 64 40C94.93 40 120 65.07 120 96C120 126.9 94.93 152 64 152z"]},Pr=jr,Nr={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M279.6 160.4C282.4 160.1 285.2 160 288 160C341 160 384 202.1 384 256C384 309 341 352 288 352C234.1 352 192 309 192 256C192 253.2 192.1 250.4 192.4 247.6C201.7 252.1 212.5 256 224 256C259.3 256 288 227.3 288 192C288 180.5 284.1 169.7 279.6 160.4zM480.6 112.6C527.4 156 558.7 207.1 573.5 243.7C576.8 251.6 576.8 260.4 573.5 268.3C558.7 304 527.4 355.1 480.6 399.4C433.5 443.2 368.8 480 288 480C207.2 480 142.5 443.2 95.42 399.4C48.62 355.1 17.34 304 2.461 268.3C-.8205 260.4-.8205 251.6 2.461 243.7C17.34 207.1 48.62 156 95.42 112.6C142.5 68.84 207.2 32 288 32C368.8 32 433.5 68.84 480.6 112.6V112.6zM288 112C208.5 112 144 176.5 144 256C144 335.5 208.5 400 288 400C367.5 400 432 335.5 432 256C432 176.5 367.5 112 288 112z"]},Dr={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M384 128h-128V0L384 128zM256 160H384v304c0 26.51-21.49 48-48 48h-288C21.49 512 0 490.5 0 464v-416C0 21.49 21.49 0 48 0H224l.0039 128C224 145.7 238.3 160 256 160zM255 295L216 334.1V232c0-13.25-10.75-24-24-24S168 218.8 168 232v102.1L128.1 295C124.3 290.3 118.2 288 112 288S99.72 290.3 95.03 295c-9.375 9.375-9.375 24.56 0 33.94l80 80c9.375 9.375 24.56 9.375 33.94 0l80-80c9.375-9.375 9.375-24.56 0-33.94S264.4 285.7 255 295z"]},Lr=Dr,Rr={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M256 0v128h128L256 0zM224 128L224 0H48C21.49 0 0 21.49 0 48v416C0 490.5 21.49 512 48 512h288c26.51 0 48-21.49 48-48V160h-127.1C238.3 160 224 145.7 224 128zM288.1 344.1C284.3 349.7 278.2 352 272 352s-12.28-2.344-16.97-7.031L216 305.9V408c0 13.25-10.75 24-24 24s-24-10.75-24-24V305.9l-39.03 39.03c-9.375 9.375-24.56 9.375-33.94 0s-9.375-24.56 0-33.94l80-80c9.375-9.375 24.56-9.375 33.94 0l80 80C298.3 320.4 298.3 335.6 288.1 344.1z"]},Ar=Rr,Ir={prefix:"fas",iconName:"file-csv",icon:[384,512,[],"f6dd","M256 0v128h128L256 0zM224 128L224 0H48C21.49 0 0 21.49 0 48v416C0 490.5 21.49 512 48 512h288c26.51 0 48-21.49 48-48V160h-127.1C238.3 160 224 145.7 224 128zM128 280C128 284.4 124.4 288 120 288H112C103.1 288 96 295.1 96 304v32C96 344.9 103.1 352 112 352h8C124.4 352 128 355.6 128 360v16C128 380.4 124.4 384 120 384H112C85.5 384 64 362.5 64 336v-32C64 277.5 85.5 256 112 256h8C124.4 256 128 259.6 128 264V280zM172.3 384H160c-4.375 0-8-3.625-8-8v-16C152 355.6 155.6 352 160 352h12.25c6 0 10.38-3.5 10.38-6.625c0-1.25-.75-2.625-2.125-3.875l-21.88-18.75C150.3 315.5 145.4 305.3 145.4 294.6C145.4 273.4 164.4 256 187.8 256H200c4.375 0 8 3.625 8 8v16C208 284.4 204.4 288 200 288H187.8c-6 0-10.38 3.5-10.38 6.625c0 1.25 .75 2.625 2.125 3.875l21.88 18.75c8.375 7.25 13.25 17.5 13.25 28.12C214.6 366.6 195.6 384 172.3 384zM288 284.8V264C288 259.6 291.6 256 296 256h16C316.4 256 320 259.6 320 264v20.75c0 35.5-12.88 69-36.25 94.13C280.8 382.1 276.5 384 272 384s-8.75-1.875-11.75-5.125C236.9 353.8 224 320.3 224 284.8V264C224 259.6 227.6 256 232 256h16C252.4 256 256 259.6 256 264v20.75c0 20.38 5.75 40.25 16 56.88C282.3 325 288 305.1 288 284.8z"]},Fr={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M286.3 155.1C287.4 161.9 288 168.9 288 175.1C288 183.1 287.4 190.1 286.3 196.9L308.5 216.7C315.5 223 318.4 232.1 314.7 241.7C312.4 246.1 309.9 252.2 307.1 257.2L304 262.6C300.1 267.6 297.7 272.4 294.2 277.1C288.5 284.7 278.5 287.2 269.5 284.2L241.2 274.9C230.5 283.8 218.3 290.9 205 295.9L198.1 324.9C197 334.2 189.8 341.6 180.4 342.8C173.7 343.6 166.9 344 160 344C153.1 344 146.3 343.6 139.6 342.8C130.2 341.6 122.1 334.2 121 324.9L114.1 295.9C101.7 290.9 89.5 283.8 78.75 274.9L50.53 284.2C41.54 287.2 31.52 284.7 25.82 277.1C22.28 272.4 18.98 267.5 15.94 262.5L12.92 257.2C10.13 252.2 7.592 247 5.324 241.7C1.62 232.1 4.458 223 11.52 216.7L33.7 196.9C32.58 190.1 31.1 183.1 31.1 175.1C31.1 168.9 32.58 161.9 33.7 155.1L11.52 135.3C4.458 128.1 1.62 119 5.324 110.3C7.592 104.1 10.13 99.79 12.91 94.76L15.95 89.51C18.98 84.46 22.28 79.58 25.82 74.89C31.52 67.34 41.54 64.83 50.53 67.79L78.75 77.09C89.5 68.25 101.7 61.13 114.1 56.15L121 27.08C122.1 17.8 130.2 10.37 139.6 9.231C146.3 8.418 153.1 8 160 8C166.9 8 173.7 8.418 180.4 9.23C189.8 10.37 197 17.8 198.1 27.08L205 56.15C218.3 61.13 230.5 68.25 241.2 77.09L269.5 67.79C278.5 64.83 288.5 67.34 294.2 74.89C297.7 79.56 300.1 84.42 304 89.44L307.1 94.83C309.9 99.84 312.4 105 314.7 110.3C318.4 119 315.5 128.1 308.5 135.3L286.3 155.1zM160 127.1C133.5 127.1 112 149.5 112 175.1C112 202.5 133.5 223.1 160 223.1C186.5 223.1 208 202.5 208 175.1C208 149.5 186.5 127.1 160 127.1zM484.9 478.3C478.1 479.4 471.1 480 464 480C456.9 480 449.9 479.4 443.1 478.3L423.3 500.5C416.1 507.5 407 510.4 398.3 506.7C393 504.4 387.8 501.9 382.8 499.1L377.4 496C372.4 492.1 367.6 489.7 362.9 486.2C355.3 480.5 352.8 470.5 355.8 461.5L365.1 433.2C356.2 422.5 349.1 410.3 344.1 397L315.1 390.1C305.8 389 298.4 381.8 297.2 372.4C296.4 365.7 296 358.9 296 352C296 345.1 296.4 338.3 297.2 331.6C298.4 322.2 305.8 314.1 315.1 313L344.1 306.1C349.1 293.7 356.2 281.5 365.1 270.8L355.8 242.5C352.8 233.5 355.3 223.5 362.9 217.8C367.6 214.3 372.5 210.1 377.5 207.9L382.8 204.9C387.8 202.1 392.1 199.6 398.3 197.3C407 193.6 416.1 196.5 423.3 203.5L443.1 225.7C449.9 224.6 456.9 224 464 224C471.1 224 478.1 224.6 484.9 225.7L504.7 203.5C511 196.5 520.1 193.6 529.7 197.3C535 199.6 540.2 202.1 545.2 204.9L550.5 207.9C555.5 210.1 560.4 214.3 565.1 217.8C572.7 223.5 575.2 233.5 572.2 242.5L562.9 270.8C571.8 281.5 578.9 293.7 583.9 306.1L612.9 313C622.2 314.1 629.6 322.2 630.8 331.6C631.6 338.3 632 345.1 632 352C632 358.9 631.6 365.7 630.8 372.4C629.6 381.8 622.2 389 612.9 390.1L583.9 397C578.9 410.3 571.8 422.5 562.9 433.2L572.2 461.5C575.2 470.5 572.7 480.5 565.1 486.2C560.4 489.7 555.6 492.1 550.6 496L545.2 499.1C540.2 501.9 534.1 504.4 529.7 506.7C520.1 510.4 511 507.5 504.7 500.5L484.9 478.3zM512 352C512 325.5 490.5 304 464 304C437.5 304 416 325.5 416 352C416 378.5 437.5 400 464 400C490.5 400 512 378.5 512 352z"]},zr=Fr,Br={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256C352 278.2 350.8 299.6 348.7 320H163.3C161.2 299.6 159.1 278.2 159.1 256C159.1 233.8 161.2 212.4 163.3 192H348.7C350.8 212.4 352 233.8 352 256zM503.9 192C509.2 212.5 512 233.9 512 256C512 278.1 509.2 299.5 503.9 320H380.8C382.9 299.4 384 277.1 384 256C384 234 382.9 212.6 380.8 192H503.9zM493.4 160H376.7C366.7 96.14 346.9 42.62 321.4 8.442C399.8 29.09 463.4 85.94 493.4 160zM344.3 160H167.7C173.8 123.6 183.2 91.38 194.7 65.35C205.2 41.74 216.9 24.61 228.2 13.81C239.4 3.178 248.7 0 256 0C263.3 0 272.6 3.178 283.8 13.81C295.1 24.61 306.8 41.74 317.3 65.35C328.8 91.38 338.2 123.6 344.3 160H344.3zM18.61 160C48.59 85.94 112.2 29.09 190.6 8.442C165.1 42.62 145.3 96.14 135.3 160H18.61zM131.2 192C129.1 212.6 127.1 234 127.1 256C127.1 277.1 129.1 299.4 131.2 320H8.065C2.8 299.5 0 278.1 0 256C0 233.9 2.8 212.5 8.065 192H131.2zM194.7 446.6C183.2 420.6 173.8 388.4 167.7 352H344.3C338.2 388.4 328.8 420.6 317.3 446.6C306.8 470.3 295.1 487.4 283.8 498.2C272.6 508.8 263.3 512 255.1 512C248.7 512 239.4 508.8 228.2 498.2C216.9 487.4 205.2 470.3 194.7 446.6H194.7zM190.6 503.6C112.2 482.9 48.59 426.1 18.61 352H135.3C145.3 415.9 165.1 469.4 190.6 503.6V503.6zM321.4 503.6C346.9 469.4 366.7 415.9 376.7 352H493.4C463.4 426.1 399.8 482.9 321.4 503.6V503.6z"]},Ur={prefix:"fas",iconName:"house",icon:[576,512,[63498,63500,127968,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5C575.8 273.5 560.8 287.6 543.8 287.6H511.8L512.5 447.7C512.5 450.5 512.3 453.1 512 455.8V472C512 494.1 494.1 512 472 512H456C454.9 512 453.8 511.1 452.7 511.9C451.3 511.1 449.9 512 448.5 512H392C369.9 512 352 494.1 352 472V384C352 366.3 337.7 352 320 352H256C238.3 352 224 366.3 224 384V472C224 494.1 206.1 512 184 512H128.1C126.6 512 125.1 511.9 123.6 511.8C122.4 511.9 121.2 512 120 512H104C81.91 512 64 494.1 64 472V360C64 359.1 64.03 358.1 64.09 357.2V287.6H32.05C14.02 287.6 0 273.5 0 255.5C0 246.5 3.004 238.5 10.01 231.5L266.4 8.016C273.4 1.002 281.4 0 288.4 0C295.4 0 303.4 2.004 309.5 7.014L564.8 231.5C572.8 238.5 576.9 246.5 575.8 255.5L575.8 255.5z"]},Vr=Ur,Hr={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M172.5 131.1C228.1 75.51 320.5 75.51 376.1 131.1C426.1 181.1 433.5 260.8 392.4 318.3L391.3 319.9C381 334.2 361 337.6 346.7 327.3C332.3 317 328.9 297 339.2 282.7L340.3 281.1C363.2 249 359.6 205.1 331.7 177.2C300.3 145.8 249.2 145.8 217.7 177.2L105.5 289.5C73.99 320.1 73.99 372 105.5 403.5C133.3 431.4 177.3 435 209.3 412.1L210.9 410.1C225.3 400.7 245.3 404 255.5 418.4C265.8 432.8 262.5 452.8 248.1 463.1L246.5 464.2C188.1 505.3 110.2 498.7 60.21 448.8C3.741 392.3 3.741 300.7 60.21 244.3L172.5 131.1zM467.5 380C411 436.5 319.5 436.5 263 380C213 330 206.5 251.2 247.6 193.7L248.7 192.1C258.1 177.8 278.1 174.4 293.3 184.7C307.7 194.1 311.1 214.1 300.8 229.3L299.7 230.9C276.8 262.1 280.4 306.9 308.3 334.8C339.7 366.2 390.8 366.2 422.3 334.8L534.5 222.5C566 191 566 139.1 534.5 108.5C506.7 80.63 462.7 76.99 430.7 99.9L429.1 101C414.7 111.3 394.7 107.1 384.5 93.58C374.2 79.2 377.5 59.21 391.9 48.94L393.5 47.82C451 6.731 529.8 13.25 579.8 63.24C636.3 119.7 636.3 211.3 579.8 267.7L467.5 380z"]},Wr={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M88 48C101.3 48 112 58.75 112 72V120C112 133.3 101.3 144 88 144H40C26.75 144 16 133.3 16 120V72C16 58.75 26.75 48 40 48H88zM480 64C497.7 64 512 78.33 512 96C512 113.7 497.7 128 480 128H192C174.3 128 160 113.7 160 96C160 78.33 174.3 64 192 64H480zM480 224C497.7 224 512 238.3 512 256C512 273.7 497.7 288 480 288H192C174.3 288 160 273.7 160 256C160 238.3 174.3 224 192 224H480zM480 384C497.7 384 512 398.3 512 416C512 433.7 497.7 448 480 448H192C174.3 448 160 433.7 160 416C160 398.3 174.3 384 192 384H480zM16 232C16 218.7 26.75 208 40 208H88C101.3 208 112 218.7 112 232V280C112 293.3 101.3 304 88 304H40C26.75 304 16 293.3 16 280V232zM88 368C101.3 368 112 378.7 112 392V440C112 453.3 101.3 464 88 464H40C26.75 464 16 453.3 16 440V392C16 378.7 26.75 368 40 368H88z"]},Zr={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M500.3 443.7l-119.7-119.7c27.22-40.41 40.65-90.9 33.46-144.7C401.8 87.79 326.8 13.32 235.2 1.723C99.01-15.51-15.51 99.01 1.724 235.2c11.6 91.64 86.08 166.7 177.6 178.9c53.8 7.189 104.3-6.236 144.7-33.46l119.7 119.7c15.62 15.62 40.95 15.62 56.57 0C515.9 484.7 515.9 459.3 500.3 443.7zM79.1 208c0-70.58 57.42-128 128-128s128 57.42 128 128c0 70.58-57.42 128-128 128S79.1 278.6 79.1 208z"]},Yr=Zr,qr={prefix:"fas",iconName:"map-location-dot",icon:[576,512,["map-marked-alt"],"f5a0","M408 120C408 174.6 334.9 271.9 302.8 311.1C295.1 321.6 280.9 321.6 273.2 311.1C241.1 271.9 168 174.6 168 120C168 53.73 221.7 0 288 0C354.3 0 408 53.73 408 120zM288 152C310.1 152 328 134.1 328 112C328 89.91 310.1 72 288 72C265.9 72 248 89.91 248 112C248 134.1 265.9 152 288 152zM425.6 179.8C426.1 178.6 426.6 177.4 427.1 176.1L543.1 129.7C558.9 123.4 576 135 576 152V422.8C576 432.6 570 441.4 560.9 445.1L416 503V200.4C419.5 193.5 422.7 186.7 425.6 179.8zM150.4 179.8C153.3 186.7 156.5 193.5 160 200.4V451.8L32.91 502.7C17.15 508.1 0 497.4 0 480.4V209.6C0 199.8 5.975 190.1 15.09 187.3L137.6 138.3C140 152.5 144.9 166.6 150.4 179.8H150.4zM327.8 331.1C341.7 314.6 363.5 286.3 384 255V504.3L192 449.4V255C212.5 286.3 234.3 314.6 248.2 331.1C268.7 357.6 307.3 357.6 327.8 331.1L327.8 331.1z"]},Gr=qr,Kr={prefix:"fas",iconName:"moon",icon:[512,512,[127769,9214],"f186","M32 256c0-123.8 100.3-224 223.8-224c11.36 0 29.7 1.668 40.9 3.746c9.616 1.777 11.75 14.63 3.279 19.44C245 86.5 211.2 144.6 211.2 207.8c0 109.7 99.71 193 208.3 172.3c9.561-1.805 16.28 9.324 10.11 16.95C387.9 448.6 324.8 480 255.8 480C132.1 480 32 379.6 32 256z"]},Qr={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 255.1C512 256.9 511.1 257.8 511.1 258.7C511.6 295.2 478.4 319.1 441.9 319.1H344C317.5 319.1 296 341.5 296 368C296 371.4 296.4 374.7 297 377.9C299.2 388.1 303.5 397.1 307.9 407.8C313.9 421.6 320 435.3 320 449.8C320 481.7 298.4 510.5 266.6 511.8C263.1 511.9 259.5 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256V255.1zM96 255.1C78.33 255.1 64 270.3 64 287.1C64 305.7 78.33 319.1 96 319.1C113.7 319.1 128 305.7 128 287.1C128 270.3 113.7 255.1 96 255.1zM128 191.1C145.7 191.1 160 177.7 160 159.1C160 142.3 145.7 127.1 128 127.1C110.3 127.1 96 142.3 96 159.1C96 177.7 110.3 191.1 128 191.1zM256 63.1C238.3 63.1 224 78.33 224 95.1C224 113.7 238.3 127.1 256 127.1C273.7 127.1 288 113.7 288 95.1C288 78.33 273.7 63.1 256 63.1zM384 191.1C401.7 191.1 416 177.7 416 159.1C416 142.3 401.7 127.1 384 127.1C366.3 127.1 352 142.3 352 159.1C352 177.7 366.3 191.1 384 191.1z"]},$r={prefix:"fas",iconName:"pen",icon:[512,512,[128394],"f304","M362.7 19.32C387.7-5.678 428.3-5.678 453.3 19.32L492.7 58.75C517.7 83.74 517.7 124.3 492.7 149.3L444.3 197.7L314.3 67.72L362.7 19.32zM421.7 220.3L188.5 453.4C178.1 463.8 165.2 471.5 151.1 475.6L30.77 511C22.35 513.5 13.24 511.2 7.03 504.1C.8198 498.8-1.502 489.7 .976 481.2L36.37 360.9C40.53 346.8 48.16 333.9 58.57 323.5L291.7 90.34L421.7 220.3z"]},Xr={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M490.3 40.4C512.2 62.27 512.2 97.73 490.3 119.6L460.3 149.7L362.3 51.72L392.4 21.66C414.3-.2135 449.7-.2135 471.6 21.66L490.3 40.4zM172.4 241.7L339.7 74.34L437.7 172.3L270.3 339.6C264.2 345.8 256.7 350.4 248.4 353.2L159.6 382.8C150.1 385.6 141.5 383.4 135 376.1C128.6 370.5 126.4 361 129.2 352.4L158.8 263.6C161.6 255.3 166.2 247.8 172.4 241.7V241.7zM192 63.1C209.7 63.1 224 78.33 224 95.1C224 113.7 209.7 127.1 192 127.1H96C78.33 127.1 64 142.3 64 159.1V416C64 433.7 78.33 448 96 448H352C369.7 448 384 433.7 384 416V319.1C384 302.3 398.3 287.1 416 287.1C433.7 287.1 448 302.3 448 319.1V416C448 469 405 512 352 512H96C42.98 512 0 469 0 416V159.1C0 106.1 42.98 63.1 96 63.1H192z"]},Jr=Xr,ei={prefix:"fas",iconName:"pencil",icon:[512,512,[61504,9999,"pencil-alt"],"f303","M421.7 220.3L188.5 453.4L154.6 419.5L158.1 416H112C103.2 416 96 408.8 96 400V353.9L92.51 357.4C87.78 362.2 84.31 368 82.42 374.4L59.44 452.6L137.6 429.6C143.1 427.7 149.8 424.2 154.6 419.5L188.5 453.4C178.1 463.8 165.2 471.5 151.1 475.6L30.77 511C22.35 513.5 13.24 511.2 7.03 504.1C.8198 498.8-1.502 489.7 .976 481.2L36.37 360.9C40.53 346.8 48.16 333.9 58.57 323.5L291.7 90.34L421.7 220.3zM492.7 58.75C517.7 83.74 517.7 124.3 492.7 149.3L444.3 197.7L314.3 67.72L362.7 19.32C387.7-5.678 428.3-5.678 453.3 19.32L492.7 58.75z"]},ti=ei,ni={prefix:"fas",iconName:"plug",icon:[384,512,[128268],"f1e6","M320 32c0-17.62-14.38-32-32-32s-32 14.38-32 32v96h64V32zM368 159.1h-352c-8.875 0-16 7.125-16 16v32c0 8.875 7.125 16 16 16H32V256c0 76 53.5 141.6 128 156.8V512h64v-99.25C298.5 397.6 352 332 352 256V223.1h16c8.875 0 16-7.125 16-16v-32C384 167.1 376.9 159.1 368 159.1zM128 32c0-17.62-14.38-32-32-32S64 14.38 64 32v96h64V32z"]},ri={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"]},ii={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M144 32C170.5 32 192 53.49 192 80V176C192 202.5 170.5 224 144 224H48C21.49 224 0 202.5 0 176V80C0 53.49 21.49 32 48 32H144zM128 96H64V160H128V96zM144 288C170.5 288 192 309.5 192 336V432C192 458.5 170.5 480 144 480H48C21.49 480 0 458.5 0 432V336C0 309.5 21.49 288 48 288H144zM128 352H64V416H128V352zM256 80C256 53.49 277.5 32 304 32H400C426.5 32 448 53.49 448 80V176C448 202.5 426.5 224 400 224H304C277.5 224 256 202.5 256 176V80zM320 160H384V96H320V160zM352 448H384V480H352V448zM448 480H416V448H448V480zM416 288H448V416H352V384H320V480H256V288H352V320H416V288z"]},oi={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M9.375 233.4C3.375 239.4 0 247.5 0 256v128c0 8.5 3.375 16.62 9.375 22.62S23.5 416 32 416h32V224H32C23.5 224 15.38 227.4 9.375 233.4zM464 96H352V32c0-17.62-14.38-32-32-32S288 14.38 288 32v64H176C131.8 96 96 131.8 96 176V448c0 35.38 28.62 64 64 64h320c35.38 0 64-28.62 64-64V176C544 131.8 508.3 96 464 96zM256 416H192v-32h64V416zM224 296C201.9 296 184 278.1 184 256S201.9 216 224 216S264 233.9 264 256S246.1 296 224 296zM352 416H288v-32h64V416zM448 416h-64v-32h64V416zM416 296c-22.12 0-40-17.88-40-40S393.9 216 416 216S456 233.9 456 256S438.1 296 416 296zM630.6 233.4C624.6 227.4 616.5 224 608 224h-32v192h32c8.5 0 16.62-3.375 22.62-9.375S640 392.5 640 384V256C640 247.5 636.6 239.4 630.6 233.4z"]},ai={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M449.9 39.96l-48.5 48.53C362.5 53.19 311.4 32 256 32C161.5 32 78.59 92.34 49.58 182.2c-5.438 16.81 3.797 34.88 20.61 40.28c16.97 5.5 34.86-3.812 40.3-20.59C130.9 138.5 189.4 96 256 96c37.96 0 73 14.18 100.2 37.8L311.1 178C295.1 194.8 306.8 223.4 330.4 224h146.9C487.7 223.7 496 215.3 496 204.9V59.04C496 34.99 466.9 22.95 449.9 39.96zM441.8 289.6c-16.94-5.438-34.88 3.812-40.3 20.59C381.1 373.5 322.6 416 256 416c-37.96 0-73-14.18-100.2-37.8L200 334C216.9 317.2 205.2 288.6 181.6 288H34.66C24.32 288.3 16 296.7 16 307.1v145.9c0 24.04 29.07 36.08 46.07 19.07l48.5-48.53C149.5 458.8 200.6 480 255.1 480c94.45 0 177.4-60.34 206.4-150.2C467.9 313 458.6 294.1 441.8 289.6z"]},si=ai,li={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M480 288H32c-17.62 0-32 14.38-32 32v128c0 17.62 14.38 32 32 32h448c17.62 0 32-14.38 32-32v-128C512 302.4 497.6 288 480 288zM352 408c-13.25 0-24-10.75-24-24s10.75-24 24-24s24 10.75 24 24S365.3 408 352 408zM416 408c-13.25 0-24-10.75-24-24s10.75-24 24-24s24 10.75 24 24S429.3 408 416 408zM480 32H32C14.38 32 0 46.38 0 64v128c0 17.62 14.38 32 32 32h448c17.62 0 32-14.38 32-32V64C512 46.38 497.6 32 480 32zM352 152c-13.25 0-24-10.75-24-24S338.8 104 352 104S376 114.8 376 128S365.3 152 352 152zM416 152c-13.25 0-24-10.75-24-24S402.8 104 416 104S440 114.8 440 128S429.3 152 416 152z"]},ui={prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M256 159.1c-53.02 0-95.1 42.98-95.1 95.1S202.1 351.1 256 351.1s95.1-42.98 95.1-95.1S309 159.1 256 159.1zM509.3 347L446.1 255.1l63.15-91.01c6.332-9.125 1.104-21.74-9.826-23.72l-109-19.7l-19.7-109c-1.975-10.93-14.59-16.16-23.72-9.824L256 65.89L164.1 2.736c-9.125-6.332-21.74-1.107-23.72 9.824L121.6 121.6L12.56 141.3C1.633 143.2-3.596 155.9 2.736 164.1L65.89 256l-63.15 91.01c-6.332 9.125-1.105 21.74 9.824 23.72l109 19.7l19.7 109c1.975 10.93 14.59 16.16 23.72 9.824L256 446.1l91.01 63.15c9.127 6.334 21.75 1.107 23.72-9.822l19.7-109l109-19.7C510.4 368.8 515.6 356.1 509.3 347zM256 383.1c-70.69 0-127.1-57.31-127.1-127.1c0-70.69 57.31-127.1 127.1-127.1s127.1 57.3 127.1 127.1C383.1 326.7 326.7 383.1 256 383.1z"]},ci={prefix:"fas",iconName:"table-cells-large",icon:[512,512,["th-large"],"f009","M448 32C483.3 32 512 60.65 512 96V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM448 96H288V224H448V96zM448 288H288V416H448V288zM224 224V96H64V224H224zM64 416H224V288H64V416z"]},fi=ci,di={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M48 32H197.5C214.5 32 230.7 38.74 242.7 50.75L418.7 226.7C443.7 251.7 443.7 292.3 418.7 317.3L285.3 450.7C260.3 475.7 219.7 475.7 194.7 450.7L18.75 274.7C6.743 262.7 0 246.5 0 229.5V80C0 53.49 21.49 32 48 32L48 32zM112 176C129.7 176 144 161.7 144 144C144 126.3 129.7 112 112 112C94.33 112 80 126.3 80 144C80 161.7 94.33 176 112 176z"]},hi={prefix:"fas",iconName:"tags",icon:[512,512,[],"f02c","M472.8 168.4C525.1 221.4 525.1 306.6 472.8 359.6L360.8 472.9C351.5 482.3 336.3 482.4 326.9 473.1C317.4 463.8 317.4 448.6 326.7 439.1L438.6 325.9C472.5 291.6 472.5 236.4 438.6 202.1L310.9 72.87C301.5 63.44 301.6 48.25 311.1 38.93C320.5 29.61 335.7 29.7 344.1 39.13L472.8 168.4zM.0003 229.5V80C.0003 53.49 21.49 32 48 32H197.5C214.5 32 230.7 38.74 242.7 50.75L410.7 218.7C435.7 243.7 435.7 284.3 410.7 309.3L277.3 442.7C252.3 467.7 211.7 467.7 186.7 442.7L18.75 274.7C6.743 262.7 0 246.5 0 229.5L.0003 229.5zM112 112C94.33 112 80 126.3 80 144C80 161.7 94.33 176 112 176C129.7 176 144 161.7 144 144C144 126.3 129.7 112 112 112z"]},pi={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.69C140.6 6.848 151.7 0 163.8 0H284.2C296.3 0 307.4 6.848 312.8 17.69L320 32H416C433.7 32 448 46.33 448 64C448 81.67 433.7 96 416 96H32C14.33 96 0 81.67 0 64C0 46.33 14.33 32 32 32H128L135.2 17.69zM394.8 466.1C393.2 492.3 372.3 512 346.9 512H101.1C75.75 512 54.77 492.3 53.19 466.1L31.1 128H416L394.8 466.1z"]},vi={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M384 320c-17.67 0-32 14.33-32 32v96H64V160h96c17.67 0 32-14.32 32-32s-14.33-32-32-32L64 96c-35.35 0-64 28.65-64 64V448c0 35.34 28.65 64 64 64h288c35.35 0 64-28.66 64-64v-96C416 334.3 401.7 320 384 320zM488 0H352c-12.94 0-24.62 7.797-29.56 19.75c-4.969 11.97-2.219 25.72 6.938 34.88L370.8 96L169.4 297.4c-12.5 12.5-12.5 32.75 0 45.25C175.6 348.9 183.8 352 192 352s16.38-3.125 22.62-9.375L416 141.3l41.38 41.38c9.156 9.141 22.88 11.84 34.88 6.938C504.2 184.6 512 172.9 512 160V24C512 10.74 501.3 0 488 0z"]},mi=vi,gi={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"]},yi=gi;function bi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bi(Object(n),!0).forEach((function(t){ki(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xi(e){return xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xi(e)}function wi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ki(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ci(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||Ei(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Si(e){return function(e){if(Array.isArray(e))return Ti(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ei(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ei(e,t){if(e){if("string"===typeof e)return Ti(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ti(e,t):void 0}}function Ti(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Mi=function(){},Oi={},ji={},Pi=null,Ni={mark:Mi,measure:Mi};try{"undefined"!==typeof window&&(Oi=window),"undefined"!==typeof document&&(ji=document),"undefined"!==typeof MutationObserver&&(Pi=MutationObserver),"undefined"!==typeof performance&&(Ni=performance)}catch(BA){}var Di=(Oi.navigator||{}).userAgent,Li=void 0===Di?"":Di,Ri=Oi,Ai=ji,Ii=Pi,Fi=Ni,zi=(Ri.document,!!Ai.documentElement&&!!Ai.head&&"function"===typeof Ai.addEventListener&&"function"===typeof Ai.createElement),Bi=~Li.indexOf("MSIE")||~Li.indexOf("Trident/"),Ui="svg-inline--fa",Vi="data-fa-i2svg",Hi="data-fa-pseudo-element",Wi="data-prefix",Zi="data-icon",Yi="fontawesome-i2svg",qi=["HTML","HEAD","STYLE","SCRIPT"],Gi=function(){try{return!0}catch(BA){return!1}}(),Ki={fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit",fa:"solid"},Qi={solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"},$i={fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},Xi={"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},Ji=/fa[srltdbk\-\ ]/,eo="fa-layers-text",to=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Kit)?.*/i,no={900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},ro=[1,2,3,4,5,6,7,8,9,10],io=ro.concat([11,12,13,14,15,16,17,18,19,20]),oo=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],ao="duotone-group",so="swap-opacity",lo="primary",uo="secondary",co=[].concat(Si(Object.keys(Qi)),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",ao,so,lo,uo]).concat(ro.map((function(e){return"".concat(e,"x")}))).concat(io.map((function(e){return"w-".concat(e)}))),fo=Ri.FontAwesomeConfig||{};if(Ai&&"function"===typeof Ai.querySelector){[["data-family-prefix","familyPrefix"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=Ci(e,2),n=t[0],r=t[1],i=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=Ai.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));void 0!==i&&null!==i&&(fo[r]=i)}))}var ho=_i(_i({},{familyPrefix:"fa",styleDefault:"solid",replacementClass:Ui,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0}),fo);ho.autoReplaceSvg||(ho.observeMutations=!1);var po={};Object.keys(ho).forEach((function(e){Object.defineProperty(po,e,{enumerable:!0,set:function(t){ho[e]=t,vo.forEach((function(e){return e(po)}))},get:function(){return ho[e]}})})),Ri.FontAwesomeConfig=po;var vo=[];var mo=16,go={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function yo(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function bo(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function _o(e){return e.classList?bo(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function xo(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function wo(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")}),"")}function ko(e){return e.size!==go.size||e.x!==go.x||e.y!==go.y||e.rotate!==go.rotate||e.flipX||e.flipY}function Co(){var e="fa",t=Ui,n=po.familyPrefix,r=po.replacementClass,i=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var So=!1;function Eo(){po.autoAddCss&&!So&&(!function(e){if(e&&zi){var t=Ai.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Ai.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}Ai.head.insertBefore(t,r)}}(Co()),So=!0)}var To={mixout:function(){return{dom:{css:Co,insertCss:Eo}}},hooks:function(){return{beforeDOMElementCreation:function(){Eo()},beforeI2svg:function(){Eo()}}}},Mo=Ri||{};Mo.___FONT_AWESOME___||(Mo.___FONT_AWESOME___={}),Mo.___FONT_AWESOME___.styles||(Mo.___FONT_AWESOME___.styles={}),Mo.___FONT_AWESOME___.hooks||(Mo.___FONT_AWESOME___.hooks={}),Mo.___FONT_AWESOME___.shims||(Mo.___FONT_AWESOME___.shims=[]);var Oo=Mo.___FONT_AWESOME___,jo=[],Po=!1;function No(e){zi&&(Po?setTimeout(e,0):jo.push(e))}function Do(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,i=e.children,o=void 0===i?[]:i;return"string"===typeof e?xo(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(xo(e[n]),'" ')}),"").trim()}(r),">").concat(o.map(Do).join(""),"</").concat(t,">")}function Lo(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}zi&&((Po=(Ai.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ai.readyState))||Ai.addEventListener("DOMContentLoaded",(function e(){Ai.removeEventListener("DOMContentLoaded",e),Po=1,jo.map((function(e){return e()}))})));var Ro=function(e,t,n,r){var i,o,a,s=Object.keys(e),l=s.length,u=void 0!==r?function(e,t){return function(n,r,i,o){return e.call(t,n,r,i,o)}}(t,r):t;for(void 0===n?(i=1,a=e[s[0]]):(i=0,a=n);i<l;i++)a=u(a,e[o=s[i]],o,e);return a};function Ao(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function Io(e){return Object.keys(e).reduce((function(t,n){var r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function Fo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,i=void 0!==r&&r,o=Io(t);"function"!==typeof Oo.hooks.addPack||i?Oo.styles[e]=_i(_i({},Oo.styles[e]||{}),o):Oo.hooks.addPack(e,Io(t)),"fas"===e&&Fo("fa",t)}var zo=Oo.styles,Bo=Oo.shims,Uo=Object.values($i),Vo=null,Ho={},Wo={},Zo={},Yo={},qo={},Go=Object.keys(Ki);function Ko(e,t){var n,r=t.split("-"),i=r[0],o=r.slice(1).join("-");return i!==e||""===o||(n=o,~co.indexOf(n))?null:o}var Qo,$o=function(){var e=function(e){return Ro(zo,(function(t,n,r){return t[r]=Ro(n,e,{}),t}),{})};Ho=e((function(e,t,n){(t[3]&&(e[t[3]]=n),t[2])&&t[2].filter((function(e){return"number"===typeof e})).forEach((function(t){e[t.toString(16)]=n}));return e})),Wo=e((function(e,t,n){(e[n]=n,t[2])&&t[2].filter((function(e){return"string"===typeof e})).forEach((function(t){e[t]=n}));return e})),qo=e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in zo||po.autoFetchSvg,n=Ro(Bo,(function(e,n){var r=n[0],i=n[1],o=n[2];return"far"!==i||t||(i="fas"),"string"===typeof r&&(e.names[r]={prefix:i,iconName:o}),"number"===typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:o}),e}),{names:{},unicodes:{}});Zo=n.names,Yo=n.unicodes,Vo=na(po.styleDefault)};function Xo(e,t){return(Ho[e]||{})[t]}function Jo(e,t){return(qo[e]||{})[t]}function ea(e){return Zo[e]||{prefix:null,iconName:null}}function ta(){return Vo}Qo=function(e){Vo=na(e.styleDefault)},vo.push(Qo),$o();function na(e){var t=Qi[e]||Qi[Ki[e]],n=e in Oo.styles?e:null;return t||n||null}function ra(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.skipLookups,r=void 0!==n&&n,i=null,o=e.reduce((function(e,t){var n=Ko(po.familyPrefix,t);if(zo[t]?(t=Uo.includes(t)?Xi[t]:t,i=t,e.prefix=t):Go.indexOf(t)>-1?(i=t,e.prefix=na(t)):n?e.iconName=n:t!==po.replacementClass&&e.rest.push(t),!r&&e.prefix&&e.iconName){var o="fa"===i?ea(e.iconName):{},a=Jo(e.prefix,e.iconName);o.prefix&&(i=null),e.iconName=o.iconName||a||e.iconName,e.prefix=o.prefix||e.prefix,"far"!==e.prefix||zo.far||!zo.fas||po.autoFetchSvg||(e.prefix="fas")}return e}),{prefix:null,iconName:null,rest:[]});return"fa"!==o.prefix&&"fa"!==i||(o.prefix=ta()||"fas"),o}var ia=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n,r;return t=e,n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach((function(t){e.definitions[t]=_i(_i({},e.definitions[t]||{}),i[t]),Fo(t,i[t]);var n=$i[t];n&&Fo(n,i[t]),$o()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((function(t){var r=n[t],i=r.prefix,o=r.iconName,a=r.icon,s=a[2];e[i]||(e[i]={}),s.length>0&&s.forEach((function(t){"string"===typeof t&&(e[i][t]=a)})),e[i][o]=a})),e}}],n&&wi(t.prototype,n),r&&wi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),oa=[],aa={},sa={},la=Object.keys(sa);function ua(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=aa[e]||[];return o.forEach((function(e){t=e.apply(null,[t].concat(r))})),t}function ca(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=aa[e]||[];i.forEach((function(e){e.apply(null,n)}))}function fa(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return sa[e]?sa[e].apply(null,t):void 0}function da(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||ta();if(t)return t=Jo(n,t)||t,Lo(ha.definitions,n,t)||Lo(Oo.styles,n,t)}var ha=new ia,pa={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return zi?(ca("beforeI2svg",e),fa("pseudoElements2svg",e),fa("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot;!1===po.autoReplaceSvg&&(po.autoReplaceSvg=!0),po.observeMutations=!0,No((function(){ga({autoReplaceSvgRoot:t}),ca("watch",e)}))}},va={icon:function(e){if(null===e)return null;if("object"===xi(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Jo(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=na(e[0]);return{prefix:n,iconName:Jo(n,t)||t}}if("string"===typeof e&&(e.indexOf("".concat(po.familyPrefix,"-"))>-1||e.match(Ji))){var r=ra(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||ta(),iconName:Jo(r.prefix,r.iconName)||r.iconName}}if("string"===typeof e){var i=ta();return{prefix:i,iconName:Jo(i,e)||e}}}},ma={noAuto:function(){po.autoReplaceSvg=!1,po.observeMutations=!1,ca("noAuto")},config:po,dom:pa,parse:va,library:ha,findIconDefinition:da,toHtml:Do},ga=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot,n=void 0===t?Ai:t;(Object.keys(Oo.styles).length>0||po.autoFetchSvg)&&zi&&po.autoReplaceSvg&&ma.dom.i2svg({node:n})};function ya(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return Do(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(zi){var t=Ai.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function ba(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,a=e.transform,s=e.symbol,l=e.title,u=e.maskId,c=e.titleId,f=e.extra,d=e.watchable,h=void 0!==d&&d,p=r.found?r:n,v=p.width,m=p.height,g="fak"===i,y=[po.replacementClass,o?"".concat(po.familyPrefix,"-").concat(o):""].filter((function(e){return-1===f.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(f.classes).join(" "),b={children:[],attributes:_i(_i({},f.attributes),{},{"data-prefix":i,"data-icon":o,class:y,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(m)})},_=g&&!~f.classes.indexOf("fa-fw")?{width:"".concat(v/m*16*.0625,"em")}:{};h&&(b.attributes[Vi]=""),l&&(b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(c||yo())},children:[l]}),delete b.attributes.title);var x=_i(_i({},b),{},{prefix:i,iconName:o,main:n,mask:r,maskId:u,transform:a,symbol:s,styles:_i(_i({},_),f.styles)}),w=r.found&&n.found?fa("generateAbstractMask",x)||{children:[],attributes:{}}:fa("generateAbstractIcon",x)||{children:[],attributes:{}},k=w.children,C=w.attributes;return x.children=k,x.attributes=C,s?function(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,a=!0===o?"".concat(t,"-").concat(po.familyPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:_i(_i({},i),{},{id:a}),children:r}]}]}(x):function(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,a=e.transform;if(ko(a)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};i.style=wo(_i(_i({},o),{},{"transform-origin":"".concat(s.x+a.x/16,"em ").concat(s.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(x)}function _a(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.title,a=e.extra,s=e.watchable,l=void 0!==s&&s,u=_i(_i(_i({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});l&&(u[Vi]="");var c=_i({},a.styles);ko(i)&&(c.transform=function(e){var t=e.transform,n=e.width,r=void 0===n?16:n,i=e.height,o=void 0===i?16:i,a=e.startCentered,s=void 0!==a&&a,l="";return l+=s&&Bi?"translate(".concat(t.x/mo-r/2,"em, ").concat(t.y/mo-o/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/mo,"em), calc(-50% + ").concat(t.y/mo,"em)) "):"translate(".concat(t.x/mo,"em, ").concat(t.y/mo,"em) "),l+="scale(".concat(t.size/mo*(t.flipX?-1:1),", ").concat(t.size/mo*(t.flipY?-1:1),") "),l+"rotate(".concat(t.rotate,"deg) ")}({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);var f=wo(c);f.length>0&&(u.style=f);var d=[];return d.push({tag:"span",attributes:u,children:[t]}),o&&d.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),d}function xa(e){var t=e.content,n=e.title,r=e.extra,i=_i(_i(_i({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=wo(r.styles);o.length>0&&(i.style=o);var a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}var wa=Oo.styles;function ka(e){var t=e[0],n=e[1],r=Ci(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(po.familyPrefix,"-").concat(ao)},children:[{tag:"path",attributes:{class:"".concat(po.familyPrefix,"-").concat(uo),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(po.familyPrefix,"-").concat(lo),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var Ca={found:!1,width:512,height:512};function Sa(e,t){var n=t;return"fa"===t&&null!==po.styleDefault&&(t=ta()),new Promise((function(r,i){fa("missingIconAbstract");if("fa"===n){var o=ea(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&wa[t]&&wa[t][e])return r(ka(wa[t][e]));!function(e,t){Gi||po.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(_i(_i({},Ca),{},{icon:po.showMissingIcons&&e&&fa("missingIconAbstract")||{}}))}))}var Ea=function(){},Ta=po.measurePerformance&&Fi&&Fi.mark&&Fi.measure?Fi:{mark:Ea,measure:Ea},Ma='FA "6.0.0"',Oa=function(e){Ta.mark("".concat(Ma," ").concat(e," ends")),Ta.measure("".concat(Ma," ").concat(e),"".concat(Ma," ").concat(e," begins"),"".concat(Ma," ").concat(e," ends"))},ja=function(e){return Ta.mark("".concat(Ma," ").concat(e," begins")),function(){return Oa(e)}},Pa=function(){};function Na(e){return"string"===typeof(e.getAttribute?e.getAttribute(Vi):null)}function Da(e){return Ai.createElementNS("http://www.w3.org/2000/svg",e)}function La(e){return Ai.createElement(e)}function Ra(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ceFn,r=void 0===n?"svg"===e.tag?Da:La:n;if("string"===typeof e)return Ai.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach((function(t){i.setAttribute(t,e.attributes[t])}));var o=e.children||[];return o.forEach((function(e){i.appendChild(Ra(e,{ceFn:r}))})),i}var Aa={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(Ra(e),t)})),null===t.getAttribute(Vi)&&po.keepOriginalSource){var n=Ai.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~_o(t).indexOf(po.replacementClass))return Aa.replace(e);var r=new RegExp("".concat(po.familyPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce((function(e,t){return t===po.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var o=n.map((function(e){return Do(e)})).join("\n");t.setAttribute(Vi,""),t.innerHTML=o}};function Ia(e){e()}function Fa(e,t){var n="function"===typeof t?t:Pa;if(0===e.length)n();else{var r=Ia;"async"===po.mutateApproach&&(r=Ri.requestAnimationFrame||Ia),r((function(){var t=!0===po.autoReplaceSvg?Aa.replace:Aa[po.autoReplaceSvg]||Aa.replace,r=ja("mutate");e.map(t),r(),n()}))}}var za=!1;function Ba(){za=!0}function Ua(){za=!1}var Va=null;function Ha(e){if(Ii&&po.observeMutations){var t=e.treeCallback,n=void 0===t?Pa:t,r=e.nodeCallback,i=void 0===r?Pa:r,o=e.pseudoElementsCallback,a=void 0===o?Pa:o,s=e.observeMutationsRoot,l=void 0===s?Ai:s;Va=new Ii((function(e){if(!za){var t=ta();bo(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!Na(e.addedNodes[0])&&(po.searchPseudoElements&&a(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&po.searchPseudoElements&&a(e.target.parentNode),"attributes"===e.type&&Na(e.target)&&~oo.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(Wi):null,n=e.getAttribute?e.getAttribute(Zi):null;return t&&n}(e.target)){var r=ra(_o(e.target)),o=r.prefix,s=r.iconName;e.target.setAttribute(Wi,o||t),s&&e.target.setAttribute(Zi,s)}else(l=e.target)&&l.classList&&l.classList.contains&&l.classList.contains(po.replacementClass)&&i(e.target);var l}))}})),zi&&Va.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Wa(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce((function(e,t){var n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e}),{})),n}function Za(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"",i=ra(_o(e));return i.prefix||(i.prefix=ta()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||i.prefix&&r.length>0&&(i.iconName=function(e,t){return(Wo[e]||{})[t]}(i.prefix,e.innerText)||Xo(i.prefix,Ao(e.innerText))),i}function Ya(e){var t=bo(e.attributes).reduce((function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e}),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return po.autoA11y&&(n?t["aria-labelledby"]="".concat(po.replacementClass,"-title-").concat(r||yo()):(t["aria-hidden"]="true",t.focusable="false")),t}function qa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=Za(e),r=n.iconName,i=n.prefix,o=n.rest,a=Ya(e),s=ua("parseNodeAttributes",{},e),l=t.styleParser?Wa(e):[];return _i({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:go,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:a}},s)}var Ga=Oo.styles;function Ka(e){var t="nest"===po.autoReplaceSvg?qa(e,{styleParser:!1}):qa(e);return~t.extra.classes.indexOf(eo)?fa("generateLayersText",e,t):fa("generateSvgReplacementMutation",e,t)}function Qa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!zi)return Promise.resolve();var n=Ai.documentElement.classList,r=function(e){return n.add("".concat(Yi,"-").concat(e))},i=function(e){return n.remove("".concat(Yi,"-").concat(e))},o=po.autoFetchSvg?Object.keys(Ki):Object.keys(Ga),a=[".".concat(eo,":not([").concat(Vi,"])")].concat(o.map((function(e){return".".concat(e,":not([").concat(Vi,"])")}))).join(", ");if(0===a.length)return Promise.resolve();var s=[];try{s=bo(e.querySelectorAll(a))}catch(BA){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");var l=ja("onTree"),u=s.reduce((function(e,t){try{var n=Ka(t);n&&e.push(n)}catch(BA){Gi||"MissingIcon"===BA.name&&console.error(BA)}return e}),[]);return new Promise((function(e,n){Promise.all(u).then((function(n){Fa(n,(function(){r("active"),r("complete"),i("pending"),"function"===typeof t&&t(),l(),e()}))})).catch((function(e){l(),n(e)}))}))}function $a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Ka(e).then((function(e){e&&Fa([e],t)}))}var Xa=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?go:n,i=t.symbol,o=void 0!==i&&i,a=t.mask,s=void 0===a?null:a,l=t.maskId,u=void 0===l?null:l,c=t.title,f=void 0===c?null:c,d=t.titleId,h=void 0===d?null:d,p=t.classes,v=void 0===p?[]:p,m=t.attributes,g=void 0===m?{}:m,y=t.styles,b=void 0===y?{}:y;if(e){var _=e.prefix,x=e.iconName,w=e.icon;return ya(_i({type:"icon"},e),(function(){return ca("beforeDOMElementCreation",{iconDefinition:e,params:t}),po.autoA11y&&(f?g["aria-labelledby"]="".concat(po.replacementClass,"-title-").concat(h||yo()):(g["aria-hidden"]="true",g.focusable="false")),ba({icons:{main:ka(w),mask:s?ka(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:_,iconName:x,transform:_i(_i({},go),r),symbol:o,title:f,maskId:u,titleId:h,extra:{attributes:g,styles:b,classes:v}})}))}},Ja={mixout:function(){return{icon:(e=Xa,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:da(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:da(i||{})),e(r,_i(_i({},n),{},{mask:i}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Qa,e.nodeCallback=$a,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?Ai:t,r=e.callback;return Qa(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,i=t.titleId,o=t.prefix,a=t.transform,s=t.symbol,l=t.mask,u=t.maskId,c=t.extra;return new Promise((function(t,f){Promise.all([Sa(n,o),l.iconName?Sa(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(l){var f=Ci(l,2),d=f[0],h=f[1];t([e,ba({icons:{main:d,mask:h},prefix:o,iconName:n,transform:a,symbol:s,maskId:u,title:r,titleId:i,extra:c,watchable:!0})])})).catch(f)}))},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,i=e.main,o=e.transform,a=wo(e.styles);return a.length>0&&(r.style=a),ko(o)&&(t=fa("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(t||i.icon),{children:n,attributes:r}}}},es={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=void 0===n?[]:n;return ya({type:"layer"},(function(){ca("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e((function(e){Array.isArray(e)?e.map((function(e){n=n.concat(e.abstract)})):n=n.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(po.familyPrefix,"-layers")].concat(Si(r)).join(" ")},children:n}]}))}}}},ts={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,r=void 0===n?null:n,i=t.classes,o=void 0===i?[]:i,a=t.attributes,s=void 0===a?{}:a,l=t.styles,u=void 0===l?{}:l;return ya({type:"counter",content:e},(function(){return ca("beforeDOMElementCreation",{content:e,params:t}),xa({content:e.toString(),title:r,extra:{attributes:s,styles:u,classes:["".concat(po.familyPrefix,"-layers-counter")].concat(Si(o))}})}))}}}},ns={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?go:n,i=t.title,o=void 0===i?null:i,a=t.classes,s=void 0===a?[]:a,l=t.attributes,u=void 0===l?{}:l,c=t.styles,f=void 0===c?{}:c;return ya({type:"text",content:e},(function(){return ca("beforeDOMElementCreation",{content:e,params:t}),_a({content:e,transform:_i(_i({},go),r),title:o,extra:{attributes:u,styles:f,classes:["".concat(po.familyPrefix,"-layers-text")].concat(Si(s))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,i=t.extra,o=null,a=null;if(Bi){var s=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();o=l.width/s,a=l.height/s}return po.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,_a({content:e.innerHTML,width:o,height:a,transform:r,title:n,extra:i,watchable:!0})])}}},rs=new RegExp('"',"ug"),is=[1105920,1112319];function os(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise((function(r,i){if(null!==e.getAttribute(n))return r();var o=bo(e.children).filter((function(e){return e.getAttribute(Hi)===t}))[0],a=Ri.getComputedStyle(e,t),s=a.getPropertyValue("font-family").match(to),l=a.getPropertyValue("font-weight"),u=a.getPropertyValue("content");if(o&&!s)return e.removeChild(o),r();if(s&&"none"!==u&&""!==u){var c=a.getPropertyValue("content"),f=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?Qi[s[2].toLowerCase()]:no[l],d=function(e){var t=e.replace(rs,""),n=function(e,t){var n,r=e.length,i=e.charCodeAt(t);return i>=55296&&i<=56319&&r>t+1&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}(t,0),r=n>=is[0]&&n<=is[1],i=2===t.length&&t[0]===t[1];return{value:Ao(i?t[0]:t),isSecondary:r||i}}(c),h=d.value,p=d.isSecondary,v=s[0].startsWith("FontAwesome"),m=Xo(f,h),g=m;if(v){var y=function(e){var t=Yo[e],n=Xo("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(h);y.iconName&&y.prefix&&(m=y.iconName,f=y.prefix)}if(!m||p||o&&o.getAttribute(Wi)===f&&o.getAttribute(Zi)===g)r();else{e.setAttribute(n,g),o&&e.removeChild(o);var b={iconName:null,title:null,titleId:null,prefix:null,transform:go,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},_=b.extra;_.attributes[Hi]=t,Sa(m,f).then((function(i){var o=ba(_i(_i({},b),{},{icons:{main:i,mask:{prefix:null,iconName:null,rest:[]}},prefix:f,iconName:g,extra:_,watchable:!0})),a=Ai.createElement("svg");"::before"===t?e.insertBefore(a,e.firstChild):e.appendChild(a),a.outerHTML=o.map((function(e){return Do(e)})).join("\n"),e.removeAttribute(n),r()})).catch(i)}}else r()}))}function as(e){return Promise.all([os(e,"::before"),os(e,"::after")])}function ss(e){return e.parentNode!==document.head&&!~qi.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Hi)&&(!e.parentNode||"svg"!==e.parentNode.tagName)}function ls(e){if(zi)return new Promise((function(t,n){var r=bo(e.querySelectorAll("*")).filter(ss).map(as),i=ja("searchPseudoElements");Ba(),Promise.all(r).then((function(){i(),Ua(),t()})).catch((function(){i(),Ua(),n()}))}))}var us=!1,cs=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},fs={mixout:function(){return{parse:{transform:function(e){return cs(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=cs(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,i=e.iconWidth,o={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),u={outer:o,inner:{transform:"".concat(a," ").concat(s," ").concat(l)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:_i({},u.outer),children:[{tag:"g",attributes:_i({},u.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:_i(_i({},t.icon.attributes),u.path)}]}]}}}},ds={x:0,y:0,width:"100%",height:"100%"};function hs(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var ps={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?ra(n.split(" ").map((function(e){return e.trim()}))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=ta()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,r=e.attributes,i=e.main,o=e.mask,a=e.maskId,s=e.transform,l=i.width,u=i.icon,c=o.width,f=o.icon,d=function(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(o," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}({transform:s,containerWidth:c,iconWidth:l}),h={tag:"rect",attributes:_i(_i({},ds),{},{fill:"white"})},p=u.children?{children:u.children.map(hs)}:{},v={tag:"g",attributes:_i({},d.inner),children:[hs(_i({tag:u.tag,attributes:_i(_i({},u.attributes),d.path)},p))]},m={tag:"g",attributes:_i({},d.outer),children:[v]},g="mask-".concat(a||yo()),y="clip-".concat(a||yo()),b={tag:"mask",attributes:_i(_i({},ds),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,m]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(t=f,"g"===t.tag?t.children:[t])},b]};return n.push(_,{tag:"rect",attributes:_i({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(g,")")},ds)}),{children:n,attributes:r}}}},vs={provides:function(e){var t=!1;Ri.matchMedia&&(t=Ri.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:_i(_i({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var i=_i(_i({},r),{},{attributeName:"opacity"}),o={tag:"circle",attributes:_i(_i({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:_i(_i({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:_i(_i({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(o),e.push({tag:"path",attributes:_i(_i({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:_i(_i({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:_i(_i({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:_i(_i({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){var n=t.mixoutsTo;oa=e,aa={},Object.keys(sa).forEach((function(e){-1===la.indexOf(e)&&delete sa[e]})),oa.forEach((function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((function(e){"function"===typeof t[e]&&(n[e]=t[e]),"object"===xi(t[e])&&Object.keys(t[e]).forEach((function(r){n[e]||(n[e]={}),n[e][r]=t[e][r]}))})),e.hooks){var r=e.hooks();Object.keys(r).forEach((function(e){aa[e]||(aa[e]=[]),aa[e].push(r[e])}))}e.provides&&e.provides(sa)}))}([To,Ja,es,ts,ns,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=ls,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?Ai:t;po.searchPseudoElements&&ls(n)}}},{mixout:function(){return{dom:{unwatch:function(){Ba(),us=!0}}}},hooks:function(){return{bootstrap:function(){Ha(ua("mutationObserverCallbacks",{}))},noAuto:function(){Va&&Va.disconnect()},watch:function(e){var t=e.observeMutationsRoot;us?Ua():Ha(ua("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},fs,ps,vs,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}}}}],{mixoutsTo:ma});var ms=ma.parse,gs=ma.icon,ys=n(8731),bs=n.n(ys);function _s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_s(Object(n),!0).forEach((function(t){ks(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ws(e){return ws="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ws(e)}function ks(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cs(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ss(e){return function(e){if(Array.isArray(e))return Es(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Es(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Es(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Es(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ts(e){return t=e,(t-=0)===t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var Ms=["style"];function Os(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),i=Ts(t.slice(0,r)),o=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=o:e[i]=o,e}),{})}var js=!1;try{js=!0}catch(BA){}function Ps(e){return e&&"object"===ws(e)&&e.prefix&&e.iconName&&e.icon?e:ms.icon?ms.icon(e):null===e?null:e&&"object"===ws(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"===typeof e?{prefix:"fas",iconName:e}:void 0}function Ns(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?ks({},e,t):{}}var Ds=["forwardedRef"];function Ls(e){var t=e.forwardedRef,n=Cs(e,Ds),r=n.icon,i=n.mask,o=n.symbol,a=n.className,s=n.title,l=n.titleId,u=Ps(r),c=Ns("classes",[].concat(Ss(function(e){var t,n=e.beat,r=e.fade,i=e.flash,o=e.spin,a=e.spinPulse,s=e.spinReverse,l=e.pulse,u=e.fixedWidth,c=e.inverse,f=e.border,d=e.listItem,h=e.flip,p=e.size,v=e.rotation,m=e.pull,g=(ks(t={"fa-beat":n,"fa-fade":r,"fa-flash":i,"fa-spin":o,"fa-spin-reverse":s,"fa-spin-pulse":a,"fa-pulse":l,"fa-fw":u,"fa-inverse":c,"fa-border":f,"fa-li":d,"fa-flip-horizontal":"horizontal"===h||"both"===h,"fa-flip-vertical":"vertical"===h||"both"===h},"fa-".concat(p),"undefined"!==typeof p&&null!==p),ks(t,"fa-rotate-".concat(v),"undefined"!==typeof v&&null!==v&&0!==v),ks(t,"fa-pull-".concat(m),"undefined"!==typeof m&&null!==m),ks(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(g).map((function(e){return g[e]?e:null})).filter((function(e){return e}))}(n)),Ss(a.split(" ")))),f=Ns("transform","string"===typeof n.transform?ms.transform(n.transform):n.transform),d=Ns("mask",Ps(i)),h=gs(u,xs(xs(xs(xs({},c),f),d),{},{symbol:o,title:s,titleId:l}));if(!h)return function(){var e;!js&&console&&"function"===typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var p=h.abstract,v={ref:t};return Object.keys(n).forEach((function(e){Ls.defaultProps.hasOwnProperty(e)||(v[e]=n[e])})),Rs(p[0],v)}Ls.displayName="FontAwesomeIcon",Ls.propTypes={beat:bs().bool,border:bs().bool,className:bs().string,fade:bs().bool,flash:bs().bool,mask:bs().oneOfType([bs().object,bs().array,bs().string]),fixedWidth:bs().bool,inverse:bs().bool,flip:bs().oneOf(["horizontal","vertical","both"]),icon:bs().oneOfType([bs().object,bs().array,bs().string]),listItem:bs().bool,pull:bs().oneOf(["right","left"]),pulse:bs().bool,rotation:bs().oneOf([0,90,180,270]),size:bs().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:bs().bool,spinPulse:bs().bool,spinReverse:bs().bool,symbol:bs().oneOfType([bs().bool,bs().string]),title:bs().string,transform:bs().oneOfType([bs().string,bs().object]),swapOpacity:bs().bool},Ls.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var Rs=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof n)return n;var i=(n.children||[]).map((function(n){return e(t,n)})),o=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=Os(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[Ts(t)]=r}return e}),{attrs:{}}),a=r.style,s=void 0===a?{}:a,l=Cs(r,Ms);return o.attrs.style=xs(xs({},o.attrs.style),s),t.apply(void 0,[n.tag,xs(xs({},o.attrs),l)].concat(Ss(i)))}.bind(null,l.createElement);function As(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Is(e,t){return Is=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Is(e,t)}function Fs(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Is(e,t)}function zs(e){return zs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},zs(e)}function Bs(e){return Bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bs(e)}function Us(e,t){if(t&&("object"===Bs(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return As(e)}function Vs(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(BA){return!1}}();return function(){var n,r=zs(e);if(t){var i=zs(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Us(this,n)}}var Hs=n(4758),Ws=n.n(Hs),Zs=l.createContext(),Ys=l.createContext();function qs(e){var t=e.children,n=l.useState(null),r=n[0],i=n[1],o=l.useRef(!1);l.useEffect((function(){return function(){o.current=!0}}),[]);var a=l.useCallback((function(e){o.current||i(e)}),[]);return l.createElement(Zs.Provider,{value:r},l.createElement(Ys.Provider,{value:a},t))}var Gs=function(e){return Array.isArray(e)?e[0]:e},Ks=function(e){if("function"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},Qs=function(e,t){if("function"===typeof e)return Ks(e,t);null!=e&&(e.current=t)},$s=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},Xs="undefined"!==typeof window&&window.document&&window.document.createElement?l.useLayoutEffect:l.useEffect,Js=n(6176),el=n(6847),tl=n.n(el),nl=[],rl=function(){},il=function(){return Promise.resolve(null)},ol=[];function al(e){var t=e.placement,n=void 0===t?"bottom":t,r=e.strategy,i=void 0===r?"absolute":r,o=e.modifiers,a=void 0===o?ol:o,s=e.referenceElement,u=e.onFirstUpdate,c=e.innerRef,f=e.children,d=l.useContext(Zs),h=l.useState(null),p=h[0],v=h[1],m=l.useState(null),g=m[0],y=m[1];l.useEffect((function(){Qs(c,p)}),[c,p]);var b=l.useMemo((function(){return{placement:n,strategy:i,onFirstUpdate:u,modifiers:[].concat(a,[{name:"arrow",enabled:null!=g,options:{element:g}}])}}),[n,i,u,a,g]),_=function(e,t,n){void 0===n&&(n={});var r=l.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||nl},o=l.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=o[0],s=o[1],u=l.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);s({styles:$s(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:$s(n.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),c=l.useMemo((function(){var e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return tl()(r.current,e)?r.current||e:(r.current=e,e)}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),f=l.useRef();return Xs((function(){f.current&&f.current.setOptions(c)}),[c]),Xs((function(){if(null!=e&&null!=t){var r=(n.createPopper||Js.fi)(e,t,c);return f.current=r,function(){r.destroy(),f.current=null}}}),[e,t,n.createPopper]),{state:f.current?f.current.state:null,styles:a.styles,attributes:a.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}}(s||d,p,b),x=_.state,w=_.styles,k=_.forceUpdate,C=_.update,S=l.useMemo((function(){return{ref:v,style:w.popper,placement:x?x.placement:n,hasPopperEscaped:x&&x.modifiersData.hide?x.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:x&&x.modifiersData.hide?x.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:w.arrow,ref:y},forceUpdate:k||rl,update:C||il}}),[v,y,n,x,w,C,k]);return Gs(f)(S)}var sl=n(944),ll=n.n(sl);function ul(e){var t=e.children,n=e.innerRef,r=l.useContext(Ys),i=l.useCallback((function(e){Qs(n,e),Ks(r,e)}),[n,r]);return l.useEffect((function(){return function(){return Qs(n,null)}})),l.useEffect((function(){ll()(Boolean(r),"`Reference` should not be used outside of a `Manager` component.")}),[r]),Gs(t)({ref:i})}var cl=!1,fl=l.createContext(null),dl="unmounted",hl="exited",pl="entering",vl="entered",ml="exiting",gl=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=hl,r.appearStatus=pl):i=vl:i=t.unmountOnExit||t.mountOnEnter?dl:hl,r.state={status:i},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Is(t,n),r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===dl?{status:hl}:null};var i=r.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==pl&&n!==vl&&(t=pl):n!==pl&&n!==vl||(t=ml)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===pl?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===hl&&this.setState({status:dl})},i.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[o.findDOMNode(this),r],a=i[0],s=i[1],l=this.getTimeouts(),u=r?l.appear:l.enter;!e&&!n||cl?this.safeSetState({status:vl},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,s),this.safeSetState({status:pl},(function(){t.props.onEntering(a,s),t.onTransitionEnd(u,(function(){t.safeSetState({status:vl},(function(){t.props.onEntered(a,s)}))}))})))},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:o.findDOMNode(this);t&&!cl?(this.props.onExit(r),this.safeSetState({status:ml},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:hl},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:hl},(function(){e.props.onExited(r)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],s=i[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if(e===dl)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,b(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return l.createElement(fl.Provider,{value:null},"function"===typeof n?n(e,r):l.cloneElement(l.Children.only(n),r))},r}(l.Component);function yl(){}gl.contextType=fl,gl.propTypes={},gl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:yl,onEntering:yl,onEntered:yl,onExit:yl,onExiting:yl,onExited:yl},gl.UNMOUNTED=dl,gl.EXITED=hl,gl.ENTERING=pl,gl.ENTERED=vl,gl.EXITING=ml;var bl,_l,xl=gl;function wl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wl(Object(n),!0).forEach((function(t){Cl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sl(){return Sl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sl.apply(this,arguments)}function El(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Tl(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function Ml(e){document.body.style.paddingRight=e>0?"".concat(e,"px"):null}function Ol(){return document.body.clientWidth<window.innerWidth}function jl(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function Pl(){var e=Tl(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;Ol()&&Ml(n+e)}function Nl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_l;return t?e.split(" ").map((function(e){return t[e]||e})).join(" "):e}function Dl(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function Ll(e,t){for(var n,r=Array.isArray(t)?t:[t],i=r.length,o={};i>0;)o[n=r[i-=1]]=e[n];return o}var Rl={};function Al(e){Rl[e]||("undefined"!==typeof console&&console.error(e),Rl[e]=!0)}function Il(e,t){return function(n,r,i){null!==n[r]&&"undefined"!==typeof n[r]&&Al('"'.concat(r,'" property of "').concat(i,'" has been deprecated.\n').concat(t));for(var o=arguments.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=arguments[s];return e.apply(void 0,[n,r,i].concat(a))}}var Fl="object"===typeof window&&window.Element||function(){};function zl(e,t,n){if(!(e[t]instanceof Fl))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var Bl=ys.oneOfType([ys.string,ys.func,zl,ys.shape({current:ys.any})]),Ul=ys.oneOfType([ys.func,ys.string,ys.shape({$$typeof:ys.symbol,render:ys.func}),ys.arrayOf(ys.oneOfType([ys.func,ys.string,ys.shape({$$typeof:ys.symbol,render:ys.func})]))]),Vl={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},Hl=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Wl={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},Zl={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},Yl=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ql=!("undefined"===typeof window||!window.document||!window.document.createElement);function Gl(e){return!(!e||"object"!==typeof e)&&"current"in e}function Kl(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function Ql(e){var t=typeof e;if("number"===t)return e;if("symbol"===t||"object"===t&&"[object Symbol]"===Kl(e))return NaN;if($l(e)){var n="function"===typeof e.valueOf?e.valueOf():e;e=$l(n)?"".concat(n):n}if("string"!==t)return 0===e?e:+e;e=e.replace(/^\s+|\s+$/g,"");var r=/^0b[01]+$/i.test(e);return r||/^0o[0-7]+$/i.test(e)?parseInt(e.slice(2),r?2:8):/^[-+]0x[0-9a-f]+$/i.test(e)?NaN:+e}function $l(e){var t=typeof e;return null!=e&&("object"===t||"function"===t)}function Xl(e){if(!$l(e))return!1;var t=Kl(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object Proxy]"===t}function Jl(e){if(Gl(e))return e.current;if(Xl(e))return e();if("string"===typeof e&&ql){var t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll("#".concat(e))),!t.length)throw new Error("The target '".concat(e,"' could not be identified in the dom, tip: check spelling"));return t}return e}function eu(e){return null!==e&&(Array.isArray(e)||ql&&"number"===typeof e.length)}function tu(e,t){var n=Jl(e);return t?eu(n)?n:null===n?[]:[n]:eu(n)?n[0]:n}var nu=["touchstart","click"];function ru(e,t,n,r){var i=e;eu(i)||(i=[i]);var o=n;if("string"===typeof o&&(o=o.split(/\s+/)),!eu(i)||"function"!==typeof t||!Array.isArray(o))throw new Error("\n The first argument of this function must be DOM node or an array on DOM nodes or NodeList.\n The second must be a function.\n The third is a string or an array of strings that represents DOM events\n ");return Array.prototype.forEach.call(o,(function(e){Array.prototype.forEach.call(i,(function(n){n.addEventListener(e,t,r)}))})),function(){Array.prototype.forEach.call(o,(function(e){Array.prototype.forEach.call(i,(function(n){n.removeEventListener(e,t,r)}))}))}}var iu=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],ou=["className","cssModule","fluid","tag"],au={tag:Ul,fluid:ys.oneOfType([ys.bool,ys.string]),className:ys.string,cssModule:ys.object},su=function(e){var t=e.className,n=e.cssModule,r=e.fluid,i=e.tag,o=El(e,ou),a="container";!0===r?a="container-fluid":r&&(a="container-".concat(r));var s=Nl(Hs(t,a),n);return l.createElement(i,Sl({},o,{className:s}))};su.propTypes=au,su.defaultProps={tag:"div"};var lu=["className","cssModule","noGutters","tag","form","widths"],uu=ys.oneOfType([ys.number,ys.string]),cu={tag:Ul,noGutters:Il(ys.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:ys.string,cssModule:ys.object,form:ys.bool,xs:uu,sm:uu,md:uu,lg:uu,xl:uu,xxl:uu},fu={tag:"div",widths:["xs","sm","md","lg","xl","xxl"]},du=function(e){var t=e.className,n=e.cssModule,r=e.noGutters,i=e.tag,o=e.form,a=e.widths,s=El(e,lu),u=[];a.forEach((function(t,n){var r=e[t];if(delete s[t],r){var i=!n;u.push(i?"row-cols-".concat(r):"row-cols-".concat(t,"-").concat(r))}}));var c=Nl(Hs(t,r?"gx-0":null,o?"form-row":"row",u),n);return l.createElement(i,Sl({},s,{className:c}))};du.propTypes=cu,du.defaultProps=fu;var hu=du,pu=["className","cssModule","widths","tag"],vu=["xs","sm","md","lg","xl","xxl"],mu=ys.oneOfType([ys.number,ys.string]),gu=ys.oneOfType([ys.bool,ys.number,ys.string,ys.shape({size:ys.oneOfType([ys.bool,ys.number,ys.string]),order:mu,offset:mu})]),yu={tag:Ul,xs:gu,sm:gu,md:gu,lg:gu,xl:gu,xxl:gu,className:ys.string,cssModule:ys.object,widths:ys.array},bu={tag:"div",widths:vu},_u=function(e,t,n){return!0===n||""===n?e?"col":"col-".concat(t):"auto"===n?e?"col-auto":"col-".concat(t,"-auto"):e?"col-".concat(n):"col-".concat(t,"-").concat(n)},xu=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vu,r=[];return n.forEach((function(n,i){var o=e[n];if(delete e[n],o||""===o){var a=!i;if($l(o)){var s,l=a?"-":"-".concat(n,"-"),u=_u(a,n,o.size);r.push(Nl(Hs((He(s={},u,o.size||""===o.size),He(s,"order".concat(l).concat(o.order),o.order||0===o.order),He(s,"offset".concat(l).concat(o.offset),o.offset||0===o.offset),s)),t))}else{var c=_u(a,n,o);r.push(c)}}})),{colClasses:r,attributes:e}},wu=function(e){var t=e.className,n=e.cssModule,r=e.widths,i=e.tag,o=El(e,pu),a=xu(o,n,r),s=a.attributes,u=a.colClasses;u.length||u.push("col");var c=Nl(Hs(t,u),n);return l.createElement(i,Sl({},s,{className:c}))};wu.propTypes=yu,wu.defaultProps=bu;var ku=wu,Cu=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"],Su={light:ys.bool,dark:ys.bool,full:ys.bool,fixed:ys.string,sticky:ys.string,color:ys.string,role:ys.string,tag:Ul,container:ys.oneOfType([ys.bool,ys.string]),className:ys.string,cssModule:ys.object,expand:ys.oneOfType([ys.bool,ys.string]),children:ys.node},Eu=function(e){var t,n=e.expand,r=e.className,i=e.cssModule,o=e.light,a=e.dark,s=e.fixed,u=e.sticky,c=e.color,f=e.container,d=e.tag,h=e.children,p=El(e,Cu),v=Nl(Hs(r,"navbar",function(e){return!1!==e&&(!0===e||"xs"===e?"navbar-expand":"navbar-expand-".concat(e))}(n),(He(t={"navbar-light":o,"navbar-dark":a},"bg-".concat(c),c),He(t,"fixed-".concat(s),s),He(t,"sticky-".concat(u),u),t)),i),m=f&&!0===f?"container":"container-".concat(f);return l.createElement(d,Sl({},p,{className:v}),f?l.createElement("div",{className:m},h):h)};Eu.propTypes=Su,Eu.defaultProps={tag:"nav",expand:!1,container:"fluid"};var Tu=Eu,Mu=["className","cssModule","tag"],Ou={tag:Ul,className:ys.string,cssModule:ys.object},ju=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=El(e,Mu),o=Nl(Hs(t,"navbar-brand"),n);return l.createElement(r,Sl({},i,{className:o}))};ju.propTypes=Ou,ju.defaultProps={tag:"a"};var Pu=ju,Nu=["className","cssModule","active","tag"],Du={tag:Ul,className:ys.string,cssModule:ys.object},Lu=function(e){var t=e.className,n=e.cssModule,r=(e.active,e.tag),i=El(e,Nu),o=Nl(Hs(t,"navbar-text"),n);return l.createElement(r,Sl({},i,{className:o}))};Lu.propTypes=Du,Lu.defaultProps={tag:"span"};var Ru=["className","cssModule","children","tag"],Au={tag:Ul,type:ys.string,className:ys.string,cssModule:ys.object,children:ys.node},Iu=function(e){var t=e.className,n=e.cssModule,r=e.children,i=e.tag,o=El(e,Ru),a=Nl(Hs(t,"navbar-toggler"),n);return l.createElement(i,Sl({"aria-label":"Toggle navigation"},o,{className:a}),r||l.createElement("span",{className:Nl("navbar-toggler-icon",n)}))};Iu.propTypes=Au,Iu.defaultProps={tag:"button",type:"button"};var Fu=Iu,zu=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"],Bu={tabs:ys.bool,pills:ys.bool,vertical:ys.oneOfType([ys.bool,ys.string]),horizontal:ys.string,justified:ys.bool,fill:ys.bool,navbar:ys.bool,card:ys.bool,tag:Ul,className:ys.string,cssModule:ys.object},Uu=function(e){var t=e.className,n=e.cssModule,r=e.tabs,i=e.pills,o=e.vertical,a=e.horizontal,s=e.justified,u=e.fill,c=e.navbar,f=e.card,d=e.tag,h=El(e,zu),p=Nl(Hs(t,c?"navbar-nav":"nav",!!a&&"justify-content-".concat(a),function(e){return!1!==e&&(!0===e||"xs"===e?"flex-column":"flex-".concat(e,"-column"))}(o),{"nav-tabs":r,"card-header-tabs":f&&r,"nav-pills":i,"card-header-pills":f&&i,"nav-justified":s,"nav-fill":u}),n);return l.createElement(d,Sl({},h,{className:p}))};Uu.propTypes=Bu,Uu.defaultProps={tag:"ul",vertical:!1};var Vu=Uu,Hu=["className","cssModule","active","tag"],Wu={tag:Ul,active:ys.bool,className:ys.string,cssModule:ys.object},Zu=function(e){var t=e.className,n=e.cssModule,r=e.active,i=e.tag,o=El(e,Hu),a=Nl(Hs(t,"nav-item",!!r&&"active"),n);return l.createElement(i,Sl({},o,{className:a}))};Zu.propTypes=Wu,Zu.defaultProps={tag:"li"};var Yu=Zu,qu=["className","cssModule","active","tag","innerRef"],Gu={tag:Ul,innerRef:ys.oneOfType([ys.object,ys.func,ys.string]),disabled:ys.bool,active:ys.bool,className:ys.string,cssModule:ys.object,onClick:ys.func,href:ys.any},Ku=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).onClick=r.onClick.bind(As(r)),r}return Vt(n,[{key:"onClick",value:function(e){this.props.disabled?e.preventDefault():("#"===this.props.href&&e.preventDefault(),this.props.onClick&&this.props.onClick(e))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,r=e.active,i=e.tag,o=e.innerRef,a=El(e,qu),s=Nl(Hs(t,"nav-link",{disabled:a.disabled,active:r}),n);return l.createElement(i,Sl({},a,{ref:o,onClick:this.onClick,className:s}))}}]),n}(l.Component);Ku.propTypes=Gu,Ku.defaultProps={tag:"a"};var Qu=Ku,$u=["className","listClassName","cssModule","children","tag","listTag","aria-label"],Xu={tag:Ul,listTag:Ul,className:ys.string,listClassName:ys.string,cssModule:ys.object,children:ys.node,"aria-label":ys.string},Ju=function(e){var t=e.className,n=e.listClassName,r=e.cssModule,i=e.children,o=e.tag,a=e.listTag,s=e["aria-label"],u=El(e,$u),c=Nl(Hs(t),r),f=Nl(Hs("breadcrumb",n),r);return l.createElement(o,Sl({},u,{className:c,"aria-label":s}),l.createElement(a,{className:f},i))};Ju.propTypes=Xu,Ju.defaultProps={tag:"nav",listTag:"ol","aria-label":"breadcrumb"};var ec=["className","cssModule","active","tag"],tc={tag:Ul,active:ys.bool,className:ys.string,cssModule:ys.object},nc=function(e){var t=e.className,n=e.cssModule,r=e.active,i=e.tag,o=El(e,ec),a=Nl(Hs(t,!!r&&"active","breadcrumb-item"),n);return l.createElement(i,Sl({},o,{className:a,"aria-current":r?"page":void 0}))};nc.propTypes=tc,nc.defaultProps={tag:"li"};var rc=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"],ic={active:ys.bool,"aria-label":ys.string,block:ys.bool,color:ys.string,disabled:ys.bool,outline:ys.bool,tag:Ul,innerRef:ys.oneOfType([ys.object,ys.func,ys.string]),onClick:ys.func,size:ys.string,children:ys.node,className:ys.string,cssModule:ys.object,close:ys.bool},oc=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).onClick=r.onClick.bind(As(r)),r}return Vt(n,[{key:"onClick",value:function(e){if(!this.props.disabled)return this.props.onClick?this.props.onClick(e):void 0;e.preventDefault()}},{key:"render",value:function(){var e=this.props,t=e.active,n=e["aria-label"],r=e.block,i=e.className,o=e.close,a=e.cssModule,s=e.color,u=e.outline,c=e.size,f=e.tag,d=e.innerRef,h=El(e,rc),p="btn".concat(u?"-outline":"","-").concat(s),v=Nl(Hs(i,o&&"btn-close",o||"btn",o||p,!!c&&"btn-".concat(c),!!r&&"d-block w-100",{active:t,disabled:this.props.disabled}),a);h.href&&"button"===f&&(f="a");var m=o?"Close":null;return l.createElement(f,Sl({type:"button"===f&&h.onClick?"button":void 0},h,{className:v,ref:d,onClick:this.onClick,"aria-label":n||m}))}}]),n}(l.Component);oc.propTypes=ic,oc.defaultProps={color:"secondary",tag:"button"};var ac=oc,sc=["className"],lc={onClick:ys.func,onBlur:ys.func,onFocus:ys.func,defaultValue:ys.bool},uc=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).state={toggled:e.defaultValue,focus:!1},r.onBlur=r.onBlur.bind(As(r)),r.onFocus=r.onFocus.bind(As(r)),r.onClick=r.onClick.bind(As(r)),r}return Vt(n,[{key:"onBlur",value:function(e){this.props.onBlur&&this.props.onBlur(e),this.setState({focus:!1})}},{key:"onFocus",value:function(e){this.props.onFocus&&this.props.onFocus(e),this.setState({focus:!0})}},{key:"onClick",value:function(e){this.props.onClick&&this.props.onClick(e),this.setState((function(e){return{toggled:!e.toggled}}))}},{key:"render",value:function(){var e=this.props,t=e.className,n=El(e,sc),r=Nl(Hs(t,{focus:this.state.focus}),this.props.cssModule);return l.createElement(ac,Sl({active:this.state.toggled,onBlur:this.onBlur,onFocus:this.onFocus,onClick:this.onClick,className:r},n))}}]),n}(l.Component);uc.propTypes=lc,uc.defaultProps={defaultValue:!1};var cc=l.createContext({}),fc=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"],dc={a11y:ys.bool,disabled:ys.bool,direction:ys.oneOf(["up","down","start","end","left","right"]),group:ys.bool,isOpen:ys.bool,nav:ys.bool,active:ys.bool,size:ys.string,tag:Ul,toggle:ys.func,children:ys.node,className:ys.string,cssModule:ys.object,inNavbar:ys.bool,setActiveFromChild:ys.bool,menuRole:ys.oneOf(["listbox","menu"])},hc=[Zl.space,Zl.enter,Zl.up,Zl.down,Zl.end,Zl.home],pc=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).addEvents=r.addEvents.bind(As(r)),r.handleDocumentClick=r.handleDocumentClick.bind(As(r)),r.handleKeyDown=r.handleKeyDown.bind(As(r)),r.removeEvents=r.removeEvents.bind(As(r)),r.toggle=r.toggle.bind(As(r)),r.handleMenuRef=r.handleMenuRef.bind(As(r)),r.containerRef=l.createRef(),r.menuRef=l.createRef(),r}return Vt(n,[{key:"handleMenuRef",value:function(e){this.menuRef.current=e}},{key:"getContextValue",value:function(){return{toggle:this.toggle,isOpen:this.props.isOpen,direction:"down"===this.props.direction&&this.props.dropup?"up":this.props.direction,inNavbar:this.props.inNavbar,disabled:this.props.disabled,onMenuRef:this.handleMenuRef,menuRole:this.props.menuRole}}},{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(e){this.props.isOpen!==e.isOpen&&this.handleProps()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"getContainer",value:function(){return this.containerRef.current}},{key:"getMenu",value:function(){return this.menuRef.current}},{key:"getMenuCtrl",value:function(){return this._$menuCtrl||(this._$menuCtrl=this.getContainer().querySelector("[aria-expanded]")),this._$menuCtrl}},{key:"getItemType",value:function(){return"listbox"===this.context.menuRole?"option":"menuitem"}},{key:"getMenuItems",value:function(){var e=this.getMenu()||this.getContainer();return[].slice.call(e.querySelectorAll('[role="'.concat(this.getItemType(),'"]')))}},{key:"addEvents",value:function(){var e=this;["click","touchstart","keyup"].forEach((function(t){return document.addEventListener(t,e.handleDocumentClick,!0)}))}},{key:"removeEvents",value:function(){var e=this;["click","touchstart","keyup"].forEach((function(t){return document.removeEventListener(t,e.handleDocumentClick,!0)}))}},{key:"handleDocumentClick",value:function(e){if(!e||3!==e.which&&("keyup"!==e.type||e.which===Zl.tab)){var t=this.getContainer(),n=this.getMenu(),r=t.contains(e.target)&&t!==e.target,i=t.classList.contains("input-group")&&t.classList.contains("dropdown")&&"INPUT"===e.target.tagName,o=n&&n.contains(e.target)&&n!==e.target;(!(r&&!i||o)||"keyup"===e.type&&e.which!==Zl.tab)&&this.toggle(e)}}},{key:"handleKeyDown",value:function(e){var t=this,n="menuitem"===e.target.getAttribute("role")||"option"===e.target.getAttribute("role"),r=this.getMenuCtrl()===e.target,i=Zl.tab===e.which;if(!(/input|textarea/i.test(e.target.tagName)||i&&!this.props.a11y||i&&!n&&!r)&&((-1!==hc.indexOf(e.which)||e.which>=48&&e.which<=90)&&e.preventDefault(),!this.props.disabled&&(r&&([Zl.space,Zl.enter,Zl.up,Zl.down].indexOf(e.which)>-1?(this.props.isOpen||this.toggle(e),setTimeout((function(){return t.getMenuItems()[0].focus()}))):this.props.isOpen&&i?(e.preventDefault(),this.getMenuItems()[0].focus()):this.props.isOpen&&e.which===Zl.esc&&this.toggle(e)),this.props.isOpen&&n)))if([Zl.tab,Zl.esc].indexOf(e.which)>-1)this.toggle(e),this.getMenuCtrl().focus();else if([Zl.space,Zl.enter].indexOf(e.which)>-1)e.target.click(),this.getMenuCtrl().focus();else if([Zl.down,Zl.up].indexOf(e.which)>-1||[Zl.n,Zl.p].indexOf(e.which)>-1&&e.ctrlKey){var o=this.getMenuItems(),a=o.indexOf(e.target);Zl.up===e.which||Zl.p===e.which&&e.ctrlKey?a=0!==a?a-1:o.length-1:(Zl.down===e.which||Zl.n===e.which&&e.ctrlKey)&&(a=a===o.length-1?0:a+1),o[a].focus()}else if(Zl.end===e.which){var s=this.getMenuItems();s[s.length-1].focus()}else if(Zl.home===e.which){this.getMenuItems()[0].focus()}else if(e.which>=48&&e.which<=90)for(var l=this.getMenuItems(),u=String.fromCharCode(e.which).toLowerCase(),c=0;c<l.length;c+=1){if((l[c].textContent&&l[c].textContent[0].toLowerCase())===u){l[c].focus();break}}}},{key:"handleProps",value:function(){this.props.isOpen?this.addEvents():this.removeEvents()}},{key:"toggle",value:function(e){return this.props.disabled?e&&e.preventDefault():this.props.toggle(e)}},{key:"render",value:function(){var e,t,n=Dl(this.props,["toggle","disabled","inNavbar","a11y"]),r=n.className,i=n.cssModule,o=n.direction,a=n.isOpen,s=n.group,u=n.size,c=n.nav,f=n.setActiveFromChild,d=n.active,h=n.tag,p=(n.menuRole,El(n,fc)),v=h||(c?"li":"div"),m=!1;f&&l.Children.map(this.props.children[1].props.children,(function(e){e&&e.props.active&&(m=!0)}));var g=Nl(Hs(r,!(!c||!d)&&"active",!(!f||!m)&&"active",(He(e={"btn-group":s},"btn-group-".concat(u),!!u),He(e,"dropdown",!s),He(e,"dropup","up"===o),He(e,"dropstart","start"===o||"left"===o),He(e,"dropend","end"===o||"right"===o),He(e,"show",a),He(e,"nav-item",c),e)),i);return l.createElement(cc.Provider,{value:this.getContextValue()},l.createElement(qs,null,l.createElement(v,Sl({},p,(He(t={},"string"===typeof v?"ref":"innerRef",this.containerRef),He(t,"onKeyDown",this.handleKeyDown),He(t,"className",g),t)))))}}]),n}(l.Component);pc.propTypes=dc,pc.defaultProps={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1};var vc=pc,mc={children:ys.node},gc=function(e){return l.createElement(vc,Sl({group:!0},e))};gc.propTypes=mc;var yc=gc,bc=["className","cssModule","size","vertical","tag"],_c={tag:Ul,"aria-label":ys.string,className:ys.string,cssModule:ys.object,role:ys.string,size:ys.string,vertical:ys.bool},xc=function(e){var t=e.className,n=e.cssModule,r=e.size,i=e.vertical,o=e.tag,a=El(e,bc),s=Nl(Hs(t,!!r&&"btn-group-"+r,i?"btn-group-vertical":"btn-group"),n);return l.createElement(o,Sl({},a,{className:s}))};xc.propTypes=_c,xc.defaultProps={tag:"div",role:"group"};var wc=["className","cssModule","tag"],kc={tag:Ul,"aria-label":ys.string,className:ys.string,cssModule:ys.object,role:ys.string},Cc=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=El(e,wc),o=Nl(Hs(t,"btn-toolbar"),n);return l.createElement(r,Sl({},i,{className:o}))};Cc.propTypes=kc,Cc.defaultProps={tag:"div",role:"toolbar"};var Sc=["className","cssModule","divider","tag","header","active","text"],Ec={children:ys.node,active:ys.bool,disabled:ys.bool,divider:ys.bool,tag:Ul,header:ys.bool,onClick:ys.func,className:ys.string,cssModule:ys.object,toggle:ys.bool,text:ys.bool},Tc=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).onClick=r.onClick.bind(As(r)),r.getTabIndex=r.getTabIndex.bind(As(r)),r}return Vt(n,[{key:"getRole",value:function(){return"listbox"===this.context.menuRole?"option":"menuitem"}},{key:"onClick",value:function(e){var t=this.props,n=t.disabled,r=t.header,i=t.divider,o=t.text;n||r||i||o?e.preventDefault():(this.props.onClick&&this.props.onClick(e),this.props.toggle&&this.context.toggle(e))}},{key:"getTabIndex",value:function(){var e=this.props,t=e.disabled,n=e.header,r=e.divider,i=e.text;return t||n||r||i?"-1":"0"}},{key:"render",value:function(){var e=this.getTabIndex(),t=e>-1?this.getRole():void 0,n=Dl(this.props,["toggle"]),r=n.className,i=n.cssModule,o=n.divider,a=n.tag,s=n.header,u=n.active,c=n.text,f=El(n,Sc),d=Nl(Hs(r,{disabled:f.disabled,"dropdown-item":!o&&!s&&!c,active:u,"dropdown-header":s,"dropdown-divider":o,"dropdown-item-text":c}),i);return"button"===a&&(s?a="h6":o?a="div":f.href?a="a":c&&(a="span")),l.createElement(a,Sl({type:"button"===a&&(f.onClick||this.props.toggle)?"button":void 0},f,{tabIndex:e,role:t,className:d,onClick:this.onClick}))}}]),n}(l.Component);Tc.propTypes=Ec,Tc.defaultProps={tag:"button",toggle:!0},Tc.contextType=cc;var Mc=Tc,Oc=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container"],jc={tag:Ul,children:ys.node.isRequired,dark:ys.bool,end:ys.bool,flip:ys.bool,modifiers:ys.array,className:ys.string,cssModule:ys.object,persist:ys.bool,strategy:ys.string,container:Bl,right:Il(ys.bool,'Please use "end" instead.')},Pc={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},Nc=function(e){Fs(n,e);var t=Vs(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Vt(n,[{key:"getRole",value:function(){return"listbox"===this.context.menuRole?"listbox":"menu"}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.cssModule,i=t.dark,a=t.end,s=t.right,u=t.tag,c=t.flip,f=t.modifiers,d=t.persist,h=t.strategy,p=t.container,v=El(t,Oc),m=Nl(Hs(n,"dropdown-menu",{"dropdown-menu-dark":i,"dropdown-menu-end":a||s,show:this.context.isOpen}),r),y=u;if(d||this.context.isOpen&&!this.context.inNavbar){var b=Pc[this.context.direction]||"bottom",_=a||s?"end":"start",x="".concat(b,"-").concat(_),w=[].concat(g(f),[{name:"flip",enabled:!!c}]),k=l.createElement(al,{placement:x,modifiers:w,strategy:h},(function(t){var n=t.ref,r=t.style,i=t.placement,o=kl(kl({},e.props.style),r);return l.createElement(y,Sl({tabIndex:"-1",role:e.getRole(),ref:function(t){n(t);var r=e.context.onMenuRef;r&&r(t)}},v,{style:o,"aria-hidden":!e.context.isOpen,className:m,"data-popper-placement":i}))}));return p?o.createPortal(k,tu(p)):k}return l.createElement(y,Sl({tabIndex:"-1",role:this.getRole()},v,{"aria-hidden":!this.context.isOpen,className:m,"data-popper-placement":v.placement}))}}]),n}(l.Component);Nc.propTypes=jc,Nc.defaultProps={tag:"div",flip:!0,modifiers:[]},Nc.contextType=cc;var Dc=Nc,Lc=["className","color","cssModule","caret","split","nav","tag","innerRef"],Rc={caret:ys.bool,color:ys.string,children:ys.node,className:ys.string,cssModule:ys.object,disabled:ys.bool,onClick:ys.func,"aria-haspopup":ys.bool,split:ys.bool,tag:Ul,nav:ys.bool},Ac=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).onClick=r.onClick.bind(As(r)),r}return Vt(n,[{key:"onClick",value:function(e){this.props.disabled||this.context.disabled?e.preventDefault():(this.props.nav&&!this.props.tag&&e.preventDefault(),this.props.onClick&&this.props.onClick(e),this.context.toggle(e))}},{key:"getRole",value:function(){return this.context.menuRole||this.props["aria-haspopup"]}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.className,i=n.color,o=n.cssModule,a=n.caret,s=n.split,u=n.nav,c=n.tag,f=n.innerRef,d=El(n,Lc),h=d["aria-label"]||"Toggle Dropdown",p=Nl(Hs(r,{"dropdown-toggle":a||s,"dropdown-toggle-split":s,"nav-link":u}),o),v="undefined"!==typeof d.children?d.children:l.createElement("span",{className:"visually-hidden"},h);return u&&!c?(e="a",d.href="#"):c?e=c:(e=ac,d.color=i,d.cssModule=o),this.context.inNavbar?l.createElement(e,Sl({},d,{className:p,onClick:this.onClick,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:v})):l.createElement(ul,{innerRef:f},(function(n){var r,i=n.ref;return l.createElement(e,Sl({},d,(He(r={},"string"===typeof e?"ref":"innerRef",i),He(r,"className",p),He(r,"onClick",t.onClick),He(r,"aria-expanded",t.context.isOpen),He(r,"aria-haspopup",t.getRole()),He(r,"children",v),r)))}))}}]),n}(l.Component);Ac.propTypes=Rc,Ac.defaultProps={color:"secondary","aria-haspopup":!0},Ac.contextType=cc;var Ic=Ac,Fc=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"],zc=kl(kl({},xl.propTypes),{},{children:ys.oneOfType([ys.arrayOf(ys.node),ys.node]),tag:Ul,baseClass:ys.string,baseClassActive:ys.string,className:ys.string,cssModule:ys.object,innerRef:ys.oneOfType([ys.object,ys.string,ys.func])}),Bc=kl(kl({},xl.defaultProps),{},{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:Vl.Fade,appear:!0,enter:!0,exit:!0,in:!0});function Uc(e){var t=e.tag,n=e.baseClass,r=e.baseClassActive,i=e.className,o=e.cssModule,a=e.children,s=e.innerRef,u=El(e,Fc),c=Ll(u,Hl),f=Dl(u,Hl);return l.createElement(xl,c,(function(e){var u=Nl(Hs(i,n,"entered"===e&&r),o);return l.createElement(t,Sl({className:u},f,{ref:s}),a)}))}Uc.propTypes=zc,Uc.defaultProps=Bc;var Vc=l.createContext({}),Hc=["flush","open","toggle","className","cssModule","tag","innerRef"],Wc={tag:Ul,className:ys.string,cssModule:ys.object,innerRef:ys.oneOfType([ys.object,ys.string,ys.func]),children:ys.node,flush:ys.bool,open:ys.oneOfType([ys.array,ys.string]).isRequired,toggle:ys.func.isRequired},Zc=function(e){var t=e.flush,n=e.open,r=e.toggle,i=e.className,o=e.cssModule,a=e.tag,s=e.innerRef,u=El(e,Hc),c=Nl(Hs(i,"accordion",{"accordion-flush":t}),o),f=(0,l.useMemo)((function(){return{open:n,toggle:r}}));return l.createElement(Vc.Provider,{value:f},l.createElement(a,Sl({},u,{className:c,ref:s})))};Zc.propTypes=Wc,Zc.defaultProps={tag:"div"};var Yc=Zc,qc={tag:Ul,className:ys.string,cssModule:ys.object,innerRef:ys.oneOfType([ys.object,ys.string,ys.func]),children:ys.node,defaultOpen:ys.oneOfType([ys.array,ys.string]),stayOpen:ys.bool};Yc.propTypes=qc,Yc.defaultProps={tag:"div"};var Gc=["className","cssModule","tag","innerRef","children","targetId"],Kc={tag:Ul,className:ys.string,cssModule:ys.object,innerRef:ys.oneOfType([ys.object,ys.string,ys.func]),children:ys.node,targetId:ys.string.isRequired},Qc=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=e.innerRef,o=e.children,a=e.targetId,s=El(e,Gc),u=(0,l.useContext)(Vc),c=u.open,f=u.toggle,d=Nl(Hs(t,"accordion-header"),n),h=Nl(Hs("accordion-button",{collapsed:!(Array.isArray(c)?c.includes(a):c===a)}),n);return l.createElement(r,Sl({},s,{className:d,ref:i}),l.createElement("button",{type:"button",className:h,onClick:function(){return f(a)}},o))};Qc.propTypes=Kc,Qc.defaultProps={tag:"h2"};var $c=["className","cssModule","tag","innerRef"],Xc={tag:Ul,className:ys.string,cssModule:ys.object,innerRef:ys.oneOfType([ys.object,ys.string,ys.func]),children:ys.node},Jc=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=e.innerRef,o=El(e,$c),a=Nl(Hs(t,"accordion-item"),n);return l.createElement(r,Sl({},o,{className:a,ref:i}))};Jc.propTypes=Xc,Jc.defaultProps={tag:"div"};var ef=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],tf=kl(kl({},xl.propTypes),{},{horizontal:ys.bool,isOpen:ys.bool,children:ys.oneOfType([ys.arrayOf(ys.node),ys.node]),tag:Ul,className:ys.node,navbar:ys.bool,cssModule:ys.object,innerRef:ys.oneOfType([ys.func,ys.string,ys.object])}),nf=kl(kl({},xl.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:Vl.Collapse}),rf=(He(bl={},Wl.ENTERING,"collapsing"),He(bl,Wl.ENTERED,"collapse show"),He(bl,Wl.EXITING,"collapsing"),He(bl,Wl.EXITED,"collapse"),bl);var of=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).state={dimension:null},["onEntering","onEntered","onExit","onExiting","onExited"].forEach((function(e){r[e]=r[e].bind(As(r))})),r}return Vt(n,[{key:"getDimension",value:function(e){return this.props.horizontal?e.scrollWidth:e.scrollHeight}},{key:"onEntering",value:function(e,t){this.setState({dimension:this.getDimension(e)}),this.props.onEntering(e,t)}},{key:"onEntered",value:function(e,t){this.setState({dimension:null}),this.props.onEntered(e,t)}},{key:"onExit",value:function(e){this.setState({dimension:this.getDimension(e)}),this.props.onExit(e)}},{key:"onExiting",value:function(e){this.getDimension(e),this.setState({dimension:0}),this.props.onExiting(e)}},{key:"onExited",value:function(e){this.setState({dimension:null}),this.props.onExited(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.tag,r=t.horizontal,i=t.isOpen,o=t.className,a=t.navbar,s=t.cssModule,u=t.children,c=(t.innerRef,El(t,ef)),f=this.state.dimension,d=Ll(c,Hl),h=Dl(c,Hl);return l.createElement(xl,Sl({},d,{in:i,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),(function(t){var i=function(e){return rf[e]||"collapse"}(t),c=Nl(Hs(o,r&&"collapse-horizontal",i,a&&"navbar-collapse"),s),d=null===f?null:He({},r?"width":"height",f);return l.createElement(n,Sl({},h,{style:kl(kl({},h.style),d),className:c,ref:e.props.innerRef}),u)}))}}]),n}(l.Component);of.propTypes=tf,of.defaultProps=nf;var af=of,sf=["className","cssModule","tag","innerRef","children","accordionId"],lf={tag:Ul,className:ys.string,cssModule:ys.object,innerRef:ys.oneOfType([ys.object,ys.string,ys.func]),children:ys.node,accordionId:ys.string.isRequired},uf=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=e.innerRef,o=e.children,a=e.accordionId,s=El(e,sf),u=(0,l.useContext)(Vc).open,c=Nl(Hs(t,"accordion-collapse"),n);return l.createElement(af,Sl({},s,{className:c,ref:i,isOpen:Array.isArray(u)?u.includes(a):u===a}),l.createElement(r,{className:"accordion-body"},o))};uf.propTypes=lf,uf.defaultProps={tag:"div"};var cf=["className","cssModule","color","innerRef","pill","tag"],ff={color:ys.string,pill:ys.bool,tag:Ul,innerRef:ys.oneOfType([ys.object,ys.func,ys.string]),children:ys.node,className:ys.string,cssModule:ys.object},df=function(e){var t=e.className,n=e.cssModule,r=e.color,i=e.innerRef,o=e.pill,a=e.tag,s=El(e,cf),u=Nl(Hs(t,"badge","bg-"+r,!!o&&"rounded-pill"),n);return s.href&&"span"===a&&(a="a"),l.createElement(a,Sl({},s,{className:u,ref:i}))};df.propTypes=ff,df.defaultProps={color:"secondary",pill:!1,tag:"span"};var hf=["className","cssModule","color","body","inverse","outline","tag","innerRef"],pf={tag:Ul,inverse:ys.bool,color:ys.string,body:ys.bool,outline:ys.bool,className:ys.string,cssModule:ys.object,innerRef:ys.oneOfType([ys.object,ys.string,ys.func])},vf=function(e){var t=e.className,n=e.cssModule,r=e.color,i=e.body,o=e.inverse,a=e.outline,s=e.tag,u=e.innerRef,c=El(e,hf),f=Nl(Hs(t,"card",!!o&&"text-white",!!i&&"card-body",!!r&&"".concat(a?"border":"bg","-").concat(r)),n);return l.createElement(s,Sl({},c,{className:f,ref:u}))};vf.propTypes=pf,vf.defaultProps={tag:"div"};var mf=vf,gf=["className","cssModule","tag"],yf={tag:Ul,className:ys.string,cssModule:ys.object},bf=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=El(e,gf),o=Nl(Hs(t,"card-group"),n);return l.createElement(r,Sl({},i,{className:o}))};bf.propTypes=yf,bf.defaultProps={tag:"div"};var _f=["className","cssModule","tag"],xf={tag:Ul,className:ys.string,cssModule:ys.object},wf=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=El(e,_f),o=Nl(Hs(t,"card-deck"),n);return l.createElement(r,Sl({},i,{className:o}))};wf.propTypes=xf,wf.defaultProps={tag:"div"};var kf=["className","cssModule","tag"],Cf={tag:Ul,className:ys.string,cssModule:ys.object},Sf=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=El(e,kf),o=Nl(Hs(t,"card-columns"),n);return l.createElement(r,Sl({},i,{className:o}))};Sf.propTypes=Cf,Sf.defaultProps={tag:"div"};var Ef=["className","cssModule","innerRef","tag"],Tf={tag:Ul,className:ys.string,cssModule:ys.object,innerRef:ys.oneOfType([ys.object,ys.string,ys.func])},Mf=function(e){var t=e.className,n=e.cssModule,r=e.innerRef,i=e.tag,o=El(e,Ef),a=Nl(Hs(t,"card-body"),n);return l.createElement(i,Sl({},o,{className:a,ref:r}))};Mf.propTypes=Tf,Mf.defaultProps={tag:"div"};var Of=Mf,jf=["className","cssModule","tag","innerRef"],Pf={tag:Ul,innerRef:ys.oneOfType([ys.object,ys.func,ys.string]),className:ys.string,cssModule:ys.object},Nf=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=e.innerRef,o=El(e,jf),a=Nl(Hs(t,"card-link"),n);return l.createElement(r,Sl({},o,{ref:i,className:a}))};Nf.propTypes=Pf,Nf.defaultProps={tag:"a"};var Df=["className","cssModule","tag"],Lf={tag:Ul,className:ys.string,cssModule:ys.object},Rf=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=El(e,Df),o=Nl(Hs(t,"card-footer"),n);return l.createElement(r,Sl({},i,{className:o}))};Rf.propTypes=Lf,Rf.defaultProps={tag:"div"};var Af=Rf,If=["className","cssModule","tag"],Ff={tag:Ul,className:ys.string,cssModule:ys.object},zf=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=El(e,If),o=Nl(Hs(t,"card-header"),n);return l.createElement(r,Sl({},i,{className:o}))};zf.propTypes=Ff,zf.defaultProps={tag:"div"};var Bf=zf,Uf=["className","cssModule","top","bottom","tag"],Vf={tag:Ul,top:ys.bool,bottom:ys.bool,className:ys.string,cssModule:ys.object},Hf=function(e){var t=e.className,n=e.cssModule,r=e.top,i=e.bottom,o=e.tag,a=El(e,Uf),s="card-img";r&&(s="card-img-top"),i&&(s="card-img-bottom");var u=Nl(Hs(t,s),n);return l.createElement(o,Sl({},a,{className:u}))};Hf.propTypes=Vf,Hf.defaultProps={tag:"img"};var Wf=["className","cssModule","tag"],Zf={tag:Ul,className:ys.string,cssModule:ys.object},Yf=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=El(e,Wf),o=Nl(Hs(t,"card-img-overlay"),n);return l.createElement(r,Sl({},i,{className:o}))};Yf.propTypes=Zf,Yf.defaultProps={tag:"div"};var qf=["in","children","cssModule","slide","tag","className"],Gf=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).state={startAnimation:!1},r.onEnter=r.onEnter.bind(As(r)),r.onEntering=r.onEntering.bind(As(r)),r.onExit=r.onExit.bind(As(r)),r.onExiting=r.onExiting.bind(As(r)),r.onExited=r.onExited.bind(As(r)),r}return Vt(n,[{key:"onEnter",value:function(e,t){this.setState({startAnimation:!1}),this.props.onEnter(e,t)}},{key:"onEntering",value:function(e,t){var n=e.offsetHeight;return this.setState({startAnimation:!0}),this.props.onEntering(e,t),n}},{key:"onExit",value:function(e){this.setState({startAnimation:!1}),this.props.onExit(e)}},{key:"onExiting",value:function(e){this.setState({startAnimation:!0}),e.dispatchEvent(new CustomEvent("slide.bs.carousel")),this.props.onExiting(e)}},{key:"onExited",value:function(e){e.dispatchEvent(new CustomEvent("slid.bs.carousel")),this.props.onExited(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.in,r=t.children,i=t.cssModule,o=t.slide,a=t.tag,s=t.className,u=El(t,qf);return l.createElement(xl,Sl({},u,{enter:o,exit:o,in:n,onEnter:this.onEnter,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),(function(t){var n=e.context.direction,o=t===Wl.ENTERED||t===Wl.EXITING,u=(t===Wl.ENTERING||t===Wl.EXITING)&&e.state.startAnimation&&("end"===n?"carousel-item-start":"carousel-item-end"),c=Nl(Hs(s,"carousel-item",o&&"active",u,t===Wl.ENTERING&&("end"===n?"carousel-item-next":"carousel-item-prev")),i);return l.createElement(a,{className:c},r)}))}}]),n}(l.Component);Gf.propTypes=kl(kl({},xl.propTypes),{},{tag:Ul,in:ys.bool,cssModule:ys.object,children:ys.node,slide:ys.bool,className:ys.string}),Gf.defaultProps=kl(kl({},xl.defaultProps),{},{tag:"div",timeout:Vl.Carousel,slide:!0}),Gf.contextTypes={direction:ys.string};var Kf=Gf,Qf=l.createContext({}),$f=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).handleKeyPress=r.handleKeyPress.bind(As(r)),r.renderItems=r.renderItems.bind(As(r)),r.hoverStart=r.hoverStart.bind(As(r)),r.hoverEnd=r.hoverEnd.bind(As(r)),r.handleTouchStart=r.handleTouchStart.bind(As(r)),r.handleTouchEnd=r.handleTouchEnd.bind(As(r)),r.touchStartX=0,r.touchStartY=0,r.state={activeIndex:r.props.activeIndex,direction:"end",indicatorClicked:!1},r}return Vt(n,[{key:"getContextValue",value:function(){return{direction:this.state.direction}}},{key:"componentDidMount",value:function(){"carousel"===this.props.ride&&this.setInterval(),document.addEventListener("keyup",this.handleKeyPress)}},{key:"componentDidUpdate",value:function(e,t){t.activeIndex!==this.state.activeIndex&&this.setInterval(this.props)}},{key:"componentWillUnmount",value:function(){this.clearInterval(),document.removeEventListener("keyup",this.handleKeyPress)}},{key:"setInterval",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;this.clearInterval(),e.interval&&(this.cycleInterval=setInterval((function(){e.next()}),parseInt(e.interval,10)))}))},{key:"clearInterval",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){clearInterval(this.cycleInterval)}))},{key:"hoverStart",value:function(){var e;("hover"===this.props.pause&&this.clearInterval(),this.props.mouseEnter)&&(e=this.props).mouseEnter.apply(e,arguments)}},{key:"hoverEnd",value:function(){var e;("hover"===this.props.pause&&this.setInterval(),this.props.mouseLeave)&&(e=this.props).mouseLeave.apply(e,arguments)}},{key:"handleKeyPress",value:function(e){this.props.keyboard&&(37===e.keyCode?this.props.previous():39===e.keyCode&&this.props.next())}},{key:"handleTouchStart",value:function(e){this.props.enableTouch&&(this.touchStartX=e.changedTouches[0].screenX,this.touchStartY=e.changedTouches[0].screenY)}},{key:"handleTouchEnd",value:function(e){if(this.props.enableTouch){var t=e.changedTouches[0].screenX,n=e.changedTouches[0].screenY,r=Math.abs(this.touchStartX-t);r<Math.abs(this.touchStartY-n)||r<40||(t<this.touchStartX?this.props.next():this.props.previous())}}},{key:"renderItems",value:function(e,t){var n=this,r=this.props.slide;return l.createElement("div",{className:t},e.map((function(e,t){var i=t===n.state.activeIndex;return l.cloneElement(e,{in:i,slide:r})})))}},{key:"render",value:function(){var e=this,t=this.props,n=t.cssModule,r=t.slide,i=t.className,o=t.dark,a=t.fade,s=Nl(Hs(i,"carousel",a,r&&"slide",o&&"carousel-dark"),n),u=Nl(Hs("carousel-inner"),n),c=this.props.children.filter((function(e){return null!==e&&void 0!==e&&"boolean"!==typeof e}));if(c.every((function(e){return e.type===Kf})))return l.createElement("div",{className:s,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},l.createElement(Qf.Provider,{value:this.getContextValue()},this.renderItems(c,u)));if(c[0]instanceof Array){var f=c[0],d=c[1],h=c[2];return l.createElement("div",{className:s,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},l.createElement(Qf.Provider,{value:this.getContextValue()},this.renderItems(f,u),d,h))}var p=c[0],v=l.cloneElement(p,{onClickHandler:function(t){"function"===typeof p.props.onClickHandler&&e.setState({indicatorClicked:!0},(function(){return p.props.onClickHandler(t)}))}}),m=c[1],g=c[2],y=c[3];return l.createElement("div",{className:s,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},l.createElement(Qf.Provider,{value:this.getContextValue()},v,this.renderItems(m,u),g,y))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=null,r=t.activeIndex,i=t.direction,o=t.indicatorClicked;return e.activeIndex!==r&&(e.activeIndex===r+1?i="end":e.activeIndex===r-1?i="start":e.activeIndex<r?i=o?"start":"end":e.activeIndex!==r&&(i=o?"end":"start"),n={activeIndex:e.activeIndex,direction:i,indicatorClicked:!1}),n}}]),n}(l.Component);$f.propTypes={activeIndex:ys.number,next:ys.func.isRequired,previous:ys.func.isRequired,keyboard:ys.bool,pause:ys.oneOf(["hover",!1]),ride:ys.oneOf(["carousel"]),interval:ys.oneOfType([ys.number,ys.string,ys.bool]),children:ys.array,mouseEnter:ys.func,mouseLeave:ys.func,slide:ys.bool,dark:ys.bool,cssModule:ys.object,className:ys.string,enableTouch:ys.bool},$f.defaultProps={interval:5e3,pause:"hover",keyboard:!0,slide:!0,enableTouch:!0,fade:!1},$f.childContextTypes={direction:ys.string};var Xf=$f,Jf=function(e){var t=e.direction,n=e.onClickHandler,r=e.cssModule,i=e.directionText,o=e.className,a=Nl(Hs(o,"carousel-control-".concat(t)),r),s=Nl(Hs("carousel-control-".concat(t,"-icon")),r),u=Nl(Hs("visually-hidden"),r);return l.createElement("a",{className:a,style:{cursor:"pointer"},role:"button",tabIndex:"0",onClick:function(e){e.preventDefault(),n()}},l.createElement("span",{className:s,"aria-hidden":"true"}),l.createElement("span",{className:u},i||t))};Jf.propTypes={direction:ys.oneOf(["prev","next"]).isRequired,onClickHandler:ys.func.isRequired,cssModule:ys.object,directionText:ys.string,className:ys.string};var ed=Jf,td=function(e){var t=e.items,n=e.activeIndex,r=e.cssModule,i=e.onClickHandler,o=e.className,a=Nl(Hs(o,"carousel-indicators"),r),s=t.map((function(e,t){var o=Nl(Hs({active:n===t}),r);return l.createElement("button",{"aria-label":e.caption,"data-bs-target":!0,key:"".concat(e.key||Object.values(e).join("")),onClick:function(e){e.preventDefault(),i(t)},className:o},e.caption)}));return l.createElement("div",{className:a},s)};td.propTypes={items:ys.array.isRequired,activeIndex:ys.number.isRequired,cssModule:ys.object,onClickHandler:ys.func.isRequired,className:ys.string};var nd=td,rd=function(e){var t=e.captionHeader,n=e.captionText,r=e.cssModule,i=e.className,o=Nl(Hs(i,"carousel-caption","d-none","d-md-block"),r);return l.createElement("div",{className:o},l.createElement("h3",null,t),l.createElement("p",null,n))};rd.propTypes={captionHeader:ys.node,captionText:ys.node.isRequired,cssModule:ys.object,className:ys.string};var id=rd,od=["defaultActiveIndex","autoPlay","indicators","controls","items","goToIndex"],ad={items:ys.array.isRequired,indicators:ys.bool,controls:ys.bool,autoPlay:ys.bool,defaultActiveIndex:ys.number,activeIndex:ys.number,next:ys.func,previous:ys.func,goToIndex:ys.func},sd=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).animating=!1,r.state={activeIndex:e.defaultActiveIndex||0},r.next=r.next.bind(As(r)),r.previous=r.previous.bind(As(r)),r.goToIndex=r.goToIndex.bind(As(r)),r.onExiting=r.onExiting.bind(As(r)),r.onExited=r.onExited.bind(As(r)),r}return Vt(n,[{key:"onExiting",value:function(){this.animating=!0}},{key:"onExited",value:function(){this.animating=!1}},{key:"next",value:function(){if(!this.animating){var e=this.state.activeIndex===this.props.items.length-1?0:this.state.activeIndex+1;this.setState({activeIndex:e})}}},{key:"previous",value:function(){if(!this.animating){var e=0===this.state.activeIndex?this.props.items.length-1:this.state.activeIndex-1;this.setState({activeIndex:e})}}},{key:"goToIndex",value:function(e){this.animating||this.setState({activeIndex:e})}},{key:"render",value:function(){var e=this,t=this.props,n=(t.defaultActiveIndex,t.autoPlay),r=t.indicators,i=t.controls,o=t.items,a=t.goToIndex,s=El(t,od),u=this.state.activeIndex,c=o.map((function(t){var n=t.key||t.src;return l.createElement(Kf,{onExiting:e.onExiting,onExited:e.onExited,key:n},l.createElement("img",{className:"d-block w-100",src:t.src,alt:t.altText}),l.createElement(id,{captionText:t.caption,captionHeader:t.header||t.caption}))}));return l.createElement(Xf,Sl({activeIndex:u,next:this.next,previous:this.previous,ride:n?"carousel":void 0},s),r&&l.createElement(nd,{items:o,activeIndex:s.activeIndex||u,onClickHandler:a||this.goToIndex}),c,i&&l.createElement(ed,{direction:"prev",directionText:"Previous",onClickHandler:s.previous||this.previous}),i&&l.createElement(ed,{direction:"next",directionText:"Next",onClickHandler:s.next||this.next}))}}]),n}(l.Component);sd.propTypes=ad,sd.defaultProps={controls:!0,indicators:!0,autoPlay:!0};var ld=["className","cssModule","tag"],ud={tag:Ul,className:ys.string,cssModule:ys.object},cd=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=El(e,ld),o=Nl(Hs(t,"card-subtitle"),n);return l.createElement(r,Sl({},i,{className:o}))};cd.propTypes=ud,cd.defaultProps={tag:"div"};var fd=["className","cssModule","tag"],dd={tag:Ul,className:ys.string,cssModule:ys.object},hd=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=El(e,fd),o=Nl(Hs(t,"card-text"),n);return l.createElement(r,Sl({},i,{className:o}))};hd.propTypes=dd,hd.defaultProps={tag:"p"};var pd=hd,vd=["className","cssModule","tag"],md={tag:Ul,className:ys.string,cssModule:ys.object},gd=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=El(e,vd),o=Nl(Hs(t,"card-title"),n);return l.createElement(r,Sl({},i,{className:o}))};gd.propTypes=md,gd.defaultProps={tag:"div"};var yd=gd,bd=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];var _d={children:ys.oneOfType([ys.node,ys.func]).isRequired,popperClassName:ys.string,placement:ys.string,placementPrefix:ys.string,arrowClassName:ys.string,hideArrow:ys.bool,tag:Ul,isOpen:ys.bool.isRequired,cssModule:ys.object,offset:ys.arrayOf(ys.number),fallbackPlacements:ys.array,flip:ys.bool,container:Bl,target:Bl.isRequired,modifiers:ys.array,strategy:ys.string,boundariesElement:ys.oneOfType([ys.string,zl]),onClosed:ys.func,fade:ys.bool,transition:ys.shape(Uc.propTypes)},xd={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:function(){},fade:!0,transition:kl({},Uc.defaultProps)},wd=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).setTargetNode=r.setTargetNode.bind(As(r)),r.getTargetNode=r.getTargetNode.bind(As(r)),r.getRef=r.getRef.bind(As(r)),r.onClosed=r.onClosed.bind(As(r)),r.state={isOpen:e.isOpen},r}return Vt(n,[{key:"componentDidUpdate",value:function(){this._element&&this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}},{key:"setTargetNode",value:function(e){this.targetNode="string"===typeof e?tu(e):e}},{key:"getTargetNode",value:function(){return this.targetNode}},{key:"getContainerNode",value:function(){return tu(this.props.container)}},{key:"getRef",value:function(e){this._element=e}},{key:"onClosed",value:function(){this.props.onClosed(),this.setState({isOpen:!1})}},{key:"renderChildren",value:function(){var e=this.props,t=e.cssModule,n=e.children,r=e.isOpen,i=e.flip,o=(e.target,e.offset),a=e.fallbackPlacements,s=e.placementPrefix,u=e.arrowClassName,c=e.hideArrow,f=e.popperClassName,d=e.tag,h=(e.container,e.modifiers),p=e.strategy,v=e.boundariesElement,m=(e.onClosed,e.fade),y=e.transition,b=e.placement,_=El(e,bd),x=Nl(Hs("arrow",u),t),w=Nl(Hs(f,s?"".concat(s,"-auto"):""),this.props.cssModule),k=h.map((function(e){return e.name})),C=[{name:"offset",options:{offset:o}},{name:"flip",enabled:i,options:{fallbackPlacements:a}},{name:"preventOverflow",options:{boundary:v}}].filter((function(e){return!k.includes(e.name)})),S=[].concat(g(C),g(h)),E=kl(kl(kl({},Uc.defaultProps),y),{},{baseClass:m?y.baseClass:"",timeout:m?y.timeout:0});return l.createElement(Uc,Sl({},E,_,{in:r,onExited:this.onClosed,tag:d}),l.createElement(al,{referenceElement:this.targetNode,modifiers:S,placement:b,strategy:p},(function(e){var t=e.ref,r=e.style,i=e.placement,o=e.isReferenceHidden,a=e.arrowProps,s=e.update;return l.createElement("div",{ref:t,style:r,className:w,"data-popper-placement":i,"data-popper-reference-hidden":o?"true":void 0},"function"===typeof n?n({update:s}):n,!c&&l.createElement("span",{ref:a.ref,className:x,style:a.style}))})))}},{key:"render",value:function(){return this.setTargetNode(this.props.target),this.state.isOpen?"inline"===this.props.container?this.renderChildren():o.createPortal(l.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isOpen&&!t.isOpen?{isOpen:e.isOpen}:null}}]),n}(l.Component);wd.propTypes=_d,wd.defaultProps=xd;var kd=wd,Cd=function(e,t){return t.popperManager.setTargetNode(tu(e.target)),null};Cd.contextTypes={popperManager:ys.object.isRequired},Cd.propTypes={target:Bl.isRequired};var Sd={children:ys.oneOfType([ys.node,ys.func]),placement:ys.oneOf(Yl),target:Bl.isRequired,container:Bl,isOpen:ys.bool,disabled:ys.bool,hideArrow:ys.bool,boundariesElement:ys.oneOfType([ys.string,zl]),className:ys.string,innerClassName:ys.string,arrowClassName:ys.string,popperClassName:ys.string,cssModule:ys.object,toggle:ys.func,autohide:ys.bool,placementPrefix:ys.string,delay:ys.oneOfType([ys.shape({show:ys.number,hide:ys.number}),ys.number]),modifiers:ys.array,strategy:ys.string,offset:ys.arrayOf(ys.number),innerRef:ys.oneOfType([ys.func,ys.string,ys.object]),trigger:ys.string,fade:ys.bool,flip:ys.bool},Ed={show:0,hide:50},Td={isOpen:!1,hideArrow:!1,autohide:!1,delay:Ed,toggle:function(){},trigger:"click",fade:!0};function Md(e,t){return t&&(e===t||t.contains(e))}function Od(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t&&t.length&&t.filter((function(t){return Md(e,t)}))[0]}var jd=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e))._targets=[],r.currentTargetElement=null,r.addTargetEvents=r.addTargetEvents.bind(As(r)),r.handleDocumentClick=r.handleDocumentClick.bind(As(r)),r.removeTargetEvents=r.removeTargetEvents.bind(As(r)),r.toggle=r.toggle.bind(As(r)),r.showWithDelay=r.showWithDelay.bind(As(r)),r.hideWithDelay=r.hideWithDelay.bind(As(r)),r.onMouseOverTooltipContent=r.onMouseOverTooltipContent.bind(As(r)),r.onMouseLeaveTooltipContent=r.onMouseLeaveTooltipContent.bind(As(r)),r.show=r.show.bind(As(r)),r.hide=r.hide.bind(As(r)),r.onEscKeyDown=r.onEscKeyDown.bind(As(r)),r.getRef=r.getRef.bind(As(r)),r.state={isOpen:e.isOpen},r._isMounted=!1,r}return Vt(n,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.updateTarget()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}},{key:"onMouseOverTooltipContent",value:function(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}},{key:"onMouseLeaveTooltipContent",value:function(e){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),e.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,e),this.getDelay("hide")))}},{key:"onEscKeyDown",value:function(e){"Escape"===e.key&&this.hide(e)}},{key:"getRef",value:function(e){var t=this.props.innerRef;t&&("function"===typeof t?t(e):"object"===typeof t&&(t.current=e)),this._popover=e}},{key:"getDelay",value:function(e){var t=this.props.delay;return"object"===typeof t?isNaN(t[e])?Ed[e]:t[e]:t}},{key:"getCurrentTarget",value:function(e){if(!e)return null;var t=this._targets.indexOf(e);return t>=0?this._targets[t]:this.getCurrentTarget(e.parentElement)}},{key:"show",value:function(e){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=e?e.currentTarget||this.getCurrentTarget(e.target):null,e&&e.composedPath&&"function"===typeof e.composedPath){var t=e.composedPath();this.currentTargetElement=t&&t[0]||this.currentTargetElement}this.toggle(e)}}},{key:"showWithDelay",value:function(e){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,e),this.getDelay("show"))}},{key:"hide",value:function(e){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(e))}},{key:"hideWithDelay",value:function(e){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,e),this.getDelay("hide"))}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"handleDocumentClick",value:function(e){var t=this.props.trigger.split(" ");t.indexOf("legacy")>-1&&(this.props.isOpen||Od(e.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!Md(e.target,this._popover)?this.hideWithDelay(e):this.props.isOpen||this.showWithDelay(e)):t.indexOf("click")>-1&&Od(e.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(e):this.showWithDelay(e))}},{key:"addEventOnTargets",value:function(e,t,n){this._targets.forEach((function(r){r.addEventListener(e,t,n)}))}},{key:"removeEventOnTargets",value:function(e,t,n){this._targets.forEach((function(r){r.removeEventListener(e,t,n)}))}},{key:"addTargetEvents",value:function(){if(this.props.trigger){var e=this.props.trigger.split(" ");-1===e.indexOf("manual")&&((e.indexOf("click")>-1||e.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(e.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),e.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}}},{key:"removeTargetEvents",value:function(){this._targets&&(this.removeEventOnTargets("mouseover",this.showWithDelay,!0),this.removeEventOnTargets("mouseout",this.hideWithDelay,!0),this.removeEventOnTargets("keydown",this.onEscKeyDown,!0),this.removeEventOnTargets("focusin",this.show,!0),this.removeEventOnTargets("focusout",this.hide,!0)),document.removeEventListener("click",this.handleDocumentClick,!0)}},{key:"updateTarget",value:function(){var e=tu(this.props.target,!0);e!==this._targets&&(this.removeTargetEvents(),this._targets=e?Array.from(e):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}},{key:"toggle",value:function(e){return this.props.disabled||!this._isMounted?e&&e.preventDefault():this.props.toggle(e)}},{key:"render",value:function(){var e=this;this.props.isOpen&&this.updateTarget();var t=this.currentTargetElement||this._targets[0];if(!t)return null;var n=this.props,r=n.className,i=n.cssModule,o=n.innerClassName,a=n.isOpen,s=n.hideArrow,u=n.boundariesElement,c=n.placement,f=n.placementPrefix,d=n.arrowClassName,h=n.popperClassName,p=n.container,v=n.modifiers,m=n.strategy,g=n.offset,y=n.fade,b=n.flip,_=n.children,x=Dl(this.props,Object.keys(Sd)),w=Nl(h,i),k=Nl(o,i);return l.createElement(kd,{className:r,target:t,isOpen:a,hideArrow:s,boundariesElement:u,placement:c,placementPrefix:f,arrowClassName:d,popperClassName:w,container:p,modifiers:v,strategy:m,offset:g,cssModule:i,fade:y,flip:b},(function(t){var n=t.update;return l.createElement("div",Sl({},x,{ref:e.getRef,className:k,role:"tooltip",onMouseOver:e.onMouseOverTooltipContent,onMouseLeave:e.onMouseLeaveTooltipContent,onKeyDown:e.onEscKeyDown}),"function"===typeof _?_({update:n}):_)}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isOpen&&!t.isOpen?{isOpen:e.isOpen}:null}}]),n}(l.Component);jd.propTypes=Sd,jd.defaultProps=Td;var Pd=jd,Nd=function(e){var t=Hs("popover","show",e.popperClassName),n=Hs("popover-inner",e.innerClassName);return l.createElement(Pd,Sl({},e,{arrowClassName:"popover-arrow",popperClassName:t,innerClassName:n}))};Nd.propTypes=Sd,Nd.defaultProps={placement:"right",placementPrefix:"bs-popover",trigger:"click",offset:[0,8]};var Dd=Nd,Ld=["defaultOpen"];(function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).state={isOpen:e.defaultOpen||!1},r.toggle=r.toggle.bind(As(r)),r}return Vt(n,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return l.createElement(Dd,Sl({isOpen:this.state.isOpen,toggle:this.toggle},Dl(this.props,Ld)))}}]),n}(l.Component)).propTypes=kl({defaultOpen:ys.bool},Dd.propTypes);var Rd=["className","cssModule","tag"],Ad={tag:Ul,className:ys.string,cssModule:ys.object},Id=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=El(e,Rd),o=Nl(Hs(t,"popover-header"),n);return l.createElement(r,Sl({},i,{className:o}))};Id.propTypes=Ad,Id.defaultProps={tag:"h3"};var Fd=["className","cssModule","tag"],zd={tag:Ul,className:ys.string,cssModule:ys.object},Bd=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=El(e,Fd),o=Nl(Hs(t,"popover-body"),n);return l.createElement(r,Sl({},i,{className:o}))};Bd.propTypes=zd,Bd.defaultProps={tag:"div"};var Ud=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"],Vd={children:ys.node,bar:ys.bool,multi:ys.bool,tag:Ul,value:ys.oneOfType([ys.string,ys.number]),min:ys.oneOfType([ys.string,ys.number]),max:ys.oneOfType([ys.string,ys.number]),animated:ys.bool,striped:ys.bool,color:ys.string,className:ys.string,barClassName:ys.string,cssModule:ys.object,style:ys.object,barStyle:ys.object,barAriaValueText:ys.string,barAriaLabelledBy:ys.string},Hd=function(e){var t=e.children,n=e.className,r=e.barClassName,i=e.cssModule,o=e.value,a=e.min,s=e.max,u=e.animated,c=e.striped,f=e.color,d=e.bar,h=e.multi,p=e.tag,v=e.style,m=e.barStyle,g=e.barAriaValueText,y=e.barAriaLabelledBy,b=El(e,Ud),_=Ql(o)/Ql(s)*100,x=Nl(Hs(n,"progress"),i),w={className:Nl(Hs("progress-bar",d&&n||r,u?"progress-bar-animated":null,f?"bg-".concat(f):null,c||u?"progress-bar-striped":null),i),style:kl(kl(kl({},d?v:{}),m),{},{width:"".concat(_,"%")}),role:"progressbar","aria-valuenow":o,"aria-valuemin":a,"aria-valuemax":s,"aria-valuetext":g,"aria-labelledby":y,children:t};return d?l.createElement(p,Sl({},b,w)):l.createElement(p,Sl({},b,{style:v,className:x}),h?t:l.createElement("div",w))};Hd.propTypes=Vd,Hd.defaultProps={tag:"div",value:0,min:0,max:100,style:{},barStyle:{}};var Wd=Hd,Zd={children:ys.node.isRequired,node:ys.any},Yd=function(e){Fs(n,e);var t=Vs(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Vt(n,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return ql?(this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),o.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),n}(l.Component);Yd.propTypes=Zd;var qd=Yd;function Gd(){}var Kd=ys.shape(Uc.propTypes),Qd={isOpen:ys.bool,autoFocus:ys.bool,centered:ys.bool,fullscreen:ys.oneOfType([ys.bool,ys.oneOf(["sm","md","lg","xl"])]),scrollable:ys.bool,size:ys.string,toggle:ys.func,keyboard:ys.bool,role:ys.string,labelledBy:ys.string,backdrop:ys.oneOfType([ys.bool,ys.oneOf(["static"])]),onEnter:ys.func,onExit:ys.func,onOpened:ys.func,onClosed:ys.func,children:ys.node,className:ys.string,wrapClassName:ys.string,modalClassName:ys.string,backdropClassName:ys.string,contentClassName:ys.string,external:ys.node,fade:ys.bool,cssModule:ys.object,zIndex:ys.oneOfType([ys.number,ys.string]),backdropTransition:Kd,modalTransition:Kd,innerRef:ys.oneOfType([ys.object,ys.string,ys.func]),unmountOnClose:ys.bool,returnFocusAfterClose:ys.bool,container:Bl,trapFocus:ys.bool},$d=Object.keys(Qd),Xd={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:Gd,onClosed:Gd,modalTransition:{timeout:Vl.Modal},backdropTransition:{mountOnEnter:!0,timeout:Vl.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},Jd=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e))._element=null,r._originalBodyPadding=null,r.getFocusableChildren=r.getFocusableChildren.bind(As(r)),r.handleBackdropClick=r.handleBackdropClick.bind(As(r)),r.handleBackdropMouseDown=r.handleBackdropMouseDown.bind(As(r)),r.handleEscape=r.handleEscape.bind(As(r)),r.handleStaticBackdropAnimation=r.handleStaticBackdropAnimation.bind(As(r)),r.handleTab=r.handleTab.bind(As(r)),r.onOpened=r.onOpened.bind(As(r)),r.onClosed=r.onClosed.bind(As(r)),r.manageFocusAfterClose=r.manageFocusAfterClose.bind(As(r)),r.clearBackdropAnimationTimeout=r.clearBackdropAnimationTimeout.bind(As(r)),r.trapFocus=r.trapFocus.bind(As(r)),r.state={isOpen:!1,showStaticBackdropAnimation:!1},r}return Vt(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isOpen,n=e.autoFocus,r=e.onEnter;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){if(this.props.isOpen&&!e.isOpen)return this.init(),void this.setState({isOpen:!0});this.props.autoFocus&&this.state.isOpen&&!t.isOpen&&this.setFocus(),this._element&&e.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}},{key:"componentWillUnmount",value:function(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}},{key:"trapFocus",value:function(e){if(this.props.trapFocus&&this._element&&(!this._dialog||this._dialog.parentNode!==e.target)&&!(this.modalIndex<n.openCount-1)){for(var t=this.getFocusableChildren(),r=0;r<t.length;r++)if(t[r]===e.target)return;t.length>0&&(e.preventDefault(),e.stopPropagation(),t[0].focus())}}},{key:"onOpened",value:function(e,t){this.props.onOpened(),(this.props.modalTransition.onEntered||Gd)(e,t)}},{key:"onClosed",value:function(e){var t=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||Gd)(e),t&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}},{key:"setFocus",value:function(){this._dialog&&this._dialog.parentNode&&"function"===typeof this._dialog.parentNode.focus&&this._dialog.parentNode.focus()}},{key:"getFocusableChildren",value:function(){return this._element.querySelectorAll(iu.join(", "))}},{key:"getFocusedChild",value:function(){var e,t=this.getFocusableChildren();try{e=document.activeElement}catch(n){e=t[0]}return e}},{key:"handleBackdropClick",value:function(e){if(e.target===this._mouseDownElement){e.stopPropagation();var t=this._dialog?this._dialog.parentNode:null;if(t&&e.target===t&&"static"===this.props.backdrop&&this.handleStaticBackdropAnimation(),!this.props.isOpen||!0!==this.props.backdrop)return;t&&e.target===t&&this.props.toggle&&this.props.toggle(e)}}},{key:"handleTab",value:function(e){if(9===e.which&&!(this.modalIndex<n.openCount-1)){var t=this.getFocusableChildren(),r=t.length;if(0!==r){for(var i=this.getFocusedChild(),o=0,a=0;a<r;a+=1)if(t[a]===i){o=a;break}e.shiftKey&&0===o?(e.preventDefault(),t[r-1].focus()):e.shiftKey||o!==r-1||(e.preventDefault(),t[0].focus())}}}},{key:"handleBackdropMouseDown",value:function(e){this._mouseDownElement=e.target}},{key:"handleEscape",value:function(e){this.props.isOpen&&e.keyCode===Zl.esc&&this.props.toggle&&(this.props.keyboard?(e.preventDefault(),e.stopPropagation(),this.props.toggle(e)):"static"===this.props.backdrop&&(e.preventDefault(),e.stopPropagation(),this.handleStaticBackdropAnimation()))}},{key:"handleStaticBackdropAnimation",value:function(){var e=this;this.clearBackdropAnimationTimeout(),this.setState({showStaticBackdropAnimation:!0}),this._backdropAnimationTimeout=setTimeout((function(){e.setState({showStaticBackdropAnimation:!1})}),100)}},{key:"init",value:function(){try{this._triggeringElement=document.activeElement}catch(e){this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=tu(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=jl(),Pl(),0===n.openCount&&(document.body.className=Hs(document.body.className,Nl("modal-open",this.props.cssModule))),this.modalIndex=n.openCount,n.openCount+=1}},{key:"destroy",value:function(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}},{key:"manageFocusAfterClose",value:function(){if(this._triggeringElement){var e=this.props.returnFocusAfterClose;this._triggeringElement.focus&&e&&this._triggeringElement.focus(),this._triggeringElement=null}}},{key:"close",value:function(){if(n.openCount<=1){var e=Nl("modal-open",this.props.cssModule),t=new RegExp("(^| )".concat(e,"( |$)"));document.body.className=document.body.className.replace(t," ").trim()}this.manageFocusAfterClose(),n.openCount=Math.max(0,n.openCount-1),Ml(this._originalBodyPadding)}},{key:"renderModalDialog",value:function(){var e,t=this,n=Dl(this.props,$d),r="modal-dialog";return l.createElement("div",Sl({},n,{className:Nl(Hs(r,this.props.className,(e={},He(e,"modal-".concat(this.props.size),this.props.size),He(e,"".concat(r,"-centered"),this.props.centered),He(e,"".concat(r,"-scrollable"),this.props.scrollable),He(e,"modal-fullscreen",!0===this.props.fullscreen),He(e,"modal-fullscreen-".concat(this.props.fullscreen,"-down"),"string"===typeof this.props.fullscreen),e)),this.props.cssModule),role:"document",ref:function(e){t._dialog=e}}),l.createElement("div",{className:Nl(Hs("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}},{key:"render",value:function(){var e=this.props.unmountOnClose;if(this._element&&(this.state.isOpen||!e)){var t=!!this._element&&!this.state.isOpen&&!e;this._element.style.display=t?"none":"block";var n=this.props,r=n.wrapClassName,i=n.modalClassName,o=n.backdropClassName,a=n.cssModule,s=n.isOpen,u=n.backdrop,c=n.role,f=n.labelledBy,d=n.external,h=n.innerRef,p={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":f,role:c,tabIndex:"-1"},v=this.props.fade,m=kl(kl(kl({},Uc.defaultProps),this.props.modalTransition),{},{baseClass:v?this.props.modalTransition.baseClass:"",timeout:v?this.props.modalTransition.timeout:0}),g=kl(kl(kl({},Uc.defaultProps),this.props.backdropTransition),{},{baseClass:v?this.props.backdropTransition.baseClass:"",timeout:v?this.props.backdropTransition.timeout:0}),y=u&&(v?l.createElement(Uc,Sl({},g,{in:s&&!!u,cssModule:a,className:Nl(Hs("modal-backdrop",o),a)})):l.createElement("div",{className:Nl(Hs("modal-backdrop","show",o),a)}));return l.createElement(qd,{node:this._element},l.createElement("div",{className:Nl(r)},l.createElement(Uc,Sl({},p,m,{in:s,onEntered:this.onOpened,onExited:this.onClosed,cssModule:a,className:Nl(Hs("modal",i,this.state.showStaticBackdropAnimation&&"modal-static"),a),innerRef:h}),d,this.renderModalDialog()),y))}return null}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}}]),n}(l.Component);Jd.propTypes=Qd,Jd.defaultProps=Xd,Jd.openCount=0;var eh=Jd,th=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"],nh={tag:Ul,wrapTag:Ul,toggle:ys.func,className:ys.string,cssModule:ys.object,children:ys.node,closeAriaLabel:ys.string,close:ys.object},rh=function(e){var t,n=e.className,r=e.cssModule,i=e.children,o=e.toggle,a=e.tag,s=e.wrapTag,u=e.closeAriaLabel,c=e.close,f=El(e,th),d=Nl(Hs(n,"modal-header"),r);return!c&&o&&(t=l.createElement("button",{type:"button",onClick:o,className:Nl("btn-close",r),"aria-label":u})),l.createElement(s,Sl({},f,{className:d}),l.createElement(a,{className:Nl("modal-title",r)},i),c||t)};rh.propTypes=nh,rh.defaultProps={tag:"h5",wrapTag:"div",closeAriaLabel:"Close"};var ih=rh,oh=["className","cssModule","tag"],ah={tag:Ul,className:ys.string,cssModule:ys.object},sh=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=El(e,oh),o=Nl(Hs(t,"modal-body"),n);return l.createElement(r,Sl({},i,{className:o}))};sh.propTypes=ah,sh.defaultProps={tag:"div"};var lh=sh,uh=["className","cssModule","tag"],ch={tag:Ul,className:ys.string,cssModule:ys.object},fh=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=El(e,uh),o=Nl(Hs(t,"modal-footer"),n);return l.createElement(r,Sl({},i,{className:o}))};fh.propTypes=ch,fh.defaultProps={tag:"div"};var dh=fh,hh=function(e){var t=Hs("tooltip","show",e.popperClassName),n=Hs("tooltip-inner",e.innerClassName);return l.createElement(Pd,Sl({},e,{arrowClassName:"tooltip-arrow",popperClassName:t,innerClassName:n}))};hh.propTypes=Sd,hh.defaultProps={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};var ph=hh,vh=["className","cssModule","size","bordered","borderless","striped","dark","hover","responsive","tag","responsiveTag","innerRef"],mh={className:ys.string,cssModule:ys.object,size:ys.string,bordered:ys.bool,borderless:ys.bool,striped:ys.bool,dark:ys.bool,hover:ys.bool,responsive:ys.oneOfType([ys.bool,ys.string]),tag:Ul,responsiveTag:Ul,innerRef:ys.oneOfType([ys.func,ys.string,ys.object])},gh=function(e){var t=e.className,n=e.cssModule,r=e.size,i=e.bordered,o=e.borderless,a=e.striped,s=e.dark,u=e.hover,c=e.responsive,f=e.tag,d=e.responsiveTag,h=e.innerRef,p=El(e,vh),v=Nl(Hs(t,"table",!!r&&"table-"+r,!!i&&"table-bordered",!!o&&"table-borderless",!!a&&"table-striped",!!s&&"table-dark",!!u&&"table-hover"),n),m=l.createElement(f,Sl({},p,{ref:h,className:v}));if(c){var g=Nl(!0===c?"table-responsive":"table-responsive-".concat(c),n);return l.createElement(d,{className:g},m)}return m};gh.propTypes=mh,gh.defaultProps={tag:"table",responsiveTag:"div"};var yh=["className","cssModule","tag","flush","horizontal","numbered"],bh={tag:Ul,flush:ys.bool,className:ys.string,cssModule:ys.object,horizontal:ys.oneOfType([ys.bool,ys.string]),numbered:ys.bool},_h=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=e.flush,o=e.horizontal,a=e.numbered,s=El(e,yh),u=Nl(Hs(t,"list-group",i?"list-group-flush":function(e){return!1!==e&&(!0===e||"xs"===e?"list-group-horizontal":"list-group-horizontal-".concat(e))}(o),{"list-group-numbered":a}),n);return l.createElement(r,Sl({},s,{className:u}))};_h.propTypes=bh,_h.defaultProps={tag:"ul",horizontal:!1,numbered:!1};var xh=_h,wh=["className","cssModule","inline","tag","innerRef"],kh={children:ys.node,inline:ys.bool,tag:Ul,innerRef:ys.oneOfType([ys.object,ys.func,ys.string]),className:ys.string,cssModule:ys.object},Ch=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).getRef=r.getRef.bind(As(r)),r.submit=r.submit.bind(As(r)),r}return Vt(n,[{key:"getRef",value:function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e}},{key:"submit",value:function(){this.ref&&this.ref.submit()}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,r=e.inline,i=e.tag,o=e.innerRef,a=El(e,wh),s=Nl(Hs(t,!!r&&"form-inline"),n);return l.createElement(i,Sl({},a,{ref:o,className:s}))}}]),n}(l.Component);Ch.propTypes=kh,Ch.defaultProps={tag:"form"};var Sh=["className","cssModule","valid","tooltip","tag"],Eh={children:ys.node,tag:Ul,className:ys.string,cssModule:ys.object,valid:ys.bool,tooltip:ys.bool},Th={tag:"div",valid:void 0},Mh=function(e){var t=e.className,n=e.cssModule,r=e.valid,i=e.tooltip,o=e.tag,a=El(e,Sh),s=i?"tooltip":"feedback",u=Nl(Hs(t,r?"valid-".concat(s):"invalid-".concat(s)),n);return l.createElement(o,Sl({},a,{className:u}))};Mh.propTypes=Eh,Mh.defaultProps=Th;var Oh=["className","cssModule","row","disabled","check","inline","floating","tag"],jh={children:ys.node,row:ys.bool,check:ys.bool,switch:ys.bool,inline:ys.bool,floating:ys.bool,disabled:ys.bool,tag:Ul,className:ys.string,cssModule:ys.object},Ph=function(e){var t=e.className,n=e.cssModule,r=e.row,i=e.disabled,o=e.check,a=e.inline,s=e.floating,u=e.tag,c=El(e,Oh),f=o||e.switch,d=Nl(Hs(t,!!r&&"row",f?"form-check":"mb-3",!!e.switch&&"form-switch",!(!f||!a)&&"form-check-inline",!(!f||!i)&&"disabled",s&&"form-floating"),n);return"fieldset"===u&&(c.disabled=i),l.createElement(u,Sl({},c,{className:d}))};Ph.propTypes=jh,Ph.defaultProps={tag:"div"};var Nh=Ph,Dh=["className","cssModule","inline","color","tag"],Lh={children:ys.node,inline:ys.bool,tag:Ul,color:ys.string,className:ys.string,cssModule:ys.object},Rh=function(e){var t=e.className,n=e.cssModule,r=e.inline,i=e.color,o=e.tag,a=El(e,Dh),s=Nl(Hs(t,!r&&"form-text",!!i&&"text-".concat(i)),n);return l.createElement(o,Sl({},a,{className:s}))};Rh.propTypes=Lh,Rh.defaultProps={tag:"small",color:"muted"};var Ah=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"],Ih={children:ys.node,type:ys.string,size:ys.oneOfType([ys.number,ys.string]),bsSize:ys.string,valid:ys.bool,invalid:ys.bool,tag:Ul,innerRef:ys.oneOfType([ys.object,ys.func,ys.string]),plaintext:ys.bool,addon:ys.bool,className:ys.string,cssModule:ys.object},Fh=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).getRef=r.getRef.bind(As(r)),r.focus=r.focus.bind(As(r)),r}return Vt(n,[{key:"getRef",value:function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e}},{key:"focus",value:function(){this.ref&&this.ref.focus()}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,r=e.type,i=e.bsSize,o=e.valid,a=e.invalid,s=e.tag,u=e.addon,c=e.plaintext,f=e.innerRef,d=El(e,Ah),h=["switch","radio","checkbox"].indexOf(r)>-1,p=new RegExp("\\D","g"),v="select"===r,m="range"===r,g=s||(v||"textarea"===r?r:"input"),y="form-control";c?(y="".concat(y,"-plaintext"),g=s||"input"):m?y="form-range":v?y="form-select":h&&(y=u?null:"form-check-input"),d.size&&p.test(d.size)&&(Al('Please use the prop "bsSize" instead of the "size" to bootstrap\'s input sizing.'),i=d.size,delete d.size);var b=Nl(Hs(t,a&&"is-invalid",o&&"is-valid",!!i&&(v?"form-select-".concat(i):"form-control-".concat(i)),y),n);return("input"===g||s&&"function"===typeof s)&&(d.type="switch"===r?"checkbox":r),d.children&&!c&&"select"!==r&&"string"===typeof g&&"select"!==g&&(Al('Input with a type of "'.concat(r,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete d.children),l.createElement(g,Sl({},d,{ref:f,className:b,"aria-invalid":a}))}}]),n}(l.Component);Fh.propTypes=Ih,Fh.defaultProps={type:"text"};var zh=Fh,Bh=["className","cssModule","tag","type","size"],Uh={tag:Ul,type:ys.bool,size:ys.string,className:ys.string,cssModule:ys.object},Vh=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=(e.type,e.size),o=El(e,Bh),a=Nl(Hs(t,"input-group",i?"input-group-".concat(i):null),n);return"dropdown"===e.type?l.createElement(vc,Sl({},o,{className:a})):l.createElement(r,Sl({},o,{className:a}))};Vh.propTypes=Uh,Vh.defaultProps={tag:"div"};var Hh=Vh,Wh=["className","cssModule","tag"],Zh={tag:Ul,className:ys.string,cssModule:ys.object},Yh=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=El(e,Wh),o=Nl(Hs(t,"input-group-text"),n);return l.createElement(r,Sl({},i,{className:o}))};Yh.propTypes=Zh,Yh.defaultProps={tag:"span"};var qh=["className","cssModule","hidden","widths","tag","check","size","for"],Gh=ys.oneOfType([ys.number,ys.string]),Kh=ys.oneOfType([ys.bool,ys.string,ys.number,ys.shape({size:Gh,order:Gh,offset:Gh})]),Qh={children:ys.node,hidden:ys.bool,check:ys.bool,size:ys.string,for:ys.string,tag:Ul,className:ys.string,cssModule:ys.object,xs:Kh,sm:Kh,md:Kh,lg:Kh,xl:Kh,xxl:Kh,widths:ys.array},$h={tag:"label",widths:["xs","sm","md","lg","xl","xxl"]},Xh=function(e,t,n){return!0===n||""===n?e?"col":"col-".concat(t):"auto"===n?e?"col-auto":"col-".concat(t,"-auto"):e?"col-".concat(n):"col-".concat(t,"-").concat(n)},Jh=function(e){var t=e.className,n=e.cssModule,r=e.hidden,i=e.widths,o=e.tag,a=e.check,s=e.size,u=e.for,c=El(e,qh),f=[];i.forEach((function(t,r){var i=e[t];if(delete c[t],i||""===i){var o,a=!r;if($l(i)){var s,l=a?"-":"-".concat(t,"-");o=Xh(a,t,i.size),f.push(Nl(Hs((He(s={},o,i.size||""===i.size),He(s,"order".concat(l).concat(i.order),i.order||0===i.order),He(s,"offset".concat(l).concat(i.offset),i.offset||0===i.offset),s))),n)}else o=Xh(a,t,i),f.push(o)}}));var d=Nl(Hs(t,!!r&&"visually-hidden",!!a&&"form-check-label",!!s&&"col-form-label-".concat(s),f,f.length?"col-form-label":"form-label"),n);return l.createElement(o,Sl({htmlFor:u},c,{className:d}))};Jh.propTypes=Qh,Jh.defaultProps=$h;var ep=["body","bottom","className","cssModule","heading","left","list","middle","object","right","tag","top"],tp={body:ys.bool,bottom:ys.bool,children:ys.node,className:ys.string,cssModule:ys.object,heading:ys.bool,left:ys.bool,list:ys.bool,middle:ys.bool,object:ys.bool,right:ys.bool,tag:Ul,top:ys.bool},np=function(e){var t,n=e.body,r=e.bottom,i=e.className,o=e.cssModule,a=e.heading,s=e.left,u=e.list,c=e.middle,f=e.object,d=e.right,h=e.tag,p=e.top,v=El(e,ep);t=a?"h4":v.href?"a":v.src||f?"img":u?"ul":"div";var m=h||t,g=Nl(Hs(i,{"media-body":n,"media-heading":a,"media-left":s,"media-right":d,"media-top":p,"media-bottom":r,"media-middle":c,"media-object":f,"media-list":u,media:!n&&!a&&!s&&!d&&!p&&!r&&!c&&!f&&!u}),o);return l.createElement(m,Sl({},v,{className:g}))};np.propTypes=tp;function rp(){}var ip=ys.shape(Uc.propTypes),op={autoFocus:ys.bool,backdrop:ys.bool,backdropClassName:ys.string,backdropTransition:ip,children:ys.node,className:ys.string,container:Bl,cssModule:ys.object,direction:ys.oneOf(["start","end","bottom","top","left","right"]),fade:ys.bool,innerRef:ys.oneOfType([ys.object,ys.string,ys.func]),isOpen:ys.bool,keyboard:ys.bool,labelledBy:ys.string,offcanvasTransition:ip,onClosed:ys.func,onEnter:ys.func,onExit:ys.func,onOpened:ys.func,returnFocusAfterClose:ys.bool,role:ys.string,scrollable:ys.bool,toggle:ys.func,trapFocus:ys.bool,unmountOnClose:ys.bool,zIndex:ys.oneOfType([ys.number,ys.string])},ap=Object.keys(op),sp={isOpen:!1,autoFocus:!0,direction:"start",scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:rp,onClosed:rp,offcanvasTransition:{timeout:Vl.Offcanvas},backdropTransition:{mountOnEnter:!0,timeout:Vl.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},lp=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e))._element=null,r._originalBodyPadding=null,r.getFocusableChildren=r.getFocusableChildren.bind(As(r)),r.handleBackdropClick=r.handleBackdropClick.bind(As(r)),r.handleBackdropMouseDown=r.handleBackdropMouseDown.bind(As(r)),r.handleEscape=r.handleEscape.bind(As(r)),r.handleTab=r.handleTab.bind(As(r)),r.onOpened=r.onOpened.bind(As(r)),r.onClosed=r.onClosed.bind(As(r)),r.manageFocusAfterClose=r.manageFocusAfterClose.bind(As(r)),r.clearBackdropAnimationTimeout=r.clearBackdropAnimationTimeout.bind(As(r)),r.trapFocus=r.trapFocus.bind(As(r)),r.state={isOpen:!1},r}return Vt(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isOpen,n=e.autoFocus,r=e.onEnter;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){if(this.props.isOpen&&!e.isOpen)return this.init(),void this.setState({isOpen:!0});this.props.autoFocus&&this.state.isOpen&&!t.isOpen&&this.setFocus(),this._element&&e.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}},{key:"componentWillUnmount",value:function(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}},{key:"trapFocus",value:function(e){if(this.props.trapFocus&&this._element&&this._dialog!==e.target&&!(this.offcanvasIndex<n.openCount-1)){for(var t=this.getFocusableChildren(),r=0;r<t.length;r++)if(t[r]===e.target)return;t.length>0&&(e.preventDefault(),e.stopPropagation(),t[0].focus())}}},{key:"onOpened",value:function(e,t){this.props.onOpened(),(this.props.offcanvasTransition.onEntered||rp)(e,t)}},{key:"onClosed",value:function(e){var t=this.props.unmountOnClose;this.props.onClosed(),(this.props.offcanvasTransition.onExited||rp)(e),t&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}},{key:"setFocus",value:function(){this._dialog&&"function"===typeof this._dialog.focus&&this._dialog.focus()}},{key:"getFocusableChildren",value:function(){return this._element.querySelectorAll(iu.join(", "))}},{key:"getFocusedChild",value:function(){var e,t=this.getFocusableChildren();try{e=document.activeElement}catch(n){e=t[0]}return e}},{key:"handleBackdropClick",value:function(e){if(e.target===this._mouseDownElement){e.stopPropagation();var t=this._backdrop;if(!this.props.isOpen||!0!==this.props.backdrop)return;t&&e.target===t&&this.props.toggle&&this.props.toggle(e)}}},{key:"handleTab",value:function(e){if(9===e.which&&!(this.offcanvasIndex<n.openCount-1)){var t=this.getFocusableChildren(),r=t.length;if(0!==r){for(var i=this.getFocusedChild(),o=0,a=0;a<r;a+=1)if(t[a]===i){o=a;break}e.shiftKey&&0===o?(e.preventDefault(),t[r-1].focus()):e.shiftKey||o!==r-1||(e.preventDefault(),t[0].focus())}}}},{key:"handleBackdropMouseDown",value:function(e){this._mouseDownElement=e.target}},{key:"handleEscape",value:function(e){this.props.isOpen&&e.keyCode===Zl.esc&&this.props.toggle&&this.props.keyboard&&(e.preventDefault(),e.stopPropagation(),this.props.toggle(e))}},{key:"init",value:function(){try{this._triggeringElement=document.activeElement}catch(e){this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=tu(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=jl(),Pl(),0===n.openCount&&this.props.backdrop&&!this.props.scrollable&&(document.body.style.overflow="hidden"),this.offcanvasIndex=n.openCount,n.openCount+=1}},{key:"destroy",value:function(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}},{key:"manageFocusAfterClose",value:function(){if(this._triggeringElement){var e=this.props.returnFocusAfterClose;this._triggeringElement.focus&&e&&this._triggeringElement.focus(),this._triggeringElement=null}}},{key:"close",value:function(){this.manageFocusAfterClose(),n.openCount=Math.max(0,n.openCount-1),document.body.style.overflow=null,Ml(this._originalBodyPadding)}},{key:"render",value:function(){var e=this,t=this.props,n=t.direction,r=t.unmountOnClose;if(this._element&&(this.state.isOpen||!r)){var i=!!this._element&&!this.state.isOpen&&!r;this._element.style.display=i?"none":"block";var o=this.props,a=o.className,s=o.backdropClassName,u=o.cssModule,c=o.isOpen,f=o.backdrop,d=o.role,h=o.labelledBy,p=o.style,v={onKeyUp:this.handleEscape,onKeyDown:this.handleTab,"aria-labelledby":h,role:d,tabIndex:"-1"},m=this.props.fade,g=kl(kl(kl({},Uc.defaultProps),this.props.offcanvasTransition),{},{baseClass:m?this.props.offcanvasTransition.baseClass:"",timeout:m?this.props.offcanvasTransition.timeout:0}),y=kl(kl(kl({},Uc.defaultProps),this.props.backdropTransition),{},{baseClass:m?this.props.backdropTransition.baseClass:"",timeout:m?this.props.backdropTransition.timeout:0}),b=f&&(m?l.createElement(Uc,Sl({},y,{in:c&&!!f,innerRef:function(t){e._backdrop=t},cssModule:u,className:Nl(Hs("offcanvas-backdrop",s),u),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})):l.createElement("div",{className:Nl(Hs("offcanvas-backdrop","show",s),u),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})),_=Dl(this.props,ap);return l.createElement(qd,{node:this._element},l.createElement(Uc,Sl({},_,v,g,{in:c,onEntered:this.onOpened,onExited:this.onClosed,cssModule:u,className:Nl(Hs("offcanvas",a,"offcanvas-".concat(n)),u),innerRef:function(t){e._dialog=t},style:kl(kl({},p),{},{visibility:c?"visible":"hidden"})}),this.props.children),b)}return null}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}}]),n}(l.Component);lp.propTypes=op,lp.defaultProps=sp,lp.openCount=0;var up=["className","cssModule","tag"],cp={tag:Ul,className:ys.string,cssModule:ys.object},fp=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=El(e,up),o=Nl(Hs(t,"offcanvas-body"),n);return l.createElement(r,Sl({},i,{className:o}))};fp.propTypes=cp,fp.defaultProps={tag:"div"};var dp=["children","className","close","closeAriaLabel","cssModule","tag","toggle","wrapTag"],hp={children:ys.node,className:ys.string,close:ys.object,closeAriaLabel:ys.string,cssModule:ys.object,tag:Ul,toggle:ys.func,wrapTag:Ul},pp=function(e){var t,n=e.children,r=e.className,i=e.close,o=e.closeAriaLabel,a=e.cssModule,s=e.tag,u=e.toggle,c=e.wrapTag,f=El(e,dp),d=Nl(Hs(r,"offcanvas-header"),a);return!i&&u&&(t=l.createElement("button",{type:"button",onClick:u,className:Nl("btn-close",a),"aria-label":o})),l.createElement(c,Sl({},f,{className:d}),l.createElement(s,{className:Nl("offcanvas-title",a)},n),i||t)};pp.propTypes=hp,pp.defaultProps={closeAriaLabel:"Close",tag:"h5",wrapTag:"div"};var vp=["className","listClassName","cssModule","size","tag","listTag","aria-label"],mp={children:ys.node,className:ys.string,listClassName:ys.string,cssModule:ys.object,size:ys.string,tag:Ul,listTag:Ul,"aria-label":ys.string},gp=function(e){var t=e.className,n=e.listClassName,r=e.cssModule,i=e.size,o=e.tag,a=e.listTag,s=e["aria-label"],u=El(e,vp),c=Nl(Hs(t),r),f=Nl(Hs(n,"pagination",He({},"pagination-".concat(i),!!i)),r);return l.createElement(o,{className:c,"aria-label":s},l.createElement(a,Sl({},u,{className:f})))};gp.propTypes=mp,gp.defaultProps={tag:"nav",listTag:"ul","aria-label":"pagination"};var yp=gp,bp=["active","className","cssModule","disabled","tag"],_p={active:ys.bool,children:ys.node,className:ys.string,cssModule:ys.object,disabled:ys.bool,tag:Ul},xp=function(e){var t=e.active,n=e.className,r=e.cssModule,i=e.disabled,o=e.tag,a=El(e,bp),s=Nl(Hs(n,"page-item",{active:t,disabled:i}),r);return l.createElement(o,Sl({},a,{className:s}))};xp.propTypes=_p,xp.defaultProps={tag:"li"};var wp=xp,kp=["className","cssModule","next","previous","first","last","tag"],Cp={"aria-label":ys.string,children:ys.node,className:ys.string,cssModule:ys.object,next:ys.bool,previous:ys.bool,first:ys.bool,last:ys.bool,tag:Ul},Sp=function(e){var t,n=e.className,r=e.cssModule,i=e.next,o=e.previous,a=e.first,s=e.last,u=e.tag,c=El(e,kp),f=Nl(Hs(n,"page-link"),r);o?t="Previous":i?t="Next":a?t="First":s&&(t="Last");var d,h=e["aria-label"]||t;o?d="\u2039":i?d="\u203a":a?d="\xab":s&&(d="\xbb");var p=e.children;return p&&Array.isArray(p)&&0===p.length&&(p=null),c.href||"a"!==u||(u="button"),(o||i||a||s)&&(p=[l.createElement("span",{"aria-hidden":"true",key:"caret"},p||d),l.createElement("span",{className:"visually-hidden",key:"ariaLabel"},h)]),l.createElement(u,Sl({},c,{className:f,"aria-label":h}),p)};Sp.propTypes=Cp,Sp.defaultProps={tag:"a"};var Ep=Sp,Tp=l.createContext({}),Mp={tag:Ul,activeTab:ys.any,className:ys.string,cssModule:ys.object},Op=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).state={activeTab:r.props.activeTab},r}return Vt(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,r=e.tag,i=Dl(this.props,Object.keys(Mp)),o=Nl(Hs("tab-content",t),n);return l.createElement(Tp.Provider,{value:{activeTabId:this.state.activeTab}},l.createElement(r,Sl({},i,{className:o})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return t.activeTab!==e.activeTab?{activeTab:e.activeTab}:null}}]),n}(l.Component);Op.propTypes=Mp,Op.defaultProps={tag:"div"};var jp=["className","cssModule","tabId","tag"],Pp={tag:Ul,className:ys.string,cssModule:ys.object,tabId:ys.any};function Np(e){var t=e.className,n=e.cssModule,r=e.tabId,i=e.tag,o=El(e,jp),a=function(e){return Nl(Hs("tab-pane",t,{active:r===e}),n)};return l.createElement(Tp.Consumer,null,(function(e){var t=e.activeTabId;return l.createElement(i,Sl({},o,{className:a(t)}))}))}Np.propTypes=Pp,Np.defaultProps={tag:"div"};var Dp=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"],Lp={children:ys.node,className:ys.string,closeClassName:ys.string,closeAriaLabel:ys.string,cssModule:ys.object,color:ys.string,fade:ys.bool,isOpen:ys.bool,toggle:ys.func,tag:Ul,transition:ys.shape(Uc.propTypes),innerRef:ys.oneOfType([ys.object,ys.string,ys.func])},Rp={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",fade:!0,transition:kl(kl({},Uc.defaultProps),{},{unmountOnExit:!0})};function Ap(e){var t=e.className,n=e.closeClassName,r=e.closeAriaLabel,i=e.cssModule,o=e.tag,a=e.color,s=e.isOpen,u=e.toggle,c=e.children,f=e.transition,d=e.fade,h=e.innerRef,p=El(e,Dp),v=Nl(Hs(t,"alert","alert-".concat(a),{"alert-dismissible":u}),i),m=Nl(Hs("btn-close",n),i),g=kl(kl(kl({},Uc.defaultProps),f),{},{baseClass:d?f.baseClass:"",timeout:d?f.timeout:0});return l.createElement(Uc,Sl({},p,g,{tag:o,className:v,in:s,role:"alert",innerRef:h}),u?l.createElement("button",{type:"button",className:m,"aria-label":r,onClick:u}):null,c)}Ap.propTypes=Lp,Ap.defaultProps=Rp;var Ip=["className","cssModule","tag","isOpen","children","transition","fade","innerRef"],Fp={children:ys.node,className:ys.string,cssModule:ys.object,fade:ys.bool,isOpen:ys.bool,tag:Ul,transition:ys.shape(Uc.propTypes),innerRef:ys.oneOfType([ys.object,ys.string,ys.func])},zp={isOpen:!0,tag:"div",fade:!0,transition:kl(kl({},Uc.defaultProps),{},{unmountOnExit:!0})};function Bp(e){var t=e.className,n=e.cssModule,r=e.tag,i=e.isOpen,o=e.children,a=e.transition,s=e.fade,u=e.innerRef,c=El(e,Ip),f=Nl(Hs(t,"toast"),n),d=kl(kl(kl({},Uc.defaultProps),a),{},{baseClass:s?a.baseClass:"",timeout:s?a.timeout:0});return l.createElement(Uc,Sl({},c,d,{tag:r,className:f,in:i,role:"alert",innerRef:u}),o)}Bp.propTypes=Fp,Bp.defaultProps=zp;var Up=["className","cssModule","innerRef","tag"],Vp={tag:Ul,className:ys.string,cssModule:ys.object,innerRef:ys.oneOfType([ys.object,ys.string,ys.func])},Hp=function(e){var t=e.className,n=e.cssModule,r=e.innerRef,i=e.tag,o=El(e,Up),a=Nl(Hs(t,"toast-body"),n);return l.createElement(i,Sl({},o,{className:a,ref:r}))};Hp.propTypes=Vp,Hp.defaultProps={tag:"div"};var Wp=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close","tagClassName","icon"],Zp={tag:Ul,icon:ys.oneOfType([ys.string,ys.node]),wrapTag:Ul,toggle:ys.func,className:ys.string,cssModule:ys.object,children:ys.node,closeAriaLabel:ys.string,charCode:ys.oneOfType([ys.string,ys.number]),close:ys.object},Yp=function(e){var t,n,r=e.className,i=e.cssModule,o=e.children,a=e.toggle,s=e.tag,u=e.wrapTag,c=e.closeAriaLabel,f=e.close,d=e.tagClassName,h=e.icon,p=El(e,Wp),v=Nl(Hs(r,"toast-header"),i);return!f&&a&&(t=l.createElement("button",{type:"button",onClick:a,className:Nl("btn-close",i),"aria-label":c})),"string"===typeof h?n=l.createElement("svg",{className:Nl("rounded text-".concat(h)),width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid slice",focusable:"false",role:"img"},l.createElement("rect",{fill:"currentColor",width:"100%",height:"100%"})):h&&(n=h),l.createElement(u,Sl({},p,{className:v}),n,l.createElement(s,{className:Nl(Hs(d,{"ms-2":null!=n}),i)},o),f||t)};Yp.propTypes=Zp,Yp.defaultProps={tag:"strong",wrapTag:"div",tagClassName:"me-auto",closeAriaLabel:"Close"};var qp=["className","cssModule","tag","active","disabled","action","color"],Gp={tag:Ul,active:ys.bool,disabled:ys.bool,color:ys.string,action:ys.bool,className:ys.any,cssModule:ys.object},Kp=function(e){e.preventDefault()},Qp=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=e.active,o=e.disabled,a=e.action,s=e.color,u=El(e,qp),c=Nl(Hs(t,!!i&&"active",!!o&&"disabled",!!a&&"list-group-item-action",!!s&&"list-group-item-".concat(s),"list-group-item"),n);return o&&(u.onClick=Kp),l.createElement(r,Sl({},u,{className:c}))};Qp.propTypes=Gp,Qp.defaultProps={tag:"li"};var $p=Qp,Xp=["className","cssModule","tag"],Jp={tag:Ul,className:ys.any,cssModule:ys.object},ev=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=El(e,Xp),o=Nl(Hs(t,"list-group-item-heading"),n);return l.createElement(r,Sl({},i,{className:o}))};ev.propTypes=Jp,ev.defaultProps={tag:"h5"};var tv=["className","cssModule","tag"],nv={tag:Ul,className:ys.any,cssModule:ys.object},rv=function(e){var t=e.className,n=e.cssModule,r=e.tag,i=El(e,tv),o=Nl(Hs(t,"list-group-item-text"),n);return l.createElement(r,Sl({},i,{className:o}))};rv.propTypes=nv,rv.defaultProps={tag:"p"};var iv=["className","cssModule","tag","type"],ov={tag:Ul,className:ys.string,cssModule:ys.object,type:ys.string},av=(0,l.forwardRef)((function(e,t){var n=e.className,r=e.cssModule,i=e.tag,o=e.type,a=El(e,iv),s=Nl(Hs(n,!!o&&"list-".concat(o)),r);return l.createElement(i,Sl({},a,{className:s,ref:t}))}));av.name="List",av.propTypes=ov,av.defaultProps={tag:"ul"};var sv=["className","cssModule","tag"],lv={tag:Ul,className:ys.string,cssModule:ys.object},uv=(0,l.forwardRef)((function(e,t){var n=e.className,r=e.cssModule,i=e.tag,o=El(e,sv),a=Nl(Hs(n,"list-inline-item"),r);return l.createElement(i,Sl({},o,{className:a,ref:t}))}));uv.name="ListInlineItem",uv.propTypes=lv,uv.defaultProps={tag:"li"};l.Component;var cv=["defaultOpen"];(function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).state={isOpen:e.defaultOpen||!1},r.toggle=r.toggle.bind(As(r)),r}return Vt(n,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return l.createElement(yc,Sl({isOpen:this.state.isOpen,toggle:this.toggle},Dl(this.props,cv)))}}]),n}(l.Component)).propTypes=kl({defaultOpen:ys.bool},yc.propTypes);var fv=["toggleEvents","defaultOpen"],dv={defaultOpen:ys.bool,toggler:ys.string.isRequired,toggleEvents:ys.arrayOf(ys.string)},hv={toggleEvents:nu},pv=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).togglers=null,r.removeEventListeners=null,r.toggle=r.toggle.bind(As(r)),r.state={isOpen:e.defaultOpen||!1},r}return Vt(n,[{key:"componentDidMount",value:function(){this.togglers=Jl(this.props.toggler),this.togglers.length&&(this.removeEventListeners=ru(this.togglers,this.toggle,this.props.toggleEvents))}},{key:"componentWillUnmount",value:function(){this.togglers.length&&this.removeEventListeners&&this.removeEventListeners()}},{key:"toggle",value:function(e){this.setState((function(e){return{isOpen:!e.isOpen}})),e.preventDefault()}},{key:"render",value:function(){return l.createElement(af,Sl({isOpen:this.state.isOpen},Dl(this.props,fv)))}}]),n}(l.Component);pv.propTypes=dv,pv.defaultProps=hv;var vv=["defaultOpen"],mv=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).state={isOpen:e.defaultOpen||!1},r.toggle=r.toggle.bind(As(r)),r}return Vt(n,[{key:"toggle",value:function(e){var t=this,n=!this.state.isOpen;this.setState({isOpen:n},(function(){t.props.onToggle&&t.props.onToggle(e,n)}))}},{key:"render",value:function(){return l.createElement(vc,Sl({isOpen:this.state.isOpen,toggle:this.toggle},Dl(this.props,vv)))}}]),n}(l.Component);mv.propTypes=kl({defaultOpen:ys.bool,onToggle:ys.func},vc.propTypes);var gv=["defaultOpen"],yv=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).state={isOpen:e.defaultOpen||!1},r.toggle=r.toggle.bind(As(r)),r}return Vt(n,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return l.createElement(ph,Sl({isOpen:this.state.isOpen,toggle:this.toggle},Dl(this.props,gv)))}}]),n}(l.Component);yv.propTypes=kl({defaultOpen:ys.bool},ph.propTypes);var bv=["className","cssModule","type","size","color","children","tag"],_v={tag:Ul,type:ys.string,size:ys.string,color:ys.string,className:ys.string,cssModule:ys.object,children:ys.string},xv=function(e){var t=e.className,n=e.cssModule,r=e.type,i=e.size,o=e.color,a=e.children,s=e.tag,u=El(e,bv),c=Nl(Hs(t,!!i&&"spinner-".concat(r,"-").concat(i),"spinner-".concat(r),!!o&&"text-".concat(o)),n);return l.createElement(s,Sl({role:"status"},u,{className:c}),a&&l.createElement("span",{className:Nl("visually-hidden",n)},a))};xv.propTypes=_v,xv.defaultProps={tag:"div",type:"border",children:"Loading..."};var wv=["className","cssModule","color","innerRef","tag","animation","size","widths"],kv=kl(kl({},ku.propTypes),{},{color:ys.string,tag:Ul,animation:ys.oneOf(["glow","wave"]),innerRef:ys.oneOfType([ys.object,ys.func,ys.string]),size:ys.oneOf(["lg","sm","xs"])}),Cv=function(e){var t=e.className,n=e.cssModule,r=e.color,i=e.innerRef,o=e.tag,a=e.animation,s=e.size,u=e.widths,c=El(e,wv),f=xu(c,n,u),d=f.attributes,h=f.colClasses,p=Nl(Hs(t,h,"placeholder"+(a?"-"+a:""),!!s&&"placeholder-"+s,!!r&&"bg-"+r),n);return l.createElement(o,Sl({},d,{className:p,ref:i}))};Cv.propTypes=kv,Cv.defaultProps={tag:"span"};var Sv=["cssModule","className","tag"],Ev={size:ys.string,color:ys.string,outline:ys.bool,className:ys.string,tag:Ul},Tv={color:"primary",tag:ac},Mv=function(e){var t=e.cssModule,n=e.className,r=(e.tag,El(e,Sv)),i=xu(r,t),o=i.attributes,a=i.colClasses,s=Nl(Hs("placeholder",n,a),t);return l.createElement(ac,Sl({},o,{className:s,disabled:!0}))};Mv.propTypes=Ev,Mv.defaultProps=Tv;!function(){if("object"===typeof window&&"function"!==typeof window.CustomEvent){window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}}}(),function(){if("function"!==typeof Object.values){Object.values=function(e){return Object.keys(e).map((function(t){return e[t]}))}}}();var Ov,jv={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Pv={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},Nv="mousemove",Dv="mouseup";function Lv(e,t){if(0===t)return e;var n=Math.PI/180*t;return[e[0]*Math.cos(n)+e[1]*Math.sin(n),e[1]*Math.cos(n)-e[0]*Math.sin(n)]}function Rv(e){var t,n=e.trackMouse,r=l.useRef(Object.assign({},Pv)),i=l.useRef(Object.assign({},jv)),o=l.useRef(Object.assign({},i.current));for(t in o.current=Object.assign({},i.current),i.current=Object.assign(Object.assign({},jv),e),jv)void 0===i.current[t]&&(i.current[t]=jv[t]);var a=l.useMemo((function(){return function(e,t){var n=function(t){var n="touches"in t;n&&t.touches.length>1||e((function(e,i){i.trackMouse&&!n&&(document.addEventListener(Nv,r),document.addEventListener(Dv,a));var o=n?t.touches[0]:t,s=Lv([o.clientX,o.clientY],i.rotationAngle);return i.onTouchStartOrOnMouseDown&&i.onTouchStartOrOnMouseDown({event:t}),Object.assign(Object.assign(Object.assign({},e),Pv),{initial:s.slice(),xy:s,start:t.timeStamp||0})}))},r=function(t){e((function(e,n){var r="touches"in t;if(r&&t.touches.length>1)return e;if(t.timeStamp-e.start>n.swipeDuration)return e.swiping?Object.assign(Object.assign({},e),{swiping:!1}):e;var i=r?t.touches[0]:t,o=v(Lv([i.clientX,i.clientY],n.rotationAngle),2),a=o[0],s=o[1],l=a-e.xy[0],u=s-e.xy[1],c=Math.abs(l),f=Math.abs(u),d=(t.timeStamp||0)-e.start,h=Math.sqrt(c*c+f*f)/(d||1),p=[l/(d||1),u/(d||1)],m=function(e,t,n,r){return e>t?n>0?"Right":"Left":r>0?"Down":"Up"}(c,f,l,u),g="number"===typeof n.delta?n.delta:n.delta[m.toLowerCase()]||jv.delta;if(c<g&&f<g&&!e.swiping)return e;var y={absX:c,absY:f,deltaX:l,deltaY:u,dir:m,event:t,first:e.first,initial:e.initial,velocity:h,vxvy:p};y.first&&n.onSwipeStart&&n.onSwipeStart(y),n.onSwiping&&n.onSwiping(y);var b=!1;return(n.onSwiping||n.onSwiped||n["onSwiped".concat(m)])&&(b=!0),b&&n.preventScrollOnSwipe&&n.trackTouch&&t.cancelable&&t.preventDefault(),Object.assign(Object.assign({},e),{first:!1,eventData:y,swiping:!0})}))},i=function(t){e((function(e,n){var r;if(e.swiping&&e.eventData){if(t.timeStamp-e.start<n.swipeDuration){r=Object.assign(Object.assign({},e.eventData),{event:t}),n.onSwiped&&n.onSwiped(r);var i=n["onSwiped".concat(r.dir)];i&&i(r)}}else n.onTap&&n.onTap({event:t});return n.onTouchEndOrOnMouseUp&&n.onTouchEndOrOnMouseUp({event:t}),Object.assign(Object.assign(Object.assign({},e),Pv),{eventData:r})}))},o=function(){document.removeEventListener(Nv,r),document.removeEventListener(Dv,a)},a=function(e){o(),i(e)},s=function(e,t){var o=function(){};if(e&&e.addEventListener){var a=Object.assign(Object.assign({},jv.touchEventOptions),t.touchEventOptions),s=[["touchstart",n,a],["touchmove",r,Object.assign(Object.assign({},a),t.preventScrollOnSwipe?{passive:!1}:{})],["touchend",i,a]];s.forEach((function(t){var n=v(t,3),r=n[0],i=n[1],o=n[2];return e.addEventListener(r,i,o)})),o=function(){return s.forEach((function(t){var n=v(t,2),r=n[0],i=n[1];return e.removeEventListener(r,i)}))}}return o},l={ref:function(t){null!==t&&e((function(e,n){if(e.el===t)return e;var r={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),r.cleanUpTouch=void 0),n.trackTouch&&t&&(r.cleanUpTouch=s(t,n)),Object.assign(Object.assign(Object.assign({},e),{el:t}),r)}))}};return t.trackMouse&&(l.onMouseDown=n),[l,s]}((function(e){return r.current=e(r.current,i.current)}),{trackMouse:n})}),[n]),s=v(a,2),u=s[0],c=s[1];return r.current=function(e,t,n,r){return t.trackTouch&&e.el?e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)}):(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0}))}(r.current,i.current,o.current,c),u}var Av=new Uint8Array(16);function Iv(){if(!Ov&&!(Ov="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ov(Av)}var Fv=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var zv=function(e){return"string"===typeof e&&Fv.test(e)},Bv=[],Uv=0;Uv<256;++Uv)Bv.push((Uv+256).toString(16).substr(1));var Vv=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Bv[e[t+0]]+Bv[e[t+1]]+Bv[e[t+2]]+Bv[e[t+3]]+"-"+Bv[e[t+4]]+Bv[e[t+5]]+"-"+Bv[e[t+6]]+Bv[e[t+7]]+"-"+Bv[e[t+8]]+Bv[e[t+9]]+"-"+Bv[e[t+10]]+Bv[e[t+11]]+Bv[e[t+12]]+Bv[e[t+13]]+Bv[e[t+14]]+Bv[e[t+15]]).toLowerCase();if(!zv(n))throw TypeError("Stringified UUID is invalid");return n};var Hv=function(e,t,n){var r=(e=e||{}).random||(e.rng||Iv)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Vv(r)},Wv=function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,i=(0,l.useState)(n),o=v(i,2),a=o[0],s=o[1],u=(0,l.useRef)(void 0),c=function(){s(!n),u.current&&t(u.current),u.current=e((function(){return s(n)}),r)};return[a,c]}},Zv=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,l.useState)(e),n=v(t,2),r=n[0],i=n[1];return[r,function(){return i(!r)},function(){return i(!0)},function(){return i(!1)}]},Yv=function(){var e=Se();return function(){return e(-1)}},qv=function(){return(0,l.useRef)("dom-".concat(Hv())).current},Gv="#4696e5",Kv="#f77f28",Qv=function(e){var t,n;return null===(t=document.getElementsByTagName("html"))||void 0===t||null===(n=t[0])||void 0===n?void 0:n.setAttribute("data-theme",e)},$v=function(){var e,t;return"dark"===(null===(e=document.getElementsByTagName("html"))||void 0===e||null===(t=e[0])||void 0===t?void 0:t.getAttribute("data-theme"))},Xv=function(e){var t=e.color,n=void 0===t?Gv:t,r=e.className;return(0,ir.jsx)("svg",{className:r,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,ir.jsxs)("g",{fill:n,children:[(0,ir.jsx)("path",{d:" M 23.71 85.08 C 17.22 49.81 49.44 14.86 85.08 18.12 C 118.83 19.21 145.72 53.33 139.45 86.37 C 155.64 102.30 171.32 118.83 187.87 134.36 C 198.32 111.73 208.84 89.12 219.57 66.62 C 226.05 53.84 243.47 48.74 255.73 56.27 C 263.76 62.10 270.34 69.69 277.25 76.75 C 286.28 86.61 285.72 102.89 276.31 112.31 C 223.38 165.37 170.38 218.37 117.35 271.34 C 107.72 280.99 91.01 281.25 81.11 271.86 C 74.39 264.94 66.82 258.69 61.24 250.77 C 53.72 238.52 58.85 221.07 71.64 214.62 C 94.11 203.87 116.72 193.38 139.33 182.91 C 123.81 166.36 107.30 150.68 91.37 134.49 C 60.20 140.28 27.37 116.78 23.71 85.08 Z"}),(0,ir.jsx)("path",{d:" M 205.21 201.23 C 225.32 181.36 260.88 181.11 281.14 200.86 C 299.25 218.75 317.37 236.65 335.10 254.93 C 356.73 278.01 352.01 318.70 326.03 336.56 C 320.07 330.47 313.73 324.65 308.12 318.28 C 323.86 309.39 328.76 286.18 316.63 272.39 C 301.73 256.95 286.30 242.03 271.24 226.75 C 264.49 219.65 256.80 212.00 246.37 211.52 C 224.65 208.64 205.52 233.36 214.49 253.58 C 221.09 266.81 234.22 275.12 243.62 286.24 C 240.43 295.96 238.09 306.13 238.29 316.46 C 225.55 304.29 213.16 291.73 200.89 279.09 C 180.97 257.57 183.10 220.45 205.21 201.23 Z"}),(0,ir.jsx)("path",{d:" M 273.90 352.07 C 252.28 328.99 256.98 288.31 282.96 270.46 C 288.93 276.54 295.26 282.36 300.88 288.72 C 285.14 297.62 280.23 320.82 292.38 334.61 C 307.27 350.05 322.70 364.96 337.75 380.25 C 344.51 387.35 352.20 395.00 362.64 395.48 C 384.35 398.37 403.49 373.64 394.51 353.42 C 387.92 340.18 374.78 331.88 365.38 320.76 C 368.56 311.04 370.91 300.86 370.71 290.54 C 383.45 302.70 395.84 315.27 408.11 327.91 C 428.03 349.43 425.90 386.55 403.78 405.77 C 383.68 425.64 348.13 425.89 327.86 406.14 C 309.75 388.25 291.60 370.37 273.90 352.07 Z"}),(0,ir.jsx)("path",{d:" M 422.11 403.83 C 431.96 394.07 441.60 384.06 451.66 374.51 C 460.90 383.74 471.89 392.70 474.89 406.11 C 480.16 429.97 484.08 454.13 488.76 478.12 C 490.00 483.41 484.47 488.29 479.35 486.63 C 454.66 481.52 429.55 478.12 405.14 471.84 C 393.17 467.97 385.20 457.75 376.55 449.27 C 386.39 439.49 396.13 429.60 406.06 419.91 C 416.37 433.45 435.74 414.00 422.11 403.83 Z"})]})})},Jv=function(e){return function(){var t=v(Zv(),4),n=t[0],r=t[1],i=t[3],o=Ce(),a=o.pathname;(0,l.useEffect)(i,[o]);var s="/settings",u=Ws()("main-header__toggle-icon",{"main-header__toggle-icon--opened":n});return(0,ir.jsxs)(Tu,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[(0,ir.jsxs)(Pu,{tag:ze,to:"/",children:[(0,ir.jsx)(Xv,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),(0,ir.jsx)(Fu,{onClick:r,children:(0,ir.jsx)(Ls,{icon:xr,className:u})}),(0,ir.jsx)(af,{navbar:!0,isOpen:n,children:(0,ir.jsxs)(Vu,{navbar:!0,className:"ms-auto",children:[(0,ir.jsx)(Yu,{children:(0,ir.jsxs)(Qu,{tag:ze,to:s,active:a.startsWith(s),children:[(0,ir.jsx)(Ls,{icon:zr}),"\xa0 Settings"]})}),(0,ir.jsx)(e,{})]})})]})}},em=bt((function(e){for(var t=wn(e),n=t.length,r=[],i=0;i<n;)r[i]=e[t[i]],i+=1;return r})),tm=function(){return tm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},tm.apply(this,arguments)};var nm=function(e){var t=e.href,n=e.children,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["href","children"]);return l.createElement("a",tm({target:"_blank",rel:"noopener noreferrer",href:t},r),null!==n&&void 0!==n?n:t)},rm=function(e){var t=e.id,n=e.name;return(0,ir.jsxs)($p,{tag:ze,to:"/server/".concat(t),className:"servers-list__server-item",children:[n,(0,ir.jsx)(Ls,{icon:wr,className:"servers-list__server-item-icon"})]})},im=function(e){var t=e.servers,n=e.children,r=e.embedded,i=void 0!==r&&r;return(0,ir.jsxs)(ir.Fragment,{children:[n&&(0,ir.jsx)("h5",{className:"mb-md-3",children:n}),t.length>0&&(0,ir.jsx)(xh,{className:Ws()("servers-list__list-group",{"servers-list__list-group--embedded":i}),children:t.map((function(e){var t=e.id,n=e.name;return(0,ir.jsx)(rm,{id:t,name:n},t)}))})]})},om=function(e){var t=e.servers,n=Se(),r=em(t),i=!Bn(r);return(0,l.useEffect)((function(){var e=r.find((function(e){return e.autoConnect}));e&&n("/server/".concat(e.id))}),[]),(0,ir.jsx)("div",{className:"home",children:(0,ir.jsx)(mf,{className:"home__main-card",children:(0,ir.jsxs)(hu,{className:"g-0",children:[(0,ir.jsx)("div",{className:"col-md-5 d-none d-md-block",children:(0,ir.jsx)("div",{className:"home__logo-wrapper",children:(0,ir.jsx)("div",{className:"home__logo",children:(0,ir.jsx)(Xv,{})})})}),(0,ir.jsxs)("div",{className:"col-md-7 home__servers-container",children:[(0,ir.jsx)("div",{className:"home__title-wrapper",children:(0,ir.jsx)("h1",{className:"home__title",children:"Welcome!"})}),(0,ir.jsx)(im,{embedded:!0,servers:r,children:!i&&(0,ir.jsxs)("div",{className:"p-4 text-center",children:[(0,ir.jsx)("p",{className:"mb-5",children:"This application will help you manage your Shlink servers."}),(0,ir.jsx)("p",{children:(0,ir.jsxs)(ze,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[(0,ir.jsx)(Ls,{icon:ri})," ",(0,ir.jsx)("span",{className:"ms-1",children:"Add a server"})]})}),(0,ir.jsx)("p",{className:"mb-0 mt-5",children:(0,ir.jsx)(nm,{href:"https://shlink.io/documentation",children:(0,ir.jsxs)("small",{children:[(0,ir.jsx)("span",{className:"me-1",children:"Learn more about Shlink"})," ",(0,ir.jsx)(Ls,{icon:mi})]})})})]})})]})]})})})},am=function(e){return{error:"border-danger",default:""}[e]},sm=function(e){return{error:"text-danger",default:"text-muted"}[e]},lm=function(e){var t=e.className,n=e.children,r=e.loading,i=void 0!==r&&r,o=e.type,a=void 0===o?"default":o,s=e.fullWidth,l=void 0!==s&&s,u=Ws()({"col-md-12":l,"col-md-10 offset-md-1":!l});return(0,ir.jsx)(hu,{className:Ws()("g-0",t),children:(0,ir.jsx)("div",{className:u,children:(0,ir.jsx)(mf,{className:am(a),body:!0,children:(0,ir.jsxs)("h3",{className:Ws()("text-center mb-0",sm(a)),children:[i&&(0,ir.jsx)(Ls,{icon:Or,spin:!0}),i&&(0,ir.jsx)("span",{className:"ms-2",children:null!==n&&void 0!==n?n:"Loading..."}),!i&&n]})})})})},um=function(e){var t=e.children;return(0,ir.jsx)("div",{className:"no-menu-wrapper container-xl",children:t})};function cm(e,t){return function(n){var r,i=Ee(),o=n.selectServer,a=n.selectedServer;return(0,l.useEffect)((function(){i.serverId&&o(i.serverId)}),[i.serverId]),a?null!==(r=a)&&void 0!==r&&r.serverNotFound?(0,ir.jsx)(t,{}):(0,ir.jsx)(e,Ze({},n)):(0,ir.jsx)(um,{children:(0,ir.jsx)(lm,{loading:!0})})}}function fm(e,t){var n=pm(e),r=pm(t),i=n.pop(),o=r.pop(),a=ym(n,r);return 0!==a?a:i&&o?ym(i.split("."),o.split(".")):i||o?i?-1:1:0}var dm=function(e,t,n){xm(n);var r=fm(e,t);return bm[n].includes(r)};fm.validate=function(e){return"string"===typeof e&&/^[v\d]/.test(e)&&hm.test(e)},fm.compare=dm,fm.sastisfies=function(e,t){var n=t.match(/^([<>=~^]+)/),r=n?n[1]:"=";if("^"!==r&&"~"!==r)return dm(e,t,r);var i=v(pm(e),3),o=i[0],a=i[1],s=i[2],l=v(pm(t),3),u=l[0],c=l[1],f=l[2];return 0===gm(o,u)&&("^"===r?ym([a,s],[c,f])>=0:0===gm(a,c)&&gm(s,f)>=0)};var hm=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,pm=function(e){if("string"!==typeof e)throw new TypeError("Invalid argument expected string");var t=e.match(hm);if(!t)throw new Error("Invalid argument not valid semver ('".concat(e,"' received)"));return t.shift(),t},vm=function(e){return"*"===e||"x"===e||"X"===e},mm=function(e){var t=parseInt(e,10);return isNaN(t)?e:t},gm=function(e,t){if(vm(e)||vm(t))return 0;var n=function(e,t){return typeof e!==typeof t?[String(e),String(t)]:[e,t]}(mm(e),mm(t)),r=v(n,2),i=r[0],o=r[1];return i>o?1:i<o?-1:0},ym=function(e,t){for(var n=0;n<Math.max(e.length,t.length);n++){var r=gm(e[n]||0,t[n]||0);if(0!==r)return r}return 0},bm={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},_m=Object.keys(bm),xm=function(e){if("string"!==typeof e)throw new TypeError("Invalid operator type, expected string but got ".concat(typeof e));if(-1===_m.indexOf(e))throw new Error("Invalid operator, expected one of ".concat(_m.join("|")))},wm=_t((function(e,t){var n={};return en(t.length,(function(){var r=e.apply(this,arguments);return hn(r,n)||(n[r]=t.apply(this,arguments)),n[r]}))})),km=wm;function Cm(e){return e}var Sm=bt(Cm);function Em(e){return"[object Number]"===Object.prototype.toString.call(e)}var Tm=_t((function(e,t){if(!Em(e)||!Em(t))throw new TypeError("Both arguments to range must be numbers");for(var n=[],r=e;r<t;)n.push(r),r+=1;return n}));function Mm(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function Om(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return yt(n)?t:_t((function(t,r){return e(n,t,r)}));case 2:return yt(n)&&yt(r)?t:yt(n)?_t((function(t,n){return e(t,r,n)})):yt(r)?_t((function(t,r){return e(n,t,r)})):bt((function(t){return e(n,r,t)}));default:return yt(n)&&yt(r)&&yt(i)?t:yt(n)&&yt(r)?_t((function(t,n){return e(t,n,i)})):yt(n)&&yt(i)?_t((function(t,n){return e(t,r,n)})):yt(r)&&yt(i)?_t((function(t,r){return e(n,t,r)})):yt(n)?bt((function(t){return e(t,r,i)})):yt(r)?bt((function(t){return e(n,t,i)})):yt(i)?bt((function(t){return e(n,r,t)})):e(n,r,i)}}}var jm=Om(sn);function Pm(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return qt(r)||"function"!==typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var Nm=Om(Pm("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)}))),Dm=Nm,Lm=bt(Pm("tail",Dm(1,1/0)));function Rm(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return en(arguments[0].length,jm(Mm,arguments[0],Lm(arguments)))}var Am=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Tm(n,e+1).map(t)},Im=function(e){return!Mn(e)&&!Bn(e)},Fm=function(e){return Rm((function(e){return e.preventDefault()}),e)},zm=function(e){return Bn(e)?null:e},Bm=km(Sm,(function(e){try{return dm(e,e,"=")}catch(BA){return!1}})),Um=function(e){return Bm(e)?"v".concat(e):e},Vm=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"latest";return function(t){return Bm(t)?t:e}},Hm=function(e){return function(t){return At(t)&&function(e,t){var n=t.maxVersion,r=t.minVersion;if(!Im(e))return!1;var i=!r||dm(e,r,">=");return(!n||dm(e,n,"<="))&&i}(t.version,{minVersion:e})}},Wm=Hm("2.7.0"),Zm=Wm,Ym=Hm("2.8.0"),qm=Ym,Gm=Hm("2.9.0"),Km=Gm,Qm=Hm("2.10.0"),$m=Hm("3.0.0"),Xm=$m,Jm=Hm("3.1.0"),eg=["title","children","bodyClassName"],tg=function(e){var t=e.title,n=e.children,r=e.bodyClassName,i=Wt(e,eg);return(0,ir.jsxs)(mf,Ze(Ze({},i),{},{children:[t&&(0,ir.jsx)(Bf,{role:"heading",children:t}),(0,ir.jsx)(Of,{className:r,children:n})]}))},ng=function(e){var t=e.to,n=void 0===t?"/":t,r=e.children,i=void 0===r?"Home":r;return(0,ir.jsx)("div",{className:"home",children:(0,ir.jsxs)(tg,{className:"p-4",children:[(0,ir.jsx)("h2",{children:"Oops! We could not find requested route."}),(0,ir.jsx)("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),(0,ir.jsx)("br",{}),(0,ir.jsx)(ze,{to:n,className:"btn btn-outline-primary btn-lg",children:i})]})})},rg=function(e,t,n,r,i,o,a,s,u,c,f,d,h){return cm((function(p){var m=p.selectedServer,g=p.sidebarNotPresent,y=p.sidebarPresent,b=Ce(),_=v(Zv(),4),x=_[0],w=_[1],k=_[2],C=_[3],S=At(m);if((0,l.useEffect)((function(){return C()}),[b]),(0,l.useEffect)((function(){return S&&y(),function(){return g()}}),[]),!S)return(0,ir.jsx)(c,{});var E=$m(m),T=qm(m),M=Jm(m),O=Ws()("menu-layout__burger-icon",{"menu-layout__burger-icon--active":x}),j=function(e,t){var n=function(e){return function(t){var n=t.event.composedPath().some((function(e){var t=e.classList;return null===t||void 0===t?void 0:t.contains("visits-table")}));n||document.querySelector(".modal")||e()}};return Rv({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})}(k,C);return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Ls,{icon:pr,className:O,onClick:w}),(0,ir.jsx)("div",Ze(Ze({},j),{},{className:"menu-layout__swipeable",children:(0,ir.jsxs)("div",{className:"menu-layout__swipeable-inner",children:[(0,ir.jsx)(n,{selectedServer:m,showOnMobile:x}),(0,ir.jsx)("div",{className:"menu-layout__container",onClick:function(){return C()},children:(0,ir.jsx)("div",{className:"container-xl",children:(0,ir.jsxs)(Ne,{children:[(0,ir.jsx)(je,{index:!0,element:(0,ir.jsx)(Oe,{replace:!0,to:"overview"})}),(0,ir.jsx)(je,{path:"/overview",element:(0,ir.jsx)(f,{})}),(0,ir.jsx)(je,{path:"/list-short-urls/:page",element:(0,ir.jsx)(t,{})}),(0,ir.jsx)(je,{path:"/create-short-url",element:(0,ir.jsx)(r,{})}),(0,ir.jsx)(je,{path:"/short-code/:shortCode/visits/*",element:(0,ir.jsx)(i,{})}),(0,ir.jsx)(je,{path:"/short-code/:shortCode/edit",element:(0,ir.jsx)(d,{})}),(0,ir.jsx)(je,{path:"/tag/:tag/visits/*",element:(0,ir.jsx)(o,{})}),M&&(0,ir.jsx)(je,{path:"/domain/:domain/visits/*",element:(0,ir.jsx)(a,{})}),(0,ir.jsx)(je,{path:"/orphan-visits/*",element:(0,ir.jsx)(s,{})}),E&&(0,ir.jsx)(je,{path:"/non-orphan-visits/*",element:(0,ir.jsx)(u,{})}),(0,ir.jsx)(je,{path:"/manage-tags",element:(0,ir.jsx)(e,{})}),T&&(0,ir.jsx)(je,{path:"/manage-domains",element:(0,ir.jsx)(h,{})}),(0,ir.jsx)(je,{path:"*",element:(0,ir.jsx)(ng,{to:"/server/".concat(m.id,"/list-short-urls/1"),children:"List short URLs"})})]})})})]})}))]})}),c)},ig=["children","to","className"],og=function(e){var t=e.children,n=e.to,r=e.className,i=Wt(e,ig);return(0,ir.jsx)(Be,Ze(Ze({className:function(e){var t=e.isActive;return Ws()("aside-menu__item",r,{"aside-menu__item--selected":t})},to:n},i),{},{children:t}))},ag=function(e){return function(t){var n=t.selectedServer,r=t.showOnMobile,i=void 0!==r&&r,o=Rt(n),a=o?n.id:"",s=Ce().pathname,l=qm(n),u=Ws()("aside-menu",{"aside-menu--hidden":!i}),c=function(e){return"/server/".concat(a).concat(e)};return(0,ir.jsx)("aside",{className:u,children:(0,ir.jsxs)("nav",{className:"nav flex-column aside-menu__nav",children:[(0,ir.jsxs)(og,{to:c("/overview"),children:[(0,ir.jsx)(Ls,{fixedWidth:!0,icon:Vr}),(0,ir.jsx)("span",{className:"aside-menu__item-text",children:"Overview"})]}),(0,ir.jsxs)(og,{to:c("/list-short-urls/1"),className:Ws()({"aside-menu__item--selected":null!==s.match("/list-short-urls")}),children:[(0,ir.jsx)(Ls,{fixedWidth:!0,icon:Wr}),(0,ir.jsx)("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),(0,ir.jsxs)(og,{to:c("/create-short-url"),children:[(0,ir.jsx)(Ls,{fixedWidth:!0,icon:Hr,flip:"horizontal"}),(0,ir.jsx)("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),(0,ir.jsxs)(og,{to:c("/manage-tags"),children:[(0,ir.jsx)(Ls,{fixedWidth:!0,icon:hi}),(0,ir.jsx)("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),l&&(0,ir.jsxs)(og,{to:c("/manage-domains"),children:[(0,ir.jsx)(Ls,{fixedWidth:!0,icon:Br}),(0,ir.jsx)("span",{className:"aside-menu__item-text",children:"Manage domains"})]}),(0,ir.jsxs)(og,{to:c("/edit"),className:"aside-menu__item--push",children:[(0,ir.jsx)(Ls,{fixedWidth:!0,icon:$r}),(0,ir.jsx)("span",{className:"aside-menu__item-text",children:"Edit this server"})]}),o&&(0,ir.jsx)(e,{className:"aside-menu__item aside-menu__item--danger",textClassName:"aside-menu__item-text",server:n})]})})}},sg=function(e,t){var n=e.location,r=t.error;return function(e){Fs(i,e);var t=Vs(i);function i(e){var n;return Ht(this,i),(n=t.call(this,e)).state={hasError:!1},n}return Vt(i,[{key:"componentDidCatch",value:function(e){r(e)}},{key:"render",value:function(){return this.state.hasError?(0,ir.jsx)("div",{className:"home",children:(0,ir.jsxs)(tg,{className:"p-4",children:[(0,ir.jsx)("h1",{children:"Oops! This is awkward :S"}),(0,ir.jsx)("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),(0,ir.jsx)("br",{}),(0,ir.jsx)(ac,{outline:!0,color:"primary",onClick:function(){return n.reload()},children:"Take me back"})]})}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(){return{hasError:!0}}}]),i}(l.Component)},lg=Rm(Vm(),Um),ug=function(e){var t=e.project,n=e.version;return(0,ir.jsx)(nm,{href:"https://github.com/shlinkio/".concat(t,"/releases/").concat(n),className:"text-muted",children:(0,ir.jsx)("b",{children:n})})},cg=function(e){var t=e.selectedServer,n=e.clientVersion,r=lg(void 0===n?"%_VERSION_%":n);return(0,ir.jsxs)("small",{className:"text-muted",children:[At(t)&&(0,ir.jsxs)(ir.Fragment,{children:["Server: ",(0,ir.jsx)(ug,{project:"shlink",version:t.printableVersion})," - "]}),"Client: ",(0,ir.jsx)(ug,{project:"shlink-web-client",version:r})]})},fg=function(e){var t=e.selectedServer,n=e.sidebar,r=Ws()("text-center",{"shlink-versions-container--with-sidebar":n.sidebarPresent});return(0,ir.jsx)("div",{className:r,children:(0,ir.jsx)(cg,{selectedServer:t})})};function dg(e){return function(t){var n=t.resetSelectedServer;return(0,l.useEffect)((function(){n()}),[]),(0,ir.jsx)(e,Ze({},t))}}var hg,pg,vg=function(e,t){return function(n,r){var i=r.type,o=e[i],a=null!==n&&void 0!==n?n:t;return o?o(a,r):a}},mg=function(e){return function(){return{type:e}}},gg="shlink/common/SIDEBAR_PRESENT",yg="shlink/common/SIDEBAR_NOT_PRESENT",bg=vg((He(hg={},gg,(function(){return{sidebarPresent:!0}})),He(hg,yg,(function(){return{sidebarPresent:!1}})),hg),{sidebarPresent:!1}),_g=mg(gg),xg=mg(yg),wg=function(e,t,n){var r=e.document,i=r.createElement("a");i.setAttribute("href",t),i.setAttribute("download",n),i.style.visibility="hidden",r.body.appendChild(i),i.click(),r.body.removeChild(i)},kg=function(e,t,n){var r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);wg(e,i,n)},Cg=function(){function e(t,n){Ht(this,e),this.axios=t,this.window=n}return Vt(e,[{key:"saveImage",value:function(){var e=Bt(Yt().mark((function e(t,n){var r,i,o;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.axios.get(t,{responseType:"blob"});case 2:r=e.sent,i=r.data,o=URL.createObjectURL(i),wg(this.window,o,n);case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),e}(),Sg=Vt((function e(t,n){var r=this;Ht(this,e),this.window=t,this.jsonToCsv=n,this.exportVisits=function(e,t){t.length&&r.exportCsv(e,t)},this.exportShortUrls=function(e){e.length&&r.exportCsv("short_urls.csv",e)},this.exportCsv=function(e,t){var n=r.jsonToCsv(t);kg(r.window,n,e)}})),Eg=function(e,t){e.constant("window",n.g.window),e.constant("console",n.g.console),e.constant("axios",rr()),e.service("ImageDownloader",Cg,"axios","window"),e.service("ReportExporter",Sg,"window","jsonToCsv"),e.serviceFactory("ScrollToTop",(function(){return or})),e.serviceFactory("MainHeader",Jv,"ServersDropdown"),e.serviceFactory("Home",(function(){return om})),e.decorator("Home",dg),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("MenuLayout",rg,"TagsList","ShortUrlsList","AsideMenu","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","ServerError","Overview","EditShortUrl","ManageDomains"),e.decorator("MenuLayout",t(["selectedServer"],["selectServer","sidebarPresent","sidebarNotPresent"])),e.serviceFactory("AsideMenu",ag,"DeleteServerButton"),e.serviceFactory("ShlinkVersionsContainer",(function(){return fg})),e.decorator("ShlinkVersionsContainer",t(["selectedServer","sidebar"])),e.serviceFactory("ErrorHandler",sg,"window","console"),e.serviceFactory("sidebarPresent",(function(){return _g})),e.serviceFactory("sidebarNotPresent",(function(){return xg}))},Tg=n(4892),Mg=function(e){var t=e.onChange,n=e.className,r=e.large,i=void 0===r||r,o=e.noBorder,a=void 0!==o&&o,s=e.initialValue,u=void 0===s?"":s,c=v((0,l.useState)(u),2),f=c[0],d=c[1],h=function(){pg&&clearTimeout(pg),pg=null},p=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;d(e),h(),pg=setTimeout((function(){t(e),h()}),n)};return(0,ir.jsxs)("div",{className:Ws()("search-field",n),children:[(0,ir.jsx)("input",{type:"text",className:Ws()("form-control search-field__input",{"form-control-lg":i,"search-field__input--no-border":a}),placeholder:"Search...",value:f,onChange:function(e){return p(e.target.value)}}),(0,ir.jsx)(Ls,{icon:Yr,className:"search-field__icon"}),(0,ir.jsx)("div",{className:"close search-field__close btn-close",hidden:""===f,id:"search-field__close",onClick:function(){return p("",0)}})]})},Og=function(e){var t=e.text,n=e.disabled,r=void 0!==n&&n,i=e.className,o=void 0===i?"":i,a=e.children,s=e.dropdownClassName,l=e.right,u=void 0!==l&&l,c=e.minWidth,f=v(Zv(),2),d=f[0],h=f[1],p="dropdown-btn__toggle btn-block ".concat(o),m={minWidth:c&&"".concat(c,"px")};return(0,ir.jsxs)(vc,{isOpen:d,toggle:h,disabled:r,className:s,children:[(0,ir.jsx)(Ic,{caret:!0,className:p,color:"primary",children:t}),(0,ir.jsx)(Dc,{className:"w-100",end:u,style:m,children:a})]})},jg=n(121),Pg=n(1776),Ng=n(3358);function Dg(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}var Lg=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=ln,e.prototype["@@transducer/result"]=un,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}(),Rg=_t((function(e,t){return new Lg(e,t)})),Ag=Rg;function Ig(e,t,n){return function(){for(var r=[],i=0,o=e,a=0;a<t.length||i<arguments.length;){var s;a<t.length&&(!yt(t[a])||i>=arguments.length)?s=t[a]:(s=arguments[i],i+=1),r[a]=s,yt(s)||(o-=1),a+=1}return o<=0?n.apply(this,r):en(o,Ig(e,r,n))}}var Fg=_t((function(e,t){return 1===e?bt(t):en(e,Ig(e,[],t))})),zg=Fg,Bg=_t(Kt(["fantasy-land/map","map"],Ag,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return zg(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return sn((function(n,r){return n[r]=e(t[r]),n}),{},wn(t));default:return Dg(e,t)}}))),Ug=Bg,Vg=_t((function(e,t){return t>e?t:e})),Hg=Vg,Wg=bt((function(e){return en(jm(Hg,0,Ug((function(e){return e[0].length}),e)),(function(){for(var t=0;t<e.length;){if(e[t][0].apply(this,arguments))return e[t][1].apply(this,arguments);t+=1}}))})),Zg=Wg,Yg=function(){return!0},qg=n(2612),Gg=n(2952),Kg=n(949),Qg=n(825);var $g=n(4773),Xg=n(5560),Jg=n(1328),ey=function(e){return"string"!==typeof e},ty=function(e,t){return e&&ey(e)?t?(0,qg.default)(e,t):function(e,t){(0,Qg.Z)(1,arguments);var n=(0,Gg.default)(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");var r=null!==t&&void 0!==t&&t.format?String(t.format):"extended",i=null!==t&&void 0!==t&&t.representation?String(t.representation):"complete";if("extended"!==r&&"basic"!==r)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==i&&"time"!==i&&"complete"!==i)throw new RangeError("representation must be 'date', 'time', or 'complete'");var o="",a="",s="extended"===r?"-":"",l="extended"===r?":":"";if("time"!==i){var u=(0,Kg.Z)(n.getDate(),2),c=(0,Kg.Z)(n.getMonth()+1,2),f=(0,Kg.Z)(n.getFullYear(),4);o="".concat(f).concat(s).concat(c).concat(s).concat(u)}if("date"!==i){var d=n.getTimezoneOffset();if(0!==d){var h=Math.abs(d),p=(0,Kg.Z)(Math.floor(h/60),2),v=(0,Kg.Z)(h%60,2);a="".concat(d<0?"+":"-").concat(p,":").concat(v)}else a="Z";var m=""===o?"":"T",g=[(0,Kg.Z)(n.getHours(),2),(0,Kg.Z)(n.getMinutes(),2),(0,Kg.Z)(n.getSeconds(),2)].join(l);o="".concat(o).concat(m).concat(g).concat(a)}return o}(e):e},ny=function(e){return ty(e,void 0)},ry=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"yyyy-MM-dd";return function(t){return ty(t,e)}}(),iy=function(e){return ey(e)?e:(0,Tg.default)(e)},oy=function(e,t,n){try{return(0,$g.default)(iy(e),{start:iy(null!==t&&void 0!==t?t:e),end:iy(null!==n&&void 0!==n?n:e)})}catch(BA){return!1}},ay=function(e,t){return(0,Xg.default)(e,t)||(0,Jg.default)(e,t)},sy=function(e){return void 0===e||Bn(Cn(Boolean,e))},ly=function(e){return"string"===typeof e},uy={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",all:void 0},cy=Object.keys(uy).filter((function(e){return"all"!==e})),fy=function(e){if(e&&"all"!==e)return ly(e)?uy[e]:function(e){if(e&&!sy(e))return e.startDate&&!e.endDate?"Since ".concat(ry(e.startDate)):!e.startDate&&e.endDate?"Until ".concat(ry(e.endDate)):"".concat(ry(e.startDate)," - ").concat(ry(e.endDate))}(e)},dy=function(e){return(0,jg.default)((0,Pg.default)(new Date,e))},hy=function(e){return{startDate:e,endDate:(0,Ng.default)(new Date)}},py=function(e){if(!e||"all"===e)return{};switch(e){case"today":return hy((0,jg.default)(new Date));case"yesterday":return{startDate:dy(1),endDate:(0,Ng.default)((0,Pg.default)(new Date,1))};case"last7Days":return hy(dy(7));case"last30Days":return hy(dy(30));case"last90Days":return hy(dy(90));case"last180Days":return hy(dy(180));case"last365Days":return hy(dy(365))}return{}},vy=function(e){var t=iy(e);return Zg([[function(){return ay((0,jg.default)(new Date),t)},function(){return"today"}],[function(){return ay(dy(1),t)},function(){return"yesterday"}],[function(){return ay(dy(7),t)},function(){return"last7Days"}],[function(){return ay(dy(30),t)},function(){return"last30Days"}],[function(){return ay(dy(90),t)},function(){return"last90Days"}],[function(){return ay(dy(180),t)},function(){return"last180Days"}],[function(){return ay(dy(365),t)},function(){return"last365Days"}],[Yg,function(){return"all"}]])()},my=n(577),gy=n.n(my),yy={prefix:"far",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M152 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24V64zM48 248H128V192H48V248zM48 296V360H128V296H48zM176 296V360H272V296H176zM320 296V360H400V296H320zM400 192H320V248H400V192zM400 408H320V464H384C392.8 464 400 456.8 400 448V408zM272 408H176V464H272V408zM128 408H48V448C48 456.8 55.16 464 64 464H128V408zM272 192H176V248H272V192z"]},by=yy,_y={prefix:"far",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9898,9899,11044,61708,61915,9679],"f111","M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"]},xy={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M280.2 150.2C273.1 143.8 262.1 142.2 254.3 146.1S239.1 158.5 239.1 167.1l.002 56L152 224C138.8 224 128 234.8 128 248v16C128 277.3 138.8 288 152 288L240 287.1v56c0 9.531 5.656 18.16 14.38 22c8.75 3.812 18.91 2.094 25.91-4.375l96-88.75C381.2 268.3 384 261.9 384 255.2c-.3125-7.781-2.875-13.25-7.844-17.75L280.2 150.2zM256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464z"]},wy=xy,ky={prefix:"far",iconName:"copy",icon:[512,512,[],"f0c5","M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"]},Cy=function(e){var t=e.className,n=e.isClearable,r=e.selected,i=!n||Mn(r),o=(0,l.useRef)();return(0,ir.jsxs)("div",{className:"date-input-container",children:[(0,ir.jsx)(gy(),Ze(Ze({},e),{},{dateFormat:"yyyy-MM-dd",className:Ws()("date-input-container__input form-control",t),ref:o})),i&&(0,ir.jsx)(Ls,{icon:by,className:"date-input-container__icon",onClick:function(){var e;return null===(e=o.current)||void 0===e?void 0:e.input.focus()}})]})},Sy=function(e){var t=e.startDate,n=void 0===t?null:t,r=e.endDate,i=void 0===r?null:r,o=e.disabled,a=void 0!==o&&o,s=e.onStartDateChange,l=e.onEndDateChange;return(0,ir.jsxs)("div",{className:"row",children:[(0,ir.jsx)("div",{className:"col-md-6",children:(0,ir.jsx)(Cy,{selected:n,placeholderText:"Since...",isClearable:!0,maxDate:null!==i&&void 0!==i?i:void 0,disabled:a,onChange:s})}),(0,ir.jsx)("div",{className:"col-md-6",children:(0,ir.jsx)(Cy,{className:"mt-2 mt-md-0",selected:i,placeholderText:"Until...",isClearable:!0,minDate:null!==n&&void 0!==n?n:void 0,disabled:a,onChange:function(e){return l(e&&(0,Ng.default)(e))}})})]})},Ey=function(e){var t=e.active,n=e.allText,r=e.onChange;return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Mc,{active:"all"===t,onClick:function(){return r("all")},children:n}),(0,ir.jsx)(Mc,{divider:!0}),cy.map((function(e){return(0,ir.jsx)(Mc,{active:t===e,onClick:function(){return r(e)},children:fy(e)},e)}))]})},Ty=function(e){var t,n=e.onDatesChange,r=e.initialDateRange,i=e.defaultText,o=e.disabled,a=e.updatable,s=void 0!==a&&a,u=ly(r),c=v((0,l.useState)(u?r:void 0),2),f=c[0],d=c[1],h=v((0,l.useState)(u?void 0:r),2),p=h[0],m=h[1],g=function(e){d(sy(e)?"all":void 0),m(e),n(e)},y=function(e){d(e),m(void 0),n(py(e))};return s&&function(e,t){var n=(0,l.useRef)(!0);(0,l.useEffect)((function(){!n.current&&e(),n.current=!1}),t)}((function(){var e=ly(r);e&&y(r),r&&!e&&g(r)}),[r]),(0,ir.jsxs)(Og,{disabled:o,text:null!==(t=fy(null!==f&&void 0!==f?f:p))&&void 0!==t?t:i,children:[(0,ir.jsx)(Ey,{allText:i,active:f,onChange:y}),(0,ir.jsx)(Mc,{divider:!0}),(0,ir.jsx)(Mc,{header:!0,children:"Custom:"}),(0,ir.jsx)(Mc,{text:!0,children:(0,ir.jsx)(Sy,Ze(Ze({},p),{},{onStartDateChange:function(e){return g(Ze(Ze({},p),{},{startDate:e}))},onEndDateChange:function(e){return g(Ze(Ze({},p),{},{endDate:e}))}}))})]})},My=bt((function(e){var t=[];for(var n in e)hn(n,e)&&(t[t.length]=[n,e[n]]);return t})),Oy=My;function jy(e){var t,n=e.items,r=e.order,i=e.onChange,o=e.isButton,a=void 0===o||o,s=e.right,l=void 0!==s&&s,u=e.prefixed,c=void 0===u||u,f=function(e){return function(){var t=Zn(e,r.field,r.dir);i(t?e:void 0,t)}};return(0,ir.jsxs)(mv,{children:[(0,ir.jsxs)(Ic,{caret:!0,color:a?"primary":"link",className:Ws()({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":a,"btn-sm p-0":!a}),children:[!a&&(0,ir.jsx)(ir.Fragment,{children:"Order by"}),a&&!r.field&&(0,ir.jsx)("i",{children:"Order by..."}),a&&r.field&&(0,ir.jsxs)(ir.Fragment,{children:[c&&"Order by: ",n[r.field]," - ",(0,ir.jsx)("small",{children:null!==(t=r.dir)&&void 0!==t?t:"DESC"})]})]}),(0,ir.jsxs)(Dc,{end:l,className:Ws()("w-100",{"ordering-dropdown__menu--link":!a}),children:[Oy(n).map((function(e){var t=v(e,2),n=t[0],i=t[1];return(0,ir.jsxs)(Mc,{active:r.field===n,onClick:f(n),children:[i,r.field===n&&(0,ir.jsx)(Ls,{icon:"ASC"===r.dir?dr:sr,className:"ordering-dropdown__sort-icon"})]},n)})),(0,ir.jsx)(Mc,{divider:!0}),(0,ir.jsx)(Mc,{disabled:!r.field,onClick:function(){return i()},children:(0,ir.jsx)("i",{children:"Clear selection"})})]})]})}var Py=["orderBy","tags"],Ny=["orderBy","tags"],Dy=function(){var e=Se(),t=Ce(),n=Ee(),r=(0,l.useMemo)(Rm((function(){return Hn(t.search)}),(function(e){var t,n=e.orderBy,r=e.tags,i=Wt(e,Py),o=n?function(e){var t=v(e.split("-"),2);return{field:t[0],dir:t[1]}}(n):void 0,a=null!==(t=null===r||void 0===r?void 0:r.split(","))&&void 0!==t?t:[];return Ze(Ze({},i),{},{orderBy:o,tags:a})})),[t.search]);return[r,function(t){var i,o=Ze(Ze({},r),t),a=o.orderBy,s=o.tags,l=Ze(Ze({},Wt(o,Ny)),{},{orderBy:a&&qn(a),tags:s.length>0?s.join(","):void 0}),u=Wn(l),c=Bn(u)?"":"?".concat(u);e("/server/".concat(null!==(i=n.serverId)&&void 0!==i?i:"","/list-short-urls/1").concat(c))}]},Ly={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},Ry=function(e){return e?(0,Tg.default)(e):null},Ay=function(e,t){return function(n){var r=n.selectedServer,i=n.className,o=n.shortUrlsAmount,a=n.order,s=n.handleOrderBy,l=v(Dy(),2),u=l[0],c=u.search,f=u.tags,d=u.startDate,h=u.endDate,p=u.tagsMode,m=void 0===p?"any":p,g=l[1],y=Rm((function(e){var t,n,r=e.startDate,i=e.endDate;return{startDate:null!==(t=ny(r))&&void 0!==t?t:void 0,endDate:null!==(n=ny(i))&&void 0!==n?n:void 0}}),g),b=Rm((function(e){return Bn(e)?void 0:e}),(function(e){return g({search:e})})),_=Xm(r),x=Rm((function(){return"any"===m?"all":"any"}),(function(e){return g({tagsMode:e})}));return(0,ir.jsxs)("div",{className:Ws()("short-urls-filtering-bar-container",i),children:[(0,ir.jsx)(Mg,{initialValue:c,onChange:b}),(0,ir.jsxs)(Hh,{className:"mt-3",children:[(0,ir.jsx)(t,{allowNew:!1,placeholder:"With tags...",selectedTags:f,onChange:function(e){return g({tags:e})}}),_&&f.length>1&&(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(ac,{outline:!0,color:"secondary",onClick:x,id:"tagsModeBtn","aria-label":"Change tags mode",children:(0,ir.jsx)(Ls,{className:"short-urls-filtering-bar__tags-icon",icon:"all"===m?hi:di})}),(0,ir.jsx)(yv,{target:"tagsModeBtn",placement:"left",children:"all"===m?"With all the tags.":"With any of the tags."})]})]}),(0,ir.jsxs)(hu,{className:"flex-lg-row-reverse",children:[(0,ir.jsx)("div",{className:"col-lg-8 col-xl-6 mt-3",children:(0,ir.jsx)(Ty,{defaultText:"All short URLs",initialDateRange:{startDate:Ry(d),endDate:Ry(h)},onDatesChange:y})}),(0,ir.jsx)("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:(0,ir.jsx)(e,{amount:o})}),(0,ir.jsx)("div",{className:"col-6 d-lg-none mt-3",children:(0,ir.jsx)(jy,{prefixed:!1,items:Ly,order:a,onChange:s})})]})]})}},Iy=n(1919);function Fy(e,t){var n=new Set;return function(r){var i=r.createNewVisits,o=r.loadMercureInfo,a=r.mercureInfo,s=a.interval,u=Ee();return(0,l.useEffect)((function(){var e=t(r,u),l=function(e,t,n,r){var i=e.mercureHubUrl,o=e.token,a=e.loading,s=e.error;if(!a&&!s&&i){var l=function(e){var t=e.data;return n(JSON.parse(t))},u=function(e){return 401===e.status&&r()},c=t.map((function(e){var t=new URL(i);t.searchParams.append("topic",e);var n=new Iy.EventSourcePolyfill(t,{headers:{Authorization:"Bearer ".concat(o)}});return n.onmessage=l,n.onerror=u,n}));return function(){return c.forEach((function(e){return e.close()}))}}}(a,e,(function(e){return s?n.add(e):i([e])}),o);if(!s)return l;var c=setInterval((function(){i(g(n)),n.clear()}),1e3*s*60);return Rm((function(){return clearInterval(c)}),(function(){return null===l||void 0===l?void 0:l()}))}),[a]),(0,ir.jsx)(e,Ze({},r))}}var zy=Vt((function e(){Ht(this,e)}));function By(e){var t=e.currentOrder,n=e.field,r=e.className,i=void 0===r?"ms-1":r;return t.dir&&t.field===n?(0,ir.jsx)(Ls,{icon:"ASC"===t.dir?yr:gr,className:i}):null}zy.visits="https://shlink.io/new-visit",zy.orphanVisits="https://shlink.io/new-orphan-visit",zy.shortUrlVisits=function(e){return"https://shlink.io/new-visit/".concat(e)};var Uy=Om((function(e,t,n){var r,i={};for(r in t)hn(r,t)&&(i[r]=hn(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)hn(r,n)&&!hn(r,i)&&(i[r]=n[r]);return i})),Vy=Uy,Hy=Om((function e(t,n,r){return Vy((function(n,r,i){return Qt(r)&&Qt(i)?e(t,r,i):t(n,r,i)}),n,r)})),Wy=Hy,Zy=_t((function(e,t){return Wy((function(e,t,n){return n}),e,t)})),Yy=_t((function(e,t){var n={};for(var r in t)n[r]=t[r];return delete n[e],n})),qy=Yy,Gy="shlink/realTimeUpdates/SET_SETTINGS",Ky={field:"dateCreated",dir:"DESC"},Qy={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:"light"},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:Ky}},$y=vg(He({},Gy,(function(e,t){return Zy(e,qy("type",t))})),Qy),Xy=function(e){return{type:Gy,realTimeUpdates:{enabled:e}}},Jy=function(e){return{type:Gy,realTimeUpdates:{interval:e}}},eb=function(e){return{type:Gy,shortUrlCreation:e}},tb=function(e){return{type:Gy,shortUrlsList:e}},nb=function(e){return{type:Gy,ui:e}},rb=function(e){return{type:Gy,visits:e}},ib=function(e){return{type:Gy,tags:e}},ob=_t((function(e,t){return t<e?t:e})),ab=ob,sb=Math.ceil,lb=new Intl.NumberFormat("en-US"),ub=function(e){return lb.format(Number(e))},cb="...",fb=function(e,t){var n=Tm(Hg(2,e-2),ab(t-1,e+2)+1);return e-2>2&&n.unshift(cb),e+2<t-1&&n.push(cb),n.unshift(1),n.push(t),n},db=function(e){return e===cb},hb=function(e){return db(e)?e:ub(e)},pb=function(e,t){return db(e)?"".concat(e,"_").concat(t):"".concat(e)},vb=function(e){var t=e.paginator,n=e.serverId,r=e.currentQueryString,i=void 0===r?"":r,o=null!==t&&void 0!==t?t:{},a=o.currentPage,s=void 0===a?0:a,l=o.pagesCount,u=void 0===l?0:l,c=function(e){return"/server/".concat(n,"/list-short-urls/").concat(e).concat(i)};if(u<=1)return null;return(0,ir.jsxs)(yp,{className:"sticky-card-paginator",listClassName:"flex-wrap justify-content-center mb-0",children:[(0,ir.jsx)(wp,{disabled:1===s,children:(0,ir.jsx)(Ep,{previous:!0,tag:ze,to:c(s-1)})}),fb(s,u).map((function(e,t){return(0,ir.jsx)(wp,{disabled:db(e),active:s===e,children:(0,ir.jsx)(Ep,{tag:ze,to:c(e),children:hb(e)})},pb(e,t))})),(0,ir.jsx)(wp,{disabled:s>=u,children:(0,ir.jsx)(Ep,{next:!0,tag:ze,to:c(s+1)})})]})},mb=function(e,t){return Fy((function(n){var r,i,o,a,s=n.listShortUrls,u=n.shortUrlsList,c=n.selectedServer,f=n.settings,d=It(c),h=Ee().page,p=Ce(),m=v(Dy(),2),y=m[0],b=y.tags,_=y.search,x=y.startDate,w=y.endDate,k=y.orderBy,C=y.tagsMode,S=m[1],E=v((0,l.useState)(null!==(r=null!==k&&void 0!==k?k:null===(i=f.shortUrlsList)||void 0===i?void 0:i.defaultOrdering)&&void 0!==r?r:Ky),2),T=E[0],M=E[1],O=(null!==(o=null===u||void 0===u?void 0:u.shortUrls)&&void 0!==o?o:{}).pagination,j=function(e,t){S({orderBy:{field:e,dir:t}}),M({field:e,dir:t})},P=Rm((function(e){return g(new Set([].concat(g(b),[e])))}),(function(e){return S({tags:e})}));return(0,l.useEffect)((function(){s({page:h,searchTerm:_,tags:b,startDate:x,endDate:w,orderBy:T,tagsMode:C})}),[h,_,b,x,w,T,C]),(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(t,{selectedServer:c,shortUrlsAmount:null===(a=u.shortUrls)||void 0===a?void 0:a.pagination.totalItems,order:T,handleOrderBy:j,className:"mb-3"}),(0,ir.jsxs)(mf,{body:!0,className:"pb-1",children:[(0,ir.jsx)(e,{selectedServer:c,shortUrlsList:u,orderByColumn:function(e){return function(){return j(e,Zn(e,T.field,T.dir))}},renderOrderIcon:function(e){return(0,ir.jsx)(By,{currentOrder:T,field:e})},onTagClick:P}),(0,ir.jsx)(vb,{paginator:O,serverId:d,currentQueryString:p.search})]})]})}),(function(){return[zy.visits]}))},gb=function(e){var t=e.text,n=e.children,r=e.clearable,i=e.className,o=void 0===i?"":i,a=e.colorGenerator,s=e.onClick,l=e.onClose;return(0,ir.jsxs)("span",{className:Ws()("badge tag",o,{"tag--light-bg":a.isColorLightForKey(t)}),style:{backgroundColor:a.getColorForKey(t),cursor:r||!s?"auto":"pointer"},onClick:s,children:[null!==n&&void 0!==n?n:t,r&&(0,ir.jsx)("span",{"aria-label":"Remove ".concat(t),className:"close tag__close-selected-tag",onClick:l,children:"\xd7"})]})},yb=n(5176),bb=n.n(yb),_b=function(e){var t=e.text,n=e.onCopy;return(0,ir.jsx)(bb(),{text:t,onCopy:n,children:(0,ir.jsx)(Ls,{icon:ky,className:"ms-2 copy-to-clipboard-icon"})})},xb=n(3558);function wb(e){return(0,Qg.Z)(1,arguments),Math.floor((0,xb.default)(e)/1e3)}function kb(e,t){(0,Qg.Z)(2,arguments);var n=(0,Gg.default)(e),r=(0,Gg.default)(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var Cb=n(2228),Sb=n(4829);function Eb(e){(0,Qg.Z)(1,arguments);var t=(0,Gg.default)(e);return(0,Ng.default)(t).getTime()===(0,Sb.default)(t).getTime()}function Tb(e,t){(0,Qg.Z)(2,arguments);var n,r=(0,Gg.default)(e),i=(0,Gg.default)(t),o=kb(r,i),a=Math.abs((0,Cb.default)(r,i));if(a<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-o*a);var s=kb(r,i)===-o;Eb((0,Gg.default)(e))&&1===a&&1===kb(e,i)&&(s=!1),n=o*(a-Number(s))}return 0===n?0:n}function Mb(e,t){return(0,Qg.Z)(2,arguments),(0,Gg.default)(e).getTime()-(0,Gg.default)(t).getTime()}var Ob={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function jb(e){return e?Ob[e]:Ob.trunc}function Pb(e,t,n){(0,Qg.Z)(2,arguments);var r=Mb(e,t)/1e3;return jb(null===n||void 0===n?void 0:n.roundingMethod)(r)}var Nb=n(5235),Db=n(4557);function Lb(e){return(0,Db.Z)({},e)}var Rb=n(3878),Ab=1440,Ib=43200;function Fb(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,Qg.Z)(2,arguments);var r=n.locale||Nb.Z;if(!r.formatDistance)throw new RangeError("locale must contain formatDistance property");var i=kb(e,t);if(isNaN(i))throw new RangeError("Invalid time value");var o,a,s=Lb(n);s.addSuffix=Boolean(n.addSuffix),s.comparison=i,i>0?(o=(0,Gg.default)(t),a=(0,Gg.default)(e)):(o=(0,Gg.default)(e),a=(0,Gg.default)(t));var l,u=Pb(a,o),c=((0,Rb.Z)(a)-(0,Rb.Z)(o))/1e3,f=Math.round((u-c)/60);if(f<2)return n.includeSeconds?u<5?r.formatDistance("lessThanXSeconds",5,s):u<10?r.formatDistance("lessThanXSeconds",10,s):u<20?r.formatDistance("lessThanXSeconds",20,s):u<40?r.formatDistance("halfAMinute",null,s):u<60?r.formatDistance("lessThanXMinutes",1,s):r.formatDistance("xMinutes",1,s):0===f?r.formatDistance("lessThanXMinutes",1,s):r.formatDistance("xMinutes",f,s);if(f<45)return r.formatDistance("xMinutes",f,s);if(f<90)return r.formatDistance("aboutXHours",1,s);if(f<Ab){var d=Math.round(f/60);return r.formatDistance("aboutXHours",d,s)}if(f<2520)return r.formatDistance("xDays",1,s);if(f<Ib){var h=Math.round(f/Ab);return r.formatDistance("xDays",h,s)}if(f<86400)return l=Math.round(f/Ib),r.formatDistance("aboutXMonths",l,s);if((l=Tb(a,o))<12){var p=Math.round(f/Ib);return r.formatDistance("xMonths",p,s)}var v=l%12,m=Math.floor(l/12);return v<3?r.formatDistance("aboutXYears",m,s):v<9?r.formatDistance("overXYears",m,s):r.formatDistance("almostXYears",m+1,s)}var zb=function(e){var t=e.date,n=e.format,r=void 0===n?"yyyy-MM-dd HH:mm":n,i=e.relative,o=void 0!==i&&i,a=ey(t)?t:(0,Tg.default)(t);return(0,ir.jsx)("time",{dateTime:"".concat(wb(a),"000"),children:o?"".concat(Fb(new Date,a)," ago"):(0,qg.default)(a,r)})};function Bb(e){return function t(n){for(var r,i,o,a=[],s=0,l=n.length;s<l;){if(Xt(n[s]))for(o=0,i=(r=e?t(n[s]):n[s]).length;o<i;)a[a.length]=r[o],o+=1;else a[a.length]=n[s];s+=1}return a}}var Ub,Vb,Hb,Wb,Zb,Yb,qb=bt(Bb(!0)),Gb=_t((function(e,t){if(e<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var n=[],r=0;r<t.length;)n.push(Dm(r,r+=e,t));return n})),Kb=Gb,Qb=function(e){var t;return null===(t=e.response)||void 0===t?void 0:t.data},$b=function(e){return"INVALID_SHORTCODE_DELETION"===(null===e||void 0===e?void 0:e.type)||"INVALID_SHORT_URL_DELETION"===(null===e||void 0===e?void 0:e.type)},Xb=5e3,Jb=function(e){return e.currentPage>=e.pagesCount},e_=function(e,t){return 100*t/e},t_=function(){var e=Bt(Yt().mark((function e(t,n,r,i,o,a){var s,l,u,c,f,d,h;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o({type:i.start}),s=function(){var e=Bt(Yt().mark((function e(n){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(n.map(function(){var e=Bt(Yt().mark((function e(n){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t(n,Xb).then(Pt("data")));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())).then(qb));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=Bt(Yt().mark((function e(t){var n,r,u=arguments;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=u.length>1&&void 0!==u[1]?u[1]:0,!a()){e.next=3;break}return e.abrupt("return",[]);case 3:return e.next=5,s(t[n]);case 5:if(r=e.sent,o({type:i.progress,progress:e_(t.length,n+2)}),!(n<t.length-1)){e.next=13;break}return e.t0=r,e.next=11,l(t,n+1);case 11:return e.t1=e.sent,e.abrupt("return",e.t0.concat.call(e.t0,e.t1));case 13:return e.abrupt("return",r);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),u=function(){var e=Bt(Yt().mark((function e(){var n,r,a,s,u,c,f=arguments;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=f.length>0&&void 0!==f[0]?f[0]:1,e.next=3,t(n,Xb);case 3:if(r=e.sent,a=r.pagination,s=r.data,a&&!Jb(a)){e.next=8;break}return e.abrupt("return",s);case 8:return u=Tm(2,a.pagesCount+1),c=Kb(4,u),a.pagesCount-1>4&&o({type:i.large}),e.t0=s,e.next=14,l(c);case 14:return e.t1=e.sent,e.abrupt("return",e.t0.concat.call(e.t0,e.t1));case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),e.prev=4,e.next=7,Promise.all([u(),n()]);case 7:c=e.sent,f=v(c,2),d=f[0],h=f[1],o(!d.length&&h?{type:i.fallbackToInterval,fallbackInterval:vy(h.date)}:Ze(Ze({},r),{},{visits:d,type:i.finish})),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),o({type:i.error,errorData:Qb(e.t0)});case 17:case"end":return e.stop()}}),e,null,[[4,14]])})));return function(t,n,r,i,o,a){return e.apply(this,arguments)}}(),n_=function(e,t){return Bt(e?Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t({page:1,itemsPerPage:1}).then((function(e){return e.data[0]})));case 1:case"end":return e.stop()}}),e)})):Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve(void 0));case 1:case"end":return e.stop()}}),e)})))},r_="shlink/visitCreation/CREATE_VISITS",i_=function(e){return{type:r_,createdVisits:e}},o_="shlink/domainVisits/GET_DOMAIN_VISITS_START",a_="shlink/domainVisits/GET_DOMAIN_VISITS_ERROR",s_="shlink/domainVisits/GET_DOMAIN_VISITS",l_="shlink/domainVisits/GET_DOMAIN_VISITS_LARGE",u_="shlink/domainVisits/GET_DOMAIN_VISITS_CANCEL",c_="shlink/domainVisits/GET_DOMAIN_VISITS_PROGRESS_CHANGED",f_="shlink/domainVisits/GET_DOMAIN_VISITS_FALLBACK_TO_INTERVAL",d_="DEFAULT",h_={visits:[],domain:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},p_=vg((He(Ub={},o_,(function(){return Ze(Ze({},h_),{},{loading:!0})})),He(Ub,a_,(function(e,t){var n=t.errorData;return Ze(Ze({},h_),{},{error:!0,errorData:n})})),He(Ub,s_,(function(e,t){var n=t.visits,r=t.domain,i=t.query;return Ze(Ze({},e),{},{visits:n,domain:r,query:i,loading:!1,error:!1})})),He(Ub,l_,(function(e){return Ze(Ze({},e),{},{loadingLarge:!0})})),He(Ub,u_,(function(e){return Ze(Ze({},e),{},{cancelLoad:!0})})),He(Ub,c_,(function(e,t){var n=t.progress;return Ze(Ze({},e),{},{progress:n})})),He(Ub,f_,(function(e,t){var n=t.fallbackInterval;return Ze(Ze({},e),{},{fallbackInterval:n})})),He(Ub,r_,(function(e,t){var n=t.createdVisits,r=e.domain,i=e.visits,o=e.query,a=void 0===o?{}:o,s=a.startDate,l=a.endDate,u=n.filter((function(e){var t=e.shortUrl,n=e.visit;return t&&y_(t,r)&&oy(n.date,s,l)})).map((function(e){return e.visit}));return Ze(Ze({},e),{},{visits:[].concat(g(u),g(i))})})),Ub),h_),v_=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){var i=Bt(Yt().mark((function i(o,a){var s,l,u,c,f,d,h;return Yt().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return s=e(a),l=s.getDomainVisits,u=function(){var e=Bt(Yt().mark((function e(r,i){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(t,Ze(Ze({},n),{},{page:r,itemsPerPage:i})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),c=n_(r,function(){var e=Bt(Yt().mark((function e(n){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(t,n));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),f=function(){return a().domainVisits.cancelLoad},d={domain:t,query:n},h={start:o_,large:l_,finish:s_,error:a_,progress:c_,fallbackToInterval:f_},i.abrupt("return",t_(u,c,d,h,o,f));case 7:case"end":return i.stop()}}),i)})));return function(e,t){return i.apply(this,arguments)}}()}},m_=mg(u_),g_=function(e,t,n){return Mn(n)?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n},y_=function(e,t){return!e.domain&&t===d_||e.domain===t},b_=function(e){return e.replaceAll("__","/")},__=["selectedServer","shortUrl","suffix","children"],x_=function(e,t,n){var r=e.id,i=t.shortCode,o=t.domain,a=o?"?domain=".concat(o):"";return"/server/".concat(r,"/short-code/").concat(function(e){return e.replaceAll("/","__")}(i),"/").concat(n).concat(a)},w_=function(e){var t=e.selectedServer,n=e.shortUrl,r=e.suffix,i=e.children,o=Wt(e,__);return t&&Rt(t)&&n?(0,ir.jsx)(ze,Ze(Ze({to:x_(t,n,r)},o),{},{children:i})):(0,ir.jsx)("span",Ze(Ze({},o),{},{children:i}))},k_=function(e){return function(t){e.current=null!==t&&void 0!==t?t:void 0}},C_=function(e){var t,n=e.visitsCount,r=e.shortUrl,i=e.selectedServer,o=e.active,a=void 0!==o&&o,s=null===r||void 0===r||null===(t=r.meta)||void 0===t?void 0:t.maxVisits,u=(0,ir.jsx)(w_,{selectedServer:i,shortUrl:r,suffix:"visits",children:(0,ir.jsx)("strong",{className:Ws()("short-url-visits-count__amount",{"short-url-visits-count__amount--big":a}),children:ub(n)})});if(!s)return u;var c=ub(s),f=(0,l.useRef)();return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsxs)("span",{className:"indivisible",children:[u,(0,ir.jsxs)("small",{className:"short-urls-visits-count__max-visits-control",ref:k_(f),children:[" ","/ ",c," ",(0,ir.jsx)("sup",{children:(0,ir.jsx)(Ls,{icon:Er})})]})]}),(0,ir.jsxs)(yv,{target:function(){return f.current},placement:"bottom",children:["This short URL will not accept more than ",(0,ir.jsx)("b",{children:c})," visits."]})]})},S_=function(e,t,n){return function(r){var i,o,a=r.shortUrl,s=r.selectedServer,u=r.onTagClick,c=v(n(),2),f=c[0],d=c[1],h=v(n(!1,500),2),p=h[0],m=h[1],g=(0,l.useRef)(!0);return(0,l.useEffect)((function(){g.current?g.current=!1:m()}),[a.visitsCount]),(0,ir.jsxs)("tr",{className:"responsive-table__row",children:[(0,ir.jsx)("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:(0,ir.jsx)(zb,{date:a.dateCreated})}),(0,ir.jsx)("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:(0,ir.jsxs)("span",{className:"indivisible short-urls-row__cell--relative",children:[(0,ir.jsx)(nm,{href:a.shortUrl}),(0,ir.jsx)(_b,{text:a.shortUrl,onCopy:d}),(0,ir.jsx)("span",{className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!f,children:"Copied short URL!"})]})}),(0,ir.jsx)("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":"".concat(a.title?"Title":"Long URL"),children:(0,ir.jsx)(nm,{href:a.longUrl,children:null!==(i=a.title)&&void 0!==i?i:a.longUrl})}),a.title&&(0,ir.jsx)("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:(0,ir.jsx)(nm,{href:a.longUrl})}),(0,ir.jsx)("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:(o=a.tags,Bn(o)?(0,ir.jsx)("i",{className:"indivisible",children:(0,ir.jsx)("small",{children:"No tags"})}):o.map((function(e){return(0,ir.jsx)(gb,{colorGenerator:t,text:e,onClick:function(){return null===u||void 0===u?void 0:u(e)}},e)})))}),(0,ir.jsx)("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:(0,ir.jsx)(C_,{visitsCount:a.visitsCount,shortUrl:a,selectedServer:s,active:p})}),(0,ir.jsx)("td",{className:"responsive-table__cell short-urls-row__cell",children:(0,ir.jsx)(e,{selectedServer:s,shortUrl:a})})]})}},E_=function(e){var t=e.isOpen,n=e.toggle,r=e.children,i=e.right,o=void 0===i||i;return(0,ir.jsxs)(yc,{toggle:n,isOpen:t,children:[(0,ir.jsxs)(Ic,{size:"sm",caret:!0,outline:!0,className:"dropdown-btn-menu__dropdown-toggle",children:["\xa0",(0,ir.jsx)(Ls,{icon:Pr}),"\xa0"]}),(0,ir.jsx)(Dc,{end:o,children:r})]})},T_=function(e,t){return function(n){var r=n.shortUrl,i=n.selectedServer,o=v(Zv(),2),a=o[0],s=o[1],l=v(Zv(),2),u=l[0],c=l[1],f=v(Zv(),2),d=f[0],h=f[1];return(0,ir.jsxs)(E_,{toggle:s,isOpen:a,children:[(0,ir.jsxs)(Mc,{tag:w_,selectedServer:i,shortUrl:r,suffix:"visits",children:[(0,ir.jsx)(Ls,{icon:br,fixedWidth:!0})," Visit stats"]}),(0,ir.jsxs)(Mc,{tag:w_,selectedServer:i,shortUrl:r,suffix:"edit",children:[(0,ir.jsx)(Ls,{icon:Jr,fixedWidth:!0})," Edit short URL"]}),(0,ir.jsxs)(Mc,{onClick:c,children:[(0,ir.jsx)(Ls,{icon:ii,fixedWidth:!0})," QR code"]}),(0,ir.jsx)(t,{shortUrl:r,isOpen:u,toggle:c}),(0,ir.jsx)(Mc,{divider:!0}),(0,ir.jsxs)(Mc,{className:"dropdown-item--danger",onClick:h,children:[(0,ir.jsx)(Ls,{icon:Mr,fixedWidth:!0})," Delete short URL"]}),(0,ir.jsx)(e,{shortUrl:r,isOpen:d,toggle:h})]})}},M_=function(e,t){return function(n){var r=n.createShortUrl,i=n.shortUrlCreationResult,o=n.resetCreateShortUrl,a=n.selectedServer,s=n.basicMode,u=void 0!==s&&s,c=n.settings.shortUrlCreation,f=(0,l.useMemo)((function(){return function(e){var t,n;return{longUrl:"",tags:[],customSlug:"",title:void 0,shortCodeLength:void 0,domain:"",validSince:void 0,validUntil:void 0,maxVisits:void 0,findIfExists:!1,validateUrl:null!==(t=null===e||void 0===e?void 0:e.validateUrls)&&void 0!==t&&t,forwardQuery:null===(n=null===e||void 0===e?void 0:e.forwardQuery)||void 0===n||n}}(c)}),[c]);return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(e,{initialState:f,saving:i.saving,selectedServer:a,mode:u?"create-basic":"create",onSave:function(){var e=Bt(Yt().mark((function e(t){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o(),e.abrupt("return",r(t));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),(0,ir.jsx)(t,Ze(Ze({},i),{},{resetCreateShortUrl:o,canBeClosed:u}))]})}},O_=function(e){var t=e.children,n=e.type,r=e.className,i=e.small,o=void 0!==i&&i;return(0,ir.jsx)(hu,{className:r,children:(0,ir.jsx)("div",{className:Ws()({"col-md-10 offset-md-1":!o,"col-12":o}),children:(0,ir.jsx)(tg,{role:"document",className:Ws()("text-center",{"bg-main":"success"===n,"bg-danger":"error"===n,"bg-warning":"warning"===n,"text-white":"warning"!==n}),bodyClassName:Ws()({"p-2":o}),children:t})})})},j_=function(e){var t,n,r=e.errorData,i=e.fallbackMessage;return(0,ir.jsxs)(ir.Fragment,{children:[null!==(t=null===r||void 0===r?void 0:r.detail)&&void 0!==t?t:i,(n=r,"INVALID_ARGUMENT"===(null===n||void 0===n?void 0:n.type)&&(0,ir.jsxs)("p",{className:"mb-0",children:["Invalid elements: [",r.invalidElements.join(", "),"]"]}))]})},P_=function(e){var t=e.shortUrl,n=e.toggle,r=e.isOpen,i=e.shortUrlDeletion,o=e.resetDeleteShortUrl,a=e.deleteShortUrl,s=v((0,l.useState)(""),2),u=s[0],c=s[1];(0,l.useEffect)((function(){return o}),[]);var f=i.error,d=i.errorData,h=Rm(o,n),p=Fm((function(){var e=t.shortCode,r=t.domain;a(e,r).then(n).catch(Sm)}));return(0,ir.jsx)(eh,{isOpen:r,toggle:h,centered:!0,children:(0,ir.jsxs)("form",{onSubmit:p,children:[(0,ir.jsx)(ih,{toggle:h,children:(0,ir.jsx)("span",{className:"text-danger",children:"Delete short URL"})}),(0,ir.jsxs)(lh,{children:[(0,ir.jsxs)("p",{children:[(0,ir.jsx)("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),(0,ir.jsx)("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),(0,ir.jsxs)("p",{children:["Write ",(0,ir.jsx)("b",{children:t.shortCode})," to confirm deletion."]}),(0,ir.jsx)("input",{type:"text",className:"form-control",placeholder:"Insert the short code (".concat(t.shortCode,")"),value:u,onChange:function(e){return c(e.target.value)}}),f&&(0,ir.jsx)(O_,{type:$b(d)?"warning":"error",small:!0,className:"mt-2",children:(0,ir.jsx)(j_,{errorData:d,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),(0,ir.jsxs)(dh,{children:[(0,ir.jsx)("button",{type:"button",className:"btn btn-link",onClick:h,children:"Cancel"}),(0,ir.jsx)("button",{type:"submit",className:"btn btn-danger",disabled:u!==t.shortCode||i.loading,children:i.loading?"Deleting...":"Delete"})]})]})})},N_=function(e){return function(t){var n=t.error,r=t.errorData,i=t.result,o=t.resetCreateShortUrl,a=t.canBeClosed,s=void 0!==a&&a,u=v(e(),2),c=u[0],f=u[1];if((0,l.useEffect)((function(){o()}),[]),n)return(0,ir.jsxs)(O_,{type:"error",className:"mt-3",children:[s&&(0,ir.jsx)(Ls,{icon:yi,className:"float-end pointer",onClick:o}),(0,ir.jsx)(j_,{errorData:r,fallbackMessage:"An error occurred while creating the URL :("})]});if(Mn(i))return null;var d=i.shortUrl;return(0,ir.jsxs)(O_,{type:"success",className:"mt-3",children:[s&&(0,ir.jsx)(Ls,{icon:yi,className:"float-end pointer",onClick:o}),(0,ir.jsxs)("span",{children:[(0,ir.jsx)("b",{children:"Great!"})," The short URL is ",(0,ir.jsx)("b",{children:d})]}),(0,ir.jsx)(bb(),{text:d,onCopy:f,children:(0,ir.jsxs)("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",children:[(0,ir.jsx)(Ls,{icon:ky})," Copy"]})}),(0,ir.jsx)(ph,{placement:"left",isOpen:c,target:"copyBtn",children:"Copied!"})]})}},D_=Om((function(e,t,n){var r={};for(var i in n)r[i]=n[i];return r[e]=t,r})),L_=D_,R_=Om((function e(t,n,r){if(0===t.length)return n;var i=t[0];if(t.length>1){var o=!Mn(r)&&hn(i,r)?r[i]:kt(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,o)}if(kt(i)&&qt(r)){var a=[].concat(r);return a[i]=n,a}return L_(i,n,r)})),A_=R_,I_=Et(-1),F_="shlink/deleteShortUrl/DELETE_SHORT_URL_START",z_="shlink/deleteShortUrl/DELETE_SHORT_URL_ERROR",B_="shlink/deleteShortUrl/SHORT_URL_DELETED",U_="shlink/deleteShortUrl/RESET_DELETE_SHORT_URL",V_={shortCode:"",loading:!1,error:!1},H_=vg((He(Vb={},F_,(function(e){return Ze(Ze({},e),{},{loading:!0,error:!1})})),He(Vb,z_,(function(e,t){var n=t.errorData;return Ze(Ze({},e),{},{errorData:n,loading:!1,error:!0})})),He(Vb,B_,(function(e,t){var n=t.shortCode;return Ze(Ze({},e),{},{shortCode:n,loading:!1,error:!1})})),He(Vb,U_,(function(){return V_})),Vb),V_),W_=function(e){return function(t,n){return function(){var r=Bt(Yt().mark((function r(i,o){var a,s;return Yt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i({type:F_}),a=e(o),s=a.deleteShortUrl,r.prev=2,r.next=5,s(t,n);case 5:i({type:B_,shortCode:t,domain:n}),r.next=12;break;case 8:throw r.prev=8,r.t0=r.catch(2),i({type:z_,errorData:Qb(r.t0)}),r.t0;case 12:case"end":return r.stop()}}),r,null,[[2,8]])})));return function(e,t){return r.apply(this,arguments)}}()}},Z_=mg(U_),Y_="shlink/createShortUrl/CREATE_SHORT_URL_START",q_="shlink/createShortUrl/CREATE_SHORT_URL_ERROR",G_="shlink/createShortUrl/CREATE_SHORT_URL",K_="shlink/createShortUrl/RESET_CREATE_SHORT_URL",Q_={result:null,saving:!1,error:!1},$_=vg((He(Hb={},Y_,(function(e){return Ze(Ze({},e),{},{saving:!0,error:!1})})),He(Hb,q_,(function(e,t){var n=t.errorData;return Ze(Ze({},e),{},{saving:!1,error:!0,errorData:n})})),He(Hb,G_,(function(e,t){return{result:t.result,saving:!1,error:!1}})),He(Hb,K_,(function(){return Q_})),Hb),Q_),X_=function(e){return function(t){return function(){var n=Bt(Yt().mark((function n(r,i){var o,a,s;return Yt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r({type:Y_}),o=e(i),a=o.createShortUrl,n.prev=2,n.next=5,a(t);case 5:s=n.sent,r({type:G_,result:s}),n.next=13;break;case 9:throw n.prev=9,n.t0=n.catch(2),r({type:q_,errorData:Qb(n.t0)}),n.t0;case 13:case"end":return n.stop()}}),n,null,[[2,9]])})));return function(e,t){return n.apply(this,arguments)}}()}},J_=mg(K_),ex="shlink/shortUrlEdition/EDIT_SHORT_URL_START",tx="shlink/shortUrlEdition/EDIT_SHORT_URL_ERROR",nx="shlink/shortUrlEdition/SHORT_URL_EDITED",rx=vg((He(Wb={},ex,(function(e){return Ze(Ze({},e),{},{saving:!0,error:!1})})),He(Wb,tx,(function(e,t){var n=t.errorData;return Ze(Ze({},e),{},{saving:!1,error:!0,errorData:n})})),He(Wb,nx,(function(e,t){return{shortUrl:t.shortUrl,saving:!1,error:!1}})),Wb),{saving:!1,error:!1}),ix=function(e){return function(t,n,r){return function(){var i=Bt(Yt().mark((function i(o,a){var s,l,u;return Yt().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o({type:ex}),s=e(a),l=s.updateShortUrl,i.prev=2,i.next=5,l(t,n,r);case 5:u=i.sent,o({shortUrl:u,type:nx}),i.next=13;break;case 9:throw i.prev=9,i.t0=i.catch(2),o({type:tx,errorData:Qb(i.t0)}),i.t0;case 13:case"end":return i.stop()}}),i,null,[[2,9]])})));return function(e,t){return i.apply(this,arguments)}}()}},ox="shlink/shortUrlsList/LIST_SHORT_URLS_START",ax="shlink/shortUrlsList/LIST_SHORT_URLS_ERROR",sx="shlink/shortUrlsList/LIST_SHORT_URLS",lx=vg((He(Zb={},ox,(function(e){return Ze(Ze({},e),{},{loading:!0,error:!1})})),He(Zb,ax,(function(){return{loading:!1,error:!0}})),He(Zb,sx,(function(e,t){return{loading:!1,error:!1,shortUrls:t.shortUrls}})),He(Zb,B_,Rm((function(e,t){var n=t.shortCode,r=t.domain;return e.shortUrls?A_(["shortUrls","data"],En((function(e){return g_(e,n,r)}),e.shortUrls.data),e):e}),(function(e){return e.shortUrls?A_(["shortUrls","pagination","totalItems"],e.shortUrls.pagination.totalItems-1,e):e}))),He(Zb,r_,(function(e,t){var n,r,i=t.createdVisits;return A_(["shortUrls","data"],null===(n=e.shortUrls)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.map((function(e){var t=I_(i.filter((function(t){var n=t.shortUrl;return n&&g_(e,n.shortCode,n.domain)})));return null!==t&&void 0!==t&&t.shortUrl?L_("visitsCount",t.shortUrl.visitsCount,e):e})),e)})),He(Zb,G_,Rm((function(e,t){var n=t.result;return e.shortUrls?A_(["shortUrls","data"],[n].concat(g(e.shortUrls.data.slice(0,4))),e):e}),(function(e){return e.shortUrls?A_(["shortUrls","pagination","totalItems"],e.shortUrls.pagination.totalItems+1,e):e}))),He(Zb,nx,(function(e,t){var n=t.shortUrl;return e.shortUrls?A_(["shortUrls","data"],e.shortUrls.data.map((function(e){var t=n.shortCode,r=n.domain;return g_(e,t,r)?n:e})),e):e})),Zb),{loading:!0,error:!1}),ux=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){var n=Bt(Yt().mark((function n(r,i){var o,a,s;return Yt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r({type:ox}),o=e(i),a=o.listShortUrls,n.prev=2,n.next=5,a(t);case 5:s=n.sent,r({type:sx,shortUrls:s}),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),r({type:ax});case 12:case"end":return n.stop()}}),n,null,[[2,9]])})));return function(e,t){return n.apply(this,arguments)}}()}},cx=function(e){return function(t){var n=t.orderByColumn,r=t.renderOrderIcon,i=t.shortUrlsList,o=t.onTagClick,a=t.selectedServer,s=t.className,l=i.error,u=i.loading,c=i.shortUrls,f=Ws()({"short-urls-table__header-cell--with-action":!!n}),d=Ws()("short-urls-table__header-cell",f),h=Ws()("table table-hover responsive-table",s);return(0,ir.jsxs)("table",{className:h,children:[(0,ir.jsx)("thead",{className:"responsive-table__header short-urls-table__header",children:(0,ir.jsxs)("tr",{children:[(0,ir.jsxs)("th",{className:d,onClick:null===n||void 0===n?void 0:n("dateCreated"),children:["Created at ",null===r||void 0===r?void 0:r("dateCreated")]}),(0,ir.jsxs)("th",{className:d,onClick:null===n||void 0===n?void 0:n("shortCode"),children:["Short URL ",null===r||void 0===r?void 0:r("shortCode")]}),(0,ir.jsxs)("th",{className:"short-urls-table__header-cell",children:[(0,ir.jsxs)("span",{className:f,onClick:null===n||void 0===n?void 0:n("title"),children:["Title ",null===r||void 0===r?void 0:r("title")]}),"\xa0\xa0/\xa0\xa0",(0,ir.jsxs)("span",{className:f,onClick:null===n||void 0===n?void 0:n("longUrl"),children:[(0,ir.jsx)("span",{className:"indivisible",children:"Long URL"})," ",null===r||void 0===r?void 0:r("longUrl")]})]}),(0,ir.jsx)("th",{className:"short-urls-table__header-cell",children:"Tags"}),(0,ir.jsx)("th",{className:d,onClick:null===n||void 0===n?void 0:n("visits"),children:(0,ir.jsxs)("span",{className:"indivisible",children:["Visits ",null===r||void 0===r?void 0:r("visits")]})}),(0,ir.jsx)("th",{className:"short-urls-table__header-cell",children:"\xa0"})]})}),(0,ir.jsx)("tbody",{children:l?(0,ir.jsx)("tr",{children:(0,ir.jsx)("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):u?(0,ir.jsx)("tr",{children:(0,ir.jsx)("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!u&&Bn(null===c||void 0===c?void 0:c.data)?(0,ir.jsx)("tr",{children:(0,ir.jsx)("td",{colSpan:6,className:"text-center",children:"No results found"})}):null===c||void 0===c?void 0:c.data.map((function(t){return(0,ir.jsx)(e,{shortUrl:t,selectedServer:a,onTagClick:o},t.shortUrl)}))})]})}},fx=function(e){var t=e.format,n=e.setFormat;return(0,ir.jsxs)(Og,{text:"Format (".concat(t,")"),children:[(0,ir.jsx)(Mc,{active:"png"===t,onClick:function(){return n("png")},children:"PNG"}),(0,ir.jsx)(Mc,{active:"svg"===t,onClick:function(){return n("svg")},children:"SVG"})]})},dx=function(e){var t=e.errorCorrection,n=e.setErrorCorrection;return(0,ir.jsxs)(Og,{text:"Error correction (".concat(t,")"),children:[(0,ir.jsxs)(Mc,{active:"L"===t,onClick:function(){return n("L")},children:[(0,ir.jsx)("b",{children:"L"}),"ow"]}),(0,ir.jsxs)(Mc,{active:"M"===t,onClick:function(){return n("M")},children:[(0,ir.jsx)("b",{children:"M"}),"edium"]}),(0,ir.jsxs)(Mc,{active:"Q"===t,onClick:function(){return n("Q")},children:[(0,ir.jsx)("b",{children:"Q"}),"uartile"]}),(0,ir.jsxs)(Mc,{active:"H"===t,onClick:function(){return n("H")},children:[(0,ir.jsx)("b",{children:"H"}),"igh"]})]})},hx=function(e){return function(t){var n=t.shortUrl,r=n.shortUrl,i=n.shortCode,o=t.toggle,a=t.isOpen,s=t.selectedServer,u=v((0,l.useState)(300),2),c=u[0],f=u[1],d=v((0,l.useState)(0),2),h=d[0],p=d[1],m=v((0,l.useState)("png"),2),g=m[0],y=m[1],b=v((0,l.useState)("L"),2),_=b[0],x=b[1],w=(0,l.useMemo)((function(){return{errorCorrectionIsSupported:Ym(s)}}),[s]),k=Km(s),C=!w.errorCorrectionIsSupported,S=(0,l.useMemo)((function(){return function(e,t,n){var r=t.size,i=t.format,o=t.margin,a=t.errorCorrection,s=n.errorCorrectionIsSupported,l="".concat(e,"/qr-code"),u=Wn({size:r,format:i,margin:o>0?o:void 0,errorCorrection:s?a:void 0});return"".concat(l).concat(Bn(u)?"":"?".concat(u))}(r,{size:c,format:g,margin:h,errorCorrection:_},w)}),[r,c,g,h,_,w]),E=(0,l.useMemo)((function(){return c+h}),[c,h]),T=(0,l.useMemo)((function(){if(!(E<500))return E<800?"lg":"xl"}),[E]);return(0,ir.jsxs)(eh,{isOpen:a,toggle:o,centered:!0,size:T,children:[(0,ir.jsxs)(ih,{toggle:o,children:["QR code for ",(0,ir.jsx)(nm,{href:r,children:r})]}),(0,ir.jsxs)(lh,{children:[(0,ir.jsxs)(hu,{children:[(0,ir.jsxs)(Nh,{className:"d-grid ".concat(C?"col-md-4":"col-md-6"),children:[(0,ir.jsxs)("label",{children:["Size: ",c,"px"]}),(0,ir.jsx)("input",{type:"range",className:"form-control-range",value:c,step:10,min:50,max:1e3,onChange:function(e){return f(Number(e.target.value))}})]}),(0,ir.jsxs)(Nh,{className:"d-grid ".concat(C?"col-md-4":"col-md-6"),children:[(0,ir.jsxs)("label",{htmlFor:"marginControl",children:["Margin: ",h,"px"]}),(0,ir.jsx)("input",{id:"marginControl",type:"range",className:"form-control-range",value:h,step:1,min:0,max:100,onChange:function(e){return p(Number(e.target.value))}})]}),(0,ir.jsx)(Nh,{className:C?"col-md-4":"col-md-6",children:(0,ir.jsx)(fx,{format:g,setFormat:y})}),w.errorCorrectionIsSupported&&(0,ir.jsx)(Nh,{className:"col-md-6",children:(0,ir.jsx)(dx,{errorCorrection:_,setErrorCorrection:x})})]}),(0,ir.jsxs)("div",{className:"text-center",children:[(0,ir.jsxs)("div",{className:"mb-3",children:[(0,ir.jsx)(nm,{href:S}),(0,ir.jsx)(_b,{text:S})]}),(0,ir.jsx)("img",{src:S,className:"qr-code-modal__img",alt:"QR code"}),k&&(0,ir.jsx)("div",{className:"mt-3",children:(0,ir.jsxs)(ac,{block:!0,color:"primary",onClick:function(){e.saveImage(S,"".concat(i,"-qr-code.").concat(g)).catch((function(){}))},children:["Download ",(0,ir.jsx)(Ls,{icon:Lr,className:"ms-1"})]})})]})]})]})}},px="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff",vx=bt("function"===typeof String.prototype.trim&&!px.trim()&&"\u200b".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+px+"]["+px+"]*"),n=new RegExp("["+px+"]["+px+"]*$");return e.replace(t,"").replace(n,"")}),mx=Om((function(e,t,n){return n.replace(e,t)})),gx=function(e){var t=e.checked,n=void 0!==t&&t,r=e.onChange,i=void 0===r?Sm:r,o=e.className,a=e.children,s=e.type,l=e.inline,u=void 0!==l&&l,c=qv(),f={"form-switch":"switch"===s,"form-checkbox":"checkbox"===s},d=u?{display:"inline-block"}:{};return(0,ir.jsxs)("span",{className:Ws()("form-check",f,o),style:d,children:[(0,ir.jsx)("input",{type:"checkbox",className:"form-check-input",id:c,checked:n,onChange:function(e){return i(e.target.checked,e)}}),(0,ir.jsx)("label",{className:"form-check-label",htmlFor:c,children:a})]})},yx=function(e){return(0,ir.jsx)(gx,Ze({type:"checkbox"},e))},bx=function(e){var t=e.isOpen,n=e.toggle;return(0,ir.jsxs)(eh,{isOpen:t,toggle:n,centered:!0,size:"lg",children:[(0,ir.jsx)(ih,{toggle:n,children:"Info"}),(0,ir.jsxs)(lh,{children:[(0,ir.jsxs)("p",{children:["When the\xa0",(0,ir.jsx)("b",{children:(0,ir.jsx)("i",{children:'"Use existing URL if found"'})}),"\xa0checkbox is checked, the server will return an existing short URL if it matches provided params."]}),(0,ir.jsx)("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),(0,ir.jsxs)("ul",{children:[(0,ir.jsx)("li",{children:"When only the long URL is provided: The most recent match will be returned, or a new short URL will be created if none is found."}),(0,ir.jsxs)("li",{children:["When long URL and custom slug and/or domain are provided: Same as in previous case, but it will try to match the short URL using both the long URL and the slug, the long URL and the domain, or the three of them.",(0,ir.jsx)("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),(0,ir.jsx)("li",{children:"When other params are provided: Same as in previous cases, but it will try to match existing short URLs with all provided data. If any of them does not match, a new short URL will be created"})]})]})]})},_x=function(){var e=v(Zv(),2),t=e[0],n=e[1];return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)("span",{title:"What does this mean?",children:(0,ir.jsx)(Ls,{icon:Er,style:{cursor:"pointer"},onClick:n})}),(0,ir.jsx)(bx,{isOpen:t,toggle:n})]})},xx=function(e){var t=e.className,n=void 0===t?"":t,r=e.placement,i=e.children,o=(0,l.useRef)();return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)("span",{className:n,ref:k_(o),children:(0,ir.jsx)(Ls,{icon:Er})}),(0,ir.jsx)(yv,{target:function(){return o.current},placement:r,children:i})]})},wx=function(e){var t=e.children,n=e.infoTooltip,r=e.checked,i=e.onChange;return(0,ir.jsxs)("p",{children:[(0,ir.jsx)(yx,{inline:!0,checked:r,className:n?"me-2":"",onChange:i,children:t}),n&&(0,ir.jsx)(xx,{placement:"right",children:n})]})},kx=Rm(vx,mx(/ /g,"-")),Cx=function(e){return"string"===typeof e?(0,Tg.default)(e):e},Sx=function(e,t){return function(n){var r,i=n.mode,o=n.saving,a=n.onSave,s=n.initialState,u=n.selectedServer,c=v((0,l.useState)(s),2),f=c[0],d=c[1],h="edit"===i,p="create-basic"===i,m=Im(s.title),g=function(){var e=Im(f.title);return Zg([[function(){return!e&&!m},function(){}],[function(){return!e&&m},function(){return null}],[Yg,function(){return f.title}]])()},y=Fm(Bt(Yt().mark((function e(){var t,n;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",a(Ze(Ze({},f),{},{validSince:null!==(t=ny(f.validSince))&&void 0!==t?t:null,validUntil:null!==(n=ny(f.validUntil))&&void 0!==n?n:null,maxVisits:Im(f.maxVisits)?Number(f.maxVisits):null,title:g()})).then((function(){return!h&&d(s)})).catch((function(){})));case 1:case"end":return e.stop()}}),e)}))));(0,l.useEffect)((function(){d(s)}),[s]);var b=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return(0,ir.jsx)(Nh,Ze(Ze({},o),{},{children:(0,ir.jsx)(zh,Ze({id:e,type:r,placeholder:t,value:null!==(n=f[e])&&void 0!==n?n:"",onChange:function(t){return d(Ze(Ze({},f),{},He({},e,t.target.value)))}},i))}))},_=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,ir.jsx)(Cy,Ze({selected:f[e]?Cx(f[e]):null,placeholderText:t,isClearable:!0,onChange:function(t){return d(Ze(Ze({},f),{},He({},e,t)))}},n))},x=(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Nh,{children:(0,ir.jsx)(zh,{bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:f.longUrl,onChange:function(e){return d(Ze(Ze({},f),{},{longUrl:e.target.value}))}})}),(0,ir.jsxs)(hu,{children:[p&&b("customSlug","Custom slug","text",{bsSize:"lg"},{className:"col-lg-6"}),(0,ir.jsx)("div",{className:p?"col-lg-6 mb-3":"col-12",children:(0,ir.jsx)(e,{selectedTags:null!==(r=f.tags)&&void 0!==r?r:[],onChange:function(e){return d(Ze(Ze({},f),{},{tags:e.map(kx)}))}})})]})]}),w=Zm(u),k=Gm(u),C=w||k;return(0,ir.jsxs)("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:y,children:[p&&x,!p&&(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(tg,{title:"Basic options",className:"mb-3",children:x}),(0,ir.jsxs)(hu,{children:[(0,ir.jsx)("div",{className:"col-sm-6 mb-3",children:(0,ir.jsxs)(tg,{title:"Customize the short URL",children:[b("title","Title"),!h&&(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsxs)(hu,{children:[(0,ir.jsx)("div",{className:"col-lg-6",children:b("customSlug","Custom slug","text",{disabled:Im(f.shortCodeLength)})}),(0,ir.jsx)("div",{className:"col-lg-6",children:b("shortCodeLength","Short code length","number",{min:4,disabled:Im(f.customSlug)})})]}),(0,ir.jsx)(t,{value:f.domain,onChange:function(e){return d(Ze(Ze({},f),{},{domain:e}))}})]})]})}),(0,ir.jsx)("div",{className:"col-sm-6 mb-3",children:(0,ir.jsxs)(tg,{title:"Limit access to the short URL",children:[b("maxVisits","Maximum number of visits allowed","number",{min:1}),(0,ir.jsx)("div",{className:"mb-3",children:_("validSince","Enabled since...",{maxDate:f.validUntil?Cx(f.validUntil):void 0})}),_("validUntil","Enabled until...",{minDate:f.validSince?Cx(f.validSince):void 0})]})})]}),(0,ir.jsxs)(hu,{children:[(0,ir.jsx)("div",{className:"col-sm-6 mb-3",children:(0,ir.jsxs)(tg,{title:"Extra checks",children:[(0,ir.jsx)(wx,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:f.validateUrl,onChange:function(e){return d(Ze(Ze({},f),{},{validateUrl:e}))},children:"Validate URL"}),!h&&(0,ir.jsxs)("p",{children:[(0,ir.jsx)(yx,{inline:!0,className:"me-2",checked:f.findIfExists,onChange:function(e){return d(Ze(Ze({},f),{},{findIfExists:e}))},children:"Use existing URL if found"}),(0,ir.jsx)(_x,{})]})]})}),C&&(0,ir.jsx)("div",{className:"col-sm-6 mb-3",children:(0,ir.jsxs)(tg,{title:"Configure behavior",children:[w&&(0,ir.jsx)(wx,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:f.crawlable,onChange:function(e){return d(Ze(Ze({},f),{},{crawlable:e}))},children:"Make it crawlable"}),k&&(0,ir.jsx)(wx,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:f.forwardQuery,onChange:function(e){return d(Ze(Ze({},f),{},{forwardQuery:e}))},children:"Forward query params on redirect"})]})})]})]}),(0,ir.jsx)("div",{className:"text-center",children:(0,ir.jsx)(ac,{outline:!0,color:"primary",disabled:o||Bn(f.longUrl),className:"btn-xs-block",children:o?"Saving...":"Save"})})]})}},Ex=function(e){return function(t){var n,r=t.settings.shortUrlCreation,i=t.selectedServer,o=t.shortUrlDetail,a=t.getShortUrlDetail,s=t.shortUrlEdition,u=t.editShortUrl,c=Ce().search,f=Ee(),d=Yv(),h=o.loading,p=o.error,m=o.errorData,g=o.shortUrl,y=s.saving,b=s.error,_=s.errorData,x=Hn(c).domain,w=(0,l.useMemo)((function(){return function(e,t){var n,r,i,o,a,s,l=null!==(n=null===t||void 0===t?void 0:t.validateUrls)&&void 0!==n&&n;return e?{longUrl:e.longUrl,tags:e.tags,title:null!==(r=e.title)&&void 0!==r?r:void 0,domain:null!==(i=e.domain)&&void 0!==i?i:void 0,validSince:null!==(o=e.meta.validSince)&&void 0!==o?o:void 0,validUntil:null!==(a=e.meta.validUntil)&&void 0!==a?a:void 0,maxVisits:null!==(s=e.meta.maxVisits)&&void 0!==s?s:void 0,crawlable:e.crawlable,forwardQuery:e.forwardQuery,validateUrl:l}:{longUrl:"",validateUrl:l}}(g,r)}),[g,r]),k=v(Zv(),4),C=k[0],S=k[2],E=k[3];return(0,l.useEffect)((function(){f.shortCode&&a(b_(f.shortCode),x)}),[]),h?(0,ir.jsx)(lm,{loading:!0}):p?(0,ir.jsx)(O_,{type:"error",children:(0,ir.jsx)(j_,{errorData:m,fallbackMessage:"An error occurred while loading short URL detail :("})}):(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)("header",{className:"mb-3",children:(0,ir.jsx)(mf,{body:!0,children:(0,ir.jsxs)("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[(0,ir.jsx)(ac,{color:"link",size:"lg",className:"p-0 me-3",onClick:d,children:(0,ir.jsx)(Ls,{icon:lr})}),(0,ir.jsx)("span",{className:"text-center",children:(0,ir.jsxs)("small",{children:["Edit ",(0,ir.jsx)(nm,{href:null!==(n=null===g||void 0===g?void 0:g.shortUrl)&&void 0!==n?n:""})]})}),(0,ir.jsx)("span",{})]})})}),(0,ir.jsx)(e,{initialState:w,saving:y,selectedServer:i,mode:"edit",onSave:function(){var e=Bt(Yt().mark((function e(t){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(g){e.next=2;break}return e.abrupt("return");case 2:E(),u(g.shortCode,g.domain,t).then(S).catch(E);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),b&&(0,ir.jsx)(O_,{type:"error",className:"mt-3",children:(0,ir.jsx)(j_,{errorData:_,fallbackMessage:"An error occurred while updating short URL :("})}),C&&(0,ir.jsx)(O_,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})}},Tx="shlink/shortUrlDetail/GET_SHORT_URL_DETAIL_START",Mx="shlink/shortUrlDetail/GET_SHORT_URL_DETAIL_ERROR",Ox="shlink/shortUrlDetail/GET_SHORT_URL_DETAIL",jx={loading:!1,error:!1},Px=vg((He(Yb={},Tx,(function(){return{loading:!0,error:!1}})),He(Yb,Mx,(function(e,t){return{loading:!1,error:!0,errorData:t.errorData}})),He(Yb,Ox,(function(e,t){return Ze({shortUrl:t.shortUrl},jx)})),Yb),jx),Nx=function(e){return function(t,n){return function(){var r=Bt(Yt().mark((function r(i,o){var a,s,l,u,c;return Yt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i({type:Tx}),r.prev=1,l=o(),u=l.shortUrlsList,null===(a=null===u||void 0===u||null===(s=u.shortUrls)||void 0===s?void 0:s.data.find((function(e){return g_(e,t,n)})))||void 0===a){r.next=7;break}r.t0=a,r.next=10;break;case 7:return r.next=9,e(o).getShortUrl(t,n);case 9:r.t0=r.sent;case 10:c=r.t0,i({shortUrl:c,type:Ox}),r.next=17;break;case 14:r.prev=14,r.t1=r.catch(1),i({type:Mx,errorData:Qb(r.t1)});case 17:case"end":return r.stop()}}),r,null,[[1,14]])})));return function(e,t){return r.apply(this,arguments)}}()}},Dx=["amount","loading"],Lx=function(e){var t=e.amount,n=void 0===t?0:t,r=e.loading,i=void 0!==r&&r,o=Wt(e,Dx);return(0,ir.jsxs)(ac,Ze(Ze({},o),{},{outline:!0,color:"primary",disabled:i,children:[(0,ir.jsx)(Ls,{icon:Ir})," ",i?"Exporting...":(0,ir.jsxs)(ir.Fragment,{children:["Export (",ub(n),")"]})]}))},Rx=function(e,t){var n=t.exportShortUrls;return function(t){var r=t.amount,i=void 0===r?0:r,o=t.selectedServer,a=v(Dy(),1)[0],s=a.tags,l=a.search,u=a.startDate,c=a.endDate,f=a.orderBy,d=a.tagsMode,h=v(Zv(),4),p=h[0],m=h[2],g=h[3],y=function(){var t=Bt(Yt().mark((function t(){var r,a,h,p,v;return Yt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Rt(o)){t.next=2;break}return t.abrupt("return");case 2:return r=i/20,a=e(o),h=a.listShortUrls,p=function(){var e=Bt(Yt().mark((function e(){var t,n,i,o=arguments;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:1,e.next=3,h({page:"".concat(t),tags:s,searchTerm:l,startDate:u,endDate:c,orderBy:f,tagsMode:d,itemsPerPage:20});case 3:if(n=e.sent,i=n.data,!(t>=r)){e.next=7;break}return e.abrupt("return",i);case 7:return e.t0=i,e.next=10,p(t+1);case 10:return e.t1=e.sent,e.abrupt("return",e.t0.concat.call(e.t0,e.t1));case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m(),t.next=8,p();case 8:v=t.sent,n(v.map((function(e){var t;return{createdAt:e.dateCreated,shortUrl:e.shortUrl,longUrl:e.longUrl,title:null!==(t=e.title)&&void 0!==t?t:"",tags:e.tags.join(","),visits:e.visitsCount}}))),g();case 11:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return(0,ir.jsx)(Lx,{loading:p,className:"btn-md-block",amount:i,onClick:y})}},Ax=function(e,t){e.serviceFactory("ShortUrlsList",mb,"ShortUrlsTable","ShortUrlsFilteringBar"),e.decorator("ShortUrlsList",t(["selectedServer","mercureInfo","shortUrlsList","settings"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.serviceFactory("ShortUrlsTable",cx,"ShortUrlsRow"),e.serviceFactory("ShortUrlsRow",S_,"ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"),e.serviceFactory("ShortUrlsRowMenu",T_,"DeleteShortUrlModal","QrCodeModal"),e.serviceFactory("CreateShortUrlResult",N_,"useTimeoutToggle"),e.serviceFactory("ShortUrlForm",Sx,"TagsSelector","DomainSelector"),e.serviceFactory("CreateShortUrl",M_,"ShortUrlForm","CreateShortUrlResult"),e.decorator("CreateShortUrl",t(["shortUrlCreationResult","selectedServer","settings"],["createShortUrl","resetCreateShortUrl"])),e.serviceFactory("EditShortUrl",Ex,"ShortUrlForm"),e.decorator("EditShortUrl",t(["shortUrlDetail","shortUrlEdition","selectedServer","settings"],["getShortUrlDetail","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",(function(){return P_})),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["deleteShortUrl","resetDeleteShortUrl"])),e.serviceFactory("QrCodeModal",hx,"ImageDownloader"),e.decorator("QrCodeModal",t(["selectedServer"])),e.serviceFactory("ShortUrlsFilteringBar",Ay,"ExportShortUrlsBtn","TagsSelector"),e.serviceFactory("ExportShortUrlsBtn",Rx,"buildShlinkApiClient","ReportExporter"),e.decorator("ExportShortUrlsBtn",t(["selectedServer"])),e.serviceFactory("listShortUrls",ux,"buildShlinkApiClient"),e.serviceFactory("createShortUrl",X_,"buildShlinkApiClient"),e.serviceFactory("resetCreateShortUrl",(function(){return J_})),e.serviceFactory("deleteShortUrl",W_,"buildShlinkApiClient"),e.serviceFactory("resetDeleteShortUrl",(function(){return Z_})),e.serviceFactory("getShortUrlDetail",Nx,"buildShlinkApiClient"),e.serviceFactory("editShortUrl",ix,"buildShlinkApiClient")},Ix=function(e){var t=e.children,n=e.label,r=e.className,i=void 0===r?"":r,o=e.labelClassName,a=void 0===o?"":o,s=e.noMargin,l=void 0!==s&&s,u=e.id;return(0,ir.jsxs)("div",{className:"".concat(i," ").concat(l?"":"mb-3"),children:[(0,ir.jsx)("label",{className:"form-label ".concat(a),htmlFor:u,children:n}),t]})},Fx=function(e){var t=e.children,n=e.value,r=e.onChange,i=e.type,o=e.required,a=e.placeholder,s=e.className,l=e.labelClassName,u=qv();return(0,ir.jsx)(Ix,{label:(0,ir.jsxs)(ir.Fragment,{children:[t,":"]}),className:null!==s&&void 0!==s?s:"",labelClassName:l,id:u,children:(0,ir.jsx)("input",{id:u,className:"form-control",type:null!==i&&void 0!==i?i:"text",value:n,required:null===o||void 0===o||o,placeholder:a,onChange:function(e){return r(e.target.value)}})})},zx=function(e){var t=e.onSubmit,n=e.initialValues,r=e.children,i=e.title,o=v((0,l.useState)(""),2),a=o[0],s=o[1],u=v((0,l.useState)(""),2),c=u[0],f=u[1],d=v((0,l.useState)(""),2),h=d[0],p=d[1],m=Fm((function(){return t({name:a,url:c,apiKey:h})}));return(0,l.useEffect)((function(){n&&s(n.name),n&&f(n.url),n&&p(n.apiKey)}),[n]),(0,ir.jsxs)("form",{className:"server-form",name:"serverForm",onSubmit:m,children:[(0,ir.jsxs)(tg,{className:"mb-3",title:i,children:[(0,ir.jsx)(Fx,{value:a,onChange:s,children:"Name"}),(0,ir.jsx)(Fx,{type:"url",value:c,onChange:f,children:"URL"}),(0,ir.jsx)(Fx,{value:h,onChange:p,children:"API key"})]}),(0,ir.jsx)("div",{className:"text-end",children:r})]})},Bx=function(e){var t=e.isOpen,n=e.duplicatedServers,r=e.onDiscard,i=e.onSave,o=n.length>1;return(0,ir.jsxs)(eh,{centered:!0,isOpen:t,children:[(0,ir.jsxs)(ih,{children:["Duplicated server",o&&"s"]}),(0,ir.jsxs)(lh,{children:[(0,ir.jsx)("p",{children:o?"The next servers already exist:":"There is already a server with:"}),(0,ir.jsx)("ul",{children:n.map((function(e,t){var n=e.url,r=e.apiKey;return o?(0,ir.jsxs)("li",{children:[(0,ir.jsx)("b",{children:n})," - ",(0,ir.jsx)("b",{children:r})]},t):(0,ir.jsxs)(l.Fragment,{children:[(0,ir.jsxs)("li",{children:["URL: ",(0,ir.jsx)("b",{children:n})]}),(0,ir.jsxs)("li",{children:["API key: ",(0,ir.jsx)("b",{children:r})]})]},t)}))}),(0,ir.jsxs)("span",{children:[o?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),(0,ir.jsxs)(dh,{children:[(0,ir.jsx)(ac,{color:"link",onClick:r,children:o?"Ignore duplicated":"Discard"}),(0,ir.jsx)(ac,{color:"primary",onClick:i,children:"Save anyway"})]})]})},Ux=function(e){var t=e.type;return(0,ir.jsx)("div",{className:"mt-3",children:(0,ir.jsxs)(O_,{type:t,children:["success"===t&&"Servers properly imported. You can now select one from the list :)","error"===t&&"The servers could not be imported. Make sure the format is correct."]})})},Vx=function(e,t){return function(n){var r=n.servers,i=n.createServer,o=Se(),a=Yv(),s=!!Object.keys(r).length,u=v(t(!1,4e3),2),c=u[0],f=u[1],d=v(t(!1,4e3),2),h=d[0],p=d[1],m=v(Zv(),2),g=m[0],y=m[1],b=v((0,l.useState)(),2),_=b[0],x=b[1],w=function(){if(_){var e=Hv();i(Ze(Ze({},_),{},{id:e})),o("/server/".concat(e))}};return(0,l.useEffect)((function(){Object.values(r).some((function(e){var t=e.url,n=e.apiKey;return(null===_||void 0===_?void 0:_.url)===t&&(null===_||void 0===_?void 0:_.apiKey)===n}))?y():w()}),[_]),(0,ir.jsxs)(um,{children:[(0,ir.jsxs)(zx,{title:(0,ir.jsx)("h5",{className:"mb-0",children:"Add new server"}),onSubmit:x,children:[!s&&(0,ir.jsx)(e,{tooltipPlacement:"top",onImport:f,onImportError:p}),s&&(0,ir.jsx)(ac,{outline:!0,onClick:a,children:"Cancel"}),(0,ir.jsx)(ac,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),c&&(0,ir.jsx)(Ux,{type:"success"}),h&&(0,ir.jsx)(Ux,{type:"error"}),(0,ir.jsx)(Bx,{isOpen:g,duplicatedServers:_?[_]:[],onDiscard:a,onSave:w})]})}},Hx=function(e){var t=e.servers,n=e.selectedServer,r=em(t);return(0,ir.jsxs)(mv,{nav:!0,inNavbar:!0,children:[(0,ir.jsxs)(Ic,{nav:!0,caret:!0,children:[(0,ir.jsx)(Ls,{icon:li})," ",(0,ir.jsx)("span",{className:"ms-1",children:"Servers"})]}),(0,ir.jsx)(Dc,{end:!0,style:{right:0},children:Bn(r)?(0,ir.jsxs)(Mc,{tag:ze,to:"/server/create",children:[(0,ir.jsx)(Ls,{icon:ri})," ",(0,ir.jsx)("span",{className:"ms-1",children:"Add a server"})]}):(0,ir.jsxs)(ir.Fragment,{children:[r.map((function(e){var t=e.name,r=e.id;return(0,ir.jsx)(Mc,{tag:ze,to:"/server/".concat(r),active:It(n)===r,children:t},r)})),(0,ir.jsx)(Mc,{divider:!0}),(0,ir.jsxs)(Mc,{tag:ze,to:"/manage-servers",children:[(0,ir.jsx)(Ls,{icon:li})," ",(0,ir.jsx)("span",{className:"ms-1",children:"Manage servers"})]})]})})]})},Wx=function(e){var t=e.server,n=e.toggle,r=e.isOpen,i=e.deleteServer,o=e.redirectHome,a=void 0===o||o,s=Se();return(0,ir.jsxs)(eh,{isOpen:r,toggle:n,centered:!0,children:[(0,ir.jsx)(ih,{toggle:n,className:"text-danger",children:"Remove server"}),(0,ir.jsxs)(lh,{children:[(0,ir.jsxs)("p",{children:["Are you sure you want to remove ",(0,ir.jsx)("b",{children:t?t.name:""}),"?"]}),(0,ir.jsx)("p",{children:(0,ir.jsx)("i",{children:"No data will be deleted, only the access to this server will be removed from this device. You can create it again at any moment."})})]}),(0,ir.jsxs)(dh,{children:[(0,ir.jsx)(ac,{color:"link",onClick:n,children:"Cancel"}),(0,ir.jsx)(ac,{color:"danger",onClick:function(){return i(t),n(),void(a&&s("/"))},children:"Delete"})]})]})},Zx=function(e){return function(t){var n=t.server,r=t.className,i=t.children,o=t.textClassName,a=v(Zv(),4),s=a[0],l=a[2],u=a[3];return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsxs)("span",{className:r,onClick:l,children:[!i&&(0,ir.jsx)(Ls,{fixedWidth:!0,icon:Mr}),(0,ir.jsx)("span",{className:o,children:null!==i&&void 0!==i?i:"Remove this server"})]}),(0,ir.jsx)(e,{server:n,isOpen:s,toggle:u})]})}},Yx=function(e){return cm((function(e){var t=e.editServer,n=e.selectedServer,r=Yv();if(!Rt(n))return null;return(0,ir.jsx)(um,{children:(0,ir.jsxs)(zx,{title:(0,ir.jsxs)("h5",{className:"mb-0",children:['Edit "',n.name,'"']}),initialValues:n,onSubmit:function(e){t(n.id,e),r()},children:[(0,ir.jsx)(ac,{outline:!0,className:"me-2",onClick:r,children:"Cancel"}),(0,ir.jsx)(ac,{outline:!0,color:"primary",children:"Save"})]})})}),e)};var qx,Gx,Kx=_t((function(e,t){return"function"===typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"===typeof e.ap?e.ap(t):"function"===typeof e?function(n){return e(n)(t(n))}:sn((function(e,n){return function(e,t){var n;t=t||[];var r=(e=e||[]).length,i=t.length,o=[];for(n=0;n<r;)o[o.length]=e[n],n+=1;for(n=0;n<i;)o[o.length]=t[n],n+=1;return o}(e,Ug(n,t))}),[],e)})),Qx=Kx,$x=_t((function(e,t){var n=zg(e,t);return zg(e,(function(){return sn(Qx,Ug(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))})),Xx=$x,Jx=bt((function(e){return Xx(e.length,e)})),ew=Jx(bt((function(e){return!e}))),tw=function(e){return function(t){var n=t.url,r=t.apiKey;return e.some((function(e){return e.url===n&&e.apiKey===r}))}},nw=function(e){var t=e.importServersFromFile;return function(e){var n=e.createServers,r=e.servers,i=e.children,o=e.onImport,a=void 0===o?function(){}:o,s=e.onImportError,u=void 0===s?function(){}:s,c=e.tooltipPlacement,f=void 0===c?"bottom":c,d=e.className,h=void 0===d?"":d,p=(0,l.useRef)(),m=v((0,l.useState)(),2),g=m[0],y=m[1],b=v((0,l.useState)([]),2),_=b[0],x=b[1],w=v(Zv(),4),k=w[0],C=w[2],S=w[3],E=Rm(n,a),T=Rm((function(){return E(null!==g&&void 0!==g?g:[])}),S),M=Rm((function(){return E((null!==g&&void 0!==g?g:[]).filter(ew(tw(_))))}),S),O=function(){var e=Bt(Yt().mark((function e(n){var r,i;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.target,e.abrupt("return",t(null===(r=i.files)||void 0===r?void 0:r[0]).then(y).then((function(){i.value=null})).catch(u));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,l.useEffect)((function(){if(g){var e=Object.values(r),t=g.filter(tw(e)),n=!!t.length;n?x(t):E(g),n&&C()}}),[g]),(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsxs)(ac,{outline:!0,id:"importBtn",className:h,onClick:function(){var e;return null===(e=p.current)||void 0===e?void 0:e.click()},children:[(0,ir.jsx)(Ls,{icon:Ar,fixedWidth:!0})," ",null!==i&&void 0!==i?i:"Import from file"]}),(0,ir.jsxs)(yv,{placement:f,target:"importBtn",children:["You can create servers by importing a CSV file with columns ",(0,ir.jsx)("b",{children:"name"}),", ",(0,ir.jsx)("b",{children:"apiKey"})," and ",(0,ir.jsx)("b",{children:"url"}),"."]}),(0,ir.jsx)("input",{type:"file",accept:"text/csv",className:"import-servers-btn__csv-select",ref:k_(p),onChange:O}),(0,ir.jsx)(Bx,{isOpen:k,duplicatedServers:_,onDiscard:M,onSave:T})]})}},rw="shlink/selectedServer/SELECT_SERVER",iw="shlink/selectedServer/RESET_SELECTED_SERVER",ow=Rm((function(e){return"latest"===e?"999.999.999":e}),Vm("1.0.0")),aw=km(Sm,function(){var e=Bt(Yt().mark((function e(t,n){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n().then((function(e){var t=e.version;return{version:ow(t),printableVersion:Um(t)}})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),sw=vg((He(qx={},iw,(function(){return null})),He(qx,rw,(function(e,t){return t.selectedServer})),qx),null),lw=mg(iw),uw=function(e,t){return function(n){return function(){var r=Bt(Yt().mark((function r(i,o){var a,s,l,u,c,f,d,h;return Yt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i(lw()),a=o(),s=a.servers,l=s[n]){r.next=6;break}return i({type:rw,selectedServer:{serverNotFound:!0}}),r.abrupt("return");case 6:return r.prev=6,u=e(l),c=u.health,r.next=10,aw(n,c);case 10:f=r.sent,d=f.version,h=f.printableVersion,i({type:rw,selectedServer:Ze(Ze({},l),{},{version:d,printableVersion:h})}),i(t()),r.next=20;break;case 17:r.prev=17,r.t0=r.catch(6),i({type:rw,selectedServer:Ze(Ze({},l),{},{serverNotReachable:!0})});case 20:case"end":return r.stop()}}),r,null,[[6,17]])})));return function(e,t){return r.apply(this,arguments)}}()}},cw=bt((function(e){for(var t={},n=0;n<e.length;)t[e[n][0]]=e[n][1],n+=1;return t})),fw="shlink/servers/EDIT_SERVER",dw="shlink/servers/DELETE_SERVER",hw="shlink/servers/CREATE_SERVERS",pw="shlink/servers/SET_AUTO_CONNECT",vw=vg((He(Gx={},hw,(function(e,t){var n=t.newServers;return Ze(Ze({},e),n)})),He(Gx,dw,(function(e,t){var n=t.serverId;return qy(n,e)})),He(Gx,fw,(function(e,t){var n=t.serverId,r=t.serverData;return e[n]?L_(n,Ze(Ze({},e[n]),r),e):e})),He(Gx,pw,(function(e,t){var n=t.serverId,r=t.autoConnect;return e[n]?r?cw(Oy(e).map((function(e){var t=v(e,2),r=t[0];return[r,Ze(Ze({},t[1]),{},{autoConnect:r===n})]}))):L_(n,Ze(Ze({},e[n]),{},{autoConnect:r}),e):e})),Gx),{}),mw=jm((function(e,t){return L_(t.id,t,e)}),{}),gw=Rm(Ug((function(e){return e.id?e:L_("id",Hv(),e)})),mw,(function(e){return{type:hw,newServers:e}})),yw=function(e){return gw([e])},bw=function(e,t){return{type:fw,serverId:e,serverData:t}},_w=function(e){var t=e.id;return{type:dw,serverId:t}},xw=function(e,t){var n=e.id;return{type:pw,serverId:n,autoConnect:t}},ww=Rm(Pt("data"),(function(e){return Array.isArray(e)?e.filter(Lt):[]})),kw=function(e){var t=e.get;return function(){return function(){var e=Bt(Yt().mark((function e(n){var r,i;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t("".concat(Ve.Xh,"/servers.json"));case 2:r=e.sent,i=ww(r),n(gw(i));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}},Cw=function(e){return function(t){var n=t.servers,r=t.selectedServer;return(0,ir.jsx)(um,{children:(0,ir.jsxs)("div",{className:"server-error__container flex-column",children:[(0,ir.jsxs)(lm,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!Rt(r)&&"Could not find this Shlink server.",Rt(r)&&(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)("p",{children:"Oops! Could not connect to this Shlink server."}),"Make sure you have internet connection, and the server is properly configured and on-line."]})]}),(0,ir.jsxs)(im,{servers:Object.values(n),children:["These are the Shlink servers currently configured. Choose one of them or ",(0,ir.jsx)(ze,{to:"/server/create",children:"add a new one"}),"."]}),Rt(r)&&(0,ir.jsx)("div",{className:"container mt-3 mt-md-5",children:(0,ir.jsxs)("h5",{children:["Alternatively, if you think you may have miss-configured this server, you can ",(0,ir.jsx)(e,{server:r,className:"server-error__delete-btn",children:"remove it"})," or\xa0",(0,ir.jsx)(ze,{to:"/server/".concat(r.id,"/edit"),children:"edit it"}),"."]})})]})})}},Sw=function(e){var t=e.children,n=e.title,r=e.link;return(0,ir.jsxs)(mf,Ze(Ze({className:"highlight-card",body:!0},function(e){return e?{tag:ze,to:e}:{}}(r)),{},{children:[r&&(0,ir.jsx)(Ls,{size:"3x",className:"highlight-card__link-icon",icon:wy}),(0,ir.jsx)(yd,{tag:"h5",className:"highlight-card__title",children:n}),(0,ir.jsx)(pd,{tag:"h2",children:t})]}))},Ew=function(e,t){return Fy((function(n){var r,i=n.shortUrlsList,o=n.listShortUrls,a=n.listTags,s=n.tagsList,u=n.selectedServer,c=n.loadVisitsOverview,f=n.visitsOverview,d=i.loading,h=i.shortUrls,p=s.loading,v=f.loading,m=f.visitsCount,g=f.orphanVisitsCount,y=It(u),b=$m(u),_=Se();return(0,l.useEffect)((function(){o({itemsPerPage:5,orderBy:{field:"dateCreated",dir:"DESC"}}),a(),c()}),[]),(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsxs)(hu,{children:[(0,ir.jsx)("div",{className:"col-lg-6 col-xl-3 mb-3",children:(0,ir.jsx)(Sw,{title:"Visits",link:b&&"/server/".concat(y,"/non-orphan-visits"),children:v?"Loading...":ub(m)})}),(0,ir.jsx)("div",{className:"col-lg-6 col-xl-3 mb-3",children:(0,ir.jsx)(Sw,{title:"Orphan visits",link:"/server/".concat(y,"/orphan-visits"),children:v?"Loading...":ub(g)})}),(0,ir.jsx)("div",{className:"col-lg-6 col-xl-3 mb-3",children:(0,ir.jsx)(Sw,{title:"Short URLs",link:"/server/".concat(y,"/list-short-urls/1"),children:d?"Loading...":ub(null!==(r=null===h||void 0===h?void 0:h.pagination.totalItems)&&void 0!==r?r:0)})}),(0,ir.jsx)("div",{className:"col-lg-6 col-xl-3 mb-3",children:(0,ir.jsx)(Sw,{title:"Tags",link:"/server/".concat(y,"/manage-tags"),children:p?"Loading...":ub(s.tags.length)})})]}),(0,ir.jsxs)(mf,{className:"mb-3",children:[(0,ir.jsxs)(Bf,{children:[(0,ir.jsx)("span",{className:"d-sm-none",children:"Create a short URL"}),(0,ir.jsx)("h5",{className:"d-none d-sm-inline",children:"Create a short URL"}),(0,ir.jsx)(ze,{className:"float-end",to:"/server/".concat(y,"/create-short-url"),children:"Advanced options \xbb"})]}),(0,ir.jsx)(Of,{children:(0,ir.jsx)(t,{basicMode:!0})})]}),(0,ir.jsxs)(mf,{children:[(0,ir.jsxs)(Bf,{children:[(0,ir.jsx)("span",{className:"d-sm-none",children:"Recently created URLs"}),(0,ir.jsx)("h5",{className:"d-none d-sm-inline",children:"Recently created URLs"}),(0,ir.jsx)(ze,{className:"float-end",to:"/server/".concat(y,"/list-short-urls/1"),children:"See all \xbb"})]}),(0,ir.jsx)(Of,{children:(0,ir.jsx)(e,{shortUrlsList:i,selectedServer:u,className:"mb-0",onTagClick:function(e){return _("/server/".concat(y,"/list-short-urls/1?tags=").concat(encodeURIComponent(e)))}})})]})]})}),(function(){return[zy.visits,zy.orphanVisits]}))},Tw=function(e,t,n,r){return function(i){var o=i.servers,a=Object.values(o),s=v((0,l.useState)(a),2),u=s[0],c=s[1],f=u.some((function(e){return!!e.autoConnect})),d=v(n(!1,4e3),2),h=d[0],p=d[1];return(0,l.useEffect)((function(){c(Object.values(o))}),[o]),(0,ir.jsxs)(um,{children:[(0,ir.jsx)(Mg,{className:"mb-3",onChange:function(e){return c(a.filter((function(t){var n=t.name,r=t.url;return"".concat(n," ").concat(r).toLowerCase().match(e.toLowerCase())})))}}),(0,ir.jsxs)(hu,{className:"mb-3",children:[(0,ir.jsxs)("div",{className:"col-md-6 d-flex d-md-block mb-2 mb-md-0",children:[(0,ir.jsx)(t,{className:"flex-fill",onImportError:p,children:"Import servers"}),a.length>0&&(0,ir.jsxs)(ac,{outline:!0,className:"ms-2 flex-fill",onClick:Bt(Yt().mark((function t(){return Yt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.exportServers());case 1:case"end":return t.stop()}}),t)}))),children:[(0,ir.jsx)(Ls,{icon:Lr,fixedWidth:!0})," Export servers"]})]}),(0,ir.jsx)("div",{className:"col-md-6 text-md-end d-flex d-md-block",children:(0,ir.jsxs)(ac,{outline:!0,color:"primary",className:"flex-fill",tag:ze,to:"/server/create",children:[(0,ir.jsx)(Ls,{icon:ri,fixedWidth:!0})," Add a server"]})})]}),(0,ir.jsx)(tg,{children:(0,ir.jsxs)("table",{className:"table table-hover responsive-table mb-0",children:[(0,ir.jsx)("thead",{className:"responsive-table__header",children:(0,ir.jsxs)("tr",{children:[f&&(0,ir.jsx)("th",{"aria-label":"Auto-connect",style:{width:"50px"}}),(0,ir.jsx)("th",{children:"Name"}),(0,ir.jsx)("th",{children:"Base URL"}),(0,ir.jsx)("th",{"aria-label":"Options"})]})}),(0,ir.jsxs)("tbody",{children:[!u.length&&(0,ir.jsx)("tr",{className:"text-center",children:(0,ir.jsx)("td",{colSpan:4,children:"No servers found."})}),u.map((function(e){return(0,ir.jsx)(r,{server:e,hasAutoConnect:f},e.id)}))]})]})}),h&&(0,ir.jsx)("div",{className:"mt-3",children:(0,ir.jsx)(O_,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})}},Mw=function(e){return function(t){var n=t.server,r=t.hasAutoConnect;return(0,ir.jsxs)("tr",{className:"responsive-table__row",children:[r&&(0,ir.jsx)("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:n.autoConnect&&(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Ls,{icon:_r,className:"text-primary",id:"autoConnectIcon"}),(0,ir.jsx)(yv,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),(0,ir.jsx)("th",{className:"responsive-table__cell","data-th":"Name",children:(0,ir.jsx)(ze,{to:"/server/".concat(n.id),children:n.name})}),(0,ir.jsx)("td",{className:"responsive-table__cell","data-th":"Base URL",children:n.url}),(0,ir.jsx)("td",{className:"responsive-table__cell text-end",children:(0,ir.jsx)(e,{server:n})})]})}},Ow=function(e){return function(t){var n=t.server,r=t.setAutoConnect,i=v(Zv(),2),o=i[0],a=i[1],s=v(Zv(),4),l=s[0],u=s[2],c=s[3],f="/server/".concat(n.id),d=n.autoConnect,h=d?hr:_y;return(0,ir.jsxs)(E_,{isOpen:o,toggle:a,children:[(0,ir.jsxs)(Mc,{tag:ze,to:f,children:[(0,ir.jsx)(Ls,{icon:ni,fixedWidth:!0})," Connect"]}),(0,ir.jsxs)(Mc,{tag:ze,to:"".concat(f,"/edit"),children:[(0,ir.jsx)(Ls,{icon:Jr,fixedWidth:!0})," Edit server"]}),(0,ir.jsxs)(Mc,{onClick:function(){return r(n,!d)},children:[(0,ir.jsx)(Ls,{icon:h,fixedWidth:!0})," ",d?"Do not a":"A","uto-connect"]}),(0,ir.jsx)(Mc,{divider:!0}),(0,ir.jsxs)(Mc,{className:"dropdown-item--danger",onClick:u,children:[(0,ir.jsx)(Ls,{icon:Mr,fixedWidth:!0})," Remove server"]}),(0,ir.jsx)(e,{redirectHome:!1,server:n,isOpen:l,toggle:c})]})}},jw=function(e){return"string"===typeof e.url&&"string"===typeof e.apiKey&&"string"===typeof e.name},Pw=function(e){return Array.isArray(e)&&e.every(jw)},Nw=Vt((function e(t,n){var r=this;Ht(this,e),this.csvToJson=t,this.fileReaderFactory=n,this.importServersFromFile=function(){var e=Bt(Yt().mark((function e(t){var n;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw new Error("No file provided");case 2:return n=r.fileReaderFactory(),e.abrupt("return",new Promise((function(e,i){n.addEventListener("loadend",function(){var t=Bt(Yt().mark((function t(n){var o,a,s,l,u;return Yt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,l=null!==(o=null===(a=n.target)||void 0===a||null===(s=a.result)||void 0===s?void 0:s.toString())&&void 0!==o?o:"",t.next=4,r.csvToJson(l);case 4:if(u=t.sent,Pw(u)){t.next=7;break}throw new Error("Provided file does not have the right format.");case 7:e(u),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),i(t.t0);case 13:case"end":return t.stop()}}),t,null,[[0,10]])})));return function(e){return t.apply(this,arguments)}}()),n.readAsText(t)})));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})),Dw=Vt((function e(t,n,r){var i=this;Ht(this,e),this.storage=t,this.window=n,this.jsonToCsv=r,this.exportServers=Bt(Yt().mark((function e(){var t,n,r;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=em(null!==(t=i.storage.get("servers"))&&void 0!==t?t:{}).map(Ft);try{r=i.jsonToCsv(n),kg(i.window,r,"shlink-servers.csv")}catch(BA){console.error(BA)}case 2:case"end":return e.stop()}}),e)})))})),Lw=function(e,t){e.serviceFactory("ManageServers",Tw,"ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"),e.decorator("ManageServers",dg),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.serviceFactory("ManageServersRow",Mw,"ManageServersRowDropdown"),e.serviceFactory("ManageServersRowDropdown",Ow,"DeleteServerModal"),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.serviceFactory("CreateServer",Vx,"ImportServersBtn","useTimeoutToggle"),e.decorator("CreateServer",dg),e.decorator("CreateServer",t(["selectedServer","servers"],["createServer","resetSelectedServer"])),e.serviceFactory("EditServer",Yx,"ServerError"),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",(function(){return Hx})),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",(function(){return Wx})),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.serviceFactory("DeleteServerButton",Zx,"DeleteServerModal"),e.serviceFactory("ImportServersBtn",nw,"ServersImporter"),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.serviceFactory("ServerError",Cw,"DeleteServerButton"),e.decorator("ServerError",t(["servers","selectedServer"])),e.serviceFactory("Overview",Ew,"ShortUrlsTable","CreateShortUrl"),e.decorator("Overview",t(["shortUrlsList","tagsList","selectedServer","mercureInfo","visitsOverview"],["listShortUrls","listTags","createNewVisits","loadMercureInfo","loadVisitsOverview"])),e.constant("fileReaderFactory",(function(){return new FileReader})),e.service("ServersImporter",Nw,"csvToJson","fileReaderFactory"),e.service("ServersExporter",Dw,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",uw,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServer",(function(){return yw})),e.serviceFactory("createServers",(function(){return gw})),e.serviceFactory("deleteServer",(function(){return _w})),e.serviceFactory("editServer",(function(){return bw})),e.serviceFactory("setAutoConnect",(function(){return xw})),e.serviceFactory("fetchServers",kw,"axios"),e.serviceFactory("resetSelectedServer",(function(){return lw}))};var Rw=(0,l.createContext)(null),Aw=Rw.Provider;function Iw(){var e=(0,l.useContext)(Rw);if(null==e)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function Fw(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function zw(e,t){return null==t?function(t,n){return(0,l.useRef)(e(t,n))}:function(n,r){var i=(0,l.useRef)(e(n,r)),o=(0,l.useRef)(n),a=i.current.instance;return(0,l.useEffect)((function(){o.current!==n&&(t(a,n,o.current),o.current=n)}),[a,n,r]),i}}function Bw(e,t){var n=(0,l.useRef)(t);(0,l.useEffect)((function(){t!==n.current&&null!=e.attributionControl&&(null!=n.current&&e.attributionControl.removeAttribution(n.current),null!=t&&e.attributionControl.addAttribution(t)),n.current=t}),[e,t])}function Uw(e,t){var n=(0,l.useRef)();(0,l.useEffect)((function(){return null!=t&&e.instance.on(t),n.current=t,function(){null!=n.current&&e.instance.off(n.current),n.current=null}}),[e,t])}function Vw(e,t){var n,r=null!==(n=e.pane)&&void 0!==n?n:t.pane;return r?Ze(Ze({},e),{},{pane:r}):e}function Hw(e){return function(t){var n=Iw(),r=e(Vw(t,n),n);return Bw(n.map,t.attribution),Uw(r.current,t.eventHandlers),function(e,t){(0,l.useEffect)((function(){var n;return(null!==(n=t.layerContainer)&&void 0!==n?n:t.map).addLayer(e.instance),function(){var n;null===(n=t.layerContainer)||void 0===n||n.removeLayer(e.instance),t.map.removeLayer(e.instance)}}),[t,e])}(r.current,n),r}}var Ww=n(470),Zw=n.n(Ww),Yw=["url"],qw=function(e,t){return function(e){function t(t,n){var r=e(t).current.instance;return(0,l.useImperativeHandle)(n,(function(){return r})),null}return(0,l.forwardRef)(t)}(Hw(zw(e,t)))}((function(e,t){var n=e.url,r=Wt(e,Yw);return Fw(new Ww.TileLayer(n,Vw(r,t)),t)}),(function(e,t,n){var r=t.opacity,i=t.zIndex;null!=r&&r!==n.opacity&&e.setOpacity(r),null!=i&&i!==n.zIndex&&e.setZIndex(i)})),Gw=["bounds","boundsOptions","center","children","className","id","placeholder","style","whenReady","zoom"];function Kw(){return Kw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kw.apply(this,arguments)}function Qw(e,t){var n=e.bounds,r=e.boundsOptions,i=e.center,o=e.children,a=e.className,s=e.id,u=e.placeholder,c=e.style,f=e.whenReady,d=e.zoom,h=Wt(e,Gw),p=v((0,l.useState)({className:a,id:s,style:c}),1)[0],m=v((0,l.useState)(null),2),g=m[0],y=m[1];(0,l.useImperativeHandle)(t,(function(){var e;return null!==(e=null===g||void 0===g?void 0:g.map)&&void 0!==e?e:null}),[g]);var b=(0,l.useCallback)((function(e){if(null!==e&&null===g){var t=new Ww.Map(e,h);null!=i&&null!=d?t.setView(i,d):null!=n&&t.fitBounds(n,r),null!=f&&t.whenReady(f),y(function(e){return Object.freeze({__version:1,map:e})}(t))}}),[]);(0,l.useEffect)((function(){return function(){null===g||void 0===g||g.map.remove()}}),[]);var _=g?l.createElement(Aw,{value:g},o):null!==u&&void 0!==u?u:null;return l.createElement("div",Kw({},p,{ref:b}),_)}var $w=(0,l.forwardRef)(Qw),Xw=["position"],Jw=function(e,t){return function(e){function t(t,n){var r=e(t).current,i=r.instance,o=r.context;return(0,l.useImperativeHandle)(n,(function(){return i})),null==t.children?null:l.createElement(Aw,{value:o},t.children)}return(0,l.forwardRef)(t)}(Hw(zw(e,t)))}((function(e,t){var n,r,i=e.position,o=Wt(e,Xw),a=new Ww.Marker(i,o);return Fw(a,(n=t,r={overlayContainer:a},Object.freeze(Ze(Ze({},n),r))))}),(function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),null!=t.icon&&t.icon!==n.icon&&e.setIcon(t.icon),null!=t.zIndexOffset&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),null!=t.opacity&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),null!=e.dragging&&t.draggable!==n.draggable&&(!0===t.draggable?e.dragging.enable():e.dragging.disable())})),ek=function(e,t){var n=function(e,t){return function(n,r){var i=Iw(),o=e(Vw(n,i),i);return Bw(i.map,n.attribution),Uw(o.current,n.eventHandlers),t(o.current,i,n,r),o}}(zw(e),t);return function(e){function t(t,n){var r=v((0,l.useState)(!1),2),i=r[0],a=r[1],s=e(t,a).current.instance;(0,l.useImperativeHandle)(n,(function(){return s})),(0,l.useEffect)((function(){i&&s.update()}),[s,i,t.children]);var u=s._contentNode;return u?(0,o.createPortal)(t.children,u):null}return(0,l.forwardRef)(t)}(n)}((function(e,t){return Fw(new Ww.Popup(e,t.overlayContainer),t)}),(function(e,t,n,r){var i=n.position;(0,l.useEffect)((function(){var n=e.instance;function o(e){e.popup===n&&(n.update(),r(!0))}function a(e){e.popup===n&&r(!1)}return t.map.on({popupopen:o,popupclose:a}),null==t.overlayContainer?(null!=i&&n.setLatLng(i),n.openOn(t.map)):t.overlayContainer.bindPopup(n),function(){var e;t.map.off({popupopen:o,popupclose:a}),null===(e=t.overlayContainer)||void 0===e||e.unbindPopup(),t.map.removeLayer(n)}}),[e,t,r,i])})),tk=function(){return(0,ir.jsx)(qw,{attribution:'© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"})},nk=function(e){return 0===e.length?{}:e.length>1?{bounds:e.map(Pt("latLong"))}:{zoom:10,center:v(e,1)[0].latLong}},rk=function(e){var t=e.toggle,n=e.isOpen,r=e.title,i=e.locations,o=void 0===i?[]:i;return(0,ir.jsx)(eh,{toggle:t,isOpen:n,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:(0,ir.jsxs)(lh,{className:"map-modal__modal-body",children:[(0,ir.jsxs)("h3",{className:"map-modal__modal-title",children:[r,(0,ir.jsx)("button",{type:"button",className:"btn-close float-end","aria-label":"Close",onClick:t})]}),(0,ir.jsxs)($w,Ze(Ze({},nk(o)),{},{children:[(0,ir.jsx)(tk,{}),o.map((function(e,t){var n=e.cityName,r=e.latLong,i=e.count;return(0,ir.jsx)(Jw,{position:r,children:(0,ir.jsxs)(ek,{children:[(0,ir.jsx)("b",{children:i})," visit",i>1?"s":""," from ",(0,ir.jsx)("b",{children:n})]})},t)}))]}))]})})},ik=function(e){var t=e.visits,n=e.goBack,r=e.shortUrl,i=e.children,o=e.title;return(0,ir.jsx)("header",{children:(0,ir.jsxs)(mf,{body:!0,children:[(0,ir.jsxs)("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[(0,ir.jsx)(ac,{color:"link",size:"lg",className:"p-0 me-3",onClick:n,children:(0,ir.jsx)(Ls,{icon:lr})}),(0,ir.jsx)("span",{className:"text-center d-none d-sm-block",children:(0,ir.jsx)("small",{children:o})}),(0,ir.jsxs)("span",{className:"badge badge-main ms-3",children:["Visits:"," ",(0,ir.jsx)(C_,{visitsCount:t.length,shortUrl:r})]})]}),(0,ir.jsx)("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:(0,ir.jsx)("small",{children:o})}),i&&(0,ir.jsx)("div",{className:"mt-md-2",children:i})]})})},ok=function(e){var t,n,r=e.shortUrlDetail,i=e.shortUrlVisits,o=e.goBack,a=r.shortUrl,s=r.loading,l=i.visits,u=null!==(t=null===a||void 0===a?void 0:a.shortUrl)&&void 0!==t?t:"",c=null!==(n=null===a||void 0===a?void 0:a.longUrl)&&void 0!==n?n:"",f=null===a||void 0===a?void 0:a.title,d=(0,ir.jsxs)(ir.Fragment,{children:["Visits for ",(0,ir.jsx)(nm,{href:u})]});return(0,ir.jsxs)(ik,{title:d,goBack:o,visits:l,shortUrl:a,children:[(0,ir.jsx)("hr",{}),(0,ir.jsxs)("div",{children:["Created: ",a?(0,ir.jsxs)("span",{children:[(0,ir.jsx)("b",{id:"created",className:"short-url-visits-header__created-at",children:(0,ir.jsx)(zb,{date:a.dateCreated,relative:!0})}),(0,ir.jsx)(yv,{placement:"bottom",target:"created",children:(0,ir.jsx)(zb,{date:a.dateCreated})})]}):(0,ir.jsx)("small",{children:"Loading..."})]}),(0,ir.jsxs)("div",{className:"long-url-container",children:["".concat(f?"Title":"Long URL",": "),s&&(0,ir.jsx)("small",{children:"Loading..."}),!s&&(0,ir.jsx)(nm,{href:c,children:null!==f&&void 0!==f?f:c})]})]})},ak=Om((function(e,t,n){return Fn(t,n[e])})),sk=["children"],lk=function(e){var t=e.children,n=Wt(e,sk);return(0,ir.jsx)(Qu,Ze(Ze({className:"nav-pills__nav-link",tag:Be},n),{},{children:t}))},uk=function(e){var t=e.children,n=e.fill,r=void 0!==n&&n,i=e.className,o=void 0===i?"":i;return(0,ir.jsx)(mf,{className:"nav-pills__nav p-0 overflow-hidden ".concat(o),body:!0,children:(0,ir.jsx)(Vu,{pills:!0,fill:r,children:l.Children.map(t,(function(e){if(!(0,l.isValidElement)(e)||e.type!==lk)throw new Error("Only NavPillItem children are allowed inside NavPills.");return e}))})})};function ck(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=zs(e)););return e}function fk(){return fk="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=ck(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},fk.apply(this,arguments)}function dk(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=h(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}var hk="undefined"===typeof window?function(e){return e()}:window.requestAnimationFrame;function pk(e,t,n){var r=n||function(e){return Array.prototype.slice.call(e)},i=!1,o=[];return function(){for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];o=r(a),i||(i=!0,hk.call(window,(function(){i=!1,e.apply(t,o)})))}}var vk=function(e){return"start"===e?"left":"end"===e?"right":"center"},mk=function(e,t,n){return"start"===e?t:"end"===e?n:(t+n)/2};function gk(){}var yk=function(){var e=0;return function(){return e++}}();function bk(e){return null===e||"undefined"===typeof e}function _k(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)}function xk(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}var wk=function(e){return("number"===typeof e||e instanceof Number)&&isFinite(+e)};function kk(e,t){return wk(e)?e:t}function Ck(e,t){return"undefined"===typeof e?t:e}var Sk=function(e,t){return"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e};function Ek(e,t,n){if(e&&"function"===typeof e.call)return e.apply(n,t)}function Tk(e,t,n,r){var i,o,a;if(_k(e))if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i);else if(xk(e))for(o=(a=Object.keys(e)).length,i=0;i<o;i++)t.call(n,e[a[i]],a[i])}function Mk(e,t){var n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function Ok(e){if(_k(e))return e.map(Ok);if(xk(e)){for(var t=Object.create(null),n=Object.keys(e),r=n.length,i=0;i<r;++i)t[n[i]]=Ok(e[n[i]]);return t}return e}function jk(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function Pk(e,t,n,r){if(jk(e)){var i=t[e],o=n[e];xk(i)&&xk(o)?Nk(i,o,r):t[e]=Ok(o)}}function Nk(e,t,n){var r=_k(t)?t:[t],i=r.length;if(!xk(e))return e;for(var o=(n=n||{}).merger||Pk,a=0;a<i;++a)if(xk(t=r[a]))for(var s=Object.keys(t),l=0,u=s.length;l<u;++l)o(s[l],e,t,n);return e}function Dk(e,t){return Nk(e,t,{merger:Lk})}function Lk(e,t,n){if(jk(e)){var r=t[e],i=n[e];xk(r)&&xk(i)?Dk(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Ok(i))}}function Rk(e,t){var n=e.indexOf(".",t);return-1===n?e.length:n}function Ak(e,t){if(""===t)return e;for(var n=0,r=Rk(t,n);e&&r>n;)e=e[t.substr(n,r-n)],r=Rk(t,n=r+1);return e}function Ik(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Fk=function(e){return"undefined"!==typeof e},zk=function(e){return"function"===typeof e},Bk=function(e,t){if(e.size!==t.size)return!1;var n,r=dk(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!t.has(i))return!1}}catch(o){r.e(o)}finally{r.f()}return!0};var Uk=Math.PI,Vk=2*Uk,Hk=Vk+Uk,Wk=Number.POSITIVE_INFINITY,Zk=Uk/180,Yk=Uk/2,qk=Uk/4,Gk=2*Uk/3,Kk=Math.log10,Qk=Math.sign;function $k(e){var t=Math.round(e);e=Jk(e,t,e/1e3)?t:e;var n=Math.pow(10,Math.floor(Kk(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function Xk(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Jk(e,t,n){return Math.abs(e-t)<n}function eC(e,t,n){var r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function tC(e){return e*(Uk/180)}function nC(e){return e*(180/Uk)}function rC(e){if(wk(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}}function iC(e,t){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*Uk&&(o+=Vk),{angle:o,distance:i}}function oC(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function aC(e,t){return(e-t+Hk)%Vk-Uk}function sC(e){return(e%Vk+Vk)%Vk}function lC(e,t,n,r){var i=sC(e),o=sC(t),a=sC(n),s=sC(o-i),l=sC(a-i),u=sC(i-o),c=sC(i-a);return i===o||i===a||r&&o===a||s>l&&u<c}function uC(e,t,n){return Math.max(t,Math.min(n,e))}function cC(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e-6;return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}var fC=function(e){return 0===e||1===e},dC=function(e,t,n){return-Math.pow(2,10*(e-=1))*Math.sin((e-t)*Vk/n)},hC=function(e,t,n){return Math.pow(2,-10*e)*Math.sin((e-t)*Vk/n)+1},pC={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*Yk)},easeOutSine:function(e){return Math.sin(e*Yk)},easeInOutSine:function(e){return-.5*(Math.cos(Uk*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return fC(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1)))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){return fC(e)?e:dC(e,.075,.3)},easeOutElastic:function(e){return fC(e)?e:hC(e,.075,.3)},easeInOutElastic:function(e){var t=.1125;return fC(e)?e:e<.5?.5*dC(2*e,t,.45):.5+.5*hC(2*e-1,t,.45)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-pC.easeOutBounce(1-e)},easeOutBounce:function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*pC.easeInBounce(2*e):.5*pC.easeOutBounce(2*e-1)+.5}},vC={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},mC="0123456789ABCDEF",gC=function(e){return mC[15&e]},yC=function(e){return mC[(240&e)>>4]+mC[15&e]},bC=function(e){return(240&e)>>4===(15&e)};function _C(e){var t=function(e){return bC(e.r)&&bC(e.g)&&bC(e.b)&&bC(e.a)}(e)?gC:yC;return e?"#"+t(e.r)+t(e.g)+t(e.b)+(e.a<255?t(e.a):""):e}function xC(e){return e+.5|0}var wC=function(e,t,n){return Math.max(Math.min(e,n),t)};function kC(e){return wC(xC(2.55*e),0,255)}function CC(e){return wC(xC(255*e),0,255)}function SC(e){return wC(xC(e/2.55)/100,0,1)}function EC(e){return wC(xC(100*e),0,100)}var TC=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;var MC=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function OC(e,t,n){var r=t*Math.min(n,1-n),i=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+e/30)%12;return n-r*Math.max(Math.min(i-3,9-i,1),-1)};return[i(0),i(8),i(4)]}function jC(e,t,n){var r=function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(r+e/60)%6;return n-n*t*Math.max(Math.min(i,4-i,1),0)};return[r(5),r(3),r(1)]}function PC(e,t,n){var r,i=OC(e,1,.5);for(t+n>1&&(t*=r=1/(t+n),n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function NC(e){var t,n,r,i=e.r/255,o=e.g/255,a=e.b/255,s=Math.max(i,o,a),l=Math.min(i,o,a),u=(s+l)/2;return s!==l&&(r=s-l,n=u>.5?r/(2-s-l):r/(s+l),t=60*(t=s===i?(o-a)/r+(o<a?6:0):s===o?(a-i)/r+2:(i-o)/r+4)+.5),[0|t,n||0,u]}function DC(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(CC)}function LC(e,t,n){return DC(OC,e,t,n)}function RC(e){return(e%360+360)%360}function AC(e){var t,n=MC.exec(e),r=255;if(n){n[5]!==t&&(r=n[6]?kC(+n[5]):CC(+n[5]));var i=RC(+n[2]),o=+n[3]/100,a=+n[4]/100;return t="hwb"===n[1]?function(e,t,n){return DC(PC,e,t,n)}(i,o,a):"hsv"===n[1]?function(e,t,n){return DC(jC,e,t,n)}(i,o,a):LC(i,o,a),{r:t[0],g:t[1],b:t[2],a:r}}}var IC,FC={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"},zC={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"};function BC(e){IC||(IC=function(){var e,t,n,r,i,o={},a=Object.keys(zC),s=Object.keys(FC);for(e=0;e<a.length;e++){for(r=i=a[e],t=0;t<s.length;t++)n=s[t],i=i.replace(n,FC[n]);n=parseInt(zC[r],16),o[i]=[n>>16&255,n>>8&255,255&n]}return o}(),IC.transparent=[0,0,0,0]);var t=IC[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}function UC(e,t,n){if(e){var r=NC(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=LC(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function VC(e,t){return e?Object.assign(t||{},e):e}function HC(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=CC(e[3]))):(t=VC(e,{r:0,g:0,b:0,a:1})).a=CC(t.a),t}function WC(e){return"r"===e.charAt(0)?function(e){var t,n,r,i=TC.exec(e),o=255;if(i){if(i[7]!==t){var a=+i[7];o=255&(i[8]?kC(a):255*a)}return t=+i[1],n=+i[3],r=+i[5],{r:t=255&(i[2]?kC(t):t),g:n=255&(i[4]?kC(n):n),b:r=255&(i[6]?kC(r):r),a:o}}}(e):AC(e)}var ZC=function(){function e(t){if(Ht(this,e),t instanceof e)return t;var n,r=typeof t;"object"===r?n=HC(t):"string"===r&&(n=function(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*vC[e[1]],g:255&17*vC[e[2]],b:255&17*vC[e[3]],a:5===n?17*vC[e[4]]:255}:7!==n&&9!==n||(t={r:vC[e[1]]<<4|vC[e[2]],g:vC[e[3]]<<4|vC[e[4]],b:vC[e[5]]<<4|vC[e[6]],a:9===n?vC[e[7]]<<4|vC[e[8]]:255})),t}(t)||BC(t)||WC(t)),this._rgb=n,this._valid=!!n}return Vt(e,[{key:"valid",get:function(){return this._valid}},{key:"rgb",get:function(){var e=VC(this._rgb);return e&&(e.a=SC(e.a)),e},set:function(e){this._rgb=HC(e)}},{key:"rgbString",value:function(){return this._valid?function(e){return e&&(e.a<255?"rgba(".concat(e.r,", ").concat(e.g,", ").concat(e.b,", ").concat(SC(e.a),")"):"rgb(".concat(e.r,", ").concat(e.g,", ").concat(e.b,")"))}(this._rgb):this._rgb}},{key:"hexString",value:function(){return this._valid?_C(this._rgb):this._rgb}},{key:"hslString",value:function(){return this._valid?function(e){if(e){var t=NC(e),n=t[0],r=EC(t[1]),i=EC(t[2]);return e.a<255?"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(SC(e.a),")"):"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)")}}(this._rgb):this._rgb}},{key:"mix",value:function(e,t){var n=this;if(e){var r,i=n.rgb,o=e.rgb,a=t===r?.5:t,s=2*a-1,l=i.a-o.a,u=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;r=1-u,i.r=255&u*i.r+r*o.r+.5,i.g=255&u*i.g+r*o.g+.5,i.b=255&u*i.b+r*o.b+.5,i.a=a*i.a+(1-a)*o.a,n.rgb=i}return n}},{key:"clone",value:function(){return new e(this.rgb)}},{key:"alpha",value:function(e){return this._rgb.a=CC(e),this}},{key:"clearer",value:function(e){return this._rgb.a*=1-e,this}},{key:"greyscale",value:function(){var e=this._rgb,t=xC(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}},{key:"opaquer",value:function(e){return this._rgb.a*=1+e,this}},{key:"negate",value:function(){var e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}},{key:"lighten",value:function(e){return UC(this._rgb,2,e),this}},{key:"darken",value:function(e){return UC(this._rgb,2,-e),this}},{key:"saturate",value:function(e){return UC(this._rgb,1,e),this}},{key:"desaturate",value:function(e){return UC(this._rgb,1,-e),this}},{key:"rotate",value:function(e){return function(e,t){var n=NC(e);n[0]=RC(n[0]+t),n=LC(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}]),e}();function YC(e){return new ZC(e)}var qC=function(e){return e instanceof CanvasGradient||e instanceof CanvasPattern};function GC(e){return qC(e)?e:YC(e)}function KC(e){return qC(e)?e:YC(e).saturate(.5).darken(.1).hexString()}var QC=Object.create(null),$C=Object.create(null);function XC(e,t){if(!t)return e;for(var n=t.split("."),r=0,i=n.length;r<i;++r){var o=n[r];e=e[o]||(e[o]=Object.create(null))}return e}function JC(e,t,n){return"string"===typeof t?Nk(XC(e,t),n):Nk(XC(e,""),t)}var eS=function(){function e(t){Ht(this,e),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=function(e){return e.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=function(e,t){return KC(t.backgroundColor)},this.hoverBorderColor=function(e,t){return KC(t.borderColor)},this.hoverColor=function(e,t){return KC(t.color)},this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},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)}return Vt(e,[{key:"set",value:function(e,t){return JC(this,e,t)}},{key:"get",value:function(e){return XC(this,e)}},{key:"describe",value:function(e,t){return JC($C,e,t)}},{key:"override",value:function(e,t){return JC(QC,e,t)}},{key:"route",value:function(e,t,n,r){var i,o=XC(this,e),a=XC(this,n),s="_"+t;Object.defineProperties(o,(He(i={},s,{value:o[t],writable:!0}),He(i,t,{enumerable:!0,get:function(){var e=this[s],t=a[r];return xk(e)?Object.assign({},t,e):Ck(e,t)},set:function(e){this[s]=e}}),i))}}]),e}(),tS=new eS({_scriptable:function(e){return!e.startsWith("on")},_indexable:function(e){return"events"!==e},hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function nS(e,t,n,r,i){var o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function rS(e,t,n,r){var i=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},o=r.garbageCollect=[],r.font=t),e.save(),e.font=t;var a,s,l,u,c,f=0,d=n.length;for(a=0;a<d;a++)if(void 0!==(u=n[a])&&null!==u&&!0!==_k(u))f=nS(e,i,o,f,u);else if(_k(u))for(s=0,l=u.length;s<l;s++)void 0===(c=u[s])||null===c||_k(c)||(f=nS(e,i,o,f,c));e.restore();var h=o.length/2;if(h>n.length){for(a=0;a<h;a++)delete i[o[a]];o.splice(0,h)}return f}function iS(e,t,n){var r=e.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function oS(e,t){(t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function aS(e,t,n,r){var i,o,a,s,l,u=t.pointStyle,c=t.rotation,f=t.radius,d=(c||0)*Zk;if(u&&"object"===typeof u&&("[object HTMLImageElement]"===(i=u.toString())||"[object HTMLCanvasElement]"===i))return e.save(),e.translate(n,r),e.rotate(d),e.drawImage(u,-u.width/2,-u.height/2,u.width,u.height),void e.restore();if(!(isNaN(f)||f<=0)){switch(e.beginPath(),u){default:e.arc(n,r,f,0,Vk),e.closePath();break;case"triangle":e.moveTo(n+Math.sin(d)*f,r-Math.cos(d)*f),d+=Gk,e.lineTo(n+Math.sin(d)*f,r-Math.cos(d)*f),d+=Gk,e.lineTo(n+Math.sin(d)*f,r-Math.cos(d)*f),e.closePath();break;case"rectRounded":s=f-(l=.516*f),o=Math.cos(d+qk)*s,a=Math.sin(d+qk)*s,e.arc(n-o,r-a,l,d-Uk,d-Yk),e.arc(n+a,r-o,l,d-Yk,d),e.arc(n+o,r+a,l,d,d+Yk),e.arc(n-a,r+o,l,d+Yk,d+Uk),e.closePath();break;case"rect":if(!c){s=Math.SQRT1_2*f,e.rect(n-s,r-s,2*s,2*s);break}d+=qk;case"rectRot":o=Math.cos(d)*f,a=Math.sin(d)*f,e.moveTo(n-o,r-a),e.lineTo(n+a,r-o),e.lineTo(n+o,r+a),e.lineTo(n-a,r+o),e.closePath();break;case"crossRot":d+=qk;case"cross":o=Math.cos(d)*f,a=Math.sin(d)*f,e.moveTo(n-o,r-a),e.lineTo(n+o,r+a),e.moveTo(n+a,r-o),e.lineTo(n-a,r+o);break;case"star":o=Math.cos(d)*f,a=Math.sin(d)*f,e.moveTo(n-o,r-a),e.lineTo(n+o,r+a),e.moveTo(n+a,r-o),e.lineTo(n-a,r+o),d+=qk,o=Math.cos(d)*f,a=Math.sin(d)*f,e.moveTo(n-o,r-a),e.lineTo(n+o,r+a),e.moveTo(n+a,r-o),e.lineTo(n-a,r+o);break;case"line":o=Math.cos(d)*f,a=Math.sin(d)*f,e.moveTo(n-o,r-a),e.lineTo(n+o,r+a);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(d)*f,r+Math.sin(d)*f)}e.fill(),t.borderWidth>0&&e.stroke()}}function sS(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function lS(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function uS(e){e.restore()}function cS(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if("middle"===i){var o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else"after"===i!==!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function fS(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function dS(e,t,n,r,i){var o,a,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},l=_k(t)?t:[t],u=s.strokeWidth>0&&""!==s.strokeColor;for(e.save(),e.font=i.string,hS(e,s),o=0;o<l.length;++o)a=l[o],u&&(s.strokeColor&&(e.strokeStyle=s.strokeColor),bk(s.strokeWidth)||(e.lineWidth=s.strokeWidth),e.strokeText(a,n,r,s.maxWidth)),e.fillText(a,n,r,s.maxWidth),pS(e,n,r,a,s),r+=i.lineHeight;e.restore()}function hS(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),bk(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function pS(e,t,n,r,i){if(i.strikethrough||i.underline){var o=e.measureText(r),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,u=n+o.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,c),e.lineTo(s,c),e.stroke()}}function vS(e,t){var n=t.x,r=t.y,i=t.w,o=t.h,a=t.radius;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,-Yk,Uk,!0),e.lineTo(n,r+o-a.bottomLeft),e.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,Uk,Yk,!0),e.lineTo(n+i-a.bottomRight,r+o),e.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,Yk,0,!0),e.lineTo(n+i,r+a.topRight),e.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-Yk,!0),e.lineTo(n+a.topLeft,r)}var mS=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),gS=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function yS(e,t){var n=(""+e).match(mS);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}var bS=function(e){return+e||0};function _S(e,t){var n,r={},i=xk(t),o=i?Object.keys(t):t,a=xk(e)?i?function(n){return Ck(e[n],e[t[n]])}:function(t){return e[t]}:function(){return e},s=dk(o);try{for(s.s();!(n=s.n()).done;){var l=n.value;r[l]=bS(a(l))}}catch(u){s.e(u)}finally{s.f()}return r}function xS(e){return _S(e,{top:"y",right:"x",bottom:"y",left:"x"})}function wS(e){return _S(e,["topLeft","topRight","bottomLeft","bottomRight"])}function kS(e){var t=xS(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function CS(e,t){e=e||{},t=t||tS.font;var n=Ck(e.size,t.size);"string"===typeof n&&(n=parseInt(n,10));var r=Ck(e.style,t.style);r&&!(""+r).match(gS)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");var i={family:Ck(e.family,t.family),lineHeight:yS(Ck(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Ck(e.weight,t.weight),string:""};return i.string=function(e){return!e||bk(e.size)||bk(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(i),i}function SS(e,t,n,r){var i,o,a,s=!0;for(i=0,o=e.length;i<o;++i)if(void 0!==(a=e[i])&&(void 0!==t&&"function"===typeof a&&(a=a(t),s=!1),void 0!==n&&_k(a)&&(a=a[n%a.length],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}function ES(e,t){return Object.assign(Object.create(e),t)}function TS(e,t,n){n=n||function(n){return e[n]<t};for(var r,i=e.length-1,o=0;i-o>1;)n(r=o+i>>1)?o=r:i=r;return{lo:o,hi:i}}var MS=function(e,t,n){return TS(e,n,(function(r){return e[r][t]<n}))},OS=function(e,t,n){return TS(e,n,(function(r){return e[r][t]>=n}))};var jS=["push","pop","shift","splice","unshift"];function PS(e,t){var n=e._chartjs;if(n){var r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(jS.forEach((function(t){delete e[t]})),delete e._chartjs)}}function NS(e){var t,n,r=new Set;for(t=0,n=e.length;t<n;++t)r.add(e[t]);return r.size===n?e:Array.from(r)}function DS(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return e[0]};Fk(i)||(i=ZS("_fallback",e));var a=(He(t={},Symbol.toStringTag,"Object"),He(t,"_cacheable",!0),He(t,"_scopes",e),He(t,"_rootScopes",r),He(t,"_fallback",i),He(t,"_getTarget",o),He(t,"override",(function(t){return DS([t].concat(g(e)),n,r,i)})),t);return new Proxy(a,{deleteProperty:function(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get:function(t,r){return FS(t,r,(function(){return WS(r,n,e,t)}))},getOwnPropertyDescriptor:function(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e[0])},has:function(e,t){return YS(e).includes(t)},ownKeys:function(e){return YS(e)},set:function(e,t,n){var r=e._storage||(e._storage=o());return e[t]=r[t]=n,delete e._keys,!0}})}function LS(e,t,n,r){var i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:RS(e,r),setContext:function(t){return LS(e,t,n,r)},override:function(i){return LS(e.override(i),t,n,r)}};return new Proxy(i,{deleteProperty:function(t,n){return delete t[n],delete e[n],!0},get:function(e,t,n){return FS(e,t,(function(){return function(e,t,n){var r=e._proxy,i=e._context,o=e._subProxy,a=e._descriptors,s=r[t];zk(s)&&a.isScriptable(t)&&(s=function(e,t,n,r){var i=n._proxy,o=n._context,a=n._subProxy,s=n._stack;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e),t=t(o,a||r),s.delete(e),IS(e,t)&&(t=VS(i._scopes,i,e,t));return t}(t,s,e,n));_k(s)&&s.length&&(s=function(e,t,n,r){var i=n._proxy,o=n._context,a=n._subProxy,s=n._descriptors;if(Fk(o.index)&&r(e))t=t[o.index%t.length];else if(xk(t[0])){var l=t,u=i._scopes.filter((function(e){return e!==l}));t=[];var c,f=dk(l);try{for(f.s();!(c=f.n()).done;){var d=VS(u,i,e,c.value);t.push(LS(d,o,a&&a[e],s))}}catch(h){f.e(h)}finally{f.f()}}return t}(t,s,e,a.isIndexable));IS(t,s)&&(s=LS(s,i,o&&o[t],a));return s}(e,t,n)}))},getOwnPropertyDescriptor:function(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e)},has:function(t,n){return Reflect.has(e,n)},ownKeys:function(){return Reflect.ownKeys(e)},set:function(t,n,r){return e[n]=r,delete t[n],!0}})}function RS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0},n=e._scriptable,r=void 0===n?t.scriptable:n,i=e._indexable,o=void 0===i?t.indexable:i,a=e._allKeys,s=void 0===a?t.allKeys:a;return{allKeys:s,scriptable:r,indexable:o,isScriptable:zk(r)?r:function(){return r},isIndexable:zk(o)?o:function(){return o}}}var AS=function(e,t){return e?e+Ik(t):t},IS=function(e,t){return xk(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object)};function FS(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];var r=n();return e[t]=r,r}function zS(e,t,n){return zk(e)?e(t,n):e}var BS=function(e,t){return!0===e?t:"string"===typeof e?Ak(t,e):void 0};function US(e,t,n,r,i){var o,a=dk(t);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=BS(n,s);if(l){e.add(l);var u=zS(l._fallback,n,i);if(Fk(u)&&u!==n&&u!==r)return u}else if(!1===l&&Fk(r)&&n!==r)return null}}catch(c){a.e(c)}finally{a.f()}return!1}function VS(e,t,n,r){var i=t._rootScopes,o=zS(t._fallback,n,r),a=[].concat(g(e),g(i)),s=new Set;s.add(r);var l=HS(s,a,n,o||n,r);return null!==l&&((!Fk(o)||o===n||null!==(l=HS(s,a,o,l,r)))&&DS(Array.from(s),[""],i,o,(function(){return function(e,t,n){var r=e._getTarget();t in r||(r[t]={});var i=r[t];if(_k(i)&&xk(n))return n;return i}(t,n,r)})))}function HS(e,t,n,r,i){for(;n;)n=US(e,t,n,r,i);return n}function WS(e,t,n,r){var i,o,a=dk(t);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(i=ZS(AS(s,e),n),Fk(i))return IS(e,i)?VS(n,r,e,i):i}}catch(l){a.e(l)}finally{a.f()}}function ZS(e,t){var n,r=dk(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i){var o=i[e];if(Fk(o))return o}}}catch(a){r.e(a)}finally{r.f()}}function YS(e){var t=e._keys;return t||(t=e._keys=function(e){var t,n=new Set,r=dk(e);try{for(r.s();!(t=r.n()).done;){var i,o=t.value,a=dk(Object.keys(o).filter((function(e){return!e.startsWith("_")})));try{for(a.s();!(i=a.n()).done;){var s=i.value;n.add(s)}}catch(l){a.e(l)}finally{a.f()}}}catch(l){r.e(l)}finally{r.f()}return Array.from(n)}(e._scopes)),t}var qS=Number.EPSILON||1e-14,GS=function(e,t){return t<e.length&&!e[t].skip&&e[t]},KS=function(e){return"x"===e?"y":"x"};function QS(e,t,n,r){var i=e.skip?t:e,o=t,a=n.skip?t:n,s=oC(o,i),l=oC(a,o),u=s/(s+l),c=l/(s+l),f=r*(u=isNaN(u)?0:u),d=r*(c=isNaN(c)?0:c);return{previous:{x:o.x-f*(a.x-i.x),y:o.y-f*(a.y-i.y)},next:{x:o.x+d*(a.x-i.x),y:o.y+d*(a.y-i.y)}}}function $S(e,t,n){for(var r,i,o,a,s,l=e.length,u=GS(e,0),c=0;c<l-1;++c)s=u,u=GS(e,c+1),s&&u&&(Jk(t[c],0,qS)?n[c]=n[c+1]=0:(r=n[c]/t[c],i=n[c+1]/t[c],(a=Math.pow(r,2)+Math.pow(i,2))<=9||(o=3/Math.sqrt(a),n[c]=r*o*t[c],n[c+1]=i*o*t[c])))}function XS(e,t){for(var n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x",a=KS(o),s=e.length,l=GS(e,0),u=0;u<s;++u)if(r=i,i=l,l=GS(e,u+1),i){var c=i[o],f=i[a];r&&(n=(c-r[o])/3,i["cp1".concat(o)]=c-n,i["cp1".concat(a)]=f-n*t[u]),l&&(n=(l[o]-c)/3,i["cp2".concat(o)]=c+n,i["cp2".concat(a)]=f+n*t[u])}}function JS(e,t,n){return Math.max(Math.min(e,n),t)}function eE(e,t,n,r,i){var o,a,s,l;if(t.spanGaps&&(e=e.filter((function(e){return!e.skip}))),"monotone"===t.cubicInterpolationMode)!function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",o=KS(i),a=e.length,s=Array(a).fill(0),l=Array(a),u=GS(e,0);for(t=0;t<a;++t)if(n=r,r=u,u=GS(e,t+1),r){if(u){var c=u[i]-r[i];s[t]=0!==c?(u[o]-r[o])/c:0}l[t]=n?u?Qk(s[t-1])!==Qk(s[t])?0:(s[t-1]+s[t])/2:s[t-1]:s[t]}$S(e,s,l),XS(e,l,i)}(e,i);else{var u=r?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)l=QS(u,s=e[o],e[Math.min(o+1,a-(r?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,u=s}t.capBezierPoints&&function(e,t){var n,r,i,o,a,s=sS(e[0],t);for(n=0,r=e.length;n<r;++n)a=o,o=s,s=n<r-1&&sS(e[n+1],t),o&&(i=e[n],a&&(i.cp1x=JS(i.cp1x,t.left,t.right),i.cp1y=JS(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=JS(i.cp2x,t.left,t.right),i.cp2y=JS(i.cp2y,t.top,t.bottom)))}(e,n)}function tE(){return"undefined"!==typeof window&&"undefined"!==typeof document}function nE(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function rE(e,t,n){var r;return"string"===typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}var iE=function(e){return window.getComputedStyle(e,null)};var oE=["top","right","bottom","left"];function aE(e,t,n){var r={};n=n?"-"+n:"";for(var i=0;i<4;i++){var o=oE[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function sE(e,t){var n=t.canvas,r=t.currentDevicePixelRatio,i=iE(n),o="border-box"===i.boxSizing,a=aE(i,"padding"),s=aE(i,"border","width"),l=function(e,t){var n,r,i=e.native||e,o=i.touches,a=o&&o.length?o[0]:i,s=a.offsetX,l=a.offsetY,u=!1;if(function(e,t,n){return(e>0||t>0)&&(!n||!n.shadowRoot)}(s,l,i.target))n=s,r=l;else{var c=t.getBoundingClientRect();n=a.clientX-c.left,r=a.clientY-c.top,u=!0}return{x:n,y:r,box:u}}(e,n),u=l.x,c=l.y,f=l.box,d=a.left+(f&&s.left),h=a.top+(f&&s.top),p=t.width,v=t.height;return o&&(p-=a.width+s.width,v-=a.height+s.height),{x:Math.round((u-d)/p*n.width/r),y:Math.round((c-h)/v*n.height/r)}}var lE=function(e){return Math.round(10*e)/10};function uE(e,t,n,r){var i=iE(e),o=aE(i,"margin"),a=rE(i.maxWidth,e,"clientWidth")||Wk,s=rE(i.maxHeight,e,"clientHeight")||Wk,l=function(e,t,n){var r,i;if(void 0===t||void 0===n){var o=nE(e);if(o){var a=o.getBoundingClientRect(),s=iE(o),l=aE(s,"border","width"),u=aE(s,"padding");t=a.width-u.width-l.width,n=a.height-u.height-l.height,r=rE(s.maxWidth,o,"clientWidth"),i=rE(s.maxHeight,o,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||Wk,maxHeight:i||Wk}}(e,t,n),u=l.width,c=l.height;if("content-box"===i.boxSizing){var f=aE(i,"border","width"),d=aE(i,"padding");u-=d.width+f.width,c-=d.height+f.height}return u=Math.max(0,u-o.width),c=Math.max(0,r?Math.floor(u/r):c-o.height),u=lE(Math.min(u,a,l.maxWidth)),c=lE(Math.min(c,s,l.maxHeight)),u&&!c&&(c=lE(u/2)),{width:u,height:c}}function cE(e,t,n){var r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=i/r,e.width=o/r;var a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height="".concat(e.height,"px"),a.style.width="".concat(e.width,"px")),(e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o)&&(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0)}var fE=function(){var e=!1;try{var t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(BA){}return e}();function dE(e,t){var n=function(e,t){return iE(e).getPropertyValue(t)}(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function hE(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function pE(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function vE(e,t,n,r){var i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=hE(e,i,n),s=hE(i,o,n),l=hE(o,t,n),u=hE(a,s,n),c=hE(s,l,n);return hE(u,c,n)}var mE=new Map;function gE(e,t,n){return function(e,t){t=t||{};var n=e+JSON.stringify(t),r=mE.get(n);return r||(r=new Intl.NumberFormat(e,t),mE.set(n,r)),r}(t,n).format(e)}function yE(e,t,n){return e?function(e,t){return{x:function(n){return e+e+t-n},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}}(t,n):{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}}function bE(e,t){var n,r;"ltr"!==t&&"rtl"!==t||(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function _E(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function xE(e){return"angle"===e?{between:lC,compare:aC,normalize:sC}:{between:cC,compare:function(e,t){return e-t},normalize:function(e){return e}}}function wE(e){var t=e.start,n=e.end,r=e.count;return{start:t%r,end:n%r,loop:e.loop&&(n-t+1)%r===0,style:e.style}}function kE(e,t,n){if(!n)return[e];for(var r,i,o,a=n.property,s=n.start,l=n.end,u=t.length,c=xE(a),f=c.compare,d=c.between,h=c.normalize,p=function(e,t,n){var r,i,o=n.property,a=n.start,s=n.end,l=xE(o),u=l.between,c=l.normalize,f=t.length,d=e.start,h=e.end,p=e.loop;if(p){for(d+=f,h+=f,r=0,i=f;r<i&&u(c(t[d%f][o]),a,s);++r)d--,h--;d%=f,h%=f}return h<d&&(h+=f),{start:d,end:h,loop:p,style:e.style}}(e,t,n),v=p.start,m=p.end,g=p.loop,y=p.style,b=[],_=!1,x=null,w=function(){return _||d(s,o,r)&&0!==f(s,o)},k=function(){return!_||0===f(l,r)||d(l,o,r)},C=v,S=v;C<=m;++C)(i=t[C%u]).skip||(r=h(i[a]))!==o&&(_=d(r,s,l),null===x&&w()&&(x=0===f(r,s)?C:S),null!==x&&k()&&(b.push(wE({start:x,end:C,loop:g,count:u,style:y})),x=null),S=C,o=r);return null!==x&&b.push(wE({start:x,end:m,loop:g,count:u,style:y})),b}function CE(e,t){for(var n=[],r=e.segments,i=0;i<r.length;i++){var o=kE(r[i],e.points,t);o.length&&n.push.apply(n,g(o))}return n}function SE(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){var i=e._chart.getContext(),o=EE(e.options),a=e._datasetIndex,s=e.options.spanGaps,l=n.length,u=[],c=o,f=t[0].start,d=f;function h(e,t,r,i){var o=s?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=o;for(;n[t%l].skip;)t+=o;e%l!==t%l&&(u.push({start:e%l,end:t%l,loop:r,style:i}),c=i,f=t%l)}}var p,v=dk(t);try{for(v.s();!(p=v.n()).done;){var m=p.value;f=s?f:m.start;var g=n[f%l],y=void 0;for(d=f+1;d<=m.end;d++){var b=n[d%l];TE(y=EE(r.setContext(ES(i,{type:"segment",p0:g,p1:b,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:a}))),c)&&h(f,d-1,m.loop,c),g=b,c=y}f<d-1&&h(f,d-1,m.loop,c)}}catch(_){v.e(_)}finally{v.f()}return u}(e,t,n,r):t}function EE(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function TE(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}var ME=function(){function e(){Ht(this,e),this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}return Vt(e,[{key:"_notify",value:function(e,t,n,r){var i=t.listeners[r],o=t.duration;i.forEach((function(r){return r({chart:e,initial:t.initial,numSteps:o,currentStep:Math.min(n-t.start,o)})}))}},{key:"_refresh",value:function(){var e=this;this._request||(this._running=!0,this._request=hk.call(window,(function(){e._update(),e._request=null,e._running&&e._refresh()})))}},{key:"_update",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),n=0;this._charts.forEach((function(r,i){if(r.running&&r.items.length){for(var o,a=r.items,s=a.length-1,l=!1;s>=0;--s)(o=a[s])._active?(o._total>r.duration&&(r.duration=o._total),o.tick(t),l=!0):(a[s]=a[a.length-1],a.pop());l&&(i.draw(),e._notify(i,r,t,"progress")),a.length||(r.running=!1,e._notify(i,r,t,"complete"),r.initial=!1),n+=a.length}})),this._lastDate=t,0===n&&(this._running=!1)}},{key:"_getAnims",value:function(e){var t=this._charts,n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}},{key:"listen",value:function(e,t,n){this._getAnims(e).listeners[t].push(n)}},{key:"add",value:function(e,t){var n;t&&t.length&&(n=this._getAnims(e).items).push.apply(n,g(t))}},{key:"has",value:function(e){return this._getAnims(e).items.length>0}},{key:"start",value:function(e){var t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((function(e,t){return Math.max(e,t._duration)}),0),this._refresh())}},{key:"running",value:function(e){if(!this._running)return!1;var t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}},{key:"stop",value:function(e){var t=this._charts.get(e);if(t&&t.items.length){for(var n=t.items,r=n.length-1;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}}},{key:"remove",value:function(e){return this._charts.delete(e)}}]),e}(),OE=new ME,jE="transparent",PE={boolean:function(e,t,n){return n>.5?t:e},color:function(e,t,n){var r=GC(e||jE),i=r.valid&&GC(t||jE);return i&&i.valid?i.mix(r,n).hexString():t},number:function(e,t,n){return e+(t-e)*n}},NE=function(){function e(t,n,r,i){Ht(this,e);var o=n[r];i=SS([t.to,i,o,t.from]);var a=SS([t.from,o,i]);this._active=!0,this._fn=t.fn||PE[t.type||typeof a],this._easing=pC[t.easing]||pC.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}return Vt(e,[{key:"active",value:function(){return this._active}},{key:"update",value:function(e,t,n){if(this._active){this._notify(!1);var r=this._target[this._prop],i=n-this._start,o=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=SS([e.to,t,r,e.from]),this._from=SS([e.from,r,t])}}},{key:"cancel",value:function(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}},{key:"tick",value:function(e){var t,n=e-this._start,r=this._duration,i=this._prop,o=this._from,a=this._loop,s=this._to;if(this._active=o!==s&&(a||n<r),!this._active)return this._target[i]=s,void this._notify(!0);n<0?this._target[i]=o:(t=n/r%2,t=a&&t>1?2-t:t,t=this._easing(Math.min(1,Math.max(0,t))),this._target[i]=this._fn(o,s,t))}},{key:"wait",value:function(){var e=this._promises||(this._promises=[]);return new Promise((function(t,n){e.push({res:t,rej:n})}))}},{key:"_notify",value:function(e){for(var t=e?"res":"rej",n=this._promises||[],r=0;r<n.length;r++)n[r][t]()}}]),e}();tS.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});var DE=Object.keys(tS.animation);tS.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:function(e){return"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}}),tS.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),tS.describe("animations",{_fallback:"animation"}),tS.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:function(e){return 0|e}}}}});var LE=function(){function e(t,n){Ht(this,e),this._chart=t,this._properties=new Map,this.configure(n)}return Vt(e,[{key:"configure",value:function(e){if(xk(e)){var t=this._properties;Object.getOwnPropertyNames(e).forEach((function(n){var r=e[n];if(xk(r)){var i,o={},a=dk(DE);try{for(a.s();!(i=a.n()).done;){var s=i.value;o[s]=r[s]}}catch(l){a.e(l)}finally{a.f()}(_k(r.properties)&&r.properties||[n]).forEach((function(e){e!==n&&t.has(e)||t.set(e,o)}))}}))}}},{key:"_animateOptions",value:function(e,t){var n=t.options,r=function(e,t){if(!t)return;var n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!r)return[];var i=this._createAnimations(r,n);return n.$shared&&function(e,t){for(var n=[],r=Object.keys(t),i=0;i<r.length;i++){var o=e[r[i]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}(e.options.$animations,n).then((function(){e.options=n}),(function(){})),i}},{key:"_createAnimations",value:function(e,t){var n,r=this._properties,i=[],o=e.$animations||(e.$animations={}),a=Object.keys(t),s=Date.now();for(n=a.length-1;n>=0;--n){var l=a[n];if("$"!==l.charAt(0))if("options"!==l){var u=t[l],c=o[l],f=r.get(l);if(c){if(f&&c.active()){c.update(f,u,s);continue}c.cancel()}f&&f.duration?(o[l]=c=new NE(f,e,l,u),i.push(c)):e[l]=u}else i.push.apply(i,g(this._animateOptions(e,t)))}return i}},{key:"update",value:function(e,t){if(0!==this._properties.size){var n=this._createAnimations(e,t);return n.length?(OE.add(this._chart,n),!0):void 0}Object.assign(e,t)}}]),e}();function RE(e,t){var n=e&&e.options||{},r=n.reverse,i=void 0===n.min?t:0,o=void 0===n.max?t:0;return{start:r?o:i,end:r?i:o}}function AE(e,t){var n,r,i=[],o=e._getSortedDatasetMetas(t);for(n=0,r=o.length;n<r;++n)i.push(o[n].index);return i}function IE(e,t,n){var r,i,o,a,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=e.keys,u="single"===s.mode;if(null!==t){for(r=0,i=l.length;r<i;++r){if((o=+l[r])===n){if(s.all)continue;break}a=e.values[o],wk(a)&&(u||0===t||Qk(t)===Qk(a))&&(t+=a)}return t}}function FE(e,t){var n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function zE(e,t,n){var r=e[t]||(e[t]={});return r[n]||(r[n]={})}function BE(e,t,n,r){var i,o=dk(t.getMatchingVisibleMetas(r).reverse());try{for(o.s();!(i=o.n()).done;){var a=i.value,s=e[a.index];if(n&&s>0||!n&&s<0)return a.index}}catch(l){o.e(l)}finally{o.f()}return null}function UE(e,t){for(var n,r=e.chart,i=e._cachedMeta,o=r._stacks||(r._stacks={}),a=i.iScale,s=i.vScale,l=i.index,u=a.axis,c=s.axis,f=function(e,t,n){return"".concat(e.id,".").concat(t.id,".").concat(n.stack||n.type)}(a,s,i),d=t.length,h=0;h<d;++h){var p=t[h],v=p[u],m=p[c];(n=(p._stacks||(p._stacks={}))[c]=zE(o,f,v))[l]=m,n._top=BE(n,s,!0,i.type),n._bottom=BE(n,s,!1,i.type)}}function VE(e,t){var n=e.scales;return Object.keys(n).filter((function(e){return n[e].axis===t})).shift()}function HE(e,t){var n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){var i,o=dk(t=t||e._parsed);try{for(o.s();!(i=o.n()).done;){var a=i.value._stacks;if(!a||void 0===a[r]||void 0===a[r][n])return;delete a[r][n]}}catch(s){o.e(s)}finally{o.f()}}}var WE=function(e){return"reset"===e||"none"===e},ZE=function(e,t){return t?e:Object.assign({},e)},YE=function(){function e(t,n){Ht(this,e),this.chart=t,this._ctx=t.ctx,this.index=n,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.$context=void 0,this._syncList=[],this.initialize()}return Vt(e,[{key:"initialize",value:function(){var e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=FE(e.vScale,e),this.addElements()}},{key:"updateIndex",value:function(e){this.index!==e&&HE(this._cachedMeta),this.index=e}},{key:"linkScales",value:function(){var e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=function(e,t,n,r){return"x"===e?t:"r"===e?r:n},i=t.xAxisID=Ck(n.xAxisID,VE(e,"x")),o=t.yAxisID=Ck(n.yAxisID,VE(e,"y")),a=t.rAxisID=Ck(n.rAxisID,VE(e,"r")),s=t.indexAxis,l=t.iAxisID=r(s,i,o,a),u=t.vAxisID=r(s,o,i,a);t.xScale=this.getScaleForId(i),t.yScale=this.getScaleForId(o),t.rScale=this.getScaleForId(a),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(u)}},{key:"getDataset",value:function(){return this.chart.data.datasets[this.index]}},{key:"getMeta",value:function(){return this.chart.getDatasetMeta(this.index)}},{key:"getScaleForId",value:function(e){return this.chart.scales[e]}},{key:"_getOtherScale",value:function(e){var t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}},{key:"reset",value:function(){this._update("reset")}},{key:"_destroy",value:function(){var e=this._cachedMeta;this._data&&PS(this._data,this),e._stacked&&HE(e)}},{key:"_dataCheck",value:function(){var e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(xk(t))this._data=function(e){var t,n,r,i=Object.keys(e),o=new Array(i.length);for(t=0,n=i.length;t<n;++t)r=i[t],o[t]={x:r,y:e[r]};return o}(t);else if(n!==t){if(n){PS(n,this);var r=this._cachedMeta;HE(r),r._parsed=[]}t&&Object.isExtensible(t)&&function(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),jS.forEach((function(t){var n="_onData"+Ik(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];var a=r.apply(this,i);return e._chartjs.listeners.forEach((function(e){"function"===typeof e[n]&&e[n].apply(e,i)})),a}})})))}(t,this),this._syncList=[],this._data=t}}},{key:"addElements",value:function(){var e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}},{key:"buildOrUpdateElements",value:function(e){var t=this._cachedMeta,n=this.getDataset(),r=!1;this._dataCheck();var i=t._stacked;t._stacked=FE(t.vScale,t),t.stack!==n.stack&&(r=!0,HE(t),t.stack=n.stack),this._resyncElements(e),(r||i!==t._stacked)&&UE(this,t._parsed)}},{key:"configure",value:function(){var e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}},{key:"parse",value:function(e,t){var n,r,i,o=this._cachedMeta,a=this._data,s=o.iScale,l=o._stacked,u=s.axis,c=0===e&&t===a.length||o._sorted,f=e>0&&o._parsed[e-1];if(!1===this._parsing)o._parsed=a,o._sorted=!0,i=a;else{i=_k(a[e])?this.parseArrayData(o,a,e,t):xk(a[e])?this.parseObjectData(o,a,e,t):this.parsePrimitiveData(o,a,e,t);for(n=0;n<t;++n)o._parsed[n+e]=r=i[n],c&&((null===r[u]||f&&r[u]<f[u])&&(c=!1),f=r);o._sorted=c}l&&UE(this,i)}},{key:"parsePrimitiveData",value:function(e,t,n,r){var i,o,a,s=e.iScale,l=e.vScale,u=s.axis,c=l.axis,f=s.getLabels(),d=s===l,h=new Array(r);for(i=0,o=r;i<o;++i){var p;a=i+n,h[i]=(He(p={},u,d||s.parse(f[a],a)),He(p,c,l.parse(t[a],a)),p)}return h}},{key:"parseArrayData",value:function(e,t,n,r){var i,o,a,s,l=e.xScale,u=e.yScale,c=new Array(r);for(i=0,o=r;i<o;++i)s=t[a=i+n],c[i]={x:l.parse(s[0],a),y:u.parse(s[1],a)};return c}},{key:"parseObjectData",value:function(e,t,n,r){var i,o,a,s,l=e.xScale,u=e.yScale,c=this._parsing,f=c.xAxisKey,d=void 0===f?"x":f,h=c.yAxisKey,p=void 0===h?"y":h,v=new Array(r);for(i=0,o=r;i<o;++i)s=t[a=i+n],v[i]={x:l.parse(Ak(s,d),a),y:u.parse(Ak(s,p),a)};return v}},{key:"getParsed",value:function(e){return this._cachedMeta._parsed[e]}},{key:"getDataElement",value:function(e){return this._cachedMeta.data[e]}},{key:"applyStack",value:function(e,t,n){var r=this.chart,i=this._cachedMeta,o=t[e.axis];return IE({keys:AE(r,!0),values:t._stacks[e.axis]},o,i.index,{mode:n})}},{key:"updateRangeFromParsed",value:function(e,t,n,r){var i=n[t.axis],o=null===i?NaN:i,a=r&&n._stacks[t.axis];r&&a&&(r.values=a,o=IE(r,i,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}},{key:"getMinMax",value:function(e,t){var n,r,i=this._cachedMeta,o=i._parsed,a=i._sorted&&e===i.iScale,s=o.length,l=this._getOtherScale(e),u=function(e,t,n){return e&&!t.hidden&&t._stacked&&{keys:AE(n,!0),values:null}}(t,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},f=function(e){var t=e.getUserBounds(),n=t.min,r=t.max,i=t.minDefined,o=t.maxDefined;return{min:i?n:Number.NEGATIVE_INFINITY,max:o?r:Number.POSITIVE_INFINITY}}(l),d=f.min,h=f.max;function p(){var t=(r=o[n])[l.axis];return!wk(r[e.axis])||d>t||h<t}for(n=0;n<s&&(p()||(this.updateRangeFromParsed(c,e,r,u),!a));++n);if(a)for(n=s-1;n>=0;--n)if(!p()){this.updateRangeFromParsed(c,e,r,u);break}return c}},{key:"getAllParsedValues",value:function(e){var t,n,r,i=this._cachedMeta._parsed,o=[];for(t=0,n=i.length;t<n;++t)r=i[t][e.axis],wk(r)&&o.push(r);return o}},{key:"getMaxOverflow",value:function(){return!1}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=t.iScale,r=t.vScale,i=this.getParsed(e);return{label:n?""+n.getLabelForValue(i[n.axis]):"",value:r?""+r.getLabelForValue(i[r.axis]):""}}},{key:"_update",value:function(e){var t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){var t,n,r,i;return xk(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:!1===e}}(Ck(this.options.clip,function(e,t,n){if(!1===n)return!1;var r=RE(e,n),i=RE(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}},{key:"update",value:function(e){}},{key:"draw",value:function(){var e,t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],o=n.chartArea,a=[],s=this._drawStart||0,l=this._drawCount||i.length-s,u=this.options.drawActiveElementsOnTop;for(r.dataset&&r.dataset.draw(t,o,s,l),e=s;e<s+l;++e){var c=i[e];c.hidden||(c.active&&u?a.push(c):c.draw(t,o))}for(e=0;e<a.length;++e)a[e].draw(t,o)}},{key:"getStyle",value:function(e,t){var n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}},{key:"getContext",value:function(e,t,n){var r,i=this.getDataset();if(e>=0&&e<this._cachedMeta.data.length){var o=this._cachedMeta.data[e];r=o.$context||(o.$context=function(e,t,n){return ES(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,o)),r.parsed=this.getParsed(e),r.raw=i.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=function(e,t){return ES(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!t,r.mode=n,r}},{key:"resolveDatasetElementOptions",value:function(e){return this._resolveElementOptions(this.datasetElementType.id,e)}},{key:"resolveDataElementOptions",value:function(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}},{key:"_resolveElementOptions",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2?arguments[2]:void 0,i="active"===n,o=this._cachedDataOpts,a=e+"-"+n,s=o[a],l=this.enableOptionSharing&&Fk(r);if(s)return ZE(s,l);var u=this.chart.config,c=u.datasetElementScopeKeys(this._type,e),f=i?["".concat(e,"Hover"),"hover",e,""]:[e,""],d=u.getOptionScopes(this.getDataset(),c),h=Object.keys(tS.elements[e]),p=function(){return t.getContext(r,i)},v=u.resolveNamedOptions(d,h,p,f);return v.$shared&&(v.$shared=l,o[a]=Object.freeze(ZE(v,l))),v}},{key:"_resolveAnimations",value:function(e,t,n){var r,i=this.chart,o=this._cachedDataOpts,a="animation-".concat(t),s=o[a];if(s)return s;if(!1!==i.options.animation){var l=this.chart.config,u=l.datasetAnimationScopeKeys(this._type,t),c=l.getOptionScopes(this.getDataset(),u);r=l.createResolver(c,this.getContext(e,n,t))}var f=new LE(i,r&&r.animations);return r&&r._cacheable&&(o[a]=Object.freeze(f)),f}},{key:"getSharedOptions",value:function(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}},{key:"includeOptions",value:function(e,t){return!t||WE(e)||this.chart._animationsDisabled}},{key:"updateElement",value:function(e,t,n,r){WE(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}},{key:"updateSharedOptions",value:function(e,t,n){e&&!WE(t)&&this._resolveAnimations(void 0,t).update(e,n)}},{key:"_setStyle",value:function(e,t,n,r){e.active=r;var i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}},{key:"removeHoverStyle",value:function(e,t,n){this._setStyle(e,n,"active",!1)}},{key:"setHoverStyle",value:function(e,t,n){this._setStyle(e,n,"active",!0)}},{key:"_removeDatasetHoverStyle",value:function(){var e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}},{key:"_setDatasetHoverStyle",value:function(){var e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}},{key:"_resyncElements",value:function(e){var t,n=this._data,r=this._cachedMeta.data,i=dk(this._syncList);try{for(i.s();!(t=i.n()).done;){var o=v(t.value,3),a=o[0],s=o[1],l=o[2];this[a](s,l)}}catch(d){i.e(d)}finally{i.f()}this._syncList=[];var u=r.length,c=n.length,f=Math.min(c,u);f&&this.parse(0,f),c>u?this._insertElements(u,c-u,e):c<u&&this._removeElements(c,u-c)}},{key:"_insertElements",value:function(e,t){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this._cachedMeta,o=i.data,a=e+t,s=function(e){for(e.length+=t,n=e.length-1;n>=a;n--)e[n]=e[n-t]};for(s(o),n=e;n<a;++n)o[n]=new this.dataElementType;this._parsing&&s(i._parsed),this.parse(e,t),r&&this.updateElements(o,e,t,"reset")}},{key:"updateElements",value:function(e,t,n,r){}},{key:"_removeElements",value:function(e,t){var n=this._cachedMeta;if(this._parsing){var r=n._parsed.splice(e,t);n._stacked&&HE(n,r)}n.data.splice(e,t)}},{key:"_sync",value:function(e){if(this._parsing)this._syncList.push(e);else{var t=v(e,3),n=t[0],r=t[1],i=t[2];this[n](r,i)}this.chart._dataChanges.push([this.index].concat(g(e)))}},{key:"_onDataPush",value:function(){var e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}},{key:"_onDataPop",value:function(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}},{key:"_onDataShift",value:function(){this._sync(["_removeElements",0,1])}},{key:"_onDataSplice",value:function(e,t){t&&this._sync(["_removeElements",e,t]);var n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}},{key:"_onDataUnshift",value:function(){this._sync(["_insertElements",0,arguments.length])}}]),e}();function qE(e){var t,n,r,i,o=e.iScale,a=function(e,t){if(!e._cache.$bar){for(var n=e.getMatchingVisibleMetas(t),r=[],i=0,o=n.length;i<o;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=NS(r.sort((function(e,t){return e-t})))}return e._cache.$bar}(o,e.type),s=o._length,l=function(){32767!==r&&-32768!==r&&(Fk(i)&&(s=Math.min(s,Math.abs(r-i)||s)),i=r)};for(t=0,n=a.length;t<n;++t)r=o.getPixelForValue(a[t]),l();for(i=void 0,t=0,n=o.ticks.length;t<n;++t)r=o.getPixelForTick(t),l();return s}function GE(e,t,n,r){return _k(e)?function(e,t,n,r){var i=n.parse(e[0],r),o=n.parse(e[1],r),a=Math.min(i,o),s=Math.max(i,o),l=a,u=s;Math.abs(a)>Math.abs(s)&&(l=s,u=a),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:i,end:o,min:a,max:s}}(e,t,n,r):t[n.axis]=n.parse(e,r),t}function KE(e,t,n,r){var i,o,a,s,l=e.iScale,u=e.vScale,c=l.getLabels(),f=l===u,d=[];for(i=n,o=n+r;i<o;++i)s=t[i],(a={})[l.axis]=f||l.parse(c[i],i),d.push(GE(s,a,u,i));return d}function QE(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function $E(e,t,n,r){var i=t.borderSkipped,o={};if(i){var a=function(e){var t,n,r,i,o;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",o="start"):(i="start",o="end"),{start:n,end:r,reverse:t,top:i,bottom:o}}(e),s=a.start,l=a.end,u=a.reverse,c=a.top,f=a.bottom;"middle"===i&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=f:(o[XE(f,s,l,u)]=!0,i=c)),o[XE(i,s,l,u)]=!0,e.borderSkipped=o}else e.borderSkipped=o}function XE(e,t,n,r){var i,o,a;return r?(a=n,e=JE(e=(i=e)===(o=t)?a:i===a?o:i,n,t)):e=JE(e,t,n),e}function JE(e,t,n){return"start"===e?t:"end"===e?n:e}function eT(e,t,n){var r=t.inflateAmount;e.inflateAmount="auto"===r?1===n?.33:0:r}YE.defaults={},YE.prototype.datasetElementType=null,YE.prototype.dataElementType=null;var tT=function(e){Fs(n,e);var t=Vs(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Vt(n,[{key:"parsePrimitiveData",value:function(e,t,n,r){return KE(e,t,n,r)}},{key:"parseArrayData",value:function(e,t,n,r){return KE(e,t,n,r)}},{key:"parseObjectData",value:function(e,t,n,r){var i,o,a,s,l=e.iScale,u=e.vScale,c=this._parsing,f=c.xAxisKey,d=void 0===f?"x":f,h=c.yAxisKey,p=void 0===h?"y":h,v="x"===l.axis?d:p,m="x"===u.axis?d:p,g=[];for(i=n,o=n+r;i<o;++i)s=t[i],(a={})[l.axis]=l.parse(Ak(s,v),i),g.push(GE(Ak(s,m),a,u,i));return g}},{key:"updateRangeFromParsed",value:function(e,t,r,i){fk(zs(n.prototype),"updateRangeFromParsed",this).call(this,e,t,r,i);var o=r._custom;o&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,o.min),e.max=Math.max(e.max,o.max))}},{key:"getMaxOverflow",value:function(){return 0}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=t.iScale,r=t.vScale,i=this.getParsed(e),o=i._custom,a=QE(o)?"["+o.start+", "+o.end+"]":""+r.getLabelForValue(i[r.axis]);return{label:""+n.getLabelForValue(i[n.axis]),value:a}}},{key:"initialize",value:function(){this.enableOptionSharing=!0,fk(zs(n.prototype),"initialize",this).call(this),this._cachedMeta.stack=this.getDataset().stack}},{key:"update",value:function(e){var t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}},{key:"updateElements",value:function(e,t,n,r){var i="reset"===r,o=this.index,a=this._cachedMeta.vScale,s=a.getBasePixel(),l=a.isHorizontal(),u=this._getRuler(),c=this.resolveDataElementOptions(t,r),f=this.getSharedOptions(c),d=this.includeOptions(r,f);this.updateSharedOptions(f,r,c);for(var h=t;h<t+n;h++){var p=this.getParsed(h),v=i||bk(p[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(h),m=this._calculateBarIndexPixels(h,u),g=(p._stacks||{})[a.axis],y={horizontal:l,base:v.base,enableBorderRadius:!g||QE(p._custom)||o===g._top||o===g._bottom,x:l?v.head:m.center,y:l?m.center:v.head,height:l?m.size:Math.abs(v.size),width:l?Math.abs(v.size):m.size};d&&(y.options=f||this.resolveDataElementOptions(h,e[h].active?"active":r));var b=y.options||e[h].options;$E(y,b,g,o),eT(y,b,u.ratio),this.updateElement(e[h],h,y,r)}}},{key:"_getStacks",value:function(e,t){var n,r,i=this._cachedMeta.iScale,o=i.getMatchingVisibleMetas(this._type),a=i.options.stacked,s=o.length,l=[];for(n=0;n<s;++n)if((r=o[n]).controller.options.grouped){if("undefined"!==typeof t){var u=r.controller.getParsed(t)[r.controller._cachedMeta.vScale.axis];if(bk(u)||isNaN(u))continue}if((!1===a||-1===l.indexOf(r.stack)||void 0===a&&void 0===r.stack)&&l.push(r.stack),r.index===e)break}return l.length||l.push(void 0),l}},{key:"_getStackCount",value:function(e){return this._getStacks(void 0,e).length}},{key:"_getStackIndex",value:function(e,t,n){var r=this._getStacks(e,n),i=void 0!==t?r.indexOf(t):-1;return-1===i?r.length-1:i}},{key:"_getRuler",value:function(){var e,t,n=this.options,r=this._cachedMeta,i=r.iScale,o=[];for(e=0,t=r.data.length;e<t;++e)o.push(i.getPixelForValue(this.getParsed(e)[i.axis],e));var a=n.barThickness;return{min:a||qE(r),pixels:o,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:n.grouped,ratio:a?1:n.categoryPercentage*n.barPercentage}}},{key:"_calculateBarValuePixels",value:function(e){var t,n,r=this._cachedMeta,i=r.vScale,o=r._stacked,a=this.options,s=a.base,l=a.minBarLength,u=s||0,c=this.getParsed(e),f=c._custom,d=QE(f),h=c[i.axis],p=0,v=o?this.applyStack(i,c,o):h;v!==h&&(p=v-h,v=h),d&&(h=f.barStart,v=f.barEnd-f.barStart,0!==h&&Qk(h)!==Qk(f.barEnd)&&(p=0),p+=h);var m=bk(s)||d?p:s,g=i.getPixelForValue(m);if(n=(t=this.chart.getDataVisibility(e)?i.getPixelForValue(p+v):g)-g,Math.abs(n)<l&&(n=function(e,t,n){return 0!==e?Qk(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(n,i,u)*l,h===u&&(g-=n/2),t=g+n),g===i.getPixelForValue(u)){var y=Qk(n)*i.getLineWidthForValue(u)/2;g+=y,n-=y}return{size:n,base:g,head:t,center:t+n/2}}},{key:"_calculateBarIndexPixels",value:function(e,t){var n,r,i=t.scale,o=this.options,a=o.skipNull,s=Ck(o.maxBarThickness,1/0);if(t.grouped){var l=a?this._getStackCount(e):t.stackCount,u="flex"===o.barThickness?function(e,t,n,r){var i=t.pixels,o=i[e],a=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null,l=n.categoryPercentage;null===a&&(a=o-(null===s?t.end-t.start:s-o)),null===s&&(s=o+o-a);var u=o-(o-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/r,ratio:n.barPercentage,start:u}}(e,t,o,l):function(e,t,n,r){var i,o,a=n.barThickness;return bk(a)?(i=t.min*n.categoryPercentage,o=n.barPercentage):(i=a*r,o=1),{chunk:i/r,ratio:o,start:t.pixels[e]-i/2}}(e,t,o,l),c=this._getStackIndex(this.index,this._cachedMeta.stack,a?e:void 0);n=u.start+u.chunk*c+u.chunk/2,r=Math.min(s,u.chunk*u.ratio)}else n=i.getPixelForValue(this.getParsed(e)[i.axis],e),r=Math.min(s,t.min*t.ratio);return{base:n-r/2,head:n+r/2,center:n,size:r}}},{key:"draw",value:function(){for(var e=this._cachedMeta,t=e.vScale,n=e.data,r=n.length,i=0;i<r;++i)null!==this.getParsed(i)[t.axis]&&n[i].draw(this._ctx)}}]),n}(YE);tT.id="bar",tT.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},tT.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};var nT=function(e){Fs(n,e);var t=Vs(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Vt(n,[{key:"initialize",value:function(){this.enableOptionSharing=!0,fk(zs(n.prototype),"initialize",this).call(this)}},{key:"parsePrimitiveData",value:function(e,t,r,i){for(var o=fk(zs(n.prototype),"parsePrimitiveData",this).call(this,e,t,r,i),a=0;a<o.length;a++)o[a]._custom=this.resolveDataElementOptions(a+r).radius;return o}},{key:"parseArrayData",value:function(e,t,r,i){for(var o=fk(zs(n.prototype),"parseArrayData",this).call(this,e,t,r,i),a=0;a<o.length;a++){var s=t[r+a];o[a]._custom=Ck(s[2],this.resolveDataElementOptions(a+r).radius)}return o}},{key:"parseObjectData",value:function(e,t,r,i){for(var o=fk(zs(n.prototype),"parseObjectData",this).call(this,e,t,r,i),a=0;a<o.length;a++){var s=t[r+a];o[a]._custom=Ck(s&&s.r&&+s.r,this.resolveDataElementOptions(a+r).radius)}return o}},{key:"getMaxOverflow",value:function(){for(var e=this._cachedMeta.data,t=0,n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=t.xScale,r=t.yScale,i=this.getParsed(e),o=n.getLabelForValue(i.x),a=r.getLabelForValue(i.y),s=i._custom;return{label:t.label,value:"("+o+", "+a+(s?", "+s:"")+")"}}},{key:"update",value:function(e){var t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}},{key:"updateElements",value:function(e,t,n,r){for(var i="reset"===r,o=this._cachedMeta,a=o.iScale,s=o.vScale,l=this.resolveDataElementOptions(t,r),u=this.getSharedOptions(l),c=this.includeOptions(r,u),f=a.axis,d=s.axis,h=t;h<t+n;h++){var p=e[h],v=!i&&this.getParsed(h),m={},g=m[f]=i?a.getPixelForDecimal(.5):a.getPixelForValue(v[f]),y=m[d]=i?s.getBasePixel():s.getPixelForValue(v[d]);m.skip=isNaN(g)||isNaN(y),c&&(m.options=this.resolveDataElementOptions(h,p.active?"active":r),i&&(m.options.radius=0)),this.updateElement(p,h,m,r)}this.updateSharedOptions(u,r,l)}},{key:"resolveDataElementOptions",value:function(e,t){var r=this.getParsed(e),i=fk(zs(n.prototype),"resolveDataElementOptions",this).call(this,e,t);i.$shared&&(i=Object.assign({},i,{$shared:!1}));var o=i.radius;return"active"!==t&&(i.radius=0),i.radius+=Ck(r&&r._custom,o),i}}]),n}(YE);nT.id="bubble",nT.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},nT.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:function(){return""}}}}};var rT=function(e){Fs(n,e);var t=Vs(n);function n(e,r){var i;return Ht(this,n),(i=t.call(this,e,r)).enableOptionSharing=!0,i.innerRadius=void 0,i.outerRadius=void 0,i.offsetX=void 0,i.offsetY=void 0,i}return Vt(n,[{key:"linkScales",value:function(){}},{key:"parse",value:function(e,t){var n=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=n;else{var i,o,a=function(e){return+n[e]};if(xk(n[e])){var s=this._parsing.key,l=void 0===s?"value":s;a=function(e){return+Ak(n[e],l)}}for(i=e,o=e+t;i<o;++i)r._parsed[i]=a(i)}}},{key:"_getRotation",value:function(){return tC(this.options.rotation-90)}},{key:"_getCircumference",value:function(){return tC(this.options.circumference)}},{key:"_getRotationExtents",value:function(){for(var e=Vk,t=-Vk,n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){var r=this.chart.getDatasetMeta(n).controller,i=r._getRotation(),o=r._getCircumference();e=Math.min(e,i),t=Math.max(t,i+o)}return{rotation:e,circumference:t-e}}},{key:"update",value:function(e){var t=this.chart.chartArea,n=this._cachedMeta,r=n.data,i=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,o=Math.max((Math.min(t.width,t.height)-i)/2,0),a=Math.min(function(e,t){return"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100:e/t}(this.options.cutout,o),1),s=this._getRingWeight(this.index),l=this._getRotationExtents(),u=l.circumference,c=function(e,t,n){var r=1,i=1,o=0,a=0;if(t<Vk){var s=e,l=s+t,u=Math.cos(s),c=Math.sin(s),f=Math.cos(l),d=Math.sin(l),h=function(e,t,r){return lC(e,s,l,!0)?1:Math.max(t,t*n,r,r*n)},p=function(e,t,r){return lC(e,s,l,!0)?-1:Math.min(t,t*n,r,r*n)},v=h(0,u,f),m=h(Yk,c,d),g=p(Uk,u,f),y=p(Uk+Yk,c,d);r=(v-g)/2,i=(m-y)/2,o=-(v+g)/2,a=-(m+y)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:a}}(l.rotation,u,a),f=c.ratioX,d=c.ratioY,h=c.offsetX,p=c.offsetY,v=(t.width-i)/f,m=(t.height-i)/d,g=Math.max(Math.min(v,m)/2,0),y=Sk(this.options.radius,g),b=(y-Math.max(y*a,0))/this._getVisibleDatasetWeightTotal();this.offsetX=h*y,this.offsetY=p*y,n.total=this.calculateTotal(),this.outerRadius=y-b*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-b*s,0),this.updateElements(r,0,r.length,e)}},{key:"_circumference",value:function(e,t){var n=this.options,r=this._cachedMeta,i=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===r._parsed[e]||r.data[e].hidden?0:this.calculateCircumference(r._parsed[e]*i/Vk)}},{key:"updateElements",value:function(e,t,n,r){var i,o="reset"===r,a=this.chart,s=a.chartArea,l=a.options.animation,u=(s.left+s.right)/2,c=(s.top+s.bottom)/2,f=o&&l.animateScale,d=f?0:this.innerRadius,h=f?0:this.outerRadius,p=this.resolveDataElementOptions(t,r),v=this.getSharedOptions(p),m=this.includeOptions(r,v),g=this._getRotation();for(i=0;i<t;++i)g+=this._circumference(i,o);for(i=t;i<t+n;++i){var y=this._circumference(i,o),b=e[i],_={x:u+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+y,circumference:y,outerRadius:h,innerRadius:d};m&&(_.options=v||this.resolveDataElementOptions(i,b.active?"active":r)),g+=y,this.updateElement(b,i,_,r)}this.updateSharedOptions(v,r,p)}},{key:"calculateTotal",value:function(){var e,t=this._cachedMeta,n=t.data,r=0;for(e=0;e<n.length;e++){var i=t._parsed[e];null===i||isNaN(i)||!this.chart.getDataVisibility(e)||n[e].hidden||(r+=Math.abs(i))}return r}},{key:"calculateCircumference",value:function(e){var t=this._cachedMeta.total;return t>0&&!isNaN(e)?Vk*(Math.abs(e)/t):0}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=gE(t._parsed[e],n.options.locale);return{label:r[e]||"",value:i}}},{key:"getMaxBorderWidth",value:function(e){var t,n,r,i,o,a=0,s=this.chart;if(!e)for(t=0,n=s.data.datasets.length;t<n;++t)if(s.isDatasetVisible(t)){e=(r=s.getDatasetMeta(t)).data,i=r.controller;break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)"inner"!==(o=i.resolveDataElementOptions(t)).borderAlign&&(a=Math.max(a,o.borderWidth||0,o.hoverBorderWidth||0));return a}},{key:"getMaxOffset",value:function(e){for(var t=0,n=0,r=e.length;n<r;++n){var i=this.resolveDataElementOptions(n);t=Math.max(t,i.offset||0,i.hoverOffset||0)}return t}},{key:"_getRingWeightOffset",value:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}},{key:"_getRingWeight",value:function(e){return Math.max(Ck(this.chart.data.datasets[e].weight,1),0)}},{key:"_getVisibleDatasetWeightTotal",value:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}]),n}(YE);rT.id="doughnut",rT.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"},rT.descriptors={_scriptable:function(e){return"spacing"!==e},_indexable:function(e){return"spacing"!==e}},rT.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels:function(e){var t=e.data;if(t.labels.length&&t.datasets.length){var n=e.legend.options.labels.pointStyle;return t.labels.map((function(t,r){var i=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick:function(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:function(){return""},label:function(e){var t=e.label,n=": "+e.formattedValue;return _k(t)?(t=t.slice())[0]+=n:t+=n,t}}}}};var iT=function(e){Fs(n,e);var t=Vs(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Vt(n,[{key:"initialize",value:function(){this.enableOptionSharing=!0,fk(zs(n.prototype),"initialize",this).call(this)}},{key:"update",value:function(e){var t=this._cachedMeta,n=t.dataset,r=t.data,i=void 0===r?[]:r,o=t._dataset,a=this.chart._animationsDisabled,s=function(e,t,n){var r=t.length,i=0,o=r;if(e._sorted){var a=e.iScale,s=e._parsed,l=a.axis,u=a.getUserBounds(),c=u.min,f=u.max,d=u.minDefined,h=u.maxDefined;d&&(i=uC(Math.min(MS(s,a.axis,c).lo,n?r:MS(t,l,a.getPixelForValue(c)).lo),0,r-1)),o=h?uC(Math.max(MS(s,a.axis,f).hi+1,n?0:MS(t,l,a.getPixelForValue(f)).hi+1),i,r)-i:r-i}return{start:i,count:o}}(t,i,a),l=s.start,u=s.count;this._drawStart=l,this._drawCount=u,function(e){var t=e.xScale,n=e.yScale,r=e._scaleRanges,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;var o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}(t)&&(l=0,u=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;var c=this.resolveDatasetElementOptions(e);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:c},e),this.updateElements(i,l,u,e)}},{key:"updateElements",value:function(e,t,n,r){for(var i="reset"===r,o=this._cachedMeta,a=o.iScale,s=o.vScale,l=o._stacked,u=o._dataset,c=this.resolveDataElementOptions(t,r),f=this.getSharedOptions(c),d=this.includeOptions(r,f),h=a.axis,p=s.axis,v=this.options,m=v.spanGaps,g=v.segment,y=Xk(m)?m:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||i||"none"===r,_=t>0&&this.getParsed(t-1),x=t;x<t+n;++x){var w=e[x],k=this.getParsed(x),C=b?w:{},S=bk(k[p]),E=C[h]=a.getPixelForValue(k[h],x),T=C[p]=i||S?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,k,l):k[p],x);C.skip=isNaN(E)||isNaN(T)||S,C.stop=x>0&&k[h]-_[h]>y,g&&(C.parsed=k,C.raw=u.data[x]),d&&(C.options=f||this.resolveDataElementOptions(x,w.active?"active":r)),b||this.updateElement(w,x,C,r),_=k}this.updateSharedOptions(f,r,c)}},{key:"getMaxOverflow",value:function(){var e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;var i=r[0].size(this.resolveDataElementOptions(0)),o=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,o)/2}},{key:"draw",value:function(){var e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),fk(zs(n.prototype),"draw",this).call(this)}}]),n}(YE);iT.id="line",iT.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},iT.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};var oT=function(e){Fs(n,e);var t=Vs(n);function n(e,r){var i;return Ht(this,n),(i=t.call(this,e,r)).innerRadius=void 0,i.outerRadius=void 0,i}return Vt(n,[{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=gE(t._parsed[e].r,n.options.locale);return{label:r[e]||"",value:i}}},{key:"update",value:function(e){var t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}},{key:"_updateRadius",value:function(){var e=this.chart,t=e.chartArea,n=e.options,r=Math.min(t.right-t.left,t.bottom-t.top),i=Math.max(r/2,0),o=(i-Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=i-o*this.index,this.innerRadius=this.outerRadius-o}},{key:"updateElements",value:function(e,t,n,r){var i,o="reset"===r,a=this.chart,s=this.getDataset(),l=a.options.animation,u=this._cachedMeta.rScale,c=u.xCenter,f=u.yCenter,d=u.getIndexAngle(0)-.5*Uk,h=d,p=360/this.countVisibleElements();for(i=0;i<t;++i)h+=this._computeAngle(i,r,p);for(i=t;i<t+n;i++){var v=e[i],m=h,g=h+this._computeAngle(i,r,p),y=a.getDataVisibility(i)?u.getDistanceFromCenterForValue(s.data[i]):0;h=g,o&&(l.animateScale&&(y=0),l.animateRotate&&(m=g=d));var b={x:c,y:f,innerRadius:0,outerRadius:y,startAngle:m,endAngle:g,options:this.resolveDataElementOptions(i,v.active?"active":r)};this.updateElement(v,i,b,r)}}},{key:"countVisibleElements",value:function(){var e=this,t=this.getDataset(),n=this._cachedMeta,r=0;return n.data.forEach((function(n,i){!isNaN(t.data[i])&&e.chart.getDataVisibility(i)&&r++})),r}},{key:"_computeAngle",value:function(e,t,n){return this.chart.getDataVisibility(e)?tC(this.resolveDataElementOptions(e,t).angle||n):0}}]),n}(YE);oT.id="polarArea",oT.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},oT.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels:function(e){var t=e.data;if(t.labels.length&&t.datasets.length){var n=e.legend.options.labels.pointStyle;return t.labels.map((function(t,r){var i=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick:function(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:function(){return""},label:function(e){return e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};var aT=function(e){Fs(n,e);var t=Vs(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Vt(n)}(rT);aT.id="pie",aT.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};var sT=function(e){Fs(n,e);var t=Vs(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Vt(n,[{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}},{key:"update",value:function(e){var t=this._cachedMeta,n=t.dataset,r=t.data||[],i=t.iScale.getLabels();if(n.points=r,"resize"!==e){var o=this.resolveDatasetElementOptions(e);this.options.showLine||(o.borderWidth=0);var a={_loop:!0,_fullLoop:i.length===r.length,options:o};this.updateElement(n,void 0,a,e)}this.updateElements(r,0,r.length,e)}},{key:"updateElements",value:function(e,t,n,r){for(var i=this.getDataset(),o=this._cachedMeta.rScale,a="reset"===r,s=t;s<t+n;s++){var l=e[s],u=this.resolveDataElementOptions(s,l.active?"active":r),c=o.getPointPositionForValue(s,i.data[s]),f=a?o.xCenter:c.x,d=a?o.yCenter:c.y,h={x:f,y:d,angle:c.angle,skip:isNaN(f)||isNaN(d),options:u};this.updateElement(l,s,h,r)}}}]),n}(YE);sT.id="radar",sT.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},sT.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};var lT=function(e){Fs(n,e);var t=Vs(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Vt(n)}(iT);lT.id="scatter",lT.defaults={showLine:!1,fill:!1},lT.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:function(){return""},label:function(e){return"("+e.label+", "+e.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var uT=Object.freeze({__proto__:null,BarController:tT,BubbleController:nT,DoughnutController:rT,LineController:iT,PolarAreaController:oT,PieController:aT,RadarController:sT,ScatterController:lT});function cT(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var fT=function(){function e(t){Ht(this,e),this.options=t||{}}return Vt(e,[{key:"formats",value:function(){return cT()}},{key:"parse",value:function(e,t){return cT()}},{key:"format",value:function(e,t){return cT()}},{key:"add",value:function(e,t,n){return cT()}},{key:"diff",value:function(e,t,n){return cT()}},{key:"startOf",value:function(e,t,n){return cT()}},{key:"endOf",value:function(e,t){return cT()}}]),e}();fT.override=function(e){Object.assign(fT.prototype,e)};var dT={_date:fT};function hT(e,t){return"native"in e?{x:e.x,y:e.y}:sE(e,t)}function pT(e,t,n,r){var i=e.controller,o=e.data,a=e._sorted,s=i._cachedMeta.iScale;if(s&&t===s.axis&&"r"!==t&&a&&o.length){var l=s._reversePixels?OS:MS;if(!r)return l(o,t,n);if(i._sharedOptions){var u=o[0],c="function"===typeof u.getRange&&u.getRange(t);if(c){var f=l(o,t,n-c),d=l(o,t,n+c);return{lo:f.lo,hi:d.hi}}}}return{lo:0,hi:o.length-1}}function vT(e,t,n,r,i){for(var o=e.getSortedVisibleDatasetMetas(),a=n[t],s=0,l=o.length;s<l;++s)for(var u=o[s],c=u.index,f=u.data,d=pT(o[s],t,a,i),h=d.lo,p=d.hi,v=h;v<=p;++v){var m=f[v];m.skip||r(m,c,v)}}function mT(e,t,n,r){var i=[];if(!sS(t,e.chartArea,e._minPadding))return i;return vT(e,n,t,(function(e,n,o){e.inRange(t.x,t.y,r)&&i.push({element:e,datasetIndex:n,index:o})}),!0),i}function gT(e,t,n,r,i){var o=[],a=function(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){var i=t?Math.abs(e.x-r.x):0,o=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))}}(n),s=Number.POSITIVE_INFINITY;return vT(e,n,t,(function(n,l,u){var c=n.inRange(t.x,t.y,i);if(!r||c){var f=n.getCenterPoint(i);if(sS(f,e.chartArea,e._minPadding)||c){var d=a(t,f);d<s?(o=[{element:n,datasetIndex:l,index:u}],s=d):d===s&&o.push({element:n,datasetIndex:l,index:u})}}})),o}function yT(e,t,n,r,i){return sS(t,e.chartArea,e._minPadding)?"r"!==n||r?gT(e,t,n,r,i):function(e,t,n,r){var i=[];return vT(e,n,t,(function(e,n,o){var a=e.getProps(["startAngle","endAngle"],r),s=a.startAngle,l=a.endAngle;lC(iC(e,{x:t.x,y:t.y}).angle,s,l)&&i.push({element:e,datasetIndex:n,index:o})})),i}(e,t,n,i):[]}function bT(e,t,n,r){var i=hT(t,e),o=[],a=n.axis,s="x"===a?"inXRange":"inYRange",l=!1;return function(e,t){for(var n,r,i,o=e.getSortedVisibleDatasetMetas(),a=0,s=o.length;a<s;++a){var l=o[a];n=l.index;for(var u=0,c=(r=l.data).length;u<c;++u)(i=r[u]).skip||t(i,n,u)}}(e,(function(e,t,n){e[s](i[a],r)&&o.push({element:e,datasetIndex:t,index:n}),e.inRange(i.x,i.y,r)&&(l=!0)})),n.intersect&&!l?[]:o}var _T={modes:{index:function(e,t,n,r){var i=hT(t,e),o=n.axis||"x",a=n.intersect?mT(e,i,o,r):yT(e,i,o,!1,r),s=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach((function(e){var t=a[0].index,n=e.data[t];n&&!n.skip&&s.push({element:n,datasetIndex:e.index,index:t})})),s):[]},dataset:function(e,t,n,r){var i=hT(t,e),o=n.axis||"xy",a=n.intersect?mT(e,i,o,r):yT(e,i,o,!1,r);if(a.length>0){var s=a[0].datasetIndex,l=e.getDatasetMeta(s).data;a=[];for(var u=0;u<l.length;++u)a.push({element:l[u],datasetIndex:s,index:u})}return a},point:function(e,t,n,r){return mT(e,hT(t,e),n.axis||"xy",r)},nearest:function(e,t,n,r){return yT(e,hT(t,e),n.axis||"xy",n.intersect,r)},x:function(e,t,n,r){return bT(e,t,{axis:"x",intersect:n.intersect},r)},y:function(e,t,n,r){return bT(e,t,{axis:"y",intersect:n.intersect},r)}}},xT=["left","top","right","bottom"];function wT(e,t){return e.filter((function(e){return e.pos===t}))}function kT(e,t){return e.filter((function(e){return-1===xT.indexOf(e.pos)&&e.box.axis===t}))}function CT(e,t){return e.sort((function(e,n){var r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight}))}function ST(e,t){var n,r,i,o=function(e){var t,n={},r=dk(e);try{for(r.s();!(t=r.n()).done;){var i=t.value,o=i.stack,a=i.pos,s=i.stackWeight;if(o&&xT.includes(a)){var l=n[o]||(n[o]={count:0,placed:0,weight:0,size:0});l.count++,l.weight+=s}}}catch(u){r.e(u)}finally{r.f()}return n}(e),a=t.vBoxMaxWidth,s=t.hBoxMaxHeight;for(n=0,r=e.length;n<r;++n){var l=(i=e[n]).box.fullSize,u=o[i.stack],c=u&&i.stackWeight/u.weight;i.horizontal?(i.width=c?c*a:l&&t.availableWidth,i.height=s):(i.width=a,i.height=c?c*s:l&&t.availableHeight)}return o}function ET(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function TT(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function MT(e,t,n,r){var i=n.pos,o=n.box,a=e.maxPadding;if(!xk(i)){n.size&&(e[i]-=n.size);var s=r[n.stack]||{size:0,count:1};s.size=Math.max(s.size,n.horizontal?o.height:o.width),n.size=s.size/s.count,e[i]+=n.size}o.getPadding&&TT(a,o.getPadding());var l=Math.max(0,t.outerWidth-ET(a,e,"left","right")),u=Math.max(0,t.outerHeight-ET(a,e,"top","bottom")),c=l!==e.w,f=u!==e.h;return e.w=l,e.h=u,n.horizontal?{same:c,other:f}:{same:f,other:c}}function OT(e,t){var n=t.maxPadding;function r(e){var r={left:0,top:0,right:0,bottom:0};return e.forEach((function(e){r[e]=Math.max(t[e],n[e])})),r}return r(e?["left","right"]:["top","bottom"])}function jT(e,t,n,r){var i,o,a,s,l,u,c=[];for(i=0,o=e.length,l=0;i<o;++i){(s=(a=e[i]).box).update(a.width||t.w,a.height||t.h,OT(a.horizontal,t));var f=MT(t,n,a,r),d=f.same,h=f.other;l|=d&&c.length,u=u||h,s.fullSize||c.push(a)}return l&&jT(c,t,n,r)||u}function PT(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function NT(e,t,n,r){var i,o=n.padding,a=t.x,s=t.y,l=dk(e);try{for(l.s();!(i=l.n()).done;){var u=i.value,c=u.box,f=r[u.stack]||{count:1,placed:0,weight:1},d=u.stackWeight/f.weight||1;if(u.horizontal){var h=t.w*d,p=f.size||c.height;Fk(f.start)&&(s=f.start),c.fullSize?PT(c,o.left,s,n.outerWidth-o.right-o.left,p):PT(c,t.left+f.placed,s,h,p),f.start=s,f.placed+=h,s=c.bottom}else{var v=t.h*d,m=f.size||c.width;Fk(f.start)&&(a=f.start),c.fullSize?PT(c,a,o.top,m,n.outerHeight-o.bottom-o.top):PT(c,a,t.top+f.placed,m,v),f.start=a,f.placed+=v,a=c.right}}}catch(g){l.e(g)}finally{l.f()}t.x=a,t.y=s}tS.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var DT=function(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(e){t.draw(e)}}]},e.boxes.push(t)},LT=function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},RT=function(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},AT=function(e,t,n,r){if(e){var i=kS(e.options.layout.padding),o=Math.max(t-i.width,0),a=Math.max(n-i.height,0),s=function(e){var t=function(e){var t,n,r,i,o,a,s=[];for(t=0,n=(e||[]).length;t<n;++t){var l=r=e[t];i=l.position;var u=l.options;o=u.stack;var c=u.stackWeight;a=void 0===c?1:c,s.push({index:t,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:o&&i+o,stackWeight:a})}return s}(e),n=CT(t.filter((function(e){return e.box.fullSize})),!0),r=CT(wT(t,"left"),!0),i=CT(wT(t,"right")),o=CT(wT(t,"top"),!0),a=CT(wT(t,"bottom")),s=kT(t,"x"),l=kT(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:wT(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}(e.boxes),l=s.vertical,u=s.horizontal;Tk(e.boxes,(function(e){"function"===typeof e.beforeLayout&&e.beforeLayout()}));var c=l.reduce((function(e,t){return t.box.options&&!1===t.box.options.display?e:e+1}),0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/c,hBoxMaxHeight:a/2}),d=Object.assign({},i);TT(d,kS(r));var h=Object.assign({maxPadding:d,w:o,h:a,x:i.left,y:i.top},i),p=ST(l.concat(u),f);jT(s.fullSize,h,f,p),jT(l,h,f,p),jT(u,h,f,p)&&jT(l,h,f,p),function(e){var t=e.maxPadding;function n(n){var r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(h),NT(s.leftAndTop,h,f,p),h.x+=h.w,h.y+=h.h,NT(s.rightAndBottom,h,f,p),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Tk(s.chartArea,(function(t){var n=t.box;Object.assign(n,e.chartArea),n.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})}))}},IT=function(){function e(){Ht(this,e)}return Vt(e,[{key:"acquireContext",value:function(e,t){}},{key:"releaseContext",value:function(e){return!1}},{key:"addEventListener",value:function(e,t,n){}},{key:"removeEventListener",value:function(e,t,n){}},{key:"getDevicePixelRatio",value:function(){return 1}},{key:"getMaximumSize",value:function(e,t,n,r){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}},{key:"isAttached",value:function(e){return!0}},{key:"updateConfig",value:function(e){}}]),e}(),FT=function(e){Fs(n,e);var t=Vs(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Vt(n,[{key:"acquireContext",value:function(e){return e&&e.getContext&&e.getContext("2d")||null}},{key:"updateConfig",value:function(e){e.options.animation=!1}}]),n}(IT),zT={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},BT=function(e){return null===e||""===e};var UT=!!fE&&{passive:!0};function VT(e,t,n){e.canvas.removeEventListener(t,n,UT)}function HT(e,t){var n,r=dk(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i===t||i.contains(t))return!0}}catch(o){r.e(o)}finally{r.f()}}function WT(e,t,n){var r=e.canvas,i=new MutationObserver((function(e){var t,i=!1,o=dk(e);try{for(o.s();!(t=o.n()).done;){var a=t.value;i=(i=i||HT(a.addedNodes,r))&&!HT(a.removedNodes,r)}}catch(s){o.e(s)}finally{o.f()}i&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}function ZT(e,t,n){var r=e.canvas,i=new MutationObserver((function(e){var t,i=!1,o=dk(e);try{for(o.s();!(t=o.n()).done;){var a=t.value;i=(i=i||HT(a.removedNodes,r))&&!HT(a.addedNodes,r)}}catch(s){o.e(s)}finally{o.f()}i&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}var YT=new Map,qT=0;function GT(){var e=window.devicePixelRatio;e!==qT&&(qT=e,YT.forEach((function(t,n){n.currentDevicePixelRatio!==e&&t()})))}function KT(e,t,n){var r=e.canvas,i=r&&nE(r);if(i){var o=pk((function(e,t){var r=i.clientWidth;n(e,t),r<i.clientWidth&&n()}),window),a=new ResizeObserver((function(e){var t=e[0],n=t.contentRect.width,r=t.contentRect.height;0===n&&0===r||o(n,r)}));return a.observe(i),function(e,t){YT.size||window.addEventListener("resize",GT),YT.set(e,t)}(e,o),a}}function QT(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){YT.delete(e),YT.size||window.removeEventListener("resize",GT)}(e)}function $T(e,t,n){var r=e.canvas,i=pk((function(t){null!==e.ctx&&n(function(e,t){var n=zT[e.type]||e.type,r=sE(e,t),i=r.x,o=r.y;return{type:n,chart:t,native:e,x:void 0!==i?i:null,y:void 0!==o?o:null}}(t,e))}),e,(function(e){var t=e[0];return[t,t.offsetX,t.offsetY]}));return function(e,t,n){e.addEventListener(t,n,UT)}(r,t,i),i}var XT=function(e){Fs(n,e);var t=Vs(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Vt(n,[{key:"acquireContext",value:function(e,t){var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){var n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e.$chartjs={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",BT(i)){var o=dE(e,"width");void 0!==o&&(e.width=o)}if(BT(r))if(""===e.style.height)e.height=e.width/(t||2);else{var a=dE(e,"height");void 0!==a&&(e.height=a)}}(e,t),n):null}},{key:"releaseContext",value:function(e){var t=e.canvas;if(!t.$chartjs)return!1;var n=t.$chartjs.initial;["height","width"].forEach((function(e){var r=n[e];bk(r)?t.removeAttribute(e):t.setAttribute(e,r)}));var r=n.style||{};return Object.keys(r).forEach((function(e){t.style[e]=r[e]})),t.width=t.width,delete t.$chartjs,!0}},{key:"addEventListener",value:function(e,t,n){this.removeEventListener(e,t);var r=e.$proxies||(e.$proxies={}),i={attach:WT,detach:ZT,resize:KT}[t]||$T;r[t]=i(e,t,n)}},{key:"removeEventListener",value:function(e,t){var n=e.$proxies||(e.$proxies={}),r=n[t];r&&(({attach:QT,detach:QT,resize:QT}[t]||VT)(e,t,r),n[t]=void 0)}},{key:"getDevicePixelRatio",value:function(){return window.devicePixelRatio}},{key:"getMaximumSize",value:function(e,t,n,r){return uE(e,t,n,r)}},{key:"isAttached",value:function(e){var t=nE(e);return!(!t||!t.isConnected)}}]),n}(IT);var JT=function(){function e(){Ht(this,e),this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}return Vt(e,[{key:"tooltipPosition",value:function(e){var t=this.getProps(["x","y"],e);return{x:t.x,y:t.y}}},{key:"hasValue",value:function(){return Xk(this.x)&&Xk(this.y)}},{key:"getProps",value:function(e,t){var n=this,r=this.$animations;if(!t||!r)return this;var i={};return e.forEach((function(e){i[e]=r[e]&&r[e].active()?r[e]._to:n[e]})),i}}]),e}();JT.defaults={},JT.defaultRoutes=void 0;var eM={values:function(e){return _k(e)?e:""+e},numeric:function(e,t,n){if(0===e)return"0";var r,i=this.chart.options.locale,o=e;if(n.length>1){var a=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(a<1e-4||a>1e15)&&(r="scientific"),o=function(e,t){var n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}var s=Kk(Math.abs(o)),l=Math.max(Math.min(-1*Math.floor(s),20),0),u={notation:r,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(u,this.options.ticks.format),gE(e,i,u)},logarithmic:function(e,t,n){if(0===e)return"0";var r=e/Math.pow(10,Math.floor(Kk(e)));return 1===r||2===r||5===r?eM.numeric.call(this,e,t,n):""}};var tM={formatters:eM};function nM(e,t){var n=e.options.ticks,r=n.maxTicksLimit||function(e){var t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}(e),i=n.major.enabled?function(e){var t,n,r=[];for(t=0,n=e.length;t<n;t++)e[t].major&&r.push(t);return r}(t):[],o=i.length,a=i[0],s=i[o-1],l=[];if(o>r)return function(e,t,n,r){var i,o=0,a=n[0];for(r=Math.ceil(r),i=0;i<e.length;i++)i===a&&(t.push(e[i]),a=n[++o*r])}(t,l,i,o/r),l;var u=function(e,t,n){var r=function(e){var t,n,r=e.length;if(r<2)return!1;for(n=e[0],t=1;t<r;++t)if(e[t]-e[t-1]!==n)return!1;return n}(e),i=t.length/n;if(!r)return Math.max(i,1);for(var o=function(e){var t,n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t===0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((function(e,t){return e-t})).pop(),n}(r),a=0,s=o.length-1;a<s;a++){var l=o[a];if(l>i)return l}return Math.max(i,1)}(i,t,r);if(o>0){var c,f,d=o>1?Math.round((s-a)/(o-1)):null;for(rM(t,l,u,bk(d)?0:a-d,a),c=0,f=o-1;c<f;c++)rM(t,l,u,i[c],i[c+1]);return rM(t,l,u,s,bk(d)?t.length:s+d),l}return rM(t,l,u),l}function rM(e,t,n,r,i){var o,a,s,l=Ck(r,0),u=Math.min(Ck(i,e.length),e.length),c=0;for(n=Math.ceil(n),i&&(n=(o=i-r)/Math.floor(o/n)),s=l;s<0;)c++,s=Math.round(l+c*n);for(a=Math.max(l,0);a<u;a++)a===s&&(t.push(e[a]),c++,s=Math.round(l+c*n))}tS.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:function(e,t){return t.lineWidth},tickColor:function(e,t){return t.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:tM.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),tS.route("scale.ticks","color","","color"),tS.route("scale.grid","color","","borderColor"),tS.route("scale.grid","borderColor","","borderColor"),tS.route("scale.title","color","","color"),tS.describe("scale",{_fallback:!1,_scriptable:function(e){return!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e},_indexable:function(e){return"borderDash"!==e&&"tickBorderDash"!==e}}),tS.describe("scales",{_fallback:"scale"}),tS.describe("scale.ticks",{_scriptable:function(e){return"backdropPadding"!==e&&"callback"!==e},_indexable:function(e){return"backdropPadding"!==e}});var iM=function(e,t,n){return"top"===t||"left"===t?e[t]+n:e[t]-n};function oM(e,t){for(var n=[],r=e.length/t,i=e.length,o=0;o<i;o+=r)n.push(e[Math.floor(o)]);return n}function aM(e,t,n){var r,i=e.ticks.length,o=Math.min(t,i-1),a=e._startPixel,s=e._endPixel,l=1e-6,u=e.getPixelForTick(o);if(!(n&&(r=1===i?Math.max(u-a,s-u):0===t?(e.getPixelForTick(1)-u)/2:(u-e.getPixelForTick(o-1))/2,(u+=o<t?r:-r)<a-l||u>s+l)))return u}function sM(e){return e.drawTicks?e.tickLength:0}function lM(e,t){if(!e.display)return 0;var n=CS(e.font,t),r=kS(e.padding);return(_k(e.text)?e.text.length:1)*n.lineHeight+r.height}function uM(e,t,n){var r=vk(e);return(n&&"right"!==t||!n&&"right"===t)&&(r=function(e){return"left"===e?"right":"right"===e?"left":e}(r)),r}var cM=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this)).id=e.id,r.type=e.type,r.options=void 0,r.ctx=e.ctx,r.chart=e.chart,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.width=void 0,r.height=void 0,r._margins={left:0,right:0,top:0,bottom:0},r.maxWidth=void 0,r.maxHeight=void 0,r.paddingTop=void 0,r.paddingBottom=void 0,r.paddingLeft=void 0,r.paddingRight=void 0,r.axis=void 0,r.labelRotation=void 0,r.min=void 0,r.max=void 0,r._range=void 0,r.ticks=[],r._gridLineItems=null,r._labelItems=null,r._labelSizes=null,r._length=0,r._maxLength=0,r._longestTextCache={},r._startPixel=void 0,r._endPixel=void 0,r._reversePixels=!1,r._userMax=void 0,r._userMin=void 0,r._suggestedMax=void 0,r._suggestedMin=void 0,r._ticksLength=0,r._borderValue=0,r._cache={},r._dataLimitsCached=!1,r.$context=void 0,r}return Vt(n,[{key:"init",value:function(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}},{key:"parse",value:function(e,t){return e}},{key:"getUserBounds",value:function(){var e=this._userMin,t=this._userMax,n=this._suggestedMin,r=this._suggestedMax;return e=kk(e,Number.POSITIVE_INFINITY),t=kk(t,Number.NEGATIVE_INFINITY),n=kk(n,Number.POSITIVE_INFINITY),r=kk(r,Number.NEGATIVE_INFINITY),{min:kk(e,n),max:kk(t,r),minDefined:wk(e),maxDefined:wk(t)}}},{key:"getMinMax",value:function(e){var t,n=this.getUserBounds(),r=n.min,i=n.max,o=n.minDefined,a=n.maxDefined;if(o&&a)return{min:r,max:i};for(var s=this.getMatchingVisibleMetas(),l=0,u=s.length;l<u;++l)t=s[l].controller.getMinMax(this,e),o||(r=Math.min(r,t.min)),a||(i=Math.max(i,t.max));return{min:kk(r=a&&r>i?i:r,kk(i=o&&r>i?r:i,r)),max:kk(i,kk(r,i))}}},{key:"getPadding",value:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}},{key:"getTicks",value:function(){return this.ticks}},{key:"getLabels",value:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}},{key:"beforeLayout",value:function(){this._cache={},this._dataLimitsCached=!1}},{key:"beforeUpdate",value:function(){Ek(this.options.beforeUpdate,[this])}},{key:"update",value:function(e,t,n){var r=this.options,i=r.beginAtZero,o=r.grace,a=r.ticks,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,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=function(e,t,n){var r=e.min,i=e.max,o=Sk(t,(i-r)/2),a=function(e,t){return n&&0===e?0:e+t};return{min:a(r,-Math.abs(o)),max:a(i,o)}}(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();var l=s<this.ticks.length;this._convertTicksToLabels(l?oM(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(this.ticks=nM(this,this.ticks),this._labelSizes=null),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}},{key:"configure",value:function(){var e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}},{key:"afterUpdate",value:function(){Ek(this.options.afterUpdate,[this])}},{key:"beforeSetDimensions",value:function(){Ek(this.options.beforeSetDimensions,[this])}},{key:"setDimensions",value:function(){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}},{key:"afterSetDimensions",value:function(){Ek(this.options.afterSetDimensions,[this])}},{key:"_callHooks",value:function(e){this.chart.notifyPlugins(e,this.getContext()),Ek(this.options[e],[this])}},{key:"beforeDataLimits",value:function(){this._callHooks("beforeDataLimits")}},{key:"determineDataLimits",value:function(){}},{key:"afterDataLimits",value:function(){this._callHooks("afterDataLimits")}},{key:"beforeBuildTicks",value:function(){this._callHooks("beforeBuildTicks")}},{key:"buildTicks",value:function(){return[]}},{key:"afterBuildTicks",value:function(){this._callHooks("afterBuildTicks")}},{key:"beforeTickToLabelConversion",value:function(){Ek(this.options.beforeTickToLabelConversion,[this])}},{key:"generateTickLabels",value:function(e){var t,n,r,i=this.options.ticks;for(t=0,n=e.length;t<n;t++)(r=e[t]).label=Ek(i.callback,[r.value,t,e],this)}},{key:"afterTickToLabelConversion",value:function(){Ek(this.options.afterTickToLabelConversion,[this])}},{key:"beforeCalculateLabelRotation",value:function(){Ek(this.options.beforeCalculateLabelRotation,[this])}},{key:"calculateLabelRotation",value:function(){var e,t,n,r=this.options,i=r.ticks,o=this.ticks.length,a=i.minRotation||0,s=i.maxRotation,l=a;if(!this._isVisible()||!i.display||a>=s||o<=1||!this.isHorizontal())this.labelRotation=a;else{var u=this._getLabelSizes(),c=u.widest.width,f=u.highest.height,d=uC(this.chart.width-c,0,this.maxWidth);c+6>(e=r.offset?this.maxWidth/o:d/(o-1))&&(e=d/(o-(r.offset?.5:1)),t=this.maxHeight-sM(r.grid)-i.padding-lM(r.title,this.chart.options.font),n=Math.sqrt(c*c+f*f),l=nC(Math.min(Math.asin(uC((u.highest.height+6)/e,-1,1)),Math.asin(uC(t/n,-1,1))-Math.asin(uC(f/n,-1,1)))),l=Math.max(a,Math.min(s,l))),this.labelRotation=l}}},{key:"afterCalculateLabelRotation",value:function(){Ek(this.options.afterCalculateLabelRotation,[this])}},{key:"beforeFit",value:function(){Ek(this.options.beforeFit,[this])}},{key:"fit",value:function(){var e={width:0,height:0},t=this.chart,n=this.options,r=n.ticks,i=n.title,o=n.grid,a=this._isVisible(),s=this.isHorizontal();if(a){var l=lM(i,t.options.font);if(s?(e.width=this.maxWidth,e.height=sM(o)+l):(e.height=this.maxHeight,e.width=sM(o)+l),r.display&&this.ticks.length){var u=this._getLabelSizes(),c=u.first,f=u.last,d=u.widest,h=u.highest,p=2*r.padding,v=tC(this.labelRotation),m=Math.cos(v),g=Math.sin(v);if(s){var y=r.mirror?0:g*d.width+m*h.height;e.height=Math.min(this.maxHeight,e.height+y+p)}else{var b=r.mirror?0:m*d.width+g*h.height;e.width=Math.min(this.maxWidth,e.width+b+p)}this._calculatePadding(c,f,g,m)}}this._handleMargins(),s?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}},{key:"_calculatePadding",value:function(e,t,n,r){var i=this.options,o=i.ticks,a=o.align,s=o.padding,l=i.position,u=0!==this.labelRotation,c="top"!==l&&"x"===this.axis;if(this.isHorizontal()){var f=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1),h=0,p=0;u?c?(h=r*e.width,p=n*t.height):(h=n*e.height,p=r*t.width):"start"===a?p=t.width:"end"===a?h=e.width:(h=e.width/2,p=t.width/2),this.paddingLeft=Math.max((h-f+s)*this.width/(this.width-f),0),this.paddingRight=Math.max((p-d+s)*this.width/(this.width-d),0)}else{var v=t.height/2,m=e.height/2;"start"===a?(v=0,m=e.height):"end"===a&&(v=t.height,m=0),this.paddingTop=v+s,this.paddingBottom=m+s}}},{key:"_handleMargins",value:function(){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))}},{key:"afterFit",value:function(){Ek(this.options.afterFit,[this])}},{key:"isHorizontal",value:function(){var e=this.options,t=e.axis,n=e.position;return"top"===n||"bottom"===n||"x"===t}},{key:"isFullSize",value:function(){return this.options.fullSize}},{key:"_convertTicksToLabels",value:function(e){var t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)bk(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}},{key:"_getLabelSizes",value:function(){var e=this._labelSizes;if(!e){var t=this.options.ticks.sampleSize,n=this.ticks;t<n.length&&(n=oM(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length)}return e}},{key:"_computeLabelSizes",value:function(e,t){var n,r,i,o,a,s,l,u,c,f,d,h=this.ctx,p=this._longestTextCache,v=[],m=[],g=0,y=0;for(n=0;n<t;++n){if(o=e[n].label,a=this._resolveTickFontOptions(n),h.font=s=a.string,l=p[s]=p[s]||{data:{},gc:[]},u=a.lineHeight,c=f=0,bk(o)||_k(o)){if(_k(o))for(r=0,i=o.length;r<i;++r)bk(d=o[r])||_k(d)||(c=nS(h,l.data,l.gc,c,d),f+=u)}else c=nS(h,l.data,l.gc,c,o),f=u;v.push(c),m.push(f),g=Math.max(c,g),y=Math.max(f,y)}!function(e,t){Tk(e,(function(e){var n,r=e.gc,i=r.length/2;if(i>t){for(n=0;n<i;++n)delete e.data[r[n]];r.splice(0,i)}}))}(p,t);var b=v.indexOf(g),_=m.indexOf(y),x=function(e){return{width:v[e]||0,height:m[e]||0}};return{first:x(0),last:x(t-1),widest:x(b),highest:x(_),widths:v,heights:m}}},{key:"getLabelForValue",value:function(e){return e}},{key:"getPixelForValue",value:function(e,t){return NaN}},{key:"getValueForPixel",value:function(e){}},{key:"getPixelForTick",value:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}},{key:"getPixelForDecimal",value:function(e){this._reversePixels&&(e=1-e);var t=this._startPixel+e*this._length;return function(e){return uC(e,-32768,32767)}(this._alignToPixels?iS(this.chart,t,0):t)}},{key:"getDecimalForPixel",value:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}},{key:"getBasePixel",value:function(){return this.getPixelForValue(this.getBaseValue())}},{key:"getBaseValue",value:function(){var e=this.min,t=this.max;return e<0&&t<0?t:e>0&&t>0?e:0}},{key:"getContext",value:function(e){var t=this.ticks||[];if(e>=0&&e<t.length){var n=t[e];return n.$context||(n.$context=function(e,t,n){return ES(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=ES(this.chart.getContext(),{scale:this,type:"scale"}))}},{key:"_tickSize",value:function(){var e=this.options.ticks,t=tC(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),i=this._getLabelSizes(),o=e.autoSkipPadding||0,a=i?i.widest.width+o:0,s=i?i.highest.height+o:0;return this.isHorizontal()?s*n>a*r?a/n:s/r:s*r<a*n?s/n:a/r}},{key:"_isVisible",value:function(){var e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}},{key:"_computeGridLineItems",value:function(e){var t,n,r,i,o,a,s,l,u,c,f,d,h=this.axis,p=this.chart,v=this.options,m=v.grid,g=v.position,y=m.offset,b=this.isHorizontal(),_=this.ticks.length+(y?1:0),x=sM(m),w=[],k=m.setContext(this.getContext()),C=k.drawBorder?k.borderWidth:0,S=C/2,E=function(e){return iS(p,e,C)};if("top"===g)t=E(this.bottom),a=this.bottom-x,l=t-S,c=E(e.top)+S,d=e.bottom;else if("bottom"===g)t=E(this.top),c=e.top,d=E(e.bottom)-S,a=t+S,l=this.top+x;else if("left"===g)t=E(this.right),o=this.right-x,s=t-S,u=E(e.left)+S,f=e.right;else if("right"===g)t=E(this.left),u=e.left,f=E(e.right)-S,o=t+S,s=this.left+x;else if("x"===h){if("center"===g)t=E((e.top+e.bottom)/2+.5);else if(xk(g)){var T=Object.keys(g)[0],M=g[T];t=E(this.chart.scales[T].getPixelForValue(M))}c=e.top,d=e.bottom,l=(a=t+S)+x}else if("y"===h){if("center"===g)t=E((e.left+e.right)/2);else if(xk(g)){var O=Object.keys(g)[0],j=g[O];t=E(this.chart.scales[O].getPixelForValue(j))}s=(o=t-S)-x,u=e.left,f=e.right}var P=Ck(v.ticks.maxTicksLimit,_),N=Math.max(1,Math.ceil(_/P));for(n=0;n<_;n+=N){var D=m.setContext(this.getContext(n)),L=D.lineWidth,R=D.color,A=m.borderDash||[],I=D.borderDashOffset,F=D.tickWidth,z=D.tickColor,B=D.tickBorderDash||[],U=D.tickBorderDashOffset;void 0!==(r=aM(this,n,y))&&(i=iS(p,r,L),b?o=s=u=f=i:a=l=c=d=i,w.push({tx1:o,ty1:a,tx2:s,ty2:l,x1:u,y1:c,x2:f,y2:d,width:L,color:R,borderDash:A,borderDashOffset:I,tickWidth:F,tickColor:z,tickBorderDash:B,tickBorderDashOffset:U}))}return this._ticksLength=_,this._borderValue=t,w}},{key:"_computeLabelItems",value:function(e){var t,n,r,i,o,a,s,l,u,c,f,d=this.axis,h=this.options,p=h.position,v=h.ticks,m=this.isHorizontal(),g=this.ticks,y=v.align,b=v.crossAlign,_=v.padding,x=v.mirror,w=sM(h.grid),k=w+_,C=x?-_:k,S=-tC(this.labelRotation),E=[],T="middle";if("top"===p)o=this.bottom-C,a=this._getXAxisLabelAlignment();else if("bottom"===p)o=this.top+C,a=this._getXAxisLabelAlignment();else if("left"===p){var M=this._getYAxisLabelAlignment(w);a=M.textAlign,i=M.x}else if("right"===p){var O=this._getYAxisLabelAlignment(w);a=O.textAlign,i=O.x}else if("x"===d){if("center"===p)o=(e.top+e.bottom)/2+k;else if(xk(p)){var j=Object.keys(p)[0],P=p[j];o=this.chart.scales[j].getPixelForValue(P)+k}a=this._getXAxisLabelAlignment()}else if("y"===d){if("center"===p)i=(e.left+e.right)/2-k;else if(xk(p)){var N=Object.keys(p)[0],D=p[N];i=this.chart.scales[N].getPixelForValue(D)}a=this._getYAxisLabelAlignment(w).textAlign}"y"===d&&("start"===y?T="top":"end"===y&&(T="bottom"));var L=this._getLabelSizes();for(t=0,n=g.length;t<n;++t){r=g[t].label;var R=v.setContext(this.getContext(t));s=this.getPixelForTick(t)+v.labelOffset,u=(l=this._resolveTickFontOptions(t)).lineHeight;var A=(c=_k(r)?r.length:1)/2,I=R.color,F=R.textStrokeColor,z=R.textStrokeWidth;m?(i=s,f="top"===p?"near"===b||0!==S?-c*u+u/2:"center"===b?-L.highest.height/2-A*u+u:-L.highest.height+u/2:"near"===b||0!==S?u/2:"center"===b?L.highest.height/2-A*u:L.highest.height-c*u,x&&(f*=-1)):(o=s,f=(1-c)*u/2);var B=void 0;if(R.showLabelBackdrop){var U=kS(R.backdropPadding),V=L.heights[t],H=L.widths[t],W=o+f-U.top,Z=i-U.left;switch(T){case"middle":W-=V/2;break;case"bottom":W-=V}switch(a){case"center":Z-=H/2;break;case"right":Z-=H}B={left:Z,top:W,width:H+U.width,height:V+U.height,color:R.backdropColor}}E.push({rotation:S,label:r,font:l,color:I,strokeColor:F,strokeWidth:z,textOffset:f,textAlign:a,textBaseline:T,translation:[i,o],backdrop:B})}return E}},{key:"_getXAxisLabelAlignment",value:function(){var e=this.options,t=e.position,n=e.ticks;if(-tC(this.labelRotation))return"top"===t?"left":"right";var r="center";return"start"===n.align?r="left":"end"===n.align&&(r="right"),r}},{key:"_getYAxisLabelAlignment",value:function(e){var t,n,r=this.options,i=r.position,o=r.ticks,a=o.crossAlign,s=o.mirror,l=o.padding,u=e+l,c=this._getLabelSizes().widest.width;return"left"===i?s?(n=this.right+l,"near"===a?t="left":"center"===a?(t="center",n+=c/2):(t="right",n+=c)):(n=this.right-u,"near"===a?t="right":"center"===a?(t="center",n-=c/2):(t="left",n=this.left)):"right"===i?s?(n=this.left+l,"near"===a?t="right":"center"===a?(t="center",n-=c/2):(t="left",n-=c)):(n=this.left+u,"near"===a?t="left":"center"===a?(t="center",n+=c/2):(t="right",n=this.right)):t="right",{textAlign:t,x:n}}},{key:"_computeLabelArea",value:function(){if(!this.options.ticks.mirror){var e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}}},{key:"drawBackground",value:function(){var e=this.ctx,t=this.options.backgroundColor,n=this.left,r=this.top,i=this.width,o=this.height;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,i,o),e.restore())}},{key:"getLineWidthForValue",value:function(e){var t=this.options.grid;if(!this._isVisible()||!t.display)return 0;var n=this.ticks.findIndex((function(t){return t.value===e}));return n>=0?t.setContext(this.getContext(n)).lineWidth:0}},{key:"drawGrid",value:function(e){var t,n,r=this.options.grid,i=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e)),a=function(e,t,n){n.width&&n.color&&(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(e.x,e.y),i.lineTo(t.x,t.y),i.stroke(),i.restore())};if(r.display)for(t=0,n=o.length;t<n;++t){var s=o[t];r.drawOnChartArea&&a({x:s.x1,y:s.y1},{x:s.x2,y:s.y2},s),r.drawTicks&&a({x:s.tx1,y:s.ty1},{x:s.tx2,y:s.ty2},{color:s.tickColor,width:s.tickWidth,borderDash:s.tickBorderDash,borderDashOffset:s.tickBorderDashOffset})}}},{key:"drawBorder",value:function(){var e=this.chart,t=this.ctx,n=this.options.grid,r=n.setContext(this.getContext()),i=n.drawBorder?r.borderWidth:0;if(i){var o,a,s,l,u=n.setContext(this.getContext(0)).lineWidth,c=this._borderValue;this.isHorizontal()?(o=iS(e,this.left,i)-i/2,a=iS(e,this.right,u)+u/2,s=l=c):(s=iS(e,this.top,i)-i/2,l=iS(e,this.bottom,u)+u/2,o=a=c),t.save(),t.lineWidth=r.borderWidth,t.strokeStyle=r.borderColor,t.beginPath(),t.moveTo(o,s),t.lineTo(a,l),t.stroke(),t.restore()}}},{key:"drawLabels",value:function(e){if(this.options.ticks.display){var t=this.ctx,n=this._computeLabelArea();n&&lS(t,n);var r,i,o=this._labelItems||(this._labelItems=this._computeLabelItems(e));for(r=0,i=o.length;r<i;++r){var a=o[r],s=a.font,l=a.label;a.backdrop&&(t.fillStyle=a.backdrop.color,t.fillRect(a.backdrop.left,a.backdrop.top,a.backdrop.width,a.backdrop.height)),dS(t,l,0,a.textOffset,s,a)}n&&uS(t)}}},{key:"drawTitle",value:function(){var e=this.ctx,t=this.options,n=t.position,r=t.title,i=t.reverse;if(r.display){var o=CS(r.font),a=kS(r.padding),s=r.align,l=o.lineHeight/2;"bottom"===n||"center"===n||xk(n)?(l+=a.bottom,_k(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=a.top;var u=function(e,t,n,r){var i,o,a,s=e.top,l=e.left,u=e.bottom,c=e.right,f=e.chart,d=f.chartArea,h=f.scales,p=0,v=u-s,m=c-l;if(e.isHorizontal()){if(o=mk(r,l,c),xk(n)){var g=Object.keys(n)[0],y=n[g];a=h[g].getPixelForValue(y)+v-t}else a="center"===n?(d.bottom+d.top)/2+v-t:iM(e,n,t);i=c-l}else{if(xk(n)){var b=Object.keys(n)[0],_=n[b];o=h[b].getPixelForValue(_)-m+t}else o="center"===n?(d.left+d.right)/2-m+t:iM(e,n,t);a=mk(r,u,s),p="left"===n?-Yk:Yk}return{titleX:o,titleY:a,maxWidth:i,rotation:p}}(this,l,n,s),c=u.titleX,f=u.titleY,d=u.maxWidth,h=u.rotation;dS(e,r.text,0,0,o,{color:r.color,maxWidth:d,rotation:h,textAlign:uM(s,n,i),textBaseline:"middle",translation:[c,f]})}}},{key:"draw",value:function(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}},{key:"_layers",value:function(){var e=this,t=this.options,r=t.ticks&&t.ticks.z||0,i=Ck(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===n.prototype.draw?[{z:i,draw:function(t){e.drawBackground(),e.drawGrid(t),e.drawTitle()}},{z:i+1,draw:function(){e.drawBorder()}},{z:r,draw:function(t){e.drawLabels(t)}}]:[{z:r,draw:function(t){e.draw(t)}}]}},{key:"getMatchingVisibleMetas",value:function(e){var t,n,r=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",o=[];for(t=0,n=r.length;t<n;++t){var a=r[t];a[i]!==this.id||e&&a.type!==e||o.push(a)}return o}},{key:"_resolveTickFontOptions",value:function(e){return CS(this.options.ticks.setContext(this.getContext(e)).font)}},{key:"_maxDigits",value:function(){var e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}]),n}(JT),fM=function(){function e(t,n,r){Ht(this,e),this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}return Vt(e,[{key:"isForType",value:function(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}},{key:"register",value:function(e){var t,n=Object.getPrototypeOf(e);(function(e){return"id"in e&&"defaults"in e})(n)&&(t=this.register(n));var r=this.items,i=e.id,o=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+e);return i in r||(r[i]=e,function(e,t,n){var r=Nk(Object.create(null),[n?tS.get(n):{},tS.get(t),e.defaults]);tS.set(t,r),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((function(n){var r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");tS.route(o,i,l,s)}))}(t,e.defaultRoutes);e.descriptors&&tS.describe(t,e.descriptors)}(e,o,t),this.override&&tS.override(e.id,e.overrides)),o}},{key:"get",value:function(e){return this.items[e]}},{key:"unregister",value:function(e){var t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in tS[r]&&(delete tS[r][n],this.override&&delete QC[n])}}]),e}();var dM=function(){function e(){Ht(this,e),this.controllers=new fM(YE,"datasets",!0),this.elements=new fM(JT,"elements"),this.plugins=new fM(Object,"plugins"),this.scales=new fM(cM,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}return Vt(e,[{key:"add",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t)}},{key:"remove",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t)}},{key:"addControllers",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.controllers)}},{key:"addElements",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.elements)}},{key:"addPlugins",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.plugins)}},{key:"addScales",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.scales)}},{key:"getController",value:function(e){return this._get(e,this.controllers,"controller")}},{key:"getElement",value:function(e){return this._get(e,this.elements,"element")}},{key:"getPlugin",value:function(e){return this._get(e,this.plugins,"plugin")}},{key:"getScale",value:function(e){return this._get(e,this.scales,"scale")}},{key:"removeControllers",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.controllers)}},{key:"removeElements",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.elements)}},{key:"removePlugins",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.plugins)}},{key:"removeScales",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.scales)}},{key:"_each",value:function(e,t,n){var r=this;g(t).forEach((function(t){var i=n||r._getRegistryForType(t);n||i.isForType(t)||i===r.plugins&&t.id?r._exec(e,i,t):Tk(t,(function(t){var i=n||r._getRegistryForType(t);r._exec(e,i,t)}))}))}},{key:"_exec",value:function(e,t,n){var r=Ik(e);Ek(n["before"+r],[],n),t[e](n),Ek(n["after"+r],[],n)}},{key:"_getRegistryForType",value:function(e){for(var t=0;t<this._typedRegistries.length;t++){var n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}},{key:"_get",value:function(e,t,n){var r=t.get(e);if(void 0===r)throw new Error('"'+e+'" is not a registered '+n+".");return r}}]),e}(),hM=new dM,pM=function(){function e(){Ht(this,e),this._init=[]}return Vt(e,[{key:"notify",value:function(e,t,n,r){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));var i=r?this._descriptors(e).filter(r):this._descriptors(e),o=this._notify(i,e,t,n);return"afterDestroy"===t&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall")),o}},{key:"_notify",value:function(e,t,n,r){r=r||{};var i,o=dk(e);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a.plugin;if(!1===Ek(s[n],[t,r,a.options],s)&&r.cancelable)return!1}}catch(l){o.e(l)}finally{o.f()}return!0}},{key:"invalidate",value:function(){bk(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}},{key:"_descriptors",value:function(e){if(this._cache)return this._cache;var t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}},{key:"_createDescriptors",value:function(e,t){var n=e&&e.config,r=Ck(n.options&&n.options.plugins,{}),i=function(e){for(var t=[],n=Object.keys(hM.plugins.items),r=0;r<n.length;r++)t.push(hM.getPlugin(n[r]));for(var i=e.plugins||[],o=0;o<i.length;o++){var a=i[o];-1===t.indexOf(a)&&t.push(a)}return t}(n);return!1!==r||t?function(e,t,n,r){for(var i=[],o=e.getContext(),a=0;a<t.length;a++){var s=t[a],l=vM(n[s.id],r);null!==l&&i.push({plugin:s,options:mM(e.config,s,l,o)})}return i}(e,i,r,t):[]}},{key:"_notifyStateChanges",value:function(e){var t=this._oldCache||[],n=this._cache,r=function(e,t){return e.filter((function(e){return!t.some((function(t){return e.plugin.id===t.plugin.id}))}))};this._notify(r(t,n),e,"stop"),this._notify(r(n,t),e,"start")}}]),e}();function vM(e,t){return t||!1!==e?!0===e?{}:e:null}function mM(e,t,n,r){var i=e.pluginScopeKeys(t),o=e.getOptionScopes(n,i);return e.createResolver(o,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function gM(e,t){var n=tS.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function yM(e,t){return"x"===e||"y"===e?e:t.axis||("top"===(n=t.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||e.charAt(0).toLowerCase();var n}function bM(e){var t=e.options||(e.options={});t.plugins=Ck(t.plugins,{}),t.scales=function(e,t){var n=QC[e.type]||{scales:{}},r=t.scales||{},i=gM(e.type,t),o=Object.create(null),a=Object.create(null);return Object.keys(r).forEach((function(e){var t=r[e];if(!xk(t))return console.error("Invalid scale configuration for scale: ".concat(e));if(t._proxy)return console.warn("Ignoring resolver passed as options for scale: ".concat(e));var s=yM(e,t),l=function(e,t){return e===t?"_index_":"_value_"}(s,i),u=n.scales||{};o[s]=o[s]||e,a[e]=Dk(Object.create(null),[{axis:s},t,u[s],u[l]])})),e.data.datasets.forEach((function(n){var i=n.type||e.type,s=n.indexAxis||gM(i,t),l=(QC[i]||{}).scales||{};Object.keys(l).forEach((function(e){var t=function(e,t){var n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,s),i=n[t+"AxisID"]||o[t]||t;a[i]=a[i]||Object.create(null),Dk(a[i],[{axis:t},r[i],l[e]])}))})),Object.keys(a).forEach((function(e){var t=a[e];Dk(t,[tS.scales[t.type],tS.scale])})),a}(e,t)}function _M(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}var xM=new Map,wM=new Set;function kM(e,t){var n=xM.get(e);return n||(n=t(),xM.set(e,n),wM.add(n)),n}var CM=function(e,t,n){var r=Ak(t,n);void 0!==r&&e.add(r)},SM=function(){function e(t){Ht(this,e),this._config=function(e){return(e=e||{}).data=_M(e.data),bM(e),e}(t),this._scopeCache=new Map,this._resolverCache=new Map}return Vt(e,[{key:"platform",get:function(){return this._config.platform}},{key:"type",get:function(){return this._config.type},set:function(e){this._config.type=e}},{key:"data",get:function(){return this._config.data},set:function(e){this._config.data=_M(e)}},{key:"options",get:function(){return this._config.options},set:function(e){this._config.options=e}},{key:"plugins",get:function(){return this._config.plugins}},{key:"update",value:function(){var e=this._config;this.clearCache(),bM(e)}},{key:"clearCache",value:function(){this._scopeCache.clear(),this._resolverCache.clear()}},{key:"datasetScopeKeys",value:function(e){return kM(e,(function(){return[["datasets.".concat(e),""]]}))}},{key:"datasetAnimationScopeKeys",value:function(e,t){return kM("".concat(e,".transition.").concat(t),(function(){return[["datasets.".concat(e,".transitions.").concat(t),"transitions.".concat(t)],["datasets.".concat(e),""]]}))}},{key:"datasetElementScopeKeys",value:function(e,t){return kM("".concat(e,"-").concat(t),(function(){return[["datasets.".concat(e,".elements.").concat(t),"datasets.".concat(e),"elements.".concat(t),""]]}))}},{key:"pluginScopeKeys",value:function(e){var t=e.id,n=this.type;return kM("".concat(n,"-plugin-").concat(t),(function(){return[["plugins.".concat(t)].concat(g(e.additionalOptionScopes||[]))]}))}},{key:"_cachedScopes",value:function(e,t){var n=this._scopeCache,r=n.get(e);return r&&!t||(r=new Map,n.set(e,r)),r}},{key:"getOptionScopes",value:function(e,t,n){var r=this.options,i=this.type,o=this._cachedScopes(e,n),a=o.get(t);if(a)return a;var s=new Set;t.forEach((function(t){e&&(s.add(e),t.forEach((function(t){return CM(s,e,t)}))),t.forEach((function(e){return CM(s,r,e)})),t.forEach((function(e){return CM(s,QC[i]||{},e)})),t.forEach((function(e){return CM(s,tS,e)})),t.forEach((function(e){return CM(s,$C,e)}))}));var l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),wM.has(t)&&o.set(t,l),l}},{key:"chartOptionScopes",value:function(){var e=this.options,t=this.type;return[e,QC[t]||{},tS.datasets[t]||{},{type:t},tS,$C]}},{key:"resolveNamedOptions",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""],i={$shared:!0},o=EM(this._resolverCache,e,r),a=o.resolver,s=o.subPrefixes,l=a;if(MM(a,t)){i.$shared=!1,n=zk(n)?n():n;var u=this.createResolver(e,n,s);l=LS(a,n,u)}var c,f=dk(t);try{for(f.s();!(c=f.n()).done;){var d=c.value;i[d]=l[d]}}catch(h){f.e(h)}finally{f.f()}return i}},{key:"createResolver",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""],r=arguments.length>3?arguments[3]:void 0,i=EM(this._resolverCache,e,n),o=i.resolver;return xk(t)?LS(o,t,void 0,r):o}}]),e}();function EM(e,t,n){var r=e.get(t);r||(r=new Map,e.set(t,r));var i=n.join(),o=r.get(i);o||(o={resolver:DS(t,n),subPrefixes:n.filter((function(e){return!e.toLowerCase().includes("hover")}))},r.set(i,o));return o}var TM=function(e){return xk(e)&&Object.getOwnPropertyNames(e).reduce((function(t,n){return t||zk(e[n])}),!1)};function MM(e,t){var n,r=RS(e),i=r.isScriptable,o=r.isIndexable,a=dk(t);try{for(a.s();!(n=a.n()).done;){var s=n.value,l=i(s),u=o(s),c=(u||l)&&e[s];if(l&&(zk(c)||TM(c))||u&&_k(c))return!0}}catch(f){a.e(f)}finally{a.f()}return!1}var OM=["top","bottom","left","right","chartArea"];function jM(e,t){return"top"===e||"bottom"===e||-1===OM.indexOf(e)&&"x"===t}function PM(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function NM(e){var t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Ek(n&&n.onComplete,[e],t)}function DM(e){var t=e.chart,n=t.options.animation;Ek(n&&n.onProgress,[e],t)}function LM(e){return tE()&&"string"===typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var RM={},AM=function(e){var t=LM(e);return Object.values(RM).filter((function(e){return e.canvas===t})).pop()};function IM(e,t,n){for(var r=0,i=Object.keys(e);r<i.length;r++){var o=i[r],a=+o;if(a>=t){var s=e[o];delete e[o],(n>0||a>t)&&(e[a+n]=s)}}}var FM=function(){function e(t,n){var r=this;Ht(this,e);var i=this.config=new SM(n),o=LM(t),a=AM(o);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas can be reused.");var s=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(e){return!tE()||"undefined"!==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?FT:XT}(o)),this.platform.updateConfig(i);var l=this.platform.acquireContext(o,s.aspectRatio),u=l&&l.canvas,c=u&&u.height,f=u&&u.width;this.id=yk(),this.ctx=l,this.canvas=u,this.width=f,this.height=c,this._options=s,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 pM,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){var n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}((function(e){return r.update(e)}),s.resizeDelay||0),this._dataChanges=[],RM[this.id]=this,l&&u?(OE.listen(this,"complete",NM),OE.listen(this,"progress",DM),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}return Vt(e,[{key:"aspectRatio",get:function(){var e=this.options,t=e.aspectRatio,n=e.maintainAspectRatio,r=this.width,i=this.height,o=this._aspectRatio;return bk(t)?n&&o?o:i?r/i:null:t}},{key:"data",get:function(){return this.config.data},set:function(e){this.config.data=e}},{key:"options",get:function(){return this._options},set:function(e){this.config.options=e}},{key:"_initialize",value:function(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():cE(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}},{key:"clear",value:function(){return oS(this.canvas,this.ctx),this}},{key:"stop",value:function(){return OE.stop(this),this}},{key:"resize",value:function(e,t){OE.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}},{key:"_resize",value:function(e,t){var n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(r,e,t,i),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,cE(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),Ek(n.onResize,[this,o],this),this.attached&&this._doResize(s)&&this.render())}},{key:"ensureScalesHaveIDs",value:function(){Tk(this.options.scales||{},(function(e,t){e.id=t}))}},{key:"buildOrUpdateScales",value:function(){var e=this,t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((function(e,t){return e[t]=!1,e}),{}),o=[];n&&(o=o.concat(Object.keys(n).map((function(e){var t=n[e],r=yM(e,t),i="r"===r,o="x"===r;return{options:t,dposition:i?"chartArea":o?"bottom":"left",dtype:i?"radialLinear":o?"category":"linear"}})))),Tk(o,(function(n){var o=n.options,a=o.id,s=yM(a,o),l=Ck(o.type,n.dtype);void 0!==o.position&&jM(o.position,s)===jM(n.dposition)||(o.position=n.dposition),i[a]=!0;var u=null;a in r&&r[a].type===l?u=r[a]:(u=new(hM.getScale(l))({id:a,type:l,ctx:e.ctx,chart:e}),r[u.id]=u);u.init(o,t)})),Tk(i,(function(e,t){e||delete r[t]})),Tk(r,(function(t){RT(e,t,t.options),DT(e,t)}))}},{key:"_updateMetasets",value:function(){var e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort((function(e,t){return e.index-t.index})),n>t){for(var r=t;r<n;++r)this._destroyDatasetMeta(r);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(PM("order","index"))}},{key:"_removeUnreferencedMetasets",value:function(){var e=this,t=this._metasets,n=this.data.datasets;t.length>n.length&&delete this._stacks,t.forEach((function(t,r){0===n.filter((function(e){return e===t._dataset})).length&&e._destroyDatasetMeta(r)}))}},{key:"buildOrUpdateControllers",value:function(){var e,t,n=[],r=this.data.datasets;for(this._removeUnreferencedMetasets(),e=0,t=r.length;e<t;e++){var i=r[e],o=this.getDatasetMeta(e),a=i.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(e),o=this.getDatasetMeta(e)),o.type=a,o.indexAxis=i.indexAxis||gM(a,this.options),o.order=i.order||0,o.index=e,o.label=""+i.label,o.visible=this.isDatasetVisible(e),o.controller)o.controller.updateIndex(e),o.controller.linkScales();else{var s=hM.getController(a),l=tS.datasets[a],u=l.datasetElementType,c=l.dataElementType;Object.assign(s.prototype,{dataElementType:hM.getElement(c),datasetElementType:u&&hM.getElement(u)}),o.controller=new s(this,e),n.push(o.controller)}}return this._updateMetasets(),n}},{key:"_resetElements",value:function(){var e=this;Tk(this.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.reset()}),this)}},{key:"reset",value:function(){this._resetElements(),this.notifyPlugins("reset")}},{key:"update",value:function(e){var t=this.config;t.update();var n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1!==this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})){var i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");for(var o=0,a=0,s=this.data.datasets.length;a<s;a++){var l=this.getDatasetMeta(a).controller,u=!r&&-1===i.indexOf(l);l.buildOrUpdateElements(u),o=Math.max(+l.getMaxOverflow(),o)}o=this._minPadding=n.layout.autoPadding?o:0,this._updateLayout(o),r||Tk(i,(function(e){e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(PM("z","_idx"));var c=this._active,f=this._lastEvent;f?this._eventHandler(f,!0):c.length&&this._updateHoverStyles(c,c,!0),this.render()}}},{key:"_updateScales",value:function(){var e=this;Tk(this.scales,(function(t){LT(e,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}},{key:"_checkEventBindings",value:function(){var e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);Bk(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}},{key:"_updateHiddenIndices",value:function(){var e,t=this._hiddenIndices,n=dk(this._getUniformDataChanges()||[]);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=r.method,o=r.start,a=r.count;IM(t,o,"_removeElements"===i?-a:a)}}catch(s){n.e(s)}finally{n.f()}}},{key:"_getUniformDataChanges",value:function(){var e=this._dataChanges;if(e&&e.length){this._dataChanges=[];for(var t=this.data.datasets.length,n=function(t){return new Set(e.filter((function(e){return e[0]===t})).map((function(e,t){return t+","+e.splice(1).join(",")})))},r=n(0),i=1;i<t;i++)if(!Bk(r,n(i)))return;return Array.from(r).map((function(e){return e.split(",")})).map((function(e){return{method:e[1],start:+e[2],count:+e[3]}}))}}},{key:"_updateLayout",value:function(e){var t=this;if(!1!==this.notifyPlugins("beforeLayout",{cancelable:!0})){AT(this,this.width,this.height,e);var n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Tk(this.boxes,(function(e){var n;r&&"chartArea"===e.position||(e.configure&&e.configure(),(n=t._layers).push.apply(n,g(e._layers())))}),this),this._layers.forEach((function(e,t){e._idx=t})),this.notifyPlugins("afterLayout")}}},{key:"_updateDatasets",value:function(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(var t=0,n=this.data.datasets.length;t<n;++t)this.getDatasetMeta(t).controller.configure();for(var r=0,i=this.data.datasets.length;r<i;++r)this._updateDataset(r,zk(e)?e({datasetIndex:r}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}},{key:"_updateDataset",value:function(e,t){var n=this.getDatasetMeta(e),r={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(t),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}},{key:"render",value:function(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(OE.has(this)?this.attached&&!OE.running(this)&&OE.start(this):(this.draw(),NM({chart:this})))}},{key:"draw",value:function(){var e;if(this._resizeBeforeDraw){var t=this._resizeBeforeDraw,n=t.width,r=t.height;this._resize(n,r),this._resizeBeforeDraw=null}if(this.clear(),!(this.width<=0||this.height<=0)&&!1!==this.notifyPlugins("beforeDraw",{cancelable:!0})){var i=this._layers;for(e=0;e<i.length&&i[e].z<=0;++e)i[e].draw(this.chartArea);for(this._drawDatasets();e<i.length;++e)i[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}}},{key:"_getSortedDatasetMetas",value:function(e){var t,n,r=this._sortedMetasets,i=[];for(t=0,n=r.length;t<n;++t){var o=r[t];e&&!o.visible||i.push(o)}return i}},{key:"getSortedVisibleDatasetMetas",value:function(){return this._getSortedDatasetMetas(!0)}},{key:"_drawDatasets",value:function(){if(!1!==this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})){for(var e=this.getSortedVisibleDatasetMetas(),t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}}},{key:"_drawDataset",value:function(e){var t=this.ctx,n=e._clip,r=!n.disabled,i=this.chartArea,o={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(r&&lS(t,{left:!1===n.left?0:i.left-n.left,right:!1===n.right?this.width:i.right+n.right,top:!1===n.top?0:i.top-n.top,bottom:!1===n.bottom?this.height:i.bottom+n.bottom}),e.controller.draw(),r&&uS(t),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}},{key:"getElementsAtEventForMode",value:function(e,t,n,r){var i=_T.modes[t];return"function"===typeof i?i(this,e,n,r):[]}},{key:"getDatasetMeta",value:function(e){var t=this.data.datasets[e],n=this._metasets,r=n.filter((function(e){return e&&e._dataset===t})).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}},{key:"getContext",value:function(){return this.$context||(this.$context=ES(null,{chart:this,type:"chart"}))}},{key:"getVisibleDatasetCount",value:function(){return this.getSortedVisibleDatasetMetas().length}},{key:"isDatasetVisible",value:function(e){var t=this.data.datasets[e];if(!t)return!1;var n=this.getDatasetMeta(e);return"boolean"===typeof n.hidden?!n.hidden:!t.hidden}},{key:"setDatasetVisibility",value:function(e,t){this.getDatasetMeta(e).hidden=!t}},{key:"toggleDataVisibility",value:function(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}},{key:"getDataVisibility",value:function(e){return!this._hiddenIndices[e]}},{key:"_updateVisibility",value:function(e,t,n){var r=n?"show":"hide",i=this.getDatasetMeta(e),o=i.controller._resolveAnimations(void 0,r);Fk(t)?(i.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),o.update(i,{visible:n}),this.update((function(t){return t.datasetIndex===e?r:void 0})))}},{key:"hide",value:function(e,t){this._updateVisibility(e,t,!1)}},{key:"show",value:function(e,t){this._updateVisibility(e,t,!0)}},{key:"_destroyDatasetMeta",value:function(e){var t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}},{key:"_stop",value:function(){var e,t;for(this.stop(),OE.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}},{key:"destroy",value:function(){this.notifyPlugins("beforeDestroy");var e=this.canvas,t=this.ctx;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),oS(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete RM[this.id],this.notifyPlugins("afterDestroy")}},{key:"toBase64Image",value:function(){var e;return(e=this.canvas).toDataURL.apply(e,arguments)}},{key:"bindEvents",value:function(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}},{key:"bindUserEvents",value:function(){var e=this,t=this._listeners,n=this.platform,r=function(t,n,r){t.offsetX=n,t.offsetY=r,e._eventHandler(t)};Tk(this.options.events,(function(i){return function(r,i){n.addEventListener(e,r,i),t[r]=i}(i,r)}))}},{key:"bindResponsiveEvents",value:function(){var e=this;this._responsiveListeners||(this._responsiveListeners={});var t,n=this._responsiveListeners,r=this.platform,i=function(t,i){r.addEventListener(e,t,i),n[t]=i},o=function(t,i){n[t]&&(r.removeEventListener(e,t,i),delete n[t])},a=function(t,n){e.canvas&&e.resize(t,n)},s=function n(){o("attach",n),e.attached=!0,e.resize(),i("resize",a),i("detach",t)};t=function(){e.attached=!1,o("resize",a),e._stop(),e._resize(0,0),i("attach",s)},r.isAttached(this.canvas)?s():t()}},{key:"unbindEvents",value:function(){var e=this;Tk(this._listeners,(function(t,n){e.platform.removeEventListener(e,n,t)})),this._listeners={},Tk(this._responsiveListeners,(function(t,n){e.platform.removeEventListener(e,n,t)})),this._responsiveListeners=void 0}},{key:"updateHoverStyle",value:function(e,t,n){var r,i,o,a=n?"set":"remove";for("dataset"===t&&this.getDatasetMeta(e[0].datasetIndex).controller["_"+a+"DatasetHoverStyle"](),i=0,o=e.length;i<o;++i){var s=(r=e[i])&&this.getDatasetMeta(r.datasetIndex).controller;s&&s[a+"HoverStyle"](r.element,r.datasetIndex,r.index)}}},{key:"getActiveElements",value:function(){return this._active||[]}},{key:"setActiveElements",value:function(e){var t=this,n=this._active||[],r=e.map((function(e){var n=e.datasetIndex,r=e.index,i=t.getDatasetMeta(n);if(!i)throw new Error("No dataset found at index "+n);return{datasetIndex:n,element:i.data[r],index:r}}));!Mk(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}},{key:"notifyPlugins",value:function(e,t,n){return this._plugins.notify(this,e,t,n)}},{key:"_updateHoverStyles",value:function(e,t,n){var r=this.options.hover,i=function(e,t){return e.filter((function(e){return!t.some((function(t){return e.datasetIndex===t.datasetIndex&&e.index===t.index}))}))},o=i(t,e),a=n?e:i(e,t);o.length&&this.updateHoverStyle(o,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}},{key:"_eventHandler",value:function(e,t){var n=this,r={event:e,replay:t,cancelable:!0,inChartArea:sS(e,this.chartArea,this._minPadding)},i=function(t){return(t.options.events||n.options.events).includes(e.native.type)};if(!1!==this.notifyPlugins("beforeEvent",r,i)){var o=this._handleEvent(e,t,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}}},{key:"_handleEvent",value:function(e,t,n){var r=this._active,i=void 0===r?[]:r,o=this.options,a=t,s=this._getActiveElements(e,i,n,a),l=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),u=function(e,t,n,r){return n&&"mouseout"!==e.type?r?t:e:null}(e,this._lastEvent,n,l);n&&(this._lastEvent=null,Ek(o.onHover,[e,s,this],this),l&&Ek(o.onClick,[e,s,this],this));var c=!Mk(s,i);return(c||t)&&(this._active=s,this._updateHoverStyles(s,i,t)),this._lastEvent=u,c}},{key:"_getActiveElements",value:function(e,t,n,r){if("mouseout"===e.type)return[];if(!n)return t;var i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}}]),e}(),zM=function(){return Tk(FM.instances,(function(e){return e._plugins.invalidate()}))},BM=!0;function UM(e,t,n){var r=t.startAngle,i=t.pixelMargin,o=t.x,a=t.y,s=t.outerRadius,l=t.innerRadius,u=i/s;e.beginPath(),e.arc(o,a,s,r-u,n+u),l>i?(u=i/l,e.arc(o,a,l,n+u,r-u,!0)):e.arc(o,a,i,n+Yk,r-Yk),e.closePath(),e.clip()}function VM(e,t,n,r){var i=function(e){return _S(e,["outerStart","outerEnd","innerStart","innerEnd"])}(e.options.borderRadius),o=(n-t)/2,a=Math.min(o,r*t/2),s=function(e){var t=(n-Math.min(o,e))*r/2;return uC(e,0,Math.min(o,t))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:uC(i.innerStart,0,a),innerEnd:uC(i.innerEnd,0,a)}}function HM(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function WM(e,t,n,r,i){var o=t.x,a=t.y,s=t.startAngle,l=t.pixelMargin,u=t.innerRadius,c=Math.max(t.outerRadius+r+n-l,0),f=u>0?u+r+n+l:0,d=0,h=i-s;if(r){var p=((u>0?u-r:0)+(c>0?c-r:0))/2;d=(h-(0!==p?h*p/(p+r):h))/2}var v=(h-Math.max(.001,h*c-n/Uk)/c)/2,m=s+v+d,g=i-v-d,y=VM(t,f,c,g-m),b=y.outerStart,_=y.outerEnd,x=y.innerStart,w=y.innerEnd,k=c-b,C=c-_,S=m+b/k,E=g-_/C,T=f+x,M=f+w,O=m+x/T,j=g-w/M;if(e.beginPath(),e.arc(o,a,c,S,E),_>0){var P=HM(C,E,o,a);e.arc(P.x,P.y,_,E,g+Yk)}var N=HM(M,g,o,a);if(e.lineTo(N.x,N.y),w>0){var D=HM(M,j,o,a);e.arc(D.x,D.y,w,g+Yk,j+Math.PI)}if(e.arc(o,a,f,g-w/f,m+x/f,!0),x>0){var L=HM(T,O,o,a);e.arc(L.x,L.y,x,O+Math.PI,m-Yk)}var R=HM(k,m,o,a);if(e.lineTo(R.x,R.y),b>0){var A=HM(k,S,o,a);e.arc(A.x,A.y,b,m-Yk,S)}e.closePath()}function ZM(e,t,n,r,i){var o=t.options,a=o.borderWidth,s=o.borderJoinStyle,l="inner"===o.borderAlign;a&&(l?(e.lineWidth=2*a,e.lineJoin=s||"round"):(e.lineWidth=a,e.lineJoin=s||"bevel"),t.fullCircles&&function(e,t,n){var r,i=t.x,o=t.y,a=t.startAngle,s=t.pixelMargin,l=t.fullCircles,u=Math.max(t.outerRadius-s,0),c=t.innerRadius+s;for(n&&UM(e,t,a+Vk),e.beginPath(),e.arc(i,o,c,a+Vk,a,!0),r=0;r<l;++r)e.stroke();for(e.beginPath(),e.arc(i,o,u,a,a+Vk),r=0;r<l;++r)e.stroke()}(e,t,l),l&&UM(e,t,i),WM(e,t,n,r,i),e.stroke())}Object.defineProperties(FM,{defaults:{enumerable:BM,value:tS},instances:{enumerable:BM,value:RM},overrides:{enumerable:BM,value:QC},registry:{enumerable:BM,value:hM},version:{enumerable:BM,value:"3.7.1"},getChart:{enumerable:BM,value:AM},register:{enumerable:BM,value:function(){hM.add.apply(hM,arguments),zM()}},unregister:{enumerable:BM,value:function(){hM.remove.apply(hM,arguments),zM()}}});var YM=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this)).options=void 0,r.circumference=void 0,r.startAngle=void 0,r.endAngle=void 0,r.innerRadius=void 0,r.outerRadius=void 0,r.pixelMargin=0,r.fullCircles=0,e&&Object.assign(As(r),e),r}return Vt(n,[{key:"inRange",value:function(e,t,n){var r=iC(this.getProps(["x","y"],n),{x:e,y:t}),i=r.angle,o=r.distance,a=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),s=a.startAngle,l=a.endAngle,u=a.innerRadius,c=a.outerRadius,f=a.circumference,d=this.options.spacing/2,h=Ck(f,l-s)>=Vk||lC(i,s,l),p=cC(o,u+d,c+d);return h&&p}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),n=t.x,r=t.y,i=t.startAngle,o=t.endAngle,a=t.innerRadius,s=t.outerRadius,l=this.options,u=l.offset,c=(i+o)/2,f=(a+s+l.spacing+u)/2;return{x:n+Math.cos(c)*f,y:r+Math.sin(c)*f}}},{key:"tooltipPosition",value:function(e){return this.getCenterPoint(e)}},{key:"draw",value:function(e){var t=this.options,n=this.circumference,r=(t.offset||0)/2,i=(t.spacing||0)/2;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>Vk?Math.floor(n/Vk):0,!(0===n||this.innerRadius<0||this.outerRadius<0)){e.save();var o=0;if(r){o=r/2;var a=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(a)*o,Math.sin(a)*o),this.circumference>=Uk&&(o=r)}e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor;var s=function(e,t,n,r){var i=t.fullCircles,o=t.startAngle,a=t.circumference,s=t.endAngle;if(i){WM(e,t,n,r,o+Vk);for(var l=0;l<i;++l)e.fill();isNaN(a)||(s=o+a%Vk,a%Vk===0&&(s+=Vk))}return WM(e,t,n,r,s),e.fill(),s}(e,this,o,i);ZM(e,this,o,i,s),e.restore()}}}]),n}(JT);function qM(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;e.lineCap=Ck(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ck(n.borderDash,t.borderDash)),e.lineDashOffset=Ck(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ck(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ck(n.borderWidth,t.borderWidth),e.strokeStyle=Ck(n.borderColor,t.borderColor)}function GM(e,t,n){e.lineTo(n.x,n.y)}function KM(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.length,i=n.start,o=void 0===i?0:i,a=n.end,s=void 0===a?r-1:a,l=t.start,u=t.end,c=Math.max(o,l),f=Math.min(s,u),d=o<l&&s<l||o>u&&s>u;return{count:r,start:c,loop:t.loop,ilen:f<c&&!d?r+f-c:f-c}}function QM(e,t,n,r){var i,o,a,s=t.points,l=t.options,u=KM(s,n,r),c=u.count,f=u.start,d=u.loop,h=u.ilen,p=function(e){return e.stepped?cS:e.tension||"monotone"===e.cubicInterpolationMode?fS:GM}(l),v=r||{},m=v.move,g=void 0===m||m,y=v.reverse;for(i=0;i<=h;++i)(o=s[(f+(y?h-i:i))%c]).skip||(g?(e.moveTo(o.x,o.y),g=!1):p(e,a,o,y,l.stepped),a=o);return d&&p(e,a,o=s[(f+(y?h:0))%c],y,l.stepped),!!d}function $M(e,t,n,r){var i,o,a,s,l,u,c=t.points,f=KM(c,n,r),d=f.count,h=f.start,p=f.ilen,v=r||{},m=v.move,g=void 0===m||m,y=v.reverse,b=0,_=0,x=function(e){return(h+(y?p-e:e))%d},w=function(){s!==l&&(e.lineTo(b,l),e.lineTo(b,s),e.lineTo(b,u))};for(g&&(o=c[x(0)],e.moveTo(o.x,o.y)),i=0;i<=p;++i)if(!(o=c[x(i)]).skip){var k=o.x,C=o.y,S=0|k;S===a?(C<s?s=C:C>l&&(l=C),b=(_*b+k)/++_):(w(),e.lineTo(k,C),a=S,_=0,s=l=C),u=C}w()}function XM(e){var t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&"monotone"!==t.cubicInterpolationMode&&!t.stepped&&!n?$M:QM}YM.id="arc",YM.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},YM.defaultRoutes={backgroundColor:"backgroundColor"};var JM="function"===typeof Path2D;function eO(e,t,n,r){JM&&!t.options.segment?function(e,t,n,r){var i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),qM(e,t.options),e.stroke(i)}(e,t,n,r):function(e,t,n,r){var i,o=t.segments,a=t.options,s=XM(t),l=dk(o);try{for(l.s();!(i=l.n()).done;){var u=i.value;qM(e,a,u.style),e.beginPath(),s(e,t,u,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}}catch(c){l.e(c)}finally{l.f()}}(e,t,n,r)}var tO=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this)).animated=!0,r.options=void 0,r._chart=void 0,r._loop=void 0,r._fullLoop=void 0,r._path=void 0,r._points=void 0,r._segments=void 0,r._decimated=!1,r._pointsUpdated=!1,r._datasetIndex=void 0,e&&Object.assign(As(r),e),r}return Vt(n,[{key:"updateControlPoints",value:function(e,t){var n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){var r=n.spanGaps?this._loop:this._fullLoop;eE(this._points,n,e,r,t),this._pointsUpdated=!0}}},{key:"points",get:function(){return this._points},set:function(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}},{key:"segments",get:function(){return this._segments||(this._segments=function(e,t){var n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];var o=!!e._loop,a=function(e,t,n,r){var i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return{start:i,end:o%=t}}(n,i,o,r),s=a.start,l=a.end;return SE(e,!0===r?[{start:s,end:l,loop:o}]:function(e,t,n,r){var i,o=e.length,a=[],s=t,l=e[t];for(i=t+1;i<=n;++i){var u=e[i%o];u.skip||u.stop?l.skip||(r=!1,a.push({start:t%o,end:(i-1)%o,loop:r}),t=s=u.stop?i:null):(s=i,l.skip&&(t=i)),l=u}return null!==s&&a.push({start:t%o,end:s%o,loop:r}),a}(n,s,l<s?l+i:l,!!e._fullLoop&&0===s&&l===i-1),n,t)}(this,this.options.segment))}},{key:"first",value:function(){var e=this.segments,t=this.points;return e.length&&t[e[0].start]}},{key:"last",value:function(){var e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}},{key:"interpolate",value:function(e,t){var n=this.options,r=e[t],i=this.points,o=CE(this,{property:t,start:r,end:r});if(o.length){var a,s,l=[],u=function(e){return e.stepped?pE:e.tension||"monotone"===e.cubicInterpolationMode?vE:hE}(n);for(a=0,s=o.length;a<s;++a){var c=o[a],f=c.start,d=c.end,h=i[f],p=i[d];if(h!==p){var v=u(h,p,Math.abs((r-h[t])/(p[t]-h[t])),n.stepped);v[t]=e[t],l.push(v)}else l.push(h)}return 1===l.length?l[0]:l}}},{key:"pathSegment",value:function(e,t,n){return XM(this)(e,this,t,n)}},{key:"path",value:function(e,t,n){var r=this.segments,i=XM(this),o=this._loop;t=t||0,n=n||this.points.length-t;var a,s=dk(r);try{for(s.s();!(a=s.n()).done;){o&=i(e,this,a.value,{start:t,end:t+n-1})}}catch(l){s.e(l)}finally{s.f()}return!!o}},{key:"draw",value:function(e,t,n,r){var i=this.options||{};(this.points||[]).length&&i.borderWidth&&(e.save(),eO(e,this,n,r),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}]),n}(JT);function nO(e,t,n,r){var i=e.options,o=e.getProps([n],r)[n];return Math.abs(t-o)<i.radius+i.hitRadius}tO.id="line",tO.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},tO.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},tO.descriptors={_scriptable:!0,_indexable:function(e){return"borderDash"!==e&&"fill"!==e}};var rO=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this)).options=void 0,r.parsed=void 0,r.skip=void 0,r.stop=void 0,e&&Object.assign(As(r),e),r}return Vt(n,[{key:"inRange",value:function(e,t,n){var r=this.options,i=this.getProps(["x","y"],n),o=i.x,a=i.y;return Math.pow(e-o,2)+Math.pow(t-a,2)<Math.pow(r.hitRadius+r.radius,2)}},{key:"inXRange",value:function(e,t){return nO(this,e,"x",t)}},{key:"inYRange",value:function(e,t){return nO(this,e,"y",t)}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y"],e);return{x:t.x,y:t.y}}},{key:"size",value:function(e){var t=(e=e||this.options||{}).radius||0;return 2*((t=Math.max(t,t&&e.hoverRadius||0))+(t&&e.borderWidth||0))}},{key:"draw",value:function(e,t){var n=this.options;this.skip||n.radius<.1||!sS(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,aS(e,n,this.x,this.y))}},{key:"getRange",value:function(){var e=this.options||{};return e.radius+e.hitRadius}}]),n}(JT);function iO(e,t){var n,r,i,o,a,s=e.getProps(["x","y","base","width","height"],t),l=s.x,u=s.y,c=s.base,f=s.width,d=s.height;return e.horizontal?(a=d/2,n=Math.min(l,c),r=Math.max(l,c),i=u-a,o=u+a):(n=l-(a=f/2),r=l+a,i=Math.min(u,c),o=Math.max(u,c)),{left:n,top:i,right:r,bottom:o}}function oO(e,t,n,r){return e?0:uC(t,n,r)}function aO(e){var t=iO(e),n=t.right-t.left,r=t.bottom-t.top,i=function(e,t,n){var r=e.options.borderWidth,i=e.borderSkipped,o=xS(r);return{t:oO(i.top,o.top,0,n),r:oO(i.right,o.right,0,t),b:oO(i.bottom,o.bottom,0,n),l:oO(i.left,o.left,0,t)}}(e,n/2,r/2),o=function(e,t,n){var r=e.getProps(["enableBorderRadius"]).enableBorderRadius,i=e.options.borderRadius,o=wS(i),a=Math.min(t,n),s=e.borderSkipped,l=r||xk(i);return{topLeft:oO(!l||s.top||s.left,o.topLeft,0,a),topRight:oO(!l||s.top||s.right,o.topRight,0,a),bottomLeft:oO(!l||s.bottom||s.left,o.bottomLeft,0,a),bottomRight:oO(!l||s.bottom||s.right,o.bottomRight,0,a)}}(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:o},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}function sO(e,t,n,r){var i=null===t,o=null===n,a=e&&!(i&&o)&&iO(e,r);return a&&(i||cC(t,a.left,a.right))&&(o||cC(n,a.top,a.bottom))}function lO(e,t){e.rect(t.x,t.y,t.w,t.h)}function uO(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+o,h:e.h+a,radius:e.radius}}rO.id="point",rO.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},rO.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var cO=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this)).options=void 0,r.horizontal=void 0,r.base=void 0,r.width=void 0,r.height=void 0,r.inflateAmount=void 0,e&&Object.assign(As(r),e),r}return Vt(n,[{key:"draw",value:function(e){var t,n=this.inflateAmount,r=this.options,i=r.borderColor,o=r.backgroundColor,a=aO(this),s=a.inner,l=a.outer,u=(t=l.radius).topLeft||t.topRight||t.bottomLeft||t.bottomRight?vS:lO;e.save(),l.w===s.w&&l.h===s.h||(e.beginPath(),u(e,uO(l,n,s)),e.clip(),u(e,uO(s,-n,l)),e.fillStyle=i,e.fill("evenodd")),e.beginPath(),u(e,uO(s,n)),e.fillStyle=o,e.fill(),e.restore()}},{key:"inRange",value:function(e,t,n){return sO(this,e,t,n)}},{key:"inXRange",value:function(e,t){return sO(this,e,null,t)}},{key:"inYRange",value:function(e,t){return sO(this,null,e,t)}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y","base","horizontal"],e),n=t.x,r=t.y,i=t.base,o=t.horizontal;return{x:o?(n+i)/2:n,y:o?r:(r+i)/2}}},{key:"getRange",value:function(e){return"x"===e?this.width/2:this.height/2}}]),n}(JT);cO.id="bar",cO.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},cO.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var fO=Object.freeze({__proto__:null,ArcElement:YM,LineElement:tO,PointElement:rO,BarElement:cO});function dO(e){if(e._decimated){var t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function hO(e){e.data.datasets.forEach((function(e){dO(e)}))}var pO={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:function(e,t,n){if(n.enabled){var r=e.width;e.data.datasets.forEach((function(t,i){var o=t._data,a=t.indexAxis,s=e.getDatasetMeta(i),l=o||t.data;if("y"!==SS([a,e.options.indexAxis])&&"line"===s.type){var u=e.scales[s.xAxisID];if(("linear"===u.type||"time"===u.type)&&!e.options.parsing){var c=function(e,t){var n=t.length,r=0,i=e.iScale,o=i.getUserBounds(),a=o.min,s=o.max,l=o.minDefined,u=o.maxDefined;return l&&(r=uC(MS(t,i.axis,a).lo,0,n-1)),{start:r,count:u?uC(MS(t,i.axis,s).hi+1,r,n)-r:n-r}}(s,l),f=c.start,d=c.count;if(d<=(n.threshold||4*r))dO(t);else{var h;switch(bk(o)&&(t._data=l,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),n.algorithm){case"lttb":h=function(e,t,n,r,i){var o=i.samples||r;if(o>=n)return e.slice(t,t+n);var a,s,l,u,c,f=[],d=(n-2)/(o-2),h=0,p=t+n-1,v=t;for(f[h++]=e[v],a=0;a<o-2;a++){var m=0,g=0,y=void 0,b=Math.floor((a+1)*d)+1+t,_=Math.min(Math.floor((a+2)*d)+1,n)+t,x=_-b;for(y=b;y<_;y++)m+=e[y].x,g+=e[y].y;m/=x,g/=x;var w=Math.floor(a*d)+1+t,k=Math.min(Math.floor((a+1)*d)+1,n)+t,C=e[v],S=C.x,E=C.y;for(l=u=-1,y=w;y<k;y++)(u=.5*Math.abs((S-m)*(e[y].y-E)-(S-e[y].x)*(g-E)))>l&&(l=u,s=e[y],c=y);f[h++]=s,v=c}return f[h++]=e[p],f}(l,f,d,r,n);break;case"min-max":h=function(e,t,n,r){var i,o,a,s,l,u,c,f,d,h,p=0,v=0,m=[],g=t+n-1,y=e[t].x,b=e[g].x-y;for(i=t;i<t+n;++i){a=((o=e[i]).x-y)/b*r,s=o.y;var _=0|a;if(_===l)s<d?(d=s,u=i):s>h&&(h=s,c=i),p=(v*p+o.x)/++v;else{var x=i-1;if(!bk(u)&&!bk(c)){var w=Math.min(u,c),k=Math.max(u,c);w!==f&&w!==x&&m.push(Ze(Ze({},e[w]),{},{x:p})),k!==f&&k!==x&&m.push(Ze(Ze({},e[k]),{},{x:p}))}i>0&&x!==f&&m.push(e[x]),m.push(o),l=_,v=0,d=h=s,u=c=f=i}}return m}(l,f,d,r);break;default:throw new Error("Unsupported decimation algorithm '".concat(n.algorithm,"'"))}t._decimated=h}}}}))}else hO(e)},destroy:function(e){hO(e)}};function vO(e,t,n){var r=function(e){var t=e.options,n=t.fill,r=Ck(n&&n.target,n);return void 0===r&&(r=!!t.backgroundColor),!1!==r&&null!==r&&(!0===r?"origin":r)}(e);if(xk(r))return!isNaN(r.value)&&r;var i=parseFloat(r);return wk(i)&&Math.floor(i)===i?("-"!==r[0]&&"+"!==r[0]||(i=t+i),!(i===t||i<0||i>=n)&&i):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}var mO=function(){function e(t){Ht(this,e),this.x=t.x,this.y=t.y,this.radius=t.radius}return Vt(e,[{key:"pathSegment",value:function(e,t,n){var r=this.x,i=this.y,o=this.radius;return t=t||{start:0,end:Vk},e.arc(r,i,o,t.end,t.start,!0),!n.bounds}},{key:"interpolate",value:function(e){var t=this.x,n=this.y,r=this.radius,i=e.angle;return{x:t+Math.cos(i)*r,y:n+Math.sin(i)*r,angle:i}}}]),e}();function gO(e){return(e.scale||{}).getPointPositionForValue?function(e){var t,n,r,i=e.scale,o=e.fill,a=i.options,s=i.getLabels().length,l=[],u=a.reverse?i.max:i.min,c=a.reverse?i.min:i.max;if(r="start"===o?u:"end"===o?c:xk(o)?o.value:i.getBaseValue(),a.grid.circular)return n=i.getPointPositionForValue(0,u),new mO({x:n.x,y:n.y,radius:i.getDistanceFromCenterForValue(r)});for(t=0;t<s;++t)l.push(i.getPointPositionForValue(t,r));return l}(e):function(e){var t,n=e.scale,r=void 0===n?{}:n,i=e.fill,o=null;return"start"===i?o=r.bottom:"end"===i?o=r.top:xk(i)?o=r.getPixelForValue(i.value):r.getBasePixel&&(o=r.getBasePixel()),wk(o)?{x:(t=r.isHorizontal())?o:null,y:t?null:o}:null}(e)}function yO(e,t,n){for(;t>e;t--){var r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function bO(e,t,n){for(var r=[],i=0;i<n.length;i++){var o=_O(n[i],t,"x"),a=o.first,s=o.last,l=o.point;if(!(!l||a&&s))if(a)r.unshift(l);else if(e.push(l),!s)break}e.push.apply(e,r)}function _O(e,t,n){var r=e.interpolate(t,n);if(!r)return{};for(var i=r[n],o=e.segments,a=e.points,s=!1,l=!1,u=0;u<o.length;u++){var c=o[u],f=a[c.start][n],d=a[c.end][n];if(cC(i,f,d)){s=i===f,l=i===d;break}}return{first:s,last:l,point:r}}function xO(e){var t=e.chart,n=e.fill,r=e.line;if(wk(n))return function(e,t){var n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}(t,n);if("stack"===n)return function(e){var t=e.scale,n=e.index,r=e.line,i=[],o=r.segments,a=r.points,s=function(e,t){for(var n=[],r=e.getMatchingVisibleMetas("line"),i=0;i<r.length;i++){var o=r[i];if(o.index===t)break;o.hidden||n.unshift(o.dataset)}return n}(t,n);s.push(wO({x:null,y:t.bottom},r));for(var l=0;l<o.length;l++)for(var u=o[l],c=u.start;c<=u.end;c++)bO(i,a[c],s);return new tO({points:i,options:{}})}(e);if("shape"===n)return!0;var i=gO(e);return i instanceof mO?i:wO(i,r)}function wO(e,t){var n=[],r=!1;return _k(e)?(r=!0,n=e):n=function(e,t){var n=e||{},r=n.x,i=void 0===r?null:r,o=n.y,a=void 0===o?null:o,s=t.points,l=[];return t.segments.forEach((function(e){var t=e.start,n=e.end;n=yO(t,n,s);var r=s[t],o=s[n];null!==a?(l.push({x:r.x,y:a}),l.push({x:o.x,y:a})):null!==i&&(l.push({x:i,y:r.y}),l.push({x:i,y:o.y}))})),l}(e,t),n.length?new tO({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function kO(e,t,n){var r,i=e[t].fill,o=[t];if(!n)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!wk(i))return i;if(!(r=e[i]))return!1;if(r.visible)return i;o.push(i),i=r.fill}return!1}function CO(e,t,n){var r=t.segments,i=t.points,o=!0,a=!1;e.beginPath();var s,l=dk(r);try{for(l.s();!(s=l.n()).done;){var u=s.value,c=u.start,f=u.end,d=i[c],h=i[yO(c,f,i)];o?(e.moveTo(d.x,d.y),o=!1):(e.lineTo(d.x,n),e.lineTo(d.x,d.y)),(a=!!t.pathSegment(e,u,{move:a}))?e.closePath():e.lineTo(h.x,n)}}catch(p){l.e(p)}finally{l.f()}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function SO(e,t,n,r){if(!r){var i=t[e],o=n[e];return"angle"===e&&(i=sC(i),o=sC(o)),{property:e,start:i,end:o}}}function EO(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function TO(e,t,n){var r=t.chart.chartArea,i=r.top,o=r.bottom,a=n||{},s=a.property,l=a.start,u=a.end;"x"===s&&(e.beginPath(),e.rect(l,i,u-l,o-i),e.clip())}function MO(e,t,n,r){var i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}function OO(e,t){var n,r=t.line,i=t.target,o=t.property,a=t.color,s=t.scale,l=function(e,t,n){var r,i=e.segments,o=e.points,a=t.points,s=[],l=dk(i);try{for(l.s();!(r=l.n()).done;){var u=r.value,c=u.start,f=u.end;f=yO(c,f,o);var d=SO(n,o[c],o[f],u.loop);if(t.segments){var h,p=dk(CE(t,d));try{for(p.s();!(h=p.n()).done;){var v,m=h.value,g=SO(n,a[m.start],a[m.end],m.loop),y=dk(kE(u,o,g));try{for(y.s();!(v=y.n()).done;){var b=v.value;s.push({source:b,target:m,start:He({},n,EO(d,g,"start",Math.max)),end:He({},n,EO(d,g,"end",Math.min))})}}catch(_){y.e(_)}finally{y.f()}}}catch(_){p.e(_)}finally{p.f()}}else s.push({source:u,target:d,start:o[c],end:o[f]})}}catch(_){l.e(_)}finally{l.f()}return s}(r,i,o),u=dk(l);try{for(u.s();!(n=u.n()).done;){var c=n.value,f=c.source,d=c.target,h=c.start,p=c.end,v=f.style,m=(v=void 0===v?{}:v).backgroundColor,g=void 0===m?a:m,y=!0!==i;e.save(),e.fillStyle=g,TO(e,s,y&&SO(o,h,p)),e.beginPath();var b=!!r.pathSegment(e,f),_=void 0;if(y){b?e.closePath():MO(e,i,p,o);var x=!!i.pathSegment(e,d,{move:b,reverse:!0});(_=b&&x)||MO(e,i,h,o)}e.closePath(),e.fill(_?"evenodd":"nonzero"),e.restore()}}catch(w){u.e(w)}finally{u.f()}}function jO(e,t,n){var r=xO(t),i=t.line,o=t.scale,a=t.axis,s=i.options,l=s.fill,u=s.backgroundColor,c=l||{},f=c.above,d=void 0===f?u:f,h=c.below,p=void 0===h?u:h;r&&i.points.length&&(lS(e,n),function(e,t){var n=t.line,r=t.target,i=t.above,o=t.below,a=t.area,s=t.scale,l=n._loop?"angle":t.axis;e.save(),"x"===l&&o!==i&&(CO(e,r,a.top),OO(e,{line:n,target:r,color:i,scale:s,property:l}),e.restore(),e.save(),CO(e,r,a.bottom)),OO(e,{line:n,target:r,color:o,scale:s,property:l}),e.restore()}(e,{line:i,target:r,above:d,below:p,area:n,scale:o,axis:a}),uS(e))}var PO={id:"filler",afterDatasetsUpdate:function(e,t,n){var r,i,o,a,s=(e.data.datasets||[]).length,l=[];for(i=0;i<s;++i)a=null,(o=(r=e.getDatasetMeta(i)).dataset)&&o.options&&o instanceof tO&&(a={visible:e.isDatasetVisible(i),index:i,fill:vO(o,i,s),chart:e,axis:r.controller.options.indexAxis,scale:r.vScale,line:o}),r.$filler=a,l.push(a);for(i=0;i<s;++i)(a=l[i])&&!1!==a.fill&&(a.fill=kO(l,i,n.propagate))},beforeDraw:function(e,t,n){for(var r="beforeDraw"===n.drawTime,i=e.getSortedVisibleDatasetMetas(),o=e.chartArea,a=i.length-1;a>=0;--a){var s=i[a].$filler;s&&(s.line.updateControlPoints(o,s.axis),r&&jO(e.ctx,s,o))}},beforeDatasetsDraw:function(e,t,n){if("beforeDatasetsDraw"===n.drawTime)for(var r=e.getSortedVisibleDatasetMetas(),i=r.length-1;i>=0;--i){var o=r[i].$filler;o&&jO(e.ctx,o,e.chartArea)}},beforeDatasetDraw:function(e,t,n){var r=t.meta.$filler;r&&!1!==r.fill&&"beforeDatasetDraw"===n.drawTime&&jO(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},NO=function(e,t){var n=e.boxHeight,r=void 0===n?t:n,i=e.boxWidth,o=void 0===i?t:i;return e.usePointStyle&&(r=Math.min(r,t),o=Math.min(o,t)),{boxWidth:o,boxHeight:r,itemHeight:Math.max(t,r)}},DO=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this))._added=!1,r.legendHitBoxes=[],r._hoveredItem=null,r.doughnutMode=!1,r.chart=e.chart,r.options=e.options,r.ctx=e.ctx,r.legendItems=void 0,r.columnSizes=void 0,r.lineWidths=void 0,r.maxHeight=void 0,r.maxWidth=void 0,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.height=void 0,r.width=void 0,r._margins=void 0,r.position=void 0,r.weight=void 0,r.fullSize=void 0,r}return Vt(n,[{key:"update",value:function(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}},{key:"setDimensions",value:function(){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)}},{key:"buildLabels",value:function(){var e=this,t=this.options.labels||{},n=Ek(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter((function(n){return t.filter(n,e.chart.data)}))),t.sort&&(n=n.sort((function(n,r){return t.sort(n,r,e.chart.data)}))),this.options.reverse&&n.reverse(),this.legendItems=n}},{key:"fit",value:function(){var e=this.options,t=this.ctx;if(e.display){var n,r,i=e.labels,o=CS(i.font),a=o.size,s=this._computeTitleHeight(),l=NO(i,a),u=l.boxWidth,c=l.itemHeight;t.font=o.string,this.isHorizontal()?(n=this.maxWidth,r=this._fitRows(s,a,u,c)+10):(r=this.maxHeight,n=this._fitCols(s,a,u,c)+10),this.width=Math.min(n,e.maxWidth||this.maxWidth),this.height=Math.min(r,e.maxHeight||this.maxHeight)}else this.width=this.height=0}},{key:"_fitRows",value:function(e,t,n,r){var i=this.ctx,o=this.maxWidth,a=this.options.labels.padding,s=this.legendHitBoxes=[],l=this.lineWidths=[0],u=r+a,c=e;i.textAlign="left",i.textBaseline="middle";var f=-1,d=-u;return this.legendItems.forEach((function(e,h){var p=n+t/2+i.measureText(e.text).width;(0===h||l[l.length-1]+p+2*a>o)&&(c+=u,l[l.length-(h>0?0:1)]=0,d+=u,f++),s[h]={left:0,top:d,row:f,width:p,height:r},l[l.length-1]+=p+a})),c}},{key:"_fitCols",value:function(e,t,n,r){var i=this.ctx,o=this.maxHeight,a=this.options.labels.padding,s=this.legendHitBoxes=[],l=this.columnSizes=[],u=o-e,c=a,f=0,d=0,h=0,p=0;return this.legendItems.forEach((function(e,o){var v=n+t/2+i.measureText(e.text).width;o>0&&d+r+2*a>u&&(c+=f+a,l.push({width:f,height:d}),h+=f+a,p++,f=d=0),s[o]={left:h,top:d,col:p,width:v,height:r},f=Math.max(f,v),d+=r+a})),c+=f,l.push({width:f,height:d}),c}},{key:"adjustHitBoxes",value:function(){if(this.options.display){var e=this._computeTitleHeight(),t=this.legendHitBoxes,n=this.options,r=n.align,i=n.labels.padding,o=yE(n.rtl,this.left,this.width);if(this.isHorizontal()){var a,s=0,l=mk(r,this.left+i,this.right-this.lineWidths[s]),u=dk(t);try{for(u.s();!(a=u.n()).done;){var c=a.value;s!==c.row&&(s=c.row,l=mk(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+e+i,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+i}}catch(m){u.e(m)}finally{u.f()}}else{var f,d=0,h=mk(r,this.top+e+i,this.bottom-this.columnSizes[d].height),p=dk(t);try{for(p.s();!(f=p.n()).done;){var v=f.value;v.col!==d&&(d=v.col,h=mk(r,this.top+e+i,this.bottom-this.columnSizes[d].height)),v.top=h,v.left+=this.left+i,v.left=o.leftForLtr(o.x(v.left),v.width),h+=v.height+i}}catch(m){p.e(m)}finally{p.f()}}}}},{key:"isHorizontal",value:function(){return"top"===this.options.position||"bottom"===this.options.position}},{key:"draw",value:function(){if(this.options.display){var e=this.ctx;lS(e,this),this._draw(),uS(e)}}},{key:"_draw",value:function(){var e,t=this,n=this.options,r=this.columnSizes,i=this.lineWidths,o=this.ctx,a=n.align,s=n.labels,l=tS.color,u=yE(n.rtl,this.left,this.width),c=CS(s.font),f=s.color,d=s.padding,h=c.size,p=h/2;this.drawTitle(),o.textAlign=u.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;var v=NO(s,h),m=v.boxWidth,g=v.boxHeight,y=v.itemHeight,b=this.isHorizontal(),_=this._computeTitleHeight();e=b?{x:mk(a,this.left+d,this.right-i[0]),y:this.top+d+_,line:0}:{x:this.left+d,y:mk(a,this.top+_+d,this.bottom-r[0].height),line:0},bE(this.ctx,n.textDirection);var x=y+d;this.legendItems.forEach((function(v,w){o.strokeStyle=v.fontColor||f,o.fillStyle=v.fontColor||f;var k=o.measureText(v.text).width,C=u.textAlign(v.textAlign||(v.textAlign=s.textAlign)),S=m+p+k,E=e.x,T=e.y;u.setWidth(t.width),b?w>0&&E+S+d>t.right&&(T=e.y+=x,e.line++,E=e.x=mk(a,t.left+d,t.right-i[e.line])):w>0&&T+x>t.bottom&&(E=e.x=E+r[e.line].width+d,e.line++,T=e.y=mk(a,t.top+_+d,t.bottom-r[e.line].height)),function(e,t,n){if(!(isNaN(m)||m<=0||isNaN(g)||g<0)){o.save();var r=Ck(n.lineWidth,1);if(o.fillStyle=Ck(n.fillStyle,l),o.lineCap=Ck(n.lineCap,"butt"),o.lineDashOffset=Ck(n.lineDashOffset,0),o.lineJoin=Ck(n.lineJoin,"miter"),o.lineWidth=r,o.strokeStyle=Ck(n.strokeStyle,l),o.setLineDash(Ck(n.lineDash,[])),s.usePointStyle){var i={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},a=u.xPlus(e,m/2);aS(o,i,a,t+p)}else{var c=t+Math.max((h-g)/2,0),f=u.leftForLtr(e,m),d=wS(n.borderRadius);o.beginPath(),Object.values(d).some((function(e){return 0!==e}))?vS(o,{x:f,y:c,w:m,h:g,radius:d}):o.rect(f,c,m,g),o.fill(),0!==r&&o.stroke()}o.restore()}}(u.x(E),T,v),E=function(e,t,n,r){return e===(r?"left":"right")?n:"center"===e?(t+n)/2:t}(C,E+m+p,b?E+S:t.right,n.rtl),function(e,t,n){dS(o,n.text,e,t+y/2,c,{strikethrough:n.hidden,textAlign:u.textAlign(n.textAlign)})}(u.x(E),T,v),b?e.x+=S+d:e.y+=x})),_E(this.ctx,n.textDirection)}},{key:"drawTitle",value:function(){var e=this.options,t=e.title,n=CS(t.font),r=kS(t.padding);if(t.display){var i,o=yE(e.rtl,this.left,this.width),a=this.ctx,s=t.position,l=n.size/2,u=r.top+l,c=this.left,f=this.width;if(this.isHorizontal())f=Math.max.apply(Math,g(this.lineWidths)),i=this.top+u,c=mk(e.align,c,this.right-f);else{var d=this.columnSizes.reduce((function(e,t){return Math.max(e,t.height)}),0);i=u+mk(e.align,this.top,this.bottom-d-e.labels.padding-this._computeTitleHeight())}var h=mk(s,c,c+f);a.textAlign=o.textAlign(vk(s)),a.textBaseline="middle",a.strokeStyle=t.color,a.fillStyle=t.color,a.font=n.string,dS(a,t.text,h,i,n)}}},{key:"_computeTitleHeight",value:function(){var e=this.options.title,t=CS(e.font),n=kS(e.padding);return e.display?t.lineHeight+n.height:0}},{key:"_getLegendItemAt",value:function(e,t){var n,r,i;if(cC(e,this.left,this.right)&&cC(t,this.top,this.bottom))for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(cC(e,(r=i[n]).left,r.left+r.width)&&cC(t,r.top,r.top+r.height))return this.legendItems[n];return null}},{key:"handleEvent",value:function(e){var t=this.options;if(function(e,t){if("mousemove"===e&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t)){var n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type){var r=this._hoveredItem,i=function(e,t){return null!==e&&null!==t&&e.datasetIndex===t.datasetIndex&&e.index===t.index}(r,n);r&&!i&&Ek(t.onLeave,[e,r,this],this),this._hoveredItem=n,n&&!i&&Ek(t.onHover,[e,n,this],this)}else n&&Ek(t.onClick,[e,n,this],this)}}}]),n}(JT);var LO={id:"legend",_element:DO,start:function(e,t,n){var r=e.legend=new DO({ctx:e.ctx,options:n,chart:e});RT(e,r,n),DT(e,r)},stop:function(e){LT(e,e.legend),delete e.legend},beforeUpdate:function(e,t,n){var r=e.legend;RT(e,r,n),r.options=n},afterUpdate:function(e){var t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent:function(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick:function(e,t,n){var r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:function(e){return e.chart.options.color},boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.legend.options.labels,r=n.usePointStyle,i=n.pointStyle,o=n.textAlign,a=n.color;return e._getSortedDatasetMetas().map((function(e){var n=e.controller.getStyle(r?0:void 0),s=kS(n.borderWidth);return{text:t[e.index].label,fillStyle:n.backgroundColor,fontColor:a,hidden:!e.visible,lineCap:n.borderCapStyle,lineDash:n.borderDash,lineDashOffset:n.borderDashOffset,lineJoin:n.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:n.borderColor,pointStyle:i||n.pointStyle,rotation:n.rotation,textAlign:o||n.textAlign,borderRadius:0,datasetIndex:e.index}}),this)}},title:{color:function(e){return e.chart.options.color},display:!1,position:"center",text:""}},descriptors:{_scriptable:function(e){return!e.startsWith("on")},labels:{_scriptable:function(e){return!["generateLabels","filter","sort"].includes(e)}}}},RO=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this)).chart=e.chart,r.options=e.options,r.ctx=e.ctx,r._padding=void 0,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.width=void 0,r.height=void 0,r.position=void 0,r.weight=void 0,r.fullSize=void 0,r}return Vt(n,[{key:"update",value:function(e,t){var n=this.options;if(this.left=0,this.top=0,n.display){this.width=this.right=e,this.height=this.bottom=t;var r=_k(n.text)?n.text.length:1;this._padding=kS(n.padding);var i=r*CS(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}else this.width=this.height=this.right=this.bottom=0}},{key:"isHorizontal",value:function(){var e=this.options.position;return"top"===e||"bottom"===e}},{key:"_drawArgs",value:function(e){var t,n,r,i=this.top,o=this.left,a=this.bottom,s=this.right,l=this.options,u=l.align,c=0;return this.isHorizontal()?(n=mk(u,o,s),r=i+e,t=s-o):("left"===l.position?(n=o+e,r=mk(u,a,i),c=-.5*Uk):(n=s-e,r=mk(u,i,a),c=.5*Uk),t=a-i),{titleX:n,titleY:r,maxWidth:t,rotation:c}}},{key:"draw",value:function(){var e=this.ctx,t=this.options;if(t.display){var n=CS(t.font),r=n.lineHeight/2+this._padding.top,i=this._drawArgs(r),o=i.titleX,a=i.titleY,s=i.maxWidth,l=i.rotation;dS(e,t.text,0,0,n,{color:t.color,maxWidth:s,rotation:l,textAlign:vk(t.align),textBaseline:"middle",translation:[o,a]})}}}]),n}(JT);var AO={id:"title",_element:RO,start:function(e,t,n){!function(e,t){var n=new RO({ctx:e.ctx,options:t,chart:e});RT(e,n,t),DT(e,n),e.titleBlock=n}(e,n)},stop:function(e){var t=e.titleBlock;LT(e,t),delete e.titleBlock},beforeUpdate:function(e,t,n){var r=e.titleBlock;RT(e,r,n),r.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}},IO=new WeakMap,FO={id:"subtitle",start:function(e,t,n){var r=new RO({ctx:e.ctx,options:n,chart:e});RT(e,r,n),DT(e,r),IO.set(e,r)},stop:function(e){LT(e,IO.get(e)),IO.delete(e)},beforeUpdate:function(e,t,n){var r=IO.get(e);RT(e,r,n),r.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}},zO={average:function(e){if(!e.length)return!1;var t,n,r=0,i=0,o=0;for(t=0,n=e.length;t<n;++t){var a=e[t].element;if(a&&a.hasValue()){var s=a.tooltipPosition();r+=s.x,i+=s.y,++o}}return{x:r/o,y:i/o}},nearest:function(e,t){if(!e.length)return!1;var n,r,i,o=t.x,a=t.y,s=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){var l=e[n].element;if(l&&l.hasValue()){var u=oC(t,l.getCenterPoint());u<s&&(s=u,i=l)}}if(i){var c=i.tooltipPosition();o=c.x,a=c.y}return{x:o,y:a}}};function BO(e,t){return t&&(_k(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function UO(e){return("string"===typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function VO(e,t){var n=t.element,r=t.datasetIndex,i=t.index,o=e.getDatasetMeta(r).controller,a=o.getLabelAndValue(i),s=a.label,l=a.value;return{chart:e,label:s,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:l,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function HO(e,t){var n=e.chart.ctx,r=e.body,i=e.footer,o=e.title,a=t.boxWidth,s=t.boxHeight,l=CS(t.bodyFont),u=CS(t.titleFont),c=CS(t.footerFont),f=o.length,d=i.length,h=r.length,p=kS(t.padding),v=p.height,m=0,g=r.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);(g+=e.beforeBody.length+e.afterBody.length,f&&(v+=f*u.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),g)&&(v+=h*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(g-h)*l.lineHeight+(g-1)*t.bodySpacing);d&&(v+=t.footerMarginTop+d*c.lineHeight+(d-1)*t.footerSpacing);var y=0,b=function(e){m=Math.max(m,n.measureText(e).width+y)};return n.save(),n.font=u.string,Tk(e.title,b),n.font=l.string,Tk(e.beforeBody.concat(e.afterBody),b),y=t.displayColors?a+2+t.boxPadding:0,Tk(r,(function(e){Tk(e.before,b),Tk(e.lines,b),Tk(e.after,b)})),y=0,n.font=c.string,Tk(e.footer,b),n.restore(),{width:m+=p.width,height:v}}function WO(e,t,n,r){var i=n.x,o=n.width,a=e.width,s=e.chartArea,l=s.left,u=s.right,c="center";return"center"===r?c=i<=(l+u)/2?"left":"right":i<=o/2?c="left":i>=a-o/2&&(c="right"),function(e,t,n,r){var i=r.x,o=r.width,a=n.caretSize+n.caretPadding;return"left"===e&&i+o+a>t.width||"right"===e&&i-o-a<0||void 0}(c,e,t,n)&&(c="center"),c}function ZO(e,t,n){var r=n.yAlign||t.yAlign||function(e,t){var n=t.y,r=t.height;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||WO(e,t,n,r),yAlign:r}}function YO(e,t,n,r){var i=e.caretSize,o=e.caretPadding,a=e.cornerRadius,s=n.xAlign,l=n.yAlign,u=i+o,c=wS(a),f=c.topLeft,d=c.topRight,h=c.bottomLeft,p=c.bottomRight,v=function(e,t){var n=e.x,r=e.width;return"right"===t?n-=r:"center"===t&&(n-=r/2),n}(t,s),m=function(e,t,n){var r=e.y,i=e.height;return"top"===t?r+=n:r-="bottom"===t?i+n:i/2,r}(t,l,u);return"center"===l?"left"===s?v+=u:"right"===s&&(v-=u):"left"===s?v-=Math.max(f,h)+i:"right"===s&&(v+=Math.max(d,p)+i),{x:uC(v,0,r.width-t.width),y:uC(m,0,r.height-t.height)}}function qO(e,t,n){var r=kS(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-r.right:e.x+r.left}function GO(e){return BO([],UO(e))}function KO(e,t){var n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var QO=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this)).opacity=0,r._active=[],r._eventPosition=void 0,r._size=void 0,r._cachedAnimations=void 0,r._tooltipItems=[],r.$animations=void 0,r.$context=void 0,r.chart=e.chart||e._chart,r._chart=r.chart,r.options=e.options,r.dataPoints=void 0,r.title=void 0,r.beforeBody=void 0,r.body=void 0,r.afterBody=void 0,r.footer=void 0,r.xAlign=void 0,r.yAlign=void 0,r.x=void 0,r.y=void 0,r.height=void 0,r.width=void 0,r.caretX=void 0,r.caretY=void 0,r.labelColors=void 0,r.labelPointStyles=void 0,r.labelTextColors=void 0,r}return Vt(n,[{key:"initialize",value:function(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}},{key:"_resolveAnimations",value:function(){var e=this._cachedAnimations;if(e)return e;var t=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&t.options.animation&&n.animations,i=new LE(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}},{key:"getContext",value:function(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,n=this._tooltipItems,ES(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}},{key:"getTitle",value:function(e,t){var n=t.callbacks,r=n.beforeTitle.apply(this,[e]),i=n.title.apply(this,[e]),o=n.afterTitle.apply(this,[e]),a=[];return a=BO(a,UO(r)),a=BO(a,UO(i)),a=BO(a,UO(o))}},{key:"getBeforeBody",value:function(e,t){return GO(t.callbacks.beforeBody.apply(this,[e]))}},{key:"getBody",value:function(e,t){var n=this,r=t.callbacks,i=[];return Tk(e,(function(e){var t={before:[],lines:[],after:[]},o=KO(r,e);BO(t.before,UO(o.beforeLabel.call(n,e))),BO(t.lines,o.label.call(n,e)),BO(t.after,UO(o.afterLabel.call(n,e))),i.push(t)})),i}},{key:"getAfterBody",value:function(e,t){return GO(t.callbacks.afterBody.apply(this,[e]))}},{key:"getFooter",value:function(e,t){var n=t.callbacks,r=n.beforeFooter.apply(this,[e]),i=n.footer.apply(this,[e]),o=n.afterFooter.apply(this,[e]),a=[];return a=BO(a,UO(r)),a=BO(a,UO(i)),a=BO(a,UO(o))}},{key:"_createItems",value:function(e){var t,n,r=this,i=this._active,o=this.chart.data,a=[],s=[],l=[],u=[];for(t=0,n=i.length;t<n;++t)u.push(VO(this.chart,i[t]));return e.filter&&(u=u.filter((function(t,n,r){return e.filter(t,n,r,o)}))),e.itemSort&&(u=u.sort((function(t,n){return e.itemSort(t,n,o)}))),Tk(u,(function(t){var n=KO(e.callbacks,t);a.push(n.labelColor.call(r,t)),s.push(n.labelPointStyle.call(r,t)),l.push(n.labelTextColor.call(r,t))})),this.labelColors=a,this.labelPointStyles=s,this.labelTextColors=l,this.dataPoints=u,u}},{key:"update",value:function(e,t){var n,r=this.options.setContext(this.getContext()),i=this._active,o=[];if(i.length){var a=zO[r.position].call(this,i,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);var s=this._size=HO(this,r),l=Object.assign({},a,s),u=ZO(this.chart,r,l),c=YO(r,l,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,n={opacity:1,x:c.x,y:c.y,width:s.width,height:s.height,caretX:a.x,caretY:a.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=o,this.$context=void 0,n&&this._resolveAnimations().update(this,n),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:t})}},{key:"drawCaret",value:function(e,t,n,r){var i=this.getCaretPosition(e,n,r);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x3,i.y3)}},{key:"getCaretPosition",value:function(e,t,n){var r,i,o,a,s,l,u=this.xAlign,c=this.yAlign,f=n.caretSize,d=wS(n.cornerRadius),h=d.topLeft,p=d.topRight,v=d.bottomLeft,m=d.bottomRight,g=e.x,y=e.y,b=t.width,_=t.height;return"center"===c?(s=y+_/2,"left"===u?(i=(r=g)-f,a=s+f,l=s-f):(i=(r=g+b)+f,a=s-f,l=s+f),o=r):(i="left"===u?g+Math.max(h,v)+f:"right"===u?g+b-Math.max(p,m)-f:this.caretX,"top"===c?(s=(a=y)-f,r=i-f,o=i+f):(s=(a=y+_)+f,r=i+f,o=i-f),l=a),{x1:r,x2:i,x3:o,y1:a,y2:s,y3:l}}},{key:"drawTitle",value:function(e,t,n){var r,i,o,a=this.title,s=a.length;if(s){var l=yE(n.rtl,this.x,this.width);for(e.x=qO(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",r=CS(n.titleFont),i=n.titleSpacing,t.fillStyle=n.titleColor,t.font=r.string,o=0;o<s;++o)t.fillText(a[o],l.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+i,o+1===s&&(e.y+=n.titleMarginBottom-i)}}},{key:"_drawColorBox",value:function(e,t,n,r,i){var o=this.labelColors[n],a=this.labelPointStyles[n],s=i.boxHeight,l=i.boxWidth,u=i.boxPadding,c=CS(i.bodyFont),f=qO(this,"left",i),d=r.x(f),h=s<c.lineHeight?(c.lineHeight-s)/2:0,p=t.y+h;if(i.usePointStyle){var v={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},m=r.leftForLtr(d,l)+l/2,g=p+s/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,aS(e,v,m,g),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,aS(e,v,m,g)}else{e.lineWidth=o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;var y=r.leftForLtr(d,l-u),b=r.leftForLtr(r.xPlus(d,1),l-u-2),_=wS(o.borderRadius);Object.values(_).some((function(e){return 0!==e}))?(e.beginPath(),e.fillStyle=i.multiKeyBackground,vS(e,{x:y,y:p,w:l,h:s,radius:_}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),vS(e,{x:b,y:p+1,w:l-2,h:s-2,radius:_}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(y,p,l,s),e.strokeRect(y,p,l,s),e.fillStyle=o.backgroundColor,e.fillRect(b,p+1,l-2,s-2))}e.fillStyle=this.labelTextColors[n]}},{key:"drawBody",value:function(e,t,n){var r,i,o,a,s,l,u,c=this.body,f=n.bodySpacing,d=n.bodyAlign,h=n.displayColors,p=n.boxHeight,v=n.boxWidth,m=n.boxPadding,g=CS(n.bodyFont),y=g.lineHeight,b=0,_=yE(n.rtl,this.x,this.width),x=function(n){t.fillText(n,_.x(e.x+b),e.y+y/2),e.y+=y+f},w=_.textAlign(d);for(t.textAlign=d,t.textBaseline="middle",t.font=g.string,e.x=qO(this,w,n),t.fillStyle=n.bodyColor,Tk(this.beforeBody,x),b=h&&"right"!==w?"center"===d?v/2+m:v+2+m:0,a=0,l=c.length;a<l;++a){for(r=c[a],i=this.labelTextColors[a],t.fillStyle=i,Tk(r.before,x),o=r.lines,h&&o.length&&(this._drawColorBox(t,e,a,_,n),y=Math.max(g.lineHeight,p)),s=0,u=o.length;s<u;++s)x(o[s]),y=g.lineHeight;Tk(r.after,x)}b=0,y=g.lineHeight,Tk(this.afterBody,x),e.y-=f}},{key:"drawFooter",value:function(e,t,n){var r,i,o=this.footer,a=o.length;if(a){var s=yE(n.rtl,this.x,this.width);for(e.x=qO(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",r=CS(n.footerFont),t.fillStyle=n.footerColor,t.font=r.string,i=0;i<a;++i)t.fillText(o[i],s.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+n.footerSpacing}}},{key:"drawBackground",value:function(e,t,n,r){var i=this.xAlign,o=this.yAlign,a=e.x,s=e.y,l=n.width,u=n.height,c=wS(r.cornerRadius),f=c.topLeft,d=c.topRight,h=c.bottomLeft,p=c.bottomRight;t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(a+f,s),"top"===o&&this.drawCaret(e,t,n,r),t.lineTo(a+l-d,s),t.quadraticCurveTo(a+l,s,a+l,s+d),"center"===o&&"right"===i&&this.drawCaret(e,t,n,r),t.lineTo(a+l,s+u-p),t.quadraticCurveTo(a+l,s+u,a+l-p,s+u),"bottom"===o&&this.drawCaret(e,t,n,r),t.lineTo(a+h,s+u),t.quadraticCurveTo(a,s+u,a,s+u-h),"center"===o&&"left"===i&&this.drawCaret(e,t,n,r),t.lineTo(a,s+f),t.quadraticCurveTo(a,s,a+f,s),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}},{key:"_updateAnimationTarget",value:function(e){var t=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){var o=zO[e.position].call(this,this._active,this._eventPosition);if(!o)return;var a=this._size=HO(this,e),s=Object.assign({},o,this._size),l=ZO(t,e,s),u=YO(e,s,l,t);r._to===u.x&&i._to===u.y||(this.xAlign=l.xAlign,this.yAlign=l.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,u))}}},{key:"draw",value:function(e){var t=this.options.setContext(this.getContext()),n=this.opacity;if(n){this._updateAnimationTarget(t);var r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;var o=kS(t.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(i,e,r,t),bE(e,t.textDirection),i.y+=o.top,this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),_E(e,t.textDirection),e.restore())}}},{key:"getActiveElements",value:function(){return this._active||[]}},{key:"setActiveElements",value:function(e,t){var n=this,r=this._active,i=e.map((function(e){var t=e.datasetIndex,r=e.index,i=n.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[r],index:r}})),o=!Mk(r,i),a=this._positionChanged(i,t);(o||a)&&(this._active=i,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}},{key:"handleEvent",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;var r=this.options,i=this._active||[],o=this._getActiveElements(e,i,t,n),a=this._positionChanged(o,e),s=t||!Mk(o,i)||a;return s&&(this._active=o,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}},{key:"_getActiveElements",value:function(e,t,n,r){var i=this.options;if("mouseout"===e.type)return[];if(!r)return t;var o=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&o.reverse(),o}},{key:"_positionChanged",value:function(e,t){var n=this.caretX,r=this.caretY,i=this.options,o=zO[i.position].call(this,e,t);return!1!==o&&(n!==o.x||r!==o.y)}}]),n}(JT);QO.positioners=zO;var $O={id:"tooltip",_element:QO,positioners:zO,afterInit:function(e,t,n){n&&(e.tooltip=new QO({chart:e,options:n}))},beforeUpdate:function(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset:function(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw:function(e){var t=e.tooltip,n={tooltip:t};!1!==e.notifyPlugins("beforeTooltipDraw",n)&&(t&&t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n))},afterEvent:function(e,t){if(e.tooltip){var n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.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:function(e,t){return t.bodyFont.size},boxWidth:function(e,t){return t.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:gk,title:function(e){if(e.length>0){var t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:gk,beforeBody:gk,beforeLabel:gk,label:function(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;var t=e.dataset.label||"";t&&(t+=": ");var n=e.formattedValue;return bk(n)||(t+=n),t},labelColor:function(e){var t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor:function(){return this.options.bodyColor},labelPointStyle:function(e){var t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:gk,afterBody:gk,beforeFooter:gk,footer:gk,afterFooter:gk}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:function(e){return"filter"!==e&&"itemSort"!==e&&"external"!==e},_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},XO=Object.freeze({__proto__:null,Decimation:pO,Filler:PO,Legend:LO,SubTitle:FO,Title:AO,Tooltip:$O});function JO(e,t,n,r){var i=e.indexOf(t);return-1===i?function(e,t,n,r){return"string"===typeof t?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n}(e,t,n,r):i!==e.lastIndexOf(t)?n:i}var ej=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e))._startValue=void 0,r._valueRange=0,r._addedLabels=[],r}return Vt(n,[{key:"init",value:function(e){var t=this._addedLabels;if(t.length){var r,i=this.getLabels(),o=dk(t);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.index,l=a.label;i[s]===l&&i.splice(s,1)}}catch(u){o.e(u)}finally{o.f()}this._addedLabels=[]}fk(zs(n.prototype),"init",this).call(this,e)}},{key:"parse",value:function(e,t){if(bk(e))return null;var n=this.getLabels();return function(e,t){return null===e?null:uC(Math.round(e),0,t)}(t=isFinite(t)&&n[t]===e?t:JO(n,e,Ck(t,e),this._addedLabels),n.length-1)}},{key:"determineDataLimits",value:function(){var e=this.getUserBounds(),t=e.minDefined,n=e.maxDefined,r=this.getMinMax(!0),i=r.min,o=r.max;"ticks"===this.options.bounds&&(t||(i=0),n||(o=this.getLabels().length-1)),this.min=i,this.max=o}},{key:"buildTicks",value:function(){var e=this.min,t=this.max,n=this.options.offset,r=[],i=this.getLabels();i=0===e&&t===i.length-1?i:i.slice(e,t+1),this._valueRange=Math.max(i.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(var o=e;o<=t;o++)r.push({value:o});return r}},{key:"getLabelForValue",value:function(e){var t=this.getLabels();return e>=0&&e<t.length?t[e]:e}},{key:"configure",value:function(){fk(zs(n.prototype),"configure",this).call(this),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}},{key:"getPixelForValue",value:function(e){return"number"!==typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}},{key:"getPixelForTick",value:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}},{key:"getValueForPixel",value:function(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}},{key:"getBasePixel",value:function(){return this.bottom}}]),n}(cM);function tj(e,t){var n,r,i,o,a=[],s=e.bounds,l=e.step,u=e.min,c=e.max,f=e.precision,d=e.count,h=e.maxTicks,p=e.maxDigits,v=e.includeBounds,m=l||1,g=h-1,y=t.min,b=t.max,_=!bk(u),x=!bk(c),w=!bk(d),k=(b-y)/(p+1),C=$k((b-y)/g/m)*m;if(C<1e-14&&!_&&!x)return[{value:y},{value:b}];(o=Math.ceil(b/C)-Math.floor(y/C))>g&&(C=$k(o*C/g/m)*m),bk(f)||(n=Math.pow(10,f),C=Math.ceil(C*n)/n),"ticks"===s?(r=Math.floor(y/C)*C,i=Math.ceil(b/C)*C):(r=y,i=b),_&&x&&l&&function(e,t){var n=Math.round(e);return n-t<=e&&n+t>=e}((c-u)/l,C/1e3)?(C=(c-u)/(o=Math.round(Math.min((c-u)/C,h))),r=u,i=c):w?C=((i=x?c:i)-(r=_?u:r))/(o=d-1):o=Jk(o=(i-r)/C,Math.round(o),C/1e3)?Math.round(o):Math.ceil(o);var S=Math.max(rC(C),rC(r));n=Math.pow(10,bk(f)?S:f),r=Math.round(r*n)/n,i=Math.round(i*n)/n;var E=0;for(_&&(v&&r!==u?(a.push({value:u}),r<u&&E++,Jk(Math.round((r+E*C)*n)/n,u,nj(u,k,e))&&E++):r<u&&E++);E<o;++E)a.push({value:Math.round((r+E*C)*n)/n});return x&&v&&i!==c?a.length&&Jk(a[a.length-1].value,c,nj(c,k,e))?a[a.length-1].value=c:a.push({value:c}):x&&i!==c||a.push({value:i}),a}function nj(e,t,n){var r=n.horizontal,i=tC(n.minRotation),o=(r?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}ej.id="category",ej.defaults={ticks:{callback:ej.prototype.getLabelForValue}};var rj=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).start=void 0,r.end=void 0,r._startValue=void 0,r._endValue=void 0,r._valueRange=0,r}return Vt(n,[{key:"parse",value:function(e,t){return bk(e)||("number"===typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}},{key:"handleTickRangeOptions",value:function(){var e=this.options.beginAtZero,t=this.getUserBounds(),n=t.minDefined,r=t.maxDefined,i=this.min,o=this.max,a=function(e){return i=n?i:e},s=function(e){return o=r?o:e};if(e){var l=Qk(i),u=Qk(o);l<0&&u<0?s(0):l>0&&u>0&&a(0)}if(i===o){var c=1;(o>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(c=Math.abs(.05*o)),s(o+c),e||a(i-c)}this.min=i,this.max=o}},{key:"getTickLimit",value:function(){var e,t=this.options.ticks,n=t.maxTicksLimit,r=t.stepSize;return r?(e=Math.ceil(this.max/r)-Math.floor(this.min/r)+1)>1e3&&(console.warn("scales.".concat(this.id,".ticks.stepSize: ").concat(r," would result generating up to ").concat(e," ticks. Limiting to 1000.")),e=1e3):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}},{key:"computeTickLimit",value:function(){return Number.POSITIVE_INFINITY}},{key:"buildTicks",value:function(){var e=this.options,t=e.ticks,n=this.getTickLimit(),r=tj({maxTicks:n=Math.max(2,n),bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&eC(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}},{key:"configure",value:function(){var e=this.ticks,t=this.min,r=this.max;if(fk(zs(n.prototype),"configure",this).call(this),this.options.offset&&e.length){var i=(r-t)/Math.max(e.length-1,1)/2;t-=i,r+=i}this._startValue=t,this._endValue=r,this._valueRange=r-t}},{key:"getLabelForValue",value:function(e){return gE(e,this.chart.options.locale,this.options.ticks.format)}}]),n}(cM),ij=function(e){Fs(n,e);var t=Vs(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Vt(n,[{key:"determineDataLimits",value:function(){var e=this.getMinMax(!0),t=e.min,n=e.max;this.min=wk(t)?t:0,this.max=wk(n)?n:1,this.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){var e=this.isHorizontal(),t=e?this.width:this.height,n=tC(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,i.lineHeight/r))}},{key:"getPixelForValue",value:function(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}},{key:"getValueForPixel",value:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}]),n}(rj);function oj(e){return 1===e/Math.pow(10,Math.floor(Kk(e)))}ij.id="linear",ij.defaults={ticks:{callback:tM.formatters.numeric}};var aj=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).start=void 0,r.end=void 0,r._startValue=void 0,r._valueRange=0,r}return Vt(n,[{key:"parse",value:function(e,t){var n=rj.prototype.parse.apply(this,[e,t]);if(0!==n)return wk(n)&&n>0?n:null;this._zero=!0}},{key:"determineDataLimits",value:function(){var e=this.getMinMax(!0),t=e.min,n=e.max;this.min=wk(t)?Math.max(0,t):null,this.max=wk(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}},{key:"handleTickRangeOptions",value:function(){var e=this.getUserBounds(),t=e.minDefined,n=e.maxDefined,r=this.min,i=this.max,o=function(e){return r=t?r:e},a=function(e){return i=n?i:e},s=function(e,t){return Math.pow(10,Math.floor(Kk(e))+t)};r===i&&(r<=0?(o(1),a(10)):(o(s(r,-1)),a(s(i,1)))),r<=0&&o(s(i,-1)),i<=0&&a(s(r,1)),this._zero&&this.min!==this._suggestedMin&&r===s(this.min,0)&&o(s(r,-1)),this.min=r,this.max=i}},{key:"buildTicks",value:function(){var e=this.options,t=function(e,t){var n=Math.floor(Kk(t.max)),r=Math.ceil(t.max/Math.pow(10,n)),i=[],o=kk(e.min,Math.pow(10,Math.floor(Kk(t.min)))),a=Math.floor(Kk(o)),s=Math.floor(o/Math.pow(10,a)),l=a<0?Math.pow(10,Math.abs(a)):1;do{i.push({value:o,major:oj(o)}),10===++s&&(s=1,l=++a>=0?1:l),o=Math.round(s*Math.pow(10,a)*l)/l}while(a<n||a===n&&s<r);var u=kk(e.max,o);return i.push({value:u,major:oj(o)}),i}({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&eC(t,this,"value"),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}},{key:"getLabelForValue",value:function(e){return void 0===e?"0":gE(e,this.chart.options.locale,this.options.ticks.format)}},{key:"configure",value:function(){var e=this.min;fk(zs(n.prototype),"configure",this).call(this),this._startValue=Kk(e),this._valueRange=Kk(this.max)-Kk(e)}},{key:"getPixelForValue",value:function(e){return void 0!==e&&0!==e||(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Kk(e)-this._startValue)/this._valueRange)}},{key:"getValueForPixel",value:function(e){var t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}]),n}(cM);function sj(e){var t=e.ticks;if(t.display&&e.display){var n=kS(t.backdropPadding);return Ck(t.font&&t.font.size,tS.font.size)+n.height}return 0}function lj(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function uj(e){for(var t,n,r,i={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},o=Object.assign({},i),a=[],s=[],l=e._pointLabels.length,u=e.options.pointLabels,c=u.centerPointLabels?Uk/l:0,f=0;f<l;f++){var d=u.setContext(e.getPointLabelContext(f));s[f]=d.padding;var h=e.getPointPosition(f,e.drawingArea+s[f],c),p=CS(d.font),v=(t=e.ctx,n=p,r=_k(r=e._pointLabels[f])?r:[r],{w:rS(t,n.string,r),h:r.length*n.lineHeight});a[f]=v;var m=sC(e.getIndexAngle(f)+c),g=Math.round(nC(m));cj(o,i,m,lj(g,h.x,v.w,0,180),lj(g,h.y,v.h,90,270))}e.setCenterPoint(i.l-o.l,o.r-i.r,i.t-o.t,o.b-i.b),e._pointLabelItems=function(e,t,n){for(var r=[],i=e._pointLabels.length,o=e.options,a=sj(o)/2,s=e.drawingArea,l=o.pointLabels.centerPointLabels?Uk/i:0,u=0;u<i;u++){var c=e.getPointPosition(u,s+a+n[u],l),f=Math.round(nC(sC(c.angle+Yk))),d=t[u],h=hj(c.y,d.h,f),p=fj(f),v=dj(c.x,d.w,p);r.push({x:c.x,y:h,textAlign:p,left:v,top:h,right:v+d.w,bottom:h+d.h})}return r}(e,a,s)}function cj(e,t,n,r,i){var o=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n)),s=0,l=0;r.start<t.l?(s=(t.l-r.start)/o,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/o,e.r=Math.max(e.r,t.r+s)),i.start<t.t?(l=(t.t-i.start)/a,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/a,e.b=Math.max(e.b,t.b+l))}function fj(e){return 0===e||180===e?"center":e<180?"left":"right"}function dj(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function hj(e,t,n){return 90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t),e}function pj(e,t,n,r){var i=e.ctx;if(n)i.arc(e.xCenter,e.yCenter,t,0,Vk);else{var o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(var a=1;a<r;a++)o=e.getPointPosition(a,t),i.lineTo(o.x,o.y)}}aj.id="logarithmic",aj.defaults={ticks:{callback:tM.formatters.logarithmic,major:{enabled:!0}}};var vj=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e)).xCenter=void 0,r.yCenter=void 0,r.drawingArea=void 0,r._pointLabels=[],r._pointLabelItems=[],r}return Vt(n,[{key:"setDimensions",value:function(){var e=this._padding=kS(sj(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}},{key:"determineDataLimits",value:function(){var e=this.getMinMax(!1),t=e.min,n=e.max;this.min=wk(t)&&!isNaN(t)?t:0,this.max=wk(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){return Math.ceil(this.drawingArea/sj(this.options))}},{key:"generateTickLabels",value:function(e){var t=this;rj.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((function(e,n){var r=Ek(t.options.pointLabels.callback,[e,n],t);return r||0===r?r:""})).filter((function(e,n){return t.chart.getDataVisibility(n)}))}},{key:"fit",value:function(){var e=this.options;e.display&&e.pointLabels.display?uj(this):this.setCenterPoint(0,0,0,0)}},{key:"setCenterPoint",value:function(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}},{key:"getIndexAngle",value:function(e){return sC(e*(Vk/(this._pointLabels.length||1))+tC(this.options.startAngle||0))}},{key:"getDistanceFromCenterForValue",value:function(e){if(bk(e))return NaN;var t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}},{key:"getValueForDistanceFromCenter",value:function(e){if(bk(e))return NaN;var t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}},{key:"getPointLabelContext",value:function(e){var t=this._pointLabels||[];if(e>=0&&e<t.length){var n=t[e];return function(e,t,n){return ES(e,{label:n,index:t,type:"pointLabel"})}(this.getContext(),e,n)}}},{key:"getPointPosition",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.getIndexAngle(e)-Yk+n;return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter,angle:r}}},{key:"getPointPositionForValue",value:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}},{key:"getBasePosition",value:function(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}},{key:"getPointLabelPosition",value:function(e){var t=this._pointLabelItems[e];return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}},{key:"drawBackground",value:function(){var e=this.options,t=e.backgroundColor,n=e.grid.circular;if(t){var r=this.ctx;r.save(),r.beginPath(),pj(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}},{key:"drawGrid",value:function(){var e,t,n,r=this,i=this.ctx,o=this.options,a=o.angleLines,s=o.grid,l=this._pointLabels.length;if(o.pointLabels.display&&function(e,t){for(var n=e.ctx,r=e.options.pointLabels,i=t-1;i>=0;i--){var o=r.setContext(e.getPointLabelContext(i)),a=CS(o.font),s=e._pointLabelItems[i],l=s.x,u=s.y,c=s.textAlign,f=s.left,d=s.top,h=s.right,p=s.bottom,v=o.backdropColor;if(!bk(v)){var m=kS(o.backdropPadding);n.fillStyle=v,n.fillRect(f-m.left,d-m.top,h-f+m.width,p-d+m.height)}dS(n,e._pointLabels[i],l,u+a.lineHeight/2,a,{color:o.color,textAlign:c,textBaseline:"middle"})}}(this,l),s.display&&this.ticks.forEach((function(e,n){if(0!==n){t=r.getDistanceFromCenterForValue(e.value);var i=s.setContext(r.getContext(n-1));!function(e,t,n,r){var i=e.ctx,o=t.circular,a=t.color,s=t.lineWidth;!o&&!r||!a||!s||n<0||(i.save(),i.strokeStyle=a,i.lineWidth=s,i.setLineDash(t.borderDash),i.lineDashOffset=t.borderDashOffset,i.beginPath(),pj(e,n,o,r),i.closePath(),i.stroke(),i.restore())}(r,i,t,l)}})),a.display){for(i.save(),e=l-1;e>=0;e--){var u=a.setContext(this.getPointLabelContext(e)),c=u.color,f=u.lineWidth;f&&c&&(i.lineWidth=f,i.strokeStyle=c,i.setLineDash(u.borderDash),i.lineDashOffset=u.borderDashOffset,t=this.getDistanceFromCenterForValue(o.ticks.reverse?this.min:this.max),n=this.getPointPosition(e,t),i.beginPath(),i.moveTo(this.xCenter,this.yCenter),i.lineTo(n.x,n.y),i.stroke())}i.restore()}}},{key:"drawBorder",value:function(){}},{key:"drawLabels",value:function(){var e=this,t=this.ctx,n=this.options,r=n.ticks;if(r.display){var i,o,a=this.getIndexAngle(0);t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((function(a,s){if(0!==s||n.reverse){var l=r.setContext(e.getContext(s)),u=CS(l.font);if(i=e.getDistanceFromCenterForValue(e.ticks[s].value),l.showLabelBackdrop){t.font=u.string,o=t.measureText(a.label).width,t.fillStyle=l.backdropColor;var c=kS(l.backdropPadding);t.fillRect(-o/2-c.left,-i-u.size/2-c.top,o+c.width,u.size+c.height)}dS(t,a.label,0,-i,u,{color:l.color})}})),t.restore()}}},{key:"drawTitle",value:function(){}}]),n}(rj);vj.id="radialLinear",vj.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:tM.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:function(e){return e},padding:5,centerPointLabels:!1}},vj.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},vj.descriptors={angleLines:{_fallback:"grid"}};var mj={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}},gj=Object.keys(mj);function yj(e,t){return e-t}function bj(e,t){if(bk(t))return null;var n=e._adapter,r=e._parseOpts,i=r.parser,o=r.round,a=r.isoWeekday,s=t;return"function"===typeof i&&(s=i(s)),wk(s)||(s="string"===typeof i?n.parse(s,i):n.parse(s)),null===s?null:(o&&(s="week"!==o||!Xk(a)&&!0!==a?n.startOf(s,o):n.startOf(s,"isoWeek",a)),+s)}function _j(e,t,n,r){for(var i=gj.length,o=gj.indexOf(e);o<i-1;++o){var a=mj[gj[o]],s=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-t)/(s*a.size))<=r)return gj[o]}return gj[i-1]}function xj(e,t,n){if(n){if(n.length){var r=TS(n,t),i=r.lo,o=r.hi;e[n[i]>=t?n[i]:n[o]]=!0}}else e[t]=!0}function wj(e,t,n){var r,i,o=[],a={},s=t.length;for(r=0;r<s;++r)a[i=t[r]]=r,o.push({value:i,major:!1});return 0!==s&&n?function(e,t,n,r){var i,o,a=e._adapter,s=+a.startOf(t[0].value,r),l=t[t.length-1].value;for(i=s;i<=l;i=+a.add(i,1,r))(o=n[i])>=0&&(t[o].major=!0);return t}(e,o,a,n):o}var kj=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e))._cache={data:[],labels:[],all:[]},r._unit="day",r._majorUnit=void 0,r._offsets={},r._normalized=!1,r._parseOpts=void 0,r}return Vt(n,[{key:"init",value:function(e,t){var r=e.time||(e.time={}),i=this._adapter=new dT._date(e.adapters.date);Dk(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},fk(zs(n.prototype),"init",this).call(this,e),this._normalized=t.normalized}},{key:"parse",value:function(e,t){return void 0===e?null:bj(this,e)}},{key:"beforeLayout",value:function(){fk(zs(n.prototype),"beforeLayout",this).call(this),this._cache={data:[],labels:[],all:[]}}},{key:"determineDataLimits",value:function(){var e=this.options,t=this._adapter,n=e.time.unit||"day",r=this.getUserBounds(),i=r.min,o=r.max,a=r.minDefined,s=r.maxDefined;function l(e){a||isNaN(e.min)||(i=Math.min(i,e.min)),s||isNaN(e.max)||(o=Math.max(o,e.max))}a&&s||(l(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||l(this.getMinMax(!1))),i=wk(i)&&!isNaN(i)?i:+t.startOf(Date.now(),n),o=wk(o)&&!isNaN(o)?o:+t.endOf(Date.now(),n)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}},{key:"_getLabelBounds",value:function(){var e=this.getLabelTimestamps(),t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}},{key:"buildTicks",value:function(){var e=this.options,t=e.time,n=e.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);var i=this.min,o=function(e,t,n){for(var r=0,i=e.length;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}(r,i,this.max);return this._unit=t.unit||(n.autoSkip?_j(t.minUnit,this.min,this.max,this._getLabelCapacity(i)):function(e,t,n,r,i){for(var o=gj.length-1;o>=gj.indexOf(n);o--){var a=gj[o];if(mj[a].common&&e._adapter.diff(i,r,a)>=t-1)return a}return gj[n?gj.indexOf(n):0]}(this,o.length,t.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(e){for(var t=gj.indexOf(e)+1,n=gj.length;t<n;++t)if(mj[gj[t]].common)return gj[t]}(this._unit):void 0,this.initOffsets(r),e.reverse&&o.reverse(),wj(this,o,this._majorUnit)}},{key:"initOffsets",value:function(e){var t,n,r=0,i=0;this.options.offset&&e.length&&(t=this.getDecimalForValue(e[0]),r=1===e.length?1-t:(this.getDecimalForValue(e[1])-t)/2,n=this.getDecimalForValue(e[e.length-1]),i=1===e.length?n:(n-this.getDecimalForValue(e[e.length-2]))/2);var o=e.length<3?.5:.25;r=uC(r,0,o),i=uC(i,0,o),this._offsets={start:r,end:i,factor:1/(r+1+i)}}},{key:"_generate",value:function(){var e,t,n=this._adapter,r=this.min,i=this.max,o=this.options,a=o.time,s=a.unit||_j(a.minUnit,r,i,this._getLabelCapacity(r)),l=Ck(a.stepSize,1),u="week"===s&&a.isoWeekday,c=Xk(u)||!0===u,f={},d=r;if(c&&(d=+n.startOf(d,"isoWeek",u)),d=+n.startOf(d,c?"day":s),n.diff(i,r,s)>1e5*l)throw new Error(r+" and "+i+" are too far apart with stepSize of "+l+" "+s);var h="data"===o.ticks.source&&this.getDataTimestamps();for(e=d,t=0;e<i;e=+n.add(e,l,s),t++)xj(f,e,h);return e!==i&&"ticks"!==o.bounds&&1!==t||xj(f,e,h),Object.keys(f).sort((function(e,t){return e-t})).map((function(e){return+e}))}},{key:"getLabelForValue",value:function(e){var t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}},{key:"_tickFormatFunction",value:function(e,t,n,r){var i=this.options,o=i.time.displayFormats,a=this._unit,s=this._majorUnit,l=a&&o[a],u=s&&o[s],c=n[t],f=s&&u&&c&&c.major,d=this._adapter.format(e,r||(f?u:l)),h=i.ticks.callback;return h?Ek(h,[d,t,n],this):d}},{key:"generateTickLabels",value:function(e){var t,n,r;for(t=0,n=e.length;t<n;++t)(r=e[t]).label=this._tickFormatFunction(r.value,t,e)}},{key:"getDecimalForValue",value:function(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}},{key:"getPixelForValue",value:function(e){var t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}},{key:"getValueForPixel",value:function(e){var t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}},{key:"_getLabelSize",value:function(e){var t=this.options.ticks,n=this.ctx.measureText(e).width,r=tC(this.isHorizontal()?t.maxRotation:t.minRotation),i=Math.cos(r),o=Math.sin(r),a=this._resolveTickFontOptions(0).size;return{w:n*i+a*o,h:n*o+a*i}}},{key:"_getLabelCapacity",value:function(e){var t=this.options.time,n=t.displayFormats,r=n[t.unit]||n.millisecond,i=this._tickFormatFunction(e,0,wj(this,[e],this._majorUnit),r),o=this._getLabelSize(i),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}},{key:"getDataTimestamps",value:function(){var e,t,n=this._cache.data||[];if(n.length)return n;var r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(e=0,t=r.length;e<t;++e)n=n.concat(r[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}},{key:"getLabelTimestamps",value:function(){var e,t,n=this._cache.labels||[];if(n.length)return n;var r=this.getLabels();for(e=0,t=r.length;e<t;++e)n.push(bj(this,r[e]));return this._cache.labels=this._normalized?n:this.normalize(n)}},{key:"normalize",value:function(e){return NS(e.sort(yj))}}]),n}(cM);function Cj(e,t,n){var r,i,o,a,s=0,l=e.length-1;if(n){if(t>=e[s].pos&&t<=e[l].pos){var u=MS(e,"pos",t);s=u.lo,l=u.hi}var c=e[s];r=c.pos,o=c.time;var f=e[l];i=f.pos,a=f.time}else{if(t>=e[s].time&&t<=e[l].time){var d=MS(e,"time",t);s=d.lo,l=d.hi}var h=e[s];r=h.time,o=h.pos;var p=e[l];i=p.time,a=p.pos}var v=i-r;return v?o+(a-o)*(t-r)/v:o}kj.id="time",kj.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};var Sj=function(e){Fs(n,e);var t=Vs(n);function n(e){var r;return Ht(this,n),(r=t.call(this,e))._table=[],r._minPos=void 0,r._tableRange=void 0,r}return Vt(n,[{key:"initOffsets",value:function(){var e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=Cj(t,this.min),this._tableRange=Cj(t,this.max)-this._minPos,fk(zs(n.prototype),"initOffsets",this).call(this,e)}},{key:"buildLookupTable",value:function(e){var t,n,r,i,o,a=this.min,s=this.max,l=[],u=[];for(t=0,n=e.length;t<n;++t)(i=e[t])>=a&&i<=s&&l.push(i);if(l.length<2)return[{time:a,pos:0},{time:s,pos:1}];for(t=0,n=l.length;t<n;++t)o=l[t+1],r=l[t-1],i=l[t],Math.round((o+r)/2)!==i&&u.push({time:i,pos:t/(n-1)});return u}},{key:"_getTimestampsForTable",value:function(){var e=this._cache.all||[];if(e.length)return e;var t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e}},{key:"getDecimalForValue",value:function(e){return(Cj(this._table,e)-this._minPos)/this._tableRange}},{key:"getValueForPixel",value:function(e){var t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return Cj(this._table,n*this._tableRange+this._minPos,!0)}}]),n}(kj);Sj.id="timeseries",Sj.defaults=kj.defaults;var Ej=[uT,fO,XO,Object.freeze({__proto__:null,CategoryScale:ej,LinearScale:ij,LogarithmicScale:aj,RadialLinearScale:vj,TimeScale:kj,TimeSeriesScale:Sj})],Tj=["height","width","redraw","datasetIdKey","type","data","options","plugins","fallbackContent"],Mj="label";function Oj(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function jj(e,t){e.labels=t}function Pj(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Mj,r=[];e.datasets=t.map((function(t){var i=e.datasets.find((function(e){return e[n]===t[n]}));return i&&t.data&&!r.includes(i)?(r.push(i),Object.assign(i,t),i):Ze({},t)}))}function Nj(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mj,n={labels:[],datasets:[]};return jj(n,e.labels),Pj(n,e.datasets,t),n}function Dj(e,t){return e.getElementsAtEventForMode(t.nativeEvent,"nearest",{intersect:!0},!1)}function Lj(e,t){var n=e.height,r=void 0===n?150:n,i=e.width,o=void 0===i?300:i,a=e.redraw,s=void 0!==a&&a,u=e.datasetIdKey,c=e.type,f=e.data,d=e.options,h=e.plugins,p=void 0===h?[]:h,v=e.fallbackContent,m=Wt(e,Tj),g=(0,l.useRef)(null),y=(0,l.useRef)(),b=function(){g.current&&(y.current=new FM(g.current,{type:c,data:Nj(f,u),options:d,plugins:p}),Oj(t,y.current))},_=function(){Oj(t,null),y.current&&(y.current.destroy(),y.current=null)};return(0,l.useEffect)((function(){var e,t;!s&&y.current&&d&&(e=y.current,t=d,e.options=Ze({},t))}),[s,d]),(0,l.useEffect)((function(){!s&&y.current&&jj(y.current.config.data,f.labels)}),[s,f.labels]),(0,l.useEffect)((function(){!s&&y.current&&f.datasets&&Pj(y.current.config.data,f.datasets,u)}),[s,f.datasets]),(0,l.useEffect)((function(){y.current&&(s?(_(),setTimeout(b)):y.current.update())}),[s,d,f.labels,f.datasets]),(0,l.useEffect)((function(){return b(),function(){return _()}}),[]),l.createElement("canvas",Object.assign({ref:g,role:"img",height:r,width:o},m),v)}var Rj=(0,l.forwardRef)(Lj);function Aj(e,t){return FM.register(t),(0,l.forwardRef)((function(t,n){return l.createElement(Rj,Object.assign({},t,{ref:n,type:e}))}))}var Ij=Aj("line",iT),Fj=Aj("bar",tT),zj=Aj("doughnut",rT),Bj=bt((function(e){return function(){return e}}));function Uj(e,t,n,r){var i,o=function(i){for(var o=t.length,a=0;a<o;){if(e===t[a])return n[a];a+=1}for(var s in t[a+1]=e,n[a+1]=i,e)i[s]=r?Uj(e[s],t,n,!0):e[s];return i};switch(Ln(e)){case"Object":return o({});case"Array":return o([]);case"Date":return new Date(e.valueOf());case"RegExp":return i=e,new RegExp(i.source,(i.global?"g":"")+(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.sticky?"y":"")+(i.unicode?"u":""));default:return e}}var Vj=function(){function e(e,t,n,r){this.valueFn=e,this.valueAcc=t,this.keyFn=n,this.xf=r,this.inputs={}}return e.prototype["@@transducer/init"]=ln,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(hn(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var n=this.keyFn(t);return this.inputs[n]=this.inputs[n]||[n,this.valueAcc],this.inputs[n][1]=this.valueFn(this.inputs[n][1],t),e},e}(),Hj=Ig(4,[],Kt([],Ig(4,[],(function(e,t,n,r){return new Vj(e,t,n,r)})),(function(e,t,n,r){return sn((function(r,i){var o=n(i);return r[o]=e(hn(o,r)?r[o]:Uj(t,[],[],!1),i),r}),{},r)}))),Wj=Hj,Zj=Wj((function(e,t){return e+1}),0),Yj=bt((function(e){return Ct(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()})),qj=Yj,Gj=n(1089);var Kj=n(3514);function Qj(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function $j(e,t){(0,Qg.Z)(2,arguments);var n=(0,Gg.default)(e),r=(0,Gg.default)(t),i=Qj(n,r),o=Math.abs((0,Kj.default)(n,r));n.setDate(n.getDate()-i*o);var a=Number(Qj(n,r)===-i),s=i*(o-a);return 0===s?0:s}var Xj=n(4552),Jj=n(3712);var eP=n(9996),tP=n(1437),nP=n(6634);var rP=n(449),iP=n.n(rP),oP=_t((function(e,t){for(var n=0,r=Math.min(e.length,t.length),i={};n<r;)i[e[n]]=t[n],n+=1;return i})),aP=oP,sP="Others",lP=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],uP=function(e){var t,n;return Im(e)?null!==(t=null===(n=e.split("/")[e.includes("://")?2:0])||void 0===n?void 0:n.split(":")[0])&&void 0!==t?t:"":"Direct"},cP=function(e,t){return Object.values(Ze(Ze({},aP(t,t.map((function(){return 0})))),e))},fP=function(e){return(0,ir.jsx)(gx,Ze({type:"switch"},e))},dP=function(e,t){var n=e.native,r=v(t,1)[0];null!==n&&void 0!==n&&n.target&&(n.target.style.cursor=r?"pointer":"default")},hP=function(e){var t=e.dataset,n=e.raw;return"".concat(t.label,": ").concat(ub("".concat(n)))},pP=function(e){var t=e.label,n=e.raw;return"".concat(t,": ").concat(ub("".concat(n)))},vP={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},mP={hourly:function(e){return{hours:e}},daily:function(e){return{days:e}},weekly:function(e){return{weeks:e}},monthly:function(e){return{months:e}}},gP={hourly:function(e,t,n){(0,Qg.Z)(2,arguments);var r=Mb(e,t)/Gj.vh;return jb(null===n||void 0===n?void 0:n.roundingMethod)(r)},daily:$j,weekly:function(e,t,n){(0,Qg.Z)(2,arguments);var r=$j(e,t)/7;return jb(null===n||void 0===n?void 0:n.roundingMethod)(r)},monthly:Tb},yP={hourly:function(e){return(0,qg.default)(e,"yyyy-MM-dd HH:00")},daily:function(e){return(0,qg.default)(e,"yyyy-MM-dd")},weekly:function(e){var t=(0,qg.default)((0,Xj.Z)(e),"yyyy-MM-dd"),n=(0,qg.default)(function(e){return(0,Qg.Z)(1,arguments),(0,Jj.default)(e,{weekStartsOn:1})}(e),"yyyy-MM-dd");return"".concat(t," - ").concat(n)},monthly:function(e){return(0,qg.default)(e,"yyyy-MM")}},bP=function(e,t){return Zj((function(t){return yP[e]((0,Tg.default)(t.date))}),t)},_P=function(e,t){var n=gP[e],r=yP[e],i=(0,Tg.default)(t[0].date),o=(0,Tg.default)(t[t.length-1].date),a=n(i,o),s=mP[e];return[r(o)].concat(g(Am(a,(function(e){return r(function(e,t){if((0,Qg.Z)(2,arguments),!t||"object"!==typeof t)return new Date(NaN);var n=t.years?(0,nP.Z)(t.years):0,r=t.months?(0,nP.Z)(t.months):0,i=t.weeks?(0,nP.Z)(t.weeks):0,o=t.days?(0,nP.Z)(t.days):0,a=t.hours?(0,nP.Z)(t.hours):0,s=t.minutes?(0,nP.Z)(t.minutes):0,l=t.seconds?(0,nP.Z)(t.seconds):0,u=(0,Gg.default)(e),c=r||n?(0,tP.default)(u,r+12*n):u,f=o||i?(0,eP.default)(c,o+7*i):c,d=1e3*(l+60*(s+60*a));return new Date(f.getTime()+d)}(o,s(e)))}))))},xP=function(e,t,n){return{label:t,data:e,fill:!1,tension:.2,borderColor:n,backgroundColor:n}},wP=null,kP=function(e){var t=e.title,n=e.visits,r=e.highlightedVisits,i=e.highlightedLabel,o=void 0===i?"Selected":i,a=e.setSelectedVisits,s=v((0,l.useState)(n.length>0?function(e){var t,n=new Date,r=(0,Tg.default)(e);return null!==(t=Zg([[function(){return $j(n,r)<=2},Bj("hourly")],[function(){return Tb(n,r)<=1},Bj("daily")],[function(){return Tb(n,r)<=6},Bj("weekly")]])())&&void 0!==t?t:"monthly"}(n[n.length-1].date):"monthly"),2),u=s[0],c=s[1],f=v(Zv(!0),2),d=f[0],h=f[1],p=(0,l.useRef)(null),m=(0,l.useRef)(null),g=(0,l.useMemo)((function(){return function(e,t){return t.reduce((function(t,n){var r,i=yP[e]((0,Tg.default)(n.date));return t[i]=null!==(r=t[i])&&void 0!==r?r:[],t[i].push(n),t}),{})}(u,n)}),[u,n]),y=(0,l.useMemo)((function(){return bP(u,qj(n))}),[u,n]),b=(0,l.useMemo)((function(){return function(e,t,n,r){if(r)return[Object.keys(t),Object.values(t)];var i=_P(n,e);return[i,cP(t,i)]}(n,y,u,d)}),[n,u,d]),_=v(b,2),x=_[0],w=_[1],k=(0,l.useMemo)((function(){return cP(bP(u,qj(r)),x)}),[r,u,x]),C=function(){var e=xP(w,"Visits",Gv);return 0===r.length?[e]:[e,xP(k,o,Kv)]},S={maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{intersect:!1,axis:"x",callbacks:{label:hP}}},scales:{y:{beginAtZero:!0,ticks:{precision:0,callback:ub}},x:{title:{display:!0,text:vP[u]}}},onHover:dP},E=function(e){return(0,ir.jsx)(Ij,{ref:e,data:{labels:x,datasets:C()},options:S,onClick:function(t){return function(e,t,n,r){var i=v(n,1)[0];if(r&&i){var o,a=i.index;wP===e[a]?(r([]),wP=null):(r(e[a]&&t[e[a]]?t[e[a]]:[]),wP=null!==(o=e[a])&&void 0!==o?o:null)}}(x,g,Dj(e.current,t),a)}})};return(0,ir.jsxs)(mf,{children:[(0,ir.jsxs)(Bf,{role:"heading",children:[t,(0,ir.jsx)("div",{className:"float-end",children:(0,ir.jsxs)(mv,{children:[(0,ir.jsx)(Ic,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),(0,ir.jsx)(Dc,{end:!0,children:Object.entries(vP).map((function(e){var t=v(e,2),n=t[0],r=t[1];return(0,ir.jsx)(Mc,{active:u===n,onClick:function(){return c(n)},children:r},n)}))})]})}),(0,ir.jsx)("div",{className:"float-end me-2",children:(0,ir.jsx)(fP,{checked:d,onChange:h,children:(0,ir.jsx)("small",{children:"Skip dates with no visits"})})})]}),(0,ir.jsxs)(Of,{className:"line-chart-card__body",children:[r.length>0&&E(p),0===r.length&&E(m)]})]})},CP=function(e){var t=e.pagesCount,n=e.currentPage,r=e.setCurrentPage,i=e.centered,o=void 0===i||i;if(t<2)return null;var a=function(e){return function(){return!db(e)&&r(e)}};return(0,ir.jsxs)(yp,{listClassName:Ws()("flex-wrap mb-0 simple-paginator",{"justify-content-center":o}),children:[(0,ir.jsx)(wp,{disabled:n<=1,children:(0,ir.jsx)(Ep,{previous:!0,tag:"span",onClick:a(n-1)})}),fb(n,t).map((function(e,t){return(0,ir.jsx)(wp,{disabled:db(e),active:n===e,children:(0,ir.jsx)(Ep,{role:"link",tag:"span",onClick:a(e),children:hb(e)})},pb(e,t))})),(0,ir.jsx)(wp,{disabled:n>=t,children:(0,ir.jsx)(Ep,{next:!0,tag:"span",onClick:a(n+1)})})]})},SP=["browser","os","referer","country","city"],EP=function(e,t){return t.filter((function(t){return function(e,t){var n=e.browser,r=e.os,i=e.referer,o=e.country,a=e.city,s=Wt(e,SP);return"".concat(n," ").concat(r," ").concat(i," ").concat(o," ").concat(a," ").concat(s.visitedUrl).toLowerCase().includes(t.toLowerCase())}(t,e)}))},TP=function(e,t,n){var r=function(e,t){return Yn(t,e)}(n,t?EP(t,e):g(e)),i=r.length;return{visitsGroups:Kb(20,r),total:i}},MP=function(e){var t,n,r=e.visits,i=e.selectedVisits,o=void 0===i?[]:i,a=e.setSelectedVisits,s=e.selectedServer,u=e.matchMedia,c=void 0===u?window.matchMedia:u,f=e.isOrphanVisits,d=void 0!==f&&f,h="visits-table__header-cell visits-table__sticky",p=function(){return c("(max-width: 767px)").matches},m=v((0,l.useState)(p()),2),y=m[0],b=m[1],_=v((0,l.useState)(void 0),2),x=_[0],w=_[1],k=v((0,l.useState)({}),2),C=k[0],S=k[1],E=(0,l.useMemo)((function(){return TP(r,x,C)}),[x,C]),T=(0,l.useRef)(!0),M=v((0,l.useState)(1),2),O=M[0],j=M[1],P=20*O,N=P-20,D=Wm(s),L=7+Number(D)+Number(d),R=function(e){return function(){return S({field:e,dir:Zn(e,C.field,C.dir)})}},A=function(e){return(0,ir.jsx)(By,{currentOrder:C,field:e,className:"visits-table__header-icon"})};return(0,l.useEffect)((function(){var e=function(){return b(p())};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),(0,l.useEffect)((function(){j(1),!T.current&&a([]),T.current=!1}),[x]),(0,ir.jsx)("div",{className:"table-responsive-md",children:(0,ir.jsxs)("table",{className:"table table-bordered table-hover table-sm visits-table",children:[(0,ir.jsxs)("thead",{className:"visits-table__header",children:[(0,ir.jsxs)("tr",{children:[(0,ir.jsx)("th",{className:"".concat(h," text-center"),onClick:function(){return a(o.length<E.total?E.visitsGroups.flat():[])},children:(0,ir.jsx)(Ls,{icon:_r,className:Ws()({"text-primary":o.length>0})})}),D&&(0,ir.jsxs)("th",{className:"".concat(h," text-center"),onClick:R("potentialBot"),children:[(0,ir.jsx)(Ls,{icon:oi}),A("potentialBot")]}),(0,ir.jsxs)("th",{className:h,onClick:R("date"),children:["Date",A("date")]}),(0,ir.jsxs)("th",{className:h,onClick:R("country"),children:["Country",A("country")]}),(0,ir.jsxs)("th",{className:h,onClick:R("city"),children:["City",A("city")]}),(0,ir.jsxs)("th",{className:h,onClick:R("browser"),children:["Browser",A("browser")]}),(0,ir.jsxs)("th",{className:h,onClick:R("os"),children:["OS",A("os")]}),(0,ir.jsxs)("th",{className:h,onClick:R("referer"),children:["Referrer",A("referer")]}),d&&(0,ir.jsxs)("th",{className:h,onClick:R("visitedUrl"),children:["Visited URL",A("visitedUrl")]})]}),(0,ir.jsx)("tr",{children:(0,ir.jsx)("td",{colSpan:L,className:"p-0",children:(0,ir.jsx)(Mg,{noBorder:!0,large:!1,onChange:w})})})]}),(0,ir.jsxs)("tbody",{children:[!(null!==(t=E.visitsGroups[O-1])&&void 0!==t&&t.length)&&(0,ir.jsx)("tr",{children:(0,ir.jsx)("td",{colSpan:L,className:"text-center",children:"No visits found with current filtering"})}),null===(n=E.visitsGroups[O-1])||void 0===n?void 0:n.map((function(e,t){var n=o.includes(e);return(0,ir.jsxs)("tr",{style:{cursor:"pointer"},className:Ws()({"table-active":n}),onClick:function(){return a(n?o.filter((function(t){return t!==e})):[].concat(g(o),[e]))},children:[(0,ir.jsx)("td",{className:"text-center",children:n&&(0,ir.jsx)(Ls,{icon:_r,className:"text-primary"})}),D&&(0,ir.jsx)("td",{className:"text-center",children:e.potentialBot&&(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Ls,{icon:oi,id:"botIcon".concat(t)}),(0,ir.jsx)(yv,{placement:"right",target:"botIcon".concat(t),children:"Potentially a visit from a bot or crawler"})]})}),(0,ir.jsx)("td",{children:(0,ir.jsx)(zb,{date:e.date})}),(0,ir.jsx)("td",{children:e.country}),(0,ir.jsx)("td",{children:e.city}),(0,ir.jsx)("td",{children:e.browser}),(0,ir.jsx)("td",{children:e.os}),(0,ir.jsx)("td",{children:e.referer}),d&&(0,ir.jsx)("td",{children:e.visitedUrl})]},t)}))]}),E.total>20&&(0,ir.jsx)("tfoot",{children:(0,ir.jsx)("tr",{children:(0,ir.jsx)("td",{colSpan:L,className:"visits-table__footer-cell visits-table__sticky",children:(0,ir.jsxs)("div",{className:"row",children:[(0,ir.jsx)("div",{className:"col-md-6",children:(0,ir.jsx)(CP,{pagesCount:Math.ceil(E.total/20),currentPage:O,setCurrentPage:j,centered:y})}),(0,ir.jsx)("div",{className:Ws()("col-md-6",{"d-flex align-items-center flex-row-reverse":!y,"text-center mt-3":y}),children:(0,ir.jsxs)("div",{children:["Visits ",(0,ir.jsx)("b",{children:ub(N+1)})," to"," ",(0,ir.jsx)("b",{children:ub(ab(P,E.total))})," of"," ",(0,ir.jsx)("b",{children:ub(E.total)})]})})]})})})})]})})},OP=function(e){var t=e.modalTitle,n=e.activeCities,r=e.locations,i=void 0===r?[]:r,o=v(Zv(),4),a=o[0],s=o[2],u=o[3],c=v(Zv(),3),f=c[0],d=c[1],h=c[2],p=v((0,l.useState)([]),2),m=p[0],g=p[1],y=qv(),b=function(e){return function(){var t;g(e?(t=i,n?t.filter((function(e){var t=e.cityName;return null===n||void 0===n?void 0:n.includes(t)})):t):i),s()}};return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(ac,{color:"link",className:"open-map-modal-btn__btn",id:y,onClick:function(){if(!n)return g(i),void s();h()},children:(0,ir.jsx)(Ls,{icon:Gr})}),(0,ir.jsx)(yv,{placement:"left",target:y,children:"Show in map"}),(0,ir.jsx)(vc,{isOpen:f,toggle:d,inNavbar:!0,children:(0,ir.jsxs)(Dc,{end:!0,children:[(0,ir.jsx)(Mc,{onClick:b(!1),children:"Show all locations"}),(0,ir.jsx)(Mc,{onClick:b(!0),children:"Show locations in current page"})]})}),(0,ir.jsx)(rk,{toggle:u,isOpen:a,title:t,locations:m})]})},jP=function(e){return void 0!==e.visitedUrl},PP=Rm(_t(Pm("groupBy",Wj((function(e,t){return null==e&&(e=[]),e.push(t),e}),null)))((function(e){return jP(e.visit)?"orphanVisits":"regularVisits"})),(function(e){return Ze({orphanVisits:[],regularVisits:[]},e)})),NP=function(e,t){return Zj(Pt(t),e)},DP=function(e){var t,n,r=e.page,i=e.itemsPerPage,o=e.filter,a=e.dateRange;return{page:r,itemsPerPage:i,startDate:null!==(t=(null===a||void 0===a?void 0:a.startDate)&&ny(null===a||void 0===a?void 0:a.startDate))&&void 0!==t?t:void 0,endDate:null!==(n=(null===a||void 0===a?void 0:a.endDate)&&ny(null===a||void 0===a?void 0:a.endDate))&&void 0!==n?n:void 0,excludeBots:(null===o||void 0===o?void 0:o.excludeBots)||void 0}},LP=function(e,t){return!Mn(e)&&Im(e[t])},RP=function(e){return"number"===typeof e?e:e?parseFloat(e):0},AP=function(e){return function(t,n){var r=LP(n,e)?n[e]:"Unknown";t[r]=(t[r]||0)+1}},IP=AP("country"),FP=AP("city"),zP=function(e){return e.reduce((function(e,t){return function(e,t){var n=t.os;e[n]=(e[n]||0)+1}(e.os,t),function(e,t){var n=t.browser;e[n]=(e[n]||0)+1}(e.browsers,t),function(e,t){var n=t.referer;e[n]=(e[n]||0)+1}(e.referrers,t),IP(e.countries,t),FP(e.cities,t),function(e,t){if(LP(t,"city")&&"Unknown"!==t.city){var n=t.city,r=t.latitude,i=t.longitude,o=e[n]||{cityName:n,count:0,latLong:[RP(r),RP(i)]};o.count+=1,e[n]=o}}(e.citiesForMap,t),function(e,t){if(function(e){return void 0!==e.visitedUrl}(t)){var n=t.visitedUrl;e[n]=(e[n]||0)+1}}(e.visitedUrls,t),e}),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}})},BP=Ug((function(e){var t=e.userAgent,n=e.date,r=e.referer,i=e.visitLocation,o=e.potentialBot,a=Ze(Ze({date:n,potentialBot:void 0!==o&&o},function(e){if(!Im(e))return{browser:sP,os:sP};var t=iP().parse(e),n=t.browser.name,r=t.os.name;return{os:null!==r&&void 0!==r?r:sP,browser:n&&lP.includes(n)?n:sP}}(t)),{},{referer:uP(r),country:(null===i||void 0===i?void 0:i.countryName)||"Unknown",city:(null===i||void 0===i?void 0:i.cityName)||"Unknown",latitude:null===i||void 0===i?void 0:i.latitude,longitude:null===i||void 0===i?void 0:i.longitude});return jP(e)?Ze(Ze({},a),{},{type:e.type,visitedUrl:e.visitedUrl}):a})),UP=function(e){var t=e.onChange,n=e.selected,r=void 0===n?{}:n,i=e.className,o=e.isOrphanVisits,a=e.botsSupported;if(!a&&!o)return null;var s=r.orphanVisitsType,l=r.excludeBots,u=void 0!==l&&l,c=function(e){return{active:s===e,onClick:function(){return t(Ze(Ze({},r),{},{orphanVisitsType:e===(null===r||void 0===r?void 0:r.orphanVisitsType)?void 0:e}))}}};return(0,ir.jsxs)(Og,{text:"Filters",dropdownClassName:i,className:"me-3",right:!0,minWidth:250,children:[a&&(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Mc,{header:!0,children:"Bots:"}),(0,ir.jsx)(Mc,{active:u,onClick:function(){return t(Ze(Ze({},r),{},{excludeBots:!(null!==r&&void 0!==r&&r.excludeBots)}))},children:"Exclude potential bots"})]}),a&&o&&(0,ir.jsx)(Mc,{divider:!0}),o&&(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Mc,{header:!0,children:"Orphan visits type:"}),(0,ir.jsx)(Mc,Ze(Ze({},c("base_url")),{},{children:"Base URL"})),(0,ir.jsx)(Mc,Ze(Ze({},c("invalid_short_url")),{},{children:"Invalid short URL"})),(0,ir.jsx)(Mc,Ze(Ze({},c("regular_404")),{},{children:"Regular 404"}))]}),(0,ir.jsx)(Mc,{divider:!0}),(0,ir.jsx)(Mc,{disabled:!Im(r),onClick:function(){return t({})},children:(0,ir.jsx)("i",{children:"Clear filters"})})]})},VP=function(e){var t,n,r=e.chart.config,i=null!==(t=r.data)&&void 0!==t?t:{},o=i.labels,a=void 0===o?[]:o,s=i.datasets,l=v(void 0===s?[]:s,1)[0].backgroundColor,u=(null!==(n=r.options)&&void 0!==n?n:{}).defaultColor;return(0,ir.jsx)("ul",{className:"doughnut-chart-legend",children:a.map((function(e,t){var n;return(0,ir.jsxs)("li",{className:"doughnut-chart-legend__item d-flex",children:[(0,ir.jsx)("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:null!==(n=l[t])&&void 0!==n?n:u}}),(0,ir.jsx)("small",{className:"doughnut-chart-legend__item-text flex-fill",children:e})]},e)}))})},HP=function(e){return[{data:e,backgroundColor:["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],borderColor:$v()?"#161b22":"white",borderWidth:2}]},WP=(0,l.memo)((function(e){var t=e.stats,n=v((0,l.useState)(),2),r=n[0],i=n[1],o=wn(t),a=em(t),s={plugins:{legend:{display:!1},tooltip:{intersect:!0,callbacks:{label:pP}}}},u=function(e,t){return{labels:e,datasets:HP(t)}}(o,a);return(0,ir.jsxs)("div",{className:"row",children:[(0,ir.jsx)("div",{className:"col-sm-12 col-md-7",children:(0,ir.jsx)(zj,{height:300,data:u,options:s,ref:function(e){i(null!==e&&void 0!==e?e:void 0)}})}),(0,ir.jsx)("div",{className:"col-sm-12 col-md-5",children:r&&(0,ir.jsx)(VP,{chart:r})})]})})),ZP=function(e){var t=e.title,n=e.footer,r=e.children;return(0,ir.jsxs)(mf,{role:"document",children:[(0,ir.jsx)(Bf,{className:"chart-card__header",children:"function"===typeof t?t():t}),(0,ir.jsx)(Of,{children:r}),n&&(0,ir.jsx)(Af,{className:"chart-card__footer--sticky",children:n})]})},YP=function(e){var t=e.title,n=e.stats;return(0,ir.jsx)(ZP,{title:t,children:(0,ir.jsx)(WP,{stats:n})})};function qP(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}function GP(e,t){return function(e,t,n){var r,i;if("function"===typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(i=e[n])&&1/i===r)return n;n+=1}return-1}if(t!==t){for(;n<e.length;){if("number"===typeof(i=e[n])&&i!==i)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(Fn(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}function KP(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var QP=function(e){return(e<10?"0":"")+e},$P="function"===typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+QP(e.getUTCMonth()+1)+"-"+QP(e.getUTCDate())+"T"+QP(e.getUTCHours())+":"+QP(e.getUTCMinutes())+":"+QP(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},XP=$P;function JP(e,t){var n=function(n){var r=t.concat([e]);return GP(n,r)?"<Circular>":JP(n,r)},r=function(e,t){return Dg((function(t){return KP(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Dg(n,e).join(", ")+"))";case"[object Array]":return"["+Dg(n,e).concat(r(e,En((function(e){return/^\d+$/.test(e)}),wn(e)))).join(", ")+"]";case"[object Boolean]":return"object"===typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):KP(XP(e)))+")";case"[object Null]":return"null";case"[object Number]":return"object"===typeof e?"new Number("+n(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object String]":return"object"===typeof e?"new String("+n(e.valueOf())+")":KP(e);case"[object Undefined]":return"undefined";default:if("function"===typeof e.toString){var i=e.toString();if("[object Object]"!==i)return i}return"{"+r(e,wn(e)).join(", ")+"}"}}var eN,tN,nN,rN,iN,oN,aN=bt((function(e){return JP(e,[])})),sN=_t((function(e,t){return zg(e+1,(function(){var n=arguments[e];if(null!=n&&qP(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(aN(n)+' does not have a method named "'+t+'"')}))})),lN=sN(0,"toLowerCase"),uN=_t((function(e,t){return Array.prototype.slice.call(t,0).sort((function(t,n){var r=e(t),i=e(n);return r<i?-1:r>i?1:0}))})),cN=uN,fN=function(e){var t=e.toggleClassName,n=e.ranges,r=e.value,i=e.setValue;return(0,ir.jsxs)(mv,{children:[(0,ir.jsx)(Ic,{caret:!0,color:"link",className:t,children:"Paginate"}),(0,ir.jsxs)(Dc,{end:!0,children:[n.map((function(e){return(0,ir.jsxs)(Mc,{active:e===r,onClick:function(){return i(e)},children:[(0,ir.jsx)("b",{children:e})," items per page"]},e)})),(0,ir.jsx)(Mc,{divider:!0}),(0,ir.jsx)(Mc,{disabled:r===1/0,onClick:function(){return i(1/0)},children:(0,ir.jsx)("i",{children:"Clear pagination"})})]})]})},dN=function(e){return e.startsWith("hidden")?"":e},hN=function(e,t,n){var r={data:e,label:n?"Non-selected":"Visits",backgroundColor:"rgba(70, 150, 229, 0.4)",borderColor:Gv,borderWidth:2};return t.every((function(e){return 0===e}))?[r]:[r,{label:null!==n&&void 0!==n?n:"Selected",data:t,backgroundColor:"rgba(247, 127, 40, 0.4)",borderColor:Kv,borderWidth:2}]},pN=function(e){var t=e.stats,n=e.highlightedStats,r=e.highlightedLabel,i=e.onClick,o=e.max,a=wn(t).map(dN),s=em(function(e){return!!e&&Object.keys(e).length>0}(n)?wn(n).reduce((function(e,t){return e[t]&&(e[t]-=n[t]),e}),Ze({},t)):t),u=cP(null!==n&&void 0!==n?n:{},a),c=(0,l.useRef)(null),f=(0,l.useRef)(null),d={plugins:{legend:{display:!1},tooltip:{mode:"y",filter:function(e){return""!==e.label},callbacks:{label:hP}}},scales:{x:{beginAtZero:!0,stacked:!0,max:o,ticks:{precision:0,callback:ub}},y:{stacked:!0}},onHover:dP,indexAxis:"y"},h=function(e,t,n,r){return{labels:e,datasets:hN(t,n,r)}}(a,s,u,r),p=function(e){return e.length>20?10*e.length:void 0}(a),m=function(e,t){return(0,ir.jsx)(Fj,{ref:t,data:h,options:d,height:p,onClick:function(e){return function(e,t,n){var r=v(t,1)[0];n&&r&&n(e[r.index])}(a,Dj(t.current,e),i)}},"".concat(p,"_").concat(e))};return(0,ir.jsxs)(ir.Fragment,{children:[void 0!==n&&m("with_stats",c),void 0===n&&m("without_stats",f)]})},vN=["stats","highlightedStats","title","sortingItems","extraHeaderContent","withPagination"],mN=function(e){return"String"===Ln(e)?lN(e):e},gN=function(e){return v(e,1)[0]},yN=function(e){return v(e,2)[1]},bN=function(e){var t=e.stats,n=e.highlightedStats,r=e.title,i=e.sortingItems,o=e.extraHeaderContent,a=e.withPagination,s=void 0===a||a,u=Wt(e,vN),c=v((0,l.useState)({}),2),f=c[0],d=c[1],h=v((0,l.useState)(1),2),p=h[0],m=h[1],y=v((0,l.useState)(50),2),b=y[0],_=y[1],x=function(e){var t=e[p-1];if(p<e.length)return t;var n=e[0].length;return[].concat(g(t),g(Am(n-t.length,(function(e){return["hidden_".concat(e),0]}))))},w=function(e,t,n){var r=function(e,t){var n=Oy(e),r=f.field?cN(Rm(f.field===Object.keys(t)[0]?gN:yN,mN),n):n;return f.dir&&"ASC"!==f.dir?qj(r):r}(e,t),i=r.map(gN),o=n&&Oy(Ze(Ze({},aP(i,i.map((function(){return 0})))),n));if(r.length<=b)return{currentPageStats:cw(r),currentPageHighlightedStats:o&&cw(o)};var a,s,l=Kb(b,r),u=o&&Kb(b,o);return{currentPageStats:cw(x(l)),currentPageHighlightedStats:u&&cw(x(u)),pagination:(s=l.length,(0,ir.jsx)(CP,{currentPage:p,pagesCount:s,setCurrentPage:m})),max:(a=Math.max.apply(Math,g(r.map(yN))),10*sb(a/10))}}(t,i,n&&Object.keys(n).length>0?n:void 0),k=w.currentPageStats,C=w.currentPageHighlightedStats,S=w.pagination,E=w.max,T=Object.keys(k);return(0,ir.jsx)(ZP,{title:function(){return(0,ir.jsxs)(ir.Fragment,{children:[r,(0,ir.jsx)("div",{className:"float-end",children:(0,ir.jsx)(jy,{isButton:!1,right:!0,items:i,order:f,onChange:function(e,t){d({field:e,dir:t}),m(1)}})}),s&&Object.keys(t).length>50&&(0,ir.jsx)("div",{className:"float-end",children:(0,ir.jsx)(fN,{toggleClassName:"btn-sm p-0 me-3",ranges:[50,100,200,500],value:b,setValue:function(e){_(e),m(1)}})}),o&&(0,ir.jsx)("div",{className:"float-end",children:o(S?T:void 0)})]})},footer:S,children:(0,ir.jsx)(pN,Ze({stats:k,highlightedStats:C,max:E},u))})},_N={byTime:{title:"By time",subPath:"by-time",icon:mr},byContext:{title:"By context",subPath:"by-context",icon:br},byLocation:{title:"By location",subPath:"by-location",icon:Gr},list:{title:"List",subPath:"list",icon:Wr}},xN=function(e){var t,n,r=e.children,i=e.visitsInfo,o=e.getVisits,a=e.cancelGetVisits,s=e.domain,u=e.settings,c=e.exportCsv,f=e.selectedServer,d=e.isOrphanVisits,h=void 0!==d&&d,p=i.visits,m=i.loading,g=i.loadingLarge,y=i.error,b=i.errorData,_=i.progress,x=i.fallbackInterval,w=v((0,l.useState)(null!==(t=null!==x&&void 0!==x?x:null===(n=u.visits)||void 0===n?void 0:n.defaultInterval)&&void 0!==t?t:"last30Days"),2),k=w[0],C=w[1],S=v((0,l.useState)(py(k)),2),E=S[0],T=S[1],M=v((0,l.useState)([]),2),O=M[0],j=M[1],P=v((0,l.useState)(),2),N=P[0],D=P[1],L=v((0,l.useState)({}),2),R=L[0],A=L[1],I=Wm(f),F=(0,l.useRef)(!0),z=function(e){var t=s?"?domain=".concat(s):"";return e?"".concat(e).concat(t):"".concat(t)},B=(0,l.useMemo)((function(){return BP(p)}),[p]),U=(0,l.useMemo)((function(){return zP(B)}),[B]),V=U.os,H=U.browsers,W=U.referrers,Z=U.countries,Y=U.cities,q=U.citiesForMap,G=U.visitedUrls,K=em(q),Q=function(e){eN=void 0,j(e)},$=function(e){return function(t){var n="".concat(e,"_").concat(t);eN===n?(j([]),D(void 0),eN=void 0):(j(B.filter(ak(e,t))),D(t),eN=n)}};(0,l.useEffect)((function(){return a}),[]),(0,l.useEffect)((function(){o({dateRange:E,filter:R},F.current),F.current=!1}),[E,R]),(0,l.useEffect)((function(){x&&C(x)}),[x]);return(0,ir.jsxs)(ir.Fragment,{children:[r,(0,ir.jsx)("section",{className:"mt-3",children:(0,ir.jsxs)("div",{className:"row flex-md-row-reverse",children:[(0,ir.jsx)("div",{className:"col-lg-7 col-xl-6",children:(0,ir.jsxs)("div",{className:"d-md-flex",children:[(0,ir.jsx)("div",{className:"flex-fill",children:(0,ir.jsx)(Ty,{updatable:!0,disabled:m,initialDateRange:k,defaultText:"All visits",onDatesChange:T})}),(0,ir.jsx)(UP,{className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:h,botsSupported:I,selected:R,onChange:A})]})}),p.length>0&&(0,ir.jsx)("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:(0,ir.jsxs)("div",{className:"d-flex",children:[(0,ir.jsx)(Lx,{className:"btn-md-block",amount:B.length,onClick:function(){return c(B)}}),(0,ir.jsxs)(ac,{outline:!0,disabled:0===O.length,className:"btn-md-block ms-2",onClick:function(){return Q([])},children:["Clear selection ",O.length>0&&(0,ir.jsxs)(ir.Fragment,{children:["(",ub(O.length),")"]})]})]})})]})}),(0,ir.jsx)("section",{className:"mt-3",children:g?(0,ir.jsxs)(lm,{loading:!0,children:["This is going to take a while... :S",(0,ir.jsx)(Wd,{value:_,striped:100===_,className:"mt-3"})]}):m?(0,ir.jsx)(lm,{loading:!0}):y?(0,ir.jsx)(O_,{type:"error",children:(0,ir.jsx)(j_,{errorData:b,fallbackMessage:"An error occurred while loading visits :("})}):Bn(p)?(0,ir.jsx)(lm,{children:"There are no visits matching current filter"}):(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(uk,{fill:!0,children:Object.values(_N).map((function(e,t){var n=e.title,r=e.icon,i=e.subPath;return(0,ir.jsxs)(lk,{to:z(i),replace:!0,children:[(0,ir.jsx)(Ls,{icon:r}),(0,ir.jsx)("span",{className:"ms-2 d-none d-sm-inline",children:n})]},t)}))}),(0,ir.jsx)(hu,{children:(0,ir.jsxs)(Ne,{children:[(0,ir.jsx)(je,{path:_N.byTime.subPath,element:(0,ir.jsx)("div",{className:"col-12 mt-3",children:(0,ir.jsx)(kP,{title:"Visits during time",visits:B,highlightedVisits:O,highlightedLabel:N,setSelectedVisits:Q})})}),(0,ir.jsx)(je,{path:_N.byContext.subPath,element:(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)("div",{className:Ws()("mt-3 col-lg-6",{"col-xl-4":!h}),children:(0,ir.jsx)(YP,{title:"Operating systems",stats:V})}),(0,ir.jsx)("div",{className:Ws()("mt-3 col-lg-6",{"col-xl-4":!h}),children:(0,ir.jsx)(YP,{title:"Browsers",stats:H})}),(0,ir.jsx)("div",{className:Ws()("mt-3",{"col-xl-4":!h,"col-lg-6":h}),children:(0,ir.jsx)(bN,{title:"Referrers",stats:W,withPagination:!1,highlightedStats:NP(O,"referer"),highlightedLabel:N,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:$("referer")})}),h&&(0,ir.jsx)("div",{className:"mt-3 col-lg-6",children:(0,ir.jsx)(bN,{title:"Visited URLs",stats:G,highlightedLabel:N,highlightedStats:NP(O,"visitedUrl"),sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:$("visitedUrl")})})]})}),(0,ir.jsx)(je,{path:_N.byLocation.subPath,element:(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)("div",{className:"col-lg-6 mt-3",children:(0,ir.jsx)(bN,{title:"Countries",stats:Z,highlightedStats:NP(O,"country"),highlightedLabel:N,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:$("country")})}),(0,ir.jsx)("div",{className:"col-lg-6 mt-3",children:(0,ir.jsx)(bN,{title:"Cities",stats:Y,highlightedStats:NP(O,"city"),highlightedLabel:N,extraHeaderContent:function(e){return K.length>0&&(0,ir.jsx)(OP,{modalTitle:"Cities",locations:K,activeCities:e})},sortingItems:{name:"City name",amount:"Visits amount"},onClick:$("city")})})]})}),(0,ir.jsx)(je,{path:_N.list.subPath,element:(0,ir.jsx)("div",{className:"col-12",children:(0,ir.jsx)(MP,{visits:B,selectedVisits:O,setSelectedVisits:Q,isOrphanVisits:h,selectedServer:f})})}),(0,ir.jsx)(je,{path:"*",element:(0,ir.jsx)(Oe,{replace:!0,to:z(_N.byTime.subPath)})})]})})]})})]})},wN=function(e){var t=e.exportVisits;return Fy((function(e){var n=e.shortUrlVisits,r=e.shortUrlDetail,i=e.getShortUrlVisits,o=e.getShortUrlDetail,a=e.cancelGetShortUrlVisits,s=e.settings,u=e.selectedServer,c=Ee().shortCode,f=void 0===c?"":c,d=Ce().search,h=Yv(),p=Hn(d).domain;return(0,l.useEffect)((function(){o(b_(f),p)}),[]),(0,ir.jsx)(xN,{getVisits:function(e,t){return i(b_(f),Ze(Ze({},DP(e)),{},{domain:p}),t)},cancelGetVisits:a,visitsInfo:n,domain:p,settings:s,exportCsv:function(e){var n;return t("short-url_".concat(null===(n=r.shortUrl)||void 0===n?void 0:n.shortUrl.replace(/https?:\/\//g,""),"_visits.csv"),e)},selectedServer:u,children:(0,ir.jsx)(ok,{shortUrlDetail:r,shortUrlVisits:n,goBack:h})})}),(function(e,t){return t.shortCode?[zy.shortUrlVisits(b_(t.shortCode))]:[]}))},kN=function(e){var t=e.tagVisits,n=e.goBack,r=e.colorGenerator,i=t.visits,o=t.tag,a=(0,ir.jsxs)("span",{className:"d-flex align-items-center justify-content-center",children:[(0,ir.jsx)("span",{className:"me-2",children:"Visits for"}),(0,ir.jsx)(gb,{text:o,colorGenerator:r})]});return(0,ir.jsx)(ik,{title:a,goBack:n,visits:i})},CN=function(e,t){var n=t.exportVisits;return Fy((function(t){var r=t.getTagVisits,i=t.tagVisits,o=t.cancelGetTagVisits,a=t.settings,s=t.selectedServer,l=Yv(),u=Ee().tag,c=void 0===u?"":u;return(0,ir.jsx)(xN,{getVisits:function(e,t){return r(c,DP(e),t)},cancelGetVisits:o,visitsInfo:i,settings:a,exportCsv:function(e){return n("tag_".concat(c,"_visits.csv"),e)},selectedServer:s,children:(0,ir.jsx)(kN,{tagVisits:i,goBack:l,colorGenerator:e})})}),(function(){return[zy.visits]}))},SN=function(e){var t=e.exportVisits;return Fy((function(e){var n=e.getOrphanVisits,r=e.orphanVisits,i=e.cancelGetOrphanVisits,o=e.settings,a=e.selectedServer,s=Yv();return(0,ir.jsx)(xN,{getVisits:function(e,t){var r;return n(DP(e),null===(r=e.filter)||void 0===r?void 0:r.orphanVisitsType,t)},cancelGetVisits:i,visitsInfo:r,settings:o,exportCsv:function(e){return t("orphan_visits.csv",e)},selectedServer:a,isOrphanVisits:!0,children:(0,ir.jsx)(ik,{title:"Orphan visits",goBack:s,visits:r.visits})})}),(function(){return[zy.orphanVisits]}))},EN=function(e){var t=e.exportVisits;return Fy((function(e){var n=e.getNonOrphanVisits,r=e.nonOrphanVisits,i=e.cancelGetNonOrphanVisits,o=e.settings,a=e.selectedServer,s=Yv();return(0,ir.jsx)(xN,{getVisits:function(e,t){return n(DP(e),t)},cancelGetVisits:i,visitsInfo:r,settings:o,exportCsv:function(e){return t("non_orphan_visits.csv",e)},selectedServer:a,children:(0,ir.jsx)(ik,{title:"Non-orphan visits",goBack:s,visits:r.visits})})}),(function(){return[zy.visits]}))},TN="shlink/shortUrlVisits/GET_SHORT_URL_VISITS_START",MN="shlink/shortUrlVisits/GET_SHORT_URL_VISITS_ERROR",ON="shlink/shortUrlVisits/GET_SHORT_URL_VISITS",jN="shlink/shortUrlVisits/GET_SHORT_URL_VISITS_LARGE",PN="shlink/shortUrlVisits/GET_SHORT_URL_VISITS_CANCEL",NN="shlink/shortUrlVisits/GET_SHORT_URL_VISITS_PROGRESS_CHANGED",DN="shlink/shortUrlVisits/GET_SHORT_URL_VISITS_FALLBACK_TO_INTERVAL",LN={visits:[],shortCode:"",domain:void 0,loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},RN=vg((He(tN={},TN,(function(){return Ze(Ze({},LN),{},{loading:!0})})),He(tN,MN,(function(e,t){var n=t.errorData;return Ze(Ze({},LN),{},{error:!0,errorData:n})})),He(tN,ON,(function(e,t){var n=t.visits,r=t.query,i=t.shortCode,o=t.domain;return Ze(Ze({},e),{},{visits:n,shortCode:i,domain:o,query:r,loading:!1,error:!1})})),He(tN,jN,(function(e){return Ze(Ze({},e),{},{loadingLarge:!0})})),He(tN,PN,(function(e){return Ze(Ze({},e),{},{cancelLoad:!0})})),He(tN,NN,(function(e,t){var n=t.progress;return Ze(Ze({},e),{},{progress:n})})),He(tN,DN,(function(e,t){var n=t.fallbackInterval;return Ze(Ze({},e),{},{fallbackInterval:n})})),He(tN,r_,(function(e,t){var n=t.createdVisits,r=e.shortCode,i=e.domain,o=e.visits,a=e.query,s=void 0===a?{}:a,l=s.startDate,u=s.endDate,c=n.filter((function(e){var t=e.shortUrl,n=e.visit;return t&&g_(t,r,i)&&oy(n.date,l,u)})).map((function(e){return e.visit}));return 0===c.length?e:Ze(Ze({},e),{},{visits:[].concat(g(c),g(o))})})),tN),LN),AN=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){var i=Bt(Yt().mark((function i(o,a){var s,l,u,c,f,d,h;return Yt().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return s=e(a),l=s.getShortUrlVisits,u=function(){var e=Bt(Yt().mark((function e(r,i){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(t,Ze(Ze({},n),{},{page:r,itemsPerPage:i})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),c=n_(r,function(){var e=Bt(Yt().mark((function e(r){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(t,Ze(Ze({},r),{},{domain:n.domain})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),f=function(){return a().shortUrlVisits.cancelLoad},d={shortCode:t,query:n,domain:n.domain},h={start:TN,large:jN,finish:ON,error:MN,progress:NN,fallbackToInterval:DN},i.abrupt("return",t_(u,c,d,h,o,f));case 7:case"end":return i.stop()}}),i)})));return function(e,t){return i.apply(this,arguments)}}()}},IN=mg(PN),FN="shlink/tagVisits/GET_TAG_VISITS_START",zN="shlink/tagVisits/GET_TAG_VISITS_ERROR",BN="shlink/tagVisits/GET_TAG_VISITS",UN="shlink/tagVisits/GET_TAG_VISITS_LARGE",VN="shlink/tagVisits/GET_TAG_VISITS_CANCEL",HN="shlink/tagVisits/GET_TAG_VISITS_PROGRESS_CHANGED",WN="shlink/tagVisits/GET_TAG_VISITS_FALLBACK_TO_INTERVAL",ZN={visits:[],tag:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},YN=vg((He(nN={},FN,(function(){return Ze(Ze({},ZN),{},{loading:!0})})),He(nN,zN,(function(e,t){var n=t.errorData;return Ze(Ze({},ZN),{},{error:!0,errorData:n})})),He(nN,BN,(function(e,t){var n=t.visits,r=t.tag,i=t.query;return Ze(Ze({},e),{},{visits:n,tag:r,query:i,loading:!1,error:!1})})),He(nN,UN,(function(e){return Ze(Ze({},e),{},{loadingLarge:!0})})),He(nN,VN,(function(e){return Ze(Ze({},e),{},{cancelLoad:!0})})),He(nN,HN,(function(e,t){var n=t.progress;return Ze(Ze({},e),{},{progress:n})})),He(nN,WN,(function(e,t){var n=t.fallbackInterval;return Ze(Ze({},e),{},{fallbackInterval:n})})),He(nN,r_,(function(e,t){var n=t.createdVisits,r=e.tag,i=e.visits,o=e.query,a=void 0===o?{}:o,s=a.startDate,l=a.endDate,u=n.filter((function(e){var t=e.shortUrl,n=e.visit;return(null===t||void 0===t?void 0:t.tags.includes(r))&&oy(n.date,s,l)})).map((function(e){return e.visit}));return Ze(Ze({},e),{},{visits:[].concat(g(u),g(i))})})),nN),ZN),qN=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){var i=Bt(Yt().mark((function i(o,a){var s,l,u,c,f,d,h;return Yt().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return s=e(a),l=s.getTagVisits,u=function(){var e=Bt(Yt().mark((function e(r,i){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(t,Ze(Ze({},n),{},{page:r,itemsPerPage:i})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),c=n_(r,function(){var e=Bt(Yt().mark((function e(n){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(t,n));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),f=function(){return a().tagVisits.cancelLoad},d={tag:t,query:n},h={start:FN,large:UN,finish:BN,error:zN,progress:HN,fallbackToInterval:WN},i.abrupt("return",t_(u,c,d,h,o,f));case 7:case"end":return i.stop()}}),i)})));return function(e,t){return i.apply(this,arguments)}}()}},GN=mg(VN),KN="shlink/orphanVisits/GET_ORPHAN_VISITS_START",QN="shlink/orphanVisits/GET_ORPHAN_VISITS_ERROR",$N="shlink/orphanVisits/GET_ORPHAN_VISITS",XN="shlink/orphanVisits/GET_ORPHAN_VISITS_LARGE",JN="shlink/orphanVisits/GET_ORPHAN_VISITS_CANCEL",eD="shlink/orphanVisits/GET_ORPHAN_VISITS_PROGRESS_CHANGED",tD="shlink/orphanVisits/GET_ORPHAN_VISITS_FALLBACK_TO_INTERVAL",nD={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},rD=vg((He(rN={},KN,(function(){return Ze(Ze({},nD),{},{loading:!0})})),He(rN,QN,(function(e,t){var n=t.errorData;return Ze(Ze({},nD),{},{error:!0,errorData:n})})),He(rN,$N,(function(e,t){var n=t.visits,r=t.query;return Ze(Ze({},e),{},{visits:n,query:r,loading:!1,error:!1})})),He(rN,XN,(function(e){return Ze(Ze({},e),{},{loadingLarge:!0})})),He(rN,JN,(function(e){return Ze(Ze({},e),{},{cancelLoad:!0})})),He(rN,eD,(function(e,t){var n=t.progress;return Ze(Ze({},e),{},{progress:n})})),He(rN,tD,(function(e,t){var n=t.fallbackInterval;return Ze(Ze({},e),{},{fallbackInterval:n})})),He(rN,r_,(function(e,t){var n=t.createdVisits,r=e.visits,i=e.query,o=void 0===i?{}:i,a=o.startDate,s=o.endDate,l=n.filter((function(e){var t=e.visit;return!e.shortUrl&&oy(t.date,a,s)})).map((function(e){return e.visit}));return Ze(Ze({},e),{},{visits:[].concat(g(l),g(r))})})),rN),nD),iD=function(e,t){return!t||t===e.type},oD=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){var i=Bt(Yt().mark((function i(o,a){var s,l,u,c,f,d,h;return Yt().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return s=e(a),l=s.getOrphanVisits,u=function(){var e=Bt(Yt().mark((function e(r,i){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l(Ze(Ze({},t),{},{page:r,itemsPerPage:i})).then((function(e){var t=e.data.filter((function(e){return jP(e)&&iD(e,n)}));return Ze(Ze({},e),{},{data:t})})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),c=n_(r,l),f=function(){return a().orphanVisits.cancelLoad},d={query:t},h={start:KN,large:XN,finish:$N,error:QN,progress:eD,fallbackToInterval:tD},i.abrupt("return",t_(u,c,d,h,o,f));case 7:case"end":return i.stop()}}),i)})));return function(e,t){return i.apply(this,arguments)}}()}},aD=mg(JN),sD="shlink/orphanVisits/GET_NON_ORPHAN_VISITS_START",lD="shlink/orphanVisits/GET_NON_ORPHAN_VISITS_ERROR",uD="shlink/orphanVisits/GET_NON_ORPHAN_VISITS",cD="shlink/orphanVisits/GET_NON_ORPHAN_VISITS_LARGE",fD="shlink/orphanVisits/GET_NON_ORPHAN_VISITS_CANCEL",dD="shlink/orphanVisits/GET_NON_ORPHAN_VISITS_PROGRESS_CHANGED",hD="shlink/orphanVisits/GET_NON_ORPHAN_VISITS_FALLBACK_TO_INTERVAL",pD={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},vD=vg((He(iN={},sD,(function(){return Ze(Ze({},pD),{},{loading:!0})})),He(iN,lD,(function(e,t){var n=t.errorData;return Ze(Ze({},pD),{},{error:!0,errorData:n})})),He(iN,uD,(function(e,t){var n=t.visits,r=t.query;return Ze(Ze({},e),{},{visits:n,query:r,loading:!1,error:!1})})),He(iN,cD,(function(e){return Ze(Ze({},e),{},{loadingLarge:!0})})),He(iN,fD,(function(e){return Ze(Ze({},e),{},{cancelLoad:!0})})),He(iN,dD,(function(e,t){var n=t.progress;return Ze(Ze({},e),{},{progress:n})})),He(iN,hD,(function(e,t){var n=t.fallbackInterval;return Ze(Ze({},e),{},{fallbackInterval:n})})),He(iN,r_,(function(e,t){var n=t.createdVisits,r=e.visits,i=e.query,o=void 0===i?{}:i,a=o.startDate,s=o.endDate,l=n.filter((function(e){var t=e.visit;return oy(t.date,a,s)})).map((function(e){return e.visit}));return Ze(Ze({},e),{},{visits:[].concat(g(l),g(r))})})),iN),pD),mD=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(){var r=Bt(Yt().mark((function r(i,o){var a,s,l,u,c,f,d;return Yt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e(o),s=a.getNonOrphanVisits,l=function(){var e=Bt(Yt().mark((function e(n,r){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s(Ze(Ze({},t),{},{page:n,itemsPerPage:r})));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),u=n_(n,s),c=function(){return o().orphanVisits.cancelLoad},f={query:t},d={start:sD,large:cD,finish:uD,error:lD,progress:dD,fallbackToInterval:hD},r.abrupt("return",t_(l,u,f,d,i,c));case 7:case"end":return r.stop()}}),r)})));return function(e,t){return r.apply(this,arguments)}}()}},gD=mg(fD),yD=["visitsCount","orphanVisitsCount"],bD="shlink/visitsOverview/GET_OVERVIEW_START",_D="shlink/visitsOverview/GET_OVERVIEW_ERROR",xD="shlink/visitsOverview/GET_OVERVIEW",wD={visitsCount:0,orphanVisitsCount:0,loading:!1,error:!1},kD=vg((He(oN={},bD,(function(){return Ze(Ze({},wD),{},{loading:!0})})),He(oN,_D,(function(){return Ze(Ze({},wD),{},{error:!0})})),He(oN,xD,(function(e,t){var n=t.visitsCount,r=t.orphanVisitsCount;return Ze(Ze({},wD),{},{visitsCount:n,orphanVisitsCount:r})})),He(oN,r_,(function(e,t){var n=e.visitsCount,r=e.orphanVisitsCount,i=void 0===r?0:r,o=Wt(e,yD),a=t.createdVisits,s=PP(a),l=s.regularVisits,u=s.orphanVisits;return Ze(Ze({},o),{},{visitsCount:n+l.length,orphanVisitsCount:i+u.length})})),oN),wD),CD=function(e){return function(){return function(){var t=Bt(Yt().mark((function t(n,r){var i,o,a;return Yt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n({type:bD}),t.prev=1,i=e(r),o=i.getVisitsOverview,t.next=5,o();case 5:a=t.sent,n(Ze({type:xD},a)),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(1),n({type:_D});case 12:case"end":return t.stop()}}),t,null,[[1,9]])})));return function(e,n){return t.apply(this,arguments)}}()}},SD=function(e){var t=e.exportVisits;return Fy((function(e){var n=e.getDomainVisits,r=e.domainVisits,i=e.cancelGetDomainVisits,o=e.settings,a=e.selectedServer,s=Yv(),l=Ee().domain,u=v((void 0===l?"":l).split("_"),2),c=u[0],f=u[1],d=void 0===f?c:f;return(0,ir.jsx)(xN,{getVisits:function(e,t){return n(d,DP(e),t)},cancelGetVisits:i,visitsInfo:r,settings:o,exportCsv:function(e){return t("domain_".concat(c,"_visits.csv"),e)},selectedServer:a,children:(0,ir.jsx)(ik,{goBack:s,visits:r.visits,title:'"'.concat(c,'" visits')})})}),(function(){return[zy.visits]}))},ED=function(t,n){t.serviceFactory("MapModal",(function(){return rk})),t.serviceFactory("ShortUrlVisits",wN,"ReportExporter"),t.decorator("ShortUrlVisits",n(["shortUrlVisits","shortUrlDetail","mercureInfo","settings","selectedServer"],["getShortUrlVisits","getShortUrlDetail","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),t.serviceFactory("TagVisits",CN,"ColorGenerator","ReportExporter"),t.decorator("TagVisits",n(["tagVisits","mercureInfo","settings","selectedServer"],["getTagVisits","cancelGetTagVisits","createNewVisits","loadMercureInfo"])),t.serviceFactory("DomainVisits",SD,"ReportExporter"),t.decorator("DomainVisits",n(["domainVisits","mercureInfo","settings","selectedServer"],["getDomainVisits","cancelGetDomainVisits","createNewVisits","loadMercureInfo"])),t.serviceFactory("OrphanVisits",SN,"ReportExporter"),t.decorator("OrphanVisits",n(["orphanVisits","mercureInfo","settings","selectedServer"],["getOrphanVisits","cancelGetOrphanVisits","createNewVisits","loadMercureInfo"])),t.serviceFactory("NonOrphanVisits",EN,"ReportExporter"),t.decorator("NonOrphanVisits",n(["nonOrphanVisits","mercureInfo","settings","selectedServer"],["getNonOrphanVisits","cancelGetNonOrphanVisits","createNewVisits","loadMercureInfo"])),t.serviceFactory("VisitsParser",(function(){return e})),t.serviceFactory("getShortUrlVisits",AN,"buildShlinkApiClient"),t.serviceFactory("cancelGetShortUrlVisits",(function(){return IN})),t.serviceFactory("getTagVisits",qN,"buildShlinkApiClient"),t.serviceFactory("cancelGetTagVisits",(function(){return GN})),t.serviceFactory("getDomainVisits",v_,"buildShlinkApiClient"),t.serviceFactory("cancelGetDomainVisits",(function(){return m_})),t.serviceFactory("getOrphanVisits",oD,"buildShlinkApiClient"),t.serviceFactory("cancelGetOrphanVisits",(function(){return aD})),t.serviceFactory("getNonOrphanVisits",mD,"buildShlinkApiClient"),t.serviceFactory("cancelGetNonOrphanVisits",(function(){return gD})),t.serviceFactory("createNewVisits",(function(){return i_})),t.serviceFactory("loadVisitsOverview",CD,"buildShlinkApiClient")},TD=n(4581),MD=n.n(TD),OD=function(e){var t=e.tag,n=e.colorGenerator;return(0,ir.jsx)("div",{style:{backgroundColor:n.getColorForKey(t)},className:"tag-bullet"})},jD=function(e){return{id:e,name:e}},PD=function(e){return function(t){var n,r,i=t.selectedTags,o=t.onChange,a=t.placeholder,s=t.listTags,u=t.tagsList,c=t.settings,f=t.allowNew,d=void 0===f||f;(0,l.useEffect)((function(){s()}),[]);var h=null!==(n=null===(r=c.shortUrlCreation)||void 0===r?void 0:r.tagFilteringMode)&&void 0!==n?n:"startsWith";return(0,ir.jsx)(MD(),{tags:i.map(jD),tagComponent:function(t){var n=t.tag,r=t.onDelete;return(0,ir.jsx)(gb,{colorGenerator:e,text:n.name,clearable:!0,className:"react-tags__tag",onClose:r})},suggestions:u.tags.filter((function(e){return!i.includes(e)})).map(jD),suggestionComponent:function(t){var n=t.item;return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(OD,{tag:"".concat(n.name),colorGenerator:e}),n.name]})},allowNew:d,addOnBlur:!0,placeholderText:null!==a&&void 0!==a?a:"Add tags to the URL",minQueryLength:1,delimiters:["Enter","Tab",","],suggestionsTransform:"includes"===h?function(e,t){return t.filter((function(t){return t.name.includes(e)}))}:void 0,onDelete:function(e){var t=g(i);t.splice(e,1),o(t)},onAddition:function(e){var t=e.name;return o(g(new Set([].concat(g(i),g(t.toLowerCase().split(","))))))}})}},ND=function(e,t,n){return function(r){var i=r.tag,o=r.selectedServer,a=r.displayed,s=r.toggle,u=v(Zv(),2),c=u[0],f=u[1],d=v(Zv(),2),h=d[0],p=d[1],m=v(Zv(),3),g=m[0],y=m[2],b=(0,l.useRef)(),_=It(o);return(0,l.useEffect)((function(){var e;(e=b.current)&&e.scrollWidth>e.clientWidth&&y()}),[b.current]),(0,ir.jsxs)(mf,{className:"tag-card",children:[(0,ir.jsxs)(Bf,{className:"tag-card__header",children:[(0,ir.jsx)(ac,{"aria-label":"Delete tag",color:"link",size:"sm",className:"tag-card__btn tag-card__btn--last",onClick:f,children:(0,ir.jsx)(Ls,{icon:pi})}),(0,ir.jsx)(ac,{"aria-label":"Edit tag",color:"link",size:"sm",className:"tag-card__btn",onClick:p,children:(0,ir.jsx)(Ls,{icon:ti})}),(0,ir.jsxs)("h5",{className:"tag-card__tag-title text-ellipsis",title:g?i.tag:void 0,ref:k_(b),children:[(0,ir.jsx)(OD,{tag:i.tag,colorGenerator:n}),(0,ir.jsx)("span",{className:"tag-card__tag-name",onClick:s,children:i.tag})]})]}),(0,ir.jsx)(af,{isOpen:a,children:(0,ir.jsxs)(Of,{className:"tag-card__body",children:[(0,ir.jsxs)(ze,{to:"/server/".concat(_,"/list-short-urls/1?tags=").concat(encodeURIComponent(i.tag)),className:"btn btn-outline-secondary btn-block d-flex justify-content-between align-items-center mb-1",children:[(0,ir.jsxs)("span",{className:"text-ellipsis",children:[(0,ir.jsx)(Ls,{icon:Hr,className:"me-2"}),"Short URLs"]}),(0,ir.jsx)("b",{children:ub(i.shortUrls)})]}),(0,ir.jsxs)(ze,{to:"/server/".concat(_,"/tag/").concat(i.tag,"/visits"),className:"btn btn-outline-secondary btn-block d-flex justify-content-between align-items-center",children:[(0,ir.jsxs)("span",{className:"text-ellipsis",children:[(0,ir.jsx)(Ls,{icon:Nr,className:"me-2"}),"Visits"]}),(0,ir.jsx)("b",{children:ub(i.visits)})]})]})}),(0,ir.jsx)(e,{tag:i.tag,toggle:f,isOpen:c}),(0,ir.jsx)(t,{tag:i.tag,toggle:p,isOpen:h})]})}},DD=function(e){var t=e.tag,n=e.toggle,r=e.isOpen,i=e.deleteTag,o=e.tagDelete,a=e.tagDeleted,s=o.deleting,l=o.error,u=o.errorData,c=function(){var e=Bt(Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i(t);case 2:a(t),n();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,ir.jsxs)(eh,{toggle:n,isOpen:r,centered:!0,children:[(0,ir.jsx)(ih,{toggle:n,className:"text-danger",children:"Delete tag"}),(0,ir.jsxs)(lh,{children:["Are you sure you want to delete tag ",(0,ir.jsx)("b",{children:t}),"?",l&&(0,ir.jsx)(O_,{type:"error",small:!0,className:"mt-2",children:(0,ir.jsx)(j_,{errorData:u,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),(0,ir.jsxs)(dh,{children:[(0,ir.jsx)(ac,{color:"link",onClick:n,children:"Cancel"}),(0,ir.jsx)(ac,{color:"danger",disabled:s,onClick:c,children:s?"Deleting tag...":"Delete tag"})]})]})};function LD(){return(LD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function RD(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}function AD(e){var t=(0,l.useRef)(e),n=(0,l.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var ID=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},FD=function(e){return"touches"in e},zD=function(e){return e&&e.ownerDocument.defaultView||self},BD=function(e,t,n){var r=e.getBoundingClientRect(),i=FD(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:ID((i.pageX-(r.left+zD(e).pageXOffset))/r.width),top:ID((i.pageY-(r.top+zD(e).pageYOffset))/r.height)}},UD=function(e){!FD(e)&&e.preventDefault()},VD=l.memo((function(e){var t=e.onMove,n=e.onKey,r=RD(e,["onMove","onKey"]),i=(0,l.useRef)(null),o=AD(t),a=AD(n),s=(0,l.useRef)(null),u=(0,l.useRef)(!1),c=(0,l.useMemo)((function(){var e=function(e){UD(e),(FD(e)?e.touches.length>0:e.buttons>0)&&i.current?o(BD(i.current,e,s.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=u.current,o=zD(i.current),a=n?o.addEventListener:o.removeEventListener;a(r?"touchmove":"mousemove",e),a(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=i.current;if(r&&(UD(t),!function(e,t){return t&&!FD(e)}(t,u.current)&&r)){if(FD(t)){u.current=!0;var a=t.changedTouches||[];a.length&&(s.current=a[0].identifier)}r.focus(),o(BD(r,t,s.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),a({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[a,o]),f=c[0],d=c[1],h=c[2];return(0,l.useEffect)((function(){return h}),[h]),l.createElement("div",LD({},r,{onTouchStart:f,onMouseDown:f,className:"react-colorful__interactive",ref:i,onKeyDown:d,tabIndex:0,role:"slider"}))})),HD=function(e){return e.filter(Boolean).join(" ")},WD=function(e){var t=e.color,n=e.left,r=e.top,i=void 0===r?.5:r,o=HD(["react-colorful__pointer",e.className]);return l.createElement("div",{className:o,style:{top:100*i+"%",left:100*n+"%"}},l.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},ZD=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},YD=(Math.PI,function(e){return"#"===e[0]&&(e=e.substr(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:1}:{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:1}}),qD=function(e){var t=e.s,n=e.v,r=e.a,i=(200-t)*n/100;return{h:ZD(e.h),s:ZD(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:ZD(i/2),a:ZD(r,2)}},GD=function(e){var t=qD(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},KD=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),a=r*(1-n),s=r*(1-(t-o)*n),l=r*(1-(1-t+o)*n),u=o%6;return{r:ZD(255*[r,s,a,a,l,r][u]),g:ZD(255*[l,r,r,s,a,a][u]),b:ZD(255*[a,a,l,r,r,s][u]),a:ZD(i,2)}},QD=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},$D=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),a=o-Math.min(t,n,r),s=a?o===t?(n-r)/a:o===n?2+(r-t)/a:4+(t-n)/a:0;return{h:ZD(60*(s<0?s+6:s)),s:ZD(o?a/o*100:0),v:ZD(o/255*100),a:i}},XD=l.memo((function(e){var t=e.hue,n=e.onChange,r=HD(["react-colorful__hue",e.className]);return l.createElement("div",{className:r},l.createElement(VD,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:ID(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuetext":ZD(t)},l.createElement(WD,{className:"react-colorful__hue-pointer",left:t/360,color:GD({h:t,s:100,v:100,a:1})})))})),JD=l.memo((function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:GD({h:t.h,s:100,v:100,a:1})};return l.createElement("div",{className:"react-colorful__saturation",style:r},l.createElement(VD,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:ID(t.s+100*e.left,0,100),v:ID(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+ZD(t.s)+"%, Brightness "+ZD(t.v)+"%"},l.createElement(WD,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:GD(t)})))})),eL=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function tL(e,t,n){var r=AD(n),i=(0,l.useState)((function(){return e.toHsva(t)})),o=i[0],a=i[1],s=(0,l.useRef)({color:t,hsva:o});(0,l.useEffect)((function(){if(!e.equal(t,s.current.color)){var n=e.toHsva(t);s.current={hsva:n,color:t},a(n)}}),[t,e]),(0,l.useEffect)((function(){var t;eL(o,s.current.hsva)||e.equal(t=e.fromHsva(o),s.current.color)||(s.current={hsva:o,color:t},r(t))}),[o,e,r]);var u=(0,l.useCallback)((function(e){a((function(t){return Object.assign({},t,e)}))}),[]);return[o,u]}var nL,rL,iL,oL,aL,sL="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,lL=new Map,uL=function(e){sL((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!lL.has(t)){var r=t.createElement("style");r.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',lL.set(t,r);var i=nL||n.nc;i&&r.setAttribute("nonce",i),t.head.appendChild(r)}}),[])},cL=function(e){var t=e.className,n=e.colorModel,r=e.color,i=void 0===r?n.defaultColor:r,o=e.onChange,a=RD(e,["className","colorModel","color","onChange"]),s=(0,l.useRef)(null);uL(s);var u=tL(n,i,o),c=u[0],f=u[1],d=HD(["react-colorful",t]);return l.createElement("div",LD({},a,{ref:s,className:d}),l.createElement(JD,{hsva:c,onChange:f}),l.createElement(XD,{hue:c.h,onChange:f,className:"react-colorful__last-control"}))},fL={defaultColor:"000",toHsva:function(e){return $D(YD(e))},fromHsva:function(e){return n=(t=KD(e)).g,r=t.b,"#"+QD(t.r)+QD(n)+QD(r);var t,n,r},equal:function(e,t){return e.toLowerCase()===t.toLowerCase()||eL(YD(e),YD(t))}},dL=function(e){return l.createElement(cL,LD({},e,{colorModel:fL}))},hL=function(e){var t=e.getColorForKey;return function(e){var n=e.tag,r=e.editTag,i=e.toggle,o=e.tagEdited,a=e.isOpen,s=e.tagEdit,u=v((0,l.useState)(n),2),c=u[0],f=u[1],d=v((0,l.useState)(t(n)),2),h=d[0],p=d[1],m=v(Zv(),4),g=m[0],y=m[1],b=m[3],_=s.editing,x=s.error,w=s.errorData,k=Fm(Bt(Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r(n,c,h).then((function(){return o(n,c,h)})).then(i).catch((function(){})));case 1:case"end":return e.stop()}}),e)}))));return(0,ir.jsx)(eh,{isOpen:a,toggle:i,centered:!0,onClosed:b,children:(0,ir.jsxs)("form",{name:"editTag",onSubmit:k,children:[(0,ir.jsx)(ih,{toggle:i,children:"Edit tag"}),(0,ir.jsxs)(lh,{children:[(0,ir.jsxs)(Hh,{children:[(0,ir.jsx)("div",{id:"colorPickerBtn",className:"input-group-text edit-tag-modal__color-picker-toggle",style:{backgroundColor:h,borderColor:h},onClick:y,children:(0,ir.jsx)(Ls,{icon:Qr,className:"edit-tag-modal__color-icon"})}),(0,ir.jsx)(Dd,{isOpen:g,toggle:y,target:"colorPickerBtn",placement:"right",hideArrow:!0,popperClassName:"edit-tag-modal__popover",children:(0,ir.jsx)(dL,{color:h,onChange:p})}),(0,ir.jsx)(zh,{value:c,placeholder:"Tag",required:!0,onChange:function(e){var t=e.target;return f(t.value)}})]}),x&&(0,ir.jsx)(O_,{type:"error",small:!0,className:"mt-2",children:(0,ir.jsx)(j_,{errorData:w,fallbackMessage:"Something went wrong while editing the tag :("})})]}),(0,ir.jsxs)(dh,{children:[(0,ir.jsx)(ac,{type:"button",color:"link",onClick:i,children:"Cancel"}),(0,ir.jsx)(ac,{color:"primary",disabled:_,children:_?"Saving...":"Save"})]})]})})}},pL={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},vL=function(e){var t,n=e.mode,r=e.onChange,i=e.renderTitle;return(0,ir.jsxs)(Og,{text:null!==(t=null===i||void 0===i?void 0:i(n))&&void 0!==t?t:"Display mode: ".concat(n),children:[(0,ir.jsxs)(Mc,{active:"cards"===n,onClick:function(){return r("cards")},children:[(0,ir.jsx)(Ls,{icon:fi,fixedWidth:!0,className:"me-1"})," Cards"]}),(0,ir.jsxs)(Mc,{active:"list"===n,onClick:function(){return r("list")},children:[(0,ir.jsx)(Ls,{icon:pr,fixedWidth:!0,className:"me-1"})," List"]})]})},mL=function(e,t){return Fy((function(n){var r,i,o,a,s=n.filterTags,u=n.forceListTags,c=n.tagsList,f=n.selectedServer,d=n.settings,h=v((0,l.useState)(null!==(r=null===(i=d.tags)||void 0===i?void 0:i.defaultMode)&&void 0!==r?r:"cards"),2),p=h[0],m=h[1],g=v((0,l.useState)(null!==(o=null===(a=d.tags)||void 0===a?void 0:a.defaultOrdering)&&void 0!==o?o:{}),2),y=g[0],b=g[1],_=Rm((function(){return c.filteredTags.map((function(e){var t,n,r,i;return{tag:e,shortUrls:null!==(t=null===(n=c.stats[e])||void 0===n?void 0:n.shortUrlsCount)&&void 0!==t?t:0,visits:null!==(r=null===(i=c.stats[e])||void 0===i?void 0:i.visitsCount)&&void 0!==r?r:0}}))}),(function(e){return Yn(e,y)}));if((0,l.useEffect)((function(){u()}),[]),c.loading)return(0,ir.jsx)(lm,{loading:!0});if(c.error)return(0,ir.jsx)(O_,{type:"error",children:(0,ir.jsx)(j_,{errorData:c.errorData,fallbackMessage:"Error loading tags :("})});var x=function(e){return function(){var t=Zn(e,y.field,y.dir);b({field:t?e:void 0,dir:t})}};return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Mg,{className:"mb-3",onChange:s}),(0,ir.jsxs)(hu,{className:"mb-3",children:[(0,ir.jsx)("div",{className:"col-lg-6",children:(0,ir.jsx)(vL,{mode:p,onChange:m})}),(0,ir.jsx)("div",{className:"col-lg-6 mt-3 mt-lg-0",children:(0,ir.jsx)(jy,{items:pL,order:y,onChange:function(e,t){return b({field:e,dir:t})}})})]}),function(){if(c.filteredTags.length<1)return(0,ir.jsx)(lm,{children:"No tags found"});var n=_();return"cards"===p?(0,ir.jsx)(e,{sortedTags:n,selectedServer:f}):(0,ir.jsx)(t,{sortedTags:n,selectedServer:f,currentOrder:y,orderByColumn:x})}()]})}),(function(){return[zy.visits]}))},gL="shlink/deleteTag/DELETE_TAG_START",yL="shlink/deleteTag/DELETE_TAG_ERROR",bL="shlink/deleteTag/DELETE_TAG",_L="shlink/deleteTag/TAG_DELETED",xL=vg((He(rL={},gL,(function(){return{deleting:!0,error:!1}})),He(rL,yL,(function(e,t){return{deleting:!1,error:!0,errorData:t.errorData}})),He(rL,bL,(function(){return{deleting:!1,error:!1}})),rL),{deleting:!1,error:!1}),wL=function(e){return function(t){return function(){var n=Bt(Yt().mark((function n(r,i){var o,a;return Yt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r({type:gL}),o=e(i),a=o.deleteTags,n.prev=2,n.next=5,a([t]);case 5:r({type:bL}),n.next=12;break;case 8:throw n.prev=8,n.t0=n.catch(2),r({type:yL,errorData:Qb(n.t0)}),n.t0;case 12:case"end":return n.stop()}}),n,null,[[2,8]])})));return function(e,t){return n.apply(this,arguments)}}()}},kL=function(e){return{type:_L,tag:e}},CL="shlink/editTag/EDIT_TAG_START",SL="shlink/editTag/EDIT_TAG_ERROR",EL="shlink/editTag/EDIT_TAG",TL="shlink/editTag/TAG_EDITED",ML=vg((He(iL={},CL,(function(e){return Ze(Ze({},e),{},{editing:!0,error:!1})})),He(iL,SL,(function(e,t){var n=t.errorData;return Ze(Ze({},e),{},{editing:!1,error:!0,errorData:n})})),He(iL,EL,(function(e,t){return Ze(Ze({},wt(["oldName","newName"],t)),{},{editing:!1,error:!1})})),iL),{oldName:"",newName:"",editing:!1,error:!1}),OL=function(e,t){return function(n,r,i){return function(){var o=Bt(Yt().mark((function o(a,s){var l,u;return Yt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a({type:CL}),l=e(s),u=l.editTag,o.prev=2,o.next=5,u(n,r);case 5:t.setColorForKey(r,i),a({type:EL,oldName:n,newName:r}),o.next=13;break;case 9:throw o.prev=9,o.t0=o.catch(2),a({type:SL,errorData:Qb(o.t0)}),o.t0;case 13:case"end":return o.stop()}}),o,null,[[2,9]])})));return function(e,t){return o.apply(this,arguments)}}()}},jL=function(e,t,n){return{type:TL,oldName:e,newName:t,color:n}},PL=["tags"],NL="shlink/tagsList/LIST_TAGS_START",DL="shlink/tagsList/LIST_TAGS_ERROR",LL="shlink/tagsList/LIST_TAGS",RL="shlink/tagsList/FILTER_TAGS",AL={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},IL=function(e,t){return function(n){return n===e?t:n}},FL=function(e,t){return En((function(e){return e===t}),e)},zL=function(e){return Object.entries(e.reduce((function(e,t){var n=t.shortUrl;return null===n||void 0===n||n.tags.forEach((function(t){e[t]=(e[t]||0)+1})),e}),{}))},BL=vg((He(oL={},NL,(function(){return Ze(Ze({},AL),{},{loading:!0})})),He(oL,DL,(function(e,t){var n=t.errorData;return Ze(Ze({},AL),{},{error:!0,errorData:n})})),He(oL,LL,(function(e,t){var n=t.tags,r=t.stats;return Ze(Ze({},AL),{},{stats:r,tags:n,filteredTags:n})})),He(oL,_L,(function(e,t){var n=t.tag;return Ze(Ze({},e),{},{tags:FL(e.tags,n),filteredTags:FL(e.filteredTags,n)})})),He(oL,TL,(function(e,t){var n=t.oldName,r=t.newName;return Ze(Ze({},e),{},{tags:e.tags.map(IL(n,r)).sort(),filteredTags:e.filteredTags.map(IL(n,r)).sort()})})),He(oL,RL,(function(e,t){var n=t.searchTerm;return Ze(Ze({},e),{},{filteredTags:e.tags.filter((function(e){return e.toLowerCase().match(n.toLowerCase())}))})})),He(oL,r_,(function(e,t){var n,r,i=t.createdVisits;return Ze(Ze({},e),{},{stats:(n=zL(i),r=e.stats,n.reduce((function(e,t){var n=v(t,2),r=n[0],i=n[1];if(!e[r])return e;var o=e[r];return o.visitsCount+=i,e[r]=o,e}),Ze({},r)))})})),He(oL,G_,(function(e,t){var n=e.tags,r=Wt(e,PL),i=t.result;return Ze(Ze({},r),{},{tags:n.concat(i.tags.filter((function(e){return!n.includes(e)})))})})),oL),AL),UL=function(e){return{type:RL,searchTerm:e}},VL=Math.ceil,HL=function(e){return function(t){var n=t.sortedTags,r=t.selectedServer,i=v((0,l.useState)(),2),o=i[0],a=i[1],s=n.length,u=Kb(VL(s/4),n);return(0,ir.jsx)(hu,{children:u.map((function(t,n){return(0,ir.jsx)("div",{className:"col-md-6 col-xl-3",children:t.map((function(t){return(0,ir.jsx)(e,{tag:t,selectedServer:r,displayed:o===t.tag,toggle:function(){return a(o!==t.tag?t.tag:void 0)}},t.tag)}))},n)}))})}},WL=function(e){return function(t){var n,r=t.sortedTags,i=t.selectedServer,o=t.orderByColumn,a=t.currentOrder,s=(0,l.useRef)(!0),u=Ce().search,c=Hn(u).page,f=function(e,t){var n=v((0,l.useState)(t),2),r=n[0],i=n[1];return[r,function(t){var n=window,r=n.location,o=n.history,a=Hn(r.search);a[e]=t,o.pushState(null,"","".concat(r.pathname,"?").concat(Wn(a))),i(t)}]}("page",Number(void 0===c?1:c)),d=v(f,2),h=d[0],p=d[1],m=Kb(20,r),g=m.length>1,y=null!==(n=m[h-1])&&void 0!==n?n:[];return(0,l.useEffect)((function(){!s.current&&p(1),s.current=!1}),[r]),(0,l.useEffect)((function(){scrollTo(0,0)}),[h]),(0,ir.jsxs)(tg,{bodyClassName:g?"pb-1":"",children:[(0,ir.jsxs)("table",{className:"table table-hover responsive-table mb-0",children:[(0,ir.jsxs)("thead",{className:"responsive-table__header",children:[(0,ir.jsxs)("tr",{children:[(0,ir.jsxs)("th",{className:"tags-table__header-cell",onClick:o("tag"),children:["Tag ",(0,ir.jsx)(By,{currentOrder:a,field:"tag"})]}),(0,ir.jsxs)("th",{className:"tags-table__header-cell text-lg-end",onClick:o("shortUrls"),children:["Short URLs ",(0,ir.jsx)(By,{currentOrder:a,field:"shortUrls"})]}),(0,ir.jsxs)("th",{className:"tags-table__header-cell text-lg-end",onClick:o("visits"),children:["Visits ",(0,ir.jsx)(By,{currentOrder:a,field:"visits"})]}),(0,ir.jsx)("th",{"aria-label":"Options",className:"tags-table__header-cell"})]}),(0,ir.jsx)("tr",{children:(0,ir.jsx)("th",{"aria-label":"Separator",colSpan:4,className:"p-0 border-top-0"})})]}),(0,ir.jsxs)("tbody",{children:[0===y.length&&(0,ir.jsx)("tr",{children:(0,ir.jsx)("td",{colSpan:4,className:"text-center",children:"No results found"})}),y.map((function(t){return(0,ir.jsx)(e,{tag:t,selectedServer:i},t.tag)}))]})]}),g&&(0,ir.jsx)("div",{className:"sticky-card-paginator",children:(0,ir.jsx)(CP,{pagesCount:m.length,currentPage:h,setCurrentPage:p})})]},h)}},ZL=function(e,t,n){return function(r){var i=r.tag,o=r.selectedServer,a=v(Zv(),2),s=a[0],l=a[1],u=v(Zv(),2),c=u[0],f=u[1],d=v(Zv(),2),h=d[0],p=d[1],m=It(o);return(0,ir.jsxs)("tr",{className:"responsive-table__row",children:[(0,ir.jsxs)("th",{className:"responsive-table__cell","data-th":"Tag",children:[(0,ir.jsx)(OD,{tag:i.tag,colorGenerator:n})," ",i.tag]}),(0,ir.jsx)("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:(0,ir.jsx)(ze,{to:"/server/".concat(m,"/list-short-urls/1?tags=").concat(encodeURIComponent(i.tag)),children:ub(i.shortUrls)})}),(0,ir.jsx)("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:(0,ir.jsx)(ze,{to:"/server/".concat(m,"/tag/").concat(i.tag,"/visits"),children:ub(i.visits)})}),(0,ir.jsx)("td",{className:"responsive-table__cell text-lg-end",children:(0,ir.jsxs)(E_,{toggle:p,isOpen:h,children:[(0,ir.jsxs)(Mc,{onClick:f,children:[(0,ir.jsx)(Ls,{icon:ti,fixedWidth:!0,className:"me-1"})," Edit"]}),(0,ir.jsxs)(Mc,{onClick:l,children:[(0,ir.jsx)(Ls,{icon:pi,fixedWidth:!0,className:"me-1"})," Delete"]})]})}),(0,ir.jsx)(t,{tag:i.tag,toggle:f,isOpen:c}),(0,ir.jsx)(e,{tag:i.tag,toggle:l,isOpen:s})]})}},YL=function(e,t){e.serviceFactory("TagsSelector",PD,"ColorGenerator"),e.decorator("TagsSelector",t(["tagsList","settings"],["listTags"])),e.serviceFactory("TagCard",ND,"DeleteTagConfirmModal","EditTagModal","ColorGenerator"),e.serviceFactory("DeleteTagConfirmModal",(function(){return DD})),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.serviceFactory("EditTagModal",hL,"ColorGenerator"),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.serviceFactory("TagsCards",HL,"TagCard"),e.serviceFactory("TagsTableRow",ZL,"DeleteTagConfirmModal","EditTagModal","ColorGenerator"),e.serviceFactory("TagsTable",WL,"TagsTableRow"),e.serviceFactory("TagsList",mL,"TagsCards","TagsTable"),e.decorator("TagsList",t(["tagsList","selectedServer","mercureInfo","settings"],["forceListTags","filterTags","createNewVisits","loadMercureInfo"]));var n=function(e){return function(t){return function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(){return function(){var n=Bt(Yt().mark((function n(r,i){var o,a,s,l,u,c,f,d;return Yt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=i(),a=o.tagsList,t||!a.loading&&Bn(a.tags)){n.next=3;break}return n.abrupt("return");case 3:return r({type:NL}),n.prev=4,s=e(i),l=s.listTags,n.next=8,l();case 8:u=n.sent,c=u.tags,f=u.stats,d=(void 0===f?[]:f).reduce((function(e,t){var n=t.tag,r=t.shortUrlsCount,i=t.visitsCount;return e[n]={shortUrlsCount:r,visitsCount:i},e}),{}),r({tags:c,stats:d,type:LL}),n.next=19;break;case 16:n.prev=16,n.t0=n.catch(4),r({type:DL,errorData:Qb(n.t0)});case 19:case"end":return n.stop()}}),n,null,[[4,16]])})));return function(e,t){return n.apply(this,arguments)}}()}}(t.buildShlinkApiClient,e)}};e.factory("listTags",n(!1)),e.factory("forceListTags",n(!0)),e.serviceFactory("filterTags",(function(){return UL})),e.serviceFactory("tagDeleted",(function(){return kL})),e.serviceFactory("tagEdited",(function(){return jL})),e.serviceFactory("deleteTag",wL,"buildShlinkApiClient"),e.serviceFactory("editTag",OL,"buildShlinkApiClient","ColorGenerator")},qL=function(e){return"".concat("shlink",".").concat(e)},GL=Vt((function e(t){var n=this;Ht(this,e),this.localStorage=t,this.get=function(e){var t=n.localStorage.getItem(qL(e));return t?JSON.parse(t):void 0},this.set=function(e,t){return n.localStorage.setItem(qL(e),JSON.stringify(t))}})),KL="0123456789ABCDEF",QL=Math.floor,$L=Math.random,XL=Math.sqrt,JL=Math.round,eR=function(e){return e.toLowerCase().trim()},tR=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return JL(XL(.299*Math.pow(e,2)+.587*Math.pow(t,2)+.114*Math.pow(n,2)))},nR=Vt((function e(t){var n,r=this;Ht(this,e),this.storage=t,this.colors=void 0,this.lights=void 0,this.getColorForKey=function(e){var t=eR(e),n=r.colors[t];return n||r.setColorForKey(t,"#".concat(Am(6,(function(){return KL[QL($L()*KL.length)]})).join("")))},this.setColorForKey=function(e,t){var n=eR(e);return r.colors[n]=t,r.storage.set("colors",r.colors),t},this.isColorLightForKey=function(e){var t=r.getColorForKey(e).substring(1);if(Mn(r.lights[t])){var n=function(e){var t;return(null!==(t=e.match(/../g))&&void 0!==t?t:[]).map((function(e){return parseInt(e,16)||0}))}(t);r.lights[t]=tR.apply(void 0,g(n))>=128}return r.lights[t]},this.colors=null!==(n=this.storage.get("colors"))&&void 0!==n?n:{},this.lights={}})),rR=n(9995),iR=n.n(rR),oR=n(1565),aR=function(e){return new Promise((function(t){iR()().fromString(e).then(t)}))},sR=function(e){return(0,oR.parse)(e)},lR=function(e){e.constant("localStorage",n.g.localStorage),e.service("Storage",GL,"localStorage"),e.service("ColorGenerator",nR,"Storage"),e.constant("csvToJson",aR),e.constant("jsonToCsv",sR),e.constant("setTimeout",n.g.setTimeout),e.constant("clearTimeout",n.g.clearTimeout),e.serviceFactory("useTimeoutToggle",Wv,"setTimeout","clearTimeout")},uR="shlink/mercure/GET_MERCURE_INFO_START",cR="shlink/mercure/GET_MERCURE_INFO_ERROR",fR="shlink/mercure/GET_MERCURE_INFO",dR=vg((He(aL={},uR,(function(e){return Ze(Ze({},e),{},{loading:!0,error:!1})})),He(aL,cR,(function(e){return Ze(Ze({},e),{},{loading:!1,error:!0})})),He(aL,fR,(function(e,t){return Ze(Ze({},t),{},{loading:!1,error:!1})})),aL),{loading:!0,error:!1}),hR=function(e){return function(){return function(){var t=Bt(Yt().mark((function t(n,r){var i,o,a,s,l;return Yt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n({type:uR}),i=r(),o=i.settings,a=e(r),s=a.mercureInfo,o.realTimeUpdates.enabled){t.next=6;break}return n({type:cR}),t.abrupt("return");case 6:return t.prev=6,t.next=9,s();case 9:l=t.sent,n(Ze({type:fR,interval:o.realTimeUpdates.interval},l)),t.next=16;break;case 13:t.prev=13,t.t0=t.catch(6),n({type:cR});case 16:case"end":return t.stop()}}),t,null,[[6,13]])})));return function(e,n){return t.apply(this,arguments)}}()}},pR=function(e){e.serviceFactory("loadMercureInfo",hR,"buildShlinkApiClient")},vR=function(e){var t=e.children;return(0,ir.jsx)("small",{className:"form-text text-muted d-block",children:t})},mR=function(e){var t,n=e.settings.realTimeUpdates,r=e.toggleRealTimeUpdates,i=e.setRealTimeUpdatesInterval,o=qv();return(0,ir.jsxs)(tg,{title:"Real-time updates",className:"h-100",children:[(0,ir.jsx)(Nh,{children:(0,ir.jsxs)(fP,{checked:n.enabled,onChange:r,children:["Enable or disable real-time updates.",(0,ir.jsxs)(vR,{children:["Real-time updates are currently being ",(0,ir.jsx)("b",{children:n.enabled?"processed":"ignored"}),"."]})]})}),(0,ir.jsxs)(Ix,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:Ws()("form-label",{"text-muted":!n.enabled}),id:o,children:[(0,ir.jsx)(zh,{type:"number",min:0,placeholder:"Immediate",disabled:!n.enabled,value:(t=n.interval,t?"".concat(t):""),id:o,onChange:function(e){var t=e.target;return i(Number(t.value))}}),n.enabled&&(0,ir.jsxs)(vR,{children:[void 0!==n.interval&&n.interval>0&&(0,ir.jsxs)("span",{children:["Updates will be reflected in the UI every ",(0,ir.jsx)("b",{children:n.interval})," minute",n.interval>1&&"s","."]}),!n.interval&&"Updates will be reflected in the UI as soon as they happen."]})]})]})},gR=function(e){var t=e.items;return(0,ir.jsx)(ir.Fragment,{children:t.map((function(e,t){return(0,ir.jsx)("div",{className:"mb-3",children:e},t)}))})},yR=function(e,t,n,r,i,o){return function(){return(0,ir.jsxs)(um,{children:[(0,ir.jsxs)(uk,{className:"mb-3",children:[(0,ir.jsx)(lk,{to:"general",children:"General"}),(0,ir.jsx)(lk,{to:"short-urls",children:"Short URLs"}),(0,ir.jsx)(lk,{to:"other-items",children:"Other items"})]}),(0,ir.jsxs)(Ne,{children:[(0,ir.jsx)(je,{path:"general",element:(0,ir.jsx)(gR,{items:[(0,ir.jsx)(r,{}),(0,ir.jsx)(e,{})]})}),(0,ir.jsx)(je,{path:"short-urls",element:(0,ir.jsx)(gR,{items:[(0,ir.jsx)(t,{}),(0,ir.jsx)(n,{})]})}),(0,ir.jsx)(je,{path:"other-items",element:(0,ir.jsx)(gR,{items:[(0,ir.jsx)(o,{}),(0,ir.jsx)(i,{})]})}),(0,ir.jsx)(je,{path:"*",element:(0,ir.jsx)(Oe,{replace:!0,to:"general"})})]})]})}},bR=function(e){return"includes"===e?"Suggest tags including input":"Suggest tags starting with input"},_R=function(e){var t,n,r,i,o,a=e.settings,s=e.setShortUrlCreationSettings,l=null!==(t=a.shortUrlCreation)&&void 0!==t?t:{validateUrls:!1},u=function(e){return function(){return s(Ze(Ze({},null!==l&&void 0!==l?l:{validateUrls:!1}),{},{tagFilteringMode:e}))}};return(0,ir.jsxs)(tg,{title:"Short URLs form",className:"h-100",children:[(0,ir.jsx)(Nh,{children:(0,ir.jsxs)(fP,{checked:null!==(n=l.validateUrls)&&void 0!==n&&n,onChange:function(e){return s(Ze(Ze({},l),{},{validateUrls:e}))},children:["Request validation on long URLs when creating new short URLs.",(0,ir.jsxs)(vR,{children:["The initial state of the ",(0,ir.jsx)("b",{children:"Validate URL"})," checkbox will be ",(0,ir.jsx)("b",{children:l.validateUrls?"checked":"unchecked"}),"."]})]})}),(0,ir.jsx)(Nh,{children:(0,ir.jsxs)(fP,{checked:null===(r=l.forwardQuery)||void 0===r||r,onChange:function(e){return s(Ze(Ze({},l),{},{forwardQuery:e}))},children:["Make all new short URLs forward their query params to the long URL.",(0,ir.jsxs)(vR,{children:["The initial state of the ",(0,ir.jsx)("b",{children:"Forward query params on redirect"})," checkbox will be ",(0,ir.jsx)("b",{children:null===(i=l.forwardQuery)||void 0===i||i?"checked":"unchecked"}),"."]})]})}),(0,ir.jsxs)(Ix,{noMargin:!0,label:"Tag suggestions search mode:",children:[(0,ir.jsxs)(Og,{text:bR(l.tagFilteringMode),children:[(0,ir.jsx)(Mc,{active:!l.tagFilteringMode||"startsWith"===l.tagFilteringMode,onClick:u("startsWith"),children:bR("startsWith")}),(0,ir.jsx)(Mc,{active:"includes"===l.tagFilteringMode,onClick:u("includes"),children:bR("includes")})]}),(0,ir.jsx)(vR,{children:(o=l.tagFilteringMode,"includes"===o?(0,ir.jsxs)(ir.Fragment,{children:["The list of suggested tags will contain those ",(0,ir.jsx)("b",{children:"including"})," provided input."]}):(0,ir.jsxs)(ir.Fragment,{children:["The list of suggested tags will contain those ",(0,ir.jsx)("b",{children:"starting with"})," provided input."]}))})]})]})},xR=function(e){var t=e.settings.ui,n=e.setUiSettings;return(0,ir.jsxs)(tg,{title:"User interface",className:"h-100",children:[(0,ir.jsx)(Ls,{icon:"dark"===(null===t||void 0===t?void 0:t.theme)?Kr:ui,className:"user-interface__theme-icon"}),(0,ir.jsx)(fP,{checked:"dark"===(null===t||void 0===t?void 0:t.theme),onChange:function(e){var r=e?"dark":"light";n(Ze(Ze({},t),{},{theme:r})),Qv(r)},children:"Use dark theme."})]})},wR=function(e){var t,n=e.onChange,r=e.active,i=e.allText;return(0,ir.jsx)(Og,{text:null!==(t=fy(r))&&void 0!==t?t:i,children:(0,ir.jsx)(Ey,{allText:i,active:r,onChange:n})})},kR=function(e){var t,n,r=e.settings,i=e.setVisitsSettings;return(0,ir.jsx)(tg,{title:"Visits",className:"h-100",children:(0,ir.jsx)(Ix,{noMargin:!0,label:"Default interval to load on visits sections:",children:(0,ir.jsx)(wR,{allText:"All visits",active:null!==(t=null===(n=r.visits)||void 0===n?void 0:n.defaultInterval)&&void 0!==t?t:"last30Days",onChange:function(e){return i({defaultInterval:e})}})})})},CR=function(e){var t,n,r,i=e.settings.tags,o=e.setTagsSettings;return(0,ir.jsxs)(tg,{title:"Tags",className:"h-100",children:[(0,ir.jsxs)(Ix,{label:"Default display mode when managing tags:",children:[(0,ir.jsx)(vL,{mode:null!==(t=null===i||void 0===i?void 0:i.defaultMode)&&void 0!==t?t:"cards",renderTitle:function(e){return function(e){return"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))}(e)},onChange:function(e){return o(Ze(Ze({},i),{},{defaultMode:e}))}}),(0,ir.jsxs)(vR,{children:["Tags will be displayed as ",(0,ir.jsx)("b",{children:null!==(n=null===i||void 0===i?void 0:i.defaultMode)&&void 0!==n?n:"cards"}),"."]})]}),(0,ir.jsx)(Ix,{noMargin:!0,label:"Default ordering for tags list:",children:(0,ir.jsx)(jy,{items:pL,order:null!==(r=null===i||void 0===i?void 0:i.defaultOrdering)&&void 0!==r?r:{},onChange:function(e,t){return o(Ze(Ze({},i),{},{defaultOrdering:{field:e,dir:t}}))}})})]})},SR=function(e){var t,n=e.settings.shortUrlsList,r=e.setShortUrlsListSettings;return(0,ir.jsx)(tg,{title:"Short URLs list",className:"h-100",children:(0,ir.jsx)(Ix,{noMargin:!0,label:"Default ordering for short URLs list:",children:(0,ir.jsx)(jy,{items:Ly,order:null!==(t=null===n||void 0===n?void 0:n.defaultOrdering)&&void 0!==t?t:Ky,onChange:function(e,t){return r({defaultOrdering:{field:e,dir:t}})}})})})},ER=function(e,t){e.serviceFactory("Settings",yR,"RealTimeUpdatesSettings","ShortUrlCreationSettings","ShortUrlsListSettings","UserInterfaceSettings","VisitsSettings","TagsSettings"),e.decorator("Settings",dg),e.decorator("Settings",t(null,["resetSelectedServer"])),e.serviceFactory("RealTimeUpdatesSettings",(function(){return mR})),e.decorator("RealTimeUpdatesSettings",t(["settings"],["toggleRealTimeUpdates","setRealTimeUpdatesInterval"])),e.serviceFactory("ShortUrlCreationSettings",(function(){return _R})),e.decorator("ShortUrlCreationSettings",t(["settings"],["setShortUrlCreationSettings"])),e.serviceFactory("UserInterfaceSettings",(function(){return xR})),e.decorator("UserInterfaceSettings",t(["settings"],["setUiSettings"])),e.serviceFactory("VisitsSettings",(function(){return kR})),e.decorator("VisitsSettings",t(["settings"],["setVisitsSettings"])),e.serviceFactory("TagsSettings",(function(){return CR})),e.decorator("TagsSettings",t(["settings"],["setTagsSettings"])),e.serviceFactory("ShortUrlsListSettings",(function(){return SR})),e.decorator("ShortUrlsListSettings",t(["settings"],["setShortUrlsListSettings"])),e.serviceFactory("toggleRealTimeUpdates",(function(){return Xy})),e.serviceFactory("setRealTimeUpdatesInterval",(function(){return Jy})),e.serviceFactory("setShortUrlCreationSettings",(function(){return eb})),e.serviceFactory("setShortUrlsListSettings",(function(){return tb})),e.serviceFactory("setUiSettings",(function(){return nb})),e.serviceFactory("setVisitsSettings",(function(){return rb})),e.serviceFactory("setTagsSettings",(function(){return ib}))};var TR,MR,OR=function(e,t){var n,r=v(e.split("://"),2),i=r[0],o=r[1].split("/"),a=(f(n=o)||m(n)||h(n)||p()).slice(1),s=a.length?"/".concat(a.join("/")):"";return"".concat(i,"://").concat(t).concat(s)},jR="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",PR=function(e){return function(t,n){return function(){var r=Bt(Yt().mark((function r(i,o){var a,s,l;return Yt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i({type:"shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS_START"}),a=e(o),s=a.editDomainRedirects,r.prev=2,r.next=5,s(Ze({domain:t},n));case 5:l=r.sent,i({type:jR,domain:t,redirects:l}),r.next=12;break;case 9:r.prev=9,r.t0=r.catch(2),i({type:"shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS_ERROR",errorData:Qb(r.t0)});case 12:case"end":return r.stop()}}),r,null,[[2,9]])})));return function(e,t){return r.apply(this,arguments)}}()}},NR=["url"],DR="shlink/domainsList/LIST_DOMAINS_START",LR="shlink/domainsList/LIST_DOMAINS_ERROR",RR="shlink/domainsList/LIST_DOMAINS",AR="shlink/domainsList/FILTER_DOMAINS",IR="shlink/domainsList/VALIDATE_DOMAIN",FR={domains:[],filteredDomains:[],loading:!1,error:!1},zR=function(e,t){return function(n){return n.domain!==e?n:Ze(Ze({},n),{},{redirects:t})}},BR=function(e,t){return function(n){return n.domain!==e?n:Ze(Ze({},n),{},{status:t})}},UR=vg((He(TR={},DR,(function(){return Ze(Ze({},FR),{},{loading:!0})})),He(TR,LR,(function(e){var t=e.errorData;return Ze(Ze({},FR),{},{error:!0,errorData:t})})),He(TR,RR,(function(e,t){var n=t.domains,r=t.defaultRedirects;return Ze(Ze({},FR),{},{domains:n,filteredDomains:n,defaultRedirects:r})})),He(TR,AR,(function(e,t){var n=t.searchTerm;return Ze(Ze({},e),{},{filteredDomains:e.domains.filter((function(e){return e.domain.toLowerCase().match(n.toLowerCase())}))})})),He(TR,jR,(function(e,t){var n=t.domain,r=t.redirects;return Ze(Ze({},e),{},{domains:e.domains.map(zR(n,r)),filteredDomains:e.filteredDomains.map(zR(n,r))})})),He(TR,IR,(function(e,t){var n=t.domain,r=t.status;return Ze(Ze({},e),{},{domains:e.domains.map(BR(n,r)),filteredDomains:e.filteredDomains.map(BR(n,r))})})),TR),FR),VR=function(e){return function(){return function(){var t=Bt(Yt().mark((function t(n,r){var i,o,a;return Yt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n({type:DR}),i=e(r),o=i.listDomains,t.prev=2,t.next=5,o().then((function(e){var t=e.data,n=e.defaultRedirects;return{domains:t.map((function(e){return Ze(Ze({},e),{},{status:"validating"})})),defaultRedirects:n}}));case 5:a=t.sent,n(Ze({type:RR},a)),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),n({type:LR,errorData:Qb(t.t0)});case 12:case"end":return t.stop()}}),t,null,[[2,9]])})));return function(e,n){return t.apply(this,arguments)}}()}},HR=function(e){return{type:AR,searchTerm:e}},WR=function(e){return function(t){return function(){var n=Bt(Yt().mark((function n(r,i){var o,a,s,l,u,c,f,d;return Yt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=i(),a=o.selectedServer,Lt(a)){n.next=4;break}return r({type:IR,domain:t,status:"invalid"}),n.abrupt("return");case 4:return n.prev=4,s=a.url,l=Wt(a,NR),u=e(Ze(Ze({},l),{},{url:OR(s,t)})),c=u.health,n.next=9,c();case 9:f=n.sent,d=f.status,r({type:IR,domain:t,status:"pass"===d?"valid":"invalid"}),n.next=17;break;case 14:n.prev=14,n.t0=n.catch(4),r({type:IR,domain:t,status:"invalid"});case 17:case"end":return n.stop()}}),n,null,[[4,14]])})));return function(e,t){return n.apply(this,arguments)}}()}},ZR=function(e){var t=e.listDomains,n=e.value,r=e.domainsList,i=e.onChange,o=v(Zv(),4),a=o[0],s=o[2],u=o[3],c=r.domains,f=Bn(n),d=function(){return i("")};return(0,l.useEffect)((function(){t()}),[]),a?(0,ir.jsxs)(Hh,{children:[(0,ir.jsx)(zh,{value:null!==n&&void 0!==n?n:"",placeholder:"Domain",onChange:function(e){return i(e.target.value)}}),(0,ir.jsx)(ac,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:Rm(d,u),children:(0,ir.jsx)(Ls,{icon:cr})}),(0,ir.jsx)(yv,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):(0,ir.jsxs)(Og,{text:f?"Domain":"Domain: ".concat(n),className:f?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[c.map((function(e){var t=e.domain,r=e.isDefault;return(0,ir.jsxs)(Mc,{active:(n===t||r)&&f,onClick:function(){return i(t)},children:[t,r&&(0,ir.jsx)("span",{className:"float-end text-muted",children:"default"})]},t)})),(0,ir.jsx)(Mc,{divider:!0}),(0,ir.jsx)(Mc,{onClick:Rm(d,s),children:(0,ir.jsx)("i",{children:"New domain"})})]})},YR=function(e){var t=e.status,n=e.matchMedia,r=void 0===n?window.matchMedia:n,i=(0,l.useRef)(),o=function(){return r("(max-width: 991px)").matches},a=v((0,l.useState)(o()),2),s=a[0],u=a[1];return(0,l.useEffect)((function(){var e=function(){return u(o())};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),"validating"===t?(0,ir.jsx)(Ls,{fixedWidth:!0,icon:Or,spin:!0}):(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)("span",{ref:k_(i),children:"valid"===t?(0,ir.jsx)(Ls,{fixedWidth:!0,icon:_r,className:"text-muted"}):(0,ir.jsx)(Ls,{fixedWidth:!0,icon:yi,className:"text-danger"})}),(0,ir.jsx)(yv,{target:function(){return i.current},placement:s?"top-start":"left",autohide:"valid"===t,children:"valid"===t?"Congratulations! This domain is properly configured.":(0,ir.jsxs)("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",(0,ir.jsx)("br",{}),"Check the ",(0,ir.jsx)(nm,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},qR=["isLast"],GR=function(e){var t=e.isLast,n=Wt(e,qR);return(0,ir.jsx)(Fx,Ze(Ze({},n),{},{required:!1,type:"url",placeholder:"No redirect",className:t?"mb-0":""}))},KR=function(e){var t,n,r,i,o,a,s=e.isOpen,u=e.toggle,c=e.domain,f=e.editDomainRedirects,d=v((0,l.useState)(null!==(t=null===(n=c.redirects)||void 0===n?void 0:n.baseUrlRedirect)&&void 0!==t?t:""),2),h=d[0],p=d[1],m=v((0,l.useState)(null!==(r=null===(i=c.redirects)||void 0===i?void 0:i.regular404Redirect)&&void 0!==r?r:""),2),g=m[0],y=m[1],b=v((0,l.useState)(null!==(o=null===(a=c.redirects)||void 0===a?void 0:a.invalidShortUrlRedirect)&&void 0!==o?o:""),2),_=b[0],x=b[1],w=Fm(Bt(Yt().mark((function e(){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",f(c.domain,{baseUrlRedirect:zm(h),regular404Redirect:zm(g),invalidShortUrlRedirect:zm(_)}).then(u));case 1:case"end":return e.stop()}}),e)}))));return(0,ir.jsx)(eh,{isOpen:s,toggle:u,centered:!0,children:(0,ir.jsxs)("form",{name:"domainRedirectsModal",onSubmit:w,children:[(0,ir.jsxs)(ih,{toggle:u,children:["Edit redirects for ",(0,ir.jsx)("b",{children:c.domain})]}),(0,ir.jsxs)(lh,{children:[(0,ir.jsxs)(GR,{value:h,onChange:p,children:[(0,ir.jsxs)(xx,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",(0,ir.jsxs)("b",{children:["https://",c.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),(0,ir.jsxs)(GR,{value:g,onChange:y,children:[(0,ir.jsxs)(xx,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",(0,ir.jsxs)("b",{children:["https://",c.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),(0,ir.jsxs)(GR,{value:_,isLast:!0,onChange:x,children:[(0,ir.jsx)(xx,{className:"me-2",placement:"bottom",children:"Visitors accessing a url matching a short URL pattern, but not matching an existing short code, will be redirected to this URL."}),"Invalid short URL"]})]}),(0,ir.jsxs)(dh,{children:[(0,ir.jsx)(ac,{color:"link",type:"button",onClick:u,children:"Cancel"}),(0,ir.jsx)(ac,{color:"primary",children:"Save"})]})]})})},QR=function(e){var t=e.domain,n=e.editDomainRedirects,r=e.selectedServer,i=v(Zv(),2),o=i[0],a=i[1],s=v(Zv(),2),l=s[0],u=s[1],c=!t.isDefault||Qm(r),f=Jm(r),d=It(r);return(0,ir.jsxs)(E_,{isOpen:o,toggle:a,children:[f&&(0,ir.jsxs)(Mc,{tag:ze,to:"/server/".concat(d,"/domain/").concat(t.domain).concat(t.isDefault?"_".concat(d_):"","/visits"),children:[(0,ir.jsx)(Ls,{icon:br,fixedWidth:!0})," Visit stats"]}),(0,ir.jsxs)(Mc,{disabled:!c,onClick:c?u:void 0,children:[(0,ir.jsx)(Ls,{fixedWidth:!0,icon:Jr})," Edit redirects"]}),(0,ir.jsx)(KR,{domain:t,isOpen:l,toggle:u,editDomainRedirects:n})]})},$R=function(e){var t=e.fallback;return(0,ir.jsxs)("span",{className:"text-muted",children:[!t&&(0,ir.jsx)("small",{children:"No redirect"}),t&&(0,ir.jsxs)(ir.Fragment,{children:[t," ",(0,ir.jsx)("small",{children:"(as fallback)"})]})]})},XR=function(){return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Ls,{fixedWidth:!0,icon:Cr,className:"text-primary",id:"defaultDomainIcon"}),(0,ir.jsx)(yv,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]})},JR=function(e){var t,n,r,i=e.domain,o=e.editDomainRedirects,a=e.checkDomainHealth,s=e.defaultRedirects,u=e.selectedServer,c=i.domain,f=i.isDefault,d=i.redirects,h=i.status;return(0,l.useEffect)((function(){a(i.domain)}),[]),(0,ir.jsxs)("tr",{className:"responsive-table__row",children:[(0,ir.jsx)("td",{className:"responsive-table__cell","data-th":"Is default domain",children:f&&(0,ir.jsx)(XR,{})}),(0,ir.jsx)("th",{className:"responsive-table__cell","data-th":"Domain",children:c}),(0,ir.jsx)("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:null!==(t=null===d||void 0===d?void 0:d.baseUrlRedirect)&&void 0!==t?t:(0,ir.jsx)($R,{fallback:null===s||void 0===s?void 0:s.baseUrlRedirect})}),(0,ir.jsx)("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:null!==(n=null===d||void 0===d?void 0:d.regular404Redirect)&&void 0!==n?n:(0,ir.jsx)($R,{fallback:null===s||void 0===s?void 0:s.regular404Redirect})}),(0,ir.jsx)("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:null!==(r=null===d||void 0===d?void 0:d.invalidShortUrlRedirect)&&void 0!==r?r:(0,ir.jsx)($R,{fallback:null===s||void 0===s?void 0:s.invalidShortUrlRedirect})}),(0,ir.jsx)("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:(0,ir.jsx)(YR,{status:h})}),(0,ir.jsx)("td",{className:"responsive-table__cell text-end",children:(0,ir.jsx)(QR,{domain:i,editDomainRedirects:o,selectedServer:u})})]})},eA=["","Domain","Base path redirect","Regular 404 redirect","Invalid short URL redirect","",""],tA=function(e){var t,n=e.listDomains,r=e.domainsList,i=e.filterDomains,o=e.editDomainRedirects,a=e.checkDomainHealth,s=e.selectedServer,u=r.filteredDomains,c=r.defaultRedirects,f=r.loading,d=r.error,h=r.errorData,p=null!==c&&void 0!==c?c:null===(t=u.find((function(e){return e.isDefault})))||void 0===t?void 0:t.redirects;if((0,l.useEffect)((function(){n()}),[]),f)return(0,ir.jsx)(lm,{loading:!0});return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Mg,{className:"mb-3",onChange:i}),d?(0,ir.jsx)(O_,{type:"error",children:(0,ir.jsx)(j_,{errorData:h,fallbackMessage:"Error loading domains :("})}):(0,ir.jsx)(tg,{children:(0,ir.jsxs)("table",{className:"table table-hover responsive-table mb-0",children:[(0,ir.jsx)("thead",{className:"responsive-table__header",children:(0,ir.jsx)("tr",{children:eA.map((function(e,t){return(0,ir.jsx)("th",{children:e},t)}))})}),(0,ir.jsxs)("tbody",{children:[u.length<1&&(0,ir.jsx)("tr",{children:(0,ir.jsx)("td",{colSpan:eA.length,className:"text-center",children:"No results found"})}),u.map((function(e){return(0,ir.jsx)(JR,{domain:e,editDomainRedirects:o,checkDomainHealth:a,defaultRedirects:p,selectedServer:s},e.domain)}))]})]})})]})},nA=function(e,t){e.serviceFactory("DomainSelector",(function(){return ZR})),e.decorator("DomainSelector",t(["domainsList"],["listDomains"])),e.serviceFactory("ManageDomains",(function(){return tA})),e.decorator("ManageDomains",t(["domainsList","selectedServer"],["listDomains","filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("listDomains",VR,"buildShlinkApiClient"),e.serviceFactory("filterDomains",(function(){return HR})),e.serviceFactory("editDomainRedirects",PR,"buildShlinkApiClient"),e.serviceFactory("checkDomainHealth",WR,"buildShlinkApiClient")},rA="shlink/appUpdates/APP_UPDATE_AVAILABLE",iA="shlink/appUpdates/RESET_APP_UPDATE",oA=vg((He(MR={},rA,(function(){return!0})),He(MR,iA,(function(){return!1})),MR),!1),aA=mg(rA),sA=mg(iA),lA=function(e){var t=e.isOpen,n=e.toggle,r=e.forceUpdate,i=v(Zv(),3),o=i[0],a=i[2];return(0,ir.jsxs)(Ap,{className:"app-update-banner",isOpen:t,toggle:n,tag:tg,color:"secondary",children:[(0,ir.jsx)("h4",{className:"mb-4",children:"This app has just been updated!"}),(0,ir.jsxs)("p",{className:"mb-0",children:["Restart it to enjoy the new features.",(0,ir.jsxs)(ac,{role:"button",disabled:o,className:"ms-2",color:"secondary",size:"sm",onClick:function(){a(),r()},children:[!o&&(0,ir.jsxs)(ir.Fragment,{children:["Restart now ",(0,ir.jsx)(Ls,{icon:si,className:"ms-1"})]}),o&&(0,ir.jsx)(ir.Fragment,{children:"Restarting..."})]})]})]})},uA=function(){var e=Bt(Yt().mark((function e(){var t,n;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(n=navigator.serviceWorker)||void 0===n?void 0:n.getRegistrations();case 2:if(e.t1=t=e.sent,e.t0=null!==e.t1,!e.t0){e.next=6;break}e.t0=void 0!==t;case 6:if(!e.t0){e.next=10;break}e.t2=t,e.next=11;break;case 10:e.t2=[];case 11:e.t2.forEach((function(e){var t=e.waiting;null===t||void 0===t||t.addEventListener("statechange",(function(e){var t;"activated"===(null===(t=e.target)||void 0===t?void 0:t.state)&&window.location.reload()})),null===t||void 0===t||t.postMessage({type:"SKIP_WAITING"})}));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),cA=function(e,t,n,r,i,o,a,s){return function(u){var c=u.fetchServers,f=u.servers,d=u.settings,h=u.appUpdated,p=u.resetAppUpdate,v="/"===Ce().pathname;return(0,l.useEffect)((function(){var e,t;0===Object.keys(f).length&&c(),Qv(null!==(e=null===(t=d.ui)||void 0===t?void 0:t.theme)&&void 0!==e?e:"light")}),[]),(0,ir.jsxs)("div",{className:"container-fluid app-container",children:[(0,ir.jsx)(e,{}),(0,ir.jsxs)("div",{className:"app",children:[(0,ir.jsx)("div",{className:Ws()("shlink-wrapper",{"d-flex d-md-block align-items-center":v}),children:(0,ir.jsxs)(Ne,{children:[(0,ir.jsx)(je,{index:!0,element:(0,ir.jsx)(t,{})}),(0,ir.jsx)(je,{path:"/settings/*",element:(0,ir.jsx)(o,{})}),(0,ir.jsx)(je,{path:"/manage-servers",element:(0,ir.jsx)(a,{})}),(0,ir.jsx)(je,{path:"/server/create",element:(0,ir.jsx)(r,{})}),(0,ir.jsx)(je,{path:"/server/:serverId/edit",element:(0,ir.jsx)(i,{})}),(0,ir.jsx)(je,{path:"/server/:serverId/*",element:(0,ir.jsx)(n,{})}),(0,ir.jsx)(je,{path:"*",element:(0,ir.jsx)(ng,{})})]})}),(0,ir.jsx)("div",{className:"shlink-footer",children:(0,ir.jsx)(s,{})})]}),(0,ir.jsx)(lA,{isOpen:h,toggle:p,forceUpdate:uA})]})}},fA=function(e,t){e.serviceFactory("App",cA,"MainHeader","Home","MenuLayout","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",(function(){return aA})),e.serviceFactory("resetAppUpdate",(function(){return sA}))},dA=new gt,hA=dA.container,pA=function(e,t){return Ze(Ze({},e),{},He({},t,(n=hA,r=t,function(){return n[r].apply(n,arguments)})));var n,r},vA=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Y(e?wt(e):null,t.reduce(pA,{}))};function mA(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"===typeof i?i(n,r,e):t(i)}}}}fA(dA,vA),Eg(dA,vA),tr(dA),Ax(dA,vA),Lw(dA,vA),YL(dA,vA),ED(dA,vA),lR(dA),pR(dA),ER(dA,vA),nA(dA,vA);var gA=mA();gA.withExtraArgument=mA;var yA=gA;function bA(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var _A="function"===typeof Symbol&&Symbol.observable||"@@observable",xA=function(){return Math.random().toString(36).substring(7).split("").join(".")},wA={INIT:"@@redux/INIT"+xA(),REPLACE:"@@redux/REPLACE"+xA(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+xA()}};function kA(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function CA(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(bA(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(bA(1));return n(CA)(e,t)}if("function"!==typeof e)throw new Error(bA(2));var i=e,o=t,a=[],s=a,l=!1;function u(){s===a&&(s=a.slice())}function c(){if(l)throw new Error(bA(3));return o}function f(e){if("function"!==typeof e)throw new Error(bA(4));if(l)throw new Error(bA(5));var t=!0;return u(),s.push(e),function(){if(t){if(l)throw new Error(bA(6));t=!1,u();var n=s.indexOf(e);s.splice(n,1),a=null}}}function d(e){if(!kA(e))throw new Error(bA(7));if("undefined"===typeof e.type)throw new Error(bA(8));if(l)throw new Error(bA(9));try{l=!0,o=i(o,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}function h(e){if("function"!==typeof e)throw new Error(bA(10));i=e,d({type:wA.REPLACE})}function p(){var e,t=f;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(bA(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[_A]=function(){return this},e}return d({type:wA.INIT}),(r={dispatch:d,subscribe:f,getState:c,replaceReducer:h})[_A]=p,r}function SA(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var EA=n(7045),TA=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"===typeof e[i]&&(n[i]=e[i])}var o,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:wA.INIT}))throw new Error(bA(12));if("undefined"===typeof n(void 0,{type:wA.PROBE_UNKNOWN_ACTION()}))throw new Error(bA(13))}))}(n)}catch(BA){o=BA}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},s=0;s<a.length;s++){var l=a[s],u=n[l],c=e[l],f=u(c,t);if("undefined"===typeof f){t&&t.type;throw new Error(bA(14))}i[l]=f,r=r||f!==c}return(r=r||a.length!==Object.keys(e).length)?i:e}}({servers:vw,selectedServer:sw,shortUrlsList:lx,shortUrlCreationResult:$_,shortUrlDeletion:H_,shortUrlEdition:rx,shortUrlVisits:RN,tagVisits:YN,domainVisits:p_,orphanVisits:rD,nonOrphanVisits:vD,shortUrlDetail:Px,tagsList:BL,tagDelete:xL,tagEdit:ML,mercureInfo:dR,settings:$y,domainsList:UR,visitsOverview:kD,appUpdated:oA,sidebar:bg}),MA=SA,OA={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},jA=CA(TA,function(e){var t,n,r,i;return e.settings?("last180days"===(null===(t=e.settings.visits)||void 0===t?void 0:t.defaultInterval)&&e.settings.visits&&(e.settings.visits.defaultInterval="last180Days"),e.settings.tags=Ze(Ze({},e.settings.tags),{},{defaultMode:null!==(n=null===(r=e.settings.tags)||void 0===r?void 0:r.defaultMode)&&void 0!==n?n:null===(i=e.settings.ui)||void 0===i?void 0:i.tagsMode}),e.settings.ui&&delete e.settings.ui.tagsMode,e):e}((0,EA.zD)(OA)),MA(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(bA(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return r=SA.apply(void 0,o)(n.dispatch),Ze(Ze({},n),{},{dispatch:r})}}}((0,EA.a1)(OA),yA))),PA=n(6431),NA=n(7093),DA=n(8858),LA=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function RA(e,t){navigator.serviceWorker.register(e).then((function(e){e.onupdatefound=function(){var n=e.installing;null!=n&&(n.onstatechange=function(){"installed"===n.state&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://cra.link/PWA."),t&&t.onUpdate&&t.onUpdate(e)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(e)))})}})).catch((function(e){console.error("Error during service worker registration:",e)}))}FM.register.apply(FM,g(Ej));delete Zw().Icon.Default.prototype._getIconUrl,Zw().Icon.Default.mergeOptions({iconRetinaUrl:PA,iconUrl:NA,shadowUrl:DA});var AA=hA.App,IA=hA.ScrollToTop,FA=hA.ErrorHandler,zA=hA.appUpdateAvailable;(0,t.s)(document.getElementById("root")).render((0,ir.jsx)(q,{store:jA,children:(0,ir.jsx)(Fe,{basename:Ve.Xh,children:(0,ir.jsx)(FA,{children:(0,ir.jsx)(IA,{children:(0,ir.jsx)(AA,{})})})})})),function(e){if("serviceWorker"in navigator){var t;if(new URL(null!==(t="/shlink-web-client/feature/multi-segment-slugs")?t:"",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(function(){var t="".concat("/shlink-web-client/feature/multi-segment-slugs","/service-worker.js");LA?(!function(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then((function(n){var r=n.headers.get("content-type");404===n.status||null!=r&&-1===r.indexOf("javascript")?navigator.serviceWorker.ready.then((function(e){e.unregister().then((function(){window.location.reload()}))})):RA(e,t)})).catch((function(){console.log("No internet connection found. App is running in offline mode.")}))}(t,e),navigator.serviceWorker.ready.then((function(){console.log("This web app is being served cache-first by a service worker. To learn more, visit https://cra.link/PWA")}))):RA(t,e)}))}}({onUpdate:function(){jA.dispatch(zA())}})}()}();
|
|
//# sourceMappingURL=main.cd567d8f.js.map |