=0?1:-1,l=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var c=[0,0,0,0],d=0,p=4;do?o:a[d];f="M".concat(t,",").concat(r+s*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(u,",").concat(t+l*c[0],",").concat(r)),f+="L ".concat(t+n-l*c[1],",").concat(r),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(u,`,
+ `).concat(t+n,",").concat(r+s*c[1])),f+="L ".concat(t+n,",").concat(r+i-s*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(u,`,
+ `).concat(t+n-l*c[2],",").concat(r+i)),f+="L ".concat(t+l*c[3],",").concat(r+i),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(u,`,
+ `).concat(t,",").concat(r+i-s*c[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var m=Math.min(o,a);f="M ".concat(t,",").concat(r+s*m,`
+ A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+l*m,",").concat(r,`
+ L `).concat(t+n-l*m,",").concat(r,`
+ A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*m,`
+ L `).concat(t+n,",").concat(r+i-s*m,`
+ A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+n-l*m,",").concat(r+i,`
+ L `).concat(t+l*m,",").concat(r+i,`
+ A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*m," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},PZ=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(a,a+s),f=Math.max(a,a+s),c=Math.min(o,o+l),d=Math.max(o,o+l);return n>=u&&n<=f&&i>=c&&i<=d}return!1},OZ={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Kx=function(t){var r=U4(U4({},OZ),t),n=we.useRef(),i=we.useState(-1),a=gZ(i,2),o=a[0],s=a[1];we.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var _=n.current.getTotalLength();_&&s(_)}catch{}},[]);var l=r.x,u=r.y,f=r.width,c=r.height,d=r.radius,p=r.className,m=r.animationEasing,b=r.animationDuration,x=r.animationBegin,v=r.isAnimationActive,g=r.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||c!==+c||f===0||c===0)return null;var w=rt("recharts-rectangle",p);return g?re.createElement($i,{canBegin:o>0,from:{width:f,height:c,x:l,y:u},to:{width:f,height:c,x:l,y:u},duration:b,animationEasing:m,isActive:g},function(_){var A=_.width,O=_.height,N=_.x,k=_.y;return re.createElement($i,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:b,isActive:v,easing:m},re.createElement("path",$m({},Ve(r,!0),{className:w,d:q4(N,k,A,O,d),ref:n})))}):re.createElement("path",$m({},Ve(r,!0),{className:w,d:q4(l,u,f,c,d)}))},NZ=["points","className","baseLinePoints","connectNulls"];function $u(){return $u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kZ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function W4(e){return TZ(e)||LZ(e)||EZ(e)||CZ()}function CZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EZ(e,t){if(e){if(typeof e=="string")return hb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hb(e,t)}}function LZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function TZ(e){if(Array.isArray(e))return hb(e)}function hb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){H4(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),H4(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},md=function(t,r){var n=MZ(t);r&&(n=[n.reduce(function(a,o){return[].concat(W4(a),W4(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,s,l){return"".concat(o).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},IZ=function(t,r,n){var i=md(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(md(r.reverse(),n).slice(1))},Ok=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=jZ(t,NZ);if(!r||!r.length)return null;var s=rt("recharts-polygon",n);if(i&&i.length){var l=o.stroke&&o.stroke!=="none",u=IZ(r,i,a);return re.createElement("g",{className:s},re.createElement("path",$u({},Ve(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),l?re.createElement("path",$u({},Ve(o,!0),{fill:"none",d:md(r,a)})):null,l?re.createElement("path",$u({},Ve(o,!0),{fill:"none",d:md(i,a)})):null)}var f=md(r,a);return re.createElement("path",$u({},Ve(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:s,d:f}))};function pb(){return pb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function UZ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var qZ=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},WZ=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,f=t.width,c=f===void 0?0:f,d=t.height,p=d===void 0?0:d,m=t.className,b=zZ(t,$Z),x=DZ({x:n,y:a,top:s,left:u,width:c,height:p},b);return!Ee(n)||!Ee(a)||!Ee(c)||!Ee(p)||!Ee(s)||!Ee(u)?null:re.createElement("path",vb({},Ve(x,!0),{className:rt("recharts-cross",m),d:qZ(n,a,c,p,s,u)}))},HZ=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function vh(e){"@babel/helpers - typeof";return vh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vh(e)}function VZ(e,t){if(e==null)return{};var r=GZ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function GZ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Po(){return Po=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mee(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function gee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X4(e,t){for(var r=0;rZ4?o=i==="outer"?"start":"end":a<-Z4?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,s=n.axisLine,l=n.axisLineType,u=Vs(Vs({},Ve(this.props,!1)),{},{fill:"none"},Ve(s,!1));if(l==="circle")return re.createElement(Gc,Zs({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:a,r:o}));var f=this.props.ticks,c=f.map(function(d){return Nt(i,a,o,d.coordinate)});return re.createElement(Ok,Zs({className:"recharts-polar-angle-axis-line"},u,{points:c}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.tickLine,l=i.tickFormatter,u=i.stroke,f=Ve(this.props,!1),c=Ve(o,!1),d=Vs(Vs({},f),{},{fill:"none"},Ve(s,!1)),p=a.map(function(m,b){var x=n.getTickLineCoord(m),v=n.getTickTextAnchor(m),g=Vs(Vs(Vs({textAnchor:v},f),{},{stroke:"none",fill:u},c),{},{index:b,payload:m,x:x.x2,y:x.y2});return re.createElement(pt,Zs({className:rt("recharts-polar-angle-axis-tick",fk(o)),key:"tick-".concat(m.coordinate)},Pl(n.props,m,b)),s&&re.createElement("line",Zs({className:"recharts-polar-angle-axis-tick-line"},d,x)),o&&t.renderTickItem(o,g,l?l(m.value,b):m.value))});return re.createElement(pt,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:re.createElement(pt,{className:rt("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return re.isValidElement(n)?o=re.cloneElement(n,i):Xe(n)?o=n(i):o=re.createElement(Ol,Zs({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(we.PureComponent);ay(Yc,"displayName","PolarAngleAxis");ay(Yc,"axisType","angleAxis");ay(Yc,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Lee=LN,Tee=Lee(Object.getPrototypeOf,Object),Mee=Tee,Iee=No,$ee=Mee,Dee=jo,Ree="[object Object]",Fee=Function.prototype,Bee=Object.prototype,Lk=Fee.toString,zee=Bee.hasOwnProperty,Uee=Lk.call(Object);function qee(e){if(!Dee(e)||Iee(e)!=Ree)return!1;var t=$ee(e);if(t===null)return!0;var r=zee.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Lk.call(r)==Uee}var Wee=qee;const Hee=jt(Wee);var Vee=No,Gee=jo,Kee="[object Boolean]";function Yee(e){return e===!0||e===!1||Gee(e)&&Vee(e)==Kee}var Xee=Yee;const Jee=jt(Xee);function gh(e){"@babel/helpers - typeof";return gh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gh(e)}function Fm(){return Fm=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:u},to:{upperWidth:f,lowerWidth:c,height:d,x:l,y:u},duration:b,animationEasing:m,isActive:v},function(w){var _=w.upperWidth,A=w.lowerWidth,O=w.height,N=w.x,k=w.y;return re.createElement($i,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:b,easing:m},re.createElement("path",Fm({},Ve(r,!0),{className:g,d:n_(N,k,_,A,O),ref:n})))}):re.createElement("g",null,re.createElement("path",Fm({},Ve(r,!0),{className:g,d:n_(l,u,f,c,d)})))},lte=["option","shapeType","propTransformer","activeClassName","isActive"];function yh(e){"@babel/helpers - typeof";return yh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yh(e)}function ute(e,t){if(e==null)return{};var r=cte(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cte(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function i_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bm(e){for(var t=1;t0?ci(w,"paddingAngle",0):0;if(A){var N=sr(A.endAngle-A.startAngle,w.endAngle-w.startAngle),k=Vt(Vt({},w),{},{startAngle:g+O,endAngle:g+N(b)+O});x.push(k),g=k.endAngle}else{var M=w.endAngle,D=w.startAngle,C=sr(0,M-D),j=C(b),B=Vt(Vt({},w),{},{startAngle:g+O,endAngle:g+j+O});x.push(B),g=B.endAngle}}),re.createElement(pt,null,n.renderSectorsStatically(x))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!ws(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,s=i.className,l=i.label,u=i.cx,f=i.cy,c=i.innerRadius,d=i.outerRadius,p=i.isAnimationActive,m=this.state.isAnimationFinished;if(a||!o||!o.length||!Ee(u)||!Ee(f)||!Ee(c)||!Ee(d))return null;var b=rt("recharts-pie",s);return re.createElement(pt,{tabIndex:this.props.rootTabIndex,className:b,ref:function(v){n.pieRef=v}},this.renderSectors(),l&&this.renderLabels(o),Kr.renderCallByParent(this.props,null,!1),(!p||m)&&da.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n=360?g:g-1)*l,_=x-g*p-w,A=i.reduce(function(k,M){var D=lr(M,v,0);return k+(Ee(D)?D:0)},0),O;if(A>0){var N;O=i.map(function(k,M){var D=lr(k,v,0),C=lr(k,f,M),j=(Ee(D)?D:0)/A,B;M?B=N.endAngle+Nn(b)*l*(D!==0?1:0):B=o;var I=B+Nn(b)*((D!==0?p:0)+j*_),X=(B+I)/2,U=(m.innerRadius+m.outerRadius)/2,q=[{name:C,value:D,payload:k,dataKey:v,type:d}],z=Nt(m.cx,m.cy,U,X);return N=Vt(Vt(Vt({percent:j,cornerRadius:a,name:C,tooltipPayload:q,midAngle:X,middleRadius:U,tooltipPosition:z},k),m),{},{value:lr(k,v),startAngle:B,endAngle:I,payload:k,paddingAngle:Nn(b)*l}),N})}return Vt(Vt({},m),{},{sectors:O,data:i})});function Ete(e){return e&&e.length?e[0]:void 0}var Lte=Ete,Tte=Lte;const Mte=jt(Tte);var Ite=["key"];function yc(e){"@babel/helpers - typeof";return yc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yc(e)}function $te(e,t){if(e==null)return{};var r=Dte(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Dte(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Um(){return Um=Object.assign?Object.assign.bind():function(e){for(var t=1;t=2&&(l=!0),u.push(Pn(Pn({},Nt(o,s,g,x)),{},{name:m,value:b,cx:o,cy:s,radius:g,angle:x,payload:d}))});var c=[];return l&&u.forEach(function(d){if(Array.isArray(d.value)){var p=Mte(d.value),m=nt(p)?void 0:t.scale(p);c.push(Pn(Pn({},d),{},{radius:m},Nt(o,s,m,d.angle)))}else c.push(d)}),{points:u,isRange:l,baseLinePoints:c}});var Hte=Math.ceil,Vte=Math.max;function Gte(e,t,r,n){for(var i=-1,a=Vte(Hte((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var Kte=Gte,Yte=JN,c_=1/0,Xte=17976931348623157e292;function Jte(e){if(!e)return e===0?e:0;if(e=Yte(e),e===c_||e===-c_){var t=e<0?-1:1;return t*Xte}return e===e?e:0}var Rk=Jte,Qte=Kte,Zte=Gg,n1=Rk;function ere(e){return function(t,r,n){return n&&typeof n!="number"&&Zte(t,r,n)&&(r=n=void 0),t=n1(t),r===void 0?(r=t,t=0):r=n1(r),n=n===void 0?t0&&n.handleDrag(i.changedTouches[0])}),ni(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),ni(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),ni(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),ni(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),ni(n,"handleSlideDragStart",function(i){var a=v_(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return pre(t,e),cre(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,f=u.length-1,c=Math.min(i,a),d=Math.max(i,a),p=t.getIndexInRange(o,c),m=t.getIndexInRange(o,d);return{startIndex:p-p%l,endIndex:m===f?f:m-m%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=lr(a[n],s,n);return Xe(o)?o(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,l=this.props,u=l.x,f=l.width,c=l.travellerWidth,d=l.startIndex,p=l.endIndex,m=l.onChange,b=n.pageX-a;b>0?b=Math.min(b,u+f-c-s,u+f-c-o):b<0&&(b=Math.max(b,u-o,u-s));var x=this.getIndex({startX:o+b,endX:s+b});(x.startIndex!==d||x.endIndex!==p)&&m&&m(x),this.setState({startX:o+b,endX:s+b,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=v_(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[o],f=this.props,c=f.x,d=f.width,p=f.travellerWidth,m=f.onChange,b=f.gap,x=f.data,v={startX:this.state.startX,endX:this.state.endX},g=n.pageX-a;g>0?g=Math.min(g,c+d-p-u):g<0&&(g=Math.max(g,c-u)),v[o]=u+g;var w=this.getIndex(v),_=w.startIndex,A=w.endIndex,O=function(){var k=x.length-1;return o==="startX"&&(s>l?_%b===0:A%b===0)||sl?A%b===0:_%b===0)||s>l&&A===k};this.setState(ni(ni({},o,u+g),"brushMoveStartX",n.pageX),function(){m&&O()&&m(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,u=o.endX,f=this.state[i],c=s.indexOf(f);if(c!==-1){var d=c+n;if(!(d===-1||d>=s.length)){var p=s[d];i==="startX"&&p>=u||i==="endX"&&p<=l||this.setState(ni({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.fill,u=n.stroke;return re.createElement("rect",{stroke:u,fill:l,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.data,u=n.children,f=n.padding,c=we.Children.only(u);return c?re.cloneElement(c,{x:i,y:a,width:o,height:s,margin:f,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,l=this.props,u=l.y,f=l.travellerWidth,c=l.height,d=l.traveller,p=l.ariaLabel,m=l.data,b=l.startIndex,x=l.endIndex,v=Math.max(n,this.props.x),g=i1(i1({},Ve(this.props,!1)),{},{x:v,y:u,width:f,height:c}),w=p||"Min value: ".concat((a=m[b])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=m[x])===null||o===void 0?void 0:o.name);return re.createElement(pt,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),s.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,g))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,u=a.travellerWidth,f=Math.min(n,i)+u,c=Math.max(Math.abs(i-n)-u,0);return re.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:f,y:o,width:c,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,l=n.travellerWidth,u=n.stroke,f=this.state,c=f.startX,d=f.endX,p=5,m={pointerEvents:"none",fill:u};return re.createElement(pt,{className:"recharts-brush-texts"},re.createElement(Ol,Hm({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,d)-p,y:o+s/2},m),this.getTextOfTick(i)),re.createElement(Ol,Hm({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,d)+l+p,y:o+s/2},m),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,l=n.y,u=n.width,f=n.height,c=n.alwaysShowText,d=this.state,p=d.startX,m=d.endX,b=d.isTextActive,x=d.isSlideMoving,v=d.isTravellerMoving,g=d.isTravellerFocused;if(!i||!i.length||!Ee(s)||!Ee(l)||!Ee(u)||!Ee(f)||u<=0||f<=0)return null;var w=rt("recharts-brush",a),_=re.Children.count(o)===1,A=lre("userSelect","none");return re.createElement(pt,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:A},this.renderBackground(),_&&this.renderPanorama(),this.renderSlide(p,m),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(m,"endX"),(b||x||v||g||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,l=n.stroke,u=Math.floor(a+s/2)-1;return re.createElement(re.Fragment,null,re.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),re.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),re.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return re.isValidElement(n)?a=re.cloneElement(n,i):Xe(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,f=n.startIndex,c=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return i1({prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?mre({data:a,width:o,x:s,travellerWidth:l,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+o-l]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var l=Math.floor((o+s)/2);n[l]>i?s=l:o=l}return i>=n[s]?s:o}}])}(we.PureComponent);ni(xc,"displayName","Brush");ni(xc,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var gre=xx;function yre(e,t){var r;return gre(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var bre=yre,xre=_N,wre=qa,Sre=bre,Are=Yn,_re=Gg;function Pre(e,t,r){var n=Are(e)?xre:Sre;return r&&_re(e,t,r)&&(t=void 0),n(e,wre(t))}var Ore=Pre;const Nre=jt(Ore);var Fa=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},m_=VN;function jre(e,t,r){t=="__proto__"&&m_?m_(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var kre=jre,Cre=kre,Ere=WN,Lre=qa;function Tre(e,t){var r={};return t=Lre(t),Ere(e,function(n,i,a){Cre(r,i,t(n,i,a))}),r}var Mre=Tre;const Ire=jt(Mre);function $re(e,t){for(var r=-1,n=e==null?0:e.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Zre(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ene(e,t){var r=e.x,n=e.y,i=Qre(e,Kre),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),u="".concat(t.height||i.height),f=parseInt(u,10),c="".concat(t.width||i.width),d=parseInt(c,10);return Gf(Gf(Gf(Gf(Gf({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function y_(e){return re.createElement(Tk,wb({shapeType:"rectangle",propTransformer:ene,activeClassName:"recharts-active-bar"},e))}var tne=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=Ee(n)||t$(n);return a?t(n,i):(a||jl(),r)}},rne=["value","background"],qk;function wc(e){"@babel/helpers - typeof";return wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wc(e)}function nne(e,t){if(e==null)return{};var r=ine(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ine(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Gm(){return Gm=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(X)0&&Math.abs(I)0&&(B=Math.min((J||0)-(I[Z-1]||0),B))}),Number.isFinite(B)){var X=B/j,U=b.layout==="vertical"?n.height:n.width;if(b.padding==="gap"&&(N=X*U/2),b.padding==="no-gap"){var q=jn(t.barCategoryGap,X*U),z=X*U/2;N=z-q-(z-q)/U*q}}}i==="xAxis"?k=[n.left+(w.left||0)+(N||0),n.left+n.width-(w.right||0)-(N||0)]:i==="yAxis"?k=l==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(N||0),n.top+n.height-(w.bottom||0)-(N||0)]:k=b.range,A&&(k=[k[1],k[0]]);var $=nk(b,a,d),G=$.scale,ie=$.realScaleType;G.domain(v).range(k),ik(G);var T=ak(G,na(na({},b),{},{realScaleType:ie}));i==="xAxis"?(C=x==="top"&&!_||x==="bottom"&&_,M=n.left,D=c[O]-C*b.height):i==="yAxis"&&(C=x==="left"&&!_||x==="right"&&_,M=c[O]-C*b.width,D=n.top);var H=na(na(na({},b),T),{},{realScaleType:ie,x:M,y:D,scale:G,width:i==="xAxis"?n.width:b.width,height:i==="yAxis"?n.height:b.height});return H.bandSize=km(H,T),!b.hide&&i==="xAxis"?c[O]+=(C?-1:1)*H.height:b.hide||(c[O]+=(C?-1:1)*H.width),na(na({},p),{},ly({},m,H))},{})},Gk=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},vne=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return Gk({x:r,y:n},{x:i,y:a})},Kk=function(){function e(t){dne(this,e),this.scale=t}return hne(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();ly(Kk,"EPS",1e-4);var Xx=function(t){var r=Object.keys(t).reduce(function(n,i){return na(na({},n),{},ly({},i,Kk.create(t[i])))},{});return na(na({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return Ire(i,function(l,u){return r[u].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return Uk(i,function(a,o){return r[o].isInRange(a)})}})};function mne(e){return(e%180+180)%180}var gne=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=mne(i),o=a*Math.PI/180,s=Math.atan(n/r),l=o>s&&o-1?i[a?t[o]:o]:void 0}}var Sne=wne,Ane=Rk;function _ne(e){var t=Ane(e),r=t%1;return t===t?r?t-r:t:0}var Pne=_ne,One=RN,Nne=qa,jne=Pne,kne=Math.max;function Cne(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:jne(r);return i<0&&(i=kne(n+i,0)),One(e,Nne(t),i)}var Ene=Cne,Lne=Sne,Tne=Ene,Mne=Lne(Tne),Ine=Mne;const $ne=jt(Ine);var Dne=sI(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),Jx=we.createContext(void 0),Qx=we.createContext(void 0),Yk=we.createContext(void 0),Xk=we.createContext({}),Jk=we.createContext(void 0),Qk=we.createContext(0),Zk=we.createContext(0),A_=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,l=t.width,u=t.height,f=Dne(a);return re.createElement(Jx.Provider,{value:n},re.createElement(Qx.Provider,{value:i},re.createElement(Xk.Provider,{value:a},re.createElement(Yk.Provider,{value:f},re.createElement(Jk.Provider,{value:o},re.createElement(Qk.Provider,{value:u},re.createElement(Zk.Provider,{value:l},s)))))))},Rne=function(){return we.useContext(Jk)},eC=function(t){var r=we.useContext(Jx);r==null&&jl();var n=r[t];return n==null&&jl(),n},Fne=function(){var t=we.useContext(Jx);return rs(t)},Bne=function(){var t=we.useContext(Qx),r=$ne(t,function(n){return Uk(n.domain,Number.isFinite)});return r||rs(t)},tC=function(t){var r=we.useContext(Qx);r==null&&jl();var n=r[t];return n==null&&jl(),n},zne=function(){var t=we.useContext(Yk);return t},Une=function(){return we.useContext(Xk)},Zx=function(){return we.useContext(Zk)},ew=function(){return we.useContext(Qk)};function Sc(e){"@babel/helpers - typeof";return Sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sc(e)}function qne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wne(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);re*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function Pie(e,t){return lC(e,t+1)}function Oie(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,l=0,u=1,f=o,c=function(){var m=n==null?void 0:n[l];if(m===void 0)return{v:lC(n,u)};var b=l,x,v=function(){return x===void 0&&(x=r(m,b)),x},g=m.coordinate,w=l===0||Qm(e,g,v,f,s);w||(l=0,f=o,u+=1),w&&(f=g+e*(v()/2+i),l+=u)},d;u<=a.length;)if(d=c(),d)return d.v;return[]}function Ah(e){"@babel/helpers - typeof";return Ah=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ah(e)}function E_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pn(e){for(var t=1;t0?p.coordinate-x*e:p.coordinate})}else a[d]=p=pn(pn({},p),{},{tickCoord:p.coordinate});var v=Qm(e,p.tickCoord,b,s,l);v&&(l=p.tickCoord-e*(b()/2+i),a[d]=pn(pn({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)u(f);return a}function Eie(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=t.start,u=t.end;if(a){var f=n[s-1],c=r(f,s-1),d=e*(f.coordinate+e*c/2-u);o[s-1]=f=pn(pn({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var p=Qm(e,f.tickCoord,function(){return c},l,u);p&&(u=f.tickCoord-e*(c/2+i),o[s-1]=pn(pn({},f),{},{isShow:!0}))}for(var m=a?s-1:s,b=function(g){var w=o[g],_,A=function(){return _===void 0&&(_=r(w,g)),_};if(g===0){var O=e*(w.coordinate-e*A()/2-l);o[g]=w=pn(pn({},w),{},{tickCoord:O<0?w.coordinate-O*e:w.coordinate})}else o[g]=w=pn(pn({},w),{},{tickCoord:w.coordinate});var N=Qm(e,w.tickCoord,A,l,u);N&&(l=w.tickCoord+e*(A()/2+i),o[g]=pn(pn({},w),{},{isShow:!0}))},x=0;x=2?Nn(i[1].coordinate-i[0].coordinate):1,v=_ie(a,x,p);return l==="equidistantPreserveStart"?Oie(x,v,b,i,o):(l==="preserveStart"||l==="preserveStartEnd"?d=Eie(x,v,b,i,o,l==="preserveStartEnd"):d=Cie(x,v,b,i,o),d.filter(function(g){return g.isShow}))}var Lie=["viewBox"],Tie=["viewBox"],Mie=["ticks"];function Pc(e){"@babel/helpers - typeof";return Pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pc(e)}function Ru(){return Ru=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Iie(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function $ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T_(e,t){for(var r=0;r0?l(this.props):l(p)),o<=0||s<=0||!m||!m.length?null:re.createElement(pt,{className:rt("recharts-cartesian-axis",u),ref:function(x){n.layerReference=x}},a&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),Kr.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=rt(i.className,"recharts-cartesian-axis-tick-value");return re.isValidElement(n)?o=re.cloneElement(n,Ir(Ir({},i),{},{className:s})):Xe(n)?o=n(Ir(Ir({},i),{},{className:s})):o=re.createElement(Ol,Ru({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(we.Component);iw(Xc,"displayName","CartesianAxis");iw(Xc,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var qie=["x1","y1","x2","y2","key"],Wie=["offset"];function kl(e){"@babel/helpers - typeof";return kl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kl(e)}function M_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gn(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Kie(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Yie=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,l=t.ry;return re.createElement("rect",{x:i,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function fC(e,t){var r;if(re.isValidElement(e))r=re.cloneElement(e,t);else if(Xe(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,l=I_(t,qie),u=Ve(l,!1);u.offset;var f=I_(u,Wie);r=re.createElement("line",sl({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function Xie(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=gn(gn({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return fC(i,u)});return re.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function Jie(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=gn(gn({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return fC(i,u)});return re.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function Qie(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var f=s.map(function(d){return Math.round(d+i-i)}).sort(function(d,p){return d-p});i!==f[0]&&f.unshift(0);var c=f.map(function(d,p){var m=!f[p+1],b=m?i+o-d:f[p+1]-d;if(b<=0)return null;var x=p%t.length;return re.createElement("rect",{key:"react-".concat(p),y:d,x:n,height:b,width:a,stroke:"none",fill:t[x],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return re.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function Zie(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var f=u.map(function(d){return Math.round(d+a-a)}).sort(function(d,p){return d-p});a!==f[0]&&f.unshift(0);var c=f.map(function(d,p){var m=!f[p+1],b=m?a+s-d:f[p+1]-d;if(b<=0)return null;var x=p%n.length;return re.createElement("rect",{key:"react-".concat(p),x:d,y:o,width:b,height:l,stroke:"none",fill:n[x],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return re.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var eae=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return rk(nw(gn(gn(gn({},Xc.defaultProps),n),{},{ticks:po(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},tae=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return rk(nw(gn(gn(gn({},Xc.defaultProps),n),{},{ticks:po(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},gu={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function sa(e){var t,r,n,i,a,o,s=Zx(),l=ew(),u=Une(),f=gn(gn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:gu.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:gu.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:gu.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:gu.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:gu.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:gu.verticalFill,x:Ee(e.x)?e.x:u.left,y:Ee(e.y)?e.y:u.top,width:Ee(e.width)?e.width:u.width,height:Ee(e.height)?e.height:u.height}),c=f.x,d=f.y,p=f.width,m=f.height,b=f.syncWithTicks,x=f.horizontalValues,v=f.verticalValues,g=Fne(),w=Bne();if(!Ee(p)||p<=0||!Ee(m)||m<=0||!Ee(c)||c!==+c||!Ee(d)||d!==+d)return null;var _=f.verticalCoordinatesGenerator||eae,A=f.horizontalCoordinatesGenerator||tae,O=f.horizontalPoints,N=f.verticalPoints;if((!O||!O.length)&&Xe(A)){var k=x&&x.length,M=A({yAxis:w?gn(gn({},w),{},{ticks:k?x:w.ticks}):void 0,width:s,height:l,offset:u},k?!0:b);fa(Array.isArray(M),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(kl(M),"]")),Array.isArray(M)&&(O=M)}if((!N||!N.length)&&Xe(_)){var D=v&&v.length,C=_({xAxis:g?gn(gn({},g),{},{ticks:D?v:g.ticks}):void 0,width:s,height:l,offset:u},D?!0:b);fa(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(kl(C),"]")),Array.isArray(C)&&(N=C)}return re.createElement("g",{className:"recharts-cartesian-grid"},re.createElement(Yie,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),re.createElement(Xie,sl({},f,{offset:u,horizontalPoints:O,xAxis:g,yAxis:w})),re.createElement(Jie,sl({},f,{offset:u,verticalPoints:N,xAxis:g,yAxis:w})),re.createElement(Qie,sl({},f,{horizontalPoints:O})),re.createElement(Zie,sl({},f,{verticalPoints:N})))}sa.displayName="CartesianGrid";var rae=["type","layout","connectNulls","ref"],nae=["key"];function Oc(e){"@babel/helpers - typeof";return Oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oc(e)}function $_(e,t){if(e==null)return{};var r=iae(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function iae(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function yd(){return yd=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);rc){p=[].concat(yu(l.slice(0,m)),[c-b]);break}var x=p.length%2===0?[0,d]:[d];return[].concat(yu(t.repeat(l,f)),yu(p),x).map(function(v){return"".concat(v,"px")}).join(", ")}),ia(r,"id",Ml("recharts-line-")),ia(r,"pathRef",function(o){r.mainCurve=o}),ia(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),ia(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return pae(t,e),cae(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,l=a.yAxis,u=a.layout,f=a.children,c=fi(f,zh);if(!c)return null;var d=function(b,x){return{x:b.x,y:b.y,value:b.value,errorVal:lr(b.payload,x)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return re.createElement(pt,p,c.map(function(m){return re.cloneElement(m,{key:"bar-".concat(m.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,u=s.points,f=s.dataKey,c=Ve(this.props,!1),d=Ve(l,!0),p=u.map(function(b,x){var v=ri(ri(ri({key:"dot-".concat(x),r:3},c),d),{},{index:x,cx:b.x,cy:b.y,value:b.value,dataKey:f,payload:b.payload,points:u});return t.renderDotItem(l,v)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return re.createElement(pt,yd({className:"recharts-line-dots",key:"dots"},m),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,l=s.type,u=s.layout,f=s.connectNulls;s.ref;var c=$_(s,rae),d=ri(ri(ri({},Ve(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:l,layout:u,connectNulls:f});return re.createElement(pl,yd({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.strokeDasharray,u=o.isAnimationActive,f=o.animationBegin,c=o.animationDuration,d=o.animationEasing,p=o.animationId,m=o.animateNewValues,b=o.width,x=o.height,v=this.state,g=v.prevPoints,w=v.totalLength;return re.createElement($i,{begin:f,duration:c,isActive:u,easing:d,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(_){var A=_.t;if(g){var O=g.length/s.length,N=s.map(function(j,B){var I=Math.floor(B*O);if(g[I]){var X=g[I],U=sr(X.x,j.x),q=sr(X.y,j.y);return ri(ri({},j),{},{x:U(A),y:q(A)})}if(m){var z=sr(b*2,j.x),$=sr(x/2,j.y);return ri(ri({},j),{},{x:z(A),y:$(A)})}return ri(ri({},j),{},{x:j.x,y:j.y})});return a.renderCurveStatically(N,n,i)}var k=sr(0,w),M=k(A),D;if(l){var C="".concat(l).split(/[,\s]+/gim).map(function(j){return parseFloat(j)});D=a.getStrokeDasharray(M,w,C)}else D=a.generateSimpleStrokeDasharray(w,M);return a.renderCurveStatically(s,n,i,{strokeDasharray:D})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,l=this.state,u=l.prevPoints,f=l.totalLength;return s&&o&&o.length&&(!u&&f>0||!ws(u,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.xAxis,f=i.yAxis,c=i.top,d=i.left,p=i.width,m=i.height,b=i.isAnimationActive,x=i.id;if(a||!s||!s.length)return null;var v=this.state.isAnimationFinished,g=s.length===1,w=rt("recharts-line",l),_=u&&u.allowDataOverflow,A=f&&f.allowDataOverflow,O=_||A,N=nt(x)?this.id:x,k=(n=Ve(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},M=k.r,D=M===void 0?3:M,C=k.strokeWidth,j=C===void 0?2:C,B=Y6(o)?o:{},I=B.clipDot,X=I===void 0?!0:I,U=D*2+j;return re.createElement(pt,{className:w},_||A?re.createElement("defs",null,re.createElement("clipPath",{id:"clipPath-".concat(N)},re.createElement("rect",{x:_?d:d-p/2,y:A?c:c-m/2,width:_?p:p*2,height:A?m:m*2})),!X&&re.createElement("clipPath",{id:"clipPath-dots-".concat(N)},re.createElement("rect",{x:d-U/2,y:c-U/2,width:p+U,height:m+U}))):null,!g&&this.renderCurve(O,N),this.renderErrorBar(O,N),(g||o)&&this.renderDots(O,X,N),(!b||v)&&da.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(yu(n),[0]):n,o=[],s=0;s=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yae(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ll(){return ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t0||!ws(f,o)||!ws(c,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.top,f=i.left,c=i.xAxis,d=i.yAxis,p=i.width,m=i.height,b=i.isAnimationActive,x=i.id;if(a||!s||!s.length)return null;var v=this.state.isAnimationFinished,g=s.length===1,w=rt("recharts-area",l),_=c&&c.allowDataOverflow,A=d&&d.allowDataOverflow,O=_||A,N=nt(x)?this.id:x,k=(n=Ve(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},M=k.r,D=M===void 0?3:M,C=k.strokeWidth,j=C===void 0?2:C,B=Y6(o)?o:{},I=B.clipDot,X=I===void 0?!0:I,U=D*2+j;return re.createElement(pt,{className:w},_||A?re.createElement("defs",null,re.createElement("clipPath",{id:"clipPath-".concat(N)},re.createElement("rect",{x:_?f:f-p/2,y:A?u:u-m/2,width:_?p:p*2,height:A?m:m*2})),!X&&re.createElement("clipPath",{id:"clipPath-dots-".concat(N)},re.createElement("rect",{x:f-U/2,y:u-U/2,width:p+U,height:m+U}))):null,g?null:this.renderArea(O,N),(o||g)&&this.renderDots(O,X,N),(!b||v)&&da.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])}(we.PureComponent);pC=Ei;Ta(Ei,"displayName","Area");Ta(Ei,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ko.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Ta(Ei,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(Ee(s)&&typeof s=="number")return s;var l=i==="horizontal"?n:r,u=l.scale.domain();if(l.type==="number"){var f=Math.max(u[0],u[1]),c=Math.min(u[0],u[1]);return s==="dataMin"?c:s==="dataMax"||f<0?f:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});Ta(Ei,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,f=e.dataStartIndex,c=e.displayedData,d=e.offset,p=t.layout,m=u&&u.length,b=pC.getBaseValue(t,r,n,i),x=p==="horizontal",v=!1,g=c.map(function(_,A){var O;m?O=u[f+A]:(O=lr(_,l),Array.isArray(O)?v=!0:O=[b,O]);var N=O[1]==null||m&&lr(_,l)==null;return x?{x:jm({axis:n,ticks:a,bandSize:s,entry:_,index:A}),y:N?null:i.scale(O[1]),value:O,payload:_}:{x:N?null:n.scale(O[1]),y:jm({axis:i,ticks:o,bandSize:s,entry:_,index:A}),value:O,payload:_}}),w;return m||v?w=g.map(function(_){var A=Array.isArray(_.value)?_.value[0]:null;return x?{x:_.x,y:A!=null&&_.y!=null?i.scale(A):null}:{x:A!=null?n.scale(A):null,y:_.y}}):w=x?i.scale(b):n.scale(b),Xo({points:g,baseLine:w,layout:p,isRange:v},d)});Ta(Ei,"renderDotItem",function(e,t){var r;if(re.isValidElement(e))r=re.cloneElement(e,t);else if(Xe(e))r=e(t);else{var n=rt("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=vC(t,gae);r=re.createElement(Gc,ll({},a,{key:i,className:n}))}return r});function jc(e){"@babel/helpers - typeof";return jc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jc(e)}function Oae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nae(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hoe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function poe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function voe(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?o:t&&t.length&&Ee(i)&&Ee(a)?t.slice(i,a+1):[]};function EC(e){return e==="number"?[0,"auto"]:void 0}var zb=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=hy(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,u){var f,c=(f=u.props.data)!==null&&f!==void 0?f:r;c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=c===void 0?s:c;d=Zv(p,o.dataKey,i)}else d=c&&c[n]||s[n];return d?[].concat(Ec(l),[sk(u,d)]):l},[])},V_=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=Noe(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,f=hX(o,s,u,l);if(f>=0&&u){var c=u[f]&&u[f].value,d=zb(t,r,f,c),p=joe(n,s,f,a);return{activeTooltipIndex:f,activeLabel:c,activePayload:d,activeCoordinate:p}}return null},koe=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.layout,c=t.children,d=t.stackOffset,p=tk(f,a);return n.reduce(function(m,b){var x,v=b.type.defaultProps!==void 0?Ae(Ae({},b.type.defaultProps),b.props):b.props,g=v.type,w=v.dataKey,_=v.allowDataOverflow,A=v.allowDuplicatedCategory,O=v.scale,N=v.ticks,k=v.includeHidden,M=v[o];if(m[M])return m;var D=hy(t.data,{graphicalItems:i.filter(function(T){var H,J=o in T.props?T.props[o]:(H=T.type.defaultProps)===null||H===void 0?void 0:H[o];return J===M}),dataStartIndex:l,dataEndIndex:u}),C=D.length,j,B,I;toe(v.domain,_,g)&&(j=Z2(v.domain,null,_),p&&(g==="number"||O!=="auto")&&(I=pd(D,w,"category")));var X=EC(g);if(!j||j.length===0){var U,q=(U=v.domain)!==null&&U!==void 0?U:X;if(w){if(j=pd(D,w,g),g==="category"&&p){var z=n$(j);A&&z?(B=j,j=Wm(0,C)):A||(j=d4(q,j,b).reduce(function(T,H){return T.indexOf(H)>=0?T:[].concat(Ec(T),[H])},[]))}else if(g==="category")A?j=j.filter(function(T){return T!==""&&!nt(T)}):j=d4(q,j,b).reduce(function(T,H){return T.indexOf(H)>=0||H===""||nt(H)?T:[].concat(Ec(T),[H])},[]);else if(g==="number"){var $=yX(D,i.filter(function(T){var H,J,Z=o in T.props?T.props[o]:(H=T.type.defaultProps)===null||H===void 0?void 0:H[o],te="hide"in T.props?T.props.hide:(J=T.type.defaultProps)===null||J===void 0?void 0:J.hide;return Z===M&&(k||!te)}),w,a,f);$&&(j=$)}p&&(g==="number"||O!=="auto")&&(I=pd(D,w,"category"))}else p?j=Wm(0,C):s&&s[M]&&s[M].hasStack&&g==="number"?j=d==="expand"?[0,1]:ok(s[M].stackGroups,l,u):j=ek(D,i.filter(function(T){var H=o in T.props?T.props[o]:T.type.defaultProps[o],J="hide"in T.props?T.props.hide:T.type.defaultProps.hide;return H===M&&(k||!J)}),g,f,!0);if(g==="number")j=Rb(c,j,M,a,N),q&&(j=Z2(q,j,_));else if(g==="category"&&q){var G=q,ie=j.every(function(T){return G.indexOf(T)>=0});ie&&(j=G)}}return Ae(Ae({},m),{},et({},M,Ae(Ae({},v),{},{axisType:a,domain:j,categoricalDomain:I,duplicateDomain:B,originalDomain:(x=v.domain)!==null&&x!==void 0?x:X,isCategorical:p,layout:f})))},{})},Coe=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.layout,c=t.children,d=hy(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),p=d.length,m=tk(f,a),b=-1;return n.reduce(function(x,v){var g=v.type.defaultProps!==void 0?Ae(Ae({},v.type.defaultProps),v.props):v.props,w=g[o],_=EC("number");if(!x[w]){b++;var A;return m?A=Wm(0,p):s&&s[w]&&s[w].hasStack?(A=ok(s[w].stackGroups,l,u),A=Rb(c,A,w,a)):(A=Z2(_,ek(d,n.filter(function(O){var N,k,M=o in O.props?O.props[o]:(N=O.type.defaultProps)===null||N===void 0?void 0:N[o],D="hide"in O.props?O.props.hide:(k=O.type.defaultProps)===null||k===void 0?void 0:k.hide;return M===w&&!D}),"number",f),i.defaultProps.allowDataOverflow),A=Rb(c,A,w,a)),Ae(Ae({},x),{},et({},w,Ae(Ae({axisType:a},i.defaultProps),{},{hide:!0,orientation:ci(Poe,"".concat(a,".").concat(b%2),null),domain:A,originalDomain:_,isCategorical:m,layout:f})))}return x},{})},Eoe=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.children,c="".concat(i,"Id"),d=fi(f,a),p={};return d&&d.length?p=koe(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(p=Coe(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),p},Loe=function(t){var r=rs(t),n=po(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:wx(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:km(r,n)}},G_=function(t){var r=t.children,n=t.defaultShowTooltip,i=ai(r,xc),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},Toe=function(t){return!t||!t.length?!1:t.some(function(r){var n=mo(r&&r.type);return n&&n.indexOf("Bar")>=0})},K_=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Moe=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,f=n.height,c=n.children,d=n.margin||{},p=ai(c,xc),m=ai(c,Da),b=Object.keys(l).reduce(function(A,O){var N=l[O],k=N.orientation;return!N.mirror&&!N.hide?Ae(Ae({},A),{},et({},k,A[k]+N.width)):A},{left:d.left||0,right:d.right||0}),x=Object.keys(o).reduce(function(A,O){var N=o[O],k=N.orientation;return!N.mirror&&!N.hide?Ae(Ae({},A),{},et({},k,ci(A,"".concat(k))+N.height)):A},{top:d.top||0,bottom:d.bottom||0}),v=Ae(Ae({},x),b),g=v.bottom;p&&(v.bottom+=p.props.height||xc.defaultProps.height),m&&r&&(v=mX(v,i,n,r));var w=u-v.left-v.right,_=f-v.top-v.bottom;return Ae(Ae({brushBottom:g},v),{},{width:Math.max(w,0),height:Math.max(_,0)})},Ioe=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},qh=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,u=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,d=function(v,g){var w=g.graphicalItems,_=g.stackGroups,A=g.offset,O=g.updateId,N=g.dataStartIndex,k=g.dataEndIndex,M=v.barSize,D=v.layout,C=v.barGap,j=v.barCategoryGap,B=v.maxBarSize,I=K_(D),X=I.numericAxisName,U=I.cateAxisName,q=Toe(w),z=[];return w.forEach(function($,G){var ie=hy(v.data,{graphicalItems:[$],dataStartIndex:N,dataEndIndex:k}),T=$.type.defaultProps!==void 0?Ae(Ae({},$.type.defaultProps),$.props):$.props,H=T.dataKey,J=T.maxBarSize,Z=T["".concat(X,"Id")],te=T["".concat(U,"Id")],ce={},de=l.reduce(function($e,Ie){var Ge=g["".concat(Ie.axisType,"Map")],it=T["".concat(Ie.axisType,"Id")];Ge&&Ge[it]||Ie.axisType==="zAxis"||jl();var st=Ge[it];return Ae(Ae({},$e),{},et(et({},Ie.axisType,st),"".concat(Ie.axisType,"Ticks"),po(st)))},ce),ae=de[U],ye=de["".concat(U,"Ticks")],be=_&&_[Z]&&_[Z].hasStack&&NX($,_[Z].stackGroups),he=mo($.type).indexOf("Bar")>=0,Ce=km(ae,ye),Me=[],ge=q&&pX({barSize:M,stackGroups:_,totalSize:Ioe(de,U)});if(he){var ne,Ke,Ue=nt(J)?B:J,ke=(ne=(Ke=km(ae,ye,!0))!==null&&Ke!==void 0?Ke:Ue)!==null&&ne!==void 0?ne:0;Me=vX({barGap:C,barCategoryGap:j,bandSize:ke!==Ce?ke:Ce,sizeList:ge[te],maxBarSize:Ue}),ke!==Ce&&(Me=Me.map(function($e){return Ae(Ae({},$e),{},{position:Ae(Ae({},$e.position),{},{offset:$e.position.offset-ke/2})})}))}var Te=$&&$.type&&$.type.getComposedData;Te&&z.push({props:Ae(Ae({},Te(Ae(Ae({},de),{},{displayedData:ie,props:v,dataKey:H,item:$,bandSize:Ce,barPosition:Me,offset:A,stackedData:be,layout:D,dataStartIndex:N,dataEndIndex:k}))),{},et(et(et({key:$.key||"item-".concat(G)},X,de[X]),U,de[U]),"animationId",O)),childIndex:v$($,v.children),item:$})}),z},p=function(v,g){var w=v.props,_=v.dataStartIndex,A=v.dataEndIndex,O=v.updateId;if(!o3({props:w}))return null;var N=w.children,k=w.layout,M=w.stackOffset,D=w.data,C=w.reverseStackOrder,j=K_(k),B=j.numericAxisName,I=j.cateAxisName,X=fi(N,n),U=PX(D,X,"".concat(B,"Id"),"".concat(I,"Id"),M,C),q=l.reduce(function(T,H){var J="".concat(H.axisType,"Map");return Ae(Ae({},T),{},et({},J,Eoe(w,Ae(Ae({},H),{},{graphicalItems:X,stackGroups:H.axisType===B&&U,dataStartIndex:_,dataEndIndex:A}))))},{}),z=Moe(Ae(Ae({},q),{},{props:w,graphicalItems:X}),g==null?void 0:g.legendBBox);Object.keys(q).forEach(function(T){q[T]=f(w,q[T],z,T.replace("Map",""),r)});var $=q["".concat(I,"Map")],G=Loe($),ie=d(w,Ae(Ae({},q),{},{dataStartIndex:_,dataEndIndex:A,updateId:O,graphicalItems:X,stackGroups:U,offset:z}));return Ae(Ae({formattedGraphicalItems:ie,graphicalItems:X,offset:z,stackGroups:U},G),q)},m=function(x){function v(g){var w,_,A;return poe(this,v),A=goe(this,v,[g]),et(A,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),et(A,"accessibilityManager",new eoe),et(A,"handleLegendBBoxUpdate",function(O){if(O){var N=A.state,k=N.dataStartIndex,M=N.dataEndIndex,D=N.updateId;A.setState(Ae({legendBBox:O},p({props:A.props,dataStartIndex:k,dataEndIndex:M,updateId:D},Ae(Ae({},A.state),{},{legendBBox:O}))))}}),et(A,"handleReceiveSyncEvent",function(O,N,k){if(A.props.syncId===O){if(k===A.eventEmitterSymbol&&typeof A.props.syncMethod!="function")return;A.applySyncEvent(N)}}),et(A,"handleBrushChange",function(O){var N=O.startIndex,k=O.endIndex;if(N!==A.state.dataStartIndex||k!==A.state.dataEndIndex){var M=A.state.updateId;A.setState(function(){return Ae({dataStartIndex:N,dataEndIndex:k},p({props:A.props,dataStartIndex:N,dataEndIndex:k,updateId:M},A.state))}),A.triggerSyncEvent({dataStartIndex:N,dataEndIndex:k})}}),et(A,"handleMouseEnter",function(O){var N=A.getMouseInfo(O);if(N){var k=Ae(Ae({},N),{},{isTooltipActive:!0});A.setState(k),A.triggerSyncEvent(k);var M=A.props.onMouseEnter;Xe(M)&&M(k,O)}}),et(A,"triggeredAfterMouseMove",function(O){var N=A.getMouseInfo(O),k=N?Ae(Ae({},N),{},{isTooltipActive:!0}):{isTooltipActive:!1};A.setState(k),A.triggerSyncEvent(k);var M=A.props.onMouseMove;Xe(M)&&M(k,O)}),et(A,"handleItemMouseEnter",function(O){A.setState(function(){return{isTooltipActive:!0,activeItem:O,activePayload:O.tooltipPayload,activeCoordinate:O.tooltipPosition||{x:O.cx,y:O.cy}}})}),et(A,"handleItemMouseLeave",function(){A.setState(function(){return{isTooltipActive:!1}})}),et(A,"handleMouseMove",function(O){O.persist(),A.throttleTriggeredAfterMouseMove(O)}),et(A,"handleMouseLeave",function(O){A.throttleTriggeredAfterMouseMove.cancel();var N={isTooltipActive:!1};A.setState(N),A.triggerSyncEvent(N);var k=A.props.onMouseLeave;Xe(k)&&k(N,O)}),et(A,"handleOuterEvent",function(O){var N=p$(O),k=ci(A.props,"".concat(N));if(N&&Xe(k)){var M,D;/.*touch.*/i.test(N)?D=A.getMouseInfo(O.changedTouches[0]):D=A.getMouseInfo(O),k((M=D)!==null&&M!==void 0?M:{},O)}}),et(A,"handleClick",function(O){var N=A.getMouseInfo(O);if(N){var k=Ae(Ae({},N),{},{isTooltipActive:!0});A.setState(k),A.triggerSyncEvent(k);var M=A.props.onClick;Xe(M)&&M(k,O)}}),et(A,"handleMouseDown",function(O){var N=A.props.onMouseDown;if(Xe(N)){var k=A.getMouseInfo(O);N(k,O)}}),et(A,"handleMouseUp",function(O){var N=A.props.onMouseUp;if(Xe(N)){var k=A.getMouseInfo(O);N(k,O)}}),et(A,"handleTouchMove",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&A.throttleTriggeredAfterMouseMove(O.changedTouches[0])}),et(A,"handleTouchStart",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&A.handleMouseDown(O.changedTouches[0])}),et(A,"handleTouchEnd",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&A.handleMouseUp(O.changedTouches[0])}),et(A,"handleDoubleClick",function(O){var N=A.props.onDoubleClick;if(Xe(N)){var k=A.getMouseInfo(O);N(k,O)}}),et(A,"handleContextMenu",function(O){var N=A.props.onContextMenu;if(Xe(N)){var k=A.getMouseInfo(O);N(k,O)}}),et(A,"triggerSyncEvent",function(O){A.props.syncId!==void 0&&o1.emit(s1,A.props.syncId,O,A.eventEmitterSymbol)}),et(A,"applySyncEvent",function(O){var N=A.props,k=N.layout,M=N.syncMethod,D=A.state.updateId,C=O.dataStartIndex,j=O.dataEndIndex;if(O.dataStartIndex!==void 0||O.dataEndIndex!==void 0)A.setState(Ae({dataStartIndex:C,dataEndIndex:j},p({props:A.props,dataStartIndex:C,dataEndIndex:j,updateId:D},A.state)));else if(O.activeTooltipIndex!==void 0){var B=O.chartX,I=O.chartY,X=O.activeTooltipIndex,U=A.state,q=U.offset,z=U.tooltipTicks;if(!q)return;if(typeof M=="function")X=M(z,O);else if(M==="value"){X=-1;for(var $=0;$=0){var be,he;if(B.dataKey&&!B.allowDuplicatedCategory){var Ce=typeof B.dataKey=="function"?ye:"payload.".concat(B.dataKey.toString());be=Zv($,Ce,X),he=G&&ie&&Zv(ie,Ce,X)}else be=$==null?void 0:$[I],he=G&&ie&&ie[I];if(te||Z){var Me=O.props.activeIndex!==void 0?O.props.activeIndex:I;return[we.cloneElement(O,Ae(Ae(Ae({},M.props),de),{},{activeIndex:Me})),null,null]}if(!nt(be))return[ae].concat(Ec(A.renderActivePoints({item:M,activePoint:be,basePoint:he,childIndex:I,isRange:G})))}else{var ge,ne=(ge=A.getItemByXY(A.state.activeCoordinate))!==null&&ge!==void 0?ge:{graphicalItem:ae},Ke=ne.graphicalItem,Ue=Ke.item,ke=Ue===void 0?O:Ue,Te=Ke.childIndex,$e=Ae(Ae(Ae({},M.props),de),{},{activeIndex:Te});return[we.cloneElement(ke,$e),null,null]}return G?[ae,null,null]:[ae,null]}),et(A,"renderCustomized",function(O,N,k){return we.cloneElement(O,Ae(Ae({key:"recharts-customized-".concat(k)},A.props),A.state))}),et(A,"renderMap",{CartesianGrid:{handler:cv,once:!0},ReferenceArea:{handler:A.renderReferenceElement},ReferenceLine:{handler:cv},ReferenceDot:{handler:A.renderReferenceElement},XAxis:{handler:cv},YAxis:{handler:cv},Brush:{handler:A.renderBrush,once:!0},Bar:{handler:A.renderGraphicChild},Line:{handler:A.renderGraphicChild},Area:{handler:A.renderGraphicChild},Radar:{handler:A.renderGraphicChild},RadialBar:{handler:A.renderGraphicChild},Scatter:{handler:A.renderGraphicChild},Pie:{handler:A.renderGraphicChild},Funnel:{handler:A.renderGraphicChild},Tooltip:{handler:A.renderCursor,once:!0},PolarGrid:{handler:A.renderPolarGrid,once:!0},PolarAngleAxis:{handler:A.renderPolarAxis},PolarRadiusAxis:{handler:A.renderPolarAxis},Customized:{handler:A.renderCustomized}}),A.clipPathId="".concat((w=g.id)!==null&&w!==void 0?w:Ml("recharts"),"-clip"),A.throttleTriggeredAfterMouseMove=QN(A.triggeredAfterMouseMove,(_=g.throttleDelay)!==null&&_!==void 0?_:1e3/60),A.state={},A}return xoe(v,x),moe(v,[{key:"componentDidMount",value:function(){var w,_;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,_=w.children,A=w.data,O=w.height,N=w.layout,k=ai(_,or);if(k){var M=k.props.defaultIndex;if(!(typeof M!="number"||M<0||M>this.state.tooltipTicks.length-1)){var D=this.state.tooltipTicks[M]&&this.state.tooltipTicks[M].value,C=zb(this.state,A,M,D),j=this.state.tooltipTicks[M].coordinate,B=(this.state.offset.top+O)/2,I=N==="horizontal",X=I?{x:j,y:B}:{y:j,x:B},U=this.state.formattedGraphicalItems.find(function(z){var $=z.item;return $.type.name==="Scatter"});U&&(X=Ae(Ae({},X),U.props.points[M].tooltipPosition),C=U.props.points[M].tooltipPayload);var q={activeTooltipIndex:M,isTooltipActive:!0,activeLabel:D,activePayload:C,activeCoordinate:X};this.setState(q),this.renderCursor(k),this.accessibilityManager.setIndex(M)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,_){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==_.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var A,O;this.accessibilityManager.setDetails({offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0}})}return null}},{key:"componentDidUpdate",value:function(w){p2([ai(w.children,or)],[ai(this.props.children,or)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=ai(this.props.children,or);if(w&&typeof w.props.shared=="boolean"){var _=w.props.shared?"axis":"item";return s.indexOf(_)>=0?_:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var _=this.container,A=_.getBoundingClientRect(),O=zH(A),N={chartX:Math.round(w.pageX-O.left),chartY:Math.round(w.pageY-O.top)},k=A.width/_.offsetWidth||1,M=this.inRange(N.chartX,N.chartY,k);if(!M)return null;var D=this.state,C=D.xAxisMap,j=D.yAxisMap,B=this.getTooltipEventType(),I=V_(this.state,this.props.data,this.props.layout,M);if(B!=="axis"&&C&&j){var X=rs(C).scale,U=rs(j).scale,q=X&&X.invert?X.invert(N.chartX):null,z=U&&U.invert?U.invert(N.chartY):null;return Ae(Ae({},N),{},{xValue:q,yValue:z},I)}return I?Ae(Ae({},N),I):null}},{key:"inRange",value:function(w,_){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,N=w/A,k=_/A;if(O==="horizontal"||O==="vertical"){var M=this.state.offset,D=N>=M.left&&N<=M.left+M.width&&k>=M.top&&k<=M.top+M.height;return D?{x:N,y:k}:null}var C=this.state,j=C.angleAxisMap,B=C.radiusAxisMap;if(j&&B){var I=rs(j);return v4({x:N,y:k},I)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,_=this.getTooltipEventType(),A=ai(w,or),O={};A&&_==="axis"&&(A.props.trigger==="click"?O={onClick:this.handleClick}:O={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var N=em(this.props,this.handleOuterEvent);return Ae(Ae({},N),O)}},{key:"addListener",value:function(){o1.on(s1,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){o1.removeListener(s1,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,_,A){for(var O=this.state.formattedGraphicalItems,N=0,k=O.length;Ne.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),MC=(...e)=>e.filter((t,r,n)=>!!t&&n.indexOf(t)===r).join(" ");/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var Roe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Foe=we.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...s},l)=>we.createElement("svg",{ref:l,...Roe,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:MC("lucide",i),...s},[...o.map(([u,f])=>we.createElement(u,f)),...Array.isArray(a)?a:[a]]));/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const mt=(e,t)=>{const r=we.forwardRef(({className:n,...i},a)=>we.createElement(Foe,{ref:a,iconNode:t,className:MC(`lucide-${Doe(e)}`,n),...i}));return r.displayName=`${e}`,r};/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Boe=mt("ArrowDownRight",[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const zoe=mt("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Uoe=mt("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const qoe=mt("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Woe=mt("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Y_=mt("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Hoe=mt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const IC=mt("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Voe=mt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const py=mt("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const qb=mt("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Goe=mt("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const $C=mt("Clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const ag=mt("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Cl=mt("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Koe=mt("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Yoe=mt("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const DC=mt("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Xoe=mt("FileDown",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Oh=mt("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Joe=mt("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Nh=mt("Flag",[["path",{d:"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z",key:"i9b6wo"}],["line",{x1:"4",x2:"4",y1:"22",y2:"15",key:"1cm3nv"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const RC=mt("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Qoe=mt("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Zoe=mt("List",[["line",{x1:"8",x2:"21",y1:"6",y2:"6",key:"7ey8pc"}],["line",{x1:"8",x2:"21",y1:"12",y2:"12",key:"rjfblc"}],["line",{x1:"8",x2:"21",y1:"18",y2:"18",key:"c3b1m8"}],["line",{x1:"3",x2:"3.01",y1:"6",y2:"6",key:"1g7gq3"}],["line",{x1:"3",x2:"3.01",y1:"12",y2:"12",key:"1pjlvk"}],["line",{x1:"3",x2:"3.01",y1:"18",y2:"18",key:"28t2mc"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const ese=mt("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const FC=mt("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const tse=mt("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const rse=mt("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const nse=mt("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const X_=mt("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const BC=mt("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const vy=mt("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Wb=mt("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const aw=mt("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const og=mt("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const J_=mt("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
+ * @license lucide-react v0.400.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const ise=mt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ow="-",ase=e=>{const t=sse(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const s=o.split(ow);return s[0]===""&&s.length!==1&&s.shift(),zC(s,t)||ose(o)},getConflictingClassGroupIds:(o,s)=>{const l=r[o]||[];return s&&n[o]?[...l,...n[o]]:l}}},zC=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?zC(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(ow);return(o=t.validators.find(({validator:s})=>s(a)))==null?void 0:o.classGroupId},Q_=/^\[(.+)\]$/,ose=e=>{if(Q_.test(e)){const t=Q_.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},sse=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return use(Object.entries(e.classGroups),r).forEach(([a,o])=>{Hb(o,n,a,t)}),n},Hb=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:Z_(t,i);a.classGroupId=r;return}if(typeof i=="function"){if(lse(i)){Hb(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,o])=>{Hb(o,Z_(t,a),r,n)})})},Z_=(e,t)=>{let r=e;return t.split(ow).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},lse=e=>e.isThemeGetter,use=(e,t)=>t?e.map(([r,n])=>{const i=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,s])=>[t+o,s])):a);return[r,i]}):e,cse=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(a,o)=>{r.set(a,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let o=r.get(a);if(o!==void 0)return o;if((o=n.get(a))!==void 0)return i(a,o),o},set(a,o){r.has(a)?r.set(a,o):i(a,o)}}},UC="!",fse=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],a=t.length,o=s=>{const l=[];let u=0,f=0,c;for(let x=0;xf?c-f:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:b}};return r?s=>r({className:s,parseClassName:o}):o},dse=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},hse=e=>({cache:cse(e.cacheSize),parseClassName:fse(e),...ase(e)}),pse=/\s+/,vse=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(pse);let s="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:f,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:p}=r(u);let m=!!p,b=n(m?d.substring(0,p):d);if(!b){if(!m){s=u+(s.length>0?" "+s:s);continue}if(b=n(d),!b){s=u+(s.length>0?" "+s:s);continue}m=!1}const x=dse(f).join(":"),v=c?x+UC:x,g=v+b;if(a.includes(g))continue;a.push(g);const w=i(b,m);for(let _=0;_0?" "+s:s)}return s};function mse(){let e=0,t,r,n="";for(;e{if(typeof e=="string")return e;let t,r="";for(let n=0;nc(f),e());return r=hse(u),n=r.cache.get,i=r.cache.set,a=s,s(l)}function s(l){const u=n(l);if(u)return u;const f=vse(l,r);return i(l,f),f}return function(){return a(mse.apply(null,arguments))}}const Yt=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},WC=/^\[(?:([a-z-]+):)?(.+)\]$/i,yse=/^\d+\/\d+$/,bse=new Set(["px","full","screen"]),xse=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wse=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Sse=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ase=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_se=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,no=e=>Xu(e)||bse.has(e)||yse.test(e),Vo=e=>Qc(e,"length",Lse),Xu=e=>!!e&&!Number.isNaN(Number(e)),u1=e=>Qc(e,"number",Xu),Kf=e=>!!e&&Number.isInteger(Number(e)),Pse=e=>e.endsWith("%")&&Xu(e.slice(0,-1)),ht=e=>WC.test(e),Go=e=>xse.test(e),Ose=new Set(["length","size","percentage"]),Nse=e=>Qc(e,Ose,HC),jse=e=>Qc(e,"position",HC),kse=new Set(["image","url"]),Cse=e=>Qc(e,kse,Mse),Ese=e=>Qc(e,"",Tse),Yf=()=>!0,Qc=(e,t,r)=>{const n=WC.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Lse=e=>wse.test(e)&&!Sse.test(e),HC=()=>!1,Tse=e=>Ase.test(e),Mse=e=>_se.test(e),Ise=()=>{const e=Yt("colors"),t=Yt("spacing"),r=Yt("blur"),n=Yt("brightness"),i=Yt("borderColor"),a=Yt("borderRadius"),o=Yt("borderSpacing"),s=Yt("borderWidth"),l=Yt("contrast"),u=Yt("grayscale"),f=Yt("hueRotate"),c=Yt("invert"),d=Yt("gap"),p=Yt("gradientColorStops"),m=Yt("gradientColorStopPositions"),b=Yt("inset"),x=Yt("margin"),v=Yt("opacity"),g=Yt("padding"),w=Yt("saturate"),_=Yt("scale"),A=Yt("sepia"),O=Yt("skew"),N=Yt("space"),k=Yt("translate"),M=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",ht,t],j=()=>[ht,t],B=()=>["",no,Vo],I=()=>["auto",Xu,ht],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],$=()=>["","0",ht],G=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ie=()=>[Xu,ht];return{cacheSize:500,separator:":",theme:{colors:[Yf],spacing:[no,Vo],blur:["none","",Go,ht],brightness:ie(),borderColor:[e],borderRadius:["none","","full",Go,ht],borderSpacing:j(),borderWidth:B(),contrast:ie(),grayscale:$(),hueRotate:ie(),invert:$(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[Pse,Vo],inset:C(),margin:C(),opacity:ie(),padding:j(),saturate:ie(),scale:ie(),sepia:$(),skew:ie(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",ht]}],container:["container"],columns:[{columns:[Go]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...X(),ht]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Kf,ht]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ht]}],grow:[{grow:$()}],shrink:[{shrink:$()}],order:[{order:["first","last","none",Kf,ht]}],"grid-cols":[{"grid-cols":[Yf]}],"col-start-end":[{col:["auto",{span:["full",Kf,ht]},ht]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Yf]}],"row-start-end":[{row:["auto",{span:[Kf,ht]},ht]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ht]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ht]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ht,t]}],"min-w":[{"min-w":[ht,t,"min","max","fit"]}],"max-w":[{"max-w":[ht,t,"none","full","min","max","fit","prose",{screen:[Go]},Go]}],h:[{h:[ht,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ht,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ht,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ht,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Go,Vo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",u1]}],"font-family":[{font:[Yf]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ht]}],"line-clamp":[{"line-clamp":["none",Xu,u1]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",no,ht]}],"list-image":[{"list-image":["none",ht]}],"list-style-type":[{list:["none","disc","decimal",ht]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",no,Vo]}],"underline-offset":[{"underline-offset":["auto",no,ht]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ht]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ht]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),jse]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Nse]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Cse]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:U()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[no,ht]}],"outline-w":[{outline:[no,Vo]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[no,Vo]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Go,Ese]}],"shadow-color":[{shadow:[Yf]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Go,ht]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[c]}],saturate:[{saturate:[w]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ht]}],duration:[{duration:ie()}],ease:[{ease:["linear","in","out","in-out",ht]}],delay:[{delay:ie()}],animate:[{animate:["none","spin","ping","pulse","bounce",ht]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[Kf,ht]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ht]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ht]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ht]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[no,Vo,u1]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},$se=gse(Ise);function Cr(...e){return $se(rt(e))}function xn(e){return e&&parseFloat(e.replace(/[£,]/g,""))||0}function Bn(e){return new Intl.NumberFormat("en-GB",{style:"currency",currency:"GBP"}).format(e)}function bd(e){return new Intl.NumberFormat("en-GB").format(e)}function xd(e){if(!e)return"N/A";try{return new Date(e).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"})}catch{return e}}function my(e){return{Open:"bg-blue-100 text-blue-800 border-blue-200","In Review":"bg-yellow-100 text-yellow-800 border-yellow-200","Under Investigation":"bg-orange-100 text-orange-800 border-orange-200",Approved:"bg-emerald-100 text-emerald-800 border-emerald-200",Denied:"bg-red-100 text-red-800 border-red-200",Closed:"bg-gray-100 text-gray-800 border-gray-200",Resolved:"bg-green-100 text-green-800 border-green-200",Reopened:"bg-purple-100 text-purple-800 border-purple-200",Pending:"bg-amber-100 text-amber-800 border-amber-200"}[e||""]||"bg-gray-100 text-gray-600 border-gray-200"}function sg(e){return{Low:"bg-emerald-100 text-emerald-800 border-emerald-200",Medium:"bg-amber-100 text-amber-800 border-amber-200",High:"bg-orange-100 text-orange-800 border-orange-200",Critical:"bg-red-100 text-red-800 border-red-200"}[e||""]||"bg-gray-100 text-gray-600 border-gray-200"}function lg(e){let t=0;e.escalated&&(t+=30),e.severity==="Critical"?t+=25:e.severity==="High"&&(t+=15),e.resolution_days&&e.resolution_days>30&&(t+=15);const r=xn(e.compensation_amount);return r>500&&(t+=10),r>1e3&&(t+=10),t>=60?{score:t,level:"High",color:"text-red-600"}:t>=35?{score:t,level:"Medium",color:"text-amber-600"}:{score:t,level:"Low",color:"text-green-600"}}function Dse(e){const t=e.length,r=e.filter($=>["Open","In Review","Under Investigation","Pending","Reopened"].includes($.status||"")).length,n=e.filter($=>["Closed","Resolved","Approved","Denied"].includes($.status||"")).length,i=e.filter($=>$.resolution_days!=null).map($=>$.resolution_days),a=i.length>0?i.reduce(($,G)=>$+G,0)/i.length:0,o=e.reduce(($,G)=>$+xn(G.compensation_amount),0),s=e.filter($=>$.satisfaction_score!=null).map($=>$.satisfaction_score),l=s.length>0?s.reduce(($,G)=>$+G,0)/s.length:0,u=e.filter($=>$.escalated).length,f=t>0?u/t*100:0,c=new Map;e.forEach($=>{const G=$.category||"Unknown";c.set(G,(c.get(G)||0)+1)});const d=Array.from(c.entries()).map(([$,G])=>({name:$.replace(" Claim",""),value:G})).sort(($,G)=>G.value-$.value),p=new Map;e.forEach($=>{const G=$.severity||"Unknown";p.set(G,(p.get(G)||0)+1)});const m=Array.from(p.entries()).map(([$,G])=>({name:$,value:G})),b=new Map;e.forEach($=>{const G=$.status||"Unknown";b.set(G,(b.get(G)||0)+1)});const x=Array.from(b.entries()).map(([$,G])=>({name:$,value:G})).sort(($,G)=>G.value-$.value),v=new Map;e.forEach($=>{const G=$.channel||"Unknown";v.set(G,(v.get(G)||0)+1)});const g=Array.from(v.entries()).map(([$,G])=>({name:$,value:G})).sort(($,G)=>G.value-$.value),w=new Map;e.forEach($=>{if(!$.complaint_date)return;const G=new Date($.complaint_date),ie=`${G.getFullYear()}-${String(G.getMonth()+1).padStart(2,"0")}`,T=w.get(ie)||{claims:0,compensation:0};T.claims++,T.compensation+=xn($.compensation_amount),w.set(ie,T)});const _=Array.from(w.entries()).map(([$,G])=>({month:$,...G})).sort(($,G)=>$.month.localeCompare(G.month)),O=[{range:"0-7 days",min:0,max:7},{range:"8-14 days",min:8,max:14},{range:"15-30 days",min:15,max:30},{range:"31-60 days",min:31,max:60},{range:"60+ days",min:61,max:1/0}].map($=>({range:$.range,count:e.filter(G=>G.resolution_days!=null&&G.resolution_days>=$.min&&G.resolution_days<=$.max).length})),N=new Map;e.forEach($=>{const G=$.customer_city||"Unknown";N.set(G,(N.get(G)||0)+1)});const k=Array.from(N.entries()).map(([$,G])=>({city:$,count:G})).sort(($,G)=>G.count-$.count).slice(0,10),M=[1,2,3,4,5].map($=>({score:$,count:e.filter(G=>G.satisfaction_score===$).length})),D=new Map;e.forEach($=>{if(!$.complaint_date)return;const G=new Date($.complaint_date),ie=`${G.getFullYear()}-${String(G.getMonth()+1).padStart(2,"0")}`,T=D.get(ie)||{Low:0,Medium:0,High:0,Critical:0};$.severity==="Low"?T.Low++:$.severity==="Medium"?T.Medium++:$.severity==="High"?T.High++:$.severity==="Critical"&&T.Critical++,D.set(ie,T)});const C=Array.from(D.entries()).map(([$,G])=>({month:$,...G})).sort(($,G)=>$.month.localeCompare(G.month)),j=e.filter($=>xn($.compensation_amount)>2e3).length,B=e.filter($=>$.escalated).length,I=e.filter($=>$.resolution_days!=null&&$.resolution_days>45).length,X=e.filter($=>$.severity==="Critical").length,U=new Map;e.forEach($=>U.set($.customer_id,(U.get($.customer_id)||0)+1));const q=Array.from(U.values()).filter($=>$>3).length,z=[{indicator:"High Compensation (>£2,000)",count:j,risk:j>t*.1?"High":"Medium"},{indicator:"Escalated Claims",count:B,risk:B>t*.15?"High":"Medium"},{indicator:"Slow Resolution (>45 days)",count:I,risk:I>t*.1?"High":"Low"},{indicator:"Critical Severity",count:X,risk:"High"},{indicator:"Repeat Claimants (>3 claims)",count:q,risk:q>20?"High":"Medium"}];return{totalClaims:t,openClaims:r,closedClaims:n,avgResolutionDays:Math.round(a*10)/10,totalCompensation:o,avgSatisfaction:Math.round(l*10)/10,escalationRate:Math.round(f*10)/10,claimsByCategory:d,claimsBySeverity:m,claimsByStatus:x,claimsByChannel:g,claimsByMonth:_,resolutionDistribution:O,topCities:k,satisfactionDistribution:M,severityTrend:C,fraudRiskIndicators:z}}function Rse(e){const t=["Auto Insurance Claim","Home Insurance Claim","Health Insurance Claim","Life Insurance Claim","Travel Insurance Claim","Business Insurance Claim","Pet Insurance Claim","Liability Claim","Property Damage Claim","Personal Accident Claim","Natural Disaster Claim","Theft/Burglary Claim"],r=["Low","Medium","High","Critical"],n=["Open","In Review","Under Investigation","Approved","Denied","Closed","Resolved","Pending"],i=["Phone","Email","Online Portal","Mobile App","In Person","Chat"],a=["London","Manchester","Birmingham","Leeds","Glasgow","Liverpool","Bristol","Edinburgh","Cardiff","Belfast","Sheffield","Nottingham","Newcastle","Southampton","Oxford"],o=["Premium","Standard","Basic","Private","Corporate"],s=["Male","Female","Non-binary"],l=["Motor Comprehensive","Home Buildings","Home Contents","Health Plus","Life Term","Travel Annual","Business Liability","Pet Premium","Critical Illness","Income Protection"],u=["Vehicle collision at junction requiring bodywork repair and windscreen replacement","Water damage from burst pipe affecting ground floor rooms and electrical systems","Dental procedure claim for root canal treatment and crown fitting","Flight cancellation due to airline strike with hotel rebooking costs","Theft of personal electronics from locked vehicle in city centre","Storm damage to roof tiles and guttering requiring emergency repair","Workplace injury resulting in physiotherapy and rehabilitation costs","Pet emergency surgery for foreign body ingestion requiring overnight stay","Fire damage to kitchen appliances and cabinetry from electrical fault","Slip and fall on commercial premises requiring medical treatment","Flooding damage to basement storage and ground floor furnishings","Road traffic accident with third party liability and personal injury","Burglary with forced entry resulting in loss of valuables and property damage","Medical emergency abroad requiring hospital admission and repatriation","Business interruption due to severe weather event affecting operations"],f=[];for(let c=0;c.15?Math.floor(Math.random()*60)+1:null,m=p?new Date(d.getTime()+p*864e5):null,b=(Math.random()*5e3+50).toFixed(2),x=r[Math.floor(Math.random()*r.length)];f.push({claim_id:`CLM-${String(10001+c).padStart(6,"0")}`,customer_id:`CUST-${String(1001+Math.floor(Math.random()*500)).padStart(5,"0")}`,customer_age:Math.floor(Math.random()*55)+20,customer_gender:s[Math.floor(Math.random()*s.length)],customer_segment:o[Math.floor(Math.random()*o.length)],customer_city:a[Math.floor(Math.random()*a.length)],complaint_date:d.toISOString().split("T")[0],complaint_time:`${String(Math.floor(Math.random()*24)).padStart(2,"0")}:${String(Math.floor(Math.random()*60)).padStart(2,"0")}`,category:t[Math.floor(Math.random()*t.length)],severity:x,description:u[Math.floor(Math.random()*u.length)],channel:i[Math.floor(Math.random()*i.length)],status:n[Math.floor(Math.random()*n.length)],resolution_date:m?m.toISOString().split("T")[0]:null,resolution_days:p,compensation_amount:`£${parseFloat(b).toLocaleString("en-GB",{minimumFractionDigits:2})}`,satisfaction_score:Math.random()>.1?Math.floor(Math.random()*5)+1:null,escalated:x==="Critical"?!0:x==="High"?Math.random()>.5:Math.random()>.8,product_involved:l[Math.floor(Math.random()*l.length)],branch_code:`BR-${String(Math.floor(Math.random()*50)+1).padStart(3,"0")}`})}return f}function Fse(e){const t=["James","Emma","Oliver","Sophie","William","Charlotte","Harry","Amelia","George","Isla","Thomas","Mia","Jack","Emily","Daniel","Grace","Alexander","Poppy","Henry","Ella"],r=["Smith","Jones","Williams","Taylor","Brown","Davies","Evans","Wilson","Thomas","Johnson","Roberts","Robinson","Thompson","Wright","Walker","White","Edwards","Hughes","Green","Hall"],n=["London","Manchester","Birmingham","Leeds","Glasgow","Liverpool","Bristol","Edinburgh","Cardiff","Belfast"],i=["Premium","Standard","Basic","Private","Corporate"],a=["Current","Savings","ISA","Business","Premium"],o=["£0-25k","£25k-50k","£50k-75k","£75k-100k","£100k+"],s=[];for(let l=0;l.5?"Male":"Female",address:`${Math.floor(Math.random()*200)+1} ${["High Street","Park Road","Church Lane","Station Road","Mill Lane"][Math.floor(Math.random()*5)]}`,city:n[Math.floor(Math.random()*n.length)],postcode:`${["SW","SE","NW","EC","WC","M","B","LS","G","L"][Math.floor(Math.random()*10)]}${Math.floor(Math.random()*20)+1} ${Math.floor(Math.random()*9)+1}${["AB","CD","EF","GH","JK"][Math.floor(Math.random()*5)]}`,account_type:a[Math.floor(Math.random()*a.length)],account_number:1e7+Math.floor(Math.random()*89999999),sort_code:`${String(Math.floor(Math.random()*90)+10).padStart(2,"0")}-${String(Math.floor(Math.random()*90)+10).padStart(2,"0")}-${String(Math.floor(Math.random()*90)+10).padStart(2,"0")}`,account_open_date:`${2015+Math.floor(Math.random()*9)}-${String(Math.floor(Math.random()*12)+1).padStart(2,"0")}-${String(Math.floor(Math.random()*28)+1).padStart(2,"0")}`,balance:parseFloat((Math.random()*5e4+100).toFixed(2)),income_bracket:o[Math.floor(Math.random()*o.length)],credit_score:Math.floor(Math.random()*400)+500,num_products:Math.floor(Math.random()*5)+1,customer_segment:i[Math.floor(Math.random()*i.length)],is_active:Math.random()>.1,has_mobile_app:Math.random()>.3,has_online_banking:Math.random()>.2,marketing_consent:Math.random()>.4})}return s}function Bse(){const e=["Viewed claim","Updated status","Added note","Assigned adjuster","Exported report","Modified compensation","Flagged for fraud review","Approved payment","Denied claim","Reopened claim"],t=["Sarah Mitchell","David Chen","Emma Thompson","James Wilson","Maria Garcia"],r=[];for(let n=0;n<50;n++){const i=new Date(2024,Math.floor(Math.random()*12),Math.floor(Math.random()*28)+1,Math.floor(Math.random()*12)+8,Math.floor(Math.random()*60));r.push({id:`AUD-${String(n+1).padStart(5,"0")}`,timestamp:i.toISOString(),user:t[Math.floor(Math.random()*t.length)],action:e[Math.floor(Math.random()*e.length)],entity:"Claim",entityId:`CLM-${String(10001+Math.floor(Math.random()*1e3)).padStart(6,"0")}`,details:"Action performed on claim record"})}return r.sort((n,i)=>new Date(i.timestamp).getTime()-new Date(n.timestamp).getTime())}const VC=Rse(1e3),zse=Fse(500),Use=Bse(),qse="modulepreload",Wse=function(e){return"/"+e},eP={},Vb=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),s=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(r.map(l=>{if(l=Wse(l),l in eP)return;eP[l]=!0;const u=l.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${f}`))return;const c=document.createElement("link");if(c.rel=u?"stylesheet":qse,u||(c.as="script"),c.crossOrigin="",c.href=l,s&&c.setAttribute("nonce",s),document.head.appendChild(c),u)return new Promise((d,p)=>{c.addEventListener("load",d),c.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return i.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})};function Mt(e){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(e)}var yn=Uint8Array,li=Uint16Array,sw=Int32Array,gy=new yn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),yy=new yn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Gb=new yn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),GC=function(e,t){for(var r=new li(31),n=0;n<31;++n)r[n]=t+=1<>1|(Zt&21845)<<1;Ko=(Ko&52428)>>2|(Ko&13107)<<2,Ko=(Ko&61680)>>4|(Ko&3855)<<4,Yb[Zt]=((Ko&65280)>>8|(Ko&255)<<8)>>1}var Ba=function(e,t,r){for(var n=e.length,i=0,a=new li(t);i>l]=u}else for(s=new li(n),i=0;i>15-e[i]);return s},Ss=new yn(288);for(var Zt=0;Zt<144;++Zt)Ss[Zt]=8;for(var Zt=144;Zt<256;++Zt)Ss[Zt]=9;for(var Zt=256;Zt<280;++Zt)Ss[Zt]=7;for(var Zt=280;Zt<288;++Zt)Ss[Zt]=8;var jh=new yn(32);for(var Zt=0;Zt<32;++Zt)jh[Zt]=5;var Vse=Ba(Ss,9,0),Gse=Ba(Ss,9,1),Kse=Ba(jh,5,0),Yse=Ba(jh,5,1),c1=function(e){for(var t=e[0],r=1;rt&&(t=e[r]);return t},Qi=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},f1=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},lw=function(e){return(e+7)/8|0},JC=function(e,t,r){return(r==null||r>e.length)&&(r=e.length),new yn(e.subarray(t,r))},Xse=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],ta=function(e,t,r){var n=new Error(t||Xse[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,ta),!r)throw n;return n},Jse=function(e,t,r,n){var i=e.length,a=0;if(!i||t.f&&!t.l)return r||new yn(0);var o=!r,s=o||t.i!=2,l=t.i;o&&(r=new yn(i*3));var u=function(be){var he=r.length;if(be>he){var Ce=new yn(Math.max(he*2,be));Ce.set(r),r=Ce}},f=t.f||0,c=t.p||0,d=t.b||0,p=t.l,m=t.d,b=t.m,x=t.n,v=i*8;do{if(!p){f=Qi(e,c,1);var g=Qi(e,c+1,3);if(c+=3,g)if(g==1)p=Gse,m=Yse,b=9,x=5;else if(g==2){var O=Qi(e,c,31)+257,N=Qi(e,c+10,15)+4,k=O+Qi(e,c+5,31)+1;c+=14;for(var M=new yn(k),D=new yn(19),C=0;C>4;if(w<16)M[C++]=w;else{var U=0,q=0;for(w==16?(q=3+Qi(e,c,3),c+=2,U=M[C-1]):w==17?(q=3+Qi(e,c,7),c+=3):w==18&&(q=11+Qi(e,c,127),c+=7);q--;)M[C++]=U}}var z=M.subarray(0,O),$=M.subarray(O);b=c1(z),x=c1($),p=Ba(z,b,1),m=Ba($,x,1)}else ta(1);else{var w=lw(c)+4,_=e[w-4]|e[w-3]<<8,A=w+_;if(A>i){l&&ta(0);break}s&&u(d+_),r.set(e.subarray(w,A),d),t.b=d+=_,t.p=c=A*8,t.f=f;continue}if(c>v){l&&ta(0);break}}s&&u(d+131072);for(var G=(1<>4;if(c+=U&15,c>v){l&&ta(0);break}if(U||ta(2),H<256)r[d++]=H;else if(H==256){T=c,p=null;break}else{var J=H-254;if(H>264){var C=H-257,Z=gy[C];J=Qi(e,c,(1<>4;te||ta(3),c+=te&15;var $=Hse[ce];if(ce>3){var Z=yy[ce];$+=f1(e,c)&(1<v){l&&ta(0);break}s&&u(d+131072);var de=d+J;if(d<$){var ae=a-$,ye=Math.min($,de);for(ae+d<0&&ta(3);d>8},Xf=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},d1=function(e,t){for(var r=[],n=0;nd&&(d=a[n].s);var p=new li(d+1),m=Xb(r[f-1],p,0);if(m>t){var n=0,b=0,x=m-t,v=1<t)b+=v-(1<>=x;b>0;){var w=a[n].s;p[w]=0&&b;--n){var _=a[n].s;p[_]==t&&(--p[_],++b)}m=t}return{t:new yn(p),l:m}},Xb=function(e,t,r){return e.s==-1?Math.max(Xb(e.l,t,r+1),Xb(e.r,t,r+1)):t[e.s]=r},rP=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new li(++t),n=0,i=e[0],a=1,o=function(l){r[n++]=l},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return{c:r.subarray(0,n),n:t}},Jf=function(e,t){for(var r=0,n=0;n>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var a=0;a4&&!D[Gb[j-1]];--j);var B=u+5<<3,I=Jf(i,Ss)+Jf(a,jh)+o,X=Jf(i,d)+Jf(a,b)+o+14+3*j+Jf(N,D)+2*N[16]+3*N[17]+7*N[18];if(l>=0&&B<=I&&B<=X)return QC(t,f,e.subarray(l,l+u));var U,q,z,$;if(io(t,f,1+(X15&&(io(t,f,H[k]>>5&127),f+=H[k]>>12)}}else U=Vse,q=Ss,z=Kse,$=jh;for(var k=0;k255){var J=Z>>18&31;Xf(t,f,U[J+257]),f+=q[J+257],J>7&&(io(t,f,Z>>23&31),f+=gy[J]);var te=Z&31;Xf(t,f,z[te]),f+=$[te],te>3&&(Xf(t,f,Z>>5&8191),f+=yy[te])}else Xf(t,f,U[Z]),f+=q[Z]}return Xf(t,f,U[256]),f+q[256]},Qse=new sw([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ZC=new yn(0),Zse=function(e,t,r,n,i,a){var o=a.z||e.length,s=new yn(n+o+5*(1+Math.ceil(o/7e3))+i),l=s.subarray(n,s.length-i),u=a.l,f=(a.r||0)&7;if(t){f&&(l[0]=a.r>>3);for(var c=Qse[t-1],d=c>>13,p=c&8191,m=(1<7e3||D>24576)&&(U>423||!u)){f=nP(e,l,0,_,A,O,k,D,j,M-j,f),D=N=k=0,j=M;for(var q=0;q<286;++q)A[q]=0;for(var q=0;q<30;++q)O[q]=0}var z=2,$=0,G=p,ie=I-X&32767;if(U>2&&B==w(M-ie))for(var T=Math.min(d,U)-1,H=Math.min(32767,M),J=Math.min(258,U);ie<=H&&--G&&I!=X;){if(e[M+z]==e[M+z-ie]){for(var Z=0;Z