dash_mantine_components 0.15.3 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[211],{59215:(n,e,a)=>{a.d(e,{A:()=>c});var o=a(31601),l=a.n(o),r=a(76314),t=a.n(r)()(l());t.push([n.id,".m_5caae6d3 {\n display: inline-block;\n padding: calc(0.0625rem * var(--mantine-scale)) calc(0.1875rem * var(--mantine-scale));\n font-size: calc(0.8125rem * var(--mantine-scale));\n border-radius: var(--mantine-radius-xs);\n line-height: var(--code-line-height, var(--mantine-line-height));\n font-family: var(--mantine-font-family-monospace);\n}\n\n.m_2c47c4fd {\n --code-line-height: 1.7;\n display: block;\n padding: var(--mantine-spacing-xs) var(--mantine-spacing-md);\n margin: 0;\n}\n\n.m_e58679f3 {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n}\n\n.m_be7e9c9c {\n display: flex;\n margin-top: calc(0.4375rem * var(--mantine-scale));\n margin-inline-end: calc(0.4375rem * var(--mantine-scale));\n}\n\n.m_5caae85b,\n.m_d498bab7 {\n background-color: transparent;\n opacity: 0.8;\n margin: 0;\n color: var(--mantine-color-dimmed);\n}\n\n@media (hover: hover) {\n\n .m_5caae85b:hover, .m_d498bab7:hover {\n opacity: 1;\n background-color: transparent;\n color: var(--mantine-color-dimmed);\n }\n}\n\n@media (hover: none) {\n\n .m_5caae85b:active, .m_d498bab7:active {\n opacity: 1;\n background-color: transparent;\n color: var(--mantine-color-dimmed);\n }\n}\n\n@media (max-width: 40em) {\n\n.m_5caae85b,\n.m_d498bab7 {\n display: none\n}\n }\n\n.m_5caae85b {\n position: absolute;\n top: calc(0.3125rem * var(--mantine-scale));\n inset-inline-end: calc(0.3125rem * var(--mantine-scale));\n z-index: 1;\n}\n\n.m_5cac2e62 {\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: var(--mantine-font-size-xs);\n gap: calc(0.4375rem * var(--mantine-scale));\n padding: calc(0.4375rem * var(--mantine-scale)) calc(0.75rem * var(--mantine-scale));\n font-family: var(--mantine-font-family-monospace);\n font-weight: 700;\n line-height: 1;\n user-select: none;\n cursor: pointer;\n opacity: 0.8;\n border: calc(0.0625rem * var(--mantine-scale)) solid;\n border-top: 0;\n border-inline-start: 0;\n white-space: nowrap;\n margin: 0;\n}\n\n@media (hover: hover) {\n\n .m_5cac2e62:hover {\n opacity: 1;\n }\n}\n\n@media (hover: none) {\n\n .m_5cac2e62:active {\n opacity: 1;\n }\n}\n\n.m_5cac2e62:where(:last-of-type) {\n border-end-end-radius: var(--mantine-radius-sm);\n }\n\n.m_5cac2e62:where(:only-child) {\n cursor: default;\n }\n\n.m_5cac2e62:where([data-active]) {\n opacity: 1;\n }\n\n:where([data-mantine-color-scheme='light']) .m_5cac2e62:where([data-active]) {\n background-color: var(--mantine-color-white);\n color: var(--mantine-color-black);\n}\n\n:where([data-mantine-color-scheme='dark']) .m_5cac2e62:where([data-active]) {\n background-color: var(--mantine-color-dark-6);\n color: var(--mantine-color-white);\n}\n\n:where([data-mantine-color-scheme='light']) .m_5cac2e62 {\n color: var(--mantine-color-gray-8);\n border-color: var(--mantine-color-gray-2);\n}\n\n:where([data-mantine-color-scheme='dark']) .m_5cac2e62 {\n color: var(--mantine-color-dark-0);\n border-color: var(--mantine-color-dark-4);\n}\n\n.m_38d99e51 {\n display: flex;\n}\n\n.m_9f507240 {\n max-height: var(--ch-max-collapsed-height);\n overflow: hidden;\n position: relative;\n}\n\n.m_9f507240::before {\n content: '';\n z-index: 100;\n position: absolute;\n inset: 0;\n pointer-events: none;\n background-image: linear-gradient(0deg, var(--code-background) 16%, rgba(0, 0, 0, 0) 100%);\n border-radius: calc(var(--mantine-radius-md) - 1px);\n }\n\n.m_9f507240:where([data-expanded]) {\n max-height: none;\n }\n\n.m_9f507240:where([data-expanded])::before {\n display: none;\n }\n\n.m_c9378bc2 {\n position: absolute;\n bottom: 0;\n inset-inline-start: 50%;\n transform: translateX(-50%);\n font-size: var(--mantine-font-size-sm);\n color: var(--mantine-color-anchor);\n width: 100%;\n text-align: center;\n z-index: 101;\n padding-top: var(--mantine-spacing-xs);\n padding-bottom: var(--mantine-spacing-xs);\n}\n\n.m_c9378bc2[data-hidden] {\n display: none;\n }\n\n.m_5cb1b9c8 {\n margin-top: 0;\n position: relative;\n}\n\n.m_5cb1b9c8:where([data-collapsed]) .mantine-ScrollArea-viewport > div {\n display: block !important;\n }\n\n.m_b46cddfb {\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 0;\n}\n\n.m_b46cddfb > svg {\n display: block;\n }\n\n.m_1f5e827e {\n color: var(--code-text-color);\n background: var(--code-background);\n}\n\n :where([data-mantine-color-scheme='light']) .m_1f5e827e {\n --code-text-color: var(--mantine-color-gray-7);\n --code-background: var(--mantine-color-gray-0);\n --code-comment-color: var(--mantine-color-gray-6);\n --code-keyword-color: var(--mantine-color-violet-8);\n --code-tag-color: var(--mantine-color-red-9);\n --code-literal-color: var(--mantine-color-blue-6);\n --code-string-color: var(--mantine-color-blue-9);\n --code-variable-color: var(--mantine-color-lime-9);\n --code-class-color: var(--mantine-color-orange-9);\n}\n\n :where([data-mantine-color-scheme='dark']) .m_1f5e827e {\n --code-text-color: var(--mantine-color-dark-1);\n --code-background: var(--mantine-color-dark-8);\n --code-comment-color: var(--mantine-color-dark-3);\n --code-keyword-color: var(--mantine-color-violet-3);\n --code-tag-color: var(--mantine-color-yellow-4);\n --code-literal-color: var(--mantine-color-blue-4);\n --code-string-color: var(--mantine-color-green-6);\n --code-variable-color: var(--mantine-color-blue-2);\n --code-class-color: var(--mantine-color-orange-5);\n}\n\n .m_1f5e827e .hljs-comment,\n .m_1f5e827e .hljs-quote {\n font-style: italic;\n color: var(--code-comment-color);\n }\n\n .m_1f5e827e .hljs-doctag,\n .m_1f5e827e .hljs-formula,\n .m_1f5e827e .hljs-keyword {\n color: var(--code-keyword-color);\n }\n\n .m_1f5e827e .hljs-deletion,\n .m_1f5e827e .hljs-name,\n .m_1f5e827e .hljs-section,\n .m_1f5e827e .hljs-selector-tag,\n .m_1f5e827e .hljs-subst {\n color: var(--code-tag-color);\n }\n\n .m_1f5e827e .hljs-literal {\n color: var(--code-literal-color);\n }\n\n .m_1f5e827e .hljs-addition,\n .m_1f5e827e .hljs-attribute,\n .m_1f5e827e .hljs-meta .hljs-string,\n .m_1f5e827e .hljs-regexp,\n .m_1f5e827e .hljs-string {\n color: var(--code-string-color);\n }\n\n .m_1f5e827e .hljs-attr,\n .m_1f5e827e .hljs-number,\n .m_1f5e827e .hljs-selector-attr,\n .m_1f5e827e .hljs-selector-class,\n .m_1f5e827e .hljs-selector-pseudo,\n .m_1f5e827e .hljs-template-variable,\n .m_1f5e827e .hljs-type,\n .m_1f5e827e .hljs-variable {\n color: var(--code-variable-color);\n }\n\n .m_1f5e827e .hljs-bullet,\n .m_1f5e827e .hljs-link,\n .m_1f5e827e .hljs-meta,\n .m_1f5e827e .hljs-selector-id,\n .m_1f5e827e .hljs-symbol,\n .m_1f5e827e .hljs-title,\n .m_1f5e827e .hljs-built_in,\n .m_1f5e827e .hljs-class .hljs-title,\n .m_1f5e827e .hljs-title.class_ {\n color: var(--code-class-color);\n }\n\n .m_1f5e827e .hljs-emphasis {\n font-style: italic;\n }\n\n .m_1f5e827e .hljs-strong {\n font-weight: 700;\n }\n\n .m_1f5e827e .hljs-link {\n text-decoration: underline;\n }\n",""]);const c=t},31812:(n,e,a)=>{a.r(e),a.d(e,{default:()=>Z});var o=a(31635),l=a(74848),r=a(40295),t=a.n(r),c=a(34164),i=a(19878),s=a(88149),d=a(59396),m=a(2412),h=a(46100),p=a(52837),v=a(46076),f=a(14791),g=a(20916),b=a(12335),u=a(48324),_=a(1725),x=a(61617),j=a(64670);function y({expanded:n,style:e,...a}){return(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{width:(0,s.D)(18),height:(0,s.D)(18),...e},viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...a,children:n?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,l.jsx)("path",{d:"M12 13v-8l-3 3m6 0l-3 -3"}),(0,l.jsx)("path",{d:"M9 17l1 0"}),(0,l.jsx)("path",{d:"M14 17l1 0"}),(0,l.jsx)("path",{d:"M19 17l1 0"}),(0,l.jsx)("path",{d:"M4 17l1 0"})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,l.jsx)("path",{d:"M12 11v8l3 -3m-6 0l3 3"}),(0,l.jsx)("path",{d:"M9 7l1 0"}),(0,l.jsx)("path",{d:"M14 7l1 0"}),(0,l.jsx)("path",{d:"M19 7l1 0"}),(0,l.jsx)("path",{d:"M4 7l1 0"})]})})}function w({fileIcon:n,fileName:e,getFileIcon:a,className:o,style:r}){return n?(0,l.jsx)("span",{className:o,style:r,children:n}):a&&e?(0,l.jsx)("span",{className:o,style:r,children:a(e)}):null}var k=a(8596),C=a(5639);const A={...k.A,root:(0,c.A)(k.A.root,C.A.theme)},M={withHeader:!0,copyLabel:"Copy code",copiedLabel:"Copied",maxCollapsedHeight:(0,s.D)("8rem"),expandCodeLabel:"Expand code",collapseCodeLabel:"Collapse code",withCopyButton:!0},N=(0,d.V)(((n,{maxCollapsedHeight:e})=>({root:{"--ch-max-collapsed-height":(0,s.D)(e)}}))),L=(0,m.P9)(((n,e)=>{const a=(0,h.Y)("CodeHighlightTabs",M,n),{classNames:o,className:t,style:c,styles:s,unstyled:d,vars:m,children:k,code:C,defaultActiveTab:L,activeTab:z,onTabChange:H,withHeader:I,copiedLabel:T,copyLabel:E,getFileIcon:S,maxCollapsedHeight:B,expanded:F,defaultExpanded:V,onExpandedChange:D,expandCodeLabel:P,collapseCodeLabel:q,withExpandButton:K,withCopyButton:W,mod:Z,...R}=a,X=(0,p.I)({name:"CodeHighlightTabs",props:a,classes:A,className:t,style:c,classNames:o,styles:s,unstyled:d,vars:m,varsResolver:N}),[Y,G]=(0,x.Z)({defaultValue:L,value:z,finalValue:0,onChange:H}),[J,O]=(0,x.Z)({defaultValue:V,value:F,finalValue:!0,onChange:D}),Q=Array.isArray(C)?C:[C],U=Q[Y],$=i.A.highlight(U.code.trim(),{language:U.language||"plaintext"}).value,nn=Q.map(((n,e)=>(0,r.createElement)(v.N,{...X("file"),key:n.fileName,mod:{active:e===Y},onClick:()=>G(e)},(0,l.jsx)(w,{fileIcon:n.icon,getFileIcon:S,fileName:n.fileName,...X("fileIcon")}),(0,l.jsx)("span",{children:n.fileName}))));return(0,l.jsxs)(f.a,{...X("root"),mod:[{collapsed:!J},Z],ref:e,...R,dir:"ltr",children:[I&&(0,l.jsxs)("div",{...X("header"),children:[(0,l.jsx)(g.F,{type:"never",dir:"ltr",offsetScrollbars:!1,children:(0,l.jsx)("div",{...X("files"),children:nn})}),(0,l.jsxs)("div",{...X("controls"),children:[K&&(0,l.jsx)(b.m,{label:J?q:P,fz:"sm",position:"left",children:(0,l.jsx)(u.M,{onClick:()=>O(!J),variant:"none","aria-label":J?q:P,...X("control"),children:(0,l.jsx)(y,{expanded:J})})}),W&&(0,l.jsx)(_.i,{value:U.code.trim(),children:({copied:n,copy:e})=>(0,l.jsx)(b.m,{label:n?T:E,fz:"sm",position:"left",children:(0,l.jsx)(u.M,{onClick:e,variant:"none",...X("control"),"aria-label":n?T:E,children:(0,l.jsx)(j.T,{copied:n})})})})]})]}),(0,l.jsx)(g.F,{type:"auto",dir:"ltr",offsetScrollbars:!1,children:(0,l.jsx)(f.a,{...X("codeWrapper"),mod:{expanded:J},children:(0,l.jsx)("pre",{...X("pre"),children:(0,l.jsx)("code",{...X("code"),dangerouslySetInnerHTML:{__html:$}})})})}),(0,l.jsx)(v.N,{...X("showCodeButton"),mod:{hidden:J},onClick:()=>O(!0),children:P})]})}));L.displayName="@mantine/core/CodeHighlightTabs",L.classes=A;var z=a(85072),H=a.n(z),I=a(97825),T=a.n(I),E=a(55056),S=a.n(E),B=a(10540),F=a.n(B),V=a(41113),D=a.n(V),P=a(59215),q={};q.styleTagTransform=D(),q.setAttributes=S(),q.insert=function(n){var e=document.querySelector("head"),a=window._lastElementInsertedByStyleLoader;a?a.nextSibling?e.insertBefore(n,a.nextSibling):e.appendChild(n):e.insertBefore(n,e.firstChild),window._lastElementInsertedByStyleLoader=n},q.domAPI=T(),q.insertStyleElement=F(),H()(P.A,q),P.A&&P.A.locals&&P.A.locals;var K=a(96254),W=a(57479);const Z=function(n){n.setProps;var e=n.loading_state,a=n.code,l=(0,o.Tt)(n,["setProps","loading_state","code"]),r=[];return Array.isArray(a)?a.forEach((function(n,e){r.push((0,K.lK)(n,["icon"]))})):r.push((0,K.lK)(a,["icon"])),t().createElement(L,(0,o.Cl)({"data-dash-is-loading":(0,W.A_)(e)||void 0,code:r},l))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[857],{58061:(e,t,i)=>{i.r(t),i.d(t,{default:()=>B});var o=i(31635),r=i(74848),a=i(40295),s=i.n(a),n=i(86279),l=i(84124),c=i(91222),d=i(5614),p=i(57158),h=i(44653),u=i(28327),m=i(34296),y=i(77984),x=i(23495),f=i(51658),v=i(15894),k=(0,u.gu)({chartName:"ComposedChart",GraphicalChild:[n.N,l.G,c.y,m.X],axisComponents:[{axisType:"xAxis",AxisComp:y.W},{axisType:"yAxis",AxisComp:x.h},{axisType:"zAxis",AxisComp:f.K}],formatAxisMap:v.pr}),A=i(97018),C=i(91706),P=i(69107),g=i(78687),b=i(59396),D=i(86344),N=i(2412),S=i(46100),L=i(1101),j=i(99274),w=i(52837),O=i(14791),z=i(6585),I=i(45849),W=i(88498),T=i(89133);const K={withXAxis:!0,withYAxis:!0,withTooltip:!0,tooltipAnimationDuration:0,tickLine:"y",strokeDasharray:"5 5",gridAxis:"x",withDots:!0,connectNulls:!0,strokeWidth:2,curveType:"monotone"},M=(0,b.V)(((e,{textColor:t,gridColor:i})=>({root:{"--chart-text-color":t?(0,D.r)(t,e):void 0,"--chart-grid-color":i?(0,D.r)(i,e):void 0}}))),$=(0,N.P9)(((e,t)=>{const i=(0,S.Y)("CompositeChart",K,e),{classNames:o,className:s,style:u,styles:m,unstyled:f,vars:v,data:b,withLegend:N,legendProps:$,series:_,onMouseLeave:Y,dataKey:B,withTooltip:Q,withXAxis:E,withYAxis:F,gridAxis:X,tickLine:G,xAxisProps:R,yAxisProps:H,unit:J,tooltipAnimationDuration:V,strokeDasharray:Z,gridProps:q,tooltipProps:U,referenceLines:ee,withDots:te,dotProps:ie,activeDotProps:oe,strokeWidth:re,connectNulls:ae,curveType:se,dir:ne,valueFormatter:le,children:ce,lineProps:de,xAxisLabel:pe,yAxisLabel:he,withRightYAxis:ue,rightYAxisLabel:me,rightYAxisProps:ye,withPointLabels:xe,areaProps:fe,barProps:ve,withBarValueLabel:ke,minBarSize:Ae,maxBarWidth:Ce,composedChartProps:Pe,...ge}=i,be=(0,L.xd)(),De="none"!==X&&("x"===G||"xy"===G),Ne="none"!==X&&("y"===G||"xy"===G),[Se,Le]=(0,a.useState)(null),je=null!==Se,{resolvedClassNames:we,resolvedStyles:Oe}=(0,j.Y)({classNames:o,styles:m,props:i}),ze=(0,w.I)({name:"CompositeChart",classes:T.A,props:i,className:s,style:u,classNames:o,styles:m,unstyled:f,vars:v,varsResolver:M}),Ie=_.map((e=>{const t=(0,D.r)(e.color,be),i=je&&Se!==e.name;return"line"===e.type?(0,a.createElement)(n.N,{...ze("line"),key:e.name,name:e.name,dataKey:e.name,dot:!!te&&{fillOpacity:i?0:1,strokeOpacity:i?0:1,strokeWidth:1,fill:t,stroke:t,...ie},activeDot:!!te&&{fill:"var(--mantine-color-white)",stroke:t,...oe},fill:t,stroke:t,strokeWidth:re,isAnimationActive:!1,fillOpacity:i?0:1,strokeOpacity:i?.5:1,connectNulls:ae,type:se,strokeDasharray:e.strokeDasharray,yAxisId:e.yAxisId||"left",label:xe?(0,r.jsx)(W.x,{valueFormatter:le}):void 0,..."function"==typeof de?de(e):de}):"area"===e.type?(0,a.createElement)(l.G,{...ze("area"),key:e.name,name:e.name,type:se,dataKey:e.name,fill:t,strokeWidth:re,stroke:t,isAnimationActive:!1,connectNulls:ae,dot:!!te&&{fillOpacity:i?0:1,strokeOpacity:i?0:1,strokeWidth:1,fill:t,stroke:t,...ie},activeDot:!!te&&{fill:be.white,stroke:t,strokeWidth:2,r:4,...oe},fillOpacity:i?0:.2,strokeOpacity:i?.5:1,strokeDasharray:e.strokeDasharray,yAxisId:e.yAxisId||"left",label:xe?(0,r.jsx)(W.x,{valueFormatter:le}):void 0,..."function"==typeof fe?fe(e):fe}):"bar"===e.type?(0,a.createElement)(c.y,{...ze("bar"),key:e.name,name:e.name,dataKey:e.name,fill:t,stroke:t,isAnimationActive:!1,fillOpacity:i?.1:1,strokeOpacity:i?.2:0,yAxisId:e.yAxisId||"left",minPointSize:Ae,..."function"==typeof ve?ve(e):ve},ke&&(0,r.jsx)(d.Z,{position:"top",fontSize:12,fill:"var(--chart-bar-label-color, var(--mantine-color-dimmed))",formatter:le})):null})),We=ee?.map(((e,t)=>{const i=(0,D.r)(e.color,be);return(0,r.jsx)(p.e,{stroke:e.color?i:"var(--chart-grid-color)",strokeWidth:1,yAxisId:e.yAxisId||"left",...e,label:{value:e.label,fill:e.color?i:"currentColor",fontSize:12,position:e.labelPosition??"insideBottomLeft"},...ze("referenceLine")},t)})),Te={axisLine:!1,type:"number",tickLine:!!Ne&&{stroke:"currentColor"},allowDecimals:!0,unit:J,tickFormatter:le,...ze("axis")};return(0,r.jsx)(O.a,{ref:t,...ze("root"),onMouseLeave:e=>{Le(null),Y?.(e)},dir:ne||"ltr",...ge,children:(0,r.jsx)(h.u,{...ze("container"),children:(0,r.jsxs)(k,{data:b,maxBarSize:Ce,margin:{bottom:pe?30:void 0,left:he?10:void 0,right:he?5:void 0},...Pe,children:[N&&(0,r.jsx)(A.s,{verticalAlign:"top",content:e=>(0,r.jsx)(z._,{payload:e.payload,onHighlight:Le,legendPosition:$?.verticalAlign||"top",classNames:we,styles:Oe,series:_}),...$}),(0,r.jsxs)(y.W,{hide:!E,dataKey:B,tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:!!De&&{stroke:"currentColor"},minTickGap:5,...ze("axis"),...R,children:[pe&&(0,r.jsx)(C.J,{position:"insideBottom",offset:-20,fontSize:12,...ze("axisLabel"),children:pe}),R?.children]}),(0,r.jsxs)(x.h,{yAxisId:"left",orientation:"left",tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!F,...Te,...H,children:[he&&(0,r.jsx)(C.J,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...ze("axisLabel"),children:he}),H?.children]}),(0,r.jsxs)(x.h,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!ue,...Te,...ye,children:[me&&(0,r.jsx)(C.J,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...ze("axisLabel"),children:me}),H?.children]}),(0,r.jsx)(P.d,{strokeDasharray:Z,vertical:"y"===X||"xy"===X,horizontal:"x"===X||"xy"===X,...ze("grid"),...q}),Q&&(0,r.jsx)(g.m,{animationDuration:V,isAnimationActive:0!==V,position:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:Z},content:({label:e,payload:t})=>(0,r.jsx)(I.I,{label:e,payload:t,unit:J,classNames:we,styles:Oe,series:_,valueFormatter:le}),...U}),Ie,We,ce]})})})}));$.displayName="@mantine/charts/CompositeChart",$.classes=T.A;var _=i(83837),Y=i(57479);const B=function(e){var t=e.setProps,i=e.loading_state,r=(e.clickData,e.hoverData,e.highlightHover),n=void 0!==r&&r,l=(e.hoverSeriesName,e.clickSeriesName,e.composedChartProps),c=e.barProps,d=e.lineProps,p=e.areaProps,h=e.activeDotProps,u=(0,o.Tt)(e,["setProps","loading_state","clickData","hoverData","highlightHover","hoverSeriesName","clickSeriesName","composedChartProps","barProps","lineProps","areaProps","activeDotProps"]),m=(0,a.useState)(null),y=m[0],x=m[1],f=n&&null!==y,v=(0,a.useRef)(null),k=function(e){var t,i,o;(0,_.$Q)(e)&&(v.current=null!==(o=null===(i=null===(t=e.tooltipPayload)||void 0===t?void 0:t[0])||void 0===i?void 0:i.name)&&void 0!==o?o:e.name)},A=function(e){var t,i,o;if((0,_.$Q)(e)){var r=null!==(o=null===(i=null===(t=e.tooltipPayload)||void 0===t?void 0:t[0])||void 0===i?void 0:i.name)&&void 0!==o?o:e.name;v.current=r,x(r)}},C=function(){x(null)},P=function(e,t){var i=null,r=f&&y!==e.name;return"bar"===t?i=null!=c?c:{}:"area"===t?i=null!=p?p:{}:"line"===t&&(i=null!=d?d:{}),r&&(i.fillOpacity=.1,i.strokeOpacity=.2),(0,o.Cl)((0,o.Cl)({},i),{onClick:k,onMouseOver:A,onMouseOut:C})},g=(0,o.Cl)((0,o.Cl)({},l),{onClick:function(e){(0,_.$Q)(e)&&t({clickSeriesName:v.current,clickData:(0,_.X$)(e)}),v.current=null},onMouseOver:function(e){(0,_.$Q)(e)&&t({hoverSeriesName:v.current,hoverData:(0,_.X$)(e)}),v.current=null}});return s().createElement($,(0,o.Cl)({"data-dash-is-loading":(0,Y.A_)(i)||void 0,composedChartProps:g,barProps:function(e){return P(e,"bar")},lineProps:function(e){return P(e,"line")},areaProps:function(e){return P(e,"area")},activeDotProps:(0,o.Cl)((0,o.Cl)({},h),{onClick:function(e,t){(0,_.$Q)(e)&&(v.current=t.dataKey)},onMouseOver:function(e,t){if((0,_.$Q)(e)){var i=t.dataKey;v.current=i,x(i)}},onMouseOut:C})},u))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[990],{39043:(e,a,t)=>{t.r(a),t.d(a,{default:()=>w});var s=t(31635),l=t(74848),o=t(72050),r=t(44653),i=t(62209),n=t(63161),c=t(78687),d=t(59396),m=t(86344),h=t(88149),p=t(2412),v=t(46100),u=t(1101),y=t(52837),k=t(99274),x=t(14791),b=t(45849),f={root:"m_a410e613",label:"m_ddb0bfe3"};const g={withTooltip:!0,withLabelsLine:!0,paddingAngle:0,thickness:20,size:160,strokeWidth:1,startAngle:0,endAngle:360,labelsType:"value",tooltipDataSource:"all"},A=(0,d.V)(((e,{strokeColor:a,labelColor:t,withLabels:s,size:l})=>({root:{"--chart-stroke-color":a?(0,m.r)(a,e):void 0,"--chart-labels-color":t?(0,m.r)(t,e):void 0,"--chart-size":s?(0,h.D)(l+80):(0,h.D)(l)}}))),D=(e,a,t,s)=>"percent"===e?`${(100*t).toFixed(0)}%`:"function"==typeof s?s(a):a,C=(e,a)=>({x:t,y:s,cx:o,cy:r,percent:i,value:n})=>(0,l.jsx)("text",{x:t,y:s,cx:o,cy:r,textAnchor:t>o?"start":"end",fill:"var(--chart-labels-color, var(--mantine-color-dimmed))",fontFamily:"var(--mantine-font-family)",fontSize:12,children:(0,l.jsx)("tspan",{x:t,children:D(e,n,i,a)})}),N=(0,p.P9)(((e,a)=>{const t=(0,v.Y)("DonutChart",g,e),{classNames:s,className:d,style:h,styles:p,unstyled:D,vars:N,data:j,withTooltip:S,tooltipAnimationDuration:P,tooltipProps:_,pieProps:w,paddingAngle:z,withLabels:L,withLabelsLine:F,size:T,thickness:W,strokeWidth:I,startAngle:R,endAngle:$,tooltipDataSource:Q,chartLabel:Y,children:B,pieChartProps:E,valueFormatter:K,strokeColor:M,labelsType:O,...V}=t,q=(0,u.xd)(),G=(0,y.I)({name:"DonutChart",classes:f,props:t,className:d,style:h,classNames:s,styles:p,unstyled:D,vars:N,varsResolver:A}),{resolvedClassNames:H,resolvedStyles:J}=(0,k.Y)({classNames:s,styles:p,props:t}),U=j.map(((e,a)=>(0,l.jsx)(o.f,{fill:(0,m.r)(e.color,q),stroke:"var(--chart-stroke-color, var(--mantine-color-body))",strokeWidth:I},a)));return(0,l.jsx)(x.a,{ref:a,size:T,...G("root"),...V,children:(0,l.jsx)(r.u,{children:(0,l.jsxs)(i.r,{...E,children:[(0,l.jsx)(n.F,{data:j,innerRadius:T/2-W,outerRadius:T/2,dataKey:"value",isAnimationActive:!1,paddingAngle:z,startAngle:R,endAngle:$,label:!!L&&C(O||"value",K),labelLine:!!F&&{stroke:"var(--chart-label-color, var(--mantine-color-dimmed))",strokeWidth:1},...w,children:U}),Y&&(0,l.jsx)("text",{x:"50%",y:"50%",textAnchor:"middle",dominantBaseline:"middle",...G("label"),children:Y}),S&&(0,l.jsx)(c.m,{animationDuration:P,isAnimationActive:!1,content:({payload:e})=>(0,l.jsx)(b.I,{payload:j,classNames:H,styles:J,type:"radial",segmentId:"segment"===Q?e?.[0]?.name:void 0,valueFormatter:K}),..._}),B]})})})}));N.displayName="@mantine/charts/DonutChart",N.classes=f;var j=t(40295),S=t.n(j),P=t(83837),_=t(57479);const w=function(e){var a=e.setProps,t=e.loading_state,l=(e.clickData,e.hoverData,e.clickSeriesName,e.hoverSeriesName,e.pieProps),o=(0,s.Tt)(e,["setProps","loading_state","clickData","hoverData","clickSeriesName","hoverSeriesName","pieProps"]),r=(0,s.Cl)((0,s.Cl)({},l),{onClick:function(e){if((0,P.$Q)(e)){var t=(0,P.jz)(e);a({clickData:t,clickSeriesName:t.name})}},onMouseOver:function(e){if((0,P.$Q)(e)){var t=(0,P.jz)(e);a({hoverData:t,hoverSeriesName:t.name})}}});return S().createElement(N,(0,s.Cl)({"data-dash-is-loading":(0,_.A_)(t)||void 0,pieProps:r},o))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[298],{2385:(e,s,a)=>{a.r(s),a.d(s,{default:()=>A});var t=a(31635),n=a(74848),l=a(34164),o=a(19878),c=a(2412),d=a(46100),i=a(52837),r=a(14791),g=a(8596),h=a(5639);const m={...g.A,code:(0,l.A)(g.A.code,h.A.theme)},u={language:"tsx"},p=(0,c.P9)(((e,s)=>{const a=(0,d.Y)("InlineCodeHighlight",u,e),{classNames:t,className:l,style:c,styles:g,unstyled:h,vars:p,code:_,language:y,...v}=a,A=(0,i.I)({name:"InlineCodeHighlight",props:a,classes:m,className:l,style:c,classNames:t,styles:g,unstyled:h,rootSelector:"code"}),C=o.A.highlight(_.trim(),{language:y}).value;return(0,n.jsx)(r.a,{...A("code"),component:"code",ref:s,...v,dangerouslySetInnerHTML:{__html:C}})}));p.displayName="@mantine/core/InlineCodeHighlight";var _=a(40295),y=a.n(_),v=a(57479);const A=function(e){e.setProps;var s=e.loading_state,a=(0,t.Tt)(e,["setProps","loading_state"]);return y().createElement(p,(0,t.Cl)({"data-dash-is-loading":(0,v.A_)(s)||void 0},a))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[436],{79970:(e,t,i)=>{i.r(t),i.d(t,{default:()=>W});var r=i(31635),o=i(74848),s=i(40295),a=i.n(s),n=i(86279),l=i(57158),c=i(44653),d=i(28327),h=i(77984),p=i(23495),u=i(15894),x=(0,d.gu)({chartName:"LineChart",GraphicalChild:n.N,axisComponents:[{axisType:"xAxis",AxisComp:h.W},{axisType:"yAxis",AxisComp:p.h}],formatAxisMap:u.pr}),y=i(97018),m=i(91706),f=i(69107),v=i(78687),g=i(59396),k=i(86344),A=i(2412),C=i(46100),P=i(1101),D=i(99274),L=i(52837),N=i(14791),b=i(66284),j=i(6585),S=i(45849),w=i(88498),O=i(89133);const $={withXAxis:!0,withYAxis:!0,withTooltip:!0,tooltipAnimationDuration:0,fillOpacity:1,tickLine:"y",strokeDasharray:"5 5",gridAxis:"x",withDots:!0,connectNulls:!0,strokeWidth:2,curveType:"monotone",gradientStops:[{offset:0,color:"red"},{offset:100,color:"blue"}]},z=(0,g.V)(((e,{textColor:t,gridColor:i})=>({root:{"--chart-text-color":t?(0,k.r)(t,e):void 0,"--chart-grid-color":i?(0,k.r)(i,e):void 0}}))),I=(0,A.P9)(((e,t)=>{const i=(0,C.Y)("LineChart",$,e),{classNames:r,className:a,style:d,styles:u,unstyled:g,vars:A,data:I,withLegend:M,legendProps:T,series:W,onMouseLeave:_,dataKey:Y,withTooltip:K,withXAxis:Q,withYAxis:F,gridAxis:R,tickLine:X,xAxisProps:B,yAxisProps:E,unit:G,tooltipAnimationDuration:H,strokeDasharray:J,gridProps:V,tooltipProps:q,referenceLines:U,withDots:Z,dotProps:ee,activeDotProps:te,strokeWidth:ie,lineChartProps:re,connectNulls:oe,fillOpacity:se,curveType:ae,orientation:ne,dir:le,valueFormatter:ce,children:de,lineProps:he,xAxisLabel:pe,yAxisLabel:ue,type:xe,gradientStops:ye,withRightYAxis:me,rightYAxisLabel:fe,rightYAxisProps:ve,withPointLabels:ge,...ke}=i,Ae=(0,P.xd)(),Ce="none"!==R&&("x"===X||"xy"===X),Pe="none"!==R&&("y"===X||"xy"===X),[De,Le]=(0,s.useState)(null),Ne=null!==De,{resolvedClassNames:be,resolvedStyles:je}=(0,D.Y)({classNames:r,styles:u,props:i}),Se=(0,L.I)({name:"LineChart",classes:O.A,props:i,className:a,style:d,classNames:r,styles:u,unstyled:g,vars:A,varsResolver:z}),we=`line-chart-gradient-${(0,b.B)()}`,Oe=ye?.map((e=>(0,o.jsx)("stop",{offset:`${e.offset}%`,stopColor:(0,k.r)(e.color,Ae)},e.color))),$e=W.map((e=>{const t=(0,k.r)(e.color,Ae),i=Ne&&De!==e.name;return(0,s.createElement)(n.N,{...Se("line"),key:e.name,name:e.name,dataKey:e.name,dot:!!Z&&{fillOpacity:i?0:1,strokeOpacity:i?0:1,strokeWidth:1,fill:"gradient"===xe?"var(--mantine-color-gray-7)":t,stroke:"gradient"===xe?"white":t,...ee},activeDot:!!Z&&{fill:"gradient"===xe?"var(--mantine-color-gray-7)":t,stroke:"gradient"===xe?"white":t,...te},fill:t,stroke:"gradient"===xe?`url(#${we})`:t,strokeWidth:ie,isAnimationActive:!1,fillOpacity:i?0:se,strokeOpacity:i?.5:se,connectNulls:oe,type:ae,strokeDasharray:e.strokeDasharray,yAxisId:e.yAxisId||"left",label:ge?(0,o.jsx)(w.x,{valueFormatter:ce}):void 0,..."function"==typeof he?he(e):he})})),ze=U?.map(((e,t)=>{const i=(0,k.r)(e.color,Ae);return(0,o.jsx)(l.e,{stroke:e.color?i:"var(--chart-grid-color)",strokeWidth:1,yAxisId:e.yAxisId||"left",...e,label:{value:e.label,fill:e.color?i:"currentColor",fontSize:12,position:e.labelPosition??"insideBottomLeft"},...Se("referenceLine")},t)})),Ie={axisLine:!1,..."vertical"===ne?{dataKey:Y,type:"category"}:{type:"number"},tickLine:!!Pe&&{stroke:"currentColor"},allowDecimals:!0,unit:G,tickFormatter:"vertical"===ne?void 0:ce,...Se("axis")};return(0,o.jsx)(N.a,{ref:t,...Se("root"),onMouseLeave:e=>{Le(null),_?.(e)},dir:le||"ltr",...ke,children:(0,o.jsx)(c.u,{...Se("container"),children:(0,o.jsxs)(x,{data:I,layout:ne,margin:{bottom:pe?30:void 0,left:ue?10:void 0,right:ue?5:void 0},...re,children:["gradient"===xe&&(0,o.jsx)("defs",{children:(0,o.jsx)("linearGradient",{id:we,x1:"0",y1:"0",x2:"0",y2:"1",children:Oe})}),M&&(0,o.jsx)(y.s,{verticalAlign:"top",content:e=>(0,o.jsx)(j._,{payload:e.payload,onHighlight:Le,legendPosition:T?.verticalAlign||"top",classNames:be,styles:je,series:W,showColor:"gradient"!==xe}),...T}),(0,o.jsxs)(h.W,{hide:!Q,..."vertical"===ne?{type:"number"}:{dataKey:Y},tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:!!Ce&&{stroke:"currentColor"},minTickGap:5,tickFormatter:"vertical"===ne?ce:void 0,...Se("axis"),...B,children:[pe&&(0,o.jsx)(m.J,{position:"insideBottom",offset:-20,fontSize:12,...Se("axisLabel"),children:pe}),B?.children]}),(0,o.jsxs)(p.h,{yAxisId:"left",orientation:"left",tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!F,...Ie,...E,children:[ue&&(0,o.jsx)(m.J,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...Se("axisLabel"),children:ue}),E?.children]}),(0,o.jsxs)(p.h,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!me,...Ie,...ve,children:[fe&&(0,o.jsx)(m.J,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...Se("axisLabel"),children:fe}),E?.children]}),(0,o.jsx)(f.d,{strokeDasharray:J,vertical:"y"===R||"xy"===R,horizontal:"x"===R||"xy"===R,...Se("grid"),...V}),K&&(0,o.jsx)(v.m,{animationDuration:H,isAnimationActive:0!==H,position:"vertical"===ne?{}:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:J},content:({label:e,payload:t})=>(0,o.jsx)(S.I,{label:e,payload:t,unit:G,classNames:be,styles:je,series:W,valueFormatter:ce,showColor:"gradient"!==xe}),...q}),$e,ze,de]})})})}));I.displayName="@mantine/charts/LineChart",I.classes=O.A;var M=i(83837),T=i(57479);const W=function(e){var t=e.setProps,i=e.loading_state,o=(e.clickData,e.hoverData,e.clickSeriesName,e.hoverSeriesName,e.series),n=e.highlightHover,l=void 0!==n&&n,c=e.lineChartProps,d=e.activeDotProps,h=e.lineProps,p=(0,r.Tt)(e,["setProps","loading_state","clickData","hoverData","clickSeriesName","hoverSeriesName","series","highlightHover","lineChartProps","activeDotProps","lineProps"]),u=(0,s.useState)(null),x=u[0],y=u[1],m=l&&null!==x,f=(0,s.useRef)(null),v=function(e){(0,M.$Q)(e)&&(f.current=e.name)},g=function(e){if((0,M.$Q)(e)){var t=e.name;f.current=t,y(t)}},k=function(){y(null)},A=(0,r.Cl)((0,r.Cl)({},c),{onClick:function(e){(0,M.$Q)(e)&&t({clickSeriesName:f.current,clickData:(0,M.X$)(e)}),f.current=null},onMouseOver:function(e){(0,M.$Q)(e)&&t({hoverSeriesName:f.current,hoverData:(0,M.X$)(e)}),f.current=null}});return a().createElement(I,(0,r.Cl)({"data-dash-is-loading":(0,T.A_)(i)||void 0,lineChartProps:A,series:o,activeDotProps:(0,r.Cl)((0,r.Cl)({},d),{onClick:function(e,t){(0,M.$Q)(e)&&(f.current=t.dataKey)},onMouseOver:function(e,t){if((0,M.$Q)(e)){var i=t.dataKey;f.current=i,y(i)}},onMouseOut:k}),lineProps:function(e){var t=m&&x!==e.name,i=(0,r.Cl)((0,r.Cl)({},h),{onClick:v,onMouseOver:g,onMouseOut:k});return t&&(i.fillOpacity=.1,i.strokeOpacity=.2),i}},p))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[684],{95962:(e,a,t)=>{t.r(a),t.d(a,{default:()=>_});var s=t(31635),o=t(74848),l=t(72050),i=t(44653),r=t(62209),n=t(63161),c=t(78687),d=t(59396),m=t(86344),h=t(88149),p=t(2412),v=t(46100),u=t(1101),y=t(52837),x=t(99274),k=t(14791),b=t(45849),f={root:"m_cd8943fd"};const g={withTooltip:!1,withLabelsLine:!0,paddingAngle:0,size:160,strokeWidth:1,startAngle:0,endAngle:360,tooltipDataSource:"all",labelsPosition:"outside",labelsType:"value"},A=(0,d.V)(((e,{strokeColor:a,labelColor:t,withLabels:s,size:o,labelsPosition:l})=>({root:{"--chart-stroke-color":a?(0,m.r)(a,e):void 0,"--chart-labels-color":t?(0,m.r)(t,e):void 0,"--chart-size":s&&"outside"===l?(0,h.D)(o+80):(0,h.D)(o)}}))),P=(e,a,t,s)=>"percent"===e?`${(100*t).toFixed(0)}%`:"function"==typeof s?s(a):a,N=(e,a)=>({cx:t,cy:s,midAngle:l,innerRadius:i,outerRadius:r,value:n,percent:c})=>{const d=Math.PI/180,m=i+.5*(r-i),h=t+m*Math.cos(-l*d),p=s+m*Math.sin(-l*d);return(0,o.jsx)("text",{x:h,y:p,textAnchor:h>t?"start":"end",dominantBaseline:"central",className:f.label,children:P(e,n,c,a)})},C=(e,a)=>({x:t,y:s,cx:l,cy:i,percent:r,value:n})=>(0,o.jsx)("text",{x:t,y:s,cx:l,cy:i,textAnchor:t>l?"start":"end",fill:"var(--chart-labels-color, var(--mantine-color-dimmed))",fontFamily:"var(--mantine-font-family)",fontSize:12,children:(0,o.jsx)("tspan",{x:t,children:P(e,n,r,a)})}),j=(0,p.P9)(((e,a)=>{const t=(0,v.Y)("PieChart",g,e),{classNames:s,className:d,style:h,styles:p,unstyled:P,vars:j,data:D,withTooltip:S,tooltipAnimationDuration:w,tooltipProps:z,pieProps:_,paddingAngle:L,withLabels:F,withLabelsLine:R,size:T,strokeWidth:I,startAngle:M,endAngle:W,tooltipDataSource:$,children:Q,pieChartProps:Y,labelsPosition:B,valueFormatter:E,labelsType:K,strokeColor:O,...V}=t,q=(0,u.xd)(),G=(0,y.I)({name:"PieChart",classes:f,props:t,className:d,style:h,classNames:s,styles:p,unstyled:P,vars:j,varsResolver:A}),{resolvedClassNames:H,resolvedStyles:J}=(0,x.Y)({classNames:s,styles:p,props:t}),U=D.map(((e,a)=>(0,o.jsx)(l.f,{fill:(0,m.r)(e.color,q),stroke:"var(--chart-stroke-color, var(--mantine-color-body))",strokeWidth:I},a)));return(0,o.jsx)(k.a,{ref:a,size:T,...G("root"),...V,children:(0,o.jsx)(i.u,{children:(0,o.jsxs)(r.r,{...Y,children:[(0,o.jsx)(n.F,{data:D,innerRadius:0,outerRadius:T/2,dataKey:"value",isAnimationActive:!1,paddingAngle:L,startAngle:M,endAngle:W,label:!!F&&("inside"===B?N(K||"value",E):C(K||"value",E)),labelLine:!(!R||"outside"!==B)&&{stroke:"var(--chart-label-color, var(--mantine-color-dimmed))",strokeWidth:1},..._,children:U}),S&&(0,o.jsx)(c.m,{animationDuration:w,isAnimationActive:!1,content:({payload:e})=>(0,o.jsx)(b.I,{payload:D,classNames:H,styles:J,type:"radial",segmentId:"segment"===$?e?.[0]?.name:void 0,valueFormatter:E}),...z}),Q]})})})}));j.displayName="@mantine/charts/PieChart",j.classes=f;var D=t(40295),S=t.n(D),w=t(83837),z=t(57479);const _=function(e){var a=e.setProps,t=e.loading_state,o=(e.clickData,e.hoverData,e.clickSeriesName,e.hoverSeriesName,e.pieProps),l=(0,s.Tt)(e,["setProps","loading_state","clickData","hoverData","clickSeriesName","hoverSeriesName","pieProps"]),i=(0,s.Cl)((0,s.Cl)({},o),{onClick:function(e){if((0,w.$Q)(e)){var t=(0,w.jz)(e);a({clickData:t,clickSeriesName:t.name})}},onMouseOver:function(e){if((0,w.$Q)(e)){var t=(0,w.jz)(e);a({hoverData:t,hoverSeriesName:t.name})}}});return S().createElement(j,(0,s.Cl)({"data-dash-is-loading":(0,z.A_)(t)||void 0,pieProps:i},l))}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkdash_mantine_components=self.webpackChunkdash_mantine_components||[]).push([[926],{56170:(e,t,r)=>{e.exports=r(912)},912:e=>{e.exports=function(e){return e&&e.length?e[0]:void 0}},45579:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>be});var n=r(31635),o=r(74848),a=r(40295),i=r.n(a),s=r(2680),c=r(69843),l=r.n(c),u=r(68090),p=r.n(u),y=r(56170),d=r.n(y),f=r(2404),m=r.n(f),v=r(1882),h=r.n(v),b=r(34164),g=r(59744),P=r(59938),O=r(14040),x=r(63036),j=r(20852),A=r(66613),w=r(86069),E=r(5614),k=r(94501),S=["key"];function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},R.apply(this,arguments)}function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){M(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,K(n.key),n)}}function I(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(I=function(){return!!e})()}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}function M(e,t,r){return(t=K(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K(e){var t=function(e){if("object"!=C(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==C(t)?t:t+""}var Z=function(e){function t(){var e,r,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return M((r=this,n=t,o=[].concat(i),n=L(n),e=function(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(r,I()?Reflect.construct(n,o||[],L(r).constructor):n.apply(r,o))),"state",{isAnimationFinished:!1}),M(e,"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),h()(t)&&t()})),M(e,"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),h()(t)&&t()})),M(e,"handleMouseEnter",(function(t){var r=e.props.onMouseEnter;r&&r(e.props,t)})),M(e,"handleMouseLeave",(function(t){var r=e.props.onMouseLeave;r&&r(e.props,t)})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}(t,e),r=t,o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"renderDotItem",value:function(e,t){var r;if(i().isValidElement(e))r=i().cloneElement(e,t);else if(h()(e))r=e(t);else{var n=t.key,o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,S);r=i().createElement(A.c,R({},o,{key:n,className:(0,b.A)("recharts-radar-dot","boolean"!=typeof e?e.className:"")}))}return r}}],(n=[{key:"renderDots",value:function(e){var r=this.props,n=r.dot,o=r.dataKey,a=(0,k.J9)(this.props,!1),s=(0,k.J9)(n,!0),c=e.map((function(e,r){var i=N(N(N({key:"dot-".concat(r),r:3},a),s),{},{dataKey:o,cx:e.x,cy:e.y,index:r,payload:e});return t.renderDotItem(n,i)}));return i().createElement(w.W,{className:"recharts-radar-dots"},c)}},{key:"renderPolygonStatically",value:function(e){var t,r=this.props,n=r.shape,o=r.dot,a=r.isRange,s=r.baseLinePoints,c=r.connectNulls;return t=i().isValidElement(n)?i().cloneElement(n,N(N({},this.props),{},{points:e})):h()(n)?n(N(N({},this.props),{},{points:e})):i().createElement(j.t,R({},(0,k.J9)(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:e,baseLinePoints:a?s:null,connectNulls:c})),i().createElement(w.W,{className:"recharts-radar-polygon"},t,o?this.renderDots(e):null)}},{key:"renderPolygonWithAnimation",value:function(){var e=this,t=this.props,r=t.points,n=t.isAnimationActive,o=t.animationBegin,a=t.animationDuration,c=t.animationEasing,l=t.animationId,u=this.state.prevPoints;return i().createElement(s.Ay,{begin:o,duration:a,isActive:n,easing:c,from:{t:0},to:{t:1},key:"radar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var n=t.t,o=u&&u.length/r.length,a=r.map((function(e,t){var r=u&&u[Math.floor(t*o)];if(r){var a=(0,g.Dj)(r.x,e.x),i=(0,g.Dj)(r.y,e.y);return N(N({},e),{},{x:a(n),y:i(n)})}var s=(0,g.Dj)(e.cx,e.x),c=(0,g.Dj)(e.cy,e.y);return N(N({},e),{},{x:s(n),y:c(n)})}));return e.renderPolygonStatically(a)}))}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,r=e.isAnimationActive,n=e.isRange,o=this.state.prevPoints;return!(r&&t&&t.length)||n||o&&m()(o,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.className,n=e.points,o=e.isAnimationActive;if(t||!n||!n.length)return null;var a=this.state.isAnimationFinished,s=(0,b.A)("recharts-radar",r);return i().createElement(w.W,{className:s},this.renderPolygon(),(!o||a)&&E.Z.renderCallByParent(this.props,n))}}])&&_(r.prototype,n),o&&_(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(a.PureComponent);M(Z,"displayName","Radar"),M(Z,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!P.m.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),M(Z,"getComposedData",(function(e){var t=e.radiusAxis,r=e.angleAxis,n=e.displayedData,o=e.dataKey,a=e.bandSize,i=r.cx,s=r.cy,c=!1,u=[],y="number"!==r.type&&null!=a?a:0;n.forEach((function(e,n){var a=(0,x.kr)(e,r.dataKey,n),d=(0,x.kr)(e,o),f=r.scale(a)+y,m=Array.isArray(d)?p()(d):d,v=l()(m)?void 0:t.scale(m);Array.isArray(d)&&d.length>=2&&(c=!0),u.push(N(N({},(0,O.IZ)(i,s,v,f)),{},{name:a,value:d,cx:i,cy:s,radius:v,angle:f,payload:e}))}));var f=[];return c&&u.forEach((function(e){if(Array.isArray(e.value)){var r=d()(e.value),n=l()(r)?void 0:t.scale(r);f.push(N(N({},e),{},{radius:n},(0,O.IZ)(i,s,n,e.angle)))}else f.push(e)})),{points:u,isRange:c,baseLinePoints:f}}));var J=r(44653),B=r(28327),F=r(10433),G=r(62864),W=(0,B.gu)({chartName:"RadarChart",GraphicalChild:Z,axisComponents:[{axisType:"angleAxis",AxisComp:F.r},{axisType:"radiusAxis",AxisComp:G.E}],formatAxisMap:O.pr,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),V=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$.apply(this,arguments)}function z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?z(Object(r),!0).forEach((function(t){var n,o,a,i;n=e,o=t,a=r[t],i=function(e){if("object"!=Y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o),(o="symbol"==Y(i)?i:i+"")in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Q=function(e,t,r,n){var o="";return n.forEach((function(n,a){var i=(0,O.IZ)(t,r,e,n);o+=a?"L ".concat(i.x,",").concat(i.y):"M ".concat(i.x,",").concat(i.y)})),o+="Z"},X=function(e){var t=e.cx,r=e.cy,n=e.innerRadius,o=e.outerRadius,a=e.polarAngles,s=e.radialLines;if(!a||!a.length||!s)return null;var c=H({stroke:"#ccc"},(0,k.J9)(e,!1));return i().createElement("g",{className:"recharts-polar-grid-angle"},a.map((function(e){var a=(0,O.IZ)(t,r,n,e),s=(0,O.IZ)(t,r,o,e);return i().createElement("line",$({},c,{key:"line-".concat(e),x1:a.x,y1:a.y,x2:s.x,y2:s.y}))})))},q=function(e){var t=e.cx,r=e.cy,n=e.radius,o=e.index,a=H(H({stroke:"#ccc"},(0,k.J9)(e,!1)),{},{fill:"none"});return i().createElement("circle",$({},a,{className:(0,b.A)("recharts-polar-grid-concentric-circle",e.className),key:"circle-".concat(o),cx:t,cy:r,r:n}))},U=function(e){var t=e.radius,r=e.index,n=H(H({stroke:"#ccc"},(0,k.J9)(e,!1)),{},{fill:"none"});return i().createElement("path",$({},n,{className:(0,b.A)("recharts-polar-grid-concentric-polygon",e.className),key:"path-".concat(r),d:Q(t,e.cx,e.cy,e.polarAngles)}))},ee=function(e){var t=e.polarRadius,r=e.gridType;return t&&t.length?i().createElement("g",{className:"recharts-polar-grid-concentric"},t.map((function(t,n){var o=n;return"circle"===r?i().createElement(q,$({key:o},e,{radius:t,index:n})):i().createElement(U,$({key:o},e,{radius:t,index:n}))}))):null},te=function(e){var t=e.cx,r=void 0===t?0:t,n=e.cy,o=void 0===n?0:n,a=e.innerRadius,s=void 0===a?0:a,c=e.outerRadius,l=void 0===c?0:c,u=e.gridType,p=void 0===u?"polygon":u,y=e.radialLines,d=void 0===y||y,f=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)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}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,V);return l<=0?null:i().createElement("g",{className:"recharts-polar-grid"},i().createElement(X,$({cx:r,cy:o,innerRadius:s,outerRadius:l,gridType:p,radialLines:d},f)),i().createElement(ee,$({cx:r,cy:o,innerRadius:s,outerRadius:l,gridType:p,radialLines:d},f)))};te.displayName="PolarGrid";var re=r(97018),ne=r(59396),oe=r(86344),ae=r(2412),ie=r(46100),se=r(1101),ce=r(52837),le=r(99274),ue=r(14791),pe=r(6585),ye={root:"m_1f271cf7",container:"m_cf06f58c"};const de={withPolarGrid:!0,withPolarAngleAxis:!0,withPolarRadiusAxis:!1},fe=(0,ne.V)(((e,{gridColor:t,textColor:r})=>({root:{"--chart-grid-color":t?(0,oe.r)(t,e):void 0,"--chart-text-color":r?(0,oe.r)(r,e):void 0}}))),me=(0,ae.P9)(((e,t)=>{const r=(0,ie.Y)("RadarChart",de,e),{classNames:n,className:i,style:s,styles:c,unstyled:l,vars:u,data:p,series:y,dataKey:d,gridColor:f,textColor:m,radarProps:v,radarChartProps:h,polarGridProps:b,polarAngleAxisProps:g,polarRadiusAxisProps:P,withPolarGrid:O,withPolarAngleAxis:x,withPolarRadiusAxis:j,children:A,withLegend:w,legendProps:E,...k}=r,S=(0,se.xd)(),C=(0,ce.I)({name:"RadarChart",classes:ye,props:r,className:i,style:s,classNames:n,styles:c,unstyled:l,vars:u,varsResolver:fe}),[R,D]=(0,a.useState)(null),{resolvedClassNames:N,resolvedStyles:_}=(0,le.Y)({classNames:n,styles:c,props:r}),I=y.map(((e,t)=>(0,o.jsx)(Z,{name:e.name,dataKey:e.name,stroke:(0,oe.r)(e.strokeColor||e.color,S),fill:(0,oe.r)(e.color,S),fillOpacity:R?R===e.name?e.opacity||.4:.05:e.opacity||.4,strokeOpacity:R?R===e.name?1:.1:1,isAnimationActive:!1,..."function"==typeof v?v(e):v},t)));return(0,o.jsx)(ue.a,{ref:t,...C("root"),...k,children:(0,o.jsx)(J.u,{...C("container"),children:(0,o.jsxs)(W,{data:p,...h,children:[O&&(0,o.jsx)(te,{stroke:"var(--chart-grid-color)",...b}),x&&(0,o.jsx)(F.r,{dataKey:d,...g}),j&&(0,o.jsx)(G.E,{stroke:"var(--chart-grid-color)",...P}),I,w&&(0,o.jsx)(re.s,{verticalAlign:"bottom",content:e=>(0,o.jsx)(pe._,{payload:e.payload,onHighlight:D,legendPosition:E?.verticalAlign||"bottom",classNames:N,styles:_,series:y,centered:!0}),...E}),A]})})})}));me.displayName="@mantine/charts/RadarChart",me.classes=ye;var ve=r(83837),he=r(57479);const be=function(e){var t=e.setProps,r=e.loading_state,o=(e.clickData,e.radarChartProps),a=(0,n.Tt)(e,["setProps","loading_state","clickData","radarChartProps"]),s=(0,n.Cl)((0,n.Cl)({},o),{onClick:function(e){(0,ve.$Q)(e)&&t({clickData:(0,ve.X$)(e)})}});return i().createElement(me,(0,n.Cl)({"data-dash-is-loading":(0,he.A_)(r)||void 0,radarChartProps:s},a))}}}]);