@statisticsfinland/pxvisualizer 1.4.5 → 1.4.8-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/dist/pxv.cjs +1 -1
- package/dist/pxv.cjs.map +1 -1
- package/dist/pxv.modern.js +19 -19
- 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/package.json +19 -13
package/dist/pxv.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{createElement as t,forwardRef as n,useId as r,useEffect as i,useMemo as a,Component as s}from"react";import*as o from"highcharts";import l from"highcharts";import c from"decimal.js";import{strToU8 as u,zip as d}from"fflate";import{HighchartsReact as m}from"highcharts-react-official";import"highcharts/modules/accessibility.js";import"highcharts/modules/exporting.js";import"highcharts/modules/offline-exporting.js";import"highcharts/modules/pattern-fill.js";function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(null,arguments)}var p=function(){return p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},p.apply(this,arguments)};function f(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function g(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}"function"==typeof SuppressedError&&SuppressedError;var v=/^((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|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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__ */g(function(e){return v.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),b="-ms-",w="-moz-",x="-webkit-",S="comm",C="rule",k="decl",N="@keyframes",A=Math.abs,E=String.fromCharCode,T=Object.assign;function M(e){return e.trim()}function P(e,t){return(e=t.exec(e))?e[0]:e}function I(e,t,n){return e.replace(t,n)}function j(e,t,n){return e.indexOf(t,n)}function V(e,t){return 0|e.charCodeAt(t)}function $(e,t,n){return e.slice(t,n)}function D(e){return e.length}function L(e){return e.length}function O(e,t){return t.push(e),e}function z(e,t){return e.filter(function(e){return!P(e,t)})}var R=1,G=1,q=0,B=0,_=0,F="";function H(e,t,n,r,i,a,s,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:R,column:G,length:s,return:"",siblings:o}}function U(e,t){return T(H("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function W(e){for(;e.root;)e=U(e.root,{children:[e]});O(e,e.siblings)}function Y(){return _=B>0?V(F,--B):0,G--,10===_&&(G=1,R--),_}function Z(){return _=B<q?V(F,B++):0,G++,10===_&&(G=1,R++),_}function K(){return V(F,B)}function X(){return B}function J(e,t){return $(F,e,t)}function Q(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ee(e){return M(J(B-1,re(91===e?e+2:40===e?e+1:e)))}function te(e){for(;(_=K())&&_<33;)Z();return Q(e)>2||Q(_)>3?"":" "}function ne(e,t){for(;--t&&Z()&&!(_<48||_>102||_>57&&_<65||_>70&&_<97););return J(e,X()+(t<6&&32==K()&&32==Z()))}function re(e){for(;Z();)switch(_){case e:return B;case 34:case 39:34!==e&&39!==e&&re(_);break;case 40:41===e&&re(e);break;case 92:Z()}return B}function ie(e,t){for(;Z()&&e+_!==57&&(e+_!==84||47!==K()););return"/*"+J(t,B-1)+"*"+E(47===e?e:Z())}function ae(e){for(;!Q(K());)Z();return J(e,B)}function se(e){return function(e){return F="",e}(oe("",null,null,null,[""],e=function(e){return R=G=1,q=D(F=e),B=0,[]}(e),0,[0],e))}function oe(e,t,n,r,i,a,s,o,l){for(var c=0,u=0,d=s,m=0,h=0,p=0,f=1,g=1,v=1,y=0,b="",w=i,x=a,S=r,C=b;g;)switch(p=y,y=Z()){case 40:if(108!=p&&58==V(C,d-1)){-1!=j(C+=I(ee(y),"&","&\f"),"&\f",A(c?o[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=ee(y);break;case 9:case 10:case 13:case 32:C+=te(p);break;case 92:C+=ne(X()-1,7);continue;case 47:switch(K()){case 42:case 47:O(ce(ie(Z(),X()),t,n,l),l),5!=Q(p||1)&&5!=Q(K()||1)||!D(C)||" "===$(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*f:o[c++]=D(C)*v;case 125*f:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(C=I(C,/\f/g,"")),h>0&&(D(C)-d||0===f&&47===p)&&O(h>32?ue(C+";",r,n,d-1,l):ue(I(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(O(S=le(C,t,n,c,u,i,o,b,w=[],x=[],d,a),a),123===y)if(0===u)oe(C,t,S,S,w,a,d,o,x);else{switch(m){case 99:if(110===V(C,3))break;case 108:if(97===V(C,2))break;default:u=0;case 100:case 109:case 115:}u?oe(e,S,S,r&&O(le(e,S,S,0,0,i,o,b,i,w=[],d,x),x),i,x,d,o,r?w:x):oe(C,S,S,S,[""],x,0,o,x)}}c=u=h=0,f=v=1,b=C="",d=s;break;case 58:d=1+D(C),h=p;default:if(f<1)if(123==y)--f;else if(125==y&&0==f++&&125==Y())continue;switch(C+=E(y),y*f){case 38:v=u>0?1:(C+="\f",-1);break;case 44:o[c++]=(D(C)-1)*v,v=1;break;case 64:45===K()&&(C+=ee(Z())),m=K(),u=d=D(b=C+=ae(X())),y++;break;case 45:45===p&&2==D(C)&&(f=0)}}return a}function le(e,t,n,r,i,a,s,o,l,c,u,d){for(var m=i-1,h=0===i?a:[""],p=L(h),f=0,g=0,v=0;f<r;++f)for(var y=0,b=$(e,m+1,m=A(g=s[f])),w=e;y<p;++y)(w=M(g>0?h[y]+" "+b:I(b,/&\f/g,h[y])))&&(l[v++]=w);return H(e,t,n,0===i?C:o,l,c,u,d)}function ce(e,t,n,r){return H(e,t,n,S,E(_),$(e,2,-2),0,r)}function ue(e,t,n,r,i){return H(e,t,n,k,$(e,0,r),$(e,r+1,-1),r,i)}function de(e,t,n){switch(function(e,t){return 45^V(e,0)?(((t<<2^V(e,0))<<2^V(e,1))<<2^V(e,2))<<2^V(e,3):0}(e,t)){case 5103:return x+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return x+e+e;case 4855:return x+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return w+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return x+e+w+e+b+e+e;case 5936:switch(V(e,t+11)){case 114:return x+e+b+I(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return x+e+b+I(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return x+e+b+I(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return x+e+b+e+e;case 6165:return x+e+b+"flex-"+e+e;case 5187:return x+e+I(e,/(\w+).+(:[^]+)/,x+"box-$1$2"+b+"flex-$1$2")+e;case 5443:return x+e+b+"flex-item-"+I(e,/flex-|-self/g,"")+(P(e,/flex-|baseline/)?"":b+"grid-row-"+I(e,/flex-|-self/g,""))+e;case 4675:return x+e+b+"flex-line-pack"+I(e,/align-content|flex-|-self/g,"")+e;case 5548:return x+e+b+I(e,"shrink","negative")+e;case 5292:return x+e+b+I(e,"basis","preferred-size")+e;case 6060:return x+"box-"+I(e,"-grow","")+x+e+b+I(e,"grow","positive")+e;case 4554:return x+I(e,/([^-])(transform)/g,"$1"+x+"$2")+e;case 6187:return I(I(I(e,/(zoom-|grab)/,x+"$1"),/(image-set)/,x+"$1"),e,"")+e;case 5495:case 3959:return I(e,/(image-set\([^]*)/,x+"$1$`$1");case 4968:return I(I(e,/(.+:)(flex-)?(.*)/,x+"box-pack:$3"+b+"flex-pack:$3"),/space-between/,"justify")+x+e+e;case 4200:if(!P(e,/flex-|baseline/))return b+"grid-column-align"+$(e,t)+e;break;case 2592:case 3360:return b+I(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,P(e.props,/grid-\w+-end/)})?~j(e+(n=n[t].value),"span",0)?e:b+I(e,"-start","")+e+b+"grid-row-span:"+(~j(n,"span",0)?P(n,/\d+/):+P(n,/\d+/)-+P(e,/\d+/))+";":b+I(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return P(e.props,/grid-\w+-start/)})?e:b+I(I(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return I(e,/(.+)-inline(.+)/,x+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(D(e)-1-t>6)switch(V(e,t+1)){case 109:if(45!==V(e,t+4))break;case 102:return I(e,/(.+:)(.+)-([^]+)/,"$1"+x+"$2-$3$1"+w+(108==V(e,t+3)?"$3":"$2-$3"))+e;case 115:return~j(e,"stretch",0)?de(I(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return I(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,s,o){return b+n+":"+r+o+(i?b+n+"-span:"+(a?s:+s-+r)+o:"")+e});case 4949:if(121===V(e,t+6))return I(e,":",":"+x)+e;break;case 6444:switch(V(e,45===V(e,14)?18:11)){case 120:return I(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+x+(45===V(e,14)?"inline-":"")+"box$3$1"+x+"$2$3$1"+b+"$2box$3")+e;case 100:return I(e,":",":"+b)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return I(e,"scroll-","scroll-snap-")+e}return e}function me(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function he(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case k:return e.return=e.return||e.value;case S:return"";case N:return e.return=e.value+"{"+me(e.children,r)+"}";case C:if(!D(e.value=e.props.join(",")))return""}return D(n=me(e.children,r))?e.return=e.value+"{"+n+"}":""}function pe(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case k:return void(e.return=de(e.value,e.length,n));case N:return me([U(e,{value:I(e.value,"@","@"+x)})],r);case C:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(P(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":W(U(e,{props:[I(t,/:(read-\w+)/,":-moz-$1")]})),W(U(e,{props:[t]})),T(e,{props:z(n,r)});break;case"::placeholder":W(U(e,{props:[I(t,/:(plac\w+)/,":"+x+"input-$1")]})),W(U(e,{props:[I(t,/:(plac\w+)/,":-moz-$1")]})),W(U(e,{props:[I(t,/:(plac\w+)/,b+"input-$1")]})),W(U(e,{props:[t]})),T(e,{props:z(n,r)})}return""})}}var fe={animationIterationCount:1,aspectRatio: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,scale: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},ge="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ve="active",ye="data-styled-version",be="6.3.11",we="/*!sc*/\n",xe="undefined"!=typeof window&&"undefined"!=typeof document,Se=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:"undefined"!=typeof process&&void 0!==process.env&&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),Ce={},ke="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",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Ne(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,a=e.length;i<a;i+=1)r.push(e[i]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function Ae(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Ne.apply(void 0,f([ke[e]],t,!1)).trim())}var Ee=1<<30,Te=new Map,Me=new Map,Pe=1,Ie=function(e){if(Te.has(e))return Te.get(e);for(;Me.has(Pe);)Pe++;var t=Pe++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>Ee))throw Ae(16,"".concat(t));return Te.set(e,t),Me.set(t,e),t},je=function(e,t){Pe=t+1,Te.set(e,t),Me.set(t,e)},Ve=/invalid hook call/i,$e=new Set,De=function(t,n){if("production"!==process.env.NODE_ENV){var r=n?' with the id of "'.concat(n,'"'):"",i="The component ".concat(t).concat(r," has been created dynamically.\n")+"You 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.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n",a=console.error;try{var s=!0;console.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Ve.test(e)?(s=!1,$e.delete(i)):a.apply(void 0,f([e],t,!1))},"function"==typeof e.useState&&e.useState(null),s&&!$e.has(i)&&(console.warn(i),$e.add(i))}catch(e){Ve.test(e.message)&&$e.delete(i)}finally{console.error=a}}},Le=Object.freeze([]),Oe=Object.freeze({});function ze(e,t,n){return void 0===n&&(n=Oe),e.theme!==n.theme&&e.theme||t||n.theme}var Re=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),Ge=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,qe=/(^-|-$)/g;function Be(e){return e.replace(Ge,"-").replace(qe,"")}var _e=/(a)(d)/gi,Fe=function(e){return String.fromCharCode(e+(e>25?39:97))};function He(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Fe(t%52)+n;return(Fe(t%52)+n).replace(_e,"$1-$2")}var Ue,We=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ye=function(e){return We(5381,e)};function Ze(e){return He(Ye(e)>>>0)}function Ke(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function Xe(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Je="function"==typeof Symbol&&Symbol.for,Qe=Je?Symbol.for("react.memo"):60115,et=Je?Symbol.for("react.forward_ref"):60112,tt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},nt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},rt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},it=((Ue={})[et]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ue[Qe]=rt,Ue);function at(e){return("type"in(t=e)&&t.type.$$typeof)===Qe?rt:"$$typeof"in e?it[e.$$typeof]:tt;var t}var st=Object.defineProperty,ot=Object.getOwnPropertyNames,lt=Object.getOwnPropertySymbols,ct=Object.getOwnPropertyDescriptor,ut=Object.getPrototypeOf,dt=Object.prototype;function mt(e,t,n){if("string"!=typeof t){if(dt){var r=ut(t);r&&r!==dt&&mt(e,r,n)}var i=ot(t);lt&&(i=i.concat(lt(t)));for(var a=at(e),s=at(t),o=0;o<i.length;++o){var l=i[o];if(!(l in nt||n&&n[l]||s&&l in s||a&&l in a)){var c=ct(t,l);try{st(e,l,c)}catch(e){}}}}return e}function ht(e){return"function"==typeof e}function pt(e){return"object"==typeof e&&"styledComponentId"in e}function ft(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function gt(e,t){return e.join(t||"")}function vt(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function yt(e,t,n){if(void 0===n&&(n=!1),!n&&!vt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=yt(e[r],t[r]);else if(vt(t))for(var r in t)e[r]=yt(e[r],t[r]);return e}function bt(e,t){Object.defineProperty(e,"toString",{value:t})}var wt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}return e.prototype.indexOfGroup=function(e){if(e===this._cGroup)return this._cIndex;var t=this._cIndex;if(e>this._cGroup)for(var n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw Ae(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=r;a<i;a++)this.groupSizes[a]=0}for(var s=this.indexOfGroup(e+1),o=0,l=(a=0,t.length);a<l;a++)this.tag.insertRule(s,t[a])&&(this.groupSizes[e]++,s++,o++);o>0&&this._cGroup>e&&(this._cIndex+=o)},e.prototype.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 i=n;i<r;i++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}},e.prototype.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),i=r+n,a=r;a<i;a++)t+=this.tag.getRule(a)+we;return t},e}(),xt="style[".concat(ge,"][").concat(ye,'="').concat(be,'"]'),St=new RegExp("^".concat(ge,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ct=function(e){return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType},kt=function(e){if(!e)return document;if(Ct(e))return e;if("getRootNode"in e){var t=e.getRootNode();if(Ct(t))return t}return document},Nt=function(e,t,n){for(var r,i=n.split(","),a=0,s=i.length;a<s;a++)(r=i[a])&&e.registerName(t,r)},At=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(we),i=[],a=0,s=r.length;a<s;a++){var o=r[a].trim();if(o){var l=o.match(St);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(je(u,c),Nt(e,u,l[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(o)}}},Et=function(e){for(var t=kt(e.options.target).querySelectorAll(xt),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(ge)!==ve&&(At(e,i),i.parentNode&&i.parentNode.removeChild(i))}},Tt=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(ge,"]")));return t[t.length-1]}(n),a=void 0!==i?i.nextSibling:null;r.setAttribute(ge,ve),r.setAttribute(ye,be);var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,a),r},Mt=function(){function e(e){this.element=Tt(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){var t;if(e.sheet)return e.sheet;for(var n=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets,r=0,i=n.length;r<i;r++){var a=n[r];if(a.ownerNode===e)return a}throw Ae(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Pt=function(){function e(e){this.element=Tt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.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},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),It=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(e===this.length?this.rules.push(t):this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),jt=xe,Vt={isServer:!xe,useCSSOMInjection:!Se},$t=function(){function e(e,t,n){void 0===e&&(e=Oe),void 0===t&&(t={});var r=this;this.options=p(p({},Vt),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&xe&&jt&&(jt=!1,Et(this)),bt(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=function(n){var i=function(e){return Me.get(e)}(n);if(void 0===i)return"continue";var a=e.names.get(i);if(void 0===a||!a.size)return"continue";var s=t.getGroup(n);if(0===s.length)return"continue";var o=ge+".g"+n+'[id="'+i+'"]',l="";a.forEach(function(e){e.length>0&&(l+=e+",")}),r+=s+o+'{content:"'+l+'"}'+we},a=0;a<n;a++)i(a);return r}(r)})}return e.registerId=function(e){return Ie(e)},e.prototype.rehydrate=function(){!this.server&&xe&&Et(this)},e.prototype.reconstructWithOptions=function(t,n){void 0===n&&(n=!0);var r=new e(p(p({},this.options),t),this.gs,n&&this.names||void 0);return!this.server&&xe&&t.target!==this.options.target&&kt(this.options.target)!==kt(t.target)&&Et(r),r},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new It(n):t?new Mt(n):new Pt(n)}(this.options),new wt(e)));var e},e.prototype.hasNameForId=function(e,t){var n,r;return null!==(r=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==r&&r},e.prototype.registerName=function(e,t){Ie(e);var n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Ie(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Ie(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Dt=/&/g,Lt=47,Ot=42;function zt(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,n=0,r=0,i=!1,a=0;a<t;a++){var s=e.charCodeAt(a);if(0!==r||i||s!==Lt||e.charCodeAt(a+1)!==Ot)if(i)s===Ot&&e.charCodeAt(a+1)===Lt&&(i=!1,a++);else if(34!==s&&39!==s||0!==a&&92===e.charCodeAt(a-1)){if(0===r)if(123===s)n++;else if(125===s&&--n<0)return!0}else 0===r?r=s:r===s&&(r=0);else i=!0,a++}return 0!==n||0!==r}function Rt(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Rt(e.children,t)),e})}var Gt=new $t,qt=function(){var e,t,n,r=Oe.options,i=void 0===r?Oe:r,a=Oe.plugins,s=void 0===a?Le:a,o=function(n,r,i){return i.startsWith(t)&&i.endsWith(t)&&i.replaceAll(t,"").length>0?".".concat(e):n},l=s.slice();l.push(function(e){e.type===C&&e.value.includes("&")&&(n||(n=new RegExp("\\".concat(t,"\\b"),"g")),e.props[0]=e.props[0].replace(Dt,t).replace(n,o))}),i.prefix&&l.push(pe),l.push(he);var c,u=[],d=function(e){var t=L(e);return function(n,r,i,a){for(var s="",o=0;o<t;o++)s+=e[o](n,r,i,a)||"";return s}}(l.concat((c=function(e){return u.push(e)},function(e){e.root||(e=e.return)&&c(e)}))),m=function(r,a,s,o){void 0===a&&(a=""),void 0===s&&(s=""),void 0===o&&(o="&"),e=o,t=a,n=void 0;var l=function(e){if(!zt(e))return e;for(var t=e.length,n="",r=0,i=0,a=0,s=!1,o=0;o<t;o++){var l=e.charCodeAt(o);if(0!==a||s||l!==Lt||e.charCodeAt(o+1)!==Ot)if(s)l===Ot&&e.charCodeAt(o+1)===Lt&&(s=!1,o++);else if(34!==l&&39!==l||0!==o&&92===e.charCodeAt(o-1)){if(0===a)if(123===l)i++;else if(125===l){if(--i<0){for(var c=o+1;c<t;){var u=e.charCodeAt(c);if(59===u||10===u)break;c++}c<t&&59===e.charCodeAt(c)&&c++,i=0,o=c-1,r=c;continue}0===i&&(n+=e.substring(r,o+1),r=o+1)}else 59===l&&0===i&&(n+=e.substring(r,o+1),r=o+1)}else 0===a?a=l:a===l&&(a=0);else s=!0,o++}if(r<t){var d=e.substring(r);zt(d)||(n+=d)}return n}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,n=[],r=0,i=0,a=0,s=0;i<t;){var o=e.charCodeAt(i);if(34!==o&&39!==o||0!==i&&92===e.charCodeAt(i-1))if(0===a)if(o===Lt&&i+1<t&&e.charCodeAt(i+1)===Ot){for(i+=2;i+1<t&&(e.charCodeAt(i)!==Ot||e.charCodeAt(i+1)!==Lt);)i++;i+=2}else if(40===o&&i>=3&&108==(32|e.charCodeAt(i-1))&&114==(32|e.charCodeAt(i-2))&&117==(32|e.charCodeAt(i-3)))s=1,i++;else if(s>0)41===o?s--:40===o&&s++,i++;else if(o===Ot&&i+1<t&&e.charCodeAt(i+1)===Lt)i>r&&n.push(e.substring(r,i)),r=i+=2;else if(o===Lt&&i+1<t&&e.charCodeAt(i+1)===Lt){for(i>r&&n.push(e.substring(r,i));i<t&&10!==e.charCodeAt(i);)i++;r=i}else i++;else i++;else 0===a?a=o:a===o&&(a=0),i++}return 0===r?e:(r<t&&n.push(e.substring(r)),n.join(""))}(r)),c=se(s||a?"".concat(s," ").concat(a," { ").concat(l," }"):l);return i.namespace&&(c=Rt(c,i.namespace)),u=[],me(c,d),u};return m.hash=s.length?s.reduce(function(e,t){return t.name||Ae(15),We(e,t.name)},5381).toString():"",m}(),Bt=e.createContext({shouldForwardProp:void 0,styleSheet:Gt,stylis:qt});function _t(){return e.useContext(Bt)}e.createContext(void 0);var Ft=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=qt);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,bt(this,function(){throw Ae(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=qt),this.name+e.hash},e}();function Ht(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in fe||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var Ut=function(e){return e>="A"&&e<="Z"};function Wt(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Ut(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Yt=function(e){return null==e||!1===e||""===e},Zt=function(e){var t=[];for(var n in e){var r=e[n];e.hasOwnProperty(n)&&!Yt(r)&&(Array.isArray(r)&&r.isCss||ht(r)?t.push("".concat(Wt(n),":"),r,";"):vt(r)?t.push.apply(t,f(f(["".concat(n," {")],Zt(r),!1),["}"],!1)):t.push("".concat(Wt(n),": ").concat(Ht(n,r),";")))}return t};function Kt(e,t,n,r,i){if(void 0===i&&(i=[]),"string"==typeof e)return e&&i.push(e),i;if(Yt(e))return i;if(pt(e))return i.push(".".concat(e.styledComponentId)),i;if(ht(e)){if(!ht(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return i.push(e),i;var a=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof a||Array.isArray(a)||a instanceof Ft||vt(a)||null===a||console.error("".concat(Ke(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.")),Kt(a,t,n,r,i)}var s;if(e instanceof Ft)return n?(e.inject(n,r),i.push(e.getName(r))):i.push(e),i;if(vt(e)){for(var o=Zt(e),l=0;l<o.length;l++)i.push(o[l]);return i}if(!Array.isArray(e))return i.push(e.toString()),i;for(l=0;l<e.length;l++)Kt(e[l],t,n,r,i);return i}function Xt(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ht(n)&&!pt(n))return!1}return!0}var Jt=Ye(be),Qt=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Xt(e),this.componentId=t,this.baseHash=We(Jt,t),this.baseStyle=n,$t.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n).className:"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=ft(r,this.staticRulesId);else{var i=gt(Kt(this.rules,e,t,n)),a=He(We(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,a)){var s=n(i,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,s)}r=ft(r,a),this.staticRulesId=a}else{for(var o=We(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u,"production"!==process.env.NODE_ENV&&(o=We(o,u));else if(u){var d=gt(Kt(u,e,t,n));o=We(We(o,String(c)),d),l+=d}}if(l){var m=He(o>>>0);if(!t.hasNameForId(this.componentId,m)){var h=n(l,".".concat(m),void 0,this.componentId);t.insertRules(this.componentId,m,h)}r=ft(r,m)}}return{className:r,css:"undefined"==typeof window?t.getTag().getGroup(Ie(this.componentId)):""}},e}(),en=e.createContext(void 0),tn={},nn=new Set;function rn(n,r,i){var a=pt(n),s=n,o=!Xe(n),l=r.attrs,c=void 0===l?Le:l,u=r.componentId,d=void 0===u?function(e,t){var n="string"!=typeof e?"sc":Be(e);tn[n]=(tn[n]||0)+1;var r="".concat(n,"-").concat(Ze(be+n+tn[n]));return t?"".concat(t,"-").concat(r):r}(r.displayName,r.parentComponentId):u,m=r.displayName,h=void 0===m?function(e){return Xe(e)?"styled.".concat(e):"Styled(".concat(Ke(e),")")}(n):m,f=r.displayName&&r.componentId?"".concat(Be(r.displayName),"-").concat(r.componentId):r.componentId||d,g=a&&s.attrs?s.attrs.concat(c).filter(Boolean):c,v=r.shouldForwardProp;if(a&&s.shouldForwardProp){var b=s.shouldForwardProp;if(r.shouldForwardProp){var w=r.shouldForwardProp;v=function(e,t){return b(e,t)&&w(e,t)}}else v=b}var x=new Qt(i,f,a?s.componentStyle:void 0);function S(n,r){return function(n,r,i){var a=n.attrs,s=n.componentStyle,o=n.defaultProps,l=n.foldedComponentIds,c=n.styledComponentId,u=n.target,d=e.useContext(en),m=_t(),h=n.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&e.useDebugValue&&e.useDebugValue(c);var f=ze(r,d,o)||Oe,g=function(e,t,n){for(var r,i=p(p({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var s=ht(r=e[a])?r(i):r;for(var o in s)"className"===o?i.className=ft(i.className,s[o]):"style"===o?i.style=p(p({},i.style),s[o]):i[o]=s[o]}return"className"in t&&"string"==typeof t.className&&(i.className=ft(i.className,t.className)),i}(a,r,f),v=g.as||u,b={};for(var w in g)void 0===g[w]||"$"===w[0]||"as"===w||"theme"===w&&g.theme===f||("forwardedAs"===w?b.as=g.forwardedAs:h&&!h(w,v)||(b[w]=g[w],h||"development"!==process.env.NODE_ENV||y(w)||nn.has(w)||!Re.has(v)||(nn.add(w),console.warn('styled-components: it looks like an unknown prop "'.concat(w,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var x=function(t,n){var r=_t(),i=t.generateAndInjectStyles(n,r.styleSheet,r.stylis);return"production"!==process.env.NODE_ENV&&e.useDebugValue&&e.useDebugValue(i.className),i}(s,g),S=x.className;"production"!==process.env.NODE_ENV&&n.warnTooManyClasses&&n.warnTooManyClasses(S);var C=ft(l,c);return S&&(C+=" "+S),g.className&&(C+=" "+g.className),b[Xe(v)&&!Re.has(v)?"class":"className"]=C,i&&(b.ref=i),t(v,b)}(C,n,r)}S.displayName=h;var C=e.forwardRef(S);return C.attrs=g,C.componentStyle=x,C.displayName=h,C.shouldForwardProp=v,C.foldedComponentIds=a?ft(s.foldedComponentIds,s.styledComponentId):"",C.styledComponentId=f,C.target=a?s.target:n,Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=a?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++)yt(e,i[r],!0);return e}({},s.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(De(h,f),C.warnTooManyClasses=function(e,t){var n={},r=!1;return function(i){if(!r&&(n[i]=!0,Object.keys(n).length>=200)){var a=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(a,".\n")+"Consider 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={}}}}(h,f)),bt(C,function(){return".".concat(C.styledComponentId)}),o&&mt(C,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),C}function an(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var sn=function(e){return Object.assign(e,{isCss:!0})};function on(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(ht(e)||vt(e))return sn(Kt(an(Le,f([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Kt(r):sn(Kt(an(r,t)))}function ln(e,t,n){if(void 0===n&&(n=Oe),!t)throw Ae(1,t);var r=function(r){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,n,on.apply(void 0,f([r],i,!1)))};return r.attrs=function(r){return ln(e,t,p(p({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return ln(e,t,p(p({},n),r))},r}var cn=function(e){return ln(rn,e)},un=cn;Re.forEach(function(e){un[e]=cn(e)});var dn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Xt(e),$t.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var i=r(gt(Kt(this.rules,t,n,r)),""),a=this.componentId+e;n.insertRules(a,a,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&$t.registerId(this.componentId+e);var i=this.componentId+e;this.isStatic?n.hasNameForId(i,i)||this.createStyles(e,t,n,r):(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");var mn,hn,pn,fn="__sc-".concat(ge,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[fn]||(window[fn]=0),1===window[fn]&&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://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."),window[fn]+=1),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"}(mn||(mn={})),function(e){e.Unknown="N",e.Time="T",e.Ordinal="P",e.Geological="G",e.Content="C",e.OtherClassificatory="F"}(hn||(hn={})),function(e){e.Week="Week",e.Month="Month",e.Quarter="Quarter",e.HalfYear="HalfYear",e.Year="Year",e.Decade="Decade",e.Irregular="Irregular"}(pn||(pn={}));const gn={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 puuttuu",sv:"Data saknas",en:"Missing data"},toggleAccessibilityModeOn:{fi:"Näytä kuviossa symbolit",sv:"Visa symboler i diagrammet",en:"Show symbols in the figure"},toggleAccessibilityModeOff:{fi:"Poista kuviosta symbolit",sv:"Ta bort symbolerna från diagrammet",en:"Remove symbols from the figure"},lastUpdated:{fi:"Päivitetty",sv:"Uppdaterad",en:"Updated"}},vn={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."]}},yn=new class{constructor(){this.Translations=void 0,this.ArrayTranslations=void 0,this.GetAllLanguages=()=>Object.keys(this.Translations.empty),this.Translations=gn,this.ArrayTranslations=vn}AddTranslations(e){for(const t in e.Translations)t in this.Translations&&(this.Translations[t]=h({},this.Translations[t],e.Translations[t]));for(const t in e.ArrayTranslations)t in this.ArrayTranslations&&(this.ArrayTranslations[t]=h({},this.ArrayTranslations[t],e.ArrayTranslations[t]))}},bn=yn.Translations,wn=yn.ArrayTranslations,xn=yn.GetAllLanguages;function Sn(e){yn.AddTranslations(e)}const Cn=e=>e.reduce((e,t)=>e.map(e=>t.map(t=>e.concat([t]))).reduce((e,t)=>e.concat(t),[]),[[]]);function kn(e,t,n){return n.findIndex(t=>JSON.stringify(t)===JSON.stringify(e))===t}const Nn=["",".","..","...","....",".....","......","-"];function An(e,t,n,r=!1){if(null===e)throw new Error("Can not produce a localized numeric formatting for missing data");return new Intl.NumberFormat(n,{maximumFractionDigits:t,minimumFractionDigits:t,useGrouping:r}).format(e)}function En(e,t,n=!1){if(e)return n?bn.dataMissing[t]:Nn[e];throw new Error("Invalid missing code. Can not generate table presentation")}function Tn(e,t){return function(){var n,r,i;const a=[];var s,o;e.rowVarNames&&e.rowVarNames.length>0&&this.series.name&&a.push(`${null==(s=e.rowVarNames)?void 0:s.map(e=>e[t]).join(", ")}: ${this.series.name}`),e.colVarNames&&e.colVarNames.length>0&&this.name&&a.push(`${null==(o=e.colVarNames)?void 0:o.map(e=>e[t]).join(", ")}: ${this.name}`);const l=null!=(n=null==(r=this.options.custom)?void 0:r.precision)?n:0;return a.push(Rn(e,this,t,l)),null!=(i=this.options.custom)&&i.preliminary&&a.push(bn.preliminaryData[t]),a.join("<br/>")}}function Mn(e,t){return function(n){var r,i,a;const s=[];var o,l;e.rowVarNames&&e.rowVarNames.length>0&&n.series.name&&s.push(`${null==(o=e.rowVarNames)?void 0:o.map(e=>e[t]).join(", ")}: ${Gn(n.series.name,t)}`),e.colVarNames&&e.colVarNames.length>0&&n.name&&s.push(`${null==(l=e.colVarNames)?void 0:l.map(e=>e[t]).join(", ")}: ${Gn(n.name,t)}`);const c=null!=(r=null==(i=n.options.custom)?void 0:i.precision)?r:0;return s.push(Rn(e,n,t,c)),null!=(a=n.options.custom)&&a.preliminary&&s.push(bn.preliminaryData[t]),s.join(", ")}}function Pn(e){return function(){return this.value.toLocaleString(e)}}const In=e=>xn().indexOf(e.toLowerCase().trim())>-1?e.toLowerCase().trim():xn()[0];function jn(e=null){const t=e&&e>=15?25:50;return function(){return Dn(this.value,t)}}function Vn(e){return function(){var t,n;if(!this.y)return"";const r=null!=(t=null==(n=this.options.custom)?void 0:n.precision)?t:0;return An(this.y,r,e,!0)}}function $n(){return function(){return Dn(this.name,200)}}const Dn=(e,t=50)=>{const n=e.toString().length;return`${e.toString().slice(0,t).trim()}${n>t?"...":""}`};function Ln(e,t){return function(){var n,r;const i=e.series[1].rowNameGroup.map(e=>e[t]).join(", "),a=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 i&&i.length>0&&this.series.name&&(o+=`${i}: ${this.x.toLocaleString(t)}<br />`),a&&a.length>0&&this.key&&(o+=`${a}: ${null==(l=this.y)?void 0:l.toLocaleString(t)}<br />`),s&&s.length>0&&e.columnNameGroups&&e.columnNameGroups.length>0&&(o+=`${s}: ${e.columnNameGroups[this.index].map(e=>e[t]).join(", ")}`),null!=(r=this.options.custom)&&r.preliminary&&(o+=`<br />${bn.preliminaryData[t]}`),o}}function On(e,t){return function(){var n,r,i;const a=[];if(e.rowVarNames&&e.rowVarNames.length>0)for(let n=0;n<e.rowVarNames.length;n++)a.push(`${e.rowVarNames[n][t]}: ${e.series[this.series.index].rowNameGroup[n][t]}`);var s;e.colVarNames&&e.colVarNames.length>0&&this.name&&a.push(`${null==(s=e.colVarNames)?void 0:s.map(e=>e[t]).join(", ")}: ${this.name}`);const o=null!=(n=null==(r=this.options.custom)?void 0:r.precision)?n:0;return a.push(Rn(e,this,t,o)),null!=(i=this.options.custom)&&i.preliminary&&a.push(bn.preliminaryData[t]),a.join("<br/>")}}function zn(e,t){const n=e.map(e=>e.unit).filter(kn);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 Rn(e,t,n,r){if(null==t.y)return"";const i=Number(t.y.toFixed(r));return e.visualizationSettings.visualizationType===mn.PyramidChart?Math.abs(i).toLocaleString(n):e.visualizationSettings.visualizationType==mn.PercentHorizontalBarChart||e.visualizationSettings.visualizationType==mn.PercentVerticalBarChart?`${An(null!=(a=t.percentage)?a:0,1,n)}% (${i.toLocaleString(n)} ${zn(e.units,n)})`:null!=(s=i.toLocaleString(n))?s:"";var a,s}function Gn(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]} ${wn.months[t][Number(e[1])-1]}`}if(r.test(n)){const e=n.split("Q");return`${e[0]} ${function(e,t){const n=wn.ordinalSuffices[t],r=parseInt(e)-1;return null!=n&&n[r]?`${e}${n[r]}`:`${e}.`}(e[1],t)} ${bn.quarter[t]}`}console.log("Unsupported time pattern")}return e}function qn(e,t){if(e)try{const n=new Date(e);if(Number.isNaN(n.getTime()))return;const r=Intl.DateTimeFormat("en"===t?"en-GB":t).format(n);return`${bn.lastUpdated[t]}: ${r}`}catch(e){return void console.error("Error formatting date:",e)}}var Bn;function _n(e,t,n){return function(){const r=function(e,t,n,r=new c(0)){var i;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 a=(e=>{const t=Array.from({length:n},(e,t)=>n-t).reduce((t,n)=>{const i=function(e){if(e.equals(0))return new c(0);const t=c.pow(10,c.log10(e).floor());return e.div(t).lessThan(1.5)?t.div(10).mul(e.div(t.div(10)).ceil()):e.div(t).lessThan(3)?e.mul(2).div(t).ceil().mul(t).div(2):e.div(t).lessThan(8)?e.div(t).ceil().mul(t):e.div(t.mul(10)).ceil().mul(10).mul(t)}(e.div(n));return i.greaterThanOrEqualTo(r)&&t.push([(a=i,a.equals(0)?0:a.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}(a):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}}(a)),i]),t;var a},[]).sort(([e,t],[n,r])=>n-e);return t.slice(0,Math.max(2,Math.ceil(.5*t.length))).sort(([e,t],[n,r])=>t.minus(r).toNumber())})(c.max(e.abs(),t.abs()));return e.lessThan(0)&&t.greaterThan(0)?null!=(i=a.map(([e,t])=>t).find(r=>e.abs().div(r).ceil().plus(t.div(r).ceil()).lessThanOrEqualTo(n)))?i:new c(NaN):a[0][1]}(e,t,(n=>{const r=c.pow(10,c.log10(c.max(e.abs(),t.abs())).floor()),i=Math.ceil(n/(12*(r.toString().length+(e.isNeg()?1:0))+25)-1);return Math.max(i,e.isNegative()&&t.isPositive()?2:1)})(this.chart.plotWidth),n),i=e.greaterThanOrEqualTo(0)?new c(0):e.div(r).floor().mul(r),a=t.lessThanOrEqualTo(0)?new c(0):t.div(r).ceil().mul(r);return Array.from({length:a.minus(i).div(r).plus(1).toNumber()},(e,t)=>r.mul(t).plus(i).toNumber())}}function Fn(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?_n(new c(t),new c(n),new c(Math.pow(10,-r))):()=>[]}function Hn(e){let t=null,n=null,r=0;return e[0].forEach((i,a)=>{const s=e.reduce((e,t)=>{var n;return e+(null!=(n=t[a].value)?n:0)},0);s&&(!t||s<t)&&(t=s),s&&(!n||s>n)&&(n=s),i.precision>r&&(r=i.precision)}),t&&n?_n(new c(t),new c(n),new c(Math.pow(10,-r))):()=>[]}!function(e){e[e.Time=0]="Time",e[e.Ordinal=1]="Ordinal",e[e.Nominal=2]="Nominal"}(Bn||(Bn={}));const Un=(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 Wn(e,t){if(t){const n=new Date(t);switch(e){case pn.Irregular:case pn.Week:return;case pn.Month:return{pointStart:n.getTime(),pointIntervalUnit:"month"};case pn.Quarter:case pn.HalfYear:return;case pn.Year:return{pointStart:n.getTime(),pointIntervalUnit:"year"}}}}function Yn(e,t){if(e.seriesType!==Bn.Time){const n=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),r=n.every(e=>!Number.isNaN(Number.parseFloat(e)));return e.seriesType===Bn.Ordinal&&r?Un(e,t):{ordinal:e.seriesType==Bn.Ordinal,type:"category",categories:n,labels:{autoRotation:[-45]}}}switch(e.visualizationSettings.timeVariableIntervals){case pn.Week:return Zn(e,t);case pn.Month:return Kn();case pn.Quarter:return Xn(e,t);case pn.HalfYear:return Jn(e,t);case pn.Year:return{type:"datetime"};default:return{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", "))}}}const Zn=(e,t)=>({type:"linear",ordinal:!1,labels:{formatter:function(){return e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", ")}}}),Kn=(e,t)=>({type:"datetime",ordinal:!1,labels:{formatter:function(){return l.dateFormat("%YM%m",Number(this.value))}}}),Xn=(e,t)=>{var n,r,i;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)),i=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,i),n=Math.ceil((r-t)/e);return Array.from({length:n},(n,r)=>t+r*e)})}},Jn=(e,t)=>{var n,r,i;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)),i=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,i),n=Math.ceil((r-t)/e);return Array.from({length:n},(n,r)=>t+r*e)})}},Qn=["#1a56ec","#f2644c","#1b3160","#9c8d87","#26625d","#7791e8","#8c1131","#878eaf","#c73268","#288c72"],er=["M 0 5 L 10 5 M 5 0 L 5 10","M 0 0 L 10 10 M 10 0 L 0 10","M 2,2 h1 v1 h-1 z M 7,7 h1 v1 h-1 z M 2,7 h1 v1 h-1 z M 7,2 h1 v1 h-1 z","M 2,2 h1 v1 h-1 z M 7,7 h1 v1 h-1 z","M -2 -2 L 12 12 M -12 -2 L 2 12 M -2 -12 L 12 2","M -2 12 L 12 -2 M -12 12 L 2 -2 M -2 22 L 12 8","M 5,5 m -3,0 a 3,3 0 1,0 6,0 a 3,3 0 1,0 -6,0","M 2 2 L 3 3 M 7 7 L 8 8 M 2 7 L 3 8 M 7 2 L 8 3","M 5 0 L 10 5 L 5 10 L 0 5 Z","M 2 5 L 8 5 M 5 2 L 5 8","M 5 0 L 5 10","M 0 5 L 10 5","M 0 5 Q 2.5 0, 5 5 T 10 5","M 0 2 L 10 2 M 0 8 L 10 8","M 0 10 L 5 0 L 10 10 Z"];function tr(e){return{color:{pattern:{backgroundColor:Qn[e%Qn.length],path:{stroke:"white",d:er[e%er.length],strokeWidth:2},width:10,height:10}}}}const nr=(e,t)=>e.series.map((n,r)=>h({},ar(n,e,t),{index:r,type:"line"})),rr=(e,t,n=!1,r=!1)=>e.series.map((i,a)=>h({},ar(i,e,t),r&&tr(a),{index:n?e.series.length-1-a:a,type:"bar"})),ir=(e,t,n=!1,r=!1)=>e.series.map((i,a)=>h({},ar(i,e,t),r&&tr(a),{index:n?e.series.length-1-a:a,type:"column"}));function ar(e,t,n){return{animation:!1,name:e.rowNameGroup.map(e=>e[n]).join(", "),data:e.series.map((e,r)=>({y:e.value,name:t.columnNameGroups[r].map(e=>e[n]).join(", "),custom:{preliminary:e.preliminary,precision:e.precision}}))}}const sr=(e,t,n)=>{var r;const i=null==(r=null==n?void 0:n.showTitles)||r,a=bn.source[t];let s=`${a}: ${e.sources.map(e=>e[t]).join(", ")}`;const o=(null==n?void 0:n.showLastUpdated)&&e.lastUpdated;if(o){const n=qn(e.lastUpdated,t);n&&(s=`${n}<br>${a}: ${e.sources.map(e=>e[t]).join(", ")}`)}return{chart:{spacingBottom:o?50:30},accessibility:{point:{descriptionFormatter:Mn(e,t)}},title:{text:i?e.header[t]:void 0},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},credits:{enabled:!1},caption:{text:s},tooltip:{formatter:Tn(e,t)},yAxis:[or]}},or={plotLines:[{value:0,color:"#000",width:1}]},lr=(e,t)=>({enabled:e.visualizationSettings.showDataPoints,style:{color:"#000",fontSize:"1rem",fontWeight:"400"},formatter:Vn(t)}),cr=(e,t)=>h({},or,{tickPositioner:Fn(e.series.map(e=>e.series)),title:{text:zn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}}),ur=(e,t,n)=>h({},sr(e,t,n),{chart:{type:"bar"},xAxis:{categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{formatter:jn(e.columnNameGroups.length),style:{width:200}}}}),dr=(e,t,n)=>h({},ur(e,t,n),{series:rr(e,t,!0,null==n?void 0:n.accessibilityMode),legend:h({},fr,{enabled:!0,layout:"horizontal",reversed:!0,margin:30})}),mr=(e,t,n)=>h({},sr(e,t,n),{chart:{type:"column"},xAxis:Yn(e,t)}),hr=(e,t,n)=>h({},mr(e,t,n),{series:ir(e,t,!1,null==n?void 0:n.accessibilityMode),yAxis:{softMin:0,softMax:0,title:{text:zn(e.units,t)}}}),pr=(e,t,n)=>h({},mr(e,t,n),{series:ir(e,t,!0,null==n?void 0:n.accessibilityMode),legend:h({},fr,{enabled:!0,layout:"vertical"})}),fr={itemHiddenStyle:{color:"black"}},gr=(e,t,n)=>{var r,i;return h({},sr(e,t,n),{chart:{type:"pie"},plotOptions:{pie:{dataLabels:{formatter:(i=null!=(r=e.visualizationSettings.showDataPoints)&&r,function(){var e;const t=i?` (${Math.round(null!=(e=this.percentage)?e:0)}%)`:"";return Dn(this.name,20)+t})}}},series:e.series.map(r=>({animation:!1,type:"pie",name:r.rowNameGroup.map(e=>e[t]).join(", "),data:r.series.map((r,i)=>h({y:r.value,name:e.columnNameGroups[i].map(e=>e[t]).join(", "),unit:zn(e.units,t)},(null==n?void 0:n.accessibilityMode)&&tr(i),{custom:{preliminary:r.preliminary,precision:r.precision}}))}))})},vr=(e,t,n)=>{const r=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),i=Math.max(...e.series.map(e=>Math.max(...e.series.map(e=>{var t;return null!=(t=e.value)?t:0}))));return h({},sr(e,t,n),{chart:{type:"bar"},xAxis:{categories:r,reversed:!1,labels:{style:{width:200}}},yAxis:h({},or,{min:-Math.abs(i),max:Math.abs(i),title:{text:zn(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:h({},fr,{enabled:!0,margin:30}),series:e.series.map((r,i)=>h({animation:!1,type:"bar",name:r.rowNameGroup.map(e=>e[t]).join(", ")},(null==n?void 0:n.accessibilityMode)&&tr(i),{data:r.series.map((n,r)=>({y:0===i&&n.value?-n.value:n.value,name:e.columnNameGroups[r].map(e=>e[t]).join(", "),custom:{preliminary:n.preliminary,precision:n.precision}}))})),plotOptions:{series:{stacking:"normal",dataLabels:h({},lr(e,t))}},exporting:{enabled:!1}})},yr=(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 `,br=(e,t,n)=>{switch(t.visualizationSettings.visualizationType){case mn.LineChart:return((e,t,n)=>{var r;const i=null!=(r=e.visualizationSettings)&&r.cutValueAxis?void 0:0,a=null!=n&&n.accessibilityMode?{enabledThreshold:3}:{enabled:!1};return h({},sr(e,t,n),{chart:{type:"line"},tooltip:{formatter:On(e,t)},xAxis:h({},Yn(e,t),{gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5}),yAxis:h({},or,{softMin:i,softMax:i,title:{text:zn(e.units,t)}}),plotOptions:{line:{dataLabels:h({},lr(e,t)),marker:a},series:Wn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:h({},fr,{enabled:e.series.length>1,labelFormatter:$n()}),series:nr(e,t),exporting:{enabled:!1}})})(t,e,n);case mn.VerticalBarChart:return((e,t,n)=>h({},hr(e,t,n),{yAxis:h({},or,{softMin:0,softMax:0,title:{text:zn(e.units,t)}}),plotOptions:{series:h({},Wn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:h({},lr(e,t))})},exporting:{enabled:!1}}))(t,e,n);case mn.HorizontalBarChart:return((e,t,n)=>h({},ur(e,t,n),{series:rr(e,t,!1,null==n?void 0:n.accessibilityMode),chart:{type:"bar",spacingBottom:60},yAxis:h({},cr(e,t),{softMin:0,max:100}),caption:h({},ur(e,t,n).caption,{y:30}),legend:{enabled:!1},plotOptions:{series:{dataLabels:h({},lr(e,t))}}}))(t,e,n);case mn.GroupVerticalBarChart:return((e,t,n)=>h({},hr(e,t,n),{plotOptions:{series:h({},Wn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:h({},lr(e,t))})},legend:h({},fr,{enabled:!0,labelFormatter:$n()})}))(t,e,n);case mn.GroupHorizontalBarChart:return((e,t,n)=>h({},ur(e,t,n),{series:rr(e,t,!1,null==n?void 0:n.accessibilityMode),yAxis:h({},cr(e,t),{softMin:0,softMax:0}),legend:h({},fr,{enabled:!0,layout:"vertical",margin:30}),plotOptions:{series:{dataLabels:h({},lr(e,t))}}}))(t,e,n);case mn.StackedVerticalBarChart:return((e,t,n)=>h({},pr(e,t,n),{yAxis:{softMin:0,softMax:0,title:{text:zn(e.units,t)}},plotOptions:{column:{stacking:"normal"},series:h({},Wn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:h({},lr(e,t))})}}))(t,e,n);case mn.StackedHorizontalBarChart:return((e,t,n)=>h({},dr(e,t,n),{yAxis:{softMin:0,softMax:0,tickPositioner:Hn(e.series.map(e=>e.series)),title:{text:zn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"normal"},series:{dataLabels:h({},lr(e,t))}}}))(t,e,n);case mn.PercentVerticalBarChart:return((e,t,n)=>h({},pr(e,t,n),{yAxis:{min:0,title:{text:"%"}},plotOptions:{column:{stacking:"percent"},series:h({},Wn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:h({},lr(e,t))})}}))(t,e,n);case mn.PercentHorizontalBarChart:return((e,t,n)=>h({},dr(e,t,n),{yAxis:{min:0,title:{text:"%",style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"percent"},series:{dataLabels:h({},lr(e,t))}}}))(t,e,n);case mn.PieChart:return gr(t,e,n);case mn.PyramidChart:return vr(t,e,n);case mn.ScatterPlot:return((e,t,n)=>{var r;const i=null!=(r=e.visualizationSettings)&&r.cutValueAxis?void 0:0;return h({},sr(e,t,n),{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:h({},or,{softMin:i,softMax:i,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,i;return{x:null!=(r=e.series[1].series[n].value)?r:void 0,y:null!=(i=e.series[0].series[n].value)?i:void 0,marker:{symbol:"circle"},custom:{preliminary:e.series[1].series[n].preliminary||e.series[0].series[n].preliminary,precision:Math.max(e.series[1].series[n].precision,e.series[0].series[n].precision)}}})}],tooltip:{headerFormat:"",pointFormat:yr(e.series,t),formatter:Ln(e,t)},plotOptions:{scatter:{marker:{radius:5*(e.visualizationSettings.markerSize?.01*e.visualizationSettings.markerSize:1)}}},exporting:{enabled:!1}})})(t,e,n);default:throw new Error("Unsupported chart type")}},wr=(e,t,n,r)=>{if(0===e.length)return{};let i=e,a={};if(r){const{parsedValues:e,updatedArray:t}=xr(i,r);if(i=t,a=h({},a,e),0===i.length)return a}if(n){const{parsedValues:e,updatedArray:t}=Sr(i,n);if(i=t,a=h({},a,e),0===i.length)return a}return i.forEach(e=>{const n=t.findIndex(t=>t.code===e);n>-1&&(a[e]=t[n].type===hn.Time?[t[n].values[t[n].values.length-1].code]:[t[n].values[0].code])}),a},xr=(e,t)=>{const n=Object.keys(t),r={},i=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:i}},Sr=(e,t)=>{const n=Object.keys(t),r={},i=e.map(e=>{const i=n.findIndex(t=>t===e);return i>-1?(r[e]=t[n[i]],""):e}).filter(e=>e.length>0);return{parsedValues:r,updatedArray:i}},Cr=(e,t)=>{var n,r;return(null!=(n=e.value)?n:0)-(null!=(r=t.value)?r:0)},kr=(e,t)=>{var n,r;return(null!=(n=t.value)?n:0)-(null!=(r=e.value)?r:0)};function Nr(e,t,n){return Er(Ar(e,e.series[t].series,n),t)}function Ar(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),i=r.map(t=>e.columnNameGroups[t]),a=e.series.map(e=>function(e,t){return h({},e,{series:t.map(t=>e.series[t])})}(e,r));return h({},e,{columnNameGroups:i,series:a})}function Er(e,t){const n=[];return n.push(e.series[t]),e.series.forEach((e,r)=>{r!==t&&n.push(e)}),h({},e,{series:n})}function Tr(e,t){if(Object.keys(t).includes(e.code)){const n=e.values.filter(n=>t[e.code].includes(n.code));if(0===n.length)throw new Error("Provided selected value code can not be found from the metadata");return n}return e.values}function Mr(e,t){let n=[];for(const r of t){const t=e.find(e=>e.code===r);t&&n.push(t)}return n}class Pr{constructor(e,t){this.dataIndex=void 0,this.dataLength=void 0,this.responseObj=void 0,this.coordinates=void 0,this.lastIndices=void 0,this.indices=void 0,this.variableOrder=void 0,this.lastCoordinateIndex=void 0,this.reverseCumulativeProducts=void 0,this.selectedViewContentVariableIndex=void 0,this.selectedViewTimeVariableIndex=void 0,this.selectedViewMeta=void 0,this.rowLength=0,this.rowAmount=0,this.responseObj=e;const n=e.metaData,r=n.map(e=>e.values.length);this.selectedViewMeta=this.getSelectedView(e,t),this.coordinates=Array.from({length:this.selectedViewMeta.length},()=>[]),this.variableOrder=this.getVariableOrder(),this.initializeCoordinates(n),this.selectedViewContentVariableIndex=this.selectedViewMeta.findIndex(e=>e.type===hn.Content),this.selectedViewTimeVariableIndex=this.selectedViewMeta.findIndex(e=>e.type===hn.Time),this.indices=Array.from({length:n.length},()=>0),this.lastIndices=this.selectedViewMeta.map(e=>e.values.length-1),this.lastCoordinateIndex=this.coordinates.length-1,this.reverseCumulativeProducts=this.generateRCP(r),this.dataLength=this.selectedViewMeta.map(e=>e.values.length).reduce((e,t)=>e*t,1),this.dataIndex=0,this.setCurrentIndex()}initializeCoordinates(e){for(let n=0;n<this.selectedViewMeta.length;n++){var t;const r=this.variableOrder[n],i=this.selectedViewMeta[n].code,a=null==(t=e.find(e=>e.code===i))?void 0:t.values,s=this.selectedViewMeta.find(e=>e.code===i);this.coordinates[r]=s.values.map(e=>a.indexOf(e))}}getViewSeries(){let e=0,t=[];const n=[];do{const r=this.createDataCell();t.push(r),e++,e>=this.rowLength&&(n.push({rowNameGroup:this.generateRowNameGroup(),series:t}),t=[],e=0)}while(this.next());return n}generateRowNameGroup(){return this.selectedViewMeta.slice(0,this.rowAmount).map((e,t)=>e.values[this.indices[this.variableOrder[t]]].name)}next(){for(let e=this.lastCoordinateIndex;e>=0;e--){const t=this.variableOrder[e];if(this.indices[t]<this.lastIndices[e])return this.indices[t]++,this.setCurrentIndex(),!0;this.indices[t]=0}return!1}createDataCell(){var e,t;const n=this.getCurrentTimeValue(),r={value:this.responseObj.data[this.dataIndex],precision:null!=(e=null==(t=this.selectedViewMeta[this.selectedViewContentVariableIndex].values[this.indices[this.variableOrder[this.selectedViewContentVariableIndex]]].contentComponent)?void 0:t.numberOfDecimals)?e:0,preliminary:!!n&&Object.values(n.name)[0].trim().endsWith("*")};return r.value||(r.missingCode=this.responseObj.missingDataInfo[this.dataIndex]),r}getSelectedView(e,t){const n=e.metaData.map(e=>h({},e,{values:Tr(e,t)})),r=Mr(n.filter(t=>e.rowVariableCodes.includes(t.code)&&t.values.length>1),e.rowVariableCodes),i=Mr(n.filter(t=>e.columnVariableCodes.includes(t.code)&&t.values.length>1),e.columnVariableCodes),a=Mr(n.filter(t=>e.selectableVariableCodes.includes(t.code)),e.selectableVariableCodes),s=a.filter(e=>e.values.length>1&&!r.some(t=>t.code==e.code)&&!i.some(t=>t.code==e.code)),o=a.filter(e=>1==e.values.length),l=n.filter(e=>!r.some(t=>t.code==e.code)&&!i.some(t=>t.code==e.code)&&!a.some(t=>t.code==e.code)),c=[...s,...r,...i,...o,...l];return this.rowLength=Cn(n.filter(t=>e.columnVariableCodes.includes(t.code)).map(e=>e.values)).length,this.rowAmount=r.length+s.length,c}getVariableOrder(){const e=this.responseObj.metaData.map(e=>e.code),t=this.selectedViewMeta.map(t=>e.indexOf(t.code));return t}generateRCP(e){const t=Array.from({length:e.length});let n=1;for(let r=e.length-1;r>=0;r--)t[r]=n,n*=e[r];return t}setCurrentIndex(){this.dataIndex=0;for(let e=0;e<=this.lastCoordinateIndex;e++){const t=this.variableOrder[e];this.dataIndex+=this.reverseCumulativeProducts[t]*this.coordinates[t][this.indices[t]]}}getCurrentTimeValue(){if(-1!=this.selectedViewTimeVariableIndex)return this.selectedViewMeta[this.selectedViewTimeVariableIndex].values[this.indices[this.variableOrder[this.selectedViewTimeVariableIndex]]]}}function Ir(e,t){var n,r,i;const a=function(e,t,n){const{metaData:r,selectableVariableCodes:i}=e,a=function(e,t){return e.filter(e=>t.includes(e.code))}(r,i),s=function(e){const t=e.find(e=>e.type===hn.Content);if(t)return t;throw new Error("Content variable is not defined")}(r),o=function(e,t){const n=new Pr(e,t).getViewSeries(),r=Mr(e.metaData.filter(t=>e.columnVariableCodes.includes(t.code)).filter(e=>e.values.length>1),e.columnVariableCodes).map(e=>Tr(e,t));return{columnNameGroups:Cn(r).map(e=>e.map(e=>e.name)),series:n}}(e,t),l=Vr(e.selectableVariableCodes.filter(t=>n[t]>1&&!e.rowVariableCodes.includes(t)&&!e.columnVariableCodes.includes(t)),r).concat(Vr(e.rowVariableCodes,e.metaData)),c=function(e,t){let n;n=e.code in t?e.values.filter(n=>t[e.code].includes(n.code)).map(e=>{var t;return null==(t=e.contentComponent)?void 0:t.lastUpdated}).filter((e,t,n)=>kn(e,t,n)):e.values.map(e=>{var t;return null==(t=e.contentComponent)?void 0:t.lastUpdated}).filter((e,t,n)=>kn(e,t,n));const r=n.filter(e=>void 0!==e);if(0===r.length)return;if(1===r.length)return r[0];const i=r.map(e=>new Date(e)).reduce((e,t,n,r)=>t>r[e]?n:e,0);return r[i]}(s,t);return{header:e.header,tableReferenceName:e.tableReference.name,subheaderValues:Dr(a,t,n),units:Lr(s,t),sources:Or(s,t,e=>{var t;return null!=(t=null==e?void 0:e.source)?t:bn.empty}),lastUpdated:c,columnNameGroups:o.columnNameGroups,series:o.series,rowVarNames:l,colVarNames:Vr(e.columnVariableCodes,e.metaData),selectableVarNames:Vr(e.selectableVariableCodes,e.metaData),visualizationSettings:e.visualizationSettings,seriesType:zr(e.columnVariableCodes,e.metaData)}}(e,t,function(e){const t={};return Object.entries(e).forEach(([e,n])=>t[e]=n.length),t}(t)),s=(null==(n=a.visualizationSettings)?void 0:n.visualizationType)===mn.PercentHorizontalBarChart||(null==(r=a.visualizationSettings)?void 0:r.visualizationType)===mn.PercentVerticalBarChart;switch(null==(i=e.visualizationSettings)?void 0:i.sorting){case null:case void 0:case"no_sorting":return a;case"reversed":return function(e){const t=[...e.series].reverse().map(e=>h({},e,{series:[...e.series].reverse(),rowNameGroup:[...e.rowNameGroup].reverse()}));return h({},e,{series:t,columnNameGroups:[...e.columnNameGroups].reverse()})}(a);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 Ar(e,n,t)}(a,kr);case"ascending":return Nr(a,0,Cr);case"descending":return Nr(a,0,kr);default:return s?(o=a,l=jr(a),c=$r(e),Er(Ar(o,l.series[c].series,kr),c)):Nr(a,$r(e),kr)}var o,l,c}function jr(e){const t=e.series.map(t=>h({},t,{series:t.series.map((t,n)=>{var r;const i=e.series.reduce((e,t)=>{var r;return e+(null!=(r=t.series[n].value)?r:0)},0),a=i&&0!==i?Math.round(100*(null!=(r=t.value)?r:0)/i*10)/10:null,s={value:a,precision:1,preliminary:t.preliminary};return null===a&&(s.missingCode=t.missingCode),s})}));return h({},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 Vr(e,t){return e.reduce((e,n)=>{var r;const i=null==(r=t.find(e=>e.code===n))?void 0:r.name;return i&&e.push(i),e},[])}function $r(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 Dr(e,t,n){const r=[];return e.forEach(e=>{var i,a;1==n[e.code]&&r.push(null!=(i=null==(a=e.values.find(n=>n.code===t[e.code][0]))?void 0:a.name)?i:{})}),r}function Lr(e,t){const n=e.code in t?e.values.filter(n=>t[e.code].includes(n.code)):e.values;return n.reduce((e,t)=>(t.contentComponent&&e.push({name:t.name,unit:t.contentComponent.unit}),e),[])}function Or(e,t,n){return e.code in t?e.values.filter(n=>t[e.code].includes(n.code)).map(e=>n(e.contentComponent)).filter((e,t,n)=>kn(e,t,n)):e.values.map(e=>n(e.contentComponent)).filter((e,t,n)=>kn(e,t,n))}function zr(e,t){var n;if(e.length>1||0===e.length)return Bn.Nominal;const r=null==(n=t.find(t=>t.code===e[0]))?void 0:n.type;switch(r){case hn.Time:return Bn.Time;case hn.Ordinal:return Bn.Ordinal;default:return Bn.Nominal}}const Rr=(e,t)=>({accessibility:{keyboardNavigation:{seriesNavigation:{mode:"serialize"}}},responsive:{rules:[{condition:{maxHeight:600},chartOptions:{chart:{height:600}}}]},exporting:{enabled:!1,fallbackToExportServer:!1,allowHTML:!1,chartOptions:{chart:{style:{fontFamily:t||'"Barlow Semi Condensed", Verdana, sans-serif'}}}},lang:{accessibility:{thousandsSep:bn.thousandsSepAccessibility[e],credits:bn.credits[e],caption:bn.credits[e],chartTypes:{barMultiple:bn.barMultiple[e],barSingle:bn.barSingle[e],columnMultiple:bn.columnMultiple[e],columnSingle:bn.columnSingle[e],lineSingle:bn.lineSingle[e],lineMultiple:bn.lineMultiple[e],pieSingle:bn.pieSingle[e],scatterSingle:bn.scatterSingle[e],scatterMultiple:bn.scatterMultiple[e],defaultSingle:bn.defaultSingle[e],defaultMultiple:bn.defaultMultiple[e]},defaultChartTitle:bn.defaultChartTitle[e],exporting:{chartMenuLabel:bn.chartMenuLabel[e],menuButtonLabel:bn.menuButtonLabel[e]},legend:{legendItem:bn.legendItem[e],legendLabel:bn.legendLabel[e],legendLabelNoTitle:bn.legendLabelNoTitle[e]},axis:{rangeCategories:bn.rangeCategories[e],rangeFromTo:bn.rangeFromTo[e],timeRangeDays:bn.timeRangeDays[e],timeRangeHours:bn.timeRangeHours[e],timeRangeMinutes:bn.timeRangeMinutes[e],timeRangeSeconds:bn.timeRangeSeconds[e],xAxisDescriptionPlural:bn.xAxisDescriptionPlural[e],xAxisDescriptionSingular:bn.xAxisDescriptionSingular[e],yAxisDescriptionPlural:bn.yAxisDescriptionPlural[e],yAxisDescriptionSingular:bn.yAxisDescriptionSingular[e]},series:{summary:{bar:bn.seriesSummaryBar[e],barCombination:bn.seriesSummaryBarCombination[e],column:bn.seriesSummaryColumn[e],columnCombination:bn.seriesSummaryColumnCombination[e],default:bn.seriesSummaryDefault[e],defaultCombination:bn.seriesSummaryDefaultCombination[e],line:bn.seriesSummaryLine[e],lineCombination:bn.seriesSummaryLineCombination[e],pie:bn.seriesSummaryPie[e],pieCombination:bn.seriesSummaryPieCombination[e],scatter:bn.seriesSummaryScatter[e],scatterCombination:bn.seriesSummaryScatterCombination[e]},xAxisDescription:bn.xAxisDescription[e],yAxisDescription:bn.yAxisDescription[e]},screenReaderSection:{endOfChartMarker:bn.endOfChartMarker[e]},chartContainerLabel:bn.chartContainerLabel[e]},thousandsSep:bn.thousandsSep[e],decimalPoint:bn.decimalPoint[e],contextButtonTitle:bn.contextButtonTitle[e],downloadCSV:bn.downloadCSV[e],downloadPNG:bn.downloadPNG[e],downloadSVG:bn.downloadSVG[e],months:wn.months[e],shortMonths:wn.shortMonths[e],weekdays:wn.weekdays[e],loading:bn.loading[e],numericSymbols:null},colors:Qn,chart:{style:{fontFamily:null!=t?t:'"Barlow Semi Condensed", Verdana, sans-serif'},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:{useHTML:!0,style:{color:"#000",fontSize:"1.25rem",fontWeight:"500",textAlign:"left",maxWidth:"calc(100% - 4rem)",whiteSpace:"normal"},align:"left",margin:45,minScale:1},subtitle:{style:{color:"#000",fontSize:"1.25rem",fontWeight:"400"},align:"left"},caption:{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:Pn(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,borderRadius:0,borderWidth:0},bar:{groupPadding:.2,pointPadding:.01,borderRadius:0,borderWidth:0},series:{animation:!1}}}),Gr=(e,t,n,r=null,i=void 0)=>{(()=>{if(void 0!==globalThis.window)try{require("highcharts/modules/pattern-fill.js"),require("highcharts/modules/accessibility.js"),require("highcharts/modules/exporting.js"),require("highcharts/modules/offline-exporting.js")}catch(e){console.error("Error loading Highcharts modules:",e)}})();const a=In(n);o.setOptions(Rr(a,null==i?void 0:i.fontFamily));const s=Ir(t,wr(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,r)),l=br(a,s,i);return o.chart(e,l)};function qr(e,t,n,r,i){const a=document.getElementById(r);if(!a)throw new Error("No container with matching id found in the DOM tree");try{const s=function(e,t){var n,r;const i=null!=(n=e.columnNameGroups[0].length)?n:0,a=null!=(r=e.series[0].rowNameGroup.length)?r:0,s=Object.assign(document.createElement("table"),{tabIndex:0});if(i>0){const n=function(e,t){const n=Fr(e),r=[];for(let i=0;i<e[0].length;i++){const a=document.createElement("tr");for(let r=0;r<e.length;r+=n[i]){const s=document.createElement("th");s.setAttribute("colSpan",n[i].toString()),s.setAttribute("scope","col"),s.textContent=e[r][i][t],a.append(s)}r.push(a)}return r}(e.columnNameGroups,t);if(a>0){const e=document.createElement("td");e.setAttribute("colSpan",a.toString()),e.setAttribute("rowSpan",i.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=_r(e);for(let i=0;i<e.length;i++){const a=document.createElement("tr");for(let n=0;n<e[i].rowNameGroup.length;n++)if(i%r[n]===0){const s=document.createElement("th");s.setAttribute("rowSpan",r[n].toString()),s.setAttribute("scope","row"),s.textContent=e[i].rowNameGroup[n][t],a.append(s)}for(const n of e[i].series){const e=document.createElement("td");e.textContent=null===n.value?En(n.missingCode,t,!0):An(n.value,n.precision,t,!0),a.append(e)}n.push(a)}return n}(e.series,t)),s.append(n)}return s}(e,t);if(n.showTitles){const n=`${r}-title`,i=document.createElement("p");if(i.id=n,i.textContent=e.header[t],i.className="tableChart-title",e.subheaderValues.length>0){const n=e.subheaderValues.map(e=>e[t]).join(" | ");i.append(document.createElement("br"),n)}s.setAttribute("aria-labelledby",n),a.append(i)}a.append(s);let o=!0;const l=e=>{const t=document.createElement("span");o||t.append(document.createElement("br")),t.append(e),a.append(t),o=!1};if(n.showUnits){const n=zn(e.units,t);l(`${bn.unit[t]}: ${n}`)}if(i&&l(i),n.showLastUpdated&&e.lastUpdated){const n=qn(e.lastUpdated,t);n&&l(n)}n.showSources&&l(`${bn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`)}catch(e){console.error(e),a.replaceChildren();const n=document.createElement("h1");n.append(bn.graphCreationError[t]),a.append(n)}}const Br=(e,t)=>Object.keys(e).every(n=>e[n]==t[n]),_r=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&&Br(e[r].rowNameGroup[n],e[r+1].rowNameGroup[n]);r++)t[n]++;return t},Fr=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&&Br(e[r][n],e[r+1][n]);r++)t[n]++;return t},Hr=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")}`},Ur=(e,t)=>{var n,r,i,a,s,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===mn.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===mn.PercentVerticalBarChart)&&(e=jr(e));const u=null!=(i=null==(a=e.columnNameGroups[0])?void 0:a.length)?i:0,d=null!=(s=null==(o=e.series[0])?void 0:o.rowNameGroup.length)?s:0,m=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+d,h=","==bn.decimalPoint[t]?";":",",p="\n";let f=Yr([`"${e.header[t]}"`],0,m,h,p);e.subheaderValues.length>0&&(f+=Yr([`"${e.subheaderValues.map(e=>e[t]).join(" | ")}"`],0,m,h,p));for(let n=0;n<u;n++)f+=Yr(e.columnNameGroups.map(e=>`"${e[n][t]}"`),d,m,h,p);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?En(e.missingCode,t):An(e.value,e.precision,t))),f+=Yr(n,0,m,h,p)}),f+=Yr([`"${bn.unit[t]}: ${zn(e.units,t)}"`],0,m,h,p),f+=Yr([`"${bn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}"`],0,m,h),f},Wr=(e,t)=>({onClick:()=>{const n=Ur(e,t),r=new Blob(["\ufeff",n],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r),a=document.createElement("a");a.setAttribute("href",i),a.setAttribute("download",Hr(e.tableReferenceName)+".csv"),document.body.appendChild(a),a.click()},text:bn.downloadCSV[t]});function Yr(e,t,n,r,i=""){let a="";for(let i=0;i<n;i++)i>=t&&i<t+e.length&&(a+=e[i-t]),i<n-1&&(a+=r);return a+i}const Zr=['xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"','xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"','xmlns:mv="urn:schemas-microsoft-com:mac:vml"','xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main"','xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"','xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"','xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"','xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"'];function Kr(e){const t=Math.floor(e/26),n=String.fromCodePoint(97+e%26).toUpperCase();return 0===t?n:Kr(t-1)+n}const Xr=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<workbook ${['xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"','xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"','xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main"','xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"','xmlns:mv="urn:schemas-microsoft-com:mac:vml"','xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"','xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"','xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"'].join(" ")}>\n <workbookPr/>\n <sheets>\n <sheet state="visible" name="Sheet1" sheetId="1" r:id="rId3"/>\n </sheets>\n <definedNames/>\n <calcPr/>\n</workbook>`;function Jr(e,t,n){const r=new Array(n);for(let i=0;i<n;i++)r[i]=i>=t&&i<t+e.length?e[i-t]:null;return r}const Qr=(e,t)=>({onClick:async()=>{const n=await ei(e,t),r=URL.createObjectURL(n),i=document.createElement("a");i.setAttribute("href",r),i.setAttribute("download",Hr(e.tableReferenceName)+".xlsx"),document.body.appendChild(i),i.click()},text:bn.downloadXLSX[t]});async function ei(e,t){const n=((e,t)=>{var n,r,i,a,s,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===mn.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===mn.PercentVerticalBarChart)&&(e=jr(e));const u=null!=(i=null==(a=e.columnNameGroups[0])?void 0:a.length)?i:0,d=null!=(s=null==(o=e.series[0])?void 0:o.rowNameGroup.length)?s:0,m=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+d;return[Jr([e.header[t]],0,m),...e.subheaderValues.length>0?[Jr([e.subheaderValues.map(e=>e[t]).join(" | ")],0,m)]:[],...Array.from({length:u},(n,r)=>Jr(e.columnNameGroups.map(e=>e[r][t]),d,m)),...e.series.map(e=>{let n=[];return e.rowNameGroup.length>0&&(n=e.rowNameGroup.map(e=>e[t])),n=n.concat(e.series.map(e=>null===e.value?En(e.missingCode,t):Number(e.value.toFixed(e.precision)))),Jr(n,0,m)}),Jr([`${bn.unit[t]}: ${zn(e.units,t)}`],0,m),Jr([`${bn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`],0,m)]})(e,t),r=(e=>{const t=function(e){const t=[];for(let n=1;n<=e;n++)t.push(`<col min="${n}" max="${n}" width="20"/>`);return t?`<cols>${t}</cols>`:""}(Math.max(...e.map(e=>e.length))),n=function(e){return e.map((e,t)=>{const n=e.map((e,n)=>function(e,t,n){return null===e?null:"string"==typeof e?`<c r="${Kr(t)}${n}" t="inlineStr"><is><t>${function(e){const t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.replaceAll(/[&<>"']/g,e=>t[e])}(e)}</t></is></c>`:`<c r="$${Kr(t)}${n}"><v>${e}</v></c>`}(e,n,t+1)).filter(e=>null!==e).join("");return`<row r="${t+1}">${n}</row>`}).join("")}(e);return((e,t)=>`<?xml version="1.0" ?>\n<worksheet ${Zr.join(" ")}>\n ${e}\n <sheetData>\n ${t}\n </sheetData>\n</worksheet>`)(t,n)})(n),i={xl:{"worksheets/sheet1.xml":u(r),"workbook.xml":u(Xr),"_rels/workbook.xml.rels":u('<?xml version="1.0" ?>\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n <Relationship\n Id="rId3"\n Target="worksheets/sheet1.xml" \n Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"\n />\n</Relationships>')},"_rels/.rels":u('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Relationships\nxmlns="http://schemas.openxmlformats.org/package/2006/relationships"\n>\n <Relationship\n Id="rId1"\n Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"\n Target="xl/workbook.xml"\n />\n</Relationships>'),"[Content_Types].xml":u('<?xml version="1.0" ?>\n<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\n <Default ContentType="application/xml" Extension="xml"/>\n <Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/>\n <Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet1.xml"/>\n <Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" PartName="/xl/workbook.xml"/>\n</Types>')};return new Promise((e,t)=>{d(i,(n,r)=>{if(n)return t(n);const i=new Blob([r.buffer instanceof ArrayBuffer?r.buffer:new Uint8Array(r)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});return e(i)})})}const ti=["Bars","Times","Download","ExternalLink","Copy"],ni=({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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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 ri,ii,ai,si,oi,li,ci,ui=e=>e;const di=un(n((t,n)=>e.createElement("button",h({ref:n},t))))(ri||(ri=ui`
|
|
1
|
+
import e,{createElement as t,forwardRef as n,useId as r,useEffect as i,useMemo as s,Component as a}from"react";import*as o from"highcharts";import l from"highcharts";import c from"decimal.js";import{strToU8 as u,zip as d}from"fflate";import{HighchartsReact as m}from"highcharts-react-official";import"highcharts/modules/accessibility.js";import"highcharts/modules/exporting.js";import"highcharts/modules/offline-exporting.js";import"highcharts/modules/pattern-fill.js";function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(null,arguments)}function p(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var f=/^((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|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,g=/* #__PURE__ */p(function(e){return f.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),v="-ms-",y="-moz-",b="-webkit-",w="comm",x="rule",S="decl",k="@keyframes",C=Math.abs,N=String.fromCharCode,T=Object.assign;function A(e){return e.trim()}function M(e,t){return(e=t.exec(e))?e[0]:e}function E(e,t,n){return e.replace(t,n)}function $(e,t,n){return e.indexOf(t,n)}function P(e,t){return 0|e.charCodeAt(t)}function j(e,t,n){return e.slice(t,n)}function V(e){return e.length}function I(e){return e.length}function O(e,t){return t.push(e),e}function D(e,t){return e.filter(function(e){return!M(e,t)})}var L,z,R=1,G=1,q=0,B=0,F=0,_="";function H(e,t,n,r,i,s,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:R,column:G,length:a,return:"",siblings:o}}function W(e,t){return T(H("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function U(e){for(;e.root;)e=W(e.root,{children:[e]});O(e,e.siblings)}function Y(){return F=B>0?P(_,--B):0,G--,10===F&&(G=1,R--),F}function Z(){return F=B<q?P(_,B++):0,G++,10===F&&(G=1,R++),F}function K(){return P(_,B)}function X(){return B}function J(e,t){return j(_,e,t)}function Q(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ee(e){return A(J(B-1,re(91===e?e+2:40===e?e+1:e)))}function te(e){for(;(F=K())&&F<33;)Z();return Q(e)>2||Q(F)>3?"":" "}function ne(e,t){for(;--t&&Z()&&!(F<48||F>102||F>57&&F<65||F>70&&F<97););return J(e,X()+(t<6&&32==K()&&32==Z()))}function re(e){for(;Z();)switch(F){case e:return B;case 34:case 39:34!==e&&39!==e&&re(F);break;case 40:41===e&&re(e);break;case 92:Z()}return B}function ie(e,t){for(;Z()&&e+F!==57&&(e+F!==84||47!==K()););return"/*"+J(t,B-1)+"*"+N(47===e?e:Z())}function se(e){for(;!Q(K());)Z();return J(e,B)}function ae(e){return function(e){return _="",e}(oe("",null,null,null,[""],e=function(e){return R=G=1,q=V(_=e),B=0,[]}(e),0,[0],e))}function oe(e,t,n,r,i,s,a,o,l){for(var c=0,u=0,d=a,m=0,h=0,p=0,f=1,g=1,v=1,y=0,b="",w=i,x=s,S=r,k=b;g;)switch(p=y,y=Z()){case 40:if(108!=p&&58==P(k,d-1)){-1!=$(k+=E(ee(y),"&","&\f"),"&\f",C(c?o[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:k+=ee(y);break;case 9:case 10:case 13:case 32:k+=te(p);break;case 92:k+=ne(X()-1,7);continue;case 47:switch(K()){case 42:case 47:O(ce(ie(Z(),X()),t,n,l),l),5!=Q(p||1)&&5!=Q(K()||1)||!V(k)||" "===j(k,-1,void 0)||(k+=" ");break;default:k+="/"}break;case 123*f:o[c++]=V(k)*v;case 125*f:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(k=E(k,/\f/g,"")),h>0&&(V(k)-d||0===f&&47===p)&&O(h>32?ue(k+";",r,n,d-1,l):ue(E(k," ","")+";",r,n,d-2,l),l);break;case 59:k+=";";default:if(O(S=le(k,t,n,c,u,i,o,b,w=[],x=[],d,s),s),123===y)if(0===u)oe(k,t,S,S,w,s,d,o,x);else{switch(m){case 99:if(110===P(k,3))break;case 108:if(97===P(k,2))break;default:u=0;case 100:case 109:case 115:}u?oe(e,S,S,r&&O(le(e,S,S,0,0,i,o,b,i,w=[],d,x),x),i,x,d,o,r?w:x):oe(k,S,S,S,[""],x,0,o,x)}}c=u=h=0,f=v=1,b=k="",d=a;break;case 58:d=1+V(k),h=p;default:if(f<1)if(123==y)--f;else if(125==y&&0==f++&&125==Y())continue;switch(k+=N(y),y*f){case 38:v=u>0?1:(k+="\f",-1);break;case 44:o[c++]=(V(k)-1)*v,v=1;break;case 64:45===K()&&(k+=ee(Z())),m=K(),u=d=V(b=k+=se(X())),y++;break;case 45:45===p&&2==V(k)&&(f=0)}}return s}function le(e,t,n,r,i,s,a,o,l,c,u,d){for(var m=i-1,h=0===i?s:[""],p=I(h),f=0,g=0,v=0;f<r;++f)for(var y=0,b=j(e,m+1,m=C(g=a[f])),w=e;y<p;++y)(w=A(g>0?h[y]+" "+b:E(b,/&\f/g,h[y])))&&(l[v++]=w);return H(e,t,n,0===i?x:o,l,c,u,d)}function ce(e,t,n,r){return H(e,t,n,w,N(F),j(e,2,-2),0,r)}function ue(e,t,n,r,i){return H(e,t,n,S,j(e,0,r),j(e,r+1,-1),r,i)}function de(e,t,n){switch(function(e,t){return 45^P(e,0)?(((t<<2^P(e,0))<<2^P(e,1))<<2^P(e,2))<<2^P(e,3):0}(e,t)){case 5103:return b+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return b+e+e;case 4855:return b+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return y+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return b+e+y+e+v+e+e;case 5936:switch(P(e,t+11)){case 114:return b+e+v+E(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return b+e+v+E(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return b+e+v+E(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return b+e+v+e+e;case 6165:return b+e+v+"flex-"+e+e;case 5187:return b+e+E(e,/(\w+).+(:[^]+)/,b+"box-$1$2"+v+"flex-$1$2")+e;case 5443:return b+e+v+"flex-item-"+E(e,/flex-|-self/g,"")+(M(e,/flex-|baseline/)?"":v+"grid-row-"+E(e,/flex-|-self/g,""))+e;case 4675:return b+e+v+"flex-line-pack"+E(e,/align-content|flex-|-self/g,"")+e;case 5548:return b+e+v+E(e,"shrink","negative")+e;case 5292:return b+e+v+E(e,"basis","preferred-size")+e;case 6060:return b+"box-"+E(e,"-grow","")+b+e+v+E(e,"grow","positive")+e;case 4554:return b+E(e,/([^-])(transform)/g,"$1"+b+"$2")+e;case 6187:return E(E(E(e,/(zoom-|grab)/,b+"$1"),/(image-set)/,b+"$1"),e,"")+e;case 5495:case 3959:return E(e,/(image-set\([^]*)/,b+"$1$`$1");case 4968:return E(E(e,/(.+:)(flex-)?(.*)/,b+"box-pack:$3"+v+"flex-pack:$3"),/space-between/,"justify")+b+e+e;case 4200:if(!M(e,/flex-|baseline/))return v+"grid-column-align"+j(e,t)+e;break;case 2592:case 3360:return v+E(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,M(e.props,/grid-\w+-end/)})?~$(e+(n=n[t].value),"span",0)?e:v+E(e,"-start","")+e+v+"grid-row-span:"+(~$(n,"span",0)?M(n,/\d+/):+M(n,/\d+/)-+M(e,/\d+/))+";":v+E(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return M(e.props,/grid-\w+-start/)})?e:v+E(E(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return E(e,/(.+)-inline(.+)/,b+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(V(e)-1-t>6)switch(P(e,t+1)){case 109:if(45!==P(e,t+4))break;case 102:return E(e,/(.+:)(.+)-([^]+)/,"$1"+b+"$2-$3$1"+y+(108==P(e,t+3)?"$3":"$2-$3"))+e;case 115:return~$(e,"stretch",0)?de(E(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return E(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,s,a,o){return v+n+":"+r+o+(i?v+n+"-span:"+(s?a:+a-+r)+o:"")+e});case 4949:if(121===P(e,t+6))return E(e,":",":"+b)+e;break;case 6444:switch(P(e,45===P(e,14)?18:11)){case 120:return E(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+b+(45===P(e,14)?"inline-":"")+"box$3$1"+b+"$2$3$1"+v+"$2box$3")+e;case 100:return E(e,":",":"+v)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return E(e,"scroll-","scroll-snap-")+e}return e}function me(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function he(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case S:return e.return=e.return||e.value;case w:return"";case k:return e.return=e.value+"{"+me(e.children,r)+"}";case x:if(!V(e.value=e.props.join(",")))return""}return V(n=me(e.children,r))?e.return=e.value+"{"+n+"}":""}function pe(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case S:return void(e.return=de(e.value,e.length,n));case k:return me([W(e,{value:E(e.value,"@","@"+b)})],r);case x:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(M(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":U(W(e,{props:[E(t,/:(read-\w+)/,":-moz-$1")]})),U(W(e,{props:[t]})),T(e,{props:D(n,r)});break;case"::placeholder":U(W(e,{props:[E(t,/:(plac\w+)/,":"+b+"input-$1")]})),U(W(e,{props:[E(t,/:(plac\w+)/,":-moz-$1")]})),U(W(e,{props:[E(t,/:(plac\w+)/,v+"input-$1")]})),U(W(e,{props:[t]})),T(e,{props:D(n,r)})}return""})}}const fe="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ge="active",ve="data-styled-version",ye="6.4.1",be="/*!sc*/\n",we="undefined"!=typeof window&&"undefined"!=typeof document;function xe(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const Se=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(z=null!==(L=xe("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==L?L:xe("SC_DISABLE_SPEEDY"))&&void 0!==z?z:"undefined"==typeof process||void 0===process.env||"production"!==process.env.NODE_ENV),ke={},Ce="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. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://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://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\n",18:"Accessing `useTheme` hook outside of a `<ThemeProvider>` element.\n\n```jsx\nimport { useTheme } from 'styled-components';\nexport function StyledCompoent({ children }) {\n const theme = useTheme();\n return <div style={{ width: theme.sizes.full }}>{children}</div>;\n}\n\nimport { StyledComponent } from './StyledComponent';\nimport { theme } from './theme';\nexport function App() {\n return (\n <ThemeProvider theme={theme}>\n <StyledComponent />\n </ThemeProvider>\n );\n}\n```\n\nIf you need access to the theme in an uncertain composition scenario, `React.useContext(ThemeContext)` will not emit an error if there is no `ThemeProvider` ancestor.\n"}:{};function Ne(e,...t){return"production"===process.env.NODE_ENV?new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`):new Error(function(...e){let t=e[0];const n=[];for(let t=1,r=e.length;t<r;t+=1)n.push(e[t]);return n.forEach(e=>{t=t.replace(/%[a-z]/,e)}),t}(Ce[e],...t).trim())}const Te=1<<30;let Ae=new Map,Me=new Map,Ee=1;const $e=e=>{if(Ae.has(e))return Ae.get(e);for(;Me.has(Ee);)Ee++;const t=Ee++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>Te))throw Ne(16,`${t}`);return Ae.set(e,t),Me.set(t,e),t},Pe=e=>Me.get(e),je=(e,t)=>{Ee=t+1,Ae.set(e,t),Me.set(t,e)},Ve=/invalid hook call/i,Ie=new Set,Oe=(t,n)=>{if("production"!==process.env.NODE_ENV){const r=`The component ${t}${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.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n`,i=console.error;try{let t=!0;console.error=(e,...n)=>{Ve.test(e)?(t=!1,Ie.delete(r)):i(e,...n)},"function"==typeof e.useState&&e.useState(null),t&&!Ie.has(r)&&(console.warn(r),Ie.add(r))}catch(t){Ve.test(t.message)&&Ie.delete(r)}finally{console.error=i}}},De=Object.freeze([]),Le=Object.freeze({});function ze(e,t,n=Le){return e.theme!==n.theme&&e.theme||t||n.theme}const Re=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ge=/(^-|-$)/g;function qe(e){return e.replace(Re,"-").replace(Ge,"")}const Be=/(a)(d)/gi,Fe=e=>String.fromCharCode(e+(e>25?39:97));function _e(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Fe(t%52)+n;return(Fe(t%52)+n).replace(Be,"$1-$2")}const He=5381,We=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},Ue=e=>We(He,e);function Ye(e){return _e(Ue(e)>>>0)}function Ze(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function Ke(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}function Xe(e){return Ke(e)?`styled.${e}`:`Styled(${Ze(e)})`}const Je=Symbol.for("react.memo"),Qe=Symbol.for("react.forward_ref"),et={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},tt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},nt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},rt={[Qe]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[Je]:nt};function it(e){return("type"in(t=e)&&t.type.$$typeof)===Je?nt:"$$typeof"in e?rt[e.$$typeof]:et;var t}const st=Object.defineProperty,at=Object.getOwnPropertyNames,ot=Object.getOwnPropertySymbols,lt=Object.getOwnPropertyDescriptor,ct=Object.getPrototypeOf,ut=Object.prototype;function dt(e,t,n){if("string"!=typeof t){const r=ct(t);r&&r!==ut&&dt(e,r,n);const i=at(t).concat(ot(t)),s=it(e),a=it(t);for(let r=0;r<i.length;++r){const o=i[r];if(!(o in tt||n&&n[o]||a&&o in a||s&&o in s)){const n=lt(t,o);try{st(e,o,n)}catch(e){}}}}return e}function mt(e){return"function"==typeof e}function ht(e){return"object"==typeof e&&"styledComponentId"in e}function pt(e,t){return e&&t?e+" "+t:e||t||""}function ft(e,t){return e.join(t||"")}function gt(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function vt(e,t,n=!1){if(!n&&!gt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=vt(e[n],t[n]);else if(gt(t))for(const n in t)e[n]=vt(e[n],t[n]);return e}function yt(e,t){Object.defineProperty(e,"toString",{value:t})}const bt=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,n=t.length;let r=n;for(;e>=r;)if(r<<=1,r<0)throw Ne(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let i=0,s=t.length;i<s;i++)this.tag.insertRule(n,t[i])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n;for(let e=r;e<i;e++)t+=this.tag.getRule(e)+be;return t}},wt=`style[${fe}][${ve}="${ye}"]`,xt=new RegExp(`^${fe}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),St=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,kt=e=>{if(!e)return document;if(St(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(St(t))return t}return document},Ct=(e,t,n)=>{const r=n.split(",");let i;for(let n=0,s=r.length;n<s;n++)(i=r[n])&&e.registerName(t,i)},Nt=(e,t)=>{var n;const r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(be),i=[];for(let t=0,n=r.length;t<n;t++){const n=r[t].trim();if(!n)continue;const s=n.match(xt);if(s){const t=0|parseInt(s[1],10),n=s[2];0!==t&&(je(n,t),Ct(e,n,s[3]),e.getTag().insertRules(t,i)),i.length=0}else i.push(n)}},Tt=e=>{const t=kt(e.options.target).querySelectorAll(wt);for(let n=0,r=t.length;n<r;n++){const r=t[n];r&&r.getAttribute(fe)!==ge&&(Nt(e,r),r.parentNode&&r.parentNode.removeChild(r))}};let At=!1;const Mt=(e,t)=>{const n=document.head,r=e||n,i=document.createElement("style"),s=(e=>{const t=Array.from(e.querySelectorAll(`style[${fe}]`));return t[t.length-1]})(r),a=void 0!==s?s.nextSibling:null;i.setAttribute(fe,ge),i.setAttribute(ve,ye);const o=t||function(){if(!1!==At)return At;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return At=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return At=t.getAttribute("content")||void 0}return At="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}();return o&&i.setAttribute("nonce",o),r.insertBefore(i,a),i},Et=class{constructor(e,t){this.element=Mt(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const n=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,r=n.length;t<r;t++){const r=n[t];if(r.ownerNode===e)return r}throw Ne(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},$t=class{constructor(e,t){this.element=Mt(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}};let Pt=we;const jt={isServer:!we,useCSSOMInjection:!Se};class Vt{static registerId(e){return $e(e)}constructor(e=Le,t={},n){this.options=Object.assign(Object.assign({},jt),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&we&&Pt&&(Pt=!1,Tt(this)),yt(this,()=>(e=>{const t=e.getTag(),{length:n}=t;let r="";for(let i=0;i<n;i++){const n=Pe(i);if(void 0===n)continue;const s=e.names.get(n);if(void 0===s||!s.size)continue;const a=t.getGroup(i);if(0===a.length)continue;const o=fe+".g"+i+'[id="'+n+'"]';let l="";for(const e of s)e.length>0&&(l+=e+",");r+=a+o+'{content:"'+l+'"}'+be}return r})(this))}rehydrate(){!this.server&&we&&Tt(this)}reconstructWithOptions(e,t=!0){const n=new Vt(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&we&&e.target!==this.options.target&&kt(this.options.target)!==kt(e.target)&&Tt(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new Et(t,n):new $t(t,n))(this.options),new bt(e)));var e}hasNameForId(e,t){var n,r;return null!==(r=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==r&&r}registerName(e,t){$e(e),e.startsWith("sc-keyframes-")&&this.keyframeIds.add(e);const n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules($e(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup($e(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const It=new WeakSet,Ot={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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 Dt(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Ot||e.startsWith("--")?String(t).trim():t+"px"}const Lt=47;function zt(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t+=r>=65&&r<=90?"-"+String.fromCharCode(r+32):e[n]}return t.startsWith("ms-")?"-"+t:t}const Rt=Symbol.for("sc-keyframes");function Gt(e){return"object"==typeof e&&null!==e&&Rt in e}function qt(e){return mt(e)&&!(e.prototype&&e.prototype.isReactComponent)}const Bt=e=>null==e||!1===e||""===e,Ft=Symbol.for("react.client.reference");function _t(e){return e.$$typeof===Ft}function Ht(e){const t=e.$$id,n=(t&&t.includes("#")?t.split("#").pop():t)||e.name||"unknown";console.warn(`Interpolating a client component (${n}) as a selector is not supported in server components. The component selector pattern requires access to the component's internal class name, which is not available across the server/client boundary. Use a plain CSS class selector instead.`)}function Wt(e,t){for(const n in e){const r=e[n];e.hasOwnProperty(n)&&!Bt(r)&&(Array.isArray(r)&&It.has(r)||mt(r)?t.push(zt(n)+":",r,";"):gt(r)?(t.push(n+" {"),Wt(r,t),t.push("}")):t.push(zt(n)+": "+Dt(n,r)+";"))}}function Ut(e,t,n,r,i=[]){if(Bt(e))return i;const s=typeof e;if("string"===s)return i.push(e),i;if("function"===s){if(_t(e))return"production"!==process.env.NODE_ENV&&Ht(e),i;if(qt(e)&&t){const s=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof s||Array.isArray(s)||Gt(s)||gt(s)||null===s||console.error(`${Ze(e)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`),Ut(s,t,n,r,i)}return i.push(e),i}if(Array.isArray(e)){for(let s=0;s<e.length;s++)Ut(e[s],t,n,r,i);return i}return ht(e)?(i.push(`.${e.styledComponentId}`),i):Gt(e)?(n?(e.inject(n,r),i.push(e.getName(r))):i.push(e),i):_t(e)?("production"!==process.env.NODE_ENV&&Ht(e),i):gt(e)?(Wt(e,i),i):(i.push(e.toString()),i)}const Yt=Ue(ye);class Zt{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=We(Yt,t),this.baseStyle=n,Vt.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let i="";for(let r=0;r<this.rules.length;r++){const s=this.rules[r];if("string"==typeof s)i+=s;else if(s)if(qt(s)){const r=s(e);"string"==typeof r?i+=r:null!=r&&!1!==r&&("production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||Gt(r)||gt(r)||console.error(`${Ze(s)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`),i+=ft(Ut(r,e,t,n)))}else i+=ft(Ut(s,e,t,n))}if(i){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=n.hash?n.hash+i:i;let s=this.dynamicNameCache.get(e);if(!s){if(s=_e(We(We(this.baseHash,n.hash),i)>>>0),this.dynamicNameCache.size>=200){const e=this.dynamicNameCache.keys().next().value;void 0!==e&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,s)}if(!t.hasNameForId(this.componentId,s)){const e=n(i,"."+s,void 0,this.componentId);t.insertRules(this.componentId,s,e)}r=pt(r,s)}}return r}}const Kt=/&/g;function Xt(e,t){let n=0;for(;--t>=0&&92===e.charCodeAt(t);)n++;return!(1&~n)}function Jt(e){const t=e.length;let n="",r=0,i=0,s=0,a=!1,o=!1;for(let l=0;l<t;l++){const c=e.charCodeAt(l);if(0!==s||a||c!==Lt||42!==e.charCodeAt(l+1))if(a)42===c&&e.charCodeAt(l+1)===Lt&&(a=!1,l++);else if(34!==c&&39!==c||Xt(e,l)){if(0===s)if(123===c)i++;else if(125===c){if(i--,i<0){o=!0;let n=l+1;for(;n<t;){const t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,i=0,l=n-1,r=n;continue}0===i&&(n+=e.substring(r,l+1),r=l+1)}else 59===c&&0===i&&(n+=e.substring(r,l+1),r=l+1)}else 0===s?s=c:s===c&&(s=0);else a=!0,l++}return o||0!==i||0!==s?(r<t&&0===i&&0===s&&(n+=e.substring(r)),n):e}function Qt(e,t){const n=t+" ",r=","+n;for(let i=0;i<e.length;i++){const s=e[i];if("rule"===s.type){s.value=(n+s.value).replaceAll(",",r);const e=s.props,t=[];for(let r=0;r<e.length;r++)t[r]=n+e[r];s.props=t}Array.isArray(s.children)&&"@keyframes"!==s.type&&Qt(s.children,t)}return e}const en=new Vt,tn=function({options:e=Le,plugins:t=De}=Le){let n,r,i;const s=(e,t,i)=>i.startsWith(r)&&i.endsWith(r)&&i.replaceAll(r,"").length>0?`.${n}`:e,a=t.slice();a.push(e=>{e.type===x&&e.value.includes("&")&&(i||(i=new RegExp(`\\${r}\\b`,"g")),e.props[0]=e.props[0].replace(Kt,r).replace(i,s))}),e.prefix&&a.push(pe),a.push(he);let o=[];const l=function(e){var t=I(e);return function(n,r,i,s){for(var a="",o=0;o<t;o++)a+=e[o](n,r,i,s)||"";return a}}(a.concat((d=e=>o.push(e),function(e){e.root||(e=e.return)&&d(e)}))),c=(t,s="",a="",c="&")=>{n=c,r=s,i=void 0;const u=function(e){const t=-1!==e.indexOf("//"),n=-1!==e.indexOf("}");if(!t&&!n)return e;if(!t)return Jt(e);const r=e.length;let i="",s=0,a=0,o=0,l=0,c=0,u=!1;for(;a<r;){const t=e.charCodeAt(a);if(34!==t&&39!==t||Xt(e,a))if(0===o)if(t===Lt&&a+1<r&&42===e.charCodeAt(a+1)){for(a+=2;a+1<r&&(42!==e.charCodeAt(a)||e.charCodeAt(a+1)!==Lt);)a++;a+=2}else if(40!==t)if(41!==t)if(l>0)a++;else if(42===t&&a+1<r&&e.charCodeAt(a+1)===Lt)i+=e.substring(s,a),a+=2,s=a,u=!0;else if(t===Lt&&a+1<r&&e.charCodeAt(a+1)===Lt){for(i+=e.substring(s,a);a<r&&10!==e.charCodeAt(a);)a++;s=a,u=!0}else 123===t?c++:125===t&&c--,a++;else l>0&&l--,a++;else l++,a++;else a++;else 0===o?o=t:o===t&&(o=0),a++}return u?(s<r&&(i+=e.substring(s)),0===c?i:Jt(i)):0===c?e:Jt(e)}(t);let d=ae(a||s?a+" "+s+" { "+u+" }":u);return e.namespace&&(d=Qt(d,e.namespace)),o=[],me(d,l),o},u=e;var d;let m=He;for(let e=0;e<t.length;e++)t[e].name||Ne(15),m=We(m,t[e].name);return(null==u?void 0:u.namespace)&&(m=We(m,u.namespace)),(null==u?void 0:u.prefix)&&(m=We(m,"p")),c.hash=m!==He?m.toString():"",c}(),nn=e.createContext({shouldForwardProp:void 0,styleSheet:en,stylis:tn,stylisPlugins:void 0});function rn(){return e.useContext(nn)}const sn=e.createContext(void 0),an=Object.prototype.hasOwnProperty,on={};function ln(e,t){const n="string"!=typeof e?"sc":qe(e);on[n]=(on[n]||0)+1;const r=n+"-"+Ye(ye+n+on[n]);return t?t+"-"+r:r}let cn;function un(n,r,i){const s=ht(n),a=n,o=!Ke(n),{attrs:l=De,componentId:c=ln(r.displayName,r.parentComponentId),displayName:u=Xe(n)}=r,d=r.displayName&&r.componentId?qe(r.displayName)+"-"+r.componentId:r.componentId||c,m=s&&a.attrs?a.attrs.concat(l).filter(Boolean):l;let{shouldForwardProp:h}=r;if(s&&a.shouldForwardProp){const e=a.shouldForwardProp;if(r.shouldForwardProp){const t=r.shouldForwardProp;h=(n,r)=>e(n,r)&&t(n,r)}else h=e}const p=new Zt(i,d,s?a.componentStyle:void 0);function f(n,r){return function(n,r,i){const{attrs:s,componentStyle:a,defaultProps:o,foldedComponentIds:l,styledComponentId:c,target:u}=n,d=e.useContext(sn),m=rn(),h=n.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&e.useDebugValue&&e.useDebugValue(c);const p=ze(r,d,o)||Le;let f,v;{const t=e.useRef(null),n=t.current;if(null!==n&&n[1]===p&&n[2]===m.styleSheet&&n[3]===m.stylis&&n[7]===a&&function(e,t,n){const r=e,i=t;let s=0;for(const e in i)if(an.call(i,e)&&(s++,r[e]!==i[e]))return!1;return s===n}(n[0],r,n[4]))f=n[5],v=n[6];else{f=function(e,t,n){const r=Object.assign(Object.assign({},t),{className:void 0,theme:n}),i=e.length>1;for(let n=0;n<e.length;n++){const s=e[n],a=mt(s)?s(i?Object.assign({},r):r):s;for(const e in a)"className"===e?r.className=pt(r.className,a[e]):"style"===e?r.style=Object.assign(Object.assign({},r.style),a[e]):e in t&&void 0===t[e]||(r[e]=a[e])}return"className"in t&&"string"==typeof t.className&&(r.className=pt(r.className,t.className)),r}(s,r,p),v=function(t,n,r,i){const s=t.generateAndInjectStyles(n,r,i);return"production"!==process.env.NODE_ENV&&e.useDebugValue&&e.useDebugValue(s),s}(a,f,m.styleSheet,m.stylis);let n=0;for(const e in r)an.call(r,e)&&n++;t.current=[r,p,m.styleSheet,m.stylis,n,f,v,a]}}"production"!==process.env.NODE_ENV&&n.warnTooManyClasses&&n.warnTooManyClasses(v);const y=f.as||u,b=function(e,t,n,r){const i={};for(const s in e)void 0===e[s]||"$"===s[0]||"as"===s||"theme"===s&&e.theme===n||("forwardedAs"===s?i.as=e.forwardedAs:r&&!r(s,t)||(i[s]=e[s],r||"development"!==process.env.NODE_ENV||g(s)||(cn||(cn=new Set)).has(s)||!Ke(t)||t.includes("-")||(cn.add(s),console.warn(`styled-components: it looks like an unknown prop "${s}" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via \`<StyleSheetManager shouldForwardProp={...}>\` (connect an API like \`@emotion/is-prop-valid\`) or consider using transient props (\`$\` prefix for automatic filtering.)`))));return i}(f,y,p,h);let w=pt(l,c);return v&&(w+=" "+v),f.className&&(w+=" "+f.className),b[Ke(y)&&y.includes("-")?"class":"className"]=w,i&&(b.ref=i),t(y,b)}(v,n,r)}f.displayName=u;let v=e.forwardRef(f);return v.attrs=m,v.componentStyle=p,v.displayName=u,v.shouldForwardProp=h,v.foldedComponentIds=s?pt(a.foldedComponentIds,a.styledComponentId):"",v.styledComponentId=d,v.target=s?a.target:n,Object.defineProperty(v,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=s?function(e,...t){for(const n of t)vt(e,n,!0);return e}({},a.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(Oe(u,d),v.warnTooManyClasses=((e,t)=>{let n={},r=!1;return i=>{!r&&(n[i]=!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={})}})(u,d)),yt(v,()=>`.${v.styledComponentId}`),o&&dt(v,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),v}var dn=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function mn(e,t){const n=[e[0]];for(let r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}const hn=e=>(It.add(e),e);function pn(e,...t){if(mt(e)||gt(e))return hn(Ut(mn(De,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Ut(n):hn(Ut(mn(n,t)))}function fn(e,t,n=Le){if(!t)throw Ne(1,t);const r=(r,...i)=>e(t,n,pn(r,...i));return r.attrs=r=>fn(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>fn(e,t,Object.assign(Object.assign({},n),r)),r}const gn=e=>fn(un,e),vn=gn;dn.forEach(e=>{vn[e]=gn(e)});class yn{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){const n=e[t];if(mt(n)&&!ht(n))return!1}return!0}(e),Vt.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,r){const i=this.componentId;if(this.isStatic){if(n.hasNameForId(i,i+e))this.instanceRules.has(e)||this.computeRules(e,t,n,r);else{const s=this.computeRules(e,t,n,r);n.insertRules(i,s.name,s.rules)}return}const s=this.instanceRules.get(e);if(this.computeRules(e,t,n,r),!n.server&&s){const t=s.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let r=0;r<t.length;r++)if(t[r]!==n[r]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,r){const i=ft(Ut(this.rules,t,n,r)),s={name:this.componentId+e,rules:r(i,"")};return this.instanceRules.set(e,s),s}rebuildGroup(e){const t=this.componentId;e.clearRules(t);for(const n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}}"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://styled-components.com/docs/basics#react-native");const bn=`__sc-${fe}__`;var wn,xn,Sn;"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[bn]||(window[bn]=0),1===window[bn]&&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://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."),window[bn]+=1),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"}(wn||(wn={})),function(e){e.Unknown="N",e.Time="T",e.Ordinal="P",e.Geological="G",e.Content="C",e.OtherClassificatory="F"}(xn||(xn={})),function(e){e.Week="Week",e.Month="Month",e.Quarter="Quarter",e.HalfYear="HalfYear",e.Year="Year",e.Decade="Decade",e.Irregular="Irregular"}(Sn||(Sn={}));const kn={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 puuttuu",sv:"Data saknas",en:"Missing data"},toggleAccessibilityModeOn:{fi:"Näytä kuviossa symbolit",sv:"Visa symboler i diagrammet",en:"Show symbols in the figure"},toggleAccessibilityModeOff:{fi:"Poista kuviosta symbolit",sv:"Ta bort symbolerna från diagrammet",en:"Remove symbols from the figure"},lastUpdated:{fi:"Päivitetty",sv:"Uppdaterad",en:"Updated"}},Cn={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."]}},Nn=new class{constructor(){this.Translations=void 0,this.ArrayTranslations=void 0,this.GetAllLanguages=()=>Object.keys(this.Translations.empty),this.Translations=kn,this.ArrayTranslations=Cn}AddTranslations(e){for(const t in e.Translations)t in this.Translations&&(this.Translations[t]=h({},this.Translations[t],e.Translations[t]));for(const t in e.ArrayTranslations)t in this.ArrayTranslations&&(this.ArrayTranslations[t]=h({},this.ArrayTranslations[t],e.ArrayTranslations[t]))}},Tn=Nn.Translations,An=Nn.ArrayTranslations,Mn=Nn.GetAllLanguages;function En(e){Nn.AddTranslations(e)}const $n=e=>e.reduce((e,t)=>e.map(e=>t.map(t=>e.concat([t]))).reduce((e,t)=>e.concat(t),[]),[[]]);function Pn(e,t,n){return n.findIndex(t=>JSON.stringify(t)===JSON.stringify(e))===t}const jn=["",".","..","...","....",".....","......","-"];function Vn(e,t,n,r=!1){if(null===e)throw new Error("Can not produce a localized numeric formatting for missing data");return new Intl.NumberFormat(n,{maximumFractionDigits:t,minimumFractionDigits:t,useGrouping:r}).format(e)}function In(e,t,n=!1){if(e)return n?Tn.dataMissing[t]:jn[e];throw new Error("Invalid missing code. Can not generate table presentation")}function On(e,t){return function(){var n,r,i;const s=[];var a,o;e.rowVarNames&&e.rowVarNames.length>0&&this.series.name&&s.push(`${null==(a=e.rowVarNames)?void 0:a.map(e=>e[t]).join(", ")}: ${this.series.name}`),e.colVarNames&&e.colVarNames.length>0&&this.name&&s.push(`${null==(o=e.colVarNames)?void 0:o.map(e=>e[t]).join(", ")}: ${this.name}`);const l=null!=(n=null==(r=this.options.custom)?void 0:r.precision)?n:0;return s.push(Wn(e,this,t,l)),null!=(i=this.options.custom)&&i.preliminary&&s.push(Tn.preliminaryData[t]),s.join("<br/>")}}function Dn(e,t){return function(n){var r,i,s;const a=[];var o,l;e.rowVarNames&&e.rowVarNames.length>0&&n.series.name&&a.push(`${null==(o=e.rowVarNames)?void 0:o.map(e=>e[t]).join(", ")}: ${Un(n.series.name,t)}`),e.colVarNames&&e.colVarNames.length>0&&n.name&&a.push(`${null==(l=e.colVarNames)?void 0:l.map(e=>e[t]).join(", ")}: ${Un(n.name,t)}`);const c=null!=(r=null==(i=n.options.custom)?void 0:i.precision)?r:0;return a.push(Wn(e,n,t,c)),null!=(s=n.options.custom)&&s.preliminary&&a.push(Tn.preliminaryData[t]),a.join(", ")}}function Ln(e){return function(){return this.value.toLocaleString(e)}}const zn=e=>Mn().indexOf(e.toLowerCase().trim())>-1?e.toLowerCase().trim():Mn()[0];function Rn(e=null){const t=e&&e>=15?25:50;return function(){return Bn(this.value,t)}}function Gn(e){return function(){var t,n;if(!this.y)return"";const r=null!=(t=null==(n=this.options.custom)?void 0:n.precision)?t:0;return Vn(this.y,r,e,!0)}}function qn(){return function(){return Bn(this.name,200)}}const Bn=(e,t=50)=>{const n=e.toString().length;return`${e.toString().slice(0,t).trim()}${n>t?"...":""}`};function Fn(e,t){return function(){var n,r;const i=e.series[1].rowNameGroup.map(e=>e[t]).join(", "),s=e.series[0].rowNameGroup.map(e=>e[t]).join(", "),a=null==(n=e.colVarNames)?void 0:n.map(e=>e[t]).join(", ");let o="";var l;return i&&i.length>0&&this.series.name&&(o+=`${i}: ${this.x.toLocaleString(t)}<br />`),s&&s.length>0&&this.key&&(o+=`${s}: ${null==(l=this.y)?void 0:l.toLocaleString(t)}<br />`),a&&a.length>0&&e.columnNameGroups&&e.columnNameGroups.length>0&&(o+=`${a}: ${e.columnNameGroups[this.index].map(e=>e[t]).join(", ")}`),null!=(r=this.options.custom)&&r.preliminary&&(o+=`<br />${Tn.preliminaryData[t]}`),o}}function _n(e,t){return function(){var n,r,i;const s=[];if(e.rowVarNames&&e.rowVarNames.length>0)for(let n=0;n<e.rowVarNames.length;n++)s.push(`${e.rowVarNames[n][t]}: ${e.series[this.series.index].rowNameGroup[n][t]}`);var a;e.colVarNames&&e.colVarNames.length>0&&this.name&&s.push(`${null==(a=e.colVarNames)?void 0:a.map(e=>e[t]).join(", ")}: ${this.name}`);const o=null!=(n=null==(r=this.options.custom)?void 0:r.precision)?n:0;return s.push(Wn(e,this,t,o)),null!=(i=this.options.custom)&&i.preliminary&&s.push(Tn.preliminaryData[t]),s.join("<br/>")}}function Hn(e,t){const n=e.map(e=>e.unit).filter(Pn);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 Wn(e,t,n,r){if(null==t.y)return"";const i=Number(t.y.toFixed(r));return e.visualizationSettings.visualizationType===wn.PyramidChart?Math.abs(i).toLocaleString(n):e.visualizationSettings.visualizationType==wn.PercentHorizontalBarChart||e.visualizationSettings.visualizationType==wn.PercentVerticalBarChart?`${Vn(null!=(s=t.percentage)?s:0,1,n)}% (${i.toLocaleString(n)} ${Hn(e.units,n)})`:null!=(a=i.toLocaleString(n))?a:"";var s,a}function Un(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]} ${An.months[t][Number(e[1])-1]}`}if(r.test(n)){const e=n.split("Q");return`${e[0]} ${function(e,t){const n=An.ordinalSuffices[t],r=parseInt(e)-1;return null!=n&&n[r]?`${e}${n[r]}`:`${e}.`}(e[1],t)} ${Tn.quarter[t]}`}console.log("Unsupported time pattern")}return e}function Yn(e,t){if(e)try{const n=new Date(e);if(Number.isNaN(n.getTime()))return;const r=Intl.DateTimeFormat("en"===t?"en-GB":t).format(n);return`${Tn.lastUpdated[t]}: ${r}`}catch(e){return void console.error("Error formatting date:",e)}}var Zn;function Kn(e,t,n){return function(){const r=function(e,t,n,r=new c(0)){var i;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 s=(e=>{const t=Array.from({length:n},(e,t)=>n-t).reduce((t,n)=>{const i=function(e){if(e.equals(0))return new c(0);const t=c.pow(10,c.log10(e).floor());return e.div(t).lessThan(1.5)?t.div(10).mul(e.div(t.div(10)).ceil()):e.div(t).lessThan(3)?e.mul(2).div(t).ceil().mul(t).div(2):e.div(t).lessThan(8)?e.div(t).ceil().mul(t):e.div(t.mul(10)).ceil().mul(10).mul(t)}(e.div(n));return i.greaterThanOrEqualTo(r)&&t.push([(s=i,s.equals(0)?0:s.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}(s):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}}(s)),i]),t;var s},[]).sort(([e,t],[n,r])=>n-e);return t.slice(0,Math.max(2,Math.ceil(.5*t.length))).sort(([e,t],[n,r])=>t.minus(r).toNumber())})(c.max(e.abs(),t.abs()));return e.lessThan(0)&&t.greaterThan(0)?null!=(i=s.map(([e,t])=>t).find(r=>e.abs().div(r).ceil().plus(t.div(r).ceil()).lessThanOrEqualTo(n)))?i:new c(NaN):s[0][1]}(e,t,(n=>{const r=c.pow(10,c.log10(c.max(e.abs(),t.abs())).floor()),i=Math.ceil(n/(12*(r.toString().length+(e.isNeg()?1:0))+25)-1);return Math.max(i,e.isNegative()&&t.isPositive()?2:1)})(this.chart.plotWidth),n),i=e.greaterThanOrEqualTo(0)?new c(0):e.div(r).floor().mul(r),s=t.lessThanOrEqualTo(0)?new c(0):t.div(r).ceil().mul(r);return Array.from({length:s.minus(i).div(r).plus(1).toNumber()},(e,t)=>r.mul(t).plus(i).toNumber())}}function Xn(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?Kn(new c(t),new c(n),new c(Math.pow(10,-r))):()=>[]}function Jn(e){let t=null,n=null,r=0;return e[0].forEach((i,s)=>{const a=e.reduce((e,t)=>{var n;return e+(null!=(n=t[s].value)?n:0)},0);a&&(!t||a<t)&&(t=a),a&&(!n||a>n)&&(n=a),i.precision>r&&(r=i.precision)}),t&&n?Kn(new c(t),new c(n),new c(Math.pow(10,-r))):()=>[]}!function(e){e[e.Time=0]="Time",e[e.Ordinal=1]="Ordinal",e[e.Nominal=2]="Nominal"}(Zn||(Zn={}));const Qn=(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 er(e,t){if(t){const n=new Date(t);switch(e){case Sn.Irregular:case Sn.Week:return;case Sn.Month:return{pointStart:n.getTime(),pointIntervalUnit:"month"};case Sn.Quarter:case Sn.HalfYear:return;case Sn.Year:return{pointStart:n.getTime(),pointIntervalUnit:"year"}}}}function tr(e,t){if(e.seriesType!==Zn.Time){const n=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),r=n.every(e=>!Number.isNaN(Number.parseFloat(e)));return e.seriesType===Zn.Ordinal&&r?Qn(e,t):{ordinal:e.seriesType==Zn.Ordinal,type:"category",categories:n,labels:{autoRotation:[-45]}}}switch(e.visualizationSettings.timeVariableIntervals){case Sn.Week:return nr(e,t);case Sn.Month:return rr();case Sn.Quarter:return ir(e,t);case Sn.HalfYear:return sr(e,t);case Sn.Year:return{type:"datetime"};default:return{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", "))}}}const nr=(e,t)=>({type:"linear",ordinal:!1,labels:{formatter:function(){return e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", ")}}}),rr=(e,t)=>({type:"datetime",ordinal:!1,labels:{formatter:function(){return l.dateFormat("%YM%m",Number(this.value))}}}),ir=(e,t)=>{var n,r,i;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)),i=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,i),n=Math.ceil((r-t)/e);return Array.from({length:n},(n,r)=>t+r*e)})}},sr=(e,t)=>{var n,r,i;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)),i=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,i),n=Math.ceil((r-t)/e);return Array.from({length:n},(n,r)=>t+r*e)})}},ar=["#1a56ec","#f2644c","#1b3160","#9c8d87","#26625d","#7791e8","#8c1131","#878eaf","#c73268","#288c72"],or=["M 0 5 L 10 5 M 5 0 L 5 10","M 0 0 L 10 10 M 10 0 L 0 10","M 2,2 h1 v1 h-1 z M 7,7 h1 v1 h-1 z M 2,7 h1 v1 h-1 z M 7,2 h1 v1 h-1 z","M 2,2 h1 v1 h-1 z M 7,7 h1 v1 h-1 z","M -2 -2 L 12 12 M -12 -2 L 2 12 M -2 -12 L 12 2","M -2 12 L 12 -2 M -12 12 L 2 -2 M -2 22 L 12 8","M 5,5 m -3,0 a 3,3 0 1,0 6,0 a 3,3 0 1,0 -6,0","M 2 2 L 3 3 M 7 7 L 8 8 M 2 7 L 3 8 M 7 2 L 8 3","M 5 0 L 10 5 L 5 10 L 0 5 Z","M 2 5 L 8 5 M 5 2 L 5 8","M 5 0 L 5 10","M 0 5 L 10 5","M 0 5 Q 2.5 0, 5 5 T 10 5","M 0 2 L 10 2 M 0 8 L 10 8","M 0 10 L 5 0 L 10 10 Z"];function lr(e){return{color:{pattern:{backgroundColor:ar[e%ar.length],path:{stroke:"white",d:or[e%or.length],strokeWidth:2},width:10,height:10}}}}const cr=(e,t)=>e.series.map((n,r)=>h({},mr(n,e,t),{index:r,type:"line"})),ur=(e,t,n=!1,r=!1)=>e.series.map((i,s)=>h({},mr(i,e,t),r&&lr(s),{colorIndex:s,index:n?e.series.length-1-s:s,type:"bar"})),dr=(e,t,n=!1,r=!1)=>e.series.map((i,s)=>h({},mr(i,e,t),r&&lr(s),{colorIndex:s,index:n?e.series.length-1-s:s,type:"column"}));function mr(e,t,n){return{animation:!1,name:e.rowNameGroup.map(e=>e[n]).join(", "),data:e.series.map((e,r)=>({y:e.value,name:t.columnNameGroups[r].map(e=>e[n]).join(", "),custom:{preliminary:e.preliminary,precision:e.precision}}))}}const hr=(e,t,n)=>{var r;const i=null==(r=null==n?void 0:n.showTitles)||r,s=Tn.source[t];let a=`${s}: ${e.sources.map(e=>e[t]).join(", ")}`;const o=(null==n?void 0:n.showLastUpdated)&&e.lastUpdated;if(o){const n=Yn(e.lastUpdated,t);n&&(a=`${n}<br>${s}: ${e.sources.map(e=>e[t]).join(", ")}`)}return{chart:{spacingBottom:o?50:30},accessibility:{point:{descriptionFormatter:Dn(e,t)}},title:{text:i?e.header[t]:void 0},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},credits:{enabled:!1},caption:{text:a},tooltip:{formatter:On(e,t)},yAxis:[pr]}},pr={plotLines:[{value:0,color:"#000",width:1}]},fr=(e,t)=>({enabled:e.visualizationSettings.showDataPoints,style:{color:"#000",fontSize:"1rem",fontWeight:"400"},formatter:Gn(t)}),gr=(e,t)=>h({},pr,{tickPositioner:Xn(e.series.map(e=>e.series)),title:{text:Hn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}}),vr=(e,t,n)=>h({},hr(e,t,n),{chart:{type:"bar"},xAxis:{categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{formatter:Rn(e.columnNameGroups.length),style:{width:200}}}}),yr=(e,t,n)=>h({},vr(e,t,n),{series:ur(e,t,!0,null==n?void 0:n.accessibilityMode),legend:h({},Sr,{enabled:!0,layout:"horizontal",reversed:!0,margin:30})}),br=(e,t,n)=>h({},hr(e,t,n),{chart:{type:"column"},xAxis:tr(e,t)}),wr=(e,t,n)=>h({},br(e,t,n),{series:dr(e,t,!1,null==n?void 0:n.accessibilityMode),yAxis:{softMin:0,softMax:0,title:{text:Hn(e.units,t)}}}),xr=(e,t,n)=>h({},br(e,t,n),{series:dr(e,t,!0,null==n?void 0:n.accessibilityMode),legend:h({},Sr,{enabled:!0,layout:"vertical"})}),Sr={itemHiddenStyle:{color:"black"}},kr=(e,t,n)=>{var r,i;return h({},hr(e,t,n),{chart:{type:"pie"},plotOptions:{pie:{dataLabels:{formatter:(i=null!=(r=e.visualizationSettings.showDataPoints)&&r,function(){var e;const t=i?` (${Math.round(null!=(e=this.percentage)?e:0)}%)`:"";return Bn(this.name,20)+t})}}},series:e.series.map(r=>({animation:!1,type:"pie",name:r.rowNameGroup.map(e=>e[t]).join(", "),data:r.series.map((r,i)=>h({y:r.value,name:e.columnNameGroups[i].map(e=>e[t]).join(", "),unit:Hn(e.units,t)},(null==n?void 0:n.accessibilityMode)&&lr(i),{custom:{preliminary:r.preliminary,precision:r.precision}}))}))})},Cr=(e,t,n)=>{const r=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),i=Math.max(...e.series.map(e=>Math.max(...e.series.map(e=>{var t;return null!=(t=e.value)?t:0}))));return h({},hr(e,t,n),{chart:{type:"bar"},xAxis:{categories:r,reversed:!1,labels:{style:{width:200}}},yAxis:h({},pr,{min:-Math.abs(i),max:Math.abs(i),title:{text:Hn(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:h({},Sr,{enabled:!0,margin:30}),series:e.series.map((r,i)=>h({animation:!1,type:"bar",name:r.rowNameGroup.map(e=>e[t]).join(", ")},(null==n?void 0:n.accessibilityMode)&&lr(i),{data:r.series.map((n,r)=>({y:0===i&&n.value?-n.value:n.value,name:e.columnNameGroups[r].map(e=>e[t]).join(", "),custom:{preliminary:n.preliminary,precision:n.precision}}))})),plotOptions:{series:{stacking:"normal",dataLabels:h({},fr(e,t))}},exporting:{enabled:!1}})},Nr=(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 `,Tr=(e,t,n)=>{switch(t.visualizationSettings.visualizationType){case wn.LineChart:return((e,t,n)=>{var r;const i=null!=(r=e.visualizationSettings)&&r.cutValueAxis?void 0:0,s=null!=n&&n.accessibilityMode?{enabledThreshold:3}:{enabled:!1};return h({},hr(e,t,n),{chart:{type:"line"},tooltip:{formatter:_n(e,t)},xAxis:h({},tr(e,t),{gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5}),yAxis:h({},pr,{softMin:i,softMax:i,title:{text:Hn(e.units,t)}}),plotOptions:{line:{dataLabels:h({},fr(e,t)),marker:s},series:er(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:h({},Sr,{enabled:e.series.length>1,labelFormatter:qn()}),series:cr(e,t),exporting:{enabled:!1}})})(t,e,n);case wn.VerticalBarChart:return((e,t,n)=>h({},wr(e,t,n),{yAxis:h({},pr,{softMin:0,softMax:0,title:{text:Hn(e.units,t)}}),plotOptions:{series:h({},er(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:h({},fr(e,t))})},exporting:{enabled:!1}}))(t,e,n);case wn.HorizontalBarChart:return((e,t,n)=>h({},vr(e,t,n),{series:ur(e,t,!1,null==n?void 0:n.accessibilityMode),chart:{type:"bar",spacingBottom:60},yAxis:h({},gr(e,t),{softMin:0,max:100}),caption:h({},vr(e,t,n).caption,{y:30}),legend:{enabled:!1},plotOptions:{series:{dataLabels:h({},fr(e,t))}}}))(t,e,n);case wn.GroupVerticalBarChart:return((e,t,n)=>h({},wr(e,t,n),{plotOptions:{series:h({},er(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:h({},fr(e,t))})},legend:h({},Sr,{enabled:!0,labelFormatter:qn()})}))(t,e,n);case wn.GroupHorizontalBarChart:return((e,t,n)=>h({},vr(e,t,n),{series:ur(e,t,!1,null==n?void 0:n.accessibilityMode),yAxis:h({},gr(e,t),{softMin:0,softMax:0}),legend:h({},Sr,{enabled:!0,layout:"vertical",margin:30}),plotOptions:{series:{dataLabels:h({},fr(e,t))}}}))(t,e,n);case wn.StackedVerticalBarChart:return((e,t,n)=>h({},xr(e,t,n),{yAxis:{softMin:0,softMax:0,title:{text:Hn(e.units,t)}},plotOptions:{column:{stacking:"normal"},series:h({},er(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:h({},fr(e,t))})}}))(t,e,n);case wn.StackedHorizontalBarChart:return((e,t,n)=>h({},yr(e,t,n),{yAxis:{softMin:0,softMax:0,tickPositioner:Jn(e.series.map(e=>e.series)),title:{text:Hn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"normal"},series:{dataLabels:h({},fr(e,t))}}}))(t,e,n);case wn.PercentVerticalBarChart:return((e,t,n)=>h({},xr(e,t,n),{yAxis:{min:0,title:{text:"%"}},plotOptions:{column:{stacking:"percent"},series:h({},er(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:h({},fr(e,t))})}}))(t,e,n);case wn.PercentHorizontalBarChart:return((e,t,n)=>h({},yr(e,t,n),{yAxis:{min:0,title:{text:"%",style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"percent"},series:{dataLabels:h({},fr(e,t))}}}))(t,e,n);case wn.PieChart:return kr(t,e,n);case wn.PyramidChart:return Cr(t,e,n);case wn.ScatterPlot:return((e,t,n)=>{var r;const i=null!=(r=e.visualizationSettings)&&r.cutValueAxis?void 0:0;return h({},hr(e,t,n),{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:h({},pr,{softMin:i,softMax:i,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,i;return{x:null!=(r=e.series[1].series[n].value)?r:void 0,y:null!=(i=e.series[0].series[n].value)?i:void 0,marker:{symbol:"circle"},custom:{preliminary:e.series[1].series[n].preliminary||e.series[0].series[n].preliminary,precision:Math.max(e.series[1].series[n].precision,e.series[0].series[n].precision)}}})}],tooltip:{headerFormat:"",pointFormat:Nr(e.series,t),formatter:Fn(e,t)},plotOptions:{scatter:{marker:{radius:5*(e.visualizationSettings.markerSize?.01*e.visualizationSettings.markerSize:1)}}},exporting:{enabled:!1}})})(t,e,n);default:throw new Error("Unsupported chart type")}},Ar=(e,t,n,r)=>{if(0===e.length)return{};let i=e,s={};if(r){const{parsedValues:e,updatedArray:t}=Mr(i,r);if(i=t,s=h({},s,e),0===i.length)return s}if(n){const{parsedValues:e,updatedArray:t}=Er(i,n);if(i=t,s=h({},s,e),0===i.length)return s}return i.forEach(e=>{const n=t.findIndex(t=>t.code===e);n>-1&&(s[e]=t[n].type===xn.Time?[t[n].values[t[n].values.length-1].code]:[t[n].values[0].code])}),s},Mr=(e,t)=>{const n=Object.keys(t),r={},i=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:i}},Er=(e,t)=>{const n=Object.keys(t),r={},i=e.map(e=>{const i=n.findIndex(t=>t===e);return i>-1?(r[e]=t[n[i]],""):e}).filter(e=>e.length>0);return{parsedValues:r,updatedArray:i}},$r=(e,t)=>{var n,r;return(null!=(n=e.value)?n:0)-(null!=(r=t.value)?r:0)},Pr=(e,t)=>{var n,r;return(null!=(n=t.value)?n:0)-(null!=(r=e.value)?r:0)};function jr(e,t,n){return Ir(Vr(e,e.series[t].series,n),t)}function Vr(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),i=r.map(t=>e.columnNameGroups[t]),s=e.series.map(e=>function(e,t){return h({},e,{series:t.map(t=>e.series[t])})}(e,r));return h({},e,{columnNameGroups:i,series:s})}function Ir(e,t){const n=[];return n.push(e.series[t]),e.series.forEach((e,r)=>{r!==t&&n.push(e)}),h({},e,{series:n})}function Or(e,t){if(Object.keys(t).includes(e.code)){const n=e.values.filter(n=>t[e.code].includes(n.code));if(0===n.length)throw new Error("Provided selected value code can not be found from the metadata");return n}return e.values}function Dr(e,t){let n=[];for(const r of t){const t=e.find(e=>e.code===r);t&&n.push(t)}return n}class Lr{constructor(e,t){this.dataIndex=void 0,this.dataLength=void 0,this.responseObj=void 0,this.coordinates=void 0,this.lastIndices=void 0,this.indices=void 0,this.variableOrder=void 0,this.lastCoordinateIndex=void 0,this.reverseCumulativeProducts=void 0,this.selectedViewContentVariableIndex=void 0,this.selectedViewTimeVariableIndex=void 0,this.selectedViewMeta=void 0,this.rowLength=0,this.rowAmount=0,this.responseObj=e;const n=e.metaData,r=n.map(e=>e.values.length);this.selectedViewMeta=this.getSelectedView(e,t),this.coordinates=Array.from({length:this.selectedViewMeta.length},()=>[]),this.variableOrder=this.getVariableOrder(),this.initializeCoordinates(n),this.selectedViewContentVariableIndex=this.selectedViewMeta.findIndex(e=>e.type===xn.Content),this.selectedViewTimeVariableIndex=this.selectedViewMeta.findIndex(e=>e.type===xn.Time),this.indices=Array.from({length:n.length},()=>0),this.lastIndices=this.selectedViewMeta.map(e=>e.values.length-1),this.lastCoordinateIndex=this.coordinates.length-1,this.reverseCumulativeProducts=this.generateRCP(r),this.dataLength=this.selectedViewMeta.map(e=>e.values.length).reduce((e,t)=>e*t,1),this.dataIndex=0,this.setCurrentIndex()}initializeCoordinates(e){for(let n=0;n<this.selectedViewMeta.length;n++){var t;const r=this.variableOrder[n],i=this.selectedViewMeta[n].code,s=null==(t=e.find(e=>e.code===i))?void 0:t.values,a=this.selectedViewMeta.find(e=>e.code===i);this.coordinates[r]=a.values.map(e=>s.indexOf(e))}}getViewSeries(){let e=0,t=[];const n=[];do{const r=this.createDataCell();t.push(r),e++,e>=this.rowLength&&(n.push({rowNameGroup:this.generateRowNameGroup(),series:t}),t=[],e=0)}while(this.next());return n}generateRowNameGroup(){return this.selectedViewMeta.slice(0,this.rowAmount).map((e,t)=>e.values[this.indices[this.variableOrder[t]]].name)}next(){for(let e=this.lastCoordinateIndex;e>=0;e--){const t=this.variableOrder[e];if(this.indices[t]<this.lastIndices[e])return this.indices[t]++,this.setCurrentIndex(),!0;this.indices[t]=0}return!1}createDataCell(){var e,t;const n=this.getCurrentTimeValue(),r={value:this.responseObj.data[this.dataIndex],precision:null!=(e=null==(t=this.selectedViewMeta[this.selectedViewContentVariableIndex].values[this.indices[this.variableOrder[this.selectedViewContentVariableIndex]]].contentComponent)?void 0:t.numberOfDecimals)?e:0,preliminary:!!n&&Object.values(n.name)[0].trim().endsWith("*")};return r.value||(r.missingCode=this.responseObj.missingDataInfo[this.dataIndex]),r}getSelectedView(e,t){const n=e.metaData.map(e=>h({},e,{values:Or(e,t)})),r=Dr(n.filter(t=>e.rowVariableCodes.includes(t.code)&&t.values.length>1),e.rowVariableCodes),i=Dr(n.filter(t=>e.columnVariableCodes.includes(t.code)&&t.values.length>1),e.columnVariableCodes),s=Dr(n.filter(t=>e.selectableVariableCodes.includes(t.code)),e.selectableVariableCodes),a=s.filter(e=>e.values.length>1&&!r.some(t=>t.code==e.code)&&!i.some(t=>t.code==e.code)),o=s.filter(e=>1==e.values.length),l=n.filter(e=>!r.some(t=>t.code==e.code)&&!i.some(t=>t.code==e.code)&&!s.some(t=>t.code==e.code)),c=[...a,...r,...i,...o,...l];return this.rowLength=$n(n.filter(t=>e.columnVariableCodes.includes(t.code)).map(e=>e.values)).length,this.rowAmount=r.length+a.length,c}getVariableOrder(){const e=this.responseObj.metaData.map(e=>e.code),t=this.selectedViewMeta.map(t=>e.indexOf(t.code));return t}generateRCP(e){const t=Array.from({length:e.length});let n=1;for(let r=e.length-1;r>=0;r--)t[r]=n,n*=e[r];return t}setCurrentIndex(){this.dataIndex=0;for(let e=0;e<=this.lastCoordinateIndex;e++){const t=this.variableOrder[e];this.dataIndex+=this.reverseCumulativeProducts[t]*this.coordinates[t][this.indices[t]]}}getCurrentTimeValue(){if(-1!=this.selectedViewTimeVariableIndex)return this.selectedViewMeta[this.selectedViewTimeVariableIndex].values[this.indices[this.variableOrder[this.selectedViewTimeVariableIndex]]]}}function zr(e,t){var n,r,i;const s=function(e,t,n){const{metaData:r,selectableVariableCodes:i}=e,s=function(e,t){return e.filter(e=>t.includes(e.code))}(r,i),a=function(e){const t=e.find(e=>e.type===xn.Content);if(t)return t;throw new Error("Content variable is not defined")}(r),o=function(e,t){const n=new Lr(e,t).getViewSeries(),r=Dr(e.metaData.filter(t=>e.columnVariableCodes.includes(t.code)).filter(e=>e.values.length>1),e.columnVariableCodes).map(e=>Or(e,t));return{columnNameGroups:$n(r).map(e=>e.map(e=>e.name)),series:n}}(e,t),l=Gr(e.selectableVariableCodes.filter(t=>n[t]>1&&!e.rowVariableCodes.includes(t)&&!e.columnVariableCodes.includes(t)),r).concat(Gr(e.rowVariableCodes,e.metaData)),c=function(e,t){let n;n=e.code in t?e.values.filter(n=>t[e.code].includes(n.code)).map(e=>{var t;return null==(t=e.contentComponent)?void 0:t.lastUpdated}).filter((e,t,n)=>Pn(e,t,n)):e.values.map(e=>{var t;return null==(t=e.contentComponent)?void 0:t.lastUpdated}).filter((e,t,n)=>Pn(e,t,n));const r=n.filter(e=>void 0!==e);if(0===r.length)return;if(1===r.length)return r[0];const i=r.map(e=>new Date(e)).reduce((e,t,n,r)=>t>r[e]?n:e,0);return r[i]}(a,t);return{header:e.header,tableReferenceName:e.tableReference.name,subheaderValues:Br(s,t,n),units:Fr(a,t),sources:_r(a,t,e=>{var t;return null!=(t=null==e?void 0:e.source)?t:Tn.empty}),lastUpdated:c,columnNameGroups:o.columnNameGroups,series:o.series,rowVarNames:l,colVarNames:Gr(e.columnVariableCodes,e.metaData),selectableVarNames:Gr(e.selectableVariableCodes,e.metaData),visualizationSettings:e.visualizationSettings,seriesType:Hr(e.columnVariableCodes,e.metaData)}}(e,t,function(e){const t={};return Object.entries(e).forEach(([e,n])=>t[e]=n.length),t}(t)),a=(null==(n=s.visualizationSettings)?void 0:n.visualizationType)===wn.PercentHorizontalBarChart||(null==(r=s.visualizationSettings)?void 0:r.visualizationType)===wn.PercentVerticalBarChart;switch(null==(i=e.visualizationSettings)?void 0:i.sorting){case null:case void 0:case"no_sorting":return s;case"reversed":return function(e){const t=[...e.series].reverse().map(e=>h({},e,{series:[...e.series].reverse(),rowNameGroup:[...e.rowNameGroup].reverse()}));return h({},e,{series:t,columnNameGroups:[...e.columnNameGroups].reverse()})}(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 Vr(e,n,t)}(s,Pr);case"ascending":return jr(s,0,$r);case"descending":return jr(s,0,Pr);default:return a?(o=s,l=Rr(s),c=qr(e),Ir(Vr(o,l.series[c].series,Pr),c)):jr(s,qr(e),Pr)}var o,l,c}function Rr(e){const t=e.series.map(t=>h({},t,{series:t.series.map((t,n)=>{var r;const i=e.series.reduce((e,t)=>{var r;return e+(null!=(r=t.series[n].value)?r:0)},0),s=i&&0!==i?Math.round(100*(null!=(r=t.value)?r:0)/i*10)/10:null,a={value:s,precision:1,preliminary:t.preliminary};return null===s&&(a.missingCode=t.missingCode),a})}));return h({},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 Gr(e,t){return e.reduce((e,n)=>{var r;const i=null==(r=t.find(e=>e.code===n))?void 0:r.name;return i&&e.push(i),e},[])}function qr(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 Br(e,t,n){const r=[];return e.forEach(e=>{var i,s;1==n[e.code]&&r.push(null!=(i=null==(s=e.values.find(n=>n.code===t[e.code][0]))?void 0:s.name)?i:{})}),r}function Fr(e,t){const n=e.code in t?e.values.filter(n=>t[e.code].includes(n.code)):e.values;return n.reduce((e,t)=>(t.contentComponent&&e.push({name:t.name,unit:t.contentComponent.unit}),e),[])}function _r(e,t,n){return e.code in t?e.values.filter(n=>t[e.code].includes(n.code)).map(e=>n(e.contentComponent)).filter((e,t,n)=>Pn(e,t,n)):e.values.map(e=>n(e.contentComponent)).filter((e,t,n)=>Pn(e,t,n))}function Hr(e,t){var n;if(e.length>1||0===e.length)return Zn.Nominal;const r=null==(n=t.find(t=>t.code===e[0]))?void 0:n.type;switch(r){case xn.Time:return Zn.Time;case xn.Ordinal:return Zn.Ordinal;default:return Zn.Nominal}}const Wr=(e,t)=>({accessibility:{keyboardNavigation:{seriesNavigation:{mode:"serialize"}}},responsive:{rules:[{condition:{maxHeight:600},chartOptions:{chart:{height:600}}}]},exporting:{enabled:!1,fallbackToExportServer:!1,allowHTML:!1,chartOptions:{chart:{style:{fontFamily:t||'"Barlow Semi Condensed", Verdana, sans-serif'}}}},lang:{accessibility:{thousandsSep:Tn.thousandsSepAccessibility[e],credits:Tn.credits[e],caption:Tn.credits[e],chartTypes:{barMultiple:Tn.barMultiple[e],barSingle:Tn.barSingle[e],columnMultiple:Tn.columnMultiple[e],columnSingle:Tn.columnSingle[e],lineSingle:Tn.lineSingle[e],lineMultiple:Tn.lineMultiple[e],pieSingle:Tn.pieSingle[e],scatterSingle:Tn.scatterSingle[e],scatterMultiple:Tn.scatterMultiple[e],defaultSingle:Tn.defaultSingle[e],defaultMultiple:Tn.defaultMultiple[e]},defaultChartTitle:Tn.defaultChartTitle[e],exporting:{chartMenuLabel:Tn.chartMenuLabel[e],menuButtonLabel:Tn.menuButtonLabel[e]},legend:{legendItem:Tn.legendItem[e],legendLabel:Tn.legendLabel[e],legendLabelNoTitle:Tn.legendLabelNoTitle[e]},axis:{rangeCategories:Tn.rangeCategories[e],rangeFromTo:Tn.rangeFromTo[e],timeRangeDays:Tn.timeRangeDays[e],timeRangeHours:Tn.timeRangeHours[e],timeRangeMinutes:Tn.timeRangeMinutes[e],timeRangeSeconds:Tn.timeRangeSeconds[e],xAxisDescriptionPlural:Tn.xAxisDescriptionPlural[e],xAxisDescriptionSingular:Tn.xAxisDescriptionSingular[e],yAxisDescriptionPlural:Tn.yAxisDescriptionPlural[e],yAxisDescriptionSingular:Tn.yAxisDescriptionSingular[e]},series:{summary:{bar:Tn.seriesSummaryBar[e],barCombination:Tn.seriesSummaryBarCombination[e],column:Tn.seriesSummaryColumn[e],columnCombination:Tn.seriesSummaryColumnCombination[e],default:Tn.seriesSummaryDefault[e],defaultCombination:Tn.seriesSummaryDefaultCombination[e],line:Tn.seriesSummaryLine[e],lineCombination:Tn.seriesSummaryLineCombination[e],pie:Tn.seriesSummaryPie[e],pieCombination:Tn.seriesSummaryPieCombination[e],scatter:Tn.seriesSummaryScatter[e],scatterCombination:Tn.seriesSummaryScatterCombination[e]},xAxisDescription:Tn.xAxisDescription[e],yAxisDescription:Tn.yAxisDescription[e]},screenReaderSection:{endOfChartMarker:Tn.endOfChartMarker[e]},chartContainerLabel:Tn.chartContainerLabel[e]},thousandsSep:Tn.thousandsSep[e],decimalPoint:Tn.decimalPoint[e],contextButtonTitle:Tn.contextButtonTitle[e],downloadCSV:Tn.downloadCSV[e],downloadPNG:Tn.downloadPNG[e],downloadSVG:Tn.downloadSVG[e],months:An.months[e],shortMonths:An.shortMonths[e],weekdays:An.weekdays[e],loading:Tn.loading[e],numericSymbols:null},colors:ar,chart:{style:{fontFamily:null!=t?t:'"Barlow Semi Condensed", Verdana, sans-serif'},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:{useHTML:!0,style:{color:"#000",fontSize:"1.25rem",fontWeight:"500",textAlign:"left",maxWidth:"calc(100% - 4rem)",whiteSpace:"normal"},align:"left",margin:45,minScale:1},subtitle:{style:{color:"#000",fontSize:"1.25rem",fontWeight:"400"},align:"left"},caption:{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:Ln(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,borderRadius:0,borderWidth:0},bar:{groupPadding:.2,pointPadding:.01,borderRadius:0,borderWidth:0},series:{animation:!1}}}),Ur=(e,t,n,r=null,i=void 0)=>{(()=>{if(void 0!==globalThis.window)try{require("highcharts/modules/pattern-fill.js"),require("highcharts/modules/accessibility.js"),require("highcharts/modules/exporting.js"),require("highcharts/modules/offline-exporting.js")}catch(e){console.error("Error loading Highcharts modules:",e)}})();const s=zn(n);o.setOptions(Wr(s,null==i?void 0:i.fontFamily));const a=zr(t,Ar(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,r)),l=Tr(s,a,i);return o.chart(e,l)};function Yr(e,t,n,r,i){const s=document.getElementById(r);if(!s)throw new Error("No container with matching id found in the DOM tree");try{const a=function(e,t){var n,r;const i=null!=(n=e.columnNameGroups[0].length)?n:0,s=null!=(r=e.series[0].rowNameGroup.length)?r:0,a=Object.assign(document.createElement("table"),{tabIndex:0});if(i>0){const n=function(e,t){const n=Xr(e),r=[];for(let i=0;i<e[0].length;i++){const s=document.createElement("tr");for(let r=0;r<e.length;r+=n[i]){const a=document.createElement("th");a.setAttribute("colSpan",n[i].toString()),a.setAttribute("scope","col"),a.textContent=e[r][i][t],s.append(a)}r.push(s)}return r}(e.columnNameGroups,t);if(s>0){const e=document.createElement("td");e.setAttribute("colSpan",s.toString()),e.setAttribute("rowSpan",i.toString()),n[0].prepend(e)}const r=document.createElement("thead");r.append(...n),a.append(r)}if(e.series.length>0){const n=document.createElement("tbody");n.append(...function(e,t){const n=[],r=Kr(e);for(let i=0;i<e.length;i++){const s=document.createElement("tr");for(let n=0;n<e[i].rowNameGroup.length;n++)if(i%r[n]===0){const a=document.createElement("th");a.setAttribute("rowSpan",r[n].toString()),a.setAttribute("scope","row"),a.textContent=e[i].rowNameGroup[n][t],s.append(a)}for(const n of e[i].series){const e=document.createElement("td");e.textContent=null===n.value?In(n.missingCode,t,!0):Vn(n.value,n.precision,t,!0),s.append(e)}n.push(s)}return n}(e.series,t)),a.append(n)}return a}(e,t);if(n.showTitles){const n=`${r}-title`,i=document.createElement("p");if(i.id=n,i.textContent=e.header[t],i.className="tableChart-title",e.subheaderValues.length>0){const n=e.subheaderValues.map(e=>e[t]).join(" | ");i.append(document.createElement("br"),n)}a.setAttribute("aria-labelledby",n),s.append(i)}s.append(a);let o=!0;const l=e=>{const t=document.createElement("span");o||t.append(document.createElement("br")),t.append(e),s.append(t),o=!1};if(n.showUnits){const n=Hn(e.units,t);l(`${Tn.unit[t]}: ${n}`)}if(i&&l(i),n.showLastUpdated&&e.lastUpdated){const n=Yn(e.lastUpdated,t);n&&l(n)}n.showSources&&l(`${Tn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`)}catch(e){console.error(e),s.replaceChildren();const n=document.createElement("h1");n.append(Tn.graphCreationError[t]),s.append(n)}}const Zr=(e,t)=>Object.keys(e).every(n=>e[n]==t[n]),Kr=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&&Zr(e[r].rowNameGroup[n],e[r+1].rowNameGroup[n]);r++)t[n]++;return t},Xr=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&&Zr(e[r][n],e[r+1][n]);r++)t[n]++;return t},Jr=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")}`},Qr=(e,t)=>{var n,r,i,s,a,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===wn.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===wn.PercentVerticalBarChart)&&(e=Rr(e));const u=null!=(i=null==(s=e.columnNameGroups[0])?void 0:s.length)?i:0,d=null!=(a=null==(o=e.series[0])?void 0:o.rowNameGroup.length)?a:0,m=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+d,h=","==Tn.decimalPoint[t]?";":",",p="\n";let f=ti([`"${e.header[t]}"`],0,m,h,p);e.subheaderValues.length>0&&(f+=ti([`"${e.subheaderValues.map(e=>e[t]).join(" | ")}"`],0,m,h,p));for(let n=0;n<u;n++)f+=ti(e.columnNameGroups.map(e=>`"${e[n][t]}"`),d,m,h,p);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?In(e.missingCode,t):Vn(e.value,e.precision,t))),f+=ti(n,0,m,h,p)}),f+=ti([`"${Tn.unit[t]}: ${Hn(e.units,t)}"`],0,m,h,p),f+=ti([`"${Tn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}"`],0,m,h),f},ei=(e,t)=>({onClick:()=>{const n=Qr(e,t),r=new Blob(["\ufeff",n],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r),s=document.createElement("a");s.setAttribute("href",i),s.setAttribute("download",Jr(e.tableReferenceName)+".csv"),document.body.appendChild(s),s.click()},text:Tn.downloadCSV[t]});function ti(e,t,n,r,i=""){let s="";for(let i=0;i<n;i++)i>=t&&i<t+e.length&&(s+=e[i-t]),i<n-1&&(s+=r);return s+i}const ni=['xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"','xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"','xmlns:mv="urn:schemas-microsoft-com:mac:vml"','xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main"','xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"','xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"','xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"','xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"'];function ri(e){const t=Math.floor(e/26),n=String.fromCodePoint(97+e%26).toUpperCase();return 0===t?n:ri(t-1)+n}const ii=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<workbook ${['xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"','xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"','xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main"','xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"','xmlns:mv="urn:schemas-microsoft-com:mac:vml"','xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"','xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"','xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"'].join(" ")}>\n <workbookPr/>\n <sheets>\n <sheet state="visible" name="Sheet1" sheetId="1" r:id="rId3"/>\n </sheets>\n <definedNames/>\n <calcPr/>\n</workbook>`;function si(e,t,n){const r=new Array(n);for(let i=0;i<n;i++)r[i]=i>=t&&i<t+e.length?e[i-t]:null;return r}const ai=(e,t)=>({onClick:async()=>{const n=await oi(e,t),r=URL.createObjectURL(n),i=document.createElement("a");i.setAttribute("href",r),i.setAttribute("download",Jr(e.tableReferenceName)+".xlsx"),document.body.appendChild(i),i.click()},text:Tn.downloadXLSX[t]});async function oi(e,t){const n=((e,t)=>{var n,r,i,s,a,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===wn.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===wn.PercentVerticalBarChart)&&(e=Rr(e));const u=null!=(i=null==(s=e.columnNameGroups[0])?void 0:s.length)?i:0,d=null!=(a=null==(o=e.series[0])?void 0:o.rowNameGroup.length)?a:0,m=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+d;return[si([e.header[t]],0,m),...e.subheaderValues.length>0?[si([e.subheaderValues.map(e=>e[t]).join(" | ")],0,m)]:[],...Array.from({length:u},(n,r)=>si(e.columnNameGroups.map(e=>e[r][t]),d,m)),...e.series.map(e=>{let n=[];return e.rowNameGroup.length>0&&(n=e.rowNameGroup.map(e=>e[t])),n=n.concat(e.series.map(e=>null===e.value?In(e.missingCode,t):Number(e.value.toFixed(e.precision)))),si(n,0,m)}),si([`${Tn.unit[t]}: ${Hn(e.units,t)}`],0,m),si([`${Tn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`],0,m)]})(e,t),r=(e=>{const t=function(e){const t=[];for(let n=1;n<=e;n++)t.push(`<col min="${n}" max="${n}" width="20"/>`);return t?`<cols>${t}</cols>`:""}(Math.max(...e.map(e=>e.length))),n=function(e){return e.map((e,t)=>{const n=e.map((e,n)=>function(e,t,n){return null===e?null:"string"==typeof e?`<c r="${ri(t)}${n}" t="inlineStr"><is><t>${function(e){const t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.replaceAll(/[&<>"']/g,e=>t[e])}(e)}</t></is></c>`:`<c r="$${ri(t)}${n}"><v>${e}</v></c>`}(e,n,t+1)).filter(e=>null!==e).join("");return`<row r="${t+1}">${n}</row>`}).join("")}(e);return((e,t)=>`<?xml version="1.0" ?>\n<worksheet ${ni.join(" ")}>\n ${e}\n <sheetData>\n ${t}\n </sheetData>\n</worksheet>`)(t,n)})(n),i={xl:{"worksheets/sheet1.xml":u(r),"workbook.xml":u(ii),"_rels/workbook.xml.rels":u('<?xml version="1.0" ?>\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n <Relationship\n Id="rId3"\n Target="worksheets/sheet1.xml" \n Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"\n />\n</Relationships>')},"_rels/.rels":u('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Relationships\nxmlns="http://schemas.openxmlformats.org/package/2006/relationships"\n>\n <Relationship\n Id="rId1"\n Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"\n Target="xl/workbook.xml"\n />\n</Relationships>'),"[Content_Types].xml":u('<?xml version="1.0" ?>\n<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\n <Default ContentType="application/xml" Extension="xml"/>\n <Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/>\n <Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet1.xml"/>\n <Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" PartName="/xl/workbook.xml"/>\n</Types>')};return new Promise((e,t)=>{d(i,(n,r)=>{if(n)return t(n);const i=new Blob([r.buffer instanceof ArrayBuffer?r.buffer:new Uint8Array(r)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});return e(i)})})}const li=["Bars","Times","Download","ExternalLink","Copy"],ci=({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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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",h({},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 ui,di,mi,hi,pi,fi,gi,vi=e=>e;const yi=vn(n((t,n)=>e.createElement("button",h({ref:n},t))))(ui||(ui=vi`
|
|
2
2
|
background-color: transparent;
|
|
3
3
|
text-align: left;
|
|
4
4
|
border: none;
|
|
@@ -14,7 +14,7 @@ import e,{createElement as t,forwardRef as n,useId as r,useEffect as i,useMemo a
|
|
|
14
14
|
:hover {
|
|
15
15
|
text-decoration: underline;
|
|
16
16
|
}
|
|
17
|
-
`)),
|
|
17
|
+
`)),bi=vn.a(di||(di=vi`
|
|
18
18
|
text-decoration: none;
|
|
19
19
|
display: flex;
|
|
20
20
|
align-items: center;
|
|
@@ -27,7 +27,7 @@ import e,{createElement as t,forwardRef as n,useId as r,useEffect as i,useMemo a
|
|
|
27
27
|
:hover {
|
|
28
28
|
text-decoration: underline;
|
|
29
29
|
}
|
|
30
|
-
`)),
|
|
30
|
+
`)),wi=vn.li(mi||(mi=vi`
|
|
31
31
|
border-top-right-radius: ${0};
|
|
32
32
|
border-top-left-radius: ${0};
|
|
33
33
|
border-bottom-right-radius: ${0};
|
|
@@ -36,7 +36,7 @@ import e,{createElement as t,forwardRef as n,useId as r,useEffect as i,useMemo a
|
|
|
36
36
|
:hover {
|
|
37
37
|
background-color: #f2f2f2;
|
|
38
38
|
}
|
|
39
|
-
`),e=>e.$isFirst?"18px":"0px",e=>e.$isFirst?"18px":"0px",e=>e.$isLast?"18px":"0px",e=>e.$isLast?"18px":"0px",e=>e.$separator?"1px solid #bdbdbd":"0px"),
|
|
39
|
+
`),e=>e.$isFirst?"18px":"0px",e=>e.$isFirst?"18px":"0px",e=>e.$isLast?"18px":"0px",e=>e.$isLast?"18px":"0px",e=>e.$separator?"1px solid #bdbdbd":"0px"),xi=vn.div(hi||(hi=vi`
|
|
40
40
|
height: 100%;
|
|
41
41
|
width: 100%;
|
|
42
42
|
display: flex;
|
|
@@ -45,7 +45,7 @@ import e,{createElement as t,forwardRef as n,useId as r,useEffect as i,useMemo a
|
|
|
45
45
|
justify-content: left;
|
|
46
46
|
align-items: center;
|
|
47
47
|
justify-items: center;
|
|
48
|
-
`)),
|
|
48
|
+
`)),Si=vn.div(pi||(pi=vi`
|
|
49
49
|
height: 1rem;
|
|
50
50
|
width: 1rem;
|
|
51
51
|
svg {
|
|
@@ -53,10 +53,10 @@ import e,{createElement as t,forwardRef as n,useId as r,useEffect as i,useMemo a
|
|
|
53
53
|
width: 1rem;
|
|
54
54
|
fill: #1a3061;
|
|
55
55
|
}
|
|
56
|
-
`)),
|
|
56
|
+
`)),ki=vn.span(fi||(fi=vi`
|
|
57
57
|
margin-left: ${0};
|
|
58
58
|
margin-right: ${0};
|
|
59
|
-
`),e=>e.$hasPrefixIcon?"0.5rem":"0px",e=>e.$hasSuffixIcon?"0.5rem":"0px"),
|
|
59
|
+
`),e=>e.$hasPrefixIcon?"0.5rem":"0px",e=>e.$hasSuffixIcon?"0.5rem":"0px"),Ci=vn.span(gi||(gi=vi`
|
|
60
60
|
clip: rect(0 0 0 0);
|
|
61
61
|
clip-path: inset(50%);
|
|
62
62
|
height: 1px;
|
|
@@ -64,10 +64,10 @@ import e,{createElement as t,forwardRef as n,useId as r,useEffect as i,useMemo a
|
|
|
64
64
|
position: absolute;
|
|
65
65
|
white-space: nowrap;
|
|
66
66
|
width: 1px;
|
|
67
|
-
`)),
|
|
67
|
+
`)),Ni=n(({text:t,onClick:n,url:r,openNewTab:i,isExternal:s,prefixIcon:a,suffixIcon:o,locale:l,idPrefix:c,bottomSeparator:u=!1,isFirst:d=!1,isLast:m=!1,tabIndex:h=-1,index:p=-1},f)=>{let g,v;a&&(g="string"==typeof a&&li.includes(a)?e.createElement(ci,{inheritColor:!0,icon:a}):a),o&&(v="string"==typeof o&&li.includes(o)?e.createElement(ci,{inheritColor:!0,icon:o}):a);const y=e.createElement(xi,null,g&&e.createElement(Si,null,g),e.createElement(ki,{$hasPrefixIcon:!!a,$hasSuffixIcon:!!o||s},t),o&&e.createElement(Si,null,v),s&&e.createElement(e.Fragment,null,e.createElement(Ci,null,Tn.externalLink[l]),e.createElement(Si,null,e.createElement(ci,{inheritColor:!0,icon:"ExternalLink"}))));return r?e.createElement(wi,{$isFirst:d,$isLast:m,$separator:u},e.createElement(bi,{role:"menuitem",id:`${c}-menuitem-${p}`,ref:f,href:r,target:i?"_blank":void 0,rel:i?"noopener noreferrer":void 0,title:t,"aria-label":t,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),e.target.click())},onClick:e=>{n&&n()},tabIndex:h},y)):n?e.createElement(wi,{$isFirst:d,$isLast:m,$separator:u},e.createElement(yi,{role:"menuitem",id:`${c}-menuitem-${p}`,ref:f,onClick:n,tabIndex:h},y)):e.createElement(e.Fragment,null)});let Ti,Ai,Mi,Ei,$i,Pi=e=>e;const ji=vn.div(Ti||(Ti=Pi`
|
|
68
68
|
width: 2.5rem;
|
|
69
69
|
height: 2.5rem;
|
|
70
|
-
`)),
|
|
70
|
+
`)),Vi=vn.button(Ai||(Ai=Pi`
|
|
71
71
|
width: 100%;
|
|
72
72
|
height: 100%;
|
|
73
73
|
svg {
|
|
@@ -77,11 +77,11 @@ import e,{createElement as t,forwardRef as n,useId as r,useEffect as i,useMemo a
|
|
|
77
77
|
background-color: transparent;
|
|
78
78
|
border: none;
|
|
79
79
|
cursor: pointer;
|
|
80
|
-
`)),
|
|
80
|
+
`)),Ii=vn.div(Mi||(Mi=Pi`
|
|
81
81
|
width: 100%;
|
|
82
82
|
height: 0;
|
|
83
83
|
position: relative;
|
|
84
|
-
`)),
|
|
84
|
+
`)),Oi=vn.div(Ei||(Ei=Pi`
|
|
85
85
|
display: flex;
|
|
86
86
|
flex-flow: column;
|
|
87
87
|
position: absolute;
|
|
@@ -90,11 +90,11 @@ import e,{createElement as t,forwardRef as n,useId as r,useEffect as i,useMemo a
|
|
|
90
90
|
top: 0.2rem;
|
|
91
91
|
right: 0.2rem;
|
|
92
92
|
border: 1px solid #bdbdbd;
|
|
93
|
-
`)),
|
|
93
|
+
`)),Di=vn.ul($i||($i=Pi`
|
|
94
94
|
list-style-type: none;
|
|
95
95
|
margin: 0;
|
|
96
96
|
padding: 0;
|
|
97
|
-
`));function
|
|
97
|
+
`));function Li(e){const t=600,n=e.chart.chartWidth,r=e.chart.chartHeight;let i,s,a=Math.max(.5,Math.min(2,n/r));return a<1?(s=Math.max(t,Math.min(3e3,r)),i=s*a,i<t&&(i=t,s=i/a)):(i=Math.max(t,Math.min(3e3,n)),s=i/a,s<t&&(s=t,i=s*a)),{finalWidth:i,finalHeight:s}}const zi=(e,t)=>-1!=t&&t===e?0:-1,Ri=({viewData:t,currentChartRef:n,tableToggle:s,menuItemDefinitions:a,locale:o,menuIconInheritColor:l=!1,toggleAccessibilityMode:c,accessibilityMode:u})=>{const[d,m]=e.useState(!1),[h,p]=e.useState(-1),f=r(),g=e.useRef(new Map),v=e.useRef(null),y=e=>{v.current&&d&&!v.current.contains(e.target)&&M(!1)};e.useEffect(()=>{E()},[h]);const b=e=>t=>{g.current.set(e,t)};document.addEventListener("mousedown",y);const w=ei(t,o),x=ai(t,o),S=null==a?void 0:a.map((t,n)=>"onClick"in t?e.createElement(Ni,{tabIndex:zi(n,h),isFirst:0===n,index:n,bottomSeparator:n+1===a.length,locale:o,prefixIcon:t.prefixIcon,suffixIcon:t.suffixIcon,key:`customfmenuitem-${t.text}`,text:t.text,onClick:()=>A(t.onClick),ref:b(n),idPrefix:f}):"url"in t?e.createElement(Ni,{tabIndex:zi(n,h),isFirst:0===n,index:n,bottomSeparator:n+1===a.length,locale:o,prefixIcon:t.prefixIcon,suffixIcon:t.suffixIcon,isExternal:t.isExternal,key:`customlmenuitem-${t.text}`,text:`${t.text}`,url:t.url,openNewTab:t.openNewTab,onClick:()=>A(),ref:b(n),idPrefix:f}):void 0),k=()=>{const r=[];let i=a?a.length:0;return r.push(e.createElement(Ni,{index:i,isFirst:!a,locale:o,prefixIcon:"Download",text:x.text,onClick:()=>A(x.onClick),tabIndex:zi(i,h),ref:b(i),key:"xlsx-menu-item",idPrefix:f})),i++,r.push(e.createElement(Ni,{index:i,isLast:!n,bottomSeparator:!!n,locale:o,prefixIcon:"Download",text:w.text,onClick:()=>A(w.onClick),tabIndex:zi(i,h),ref:b(i),key:"csv-menu-item",idPrefix:f})),n&&(i++,r.push(e.createElement(Ni,{index:i,locale:o,prefixIcon:"Download",text:Tn.downloadSVG[o],onClick:()=>A(()=>n.chart.exporting.exportChart({filename:`${Jr(t.tableReferenceName)}`,type:"image/svg+xml",sourceWidth:Li(n).finalWidth,sourceHeight:Li(n).finalHeight,scale:1},{})),tabIndex:zi(i,h),ref:b(i),key:"svg-menu-item",idPrefix:f})),i++,r.push(e.createElement(Ni,{index:i,isLast:!s,bottomSeparator:!!s,locale:o,prefixIcon:"Download",text:Tn.downloadPNG[o],onClick:()=>A(()=>n.chart.exporting.exportChart({filename:`${Jr(t.tableReferenceName)}`,sourceWidth:Li(n).finalWidth,sourceHeight:Li(n).finalHeight,scale:1},{})),tabIndex:zi(i,h),ref:b(i),key:"png-menu-item",idPrefix:f}))),$&&(i++,r.push(e.createElement(Ni,{index:i,isFirst:!1,locale:o,text:u?Tn.toggleAccessibilityModeOff[o]:Tn.toggleAccessibilityModeOn[o],onClick:()=>A(c),tabIndex:zi(i,h),ref:b(i),key:"accessibility-mode-toggle",idPrefix:f}))),s&&(i++,r.push(e.createElement(Ni,{index:i,isLast:!0,locale:o,text:s.tableMode?Tn.toggleTableModeOffText[o]:Tn.toggleTableModeOnText[o],onClick:()=>A(s.toggleHandler),tabIndex:zi(i,h),ref:b(i),key:"table-toggle",idPrefix:f}))),r};i(()=>(p(d?0:-1),document.addEventListener("mousedown",y),document.addEventListener("keydown",N),()=>{document.removeEventListener("mousedown",y),document.removeEventListener("keydown",N)}),[d]);const C=()=>(a?a.length:0)+k().length-1,N=e=>{("Escape"===e.key||"Tab"===e.key&&d)&&M(!1,"Escape"===e.key),"ArrowDown"===e.key&&d&&(e.preventDefault(),p(e=>{const t=e+1;return t>C()?0:t})),"ArrowUp"===e.key&&d&&(e.preventDefault(),p(e=>{const t=e-1,n=C();return t<0?n:t}))},T=e.useRef(null),A=e=>{M(!1,!0),e&&e()},M=(e,t=!1)=>{var n;m(e),!e&&t&&(null==(n=T.current)||n.focus())},E=()=>{var e;-1!==h&&g.current.has(h)&&(null==(e=g.current.get(h))||e.focus())},$=!!s&&!s.tableMode&&t.visualizationSettings.visualizationType!=wn.ScatterPlot;return e.createElement(ji,{ref:v},e.createElement(Vi,{ref:T,"aria-label":`${Tn.chartMenuLabel[o]}`,"aria-expanded":d,onClick:()=>{M(!d)},"aria-haspopup":"menu","aria-controls":`${f}-menu`},e.createElement(ci,{inheritColor:l,icon:d?"Times":"Bars"})),e.createElement(Ii,null,d&&e.createElement(Oi,null,e.createElement(Di,{id:`${f}-menu`,role:"menu","aria-label":`${Tn.chartMenuLabel[o]}`,"aria-orientation":"vertical","aria-activedescendant":`${f}-menuitem-${h}`,tabIndex:d?0:-1},a&&S,k()))))},Gi=[];for(let e=0;e<256;++e)Gi.push((e+256).toString(16).slice(1));const qi=new Uint8Array(16),Bi=({view:t,locale:n,options:r,footnote:i})=>{const a=s(()=>crypto.randomUUID?crypto.randomUUID():function(e){const t=(e=e||{}).random??e.rng?.()??crypto.getRandomValues(qi);if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=15&t[6]|64,t[8]=63&t[8]|128,function(e,t=0){return(Gi[e[t+0]]+Gi[e[t+1]]+Gi[e[t+2]]+Gi[e[t+3]]+"-"+Gi[e[t+4]]+Gi[e[t+5]]+"-"+Gi[e[t+6]]+Gi[e[t+7]]+"-"+Gi[e[t+8]]+Gi[e[t+9]]+"-"+Gi[e[t+10]]+Gi[e[t+11]]+Gi[e[t+12]]+Gi[e[t+13]]+Gi[e[t+14]]+Gi[e[t+15]]).toLowerCase()}(t)}(void 0),[t,n]);return e.useEffect(()=>{var e;null==(e=document.getElementById(a))||e.replaceChildren(),Yr(t,n,r,a,i)},[t,n,r,i]),e.createElement("div",{className:"tableChart",id:a})};let Fi;const _i=function(t){const n=pn(t),r=`sc-global-${Ye(JSON.stringify(n))}`,i=new yn(n,r);"production"!==process.env.NODE_ENV&&Oe(r);const s=t=>{const s=rn(),o=e.useContext(sn);let l;{const t=e.useRef(null);null===t.current&&(t.current=s.styleSheet.allocateGSInstance(r)),l=t.current}"production"!==process.env.NODE_ENV&&e.Children.count(t.children)&&console.warn(`The global style component ${r} was given child JSX. createGlobalStyle does not render children.`),"production"!==process.env.NODE_ENV&&n.some(e=>"string"==typeof e&&-1!==e.indexOf("@import"))&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),s.styleSheet.server&&a(l,t,s.styleSheet,o,s.stylis);{const n=i.isStatic?[l,s.styleSheet,i]:[l,t,s.styleSheet,o,s.stylis,i],c=e.useRef(i);e.useLayoutEffect(()=>{s.styleSheet.server||(c.current!==i&&(s.styleSheet.clearRules(r),c.current=i),a(l,t,s.styleSheet,o,s.stylis))},n),e.useLayoutEffect(()=>()=>{s.styleSheet.server||i.removeStyles(l,s.styleSheet)},[l,s.styleSheet,i])}return s.styleSheet.server&&i.instanceRules.delete(l),null};function a(e,t,n,r,a){if(i.isStatic)i.renderStyles(e,ke,n,a);else{const o=Object.assign(Object.assign({},t),{theme:ze(t,r,s.defaultProps)});i.renderStyles(e,o,n,a)}}return e.memo(s)}(Fi||(Fi=(e=>e)`
|
|
98
98
|
/* @font-face {
|
|
99
99
|
font-family: 'Barlow Semi Condensed';
|
|
100
100
|
font-style: normal;
|
|
@@ -167,24 +167,24 @@ import e,{createElement as t,forwardRef as n,useId as r,useEffect as i,useMemo a
|
|
|
167
167
|
margin-bottom: 2rem;
|
|
168
168
|
text-align: left;
|
|
169
169
|
}
|
|
170
|
-
`));let
|
|
170
|
+
`));let Hi;const Wi=vn.div(Hi||(Hi=(e=>e)`
|
|
171
171
|
width: 100%;
|
|
172
172
|
position: relative;
|
|
173
173
|
font-family: 'Barlow Semi Condensed';
|
|
174
|
-
`)),
|
|
174
|
+
`)),Ui=({locale:t})=>e.createElement(Wi,null,e.createElement("h1",null,Tn.graphCreationError[t]));class Yi extends a{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error(e,t.componentStack)}render(){return this.state.hasError?this.props.fallback:this.props.children}}let Zi,Ki,Xi,Ji,Qi=e=>e;const es=(e,t)=>{"object"==typeof l&&(l.wrap(l.SVGRenderer.prototype,"init",function(e){e.apply(this,Array.prototype.slice.call(arguments,1)),this.box.children[0]&&/Created with Highcharts/.test(this.box.children[0].innerHTML)&&this.box.children[0].remove()}),l.setOptions(Wr(e,t)))},ts=vn.div(Zi||(Zi=Qi`
|
|
175
175
|
width: 100%;
|
|
176
176
|
position: relative;
|
|
177
177
|
padding-top: ${0};
|
|
178
|
-
`),e=>e.$needsPadding?"38px":"0"),
|
|
178
|
+
`),e=>e.$needsPadding?"38px":"0"),ns=vn.div(Ki||(Ki=Qi`
|
|
179
179
|
position: absolute;
|
|
180
180
|
top: ${0};
|
|
181
181
|
right: 0;
|
|
182
182
|
z-index: 1;
|
|
183
|
-
`),e=>e.$adjustHeightToTableTitle?"14px":"0"),
|
|
183
|
+
`),e=>e.$adjustHeightToTableTitle?"14px":"0"),rs=vn.div(Xi||(Xi=Qi`
|
|
184
184
|
display: ${0};
|
|
185
185
|
min-height: 635px;
|
|
186
186
|
height: 100%;
|
|
187
|
-
`),e=>e.$tableMode?"none":"block"),
|
|
187
|
+
`),e=>e.$tableMode?"none":"block"),is=vn.div(Ji||(Ji=Qi`
|
|
188
188
|
display: ${0};
|
|
189
|
-
`),e=>e.$tableMode?"block":"none"),
|
|
189
|
+
`),e=>e.$tableMode?"block":"none"),ss=({pxGraphData:t,footnote:n,locale:r,menuItemDefinitions:i,selectedVariableCodes:a=null,showContextMenu:o=!0,menuIconInheritColor:c=!1,showTitles:u,showTableUnits:d,showTableSources:h,fontFamily:p,showLastUpdated:f=!1})=>{const g=zn(r);es(g,p);const v=e.useRef(null),[y,b]=e.useState(v.current),[w,x]=e.useState(!1),[S,k]=e.useState(!1),[C,N]=e.useState(0),T=s(()=>{try{return Ar(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,a)}catch(e){return console.error(e),{}}},[a,t]),A=s(()=>{try{return zr(t,T)}catch(e){return console.error(e),null}},[T,t]),M=s(()=>({showTitles:null==u||u,showUnits:!!d,showSources:null==h||h,showLastUpdated:f,accessibilityMode:S,fontFamily:p}),[u,d,h,f,S,p]);let E;function $(){C!==window.innerWidth&&N(window.innerWidth)}window&&window.addEventListener("resize",function(){clearTimeout(E),E=setTimeout($,100)});const P=()=>{x(!w)},j=()=>{k(!S)};e.useEffect(()=>{v.current&&b(v.current)},[v.current]);try{if(A&&t.visualizationSettings.visualizationType!==wn.Table){const t=Tr(g,A,M),r=w&&!0===M.showTitles;return e.createElement(ts,{$needsPadding:!0!==M.showTitles&&o},o&&e.createElement(ns,{$adjustHeightToTableTitle:r},e.createElement(Ri,{menuItemDefinitions:i,viewData:A,currentChartRef:y,locale:g,tableToggle:{tableMode:w,toggleHandler:P},menuIconInheritColor:c,accessibilityMode:S,toggleAccessibilityMode:j})),e.createElement(rs,{$tableMode:r},e.createElement(m,{ref:v,immutable:!0,highcharts:l,options:t})),e.createElement(is,{$tableMode:r},e.createElement(Bi,{options:M,footnote:n,view:A,locale:g})))}if(A&&t.visualizationSettings.visualizationType===wn.Table)return e.createElement(ts,{$needsPadding:!0!==M.showTitles&&o},o&&e.createElement(ns,{$adjustHeightToTableTitle:!0===M.showTitles},e.createElement(Ri,{menuItemDefinitions:i,viewData:A,locale:g,menuIconInheritColor:c})),e.createElement(Bi,{options:M,footnote:n,view:A,locale:g}))}catch(t){return console.error(t),e.createElement(Ui,{locale:g})}return e.createElement(Ui,{locale:g})},as=t=>{const n=zn(t.locale);return e.createElement(Yi,{fallback:e.createElement(Ui,{locale:n})},e.createElement(_i,null),e.createElement(ss,h({},t)))};export{En as AddTranslations,Ri as BurgerMenu,as as Chart,Sn as ETimeVariableInterval,xn as EVariableType,wn as EVisualizationType,Yi as ErrorBoundary,_i as GlobalStyle,ci as Icon,Ni as MenuItem,oi as buildMinimalXlsxBlobAsync,Li as calculateExportDimensions,zr as convertPxGrafResponseToView,Tr as convertPxGraphDataToChartOptions,ar as defaultColors,or as defaultFillPatterns,Wr as defaultTheme,Ur as drawChart,Ar as extractSelectableVariableValues,Qr as generateCsv,Yr as renderHtmlTable,ei as viewToDownloadCSVOption,ai as viewToDownloadXLSOption};
|
|
190
190
|
//# sourceMappingURL=pxv.modern.js.map
|