@statisticsfinland/pxvisualizer 1.0.1-d.1 → 1.0.3-d.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.
- package/README.md +53 -2
- package/dist/pxv.cjs +1 -1
- package/dist/pxv.cjs.map +1 -1
- package/dist/pxv.modern.js +1 -1
- package/dist/pxv.modern.js.map +1 -1
- package/dist/pxv.module.js +1 -1
- package/dist/pxv.module.js.map +1 -1
- package/dist/pxv.umd.js +1 -1
- package/dist/pxv.umd.js.map +1 -1
- package/dist/types/core/highcharts/drawChart.d.ts +1 -1
- package/package.json +1 -1
package/dist/pxv.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{useRef as t,useContext as n,useLayoutEffect as r,createElement as a,useMemo as i,Component as s}from"react";import*as o from"highcharts";import l from"highcharts";import c from"decimal.js";import u from"highcharts/modules/accessibility.js";import m from"highcharts/modules/exporting.js";import d from"highcharts/modules/export-data.js";import p from"highcharts/modules/offline-exporting.js";import*as h from"xlsx";import{HighchartsReact as f}from"highcharts-react-official";import{v4 as g}from"uuid";function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function y(e){var t={exports:{}};return e(t,t.exports),t.exports}var b="function"==typeof Symbol&&Symbol.for,w=b?Symbol.for("react.element"):60103,S=b?Symbol.for("react.portal"):60106,x=b?Symbol.for("react.fragment"):60107,k=b?Symbol.for("react.strict_mode"):60108,C=b?Symbol.for("react.profiler"):60114,A=b?Symbol.for("react.provider"):60109,E=b?Symbol.for("react.context"):60110,N=b?Symbol.for("react.async_mode"):60111,P=b?Symbol.for("react.concurrent_mode"):60111,T=b?Symbol.for("react.forward_ref"):60112,j=b?Symbol.for("react.suspense"):60113,M=b?Symbol.for("react.suspense_list"):60120,$=b?Symbol.for("react.memo"):60115,D=b?Symbol.for("react.lazy"):60116,O=b?Symbol.for("react.block"):60121,I=b?Symbol.for("react.fundamental"):60117,V=b?Symbol.for("react.responder"):60118,z=b?Symbol.for("react.scope"):60119;function L(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case w:switch(e=e.type){case N:case P:case x:case C:case k:case j:return e;default:switch(e=e&&e.$$typeof){case E:case T:case D:case $:case A:return e;default:return t}}case S:return t}}}function R(e){return L(e)===P}var _={AsyncMode:N,ConcurrentMode:P,ContextConsumer:E,ContextProvider:A,Element:w,ForwardRef:T,Fragment:x,Lazy:D,Memo:$,Portal:S,Profiler:C,StrictMode:k,Suspense:j,isAsyncMode:function(e){return R(e)||L(e)===N},isConcurrentMode:R,isContextConsumer:function(e){return L(e)===E},isContextProvider:function(e){return L(e)===A},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===w},isForwardRef:function(e){return L(e)===T},isFragment:function(e){return L(e)===x},isLazy:function(e){return L(e)===D},isMemo:function(e){return L(e)===$},isPortal:function(e){return L(e)===S},isProfiler:function(e){return L(e)===C},isStrictMode:function(e){return L(e)===k},isSuspense:function(e){return L(e)===j},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===x||e===P||e===C||e===k||e===j||e===M||"object"==typeof e&&null!==e&&(e.$$typeof===D||e.$$typeof===$||e.$$typeof===A||e.$$typeof===E||e.$$typeof===T||e.$$typeof===I||e.$$typeof===V||e.$$typeof===z||e.$$typeof===O)},typeOf:L},G=y(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case c:case u:case a:case s:case i:case d:return p;default:var g=p&&p.$$typeof;switch(g){case l:case m:case f:case h:case o:return g;default:return t}}case r:return t}}}var S=u,x=l,k=o,C=n,A=m,E=a,N=f,P=h,T=r,j=s,M=i,$=d,D=!1;function O(e){return w(e)===u}t.AsyncMode=c,t.ConcurrentMode=S,t.ContextConsumer=x,t.ContextProvider=k,t.Element=C,t.ForwardRef=A,t.Fragment=E,t.Lazy=N,t.Memo=P,t.Portal=T,t.Profiler=j,t.StrictMode=M,t.Suspense=$,t.isAsyncMode=function(e){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),O(e)||w(e)===c},t.isConcurrentMode=O,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===o},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===m},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===f},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===u||e===s||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===o||e.$$typeof===l||e.$$typeof===m||e.$$typeof===v||e.$$typeof===y||e.$$typeof===b||e.$$typeof===g)},t.typeOf=w}()}),q=y(function(e){e.exports="production"===process.env.NODE_ENV?_:G});function B(e){function t(e,r,l,c,d){for(var p,h,f,g,w,x=0,k=0,C=0,A=0,E=0,$=0,O=f=p=0,V=0,z=0,L=0,R=0,_=l.length,G=_-1,q="",B="",F="",H="";V<_;){if(h=l.charCodeAt(V),V===G&&0!==k+A+C+x&&(0!==k&&(h=47===k?10:47),A=C=x=0,_++,G++),0===k+A+C+x){if(V===G&&(0<z&&(q=q.replace(m,"")),0<q.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:q+=l.charAt(V)}h=59}switch(h){case 123:for(p=(q=q.trim()).charCodeAt(0),f=1,R=++V;V<_;){switch(h=l.charCodeAt(V)){case 123:f++;break;case 125:f--;break;case 47:switch(h=l.charCodeAt(V+1)){case 42:case 47:e:{for(O=V+1;O<G;++O)switch(l.charCodeAt(O)){case 47:if(42===h&&42===l.charCodeAt(O-1)&&V+2!==O){V=O+1;break e}break;case 10:if(47===h){V=O+1;break e}}V=O}}break;case 91:h++;case 40:h++;case 34:case 39:for(;V++<G&&l.charCodeAt(V)!==h;);}if(0===f)break;V++}if(f=l.substring(R,V),0===p&&(p=(q=q.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<z&&(q=q.replace(m,"")),h=q.charCodeAt(1)){case 100:case 109:case 115:case 45:z=r;break;default:z=M}if(R=(f=t(r,z,f,h,d+1)).length,0<D&&(w=o(3,f,z=n(M,q,L),r,P,N,R,h,d,c),q=z.join(""),void 0!==w&&0===(R=(f=w.trim()).length)&&(h=0,f="")),0<R)switch(h){case 115:q=q.replace(S,s);case 100:case 109:case 45:f=q+"{"+f+"}";break;case 107:f=(q=q.replace(v,"$1 $2"))+"{"+f+"}",f=1===j||2===j&&i("@"+f,3)?"@-webkit-"+f+"@"+f:"@"+f;break;default:f=q+f,112===c&&(B+=f,f="")}else f=""}else f=t(r,n(r,q,L),f,c,d+1);F+=f,f=L=z=O=p=0,q="",h=l.charCodeAt(++V);break;case 125:case 59:if(1<(R=(q=(0<z?q.replace(m,""):q).trim()).length))switch(0===O&&(p=q.charCodeAt(0),45===p||96<p&&123>p)&&(R=(q=q.replace(" ",":")).length),0<D&&void 0!==(w=o(1,q,r,e,P,N,B.length,c,d,c))&&0===(R=(q=w.trim()).length)&&(q="\0\0"),p=q.charCodeAt(0),h=q.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){H+=q+l.charAt(V);break}default:58!==q.charCodeAt(R-1)&&(B+=a(q,p,h,q.charCodeAt(2)))}L=z=O=p=0,q="",h=l.charCodeAt(++V)}}switch(h){case 13:case 10:47===k?k=0:0===1+p&&107!==c&&0<q.length&&(z=1,q+="\0"),0<D*I&&o(0,q,r,e,P,N,B.length,c,d,c),N=1,P++;break;case 59:case 125:if(0===k+A+C+x){N++;break}default:switch(N++,g=l.charAt(V),h){case 9:case 32:if(0===A+x+k)switch(E){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===A+k+x&&(z=L=1,g="\f"+g);break;case 108:if(0===A+k+x+T&&0<O)switch(V-O){case 2:112===E&&58===l.charCodeAt(V-3)&&(T=E);case 8:111===$&&(T=$)}break;case 58:0===A+k+x&&(O=V);break;case 44:0===k+C+A+x&&(z=1,g+="\r");break;case 34:case 39:0===k&&(A=A===h?0:0===A?h:A);break;case 91:0===A+k+C&&x++;break;case 93:0===A+k+C&&x--;break;case 41:0===A+k+x&&C--;break;case 40:0===A+k+x&&(0===p&&(2*E+3*$==533||(p=1)),C++);break;case 64:0===k+C+A+x+O+f&&(f=1);break;case 42:case 47:if(!(0<A+x+C))switch(k){case 0:switch(2*h+3*l.charCodeAt(V+1)){case 235:k=47;break;case 220:R=V,k=42}break;case 42:47===h&&42===E&&R+2!==V&&(33===l.charCodeAt(R+2)&&(B+=l.substring(R,V+1)),g="",k=0)}}0===k&&(q+=g)}$=E,E=h,V++}if(0<(R=B.length)){if(z=r,0<D&&void 0!==(w=o(2,B,z,e,P,N,R,c,d,c))&&0===(B=w).length)return H+B+F;if(B=z.join(",")+"{"+B+"}",0!=j*T){switch(2!==j||i(B,2)||(T=0),T){case 111:B=B.replace(b,":-moz-$1")+B;break;case 112:B=B.replace(y,"::-webkit-input-$1")+B.replace(y,"::-moz-$1")+B.replace(y,":-ms-input-$1")+B}T=0}}return H+B+F}function n(e,t,n){var a=t.trim().split(f);t=a;var i=a.length,s=e.length;switch(s){case 0:case 1:var o=0;for(e=0===s?"":e[0]+" ";o<i;++o)t[o]=r(e,t[o],n).trim();break;default:var l=o=0;for(t=[];o<i;++o)for(var c=0;c<s;++c)t[l++]=r(e[c]+" ",a[o],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function a(e,t,n,r){var s=e+";",o=2*t+3*n+4*r;if(944===o){e=s.indexOf(":",9)+1;var l=s.substring(e,s.length-1).trim();return l=s.substring(0,e).trim()+l+";",1===j||2===j&&i(l,1)?"-webkit-"+l+l:l}if(0===j||2===j&&!i(s,1))return s;switch(o){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace(E,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(l=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+l+s;case 1005:return p.test(s)?s.replace(d,":-webkit-")+s.replace(d,":-moz-")+s:s;case 1e3:switch(t=(l=s.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=s.replace(w,"tb");break;case 232:l=s.replace(w,"tb-rl");break;case 220:l=s.replace(w,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+l+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,o=(l=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:s=s.replace(l,"-webkit-"+l)+";"+s;break;case 207:case 102:s=s.replace(l,"-webkit-"+(102<o?"inline-":"")+"box")+";"+s.replace(l,"-webkit-"+l)+";"+s.replace(l,"-ms-"+l+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return l=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+l+"-ms-flex-"+l+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(k,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(k,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):s.replace(l,"-webkit-"+l)+s.replace(l,"-moz-"+l.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===n+r&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+s}return s}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),O(2!==t?r:r.replace(C,"$1"),n,t)}function s(e,t){var n=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(x," or ($1)").substring(4):"("+t+")"}function o(e,t,n,r,a,i,s,o,l,u){for(var m,d=0,p=t;d<D;++d)switch(m=$[d].call(c,e,p,n,r,a,i,s,o,l,u)){case void 0:case!1:case!0:case null:break;default:p=m}if(p!==t)return p}function l(e){return void 0!==(e=e.prefix)&&(O=null,e?"function"!=typeof e?j=1:(j=2,O=e):j=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<D){var a=o(-1,n,r,r,P,N,0,0,0,0);void 0!==a&&"string"==typeof a&&(n=a)}var i=t(M,r,n,0,0);return 0<D&&void 0!==(a=o(-2,i,r,r,P,N,i.length,0,0,0))&&(i=a),T=0,N=P=1,i}var u=/^\0+/g,m=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,f=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,k=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,N=1,P=1,T=0,j=1,M=[],$=[],D=0,O=null,I=0;return c.use=function e(t){switch(t){case void 0:case null:D=$.length=0;break;default:if("function"==typeof t)$[D++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else I=0|!!t}return e},c.set=l,void 0!==e&&l(e),c}var F={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function H(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var W=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Y=/* #__PURE__ */H(function(e){return W.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),U={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Z={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},X={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},K={};function J(e){return q.isMemo(e)?X:K[e.$$typeof]||U}K[q.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},K[q.Memo]=X;var Q=Object.defineProperty,ee=Object.getOwnPropertyNames,te=Object.getOwnPropertySymbols,ne=Object.getOwnPropertyDescriptor,re=Object.getPrototypeOf,ae=Object.prototype,ie=function e(t,n,r){if("string"!=typeof n){if(ae){var a=re(n);a&&a!==ae&&e(t,a,r)}var i=ee(n);te&&(i=i.concat(te(n)));for(var s=J(t),o=J(n),l=0;l<i.length;++l){var c=i[l];if(!(Z[c]||r&&r[c]||o&&o[c]||s&&s[c])){var u=ne(n,c);try{Q(t,c,u)}catch(e){}}}}return t};function se(){return(se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var oe=function(e,t){for(var n=[e[0]],r=0,a=t.length;r<a;r+=1)n.push(t[r],e[r+1]);return n},le=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!q.typeOf(e)},ce=Object.freeze([]),ue=Object.freeze({});function me(e){return"function"==typeof e}function de(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function pe(e){return e&&"string"==typeof e.styledComponentId}var he="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",fe="undefined"!=typeof window&&"HTMLElement"in window,ge=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV)),ve={},ye="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function be(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach(function(t){e=e.replace(/%[a-z]/,t)}),e}function we(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw"production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(be.apply(void 0,[ye[e]].concat(n)).trim())}var Se=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,a=r;e>=a;)(a<<=1)<0&&we(16,""+e);this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var i=r;i<a;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),o=0,l=t.length;o<l;o++)this.tag.insertRule(s,t[o])&&(this.groupSizes[e]++,s++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var a=n;a<r;a++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),a=r+n,i=r;i<a;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),xe=new Map,ke=new Map,Ce=1,Ae=function(e){if(xe.has(e))return xe.get(e);for(;ke.has(Ce);)Ce++;var t=Ce++;return"production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&we(16,""+t),xe.set(e,t),ke.set(t,e),t},Ee=function(e){return ke.get(e)},Ne=function(e,t){t>=Ce&&(Ce=t+1),xe.set(e,t),ke.set(t,e)},Pe="style["+he+'][data-styled-version="5.3.11"]',Te=new RegExp("^"+he+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),je=function(e,t,n){for(var r,a=n.split(","),i=0,s=a.length;i<s;i++)(r=a[i])&&e.registerName(t,r)},Me=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],a=0,i=n.length;a<i;a++){var s=n[a].trim();if(s){var o=s.match(Te);if(o){var l=0|parseInt(o[1],10),c=o[2];0!==l&&(Ne(c,l),je(e,c,o[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(s)}}},$e=function(e){var t=document.head,n=e||t,r=document.createElement("style"),a=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(he))return r}}(n),i=void 0!==a?a.nextSibling:null;r.setAttribute(he,"active"),r.setAttribute("data-styled-version","5.3.11");var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},De=function(){function e(e){var t=this.element=$e(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var a=t[n];if(a.ownerNode===e)return a}we(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Oe=function(){function e(e){var t=this.element=$e(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Ie=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ve=fe,ze={isServer:!fe,useCSSOMInjection:!ge},Le=function(){function e(e,t,n){void 0===e&&(e=ue),void 0===t&&(t={}),this.options=se({},ze,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&fe&&Ve&&(Ve=!1,function(e){for(var t=document.querySelectorAll(Pe),n=0,r=t.length;n<r;n++){var a=t[n];a&&"active"!==a.getAttribute(he)&&(Me(e,a),a.parentNode&&a.parentNode.removeChild(a))}}(this))}e.registerId=function(e){return Ae(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(se({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,a=t.target,e=n?new Ie(a):r?new De(a):new Oe(a),new Se(e)));var e,t,n,r,a},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Ae(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Ae(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Ae(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",a=0;a<n;a++){var i=Ee(a);if(void 0!==i){var s=e.names.get(i),o=t.getGroup(a);if(s&&o&&s.size){var l=he+".g"+a+'[id="'+i+'"]',c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+=e+",")}),r+=""+o+l+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),Re=/(a)(d)/gi,_e=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ge(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=_e(t%52)+n;return(_e(t%52)+n).replace(Re,"$1-$2")}var qe=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Be=function(e){return qe(5381,e)};function Fe(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(me(n)&&!pe(n))return!1}return!0}var He=Be("5.3.11"),We=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Fe(e),this.componentId=t,this.baseHash=qe(He,t),this.baseStyle=n,Le.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,a=[];if(this.baseStyle&&a.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))a.push(this.staticRulesId);else{var i=lt(this.rules,e,t,n).join(""),s=Ge(qe(this.baseHash,i)>>>0);if(!t.hasNameForId(r,s)){var o=n(i,"."+s,void 0,r);t.insertRules(r,s,o)}a.push(s),this.staticRulesId=s}else{for(var l=this.rules.length,c=qe(this.baseHash,n.hash),u="",m=0;m<l;m++){var d=this.rules[m];if("string"==typeof d)u+=d,"production"!==process.env.NODE_ENV&&(c=qe(c,d+m));else if(d){var p=lt(d,e,t,n),h=Array.isArray(p)?p.join(""):p;c=qe(c,h+m),u+=h}}if(u){var f=Ge(c>>>0);if(!t.hasNameForId(r,f)){var g=n(u,"."+f,void 0,r);t.insertRules(r,f,g)}a.push(f)}}return a.join(" ")},e}(),Ye=/^\s*\/\/.*$/gm,Ue=[":","[",".","#"],Ze=e.createContext(),Xe=e.createContext(),Ke=new Le,Je=function(e){var t,n,r,a,i=ue.options,s=ue.plugins,o=void 0===s?ce:s,l=new B(void 0===i?ue:i),c=[],u=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,a,i,s,o,l,c,u,m){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(a[0]+r),"";default:return r+(0===m?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}(function(e){c.push(e)}),m=function(e,r,i){return 0===r&&-1!==Ue.indexOf(i[n.length])||i.match(a)?e:"."+t};function d(e,i,s,o){void 0===o&&(o="&");var c=e.replace(Ye,""),u=i&&s?s+" "+i+" { "+c+" }":c;return t=o,n=i,r=new RegExp("\\"+n+"\\b","g"),a=new RegExp("(\\"+n+"\\b){2,}"),l(s||!i?"":i,u)}return l.use([].concat(o,[function(e,t,a){2===e&&a.length&&a[0].lastIndexOf(n)>0&&(a[0]=a[0].replace(r,m))},u,function(e){if(-2===e){var t=c;return c=[],t}}])),d.hash=o.length?o.reduce(function(e,t){return t.name||we(15),qe(e,t.name)},5381).toString():"",d}();function Qe(){return n(Ze)||Ke}function et(){return n(Xe)||Je}var tt=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Je);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return we(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Je),this.name+e.hash},e}(),nt=/([A-Z])/,rt=/([A-Z])/g,at=/^ms-/,it=function(e){return"-"+e.toLowerCase()};function st(e){return nt.test(e)?e.replace(rt,it).replace(at,"-ms-"):e}var ot=function(e){return null==e||!1===e||""===e};function lt(e,t,n,r){if(Array.isArray(e)){for(var a,i=[],s=0,o=e.length;s<o;s+=1)""!==(a=lt(e[s],t,n,r))&&(Array.isArray(a)?i.push.apply(i,a):i.push(a));return i}if(ot(e))return"";if(pe(e))return"."+e.styledComponentId;if(me(e)){if("function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t)return e;var l=e(t);return"production"!==process.env.NODE_ENV&&q.isElement(l)&&console.warn(de(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),lt(l,t,n,r)}var c;return e instanceof tt?n?(e.inject(n,r),e.getName(r)):e:le(e)?function e(t,n){var r,a,i=[];for(var s in t)t.hasOwnProperty(s)&&!ot(t[s])&&(Array.isArray(t[s])&&t[s].isCss||me(t[s])?i.push(st(s)+":",t[s],";"):le(t[s])?i.push.apply(i,e(t[s],s)):i.push(st(s)+": "+(r=s,(null==(a=t[s])||"boolean"==typeof a||""===a?"":"number"!=typeof a||0===a||r in F||r.startsWith("--")?String(a).trim():a+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString()}var ct=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ut(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return me(e)||le(e)?ct(lt(oe(ce,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ct(lt(oe(e,n)))}var mt=/invalid hook call/i,dt=new Set,pt=function(e,n){if("production"!==process.env.NODE_ENV){var r="The component "+e+(n?' with the id of "'+n+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",a=console.error;try{var i=!0;console.error=function(e){if(mt.test(e))i=!1,dt.delete(r);else{for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];a.apply(void 0,[e].concat(n))}},t(),i&&!dt.has(r)&&(console.warn(r),dt.add(r))}catch(e){mt.test(e.message)&&dt.delete(r)}finally{console.error=a}}},ht=function(e,t,n){return void 0===n&&(n=ue),e.theme!==n.theme&&e.theme||t||n.theme},ft=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,gt=/(^-|-$)/g;function vt(e){return e.replace(ft,"-").replace(gt,"")}var yt=function(e){return Ge(Be(e)>>>0)};function bt(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var wt=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},St=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function xt(e,t,n){var r=e[n];wt(t)&&wt(r)?kt(r,t):e[n]=t}function kt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var a=0,i=n;a<i.length;a++){var s=i[a];if(wt(s))for(var o in s)St(o)&&xt(e,s[o],o)}return e}var Ct=e.createContext(),At={};function Et(t,r,i){var s=pe(t),o=!bt(t),l=r.attrs,c=void 0===l?ce:l,u=r.componentId,m=void 0===u?function(e,t){var n="string"!=typeof e?"sc":vt(e);At[n]=(At[n]||0)+1;var r=n+"-"+yt("5.3.11"+n+At[n]);return t?t+"-"+r:r}(r.displayName,r.parentComponentId):u,d=r.displayName,p=void 0===d?function(e){return bt(e)?"styled."+e:"Styled("+de(e)+")"}(t):d,h=r.displayName&&r.componentId?vt(r.displayName)+"-"+r.componentId:r.componentId||m,f=s&&t.attrs?Array.prototype.concat(t.attrs,c).filter(Boolean):c,g=r.shouldForwardProp;s&&t.shouldForwardProp&&(g=r.shouldForwardProp?function(e,n,a){return t.shouldForwardProp(e,n,a)&&r.shouldForwardProp(e,n,a)}:t.shouldForwardProp);var v,y=new We(i,h,s?t.componentStyle:void 0),b=y.isStatic&&0===c.length,w=function(e,t){return function(e,t,r,i){var s=e.attrs,o=e.componentStyle,l=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,m=e.styledComponentId,d=e.target,p=function(e,t,n){void 0===e&&(e=ue);var r=se({},t,{theme:e}),a={};return n.forEach(function(e){var t,n,i,s=e;for(t in me(s)&&(s=s(r)),s)r[t]=a[t]="className"===t?(i=s[t],(n=a[t])&&i?n+" "+i:n||i):s[t]}),[r,a]}(ht(t,n(Ct),l)||ue,t,s),h=p[1],f=function(e,t,n,r){var a=Qe(),i=et(),s=e.generateAndInjectStyles(t?ue:n,a,i);return"production"!==process.env.NODE_ENV&&!t&&r&&r(s),s}(o,i,p[0],"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),g=r,v=h.$as||t.$as||h.as||t.as||d,y=bt(v),b=h!==t?se({},t,{},h):t,w={};for(var S in b)"$"!==S[0]&&"as"!==S&&("forwardedAs"===S?w.as=b[S]:(u?u(S,Y,v):!y||Y(S))&&(w[S]=b[S]));return t.style&&h.style!==t.style&&(w.style=se({},t.style,{},h.style)),w.className=Array.prototype.concat(c,m,f!==m?f:null,t.className,h.className).filter(Boolean).join(" "),w.ref=g,a(v,w)}(v,e,t,b)};return w.displayName=p,(v=e.forwardRef(w)).attrs=f,v.componentStyle=y,v.displayName=p,v.shouldForwardProp=g,v.foldedComponentIds=s?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):ce,v.styledComponentId=h,v.target=s?t.target:t,v.withComponent=function(e){var t=r.componentId,n=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(a[n]=e[n]);return a}(r,["componentId"]),a=t&&t+"-"+(bt(e)?e:vt(de(e)));return Et(e,se({},n,{attrs:f,componentId:a}),i)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?kt({},t.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(pt(p,h),v.warnTooManyClasses=function(e,t){var n={},r=!1;return function(a){!r&&(n[a]=!0,Object.keys(n).length>=200)&&(console.warn("Over 200 classes were generated for component "+e+(t?' with the id of "'+t+'"':"")+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={})}}(p,h)),Object.defineProperty(v,"toString",{value:function(){return"."+v.styledComponentId}}),o&&ie(v,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var Nt=function(e){return function e(t,n,r){if(void 0===r&&(r=ue),!q.isValidElementType(n))return we(1,String(n));var a=function(){return t(n,r,ut.apply(void 0,arguments))};return a.withConfig=function(a){return e(t,n,se({},r,{},a))},a.attrs=function(a){return e(t,n,se({},r,{attrs:Array.prototype.concat(r.attrs,a).filter(Boolean)}))},a}(Et,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Nt[e]=Nt(e)});var Pt=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Fe(e),Le.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var a=r(lt(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,a)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&Le.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);var Tt,jt,Mt,$t=Nt;!function(e){e.VerticalBarChart="VerticalBarChart",e.GroupVerticalBarChart="GroupVerticalBarChart",e.StackedVerticalBarChart="StackedVerticalBarChart",e.PercentVerticalBarChart="PercentVerticalBarChart",e.HorizontalBarChart="HorizontalBarChart",e.GroupHorizontalBarChart="GroupHorizontalBarChart",e.StackedHorizontalBarChart="StackedHorizontalBarChart",e.PercentHorizontalBarChart="PercentHorizontalBarChart",e.PyramidChart="PyramidChart",e.PieChart="PieChart",e.LineChart="LineChart",e.ScatterPlot="ScatterPlot",e.Table="Table"}(Tt||(Tt={})),function(e){e.Unknown="N",e.Time="T",e.Ordinal="P",e.Geological="G",e.Content="C",e.OtherClassificatory="F"}(jt||(jt={})),function(e){e.Week="Week",e.Month="Month",e.Quarter="Quarter",e.HalfYear="HalfYear",e.Year="Year",e.Decade="Decade",e.Irregular="Irregular"}(Mt||(Mt={}));const Dt={empty:{fi:"",sv:"",en:""},preliminaryData:{fi:"Ennakko",sv:"Preliminär",en:"Preliminary data"},source:{fi:"Lähde",sv:"Källa",en:"Source"},unit:{fi:"Yksikkö",sv:"Enhet",en:"Unit"},graphCreationError:{fi:"Kuviota ei voitu muodostaa",sv:"Diagrammet kunde inte skapas",en:"The graph could not be created"},thousandsSep:{fi:" ",sv:" ",en:","},thousandsSepAccessibility:{fi:"",sv:"",en:","},decimalPoint:{fi:",",sv:",",en:"."},barMultiple:{fi:"Pystypylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Flerdimensionellt vertikalt stapeldiagram.",en:"Bar chart with {numSeries} data series."},barSingle:{fi:"Pystypylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Vertikalt stapeldiagram.",en:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}."},columnSingle:{fi:"Vaakapylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Horisontellt stapeldiagram.",en:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}."},columnMultiple:{fi:"Vaakapylväskuvio, jossa {numSeries} muuttujaa.",sv:"Flerdimensionellt horisontellt stapeldiagram.",en:"Bar chart with {numSeries} data series."},lineSingle:{fi:"Viivakuvio, jossa {numPoints} havainto{#eq numPoints 1}arvo{else}arvoa{/eq}.",sv:"Linjediagram.",en:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}."},lineMultiple:{fi:"Viivakuvio, jossa {numSeries} viivaa.",sv:"Flerdimensionellt linjediagram.",en:"Line chart with {numSeries} lines."},pieSingle:{fi:"Piirakkakuvio, jossa {numPoints} {#eq numPoints 1}lohko{else}lohkoa{/eq}.",sv:"Cirkeldiagram.",en:"Pie chart with {numPoints} {#eq numPoints 1}slice{else}slices{/eq}."},pieMultiple:{fi:"Piirakkakuvio, jossa {numSeries} piirakkaa.",sv:"Flerdimensionellt cirkeldiagram.",en:"Pie chart with {numSeries} pies."},scatterSingle:{fi:"Hajontakuvio, jossa {numPoints} {#eq numPoints 1}piste{else}pistettä{/eq}.",sv:"Spridningsdiagram.",en:"Scatter chart with {numPoints} {#eq numPoints 1}point{else}points{/eq}."},scatterMultiple:{fi:"Hajontakuvio,jossa {numSeries} datasarjaa.",sv:"Flerdimensionellt spridningsdiagram.",en:"Scatter chart with {numSeries} data series."},defaultSingle:{fi:"Kuvio, jossa {numPoints} data{#eq numPoints 1}piste{else}pistettä{/eq}.",sv:"Endimensionellt diagram.",en:"Chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}."},defaultMultiple:{fi:"Kuvio, jossa {numSeries} datasarjaa.",sv:"Flerdimensionellt diagram.",en:"Chart with {numSeries} data series."},defaultChartTitle:{fi:"Kuvio",sv:"Diagrammets rubrik",en:"Chart"},chartMenuLabel:{fi:"Kuvion valikko",sv:"Diagrammets meny",en:"Chart menu"},menuButtonLabel:{fi:"Katso valikko kuviosta {chartTitle}",sv:"Visa diagrammets meny",en:"View chart menu, {chartTitle}"},credits:{fi:"{creditsStr}",sv:"{creditsStr}",en:"{creditsStr}"},legendItem:{fi:"Näytä {itemName}",sv:"Variabelvärde",en:"Show {itemName}"},legendLabel:{fi:"Kuvion selite: {legendTitle}",sv:"Bläddra visuellt i variabelvärden",en:"Chart legend: {legendTitle}"},legendLabelNoTitle:{fi:"Vaihda sarjojen näkyvyyttä, {chartTitle}",sv:"Ingen etikett",en:"Toggle series visibility, {chartTitle}"},contextButtonTitle:{fi:"Kuvion valintamenu",sv:"Diagrammets valmeny",en:"Chart context menu"},downloadPNG:{fi:"Lataa kuvio (png)",sv:"Ladda ner figuren (png)",en:"Download figure (png)"},downloadSVG:{fi:"Lataa kuvio (svg)",sv:"Ladda ner figuren (svg)",en:"Download figure (svg)"},downloadXLSX:{fi:"Lataa taulukko (xlsx)",sv:"Ladda ner tabellen (xlsx)",en:"Download table (xlsx)"},downloadCSV:{fi:"Lataa taulukko (csv)",sv:"Ladda ner tabellen (csv)",en:"Download table (csv)"},rangeCategories:{fi:"Datan arvoalue: {numCategories} luokkaa.",sv:"Diagrammets värdeområde.",en:"Data range: {numCategories} categories."},rangeFromTo:{fi:"Arvot alkavat {rangeFrom} ja päättyvät {rangeTo}.",sv:"Värdena börjar från {rangeFrom} och slutar vid {rangeTo}.",en:"Data ranges from {rangeFrom} to {rangeTo}."},timeRangeDays:{fi:"Arvoja päiviltä {range}.",sv:"Värden för dagarna {range}.",en:"Data range: {range} days."},timeRangeHours:{fi:"Arvoja tunneilta {range}",sv:"Värden för timmarna {range}",en:"Data range: {range} hours."},timeRangeMinutes:{fi:"Arvoja minuuteilta {range}",sv:"Värden för minuterna {range}",en:"Data range: {range} minutes."},timeRangeSeconds:{fi:"Arvoja sekunneilta {range}",sv:"Värden för sekunderna {range}",en:"Data range: {range} seconds."},xAxisDescriptionPlural:{fi:"Kuviolla on {numAxes} x-akselia muuttujille {#each names}{#unless @first},{/unless}{#if @last} ja{/if} {this}{/each}.",sv:"Figuren har {numAxes} x-axlar för variablerna {#each names}{#unless @first},{/unless}{#if @last} och{/if} {this}{/each}.",en:"The chart has {numAxes} X axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}."},xAxisDescriptionSingular:{fi:"Kuviolla on 1 x-akseli muuttujalle {names[0]}. {ranges[0]}",sv:"Figuren har en x-axel för variabeln {names[0]}. {ranges[0]}",en:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}"},yAxisDescriptionPlural:{fi:"Kuviolla on {numAxes} y-akselia muuttujille {#each names}{#unless @first},{/unless}{#if @last} ja{/if} {this}{/each}.",sv:"Figuren har {numAxes} y-axlar för variablerna {#each names}{#unless @first},{/unless}{#if @last} och{/if} {this}{/each}.",en:"The chart has {numAxes} Y axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}."},yAxisDescriptionSingular:{fi:"Kuviolla on 1 y-akseli muuttujalle {names[0]}. {ranges[0]}",sv:"Figuren har en y-axel för variabeln {names[0]}. {ranges[0]}",en:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}"},seriesSummaryBar:{fi:"{series.name}muuttujan {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel",en:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryBarCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}. Pylvässarja, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel, ..variabelns .. Stapel",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryColumn:{fi:"{series.name}muuttuja, pylvässarja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel",en:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryColumnCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}. Pylvässarja, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel, ..variabelns .. Stapel",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryDefault:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. Diagram",en:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryDefaultCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. diagram, ..variabelns .. Diagram",en:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryLine:{fi:"{series.name}, viiva {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. Linje",en:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryLineCombination:{fi:"{series.name}, aikasarja {seriesNumber}/{chart.series.length}. Viivassa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. linje, ..variabelns .. Linje",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryPie:{fi:"{series.name}, piirakan {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1} lohko {else}lohkoa{/eq}.",sv:"..variabelns .. Sektor",en:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}."},seriesSummaryPieCombination:{fi:"{series.name}, sarja {seriesNumber}/{chart.series.length}. Piirakasta, jossa {series.points.length} {#eq series.points.length 1} lohko{else}lohkoa{/eq}.",sv:"..variabelns .. sektor, ..variabelns .. Sektor",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}."},seriesSummaryScatter:{fi:"{series.name}, hajontakuvio {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1}piste{else}pisteet{/eq}.",sv:"..variabelns .. Punkt",en:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryScatterCombination:{fi:"{series.name}, datasarja {seriesNumber}/{chart.series.length}, hajontakuviosta {series.points.length} {#eq series.points.length 1}piste{else}pisteet{/eq}.",sv:"..variabelns .. punkt, ..variabelns .. Punkt",en:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}."},xAxisDescription:{fi:"Toisen X-akselin kuvaus, {name}",sv:"Beskrivning av andra X-axeln, {name}",en:"X axis, {name}"},yAxisDescription:{fi:"Toisen Y-akselin kuvaus, {name}",sv:"Beskrivning av andra Y-axeln, {name}",en:"Y axis, {name}"},endOfChartMarker:{fi:"Kuvion loppu.",sv:"Diagrammets slut.",en:"End of interactive chart."},loading:{fi:"Ladataan...",sv:"Laddar...",en:"Loading..."},chartContainerLabel:{fi:"{title}. Highcharts interactive chart.",sv:"{title}. Highcharts interactive chart.",en:"{title}. Highcharts interactive chart."},toggleTableModeOnText:{fi:"Näytä taulukko",sv:"Visa tabell",en:"View table"},toggleTableModeOffText:{fi:"Näytä kuvio",sv:"Visa figur",en:"View chart"},externalLink:{fi:"Ulkoinen linkki",sv:"Ulkoinen linkki",en:"External link"},quarter:{fi:"vuosineljännes",sv:"kvartal",en:"quarter"},dataMissing:{fi:"Tieto on puuttuva",sv:"Uppgift saknas",en:"Data missing"}},Ot={months:{fi:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],sv:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],en:["January","February","March","April","May","June","July","August","September","October","November","December"]},shortMonths:{fi:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],sv:["jan.","febr.","mars","april","maj","juni","juli","aug.","sept.","okt.","nov.","dec."],en:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},numericSymbols:{fi:["k","M","G","T","P","E"],sv:["k","M","G","T","P","E"],en:["k","M","G","T","P","E"]},weekdays:{fi:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],sv:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],en:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ordinalSuffices:{en:["st.","nd.","rd.","th."]}},It=new class{constructor(){this.Translations=void 0,this.ArrayTranslations=void 0,this.GetAllLanguages=()=>Object.keys(this.Translations.empty),this.Translations=Dt,this.ArrayTranslations=Ot}AddTranslations(e){for(const t in e.Translations)t in this.Translations&&(this.Translations[t]=v({},this.Translations[t],e.Translations[t]));for(const t in e.ArrayTranslations)t in this.ArrayTranslations&&(this.ArrayTranslations[t]=v({},this.ArrayTranslations[t],e.ArrayTranslations[t]))}},Vt=It.Translations,zt=It.ArrayTranslations,Lt=It.GetAllLanguages;function Rt(e){It.AddTranslations(e)}const _t=e=>e.reduce((e,t)=>e.map(e=>t.map(t=>e.concat([t]))).reduce((e,t)=>e.concat(t),[]),[[]]);function Gt(e,t,n){return n.findIndex(t=>JSON.stringify(t)===JSON.stringify(e))===t}function qt(e,t){return function(){var n;const r=[];var a,i;return e.rowVarNames&&e.rowVarNames.length>0&&this.series.name&&r.push(`${null==(a=e.rowVarNames)?void 0:a.map(e=>e[t]).join(", ")}: ${this.series.name}`),e.colVarNames&&e.colVarNames.length>0&&this.point.name&&r.push(`${null==(i=e.colVarNames)?void 0:i.map(e=>e[t]).join(", ")}: ${this.point.name}`),r.push(Kt(e,this,t)),null!=(n=this.point.options.custom)&&n.preliminary&&r.push(Vt.preliminaryData[t]),r.join("<br/>")}}function Bt(e,t){return function(n){var r;const a=[];var i,s;return e.rowVarNames&&e.rowVarNames.length>0&&n.series.name&&a.push(`${null==(i=e.rowVarNames)?void 0:i.map(e=>e[t]).join(", ")}: ${Jt(n.series.name,t)}`),e.colVarNames&&e.colVarNames.length>0&&n.name&&a.push(`${null==(s=e.colVarNames)?void 0:s.map(e=>e[t]).join(", ")}: ${Jt(n.name,t)}`),a.push(Kt(e,n,t)),null!=(r=n.options.custom)&&r.preliminary&&a.push(Vt.preliminaryData[t]),a.join(", ")}}function Ft(e){return function(){return this.value.toLocaleString(e)}}const Ht=e=>Lt().indexOf(e.toLowerCase().trim())>-1?e.toLowerCase().trim():Lt()[0];function Wt(e=null){const t=e&&e>=15?25:50;return function(){return Ut(this.value,t)}}function Yt(){return function(){return Ut(this.name,200)}}const Ut=(e,t=50)=>{const n=e.toString().length;return`${e.toString().slice(0,t).trim()}${n>t?"...":""}`};function Zt(e,t){return function(){var n,r;const a=e.series[1].rowNameGroup.map(e=>e[t]).join(", "),i=e.series[0].rowNameGroup.map(e=>e[t]).join(", "),s=null==(n=e.colVarNames)?void 0:n.map(e=>e[t]).join(", ");let o="";var l;return a&&a.length>0&&this.series.name&&(o+=`${a}: ${this.point.x.toLocaleString(t)}<br />`),i&&i.length>0&&this.key&&(o+=`${i}: ${null==(l=this.point.y)?void 0:l.toLocaleString(t)}<br />`),s&&s.length>0&&e.columnNameGroups&&e.columnNameGroups.length>0&&(o+=`${s}: ${e.columnNameGroups[this.point.index].map(e=>e[t]).join(", ")}`),null!=(r=this.point.options.custom)&&r.preliminary&&(o+=`<br />${Vt.preliminaryData[t]}`),o}}function Xt(e,t){const n=e.map(e=>e.unit).filter(Gt);if(1===n.length)return n[0][t];if(n.length>1)return e.map(e=>`${e.name[t]}: ${e.unit[t]}`).join(", ");throw new Error("Missing required unit data")}function Kt(e,t,n){return e.visualizationSettings.visualizationType===Tt.PyramidChart?Math.abs(t.y).toLocaleString(n):e.visualizationSettings.visualizationType==Tt.PercentHorizontalBarChart||e.visualizationSettings.visualizationType==Tt.PercentVerticalBarChart?`${null==(r=t.percentage)?void 0:r.toFixed(1)} (${null==(a=t.y)?void 0:a.toLocaleString(n)} ${Xt(e.units,n)})`:null!=(i=null==(s=t.y)?void 0:s.toLocaleString(n))?i:"";var r,a,i,s}function Jt(e,t){if(/^\d{4}[M,Q]\d{1,2}\*?$/.test(e)){const n=e.split("*")[0],r=/^\d{4}Q\d{1,2}$/;if(/^\d{4}M\d{1,2}$/.test(n)){const e=n.split("M");return`${e[0]} ${zt.months[t][Number(e[1])-1]}`}if(r.test(n)){const e=n.split("Q");return`${e[0]} ${function(e,t){const n=zt.ordinalSuffices[t],r=parseInt(e)-1;return null!=n&&n[r]?`${e}${n[r]}`:`${e}.`}(e[1],t)} ${Vt.quarter[t]}`}console.log("Unsupported time pattern")}return e}const Qt=(e,t,n,r=!1)=>e.series.map((a,i)=>({index:r?e.series.length-1-i:i,animation:!1,type:t,name:a.rowNameGroup.map(e=>e[n]).join(", "),data:a.series.map((t,r)=>({y:t.value,name:e.columnNameGroups[r].map(e=>e[n]).join(", "),custom:{preliminary:t.preliminary}}))}));var en;!function(e){e[e.Time=0]="Time",e[e.Ordinal=1]="Ordinal",e[e.Nominal=2]="Nominal"}(en||(en={}));const tn=1.5,nn=3,rn=8,an=.5;function sn(e,t,n){return function(){const r=function(e,t,n,r=new c(0)){var a;if(e.greaterThan(t))throw new Error("dataMinValue must me smaller or equal than dataMaxValue");if((e.lessThan(0)&&t.greaterThan(0)?t.minus(e):c.max(e.abs(),t.abs())).div(n).lessThanOrEqualTo(r))return r;const i=(e=>{const t=Array.from({length:n},(e,t)=>n-t).reduce((t,n)=>{const a=function(e){if(e.equals(0))return new c(0);const t=c.pow(10,c.log10(e).floor());return e.div(t).lessThan(tn)?t.div(10).mul(e.div(t.div(10)).ceil()):e.div(t).lessThan(nn)?e.mul(2).div(t).ceil().mul(t).div(2):e.div(t).lessThan(rn)?e.div(t).ceil().mul(t):e.div(t.mul(10)).ceil().mul(10).mul(t)}(e.div(n));return a.greaterThanOrEqualTo(r)&&t.push([(i=a,i.equals(0)?0:i.isInteger()?function(e){let t=0,n=5;for(;t<50&&e.mod(n).equals(0)&&(t++,n*=2,e.mod(n).equals(0));)t++,n*=5;return t}(i):function(e){const t=e.toString();if(t.includes("e-")){const e=t.split("e-"),n=Number.parseInt(e[1]);return e[0].endsWith("5")?-2*n+1:-2*n}{const e=t.split(".")[1];return e.endsWith("5")?-2*e.length+1:-2*e.length}}(i)),a]),t;var i},[]).sort(([e,t],[n,r])=>n-e);return t.slice(0,Math.max(2,Math.ceil(t.length*an))).sort(([e,t],[n,r])=>t.minus(r).toNumber())})(c.max(e.abs(),t.abs()));return e.lessThan(0)&&t.greaterThan(0)?null!=(a=i.map(([e,t])=>t).find(r=>e.abs().div(r).ceil().plus(t.div(r).ceil()).lessThanOrEqualTo(n)))?a:new c(NaN):i[0][1]}(e,t,(n=>{const r=c.pow(10,c.log10(c.max(e.abs(),t.abs())).floor()),a=Math.ceil(n/(12*(r.toString().length+(e.isNeg()?1:0))+25)-1);return Math.max(a,e.isNegative()&&t.isPositive()?2:1)})(this.chart.plotWidth),n),a=e.greaterThanOrEqualTo(0)?new c(0):e.div(r).floor().mul(r),i=t.lessThanOrEqualTo(0)?new c(0):t.div(r).ceil().mul(r);return Array.from({length:i.minus(a).div(r).plus(1).toNumber()},(e,t)=>r.mul(t).plus(a).toNumber())}}function on(e){let t=null,n=null,r=0;return e.forEach(e=>{e.forEach(e=>{e.value&&(!t||e.value<t)&&(t=e.value),e.value&&(!n||e.value>n)&&(n=e.value),e.precision>r&&(r=e.precision)})}),t&&n?sn(new c(t),new c(n),new c(Math.pow(10,-r))):()=>[]}function ln(e){let t=null,n=null,r=0;return e[0].forEach((a,i)=>{const s=e.reduce((e,t)=>{var n;return e+(null!=(n=t[i].value)?n:0)},0);s&&(!t||s<t)&&(t=s),s&&(!n||s>n)&&(n=s),a.precision>r&&(r=a.precision)}),t&&n?sn(new c(t),new c(n),new c(Math.pow(10,-r))):()=>[]}const cn=(e,t)=>{return{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),ordinal:!0,tickPositioner:(n=Math.max(...e.series.map(e=>e.series.length)),r=Math.max(...e.columnNameGroups.map(e=>e.reduce((e,n)=>(e>0?1:0)+e+n[t].length,0))),function(){const e=Math.ceil(n*r*10/this.chart.plotWidth),t=Math.ceil(n/e);return Array.from({length:t},(t,n)=>n*e)})};var n,r};function un(e,t){if(t){const n=new Date(t);switch(e){case Mt.Irregular:case Mt.Week:return;case Mt.Month:return{pointStart:n.getTime(),pointIntervalUnit:"month"};case Mt.Quarter:case Mt.HalfYear:return;case Mt.Year:return{pointStart:n.getTime(),pointIntervalUnit:"year"}}}}function mn(e,t){if(e.seriesType!==en.Time)return e.seriesType===en.Ordinal?cn(e,t):{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{autoRotation:[-45]}};switch(e.visualizationSettings.timeVariableIntervals){case Mt.Week:return dn(e,t);case Mt.Month:return pn();case Mt.Quarter:return hn(e,t);case Mt.HalfYear:return fn(e,t);case Mt.Year:return{type:"datetime"};default:return{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", "))}}}const dn=(e,t)=>({type:"linear",ordinal:!1,labels:{formatter:function(){return e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", ")}}}),pn=(e,t)=>({type:"datetime",ordinal:!1,labels:{formatter:function(){return l.dateFormat("%YM%m",Number(this.value))}}}),hn=(e,t)=>{var n,r,a;return{type:"linear",ordinal:!1,labels:{formatter:function(){return Number.isInteger(this.value)?e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", "):""}},tickPositioner:(r=Math.max(...e.series.map(e=>e.series.length)),a=new Date(null!=(n=e.visualizationSettings.timeSeriesStartingPoint)?n:""),function(){const e=function(e){return e<=2?Math.ceil(e):e<=4?4:e<=20?4*Math.ceil(e/4):e<=40?20*Math.ceil(e/20):40*Math.ceil(e/40)}(60*r/this.chart.plotWidth),t=function(e,t){const n=(4*t.getFullYear()+Math.floor(t.getMonth()/3))%e;return n>0?e-n:0}(e,a),n=Math.ceil((r-t)/e);return Array.from({length:n},(n,r)=>t+r*e)})}},fn=(e,t)=>{var n,r,a;return{type:"linear",ordinal:!1,labels:{formatter:function(){return Number.isInteger(this.value)?e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", "):""}},tickPositioner:(r=Math.max(...e.series.map(e=>e.series.length)),a=new Date(null!=(n=e.visualizationSettings.timeSeriesStartingPoint)?n:""),function(){const e=function(e){return e<=2?Math.ceil(e):e<=10?2*Math.ceil(e/2):e<=20?10*Math.ceil(e/10):20*Math.ceil(e/20)}(60*r/this.chart.plotWidth),t=function(e,t){const n=(2*t.getFullYear()+Math.floor(t.getMonth()/6))%e;return n>0?e-n:0}(e,a),n=Math.ceil((r-t)/e);return Array.from({length:n},(n,r)=>t+r*e)})}},gn=e=>({accessibility:{keyboardNavigation:{seriesNavigation:{mode:"serialize"}}},responsive:{rules:[{condition:{maxHeight:600},chartOptions:{chart:{height:600}}}]},exporting:{enabled:!1,fallbackToExportServer:!1},lang:{accessibility:{thousandsSep:Vt.thousandsSepAccessibility[e],credits:Vt.credits[e],chartTypes:{barMultiple:Vt.barMultiple[e],barSingle:Vt.barSingle[e],columnMultiple:Vt.columnMultiple[e],columnSingle:Vt.columnSingle[e],lineSingle:Vt.lineSingle[e],lineMultiple:Vt.lineMultiple[e],pieSingle:Vt.pieSingle[e],scatterSingle:Vt.scatterSingle[e],scatterMultiple:Vt.scatterMultiple[e],defaultSingle:Vt.defaultSingle[e],defaultMultiple:Vt.defaultMultiple[e]},defaultChartTitle:Vt.defaultChartTitle[e],exporting:{chartMenuLabel:Vt.chartMenuLabel[e],menuButtonLabel:Vt.menuButtonLabel[e]},legend:{legendItem:Vt.legendItem[e],legendLabel:Vt.legendLabel[e],legendLabelNoTitle:Vt.legendLabelNoTitle[e]},axis:{rangeCategories:Vt.rangeCategories[e],rangeFromTo:Vt.rangeFromTo[e],timeRangeDays:Vt.timeRangeDays[e],timeRangeHours:Vt.timeRangeHours[e],timeRangeMinutes:Vt.timeRangeMinutes[e],timeRangeSeconds:Vt.timeRangeSeconds[e],xAxisDescriptionPlural:Vt.xAxisDescriptionPlural[e],xAxisDescriptionSingular:Vt.xAxisDescriptionSingular[e],yAxisDescriptionPlural:Vt.yAxisDescriptionPlural[e],yAxisDescriptionSingular:Vt.yAxisDescriptionSingular[e]},series:{summary:{bar:Vt.seriesSummaryBar[e],barCombination:Vt.seriesSummaryBarCombination[e],column:Vt.seriesSummaryColumn[e],columnCombination:Vt.seriesSummaryColumnCombination[e],default:Vt.seriesSummaryDefault[e],defaultCombination:Vt.seriesSummaryDefaultCombination[e],line:Vt.seriesSummaryLine[e],lineCombination:Vt.seriesSummaryLineCombination[e],pie:Vt.seriesSummaryPie[e],pieCombination:Vt.seriesSummaryPieCombination[e],scatter:Vt.seriesSummaryScatter[e],scatterCombination:Vt.seriesSummaryScatterCombination[e]},xAxisDescription:Vt.xAxisDescription[e],yAxisDescription:Vt.yAxisDescription[e]},screenReaderSection:{endOfChartMarker:Vt.endOfChartMarker[e]},chartContainerLabel:Vt.chartContainerLabel[e]},thousandsSep:Vt.thousandsSep[e],decimalPoint:Vt.decimalPoint[e],contextButtonTitle:Vt.contextButtonTitle[e],downloadCSV:Vt.downloadCSV[e],downloadPNG:Vt.downloadPNG[e],downloadSVG:Vt.downloadSVG[e],months:zt.months[e],shortMonths:zt.shortMonths[e],weekdays:zt.weekdays[e],loading:Vt.loading[e],numericSymbols:null},colors:["#1a56ec","#f2644c","#1b3160","#9c8d87","#26625d","#7791e8","#8c1131","#878eaf","#c73268","#288c72"],chart:{style:{fontFamily:'"Barlow Semi Condensed", Verdana, sans-serif'},spacingBottom:30,spacingLeft:20,height:"56.25%"},tooltip:{enabled:!0,headerFormat:"{point.key}<br/>",pointFormat:"{point.y}",backgroundColor:"#ffffff",outside:!0,style:{color:"#000",fontSize:"1rem",fontWeight:"400"}},title:{style:{color:"#000",fontSize:"1.25rem",fontWeight:"500",textAlign:"left"},align:"left",margin:45},subtitle:{style:{color:"#000",fontSize:"1.25rem",fontWeight:"400"},align:"left"},credits:{position:{align:"left",x:5},style:{color:"#000",fontSize:"1rem",fontWeight:"400",textAlign:"left",cursor:"default"},href:""},yAxis:{title:{style:{color:"#000",fontSize:"1rem",fontWeight:"400",left:0,textAlign:"left",textOverflow:"ellipsis"},align:"high",rotation:0,textAlign:"left",offset:0,y:-15,x:55,reserveSpace:!1},lineColor:"#000",lineWidth:1,gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5,labels:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"},autoRotation:[0],allowOverlap:!1,formatter:Ft(e)}},xAxis:{labels:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"},allowOverlap:!1,autoRotation:[0]},title:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"}},lineColor:"#000",lineWidth:1,crosshair:!0},legend:{enabled:!1,itemStyle:{fontSize:"1rem",fontWeight:"400",color:"#000"},align:"center"},plotOptions:{pie:{dataLabels:{enabled:!0,useHTML:!0,connectorShape:"crookedLine",connectorColor:"#000000",style:{fontSize:"1rem",fontWeight:"400",color:"#000",textOverflow:"crop"}}},column:{groupPadding:.2,pointPadding:.01},bar:{groupPadding:.2,pointPadding:.01},series:{animation:!1}}}),vn=(e,t)=>({accessibility:{point:{descriptionFormatter:Bt(e,t)}},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},credits:{text:`${Vt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},tooltip:{formatter:qt(e,t)},yAxis:[yn]}),yn={plotLines:[{value:0,color:"#000",width:1}]},bn=(e,t)=>{var n;const r=null==(n=gn(t).tooltip)?void 0:n.style;return{enabled:e.visualizationSettings.showDataPoints,style:r}},wn=(e,t)=>v({},yn,{tickPositioner:on(e.series.map(e=>e.series)),title:{text:Xt(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}}),Sn=(e,t)=>v({},vn(e,t),{chart:{type:"bar"},xAxis:{categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{formatter:Wt(e.columnNameGroups.length),style:{width:200}}}}),xn=(e,t)=>v({},Sn(e,t),{series:Qt(e,"bar",t,!0),legend:{enabled:!0,layout:"horizontal",reversed:!0,margin:30}}),kn=(e,t)=>v({},vn(e,t),{chart:{type:"column"},xAxis:mn(e,t)}),Cn=(e,t)=>v({},kn(e,t),{series:Qt(e,"column",t),yAxis:{softMin:0,softMax:0,title:{text:Xt(e.units,t)}}}),An=(e,t)=>v({},kn(e,t),{series:Qt(e,"column",t,!0),legend:{enabled:!0,layout:"vertical"}}),En=(e,t)=>{var n,r;return v({},vn(e,t),{chart:{type:"pie"},plotOptions:{pie:{dataLabels:{formatter:(r=null!=(n=e.visualizationSettings.showDataPoints)&&n,function(){const e=r?` (${Math.round(this.percentage)}%)`:"";return Ut(this.point.name,20)+e})}}},series:e.series.map(n=>({animation:!1,type:"pie",name:n.rowNameGroup.map(e=>e[t]).join(", "),data:n.series.map((n,r)=>({y:n.value,name:e.columnNameGroups[r].map(e=>e[t]).join(", "),unit:Xt(e.units,t),custom:{preliminary:n.preliminary}}))}))})},Nn=(e,t)=>{const n=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),r=Math.max(...e.series.map(e=>Math.max(...e.series.map(e=>{var t;return null!=(t=e.value)?t:0}))));return v({},vn(e,t),{chart:{type:"bar"},xAxis:{categories:n,reversed:!1,labels:{style:{width:200}}},yAxis:v({},yn,{min:-Math.abs(r),max:Math.abs(r),title:{text:Xt(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},labels:{formatter:function(){return Math.abs(this.value).toLocaleString(t)}}}),legend:{enabled:!0,margin:30},series:e.series.map((n,r)=>({animation:!1,type:"bar",name:n.rowNameGroup.map(e=>e[t]).join(", "),data:n.series.map((n,a)=>({y:0===r&&n.value?-n.value:n.value,name:e.columnNameGroups[a].map(e=>e[t]).join(", "),custom:{preliminary:n.preliminary}}))})),plotOptions:{series:{stacking:"normal",dataLabels:v({},bn)}},exporting:{enabled:!1}})},Pn=(e,t)=>`\n ${e[1].rowNameGroup.map(e=>e[t]).join(", ")}: {point.x}<br/>\n ${e[0].rowNameGroup.map(e=>e[t]).join(", ")}: {point.y}\n `,Tn=(e,t)=>{switch(t.visualizationSettings.visualizationType){case Tt.LineChart:return((e,t)=>{var n;const r=null!=(n=e.visualizationSettings)&&n.cutValueAxis?void 0:0;return v({},vn(e,t),{chart:{type:"line"},xAxis:v({},mn(e,t),{gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5}),yAxis:v({},yn,{softMin:r,softMax:r,title:{text:Xt(e.units,t)}}),plotOptions:{line:{dataLabels:v({},bn(e,t)),marker:{enabled:!1}},series:un(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:{enabled:e.series.length>1,labelFormatter:Yt()},series:Qt(e,"line",t),exporting:{enabled:!1}})})(t,e);case Tt.VerticalBarChart:return((e,t)=>v({},Cn(e,t),{series:[],yAxis:v({},yn,{softMin:0,softMax:0,title:{text:Xt(e.units,t)}}),plotOptions:{series:v({},un(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:v({},bn(e,t))})},exporting:{enabled:!1}}))(t,e);case Tt.HorizontalBarChart:return((e,t)=>v({},Sn(e,t),{series:Qt(e,"bar",t),chart:{type:"bar",spacingBottom:60},yAxis:v({},wn(e,t),{softMin:0,max:100}),legend:{enabled:!1},plotOptions:{series:{dataLabels:v({},bn(e,t))}}}))(t,e);case Tt.GroupVerticalBarChart:return((e,t)=>v({},Cn(e,t),{plotOptions:{series:v({},un(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:v({},bn(e,t))})},legend:{enabled:!0,labelFormatter:Yt()}}))(t,e);case Tt.GroupHorizontalBarChart:return((e,t)=>v({},Sn(e,t),{series:Qt(e,"bar",t),yAxis:v({},wn(e,t),{softMin:0,softMax:0}),legend:{enabled:!0,layout:"vertical",margin:30},plotOptions:{series:{dataLabels:v({},bn(e,t))}}}))(t,e);case Tt.StackedVerticalBarChart:return((e,t)=>v({},An(e,t),{yAxis:{softMin:0,softMax:0,title:{text:Xt(e.units,t)}},plotOptions:{column:{stacking:"normal",dataLabels:v({},bn(e,t))},series:un(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)}}))(t,e);case Tt.StackedHorizontalBarChart:return((e,t)=>v({},xn(e,t),{yAxis:{softMin:0,softMax:0,tickPositioner:ln(e.series.map(e=>e.series)),title:{text:Xt(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"normal"},series:{dataLabels:v({},bn(e,t))}}}))(t,e);case Tt.PercentVerticalBarChart:return((e,t)=>v({},An(e,t),{yAxis:{min:0,title:{text:"%"}},plotOptions:{column:{stacking:"percent",dataLabels:v({},bn(e,t))},series:un(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)}}))(t,e);case Tt.PercentHorizontalBarChart:return((e,t)=>v({},xn(e,t),{yAxis:{min:0,title:{text:"%",style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"percent"},series:{dataLabels:v({},bn(e,t))}}}))(t,e);case Tt.PieChart:return En(t,e);case Tt.PyramidChart:return Nn(t,e);case Tt.ScatterPlot:return((e,t)=>{var n;const r=null!=(n=e.visualizationSettings)&&n.cutValueAxis?void 0:0;return v({},vn(e,t),{chart:{type:"scatter"},xAxis:{softMin:0,softMax:0,title:{text:e.series[1].rowNameGroup.map(e=>e[t]).join(", ")},gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5,plotLines:[{value:0,color:"#000",width:1}]},yAxis:v({},yn,{softMin:r,softMax:r,title:{text:e.series[0].rowNameGroup.map(e=>e[t]).join(", ")}}),series:[{animation:!1,type:"scatter",data:e.series[0].series.map((t,n)=>{var r,a;return{x:null!=(r=e.series[1].series[n].value)?r:void 0,y:null!=(a=e.series[0].series[n].value)?a:void 0,marker:{symbol:"circle"},custom:{preliminary:e.series[1].series[n].preliminary||e.series[0].series[n].preliminary}}})}],tooltip:{headerFormat:"",pointFormat:Pn(e.series,t),formatter:Zt(e,t)},plotOptions:{scatter:{marker:{radius:5*(e.visualizationSettings.markerSize?.01*e.visualizationSettings.markerSize:1)}}},exporting:{enabled:!1}})})(t,e);default:throw new Error("Unsupported chart type")}},jn=(e,t,n,r)=>{if(0===e.length)return{};let a=e,i={};if(r){const{parsedValues:e,updatedArray:t}=Mn(a,r);if(a=t,i=v({},i,e),0===a.length)return i}if(n){const{parsedValues:e,updatedArray:t}=$n(a,n);if(a=t,i=v({},i,e),0===a.length)return i}return a.forEach(e=>{const n=t.findIndex(t=>t.code===e);n>-1&&(i[e]=t[n].type===jt.Time?[t[n].values[t[n].values.length-1].code]:[t[n].values[0].code])}),i},Mn=(e,t)=>{const n=Object.keys(t),r={},a=e.map(e=>n.findIndex(t=>t===e)>-1&&t[e].length>0?(r[e]=t[e],""):e).filter(e=>e.length>0);return{parsedValues:r,updatedArray:a}},$n=(e,t)=>{const n=Object.keys(t),r={},a=e.map(e=>{const a=n.findIndex(t=>t===e);return a>-1?(r[e]=t[n[a]],""):e}).filter(e=>e.length>0);return{parsedValues:r,updatedArray:a}},Dn=(e,t)=>{var n,r;return(null!=(n=e.value)?n:0)-(null!=(r=t.value)?r:0)},On=(e,t)=>{var n,r;return(null!=(n=t.value)?n:0)-(null!=(r=e.value)?r:0)};function In(e,t,n){return zn(Vn(e,e.series[t].series,n),t)}function Vn(e,t,n){const r=function(e,t){const n=[...Array(e.length).keys()];return n.sort((n,r)=>t(e[n],e[r])),n}(t,n),a=r.map(t=>e.columnNameGroups[t]),i=e.series.map(e=>function(e,t){return v({},e,{series:t.map(t=>e.series[t])})}(e,r));return v({},e,{columnNameGroups:a,series:i})}function zn(e,t){const n=[];return n.push(e.series[t]),e.series.forEach((e,r)=>{r!==t&&n.push(e)}),v({},e,{series:n})}function Ln(e,t){var n,r,a,i;const s=null!=(n=e.visualizationSettings)&&n.multiselectableVariableCode?function(e,t){var n,r;const a=null!=(n=null==(r=e.visualizationSettings)?void 0:r.multiselectableVariableCode)?n:"",i=_n(t),s=Zn(t),o=t[a].map(t=>{var n,r;const o=Gn(e,v({},s,{[a]:t}),i);return function(e,t){return v({},t,{series:t.series.map(t=>v({},t,{rowNameGroup:[e].concat(t.rowNameGroup)}))})}(null!=(n=null==(r=e.metaData.find(e=>e.code===a))||null==(r=r.values.find(e=>e.code===t))?void 0:r.name)?n:Vt.empty,o)});return function(e){return{header:e[0].header,tableReferenceName:e[0].tableReferenceName,subheaderValues:e[0].subheaderValues,units:e.reduce((e,t)=>e.concat(t.units),[]).filter(Gt),sources:e.reduce((e,t)=>e.concat(t.sources),[]).filter(Gt),colVarNames:e[0].colVarNames,rowVarNames:e[0].rowVarNames,selectableVarNames:e[0].selectableVarNames,columnNameGroups:e[0].columnNameGroups,series:e.reduce((e,t)=>e.concat(t.series),[]),visualizationSettings:e[0].visualizationSettings,seriesType:e[0].seriesType}}(o)}(e,t):Gn(e,Zn(t),_n(t)),o=(null==(r=s.visualizationSettings)?void 0:r.visualizationType)===Tt.PercentHorizontalBarChart||(null==(a=s.visualizationSettings)?void 0:a.visualizationType)===Tt.PercentVerticalBarChart;switch(null==(i=e.visualizationSettings)?void 0:i.sorting){case null:case void 0:case"no_sorting":return s;case"sum":return function(e,t){const n=e.columnNameGroups.map((t,n)=>({value:e.series.map(e=>e.series[n]).reduce((e,t)=>{var n;return e+(null!=(n=t.value)?n:0)},0),precision:0,preliminary:!1}));return Vn(e,n,t)}(s,On);case"ascending":return In(s,0,Dn);case"descending":return In(s,0,On);default:return o?(l=s,c=Rn(s),u=Fn(e),zn(Vn(l,c.series[u].series,On),u)):In(s,Fn(e),On)}var l,c,u}function Rn(e){const t=e.series.map(t=>v({},t,{series:t.series.map((t,n)=>{var r;const a=e.series.reduce((e,t)=>{var r;return e+(null!=(r=t.series[n].value)?r:0)},0),i=a&&0!==a?Math.round(100*(null!=(r=t.value)?r:0)/a*10)/10:null,s={value:i,precision:1,preliminary:t.preliminary};return null===i&&(s.missingCode=t.missingCode),s})}));return v({},e,{units:e.units.map(e=>{return{name:e.name,unit:(t=e.unit,Object.keys(t).reduce((e,t)=>(e[t]="%",e),{}))};var t}),series:t})}function _n(e){const t={};return Object.entries(e).forEach(([e,n])=>t[e]=n.length),t}function Gn(e,t,n){const{metaData:r,selectableVariableCodes:a}=e,i=Bn(r,a),s=Hn(r),o=function(e,t){const n=Bn(e.metaData,e.selectableVariableCodes),r=e.metaData.filter(t=>e.rowVariableCodes.includes(t.code)).filter(e=>e.values.length>1).map(e=>e.values),a=e.metaData.filter(t=>e.columnVariableCodes.includes(t.code)).filter(e=>e.values.length>1).map(e=>e.values),i=_t(a),s=_t(r),o=function(e,t,n){let r=0,a=1;for(let i=e.length-1;i>=0;i--){const s=e[i].values.findIndex(n=>n.code===t[e[i].code]);if(s<0)throw new Error("Provided selected value code can not be found from the metadata");r+=s*n*a,a*=e[i].values.length}return r}(n,t,function(e){const{metaData:t,selectableVariableCodes:n}=e;return t.filter(e=>!n.includes(e.code)).map(e=>e.values.length).reduce((e,t)=>e*t,1)}(e)),l=function(e,t){const n=Hn(e.metaData);var r,a,i,s;return 1===n.values.length?null!=(r=null==(a=n.values[0].contentComponent)?void 0:a.numberOfDecimals)?r:null:e.selectableVariableCodes.includes(n.code)&&e.visualizationSettings.multiselectableVariableCode!==n.code&&null!=(i=null==(s=n.values.find(e=>e.code===t[n.code]))||null==(s=s.contentComponent)?void 0:s.numberOfDecimals)?i:null}(e,t);let c=0;const u=s.map(t=>{var n,r;const a=t.some(e=>Object.values(e.name)[0].trim().endsWith("*")),s=null!=(n=null!=l?l:null==(r=t.find(e=>e.contentComponent))||null==(r=r.contentComponent)?void 0:r.numberOfDecimals)?n:null,u=i.map(t=>{var n,r;const i={value:e.data[o+c],precision:null!=(n=null!=s?s:null==(r=t.find(e=>e.contentComponent))||null==(r=r.contentComponent)?void 0:r.numberOfDecimals)?n:0,preliminary:a||t.some(e=>Object.values(e.name)[0].trim().endsWith("*"))};return i.value||(i.missingCode=e.missingDataInfo[o+c]),c++,i});return{rowNameGroup:t.map(e=>e.name),series:u}});return{columnNameGroups:i.map(e=>e.map(e=>e.name)),series:u}}(e,t);return{header:e.header,tableReferenceName:e.tableReference.name,subheaderValues:Wn(i,t,n),units:Yn(s,t),sources:Un(s,t,e=>{var t;return null!=(t=null==e?void 0:e.source)?t:Vt.empty}),columnNameGroups:o.columnNameGroups,series:o.series,colVarNames:qn(e.columnVariableCodes,e.metaData),rowVarNames:qn(e.rowVariableCodes,e.metaData),selectableVarNames:qn(e.selectableVariableCodes,e.metaData),visualizationSettings:e.visualizationSettings,seriesType:Xn(e.columnVariableCodes,e.metaData)}}function qn(e,t){return e.reduce((e,n)=>{var r;const a=null==(r=t.find(e=>e.code===n))?void 0:r.name;return a&&e.push(a),e},[])}function Bn(e,t){return e.filter(e=>t.includes(e.code))}function Fn(e){const t=e.metaData.find(t=>t.code==e.rowVariableCodes[0]),n=null==t?void 0:t.values.findIndex(t=>{var n;return t.code===(null==(n=e.visualizationSettings)?void 0:n.sorting)});return!n||n<0?0:n}function Hn(e){const t=e.find(e=>e.type===jt.Content);if(t)return t;throw new Error("Content variable is not defined")}function Wn(e,t,n){const r=[];return e.forEach(e=>{var a,i;1==n[e.code]&&r.push(null!=(a=null==(i=e.values.find(n=>n.code===t[e.code]))?void 0:i.name)?a:{})}),r}function Yn(e,t){const n=e.code in t?e.values.filter(n=>t[e.code]===n.code):e.values;return n.reduce((e,t)=>(t.contentComponent&&e.push({name:t.name,unit:t.contentComponent.unit}),e),[])}function Un(e,t,n){return e.code in t?e.values.filter(n=>t[e.code]===n.code).map(e=>n(e.contentComponent)).filter(Gt):e.values.map(e=>n(e.contentComponent)).filter(Gt)}function Zn(e){const t={};return Object.entries(e).forEach(([e,n])=>t[e]=n[0]),t}function Xn(e,t){var n;if(e.length>1||0===e.length)return en.Nominal;const r=null==(n=t.find(t=>t.code===e[0]))?void 0:n.type;switch(r){case jt.Time:return en.Time;case jt.Ordinal:return en.Ordinal;default:return en.Nominal}}const Kn=(e,t,n,r=null)=>{const a=Ht(n);"object"==typeof o&&(u(o),m(o),d(o),p(o)),o.setOptions(gn(a));const i=Ln(t,jn(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,r)),s=Tn(a,i);return o.chart(e,s)},Jn=["",".","..","...","....",".....","......","-"];function Qn(e,t,n=!1){if(null==e.value)throw new Error("Can not produce a localized numeric formatting for missing data");return new Intl.NumberFormat(t,{maximumFractionDigits:e.precision,minimumFractionDigits:e.precision,useGrouping:n}).format(e.value)}function er(e,t,n=!1){if(e)return n?Vt.dataMissing[t]:Jn[e];throw new Error("Invalid missing code. Can not generate table presentation")}function tr(e,t,n,r,a,i,s){const o=document.getElementById(i);if(!o)throw new Error("No container with matching id found in the DOM tree");try{if(n){const n=document.createElement("span");if(n.classList.add("title"),n.append(e.header[t]),o.append(n),e.subheaderValues.length>0){const n=document.createElement("span");n.classList.add("subtitle"),n.append(e.subheaderValues.map(e=>e[t]).join(" | ")),o.append(n)}}const i=function(e,t){var n,r;const a=null!=(n=e.columnNameGroups[0].length)?n:0,i=null!=(r=e.series[0].rowNameGroup.length)?r:0,s=document.createElement("table");if(a>0){const n=function(e,t){const n=ar(e),r=[];for(let a=0;a<e[0].length;a++){const i=document.createElement("tr");for(let r=0;r<e.length;r+=n[a]){const s=document.createElement("th");s.setAttribute("colSpan",n[a].toString()),s.setAttribute("scope","col"),s.textContent=e[r][a][t],i.append(s)}r.push(i)}return r}(e.columnNameGroups,t);if(i>0){const e=document.createElement("td");e.setAttribute("colSpan",i.toString()),e.setAttribute("rowSpan",a.toString()),n[0].prepend(e)}const r=document.createElement("thead");r.append(...n),s.append(r)}if(e.series.length>0){const n=document.createElement("tbody");n.append(...function(e,t){const n=[],r=rr(e);for(let a=0;a<e.length;a++){const i=document.createElement("tr");for(let n=0;n<e[a].rowNameGroup.length;n++)if(a%r[n]==0){const s=document.createElement("th");s.setAttribute("rowSpan",r[n].toString()),s.setAttribute("scope","row"),s.textContent=e[a].rowNameGroup[n][t],i.append(s)}for(const n of e[a].series){const e=document.createElement("td");e.textContent=null===n.value?er(n.missingCode,t,!0):Qn(n,t,!0),i.append(e)}n.push(i)}return n}(e.series,t)),s.append(n)}return s}(e,t);if(o.append(i),r){const n=document.createElement("p"),r=Xt(e.units,t);n.append(`${Vt.unit[t]}: ${r}`),o.append(n)}if(a){const n=document.createElement("p"),r=`${Vt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`;n.append(r),o.append(n)}if(s){const e=document.createElement("p");e.append(s),o.append(e)}}catch(e){console.error(e),o.replaceChildren();const n=document.createElement("h1");n.append(Vt.graphCreationError[t]),o.append(n)}}const nr=(e,t)=>Object.keys(e).every(n=>e[n]==t[n]),rr=e=>{if(!e[0].rowNameGroup||0===e[0].rowNameGroup.length)return[];const t=Array(e[0].rowNameGroup.length).fill(1);for(let n=0;n<e[0].rowNameGroup.length;n++)for(let r=0;r<e.length-1&&nr(e[r].rowNameGroup[n],e[r+1].rowNameGroup[n]);r++)t[n]++;return t},ar=e=>{if(!e||0===e.length)return[];const t=Array(e[0].length).fill(1);for(let n=0;n<e[0].length;n++)for(let r=0;r<e.length-1&&nr(e[r][n],e[r+1][n]);r++)t[n]++;return t};var ir;!function(e){e[e.Csv=0]="Csv",e[e.Excel=1]="Excel"}(ir||(ir={}));const sr=(e,t)=>t===ir.Csv?new Blob(["\ufeff",e],{type:"text/csv;charset=utf-8;"}):new Blob([or(e)],{type:"application/octet-stream"}),or=e=>{const t=new ArrayBuffer(e.length);let n=new Uint8Array(t);for(let t=0;t<e.length;t++)n[t]=255&e.charCodeAt(t);return t},lr=e=>{const t=e?e.split(".")[0]:"",n=new Date;return`${t}_${n.getFullYear()}${(n.getMonth()+1).toString().padStart(2,"0")}${n.getDate().toString().padStart(2,"0")}_${n.getHours().toString().padStart(2,"0")}${n.getMinutes().toString().padStart(2,"0")}${n.getSeconds().toString().padStart(2,"0")}`},cr=(e,t)=>{var n,r,a,i,s,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===Tt.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===Tt.PercentVerticalBarChart)&&(e=Rn(e));const u=null!=(a=null==(i=e.columnNameGroups[0])?void 0:i.length)?a:0,m=null!=(s=null==(o=e.series[0])?void 0:o.rowNameGroup.length)?s:0,d=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+m,p=","==Vt.decimalPoint[t]?";":",",h="\n";let f=mr([`"${e.header[t]}"`],0,d,p,h);e.subheaderValues.length>0&&(f+=mr([`"${e.subheaderValues.map(e=>e[t]).join(" | ")}"`],0,d,p,h));for(let n=0;n<u;n++)f+=mr(e.columnNameGroups.map(e=>`"${e[n][t]}"`),m,d,p,h);return e.series.forEach(e=>{let n=[];e.rowNameGroup.length>0&&(n=e.rowNameGroup.map(e=>`"${e[t]}"`)),n=n.concat(e.series.map(e=>null===e.value?er(e.missingCode,t):Qn(e,t))),f+=mr(n,0,d,p,h)}),f+=mr([`"${Vt.unit[t]}: ${Xt(e.units,t)}"`],0,d,p,h),f+=mr([`"${Vt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}"`],0,d,p),f},ur=(e,t)=>({onClick:()=>{const n=cr(e,t),r=sr(n,ir.Csv),a=URL.createObjectURL(r),i=document.createElement("a");i.setAttribute("href",a),i.setAttribute("download",lr(e.tableReferenceName)+".csv"),document.body.appendChild(i),i.click()},text:Vt.downloadCSV[t]});function mr(e,t,n,r,a=""){let i="";for(let a=0;a<n;a++)a>=t&&a<t+e.length&&(i+=e[a-t]),a<n-1&&(i+=r);return i+a}const dr=(e,t)=>{const n=h.utils.book_new(),r=h.utils.aoa_to_sheet(pr(e,t));return h.utils.book_append_sheet(n,r,"Sheet1"),h.write(n,{bookType:"xlsx",type:"binary"})},pr=(e,t)=>{var n,r,a,i,s,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===Tt.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===Tt.PercentVerticalBarChart)&&(e=Rn(e));const u=null!=(a=null==(i=e.columnNameGroups[0])?void 0:i.length)?a:0,m=null!=(s=null==(o=e.series[0])?void 0:o.rowNameGroup.length)?s:0,d=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+m;let p=[fr([e.header[t]],0,d)];e.subheaderValues.length>0&&p.push(fr([e.subheaderValues.map(e=>e[t]).join(" | ")],0,d));for(let n=0;n<u;n++)p.push(fr(e.columnNameGroups.map(e=>e[n][t]),m,d));return e.series.forEach(e=>{let n=[];e.rowNameGroup.length>0&&(n=e.rowNameGroup.map(e=>e[t])),n=n.concat(e.series.map(e=>null===e.value?er(e.missingCode,t):Qn(e,t))),p.push(fr(n,0,d))}),p.push(fr([`${Vt.unit[t]}: ${Xt(e.units,t)}`],0,d)),p.push(fr([`${Vt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`],0,d)),p},hr=(e,t)=>({onClick:()=>{const n=dr(e,t),r=sr(n,ir.Excel),a=URL.createObjectURL(r),i=document.createElement("a");i.setAttribute("href",a),i.setAttribute("download",lr(e.tableReferenceName)+".xlsx"),document.body.appendChild(i),i.click()},text:Vt.downloadXLSX[t]});function fr(e,t,n){const r=Array(n);for(let a=0;a<n;a++)r[a]=a>=t&&a<t+e.length?e[a-t]:null;return r}const gr=["Bars","Times","Download","ExternalLink","Copy"],vr=({icon:t,inheritColor:n=!1})=>{switch(t){case"Bars":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"39.91mm",height:"29.92mm",viewBox:"0 0 113.12 84.82"},e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m56.51,14.13c-16.33,0-32.67.01-49,0-5.37,0-8.89-4.83-6.99-9.59C1.63,1.76,3.77.26,6.76.01c.22-.02.44,0,.66,0,32.74,0,65.49,0,98.23,0,4.3,0,7.45,2.99,7.47,7.01.02,4.11-3.15,7.1-7.6,7.11-16.33.01-32.67,0-49,0Z"})),e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m56.55,49.47c-16.41,0-32.82.01-49.22,0-3.78,0-6.77-2.56-7.26-6.09-.49-3.53,1.78-6.9,5.35-7.81.77-.2,1.6-.21,2.4-.21,32.52,0,65.04-.01,97.57,0,4.51,0,7.69,2.89,7.74,6.97.04,4.19-3.16,7.14-7.79,7.15-16.26,0-32.52,0-48.78,0Z"})),e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m56.43,84.82c-16.33,0-32.67,0-49,0-3.68,0-6.45-2.17-7.25-5.56-.73-3.09.92-6.54,3.92-7.84,1.04-.45,2.27-.69,3.41-.69,32.74-.04,65.49-.03,98.23-.02,4.27,0,7.41,3.06,7.39,7.09-.02,4.02-3.17,7.02-7.47,7.02-16.41.02-32.82,0-49.22,0Z"})));case"Times":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"26.97mm",height:"26.97mm",viewBox:"0 0 76.44 76.44"},e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m0,38.09C.02,17.02,17.22-.04,38.39,0c21.08.04,38.09,17.21,38.05,38.42-.04,21-17.21,38.04-38.31,38.01C17.04,76.41-.02,59.26,0,38.09ZM38.25,5.95c-17.86-.02-32.27,14.33-32.31,32.17-.04,17.94,14.33,32.35,32.25,32.37,17.87.02,32.23-14.28,32.3-32.17.07-17.92-14.31-32.35-32.24-32.37Z"})),e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m38.4,34c2.9-2.94,5.58-5.67,8.27-8.39.93-.94,2.13-1.38,3.25-.73.8.47,1.7,1.46,1.78,2.29.09.92-.48,2.12-1.14,2.85-2.18,2.38-4.54,4.6-6.83,6.89-.35.35-.68.71-1.07,1.12,2.67,2.68,5.35,5.26,7.88,7.99.67.72,1.28,1.95,1.16,2.84-.12.88-1.05,1.9-1.89,2.37-1.03.57-2.22.16-3.12-.75-2.31-2.33-4.65-4.63-6.96-6.97-.38-.39-.66-.87-1.36-1.8-.71.95-1.11,1.64-1.65,2.19-2.12,2.17-4.27,4.32-6.44,6.44-1.41,1.38-3.16,1.46-4.38.28-1.26-1.22-1.2-3.02.24-4.48,2.27-2.31,4.56-4.58,6.87-6.85.38-.38.88-.64,1.42-1.03-2.89-2.89-5.5-5.47-8.07-8.1-.53-.55-1.05-1.24-1.24-1.96-.35-1.32.14-2.48,1.38-3.16,1.28-.71,2.53-.5,3.56.5,2.32,2.26,4.59,4.55,6.88,6.84.46.46.86.96,1.47,1.64Z"})));case"Download":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"33.64mm",height:"33.64mm",viewBox:"0 0 95.35 95.37"},e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m41.74,51.99c0-1.25,0-1.92,0-2.59,0-14.4,0-28.79,0-43.19,0-3.27,2.24-5.84,5.28-6.17,3.01-.33,5.8,1.65,6.48,4.66.16.71.14,1.48.14,2.22,0,14.15,0,28.29,0,42.44v2.34c.53-.42.91-.67,1.23-.98,3.12-3.11,6.23-6.23,9.35-9.34,2.74-2.72,6.26-2.87,8.75-.4,2.49,2.46,2.39,6.06-.3,8.75-6.79,6.81-13.59,13.61-20.4,20.4-2.92,2.91-6.25,2.92-9.15.03-6.81-6.79-13.61-13.59-20.4-20.4-2.71-2.72-2.84-6.26-.35-8.75,2.48-2.49,6.03-2.36,8.75.34,3.42,3.4,6.82,6.83,10.61,10.64Z"})),e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m47.67,95.37c-13.83,0-27.66,0-41.49,0-3.18,0-5.7-2.16-6.12-5.13-.42-2.98,1.5-5.82,4.51-6.59.65-.17,1.35-.18,2.02-.18,27.41,0,54.83,0,82.24,0,3.8,0,6.48,2.43,6.52,5.88.04,3.53-2.66,6.02-6.56,6.03-13.71,0-27.41,0-41.12,0Z"})));case"ExternalLink":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"88.84mm",height:"79.62mm",viewBox:"0 0 251.84 225.69"},e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m125.89,225.68c-22.84,0-45.67.03-68.51,0C23.18,225.63.03,202.4.01,168.14,0,131.14,0,94.13.01,57.13.04,23.53,23.35.14,56.85.1c23.67-.03,21.34.02,45.01-.03,4.75,0,8.96,1.04,11.87,5.09,2.64,3.67,3.08,7.7,1.25,11.83-2.01,4.53-5.59,7-10.57,7.06-9,.11-12,.07-21,.07-15.84,0-11.67-.05-27.5.02-18.82.08-31.81,12.98-31.84,31.74-.06,38-.06,76.01,0,114.01.03,18.74,13.04,31.7,31.86,31.72,46.67.05,93.34.06,140.01,0,18.79-.02,31.71-12.99,31.79-31.8.07-17,0-14,.03-31.01.02-8.3,4.75-13.75,11.83-13.81,7.07-.06,12.12,5.48,12.16,13.61.07,17.5.18,15.01-.02,32.51-.34,30.71-23.87,54.02-54.81,54.56h-71.01l-.02.02Z"})),e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m207.19,24.08c-6.95,0-23.9.04-30.85,0-8.12-.06-13.27-4.55-13.44-11.6-.17-7.19,5.18-12.33,13.32-12.38,17.33-.11,44.67-.12,62,0,8.48.06,13.45,4.99,13.5,13.37.12,16.83.12,43.67,0,60.5-.06,7.69-5.4,13.04-12.34,12.87-6.83-.17-11.53-5.35-11.61-12.97-.08-7.63-.02-25.26-.02-34.12-2.09,1.8-3.42,2.88-4.68,4.03-26.76,24.57-53.52,49.15-80.28,73.72-1.6,1.47-3.13,3-4.82,4.36-5.57,4.47-12.54,3.94-16.98-1.2-4.31-4.98-4.06-11.78,1.06-16.6,10.92-10.28,22.03-20.36,33.07-30.51,16.56-15.23,33.13-30.45,49.72-45.65.97-.89,2.15-1.56,3.23-2.33-.29-.5-.58-.99-.87-1.49h0Z"})));case"Copy":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"31.19mm",height:"31.21mm",viewBox:"0 0 88.41 88.48"},e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m20.67,54.61c0-7.55,0-15.1,0-22.65,0-6.79,4.38-11.2,11.13-11.21,15.16-.01,30.33-.01,45.49,0,6.75,0,11.12,4.42,11.12,11.22,0,15.1,0,30.2,0,45.3,0,6.79-4.39,11.21-11.13,11.21-15.16,0-30.33,0-45.49,0-6.66,0-11.1-4.41-11.12-11.03-.02-7.61,0-15.22,0-22.83Zm60.78.1c0-7.67,0-15.34,0-23.01,0-2.72-1.23-3.98-3.89-3.99-15.34,0-30.68,0-46.02,0-2.67,0-3.89,1.26-3.89,3.98,0,15.28,0,30.55,0,45.83,0,2.79,1.23,3.99,4.07,3.99,15.22,0,30.44,0,45.65,0,2.91,0,4.08-1.21,4.08-4.17,0-7.55,0-15.09,0-22.64Z"})),e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m13.66,60.85v6.64C6.35,69.22.02,64.29.01,56.9c-.02-15.34-.02-30.69,0-46.03C.02,4.48,4.36.11,10.73.1c15.1-.02,30.21.19,45.3-.1,6.89-.13,12.81,4.89,11.49,13.58h-6.74c0-.95.03-1.91,0-2.86-.08-2.34-1.35-3.69-3.66-3.69-15.53-.02-31.06-.02-46.59,0-2.36,0-3.58,1.27-3.58,3.7-.02,15.4-.02,30.81,0,46.21,0,2.65,1.32,3.87,4.01,3.91.85.01,1.7,0,2.71,0Z"})));default:return e.createElement("span",null,"No icon for ",t,e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"26.97mm",height:"26.97mm",viewBox:"0 0 76.45 76.44"},e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m0,38.1C.02,17.02,17.22-.04,38.4,0c21.08.04,38.1,17.21,38.06,38.43-.04,21-17.21,38.05-38.32,38.02C17.04,76.42-.02,59.27,0,38.1ZM38.26,5.95c-17.86-.02-32.27,14.33-32.31,32.17-.04,17.94,14.33,32.35,32.25,32.37,17.87.02,32.23-14.28,32.3-32.17.07-17.92-14.31-32.35-32.24-32.37Z"})),e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m34.1,43.95c-.12-.12-.18-.26-.18-.43v-1.62c0-1.68.43-3.04,1.29-4.07.86-1.03,2.1-2.11,3.71-3.26,1.31-.91,2.29-1.72,2.93-2.42s.96-1.57.96-2.58c0-1.08-.4-1.95-1.21-2.6-.81-.66-1.87-.99-3.18-.99-1.42,0-2.55.35-3.41,1.06-.86.71-1.29,1.62-1.29,2.73v.81c0,.37-.2.56-.61.56l-5.91-.25c-.17,0-.31-.06-.43-.18-.12-.12-.18-.26-.18-.43v-.5c0-2.02.51-3.81,1.52-5.38,1.01-1.57,2.42-2.78,4.22-3.64,1.8-.86,3.88-1.29,6.24-1.29s4.3.41,6.04,1.24c1.73.83,3.07,1.98,4.02,3.46.94,1.48,1.41,3.2,1.41,5.15,0,1.48-.26,2.75-.78,3.81-.52,1.06-1.15,1.93-1.89,2.6-.74.67-1.68,1.42-2.83,2.22-1.21.84-2.11,1.57-2.68,2.17s-.86,1.35-.86,2.22v1.16c0,.17-.06.31-.18.43-.12.12-.26.18-.43.18h-5.86c-.17,0-.31-.06-.43-.18Zm.3,10.36c-.76-.76-1.14-1.71-1.14-2.85s.37-2.09,1.11-2.83,1.7-1.11,2.88-1.11,2.13.36,2.85,1.09c.72.72,1.09,1.68,1.09,2.85s-.37,2.1-1.11,2.85c-.74.76-1.68,1.14-2.83,1.14s-2.1-.38-2.85-1.14Z"}))))}};let yr,br,wr,Sr,xr,kr,Cr,Ar=e=>e;const Er=$t.button(yr||(yr=Ar`
|
|
1
|
+
import e,{useRef as t,useContext as n,useLayoutEffect as r,createElement as a,useMemo as i,Component as s}from"react";import*as o from"highcharts";import l from"highcharts";import c from"decimal.js";import u from"highcharts/modules/accessibility.js";import m from"highcharts/modules/exporting.js";import d from"highcharts/modules/export-data.js";import p from"highcharts/modules/offline-exporting.js";import*as h from"xlsx";import{HighchartsReact as f}from"highcharts-react-official";import{v4 as g}from"uuid";function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function y(e){var t={exports:{}};return e(t,t.exports),t.exports}var b="function"==typeof Symbol&&Symbol.for,w=b?Symbol.for("react.element"):60103,S=b?Symbol.for("react.portal"):60106,x=b?Symbol.for("react.fragment"):60107,k=b?Symbol.for("react.strict_mode"):60108,C=b?Symbol.for("react.profiler"):60114,A=b?Symbol.for("react.provider"):60109,E=b?Symbol.for("react.context"):60110,N=b?Symbol.for("react.async_mode"):60111,P=b?Symbol.for("react.concurrent_mode"):60111,T=b?Symbol.for("react.forward_ref"):60112,j=b?Symbol.for("react.suspense"):60113,M=b?Symbol.for("react.suspense_list"):60120,$=b?Symbol.for("react.memo"):60115,D=b?Symbol.for("react.lazy"):60116,O=b?Symbol.for("react.block"):60121,I=b?Symbol.for("react.fundamental"):60117,V=b?Symbol.for("react.responder"):60118,z=b?Symbol.for("react.scope"):60119;function L(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case w:switch(e=e.type){case N:case P:case x:case C:case k:case j:return e;default:switch(e=e&&e.$$typeof){case E:case T:case D:case $:case A:return e;default:return t}}case S:return t}}}function R(e){return L(e)===P}var _={AsyncMode:N,ConcurrentMode:P,ContextConsumer:E,ContextProvider:A,Element:w,ForwardRef:T,Fragment:x,Lazy:D,Memo:$,Portal:S,Profiler:C,StrictMode:k,Suspense:j,isAsyncMode:function(e){return R(e)||L(e)===N},isConcurrentMode:R,isContextConsumer:function(e){return L(e)===E},isContextProvider:function(e){return L(e)===A},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===w},isForwardRef:function(e){return L(e)===T},isFragment:function(e){return L(e)===x},isLazy:function(e){return L(e)===D},isMemo:function(e){return L(e)===$},isPortal:function(e){return L(e)===S},isProfiler:function(e){return L(e)===C},isStrictMode:function(e){return L(e)===k},isSuspense:function(e){return L(e)===j},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===x||e===P||e===C||e===k||e===j||e===M||"object"==typeof e&&null!==e&&(e.$$typeof===D||e.$$typeof===$||e.$$typeof===A||e.$$typeof===E||e.$$typeof===T||e.$$typeof===I||e.$$typeof===V||e.$$typeof===z||e.$$typeof===O)},typeOf:L},G=y(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case c:case u:case a:case s:case i:case d:return p;default:var g=p&&p.$$typeof;switch(g){case l:case m:case f:case h:case o:return g;default:return t}}case r:return t}}}var S=u,x=l,k=o,C=n,A=m,E=a,N=f,P=h,T=r,j=s,M=i,$=d,D=!1;function O(e){return w(e)===u}t.AsyncMode=c,t.ConcurrentMode=S,t.ContextConsumer=x,t.ContextProvider=k,t.Element=C,t.ForwardRef=A,t.Fragment=E,t.Lazy=N,t.Memo=P,t.Portal=T,t.Profiler=j,t.StrictMode=M,t.Suspense=$,t.isAsyncMode=function(e){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),O(e)||w(e)===c},t.isConcurrentMode=O,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===o},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===m},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===f},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===u||e===s||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===o||e.$$typeof===l||e.$$typeof===m||e.$$typeof===v||e.$$typeof===y||e.$$typeof===b||e.$$typeof===g)},t.typeOf=w}()}),q=y(function(e){e.exports="production"===process.env.NODE_ENV?_:G});function B(e){function t(e,r,l,c,d){for(var p,h,f,g,w,x=0,k=0,C=0,A=0,E=0,$=0,O=f=p=0,V=0,z=0,L=0,R=0,_=l.length,G=_-1,q="",B="",F="",H="";V<_;){if(h=l.charCodeAt(V),V===G&&0!==k+A+C+x&&(0!==k&&(h=47===k?10:47),A=C=x=0,_++,G++),0===k+A+C+x){if(V===G&&(0<z&&(q=q.replace(m,"")),0<q.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:q+=l.charAt(V)}h=59}switch(h){case 123:for(p=(q=q.trim()).charCodeAt(0),f=1,R=++V;V<_;){switch(h=l.charCodeAt(V)){case 123:f++;break;case 125:f--;break;case 47:switch(h=l.charCodeAt(V+1)){case 42:case 47:e:{for(O=V+1;O<G;++O)switch(l.charCodeAt(O)){case 47:if(42===h&&42===l.charCodeAt(O-1)&&V+2!==O){V=O+1;break e}break;case 10:if(47===h){V=O+1;break e}}V=O}}break;case 91:h++;case 40:h++;case 34:case 39:for(;V++<G&&l.charCodeAt(V)!==h;);}if(0===f)break;V++}if(f=l.substring(R,V),0===p&&(p=(q=q.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<z&&(q=q.replace(m,"")),h=q.charCodeAt(1)){case 100:case 109:case 115:case 45:z=r;break;default:z=M}if(R=(f=t(r,z,f,h,d+1)).length,0<D&&(w=o(3,f,z=n(M,q,L),r,P,N,R,h,d,c),q=z.join(""),void 0!==w&&0===(R=(f=w.trim()).length)&&(h=0,f="")),0<R)switch(h){case 115:q=q.replace(S,s);case 100:case 109:case 45:f=q+"{"+f+"}";break;case 107:f=(q=q.replace(v,"$1 $2"))+"{"+f+"}",f=1===j||2===j&&i("@"+f,3)?"@-webkit-"+f+"@"+f:"@"+f;break;default:f=q+f,112===c&&(B+=f,f="")}else f=""}else f=t(r,n(r,q,L),f,c,d+1);F+=f,f=L=z=O=p=0,q="",h=l.charCodeAt(++V);break;case 125:case 59:if(1<(R=(q=(0<z?q.replace(m,""):q).trim()).length))switch(0===O&&(p=q.charCodeAt(0),45===p||96<p&&123>p)&&(R=(q=q.replace(" ",":")).length),0<D&&void 0!==(w=o(1,q,r,e,P,N,B.length,c,d,c))&&0===(R=(q=w.trim()).length)&&(q="\0\0"),p=q.charCodeAt(0),h=q.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){H+=q+l.charAt(V);break}default:58!==q.charCodeAt(R-1)&&(B+=a(q,p,h,q.charCodeAt(2)))}L=z=O=p=0,q="",h=l.charCodeAt(++V)}}switch(h){case 13:case 10:47===k?k=0:0===1+p&&107!==c&&0<q.length&&(z=1,q+="\0"),0<D*I&&o(0,q,r,e,P,N,B.length,c,d,c),N=1,P++;break;case 59:case 125:if(0===k+A+C+x){N++;break}default:switch(N++,g=l.charAt(V),h){case 9:case 32:if(0===A+x+k)switch(E){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===A+k+x&&(z=L=1,g="\f"+g);break;case 108:if(0===A+k+x+T&&0<O)switch(V-O){case 2:112===E&&58===l.charCodeAt(V-3)&&(T=E);case 8:111===$&&(T=$)}break;case 58:0===A+k+x&&(O=V);break;case 44:0===k+C+A+x&&(z=1,g+="\r");break;case 34:case 39:0===k&&(A=A===h?0:0===A?h:A);break;case 91:0===A+k+C&&x++;break;case 93:0===A+k+C&&x--;break;case 41:0===A+k+x&&C--;break;case 40:0===A+k+x&&(0===p&&(2*E+3*$==533||(p=1)),C++);break;case 64:0===k+C+A+x+O+f&&(f=1);break;case 42:case 47:if(!(0<A+x+C))switch(k){case 0:switch(2*h+3*l.charCodeAt(V+1)){case 235:k=47;break;case 220:R=V,k=42}break;case 42:47===h&&42===E&&R+2!==V&&(33===l.charCodeAt(R+2)&&(B+=l.substring(R,V+1)),g="",k=0)}}0===k&&(q+=g)}$=E,E=h,V++}if(0<(R=B.length)){if(z=r,0<D&&void 0!==(w=o(2,B,z,e,P,N,R,c,d,c))&&0===(B=w).length)return H+B+F;if(B=z.join(",")+"{"+B+"}",0!=j*T){switch(2!==j||i(B,2)||(T=0),T){case 111:B=B.replace(b,":-moz-$1")+B;break;case 112:B=B.replace(y,"::-webkit-input-$1")+B.replace(y,"::-moz-$1")+B.replace(y,":-ms-input-$1")+B}T=0}}return H+B+F}function n(e,t,n){var a=t.trim().split(f);t=a;var i=a.length,s=e.length;switch(s){case 0:case 1:var o=0;for(e=0===s?"":e[0]+" ";o<i;++o)t[o]=r(e,t[o],n).trim();break;default:var l=o=0;for(t=[];o<i;++o)for(var c=0;c<s;++c)t[l++]=r(e[c]+" ",a[o],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function a(e,t,n,r){var s=e+";",o=2*t+3*n+4*r;if(944===o){e=s.indexOf(":",9)+1;var l=s.substring(e,s.length-1).trim();return l=s.substring(0,e).trim()+l+";",1===j||2===j&&i(l,1)?"-webkit-"+l+l:l}if(0===j||2===j&&!i(s,1))return s;switch(o){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace(E,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(l=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+l+s;case 1005:return p.test(s)?s.replace(d,":-webkit-")+s.replace(d,":-moz-")+s:s;case 1e3:switch(t=(l=s.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=s.replace(w,"tb");break;case 232:l=s.replace(w,"tb-rl");break;case 220:l=s.replace(w,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+l+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,o=(l=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:s=s.replace(l,"-webkit-"+l)+";"+s;break;case 207:case 102:s=s.replace(l,"-webkit-"+(102<o?"inline-":"")+"box")+";"+s.replace(l,"-webkit-"+l)+";"+s.replace(l,"-ms-"+l+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return l=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+l+"-ms-flex-"+l+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(k,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(k,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):s.replace(l,"-webkit-"+l)+s.replace(l,"-moz-"+l.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===n+r&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+s}return s}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),O(2!==t?r:r.replace(C,"$1"),n,t)}function s(e,t){var n=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(x," or ($1)").substring(4):"("+t+")"}function o(e,t,n,r,a,i,s,o,l,u){for(var m,d=0,p=t;d<D;++d)switch(m=$[d].call(c,e,p,n,r,a,i,s,o,l,u)){case void 0:case!1:case!0:case null:break;default:p=m}if(p!==t)return p}function l(e){return void 0!==(e=e.prefix)&&(O=null,e?"function"!=typeof e?j=1:(j=2,O=e):j=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<D){var a=o(-1,n,r,r,P,N,0,0,0,0);void 0!==a&&"string"==typeof a&&(n=a)}var i=t(M,r,n,0,0);return 0<D&&void 0!==(a=o(-2,i,r,r,P,N,i.length,0,0,0))&&(i=a),T=0,N=P=1,i}var u=/^\0+/g,m=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,f=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,k=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,N=1,P=1,T=0,j=1,M=[],$=[],D=0,O=null,I=0;return c.use=function e(t){switch(t){case void 0:case null:D=$.length=0;break;default:if("function"==typeof t)$[D++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else I=0|!!t}return e},c.set=l,void 0!==e&&l(e),c}var F={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function H(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var W=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Y=/* #__PURE__ */H(function(e){return W.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),U={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Z={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},X={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},K={};function J(e){return q.isMemo(e)?X:K[e.$$typeof]||U}K[q.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},K[q.Memo]=X;var Q=Object.defineProperty,ee=Object.getOwnPropertyNames,te=Object.getOwnPropertySymbols,ne=Object.getOwnPropertyDescriptor,re=Object.getPrototypeOf,ae=Object.prototype,ie=function e(t,n,r){if("string"!=typeof n){if(ae){var a=re(n);a&&a!==ae&&e(t,a,r)}var i=ee(n);te&&(i=i.concat(te(n)));for(var s=J(t),o=J(n),l=0;l<i.length;++l){var c=i[l];if(!(Z[c]||r&&r[c]||o&&o[c]||s&&s[c])){var u=ne(n,c);try{Q(t,c,u)}catch(e){}}}}return t};function se(){return(se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var oe=function(e,t){for(var n=[e[0]],r=0,a=t.length;r<a;r+=1)n.push(t[r],e[r+1]);return n},le=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!q.typeOf(e)},ce=Object.freeze([]),ue=Object.freeze({});function me(e){return"function"==typeof e}function de(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function pe(e){return e&&"string"==typeof e.styledComponentId}var he="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",fe="undefined"!=typeof window&&"HTMLElement"in window,ge=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV)),ve={},ye="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function be(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach(function(t){e=e.replace(/%[a-z]/,t)}),e}function we(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw"production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(be.apply(void 0,[ye[e]].concat(n)).trim())}var Se=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,a=r;e>=a;)(a<<=1)<0&&we(16,""+e);this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var i=r;i<a;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),o=0,l=t.length;o<l;o++)this.tag.insertRule(s,t[o])&&(this.groupSizes[e]++,s++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var a=n;a<r;a++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),a=r+n,i=r;i<a;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),xe=new Map,ke=new Map,Ce=1,Ae=function(e){if(xe.has(e))return xe.get(e);for(;ke.has(Ce);)Ce++;var t=Ce++;return"production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&we(16,""+t),xe.set(e,t),ke.set(t,e),t},Ee=function(e){return ke.get(e)},Ne=function(e,t){t>=Ce&&(Ce=t+1),xe.set(e,t),ke.set(t,e)},Pe="style["+he+'][data-styled-version="5.3.11"]',Te=new RegExp("^"+he+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),je=function(e,t,n){for(var r,a=n.split(","),i=0,s=a.length;i<s;i++)(r=a[i])&&e.registerName(t,r)},Me=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],a=0,i=n.length;a<i;a++){var s=n[a].trim();if(s){var o=s.match(Te);if(o){var l=0|parseInt(o[1],10),c=o[2];0!==l&&(Ne(c,l),je(e,c,o[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(s)}}},$e=function(e){var t=document.head,n=e||t,r=document.createElement("style"),a=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(he))return r}}(n),i=void 0!==a?a.nextSibling:null;r.setAttribute(he,"active"),r.setAttribute("data-styled-version","5.3.11");var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},De=function(){function e(e){var t=this.element=$e(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var a=t[n];if(a.ownerNode===e)return a}we(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Oe=function(){function e(e){var t=this.element=$e(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Ie=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ve=fe,ze={isServer:!fe,useCSSOMInjection:!ge},Le=function(){function e(e,t,n){void 0===e&&(e=ue),void 0===t&&(t={}),this.options=se({},ze,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&fe&&Ve&&(Ve=!1,function(e){for(var t=document.querySelectorAll(Pe),n=0,r=t.length;n<r;n++){var a=t[n];a&&"active"!==a.getAttribute(he)&&(Me(e,a),a.parentNode&&a.parentNode.removeChild(a))}}(this))}e.registerId=function(e){return Ae(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(se({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,a=t.target,e=n?new Ie(a):r?new De(a):new Oe(a),new Se(e)));var e,t,n,r,a},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Ae(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Ae(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Ae(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",a=0;a<n;a++){var i=Ee(a);if(void 0!==i){var s=e.names.get(i),o=t.getGroup(a);if(s&&o&&s.size){var l=he+".g"+a+'[id="'+i+'"]',c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+=e+",")}),r+=""+o+l+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),Re=/(a)(d)/gi,_e=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ge(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=_e(t%52)+n;return(_e(t%52)+n).replace(Re,"$1-$2")}var qe=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Be=function(e){return qe(5381,e)};function Fe(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(me(n)&&!pe(n))return!1}return!0}var He=Be("5.3.11"),We=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Fe(e),this.componentId=t,this.baseHash=qe(He,t),this.baseStyle=n,Le.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,a=[];if(this.baseStyle&&a.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))a.push(this.staticRulesId);else{var i=lt(this.rules,e,t,n).join(""),s=Ge(qe(this.baseHash,i)>>>0);if(!t.hasNameForId(r,s)){var o=n(i,"."+s,void 0,r);t.insertRules(r,s,o)}a.push(s),this.staticRulesId=s}else{for(var l=this.rules.length,c=qe(this.baseHash,n.hash),u="",m=0;m<l;m++){var d=this.rules[m];if("string"==typeof d)u+=d,"production"!==process.env.NODE_ENV&&(c=qe(c,d+m));else if(d){var p=lt(d,e,t,n),h=Array.isArray(p)?p.join(""):p;c=qe(c,h+m),u+=h}}if(u){var f=Ge(c>>>0);if(!t.hasNameForId(r,f)){var g=n(u,"."+f,void 0,r);t.insertRules(r,f,g)}a.push(f)}}return a.join(" ")},e}(),Ye=/^\s*\/\/.*$/gm,Ue=[":","[",".","#"],Ze=e.createContext(),Xe=e.createContext(),Ke=new Le,Je=function(e){var t,n,r,a,i=ue.options,s=ue.plugins,o=void 0===s?ce:s,l=new B(void 0===i?ue:i),c=[],u=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,a,i,s,o,l,c,u,m){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(a[0]+r),"";default:return r+(0===m?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}(function(e){c.push(e)}),m=function(e,r,i){return 0===r&&-1!==Ue.indexOf(i[n.length])||i.match(a)?e:"."+t};function d(e,i,s,o){void 0===o&&(o="&");var c=e.replace(Ye,""),u=i&&s?s+" "+i+" { "+c+" }":c;return t=o,n=i,r=new RegExp("\\"+n+"\\b","g"),a=new RegExp("(\\"+n+"\\b){2,}"),l(s||!i?"":i,u)}return l.use([].concat(o,[function(e,t,a){2===e&&a.length&&a[0].lastIndexOf(n)>0&&(a[0]=a[0].replace(r,m))},u,function(e){if(-2===e){var t=c;return c=[],t}}])),d.hash=o.length?o.reduce(function(e,t){return t.name||we(15),qe(e,t.name)},5381).toString():"",d}();function Qe(){return n(Ze)||Ke}function et(){return n(Xe)||Je}var tt=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Je);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return we(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Je),this.name+e.hash},e}(),nt=/([A-Z])/,rt=/([A-Z])/g,at=/^ms-/,it=function(e){return"-"+e.toLowerCase()};function st(e){return nt.test(e)?e.replace(rt,it).replace(at,"-ms-"):e}var ot=function(e){return null==e||!1===e||""===e};function lt(e,t,n,r){if(Array.isArray(e)){for(var a,i=[],s=0,o=e.length;s<o;s+=1)""!==(a=lt(e[s],t,n,r))&&(Array.isArray(a)?i.push.apply(i,a):i.push(a));return i}if(ot(e))return"";if(pe(e))return"."+e.styledComponentId;if(me(e)){if("function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t)return e;var l=e(t);return"production"!==process.env.NODE_ENV&&q.isElement(l)&&console.warn(de(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),lt(l,t,n,r)}var c;return e instanceof tt?n?(e.inject(n,r),e.getName(r)):e:le(e)?function e(t,n){var r,a,i=[];for(var s in t)t.hasOwnProperty(s)&&!ot(t[s])&&(Array.isArray(t[s])&&t[s].isCss||me(t[s])?i.push(st(s)+":",t[s],";"):le(t[s])?i.push.apply(i,e(t[s],s)):i.push(st(s)+": "+(r=s,(null==(a=t[s])||"boolean"==typeof a||""===a?"":"number"!=typeof a||0===a||r in F||r.startsWith("--")?String(a).trim():a+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString()}var ct=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ut(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return me(e)||le(e)?ct(lt(oe(ce,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ct(lt(oe(e,n)))}var mt=/invalid hook call/i,dt=new Set,pt=function(e,n){if("production"!==process.env.NODE_ENV){var r="The component "+e+(n?' with the id of "'+n+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",a=console.error;try{var i=!0;console.error=function(e){if(mt.test(e))i=!1,dt.delete(r);else{for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];a.apply(void 0,[e].concat(n))}},t(),i&&!dt.has(r)&&(console.warn(r),dt.add(r))}catch(e){mt.test(e.message)&&dt.delete(r)}finally{console.error=a}}},ht=function(e,t,n){return void 0===n&&(n=ue),e.theme!==n.theme&&e.theme||t||n.theme},ft=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,gt=/(^-|-$)/g;function vt(e){return e.replace(ft,"-").replace(gt,"")}var yt=function(e){return Ge(Be(e)>>>0)};function bt(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var wt=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},St=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function xt(e,t,n){var r=e[n];wt(t)&&wt(r)?kt(r,t):e[n]=t}function kt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var a=0,i=n;a<i.length;a++){var s=i[a];if(wt(s))for(var o in s)St(o)&&xt(e,s[o],o)}return e}var Ct=e.createContext(),At={};function Et(t,r,i){var s=pe(t),o=!bt(t),l=r.attrs,c=void 0===l?ce:l,u=r.componentId,m=void 0===u?function(e,t){var n="string"!=typeof e?"sc":vt(e);At[n]=(At[n]||0)+1;var r=n+"-"+yt("5.3.11"+n+At[n]);return t?t+"-"+r:r}(r.displayName,r.parentComponentId):u,d=r.displayName,p=void 0===d?function(e){return bt(e)?"styled."+e:"Styled("+de(e)+")"}(t):d,h=r.displayName&&r.componentId?vt(r.displayName)+"-"+r.componentId:r.componentId||m,f=s&&t.attrs?Array.prototype.concat(t.attrs,c).filter(Boolean):c,g=r.shouldForwardProp;s&&t.shouldForwardProp&&(g=r.shouldForwardProp?function(e,n,a){return t.shouldForwardProp(e,n,a)&&r.shouldForwardProp(e,n,a)}:t.shouldForwardProp);var v,y=new We(i,h,s?t.componentStyle:void 0),b=y.isStatic&&0===c.length,w=function(e,t){return function(e,t,r,i){var s=e.attrs,o=e.componentStyle,l=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,m=e.styledComponentId,d=e.target,p=function(e,t,n){void 0===e&&(e=ue);var r=se({},t,{theme:e}),a={};return n.forEach(function(e){var t,n,i,s=e;for(t in me(s)&&(s=s(r)),s)r[t]=a[t]="className"===t?(i=s[t],(n=a[t])&&i?n+" "+i:n||i):s[t]}),[r,a]}(ht(t,n(Ct),l)||ue,t,s),h=p[1],f=function(e,t,n,r){var a=Qe(),i=et(),s=e.generateAndInjectStyles(t?ue:n,a,i);return"production"!==process.env.NODE_ENV&&!t&&r&&r(s),s}(o,i,p[0],"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),g=r,v=h.$as||t.$as||h.as||t.as||d,y=bt(v),b=h!==t?se({},t,{},h):t,w={};for(var S in b)"$"!==S[0]&&"as"!==S&&("forwardedAs"===S?w.as=b[S]:(u?u(S,Y,v):!y||Y(S))&&(w[S]=b[S]));return t.style&&h.style!==t.style&&(w.style=se({},t.style,{},h.style)),w.className=Array.prototype.concat(c,m,f!==m?f:null,t.className,h.className).filter(Boolean).join(" "),w.ref=g,a(v,w)}(v,e,t,b)};return w.displayName=p,(v=e.forwardRef(w)).attrs=f,v.componentStyle=y,v.displayName=p,v.shouldForwardProp=g,v.foldedComponentIds=s?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):ce,v.styledComponentId=h,v.target=s?t.target:t,v.withComponent=function(e){var t=r.componentId,n=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(a[n]=e[n]);return a}(r,["componentId"]),a=t&&t+"-"+(bt(e)?e:vt(de(e)));return Et(e,se({},n,{attrs:f,componentId:a}),i)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?kt({},t.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(pt(p,h),v.warnTooManyClasses=function(e,t){var n={},r=!1;return function(a){!r&&(n[a]=!0,Object.keys(n).length>=200)&&(console.warn("Over 200 classes were generated for component "+e+(t?' with the id of "'+t+'"':"")+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={})}}(p,h)),Object.defineProperty(v,"toString",{value:function(){return"."+v.styledComponentId}}),o&&ie(v,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var Nt=function(e){return function e(t,n,r){if(void 0===r&&(r=ue),!q.isValidElementType(n))return we(1,String(n));var a=function(){return t(n,r,ut.apply(void 0,arguments))};return a.withConfig=function(a){return e(t,n,se({},r,{},a))},a.attrs=function(a){return e(t,n,se({},r,{attrs:Array.prototype.concat(r.attrs,a).filter(Boolean)}))},a}(Et,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Nt[e]=Nt(e)});var Pt=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Fe(e),Le.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var a=r(lt(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,a)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&Le.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);var Tt,jt,Mt,$t=Nt;!function(e){e.VerticalBarChart="VerticalBarChart",e.GroupVerticalBarChart="GroupVerticalBarChart",e.StackedVerticalBarChart="StackedVerticalBarChart",e.PercentVerticalBarChart="PercentVerticalBarChart",e.HorizontalBarChart="HorizontalBarChart",e.GroupHorizontalBarChart="GroupHorizontalBarChart",e.StackedHorizontalBarChart="StackedHorizontalBarChart",e.PercentHorizontalBarChart="PercentHorizontalBarChart",e.PyramidChart="PyramidChart",e.PieChart="PieChart",e.LineChart="LineChart",e.ScatterPlot="ScatterPlot",e.Table="Table"}(Tt||(Tt={})),function(e){e.Unknown="N",e.Time="T",e.Ordinal="P",e.Geological="G",e.Content="C",e.OtherClassificatory="F"}(jt||(jt={})),function(e){e.Week="Week",e.Month="Month",e.Quarter="Quarter",e.HalfYear="HalfYear",e.Year="Year",e.Decade="Decade",e.Irregular="Irregular"}(Mt||(Mt={}));const Dt={empty:{fi:"",sv:"",en:""},preliminaryData:{fi:"Ennakko",sv:"Preliminär",en:"Preliminary data"},source:{fi:"Lähde",sv:"Källa",en:"Source"},unit:{fi:"Yksikkö",sv:"Enhet",en:"Unit"},graphCreationError:{fi:"Kuviota ei voitu muodostaa",sv:"Diagrammet kunde inte skapas",en:"The graph could not be created"},thousandsSep:{fi:" ",sv:" ",en:","},thousandsSepAccessibility:{fi:"",sv:"",en:","},decimalPoint:{fi:",",sv:",",en:"."},barMultiple:{fi:"Pystypylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Flerdimensionellt vertikalt stapeldiagram.",en:"Bar chart with {numSeries} data series."},barSingle:{fi:"Pystypylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Vertikalt stapeldiagram.",en:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}."},columnSingle:{fi:"Vaakapylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Horisontellt stapeldiagram.",en:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}."},columnMultiple:{fi:"Vaakapylväskuvio, jossa {numSeries} muuttujaa.",sv:"Flerdimensionellt horisontellt stapeldiagram.",en:"Bar chart with {numSeries} data series."},lineSingle:{fi:"Viivakuvio, jossa {numPoints} havainto{#eq numPoints 1}arvo{else}arvoa{/eq}.",sv:"Linjediagram.",en:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}."},lineMultiple:{fi:"Viivakuvio, jossa {numSeries} viivaa.",sv:"Flerdimensionellt linjediagram.",en:"Line chart with {numSeries} lines."},pieSingle:{fi:"Piirakkakuvio, jossa {numPoints} {#eq numPoints 1}lohko{else}lohkoa{/eq}.",sv:"Cirkeldiagram.",en:"Pie chart with {numPoints} {#eq numPoints 1}slice{else}slices{/eq}."},pieMultiple:{fi:"Piirakkakuvio, jossa {numSeries} piirakkaa.",sv:"Flerdimensionellt cirkeldiagram.",en:"Pie chart with {numSeries} pies."},scatterSingle:{fi:"Hajontakuvio, jossa {numPoints} {#eq numPoints 1}piste{else}pistettä{/eq}.",sv:"Spridningsdiagram.",en:"Scatter chart with {numPoints} {#eq numPoints 1}point{else}points{/eq}."},scatterMultiple:{fi:"Hajontakuvio,jossa {numSeries} datasarjaa.",sv:"Flerdimensionellt spridningsdiagram.",en:"Scatter chart with {numSeries} data series."},defaultSingle:{fi:"Kuvio, jossa {numPoints} data{#eq numPoints 1}piste{else}pistettä{/eq}.",sv:"Endimensionellt diagram.",en:"Chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}."},defaultMultiple:{fi:"Kuvio, jossa {numSeries} datasarjaa.",sv:"Flerdimensionellt diagram.",en:"Chart with {numSeries} data series."},defaultChartTitle:{fi:"Kuvio",sv:"Diagrammets rubrik",en:"Chart"},chartMenuLabel:{fi:"Kuvion valikko",sv:"Diagrammets meny",en:"Chart menu"},menuButtonLabel:{fi:"Katso valikko kuviosta {chartTitle}",sv:"Visa diagrammets meny",en:"View chart menu, {chartTitle}"},credits:{fi:"{creditsStr}",sv:"{creditsStr}",en:"{creditsStr}"},legendItem:{fi:"Näytä {itemName}",sv:"Variabelvärde",en:"Show {itemName}"},legendLabel:{fi:"Kuvion selite: {legendTitle}",sv:"Bläddra visuellt i variabelvärden",en:"Chart legend: {legendTitle}"},legendLabelNoTitle:{fi:"Vaihda sarjojen näkyvyyttä, {chartTitle}",sv:"Ingen etikett",en:"Toggle series visibility, {chartTitle}"},contextButtonTitle:{fi:"Kuvion valintamenu",sv:"Diagrammets valmeny",en:"Chart context menu"},downloadPNG:{fi:"Lataa kuvio (png)",sv:"Ladda ner figuren (png)",en:"Download figure (png)"},downloadSVG:{fi:"Lataa kuvio (svg)",sv:"Ladda ner figuren (svg)",en:"Download figure (svg)"},downloadXLSX:{fi:"Lataa taulukko (xlsx)",sv:"Ladda ner tabellen (xlsx)",en:"Download table (xlsx)"},downloadCSV:{fi:"Lataa taulukko (csv)",sv:"Ladda ner tabellen (csv)",en:"Download table (csv)"},rangeCategories:{fi:"Datan arvoalue: {numCategories} luokkaa.",sv:"Diagrammets värdeområde.",en:"Data range: {numCategories} categories."},rangeFromTo:{fi:"Arvot alkavat {rangeFrom} ja päättyvät {rangeTo}.",sv:"Värdena börjar från {rangeFrom} och slutar vid {rangeTo}.",en:"Data ranges from {rangeFrom} to {rangeTo}."},timeRangeDays:{fi:"Arvoja päiviltä {range}.",sv:"Värden för dagarna {range}.",en:"Data range: {range} days."},timeRangeHours:{fi:"Arvoja tunneilta {range}",sv:"Värden för timmarna {range}",en:"Data range: {range} hours."},timeRangeMinutes:{fi:"Arvoja minuuteilta {range}",sv:"Värden för minuterna {range}",en:"Data range: {range} minutes."},timeRangeSeconds:{fi:"Arvoja sekunneilta {range}",sv:"Värden för sekunderna {range}",en:"Data range: {range} seconds."},xAxisDescriptionPlural:{fi:"Kuviolla on {numAxes} x-akselia muuttujille {#each names}{#unless @first},{/unless}{#if @last} ja{/if} {this}{/each}.",sv:"Figuren har {numAxes} x-axlar för variablerna {#each names}{#unless @first},{/unless}{#if @last} och{/if} {this}{/each}.",en:"The chart has {numAxes} X axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}."},xAxisDescriptionSingular:{fi:"Kuviolla on 1 x-akseli muuttujalle {names[0]}. {ranges[0]}",sv:"Figuren har en x-axel för variabeln {names[0]}. {ranges[0]}",en:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}"},yAxisDescriptionPlural:{fi:"Kuviolla on {numAxes} y-akselia muuttujille {#each names}{#unless @first},{/unless}{#if @last} ja{/if} {this}{/each}.",sv:"Figuren har {numAxes} y-axlar för variablerna {#each names}{#unless @first},{/unless}{#if @last} och{/if} {this}{/each}.",en:"The chart has {numAxes} Y axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}."},yAxisDescriptionSingular:{fi:"Kuviolla on 1 y-akseli muuttujalle {names[0]}. {ranges[0]}",sv:"Figuren har en y-axel för variabeln {names[0]}. {ranges[0]}",en:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}"},seriesSummaryBar:{fi:"{series.name}muuttujan {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel",en:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryBarCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}. Pylvässarja, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel, ..variabelns .. Stapel",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryColumn:{fi:"{series.name}muuttuja, pylvässarja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel",en:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryColumnCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}. Pylvässarja, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel, ..variabelns .. Stapel",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryDefault:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. Diagram",en:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryDefaultCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. diagram, ..variabelns .. Diagram",en:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryLine:{fi:"{series.name}, viiva {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. Linje",en:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryLineCombination:{fi:"{series.name}, aikasarja {seriesNumber}/{chart.series.length}. Viivassa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. linje, ..variabelns .. Linje",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryPie:{fi:"{series.name}, piirakan {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1} lohko {else}lohkoa{/eq}.",sv:"..variabelns .. Sektor",en:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}."},seriesSummaryPieCombination:{fi:"{series.name}, sarja {seriesNumber}/{chart.series.length}. Piirakasta, jossa {series.points.length} {#eq series.points.length 1} lohko{else}lohkoa{/eq}.",sv:"..variabelns .. sektor, ..variabelns .. Sektor",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}."},seriesSummaryScatter:{fi:"{series.name}, hajontakuvio {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1}piste{else}pisteet{/eq}.",sv:"..variabelns .. Punkt",en:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryScatterCombination:{fi:"{series.name}, datasarja {seriesNumber}/{chart.series.length}, hajontakuviosta {series.points.length} {#eq series.points.length 1}piste{else}pisteet{/eq}.",sv:"..variabelns .. punkt, ..variabelns .. Punkt",en:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}."},xAxisDescription:{fi:"Toisen X-akselin kuvaus, {name}",sv:"Beskrivning av andra X-axeln, {name}",en:"X axis, {name}"},yAxisDescription:{fi:"Toisen Y-akselin kuvaus, {name}",sv:"Beskrivning av andra Y-axeln, {name}",en:"Y axis, {name}"},endOfChartMarker:{fi:"Kuvion loppu.",sv:"Diagrammets slut.",en:"End of interactive chart."},loading:{fi:"Ladataan...",sv:"Laddar...",en:"Loading..."},chartContainerLabel:{fi:"{title}. Highcharts interactive chart.",sv:"{title}. Highcharts interactive chart.",en:"{title}. Highcharts interactive chart."},toggleTableModeOnText:{fi:"Näytä taulukko",sv:"Visa tabell",en:"View table"},toggleTableModeOffText:{fi:"Näytä kuvio",sv:"Visa figur",en:"View chart"},externalLink:{fi:"Ulkoinen linkki",sv:"Ulkoinen linkki",en:"External link"},quarter:{fi:"vuosineljännes",sv:"kvartal",en:"quarter"},dataMissing:{fi:"Tieto on puuttuva",sv:"Uppgift saknas",en:"Data missing"}},Ot={months:{fi:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],sv:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],en:["January","February","March","April","May","June","July","August","September","October","November","December"]},shortMonths:{fi:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],sv:["jan.","febr.","mars","april","maj","juni","juli","aug.","sept.","okt.","nov.","dec."],en:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},numericSymbols:{fi:["k","M","G","T","P","E"],sv:["k","M","G","T","P","E"],en:["k","M","G","T","P","E"]},weekdays:{fi:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],sv:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],en:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ordinalSuffices:{en:["st.","nd.","rd.","th."]}},It=new class{constructor(){this.Translations=void 0,this.ArrayTranslations=void 0,this.GetAllLanguages=()=>Object.keys(this.Translations.empty),this.Translations=Dt,this.ArrayTranslations=Ot}AddTranslations(e){for(const t in e.Translations)t in this.Translations&&(this.Translations[t]=v({},this.Translations[t],e.Translations[t]));for(const t in e.ArrayTranslations)t in this.ArrayTranslations&&(this.ArrayTranslations[t]=v({},this.ArrayTranslations[t],e.ArrayTranslations[t]))}},Vt=It.Translations,zt=It.ArrayTranslations,Lt=It.GetAllLanguages;function Rt(e){It.AddTranslations(e)}const _t=e=>e.reduce((e,t)=>e.map(e=>t.map(t=>e.concat([t]))).reduce((e,t)=>e.concat(t),[]),[[]]);function Gt(e,t,n){return n.findIndex(t=>JSON.stringify(t)===JSON.stringify(e))===t}function qt(e,t){return function(){var n;const r=[];var a,i;return e.rowVarNames&&e.rowVarNames.length>0&&this.series.name&&r.push(`${null==(a=e.rowVarNames)?void 0:a.map(e=>e[t]).join(", ")}: ${this.series.name}`),e.colVarNames&&e.colVarNames.length>0&&this.point.name&&r.push(`${null==(i=e.colVarNames)?void 0:i.map(e=>e[t]).join(", ")}: ${this.point.name}`),r.push(Kt(e,this,t)),null!=(n=this.point.options.custom)&&n.preliminary&&r.push(Vt.preliminaryData[t]),r.join("<br/>")}}function Bt(e,t){return function(n){var r;const a=[];var i,s;return e.rowVarNames&&e.rowVarNames.length>0&&n.series.name&&a.push(`${null==(i=e.rowVarNames)?void 0:i.map(e=>e[t]).join(", ")}: ${Jt(n.series.name,t)}`),e.colVarNames&&e.colVarNames.length>0&&n.name&&a.push(`${null==(s=e.colVarNames)?void 0:s.map(e=>e[t]).join(", ")}: ${Jt(n.name,t)}`),a.push(Kt(e,n,t)),null!=(r=n.options.custom)&&r.preliminary&&a.push(Vt.preliminaryData[t]),a.join(", ")}}function Ft(e){return function(){return this.value.toLocaleString(e)}}const Ht=e=>Lt().indexOf(e.toLowerCase().trim())>-1?e.toLowerCase().trim():Lt()[0];function Wt(e=null){const t=e&&e>=15?25:50;return function(){return Ut(this.value,t)}}function Yt(){return function(){return Ut(this.name,200)}}const Ut=(e,t=50)=>{const n=e.toString().length;return`${e.toString().slice(0,t).trim()}${n>t?"...":""}`};function Zt(e,t){return function(){var n,r;const a=e.series[1].rowNameGroup.map(e=>e[t]).join(", "),i=e.series[0].rowNameGroup.map(e=>e[t]).join(", "),s=null==(n=e.colVarNames)?void 0:n.map(e=>e[t]).join(", ");let o="";var l;return a&&a.length>0&&this.series.name&&(o+=`${a}: ${this.point.x.toLocaleString(t)}<br />`),i&&i.length>0&&this.key&&(o+=`${i}: ${null==(l=this.point.y)?void 0:l.toLocaleString(t)}<br />`),s&&s.length>0&&e.columnNameGroups&&e.columnNameGroups.length>0&&(o+=`${s}: ${e.columnNameGroups[this.point.index].map(e=>e[t]).join(", ")}`),null!=(r=this.point.options.custom)&&r.preliminary&&(o+=`<br />${Vt.preliminaryData[t]}`),o}}function Xt(e,t){const n=e.map(e=>e.unit).filter(Gt);if(1===n.length)return n[0][t];if(n.length>1)return e.map(e=>`${e.name[t]}: ${e.unit[t]}`).join(", ");throw new Error("Missing required unit data")}function Kt(e,t,n){return e.visualizationSettings.visualizationType===Tt.PyramidChart?Math.abs(t.y).toLocaleString(n):e.visualizationSettings.visualizationType==Tt.PercentHorizontalBarChart||e.visualizationSettings.visualizationType==Tt.PercentVerticalBarChart?`${null==(r=t.percentage)?void 0:r.toFixed(1)} (${null==(a=t.y)?void 0:a.toLocaleString(n)} ${Xt(e.units,n)})`:null!=(i=null==(s=t.y)?void 0:s.toLocaleString(n))?i:"";var r,a,i,s}function Jt(e,t){if(/^\d{4}[M,Q]\d{1,2}\*?$/.test(e)){const n=e.split("*")[0],r=/^\d{4}Q\d{1,2}$/;if(/^\d{4}M\d{1,2}$/.test(n)){const e=n.split("M");return`${e[0]} ${zt.months[t][Number(e[1])-1]}`}if(r.test(n)){const e=n.split("Q");return`${e[0]} ${function(e,t){const n=zt.ordinalSuffices[t],r=parseInt(e)-1;return null!=n&&n[r]?`${e}${n[r]}`:`${e}.`}(e[1],t)} ${Vt.quarter[t]}`}console.log("Unsupported time pattern")}return e}const Qt=(e,t,n,r=!1)=>e.series.map((a,i)=>({index:r?e.series.length-1-i:i,animation:!1,type:t,name:a.rowNameGroup.map(e=>e[n]).join(", "),data:a.series.map((t,r)=>({y:t.value,name:e.columnNameGroups[r].map(e=>e[n]).join(", "),custom:{preliminary:t.preliminary}}))}));var en;!function(e){e[e.Time=0]="Time",e[e.Ordinal=1]="Ordinal",e[e.Nominal=2]="Nominal"}(en||(en={}));const tn=1.5,nn=3,rn=8,an=.5;function sn(e,t,n){return function(){const r=function(e,t,n,r=new c(0)){var a;if(e.greaterThan(t))throw new Error("dataMinValue must me smaller or equal than dataMaxValue");if((e.lessThan(0)&&t.greaterThan(0)?t.minus(e):c.max(e.abs(),t.abs())).div(n).lessThanOrEqualTo(r))return r;const i=(e=>{const t=Array.from({length:n},(e,t)=>n-t).reduce((t,n)=>{const a=function(e){if(e.equals(0))return new c(0);const t=c.pow(10,c.log10(e).floor());return e.div(t).lessThan(tn)?t.div(10).mul(e.div(t.div(10)).ceil()):e.div(t).lessThan(nn)?e.mul(2).div(t).ceil().mul(t).div(2):e.div(t).lessThan(rn)?e.div(t).ceil().mul(t):e.div(t.mul(10)).ceil().mul(10).mul(t)}(e.div(n));return a.greaterThanOrEqualTo(r)&&t.push([(i=a,i.equals(0)?0:i.isInteger()?function(e){let t=0,n=5;for(;t<50&&e.mod(n).equals(0)&&(t++,n*=2,e.mod(n).equals(0));)t++,n*=5;return t}(i):function(e){const t=e.toString();if(t.includes("e-")){const e=t.split("e-"),n=Number.parseInt(e[1]);return e[0].endsWith("5")?-2*n+1:-2*n}{const e=t.split(".")[1];return e.endsWith("5")?-2*e.length+1:-2*e.length}}(i)),a]),t;var i},[]).sort(([e,t],[n,r])=>n-e);return t.slice(0,Math.max(2,Math.ceil(t.length*an))).sort(([e,t],[n,r])=>t.minus(r).toNumber())})(c.max(e.abs(),t.abs()));return e.lessThan(0)&&t.greaterThan(0)?null!=(a=i.map(([e,t])=>t).find(r=>e.abs().div(r).ceil().plus(t.div(r).ceil()).lessThanOrEqualTo(n)))?a:new c(NaN):i[0][1]}(e,t,(n=>{const r=c.pow(10,c.log10(c.max(e.abs(),t.abs())).floor()),a=Math.ceil(n/(12*(r.toString().length+(e.isNeg()?1:0))+25)-1);return Math.max(a,e.isNegative()&&t.isPositive()?2:1)})(this.chart.plotWidth),n),a=e.greaterThanOrEqualTo(0)?new c(0):e.div(r).floor().mul(r),i=t.lessThanOrEqualTo(0)?new c(0):t.div(r).ceil().mul(r);return Array.from({length:i.minus(a).div(r).plus(1).toNumber()},(e,t)=>r.mul(t).plus(a).toNumber())}}function on(e){let t=null,n=null,r=0;return e.forEach(e=>{e.forEach(e=>{e.value&&(!t||e.value<t)&&(t=e.value),e.value&&(!n||e.value>n)&&(n=e.value),e.precision>r&&(r=e.precision)})}),t&&n?sn(new c(t),new c(n),new c(Math.pow(10,-r))):()=>[]}function ln(e){let t=null,n=null,r=0;return e[0].forEach((a,i)=>{const s=e.reduce((e,t)=>{var n;return e+(null!=(n=t[i].value)?n:0)},0);s&&(!t||s<t)&&(t=s),s&&(!n||s>n)&&(n=s),a.precision>r&&(r=a.precision)}),t&&n?sn(new c(t),new c(n),new c(Math.pow(10,-r))):()=>[]}const cn=(e,t)=>{return{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),ordinal:!0,tickPositioner:(n=Math.max(...e.series.map(e=>e.series.length)),r=Math.max(...e.columnNameGroups.map(e=>e.reduce((e,n)=>(e>0?1:0)+e+n[t].length,0))),function(){const e=Math.ceil(n*r*10/this.chart.plotWidth),t=Math.ceil(n/e);return Array.from({length:t},(t,n)=>n*e)})};var n,r};function un(e,t){if(t){const n=new Date(t);switch(e){case Mt.Irregular:case Mt.Week:return;case Mt.Month:return{pointStart:n.getTime(),pointIntervalUnit:"month"};case Mt.Quarter:case Mt.HalfYear:return;case Mt.Year:return{pointStart:n.getTime(),pointIntervalUnit:"year"}}}}function mn(e,t){if(e.seriesType!==en.Time)return e.seriesType===en.Ordinal?cn(e,t):{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{autoRotation:[-45]}};switch(e.visualizationSettings.timeVariableIntervals){case Mt.Week:return dn(e,t);case Mt.Month:return pn();case Mt.Quarter:return hn(e,t);case Mt.HalfYear:return fn(e,t);case Mt.Year:return{type:"datetime"};default:return{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", "))}}}const dn=(e,t)=>({type:"linear",ordinal:!1,labels:{formatter:function(){return e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", ")}}}),pn=(e,t)=>({type:"datetime",ordinal:!1,labels:{formatter:function(){return l.dateFormat("%YM%m",Number(this.value))}}}),hn=(e,t)=>{var n,r,a;return{type:"linear",ordinal:!1,labels:{formatter:function(){return Number.isInteger(this.value)?e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", "):""}},tickPositioner:(r=Math.max(...e.series.map(e=>e.series.length)),a=new Date(null!=(n=e.visualizationSettings.timeSeriesStartingPoint)?n:""),function(){const e=function(e){return e<=2?Math.ceil(e):e<=4?4:e<=20?4*Math.ceil(e/4):e<=40?20*Math.ceil(e/20):40*Math.ceil(e/40)}(60*r/this.chart.plotWidth),t=function(e,t){const n=(4*t.getFullYear()+Math.floor(t.getMonth()/3))%e;return n>0?e-n:0}(e,a),n=Math.ceil((r-t)/e);return Array.from({length:n},(n,r)=>t+r*e)})}},fn=(e,t)=>{var n,r,a;return{type:"linear",ordinal:!1,labels:{formatter:function(){return Number.isInteger(this.value)?e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", "):""}},tickPositioner:(r=Math.max(...e.series.map(e=>e.series.length)),a=new Date(null!=(n=e.visualizationSettings.timeSeriesStartingPoint)?n:""),function(){const e=function(e){return e<=2?Math.ceil(e):e<=10?2*Math.ceil(e/2):e<=20?10*Math.ceil(e/10):20*Math.ceil(e/20)}(60*r/this.chart.plotWidth),t=function(e,t){const n=(2*t.getFullYear()+Math.floor(t.getMonth()/6))%e;return n>0?e-n:0}(e,a),n=Math.ceil((r-t)/e);return Array.from({length:n},(n,r)=>t+r*e)})}},gn=e=>({accessibility:{keyboardNavigation:{seriesNavigation:{mode:"serialize"}}},responsive:{rules:[{condition:{maxHeight:600},chartOptions:{chart:{height:600}}}]},exporting:{enabled:!1,fallbackToExportServer:!1},lang:{accessibility:{thousandsSep:Vt.thousandsSepAccessibility[e],credits:Vt.credits[e],chartTypes:{barMultiple:Vt.barMultiple[e],barSingle:Vt.barSingle[e],columnMultiple:Vt.columnMultiple[e],columnSingle:Vt.columnSingle[e],lineSingle:Vt.lineSingle[e],lineMultiple:Vt.lineMultiple[e],pieSingle:Vt.pieSingle[e],scatterSingle:Vt.scatterSingle[e],scatterMultiple:Vt.scatterMultiple[e],defaultSingle:Vt.defaultSingle[e],defaultMultiple:Vt.defaultMultiple[e]},defaultChartTitle:Vt.defaultChartTitle[e],exporting:{chartMenuLabel:Vt.chartMenuLabel[e],menuButtonLabel:Vt.menuButtonLabel[e]},legend:{legendItem:Vt.legendItem[e],legendLabel:Vt.legendLabel[e],legendLabelNoTitle:Vt.legendLabelNoTitle[e]},axis:{rangeCategories:Vt.rangeCategories[e],rangeFromTo:Vt.rangeFromTo[e],timeRangeDays:Vt.timeRangeDays[e],timeRangeHours:Vt.timeRangeHours[e],timeRangeMinutes:Vt.timeRangeMinutes[e],timeRangeSeconds:Vt.timeRangeSeconds[e],xAxisDescriptionPlural:Vt.xAxisDescriptionPlural[e],xAxisDescriptionSingular:Vt.xAxisDescriptionSingular[e],yAxisDescriptionPlural:Vt.yAxisDescriptionPlural[e],yAxisDescriptionSingular:Vt.yAxisDescriptionSingular[e]},series:{summary:{bar:Vt.seriesSummaryBar[e],barCombination:Vt.seriesSummaryBarCombination[e],column:Vt.seriesSummaryColumn[e],columnCombination:Vt.seriesSummaryColumnCombination[e],default:Vt.seriesSummaryDefault[e],defaultCombination:Vt.seriesSummaryDefaultCombination[e],line:Vt.seriesSummaryLine[e],lineCombination:Vt.seriesSummaryLineCombination[e],pie:Vt.seriesSummaryPie[e],pieCombination:Vt.seriesSummaryPieCombination[e],scatter:Vt.seriesSummaryScatter[e],scatterCombination:Vt.seriesSummaryScatterCombination[e]},xAxisDescription:Vt.xAxisDescription[e],yAxisDescription:Vt.yAxisDescription[e]},screenReaderSection:{endOfChartMarker:Vt.endOfChartMarker[e]},chartContainerLabel:Vt.chartContainerLabel[e]},thousandsSep:Vt.thousandsSep[e],decimalPoint:Vt.decimalPoint[e],contextButtonTitle:Vt.contextButtonTitle[e],downloadCSV:Vt.downloadCSV[e],downloadPNG:Vt.downloadPNG[e],downloadSVG:Vt.downloadSVG[e],months:zt.months[e],shortMonths:zt.shortMonths[e],weekdays:zt.weekdays[e],loading:Vt.loading[e],numericSymbols:null},colors:["#1a56ec","#f2644c","#1b3160","#9c8d87","#26625d","#7791e8","#8c1131","#878eaf","#c73268","#288c72"],chart:{style:{fontFamily:'"Barlow Semi Condensed", Verdana, sans-serif'},spacingBottom:30,spacingLeft:20,height:"56.25%"},tooltip:{enabled:!0,headerFormat:"{point.key}<br/>",pointFormat:"{point.y}",backgroundColor:"#ffffff",outside:!0,style:{color:"#000",fontSize:"1rem",fontWeight:"400"}},title:{style:{color:"#000",fontSize:"1.25rem",fontWeight:"500",textAlign:"left"},align:"left",margin:45},subtitle:{style:{color:"#000",fontSize:"1.25rem",fontWeight:"400"},align:"left"},credits:{position:{align:"left",x:5},style:{color:"#000",fontSize:"1rem",fontWeight:"400",textAlign:"left",cursor:"default"},href:""},yAxis:{title:{style:{color:"#000",fontSize:"1rem",fontWeight:"400",left:0,textAlign:"left",textOverflow:"ellipsis"},align:"high",rotation:0,textAlign:"left",offset:0,y:-15,x:55,reserveSpace:!1},lineColor:"#000",lineWidth:1,gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5,labels:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"},autoRotation:[0],allowOverlap:!1,formatter:Ft(e)}},xAxis:{labels:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"},allowOverlap:!1,autoRotation:[0]},title:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"}},lineColor:"#000",lineWidth:1,crosshair:!0},legend:{enabled:!1,itemStyle:{fontSize:"1rem",fontWeight:"400",color:"#000"},align:"center"},plotOptions:{pie:{dataLabels:{enabled:!0,useHTML:!0,connectorShape:"crookedLine",connectorColor:"#000000",style:{fontSize:"1rem",fontWeight:"400",color:"#000",textOverflow:"crop"}}},column:{groupPadding:.2,pointPadding:.01},bar:{groupPadding:.2,pointPadding:.01},series:{animation:!1}}}),vn=(e,t)=>({accessibility:{point:{descriptionFormatter:Bt(e,t)}},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},credits:{text:`${Vt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},tooltip:{formatter:qt(e,t)},yAxis:[yn]}),yn={plotLines:[{value:0,color:"#000",width:1}]},bn=(e,t)=>{var n;const r=null==(n=gn(t).tooltip)?void 0:n.style;return{enabled:e.visualizationSettings.showDataPoints,style:r}},wn=(e,t)=>v({},yn,{tickPositioner:on(e.series.map(e=>e.series)),title:{text:Xt(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}}),Sn=(e,t)=>v({},vn(e,t),{chart:{type:"bar"},xAxis:{categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{formatter:Wt(e.columnNameGroups.length),style:{width:200}}}}),xn=(e,t)=>v({},Sn(e,t),{series:Qt(e,"bar",t,!0),legend:{enabled:!0,layout:"horizontal",reversed:!0,margin:30}}),kn=(e,t)=>v({},vn(e,t),{chart:{type:"column"},xAxis:mn(e,t)}),Cn=(e,t)=>v({},kn(e,t),{series:Qt(e,"column",t),yAxis:{softMin:0,softMax:0,title:{text:Xt(e.units,t)}}}),An=(e,t)=>v({},kn(e,t),{series:Qt(e,"column",t,!0),legend:{enabled:!0,layout:"vertical"}}),En=(e,t)=>{var n,r;return v({},vn(e,t),{chart:{type:"pie"},plotOptions:{pie:{dataLabels:{formatter:(r=null!=(n=e.visualizationSettings.showDataPoints)&&n,function(){const e=r?` (${Math.round(this.percentage)}%)`:"";return Ut(this.point.name,20)+e})}}},series:e.series.map(n=>({animation:!1,type:"pie",name:n.rowNameGroup.map(e=>e[t]).join(", "),data:n.series.map((n,r)=>({y:n.value,name:e.columnNameGroups[r].map(e=>e[t]).join(", "),unit:Xt(e.units,t),custom:{preliminary:n.preliminary}}))}))})},Nn=(e,t)=>{const n=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),r=Math.max(...e.series.map(e=>Math.max(...e.series.map(e=>{var t;return null!=(t=e.value)?t:0}))));return v({},vn(e,t),{chart:{type:"bar"},xAxis:{categories:n,reversed:!1,labels:{style:{width:200}}},yAxis:v({},yn,{min:-Math.abs(r),max:Math.abs(r),title:{text:Xt(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},labels:{formatter:function(){return Math.abs(this.value).toLocaleString(t)}}}),legend:{enabled:!0,margin:30},series:e.series.map((n,r)=>({animation:!1,type:"bar",name:n.rowNameGroup.map(e=>e[t]).join(", "),data:n.series.map((n,a)=>({y:0===r&&n.value?-n.value:n.value,name:e.columnNameGroups[a].map(e=>e[t]).join(", "),custom:{preliminary:n.preliminary}}))})),plotOptions:{series:{stacking:"normal",dataLabels:v({},bn)}},exporting:{enabled:!1}})},Pn=(e,t)=>`\n ${e[1].rowNameGroup.map(e=>e[t]).join(", ")}: {point.x}<br/>\n ${e[0].rowNameGroup.map(e=>e[t]).join(", ")}: {point.y}\n `,Tn=(e,t)=>{switch(t.visualizationSettings.visualizationType){case Tt.LineChart:return((e,t)=>{var n;const r=null!=(n=e.visualizationSettings)&&n.cutValueAxis?void 0:0;return v({},vn(e,t),{chart:{type:"line"},xAxis:v({},mn(e,t),{gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5}),yAxis:v({},yn,{softMin:r,softMax:r,title:{text:Xt(e.units,t)}}),plotOptions:{line:{dataLabels:v({},bn(e,t)),marker:{enabled:!1}},series:un(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:{enabled:e.series.length>1,labelFormatter:Yt()},series:Qt(e,"line",t),exporting:{enabled:!1}})})(t,e);case Tt.VerticalBarChart:return((e,t)=>v({},Cn(e,t),{yAxis:v({},yn,{softMin:0,softMax:0,title:{text:Xt(e.units,t)}}),plotOptions:{series:v({},un(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:v({},bn(e,t))})},exporting:{enabled:!1}}))(t,e);case Tt.HorizontalBarChart:return((e,t)=>v({},Sn(e,t),{series:Qt(e,"bar",t),chart:{type:"bar",spacingBottom:60},yAxis:v({},wn(e,t),{softMin:0,max:100}),legend:{enabled:!1},plotOptions:{series:{dataLabels:v({},bn(e,t))}}}))(t,e);case Tt.GroupVerticalBarChart:return((e,t)=>v({},Cn(e,t),{plotOptions:{series:v({},un(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:v({},bn(e,t))})},legend:{enabled:!0,labelFormatter:Yt()}}))(t,e);case Tt.GroupHorizontalBarChart:return((e,t)=>v({},Sn(e,t),{series:Qt(e,"bar",t),yAxis:v({},wn(e,t),{softMin:0,softMax:0}),legend:{enabled:!0,layout:"vertical",margin:30},plotOptions:{series:{dataLabels:v({},bn(e,t))}}}))(t,e);case Tt.StackedVerticalBarChart:return((e,t)=>v({},An(e,t),{yAxis:{softMin:0,softMax:0,title:{text:Xt(e.units,t)}},plotOptions:{column:{stacking:"normal",dataLabels:v({},bn(e,t))},series:un(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)}}))(t,e);case Tt.StackedHorizontalBarChart:return((e,t)=>v({},xn(e,t),{yAxis:{softMin:0,softMax:0,tickPositioner:ln(e.series.map(e=>e.series)),title:{text:Xt(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"normal"},series:{dataLabels:v({},bn(e,t))}}}))(t,e);case Tt.PercentVerticalBarChart:return((e,t)=>v({},An(e,t),{yAxis:{min:0,title:{text:"%"}},plotOptions:{column:{stacking:"percent",dataLabels:v({},bn(e,t))},series:un(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)}}))(t,e);case Tt.PercentHorizontalBarChart:return((e,t)=>v({},xn(e,t),{yAxis:{min:0,title:{text:"%",style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"percent"},series:{dataLabels:v({},bn(e,t))}}}))(t,e);case Tt.PieChart:return En(t,e);case Tt.PyramidChart:return Nn(t,e);case Tt.ScatterPlot:return((e,t)=>{var n;const r=null!=(n=e.visualizationSettings)&&n.cutValueAxis?void 0:0;return v({},vn(e,t),{chart:{type:"scatter"},xAxis:{softMin:0,softMax:0,title:{text:e.series[1].rowNameGroup.map(e=>e[t]).join(", ")},gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5,plotLines:[{value:0,color:"#000",width:1}]},yAxis:v({},yn,{softMin:r,softMax:r,title:{text:e.series[0].rowNameGroup.map(e=>e[t]).join(", ")}}),series:[{animation:!1,type:"scatter",data:e.series[0].series.map((t,n)=>{var r,a;return{x:null!=(r=e.series[1].series[n].value)?r:void 0,y:null!=(a=e.series[0].series[n].value)?a:void 0,marker:{symbol:"circle"},custom:{preliminary:e.series[1].series[n].preliminary||e.series[0].series[n].preliminary}}})}],tooltip:{headerFormat:"",pointFormat:Pn(e.series,t),formatter:Zt(e,t)},plotOptions:{scatter:{marker:{radius:5*(e.visualizationSettings.markerSize?.01*e.visualizationSettings.markerSize:1)}}},exporting:{enabled:!1}})})(t,e);default:throw new Error("Unsupported chart type")}},jn=(e,t,n,r)=>{if(0===e.length)return{};let a=e,i={};if(r){const{parsedValues:e,updatedArray:t}=Mn(a,r);if(a=t,i=v({},i,e),0===a.length)return i}if(n){const{parsedValues:e,updatedArray:t}=$n(a,n);if(a=t,i=v({},i,e),0===a.length)return i}return a.forEach(e=>{const n=t.findIndex(t=>t.code===e);n>-1&&(i[e]=t[n].type===jt.Time?[t[n].values[t[n].values.length-1].code]:[t[n].values[0].code])}),i},Mn=(e,t)=>{const n=Object.keys(t),r={},a=e.map(e=>n.findIndex(t=>t===e)>-1&&t[e].length>0?(r[e]=t[e],""):e).filter(e=>e.length>0);return{parsedValues:r,updatedArray:a}},$n=(e,t)=>{const n=Object.keys(t),r={},a=e.map(e=>{const a=n.findIndex(t=>t===e);return a>-1?(r[e]=t[n[a]],""):e}).filter(e=>e.length>0);return{parsedValues:r,updatedArray:a}},Dn=(e,t)=>{var n,r;return(null!=(n=e.value)?n:0)-(null!=(r=t.value)?r:0)},On=(e,t)=>{var n,r;return(null!=(n=t.value)?n:0)-(null!=(r=e.value)?r:0)};function In(e,t,n){return zn(Vn(e,e.series[t].series,n),t)}function Vn(e,t,n){const r=function(e,t){const n=[...Array(e.length).keys()];return n.sort((n,r)=>t(e[n],e[r])),n}(t,n),a=r.map(t=>e.columnNameGroups[t]),i=e.series.map(e=>function(e,t){return v({},e,{series:t.map(t=>e.series[t])})}(e,r));return v({},e,{columnNameGroups:a,series:i})}function zn(e,t){const n=[];return n.push(e.series[t]),e.series.forEach((e,r)=>{r!==t&&n.push(e)}),v({},e,{series:n})}function Ln(e,t){var n,r,a,i;const s=null!=(n=e.visualizationSettings)&&n.multiselectableVariableCode?function(e,t){var n,r;const a=null!=(n=null==(r=e.visualizationSettings)?void 0:r.multiselectableVariableCode)?n:"",i=_n(t),s=Zn(t),o=t[a].map(t=>{var n,r;const o=Gn(e,v({},s,{[a]:t}),i);return function(e,t){return v({},t,{series:t.series.map(t=>v({},t,{rowNameGroup:[e].concat(t.rowNameGroup)}))})}(null!=(n=null==(r=e.metaData.find(e=>e.code===a))||null==(r=r.values.find(e=>e.code===t))?void 0:r.name)?n:Vt.empty,o)});return function(e){return{header:e[0].header,tableReferenceName:e[0].tableReferenceName,subheaderValues:e[0].subheaderValues,units:e.reduce((e,t)=>e.concat(t.units),[]).filter(Gt),sources:e.reduce((e,t)=>e.concat(t.sources),[]).filter(Gt),colVarNames:e[0].colVarNames,rowVarNames:e[0].rowVarNames,selectableVarNames:e[0].selectableVarNames,columnNameGroups:e[0].columnNameGroups,series:e.reduce((e,t)=>e.concat(t.series),[]),visualizationSettings:e[0].visualizationSettings,seriesType:e[0].seriesType}}(o)}(e,t):Gn(e,Zn(t),_n(t)),o=(null==(r=s.visualizationSettings)?void 0:r.visualizationType)===Tt.PercentHorizontalBarChart||(null==(a=s.visualizationSettings)?void 0:a.visualizationType)===Tt.PercentVerticalBarChart;switch(null==(i=e.visualizationSettings)?void 0:i.sorting){case null:case void 0:case"no_sorting":return s;case"sum":return function(e,t){const n=e.columnNameGroups.map((t,n)=>({value:e.series.map(e=>e.series[n]).reduce((e,t)=>{var n;return e+(null!=(n=t.value)?n:0)},0),precision:0,preliminary:!1}));return Vn(e,n,t)}(s,On);case"ascending":return In(s,0,Dn);case"descending":return In(s,0,On);default:return o?(l=s,c=Rn(s),u=Fn(e),zn(Vn(l,c.series[u].series,On),u)):In(s,Fn(e),On)}var l,c,u}function Rn(e){const t=e.series.map(t=>v({},t,{series:t.series.map((t,n)=>{var r;const a=e.series.reduce((e,t)=>{var r;return e+(null!=(r=t.series[n].value)?r:0)},0),i=a&&0!==a?Math.round(100*(null!=(r=t.value)?r:0)/a*10)/10:null,s={value:i,precision:1,preliminary:t.preliminary};return null===i&&(s.missingCode=t.missingCode),s})}));return v({},e,{units:e.units.map(e=>{return{name:e.name,unit:(t=e.unit,Object.keys(t).reduce((e,t)=>(e[t]="%",e),{}))};var t}),series:t})}function _n(e){const t={};return Object.entries(e).forEach(([e,n])=>t[e]=n.length),t}function Gn(e,t,n){const{metaData:r,selectableVariableCodes:a}=e,i=Bn(r,a),s=Hn(r),o=function(e,t){const n=Bn(e.metaData,e.selectableVariableCodes),r=e.metaData.filter(t=>e.rowVariableCodes.includes(t.code)).filter(e=>e.values.length>1).map(e=>e.values),a=e.metaData.filter(t=>e.columnVariableCodes.includes(t.code)).filter(e=>e.values.length>1).map(e=>e.values),i=_t(a),s=_t(r),o=function(e,t,n){let r=0,a=1;for(let i=e.length-1;i>=0;i--){const s=e[i].values.findIndex(n=>n.code===t[e[i].code]);if(s<0)throw new Error("Provided selected value code can not be found from the metadata");r+=s*n*a,a*=e[i].values.length}return r}(n,t,function(e){const{metaData:t,selectableVariableCodes:n}=e;return t.filter(e=>!n.includes(e.code)).map(e=>e.values.length).reduce((e,t)=>e*t,1)}(e)),l=function(e,t){const n=Hn(e.metaData);var r,a,i,s;return 1===n.values.length?null!=(r=null==(a=n.values[0].contentComponent)?void 0:a.numberOfDecimals)?r:null:e.selectableVariableCodes.includes(n.code)&&e.visualizationSettings.multiselectableVariableCode!==n.code&&null!=(i=null==(s=n.values.find(e=>e.code===t[n.code]))||null==(s=s.contentComponent)?void 0:s.numberOfDecimals)?i:null}(e,t);let c=0;const u=s.map(t=>{var n,r;const a=t.some(e=>Object.values(e.name)[0].trim().endsWith("*")),s=null!=(n=null!=l?l:null==(r=t.find(e=>e.contentComponent))||null==(r=r.contentComponent)?void 0:r.numberOfDecimals)?n:null,u=i.map(t=>{var n,r;const i={value:e.data[o+c],precision:null!=(n=null!=s?s:null==(r=t.find(e=>e.contentComponent))||null==(r=r.contentComponent)?void 0:r.numberOfDecimals)?n:0,preliminary:a||t.some(e=>Object.values(e.name)[0].trim().endsWith("*"))};return i.value||(i.missingCode=e.missingDataInfo[o+c]),c++,i});return{rowNameGroup:t.map(e=>e.name),series:u}});return{columnNameGroups:i.map(e=>e.map(e=>e.name)),series:u}}(e,t);return{header:e.header,tableReferenceName:e.tableReference.name,subheaderValues:Wn(i,t,n),units:Yn(s,t),sources:Un(s,t,e=>{var t;return null!=(t=null==e?void 0:e.source)?t:Vt.empty}),columnNameGroups:o.columnNameGroups,series:o.series,colVarNames:qn(e.columnVariableCodes,e.metaData),rowVarNames:qn(e.rowVariableCodes,e.metaData),selectableVarNames:qn(e.selectableVariableCodes,e.metaData),visualizationSettings:e.visualizationSettings,seriesType:Xn(e.columnVariableCodes,e.metaData)}}function qn(e,t){return e.reduce((e,n)=>{var r;const a=null==(r=t.find(e=>e.code===n))?void 0:r.name;return a&&e.push(a),e},[])}function Bn(e,t){return e.filter(e=>t.includes(e.code))}function Fn(e){const t=e.metaData.find(t=>t.code==e.rowVariableCodes[0]),n=null==t?void 0:t.values.findIndex(t=>{var n;return t.code===(null==(n=e.visualizationSettings)?void 0:n.sorting)});return!n||n<0?0:n}function Hn(e){const t=e.find(e=>e.type===jt.Content);if(t)return t;throw new Error("Content variable is not defined")}function Wn(e,t,n){const r=[];return e.forEach(e=>{var a,i;1==n[e.code]&&r.push(null!=(a=null==(i=e.values.find(n=>n.code===t[e.code]))?void 0:i.name)?a:{})}),r}function Yn(e,t){const n=e.code in t?e.values.filter(n=>t[e.code]===n.code):e.values;return n.reduce((e,t)=>(t.contentComponent&&e.push({name:t.name,unit:t.contentComponent.unit}),e),[])}function Un(e,t,n){return e.code in t?e.values.filter(n=>t[e.code]===n.code).map(e=>n(e.contentComponent)).filter(Gt):e.values.map(e=>n(e.contentComponent)).filter(Gt)}function Zn(e){const t={};return Object.entries(e).forEach(([e,n])=>t[e]=n[0]),t}function Xn(e,t){var n;if(e.length>1||0===e.length)return en.Nominal;const r=null==(n=t.find(t=>t.code===e[0]))?void 0:n.type;switch(r){case jt.Time:return en.Time;case jt.Ordinal:return en.Ordinal;default:return en.Nominal}}const Kn=(e,t,n,r=null)=>{const a=Ht(n);"object"==typeof o&&(u(o),m(o),d(o),p(o)),o.setOptions(gn(a));const i=Ln(t,jn(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,r)),s=Tn(a,i);return o.chart(e,s)},Jn=["",".","..","...","....",".....","......","-"];function Qn(e,t,n=!1){if(null==e.value)throw new Error("Can not produce a localized numeric formatting for missing data");return new Intl.NumberFormat(t,{maximumFractionDigits:e.precision,minimumFractionDigits:e.precision,useGrouping:n}).format(e.value)}function er(e,t,n=!1){if(e)return n?Vt.dataMissing[t]:Jn[e];throw new Error("Invalid missing code. Can not generate table presentation")}function tr(e,t,n,r,a,i,s){const o=document.getElementById(i);if(!o)throw new Error("No container with matching id found in the DOM tree");try{if(n){const n=document.createElement("span");if(n.classList.add("title"),n.append(e.header[t]),o.append(n),e.subheaderValues.length>0){const n=document.createElement("span");n.classList.add("subtitle"),n.append(e.subheaderValues.map(e=>e[t]).join(" | ")),o.append(n)}}const i=function(e,t){var n,r;const a=null!=(n=e.columnNameGroups[0].length)?n:0,i=null!=(r=e.series[0].rowNameGroup.length)?r:0,s=document.createElement("table");if(a>0){const n=function(e,t){const n=ar(e),r=[];for(let a=0;a<e[0].length;a++){const i=document.createElement("tr");for(let r=0;r<e.length;r+=n[a]){const s=document.createElement("th");s.setAttribute("colSpan",n[a].toString()),s.setAttribute("scope","col"),s.textContent=e[r][a][t],i.append(s)}r.push(i)}return r}(e.columnNameGroups,t);if(i>0){const e=document.createElement("td");e.setAttribute("colSpan",i.toString()),e.setAttribute("rowSpan",a.toString()),n[0].prepend(e)}const r=document.createElement("thead");r.append(...n),s.append(r)}if(e.series.length>0){const n=document.createElement("tbody");n.append(...function(e,t){const n=[],r=rr(e);for(let a=0;a<e.length;a++){const i=document.createElement("tr");for(let n=0;n<e[a].rowNameGroup.length;n++)if(a%r[n]==0){const s=document.createElement("th");s.setAttribute("rowSpan",r[n].toString()),s.setAttribute("scope","row"),s.textContent=e[a].rowNameGroup[n][t],i.append(s)}for(const n of e[a].series){const e=document.createElement("td");e.textContent=null===n.value?er(n.missingCode,t,!0):Qn(n,t,!0),i.append(e)}n.push(i)}return n}(e.series,t)),s.append(n)}return s}(e,t);if(o.append(i),r){const n=document.createElement("p"),r=Xt(e.units,t);n.append(`${Vt.unit[t]}: ${r}`),o.append(n)}if(a){const n=document.createElement("p"),r=`${Vt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`;n.append(r),o.append(n)}if(s){const e=document.createElement("p");e.append(s),o.append(e)}}catch(e){console.error(e),o.replaceChildren();const n=document.createElement("h1");n.append(Vt.graphCreationError[t]),o.append(n)}}const nr=(e,t)=>Object.keys(e).every(n=>e[n]==t[n]),rr=e=>{if(!e[0].rowNameGroup||0===e[0].rowNameGroup.length)return[];const t=Array(e[0].rowNameGroup.length).fill(1);for(let n=0;n<e[0].rowNameGroup.length;n++)for(let r=0;r<e.length-1&&nr(e[r].rowNameGroup[n],e[r+1].rowNameGroup[n]);r++)t[n]++;return t},ar=e=>{if(!e||0===e.length)return[];const t=Array(e[0].length).fill(1);for(let n=0;n<e[0].length;n++)for(let r=0;r<e.length-1&&nr(e[r][n],e[r+1][n]);r++)t[n]++;return t};var ir;!function(e){e[e.Csv=0]="Csv",e[e.Excel=1]="Excel"}(ir||(ir={}));const sr=(e,t)=>t===ir.Csv?new Blob(["\ufeff",e],{type:"text/csv;charset=utf-8;"}):new Blob([or(e)],{type:"application/octet-stream"}),or=e=>{const t=new ArrayBuffer(e.length);let n=new Uint8Array(t);for(let t=0;t<e.length;t++)n[t]=255&e.charCodeAt(t);return t},lr=e=>{const t=e?e.split(".")[0]:"",n=new Date;return`${t}_${n.getFullYear()}${(n.getMonth()+1).toString().padStart(2,"0")}${n.getDate().toString().padStart(2,"0")}_${n.getHours().toString().padStart(2,"0")}${n.getMinutes().toString().padStart(2,"0")}${n.getSeconds().toString().padStart(2,"0")}`},cr=(e,t)=>{var n,r,a,i,s,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===Tt.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===Tt.PercentVerticalBarChart)&&(e=Rn(e));const u=null!=(a=null==(i=e.columnNameGroups[0])?void 0:i.length)?a:0,m=null!=(s=null==(o=e.series[0])?void 0:o.rowNameGroup.length)?s:0,d=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+m,p=","==Vt.decimalPoint[t]?";":",",h="\n";let f=mr([`"${e.header[t]}"`],0,d,p,h);e.subheaderValues.length>0&&(f+=mr([`"${e.subheaderValues.map(e=>e[t]).join(" | ")}"`],0,d,p,h));for(let n=0;n<u;n++)f+=mr(e.columnNameGroups.map(e=>`"${e[n][t]}"`),m,d,p,h);return e.series.forEach(e=>{let n=[];e.rowNameGroup.length>0&&(n=e.rowNameGroup.map(e=>`"${e[t]}"`)),n=n.concat(e.series.map(e=>null===e.value?er(e.missingCode,t):Qn(e,t))),f+=mr(n,0,d,p,h)}),f+=mr([`"${Vt.unit[t]}: ${Xt(e.units,t)}"`],0,d,p,h),f+=mr([`"${Vt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}"`],0,d,p),f},ur=(e,t)=>({onClick:()=>{const n=cr(e,t),r=sr(n,ir.Csv),a=URL.createObjectURL(r),i=document.createElement("a");i.setAttribute("href",a),i.setAttribute("download",lr(e.tableReferenceName)+".csv"),document.body.appendChild(i),i.click()},text:Vt.downloadCSV[t]});function mr(e,t,n,r,a=""){let i="";for(let a=0;a<n;a++)a>=t&&a<t+e.length&&(i+=e[a-t]),a<n-1&&(i+=r);return i+a}const dr=(e,t)=>{const n=h.utils.book_new(),r=h.utils.aoa_to_sheet(pr(e,t));return h.utils.book_append_sheet(n,r,"Sheet1"),h.write(n,{bookType:"xlsx",type:"binary"})},pr=(e,t)=>{var n,r,a,i,s,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===Tt.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===Tt.PercentVerticalBarChart)&&(e=Rn(e));const u=null!=(a=null==(i=e.columnNameGroups[0])?void 0:i.length)?a:0,m=null!=(s=null==(o=e.series[0])?void 0:o.rowNameGroup.length)?s:0,d=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+m;let p=[fr([e.header[t]],0,d)];e.subheaderValues.length>0&&p.push(fr([e.subheaderValues.map(e=>e[t]).join(" | ")],0,d));for(let n=0;n<u;n++)p.push(fr(e.columnNameGroups.map(e=>e[n][t]),m,d));return e.series.forEach(e=>{let n=[];e.rowNameGroup.length>0&&(n=e.rowNameGroup.map(e=>e[t])),n=n.concat(e.series.map(e=>null===e.value?er(e.missingCode,t):Qn(e,t))),p.push(fr(n,0,d))}),p.push(fr([`${Vt.unit[t]}: ${Xt(e.units,t)}`],0,d)),p.push(fr([`${Vt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`],0,d)),p},hr=(e,t)=>({onClick:()=>{const n=dr(e,t),r=sr(n,ir.Excel),a=URL.createObjectURL(r),i=document.createElement("a");i.setAttribute("href",a),i.setAttribute("download",lr(e.tableReferenceName)+".xlsx"),document.body.appendChild(i),i.click()},text:Vt.downloadXLSX[t]});function fr(e,t,n){const r=Array(n);for(let a=0;a<n;a++)r[a]=a>=t&&a<t+e.length?e[a-t]:null;return r}const gr=["Bars","Times","Download","ExternalLink","Copy"],vr=({icon:t,inheritColor:n=!1})=>{switch(t){case"Bars":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"39.91mm",height:"29.92mm",viewBox:"0 0 113.12 84.82"},e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m56.51,14.13c-16.33,0-32.67.01-49,0-5.37,0-8.89-4.83-6.99-9.59C1.63,1.76,3.77.26,6.76.01c.22-.02.44,0,.66,0,32.74,0,65.49,0,98.23,0,4.3,0,7.45,2.99,7.47,7.01.02,4.11-3.15,7.1-7.6,7.11-16.33.01-32.67,0-49,0Z"})),e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m56.55,49.47c-16.41,0-32.82.01-49.22,0-3.78,0-6.77-2.56-7.26-6.09-.49-3.53,1.78-6.9,5.35-7.81.77-.2,1.6-.21,2.4-.21,32.52,0,65.04-.01,97.57,0,4.51,0,7.69,2.89,7.74,6.97.04,4.19-3.16,7.14-7.79,7.15-16.26,0-32.52,0-48.78,0Z"})),e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m56.43,84.82c-16.33,0-32.67,0-49,0-3.68,0-6.45-2.17-7.25-5.56-.73-3.09.92-6.54,3.92-7.84,1.04-.45,2.27-.69,3.41-.69,32.74-.04,65.49-.03,98.23-.02,4.27,0,7.41,3.06,7.39,7.09-.02,4.02-3.17,7.02-7.47,7.02-16.41.02-32.82,0-49.22,0Z"})));case"Times":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"26.97mm",height:"26.97mm",viewBox:"0 0 76.44 76.44"},e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m0,38.09C.02,17.02,17.22-.04,38.39,0c21.08.04,38.09,17.21,38.05,38.42-.04,21-17.21,38.04-38.31,38.01C17.04,76.41-.02,59.26,0,38.09ZM38.25,5.95c-17.86-.02-32.27,14.33-32.31,32.17-.04,17.94,14.33,32.35,32.25,32.37,17.87.02,32.23-14.28,32.3-32.17.07-17.92-14.31-32.35-32.24-32.37Z"})),e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m38.4,34c2.9-2.94,5.58-5.67,8.27-8.39.93-.94,2.13-1.38,3.25-.73.8.47,1.7,1.46,1.78,2.29.09.92-.48,2.12-1.14,2.85-2.18,2.38-4.54,4.6-6.83,6.89-.35.35-.68.71-1.07,1.12,2.67,2.68,5.35,5.26,7.88,7.99.67.72,1.28,1.95,1.16,2.84-.12.88-1.05,1.9-1.89,2.37-1.03.57-2.22.16-3.12-.75-2.31-2.33-4.65-4.63-6.96-6.97-.38-.39-.66-.87-1.36-1.8-.71.95-1.11,1.64-1.65,2.19-2.12,2.17-4.27,4.32-6.44,6.44-1.41,1.38-3.16,1.46-4.38.28-1.26-1.22-1.2-3.02.24-4.48,2.27-2.31,4.56-4.58,6.87-6.85.38-.38.88-.64,1.42-1.03-2.89-2.89-5.5-5.47-8.07-8.1-.53-.55-1.05-1.24-1.24-1.96-.35-1.32.14-2.48,1.38-3.16,1.28-.71,2.53-.5,3.56.5,2.32,2.26,4.59,4.55,6.88,6.84.46.46.86.96,1.47,1.64Z"})));case"Download":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"33.64mm",height:"33.64mm",viewBox:"0 0 95.35 95.37"},e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m41.74,51.99c0-1.25,0-1.92,0-2.59,0-14.4,0-28.79,0-43.19,0-3.27,2.24-5.84,5.28-6.17,3.01-.33,5.8,1.65,6.48,4.66.16.71.14,1.48.14,2.22,0,14.15,0,28.29,0,42.44v2.34c.53-.42.91-.67,1.23-.98,3.12-3.11,6.23-6.23,9.35-9.34,2.74-2.72,6.26-2.87,8.75-.4,2.49,2.46,2.39,6.06-.3,8.75-6.79,6.81-13.59,13.61-20.4,20.4-2.92,2.91-6.25,2.92-9.15.03-6.81-6.79-13.61-13.59-20.4-20.4-2.71-2.72-2.84-6.26-.35-8.75,2.48-2.49,6.03-2.36,8.75.34,3.42,3.4,6.82,6.83,10.61,10.64Z"})),e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m47.67,95.37c-13.83,0-27.66,0-41.49,0-3.18,0-5.7-2.16-6.12-5.13-.42-2.98,1.5-5.82,4.51-6.59.65-.17,1.35-.18,2.02-.18,27.41,0,54.83,0,82.24,0,3.8,0,6.48,2.43,6.52,5.88.04,3.53-2.66,6.02-6.56,6.03-13.71,0-27.41,0-41.12,0Z"})));case"ExternalLink":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"88.84mm",height:"79.62mm",viewBox:"0 0 251.84 225.69"},e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m125.89,225.68c-22.84,0-45.67.03-68.51,0C23.18,225.63.03,202.4.01,168.14,0,131.14,0,94.13.01,57.13.04,23.53,23.35.14,56.85.1c23.67-.03,21.34.02,45.01-.03,4.75,0,8.96,1.04,11.87,5.09,2.64,3.67,3.08,7.7,1.25,11.83-2.01,4.53-5.59,7-10.57,7.06-9,.11-12,.07-21,.07-15.84,0-11.67-.05-27.5.02-18.82.08-31.81,12.98-31.84,31.74-.06,38-.06,76.01,0,114.01.03,18.74,13.04,31.7,31.86,31.72,46.67.05,93.34.06,140.01,0,18.79-.02,31.71-12.99,31.79-31.8.07-17,0-14,.03-31.01.02-8.3,4.75-13.75,11.83-13.81,7.07-.06,12.12,5.48,12.16,13.61.07,17.5.18,15.01-.02,32.51-.34,30.71-23.87,54.02-54.81,54.56h-71.01l-.02.02Z"})),e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m207.19,24.08c-6.95,0-23.9.04-30.85,0-8.12-.06-13.27-4.55-13.44-11.6-.17-7.19,5.18-12.33,13.32-12.38,17.33-.11,44.67-.12,62,0,8.48.06,13.45,4.99,13.5,13.37.12,16.83.12,43.67,0,60.5-.06,7.69-5.4,13.04-12.34,12.87-6.83-.17-11.53-5.35-11.61-12.97-.08-7.63-.02-25.26-.02-34.12-2.09,1.8-3.42,2.88-4.68,4.03-26.76,24.57-53.52,49.15-80.28,73.72-1.6,1.47-3.13,3-4.82,4.36-5.57,4.47-12.54,3.94-16.98-1.2-4.31-4.98-4.06-11.78,1.06-16.6,10.92-10.28,22.03-20.36,33.07-30.51,16.56-15.23,33.13-30.45,49.72-45.65.97-.89,2.15-1.56,3.23-2.33-.29-.5-.58-.99-.87-1.49h0Z"})));case"Copy":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"31.19mm",height:"31.21mm",viewBox:"0 0 88.41 88.48"},e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m20.67,54.61c0-7.55,0-15.1,0-22.65,0-6.79,4.38-11.2,11.13-11.21,15.16-.01,30.33-.01,45.49,0,6.75,0,11.12,4.42,11.12,11.22,0,15.1,0,30.2,0,45.3,0,6.79-4.39,11.21-11.13,11.21-15.16,0-30.33,0-45.49,0-6.66,0-11.1-4.41-11.12-11.03-.02-7.61,0-15.22,0-22.83Zm60.78.1c0-7.67,0-15.34,0-23.01,0-2.72-1.23-3.98-3.89-3.99-15.34,0-30.68,0-46.02,0-2.67,0-3.89,1.26-3.89,3.98,0,15.28,0,30.55,0,45.83,0,2.79,1.23,3.99,4.07,3.99,15.22,0,30.44,0,45.65,0,2.91,0,4.08-1.21,4.08-4.17,0-7.55,0-15.09,0-22.64Z"})),e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m13.66,60.85v6.64C6.35,69.22.02,64.29.01,56.9c-.02-15.34-.02-30.69,0-46.03C.02,4.48,4.36.11,10.73.1c15.1-.02,30.21.19,45.3-.1,6.89-.13,12.81,4.89,11.49,13.58h-6.74c0-.95.03-1.91,0-2.86-.08-2.34-1.35-3.69-3.66-3.69-15.53-.02-31.06-.02-46.59,0-2.36,0-3.58,1.27-3.58,3.7-.02,15.4-.02,30.81,0,46.21,0,2.65,1.32,3.87,4.01,3.91.85.01,1.7,0,2.71,0Z"})));default:return e.createElement("span",null,"No icon for ",t,e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"26.97mm",height:"26.97mm",viewBox:"0 0 76.45 76.44"},e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m0,38.1C.02,17.02,17.22-.04,38.4,0c21.08.04,38.1,17.21,38.06,38.43-.04,21-17.21,38.05-38.32,38.02C17.04,76.42-.02,59.27,0,38.1ZM38.26,5.95c-17.86-.02-32.27,14.33-32.31,32.17-.04,17.94,14.33,32.35,32.25,32.37,17.87.02,32.23-14.28,32.3-32.17.07-17.92-14.31-32.35-32.24-32.37Z"})),e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m34.1,43.95c-.12-.12-.18-.26-.18-.43v-1.62c0-1.68.43-3.04,1.29-4.07.86-1.03,2.1-2.11,3.71-3.26,1.31-.91,2.29-1.72,2.93-2.42s.96-1.57.96-2.58c0-1.08-.4-1.95-1.21-2.6-.81-.66-1.87-.99-3.18-.99-1.42,0-2.55.35-3.41,1.06-.86.71-1.29,1.62-1.29,2.73v.81c0,.37-.2.56-.61.56l-5.91-.25c-.17,0-.31-.06-.43-.18-.12-.12-.18-.26-.18-.43v-.5c0-2.02.51-3.81,1.52-5.38,1.01-1.57,2.42-2.78,4.22-3.64,1.8-.86,3.88-1.29,6.24-1.29s4.3.41,6.04,1.24c1.73.83,3.07,1.98,4.02,3.46.94,1.48,1.41,3.2,1.41,5.15,0,1.48-.26,2.75-.78,3.81-.52,1.06-1.15,1.93-1.89,2.6-.74.67-1.68,1.42-2.83,2.22-1.21.84-2.11,1.57-2.68,2.17s-.86,1.35-.86,2.22v1.16c0,.17-.06.31-.18.43-.12.12-.26.18-.43.18h-5.86c-.17,0-.31-.06-.43-.18Zm.3,10.36c-.76-.76-1.14-1.71-1.14-2.85s.37-2.09,1.11-2.83,1.7-1.11,2.88-1.11,2.13.36,2.85,1.09c.72.72,1.09,1.68,1.09,2.85s-.37,2.1-1.11,2.85c-.74.76-1.68,1.14-2.83,1.14s-2.1-.38-2.85-1.14Z"}))))}};let yr,br,wr,Sr,xr,kr,Cr,Ar=e=>e;const Er=$t.button(yr||(yr=Ar`
|
|
2
2
|
background-color: transparent;
|
|
3
3
|
text-align: left;
|
|
4
4
|
border: none;
|