@rcpch/digital-growth-charts-react-component-library
Version:
A React component library for the RCPCH digital growth charts using Rollup, TypeScript and Styled-Components
2 lines • 4.45 MB
JavaScript
/* Version: 7.3.8 - June 4, 2025 21:49:56 */
import*as A from"react";import l,{isValidElement as y,forwardRef as x,Children as B,useState as Q,useRef as t,useMemo as g,useLayoutEffect as e}from"react";import w,{css as n,keyframes as E,styled as o}from"styled-components";var C=function(A,l){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,l){A.__proto__=l}||function(A,l){for(var y in l)Object.prototype.hasOwnProperty.call(l,y)&&(A[y]=l[y])},C(A,l)};var i=function(){return i=Object.assign||function(A){for(var l,y=1,x=arguments.length;y<x;y++)for(var B in l=arguments[y])Object.prototype.hasOwnProperty.call(l,B)&&(A[B]=l[B]);return A},i.apply(this,arguments)};function r(A,l){var y={};for(var x in A)Object.prototype.hasOwnProperty.call(A,x)&&l.indexOf(x)<0&&(y[x]=A[x]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var B=0;for(x=Object.getOwnPropertySymbols(A);B<x.length;B++)l.indexOf(x[B])<0&&Object.prototype.propertyIsEnumerable.call(A,x[B])&&(y[x[B]]=A[x[B]])}return y}function c(A,l,y){if(y||2===arguments.length)for(var x,B=0,Q=l.length;B<Q;B++)!x&&B in l||(x||(x=Array.prototype.slice.call(l,0,B)),x[B]=l[B]);return A.concat(x||Array.prototype.slice.call(l))}function a(A,l){return Object.defineProperty?Object.defineProperty(A,"raw",{value:l}):A.raw=l,A}function M(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}"function"==typeof SuppressedError&&SuppressedError;var I=M((function(A){return null==A}));function s(A){return((A*=2)<=1?A*A:--A*(2-A)+1)/2}function D(A){return((A*=2)<=1?A*A*A:(A-=2)*A*A+2)/2}var u=function A(l){function y(A){return Math.pow(A,l)}return l=+l,y.exponent=A,y}(3),F=function A(l){function y(A){return 1-Math.pow(1-A,l)}return l=+l,y.exponent=A,y}(3),d=function A(l){function y(A){return((A*=2)<=1?Math.pow(A,l):2-Math.pow(2-A,l))/2}return l=+l,y.exponent=A,y}(3),Y=Math.PI,U=Y/2;function G(A){return(1-Math.cos(Y*A))/2}function h(A){return 1.0009775171065494*(Math.pow(2,-10*A)-.0009765625)}function j(A){return((A*=2)<=1?h(1-A):2-h(A-1))/2}function m(A){return((A*=2)<=1?1-Math.sqrt(1-A*A):Math.sqrt(1-(A-=2)*A)+1)/2}var P=4/11,f=6/11,N=8/11,b=3/4,R=9/11,H=10/11,p=15/16,z=21/22,J=63/64,k=1/P/P;function v(A){return(A=+A)<P?k*A*A:A<N?k*(A-=f)*A+b:A<H?k*(A-=R)*A+p:k*(A-=z)*A+J}var L=1.70158,S=function A(l){function y(A){return(A=+A)*A*(l*(A-1)+A)}return l=+l,y.overshoot=A,y}(L),K=function A(l){function y(A){return--A*A*((A+1)*l+A)+1}return l=+l,y.overshoot=A,y}(L),W=function A(l){function y(A){return((A*=2)<1?A*A*((l+1)*A-l):(A-=2)*A*((l+1)*A+l)+2)/2}return l=+l,y.overshoot=A,y}(L),T=2*Math.PI,V=function A(l,y){var x=Math.asin(1/(l=Math.max(1,l)))*(y/=T);function B(A){return l*h(- --A)*Math.sin((x-A)/y)}return B.amplitude=function(l){return A(l,y*T)},B.period=function(y){return A(l,y)},B}(1,.3),O=function A(l,y){var x=Math.asin(1/(l=Math.max(1,l)))*(y/=T);function B(A){return 1-l*h(A=+A)*Math.sin((A+x)/y)}return B.amplitude=function(l){return A(l,y*T)},B.period=function(y){return A(l,y)},B}(1,.3),Z=function A(l,y){var x=Math.asin(1/(l=Math.max(1,l)))*(y/=T);function B(A){return((A=2*A-1)<0?l*h(-A)*Math.sin((x-A)/y):2-l*h(A)*Math.sin((x+A)/y))/2}return B.amplitude=function(l){return A(l,y*T)},B.period=function(y){return A(l,y)},B}(1,.3),X=Object.freeze({__proto__:null,easeBack:W,easeBackIn:S,easeBackInOut:W,easeBackOut:K,easeBounce:v,easeBounceIn:function(A){return 1-v(1-A)},easeBounceInOut:function(A){return((A*=2)<=1?1-v(1-A):v(A-1)+1)/2},easeBounceOut:v,easeCircle:m,easeCircleIn:function(A){return 1-Math.sqrt(1-A*A)},easeCircleInOut:m,easeCircleOut:function(A){return Math.sqrt(1- --A*A)},easeCubic:D,easeCubicIn:function(A){return A*A*A},easeCubicInOut:D,easeCubicOut:function(A){return--A*A*A+1},easeElastic:O,easeElasticIn:V,easeElasticInOut:Z,easeElasticOut:O,easeExp:j,easeExpIn:function(A){return h(1-+A)},easeExpInOut:j,easeExpOut:function(A){return 1-h(A)},easeLinear:A=>+A,easePoly:d,easePolyIn:u,easePolyInOut:d,easePolyOut:F,easeQuad:s,easeQuadIn:function(A){return A*A},easeQuadInOut:s,easeQuadOut:function(A){return A*(2-A)},easeSin:G,easeSinIn:function(A){return 1==+A?1:1-Math.cos(A*U)},easeSinInOut:G,easeSinOut:function(A){return Math.sin(A*U)}});var q=function(A,l){for(var y=-1,x=null==A?0:A.length,B=Array(x);++y<x;)B[y]=l(A[y],y,A);return B},_=Array.isArray,$="object"==typeof global&&global&&global.Object===Object&&global,AA="object"==typeof self&&self&&self.Object===Object&&self,lA=$||AA||Function("return this")(),yA=lA.Symbol,xA=Object.prototype,BA=xA.hasOwnProperty,QA=xA.toString,tA=yA?yA.toStringTag:void 0;var gA=Object.prototype.toString;var eA=function(A){var l=BA.call(A,tA),y=A[tA];try{A[tA]=void 0;var x=!0}catch(A){}var B=QA.call(A);return x&&(l?A[tA]=y:delete A[tA]),B},wA=function(A){return gA.call(A)},nA=yA?yA.toStringTag:void 0;var EA=function(A){return null==A?void 0===A?"[object Undefined]":"[object Null]":nA&&nA in Object(A)?eA(A):wA(A)};var oA=function(A){return null!=A&&"object"==typeof A},CA=EA,iA=oA;var rA=function(A){return"symbol"==typeof A||iA(A)&&"[object Symbol]"==CA(A)},cA=_,aA=rA,MA=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,IA=/^\w*$/;var sA=function(A,l){if(cA(A))return!1;var y=typeof A;return!("number"!=y&&"symbol"!=y&&"boolean"!=y&&null!=A&&!aA(A))||(IA.test(A)||!MA.test(A)||null!=l&&A in Object(l))};var DA=function(A){var l=typeof A;return null!=A&&("object"==l||"function"==l)},uA=M(DA),FA=EA,dA=DA;var YA,UA=function(A){if(!dA(A))return!1;var l=FA(A);return"[object Function]"==l||"[object GeneratorFunction]"==l||"[object AsyncFunction]"==l||"[object Proxy]"==l},GA=M(UA),hA=lA["__core-js_shared__"],jA=(YA=/[^.]+$/.exec(hA&&hA.keys&&hA.keys.IE_PROTO||""))?"Symbol(src)_1."+YA:"";var mA=Function.prototype.toString;var PA=function(A){if(null!=A){try{return mA.call(A)}catch(A){}try{return A+""}catch(A){}}return""},fA=UA,NA=function(A){return!!jA&&jA in A},bA=DA,RA=PA,HA=/^\[object .+?Constructor\]$/,pA=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var zA=function(A,l){return null==A?void 0:A[l]},JA=function(A){return!(!bA(A)||NA(A))&&(fA(A)?pA:HA).test(RA(A))},kA=zA;var vA=function(A,l){var y=kA(A,l);return JA(y)?y:void 0},LA=vA(Object,"create"),SA=LA;var KA=LA,WA=Object.prototype.hasOwnProperty;var TA=LA,VA=Object.prototype.hasOwnProperty;var OA=LA;var ZA=function(A){var l=this.has(A)&&delete this.__data__[A];return this.size-=l?1:0,l},XA=function(A){var l=this.__data__;if(KA){var y=l[A];return"__lodash_hash_undefined__"===y?void 0:y}return WA.call(l,A)?l[A]:void 0},qA=function(A){var l=this.__data__;return TA?void 0!==l[A]:VA.call(l,A)},_A=function(A,l){var y=this.__data__;return this.size+=this.has(A)?0:1,y[A]=OA&&void 0===l?"__lodash_hash_undefined__":l,this};function $A(A){var l=-1,y=null==A?0:A.length;for(this.clear();++l<y;){var x=A[l];this.set(x[0],x[1])}}$A.prototype.clear=function(){this.__data__=SA?SA(null):{},this.size=0},$A.prototype.delete=ZA,$A.prototype.get=XA,$A.prototype.has=qA,$A.prototype.set=_A;var Al=$A;var ll=function(A,l){return A===l||A!=A&&l!=l},yl=ll;var xl=function(A,l){for(var y=A.length;y--;)if(yl(A[y][0],l))return y;return-1},Bl=xl,Ql=Array.prototype.splice;var tl=xl;var gl=xl;var el=xl;var wl=function(A){var l=this.__data__,y=Bl(l,A);return!(y<0)&&(y==l.length-1?l.pop():Ql.call(l,y,1),--this.size,!0)},nl=function(A){var l=this.__data__,y=tl(l,A);return y<0?void 0:l[y][1]},El=function(A){return gl(this.__data__,A)>-1},ol=function(A,l){var y=this.__data__,x=el(y,A);return x<0?(++this.size,y.push([A,l])):y[x][1]=l,this};function Cl(A){var l=-1,y=null==A?0:A.length;for(this.clear();++l<y;){var x=A[l];this.set(x[0],x[1])}}Cl.prototype.clear=function(){this.__data__=[],this.size=0},Cl.prototype.delete=wl,Cl.prototype.get=nl,Cl.prototype.has=El,Cl.prototype.set=ol;var il=Cl,rl=vA(lA,"Map"),cl=Al,al=il,Ml=rl;var Il=function(A){var l=typeof A;return"string"==l||"number"==l||"symbol"==l||"boolean"==l?"__proto__"!==A:null===A};var sl=function(A,l){var y=A.__data__;return Il(l)?y["string"==typeof l?"string":"hash"]:y.map},Dl=sl;var ul=sl;var Fl=sl;var dl=sl;var Yl=function(A){var l=Dl(this,A).delete(A);return this.size-=l?1:0,l},Ul=function(A){return ul(this,A).get(A)},Gl=function(A){return Fl(this,A).has(A)},hl=function(A,l){var y=dl(this,A),x=y.size;return y.set(A,l),this.size+=y.size==x?0:1,this};function jl(A){var l=-1,y=null==A?0:A.length;for(this.clear();++l<y;){var x=A[l];this.set(x[0],x[1])}}jl.prototype.clear=function(){this.size=0,this.__data__={hash:new cl,map:new(Ml||al),string:new cl}},jl.prototype.delete=Yl,jl.prototype.get=Ul,jl.prototype.has=Gl,jl.prototype.set=hl;var ml=jl,Pl=ml;function fl(A,l){if("function"!=typeof A||null!=l&&"function"!=typeof l)throw new TypeError("Expected a function");var y=function(){var x=arguments,B=l?l.apply(this,x):x[0],Q=y.cache;if(Q.has(B))return Q.get(B);var t=A.apply(this,x);return y.cache=Q.set(B,t)||Q,t};return y.cache=new(fl.Cache||Pl),y}fl.Cache=Pl;var Nl=fl,bl=M(Nl),Rl=Nl;var Hl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pl=/\\(\\)?/g,zl=function(A){var l=Rl(A,(function(A){return 500===y.size&&y.clear(),A})),y=l.cache;return l}((function(A){var l=[];return 46===A.charCodeAt(0)&&l.push(""),A.replace(Hl,(function(A,y,x,B){l.push(x?B.replace(pl,"$1"):y||A)})),l})),Jl=q,kl=_,vl=rA,Ll=yA?yA.prototype:void 0,Sl=Ll?Ll.toString:void 0;var Kl=function A(l){if("string"==typeof l)return l;if(kl(l))return Jl(l,A)+"";if(vl(l))return Sl?Sl.call(l):"";var y=l+"";return"0"==y&&1/l==-Infinity?"-0":y},Wl=Kl;var Tl=function(A){return null==A?"":Wl(A)},Vl=_,Ol=sA,Zl=zl,Xl=Tl;var ql=function(A,l){return Vl(A)?A:Ol(A,l)?[A]:Zl(Xl(A))},_l=rA;var $l=function(A){if("string"==typeof A||_l(A))return A;var l=A+"";return"0"==l&&1/A==-Infinity?"-0":l},Ay=ql,ly=$l;var yy=function(A,l){for(var y=0,x=(l=Ay(l,A)).length;null!=A&&y<x;)A=A[ly(l[y++])];return y&&y==x?A:void 0},xy=il;var By=il,Qy=rl,ty=ml;var gy=il,ey=function(A){var l=this.__data__,y=l.delete(A);return this.size=l.size,y},wy=function(A){return this.__data__.get(A)},ny=function(A){return this.__data__.has(A)},Ey=function(A,l){var y=this.__data__;if(y instanceof By){var x=y.__data__;if(!Qy||x.length<199)return x.push([A,l]),this.size=++y.size,this;y=this.__data__=new ty(x)}return y.set(A,l),this.size=y.size,this};function oy(A){var l=this.__data__=new gy(A);this.size=l.size}oy.prototype.clear=function(){this.__data__=new xy,this.size=0},oy.prototype.delete=ey,oy.prototype.get=wy,oy.prototype.has=ny,oy.prototype.set=Ey;var Cy=oy;var iy=ml,ry=function(A){return this.__data__.has(A)};function cy(A){var l=-1,y=null==A?0:A.length;for(this.__data__=new iy;++l<y;)this.add(A[l])}cy.prototype.add=cy.prototype.push=function(A){return this.__data__.set(A,"__lodash_hash_undefined__"),this},cy.prototype.has=ry;var ay=cy;var My=function(A,l){for(var y=-1,x=null==A?0:A.length;++y<x;)if(l(A[y],y,A))return!0;return!1};var Iy=function(A,l){return A.has(l)},sy=ay,Dy=My,uy=Iy;var Fy=function(A,l,y,x,B,Q){var t=1&y,g=A.length,e=l.length;if(g!=e&&!(t&&e>g))return!1;var w=Q.get(A),n=Q.get(l);if(w&&n)return w==l&&n==A;var E=-1,o=!0,C=2&y?new sy:void 0;for(Q.set(A,l),Q.set(l,A);++E<g;){var i=A[E],r=l[E];if(x)var c=t?x(r,i,E,l,A,Q):x(i,r,E,A,l,Q);if(void 0!==c){if(c)continue;o=!1;break}if(C){if(!Dy(l,(function(A,l){if(!uy(C,l)&&(i===A||B(i,A,y,x,Q)))return C.push(l)}))){o=!1;break}}else if(i!==r&&!B(i,r,y,x,Q)){o=!1;break}}return Q.delete(A),Q.delete(l),o};var dy=function(A){var l=-1,y=Array(A.size);return A.forEach((function(A,x){y[++l]=[x,A]})),y};var Yy=function(A){var l=-1,y=Array(A.size);return A.forEach((function(A){y[++l]=A})),y},Uy=lA.Uint8Array,Gy=ll,hy=Fy,jy=dy,my=Yy,Py=yA?yA.prototype:void 0,fy=Py?Py.valueOf:void 0;var Ny=function(A,l,y,x,B,Q,t){switch(y){case"[object DataView]":if(A.byteLength!=l.byteLength||A.byteOffset!=l.byteOffset)return!1;A=A.buffer,l=l.buffer;case"[object ArrayBuffer]":return!(A.byteLength!=l.byteLength||!Q(new Uy(A),new Uy(l)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Gy(+A,+l);case"[object Error]":return A.name==l.name&&A.message==l.message;case"[object RegExp]":case"[object String]":return A==l+"";case"[object Map]":var g=jy;case"[object Set]":if(g||(g=my),A.size!=l.size&&!(1&x))return!1;var e=t.get(A);if(e)return e==l;x|=2,t.set(A,l);var w=hy(g(A),g(l),x,B,Q,t);return t.delete(A),w;case"[object Symbol]":if(fy)return fy.call(A)==fy.call(l)}return!1};var by=function(A,l){for(var y=-1,x=l.length,B=A.length;++y<x;)A[B+y]=l[y];return A},Ry=by,Hy=_;var py=function(A,l,y){var x=l(A);return Hy(A)?x:Ry(x,y(A))};var zy=function(A,l){for(var y=-1,x=null==A?0:A.length,B=0,Q=[];++y<x;){var t=A[y];l(t,y,A)&&(Q[B++]=t)}return Q};var Jy=function(){return[]},ky=zy,vy=Object.prototype.propertyIsEnumerable,Ly=Object.getOwnPropertySymbols,Sy=Ly?function(A){return null==A?[]:(A=Object(A),ky(Ly(A),(function(l){return vy.call(A,l)})))}:Jy,Ky=Sy;var Wy=function(A,l){for(var y=-1,x=Array(A);++y<A;)x[y]=l(y);return x},Ty=EA,Vy=oA;var Oy,Zy,Xy,qy,_y=function(A){return Vy(A)&&"[object Arguments]"==Ty(A)},$y=oA,Ax=Object.prototype,lx=Ax.hasOwnProperty,yx=Ax.propertyIsEnumerable,xx=_y(function(){return arguments}())?_y:function(A){return $y(A)&&lx.call(A,"callee")&&!yx.call(A,"callee")},Bx={exports:{}};var Qx=Bx.exports=((qy=(Xy=(Zy=(Oy=Bx.exports)&&!Oy.nodeType&&Oy)&&Bx&&!Bx.nodeType&&Bx)&&Xy.exports===Zy?lA.Buffer:void 0)?qy.isBuffer:void 0)||function(){return!1},tx=/^(?:0|[1-9]\d*)$/;var gx=function(A,l){var y=typeof A;return!!(l=null==l?9007199254740991:l)&&("number"==y||"symbol"!=y&&tx.test(A))&&A>-1&&A%1==0&&A<l};var ex=function(A){return"number"==typeof A&&A>-1&&A%1==0&&A<=9007199254740991},wx=EA,nx=ex,Ex=oA,ox={};ox["[object Float32Array]"]=ox["[object Float64Array]"]=ox["[object Int8Array]"]=ox["[object Int16Array]"]=ox["[object Int32Array]"]=ox["[object Uint8Array]"]=ox["[object Uint8ClampedArray]"]=ox["[object Uint16Array]"]=ox["[object Uint32Array]"]=!0,ox["[object Arguments]"]=ox["[object Array]"]=ox["[object ArrayBuffer]"]=ox["[object Boolean]"]=ox["[object DataView]"]=ox["[object Date]"]=ox["[object Error]"]=ox["[object Function]"]=ox["[object Map]"]=ox["[object Number]"]=ox["[object Object]"]=ox["[object RegExp]"]=ox["[object Set]"]=ox["[object String]"]=ox["[object WeakMap]"]=!1;var Cx=function(A){return Ex(A)&&nx(A.length)&&!!ox[wx(A)]};var ix=function(A){return function(l){return A(l)}},rx={exports:{}};!function(A,l){var y=l&&!l.nodeType&&l,x=y&&A&&!A.nodeType&&A,B=x&&x.exports===y&&$.process,Q=function(){try{var A=x&&x.require&&x.require("util").types;return A||B&&B.binding&&B.binding("util")}catch(A){}}();A.exports=Q}(rx,rx.exports);var cx=rx.exports,ax=Cx,Mx=cx&&cx.isTypedArray,Ix=Mx?ix(Mx):ax,sx=Wy,Dx=xx,ux=_,Fx=Qx,dx=gx,Yx=Ix,Ux=Object.prototype.hasOwnProperty;var Gx=function(A,l){var y=ux(A),x=!y&&Dx(A),B=!y&&!x&&Fx(A),Q=!y&&!x&&!B&&Yx(A),t=y||x||B||Q,g=t?sx(A.length,String):[],e=g.length;for(var w in A)!l&&!Ux.call(A,w)||t&&("length"==w||B&&("offset"==w||"parent"==w)||Q&&("buffer"==w||"byteLength"==w||"byteOffset"==w)||dx(w,e))||g.push(w);return g},hx=Object.prototype;var jx=function(A){var l=A&&A.constructor;return A===("function"==typeof l&&l.prototype||hx)};var mx=function(A,l){return function(y){return A(l(y))}},Px=mx(Object.keys,Object),fx=jx,Nx=Px,bx=Object.prototype.hasOwnProperty;var Rx=function(A){if(!fx(A))return Nx(A);var l=[];for(var y in Object(A))bx.call(A,y)&&"constructor"!=y&&l.push(y);return l},Hx=UA,px=ex;var zx=function(A){return null!=A&&px(A.length)&&!Hx(A)},Jx=Gx,kx=Rx,vx=zx;var Lx=function(A){return vx(A)?Jx(A):kx(A)},Sx=M(Lx),Kx=py,Wx=Ky,Tx=Lx;var Vx=function(A){return Kx(A,Tx,Wx)},Ox=Vx,Zx=Object.prototype.hasOwnProperty;var Xx=function(A,l,y,x,B,Q){var t=1&y,g=Ox(A),e=g.length;if(e!=Ox(l).length&&!t)return!1;for(var w=e;w--;){var n=g[w];if(!(t?n in l:Zx.call(l,n)))return!1}var E=Q.get(A),o=Q.get(l);if(E&&o)return E==l&&o==A;var C=!0;Q.set(A,l),Q.set(l,A);for(var i=t;++w<e;){var r=A[n=g[w]],c=l[n];if(x)var a=t?x(c,r,n,l,A,Q):x(r,c,n,A,l,Q);if(!(void 0===a?r===c||B(r,c,y,x,Q):a)){C=!1;break}i||(i="constructor"==n)}if(C&&!i){var M=A.constructor,I=l.constructor;M==I||!("constructor"in A)||!("constructor"in l)||"function"==typeof M&&M instanceof M&&"function"==typeof I&&I instanceof I||(C=!1)}return Q.delete(A),Q.delete(l),C},qx=vA(lA,"DataView"),_x=vA(lA,"Promise"),$x=vA(lA,"Set"),AB=vA(lA,"WeakMap"),lB=qx,yB=rl,xB=_x,BB=$x,QB=AB,tB=EA,gB=PA,eB="[object Map]",wB="[object Promise]",nB="[object Set]",EB="[object WeakMap]",oB="[object DataView]",CB=gB(lB),iB=gB(yB),rB=gB(xB),cB=gB(BB),aB=gB(QB),MB=tB;(lB&&MB(new lB(new ArrayBuffer(1)))!=oB||yB&&MB(new yB)!=eB||xB&&MB(xB.resolve())!=wB||BB&&MB(new BB)!=nB||QB&&MB(new QB)!=EB)&&(MB=function(A){var l=tB(A),y="[object Object]"==l?A.constructor:void 0,x=y?gB(y):"";if(x)switch(x){case CB:return oB;case iB:return eB;case rB:return wB;case cB:return nB;case aB:return EB}return l});var IB=MB,sB=Cy,DB=Fy,uB=Ny,FB=Xx,dB=IB,YB=_,UB=Qx,GB=Ix,hB="[object Arguments]",jB="[object Array]",mB="[object Object]",PB=Object.prototype.hasOwnProperty;var fB=function(A,l,y,x,B,Q){var t=YB(A),g=YB(l),e=t?jB:dB(A),w=g?jB:dB(l),n=(e=e==hB?mB:e)==mB,E=(w=w==hB?mB:w)==mB,o=e==w;if(o&&UB(A)){if(!UB(l))return!1;t=!0,n=!1}if(o&&!n)return Q||(Q=new sB),t||GB(A)?DB(A,l,y,x,B,Q):uB(A,l,e,y,x,B,Q);if(!(1&y)){var C=n&&PB.call(A,"__wrapped__"),i=E&&PB.call(l,"__wrapped__");if(C||i){var r=C?A.value():A,c=i?l.value():l;return Q||(Q=new sB),B(r,c,y,x,Q)}}return!!o&&(Q||(Q=new sB),FB(A,l,y,x,B,Q))},NB=fB,bB=oA;var RB=function A(l,y,x,B,Q){return l===y||(null==l||null==y||!bB(l)&&!bB(y)?l!=l&&y!=y:NB(l,y,x,B,A,Q))},HB=Cy,pB=RB;var zB=function(A,l,y,x){var B=y.length,Q=B,t=!x;if(null==A)return!Q;for(A=Object(A);B--;){var g=y[B];if(t&&g[2]?g[1]!==A[g[0]]:!(g[0]in A))return!1}for(;++B<Q;){var e=(g=y[B])[0],w=A[e],n=g[1];if(t&&g[2]){if(void 0===w&&!(e in A))return!1}else{var E=new HB;if(x)var o=x(w,n,e,A,l,E);if(!(void 0===o?pB(n,w,3,x,E):o))return!1}}return!0},JB=DA;var kB=function(A){return A==A&&!JB(A)},vB=kB,LB=Lx;var SB=function(A){for(var l=LB(A),y=l.length;y--;){var x=l[y],B=A[x];l[y]=[x,B,vB(B)]}return l};var KB=function(A,l){return function(y){return null!=y&&(y[A]===l&&(void 0!==l||A in Object(y)))}},WB=zB,TB=SB,VB=KB;var OB=function(A){var l=TB(A);return 1==l.length&&l[0][2]?VB(l[0][0],l[0][1]):function(y){return y===A||WB(y,A,l)}},ZB=yy;var XB=function(A,l,y){var x=null==A?void 0:ZB(A,l);return void 0===x?y:x};var qB=function(A,l){return null!=A&&l in Object(A)},_B=ql,$B=xx,AQ=_,lQ=gx,yQ=ex,xQ=$l;var BQ=function(A,l,y){for(var x=-1,B=(l=_B(l,A)).length,Q=!1;++x<B;){var t=xQ(l[x]);if(!(Q=null!=A&&y(A,t)))break;A=A[t]}return Q||++x!=B?Q:!!(B=null==A?0:A.length)&&yQ(B)&&lQ(t,B)&&(AQ(A)||$B(A))},QQ=qB,tQ=BQ;var gQ=function(A,l){return null!=A&&tQ(A,l,QQ)},eQ=RB,wQ=XB,nQ=gQ,EQ=sA,oQ=kB,CQ=KB,iQ=$l;var rQ=function(A,l){return EQ(A)&&oQ(l)?CQ(iQ(A),l):function(y){var x=wQ(y,A);return void 0===x&&x===l?nQ(y,A):eQ(l,x,3)}};var cQ=function(A){return A},aQ=M(cQ);var MQ=function(A){return function(l){return null==l?void 0:l[A]}},IQ=yy;var sQ=function(A){return function(l){return IQ(l,A)}},DQ=MQ,uQ=sQ,FQ=sA,dQ=$l;var YQ=function(A){return FQ(A)?DQ(dQ(A)):uQ(A)},UQ=M(YQ),GQ=OB,hQ=rQ,jQ=cQ,mQ=_,PQ=YQ;var fQ=function(A){return"function"==typeof A?A:null==A?jQ:"object"==typeof A?mQ(A)?hQ(A[0],A[1]):GQ(A):PQ(A)};var NQ=function(A){return function(l,y,x){for(var B=-1,Q=Object(l),t=x(l),g=t.length;g--;){var e=t[A?g:++B];if(!1===y(Q[e],e,Q))break}return l}},bQ=NQ(),RQ=Lx;var HQ=function(A,l){return A&&bQ(A,l,RQ)},pQ=zx;var zQ=function(A,l){return function(y,x){if(null==y)return y;if(!pQ(y))return A(y,x);for(var B=y.length,Q=l?B:-1,t=Object(y);(l?Q--:++Q<B)&&!1!==x(t[Q],Q,t););return y}}(HQ),JQ=zQ,kQ=zx;var vQ=function(A,l){var y=A.length;for(A.sort(l);y--;)A[y]=A[y].value;return A},LQ=rA;var SQ=function(A,l){if(A!==l){var y=void 0!==A,x=null===A,B=A==A,Q=LQ(A),t=void 0!==l,g=null===l,e=l==l,w=LQ(l);if(!g&&!w&&!Q&&A>l||Q&&t&&e&&!g&&!w||x&&t&&e||!y&&e||!B)return 1;if(!x&&!Q&&!w&&A<l||w&&y&&B&&!x&&!Q||g&&y&&B||!t&&B||!e)return-1}return 0};var KQ=function(A,l,y){for(var x=-1,B=A.criteria,Q=l.criteria,t=B.length,g=y.length;++x<t;){var e=SQ(B[x],Q[x]);if(e)return x>=g?e:e*("desc"==y[x]?-1:1)}return A.index-l.index},WQ=q,TQ=yy,VQ=fQ,OQ=function(A,l){var y=-1,x=kQ(A)?Array(A.length):[];return JQ(A,(function(A,B,Q){x[++y]=l(A,B,Q)})),x},ZQ=vQ,XQ=ix,qQ=KQ,_Q=cQ,$Q=_;var At=function(A,l,y){l=l.length?WQ(l,(function(A){return $Q(A)?function(l){return TQ(l,1===A.length?A[0]:A)}:A})):[_Q];var x=-1;l=WQ(l,XQ(VQ));var B=OQ(A,(function(A,y,B){return{criteria:WQ(l,(function(l){return l(A)})),index:++x,value:A}}));return ZQ(B,(function(A,l){return qQ(A,l,y)}))},lt=At,yt=_;var xt=M((function(A,l,y,x){return null==A?[]:(yt(l)||(l=null==l?[]:[l]),yt(y=x?void 0:y)||(y=null==y?[]:[y]),lt(A,l,y))})),Bt=mx(Object.getPrototypeOf,Object),Qt=EA,tt=Bt,gt=oA,et=Function.prototype.toString,wt=Object.prototype.hasOwnProperty,nt=et.call(Object);var Et=M((function(A){if(!gt(A)||"[object Object]"!=Qt(A))return!1;var l=tt(A);if(null===l)return!0;var y=wt.call(l,"constructor")&&l.constructor;return"function"==typeof y&&y instanceof y&&et.call(y)==nt}));function ot(A,l,y){A.prototype=l.prototype=y,y.constructor=A}function Ct(A,l){var y=Object.create(A.prototype);for(var x in l)y[x]=l[x];return y}function it(){}var rt=.7,ct=1/rt,at="\\s*([+-]?\\d+)\\s*",Mt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",It="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",st=/^#([0-9a-f]{3,8})$/,Dt=new RegExp(`^rgb\\(${at},${at},${at}\\)$`),ut=new RegExp(`^rgb\\(${It},${It},${It}\\)$`),Ft=new RegExp(`^rgba\\(${at},${at},${at},${Mt}\\)$`),dt=new RegExp(`^rgba\\(${It},${It},${It},${Mt}\\)$`),Yt=new RegExp(`^hsl\\(${Mt},${It},${It}\\)$`),Ut=new RegExp(`^hsla\\(${Mt},${It},${It},${Mt}\\)$`),Gt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ht(){return this.rgb().formatHex()}function jt(){return this.rgb().formatRgb()}function mt(A){var l,y;return A=(A+"").trim().toLowerCase(),(l=st.exec(A))?(y=l[1].length,l=parseInt(l[1],16),6===y?Pt(l):3===y?new bt(l>>8&15|l>>4&240,l>>4&15|240&l,(15&l)<<4|15&l,1):8===y?ft(l>>24&255,l>>16&255,l>>8&255,(255&l)/255):4===y?ft(l>>12&15|l>>8&240,l>>8&15|l>>4&240,l>>4&15|240&l,((15&l)<<4|15&l)/255):null):(l=Dt.exec(A))?new bt(l[1],l[2],l[3],1):(l=ut.exec(A))?new bt(255*l[1]/100,255*l[2]/100,255*l[3]/100,1):(l=Ft.exec(A))?ft(l[1],l[2],l[3],l[4]):(l=dt.exec(A))?ft(255*l[1]/100,255*l[2]/100,255*l[3]/100,l[4]):(l=Yt.exec(A))?kt(l[1],l[2]/100,l[3]/100,1):(l=Ut.exec(A))?kt(l[1],l[2]/100,l[3]/100,l[4]):Gt.hasOwnProperty(A)?Pt(Gt[A]):"transparent"===A?new bt(NaN,NaN,NaN,0):null}function Pt(A){return new bt(A>>16&255,A>>8&255,255&A,1)}function ft(A,l,y,x){return x<=0&&(A=l=y=NaN),new bt(A,l,y,x)}function Nt(A,l,y,x){return 1===arguments.length?((B=A)instanceof it||(B=mt(B)),B?new bt((B=B.rgb()).r,B.g,B.b,B.opacity):new bt):new bt(A,l,y,null==x?1:x);var B}function bt(A,l,y,x){this.r=+A,this.g=+l,this.b=+y,this.opacity=+x}function Rt(){return`#${Jt(this.r)}${Jt(this.g)}${Jt(this.b)}`}function Ht(){const A=pt(this.opacity);return`${1===A?"rgb(":"rgba("}${zt(this.r)}, ${zt(this.g)}, ${zt(this.b)}${1===A?")":`, ${A})`}`}function pt(A){return isNaN(A)?1:Math.max(0,Math.min(1,A))}function zt(A){return Math.max(0,Math.min(255,Math.round(A)||0))}function Jt(A){return((A=zt(A))<16?"0":"")+A.toString(16)}function kt(A,l,y,x){return x<=0?A=l=y=NaN:y<=0||y>=1?A=l=NaN:l<=0&&(A=NaN),new Lt(A,l,y,x)}function vt(A){if(A instanceof Lt)return new Lt(A.h,A.s,A.l,A.opacity);if(A instanceof it||(A=mt(A)),!A)return new Lt;if(A instanceof Lt)return A;var l=(A=A.rgb()).r/255,y=A.g/255,x=A.b/255,B=Math.min(l,y,x),Q=Math.max(l,y,x),t=NaN,g=Q-B,e=(Q+B)/2;return g?(t=l===Q?(y-x)/g+6*(y<x):y===Q?(x-l)/g+2:(l-y)/g+4,g/=e<.5?Q+B:2-Q-B,t*=60):g=e>0&&e<1?0:t,new Lt(t,g,e,A.opacity)}function Lt(A,l,y,x){this.h=+A,this.s=+l,this.l=+y,this.opacity=+x}function St(A){return(A=(A||0)%360)<0?A+360:A}function Kt(A){return Math.max(0,Math.min(1,A||0))}function Wt(A,l,y){return 255*(A<60?l+(y-l)*A/60:A<180?y:A<240?l+(y-l)*(240-A)/60:l)}ot(it,mt,{copy(A){return Object.assign(new this.constructor,this,A)},displayable(){return this.rgb().displayable()},hex:ht,formatHex:ht,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return vt(this).formatHsl()},formatRgb:jt,toString:jt}),ot(bt,Nt,Ct(it,{brighter(A){return A=null==A?ct:Math.pow(ct,A),new bt(this.r*A,this.g*A,this.b*A,this.opacity)},darker(A){return A=null==A?rt:Math.pow(rt,A),new bt(this.r*A,this.g*A,this.b*A,this.opacity)},rgb(){return this},clamp(){return new bt(zt(this.r),zt(this.g),zt(this.b),pt(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Rt,formatHex:Rt,formatHex8:function(){return`#${Jt(this.r)}${Jt(this.g)}${Jt(this.b)}${Jt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ht,toString:Ht})),ot(Lt,(function(A,l,y,x){return 1===arguments.length?vt(A):new Lt(A,l,y,null==x?1:x)}),Ct(it,{brighter(A){return A=null==A?ct:Math.pow(ct,A),new Lt(this.h,this.s,this.l*A,this.opacity)},darker(A){return A=null==A?rt:Math.pow(rt,A),new Lt(this.h,this.s,this.l*A,this.opacity)},rgb(){var A=this.h%360+360*(this.h<0),l=isNaN(A)||isNaN(this.s)?0:this.s,y=this.l,x=y+(y<.5?y:1-y)*l,B=2*y-x;return new bt(Wt(A>=240?A-240:A+120,B,x),Wt(A,B,x),Wt(A<120?A+240:A-120,B,x),this.opacity)},clamp(){return new Lt(St(this.h),Kt(this.s),Kt(this.l),pt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const A=pt(this.opacity);return`${1===A?"hsl(":"hsla("}${St(this.h)}, ${100*Kt(this.s)}%, ${100*Kt(this.l)}%${1===A?")":`, ${A})`}`}}));var Tt=A=>()=>A;function Vt(A){return 1==(A=+A)?Ot:function(l,y){return y-l?function(A,l,y){return A=Math.pow(A,y),l=Math.pow(l,y)-A,y=1/y,function(x){return Math.pow(A+x*l,y)}}(l,y,A):Tt(isNaN(l)?y:l)}}function Ot(A,l){var y=l-A;return y?function(A,l){return function(y){return A+y*l}}(A,y):Tt(isNaN(A)?l:A)}var Zt=function A(l){var y=Vt(l);function x(A,l){var x=y((A=Nt(A)).r,(l=Nt(l)).r),B=y(A.g,l.g),Q=y(A.b,l.b),t=Ot(A.opacity,l.opacity);return function(l){return A.r=x(l),A.g=B(l),A.b=Q(l),A.opacity=t(l),A+""}}return x.gamma=A,x}(1);function Xt(A,l){l||(l=[]);var y,x=A?Math.min(l.length,A.length):0,B=l.slice();return function(Q){for(y=0;y<x;++y)B[y]=A[y]*(1-Q)+l[y]*Q;return B}}function qt(A,l){var y,x=l?l.length:0,B=A?Math.min(x,A.length):0,Q=new Array(B),t=new Array(x);for(y=0;y<B;++y)Q[y]=Bg(A[y],l[y]);for(;y<x;++y)t[y]=l[y];return function(A){for(y=0;y<B;++y)t[y]=Q[y](A);return t}}function _t(A,l){var y=new Date;return A=+A,l=+l,function(x){return y.setTime(A*(1-x)+l*x),y}}function $t(A,l){return A=+A,l=+l,function(y){return A*(1-y)+l*y}}function Ag(A,l){var y,x={},B={};for(y in null!==A&&"object"==typeof A||(A={}),null!==l&&"object"==typeof l||(l={}),l)y in A?x[y]=Bg(A[y],l[y]):B[y]=l[y];return function(A){for(y in x)B[y]=x[y](A);return B}}var lg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yg=new RegExp(lg.source,"g");function xg(A,l){var y,x,B,Q=lg.lastIndex=yg.lastIndex=0,t=-1,g=[],e=[];for(A+="",l+="";(y=lg.exec(A))&&(x=yg.exec(l));)(B=x.index)>Q&&(B=l.slice(Q,B),g[t]?g[t]+=B:g[++t]=B),(y=y[0])===(x=x[0])?g[t]?g[t]+=x:g[++t]=x:(g[++t]=null,e.push({i:t,x:$t(y,x)})),Q=yg.lastIndex;return Q<l.length&&(B=l.slice(Q),g[t]?g[t]+=B:g[++t]=B),g.length<2?e[0]?function(A){return function(l){return A(l)+""}}(e[0].x):function(A){return function(){return A}}(l):(l=e.length,function(A){for(var y,x=0;x<l;++x)g[(y=e[x]).i]=y.x(A);return g.join("")})}function Bg(A,l){var y,x=typeof l;return null==l||"boolean"===x?Tt(l):("number"===x?$t:"string"===x?(y=mt(l))?(l=y,Zt):xg:l instanceof mt?Zt:l instanceof Date?_t:function(A){return ArrayBuffer.isView(A)&&!(A instanceof DataView)}(l)?Xt:Array.isArray(l)?qt:"function"!=typeof l.valueOf&&"function"!=typeof l.toString||isNaN(l)?Ag:$t)(A,l)}function Qg(A,l){return A=+A,l=+l,function(y){return Math.round(A*(1-y)+l*y)}}function tg(A,l){void 0===l&&(l=A,A=Bg);for(var y=0,x=l.length-1,B=l[0],Q=new Array(x<0?0:x);y<x;)Q[y]=A(B,B=l[++y]);return function(A){var l=Math.max(0,Math.min(x-1,Math.floor(A*=x)));return Q[l](A-l)}}var gg,eg,wg=function(A){if(null!==A)switch(typeof A){case"undefined":case"boolean":return!1;case"number":return!isNaN(A)&&A!==Number.POSITIVE_INFINITY&&A!==Number.NEGATIVE_INFINITY;case"string":case"function":return!0;case"object":return A instanceof Date||Array.isArray(A)||Et(A)}return!1},ng=function(A,l){var y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return function(x){return x<y?A:l}},Eg=function(A,l){return function(y){return y>=1?l:function(){return Bg("function"==typeof A?A.apply(this,arguments):A,"function"==typeof l?l.apply(this,arguments):l)(y)}}},og=function(A,l){var y,x=function(A,l){return A!==l&&wg(A)&&wg(l)?"function"==typeof A||"function"==typeof l?Eg(A,l):"object"==typeof A&&Et(A)||"object"==typeof l&&Et(l)?og(A,l):Bg(A,l):ng(A,l)},B=function(A){return Array.isArray(A)?xt(A,"key"):A},Q={},t={},g=A,e=l;for(y in null!==g&&"object"==typeof g||(g={}),null!==e&&"object"==typeof e||(e={}),e)y in g?Q[y]=x(B(g[y]),B(e[y])):t[y]=e[y];return function(A){for(y in Q)t[y]=Q[y](A);return t}},Cg=function(A,l){return A!==l&&wg(A)&&wg(l)?"function"==typeof A||"function"==typeof l?Eg(A,l):Et(A)||Et(l)?og(A,l):"string"==typeof A||"string"==typeof l?function(A,l){var y=function(A){return"string"==typeof A?A.replace(/,/g,""):A};return Bg(y(A),y(l))}(A,l):Bg(A,l):ng(A,l)},ig=0,rg=0,cg=0,ag=1e3,Mg=0,Ig=0,sg=0,Dg="object"==typeof performance&&performance.now?performance:Date,ug="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(A){setTimeout(A,17)};function Fg(){return Ig||(ug(dg),Ig=Dg.now()+sg)}function dg(){Ig=0}function Yg(){this._call=this._time=this._next=null}function Ug(A,l,y){var x=new Yg;return x.restart(A,l,y),x}function Gg(){Ig=(Mg=Dg.now())+sg,ig=rg=0;try{!function(){Fg(),++ig;for(var A,l=gg;l;)(A=Ig-l._time)>=0&&l._call.call(void 0,A),l=l._next;--ig}()}finally{ig=0,function(){var A,l,y=gg,x=1/0;for(;y;)y._call?(x>y._time&&(x=y._time),A=y,y=y._next):(l=y._next,y._next=null,y=A?A._next=l:gg=l);eg=A,jg(x)}(),Ig=0}}function hg(){var A=Dg.now(),l=A-Mg;l>ag&&(sg-=l,Mg=A)}function jg(A){ig||(rg&&(rg=clearTimeout(rg)),A-Ig>24?(A<1/0&&(rg=setTimeout(Gg,A-Dg.now()-sg)),cg&&(cg=clearInterval(cg))):(cg||(Mg=Dg.now(),cg=setInterval(hg,ag)),ig=1,ug(Gg)))}function mg(A,l,y){return l&&function(A,l){for(var y=0;y<l.length;y++){var x=l[y];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(A,x.key,x)}}(A.prototype,l),Object.defineProperty(A,"prototype",{writable:!1}),A}Yg.prototype=Ug.prototype={constructor:Yg,restart:function(A,l,y){if("function"!=typeof A)throw new TypeError("callback is not a function");y=(null==y?Fg():+y)+(null==l?0:+l),this._next||eg===this||(eg?eg._next=this:gg=this,eg=this),this._call=A,this._time=y,jg()},stop:function(){this._call&&(this._call=null,this._time=1/0,jg())}};var Pg=function(){function A(){var l=this;!function(A,l){if(!(A instanceof l))throw new TypeError("Cannot call a class as a function")}(this,A),this.shouldAnimate=void 0,this.subscribers=void 0,this.activeSubscriptions=void 0,this.timer=void 0,this.loop=function(){l.subscribers.forEach((function(A){A.callback(Fg()-A.startTime,A.duration)}))},this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}return mg(A,[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"start",value:function(){this.timer||(this.timer=Ug(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(A,l){var y=this.subscribers.push({startTime:Fg(),callback:A,duration:this.shouldAnimate?l:0});return this.activeSubscriptions++,this.start(),y}},{key:"unsubscribe",value:function(A){null!==A&&this.subscribers[A-1]&&(delete this.subscribers[A-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}]),A}(),fg=l.createContext({transitionTimer:new Pg,animationTimer:new Pg});fg.displayName="TimerContext";var Ng="undefined"!=typeof Element,bg="function"==typeof Map,Rg="function"==typeof Set,Hg="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function pg(A,l){if(A===l)return!0;if(A&&l&&"object"==typeof A&&"object"==typeof l){if(A.constructor!==l.constructor)return!1;var y,x,B,Q;if(Array.isArray(A)){if((y=A.length)!=l.length)return!1;for(x=y;0!=x--;)if(!pg(A[x],l[x]))return!1;return!0}if(bg&&A instanceof Map&&l instanceof Map){if(A.size!==l.size)return!1;for(Q=A.entries();!(x=Q.next()).done;)if(!l.has(x.value[0]))return!1;for(Q=A.entries();!(x=Q.next()).done;)if(!pg(x.value[1],l.get(x.value[0])))return!1;return!0}if(Rg&&A instanceof Set&&l instanceof Set){if(A.size!==l.size)return!1;for(Q=A.entries();!(x=Q.next()).done;)if(!l.has(x.value[0]))return!1;return!0}if(Hg&&ArrayBuffer.isView(A)&&ArrayBuffer.isView(l)){if((y=A.length)!=l.length)return!1;for(x=y;0!=x--;)if(A[x]!==l[x])return!1;return!0}if(A.constructor===RegExp)return A.source===l.source&&A.flags===l.flags;if(A.valueOf!==Object.prototype.valueOf&&"function"==typeof A.valueOf&&"function"==typeof l.valueOf)return A.valueOf()===l.valueOf();if(A.toString!==Object.prototype.toString&&"function"==typeof A.toString&&"function"==typeof l.toString)return A.toString()===l.toString();if((y=(B=Object.keys(A)).length)!==Object.keys(l).length)return!1;for(x=y;0!=x--;)if(!Object.prototype.hasOwnProperty.call(l,B[x]))return!1;if(Ng&&A instanceof Element)return!1;for(x=y;0!=x--;)if(("_owner"!==B[x]&&"__v"!==B[x]&&"__o"!==B[x]||!A.$$typeof)&&!pg(A[B[x]],l[B[x]]))return!1;return!0}return A!=A&&l!=l}var zg=function(A,l){try{return pg(A,l)}catch(A){if((A.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw A}},Jg=M(zg);function kg(A){return function(A){if(Array.isArray(A))return vg(A)}(A)||function(A){if("undefined"!=typeof Symbol&&null!=A[Symbol.iterator]||null!=A["@@iterator"])return Array.from(A)}(A)||function(A,l){if(!A)return;if("string"==typeof A)return vg(A,l);var y=Object.prototype.toString.call(A).slice(8,-1);"Object"===y&&A.constructor&&(y=A.constructor.name);if("Map"===y||"Set"===y)return Array.from(A);if("Arguments"===y||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return vg(A,l)}(A)||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 vg(A,l){(null==l||l>A.length)&&(l=A.length);for(var y=0,x=new Array(l);y<l;y++)x[y]=A[y];return x}function Lg(A,l,y){return l&&function(A,l){for(var y=0;y<l.length;y++){var x=l[y];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(A,x.key,x)}}(A.prototype,l),Object.defineProperty(A,"prototype",{writable:!1}),A}function Sg(A,l){return Sg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(A,l){return A.__proto__=l,A},Sg(A,l)}function Kg(A){var l=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(A){return!1}}();return function(){var y,x=Wg(A);if(l){var B=Wg(this).constructor;y=Reflect.construct(x,arguments,B)}else y=x.apply(this,arguments);return function(A,l){if(l&&("object"==typeof l||"function"==typeof l))return l;if(void 0!==l)throw new TypeError("Derived constructors may only return object or undefined");return function(A){if(void 0===A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}(A)}(this,y)}}function Wg(A){return Wg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(A){return A.__proto__||Object.getPrototypeOf(A)},Wg(A)}var Tg=function(A){!function(A,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(l&&l.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),l&&Sg(A,l)}(x,l.Component);var y=Kg(x);function x(A,l){var B;return function(A,l){if(!(A instanceof l))throw new TypeError("Cannot call a class as a function")}(this,x),(B=y.call(this,A,l)).interpolator=void 0,B.queue=void 0,B.ease=void 0,B.timer=void 0,B.loopID=void 0,B.functionToBeRunEachFrame=function(A,l){var y=void 0!==l?l:B.props.duration,x=y?A/y:1;if(x>=1)return B.setState({data:B.interpolator(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),B.loopID&&B.timer.unsubscribe(B.loopID),B.queue.shift(),void B.traverseQueue();B.setState({data:B.interpolator(B.ease(x)),animationInfo:{progress:x,animating:x<1}})},B.state={data:Array.isArray(B.props.data)?B.props.data[0]:B.props.data,animationInfo:{progress:0,animating:!1}},B.interpolator=null,B.queue=Array.isArray(B.props.data)?B.props.data.slice(1):[],B.ease=X[B.toNewName(B.props.easing)],B.timer=B.context.animationTimer,B}return Lg(x,[{key:"componentDidMount",value:function(){this.queue.length&&this.traverseQueue()}},{key:"componentDidUpdate",value:function(A){if(!Jg(this.props,A))if(this.interpolator&&this.state.animationInfo&&this.state.animationInfo.progress<1)this.setState({data:this.interpolator(1),animationInfo:{progress:1,animating:!1,terminating:!0}});else{var l;if(this.timer.unsubscribe(this.loopID),Array.isArray(this.props.data))(l=this.queue).push.apply(l,kg(this.props.data));else this.queue.length=0,this.queue.push(this.props.data);this.traverseQueue()}}},{key:"componentWillUnmount",value:function(){this.loopID?this.timer.unsubscribe(this.loopID):this.timer.stop()}},{key:"toNewName",value:function(A){return"ease".concat(function(A){return A&&A[0].toUpperCase()+A.slice(1)}(A))}},{key:"traverseQueue",value:function(){var A=this;this.queue.length?(this.interpolator=Cg(this.state.data,this.queue[0]),this.props.delay?setTimeout((function(){A.loopID=A.timer.subscribe(A.functionToBeRunEachFrame,A.props.duration)}),this.props.delay):this.loopID=this.timer.subscribe(this.functionToBeRunEachFrame,this.props.duration)):this.props.onEnd&&this.props.onEnd()}},{key:"render",value:function(){return this.props.children(this.state.data,this.state.animationInfo)}}]),x}();Tg.displayName="VictoryAnimation",Tg.defaultProps={data:{},delay:0,duration:1e3,easing:"quadInOut"},Tg.contextType=fg;var Vg=Tl,Og=0;var Zg=M((function(A){var l=++Og;return Vg(A)+l}));var Xg=function(A,l,y){switch(y.length){case 0:return A.call(l);case 1:return A.call(l,y[0]);case 2:return A.call(l,y[0],y[1]);case 3:return A.call(l,y[0],y[1],y[2])}return A.apply(l,y)},qg=Math.max;var _g=function(A,l,y){return l=qg(void 0===l?A.length-1:l,0),function(){for(var x=arguments,B=-1,Q=qg(x.length-l,0),t=Array(Q);++B<Q;)t[B]=x[l+B];B=-1;for(var g=Array(l+1);++B<l;)g[B]=x[B];return g[l]=y(t),Xg(A,this,g)}};var $g=function(A){return function(){return A}},Ae=vA,le=function(){try{var A=Ae(Object,"defineProperty");return A({},"",{}),A}catch(A){}}(),ye=$g,xe=le,Be=xe?function(A,l){return xe(A,"toString",{configurable:!0,enumerable:!1,value:ye(l),writable:!0})}:cQ,Qe=Date.now;var te=function(A){var l=0,y=0;return function(){var x=Qe(),B=16-(x-y);if(y=x,B>0){if(++l>=800)return arguments[0]}else l=0;return A.apply(void 0,arguments)}}(Be),ge=cQ,ee=_g,we=te;var ne=function(A,l){return we(ee(A,l,ge),A+"")},Ee=ll,oe=zx,Ce=gx,ie=DA;var re=function(A,l,y){if(!ie(y))return!1;var x=typeof l;return!!("number"==x?oe(y)&&Ce(l,y.length):"string"==x&&l in y)&&Ee(y[l],A)};var ce=function(A){var l=[];if(null!=A)for(var y in Object(A))l.push(y);return l},ae=DA,Me=jx,Ie=ce,se=Object.prototype.hasOwnProperty;var De=function(A){if(!ae(A))return Ie(A);var l=Me(A),y=[];for(var x in A)("constructor"!=x||!l&&se.call(A,x))&&y.push(x);return y},ue=Gx,Fe=De,de=zx;var Ye=function(A){return de(A)?ue(A,!0):Fe(A)},Ue=ll,Ge=re,he=Ye,je=Object.prototype,me=je.hasOwnProperty,Pe=ne((function(A,l){A=Object(A);var y=-1,x=l.length,B=x>2?l[2]:void 0;for(B&&Ge(l[0],l[1],B)&&(x=1);++y<x;)for(var Q=l[y],t=he(Q),g=-1,e=t.length;++g<e;){var w=t[g],n=A[w];(void 0===n||Ue(n,je[w])&&!me.call(A,w))&&(A[w]=Q[w])}return A})),fe=M(Pe);function Ne(A,l,y){return l&&function(A,l){for(var y=0;y<l.length;y++){var x=l[y];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(A,x.key,x)}}(A.prototype,l),Object.defineProperty(A,"prototype",{writable:!1}),A}function be(A,l){return be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(A,l){return A.__proto__=l,A},be(A,l)}function Re(A){var l=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(A){return!1}}();return function(){var y,x=He(A);if(l){var B=He(this).constructor;y=Reflect.construct(x,arguments,B)}else y=x.apply(this,arguments);return function(A,l){if(l&&("object"==typeof l||"function"==typeof l))return l;if(void 0!==l)throw new TypeError("Derived constructors may only return object or undefined");return function(A){if(void 0===A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}(A)}(this,y)}}function He(A){return He=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(A){return A.__proto__||Object.getPrototypeOf(A)},He(A)}var pe=function(A){!function(A,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(l&&l.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),l&&be(A,l)}(x,l.Component);var y=Re(x);function x(A){var l;return function(A,l){if(!(A instanceof l))throw new TypeError("Cannot call a class as a function")}(this,x),(l=y.call(this,A)).map=void 0,l.index=void 0,l.portalRegister=function(){return++l.index},l.portalUpdate=function(A,y){l.map[A]=y,l.forceUpdate()},l.portalDeregister=function(A){delete l.map[A],l.forceUpdate()},l.map={},l.index=1,l}return Ne(x,[{key:"getChildren",value:function(){var A=this;return Sx(this.map).map((function(y){var x=A.map[y];return x?l.cloneElement(x,{key:y}):x}))}},{key:"render",value:function(){return l.createElement("svg",this.props,this.getChildren())}}]),x}();pe.displayName="Portal";var ze=l.createContext({});ze.displayName="PortalContext";var Je=le;var ke=function(A,l,y){"__proto__"==l&&Je?Je(A,l,{configurable:!0,enumerable:!0,value:y,writable:!0}):A[l]=y},ve=ke,Le=ll,Se=Object.prototype.hasOwnProperty;var Ke=function(A,l,y){var x=A[l];Se.call(A,l)&&Le(x,y)&&(void 0!==y||l in A)||ve(A,l,y)},We=Ke,Te=ql,Ve=gx,Oe=DA,Ze=$l;var Xe=function(A,l,y,x){if(!Oe(A))return A;for(var B=-1,Q=(l=Te(l,A)).length,t=Q-1,g=A;null!=g&&++B<Q;){var e=Ze(l[B]),w=y;if("__proto__"===e||"constructor"===e||"prototype"===e)return A;if(B!=t){var n=g[e];void 0===(w=x?x(n,e,g):void 0)&&(w=Oe(n)?n:Ve(l[B+1])?[]:{})}We(g,e,w),g=g[e]}return A},qe=yy,_e=Xe,$e=ql;var Aw=function(A,l,y){for(var x=-1,B=l.length,Q={};++x<B;){var t=l[x],g=qe(A,t);y(g,t)&&_e(Q,$e(t,A),g)}return Q},lw=Aw,yw=gQ;var xw=function(A,l){return lw(A,l,(function(l,y){return yw(A,y)}))},Bw=xx,Qw=_,tw=yA?yA.isConcatSpreadable:void 0;var gw=by,ew=function(A){return Qw(A)||Bw(A)||!!(tw&&A&&A[tw])};var ww=function A(l,y,x,B,Q){var t=-1,g=l.length;for(x||(x=ew),Q||(Q=[]);++t<g;){var e=l[t];y>0&&x(e)?y>1?A(e,y-1,x,B,Q):gw(Q,e):B||(Q[Q.length]=e)}return Q},nw=ww;var Ew=function(A){return(null==A?0:A.length)?nw(A,1):[]},ow=M(Ew),Cw=Ew,iw=_g,rw=te;var cw=function(A){return rw(iw(A,void 0,Cw),A+"")},aw=xw,Mw=cw((function(A,l){return null==A?{}:aw(A,l)})),Iw=M(Mw);function sw(A){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],y={};for(var x in A)l.indexOf(x)>=0||Object.prototype.hasOwnProperty.call(A,x)&&(y[x]=A[x]);return y}function Dw(A){var l=function(A){return void 0!==A},y=A._x,x=A._x1,B=A._x0,Q=A._voronoiX,t=A._y,g=A._y1,e=A._y0,w=A._voronoiY,n=l(x)?x:y,E=l(g)?g:t,o={x:l(Q)?Q:n,x0:l(B)?B:y,y:l(w)?w:E,y0:l(e)?e:t};return fe({},o,A)}function uw(A,l){var y=A.scale,x=A.polar,B=A.horizontal,Q=Dw(l),t=A.origin||{x:0,y:0},g=B?y.y(Q.y):y.x(Q.x),e=B?y.y(Q.y0):y.x(Q.x0),w=B?y.x(Q.x):y.y(Q.y),n=B?y.x(Q.x0):y.y(Q.y0);return{x:x?w*Math.cos(g)+t.x:g,x0:x?n*Math.cos(e)+t.x:e,y:x?-w*Math.sin(g)+t.y:w,y0:x?-n*Math.sin(e)+t.x:n}}function Fw(A){var l=A[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"padding"],y="number"==typeof l?l:0,x="object"==typeof l?l:{};return{top:x.top||y,bottom:x.bottom||y,left:x.left||y,right:x.right||y}}function dw(A){return"tooltip"===(A&&A.type&&A.type.role)}function Yw(A,l){var y=A.theme,x=void 0===y?{}:y,B=x[l]&&x[l].style||{};if(!dw(A.labelComponent))return B;var Q=fe({},x.tooltip&&x.tooltip.style||{},B.labels);return fe({},{labels:Q},B)}function Uw(A,l){var y="100%",x="100%";if(!A)return fe({parent:{height:x,width:y}},l);var B=A.data,Q=A.labels,t=l&&l.labels||{},g=l&&l.data||{};return{parent:fe({},A.parent,l&&l.parent||{},{width:y,height:x}),labels:fe({},Q,t),data:fe({},B,g)}}function Gw(A,l){return GA(A)?A(l):A}function hw(A,l){return l.disableInlineStyles?{}:A&&Sx(A).some((function(l){return GA(A[l])}))?Sx(A).reduce((function(y,x){return y[x]=Gw(A[x],l),y}),{}):A}function jw(A){return"number"==typeof A?A*(Math.PI/180):A}function mw(A){return"number"==typeof A?A/(Math.PI/180):A}function Pw(A){var l=Fw(A);return Math.min(A.width-l.left-l.right,A.height-l.top-l.bottom)/2}function fw(A){var l=A.width,y=A.height,x=Fw(A),B=x.top,Q=x.bottom,t=x.left,g=x.right,e=Math.min(l-t-g,y-B-Q)/2,w=l/2+t-g,n=y/2+B-Q;return{x:w+e>l?e+t-g:w,y:n+e>y?e+B-Q:n}}function Nw(A,l){return A.range&&A.range[l]?A.range[l]:A.range&&Array.isArray(A.range)?A.range:A.polar?function(A,l){return"x"===l?[jw(A.startAngle||0),jw(A.endAngle||360)]:[A.innerRadius||0,Pw(A)]}(A,l):function(A,l){var y="x"!==l,x=Fw(A);return y?[A.height-x.bottom,x.top]:[x.left,A.width-x.right]}(A,l)}function bw(A){return GA(A)?A:null==A?function(A){return A}:UQ(A)}function Rw(A,y,x){var B=sw(A.theme&&A.theme[x]?A.theme[x]:{},["style"]),Q=function(A){if(void 0!==A.horizontal||!A.children)return A.horizontal;var y=function(A){return A.reduce((function(A,x){var B=x.props||{};return A||B.horizontal||!B.children?A||B.horizontal:y(l.Children.toArray(B.children))}),!1)};return y(l.Children.toArray(A.children))}(A);return fe(void 0===Q?{}:{horizontal:Q},A,B,y)}function Hw(A,l){return l?"x"===A?"y":"x":A}function pw(A,l,y){var x=l?A:0,B=l||A;B||(B=0);var Q=B-x,t=Math.abs(Q),g=Q/t||1,e=y||1,w=Math.max(Math.ceil(t/e),0);return Array.from(Array(w),(function(A,l){return x+l*g*e}))}function zw(A,x){var B=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Q=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],t=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(A,l){return A.concat(l)},g=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","